diff --git a/CHANGELOG.md b/CHANGELOG.md index 2d4edceaa80..80c63d1d5a9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,32 @@ To see all merged commits on the main branch that will be part of the next plotl where X.Y.Z is the semver of most recent plotly.js release. +## [4.2.0] -- 2026-10-29 + +### Added +- Add `layout.legend.itemheight` to set the height of the legend fill swatch, so more of a trace `fillpattern` is visible in the legend [[#7925](https://github.com/plotly/plotly.js/pull/7925)], with thanks to @MannXo for the contribution! +- Add spikelines to ternary plots [[#8041](https://github.com/plotly/plotly.js/pull/8041)], with thanks to @Lexachoc for the contribution! + - Add TypeScript declarations for lifecycle and WebGL context events [[#8145](https://github.com/plotly/plotly.js/pull/8145)] + +### Fixed +- Respect explicit `node.x`/`node.y` positions in Sankey traces that contain unlinked or grouped nodes [[#7826](https://github.com/plotly/plotly.js/pull/7826)], with thanks to @kyo5uke for the contribution! +- Fix incorrect positioning of tick labels when using `ticklabelindex` on period axes [[#7934](https://github.com/plotly/plotly.js/pull/7934)], with thanks to @my-tien for the contribution! +- Fix tick label format sometimes being incompatible with the labeled tick when using `ticklabelindex` [[#7935](https://github.com/plotly/plotly.js/pull/7935)], with thanks to @my-tien for the contribution! +- Fix unified hover swatch color and pattern for bar `marker.pattern` arrays [[#8039](https://github.com/plotly/plotly.js/pull/8039)], with thanks to @Dmao233 for the contribution! +- Keep cartesian traces aligned with their axes when an automargin title is combined with any component that expands the margins [[#8045](https://github.com/plotly/plotly.js/pull/8045)] +- Fix hover labels ignoring MathJax for text that is a single tex expression [[#8051](https://github.com/plotly/plotly.js/pull/8051)], with thanks to @SergeyAxiomatic +- Fix XSS via `javascript:` URLs in MathJax `\href` macros by sanitizing links in MathJax-rendered text [[#8051](https://github.com/plotly/plotly.js/pull/8051)], with thanks to @SergeyAxiomatic +- Fix issue causing `scattergl` plot to freeze up when hovering over points [[#8052](https://github.com/plotly/plotly.js/pull/8052)], with thanks to @emilykl for the contribution! + - Fix quiver arrow colors for a discrete `marker.color` array [[#8069](https://github.com/plotly/plotly.js/pull/8069)], with thanks to @Yahiro025 for the contribution! +- Fix numeric and numeric-string marker symbol variant detection in `scattergl` [[#8071](https://github.com/plotly/plotly.js/pull/8071)] + - Fix `hoverlabel.align` so that it aligns the item text in `x unified` and `y unified` hover labels [[#8104](https://github.com/plotly/plotly.js/pull/8104)], with thanks to @MannXo for the contribution! + - Convert modern CSS color formats to rgba for scattergl based traces [[#8119](https://github.com/plotly/plotly.js/pull/8119)] +- Update TypeScript types so that `Plotly.relayout`, `Plotly.restyle`, `Plotly.update`, and the `plotly_relayout` event accept attribute paths such as `'xaxis.autorange'` [[#8126](https://github.com/plotly/plotly.js/pull/8126)] + - Add the `LayoutUpdate` and `DataUpdate` types for these update objects + - Add the `(root, attribute, value)` call form to the types of `Plotly.relayout` and `Plotly.restyle` + - Fix funnel `percentTotal` text formatting to display formatted percentages instead of raw ratios [[#8139](https://github.com/plotly/plotly.js/pull/8139)], with thanks to @ORITOMI for the contribution! + + ## [4.1.2] -- 2026-10-05 ### Changed diff --git a/CITATION.cff b/CITATION.cff index 02f705dfcb8..f0878807500 100644 --- a/CITATION.cff +++ b/CITATION.cff @@ -9,7 +9,7 @@ authors: - family-names: "Samimi" given-names: "Mojtaba" title: "Open source Plotly charting library" -version: 4.1.2 +version: 4.2.0 doi: 10.5281/zenodo.13964707 -date-released: 2026-10-05 +date-released: 2026-10-29 url: "https://github.com/plotly/plotly.js" diff --git a/README.md b/README.md index 967962c4466..e79e8c9f4cd 100644 --- a/README.md +++ b/README.md @@ -62,7 +62,7 @@ You may also consider using [`plotly.js-dist`](https://www.npmjs.com/package/plo ```html - +
@@ -79,7 +79,7 @@ You may also consider using [`plotly.js-dist`](https://www.npmjs.com/package/plo Alternatively, you may consider using [native ES6 import](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules) in the script tag. ```html ``` @@ -89,7 +89,7 @@ Fastly supports Plotly.js with free CDN service. Read more at + ``` > Please note that as of v2 the "plotly-latest" outputs (e.g. https://cdn.plot.ly/plotly-latest.min.js) will no longer be updated on the CDN, and will stay at the last v1 patch v1.58.5. Therefore, to use the CDN with plotly.js v2 and higher, you must specify an exact plotly.js version. diff --git a/dist/README.md b/dist/README.md index b770d43ffda..16f2c8297ad 100644 --- a/dist/README.md +++ b/dist/README.md @@ -43,12 +43,12 @@ The main plotly.js bundles weight in at: | plotly.js | plotly.min.js | plotly.min.js + gzip | plotly-with-meta.js | |-----------|---------------|----------------------|---------------------| -| 10.1 MB | 4.83 MB | 1.49 MB | 10.5 MB | +| 10.2 MB | 4.84 MB | 1.49 MB | 10.5 MB | #### CDN links -> https://cdn.plot.ly/plotly-4.1.2.js +> https://cdn.plot.ly/plotly-4.2.0.js -> https://cdn.plot.ly/plotly-4.1.2.min.js +> https://cdn.plot.ly/plotly-4.2.0.min.js #### npm packages @@ -91,12 +91,12 @@ The `basic` partial bundle contains trace modules `bar`, `pie` and `scatter`. | Raw size | Minified size | Minified + gzip size | |------|-----------------|------------------------| -| 2.96 MB | 1.2 MB | 401 kB | +| 2.97 MB | 1.2 MB | 402 kB | #### CDN links -> https://cdn.plot.ly/plotly-basic-4.1.2.js +> https://cdn.plot.ly/plotly-basic-4.2.0.js -> https://cdn.plot.ly/plotly-basic-4.1.2.min.js +> https://cdn.plot.ly/plotly-basic-4.2.0.min.js #### npm packages @@ -114,12 +114,12 @@ The `cartesian` partial bundle contains trace modules `bar`, `box`, `contour`, ` | Raw size | Minified size | Minified + gzip size | |------|-----------------|------------------------| -| 3.72 MB | 1.51 MB | 504 kB | +| 3.74 MB | 1.51 MB | 506 kB | #### CDN links -> https://cdn.plot.ly/plotly-cartesian-4.1.2.js +> https://cdn.plot.ly/plotly-cartesian-4.2.0.js -> https://cdn.plot.ly/plotly-cartesian-4.1.2.min.js +> https://cdn.plot.ly/plotly-cartesian-4.2.0.min.js #### npm packages @@ -137,12 +137,12 @@ The `geo` partial bundle contains trace modules `choropleth`, `scatter` and `sca | Raw size | Minified size | Minified + gzip size | |------|-----------------|------------------------| -| 3.4 MB | 1.41 MB | 470 kB | +| 3.41 MB | 1.41 MB | 472 kB | #### CDN links -> https://cdn.plot.ly/plotly-geo-4.1.2.js +> https://cdn.plot.ly/plotly-geo-4.2.0.js -> https://cdn.plot.ly/plotly-geo-4.1.2.min.js +> https://cdn.plot.ly/plotly-geo-4.2.0.min.js #### npm packages @@ -160,12 +160,12 @@ The `gl3d` partial bundle contains trace modules `cone`, `isosurface`, `mesh3d`, | Raw size | Minified size | Minified + gzip size | |------|-----------------|------------------------| -| 4.46 MB | 1.76 MB | 564 kB | +| 4.47 MB | 1.76 MB | 566 kB | #### CDN links -> https://cdn.plot.ly/plotly-gl3d-4.1.2.js +> https://cdn.plot.ly/plotly-gl3d-4.2.0.js -> https://cdn.plot.ly/plotly-gl3d-4.1.2.min.js +> https://cdn.plot.ly/plotly-gl3d-4.2.0.min.js #### npm packages @@ -183,12 +183,12 @@ The `gl2d` partial bundle contains trace modules `parcoords`, `scatter`, `scatte | Raw size | Minified size | Minified + gzip size | |------|-----------------|------------------------| -| 3.7 MB | 1.49 MB | 502 kB | +| 3.71 MB | 1.5 MB | 504 kB | #### CDN links -> https://cdn.plot.ly/plotly-gl2d-4.1.2.js +> https://cdn.plot.ly/plotly-gl2d-4.2.0.js -> https://cdn.plot.ly/plotly-gl2d-4.1.2.min.js +> https://cdn.plot.ly/plotly-gl2d-4.2.0.min.js #### npm packages @@ -206,12 +206,12 @@ The `map` partial bundle contains trace modules `choroplethmap`, `densitymap`, ` | Raw size | Minified size | Minified + gzip size | |------|-----------------|------------------------| -| 5.41 MB | 2.98 MB | 892 kB | +| 5.42 MB | 2.98 MB | 894 kB | #### CDN links -> https://cdn.plot.ly/plotly-map-4.1.2.js +> https://cdn.plot.ly/plotly-map-4.2.0.js -> https://cdn.plot.ly/plotly-map-4.1.2.min.js +> https://cdn.plot.ly/plotly-map-4.2.0.min.js #### npm packages @@ -229,12 +229,12 @@ The `finance` partial bundle contains trace modules `bar`, `candlestick`, `funne | Raw size | Minified size | Minified + gzip size | |------|-----------------|------------------------| -| 3.21 MB | 1.3 MB | 436 kB | +| 3.22 MB | 1.31 MB | 437 kB | #### CDN links -> https://cdn.plot.ly/plotly-finance-4.1.2.js +> https://cdn.plot.ly/plotly-finance-4.2.0.js -> https://cdn.plot.ly/plotly-finance-4.1.2.min.js +> https://cdn.plot.ly/plotly-finance-4.2.0.min.js #### npm packages @@ -255,9 +255,9 @@ The `strict` partial bundle contains trace modules `bar`, `barpolar`, `box`, `ca | 11 MB | 5.18 MB | 1.59 MB | #### CDN links -> https://cdn.plot.ly/plotly-strict-4.1.2.js +> https://cdn.plot.ly/plotly-strict-4.2.0.js -> https://cdn.plot.ly/plotly-strict-4.1.2.min.js +> https://cdn.plot.ly/plotly-strict-4.2.0.min.js #### npm packages diff --git a/dist/plot-schema.json b/dist/plot-schema.json index 3f8728d1b01..4d51312e82d 100644 --- a/dist/plot-schema.json +++ b/dist/plot-schema.json @@ -2830,7 +2830,7 @@ }, "hoverlabel": { "align": { - "description": "Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines", + "description": "Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans two or more lines", "dflt": "auto", "editType": "none", "valType": "enumerated", @@ -3470,6 +3470,13 @@ false ] }, + "itemheight": { + "description": "Sets the height (in px) of the legend item fill swatch. A taller swatch shows more of a trace *fill* or *fillpattern*. Only traces with a *fill* use this value. Every legend item grows to fit, so a larger value makes every row taller.", + "dflt": 6, + "editType": "legend", + "min": 6, + "valType": "number" + }, "itemsizing": { "description": "Determines if the legend items symbols scale with their corresponding *trace* attributes or remain *constant* independent of the symbol size on the graph.", "dflt": "trace", @@ -10816,6 +10823,12 @@ "editType": "plot", "valType": "boolean" }, + "showspikes": { + "description": "Determines whether or not spikes (aka droplines) are drawn for this axis. Ternary spikes are accompanied by axis value labels formatted according to `hoverformat`.", + "dflt": false, + "editType": "plot", + "valType": "boolean" + }, "showticklabels": { "description": "Determines whether or not the tick labels are drawn.", "dflt": true, @@ -10846,6 +10859,54 @@ "none" ] }, + "spikecolor": { + "description": "Sets the spike color. If undefined, will use the series color", + "dflt": null, + "editType": "plot", + "valType": "color" + }, + "spikedash": { + "description": "Sets the dash style of lines. Set to a dash type string (*solid*, *dot*, *dash*, *longdash*, *dashdot*, or *longdashdot*) or a dash length list in px (eg *5px,10px,2px,2px*).", + "dflt": "dash", + "editType": "plot", + "valType": "string", + "values": [ + "solid", + "dot", + "dash", + "longdash", + "dashdot", + "longdashdot" + ] + }, + "spikemode": { + "description": "Determines the drawing mode for the spike line If *toaxis*, the line is drawn from the data point to the axis the series is plotted on. If *across*, the line is drawn across the entire plot area, and supercedes *toaxis*. If *marker*, then a marker dot is drawn on the axis the series is plotted on", + "dflt": "toaxis", + "editType": "plot", + "flags": [ + "toaxis", + "across", + "marker" + ], + "valType": "flaglist" + }, + "spikesnap": { + "description": "Determines whether spikelines are stuck to the cursor or to the closest datapoints.", + "dflt": "hovered data", + "editType": "plot", + "valType": "enumerated", + "values": [ + "data", + "cursor", + "hovered data" + ] + }, + "spikethickness": { + "description": "Sets the spike line width in pixels.", + "dflt": 3, + "editType": "plot", + "valType": "number" + }, "tick0": { "description": "Sets the placement of the first tick on this axis. Use with `dtick`. If the axis `type` is *log*, then you must take the log of your starting tick (e.g. to set the starting tick to 100, set the `tick0` to 2) except when `dtick`=*L* (see `dtick` for more info). If the axis `type` is *date*, it should be a date string, like date data. If the axis `type` is *category*, it should be a number, using the scale where each category is assigned a serial number from zero in the order it appears.", "editType": "plot", @@ -11320,6 +11381,12 @@ "editType": "plot", "valType": "boolean" }, + "showspikes": { + "description": "Determines whether or not spikes (aka droplines) are drawn for this axis. Ternary spikes are accompanied by axis value labels formatted according to `hoverformat`.", + "dflt": false, + "editType": "plot", + "valType": "boolean" + }, "showticklabels": { "description": "Determines whether or not the tick labels are drawn.", "dflt": true, @@ -11350,6 +11417,54 @@ "none" ] }, + "spikecolor": { + "description": "Sets the spike color. If undefined, will use the series color", + "dflt": null, + "editType": "plot", + "valType": "color" + }, + "spikedash": { + "description": "Sets the dash style of lines. Set to a dash type string (*solid*, *dot*, *dash*, *longdash*, *dashdot*, or *longdashdot*) or a dash length list in px (eg *5px,10px,2px,2px*).", + "dflt": "dash", + "editType": "plot", + "valType": "string", + "values": [ + "solid", + "dot", + "dash", + "longdash", + "dashdot", + "longdashdot" + ] + }, + "spikemode": { + "description": "Determines the drawing mode for the spike line If *toaxis*, the line is drawn from the data point to the axis the series is plotted on. If *across*, the line is drawn across the entire plot area, and supercedes *toaxis*. If *marker*, then a marker dot is drawn on the axis the series is plotted on", + "dflt": "toaxis", + "editType": "plot", + "flags": [ + "toaxis", + "across", + "marker" + ], + "valType": "flaglist" + }, + "spikesnap": { + "description": "Determines whether spikelines are stuck to the cursor or to the closest datapoints.", + "dflt": "hovered data", + "editType": "plot", + "valType": "enumerated", + "values": [ + "data", + "cursor", + "hovered data" + ] + }, + "spikethickness": { + "description": "Sets the spike line width in pixels.", + "dflt": 3, + "editType": "plot", + "valType": "number" + }, "tick0": { "description": "Sets the placement of the first tick on this axis. Use with `dtick`. If the axis `type` is *log*, then you must take the log of your starting tick (e.g. to set the starting tick to 100, set the `tick0` to 2) except when `dtick`=*L* (see `dtick` for more info). If the axis `type` is *date*, it should be a date string, like date data. If the axis `type` is *category*, it should be a number, using the scale where each category is assigned a serial number from zero in the order it appears.", "editType": "plot", @@ -11830,6 +11945,12 @@ "editType": "plot", "valType": "boolean" }, + "showspikes": { + "description": "Determines whether or not spikes (aka droplines) are drawn for this axis. Ternary spikes are accompanied by axis value labels formatted according to `hoverformat`.", + "dflt": false, + "editType": "plot", + "valType": "boolean" + }, "showticklabels": { "description": "Determines whether or not the tick labels are drawn.", "dflt": true, @@ -11860,6 +11981,54 @@ "none" ] }, + "spikecolor": { + "description": "Sets the spike color. If undefined, will use the series color", + "dflt": null, + "editType": "plot", + "valType": "color" + }, + "spikedash": { + "description": "Sets the dash style of lines. Set to a dash type string (*solid*, *dot*, *dash*, *longdash*, *dashdot*, or *longdashdot*) or a dash length list in px (eg *5px,10px,2px,2px*).", + "dflt": "dash", + "editType": "plot", + "valType": "string", + "values": [ + "solid", + "dot", + "dash", + "longdash", + "dashdot", + "longdashdot" + ] + }, + "spikemode": { + "description": "Determines the drawing mode for the spike line If *toaxis*, the line is drawn from the data point to the axis the series is plotted on. If *across*, the line is drawn across the entire plot area, and supercedes *toaxis*. If *marker*, then a marker dot is drawn on the axis the series is plotted on", + "dflt": "toaxis", + "editType": "plot", + "flags": [ + "toaxis", + "across", + "marker" + ], + "valType": "flaglist" + }, + "spikesnap": { + "description": "Determines whether spikelines are stuck to the cursor or to the closest datapoints.", + "dflt": "hovered data", + "editType": "plot", + "valType": "enumerated", + "values": [ + "data", + "cursor", + "hovered data" + ] + }, + "spikethickness": { + "description": "Sets the spike line width in pixels.", + "dflt": 3, + "editType": "plot", + "valType": "number" + }, "tick0": { "description": "Sets the placement of the first tick on this axis. Use with `dtick`. If the axis `type` is *log*, then you must take the log of your starting tick (e.g. to set the starting tick to 100, set the `tick0` to 2) except when `dtick`=*L* (see `dtick` for more info). If the axis `type` is *date*, it should be a date string, like date data. If the axis `type` is *category*, it should be a number, using the scale where each category is assigned a serial number from zero in the order it appears.", "editType": "plot", @@ -16035,7 +16204,7 @@ "hoverlabel": { "align": { "arrayOk": true, - "description": "Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines", + "description": "Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans two or more lines", "dflt": "auto", "editType": "none", "valType": "enumerated", @@ -17904,7 +18073,7 @@ "hoverlabel": { "align": { "arrayOk": true, - "description": "Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines", + "description": "Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans two or more lines", "dflt": "auto", "editType": "none", "valType": "enumerated", @@ -19300,7 +19469,7 @@ "hoverlabel": { "align": { "arrayOk": true, - "description": "Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines", + "description": "Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans two or more lines", "dflt": "auto", "editType": "none", "valType": "enumerated", @@ -20670,7 +20839,7 @@ "hoverlabel": { "align": { "arrayOk": true, - "description": "Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines", + "description": "Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans two or more lines", "dflt": "auto", "editType": "none", "valType": "enumerated", @@ -23505,7 +23674,7 @@ "hoverlabel": { "align": { "arrayOk": true, - "description": "Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines", + "description": "Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans two or more lines", "dflt": "auto", "editType": "none", "valType": "enumerated", @@ -24645,7 +24814,7 @@ "hoverlabel": { "align": { "arrayOk": true, - "description": "Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines", + "description": "Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans two or more lines", "dflt": "auto", "editType": "none", "valType": "enumerated", @@ -25814,7 +25983,7 @@ "hoverlabel": { "align": { "arrayOk": true, - "description": "Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines", + "description": "Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans two or more lines", "dflt": "auto", "editType": "none", "valType": "enumerated", @@ -27110,7 +27279,7 @@ "valType": "string" }, "operation": { - "description": "Sets the constraint operation. *=* keeps regions equal to `value` *<* and *<=* keep regions less than `value` *>* and *>=* keep regions greater than `value` *[]*, *()*, *[)*, and *(]* keep regions inside `value[0]` to `value[1]` *][*, *)(*, *](*, *)[* keep regions outside `value[0]` to value[1]` Open vs. closed intervals make no difference to constraint display, but all versions are allowed.", + "description": "Sets the constraint operation. *=* keeps regions equal to `value` *<* and *<=* keep regions less than `value` *>* and *>=* keep regions greater than `value` *[]*, *()*, *[)*, and *(]* keep regions inside `value[0]` to `value[1]` *][*, *)(*, *](*, *)[* keep regions outside `value[0]` to `value[1]` Open vs. closed intervals make no difference to constraint display, but all versions are allowed.", "dflt": "=", "editType": "calc", "valType": "enumerated", @@ -27229,7 +27398,7 @@ "hoverlabel": { "align": { "arrayOk": true, - "description": "Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines", + "description": "Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans two or more lines", "dflt": "auto", "editType": "none", "valType": "enumerated", @@ -27549,7 +27718,7 @@ "valType": "number" }, "width": { - "description": "Sets the contour line width in (in px) Defaults to *0.5* when `contours.type` is *levels*. Defaults to *2* when `contour.type` is *constraint*.", + "description": "Sets the contour line width (in px) Defaults to *0.5* when `contours.type` is *levels*. Defaults to *2* when `contours.type` is *constraint*.", "editType": "style+colorbars", "min": 0, "valType": "number" @@ -27610,7 +27779,7 @@ "editType": "style", "valType": "color" }, - "description": "For this trace it only has an effect if `coloring` is set to *heatmap*. Sets the text font.", + "description": "For this trace it only has an effect if `contours.coloring` is set to *heatmap*. Sets the text font.", "editType": "plot", "family": { "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", @@ -27696,7 +27865,7 @@ } }, "texttemplate": { - "description": "For this trace it only has an effect if `coloring` is set to *heatmap*. Template string used for rendering the information text that appears on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example \"y: %{y}\". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example \"Price: %{y:$.2f}\". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example \"Day: %{2019-01-01|%A}\". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Variables that can't be found will be replaced with the specifier. For example, a template of \"data: %{x}, %{y}\" will result in a value of \"data: 1, %{y}\" if x is 1 and y is missing. Variables with an undefined value will be replaced with the fallback value. All attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variables `x`, `y`, `z` and `text`.", + "description": "For this trace it only has an effect if `contours.coloring` is set to *heatmap*. Template string used for rendering the information text that appears on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example \"y: %{y}\". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example \"Price: %{y:$.2f}\". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example \"Day: %{2019-01-01|%A}\". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Variables that can't be found will be replaced with the specifier. For example, a template of \"data: %{x}, %{y}\" will result in a value of \"data: 1, %{y}\" if x is 1 and y is missing. Variables with an undefined value will be replaced with the fallback value. All attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variables `x`, `y`, `z` and `text`.", "dflt": "", "editType": "plot", "valType": "string" @@ -28786,7 +28955,7 @@ "valType": "string" }, "operation": { - "description": "Sets the constraint operation. *=* keeps regions equal to `value` *<* and *<=* keep regions less than `value` *>* and *>=* keep regions greater than `value` *[]*, *()*, *[)*, and *(]* keep regions inside `value[0]` to `value[1]` *][*, *)(*, *](*, *)[* keep regions outside `value[0]` to value[1]` Open vs. closed intervals make no difference to constraint display, but all versions are allowed.", + "description": "Sets the constraint operation. *=* keeps regions equal to `value` *<* and *<=* keep regions less than `value` *>* and *>=* keep regions greater than `value` *[]*, *()*, *[)*, and *(]* keep regions inside `value[0]` to `value[1]` *][*, *)(*, *](*, *)[* keep regions outside `value[0]` to `value[1]` Open vs. closed intervals make no difference to constraint display, but all versions are allowed.", "dflt": "=", "editType": "calc", "valType": "enumerated", @@ -29047,7 +29216,7 @@ "valType": "number" }, "width": { - "description": "Sets the contour line width in (in px) Defaults to *0.5* when `contours.type` is *levels*. Defaults to *2* when `contour.type` is *constraint*.", + "description": "Sets the contour line width (in px) Defaults to *0.5* when `contours.type` is *levels*. Defaults to *2* when `contours.type` is *constraint*.", "editType": "style+colorbars", "min": 0, "valType": "number" @@ -29859,7 +30028,7 @@ "hoverlabel": { "align": { "arrayOk": true, - "description": "Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines", + "description": "Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans two or more lines", "dflt": "auto", "editType": "none", "valType": "enumerated", @@ -30397,7 +30566,7 @@ "hoverlabel": { "align": { "arrayOk": true, - "description": "Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines", + "description": "Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans two or more lines", "dflt": "auto", "editType": "none", "valType": "enumerated", @@ -32140,7 +32309,7 @@ "hoverlabel": { "align": { "arrayOk": true, - "description": "Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines", + "description": "Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans two or more lines", "dflt": "auto", "editType": "none", "valType": "enumerated", @@ -33656,7 +33825,7 @@ "hoverlabel": { "align": { "arrayOk": true, - "description": "Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines", + "description": "Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans two or more lines", "dflt": "auto", "editType": "none", "valType": "enumerated", @@ -34681,7 +34850,7 @@ "hoverlabel": { "align": { "arrayOk": true, - "description": "Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines", + "description": "Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans two or more lines", "dflt": "auto", "editType": "none", "valType": "enumerated", @@ -37143,7 +37312,7 @@ "hoverlabel": { "align": { "arrayOk": true, - "description": "Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines", + "description": "Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans two or more lines", "dflt": "auto", "editType": "none", "valType": "enumerated", @@ -38591,7 +38760,7 @@ "valType": "string" }, "operation": { - "description": "Sets the constraint operation. *=* keeps regions equal to `value` *<* and *<=* keep regions less than `value` *>* and *>=* keep regions greater than `value` *[]*, *()*, *[)*, and *(]* keep regions inside `value[0]` to `value[1]` *][*, *)(*, *](*, *)[* keep regions outside `value[0]` to value[1]` Open vs. closed intervals make no difference to constraint display, but all versions are allowed.", + "description": "Sets the constraint operation. *=* keeps regions equal to `value` *<* and *<=* keep regions less than `value` *>* and *>=* keep regions greater than `value` *[]*, *()*, *[)*, and *(]* keep regions inside `value[0]` to `value[1]` *][*, *)(*, *](*, *)[* keep regions outside `value[0]` to `value[1]` Open vs. closed intervals make no difference to constraint display, but all versions are allowed.", "dflt": "=", "editType": "calc", "valType": "enumerated", @@ -38713,7 +38882,7 @@ "hoverlabel": { "align": { "arrayOk": true, - "description": "Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines", + "description": "Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans two or more lines", "dflt": "auto", "editType": "none", "valType": "enumerated", @@ -39102,7 +39271,7 @@ "editType": "style", "valType": "color" }, - "description": "For this trace it only has an effect if `coloring` is set to *heatmap*. Sets the text font.", + "description": "For this trace it only has an effect if `contours.coloring` is set to *heatmap*. Sets the text font.", "editType": "plot", "family": { "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", @@ -39188,7 +39357,7 @@ } }, "texttemplate": { - "description": "For this trace it only has an effect if `coloring` is set to *heatmap*. Template string used for rendering the information text that appears on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example \"y: %{y}\". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example \"Price: %{y:$.2f}\". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example \"Day: %{2019-01-01|%A}\". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Variables that can't be found will be replaced with the specifier. For example, a template of \"data: %{x}, %{y}\" will result in a value of \"data: 1, %{y}\" if x is 1 and y is missing. Variables with an undefined value will be replaced with the fallback value. All attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variables `x`, `y`, `z` and `text`.", + "description": "For this trace it only has an effect if `contours.coloring` is set to *heatmap*. Template string used for rendering the information text that appears on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example \"y: %{y}\". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example \"Price: %{y:$.2f}\". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example \"Day: %{2019-01-01|%A}\". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Variables that can't be found will be replaced with the specifier. For example, a template of \"data: %{x}, %{y}\" will result in a value of \"data: 1, %{y}\" if x is 1 and y is missing. Variables with an undefined value will be replaced with the fallback value. All attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variables `x`, `y`, `z` and `text`.", "dflt": "", "editType": "plot", "valType": "string" @@ -39528,7 +39697,7 @@ "hoverlabel": { "align": { "arrayOk": true, - "description": "Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines", + "description": "Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans two or more lines", "dflt": "auto", "editType": "none", "valType": "enumerated", @@ -41259,7 +41428,7 @@ "hoverlabel": { "align": { "arrayOk": true, - "description": "Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines", + "description": "Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans two or more lines", "dflt": "auto", "editType": "none", "valType": "enumerated", @@ -43621,7 +43790,7 @@ "hoverlabel": { "align": { "arrayOk": true, - "description": "Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines", + "description": "Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans two or more lines", "dflt": "auto", "editType": "none", "valType": "enumerated", @@ -45006,7 +45175,7 @@ "hoverlabel": { "align": { "arrayOk": true, - "description": "Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines", + "description": "Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans two or more lines", "dflt": "auto", "editType": "none", "valType": "enumerated", @@ -45676,7 +45845,7 @@ "hoverlabel": { "align": { "arrayOk": true, - "description": "Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines", + "description": "Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans two or more lines", "dflt": "auto", "editType": "none", "valType": "enumerated", @@ -48913,7 +49082,7 @@ "hoverlabel": { "align": { "arrayOk": true, - "description": "Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines", + "description": "Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans two or more lines", "dflt": "auto", "editType": "none", "valType": "enumerated", @@ -49961,7 +50130,7 @@ "hoverlabel": { "align": { "arrayOk": true, - "description": "Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines", + "description": "Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans two or more lines", "dflt": "auto", "editType": "none", "valType": "enumerated", @@ -51394,7 +51563,7 @@ "hoverlabel": { "align": { "arrayOk": true, - "description": "Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines", + "description": "Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans two or more lines", "dflt": "auto", "editType": "calc", "valType": "enumerated", @@ -51749,7 +51918,7 @@ "hoverlabel": { "align": { "arrayOk": true, - "description": "Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines", + "description": "Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans two or more lines", "dflt": "auto", "editType": "calc", "valType": "enumerated", @@ -52021,7 +52190,7 @@ "hoverlabel": { "align": { "arrayOk": true, - "description": "Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines", + "description": "Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans two or more lines", "dflt": "auto", "editType": "calc", "valType": "enumerated", @@ -52744,7 +52913,7 @@ "hoverlabel": { "align": { "arrayOk": true, - "description": "Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines", + "description": "Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans two or more lines", "dflt": "auto", "editType": "none", "valType": "enumerated", @@ -55237,7 +55406,7 @@ "hoverlabel": { "align": { "arrayOk": true, - "description": "Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines", + "description": "Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans two or more lines", "dflt": "auto", "editType": "none", "valType": "enumerated", @@ -57472,7 +57641,7 @@ "hoverlabel": { "align": { "arrayOk": true, - "description": "Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines", + "description": "Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans two or more lines", "dflt": "auto", "editType": "none", "valType": "enumerated", @@ -59551,7 +59720,7 @@ "hoverlabel": { "align": { "arrayOk": true, - "description": "Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines", + "description": "Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans two or more lines", "dflt": "auto", "editType": "none", "valType": "enumerated", @@ -61758,7 +61927,7 @@ "hoverlabel": { "align": { "arrayOk": true, - "description": "Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines", + "description": "Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans two or more lines", "dflt": "auto", "editType": "none", "valType": "enumerated", @@ -63866,7 +64035,7 @@ "hoverlabel": { "align": { "arrayOk": true, - "description": "Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines", + "description": "Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans two or more lines", "dflt": "auto", "editType": "none", "valType": "enumerated", @@ -65198,7 +65367,7 @@ "hoverlabel": { "align": { "arrayOk": true, - "description": "Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines", + "description": "Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans two or more lines", "dflt": "auto", "editType": "none", "valType": "enumerated", @@ -67293,7 +67462,7 @@ "hoverlabel": { "align": { "arrayOk": true, - "description": "Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines", + "description": "Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans two or more lines", "dflt": "auto", "editType": "none", "valType": "enumerated", @@ -69242,7 +69411,7 @@ "hoverlabel": { "align": { "arrayOk": true, - "description": "Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines", + "description": "Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans two or more lines", "dflt": "auto", "editType": "none", "valType": "enumerated", @@ -71321,7 +71490,7 @@ "hoverlabel": { "align": { "arrayOk": true, - "description": "Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines", + "description": "Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans two or more lines", "dflt": "auto", "editType": "none", "valType": "enumerated", @@ -73421,7 +73590,7 @@ "hoverlabel": { "align": { "arrayOk": true, - "description": "Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines", + "description": "Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans two or more lines", "dflt": "auto", "editType": "none", "valType": "enumerated", @@ -75857,7 +76026,7 @@ "hoverlabel": { "align": { "arrayOk": true, - "description": "Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines", + "description": "Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans two or more lines", "dflt": "auto", "editType": "none", "valType": "enumerated", @@ -76526,7 +76695,7 @@ "hoverlabel": { "align": { "arrayOk": true, - "description": "Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines", + "description": "Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans two or more lines", "dflt": "auto", "editType": "none", "valType": "enumerated", @@ -79006,7 +79175,7 @@ "hoverlabel": { "align": { "arrayOk": true, - "description": "Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines", + "description": "Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans two or more lines", "dflt": "auto", "editType": "none", "valType": "enumerated", @@ -80014,7 +80183,7 @@ "hoverlabel": { "align": { "arrayOk": true, - "description": "Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines", + "description": "Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans two or more lines", "dflt": "auto", "editType": "none", "valType": "enumerated", @@ -80432,7 +80601,7 @@ "hoverlabel": { "align": { "arrayOk": true, - "description": "Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines", + "description": "Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans two or more lines", "dflt": "auto", "editType": "none", "valType": "enumerated", @@ -82238,7 +82407,7 @@ "hoverlabel": { "align": { "arrayOk": true, - "description": "Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines", + "description": "Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans two or more lines", "dflt": "auto", "editType": "none", "valType": "enumerated", @@ -84226,7 +84395,7 @@ "hoverlabel": { "align": { "arrayOk": true, - "description": "Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines", + "description": "Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans two or more lines", "dflt": "auto", "editType": "none", "valType": "enumerated", @@ -85035,7 +85204,7 @@ "hoverlabel": { "align": { "arrayOk": true, - "description": "Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines", + "description": "Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans two or more lines", "dflt": "auto", "editType": "none", "valType": "enumerated", diff --git a/dist/plotly-basic.js b/dist/plotly-basic.js index 8e438424a07..5aac0a61dfe 100644 --- a/dist/plotly-basic.js +++ b/dist/plotly-basic.js @@ -1,5 +1,5 @@ /** -* plotly.js (basic) v4.1.2 +* plotly.js (basic) v4.2.0 * Copyright 2012-2026, Plotly, Inc. * All rights reserved. * Licensed under the MIT license @@ -110,7 +110,7 @@ var Plotly = (() => { var require_version = __commonJS({ "src/version.js"(exports) { "use strict"; - exports.version = "4.1.2"; + exports.version = "4.2.0"; } }); @@ -17760,9 +17760,9 @@ var Plotly = (() => { var require_maplibre_gl = __commonJS({ "node_modules/maplibre-gl/dist/maplibre-gl.css"() { (function() { - if (!document.getElementById("ce8d464691048653ffe3a57c6c18ab566e8366f186677868cf724621a857b4fe")) { + if (!document.getElementById("9f215cf04c5486422605d13261cb87401f4e7763b6296af81e98efbc0130da53")) { var e = document.createElement("style"); - e.id = "ce8d464691048653ffe3a57c6c18ab566e8366f186677868cf724621a857b4fe"; + e.id = "9f215cf04c5486422605d13261cb87401f4e7763b6296af81e98efbc0130da53"; e.textContent = `.maplibregl-map{font:12px/20px Helvetica Neue,Arial,Helvetica,sans-serif;overflow:hidden;position:relative;-webkit-tap-highlight-color:rgb(0 0 0/0);-webkit-touch-callout:none}.maplibregl-canvas{position:absolute;left:0;top:0}.maplibregl-map:fullscreen{width:100%;height:100%}.maplibregl-ctrl-group button.maplibregl-ctrl-compass{touch-action:none}.maplibregl-canvas-container.maplibregl-interactive,.maplibregl-ctrl-group button.maplibregl-ctrl-compass{cursor:grab;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-canvas-container.maplibregl-interactive.maplibregl-track-pointer{cursor:pointer}.maplibregl-canvas-container.maplibregl-interactive:active,.maplibregl-ctrl-group button.maplibregl-ctrl-compass:active{cursor:grabbing}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-canvas-container.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:pinch-zoom}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:none}.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures,.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-ctrl-bottom-left,.maplibregl-ctrl-bottom-right,.maplibregl-ctrl-top-left,.maplibregl-ctrl-top-right{position:absolute;pointer-events:none;z-index:2}.maplibregl-ctrl-top-left{top:0;left:0}.maplibregl-ctrl-top-right{top:0;right:0}.maplibregl-ctrl-bottom-left{bottom:0;left:0}.maplibregl-ctrl-bottom-right{right:0;bottom:0}.maplibregl-ctrl{clear:both;pointer-events:auto;transform:translate(0)}.maplibregl-ctrl-top-left .maplibregl-ctrl{margin:10px 0 0 10px;float:left}.maplibregl-ctrl-top-right .maplibregl-ctrl{margin:10px 10px 0 0;float:right}.maplibregl-ctrl-bottom-left .maplibregl-ctrl{margin:0 0 10px 10px;float:left}.maplibregl-ctrl-bottom-right .maplibregl-ctrl{margin:0 10px 10px 0;float:right}.maplibregl-ctrl-group{border-radius:4px;background:#fff}.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px rgba(0,0,0,.1)}@media (forced-colors:active){.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px ButtonText}}.maplibregl-ctrl-group button{width:29px;height:29px;display:block;padding:0;outline:none;border:0;box-sizing:border-box;background-color:transparent;cursor:pointer}.maplibregl-ctrl button{-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-ctrl-group button+button{border-top:1px solid #ddd}.maplibregl-ctrl button .maplibregl-ctrl-icon{display:block;width:100%;height:100%;background-repeat:no-repeat;background-position:50%}@media (forced-colors:active){.maplibregl-ctrl-icon{background-color:transparent}.maplibregl-ctrl-group button+button{border-top:1px solid ButtonText}}.maplibregl-ctrl button::-moz-focus-inner{border:0;padding:0}.maplibregl-ctrl-attrib-button:focus,.maplibregl-ctrl-group button:focus{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl button:disabled{cursor:not-allowed}.maplibregl-ctrl button:disabled .maplibregl-ctrl-icon{opacity:.25}@media (hover:hover){.maplibregl-ctrl button:not(:disabled):hover{background-color:rgba(0,0,0,.05)}}.maplibregl-ctrl button:not(:disabled):active{background-color:rgba(0,0,0,.05)}.maplibregl-ctrl-group button:focus:focus-visible{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl-group button:focus:not(:focus-visible){box-shadow:none}.maplibregl-ctrl-group button:focus:first-child{border-radius:4px 4px 0 0}.maplibregl-ctrl-group button:focus:last-child{border-radius:0 0 4px 4px}.maplibregl-ctrl-group button:focus:only-child{border-radius:inherit}.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M10%2013c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h9c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M14.5%208.5c-.75%200-1.5.75-1.5%201.5v3h-3c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h3v3c0%20.75.75%201.5%201.5%201.5S16%2019.75%2016%2019v-3h3c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013h-3v-3c0-.75-.75-1.5-1.5-1.5%22%2F%3E%3C%2Fsvg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M10%2013c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h9c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M14.5%208.5c-.75%200-1.5.75-1.5%201.5v3h-3c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h3v3c0%20.75.75%201.5%201.5%201.5S16%2019.75%2016%2019v-3h3c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013h-3v-3c0-.75-.75-1.5-1.5-1.5%22%2F%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M10%2013c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h9c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M14.5%208.5c-.75%200-1.5.75-1.5%201.5v3h-3c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h3v3c0%20.75.75%201.5%201.5%201.5S16%2019.75%2016%2019v-3h3c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013h-3v-3c0-.75-.75-1.5-1.5-1.5%22%2F%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M24%2016v5.5c0%201.75-.75%202.5-2.5%202.5H16v-1l3-1.5-4-5.5%201-1%205.5%204%201.5-3zM6%2016l1.5%203%205.5-4%201%201-4%205.5%203%201.5v1H7.5C5.75%2024%205%2023.25%205%2021.5V16zm7-11v1l-3%201.5%204%205.5-1%201-5.5-4L6%2013H5V7.5C5%205.75%205.75%205%207.5%205zm11%202.5c0-1.75-.75-2.5-2.5-2.5H16v1l3%201.5-4%205.5%201%201%205.5-4%201.5%203h1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M18.5%2016c-1.75%200-2.5.75-2.5%202.5V24h1l1.5-3%205.5%204%201-1-4-5.5%203-1.5v-1zM13%2018.5c0-1.75-.75-2.5-2.5-2.5H5v1l3%201.5L4%2024l1%201%205.5-4%201.5%203h1zm3-8c0%201.75.75%202.5%202.5%202.5H24v-1l-3-1.5L25%205l-1-1-5.5%204L17%205h-1zM10.5%2013c1.75%200%202.5-.75%202.5-2.5V5h-1l-1.5%203L5%204%204%205l4%205.5L5%2012v1z%22%2F%3E%3C%2Fsvg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M24%2016v5.5c0%201.75-.75%202.5-2.5%202.5H16v-1l3-1.5-4-5.5%201-1%205.5%204%201.5-3zM6%2016l1.5%203%205.5-4%201%201-4%205.5%203%201.5v1H7.5C5.75%2024%205%2023.25%205%2021.5V16zm7-11v1l-3%201.5%204%205.5-1%201-5.5-4L6%2013H5V7.5C5%205.75%205.75%205%207.5%205zm11%202.5c0-1.75-.75-2.5-2.5-2.5H16v1l3%201.5-4%205.5%201%201%205.5-4%201.5%203h1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M18.5%2016c-1.75%200-2.5.75-2.5%202.5V24h1l1.5-3%205.5%204%201-1-4-5.5%203-1.5v-1zM13%2018.5c0-1.75-.75-2.5-2.5-2.5H5v1l3%201.5L4%2024l1%201%205.5-4%201.5%203h1zm3-8c0%201.75.75%202.5%202.5%202.5H24v-1l-3-1.5L25%205l-1-1-5.5%204L17%205h-1zM10.5%2013c1.75%200%202.5-.75%202.5-2.5V5h-1l-1.5%203L5%204%204%205l4%205.5L5%2012v1z%22%2F%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M24%2016v5.5c0%201.75-.75%202.5-2.5%202.5H16v-1l3-1.5-4-5.5%201-1%205.5%204%201.5-3zM6%2016l1.5%203%205.5-4%201%201-4%205.5%203%201.5v1H7.5C5.75%2024%205%2023.25%205%2021.5V16zm7-11v1l-3%201.5%204%205.5-1%201-5.5-4L6%2013H5V7.5C5%205.75%205.75%205%207.5%205zm11%202.5c0-1.75-.75-2.5-2.5-2.5H16v1l3%201.5-4%205.5%201%201%205.5-4%201.5%203h1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M18.5%2016c-1.75%200-2.5.75-2.5%202.5V24h1l1.5-3%205.5%204%201-1-4-5.5%203-1.5v-1zM13%2018.5c0-1.75-.75-2.5-2.5-2.5H5v1l3%201.5L4%2024l1%201%205.5-4%201.5%203h1zm3-8c0%201.75.75%202.5%202.5%202.5H24v-1l-3-1.5L25%205l-1-1-5.5%204L17%205h-1zM10.5%2013c1.75%200%202.5-.75%202.5-2.5V5h-1l-1.5%203L5%204%204%205l4%205.5L5%2012v1z%22%2F%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22m10.5%2014%204-8%204%208z%22%2F%3E%3Cpath%20fill%3D%22%23ccc%22%20d%3D%22m10.5%2016%204%208%204-8z%22%2F%3E%3C%2Fsvg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22m10.5%2014%204-8%204%208z%22%2F%3E%3Cpath%20fill%3D%22%23ccc%22%20d%3D%22m10.5%2016%204%208%204-8z%22%2F%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22m10.5%2014%204-8%204%208z%22%2F%3E%3Cpath%20fill%3D%22%23ccc%22%20d%3D%22m10.5%2016%204%208%204-8z%22%2F%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-globe .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2222%22%20height%3D%2222%22%20fill%3D%22none%22%20stroke%3D%22%23333%22%20viewBox%3D%220%200%2022%2022%22%3E%3Ccircle%20cx%3D%2211%22%20cy%3D%2211%22%20r%3D%228.5%22%2F%3E%3Cpath%20d%3D%22M17.5%2011c0%204.819-3.02%208.5-6.5%208.5S4.5%2015.819%204.5%2011%207.52%202.5%2011%202.5s6.5%203.681%206.5%208.5Z%22%2F%3E%3Cpath%20d%3D%22M13.5%2011c0%202.447-.331%204.64-.853%206.206-.262.785-.562%201.384-.872%201.777-.314.399-.58.517-.775.517s-.461-.118-.775-.517c-.31-.393-.61-.992-.872-1.777C8.831%2015.64%208.5%2013.446%208.5%2011s.331-4.64.853-6.206c.262-.785.562-1.384.872-1.777.314-.399.58-.517.775-.517s.461.118.775.517c.31.393.61.992.872%201.777.522%201.565.853%203.76.853%206.206Z%22%2F%3E%3Cpath%20d%3D%22M11%207.5c-1.909%200-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3%201.3%200%200%201-.224-.138q.07-.058.224-.138c.299-.151.763-.302%201.379-.434C7.378%205.666%209.091%205.5%2011%205.5s3.622.166%204.845.428c.616.132%201.08.283%201.379.434.105.053.177.1.224.138q-.07.058-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm0%209c-1.909%200-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3%201.3%200%200%201-.224-.138%201.3%201.3%200%200%201%20.224-.138c.299-.151.763-.302%201.379-.434C7.378%2014.666%209.091%2014.5%2011%2014.5s3.622.166%204.845.428c.616.132%201.08.283%201.379.434.105.053.177.1.224.138a1.3%201.3%200%200%201-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm0-4c-2.46%200-4.672-.222-6.255-.574-.796-.177-1.406-.38-1.805-.59a1.5%201.5%200%200%201-.39-.272.3.3%200%200%201-.047-.064.3.3%200%200%201%20.048-.064c.066-.073.189-.167.389-.272.399-.21%201.009-.413%201.805-.59C6.328%209.722%208.54%209.5%2011%209.5s4.672.222%206.256.574c.795.177%201.405.38%201.804.59.2.105.323.2.39.272a.3.3%200%200%201%20.047.064.3.3%200%200%201-.048.064%201.4%201.4%200%200%201-.389.272c-.399.21-1.009.413-1.804.59-1.584.352-3.796.574-6.256.574Zm-8.501-1.51v.002zm0%20.018v.002zm17.002.002v-.002zm0-.018v-.002z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-globe-enabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2222%22%20height%3D%2222%22%20fill%3D%22none%22%20stroke%3D%22%2333b5e5%22%20viewBox%3D%220%200%2022%2022%22%3E%3Ccircle%20cx%3D%2211%22%20cy%3D%2211%22%20r%3D%228.5%22%2F%3E%3Cpath%20d%3D%22M17.5%2011c0%204.819-3.02%208.5-6.5%208.5S4.5%2015.819%204.5%2011%207.52%202.5%2011%202.5s6.5%203.681%206.5%208.5Z%22%2F%3E%3Cpath%20d%3D%22M13.5%2011c0%202.447-.331%204.64-.853%206.206-.262.785-.562%201.384-.872%201.777-.314.399-.58.517-.775.517s-.461-.118-.775-.517c-.31-.393-.61-.992-.872-1.777C8.831%2015.64%208.5%2013.446%208.5%2011s.331-4.64.853-6.206c.262-.785.562-1.384.872-1.777.314-.399.58-.517.775-.517s.461.118.775.517c.31.393.61.992.872%201.777.522%201.565.853%203.76.853%206.206Z%22%2F%3E%3Cpath%20d%3D%22M11%207.5c-1.909%200-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3%201.3%200%200%201-.224-.138q.07-.058.224-.138c.299-.151.763-.302%201.379-.434C7.378%205.666%209.091%205.5%2011%205.5s3.622.166%204.845.428c.616.132%201.08.283%201.379.434.105.053.177.1.224.138q-.07.058-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm0%209c-1.909%200-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3%201.3%200%200%201-.224-.138%201.3%201.3%200%200%201%20.224-.138c.299-.151.763-.302%201.379-.434C7.378%2014.666%209.091%2014.5%2011%2014.5s3.622.166%204.845.428c.616.132%201.08.283%201.379.434.105.053.177.1.224.138a1.3%201.3%200%200%201-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm0-4c-2.46%200-4.672-.222-6.255-.574-.796-.177-1.406-.38-1.805-.59a1.5%201.5%200%200%201-.39-.272.3.3%200%200%201-.047-.064.3.3%200%200%201%20.048-.064c.066-.073.189-.167.389-.272.399-.21%201.009-.413%201.805-.59C6.328%209.722%208.54%209.5%2011%209.5s4.672.222%206.256.574c.795.177%201.405.38%201.804.59.2.105.323.2.39.272a.3.3%200%200%201%20.047.064.3.3%200%200%201-.048.064%201.4%201.4%200%200%201-.389.272c-.399.21-1.009.413-1.804.59-1.584.352-3.796.574-6.256.574Zm-8.501-1.51v.002zm0%20.018v.002zm17.002.002v-.002zm0-.018v-.002z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-terrain .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2222%22%20height%3D%2222%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2022%2022%22%3E%3Cpath%20d%3D%22m1.754%2013.406%204.453-4.851%203.09%203.09%203.281%203.277.969-.969-3.309-3.312%203.844-4.121%206.148%206.886h1.082v-.855l-7.207-8.07-4.84%205.187L6.169%206.57l-5.48%205.965v.871ZM.688%2016.844h20.625v1.375H.688Zm0%200%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-terrain-enabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2222%22%20height%3D%2222%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2022%2022%22%3E%3Cpath%20d%3D%22m1.754%2013.406%204.453-4.851%203.09%203.09%203.281%203.277.969-.969-3.309-3.312%203.844-4.121%206.148%206.886h1.082v-.855l-7.207-8.07-4.84%205.187L6.169%206.57l-5.48%205.965v.871ZM.688%2016.844h20.625v1.375H.688Zm0%200%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23aaa%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3Cpath%20fill%3D%22red%22%20d%3D%22m14%205%201%201-9%209-1-1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23e58978%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23e54e33%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-waiting .maplibregl-ctrl-icon{animation:maplibregl-spin 2s linear infinite}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23999%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3Cpath%20fill%3D%22red%22%20d%3D%22m14%205%201%201-9%209-1-1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23e58978%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23e54e33%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23666%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3Cpath%20fill%3D%22red%22%20d%3D%22m14%205%201%201-9%209-1-1z%22%2F%3E%3C%2Fsvg%3E")}}@keyframes maplibregl-spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}a.maplibregl-ctrl-logo{width:88px;height:23px;margin:0 0 -4px -4px;display:block;background-repeat:no-repeat;cursor:pointer;overflow:hidden;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2288%22%20height%3D%2223%22%20fill%3D%22none%22%3E%3Cpath%20fill%3D%22%23000%22%20fill-opacity%3D%22.4%22%20fill-rule%3D%22evenodd%22%20d%3D%22M17.408%2016.796h-1.827l2.501-12.095h.198l3.324%206.533.988%202.19.988-2.19%203.258-6.533h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.929%205.644h-.098l-2.914-5.644-.757-1.71-.345%201.71zm1.958-3.42-.726%203.663a1.255%201.255%200%200%201-1.232%201.011h-1.827a1.255%201.255%200%200%201-1.229-1.509l2.501-12.095a1.255%201.255%200%200%201%201.23-1.001h.197a1.25%201.25%200%200%201%201.12.685l3.19%206.273%203.125-6.263a1.25%201.25%200%200%201%201.123-.695h.181a1.255%201.255%200%200%201%201.227.991l1.443%206.71a5%205%200%200%201%20.314-.787l.009-.016a4.6%204.6%200%200%201%201.777-1.887c.782-.46%201.668-.667%202.611-.667a4.6%204.6%200%200%201%201.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255%201.255%200%200%201%201.212.925%201.255%201.255%200%200%201%201.212-.925h1.711c.284%200%20.545.094.755.252.613-.3%201.312-.45%202.075-.45%201.356%200%202.557.445%203.482%201.4q.47.48.763%201.064V4.701a1.255%201.255%200%200%201%201.255-1.255h1.86A1.255%201.255%200%200%201%2054.44%204.7v9.194h2.217c.19%200%20.37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42%202.42%200%200%201-.682-1.71c0-.665.267-1.253.735-1.7a2.45%202.45%200%200%201%201.722-.674%202.43%202.43%200%200%201%201.705.675q.318.302.504.683V4.7a1.255%201.255%200%200%201%201.255-1.255h1.744A1.255%201.255%200%200%201%2065.812%204.7v3.335a4.8%204.8%200%200%201%201.526-.246c.938%200%201.817.214%202.59.69a4.47%204.47%200%200%201%201.67%201.743v-.98a1.255%201.255%200%200%201%201.256-1.256h1.777c.233%200%20.451.064.639.174a3.4%203.4%200%200%201%201.567-.372c.346%200%20.861.02%201.285.232a1.25%201.25%200%200%201%20.689%201.004%204.7%204.7%200%200%201%20.853-.588c.795-.44%201.675-.647%202.61-.647%201.385%200%202.65.39%203.525%201.396.836.938%201.168%202.173%201.168%203.528q-.001.515-.056%201.051a1.255%201.255%200%200%201-.947%201.09l.408.952a1.255%201.255%200%200%201-.477%201.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06%200-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8%205.8%200%200%201-.548-2.512q0-.429.053-.843a1.3%201.3%200%200%201-.333-.086l-.166-.004c-.223%200-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255%201.255%200%200%201-1.256%201.256h-1.777a1.255%201.255%200%200%201-1.256-1.256V15.69l-.032.057a4.8%204.8%200%200%201-1.86%201.833%205.04%205.04%200%200%201-2.484.634%204.5%204.5%200%200%201-1.935-.424%201.25%201.25%200%200%201-.764.258h-1.71a1.255%201.255%200%200%201-1.256-1.255V7.687a2.4%202.4%200%200%201-.428.625c.253.23.412.561.412.93v7.553a1.255%201.255%200%200%201-1.256%201.255h-1.843a1.25%201.25%200%200%201-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255%201.255%200%200%201-1.256-1.255v-1.251l-.061.117a4.7%204.7%200%200%201-1.782%201.884%204.77%204.77%200%200%201-2.485.67%205.6%205.6%200%200%201-1.485-.188l.009%202.764a1.255%201.255%200%200%201-1.255%201.259h-1.729a1.255%201.255%200%200%201-1.255-1.255v-3.537a1.255%201.255%200%200%201-1.167.793h-1.679a1.25%201.25%200%200%201-.77-.263%204.5%204.5%200%200%201-1.945.429c-.885%200-1.724-.21-2.495-.632l-.017-.01a5%205%200%200%201-1.081-.836%201.255%201.255%200%200%201-1.254%201.312h-1.81a1.255%201.255%200%200%201-1.228-.99l-.782-3.625-2.044%203.939a1.25%201.25%200%200%201-1.115.676h-.098a1.25%201.25%200%200%201-1.116-.68l-2.061-3.994zM35.92%2016.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033%201.332h1.678V9.242h-1.694l-.033%201.267q-.133-.329-.526-.658l-.032-.028a3.2%203.2%200%200%200-.668-.428l-.27-.12a3.3%203.3%200%200%200-1.235-.23q-1.136-.001-1.974.493a3.36%203.36%200%200%200-1.3%201.382q-.445.89-.444%202.074%200%201.2.51%202.107a3.8%203.8%200%200%200%201.382%201.381%203.9%203.9%200%200%200%201.893.477q.795%200%201.455-.33zm-2.789-5.38q-.576.675-.575%201.762%200%201.102.559%201.794.576.675%201.645.675a2.25%202.25%200%200%200%20.934-.19%202.2%202.2%200%200%200%20.468-.29l.178-.161a2.2%202.2%200%200%200%20.397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2%202.2%200%200%200-.633-.709l-.13-.086-.047-.028a2.1%202.1%200%200%200-1.073-.285q-1.052%200-1.629.692zm2.316%202.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96%200%200%200-.353-.389.85.85%200%200%200-.464-.127c-.4%200-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945%200%20.506.122.801.27.99.097.11.266.224.68.224.303%200%20.504-.09.687-.269zm7.545%201.705a2.6%202.6%200%200%200%20.331.423q.319.33.755.548l.173.074q.65.255%201.49.255%201.02%200%201.844-.493a3.45%203.45%200%200%200%201.316-1.4q.493-.904.493-2.089%200-1.909-.988-2.913-.988-1.02-2.584-1.02-.898%200-1.575.347a3%203%200%200%200-.415.262l-.199.166a3.4%203.4%200%200%200-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296%201.119.297%201.07%200%201.645-.675.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.435%200-.835.16a2%202%200%200%200-.284.136%202%202%200%200%200-.363.254%202.2%202.2%200%200%200-.46.569l-.082.162a2.6%202.6%200%200%200-.213%201.072v.115q0%20.707.296%201.267l.135.211zm.964-.818a1.1%201.1%200%200%200%20.367.385.94.94%200%200%200%20.476.118c.423%200%20.59-.117.687-.23.159-.194.28-.478.28-.95%200-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1%201%200%200%200-.503.135l-.012.007a.86.86%200%200%200-.335.343c-.073.133-.132.324-.132.614v.115a1.4%201.4%200%200%200%20.14.66zm15.7-6.222q.347-.346.346-.856a1.05%201.05%200%200%200-.345-.79%201.18%201.18%200%200%200-.84-.329q-.51%200-.855.33a1.05%201.05%200%200%200-.346.79q0%20.51.346.855.345.346.856.346.51%200%20.839-.346zm4.337%209.314.033-1.332q.191.403.59.747l.098.081a4%204%200%200%200%20.316.224l.223.122a3.2%203.2%200%200%200%201.44.322%203.8%203.8%200%200%200%201.875-.477%203.5%203.5%200%200%200%201.382-1.366q.527-.89.526-2.09%200-1.184-.444-2.073a3.24%203.24%200%200%200-1.283-1.399q-.823-.51-1.942-.51a3.5%203.5%200%200%200-1.527.344l-.086.043-.165.09a3%203%200%200%200-.33.214q-.432.315-.656.707a2%202%200%200%200-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5%202.5%200%200%200%20.566.7q.117.098.245.18l.144.08a2.1%202.1%200%200%200%20.975.232q1.07%200%201.645-.675.576-.69.576-1.778%200-1.102-.576-1.777-.56-.691-1.645-.692a2.2%202.2%200%200%200-1.015.235q-.22.113-.415.282l-.15.142a2.1%202.1%200%200%200-.42.594q-.223.479-.223%201.1v.115q0%20.705.293%201.26zm2.616-.293c.157-.191.28-.479.28-.967%200-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87%200%200%200-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0%20.285.057.499.144.669a1.1%201.1%200%200%200%20.367.405c.137.082.28.123.455.123.423%200%20.59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493%200%20.642.099l.247-1.794q-.196-.099-.717-.099a2.3%202.3%200%200%200-.545.063%202%202%200%200%200-.411.148%202.2%202.2%200%200%200-.4.249%202.5%202.5%200%200%200-.485.499%202.7%202.7%200%200%200-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5%201.5%200%200%201%20.466-.636%202.5%202.5%200%200%201%20.399-.253%202%202%200%200%201%20.224-.099zm9.784%202.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46%203.46%200%200%200-1.4%201.382q-.493.906-.493%202.106%200%201.07.428%201.975.428.89%201.332%201.432.906.526%202.255.526.973%200%201.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954%200-1.497-.444a1.6%201.6%200%200%201-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1%201%200%200%200-.156-.176q-.46-.428-1.316-.428-.986%200-1.494.604-.379.45-.494%201.234zm-27.053%202.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z%22%2F%3E%3Cpath%20fill%3D%22%23fff%22%20d%3D%22m19.63%2011.151-.757-1.71-.345%201.71-1.12%205.644h-1.827L18.083%204.7h.197l3.325%206.533.988%202.19.988-2.19L26.839%204.7h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.93%205.644h-.098l-2.913-5.644zm14.836%205.81q-1.02%200-1.893-.478a3.8%203.8%200%200%201-1.381-1.382q-.51-.906-.51-2.106%200-1.185.444-2.074a3.36%203.36%200%200%201%201.3-1.382q.839-.494%201.974-.494a3.3%203.3%200%200%201%201.234.231%203.3%203.3%200%200%201%20.97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02%201.053a3.17%203.17%200%200%201-1.662.444zm.296-1.482q.938%200%201.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2%202.2%200%200%200-.807-.872%202.1%202.1%200%200%200-1.119-.313q-1.053%200-1.629.692-.575.675-.575%201.76%200%201.103.559%201.795.577.675%201.645.675zm6.521-6.237h1.711v1.4q.906-1.597%202.83-1.597%201.596%200%202.584%201.02.988%201.005.988%202.914%200%201.185-.493%202.09a3.46%203.46%200%200%201-1.316%201.399%203.5%203.5%200%200%201-1.844.493q-.954%200-1.662-.329a2.67%202.67%200%200%201-1.086-.97l.017%205.134h-1.728zm4.048%206.22q1.07%200%201.645-.674.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.592%200-1.12.296-.51.28-.822.823-.296.527-.296%201.234v.115q0%20.708.296%201.267.313.543.823.855.51.296%201.119.297z%22%2F%3E%3Cpath%20fill%3D%22%23e1e3e9%22%20d%3D%22M51.325%204.7h1.86v10.45h3.473v1.646h-5.333zm7.12%204.542h1.843v7.553h-1.843zm.905-1.415a1.16%201.16%200%200%201-.856-.346%201.17%201.17%200%200%201-.346-.856%201.05%201.05%200%200%201%20.346-.79q.346-.329.856-.329.494%200%20.839.33a1.05%201.05%200%200%201%20.345.79%201.16%201.16%200%200%201-.345.855q-.33.346-.84.346zm7.875%209.133a3.17%203.17%200%200%201-1.662-.444q-.723-.46-1.004-1.053l-.033%201.332h-1.71V4.701h1.743v4.657l-.082%201.283q.279-.658%201.086-1.119a3.5%203.5%200%200%201%201.778-.477q1.119%200%201.942.51a3.24%203.24%200%200%201%201.283%201.4q.445.888.444%202.072%200%201.201-.526%202.09a3.5%203.5%200%200%201-1.382%201.366%203.8%203.8%200%200%201-1.876.477zm-.296-1.481q1.069%200%201.645-.675.577-.69.577-1.778%200-1.102-.577-1.776-.56-.691-1.645-.692a2.12%202.12%200%200%200-1.58.659q-.642.641-.642%201.694v.115q0%20.71.296%201.267a2.4%202.4%200%200%200%20.807.872%202.1%202.1%200%200%200%201.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14%202.14%200%200%201%201.349-.46q.527%200%20.724.098l-.247%201.794q-.149-.099-.642-.099-.774%200-1.416.494-.626.493-.626%201.58v3.883h-1.777V9.242zm9.534%207.718q-1.35%200-2.255-.526-.904-.543-1.332-1.432a4.6%204.6%200%200%201-.428-1.975q0-1.2.493-2.106a3.46%203.46%200%200%201%201.4-1.382q.889-.495%202.007-.494%201.744%200%202.584.97.855.956.856%202.7%200%20.444-.05.92h-5.43q.18%201.005.708%201.45.542.443%201.497.443.79%200%201.3-.131a4%204%200%200%200%20.938-.362l.542%201.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728%200-1.991%201.86z%22%2F%3E%3Cpath%20d%3D%22M5.074%2015.948a.484.657%200%200%200-.486.659v1.84a.484.657%200%200%200%20.486.659h4.101a.484.657%200%200%200%20.486-.659v-1.84a.484.657%200%200%200-.486-.659zm3.56%201.16H5.617v.838h3.017z%22%20style%3D%22fill%3A%23fff%3Bfill-rule%3Aevenodd%3Bstroke-width%3A1.03600001%22%2F%3E%3Cg%20style%3D%22stroke-width%3A1.12603545%22%3E%3Cpath%20d%3D%22M-9.408-1.416c-3.833-.025-7.056%202.912-7.08%206.615-.02%203.08%201.653%204.832%203.107%206.268.903.892%201.721%201.74%202.32%202.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87%201.87%200%200%200-.362%201.121l-.011%201.877c-.003.402.104.787.347%201.125.244.338.688.653%201.23.656l4.142.028c.542.003.99-.306%201.238-.641a1.87%201.87%200%200%200%20.363-1.121l.012-1.875a1.87%201.87%200%200%200-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145%201.425-1.983%202.348-2.87%201.473-1.414%203.18-3.149%203.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006%201.1v.002c3.274.02%205.92%202.532%205.9%205.6-.017%202.706-1.39%204.026-2.863%205.44-1.034.994-2.118%202.033-2.814%203.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34%200%200%201-.226.084.34.34%200%200%201-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067%202.7-5.545%205.975-5.523m-.02%202.826c-1.62-.01-2.944%201.315-2.955%202.96-.01%201.646%201.295%202.988%202.916%202.999h.002c1.621.01%202.943-1.316%202.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005%201.1c1.017.006%201.829.83%201.822%201.89s-.83%201.874-1.848%201.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874%201.848-1.868m-2.155%2011.857%204.14.025c.271.002.49.305.487.676l-.013%201.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668%22%20style%3D%22color%3A%23000%3Bfont-style%3Anormal%3Bfont-variant%3Anormal%3Bfont-weight%3A400%3Bfont-stretch%3Anormal%3Bfont-size%3Amedium%3Bline-height%3Anormal%3Bfont-family%3Asans-serif%3Bfont-variant-ligatures%3Anormal%3Bfont-variant-position%3Anormal%3Bfont-variant-caps%3Anormal%3Bfont-variant-numeric%3Anormal%3Bfont-variant-alternates%3Anormal%3Bfont-feature-settings%3Anormal%3Btext-indent%3A0%3Btext-align%3Astart%3Btext-decoration%3Anone%3Btext-decoration-line%3Anone%3Btext-decoration-style%3Asolid%3Btext-decoration-color%3A%23000%3Bletter-spacing%3Anormal%3Bword-spacing%3Anormal%3Btext-transform%3Anone%3Bwriting-mode%3Alr-tb%3Bdirection%3Altr%3Btext-orientation%3Amixed%3Bdominant-baseline%3Aauto%3Bbaseline-shift%3Abaseline%3Btext-anchor%3Astart%3Bwhite-space%3Anormal%3Bshape-padding%3A0%3Bclip-rule%3Aevenodd%3Bdisplay%3Ainline%3Boverflow%3Avisible%3Bvisibility%3Avisible%3Bopacity%3A1%3Bisolation%3Aauto%3Bmix-blend-mode%3Anormal%3Bcolor-interpolation%3AsRGB%3Bcolor-interpolation-filters%3AlinearRGB%3Bsolid-color%3A%23000%3Bsolid-opacity%3A1%3Bvector-effect%3Anone%3Bfill%3A%23000%3Bfill-opacity%3A.4%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-linecap%3Abutt%3Bstroke-linejoin%3Amiter%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-dashoffset%3A0%3Bstroke-opacity%3A1%3Bcolor-rendering%3Aauto%3Bimage-rendering%3Aauto%3Bshape-rendering%3Aauto%3Btext-rendering%3Aauto%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-9.415-.316C-12.69-.338-15.37%202.14-15.39%205.207c-.017%202.716%201.326%204.041%202.78%205.477%201.013%201%202.081%202.055%202.78%203.67l.092.076a.34.34%200%200%200%20.225.086.34.34%200%200%200%20.227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6%201.78-2.64%202.814-3.634%201.473-1.414%202.847-2.733%202.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057%208.784c1.621.011%202.944-1.315%202.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945%201.315-2.955%202.96s1.295%202.989%202.916%203%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23e1e3e9%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-11.594%2015.465c-.27-.002-.492.297-.494.668l-.012%201.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23fff%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E")}a.maplibregl-ctrl-logo.maplibregl-compact{width:14px}@media (forced-colors:active){a.maplibregl-ctrl-logo{background-color:transparent;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2288%22%20height%3D%2223%22%20fill%3D%22none%22%3E%3Cpath%20fill%3D%22%23000%22%20fill-opacity%3D%22.4%22%20fill-rule%3D%22evenodd%22%20d%3D%22M17.408%2016.796h-1.827l2.501-12.095h.198l3.324%206.533.988%202.19.988-2.19%203.258-6.533h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.929%205.644h-.098l-2.914-5.644-.757-1.71-.345%201.71zm1.958-3.42-.726%203.663a1.255%201.255%200%200%201-1.232%201.011h-1.827a1.255%201.255%200%200%201-1.229-1.509l2.501-12.095a1.255%201.255%200%200%201%201.23-1.001h.197a1.25%201.25%200%200%201%201.12.685l3.19%206.273%203.125-6.263a1.25%201.25%200%200%201%201.123-.695h.181a1.255%201.255%200%200%201%201.227.991l1.443%206.71a5%205%200%200%201%20.314-.787l.009-.016a4.6%204.6%200%200%201%201.777-1.887c.782-.46%201.668-.667%202.611-.667a4.6%204.6%200%200%201%201.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255%201.255%200%200%201%201.212.925%201.255%201.255%200%200%201%201.212-.925h1.711c.284%200%20.545.094.755.252.613-.3%201.312-.45%202.075-.45%201.356%200%202.557.445%203.482%201.4q.47.48.763%201.064V4.701a1.255%201.255%200%200%201%201.255-1.255h1.86A1.255%201.255%200%200%201%2054.44%204.7v9.194h2.217c.19%200%20.37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42%202.42%200%200%201-.682-1.71c0-.665.267-1.253.735-1.7a2.45%202.45%200%200%201%201.722-.674%202.43%202.43%200%200%201%201.705.675q.318.302.504.683V4.7a1.255%201.255%200%200%201%201.255-1.255h1.744A1.255%201.255%200%200%201%2065.812%204.7v3.335a4.8%204.8%200%200%201%201.526-.246c.938%200%201.817.214%202.59.69a4.47%204.47%200%200%201%201.67%201.743v-.98a1.255%201.255%200%200%201%201.256-1.256h1.777c.233%200%20.451.064.639.174a3.4%203.4%200%200%201%201.567-.372c.346%200%20.861.02%201.285.232a1.25%201.25%200%200%201%20.689%201.004%204.7%204.7%200%200%201%20.853-.588c.795-.44%201.675-.647%202.61-.647%201.385%200%202.65.39%203.525%201.396.836.938%201.168%202.173%201.168%203.528q-.001.515-.056%201.051a1.255%201.255%200%200%201-.947%201.09l.408.952a1.255%201.255%200%200%201-.477%201.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06%200-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8%205.8%200%200%201-.548-2.512q0-.429.053-.843a1.3%201.3%200%200%201-.333-.086l-.166-.004c-.223%200-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255%201.255%200%200%201-1.256%201.256h-1.777a1.255%201.255%200%200%201-1.256-1.256V15.69l-.032.057a4.8%204.8%200%200%201-1.86%201.833%205.04%205.04%200%200%201-2.484.634%204.5%204.5%200%200%201-1.935-.424%201.25%201.25%200%200%201-.764.258h-1.71a1.255%201.255%200%200%201-1.256-1.255V7.687a2.4%202.4%200%200%201-.428.625c.253.23.412.561.412.93v7.553a1.255%201.255%200%200%201-1.256%201.255h-1.843a1.25%201.25%200%200%201-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255%201.255%200%200%201-1.256-1.255v-1.251l-.061.117a4.7%204.7%200%200%201-1.782%201.884%204.77%204.77%200%200%201-2.485.67%205.6%205.6%200%200%201-1.485-.188l.009%202.764a1.255%201.255%200%200%201-1.255%201.259h-1.729a1.255%201.255%200%200%201-1.255-1.255v-3.537a1.255%201.255%200%200%201-1.167.793h-1.679a1.25%201.25%200%200%201-.77-.263%204.5%204.5%200%200%201-1.945.429c-.885%200-1.724-.21-2.495-.632l-.017-.01a5%205%200%200%201-1.081-.836%201.255%201.255%200%200%201-1.254%201.312h-1.81a1.255%201.255%200%200%201-1.228-.99l-.782-3.625-2.044%203.939a1.25%201.25%200%200%201-1.115.676h-.098a1.25%201.25%200%200%201-1.116-.68l-2.061-3.994zM35.92%2016.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033%201.332h1.678V9.242h-1.694l-.033%201.267q-.133-.329-.526-.658l-.032-.028a3.2%203.2%200%200%200-.668-.428l-.27-.12a3.3%203.3%200%200%200-1.235-.23q-1.136-.001-1.974.493a3.36%203.36%200%200%200-1.3%201.382q-.445.89-.444%202.074%200%201.2.51%202.107a3.8%203.8%200%200%200%201.382%201.381%203.9%203.9%200%200%200%201.893.477q.795%200%201.455-.33zm-2.789-5.38q-.576.675-.575%201.762%200%201.102.559%201.794.576.675%201.645.675a2.25%202.25%200%200%200%20.934-.19%202.2%202.2%200%200%200%20.468-.29l.178-.161a2.2%202.2%200%200%200%20.397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2%202.2%200%200%200-.633-.709l-.13-.086-.047-.028a2.1%202.1%200%200%200-1.073-.285q-1.052%200-1.629.692zm2.316%202.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96%200%200%200-.353-.389.85.85%200%200%200-.464-.127c-.4%200-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945%200%20.506.122.801.27.99.097.11.266.224.68.224.303%200%20.504-.09.687-.269zm7.545%201.705a2.6%202.6%200%200%200%20.331.423q.319.33.755.548l.173.074q.65.255%201.49.255%201.02%200%201.844-.493a3.45%203.45%200%200%200%201.316-1.4q.493-.904.493-2.089%200-1.909-.988-2.913-.988-1.02-2.584-1.02-.898%200-1.575.347a3%203%200%200%200-.415.262l-.199.166a3.4%203.4%200%200%200-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296%201.119.297%201.07%200%201.645-.675.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.435%200-.835.16a2%202%200%200%200-.284.136%202%202%200%200%200-.363.254%202.2%202.2%200%200%200-.46.569l-.082.162a2.6%202.6%200%200%200-.213%201.072v.115q0%20.707.296%201.267l.135.211zm.964-.818a1.1%201.1%200%200%200%20.367.385.94.94%200%200%200%20.476.118c.423%200%20.59-.117.687-.23.159-.194.28-.478.28-.95%200-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1%201%200%200%200-.503.135l-.012.007a.86.86%200%200%200-.335.343c-.073.133-.132.324-.132.614v.115a1.4%201.4%200%200%200%20.14.66zm15.7-6.222q.347-.346.346-.856a1.05%201.05%200%200%200-.345-.79%201.18%201.18%200%200%200-.84-.329q-.51%200-.855.33a1.05%201.05%200%200%200-.346.79q0%20.51.346.855.345.346.856.346.51%200%20.839-.346zm4.337%209.314.033-1.332q.191.403.59.747l.098.081a4%204%200%200%200%20.316.224l.223.122a3.2%203.2%200%200%200%201.44.322%203.8%203.8%200%200%200%201.875-.477%203.5%203.5%200%200%200%201.382-1.366q.527-.89.526-2.09%200-1.184-.444-2.073a3.24%203.24%200%200%200-1.283-1.399q-.823-.51-1.942-.51a3.5%203.5%200%200%200-1.527.344l-.086.043-.165.09a3%203%200%200%200-.33.214q-.432.315-.656.707a2%202%200%200%200-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5%202.5%200%200%200%20.566.7q.117.098.245.18l.144.08a2.1%202.1%200%200%200%20.975.232q1.07%200%201.645-.675.576-.69.576-1.778%200-1.102-.576-1.777-.56-.691-1.645-.692a2.2%202.2%200%200%200-1.015.235q-.22.113-.415.282l-.15.142a2.1%202.1%200%200%200-.42.594q-.223.479-.223%201.1v.115q0%20.705.293%201.26zm2.616-.293c.157-.191.28-.479.28-.967%200-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87%200%200%200-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0%20.285.057.499.144.669a1.1%201.1%200%200%200%20.367.405c.137.082.28.123.455.123.423%200%20.59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493%200%20.642.099l.247-1.794q-.196-.099-.717-.099a2.3%202.3%200%200%200-.545.063%202%202%200%200%200-.411.148%202.2%202.2%200%200%200-.4.249%202.5%202.5%200%200%200-.485.499%202.7%202.7%200%200%200-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5%201.5%200%200%201%20.466-.636%202.5%202.5%200%200%201%20.399-.253%202%202%200%200%201%20.224-.099zm9.784%202.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46%203.46%200%200%200-1.4%201.382q-.493.906-.493%202.106%200%201.07.428%201.975.428.89%201.332%201.432.906.526%202.255.526.973%200%201.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954%200-1.497-.444a1.6%201.6%200%200%201-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1%201%200%200%200-.156-.176q-.46-.428-1.316-.428-.986%200-1.494.604-.379.45-.494%201.234zm-27.053%202.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z%22%2F%3E%3Cpath%20fill%3D%22%23fff%22%20d%3D%22m19.63%2011.151-.757-1.71-.345%201.71-1.12%205.644h-1.827L18.083%204.7h.197l3.325%206.533.988%202.19.988-2.19L26.839%204.7h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.93%205.644h-.098l-2.913-5.644zm14.836%205.81q-1.02%200-1.893-.478a3.8%203.8%200%200%201-1.381-1.382q-.51-.906-.51-2.106%200-1.185.444-2.074a3.36%203.36%200%200%201%201.3-1.382q.839-.494%201.974-.494a3.3%203.3%200%200%201%201.234.231%203.3%203.3%200%200%201%20.97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02%201.053a3.17%203.17%200%200%201-1.662.444zm.296-1.482q.938%200%201.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2%202.2%200%200%200-.807-.872%202.1%202.1%200%200%200-1.119-.313q-1.053%200-1.629.692-.575.675-.575%201.76%200%201.103.559%201.795.577.675%201.645.675zm6.521-6.237h1.711v1.4q.906-1.597%202.83-1.597%201.596%200%202.584%201.02.988%201.005.988%202.914%200%201.185-.493%202.09a3.46%203.46%200%200%201-1.316%201.399%203.5%203.5%200%200%201-1.844.493q-.954%200-1.662-.329a2.67%202.67%200%200%201-1.086-.97l.017%205.134h-1.728zm4.048%206.22q1.07%200%201.645-.674.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.592%200-1.12.296-.51.28-.822.823-.296.527-.296%201.234v.115q0%20.708.296%201.267.313.543.823.855.51.296%201.119.297z%22%2F%3E%3Cpath%20fill%3D%22%23e1e3e9%22%20d%3D%22M51.325%204.7h1.86v10.45h3.473v1.646h-5.333zm7.12%204.542h1.843v7.553h-1.843zm.905-1.415a1.16%201.16%200%200%201-.856-.346%201.17%201.17%200%200%201-.346-.856%201.05%201.05%200%200%201%20.346-.79q.346-.329.856-.329.494%200%20.839.33a1.05%201.05%200%200%201%20.345.79%201.16%201.16%200%200%201-.345.855q-.33.346-.84.346zm7.875%209.133a3.17%203.17%200%200%201-1.662-.444q-.723-.46-1.004-1.053l-.033%201.332h-1.71V4.701h1.743v4.657l-.082%201.283q.279-.658%201.086-1.119a3.5%203.5%200%200%201%201.778-.477q1.119%200%201.942.51a3.24%203.24%200%200%201%201.283%201.4q.445.888.444%202.072%200%201.201-.526%202.09a3.5%203.5%200%200%201-1.382%201.366%203.8%203.8%200%200%201-1.876.477zm-.296-1.481q1.069%200%201.645-.675.577-.69.577-1.778%200-1.102-.577-1.776-.56-.691-1.645-.692a2.12%202.12%200%200%200-1.58.659q-.642.641-.642%201.694v.115q0%20.71.296%201.267a2.4%202.4%200%200%200%20.807.872%202.1%202.1%200%200%200%201.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14%202.14%200%200%201%201.349-.46q.527%200%20.724.098l-.247%201.794q-.149-.099-.642-.099-.774%200-1.416.494-.626.493-.626%201.58v3.883h-1.777V9.242zm9.534%207.718q-1.35%200-2.255-.526-.904-.543-1.332-1.432a4.6%204.6%200%200%201-.428-1.975q0-1.2.493-2.106a3.46%203.46%200%200%201%201.4-1.382q.889-.495%202.007-.494%201.744%200%202.584.97.855.956.856%202.7%200%20.444-.05.92h-5.43q.18%201.005.708%201.45.542.443%201.497.443.79%200%201.3-.131a4%204%200%200%200%20.938-.362l.542%201.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728%200-1.991%201.86z%22%2F%3E%3Cpath%20d%3D%22M5.074%2015.948a.484.657%200%200%200-.486.659v1.84a.484.657%200%200%200%20.486.659h4.101a.484.657%200%200%200%20.486-.659v-1.84a.484.657%200%200%200-.486-.659zm3.56%201.16H5.617v.838h3.017z%22%20style%3D%22fill%3A%23fff%3Bfill-rule%3Aevenodd%3Bstroke-width%3A1.03600001%22%2F%3E%3Cg%20style%3D%22stroke-width%3A1.12603545%22%3E%3Cpath%20d%3D%22M-9.408-1.416c-3.833-.025-7.056%202.912-7.08%206.615-.02%203.08%201.653%204.832%203.107%206.268.903.892%201.721%201.74%202.32%202.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87%201.87%200%200%200-.362%201.121l-.011%201.877c-.003.402.104.787.347%201.125.244.338.688.653%201.23.656l4.142.028c.542.003.99-.306%201.238-.641a1.87%201.87%200%200%200%20.363-1.121l.012-1.875a1.87%201.87%200%200%200-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145%201.425-1.983%202.348-2.87%201.473-1.414%203.18-3.149%203.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006%201.1v.002c3.274.02%205.92%202.532%205.9%205.6-.017%202.706-1.39%204.026-2.863%205.44-1.034.994-2.118%202.033-2.814%203.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34%200%200%201-.226.084.34.34%200%200%201-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067%202.7-5.545%205.975-5.523m-.02%202.826c-1.62-.01-2.944%201.315-2.955%202.96-.01%201.646%201.295%202.988%202.916%202.999h.002c1.621.01%202.943-1.316%202.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005%201.1c1.017.006%201.829.83%201.822%201.89s-.83%201.874-1.848%201.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874%201.848-1.868m-2.155%2011.857%204.14.025c.271.002.49.305.487.676l-.013%201.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668%22%20style%3D%22color%3A%23000%3Bfont-style%3Anormal%3Bfont-variant%3Anormal%3Bfont-weight%3A400%3Bfont-stretch%3Anormal%3Bfont-size%3Amedium%3Bline-height%3Anormal%3Bfont-family%3Asans-serif%3Bfont-variant-ligatures%3Anormal%3Bfont-variant-position%3Anormal%3Bfont-variant-caps%3Anormal%3Bfont-variant-numeric%3Anormal%3Bfont-variant-alternates%3Anormal%3Bfont-feature-settings%3Anormal%3Btext-indent%3A0%3Btext-align%3Astart%3Btext-decoration%3Anone%3Btext-decoration-line%3Anone%3Btext-decoration-style%3Asolid%3Btext-decoration-color%3A%23000%3Bletter-spacing%3Anormal%3Bword-spacing%3Anormal%3Btext-transform%3Anone%3Bwriting-mode%3Alr-tb%3Bdirection%3Altr%3Btext-orientation%3Amixed%3Bdominant-baseline%3Aauto%3Bbaseline-shift%3Abaseline%3Btext-anchor%3Astart%3Bwhite-space%3Anormal%3Bshape-padding%3A0%3Bclip-rule%3Aevenodd%3Bdisplay%3Ainline%3Boverflow%3Avisible%3Bvisibility%3Avisible%3Bopacity%3A1%3Bisolation%3Aauto%3Bmix-blend-mode%3Anormal%3Bcolor-interpolation%3AsRGB%3Bcolor-interpolation-filters%3AlinearRGB%3Bsolid-color%3A%23000%3Bsolid-opacity%3A1%3Bvector-effect%3Anone%3Bfill%3A%23000%3Bfill-opacity%3A.4%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-linecap%3Abutt%3Bstroke-linejoin%3Amiter%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-dashoffset%3A0%3Bstroke-opacity%3A1%3Bcolor-rendering%3Aauto%3Bimage-rendering%3Aauto%3Bshape-rendering%3Aauto%3Btext-rendering%3Aauto%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-9.415-.316C-12.69-.338-15.37%202.14-15.39%205.207c-.017%202.716%201.326%204.041%202.78%205.477%201.013%201%202.081%202.055%202.78%203.67l.092.076a.34.34%200%200%200%20.225.086.34.34%200%200%200%20.227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6%201.78-2.64%202.814-3.634%201.473-1.414%202.847-2.733%202.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057%208.784c1.621.011%202.944-1.315%202.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945%201.315-2.955%202.96s1.295%202.989%202.916%203%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23e1e3e9%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-11.594%2015.465c-.27-.002-.492.297-.494.668l-.012%201.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23fff%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){a.maplibregl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2288%22%20height%3D%2223%22%20fill%3D%22none%22%3E%3Cpath%20fill%3D%22%23000%22%20fill-opacity%3D%22.4%22%20fill-rule%3D%22evenodd%22%20d%3D%22M17.408%2016.796h-1.827l2.501-12.095h.198l3.324%206.533.988%202.19.988-2.19%203.258-6.533h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.929%205.644h-.098l-2.914-5.644-.757-1.71-.345%201.71zm1.958-3.42-.726%203.663a1.255%201.255%200%200%201-1.232%201.011h-1.827a1.255%201.255%200%200%201-1.229-1.509l2.501-12.095a1.255%201.255%200%200%201%201.23-1.001h.197a1.25%201.25%200%200%201%201.12.685l3.19%206.273%203.125-6.263a1.25%201.25%200%200%201%201.123-.695h.181a1.255%201.255%200%200%201%201.227.991l1.443%206.71a5%205%200%200%201%20.314-.787l.009-.016a4.6%204.6%200%200%201%201.777-1.887c.782-.46%201.668-.667%202.611-.667a4.6%204.6%200%200%201%201.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255%201.255%200%200%201%201.212.925%201.255%201.255%200%200%201%201.212-.925h1.711c.284%200%20.545.094.755.252.613-.3%201.312-.45%202.075-.45%201.356%200%202.557.445%203.482%201.4q.47.48.763%201.064V4.701a1.255%201.255%200%200%201%201.255-1.255h1.86A1.255%201.255%200%200%201%2054.44%204.7v9.194h2.217c.19%200%20.37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42%202.42%200%200%201-.682-1.71c0-.665.267-1.253.735-1.7a2.45%202.45%200%200%201%201.722-.674%202.43%202.43%200%200%201%201.705.675q.318.302.504.683V4.7a1.255%201.255%200%200%201%201.255-1.255h1.744A1.255%201.255%200%200%201%2065.812%204.7v3.335a4.8%204.8%200%200%201%201.526-.246c.938%200%201.817.214%202.59.69a4.47%204.47%200%200%201%201.67%201.743v-.98a1.255%201.255%200%200%201%201.256-1.256h1.777c.233%200%20.451.064.639.174a3.4%203.4%200%200%201%201.567-.372c.346%200%20.861.02%201.285.232a1.25%201.25%200%200%201%20.689%201.004%204.7%204.7%200%200%201%20.853-.588c.795-.44%201.675-.647%202.61-.647%201.385%200%202.65.39%203.525%201.396.836.938%201.168%202.173%201.168%203.528q-.001.515-.056%201.051a1.255%201.255%200%200%201-.947%201.09l.408.952a1.255%201.255%200%200%201-.477%201.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06%200-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8%205.8%200%200%201-.548-2.512q0-.429.053-.843a1.3%201.3%200%200%201-.333-.086l-.166-.004c-.223%200-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255%201.255%200%200%201-1.256%201.256h-1.777a1.255%201.255%200%200%201-1.256-1.256V15.69l-.032.057a4.8%204.8%200%200%201-1.86%201.833%205.04%205.04%200%200%201-2.484.634%204.5%204.5%200%200%201-1.935-.424%201.25%201.25%200%200%201-.764.258h-1.71a1.255%201.255%200%200%201-1.256-1.255V7.687a2.4%202.4%200%200%201-.428.625c.253.23.412.561.412.93v7.553a1.255%201.255%200%200%201-1.256%201.255h-1.843a1.25%201.25%200%200%201-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255%201.255%200%200%201-1.256-1.255v-1.251l-.061.117a4.7%204.7%200%200%201-1.782%201.884%204.77%204.77%200%200%201-2.485.67%205.6%205.6%200%200%201-1.485-.188l.009%202.764a1.255%201.255%200%200%201-1.255%201.259h-1.729a1.255%201.255%200%200%201-1.255-1.255v-3.537a1.255%201.255%200%200%201-1.167.793h-1.679a1.25%201.25%200%200%201-.77-.263%204.5%204.5%200%200%201-1.945.429c-.885%200-1.724-.21-2.495-.632l-.017-.01a5%205%200%200%201-1.081-.836%201.255%201.255%200%200%201-1.254%201.312h-1.81a1.255%201.255%200%200%201-1.228-.99l-.782-3.625-2.044%203.939a1.25%201.25%200%200%201-1.115.676h-.098a1.25%201.25%200%200%201-1.116-.68l-2.061-3.994zM35.92%2016.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033%201.332h1.678V9.242h-1.694l-.033%201.267q-.133-.329-.526-.658l-.032-.028a3.2%203.2%200%200%200-.668-.428l-.27-.12a3.3%203.3%200%200%200-1.235-.23q-1.136-.001-1.974.493a3.36%203.36%200%200%200-1.3%201.382q-.445.89-.444%202.074%200%201.2.51%202.107a3.8%203.8%200%200%200%201.382%201.381%203.9%203.9%200%200%200%201.893.477q.795%200%201.455-.33zm-2.789-5.38q-.576.675-.575%201.762%200%201.102.559%201.794.576.675%201.645.675a2.25%202.25%200%200%200%20.934-.19%202.2%202.2%200%200%200%20.468-.29l.178-.161a2.2%202.2%200%200%200%20.397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2%202.2%200%200%200-.633-.709l-.13-.086-.047-.028a2.1%202.1%200%200%200-1.073-.285q-1.052%200-1.629.692zm2.316%202.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96%200%200%200-.353-.389.85.85%200%200%200-.464-.127c-.4%200-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945%200%20.506.122.801.27.99.097.11.266.224.68.224.303%200%20.504-.09.687-.269zm7.545%201.705a2.6%202.6%200%200%200%20.331.423q.319.33.755.548l.173.074q.65.255%201.49.255%201.02%200%201.844-.493a3.45%203.45%200%200%200%201.316-1.4q.493-.904.493-2.089%200-1.909-.988-2.913-.988-1.02-2.584-1.02-.898%200-1.575.347a3%203%200%200%200-.415.262l-.199.166a3.4%203.4%200%200%200-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296%201.119.297%201.07%200%201.645-.675.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.435%200-.835.16a2%202%200%200%200-.284.136%202%202%200%200%200-.363.254%202.2%202.2%200%200%200-.46.569l-.082.162a2.6%202.6%200%200%200-.213%201.072v.115q0%20.707.296%201.267l.135.211zm.964-.818a1.1%201.1%200%200%200%20.367.385.94.94%200%200%200%20.476.118c.423%200%20.59-.117.687-.23.159-.194.28-.478.28-.95%200-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1%201%200%200%200-.503.135l-.012.007a.86.86%200%200%200-.335.343c-.073.133-.132.324-.132.614v.115a1.4%201.4%200%200%200%20.14.66zm15.7-6.222q.347-.346.346-.856a1.05%201.05%200%200%200-.345-.79%201.18%201.18%200%200%200-.84-.329q-.51%200-.855.33a1.05%201.05%200%200%200-.346.79q0%20.51.346.855.345.346.856.346.51%200%20.839-.346zm4.337%209.314.033-1.332q.191.403.59.747l.098.081a4%204%200%200%200%20.316.224l.223.122a3.2%203.2%200%200%200%201.44.322%203.8%203.8%200%200%200%201.875-.477%203.5%203.5%200%200%200%201.382-1.366q.527-.89.526-2.09%200-1.184-.444-2.073a3.24%203.24%200%200%200-1.283-1.399q-.823-.51-1.942-.51a3.5%203.5%200%200%200-1.527.344l-.086.043-.165.09a3%203%200%200%200-.33.214q-.432.315-.656.707a2%202%200%200%200-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5%202.5%200%200%200%20.566.7q.117.098.245.18l.144.08a2.1%202.1%200%200%200%20.975.232q1.07%200%201.645-.675.576-.69.576-1.778%200-1.102-.576-1.777-.56-.691-1.645-.692a2.2%202.2%200%200%200-1.015.235q-.22.113-.415.282l-.15.142a2.1%202.1%200%200%200-.42.594q-.223.479-.223%201.1v.115q0%20.705.293%201.26zm2.616-.293c.157-.191.28-.479.28-.967%200-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87%200%200%200-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0%20.285.057.499.144.669a1.1%201.1%200%200%200%20.367.405c.137.082.28.123.455.123.423%200%20.59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493%200%20.642.099l.247-1.794q-.196-.099-.717-.099a2.3%202.3%200%200%200-.545.063%202%202%200%200%200-.411.148%202.2%202.2%200%200%200-.4.249%202.5%202.5%200%200%200-.485.499%202.7%202.7%200%200%200-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5%201.5%200%200%201%20.466-.636%202.5%202.5%200%200%201%20.399-.253%202%202%200%200%201%20.224-.099zm9.784%202.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46%203.46%200%200%200-1.4%201.382q-.493.906-.493%202.106%200%201.07.428%201.975.428.89%201.332%201.432.906.526%202.255.526.973%200%201.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954%200-1.497-.444a1.6%201.6%200%200%201-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1%201%200%200%200-.156-.176q-.46-.428-1.316-.428-.986%200-1.494.604-.379.45-.494%201.234zm-27.053%202.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z%22%2F%3E%3Cpath%20fill%3D%22%23fff%22%20d%3D%22m19.63%2011.151-.757-1.71-.345%201.71-1.12%205.644h-1.827L18.083%204.7h.197l3.325%206.533.988%202.19.988-2.19L26.839%204.7h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.93%205.644h-.098l-2.913-5.644zm14.836%205.81q-1.02%200-1.893-.478a3.8%203.8%200%200%201-1.381-1.382q-.51-.906-.51-2.106%200-1.185.444-2.074a3.36%203.36%200%200%201%201.3-1.382q.839-.494%201.974-.494a3.3%203.3%200%200%201%201.234.231%203.3%203.3%200%200%201%20.97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02%201.053a3.17%203.17%200%200%201-1.662.444zm.296-1.482q.938%200%201.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2%202.2%200%200%200-.807-.872%202.1%202.1%200%200%200-1.119-.313q-1.053%200-1.629.692-.575.675-.575%201.76%200%201.103.559%201.795.577.675%201.645.675zm6.521-6.237h1.711v1.4q.906-1.597%202.83-1.597%201.596%200%202.584%201.02.988%201.005.988%202.914%200%201.185-.493%202.09a3.46%203.46%200%200%201-1.316%201.399%203.5%203.5%200%200%201-1.844.493q-.954%200-1.662-.329a2.67%202.67%200%200%201-1.086-.97l.017%205.134h-1.728zm4.048%206.22q1.07%200%201.645-.674.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.592%200-1.12.296-.51.28-.822.823-.296.527-.296%201.234v.115q0%20.708.296%201.267.313.543.823.855.51.296%201.119.297z%22%2F%3E%3Cpath%20fill%3D%22%23e1e3e9%22%20d%3D%22M51.325%204.7h1.86v10.45h3.473v1.646h-5.333zm7.12%204.542h1.843v7.553h-1.843zm.905-1.415a1.16%201.16%200%200%201-.856-.346%201.17%201.17%200%200%201-.346-.856%201.05%201.05%200%200%201%20.346-.79q.346-.329.856-.329.494%200%20.839.33a1.05%201.05%200%200%201%20.345.79%201.16%201.16%200%200%201-.345.855q-.33.346-.84.346zm7.875%209.133a3.17%203.17%200%200%201-1.662-.444q-.723-.46-1.004-1.053l-.033%201.332h-1.71V4.701h1.743v4.657l-.082%201.283q.279-.658%201.086-1.119a3.5%203.5%200%200%201%201.778-.477q1.119%200%201.942.51a3.24%203.24%200%200%201%201.283%201.4q.445.888.444%202.072%200%201.201-.526%202.09a3.5%203.5%200%200%201-1.382%201.366%203.8%203.8%200%200%201-1.876.477zm-.296-1.481q1.069%200%201.645-.675.577-.69.577-1.778%200-1.102-.577-1.776-.56-.691-1.645-.692a2.12%202.12%200%200%200-1.58.659q-.642.641-.642%201.694v.115q0%20.71.296%201.267a2.4%202.4%200%200%200%20.807.872%202.1%202.1%200%200%200%201.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14%202.14%200%200%201%201.349-.46q.527%200%20.724.098l-.247%201.794q-.149-.099-.642-.099-.774%200-1.416.494-.626.493-.626%201.58v3.883h-1.777V9.242zm9.534%207.718q-1.35%200-2.255-.526-.904-.543-1.332-1.432a4.6%204.6%200%200%201-.428-1.975q0-1.2.493-2.106a3.46%203.46%200%200%201%201.4-1.382q.889-.495%202.007-.494%201.744%200%202.584.97.855.956.856%202.7%200%20.444-.05.92h-5.43q.18%201.005.708%201.45.542.443%201.497.443.79%200%201.3-.131a4%204%200%200%200%20.938-.362l.542%201.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728%200-1.991%201.86z%22%2F%3E%3Cpath%20d%3D%22M5.074%2015.948a.484.657%200%200%200-.486.659v1.84a.484.657%200%200%200%20.486.659h4.101a.484.657%200%200%200%20.486-.659v-1.84a.484.657%200%200%200-.486-.659zm3.56%201.16H5.617v.838h3.017z%22%20style%3D%22fill%3A%23fff%3Bfill-rule%3Aevenodd%3Bstroke-width%3A1.03600001%22%2F%3E%3Cg%20style%3D%22stroke-width%3A1.12603545%22%3E%3Cpath%20d%3D%22M-9.408-1.416c-3.833-.025-7.056%202.912-7.08%206.615-.02%203.08%201.653%204.832%203.107%206.268.903.892%201.721%201.74%202.32%202.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87%201.87%200%200%200-.362%201.121l-.011%201.877c-.003.402.104.787.347%201.125.244.338.688.653%201.23.656l4.142.028c.542.003.99-.306%201.238-.641a1.87%201.87%200%200%200%20.363-1.121l.012-1.875a1.87%201.87%200%200%200-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145%201.425-1.983%202.348-2.87%201.473-1.414%203.18-3.149%203.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006%201.1v.002c3.274.02%205.92%202.532%205.9%205.6-.017%202.706-1.39%204.026-2.863%205.44-1.034.994-2.118%202.033-2.814%203.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34%200%200%201-.226.084.34.34%200%200%201-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067%202.7-5.545%205.975-5.523m-.02%202.826c-1.62-.01-2.944%201.315-2.955%202.96-.01%201.646%201.295%202.988%202.916%202.999h.002c1.621.01%202.943-1.316%202.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005%201.1c1.017.006%201.829.83%201.822%201.89s-.83%201.874-1.848%201.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874%201.848-1.868m-2.155%2011.857%204.14.025c.271.002.49.305.487.676l-.013%201.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668%22%20style%3D%22color%3A%23000%3Bfont-style%3Anormal%3Bfont-variant%3Anormal%3Bfont-weight%3A400%3Bfont-stretch%3Anormal%3Bfont-size%3Amedium%3Bline-height%3Anormal%3Bfont-family%3Asans-serif%3Bfont-variant-ligatures%3Anormal%3Bfont-variant-position%3Anormal%3Bfont-variant-caps%3Anormal%3Bfont-variant-numeric%3Anormal%3Bfont-variant-alternates%3Anormal%3Bfont-feature-settings%3Anormal%3Btext-indent%3A0%3Btext-align%3Astart%3Btext-decoration%3Anone%3Btext-decoration-line%3Anone%3Btext-decoration-style%3Asolid%3Btext-decoration-color%3A%23000%3Bletter-spacing%3Anormal%3Bword-spacing%3Anormal%3Btext-transform%3Anone%3Bwriting-mode%3Alr-tb%3Bdirection%3Altr%3Btext-orientation%3Amixed%3Bdominant-baseline%3Aauto%3Bbaseline-shift%3Abaseline%3Btext-anchor%3Astart%3Bwhite-space%3Anormal%3Bshape-padding%3A0%3Bclip-rule%3Aevenodd%3Bdisplay%3Ainline%3Boverflow%3Avisible%3Bvisibility%3Avisible%3Bopacity%3A1%3Bisolation%3Aauto%3Bmix-blend-mode%3Anormal%3Bcolor-interpolation%3AsRGB%3Bcolor-interpolation-filters%3AlinearRGB%3Bsolid-color%3A%23000%3Bsolid-opacity%3A1%3Bvector-effect%3Anone%3Bfill%3A%23000%3Bfill-opacity%3A.4%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-linecap%3Abutt%3Bstroke-linejoin%3Amiter%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-dashoffset%3A0%3Bstroke-opacity%3A1%3Bcolor-rendering%3Aauto%3Bimage-rendering%3Aauto%3Bshape-rendering%3Aauto%3Btext-rendering%3Aauto%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-9.415-.316C-12.69-.338-15.37%202.14-15.39%205.207c-.017%202.716%201.326%204.041%202.78%205.477%201.013%201%202.081%202.055%202.78%203.67l.092.076a.34.34%200%200%200%20.225.086.34.34%200%200%200%20.227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6%201.78-2.64%202.814-3.634%201.473-1.414%202.847-2.733%202.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057%208.784c1.621.011%202.944-1.315%202.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945%201.315-2.955%202.96s1.295%202.989%202.916%203%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23e1e3e9%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-11.594%2015.465c-.27-.002-.492.297-.494.668l-.012%201.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23fff%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl.maplibregl-ctrl-attrib{padding:0 5px;background-color:hsla(0,0%,100%,.5);margin:0}@media screen{.maplibregl-ctrl-attrib.maplibregl-compact{min-height:20px;padding:2px 24px 2px 0;margin:10px;position:relative;background-color:#fff;color:#000;border-radius:12px;box-sizing:content-box}.maplibregl-ctrl-attrib.maplibregl-compact-show{padding:2px 28px 2px 8px;visibility:visible}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact-show,.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact-show{padding:2px 8px 2px 28px;border-radius:12px}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-inner{display:none}.maplibregl-ctrl-attrib-button{display:none;cursor:pointer;position:absolute;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20fill-rule%3D%22evenodd%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M4%2010a6%206%200%201%200%2012%200%206%206%200%201%200-12%200m5-3a1%201%200%201%200%202%200%201%201%200%201%200-2%200m0%203a1%201%200%201%201%202%200v3a1%201%200%201%201-2%200%22%2F%3E%3C%2Fsvg%3E");background-color:hsla(0,0%,100%,.5);width:24px;height:24px;box-sizing:border-box;border-radius:12px;outline:none;top:0;right:0;border:0}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;list-style:none}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button::-webkit-details-marker{display:none}.maplibregl-ctrl-bottom-left .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-top-left .maplibregl-ctrl-attrib-button{left:0}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-inner{display:block}.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-button{background-color:rgba(0,0,0,.05)}.maplibregl-ctrl-bottom-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;right:0}.maplibregl-ctrl-top-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{top:0;right:0}.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{top:0;left:0}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;left:0}}@media screen and (forced-colors:active){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22%23fff%22%20fill-rule%3D%22evenodd%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M4%2010a6%206%200%201%200%2012%200%206%206%200%201%200-12%200m5-3a1%201%200%201%200%202%200%201%201%200%201%200-2%200m0%203a1%201%200%201%201%202%200v3a1%201%200%201%201-2%200%22%2F%3E%3C%2Fsvg%3E")}}@media screen and (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20fill-rule%3D%22evenodd%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M4%2010a6%206%200%201%200%2012%200%206%206%200%201%200-12%200m5-3a1%201%200%201%200%202%200%201%201%200%201%200-2%200m0%203a1%201%200%201%201%202%200v3a1%201%200%201%201-2%200%22%2F%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl-attrib a{color:rgba(0,0,0,.75);text-decoration:none}.maplibregl-ctrl-attrib a:hover{color:inherit;text-decoration:underline}.maplibregl-attrib-empty{display:none}.maplibregl-ctrl-scale{background-color:hsla(0,0%,100%,.75);font-size:10px;white-space:nowrap;border-color:#333;border-style:none solid solid;border-width:medium 2px 2px;padding:0 5px;color:#333;box-sizing:border-box}.maplibregl-popup{position:absolute;top:0;left:0;display:flex;will-change:transform;pointer-events:none}.maplibregl-popup-anchor-top,.maplibregl-popup-anchor-top-left,.maplibregl-popup-anchor-top-right{flex-direction:column}.maplibregl-popup-anchor-bottom,.maplibregl-popup-anchor-bottom-left,.maplibregl-popup-anchor-bottom-right{flex-direction:column-reverse}.maplibregl-popup-anchor-left{flex-direction:row}.maplibregl-popup-anchor-right{flex-direction:row-reverse}.maplibregl-popup-tip{width:0;height:0;border:10px solid transparent;z-index:1}.maplibregl-popup-anchor-top .maplibregl-popup-tip{align-self:center;border-top:none;border-bottom-color:#fff}.maplibregl-popup-anchor-top-left .maplibregl-popup-tip{align-self:flex-start;border-top:none;border-left:none;border-bottom-color:#fff}.maplibregl-popup-anchor-top-right .maplibregl-popup-tip{align-self:flex-end;border-top:none;border-right:none;border-bottom-color:#fff}.maplibregl-popup-anchor-bottom .maplibregl-popup-tip{align-self:center;border-bottom:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip{align-self:flex-start;border-bottom:none;border-left:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip{align-self:flex-end;border-bottom:none;border-right:none;border-top-color:#fff}.maplibregl-popup-anchor-left .maplibregl-popup-tip{align-self:center;border-left:none;border-right-color:#fff}.maplibregl-popup-anchor-right .maplibregl-popup-tip{align-self:center;border-right:none;border-left-color:#fff}[dir=rtl] .maplibregl-popup-anchor-left{flex-direction:row-reverse}[dir=rtl] .maplibregl-popup-anchor-right{flex-direction:row}[dir=rtl] .maplibregl-popup-anchor-top-left .maplibregl-popup-tip{align-self:flex-end}[dir=rtl] .maplibregl-popup-anchor-top-right .maplibregl-popup-tip{align-self:flex-start}[dir=rtl] .maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip{align-self:flex-end}[dir=rtl] .maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip{align-self:flex-start}.maplibregl-popup-close-button{position:absolute;right:0;top:0;border:0;border-radius:0 3px 0 0;cursor:pointer;background-color:transparent}.maplibregl-popup-close-button:hover{background-color:rgba(0,0,0,.05)}.maplibregl-popup-content{position:relative;background:#fff;border-radius:3px;box-shadow:0 1px 2px rgba(0,0,0,.1);padding:15px 10px;pointer-events:auto}.maplibregl-popup-anchor-top-left .maplibregl-popup-content{border-top-left-radius:0}.maplibregl-popup-anchor-top-right .maplibregl-popup-content{border-top-right-radius:0}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-content{border-bottom-left-radius:0}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-content{border-bottom-right-radius:0}.maplibregl-popup-track-pointer{display:none}.maplibregl-popup-track-pointer *{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-map:hover .maplibregl-popup-track-pointer{display:flex}.maplibregl-map:active .maplibregl-popup-track-pointer{display:none}.maplibregl-marker{position:absolute;top:0;left:0;will-change:transform;transition:opacity .2s}.maplibregl-marker-draggable{cursor:grab}.maplibregl-user-location-dot,.maplibregl-user-location-dot:before{background-color:#1da1f2;width:15px;height:15px;border-radius:50%}.maplibregl-user-location-dot:before{content:"";position:absolute;animation:maplibregl-user-location-dot-pulse 2s infinite}.maplibregl-user-location-dot:after{border-radius:50%;border:2px solid #fff;content:"";height:19px;left:-2px;position:absolute;top:-2px;width:19px;box-sizing:border-box;box-shadow:0 0 3px rgba(0,0,0,.35)}@media (prefers-reduced-motion:reduce){.maplibregl-user-location-dot:before{animation:none}}@keyframes maplibregl-user-location-dot-pulse{0%{transform:scale(1);opacity:1}70%{transform:scale(3);opacity:0}to{transform:scale(1);opacity:0}}.maplibregl-user-location-dot-stale{background-color:#aaa}.maplibregl-user-location-dot-stale:after{display:none}.maplibregl-user-location-accuracy-circle{background-color:#1da1f233;width:1px;height:1px;border-radius:100%}.maplibregl-crosshair,.maplibregl-crosshair .maplibregl-interactive,.maplibregl-crosshair .maplibregl-interactive:active{cursor:crosshair}.maplibregl-boxzoom{position:absolute;top:0;left:0;width:0;height:0;background:#fff;border:2px dotted #202020;opacity:.5}.maplibregl-cooperative-gesture-screen{background:rgba(0,0,0,.4);position:absolute;inset:0;display:flex;justify-content:center;align-items:center;color:#fff;padding:1rem;font-size:1.4em;line-height:1.2;opacity:0;pointer-events:none;transition:opacity 1s ease 1s;z-index:99999}.maplibregl-cooperative-gesture-screen.maplibregl-show{opacity:1;transition:opacity .05s}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:none}@media (hover:none),(pointer:coarse){.maplibregl-cooperative-gesture-screen .maplibregl-desktop-message{display:none}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:block}}.maplibregl-pseudo-fullscreen{position:fixed!important;width:100%!important;height:100%!important;top:0!important;left:0!important;z-index:99999}`; document.head.appendChild(e); } @@ -23898,6 +23898,55 @@ var Plotly = (() => { var FIND_TEX = /([^$]*)([$]+[^$]*[$]+)([^$]*)/; var matchTex = (str) => str ? str.match(FIND_TEX) : null; exports.matchTex = matchTex; + var isPureTex = (str) => { + var tex = matchTex(str); + return !!tex && !tex[1] && !tex[3]; + }; + exports.isPureTex = isPureTex; + function positionMathGroup(_context, svgClass, mathjaxGroup, newSvg, textAnchor, fontSize, width0, height0) { + var g = newSvg.select("g"); + var bb = g.node().getBoundingClientRect(); + var w = bb.width; + var h = bb.height; + var w0 = width0 === void 0 ? w : width0; + var h0 = height0 === void 0 ? h : height0; + if (w > w0 || h > h0) { + newSvg.style("overflow", "hidden"); + bb = newSvg.node().getBoundingClientRect(); + w = bb.width; + h = bb.height; + } + var x = +_context.attr("x"); + var y = +_context.attr("y"); + var textHeight = fontSize || _context.node().getBoundingClientRect().height; + var dy = -textHeight / 4; + if (svgClass[0] === "y") { + mathjaxGroup.attr({ + transform: "rotate(" + [-90, x, y] + ")" + strTranslate(-w / 2, dy - h / 2) + }); + } else if (svgClass[0] === "l") { + y = dy - h / 2; + } else if (svgClass[0] === "a" && svgClass.indexOf("atitle") !== 0) { + x = 0; + y = dy; + } else { + x = x - w * (textAnchor === "middle" ? 0.5 : textAnchor === "end" ? 1 : 0); + y = y + dy - h / 2; + } + newSvg.attr({ + x, + y + }); + } + function sanitizeMathJaxLinks(newSvg) { + newSvg.selectAll("a").each(function() { + var a = d3.select(this); + ["href", "xlink:href"].forEach(function(attrName) { + var href = a.attr(attrName); + if (href) a.attr(attrName, sanitizeHref(href) || null); + }); + }); + } exports.convertToTspans = function(_context, gd, _callback) { var str = _context.text(); var tex = !_context.attr("data-notex") && gd && gd._context.typesetMath && matchTex(str); @@ -23951,6 +24000,7 @@ var Plotly = (() => { "data-math": "Y" }); mathjaxGroup.node().appendChild(newSvg.node()); + sanitizeMathJaxLinks(newSvg); if (_glyphDefs && _glyphDefs.node()) { newSvg.node().insertBefore( _glyphDefs.node().cloneNode(true), @@ -23971,36 +24021,7 @@ var Plotly = (() => { var fill = _context.node().style.fill || "black"; var g = newSvg.select("g"); g.attr({ fill, stroke: fill }); - var bb = g.node().getBoundingClientRect(); - var w = bb.width; - var h = bb.height; - if (w > w0 || h > h0) { - newSvg.style("overflow", "hidden"); - bb = newSvg.node().getBoundingClientRect(); - w = bb.width; - h = bb.height; - } - var x = +_context.attr("x"); - var y = +_context.attr("y"); - var textHeight = fontSize || _context.node().getBoundingClientRect().height; - var dy = -textHeight / 4; - if (svgClass[0] === "y") { - mathjaxGroup.attr({ - transform: "rotate(" + [-90, x, y] + ")" + strTranslate(-w / 2, dy - h / 2) - }); - } else if (svgClass[0] === "l") { - y = dy - h / 2; - } else if (svgClass[0] === "a" && svgClass.indexOf("atitle") !== 0) { - x = 0; - y = dy; - } else { - x = x - w * (textAnchor === "middle" ? 0.5 : textAnchor === "end" ? 1 : 0); - y = y + dy - h / 2; - } - newSvg.attr({ - x, - y - }); + positionMathGroup(_context, svgClass, mathjaxGroup, newSvg, textAnchor, fontSize, w0, h0); if (_callback) _callback.call(_context, mathjaxGroup); resolve(mathjaxGroup); }); @@ -24008,6 +24029,24 @@ var Plotly = (() => { } else showText(); return _context; }; + exports.repositionMathGroup = function(_context) { + if (_context.empty()) return; + var svgClass = (_context.attr("class") ? _context.attr("class").split(" ")[0] : "text") + "-math"; + var parent = d3.select(_context.node().parentNode); + var mathjaxGroup = parent.select("g." + svgClass + "-group"); + var newSvg = mathjaxGroup.select("svg." + svgClass); + if (mathjaxGroup.empty() || newSvg.empty()) return; + var textAnchor = _context.attr("text-anchor"); + var fontSize = parseInt(_context.node().style.fontSize, 10); + positionMathGroup(_context, svgClass, mathjaxGroup, newSvg, textAnchor, fontSize); + }; + exports.getMathOrTextNode = function(textSel) { + var node = textSel.node(); + if (!node) return null; + var svgClass = (textSel.attr("class") ? textSel.attr("class").split(" ")[0] : "text") + "-math"; + var mathGroup = d3.select(node.parentNode).select("g." + svgClass + "-group"); + return mathGroup.empty() ? node : mathGroup.node(); + }; var LT_MATCH = /(<|<|<)/g; var GT_MATCH = /(>|>|>)/g; function cleanEscapesForTex(s) { @@ -30773,6 +30812,10 @@ var Plotly = (() => { if (((_b = ax.minor) == null ? void 0 : _b._tick0Init) === void 0) { mockAx.tick0 = ax.tick0; } + if (ax._useTicklabelIndex) { + autoTickRound(mockAx); + ax.minor._tickround = mockAx._tickround; + } }; function isMultiple(bigger, smaller) { return Math.abs((bigger / smaller + 0.5) % 1 - 0.5) < 1e-3; @@ -30860,24 +30903,32 @@ var Plotly = (() => { function positionPeriodTicks(tickVals, ax, definedDelta) { for (var i = 0; i < tickVals.length; i++) { var v = tickVals[i].value; - var a = i; - var b = i + 1; - if (i < tickVals.length - 1) { - a = i; - b = i + 1; - } else if (i > 0) { - a = i - 1; - b = i; + var A, B; + if (tickVals[i].periodEndTick != null) { + A = tickVals[i].value; + B = tickVals[i].periodEndTick.value; } else { - a = i; - b = i; + var a = i; + var b = i + 1; + if (i < tickVals.length - 1) { + a = i; + b = i + 1; + } else if (i > 0) { + a = i - 1; + b = i; + } else { + a = i; + b = i; + } + A = tickVals[a].value; + B = tickVals[b].value; } - var A = tickVals[a].value; - var B = tickVals[b].value; var actualDelta = Math.abs(B - A); var delta = definedDelta || actualDelta; var periodLength = 0; - if (delta >= ONEMINYEAR2) { + if (tickVals[i].periodEndTick != null) { + periodLength = actualDelta; + } else if (delta >= ONEMINYEAR2) { if (actualDelta >= ONEMINYEAR2 && actualDelta <= ONEMAXYEAR2) { periodLength = actualDelta; } else { @@ -30936,6 +30987,7 @@ var Plotly = (() => { var isPeriod = ax.ticklabelmode === "period"; var isReversed = ax.range[0] > ax.range[1]; var ticklabelIndex = !ax.ticklabelindex || Lib.isArrayOrTypedArray(ax.ticklabelindex) ? ax.ticklabelindex : [ax.ticklabelindex]; + ax._useTicklabelIndex = ticklabelIndex != null && ticklabelIndex !== 0; var rng = Lib.simpleMap(ax.range, ax.r2l, void 0, void 0, opts); var axrev = rng[1] < rng[0]; var minRange = Math.min(rng[0], rng[1]); @@ -30947,7 +30999,7 @@ var Plotly = (() => { var minorTickVals = []; var allTicklabelVals = []; var hasMinor = ax.minor && (ax.minor.ticks || ax.minor.showgrid); - var calcMinor = hasMinor || ticklabelIndex; + var calcMinor = hasMinor || ax._useTicklabelIndex; for (var major = 1; major >= (calcMinor ? 0 : 1); major--) { var isMinor = !major; if (major) { @@ -31017,7 +31069,7 @@ var Plotly = (() => { x = axes.tickIncrement(x, dtick, !axrev, calendar); } } - if ((major || ticklabelIndex) && isPeriod) { + if ((major || ax._useTicklabelIndex) && isPeriod) { x = axes.tickIncrement(x, dtick, !axrev, calendar); if (major) majorId--; } @@ -31052,72 +31104,82 @@ var Plotly = (() => { } } } + function findOverlappingTick(minorTick, majorTicks) { + const majorTick = majorTicks.find((majorTick2) => majorTick2.value === minorTick.value); + if (majorTick != null) { + return majorTick; + } + const epsilon2 = 1e7; + for (let i2 = 0; i2 < majorTicks.length; i2++) { + if (epsilon2 + majorTicks[i2].value === epsilon2 + minorTick.value) { + return majorTicks[i2]; + } + } + return null; + } + ; if (!minorTickVals || minorTickVals.length < 3) { - ticklabelIndex = false; + ax._useTicklabelIndex = false; } else { - var diff = (minorTickVals[2].value - minorTickVals[1].value) * (isReversed ? -1 : 1); + const diff = (minorTickVals[2].value - minorTickVals[1].value) * (isReversed ? -1 : 1); if (!periodCompatibleWithTickformat(diff, ax.tickformat)) { - ticklabelIndex = false; + ax._useTicklabelIndex = false; minorTickVals = minorTickVals.slice(1); } } - if (!ticklabelIndex) { + if (!ax._useTicklabelIndex) { allTicklabelVals = tickVals; } else { - var allTickVals = tickVals.concat(minorTickVals); + const filteredMinors = minorTickVals.filter((minor) => findOverlappingTick(minor, tickVals) == null); + const labelTickValsAscending = tickVals.concat(filteredMinors).sort((a, b) => a.value - b.value); if (isPeriod && tickVals.length) { - allTickVals = allTickVals.slice(1); - } - allTickVals = allTickVals.sort(function(a, b) { - return a.value - b.value; - }).filter(function(tick, index, self2) { - return index === 0 || tick.value !== self2[index - 1].value; - }); - var majorTickIndices = allTickVals.map(function(item, index) { - return item.minor === void 0 && !item.skipLabel ? index : null; - }).filter(function(index) { - return index !== null; - }); - majorTickIndices.forEach(function(majorIdx) { - ticklabelIndex.map(function(nextLabelIdx) { - var minorIdx = majorIdx + nextLabelIdx; - if (minorIdx >= 0 && minorIdx < allTickVals.length) { - Lib.pushUnique(allTicklabelVals, allTickVals[minorIdx]); - } - }); - }); - tickVals.forEach(function(tick) { - tick.skipLabel = allTicklabelVals.indexOf(tick) === -1; + tickVals[0].skipLabel = true; + } + tickVals.forEach(function(majorTick) { + if (!majorTick.skipLabel) { + ticklabelIndex.forEach((labelIndex) => { + if (labelIndex < 0) { + const smallerTicks = labelTickValsAscending.filter((minorTick) => minorTick.value <= majorTick.value); + const absLabelIndex = Math.abs(labelIndex); + const labeledTickIndex = smallerTicks.length - absLabelIndex - 1; + if (absLabelIndex < smallerTicks.length) { + const tickToLabel = smallerTicks[labeledTickIndex]; + allTicklabelVals.push(tickToLabel); + if (isPeriod) { + tickToLabel.periodEndTick = smallerTicks[labeledTickIndex + 1]; + } + } + } else { + const largerTicks = labelTickValsAscending.filter((minorTick) => minorTick.value >= majorTick.value); + if (labelIndex < largerTicks.length) { + const tickToLabel = largerTicks[labelIndex]; + allTicklabelVals.push(tickToLabel); + if (isPeriod && largerTicks[labelIndex + 1]) { + tickToLabel.periodEndTick = largerTicks[labelIndex + 1]; + } + } + } + }); + majorTick.skipLabel = true; + } }); + allTicklabelVals.forEach((t2) => t2.skipLabel = false); } if (hasMinor) { - var canOverlap = ax.minor.ticks === "inside" && ax.ticks === "outside" || ax.minor.ticks === "outside" && ax.ticks === "inside"; - if (!canOverlap) { - var majorValues = tickVals.map(function(d) { - return d.value; - }); + var allowedToOverlap = ax.minor.ticks === "inside" && ax.ticks === "outside" || ax.minor.ticks === "outside" && ax.ticks === "inside"; + if (!allowedToOverlap) { var list = []; for (var k = 0; k < minorTickVals.length; k++) { - var T = minorTickVals[k]; - var v = T.value; - if (majorValues.indexOf(v) !== -1) { - continue; + if (findOverlappingTick(minorTickVals[k], tickVals) == null) { + list.push(minorTickVals[k]); } - var found = false; - for (var q = 0; !found && q < tickVals.length; q++) { - if ( - // add 10e6 to eliminate problematic digits - 1e7 + tickVals[q].value === 1e7 + v - ) { - found = true; - } - } - if (!found) list.push(T); } minorTickVals = list; } } - if (isPeriod) positionPeriodTicks(allTicklabelVals, ax, ax._definedDelta); + if (isPeriod) { + positionPeriodTicks(allTicklabelVals, ax, ax._definedDelta); + } var i; if (ax.rangebreaks) { var flip = ax._id.charAt(0) === "y"; @@ -31180,7 +31242,7 @@ var Plotly = (() => { var _minor = tickVals[i].minor; var _value = tickVals[i].value; if (_minor) { - if (ticklabelIndex && allTicklabelVals.indexOf(tickVals[i]) !== -1) { + if (ax._useTicklabelIndex && allTicklabelVals.indexOf(tickVals[i]) !== -1) { t = setTickLabel(ax, tickVals[i]); } else { t = { x: _value }; @@ -31196,7 +31258,7 @@ var Plotly = (() => { ticksOut.push(t); } } - if (isPeriod && ticklabelIndex && minorTicks.length) { + if (isPeriod && ax._useTicklabelIndex && minorTicks.length) { minorTicks[0].noTick = true; } ticksOut = ticksOut.concat(minorTicks); @@ -31565,7 +31627,7 @@ var Plotly = (() => { }; } function formatDate(ax, out, hover, extraPrecision) { - var tr = ax._tickround; + var tr = ax._useTicklabelIndex ? ax.minor._tickround : ax._tickround; var fmt = hover && ax.hoverformat || axes.getTickFormat(ax); extraPrecision = !fmt && extraPrecision; if (extraPrecision) { @@ -33900,12 +33962,44 @@ var Plotly = (() => { } }); + // src/components/legend/constants.ts + var constants_exports3 = {}; + __export(constants_exports3, { + dfltFillHeight: () => dfltFillHeight, + itemGap: () => itemGap, + itemHeightPad: () => itemHeightPad, + itemMinHeight: () => itemMinHeight, + scrollBarColor: () => scrollBarColor, + scrollBarEnterAttrs: () => scrollBarEnterAttrs, + scrollBarMargin: () => scrollBarMargin, + scrollBarMinHeight: () => scrollBarMinHeight, + scrollBarWidth: () => scrollBarWidth, + titlePad: () => titlePad + }); + var scrollBarWidth, scrollBarMinHeight, scrollBarColor, scrollBarMargin, scrollBarEnterAttrs, titlePad, itemGap, dfltFillHeight, itemMinHeight, itemHeightPad; + var init_constants3 = __esm({ + "src/components/legend/constants.ts"() { + "use strict"; + scrollBarWidth = 6; + scrollBarMinHeight = 20; + scrollBarColor = "#808BA4"; + scrollBarMargin = 4; + scrollBarEnterAttrs = { rx: 20, ry: 3, width: 0, height: 0 }; + titlePad = 2; + itemGap = 5; + dfltFillHeight = 6; + itemMinHeight = 16; + itemHeightPad = 3; + } + }); + // src/components/legend/attributes.js var require_attributes9 = __commonJS({ "src/components/legend/attributes.js"(exports, module) { "use strict"; var fontAttrs = require_font_attributes(); var colorAttrs = require_attributes3(); + var { dfltFillHeight: dfltFillHeight2 } = (init_constants3(), __toCommonJS(constants_exports3)); module.exports = { // not really a 'subplot' attribute container, // but this is the flag we use to denote attributes that @@ -33989,6 +34083,12 @@ var Plotly = (() => { dflt: 30, editType: "legend" }, + itemheight: { + valType: "number", + min: dfltFillHeight2, + dflt: dfltFillHeight2, + editType: "legend" + }, itemclick: { valType: "enumerated", values: ["toggle", "toggleothers", false], @@ -34266,6 +34366,7 @@ var Plotly = (() => { coerce("indentation"); coerce("itemsizing"); coerce("itemwidth"); + coerce("itemheight"); coerce("itemclick"); coerce("itemdoubleclick"); const groupClick = coerce("groupclick"); @@ -34586,31 +34687,6 @@ var Plotly = (() => { } }); - // src/components/legend/constants.ts - var constants_exports3 = {}; - __export(constants_exports3, { - itemGap: () => itemGap, - scrollBarColor: () => scrollBarColor, - scrollBarEnterAttrs: () => scrollBarEnterAttrs, - scrollBarMargin: () => scrollBarMargin, - scrollBarMinHeight: () => scrollBarMinHeight, - scrollBarWidth: () => scrollBarWidth, - titlePad: () => titlePad - }); - var scrollBarWidth, scrollBarMinHeight, scrollBarColor, scrollBarMargin, scrollBarEnterAttrs, titlePad, itemGap; - var init_constants3 = __esm({ - "src/components/legend/constants.ts"() { - "use strict"; - scrollBarWidth = 6; - scrollBarMinHeight = 20; - scrollBarColor = "#808BA4"; - scrollBarMargin = 4; - scrollBarEnterAttrs = { rx: 20, ry: 3, width: 0, height: 0 }; - titlePad = 2; - itemGap = 5; - } - }); - // src/components/legend/get_legend_data.js var require_get_legend_data = __commonJS({ "src/components/legend/get_legend_data.js"(exports, module) { @@ -34855,6 +34931,7 @@ var Plotly = (() => { if (!legend) legend = fullLayout.legend; var constantItemSizing = legend.itemsizing === "constant"; var itemWidth = legend.itemwidth; + var itemHeight = legend.itemheight; var centerPos = (itemWidth + constants2.itemGap * 2) / 2; var centerTransform = strTranslate(centerPos, 0); var boundLineWidth = function(mlw, cont, max, cst) { @@ -34932,7 +35009,9 @@ var Plotly = (() => { var fill = this3.select(".legendfill").selectAll("path").data(showFill || showGradientFill ? [d] : []); fill.enter().append("path").classed("js-fill", true); fill.exit().remove(); - fill.attr("d", pathStart + "h" + itemWidth + "v6h-" + itemWidth + "z").call(fillStyle); + fill.attr("d", pathStart + "h" + itemWidth + "v" + itemHeight + "h-" + itemWidth + "z").call(fillStyle); + const fillShiftY = showFill || showGradientFill ? (constants2.dfltFillHeight - itemHeight) / 2 : 0; + this3.selectAll("g.legendfill, g.legendlines, g.legendsymbols").attr("transform", fillShiftY ? strTranslate(0, fillShiftY) : null); if (showLine || showGradientLine) { var lw = boundLineWidth(void 0, trace.line, MAX_LINE_WIDTH, CST_LINE_WIDTH); tMod = Lib.minExtend(trace, { line: { width: lw } }); @@ -35092,14 +35171,18 @@ var Plotly = (() => { var fillColor = mcc || d0.mc || marker.color; var markerPattern = marker.pattern; var pAttr = Drawing.getPatternAttr; - var patternShape = markerPattern && (pAttr(markerPattern.shape, 0, "") || pAttr(markerPattern.path, 0, "")); + let patternIndex = 0; + if (legend._inHover && d0._distinct && d0.index != null) { + patternIndex = d0.index; + } + const patternShape = markerPattern && (pAttr(markerPattern.shape, patternIndex, "") || pAttr(markerPattern.path, patternIndex, "")); if (patternShape) { - var patternBGColor = pAttr(markerPattern.bgcolor, 0, null); - var patternFGColor = pAttr(markerPattern.fgcolor, 0, null); + const patternBGColor = pAttr(markerPattern.bgcolor, patternIndex, null); + const patternFGColor = pAttr(markerPattern.fgcolor, patternIndex, null); var patternFGOpacity = markerPattern.fgopacity; - var patternSize = dimAttr(markerPattern.size, 8, 10); - var patternSolidity = dimAttr(markerPattern.solidity, 0.5, 1); - var patternID = "legend-" + trace.uid; + const patternSize = legend._inHover ? dimAttr(pAttr(markerPattern.size, patternIndex, 8), 8, 10) : dimAttr(markerPattern.size, 8, 10); + const patternSolidity = legend._inHover ? dimAttr(pAttr(markerPattern.solidity, patternIndex, 0.5), 0.5, 1) : dimAttr(markerPattern.solidity, 0.5, 1); + const patternID = legend._inHover ? `hover-${trace.uid}-${patternIndex}` : `legend-${trace.uid}`; p.call( Drawing.pattern, "legend", @@ -35921,7 +36004,7 @@ var Plotly = (() => { }); } function textLayout(s, g, gd, legendObj, aTitle) { - if (legendObj._inHover) s.attr("data-notex", true); + if (legendObj._inHover) s.attr("data-notex", svgTextUtils.isPureTex(s.text()) ? null : true); svgTextUtils.convertToTspans(s, gd, function() { computeTextDimensions(g, gd, legendObj, aTitle); }); @@ -35996,7 +36079,8 @@ var Plotly = (() => { legendObj._titleHeight = height; } else { legendItem.lineHeight = lineHeight; - legendItem.height = Math.max(height, 16) + 3; + const fillItemHeight = constants2.itemMinHeight + legendObj.itemheight - constants2.dfltFillHeight; + legendItem.height = Math.max(height, constants2.itemMinHeight, fillItemHeight) + constants2.itemHeightPad; legendItem.width = width; } } @@ -36188,6 +36272,13 @@ var Plotly = (() => { } Drawing.setRect(traceToggle, 0, -h / 2, w, h); }); + if (legendObj._inHover) { + const textRight = legendObj._width - bw2 - itemGap2 - titleSize[0]; + traces.each(function(d) { + if (d[0].textAlign !== "right") return; + d3.select(this).select("." + legendId + "text").attr("text-anchor", "end").call(svgTextUtils.positionText, textRight); + }); + } var titleEl = scrollBox.select("." + legendId + "titletext"); if (titleEl.node()) { horizontalAlignTitle(titleEl, legendObj, bw); @@ -36391,28 +36482,47 @@ var Plotly = (() => { outerContainer: opts.outerContainer || opts.container }); var hoverLabel = hoverText.hoverLabels; - var tooltipSpacing = 5; - var lastBottomY = 0; - var anchor = 0; - hoverLabel.sort(function(a, b) { - return a.y0 - b.y0; - }).each(function(d, i) { - var topY = d.y0 - d.by / 2; - if (topY - tooltipSpacing < lastBottomY) { - d.offset = lastBottomY - topY + tooltipSpacing; - } else { - d.offset = 0; - } - lastBottomY = topY + d.by + d.offset; - if (i === opts.anchorIndex || 0) anchor = d.offset; - }).each(function(d) { - d.offset -= anchor; - }); + function fixVerticalOverlap() { + var tooltipSpacing = 5; + var lastBottomY = 0; + var anchor = 0; + hoverLabel.sort(function(a, b) { + return a.y0 - b.y0; + }).each(function(d, i) { + var topY = d.y0 - d.by / 2; + if (topY - tooltipSpacing < lastBottomY) { + d.offset = lastBottomY - topY + tooltipSpacing; + } else { + d.offset = 0; + } + lastBottomY = topY + d.by + d.offset; + if (i === opts.anchorIndex || 0) anchor = d.offset; + }).each(function(d) { + d.offset -= anchor; + }); + } var scaleX = gd._fullLayout._invScaleX; var scaleY = gd._fullLayout._invScaleY; + fixVerticalOverlap(); alignHoverText(hoverLabel, rotateLabels, scaleX, scaleY); + if (hoverText.mathjaxPromise) { + hoverText.mathjaxPromise.then(function() { + fixVerticalOverlap(); + alignHoverText(hoverLabel, rotateLabels, scaleX, scaleY); + hoverLabel.each(function() { + var g = d3.select(this); + svgTextUtils.repositionMathGroup(g.select("text.nums")); + svgTextUtils.repositionMathGroup(g.select("text.name")); + }); + }); + } return multiHover ? hoverLabel : hoverLabel.node(); }; + function canSpikeToNonHoveredPoint(xa, ya) { + return Boolean( + (xa == null ? void 0 : xa.showspikes) && xa.spikesnap !== "hovered data" || (ya == null ? void 0 : ya.showspikes) && ya.spikesnap !== "hovered data" + ); + } function _hover(gd, evt, subplot, noHoverEvent, eventTarget) { if (!subplot) subplot = "xy"; if (typeof subplot === "string") { @@ -36425,6 +36535,7 @@ var Plotly = (() => { var plots = fullLayout._plots || []; var plotinfo = plots[subplot]; var hasCartesian = fullLayout._has("cartesian"); + var hasTernary = fullLayout._has("ternary"); var hovermode = evt.hovermode || fullLayout.hovermode; var hovermodeHasX = (hovermode || "").charAt(0) === "x"; var hovermodeHasY = (hovermode || "").charAt(0) === "y"; @@ -36487,6 +36598,7 @@ var Plotly = (() => { hLinePoint: null, vLinePoint: null }; + const ternarySpikePoints = {}; var hasOneHorizontalTrace = false; if (Array.isArray(evt)) { hovermode = "array"; @@ -36683,42 +36795,56 @@ var Plotly = (() => { hoverData.splice(0, closedataPreviousLength); distance = hoverData[0].distance; } - if (hasCartesian && spikedistance !== 0) { - if (hoverData.length === 0) { - pointData.distance = spikedistance; - pointData.index = false; - var closestPoints = trace._module.hoverPoints(pointData, xval, yval, "closest", { - hoverLayer: fullLayout._hoverlayer - }); - if (closestPoints) { - closestPoints = closestPoints.filter(function(point) { - return point.spikeDistance <= spikedistance; - }); + if (Registry.traceIs(trace, "ternary") && spikedistance !== 0) { + const ternary = pointData.subplot; + const needsClosestPoint = ["aaxis", "baxis", "caxis"].some((name4) => ternary[name4].showspikes && ternary[name4].spikesnap !== "hovered data"); + if (needsClosestPoint) { + let spikePoint = newPoints == null ? void 0 : newPoints[0]; + if (!Number.isFinite(spikePoint == null ? void 0 : spikePoint.spikeDistance)) { + const spikeData = Lib.extendFlat({}, pointData, { distance: spikedistance, index: false }); + const closestPoints2 = trace._module.hoverPoints(spikeData, xval, yval, "closest"); + spikePoint = closestPoints2 && closestPoints2[0]; } - if (closestPoints && closestPoints.length) { - var tmpPoint; - var closestVPoints = closestPoints.filter(function(point) { - return point.xa.showspikes && point.xa.spikesnap !== "hovered data"; - }); - if (closestVPoints.length) { - var closestVPt = closestVPoints[0]; - if (isNumeric2(closestVPt.x0) && isNumeric2(closestVPt.y0)) { - tmpPoint = fillSpikePoint(closestVPt); - if (!spikePoints.vLinePoint || spikePoints.vLinePoint.spikeDistance > tmpPoint.spikeDistance) { - spikePoints.vLinePoint = tmpPoint; - } + const previousSpikePoint = ternarySpikePoints[subplotId]; + if (spikePoint && spikePoint.index !== void 0 && spikePoint.index !== false && spikePoint.spikeDistance <= spikedistance && (!previousSpikePoint || spikePoint.spikeDistance < previousSpikePoint.spikeDistance)) { + ternarySpikePoints[subplotId] = spikePoint; + } + } + } + if (hasCartesian && hoverData.length === 0 && spikedistance !== 0 && canSpikeToNonHoveredPoint(pointData.xa, pointData.ya)) { + pointData.distance = spikedistance; + pointData.index = false; + var closestPoints = trace._module.hoverPoints(pointData, xval, yval, "closest", { + hoverLayer: fullLayout._hoverlayer + }); + if (closestPoints) { + closestPoints = closestPoints.filter(function(point) { + return point.spikeDistance <= spikedistance; + }); + } + if (closestPoints == null ? void 0 : closestPoints.length) { + var tmpPoint; + var closestVPoints = closestPoints.filter(function(point) { + return point.xa.showspikes && point.xa.spikesnap !== "hovered data"; + }); + if (closestVPoints.length) { + var closestVPt = closestVPoints[0]; + if (isNumeric2(closestVPt.x0) && isNumeric2(closestVPt.y0)) { + tmpPoint = fillSpikePoint(closestVPt); + if (!spikePoints.vLinePoint || spikePoints.vLinePoint.spikeDistance > tmpPoint.spikeDistance) { + spikePoints.vLinePoint = tmpPoint; } } - var closestHPoints = closestPoints.filter(function(point) { - return point.ya.showspikes && point.ya.spikesnap !== "hovered data"; - }); - if (closestHPoints.length) { - var closestHPt = closestHPoints[0]; - if (isNumeric2(closestHPt.x0) && isNumeric2(closestHPt.y0)) { - tmpPoint = fillSpikePoint(closestHPt); - if (!spikePoints.hLinePoint || spikePoints.hLinePoint.spikeDistance > tmpPoint.spikeDistance) { - spikePoints.hLinePoint = tmpPoint; - } + } + var closestHPoints = closestPoints.filter(function(point) { + return point.ya.showspikes && point.ya.spikesnap !== "hovered data"; + }); + if (closestHPoints.length) { + var closestHPt = closestHPoints[0]; + if (isNumeric2(closestHPt.x0) && isNumeric2(closestHPt.y0)) { + tmpPoint = fillSpikePoint(closestHPt); + if (!spikePoints.hLinePoint || spikePoints.hLinePoint.spikeDistance > tmpPoint.spikeDistance) { + spikePoints.hLinePoint = tmpPoint; } } } @@ -36727,6 +36853,18 @@ var Plotly = (() => { } } findHoverPoints(); + function updateTernarySpikelines() { + fullLayout._hoverlayer.selectAll(".ternary-spikes").remove(); + if (spikedistance === 0) return; + for (let i2 = 0; i2 < subplots.length; i2++) { + const id2 = subplots[i2]; + const ternary = fullLayout[id2] && fullLayout[id2]._subplot; + if (ternary && ternary.drawSpikelines) { + const point = hoverData.find((d) => d.trace.subplot === id2 && d.index !== void 0 && d.index !== false && d.spikeDistance <= spikedistance); + ternary.drawSpikelines(point, ternarySpikePoints[id2], xvalArray && xvalArray[i2], yvalArray && yvalArray[i2]); + } + } + } function selectClosestPoint(pointsData, spikedistance2, spikeOnWinning2) { var resultPoint = null; var minDistance = Infinity; @@ -36816,6 +36954,7 @@ var Plotly = (() => { emitHover([]); gd._hoverAnywhereActive = true; } + if (hasTernary) updateTernarySpikelines(); return result; } if (hasCartesian) { @@ -36823,6 +36962,7 @@ var Plotly = (() => { createSpikelines(gd, spikePoints, spikelineOpts); } } + if (hasTernary) updateTernarySpikelines(); if (helpers.isXYhover(_mode) && hoverData[0].length !== 0 && hoverData[0].trace.type !== "splom") { var winningPoint = hoverData[0]; if (multipleHoverPoints[winningPoint.trace.type]) { @@ -36912,6 +37052,18 @@ var Plotly = (() => { if (!helpers.isUnifiedHover(hovermode)) { hoverAvoidOverlaps(hoverLabels, rotateLabels, fullLayout, hoverText.commonLabelBoundingBox); alignHoverText(hoverLabels, rotateLabels, fullLayout._invScaleX, fullLayout._invScaleY); + if (hoverText.mathjaxPromise) { + hoverText.mathjaxPromise.then(function() { + if (gd._hoverdata !== newhoverdata) return; + hoverAvoidOverlaps(hoverLabels, rotateLabels, fullLayout, hoverText.commonLabelBoundingBox); + alignHoverText(hoverLabels, rotateLabels, fullLayout._invScaleX, fullLayout._invScaleY); + hoverLabels.each(function() { + var g = d3.select(this); + svgTextUtils.repositionMathGroup(g.select("text.nums")); + svgTextUtils.repositionMathGroup(g.select("text.name")); + }); + }); + } } if (eventTarget && eventTarget.tagName) { var hasClickToShow = Registry.getComponentMethod("annotations", "hasClickToShow")(gd, newhoverdata); @@ -36945,6 +37097,9 @@ var Plotly = (() => { return [d.trace.index, d.index, d.x0, d.y0, d.name, d.attr, d.xa ? d.xa._id : "", d.ya ? d.ya._id : ""].join(","); } var EXTRA_STRING_REGEX = /([\s\S]*)<\/extra>/; + function getHoverTextBBox(gd, textSel) { + return getBoundingClientRect(gd, svgTextUtils.getMathOrTextNode(textSel)); + } function createHoverText(hoverData, opts) { var gd = opts.gd; var fullLayout = gd._fullLayout; @@ -36955,6 +37110,7 @@ var Plotly = (() => { var outerContainer = opts.outerContainer; var commonLabelOpts = opts.commonLabelOpts || {}; if (hoverData.length === 0) return [[]]; + var mathjaxPromises = []; var fontFamily = opts.fontFamily || constants2.HOVERFONT; var fontSize = opts.fontSize || constants2.HOVERFONTSIZE; var fontWeight = opts.fontWeight || fullLayout.font.weight; @@ -37010,9 +37166,7 @@ var Plotly = (() => { var lpath = Lib.ensureSingle(label, "path", "", function(s) { s.style({ "stroke-width": "1px" }); }); - var ltext = Lib.ensureSingle(label, "text", "", function(s) { - s.attr("data-notex", 1); - }); + var ltext = Lib.ensureSingle(label, "text", ""); var commonBgColor = commonLabelOpts.bgcolor || Color.defaultLine; var commonStroke = commonLabelOpts.bordercolor || Color.contrast(commonBgColor); var contrastColor = Color.contrast(commonBgColor); @@ -37032,100 +37186,122 @@ var Plotly = (() => { fill: commonBgColor, stroke: commonStroke }); - ltext.text(t0).call(Drawing.font, commonLabelFont).call(svgTextUtils.positionText, 0, 0).call(svgTextUtils.convertToTspans, gd); - label.attr("transform", ""); - var tbb2 = getBoundingClientRect(gd, ltext.node()); - var lx2, ly2; - if (hovermode === "x") { - var topsign = xa.side === "top" ? "-" : ""; - ltext.attr("text-anchor", "middle").call( - svgTextUtils.positionText, - 0, - xa.side === "top" ? outerTop - tbb2.bottom - HOVERARROWSIZE2 - HOVERTEXTPAD2 : outerTop - tbb2.top + HOVERARROWSIZE2 + HOVERTEXTPAD2 - ); - lx2 = xa._offset + (c0.x0 + c0.x1) / 2; - ly2 = ya._offset + (xa.side === "top" ? 0 : ya._length); - var halfWidth = tbb2.width / 2 + HOVERTEXTPAD2; - var tooltipMidX = lx2; - if (lx2 < halfWidth) { - tooltipMidX = halfWidth; - } else if (lx2 > fullLayout.width - halfWidth) { - tooltipMidX = fullLayout.width - halfWidth; - } - lpath.attr( - "d", - "M" + (lx2 - tooltipMidX) + ",0L" + (lx2 - tooltipMidX + HOVERARROWSIZE2) + "," + topsign + HOVERARROWSIZE2 + "H" + halfWidth + "v" + topsign + (HOVERTEXTPAD2 * 2 + tbb2.height) + "H" + -halfWidth + "V" + topsign + HOVERARROWSIZE2 + "H" + (lx2 - tooltipMidX - HOVERARROWSIZE2) + "Z" - ); - lx2 = tooltipMidX; - commonLabelRect.minX = lx2 - halfWidth; - commonLabelRect.maxX = lx2 + halfWidth; - if (xa.side === "top") { - commonLabelRect.minY = ly2 - (HOVERTEXTPAD2 * 2 + tbb2.height); - commonLabelRect.maxY = ly2 - HOVERTEXTPAD2; - } else { - commonLabelRect.minY = ly2 + HOVERTEXTPAD2; - commonLabelRect.maxY = ly2 + (HOVERTEXTPAD2 * 2 + tbb2.height); - } - } else { - var anchor; - var sgn; - var leftsign; - if (ya.side === "right") { - anchor = "start"; - sgn = 1; - leftsign = ""; - lx2 = xa._offset + xa._length; - } else { - anchor = "end"; - sgn = -1; - leftsign = "-"; - lx2 = xa._offset; - } - ly2 = ya._offset + (c0.y0 + c0.y1) / 2; - ltext.attr("text-anchor", anchor); - lpath.attr( - "d", - "M0,0L" + leftsign + HOVERARROWSIZE2 + "," + HOVERARROWSIZE2 + "V" + (HOVERTEXTPAD2 + tbb2.height / 2) + "h" + leftsign + (HOVERTEXTPAD2 * 2 + tbb2.width) + "V-" + (HOVERTEXTPAD2 + tbb2.height / 2) + "H" + leftsign + HOVERARROWSIZE2 + "V-" + HOVERARROWSIZE2 + "Z" - ); - commonLabelRect.minY = ly2 - (HOVERTEXTPAD2 + tbb2.height / 2); - commonLabelRect.maxY = ly2 + (HOVERTEXTPAD2 + tbb2.height / 2); - if (ya.side === "right") { - commonLabelRect.minX = lx2 + HOVERARROWSIZE2; - commonLabelRect.maxX = lx2 + HOVERARROWSIZE2 + (HOVERTEXTPAD2 * 2 + tbb2.width); - } else { - commonLabelRect.minX = lx2 - HOVERARROWSIZE2 - (HOVERTEXTPAD2 * 2 + tbb2.width); - commonLabelRect.maxX = lx2 - HOVERARROWSIZE2; - } - var halfHeight = tbb2.height / 2; - var lty = outerTop - tbb2.top - halfHeight; - var clipId = "clip" + fullLayout._uid + "commonlabel" + ya._id; - var clipPath; - if (lx2 < tbb2.width + 2 * HOVERTEXTPAD2 + HOVERARROWSIZE2) { - clipPath = "M-" + (HOVERARROWSIZE2 + HOVERTEXTPAD2) + "-" + halfHeight + "h-" + (tbb2.width - HOVERTEXTPAD2) + "V" + halfHeight + "h" + (tbb2.width - HOVERTEXTPAD2) + "Z"; - var ltx = tbb2.width - lx2 + HOVERTEXTPAD2; - svgTextUtils.positionText(ltext, ltx, lty); - if (anchor === "end") { - ltext.selectAll("tspan").each(function() { - var s = d3.select(this); - var dummy = Drawing.tester.append("text").text(s.text()).call(Drawing.font, commonLabelFont); - var dummyBB = getBoundingClientRect(gd, dummy.node()); - if (Math.round(dummyBB.width) < Math.round(tbb2.width)) { - s.attr("x", ltx - dummyBB.width); + var commonLabelTex = svgTextUtils.isPureTex(String(t0)); + var onCommonLabelReady; + if (commonLabelTex) { + mathjaxPromises.push( + new Promise(function(resolve) { + onCommonLabelReady = function() { + if (!ltext.node().parentNode) { + resolve(); + return; } - dummy.remove(); - }); + positionCommonLabel(); + svgTextUtils.repositionMathGroup(ltext); + resolve(); + }; + }) + ); + } + ltext.text(t0).call(Drawing.font, commonLabelFont).attr("data-notex", commonLabelTex ? null : 1).call(svgTextUtils.positionText, 0, 0).call(svgTextUtils.convertToTspans, gd, onCommonLabelReady); + positionCommonLabel(); + function positionCommonLabel() { + label.attr("transform", ""); + svgTextUtils.positionText(ltext, 0, 0); + svgTextUtils.repositionMathGroup(ltext); + var tbb2 = getHoverTextBBox(gd, ltext); + var lx2, ly2; + if (hovermode === "x") { + var topsign = xa.side === "top" ? "-" : ""; + ltext.attr("text-anchor", "middle").call( + svgTextUtils.positionText, + 0, + xa.side === "top" ? outerTop - tbb2.bottom - HOVERARROWSIZE2 - HOVERTEXTPAD2 : outerTop - tbb2.top + HOVERARROWSIZE2 + HOVERTEXTPAD2 + ); + lx2 = xa._offset + (c0.x0 + c0.x1) / 2; + ly2 = ya._offset + (xa.side === "top" ? 0 : ya._length); + var halfWidth = tbb2.width / 2 + HOVERTEXTPAD2; + var tooltipMidX = lx2; + if (lx2 < halfWidth) { + tooltipMidX = halfWidth; + } else if (lx2 > fullLayout.width - halfWidth) { + tooltipMidX = fullLayout.width - halfWidth; + } + lpath.attr( + "d", + "M" + (lx2 - tooltipMidX) + ",0L" + (lx2 - tooltipMidX + HOVERARROWSIZE2) + "," + topsign + HOVERARROWSIZE2 + "H" + halfWidth + "v" + topsign + (HOVERTEXTPAD2 * 2 + tbb2.height) + "H" + -halfWidth + "V" + topsign + HOVERARROWSIZE2 + "H" + (lx2 - tooltipMidX - HOVERARROWSIZE2) + "Z" + ); + lx2 = tooltipMidX; + commonLabelRect.minX = lx2 - halfWidth; + commonLabelRect.maxX = lx2 + halfWidth; + if (xa.side === "top") { + commonLabelRect.minY = ly2 - (HOVERTEXTPAD2 * 2 + tbb2.height); + commonLabelRect.maxY = ly2 - HOVERTEXTPAD2; + } else { + commonLabelRect.minY = ly2 + HOVERTEXTPAD2; + commonLabelRect.maxY = ly2 + (HOVERTEXTPAD2 * 2 + tbb2.height); } } else { - svgTextUtils.positionText(ltext, sgn * (HOVERTEXTPAD2 + HOVERARROWSIZE2), lty); - clipPath = null; + var anchor; + var sgn; + var leftsign; + if (ya.side === "right") { + anchor = "start"; + sgn = 1; + leftsign = ""; + lx2 = xa._offset + xa._length; + } else { + anchor = "end"; + sgn = -1; + leftsign = "-"; + lx2 = xa._offset; + } + ly2 = ya._offset + (c0.y0 + c0.y1) / 2; + ltext.attr("text-anchor", anchor); + lpath.attr( + "d", + "M0,0L" + leftsign + HOVERARROWSIZE2 + "," + HOVERARROWSIZE2 + "V" + (HOVERTEXTPAD2 + tbb2.height / 2) + "h" + leftsign + (HOVERTEXTPAD2 * 2 + tbb2.width) + "V-" + (HOVERTEXTPAD2 + tbb2.height / 2) + "H" + leftsign + HOVERARROWSIZE2 + "V-" + HOVERARROWSIZE2 + "Z" + ); + commonLabelRect.minY = ly2 - (HOVERTEXTPAD2 + tbb2.height / 2); + commonLabelRect.maxY = ly2 + (HOVERTEXTPAD2 + tbb2.height / 2); + if (ya.side === "right") { + commonLabelRect.minX = lx2 + HOVERARROWSIZE2; + commonLabelRect.maxX = lx2 + HOVERARROWSIZE2 + (HOVERTEXTPAD2 * 2 + tbb2.width); + } else { + commonLabelRect.minX = lx2 - HOVERARROWSIZE2 - (HOVERTEXTPAD2 * 2 + tbb2.width); + commonLabelRect.maxX = lx2 - HOVERARROWSIZE2; + } + var halfHeight = tbb2.height / 2; + var lty = outerTop - tbb2.top - halfHeight; + var clipId = "clip" + fullLayout._uid + "commonlabel" + ya._id; + var clipPath; + if (lx2 < tbb2.width + 2 * HOVERTEXTPAD2 + HOVERARROWSIZE2) { + clipPath = "M-" + (HOVERARROWSIZE2 + HOVERTEXTPAD2) + "-" + halfHeight + "h-" + (tbb2.width - HOVERTEXTPAD2) + "V" + halfHeight + "h" + (tbb2.width - HOVERTEXTPAD2) + "Z"; + var ltx = tbb2.width - lx2 + HOVERTEXTPAD2; + svgTextUtils.positionText(ltext, ltx, lty); + if (anchor === "end") { + ltext.selectAll("tspan").each(function() { + var s = d3.select(this); + var dummy = Drawing.tester.append("text").text(s.text()).call(Drawing.font, commonLabelFont); + var dummyBB = getBoundingClientRect(gd, dummy.node()); + if (Math.round(dummyBB.width) < Math.round(tbb2.width)) { + s.attr("x", ltx - dummyBB.width); + } + dummy.remove(); + }); + } + } else { + svgTextUtils.positionText(ltext, sgn * (HOVERTEXTPAD2 + HOVERARROWSIZE2), lty); + clipPath = null; + } + var textClip = fullLayout._topclips.selectAll("#" + clipId).data(clipPath ? [0] : []); + textClip.enter().append("clipPath").attr("id", clipId).append("path"); + textClip.exit().remove(); + textClip.select("path").attr("d", clipPath); + Drawing.setClipUrl(ltext, clipPath ? clipId : null, gd); } - var textClip = fullLayout._topclips.selectAll("#" + clipId).data(clipPath ? [0] : []); - textClip.enter().append("clipPath").attr("id", clipId).append("path"); - textClip.exit().remove(); - textClip.select("path").attr("d", clipPath); - Drawing.setClipUrl(ltext, clipPath ? clipId : null, gd); + label.attr("transform", strTranslate(lx2, ly2)); } - label.attr("transform", strTranslate(lx2, ly2)); }); if (helpers.isUnifiedHover(hovermode)) { container.selectAll("g.hovertext").remove(); @@ -37332,6 +37508,23 @@ var Plotly = (() => { var texts2 = getHoverLabelText(d, showCommonLabel, hovermode, fullLayout, t0, g); var text2 = texts2[0]; var name5 = texts2[1]; + var hasName = !!(name5 && name5 !== text2); + var numsTex = svgTextUtils.isPureTex(text2); + var nameTex = hasName && svgTextUtils.isPureTex(name5); + var pendingLabelParts = (numsTex ? 1 : 0) + (nameTex ? 1 : 0); + var onLabelPartReady; + if (pendingLabelParts) { + mathjaxPromises.push( + new Promise(function(resolve) { + onLabelPartReady = function() { + if (--pendingLabelParts === 0) { + if (g.node().parentNode) finalizePosition(); + resolve(); + } + }; + }) + ); + } var tx = g.select("text.nums").call(Drawing.font, { family: d.fontFamily || fontFamily, size: d.fontSize || fontSize, @@ -37342,11 +37535,9 @@ var Plotly = (() => { textcase: d.fontTextcase || fontTextcase, lineposition: d.fontLineposition || fontLineposition, shadow: d.fontShadow || fontShadow - }).text(text2).attr("data-notex", 1).call(svgTextUtils.positionText, 0, 0).call(svgTextUtils.convertToTspans, gd); + }).text(text2).attr("data-notex", numsTex ? null : 1).call(svgTextUtils.positionText, 0, 0).call(svgTextUtils.convertToTspans, gd, numsTex ? onLabelPartReady : void 0); var tx2 = g.select("text.name"); - var tx2width = 0; - var tx2height = 0; - if (name5 && name5 !== text2) { + if (hasName) { tx2.call(Drawing.font, { family: d.fontFamily || fontFamily, size: d.fontSize || fontSize, @@ -37357,75 +37548,90 @@ var Plotly = (() => { textcase: d.fontTextcase || fontTextcase, lineposition: d.fontLineposition || fontLineposition, shadow: d.fontShadow || fontShadow - }).text(name5).attr("data-notex", 1).call(svgTextUtils.positionText, 0, 0).call(svgTextUtils.convertToTspans, gd); - var t2bb = getBoundingClientRect(gd, tx2.node()); - tx2width = t2bb.width + 2 * HOVERTEXTPAD2; - tx2height = t2bb.height + 2 * HOVERTEXTPAD2; + }).text(name5).attr("data-notex", nameTex ? null : 1).call(svgTextUtils.positionText, 0, 0).call(svgTextUtils.convertToTspans, gd, nameTex ? onLabelPartReady : void 0); } else { tx2.remove(); g.select("rect").remove(); } - g.select("path").style({ - fill: numsColor, - stroke: contrastColor - }); - var htx = d.xa._offset + (d.x0 + d.x1) / 2; - var hty = d.ya._offset + (d.y0 + d.y1) / 2; - var dx = Math.abs(d.x1 - d.x0); - var dy = Math.abs(d.y1 - d.y0); - var tbb2 = getBoundingClientRect(gd, tx.node()); - var tbbWidth = tbb2.width / fullLayout._invScaleX; - var tbbHeight = tbb2.height / fullLayout._invScaleY; - d.ty0 = (outerTop - tbb2.top) / fullLayout._invScaleY; - d.bx = tbbWidth + 2 * HOVERTEXTPAD2; - d.by = Math.max(tbbHeight + 2 * HOVERTEXTPAD2, tx2height); - d.anchor = "start"; - d.txwidth = tbbWidth; - d.tx2width = tx2width; - d.offset = 0; - var txTotalWidth = (tbbWidth + HOVERARROWSIZE2 + HOVERTEXTPAD2 + tx2width) * fullLayout._invScaleX; - var anchorStartOK, anchorEndOK; - if (rotateLabels) { - d.pos = htx; - anchorStartOK = hty + dy / 2 + txTotalWidth <= outerHeight; - anchorEndOK = hty - dy / 2 - txTotalWidth >= 0; - if ((d.idealAlign === "top" || !anchorStartOK) && anchorEndOK) { - hty -= dy / 2; - d.anchor = "end"; - } else if (anchorStartOK) { - hty += dy / 2; - d.anchor = "start"; + finalizePosition(); + function finalizePosition() { + g.attr("transform", ""); + tx.call(svgTextUtils.positionText, 0, 0); + svgTextUtils.repositionMathGroup(tx); + if (hasName) { + tx2.call(svgTextUtils.positionText, 0, 0); + svgTextUtils.repositionMathGroup(tx2); + } + g.select("path").style({ + fill: numsColor, + stroke: contrastColor + }); + var htx = d.xa._offset + (d.x0 + d.x1) / 2; + var hty = d.ya._offset + (d.y0 + d.y1) / 2; + var dx = Math.abs(d.x1 - d.x0); + var dy = Math.abs(d.y1 - d.y0); + var tx2width = 0; + var tx2height = 0; + if (hasName) { + var t2bb = getHoverTextBBox(gd, tx2); + tx2width = t2bb.width + 2 * HOVERTEXTPAD2; + tx2height = t2bb.height + 2 * HOVERTEXTPAD2; + } + var tbb2 = getHoverTextBBox(gd, tx); + var tbbWidth = tbb2.width / fullLayout._invScaleX; + var tbbHeight = tbb2.height / fullLayout._invScaleY; + d.ty0 = (outerTop - tbb2.top) / fullLayout._invScaleY; + d.bx = tbbWidth + 2 * HOVERTEXTPAD2; + d.by = Math.max(tbbHeight + 2 * HOVERTEXTPAD2, tx2height); + d.anchor = "start"; + d.txwidth = tbbWidth; + d.tx2width = tx2width; + d.offset = 0; + var txTotalWidth = (tbbWidth + HOVERARROWSIZE2 + HOVERTEXTPAD2 + tx2width) * fullLayout._invScaleX; + var anchorStartOK, anchorEndOK; + if (rotateLabels) { + d.pos = htx; + anchorStartOK = hty + dy / 2 + txTotalWidth <= outerHeight; + anchorEndOK = hty - dy / 2 - txTotalWidth >= 0; + if ((d.idealAlign === "top" || !anchorStartOK) && anchorEndOK) { + hty -= dy / 2; + d.anchor = "end"; + } else if (anchorStartOK) { + hty += dy / 2; + d.anchor = "start"; + } else { + d.anchor = "middle"; + } + d.crossPos = hty; } else { - d.anchor = "middle"; + d.pos = hty; + anchorStartOK = htx + dx / 2 + txTotalWidth <= outerWidth; + anchorEndOK = htx - dx / 2 - txTotalWidth >= 0; + if ((d.idealAlign === "left" || !anchorStartOK) && anchorEndOK) { + htx -= dx / 2; + d.anchor = "end"; + } else if (anchorStartOK) { + htx += dx / 2; + d.anchor = "start"; + } else { + d.anchor = "middle"; + var txHalfWidth = txTotalWidth / 2; + var overflowR = htx + txHalfWidth - outerWidth; + var overflowL = htx - txHalfWidth; + if (overflowR > 0) htx -= overflowR; + if (overflowL < 0) htx += -overflowL; + } + d.crossPos = htx; } - d.crossPos = hty; - } else { - d.pos = hty; - anchorStartOK = htx + dx / 2 + txTotalWidth <= outerWidth; - anchorEndOK = htx - dx / 2 - txTotalWidth >= 0; - if ((d.idealAlign === "left" || !anchorStartOK) && anchorEndOK) { - htx -= dx / 2; - d.anchor = "end"; - } else if (anchorStartOK) { - htx += dx / 2; - d.anchor = "start"; - } else { - d.anchor = "middle"; - var txHalfWidth = txTotalWidth / 2; - var overflowR = htx + txHalfWidth - outerWidth; - var overflowL = htx - txHalfWidth; - if (overflowR > 0) htx -= overflowR; - if (overflowL < 0) htx += -overflowL; - } - d.crossPos = htx; - } - tx.attr("text-anchor", d.anchor); - if (tx2width) tx2.attr("text-anchor", d.anchor); - g.attr("transform", strTranslate(htx, hty) + (rotateLabels ? strRotate(YANGLE2) : "")); + tx.attr("text-anchor", d.anchor); + if (tx2width) tx2.attr("text-anchor", d.anchor); + g.attr("transform", strTranslate(htx, hty) + (rotateLabels ? strRotate(YANGLE2) : "")); + } }); return { hoverLabels, - commonLabelBoundingBox: commonLabelRect + commonLabelBoundingBox: commonLabelRect, + mathjaxPromise: mathjaxPromises.length ? Promise.all(mathjaxPromises) : null }; } function getHoverLabelText(d, showCommonLabel, hovermode, fullLayout, t0, g) { @@ -48788,7 +48994,7 @@ var Plotly = (() => { } function marginPushersAgain() { if (!Plots.didMarginChange(oldMargins, fullLayout._size)) return; - return Lib.syncOrAsync([marginPushers, subroutines.layoutStyles], gd); + return marginPushers(); } function positionAndAutorange() { if (!recalc) { @@ -65265,7 +65471,7 @@ var Plotly = (() => { obj.percentPrevious = cdi.difR; obj.percentPreviousLabel = Lib.formatPercent(cdi.difR); obj.percentTotal = cdi.sumR; - obj.percenTotalLabel = Lib.formatPercent(cdi.sumR); + obj.percentTotalLabel = Lib.formatPercent(cdi.sumR); } var customdata = Lib.castOption(trace, cdi.i, "customdata"); if (customdata) obj.customdata = customdata; diff --git a/dist/plotly-basic.min.js b/dist/plotly-basic.min.js index f2fbc4e7473..de4c4b79410 100644 --- a/dist/plotly-basic.min.js +++ b/dist/plotly-basic.min.js @@ -1,5 +1,5 @@ /** -* plotly.js (basic - minified) v4.1.2 +* plotly.js (basic - minified) v4.2.0 * Copyright 2012-2026, Plotly, Inc. * All rights reserved. * Licensed under the MIT license @@ -12,16 +12,16 @@ root.moduleName = factory(); } } (typeof self !== "undefined" ? self : this, () => { -"use strict";var Plotly=(()=>{var AU=Object.create;var Gu=Object.defineProperty,kU=Object.defineProperties,CU=Object.getOwnPropertyDescriptor,SU=Object.getOwnPropertyDescriptors,DU=Object.getOwnPropertyNames,Pv=Object.getOwnPropertySymbols,LU=Object.getPrototypeOf,Op=Object.prototype.hasOwnProperty,Ux=Object.prototype.propertyIsEnumerable;var Yx=(e,r,t)=>r in e?Gu(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,ot=(e,r)=>{for(var t in r||(r={}))Op.call(r,t)&&Yx(e,t,r[t]);if(Pv)for(var t of Pv(r))Ux.call(r,t)&&Yx(e,t,r[t]);return e},Ct=(e,r)=>kU(e,SU(r));var Gx=(e,r)=>{var t={};for(var a in e)Op.call(e,a)&&r.indexOf(a)<0&&(t[a]=e[a]);if(e!=null&&Pv)for(var a of Pv(e))r.indexOf(a)<0&&Ux.call(e,a)&&(t[a]=e[a]);return t};var Pt=(e,r,t)=>()=>{if(t)throw t[0];try{return e&&(r=e(e=0)),r}catch(a){throw t=[a],a}};var J=(e,r)=>()=>{try{return r||e((r={exports:{}}).exports,r),r.exports}catch(t){throw r=0,t}},Rt=(e,r)=>{for(var t in r)Gu(e,t,{get:r[t],enumerable:!0})},Vx=(e,r,t,a)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of DU(r))!Op.call(e,n)&&n!==t&&Gu(e,n,{get:()=>r[n],enumerable:!(a=CU(r,n))||a.enumerable});return e};var Xx=(e,r,t)=>(t=e!=null?AU(LU(e)):{},Vx(r||!e||!e.__esModule?Gu(t,"default",{value:e,enumerable:!0}):t,e)),Xe=e=>Vx(Gu({},"__esModule",{value:!0}),e);var Wx=(e,r,t)=>new Promise((a,n)=>{var i=s=>{try{o(t.next(s))}catch(u){n(u)}},l=s=>{try{o(t.throw(s))}catch(u){n(u)}},o=s=>s.done?a(s.value):Promise.resolve(s.value).then(i,l);o((t=t.apply(e,r)).next())});var Vu=J(Zx=>{"use strict";Zx.version="4.1.2"});var $x=J((Jx,Rv)=>{(function(r,t,a){t[r]=t[r]||a(),typeof Rv!="undefined"&&Rv.exports&&(Rv.exports=t[r])})("Promise",typeof window!="undefined"?window:Jx,function(){"use strict";var r,t,a,n=Object.prototype.toString,i=typeof setImmediate!="undefined"?function(w){return setImmediate(w)}:setTimeout;try{Object.defineProperty({},"x",{}),r=function(w,T,b,M){return Object.defineProperty(w,T,{value:b,writable:!0,configurable:M!==!1})}}catch(x){r=function(T,b,M){return T[b]=M,T}}a=(function(){var w,T,b;function M(S,A){this.fn=S,this.self=A,this.next=void 0}return{add:function(A,L){b=new M(A,L),T?T.next=b:w=b,T=b,b=void 0},drain:function(){var A=w;for(w=T=t=void 0;A;)A.fn.call(A.self),A=A.next}}})();function l(x,w){a.add(x,w),t||(t=i(a.drain))}function o(x){var w,T=typeof x;return x!=null&&(T=="object"||T=="function")&&(w=x.then),typeof w=="function"?w:!1}function s(){for(var x=0;x0&&l(s,T))}catch(b){c.call(new h(T),b)}}}function c(x){var w=this;w.triggered||(w.triggered=!0,w.def&&(w=w.def),w.msg=x,w.state=2,w.chain.length>0&&l(s,w))}function d(x,w,T,b){for(var M=0;M{(function(){var e={version:"3.8.2"},r=[].slice,t=function(v){return r.call(v)},a=self.document;function n(v){return v&&(v.ownerDocument||v.document||v).documentElement}function i(v){return v&&(v.ownerDocument&&v.ownerDocument.defaultView||v.document&&v||v.defaultView)}if(a)try{t(a.documentElement.childNodes)[0].nodeType}catch(v){t=function(p){for(var _=p.length,k=new Array(_);_--;)k[_]=p[_];return k}}if(Date.now||(Date.now=function(){return+new Date}),a)try{a.createElement("DIV").style.setProperty("opacity",0,"")}catch(v){var l=this.Element.prototype,o=l.setAttribute,s=l.setAttributeNS,u=this.CSSStyleDeclaration.prototype,f=u.setProperty;l.setAttribute=function(p,_){o.call(this,p,_+"")},l.setAttributeNS=function(p,_,k){s.call(this,p,_,k+"")},u.setProperty=function(p,_,k){f.call(this,p,_+"",k)}}e.ascending=c;function c(v,p){return vp?1:v>=p?0:NaN}e.descending=function(v,p){return pv?1:p>=v?0:NaN},e.min=function(v,p){var _=-1,k=v.length,C,D;if(arguments.length===1){for(;++_=D){C=D;break}for(;++_D&&(C=D)}else{for(;++_=D){C=D;break}for(;++_D&&(C=D)}return C},e.max=function(v,p){var _=-1,k=v.length,C,D;if(arguments.length===1){for(;++_=D){C=D;break}for(;++_C&&(C=D)}else{for(;++_=D){C=D;break}for(;++_C&&(C=D)}return C},e.extent=function(v,p){var _=-1,k=v.length,C,D,R;if(arguments.length===1){for(;++_=D){C=R=D;break}for(;++_D&&(C=D),R=D){C=R=D;break}for(;++_D&&(C=D),R1)return R/(F-1)},e.deviation=function(){var v=e.variance.apply(this,arguments);return v&&Math.sqrt(v)};function m(v){return{left:function(p,_,k,C){for(arguments.length<3&&(k=0),arguments.length<4&&(C=p.length);k>>1;v(p[D],_)<0?k=D+1:C=D}return k},right:function(p,_,k,C){for(arguments.length<3&&(k=0),arguments.length<4&&(C=p.length);k>>1;v(p[D],_)>0?C=D:k=D+1}return k}}}var g=m(c);e.bisectLeft=g.left,e.bisect=e.bisectRight=g.right,e.bisector=function(v){return m(v.length===1?function(p,_){return c(v(p),_)}:v)},e.shuffle=function(v,p,_){(k=arguments.length)<3&&(_=v.length,k<2&&(p=0));for(var k=_-p,C,D;k;)D=Math.random()*k--|0,C=v[k+p],v[k+p]=v[D+p],v[D+p]=C;return v},e.permute=function(v,p){for(var _=p.length,k=new Array(_);_--;)k[_]=v[p[_]];return k},e.pairs=function(v){for(var p=0,_=v.length-1,k,C=v[0],D=new Array(_<0?0:_);p<_;)D[p]=[k=C,C=v[++p]];return D},e.transpose=function(v){if(!(D=v.length))return[];for(var p=-1,_=e.min(v,y),k=new Array(_);++p<_;)for(var C=-1,D,R=k[p]=new Array(D);++C=0;)for(R=v[p],_=R.length;--_>=0;)D[--C]=R[_];return D};var x=Math.abs;e.range=function(v,p,_){if(arguments.length<3&&(_=1,arguments.length<2&&(p=v,v=0)),(p-v)/_===1/0)throw new Error("infinite range");var k=[],C=w(x(_)),D=-1,R;if(v*=C,p*=C,_*=C,_<0)for(;(R=v+_*++D)>p;)k.push(R/C);else for(;(R=v+_*++D)=p.length)return C?C.call(v,F):k?F.sort(k):F;for(var V=-1,$=F.length,K=p[U++],se,me,Q,ae=new b,ie;++V<$;)(ie=ae.get(se=K(me=F[V])))?ie.push(me):ae.set(se,[me]);return E?(me=E(),Q=function(pe,ye){me.set(pe,D(E,ye,U))}):(me={},Q=function(pe,ye){me[pe]=D(E,ye,U)}),ae.forEach(Q),me}function R(E,F){if(F>=p.length)return E;var U=[],V=_[F++];return E.forEach(function($,K){U.push({key:$,values:R(K,F)})}),V?U.sort(function($,K){return V($.key,K.key)}):U}return v.map=function(E,F){return D(F,E,0)},v.entries=function(E){return R(D(e.map,E,0),0)},v.key=function(E){return p.push(E),v},v.sortKeys=function(E){return _[p.length-1]=E,v},v.sortValues=function(E){return k=E,v},v.rollup=function(E){return C=E,v},v},e.set=function(v){var p=new B;if(v)for(var _=0,k=v.length;_=0&&(k=v.slice(_+1),v=v.slice(0,_)),v)return arguments.length<2?this[v].on(k):this[v].on(k,p);if(arguments.length===2){if(p==null)for(v in this)this.hasOwnProperty(v)&&this[v].on(k,null);return this}};function W(v){var p=[],_=new b;function k(){for(var C=p,D=-1,R=C.length,E;++D=0&&(_=v.slice(0,p))!=="xmlns"&&(v=v.slice(p+1)),qe.hasOwnProperty(_)?{space:qe[_],local:v}:v}},ce.attr=function(v,p){if(arguments.length<2){if(typeof v=="string"){var _=this.node();return v=e.ns.qualify(v),v.local?_.getAttributeNS(v.space,v.local):_.getAttribute(v)}for(p in v)this.each(Ce(p,v[p]));return this}return this.each(Ce(v,p))};function Ce(v,p){v=e.ns.qualify(v);function _(){this.removeAttribute(v)}function k(){this.removeAttributeNS(v.space,v.local)}function C(){this.setAttribute(v,p)}function D(){this.setAttributeNS(v.space,v.local,p)}function R(){var F=p.apply(this,arguments);F==null?this.removeAttribute(v):this.setAttribute(v,F)}function E(){var F=p.apply(this,arguments);F==null?this.removeAttributeNS(v.space,v.local):this.setAttributeNS(v.space,v.local,F)}return p==null?v.local?k:_:typeof p=="function"?v.local?E:R:v.local?D:C}function De(v){return v.trim().replace(/\s+/g," ")}ce.classed=function(v,p){if(arguments.length<2){if(typeof v=="string"){var _=this.node(),k=(v=Ue(v)).length,C=-1;if(p=_.classList){for(;++C=0;)(D=_[k])&&(C&&C!==D.nextSibling&&C.parentNode.insertBefore(D,C),C=D);return this},ce.sort=function(v){v=he.apply(this,arguments);for(var p=-1,_=this.length;++p<_;)this[p].sort(v);return this.order()};function he(v){return arguments.length||(v=c),function(p,_){return p&&_?v(p.__data__,_.__data__):!p-!_}}ce.each=function(v){return Ve(this,function(p,_,k){v.call(p,p.__data__,_,k)})};function Ve(v,p){for(var _=0,k=v.length;_=p&&(p=C+1);!(F=R[p])&&++p0&&(v=v.slice(0,C));var R=He.get(v);R&&(v=R,D=Ie);function E(){var V=this[k];V&&(this.removeEventListener(v,V,V.$),delete this[k])}function F(){var V=D(p,t(arguments));E.call(this),this.addEventListener(v,this[k]=V,V.$=_),V._=p}function U(){var V=new RegExp("^__on([^.]+)"+e.requote(v)+"$"),$;for(var K in this)if($=K.match(V)){var se=this[K];this.removeEventListener($[1],se,se.$),delete this[K]}}return C?p?F:E:p?X:U}var He=e.map({mouseenter:"mouseover",mouseleave:"mouseout"});a&&He.forEach(function(v){"on"+v in a&&He.remove(v)});function Je(v,p){return function(_){var k=e.event;e.event=_,p[0]=this.__data__;try{v.apply(this,p)}finally{e.event=k}}}function Ie(v,p){var _=Je(v,p);return function(k){var C=this,D=k.relatedTarget;(!D||D!==C&&!(D.compareDocumentPosition(C)&8))&&_.call(C,k)}}var Ge,nr=0;function lr(v){var p=".dragsuppress-"+ ++nr,_="click"+p,k=e.select(i(v)).on("touchmove"+p,ee).on("dragstart"+p,ee).on("selectstart"+p,ee);if(Ge==null&&(Ge="onselectstart"in v?!1:G(v.style,"userSelect")),Ge){var C=n(v).style,D=C[Ge];C[Ge]="none"}return function(R){if(k.on(p,null),Ge&&(C[Ge]=D),R){var E=function(){k.on(_,null)};k.on(_,function(){ee(),E()},!0),setTimeout(E,0)}}}e.mouse=function(v){return Se(v,ne())};var fr=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;function Se(v,p){p.changedTouches&&(p=p.changedTouches[0]);var _=v.ownerSVGElement||v;if(_.createSVGPoint){var k=_.createSVGPoint();if(fr<0){var C=i(v);if(C.scrollX||C.scrollY){_=e.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var D=_[0][0].getScreenCTM();fr=!(D.f||D.e),_.remove()}}return fr?(k.x=p.pageX,k.y=p.pageY):(k.x=p.clientX,k.y=p.clientY),k=k.matrixTransform(v.getScreenCTM().inverse()),[k.x,k.y]}var R=v.getBoundingClientRect();return[p.clientX-R.left-v.clientLeft,p.clientY-R.top-v.clientTop]}e.touch=function(v,p,_){if(arguments.length<3&&(_=p,p=ne().changedTouches),p){for(var k=0,C=p.length,D;k0?1:v<0?-1:0}function jr(v,p,_){return(p[0]-v[0])*(_[1]-v[1])-(p[1]-v[1])*(_[0]-v[0])}function st(v){return v>1?0:v<-1?xr:Math.acos(v)}function vt(v){return v>1?te:v<-1?-te:Math.asin(v)}function Bt(v){return((v=Math.exp(v))-1/v)/2}function Lt(v){return((v=Math.exp(v))+1/v)/2}function wa(v){return((v=Math.exp(2*v))-1)/(v+1)}function cn(v){return(v=Math.sin(v/2))*v}var ta=Math.SQRT2,ln=2,An=4;e.interpolateZoom=function(v,p){var _=v[0],k=v[1],C=v[2],D=p[0],R=p[1],E=p[2],F=D-_,U=R-k,V=F*F+U*U,$,K;if(V0&&(tr=tr.transition().duration(R)),tr.call(ye.event)}function gr(){ae&&ae.domain(Q.range().map(function(tr){return(tr-v.x)/v.k}).map(Q.invert)),pe&&pe.domain(ie.range().map(function(tr){return(tr-v.y)/v.k}).map(ie.invert))}function br(tr){E++||tr({type:"zoomstart"})}function Rr(tr){gr(),tr({type:"zoom",scale:v.k,translate:[v.x,v.y]})}function wr(tr){--E||(tr({type:"zoomend"}),_=null)}function Lr(){var tr=this,zr=me.of(tr,arguments),Fr=0,rt=e.select(i(tr)).on(U,La).on(V,Za),Et=oe(e.mouse(tr)),ia=lr(tr);Dv.call(tr),br(zr);function La(){Fr=1,cr(e.mouse(tr),Et),Rr(zr)}function Za(){rt.on(U,null).on(V,null),ia(Fr),wr(zr)}}function et(){var tr=this,zr=me.of(tr,arguments),Fr={},rt=0,Et,ia=".zoom-"+e.event.changedTouches[0].identifier,La="touchmove"+ia,Za="touchend"+ia,on=[],Ja=e.select(tr),vn=lr(tr);dn(),br(zr),Ja.on(F,null).on(K,dn);function Ia(){var pi=e.touches(tr);return Et=v.k,pi.forEach(function(qa){qa.identifier in Fr&&(Fr[qa.identifier]=oe(qa))}),pi}function dn(){var pi=e.event.target;e.select(pi).on(La,zo).on(Za,TU),on.push(pi);for(var qa=e.event.changedTouches,Xn=0,Yi=qa.length;Xn1){var Fo=Wn[0],Nl=Wn[1],Ev=Fo[0]-Nl[0],Ox=Fo[1]-Nl[1];rt=Ev*Ev+Ox*Ox}}function zo(){var pi=e.touches(tr),qa,Xn,Yi,Wn;Dv.call(tr);for(var t0=0,Fo=pi.length;t01?1:p,_=_<0?0:_>1?1:_,C=_<=.5?_*(1+p):_+p-_*p,k=2*_-C;function D(E){return E>360?E-=360:E<0&&(E+=360),E<60?k+(C-k)*E/60:E<180?C:E<240?k+(C-k)*(240-E)/60:k}function R(E){return Math.round(D(E)*255)}return new Xa(R(v+120),R(v),R(v-120))}e.hcl=ut;function ut(v,p,_){return this instanceof ut?(this.h=+v,this.c=+p,void(this.l=+_)):arguments.length<2?v instanceof ut?new ut(v.h,v.c,v.l):v instanceof Yt?uv(v.l,v.a,v.b):uv((v=dv((v=e.rgb(v)).r,v.g,v.b)).l,v.a,v.b):new ut(v,p,_)}var aa=ut.prototype=new Qr;aa.brighter=function(v){return new ut(this.h,this.c,Math.min(100,this.l+gt*(arguments.length?v:1)))},aa.darker=function(v){return new ut(this.h,this.c,Math.max(0,this.l-gt*(arguments.length?v:1)))},aa.rgb=function(){return Un(this.h,this.c,this.l).rgb()};function Un(v,p,_){return isNaN(v)&&(v=0),isNaN(p)&&(p=0),new Yt(_,Math.cos(v*=ve)*p,Math.sin(v)*p)}e.lab=Yt;function Yt(v,p,_){return this instanceof Yt?(this.l=+v,this.a=+p,void(this.b=+_)):arguments.length<2?v instanceof Yt?new Yt(v.l,v.a,v.b):v instanceof ut?Un(v.h,v.c,v.l):dv((v=Xa(v)).r,v.g,v.b):new Yt(v,p,_)}var gt=18,Kt=.95047,jt=1,Lo=1.08883,Rl=Yt.prototype=new Qr;Rl.brighter=function(v){return new Yt(Math.min(100,this.l+gt*(arguments.length?v:1)),this.a,this.b)},Rl.darker=function(v){return new Yt(Math.max(0,this.l-gt*(arguments.length?v:1)),this.a,this.b)},Rl.rgb=function(){return sv(this.l,this.a,this.b)};function sv(v,p,_){var k=(v+16)/116,C=k+p/500,D=k-_/200;return C=Lu(C)*Kt,k=Lu(k)*jt,D=Lu(D)*Lo,new Xa(Eu(3.2404542*C-1.5371385*k-.4985314*D),Eu(-.969266*C+1.8760108*k+.041556*D),Eu(.0556434*C-.2040259*k+1.0572252*D))}function uv(v,p,_){return v>0?new ut(Math.atan2(_,p)*Fe,Math.sqrt(p*p+_*_),v):new ut(NaN,NaN,v)}function Lu(v){return v>.206893034?v*v*v:(v-4/29)/7.787037}function qu(v){return v>.008856?Math.pow(v,1/3):7.787037*v+4/29}function Eu(v){return Math.round(255*(v<=.00304?12.92*v:1.055*Math.pow(v,1/2.4)-.055))}e.rgb=Xa;function Xa(v,p,_){return this instanceof Xa?(this.r=~~v,this.g=~~p,void(this.b=~~_)):arguments.length<2?v instanceof Xa?new Xa(v.r,v.g,v.b):cv(""+v,Xa,kt):new Xa(v,p,_)}function fv(v){return new Xa(v>>16,v>>8&255,v&255)}function Zs(v){return fv(v)+""}var Js=Xa.prototype=new Qr;Js.brighter=function(v){v=Math.pow(.7,arguments.length?v:1);var p=this.r,_=this.g,k=this.b,C=30;return!p&&!_&&!k?new Xa(C,C,C):(p&&p>4,k=k>>4|k,C=F&240,C=C>>4|C,D=F&15,D=D<<4|D):v.length===7&&(k=(F&16711680)>>16,C=(F&65280)>>8,D=F&255)),p(k,C,D))}function vv(v,p,_){var k=Math.min(v/=255,p/=255,_/=255),C=Math.max(v,p,_),D=C-k,R,E,F=(C+k)/2;return D?(E=F<.5?D/(C+k):D/(2-C-k),v==C?R=(p-_)/D+(p<_?6:0):p==C?R=(_-v)/D+2:R=(v-p)/D+4,R*=60):(R=NaN,E=F>0&&F<1?0:R),new yt(R,E,F)}function dv(v,p,_){v=Pu(v),p=Pu(p),_=Pu(_);var k=qu((.4124564*v+.3575761*p+.1804375*_)/Kt),C=qu((.2126729*v+.7151522*p+.072175*_)/jt),D=qu((.0193339*v+.119192*p+.9503041*_)/Lo);return Yt(116*C-16,500*(k-C),200*(C-D))}function Pu(v){return(v/=255)<=.04045?v/12.92:Math.pow((v+.055)/1.055,2.4)}function Ru(v){var p=parseFloat(v);return v.charAt(v.length-1)==="%"?Math.round(p*2.55):p}var Tr=e.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});Tr.forEach(function(v,p){Tr.set(v,fv(p))});function Mr(v){return typeof v=="function"?v:function(){return v}}e.functor=Mr,e.xhr=tt(H);function tt(v){return function(p,_,k){return arguments.length===2&&typeof _=="function"&&(k=_,_=null),or(p,_,v,k)}}function or(v,p,_,k){var C={},D=e.dispatch("beforesend","progress","load","error"),R={},E=new XMLHttpRequest,F=null;self.XDomainRequest&&!("withCredentials"in E)&&/^(http(s)?:)?\/\//.test(v)&&(E=new XDomainRequest),"onload"in E?E.onload=E.onerror=U:E.onreadystatechange=function(){E.readyState>3&&U()};function U(){var V=E.status,$;if(!V&&bt(E)||V>=200&&V<300||V===304){try{$=_.call(C,E)}catch(K){D.error.call(C,K);return}D.load.call(C,$)}else D.error.call(C,E)}return E.onprogress=function(V){var $=e.event;e.event=V;try{D.progress.call(C,E)}finally{e.event=$}},C.header=function(V,$){return V=(V+"").toLowerCase(),arguments.length<2?R[V]:($==null?delete R[V]:R[V]=$+"",C)},C.mimeType=function(V){return arguments.length?(p=V==null?null:V+"",C):p},C.responseType=function(V){return arguments.length?(F=V,C):F},C.response=function(V){return _=V,C},["get","post"].forEach(function(V){C[V]=function(){return C.send.apply(C,[V].concat(t(arguments)))}}),C.send=function(V,$,K){if(arguments.length===2&&typeof $=="function"&&(K=$,$=null),E.open(V,v,!0),p!=null&&!("accept"in R)&&(R.accept=p+",*/*"),E.setRequestHeader)for(var se in R)E.setRequestHeader(se,R[se]);return p!=null&&E.overrideMimeType&&E.overrideMimeType(p),F!=null&&(E.responseType=F),K!=null&&C.on("error",K).on("load",function(me){K(null,me)}),D.beforesend.call(C,E),E.send($==null?null:$),C},C.abort=function(){return E.abort(),C},e.rebind(C,D,"on"),k==null?C:C.get(Wa(k))}function Wa(v){return v.length===1?function(p,_){v(p==null?_:null)}:v}function bt(v){var p=v.responseType;return p&&p!=="text"?v.response:v.responseText}e.dsv=function(v,p){var _=new RegExp('["'+v+` -]`),k=v.charCodeAt(0);function C(U,V,$){arguments.length<3&&($=V,V=null);var K=or(U,p,V==null?D:R(V),$);return K.row=function(se){return arguments.length?K.response((V=se)==null?D:R(se)):V},K}function D(U){return C.parse(U.responseText)}function R(U){return function(V){return C.parse(V.responseText,U)}}C.parse=function(U,V){var $;return C.parseRows(U,function(K,se){if($)return $(K,se-1);var me=function(Q){for(var ae={},ie=K.length,pe=0;pe=me)return K;if(pe)return pe=!1,$;var Oe=Q;if(U.charCodeAt(Oe)===34){for(var ir=Oe;ir++24?(isFinite(p)&&(clearTimeout(qo),qo=setTimeout(dp,p)),Gn=0):(Gn=1,C6(dp))}e.timer.flush=function(){S6(),D6()};function S6(){for(var v=Date.now(),p=Sa;p;)v>=p.t&&p.c(v-p.t)&&(p.c=null),p=p.n;return v}function D6(){for(var v,p=Sa,_=1/0;p;)p.c?(p.t<_&&(_=p.t),p=(v=p).n):p=v?v.n=p.n:Sa=p.n;return Da=v,_}e.round=function(v,p){return p?Math.round(v*(p=Math.pow(10,p)))/p:Math.round(v)},e.geom={};function $s(v){return v[0]}function zu(v){return v[1]}e.geom.hull=function(v){var p=$s,_=zu;if(arguments.length)return k(v);function k(C){if(C.length<3)return[];var D=Mr(p),R=Mr(_),E,F=C.length,U=[],V=[];for(E=0;E=0;--E)Q.push(C[U[$[E]][2]]);for(E=+se;E1&&jr(v[_[k-2]],v[_[k-1]],v[C])<=0;)--k;_[k++]=C}return _.slice(0,k)}function CO(v,p){return v[0]-p[0]||v[1]-p[1]}e.geom.polygon=function(v){return j(v,pv),v};var pv=e.geom.polygon.prototype=[];pv.area=function(){for(var v=-1,p=this.length,_,k=this[p-1],C=0;++vNe)E=E.L;else if(R=p-qO(E,_),R>Ne){if(!E.R){k=E;break}E=E.R}else{D>-Ne?(k=E.P,C=E):R>-Ne?(k=E,C=E.N):k=C=E;break}var F=R6(v);if(js.insert(k,F),!(!k&&!C)){if(k===C){e0(k),C=R6(k.site),js.insert(F,C),F.edge=C.edge=Nu(k.site,F.site),Qs(k),Qs(C);return}if(!C){F.edge=Nu(k.site,F.site);return}e0(k),e0(C);var U=k.site,V=U.x,$=U.y,K=v.x-V,se=v.y-$,me=C.site,Q=me.x-V,ae=me.y-$,ie=2*(K*ae-se*Q),pe=K*K+se*se,ye=Q*Q+ae*ae,oe={x:(ae*pe-se*ye)/ie+V,y:(K*ye-Q*pe)/ie+$};mv(C.edge,U,me,oe),F.edge=Nu(U,v,null,oe),C.edge=Nu(v,me,null,oe),Qs(k),Qs(C)}}function z6(v,p){var _=v.site,k=_.x,C=_.y,D=C-p;if(!D)return k;var R=v.P;if(!R)return-1/0;_=R.site;var E=_.x,F=_.y,U=F-p;if(!U)return E;var V=E-k,$=1/D-1/U,K=V/U;return $?(-K+Math.sqrt(K*K-2*$*(V*V/(-2*U)-F+U/2+C-D/2)))/$+k:(k+E)/2}function qO(v,p){var _=v.N;if(_)return z6(_,p);var k=v.site;return k.y===p?k.x:1/0}function F6(v){this.site=v,this.edges=[]}F6.prototype.prepare=function(){for(var v=this.edges,p=v.length,_;p--;)_=v[p].edge,(!_.b||!_.a)&&v.splice(p,1);return v.sort(N6),v.length};function EO(v){for(var p=v[0][0],_=v[1][0],k=v[0][1],C=v[1][1],D,R,E,F,U=Eo,V=U.length,$,K,se,me,Q,ae;V--;)if($=U[V],!(!$||!$.prepare()))for(se=$.edges,me=se.length,K=0;KNe||x(F-R)>Ne)&&(se.splice(K,0,new yv(NO($.site,ae,x(E-p)Ne?{x:p,y:x(D-p)Ne?{x:x(R-C)Ne?{x:_,y:x(D-_)Ne?{x:x(R-k)=-pr)){var K=F*F+U*U,se=V*V+ae*ae,me=(ae*K-U*se)/$,Q=(F*se-V*K)/$,ae=Q+E,ie=P6.pop()||new PO;ie.arc=v,ie.site=C,ie.x=me+R,ie.y=ae+Math.sqrt(me*me+Q*Q),ie.cy=ae,v.circle=ie;for(var pe=null,ye=Fu._;ye;)if(ie.y0)){if(Q/=se,se<0){if(Q<$)return;Q0){if(Q>K)return;Q>$&&($=Q)}if(Q=_-E,!(!se&&Q<0)){if(Q/=se,se<0){if(Q>K)return;Q>$&&($=Q)}else if(se>0){if(Q<$)return;Q0)){if(Q/=me,me<0){if(Q<$)return;Q0){if(Q>K)return;Q>$&&($=Q)}if(Q=k-F,!(!me&&Q<0)){if(Q/=me,me<0){if(Q>K)return;Q>$&&($=Q)}else if(me>0){if(Q<$)return;Q0&&(C.a={x:E+$*se,y:F+$*me}),K<1&&(C.b={x:E+K*se,y:F+K*me}),C}}}}}}function zO(v){for(var p=Ks,_=RO(v[0][0],v[0][1],v[1][0],v[1][1]),k=p.length,C;k--;)C=p[k],(!FO(C,v)||!_(C)||x(C.a.x-C.b.x)=D)return;if(V>K){if(!k)k={x:me,y:R};else if(k.y>=E)return;_={x:me,y:E}}else{if(!k)k={x:me,y:E};else if(k.y1)if(V>K){if(!k)k={x:(R-ie)/ae,y:R};else if(k.y>=E)return;_={x:(E-ie)/ae,y:E}}else{if(!k)k={x:(E-ie)/ae,y:E};else if(k.y=D)return;_={x:D,y:ae*D+ie}}else{if(!k)k={x:D,y:ae*D+ie};else if(k.x=V&&ie.x<=K&&ie.y>=$&&ie.y<=se?[[V,se],[K,se],[K,$],[V,$]]:[];pe.point=F[Q]}),U}function E(F){return F.map(function(U,V){return{x:Math.round(k(U,V)/Ne)*Ne,y:Math.round(C(U,V)/Ne)*Ne,i:V}})}return R.links=function(F){return bp(E(F)).edges.filter(function(U){return U.l&&U.r}).map(function(U){return{source:F[U.l.i],target:F[U.r.i]}})},R.triangles=function(F){var U=[];return bp(E(F)).cells.forEach(function(V,$){for(var K=V.site,se=V.edges.sort(N6),me=-1,Q=se.length,ae,ie,pe=se[Q-1].edge,ye=pe.l===K?pe.r:pe.l;++meye&&(ye=V.x),V.y>oe&&(oe=V.y),se.push(V.x),me.push(V.y);else for(Q=0;Qye&&(ye=Oe),ir>oe&&(oe=ir),se.push(Oe),me.push(ir)}var cr=ye-ie,sr=oe-pe;cr>sr?oe=pe+cr:ye=ie+sr;function gr(wr,Lr,et,Ut,nt,tr,zr,Fr){if(!(isNaN(et)||isNaN(Ut)))if(wr.leaf){var rt=wr.x,Et=wr.y;if(rt!=null)if(x(rt-et)+x(Et-Ut)<.01)br(wr,Lr,et,Ut,nt,tr,zr,Fr);else{var ia=wr.point;wr.x=wr.y=wr.point=null,br(wr,ia,rt,Et,nt,tr,zr,Fr),br(wr,Lr,et,Ut,nt,tr,zr,Fr)}else wr.x=et,wr.y=Ut,wr.point=Lr}else br(wr,Lr,et,Ut,nt,tr,zr,Fr)}function br(wr,Lr,et,Ut,nt,tr,zr,Fr){var rt=(nt+zr)*.5,Et=(tr+Fr)*.5,ia=et>=rt,La=Ut>=Et,Za=La<<1|ia;wr.leaf=!1,wr=wr.nodes[Za]||(wr.nodes[Za]=H6()),ia?nt=rt:zr=rt,La?tr=Et:Fr=Et,gr(wr,Lr,et,Ut,nt,tr,zr,Fr)}var Rr=H6();if(Rr.add=function(wr){gr(Rr,wr,+$(wr,++Q),+K(wr,Q),ie,pe,ye,oe)},Rr.visit=function(wr){Hu(wr,Rr,ie,pe,ye,oe)},Rr.find=function(wr){return YO(Rr,wr[0],wr[1],ie,pe,ye,oe)},Q=-1,p==null){for(;++QD||K>R||se=Oe,sr=_>=ir,gr=sr<<1|cr,br=gr+4;gr_&&(D=p.slice(_,D),E[R]?E[R]+=D:E[++R]=D),(k=k[0])===(C=C[0])?E[R]?E[R]+=C:E[++R]=C:(E[++R]=null,F.push({i:R,x:dl(k,C)})),_=wp.lastIndex;return _=0&&!(k=e.interpolators[_](v,p)););return k}e.interpolators=[function(v,p){var _=typeof p;return(_==="string"?Tr.has(p.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(p)?xp:Y6:p instanceof Qr?xp:Array.isArray(p)?xv:_==="object"&&isNaN(p)?O6:dl)(v,p)}],e.interpolateArray=xv;function xv(v,p){var _=[],k=[],C=v.length,D=p.length,R=Math.min(v.length,p.length),E;for(E=0;E=0?v.slice(0,p):v,k=p>=0?v.slice(p+1):"in";return _=UO.get(_)||U6,k=GO.get(k)||H,VO(k(_.apply(null,r.call(arguments,1))))};function VO(v){return function(p){return p<=0?0:p>=1?1:v(p)}}function G6(v){return function(p){return 1-v(1-p)}}function V6(v){return function(p){return .5*(p<.5?v(2*p):2-v(2-2*p))}}function XO(v){return v*v}function WO(v){return v*v*v}function ZO(v){if(v<=0)return 0;if(v>=1)return 1;var p=v*v,_=p*v;return 4*(v<.5?_:3*(v-p)+_-.75)}function JO(v){return function(p){return Math.pow(p,v)}}function $O(v){return 1-Math.cos(v*te)}function KO(v){return Math.pow(2,10*(v-1))}function jO(v){return 1-Math.sqrt(1-v*v)}function QO(v,p){var _;return arguments.length<2&&(p=.45),arguments.length?_=p/ur*Math.asin(1/v):(v=1,_=p/4),function(k){return 1+v*Math.pow(2,-10*k)*Math.sin((k-_)*ur/p)}}function eY(v){return v||(v=1.70158),function(p){return p*p*((v+1)*p-v)}}function rY(v){return v<1/2.75?7.5625*v*v:v<2/2.75?7.5625*(v-=1.5/2.75)*v+.75:v<2.5/2.75?7.5625*(v-=2.25/2.75)*v+.9375:7.5625*(v-=2.625/2.75)*v+.984375}e.interpolateHcl=tY;function tY(v,p){v=e.hcl(v),p=e.hcl(p);var _=v.h,k=v.c,C=v.l,D=p.h-_,R=p.c-k,E=p.l-C;return isNaN(R)&&(R=0,k=isNaN(k)?p.c:k),isNaN(D)?(D=0,_=isNaN(_)?p.h:_):D>180?D-=360:D<-180&&(D+=360),function(F){return Un(_+D*F,k+R*F,C+E*F)+""}}e.interpolateHsl=aY;function aY(v,p){v=e.hsl(v),p=e.hsl(p);var _=v.h,k=v.s,C=v.l,D=p.h-_,R=p.s-k,E=p.l-C;return isNaN(R)&&(R=0,k=isNaN(k)?p.s:k),isNaN(D)?(D=0,_=isNaN(_)?p.h:_):D>180?D-=360:D<-180&&(D+=360),function(F){return kt(_+D*F,k+R*F,C+E*F)+""}}e.interpolateLab=nY;function nY(v,p){v=e.lab(v),p=e.lab(p);var _=v.l,k=v.a,C=v.b,D=p.l-_,R=p.a-k,E=p.b-C;return function(F){return sv(_+D*F,k+R*F,C+E*F)+""}}e.interpolateRound=X6;function X6(v,p){return p-=v,function(_){return Math.round(v+p*_)}}e.transform=function(v){var p=a.createElementNS(e.ns.prefix.svg,"g");return(e.transform=function(_){if(_!=null){p.setAttribute("transform",_);var k=p.transform.baseVal.consolidate()}return new W6(k?k.matrix:lY)})(v)};function W6(v){var p=[v.a,v.b],_=[v.c,v.d],k=J6(p),C=Z6(p,_),D=J6(iY(_,p,-C))||0;p[0]*_[1]<_[0]*p[1]&&(p[0]*=-1,p[1]*=-1,k*=-1,C*=-1),this.rotate=(k?Math.atan2(p[1],p[0]):Math.atan2(-_[0],_[1]))*Fe,this.translate=[v.e,v.f],this.scale=[k,D],this.skew=D?Math.atan2(C,D)*Fe:0}W6.prototype.toString=function(){return"translate("+this.translate+")rotate("+this.rotate+")skewX("+this.skew+")scale("+this.scale+")"};function Z6(v,p){return v[0]*p[0]+v[1]*p[1]}function J6(v){var p=Math.sqrt(Z6(v,v));return p&&(v[0]/=p,v[1]/=p),p}function iY(v,p,_){return v[0]+=_*p[0],v[1]+=_*p[1],v}var lY={a:1,b:0,c:0,d:1,e:0,f:0};e.interpolateTransform=$6;function r0(v){return v.length?v.pop()+",":""}function oY(v,p,_,k){if(v[0]!==p[0]||v[1]!==p[1]){var C=_.push("translate(",null,",",null,")");k.push({i:C-4,x:dl(v[0],p[0])},{i:C-2,x:dl(v[1],p[1])})}else(p[0]||p[1])&&_.push("translate("+p+")")}function sY(v,p,_,k){v!==p?(v-p>180?p+=360:p-v>180&&(v+=360),k.push({i:_.push(r0(_)+"rotate(",null,")")-2,x:dl(v,p)})):p&&_.push(r0(_)+"rotate("+p+")")}function uY(v,p,_,k){v!==p?k.push({i:_.push(r0(_)+"skewX(",null,")")-2,x:dl(v,p)}):p&&_.push(r0(_)+"skewX("+p+")")}function fY(v,p,_,k){if(v[0]!==p[0]||v[1]!==p[1]){var C=_.push(r0(_)+"scale(",null,",",null,")");k.push({i:C-4,x:dl(v[0],p[0])},{i:C-2,x:dl(v[1],p[1])})}else(p[0]!==1||p[1]!==1)&&_.push(r0(_)+"scale("+p+")")}function $6(v,p){var _=[],k=[];return v=e.transform(v),p=e.transform(p),oY(v.translate,p.translate,_,k),sY(v.rotate,p.rotate,_,k),uY(v.skew,p.skew,_,k),fY(v.scale,p.scale,_,k),v=p=null,function(C){for(var D=-1,R=k.length,E;++D0?D=oe:(_.c=null,_.t=NaN,_=null,p.end({type:"end",alpha:D=0})):oe>0&&(p.start({type:"start",alpha:D=oe}),_=hv(v.tick)),v):D},v.start=function(){var oe,Oe=se.length,ir=me.length,cr=k[0],sr=k[1],gr,br;for(oe=0;oe=0;)D.push(V=U[F]),V.parent=E,V.depth=E.depth+1;_&&(E.value=0),E.children=U}else _&&(E.value=+_.call(k,E,E.depth)||0),delete E.children;return Oi(C,function($){var K,se;v&&(K=$.children)&&K.sort(v),_&&(se=$.parent)&&(se.value+=$.value)}),R}return k.sort=function(C){return arguments.length?(v=C,k):v},k.children=function(C){return arguments.length?(p=C,k):p},k.value=function(C){return arguments.length?(_=C,k):_},k.revalue=function(C){return _&&(Yu(C,function(D){D.children&&(D.value=0)}),Oi(C,function(D){var R;D.children||(D.value=+_.call(k,D,D.depth)||0),(R=D.parent)&&(R.value+=D.value)})),C},k};function Ou(v,p){return e.rebind(v,p,"sort","children","value"),v.nodes=v,v.links=AY,v}function Yu(v,p){for(var _=[v];(v=_.pop())!=null;)if(p(v),(C=v.children)&&(k=C.length))for(var k,C;--k>=0;)_.push(C[k])}function Oi(v,p){for(var _=[v],k=[];(v=_.pop())!=null;)if(k.push(v),(R=v.children)&&(D=R.length))for(var C=-1,D,R;++CC&&(C=E),k.push(E)}for(R=0;R<_;++R)F[R]=(C-k[R])/2;return F},wiggle:function(v){var p=v.length,_=v[0],k=_.length,C,D,R,E,F,U,V,$,K,se=[];for(se[0]=$=K=0,D=1;Dk&&(_=p,k=C);return _}function EY(v){return v.reduce(PY,0)}function PY(v,p){return v+p[1]}e.layout.histogram=function(){var v=!0,p=Number,_=zY,k=RY;function C(D,K){for(var E=[],F=D.map(p,this),U=_.call(this,F,K),V=k.call(this,U,F,K),$,K=-1,se=F.length,me=V.length-1,Q=v?1:1/se,ae;++K0)for(K=-1;++K=U[0]&&ae<=U[1]&&($=E[e.bisect(V,ae,1,me)-1],$.y+=Q,$.push(D[K]));return E}return C.value=function(D){return arguments.length?(p=D,C):p},C.range=function(D){return arguments.length?(_=Mr(D),C):_},C.bins=function(D){return arguments.length?(k=typeof D=="number"?function(R){return ex(R,D)}:Mr(D),C):k},C.frequency=function(D){return arguments.length?(v=!!D,C):v},C};function RY(v,p){return ex(v,Math.ceil(Math.log(p.length)/Math.LN2+1))}function ex(v,p){for(var _=-1,k=+v[0],C=(v[1]-k)/p,D=[];++_<=p;)D[_]=C*_+k;return D}function zY(v){return[e.min(v),e.max(v)]}e.layout.pack=function(){var v=e.layout.hierarchy().sort(FY),p=0,_=[1,1],k;function C(D,R){var E=v.call(this,D,R),F=E[0],U=_[0],V=_[1],$=k==null?Math.sqrt:typeof k=="function"?k:function(){return k};if(F.x=F.y=0,Oi(F,function(se){se.r=+$(se.value)}),Oi(F,ax),p){var K=p*(k?1:Math.max(2*F.r/U,2*F.r/V))/2;Oi(F,function(se){se.r+=K}),Oi(F,ax),Oi(F,function(se){se.r-=K})}return nx(F,U/2,V/2,k?1:1/Math.max(2*F.r/U,2*F.r/V)),E}return C.size=function(D){return arguments.length?(_=D,C):_},C.radius=function(D){return arguments.length?(k=D==null||typeof D=="function"?D:+D,C):k},C.padding=function(D){return arguments.length?(p=+D,C):p},Ou(C,v)};function FY(v,p){return v.value-p.value}function Ap(v,p){var _=v._pack_next;v._pack_next=p,p._pack_prev=v,p._pack_next=_,_._pack_prev=p}function rx(v,p){v._pack_next=p,p._pack_prev=v}function tx(v,p){var _=p.x-v.x,k=p.y-v.y,C=v.r+p.r;return .999*C*C>_*_+k*k}function ax(v){if(!(p=v.children)||!(K=p.length))return;var p,_=1/0,k=-1/0,C=1/0,D=-1/0,R,E,F,U,V,$,K;function se(oe){_=Math.min(oe.x-oe.r,_),k=Math.max(oe.x+oe.r,k),C=Math.min(oe.y-oe.r,C),D=Math.max(oe.y+oe.r,D)}if(p.forEach(NY),R=p[0],R.x=-R.r,R.y=0,se(R),K>1&&(E=p[1],E.x=E.r,E.y=0,se(E),K>2))for(F=p[2],ix(R,E,F),se(F),Ap(R,F),R._pack_prev=F,Ap(F,E),E=R._pack_next,U=3;Uae.x&&(ae=Oe),Oe.depth>ie.depth&&(ie=Oe)});var pe=p(Q,ae)/2-Q.x,ye=_[0]/(ae.x+p(ae,Q)/2+pe),oe=_[1]/(ie.depth||1);Yu(se,function(Oe){Oe.x=(Oe.x+pe)*ye,Oe.y=Oe.depth*oe})}return K}function D(V){for(var $={A:null,children:[V]},K=[$],se;(se=K.pop())!=null;)for(var me=se.children,Q,ae=0,ie=me.length;ae0&&(BY(OY(Q,V,K),V,Oe),ie+=Oe,pe+=Oe),ye+=Q.m,ie+=se.m,oe+=ae.m,pe+=me.m;Q&&!Cp(me)&&(me.t=Q,me.m+=ye-pe),se&&!kp(ae)&&(ae.t=se,ae.m+=ie-oe,K=V)}return K}function U(V){V.x*=_[0],V.y=V.depth*_[1]}return C.separation=function(V){return arguments.length?(p=V,C):p},C.size=function(V){return arguments.length?(k=(_=V)==null?U:null,C):k?null:_},C.nodeSize=function(V){return arguments.length?(k=(_=V)==null?null:U,C):k?_:null},Ou(C,v)};function lx(v,p){return v.parent==p.parent?1:2}function kp(v){var p=v.children;return p.length?p[0]:v.t}function Cp(v){var p=v.children,_;return(_=p.length)?p[_-1]:v.t}function BY(v,p,_){var k=_/(p.i-v.i);p.c-=k,p.s+=_,v.c+=k,p.z+=_,p.m+=_}function HY(v){for(var p=0,_=0,k=v.children,C=k.length,D;--C>=0;)D=k[C],D.z+=p,D.m+=p,p+=D.s+(_+=D.c)}function OY(v,p,_){return v.a.parent===p.parent?v.a:_}e.layout.cluster=function(){var v=e.layout.hierarchy().sort(null).value(null),p=lx,_=[1,1],k=!1;function C(D,R){var E=v.call(this,D,R),F=E[0],U,V=0;Oi(F,function(Q){var ae=Q.children;ae&&ae.length?(Q.x=UY(ae),Q.y=YY(ae)):(Q.x=U?V+=p(Q,U):0,Q.y=0,U=Q)});var $=ox(F),K=sx(F),se=$.x-p($,K)/2,me=K.x+p(K,$)/2;return Oi(F,k?function(Q){Q.x=(Q.x-F.x)*_[0],Q.y=(F.y-Q.y)*_[1]}:function(Q){Q.x=(Q.x-se)/(me-se)*_[0],Q.y=(1-(F.y?Q.y/F.y:1))*_[1]}),E}return C.separation=function(D){return arguments.length?(p=D,C):p},C.size=function(D){return arguments.length?(k=(_=D)==null,C):k?null:_},C.nodeSize=function(D){return arguments.length?(k=(_=D)!=null,C):k?_:null},Ou(C,v)};function YY(v){return 1+e.max(v,function(p){return p.y})}function UY(v){return v.reduce(function(p,_){return p+_.x},0)/v.length}function ox(v){var p=v.children;return p&&p.length?ox(p[0]):v}function sx(v){var p=v.children,_;return p&&(_=p.length)?sx(p[_-1]):v}e.layout.treemap=function(){var v=e.layout.hierarchy(),p=Math.round,_=[1,1],k=null,C=Sp,D=!1,R,E="squarify",F=.5*(1+Math.sqrt(5));function U(Q,ae){for(var ie=-1,pe=Q.length,ye,oe;++ie0;)pe.push(oe=ye[sr-1]),pe.area+=oe.area,E!=="squarify"||(ir=K(pe,cr))<=Oe?(ye.pop(),Oe=ir):(pe.area-=pe.pop().area,se(pe,cr,ie,!1),cr=Math.min(ie.dx,ie.dy),pe.length=pe.area=0,Oe=1/0);pe.length&&(se(pe,cr,ie,!0),pe.length=pe.area=0),ae.forEach(V)}}function $(Q){var ae=Q.children;if(ae&&ae.length){var ie=C(Q),pe=ae.slice(),ye,oe=[];for(U(pe,ie.dx*ie.dy/Q.value),oe.area=0;ye=pe.pop();)oe.push(ye),oe.area+=ye.area,ye.z!=null&&(se(oe,ye.z?ie.dx:ie.dy,ie,!pe.length),oe.length=oe.area=0);ae.forEach($)}}function K(Q,ae){for(var ie=Q.area,pe,ye=0,oe=1/0,Oe=-1,ir=Q.length;++Oeye&&(ye=pe));return ie*=ie,ae*=ae,ie?Math.max(ae*ye*F/ie,ie/(ae*oe*F)):1/0}function se(Q,ae,ie,pe){var ye=-1,oe=Q.length,Oe=ie.x,ir=ie.y,cr=ae?p(Q.area/ae):0,sr;if(ae==ie.dx){for((pe||cr>ie.dy)&&(cr=ie.dy);++yeie.dx)&&(cr=ie.dx);++ye1);return v+p*k*Math.sqrt(-2*Math.log(D)/D)}},logNormal:function(){var v=e.random.normal.apply(e,arguments);return function(){return Math.exp(v())}},bates:function(v){var p=e.random.irwinHall(v);return function(){return p()/v}},irwinHall:function(v){return function(){for(var p=0,_=0;_2?XY:GY,U=k?vY:cY;return C=F(v,p,U,_),D=F(p,v,U,Po),E}function E(F){return C(F)}return E.invert=function(F){return D(F)},E.domain=function(F){return arguments.length?(v=F.map(Number),R()):v},E.range=function(F){return arguments.length?(p=F,R()):p},E.rangeRound=function(F){return E.range(F).interpolate(X6)},E.clamp=function(F){return arguments.length?(k=F,R()):k},E.interpolate=function(F){return arguments.length?(_=F,R()):_},E.ticks=function(F){return qp(v,F)},E.tickFormat=function(F,U){return d3_scale_linearTickFormat(v,F,U)},E.nice=function(F){return dx(v,F),R()},E.copy=function(){return cx(v,p,_,k)},R()}function vx(v,p){return e.rebind(v,p,"range","rangeRound","interpolate","clamp")}function dx(v,p){return Dp(v,fx(Lp(v,p)[2])),Dp(v,fx(Lp(v,p)[2])),v}function Lp(v,p){p==null&&(p=10);var _=_v(v),k=_[1]-_[0],C=Math.pow(10,Math.floor(Math.log(k/p)/Math.LN10)),D=p/k*C;return D<=.15?C*=10:D<=.35?C*=5:D<=.75&&(C*=2),_[0]=Math.ceil(_[0]/C)*C,_[1]=Math.floor(_[1]/C)*C+C*.5,_[2]=C,_}function qp(v,p){return e.range.apply(e,Lp(v,p))}var WY={s:1,g:1,p:1,r:1,e:1};function hx(v){return-Math.floor(Math.log(v)/Math.LN10+.01)}function iye(v,p){var _=hx(p[2]);return v in WY?Math.abs(_-hx(Math.max(x(p[0]),x(p[1]))))+ +(v!=="e"):_-(v==="%")*2}e.scale.log=function(){return px(e.scale.linear().domain([0,1]),10,!0,[1,10])};function px(v,p,_,k){function C(E){return(_?Math.log(E<0?0:E):-Math.log(E>0?0:-E))/Math.log(p)}function D(E){return _?Math.pow(p,E):-Math.pow(p,-E)}function R(E){return v(C(E))}return R.invert=function(E){return D(v.invert(E))},R.domain=function(E){return arguments.length?(_=E[0]>=0,v.domain((k=E.map(Number)).map(C)),R):k},R.base=function(E){return arguments.length?(p=+E,v.domain(k.map(C)),R):p},R.nice=function(){var E=Dp(k.map(C),_?Math:ZY);return v.domain(E),k=E.map(D),R},R.ticks=function(){var E=_v(k),F=[],U=E[0],V=E[1],$=Math.floor(C(U)),K=Math.ceil(C(V)),se=p%1?2:p;if(isFinite(K-$)){if(_){for(;$0;me--)F.push(D($)*me);for($=0;F[$]V;K--);F=F.slice($,K)}return F},R.copy=function(){return px(v.copy(),p,_,k)},vx(R,v)}var ZY={floor:function(v){return-Math.ceil(-v)},ceil:function(v){return-Math.floor(-v)}};e.scale.pow=function(){return mx(e.scale.linear(),1,[0,1])};function mx(v,p,_){var k=Mv(p),C=Mv(1/p);function D(R){return v(k(R))}return D.invert=function(R){return C(v.invert(R))},D.domain=function(R){return arguments.length?(v.domain((_=R.map(Number)).map(k)),D):_},D.ticks=function(R){return qp(_,R)},D.tickFormat=function(R,E){return d3_scale_linearTickFormat(_,R,E)},D.nice=function(R){return D.domain(dx(_,R))},D.exponent=function(R){return arguments.length?(k=Mv(p=R),C=Mv(1/p),v.domain(_.map(k)),D):p},D.copy=function(){return mx(v.copy(),p,_)},vx(D,v)}function Mv(v){return function(p){return p<0?-Math.pow(-p,v):Math.pow(p,v)}}e.scale.sqrt=function(){return e.scale.pow().exponent(.5)},e.scale.ordinal=function(){return yx([],{t:"range",a:[[]]})};function yx(v,p){var _,k,C;function D(E){return k[((_.get(E)||(p.t==="range"?_.set(E,v.push(E)):NaN))-1)%k.length]}function R(E,F){return e.range(v.length).map(function(U){return E+F*U})}return D.domain=function(E){if(!arguments.length)return v;v=[],_=new b;for(var F=-1,U=E.length,V;++F0?_[D-1]:v[0],D<_.length?_[D]:v[v.length-1]]},C.copy=function(){return gx(v,p)},k()}e.scale.quantize=function(){return bx(0,1,[0,1])};function bx(v,p,_){var k,C;function D(E){return _[Math.max(0,Math.min(C,Math.floor(k*(E-v))))]}function R(){return k=_.length/(p-v),C=_.length-1,D}return D.domain=function(E){return arguments.length?(v=+E[0],p=+E[E.length-1],R()):[v,p]},D.range=function(E){return arguments.length?(_=E,R()):_},D.invertExtent=function(E){return E=_.indexOf(E),E=E<0?NaN:E/k+v,[E,E+1/k]},D.copy=function(){return bx(v,p,_)},R()}e.scale.threshold=function(){return xx([.5],[0,1])};function xx(v,p){function _(k){if(k<=k)return p[e.bisect(v,k)]}return _.domain=function(k){return arguments.length?(v=k,_):v},_.range=function(k){return arguments.length?(p=k,_):p},_.invertExtent=function(k){return k=p.indexOf(k),[v[k-1],v[k]]},_.copy=function(){return xx(v,p)},_}e.scale.identity=function(){return _x([0,1])};function _x(v){function p(_){return+_}return p.invert=p,p.domain=p.range=function(_){return arguments.length?(v=_.map(p),p):v},p.ticks=function(_){return qp(v,_)},p.tickFormat=function(_,k){return d3_scale_linearTickFormat(v,_,k)},p.copy=function(){return _x(v)},p}e.svg={};function QY(){return 0}e.svg.arc=function(){var v=eU,p=rU,_=QY,k=Tv,C=wx,D=Mx,R=tU;function E(){var U=Math.max(0,+v.apply(this,arguments)),V=Math.max(0,+p.apply(this,arguments)),$=C.apply(this,arguments)-te,K=D.apply(this,arguments)-te,se=Math.abs(K-$),me=$>K?0:1;if(V=mr)return F(V,me)+(U?F(U,1-me):"")+"Z";var Q,ae,ie,pe,ye=0,oe=0,Oe,ir,cr,sr,gr,br,Rr,wr,Lr=[];if((pe=(+R.apply(this,arguments)||0)/2)&&(ie=k===Tv?Math.sqrt(U*U+V*V):+k.apply(this,arguments),me||(oe*=-1),V&&(oe=vt(ie/V*Math.sin(pe))),U&&(ye=vt(ie/U*Math.sin(pe)))),V){Oe=V*Math.cos($+oe),ir=V*Math.sin($+oe),cr=V*Math.cos(K-oe),sr=V*Math.sin(K-oe);var et=Math.abs(K-$-2*oe)<=xr?0:1;if(oe&&Av(Oe,ir,cr,sr)===me^et){var Ut=($+K)/2;Oe=V*Math.cos(Ut),ir=V*Math.sin(Ut),cr=sr=null}}else Oe=ir=0;if(U){gr=U*Math.cos(K-ye),br=U*Math.sin(K-ye),Rr=U*Math.cos($+ye),wr=U*Math.sin($+ye);var nt=Math.abs($-K+2*ye)<=xr?0:1;if(ye&&Av(gr,br,Rr,wr)===1-me^nt){var tr=($+K)/2;gr=U*Math.cos(tr),br=U*Math.sin(tr),Rr=wr=null}}else gr=br=0;if(se>Ne&&(Q=Math.min(Math.abs(V-U)/2,+_.apply(this,arguments)))>.001){ae=U0?0:1}function kv(v,p,_,k,C){var D=v[0]-p[0],R=v[1]-p[1],E=(C?k:-k)/Math.sqrt(D*D+R*R),F=E*R,U=-E*D,V=v[0]+F,$=v[1]+U,K=p[0]+F,se=p[1]+U,me=(V+K)/2,Q=($+se)/2,ae=K-V,ie=se-$,pe=ae*ae+ie*ie,ye=_-k,oe=V*se-K*$,Oe=(ie<0?-1:1)*Math.sqrt(Math.max(0,ye*ye*pe-oe*oe)),ir=(oe*ie-ae*Oe)/pe,cr=(-oe*ae-ie*Oe)/pe,sr=(oe*ie+ae*Oe)/pe,gr=(-oe*ae+ie*Oe)/pe,br=ir-me,Rr=cr-Q,wr=sr-me,Lr=gr-Q;return br*br+Rr*Rr>wr*wr+Lr*Lr&&(ir=sr,cr=gr),[[ir-F,cr-U],[ir*_/ye,cr*_/ye]]}function Tx(){return!0}function Ax(v){var p=$s,_=zu,k=Tx,C=hi,D=C.key,R=.7;function E(F){var U=[],V=[],$=-1,K=F.length,se,me=Mr(p),Q=Mr(_);function ae(){U.push("M",C(v(V),R))}for(;++$1?v.join("L"):v+"Z"}function kx(v){return v.join("L")+"Z"}function aU(v){for(var p=0,_=v.length,k=v[0],C=[k[0],",",k[1]];++p<_;)C.push("H",(k[0]+(k=v[p])[0])/2,"V",k[1]);return _>1&&C.push("H",k[0]),C.join("")}function Pp(v){for(var p=0,_=v.length,k=v[0],C=[k[0],",",k[1]];++p<_;)C.push("V",(k=v[p])[1],"H",k[0]);return C.join("")}function Rp(v){for(var p=0,_=v.length,k=v[0],C=[k[0],",",k[1]];++p<_;)C.push("H",(k=v[p])[0],"V",k[1]);return C.join("")}function nU(v,p){return v.length<4?hi(v):v[1]+Cv(v.slice(1,-1),zp(v,p))}function iU(v,p){return v.length<3?kx(v):v[0]+Cv((v.push(v[0]),v),zp([v[v.length-2]].concat(v,[v[1]]),p))}function lU(v,p){return v.length<3?hi(v):v[0]+Cv(v,zp(v,p))}function Cv(v,p){if(p.length<1||v.length!=p.length&&v.length!=p.length+2)return hi(v);var _=v.length!=p.length,k="",C=v[0],D=v[1],R=p[0],E=R,F=1;if(_&&(k+="Q"+(D[0]-R[0]*2/3)+","+(D[1]-R[1]*2/3)+","+D[0]+","+D[1],C=v[1],F=2),p.length>1){E=p[1],D=v[F],F++,k+="C"+(C[0]+R[0])+","+(C[1]+R[1])+","+(D[0]-E[0])+","+(D[1]-E[1])+","+D[0]+","+D[1];for(var U=2;U9&&(D=_*3/Math.sqrt(D),R[E]=D*k,R[E+1]=D*C));for(E=-1;++E<=F;)D=(v[Math.min(F,E+1)][0]-v[Math.max(0,E-1)][0])/(6*(1+R[E]*R[E])),p.push([D||0,R[E]*D||0]);return p}function vU(v){return v.length<3?hi(v):v[0]+Cv(v,cU(v))}e.svg.line.radial=function(){var v=Ax(Lx);return v.radius=v.x,delete v.x,v.angle=v.y,delete v.y,v};function Lx(v){for(var p,_=-1,k=v.length,C,D;++_xr)+",1 "+$}function U(V,$,K,se){return"Q 0,0 "+se}return D.radius=function(V){return arguments.length?(_=Mr(V),D):_},D.source=function(V){return arguments.length?(v=Mr(V),D):v},D.target=function(V){return arguments.length?(p=Mr(V),D):p},D.startAngle=function(V){return arguments.length?(k=Mr(V),D):k},D.endAngle=function(V){return arguments.length?(C=Mr(V),D):C},D};function dU(v){return v.radius}e.svg.diagonal=function(){var v=Ex,p=Px,_=Rx;function k(C,D){var R=v.call(this,C,D),E=p.call(this,C,D),F=(R.y+E.y)/2,U=[R,{x:R.x,y:F},{x:E.x,y:F},E];return U=U.map(_),"M"+U[0]+"C"+U[1]+" "+U[2]+" "+U[3]}return k.source=function(C){return arguments.length?(v=Mr(C),k):v},k.target=function(C){return arguments.length?(p=Mr(C),k):p},k.projection=function(C){return arguments.length?(_=C,k):_},k};function Rx(v){return[v.x,v.y]}e.svg.diagonal.radial=function(){var v=e.svg.diagonal(),p=Rx,_=v.projection;return v.projection=function(k){return arguments.length?_(hU(p=k)):p},v};function hU(v){return function(){var p=v.apply(this,arguments),_=p[0],k=p[1]-te;return[_*Math.cos(k),_*Math.sin(k)]}}e.svg.symbol=function(){var v=mU,p=pU;function _(k,C){return(Fx.get(v.call(this,k,C))||zx)(p.call(this,k,C))}return _.type=function(k){return arguments.length?(v=Mr(k),_):v},_.size=function(k){return arguments.length?(p=Mr(k),_):p},_};function pU(){return 64}function mU(){return"circle"}function zx(v){var p=Math.sqrt(v/xr);return"M0,"+p+"A"+p+","+p+" 0 1,1 0,"+-p+"A"+p+","+p+" 0 1,1 0,"+p+"Z"}var Fx=e.map({circle:zx,cross:function(v){var p=Math.sqrt(v/5)/2;return"M"+-3*p+","+-p+"H"+-p+"V"+-3*p+"H"+p+"V"+-p+"H"+3*p+"V"+p+"H"+p+"V"+3*p+"H"+-p+"V"+p+"H"+-3*p+"Z"},diamond:function(v){var p=Math.sqrt(v/(2*Nx)),_=p*Nx;return"M0,"+-p+"L"+_+",0 0,"+p+" "+-_+",0Z"},square:function(v){var p=Math.sqrt(v)/2;return"M"+-p+","+-p+"L"+p+","+-p+" "+p+","+p+" "+-p+","+p+"Z"},"triangle-down":function(v){var p=Math.sqrt(v/Sv),_=p*Sv/2;return"M0,"+_+"L"+p+","+-_+" "+-p+","+-_+"Z"},"triangle-up":function(v){var p=Math.sqrt(v/Sv),_=p*Sv/2;return"M0,"+-_+"L"+p+","+_+" "+-p+","+_+"Z"}});e.svg.symbolTypes=Fx.keys();var Sv=Math.sqrt(3),Nx=Math.tan(30*ve);ce.transition=function(v){for(var p=Ro||++Bx,_=Bp(v),k=[],C,D,R=Lv||{time:Date.now(),ease:ZO,delay:0,duration:250},E=-1,F=this.length;++E0;)$[--pe].call(v,ie);if(ae>=1)return R.event&&R.event.end.call(v,v.__data__,p),--D.count?delete D[k]:delete v[_],1}R||(E=C.time,F=hv(K,0,E),R=D[k]={tween:new b,time:E,timer:F,delay:C.delay,duration:C.duration,ease:C.ease,index:p},C=null,++D.count)}e.svg.axis=function(){var v=e.scale.linear(),p=Hx,_=6,k=6,C=3,D=[10],R=null,E;function F(U){U.each(function(){var V=e.select(this),$=this.__chart__||v,K=this.__chart__=v.copy(),se=R==null?K.ticks?K.ticks.apply(K,D):K.domain():R,me=E==null?K.tickFormat?K.tickFormat.apply(K,D):H:E,Q=V.selectAll(".tick").data(se,K),ae=Q.enter().insert("g",".domain").attr("class","tick").style("opacity",Ne),ie=e.transition(Q.exit()).style("opacity",Ne).remove(),pe=e.transition(Q.order()).style("opacity",1),ye=Math.max(_,0)+C,oe,Oe=wv(K),ir=V.selectAll(".domain").data([0]),cr=(ir.enter().append("path").attr("class","domain"),e.transition(ir));ae.append("line"),ae.append("text");var sr=ae.select("line"),gr=pe.select("line"),br=Q.select("text").text(me),Rr=ae.select("text"),wr=pe.select("text"),Lr=p==="top"||p==="left"?-1:1,et,Ut,nt,tr;if(p==="bottom"||p==="top"?(oe=bU,et="x",nt="y",Ut="x2",tr="y2",br.attr("dy",Lr<0?"0em":".71em").style("text-anchor","middle"),cr.attr("d","M"+Oe[0]+","+Lr*k+"V0H"+Oe[1]+"V"+Lr*k)):(oe=xU,et="y",nt="x",Ut="y2",tr="x2",br.attr("dy",".32em").style("text-anchor",Lr<0?"end":"start"),cr.attr("d","M"+Lr*k+","+Oe[0]+"H0V"+Oe[1]+"H"+Lr*k)),sr.attr(tr,Lr*_),Rr.attr(nt,Lr*ye),gr.attr(Ut,0).attr(tr,Lr*_),wr.attr(et,0).attr(nt,Lr*ye),K.rangeBand){var zr=K,Fr=zr.rangeBand()/2;$=K=function(rt){return zr(rt)+Fr}}else $.rangeBand?$=K:ie.call(oe,K,$);ae.call(oe,$,K),pe.call(oe,K,K)})}return F.scale=function(U){return arguments.length?(v=U,F):v},F.orient=function(U){return arguments.length?(p=U in gU?U+"":Hx,F):p},F.ticks=function(){return arguments.length?(D=t(arguments),F):D},F.tickValues=function(U){return arguments.length?(R=U,F):R},F.tickFormat=function(U){return arguments.length?(E=U,F):E},F.tickSize=function(U){var V=arguments.length;return V?(_=+U,k=+arguments[V-1],F):_},F.innerTickSize=function(U){return arguments.length?(_=+U,F):_},F.outerTickSize=function(U){return arguments.length?(k=+U,F):k},F.tickPadding=function(U){return arguments.length?(C=+U,F):C},F.tickSubdivide=function(){return arguments.length&&F},F};var Hx="bottom",gU={top:1,right:1,bottom:1,left:1};function bU(v,p,_){v.attr("transform",function(k){var C=p(k);return"translate("+(isFinite(C)?C:_(k))+",0)"})}function xU(v,p,_){v.attr("transform",function(k){var C=p(k);return"translate(0,"+(isFinite(C)?C:_(k))+")"})}e.svg.brush=function(){var v=fe(V,"brushstart","brush","brushend"),p=null,_=null,k=[0,0],C=[0,0],D,R,E=!0,F=!0,U=Hp[0];function V(Q){Q.each(function(){var ae=e.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",me).on("touchstart.brush",me),ie=ae.selectAll(".background").data([0]);ie.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),ae.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var pe=ae.selectAll(".resize").data(U,H);pe.exit().remove(),pe.enter().append("g").attr("class",function(ir){return"resize "+ir}).style("cursor",function(ir){return _U[ir]}).append("rect").attr("x",function(ir){return/[ew]$/.test(ir)?-3:null}).attr("y",function(ir){return/^[ns]/.test(ir)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),pe.style("display",V.empty()?"none":null);var ye=e.transition(ae),oe=e.transition(ie),Oe;p&&(Oe=wv(p),oe.attr("x",Oe[0]).attr("width",Oe[1]-Oe[0]),K(ye)),_&&(Oe=wv(_),oe.attr("y",Oe[0]).attr("height",Oe[1]-Oe[0]),se(ye)),$(ye)})}V.event=function(Q){Q.each(function(){var ae=v.of(this,arguments),ie={x:k,y:C,i:D,j:R},pe=this.__chart__||ie;this.__chart__=ie,Ro?e.select(this).transition().each("start.brush",function(){D=pe.i,R=pe.j,k=pe.x,C=pe.y,ae({type:"brushstart"})}).tween("brush:brush",function(){var ye=xv(k,ie.x),oe=xv(C,ie.y);return D=R=null,function(Oe){k=ie.x=ye(Oe),C=ie.y=oe(Oe),ae({type:"brush",mode:"resize"})}}).each("end.brush",function(){D=ie.i,R=ie.j,ae({type:"brush",mode:"resize"}),ae({type:"brushend"})}):(ae({type:"brushstart"}),ae({type:"brush",mode:"resize"}),ae({type:"brushend"}))})};function $(Q){Q.selectAll(".resize").attr("transform",function(ae){return"translate("+k[+/e$/.test(ae)]+","+C[+/^s/.test(ae)]+")"})}function K(Q){Q.select(".extent").attr("x",k[0]),Q.selectAll(".extent,.n>rect,.s>rect").attr("width",k[1]-k[0])}function se(Q){Q.select(".extent").attr("y",C[0]),Q.selectAll(".extent,.e>rect,.w>rect").attr("height",C[1]-C[0])}function me(){var Q=this,ae=e.select(e.event.target),ie=v.of(Q,arguments),pe=e.select(Q),ye=ae.datum(),oe=!/^(n|s)$/.test(ye)&&p,Oe=!/^(e|w)$/.test(ye)&&_,ir=ae.classed("extent"),cr=lr(Q),sr,gr=e.mouse(Q),br,Rr=e.select(i(Q)).on("keydown.brush",et).on("keyup.brush",Ut);if(e.event.changedTouches?Rr.on("touchmove.brush",nt).on("touchend.brush",zr):Rr.on("mousemove.brush",nt).on("mouseup.brush",zr),pe.interrupt().selectAll("*").interrupt(),ir)gr[0]=k[0]-gr[0],gr[1]=C[0]-gr[1];else if(ye){var wr=+/w$/.test(ye),Lr=+/^n/.test(ye);br=[k[1-wr]-gr[0],C[1-Lr]-gr[1]],gr[0]=k[wr],gr[1]=C[Lr]}else e.event.altKey&&(sr=gr.slice());pe.style("pointer-events","none").selectAll(".resize").style("display",null),e.select("body").style("cursor",ae.style("cursor")),ie({type:"brushstart"}),nt();function et(){e.event.keyCode==32&&(ir||(sr=null,gr[0]-=k[1],gr[1]-=C[1],ir=2),ee())}function Ut(){e.event.keyCode==32&&ir==2&&(gr[0]+=k[1],gr[1]+=C[1],ir=0,ee())}function nt(){var Fr=e.mouse(Q),rt=!1;br&&(Fr[0]+=br[0],Fr[1]+=br[1]),ir||(e.event.altKey?(sr||(sr=[(k[0]+k[1])/2,(C[0]+C[1])/2]),gr[0]=k[+(Fr[0]{(function(e,r){typeof Fv=="object"&&typeof Kx!="undefined"?r(Fv):(e=e||self,r(e.d3=e.d3||{}))})(Fv,function(e){"use strict";var r=new Date,t=new Date;function a(re,he,Ve,hr){function Le(de){return re(de=arguments.length===0?new Date:new Date(+de)),de}return Le.floor=function(de){return re(de=new Date(+de)),de},Le.ceil=function(de){return re(de=new Date(de-1)),he(de,1),re(de),de},Le.round=function(de){var xe=Le(de),He=Le.ceil(de);return de-xe0))return Je;do Je.push(Ie=new Date(+de)),he(de,He),re(de);while(Ie=xe)for(;re(xe),!de(xe);)xe.setTime(xe-1)},function(xe,He){if(xe>=xe)if(He<0)for(;++He<=0;)for(;he(xe,-1),!de(xe););else for(;--He>=0;)for(;he(xe,1),!de(xe););})},Ve&&(Le.count=function(de,xe){return r.setTime(+de),t.setTime(+xe),re(r),re(t),Math.floor(Ve(r,t))},Le.every=function(de){return de=Math.floor(de),!isFinite(de)||!(de>0)?null:de>1?Le.filter(hr?function(xe){return hr(xe)%de===0}:function(xe){return Le.count(0,xe)%de===0}):Le}),Le}var n=a(function(){},function(re,he){re.setTime(+re+he)},function(re,he){return he-re});n.every=function(re){return re=Math.floor(re),!isFinite(re)||!(re>0)?null:re>1?a(function(he){he.setTime(Math.floor(he/re)*re)},function(he,Ve){he.setTime(+he+Ve*re)},function(he,Ve){return(Ve-he)/re}):n};var i=n.range,l=1e3,o=6e4,s=36e5,u=864e5,f=6048e5,c=a(function(re){re.setTime(re-re.getMilliseconds())},function(re,he){re.setTime(+re+he*l)},function(re,he){return(he-re)/l},function(re){return re.getUTCSeconds()}),d=c.range,h=a(function(re){re.setTime(re-re.getMilliseconds()-re.getSeconds()*l)},function(re,he){re.setTime(+re+he*o)},function(re,he){return(he-re)/o},function(re){return re.getMinutes()}),m=h.range,g=a(function(re){re.setTime(re-re.getMilliseconds()-re.getSeconds()*l-re.getMinutes()*o)},function(re,he){re.setTime(+re+he*s)},function(re,he){return(he-re)/s},function(re){return re.getHours()}),y=g.range,x=a(function(re){re.setHours(0,0,0,0)},function(re,he){re.setDate(re.getDate()+he)},function(re,he){return(he-re-(he.getTimezoneOffset()-re.getTimezoneOffset())*o)/u},function(re){return re.getDate()-1}),w=x.range;function T(re){return a(function(he){he.setDate(he.getDate()-(he.getDay()+7-re)%7),he.setHours(0,0,0,0)},function(he,Ve){he.setDate(he.getDate()+Ve*7)},function(he,Ve){return(Ve-he-(Ve.getTimezoneOffset()-he.getTimezoneOffset())*o)/f})}var b=T(0),M=T(1),S=T(2),A=T(3),L=T(4),q=T(5),P=T(6),z=b.range,N=M.range,I=S.range,B=A.range,H=L.range,Y=q.range,G=P.range,O=a(function(re){re.setDate(1),re.setHours(0,0,0,0)},function(re,he){re.setMonth(re.getMonth()+he)},function(re,he){return he.getMonth()-re.getMonth()+(he.getFullYear()-re.getFullYear())*12},function(re){return re.getMonth()}),X=O.range,Z=a(function(re){re.setMonth(0,1),re.setHours(0,0,0,0)},function(re,he){re.setFullYear(re.getFullYear()+he)},function(re,he){return he.getFullYear()-re.getFullYear()},function(re){return re.getFullYear()});Z.every=function(re){return!isFinite(re=Math.floor(re))||!(re>0)?null:a(function(he){he.setFullYear(Math.floor(he.getFullYear()/re)*re),he.setMonth(0,1),he.setHours(0,0,0,0)},function(he,Ve){he.setFullYear(he.getFullYear()+Ve*re)})};var W=Z.range,ee=a(function(re){re.setUTCSeconds(0,0)},function(re,he){re.setTime(+re+he*o)},function(re,he){return(he-re)/o},function(re){return re.getUTCMinutes()}),ne=ee.range,fe=a(function(re){re.setUTCMinutes(0,0,0)},function(re,he){re.setTime(+re+he*s)},function(re,he){return(he-re)/s},function(re){return re.getUTCHours()}),we=fe.range,j=a(function(re){re.setUTCHours(0,0,0,0)},function(re,he){re.setUTCDate(re.getUTCDate()+he)},function(re,he){return(he-re)/u},function(re){return re.getUTCDate()-1}),_e=j.range;function ue(re){return a(function(he){he.setUTCDate(he.getUTCDate()-(he.getUTCDay()+7-re)%7),he.setUTCHours(0,0,0,0)},function(he,Ve){he.setUTCDate(he.getUTCDate()+Ve*7)},function(he,Ve){return(Ve-he)/f})}var Me=ue(0),ge=ue(1),ce=ue(2),Te=ue(3),ze=ue(4),be=ue(5),qe=ue(6),Ce=Me.range,De=ge.range,Ee=ce.range,Ue=Te.range,ke=ze.range,We=be.range,je=qe.range,Ze=a(function(re){re.setUTCDate(1),re.setUTCHours(0,0,0,0)},function(re,he){re.setUTCMonth(re.getUTCMonth()+he)},function(re,he){return he.getUTCMonth()-re.getUTCMonth()+(he.getUTCFullYear()-re.getUTCFullYear())*12},function(re){return re.getUTCMonth()}),Ae=Ze.range,Pe=a(function(re){re.setUTCMonth(0,1),re.setUTCHours(0,0,0,0)},function(re,he){re.setUTCFullYear(re.getUTCFullYear()+he)},function(re,he){return he.getUTCFullYear()-re.getUTCFullYear()},function(re){return re.getUTCFullYear()});Pe.every=function(re){return!isFinite(re=Math.floor(re))||!(re>0)?null:a(function(he){he.setUTCFullYear(Math.floor(he.getUTCFullYear()/re)*re),he.setUTCMonth(0,1),he.setUTCHours(0,0,0,0)},function(he,Ve){he.setUTCFullYear(he.getUTCFullYear()+Ve*re)})};var Qe=Pe.range;e.timeDay=x,e.timeDays=w,e.timeFriday=q,e.timeFridays=Y,e.timeHour=g,e.timeHours=y,e.timeInterval=a,e.timeMillisecond=n,e.timeMilliseconds=i,e.timeMinute=h,e.timeMinutes=m,e.timeMonday=M,e.timeMondays=N,e.timeMonth=O,e.timeMonths=X,e.timeSaturday=P,e.timeSaturdays=G,e.timeSecond=c,e.timeSeconds=d,e.timeSunday=b,e.timeSundays=z,e.timeThursday=L,e.timeThursdays=H,e.timeTuesday=S,e.timeTuesdays=I,e.timeWednesday=A,e.timeWednesdays=B,e.timeWeek=b,e.timeWeeks=z,e.timeYear=Z,e.timeYears=W,e.utcDay=j,e.utcDays=_e,e.utcFriday=be,e.utcFridays=We,e.utcHour=fe,e.utcHours=we,e.utcMillisecond=n,e.utcMilliseconds=i,e.utcMinute=ee,e.utcMinutes=ne,e.utcMonday=ge,e.utcMondays=De,e.utcMonth=Ze,e.utcMonths=Ae,e.utcSaturday=qe,e.utcSaturdays=je,e.utcSecond=c,e.utcSeconds=d,e.utcSunday=Me,e.utcSundays=Ce,e.utcThursday=ze,e.utcThursdays=ke,e.utcTuesday=ce,e.utcTuesdays=Ee,e.utcWednesday=Te,e.utcWednesdays=Ue,e.utcWeek=Me,e.utcWeeks=Ce,e.utcYear=Pe,e.utcYears=Qe,Object.defineProperty(e,"__esModule",{value:!0})})});var a0=J((Nv,jx)=>{(function(e,r){typeof Nv=="object"&&typeof jx!="undefined"?r(Nv,Yp()):(e=e||self,r(e.d3=e.d3||{},e.d3))})(Nv,function(e,r){"use strict";function t(te){if(0<=te.y&&te.y<100){var ve=new Date(-1,te.m,te.d,te.H,te.M,te.S,te.L);return ve.setFullYear(te.y),ve}return new Date(te.y,te.m,te.d,te.H,te.M,te.S,te.L)}function a(te){if(0<=te.y&&te.y<100){var ve=new Date(Date.UTC(-1,te.m,te.d,te.H,te.M,te.S,te.L));return ve.setUTCFullYear(te.y),ve}return new Date(Date.UTC(te.y,te.m,te.d,te.H,te.M,te.S,te.L))}function n(te,ve,Fe){return{y:te,m:ve,d:Fe,H:0,M:0,S:0,L:0}}function i(te){var ve=te.dateTime,Fe=te.date,Ye=te.time,jr=te.periods,st=te.days,vt=te.shortDays,Bt=te.months,Lt=te.shortMonths,wa=d(jr),cn=h(jr),ta=d(st),ln=h(st),An=d(vt),kn=h(vt),yr=d(Bt),dt=h(Bt),Qr=d(Lt),yt=h(Lt),qt={a:qu,A:Eu,b:Xa,B:fv,c:null,d:O,e:O,f:ne,g:be,G:Ce,H:X,I:Z,j:W,L:ee,m:fe,M:we,p:Zs,q:Js,Q:lr,s:fr,S:j,u:_e,U:ue,V:ge,w:ce,W:Te,x:null,X:null,y:ze,Y:qe,Z:De,"%":nr},kt={a:zl,A:cv,b:vv,B:dv,c:null,d:Ee,e:Ee,f:Ze,g:He,G:Ie,H:Ue,I:ke,j:We,L:je,m:Ae,M:Pe,p:Pu,q:Ru,Q:lr,s:fr,S:Qe,u:re,U:he,V:hr,w:Le,W:de,x:null,X:null,y:xe,Y:Je,Z:Ge,"%":nr},ut={a:Kt,A:jt,b:Lo,B:Rl,c:sv,d:L,e:L,f:B,g:b,G:T,H:P,I:P,j:q,L:I,m:A,M:z,p:gt,q:S,Q:Y,s:G,S:N,u:g,U:y,V:x,w:m,W:w,x:uv,X:Lu,y:b,Y:T,Z:M,"%":H};qt.x=aa(Fe,qt),qt.X=aa(Ye,qt),qt.c=aa(ve,qt),kt.x=aa(Fe,kt),kt.X=aa(Ye,kt),kt.c=aa(ve,kt);function aa(Tr,Mr){return function(tt){var or=[],Wa=-1,bt=0,Sa=Tr.length,Da,Gn,qo;for(tt instanceof Date||(tt=new Date(+tt));++Wa53)return null;"w"in or||(or.w=1),"Z"in or?(bt=a(n(or.y,0,1)),Sa=bt.getUTCDay(),bt=Sa>4||Sa===0?r.utcMonday.ceil(bt):r.utcMonday(bt),bt=r.utcDay.offset(bt,(or.V-1)*7),or.y=bt.getUTCFullYear(),or.m=bt.getUTCMonth(),or.d=bt.getUTCDate()+(or.w+6)%7):(bt=t(n(or.y,0,1)),Sa=bt.getDay(),bt=Sa>4||Sa===0?r.timeMonday.ceil(bt):r.timeMonday(bt),bt=r.timeDay.offset(bt,(or.V-1)*7),or.y=bt.getFullYear(),or.m=bt.getMonth(),or.d=bt.getDate()+(or.w+6)%7)}else("W"in or||"U"in or)&&("w"in or||(or.w="u"in or?or.u%7:"W"in or?1:0),Sa="Z"in or?a(n(or.y,0,1)).getUTCDay():t(n(or.y,0,1)).getDay(),or.m=0,or.d="W"in or?(or.w+6)%7+or.W*7-(Sa+5)%7:or.w+or.U*7-(Sa+6)%7);return"Z"in or?(or.H+=or.Z/100|0,or.M+=or.Z%100,a(or)):t(or)}}function Yt(Tr,Mr,tt,or){for(var Wa=0,bt=Mr.length,Sa=tt.length,Da,Gn;Wa=Sa)return-1;if(Da=Mr.charCodeAt(Wa++),Da===37){if(Da=Mr.charAt(Wa++),Gn=ut[Da in l?Mr.charAt(Wa++):Da],!Gn||(or=Gn(Tr,tt,or))<0)return-1}else if(Da!=tt.charCodeAt(or++))return-1}return or}function gt(Tr,Mr,tt){var or=wa.exec(Mr.slice(tt));return or?(Tr.p=cn[or[0].toLowerCase()],tt+or[0].length):-1}function Kt(Tr,Mr,tt){var or=An.exec(Mr.slice(tt));return or?(Tr.w=kn[or[0].toLowerCase()],tt+or[0].length):-1}function jt(Tr,Mr,tt){var or=ta.exec(Mr.slice(tt));return or?(Tr.w=ln[or[0].toLowerCase()],tt+or[0].length):-1}function Lo(Tr,Mr,tt){var or=Qr.exec(Mr.slice(tt));return or?(Tr.m=yt[or[0].toLowerCase()],tt+or[0].length):-1}function Rl(Tr,Mr,tt){var or=yr.exec(Mr.slice(tt));return or?(Tr.m=dt[or[0].toLowerCase()],tt+or[0].length):-1}function sv(Tr,Mr,tt){return Yt(Tr,ve,Mr,tt)}function uv(Tr,Mr,tt){return Yt(Tr,Fe,Mr,tt)}function Lu(Tr,Mr,tt){return Yt(Tr,Ye,Mr,tt)}function qu(Tr){return vt[Tr.getDay()]}function Eu(Tr){return st[Tr.getDay()]}function Xa(Tr){return Lt[Tr.getMonth()]}function fv(Tr){return Bt[Tr.getMonth()]}function Zs(Tr){return jr[+(Tr.getHours()>=12)]}function Js(Tr){return 1+~~(Tr.getMonth()/3)}function zl(Tr){return vt[Tr.getUTCDay()]}function cv(Tr){return st[Tr.getUTCDay()]}function vv(Tr){return Lt[Tr.getUTCMonth()]}function dv(Tr){return Bt[Tr.getUTCMonth()]}function Pu(Tr){return jr[+(Tr.getUTCHours()>=12)]}function Ru(Tr){return 1+~~(Tr.getUTCMonth()/3)}return{format:function(Tr){var Mr=aa(Tr+="",qt);return Mr.toString=function(){return Tr},Mr},parse:function(Tr){var Mr=Un(Tr+="",!1);return Mr.toString=function(){return Tr},Mr},utcFormat:function(Tr){var Mr=aa(Tr+="",kt);return Mr.toString=function(){return Tr},Mr},utcParse:function(Tr){var Mr=Un(Tr+="",!0);return Mr.toString=function(){return Tr},Mr}}}var l={"-":"",_:" ",0:"0"},o=/^\s*\d+/,s=/^%/,u=/[\\^$*+?|[\]().{}]/g;function f(te,ve,Fe){var Ye=te<0?"-":"",jr=(Ye?-te:te)+"",st=jr.length;return Ye+(st68?1900:2e3),Fe+Ye[0].length):-1}function M(te,ve,Fe){var Ye=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(ve.slice(Fe,Fe+6));return Ye?(te.Z=Ye[1]?0:-(Ye[2]+(Ye[3]||"00")),Fe+Ye[0].length):-1}function S(te,ve,Fe){var Ye=o.exec(ve.slice(Fe,Fe+1));return Ye?(te.q=Ye[0]*3-3,Fe+Ye[0].length):-1}function A(te,ve,Fe){var Ye=o.exec(ve.slice(Fe,Fe+2));return Ye?(te.m=Ye[0]-1,Fe+Ye[0].length):-1}function L(te,ve,Fe){var Ye=o.exec(ve.slice(Fe,Fe+2));return Ye?(te.d=+Ye[0],Fe+Ye[0].length):-1}function q(te,ve,Fe){var Ye=o.exec(ve.slice(Fe,Fe+3));return Ye?(te.m=0,te.d=+Ye[0],Fe+Ye[0].length):-1}function P(te,ve,Fe){var Ye=o.exec(ve.slice(Fe,Fe+2));return Ye?(te.H=+Ye[0],Fe+Ye[0].length):-1}function z(te,ve,Fe){var Ye=o.exec(ve.slice(Fe,Fe+2));return Ye?(te.M=+Ye[0],Fe+Ye[0].length):-1}function N(te,ve,Fe){var Ye=o.exec(ve.slice(Fe,Fe+2));return Ye?(te.S=+Ye[0],Fe+Ye[0].length):-1}function I(te,ve,Fe){var Ye=o.exec(ve.slice(Fe,Fe+3));return Ye?(te.L=+Ye[0],Fe+Ye[0].length):-1}function B(te,ve,Fe){var Ye=o.exec(ve.slice(Fe,Fe+6));return Ye?(te.L=Math.floor(Ye[0]/1e3),Fe+Ye[0].length):-1}function H(te,ve,Fe){var Ye=s.exec(ve.slice(Fe,Fe+1));return Ye?Fe+Ye[0].length:-1}function Y(te,ve,Fe){var Ye=o.exec(ve.slice(Fe));return Ye?(te.Q=+Ye[0],Fe+Ye[0].length):-1}function G(te,ve,Fe){var Ye=o.exec(ve.slice(Fe));return Ye?(te.s=+Ye[0],Fe+Ye[0].length):-1}function O(te,ve){return f(te.getDate(),ve,2)}function X(te,ve){return f(te.getHours(),ve,2)}function Z(te,ve){return f(te.getHours()%12||12,ve,2)}function W(te,ve){return f(1+r.timeDay.count(r.timeYear(te),te),ve,3)}function ee(te,ve){return f(te.getMilliseconds(),ve,3)}function ne(te,ve){return ee(te,ve)+"000"}function fe(te,ve){return f(te.getMonth()+1,ve,2)}function we(te,ve){return f(te.getMinutes(),ve,2)}function j(te,ve){return f(te.getSeconds(),ve,2)}function _e(te){var ve=te.getDay();return ve===0?7:ve}function ue(te,ve){return f(r.timeSunday.count(r.timeYear(te)-1,te),ve,2)}function Me(te){var ve=te.getDay();return ve>=4||ve===0?r.timeThursday(te):r.timeThursday.ceil(te)}function ge(te,ve){return te=Me(te),f(r.timeThursday.count(r.timeYear(te),te)+(r.timeYear(te).getDay()===4),ve,2)}function ce(te){return te.getDay()}function Te(te,ve){return f(r.timeMonday.count(r.timeYear(te)-1,te),ve,2)}function ze(te,ve){return f(te.getFullYear()%100,ve,2)}function be(te,ve){return te=Me(te),f(te.getFullYear()%100,ve,2)}function qe(te,ve){return f(te.getFullYear()%1e4,ve,4)}function Ce(te,ve){var Fe=te.getDay();return te=Fe>=4||Fe===0?r.timeThursday(te):r.timeThursday.ceil(te),f(te.getFullYear()%1e4,ve,4)}function De(te){var ve=te.getTimezoneOffset();return(ve>0?"-":(ve*=-1,"+"))+f(ve/60|0,"0",2)+f(ve%60,"0",2)}function Ee(te,ve){return f(te.getUTCDate(),ve,2)}function Ue(te,ve){return f(te.getUTCHours(),ve,2)}function ke(te,ve){return f(te.getUTCHours()%12||12,ve,2)}function We(te,ve){return f(1+r.utcDay.count(r.utcYear(te),te),ve,3)}function je(te,ve){return f(te.getUTCMilliseconds(),ve,3)}function Ze(te,ve){return je(te,ve)+"000"}function Ae(te,ve){return f(te.getUTCMonth()+1,ve,2)}function Pe(te,ve){return f(te.getUTCMinutes(),ve,2)}function Qe(te,ve){return f(te.getUTCSeconds(),ve,2)}function re(te){var ve=te.getUTCDay();return ve===0?7:ve}function he(te,ve){return f(r.utcSunday.count(r.utcYear(te)-1,te),ve,2)}function Ve(te){var ve=te.getUTCDay();return ve>=4||ve===0?r.utcThursday(te):r.utcThursday.ceil(te)}function hr(te,ve){return te=Ve(te),f(r.utcThursday.count(r.utcYear(te),te)+(r.utcYear(te).getUTCDay()===4),ve,2)}function Le(te){return te.getUTCDay()}function de(te,ve){return f(r.utcMonday.count(r.utcYear(te)-1,te),ve,2)}function xe(te,ve){return f(te.getUTCFullYear()%100,ve,2)}function He(te,ve){return te=Ve(te),f(te.getUTCFullYear()%100,ve,2)}function Je(te,ve){return f(te.getUTCFullYear()%1e4,ve,4)}function Ie(te,ve){var Fe=te.getUTCDay();return te=Fe>=4||Fe===0?r.utcThursday(te):r.utcThursday.ceil(te),f(te.getUTCFullYear()%1e4,ve,4)}function Ge(){return"+0000"}function nr(){return"%"}function lr(te){return+te}function fr(te){return Math.floor(+te/1e3)}var Se;Ke({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 Ke(te){return Se=i(te),e.timeFormat=Se.format,e.timeParse=Se.parse,e.utcFormat=Se.utcFormat,e.utcParse=Se.utcParse,Se}var Ne="%Y-%m-%dT%H:%M:%S.%LZ";function pr(te){return te.toISOString()}var xr=Date.prototype.toISOString?pr:e.utcFormat(Ne);function ur(te){var ve=new Date(te);return isNaN(ve)?null:ve}var mr=+new Date("2000-01-01T00:00:00.000Z")?ur:e.utcParse(Ne);e.isoFormat=xr,e.isoParse=mr,e.timeFormatDefaultLocale=Ke,e.timeFormatLocale=i,Object.defineProperty(e,"__esModule",{value:!0})})});var Up=J((Iv,Qx)=>{(function(e,r){typeof Iv=="object"&&typeof Qx!="undefined"?r(Iv):(e=typeof globalThis!="undefined"?globalThis:e||self,r(e.d3=e.d3||{}))})(Iv,(function(e){"use strict";function r(A){return Math.abs(A=Math.round(A))>=1e21?A.toLocaleString("en").replace(/,/g,""):A.toString(10)}function t(A,L){if((q=(A=L?A.toExponential(L-1):A.toExponential()).indexOf("e"))<0)return null;var q,P=A.slice(0,q);return[P.length>1?P[0]+P.slice(2):P,+A.slice(q+1)]}function a(A){return A=t(Math.abs(A)),A?A[1]:NaN}function n(A,L){return function(q,P){for(var z=q.length,N=[],I=0,B=A[0],H=0;z>0&&B>0&&(H+B+1>P&&(B=Math.max(1,P-H)),N.push(q.substring(z-=B,z+B)),!((H+=B+1)>P));)B=A[I=(I+1)%A.length];return N.reverse().join(L)}}function i(A){return function(L){return L.replace(/[0-9]/g,function(q){return A[+q]})}}var l=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function o(A){if(!(L=l.exec(A)))throw new Error("invalid format: "+A);var L;return new s({fill:L[1],align:L[2],sign:L[3],symbol:L[4],zero:L[5],width:L[6],comma:L[7],precision:L[8]&&L[8].slice(1),trim:L[9],type:L[10]})}o.prototype=s.prototype;function s(A){this.fill=A.fill===void 0?" ":A.fill+"",this.align=A.align===void 0?">":A.align+"",this.sign=A.sign===void 0?"-":A.sign+"",this.symbol=A.symbol===void 0?"":A.symbol+"",this.zero=!!A.zero,this.width=A.width===void 0?void 0:+A.width,this.comma=!!A.comma,this.precision=A.precision===void 0?void 0:+A.precision,this.trim=!!A.trim,this.type=A.type===void 0?"":A.type+""}s.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 u(A){e:for(var L=A.length,q=1,P=-1,z;q0&&(P=0);break}return P>0?A.slice(0,P)+A.slice(z+1):A}var f;function c(A,L){var q=t(A,L);if(!q)return A+"";var P=q[0],z=q[1],N=z-(f=Math.max(-8,Math.min(8,Math.floor(z/3)))*3)+1,I=P.length;return N===I?P:N>I?P+new Array(N-I+1).join("0"):N>0?P.slice(0,N)+"."+P.slice(N):"0."+new Array(1-N).join("0")+t(A,Math.max(0,L+N-1))[0]}function d(A,L){var q=t(A,L);if(!q)return A+"";var P=q[0],z=q[1];return z<0?"0."+new Array(-z).join("0")+P:P.length>z+1?P.slice(0,z+1)+"."+P.slice(z+1):P+new Array(z-P.length+2).join("0")}var h={"%":function(A,L){return(A*100).toFixed(L)},b:function(A){return Math.round(A).toString(2)},c:function(A){return A+""},d:r,e:function(A,L){return A.toExponential(L)},f:function(A,L){return A.toFixed(L)},g:function(A,L){return A.toPrecision(L)},o:function(A){return Math.round(A).toString(8)},p:function(A,L){return d(A*100,L)},r:d,s:c,X:function(A){return Math.round(A).toString(16).toUpperCase()},x:function(A){return Math.round(A).toString(16)}};function m(A){return A}var g=Array.prototype.map,y=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function x(A){var L=A.grouping===void 0||A.thousands===void 0?m:n(g.call(A.grouping,Number),A.thousands+""),q=A.currency===void 0?"":A.currency[0]+"",P=A.currency===void 0?"":A.currency[1]+"",z=A.decimal===void 0?".":A.decimal+"",N=A.numerals===void 0?m:i(g.call(A.numerals,String)),I=A.percent===void 0?"%":A.percent+"",B=A.minus===void 0?"-":A.minus+"",H=A.nan===void 0?"NaN":A.nan+"";function Y(O){O=o(O);var X=O.fill,Z=O.align,W=O.sign,ee=O.symbol,ne=O.zero,fe=O.width,we=O.comma,j=O.precision,_e=O.trim,ue=O.type;ue==="n"?(we=!0,ue="g"):h[ue]||(j===void 0&&(j=12),_e=!0,ue="g"),(ne||X==="0"&&Z==="=")&&(ne=!0,X="0",Z="=");var Me=ee==="$"?q:ee==="#"&&/[boxX]/.test(ue)?"0"+ue.toLowerCase():"",ge=ee==="$"?P:/[%p]/.test(ue)?I:"",ce=h[ue],Te=/[defgprs%]/.test(ue);j=j===void 0?6:/[gprs]/.test(ue)?Math.max(1,Math.min(21,j)):Math.max(0,Math.min(20,j));function ze(be){var qe=Me,Ce=ge,De,Ee,Ue;if(ue==="c")Ce=ce(be)+Ce,be="";else{be=+be;var ke=be<0||1/be<0;if(be=isNaN(be)?H:ce(Math.abs(be),j),_e&&(be=u(be)),ke&&+be==0&&W!=="+"&&(ke=!1),qe=(ke?W==="("?W:B:W==="-"||W==="("?"":W)+qe,Ce=(ue==="s"?y[8+f/3]:"")+Ce+(ke&&W==="("?")":""),Te){for(De=-1,Ee=be.length;++DeUe||Ue>57){Ce=(Ue===46?z+be.slice(De+1):be.slice(De))+Ce,be=be.slice(0,De);break}}}we&&!ne&&(be=L(be,1/0));var We=qe.length+be.length+Ce.length,je=We>1)+qe+be+Ce+je.slice(We);break;default:be=je+qe+be+Ce;break}return N(be)}return ze.toString=function(){return O+""},ze}function G(O,X){var Z=Y((O=o(O),O.type="f",O)),W=Math.max(-8,Math.min(8,Math.floor(a(X)/3)))*3,ee=Math.pow(10,-W),ne=y[8+W/3];return function(fe){return Z(ee*fe)+ne}}return{format:Y,formatPrefix:G}}var w;T({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function T(A){return w=x(A),e.format=w.format,e.formatPrefix=w.formatPrefix,w}function b(A){return Math.max(0,-a(Math.abs(A)))}function M(A,L){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(a(L)/3)))*3-a(Math.abs(A)))}function S(A,L){return A=Math.abs(A),L=Math.abs(L)-A,Math.max(0,a(L)-a(A))+1}e.FormatSpecifier=s,e.formatDefaultLocale=T,e.formatLocale=x,e.formatSpecifier=o,e.precisionFixed=b,e.precisionPrefix=M,e.precisionRound=S,Object.defineProperty(e,"__esModule",{value:!0})}))});var r_=J((uye,e_)=>{"use strict";e_.exports=function(e){for(var r=e.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}});var Xr=J((fye,t_)=>{"use strict";var qU=r_();t_.exports=function(e){var r=typeof e;if(r==="string"){var t=e;if(e=+e,e===0&&qU(t))return!1}else if(r!=="number")return!1;return e-e<1}});var da={};Rt(da,{ALMOST_EQUAL:()=>$U,BADNUM:()=>Gp,EPOCHJD:()=>JU,FP_SAFE:()=>EU,LOG_CLIP:()=>KU,MINUS_SIGN:()=>jU,ONEAVGMONTH:()=>HU,ONEAVGQUARTER:()=>NU,ONEAVGYEAR:()=>RU,ONEDAY:()=>UU,ONEHOUR:()=>GU,ONEMAXMONTH:()=>BU,ONEMAXQUARTER:()=>FU,ONEMAXYEAR:()=>PU,ONEMICROSEC:()=>ZU,ONEMILLI:()=>WU,ONEMIN:()=>VU,ONEMINMONTH:()=>OU,ONEMINQUARTER:()=>IU,ONEMINYEAR:()=>zU,ONESEC:()=>XU,ONEWEEK:()=>YU});var Gp,EU,PU,RU,zU,FU,NU,IU,BU,HU,OU,YU,UU,GU,VU,XU,WU,ZU,JU,$U,KU,jU,la=Pt(()=>{"use strict";Gp=void 0,EU=Number.MAX_VALUE*1e-4,PU=316224e5,RU=315576e5,zU=31536e6,FU=79488e5,NU=78894e5,IU=76896e5,BU=26784e5,HU=26298e5,OU=24192e5,YU=6048e5,UU=864e5,GU=36e5,VU=6e4,XU=1e3,WU=1,ZU=.001,JU=24405875e-1,$U=1-1e-6,KU=10,jU="\u2212"});var Vp=J((Bv,a_)=>{(function(e,r){typeof Bv=="object"&&typeof a_!="undefined"?r(Bv):(e=typeof globalThis!="undefined"?globalThis:e||self,r(e["base64-arraybuffer"]={}))})(Bv,(function(e){"use strict";for(var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),a=0;a>2],f+=r[(o[s]&3)<<4|o[s+1]>>4],f+=r[(o[s+1]&15)<<2|o[s+2]>>6],f+=r[o[s+2]&63];return u%3===2?f=f.substring(0,f.length-1)+"=":u%3===1&&(f=f.substring(0,f.length-2)+"=="),f},i=function(l){var o=l.length*.75,s=l.length,u,f=0,c,d,h,m;l[l.length-1]==="="&&(o--,l[l.length-2]==="="&&o--);var g=new ArrayBuffer(o),y=new Uint8Array(g);for(u=0;u>4,y[f++]=(d&15)<<4|h>>2,y[f++]=(h&3)<<6|m&63;return g};e.decode=i,e.encode=n,Object.defineProperty(e,"__esModule",{value:!0})}))});var No=J((cye,n_)=>{"use strict";n_.exports=function(r){return window&&window.process&&window.process.versions?Object.prototype.toString.call(r)==="[object Object]":Object.prototype.toString.call(r)==="[object Object]"&&Object.getPrototypeOf(r).hasOwnProperty("hasOwnProperty")}});var hn=J(mi=>{"use strict";var QU=Vp().decode,eG=No(),Xp=Array.isArray,rG=ArrayBuffer,tG=DataView;function i_(e){return rG.isView(e)&&!(e instanceof tG)}mi.isTypedArray=i_;function Hv(e){return Xp(e)||i_(e)}mi.isArrayOrTypedArray=Hv;function aG(e){return!Hv(e[0])}mi.isArray1D=aG;mi.ensureArray=function(e,r){return Xp(e)||(e=[]),e.length=r,e};var Ma={u1c:typeof Uint8ClampedArray=="undefined"?void 0:Uint8ClampedArray,i1:typeof Int8Array=="undefined"?void 0:Int8Array,u1:typeof Uint8Array=="undefined"?void 0:Uint8Array,i2:typeof Int16Array=="undefined"?void 0:Int16Array,u2:typeof Uint16Array=="undefined"?void 0:Uint16Array,i4:typeof Int32Array=="undefined"?void 0:Int32Array,u4:typeof Uint32Array=="undefined"?void 0:Uint32Array,f4:typeof Float32Array=="undefined"?void 0:Float32Array,f8:typeof Float64Array=="undefined"?void 0:Float64Array};Ma.uint8c=Ma.u1c;Ma.uint8=Ma.u1;Ma.int8=Ma.i1;Ma.uint16=Ma.u2;Ma.int16=Ma.i2;Ma.uint32=Ma.u4;Ma.int32=Ma.i4;Ma.float32=Ma.f4;Ma.float64=Ma.f8;function Wp(e){return e.constructor===ArrayBuffer}mi.isArrayBuffer=Wp;mi.decodeTypedArraySpec=function(e){var r=[],t=nG(e),a=t.dtype,n=Ma[a];if(!n)throw new Error('Error in dtype: "'+a+'"');var i=n.BYTES_PER_ELEMENT,l=t.bdata;Wp(l)||(l=QU(l));var o=t.shape===void 0?[l.byteLength/i]:(""+t.shape).split(",");o.reverse();var s=o.length,u,f,c=+o[0],d=i*c,h=0;if(s===1)r=new n(l);else if(s===2)for(u=+o[1],f=0;f{"use strict";var o_=Xr(),Jp=hn().isArrayOrTypedArray;c_.exports=function(r,t){if(o_(t))t=String(t);else if(typeof t!="string"||t.slice(-4)==="[-1]")throw"bad property string";var a=t.split("."),n,i,l,o;for(o=0;o{"use strict";var n0=Ov(),uG=/^\w*$/,fG=0,v_=1,Yv=2,d_=3,Io=4;h_.exports=function(r,t,a,n){a=a||"name",n=n||"value";var i,l,o,s={};t&&t.length?(o=n0(r,t),l=o.get()):l=r,t=t||"";var u={};if(l)for(i=0;i2)return s[h]=s[h]|Yv,c.set(d,null);if(f){for(i=h;i{"use strict";var cG=/^(.*)(\.[^\.\[\]]+|\[\d\])$/,vG=/^[^\.\[\]]+$/;m_.exports=function(e,r){for(;r;){var t=e.match(cG);if(t)e=t[1];else if(e.match(vG))e="";else throw new Error("bad relativeAttr call:"+[e,r]);if(r.charAt(0)==="^")r=r.slice(1);else break}return e&&r.charAt(0)!=="["?e+"."+r:e+r}});var Uv=J((mye,g_)=>{"use strict";var dG=Xr();g_.exports=function(r,t){if(r>0)return Math.log(r)/Math.LN10;var a=Math.log(Math.min(t[0],t[1]))/Math.LN10;return dG(a)||(a=Math.log(Math.max(t[0],t[1]))/Math.LN10-6),a}});var __=J((yye,x_)=>{"use strict";var b_=hn().isArrayOrTypedArray,Xu=No();x_.exports=function e(r,t){for(var a in t){var n=t[a],i=r[a];if(i!==n)if(a.charAt(0)==="_"||typeof n=="function"){if(a in r)continue;r[a]=n}else if(b_(n)&&b_(i)&&Xu(n[0])){if(a==="customdata"||a==="ids")continue;for(var l=Math.min(n.length,i.length),o=0;ohG,modHalf:()=>pG});function hG(e,r){let t=e%r;return t<0?t+r:t}function pG(e,r){return Math.abs(e)>r/2?e-Math.round(e/r)*r:e}var l0=Pt(()=>{"use strict"});var oa=J(Ju=>{"use strict";var w_=No(),Wu=Array.isArray;function mG(e,r){var t,a;for(t=0;t{"use strict";M_.exports=function(e){var r=e.variantValues,t=e.editType,a=e.colorEditType;a===void 0&&(a=t);var n={editType:t,valType:"integer",min:1,max:1e3,extras:["normal","bold"],dflt:"normal"};e.noNumericWeightValues&&(n.valType="enumerated",n.values=n.extras,n.extras=void 0,n.min=void 0,n.max=void 0);var i={family:{valType:"string",noBlank:!0,strict:!0,editType:t},size:{valType:"number",min:1,editType:t},color:{valType:"color",editType:a},weight:n,style:{editType:t,valType:"enumerated",values:["normal","italic"],dflt:"normal"},variant:e.noFontVariant?void 0:{editType:t,valType:"enumerated",values:r||["normal","small-caps","all-small-caps","all-petite-caps","petite-caps","unicase"],dflt:"normal"},textcase:e.noFontTextcase?void 0:{editType:t,valType:"enumerated",values:["normal","word caps","upper","lower"],dflt:"normal"},lineposition:e.noFontLineposition?void 0:{editType:t,valType:"flaglist",flags:["under","over","through"],extras:["none"],dflt:"none"},shadow:e.noFontShadow?void 0:{editType:t,valType:"string",dflt:e.autoShadowDflt?"auto":"none"},editType:t};return e.autoSize&&(i.size.dflt="auto"),e.autoColor&&(i.color.dflt="auto"),e.arrayOk&&(i.family.arrayOk=!0,i.weight.arrayOk=!0,i.style.arrayOk=!0,e.noFontVariant||(i.variant.arrayOk=!0),e.noFontTextcase||(i.textcase.arrayOk=!0),e.noFontLineposition||(i.lineposition.arrayOk=!0),e.noFontShadow||(i.shadow.arrayOk=!0),i.size.arrayOk=!0,i.color.arrayOk=!0),i}});var $u={};Rt($u,{HOVERARROWSIZE:()=>gG,HOVERFONT:()=>_G,HOVERFONTSIZE:()=>xG,HOVERID:()=>MG,HOVERMINTIME:()=>wG,HOVERTEXTPAD:()=>bG,YANGLE:()=>yG});var yG,gG,bG,xG,_G,wG,MG,Ku=Pt(()=>{"use strict";yG=60,gG=6,bG=3,xG=13,_G="Arial, sans-serif",wG=50,MG="-hover"});var o0=J((xye,k_)=>{"use strict";var T_=(Ku(),Xe($u)),A_=Ea(),$p=A_({editType:"none"});$p.family.dflt=T_.HOVERFONT;$p.size.dflt=T_.HOVERFONTSIZE;k_.exports={clickmode:{valType:"flaglist",flags:["event","select"],dflt:"event",editType:"plot",extras:["none"]},dragmode:{valType:"enumerated",values:["zoom","pan","select","lasso","drawclosedpath","drawopenpath","drawline","drawrect","drawcircle","orbit","turntable",!1],dflt:"zoom",editType:"modebar"},hovermode:{valType:"enumerated",values:["x","y","closest",!1,"x unified","y unified"],dflt:"closest",editType:"modebar"},hoversort:{valType:"enumerated",values:["trace","value descending","value ascending"],dflt:"trace",editType:"none"},hoversubplots:{valType:"enumerated",values:["single","overlaying","axis"],dflt:"overlaying",editType:"none"},hoveranywhere:{valType:"boolean",dflt:!1,editType:"none"},clickanywhere:{valType:"boolean",dflt:!1,editType:"none"},hoverdistance:{valType:"integer",min:-1,dflt:20,editType:"none"},spikedistance:{valType:"integer",min:-1,dflt:-1,editType:"none"},hoverlabel:{bgcolor:{valType:"color",editType:"none"},bordercolor:{valType:"color",editType:"none"},font:$p,grouptitlefont:A_({editType:"none"}),align:{valType:"enumerated",values:["left","right","auto"],dflt:"auto",editType:"none"},namelength:{valType:"integer",min:-1,dflt:15,editType:"none"},showarrow:{valType:"boolean",dflt:!0,editType:"none"},editType:"none"},selectdirection:{valType:"enumerated",values:["h","v","d","any"],dflt:"any",editType:"none"}}});var Gv=J((_ye,C_)=>{"use strict";var TG=Ea(),ju=o0().hoverlabel,Qu=oa().extendFlat;C_.exports={hoverlabel:{bgcolor:Qu({},ju.bgcolor,{arrayOk:!0}),bordercolor:Qu({},ju.bordercolor,{arrayOk:!0}),font:TG({arrayOk:!0,editType:"none"}),align:Qu({},ju.align,{arrayOk:!0}),namelength:Qu({},ju.namelength,{arrayOk:!0}),showarrow:Qu({},ju.showarrow),editType:"none"}}});var yi=J((wye,S_)=>{"use strict";var AG=Ea(),kG=Gv();S_.exports={type:{valType:"enumerated",values:[],dflt:"scatter",editType:"calc+clearAxisTypes",_noTemplating:!0},visible:{valType:"enumerated",values:[!0,!1,"legendonly"],dflt:!0,editType:"calc"},showlegend:{valType:"boolean",dflt:!0,editType:"style"},legend:{valType:"subplotid",dflt:"legend",editType:"style"},legendgroup:{valType:"string",dflt:"",editType:"style"},legendgrouptitle:{text:{valType:"string",dflt:"",editType:"style"},font:AG({editType:"style"}),editType:"style"},legendrank:{valType:"number",dflt:1e3,editType:"style"},legendwidth:{valType:"number",min:0,editType:"style"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"style"},name:{valType:"string",editType:"style"},uid:{valType:"string",editType:"plot",anim:!0},ids:{valType:"data_array",editType:"calc",anim:!0},customdata:{valType:"data_array",editType:"calc"},meta:{valType:"any",arrayOk:!0,editType:"plot"},selectedpoints:{valType:"any",editType:"calc"},hoverinfo:{valType:"flaglist",flags:["x","y","z","text","name"],extras:["all","none","skip"],arrayOk:!0,dflt:"all",editType:"none"},hoverlabel:kG.hoverlabel,uirevision:{valType:"any",editType:"none"}}});var x8=J((Dye,b8)=>{var Ym=Object.defineProperty,CG=Object.getOwnPropertyDescriptor,SG=Object.getOwnPropertyNames,DG=Object.prototype.hasOwnProperty,LG=(e,r)=>{for(var t in r)Ym(e,t,{get:r[t],enumerable:!0})},qG=(e,r,t,a)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of SG(r))!DG.call(e,n)&&n!==t&&Ym(e,n,{get:()=>r[n],enumerable:!(a=CG(r,n))||a.enumerable});return e},EG=e=>qG(Ym({},"__esModule",{value:!0}),e),I_={};LG(I_,{a98:()=>MZ,average:()=>SV,averageAngle:()=>Vi,averageNumber:()=>r7,blend:()=>CW,blerp:()=>wm,clampChroma:()=>WW,clampGamut:()=>py,clampRgb:()=>XW,colorsNamed:()=>H_,convertA98ToXyz65:()=>Mm,convertCubehelixToRgb:()=>Q_,convertDlchToLab65:()=>Qv,convertHsiToRgb:()=>u7,convertHslToRgb:()=>v7,convertHsvToRgb:()=>Zm,convertHwbToRgb:()=>m7,convertItpToXyz65:()=>Am,convertJabToJch:()=>Cm,convertJabToRgb:()=>ey,convertJabToXyz65:()=>jm,convertJchToJab:()=>Sm,convertLab65ToDlch:()=>e2,convertLab65ToRgb:()=>sf,convertLab65ToXyz65:()=>Vm,convertLabToLch:()=>hl,convertLabToRgb:()=>ty,convertLabToXyz50:()=>f2,convertLchToLab:()=>pl,convertLchuvToLuv:()=>iy,convertLrgbToOklab:()=>ly,convertLrgbToRgb:()=>Vo,convertLuvToLchuv:()=>ny,convertLuvToXyz50:()=>t2,convertOkhslToOklab:()=>qm,convertOkhsvToOklab:()=>Pm,convertOklabToLrgb:()=>p0,convertOklabToOkhsl:()=>Lm,convertOklabToOkhsv:()=>Em,convertOklabToRgb:()=>cf,convertP3ToXyz65:()=>Rm,convertProphotoToXyz50:()=>Nm,convertRec2020ToXyz65:()=>Bm,convertRgbToCubehelix:()=>j_,convertRgbToHsi:()=>f7,convertRgbToHsl:()=>d7,convertRgbToHsv:()=>Jm,convertRgbToHwb:()=>y7,convertRgbToJab:()=>Qm,convertRgbToLab:()=>ay,convertRgbToLab65:()=>uf,convertRgbToLrgb:()=>Go,convertRgbToOklab:()=>ff,convertRgbToXyb:()=>V7,convertRgbToXyz50:()=>h0,convertRgbToXyz65:()=>Il,convertRgbToYiq:()=>j7,convertXybToRgb:()=>X7,convertXyz50ToLab:()=>c2,convertXyz50ToLuv:()=>r2,convertXyz50ToProphoto:()=>Fm,convertXyz50ToRgb:()=>d0,convertXyz50ToXyz65:()=>$7,convertXyz65ToA98:()=>Tm,convertXyz65ToItp:()=>km,convertXyz65ToJab:()=>Km,convertXyz65ToLab65:()=>Xm,convertXyz65ToP3:()=>zm,convertXyz65ToRec2020:()=>Im,convertXyz65ToRgb:()=>Bl,convertXyz65ToXyz50:()=>J7,convertYiqToRgb:()=>Q7,converter:()=>xt,cubehelix:()=>TZ,differenceCie76:()=>_V,differenceCie94:()=>wV,differenceCiede2000:()=>MV,differenceCmc:()=>TV,differenceEuclidean:()=>v0,differenceHueChroma:()=>of,differenceHueNaive:()=>e7,differenceHueSaturation:()=>lf,differenceHyab:()=>AV,differenceItp:()=>CV,differenceKotsarenkoRamos:()=>kV,displayable:()=>hy,dlab:()=>AZ,dlch:()=>kZ,easingGamma:()=>h8,easingInOutSine:()=>_Z,easingMidpoint:()=>o8,easingSmootherstep:()=>bZ,easingSmoothstep:()=>mZ,easingSmoothstepInverse:()=>yZ,filterBrightness:()=>tZ,filterContrast:()=>aZ,filterDeficiencyDeuter:()=>hZ,filterDeficiencyProt:()=>dZ,filterDeficiencyTrit:()=>pZ,filterGrayscale:()=>lZ,filterHueRotate:()=>sZ,filterInvert:()=>oZ,filterSaturate:()=>iZ,filterSepia:()=>nZ,fixupAlpha:()=>pa,fixupHueDecreasing:()=>mV,fixupHueIncreasing:()=>pV,fixupHueLonger:()=>hV,fixupHueShorter:()=>Gi,formatCss:()=>xW,formatHex:()=>_W,formatHex8:()=>wW,formatHsl:()=>TW,formatRgb:()=>MW,getMode:()=>$a,hsi:()=>CZ,hsl:()=>SZ,hsv:()=>DZ,hwb:()=>LZ,inGamut:()=>h2,interpolate:()=>FW,interpolateWith:()=>u8,interpolateWithPremultipliedAlpha:()=>NW,interpolatorLinear:()=>_r,interpolatorPiecewise:()=>$_,interpolatorSplineBasis:()=>c8,interpolatorSplineBasisClosed:()=>v8,interpolatorSplineMonotone:()=>HW,interpolatorSplineMonotone2:()=>OW,interpolatorSplineMonotoneClosed:()=>YW,interpolatorSplineNatural:()=>IW,interpolatorSplineNaturalClosed:()=>BW,itp:()=>qZ,jab:()=>EZ,jch:()=>PZ,lab:()=>RZ,lab65:()=>zZ,lch:()=>FZ,lch65:()=>NZ,lchuv:()=>IZ,lerp:()=>Ho,lrgb:()=>BZ,luv:()=>HZ,mapAlphaDivide:()=>l8,mapAlphaMultiply:()=>i8,mapTransferGamma:()=>EW,mapTransferLinear:()=>cy,mapper:()=>vf,modeA98:()=>K_,modeCubehelix:()=>t7,modeDlab:()=>o7,modeDlch:()=>s7,modeHsi:()=>c7,modeHsl:()=>Wm,modeHsv:()=>$m,modeHwb:()=>b7,modeItp:()=>w7,modeJab:()=>M7,modeJch:()=>T7,modeLab:()=>v2,modeLab65:()=>k7,modeLch:()=>d2,modeLch65:()=>S7,modeLchuv:()=>q7,modeLrgb:()=>E7,modeLuv:()=>P7,modeOkhsl:()=>z7,modeOkhsv:()=>F7,modeOklab:()=>I7,modeOklch:()=>H7,modeP3:()=>O7,modeProphoto:()=>Y7,modeRec2020:()=>U7,modeRgb:()=>Uo,modeXyb:()=>W7,modeXyz50:()=>Z7,modeXyz65:()=>K7,modeYiq:()=>e8,nearest:()=>$W,okhsl:()=>OZ,okhsv:()=>YZ,oklab:()=>UZ,oklch:()=>GZ,p3:()=>VZ,parse:()=>W_,parseHex:()=>Y_,parseHsl:()=>p7,parseHslLegacy:()=>h7,parseHwb:()=>g7,parseLab:()=>A7,parseLch:()=>C7,parseNamed:()=>O_,parseOklab:()=>N7,parseOklch:()=>B7,parseRgb:()=>Z_,parseRgbLegacy:()=>U_,parseTransparent:()=>J_,prophoto:()=>XZ,random:()=>qW,rec2020:()=>WZ,removeParser:()=>XG,rgb:()=>ZZ,round:()=>r8,samples:()=>VW,serializeHex:()=>fy,serializeHex8:()=>t8,serializeHsl:()=>n8,serializeRgb:()=>a8,toGamut:()=>ZW,trilerp:()=>aV,unlerp:()=>tV,useMode:()=>ft,useParser:()=>V_,wcagContrast:()=>wZ,wcagLuminance:()=>Om,xyb:()=>JZ,xyz50:()=>$Z,xyz65:()=>KZ,yiq:()=>jZ});b8.exports=EG(I_);var PG=(e,r)=>{if(typeof e=="number"){if(r===3)return{mode:"rgb",r:(e>>8&15|e>>4&240)/255,g:(e>>4&15|e&240)/255,b:(e&15|e<<4&240)/255};if(r===4)return{mode:"rgb",r:(e>>12&15|e>>8&240)/255,g:(e>>8&15|e>>4&240)/255,b:(e>>4&15|e&240)/255,alpha:(e&15|e<<4&240)/255};if(r===6)return{mode:"rgb",r:(e>>16&255)/255,g:(e>>8&255)/255,b:(e&255)/255};if(r===8)return{mode:"rgb",r:(e>>24&255)/255,g:(e>>16&255)/255,b:(e>>8&255)/255,alpha:(e&255)/255}}},B_=PG,RG={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},H_=RG,zG=e=>B_(H_[e.toLowerCase()],6),O_=zG,FG=/^#?([0-9a-f]{8}|[0-9a-f]{6}|[0-9a-f]{4}|[0-9a-f]{3})$/i,NG=e=>{let r;return(r=e.match(FG))?B_(parseInt(r[1],16),r[1].length):void 0},Y_=NG,pn="([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)",Mye=`(?:${pn}|none)`,tf=`${pn}%`,Tye=`(?:${pn}%|none)`,Um=`(?:${pn}%|${pn})`,IG=`(?:${pn}%|${pn}|none)`,BG=`(?:${pn}(deg|grad|rad|turn)|${pn})`,Aye=`(?:${pn}(deg|grad|rad|turn)|${pn}|none)`,f0="\\s*,\\s*",kye=new RegExp("^"+IG+"$"),HG=new RegExp(`^rgba?\\(\\s*${pn}${f0}${pn}${f0}${pn}\\s*(?:,\\s*${Um}\\s*)?\\)$`),OG=new RegExp(`^rgba?\\(\\s*${tf}${f0}${tf}${f0}${tf}\\s*(?:,\\s*${Um}\\s*)?\\)$`),YG=e=>{let r={mode:"rgb"},t;if(t=e.match(HG))t[1]!==void 0&&(r.r=t[1]/255),t[2]!==void 0&&(r.g=t[2]/255),t[3]!==void 0&&(r.b=t[3]/255);else if(t=e.match(OG))t[1]!==void 0&&(r.r=t[1]/100),t[2]!==void 0&&(r.g=t[2]/100),t[3]!==void 0&&(r.b=t[3]/100);else return;return t[4]!==void 0?r.alpha=Math.max(0,Math.min(1,t[4]/100)):t[5]!==void 0&&(r.alpha=Math.max(0,Math.min(1,+t[5]))),r},U_=YG,UG=(e,r)=>e===void 0?void 0:typeof e!="object"?W_(e):e.mode!==void 0?e:r?Ct(ot({},e),{mode:r}):void 0,gi=UG,GG=(e="rgb")=>r=>(r=gi(r,e))!==void 0?r.mode===e?r:Ui[r.mode][e]?Ui[r.mode][e](r):e==="rgb"?Ui[r.mode].rgb(r):Ui.rgb[e](Ui[r.mode].rgb(r)):void 0,xt=GG,Ui={},G_={},c0=[],Gm={},VG=e=>e,ft=e=>(Ui[e.mode]=ot(ot({},Ui[e.mode]),e.toMode),Object.keys(e.fromMode||{}).forEach(r=>{Ui[r]||(Ui[r]={}),Ui[r][e.mode]=e.fromMode[r]}),e.ranges||(e.ranges={}),e.difference||(e.difference={}),e.channels.forEach(r=>{if(e.ranges[r]===void 0&&(e.ranges[r]=[0,1]),!e.interpolate[r])throw new Error(`Missing interpolator for: ${r}`);typeof e.interpolate[r]=="function"&&(e.interpolate[r]={use:e.interpolate[r]}),e.interpolate[r].fixup||(e.interpolate[r].fixup=VG)}),G_[e.mode]=e,(e.parse||[]).forEach(r=>{V_(r,e.mode)}),xt(e.mode)),$a=e=>G_[e],V_=(e,r)=>{if(typeof e=="string"){if(!r)throw new Error("'mode' required when 'parser' is a string");Gm[e]=r}else typeof e=="function"&&c0.indexOf(e)<0&&c0.push(e)},XG=e=>{if(typeof e=="string")delete Gm[e];else if(typeof e=="function"){let r=c0.indexOf(e);r>0&&c0.splice(r,1)}},xm=/[^\x00-\x7F]|[a-zA-Z_]/,WG=/[^\x00-\x7F]|[-\w]/,vr={Function:"function",Ident:"ident",Number:"number",Percentage:"percentage",ParenClose:")",None:"none",Hue:"hue",Alpha:"alpha"},Br=0;function Vv(e){let r=e[Br],t=e[Br+1];return r==="-"||r==="+"?/\d/.test(t)||t==="."&&/\d/.test(e[Br+2]):r==="."?/\d/.test(t):/\d/.test(r)}function _m(e){if(Br>=e.length)return!1;let r=e[Br];if(xm.test(r))return!0;if(r==="-"){if(e.length-Br<2)return!1;let t=e[Br+1];return!!(t==="-"||xm.test(t))}return!1}var ZG={deg:1,rad:180/Math.PI,grad:9/10,turn:360};function ef(e){let r="";if((e[Br]==="-"||e[Br]==="+")&&(r+=e[Br++]),r+=Xv(e),e[Br]==="."&&/\d/.test(e[Br+1])&&(r+=e[Br++]+Xv(e)),(e[Br]==="e"||e[Br]==="E")&&((e[Br+1]==="-"||e[Br+1]==="+")&&/\d/.test(e[Br+2])?r+=e[Br++]+e[Br++]+Xv(e):/\d/.test(e[Br+1])&&(r+=e[Br++]+Xv(e))),_m(e)){let t=Jv(e);return t==="deg"||t==="rad"||t==="turn"||t==="grad"?{type:vr.Hue,value:r*ZG[t]}:void 0}return e[Br]==="%"?(Br++,{type:vr.Percentage,value:+r}):{type:vr.Number,value:+r}}function Xv(e){let r="";for(;/\d/.test(e[Br]);)r+=e[Br++];return r}function Jv(e){let r="";for(;Br{var LU=Object.create;var Vu=Object.defineProperty,qU=Object.defineProperties,EU=Object.getOwnPropertyDescriptor,PU=Object.getOwnPropertyDescriptors,RU=Object.getOwnPropertyNames,Ev=Object.getOwnPropertySymbols,zU=Object.getPrototypeOf,Vp=Object.prototype.hasOwnProperty,$6=Object.prototype.propertyIsEnumerable;var J6=(e,r,t)=>r in e?Vu(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,ut=(e,r)=>{for(var t in r||(r={}))Vp.call(r,t)&&J6(e,t,r[t]);if(Ev)for(var t of Ev(r))$6.call(r,t)&&J6(e,t,r[t]);return e},St=(e,r)=>qU(e,PU(r));var K6=(e,r)=>{var t={};for(var a in e)Vp.call(e,a)&&r.indexOf(a)<0&&(t[a]=e[a]);if(e!=null&&Ev)for(var a of Ev(e))r.indexOf(a)<0&&$6.call(e,a)&&(t[a]=e[a]);return t};var Ft=(e,r,t)=>()=>{if(t)throw t[0];try{return e&&(r=e(e=0)),r}catch(a){throw t=[a],a}};var J=(e,r)=>()=>{try{return r||e((r={exports:{}}).exports,r),r.exports}catch(t){throw r=0,t}},Nt=(e,r)=>{for(var t in r)Vu(e,t,{get:r[t],enumerable:!0})},j6=(e,r,t,a)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of RU(r))!Vp.call(e,n)&&n!==t&&Vu(e,n,{get:()=>r[n],enumerable:!(a=EU(r,n))||a.enumerable});return e};var Q6=(e,r,t)=>(t=e!=null?LU(zU(e)):{},j6(r||!e||!e.__esModule?Vu(t,"default",{value:e,enumerable:!0}):t,e)),Xe=e=>j6(Vu({},"__esModule",{value:!0}),e);var e_=(e,r,t)=>new Promise((a,n)=>{var i=s=>{try{o(t.next(s))}catch(u){n(u)}},l=s=>{try{o(t.throw(s))}catch(u){n(u)}},o=s=>s.done?a(s.value):Promise.resolve(s.value).then(i,l);o((t=t.apply(e,r)).next())});var Xu=J(r_=>{"use strict";r_.version="4.2.0"});var a_=J((t_,Pv)=>{(function(r,t,a){t[r]=t[r]||a(),typeof Pv!="undefined"&&Pv.exports&&(Pv.exports=t[r])})("Promise",typeof window!="undefined"?window:t_,function(){"use strict";var r,t,a,n=Object.prototype.toString,i=typeof setImmediate!="undefined"?function(w){return setImmediate(w)}:setTimeout;try{Object.defineProperty({},"x",{}),r=function(w,M,b,T){return Object.defineProperty(w,M,{value:b,writable:!0,configurable:T!==!1})}}catch(x){r=function(M,b,T){return M[b]=T,M}}a=(function(){var w,M,b;function T(S,C){this.fn=S,this.self=C,this.next=void 0}return{add:function(C,L){b=new T(C,L),M?M.next=b:w=b,M=b,b=void 0},drain:function(){var C=w;for(w=M=t=void 0;C;)C.fn.call(C.self),C=C.next}}})();function l(x,w){a.add(x,w),t||(t=i(a.drain))}function o(x){var w,M=typeof x;return x!=null&&(M=="object"||M=="function")&&(w=x.then),typeof w=="function"?w:!1}function s(){for(var x=0;x0&&l(s,M))}catch(b){c.call(new h(M),b)}}}function c(x){var w=this;w.triggered||(w.triggered=!0,w.def&&(w=w.def),w.msg=x,w.state=2,w.chain.length>0&&l(s,w))}function d(x,w,M,b){for(var T=0;T{(function(){var e={version:"3.8.2"},r=[].slice,t=function(v){return r.call(v)},a=self.document;function n(v){return v&&(v.ownerDocument||v.document||v).documentElement}function i(v){return v&&(v.ownerDocument&&v.ownerDocument.defaultView||v.document&&v||v.defaultView)}if(a)try{t(a.documentElement.childNodes)[0].nodeType}catch(v){t=function(m){for(var _=m.length,A=new Array(_);_--;)A[_]=m[_];return A}}if(Date.now||(Date.now=function(){return+new Date}),a)try{a.createElement("DIV").style.setProperty("opacity",0,"")}catch(v){var l=this.Element.prototype,o=l.setAttribute,s=l.setAttributeNS,u=this.CSSStyleDeclaration.prototype,f=u.setProperty;l.setAttribute=function(m,_){o.call(this,m,_+"")},l.setAttributeNS=function(m,_,A){s.call(this,m,_,A+"")},u.setProperty=function(m,_,A){f.call(this,m,_+"",A)}}e.ascending=c;function c(v,m){return vm?1:v>=m?0:NaN}e.descending=function(v,m){return mv?1:m>=v?0:NaN},e.min=function(v,m){var _=-1,A=v.length,k,D;if(arguments.length===1){for(;++_=D){k=D;break}for(;++_D&&(k=D)}else{for(;++_=D){k=D;break}for(;++_D&&(k=D)}return k},e.max=function(v,m){var _=-1,A=v.length,k,D;if(arguments.length===1){for(;++_=D){k=D;break}for(;++_k&&(k=D)}else{for(;++_=D){k=D;break}for(;++_k&&(k=D)}return k},e.extent=function(v,m){var _=-1,A=v.length,k,D,R;if(arguments.length===1){for(;++_=D){k=R=D;break}for(;++_D&&(k=D),R=D){k=R=D;break}for(;++_D&&(k=D),R1)return R/(F-1)},e.deviation=function(){var v=e.variance.apply(this,arguments);return v&&Math.sqrt(v)};function p(v){return{left:function(m,_,A,k){for(arguments.length<3&&(A=0),arguments.length<4&&(k=m.length);A>>1;v(m[D],_)<0?A=D+1:k=D}return A},right:function(m,_,A,k){for(arguments.length<3&&(A=0),arguments.length<4&&(k=m.length);A>>1;v(m[D],_)>0?k=D:A=D+1}return A}}}var g=p(c);e.bisectLeft=g.left,e.bisect=e.bisectRight=g.right,e.bisector=function(v){return p(v.length===1?function(m,_){return c(v(m),_)}:v)},e.shuffle=function(v,m,_){(A=arguments.length)<3&&(_=v.length,A<2&&(m=0));for(var A=_-m,k,D;A;)D=Math.random()*A--|0,k=v[A+m],v[A+m]=v[D+m],v[D+m]=k;return v},e.permute=function(v,m){for(var _=m.length,A=new Array(_);_--;)A[_]=v[m[_]];return A},e.pairs=function(v){for(var m=0,_=v.length-1,A,k=v[0],D=new Array(_<0?0:_);m<_;)D[m]=[A=k,k=v[++m]];return D},e.transpose=function(v){if(!(D=v.length))return[];for(var m=-1,_=e.min(v,y),A=new Array(_);++m<_;)for(var k=-1,D,R=A[m]=new Array(D);++k=0;)for(R=v[m],_=R.length;--_>=0;)D[--k]=R[_];return D};var x=Math.abs;e.range=function(v,m,_){if(arguments.length<3&&(_=1,arguments.length<2&&(m=v,v=0)),(m-v)/_===1/0)throw new Error("infinite range");var A=[],k=w(x(_)),D=-1,R;if(v*=k,m*=k,_*=k,_<0)for(;(R=v+_*++D)>m;)A.push(R/k);else for(;(R=v+_*++D)=m.length)return k?k.call(v,F):A?F.sort(A):F;for(var X=-1,$=F.length,K=m[Y++],fe,be,ee,ae=new b,oe;++X<$;)(oe=ae.get(fe=K(be=F[X])))?oe.push(be):ae.set(fe,[be]);return E?(be=E(),ee=function(ye,xe){be.set(ye,D(E,xe,Y))}):(be={},ee=function(ye,xe){be[ye]=D(E,xe,Y)}),ae.forEach(ee),be}function R(E,F){if(F>=m.length)return E;var Y=[],X=_[F++];return E.forEach(function($,K){Y.push({key:$,values:R(K,F)})}),X?Y.sort(function($,K){return X($.key,K.key)}):Y}return v.map=function(E,F){return D(F,E,0)},v.entries=function(E){return R(D(e.map,E,0),0)},v.key=function(E){return m.push(E),v},v.sortKeys=function(E){return _[m.length-1]=E,v},v.sortValues=function(E){return A=E,v},v.rollup=function(E){return k=E,v},v},e.set=function(v){var m=new B;if(v)for(var _=0,A=v.length;_=0&&(A=v.slice(_+1),v=v.slice(0,_)),v)return arguments.length<2?this[v].on(A):this[v].on(A,m);if(arguments.length===2){if(m==null)for(v in this)this.hasOwnProperty(v)&&this[v].on(A,null);return this}};function G(v){var m=[],_=new b;function A(){for(var k=m,D=-1,R=k.length,E;++D=0&&(_=v.slice(0,m))!=="xmlns"&&(v=v.slice(m+1)),De.hasOwnProperty(_)?{space:De[_],local:v}:v}},de.attr=function(v,m){if(arguments.length<2){if(typeof v=="string"){var _=this.node();return v=e.ns.qualify(v),v.local?_.getAttributeNS(v.space,v.local):_.getAttribute(v)}for(m in v)this.each(Te(m,v[m]));return this}return this.each(Te(v,m))};function Te(v,m){v=e.ns.qualify(v);function _(){this.removeAttribute(v)}function A(){this.removeAttributeNS(v.space,v.local)}function k(){this.setAttribute(v,m)}function D(){this.setAttributeNS(v.space,v.local,m)}function R(){var F=m.apply(this,arguments);F==null?this.removeAttribute(v):this.setAttribute(v,F)}function E(){var F=m.apply(this,arguments);F==null?this.removeAttributeNS(v.space,v.local):this.setAttributeNS(v.space,v.local,F)}return m==null?v.local?A:_:typeof m=="function"?v.local?E:R:v.local?D:k}function Ae(v){return v.trim().replace(/\s+/g," ")}de.classed=function(v,m){if(arguments.length<2){if(typeof v=="string"){var _=this.node(),A=(v=Re(v)).length,k=-1;if(m=_.classList){for(;++k=0;)(D=_[A])&&(k&&k!==D.nextSibling&&k.parentNode.insertBefore(D,k),k=D);return this},de.sort=function(v){v=ge.apply(this,arguments);for(var m=-1,_=this.length;++m<_;)this[m].sort(v);return this.order()};function ge(v){return arguments.length||(v=c),function(m,_){return m&&_?v(m.__data__,_.__data__):!m-!_}}de.each=function(v){return Ge(this,function(m,_,A){v.call(m,m.__data__,_,A)})};function Ge(v,m){for(var _=0,A=v.length;_=m&&(m=k+1);!(F=R[m])&&++m0&&(v=v.slice(0,k));var R=ze.get(v);R&&(v=R,D=Ne);function E(){var X=this[A];X&&(this.removeEventListener(v,X,X.$),delete this[A])}function F(){var X=D(m,t(arguments));E.call(this),this.addEventListener(v,this[A]=X,X.$=_),X._=m}function Y(){var X=new RegExp("^__on([^.]+)"+e.requote(v)+"$"),$;for(var K in this)if($=K.match(X)){var fe=this[K];this.removeEventListener($[1],fe,fe.$),delete this[K]}}return k?m?F:E:m?W:Y}var ze=e.map({mouseenter:"mouseover",mouseleave:"mouseout"});a&&ze.forEach(function(v){"on"+v in a&&ze.remove(v)});function Ve(v,m){return function(_){var A=e.event;e.event=_,m[0]=this.__data__;try{v.apply(this,m)}finally{e.event=A}}}function Ne(v,m){var _=Ve(v,m);return function(A){var k=this,D=A.relatedTarget;(!D||D!==k&&!(D.compareDocumentPosition(k)&8))&&_.call(k,A)}}var Ze,Ke=0;function _r(v){var m=".dragsuppress-"+ ++Ke,_="click"+m,A=e.select(i(v)).on("touchmove"+m,j).on("dragstart"+m,j).on("selectstart"+m,j);if(Ze==null&&(Ze="onselectstart"in v?!1:O(v.style,"userSelect")),Ze){var k=n(v).style,D=k[Ze];k[Ze]="none"}return function(R){if(A.on(m,null),Ze&&(k[Ze]=D),R){var E=function(){A.on(_,null)};A.on(_,function(){j(),E()},!0),setTimeout(E,0)}}}e.mouse=function(v){return qe(v,ie())};var xr=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;function qe(v,m){m.changedTouches&&(m=m.changedTouches[0]);var _=v.ownerSVGElement||v;if(_.createSVGPoint){var A=_.createSVGPoint();if(xr<0){var k=i(v);if(k.scrollX||k.scrollY){_=e.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var D=_[0][0].getScreenCTM();xr=!(D.f||D.e),_.remove()}}return xr?(A.x=m.pageX,A.y=m.pageY):(A.x=m.clientX,A.y=m.clientY),A=A.matrixTransform(v.getScreenCTM().inverse()),[A.x,A.y]}var R=v.getBoundingClientRect();return[m.clientX-R.left-v.clientLeft,m.clientY-R.top-v.clientTop]}e.touch=function(v,m,_){if(arguments.length<3&&(_=m,m=ie().changedTouches),m){for(var A=0,k=m.length,D;A0?1:v<0?-1:0}function Xr(v,m,_){return(m[0]-v[0])*(_[1]-v[1])-(m[1]-v[1])*(_[0]-v[0])}function ft(v){return v>1?0:v<-1?dr:Math.acos(v)}function kt(v){return v>1?te:v<-1?-te:Math.asin(v)}function Rt(v){return((v=Math.exp(v))-1/v)/2}function Xt(v){return((v=Math.exp(v))+1/v)/2}function Ot(v){return((v=Math.exp(2*v))-1)/(v+1)}function Ga(v){return(v=Math.sin(v/2))*v}var gt=Math.SQRT2,Yt=2,Wt=4;e.interpolateZoom=function(v,m){var _=v[0],A=v[1],k=v[2],D=m[0],R=m[1],E=m[2],F=D-_,Y=R-A,X=F*F+Y*Y,$,K;if(X0&&(ar=ar.transition().duration(R)),ar.call(xe.event)}function gr(){ae&&ae.domain(ee.range().map(function(ar){return(ar-v.x)/v.k}).map(ee.invert)),ye&&ye.domain(oe.range().map(function(ar){return(ar-v.y)/v.k}).map(oe.invert))}function yr(ar){E++||ar({type:"zoomstart"})}function Rr(ar){gr(),ar({type:"zoom",scale:v.k,translate:[v.x,v.y]})}function wr(ar){--E||(ar({type:"zoomend"}),_=null)}function Lr(){var ar=this,zr=be.of(ar,arguments),Fr=0,rt=e.select(i(ar)).on(Y,Fa).on(X,rn),zt=ue(e.mouse(ar)),fa=_r(ar);Sv.call(ar),yr(zr);function Fa(){Fr=1,ur(e.mouse(ar),zt),Rr(zr)}function rn(){rt.on(Y,null).on(X,null),fa(Fr),wr(zr)}}function et(){var ar=this,zr=be.of(ar,arguments),Fr={},rt=0,zt,fa=".zoom-"+e.event.changedTouches[0].identifier,Fa="touchmove"+fa,rn="touchend"+fa,pn=[],tn=e.select(ar),yn=_r(ar);bn(),yr(zr),tn.on(F,null).on(K,bn);function Xa(){var yi=e.touches(ar);return zt=v.k,yi.forEach(function(Na){Na.identifier in Fr&&(Fr[Na.identifier]=ue(Na))}),yi}function bn(){var yi=e.event.target;e.select(yi).on(Fa,Oo).on(rn,DU),pn.push(yi);for(var Na=e.event.changedTouches,Jn=0,Xi=Na.length;Jn1){var Yo=$n[0],Ul=$n[1],qv=Yo[0]-Ul[0],Z6=Yo[1]-Ul[1];rt=qv*qv+Z6*Z6}}function Oo(){var yi=e.touches(ar),Na,Jn,Xi,$n;Sv.call(ar);for(var o0=0,Yo=yi.length;o01?1:m,_=_<0?0:_>1?1:_,k=_<=.5?_*(1+m):_+m-_*m,A=2*_-k;function D(E){return E>360?E-=360:E<0&&(E+=360),E<60?A+(k-A)*E/60:E<180?k:E<240?A+(k-A)*(240-E)/60:A}function R(E){return Math.round(D(E)*255)}return new Sa(R(v+120),R(v),R(v-120))}e.hcl=ct;function ct(v,m,_){return this instanceof ct?(this.h=+v,this.c=+m,void(this.l=+_)):arguments.length<2?v instanceof ct?new ct(v.h,v.c,v.l):v instanceof at?Pu(v.l,v.a,v.b):Pu((v=vv((v=e.rgb(v)).r,v.g,v.b)).l,v.a,v.b):new ct(v,m,_)}var Ct=ct.prototype=new oa;Ct.brighter=function(v){return new ct(this.h,this.c,Math.min(100,this.l+vt*(arguments.length?v:1)))},Ct.darker=function(v){return new ct(this.h,this.c,Math.max(0,this.l-vt*(arguments.length?v:1)))},Ct.rgb=function(){return ka(this.h,this.c,this.l).rgb()};function ka(v,m,_){return isNaN(v)&&(v=0),isNaN(m)&&(m=0),new at(_,Math.cos(v*=he)*m,Math.sin(v)*m)}e.lab=at;function at(v,m,_){return this instanceof at?(this.l=+v,this.a=+m,void(this.b=+_)):arguments.length<2?v instanceof at?new at(v.l,v.a,v.b):v instanceof ct?ka(v.h,v.c,v.l):vv((v=Sa(v)).r,v.g,v.b):new at(v,m,_)}var vt=18,sa=.95047,mi=1,Gi=1.08883,Xn=at.prototype=new oa;Xn.brighter=function(v){return new at(Math.min(100,this.l+vt*(arguments.length?v:1)),this.a,this.b)},Xn.darker=function(v){return new at(Math.max(0,this.l-vt*(arguments.length?v:1)),this.a,this.b)},Xn.rgb=function(){return aa(this.l,this.a,this.b)};function aa(v,m,_){var A=(v+16)/116,k=A+m/500,D=A-_/200;return k=Ca(k)*sa,A=Ca(A)*mi,D=Ca(D)*Gi,new Sa(Fo(3.2404542*k-1.5371385*A-.4985314*D),Fo(-.969266*k+1.8760108*A+.041556*D),Fo(.0556434*k-.2040259*A+1.0572252*D))}function Pu(v,m,_){return v>0?new ct(Math.atan2(_,m)*Pe,Math.sqrt(m*m+_*_),v):new ct(NaN,NaN,v)}function Ca(v){return v>.206893034?v*v*v:(v-4/29)/7.787037}function Hl(v){return v>.008856?Math.pow(v,1/3):7.787037*v+4/29}function Fo(v){return Math.round(255*(v<=.00304?12.92*v:1.055*Math.pow(v,1/2.4)-.055))}e.rgb=Sa;function Sa(v,m,_){return this instanceof Sa?(this.r=~~v,this.g=~~m,void(this.b=~~_)):arguments.length<2?v instanceof Sa?new Sa(v.r,v.g,v.b):fv(""+v,Sa,Wr):new Sa(v,m,_)}function uv(v){return new Sa(v>>16,v>>8&255,v&255)}function Qs(v){return uv(v)+""}var e0=Sa.prototype=new oa;e0.brighter=function(v){v=Math.pow(.7,arguments.length?v:1);var m=this.r,_=this.g,A=this.b,k=30;return!m&&!_&&!A?new Sa(k,k,k):(m&&m>4,A=A>>4|A,k=F&240,k=k>>4|k,D=F&15,D=D<<4|D):v.length===7&&(A=(F&16711680)>>16,k=(F&65280)>>8,D=F&255)),m(A,k,D))}function cv(v,m,_){var A=Math.min(v/=255,m/=255,_/=255),k=Math.max(v,m,_),D=k-A,R,E,F=(k+A)/2;return D?(E=F<.5?D/(k+A):D/(2-k-A),v==k?R=(m-_)/D+(m<_?6:0):m==k?R=(_-v)/D+2:R=(v-m)/D+4,R*=60):(R=NaN,E=F>0&&F<1?0:R),new ir(R,E,F)}function vv(v,m,_){v=Ru(v),m=Ru(m),_=Ru(_);var A=Hl((.4124564*v+.3575761*m+.1804375*_)/sa),k=Hl((.2126729*v+.7151522*m+.072175*_)/mi),D=Hl((.0193339*v+.119192*m+.9503041*_)/Gi);return at(116*k-16,500*(A-k),200*(k-D))}function Ru(v){return(v/=255)<=.04045?v/12.92:Math.pow((v+.055)/1.055,2.4)}function zu(v){var m=parseFloat(v);return v.charAt(v.length-1)==="%"?Math.round(m*2.55):m}var Tr=e.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});Tr.forEach(function(v,m){Tr.set(v,uv(m))});function Mr(v){return typeof v=="function"?v:function(){return v}}e.functor=Mr,e.xhr=nt(I);function nt(v){return function(m,_,A){return arguments.length===2&&typeof _=="function"&&(A=_,_=null),or(m,_,v,A)}}function or(v,m,_,A){var k={},D=e.dispatch("beforesend","progress","load","error"),R={},E=new XMLHttpRequest,F=null;self.XDomainRequest&&!("withCredentials"in E)&&/^(http(s)?:)?\/\//.test(v)&&(E=new XDomainRequest),"onload"in E?E.onload=E.onerror=Y:E.onreadystatechange=function(){E.readyState>3&&Y()};function Y(){var X=E.status,$;if(!X&&bt(E)||X>=200&&X<300||X===304){try{$=_.call(k,E)}catch(K){D.error.call(k,K);return}D.load.call(k,$)}else D.error.call(k,E)}return E.onprogress=function(X){var $=e.event;e.event=X;try{D.progress.call(k,E)}finally{e.event=$}},k.header=function(X,$){return X=(X+"").toLowerCase(),arguments.length<2?R[X]:($==null?delete R[X]:R[X]=$+"",k)},k.mimeType=function(X){return arguments.length?(m=X==null?null:X+"",k):m},k.responseType=function(X){return arguments.length?(F=X,k):F},k.response=function(X){return _=X,k},["get","post"].forEach(function(X){k[X]=function(){return k.send.apply(k,[X].concat(t(arguments)))}}),k.send=function(X,$,K){if(arguments.length===2&&typeof $=="function"&&(K=$,$=null),E.open(X,v,!0),m!=null&&!("accept"in R)&&(R.accept=m+",*/*"),E.setRequestHeader)for(var fe in R)E.setRequestHeader(fe,R[fe]);return m!=null&&E.overrideMimeType&&E.overrideMimeType(m),F!=null&&(E.responseType=F),K!=null&&k.on("error",K).on("load",function(be){K(null,be)}),D.beforesend.call(k,E),E.send($==null?null:$),k},k.abort=function(){return E.abort(),k},e.rebind(k,D,"on"),A==null?k:k.get(en(A))}function en(v){return v.length===1?function(m,_){v(m==null?_:null)}:v}function bt(v){var m=v.responseType;return m&&m!=="text"?v.response:v.responseText}e.dsv=function(v,m){var _=new RegExp('["'+v+` +]`),A=v.charCodeAt(0);function k(Y,X,$){arguments.length<3&&($=X,X=null);var K=or(Y,m,X==null?D:R(X),$);return K.row=function(fe){return arguments.length?K.response((X=fe)==null?D:R(fe)):X},K}function D(Y){return k.parse(Y.responseText)}function R(Y){return function(X){return k.parse(X.responseText,Y)}}k.parse=function(Y,X){var $;return k.parseRows(Y,function(K,fe){if($)return $(K,fe-1);var be=function(ee){for(var ae={},oe=K.length,ye=0;ye=be)return K;if(ye)return ye=!1,$;var Ye=ee;if(Y.charCodeAt(Ye)===34){for(var lr=Ye;lr++24?(isFinite(m)&&(clearTimeout(No),No=setTimeout(gp,m)),Wn=0):(Wn=1,Rx(gp))}e.timer.flush=function(){zx(),Fx()};function zx(){for(var v=Date.now(),m=Ra;m;)v>=m.t&&m.c(v-m.t)&&(m.c=null),m=m.n;return v}function Fx(){for(var v,m=Ra,_=1/0;m;)m.c?(m.t<_&&(_=m.t),m=(v=m).n):m=v?v.n=m.n:Ra=m.n;return za=v,_}e.round=function(v,m){return m?Math.round(v*(m=Math.pow(10,m)))/m:Math.round(v)},e.geom={};function r0(v){return v[0]}function Fu(v){return v[1]}e.geom.hull=function(v){var m=r0,_=Fu;if(arguments.length)return A(v);function A(k){if(k.length<3)return[];var D=Mr(m),R=Mr(_),E,F=k.length,Y=[],X=[];for(E=0;E=0;--E)ee.push(k[Y[$[E]][2]]);for(E=+fe;E1&&Xr(v[_[A-2]],v[_[A-1]],v[k])<=0;)--A;_[A++]=k}return _.slice(0,A)}function EO(v,m){return v[0]-m[0]||v[1]-m[1]}e.geom.polygon=function(v){return Q(v,hv),v};var hv=e.geom.polygon.prototype=[];hv.area=function(){for(var v=-1,m=this.length,_,A=this[m-1],k=0;++vEe)E=E.L;else if(R=m-FO(E,_),R>Ee){if(!E.R){A=E;break}E=E.R}else{D>-Ee?(A=E.P,k=E):R>-Ee?(A=E,k=E.N):A=k=E;break}var F=Ox(v);if(a0.insert(A,F),!(!A&&!k)){if(A===k){i0(A),k=Ox(A.site),a0.insert(F,k),F.edge=k.edge=Iu(A.site,F.site),n0(A),n0(k);return}if(!k){F.edge=Iu(A.site,F.site);return}i0(A),i0(k);var Y=A.site,X=Y.x,$=Y.y,K=v.x-X,fe=v.y-$,be=k.site,ee=be.x-X,ae=be.y-$,oe=2*(K*ae-fe*ee),ye=K*K+fe*fe,xe=ee*ee+ae*ae,ue={x:(ae*ye-fe*xe)/oe+X,y:(K*xe-ee*ye)/oe+$};pv(k.edge,Y,be,ue),F.edge=Iu(Y,v,null,ue),k.edge=Iu(v,be,null,ue),n0(A),n0(k)}}function Yx(v,m){var _=v.site,A=_.x,k=_.y,D=k-m;if(!D)return A;var R=v.P;if(!R)return-1/0;_=R.site;var E=_.x,F=_.y,Y=F-m;if(!Y)return E;var X=E-A,$=1/D-1/Y,K=X/Y;return $?(-K+Math.sqrt(K*K-2*$*(X*X/(-2*Y)-F+Y/2+k-D/2)))/$+A:(A+E)/2}function FO(v,m){var _=v.N;if(_)return Yx(_,m);var A=v.site;return A.y===m?A.x:1/0}function Ux(v){this.site=v,this.edges=[]}Ux.prototype.prepare=function(){for(var v=this.edges,m=v.length,_;m--;)_=v[m].edge,(!_.b||!_.a)&&v.splice(m,1);return v.sort(Gx),v.length};function NO(v){for(var m=v[0][0],_=v[1][0],A=v[0][1],k=v[1][1],D,R,E,F,Y=Io,X=Y.length,$,K,fe,be,ee,ae;X--;)if($=Y[X],!(!$||!$.prepare()))for(fe=$.edges,be=fe.length,K=0;KEe||x(F-R)>Ee)&&(fe.splice(K,0,new mv(YO($.site,ae,x(E-m)Ee?{x:m,y:x(D-m)Ee?{x:x(R-k)Ee?{x:_,y:x(D-_)Ee?{x:x(R-A)=-je)){var K=F*F+Y*Y,fe=X*X+ae*ae,be=(ae*K-Y*fe)/$,ee=(F*fe-X*K)/$,ae=ee+E,oe=Hx.pop()||new IO;oe.arc=v,oe.site=k,oe.x=be+R,oe.y=ae+Math.sqrt(be*be+ee*ee),oe.cy=ae,v.circle=oe;for(var ye=null,xe=Nu._;xe;)if(oe.y0)){if(ee/=fe,fe<0){if(ee<$)return;ee0){if(ee>K)return;ee>$&&($=ee)}if(ee=_-E,!(!fe&&ee<0)){if(ee/=fe,fe<0){if(ee>K)return;ee>$&&($=ee)}else if(fe>0){if(ee<$)return;ee0)){if(ee/=be,be<0){if(ee<$)return;ee0){if(ee>K)return;ee>$&&($=ee)}if(ee=A-F,!(!be&&ee<0)){if(ee/=be,be<0){if(ee>K)return;ee>$&&($=ee)}else if(be>0){if(ee<$)return;ee0&&(k.a={x:E+$*fe,y:F+$*be}),K<1&&(k.b={x:E+K*fe,y:F+K*be}),k}}}}}}function HO(v){for(var m=t0,_=BO(v[0][0],v[0][1],v[1][0],v[1][1]),A=m.length,k;A--;)k=m[A],(!OO(k,v)||!_(k)||x(k.a.x-k.b.x)=D)return;if(X>K){if(!A)A={x:be,y:R};else if(A.y>=E)return;_={x:be,y:E}}else{if(!A)A={x:be,y:E};else if(A.y1)if(X>K){if(!A)A={x:(R-oe)/ae,y:R};else if(A.y>=E)return;_={x:(E-oe)/ae,y:E}}else{if(!A)A={x:(E-oe)/ae,y:E};else if(A.y=D)return;_={x:D,y:ae*D+oe}}else{if(!A)A={x:D,y:ae*D+oe};else if(A.x=X&&oe.x<=K&&oe.y>=$&&oe.y<=fe?[[X,fe],[K,fe],[K,$],[X,$]]:[];ye.point=F[ee]}),Y}function E(F){return F.map(function(Y,X){return{x:Math.round(A(Y,X)/Ee)*Ee,y:Math.round(k(Y,X)/Ee)*Ee,i:X}})}return R.links=function(F){return Mp(E(F)).edges.filter(function(Y){return Y.l&&Y.r}).map(function(Y){return{source:F[Y.l.i],target:F[Y.r.i]}})},R.triangles=function(F){var Y=[];return Mp(E(F)).cells.forEach(function(X,$){for(var K=X.site,fe=X.edges.sort(Gx),be=-1,ee=fe.length,ae,oe,ye=fe[ee-1].edge,xe=ye.l===K?ye.r:ye.l;++bexe&&(xe=X.x),X.y>ue&&(ue=X.y),fe.push(X.x),be.push(X.y);else for(ee=0;eexe&&(xe=Ye),lr>ue&&(ue=lr),fe.push(Ye),be.push(lr)}var ur=xe-oe,sr=ue-ye;ur>sr?ue=ye+ur:xe=oe+sr;function gr(wr,Lr,et,Zt,it,ar,zr,Fr){if(!(isNaN(et)||isNaN(Zt)))if(wr.leaf){var rt=wr.x,zt=wr.y;if(rt!=null)if(x(rt-et)+x(zt-Zt)<.01)yr(wr,Lr,et,Zt,it,ar,zr,Fr);else{var fa=wr.point;wr.x=wr.y=wr.point=null,yr(wr,fa,rt,zt,it,ar,zr,Fr),yr(wr,Lr,et,Zt,it,ar,zr,Fr)}else wr.x=et,wr.y=Zt,wr.point=Lr}else yr(wr,Lr,et,Zt,it,ar,zr,Fr)}function yr(wr,Lr,et,Zt,it,ar,zr,Fr){var rt=(it+zr)*.5,zt=(ar+Fr)*.5,fa=et>=rt,Fa=Zt>=zt,rn=Fa<<1|fa;wr.leaf=!1,wr=wr.nodes[rn]||(wr.nodes[rn]=Wx()),fa?it=rt:zr=rt,Fa?ar=zt:Fr=zt,gr(wr,Lr,et,Zt,it,ar,zr,Fr)}var Rr=Wx();if(Rr.add=function(wr){gr(Rr,wr,+$(wr,++ee),+K(wr,ee),oe,ye,xe,ue)},Rr.visit=function(wr){Ou(wr,Rr,oe,ye,xe,ue)},Rr.find=function(wr){return WO(Rr,wr[0],wr[1],oe,ye,xe,ue)},ee=-1,m==null){for(;++eeD||K>R||fe=Ye,sr=_>=lr,gr=sr<<1|ur,yr=gr+4;gr_&&(D=m.slice(_,D),E[R]?E[R]+=D:E[++R]=D),(A=A[0])===(k=k[0])?E[R]?E[R]+=k:E[++R]=k:(E[++R]=null,F.push({i:R,x:gl(A,k)})),_=kp.lastIndex;return _=0&&!(A=e.interpolators[_](v,m)););return A}e.interpolators=[function(v,m){var _=typeof m;return(_==="string"?Tr.has(m.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(m)?Tp:Jx:m instanceof oa?Tp:Array.isArray(m)?bv:_==="object"&&isNaN(m)?Zx:gl)(v,m)}],e.interpolateArray=bv;function bv(v,m){var _=[],A=[],k=v.length,D=m.length,R=Math.min(v.length,m.length),E;for(E=0;E=0?v.slice(0,m):v,A=m>=0?v.slice(m+1):"in";return _=ZO.get(_)||$x,A=JO.get(A)||I,$O(A(_.apply(null,r.call(arguments,1))))};function $O(v){return function(m){return m<=0?0:m>=1?1:v(m)}}function Kx(v){return function(m){return 1-v(1-m)}}function jx(v){return function(m){return .5*(m<.5?v(2*m):2-v(2-2*m))}}function KO(v){return v*v}function jO(v){return v*v*v}function QO(v){if(v<=0)return 0;if(v>=1)return 1;var m=v*v,_=m*v;return 4*(v<.5?_:3*(v-m)+_-.75)}function eY(v){return function(m){return Math.pow(m,v)}}function rY(v){return 1-Math.cos(v*te)}function tY(v){return Math.pow(2,10*(v-1))}function aY(v){return 1-Math.sqrt(1-v*v)}function nY(v,m){var _;return arguments.length<2&&(m=.45),arguments.length?_=m/hr*Math.asin(1/v):(v=1,_=m/4),function(A){return 1+v*Math.pow(2,-10*A)*Math.sin((A-_)*hr/m)}}function iY(v){return v||(v=1.70158),function(m){return m*m*((v+1)*m-v)}}function lY(v){return v<1/2.75?7.5625*v*v:v<2/2.75?7.5625*(v-=1.5/2.75)*v+.75:v<2.5/2.75?7.5625*(v-=2.25/2.75)*v+.9375:7.5625*(v-=2.625/2.75)*v+.984375}e.interpolateHcl=oY;function oY(v,m){v=e.hcl(v),m=e.hcl(m);var _=v.h,A=v.c,k=v.l,D=m.h-_,R=m.c-A,E=m.l-k;return isNaN(R)&&(R=0,A=isNaN(A)?m.c:A),isNaN(D)?(D=0,_=isNaN(_)?m.h:_):D>180?D-=360:D<-180&&(D+=360),function(F){return ka(_+D*F,A+R*F,k+E*F)+""}}e.interpolateHsl=sY;function sY(v,m){v=e.hsl(v),m=e.hsl(m);var _=v.h,A=v.s,k=v.l,D=m.h-_,R=m.s-A,E=m.l-k;return isNaN(R)&&(R=0,A=isNaN(A)?m.s:A),isNaN(D)?(D=0,_=isNaN(_)?m.h:_):D>180?D-=360:D<-180&&(D+=360),function(F){return Wr(_+D*F,A+R*F,k+E*F)+""}}e.interpolateLab=uY;function uY(v,m){v=e.lab(v),m=e.lab(m);var _=v.l,A=v.a,k=v.b,D=m.l-_,R=m.a-A,E=m.b-k;return function(F){return aa(_+D*F,A+R*F,k+E*F)+""}}e.interpolateRound=Qx;function Qx(v,m){return m-=v,function(_){return Math.round(v+m*_)}}e.transform=function(v){var m=a.createElementNS(e.ns.prefix.svg,"g");return(e.transform=function(_){if(_!=null){m.setAttribute("transform",_);var A=m.transform.baseVal.consolidate()}return new e6(A?A.matrix:cY)})(v)};function e6(v){var m=[v.a,v.b],_=[v.c,v.d],A=t6(m),k=r6(m,_),D=t6(fY(_,m,-k))||0;m[0]*_[1]<_[0]*m[1]&&(m[0]*=-1,m[1]*=-1,A*=-1,k*=-1),this.rotate=(A?Math.atan2(m[1],m[0]):Math.atan2(-_[0],_[1]))*Pe,this.translate=[v.e,v.f],this.scale=[A,D],this.skew=D?Math.atan2(k,D)*Pe:0}e6.prototype.toString=function(){return"translate("+this.translate+")rotate("+this.rotate+")skewX("+this.skew+")scale("+this.scale+")"};function r6(v,m){return v[0]*m[0]+v[1]*m[1]}function t6(v){var m=Math.sqrt(r6(v,v));return m&&(v[0]/=m,v[1]/=m),m}function fY(v,m,_){return v[0]+=_*m[0],v[1]+=_*m[1],v}var cY={a:1,b:0,c:0,d:1,e:0,f:0};e.interpolateTransform=a6;function l0(v){return v.length?v.pop()+",":""}function vY(v,m,_,A){if(v[0]!==m[0]||v[1]!==m[1]){var k=_.push("translate(",null,",",null,")");A.push({i:k-4,x:gl(v[0],m[0])},{i:k-2,x:gl(v[1],m[1])})}else(m[0]||m[1])&&_.push("translate("+m+")")}function dY(v,m,_,A){v!==m?(v-m>180?m+=360:m-v>180&&(v+=360),A.push({i:_.push(l0(_)+"rotate(",null,")")-2,x:gl(v,m)})):m&&_.push(l0(_)+"rotate("+m+")")}function hY(v,m,_,A){v!==m?A.push({i:_.push(l0(_)+"skewX(",null,")")-2,x:gl(v,m)}):m&&_.push(l0(_)+"skewX("+m+")")}function pY(v,m,_,A){if(v[0]!==m[0]||v[1]!==m[1]){var k=_.push(l0(_)+"scale(",null,",",null,")");A.push({i:k-4,x:gl(v[0],m[0])},{i:k-2,x:gl(v[1],m[1])})}else(m[0]!==1||m[1]!==1)&&_.push(l0(_)+"scale("+m+")")}function a6(v,m){var _=[],A=[];return v=e.transform(v),m=e.transform(m),vY(v.translate,m.translate,_,A),dY(v.rotate,m.rotate,_,A),hY(v.skew,m.skew,_,A),pY(v.scale,m.scale,_,A),v=m=null,function(k){for(var D=-1,R=A.length,E;++D0?D=ue:(_.c=null,_.t=NaN,_=null,m.end({type:"end",alpha:D=0})):ue>0&&(m.start({type:"start",alpha:D=ue}),_=dv(v.tick)),v):D},v.start=function(){var ue,Ye=fe.length,lr=be.length,ur=A[0],sr=A[1],gr,yr;for(ue=0;ue=0;)D.push(X=Y[F]),X.parent=E,X.depth=E.depth+1;_&&(E.value=0),E.children=Y}else _&&(E.value=+_.call(A,E,E.depth)||0),delete E.children;return Vi(k,function($){var K,fe;v&&(K=$.children)&&K.sort(v),_&&(fe=$.parent)&&(fe.value+=$.value)}),R}return A.sort=function(k){return arguments.length?(v=k,A):v},A.children=function(k){return arguments.length?(m=k,A):m},A.value=function(k){return arguments.length?(_=k,A):_},A.revalue=function(k){return _&&(Uu(k,function(D){D.children&&(D.value=0)}),Vi(k,function(D){var R;D.children||(D.value=+_.call(A,D,D.depth)||0),(R=D.parent)&&(R.value+=D.value)})),k},A};function Yu(v,m){return e.rebind(v,m,"sort","children","value"),v.nodes=v,v.links=LY,v}function Uu(v,m){for(var _=[v];(v=_.pop())!=null;)if(m(v),(k=v.children)&&(A=k.length))for(var A,k;--A>=0;)_.push(k[A])}function Vi(v,m){for(var _=[v],A=[];(v=_.pop())!=null;)if(A.push(v),(R=v.children)&&(D=R.length))for(var k=-1,D,R;++kk&&(k=E),A.push(E)}for(R=0;R<_;++R)F[R]=(k-A[R])/2;return F},wiggle:function(v){var m=v.length,_=v[0],A=_.length,k,D,R,E,F,Y,X,$,K,fe=[];for(fe[0]=$=K=0,D=1;DA&&(_=m,A=k);return _}function NY(v){return v.reduce(IY,0)}function IY(v,m){return v+m[1]}e.layout.histogram=function(){var v=!0,m=Number,_=HY,A=BY;function k(D,K){for(var E=[],F=D.map(m,this),Y=_.call(this,F,K),X=A.call(this,Y,F,K),$,K=-1,fe=F.length,be=X.length-1,ee=v?1:1/fe,ae;++K0)for(K=-1;++K=Y[0]&&ae<=Y[1]&&($=E[e.bisect(X,ae,1,be)-1],$.y+=ee,$.push(D[K]));return E}return k.value=function(D){return arguments.length?(m=D,k):m},k.range=function(D){return arguments.length?(_=Mr(D),k):_},k.bins=function(D){return arguments.length?(A=typeof D=="number"?function(R){return o6(R,D)}:Mr(D),k):A},k.frequency=function(D){return arguments.length?(v=!!D,k):v},k};function BY(v,m){return o6(v,Math.ceil(Math.log(m.length)/Math.LN2+1))}function o6(v,m){for(var _=-1,A=+v[0],k=(v[1]-A)/m,D=[];++_<=m;)D[_]=k*_+A;return D}function HY(v){return[e.min(v),e.max(v)]}e.layout.pack=function(){var v=e.layout.hierarchy().sort(OY),m=0,_=[1,1],A;function k(D,R){var E=v.call(this,D,R),F=E[0],Y=_[0],X=_[1],$=A==null?Math.sqrt:typeof A=="function"?A:function(){return A};if(F.x=F.y=0,Vi(F,function(fe){fe.r=+$(fe.value)}),Vi(F,f6),m){var K=m*(A?1:Math.max(2*F.r/Y,2*F.r/X))/2;Vi(F,function(fe){fe.r+=K}),Vi(F,f6),Vi(F,function(fe){fe.r-=K})}return c6(F,Y/2,X/2,A?1:1/Math.max(2*F.r/Y,2*F.r/X)),E}return k.size=function(D){return arguments.length?(_=D,k):_},k.radius=function(D){return arguments.length?(A=D==null||typeof D=="function"?D:+D,k):A},k.padding=function(D){return arguments.length?(m=+D,k):m},Yu(k,v)};function OY(v,m){return v.value-m.value}function Dp(v,m){var _=v._pack_next;v._pack_next=m,m._pack_prev=v,m._pack_next=_,_._pack_prev=m}function s6(v,m){v._pack_next=m,m._pack_prev=v}function u6(v,m){var _=m.x-v.x,A=m.y-v.y,k=v.r+m.r;return .999*k*k>_*_+A*A}function f6(v){if(!(m=v.children)||!(K=m.length))return;var m,_=1/0,A=-1/0,k=1/0,D=-1/0,R,E,F,Y,X,$,K;function fe(ue){_=Math.min(ue.x-ue.r,_),A=Math.max(ue.x+ue.r,A),k=Math.min(ue.y-ue.r,k),D=Math.max(ue.y+ue.r,D)}if(m.forEach(YY),R=m[0],R.x=-R.r,R.y=0,fe(R),K>1&&(E=m[1],E.x=E.r,E.y=0,fe(E),K>2))for(F=m[2],v6(R,E,F),fe(F),Dp(R,F),R._pack_prev=F,Dp(F,E),E=R._pack_next,Y=3;Yae.x&&(ae=Ye),Ye.depth>oe.depth&&(oe=Ye)});var ye=m(ee,ae)/2-ee.x,xe=_[0]/(ae.x+m(ae,ee)/2+ye),ue=_[1]/(oe.depth||1);Uu(fe,function(Ye){Ye.x=(Ye.x+ye)*xe,Ye.y=Ye.depth*ue})}return K}function D(X){for(var $={A:null,children:[X]},K=[$],fe;(fe=K.pop())!=null;)for(var be=fe.children,ee,ae=0,oe=be.length;ae0&&(GY(XY(ee,X,K),X,Ye),oe+=Ye,ye+=Ye),xe+=ee.m,oe+=fe.m,ue+=ae.m,ye+=be.m;ee&&!qp(be)&&(be.t=ee,be.m+=xe-ye),fe&&!Lp(ae)&&(ae.t=fe,ae.m+=oe-ue,K=X)}return K}function Y(X){X.x*=_[0],X.y=X.depth*_[1]}return k.separation=function(X){return arguments.length?(m=X,k):m},k.size=function(X){return arguments.length?(A=(_=X)==null?Y:null,k):A?null:_},k.nodeSize=function(X){return arguments.length?(A=(_=X)==null?null:Y,k):A?_:null},Yu(k,v)};function d6(v,m){return v.parent==m.parent?1:2}function Lp(v){var m=v.children;return m.length?m[0]:v.t}function qp(v){var m=v.children,_;return(_=m.length)?m[_-1]:v.t}function GY(v,m,_){var A=_/(m.i-v.i);m.c-=A,m.s+=_,v.c+=A,m.z+=_,m.m+=_}function VY(v){for(var m=0,_=0,A=v.children,k=A.length,D;--k>=0;)D=A[k],D.z+=m,D.m+=m,m+=D.s+(_+=D.c)}function XY(v,m,_){return v.a.parent===m.parent?v.a:_}e.layout.cluster=function(){var v=e.layout.hierarchy().sort(null).value(null),m=d6,_=[1,1],A=!1;function k(D,R){var E=v.call(this,D,R),F=E[0],Y,X=0;Vi(F,function(ee){var ae=ee.children;ae&&ae.length?(ee.x=ZY(ae),ee.y=WY(ae)):(ee.x=Y?X+=m(ee,Y):0,ee.y=0,Y=ee)});var $=h6(F),K=p6(F),fe=$.x-m($,K)/2,be=K.x+m(K,$)/2;return Vi(F,A?function(ee){ee.x=(ee.x-F.x)*_[0],ee.y=(F.y-ee.y)*_[1]}:function(ee){ee.x=(ee.x-fe)/(be-fe)*_[0],ee.y=(1-(F.y?ee.y/F.y:1))*_[1]}),E}return k.separation=function(D){return arguments.length?(m=D,k):m},k.size=function(D){return arguments.length?(A=(_=D)==null,k):A?null:_},k.nodeSize=function(D){return arguments.length?(A=(_=D)!=null,k):A?_:null},Yu(k,v)};function WY(v){return 1+e.max(v,function(m){return m.y})}function ZY(v){return v.reduce(function(m,_){return m+_.x},0)/v.length}function h6(v){var m=v.children;return m&&m.length?h6(m[0]):v}function p6(v){var m=v.children,_;return m&&(_=m.length)?p6(m[_-1]):v}e.layout.treemap=function(){var v=e.layout.hierarchy(),m=Math.round,_=[1,1],A=null,k=Ep,D=!1,R,E="squarify",F=.5*(1+Math.sqrt(5));function Y(ee,ae){for(var oe=-1,ye=ee.length,xe,ue;++oe0;)ye.push(ue=xe[sr-1]),ye.area+=ue.area,E!=="squarify"||(lr=K(ye,ur))<=Ye?(xe.pop(),Ye=lr):(ye.area-=ye.pop().area,fe(ye,ur,oe,!1),ur=Math.min(oe.dx,oe.dy),ye.length=ye.area=0,Ye=1/0);ye.length&&(fe(ye,ur,oe,!0),ye.length=ye.area=0),ae.forEach(X)}}function $(ee){var ae=ee.children;if(ae&&ae.length){var oe=k(ee),ye=ae.slice(),xe,ue=[];for(Y(ye,oe.dx*oe.dy/ee.value),ue.area=0;xe=ye.pop();)ue.push(xe),ue.area+=xe.area,xe.z!=null&&(fe(ue,xe.z?oe.dx:oe.dy,oe,!ye.length),ue.length=ue.area=0);ae.forEach($)}}function K(ee,ae){for(var oe=ee.area,ye,xe=0,ue=1/0,Ye=-1,lr=ee.length;++Yexe&&(xe=ye));return oe*=oe,ae*=ae,oe?Math.max(ae*xe*F/oe,oe/(ae*ue*F)):1/0}function fe(ee,ae,oe,ye){var xe=-1,ue=ee.length,Ye=oe.x,lr=oe.y,ur=ae?m(ee.area/ae):0,sr;if(ae==oe.dx){for((ye||ur>oe.dy)&&(ur=oe.dy);++xeoe.dx)&&(ur=oe.dx);++xe1);return v+m*A*Math.sqrt(-2*Math.log(D)/D)}},logNormal:function(){var v=e.random.normal.apply(e,arguments);return function(){return Math.exp(v())}},bates:function(v){var m=e.random.irwinHall(v);return function(){return m()/v}},irwinHall:function(v){return function(){for(var m=0,_=0;_2?KY:JY,Y=A?gY:mY;return k=F(v,m,Y,_),D=F(m,v,Y,Bo),E}function E(F){return k(F)}return E.invert=function(F){return D(F)},E.domain=function(F){return arguments.length?(v=F.map(Number),R()):v},E.range=function(F){return arguments.length?(m=F,R()):m},E.rangeRound=function(F){return E.range(F).interpolate(Qx)},E.clamp=function(F){return arguments.length?(A=F,R()):A},E.interpolate=function(F){return arguments.length?(_=F,R()):_},E.ticks=function(F){return zp(v,F)},E.tickFormat=function(F,Y){return d3_scale_linearTickFormat(v,F,Y)},E.nice=function(F){return x6(v,F),R()},E.copy=function(){return y6(v,m,_,A)},R()}function b6(v,m){return e.rebind(v,m,"range","rangeRound","interpolate","clamp")}function x6(v,m){return Pp(v,g6(Rp(v,m)[2])),Pp(v,g6(Rp(v,m)[2])),v}function Rp(v,m){m==null&&(m=10);var _=xv(v),A=_[1]-_[0],k=Math.pow(10,Math.floor(Math.log(A/m)/Math.LN10)),D=m/A*k;return D<=.15?k*=10:D<=.35?k*=5:D<=.75&&(k*=2),_[0]=Math.ceil(_[0]/k)*k,_[1]=Math.floor(_[1]/k)*k+k*.5,_[2]=k,_}function zp(v,m){return e.range.apply(e,Rp(v,m))}var jY={s:1,g:1,p:1,r:1,e:1};function _6(v){return-Math.floor(Math.log(v)/Math.LN10+.01)}function hge(v,m){var _=_6(m[2]);return v in jY?Math.abs(_-_6(Math.max(x(m[0]),x(m[1]))))+ +(v!=="e"):_-(v==="%")*2}e.scale.log=function(){return w6(e.scale.linear().domain([0,1]),10,!0,[1,10])};function w6(v,m,_,A){function k(E){return(_?Math.log(E<0?0:E):-Math.log(E>0?0:-E))/Math.log(m)}function D(E){return _?Math.pow(m,E):-Math.pow(m,-E)}function R(E){return v(k(E))}return R.invert=function(E){return D(v.invert(E))},R.domain=function(E){return arguments.length?(_=E[0]>=0,v.domain((A=E.map(Number)).map(k)),R):A},R.base=function(E){return arguments.length?(m=+E,v.domain(A.map(k)),R):m},R.nice=function(){var E=Pp(A.map(k),_?Math:QY);return v.domain(E),A=E.map(D),R},R.ticks=function(){var E=xv(A),F=[],Y=E[0],X=E[1],$=Math.floor(k(Y)),K=Math.ceil(k(X)),fe=m%1?2:m;if(isFinite(K-$)){if(_){for(;$0;be--)F.push(D($)*be);for($=0;F[$]X;K--);F=F.slice($,K)}return F},R.copy=function(){return w6(v.copy(),m,_,A)},b6(R,v)}var QY={floor:function(v){return-Math.ceil(-v)},ceil:function(v){return-Math.floor(-v)}};e.scale.pow=function(){return M6(e.scale.linear(),1,[0,1])};function M6(v,m,_){var A=wv(m),k=wv(1/m);function D(R){return v(A(R))}return D.invert=function(R){return k(v.invert(R))},D.domain=function(R){return arguments.length?(v.domain((_=R.map(Number)).map(A)),D):_},D.ticks=function(R){return zp(_,R)},D.tickFormat=function(R,E){return d3_scale_linearTickFormat(_,R,E)},D.nice=function(R){return D.domain(x6(_,R))},D.exponent=function(R){return arguments.length?(A=wv(m=R),k=wv(1/m),v.domain(_.map(A)),D):m},D.copy=function(){return M6(v.copy(),m,_)},b6(D,v)}function wv(v){return function(m){return m<0?-Math.pow(-m,v):Math.pow(m,v)}}e.scale.sqrt=function(){return e.scale.pow().exponent(.5)},e.scale.ordinal=function(){return T6([],{t:"range",a:[[]]})};function T6(v,m){var _,A,k;function D(E){return A[((_.get(E)||(m.t==="range"?_.set(E,v.push(E)):NaN))-1)%A.length]}function R(E,F){return e.range(v.length).map(function(Y){return E+F*Y})}return D.domain=function(E){if(!arguments.length)return v;v=[],_=new b;for(var F=-1,Y=E.length,X;++F0?_[D-1]:v[0],D<_.length?_[D]:v[v.length-1]]},k.copy=function(){return A6(v,m)},A()}e.scale.quantize=function(){return k6(0,1,[0,1])};function k6(v,m,_){var A,k;function D(E){return _[Math.max(0,Math.min(k,Math.floor(A*(E-v))))]}function R(){return A=_.length/(m-v),k=_.length-1,D}return D.domain=function(E){return arguments.length?(v=+E[0],m=+E[E.length-1],R()):[v,m]},D.range=function(E){return arguments.length?(_=E,R()):_},D.invertExtent=function(E){return E=_.indexOf(E),E=E<0?NaN:E/A+v,[E,E+1/A]},D.copy=function(){return k6(v,m,_)},R()}e.scale.threshold=function(){return C6([.5],[0,1])};function C6(v,m){function _(A){if(A<=A)return m[e.bisect(v,A)]}return _.domain=function(A){return arguments.length?(v=A,_):v},_.range=function(A){return arguments.length?(m=A,_):m},_.invertExtent=function(A){return A=m.indexOf(A),[v[A-1],v[A]]},_.copy=function(){return C6(v,m)},_}e.scale.identity=function(){return S6([0,1])};function S6(v){function m(_){return+_}return m.invert=m,m.domain=m.range=function(_){return arguments.length?(v=_.map(m),m):v},m.ticks=function(_){return zp(v,_)},m.tickFormat=function(_,A){return d3_scale_linearTickFormat(v,_,A)},m.copy=function(){return S6(v)},m}e.svg={};function nU(){return 0}e.svg.arc=function(){var v=iU,m=lU,_=nU,A=Mv,k=D6,D=L6,R=oU;function E(){var Y=Math.max(0,+v.apply(this,arguments)),X=Math.max(0,+m.apply(this,arguments)),$=k.apply(this,arguments)-te,K=D.apply(this,arguments)-te,fe=Math.abs(K-$),be=$>K?0:1;if(X=pr)return F(X,be)+(Y?F(Y,1-be):"")+"Z";var ee,ae,oe,ye,xe=0,ue=0,Ye,lr,ur,sr,gr,yr,Rr,wr,Lr=[];if((ye=(+R.apply(this,arguments)||0)/2)&&(oe=A===Mv?Math.sqrt(Y*Y+X*X):+A.apply(this,arguments),be||(ue*=-1),X&&(ue=kt(oe/X*Math.sin(ye))),Y&&(xe=kt(oe/Y*Math.sin(ye)))),X){Ye=X*Math.cos($+ue),lr=X*Math.sin($+ue),ur=X*Math.cos(K-ue),sr=X*Math.sin(K-ue);var et=Math.abs(K-$-2*ue)<=dr?0:1;if(ue&&Tv(Ye,lr,ur,sr)===be^et){var Zt=($+K)/2;Ye=X*Math.cos(Zt),lr=X*Math.sin(Zt),ur=sr=null}}else Ye=lr=0;if(Y){gr=Y*Math.cos(K-xe),yr=Y*Math.sin(K-xe),Rr=Y*Math.cos($+xe),wr=Y*Math.sin($+xe);var it=Math.abs($-K+2*xe)<=dr?0:1;if(xe&&Tv(gr,yr,Rr,wr)===1-be^it){var ar=($+K)/2;gr=Y*Math.cos(ar),yr=Y*Math.sin(ar),Rr=wr=null}}else gr=yr=0;if(fe>Ee&&(ee=Math.min(Math.abs(X-Y)/2,+_.apply(this,arguments)))>.001){ae=Y0?0:1}function Av(v,m,_,A,k){var D=v[0]-m[0],R=v[1]-m[1],E=(k?A:-A)/Math.sqrt(D*D+R*R),F=E*R,Y=-E*D,X=v[0]+F,$=v[1]+Y,K=m[0]+F,fe=m[1]+Y,be=(X+K)/2,ee=($+fe)/2,ae=K-X,oe=fe-$,ye=ae*ae+oe*oe,xe=_-A,ue=X*fe-K*$,Ye=(oe<0?-1:1)*Math.sqrt(Math.max(0,xe*xe*ye-ue*ue)),lr=(ue*oe-ae*Ye)/ye,ur=(-ue*ae-oe*Ye)/ye,sr=(ue*oe+ae*Ye)/ye,gr=(-ue*ae+oe*Ye)/ye,yr=lr-be,Rr=ur-ee,wr=sr-be,Lr=gr-ee;return yr*yr+Rr*Rr>wr*wr+Lr*Lr&&(lr=sr,ur=gr),[[lr-F,ur-Y],[lr*_/xe,ur*_/xe]]}function q6(){return!0}function E6(v){var m=r0,_=Fu,A=q6,k=gi,D=k.key,R=.7;function E(F){var Y=[],X=[],$=-1,K=F.length,fe,be=Mr(m),ee=Mr(_);function ae(){Y.push("M",k(v(X),R))}for(;++$1?v.join("L"):v+"Z"}function P6(v){return v.join("L")+"Z"}function sU(v){for(var m=0,_=v.length,A=v[0],k=[A[0],",",A[1]];++m<_;)k.push("H",(A[0]+(A=v[m])[0])/2,"V",A[1]);return _>1&&k.push("H",A[0]),k.join("")}function Np(v){for(var m=0,_=v.length,A=v[0],k=[A[0],",",A[1]];++m<_;)k.push("V",(A=v[m])[1],"H",A[0]);return k.join("")}function Ip(v){for(var m=0,_=v.length,A=v[0],k=[A[0],",",A[1]];++m<_;)k.push("H",(A=v[m])[0],"V",A[1]);return k.join("")}function uU(v,m){return v.length<4?gi(v):v[1]+kv(v.slice(1,-1),Bp(v,m))}function fU(v,m){return v.length<3?P6(v):v[0]+kv((v.push(v[0]),v),Bp([v[v.length-2]].concat(v,[v[1]]),m))}function cU(v,m){return v.length<3?gi(v):v[0]+kv(v,Bp(v,m))}function kv(v,m){if(m.length<1||v.length!=m.length&&v.length!=m.length+2)return gi(v);var _=v.length!=m.length,A="",k=v[0],D=v[1],R=m[0],E=R,F=1;if(_&&(A+="Q"+(D[0]-R[0]*2/3)+","+(D[1]-R[1]*2/3)+","+D[0]+","+D[1],k=v[1],F=2),m.length>1){E=m[1],D=v[F],F++,A+="C"+(k[0]+R[0])+","+(k[1]+R[1])+","+(D[0]-E[0])+","+(D[1]-E[1])+","+D[0]+","+D[1];for(var Y=2;Y9&&(D=_*3/Math.sqrt(D),R[E]=D*A,R[E+1]=D*k));for(E=-1;++E<=F;)D=(v[Math.min(F,E+1)][0]-v[Math.max(0,E-1)][0])/(6*(1+R[E]*R[E])),m.push([D||0,R[E]*D||0]);return m}function gU(v){return v.length<3?gi(v):v[0]+kv(v,mU(v))}e.svg.line.radial=function(){var v=E6(N6);return v.radius=v.x,delete v.x,v.angle=v.y,delete v.y,v};function N6(v){for(var m,_=-1,A=v.length,k,D;++_dr)+",1 "+$}function Y(X,$,K,fe){return"Q 0,0 "+fe}return D.radius=function(X){return arguments.length?(_=Mr(X),D):_},D.source=function(X){return arguments.length?(v=Mr(X),D):v},D.target=function(X){return arguments.length?(m=Mr(X),D):m},D.startAngle=function(X){return arguments.length?(A=Mr(X),D):A},D.endAngle=function(X){return arguments.length?(k=Mr(X),D):k},D};function yU(v){return v.radius}e.svg.diagonal=function(){var v=B6,m=H6,_=O6;function A(k,D){var R=v.call(this,k,D),E=m.call(this,k,D),F=(R.y+E.y)/2,Y=[R,{x:R.x,y:F},{x:E.x,y:F},E];return Y=Y.map(_),"M"+Y[0]+"C"+Y[1]+" "+Y[2]+" "+Y[3]}return A.source=function(k){return arguments.length?(v=Mr(k),A):v},A.target=function(k){return arguments.length?(m=Mr(k),A):m},A.projection=function(k){return arguments.length?(_=k,A):_},A};function O6(v){return[v.x,v.y]}e.svg.diagonal.radial=function(){var v=e.svg.diagonal(),m=O6,_=v.projection;return v.projection=function(A){return arguments.length?_(bU(m=A)):m},v};function bU(v){return function(){var m=v.apply(this,arguments),_=m[0],A=m[1]-te;return[_*Math.cos(A),_*Math.sin(A)]}}e.svg.symbol=function(){var v=_U,m=xU;function _(A,k){return(U6.get(v.call(this,A,k))||Y6)(m.call(this,A,k))}return _.type=function(A){return arguments.length?(v=Mr(A),_):v},_.size=function(A){return arguments.length?(m=Mr(A),_):m},_};function xU(){return 64}function _U(){return"circle"}function Y6(v){var m=Math.sqrt(v/dr);return"M0,"+m+"A"+m+","+m+" 0 1,1 0,"+-m+"A"+m+","+m+" 0 1,1 0,"+m+"Z"}var U6=e.map({circle:Y6,cross:function(v){var m=Math.sqrt(v/5)/2;return"M"+-3*m+","+-m+"H"+-m+"V"+-3*m+"H"+m+"V"+-m+"H"+3*m+"V"+m+"H"+m+"V"+3*m+"H"+-m+"V"+m+"H"+-3*m+"Z"},diamond:function(v){var m=Math.sqrt(v/(2*G6)),_=m*G6;return"M0,"+-m+"L"+_+",0 0,"+m+" "+-_+",0Z"},square:function(v){var m=Math.sqrt(v)/2;return"M"+-m+","+-m+"L"+m+","+-m+" "+m+","+m+" "+-m+","+m+"Z"},"triangle-down":function(v){var m=Math.sqrt(v/Cv),_=m*Cv/2;return"M0,"+_+"L"+m+","+-_+" "+-m+","+-_+"Z"},"triangle-up":function(v){var m=Math.sqrt(v/Cv),_=m*Cv/2;return"M0,"+-_+"L"+m+","+_+" "+-m+","+_+"Z"}});e.svg.symbolTypes=U6.keys();var Cv=Math.sqrt(3),G6=Math.tan(30*he);de.transition=function(v){for(var m=Ho||++X6,_=Up(v),A=[],k,D,R=Dv||{time:Date.now(),ease:QO,delay:0,duration:250},E=-1,F=this.length;++E0;)$[--ye].call(v,oe);if(ae>=1)return R.event&&R.event.end.call(v,v.__data__,m),--D.count?delete D[A]:delete v[_],1}R||(E=k.time,F=dv(K,0,E),R=D[A]={tween:new b,time:E,timer:F,delay:k.delay,duration:k.duration,ease:k.ease,index:m},k=null,++D.count)}e.svg.axis=function(){var v=e.scale.linear(),m=W6,_=6,A=6,k=3,D=[10],R=null,E;function F(Y){Y.each(function(){var X=e.select(this),$=this.__chart__||v,K=this.__chart__=v.copy(),fe=R==null?K.ticks?K.ticks.apply(K,D):K.domain():R,be=E==null?K.tickFormat?K.tickFormat.apply(K,D):I:E,ee=X.selectAll(".tick").data(fe,K),ae=ee.enter().insert("g",".domain").attr("class","tick").style("opacity",Ee),oe=e.transition(ee.exit()).style("opacity",Ee).remove(),ye=e.transition(ee.order()).style("opacity",1),xe=Math.max(_,0)+k,ue,Ye=_v(K),lr=X.selectAll(".domain").data([0]),ur=(lr.enter().append("path").attr("class","domain"),e.transition(lr));ae.append("line"),ae.append("text");var sr=ae.select("line"),gr=ye.select("line"),yr=ee.select("text").text(be),Rr=ae.select("text"),wr=ye.select("text"),Lr=m==="top"||m==="left"?-1:1,et,Zt,it,ar;if(m==="bottom"||m==="top"?(ue=TU,et="x",it="y",Zt="x2",ar="y2",yr.attr("dy",Lr<0?"0em":".71em").style("text-anchor","middle"),ur.attr("d","M"+Ye[0]+","+Lr*A+"V0H"+Ye[1]+"V"+Lr*A)):(ue=AU,et="y",it="x",Zt="y2",ar="x2",yr.attr("dy",".32em").style("text-anchor",Lr<0?"end":"start"),ur.attr("d","M"+Lr*A+","+Ye[0]+"H0V"+Ye[1]+"H"+Lr*A)),sr.attr(ar,Lr*_),Rr.attr(it,Lr*xe),gr.attr(Zt,0).attr(ar,Lr*_),wr.attr(et,0).attr(it,Lr*xe),K.rangeBand){var zr=K,Fr=zr.rangeBand()/2;$=K=function(rt){return zr(rt)+Fr}}else $.rangeBand?$=K:oe.call(ue,K,$);ae.call(ue,$,K),ye.call(ue,K,K)})}return F.scale=function(Y){return arguments.length?(v=Y,F):v},F.orient=function(Y){return arguments.length?(m=Y in MU?Y+"":W6,F):m},F.ticks=function(){return arguments.length?(D=t(arguments),F):D},F.tickValues=function(Y){return arguments.length?(R=Y,F):R},F.tickFormat=function(Y){return arguments.length?(E=Y,F):E},F.tickSize=function(Y){var X=arguments.length;return X?(_=+Y,A=+arguments[X-1],F):_},F.innerTickSize=function(Y){return arguments.length?(_=+Y,F):_},F.outerTickSize=function(Y){return arguments.length?(A=+Y,F):A},F.tickPadding=function(Y){return arguments.length?(k=+Y,F):k},F.tickSubdivide=function(){return arguments.length&&F},F};var W6="bottom",MU={top:1,right:1,bottom:1,left:1};function TU(v,m,_){v.attr("transform",function(A){var k=m(A);return"translate("+(isFinite(k)?k:_(A))+",0)"})}function AU(v,m,_){v.attr("transform",function(A){var k=m(A);return"translate(0,"+(isFinite(k)?k:_(A))+")"})}e.svg.brush=function(){var v=pe(X,"brushstart","brush","brushend"),m=null,_=null,A=[0,0],k=[0,0],D,R,E=!0,F=!0,Y=Gp[0];function X(ee){ee.each(function(){var ae=e.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",be).on("touchstart.brush",be),oe=ae.selectAll(".background").data([0]);oe.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),ae.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var ye=ae.selectAll(".resize").data(Y,I);ye.exit().remove(),ye.enter().append("g").attr("class",function(lr){return"resize "+lr}).style("cursor",function(lr){return kU[lr]}).append("rect").attr("x",function(lr){return/[ew]$/.test(lr)?-3:null}).attr("y",function(lr){return/^[ns]/.test(lr)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),ye.style("display",X.empty()?"none":null);var xe=e.transition(ae),ue=e.transition(oe),Ye;m&&(Ye=_v(m),ue.attr("x",Ye[0]).attr("width",Ye[1]-Ye[0]),K(xe)),_&&(Ye=_v(_),ue.attr("y",Ye[0]).attr("height",Ye[1]-Ye[0]),fe(xe)),$(xe)})}X.event=function(ee){ee.each(function(){var ae=v.of(this,arguments),oe={x:A,y:k,i:D,j:R},ye=this.__chart__||oe;this.__chart__=oe,Ho?e.select(this).transition().each("start.brush",function(){D=ye.i,R=ye.j,A=ye.x,k=ye.y,ae({type:"brushstart"})}).tween("brush:brush",function(){var xe=bv(A,oe.x),ue=bv(k,oe.y);return D=R=null,function(Ye){A=oe.x=xe(Ye),k=oe.y=ue(Ye),ae({type:"brush",mode:"resize"})}}).each("end.brush",function(){D=oe.i,R=oe.j,ae({type:"brush",mode:"resize"}),ae({type:"brushend"})}):(ae({type:"brushstart"}),ae({type:"brush",mode:"resize"}),ae({type:"brushend"}))})};function $(ee){ee.selectAll(".resize").attr("transform",function(ae){return"translate("+A[+/e$/.test(ae)]+","+k[+/^s/.test(ae)]+")"})}function K(ee){ee.select(".extent").attr("x",A[0]),ee.selectAll(".extent,.n>rect,.s>rect").attr("width",A[1]-A[0])}function fe(ee){ee.select(".extent").attr("y",k[0]),ee.selectAll(".extent,.e>rect,.w>rect").attr("height",k[1]-k[0])}function be(){var ee=this,ae=e.select(e.event.target),oe=v.of(ee,arguments),ye=e.select(ee),xe=ae.datum(),ue=!/^(n|s)$/.test(xe)&&m,Ye=!/^(e|w)$/.test(xe)&&_,lr=ae.classed("extent"),ur=_r(ee),sr,gr=e.mouse(ee),yr,Rr=e.select(i(ee)).on("keydown.brush",et).on("keyup.brush",Zt);if(e.event.changedTouches?Rr.on("touchmove.brush",it).on("touchend.brush",zr):Rr.on("mousemove.brush",it).on("mouseup.brush",zr),ye.interrupt().selectAll("*").interrupt(),lr)gr[0]=A[0]-gr[0],gr[1]=k[0]-gr[1];else if(xe){var wr=+/w$/.test(xe),Lr=+/^n/.test(xe);yr=[A[1-wr]-gr[0],k[1-Lr]-gr[1]],gr[0]=A[wr],gr[1]=k[Lr]}else e.event.altKey&&(sr=gr.slice());ye.style("pointer-events","none").selectAll(".resize").style("display",null),e.select("body").style("cursor",ae.style("cursor")),oe({type:"brushstart"}),it();function et(){e.event.keyCode==32&&(lr||(sr=null,gr[0]-=A[1],gr[1]-=k[1],lr=2),j())}function Zt(){e.event.keyCode==32&&lr==2&&(gr[0]+=A[1],gr[1]+=k[1],lr=0,j())}function it(){var Fr=e.mouse(ee),rt=!1;yr&&(Fr[0]+=yr[0],Fr[1]+=yr[1]),lr||(e.event.altKey?(sr||(sr=[(A[0]+A[1])/2,(k[0]+k[1])/2]),gr[0]=A[+(Fr[0]{(function(e,r){typeof zv=="object"&&typeof n_!="undefined"?r(zv):(e=e||self,r(e.d3=e.d3||{}))})(zv,function(e){"use strict";var r=new Date,t=new Date;function a(re,ge,Ge,cr){function mr(ne){return re(ne=arguments.length===0?new Date:new Date(+ne)),ne}return mr.floor=function(ne){return re(ne=new Date(+ne)),ne},mr.ceil=function(ne){return re(ne=new Date(ne-1)),ge(ne,1),re(ne),ne},mr.round=function(ne){var me=mr(ne),ze=mr.ceil(ne);return ne-me0))return Ve;do Ve.push(Ne=new Date(+ne)),ge(ne,ze),re(ne);while(Ne=me)for(;re(me),!ne(me);)me.setTime(me-1)},function(me,ze){if(me>=me)if(ze<0)for(;++ze<=0;)for(;ge(me,-1),!ne(me););else for(;--ze>=0;)for(;ge(me,1),!ne(me););})},Ge&&(mr.count=function(ne,me){return r.setTime(+ne),t.setTime(+me),re(r),re(t),Math.floor(Ge(r,t))},mr.every=function(ne){return ne=Math.floor(ne),!isFinite(ne)||!(ne>0)?null:ne>1?mr.filter(cr?function(me){return cr(me)%ne===0}:function(me){return mr.count(0,me)%ne===0}):mr}),mr}var n=a(function(){},function(re,ge){re.setTime(+re+ge)},function(re,ge){return ge-re});n.every=function(re){return re=Math.floor(re),!isFinite(re)||!(re>0)?null:re>1?a(function(ge){ge.setTime(Math.floor(ge/re)*re)},function(ge,Ge){ge.setTime(+ge+Ge*re)},function(ge,Ge){return(Ge-ge)/re}):n};var i=n.range,l=1e3,o=6e4,s=36e5,u=864e5,f=6048e5,c=a(function(re){re.setTime(re-re.getMilliseconds())},function(re,ge){re.setTime(+re+ge*l)},function(re,ge){return(ge-re)/l},function(re){return re.getUTCSeconds()}),d=c.range,h=a(function(re){re.setTime(re-re.getMilliseconds()-re.getSeconds()*l)},function(re,ge){re.setTime(+re+ge*o)},function(re,ge){return(ge-re)/o},function(re){return re.getMinutes()}),p=h.range,g=a(function(re){re.setTime(re-re.getMilliseconds()-re.getSeconds()*l-re.getMinutes()*o)},function(re,ge){re.setTime(+re+ge*s)},function(re,ge){return(ge-re)/s},function(re){return re.getHours()}),y=g.range,x=a(function(re){re.setHours(0,0,0,0)},function(re,ge){re.setDate(re.getDate()+ge)},function(re,ge){return(ge-re-(ge.getTimezoneOffset()-re.getTimezoneOffset())*o)/u},function(re){return re.getDate()-1}),w=x.range;function M(re){return a(function(ge){ge.setDate(ge.getDate()-(ge.getDay()+7-re)%7),ge.setHours(0,0,0,0)},function(ge,Ge){ge.setDate(ge.getDate()+Ge*7)},function(ge,Ge){return(Ge-ge-(Ge.getTimezoneOffset()-ge.getTimezoneOffset())*o)/f})}var b=M(0),T=M(1),S=M(2),C=M(3),L=M(4),q=M(5),P=M(6),z=b.range,N=T.range,H=S.range,B=C.range,I=L.range,V=q.range,O=P.range,U=a(function(re){re.setDate(1),re.setHours(0,0,0,0)},function(re,ge){re.setMonth(re.getMonth()+ge)},function(re,ge){return ge.getMonth()-re.getMonth()+(ge.getFullYear()-re.getFullYear())*12},function(re){return re.getMonth()}),W=U.range,Z=a(function(re){re.setMonth(0,1),re.setHours(0,0,0,0)},function(re,ge){re.setFullYear(re.getFullYear()+ge)},function(re,ge){return ge.getFullYear()-re.getFullYear()},function(re){return re.getFullYear()});Z.every=function(re){return!isFinite(re=Math.floor(re))||!(re>0)?null:a(function(ge){ge.setFullYear(Math.floor(ge.getFullYear()/re)*re),ge.setMonth(0,1),ge.setHours(0,0,0,0)},function(ge,Ge){ge.setFullYear(ge.getFullYear()+Ge*re)})};var G=Z.range,j=a(function(re){re.setUTCSeconds(0,0)},function(re,ge){re.setTime(+re+ge*o)},function(re,ge){return(ge-re)/o},function(re){return re.getUTCMinutes()}),ie=j.range,pe=a(function(re){re.setUTCMinutes(0,0,0)},function(re,ge){re.setTime(+re+ge*s)},function(re,ge){return(ge-re)/s},function(re){return re.getUTCHours()}),ve=pe.range,Q=a(function(re){re.setUTCHours(0,0,0,0)},function(re,ge){re.setUTCDate(re.getUTCDate()+ge)},function(re,ge){return(ge-re)/u},function(re){return re.getUTCDate()-1}),we=Q.range;function le(re){return a(function(ge){ge.setUTCDate(ge.getUTCDate()-(ge.getUTCDay()+7-re)%7),ge.setUTCHours(0,0,0,0)},function(ge,Ge){ge.setUTCDate(ge.getUTCDate()+Ge*7)},function(ge,Ge){return(Ge-ge)/f})}var Se=le(0),ce=le(1),de=le(2),Ce=le(3),Ie=le(4),_e=le(5),De=le(6),Te=Se.range,Ae=ce.range,ke=de.range,Re=Ce.range,Me=Ie.range,Ue=_e.range,$e=De.range,Qe=a(function(re){re.setUTCDate(1),re.setUTCHours(0,0,0,0)},function(re,ge){re.setUTCMonth(re.getUTCMonth()+ge)},function(re,ge){return ge.getUTCMonth()-re.getUTCMonth()+(ge.getUTCFullYear()-re.getUTCFullYear())*12},function(re){return re.getUTCMonth()}),Le=Qe.range,Be=a(function(re){re.setUTCMonth(0,1),re.setUTCHours(0,0,0,0)},function(re,ge){re.setUTCFullYear(re.getUTCFullYear()+ge)},function(re,ge){return ge.getUTCFullYear()-re.getUTCFullYear()},function(re){return re.getUTCFullYear()});Be.every=function(re){return!isFinite(re=Math.floor(re))||!(re>0)?null:a(function(ge){ge.setUTCFullYear(Math.floor(ge.getUTCFullYear()/re)*re),ge.setUTCMonth(0,1),ge.setUTCHours(0,0,0,0)},function(ge,Ge){ge.setUTCFullYear(ge.getUTCFullYear()+Ge*re)})};var tr=Be.range;e.timeDay=x,e.timeDays=w,e.timeFriday=q,e.timeFridays=V,e.timeHour=g,e.timeHours=y,e.timeInterval=a,e.timeMillisecond=n,e.timeMilliseconds=i,e.timeMinute=h,e.timeMinutes=p,e.timeMonday=T,e.timeMondays=N,e.timeMonth=U,e.timeMonths=W,e.timeSaturday=P,e.timeSaturdays=O,e.timeSecond=c,e.timeSeconds=d,e.timeSunday=b,e.timeSundays=z,e.timeThursday=L,e.timeThursdays=I,e.timeTuesday=S,e.timeTuesdays=H,e.timeWednesday=C,e.timeWednesdays=B,e.timeWeek=b,e.timeWeeks=z,e.timeYear=Z,e.timeYears=G,e.utcDay=Q,e.utcDays=we,e.utcFriday=_e,e.utcFridays=Ue,e.utcHour=pe,e.utcHours=ve,e.utcMillisecond=n,e.utcMilliseconds=i,e.utcMinute=j,e.utcMinutes=ie,e.utcMonday=ce,e.utcMondays=Ae,e.utcMonth=Qe,e.utcMonths=Le,e.utcSaturday=De,e.utcSaturdays=$e,e.utcSecond=c,e.utcSeconds=d,e.utcSunday=Se,e.utcSundays=Te,e.utcThursday=Ie,e.utcThursdays=Me,e.utcTuesday=de,e.utcTuesdays=ke,e.utcWednesday=Ce,e.utcWednesdays=Re,e.utcWeek=Se,e.utcWeeks=Te,e.utcYear=Be,e.utcYears=tr,Object.defineProperty(e,"__esModule",{value:!0})})});var s0=J((Fv,i_)=>{(function(e,r){typeof Fv=="object"&&typeof i_!="undefined"?r(Fv,Xp()):(e=e||self,r(e.d3=e.d3||{},e.d3))})(Fv,function(e,r){"use strict";function t(te){if(0<=te.y&&te.y<100){var he=new Date(-1,te.m,te.d,te.H,te.M,te.S,te.L);return he.setFullYear(te.y),he}return new Date(te.y,te.m,te.d,te.H,te.M,te.S,te.L)}function a(te){if(0<=te.y&&te.y<100){var he=new Date(Date.UTC(-1,te.m,te.d,te.H,te.M,te.S,te.L));return he.setUTCFullYear(te.y),he}return new Date(Date.UTC(te.y,te.m,te.d,te.H,te.M,te.S,te.L))}function n(te,he,Pe){return{y:te,m:he,d:Pe,H:0,M:0,S:0,L:0}}function i(te){var he=te.dateTime,Pe=te.date,He=te.time,Xr=te.periods,ft=te.days,kt=te.shortDays,Rt=te.months,Xt=te.shortMonths,Ot=d(Xr),Ga=h(Xr),gt=d(ft),Yt=h(ft),Wt=d(kt),la=h(kt),Va=d(Rt),ta=h(Rt),oa=d(Xt),ir=h(Xt),tt={a:Hl,A:Fo,b:Sa,B:uv,c:null,d:U,e:U,f:ie,g:_e,G:Te,H:W,I:Z,j:G,L:j,m:pe,M:ve,p:Qs,q:e0,Q:_r,s:xr,S:Q,u:we,U:le,V:ce,w:de,W:Ce,x:null,X:null,y:Ie,Y:De,Z:Ae,"%":Ke},Wr={a:Ol,A:fv,b:cv,B:vv,c:null,d:ke,e:ke,f:Qe,g:ze,G:Ne,H:Re,I:Me,j:Ue,L:$e,m:Le,M:Be,p:Ru,q:zu,Q:_r,s:xr,S:tr,u:re,U:ge,V:cr,w:mr,W:ne,x:null,X:null,y:me,Y:Ve,Z:Ze,"%":Ke},ct={a:sa,A:mi,b:Gi,B:Xn,c:aa,d:L,e:L,f:B,g:b,G:M,H:P,I:P,j:q,L:H,m:C,M:z,p:vt,q:S,Q:V,s:O,S:N,u:g,U:y,V:x,w:p,W:w,x:Pu,X:Ca,y:b,Y:M,Z:T,"%":I};tt.x=Ct(Pe,tt),tt.X=Ct(He,tt),tt.c=Ct(he,tt),Wr.x=Ct(Pe,Wr),Wr.X=Ct(He,Wr),Wr.c=Ct(he,Wr);function Ct(Tr,Mr){return function(nt){var or=[],en=-1,bt=0,Ra=Tr.length,za,Wn,No;for(nt instanceof Date||(nt=new Date(+nt));++en53)return null;"w"in or||(or.w=1),"Z"in or?(bt=a(n(or.y,0,1)),Ra=bt.getUTCDay(),bt=Ra>4||Ra===0?r.utcMonday.ceil(bt):r.utcMonday(bt),bt=r.utcDay.offset(bt,(or.V-1)*7),or.y=bt.getUTCFullYear(),or.m=bt.getUTCMonth(),or.d=bt.getUTCDate()+(or.w+6)%7):(bt=t(n(or.y,0,1)),Ra=bt.getDay(),bt=Ra>4||Ra===0?r.timeMonday.ceil(bt):r.timeMonday(bt),bt=r.timeDay.offset(bt,(or.V-1)*7),or.y=bt.getFullYear(),or.m=bt.getMonth(),or.d=bt.getDate()+(or.w+6)%7)}else("W"in or||"U"in or)&&("w"in or||(or.w="u"in or?or.u%7:"W"in or?1:0),Ra="Z"in or?a(n(or.y,0,1)).getUTCDay():t(n(or.y,0,1)).getDay(),or.m=0,or.d="W"in or?(or.w+6)%7+or.W*7-(Ra+5)%7:or.w+or.U*7-(Ra+6)%7);return"Z"in or?(or.H+=or.Z/100|0,or.M+=or.Z%100,a(or)):t(or)}}function at(Tr,Mr,nt,or){for(var en=0,bt=Mr.length,Ra=nt.length,za,Wn;en=Ra)return-1;if(za=Mr.charCodeAt(en++),za===37){if(za=Mr.charAt(en++),Wn=ct[za in l?Mr.charAt(en++):za],!Wn||(or=Wn(Tr,nt,or))<0)return-1}else if(za!=nt.charCodeAt(or++))return-1}return or}function vt(Tr,Mr,nt){var or=Ot.exec(Mr.slice(nt));return or?(Tr.p=Ga[or[0].toLowerCase()],nt+or[0].length):-1}function sa(Tr,Mr,nt){var or=Wt.exec(Mr.slice(nt));return or?(Tr.w=la[or[0].toLowerCase()],nt+or[0].length):-1}function mi(Tr,Mr,nt){var or=gt.exec(Mr.slice(nt));return or?(Tr.w=Yt[or[0].toLowerCase()],nt+or[0].length):-1}function Gi(Tr,Mr,nt){var or=oa.exec(Mr.slice(nt));return or?(Tr.m=ir[or[0].toLowerCase()],nt+or[0].length):-1}function Xn(Tr,Mr,nt){var or=Va.exec(Mr.slice(nt));return or?(Tr.m=ta[or[0].toLowerCase()],nt+or[0].length):-1}function aa(Tr,Mr,nt){return at(Tr,he,Mr,nt)}function Pu(Tr,Mr,nt){return at(Tr,Pe,Mr,nt)}function Ca(Tr,Mr,nt){return at(Tr,He,Mr,nt)}function Hl(Tr){return kt[Tr.getDay()]}function Fo(Tr){return ft[Tr.getDay()]}function Sa(Tr){return Xt[Tr.getMonth()]}function uv(Tr){return Rt[Tr.getMonth()]}function Qs(Tr){return Xr[+(Tr.getHours()>=12)]}function e0(Tr){return 1+~~(Tr.getMonth()/3)}function Ol(Tr){return kt[Tr.getUTCDay()]}function fv(Tr){return ft[Tr.getUTCDay()]}function cv(Tr){return Xt[Tr.getUTCMonth()]}function vv(Tr){return Rt[Tr.getUTCMonth()]}function Ru(Tr){return Xr[+(Tr.getUTCHours()>=12)]}function zu(Tr){return 1+~~(Tr.getUTCMonth()/3)}return{format:function(Tr){var Mr=Ct(Tr+="",tt);return Mr.toString=function(){return Tr},Mr},parse:function(Tr){var Mr=ka(Tr+="",!1);return Mr.toString=function(){return Tr},Mr},utcFormat:function(Tr){var Mr=Ct(Tr+="",Wr);return Mr.toString=function(){return Tr},Mr},utcParse:function(Tr){var Mr=ka(Tr+="",!0);return Mr.toString=function(){return Tr},Mr}}}var l={"-":"",_:" ",0:"0"},o=/^\s*\d+/,s=/^%/,u=/[\\^$*+?|[\]().{}]/g;function f(te,he,Pe){var He=te<0?"-":"",Xr=(He?-te:te)+"",ft=Xr.length;return He+(ft68?1900:2e3),Pe+He[0].length):-1}function T(te,he,Pe){var He=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(he.slice(Pe,Pe+6));return He?(te.Z=He[1]?0:-(He[2]+(He[3]||"00")),Pe+He[0].length):-1}function S(te,he,Pe){var He=o.exec(he.slice(Pe,Pe+1));return He?(te.q=He[0]*3-3,Pe+He[0].length):-1}function C(te,he,Pe){var He=o.exec(he.slice(Pe,Pe+2));return He?(te.m=He[0]-1,Pe+He[0].length):-1}function L(te,he,Pe){var He=o.exec(he.slice(Pe,Pe+2));return He?(te.d=+He[0],Pe+He[0].length):-1}function q(te,he,Pe){var He=o.exec(he.slice(Pe,Pe+3));return He?(te.m=0,te.d=+He[0],Pe+He[0].length):-1}function P(te,he,Pe){var He=o.exec(he.slice(Pe,Pe+2));return He?(te.H=+He[0],Pe+He[0].length):-1}function z(te,he,Pe){var He=o.exec(he.slice(Pe,Pe+2));return He?(te.M=+He[0],Pe+He[0].length):-1}function N(te,he,Pe){var He=o.exec(he.slice(Pe,Pe+2));return He?(te.S=+He[0],Pe+He[0].length):-1}function H(te,he,Pe){var He=o.exec(he.slice(Pe,Pe+3));return He?(te.L=+He[0],Pe+He[0].length):-1}function B(te,he,Pe){var He=o.exec(he.slice(Pe,Pe+6));return He?(te.L=Math.floor(He[0]/1e3),Pe+He[0].length):-1}function I(te,he,Pe){var He=s.exec(he.slice(Pe,Pe+1));return He?Pe+He[0].length:-1}function V(te,he,Pe){var He=o.exec(he.slice(Pe));return He?(te.Q=+He[0],Pe+He[0].length):-1}function O(te,he,Pe){var He=o.exec(he.slice(Pe));return He?(te.s=+He[0],Pe+He[0].length):-1}function U(te,he){return f(te.getDate(),he,2)}function W(te,he){return f(te.getHours(),he,2)}function Z(te,he){return f(te.getHours()%12||12,he,2)}function G(te,he){return f(1+r.timeDay.count(r.timeYear(te),te),he,3)}function j(te,he){return f(te.getMilliseconds(),he,3)}function ie(te,he){return j(te,he)+"000"}function pe(te,he){return f(te.getMonth()+1,he,2)}function ve(te,he){return f(te.getMinutes(),he,2)}function Q(te,he){return f(te.getSeconds(),he,2)}function we(te){var he=te.getDay();return he===0?7:he}function le(te,he){return f(r.timeSunday.count(r.timeYear(te)-1,te),he,2)}function Se(te){var he=te.getDay();return he>=4||he===0?r.timeThursday(te):r.timeThursday.ceil(te)}function ce(te,he){return te=Se(te),f(r.timeThursday.count(r.timeYear(te),te)+(r.timeYear(te).getDay()===4),he,2)}function de(te){return te.getDay()}function Ce(te,he){return f(r.timeMonday.count(r.timeYear(te)-1,te),he,2)}function Ie(te,he){return f(te.getFullYear()%100,he,2)}function _e(te,he){return te=Se(te),f(te.getFullYear()%100,he,2)}function De(te,he){return f(te.getFullYear()%1e4,he,4)}function Te(te,he){var Pe=te.getDay();return te=Pe>=4||Pe===0?r.timeThursday(te):r.timeThursday.ceil(te),f(te.getFullYear()%1e4,he,4)}function Ae(te){var he=te.getTimezoneOffset();return(he>0?"-":(he*=-1,"+"))+f(he/60|0,"0",2)+f(he%60,"0",2)}function ke(te,he){return f(te.getUTCDate(),he,2)}function Re(te,he){return f(te.getUTCHours(),he,2)}function Me(te,he){return f(te.getUTCHours()%12||12,he,2)}function Ue(te,he){return f(1+r.utcDay.count(r.utcYear(te),te),he,3)}function $e(te,he){return f(te.getUTCMilliseconds(),he,3)}function Qe(te,he){return $e(te,he)+"000"}function Le(te,he){return f(te.getUTCMonth()+1,he,2)}function Be(te,he){return f(te.getUTCMinutes(),he,2)}function tr(te,he){return f(te.getUTCSeconds(),he,2)}function re(te){var he=te.getUTCDay();return he===0?7:he}function ge(te,he){return f(r.utcSunday.count(r.utcYear(te)-1,te),he,2)}function Ge(te){var he=te.getUTCDay();return he>=4||he===0?r.utcThursday(te):r.utcThursday.ceil(te)}function cr(te,he){return te=Ge(te),f(r.utcThursday.count(r.utcYear(te),te)+(r.utcYear(te).getUTCDay()===4),he,2)}function mr(te){return te.getUTCDay()}function ne(te,he){return f(r.utcMonday.count(r.utcYear(te)-1,te),he,2)}function me(te,he){return f(te.getUTCFullYear()%100,he,2)}function ze(te,he){return te=Ge(te),f(te.getUTCFullYear()%100,he,2)}function Ve(te,he){return f(te.getUTCFullYear()%1e4,he,4)}function Ne(te,he){var Pe=te.getUTCDay();return te=Pe>=4||Pe===0?r.utcThursday(te):r.utcThursday.ceil(te),f(te.getUTCFullYear()%1e4,he,4)}function Ze(){return"+0000"}function Ke(){return"%"}function _r(te){return+te}function xr(te){return Math.floor(+te/1e3)}var qe;Je({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 Je(te){return qe=i(te),e.timeFormat=qe.format,e.timeParse=qe.parse,e.utcFormat=qe.utcFormat,e.utcParse=qe.utcParse,qe}var Ee="%Y-%m-%dT%H:%M:%S.%LZ";function je(te){return te.toISOString()}var dr=Date.prototype.toISOString?je:e.utcFormat(Ee);function hr(te){var he=new Date(te);return isNaN(he)?null:he}var pr=+new Date("2000-01-01T00:00:00.000Z")?hr:e.utcParse(Ee);e.isoFormat=dr,e.isoParse=pr,e.timeFormatDefaultLocale=Je,e.timeFormatLocale=i,Object.defineProperty(e,"__esModule",{value:!0})})});var Wp=J((Nv,l_)=>{(function(e,r){typeof Nv=="object"&&typeof l_!="undefined"?r(Nv):(e=typeof globalThis!="undefined"?globalThis:e||self,r(e.d3=e.d3||{}))})(Nv,(function(e){"use strict";function r(C){return Math.abs(C=Math.round(C))>=1e21?C.toLocaleString("en").replace(/,/g,""):C.toString(10)}function t(C,L){if((q=(C=L?C.toExponential(L-1):C.toExponential()).indexOf("e"))<0)return null;var q,P=C.slice(0,q);return[P.length>1?P[0]+P.slice(2):P,+C.slice(q+1)]}function a(C){return C=t(Math.abs(C)),C?C[1]:NaN}function n(C,L){return function(q,P){for(var z=q.length,N=[],H=0,B=C[0],I=0;z>0&&B>0&&(I+B+1>P&&(B=Math.max(1,P-I)),N.push(q.substring(z-=B,z+B)),!((I+=B+1)>P));)B=C[H=(H+1)%C.length];return N.reverse().join(L)}}function i(C){return function(L){return L.replace(/[0-9]/g,function(q){return C[+q]})}}var l=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function o(C){if(!(L=l.exec(C)))throw new Error("invalid format: "+C);var L;return new s({fill:L[1],align:L[2],sign:L[3],symbol:L[4],zero:L[5],width:L[6],comma:L[7],precision:L[8]&&L[8].slice(1),trim:L[9],type:L[10]})}o.prototype=s.prototype;function s(C){this.fill=C.fill===void 0?" ":C.fill+"",this.align=C.align===void 0?">":C.align+"",this.sign=C.sign===void 0?"-":C.sign+"",this.symbol=C.symbol===void 0?"":C.symbol+"",this.zero=!!C.zero,this.width=C.width===void 0?void 0:+C.width,this.comma=!!C.comma,this.precision=C.precision===void 0?void 0:+C.precision,this.trim=!!C.trim,this.type=C.type===void 0?"":C.type+""}s.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 u(C){e:for(var L=C.length,q=1,P=-1,z;q0&&(P=0);break}return P>0?C.slice(0,P)+C.slice(z+1):C}var f;function c(C,L){var q=t(C,L);if(!q)return C+"";var P=q[0],z=q[1],N=z-(f=Math.max(-8,Math.min(8,Math.floor(z/3)))*3)+1,H=P.length;return N===H?P:N>H?P+new Array(N-H+1).join("0"):N>0?P.slice(0,N)+"."+P.slice(N):"0."+new Array(1-N).join("0")+t(C,Math.max(0,L+N-1))[0]}function d(C,L){var q=t(C,L);if(!q)return C+"";var P=q[0],z=q[1];return z<0?"0."+new Array(-z).join("0")+P:P.length>z+1?P.slice(0,z+1)+"."+P.slice(z+1):P+new Array(z-P.length+2).join("0")}var h={"%":function(C,L){return(C*100).toFixed(L)},b:function(C){return Math.round(C).toString(2)},c:function(C){return C+""},d:r,e:function(C,L){return C.toExponential(L)},f:function(C,L){return C.toFixed(L)},g:function(C,L){return C.toPrecision(L)},o:function(C){return Math.round(C).toString(8)},p:function(C,L){return d(C*100,L)},r:d,s:c,X:function(C){return Math.round(C).toString(16).toUpperCase()},x:function(C){return Math.round(C).toString(16)}};function p(C){return C}var g=Array.prototype.map,y=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function x(C){var L=C.grouping===void 0||C.thousands===void 0?p:n(g.call(C.grouping,Number),C.thousands+""),q=C.currency===void 0?"":C.currency[0]+"",P=C.currency===void 0?"":C.currency[1]+"",z=C.decimal===void 0?".":C.decimal+"",N=C.numerals===void 0?p:i(g.call(C.numerals,String)),H=C.percent===void 0?"%":C.percent+"",B=C.minus===void 0?"-":C.minus+"",I=C.nan===void 0?"NaN":C.nan+"";function V(U){U=o(U);var W=U.fill,Z=U.align,G=U.sign,j=U.symbol,ie=U.zero,pe=U.width,ve=U.comma,Q=U.precision,we=U.trim,le=U.type;le==="n"?(ve=!0,le="g"):h[le]||(Q===void 0&&(Q=12),we=!0,le="g"),(ie||W==="0"&&Z==="=")&&(ie=!0,W="0",Z="=");var Se=j==="$"?q:j==="#"&&/[boxX]/.test(le)?"0"+le.toLowerCase():"",ce=j==="$"?P:/[%p]/.test(le)?H:"",de=h[le],Ce=/[defgprs%]/.test(le);Q=Q===void 0?6:/[gprs]/.test(le)?Math.max(1,Math.min(21,Q)):Math.max(0,Math.min(20,Q));function Ie(_e){var De=Se,Te=ce,Ae,ke,Re;if(le==="c")Te=de(_e)+Te,_e="";else{_e=+_e;var Me=_e<0||1/_e<0;if(_e=isNaN(_e)?I:de(Math.abs(_e),Q),we&&(_e=u(_e)),Me&&+_e==0&&G!=="+"&&(Me=!1),De=(Me?G==="("?G:B:G==="-"||G==="("?"":G)+De,Te=(le==="s"?y[8+f/3]:"")+Te+(Me&&G==="("?")":""),Ce){for(Ae=-1,ke=_e.length;++AeRe||Re>57){Te=(Re===46?z+_e.slice(Ae+1):_e.slice(Ae))+Te,_e=_e.slice(0,Ae);break}}}ve&&!ie&&(_e=L(_e,1/0));var Ue=De.length+_e.length+Te.length,$e=Ue>1)+De+_e+Te+$e.slice(Ue);break;default:_e=$e+De+_e+Te;break}return N(_e)}return Ie.toString=function(){return U+""},Ie}function O(U,W){var Z=V((U=o(U),U.type="f",U)),G=Math.max(-8,Math.min(8,Math.floor(a(W)/3)))*3,j=Math.pow(10,-G),ie=y[8+G/3];return function(pe){return Z(j*pe)+ie}}return{format:V,formatPrefix:O}}var w;M({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function M(C){return w=x(C),e.format=w.format,e.formatPrefix=w.formatPrefix,w}function b(C){return Math.max(0,-a(Math.abs(C)))}function T(C,L){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(a(L)/3)))*3-a(Math.abs(C)))}function S(C,L){return C=Math.abs(C),L=Math.abs(L)-C,Math.max(0,a(L)-a(C))+1}e.FormatSpecifier=s,e.formatDefaultLocale=M,e.formatLocale=x,e.formatSpecifier=o,e.precisionFixed=b,e.precisionPrefix=T,e.precisionRound=S,Object.defineProperty(e,"__esModule",{value:!0})}))});var s_=J((yge,o_)=>{"use strict";o_.exports=function(e){for(var r=e.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}});var Zr=J((bge,u_)=>{"use strict";var FU=s_();u_.exports=function(e){var r=typeof e;if(r==="string"){var t=e;if(e=+e,e===0&&FU(t))return!1}else if(r!=="number")return!1;return e-e<1}});var ga={};Nt(ga,{ALMOST_EQUAL:()=>rG,BADNUM:()=>Zp,EPOCHJD:()=>eG,FP_SAFE:()=>NU,LOG_CLIP:()=>tG,MINUS_SIGN:()=>aG,ONEAVGMONTH:()=>VU,ONEAVGQUARTER:()=>YU,ONEAVGYEAR:()=>BU,ONEDAY:()=>ZU,ONEHOUR:()=>JU,ONEMAXMONTH:()=>GU,ONEMAXQUARTER:()=>OU,ONEMAXYEAR:()=>IU,ONEMICROSEC:()=>QU,ONEMILLI:()=>jU,ONEMIN:()=>$U,ONEMINMONTH:()=>XU,ONEMINQUARTER:()=>UU,ONEMINYEAR:()=>HU,ONESEC:()=>KU,ONEWEEK:()=>WU});var Zp,NU,IU,BU,HU,OU,YU,UU,GU,VU,XU,WU,ZU,JU,$U,KU,jU,QU,eG,rG,tG,aG,ca=Ft(()=>{"use strict";Zp=void 0,NU=Number.MAX_VALUE*1e-4,IU=316224e5,BU=315576e5,HU=31536e6,OU=79488e5,YU=78894e5,UU=76896e5,GU=26784e5,VU=26298e5,XU=24192e5,WU=6048e5,ZU=864e5,JU=36e5,$U=6e4,KU=1e3,jU=1,QU=.001,eG=24405875e-1,rG=1-1e-6,tG=10,aG="\u2212"});var Jp=J((Iv,f_)=>{(function(e,r){typeof Iv=="object"&&typeof f_!="undefined"?r(Iv):(e=typeof globalThis!="undefined"?globalThis:e||self,r(e["base64-arraybuffer"]={}))})(Iv,(function(e){"use strict";for(var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),a=0;a>2],f+=r[(o[s]&3)<<4|o[s+1]>>4],f+=r[(o[s+1]&15)<<2|o[s+2]>>6],f+=r[o[s+2]&63];return u%3===2?f=f.substring(0,f.length-1)+"=":u%3===1&&(f=f.substring(0,f.length-2)+"=="),f},i=function(l){var o=l.length*.75,s=l.length,u,f=0,c,d,h,p;l[l.length-1]==="="&&(o--,l[l.length-2]==="="&&o--);var g=new ArrayBuffer(o),y=new Uint8Array(g);for(u=0;u>4,y[f++]=(d&15)<<4|h>>2,y[f++]=(h&3)<<6|p&63;return g};e.decode=i,e.encode=n,Object.defineProperty(e,"__esModule",{value:!0})}))});var Uo=J((xge,c_)=>{"use strict";c_.exports=function(r){return window&&window.process&&window.process.versions?Object.prototype.toString.call(r)==="[object Object]":Object.prototype.toString.call(r)==="[object Object]"&&Object.getPrototypeOf(r).hasOwnProperty("hasOwnProperty")}});var xn=J(bi=>{"use strict";var nG=Jp().decode,iG=Uo(),$p=Array.isArray,lG=ArrayBuffer,oG=DataView;function v_(e){return lG.isView(e)&&!(e instanceof oG)}bi.isTypedArray=v_;function Bv(e){return $p(e)||v_(e)}bi.isArrayOrTypedArray=Bv;function sG(e){return!Bv(e[0])}bi.isArray1D=sG;bi.ensureArray=function(e,r){return $p(e)||(e=[]),e.length=r,e};var Da={u1c:typeof Uint8ClampedArray=="undefined"?void 0:Uint8ClampedArray,i1:typeof Int8Array=="undefined"?void 0:Int8Array,u1:typeof Uint8Array=="undefined"?void 0:Uint8Array,i2:typeof Int16Array=="undefined"?void 0:Int16Array,u2:typeof Uint16Array=="undefined"?void 0:Uint16Array,i4:typeof Int32Array=="undefined"?void 0:Int32Array,u4:typeof Uint32Array=="undefined"?void 0:Uint32Array,f4:typeof Float32Array=="undefined"?void 0:Float32Array,f8:typeof Float64Array=="undefined"?void 0:Float64Array};Da.uint8c=Da.u1c;Da.uint8=Da.u1;Da.int8=Da.i1;Da.uint16=Da.u2;Da.int16=Da.i2;Da.uint32=Da.u4;Da.int32=Da.i4;Da.float32=Da.f4;Da.float64=Da.f8;function Kp(e){return e.constructor===ArrayBuffer}bi.isArrayBuffer=Kp;bi.decodeTypedArraySpec=function(e){var r=[],t=uG(e),a=t.dtype,n=Da[a];if(!n)throw new Error('Error in dtype: "'+a+'"');var i=n.BYTES_PER_ELEMENT,l=t.bdata;Kp(l)||(l=nG(l));var o=t.shape===void 0?[l.byteLength/i]:(""+t.shape).split(",");o.reverse();var s=o.length,u,f,c=+o[0],d=i*c,h=0;if(s===1)r=new n(l);else if(s===2)for(u=+o[1],f=0;f{"use strict";var h_=Zr(),Qp=xn().isArrayOrTypedArray;y_.exports=function(r,t){if(h_(t))t=String(t);else if(typeof t!="string"||t.slice(-4)==="[-1]")throw"bad property string";var a=t.split("."),n,i,l,o;for(o=0;o{"use strict";var u0=Hv(),hG=/^\w*$/,pG=0,b_=1,Ov=2,x_=3,Go=4;__.exports=function(r,t,a,n){a=a||"name",n=n||"value";var i,l,o,s={};t&&t.length?(o=u0(r,t),l=o.get()):l=r,t=t||"";var u={};if(l)for(i=0;i2)return s[h]=s[h]|Ov,c.set(d,null);if(f){for(i=h;i{"use strict";var mG=/^(.*)(\.[^\.\[\]]+|\[\d\])$/,gG=/^[^\.\[\]]+$/;M_.exports=function(e,r){for(;r;){var t=e.match(mG);if(t)e=t[1];else if(e.match(gG))e="";else throw new Error("bad relativeAttr call:"+[e,r]);if(r.charAt(0)==="^")r=r.slice(1);else break}return e&&r.charAt(0)!=="["?e+"."+r:e+r}});var Yv=J((Age,A_)=>{"use strict";var yG=Zr();A_.exports=function(r,t){if(r>0)return Math.log(r)/Math.LN10;var a=Math.log(Math.min(t[0],t[1]))/Math.LN10;return yG(a)||(a=Math.log(Math.max(t[0],t[1]))/Math.LN10-6),a}});var S_=J((kge,C_)=>{"use strict";var k_=xn().isArrayOrTypedArray,Wu=Uo();C_.exports=function e(r,t){for(var a in t){var n=t[a],i=r[a];if(i!==n)if(a.charAt(0)==="_"||typeof n=="function"){if(a in r)continue;r[a]=n}else if(k_(n)&&k_(i)&&Wu(n[0])){if(a==="customdata"||a==="ids")continue;for(var l=Math.min(n.length,i.length),o=0;obG,modHalf:()=>xG});function bG(e,r){let t=e%r;return t<0?t+r:t}function xG(e,r){return Math.abs(e)>r/2?e-Math.round(e/r)*r:e}var c0=Ft(()=>{"use strict"});var va=J($u=>{"use strict";var D_=Uo(),Zu=Array.isArray;function _G(e,r){var t,a;for(t=0;t{"use strict";L_.exports=function(e){var r=e.variantValues,t=e.editType,a=e.colorEditType;a===void 0&&(a=t);var n={editType:t,valType:"integer",min:1,max:1e3,extras:["normal","bold"],dflt:"normal"};e.noNumericWeightValues&&(n.valType="enumerated",n.values=n.extras,n.extras=void 0,n.min=void 0,n.max=void 0);var i={family:{valType:"string",noBlank:!0,strict:!0,editType:t},size:{valType:"number",min:1,editType:t},color:{valType:"color",editType:a},weight:n,style:{editType:t,valType:"enumerated",values:["normal","italic"],dflt:"normal"},variant:e.noFontVariant?void 0:{editType:t,valType:"enumerated",values:r||["normal","small-caps","all-small-caps","all-petite-caps","petite-caps","unicase"],dflt:"normal"},textcase:e.noFontTextcase?void 0:{editType:t,valType:"enumerated",values:["normal","word caps","upper","lower"],dflt:"normal"},lineposition:e.noFontLineposition?void 0:{editType:t,valType:"flaglist",flags:["under","over","through"],extras:["none"],dflt:"none"},shadow:e.noFontShadow?void 0:{editType:t,valType:"string",dflt:e.autoShadowDflt?"auto":"none"},editType:t};return e.autoSize&&(i.size.dflt="auto"),e.autoColor&&(i.color.dflt="auto"),e.arrayOk&&(i.family.arrayOk=!0,i.weight.arrayOk=!0,i.style.arrayOk=!0,e.noFontVariant||(i.variant.arrayOk=!0),e.noFontTextcase||(i.textcase.arrayOk=!0),e.noFontLineposition||(i.lineposition.arrayOk=!0),e.noFontShadow||(i.shadow.arrayOk=!0),i.size.arrayOk=!0,i.color.arrayOk=!0),i}});var Ku={};Nt(Ku,{HOVERARROWSIZE:()=>MG,HOVERFONT:()=>kG,HOVERFONTSIZE:()=>AG,HOVERID:()=>SG,HOVERMINTIME:()=>CG,HOVERTEXTPAD:()=>TG,YANGLE:()=>wG});var wG,MG,TG,AG,kG,CG,SG,ju=Ft(()=>{"use strict";wG=60,MG=6,TG=3,AG=13,kG="Arial, sans-serif",CG=50,SG="-hover"});var v0=J((Dge,P_)=>{"use strict";var q_=(ju(),Xe(Ku)),E_=Ia(),em=E_({editType:"none"});em.family.dflt=q_.HOVERFONT;em.size.dflt=q_.HOVERFONTSIZE;P_.exports={clickmode:{valType:"flaglist",flags:["event","select"],dflt:"event",editType:"plot",extras:["none"]},dragmode:{valType:"enumerated",values:["zoom","pan","select","lasso","drawclosedpath","drawopenpath","drawline","drawrect","drawcircle","orbit","turntable",!1],dflt:"zoom",editType:"modebar"},hovermode:{valType:"enumerated",values:["x","y","closest",!1,"x unified","y unified"],dflt:"closest",editType:"modebar"},hoversort:{valType:"enumerated",values:["trace","value descending","value ascending"],dflt:"trace",editType:"none"},hoversubplots:{valType:"enumerated",values:["single","overlaying","axis"],dflt:"overlaying",editType:"none"},hoveranywhere:{valType:"boolean",dflt:!1,editType:"none"},clickanywhere:{valType:"boolean",dflt:!1,editType:"none"},hoverdistance:{valType:"integer",min:-1,dflt:20,editType:"none"},spikedistance:{valType:"integer",min:-1,dflt:-1,editType:"none"},hoverlabel:{bgcolor:{valType:"color",editType:"none"},bordercolor:{valType:"color",editType:"none"},font:em,grouptitlefont:E_({editType:"none"}),align:{valType:"enumerated",values:["left","right","auto"],dflt:"auto",editType:"none"},namelength:{valType:"integer",min:-1,dflt:15,editType:"none"},showarrow:{valType:"boolean",dflt:!0,editType:"none"},editType:"none"},selectdirection:{valType:"enumerated",values:["h","v","d","any"],dflt:"any",editType:"none"}}});var Uv=J((Lge,R_)=>{"use strict";var DG=Ia(),Qu=v0().hoverlabel,ef=va().extendFlat;R_.exports={hoverlabel:{bgcolor:ef({},Qu.bgcolor,{arrayOk:!0}),bordercolor:ef({},Qu.bordercolor,{arrayOk:!0}),font:DG({arrayOk:!0,editType:"none"}),align:ef({},Qu.align,{arrayOk:!0}),namelength:ef({},Qu.namelength,{arrayOk:!0}),showarrow:ef({},Qu.showarrow),editType:"none"}}});var xi=J((qge,z_)=>{"use strict";var LG=Ia(),qG=Uv();z_.exports={type:{valType:"enumerated",values:[],dflt:"scatter",editType:"calc+clearAxisTypes",_noTemplating:!0},visible:{valType:"enumerated",values:[!0,!1,"legendonly"],dflt:!0,editType:"calc"},showlegend:{valType:"boolean",dflt:!0,editType:"style"},legend:{valType:"subplotid",dflt:"legend",editType:"style"},legendgroup:{valType:"string",dflt:"",editType:"style"},legendgrouptitle:{text:{valType:"string",dflt:"",editType:"style"},font:LG({editType:"style"}),editType:"style"},legendrank:{valType:"number",dflt:1e3,editType:"style"},legendwidth:{valType:"number",min:0,editType:"style"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"style"},name:{valType:"string",editType:"style"},uid:{valType:"string",editType:"plot",anim:!0},ids:{valType:"data_array",editType:"calc",anim:!0},customdata:{valType:"data_array",editType:"calc"},meta:{valType:"any",arrayOk:!0,editType:"plot"},selectedpoints:{valType:"any",editType:"calc"},hoverinfo:{valType:"flaglist",flags:["x","y","z","text","name"],extras:["all","none","skip"],arrayOk:!0,dflt:"all",editType:"none"},hoverlabel:qG.hoverlabel,uirevision:{valType:"any",editType:"none"}}});var C8=J((Ige,k8)=>{var Xm=Object.defineProperty,EG=Object.getOwnPropertyDescriptor,PG=Object.getOwnPropertyNames,RG=Object.prototype.hasOwnProperty,zG=(e,r)=>{for(var t in r)Xm(e,t,{get:r[t],enumerable:!0})},FG=(e,r,t,a)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of PG(r))!RG.call(e,n)&&n!==t&&Xm(e,n,{get:()=>r[n],enumerable:!(a=EG(r,n))||a.enumerable});return e},NG=e=>FG(Xm({},"__esModule",{value:!0}),e),V_={};zG(V_,{a98:()=>SZ,average:()=>PV,averageAngle:()=>Ji,averageNumber:()=>s7,blend:()=>EW,blerp:()=>km,clampChroma:()=>jW,clampGamut:()=>bg,clampRgb:()=>KW,colorsNamed:()=>W_,convertA98ToXyz65:()=>Cm,convertCubehelixToRgb:()=>l7,convertDlchToLab65:()=>jv,convertHsiToRgb:()=>m7,convertHslToRgb:()=>b7,convertHsvToRgb:()=>jm,convertHwbToRgb:()=>M7,convertItpToXyz65:()=>Dm,convertJabToJch:()=>qm,convertJabToRgb:()=>ng,convertJabToXyz65:()=>tg,convertJchToJab:()=>Em,convertLab65ToDlch:()=>Qv,convertLab65ToRgb:()=>uf,convertLab65ToXyz65:()=>Jm,convertLabToLch:()=>yl,convertLabToRgb:()=>lg,convertLabToXyz50:()=>u2,convertLchToLab:()=>bl,convertLchuvToLuv:()=>ug,convertLrgbToOklab:()=>fg,convertLrgbToRgb:()=>Ko,convertLuvToLchuv:()=>sg,convertLuvToXyz50:()=>r2,convertOkhslToOklab:()=>zm,convertOkhsvToOklab:()=>Nm,convertOklabToLrgb:()=>x0,convertOklabToOkhsl:()=>Rm,convertOklabToOkhsv:()=>Fm,convertOklabToRgb:()=>vf,convertP3ToXyz65:()=>Im,convertProphotoToXyz50:()=>Om,convertRec2020ToXyz65:()=>Um,convertRgbToCubehelix:()=>i7,convertRgbToHsi:()=>g7,convertRgbToHsl:()=>x7,convertRgbToHsv:()=>Qm,convertRgbToHwb:()=>T7,convertRgbToJab:()=>ag,convertRgbToLab:()=>og,convertRgbToLab65:()=>ff,convertRgbToLrgb:()=>$o,convertRgbToOklab:()=>cf,convertRgbToXyb:()=>j7,convertRgbToXyz50:()=>b0,convertRgbToXyz65:()=>Gl,convertRgbToYiq:()=>i8,convertXybToRgb:()=>Q7,convertXyz50ToLab:()=>f2,convertXyz50ToLuv:()=>e2,convertXyz50ToProphoto:()=>Hm,convertXyz50ToRgb:()=>y0,convertXyz50ToXyz65:()=>a8,convertXyz65ToA98:()=>Sm,convertXyz65ToItp:()=>Lm,convertXyz65ToJab:()=>rg,convertXyz65ToLab65:()=>$m,convertXyz65ToP3:()=>Bm,convertXyz65ToRec2020:()=>Ym,convertXyz65ToRgb:()=>Vl,convertXyz65ToXyz50:()=>t8,convertYiqToRgb:()=>l8,converter:()=>xt,cubehelix:()=>DZ,differenceCie76:()=>kV,differenceCie94:()=>CV,differenceCiede2000:()=>SV,differenceCmc:()=>DV,differenceEuclidean:()=>g0,differenceHueChroma:()=>sf,differenceHueNaive:()=>o7,differenceHueSaturation:()=>of,differenceHyab:()=>LV,differenceItp:()=>EV,differenceKotsarenkoRamos:()=>qV,displayable:()=>yg,dlab:()=>LZ,dlch:()=>qZ,easingGamma:()=>_8,easingInOutSine:()=>kZ,easingMidpoint:()=>h8,easingSmootherstep:()=>TZ,easingSmoothstep:()=>_Z,easingSmoothstepInverse:()=>wZ,filterBrightness:()=>oZ,filterContrast:()=>sZ,filterDeficiencyDeuter:()=>bZ,filterDeficiencyProt:()=>yZ,filterDeficiencyTrit:()=>xZ,filterGrayscale:()=>cZ,filterHueRotate:()=>dZ,filterInvert:()=>vZ,filterSaturate:()=>fZ,filterSepia:()=>uZ,fixupAlpha:()=>ba,fixupHueDecreasing:()=>_V,fixupHueIncreasing:()=>xV,fixupHueLonger:()=>bV,fixupHueShorter:()=>Zi,formatCss:()=>AW,formatHex:()=>kW,formatHex8:()=>CW,formatHsl:()=>DW,formatRgb:()=>SW,getMode:()=>an,hsi:()=>EZ,hsl:()=>PZ,hsv:()=>RZ,hwb:()=>zZ,inGamut:()=>d2,interpolate:()=>OW,interpolateWith:()=>m8,interpolateWithPremultipliedAlpha:()=>YW,interpolatorLinear:()=>br,interpolatorPiecewise:()=>a7,interpolatorSplineBasis:()=>y8,interpolatorSplineBasisClosed:()=>b8,interpolatorSplineMonotone:()=>VW,interpolatorSplineMonotone2:()=>XW,interpolatorSplineMonotoneClosed:()=>WW,interpolatorSplineNatural:()=>UW,interpolatorSplineNaturalClosed:()=>GW,itp:()=>FZ,jab:()=>NZ,jch:()=>IZ,lab:()=>BZ,lab65:()=>HZ,lch:()=>OZ,lch65:()=>YZ,lchuv:()=>UZ,lerp:()=>Xo,lrgb:()=>GZ,luv:()=>VZ,mapAlphaDivide:()=>d8,mapAlphaMultiply:()=>v8,mapTransferGamma:()=>NW,mapTransferLinear:()=>pg,mapper:()=>df,modeA98:()=>n7,modeCubehelix:()=>u7,modeDlab:()=>h7,modeDlch:()=>p7,modeHsi:()=>y7,modeHsl:()=>Km,modeHsv:()=>eg,modeHwb:()=>k7,modeItp:()=>D7,modeJab:()=>L7,modeJch:()=>q7,modeLab:()=>c2,modeLab65:()=>P7,modeLch:()=>v2,modeLch65:()=>z7,modeLchuv:()=>I7,modeLrgb:()=>B7,modeLuv:()=>H7,modeOkhsl:()=>Y7,modeOkhsv:()=>U7,modeOklab:()=>V7,modeOklch:()=>W7,modeP3:()=>Z7,modeProphoto:()=>J7,modeRec2020:()=>$7,modeRgb:()=>Jo,modeXyb:()=>e8,modeXyz50:()=>r8,modeXyz65:()=>n8,modeYiq:()=>o8,nearest:()=>rZ,okhsl:()=>XZ,okhsv:()=>WZ,oklab:()=>ZZ,oklch:()=>JZ,p3:()=>$Z,parse:()=>e7,parseHex:()=>J_,parseHsl:()=>w7,parseHslLegacy:()=>_7,parseHwb:()=>A7,parseLab:()=>E7,parseLch:()=>R7,parseNamed:()=>Z_,parseOklab:()=>G7,parseOklch:()=>X7,parseRgb:()=>r7,parseRgbLegacy:()=>$_,parseTransparent:()=>t7,prophoto:()=>KZ,random:()=>FW,rec2020:()=>jZ,removeParser:()=>KG,rgb:()=>QZ,round:()=>s8,samples:()=>$W,serializeHex:()=>hg,serializeHex8:()=>u8,serializeHsl:()=>c8,serializeRgb:()=>f8,toGamut:()=>QW,trilerp:()=>sV,unlerp:()=>oV,useMode:()=>dt,useParser:()=>j_,wcagContrast:()=>CZ,wcagLuminance:()=>Vm,xyb:()=>eJ,xyz50:()=>rJ,xyz65:()=>tJ,yiq:()=>aJ});k8.exports=NG(V_);var IG=(e,r)=>{if(typeof e=="number"){if(r===3)return{mode:"rgb",r:(e>>8&15|e>>4&240)/255,g:(e>>4&15|e&240)/255,b:(e&15|e<<4&240)/255};if(r===4)return{mode:"rgb",r:(e>>12&15|e>>8&240)/255,g:(e>>8&15|e>>4&240)/255,b:(e>>4&15|e&240)/255,alpha:(e&15|e<<4&240)/255};if(r===6)return{mode:"rgb",r:(e>>16&255)/255,g:(e>>8&255)/255,b:(e&255)/255};if(r===8)return{mode:"rgb",r:(e>>24&255)/255,g:(e>>16&255)/255,b:(e>>8&255)/255,alpha:(e&255)/255}}},X_=IG,BG={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},W_=BG,HG=e=>X_(W_[e.toLowerCase()],6),Z_=HG,OG=/^#?([0-9a-f]{8}|[0-9a-f]{6}|[0-9a-f]{4}|[0-9a-f]{3})$/i,YG=e=>{let r;return(r=e.match(OG))?X_(parseInt(r[1],16),r[1].length):void 0},J_=YG,_n="([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)",Ege=`(?:${_n}|none)`,af=`${_n}%`,Pge=`(?:${_n}%|none)`,Wm=`(?:${_n}%|${_n})`,UG=`(?:${_n}%|${_n}|none)`,GG=`(?:${_n}(deg|grad|rad|turn)|${_n})`,Rge=`(?:${_n}(deg|grad|rad|turn)|${_n}|none)`,p0="\\s*,\\s*",zge=new RegExp("^"+UG+"$"),VG=new RegExp(`^rgba?\\(\\s*${_n}${p0}${_n}${p0}${_n}\\s*(?:,\\s*${Wm}\\s*)?\\)$`),XG=new RegExp(`^rgba?\\(\\s*${af}${p0}${af}${p0}${af}\\s*(?:,\\s*${Wm}\\s*)?\\)$`),WG=e=>{let r={mode:"rgb"},t;if(t=e.match(VG))t[1]!==void 0&&(r.r=t[1]/255),t[2]!==void 0&&(r.g=t[2]/255),t[3]!==void 0&&(r.b=t[3]/255);else if(t=e.match(XG))t[1]!==void 0&&(r.r=t[1]/100),t[2]!==void 0&&(r.g=t[2]/100),t[3]!==void 0&&(r.b=t[3]/100);else return;return t[4]!==void 0?r.alpha=Math.max(0,Math.min(1,t[4]/100)):t[5]!==void 0&&(r.alpha=Math.max(0,Math.min(1,+t[5]))),r},$_=WG,ZG=(e,r)=>e===void 0?void 0:typeof e!="object"?e7(e):e.mode!==void 0?e:r?St(ut({},e),{mode:r}):void 0,_i=ZG,JG=(e="rgb")=>r=>(r=_i(r,e))!==void 0?r.mode===e?r:Wi[r.mode][e]?Wi[r.mode][e](r):e==="rgb"?Wi[r.mode].rgb(r):Wi.rgb[e](Wi[r.mode].rgb(r)):void 0,xt=JG,Wi={},K_={},m0=[],Zm={},$G=e=>e,dt=e=>(Wi[e.mode]=ut(ut({},Wi[e.mode]),e.toMode),Object.keys(e.fromMode||{}).forEach(r=>{Wi[r]||(Wi[r]={}),Wi[r][e.mode]=e.fromMode[r]}),e.ranges||(e.ranges={}),e.difference||(e.difference={}),e.channels.forEach(r=>{if(e.ranges[r]===void 0&&(e.ranges[r]=[0,1]),!e.interpolate[r])throw new Error(`Missing interpolator for: ${r}`);typeof e.interpolate[r]=="function"&&(e.interpolate[r]={use:e.interpolate[r]}),e.interpolate[r].fixup||(e.interpolate[r].fixup=$G)}),K_[e.mode]=e,(e.parse||[]).forEach(r=>{j_(r,e.mode)}),xt(e.mode)),an=e=>K_[e],j_=(e,r)=>{if(typeof e=="string"){if(!r)throw new Error("'mode' required when 'parser' is a string");Zm[e]=r}else typeof e=="function"&&m0.indexOf(e)<0&&m0.push(e)},KG=e=>{if(typeof e=="string")delete Zm[e];else if(typeof e=="function"){let r=m0.indexOf(e);r>0&&m0.splice(r,1)}},Tm=/[^\x00-\x7F]|[a-zA-Z_]/,jG=/[^\x00-\x7F]|[-\w]/,fr={Function:"function",Ident:"ident",Number:"number",Percentage:"percentage",ParenClose:")",None:"none",Hue:"hue",Alpha:"alpha"},Br=0;function Gv(e){let r=e[Br],t=e[Br+1];return r==="-"||r==="+"?/\d/.test(t)||t==="."&&/\d/.test(e[Br+2]):r==="."?/\d/.test(t):/\d/.test(r)}function Am(e){if(Br>=e.length)return!1;let r=e[Br];if(Tm.test(r))return!0;if(r==="-"){if(e.length-Br<2)return!1;let t=e[Br+1];return!!(t==="-"||Tm.test(t))}return!1}var QG={deg:1,rad:180/Math.PI,grad:9/10,turn:360};function rf(e){let r="";if((e[Br]==="-"||e[Br]==="+")&&(r+=e[Br++]),r+=Vv(e),e[Br]==="."&&/\d/.test(e[Br+1])&&(r+=e[Br++]+Vv(e)),(e[Br]==="e"||e[Br]==="E")&&((e[Br+1]==="-"||e[Br+1]==="+")&&/\d/.test(e[Br+2])?r+=e[Br++]+e[Br++]+Vv(e):/\d/.test(e[Br+1])&&(r+=e[Br++]+Vv(e))),Am(e)){let t=Zv(e);return t==="deg"||t==="rad"||t==="turn"||t==="grad"?{type:fr.Hue,value:r*QG[t]}:void 0}return e[Br]==="%"?(Br++,{type:fr.Percentage,value:+r}):{type:fr.Number,value:+r}}function Vv(e){let r="";for(;/\d/.test(e[Br]);)r+=e[Br++];return r}function Zv(e){let r="";for(;Br4)){if(t.length===4){if(t[3].type!==vr.Alpha)return;t[3]=t[3].value}return t.length===3&&t.push({type:vr.None,value:void 0}),t.every(n=>n.type!==vr.Alpha)?t:void 0}}function jG(e,r){e._i=0;let t=e[e._i++];if(!t||t.type!==vr.Function)return;let a=X_(e,r);if(a)return a.unshift(t.value),a}var QG=e=>{if(typeof e!="string")return;let r=$G(e),t=r?jG(r,!0):void 0,a,n=0,i=c0.length;for(;ne==="transparent"?{mode:"rgb",r:0,g:0,b:0,alpha:0}:void 0,J_=rV,Ho=(e,r,t)=>e+t*(r-e),tV=(e,r,t)=>(t-e)/(r-e),wm=(e,r,t,a,n,i)=>Ho(Ho(e,r,n),Ho(t,a,n),i),aV=(e,r,t,a,n,i,l,o,s,u,f)=>Ho(wm(e,r,t,a,s,u),wm(n,i,l,o,s,u),f),nV=e=>{let r=[];for(let t=0;tr=>{let t=nV(r);return a=>{let n=a*t.length,i=a>=1?t.length-1:Math.max(Math.floor(n),0),l=t[i];return l===void 0?void 0:e(l[0],l[1],n-i)}},_r=$_(Ho),pa=e=>{let r=!1,t=e.map(a=>a!==void 0?(r=!0,a):1);return r?t:e},iV={mode:"rgb",channels:["r","g","b","alpha"],parse:[Z_,Y_,U_,O_,J_,"srgb"],serialize:"srgb",interpolate:{r:_r,g:_r,b:_r,alpha:{use:_r,fixup:pa}},gamut:!0,white:{r:1,g:1,b:1},black:{r:0,g:0,b:0}},Uo=iV,Kp=(e=0)=>Math.pow(Math.abs(e),563/256)*Math.sign(e),lV=e=>{let r=Kp(e.r),t=Kp(e.g),a=Kp(e.b),n={mode:"xyz65",x:.5766690429101305*r+.1855582379065463*t+.1882286462349947*a,y:.297344975250536*r+.6273635662554661*t+.0752914584939979*a,z:.0270313613864123*r+.0706888525358272*t+.9913375368376386*a};return e.alpha!==void 0&&(n.alpha=e.alpha),n},Mm=lV,jp=e=>Math.pow(Math.abs(e),256/563)*Math.sign(e),oV=({x:e,y:r,z:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n={mode:"a98",r:jp(e*2.0415879038107465-r*.5650069742788597-.3447313507783297*t),g:jp(e*-.9692436362808798+r*1.8759675015077206+.0415550574071756*t),b:jp(e*.0134442806320312-r*.1183623922310184+1.0151749943912058*t)};return a!==void 0&&(n.alpha=a),n},Tm=oV,Qp=(e=0)=>{let r=Math.abs(e);return r<=.04045?e/12.92:(Math.sign(e)||1)*Math.pow((r+.055)/1.055,2.4)},sV=({r:e,g:r,b:t,alpha:a})=>{let n={mode:"lrgb",r:Qp(e),g:Qp(r),b:Qp(t)};return a!==void 0&&(n.alpha=a),n},Go=sV,uV=e=>{let{r,g:t,b:a,alpha:n}=Go(e),i={mode:"xyz65",x:.4123907992659593*r+.357584339383878*t+.1804807884018343*a,y:.2126390058715102*r+.715168678767756*t+.0721923153607337*a,z:.0193308187155918*r+.119194779794626*t+.9505321522496607*a};return n!==void 0&&(i.alpha=n),i},Il=uV,em=(e=0)=>{let r=Math.abs(e);return r>.0031308?(Math.sign(e)||1)*(1.055*Math.pow(r,1/2.4)-.055):e*12.92},fV=({r:e,g:r,b:t,alpha:a},n="rgb")=>{let i={mode:n,r:em(e),g:em(r),b:em(t)};return a!==void 0&&(i.alpha=a),i},Vo=fV,cV=({x:e,y:r,z:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=Vo({r:e*3.2409699419045226-r*1.537383177570094-.4986107602930034*t,g:e*-.9692436362808796+r*1.8759675015077204+.0415550574071756*t,b:e*.0556300796969936-r*.2039769588889765+1.0569715142428784*t});return a!==void 0&&(n.alpha=a),n},Bl=cV,vV=Ct(ot({},Uo),{mode:"a98",parse:["a98-rgb"],serialize:"a98-rgb",fromMode:{rgb:e=>Tm(Il(e)),xyz65:Tm},toMode:{rgb:e=>Bl(Mm(e)),xyz65:Mm}}),K_=vV,dV=e=>(e=e%360)<0?e+360:e,Ba=dV,n2=(e,r)=>e.map((t,a,n)=>{if(t===void 0)return t;let i=Ba(t);return a===0||e[a-1]===void 0?i:r(i-Ba(n[a-1]))}).reduce((t,a)=>!t.length||a===void 0||t[t.length-1]===void 0?(t.push(a),t):(t.push(a+t[t.length-1]),t),[]),Gi=e=>n2(e,r=>Math.abs(r)<=180?r:r-360*Math.sign(r)),hV=e=>n2(e,r=>Math.abs(r)>=180||r===0?r:r-360*Math.sign(r)),pV=e=>n2(e,r=>r>=0?r:r+360),mV=e=>n2(e,r=>r<=0?r:r-360),Pa=[-.14861,1.78277,-.29227,-.90649,1.97294,0],yV=Math.PI/180,gV=180/Math.PI,D_=Pa[3]*Pa[4],L_=Pa[1]*Pa[4],q_=Pa[1]*Pa[2]-Pa[0]*Pa[3],bV=({r:e,g:r,b:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=(q_*t+e*D_-r*L_)/(q_+D_-L_),i=t-n,l=(Pa[4]*(r-n)-Pa[2]*i)/Pa[3],o={mode:"cubehelix",l:n,s:n===0||n===1?void 0:Math.sqrt(i*i+l*l)/(Pa[4]*n*(1-n))};return o.s&&(o.h=Math.atan2(l,i)*gV-120),a!==void 0&&(o.alpha=a),o},j_=bV,xV=({h:e,s:r,l:t,alpha:a})=>{let n={mode:"rgb"};e=(e===void 0?0:e+120)*yV,t===void 0&&(t=0);let i=r===void 0?0:r*t*(1-t),l=Math.cos(e),o=Math.sin(e);return n.r=t+i*(Pa[0]*l+Pa[1]*o),n.g=t+i*(Pa[2]*l+Pa[3]*o),n.b=t+i*(Pa[4]*l+Pa[5]*o),a!==void 0&&(n.alpha=a),n},Q_=xV,lf=(e,r)=>{if(e.h===void 0||r.h===void 0||!e.s||!r.s)return 0;let t=Ba(e.h),a=Ba(r.h),n=Math.sin((a-t+360)/2*Math.PI/180);return 2*Math.sqrt(e.s*r.s)*n},e7=(e,r)=>{if(e.h===void 0||r.h===void 0)return 0;let t=Ba(e.h),a=Ba(r.h);return Math.abs(a-t)>180?t-(a-360*Math.sign(a-t)):a-t},of=(e,r)=>{if(e.h===void 0||r.h===void 0||!e.c||!r.c)return 0;let t=Ba(e.h),a=Ba(r.h),n=Math.sin((a-t+360)/2*Math.PI/180);return 2*Math.sqrt(e.c*r.c)*n},v0=(e="rgb",r=[1,1,1,0])=>{let t=$a(e),a=t.channels,n=t.difference,i=xt(e);return(l,o)=>{let s=i(l),u=i(o);return Math.sqrt(a.reduce((f,c,d)=>{let h=n[c]?n[c](s,u):s[c]-u[c];return f+(r[d]||0)*Math.pow(isNaN(h)?0:h,2)},0))}},_V=()=>v0("lab65"),wV=(e=1,r=.045,t=.015)=>{let a=xt("lab65");return(n,i)=>{let l=a(n),o=a(i),s=l.l,u=l.a,f=l.b,c=Math.sqrt(u*u+f*f),d=o.l,h=o.a,m=o.b,g=Math.sqrt(h*h+m*m),y=Math.pow(s-d,2),x=Math.pow(c-g,2),w=Math.pow(u-h,2)+Math.pow(f-m,2)-x;return Math.sqrt(y/Math.pow(e,2)+x/Math.pow(1+r*c,2)+w/Math.pow(1+t*c,2))}},MV=(e=1,r=1,t=1)=>{let a=xt("lab65");return(n,i)=>{let l=a(n),o=a(i),s=l.l,u=l.a,f=l.b,c=Math.sqrt(u*u+f*f),d=o.l,h=o.a,m=o.b,g=Math.sqrt(h*h+m*m),y=(c+g)/2,x=.5*(1-Math.sqrt(Math.pow(y,7)/(Math.pow(y,7)+Math.pow(25,7)))),w=u*(1+x),T=h*(1+x),b=Math.sqrt(w*w+f*f),M=Math.sqrt(T*T+m*m),S=Math.abs(w)+Math.abs(f)===0?0:Math.atan2(f,w);S+=(S<0)*2*Math.PI;let A=Math.abs(T)+Math.abs(m)===0?0:Math.atan2(m,T);A+=(A<0)*2*Math.PI;let L=d-s,q=M-b,P=b*M===0?0:A-S;P-=(P>Math.PI)*2*Math.PI,P+=(P<-Math.PI)*2*Math.PI;let z=2*Math.sqrt(b*M)*Math.sin(P/2),N=(s+d)/2,I=(b+M)/2,B;b*M===0?B=S+A:(B=(S+A)/2,B-=(Math.abs(S-A)>Math.PI)*Math.PI,B+=(B<0)*2*Math.PI);let H=Math.pow(N-50,2),Y=1-.17*Math.cos(B-Math.PI/6)+.24*Math.cos(2*B)+.32*Math.cos(3*B+Math.PI/30)-.2*Math.cos(4*B-63*Math.PI/180),G=1+.015*H/Math.sqrt(20+H),O=1+.045*I,X=1+.015*I*Y,Z=30*Math.PI/180*Math.exp(-1*Math.pow((180/Math.PI*B-275)/25,2)),W=2*Math.sqrt(Math.pow(I,7)/(Math.pow(I,7)+Math.pow(25,7))),ee=-1*Math.sin(2*Z)*W;return Math.sqrt(Math.pow(L/(e*G),2)+Math.pow(q/(r*O),2)+Math.pow(z/(t*X),2)+ee*q/(r*O)*z/(t*X))}},TV=(e=1,r=1)=>{let t=xt("lab65");return(a,n)=>{let i=t(a),l=i.l,o=i.a,s=i.b,u=Math.sqrt(o*o+s*s),f=Math.atan2(s,o);f=f+2*Math.PI*(f<0);let c=t(n),d=c.l,h=c.a,m=c.b,g=Math.sqrt(h*h+m*m),y=Math.pow(l-d,2),x=Math.pow(u-g,2),w=Math.pow(o-h,2)+Math.pow(s-m,2)-x,T=Math.sqrt(Math.pow(u,4)/(Math.pow(u,4)+1900)),b=f>=164/180*Math.PI&&f<=345/180*Math.PI?.56+Math.abs(.2*Math.cos(f+168/180*Math.PI)):.36+Math.abs(.4*Math.cos(f+35/180*Math.PI)),M=l<16?.511:.040975*l/(1+.01765*l),S=.0638*u/(1+.0131*u)+.638,A=S*(T*b+1-T);return Math.sqrt(y/Math.pow(e*M,2)+x/Math.pow(r*S,2)+w/Math.pow(A,2))}},AV=()=>{let e=xt("lab65");return(r,t)=>{let a=e(r),n=e(t),i=a.l-n.l,l=a.a-n.a,o=a.b-n.b;return Math.abs(i)+Math.sqrt(l*l+o*o)}},kV=()=>v0("yiq",[.5053,.299,.1957]),CV=()=>v0("itp",[518400,129600,518400]),Vi=e=>{let r=e.reduce((a,n)=>{if(n!==void 0){let i=n*Math.PI/180;a.sin+=Math.sin(i),a.cos+=Math.cos(i)}return a},{sin:0,cos:0}),t=Math.atan2(r.sin,r.cos)*180/Math.PI;return t<0?360+t:t},r7=e=>{let r=e.filter(t=>t!==void 0);return r.length?r.reduce((t,a)=>t+a,0)/r.length:void 0},rm=e=>typeof e=="function";function SV(e,r="rgb",t){let a=$a(r),n=e.map(xt(r));return a.channels.reduce((i,l)=>{let o=n.map(s=>s[l]).filter(s=>s!==void 0);if(o.length){let s;rm(t)?s=t:t&&rm(t[l])?s=t[l]:a.average&&rm(a.average[l])?s=a.average[l]:s=r7,i[l]=s(o,l)}return i},{mode:r})}var DV={mode:"cubehelix",channels:["h","s","l","alpha"],parse:["--cubehelix"],serialize:"--cubehelix",ranges:{h:[0,360],s:[0,4.614],l:[0,1]},fromMode:{rgb:j_},toMode:{rgb:Q_},interpolate:{h:{use:_r,fixup:Gi},s:_r,l:_r,alpha:{use:_r,fixup:pa}},difference:{h:lf},average:{h:Vi}},t7=DV,LV=({l:e,a:r,b:t,alpha:a},n="lch")=>{r===void 0&&(r=0),t===void 0&&(t=0);let i=Math.sqrt(r*r+t*t),l={mode:n,l:e,c:i};return i&&(l.h=Ba(Math.atan2(t,r)*180/Math.PI)),a!==void 0&&(l.alpha=a),l},hl=LV,qV=({l:e,c:r,h:t,alpha:a},n="lab")=>{t===void 0&&(t=0);let i={mode:n,l:e,a:r?r*Math.cos(t/180*Math.PI):0,b:r?r*Math.sin(t/180*Math.PI):0};return a!==void 0&&(i.alpha=a),i},pl=qV,a7=Math.pow(29,3)/Math.pow(3,3),n7=Math.pow(6,3)/Math.pow(29,3),ha={X:.3457/.3585,Y:1,Z:(1-.3457-.3585)/.3585},u0={X:.3127/.329,Y:1,Z:(1-.3127-.329)/.329},Cye=Math.pow(29,3)/Math.pow(3,3),Sye=Math.pow(6,3)/Math.pow(29,3),tm=e=>Math.pow(e,3)>n7?Math.pow(e,3):(116*e-16)/a7,EV=({l:e,a:r,b:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=(e+16)/116,i=r/500+n,l=n-t/200,o={mode:"xyz65",x:tm(i)*u0.X,y:tm(n)*u0.Y,z:tm(l)*u0.Z};return a!==void 0&&(o.alpha=a),o},Vm=EV,PV=e=>Bl(Vm(e)),sf=PV,am=e=>e>n7?Math.cbrt(e):(a7*e+16)/116,RV=({x:e,y:r,z:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=am(e/u0.X),i=am(r/u0.Y),l=am(t/u0.Z),o={mode:"lab65",l:116*i-16,a:500*(n-i),b:200*(i-l)};return a!==void 0&&(o.alpha=a),o},Xm=RV,zV=e=>{let r=Xm(Il(e));return e.r===e.b&&e.b===e.g&&(r.a=r.b=0),r},uf=zV,$v=1,i7=1,nf=26/180*Math.PI,Kv=Math.cos(nf),jv=Math.sin(nf),l7=100/Math.log(139/100),FV=({l:e,c:r,h:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n={mode:"lab65",l:(Math.exp(e*$v/l7)-1)/.0039},i=(Math.exp(.0435*r*i7*$v)-1)/.075,l=i*Math.cos(t/180*Math.PI-nf),o=i*Math.sin(t/180*Math.PI-nf);return n.a=l*Kv-o/.83*jv,n.b=l*jv+o/.83*Kv,a!==void 0&&(n.alpha=a),n},Qv=FV,NV=({l:e,a:r,b:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=r*Kv+t*jv,i=.83*(t*Kv-r*jv),l=Math.sqrt(n*n+i*i),o={mode:"dlch",l:l7/$v*Math.log(1+.0039*e),c:Math.log(1+.075*l)/(.0435*i7*$v)};return o.c&&(o.h=Ba((Math.atan2(i,n)+nf)/Math.PI*180)),a!==void 0&&(o.alpha=a),o},e2=NV,E_=e=>Qv(hl(e,"dlch")),P_=e=>pl(e2(e),"dlab"),IV={mode:"dlab",parse:["--din99o-lab"],serialize:"--din99o-lab",toMode:{lab65:E_,rgb:e=>sf(E_(e))},fromMode:{lab65:P_,rgb:e=>P_(uf(e))},channels:["l","a","b","alpha"],ranges:{l:[0,100],a:[-40.09,45.501],b:[-40.469,44.344]},interpolate:{l:_r,a:_r,b:_r,alpha:{use:_r,fixup:pa}}},o7=IV,BV={mode:"dlch",parse:["--din99o-lch"],serialize:"--din99o-lch",toMode:{lab65:Qv,dlab:e=>pl(e,"dlab"),rgb:e=>sf(Qv(e))},fromMode:{lab65:e2,dlab:e=>hl(e,"dlch"),rgb:e=>e2(uf(e))},channels:["l","c","h","alpha"],ranges:{l:[0,100],c:[0,51.484],h:[0,360]},interpolate:{l:_r,c:_r,h:{use:_r,fixup:Gi},alpha:{use:_r,fixup:pa}},difference:{h:of},average:{h:Vi}},s7=BV;function u7({h:e,s:r,i:t,alpha:a}){e=Ba(e!==void 0?e:0),r===void 0&&(r=0),t===void 0&&(t=0);let n=Math.abs(e/60%2-1),i;switch(Math.floor(e/60)){case 0:i={r:t*(1+r*(3/(2-n)-1)),g:t*(1+r*(3*(1-n)/(2-n)-1)),b:t*(1-r)};break;case 1:i={r:t*(1+r*(3*(1-n)/(2-n)-1)),g:t*(1+r*(3/(2-n)-1)),b:t*(1-r)};break;case 2:i={r:t*(1-r),g:t*(1+r*(3/(2-n)-1)),b:t*(1+r*(3*(1-n)/(2-n)-1))};break;case 3:i={r:t*(1-r),g:t*(1+r*(3*(1-n)/(2-n)-1)),b:t*(1+r*(3/(2-n)-1))};break;case 4:i={r:t*(1+r*(3*(1-n)/(2-n)-1)),g:t*(1-r),b:t*(1+r*(3/(2-n)-1))};break;case 5:i={r:t*(1+r*(3/(2-n)-1)),g:t*(1-r),b:t*(1+r*(3*(1-n)/(2-n)-1))};break;default:i={r:t*(1-r),g:t*(1-r),b:t*(1-r)}}return i.mode="rgb",a!==void 0&&(i.alpha=a),i}function f7({r:e,g:r,b:t,alpha:a}){e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=Math.max(e,r,t),i=Math.min(e,r,t),l={mode:"hsi",s:e+r+t===0?0:1-3*i/(e+r+t),i:(e+r+t)/3};return n-i!==0&&(l.h=(n===e?(r-t)/(n-i)+(r{switch(r){case"deg":return+e;case"rad":return e/Math.PI*180;case"grad":return e/10*9;case"turn":return e*360}},YV=OV,UV=new RegExp(`^hsla?\\(\\s*${BG}${f0}${tf}${f0}${tf}\\s*(?:,\\s*${Um}\\s*)?\\)$`),GV=e=>{let r=e.match(UV);if(!r)return;let t={mode:"hsl"};return r[3]!==void 0?t.h=+r[3]:r[1]!==void 0&&r[2]!==void 0&&(t.h=YV(r[1],r[2])),r[4]!==void 0&&(t.s=Math.min(Math.max(0,r[4]/100),1)),r[5]!==void 0&&(t.l=Math.min(Math.max(0,r[5]/100),1)),r[6]!==void 0?t.alpha=Math.max(0,Math.min(1,r[6]/100)):r[7]!==void 0&&(t.alpha=Math.max(0,Math.min(1,+r[7]))),t},h7=GV;function VV(e,r){if(!r||r[0]!=="hsl"&&r[0]!=="hsla")return;let t={mode:"hsl"},[,a,n,i,l]=r;if(a.type!==vr.None){if(a.type===vr.Percentage)return;t.h=a.value}if(n.type!==vr.None){if(n.type===vr.Hue)return;t.s=n.value/100}if(i.type!==vr.None){if(i.type===vr.Hue)return;t.l=i.value/100}return l.type!==vr.None&&(t.alpha=Math.min(1,Math.max(0,l.type===vr.Number?l.value:l.value/100))),t}var p7=VV,XV={mode:"hsl",toMode:{rgb:v7},fromMode:{rgb:d7},channels:["h","s","l","alpha"],ranges:{h:[0,360]},gamut:"rgb",parse:[p7,h7],serialize:e=>`hsl(${e.h!==void 0?e.h:"none"} ${e.s!==void 0?e.s*100+"%":"none"} ${e.l!==void 0?e.l*100+"%":"none"}${e.alpha<1?` / ${e.alpha}`:""})`,interpolate:{h:{use:_r,fixup:Gi},s:_r,l:_r,alpha:{use:_r,fixup:pa}},difference:{h:lf},average:{h:Vi}},Wm=XV;function Zm({h:e,s:r,v:t,alpha:a}){e=Ba(e!==void 0?e:0),r===void 0&&(r=0),t===void 0&&(t=0);let n=Math.abs(e/60%2-1),i;switch(Math.floor(e/60)){case 0:i={r:t,g:t*(1-r*n),b:t*(1-r)};break;case 1:i={r:t*(1-r*n),g:t,b:t*(1-r)};break;case 2:i={r:t*(1-r),g:t,b:t*(1-r*n)};break;case 3:i={r:t*(1-r),g:t*(1-r*n),b:t};break;case 4:i={r:t*(1-r*n),g:t*(1-r),b:t};break;case 5:i={r:t,g:t*(1-r),b:t*(1-r*n)};break;default:i={r:t*(1-r),g:t*(1-r),b:t*(1-r)}}return i.mode="rgb",a!==void 0&&(i.alpha=a),i}function Jm({r:e,g:r,b:t,alpha:a}){e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=Math.max(e,r,t),i=Math.min(e,r,t),l={mode:"hsv",s:n===0?0:1-i/n,v:n};return n-i!==0&&(l.h=(n===e?(r-t)/(n-i)+(r1){let n=r+t;r/=n,t/=n}return Zm({h:e,s:t===1?1:1-r/(1-t),v:1-t,alpha:a})}function y7(e){let r=Jm(e);if(r===void 0)return;let t=r.s!==void 0?r.s:0,a=r.v!==void 0?r.v:0,n={mode:"hwb",w:(1-t)*a,b:1-a};return r.h!==void 0&&(n.h=r.h),r.alpha!==void 0&&(n.alpha=r.alpha),n}function ZV(e,r){if(!r||r[0]!=="hwb")return;let t={mode:"hwb"},[,a,n,i,l]=r;if(a.type!==vr.None){if(a.type===vr.Percentage)return;t.h=a.value}if(n.type!==vr.None){if(n.type===vr.Hue)return;t.w=n.value/100}if(i.type!==vr.None){if(i.type===vr.Hue)return;t.b=i.value/100}return l.type!==vr.None&&(t.alpha=Math.min(1,Math.max(0,l.type===vr.Number?l.value:l.value/100))),t}var g7=ZV,JV={mode:"hwb",toMode:{rgb:m7},fromMode:{rgb:y7},channels:["h","w","b","alpha"],ranges:{h:[0,360]},gamut:"rgb",parse:[g7],serialize:e=>`hwb(${e.h!==void 0?e.h:"none"} ${e.w!==void 0?e.w*100+"%":"none"} ${e.b!==void 0?e.b*100+"%":"none"}${e.alpha<1?` / ${e.alpha}`:""})`,interpolate:{h:{use:_r,fixup:Gi},w:_r,b:_r,alpha:{use:_r,fixup:pa}},difference:{h:e7},average:{h:Vi}},b7=JV,x7=203,i2=.1593017578125,_7=78.84375,l2=.8359375,o2=18.8515625,s2=18.6875;function nm(e){if(e<0)return 0;let r=Math.pow(e,1/_7);return 1e4*Math.pow(Math.max(0,r-l2)/(o2-s2*r),1/i2)}function im(e){if(e<0)return 0;let r=Math.pow(e/1e4,i2);return Math.pow((l2+o2*r)/(1+s2*r),_7)}var lm=e=>Math.max(e/x7,0),$V=({i:e,t:r,p:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=nm(e+.008609037037932761*r+.11102962500302593*t),i=nm(e-.00860903703793275*r-.11102962500302599*t),l=nm(e+.5600313357106791*r-.32062717498731885*t),o={mode:"xyz65",x:lm(2.070152218389422*n-1.3263473389671556*i+.2066510476294051*l),y:lm(.3647385209748074*n+.680566024947227*i-.0453045459220346*l),z:lm(-.049747207535812*n-.0492609666966138*i+1.1880659249923042*l)};return a!==void 0&&(o.alpha=a),o},Am=$V,om=(e=0)=>Math.max(e*x7,0),KV=({x:e,y:r,z:t,alpha:a})=>{let n=om(e),i=om(r),l=om(t),o=im(.3592832590121217*n+.6976051147779502*i-.0358915932320289*l),s=im(-.1920808463704995*n+1.1004767970374323*i+.0753748658519118*l),u=im(.0070797844607477*n+.0748396662186366*i+.8433265453898765*l),f=.5*o+.5*s,c=1.61376953125*o-3.323486328125*s+1.709716796875*u,d=4.378173828125*o-4.24560546875*s-.132568359375*u,h={mode:"itp",i:f,t:c,p:d};return a!==void 0&&(h.alpha=a),h},km=KV,jV={mode:"itp",channels:["i","t","p","alpha"],parse:["--ictcp"],serialize:"--ictcp",toMode:{xyz65:Am,rgb:e=>Bl(Am(e))},fromMode:{xyz65:km,rgb:e=>km(Il(e))},ranges:{i:[0,.581],t:[-.369,.272],p:[-.164,.331]},interpolate:{i:_r,t:_r,p:_r,alpha:{use:_r,fixup:pa}}},w7=jV,QV=134.03437499999998,eX=16295499532821565e-27,sm=e=>{if(e<0)return 0;let r=Math.pow(e/1e4,i2);return Math.pow((l2+o2*r)/(1+s2*r),QV)},um=(e=0)=>Math.max(e*203,0),rX=({x:e,y:r,z:t,alpha:a})=>{e=um(e),r=um(r),t=um(t);let n=1.15*e-.15*t,i=.66*r+.34*e,l=sm(.41478972*n+.579999*i+.014648*t),o=sm(-.20151*n+1.120649*i+.0531008*t),s=sm(-.0166008*n+.2648*i+.6684799*t),u=(l+o)/2,f={mode:"jab",j:.44*u/(1-.56*u)-eX,a:3.524*l-4.066708*o+.542708*s,b:.199076*l+1.096799*o-1.295875*s};return a!==void 0&&(f.alpha=a),f},Km=rX,tX=134.03437499999998,R_=16295499532821565e-27,fm=e=>{if(e<0)return 0;let r=Math.pow(e,1/tX);return 1e4*Math.pow((l2-r)/(s2*r-o2),1/i2)},cm=e=>e/203,aX=({j:e,a:r,b:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=(e+R_)/(.44+.56*(e+R_)),i=fm(n+.13860504*r+.058047316*t),l=fm(n-.13860504*r-.058047316*t),o=fm(n-.096019242*r-.8118919*t),s={mode:"xyz65",x:cm(1.661373024652174*i-.914523081304348*l+.23136208173913045*o),y:cm(-.3250758611844533*i+1.571847026732543*l-.21825383453227928*o),z:cm(-.090982811*i-.31272829*l+1.5227666*o)};return a!==void 0&&(s.alpha=a),s},jm=aX,nX=e=>{let r=Km(Il(e));return e.r===e.b&&e.b===e.g&&(r.a=r.b=0),r},Qm=nX,iX=e=>Bl(jm(e)),ey=iX,lX={mode:"jab",channels:["j","a","b","alpha"],parse:["--jzazbz"],serialize:"--jzazbz",fromMode:{rgb:Qm,xyz65:Km},toMode:{rgb:ey,xyz65:jm},ranges:{j:[0,.222],a:[-.109,.129],b:[-.185,.134]},interpolate:{j:_r,a:_r,b:_r,alpha:{use:_r,fixup:pa}}},M7=lX,oX=({j:e,a:r,b:t,alpha:a})=>{r===void 0&&(r=0),t===void 0&&(t=0);let n=Math.sqrt(r*r+t*t),i={mode:"jch",j:e,c:n};return n&&(i.h=Ba(Math.atan2(t,r)*180/Math.PI)),a!==void 0&&(i.alpha=a),i},Cm=oX,sX=({j:e,c:r,h:t,alpha:a})=>{t===void 0&&(t=0);let n={mode:"jab",j:e,a:r?r*Math.cos(t/180*Math.PI):0,b:r?r*Math.sin(t/180*Math.PI):0};return a!==void 0&&(n.alpha=a),n},Sm=sX,uX={mode:"jch",parse:["--jzczhz"],serialize:"--jzczhz",toMode:{jab:Sm,rgb:e=>ey(Sm(e))},fromMode:{rgb:e=>Cm(Qm(e)),jab:Cm},channels:["j","c","h","alpha"],ranges:{j:[0,.221],c:[0,.19],h:[0,360]},interpolate:{h:{use:_r,fixup:Gi},c:_r,j:_r,alpha:{use:_r,fixup:pa}},difference:{h:of},average:{h:Vi}},T7=uX,u2=Math.pow(29,3)/Math.pow(3,3),ry=Math.pow(6,3)/Math.pow(29,3),vm=e=>Math.pow(e,3)>ry?Math.pow(e,3):(116*e-16)/u2,fX=({l:e,a:r,b:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=(e+16)/116,i=r/500+n,l=n-t/200,o={mode:"xyz50",x:vm(i)*ha.X,y:vm(n)*ha.Y,z:vm(l)*ha.Z};return a!==void 0&&(o.alpha=a),o},f2=fX,cX=({x:e,y:r,z:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=Vo({r:e*3.1341359569958707-r*1.6173863321612538-.4906619460083532*t,g:e*-.978795502912089+r*1.916254567259524+.03344273116131949*t,b:e*.07195537988411677-r*.2289768264158322+1.405386058324125*t});return a!==void 0&&(n.alpha=a),n},d0=cX,vX=e=>d0(f2(e)),ty=vX,dX=e=>{let{r,g:t,b:a,alpha:n}=Go(e),i={mode:"xyz50",x:.436065742824811*r+.3851514688337912*t+.14307845442264197*a,y:.22249319175623702*r+.7168870538238823*t+.06061979053616537*a,z:.013923904500943465*r+.09708128566574634*t+.7140993584005155*a};return n!==void 0&&(i.alpha=n),i},h0=dX,dm=e=>e>ry?Math.cbrt(e):(u2*e+16)/116,hX=({x:e,y:r,z:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=dm(e/ha.X),i=dm(r/ha.Y),l=dm(t/ha.Z),o={mode:"lab",l:116*i-16,a:500*(n-i),b:200*(i-l)};return a!==void 0&&(o.alpha=a),o},c2=hX,pX=e=>{let r=c2(h0(e));return e.r===e.b&&e.b===e.g&&(r.a=r.b=0),r},ay=pX;function mX(e,r){if(!r||r[0]!=="lab")return;let t={mode:"lab"},[,a,n,i,l]=r;if(!(a.type===vr.Hue||n.type===vr.Hue||i.type===vr.Hue))return a.type!==vr.None&&(t.l=Math.min(Math.max(0,a.value),100)),n.type!==vr.None&&(t.a=n.type===vr.Number?n.value:n.value*125/100),i.type!==vr.None&&(t.b=i.type===vr.Number?i.value:i.value*125/100),l.type!==vr.None&&(t.alpha=Math.min(1,Math.max(0,l.type===vr.Number?l.value:l.value/100))),t}var A7=mX,yX={mode:"lab",toMode:{xyz50:f2,rgb:ty},fromMode:{xyz50:c2,rgb:ay},channels:["l","a","b","alpha"],ranges:{l:[0,100],a:[-125,125],b:[-125,125]},parse:[A7],serialize:e=>`lab(${e.l!==void 0?e.l:"none"} ${e.a!==void 0?e.a:"none"} ${e.b!==void 0?e.b:"none"}${e.alpha<1?` / ${e.alpha}`:""})`,interpolate:{l:_r,a:_r,b:_r,alpha:{use:_r,fixup:pa}}},v2=yX,gX=Ct(ot({},v2),{mode:"lab65",parse:["--lab-d65"],serialize:"--lab-d65",toMode:{xyz65:Vm,rgb:sf},fromMode:{xyz65:Xm,rgb:uf},ranges:{l:[0,100],a:[-125,125],b:[-125,125]}}),k7=gX;function bX(e,r){if(!r||r[0]!=="lch")return;let t={mode:"lch"},[,a,n,i,l]=r;if(a.type!==vr.None){if(a.type===vr.Hue)return;t.l=Math.min(Math.max(0,a.value),100)}if(n.type!==vr.None&&(t.c=Math.max(0,n.type===vr.Number?n.value:n.value*150/100)),i.type!==vr.None){if(i.type===vr.Percentage)return;t.h=i.value}return l.type!==vr.None&&(t.alpha=Math.min(1,Math.max(0,l.type===vr.Number?l.value:l.value/100))),t}var C7=bX,xX={mode:"lch",toMode:{lab:pl,rgb:e=>ty(pl(e))},fromMode:{rgb:e=>hl(ay(e)),lab:hl},channels:["l","c","h","alpha"],ranges:{l:[0,100],c:[0,150],h:[0,360]},parse:[C7],serialize:e=>`lch(${e.l!==void 0?e.l:"none"} ${e.c!==void 0?e.c:"none"} ${e.h!==void 0?e.h:"none"}${e.alpha<1?` / ${e.alpha}`:""})`,interpolate:{h:{use:_r,fixup:Gi},c:_r,l:_r,alpha:{use:_r,fixup:pa}},difference:{h:of},average:{h:Vi}},d2=xX,_X=Ct(ot({},d2),{mode:"lch65",parse:["--lch-d65"],serialize:"--lch-d65",toMode:{lab65:e=>pl(e,"lab65"),rgb:e=>sf(pl(e,"lab65"))},fromMode:{rgb:e=>hl(uf(e),"lch65"),lab65:e=>hl(e,"lch65")},ranges:{l:[0,100],c:[0,150],h:[0,360]}}),S7=_X,wX=({l:e,u:r,v:t,alpha:a})=>{r===void 0&&(r=0),t===void 0&&(t=0);let n=Math.sqrt(r*r+t*t),i={mode:"lchuv",l:e,c:n};return n&&(i.h=Ba(Math.atan2(t,r)*180/Math.PI)),a!==void 0&&(i.alpha=a),i},ny=wX,MX=({l:e,c:r,h:t,alpha:a})=>{t===void 0&&(t=0);let n={mode:"luv",l:e,u:r?r*Math.cos(t/180*Math.PI):0,v:r?r*Math.sin(t/180*Math.PI):0};return a!==void 0&&(n.alpha=a),n},iy=MX,D7=(e,r,t)=>4*e/(e+15*r+3*t),L7=(e,r,t)=>9*r/(e+15*r+3*t),TX=D7(ha.X,ha.Y,ha.Z),AX=L7(ha.X,ha.Y,ha.Z),kX=e=>e<=ry?u2*e:116*Math.cbrt(e)-16,CX=({x:e,y:r,z:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=kX(r/ha.Y),i=D7(e,r,t),l=L7(e,r,t);!isFinite(i)||!isFinite(l)?n=i=l=0:(i=13*n*(i-TX),l=13*n*(l-AX));let o={mode:"luv",l:n,u:i,v:l};return a!==void 0&&(o.alpha=a),o},r2=CX,SX=(e,r,t)=>4*e/(e+15*r+3*t),DX=(e,r,t)=>9*r/(e+15*r+3*t),LX=SX(ha.X,ha.Y,ha.Z),qX=DX(ha.X,ha.Y,ha.Z),EX=({l:e,u:r,v:t,alpha:a})=>{if(e===void 0&&(e=0),e===0)return{mode:"xyz50",x:0,y:0,z:0};r===void 0&&(r=0),t===void 0&&(t=0);let n=r/(13*e)+LX,i=t/(13*e)+qX,l=ha.Y*(e<=8?e/u2:Math.pow((e+16)/116,3)),o=l*(9*n)/(4*i),s=l*(12-3*n-20*i)/(4*i),u={mode:"xyz50",x:o,y:l,z:s};return a!==void 0&&(u.alpha=a),u},t2=EX,PX=e=>ny(r2(h0(e))),RX=e=>d0(t2(iy(e))),zX={mode:"lchuv",toMode:{luv:iy,rgb:RX},fromMode:{rgb:PX,luv:ny},channels:["l","c","h","alpha"],parse:["--lchuv"],serialize:"--lchuv",ranges:{l:[0,100],c:[0,176.956],h:[0,360]},interpolate:{h:{use:_r,fixup:Gi},c:_r,l:_r,alpha:{use:_r,fixup:pa}},difference:{h:of},average:{h:Vi}},q7=zX,FX=Ct(ot({},Uo),{mode:"lrgb",toMode:{rgb:Vo},fromMode:{rgb:Go},parse:["srgb-linear"],serialize:"srgb-linear"}),E7=FX,NX={mode:"luv",toMode:{xyz50:t2,rgb:e=>d0(t2(e))},fromMode:{xyz50:r2,rgb:e=>r2(h0(e))},channels:["l","u","v","alpha"],parse:["--luv"],serialize:"--luv",ranges:{l:[0,100],u:[-84.936,175.042],v:[-125.882,87.243]},interpolate:{l:_r,u:_r,v:_r,alpha:{use:_r,fixup:pa}}},P7=NX,IX=({r:e,g:r,b:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=Math.cbrt(.412221469470763*e+.5363325372617348*r+.0514459932675022*t),i=Math.cbrt(.2119034958178252*e+.6806995506452344*r+.1073969535369406*t),l=Math.cbrt(.0883024591900564*e+.2817188391361215*r+.6299787016738222*t),o={mode:"oklab",l:.210454268309314*n+.7936177747023054*i-.0040720430116193*l,a:1.9779985324311684*n-2.42859224204858*i+.450593709617411*l,b:.0259040424655478*n+.7827717124575296*i-.8086757549230774*l};return a!==void 0&&(o.alpha=a),o},ly=IX,BX=e=>{let r=ly(Go(e));return e.r===e.b&&e.b===e.g&&(r.a=r.b=0),r},ff=BX,HX=({l:e,a:r,b:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=Math.pow(e+.3963377773761749*r+.2158037573099136*t,3),i=Math.pow(e-.1055613458156586*r-.0638541728258133*t,3),l=Math.pow(e-.0894841775298119*r-1.2914855480194092*t,3),o={mode:"lrgb",r:4.076741636075957*n-3.3077115392580616*i+.2309699031821044*l,g:-1.2684379732850317*n+2.6097573492876887*i-.3413193760026573*l,b:-.0041960761386756*n-.7034186179359362*i+1.7076146940746117*l};return a!==void 0&&(o.alpha=a),o},p0=HX,OX=e=>Vo(p0(e)),cf=OX;function Dm(e){let a=1.170873786407767;return .5*(a*e-.206+Math.sqrt((a*e-.206)*(a*e-.206)+4*.03*a*e))}function a2(e){return(e*e+.206*e)/(1.170873786407767*(e+.03))}function YX(e,r){let t,a,n,i,l,o,s,u;-1.88170328*e-.80936493*r>1?(t=1.19086277,a=1.76576728,n=.59662641,i=.75515197,l=.56771245,o=4.0767416621,s=-3.3077115913,u=.2309699292):1.81444104*e-1.19445276*r>1?(t=.73956515,a=-.45954404,n=.08285427,i=.1254107,l=.14503204,o=-1.2684380046,s=2.6097574011,u=-.3413193965):(t=1.35733652,a=-.00915799,n=-1.1513021,i=-.50559606,l=.00692167,o=-.0041960863,s=-.7034186147,u=1.707614701);let f=t+a*e+n*r+i*e*e+l*e*r,c=.3963377774*e+.2158037573*r,d=-.1055613458*e-.0638541728*r,h=-.0894841775*e-1.291485548*r;{let m=1+f*c,g=1+f*d,y=1+f*h,x=m*m*m,w=g*g*g,T=y*y*y,b=3*c*m*m,M=3*d*g*g,S=3*h*y*y,A=6*c*c*m,L=6*d*d*g,q=6*h*h*y,P=o*x+s*w+u*T,z=o*b+s*M+u*S,N=o*A+s*L+u*q;f=f-P*z/(z*z-.5*P*N)}return f}function oy(e,r){let t=YX(e,r),a=p0({l:1,a:t*e,b:t*r}),n=Math.cbrt(1/Math.max(a.r,a.g,a.b)),i=n*t;return[n,i]}function UX(e,r,t,a,n,i=null){i||(i=oy(e,r));let l;if((t-n)*i[1]-(i[0]-n)*a<=0)l=i[1]*n/(a*i[0]+i[1]*(n-t));else{l=i[1]*(n-1)/(a*(i[0]-1)+i[1]*(n-t));{let o=t-n,s=a,u=.3963377774*e+.2158037573*r,f=-.1055613458*e-.0638541728*r,c=-.0894841775*e-1.291485548*r,d=o+s*u,h=o+s*f,m=o+s*c;{let g=n*(1-l)+l*t,y=l*a,x=g+y*u,w=g+y*f,T=g+y*c,b=x*x*x,M=w*w*w,S=T*T*T,A=3*d*x*x,L=3*h*w*w,q=3*m*T*T,P=6*d*d*x,z=6*h*h*w,N=6*m*m*T,I=4.0767416621*b-3.3077115913*M+.2309699292*S-1,B=4.0767416621*A-3.3077115913*L+.2309699292*q,H=4.0767416621*P-3.3077115913*z+.2309699292*N,Y=B/(B*B-.5*I*H),G=-I*Y,O=-1.2684380046*b+2.6097574011*M-.3413193965*S-1,X=-1.2684380046*A+2.6097574011*L-.3413193965*q,Z=-1.2684380046*P+2.6097574011*z-.3413193965*N,W=X/(X*X-.5*O*Z),ee=-O*W,ne=-.0041960863*b-.7034186147*M+1.707614701*S-1,fe=-.0041960863*A-.7034186147*L+1.707614701*q,we=-.0041960863*P-.7034186147*z+1.707614701*N,j=fe/(fe*fe-.5*ne*we),_e=-ne*j;G=Y>=0?G:1e6,ee=W>=0?ee:1e6,_e=j>=0?_e:1e6,l+=Math.min(G,Math.min(ee,_e))}}}return l}function sy(e,r,t=null){t||(t=oy(e,r));let a=t[0],n=t[1];return[n/a,n/(1-a)]}function R7(e,r,t){let a=oy(r,t),n=UX(r,t,e,1,e,a),i=sy(r,t,a),l=.11516993+1/(7.4477897+4.1590124*t+r*(-2.19557347+1.75198401*t+r*(-2.13704948-10.02301043*t+r*(-4.24894561+5.38770819*t+4.69891013*r)))),o=.11239642+1/(1.6132032-.68124379*t+r*(.40370612+.90148123*t+r*(-.27087943+.6122399*t+r*(.00299215-.45399568*t-.14661872*r)))),s=n/Math.min(e*i[0],(1-e)*i[1]),u=e*l,f=(1-e)*o,c=.9*s*Math.sqrt(Math.sqrt(1/(1/(u*u*u*u)+1/(f*f*f*f))));return u=e*.4,f=(1-e)*.8,[Math.sqrt(1/(1/(u*u)+1/(f*f))),c,n]}function Lm(e){let r=e.l!==void 0?e.l:0,t=e.a!==void 0?e.a:0,a=e.b!==void 0?e.b:0,n={mode:"okhsl",l:Dm(r)};e.alpha!==void 0&&(n.alpha=e.alpha);let i=Math.sqrt(t*t+a*a);if(!i)return n.s=0,n;let[l,o,s]=R7(r,t/i,a/i),u;if(iLm(ff(e))},toMode:{oklab:qm,rgb:e=>cf(qm(e))}}),z7=GX;function Em(e){let r=e.l!==void 0?e.l:0,t=e.a!==void 0?e.a:0,a=e.b!==void 0?e.b:0,n=Math.sqrt(t*t+a*a),i=n?t/n:1,l=n?a/n:1,[o,s]=sy(i,l),u=.5,f=1-u/o,c=s/(n+r*s),d=c*r,h=c*n,m=a2(d),g=h*m/d,y=p0({l:m,a:i*g,b:l*g}),x=Math.cbrt(1/Math.max(y.r,y.g,y.b,0));r=r/x,n=n/x*Dm(r)/r,r=Dm(r);let w={mode:"okhsv",s:n?(u+s)*h/(s*u+s*f*h):0,v:r?r/d:0};return w.s&&(w.h=Ba(Math.atan2(a,t)*180/Math.PI)),e.alpha!==void 0&&(w.alpha=e.alpha),w}function Pm(e){let r={mode:"oklab"};e.alpha!==void 0&&(r.alpha=e.alpha);let t=e.h!==void 0?e.h:0,a=e.s!==void 0?e.s:0,n=e.v!==void 0?e.v:0,i=Math.cos(t/180*Math.PI),l=Math.sin(t/180*Math.PI),[o,s]=sy(i,l),u=.5,f=1-u/o,c=1-a*u/(u+s-s*f*a),d=a*s*u/(u+s-s*f*a),h=a2(c),m=d*h/c,g=p0({l:h,a:i*m,b:l*m}),y=Math.cbrt(1/Math.max(g.r,g.g,g.b,0)),x=a2(n*c),w=d*x/c;return r.l=x*y,r.a=w*i*y,r.b=w*l*y,r}var VX=Ct(ot({},$m),{mode:"okhsv",channels:["h","s","v","alpha"],parse:["--okhsv"],serialize:"--okhsv",fromMode:{oklab:Em,rgb:e=>Em(ff(e))},toMode:{oklab:Pm,rgb:e=>cf(Pm(e))}}),F7=VX;function XX(e,r){if(!r||r[0]!=="oklab")return;let t={mode:"oklab"},[,a,n,i,l]=r;if(!(a.type===vr.Hue||n.type===vr.Hue||i.type===vr.Hue))return a.type!==vr.None&&(t.l=Math.min(Math.max(0,a.type===vr.Number?a.value:a.value/100),1)),n.type!==vr.None&&(t.a=n.type===vr.Number?n.value:n.value*.4/100),i.type!==vr.None&&(t.b=i.type===vr.Number?i.value:i.value*.4/100),l.type!==vr.None&&(t.alpha=Math.min(1,Math.max(0,l.type===vr.Number?l.value:l.value/100))),t}var N7=XX,WX=Ct(ot({},v2),{mode:"oklab",toMode:{lrgb:p0,rgb:cf},fromMode:{lrgb:ly,rgb:ff},ranges:{l:[0,1],a:[-.4,.4],b:[-.4,.4]},parse:[N7],serialize:e=>`oklab(${e.l!==void 0?e.l:"none"} ${e.a!==void 0?e.a:"none"} ${e.b!==void 0?e.b:"none"}${e.alpha<1?` / ${e.alpha}`:""})`}),I7=WX;function ZX(e,r){if(!r||r[0]!=="oklch")return;let t={mode:"oklch"},[,a,n,i,l]=r;if(a.type!==vr.None){if(a.type===vr.Hue)return;t.l=Math.min(Math.max(0,a.type===vr.Number?a.value:a.value/100),1)}if(n.type!==vr.None&&(t.c=Math.max(0,n.type===vr.Number?n.value:n.value*.4/100)),i.type!==vr.None){if(i.type===vr.Percentage)return;t.h=i.value}return l.type!==vr.None&&(t.alpha=Math.min(1,Math.max(0,l.type===vr.Number?l.value:l.value/100))),t}var B7=ZX,JX=Ct(ot({},d2),{mode:"oklch",toMode:{oklab:e=>pl(e,"oklab"),rgb:e=>cf(pl(e,"oklab"))},fromMode:{rgb:e=>hl(ff(e),"oklch"),oklab:e=>hl(e,"oklch")},parse:[B7],serialize:e=>`oklch(${e.l!==void 0?e.l:"none"} ${e.c!==void 0?e.c:"none"} ${e.h!==void 0?e.h:"none"}${e.alpha<1?` / ${e.alpha}`:""})`,ranges:{l:[0,1],c:[0,.4],h:[0,360]}}),H7=JX,$X=e=>{let{r,g:t,b:a,alpha:n}=Go(e),i={mode:"xyz65",x:.486570948648216*r+.265667693169093*t+.1982172852343625*a,y:.2289745640697487*r+.6917385218365062*t+.079286914093745*a,z:0*r+.0451133818589026*t+1.043944368900976*a};return n!==void 0&&(i.alpha=n),i},Rm=$X,KX=({x:e,y:r,z:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=Vo({r:e*2.4934969119414263-r*.9313836179191242-.402710784450717*t,g:e*-.8294889695615749+r*1.7626640603183465+.0236246858419436*t,b:e*.0358458302437845-r*.0761723892680418+.9568845240076871*t},"p3");return a!==void 0&&(n.alpha=a),n},zm=KX,jX=Ct(ot({},Uo),{mode:"p3",parse:["display-p3"],serialize:"display-p3",fromMode:{rgb:e=>zm(Il(e)),xyz65:zm},toMode:{rgb:e=>Bl(Rm(e)),xyz65:Rm}}),O7=jX,hm=e=>{let r=Math.abs(e);return r>=1/512?Math.sign(e)*Math.pow(r,1/1.8):16*e},QX=({x:e,y:r,z:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n={mode:"prophoto",r:hm(e*1.3457868816471585-r*.2555720873797946-.0511018649755453*t),g:hm(e*-.5446307051249019+r*1.5082477428451466+.0205274474364214*t),b:hm(e*0+r*0+1.2119675456389452*t)};return a!==void 0&&(n.alpha=a),n},Fm=QX,pm=(e=0)=>{let r=Math.abs(e);return r>=16/512?Math.sign(e)*Math.pow(r,1.8):e/16},eW=e=>{let r=pm(e.r),t=pm(e.g),a=pm(e.b),n={mode:"xyz50",x:.7977666449006423*r+.1351812974005331*t+.0313477341283922*a,y:.2880748288194013*r+.7118352342418731*t+899369387256e-16*a,z:0*r+0*t+.8251046025104602*a};return e.alpha!==void 0&&(n.alpha=e.alpha),n},Nm=eW,rW=Ct(ot({},Uo),{mode:"prophoto",parse:["prophoto-rgb"],serialize:"prophoto-rgb",fromMode:{xyz50:Fm,rgb:e=>Fm(h0(e))},toMode:{xyz50:Nm,rgb:e=>d0(Nm(e))}}),Y7=rW,z_=1.09929682680944,tW=.018053968510807,mm=e=>{let r=Math.abs(e);return r>tW?(Math.sign(e)||1)*(z_*Math.pow(r,.45)-(z_-1)):4.5*e},aW=({x:e,y:r,z:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n={mode:"rec2020",r:mm(e*1.7166511879712683-r*.3556707837763925-.2533662813736599*t),g:mm(e*-.6666843518324893+r*1.6164812366349395+.0157685458139111*t),b:mm(e*.0176398574453108-r*.0427706132578085+.9421031212354739*t)};return a!==void 0&&(n.alpha=a),n},Im=aW,F_=1.09929682680944,nW=.018053968510807,ym=(e=0)=>{let r=Math.abs(e);return r{let r=ym(e.r),t=ym(e.g),a=ym(e.b),n={mode:"xyz65",x:.6369580483012911*r+.1446169035862083*t+.1688809751641721*a,y:.262700212011267*r+.6779980715188708*t+.059301716469862*a,z:0*r+.0280726930490874*t+1.0609850577107909*a};return e.alpha!==void 0&&(n.alpha=e.alpha),n},Bm=iW,lW=Ct(ot({},Uo),{mode:"rec2020",fromMode:{xyz65:Im,rgb:e=>Im(Il(e))},toMode:{xyz65:Bm,rgb:e=>Bl(Bm(e))},parse:["rec2020"],serialize:"rec2020"}),U7=lW,Oo=.0037930732552754493,G7=Math.cbrt(Oo),gm=e=>Math.cbrt(e)-G7,oW=e=>{let{r,g:t,b:a,alpha:n}=Go(e),i=gm(.3*r+.622*t+.078*a+Oo),l=gm(.23*r+.692*t+.078*a+Oo),o=gm(.2434226892454782*r+.2047674442449682*t+.5518098665095535*a+Oo),s={mode:"xyb",x:(i-l)/2,y:(i+l)/2,b:o-(i+l)/2};return n!==void 0&&(s.alpha=n),s},V7=oW,bm=e=>Math.pow(e+G7,3),sW=({x:e,y:r,b:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=bm(e+r)-Oo,i=bm(r-e)-Oo,l=bm(t+r)-Oo,o=Vo({r:11.031566904639861*n-9.866943908131562*i-.16462299650829934*l,g:-3.2541473810744237*n+4.418770377582723*i-.16462299650829934*l,b:-3.6588512867136815*n+2.7129230459360922*i+1.9459282407775895*l});return a!==void 0&&(o.alpha=a),o},X7=sW,uW={mode:"xyb",channels:["x","y","b","alpha"],parse:["--xyb"],serialize:"--xyb",toMode:{rgb:X7},fromMode:{rgb:V7},ranges:{x:[-.0154,.0281],y:[0,.8453],b:[-.2778,.388]},interpolate:{x:_r,y:_r,b:_r,alpha:{use:_r,fixup:pa}}},W7=uW,fW={mode:"xyz50",parse:["xyz-d50"],serialize:"xyz-d50",toMode:{rgb:d0,lab:c2},fromMode:{rgb:h0,lab:f2},channels:["x","y","z","alpha"],ranges:{x:[0,.964],y:[0,.999],z:[0,.825]},interpolate:{x:_r,y:_r,z:_r,alpha:{use:_r,fixup:pa}}},Z7=fW,cW=e=>{let{x:r,y:t,z:a,alpha:n}=e;r===void 0&&(r=0),t===void 0&&(t=0),a===void 0&&(a=0);let i={mode:"xyz50",x:1.0479298208405488*r+.0229467933410191*t-.0501922295431356*a,y:.0296278156881593*r+.990434484573249*t-.0170738250293851*a,z:-.0092430581525912*r+.0150551448965779*t+.7518742899580008*a};return n!==void 0&&(i.alpha=n),i},J7=cW,vW=e=>{let{x:r,y:t,z:a,alpha:n}=e;r===void 0&&(r=0),t===void 0&&(t=0),a===void 0&&(a=0);let i={mode:"xyz65",x:.9554734527042182*r-.0230985368742614*t+.0632593086610217*a,y:-.0283697069632081*r+1.0099954580058226*t+.021041398966943*a,z:.0123140016883199*r-.0205076964334779*t+1.3303659366080753*a};return n!==void 0&&(i.alpha=n),i},$7=vW,dW={mode:"xyz65",toMode:{rgb:Bl,xyz50:J7},fromMode:{rgb:Il,xyz50:$7},ranges:{x:[0,.95],y:[0,1],z:[0,1.088]},channels:["x","y","z","alpha"],parse:["xyz","xyz-d65"],serialize:"xyz-d65",interpolate:{x:_r,y:_r,z:_r,alpha:{use:_r,fixup:pa}}},K7=dW,hW=({r:e,g:r,b:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n={mode:"yiq",y:.29889531*e+.58662247*r+.11448223*t,i:.59597799*e-.2741761*r-.32180189*t,q:.21147017*e-.52261711*r+.31114694*t};return a!==void 0&&(n.alpha=a),n},j7=hW,pW=({y:e,i:r,q:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n={mode:"rgb",r:e+.95608445*r+.6208885*t,g:e-.27137664*r-.6486059*t,b:e-1.10561724*r+1.70250126*t};return a!==void 0&&(n.alpha=a),n},Q7=pW,mW={mode:"yiq",toMode:{rgb:Q7},fromMode:{rgb:j7},channels:["y","i","q","alpha"],parse:["--yiq"],serialize:"--yiq",ranges:{i:[-.595,.595],q:[-.522,.522]},interpolate:{y:_r,i:_r,q:_r,alpha:{use:_r,fixup:pa}}},e8=mW,yW=(e,r)=>Math.round(e*(r=Math.pow(10,r)))/r,gW=(e=4)=>r=>typeof r=="number"?yW(r,e):r,r8=gW,rf=r8(2),af=e=>Math.max(0,Math.min(1,e||0)),Yo=e=>Math.round(af(e)*255),uy=xt("rgb"),bW=xt("hsl"),fy=e=>{if(e===void 0)return;let r=Yo(e.r),t=Yo(e.g),a=Yo(e.b);return"#"+(1<<24|r<<16|t<<8|a).toString(16).slice(1)},t8=e=>{if(e===void 0)return;let r=Yo(e.alpha!==void 0?e.alpha:1);return fy(e)+(256|r).toString(16).slice(1)},a8=e=>{if(e===void 0)return;let r=Yo(e.r),t=Yo(e.g),a=Yo(e.b);return e.alpha===void 0||e.alpha===1?`rgb(${r}, ${t}, ${a})`:`rgba(${r}, ${t}, ${a}, ${rf(af(e.alpha))})`},n8=e=>{if(e===void 0)return;let r=rf(e.h||0),t=rf(af(e.s)*100)+"%",a=rf(af(e.l)*100)+"%";return e.alpha===void 0||e.alpha===1?`hsl(${r}, ${t}, ${a})`:`hsla(${r}, ${t}, ${a}, ${rf(af(e.alpha))})`},xW=e=>{let r=gi(e);if(!r)return;let t=$a(r.mode);if(!t.serialize||typeof t.serialize=="string"){let a=`color(${t.serialize||`--${r.mode}`} `;return t.channels.forEach((n,i)=>{n!=="alpha"&&(a+=(i?" ":"")+(r[n]!==void 0?r[n]:"none"))}),r.alpha!==void 0&&r.alpha<1&&(a+=` / ${r.alpha}`),a+")"}if(typeof t.serialize=="function")return t.serialize(r)},_W=e=>fy(uy(e)),wW=e=>t8(uy(e)),MW=e=>a8(uy(e)),TW=e=>n8(bW(e)),AW={normal:(e,r)=>r,multiply:(e,r)=>e*r,screen:(e,r)=>e+r-e*r,"hard-light":(e,r)=>r<.5?e*2*r:2*r*(1-e)-1,overlay:(e,r)=>e<.5?r*2*e:2*e*(1-r)-1,darken:(e,r)=>Math.min(e,r),lighten:(e,r)=>Math.max(e,r),"color-dodge":(e,r)=>e===0?0:r===1?1:Math.min(1,e/(1-r)),"color-burn":(e,r)=>e===1?1:r===0?0:1-Math.min(1,(1-e)/r),"soft-light":(e,r)=>r<.5?e-(1-2*r)*e*(1-e):e+(2*r-1)*((e<.25?((16*e-12)*e+4)*e:Math.sqrt(e))-e),difference:(e,r)=>Math.abs(e-r),exclusion:(e,r)=>e+r-2*e*r},kW=(e,r="normal",t="rgb")=>{let a=typeof r=="function"?r:AW[r],n=xt(t),i=$a(t).channels;return e.map(o=>{let s=n(o);return s.alpha===void 0&&(s.alpha=1),s}).reduce((o,s)=>{if(o===void 0)return s;let u=s.alpha+o.alpha*(1-s.alpha);return i.reduce((f,c)=>(c!=="alpha"&&(u===0?f[c]=0:(f[c]=s.alpha*(1-o.alpha)*s[c]+s.alpha*o.alpha*a(o[c],s[c])+(1-s.alpha)*o.alpha*o[c],f[c]=Math.max(0,Math.min(1,f[c]/u)))),f),{mode:t,alpha:u})})},CW=kW,SW=([e,r])=>e+Math.random()*(r-e),DW=e=>Object.keys(e).reduce((r,t)=>{let a=e[t];return r[t]=Array.isArray(a)?a:[a,a],r},{}),LW=(e="rgb",r={})=>{let t=$a(e),a=DW(r);return t.channels.reduce((n,i)=>((a.alpha||i!=="alpha")&&(n[i]=SW(a[i]||t.ranges[i])),n),{mode:e})},qW=LW,vf=(e,r="rgb",t=!1)=>{let a=r?$a(r).channels:null,n=r?xt(r):gi;return i=>{let l=n(i);if(!l)return;let o=(a||$a(l.mode).channels).reduce((u,f)=>{let c=e(l[f],f,l,r);return c!==void 0&&!isNaN(c)&&(u[f]=c),u},{mode:l.mode});if(!t)return o;let s=gi(i);return s&&s.mode!==o.mode?xt(s.mode)(o):o}},i8=(e,r,t)=>r!=="alpha"?(e||0)*(t.alpha!==void 0?t.alpha:1):e,l8=(e,r,t)=>r!=="alpha"&&t.alpha!==0?(e||0)/(t.alpha!==void 0?t.alpha:1):e,cy=(e=1,r=0)=>(t,a)=>a!=="alpha"?t*e+r:t,EW=(e=1,r=1,t=0)=>(a,n)=>n!=="alpha"?e*Math.pow(a,r)+t:a,PW=e=>{e[0]===void 0&&(e[0]=0),e[e.length-1]===void 0&&(e[e.length-1]=1);let r=1,t,a,n,i;for(;rr=>e<=0?1:e>=1?0:Math.pow(r,Math.log(.5)/Math.log(e)),o8=zW,Wv=e=>typeof e=="function",Bo=e=>e&&typeof e=="object",N_=e=>typeof e=="number",s8=(e,r="rgb",t,a)=>{let n=$a(r),i=xt(r),l=[],o=[],s={};e.forEach(d=>{Array.isArray(d)?(l.push(i(d[0])),o.push(d[1])):N_(d)||Wv(d)?s[o.length]=d:(l.push(i(d)),o.push(void 0))}),RW(o);let u=n.channels.reduce((d,h)=>{let m;return Bo(t)&&Bo(t[h])&&t[h].fixup?m=t[h].fixup:Bo(n.interpolate[h])&&n.interpolate[h].fixup?m=n.interpolate[h].fixup:m=g=>g,d[h]=m(l.map(g=>g[h])),d},{});if(a){let d=l.map((h,m)=>n.channels.reduce((g,y)=>(g[y]=u[y][m],g),{mode:r}));u=n.channels.reduce((h,m)=>(h[m]=d.map(g=>{let y=a(g[m],m,g,r);return isNaN(y)?void 0:y}),h),{})}let f=n.channels.reduce((d,h)=>{let m;return Wv(t)?m=t:Bo(t)&&Wv(t[h])?m=t[h]:Bo(t)&&Bo(t[h])&&t[h].use?m=t[h].use:Wv(n.interpolate[h])?m=n.interpolate[h]:Bo(n.interpolate[h])&&(m=n.interpolate[h].use),d[h]=m(u[h]),d},{}),c=l.length-1;return d=>{if(d=Math.min(Math.max(0,d),1),d<=o[0])return l[0];if(d>o[c])return l[c];let h=0;for(;o[h]{let M=f[b](w);return M!==void 0&&(T[b]=M),T},{mode:r})}},FW=(e,r="rgb",t)=>s8(e,r,t),u8=(e,r)=>(t,a="rgb",n)=>{let i=r?vf(r,a):void 0,l=s8(t,a,n,e);return i?o=>i(l(o)):l},NW=u8(i8,l8),Zv=(e,r)=>(e+r)%r,f8=(e,r,t,a,n)=>{let i=n*n,l=i*n;return((1-3*n+3*i-l)*e+(4-6*i+3*l)*r+(1+3*n+3*i-3*l)*t+l*a)/6},c8=e=>r=>{let t=e.length-1,a=r>=1?t-1:Math.max(0,Math.floor(r*t));return f8(a>0?e[a-1]:2*e[a]-e[a+1],e[a],e[a+1],ar=>{let t=e.length-1,a=Math.floor(r*t);return f8(e[Zv(a-1,e.length)],e[Zv(a,e.length)],e[Zv(a+1,e.length)],e[Zv(a+2,e.length)],(r-a/t)*t)},d8=e=>{let r,t=e.length-1,a=new Array(t),n=new Array(t),i=new Array(t);for(a[1]=1/4,n[1]=(6*e[1]-e[0])/4,r=2;r0&&(i[t-1]=n[t-1]),r=t-2;r>0;--r)i[r]=n[r]-a[r]*i[r+1];return i},IW=e=>c8(d8(e)),BW=e=>v8(d8(e)),s0=Math.sign,Hm=Math.min,Cn=Math.abs,vy=e=>{let r=e.length-1,t=[],a=[],n=[];for(let i=0;i0?.5*(e[i+1]-e[i-1])*r:void 0),n.push(i>0?(s0(t[i-1])+s0(t[i]))*Hm(Cn(t[i-1]),Cn(t[i]),.5*Cn(a[i])):void 0);return[t,a,n]},dy=(e,r,t)=>{let a=e.length-1,n=a*a;return i=>{let l;i>=1?l=a-1:l=Math.max(0,Math.floor(i*a));let o=i-l/a,s=o*o,u=s*o;return(r[l]+r[l+1]-2*t[l])*n*u+(3*t[l]-2*r[l]-r[l+1])*a*s+r[l]*o+e[l]}},HW=e=>{if(e.length<3)return _r(e);let r=e.length-1,[t,,a]=vy(e);return a[0]=t[0],a[r]=t[r-1],dy(e,a,t)},OW=e=>{if(e.length<3)return _r(e);let r=e.length-1,[t,a,n]=vy(e);return a[0]=(e[1]*2-e[0]*1.5-e[2]*.5)*r,a[r]=(e[r]*1.5-e[r-1]*2+e[r-2]*.5)*r,n[0]=a[0]*t[0]<=0?0:Cn(a[0])>2*Cn(t[0])?2*t[0]:a[0],n[r]=a[r]*t[r-1]<=0?0:Cn(a[r])>2*Cn(t[r-1])?2*t[r-1]:a[r],dy(e,n,t)},YW=e=>{let r=e.length-1,[t,a,n]=vy(e);a[0]=.5*(e[1]-e[r])*r,a[r]=.5*(e[0]-e[r-1])*r;let i=(e[0]-e[r])*r,l=i;return n[0]=(s0(i)+s0(t[0]))*Hm(Cn(i),Cn(t[0]),.5*Cn(a[0])),n[r]=(s0(t[r-1])+s0(l))*Hm(Cn(t[r-1]),Cn(l),.5*Cn(a[r])),dy(e,n,t)},UW=(e=1)=>e===1?r=>r:r=>Math.pow(r,e),h8=UW,GW=(e=2,r=1)=>{let t=h8(r);if(e<2)return e<1?[]:[t(.5)];let a=[];for(let n=0;n{let r={mode:e.mode,r:Math.max(0,Math.min(e.r!==void 0?e.r:0,1)),g:Math.max(0,Math.min(e.g!==void 0?e.g:0,1)),b:Math.max(0,Math.min(e.b!==void 0?e.b:0,1))};return e.alpha!==void 0&&(r.alpha=e.alpha),r},y8=e=>m8(p8(e)),g8=e=>e!==void 0&&(e.r===void 0||e.r>=0&&e.r<=1)&&(e.g===void 0||e.g>=0&&e.g<=1)&&(e.b===void 0||e.b>=0&&e.b<=1);function hy(e){return g8(p8(e))}function h2(e="rgb"){let{gamut:r}=$a(e);if(!r)return a=>!0;let t=xt(typeof r=="string"?r:e);return a=>g8(t(a))}function XW(e){return e=gi(e),e===void 0||hy(e)?e:xt(e.mode)(y8(e))}function py(e="rgb"){let{gamut:r}=$a(e);if(!r)return i=>gi(i);let t=typeof r=="string"?r:e,a=xt(t),n=h2(t);return i=>{let l=gi(i);if(!l)return;let o=a(l);if(n(o))return l;let s=m8(o);return l.mode===s.mode?s:xt(l.mode)(s)}}function WW(e,r="lch",t="rgb"){e=gi(e);let a=t==="rgb"?hy:h2(t),n=t==="rgb"?y8:py(t);if(e===void 0||a(e))return e;let i=xt(e.mode);e=xt(r)(e);let l=Ct(ot({},e),{c:0});if(!a(l))return i(n(l));let o=0,s=e.c!==void 0?e.c:0,u=$a(r).ranges.c,f=(u[1]-u[0])/Math.pow(2,13),c=l.c;for(;s-o>f;)l.c=o+(s-o)*.5,a(l)?(c=l.c,o=l.c):s=l.c;return i(a(l)?l:Ct(ot({},l),{c}))}function ZW(e="rgb",r="oklch",t=v0("oklch"),a=.02){let n=xt(e),i=$a(e);if(!i.gamut)return f=>n(f);let l=h2(e),o=py(e),s=xt(r),{ranges:u}=$a(r);if(!u.l||!u.c)throw new Error("LCH-like space expected");return f=>{if(f=gi(f),f===void 0)return;let c=ot({},s(f));if(c.l===void 0&&(c.l=0),c.c===void 0&&(c.c=0),c.l>=u.l[1]){let y=Ct(ot({},i.white),{mode:e});return f.alpha!==void 0&&(y.alpha=f.alpha),y}if(c.l<=u.l[0]){let y=Ct(ot({},i.black),{mode:e});return f.alpha!==void 0&&(y.alpha=f.alpha),y}if(l(c))return n(c);let d=0,h=c.c,m=(u.c[1]-u.c[0])/4e3,g=o(c);for(;h-d>m;)c.c=(d+h)*.5,g=o(c),l(c)||t&&a>0&&t(c,g)<=a?d=c.c:h=c.c;return n(l(c)?c:g)}}var JW=(e,r=v0(),t=a=>a)=>{let a=e.map((n,i)=>({color:t(n),i}));return(n,i=1,l=1/0)=>(isFinite(i)&&(i=Math.max(1,Math.min(i,a.length-1))),a.forEach(o=>{o.d=r(n,o.color)}),a.sort((o,s)=>o.d-s.d).slice(0,i).filter(o=>o.de[o.i]))},$W=JW,my=e=>Math.max(e,0),yy=e=>Math.max(Math.min(e,1),0),KW=(e,r,t)=>e===void 0||r===void 0?void 0:e+t*(r-e),jW=e=>{let r=1-yy(e);return[.393+.607*r,.769-.769*r,.189-.189*r,0,.349-.349*r,.686+.314*r,.168-.168*r,0,.272-.272*r,.534-.534*r,.131+.869*r,0,0,0,0,1]},QW=e=>{let r=my(e);return[.213+.787*r,.715-.715*r,.072-.072*r,0,.213-.213*r,.715+.285*r,.072-.072*r,0,.213-.213*r,.715-.715*r,.072+.928*r,0,0,0,0,1]},eZ=e=>{let r=1-yy(e);return[.2126+.7874*r,.7152-.7152*r,.0722-.0722*r,0,.2126-.2126*r,.7152+.2848*r,.0722-.0722*r,0,.2126-.2126*r,.7152-.7152*r,.0722+.9278*r,0,0,0,0,1]},rZ=e=>{let r=Math.PI*e/180,t=Math.cos(r),a=Math.sin(r);return[.213+t*.787-a*.213,.715-t*.715-a*.715,.072-t*.072+a*.928,0,.213-t*.213+a*.143,.715+t*.285+a*.14,.072-t*.072-a*.283,0,.213-t*.213-a*.787,.715-t*.715+a*.715,.072+t*.928+a*.072,0,0,0,0,1]},p2=(e,r,t=!1)=>{let a=xt(r),n=$a(r).channels;return i=>{let l=a(i);if(!l)return;let o={mode:r},s,u=n.length;for(let c=0;c{let t=my(e);return vf(cy(t),r,!0)},aZ=(e=1,r="rgb")=>{let t=my(e);return vf(cy(t,(1-t)/2),r,!0)},nZ=(e=1,r="rgb")=>p2(jW(e),r,!0),iZ=(e=1,r="rgb")=>p2(QW(e),r,!0),lZ=(e=1,r="rgb")=>p2(eZ(e),r,!0),oZ=(e=1,r="rgb")=>{let t=yy(e);return vf((a,n)=>n==="alpha"?a:KW(t,1-t,a),r,!0)},sZ=(e=0,r="rgb")=>p2(rZ(e),r,!0),uZ=xt("rgb"),fZ=[[1,0,-0,0,1,0,-0,-0,1],[.856167,.182038,-.038205,.029342,.955115,.015544,-.00288,-.001563,1.004443],[.734766,.334872,-.069637,.05184,.919198,.028963,-.004928,-.004209,1.009137],[.630323,.465641,-.095964,.069181,.890046,.040773,-.006308,-.007724,1.014032],[.539009,.579343,-.118352,.082546,.866121,.051332,-.007136,-.011959,1.019095],[.458064,.679578,-.137642,.092785,.846313,.060902,-.007494,-.016807,1.024301],[.38545,.769005,-.154455,.100526,.829802,.069673,-.007442,-.02219,1.029632],[.319627,.849633,-.169261,.106241,.815969,.07779,-.007025,-.028051,1.035076],[.259411,.923008,-.18242,.110296,.80434,.085364,-.006276,-.034346,1.040622],[.203876,.990338,-.194214,.112975,.794542,.092483,-.005222,-.041043,1.046265],[.152286,1.052583,-.204868,.114503,.786281,.099216,-.003882,-.048116,1.051998]],cZ=[[1,0,-0,0,1,0,-0,-0,1],[.866435,.177704,-.044139,.049567,.939063,.01137,-.003453,.007233,.99622],[.760729,.319078,-.079807,.090568,.889315,.020117,-.006027,.013325,.992702],[.675425,.43385,-.109275,.125303,.847755,.026942,-.00795,.018572,.989378],[.605511,.52856,-.134071,.155318,.812366,.032316,-.009376,.023176,.9862],[.547494,.607765,-.155259,.181692,.781742,.036566,-.01041,.027275,.983136],[.498864,.674741,-.173604,.205199,.754872,.039929,-.011131,.030969,.980162],[.457771,.731899,-.18967,.226409,.731012,.042579,-.011595,.034333,.977261],[.422823,.781057,-.203881,.245752,.709602,.044646,-.011843,.037423,.974421],[.392952,.82361,-.216562,.263559,.69021,.046232,-.01191,.040281,.97163],[.367322,.860646,-.227968,.280085,.672501,.047413,-.01182,.04294,.968881]],vZ=[[1,0,-0,0,1,0,-0,-0,1],[.92667,.092514,-.019184,.021191,.964503,.014306,.008437,.054813,.93675],[.89572,.13333,-.02905,.029997,.9454,.024603,.013027,.104707,.882266],[.905871,.127791,-.033662,.026856,.941251,.031893,.01341,.148296,.838294],[.948035,.08949,-.037526,.014364,.946792,.038844,.010853,.193991,.795156],[1.017277,.027029,-.044306,-.006113,.958479,.047634,.006379,.248708,.744913],[1.104996,-.046633,-.058363,-.032137,.971635,.060503,.001336,.317922,.680742],[1.193214,-.109812,-.083402,-.058496,.97941,.079086,-.002346,.403492,.598854],[1.257728,-.139648,-.118081,-.078003,.975409,.102594,-.003316,.501214,.502102],[1.278864,-.125333,-.153531,-.084748,.957674,.127074,-989e-6,.601151,.399838],[1.255528,-.076749,-.178779,-.078411,.930809,.147602,.004733,.691367,.3039]],gy=(e,r)=>{let t=Math.max(0,Math.min(1,r)),a=Math.round(t/.1),n=Math.round(t%.1),i=e[a];if(n>0&&aHo(i[s],l[s],n))}return l=>{let o=gi(l);if(o===void 0)return;let{r:s,g:u,b:f}=uZ(o),c={mode:"rgb",r:i[0]*s+i[1]*u+i[2]*f,g:i[3]*s+i[4]*u+i[5]*f,b:i[6]*s+i[7]*u+i[8]*f};return o.alpha!==void 0&&(c.alpha=o.alpha),xt(o.mode)(c)}},dZ=(e=1)=>gy(fZ,e),hZ=(e=1)=>gy(cZ,e),pZ=(e=1)=>gy(vZ,e),mZ=e=>e*e*(3-2*e),yZ=e=>.5-Math.sin(Math.asin(1-2*e)/3),gZ=e=>e*e*e*(e*(e*6-15)+10),bZ=gZ,xZ=e=>(1-Math.cos(e*Math.PI))/2,_Z=xZ;function Om(e){let r=xt("lrgb")(e);return .2126*r.r+.7152*r.g+.0722*r.b}function wZ(e,r){let t=Om(e),a=Om(r);return(Math.max(t,a)+.05)/(Math.min(t,a)+.05)}var MZ=ft(K_),TZ=ft(t7),AZ=ft(o7),kZ=ft(s7),CZ=ft(c7),SZ=ft(Wm),DZ=ft($m),LZ=ft(b7),qZ=ft(w7),EZ=ft(M7),PZ=ft(T7),RZ=ft(v2),zZ=ft(k7),FZ=ft(d2),NZ=ft(S7),IZ=ft(q7),BZ=ft(E7),HZ=ft(P7),OZ=ft(z7),YZ=ft(F7),UZ=ft(I7),GZ=ft(H7),VZ=ft(O7),XZ=ft(Y7),WZ=ft(U7),ZZ=ft(Uo),JZ=ft(W7),$Z=ft(Z7),KZ=ft(K7),jZ=ft(e8)});var by={};Rt(by,{default:()=>eJ});var QZ,eJ,xy=Pt(()=>{"use strict";QZ={format:{valType:"enumerated",values:["png","jpeg","webp","svg","full-json"],dflt:"png",description:"Sets the format of exported image."},width:{valType:"number",min:1,description:["Sets the exported image width.","Defaults to the value found in `layout.width`","If set to *null*, the exported image width will match the current graph width."].join(" ")},height:{valType:"number",min:1,description:["Sets the exported image height.","Defaults to the value found in `layout.height`","If set to *null*, the exported image height will match the current graph height."].join(" ")},scale:{valType:"number",min:0,dflt:1,description:["Sets a scaling for the generated image.","If set, all features of a graphs (e.g. text, line width)","are scaled, unlike simply setting","a bigger *width* and *height*."].join(" ")},setBackground:{valType:"any",dflt:!1,description:["Sets the image background mode.","By default, the image background is determined by `layout.paper_bgcolor`,","the *transparent* mode.","One might consider setting `setBackground` to *opaque*","when exporting a *jpeg* image as JPEGs do not support opacity."].join(" ")},imageDataOnly:{valType:"boolean",dflt:!1,description:["Determines whether or not the return value is prefixed by","the image format's corresponding 'data:image;' spec."].join(" ")}},eJ=QZ});var Hl=J((Eye,A8)=>{"use strict";var{format:rJ,width:tJ,height:aJ,scale:nJ}=(xy(),Xe(by)).default,_8=nJ,{dflt:qye}=_8,iJ=Gx(_8,["dflt"]),w8={staticPlot:{valType:"boolean",dflt:!1},typesetMath:{valType:"boolean",dflt:!0},plotlyServerURL:{valType:"string",dflt:"https://cloud.plotly.com/newchart"},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","map"],extras:[!0,!1],dflt:"gl3d+geo+map"},doubleClick:{valType:"enumerated",values:[!1,"reset","autosize","reset+autosize"],dflt:"reset+autosize"},doubleClickDelay:{valType:"number",dflt:500,min:0},showAxisDragHandles:{valType:"boolean",dflt:!0},showAxisRangeEntryBoxes:{valType:"boolean",dflt:!0},showTips:{valType:"boolean",dflt:!0},displayNotifier:{valType:"boolean",dflt:!0},displayModeBar:{valType:"enumerated",values:["hover",!0,!1],dflt:"hover"},showSendToCloud:{valType:"boolean",dflt:!0},modeBarButtonsToRemove:{valType:"any",dflt:[]},modeBarButtonsToAdd:{valType:"any",dflt:[]},modeBarButtons:{valType:"any",dflt:!1},toImageButtonOptions:{format:rJ,filename:{valType:"string"},width:tJ,height:aJ,scale:iJ},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/un/"},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},locale:{valType:"string",dflt:"en-US"},locales:{valType:"any",dflt:{}}},M8={};function T8(e,r){for(let t in e){let a=e[t];typeof a!="object"||a===null||(a.valType?"dflt"in a&&(r[t]=a.dflt):(r[t]||(r[t]={}),T8(a,r[t])))}}T8(w8,M8);A8.exports={configAttributes:w8,dfltConfig:M8}});var wy=J((Rye,k8)=>{"use strict";var _y=Or(),lJ=Xr(),df=[];k8.exports=function(e,r,t){var o;if(((o=t==null?void 0:t._context)==null?void 0:o.displayNotifier)===!1||df.indexOf(e)!==-1)return;df.push(e);var a=1e3;lJ(r)?a=r:r==="long"&&(a=3e3);var n=_y.select("body").selectAll(".plotly-notifier").data([0]);n.enter().append("div").classed("plotly-notifier",!0);var i=n.selectAll(".notifier-note").data(df);function l(s){s.duration(700).style("opacity",0).each("end",function(u){var f=df.indexOf(u);f!==-1&&df.splice(f,1),_y.select(this).remove()})}i.enter().append("div").classed("notifier-note",!0).style("opacity",0).each(function(s){var u=_y.select(this);u.append("button").classed("notifier-close",!0).html("×").on("click",function(){u.transition().call(l)});for(var f=u.append("p"),c=s.split(//g),d=0;d{"use strict";var m0=Hl().dfltConfig,My=wy(),Ty=C8.exports={};Ty.log=function(){var e;if(m0.logging>1){var r=["LOG:"];for(e=0;e1){var t=[];for(e=0;e"),"long")}};Ty.warn=function(){var e;if(m0.logging>0){var r=["WARN:"];for(e=0;e0){var t=[];for(e=0;e"),"stick")}};Ty.error=function(){var e;if(m0.logging>0){var r=["ERROR:"];for(e=0;e0){var t=[];for(e=0;e"),"stick")}}});var Xi=J(Xo=>{"use strict";Xo.defaults=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"];Xo.defaultLine="#444";Xo.lightLine="#eee";Xo.background="#fff";Xo.borderLine="#BEC8D9";Xo.lightFraction=1e3/11});var Nr=J((Nye,F8)=>{"use strict";var{converter:S8,formatHex:oJ,formatRgb:sJ,wcagContrast:uJ,wcagLuminance:fJ}=x8(),{isArrayOrTypedArray:D8}=hn(),{warn:cJ}=Ol(),{background:pf,defaultLine:Cy,defaults:vJ,lightLine:dJ}=Xi(),L8=S8("rgb"),hJ=S8("hsl"),q8=e=>{if(typeof e!="string")return;let r=e.trim().toLowerCase();if(!/^[0-9a-f]+$/.test(r))try{return L8(r)}catch(t){return}},Ka=e=>e>0?e>1?1:e:0,pJ={mode:"rgb",r:0,g:0,b:0,alpha:1},Ay=e=>Math.round(e*255e6)/255e6,E8=e=>Ct(ot({},e),{r:Ay(e.r),g:Ay(e.g),b:Ay(e.b)}),Sn=e=>sJ(E8(e)),mJ=e=>oJ(E8(e)),yJ=e=>{var r,t,a,n;return typeof e=="string"?`"${e}"`:D8(e)?`${(t=(r=e.constructor)==null?void 0:r.name)!=null?t:"Array"}(${e.length})`:typeof e=="object"?(n=(a=e.constructor)==null?void 0:a.name)!=null?n:"Object":`${typeof e} ${e}`},zt=(e,r)=>{var a;let t=q8(e);return t?((a=t.alpha)!=null||(t.alpha=1),t):(!r&&e!=null&&cJ(`Invalid color specifier: ${yJ(e)}. Defaulting to "#000"`),pJ)},hf=e=>Sn(Ct(ot({},zt(e)),{alpha:1})),gJ=e=>e?zt(e).alpha:0,P8=e=>D8(e)&&e.length>2&&Number.isFinite(e[0])&&Number.isFinite(e[1])&&Number.isFinite(e[2]),bJ=e=>{let[r,t,a,n]=e,i=Math.max(r,t,a)>1?1/255:1,l=n!=null?n:1;return{mode:"rgb",r:r*i,g:t*i,b:a*i,alpha:l>1?l/255:l}},xJ=(e,r)=>{let t=P8(e)?bJ(e):zt(e,!0),a=[Ka(t.r),Ka(t.g),Ka(t.b),Ka(t.alpha)];return r==="uint8"||r==="uint8_clamped"?Uint8Array.from(a,n=>Math.round(n*255)):r==="float32"?Float32Array.from(a):r==="float64"?Float64Array.from(a):a},_J=(e,r)=>Sn(Ct(ot({},zt(e)),{alpha:Ka(r)})),R8=(e,r)=>{let t=zt(e),a=t.alpha;if(a===1)return Sn(t);let n=zt(r||pf),i=n.alpha,l=(o,s)=>(i===1?s:1-i+s*i)*(1-a)+o*a;return Sn({mode:"rgb",r:l(t.r,n.r),g:l(t.g,n.g),b:l(t.b,n.b)})},wJ=(e,r,t)=>{let a=zt(e),n=zt(r),i=(l,o)=>t*l+(1-t)*o;return Sn({mode:"rgb",r:i(a.r,n.r),g:i(a.g,n.g),b:i(a.b,n.b)})},ky=(e,r)=>{let t=zt(e),a=hJ(t)||{mode:"hsl",h:0,s:0,l:0};return Sn(L8(Ct(ot({},a),{l:Ka((a.l*100+r)/100),alpha:t.alpha})))},m2=(e,r)=>uJ(zt(e),zt(r)),z8=e=>m2(e,pf)>m2(e,Cy),MJ=Sn(zt(pf)),TJ=Sn(zt(Cy)),AJ=(e,r,t)=>(zt(e).alpha!==1&&(e=R8(e,pf)),z8(e)?r?ky(e,r):MJ:t?ky(e,-t):TJ),kJ=(e,r)=>{e.style({stroke:hf(r),"stroke-opacity":zt(r).alpha})},CJ=(e,r)=>{e.style({fill:hf(r),"fill-opacity":zt(r).alpha})},SJ=(e,r)=>!!(e&&r&&hf(e)===hf(r)),DJ=e=>q8(e)!==void 0,LJ=(e,r)=>{r=r===0?0:r||10;let t=zt(e),a=r/100;return Sn(Ct(ot({},t),{r:Ka(t.r+a),g:Ka(t.g+a),b:Ka(t.b+a)}))},qJ=(e,r,t)=>{let a=zt(e),n=zt(r),i=t/100,l=n.alpha-a.alpha,o=2*i-1,s=((o*l===-1?o:(o+l)/(1+o*l))+1)/2,u=1-s,f=(c,d)=>u*c+s*d;return Sn({mode:"rgb",r:f(a.r,n.r),g:f(a.g,n.g),b:f(a.b,n.b),alpha:a.alpha*(1-i)+n.alpha*i})},EJ=(e,r=["#000","#fff"])=>{let t,a=-1/0;for(let n of r){let i=m2(e,n);i>a&&(a=i,t=Sn(zt(n)))}return t},PJ=e=>Sn(zt(e)),RJ=e=>mJ(zt(e)).toUpperCase(),zJ=e=>{let r=zt(e);return[Ka(r.r)*255,Ka(r.g)*255,Ka(r.b)*255,Ka(r.alpha)]},FJ=([e,r,t,a])=>Sn({mode:"rgb",r:e/255,g:r/255,b:t/255,alpha:a}),NJ=e=>{let r=zt(e);return fJ({mode:"rgb",r:Ka(r.r),g:Ka(r.g),b:Ka(r.b)})};F8.exports={addOpacity:_J,adjustLightness:ky,background:pf,brighten:LJ,combine:R8,contrast:AJ,defaultLine:Cy,defaults:vJ,equals:SJ,fill:CJ,hexString:RJ,interpolate:wJ,isChannelArray:P8,isDark:z8,isValid:DJ,lightLine:dJ,luminosity:NJ,mix:qJ,mostReadable:EJ,normalize:xJ,opacity:gJ,parse:zt,rgb:hf,rgbaArray:zJ,rgbaArrayToString:FJ,rgbaString:PJ,stroke:kJ,wcagContrast:m2}});var Wo=J((Bye,B8)=>{"use strict";var IJ=Nr(),y2={Greys:[[0,"rgb(0,0,0)"],[1,"rgb(255,255,255)"]],YlGnBu:[[0,"rgb(8,29,88)"],[.125,"rgb(37,52,148)"],[.25,"rgb(34,94,168)"],[.375,"rgb(29,145,192)"],[.5,"rgb(65,182,196)"],[.625,"rgb(127,205,187)"],[.75,"rgb(199,233,180)"],[.875,"rgb(237,248,217)"],[1,"rgb(255,255,217)"]],Greens:[[0,"rgb(0,68,27)"],[.125,"rgb(0,109,44)"],[.25,"rgb(35,139,69)"],[.375,"rgb(65,171,93)"],[.5,"rgb(116,196,118)"],[.625,"rgb(161,217,155)"],[.75,"rgb(199,233,192)"],[.875,"rgb(229,245,224)"],[1,"rgb(247,252,245)"]],YlOrRd:[[0,"rgb(128,0,38)"],[.125,"rgb(189,0,38)"],[.25,"rgb(227,26,28)"],[.375,"rgb(252,78,42)"],[.5,"rgb(253,141,60)"],[.625,"rgb(254,178,76)"],[.75,"rgb(254,217,118)"],[.875,"rgb(255,237,160)"],[1,"rgb(255,255,204)"]],Bluered:[[0,"rgb(0,0,255)"],[1,"rgb(255,0,0)"]],RdBu:[[0,"rgb(5,10,172)"],[.35,"rgb(106,137,247)"],[.5,"rgb(190,190,190)"],[.6,"rgb(220,170,132)"],[.7,"rgb(230,145,90)"],[1,"rgb(178,10,28)"]],Reds:[[0,"rgb(220,220,220)"],[.2,"rgb(245,195,157)"],[.4,"rgb(245,160,105)"],[1,"rgb(178,10,28)"]],Blues:[[0,"rgb(5,10,172)"],[.35,"rgb(40,60,190)"],[.5,"rgb(70,100,245)"],[.6,"rgb(90,120,245)"],[.7,"rgb(106,137,247)"],[1,"rgb(220,220,220)"]],Picnic:[[0,"rgb(0,0,255)"],[.1,"rgb(51,153,255)"],[.2,"rgb(102,204,255)"],[.3,"rgb(153,204,255)"],[.4,"rgb(204,204,255)"],[.5,"rgb(255,255,255)"],[.6,"rgb(255,204,255)"],[.7,"rgb(255,153,255)"],[.8,"rgb(255,102,204)"],[.9,"rgb(255,102,102)"],[1,"rgb(255,0,0)"]],Rainbow:[[0,"rgb(150,0,90)"],[.125,"rgb(0,0,200)"],[.25,"rgb(0,25,255)"],[.375,"rgb(0,152,255)"],[.5,"rgb(44,255,150)"],[.625,"rgb(151,255,0)"],[.75,"rgb(255,234,0)"],[.875,"rgb(255,111,0)"],[1,"rgb(255,0,0)"]],Portland:[[0,"rgb(12,51,131)"],[.25,"rgb(10,136,186)"],[.5,"rgb(242,211,56)"],[.75,"rgb(242,143,56)"],[1,"rgb(217,30,30)"]],Jet:[[0,"rgb(0,0,131)"],[.125,"rgb(0,60,170)"],[.375,"rgb(5,255,255)"],[.625,"rgb(255,255,0)"],[.875,"rgb(250,0,0)"],[1,"rgb(128,0,0)"]],Hot:[[0,"rgb(0,0,0)"],[.3,"rgb(230,0,0)"],[.6,"rgb(255,210,0)"],[1,"rgb(255,255,255)"]],Blackbody:[[0,"rgb(0,0,0)"],[.2,"rgb(230,0,0)"],[.4,"rgb(230,210,0)"],[.7,"rgb(255,255,255)"],[1,"rgb(160,200,255)"]],Earth:[[0,"rgb(0,0,130)"],[.1,"rgb(0,180,180)"],[.2,"rgb(40,210,40)"],[.4,"rgb(230,230,50)"],[.6,"rgb(120,70,20)"],[1,"rgb(255,255,255)"]],Electric:[[0,"rgb(0,0,0)"],[.15,"rgb(30,0,100)"],[.4,"rgb(120,0,100)"],[.6,"rgb(160,90,0)"],[.8,"rgb(230,200,0)"],[1,"rgb(255,250,220)"]],Viridis:[[0,"#440154"],[.06274509803921569,"#48186a"],[.12549019607843137,"#472d7b"],[.18823529411764706,"#424086"],[.25098039215686274,"#3b528b"],[.3137254901960784,"#33638d"],[.3764705882352941,"#2c728e"],[.4392156862745098,"#26828e"],[.5019607843137255,"#21918c"],[.5647058823529412,"#1fa088"],[.6274509803921569,"#28ae80"],[.6901960784313725,"#3fbc73"],[.7529411764705882,"#5ec962"],[.8156862745098039,"#84d44b"],[.8784313725490196,"#addc30"],[.9411764705882353,"#d8e219"],[1,"#fde725"]],Cividis:[[0,"rgb(0,32,76)"],[.058824,"rgb(0,42,102)"],[.117647,"rgb(0,52,110)"],[.176471,"rgb(39,63,108)"],[.235294,"rgb(60,74,107)"],[.294118,"rgb(76,85,107)"],[.352941,"rgb(91,95,109)"],[.411765,"rgb(104,106,112)"],[.470588,"rgb(117,117,117)"],[.529412,"rgb(131,129,120)"],[.588235,"rgb(146,140,120)"],[.647059,"rgb(161,152,118)"],[.705882,"rgb(176,165,114)"],[.764706,"rgb(192,177,109)"],[.823529,"rgb(209,191,102)"],[.882353,"rgb(225,204,92)"],[.941176,"rgb(243,219,79)"],[1,"rgb(255,233,69)"]]},N8=y2.RdBu;function BJ(e,r){if(r||(r=N8),!e)return r;function t(){try{e=y2[e]||JSON.parse(e)}catch(a){e=r}}return typeof e=="string"&&(t(),typeof e=="string"&&t()),I8(e)?e:r}function I8(e){var r=0;if(!Array.isArray(e)||e.length<2||!e[0]||!e[e.length-1]||+e[0][0]!=0||+e[e.length-1][0]!=1)return!1;for(var t=0;tUJ,HIDE_PLACEHOLDER:()=>YJ,SHOW_PLACEHOLDER:()=>OJ});var OJ,YJ,UJ,b2=Pt(()=>{"use strict";OJ=100,YJ=1e3,UJ=.2});var mf={};Rt(mf,{counter:()=>Zo});function Zo(e,r="",t,a){let n=r+(t?"":"$"),i=a===!1?"":"^";return e==="xy"?new RegExp(i+"x"+Sy+"y"+Sy+n):new RegExp(i+e+Sy+n)}var Sy,y0=Pt(()=>{"use strict";Sy="([2-9]|[1-9][0-9]+)?"});var Y8=J(mn=>{"use strict";var Dy=Xr(),H8=oa().extendFlat,GJ=yi(),VJ=Wo(),Ly=Nr(),XJ=(b2(),Xe(g2)).DESELECTDIM,g0=Ov(),O8=(y0(),Xe(mf)).counter,WJ=(l0(),Xe(i0)).modHalf,bi=hn().isArrayOrTypedArray,Yl=hn().isTypedArraySpec,Ul=hn().decodeTypedArraySpec;mn.valObjectMeta={data_array:{coerceFunction:function(e,r,t){r.set(bi(e)?e:Yl(e)?Ul(e):t)}},enumerated:{coerceFunction:function(e,r,t,a){a.coerceNumber&&(e=+e),a.values.indexOf(e)===-1?r.set(t):r.set(e)},validateFunction:function(e,r){r.coerceNumber&&(e=+e);for(var t=r.values,a=0;ai===!0||i===!1;n(e)||a.arrayOk&&Array.isArray(e)&&e.length>0&&e.every(n)?r.set(e):r.set(t)}},number:{coerceFunction:function(e,r,t,a){Yl(e)&&(e=Ul(e)),!Dy(e)||a.min!==void 0&&ea.max?r.set(t):r.set(+e)}},integer:{coerceFunction:function(e,r,t,a){if((a.extras||[]).indexOf(e)!==-1){r.set(e);return}Yl(e)&&(e=Ul(e)),e%1||!Dy(e)||a.min!==void 0&&ea.max?r.set(t):r.set(+e)}},string:{coerceFunction:function(e,r,t,a){if(typeof e!="string"){var n=typeof e=="number";a.strict===!0||!n?r.set(t):r.set(String(e))}else a.noBlank&&!e?r.set(t):r.set(e)}},color:{coerceFunction:function(e,r,t){Yl(e)&&(e=Ul(e)),Ly.isValid(e)?r.set(e):r.set(t)}},colorlist:{coerceFunction:function(e,r,t){!Array.isArray(e)||!e.length?r.set(t):e.every(a=>Ly.isValid(a))?r.set(e):r.set(t)}},colorscale:{coerceFunction:function(e,r,t){r.set(VJ.get(e,t))}},angle:{coerceFunction:function(e,r,t){Yl(e)&&(e=Ul(e)),e==="auto"?r.set("auto"):Dy(e)?r.set(WJ(+e,360)):r.set(t)}},subplotid:{coerceFunction:function(e,r,t,a){var n=a.regex||O8(t);let i=l=>typeof l=="string"&&n.test(l);i(e)||a.arrayOk&&bi(e)&&e.length>0&&e.every(i)?r.set(e):r.set(t)},validateFunction:function(e,r){var t=r.dflt;return e===t?!0:typeof e!="string"?!1:!!O8(t).test(e)}},flaglist:{coerceFunction:function(e,r,t,a){if((a.extras||[]).indexOf(e)!==-1){r.set(e);return}if(typeof e!="string"){r.set(t);return}for(var n=e.split("+"),i=0;i{"use strict";U8.exports=function(){}});var qy=J((Yye,G8)=>{"use strict";G8.exports=function(r,t){if(t instanceof RegExp){for(var a=t.toString(),n=0;n{V8.exports=ZJ;function ZJ(){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}});var Z8=J((Gye,W8)=>{W8.exports=JJ;function JJ(e){var r=new Float32Array(16);return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4],r[5]=e[5],r[6]=e[6],r[7]=e[7],r[8]=e[8],r[9]=e[9],r[10]=e[10],r[11]=e[11],r[12]=e[12],r[13]=e[13],r[14]=e[14],r[15]=e[15],r}});var $8=J((Vye,J8)=>{J8.exports=$J;function $J(e,r){return e[0]=r[0],e[1]=r[1],e[2]=r[2],e[3]=r[3],e[4]=r[4],e[5]=r[5],e[6]=r[6],e[7]=r[7],e[8]=r[8],e[9]=r[9],e[10]=r[10],e[11]=r[11],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15],e}});var Ey=J((Xye,K8)=>{K8.exports=KJ;function KJ(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}});var Q8=J((Wye,j8)=>{j8.exports=jJ;function jJ(e,r){if(e===r){var t=r[1],a=r[2],n=r[3],i=r[6],l=r[7],o=r[11];e[1]=r[4],e[2]=r[8],e[3]=r[12],e[4]=t,e[6]=r[9],e[7]=r[13],e[8]=a,e[9]=i,e[11]=r[14],e[12]=n,e[13]=l,e[14]=o}else e[0]=r[0],e[1]=r[4],e[2]=r[8],e[3]=r[12],e[4]=r[1],e[5]=r[5],e[6]=r[9],e[7]=r[13],e[8]=r[2],e[9]=r[6],e[10]=r[10],e[11]=r[14],e[12]=r[3],e[13]=r[7],e[14]=r[11],e[15]=r[15];return e}});var r9=J((Zye,e9)=>{e9.exports=QJ;function QJ(e,r){var t=r[0],a=r[1],n=r[2],i=r[3],l=r[4],o=r[5],s=r[6],u=r[7],f=r[8],c=r[9],d=r[10],h=r[11],m=r[12],g=r[13],y=r[14],x=r[15],w=t*o-a*l,T=t*s-n*l,b=t*u-i*l,M=a*s-n*o,S=a*u-i*o,A=n*u-i*s,L=f*g-c*m,q=f*y-d*m,P=f*x-h*m,z=c*y-d*g,N=c*x-h*g,I=d*x-h*y,B=w*I-T*N+b*z+M*P-S*q+A*L;return B?(B=1/B,e[0]=(o*I-s*N+u*z)*B,e[1]=(n*N-a*I-i*z)*B,e[2]=(g*A-y*S+x*M)*B,e[3]=(d*S-c*A-h*M)*B,e[4]=(s*P-l*I-u*q)*B,e[5]=(t*I-n*P+i*q)*B,e[6]=(y*b-m*A-x*T)*B,e[7]=(f*A-d*b+h*T)*B,e[8]=(l*N-o*P+u*L)*B,e[9]=(a*P-t*N-i*L)*B,e[10]=(m*S-g*b+x*w)*B,e[11]=(c*b-f*S-h*w)*B,e[12]=(o*q-l*z-s*L)*B,e[13]=(t*z-a*q+n*L)*B,e[14]=(g*T-m*M-y*w)*B,e[15]=(f*M-c*T+d*w)*B,e):null}});var a9=J((Jye,t9)=>{t9.exports=e$;function e$(e,r){var t=r[0],a=r[1],n=r[2],i=r[3],l=r[4],o=r[5],s=r[6],u=r[7],f=r[8],c=r[9],d=r[10],h=r[11],m=r[12],g=r[13],y=r[14],x=r[15];return e[0]=o*(d*x-h*y)-c*(s*x-u*y)+g*(s*h-u*d),e[1]=-(a*(d*x-h*y)-c*(n*x-i*y)+g*(n*h-i*d)),e[2]=a*(s*x-u*y)-o*(n*x-i*y)+g*(n*u-i*s),e[3]=-(a*(s*h-u*d)-o*(n*h-i*d)+c*(n*u-i*s)),e[4]=-(l*(d*x-h*y)-f*(s*x-u*y)+m*(s*h-u*d)),e[5]=t*(d*x-h*y)-f*(n*x-i*y)+m*(n*h-i*d),e[6]=-(t*(s*x-u*y)-l*(n*x-i*y)+m*(n*u-i*s)),e[7]=t*(s*h-u*d)-l*(n*h-i*d)+f*(n*u-i*s),e[8]=l*(c*x-h*g)-f*(o*x-u*g)+m*(o*h-u*c),e[9]=-(t*(c*x-h*g)-f*(a*x-i*g)+m*(a*h-i*c)),e[10]=t*(o*x-u*g)-l*(a*x-i*g)+m*(a*u-i*o),e[11]=-(t*(o*h-u*c)-l*(a*h-i*c)+f*(a*u-i*o)),e[12]=-(l*(c*y-d*g)-f*(o*y-s*g)+m*(o*d-s*c)),e[13]=t*(c*y-d*g)-f*(a*y-n*g)+m*(a*d-n*c),e[14]=-(t*(o*y-s*g)-l*(a*y-n*g)+m*(a*s-n*o)),e[15]=t*(o*d-s*c)-l*(a*d-n*c)+f*(a*s-n*o),e}});var i9=J(($ye,n9)=>{n9.exports=r$;function r$(e){var r=e[0],t=e[1],a=e[2],n=e[3],i=e[4],l=e[5],o=e[6],s=e[7],u=e[8],f=e[9],c=e[10],d=e[11],h=e[12],m=e[13],g=e[14],y=e[15],x=r*l-t*i,w=r*o-a*i,T=r*s-n*i,b=t*o-a*l,M=t*s-n*l,S=a*s-n*o,A=u*m-f*h,L=u*g-c*h,q=u*y-d*h,P=f*g-c*m,z=f*y-d*m,N=c*y-d*g;return x*N-w*z+T*P+b*q-M*L+S*A}});var o9=J((Kye,l9)=>{l9.exports=t$;function t$(e,r,t){var a=r[0],n=r[1],i=r[2],l=r[3],o=r[4],s=r[5],u=r[6],f=r[7],c=r[8],d=r[9],h=r[10],m=r[11],g=r[12],y=r[13],x=r[14],w=r[15],T=t[0],b=t[1],M=t[2],S=t[3];return e[0]=T*a+b*o+M*c+S*g,e[1]=T*n+b*s+M*d+S*y,e[2]=T*i+b*u+M*h+S*x,e[3]=T*l+b*f+M*m+S*w,T=t[4],b=t[5],M=t[6],S=t[7],e[4]=T*a+b*o+M*c+S*g,e[5]=T*n+b*s+M*d+S*y,e[6]=T*i+b*u+M*h+S*x,e[7]=T*l+b*f+M*m+S*w,T=t[8],b=t[9],M=t[10],S=t[11],e[8]=T*a+b*o+M*c+S*g,e[9]=T*n+b*s+M*d+S*y,e[10]=T*i+b*u+M*h+S*x,e[11]=T*l+b*f+M*m+S*w,T=t[12],b=t[13],M=t[14],S=t[15],e[12]=T*a+b*o+M*c+S*g,e[13]=T*n+b*s+M*d+S*y,e[14]=T*i+b*u+M*h+S*x,e[15]=T*l+b*f+M*m+S*w,e}});var u9=J((jye,s9)=>{s9.exports=a$;function a$(e,r,t){var a=t[0],n=t[1],i=t[2],l,o,s,u,f,c,d,h,m,g,y,x;return r===e?(e[12]=r[0]*a+r[4]*n+r[8]*i+r[12],e[13]=r[1]*a+r[5]*n+r[9]*i+r[13],e[14]=r[2]*a+r[6]*n+r[10]*i+r[14],e[15]=r[3]*a+r[7]*n+r[11]*i+r[15]):(l=r[0],o=r[1],s=r[2],u=r[3],f=r[4],c=r[5],d=r[6],h=r[7],m=r[8],g=r[9],y=r[10],x=r[11],e[0]=l,e[1]=o,e[2]=s,e[3]=u,e[4]=f,e[5]=c,e[6]=d,e[7]=h,e[8]=m,e[9]=g,e[10]=y,e[11]=x,e[12]=l*a+f*n+m*i+r[12],e[13]=o*a+c*n+g*i+r[13],e[14]=s*a+d*n+y*i+r[14],e[15]=u*a+h*n+x*i+r[15]),e}});var c9=J((Qye,f9)=>{f9.exports=n$;function n$(e,r,t){var a=t[0],n=t[1],i=t[2];return e[0]=r[0]*a,e[1]=r[1]*a,e[2]=r[2]*a,e[3]=r[3]*a,e[4]=r[4]*n,e[5]=r[5]*n,e[6]=r[6]*n,e[7]=r[7]*n,e[8]=r[8]*i,e[9]=r[9]*i,e[10]=r[10]*i,e[11]=r[11]*i,e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15],e}});var d9=J((ege,v9)=>{v9.exports=i$;function i$(e,r,t,a){var n=a[0],i=a[1],l=a[2],o=Math.sqrt(n*n+i*i+l*l),s,u,f,c,d,h,m,g,y,x,w,T,b,M,S,A,L,q,P,z,N,I,B,H;return Math.abs(o)<1e-6?null:(o=1/o,n*=o,i*=o,l*=o,s=Math.sin(t),u=Math.cos(t),f=1-u,c=r[0],d=r[1],h=r[2],m=r[3],g=r[4],y=r[5],x=r[6],w=r[7],T=r[8],b=r[9],M=r[10],S=r[11],A=n*n*f+u,L=i*n*f+l*s,q=l*n*f-i*s,P=n*i*f-l*s,z=i*i*f+u,N=l*i*f+n*s,I=n*l*f+i*s,B=i*l*f-n*s,H=l*l*f+u,e[0]=c*A+g*L+T*q,e[1]=d*A+y*L+b*q,e[2]=h*A+x*L+M*q,e[3]=m*A+w*L+S*q,e[4]=c*P+g*z+T*N,e[5]=d*P+y*z+b*N,e[6]=h*P+x*z+M*N,e[7]=m*P+w*z+S*N,e[8]=c*I+g*B+T*H,e[9]=d*I+y*B+b*H,e[10]=h*I+x*B+M*H,e[11]=m*I+w*B+S*H,r!==e&&(e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e)}});var p9=J((rge,h9)=>{h9.exports=l$;function l$(e,r,t){var a=Math.sin(t),n=Math.cos(t),i=r[4],l=r[5],o=r[6],s=r[7],u=r[8],f=r[9],c=r[10],d=r[11];return r!==e&&(e[0]=r[0],e[1]=r[1],e[2]=r[2],e[3]=r[3],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e[4]=i*n+u*a,e[5]=l*n+f*a,e[6]=o*n+c*a,e[7]=s*n+d*a,e[8]=u*n-i*a,e[9]=f*n-l*a,e[10]=c*n-o*a,e[11]=d*n-s*a,e}});var y9=J((tge,m9)=>{m9.exports=o$;function o$(e,r,t){var a=Math.sin(t),n=Math.cos(t),i=r[0],l=r[1],o=r[2],s=r[3],u=r[8],f=r[9],c=r[10],d=r[11];return r!==e&&(e[4]=r[4],e[5]=r[5],e[6]=r[6],e[7]=r[7],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e[0]=i*n-u*a,e[1]=l*n-f*a,e[2]=o*n-c*a,e[3]=s*n-d*a,e[8]=i*a+u*n,e[9]=l*a+f*n,e[10]=o*a+c*n,e[11]=s*a+d*n,e}});var b9=J((age,g9)=>{g9.exports=s$;function s$(e,r,t){var a=Math.sin(t),n=Math.cos(t),i=r[0],l=r[1],o=r[2],s=r[3],u=r[4],f=r[5],c=r[6],d=r[7];return r!==e&&(e[8]=r[8],e[9]=r[9],e[10]=r[10],e[11]=r[11],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e[0]=i*n+u*a,e[1]=l*n+f*a,e[2]=o*n+c*a,e[3]=s*n+d*a,e[4]=u*n-i*a,e[5]=f*n-l*a,e[6]=c*n-o*a,e[7]=d*n-s*a,e}});var _9=J((nge,x9)=>{x9.exports=u$;function u$(e,r,t){var a,n,i,l=t[0],o=t[1],s=t[2],u=Math.sqrt(l*l+o*o+s*s);return Math.abs(u)<1e-6?null:(u=1/u,l*=u,o*=u,s*=u,a=Math.sin(r),n=Math.cos(r),i=1-n,e[0]=l*l*i+n,e[1]=o*l*i+s*a,e[2]=s*l*i-o*a,e[3]=0,e[4]=l*o*i-s*a,e[5]=o*o*i+n,e[6]=s*o*i+l*a,e[7]=0,e[8]=l*s*i+o*a,e[9]=o*s*i-l*a,e[10]=s*s*i+n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e)}});var M9=J((ige,w9)=>{w9.exports=f$;function f$(e,r,t){var a=r[0],n=r[1],i=r[2],l=r[3],o=a+a,s=n+n,u=i+i,f=a*o,c=a*s,d=a*u,h=n*s,m=n*u,g=i*u,y=l*o,x=l*s,w=l*u;return e[0]=1-(h+g),e[1]=c+w,e[2]=d-x,e[3]=0,e[4]=c-w,e[5]=1-(f+g),e[6]=m+y,e[7]=0,e[8]=d+x,e[9]=m-y,e[10]=1-(f+h),e[11]=0,e[12]=t[0],e[13]=t[1],e[14]=t[2],e[15]=1,e}});var A9=J((lge,T9)=>{T9.exports=c$;function c$(e,r){return e[0]=r[0],e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=r[1],e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=r[2],e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var C9=J((oge,k9)=>{k9.exports=v$;function v$(e,r){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]=r[0],e[13]=r[1],e[14]=r[2],e[15]=1,e}});var D9=J((sge,S9)=>{S9.exports=d$;function d$(e,r){var t=Math.sin(r),a=Math.cos(r);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=a,e[6]=t,e[7]=0,e[8]=0,e[9]=-t,e[10]=a,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var q9=J((uge,L9)=>{L9.exports=h$;function h$(e,r){var t=Math.sin(r),a=Math.cos(r);return e[0]=a,e[1]=0,e[2]=-t,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=t,e[9]=0,e[10]=a,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var P9=J((fge,E9)=>{E9.exports=p$;function p$(e,r){var t=Math.sin(r),a=Math.cos(r);return e[0]=a,e[1]=t,e[2]=0,e[3]=0,e[4]=-t,e[5]=a,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}});var z9=J((cge,R9)=>{R9.exports=m$;function m$(e,r){var t=r[0],a=r[1],n=r[2],i=r[3],l=t+t,o=a+a,s=n+n,u=t*l,f=a*l,c=a*o,d=n*l,h=n*o,m=n*s,g=i*l,y=i*o,x=i*s;return e[0]=1-c-m,e[1]=f+x,e[2]=d-y,e[3]=0,e[4]=f-x,e[5]=1-u-m,e[6]=h+g,e[7]=0,e[8]=d+y,e[9]=h-g,e[10]=1-u-c,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var N9=J((vge,F9)=>{F9.exports=y$;function y$(e,r,t,a,n,i,l){var o=1/(t-r),s=1/(n-a),u=1/(i-l);return e[0]=i*2*o,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=i*2*s,e[6]=0,e[7]=0,e[8]=(t+r)*o,e[9]=(n+a)*s,e[10]=(l+i)*u,e[11]=-1,e[12]=0,e[13]=0,e[14]=l*i*2*u,e[15]=0,e}});var B9=J((dge,I9)=>{I9.exports=g$;function g$(e,r,t,a,n){var i=1/Math.tan(r/2),l=1/(a-n);return e[0]=i/t,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=i,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=(n+a)*l,e[11]=-1,e[12]=0,e[13]=0,e[14]=2*n*a*l,e[15]=0,e}});var O9=J((hge,H9)=>{H9.exports=b$;function b$(e,r,t,a){var n=Math.tan(r.upDegrees*Math.PI/180),i=Math.tan(r.downDegrees*Math.PI/180),l=Math.tan(r.leftDegrees*Math.PI/180),o=Math.tan(r.rightDegrees*Math.PI/180),s=2/(l+o),u=2/(n+i);return e[0]=s,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=u,e[6]=0,e[7]=0,e[8]=-((l-o)*s*.5),e[9]=(n-i)*u*.5,e[10]=a/(t-a),e[11]=-1,e[12]=0,e[13]=0,e[14]=a*t/(t-a),e[15]=0,e}});var U9=J((pge,Y9)=>{Y9.exports=x$;function x$(e,r,t,a,n,i,l){var o=1/(r-t),s=1/(a-n),u=1/(i-l);return e[0]=-2*o,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*s,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*u,e[11]=0,e[12]=(r+t)*o,e[13]=(n+a)*s,e[14]=(l+i)*u,e[15]=1,e}});var V9=J((mge,G9)=>{var _$=Ey();G9.exports=w$;function w$(e,r,t,a){var n,i,l,o,s,u,f,c,d,h,m=r[0],g=r[1],y=r[2],x=a[0],w=a[1],T=a[2],b=t[0],M=t[1],S=t[2];return Math.abs(m-b)<1e-6&&Math.abs(g-M)<1e-6&&Math.abs(y-S)<1e-6?_$(e):(f=m-b,c=g-M,d=y-S,h=1/Math.sqrt(f*f+c*c+d*d),f*=h,c*=h,d*=h,n=w*d-T*c,i=T*f-x*d,l=x*c-w*f,h=Math.sqrt(n*n+i*i+l*l),h?(h=1/h,n*=h,i*=h,l*=h):(n=0,i=0,l=0),o=c*l-d*i,s=d*n-f*l,u=f*i-c*n,h=Math.sqrt(o*o+s*s+u*u),h?(h=1/h,o*=h,s*=h,u*=h):(o=0,s=0,u=0),e[0]=n,e[1]=o,e[2]=f,e[3]=0,e[4]=i,e[5]=s,e[6]=c,e[7]=0,e[8]=l,e[9]=u,e[10]=d,e[11]=0,e[12]=-(n*m+i*g+l*y),e[13]=-(o*m+s*g+u*y),e[14]=-(f*m+c*g+d*y),e[15]=1,e)}});var W9=J((yge,X9)=>{X9.exports=M$;function M$(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]+")"}});var Py=J((gge,Z9)=>{Z9.exports={create:X8(),clone:Z8(),copy:$8(),identity:Ey(),transpose:Q8(),invert:r9(),adjoint:a9(),determinant:i9(),multiply:o9(),translate:u9(),scale:c9(),rotate:d9(),rotateX:p9(),rotateY:y9(),rotateZ:b9(),fromRotation:_9(),fromRotationTranslation:M9(),fromScaling:A9(),fromTranslation:C9(),fromXRotation:D9(),fromYRotation:q9(),fromZRotation:P9(),fromQuat:z9(),frustum:N9(),perspective:B9(),perspectiveFromFieldOfView:O9(),ortho:U9(),lookAt:V9(),str:W9()}});var w2=J(Gt=>{"use strict";var T$=Py();Gt.init2dArray=function(e,r){for(var t=new Array(e),a=0;a{"use strict";var A$=Or(),J9=Ol(),k$=w2(),C$=Py();function S$(e){var r;if(typeof e=="string"){if(r=document.getElementById(e),r===null)throw new Error("No DOM element with id '"+e+"' exists on the page.");return r}else if(e==null)throw new Error("DOM element provided is null or undefined");return e}function D$(e){var r=A$.select(e);return r.node()instanceof HTMLElement&&r.size()&&r.classed("js-plotly-plot")}function $9(e){var r=e&&e.parentNode;r&&r.removeChild(e)}function L$(e,r){K9("global",e,r)}function K9(e,r,t){var a="plotly.js-style-"+e,n=document.getElementById(a);if(!(n&&n.matches(".no-inline-styles"))){n||(n=document.createElement("style"),n.setAttribute("id",a),n.appendChild(document.createTextNode("")),document.head.appendChild(n));var i=n.sheet;i?i.insertRule?i.insertRule(r+"{"+t+"}",0):i.addRule?i.addRule(r,t,0):J9.warn("addStyleRule failed"):J9.warn("Cannot addRelatedStyleRule, probably due to strict CSP...")}}function q$(e){var r="plotly.js-style-"+e,t=document.getElementById(r);t&&$9(t)}function E$(e,r,t,a,n,i){var l=a.split(":"),o=n.split(":"),s="data-btn-style-event-added";i||(i=document),i.querySelectorAll(e).forEach(function(u){u._hoverStyle={activeStyleParts:l,inactiveStyleParts:o},u.getAttribute(s)||(u.addEventListener("mouseenter",function(){var f=this._hoverStyle,c=this.querySelector(t);c&&(c.style[f.activeStyleParts[0]]=f.activeStyleParts[1])}),u.addEventListener("mouseleave",function(){var f=this._hoverStyle,c=this.querySelector(t);c&&(r&&this.matches(r)?c.style[f.activeStyleParts[0]]=f.activeStyleParts[1]:c.style[f.inactiveStyleParts[0]]=f.inactiveStyleParts[1])}),u.setAttribute(s,!0))})}function P$(e){var r=Q9(e),t=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];return r.forEach(function(a){var n=j9(a);if(n){var i=k$.convertCssMatrix(n);t=C$.multiply(t,t,i)}}),t}function j9(e){var r=window.getComputedStyle(e,null),t=r.getPropertyValue("-webkit-transform")||r.getPropertyValue("-moz-transform")||r.getPropertyValue("-ms-transform")||r.getPropertyValue("-o-transform")||r.getPropertyValue("transform");return t==="none"?null:t.replace("matrix","").replace("3d","").slice(1,-1).split(",").map(function(a){return+a})}function Q9(e){for(var r=[];R$(e);)r.push(e),e=e.parentNode,typeof ShadowRoot=="function"&&e instanceof ShadowRoot&&(e=e.host);return r}function R$(e){return e&&(e instanceof Element||e instanceof HTMLElement)}function z$(e,r){return e&&r&&e.top===r.top&&e.left===r.left&&e.right===r.right&&e.bottom===r.bottom}ew.exports={getGraphDiv:S$,isPlotDiv:D$,removeElement:$9,addStyleRule:L$,addRelatedStyleRule:K9,deleteRelatedStyleRule:q$,setStyleOnHover:E$,getFullTransformMatrix:P$,getElementTransformMatrix:j9,getElementAndAncestors:Q9,equalDomRects:z$}});var gf=J((_ge,rw)=>{"use strict";rw.exports={mode:{valType:"enumerated",dflt:"afterall",values:["immediate","next","afterall"]},direction:{valType:"enumerated",values:["forward","reverse"],dflt:"forward"},fromcurrent:{valType:"boolean",dflt:!1},frame:{duration:{valType:"number",min:0,dflt:500},redraw:{valType:"boolean",dflt:!0}},transition:{duration:{valType:"number",min:0,dflt:500,editType:"none"},easing:{valType:"enumerated",dflt:"cubic-in-out",values:["linear","quad","cubic","sin","exp","circle","elastic","back","bounce","linear-in","quad-in","cubic-in","sin-in","exp-in","circle-in","elastic-in","back-in","bounce-in","linear-out","quad-out","cubic-out","sin-out","exp-out","circle-out","elastic-out","back-out","bounce-out","linear-in-out","quad-in-out","cubic-in-out","sin-in-out","exp-in-out","circle-in-out","elastic-in-out","back-in-out","bounce-in-out"],editType:"none"},ordering:{valType:"enumerated",values:["layout first","traces first"],dflt:"layout first",editType:"none"}}}});var Wi=J((wge,sw)=>{"use strict";var aw=oa().extendFlat,F$=No(),nw={valType:"flaglist",extras:["none"],flags:["calc","clearAxisTypes","plot","style","markerSize","colorbars"]},iw={valType:"flaglist",extras:["none"],flags:["calc","plot","legend","ticks","axrange","layoutstyle","modebar","camera","arraydraw","colorbars"]},N$=nw.flags.slice().concat(["fullReplot"]),I$=iw.flags.slice().concat("layoutReplot");sw.exports={traces:nw,layout:iw,traceFlags:function(){return tw(N$)},layoutFlags:function(){return tw(I$)},update:function(e,r){var t=r.editType;if(t&&t!=="none")for(var a=t.split("+"),n=0;n{"use strict";Ry.dash={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",editType:"style"};Ry.pattern={shape:{valType:"enumerated",values:["","/","\\","x","-","|","+","."],dflt:"",arrayOk:!0,editType:"style"},path:{valType:"string",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"}});var zy={};Rt(zy,{DATE_FORMAT_LINK:()=>H$,FORMAT_LINK:()=>B$});var B$,H$,Fy=Pt(()=>{"use strict";B$="https://github.com/d3/d3-format/tree/v1.4.5#d3-format",H$="https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format"});var Jo=J(b0=>{"use strict";var{DATE_FORMAT_LINK:O$,FORMAT_LINK:Y$}=(Fy(),Xe(zy)),U$=["Variables that can't be found will be replaced with the specifier.",'For example, a template of "data: %{x}, %{y}" will result in a value of "data: 1, %{y}" if x is 1 and y is missing.',"Variables with an undefined value will be replaced with the fallback value."].join(" ");function G$({supportOther:e}={}){return["Variables are inserted using %{variable},",'for example "y: %{y}"'+(e?" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown.":"."),`Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}".`,Y$,"for details on the formatting syntax.",`Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}".`,O$,"for details on the date formatting syntax.",U$].join(" ")}b0.templateFormatStringDescription=G$;b0.hovertemplateAttrs=({editType:e="none",arrayOk:r}={},t={})=>ot({valType:"string",dflt:"",editType:e},r!==!1?{arrayOk:!0}:{});b0.texttemplateAttrs=({editType:e="calc",arrayOk:r}={},t={})=>ot({valType:"string",dflt:"",editType:e},r!==!1?{arrayOk:!0}:{});b0.shapeTexttemplateAttrs=({editType:e="arraydraw",newshape:r}={},t={})=>({valType:"string",dflt:"",editType:e});b0.templatefallbackAttrs=({editType:e="none"}={})=>({valType:"any",dflt:"-",editType:e})});var A2=J((kge,hw)=>{"use strict";function Gl(e,r){return r?r.d2l(e):e}function uw(e,r){return r?r.l2d(e):e}function V$(e){return e.x0}function X$(e){return e.x1}function W$(e){return e.y0}function Z$(e){return e.y1}function fw(e){return e.x0shift||0}function cw(e){return e.x1shift||0}function vw(e){return e.y0shift||0}function dw(e){return e.y1shift||0}function M2(e,r){return Gl(e.x1,r)+cw(e)-Gl(e.x0,r)-fw(e)}function T2(e,r,t){return Gl(e.y1,t)+dw(e)-Gl(e.y0,t)-vw(e)}function J$(e,r){return Math.abs(M2(e,r))}function $$(e,r,t){return Math.abs(T2(e,r,t))}function K$(e,r,t){return e.type!=="line"?void 0:Math.sqrt(Math.pow(M2(e,r),2)+Math.pow(T2(e,r,t),2))}function j$(e,r){return uw((Gl(e.x1,r)+cw(e)+Gl(e.x0,r)+fw(e))/2,r)}function Q$(e,r,t){return uw((Gl(e.y1,t)+dw(e)+Gl(e.y0,t)+vw(e))/2,t)}function eK(e,r,t){return e.type!=="line"?void 0:T2(e,r,t)/M2(e,r)}var rK=["x0","x1","y0","y1","dy","height","ycenter"],tK=["x0","x1","y0","y1","dx","width","xcenter"];hw.exports={x0:V$,x1:X$,y0:W$,y1:Z$,slope:eK,dx:M2,dy:T2,width:J$,height:$$,length:K$,xcenter:j$,ycenter:Q$,simpleXVariables:rK,simpleYVariables:tK}});var yw=J((Cge,mw)=>{"use strict";var aK=Wi().overrideAll,$o=yi(),pw=Ea(),nK=Zi().dash,Vl=oa().extendFlat,{shapeTexttemplateAttrs:iK,templatefallbackAttrs:lK}=Jo(),oK=A2();mw.exports=aK({newshape:{visible:Vl({},$o.visible,{}),showlegend:{valType:"boolean",dflt:!1},legend:Vl({},$o.legend,{}),legendgroup:Vl({},$o.legendgroup,{}),legendgrouptitle:{text:Vl({},$o.legendgrouptitle.text,{}),font:pw({})},legendrank:Vl({},$o.legendrank,{}),legendwidth:Vl({},$o.legendwidth,{}),line:{color:{valType:"color"},width:{valType:"number",min:0,dflt:4},dash:Vl({},nK,{dflt:"solid"})},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd"},opacity:{valType:"number",min:0,max:1,dflt:1},layer:{valType:"enumerated",values:["below","above","between"],dflt:"above"},drawdirection:{valType:"enumerated",values:["ortho","horizontal","vertical","diagonal"],dflt:"diagonal"},name:Vl({},$o.name,{}),label:{text:{valType:"string",dflt:""},texttemplate:iK({newshape:!0},{keys:Object.keys(oK)}),texttemplatefallback:lK({editType:"arraydraw"}),font:pw({}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"]},textangle:{valType:"angle",dflt:"auto"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto"},yanchor:{valType:"enumerated",values:["top","middle","bottom"]},padding:{valType:"number",dflt:3,min:0}}},activeshape:{fillcolor:{valType:"color",dflt:"rgb(255,0,255)",description:"Sets the color filling the active shape' interior."},opacity:{valType:"number",min:0,max:1,dflt:.5}}},"none","from-root")});var bw=J((Sge,gw)=>{"use strict";var sK=Zi().dash,uK=oa().extendFlat;gw.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:uK({},sK,{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"}}});var k2=J((Dge,xw)=>{"use strict";xw.exports=function(e){var r=e.editType;return{t:{valType:"number",dflt:0,editType:r},r:{valType:"number",dflt:0,editType:r},b:{valType:"number",dflt:0,editType:r},l:{valType:"number",dflt:0,editType:r},editType:r}}});var x0=J((Lge,Tw)=>{"use strict";var Ny=Ea(),fK=gf(),C2=Xi(),_w=yw(),ww=bw(),cK=k2(),Mw=oa().extendFlat,S2=Ny({editType:"calc"});S2.family.dflt='"Open Sans", verdana, arial, sans-serif';S2.size.dflt=12;S2.color.dflt=C2.defaultLine;Tw.exports={font:S2,title:{text:{valType:"string",editType:"layoutstyle"},font:Ny({editType:"layoutstyle"}),subtitle:{text:{valType:"string",editType:"layoutstyle"},font:Ny({editType:"layoutstyle"}),editType:"layoutstyle"},xref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle"},yref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle"},x:{valType:"number",min:0,max:1,dflt:.5,editType:"layoutstyle"},y:{valType:"number",min:0,max:1,dflt:"auto",editType:"layoutstyle"},xanchor:{valType:"enumerated",dflt:"auto",values:["auto","left","center","right"],editType:"layoutstyle"},yanchor:{valType:"enumerated",dflt:"auto",values:["auto","top","middle","bottom"],editType:"layoutstyle"},pad:Mw(cK({editType:"layoutstyle"}),{}),automargin:{valType:"boolean",dflt:!1,editType:"plot"},editType:"layoutstyle"},uniformtext:{mode:{valType:"enumerated",values:[!1,"hide","show"],dflt:!1,editType:"plot"},minsize:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"},autosize:{valType:"boolean",dflt:!1,editType:"none"},width:{valType:"number",min:10,dflt:700,editType:"plot"},height:{valType:"number",min:10,dflt:450,editType:"plot"},minreducedwidth:{valType:"number",min:2,dflt:64,editType:"plot"},minreducedheight:{valType:"number",min:2,dflt:64,editType:"plot"},margin:{l:{valType:"number",min:0,dflt:80,editType:"plot"},r:{valType:"number",min:0,dflt:80,editType:"plot"},t:{valType:"number",min:0,dflt:100,editType:"plot"},b:{valType:"number",min:0,dflt:80,editType:"plot"},pad:{valType:"number",min:0,dflt:0,editType:"plot"},autoexpand:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},computed:{valType:"any",editType:"none"},paper_bgcolor:{valType:"color",dflt:C2.background,editType:"plot"},plot_bgcolor:{valType:"color",dflt:C2.background,editType:"layoutstyle"},autotypenumbers:{valType:"enumerated",values:["convert types","strict"],dflt:"convert types",editType:"calc"},separators:{valType:"string",editType:"plot"},showlegend:{valType:"boolean",editType:"legend"},colorway:{valType:"colorlist",dflt:C2.defaults,editType:"calc"},datarevision:{valType:"any",editType:"calc"},uirevision:{valType:"any",editType:"none"},editrevision:{valType:"any",editType:"none"},selectionrevision:{valType:"any",editType:"none"},template:{valType:"any",editType:"calc"},newshape:_w.newshape,activeshape:_w.activeshape,newselection:ww.newselection,activeselection:ww.activeselection,meta:{valType:"any",arrayOk:!0,editType:"plot"},transition:Mw({},fK.transition,{editType:"none"})}});var Aw=J(()=>{(function(){if(!document.getElementById("ce8d464691048653ffe3a57c6c18ab566e8366f186677868cf724621a857b4fe")){var e=document.createElement("style");e.id="ce8d464691048653ffe3a57c6c18ab566e8366f186677868cf724621a857b4fe",e.textContent='.maplibregl-map{font:12px/20px Helvetica Neue,Arial,Helvetica,sans-serif;overflow:hidden;position:relative;-webkit-tap-highlight-color:rgb(0 0 0/0);-webkit-touch-callout:none}.maplibregl-canvas{position:absolute;left:0;top:0}.maplibregl-map:fullscreen{width:100%;height:100%}.maplibregl-ctrl-group button.maplibregl-ctrl-compass{touch-action:none}.maplibregl-canvas-container.maplibregl-interactive,.maplibregl-ctrl-group button.maplibregl-ctrl-compass{cursor:grab;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-canvas-container.maplibregl-interactive.maplibregl-track-pointer{cursor:pointer}.maplibregl-canvas-container.maplibregl-interactive:active,.maplibregl-ctrl-group button.maplibregl-ctrl-compass:active{cursor:grabbing}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-canvas-container.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:pinch-zoom}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:none}.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures,.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-ctrl-bottom-left,.maplibregl-ctrl-bottom-right,.maplibregl-ctrl-top-left,.maplibregl-ctrl-top-right{position:absolute;pointer-events:none;z-index:2}.maplibregl-ctrl-top-left{top:0;left:0}.maplibregl-ctrl-top-right{top:0;right:0}.maplibregl-ctrl-bottom-left{bottom:0;left:0}.maplibregl-ctrl-bottom-right{right:0;bottom:0}.maplibregl-ctrl{clear:both;pointer-events:auto;transform:translate(0)}.maplibregl-ctrl-top-left .maplibregl-ctrl{margin:10px 0 0 10px;float:left}.maplibregl-ctrl-top-right .maplibregl-ctrl{margin:10px 10px 0 0;float:right}.maplibregl-ctrl-bottom-left .maplibregl-ctrl{margin:0 0 10px 10px;float:left}.maplibregl-ctrl-bottom-right .maplibregl-ctrl{margin:0 10px 10px 0;float:right}.maplibregl-ctrl-group{border-radius:4px;background:#fff}.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px rgba(0,0,0,.1)}@media (forced-colors:active){.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px ButtonText}}.maplibregl-ctrl-group button{width:29px;height:29px;display:block;padding:0;outline:none;border:0;box-sizing:border-box;background-color:transparent;cursor:pointer}.maplibregl-ctrl button{-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-ctrl-group button+button{border-top:1px solid #ddd}.maplibregl-ctrl button .maplibregl-ctrl-icon{display:block;width:100%;height:100%;background-repeat:no-repeat;background-position:50%}@media (forced-colors:active){.maplibregl-ctrl-icon{background-color:transparent}.maplibregl-ctrl-group button+button{border-top:1px solid ButtonText}}.maplibregl-ctrl button::-moz-focus-inner{border:0;padding:0}.maplibregl-ctrl-attrib-button:focus,.maplibregl-ctrl-group button:focus{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl button:disabled{cursor:not-allowed}.maplibregl-ctrl button:disabled .maplibregl-ctrl-icon{opacity:.25}@media (hover:hover){.maplibregl-ctrl button:not(:disabled):hover{background-color:rgba(0,0,0,.05)}}.maplibregl-ctrl button:not(:disabled):active{background-color:rgba(0,0,0,.05)}.maplibregl-ctrl-group button:focus:focus-visible{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl-group button:focus:not(:focus-visible){box-shadow:none}.maplibregl-ctrl-group button:focus:first-child{border-radius:4px 4px 0 0}.maplibregl-ctrl-group button:focus:last-child{border-radius:0 0 4px 4px}.maplibregl-ctrl-group button:focus:only-child{border-radius:inherit}.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M10%2013c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h9c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M14.5%208.5c-.75%200-1.5.75-1.5%201.5v3h-3c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h3v3c0%20.75.75%201.5%201.5%201.5S16%2019.75%2016%2019v-3h3c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013h-3v-3c0-.75-.75-1.5-1.5-1.5%22%2F%3E%3C%2Fsvg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M10%2013c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h9c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M14.5%208.5c-.75%200-1.5.75-1.5%201.5v3h-3c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h3v3c0%20.75.75%201.5%201.5%201.5S16%2019.75%2016%2019v-3h3c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013h-3v-3c0-.75-.75-1.5-1.5-1.5%22%2F%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M10%2013c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h9c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M14.5%208.5c-.75%200-1.5.75-1.5%201.5v3h-3c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h3v3c0%20.75.75%201.5%201.5%201.5S16%2019.75%2016%2019v-3h3c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013h-3v-3c0-.75-.75-1.5-1.5-1.5%22%2F%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M24%2016v5.5c0%201.75-.75%202.5-2.5%202.5H16v-1l3-1.5-4-5.5%201-1%205.5%204%201.5-3zM6%2016l1.5%203%205.5-4%201%201-4%205.5%203%201.5v1H7.5C5.75%2024%205%2023.25%205%2021.5V16zm7-11v1l-3%201.5%204%205.5-1%201-5.5-4L6%2013H5V7.5C5%205.75%205.75%205%207.5%205zm11%202.5c0-1.75-.75-2.5-2.5-2.5H16v1l3%201.5-4%205.5%201%201%205.5-4%201.5%203h1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M18.5%2016c-1.75%200-2.5.75-2.5%202.5V24h1l1.5-3%205.5%204%201-1-4-5.5%203-1.5v-1zM13%2018.5c0-1.75-.75-2.5-2.5-2.5H5v1l3%201.5L4%2024l1%201%205.5-4%201.5%203h1zm3-8c0%201.75.75%202.5%202.5%202.5H24v-1l-3-1.5L25%205l-1-1-5.5%204L17%205h-1zM10.5%2013c1.75%200%202.5-.75%202.5-2.5V5h-1l-1.5%203L5%204%204%205l4%205.5L5%2012v1z%22%2F%3E%3C%2Fsvg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M24%2016v5.5c0%201.75-.75%202.5-2.5%202.5H16v-1l3-1.5-4-5.5%201-1%205.5%204%201.5-3zM6%2016l1.5%203%205.5-4%201%201-4%205.5%203%201.5v1H7.5C5.75%2024%205%2023.25%205%2021.5V16zm7-11v1l-3%201.5%204%205.5-1%201-5.5-4L6%2013H5V7.5C5%205.75%205.75%205%207.5%205zm11%202.5c0-1.75-.75-2.5-2.5-2.5H16v1l3%201.5-4%205.5%201%201%205.5-4%201.5%203h1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M18.5%2016c-1.75%200-2.5.75-2.5%202.5V24h1l1.5-3%205.5%204%201-1-4-5.5%203-1.5v-1zM13%2018.5c0-1.75-.75-2.5-2.5-2.5H5v1l3%201.5L4%2024l1%201%205.5-4%201.5%203h1zm3-8c0%201.75.75%202.5%202.5%202.5H24v-1l-3-1.5L25%205l-1-1-5.5%204L17%205h-1zM10.5%2013c1.75%200%202.5-.75%202.5-2.5V5h-1l-1.5%203L5%204%204%205l4%205.5L5%2012v1z%22%2F%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M24%2016v5.5c0%201.75-.75%202.5-2.5%202.5H16v-1l3-1.5-4-5.5%201-1%205.5%204%201.5-3zM6%2016l1.5%203%205.5-4%201%201-4%205.5%203%201.5v1H7.5C5.75%2024%205%2023.25%205%2021.5V16zm7-11v1l-3%201.5%204%205.5-1%201-5.5-4L6%2013H5V7.5C5%205.75%205.75%205%207.5%205zm11%202.5c0-1.75-.75-2.5-2.5-2.5H16v1l3%201.5-4%205.5%201%201%205.5-4%201.5%203h1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M18.5%2016c-1.75%200-2.5.75-2.5%202.5V24h1l1.5-3%205.5%204%201-1-4-5.5%203-1.5v-1zM13%2018.5c0-1.75-.75-2.5-2.5-2.5H5v1l3%201.5L4%2024l1%201%205.5-4%201.5%203h1zm3-8c0%201.75.75%202.5%202.5%202.5H24v-1l-3-1.5L25%205l-1-1-5.5%204L17%205h-1zM10.5%2013c1.75%200%202.5-.75%202.5-2.5V5h-1l-1.5%203L5%204%204%205l4%205.5L5%2012v1z%22%2F%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22m10.5%2014%204-8%204%208z%22%2F%3E%3Cpath%20fill%3D%22%23ccc%22%20d%3D%22m10.5%2016%204%208%204-8z%22%2F%3E%3C%2Fsvg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22m10.5%2014%204-8%204%208z%22%2F%3E%3Cpath%20fill%3D%22%23ccc%22%20d%3D%22m10.5%2016%204%208%204-8z%22%2F%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22m10.5%2014%204-8%204%208z%22%2F%3E%3Cpath%20fill%3D%22%23ccc%22%20d%3D%22m10.5%2016%204%208%204-8z%22%2F%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-globe .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2222%22%20height%3D%2222%22%20fill%3D%22none%22%20stroke%3D%22%23333%22%20viewBox%3D%220%200%2022%2022%22%3E%3Ccircle%20cx%3D%2211%22%20cy%3D%2211%22%20r%3D%228.5%22%2F%3E%3Cpath%20d%3D%22M17.5%2011c0%204.819-3.02%208.5-6.5%208.5S4.5%2015.819%204.5%2011%207.52%202.5%2011%202.5s6.5%203.681%206.5%208.5Z%22%2F%3E%3Cpath%20d%3D%22M13.5%2011c0%202.447-.331%204.64-.853%206.206-.262.785-.562%201.384-.872%201.777-.314.399-.58.517-.775.517s-.461-.118-.775-.517c-.31-.393-.61-.992-.872-1.777C8.831%2015.64%208.5%2013.446%208.5%2011s.331-4.64.853-6.206c.262-.785.562-1.384.872-1.777.314-.399.58-.517.775-.517s.461.118.775.517c.31.393.61.992.872%201.777.522%201.565.853%203.76.853%206.206Z%22%2F%3E%3Cpath%20d%3D%22M11%207.5c-1.909%200-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3%201.3%200%200%201-.224-.138q.07-.058.224-.138c.299-.151.763-.302%201.379-.434C7.378%205.666%209.091%205.5%2011%205.5s3.622.166%204.845.428c.616.132%201.08.283%201.379.434.105.053.177.1.224.138q-.07.058-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm0%209c-1.909%200-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3%201.3%200%200%201-.224-.138%201.3%201.3%200%200%201%20.224-.138c.299-.151.763-.302%201.379-.434C7.378%2014.666%209.091%2014.5%2011%2014.5s3.622.166%204.845.428c.616.132%201.08.283%201.379.434.105.053.177.1.224.138a1.3%201.3%200%200%201-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm0-4c-2.46%200-4.672-.222-6.255-.574-.796-.177-1.406-.38-1.805-.59a1.5%201.5%200%200%201-.39-.272.3.3%200%200%201-.047-.064.3.3%200%200%201%20.048-.064c.066-.073.189-.167.389-.272.399-.21%201.009-.413%201.805-.59C6.328%209.722%208.54%209.5%2011%209.5s4.672.222%206.256.574c.795.177%201.405.38%201.804.59.2.105.323.2.39.272a.3.3%200%200%201%20.047.064.3.3%200%200%201-.048.064%201.4%201.4%200%200%201-.389.272c-.399.21-1.009.413-1.804.59-1.584.352-3.796.574-6.256.574Zm-8.501-1.51v.002zm0%20.018v.002zm17.002.002v-.002zm0-.018v-.002z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-globe-enabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2222%22%20height%3D%2222%22%20fill%3D%22none%22%20stroke%3D%22%2333b5e5%22%20viewBox%3D%220%200%2022%2022%22%3E%3Ccircle%20cx%3D%2211%22%20cy%3D%2211%22%20r%3D%228.5%22%2F%3E%3Cpath%20d%3D%22M17.5%2011c0%204.819-3.02%208.5-6.5%208.5S4.5%2015.819%204.5%2011%207.52%202.5%2011%202.5s6.5%203.681%206.5%208.5Z%22%2F%3E%3Cpath%20d%3D%22M13.5%2011c0%202.447-.331%204.64-.853%206.206-.262.785-.562%201.384-.872%201.777-.314.399-.58.517-.775.517s-.461-.118-.775-.517c-.31-.393-.61-.992-.872-1.777C8.831%2015.64%208.5%2013.446%208.5%2011s.331-4.64.853-6.206c.262-.785.562-1.384.872-1.777.314-.399.58-.517.775-.517s.461.118.775.517c.31.393.61.992.872%201.777.522%201.565.853%203.76.853%206.206Z%22%2F%3E%3Cpath%20d%3D%22M11%207.5c-1.909%200-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3%201.3%200%200%201-.224-.138q.07-.058.224-.138c.299-.151.763-.302%201.379-.434C7.378%205.666%209.091%205.5%2011%205.5s3.622.166%204.845.428c.616.132%201.08.283%201.379.434.105.053.177.1.224.138q-.07.058-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm0%209c-1.909%200-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3%201.3%200%200%201-.224-.138%201.3%201.3%200%200%201%20.224-.138c.299-.151.763-.302%201.379-.434C7.378%2014.666%209.091%2014.5%2011%2014.5s3.622.166%204.845.428c.616.132%201.08.283%201.379.434.105.053.177.1.224.138a1.3%201.3%200%200%201-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm0-4c-2.46%200-4.672-.222-6.255-.574-.796-.177-1.406-.38-1.805-.59a1.5%201.5%200%200%201-.39-.272.3.3%200%200%201-.047-.064.3.3%200%200%201%20.048-.064c.066-.073.189-.167.389-.272.399-.21%201.009-.413%201.805-.59C6.328%209.722%208.54%209.5%2011%209.5s4.672.222%206.256.574c.795.177%201.405.38%201.804.59.2.105.323.2.39.272a.3.3%200%200%201%20.047.064.3.3%200%200%201-.048.064%201.4%201.4%200%200%201-.389.272c-.399.21-1.009.413-1.804.59-1.584.352-3.796.574-6.256.574Zm-8.501-1.51v.002zm0%20.018v.002zm17.002.002v-.002zm0-.018v-.002z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-terrain .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2222%22%20height%3D%2222%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2022%2022%22%3E%3Cpath%20d%3D%22m1.754%2013.406%204.453-4.851%203.09%203.09%203.281%203.277.969-.969-3.309-3.312%203.844-4.121%206.148%206.886h1.082v-.855l-7.207-8.07-4.84%205.187L6.169%206.57l-5.48%205.965v.871ZM.688%2016.844h20.625v1.375H.688Zm0%200%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-terrain-enabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2222%22%20height%3D%2222%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2022%2022%22%3E%3Cpath%20d%3D%22m1.754%2013.406%204.453-4.851%203.09%203.09%203.281%203.277.969-.969-3.309-3.312%203.844-4.121%206.148%206.886h1.082v-.855l-7.207-8.07-4.84%205.187L6.169%206.57l-5.48%205.965v.871ZM.688%2016.844h20.625v1.375H.688Zm0%200%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23aaa%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3Cpath%20fill%3D%22red%22%20d%3D%22m14%205%201%201-9%209-1-1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23e58978%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23e54e33%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-waiting .maplibregl-ctrl-icon{animation:maplibregl-spin 2s linear infinite}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23999%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3Cpath%20fill%3D%22red%22%20d%3D%22m14%205%201%201-9%209-1-1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23e58978%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23e54e33%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23666%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3Cpath%20fill%3D%22red%22%20d%3D%22m14%205%201%201-9%209-1-1z%22%2F%3E%3C%2Fsvg%3E")}}@keyframes maplibregl-spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}a.maplibregl-ctrl-logo{width:88px;height:23px;margin:0 0 -4px -4px;display:block;background-repeat:no-repeat;cursor:pointer;overflow:hidden;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2288%22%20height%3D%2223%22%20fill%3D%22none%22%3E%3Cpath%20fill%3D%22%23000%22%20fill-opacity%3D%22.4%22%20fill-rule%3D%22evenodd%22%20d%3D%22M17.408%2016.796h-1.827l2.501-12.095h.198l3.324%206.533.988%202.19.988-2.19%203.258-6.533h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.929%205.644h-.098l-2.914-5.644-.757-1.71-.345%201.71zm1.958-3.42-.726%203.663a1.255%201.255%200%200%201-1.232%201.011h-1.827a1.255%201.255%200%200%201-1.229-1.509l2.501-12.095a1.255%201.255%200%200%201%201.23-1.001h.197a1.25%201.25%200%200%201%201.12.685l3.19%206.273%203.125-6.263a1.25%201.25%200%200%201%201.123-.695h.181a1.255%201.255%200%200%201%201.227.991l1.443%206.71a5%205%200%200%201%20.314-.787l.009-.016a4.6%204.6%200%200%201%201.777-1.887c.782-.46%201.668-.667%202.611-.667a4.6%204.6%200%200%201%201.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255%201.255%200%200%201%201.212.925%201.255%201.255%200%200%201%201.212-.925h1.711c.284%200%20.545.094.755.252.613-.3%201.312-.45%202.075-.45%201.356%200%202.557.445%203.482%201.4q.47.48.763%201.064V4.701a1.255%201.255%200%200%201%201.255-1.255h1.86A1.255%201.255%200%200%201%2054.44%204.7v9.194h2.217c.19%200%20.37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42%202.42%200%200%201-.682-1.71c0-.665.267-1.253.735-1.7a2.45%202.45%200%200%201%201.722-.674%202.43%202.43%200%200%201%201.705.675q.318.302.504.683V4.7a1.255%201.255%200%200%201%201.255-1.255h1.744A1.255%201.255%200%200%201%2065.812%204.7v3.335a4.8%204.8%200%200%201%201.526-.246c.938%200%201.817.214%202.59.69a4.47%204.47%200%200%201%201.67%201.743v-.98a1.255%201.255%200%200%201%201.256-1.256h1.777c.233%200%20.451.064.639.174a3.4%203.4%200%200%201%201.567-.372c.346%200%20.861.02%201.285.232a1.25%201.25%200%200%201%20.689%201.004%204.7%204.7%200%200%201%20.853-.588c.795-.44%201.675-.647%202.61-.647%201.385%200%202.65.39%203.525%201.396.836.938%201.168%202.173%201.168%203.528q-.001.515-.056%201.051a1.255%201.255%200%200%201-.947%201.09l.408.952a1.255%201.255%200%200%201-.477%201.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06%200-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8%205.8%200%200%201-.548-2.512q0-.429.053-.843a1.3%201.3%200%200%201-.333-.086l-.166-.004c-.223%200-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255%201.255%200%200%201-1.256%201.256h-1.777a1.255%201.255%200%200%201-1.256-1.256V15.69l-.032.057a4.8%204.8%200%200%201-1.86%201.833%205.04%205.04%200%200%201-2.484.634%204.5%204.5%200%200%201-1.935-.424%201.25%201.25%200%200%201-.764.258h-1.71a1.255%201.255%200%200%201-1.256-1.255V7.687a2.4%202.4%200%200%201-.428.625c.253.23.412.561.412.93v7.553a1.255%201.255%200%200%201-1.256%201.255h-1.843a1.25%201.25%200%200%201-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255%201.255%200%200%201-1.256-1.255v-1.251l-.061.117a4.7%204.7%200%200%201-1.782%201.884%204.77%204.77%200%200%201-2.485.67%205.6%205.6%200%200%201-1.485-.188l.009%202.764a1.255%201.255%200%200%201-1.255%201.259h-1.729a1.255%201.255%200%200%201-1.255-1.255v-3.537a1.255%201.255%200%200%201-1.167.793h-1.679a1.25%201.25%200%200%201-.77-.263%204.5%204.5%200%200%201-1.945.429c-.885%200-1.724-.21-2.495-.632l-.017-.01a5%205%200%200%201-1.081-.836%201.255%201.255%200%200%201-1.254%201.312h-1.81a1.255%201.255%200%200%201-1.228-.99l-.782-3.625-2.044%203.939a1.25%201.25%200%200%201-1.115.676h-.098a1.25%201.25%200%200%201-1.116-.68l-2.061-3.994zM35.92%2016.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033%201.332h1.678V9.242h-1.694l-.033%201.267q-.133-.329-.526-.658l-.032-.028a3.2%203.2%200%200%200-.668-.428l-.27-.12a3.3%203.3%200%200%200-1.235-.23q-1.136-.001-1.974.493a3.36%203.36%200%200%200-1.3%201.382q-.445.89-.444%202.074%200%201.2.51%202.107a3.8%203.8%200%200%200%201.382%201.381%203.9%203.9%200%200%200%201.893.477q.795%200%201.455-.33zm-2.789-5.38q-.576.675-.575%201.762%200%201.102.559%201.794.576.675%201.645.675a2.25%202.25%200%200%200%20.934-.19%202.2%202.2%200%200%200%20.468-.29l.178-.161a2.2%202.2%200%200%200%20.397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2%202.2%200%200%200-.633-.709l-.13-.086-.047-.028a2.1%202.1%200%200%200-1.073-.285q-1.052%200-1.629.692zm2.316%202.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96%200%200%200-.353-.389.85.85%200%200%200-.464-.127c-.4%200-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945%200%20.506.122.801.27.99.097.11.266.224.68.224.303%200%20.504-.09.687-.269zm7.545%201.705a2.6%202.6%200%200%200%20.331.423q.319.33.755.548l.173.074q.65.255%201.49.255%201.02%200%201.844-.493a3.45%203.45%200%200%200%201.316-1.4q.493-.904.493-2.089%200-1.909-.988-2.913-.988-1.02-2.584-1.02-.898%200-1.575.347a3%203%200%200%200-.415.262l-.199.166a3.4%203.4%200%200%200-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296%201.119.297%201.07%200%201.645-.675.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.435%200-.835.16a2%202%200%200%200-.284.136%202%202%200%200%200-.363.254%202.2%202.2%200%200%200-.46.569l-.082.162a2.6%202.6%200%200%200-.213%201.072v.115q0%20.707.296%201.267l.135.211zm.964-.818a1.1%201.1%200%200%200%20.367.385.94.94%200%200%200%20.476.118c.423%200%20.59-.117.687-.23.159-.194.28-.478.28-.95%200-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1%201%200%200%200-.503.135l-.012.007a.86.86%200%200%200-.335.343c-.073.133-.132.324-.132.614v.115a1.4%201.4%200%200%200%20.14.66zm15.7-6.222q.347-.346.346-.856a1.05%201.05%200%200%200-.345-.79%201.18%201.18%200%200%200-.84-.329q-.51%200-.855.33a1.05%201.05%200%200%200-.346.79q0%20.51.346.855.345.346.856.346.51%200%20.839-.346zm4.337%209.314.033-1.332q.191.403.59.747l.098.081a4%204%200%200%200%20.316.224l.223.122a3.2%203.2%200%200%200%201.44.322%203.8%203.8%200%200%200%201.875-.477%203.5%203.5%200%200%200%201.382-1.366q.527-.89.526-2.09%200-1.184-.444-2.073a3.24%203.24%200%200%200-1.283-1.399q-.823-.51-1.942-.51a3.5%203.5%200%200%200-1.527.344l-.086.043-.165.09a3%203%200%200%200-.33.214q-.432.315-.656.707a2%202%200%200%200-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5%202.5%200%200%200%20.566.7q.117.098.245.18l.144.08a2.1%202.1%200%200%200%20.975.232q1.07%200%201.645-.675.576-.69.576-1.778%200-1.102-.576-1.777-.56-.691-1.645-.692a2.2%202.2%200%200%200-1.015.235q-.22.113-.415.282l-.15.142a2.1%202.1%200%200%200-.42.594q-.223.479-.223%201.1v.115q0%20.705.293%201.26zm2.616-.293c.157-.191.28-.479.28-.967%200-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87%200%200%200-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0%20.285.057.499.144.669a1.1%201.1%200%200%200%20.367.405c.137.082.28.123.455.123.423%200%20.59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493%200%20.642.099l.247-1.794q-.196-.099-.717-.099a2.3%202.3%200%200%200-.545.063%202%202%200%200%200-.411.148%202.2%202.2%200%200%200-.4.249%202.5%202.5%200%200%200-.485.499%202.7%202.7%200%200%200-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5%201.5%200%200%201%20.466-.636%202.5%202.5%200%200%201%20.399-.253%202%202%200%200%201%20.224-.099zm9.784%202.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46%203.46%200%200%200-1.4%201.382q-.493.906-.493%202.106%200%201.07.428%201.975.428.89%201.332%201.432.906.526%202.255.526.973%200%201.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954%200-1.497-.444a1.6%201.6%200%200%201-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1%201%200%200%200-.156-.176q-.46-.428-1.316-.428-.986%200-1.494.604-.379.45-.494%201.234zm-27.053%202.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z%22%2F%3E%3Cpath%20fill%3D%22%23fff%22%20d%3D%22m19.63%2011.151-.757-1.71-.345%201.71-1.12%205.644h-1.827L18.083%204.7h.197l3.325%206.533.988%202.19.988-2.19L26.839%204.7h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.93%205.644h-.098l-2.913-5.644zm14.836%205.81q-1.02%200-1.893-.478a3.8%203.8%200%200%201-1.381-1.382q-.51-.906-.51-2.106%200-1.185.444-2.074a3.36%203.36%200%200%201%201.3-1.382q.839-.494%201.974-.494a3.3%203.3%200%200%201%201.234.231%203.3%203.3%200%200%201%20.97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02%201.053a3.17%203.17%200%200%201-1.662.444zm.296-1.482q.938%200%201.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2%202.2%200%200%200-.807-.872%202.1%202.1%200%200%200-1.119-.313q-1.053%200-1.629.692-.575.675-.575%201.76%200%201.103.559%201.795.577.675%201.645.675zm6.521-6.237h1.711v1.4q.906-1.597%202.83-1.597%201.596%200%202.584%201.02.988%201.005.988%202.914%200%201.185-.493%202.09a3.46%203.46%200%200%201-1.316%201.399%203.5%203.5%200%200%201-1.844.493q-.954%200-1.662-.329a2.67%202.67%200%200%201-1.086-.97l.017%205.134h-1.728zm4.048%206.22q1.07%200%201.645-.674.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.592%200-1.12.296-.51.28-.822.823-.296.527-.296%201.234v.115q0%20.708.296%201.267.313.543.823.855.51.296%201.119.297z%22%2F%3E%3Cpath%20fill%3D%22%23e1e3e9%22%20d%3D%22M51.325%204.7h1.86v10.45h3.473v1.646h-5.333zm7.12%204.542h1.843v7.553h-1.843zm.905-1.415a1.16%201.16%200%200%201-.856-.346%201.17%201.17%200%200%201-.346-.856%201.05%201.05%200%200%201%20.346-.79q.346-.329.856-.329.494%200%20.839.33a1.05%201.05%200%200%201%20.345.79%201.16%201.16%200%200%201-.345.855q-.33.346-.84.346zm7.875%209.133a3.17%203.17%200%200%201-1.662-.444q-.723-.46-1.004-1.053l-.033%201.332h-1.71V4.701h1.743v4.657l-.082%201.283q.279-.658%201.086-1.119a3.5%203.5%200%200%201%201.778-.477q1.119%200%201.942.51a3.24%203.24%200%200%201%201.283%201.4q.445.888.444%202.072%200%201.201-.526%202.09a3.5%203.5%200%200%201-1.382%201.366%203.8%203.8%200%200%201-1.876.477zm-.296-1.481q1.069%200%201.645-.675.577-.69.577-1.778%200-1.102-.577-1.776-.56-.691-1.645-.692a2.12%202.12%200%200%200-1.58.659q-.642.641-.642%201.694v.115q0%20.71.296%201.267a2.4%202.4%200%200%200%20.807.872%202.1%202.1%200%200%200%201.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14%202.14%200%200%201%201.349-.46q.527%200%20.724.098l-.247%201.794q-.149-.099-.642-.099-.774%200-1.416.494-.626.493-.626%201.58v3.883h-1.777V9.242zm9.534%207.718q-1.35%200-2.255-.526-.904-.543-1.332-1.432a4.6%204.6%200%200%201-.428-1.975q0-1.2.493-2.106a3.46%203.46%200%200%201%201.4-1.382q.889-.495%202.007-.494%201.744%200%202.584.97.855.956.856%202.7%200%20.444-.05.92h-5.43q.18%201.005.708%201.45.542.443%201.497.443.79%200%201.3-.131a4%204%200%200%200%20.938-.362l.542%201.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728%200-1.991%201.86z%22%2F%3E%3Cpath%20d%3D%22M5.074%2015.948a.484.657%200%200%200-.486.659v1.84a.484.657%200%200%200%20.486.659h4.101a.484.657%200%200%200%20.486-.659v-1.84a.484.657%200%200%200-.486-.659zm3.56%201.16H5.617v.838h3.017z%22%20style%3D%22fill%3A%23fff%3Bfill-rule%3Aevenodd%3Bstroke-width%3A1.03600001%22%2F%3E%3Cg%20style%3D%22stroke-width%3A1.12603545%22%3E%3Cpath%20d%3D%22M-9.408-1.416c-3.833-.025-7.056%202.912-7.08%206.615-.02%203.08%201.653%204.832%203.107%206.268.903.892%201.721%201.74%202.32%202.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87%201.87%200%200%200-.362%201.121l-.011%201.877c-.003.402.104.787.347%201.125.244.338.688.653%201.23.656l4.142.028c.542.003.99-.306%201.238-.641a1.87%201.87%200%200%200%20.363-1.121l.012-1.875a1.87%201.87%200%200%200-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145%201.425-1.983%202.348-2.87%201.473-1.414%203.18-3.149%203.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006%201.1v.002c3.274.02%205.92%202.532%205.9%205.6-.017%202.706-1.39%204.026-2.863%205.44-1.034.994-2.118%202.033-2.814%203.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34%200%200%201-.226.084.34.34%200%200%201-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067%202.7-5.545%205.975-5.523m-.02%202.826c-1.62-.01-2.944%201.315-2.955%202.96-.01%201.646%201.295%202.988%202.916%202.999h.002c1.621.01%202.943-1.316%202.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005%201.1c1.017.006%201.829.83%201.822%201.89s-.83%201.874-1.848%201.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874%201.848-1.868m-2.155%2011.857%204.14.025c.271.002.49.305.487.676l-.013%201.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668%22%20style%3D%22color%3A%23000%3Bfont-style%3Anormal%3Bfont-variant%3Anormal%3Bfont-weight%3A400%3Bfont-stretch%3Anormal%3Bfont-size%3Amedium%3Bline-height%3Anormal%3Bfont-family%3Asans-serif%3Bfont-variant-ligatures%3Anormal%3Bfont-variant-position%3Anormal%3Bfont-variant-caps%3Anormal%3Bfont-variant-numeric%3Anormal%3Bfont-variant-alternates%3Anormal%3Bfont-feature-settings%3Anormal%3Btext-indent%3A0%3Btext-align%3Astart%3Btext-decoration%3Anone%3Btext-decoration-line%3Anone%3Btext-decoration-style%3Asolid%3Btext-decoration-color%3A%23000%3Bletter-spacing%3Anormal%3Bword-spacing%3Anormal%3Btext-transform%3Anone%3Bwriting-mode%3Alr-tb%3Bdirection%3Altr%3Btext-orientation%3Amixed%3Bdominant-baseline%3Aauto%3Bbaseline-shift%3Abaseline%3Btext-anchor%3Astart%3Bwhite-space%3Anormal%3Bshape-padding%3A0%3Bclip-rule%3Aevenodd%3Bdisplay%3Ainline%3Boverflow%3Avisible%3Bvisibility%3Avisible%3Bopacity%3A1%3Bisolation%3Aauto%3Bmix-blend-mode%3Anormal%3Bcolor-interpolation%3AsRGB%3Bcolor-interpolation-filters%3AlinearRGB%3Bsolid-color%3A%23000%3Bsolid-opacity%3A1%3Bvector-effect%3Anone%3Bfill%3A%23000%3Bfill-opacity%3A.4%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-linecap%3Abutt%3Bstroke-linejoin%3Amiter%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-dashoffset%3A0%3Bstroke-opacity%3A1%3Bcolor-rendering%3Aauto%3Bimage-rendering%3Aauto%3Bshape-rendering%3Aauto%3Btext-rendering%3Aauto%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-9.415-.316C-12.69-.338-15.37%202.14-15.39%205.207c-.017%202.716%201.326%204.041%202.78%205.477%201.013%201%202.081%202.055%202.78%203.67l.092.076a.34.34%200%200%200%20.225.086.34.34%200%200%200%20.227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6%201.78-2.64%202.814-3.634%201.473-1.414%202.847-2.733%202.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057%208.784c1.621.011%202.944-1.315%202.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945%201.315-2.955%202.96s1.295%202.989%202.916%203%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23e1e3e9%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-11.594%2015.465c-.27-.002-.492.297-.494.668l-.012%201.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23fff%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E")}a.maplibregl-ctrl-logo.maplibregl-compact{width:14px}@media (forced-colors:active){a.maplibregl-ctrl-logo{background-color:transparent;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2288%22%20height%3D%2223%22%20fill%3D%22none%22%3E%3Cpath%20fill%3D%22%23000%22%20fill-opacity%3D%22.4%22%20fill-rule%3D%22evenodd%22%20d%3D%22M17.408%2016.796h-1.827l2.501-12.095h.198l3.324%206.533.988%202.19.988-2.19%203.258-6.533h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.929%205.644h-.098l-2.914-5.644-.757-1.71-.345%201.71zm1.958-3.42-.726%203.663a1.255%201.255%200%200%201-1.232%201.011h-1.827a1.255%201.255%200%200%201-1.229-1.509l2.501-12.095a1.255%201.255%200%200%201%201.23-1.001h.197a1.25%201.25%200%200%201%201.12.685l3.19%206.273%203.125-6.263a1.25%201.25%200%200%201%201.123-.695h.181a1.255%201.255%200%200%201%201.227.991l1.443%206.71a5%205%200%200%201%20.314-.787l.009-.016a4.6%204.6%200%200%201%201.777-1.887c.782-.46%201.668-.667%202.611-.667a4.6%204.6%200%200%201%201.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255%201.255%200%200%201%201.212.925%201.255%201.255%200%200%201%201.212-.925h1.711c.284%200%20.545.094.755.252.613-.3%201.312-.45%202.075-.45%201.356%200%202.557.445%203.482%201.4q.47.48.763%201.064V4.701a1.255%201.255%200%200%201%201.255-1.255h1.86A1.255%201.255%200%200%201%2054.44%204.7v9.194h2.217c.19%200%20.37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42%202.42%200%200%201-.682-1.71c0-.665.267-1.253.735-1.7a2.45%202.45%200%200%201%201.722-.674%202.43%202.43%200%200%201%201.705.675q.318.302.504.683V4.7a1.255%201.255%200%200%201%201.255-1.255h1.744A1.255%201.255%200%200%201%2065.812%204.7v3.335a4.8%204.8%200%200%201%201.526-.246c.938%200%201.817.214%202.59.69a4.47%204.47%200%200%201%201.67%201.743v-.98a1.255%201.255%200%200%201%201.256-1.256h1.777c.233%200%20.451.064.639.174a3.4%203.4%200%200%201%201.567-.372c.346%200%20.861.02%201.285.232a1.25%201.25%200%200%201%20.689%201.004%204.7%204.7%200%200%201%20.853-.588c.795-.44%201.675-.647%202.61-.647%201.385%200%202.65.39%203.525%201.396.836.938%201.168%202.173%201.168%203.528q-.001.515-.056%201.051a1.255%201.255%200%200%201-.947%201.09l.408.952a1.255%201.255%200%200%201-.477%201.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06%200-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8%205.8%200%200%201-.548-2.512q0-.429.053-.843a1.3%201.3%200%200%201-.333-.086l-.166-.004c-.223%200-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255%201.255%200%200%201-1.256%201.256h-1.777a1.255%201.255%200%200%201-1.256-1.256V15.69l-.032.057a4.8%204.8%200%200%201-1.86%201.833%205.04%205.04%200%200%201-2.484.634%204.5%204.5%200%200%201-1.935-.424%201.25%201.25%200%200%201-.764.258h-1.71a1.255%201.255%200%200%201-1.256-1.255V7.687a2.4%202.4%200%200%201-.428.625c.253.23.412.561.412.93v7.553a1.255%201.255%200%200%201-1.256%201.255h-1.843a1.25%201.25%200%200%201-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255%201.255%200%200%201-1.256-1.255v-1.251l-.061.117a4.7%204.7%200%200%201-1.782%201.884%204.77%204.77%200%200%201-2.485.67%205.6%205.6%200%200%201-1.485-.188l.009%202.764a1.255%201.255%200%200%201-1.255%201.259h-1.729a1.255%201.255%200%200%201-1.255-1.255v-3.537a1.255%201.255%200%200%201-1.167.793h-1.679a1.25%201.25%200%200%201-.77-.263%204.5%204.5%200%200%201-1.945.429c-.885%200-1.724-.21-2.495-.632l-.017-.01a5%205%200%200%201-1.081-.836%201.255%201.255%200%200%201-1.254%201.312h-1.81a1.255%201.255%200%200%201-1.228-.99l-.782-3.625-2.044%203.939a1.25%201.25%200%200%201-1.115.676h-.098a1.25%201.25%200%200%201-1.116-.68l-2.061-3.994zM35.92%2016.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033%201.332h1.678V9.242h-1.694l-.033%201.267q-.133-.329-.526-.658l-.032-.028a3.2%203.2%200%200%200-.668-.428l-.27-.12a3.3%203.3%200%200%200-1.235-.23q-1.136-.001-1.974.493a3.36%203.36%200%200%200-1.3%201.382q-.445.89-.444%202.074%200%201.2.51%202.107a3.8%203.8%200%200%200%201.382%201.381%203.9%203.9%200%200%200%201.893.477q.795%200%201.455-.33zm-2.789-5.38q-.576.675-.575%201.762%200%201.102.559%201.794.576.675%201.645.675a2.25%202.25%200%200%200%20.934-.19%202.2%202.2%200%200%200%20.468-.29l.178-.161a2.2%202.2%200%200%200%20.397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2%202.2%200%200%200-.633-.709l-.13-.086-.047-.028a2.1%202.1%200%200%200-1.073-.285q-1.052%200-1.629.692zm2.316%202.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96%200%200%200-.353-.389.85.85%200%200%200-.464-.127c-.4%200-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945%200%20.506.122.801.27.99.097.11.266.224.68.224.303%200%20.504-.09.687-.269zm7.545%201.705a2.6%202.6%200%200%200%20.331.423q.319.33.755.548l.173.074q.65.255%201.49.255%201.02%200%201.844-.493a3.45%203.45%200%200%200%201.316-1.4q.493-.904.493-2.089%200-1.909-.988-2.913-.988-1.02-2.584-1.02-.898%200-1.575.347a3%203%200%200%200-.415.262l-.199.166a3.4%203.4%200%200%200-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296%201.119.297%201.07%200%201.645-.675.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.435%200-.835.16a2%202%200%200%200-.284.136%202%202%200%200%200-.363.254%202.2%202.2%200%200%200-.46.569l-.082.162a2.6%202.6%200%200%200-.213%201.072v.115q0%20.707.296%201.267l.135.211zm.964-.818a1.1%201.1%200%200%200%20.367.385.94.94%200%200%200%20.476.118c.423%200%20.59-.117.687-.23.159-.194.28-.478.28-.95%200-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1%201%200%200%200-.503.135l-.012.007a.86.86%200%200%200-.335.343c-.073.133-.132.324-.132.614v.115a1.4%201.4%200%200%200%20.14.66zm15.7-6.222q.347-.346.346-.856a1.05%201.05%200%200%200-.345-.79%201.18%201.18%200%200%200-.84-.329q-.51%200-.855.33a1.05%201.05%200%200%200-.346.79q0%20.51.346.855.345.346.856.346.51%200%20.839-.346zm4.337%209.314.033-1.332q.191.403.59.747l.098.081a4%204%200%200%200%20.316.224l.223.122a3.2%203.2%200%200%200%201.44.322%203.8%203.8%200%200%200%201.875-.477%203.5%203.5%200%200%200%201.382-1.366q.527-.89.526-2.09%200-1.184-.444-2.073a3.24%203.24%200%200%200-1.283-1.399q-.823-.51-1.942-.51a3.5%203.5%200%200%200-1.527.344l-.086.043-.165.09a3%203%200%200%200-.33.214q-.432.315-.656.707a2%202%200%200%200-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5%202.5%200%200%200%20.566.7q.117.098.245.18l.144.08a2.1%202.1%200%200%200%20.975.232q1.07%200%201.645-.675.576-.69.576-1.778%200-1.102-.576-1.777-.56-.691-1.645-.692a2.2%202.2%200%200%200-1.015.235q-.22.113-.415.282l-.15.142a2.1%202.1%200%200%200-.42.594q-.223.479-.223%201.1v.115q0%20.705.293%201.26zm2.616-.293c.157-.191.28-.479.28-.967%200-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87%200%200%200-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0%20.285.057.499.144.669a1.1%201.1%200%200%200%20.367.405c.137.082.28.123.455.123.423%200%20.59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493%200%20.642.099l.247-1.794q-.196-.099-.717-.099a2.3%202.3%200%200%200-.545.063%202%202%200%200%200-.411.148%202.2%202.2%200%200%200-.4.249%202.5%202.5%200%200%200-.485.499%202.7%202.7%200%200%200-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5%201.5%200%200%201%20.466-.636%202.5%202.5%200%200%201%20.399-.253%202%202%200%200%201%20.224-.099zm9.784%202.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46%203.46%200%200%200-1.4%201.382q-.493.906-.493%202.106%200%201.07.428%201.975.428.89%201.332%201.432.906.526%202.255.526.973%200%201.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954%200-1.497-.444a1.6%201.6%200%200%201-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1%201%200%200%200-.156-.176q-.46-.428-1.316-.428-.986%200-1.494.604-.379.45-.494%201.234zm-27.053%202.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z%22%2F%3E%3Cpath%20fill%3D%22%23fff%22%20d%3D%22m19.63%2011.151-.757-1.71-.345%201.71-1.12%205.644h-1.827L18.083%204.7h.197l3.325%206.533.988%202.19.988-2.19L26.839%204.7h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.93%205.644h-.098l-2.913-5.644zm14.836%205.81q-1.02%200-1.893-.478a3.8%203.8%200%200%201-1.381-1.382q-.51-.906-.51-2.106%200-1.185.444-2.074a3.36%203.36%200%200%201%201.3-1.382q.839-.494%201.974-.494a3.3%203.3%200%200%201%201.234.231%203.3%203.3%200%200%201%20.97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02%201.053a3.17%203.17%200%200%201-1.662.444zm.296-1.482q.938%200%201.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2%202.2%200%200%200-.807-.872%202.1%202.1%200%200%200-1.119-.313q-1.053%200-1.629.692-.575.675-.575%201.76%200%201.103.559%201.795.577.675%201.645.675zm6.521-6.237h1.711v1.4q.906-1.597%202.83-1.597%201.596%200%202.584%201.02.988%201.005.988%202.914%200%201.185-.493%202.09a3.46%203.46%200%200%201-1.316%201.399%203.5%203.5%200%200%201-1.844.493q-.954%200-1.662-.329a2.67%202.67%200%200%201-1.086-.97l.017%205.134h-1.728zm4.048%206.22q1.07%200%201.645-.674.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.592%200-1.12.296-.51.28-.822.823-.296.527-.296%201.234v.115q0%20.708.296%201.267.313.543.823.855.51.296%201.119.297z%22%2F%3E%3Cpath%20fill%3D%22%23e1e3e9%22%20d%3D%22M51.325%204.7h1.86v10.45h3.473v1.646h-5.333zm7.12%204.542h1.843v7.553h-1.843zm.905-1.415a1.16%201.16%200%200%201-.856-.346%201.17%201.17%200%200%201-.346-.856%201.05%201.05%200%200%201%20.346-.79q.346-.329.856-.329.494%200%20.839.33a1.05%201.05%200%200%201%20.345.79%201.16%201.16%200%200%201-.345.855q-.33.346-.84.346zm7.875%209.133a3.17%203.17%200%200%201-1.662-.444q-.723-.46-1.004-1.053l-.033%201.332h-1.71V4.701h1.743v4.657l-.082%201.283q.279-.658%201.086-1.119a3.5%203.5%200%200%201%201.778-.477q1.119%200%201.942.51a3.24%203.24%200%200%201%201.283%201.4q.445.888.444%202.072%200%201.201-.526%202.09a3.5%203.5%200%200%201-1.382%201.366%203.8%203.8%200%200%201-1.876.477zm-.296-1.481q1.069%200%201.645-.675.577-.69.577-1.778%200-1.102-.577-1.776-.56-.691-1.645-.692a2.12%202.12%200%200%200-1.58.659q-.642.641-.642%201.694v.115q0%20.71.296%201.267a2.4%202.4%200%200%200%20.807.872%202.1%202.1%200%200%200%201.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14%202.14%200%200%201%201.349-.46q.527%200%20.724.098l-.247%201.794q-.149-.099-.642-.099-.774%200-1.416.494-.626.493-.626%201.58v3.883h-1.777V9.242zm9.534%207.718q-1.35%200-2.255-.526-.904-.543-1.332-1.432a4.6%204.6%200%200%201-.428-1.975q0-1.2.493-2.106a3.46%203.46%200%200%201%201.4-1.382q.889-.495%202.007-.494%201.744%200%202.584.97.855.956.856%202.7%200%20.444-.05.92h-5.43q.18%201.005.708%201.45.542.443%201.497.443.79%200%201.3-.131a4%204%200%200%200%20.938-.362l.542%201.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728%200-1.991%201.86z%22%2F%3E%3Cpath%20d%3D%22M5.074%2015.948a.484.657%200%200%200-.486.659v1.84a.484.657%200%200%200%20.486.659h4.101a.484.657%200%200%200%20.486-.659v-1.84a.484.657%200%200%200-.486-.659zm3.56%201.16H5.617v.838h3.017z%22%20style%3D%22fill%3A%23fff%3Bfill-rule%3Aevenodd%3Bstroke-width%3A1.03600001%22%2F%3E%3Cg%20style%3D%22stroke-width%3A1.12603545%22%3E%3Cpath%20d%3D%22M-9.408-1.416c-3.833-.025-7.056%202.912-7.08%206.615-.02%203.08%201.653%204.832%203.107%206.268.903.892%201.721%201.74%202.32%202.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87%201.87%200%200%200-.362%201.121l-.011%201.877c-.003.402.104.787.347%201.125.244.338.688.653%201.23.656l4.142.028c.542.003.99-.306%201.238-.641a1.87%201.87%200%200%200%20.363-1.121l.012-1.875a1.87%201.87%200%200%200-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145%201.425-1.983%202.348-2.87%201.473-1.414%203.18-3.149%203.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006%201.1v.002c3.274.02%205.92%202.532%205.9%205.6-.017%202.706-1.39%204.026-2.863%205.44-1.034.994-2.118%202.033-2.814%203.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34%200%200%201-.226.084.34.34%200%200%201-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067%202.7-5.545%205.975-5.523m-.02%202.826c-1.62-.01-2.944%201.315-2.955%202.96-.01%201.646%201.295%202.988%202.916%202.999h.002c1.621.01%202.943-1.316%202.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005%201.1c1.017.006%201.829.83%201.822%201.89s-.83%201.874-1.848%201.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874%201.848-1.868m-2.155%2011.857%204.14.025c.271.002.49.305.487.676l-.013%201.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668%22%20style%3D%22color%3A%23000%3Bfont-style%3Anormal%3Bfont-variant%3Anormal%3Bfont-weight%3A400%3Bfont-stretch%3Anormal%3Bfont-size%3Amedium%3Bline-height%3Anormal%3Bfont-family%3Asans-serif%3Bfont-variant-ligatures%3Anormal%3Bfont-variant-position%3Anormal%3Bfont-variant-caps%3Anormal%3Bfont-variant-numeric%3Anormal%3Bfont-variant-alternates%3Anormal%3Bfont-feature-settings%3Anormal%3Btext-indent%3A0%3Btext-align%3Astart%3Btext-decoration%3Anone%3Btext-decoration-line%3Anone%3Btext-decoration-style%3Asolid%3Btext-decoration-color%3A%23000%3Bletter-spacing%3Anormal%3Bword-spacing%3Anormal%3Btext-transform%3Anone%3Bwriting-mode%3Alr-tb%3Bdirection%3Altr%3Btext-orientation%3Amixed%3Bdominant-baseline%3Aauto%3Bbaseline-shift%3Abaseline%3Btext-anchor%3Astart%3Bwhite-space%3Anormal%3Bshape-padding%3A0%3Bclip-rule%3Aevenodd%3Bdisplay%3Ainline%3Boverflow%3Avisible%3Bvisibility%3Avisible%3Bopacity%3A1%3Bisolation%3Aauto%3Bmix-blend-mode%3Anormal%3Bcolor-interpolation%3AsRGB%3Bcolor-interpolation-filters%3AlinearRGB%3Bsolid-color%3A%23000%3Bsolid-opacity%3A1%3Bvector-effect%3Anone%3Bfill%3A%23000%3Bfill-opacity%3A.4%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-linecap%3Abutt%3Bstroke-linejoin%3Amiter%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-dashoffset%3A0%3Bstroke-opacity%3A1%3Bcolor-rendering%3Aauto%3Bimage-rendering%3Aauto%3Bshape-rendering%3Aauto%3Btext-rendering%3Aauto%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-9.415-.316C-12.69-.338-15.37%202.14-15.39%205.207c-.017%202.716%201.326%204.041%202.78%205.477%201.013%201%202.081%202.055%202.78%203.67l.092.076a.34.34%200%200%200%20.225.086.34.34%200%200%200%20.227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6%201.78-2.64%202.814-3.634%201.473-1.414%202.847-2.733%202.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057%208.784c1.621.011%202.944-1.315%202.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945%201.315-2.955%202.96s1.295%202.989%202.916%203%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23e1e3e9%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-11.594%2015.465c-.27-.002-.492.297-.494.668l-.012%201.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23fff%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){a.maplibregl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2288%22%20height%3D%2223%22%20fill%3D%22none%22%3E%3Cpath%20fill%3D%22%23000%22%20fill-opacity%3D%22.4%22%20fill-rule%3D%22evenodd%22%20d%3D%22M17.408%2016.796h-1.827l2.501-12.095h.198l3.324%206.533.988%202.19.988-2.19%203.258-6.533h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.929%205.644h-.098l-2.914-5.644-.757-1.71-.345%201.71zm1.958-3.42-.726%203.663a1.255%201.255%200%200%201-1.232%201.011h-1.827a1.255%201.255%200%200%201-1.229-1.509l2.501-12.095a1.255%201.255%200%200%201%201.23-1.001h.197a1.25%201.25%200%200%201%201.12.685l3.19%206.273%203.125-6.263a1.25%201.25%200%200%201%201.123-.695h.181a1.255%201.255%200%200%201%201.227.991l1.443%206.71a5%205%200%200%201%20.314-.787l.009-.016a4.6%204.6%200%200%201%201.777-1.887c.782-.46%201.668-.667%202.611-.667a4.6%204.6%200%200%201%201.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255%201.255%200%200%201%201.212.925%201.255%201.255%200%200%201%201.212-.925h1.711c.284%200%20.545.094.755.252.613-.3%201.312-.45%202.075-.45%201.356%200%202.557.445%203.482%201.4q.47.48.763%201.064V4.701a1.255%201.255%200%200%201%201.255-1.255h1.86A1.255%201.255%200%200%201%2054.44%204.7v9.194h2.217c.19%200%20.37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42%202.42%200%200%201-.682-1.71c0-.665.267-1.253.735-1.7a2.45%202.45%200%200%201%201.722-.674%202.43%202.43%200%200%201%201.705.675q.318.302.504.683V4.7a1.255%201.255%200%200%201%201.255-1.255h1.744A1.255%201.255%200%200%201%2065.812%204.7v3.335a4.8%204.8%200%200%201%201.526-.246c.938%200%201.817.214%202.59.69a4.47%204.47%200%200%201%201.67%201.743v-.98a1.255%201.255%200%200%201%201.256-1.256h1.777c.233%200%20.451.064.639.174a3.4%203.4%200%200%201%201.567-.372c.346%200%20.861.02%201.285.232a1.25%201.25%200%200%201%20.689%201.004%204.7%204.7%200%200%201%20.853-.588c.795-.44%201.675-.647%202.61-.647%201.385%200%202.65.39%203.525%201.396.836.938%201.168%202.173%201.168%203.528q-.001.515-.056%201.051a1.255%201.255%200%200%201-.947%201.09l.408.952a1.255%201.255%200%200%201-.477%201.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06%200-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8%205.8%200%200%201-.548-2.512q0-.429.053-.843a1.3%201.3%200%200%201-.333-.086l-.166-.004c-.223%200-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255%201.255%200%200%201-1.256%201.256h-1.777a1.255%201.255%200%200%201-1.256-1.256V15.69l-.032.057a4.8%204.8%200%200%201-1.86%201.833%205.04%205.04%200%200%201-2.484.634%204.5%204.5%200%200%201-1.935-.424%201.25%201.25%200%200%201-.764.258h-1.71a1.255%201.255%200%200%201-1.256-1.255V7.687a2.4%202.4%200%200%201-.428.625c.253.23.412.561.412.93v7.553a1.255%201.255%200%200%201-1.256%201.255h-1.843a1.25%201.25%200%200%201-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255%201.255%200%200%201-1.256-1.255v-1.251l-.061.117a4.7%204.7%200%200%201-1.782%201.884%204.77%204.77%200%200%201-2.485.67%205.6%205.6%200%200%201-1.485-.188l.009%202.764a1.255%201.255%200%200%201-1.255%201.259h-1.729a1.255%201.255%200%200%201-1.255-1.255v-3.537a1.255%201.255%200%200%201-1.167.793h-1.679a1.25%201.25%200%200%201-.77-.263%204.5%204.5%200%200%201-1.945.429c-.885%200-1.724-.21-2.495-.632l-.017-.01a5%205%200%200%201-1.081-.836%201.255%201.255%200%200%201-1.254%201.312h-1.81a1.255%201.255%200%200%201-1.228-.99l-.782-3.625-2.044%203.939a1.25%201.25%200%200%201-1.115.676h-.098a1.25%201.25%200%200%201-1.116-.68l-2.061-3.994zM35.92%2016.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033%201.332h1.678V9.242h-1.694l-.033%201.267q-.133-.329-.526-.658l-.032-.028a3.2%203.2%200%200%200-.668-.428l-.27-.12a3.3%203.3%200%200%200-1.235-.23q-1.136-.001-1.974.493a3.36%203.36%200%200%200-1.3%201.382q-.445.89-.444%202.074%200%201.2.51%202.107a3.8%203.8%200%200%200%201.382%201.381%203.9%203.9%200%200%200%201.893.477q.795%200%201.455-.33zm-2.789-5.38q-.576.675-.575%201.762%200%201.102.559%201.794.576.675%201.645.675a2.25%202.25%200%200%200%20.934-.19%202.2%202.2%200%200%200%20.468-.29l.178-.161a2.2%202.2%200%200%200%20.397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2%202.2%200%200%200-.633-.709l-.13-.086-.047-.028a2.1%202.1%200%200%200-1.073-.285q-1.052%200-1.629.692zm2.316%202.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96%200%200%200-.353-.389.85.85%200%200%200-.464-.127c-.4%200-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945%200%20.506.122.801.27.99.097.11.266.224.68.224.303%200%20.504-.09.687-.269zm7.545%201.705a2.6%202.6%200%200%200%20.331.423q.319.33.755.548l.173.074q.65.255%201.49.255%201.02%200%201.844-.493a3.45%203.45%200%200%200%201.316-1.4q.493-.904.493-2.089%200-1.909-.988-2.913-.988-1.02-2.584-1.02-.898%200-1.575.347a3%203%200%200%200-.415.262l-.199.166a3.4%203.4%200%200%200-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296%201.119.297%201.07%200%201.645-.675.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.435%200-.835.16a2%202%200%200%200-.284.136%202%202%200%200%200-.363.254%202.2%202.2%200%200%200-.46.569l-.082.162a2.6%202.6%200%200%200-.213%201.072v.115q0%20.707.296%201.267l.135.211zm.964-.818a1.1%201.1%200%200%200%20.367.385.94.94%200%200%200%20.476.118c.423%200%20.59-.117.687-.23.159-.194.28-.478.28-.95%200-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1%201%200%200%200-.503.135l-.012.007a.86.86%200%200%200-.335.343c-.073.133-.132.324-.132.614v.115a1.4%201.4%200%200%200%20.14.66zm15.7-6.222q.347-.346.346-.856a1.05%201.05%200%200%200-.345-.79%201.18%201.18%200%200%200-.84-.329q-.51%200-.855.33a1.05%201.05%200%200%200-.346.79q0%20.51.346.855.345.346.856.346.51%200%20.839-.346zm4.337%209.314.033-1.332q.191.403.59.747l.098.081a4%204%200%200%200%20.316.224l.223.122a3.2%203.2%200%200%200%201.44.322%203.8%203.8%200%200%200%201.875-.477%203.5%203.5%200%200%200%201.382-1.366q.527-.89.526-2.09%200-1.184-.444-2.073a3.24%203.24%200%200%200-1.283-1.399q-.823-.51-1.942-.51a3.5%203.5%200%200%200-1.527.344l-.086.043-.165.09a3%203%200%200%200-.33.214q-.432.315-.656.707a2%202%200%200%200-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5%202.5%200%200%200%20.566.7q.117.098.245.18l.144.08a2.1%202.1%200%200%200%20.975.232q1.07%200%201.645-.675.576-.69.576-1.778%200-1.102-.576-1.777-.56-.691-1.645-.692a2.2%202.2%200%200%200-1.015.235q-.22.113-.415.282l-.15.142a2.1%202.1%200%200%200-.42.594q-.223.479-.223%201.1v.115q0%20.705.293%201.26zm2.616-.293c.157-.191.28-.479.28-.967%200-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87%200%200%200-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0%20.285.057.499.144.669a1.1%201.1%200%200%200%20.367.405c.137.082.28.123.455.123.423%200%20.59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493%200%20.642.099l.247-1.794q-.196-.099-.717-.099a2.3%202.3%200%200%200-.545.063%202%202%200%200%200-.411.148%202.2%202.2%200%200%200-.4.249%202.5%202.5%200%200%200-.485.499%202.7%202.7%200%200%200-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5%201.5%200%200%201%20.466-.636%202.5%202.5%200%200%201%20.399-.253%202%202%200%200%201%20.224-.099zm9.784%202.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46%203.46%200%200%200-1.4%201.382q-.493.906-.493%202.106%200%201.07.428%201.975.428.89%201.332%201.432.906.526%202.255.526.973%200%201.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954%200-1.497-.444a1.6%201.6%200%200%201-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1%201%200%200%200-.156-.176q-.46-.428-1.316-.428-.986%200-1.494.604-.379.45-.494%201.234zm-27.053%202.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z%22%2F%3E%3Cpath%20fill%3D%22%23fff%22%20d%3D%22m19.63%2011.151-.757-1.71-.345%201.71-1.12%205.644h-1.827L18.083%204.7h.197l3.325%206.533.988%202.19.988-2.19L26.839%204.7h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.93%205.644h-.098l-2.913-5.644zm14.836%205.81q-1.02%200-1.893-.478a3.8%203.8%200%200%201-1.381-1.382q-.51-.906-.51-2.106%200-1.185.444-2.074a3.36%203.36%200%200%201%201.3-1.382q.839-.494%201.974-.494a3.3%203.3%200%200%201%201.234.231%203.3%203.3%200%200%201%20.97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02%201.053a3.17%203.17%200%200%201-1.662.444zm.296-1.482q.938%200%201.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2%202.2%200%200%200-.807-.872%202.1%202.1%200%200%200-1.119-.313q-1.053%200-1.629.692-.575.675-.575%201.76%200%201.103.559%201.795.577.675%201.645.675zm6.521-6.237h1.711v1.4q.906-1.597%202.83-1.597%201.596%200%202.584%201.02.988%201.005.988%202.914%200%201.185-.493%202.09a3.46%203.46%200%200%201-1.316%201.399%203.5%203.5%200%200%201-1.844.493q-.954%200-1.662-.329a2.67%202.67%200%200%201-1.086-.97l.017%205.134h-1.728zm4.048%206.22q1.07%200%201.645-.674.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.592%200-1.12.296-.51.28-.822.823-.296.527-.296%201.234v.115q0%20.708.296%201.267.313.543.823.855.51.296%201.119.297z%22%2F%3E%3Cpath%20fill%3D%22%23e1e3e9%22%20d%3D%22M51.325%204.7h1.86v10.45h3.473v1.646h-5.333zm7.12%204.542h1.843v7.553h-1.843zm.905-1.415a1.16%201.16%200%200%201-.856-.346%201.17%201.17%200%200%201-.346-.856%201.05%201.05%200%200%201%20.346-.79q.346-.329.856-.329.494%200%20.839.33a1.05%201.05%200%200%201%20.345.79%201.16%201.16%200%200%201-.345.855q-.33.346-.84.346zm7.875%209.133a3.17%203.17%200%200%201-1.662-.444q-.723-.46-1.004-1.053l-.033%201.332h-1.71V4.701h1.743v4.657l-.082%201.283q.279-.658%201.086-1.119a3.5%203.5%200%200%201%201.778-.477q1.119%200%201.942.51a3.24%203.24%200%200%201%201.283%201.4q.445.888.444%202.072%200%201.201-.526%202.09a3.5%203.5%200%200%201-1.382%201.366%203.8%203.8%200%200%201-1.876.477zm-.296-1.481q1.069%200%201.645-.675.577-.69.577-1.778%200-1.102-.577-1.776-.56-.691-1.645-.692a2.12%202.12%200%200%200-1.58.659q-.642.641-.642%201.694v.115q0%20.71.296%201.267a2.4%202.4%200%200%200%20.807.872%202.1%202.1%200%200%200%201.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14%202.14%200%200%201%201.349-.46q.527%200%20.724.098l-.247%201.794q-.149-.099-.642-.099-.774%200-1.416.494-.626.493-.626%201.58v3.883h-1.777V9.242zm9.534%207.718q-1.35%200-2.255-.526-.904-.543-1.332-1.432a4.6%204.6%200%200%201-.428-1.975q0-1.2.493-2.106a3.46%203.46%200%200%201%201.4-1.382q.889-.495%202.007-.494%201.744%200%202.584.97.855.956.856%202.7%200%20.444-.05.92h-5.43q.18%201.005.708%201.45.542.443%201.497.443.79%200%201.3-.131a4%204%200%200%200%20.938-.362l.542%201.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728%200-1.991%201.86z%22%2F%3E%3Cpath%20d%3D%22M5.074%2015.948a.484.657%200%200%200-.486.659v1.84a.484.657%200%200%200%20.486.659h4.101a.484.657%200%200%200%20.486-.659v-1.84a.484.657%200%200%200-.486-.659zm3.56%201.16H5.617v.838h3.017z%22%20style%3D%22fill%3A%23fff%3Bfill-rule%3Aevenodd%3Bstroke-width%3A1.03600001%22%2F%3E%3Cg%20style%3D%22stroke-width%3A1.12603545%22%3E%3Cpath%20d%3D%22M-9.408-1.416c-3.833-.025-7.056%202.912-7.08%206.615-.02%203.08%201.653%204.832%203.107%206.268.903.892%201.721%201.74%202.32%202.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87%201.87%200%200%200-.362%201.121l-.011%201.877c-.003.402.104.787.347%201.125.244.338.688.653%201.23.656l4.142.028c.542.003.99-.306%201.238-.641a1.87%201.87%200%200%200%20.363-1.121l.012-1.875a1.87%201.87%200%200%200-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145%201.425-1.983%202.348-2.87%201.473-1.414%203.18-3.149%203.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006%201.1v.002c3.274.02%205.92%202.532%205.9%205.6-.017%202.706-1.39%204.026-2.863%205.44-1.034.994-2.118%202.033-2.814%203.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34%200%200%201-.226.084.34.34%200%200%201-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067%202.7-5.545%205.975-5.523m-.02%202.826c-1.62-.01-2.944%201.315-2.955%202.96-.01%201.646%201.295%202.988%202.916%202.999h.002c1.621.01%202.943-1.316%202.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005%201.1c1.017.006%201.829.83%201.822%201.89s-.83%201.874-1.848%201.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874%201.848-1.868m-2.155%2011.857%204.14.025c.271.002.49.305.487.676l-.013%201.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668%22%20style%3D%22color%3A%23000%3Bfont-style%3Anormal%3Bfont-variant%3Anormal%3Bfont-weight%3A400%3Bfont-stretch%3Anormal%3Bfont-size%3Amedium%3Bline-height%3Anormal%3Bfont-family%3Asans-serif%3Bfont-variant-ligatures%3Anormal%3Bfont-variant-position%3Anormal%3Bfont-variant-caps%3Anormal%3Bfont-variant-numeric%3Anormal%3Bfont-variant-alternates%3Anormal%3Bfont-feature-settings%3Anormal%3Btext-indent%3A0%3Btext-align%3Astart%3Btext-decoration%3Anone%3Btext-decoration-line%3Anone%3Btext-decoration-style%3Asolid%3Btext-decoration-color%3A%23000%3Bletter-spacing%3Anormal%3Bword-spacing%3Anormal%3Btext-transform%3Anone%3Bwriting-mode%3Alr-tb%3Bdirection%3Altr%3Btext-orientation%3Amixed%3Bdominant-baseline%3Aauto%3Bbaseline-shift%3Abaseline%3Btext-anchor%3Astart%3Bwhite-space%3Anormal%3Bshape-padding%3A0%3Bclip-rule%3Aevenodd%3Bdisplay%3Ainline%3Boverflow%3Avisible%3Bvisibility%3Avisible%3Bopacity%3A1%3Bisolation%3Aauto%3Bmix-blend-mode%3Anormal%3Bcolor-interpolation%3AsRGB%3Bcolor-interpolation-filters%3AlinearRGB%3Bsolid-color%3A%23000%3Bsolid-opacity%3A1%3Bvector-effect%3Anone%3Bfill%3A%23000%3Bfill-opacity%3A.4%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-linecap%3Abutt%3Bstroke-linejoin%3Amiter%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-dashoffset%3A0%3Bstroke-opacity%3A1%3Bcolor-rendering%3Aauto%3Bimage-rendering%3Aauto%3Bshape-rendering%3Aauto%3Btext-rendering%3Aauto%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-9.415-.316C-12.69-.338-15.37%202.14-15.39%205.207c-.017%202.716%201.326%204.041%202.78%205.477%201.013%201%202.081%202.055%202.78%203.67l.092.076a.34.34%200%200%200%20.225.086.34.34%200%200%200%20.227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6%201.78-2.64%202.814-3.634%201.473-1.414%202.847-2.733%202.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057%208.784c1.621.011%202.944-1.315%202.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945%201.315-2.955%202.96s1.295%202.989%202.916%203%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23e1e3e9%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-11.594%2015.465c-.27-.002-.492.297-.494.668l-.012%201.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23fff%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl.maplibregl-ctrl-attrib{padding:0 5px;background-color:hsla(0,0%,100%,.5);margin:0}@media screen{.maplibregl-ctrl-attrib.maplibregl-compact{min-height:20px;padding:2px 24px 2px 0;margin:10px;position:relative;background-color:#fff;color:#000;border-radius:12px;box-sizing:content-box}.maplibregl-ctrl-attrib.maplibregl-compact-show{padding:2px 28px 2px 8px;visibility:visible}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact-show,.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact-show{padding:2px 8px 2px 28px;border-radius:12px}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-inner{display:none}.maplibregl-ctrl-attrib-button{display:none;cursor:pointer;position:absolute;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20fill-rule%3D%22evenodd%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M4%2010a6%206%200%201%200%2012%200%206%206%200%201%200-12%200m5-3a1%201%200%201%200%202%200%201%201%200%201%200-2%200m0%203a1%201%200%201%201%202%200v3a1%201%200%201%201-2%200%22%2F%3E%3C%2Fsvg%3E");background-color:hsla(0,0%,100%,.5);width:24px;height:24px;box-sizing:border-box;border-radius:12px;outline:none;top:0;right:0;border:0}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;list-style:none}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button::-webkit-details-marker{display:none}.maplibregl-ctrl-bottom-left .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-top-left .maplibregl-ctrl-attrib-button{left:0}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-inner{display:block}.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-button{background-color:rgba(0,0,0,.05)}.maplibregl-ctrl-bottom-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;right:0}.maplibregl-ctrl-top-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{top:0;right:0}.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{top:0;left:0}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;left:0}}@media screen and (forced-colors:active){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22%23fff%22%20fill-rule%3D%22evenodd%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M4%2010a6%206%200%201%200%2012%200%206%206%200%201%200-12%200m5-3a1%201%200%201%200%202%200%201%201%200%201%200-2%200m0%203a1%201%200%201%201%202%200v3a1%201%200%201%201-2%200%22%2F%3E%3C%2Fsvg%3E")}}@media screen and (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20fill-rule%3D%22evenodd%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M4%2010a6%206%200%201%200%2012%200%206%206%200%201%200-12%200m5-3a1%201%200%201%200%202%200%201%201%200%201%200-2%200m0%203a1%201%200%201%201%202%200v3a1%201%200%201%201-2%200%22%2F%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl-attrib a{color:rgba(0,0,0,.75);text-decoration:none}.maplibregl-ctrl-attrib a:hover{color:inherit;text-decoration:underline}.maplibregl-attrib-empty{display:none}.maplibregl-ctrl-scale{background-color:hsla(0,0%,100%,.75);font-size:10px;white-space:nowrap;border-color:#333;border-style:none solid solid;border-width:medium 2px 2px;padding:0 5px;color:#333;box-sizing:border-box}.maplibregl-popup{position:absolute;top:0;left:0;display:flex;will-change:transform;pointer-events:none}.maplibregl-popup-anchor-top,.maplibregl-popup-anchor-top-left,.maplibregl-popup-anchor-top-right{flex-direction:column}.maplibregl-popup-anchor-bottom,.maplibregl-popup-anchor-bottom-left,.maplibregl-popup-anchor-bottom-right{flex-direction:column-reverse}.maplibregl-popup-anchor-left{flex-direction:row}.maplibregl-popup-anchor-right{flex-direction:row-reverse}.maplibregl-popup-tip{width:0;height:0;border:10px solid transparent;z-index:1}.maplibregl-popup-anchor-top .maplibregl-popup-tip{align-self:center;border-top:none;border-bottom-color:#fff}.maplibregl-popup-anchor-top-left .maplibregl-popup-tip{align-self:flex-start;border-top:none;border-left:none;border-bottom-color:#fff}.maplibregl-popup-anchor-top-right .maplibregl-popup-tip{align-self:flex-end;border-top:none;border-right:none;border-bottom-color:#fff}.maplibregl-popup-anchor-bottom .maplibregl-popup-tip{align-self:center;border-bottom:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip{align-self:flex-start;border-bottom:none;border-left:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip{align-self:flex-end;border-bottom:none;border-right:none;border-top-color:#fff}.maplibregl-popup-anchor-left .maplibregl-popup-tip{align-self:center;border-left:none;border-right-color:#fff}.maplibregl-popup-anchor-right .maplibregl-popup-tip{align-self:center;border-right:none;border-left-color:#fff}[dir=rtl] .maplibregl-popup-anchor-left{flex-direction:row-reverse}[dir=rtl] .maplibregl-popup-anchor-right{flex-direction:row}[dir=rtl] .maplibregl-popup-anchor-top-left .maplibregl-popup-tip{align-self:flex-end}[dir=rtl] .maplibregl-popup-anchor-top-right .maplibregl-popup-tip{align-self:flex-start}[dir=rtl] .maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip{align-self:flex-end}[dir=rtl] .maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip{align-self:flex-start}.maplibregl-popup-close-button{position:absolute;right:0;top:0;border:0;border-radius:0 3px 0 0;cursor:pointer;background-color:transparent}.maplibregl-popup-close-button:hover{background-color:rgba(0,0,0,.05)}.maplibregl-popup-content{position:relative;background:#fff;border-radius:3px;box-shadow:0 1px 2px rgba(0,0,0,.1);padding:15px 10px;pointer-events:auto}.maplibregl-popup-anchor-top-left .maplibregl-popup-content{border-top-left-radius:0}.maplibregl-popup-anchor-top-right .maplibregl-popup-content{border-top-right-radius:0}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-content{border-bottom-left-radius:0}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-content{border-bottom-right-radius:0}.maplibregl-popup-track-pointer{display:none}.maplibregl-popup-track-pointer *{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-map:hover .maplibregl-popup-track-pointer{display:flex}.maplibregl-map:active .maplibregl-popup-track-pointer{display:none}.maplibregl-marker{position:absolute;top:0;left:0;will-change:transform;transition:opacity .2s}.maplibregl-marker-draggable{cursor:grab}.maplibregl-user-location-dot,.maplibregl-user-location-dot:before{background-color:#1da1f2;width:15px;height:15px;border-radius:50%}.maplibregl-user-location-dot:before{content:"";position:absolute;animation:maplibregl-user-location-dot-pulse 2s infinite}.maplibregl-user-location-dot:after{border-radius:50%;border:2px solid #fff;content:"";height:19px;left:-2px;position:absolute;top:-2px;width:19px;box-sizing:border-box;box-shadow:0 0 3px rgba(0,0,0,.35)}@media (prefers-reduced-motion:reduce){.maplibregl-user-location-dot:before{animation:none}}@keyframes maplibregl-user-location-dot-pulse{0%{transform:scale(1);opacity:1}70%{transform:scale(3);opacity:0}to{transform:scale(1);opacity:0}}.maplibregl-user-location-dot-stale{background-color:#aaa}.maplibregl-user-location-dot-stale:after{display:none}.maplibregl-user-location-accuracy-circle{background-color:#1da1f233;width:1px;height:1px;border-radius:100%}.maplibregl-crosshair,.maplibregl-crosshair .maplibregl-interactive,.maplibregl-crosshair .maplibregl-interactive:active{cursor:crosshair}.maplibregl-boxzoom{position:absolute;top:0;left:0;width:0;height:0;background:#fff;border:2px dotted #202020;opacity:.5}.maplibregl-cooperative-gesture-screen{background:rgba(0,0,0,.4);position:absolute;inset:0;display:flex;justify-content:center;align-items:center;color:#fff;padding:1rem;font-size:1.4em;line-height:1.2;opacity:0;pointer-events:none;transition:opacity 1s ease 1s;z-index:99999}.maplibregl-cooperative-gesture-screen.maplibregl-show{opacity:1;transition:opacity .05s}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:none}@media (hover:none),(pointer:coarse){.maplibregl-cooperative-gesture-screen .maplibregl-desktop-message{display:none}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:block}}.maplibregl-pseudo-fullscreen{position:fixed!important;width:100%!important;height:100%!important;top:0!important;left:0!important;z-index:99999}',document.head.appendChild(e)}})()});var kr=J(Yr=>{"use strict";var Iy=Ol(),kw=_2(),Cw=qy(),Pge=yf().addStyleRule,Sw=oa(),vK=yi(),dK=x0(),hK=Sw.extendFlat,By=Sw.extendDeepAll;Yr.modules={};Yr.allCategories={};Yr.allTypes=[];Yr.subplotsRegistry={};Yr.componentsRegistry={};Yr.layoutArrayContainers=[];Yr.layoutArrayRegexes=[];Yr.traceLayoutAttributes={};Yr.localeRegistry={};Yr.apiMethodRegistry={};Yr.collectableSubplotTypes=null;Yr.register=function(r){if(Yr.collectableSubplotTypes=null,r)r&&!Array.isArray(r)&&(r=[r]);else throw new Error("No argument passed to Plotly.register.");for(var t=0;t{"use strict";var bK=a0().timeFormat,Bw=Xr(),Hy=Ol(),Wl=(l0(),Xe(i0)).mod,M0=(la(),Xe(da)),Zn=M0.BADNUM,yn=M0.ONEDAY,bf=M0.ONEHOUR,Xl=M0.ONEMIN,w0=M0.ONESEC,xf=M0.EPOCHJD,ml=kr(),Pw=a0().utcFormat,xK=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\d)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d(:?\d\d)?)?)?)?)?)?\s*$/m,_K=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\di?)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d(:?\d\d)?)?)?)?)?)?\s*$/m,Rw=new Date().getFullYear()-70;function yl(e){return e&&ml.componentsRegistry.calendars&&typeof e=="string"&&e!=="gregorian"}Vt.dateTick0=function(e,r){var t=wK(e,!!r);if(r<2)return t;var a=Vt.dateTime2ms(t,e);return a+=yn*(r-1),Vt.ms2DateTime(a,0,e)};function wK(e,r){return yl(e)?r?ml.getComponentMethod("calendars","CANONICAL_SUNDAY")[e]:ml.getComponentMethod("calendars","CANONICAL_TICK")[e]:r?"2000-01-02":"2000-01-01"}Vt.dfltRange=function(e){return yl(e)?ml.getComponentMethod("calendars","DFLTRANGE")[e]:["2000-01-01","2001-01-01"]};Vt.isJSDate=function(e){return typeof e=="object"&&e!==null&&typeof e.getTime=="function"};var L2,q2;Vt.dateTime2ms=function(e,r){if(Vt.isJSDate(e)){var t=e.getTimezoneOffset()*Xl,a=(e.getUTCMinutes()-e.getMinutes())*Xl+(e.getUTCSeconds()-e.getSeconds())*w0+(e.getUTCMilliseconds()-e.getMilliseconds());if(a){var n=3*Xl;t=t-n/2+Wl(a-t+n/2,n)}return e=Number(e)-t,e>=L2&&e<=q2?e:Zn}if(typeof e!="string"&&typeof e!="number")return Zn;e=String(e);var i=yl(r),l=e.charAt(0);i&&(l==="G"||l==="g")&&(e=e.slice(1),r="");var o=i&&r.slice(0,7)==="chinese",s=e.match(o?_K:xK);if(!s)return Zn;var u=s[1],f=s[3]||"1",c=Number(s[5]||1),d=Number(s[7]||0),h=Number(s[9]||0),m=Number(s[11]||0);if(i){if(u.length===2)return Zn;u=Number(u);var g;try{var y=ml.getComponentMethod("calendars","getCal")(r);if(o){var x=f.charAt(f.length-1)==="i";f=parseInt(f,10),g=y.newDate(u,y.toMonthIndex(u,f,x),c)}else g=y.newDate(u,Number(f),c)}catch(T){return Zn}return g?(g.toJD()-xf)*yn+d*bf+h*Xl+m*w0:Zn}u.length===2?u=(Number(u)+2e3-Rw)%100+Rw:u=Number(u),f-=1;var w=new Date(Date.UTC(2e3,f,c,d,h));return w.setUTCFullYear(u),w.getUTCMonth()!==f||w.getUTCDate()!==c?Zn:w.getTime()+m*w0};L2=Vt.MIN_MS=Vt.dateTime2ms("-9999");q2=Vt.MAX_MS=Vt.dateTime2ms("9999-12-31 23:59:59.9999");Vt.isDateTime=function(e,r){return Vt.dateTime2ms(e,r)!==Zn};function _0(e,r){return String(e+Math.pow(10,r)).slice(1)}var D2=90*yn,zw=3*bf,Fw=5*Xl;Vt.ms2DateTime=function(e,r,t){if(typeof e!="number"||!(e>=L2&&e<=q2))return Zn;r||(r=0);var a=Math.floor(Wl(e+.05,1)*10),n=Math.round(e-a/10),i,l,o,s,u,f;if(yl(t)){var c=Math.floor(n/yn)+xf,d=Math.floor(Wl(e,yn));try{i=ml.getComponentMethod("calendars","getCal")(t).fromJD(c).formatDate("yyyy-mm-dd")}catch(h){i=Pw("G%Y-%m-%d")(new Date(n))}if(i.charAt(0)==="-")for(;i.length<11;)i="-0"+i.slice(1);else for(;i.length<10;)i="0"+i;l=r=L2+yn&&e<=q2-yn))return Zn;var r=Math.floor(Wl(e+.05,1)*10),t=new Date(Math.round(e-r/10)),a=bK("%Y-%m-%d")(t),n=t.getHours(),i=t.getMinutes(),l=t.getSeconds(),o=t.getUTCMilliseconds()*10+r;return Hw(a,n,i,l,o)};function Hw(e,r,t,a,n){if((r||t||a||n)&&(e+=" "+_0(r,2)+":"+_0(t,2),(a||n)&&(e+=":"+_0(a,2),n))){for(var i=4;n%10===0;)i-=1,n/=10;e+="."+_0(n,i)}return e}Vt.cleanDate=function(e,r,t){if(e===Zn)return r;if(Vt.isJSDate(e)||typeof e=="number"&&isFinite(e)){if(yl(t))return Hy.error("JS Dates and milliseconds are incompatible with world calendars",e),r;if(e=Vt.ms2DateTimeLocal(+e),!e&&r!==void 0)return r}else if(!Vt.isDateTime(e,t))return Hy.error("unrecognized date",e),r;return e};var MK=/%\d?f/g,TK=/%h/g,AK={1:"1",2:"1",3:"2",4:"2"};function Nw(e,r,t,a){e=e.replace(MK,function(i){var l=Math.min(+i.charAt(1)||6,6),o=(r/1e3%1+2).toFixed(l).slice(2).replace(/0+$/,"")||"0";return o});var n=new Date(Math.floor(r+.05));if(e=e.replace(TK,function(){return AK[t("%q")(n)]}),yl(a))try{e=ml.getComponentMethod("calendars","worldCalFmt")(e,r,a)}catch(i){return"Invalid"}return t(e)(n)}var kK=[59,59.9,59.99,59.999,59.9999];function CK(e,r){var t=Wl(e+.05,yn),a=_0(Math.floor(t/bf),2)+":"+_0(Wl(Math.floor(t/Xl),60),2);if(r!=="M"){Bw(r)||(r=0);var n=Math.min(Wl(e/w0,60),kK[r]),i=(100+n).toFixed(r).slice(1);r>0&&(i=i.replace(/0+$/,"").replace(/[\.]$/,"")),a+=":"+i}return a}Vt.formatDate=function(e,r,t,a,n,i){if(n=yl(n)&&n,!r)if(t==="y")r=i.year;else if(t==="m")r=i.month;else if(t==="d")r=i.dayMonth+` -`+i.year;else return CK(e,t)+` -`+Nw(i.dayMonthYear,e,a,n);return Nw(r,e,a,n)};var Iw=3*yn;Vt.incrementMonth=function(e,r,t){t=yl(t)&&t;var a=Wl(e,yn);if(e=Math.round(e-a),t)try{var n=Math.round(e/yn)+xf,i=ml.getComponentMethod("calendars","getCal")(t),l=i.fromJD(n);return r%12?i.add(l,r,"m"):i.add(l,r/12,"y"),(l.toJD()-xf)*yn+a}catch(s){Hy.error("invalid ms "+e+" in calendar "+t)}var o=new Date(e+Iw);return o.setUTCMonth(o.getUTCMonth()+r)+a-Iw};Vt.findExactDates=function(e,r){for(var t=0,a=0,n=0,i=0,l,o,s=yl(r)&&ml.getComponentMethod("calendars","getCal")(r),u=0;u{"use strict";Yw.exports=function(r){return r}});var Uy=J(gl=>{"use strict";var SK=Xr(),DK=Ol(),LK=Oy(),qK=(la(),Xe(da)).BADNUM,Yy=1e-9;gl.findBin=function(e,r,t){if(SK(r.start))return t?Math.ceil((e-r.start)/r.size-Yy)-1:Math.floor((e-r.start)/r.size+Yy);var a=0,n=r.length,i=0,l=n>1?(r[n-1]-r[0])/(n-1):1,o,s;for(l>=0?s=t?EK:PK:s=t?zK:RK,e+=l*Yy*(t?-1:1)*(l>=0?1:-1);a90&&DK.log("Long binary search..."),a-1};function EK(e,r){return er}function zK(e,r){return e>=r}gl.sorterAsc=function(e,r){return e-r};gl.sorterDes=function(e,r){return r-e};gl.distinctVals=function(e){var r=e.slice();r.sort(gl.sorterAsc);var t;for(t=r.length-1;t>-1&&r[t]===qK;t--);for(var a=r[t]-r[0]||1,n=a/(t||1)/1e4,i=[],l,o=0;o<=t;o++){var s=r[o],u=s-l;l===void 0?(i.push(s),l=s):u>n&&(a=Math.min(a,u),i.push(s),l=s)}return{vals:i,minDiff:a}};gl.roundUp=function(e,r,t){for(var a=0,n=r.length-1,i,l=0,o=t?0:1,s=t?1:0,u=t?Math.ceil:Math.floor;a0&&(a=1),t&&a)return e.sort(r)}return a?e:e.reverse()};gl.findIndexOfMin=function(e,r){r=r||LK;for(var t=1/0,a,n=0;nNK});function FK(e){return Object.keys(e).sort()}var NK,Vy=Pt(()=>{"use strict";NK=FK});var Uw=J(Xt=>{"use strict";var _f=Xr(),IK=hn().isArrayOrTypedArray;Xt.aggNums=function(e,r,t,a){var n,i;if((!a||a>t.length)&&(a=t.length),_f(r)||(r=!1),IK(t[0])){for(i=new Array(a),n=0;ne.length-1)return e[e.length-1];var t=r%1;return t*e[Math.ceil(r)]+(1-t)*e[Math.floor(r)]}});var Zw=J((Bge,Ww)=>{"use strict";var Gw=(l0(),Xe(i0)),Xy=Gw.mod,BK=Gw.modHalf,wf=Math.PI,Zl=2*wf;function HK(e){return e/180*wf}function OK(e){return e/wf*180}function Wy(e){return Math.abs(e[1]-e[0])>Zl-1e-14}function Vw(e,r){return BK(r-e,Zl)}function YK(e,r){return Math.abs(Vw(e,r))}function Xw(e,r){if(Wy(r))return!0;var t,a;r[0]a&&(a+=Zl);var n=Xy(e,Zl),i=n+Zl;return n>=t&&n<=a||i>=t&&i<=a}function UK(e,r,t,a){if(!Xw(r,a))return!1;var n,i;return t[0]=n&&e<=i}function Zy(e,r,t,a,n,i,l){n=n||0,i=i||0;var o=Wy([t,a]),s,u,f,c,d;o?(s=0,u=wf,f=Zl):t{"use strict";Ko.isLeftAnchor=function(r){return r.xanchor==="left"||r.xanchor==="auto"&&r.x<=1/3};Ko.isCenterAnchor=function(r){return r.xanchor==="center"||r.xanchor==="auto"&&r.x>1/3&&r.x<2/3};Ko.isRightAnchor=function(r){return r.xanchor==="right"||r.xanchor==="auto"&&r.x>=2/3};Ko.isTopAnchor=function(r){return r.yanchor==="top"||r.yanchor==="auto"&&r.y>=2/3};Ko.isMiddleAnchor=function(r){return r.yanchor==="middle"||r.yanchor==="auto"&&r.y>1/3&&r.y<2/3};Ko.isBottomAnchor=function(r){return r.yanchor==="bottom"||r.yanchor==="auto"&&r.y<=1/3}});var jw=J(jo=>{"use strict";var Jy=(l0(),Xe(i0)).mod;jo.segmentsIntersect=Kw;function Kw(e,r,t,a,n,i,l,o){var s=t-e,u=n-e,f=l-n,c=a-r,d=i-r,h=o-i,m=s*h-f*c;if(m===0)return null;var g=(u*h-f*d)/m,y=(u*c-s*d)/m;return y<0||y>1||g<0||g>1?null:{x:e+s*g,y:r+c*g}}jo.segmentDistance=function(r,t,a,n,i,l,o,s){if(Kw(r,t,a,n,i,l,o,s))return 0;var u=a-r,f=n-t,c=o-i,d=s-l,h=u*u+f*f,m=c*c+d*d,g=Math.min(E2(u,f,h,i-r,l-t),E2(u,f,h,o-r,s-t),E2(c,d,m,r-i,t-l),E2(c,d,m,a-i,n-l));return Math.sqrt(g)};function E2(e,r,t,a,n){var i=a*e+n*r;if(i<0)return a*a+n*n;if(i>t){var l=a-e,o=n-r;return l*l+o*o}else{var s=a*r-n*e;return s*s/t}}var P2,$y,$w;jo.getTextLocation=function(r,t,a,n){if((r!==$y||n!==$w)&&(P2={},$y=r,$w=n),P2[a])return P2[a];var i=r.getPointAtLength(Jy(a-n/2,t)),l=r.getPointAtLength(Jy(a+n/2,t)),o=Math.atan((l.y-i.y)/(l.x-i.x)),s=r.getPointAtLength(Jy(a,t)),u=(s.x*4+i.x+l.x)/6,f=(s.y*4+i.y+l.y)/6,c={x:u,y:f,theta:o};return P2[a]=c,c};jo.clearLocationCache=function(){$y=null};jo.getVisibleSegment=function(r,t,a){var n=t.left,i=t.right,l=t.top,o=t.bottom,s=0,u=r.getTotalLength(),f=u,c,d;function h(g){var y=r.getPointAtLength(g);g===0?c=y:g===u&&(d=y);var x=y.xi?y.x-i:0,w=y.yo?y.y-o:0;return Math.sqrt(x*x+w*w)}for(var m=h(s);m;){if(s+=m+a,s>f)return;m=h(s)}for(m=h(f);m;){if(f-=m+a,s>f)return;m=h(f)}return{min:s,max:f,len:f-s,total:u,isClosed:s===0&&f===u&&Math.abs(c.x-d.x)<.1&&Math.abs(c.y-d.y)<.1}};jo.findPointOnPath=function(r,t,a,n){n=n||{};for(var i=n.pathLength||r.getTotalLength(),l=n.tolerance||.001,o=n.iterationLimit||30,s=r.getPointAtLength(0)[a]>r.getPointAtLength(i)[a]?-1:1,u=0,f=0,c=i,d,h,m;u0?c=d:f=d,u++}return h}});var R2=J(Mf=>{"use strict";var bl={};Mf.throttle=function(r,t,a){var n=bl[r],i=Date.now();if(!n){for(var l in bl)bl[l].tsn.ts+t){o();return}n.timer=setTimeout(function(){o(),n.timer=null},t)};Mf.done=function(e){var r=bl[e];return!r||!r.timer?Promise.resolve():new Promise(function(t){var a=r.onDone;r.onDone=function(){a&&a(),t(),r.onDone=null}})};Mf.clear=function(e){if(e)Qw(bl[e]),delete bl[e];else for(var r in bl)Mf.clear(r)};function Qw(e){e&&e.timer!==null&&(clearTimeout(e.timer),e.timer=null)}});var rM=J((Uge,eM)=>{"use strict";eM.exports=function(r){r._clearResponsive&&(r._clearResponsive(),delete r._clearResponsive)}});var tM=J((Gge,z2)=>{"use strict";z2.exports=Ky;z2.exports.isMobile=Ky;z2.exports.default=Ky;var WK=/(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|redmi|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,ZK=/CrOS/,JK=/android|ipad|playbook|silk/i;function Ky(e){e||(e={});let r=e.ua;if(!r&&typeof navigator!="undefined"&&(r=navigator.userAgent),r&&r.headers&&typeof r.headers["user-agent"]=="string"&&(r=r.headers["user-agent"]),typeof r!="string")return!1;let t=WK.test(r)&&!ZK.test(r)||!!e.tablet&&JK.test(r);return!t&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&r.indexOf("Macintosh")!==-1&&r.indexOf("Safari")!==-1&&(t=!0),t}});var nM=J((Vge,aM)=>{"use strict";var $K=Xr(),KK=tM();aM.exports=function(r){var t;if(r&&r.hasOwnProperty("userAgent")?t=r.userAgent:t=jK(),typeof t!="string")return!0;var a=KK({ua:{headers:{"user-agent":t}},tablet:!0,featureDetect:!1});if(!a)for(var n=t.split(" "),i=1;i-1;o--){var s=n[o];if(s.slice(0,8)==="Version/"){var u=s.slice(8).split(".")[0];if($K(u)&&(u=+u),u>=13)return!0}}}return a};function jK(){var e;return typeof navigator!="undefined"&&(e=navigator.userAgent),e&&e.headers&&typeof e.headers["user-agent"]=="string"&&(e=e.headers["user-agent"]),e}});var lM=J((Xge,iM)=>{"use strict";var QK=Or();iM.exports=function(r,t,a){var n=r.selectAll("g."+a.replace(/\s/g,".")).data(t,function(l){return l[0].trace.uid});n.exit().remove(),n.enter().append("g").attr("class",a),n.order();var i=r.classed("rangeplot")?"nodeRangePlot3":"node3";return n.each(function(l){l[0][i]=QK.select(this)}),n}});var sM=J((Wge,oM)=>{"use strict";var ej=kr();oM.exports=function(r,t){for(var a=r._context.locale,n=0;n<2;n++){for(var i=r._context.locales,l=0;l<2;l++){var o=(i[a]||{}).dictionary;if(o){var s=o[t];if(s)return s}i=ej.localeRegistry}var u=a.split("-")[0];if(u===a)break;a=u}return t}});var fM=J((Zge,uM)=>{"use strict";uM.exports=function(r){for(var t={},a=[],n=0,i=0;i{"use strict";cM.exports=function(r){for(var t=aj(r)?tj:rj,a=[],n=0;n{"use strict";dM.exports=function(r,t){if(!t)return r;var a=1/Math.abs(t),n=a>1?(a*r+a*t)/a:r+t,i=String(n).length;if(i>16){var l=String(t).length,o=String(r).length;if(i>=o+l){var s=parseFloat(n).toPrecision(12);s.indexOf("e+")===-1&&(n=+s)}}return n}});var mM={};Rt(mM,{default:()=>lj});function ij(e){return typeof e=="string"&&(e=e.replace(nj,"")),(0,pM.default)(e)?Number(e):void 0}var pM,nj,lj,yM=Pt(()=>{"use strict";pM=Xx(Xr());la();nj=/^['"%,$#\s']+|[, ]|['"%,$#\s']+$/g;lj=ij});var xM=J((jge,bM)=>{"use strict";var oj=/<[^>]*>/g,sj=/[\p{S}\p{P}]/gu,uj=/[\p{Cc}\p{Cf}\uFE00-\uFE0F\u20E3]/gu,fj=/�/g,cj=/\s+/g,F2="-",gM=F2.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),vj=new RegExp(gM+"{3,}","g"),dj=new RegExp(gM+"$","g"),hj=60;function pj(e){return typeof e.toWellFormed=="function"?e.toWellFormed():new TextDecoder().decode(new TextEncoder().encode(e))}bM.exports=function(r,t=hj){var a=pj(r!=null?r:"").replace(fj,"").replace(oj," ").replace(sj,n=>n===F2?n:"").toLowerCase().trim().replace(cj,F2).replace(uj,"").replace(vj,F2);return a.length<=t?a:Array.from(a).slice(0,t).join("").replace(dj,"")}});var Re=J((Qge,EM)=>{"use strict";var Tf=Or(),mj=a0().utcFormat,yj=Up().format,kM=Xr(),CM=(la(),Xe(da)),SM=CM.FP_SAFE,gj=-SM,_M=CM.BADNUM,le={};EM.exports=le;le.adjustFormat=function(r){if(!r||/^\d[.]\df/.test(r)||/[.]\d%/.test(r))return r;if(r==="0.f")return"~f";if(/^\d%/.test(r))return"~%";if(/^\ds/.test(r))return"~s";var t=(r.match(/^[+\-( ]?/)||[""])[0],a=r.slice(t.length);return!/^[~,.0$#]/.test(a)&&/[&fps]/.test(a)?t+"~"+a:r};var wM={};le.warnBadFormat=function(e){var r=String(e);wM[r]||(wM[r]=1,le.warn('encountered bad format: "'+r+'"'))};le.noFormat=function(e){return String(e)};le.numberFormat=function(e){var r;try{r=yj(le.adjustFormat(e))}catch(t){return le.warnBadFormat(e),le.noFormat}return r};le.nestedProperty=Ov();le.keyedContainer=p_();le.relativeAttr=y_();le.isPlainObject=No();le.toLogRange=Uv();le.relinkPrivateKeys=__();var Jl=hn();le.isArrayBuffer=Jl.isArrayBuffer;le.isTypedArray=Jl.isTypedArray;le.isArrayOrTypedArray=Jl.isArrayOrTypedArray;le.isArray1D=Jl.isArray1D;le.ensureArray=Jl.ensureArray;le.concat=Jl.concat;le.maxRowLength=Jl.maxRowLength;le.minRowLength=Jl.minRowLength;var DM=(l0(),Xe(i0));le.mod=DM.mod;le.modHalf=DM.modHalf;var $l=Y8();le.valObjectMeta=$l.valObjectMeta;le.coerce=$l.coerce;le.coerce2=$l.coerce2;le.coerceFont=$l.coerceFont;le.coercePattern=$l.coercePattern;le.coerceHoverinfo=$l.coerceHoverinfo;le.coerceSelectionMarkerOpacity=$l.coerceSelectionMarkerOpacity;le.validate=$l.validate;var Dn=Ow();le.dateTime2ms=Dn.dateTime2ms;le.isDateTime=Dn.isDateTime;le.ms2DateTime=Dn.ms2DateTime;le.ms2DateTimeLocal=Dn.ms2DateTimeLocal;le.cleanDate=Dn.cleanDate;le.isJSDate=Dn.isJSDate;le.formatDate=Dn.formatDate;le.incrementMonth=Dn.incrementMonth;le.dateTick0=Dn.dateTick0;le.dfltRange=Dn.dfltRange;le.findExactDates=Dn.findExactDates;le.MIN_MS=Dn.MIN_MS;le.MAX_MS=Dn.MAX_MS;var Qo=Uy();le.findBin=Qo.findBin;le.sorterAsc=Qo.sorterAsc;le.sorterDes=Qo.sorterDes;le.distinctVals=Qo.distinctVals;le.roundUp=Qo.roundUp;le.sort=Qo.sort;le.findIndexOfMin=Qo.findIndexOfMin;le.sortObjectKeys=(Vy(),Xe(Gy)).default;var xl=Uw();le.aggNums=xl.aggNums;le.len=xl.len;le.mean=xl.mean;le.geometricMean=xl.geometricMean;le.median=xl.median;le.midRange=xl.midRange;le.variance=xl.variance;le.stdev=xl.stdev;le.interp=xl.interp;var xi=w2();le.init2dArray=xi.init2dArray;le.transposeRagged=xi.transposeRagged;le.dot=xi.dot;le.translationMatrix=xi.translationMatrix;le.rotationMatrix=xi.rotationMatrix;le.rotationXYMatrix=xi.rotationXYMatrix;le.apply3DTransform=xi.apply3DTransform;le.apply2DTransform=xi.apply2DTransform;le.apply2DTransform2=xi.apply2DTransform2;le.convertCssMatrix=xi.convertCssMatrix;le.inverseTransformMatrix=xi.inverseTransformMatrix;var Ji=Zw();le.deg2rad=Ji.deg2rad;le.rad2deg=Ji.rad2deg;le.angleDelta=Ji.angleDelta;le.angleDist=Ji.angleDist;le.isFullCircle=Ji.isFullCircle;le.isAngleInsideSector=Ji.isAngleInsideSector;le.isPtInsideSector=Ji.isPtInsideSector;le.pathArc=Ji.pathArc;le.pathSector=Ji.pathSector;le.pathAnnulus=Ji.pathAnnulus;var A0=Jw();le.isLeftAnchor=A0.isLeftAnchor;le.isCenterAnchor=A0.isCenterAnchor;le.isRightAnchor=A0.isRightAnchor;le.isTopAnchor=A0.isTopAnchor;le.isMiddleAnchor=A0.isMiddleAnchor;le.isBottomAnchor=A0.isBottomAnchor;var k0=jw();le.segmentsIntersect=k0.segmentsIntersect;le.segmentDistance=k0.segmentDistance;le.getTextLocation=k0.getTextLocation;le.clearLocationCache=k0.clearLocationCache;le.getVisibleSegment=k0.getVisibleSegment;le.findPointOnPath=k0.findPointOnPath;var B2=oa();le.extendFlat=B2.extendFlat;le.extendDeep=B2.extendDeep;le.extendDeepAll=B2.extendDeepAll;le.extendDeepNoArrays=B2.extendDeepNoArrays;var jy=Ol();le.log=jy.log;le.warn=jy.warn;le.error=jy.error;var bj=(y0(),Xe(mf));le.counterRegex=bj.counter;var Qy=R2();le.throttle=Qy.throttle;le.throttleDone=Qy.done;le.clearThrottle=Qy.clear;var _i=yf();le.getGraphDiv=_i.getGraphDiv;le.isPlotDiv=_i.isPlotDiv;le.removeElement=_i.removeElement;le.addStyleRule=_i.addStyleRule;le.addRelatedStyleRule=_i.addRelatedStyleRule;le.deleteRelatedStyleRule=_i.deleteRelatedStyleRule;le.setStyleOnHover=_i.setStyleOnHover;le.getFullTransformMatrix=_i.getFullTransformMatrix;le.getElementTransformMatrix=_i.getElementTransformMatrix;le.getElementAndAncestors=_i.getElementAndAncestors;le.equalDomRects=_i.equalDomRects;le.clearResponsive=rM();le.preserveDrawingBuffer=nM();le.makeTraceGroups=lM();le._=sM();le.notifier=wy();le.filterUnique=fM();le.filterVisible=vM();le.pushUnique=qy();le.increment=hM();le.cleanNumber=(yM(),Xe(mM)).default;le.slugify=xM();le.ensureNumber=function(r){return kM(r)?(r=Number(r),r>SM||r=r?!1:kM(e)&&e>=0&&e%1===0};le.noop=_2();le.identity=Oy();le.repeat=function(e,r){for(var t=new Array(r),a=0;at?Math.max(t,Math.min(r,e)):Math.max(r,Math.min(t,e))};le.bBoxIntersect=function(e,r,t){return t=t||0,e.left<=r.right+t&&r.left<=e.right+t&&e.top<=r.bottom+t&&r.top<=e.bottom+t};le.simpleMap=function(e,r,t,a,n){for(var i=e.length,l=new Array(i),o=0;o=Math.pow(2,t)?n>10?(le.warn("randstr failed uniqueness"),l):e(r,t,a,(n||0)+1):l};le.OptionControl=function(e,r){e||(e={}),r||(r="opt");var t={};return t.optionList=[],t._newoption=function(a){a[r]=e,t[a.name]=a,t.optionList.push(a)},t["_"+r]=e,t};le.smooth=function(e,r){if(r=Math.round(r)||0,r<2)return e;var t=e.length,a=2*t,n=2*r-1,i=new Array(n),l=new Array(t),o,s,u,f;for(o=0;o=a&&(u-=a*Math.floor(u/a)),u<0?u=-1-u:u>=t&&(u=a-1-u),f+=e[u]*i[s];l[o]=f}return l};le.syncOrAsync=function(e,r,t){var a,n;function i(){return le.syncOrAsync(e,r,t)}for(;e.length;)if(n=e.splice(0,1)[0],a=n(r),a&&a.then)return a.then(i);return t&&t(r)};le.stripTrailingSlash=function(e){return e.slice(-1)==="/"?e.slice(0,-1):e};le.noneOrAll=function(e,r,t){if(e){var a=!1,n=!0,i,l;for(i=0;i0?n:0})};le.fillArray=function(e,r,t,a){if(a=a||le.identity,le.isArrayOrTypedArray(e))for(var n=0;nwj.test(window.navigator.userAgent);var Mj=/Firefox\/(\d+)\.\d+/;le.getFirefoxVersion=function(){var e=Mj.exec(window.navigator.userAgent);if(e&&e.length===2){var r=parseInt(e[1]);if(!isNaN(r))return r}return null};le.isD3Selection=function(e){return e instanceof Tf.selection};le.ensureSingle=function(e,r,t,a){var n=e.select(r+(t?"."+t:""));if(n.size())return n;var i=e.append(r);return t&&i.classed(t,!0),a&&i.call(a),i};le.ensureSingleById=function(e,r,t,a){var n=e.select(r+"#"+t);if(n.size())return n;var i=e.append(r).attr("id",t);return a&&i.call(a),i};le.objectFromPath=function(e,r){for(var t=e.split("."),a,n=a={},i=0;i1?n+l[1]:"";if(i&&(l.length>1||o.length>4||t))for(;a.test(o);)o=o.replace(a,"$1"+i+"$2");return o+s};le.TEMPLATE_STRING_REGEX=/%{([^\s%{}:]*)([:|\|][^}]*)?}/g;var qM=/^\w*$/;le.templateString=function(e,r){var t={};return e.replace(le.TEMPLATE_STRING_REGEX,function(a,n){var i;return qM.test(n)?i=r[n]:(t[n]=t[n]||le.nestedProperty(r,n).get,i=t[n](!0)),i!==void 0?i:""})};var kj={max:10,count:0,name:"hovertemplate"};le.hovertemplateString=e=>eg(Ct(ot({},e),{opts:kj}));var Cj={max:10,count:0,name:"texttemplate"};le.texttemplateString=e=>eg(Ct(ot({},e),{opts:Cj}));var Sj=/^(\S+)([\*\/])(-?\d+(\.\d+)?)$/;function Dj(e){var r=e.match(Sj);return r?{key:r[1],op:r[2],number:Number(r[3])}:{key:e,op:null,number:null}}var Lj={max:10,count:0,name:"texttemplate",parseMultDiv:!0};le.texttemplateStringForShapes=e=>eg(Ct(ot({},e),{opts:Lj}));var MM=/^[:|\|]/;function eg({data:e=[],locale:r,fallback:t,labels:a={},opts:n,template:i}){return i.replace(le.TEMPLATE_STRING_REGEX,(l,o,s)=>{let u=["xother","yother"].includes(o),f=["_xother","_yother"].includes(o),c=["_xother_","_yother_"].includes(o),d=["xother_","yother_"].includes(o),h=u||f||d||c;(f||c)&&(o=o.substring(1)),(d||c)&&(o=o.substring(0,o.length-1));let m=null,g=null;if(n.parseMultDiv){var y=Dj(o);o=y.key,m=y.op,g=y.number}let x;if(h){if(a[o]===void 0)return"";x=a[o]}else for(let M of e)if(M){if(M.hasOwnProperty(o)){x=M[o];break}if(qM.test(o)||(x=le.nestedProperty(M,o).get(!0)),x!==void 0)break}if(x===void 0){let{count:M,max:S,name:A}=n,L=t===!1?l:t;return M=I2&&l<=TM,u=o>=I2&&o<=TM;if(s&&(a=10*a+l-I2),u&&(n=10*n+o-I2),!s||!u){if(a!==n)return a-n;if(l!==o)return l-o}}return n-a};var T0=2e9;le.seedPseudoRandom=function(){T0=2e9};le.pseudoRandom=function(){var e=T0;return T0=(69069*T0+1)%4294967296,Math.abs(T0-e)<429496729?le.pseudoRandom():T0/4294967296};le.fillText=function(e,r,t){var a=Array.isArray(t)?function(l){t.push(l)}:function(l){t.text=l},n=le.extractOption(e,r,"htx","hovertext");if(le.isValidTextValue(n))return a(n);var i=le.extractOption(e,r,"tx","text");if(le.isValidTextValue(i))return a(i)};le.isValidTextValue=function(e){return e||e===0};le.formatPercent=function(e,r){r=r||0;for(var t=(Math.round(100*e*Math.pow(10,r))*Math.pow(.1,r)).toFixed(r)+"%",a=0;a1&&(u=1):u=0,le.strTranslate(n-u*(t+l),i-u*(a+o))+le.strScale(u)+(s?"rotate("+s+(r?"":" "+t+" "+a)+")":"")};le.setTransormAndDisplay=function(e,r){e.attr("transform",le.getTextTransform(r)),e.style("display",r.scale?null:"none")};le.ensureUniformFontSize=function(e,r){var t=le.extendFlat({},r);return t.size=Math.max(r.size,e._fullLayout.uniformtext.minsize||0),t};le.join2=function(e,r,t){var a=e.length;return a>1?e.slice(0,-1).join(r)+t+e[a-1]:e.join(r)};le.bigFont=function(e){return Math.round(1.2*e)};var AM=le.getFirefoxVersion(),qj=AM!==null&&AM<86;le.getPositionFromD3Event=function(){return qj?[Tf.event.layerX,Tf.event.layerY]:[Tf.event.offsetX,Tf.event.offsetY]}});var zM=J(()=>{"use strict";var Ej=Re(),PM={"X,X div":'direction:ltr;font-family:"Open Sans",verdana,arial,sans-serif;margin:0;padding:0;border: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 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:focus-within .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-group a":"display:grid;place-content:center;","X .modebar-btn":"position:relative;font-size:16px;padding:3px 4px;height:22px;cursor:pointer;line-height:normal;box-sizing:border-box;border:none;background:rgba(0,0,0,0);","X .modebar-btn svg":"position:relative;","X .modebar-btn:focus-visible":"outline:1px solid #000;outline-offset:1px;border-radius:3px;","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;","X .plotly-cloud-dialog":'font-family:"Open Sans",verdana,arial,sans-serif;position:absolute;top:0;left:0;width:100%;height:100%;z-index:1001;display:flex;align-items:center;justify-content:center;background-color:rgba(0,0,0,.4);',"X .plotly-cloud-dialog .plotly-cloud-dialog-box":"box-sizing:border-box;min-width:300px;max-width:420px;padding:20px 24px;background-color:#fff;border:1px solid #e0e2e5;border-radius:4px;box-shadow:0 4px 16px rgba(0,0,0,.25);font-size:13px;color:#2a3f5f;","X .plotly-cloud-dialog .plotly-cloud-dialog-title":"font-size:16px;font-weight:bold;margin-bottom:12px;","X .plotly-cloud-dialog .plotly-cloud-dialog-message":"line-height:1.5;overflow-wrap:break-word;word-wrap:break-word;","X .plotly-cloud-dialog .plotly-cloud-dialog-message--hostname":"font-weight:bold;text-decoration:underline;","X .plotly-cloud-dialog .plotly-cloud-dialog-message--account":"margin-top:16px;padding:8px;border-radius:3px;font-size:.9em;background-color:#edf1f8;","X .plotly-cloud-dialog .plotly-cloud-dialog-buttons":"display:flex;justify-content:flex-end;margin-top:20px;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn":"font-family:inherit;font-size:13px;padding:7px 16px;margin-left:8px;border-radius:3px;border:1px solid rgba(0,0,0,0);cursor:pointer;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn:focus-visible":"outline:2px solid #447adb;outline-offset:1px;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn--cancel":"background-color:#f3f3f3;margin-left:auto;color:#777;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn--cancel:hover":"background-color:#e0e2e5;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn--confirm":"background-color:#447adb;color:#fff;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn--confirm:hover":"background-color:#1d3b84;",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(rg in PM)RM=rg.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier"),Ej.addStyleRule(RM,PM[rg]);var RM,rg});var tg=J((a3e,FM)=>{FM.exports=!0});var ng=J((n3e,NM)=>{"use strict";var Pj=tg(),ag;typeof window.matchMedia=="function"?ag=!window.matchMedia("(hover: none)").matches:ag=Pj;NM.exports=ag});var Y2=J((i3e,ig)=>{"use strict";var C0=typeof Reflect=="object"?Reflect:null,IM=C0&&typeof C0.apply=="function"?C0.apply:function(r,t,a){return Function.prototype.apply.call(r,t,a)},H2;C0&&typeof C0.ownKeys=="function"?H2=C0.ownKeys:Object.getOwnPropertySymbols?H2=function(r){return Object.getOwnPropertyNames(r).concat(Object.getOwnPropertySymbols(r))}:H2=function(r){return Object.getOwnPropertyNames(r)};function Rj(e){console&&console.warn&&console.warn(e)}var HM=Number.isNaN||function(r){return r!==r};function _t(){_t.init.call(this)}ig.exports=_t;ig.exports.once=Ij;_t.EventEmitter=_t;_t.prototype._events=void 0;_t.prototype._eventsCount=0;_t.prototype._maxListeners=void 0;var BM=10;function O2(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(_t,"defaultMaxListeners",{enumerable:!0,get:function(){return BM},set:function(e){if(typeof e!="number"||e<0||HM(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");BM=e}});_t.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};_t.prototype.setMaxListeners=function(r){if(typeof r!="number"||r<0||HM(r))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+r+".");return this._maxListeners=r,this};function OM(e){return e._maxListeners===void 0?_t.defaultMaxListeners:e._maxListeners}_t.prototype.getMaxListeners=function(){return OM(this)};_t.prototype.emit=function(r){for(var t=[],a=1;a0&&(l=t[0]),l instanceof Error)throw l;var o=new Error("Unhandled error."+(l?" ("+l.message+")":""));throw o.context=l,o}var s=i[r];if(s===void 0)return!1;if(typeof s=="function")IM(s,this,t);else for(var u=s.length,f=XM(s,u),a=0;a0&&l.length>n&&!l.warned){l.warned=!0;var o=new Error("Possible EventEmitter memory leak detected. "+l.length+" "+String(r)+" listeners added. Use emitter.setMaxListeners() to increase limit");o.name="MaxListenersExceededWarning",o.emitter=e,o.type=r,o.count=l.length,Rj(o)}return e}_t.prototype.addListener=function(r,t){return YM(this,r,t,!1)};_t.prototype.on=_t.prototype.addListener;_t.prototype.prependListener=function(r,t){return YM(this,r,t,!0)};function zj(){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 UM(e,r,t){var a={fired:!1,wrapFn:void 0,target:e,type:r,listener:t},n=zj.bind(a);return n.listener=t,a.wrapFn=n,n}_t.prototype.once=function(r,t){return O2(t),this.on(r,UM(this,r,t)),this};_t.prototype.prependOnceListener=function(r,t){return O2(t),this.prependListener(r,UM(this,r,t)),this};_t.prototype.removeListener=function(r,t){var a,n,i,l,o;if(O2(t),n=this._events,n===void 0)return this;if(a=n[r],a===void 0)return this;if(a===t||a.listener===t)--this._eventsCount===0?this._events=Object.create(null):(delete n[r],n.removeListener&&this.emit("removeListener",r,a.listener||t));else if(typeof a!="function"){for(i=-1,l=a.length-1;l>=0;l--)if(a[l]===t||a[l].listener===t){o=a[l].listener,i=l;break}if(i<0)return this;i===0?a.shift():Fj(a,i),a.length===1&&(n[r]=a[0]),n.removeListener!==void 0&&this.emit("removeListener",r,o||t)}return this};_t.prototype.off=_t.prototype.removeListener;_t.prototype.removeAllListeners=function(r){var t,a,n;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[r]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete a[r]),this;if(arguments.length===0){var i=Object.keys(a),l;for(n=0;n=0;n--)this.removeListener(r,t[n]);return this};function GM(e,r,t){var a=e._events;if(a===void 0)return[];var n=a[r];return n===void 0?[]:typeof n=="function"?t?[n.listener||n]:[n]:t?Nj(n):XM(n,n.length)}_t.prototype.listeners=function(r){return GM(this,r,!0)};_t.prototype.rawListeners=function(r){return GM(this,r,!1)};_t.listenerCount=function(e,r){return typeof e.listenerCount=="function"?e.listenerCount(r):VM.call(e,r)};_t.prototype.listenerCount=VM;function VM(e){var r=this._events;if(r!==void 0){var t=r[e];if(typeof t=="function")return 1;if(t!==void 0)return t.length}return 0}_t.prototype.eventNames=function(){return this._eventsCount>0?H2(this._events):[]};function XM(e,r){for(var t=new Array(r),a=0;a{"use strict";var lg=Y2().EventEmitter,Hj={init:function(e){if(e._ev instanceof lg)return e;var r=new lg,t=new lg;return e._ev=r,e._internalEv=t,e.on=r.on.bind(r),e.once=r.once.bind(r),e.removeListener=r.removeListener.bind(r),e.removeAllListeners=r.removeAllListeners.bind(r),e._internalOn=t.on.bind(t),e._internalOnce=t.once.bind(t),e._removeInternalListener=t.removeListener.bind(t),e._removeAllInternalListeners=t.removeAllListeners.bind(t),e.emit=function(a,n){r.emit(a,n),t.emit(a,n)},typeof e.addEventListener=="function"&&e.addEventListener("wheel",()=>{},{passive:!0}),e},triggerHandler:function(e,r,t){var a,n=e._ev;if(!n)return;var i=n._events[r];if(!i)return;function l(s){if(s.listener){if(n.removeListener(r,s.listener),!s.fired)return s.fired=!0,s.listener.apply(n,[t])}else return s.apply(n,[t])}i=Array.isArray(i)?i:[i];var o;for(o=0;o{"use strict";var JM=Re(),Oj=Hl().dfltConfig;function Yj(e,r){for(var t=[],a,n=0;nOj.queueLength&&(e.undoQueue.queue.shift(),e.undoQueue.index--)};_l.startSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!0,e.undoQueue.beginSequence=!0};_l.stopSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!1,e.undoQueue.beginSequence=!1};_l.undo=function(r){var t,a;if(!(r.undoQueue===void 0||isNaN(r.undoQueue.index)||r.undoQueue.index<=0)){for(r.undoQueue.index--,t=r.undoQueue.queue[r.undoQueue.index],r.undoQueue.inSequence=!0,a=0;a=r.undoQueue.queue.length)){for(t=r.undoQueue.queue[r.undoQueue.index],r.undoQueue.inSequence=!0,a=0;a{"use strict";jM.exports={_isLinkedToArray:"frames_entry",group:{valType:"string"},name:{valType:"string"},traces:{valType:"any"},baseframe:{valType:"string"},data:{valType:"any"},layout:{valType:"any"}}});var L0=J(sa=>{"use strict";var Jn=kr(),kf=Re(),G2=yi(),sg=x0(),Uj=og(),Gj=gf(),Vj=Hl().configAttributes,QM=Wi(),wi=kf.extendDeepAll,S0=kf.isPlainObject,Xj=kf.isArrayOrTypedArray,V2=kf.nestedProperty,Wj=kf.valObjectMeta,ug="_isSubplotObj",X2="_isLinkedToArray",Zj="_arrayAttrRegexps",rT="_deprecated",fg=[ug,X2,Zj,rT];sa.IS_SUBPLOT_OBJ=ug;sa.IS_LINKED_TO_ARRAY=X2;sa.DEPRECATED=rT;sa.UNDERSCORE_ATTRS=fg;sa.get=function(){var e={};return Jn.allTypes.forEach(function(r){e[r]=$j(r)}),{defs:{valObjects:Wj,metaKeys:fg.concat(["description","role","editType","impliedEdits"]),editType:{traces:QM.traces,layout:QM.layout},impliedEdits:{}},traces:e,layout:Kj(),frames:jj(),animation:D0(Gj),config:D0(Vj)}};sa.crawl=function(e,r,t,a){var n=t||0;a=a||"",Object.keys(e).forEach(function(i){var l=e[i];if(fg.indexOf(i)===-1){var o=(a?a+".":"")+i;r(l,i,e,n,o),!sa.isValObject(l)&&S0(l)&&i!=="impliedEdits"&&sa.crawl(l,r,n+1,o)}})};sa.isValObject=function(e){return e&&e.valType!==void 0};sa.findArrayAttributes=function(e){var r=[],t=[],a=[],n,i;function l(s,u,f,c){t=t.slice(0,c).concat([u]),a=a.slice(0,c).concat([s&&s._isLinkedToArray]);var d=s&&(s.valType==="data_array"||s.arrayOk===!0)&&!(t[c-1]==="colorbar"&&(u==="ticktext"||u==="tickvals"));d&&o(n,0,"")}function o(s,u,f){var c=s[t[u]],d=f+t[u];if(u===t.length-1)Xj(c)&&r.push(i+d);else if(a[u]){if(Array.isArray(c))for(var h=0;h=i.length)return!1;if(e.dimensions===2){if(t++,r.length===t)return e;var l=r[t];if(!U2(l))return!1;e=i[n][l]}else e=i[n]}else e=i}}return e}function U2(e){return e===Math.round(e)&&e>=0}function $j(e){var r,t;r=Jn.modules[e]._module,t=r.basePlotModule;var a={};a.type=null;var n=wi({},G2),i=wi({},r.attributes);sa.crawl(i,function(s,u,f,c,d){V2(n,d).set(void 0),s===void 0&&V2(i,d).set(void 0)}),wi(a,n),Jn.traceIs(e,"noOpacity")&&delete a.opacity,Jn.traceIs(e,"showLegend")||(delete a.showlegend,delete a.legendgroup),Jn.traceIs(e,"noHover")&&(delete a.hoverinfo,delete a.hoverlabel),r.selectPoints||delete a.selectedpoints,wi(a,i),t.attributes&&wi(a,t.attributes),a.type=e;var l={meta:r.meta||{},categories:r.categories||{},animatable:!!r.animatable,type:e,attributes:D0(a)};if(r.layoutAttributes){var o={};wi(o,r.layoutAttributes),l.layoutAttributes=D0(o)}return r.animatable||sa.crawl(l,function(s){sa.isValObject(s)&&"anim"in s&&delete s.anim}),l}function Kj(){var e={},r,t;wi(e,sg);for(r in Jn.subplotsRegistry)if(t=Jn.subplotsRegistry[r],!!t.layoutAttributes)if(Array.isArray(t.attr))for(var a=0;a{"use strict";var q0=Re(),aQ=yi(),Kl="templateitemname",cg={name:{valType:"string",editType:"none"}};cg[Kl]={valType:"string",editType:"calc"};es.templatedArray=function(e,r){return r._isLinkedToArray=e,r.name=cg.name,r[Kl]=cg[Kl],r};es.traceTemplater=function(e){var r={},t,a;for(t in e)a=e[t],Array.isArray(a)&&a.length&&(r[t]=0);function n(i){t=q0.coerce(i,{},aQ,"type");var l={type:t,_template:null};if(t in r){a=e[t];var o=r[t]%a.length;r[t]++,l._template=a[o]}return l}return{newTrace:n}};es.newContainer=function(e,r,t){var a=e._template,n=a&&(a[r]||t&&a[t]);q0.isPlainObject(n)||(n=null);var i=e[r]={_template:n};return i};es.arrayTemplater=function(e,r,t){var a=e._template,n=a&&a[nT(r)],i=a&&a[r];(!Array.isArray(i)||!i.length)&&(i=[]);var l={};function o(u){var f={name:u.name,_input:u},c=f[Kl]=u[Kl];if(!aT(c))return f._template=n,f;for(var d=0;d=a&&(t._input||{})._templateitemname;i&&(n=a);var l=r+"["+n+"]",o;function s(){o={},i&&(o[l]={},o[l][Kl]=i)}s();function u(h,m){o[h]=m}function f(h,m){i?q0.nestedProperty(o[l],h).set(m):o[l+"."+h]=m}function c(){var h=o;return s(),h}function d(h,m){h&&f(h,m);var g=c();for(var y in g)q0.nestedProperty(e,y).set(g[y])}return{modifyBase:u,modifyItem:f,getUpdateObj:c,applyUpdate:d}}});var ma={};Rt(ma,{AX_ID_PATTERN:()=>sQ,AX_NAME_PATTERN:()=>uQ,DFLTRANGEX:()=>yQ,DFLTRANGEY:()=>gQ,DRAGGERSIZE:()=>pQ,HOUR_PATTERN:()=>cQ,MINDRAG:()=>dQ,MINZOOM:()=>hQ,REDRAWDELAY:()=>mQ,SUBPLOT_PATTERN:()=>fQ,WEEKDAY_PATTERN:()=>vQ,attrRegex:()=>iQ,clipOnAxisFalseQuery:()=>xQ,idRegex:()=>nQ,layerValue2layerClass:()=>_Q,traceLayerClasses:()=>bQ,xAxisMatch:()=>lQ,yAxisMatch:()=>oQ,zindexSeparator:()=>wQ});var nQ,iQ,lQ,oQ,sQ,uQ,fQ,cQ,vQ,dQ,hQ,pQ,mQ,yQ,gQ,bQ,xQ,_Q,wQ,ya=Pt(()=>{"use strict";y0();nQ={x:Zo("x","( domain)?"),y:Zo("y","( domain)?")},iQ=Zo("[xy]axis"),lQ=Zo("xaxis"),oQ=Zo("yaxis"),sQ=/^[xyz][0-9]*( domain)?$/,uQ=/^[xyz]axis[0-9]*$/,fQ=/^x([0-9]*)y([0-9]*)$/,cQ="hour",vQ="day of week",dQ=8,hQ=20,pQ=20,mQ=50,yQ=[-1,6],gQ=[-1,4],bQ=["imagelayer","heatmaplayer","contourcarpetlayer","contourlayer","funnellayer","waterfalllayer","barlayer","carpetlayer","violinlayer","boxlayer","ohlclayer","scattercarpetlayer","scatterlayer"],xQ=[".scatterlayer",".barlayer",".funnellayer",".waterfalllayer"],_Q={"above traces":"above","below traces":"below"},wQ="z"});var ua=J(gn=>{"use strict";var MQ=kr(),vg=(ya(),Xe(ma));gn.id2name=function(r){if(!(typeof r!="string"||!r.match(vg.AX_ID_PATTERN))){var t=r.split(" ")[0].slice(1);return t==="1"&&(t=""),r.charAt(0)+"axis"+t}};gn.name2id=function(r){if(r.match(vg.AX_NAME_PATTERN)){var t=r.slice(5);return t==="1"&&(t=""),r.charAt(0)+t}};gn.cleanId=function(r,t,a){var n=/( domain)$/.test(r);if(!(typeof r!="string"||!r.match(vg.AX_ID_PATTERN))&&!(t&&r.charAt(0)!==t)&&!(n&&!a)){var i=r.split(" ")[0].slice(1).replace(/^0+/,"");return i==="1"&&(i=""),r.charAt(0)+i+(n&&a?" domain":"")}};gn.list=function(e,r,t){var a=e._fullLayout;if(!a)return[];var n=gn.listIds(e,r),i=new Array(n.length),l;for(l=0;la?1:-1:+(e.slice(1)||1)-+(r.slice(1)||1)};gn.ref2id=function(e){return/^[xyz]/.test(e)?e.split(" ")[0]:!1};function iT(e,r){if(r&&r.length){for(var t=0;t{"use strict";function TQ(e){var r=e._fullLayout._zoomlayer;r&&r.selectAll(".outline-controllers").remove()}function AQ(e){var r=e._fullLayout._zoomlayer;r&&r.selectAll(".select-outline").remove(),e._fullLayout._outlining=!1}lT.exports={clearOutlineControllers:TQ,clearOutline:AQ}});var W2=J((h3e,oT)=>{"use strict";oT.exports={scattermode:{valType:"enumerated",values:["group","overlay"],dflt:"overlay",editType:"calc"},scattergap:{valType:"number",min:0,max:1,editType:"calc"}}});var dg=J(J2=>{"use strict";var Z2=kr(),p3e=(ya(),Xe(ma)).SUBPLOT_PATTERN;J2.getSubplotCalcData=function(e,r,t){var a=Z2.subplotsRegistry[r];if(!a)return[];for(var n=a.attr,i=[],l=0;l{"use strict";var kQ=kr(),E0=Re();rs.manageCommandObserver=function(e,r,t,a){var n={},i=!0;r&&r._commandObserver&&(n=r._commandObserver),n.cache||(n.cache={}),n.lookupTable={};var l=rs.hasSimpleAPICommandBindings(e,t,n.lookupTable);if(r&&r._commandObserver){if(l)return n;if(r._commandObserver.remove)return r._commandObserver.remove(),r._commandObserver=null,n}if(l){sT(e,l,n.cache),n.check=function(){if(i){var f=sT(e,l,n.cache);return f.changed&&a&&n.lookupTable[f.value]!==void 0&&(n.disable(),Promise.resolve(a({value:f.value,type:l.type,prop:l.prop,traces:l.traces,index:n.lookupTable[f.value]})).then(n.enable,n.enable)),f.changed}};for(var o=["plotly_relayout","plotly_redraw","plotly_restyle","plotly_update","plotly_animatingframe","plotly_afterplot"],s=0;s0?".":"")+n;E0.isPlainObject(i)?hg(i,r,l,a+1):r(l,n,i)}})}});var Qt=J((b3e,_T)=>{"use strict";var g3e=Or(),SQ=a0().timeFormatLocale,DQ=Up().formatLocale,Cf=Xr(),LQ=Vp(),qQ=Vu().version,Zr=kr(),EQ=L0(),PQ=mt(),dr=Re(),RQ=Nr(),vT=(la(),Xe(da)).BADNUM,bn=ua(),zQ=jl().clearOutline,FQ=W2(),pg=gf(),NQ=og(),IQ=dg().getModuleCalcData,dT=dr.relinkPrivateKeys,ts=dr._,rr=_T.exports={};dr.extendFlat(rr,Zr);rr.attributes=yi();rr.attributes.type.values=rr.allTypes;rr.fontAttrs=Ea();rr.layoutAttributes=x0();var K2=cT();rr.executeAPICommand=K2.executeAPICommand;rr.computeAPICommandBindings=K2.computeAPICommandBindings;rr.manageCommandObserver=K2.manageCommandObserver;rr.hasSimpleAPICommandBindings=K2.hasSimpleAPICommandBindings;rr.redrawText=function(e){return e=dr.getGraphDiv(e),new Promise(function(r){setTimeout(function(){e._fullLayout&&(Zr.getComponentMethod("annotations","draw")(e),Zr.getComponentMethod("legend","draw")(e),Zr.getComponentMethod("colorbar","draw")(e),r(rr.previousPromises(e)))},300)})};rr.resize=function(e){e=dr.getGraphDiv(e);var r,t=new Promise(function(a,n){(!e||dr.isHidden(e))&&n(new Error("Resize must be passed a displayed plot div element.")),e._redrawTimer&&clearTimeout(e._redrawTimer),e._resolveResize&&(r=e._resolveResize),e._resolveResize=a,e._redrawTimer=setTimeout(function(){if(!e.layout||e.layout.width&&e.layout.height||dr.isHidden(e)){a(e);return}delete e.layout.width,delete e.layout.height;var i=e.changed;e.autoplay=!0,Zr.call("relayout",e,{autosize:!0}).then(function(){e.changed=i,e._resolveResize===a&&(delete e._resolveResize,a(e))})},100)});return r&&r(t),t};rr.previousPromises=function(e){if((e._promises||[]).length)return Promise.all(e._promises).then(function(){e._promises=[]})};rr.sendDataToCloud=function(e,r){e.emit("plotly_beforeexport");let t=new URL(r).origin;var a=rr.graphJson(e,!1,"object");a.version=qQ;var n=new URL(r);n.searchParams.set("origin",window.location.origin);var i=window.open(n.href,"_blank");if(!i){console.error("Unable to open Plotly Cloud (the popup may have been blocked)"),e.emit("plotly_exportfail");return}var l=function(o){o.origin===t&&o.data&&o.data.type==="CHART_AUTH_SUCCESS"&&(i.postMessage({type:"chart",chart:a},t),window.removeEventListener("message",l),e.emit("plotly_afterexport"))};return window.addEventListener("message",l),!1};var BQ=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],HQ=["year","month","dayMonth","dayMonthYear"];rr.supplyDefaults=function(e,r){var t=r&&r.skipUpdateCalc,a=e._fullLayout||{};if(a._skipDefaults){delete a._skipDefaults;return}var n=e._fullLayout={},i=e.layout||{},l=e._fullData||[],o=e._fullData=[],s=e.data||[],u=e.calcdata||[],f=e._context||{},c;e._transitionData||rr.createTransitionData(e),n._dfltTitle={plot:ts(e,"Click to enter Plot title"),subtitle:ts(e,"Click to enter Plot subtitle"),x:ts(e,"Click to enter X axis title"),y:ts(e,"Click to enter Y axis title"),colorbar:ts(e,"Click to enter Colorscale title"),annotation:ts(e,"new text")},n._traceWord=ts(e,"trace");var d=hT(e,BQ);if(a._initialAutoSizeIsDone){var h=a.width,m=a.height;rr.supplyLayoutGlobalDefaults(i,n,d),i.width||(n.width=h),i.height||(n.height=m),rr.sanitizeMargins(n)}else{rr.supplyLayoutGlobalDefaults(i,n,d);var g=!i.width||!i.height,y=n.autosize,x=f.autosizable,w=g&&(y||x);w?rr.plotAutoSize(e,i,n):g&&rr.sanitizeMargins(n),!y&&g&&(i.width=n.width,i.height=n.height)}n._d3locale=UQ(d,n.separators),n._extraFormat=hT(e,HQ),n._initialAutoSizeIsDone=!0,n._dataLength=s.length,n._modules=[],n._visibleModules=[],n._basePlotModules=[];var T=n._subplots=YQ(),b=n._splomAxes={x:{},y:{}},M=n._splomSubplots={};n._splomGridDflt={},n._scatterStackOpts={},n._firstScatter={},n._alignmentOpts={},n._colorAxes={},n._requestRangeslider={},n._traceUids=OQ(l,s),rr.supplyDataDefaults(s,o,i,n);var S=Object.keys(b.x),A=Object.keys(b.y);if(S.length>1&&A.length>1){for(Zr.getComponentMethod("grid","sizeDefaults")(i,n),c=0;c15&&A.length>15&&n.shapes.length===0&&n.images.length===0,rr.linkSubplots(o,n,l,a),rr.cleanPlot(o,n,l,a);var N=!!(a._has&&a._has("cartesian")),I=!!(n._has&&n._has("cartesian")),B=N,H=I;B&&!H?a._bgLayer.remove():H&&!B&&(n._shouldCreateBgLayer=!0),a._zoomlayer&&!e._dragging&&zQ({_fullLayout:a}),GQ(o,n),dT(n,a),Zr.getComponentMethod("colorscale","crossTraceDefaults")(o,n),n._preGUI||(n._preGUI={}),n._tracePreGUI||(n._tracePreGUI={});var Y=n._tracePreGUI,G={},O;for(O in Y)G[O]="old";for(c=0;c0){var f=1-2*i;l=Math.round(f*l),o=Math.round(f*o)}}var c=rr.layoutAttributes.width.min,d=rr.layoutAttributes.height.min;l1,m=!t.height&&Math.abs(a.height-o)>1;(m||h)&&(h&&(a.width=l),m&&(a.height=o)),r._initialAutoSize||(r._initialAutoSize={width:l,height:o}),rr.sanitizeMargins(a)};rr.supplyLayoutModuleDefaults=function(e,r,t,a){var n=Zr.componentsRegistry,i=r._basePlotModules,l,o,s,u=Zr.subplotsRegistry.cartesian;for(l in n)s=n[l],s.includeBasePlot&&s.includeBasePlot(e,r);i.length||i.push(u),r._has("cartesian")&&(Zr.getComponentMethod("grid","contentDefaults")(e,r),u.finalizeSubplots(e,r));for(var f in r._subplots)r._subplots[f].sort(dr.subplotSort);for(o=0;o1&&(t.l/=y,t.r/=y)}if(d){var x=(t.t+t.b)/d;x>1&&(t.t/=x,t.b/=x)}var w=t.xl!==void 0?t.xl:t.x,T=t.xr!==void 0?t.xr:t.x,b=t.yt!==void 0?t.yt:t.y,M=t.yb!==void 0?t.yb:t.y;h[r]={l:{val:w,size:t.l+g},r:{val:T,size:t.r+g},b:{val:M,size:t.b+g},t:{val:b,size:t.t+g}},m[r]=1}if(!a._replotting)return rr.doAutoMargin(e)}};function XQ(e){if("_redrawFromAutoMarginCount"in e._fullLayout)return!1;var r=bn.list(e,"",!0);for(var t in r)if(r[t].autoshift||r[t].shift)return!0;return!1}rr.doAutoMargin=function(e){var r=e._fullLayout,t=r.width,a=r.height;r._size||(r._size={}),yT(r);var n=r._size,i=r.margin,l={t:0,b:0,l:0,r:0},o=dr.extendFlat({},n),s=i.l,u=i.r,f=i.t,c=i.b,d=r._pushmargin,h=r._pushmarginIds,m=r.minreducedwidth,g=r.minreducedheight;if(i.autoexpand!==!1){for(var y in d)h[y]||delete d[y];var x=e._fullLayout._reservedMargin;for(var w in x)for(var T in x[w]){var b=x[w][T];l[T]=Math.max(l[T],b)}d.base={l:{val:0,size:s},r:{val:1,size:u},t:{val:1,size:f},b:{val:0,size:c}};for(var M in l){var S=0;for(var A in d)A!=="base"&&Cf(d[A][M].size)&&(S=d[A][M].size>S?d[A][M].size:S);var L=Math.max(0,i[M]-S);l[M]=Math.max(0,l[M]-L)}for(var q in d){var P=d[q].l||{},z=d[q].b||{},N=P.val,I=P.size,B=z.val,H=z.size,Y=t-l.r-l.l,G=a-l.t-l.b;for(var O in d){if(Cf(I)&&d[O].r){var X=d[O].r.val,Z=d[O].r.size;if(X>N){var W=(I*X+(Z-Y)*N)/(X-N),ee=(Z*(1-N)+(I-Y)*(1-X))/(X-N);W+ee>s+u&&(s=W,u=ee)}}if(Cf(H)&&d[O].t){var ne=d[O].t.val,fe=d[O].t.size;if(ne>B){var we=(H*ne+(fe-G)*B)/(ne-B),j=(fe*(1-B)+(H-G)*(1-ne))/(ne-B);we+j>c+f&&(c=we,f=j)}}}}}var _e=dr.constrain(t-i.l-i.r,gT,m),ue=dr.constrain(a-i.t-i.b,bT,g),Me=Math.max(0,t-_e),ge=Math.max(0,a-ue);if(Me){var ce=(s+u)/Me;ce>1&&(s/=ce,u/=ce)}if(ge){var Te=(c+f)/ge;Te>1&&(c/=Te,f/=Te)}if(n.l=Math.round(s)+l.l,n.r=Math.round(u)+l.r,n.t=Math.round(f)+l.t,n.b=Math.round(c)+l.b,n.p=Math.round(i.pad),n.w=Math.round(t)-n.l-n.r,n.h=Math.round(a)-n.t-n.b,!r._replotting&&(rr.didMarginChange(o,n)||XQ(e))){"_redrawFromAutoMarginCount"in r?r._redrawFromAutoMarginCount++:r._redrawFromAutoMarginCount=1;var ze=3*(1+Object.keys(h).length);if(r._redrawFromAutoMarginCount1)return!0}return!1};rr.graphJson=function(e,r=!1,t="json",a=!1,n=!1){(a&&r&&!e._fullData||a&&!r&&!e._fullLayout)&&rr.supplyDefaults(e);var i=a?e._fullData:e.data,l=a?e._fullLayout:e.layout,o=(e._transitionData||{})._frames;function s(c,d){if(typeof c=="function")return d?"_function_":null;if(dr.isPlainObject(c)){var h={};return Object.keys(c).sort().forEach(function(x){if(["_","["].indexOf(x.charAt(0))===-1){if(typeof c[x]=="function"){d&&(h[x]="_function");return}h[x]=s(c[x],d)}}),h}var m=Array.isArray(c),g=dr.isTypedArray(c);if((m||g)&&c.dtype&&c.shape){var y=c.bdata;return s({dtype:c.dtype,shape:c.shape,bdata:dr.isArrayBuffer(y)?LQ.encode(y):y},d)}return m?c.map(function(x){return s(x,d)}):g?dr.simpleMap(c,dr.identity):dr.isJSDate(c)?dr.ms2DateTimeLocal(+c):c}var u={data:(i||[]).map(function(c){var d=s(c);return r&&delete d.fit,d})};if(!r&&(u.layout=s(l),a)){var f=l._size;u.layout.computed={margin:{b:f.b,l:f.l,r:f.r,t:f.t}}}return o&&(u.frames=s(o)),n&&(u.config=s(e._context,!0)),t==="object"?u:JSON.stringify(u)};rr.modifyFrames=function(e,r){var t,a,n,i=e._transitionData._frames,l=e._transitionData._frameHash;for(t=0;t0&&(e._transitioningWithDuration=!0),e._transitionData._interruptCallbacks.push(function(){a=!0}),t.redraw&&e._transitionData._interruptCallbacks.push(function(){return Zr.call("redraw",e)}),e._transitionData._interruptCallbacks.push(function(){e.emit("plotly_transitioninterrupted",[])});var d=0,h=0;function m(){return d++,function(){h++,!a&&h===d&&o(c)}}t.runFn(m),setTimeout(m())})}function o(c){if(e._transitionData)return i(e._transitionData._interruptCallbacks),Promise.resolve().then(function(){if(t.redraw)return Zr.call("redraw",e)}).then(function(){e._transitioning=!1,e._transitioningWithDuration=!1,e.emit("plotly_transitioned",[])}).then(c)}function s(){if(e._transitionData)return e._transitioning=!1,n(e._transitionData._interruptCallbacks)}var u=[rr.previousPromises,s,t.prepareFn,rr.rehover,rr.reselect,l],f=dr.syncOrAsync(u,e);return(!f||!f.then)&&(f=Promise.resolve()),f.then(function(){return e})}rr.doCalcdata=function(e,r){var t=bn.list(e),a=e._fullData,n=e._fullLayout,i,l,o,s=new Array(a.length),u=(e.calcdata||[]).slice();for(e.calcdata=s,n._numBoxes=0,n._numViolins=0,n._violinScaleGroupStats={},e._hmpixcount=0,e._hmlumcount=0,n._piecolormap={},n._sunburstcolormap={},n._treemapcolormap={},n._iciclecolormap={},n._funnelareacolormap={},o=0;owT,svgAttrs:()=>jQ,xlink:()=>MT,xmlns:()=>KQ});var KQ,wT,MT,jQ,ns=Pt(()=>{"use strict";KQ="http://www.w3.org/2000/xmlns/",wT="http://www.w3.org/2000/svg",MT="http://www.w3.org/1999/xlink",jQ={xmlns:wT,"xmlns:xlink":MT}});var Ha={};Rt(Ha,{CAP_SHIFT:()=>aee,FROM_BL:()=>QQ,FROM_BR:()=>ree,FROM_TL:()=>eee,LINE_SPACING:()=>tee,MID_SHIFT:()=>nee,OPPOSITE_SIDE:()=>iee});var QQ,eee,ree,tee,aee,nee,iee,Oa=Pt(()=>{"use strict";QQ={left:0,center:.5,right:1,bottom:0,middle:.5,top:1},eee={left:0,center:.5,right:1,bottom:1,middle:.5,top:0},ree={left:1,center:.5,right:0,bottom:0,middle:.5,top:1},tee=1.3,aee=.7,nee=.35,iee={left:"right",right:"left",top:"bottom",bottom:"top"}});var Ta=J(Ln=>{"use strict";var fa=Or(),$n=Re(),lee=$n.strTranslate,mg=(ns(),Xe(as)),oee=(Oa(),Xe(Ha)).LINE_SPACING,see=/([^$]*)([$]+[^$]*[$]+)([^$]*)/,DT=e=>e?e.match(see):null;Ln.matchTex=DT;Ln.convertToTspans=function(e,r,t){var a=e.text(),n=!e.attr("data-notex")&&r&&r._context.typesetMath&&DT(a);n&&!vee()&&(n=null);var i=fa.select(e.node().parentNode);if(i.empty())return;var l=e.attr("class")?e.attr("class").split(" ")[0]:"text";l+="-math",i.selectAll("svg."+l).remove(),i.selectAll("g."+l+"-group").remove(),e.style("display",null).attr({"data-unformatted":a,"data-math":"N"});function o(){i.empty()||(l=e.attr("class")+"-math",i.select("svg."+l).remove()),e.text("").style("white-space","pre");var s=wee(e.node(),a);s&&e.style("pointer-events","all"),Ln.positionText(e),t&&t.call(e)}return n?(r&&r._promises||[]).push(new Promise(function(s){e.style("display","none");var u=parseInt(e.node().style.fontSize,10),f={fontSize:u},c=e.attr("text-anchor");dee(n[2],f,function(d,h,m){i.selectAll("svg."+l).remove(),i.selectAll("g."+l+"-group").remove();var g=d&&d.select("svg");if(!g||!g.node()){o(),s();return}e.style("display","none");var y=i.append("g").classed(l+"-group",!0).attr({"pointer-events":"none","data-unformatted":a,"data-math":"Y"});y.node().appendChild(g.node()),h&&h.node()&&g.node().insertBefore(h.node().cloneNode(!0),g.node().firstChild);var x=m.width,w=m.height;g.attr({class:l,height:w,preserveAspectRatio:"xMinYMin meet"}).style({overflow:"visible","pointer-events":"none","font-size":f.fontSize+"px"});var T=e.node().style.fill||"black",b=g.select("g");b.attr({fill:T,stroke:T});var M=b.node().getBoundingClientRect(),S=M.width,A=M.height;(S>x||A>w)&&(g.style("overflow","hidden"),M=g.node().getBoundingClientRect(),S=M.width,A=M.height);var L=+e.attr("x"),q=+e.attr("y"),P=u||e.node().getBoundingClientRect().height,z=-P/4;l[0]==="y"?y.attr({transform:"rotate("+[-90,L,q]+")"+lee(-S/2,z-A/2)}):l[0]==="l"?q=z-A/2:l[0]==="a"&&l.indexOf("atitle")!==0?(L=0,q=z):(L=L-S*(c==="middle"?.5:c==="end"?1:0),q=q+z-A/2),g.attr({x:L,y:q}),t&&t.call(e,y),s(y)})})):o(),e};var uee=/(<|<|<)/g,fee=/(>|>|>)/g;function cee(e){return e.replace(uee,"\\lt ").replace(fee,"\\gt ")}var yg=null,LT=()=>typeof MathJax!="undefined"&&MathJax.version?parseInt(MathJax.version.split(".")[0]):null,TT=!1,AT=!1;function vee(){let e=LT();return e===3||e===4?!0:(e===null?TT||(TT=!0,$n.warn("MathJax is not loaded. Math equations will not be rendered.")):AT||(AT=!0,$n.warn("Unsupported MathJax version:",MathJax.version)),!1)}function dee(e,r,t){let a=LT();var n;let i=function(){if(!yg){let u=MathJax._.output.svg_ts.SVG,f=$n.extendFlat({},MathJax.config.svg,{fontCache:"local"});a===4&&(f.linebreaks=$n.extendFlat({},f.linebreaks,{inline:!1})),yg=MathJax._.mathjax.mathjax.document(document,$n.extendFlat({},MathJax.config.options,{InputJax:MathJax.startup.input,OutputJax:new u(f)}))}let o="math-output-"+$n.randstr({},64);n=fa.select("body").append("div").attr({id:o}).style({visibility:"hidden",position:"absolute","font-size":r.fontSize+"px"});let s=cee(e).replace(/^\$+|\$+$/g,"");return MathJax._.mathjax.mathjax.handleRetriesFor(function(){return yg.convert(s,{display:!1})}).then(function(u){n.node().appendChild(u)})},l=function(){let o=n.select(".MathJax"),s=!o.empty()&&n.select("svg").node();if(!s)$n.log("There was an error in the tex syntax.",e),t();else{let u=s.getBoundingClientRect(),f=o.select("defs");t(o,f,u)}n.remove()};Promise.resolve().then(i).then(l).catch(o=>{$n.log("MathJax typesetting failed.",e,o),n&&n.remove(),t()})}var qT={sup:"font-size:70%",sub:"font-size:70%",s:"text-decoration:line-through",u:"text-decoration:underline",b:"font-weight:bold",i:"font-style:italic",a:"cursor:pointer",span:"",em:"font-style:italic;font-weight:bold"},hee={sub:"0.3em",sup:"-0.6em"},pee={sub:"-0.21em",sup:"0.42em"},kT="\u200B",CT=["http:","https:","mailto:","",void 0,":"],ET=Ln.NEWLINES=/(\r\n?|\n)/g,bg=/(<[^<>]*>)/,xg=/<(\/?)([^ >]*)(\s+(.*))?>/i,mee=//i;Ln.BR_TAG_ALL=//gi;var PT=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,RT=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,zT=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,yee=/(^|[\s"'])popup\s*=\s*("([\w=,]*)"|'([\w=,]*)')/i;function is(e,r){if(!e)return null;var t=e.match(r),a=t&&(t[3]||t[4]);return a&&j2(a)}var gee=/(^|;)\s*color:/;Ln.plainText=function(e,r){r=r||{};for(var t=r.len!==void 0&&r.len!==-1?r.len:1/0,a=r.allowedTags!==void 0?r.allowedTags:["br"],n="...",i=n.length,l=e.split(bg),o=[],s="",u=0,f=0;fi?o.push(c.slice(0,Math.max(0,g-i))+n):o.push(c.slice(0,g));break}s=""}}return o.join("")};var bee={mu:"\u03BC",amp:"&",lt:"<",gt:">",nbsp:"\xA0",times:"\xD7",plusmn:"\xB1",deg:"\xB0"},xee=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function j2(e){return e.replace(xee,function(r,t){var a;return t.charAt(0)==="#"?a=_ee(t.charAt(1)==="x"?parseInt(t.slice(2),16):parseInt(t.slice(1),10)):a=bee[t],a||r})}Ln.convertEntities=j2;function _ee(e){if(!(e>1114111)){var r=String.fromCodePoint;if(r)return r(e);var t=String.fromCharCode;return e<=65535?t(e):t((e>>10)+55232,e%1024+56320)}}function wee(e,r){r=r.replace(ET," ");var t=!1,a=[],n,i=-1;function l(){i++;var S=document.createElementNS(mg.svg,"tspan");fa.select(S).attr({class:"line",dy:i*oee+"em"}),e.appendChild(S),n=S;var A=a;if(a=[{node:S}],A.length>1)for(var L=1;L.",r);return}var A=a.pop();S!==A.type&&$n.log("Start tag <"+A.type+"> doesnt match end tag <"+S+">. Pretending it did match.",r),n=a[a.length-1].node}var f=mee.test(r);f?l():(n=e,a=[{node:e}]);for(var c=r.split(bg),d=0;d{"use strict";var Mee=Or(),Df=Xr(),Q2=Re(),ls=Nr(),Tee=Wo().isValid;function Aee(e,r,t){var a=r?Q2.nestedProperty(e,r).get()||{}:e,n=a[t||"color"];n&&n._inputArray&&(n=n._inputArray);var i=!1;if(Q2.isArrayOrTypedArray(n)){for(var l=0;l=0;a--,n++){var i=e[a];t[n]=[1-i[0],i[1]]}return t}function OT(e,r){r=r||{};for(var t=e.domain,a=e.range,n=a.length,i=new Array(n),l=0;l{"use strict";var UT=(Fy(),Xe(zy)),Cee=UT.FORMAT_LINK,See=UT.DATE_FORMAT_LINK;function Dee(e,r){return{valType:"string",dflt:"",editType:"none",description:(r?_g:GT)("hover text",e)+["By default the values are formatted using "+(r?"generic number format":"`"+e+"axis.hoverformat`")+"."].join(" ")}}function _g(e,r){return["Sets the "+e+" formatting rule"+(r?" for `"+r+"`":""),"using d3 formatting mini-languages","which are very similar to those in Python. For numbers, see: "+Cee+"."].join(" ")}function GT(e,r){return _g(e,r)+[" And for dates see: "+See+".","We add two items to d3's date formatter:","*%h* for half of the year as a decimal number as well as","*%{n}f* for fractional seconds","with n digits. For example, *2016-10-13 09:15:23.456* with tickformat","*%H~%M~%S.%2f* would display *09~15~23.46*"].join(" ")}VT.exports={axisHoverFormat:Dee,descriptionOnlyNumbers:_g,descriptionWithDates:GT}});var Mi=J((T3e,sA)=>{"use strict";var XT=Ea(),P0=Xi(),oA=Zi().dash,Mg=oa().extendFlat,WT=mt().templatedArray,M3e=Jo().templateFormatStringDescription,ZT=e1().descriptionWithDates,Lee=(la(),Xe(da)).ONEDAY,$i=(ya(),Xe(ma)),qee=$i.HOUR_PATTERN,Eee=$i.WEEKDAY_PATTERN,wg={valType:"enumerated",values:["auto","linear","array"],editType:"ticks",impliedEdits:{tick0:void 0,dtick:void 0}},Pee=Mg({},wg,{values:wg.values.slice().concat(["sync"])});function JT(e){return{valType:"integer",min:0,dflt:e?5:0,editType:"ticks"}}var $T={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},KT={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},jT={valType:"data_array",editType:"ticks"},QT={valType:"enumerated",values:["outside","inside",""],editType:"ticks"};function eA(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=5),r}function rA(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=1),r}var tA={valType:"color",dflt:P0.defaultLine,editType:"ticks"},aA={valType:"color",dflt:P0.lightLine,editType:"ticks"};function nA(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=1),r}var iA=Mg({},oA,{editType:"ticks"}),lA={valType:"boolean",editType:"ticks"};sA.exports={visible:{valType:"boolean",editType:"plot"},color:{valType:"color",dflt:P0.defaultLine,editType:"ticks"},title:{text:{valType:"string",editType:"ticks"},font:XT({editType:"ticks",description:"Sets this axis' title font."}),standoff:{valType:"number",min:0,editType:"ticks"},editType:"ticks"},type:{valType:"enumerated",values:["-","linear","log","date","category","multicategory"],dflt:"-",editType:"calc",_noTemplating:!0},autotypenumbers:{valType:"enumerated",values:["convert types","strict"],dflt:"convert types",editType:"calc"},autorange:{valType:"enumerated",values:[!0,!1,"reversed","min reversed","max reversed","min","max"],dflt:!0,editType:"axrange",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},autorangeoptions:{minallowed:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},maxallowed:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},clipmin:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},clipmax:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},include:{valType:"any",arrayOk:!0,editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},editType:"plot"},rangemode:{valType:"enumerated",values:["normal","tozero","nonnegative"],dflt:"normal",editType:"plot"},range:{valType:"info_array",items:[{valType:"any",editType:"axrange",impliedEdits:{"^autorange":!1},anim:!0},{valType:"any",editType:"axrange",impliedEdits:{"^autorange":!1},anim:!0}],editType:"axrange",impliedEdits:{autorange:!1},anim:!0},minallowed:{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},maxallowed:{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},fixedrange:{valType:"boolean",dflt:!1,editType:"calc"},modebardisable:{valType:"flaglist",flags:["autoscale","zoominout"],extras:["none"],dflt:"none",editType:"modebar"},insiderange:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},scaleanchor:{valType:"enumerated",values:[$i.idRegex.x.toString(),$i.idRegex.y.toString(),!1],editType:"plot"},scaleratio:{valType:"number",min:0,dflt:1,editType:"plot"},constrain:{valType:"enumerated",values:["range","domain"],editType:"plot"},constraintoward:{valType:"enumerated",values:["left","center","right","top","middle","bottom"],editType:"plot"},matches:{valType:"enumerated",values:[$i.idRegex.x.toString(),$i.idRegex.y.toString()],editType:"calc"},rangebreaks:WT("rangebreak",{enabled:{valType:"boolean",dflt:!0,editType:"calc"},bounds:{valType:"info_array",items:[{valType:"any",editType:"calc"},{valType:"any",editType:"calc"}],editType:"calc"},pattern:{valType:"enumerated",values:[Eee,qee,""],editType:"calc"},values:{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"any",editType:"calc"}},dvalue:{valType:"number",editType:"calc",min:0,dflt:Lee},editType:"calc"}),tickmode:Pee,nticks:JT(),tick0:$T,dtick:KT,ticklabelstep:{valType:"integer",min:1,dflt:1,editType:"ticks"},tickvals:jT,ticktext:{valType:"data_array",editType:"ticks"},ticks:QT,tickson:{valType:"enumerated",values:["labels","boundaries"],dflt:"labels",editType:"ticks"},ticklabelmode:{valType:"enumerated",values:["instant","period"],dflt:"instant",editType:"ticks"},ticklabelposition:{valType:"enumerated",values:["outside","inside","outside top","inside top","outside left","inside left","outside right","inside right","outside bottom","inside bottom"],dflt:"outside",editType:"calc"},ticklabeloverflow:{valType:"enumerated",values:["allow","hide past div","hide past domain"],editType:"calc"},ticklabelshift:{valType:"integer",dflt:0,editType:"ticks"},ticklabelstandoff:{valType:"integer",dflt:0,editType:"ticks"},ticklabelindex:{valType:"integer",arrayOk:!0,editType:"calc"},mirror:{valType:"enumerated",values:[!0,"ticks",!1,"all","allticks"],dflt:!1,editType:"ticks+layoutstyle"},ticklen:eA(),tickwidth:rA(),tickcolor:tA,showticklabels:{valType:"boolean",dflt:!0,editType:"ticks"},labelalias:{valType:"any",dflt:!1,editType:"ticks"},automargin:{valType:"flaglist",flags:["height","width","left","right","top","bottom"],extras:[!0,!1],dflt:!1,editType:"ticks"},showspikes:{valType:"boolean",dflt:!1,editType:"modebar"},spikecolor:{valType:"color",dflt:null,editType:"none"},spikethickness:{valType:"number",dflt:3,editType:"none"},spikedash:Mg({},oA,{dflt:"dash",editType:"none"}),spikemode:{valType:"flaglist",flags:["toaxis","across","marker"],dflt:"toaxis",editType:"none"},spikesnap:{valType:"enumerated",values:["data","cursor","hovered data"],dflt:"hovered data",editType:"none"},tickfont:XT({editType:"ticks"}),tickangle:{valType:"angle",dflt:"auto",editType:"ticks"},autotickangles:{valType:"info_array",freeLength:!0,items:{valType:"angle"},dflt:[0,30,90],editType:"ticks"},tickprefix:{valType:"string",dflt:"",editType:"ticks"},showtickprefix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},ticksuffix:{valType:"string",dflt:"",editType:"ticks"},showticksuffix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},showexponent:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},exponentformat:{valType:"enumerated",values:["none","e","E","power","SI","B","SI extended"],dflt:"B",editType:"ticks"},minexponent:{valType:"number",dflt:3,min:0,editType:"ticks"},separatethousands:{valType:"boolean",dflt:!1,editType:"ticks"},tickformat:{valType:"string",dflt:"",editType:"ticks",description:ZT("tick label")},tickformatstops:WT("tickformatstop",{enabled:{valType:"boolean",dflt:!0,editType:"ticks"},dtickrange:{valType:"info_array",items:[{valType:"any",editType:"ticks"},{valType:"any",editType:"ticks"}],editType:"ticks"},value:{valType:"string",dflt:"",editType:"ticks"},editType:"ticks"}),hoverformat:{valType:"string",dflt:"",editType:"none",description:ZT("hover text")},unifiedhovertitle:{text:{valType:"string",dflt:"",editType:"none"},editType:"none"},showline:{valType:"boolean",dflt:!1,editType:"ticks+layoutstyle"},linecolor:{valType:"color",dflt:P0.defaultLine,editType:"layoutstyle"},linewidth:{valType:"number",min:0,dflt:1,editType:"ticks+layoutstyle"},showgrid:lA,gridcolor:aA,gridwidth:nA(),griddash:iA,zeroline:{valType:"boolean",editType:"ticks"},zerolinecolor:{valType:"color",dflt:P0.defaultLine,editType:"ticks"},zerolinelayer:{valType:"enumerated",values:["above traces","below traces"],dflt:"below traces",editType:"plot"},zerolinewidth:{valType:"number",dflt:1,editType:"ticks"},showdividers:{valType:"boolean",dflt:!0,editType:"ticks"},dividercolor:{valType:"color",dflt:P0.defaultLine,editType:"ticks"},dividerwidth:{valType:"number",dflt:1,editType:"ticks"},anchor:{valType:"enumerated",values:["free",$i.idRegex.x.toString(),$i.idRegex.y.toString()],editType:"plot"},side:{valType:"enumerated",values:["top","bottom","left","right"],editType:"plot"},overlaying:{valType:"enumerated",values:["free",$i.idRegex.x.toString(),$i.idRegex.y.toString()],editType:"plot"},minor:{tickmode:wg,nticks:JT("minor"),tick0:$T,dtick:KT,tickvals:jT,ticks:QT,ticklen:eA("minor"),tickwidth:rA("minor"),tickcolor:tA,gridcolor:aA,gridwidth:nA("minor"),griddash:iA,showgrid:lA,editType:"ticks"},minorloglabels:{valType:"enumerated",values:["small digits","complete","none"],dflt:"small digits",editType:"calc"},layer:{valType:"enumerated",values:["above traces","below traces"],dflt:"above traces",editType:"plot"},domain:{valType:"info_array",items:[{valType:"number",min:0,max:1,editType:"plot"},{valType:"number",min:0,max:1,editType:"plot"}],dflt:[0,1],editType:"plot"},position:{valType:"number",min:0,max:1,dflt:0,editType:"plot"},autoshift:{valType:"boolean",dflt:!1,editType:"plot"},shift:{valType:"number",editType:"plot"},categoryorder:{valType:"enumerated",values:["trace","category ascending","category descending","array","total ascending","total descending","min ascending","min descending","max ascending","max descending","sum ascending","sum descending","mean ascending","mean descending","geometric mean ascending","geometric mean descending","median ascending","median descending"],dflt:"trace",editType:"calc"},categoryarray:{valType:"data_array",editType:"calc"},uirevision:{valType:"any",editType:"none"},editType:"calc"}});var r1=J((A3e,fA)=>{"use strict";var wt=Mi(),uA=Ea(),Tg=oa().extendFlat,Ree=Wi().overrideAll;fA.exports=Ree({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:wt.linecolor,outlinewidth:wt.linewidth,bordercolor:wt.linecolor,borderwidth:{valType:"number",min:0,dflt:0},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},tickmode:wt.minor.tickmode,nticks:wt.nticks,tick0:wt.tick0,dtick:Tg({},wt.dtick,{}),tickvals:wt.tickvals,ticktext:wt.ticktext,ticks:Tg({},wt.ticks,{dflt:""}),ticklabeloverflow:Tg({},wt.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:wt.ticklen,tickwidth:wt.tickwidth,tickcolor:wt.tickcolor,ticklabelstep:wt.ticklabelstep,showticklabels:wt.showticklabels,labelalias:wt.labelalias,tickfont:uA({description:"Sets the color bar's tick label font"}),tickangle:wt.tickangle,tickformat:wt.tickformat,tickformatstops:wt.tickformatstops,tickprefix:wt.tickprefix,showtickprefix:wt.showtickprefix,ticksuffix:wt.ticksuffix,showticksuffix:wt.showticksuffix,separatethousands:wt.separatethousands,exponentformat:wt.exponentformat,minexponent:wt.minexponent,showexponent:wt.showexponent,title:{text:{valType:"string"},font:uA({description:"Sets this color bar's title font."}),side:{valType:"enumerated",values:["right","top","bottom"]}}},"colorbars","from-root")});var Lf=J((C3e,vA)=>{"use strict";var zee=r1(),Fee=(y0(),Xe(mf)).counter,Nee=(Vy(),Xe(Gy)).default,cA=Wo().scales,k3e=Nee(cA);function t1(e){return"`"+e+"`"}vA.exports=function(r,t){r=r||"",t=t||{};var a=t.cLetter||"c",n="onlyIfNumerical"in t?t.onlyIfNumerical:!!r,i="noScale"in t?t.noScale:r==="marker.line",l="showScaleDflt"in t?t.showScaleDflt:a==="z",o=typeof t.colorscaleDflt=="string"?cA[t.colorscaleDflt]:null,s=t.editTypeOverride||"",u=r?r+".":"",f,c;"colorAttr"in t?(f=t.colorAttr,c=t.colorAttr):(f={z:"z",c:"color"}[a],c="in "+t1(u+f));var d=n?" Has an effect only if "+c+" is set to a numerical array.":"",h=a+"auto",m=a+"min",g=a+"max",y=a+"mid",x=t1(u+h),w=t1(u+m),T=t1(u+g),b=w+" and "+T,M={};M[m]=M[g]=void 0;var S={};S[h]=!1;var A={};return f==="color"&&(A.color={valType:"color",arrayOk:!0,editType:s||"style"},t.anim&&(A.color.anim=!0)),A[h]={valType:"boolean",dflt:!0,editType:"calc",impliedEdits:M},A[m]={valType:"number",dflt:null,editType:s||"plot",impliedEdits:S},A[g]={valType:"number",dflt:null,editType:s||"plot",impliedEdits:S},A[y]={valType:"number",dflt:null,editType:"calc",impliedEdits:M},A.colorscale={valType:"colorscale",editType:"calc",dflt:o,impliedEdits:{autocolorscale:!1}},A.autocolorscale={valType:"boolean",dflt:t.autoColorDflt!==!1,editType:"calc",impliedEdits:{colorscale:void 0}},A.reversescale={valType:"boolean",dflt:!1,editType:"plot"},i||(A.showscale={valType:"boolean",dflt:l,editType:"calc"},A.colorbar=zee),t.noColorAxis||(A.coloraxis={valType:"subplotid",regex:Fee("coloraxis"),dflt:null,editType:"calc"}),A}});var kg=J((S3e,dA)=>{"use strict";var Iee=oa().extendFlat,Bee=Lf(),Ag=Wo().scales;dA.exports={editType:"calc",colorscale:{editType:"calc",sequential:{valType:"colorscale",dflt:Ag.Reds,editType:"calc"},sequentialminus:{valType:"colorscale",dflt:Ag.Blues,editType:"calc"},diverging:{valType:"colorscale",dflt:Ag.RdBu,editType:"calc"}},coloraxis:Iee({_isSubplotObj:!0,editType:"calc"},Bee("",{colorAttr:"corresponding trace color array(s)",noColorAxis:!0,showScaleDflt:!0}))}});var Cg=J((D3e,hA)=>{"use strict";var Hee=Re();hA.exports=function(r){return Hee.isPlainObject(r.colorbar)}});var Lg=J(Dg=>{"use strict";var Sg=Xr(),pA=Re(),mA=(la(),Xe(da)),Oee=mA.ONEDAY,Yee=mA.ONEWEEK;Dg.dtick=function(e,r){var t=r==="log",a=r==="date",n=r==="category",i=a?Oee:1;if(!e)return i;if(Sg(e))return e=Number(e),e<=0?i:n?Math.max(1,Math.round(e)):a?Math.max(.1,e):e;if(typeof e!="string"||!(a||t))return i;var l=e.charAt(0),o=e.slice(1);return o=Sg(o)?Number(o):0,o<=0||!(a&&l==="M"&&o===Math.round(o)||t&&l==="L"||t&&l==="D"&&(o===1||o===2))?i:e};Dg.tick0=function(e,r,t,a){if(r==="date")return pA.cleanDate(e,pA.dateTick0(t,a%Yee===0?1:0));if(!(a==="D1"||a==="D2"))return Sg(e)?Number(e):0}});var qg=J((q3e,gA)=>{"use strict";var yA=Lg(),Uee=Re().isArrayOrTypedArray,Gee=hn().isTypedArraySpec,Vee=hn().decodeTypedArraySpec;gA.exports=function(r,t,a,n,i={}){var l=i.isMinor,o=l?r.minor||{}:r,s=l?t.minor:t,u=l?"minor.":"";function f(b){var M=o[b];return Gee(M)&&(M=Vee(M)),M!==void 0?M:(s._template||{})[b]}var c=f("tick0"),d=f("dtick"),h=f("tickvals"),m=f("overlaying"),g=n==="category"||n==="multicategory",y;Uee(h)?y="array":d?y="linear":m&&!g?y="sync":y="auto";var x=a(u+"tickmode",y);if(x==="auto"||x==="sync")a(u+"nticks");else if(x==="linear"){var w=s.dtick=yA.dtick(d,n);s.tick0=yA.tick0(c,n,t.calendar,w)}else if(n!=="multicategory"){var T=a(u+"tickvals");T===void 0?s.tickmode="auto":l||a("ticktext")}}});var Pg=J((E3e,xA)=>{"use strict";var Eg=Re(),bA=Mi();xA.exports=function(r,t,a,n){var i=n.isMinor,l=i?r.minor||{}:r,o=i?t.minor:t,s=i?bA.minor:bA,u=i?"minor.":"",f=Eg.coerce2(l,o,s,"ticklen",i?(t.ticklen||5)*.6:void 0),c=Eg.coerce2(l,o,s,"tickwidth",i?t.tickwidth||1:void 0),d=Eg.coerce2(l,o,s,"tickcolor",(i?t.tickcolor:void 0)||o.color),h=a(u+"ticks",!i&&n.outerTicks||f||c||d?"outside":"");h||(delete o.ticklen,delete o.tickwidth,delete o.tickcolor)}});var Rg=J((P3e,_A)=>{"use strict";_A.exports=function(r){var t=["showexponent","showtickprefix","showticksuffix"],a=t.filter(function(i){return r[i]!==void 0}),n=function(i){return r[i]===r[a[0]]};if(a.every(n)||a.length===1)return r[a[0]]}});var Ti=J((R3e,wA)=>{"use strict";var a1=Re(),Xee=mt();wA.exports=function(r,t,a){var n=a.name,i=a.inclusionAttr||"visible",l=t[n],o=a1.isArrayOrTypedArray(r[n])?r[n]:[],s=t[n]=[],u=Xee.arrayTemplater(t,n,i),f,c;for(f=0;f{"use strict";var zg=Re(),Wee=Nr().contrast,MA=Mi(),Zee=Rg(),Jee=Ti();TA.exports=function(r,t,a,n,i){i||(i={});var l=a("labelalias");zg.isPlainObject(l)||delete t.labelalias;var o=Zee(r),s=a("showticklabels");if(s){i.noTicklabelshift||a("ticklabelshift"),i.noTicklabelstandoff||a("ticklabelstandoff");var u=i.font||{},f=t.color,c=t.ticklabelposition||"",d=c.indexOf("inside")!==-1?Wee(i.bgColor):f&&f!==MA.color.dflt?f:u.color;if(zg.coerceFont(a,"tickfont",u,{overrideDflt:{color:d}}),!i.noTicklabelstep&&n!=="multicategory"&&n!=="log"&&a("ticklabelstep"),!i.noAng){var h=a("tickangle");!i.noAutotickangles&&h==="auto"&&a("autotickangles")}if(n!=="category"){var m=a("tickformat");Jee(r,t,{name:"tickformatstops",inclusionAttr:"enabled",handleItemDefaults:$ee}),t.tickformatstops.length||delete t.tickformatstops,!i.noExp&&!m&&n!=="date"&&(a("showexponent",o),a("exponentformat"),a("minexponent"),a("separatethousands"))}!i.noMinorloglabels&&n==="log"&&a("minorloglabels")}};function $ee(e,r){function t(n,i){return zg.coerce(e,r,MA.tickformatstops,n,i)}var a=t("enabled");a&&(t("dtickrange"),t("value"))}});var Ng=J((F3e,AA)=>{"use strict";var Kee=Rg();AA.exports=function(r,t,a,n,i){i||(i={});var l=i.tickSuffixDflt,o=Kee(r),s=a("tickprefix");s&&a("showtickprefix",o);var u=a("ticksuffix",l);u&&a("showticksuffix",o)}});var Ig=J((N3e,kA)=>{"use strict";var Ql=Re(),jee=mt(),Qee=qg(),ere=Pg(),rre=Fg(),tre=Ng(),are=r1();kA.exports=function(r,t,a){var n=jee.newContainer(t,"colorbar"),i=r.colorbar||{};function l(z,N){return Ql.coerce(i,n,are,z,N)}var o=a.margin||{t:0,b:0,l:0,r:0},s=a.width-o.l-o.r,u=a.height-o.t-o.b,f=l("orientation"),c=f==="v",d=l("thicknessmode");l("thickness",d==="fraction"?30/(c?s:u):30);var h=l("lenmode");l("len",h==="fraction"?1:c?u:s);var m=l("yref"),g=l("xref"),y=m==="paper",x=g==="paper",w,T,b,M="left";c?(b="middle",M=x?"left":"right",w=x?1.02:1,T=.5):(b=y?"bottom":"top",M="center",w=.5,T=y?1.02:1),Ql.coerce(i,n,{x:{valType:"number",min:x?-2:0,max:x?3:1,dflt:w}},"x"),Ql.coerce(i,n,{y:{valType:"number",min:y?-2:0,max:y?3:1,dflt:T}},"y"),l("xanchor",M),l("xpad"),l("yanchor",b),l("ypad"),Ql.noneOrAll(i,n,["x","y"]),l("outlinecolor"),l("outlinewidth"),l("bordercolor"),l("borderwidth"),l("bgcolor");var S=Ql.coerce(i,n,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:c?["outside","inside","outside top","inside top","outside bottom","inside bottom"]:["outside","inside","outside left","inside left","outside right","inside right"]}},"ticklabelposition");l("ticklabeloverflow",S.indexOf("inside")!==-1?"hide past domain":"hide past div"),Qee(i,n,l,"linear");var A=a.font,L={noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0,outerTicks:!1,font:A};S.indexOf("inside")!==-1&&(L.bgColor="black"),tre(i,n,l,"linear",L),rre(i,n,l,"linear",L),ere(i,n,l,"linear",L),l("title.text",a._dfltTitle.colorbar);var q=n.showticklabels?n.tickfont:A,P=Ql.extendFlat({},A,{family:q.family,size:Ql.bigFont(q.size)});Ql.coerceFont(l,"title.font",P),l("title.side",c?"top":"right")}});var R0=J((I3e,DA)=>{"use strict";var CA=Xr(),Hg=Re(),nre=Cg(),ire=Ig(),SA=Wo().isValid,lre=kr().traceIs;function Bg(e,r){var t=r.slice(0,r.length-1);return r?Hg.nestedProperty(e,t).get()||{}:e}DA.exports=function e(r,t,a,n,i){var l=i.prefix,o=i.cLetter,s="_module"in t,u=Bg(r,l),f=Bg(t,l),c=Bg(t._template||{},l)||{},d=function(){return delete r.coloraxis,delete t.coloraxis,e(r,t,a,n,i)};if(s){var h=a._colorAxes||{},m=n(l+"coloraxis");if(m){var g=lre(t,"contour")&&Hg.nestedProperty(t,"contours.coloring").get()||"heatmap",y=h[m];y?(y[2].push(d),y[0]!==g&&(y[0]=!1,Hg.warn(["Ignoring coloraxis:",m,"setting","as it is linked to incompatible colorscales."].join(" ")))):h[m]=[g,t,[d]];return}}var x=u[o+"min"],w=u[o+"max"],T=CA(x)&&CA(w)&&x{"use strict";var LA=Re(),ore=mt(),qA=kg(),sre=R0();EA.exports=function(r,t){function a(c,d){return LA.coerce(r,t,qA,c,d)}a("colorscale.sequential"),a("colorscale.sequentialminus"),a("colorscale.diverging");var n=t._colorAxes,i,l;function o(c,d){return LA.coerce(i,l,qA.coloraxis,c,d)}for(var s in n){var u=n[s];if(u[0])i=r[s]||{},l=ore.newContainer(t,s,"coloraxis"),l._name=s,sre(i,l,t,o,{prefix:"",cLetter:"c"});else{for(var f=0;f{"use strict";var ure=Re(),fre=Kn().hasColorscale,cre=Kn().extractOpts;RA.exports=function(r,t){function a(f,c){var d=f["_"+c];d!==void 0&&(f[c]=d)}function n(f,c){var d=c.container?ure.nestedProperty(f,c.container).get():f;if(d)if(d.coloraxis)d._colorAx=t[d.coloraxis];else{var h=cre(d),m=h.auto;(m||h.min===void 0)&&a(d,c.min),(m||h.max===void 0)&&a(d,c.max),h.autocolorscale&&a(d,"colorscale")}}for(var i=0;i{"use strict";var FA=Xr(),Og=Re(),vre=Kn().extractOpts;NA.exports=function(r,t,a){var n=r._fullLayout,i=a.vals,l=a.containerStr,o=l?Og.nestedProperty(t,l).get():t,s=vre(o),u=s.auto!==!1,f=s.min,c=s.max,d=s.mid,h=function(){return Og.aggNums(Math.min,null,i)},m=function(){return Og.aggNums(Math.max,null,i)};if(f===void 0?f=h():u&&(o._colorAx&&FA(f)?f=Math.min(f,h()):f=h()),c===void 0?c=m():u&&(o._colorAx&&FA(c)?c=Math.max(c,m()):c=m()),u&&d!==void 0&&(c-d>d-f?f=d-(c-d):c-d=0?g=n.colorscale.sequential:g=n.colorscale.sequentialminus,s._sync("colorscale",g)}}});var Yg=J((Y3e,IA)=>{"use strict";var i1=Wo(),z0=Kn();IA.exports={moduleType:"component",name:"colorscale",attributes:Lf(),layoutAttributes:kg(),supplyLayoutDefaults:PA(),handleDefaults:R0(),crossTraceDefaults:zA(),calc:n1(),scales:i1.scales,defaultScale:i1.defaultScale,getScale:i1.get,isValidScale:i1.isValid,hasColorscale:z0.hasColorscale,extractOpts:z0.extractOpts,extractScale:z0.extractScale,flipScale:z0.flipScale,makeColorScaleFunc:z0.makeColorScaleFunc,makeColorScaleFuncFromTrace:z0.makeColorScaleFuncFromTrace}});var qn=J((U3e,HA)=>{"use strict";var BA=Re(),dre=hn().isTypedArraySpec;HA.exports={hasLines:function(e){return e.visible&&e.mode&&e.mode.indexOf("lines")!==-1},hasMarkers:function(e){return e.visible&&(e.mode&&e.mode.indexOf("markers")!==-1||e.type==="splom")},hasText:function(e){return e.visible&&e.mode&&e.mode.indexOf("text")!==-1},isBubble:function(e){var r=e.marker;return BA.isPlainObject(r)&&(BA.isArrayOrTypedArray(r.size)||dre(r.size))}}});var YA=J((G3e,OA)=>{"use strict";var hre=Xr();OA.exports=function(r,t){t||(t=2);var a=r.marker,n=a.sizeref||1,i=a.sizemin||0,l=a.sizemode==="area"?function(o){return Math.sqrt(o/n)}:function(o){return o/n};return function(o){var s=l(o/t);return hre(s)&&s>0?Math.max(s,i):0}}});var Ai=J(Ra=>{"use strict";var qf=Re();Ra.getSubplot=function(e){return e.subplot||e.xaxis+e.yaxis||e.geo};Ra.isTraceInSubplots=function(e,r){if(e.type==="splom"){for(var t=e.xaxes||[],a=e.yaxes||[],n=0;n=0&&t.index{var Ug={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},gre=/([astvzqmhlc])([^astvzqmhlc]*)/gi,bre=/-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/gi;function xre(e){let r=[];return e.replace(gre,(t,a,n)=>{let i=a.toLowerCase(),l=a,o=_re(n);for(i==="m"&&o.length>2&&(r.push([l,...o.splice(0,2)]),i="l",l=l==="m"?"l":"L");;){if(o.length===Ug[i])return r.push([l,...o]),"";if(o.length{"use strict";var wre=Gg(),$e=function(e,r){return r?Math.round(e*(r=Math.pow(10,r)))/r:Math.round(e)},qr="M0,0Z",XA=Math.sqrt(2),eo=Math.sqrt(3),Vg=Math.PI,Xg=Math.cos,Wg=Math.sin;KA.exports={circle:{n:0,f:function(e,r,t){if(Er(r))return qr;var a=$e(e,2),n="M"+a+",0A"+a+","+a+" 0 1,1 0,-"+a+"A"+a+","+a+" 0 0,1 "+a+",0Z";return t?Pr(r,t,n):n}},square:{n:1,f:function(e,r,t){if(Er(r))return qr;var a=$e(e,2);return Pr(r,t,"M"+a+","+a+"H-"+a+"V-"+a+"H"+a+"Z")}},diamond:{n:2,f:function(e,r,t){if(Er(r))return qr;var a=$e(e*1.3,2);return Pr(r,t,"M"+a+",0L0,"+a+"L-"+a+",0L0,-"+a+"Z")}},cross:{n:3,f:function(e,r,t){if(Er(r))return qr;var a=$e(e*.4,2),n=$e(e*1.2,2);return Pr(r,t,"M"+n+","+a+"H"+a+"V"+n+"H-"+a+"V"+a+"H-"+n+"V-"+a+"H-"+a+"V-"+n+"H"+a+"V-"+a+"H"+n+"Z")}},x:{n:4,f:function(e,r,t){if(Er(r))return qr;var a=$e(e*.8/XA,2),n="l"+a+","+a,i="l"+a+",-"+a,l="l-"+a+",-"+a,o="l-"+a+","+a;return Pr(r,t,"M0,"+a+n+i+l+i+l+o+l+o+n+o+n+"Z")}},"triangle-up":{n:5,f:function(e,r,t){if(Er(r))return qr;var a=$e(e*2/eo,2),n=$e(e/2,2),i=$e(e,2);return Pr(r,t,"M-"+a+","+n+"H"+a+"L0,-"+i+"Z")}},"triangle-down":{n:6,f:function(e,r,t){if(Er(r))return qr;var a=$e(e*2/eo,2),n=$e(e/2,2),i=$e(e,2);return Pr(r,t,"M-"+a+",-"+n+"H"+a+"L0,"+i+"Z")}},"triangle-left":{n:7,f:function(e,r,t){if(Er(r))return qr;var a=$e(e*2/eo,2),n=$e(e/2,2),i=$e(e,2);return Pr(r,t,"M"+n+",-"+a+"V"+a+"L-"+i+",0Z")}},"triangle-right":{n:8,f:function(e,r,t){if(Er(r))return qr;var a=$e(e*2/eo,2),n=$e(e/2,2),i=$e(e,2);return Pr(r,t,"M-"+n+",-"+a+"V"+a+"L"+i+",0Z")}},"triangle-ne":{n:9,f:function(e,r,t){if(Er(r))return qr;var a=$e(e*.6,2),n=$e(e*1.2,2);return Pr(r,t,"M-"+n+",-"+a+"H"+a+"V"+n+"Z")}},"triangle-se":{n:10,f:function(e,r,t){if(Er(r))return qr;var a=$e(e*.6,2),n=$e(e*1.2,2);return Pr(r,t,"M"+a+",-"+n+"V"+a+"H-"+n+"Z")}},"triangle-sw":{n:11,f:function(e,r,t){if(Er(r))return qr;var a=$e(e*.6,2),n=$e(e*1.2,2);return Pr(r,t,"M"+n+","+a+"H-"+a+"V-"+n+"Z")}},"triangle-nw":{n:12,f:function(e,r,t){if(Er(r))return qr;var a=$e(e*.6,2),n=$e(e*1.2,2);return Pr(r,t,"M-"+a+","+n+"V-"+a+"H"+n+"Z")}},pentagon:{n:13,f:function(e,r,t){if(Er(r))return qr;var a=$e(e*.951,2),n=$e(e*.588,2),i=$e(-e,2),l=$e(e*-.309,2),o=$e(e*.809,2);return Pr(r,t,"M"+a+","+l+"L"+n+","+o+"H-"+n+"L-"+a+","+l+"L0,"+i+"Z")}},hexagon:{n:14,f:function(e,r,t){if(Er(r))return qr;var a=$e(e,2),n=$e(e/2,2),i=$e(e*eo/2,2);return Pr(r,t,"M"+i+",-"+n+"V"+n+"L0,"+a+"L-"+i+","+n+"V-"+n+"L0,-"+a+"Z")}},hexagon2:{n:15,f:function(e,r,t){if(Er(r))return qr;var a=$e(e,2),n=$e(e/2,2),i=$e(e*eo/2,2);return Pr(r,t,"M-"+n+","+i+"H"+n+"L"+a+",0L"+n+",-"+i+"H-"+n+"L-"+a+",0Z")}},octagon:{n:16,f:function(e,r,t){if(Er(r))return qr;var a=$e(e*.924,2),n=$e(e*.383,2);return Pr(r,t,"M-"+n+",-"+a+"H"+n+"L"+a+",-"+n+"V"+n+"L"+n+","+a+"H-"+n+"L-"+a+","+n+"V-"+n+"Z")}},star:{n:17,f:function(e,r,t){if(Er(r))return qr;var a=e*1.4,n=$e(a*.225,2),i=$e(a*.951,2),l=$e(a*.363,2),o=$e(a*.588,2),s=$e(-a,2),u=$e(a*-.309,2),f=$e(a*.118,2),c=$e(a*.809,2),d=$e(a*.382,2);return Pr(r,t,"M"+n+","+u+"H"+i+"L"+l+","+f+"L"+o+","+c+"L0,"+d+"L-"+o+","+c+"L-"+l+","+f+"L-"+i+","+u+"H-"+n+"L0,"+s+"Z")}},hexagram:{n:18,f:function(e,r,t){if(Er(r))return qr;var a=$e(e*.66,2),n=$e(e*.38,2),i=$e(e*.76,2);return Pr(r,t,"M-"+i+",0l-"+n+",-"+a+"h"+i+"l"+n+",-"+a+"l"+n+","+a+"h"+i+"l-"+n+","+a+"l"+n+","+a+"h-"+i+"l-"+n+","+a+"l-"+n+",-"+a+"h-"+i+"Z")}},"star-triangle-up":{n:19,f:function(e,r,t){if(Er(r))return qr;var a=$e(e*eo*.8,2),n=$e(e*.8,2),i=$e(e*1.6,2),l=$e(e*4,2),o="A "+l+","+l+" 0 0 1 ";return Pr(r,t,"M-"+a+","+n+o+a+","+n+o+"0,-"+i+o+"-"+a+","+n+"Z")}},"star-triangle-down":{n:20,f:function(e,r,t){if(Er(r))return qr;var a=$e(e*eo*.8,2),n=$e(e*.8,2),i=$e(e*1.6,2),l=$e(e*4,2),o="A "+l+","+l+" 0 0 1 ";return Pr(r,t,"M"+a+",-"+n+o+"-"+a+",-"+n+o+"0,"+i+o+a+",-"+n+"Z")}},"star-square":{n:21,f:function(e,r,t){if(Er(r))return qr;var a=$e(e*1.1,2),n=$e(e*2,2),i="A "+n+","+n+" 0 0 1 ";return Pr(r,t,"M-"+a+",-"+a+i+"-"+a+","+a+i+a+","+a+i+a+",-"+a+i+"-"+a+",-"+a+"Z")}},"star-diamond":{n:22,f:function(e,r,t){if(Er(r))return qr;var a=$e(e*1.4,2),n=$e(e*1.9,2),i="A "+n+","+n+" 0 0 1 ";return Pr(r,t,"M-"+a+",0"+i+"0,"+a+i+a+",0"+i+"0,-"+a+i+"-"+a+",0Z")}},"diamond-tall":{n:23,f:function(e,r,t){if(Er(r))return qr;var a=$e(e*.7,2),n=$e(e*1.4,2);return Pr(r,t,"M0,"+n+"L"+a+",0L0,-"+n+"L-"+a+",0Z")}},"diamond-wide":{n:24,f:function(e,r,t){if(Er(r))return qr;var a=$e(e*1.4,2),n=$e(e*.7,2);return Pr(r,t,"M0,"+n+"L"+a+",0L0,-"+n+"L-"+a+",0Z")}},hourglass:{n:25,f:function(e,r,t){if(Er(r))return qr;var a=$e(e,2);return Pr(r,t,"M"+a+","+a+"H-"+a+"L"+a+",-"+a+"H-"+a+"Z")},noDot:!0},bowtie:{n:26,f:function(e,r,t){if(Er(r))return qr;var a=$e(e,2);return Pr(r,t,"M"+a+","+a+"V-"+a+"L-"+a+","+a+"V-"+a+"Z")},noDot:!0},"circle-cross":{n:27,f:function(e,r,t){if(Er(r))return qr;var a=$e(e,2);return Pr(r,t,"M0,"+a+"V-"+a+"M"+a+",0H-"+a+"M"+a+",0A"+a+","+a+" 0 1,1 0,-"+a+"A"+a+","+a+" 0 0,1 "+a+",0Z")},needLine:!0,noDot:!0},"circle-x":{n:28,f:function(e,r,t){if(Er(r))return qr;var a=$e(e,2),n=$e(e/XA,2);return Pr(r,t,"M"+n+","+n+"L-"+n+",-"+n+"M"+n+",-"+n+"L-"+n+","+n+"M"+a+",0A"+a+","+a+" 0 1,1 0,-"+a+"A"+a+","+a+" 0 0,1 "+a+",0Z")},needLine:!0,noDot:!0},"square-cross":{n:29,f:function(e,r,t){if(Er(r))return qr;var a=$e(e,2);return Pr(r,t,"M0,"+a+"V-"+a+"M"+a+",0H-"+a+"M"+a+","+a+"H-"+a+"V-"+a+"H"+a+"Z")},needLine:!0,noDot:!0},"square-x":{n:30,f:function(e,r,t){if(Er(r))return qr;var a=$e(e,2);return Pr(r,t,"M"+a+","+a+"L-"+a+",-"+a+"M"+a+",-"+a+"L-"+a+","+a+"M"+a+","+a+"H-"+a+"V-"+a+"H"+a+"Z")},needLine:!0,noDot:!0},"diamond-cross":{n:31,f:function(e,r,t){if(Er(r))return qr;var a=$e(e*1.3,2);return Pr(r,t,"M"+a+",0L0,"+a+"L-"+a+",0L0,-"+a+"ZM0,-"+a+"V"+a+"M-"+a+",0H"+a)},needLine:!0,noDot:!0},"diamond-x":{n:32,f:function(e,r,t){if(Er(r))return qr;var a=$e(e*1.3,2),n=$e(e*.65,2);return Pr(r,t,"M"+a+",0L0,"+a+"L-"+a+",0L0,-"+a+"ZM-"+n+",-"+n+"L"+n+","+n+"M-"+n+","+n+"L"+n+",-"+n)},needLine:!0,noDot:!0},"cross-thin":{n:33,f:function(e,r,t){if(Er(r))return qr;var a=$e(e*1.4,2);return Pr(r,t,"M0,"+a+"V-"+a+"M"+a+",0H-"+a)},needLine:!0,noDot:!0,noFill:!0},"x-thin":{n:34,f:function(e,r,t){if(Er(r))return qr;var a=$e(e,2);return Pr(r,t,"M"+a+","+a+"L-"+a+",-"+a+"M"+a+",-"+a+"L-"+a+","+a)},needLine:!0,noDot:!0,noFill:!0},asterisk:{n:35,f:function(e,r,t){if(Er(r))return qr;var a=$e(e*1.2,2),n=$e(e*.85,2);return Pr(r,t,"M0,"+a+"V-"+a+"M"+a+",0H-"+a+"M"+n+","+n+"L-"+n+",-"+n+"M"+n+",-"+n+"L-"+n+","+n)},needLine:!0,noDot:!0,noFill:!0},hash:{n:36,f:function(e,r,t){if(Er(r))return qr;var a=$e(e/2,2),n=$e(e,2);return Pr(r,t,"M"+a+","+n+"V-"+n+"M"+(a-n)+",-"+n+"V"+n+"M"+n+","+a+"H-"+n+"M-"+n+","+(a-n)+"H"+n)},needLine:!0,noFill:!0},"y-up":{n:37,f:function(e,r,t){if(Er(r))return qr;var a=$e(e*1.2,2),n=$e(e*1.6,2),i=$e(e*.8,2);return Pr(r,t,"M-"+a+","+i+"L0,0M"+a+","+i+"L0,0M0,-"+n+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-down":{n:38,f:function(e,r,t){if(Er(r))return qr;var a=$e(e*1.2,2),n=$e(e*1.6,2),i=$e(e*.8,2);return Pr(r,t,"M-"+a+",-"+i+"L0,0M"+a+",-"+i+"L0,0M0,"+n+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-left":{n:39,f:function(e,r,t){if(Er(r))return qr;var a=$e(e*1.2,2),n=$e(e*1.6,2),i=$e(e*.8,2);return Pr(r,t,"M"+i+","+a+"L0,0M"+i+",-"+a+"L0,0M-"+n+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-right":{n:40,f:function(e,r,t){if(Er(r))return qr;var a=$e(e*1.2,2),n=$e(e*1.6,2),i=$e(e*.8,2);return Pr(r,t,"M-"+i+","+a+"L0,0M-"+i+",-"+a+"L0,0M"+n+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"line-ew":{n:41,f:function(e,r,t){if(Er(r))return qr;var a=$e(e*1.4,2);return Pr(r,t,"M"+a+",0H-"+a)},needLine:!0,noDot:!0,noFill:!0},"line-ns":{n:42,f:function(e,r,t){if(Er(r))return qr;var a=$e(e*1.4,2);return Pr(r,t,"M0,"+a+"V-"+a)},needLine:!0,noDot:!0,noFill:!0},"line-ne":{n:43,f:function(e,r,t){if(Er(r))return qr;var a=$e(e,2);return Pr(r,t,"M"+a+",-"+a+"L-"+a+","+a)},needLine:!0,noDot:!0,noFill:!0},"line-nw":{n:44,f:function(e,r,t){if(Er(r))return qr;var a=$e(e,2);return Pr(r,t,"M"+a+","+a+"L-"+a+",-"+a)},needLine:!0,noDot:!0,noFill:!0},"arrow-up":{n:45,f:function(e,r,t){if(Er(r))return qr;var a=$e(e,2),n=$e(e*2,2);return Pr(r,t,"M0,0L-"+a+","+n+"H"+a+"Z")},backoff:1,noDot:!0},"arrow-down":{n:46,f:function(e,r,t){if(Er(r))return qr;var a=$e(e,2),n=$e(e*2,2);return Pr(r,t,"M0,0L-"+a+",-"+n+"H"+a+"Z")},noDot:!0},"arrow-left":{n:47,f:function(e,r,t){if(Er(r))return qr;var a=$e(e*2,2),n=$e(e,2);return Pr(r,t,"M0,0L"+a+",-"+n+"V"+n+"Z")},noDot:!0},"arrow-right":{n:48,f:function(e,r,t){if(Er(r))return qr;var a=$e(e*2,2),n=$e(e,2);return Pr(r,t,"M0,0L-"+a+",-"+n+"V"+n+"Z")},noDot:!0},"arrow-bar-up":{n:49,f:function(e,r,t){if(Er(r))return qr;var a=$e(e,2),n=$e(e*2,2);return Pr(r,t,"M-"+a+",0H"+a+"M0,0L-"+a+","+n+"H"+a+"Z")},backoff:1,needLine:!0,noDot:!0},"arrow-bar-down":{n:50,f:function(e,r,t){if(Er(r))return qr;var a=$e(e,2),n=$e(e*2,2);return Pr(r,t,"M-"+a+",0H"+a+"M0,0L-"+a+",-"+n+"H"+a+"Z")},needLine:!0,noDot:!0},"arrow-bar-left":{n:51,f:function(e,r,t){if(Er(r))return qr;var a=$e(e*2,2),n=$e(e,2);return Pr(r,t,"M0,-"+n+"V"+n+"M0,0L"+a+",-"+n+"V"+n+"Z")},needLine:!0,noDot:!0},"arrow-bar-right":{n:52,f:function(e,r,t){if(Er(r))return qr;var a=$e(e*2,2),n=$e(e,2);return Pr(r,t,"M0,-"+n+"V"+n+"M0,0L-"+a+",-"+n+"V"+n+"Z")},needLine:!0,noDot:!0},arrow:{n:53,f:function(e,r,t){if(Er(r))return qr;var a=Vg/2.5,n=2*e*Xg(a),i=2*e*Wg(a);return Pr(r,t,"M0,0L"+-n+","+i+"L"+n+","+i+"Z")},backoff:.9,noDot:!0},"arrow-wide":{n:54,f:function(e,r,t){if(Er(r))return qr;var a=Vg/4,n=2*e*Xg(a),i=2*e*Wg(a);return Pr(r,t,"M0,0L"+-n+","+i+"A "+2*e+","+2*e+" 0 0 1 "+n+","+i+"Z")},backoff:.4,noDot:!0}};function Er(e){return e===null}var WA,ZA,JA,$A;function Pr(e,r,t){if((!e||e%360===0)&&!r)return t;if(JA===e&&$A===r&&WA===t)return ZA;JA=e,$A=r,WA=t;function a(y,x){var w=Xg(y),T=Wg(y),b=x[0],M=x[1]+(r||0);return[b*w-M*T,b*T+M*w]}for(var n=e/180*Vg,i=0,l=0,o=wre(t),s="",u=0;u{"use strict";var ga=Or(),it=Re(),Mre=it.numberFormat,ro=Xr(),o1=kr(),ca=Nr(),Tre=Yg(),Pf=it.strTranslate,s1=Ta(),Are=(ns(),Xe(as)),kre=(Oa(),Xe(Ha)),Cre=kre.LINE_SPACING,sk=(b2(),Xe(g2)).DESELECTDIM,Sre=qn(),Dre=YA(),Lre=Ai().appendArrayPointValue,er={};gk.exports=er;er.font=function(e,r){var t=r.variant,a=r.style,n=r.weight,i=r.color,l=r.size,o=r.family,s=r.shadow,u=r.lineposition,f=r.textcase;o&&e.style("font-family",o),l+1&&e.style("font-size",l+"px"),i&&e.call(ca.fill,i),n&&e.style("font-weight",n),a&&e.style("font-style",a),t&&e.style("font-variant",t),f&&e.style("text-transform",Zg(Ere(f))),s&&e.style("text-shadow",s==="auto"?s1.makeTextShadow(ca.contrast(i)):Zg(s)),u&&e.style("text-decoration-line",Zg(Pre(u)))};function Zg(e){return e==="none"?void 0:e}var qre={normal:"none",lower:"lowercase",upper:"uppercase","word caps":"capitalize"};function Ere(e){return qre[e]}function Pre(e){return e.replace("under","underline").replace("over","overline").replace("through","line-through").split("+").join(" ")}er.setPosition=function(e,r,t){e.attr("x",r).attr("y",t)};er.setSize=function(e,r,t){e.attr("width",r).attr("height",t)};er.setRect=function(e,r,t,a,n){e.call(er.setPosition,r,t).call(er.setSize,a,n)};er.translatePoint=function(e,r,t,a){var n=t.c2p(e.x),i=a.c2p(e.y);if(ro(n)&&ro(i)&&r.node())r.node().nodeName==="text"?r.attr("x",n).attr("y",i):r.attr("transform",Pf(n,i));else return!1;return!0};er.translatePoints=function(e,r,t){e.each(function(a){var n=ga.select(this);er.translatePoint(a,n,r,t)})};er.hideOutsideRangePoint=function(e,r,t,a,n,i){r.attr("display",t.isPtWithinRange(e,n)&&a.isPtWithinRange(e,i)?null:"none")};er.hideOutsideRangePoints=function(e,r){if(r._hasClipOnAxisFalse){var t=r.xaxis,a=r.yaxis;e.each(function(n){var i=n[0].trace,l=i.xcalendar,o=i.ycalendar,s=o1.traceIs(i,"bar-like")?".bartext":".point,.textpoint";e.selectAll(s).each(function(u){er.hideOutsideRangePoint(u,ga.select(this),t,a,l,o)})})}};er.crispRound=function(e,r,t){return!r||!ro(r)?t||0:e._context.staticPlot?r:r<1?1:Math.round(r)};er.singleLineStyle=function(e,r,t,a,n){r.style("fill","none");var i=(((e||[])[0]||{}).trace||{}).line||{},l=t||i.width||0,o=n||i.dash||"";ca.stroke(r,a||i.color),er.dashLine(r,o,l)};er.lineGroupStyle=function(e,r,t,a){e.style("fill","none").each(function(n){var i=(((n||[])[0]||{}).trace||{}).line||{},l=r||i.width||0,o=a||i.dash||"";ga.select(this).call(ca.stroke,t||i.color).call(er.dashLine,o,l)})};er.dashLine=function(e,r,t){t=+t||0,r=er.dashStyle(r,t),e.style({"stroke-dasharray":r,"stroke-width":t+"px"})};er.dashStyle=function(e,r){r=+r||1;var t=Math.max(r,3);return e==="solid"?e="":e==="dot"?e=t+"px,"+t+"px":e==="dash"?e=3*t+"px,"+3*t+"px":e==="longdash"?e=5*t+"px,"+5*t+"px":e==="dashdot"?e=3*t+"px,"+t+"px,"+t+"px,"+t+"px":e==="longdashdot"&&(e=5*t+"px,"+2*t+"px,"+t+"px,"+2*t+"px"),e};function uk(e,r,t,a){var n=r.fillpattern,i=r.fillgradient,l=er.getPatternAttr,o=n&&(l(n.shape,0,"")||l(n.path,0,""));if(o){var s=l(n.bgcolor,0,null),u=l(n.fgcolor,0,null),f=n.fgopacity,c=l(n.size,0,8),d=l(n.solidity,0,.3),h=r.uid;er.pattern(e,"point",t,h,o,c,d,void 0,n.fillmode,s,u,f)}else if(i&&i.type!=="none"){var m=i.type,g="scatterfill-"+r.uid;if(a&&(g="legendfill-"+r.uid),!a&&(i.start!==void 0||i.stop!==void 0)){var y,x;m==="horizontal"?(y={x:i.start,y:0},x={x:i.stop,y:0}):m==="vertical"&&(y={x:0,y:i.start},x={x:0,y:i.stop}),y.x=r._xA.c2p(y.x===void 0?r._extremes.x.min[0].val:y.x,!0),y.y=r._yA.c2p(y.y===void 0?r._extremes.y.min[0].val:y.y,!0),x.x=r._xA.c2p(x.x===void 0?r._extremes.x.max[0].val:x.x,!0),x.y=r._yA.c2p(x.y===void 0?r._extremes.y.max[0].val:x.y,!0),e.call(vk,t,g,"linear",i.colorscale,"fill",y,x,!0,!1)}else m==="horizontal"&&(m=m+"reversed"),e.call(er.gradient,t,g,m,i.colorscale,"fill")}else r.fillcolor&&e.call(ca.fill,r.fillcolor)}er.singleFillStyle=function(e,r){var t=ga.select(e.node()),a=t.data(),n=((a[0]||[])[0]||{}).trace||{};uk(e,n,r,!1)};er.fillGroupStyle=function(e,r,t){e.style("stroke-width",0).each(function(a){var n=ga.select(this);a[0].trace&&uk(n,a[0].trace,r,t)})};var QA=jA();er.symbolNames=[];er.symbolFuncs=[];er.symbolBackOffs=[];er.symbolNeedLines={};er.symbolNoDot={};er.symbolNoFill={};er.symbolList=[];Object.keys(QA).forEach(function(e){var r=QA[e],t=r.n;er.symbolList.push(t,String(t),e,t+100,String(t+100),e+"-open"),er.symbolNames[t]=e,er.symbolFuncs[t]=r.f,er.symbolBackOffs[t]=r.backoff||0,r.needLine&&(er.symbolNeedLines[t]=!0),r.noDot?er.symbolNoDot[t]=!0:er.symbolList.push(t+200,String(t+200),e+"-dot",t+300,String(t+300),e+"-open-dot"),r.noFill&&(er.symbolNoFill[t]=!0)});var Rre=er.symbolNames.length,zre="M0,0.5L0.5,0L0,-0.5L-0.5,0Z";er.symbolNumber=function(e){if(ro(e))e=+e;else if(typeof e=="string"){var r=0;e.indexOf("-open")>0&&(r=100,e=e.replace("-open","")),e.indexOf("-dot")>0&&(r+=200,e=e.replace("-dot","")),e=er.symbolNames.indexOf(e),e>=0&&(e+=r)}return e%100>=Rre||e>=400?0:Math.floor(Math.max(e,0))};function fk(e,r,t,a){var n=e%100;return er.symbolFuncs[n](r,t,a)+(e>=200?zre:"")}var ek=Mre("~f"),ck={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}};er.gradient=function(e,r,t,a,n,i){var l=ck[a];return vk(e,r,t,l.type,n,i,l.start,l.stop,!1,l.reversed)};function vk(e,r,t,a,n,i,l,o,s,u){var f=n.length,c;a==="linear"?c={node:"linearGradient",attrs:{x1:l.x,y1:l.y,x2:o.x,y2:o.y,gradientUnits:s?"userSpaceOnUse":"objectBoundingBox"},reversed:u}:a==="radial"&&(c={node:"radialGradient",reversed:u});for(var d=new Array(f),h=0;h=0&&e.i===void 0&&(e.i=i.i),r.style("opacity",a.selectedOpacityFn?a.selectedOpacityFn(e):e.mo===void 0?l.opacity:e.mo),a.ms2mrc){var s;e.ms==="various"||l.size==="various"?s=3:s=a.ms2mrc(e.ms),e.mrc=s,a.selectedSizeFn&&(s=e.mrc=a.selectedSizeFn(e));var u=er.symbolNumber(e.mx||l.symbol)||0;e.om=u%200>=100;var f=r3(e,t),c=e3(e,t);r.attr("d",fk(u,s,f,c))}var d=!1,h,m,g;if(e.so)g=o.outlierwidth,m=o.outliercolor,h=l.outliercolor;else{var y=(o||{}).width;g=(e.mlw+1||y+1||(e.trace?(e.trace.marker.line||{}).width:0)+1)-1||0,"mlc"in e?m=e.mlcc=a.lineScale(e.mlc):it.isArrayOrTypedArray(o.color)?m=ca.defaultLine:m=o.color,it.isArrayOrTypedArray(l.color)&&(h=ca.defaultLine,d=!0),"mc"in e?h=e.mcc=a.markerScale(e.mc):h=l.color||l.colors||"rgba(0,0,0,0)",a.selectedColorFn&&(h=a.selectedColorFn(e))}let x=e.mld||(o||{}).dash;if(x&&er.dashLine(r,x,g),e.om)r.call(ca.stroke,h).style({"stroke-width":(g||1)+"px",fill:"none"});else{r.style("stroke-width",(e.isBlank?0:g)+"px");var w=l.gradient,T=e.mgt;T?d=!0:T=w&&w.type,it.isArrayOrTypedArray(T)&&(T=T[0],ck[T]||(T=0));var b=l.pattern,M=er.getPatternAttr,S=b&&(M(b.shape,e.i,"")||M(b.path,e.i,""));if(T&&T!=="none"){var A=e.mgc;A?d=!0:A=w.color;var L=t.uid;d&&(L+="-"+e.i),er.gradient(r,n,L,T,[[0,A],[1,h]],"fill")}else if(S){var q=!1,P=b.fgcolor;!P&&i&&i.color&&(P=i.color,q=!0);var z=M(P,e.i,i&&i.color||null),N=M(b.bgcolor,e.i,null),I=b.fgopacity,B=M(b.size,e.i,8),H=M(b.solidity,e.i,.3);q=q||e.mcc||it.isArrayOrTypedArray(b.shape)||it.isArrayOrTypedArray(b.path)||it.isArrayOrTypedArray(b.bgcolor)||it.isArrayOrTypedArray(b.fgcolor)||it.isArrayOrTypedArray(b.size)||it.isArrayOrTypedArray(b.solidity);var Y=t.uid;q&&(Y+="-"+e.i),er.pattern(r,"point",n,Y,S,B,H,e.mcc,b.fillmode,N,z,I)}else it.isArrayOrTypedArray(h)?ca.fill(r,h[e.i]):ca.fill(r,h);g&&ca.stroke(r,m)}};er.makePointStyleFns=function(e){var r={},t=e.marker;return r.markerScale=er.tryColorscale(t,""),r.lineScale=er.tryColorscale(t,"line"),o1.traceIs(e,"symbols")&&(r.ms2mrc=Sre.isBubble(e)?Dre(e):function(){return(t.size||6)/2}),e.selectedpoints&&it.extendFlat(r,er.makeSelectedPointStyleFns(e)),r};er.makeSelectedPointStyleFns=function(e){var r={},t=e.selected||{},a=e.unselected||{},n=e.marker||{},i=t.marker||{},l=a.marker||{},o=n.opacity,s=i.opacity,u=l.opacity,f=s!==void 0,c=u!==void 0;(it.isArrayOrTypedArray(o)||f||c)&&(r.selectedOpacityFn=function(b){var M=b.mo===void 0?n.opacity:b.mo;return b.selected?f?s:M:c?u:sk*M});var d=n.color,h=i.color,m=l.color;(h||m)&&(r.selectedColorFn=function(b){var M=b.mcc||d;return b.selected?h||M:m||M});var g=n.size,y=i.size,x=l.size,w=y!==void 0,T=x!==void 0;return o1.traceIs(e,"symbols")&&(w||T)&&(r.selectedSizeFn=function(b){var M=b.mrc||g/2;return b.selected?w?y/2:M:T?x/2:M}),r};er.makeSelectedTextStyleFns=function(e){var r={},t=e.selected||{},a=e.unselected||{},n=e.textfont||{},i=t.textfont||{},l=a.textfont||{},o=n.color,s=i.color,u=l.color;return r.selectedTextColorFn=function(f){var c=f.tc||o;return f.selected?s||c:u||(s?c:ca.addOpacity(c,sk))},r};er.selectedPointStyle=function(e,r){if(!(!e.size()||!r.selectedpoints)){var t=er.makeSelectedPointStyleFns(r),a=r.marker||{},n=[];t.selectedOpacityFn&&n.push(function(i,l){i.style("opacity",t.selectedOpacityFn(l))}),t.selectedColorFn&&n.push(function(i,l){ca.fill(i,t.selectedColorFn(l))}),t.selectedSizeFn&&n.push(function(i,l){var o=l.mx||a.symbol||0,s=t.selectedSizeFn(l);i.attr("d",fk(er.symbolNumber(o),s,r3(l,r),e3(l,r))),l.mrc2=s}),n.length&&e.each(function(i){for(var l=ga.select(this),o=0;o0?t:0}er.textPointStyle=function(e,r,t){if(e.size()){var a;if(r.selectedpoints){var n=er.makeSelectedTextStyleFns(r);a=n.selectedTextColorFn}var i=r.texttemplate,l=t._fullLayout;e.each(function(o){var s=ga.select(this),u=i?it.extractOption(o,r,"txt","texttemplate"):it.extractOption(o,r,"tx","text");if(!u&&u!==0){s.remove();return}if(i){var f=r._module.formatLabels,c=f?f(o,r,l):{},d={};Lre(d,r,o.i),u=it.texttemplateString({data:[d,o,r._meta],fallback:r.texttemplatefallback,labels:c,locale:l._d3locale,template:u})}var h=o.tp||r.textposition,m=hk(o,r),g=a?a(o):o.tc||r.textfont.color;s.call(er.font,{family:o.tf||r.textfont.family,weight:o.tw||r.textfont.weight,style:o.ty||r.textfont.style,variant:o.tv||r.textfont.variant,textcase:o.tC||r.textfont.textcase,lineposition:o.tE||r.textfont.lineposition,shadow:o.tS||r.textfont.shadow,size:m,color:g}).text(u).call(s1.convertToTspans,t).call(dk,h,m,o.mrc)})}};er.selectedTextStyle=function(e,r){if(!(!e.size()||!r.selectedpoints)){var t=er.makeSelectedTextStyleFns(r);e.each(function(a){var n=ga.select(this),i=t.selectedTextColorFn(a),l=a.tp||r.textposition,o=hk(a,r);ca.fill(n,i);var s=o1.traceIs(r,"bar-like");dk(n,l,o,a.mrc2||a.mrc,s)})}};var rk=.5;er.smoothopen=function(e,r){if(e.length<3)return"M"+e.join("L");var t="M"+e[0],a=[],n;for(n=1;n=s||b>=f&&b<=s)&&(M<=c&&M>=u||M>=c&&M<=u)&&(e=[b,M])}return e}er.applyBackoff=yk;er.makeTester=function(){var e=it.ensureSingleById(ga.select("body"),"svg","js-plotly-tester",function(t){t.attr(Are.svgAttrs).style({position:"absolute",left:"-10000px",top:"-10000px",width:"9000px",height:"9000px","z-index":"1"})}),r=it.ensureSingle(e,"path","js-reference-point",function(t){t.attr("d","M0,0H1V1H0Z").style({"stroke-width":0,fill:"black"})});er.tester=e,er.testref=r};er.savedBBoxes={};var $g=0,Ire=1e4;er.bBox=function(e,r,t){t||(t=tk(e));var a;if(t){if(a=er.savedBBoxes[t],a)return it.extendFlat({},a)}else if(e.childNodes.length===1){var n=e.childNodes[0];if(t=tk(n),t){var i=+n.getAttribute("x")||0,l=+n.getAttribute("y")||0,o=n.getAttribute("transform");if(!o){var s=er.bBox(n,!1,t);return i&&(s.left+=i,s.right+=i),l&&(s.top+=l,s.bottom+=l),s}if(t+="~"+i+"~"+l+"~"+o,a=er.savedBBoxes[t],a)return it.extendFlat({},a)}}var u,f;r?u=e:(f=er.tester.node(),u=e.cloneNode(!0),f.appendChild(u)),ga.select(u).attr("transform",null).call(s1.positionText,0,0);var c=u.getBoundingClientRect(),d=er.testref.node().getBoundingClientRect();r||f.removeChild(u);var h={height:c.height,width:c.width,left:c.left-d.left,top:c.top-d.top,right:c.right-d.left,bottom:c.bottom-d.top};return $g>=Ire&&(er.savedBBoxes={},$g=0),t&&(er.savedBBoxes[t]=h),$g++,it.extendFlat({},h)};function tk(e){var r=e.getAttribute("data-unformatted");if(r!==null)return r+e.getAttribute("data-math")+e.getAttribute("text-anchor")+e.getAttribute("style")}er.setClipUrl=function(e,r,t){e.attr("clip-path",Qg(r,t))};function Qg(e,r){if(!e)return null;var t=r._context,a=t._exportedPlot?"":t._baseUrl||"";return a?"url('"+a+"#"+e+"')":"url(#"+e+")"}er.getTranslate=function(e){var r=/.*\btranslate\((-?\d*\.?\d*)[^-\d]*(-?\d*\.?\d*)[^\d].*/,t=e.attr?"attr":"getAttribute",a=e[t]("transform")||"",n=a.replace(r,function(i,l,o){return[l,o].join(" ")}).split(" ");return{x:+n[0]||0,y:+n[1]||0}};er.setTranslate=function(e,r,t){var a=/(\btranslate\(.*?\);?)/,n=e.attr?"attr":"getAttribute",i=e.attr?"attr":"setAttribute",l=e[n]("transform")||"";return r=r||0,t=t||0,l=l.replace(a,"").trim(),l+=Pf(r,t),l=l.trim(),e[i]("transform",l),l};er.getScale=function(e){var r=/.*\bscale\((\d*\.?\d*)[^\d]*(\d*\.?\d*)[^\d].*/,t=e.attr?"attr":"getAttribute",a=e[t]("transform")||"",n=a.replace(r,function(i,l,o){return[l,o].join(" ")}).split(" ");return{x:+n[0]||1,y:+n[1]||1}};er.setScale=function(e,r,t){var a=/(\bscale\(.*?\);?)/,n=e.attr?"attr":"getAttribute",i=e.attr?"attr":"setAttribute",l=e[n]("transform")||"";return r=r||1,t=t||1,l=l.replace(a,"").trim(),l+="scale("+r+","+t+")",l=l.trim(),e[i]("transform",l),l};var Bre=/\s*sc.*/;er.setPointGroupScale=function(e,r,t){if(r=r||1,t=t||1,!!e){var a=r===1&&t===1?"":"scale("+r+","+t+")";e.each(function(){var n=(this.getAttribute("transform")||"").replace(Bre,"");n+=a,n=n.trim(),this.setAttribute("transform",n)})}};var Hre=/translate\([^)]*\)\s*$/;er.setTextPointsScale=function(e,r,t){e&&e.each(function(){var a,n=ga.select(this),i=n.select("text");if(i.node()){var l=parseFloat(i.attr("x")||0),o=parseFloat(i.attr("y")||0),s=(n.attr("transform")||"").match(Hre);r===1&&t===1?a=[]:a=[Pf(l,o),"scale("+r+","+t+")",Pf(-l,-o)],s&&a.push(s),n.attr("transform",a.join(""))}})};function e3(e,r){var t;return e&&(t=e.mf),t===void 0&&(t=r.marker&&r.marker.standoff||0),!r._geo&&!r._xA?-t:t}er.getMarkerStandoff=e3;var Ef=Math.atan2,os=Math.cos,N0=Math.sin;function ak(e,r){var t=r[0],a=r[1];return[t*os(e)-a*N0(e),t*N0(e)+a*os(e)]}var nk,ik,lk,ok,Kg,jg;function r3(e,r){var t=e.ma;t===void 0&&(t=r.marker.angle,(!ro(t)||it.isArrayOrTypedArray(t))&&(t=0));var a,n,i=r.marker.angleref;if(i==="previous"||i==="north"){if(r._geo){var l=r._geo.project(e.lonlat);a=l[0],n=l[1]}else{var o=r._xA,s=r._yA;if(o&&s)a=o.c2p(e.x),n=s.c2p(e.y);else return 90}if(r._geo){var u=e.lonlat[0],f=e.lonlat[1],c=r._geo.project([u,f+1e-5]),d=r._geo.project([u+1e-5,f]),h=Ef(d[1]-n,d[0]-a),m=Ef(c[1]-n,c[0]-a),g;if(i==="north")g=t/180*Math.PI;else if(i==="previous"){var y=u/180*Math.PI,x=f/180*Math.PI,w=nk/180*Math.PI,T=ik/180*Math.PI,b=w-y,M=os(T)*N0(b),S=N0(T)*os(x)-os(T)*N0(x)*os(b);g=-Ef(M,S)-Math.PI,nk=u,ik=f}var A=ak(h,[os(g),0]),L=ak(m,[N0(g),0]);t=Ef(A[1]+L[1],A[0]+L[0])/Math.PI*180,i==="previous"&&!(jg===r.uid&&e.i===Kg+1)&&(t=null)}if(i==="previous"&&!r._geo)if(jg===r.uid&&e.i===Kg+1&&ro(a)&&ro(n)){var q=a-lk,P=n-ok,z=r.line&&r.line.shape||"",N=z.slice(z.length-1);N==="h"&&(P=0),N==="v"&&(q=0),t+=Ef(P,q)/Math.PI*180+90}else t=null}return lk=a,ok=n,Kg=e.i,jg=r.uid,t}er.getMarkerAngle=r3});var Rf=J((J3e,wk)=>{"use strict";var I0=Or(),Ore=Xr(),Yre=Qt(),t3=kr(),fs=Re(),bk=fs.strTranslate,u1=lt(),f1=Nr(),B0=Ta(),xk=(b2(),Xe(g2)),Ure=(Oa(),Xe(Ha)).OPPOSITE_SIDE,_k=/ [XY][0-9]* /,a3=1.6,n3=1.6;function Gre(e,r,t){var a=e._fullLayout,n=t.propContainer,i=t.propName,l=t.placeholder,o=t.traceIndex,s=t.avoid||{},u=t.attributes,f=t.transform,c=t.containerGroup,d=1,h=n.title,m=(h&&h.text?h.text:"").trim(),g=!1,y=h&&h.font?h.font:{},x=y.family,w=y.size,T=y.color,b=y.weight,M=y.style,S=y.variant,A=y.textcase,L=y.lineposition,q=y.shadow,P=t.subtitlePropName,z=!!P,N=t.subtitlePlaceholder,I=(n.title||{}).subtitle||{text:"",font:{}},B=(I.text||"").trim(),H=!1,Y=1,G=I.font,O=G.family,X=G.size,Z=G.color,W=G.weight,ee=G.style,ne=G.variant,fe=G.textcase,we=G.lineposition,j=G.shadow,_e;i==="title.text"?_e="titleText":i.indexOf("axis")!==-1?_e="axisTitleText":i.indexOf("colorbar")!==-1&&(_e="colorbarTitleText");var ue=e._context.edits[_e];function Me(je,Ze){return je===void 0||Ze===void 0?!1:je.replace(_k," % ")===Ze.replace(_k," % ")}m===""?d=0:Me(m,l)&&(ue||(m=""),d=.2,g=!0),z&&(B===""?Y=0:Me(B,N)&&(ue||(B=""),Y=.2,H=!0)),t._meta?m=fs.templateString(m,t._meta):a._meta&&(m=fs.templateString(m,a._meta));var ge=m||B||ue,ce;c||(c=fs.ensureSingle(a._infolayer,"g","g-"+r),ce=a._hColorbarMoveTitle);var Te=c.selectAll("text."+r).data(ge?[0]:[]);Te.enter().append("text"),Te.text(m).attr("class",r),Te.exit().remove();var ze=null,be=r+"-subtitle",qe=B||ue;if(z&&(ze=c.selectAll("text."+be).data(qe?[0]:[]),ze.enter().append("text"),ze.text(B).attr("class",be),ze.exit().remove()),!ge)return c;function Ce(je,Ze){fs.syncOrAsync([De,Ee],{title:je,subtitle:Ze})}function De(je){var Ze=je.title,Ae=je.subtitle,Pe;!f&&ce&&(f={}),f?(Pe="",f.rotate&&(Pe+="rotate("+[f.rotate,u.x,u.y]+")"),(f.offset||ce)&&(Pe+=bk(0,(f.offset||0)-(ce||0)))):Pe=null,Ze.attr("transform",Pe);function Qe(de){if(de){var xe=I0.select(de.node().parentNode).select("."+be);if(!xe.empty()){var He=de.node().getBBox();if(He.height){var Je=He.y+He.height+a3*X;xe.attr("y",Je)}}}}if(Ze.style("opacity",d*f1.opacity(T)).call(u1.font,{color:f1.rgb(T),size:I0.round(w,2),family:x,weight:b,style:M,variant:S,textcase:A,shadow:q,lineposition:L}).attr(u).call(B0.convertToTspans,e,Qe),Ae&&!Ae.empty()){var re=c.select("."+r+"-math-group"),he=Ze.node().getBBox(),Ve=re.node()?re.node().getBBox():void 0,hr=Ve?Ve.y+Ve.height+a3*X:he.y+he.height+n3*X,Le=fs.extendFlat({},u,{y:hr});Ae.attr("transform",Pe),Ae.style("opacity",Y*f1.opacity(Z)).call(u1.font,{color:f1.rgb(Z),size:I0.round(X,2),family:O,weight:W,style:ee,variant:ne,textcase:fe,shadow:j,lineposition:we}).attr(Le).call(B0.convertToTspans,e)}return Yre.previousPromises(e)}function Ee(je){var Ze=je.title,Ae=I0.select(Ze.node().parentNode);if(s&&s.selection&&s.side&&m){Ae.attr("transform",null);var Pe=Ure[s.side],Qe=s.side==="left"||s.side==="top"?-1:1,re=Ore(s.pad)?s.pad:2,he=u1.bBox(Ae.node()),Ve={t:0,b:0,l:0,r:0},hr=e._fullLayout._reservedMargin;for(var Le in hr)for(var de in hr[Le]){var xe=hr[Le][de];Ve[de]=Math.max(Ve[de],xe)}var He={left:Ve.l,top:Ve.t,right:a.width-Ve.r,bottom:a.height-Ve.b},Je=s.maxShift||Qe*(He[s.side]-he[s.side]),Ie=0;if(Je<0)Ie=Je;else{var Ge=s.offsetLeft||0,nr=s.offsetTop||0;he.left-=Ge,he.right-=Ge,he.top-=nr,he.bottom-=nr,s.selection.each(function(){var fr=u1.bBox(this);fs.bBoxIntersect(he,fr,re)&&(Ie=Math.max(Ie,Qe*(fr[s.side]-he[Pe])+re))}),Ie=Math.min(Je,Ie),n._titleScoot=Math.abs(Ie)}if(Ie>0||Je<0){var lr={left:[-Ie,0],right:[Ie,0],top:[0,-Ie],bottom:[0,Ie]}[s.side];Ae.attr("transform",bk(lr[0],lr[1]))}}}Te.call(Ce,ze);function Ue(je,Ze){je.text(Ze).on("mouseover.opacity",function(){I0.select(this).transition().duration(xk.SHOW_PLACEHOLDER).style("opacity",1)}).on("mouseout.opacity",function(){I0.select(this).transition().duration(xk.HIDE_PLACEHOLDER).style("opacity",0)})}if(ue&&(m?Te.on(".opacity",null):(Ue(Te,l),g=!0),Te.call(B0.makeEditable,{gd:e}).on("edit",function(je){o!==void 0?t3.call("_guiRestyle",e,i,je,o):t3.call("_guiRelayout",e,i,je)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(Ce)}).on("input",function(je){this.text(je||" ").call(B0.positionText,u.x,u.y)}),z)){if(z&&!m){var ke=Te.node().getBBox(),We=ke.y+ke.height+n3*X;ze.attr("y",We)}B?ze.on(".opacity",null):(Ue(ze,N),H=!0),ze.call(B0.makeEditable,{gd:e}).on("edit",function(je){t3.call("_guiRelayout",e,"title.subtitle.text",je)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(Ce)}).on("input",function(je){this.text(je||" ").call(B0.positionText,ze.attr("x"),ze.attr("y"))})}return Te.classed("js-placeholder",g),ze&&!ze.empty()&&ze.classed("js-placeholder",H),c}wk.exports={draw:Gre,SUBTITLE_PADDING_EM:n3,SUBTITLE_PADDING_MATHJAX_EM:a3}});var g1=J(($3e,Ck)=>{"use strict";var Vre=Or(),Xre=a0().utcFormat,ct=Re(),Wre=ct.numberFormat,Ki=Xr(),to=ct.cleanNumber,Zre=ct.ms2DateTime,Mk=ct.dateTime2ms,ji=ct.ensureNumber,Tk=ct.isArrayOrTypedArray,ao=(la(),Xe(da)),c1=ao.FP_SAFE,ki=ao.BADNUM,Jre=ao.LOG_CLIP,$re=ao.ONEWEEK,v1=ao.ONEDAY,d1=ao.ONEHOUR,Ak=ao.ONEMIN,kk=ao.ONESEC,h1=ua(),y1=(ya(),Xe(ma)),p1=y1.HOUR_PATTERN,m1=y1.WEEKDAY_PATTERN;function zf(e){return Math.pow(10,e)}function i3(e){return e!=null}Ck.exports=function(r,t){t=t||{};var a=r._id||"x",n=a.charAt(0);function i(b,M){if(b>0)return Math.log(b)/Math.LN10;if(b<=0&&M&&r.range&&r.range.length===2){var S=r.range[0],A=r.range[1];return .5*(S+A-2*Jre*Math.abs(S-A))}else return ki}function l(b,M,S,A){if((A||{}).msUTC&&Ki(b))return+b;var L=Mk(b,S||r.calendar);if(L===ki)if(Ki(b)){b=+b;var q=Math.floor(ct.mod(b+.05,1)*10),P=Math.round(b-q/10);L=Mk(new Date(P))+q/10}else return ki;return L}function o(b,M,S){return Zre(b,M,S||r.calendar)}function s(b){return r._categories[Math.round(b)]}function u(b){if(i3(b)){if(r._categoriesMap===void 0&&(r._categoriesMap={}),r._categoriesMap[b]!==void 0)return r._categoriesMap[b];r._categories.push(typeof b=="number"?String(b):b);var M=r._categories.length-1;return r._categoriesMap[b]=M,M}return ki}function f(b,M){for(var S=new Array(M),A=0;Ar.range[1]&&(S=!S);for(var A=S?-1:1,L=A*b,q=0,P=0;PN)q=P+1;else{q=L<(z+N)/2?P:P+1;break}}var I=r._B[q]||0;return isFinite(I)?m(b,r._m2,I):0},x=function(b){var M=r._rangebreaks.length;if(!M)return g(b,r._m,r._b);for(var S=0,A=0;Ar._rangebreaks[A].pmax&&(S=A+1);return g(b,r._m2,r._B[S])}}r.c2l=r.type==="log"?i:ji,r.l2c=r.type==="log"?zf:ji,r.l2p=y,r.p2l=x,r.c2p=r.type==="log"?function(b,M){return y(i(b,M))}:y,r.p2c=r.type==="log"?function(b){return zf(x(b))}:x,["linear","-"].indexOf(r.type)!==-1?(r.d2r=r.r2d=r.d2c=r.r2c=r.d2l=r.r2l=to,r.c2d=r.c2r=r.l2d=r.l2r=ji,r.d2p=r.r2p=function(b){return r.l2p(to(b))},r.p2d=r.p2r=x,r.cleanPos=ji):r.type==="log"?(r.d2r=r.d2l=function(b,M){return i(to(b),M)},r.r2d=r.r2c=function(b){return zf(to(b))},r.d2c=r.r2l=to,r.c2d=r.l2r=ji,r.c2r=i,r.l2d=zf,r.d2p=function(b,M){return r.l2p(r.d2r(b,M))},r.p2d=function(b){return zf(x(b))},r.r2p=function(b){return r.l2p(to(b))},r.p2r=x,r.cleanPos=ji):r.type==="date"?(r.d2r=r.r2d=ct.identity,r.d2c=r.r2c=r.d2l=r.r2l=l,r.c2d=r.c2r=r.l2d=r.l2r=o,r.d2p=r.r2p=function(b,M,S){return r.l2p(l(b,0,S))},r.p2d=r.p2r=function(b,M,S){return o(x(b),M,S)},r.cleanPos=function(b){return ct.cleanDate(b,ki,r.calendar)}):r.type==="category"?(r.d2c=r.d2l=u,r.r2d=r.c2d=r.l2d=s,r.d2r=r.d2l_noadd=d,r.r2c=function(b){var M=h(b);return M!==void 0?M:r.fraction2r(.5)},r.l2r=r.c2r=ji,r.r2l=h,r.d2p=function(b){return r.l2p(r.r2c(b))},r.p2d=function(b){return s(x(b))},r.r2p=r.d2p,r.p2r=x,r.cleanPos=function(b){return typeof b=="string"&&b!==""?b:ji(b)}):r.type==="multicategory"&&(r.r2d=r.c2d=r.l2d=s,r.d2r=r.d2l_noadd=d,r.r2c=function(b){var M=d(b);return M!==void 0?M:r.fraction2r(.5)},r.r2c_just_indices=c,r.l2r=r.c2r=ji,r.r2l=d,r.d2p=function(b){return r.l2p(r.r2c(b))},r.p2d=function(b){return s(x(b))},r.r2p=r.d2p,r.p2r=x,r.cleanPos=function(b){return Array.isArray(b)||typeof b=="string"&&b!==""?b:ji(b)},r.setupMultiCategory=function(b){var M=r._traceIndices,S,A,L=r._matchGroup;if(L&&r._categories.length===0){for(var q in L)if(q!==a){var P=t[h1.id2name(q)];M=M.concat(P._traceIndices)}}var z=[[0,{}],[0,{}]],N=[];for(S=0;SP[1]&&(A[q?0:1]=S,L[1]=P[1]),L[0]>=L[1])if(M!==void 0){var z=P[0]+1;S!==void 0&&(z=Math.min(z,P[1])),A[q?0:1]=r.l2r(z)}else S!==void 0&&(A[q?1:0]=r.l2r(P[1]-1))}},r.cleanRange=function(b,M){r._cleanRange(b,M),r.limitRange(b)},r._cleanRange=function(b,M){M||(M={}),b||(b="range");var S=ct.nestedProperty(r,b).get(),A,L;if(r.type==="date"?L=ct.dfltRange(r.calendar):n==="y"?L=y1.DFLTRANGEY:r._name==="realaxis"?L=[0,1]:L=M.dfltRange||y1.DFLTRANGEX,L=L.slice(),(r.rangemode==="tozero"||r.rangemode==="nonnegative")&&(L[0]=0),!S||S.length!==2){ct.nestedProperty(r,b).set(L);return}var q=S[0]===null,P=S[1]===null;for(r.type==="date"&&!r.autorange&&(S[0]=ct.cleanDate(S[0],ki,r.calendar),S[1]=ct.cleanDate(S[1],ki,r.calendar)),A=0;A<2;A++)if(r.type==="date"){if(!ct.isDateTime(S[A],r.calendar)){r[b]=L;break}if(r.r2l(S[0])===r.r2l(S[1])){var z=ct.constrain(r.r2l(S[0]),ct.MIN_MS+1e3,ct.MAX_MS-1e3);S[0]=r.l2r(z-1e3),S[1]=r.l2r(z+1e3);break}}else{if(!Ki(S[A]))if(!(q||P)&&Ki(S[1-A]))S[A]=S[1-A]*(A?10:.1);else{r[b]=L;break}if(S[A]<-c1?S[A]=-c1:S[A]>c1&&(S[A]=c1),S[0]===S[1]){var N=Math.max(1,Math.abs(S[0]*1e-6));S[0]-=N,S[1]+=N}}},r.setScale=function(b){var M=t._size;if(r.overlaying){var S=h1.getFromId({_fullLayout:t},r.overlaying);r.domain=S.domain}var A=b&&r._r?"_r":"range",L=r.calendar;r.cleanRange(A);var q=r.r2l(r[A][0],L),P=r.r2l(r[A][1],L),z=n==="y";if(z?(r._offset=M.t+(1-r.domain[1])*M.h,r._length=M.h*(r.domain[1]-r.domain[0]),r._m=r._length/(q-P),r._b=-r._m*P):(r._offset=M.l+r.domain[0]*M.w,r._length=M.w*(r.domain[1]-r.domain[0]),r._m=r._length/(P-q),r._b=-r._m*q),r._rangebreaks=[],r._lBreaks=0,r._m2=0,r._B=[],r.rangebreaks){var N,I;if(r._rangebreaks=r.locateBreaks(Math.min(q,P),Math.max(q,P)),r._rangebreaks.length){for(N=0;NP&&(B=!B),B&&r._rangebreaks.reverse();var H=B?-1:1;for(r._m2=H*r._length/(Math.abs(P-q)-r._lBreaks),r._B.push(-r._m2*(z?P:q)),N=0;NL&&(L+=7,qL&&(L+=24,q=A&&q=A&&b=j.min&&(eej.max&&(j.max=ne),fe=!1)}fe&&P.push({min:ee,max:ne})}};for(S=0;S{"use strict";var Sk=Xr(),l3=Re(),Kre=(la(),Xe(da)).BADNUM,b1=l3.isArrayOrTypedArray,jre=l3.isDateTime,Qre=l3.cleanNumber,Dk=Math.round;qk.exports=function(r,t,a){var n=r,i=a.noMultiCategory;if(b1(n)&&!n.length)return"-";if(!i&&nte(n))return"multicategory";if(i&&Array.isArray(n[0])){for(var l=[],o=0;oi*2}function Lk(e){return Math.max(1,(e-1)/1e3)}function ate(e,r){for(var t=e.length,a=Lk(t),n=0,i=0,l={},o=0;on*2}function nte(e){return b1(e[0])&&b1(e[1])}});var Ff=J((j3e,Bk)=>{"use strict";var ite=Or(),zk=Xr(),no=Re(),x1=(la(),Xe(da)).FP_SAFE,lte=kr(),ote=lt(),Fk=ua(),ste=Fk.getFromId,ute=Fk.isLinked;Bk.exports={applyAutorangeOptions:Ik,getAutoRange:s3,makePadFn:u3,doAutoRange:cte,findExtremes:vte,concatExtremes:v3};function s3(e,r){var t,a,n=[],i=e._fullLayout,l=u3(i,r,0),o=u3(i,r,1),s=v3(e,r),u=s.min,f=s.max;if(u.length===0||f.length===0)return no.simpleMap(r.range,r.r2l);var c=u[0].val,d=f[0].val;for(t=1;t0&&(P=T-l(S)-o(A),P>b?z/P>M&&(L=S,q=A,M=z/P):z/T>M&&(L={val:S.val,nopad:1},q={val:A.val,nopad:1},M=z/T));function N(G,O){return Math.max(G,o(O))}if(c===d){var I=c-1,B=c+1;if(x)if(c===0)n=[0,1];else{var H=(c>0?f:u).reduce(N,0),Y=c/(1-Math.min(.5,H/T));n=c>0?[0,Y]:[Y,0]}else w?n=[Math.max(0,I),Math.max(1,B)]:n=[I,B]}else x?(L.val>=0&&(L={val:0,nopad:1}),q.val<=0&&(q={val:0,nopad:1})):w&&(L.val-M*l(L)<0&&(L={val:0,nopad:1}),q.val<=0&&(q={val:1,nopad:1})),M=(q.val-L.val-Ek(r,S.val,A.val))/(T-l(L)-o(q)),n=[L.val-M*l(L),q.val+M*o(q)];return n=Ik(n,r),r.limitRange&&r.limitRange(),m&&n.reverse(),no.simpleMap(n,r.l2r||Number)}function Ek(e,r,t){var a=0;if(e.rangebreaks)for(var n=e.locateBreaks(r,t),i=0;i0?t.ppadplus:t.ppadminus)||t.ppad||0),S=b((e._m>0?t.ppadminus:t.ppadplus)||t.ppad||0),A=b(t.vpadplus||t.vpad),L=b(t.vpadminus||t.vpad);if(!u){if(w=1/0,T=-1/0,s)for(c=0;c0&&(w=d),d>T&&d-x1&&(w=d),d>T&&d=z;c--)P(c);return{min:a,max:n,opts:t}}function f3(e,r,t,a){Nk(e,r,t,a,dte)}function c3(e,r,t,a){Nk(e,r,t,a,hte)}function Nk(e,r,t,a,n){for(var i=a.tozero,l=a.extrapad,o=!0,s=0;s=t&&(u.extrapad||!l)){o=!1;break}else n(r,u.val)&&u.pad<=t&&(l||!u.extrapad)&&(e.splice(s,1),s--)}if(o){var f=i&&r===0;e.push({val:r,pad:f?0:t,extrapad:f?!1:l})}}function Rk(e){return zk(e)&&Math.abs(e)=r}function pte(e,r){var t=r.autorangeoptions;return t&&t.minallowed!==void 0&&_1(r,t.minallowed,t.maxallowed)?t.minallowed:t&&t.clipmin!==void 0&&_1(r,t.clipmin,t.clipmax)?Math.max(e,r.d2l(t.clipmin)):e}function mte(e,r){var t=r.autorangeoptions;return t&&t.maxallowed!==void 0&&_1(r,t.minallowed,t.maxallowed)?t.maxallowed:t&&t.clipmax!==void 0&&_1(r,t.clipmin,t.clipmax)?Math.min(e,r.d2l(t.clipmax)):e}function _1(e,r,t){return r!==void 0&&t!==void 0?(r=e.d2l(r),t=e.d2l(t),r=s&&(i=s,t=s),l<=s&&(l=s,a=s)}}return t=pte(t,r),a=mte(a,r),[t,a]}});var Mt=J((e5e,sC)=>{"use strict";var jn=Or(),Wt=Xr(),H0=Qt(),If=kr(),Ar=Re(),O0=Ar.strTranslate,cs=Ta(),yte=Rf(),Bf=Nr(),En=lt(),gte=Mi(),Hk=Lg(),Q3e=(ya(),Xe(ma)),za=(la(),Xe(da)),bte=za.ONEMAXYEAR,T1=za.ONEAVGYEAR,A1=za.ONEMINYEAR,xte=za.ONEMAXQUARTER,m3=za.ONEAVGQUARTER,k1=za.ONEMINQUARTER,_te=za.ONEMAXMONTH,Y0=za.ONEAVGMONTH,C1=za.ONEMINMONTH,Pn=za.ONEWEEK,ja=za.ONEDAY,io=ja/2,el=za.ONEHOUR,Hf=za.ONEMIN,S1=za.ONESEC,wte=za.ONEMILLI,Mte=za.ONEMICROSEC,vs=za.MINUS_SIGN,L1=za.BADNUM,y3={K:"zeroline"},g3={K:"gridline",L:"path"},b3={K:"minor-gridline",L:"path"},Kk={K:"tick",L:"path"},Ok={K:"tick",L:"text"},Yk={width:["x","r","l","xl","xr"],height:["y","t","b","yt","yb"],right:["r","xr"],left:["l","xl"],top:["t","yt"],bottom:["b","yb"]},q1=(Oa(),Xe(Ha)),Nf=q1.MID_SHIFT,ds=q1.CAP_SHIFT,Of=q1.LINE_SPACING,Tte=q1.OPPOSITE_SIDE,D1=3,Be=sC.exports={};Be.setConvert=g1();var Ate=o3(),rl=ua(),kte=rl.idSort,Cte=rl.isLinked;Be.id2name=rl.id2name;Be.name2id=rl.name2id;Be.cleanId=rl.cleanId;Be.list=rl.list;Be.listIds=rl.listIds;Be.getFromId=rl.getFromId;Be.getFromTrace=rl.getFromTrace;var jk=Ff();Be.getAutoRange=jk.getAutoRange;Be.findExtremes=jk.findExtremes;var Ste=1e-4;function M3(e){var r=(e[1]-e[0])*Ste;return[e[0]-r,e[1]+r]}function Dte(e,r,t){if(![t,e,r].every(Wt)||t===0)return e;let a=Math.round((e-r)/t),n=r+a*t;return e!==n&&Math.abs(e-n)d+" domain")),s=s.concat(i||[]),f.length>l?(Ar.warn("Array attribute "+u+" has more entries than expected, truncating to "+l),f=f.slice(0,l)):f.length2e-6||((t-e._forceTick0)/e._minDtick%1+1.000001)%1>2e-6)&&(e._minDtick=0))};Be.saveRangeInitial=function(e,r){for(var t=Be.list(e,"",!0),a=!1,n=0;nc*.3||u(a)||u(n))){var d=t.dtick/2;e+=e+dl){var o=Number(t.slice(1));i.exactYears>l&&o%12===0?e=Be.tickIncrement(e,"M6","reverse")+ja*1.5:i.exactMonths>l?e=Be.tickIncrement(e,"M1","reverse")+ja*15.5:e-=io;var s=Be.tickIncrement(e,t);if(s<=a)return s}return e}Be.prepMinorTicks=function(e,r,t){var c,d;if(!((c=r.minor)!=null&&c.dtick)){delete e.dtick;var a=r.dtick&&Wt(r._tmin),n;if(a){var i=Be.tickIncrement(r._tmin,r.dtick,!0);n=[r._tmin,i*.99+r._tmin*.01]}else{var l=Ar.simpleMap(r.range,r.r2l);n=[l[0],.8*l[0]+.2*l[1]]}if(e.range=Ar.simpleMap(n,r.l2r),e._isMinor=!0,Be.prepTicks(e,t),a){var o=Wt(r.dtick),s=Wt(e.dtick),u=o?r.dtick:+r.dtick.substring(1),f=s?e.dtick:+e.dtick.substring(1);o&&s?d3(u,f)?u===2*Pn&&f===2*ja&&(e.dtick=Pn):u===2*Pn&&f===3*ja?e.dtick=Pn:u===Pn&&!(r._input.minor||{}).nticks?e.dtick=ja:Vk(u/f,2.5)?e.dtick=u/2:e.dtick=u:String(r.dtick).charAt(0)==="M"?s?e.dtick="M1":d3(u,f)?u>=12&&f===2&&(e.dtick="M3"):e.dtick=r.dtick:String(e.dtick).charAt(0)==="L"?String(r.dtick).charAt(0)==="L"?d3(u,f)||(e.dtick=Vk(u/f,2.5)?r.dtick/2:r.dtick):e.dtick="D1":e.dtick==="D2"&&+r.dtick>1&&(e.dtick=1)}e.range=r.range}((d=r.minor)==null?void 0:d._tick0Init)===void 0&&(e.tick0=r.tick0)};function d3(e,r){return Math.abs((e/r+.5)%1-.5)<.001}function Vk(e,r){return Math.abs(e/r-1)<.001}Be.prepTicks=function(e,r){var t=Ar.simpleMap(e.range,e.r2l,void 0,void 0,r);if(e.tickmode==="auto"||!e.dtick){var a=e.nticks,n;a||(e.type==="category"||e.type==="multicategory"?(n=e.tickfont?Ar.bigFont(e.tickfont.size||12):15,a=e._length/n):(n=e._id.charAt(0)==="y"?40:80,a=Ar.constrain(e._length/n,4,9)+1),e._name==="radialaxis"&&(a*=2)),e.minor&&e.minor.tickmode!=="array"||e.tickmode==="array"&&(a*=100),e._roughDTick=Math.abs(t[1]-t[0])/a,Be.autoTicks(e,e._roughDTick),e._minDtick>0&&e.dtick0?(i=a-1,l=a):(i=a,l=a);var o=e[i].value,s=e[l].value,u=Math.abs(s-o),f=t||u,c=0;f>=A1?u>=A1&&u<=bte?c=u:c=T1:t===m3&&f>=k1?u>=k1&&u<=xte?c=u:c=m3:f>=C1?u>=C1&&u<=_te?c=u:c=Y0:t===Pn&&f>=Pn?c=Pn:f>=ja?c=ja:t===io&&f>=io?c=io:t===el&&f>=el&&(c=el);var d;c>=u&&(c=u,d=!0);var h=n+c;if(r.rangebreaks&&c>0){for(var m=84,g=0,y=0;yPn&&(c=u)}(c>0||a===0)&&(e[a].periodX=n+c/2)}}Be.calcTicks=function(r,t){for(var a=r.type,n=r.calendar,i=r.ticklabelstep,l=r.ticklabelmode==="period",o=r.range[0]>r.range[1],s=!r.ticklabelindex||Ar.isArrayOrTypedArray(r.ticklabelindex)?r.ticklabelindex:[r.ticklabelindex],u=Ar.simpleMap(r.range,r.r2l,void 0,void 0,t),f=u[1]=(b?0:1);M--){var S=!M;M?(r._dtickInit=r.dtick,r._tick0Init=r.tick0):b&&(r.minor._dtickInit=r.minor.dtick,r.minor._tick0Init=r.minor.tick0);var A=M?r:Ar.extendFlat({},r,b?r.minor:{minor:{}});if(S?Be.prepMinorTicks(A,r,t):Be.prepTicks(A,t),A.tickmode==="array"){M?(y=[],m=Xk(r,!S)):(x=[],g=Xk(r,!S));continue}if(A.tickmode==="sync"){y=[],m=zte(r);continue}var L=M3(u),q=L[0],P=L[1],z=Wt(A.dtick),N=a==="log"&&!(z||A.dtick.charAt(0)==="L"),I=Be.tickFirst(A,t);if(M){if(r._tmin=I,I=P:H<=P;H=Be.tickIncrement(H,O,f,n)){if(M&&Y++,A.rangebreaks&&!f){if(H=d)break}if(y.length>h||H===B)break;B=H;var Z={value:Dte(H,X,O)};M?(H===I&&(Z.first=!0),N&&H!==(H|0)&&(Z.simpleLabel=!0),i>1&&Y%i&&(Z.skipLabel=!0),y.push(Z)):(Z.minor=!0,x.push(Z))}}if(!x||x.length<3)s=!1;else{var W=(x[2].value-x[1].value)*(o?-1:1);lae(W,r.tickformat)||(s=!1,x=x.slice(1))}if(!s)w=y;else{var ee=y.concat(x);l&&y.length&&(ee=ee.slice(1)),ee=ee.sort(function(Ze,Ae){return Ze.value-Ae.value}).filter(function(Ze,Ae,Pe){return Ae===0||Ze.value!==Pe[Ae-1].value});var ne=ee.map(function(Ze,Ae){return Ze.minor===void 0&&!Ze.skipLabel?Ae:null}).filter(function(Ze){return Ze!==null});ne.forEach(function(Ze){s.map(function(Ae){var Pe=Ze+Ae;Pe>=0&&Pe-1;Te--){if(y[Te].drop){y.splice(Te,1);continue}y[Te].value=p3(y[Te].value,r);var Ce=r.c2p(y[Te].value);(ze?qe>Ce-be:qed||Qed&&(Pe.periodX=d),Qen&&mn&&yT1)r/=T1,a=n(10),e.dtick="M"+12*Qi(r,a,w1);else if(i>Y0)r/=Y0,e.dtick="M"+Qi(r,1,Wk);else if(i>ja){if(e.dtick=Qi(r,ja,e._hasDayOfWeekBreaks?[1,2,7,14]:Fte),!t){var l=Be.getTickFormat(e),o=e.ticklabelmode==="period";o&&(e._rawTick0=e.tick0),/%[uVW]/.test(l)?e.tick0=Ar.dateTick0(e.calendar,2):e.tick0=Ar.dateTick0(e.calendar,1),o&&(e._dowTick0=e.tick0)}}else i>el?e.dtick=Qi(r,el,Wk):i>Hf?e.dtick=Qi(r,Hf,Zk):i>S1?e.dtick=Qi(r,S1,Zk):(a=n(10),e.dtick=Qi(r,a,w1))}else if(e.type==="log"){e.tick0=0;var s=Ar.simpleMap(e.range,e.r2l);if(e._isMinor&&(r*=1.5),r>.7)e.dtick=Math.ceil(r);else if(Math.abs(s[1]-s[0])<1){var u=1.5*Math.abs((s[1]-s[0])/r);r=Math.abs(Math.pow(10,s[1])-Math.pow(10,s[0]))/u,a=n(10),e.dtick="L"+Qi(r,a,w1)}else e.dtick=r>.3?"D2":"D1"}else e.type==="category"||e.type==="multicategory"?(e.tick0=0,e.dtick=Math.ceil(Math.max(r,1))):C3(e)?(e.tick0=0,a=1,e.dtick=Qi(r,a,Nte)):(e.tick0=0,a=n(10),e.dtick=Qi(r,a,w1));if(e.dtick===0&&(e.dtick=1),!Wt(e.dtick)&&typeof e.dtick!="string"){var f=e.dtick;throw e.dtick=1,"ax.dtick error: "+String(f)}};function tC(e){var r=e.dtick;if(e._tickexponent=0,!Wt(r)&&typeof r!="string"&&(r=1),(e.type==="category"||e.type==="multicategory")&&(e._tickround=null),e.type==="date"){var t=e.r2l(e.tick0),a=e.l2r(t).replace(/(^-|i)/g,""),n=a.length;if(String(r).charAt(0)==="M")n>10||a.slice(5)!=="01-01"?e._tickround="d":e._tickround=+r.slice(1)%12===0?"y":"m";else if(r>=ja&&n<=10||r>=ja*15)e._tickround="d";else if(r>=Hf&&n<=16||r>=el)e._tickround="M";else if(r>=S1&&n<=19||r>=Hf)e._tickround="S";else{var i=e.l2r(t+r).replace(/^-/,"").length;e._tickround=Math.max(n,i)-20,e._tickround<0&&(e._tickround=4)}}else if(Wt(r)||r.charAt(0)==="L"){var l=e.range.map(e.r2d||Number);Wt(r)||(r=Number(r.slice(1))),e._tickround=2-Math.floor(Math.log(r)/Math.LN10+.01);var o=Math.max(Math.abs(l[0]),Math.abs(l[1])),s=Math.floor(Math.log(o)/Math.LN10+.01),u=e.minexponent===void 0?3:e.minexponent;Math.abs(s)>u&&(U0(e.exponentformat)&&e.exponentformat!=="SI extended"&&!T3(s)||U0(e.exponentformat)&&e.exponentformat==="SI extended"&&!A3(s)?e._tickexponent=3*Math.round((s-1)/3):e._tickexponent=s)}else e._tickround=null}Be.tickIncrement=function(e,r,t,a){var n=t?-1:1;if(Wt(r))return Ar.increment(e,n*r);var i=r.charAt(0),l=n*Number(r.slice(1));if(i==="M")return Ar.incrementMonth(e,l,a);if(i==="L")return Math.log(Math.pow(10,e)+l)/Math.LN10;if(i==="D"){var o=r==="D2"?rC:eC,s=e+n*.01,u=Ar.roundUp(Ar.mod(s,1),o,t);return Math.floor(s)+Math.log(jn.round(Math.pow(10,u),1))/Math.LN10}throw"unrecognized dtick "+String(r)};Be.tickFirst=function(e,r){var t=e.r2l||Number,a=Ar.simpleMap(e.range,t,void 0,void 0,r),n=a[1]=0&&b<=e._length?T:null};if(s&&Ar.isArrayOrTypedArray(e.ticktext)){var m=Ar.simpleMap(e.range,e.r2l),g=(Math.abs(m[1]-m[0])-(e._lBreaks||0))/1e4;for(d=0;d"+o;else{var u=Uf(e),f=e._trueSide||e.side;(!u&&f==="top"||u&&f==="bottom")&&(l+="
")}r.text=l}function Bte(e,r,t,a,n){var i=e.dtick,l=r.x,o=e.tickformat,s=typeof i=="string"&&i.charAt(0);if(n==="never"&&(n=""),a&&s!=="L"&&(i="L3",s="L"),o||s==="L")r.text=Yf(Math.pow(10,l),e,n,a);else if(Wt(i)||s==="D"&&(e.minorloglabels==="complete"||Ar.mod(l+.01,1)<.1)){var u;e.minorloglabels==="complete"&&!(Ar.mod(l+.01,1)<.1)&&(u=!0,r.fontSize*=.75);var f=Math.pow(10,l).toExponential(0),c=f.split("e"),d=+c[1],h=Math.abs(d),m=e.exponentformat;m==="power"||U0(m)&&m!=="SI extended"&&T3(d)||U0(m)&&m==="SI extended"&&A3(d)?(r.text=c[0],h>0&&(r.text+="x10"),r.text==="1x10"&&(r.text="10"),d!==0&&d!==1&&(r.text+=""+(d>0?"":vs)+h+""),r.fontSize*=1.25):(m==="e"||m==="E")&&h>2?r.text=c[0]+m+(d>0?"+":vs)+h:(r.text=Yf(Math.pow(10,l),e,"","fakehover"),i==="D1"&&e._id.charAt(0)==="y"&&(r.dy-=r.fontSize/6))}else if(s==="D")r.text=e.minorloglabels==="none"?"":String(Math.round(Math.pow(10,Ar.mod(l,1)))),r.fontSize*=.75;else throw"unrecognized dtick "+String(i);if(e.dtick==="D1"){var g=String(r.text).charAt(0);(g==="0"||g==="1")&&(e._id.charAt(0)==="y"?r.dx-=r.fontSize/4:(r.dy+=r.fontSize/2,r.dx+=(e.range[1]>e.range[0]?1:-1)*r.fontSize*(l<0?.5:.25)))}}function Hte(e,r){var t=e._categories[Math.round(r.x)];t===void 0&&(t=""),r.text=String(t)}function Ote(e,r,t){var a=Math.round(r.x),n=e._categories[a]||[],i=n[1]===void 0?"":String(n[1]),l=n[0]===void 0?"":String(n[0]);t?r.text=l+" - "+i:(r.text=i,r.text2=l)}function Yte(e,r,t,a,n){n==="never"?n="":e.showexponent==="all"&&Math.abs(r.x/e.dtick)<1e-6&&(n="hide"),r.text=Yf(r.x,e,n,a)}function Ute(e,r,t,a,n){if(e.thetaunit==="radians"&&!t){var i=r.x/180;if(i===0)r.text="0";else{var l=Gte(i);if(l[1]>=100)r.text=Yf(Ar.deg2rad(r.x),e,n,a);else{var o=r.x<0;l[1]===1?l[0]===1?r.text="\u03C0":r.text=l[0]+"\u03C0":r.text=["",l[0],"","\u2044","",l[1],"","\u03C0"].join(""),o&&(r.text=vs+r.text)}}}else r.text=Yf(r.x,e,n,a)}function Gte(e){function r(o,s){return Math.abs(o-s)<=1e-6}function t(o,s){return r(s,0)?o:t(s,o%s)}function a(o){for(var s=1;!r(Math.round(o*s)/s,o);)s*=10;return s}var n=a(e),i=e*n,l=Math.abs(t(i,n));return[Math.round(i/l),Math.round(n/l)]}var nC=["f","p","n","\u03BC","m","","k","M","G","T"],Vte=["q","r","y","z","a",...nC,"P","E","Z","Y","R","Q"],U0=e=>["SI","SI extended","B"].includes(e);function T3(e){return e>14||e<-15}function A3(e){return e>32||e<-30}function Xte(e,r){return U0(r)?!!(r==="SI extended"&&A3(e)||r!=="SI extended"&&T3(e)):!1}function Yf(e,r,t,a){var n=e<0,i=r._tickround,l=t||r.exponentformat||"B",o=r._tickexponent,s=Be.getTickFormat(r),u=r.separatethousands;if(a){var f={exponentformat:l,minexponent:r.minexponent,dtick:r.showexponent==="none"?r.dtick:Wt(e)&&Math.abs(e)||1,range:r.showexponent==="none"?r.range.map(r.r2d):[0,e||1]};tC(f),i=(Number(f._tickround)||0)+4,o=f._tickexponent,r.hoverformat&&(s=r.hoverformat)}if(s)return r._numFormat(s)(e).replace(/-/g,vs);l==="none"&&(o=0),e=Math.abs(e);let c=Math.pow(10,-i)/2;if(e"+d+"":l==="B"&&o===9?e+="B":U0(l)&&(e+=l==="SI extended"?Vte[o/3+10]:nC[o/3+5])}return n?vs+e:e}Be.getTickFormat=function(e){var r;function t(s){return typeof s!="string"?s:Number(s.replace("M",""))*Y0}function a(s,u){var f=["L","D"];if(typeof s==typeof u){if(typeof s=="number")return s-u;var c=f.indexOf(s.charAt(0)),d=f.indexOf(u.charAt(0));return c===d?Number(s.replace(/(L|D)/g,""))-Number(u.replace(/(L|D)/g,"")):c-d}else return typeof s=="number"?1:-1}function n(s,u,f){var c=f||function(m){return m},d=u[0],h=u[1];return(!d&&typeof d!="number"||c(d)<=c(s))&&(!h&&typeof h!="number"||c(h)>=c(s))}function i(s,u){var f=u[0]===null,c=u[1]===null,d=a(s,u[0])>=0,h=a(s,u[1])<=0;return(f||d)&&(c||h)}var l,o;if(e.tickformatstops&&e.tickformatstops.length>0)switch(e.type){case"date":case"linear":{for(r=0;r=0&&n.unshift(n.splice(f,1).shift())}});var o={false:{left:0,right:0}};return Ar.syncOrAsync(n.map(function(s){return function(){if(s){var u=Be.getFromId(e,s);t||(t={}),t.axShifts=o,t.overlayingShiftedAx=l;var f=Be.drawOne(e,u,t);return u._shiftPusher&&w3(u,u._fullDepth||0,o,!0),u._r=u.range.slice(),u._rl=Ar.simpleMap(u._r,u.r2l),f}}}))};Be.drawOne=function(e,r,t){t=t||{};var a=t.axShifts||{},n=t.overlayingShiftedAx||[],i,l,o;r.setScale();var s=e._fullLayout,u=r._id,f=u.charAt(0),c=Be.counterLetter(u),d=s._plots[r._mainSubplot],h=r.zerolinelayer==="above traces";if(!d)return;if(r._shiftPusher=r.autoshift||n.indexOf(r._id)!==-1||n.indexOf(r.overlaying)!==-1,r._shiftPusher&r.anchor==="free"){var m=r.linewidth/2||0;r.ticks==="inside"&&(m+=r.ticklen),w3(r,m,a,!0),w3(r,r.shift||0,a,!1)}(t.skipTitle!==!0||r._shift===void 0)&&(r._shift=iae(r,a));var g=d[f+"axislayer"],y=r._mainLinePosition,x=y+=r._shift,w=r._mainMirrorPosition,T=r._vals=Be.calcTicks(r),b=[r.mirror,x,w].join("_");for(i=0;i0?Ae.bottom-je:0,Ze))));var he=0,Ve=0;if(r._shiftPusher&&(he=Math.max(Ze,Ae.height>0?ke==="l"?je-Ae.left:Ae.right-je:0),r.title.text!==s._dfltTitle[f]&&(Ve=(r._titleStandoff||0)+(r._titleScoot||0),ke==="l"&&(Ve+=$k(r))),r._fullDepth=Math.max(he,Ve)),r.automargin){Pe={x:0,y:0,r:0,l:0,t:0,b:0};var hr=[0,1],Le=typeof r._shift=="number"?r._shift:0;if(f==="x"){if(ke==="b"?Pe[ke]=r._depth:(Pe[ke]=r._depth=Math.max(Ae.width>0?je-Ae.top:0,Ze),hr.reverse()),Ae.width>0){var de=Ae.right-(r._offset+r._length);de>0&&(Pe.xr=1,Pe.r=de);var xe=r._offset-Ae.left;xe>0&&(Pe.xl=0,Pe.l=xe)}}else if(ke==="l"?(r._depth=Math.max(Ae.height>0?je-Ae.left:0,Ze),Pe[ke]=r._depth-Le):(r._depth=Math.max(Ae.height>0?Ae.right-je:0,Ze),Pe[ke]=r._depth+Le,hr.reverse()),Ae.height>0){var He=Ae.bottom-(r._offset+r._length);He>0&&(Pe.yb=0,Pe.b=He);var Je=r._offset-Ae.top;Je>0&&(Pe.yt=1,Pe.t=Je)}Pe[c]=r.anchor==="free"?r.position:r._anchorAxis.domain[hr[0]],r.title.text!==s._dfltTitle[f]&&(Pe[ke]+=$k(r)+(r.title.standoff||0)),r.mirror&&r.anchor!=="free"&&(Qe={x:0,y:0,r:0,l:0,t:0,b:0},Qe[We]=r.linewidth,r.mirror&&r.mirror!==!0&&(Qe[We]+=Ze),r.mirror===!0||r.mirror==="ticks"?Qe[c]=r._anchorAxis.domain[hr[1]]:(r.mirror==="all"||r.mirror==="allticks")&&(Qe[c]=[r._counterDomainMin,r._counterDomainMax][hr[1]]))}Ue&&(re=If.getComponentMethod("rangeslider","autoMarginOpts")(e,r)),typeof r.automargin=="string"&&(Jk(Pe,r.automargin),Jk(Qe,r.automargin)),H0.autoMargin(e,k3(r),Pe),H0.autoMargin(e,lC(r),Qe),H0.autoMargin(e,oC(r),re)}),Ar.syncOrAsync(De)}};function Jk(e,r){if(e){var t=Object.keys(Yk).reduce(function(a,n){return r.indexOf(n)!==-1&&Yk[n].forEach(function(i){a[i]=1}),a},{});Object.keys(e).forEach(function(a){t[a]||(a.length===1?e[a]=0:delete e[a])})}}function Wte(e,r){var t=[],a,n=function(i,l){var o=i.xbnd[l];o!==null&&t.push(Ar.extendFlat({},i,{x:o}))};if(r.length){for(a=0;ae.range[1],o=e.ticklabelposition&&e.ticklabelposition.indexOf("inside")!==-1,s=!o;if(t){var u=l?-1:1;t=t*u}if(a){var f=e.side,c=o&&(f==="top"||f==="left")||s&&(f==="bottom"||f==="right")?1:-1;a=a*c}return e._id.charAt(0)==="x"?function(d){return O0(n+e._offset+e.l2p(x3(d))+t,i+a)}:function(d){return O0(i+a,n+e._offset+e.l2p(x3(d))+t)}};function x3(e){return e.periodX!==void 0?e.periodX:e.x}function Kte(e){var r=e.ticklabelposition||"",t=e.tickson||"",a=function(m){return r.indexOf(m)!==-1},n=a("top"),i=a("left"),l=a("right"),o=a("bottom"),s=a("inside"),u=t!=="boundaries"&&(o||i||n||l);if(!u&&!s)return[0,0];var f=e.side,c=u?(e.tickwidth||0)/2:0,d=D1,h=e.tickfont?e.tickfont.size:12;return(o||n)&&(c+=h*ds,d+=(e.linewidth||0)/2),(i||l)&&(c+=(e.linewidth||0)/2,d+=D1),s&&f==="top"&&(d-=h*(1-ds)),(i||n)&&(c=-c),(f==="bottom"||f==="right")&&(d=-d),[u?c:0,s?d:0]}Be.makeTickPath=function(e,r,t,a){a||(a={});var n=a.minor;if(n&&!e.minor)return"";var i=a.len!==void 0?a.len:n?e.minor.ticklen:e.ticklen,l=e._id.charAt(0),o=(e.linewidth||1)/2;return l==="x"?"M0,"+(r+o*t)+"v"+i*t:"M"+(r+o*t)+",0h"+i*t};Be.makeLabelFns=function(e,r,t){var a=e.ticklabelposition||"",n=e.tickson||"",i=function(I){return a.indexOf(I)!==-1},l=i("top"),o=i("left"),s=i("right"),u=i("bottom"),f=n!=="boundaries"&&(u||o||l||s),c=i("inside"),d=a==="inside"&&e.ticks==="inside"||!c&&e.ticks==="outside"&&n!=="boundaries",h=0,m=0,g=d?e.ticklen:0;if(c?g*=-1:f&&(g=0),d&&(h+=g,t)){var y=Ar.deg2rad(t);h=g*Math.cos(y)+1,m=g*Math.sin(y)}e.showticklabels&&(d||e.showline)&&(h+=.2*e.tickfont.size),h+=(e.linewidth||1)/2*(c?-1:1);var x={labelStandoff:h,labelShift:m},w,T,b,M,S=0,A=e.side,L=e._id.charAt(0),q=e.tickangle,P;if(L==="x")P=!c&&A==="bottom"||c&&A==="top",M=P?1:-1,c&&(M*=-1),w=m*M,T=r+h*M,b=P?1:-.2,Math.abs(q)===90&&(c?b+=Nf:q===-90&&A==="bottom"?b=ds:q===90&&A==="top"?b=Nf:b=.5,S=Nf/2*(q/90)),x.xFn=function(I){return I.dx+w+S*I.fontSize},x.yFn=function(I){return I.dy+T+I.fontSize*b},x.anchorFn=function(I,B){if(f){if(o)return"end";if(s)return"start"}return!Wt(B)||B===0||B===180?"middle":B*M<0!==c?"end":"start"},x.heightFn=function(I,B,H){return B<-60||B>60?-.5*H:e.side==="top"!==c?-H:0};else if(L==="y"){if(P=!c&&A==="left"||c&&A==="right",M=P?1:-1,c&&(M*=-1),w=h,T=m*M,b=0,!c&&Math.abs(q)===90&&(q===-90&&A==="left"||q===90&&A==="right"?b=ds:b=.5),c){var z=Wt(q)?+q:0;if(z!==0){var N=Ar.deg2rad(z);S=Math.abs(Math.sin(N))*ds*M,b=0}}x.xFn=function(I){return I.dx+r-(w+I.fontSize*b)*M+S*I.fontSize},x.yFn=function(I){return I.dy+T+I.fontSize*Nf},x.anchorFn=function(I,B){return Wt(B)&&Math.abs(B)===90?"middle":P?"end":"start"},x.heightFn=function(I,B,H){return e.side==="right"&&(B*=-1),B<-30?-H:B<30?-.5*H:0}}return x};function E1(e){return[e.text,e.x,e.axInfo,e.font,e.fontSize,e.fontColor].join("_")}Be.drawTicks=function(e,r,t){t=t||{};var a=r._id+"tick",n=[].concat(r.minor&&r.minor.ticks?t.vals.filter(function(l){return l.minor&&!l.noTick}):[]).concat(r.ticks?t.vals.filter(function(l){return!l.minor&&!l.noTick}):[]),i=t.layer.selectAll("path."+a).data(n,E1);i.exit().remove(),i.enter().append("path").classed(a,1).classed("ticks",1).classed("crisp",t.crisp!==!1).each(function(l){return Bf.stroke(jn.select(this),l.minor?r.minor.tickcolor:r.tickcolor)}).style("stroke-width",function(l){return En.crispRound(e,l.minor?r.minor.tickwidth:r.tickwidth,1)+"px"}).attr("d",t.path).style("display",null),P1(r,[Kk]),i.attr("transform",t.transFn)};Be.drawGrid=function(e,r,t){if(t=t||{},r.tickmode!=="sync"){var a=r._id+"grid",n=r.minor&&r.minor.showgrid,i=n?t.vals.filter(function(x){return x.minor}):[],l=r.showgrid?t.vals.filter(function(x){return!x.minor}):[],o=t.counterAxis;if(o&&Be.shouldShowZeroLine(e,r,o))for(var s=r.tickmode==="array",u=0;u=0;m--){var g=m?d:h;if(g){var y=g.selectAll("path."+a).data(m?l:i,E1);y.exit().remove(),y.enter().append("path").classed(a,1).classed("crisp",t.crisp!==!1),y.attr("transform",t.transFn).attr("d",t.path).each(function(x){return Bf.stroke(jn.select(this),x.minor?r.minor.gridcolor:r.gridcolor||"#ddd")}).style("stroke-dasharray",function(x){return En.dashStyle(x.minor?r.minor.griddash:r.griddash,x.minor?r.minor.gridwidth:r.gridwidth)}).style("stroke-width",function(x){return(x.minor?c:r._gw)+"px"}).style("display",null),typeof t.path=="function"&&y.attr("d",t.path)}}P1(r,[g3,b3])}};Be.drawZeroLine=function(e,r,t){t=t||t;var a=r._id+"zl",n=Be.shouldShowZeroLine(e,r,t.counterAxis),i=t.layer.selectAll("path."+a).data(n?[{x:0,id:r._id}]:[]);i.exit().remove(),i.enter().append("path").classed(a,1).classed("zl",1).classed("crisp",t.crisp!==!1).each(function(){t.layer.selectAll("path").sort(function(l,o){return kte(l.id,o.id)})}),i.attr("transform",t.transFn).attr("d",t.path).call(Bf.stroke,r.zerolinecolor||Bf.defaultLine).style("stroke-width",En.crispRound(e,r.zerolinewidth,r._gw||1)+"px").style("display",null),P1(r,[y3])};Be.drawLabels=function(e,r,t){t=t||{};var a=e._fullLayout,n=r._id,i=r.zerolinelayer==="above traces",l=t.cls||n+"tick",o=t.vals.filter(function(X){return X.text}),s=t.labelFns,u=t.secondary?0:r.tickangle,f=(r._prevTickAngles||{})[l],c=t.layer.selectAll("g."+l).data(r.showticklabels?o:[],E1),d=[];c.enter().append("g").classed(l,1).append("text").attr("text-anchor","middle").each(function(X){var Z=jn.select(this),W=e._promises.length;Z.call(cs.positionText,s.xFn(X),s.yFn(X)).call(En.font,{family:X.font,size:X.fontSize,color:X.fontColor,weight:X.fontWeight,style:X.fontStyle,variant:X.fontVariant,textcase:X.fontTextcase,lineposition:X.fontLineposition,shadow:X.fontShadow}).text(X.text).call(cs.convertToTspans,e),e._promises[W]?d.push(e._promises.pop().then(function(){h(Z,u)})):h(Z,u)}),P1(r,[Ok]),c.exit().remove(),t.repositionOnUpdate&&c.each(function(X){jn.select(this).select("text").call(cs.positionText,s.xFn(X),s.yFn(X))});function h(X,Z){X.each(function(W){var ee=jn.select(this),ne=ee.select(".text-math-group"),fe=s.anchorFn(W,Z),we=t.transFn.call(ee.node(),W)+(Wt(Z)&&+Z!=0?" rotate("+Z+","+s.xFn(W)+","+(s.yFn(W)-W.fontSize/2)+")":""),j=cs.lineCount(ee),_e=Of*W.fontSize,ue=s.heightFn(W,Wt(Z)?+Z:0,(j-1)*_e);if(ue&&(we+=O0(0,ue)),ne.empty()){var Me=ee.select("text");Me.attr({transform:we,"text-anchor":fe}),Me.style("display",null),r._adjustTickLabelsOverflow&&r._adjustTickLabelsOverflow()}else{var ge=En.bBox(ne.node()).width,ce=ge*{end:-.5,start:.5}[fe];ne.attr("transform",we+O0(ce,0))}})}r._adjustTickLabelsOverflow=function(){var X=r.ticklabeloverflow;if(!(!X||X==="allow")){var Z=X.indexOf("hide")!==-1,W=r._id.charAt(0)==="x",ee=0,ne=W?e._fullLayout.width:e._fullLayout.height;if(X.indexOf("domain")!==-1){var fe=Ar.simpleMap(r.range,r.r2l);ee=r.l2p(fe[0])+r._offset,ne=r.l2p(fe[1])+r._offset}var we=Math.min(ee,ne),j=Math.max(ee,ne),_e=r.side,ue=1/0,Me=-1/0;c.each(function(ze){var be=jn.select(this),qe=be.select(".text-math-group");if(qe.empty()){var Ce=En.bBox(be.node()),De=0;W?(Ce.right>j||Ce.leftj||Ce.top+(r.tickangle?0:ze.fontSize/4)r["_visibleLabelMin_"+fe._id]?be.style("display","none"):j.K==="tick"&&!we&&be.node().style.display!=="none"&&be.style("display",null)})})})})},h(c,f+1?f:u);function m(){return d.length&&Promise.all(d)}var g=null;function y(){if(h(c,u),o.length&&r.autotickangles&&(r.type!=="log"||String(r.dtick).charAt(0)!=="D")){g=r.autotickangles[0];var X=0,Z=[],W,ee=1;c.each(function(Pe){X=Math.max(X,Pe.fontSize);var Qe=r.l2p(Pe.x),re=_3(this),he=En.bBox(re.node());ee=Math.max(ee,cs.lineCount(re)),Z.push({top:0,bottom:10,height:10,left:Qe-he.width/2,right:Qe+he.width/2+2,width:he.width+2})});var ne=(r.tickson==="boundaries"||r.showdividers)&&!t.secondary,fe=o.length,we=Math.abs((o[fe-1].x-o[0].x)*r._m)/(fe-1),j=ne?we/2:we,_e=ne?r.ticklen:X*1.25*ee,ue=Math.sqrt(Math.pow(j,2)+Math.pow(_e,2)),Me=j/ue,ge=r.autotickangles.map(function(Pe){return Pe*Math.PI/180}),ce=ge.find(function(Pe){return Math.abs(Math.cos(Pe))<=Me});ce===void 0&&(ce=ge.reduce(function(Pe,Qe){return Math.abs(Math.cos(Pe))Y*H&&(N=H,q[L]=P[L]=I[L])}var G=Math.abs(N-z);G-M>0?(G-=M,M*=1+M/G):M=0,r._id.charAt(0)!=="y"&&(M=-M),q[A]=T.p2r(T.r2p(P[A])+S*M),T.autorange==="min"||T.autorange==="max reversed"?(q[0]=null,T._rangeInitial0=void 0,T._rangeInitial1=void 0):(T.autorange==="max"||T.autorange==="min reversed")&&(q[1]=null,T._rangeInitial0=void 0,T._rangeInitial1=void 0),a._insideTickLabelsUpdaterange[T._name+".range"]=q}var O=Ar.syncOrAsync(x);return O&&O.then&&e._promises.push(O),O};function jte(e,r,t){var a=r._id+"divider",n=t.vals,i=t.layer.selectAll("path."+a).data(n,E1);i.exit().remove(),i.enter().insert("path",":first-child").classed(a,1).classed("crisp",1).call(Bf.stroke,r.dividercolor).style("stroke-width",En.crispRound(e,r.dividerwidth,1)+"px"),i.attr("transform",t.transFn).attr("d",t.path)}Be.getPxPosition=function(e,r){var t=e._fullLayout._size,a=r._id.charAt(0),n=r.side,i;if(r.anchor!=="free"?i=r._anchorAxis:a==="x"?i={_offset:t.t+(1-(r.position||0))*t.h,_length:0}:a==="y"&&(i={_offset:t.l+(r.position||0)*t.w+r._shift,_length:0}),n==="top"||n==="left")return i._offset;if(n==="bottom"||n==="right")return i._offset+i._length};function $k(e){var r=e.title.font.size,t=(e.title.text.match(cs.BR_TAG_ALL)||[]).length;return e.title.hasOwnProperty("standoff")?r*(ds+t*Of):t?r*(t+1)*Of:r}function Qte(e,r){var t=e._fullLayout,a=r._id,n=a.charAt(0),i=r.title.font.size,l,o=(r.title.text.match(cs.BR_TAG_ALL)||[]).length;if(r.title.hasOwnProperty("standoff"))r.side==="bottom"||r.side==="right"?l=r._depth+r.title.standoff+i*ds:(r.side==="top"||r.side==="left")&&(l=r._depth+r.title.standoff+i*(Nf+o*Of));else{var s=Uf(r);if(r.type==="multicategory")l=r._depth;else{var u=1.5*i;s&&(u=.5*i,r.ticks==="outside"&&(u+=r.ticklen)),l=10+u+(r.linewidth?r.linewidth-1:0)}s||(n==="x"?l+=r.side==="top"?i*(r.showticklabels?1:0):i*(r.showticklabels?1.5:.5):l+=r.side==="right"?i*(r.showticklabels?1:.5):i*(r.showticklabels?.5:0))}var f=Be.getPxPosition(e,r),c,d,h;n==="x"?(d=r._offset+r._length/2,h=r.side==="top"?f-l:f+l):(h=r._offset+r._length/2,d=r.side==="right"?f+l:f-l,c={rotate:"-90",offset:0});var m;if(r.type!=="multicategory"){var g=r._selections[r._id+"tick"];if(m={selection:g,side:r.side},g&&g.node()&&g.node().parentNode){var y=En.getTranslate(g.node().parentNode);m.offsetLeft=y.x,m.offsetTop=y.y}r.title.hasOwnProperty("standoff")&&(m.pad=0)}return r._titleStandoff=l,yte.draw(e,a+"title",{propContainer:r,propName:r._name+".title.text",placeholder:t._dfltTitle[n],avoid:m,transform:c,attributes:{x:d,y:h,"text-anchor":"middle"}})}Be.shouldShowZeroLine=function(e,r,t){var a=Ar.simpleMap(r.range,r.r2l);return a[0]*a[1]<=0&&r.zeroline&&(r.type==="linear"||r.type==="-")&&!(r.rangebreaks&&r.maskBreaks(0)===L1)&&(iC(r,0)||!eae(e,r,t,a)||rae(e,r))};Be.clipEnds=function(e,r){return r.filter(function(t){return iC(e,t.x)})};function iC(e,r){var t=e.l2p(r);return t>1&&t1)for(n=1;n=n.min&&e=Mte:/%L/.test(r)?e>=wte:/%[SX]/.test(r)?e>=S1:/%M/.test(r)?e>=Hf:/%[HI]/.test(r)?e>=el:/%p/.test(r)?e>=io:/%[Aadejuwx]/.test(r)?e>=ja:/%[UVW]/.test(r)?e>=Pn:/%[Bbm]/.test(r)?e>=C1:/%[q]/.test(r)?e>=k1:/%[Yy]/.test(r)?e>=A1:!0}});var fC=J((r5e,uC)=>{"use strict";uC.exports=function(r,t,a){var n,i;if(a){var l=t==="reversed"||t==="min reversed"||t==="max reversed";n=a[l?1:0],i=a[l?0:1]}var o=r("autorangeoptions.minallowed",i===null?n:void 0),s=r("autorangeoptions.maxallowed",n===null?i:void 0);o===void 0&&r("autorangeoptions.clipmin"),s===void 0&&r("autorangeoptions.clipmax"),r("autorangeoptions.include")}});var S3=J((t5e,cC)=>{"use strict";var oae=fC();cC.exports=function(r,t,a,n){var i=t._template||{},l=t.type||i.type||"-";a("minallowed"),a("maxallowed");var o=a("range");if(!o){var s;!n.noInsiderange&&l!=="log"&&(s=a("insiderange"),s&&(s[0]===null||s[1]===null)&&(t.insiderange=!1,s=void 0),s&&(o=a("range",s)))}var u=t.getAutorangeDflt(o,n),f=a("autorange",u),c;o&&(o[0]===null&&o[1]===null||(o[0]===null||o[1]===null)&&(f==="reversed"||f===!0)||o[0]!==null&&(f==="min"||f==="max reversed")||o[1]!==null&&(f==="max"||f==="min reversed"))&&(o=void 0,delete t.range,t.autorange=!0,c=!0),c||(u=t.getAutorangeDflt(o,n),f=a("autorange",u)),f&&(oae(a,f,o),(l==="linear"||l==="-")&&a("rangemode")),t.cleanRange()}});var dC=J((a5e,vC)=>{var sae={left:0,top:0};vC.exports=uae;function uae(e,r,t){r=r||e.currentTarget||e.srcElement,Array.isArray(t)||(t=[0,0]);var a=e.clientX||0,n=e.clientY||0,i=fae(r);return t[0]=a-i.left,t[1]=n-i.top,t}function fae(e){return e===window||e===document||e===document.body?sae:e.getBoundingClientRect()}});var D3=J((n5e,hC)=>{"use strict";var cae=tg();function vae(){var e=!1;try{var r=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("test",null,r),window.removeEventListener("test",null,r)}catch(t){e=!1}return e}hC.exports=cae&&vae()});var mC=J((i5e,pC)=>{"use strict";pC.exports=function(r,t,a,n,i){var l=(r-a)/(n-a),o=l+t/(n-a),s=(l+o)/2;return i==="left"||i==="bottom"?l:i==="center"||i==="middle"?s:i==="right"||i==="top"?o:l<2/3-s?l:o>4/3-s?o:s}});var bC=J((l5e,gC)=>{"use strict";var yC=Re(),dae=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];gC.exports=function(r,t,a,n){return a==="left"?r=0:a==="center"?r=1:a==="right"?r=2:r=yC.constrain(Math.floor(r*3),0,2),n==="bottom"?t=0:n==="middle"?t=1:n==="top"?t=2:t=yC.constrain(Math.floor(t*3),0,2),dae[t][r]}});var _C=J((o5e,xC)=>{"use strict";var hae=Af(),pae=R2(),mae=yf().getGraphDiv,yae=(Ku(),Xe($u)),L3=xC.exports={};L3.wrapped=function(e,r,t){var i;e=mae(e),e._fullLayout&&pae.clear(e._fullLayout._uid+yae.HOVERID);let a=e._hoverdata;L3.raw(e,r,t)&&e._hoverAnywhereActive&&(e._hoverAnywhereActive=!1,(i=e._fullLayout)!=null&&i.hoveranywhere&&(r!=null&&r.target)&&!a&&e.emit("plotly_unhover",{event:r,points:[]}))};L3.raw=function(r,t){var a=r._fullLayout,n=r._hoverdata;return t||(t={}),t.target&&!r._dragged&&hae.triggerHandler(r,"plotly_beforehover",t)===!1?!1:(a._hoverlayer.selectAll("g").remove(),a._hoverlayer.selectAll("line").remove(),a._hoverlayer.selectAll("circle").remove(),r._hoverdata=void 0,t.target&&n&&r.emit("plotly_unhover",{event:t,points:n}),!0)}});var Ci=J((s5e,AC)=>{"use strict";var gae=dC(),q3=ng(),bae=D3(),xae=Re().removeElement,_ae=(ya(),Xe(ma)),hs=AC.exports={};hs.align=mC();hs.getCursor=bC();var MC=_C();hs.unhover=MC.wrapped;hs.unhoverRaw=MC.raw;hs.init=function(r){var t=r.gd,a=1,n=t._context.doubleClickDelay,i=r.element,l,o,s,u,f,c,d,h;t._mouseDownTime||(t._mouseDownTime=0),i.style.pointerEvents="all",i.onmousedown=y,bae?(i._ontouchstart&&i.removeEventListener("touchstart",i._ontouchstart),i._ontouchstart=y,i.addEventListener("touchstart",y,{passive:!1})):i.ontouchstart=y;function m(T,b,M){return Math.abs(T)n&&(a=Math.max(a-1,1)),t._dragged)r.doneFn&&r.doneFn();else{var b;c.target===d?b=c:(b={target:d,srcElement:d,toElement:d},Object.keys(c).concat(Object.keys(c.__proto__)).forEach(M=>{var S=c[M];!b[M]&&typeof S!="function"&&(b[M]=S)})),r.clickFn&&r.clickFn(a,b),h||d.dispatchEvent(new MouseEvent("click",T))}t._dragging=!1,t._dragged=!1}};function TC(){var e=document.createElement("div");e.className="dragcover";var r=e.style;return r.position="fixed",r.left=0,r.right=0,r.top=0,r.bottom=0,r.zIndex=999999999,r.background="none",document.body.appendChild(e),e}hs.coverSlip=TC;function wC(e){return gae(e.changedTouches?e.changedTouches[0]:e,document.body)}});var lo=J((u5e,kC)=>{"use strict";kC.exports=function(r,t){(r.attr("class")||"").split(" ").forEach(function(a){a.indexOf("cursor-")===0&&r.classed(a,!1)}),t&&r.classed("cursor-"+t,!0)}});var DC=J((f5e,SC)=>{"use strict";var E3=lo(),Gf="data-savedcursor",CC="!!";SC.exports=function(r,t){var a=r.attr(Gf);if(t){if(!a){for(var n=(r.attr("class")||"").split(" "),i=0;i{"use strict";var P3=Ea(),wae=Xi();LC.exports={_isSubplotObj:!0,visible:{valType:"boolean",dflt:!0,editType:"legend"},bgcolor:{valType:"color",editType:"legend"},bordercolor:{valType:"color",dflt:wae.defaultLine,editType:"legend"},maxheight:{valType:"number",min:0,editType:"legend"},borderwidth:{valType:"number",min:0,dflt:0,editType:"legend"},font:P3({editType:"legend"}),grouptitlefont:P3({editType:"legend"}),orientation:{valType:"enumerated",values:["v","h"],dflt:"v",editType:"legend"},traceorder:{valType:"flaglist",flags:["reversed","grouped"],extras:["normal"],editType:"legend"},tracegroupgap:{valType:"number",min:0,dflt:10,editType:"legend"},entrywidth:{valType:"number",min:0,editType:"legend"},entrywidthmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels",editType:"legend"},indentation:{valType:"number",min:-15,dflt:0,editType:"legend"},itemsizing:{valType:"enumerated",values:["trace","constant"],dflt:"trace",editType:"legend"},itemwidth:{valType:"number",min:30,dflt:30,editType:"legend"},itemclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggle",editType:"legend"},itemdoubleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggleothers",editType:"legend"},groupclick:{valType:"enumerated",values:["toggleitem","togglegroup"],dflt:"togglegroup",editType:"legend"},groupdoubleclick:{valType:"enumerated",values:["toggleitem","togglegroup"],editType:"legend"},titleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],editType:"legend"},titledoubleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],editType:"legend"},x:{valType:"number",editType:"legend"},xref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"legend"},y:{valType:"number",editType:"legend"},yref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],editType:"legend"},uirevision:{valType:"any",editType:"none"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"legend"},title:{text:{valType:"string",dflt:"",editType:"legend"},font:P3({editType:"legend"}),side:{valType:"enumerated",values:["top","left","top left","top center","top right"],editType:"legend"},editType:"legend"},editType:"legend"}});var Xf=J(Vf=>{"use strict";Vf.isGrouped=function(r){return(r.traceorder||"").indexOf("grouped")!==-1};Vf.isVertical=function(r){return r.orientation!=="h"};Vf.isReversed=function(r){return(r.traceorder||"").indexOf("reversed")!==-1};Vf.getId=function(r){return r._id||"legend"}});var F3=J((d5e,qC)=>{"use strict";var R1=kr(),Rn=Re(),Mae=mt(),Tae=yi(),Aae=R3(),kae=x0(),z3=Xf();function Cae(e,r,t,a,n){var i=r[e]||{},l=Mae.newContainer(t,e);function o(Z,W){return Rn.coerce(i,l,Aae,Z,W)}var s=Rn.coerceFont(o,"font",t.font);o("bgcolor",t.paper_bgcolor),o("bordercolor");var u=o("visible");if(!u)return;var f,c=function(Z,W){var ee=f._input,ne=f;return Rn.coerce(ee,ne,Tae,Z,W)},d=t.font||{},h=Rn.coerceFont(o,"grouptitlefont",d,{overrideDflt:{size:Math.round(d.size*1.1)}}),m=0,g=!1,y="normal",x=(t.shapes||[]).filter(function(Z){return Z.showlegend});function w(Z){return R1.traceIs(Z,"pie-like")&&Z._length!=null&&(Array.isArray(Z.legend)||Array.isArray(Z.showlegend))}a.filter(w).forEach(function(Z){Z.visible&&m++;for(var W=0;WZ.legend.length)for(var ne=Z.legend.length;ne(e==="legend"?1:0));if(S===!1&&(t[e]=void 0),S===!1&&!i.uirevision||(o("uirevision",t.uirevision),S===!1))return;o("borderwidth");var A=o("orientation"),L=o("yref"),q=o("xref"),P=A==="h",z=L==="paper",N=q==="paper",I,B,H,Y="left";P?(I=0,R1.getComponentMethod("rangeslider","isVisible")(r.xaxis)?z?(B=1.1,H="bottom"):(B=1,H="top"):z?(B=-.1,H="top"):(B=0,H="bottom")):(B=1,H="auto",N?I=1.02:(I=1,Y="right")),Rn.coerce(i,l,{x:{valType:"number",editType:"legend",min:N?-2:0,max:N?3:1,dflt:I}},"x"),Rn.coerce(i,l,{y:{valType:"number",editType:"legend",min:z?-2:0,max:z?3:1,dflt:B}},"y"),o("traceorder",y),z3.isGrouped(t[e])&&o("tracegroupgap"),o("entrywidth"),o("entrywidthmode"),o("indentation"),o("itemsizing"),o("itemwidth"),o("itemclick"),o("itemdoubleclick");let G=o("groupclick");o("groupdoubleclick",G),o("xanchor",Y),o("yanchor",H),o("maxheight"),o("valign"),Rn.noneOrAll(i,l,["x","y"]);var O=o("title.text");if(O){o("title.side",P?"left":"top");var X=Rn.extendFlat({},s,{size:Rn.bigFont(s.size)});Rn.coerceFont(o,"title.font",X);let Z=n>1;o("titleclick",Z?"toggle":!1),o("titledoubleclick",Z?"toggleothers":!1)}}qC.exports=function(r,t,a){var n,i=a.slice(),l=t.shapes;if(l)for(n=0;n{"use strict";var oo=kr(),N3=Re(),Sae=N3.pushUnique,Dae=Xf(),EC=!0;I3.handleItemClick=function(r,t,a,n,i){var l=t._fullLayout;if(t._dragged||t._editing)return;var o=r.data()[0][0];if(o.groupTitle&&o.noClick)return;let s=i===2?a.groupdoubleclick:a.groupclick;n==="toggle"&&a.itemdoubleclick==="toggleothers"&&EC&&t.data&&t._context.showTips&&(N3.notifier(N3._(t,"Double-click on legend to isolate one trace"),"long",t),EC=!1);var u=s==="togglegroup",f=l.hiddenlabels?l.hiddenlabels.slice():[],c=t._fullData;let d=(l.shapes||[]).filter(Ee=>Ee.showlegend||Ee.legendgroup);var h=c.concat(d),m=o.trace;m._isShape&&(m=l.shapes[m.index]);var g=m.legendgroup,y,x,w,T,b,M,S={},A=[],L=[],q=[];function P(Ee,Ue){var ke=A.indexOf(Ee),We=S.visible;return We||(We=S.visible=[]),A.indexOf(Ee)===-1&&(A.push(Ee),ke=A.length-1),We[ke]=Ue,ke}var z=(l.shapes||[]).map(function(Ee){return Ee._input}),N=!1;function I(Ee,Ue){z[Ee].visible=Ue,N=!0}function B(Ee,Ue){if(!(o.groupTitle&&!u)){var ke=Ee._isShape,We=Ee.index;We===void 0&&(We=Ee._index);var je=Ee.visible===!1?!1:Ue;ke?I(We,je):P(We,je)}}var H=m.legend;if(!m._isShape&&oo.traceIs(m,"pie-like")){var Y=o.label,G=f.indexOf(Y);if(n==="toggle")G===-1?f.push(Y):f.splice(G,1);else if(n==="toggleothers"){var O=G!==-1,X=[];for(y=0;yx.showlegend||x.legendgroup),s=i.concat(o);function u(x){return(x.legend||"legend")===l}var f,c;if(a==="toggle")f=!s.some(function(w){return u(w)&&w.visible===!0}),c=!1;else{let x=s.some(function(w){return!u(w)&&w.visible===!0&&w.showlegend!==!1});f=!0,c=!x}let d={visible:[]},h=[],m=(n.shapes||[]).map(function(x){return x._input});for(var g=!1,y=0;yFae,scrollBarColor:()=>Eae,scrollBarEnterAttrs:()=>Rae,scrollBarMargin:()=>Pae,scrollBarMinHeight:()=>qae,scrollBarWidth:()=>Lae,titlePad:()=>zae});var Lae,qae,Eae,Pae,Rae,zae,Fae,O3=Pt(()=>{"use strict";Lae=6,qae=20,Eae="#808BA4",Pae=4,Rae={rx:20,ry:3,width:0,height:0},zae=2,Fae=5});var zC=J((p5e,RC)=>{"use strict";var{isArrayOrTypedArray:Y3}=hn(),PC=kr(),U3=Xf();RC.exports=function(r,t,a){var n=t._inHover,i=U3.isGrouped(t),l=U3.isReversed(t),o={},s=[],u=!1,f={},c=0,d=0,h,m;function g(Z,W,ee){if(t.visible!==!1&&!(a&&Z!==t._id))if(W===""||!U3.isGrouped(t)){var ne="~~i"+c;s.push(ne),o[ne]=[ee],c++}else s.indexOf(W)===-1?(s.push(W),u=!0,o[W]=[ee]):o[W].push(ee)}for(h=0;hI&&(z=I)}q[h][0]._groupMinRank=z,q[h][0]._preGroupSort=h}var B=function(Z,W){return Z[0]._groupMinRank-W[0]._groupMinRank||Z[0]._preGroupSort-W[0]._preGroupSort},H=function(Z,W){var ee=Y3(Z.trace.legendrank)?Z.trace.legendrank[Z.i]:Z.trace.legendrank,ne=Y3(W.trace.legendrank)?W.trace.legendrank[W.i]:W.trace.legendrank;return ee-ne||Z._preSort-W._preSort};for(q.forEach(function(Z,W){Z[0]._preGroupSort=W}),q.sort(B),h=0;h{"use strict";var z1=Re();function FC(e){return e.indexOf("e")!==-1?e.replace(/[.]?0+e/,"e"):e.indexOf(".")!==-1?e.replace(/[.]?0+$/,""):e}ps.formatPiePercent=function(r,t){var a=FC((r*100).toPrecision(3));return z1.numSeparate(a,t)+"%"};ps.formatPieValue=function(r,t){var a=FC(r.toPrecision(10));return z1.numSeparate(a,t)};ps.getFirstFilled=function(r,t){if(z1.isArrayOrTypedArray(r))for(var a=0;a{"use strict";var Nae=lt(),Iae=Nr();NC.exports=function(r,t,a,n){var i=a.marker.pattern;i&&i.shape?Nae.pointStyle(r,a,n,t):Iae.fill(r,t.color)}});var N1=J((g5e,OC)=>{"use strict";var BC=Nr(),HC=F1().castOption,Bae=IC();OC.exports=function(r,t,a,n){var i=a.marker.line,l=HC(i.color,t.pts)||BC.defaultLine,o=HC(i.width,t.pts)||0;r.call(Bae,t,a,n).style("stroke-width",o).call(BC.stroke,l)}});var W3=J((b5e,WC)=>{"use strict";var Qa=Or(),G3=kr(),Ya=Re(),YC=Ya.strTranslate,zn=lt(),Qn=Nr(),V3=Kn().extractOpts,I1=qn(),Hae=N1(),Oae=F1().castOption,Yae=(O3(),Xe(H3)),UC=12,GC=5,ms=2,Uae=10,G0=5;WC.exports=function(r,t,a){var n=t._fullLayout;a||(a=n.legend);var i=a.itemsizing==="constant",l=a.itemwidth,o=(l+Yae.itemGap*2)/2,s=YC(o,0),u=function(A,L,q,P){var z;if(A+1)z=A;else if(L&&L.width>0)z=L.width;else return 0;return i?P:Math.min(z,q)};r.each(function(A){var L=Qa.select(this),q=Ya.ensureSingle(L,"g","layers");q.style("opacity",A[0].trace.opacity);var P=a.indentation,z=a.valign,N=A[0].lineHeight,I=A[0].height;if(z==="middle"&&P===0||!N||!I)q.attr("transform",null);else{var B={top:1,bottom:-1}[z],H=B*(.5*(N-I+3))||0,Y=a.indentation;q.attr("transform",YC(Y,H))}var G=q.selectAll("g.legendfill").data([A]);G.enter().append("g").classed("legendfill",!0);var O=q.selectAll("g.legendlines").data([A]);O.enter().append("g").classed("legendlines",!0);var X=q.selectAll("g.legendsymbols").data([A]);X.enter().append("g").classed("legendsymbols",!0),X.selectAll("g.legendpoints").data([A]).enter().append("g").classed("legendpoints",!0)}).each(S).each(d).each(m).each(h).each(y).each(b).each(T).each(f).each(c).each(x).each(w);function f(A){var L=VC(A),q=L.showFill,P=L.showLine,z=L.showGradientLine,N=L.showGradientFill,I=L.anyFill,B=L.anyLine,H=A[0],Y=H.trace,G,O,X=V3(Y),Z=X.colorscale,W=X.reversescale,ee=function(Me){if(Me.size())if(q)zn.fillGroupStyle(Me,t,!0);else{var ge="legendfill-"+Y.uid;zn.gradient(Me,t,ge,X3(W),Z,"fill")}},ne=function(Me){if(Me.size()){var ge="legendline-"+Y.uid;zn.lineGroupStyle(Me),zn.gradient(Me,t,ge,X3(W),Z,"stroke")}},fe=I1.hasMarkers(Y)||!I?"M5,0":B?"M5,-2":"M5,-3",we=Qa.select(this),j=we.select(".legendfill").selectAll("path").data(q||N?[A]:[]);if(j.enter().append("path").classed("js-fill",!0),j.exit().remove(),j.attr("d",fe+"h"+l+"v6h-"+l+"z").call(ee),P||z){var _e=u(void 0,Y.line,Uae,GC);O=Ya.minExtend(Y,{line:{width:_e}}),G=[Ya.minExtend(H,{trace:O})]}var ue=we.select(".legendlines").selectAll("path").data(P||z?[G]:[]);ue.enter().append("path").classed("js-line",!0),ue.exit().remove(),ue.attr("d",fe+(z?"l"+l+",0.0001":"h"+l)).call(P?zn.lineGroupStyle:ne)}function c(A){var L=VC(A),q=L.anyFill,P=L.anyLine,z=L.showLine,N=L.showMarker,I=A[0],B=I.trace,H=!N&&!P&&!q&&I1.hasText(B),Y,G;function O(_e,ue,Me,ge){var ce=Ya.nestedProperty(B,_e).get(),Te=Ya.isArrayOrTypedArray(ce)&&ue?ue(ce):ce;if(i&&Te&&ge!==void 0&&(Te=ge),Me){if(TeMe[1])return Me[1]}return Te}function X(_e){return I._distinct&&I.index&&_e[I.index]?_e[I.index]:_e[0]}if(N||H||z){var Z={},W={};if(N){Z.mc=O("marker.color",X);var ee=B.type==="scattermap";Z.mx=ee?"circle":O("marker.symbol",X),Z.mo=O("marker.opacity",Ya.mean,[.2,1]),Z.mlc=O("marker.line.color",X),Z.mlw=O("marker.line.width",Ya.mean,[0,5],ms),Z.mld=O("marker.line.dash",X),W.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var ne=O("marker.size",Ya.mean,[2,16],UC);Z.ms=ne,W.marker.size=ne}z&&(W.line={width:O("line.width",X,[0,10],GC)}),H&&(Z.tx="Aa",Z.tp=O("textposition",X),Z.ts=10,Z.tc=O("textfont.color",X),Z.tf=O("textfont.family",X),Z.tw=O("textfont.weight",X),Z.ty=O("textfont.style",X),Z.tv=O("textfont.variant",X),Z.tC=O("textfont.textcase",X),Z.tE=O("textfont.lineposition",X),Z.tS=O("textfont.shadow",X)),Y=[Ya.minExtend(I,Z)],G=Ya.minExtend(B,W),G.selectedpoints=null,G.texttemplate=null}var fe=Qa.select(this).select("g.legendpoints"),we=fe.selectAll("path.scatterpts").data(N?Y:[]);we.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",s),we.exit().remove(),we.call(zn.pointStyle,G,t),N&&(Y[0].mrc=3);var j=fe.selectAll("g.pointtext").data(H?Y:[]);j.enter().append("g").classed("pointtext",!0).append("text").attr("transform",s),j.exit().remove(),j.selectAll("text").call(zn.textPointStyle,G,t)}function d(A){var L=A[0].trace,q=L.type==="waterfall";if(A[0]._distinct&&q){var P=A[0].trace[A[0].dir].marker;return A[0].mc=P.color,A[0].mlw=P.line.width,A[0].mlc=P.line.color,g(A,this,"waterfall")}var z=[];L.visible&&q&&(z=A[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 N=Qa.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data(z);N.enter().append("path").classed("legendwaterfall",!0).attr("transform",s).style("stroke-miterlimit",1),N.exit().remove(),N.each(function(I){var B=Qa.select(this),H=L[I[0]].marker,Y=u(void 0,H.line,G0,ms);B.attr("d",I[1]).style("stroke-width",Y+"px").call(Qn.fill,H.color),Y&&B.call(Qn.stroke,H.line.color)})}function h(A){g(A,this)}function m(A){g(A,this,"funnel")}function g(A,L,q){var P=A[0].trace,z=P.marker||{},N=z.line||{},I=z.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",B=q?P.visible&&P.type===q:G3.traceIs(P,"bar"),H=Qa.select(L).select("g.legendpoints").selectAll("path.legend"+q).data(B?[A]:[]);H.enter().append("path").classed("legend"+q,!0).attr("d",I).attr("transform",s),H.exit().remove(),H.each(function(Y){var G=Qa.select(this),O=Y[0],X=u(O.mlw,z.line,G0,ms);G.style("stroke-width",X+"px");var Z=O.mcc;if(!a._inHover&&"mc"in O){var W=V3(z),ee=W.mid;ee===void 0&&(ee=(W.max+W.min)/2),Z=zn.tryColorscale(z,"")(ee)}var ne=Z||O.mc||z.color,fe=z.pattern,we=zn.getPatternAttr,j=fe&&(we(fe.shape,0,"")||we(fe.path,0,""));if(j){var _e=we(fe.bgcolor,0,null),ue=we(fe.fgcolor,0,null),Me=fe.fgopacity,ge=XC(fe.size,8,10),ce=XC(fe.solidity,.5,1),Te="legend-"+P.uid;G.call(zn.pattern,"legend",t,Te,j,ge,ce,Z,fe.fillmode,_e,ue,Me)}else G.call(Qn.fill,ne);X&&Qn.stroke(G,O.mlc||N.color)})}function y(A){var L=A[0].trace,q=Qa.select(this).select("g.legendpoints").selectAll("path.legendbox").data(L.visible&&G3.traceIs(L,"box-violin")?[A]:[]);q.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform",s),q.exit().remove(),q.each(function(){var P=Qa.select(this);if((L.boxpoints==="all"||L.points==="all")&&Qn.opacity(L.fillcolor)===0&&Qn.opacity((L.line||{}).color)===0){var z=Ya.minExtend(L,{marker:{size:i?UC:Ya.constrain(L.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});q.call(zn.pointStyle,z,t)}else{var N=u(void 0,L.line,G0,ms);P.style("stroke-width",N+"px").call(Qn.fill,L.fillcolor),N&&Qn.stroke(P,L.line.color)}})}function x(A){var L=A[0].trace,q=Qa.select(this).select("g.legendpoints").selectAll("path.legendcandle").data(L.visible&&L.type==="candlestick"?[A,A]:[]);q.enter().append("path").classed("legendcandle",!0).attr("d",function(P,z){return z?"M-15,0H-8M-8,6V-6H8Z":"M15,0H8M8,-6V6H-8Z"}).attr("transform",s).style("stroke-miterlimit",1),q.exit().remove(),q.each(function(P,z){var N=Qa.select(this),I=L[z?"increasing":"decreasing"],B=u(void 0,I.line,G0,ms);N.style("stroke-width",B+"px").call(Qn.fill,I.fillcolor),B&&Qn.stroke(N,I.line.color)})}function w(A){var L=A[0].trace,q=Qa.select(this).select("g.legendpoints").selectAll("path.legendohlc").data(L.visible&&L.type==="ohlc"?[A,A]:[]);q.enter().append("path").classed("legendohlc",!0).attr("d",function(P,z){return z?"M-15,0H0M-8,-6V0":"M15,0H0M8,6V0"}).attr("transform",s).style("stroke-miterlimit",1),q.exit().remove(),q.each(function(P,z){var N=Qa.select(this),I=L[z?"increasing":"decreasing"],B=u(void 0,I.line,G0,ms);N.style("fill","none").call(zn.dashLine,I.line.dash,B),B&&Qn.stroke(N,I.line.color)})}function T(A){M(A,this,"pie")}function b(A){M(A,this,"funnelarea")}function M(A,L,q){var P=A[0],z=P.trace,N=q?z.visible&&z.type===q:G3.traceIs(z,q),I=Qa.select(L).select("g.legendpoints").selectAll("path.legend"+q).data(N?[A]:[]);if(I.enter().append("path").classed("legend"+q,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",s),I.exit().remove(),I.size()){var B=z.marker||{},H=u(Oae(B.line.width,P.pts),B.line,G0,ms),Y="pieLike",G=Ya.minExtend(z,{marker:{line:{width:H}}},Y),O=Ya.minExtend(P,{trace:G},Y);Hae(I,O,G,t)}}function S(A){var L=A[0].trace,q,P=[];if(L.visible)switch(L.type){case"histogram2d":case"heatmap":P=[["M-15,-2V4H15V-2Z"]],q=!0;break;case"choropleth":case"choroplethmap":P=[["M-6,-6V6H6V-6Z"]],q=!0;break;case"densitymap":P=[["M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"]],q="radial";break;case"cone":P=[["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"]],q=!1;break;case"streamtube":P=[["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"]],q=!1;break;case"surface":P=[["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"]],q=!0;break;case"mesh3d":P=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],q=!1;break;case"volume":P=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],q=!0;break;case"isosurface":P=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6 A12,24 0 0,0 6,-6 L0,6Z"]],q=!1;break}var z=Qa.select(this).select("g.legendpoints").selectAll("path.legend3dandfriends").data(P);z.enter().append("path").classed("legend3dandfriends",!0).attr("transform",s).style("stroke-miterlimit",1),z.exit().remove(),z.each(function(N,I){var B=Qa.select(this),H=V3(L),Y=H.colorscale,G=H.reversescale,O=function(ee){if(ee.size()){var ne="legendfill-"+L.uid;zn.gradient(ee,t,ne,X3(G,q==="radial"),Y,"fill")}},X;if(Y){if(!q){var W=Y.length;X=I===0?Y[G?W-1:0][1]:I===1?Y[G?0:W-1][1]:Y[Math.floor((W-1)/2)][1]}}else{var Z=L.vertexcolor||L.facecolor||L.color;X=Ya.isArrayOrTypedArray(Z)?Z[I]||Z[0]:Z}B.attr("d",N[0]),X?B.call(Qn.fill,X):B.call(O)})}};function X3(e,r){var t=r?"radial":"horizontal";return t+(e?"":"reversed")}function VC(e){var r=e[0].trace,t=r.contours,a=I1.hasLines(r)||r.visible&&r.type==="quiver",n=I1.hasMarkers(r),i=r.visible&&r.fill&&r.fill!=="none",l=!1,o=!1;if(t){var s=t.coloring;s==="lines"?l=!0:a=s==="none"||s==="heatmap"||t.showlines,t.type==="constraint"?i=t._operation!=="=":(s==="fill"||s==="heatmap")&&(o=!0)}return{showMarker:n,showLine:a,showFill:i,showGradientLine:l,showGradientFill:o,anyLine:a||l,anyFill:i||o}}function XC(e,r,t){return e&&Ya.isArrayOrTypedArray(e)?r:e>t?t:e}});var K3=J((x5e,tS)=>{"use strict";var sn=Or(),Zt=Re(),J3=Qt(),ys=kr(),O1=Af(),Z3=Ci(),Jt=lt(),Wf=Nr(),gs=Ta(),ZC=B3().handleItemClick,JC=B3().handleTitleClick,ea=(O3(),Xe(H3)),$3=(Oa(),Xe(Ha)),eS=$3.LINE_SPACING,X0=$3.FROM_TL,$C=$3.FROM_BR,KC=zC(),Gae=W3(),W0=Xf(),V0=1,Vae=/^legend[0-9]*$/;tS.exports=function(r,t){if(t)jC(r,t);else{var a=r._fullLayout,n=a._legends,i=a._infolayer.selectAll('[class^="legend"]');i.each(function(){var u=sn.select(this),f=u.attr("class"),c=f.split(" ")[0];c.match(Vae)&&n.indexOf(c)===-1&&u.remove()});for(var l=0;l1)}var m=a.hiddenlabels||[];if(!o&&(!a.showlegend||!s.length))return l.selectAll("."+n).remove(),a._topdefs.select("#"+i).remove(),J3.autoMargin(e,n);var g=Zt.ensureSingle(l,"g",n,function(L){o||L.attr("pointer-events","all")}),y=Zt.ensureSingleById(a._topdefs,"clipPath",i,function(L){L.append("rect")}),x=Zt.ensureSingle(g,"rect","bg",function(L){L.attr("shape-rendering","crispEdges")});x.call(Wf.stroke,t.bordercolor).call(Wf.fill,t.bgcolor).style("stroke-width",t.borderwidth+"px");var w=Zt.ensureSingle(g,"g","scrollbox"),T=t.title;t._titleWidth=0,t._titleHeight=0;var b;T.text?(b=Zt.ensureSingle(w,"text",n+"titletext"),b.attr("text-anchor","start").call(Jt.font,T.font).text(T.text),H1(b,w,e,t,V0),!o&&(t.titleclick||t.titledoubleclick)&&Jae(w,e,t,n)):(w.selectAll("."+n+"titletext").remove(),w.selectAll("."+n+"titletoggle").remove());var M=Zt.ensureSingle(g,"rect","scrollbar",function(L){L.attr(ea.scrollBarEnterAttrs).call(Wf.fill,ea.scrollBarColor)}),S=w.selectAll("g.groups").data(s);S.enter().append("g").attr("class","groups"),S.exit().remove();var A=S.selectAll("g.traces").data(Zt.identity);A.enter().append("g").attr("class","traces"),A.exit().remove(),A.style("opacity",function(L){let q=L[0],P=q.trace;if(q.groupTitle){let z=P.legendgroup,N=(a.shapes||[]).filter(function(B){return B.showlegend});return e._fullData.concat(N).some(function(B){return B.legendgroup===z&&(B.legend||"legend")===n&&B.visible===!0})?1:.5}return ys.traceIs(P,"pie-like")?m.indexOf(L[0].label)!==-1?.5:1:P.visible==="legendonly"?.5:1}).each(function(){sn.select(this).call(Wae,e,t)}).call(Gae,e,t).each(function(L){o||L[0].groupTitle&&t.groupclick==="toggleitem"||sn.select(this).call(Zae,e,n)}),Zt.syncOrAsync([J3.previousPromises,function(){return jae(e,S,A,t,w)},function(){var L=a._size,q=t.borderwidth,P=t.xref==="paper",z=t.yref==="paper";if(T.text){let qe=(a.shapes||[]).filter(function(De){return De.showlegend}),Ce=e._fullData.concat(qe).some(function(De){let Ee=De.legend||"legend";var Ue=Array.isArray(Ee)?Ee.includes(n):Ee===n;return Ue&&De.visible===!0});b.style("opacity",Ce?1:.5)}if(!o){var N,I;P?N=L.l+L.w*t.x-X0[Y1(t)]*t._width:N=a.width*t.x-X0[Y1(t)]*t._width,z?I=L.t+L.h*(1-t.y)-X0[U1(t)]*t._effHeight:I=a.height*(1-t.y)-X0[U1(t)]*t._effHeight;var B=Qae(e,n,N,I);if(B)return;if(a.margin.autoexpand){var H=N,Y=I;N=P?Zt.constrain(N,0,a.width-t._width):H,I=z?Zt.constrain(I,0,a.height-t._effHeight):Y,N!==H&&Zt.log("Constrain "+n+".x to make legend fit inside graph"),I!==Y&&Zt.log("Constrain "+n+".y to make legend fit inside graph")}Jt.setTranslate(g,N,I)}if(M.on(".drag",null),g.on("wheel",null),o||t._height<=t._maxHeight||e._context.staticPlot){var G=t._effHeight;o&&(G=t._height),x.attr({width:t._width-q,height:G-q,x:q/2,y:q/2}),Jt.setTranslate(w,0,0),y.select("rect").attr({width:t._width-2*q,height:G-2*q,x:q,y:q}),Jt.setClipUrl(w,i,e),Jt.setRect(M,0,0,0,0),delete t._scrollY}else{var O=Math.max(ea.scrollBarMinHeight,t._effHeight*t._effHeight/t._height),X=t._effHeight-O-2*ea.scrollBarMargin,Z=t._height-t._effHeight,W=X/Z,ee=Math.min(t._scrollY||0,Z);x.attr({width:t._width-2*q+ea.scrollBarWidth+ea.scrollBarMargin,height:t._effHeight-q,x:q/2,y:q/2}),y.select("rect").attr({width:t._width-2*q+ea.scrollBarWidth+ea.scrollBarMargin,height:t._effHeight-2*q,x:q,y:q+ee}),Jt.setClipUrl(w,i,e),ge(ee,O,W),g.on("wheel",function(){ee=Zt.constrain(t._scrollY+sn.event.deltaY/Z*X,0,Z),ge(ee,O,W),ee!==0&&ee!==Z&&sn.event.preventDefault()});var ne,fe,we,j=function(qe,Ce,De){var Ee=(De-Ce)/W+qe;return Zt.constrain(Ee,0,Z)},_e=function(qe,Ce,De){var Ee=(Ce-De)/W+qe;return Zt.constrain(Ee,0,Z)},ue=sn.behavior.drag().on("dragstart",function(){var qe=sn.event.sourceEvent;qe.type==="touchstart"?ne=qe.changedTouches[0].clientY:ne=qe.clientY,we=ee}).on("drag",function(){var qe=sn.event.sourceEvent;qe.buttons===2||qe.ctrlKey||(qe.type==="touchmove"?fe=qe.changedTouches[0].clientY:fe=qe.clientY,ee=j(we,ne,fe),ge(ee,O,W))});M.call(ue);var Me=sn.behavior.drag().on("dragstart",function(){var qe=sn.event.sourceEvent;qe.type==="touchstart"&&(ne=qe.changedTouches[0].clientY,we=ee)}).on("drag",function(){var qe=sn.event.sourceEvent;qe.type==="touchmove"&&(fe=qe.changedTouches[0].clientY,ee=_e(we,ne,fe),ge(ee,O,W))});w.call(Me)}function ge(qe,Ce,De){t._scrollY=e._fullLayout[n]._scrollY=qe,Jt.setTranslate(w,0,-qe),Jt.setRect(M,t._width,ea.scrollBarMargin+qe*De,ea.scrollBarWidth,Ce),y.select("rect").attr("y",q+qe)}if(e._context.edits.legendPosition){var ce,Te,ze,be;g.classed("cursor-move",!0),Z3.init({element:g.node(),gd:e,prepFn:function(qe){if(qe.target!==M.node()){var Ce=Jt.getTranslate(g);ze=Ce.x,be=Ce.y}},moveFn:function(qe,Ce){if(ze!==void 0&&be!==void 0){var De=ze+qe,Ee=be+Ce;Jt.setTranslate(g,De,Ee),ce=Z3.align(De,t._width,L.l,L.l+L.w,t.xanchor),Te=Z3.align(Ee+t._height,-t._height,L.t+L.h,L.t,t.yanchor)}},doneFn:function(){if(ce!==void 0&&Te!==void 0){var qe={};qe[n+".x"]=ce,qe[n+".y"]=Te,ys.call("_guiRelayout",e,qe)}},clickFn:function(qe,Ce){var De=l.selectAll("g.traces").filter(function(){var Ee=this.getBoundingClientRect();return Ce.clientX>=Ee.left&&Ce.clientX<=Ee.right&&Ce.clientY>=Ee.top&&Ce.clientY<=Ee.bottom});De.size()>0&&rS(e,t,De,qe,Ce)}})}}],e)}}function B1(e,r,t){var a=e[0],n=a.width,i=r.entrywidthmode,l=a.trace.legendwidth||r.entrywidth;return i==="fraction"?r._maxWidth*l:t+(l||n)}function rS(e,r,t,a,n){var i=e._fullLayout,l=t.data()[0][0].trace,o=r.itemclick,s=r.itemdoubleclick,u={event:n,node:t.node(),curveNumber:l.index,expandedIndex:l.index,data:e.data,layout:e.layout,frames:e._transitionData._frames,config:e._context,fullData:e._fullData,fullLayout:i};l._group&&(u.group=l._group),ys.traceIs(l,"pie-like")&&(u.label=t.datum()[0].label);var f=O1.triggerHandler(e,"plotly_legendclick",u);if(a===1){if(f===!1)return;r._clickTimeout=setTimeout(function(){e._fullLayout&&o&&ZC(t,e,r,o,a)},e._context.doubleClickDelay)}else if(a===2){r._clickTimeout&&clearTimeout(r._clickTimeout),e._legendMouseDownTime=0;var c=O1.triggerHandler(e,"plotly_legenddoubleclick",u);c!==!1&&f!==!1&&s&&ZC(t,e,r,s,a)}}function Wae(e,r,t){var a=W0.getId(t),n=e.data()[0][0],i=n.trace,l=ys.traceIs(i,"pie-like"),o=!t._inHover&&r._context.edits.legendText&&!l,s=t._maxNameLength,u,f;n.groupTitle?(u=n.groupTitle.text,f=n.groupTitle.font):(f=t.font,t.entries?u=n.text:(u=l?n.label:i.name,i._meta&&(u=Zt.templateString(u,i._meta))));var c=Zt.ensureSingle(e,"text",a+"text");c.attr("text-anchor","start").call(Jt.font,f).text(o?QC(u,s):u);var d=t.indentation+t.itemwidth+ea.itemGap*2;gs.positionText(c,d,0),o?c.call(gs.makeEditable,{gd:r,text:u}).call(H1,e,r,t).on("edit",function(h){this.text(QC(h,s)).call(H1,e,r,t);var m={};return m.name=h,n.trace._isShape?ys.call("_guiRelayout",r,"shapes["+i.index+"].name",m.name):ys.call("_guiRestyle",r,m,i.index)}):H1(c,e,r,t)}function QC(e,r){var t=Math.max(4,r);if(e&&e.trim().length>=t/2)return e;e=e||"";for(var a=t-e.length;a>0;a--)e+=" ";return e}function Zae(e,r,t){var a=r._context.doubleClickDelay,n,i=1,l=Zt.ensureSingle(e,"rect",t+"toggle",function(o){r._context.staticPlot||o.style("cursor","pointer").attr("pointer-events","all"),o.call(Wf.fill,"rgba(0,0,0,0)")});r._context.staticPlot||(l.on("mousedown",function(){n=new Date().getTime(),n-r._legendMouseDownTimea&&(i=Math.max(i-1,1)),rS(r,o,e,i,sn.event)}}))}function Jae(e,r,t,a){if(r._fullData.some(function(u){let f=u.legend||"legend";return(Array.isArray(f)?f.includes(a):f===a)&&ys.traceIs(u,"pie-like")}))return;let i=r._context.doubleClickDelay;var l,o=1;let s=Zt.ensureSingle(e,"rect",a+"titletoggle",function(u){r._context.staticPlot||u.style("cursor","pointer").attr("pointer-events","all"),u.call(Wf.fill,"rgba(0,0,0,0)")});r._context.staticPlot||(s.on("mousedown",function(){l=new Date().getTime(),l-r._legendMouseDownTimei&&(o=Math.max(o-1,1));let u={event:sn.event,legendId:a,data:r.data,layout:r.layout,fullData:r._fullData,fullLayout:r._fullLayout};if(o===1&&t.titleclick){if(O1.triggerHandler(r,"plotly_legendtitleclick",u)===!1)return;t._titleClickTimeout=setTimeout(function(){r._fullLayout&&JC(r,t,t.titleclick)},i)}else o===2&&(t._titleClickTimeout&&clearTimeout(t._titleClickTimeout),r._legendMouseDownTime=0,O1.triggerHandler(r,"plotly_legendtitledoubleclick",u)!==!1&&t.titledoubleclick&&JC(r,t,t.titledoubleclick))}))}function H1(e,r,t,a,n){a._inHover&&e.attr("data-notex",!0),gs.convertToTspans(e,t,function(){$ae(r,t,a,n)})}function $ae(e,r,t,a){var n=e.data()[0][0],i=n&&n.trace.showlegend;if(Array.isArray(i)&&(i=i[n.i]!==!1),!t._inHover&&n&&!i){e.remove();return}var l=e.select("g[class*=math-group]"),o=l.node(),s=W0.getId(t);t||(t=r._fullLayout[s]);var u=t.borderwidth,f;a===V0?f=t.title.font:n.groupTitle?f=n.groupTitle.font:f=t.font;var c=f.size*eS,d,h;if(o){var m=Jt.bBox(o);d=m.height,h=m.width,a===V0?Jt.setTranslate(l,u,u+d*.75):Jt.setTranslate(l,0,d*.25)}else{var g="."+s+(a===V0?"title":"")+"text",y=e.select(g),x=gs.lineCount(y),w=y.node();if(d=c*x,h=w?Jt.bBox(w).width:0,a===V0)t.title.side==="left"&&(h+=ea.itemGap*2),gs.positionText(y,u+ea.titlePad,u+c);else{var T=ea.itemGap*2+t.indentation+t.itemwidth;n.groupTitle&&(T=ea.itemGap,h-=t.indentation+t.itemwidth),gs.positionText(y,T,-c*((x-1)/2-.3))}}a===V0?(t._titleWidth=h,t._titleHeight=d):(n.lineHeight=c,n.height=Math.max(d,16)+3,n.width=h)}function Kae(e){var r=0,t=0,a=e.title.side;return a&&(a.indexOf("left")!==-1&&(r=e._titleWidth),a.indexOf("top")!==-1&&(t=e._titleHeight)),[r,t]}function jae(e,r,t,a,n){var i=e._fullLayout,l=W0.getId(a);a||(a=i[l]);var o=i._size,s=W0.isVertical(a),u=W0.isGrouped(a),f=a.entrywidthmode==="fraction",c=a.borderwidth,d=2*c,h=ea.itemGap,m=a.indentation+a.itemwidth+h*2,g=2*(c+h),y=U1(a),x=a.y<0||a.y===0&&y==="top",w=a.y>1||a.y===1&&y==="bottom",T=a.tracegroupgap,b={};let{orientation:M,yref:S}=a,{maxheight:A}=a,L=x||w||M!=="v"||S!=="paper";A||(A=L?.5:1);let q=L?i.height:o.h;a._maxHeight=Math.max(A>1?A:A*q,30);var P=0;a._width=0,a._height=0;var z=Kae(a);if(s)t.each(function(qe){var Ce=qe[0].height;Jt.setTranslate(this,c+z[0],c+z[1]+a._height+Ce/2+h),a._height+=Ce,a._width=Math.max(a._width,qe[0].width)}),P=m+a._width,a._width+=h+m+d,a._height+=g,u&&(r.each(function(qe,Ce){Jt.setTranslate(this,0,Ce*a.tracegroupgap)}),a._height+=(a._lgroupsLength-1)*a.tracegroupgap);else{var N=Y1(a),I=a.x<0||a.x===0&&N==="right",B=a.x>1||a.x===1&&N==="left",H=w||x,Y=i.width/2;a._maxWidth=Math.max(I?H&&N==="left"?o.l+o.w:Y:B?H&&N==="right"?o.r+o.w:Y:o.w,2*m);var G=0,O=0;t.each(function(qe){var Ce=B1(qe,a,m);G=Math.max(G,Ce),O+=Ce}),P=null;var X=0;if(u){var Z=0,W=0,ee=0;r.each(function(){var qe=0,Ce=0;sn.select(this).selectAll("g.traces").each(function(Ee){var Ue=B1(Ee,a,m),ke=Ee[0].height;Jt.setTranslate(this,z[0],z[1]+c+h+ke/2+Ce),Ce+=ke,qe=Math.max(qe,Ue),b[Ee[0].trace.legendgroup]=qe});var De=qe+h;W>0&&De+c+W>a._maxWidth?(X=Math.max(X,W),W=0,ee+=Z+T,Z=Ce):Z=Math.max(Z,Ce),Jt.setTranslate(this,W,ee),W+=De}),a._width=Math.max(X,W)+c,a._height=ee+Z+g}else{var ne=t.size(),fe=O+d+(ne-1)*h=a._maxWidth&&(X=Math.max(X,ue),j=0,_e+=we,a._height+=we,we=0),Jt.setTranslate(this,z[0]+c+j,z[1]+c+_e+Ce/2+h),ue=j+De+h,j+=Ee,we=Math.max(we,Ce)}),fe?(a._width=j+d,a._height=we+g):(a._width=Math.max(X,ue)+d,a._height+=we+g)}}a._width=Math.ceil(Math.max(a._width+z[0],a._titleWidth+2*(c+ea.titlePad))),a._height=Math.ceil(Math.max(a._height+z[1],a._titleHeight+2*(c+ea.itemGap))),a._effHeight=Math.min(a._height,a._maxHeight);var Me=e._context.edits,ge=Me.legendText||Me.legendPosition;t.each(function(qe){var Ce=sn.select(this).select("."+l+"toggle"),De=qe[0].height,Ee=qe[0].trace.legendgroup,Ue=B1(qe,a,m);u&&Ee!==""&&(Ue=b[Ee]);var ke=ge?m:P||Ue;!s&&!f&&(ke+=h/2),Jt.setRect(Ce,0,-De/2,ke,De)});var ce=n.select("."+l+"titletext");ce.node()&&Xae(ce,a,c);var Te=n.select("."+l+"titletoggle");if(Te.size()&&ce.node()){var ze=ce.attr("x")||0,be=ea.titlePad;Jt.setRect(Te,ze-be,c,a._titleWidth+2*be,a._titleHeight+2*be)}}function Qae(e,r,t,a){var n=e._fullLayout,i=n[r],l=Y1(i),o=U1(i),s=i.xref==="paper",u=i.yref==="paper";e._fullLayout._reservedMargin[r]={};var f=i.y<.5?"b":"t",c=i.x<.5?"l":"r",d={r:n.width-t,l:t+i._width,b:n.height-a,t:a+i._effHeight};if(s&&u)return J3.autoMargin(e,r,{x:i.x,y:i.y,l:i._width*X0[l],r:i._width*$C[l],b:i._effHeight*$C[o],t:i._effHeight*X0[o]});s?e._fullLayout._reservedMargin[r][f]=d[f]:u||i.orientation==="v"?e._fullLayout._reservedMargin[r][c]=d[c]:e._fullLayout._reservedMargin[r][f]=d[f]}function Y1(e){return Zt.isRightAnchor(e)?"right":Zt.isCenterAnchor(e)?"center":"left"}function U1(e){return Zt.isBottomAnchor(e)?"bottom":Zt.isMiddleAnchor(e)?"middle":"top"}});var r5=J(e5=>{"use strict";var bs=Or(),wl=Xr(),Ft=Re(),ene=Ft.pushUnique,j3=Ft.strTranslate,rne=Ft.strRotate,tne=Af(),ei=Ta(),ane=DC(),tl=lt(),ra=Nr(),G1=Ci(),al=Mt(),nne=(ya(),Xe(ma)).zindexSeparator,J0=kr(),Fn=Ai(),xs=(Ku(),Xe($u)),ine=F3(),lne=K3(),fS=xs.YANGLE,Q3=Math.PI*fS/180,one=1/Math.sin(Q3),sne=Math.cos(Q3),une=Math.sin(Q3),Tt=xs.HOVERARROWSIZE,Gr=xs.HOVERTEXTPAD,aS={box:!0,ohlc:!0,violin:!0,candlestick:!0},fne={scatter:!0,scattergl:!0,splom:!0};function nS(e,r){return e.distance-r.distance}e5.hover=function(r,t,a,n){r=Ft.getGraphDiv(r);var i=t.target;Ft.throttle(r._fullLayout._uid+xs.HOVERID,xs.HOVERMINTIME,function(){cne(r,t,a,n,i)})};e5.loneHover=function(r,t){var a=!0;Array.isArray(r)||(a=!1,r=[r]);var n=t.gd,i=pS(n),l=mS(n),o=r.map(function(y){var x=y._x0||y.x0||y.x||0,w=y._x1||y.x1||y.x||0,T=y._y0||y.y0||y.y||0,b=y._y1||y.y1||y.y||0,M=y.eventData;if(M){var S=Math.min(x,w),A=Math.max(x,w),L=Math.min(T,b),q=Math.max(T,b),P=y.trace;if(J0.traceIs(P,"gl3d")){var z=n._fullLayout[P.scene]._scene.container,N=z.offsetLeft,I=z.offsetTop;S+=N,A+=N,L+=I,q+=I}M.bbox={x0:S+l,x1:A+l,y0:L+i,y1:q+i},M.xPixel=(x+w)/2,M.yPixel=(T+b)/2,t.inOut_bbox&&t.inOut_bbox.push(M.bbox)}else M=!1;return{color:y.color||ra.defaultLine,x0:y.x0||y.x||0,x1:y.x1||y.x||0,y0:y.y0||y.y||0,y1:y.y1||y.y||0,xLabel:y.xLabel,yLabel:y.yLabel,zLabel:y.zLabel,text:y.text,name:y.name,idealAlign:y.idealAlign,borderColor:y.borderColor,fontFamily:y.fontFamily,fontSize:y.fontSize,fontColor:y.fontColor,fontWeight:y.fontWeight,fontStyle:y.fontStyle,fontVariant:y.fontVariant,nameLength:y.nameLength,textAlign:y.textAlign,trace:y.trace||{index:0,hoverinfo:""},xa:{_offset:0},ya:{_offset:0},index:0,hovertemplate:y.hovertemplate||!1,hovertemplateLabels:y.hovertemplateLabels||!1,eventData:M}}),s=!1,u=vS(o,{gd:n,hovermode:"closest",rotateLabels:s,bgColor:t.bgColor||ra.background,container:bs.select(t.container),outerContainer:t.outerContainer||t.container}),f=u.hoverLabels,c=5,d=0,h=0;f.sort(function(y,x){return y.y0-x.y0}).each(function(y,x){var w=y.y0-y.by/2;w-cA[0]._length||be<0||be>L[0]._length)return G1.unhoverRaw(e,r)}if(r.pointerX=ze+A[0]._offset,r.pointerY=be+L[0]._offset,"xval"in r?Y=Fn.flat(i,r.xval):Y=Fn.p2c(A,ze),"yval"in r?G=Fn.flat(i,r.yval):G=Fn.p2c(L,be),e._hoverPointerX=r.pointerX,e._hoverPointerY=r.pointerY,!wl(Y[0])||!wl(G[0]))return Ft.warn("Fx.hover failed",r,e),G1.unhoverRaw(e,r)}o.clickanywhere&&(e._hoverXVals=Y,e._hoverYVals=G,e._hoverXAxes=A,e._hoverYAxes=L);var De=1/0;function Ee(yr,dt){for(X=0;Xue&&(B.splice(0,ue),De=B[0].distance),c&&I!==0&&B.length===0){_e.distance=I,_e.index=!1;var ut=W._module.hoverPoints(_e,we,j,"closest",{hoverLayer:o._hoverlayer});if(ut&&(ut=ut.filter(function(jt){return jt.spikeDistance<=I})),ut&&ut.length){var aa,Un=ut.filter(function(jt){return jt.xa.showspikes&&jt.xa.spikesnap!=="hovered data"});if(Un.length){var Yt=Un[0];wl(Yt.x0)&&wl(Yt.y0)&&(aa=ke(Yt),(!Me.vLinePoint||Me.vLinePoint.spikeDistance>aa.spikeDistance)&&(Me.vLinePoint=aa))}var gt=ut.filter(function(jt){return jt.ya.showspikes&&jt.ya.spikesnap!=="hovered data"});if(gt.length){var Kt=gt[0];wl(Kt.x0)&&wl(Kt.y0)&&(aa=ke(Kt),(!Me.hLinePoint||Me.hLinePoint.spikeDistance>aa.spikeDistance)&&(Me.hLinePoint=aa))}}}}}Ee();function Ue(yr,dt,Qr){for(var yt=null,qt=1/0,kt,ut=0;utyr.trace.index===xe.trace.index):B=[xe];var He=B.length,Je=uS("x",xe,o),Ie=uS("y",xe,o);Ee(Je,Ie);var Ge=[],nr={},lr=0,fr=function(yr){var dt=aS[yr.trace.type]?cS(yr):yr.trace.index;if(!nr[dt])lr++,nr[dt]=lr,Ge.push(yr);else{var Qr=nr[dt]-1,yt=Ge[Qr];Qr>0&&Math.abs(yr.distance)He-1;Se--)fr(B[Se]);B=Ge,Ae()}var Ke=e._hoverdata,Ne=[],pr=pS(e),xr=mS(e);for(let yr of B){var ur=Fn.makeEventData(yr,yr.trace,yr.cd);if(yr.hovertemplate!==!1){var mr=!1;yr.cd[yr.index]&&yr.cd[yr.index].ht&&(mr=yr.cd[yr.index].ht),yr.hovertemplate=mr||yr.trace.hovertemplate||!1}if(yr.xa&&yr.ya){var te=yr.x0+yr.xa._offset,ve=yr.x1+yr.xa._offset,Fe=yr.y0+yr.ya._offset,Ye=yr.y1+yr.ya._offset,jr=Math.min(te,ve),st=Math.max(te,ve),vt=Math.min(Fe,Ye),Bt=Math.max(Fe,Ye);ur.bbox={x0:jr+xr,x1:st+xr,y0:vt+pr,y1:Bt+pr},ur.xPixel=(te+ve)/2,ur.yPixel=(Fe+Ye)/2}yr.eventData=[ur],Ne.push(ur)}e._hoverdata=Ne;var Lt=d==="y"&&(H.length>1||B.length>1)||d==="closest"&&ge&&B.length>1,wa=ra.combine(o.plot_bgcolor||ra.background,o.paper_bgcolor),cn=vS(B,{gd:e,hovermode:d,rotateLabels:Lt,bgColor:wa,container:o._hoverlayer,outerContainer:o._paper.node(),commonLabelOpts:o.hoverlabel,hoverdistance:o.hoverdistance}),ta=cn.hoverLabels;if(Fn.isUnifiedHover(d)||(dne(ta,Lt,o,cn.commonLabelBoundingBox),hS(ta,Lt,o._invScaleX,o._invScaleY)),n&&n.tagName){var ln=J0.getComponentMethod("annotations","hasClickToShow")(e,Ne);ane(bs.select(n),ln?"pointer":"")}var An=mne(e,r,Ke);if(!n||a||!An&&!o.hoveranywhere)return;Ke&&An&&e.emit("plotly_unhover",{event:r,points:Ke}),kn(e._hoverdata);function kn(yr){e.emit("plotly_hover",{event:r,points:yr,xaxes:A,yaxes:L,xvals:Fn.c2dApply(A,Y),yvals:Fn.c2dApply(L,G),xPixel:r.pointerX,yPixel:r.pointerY})}}function cS(e){return[e.trace.index,e.index,e.x0,e.y0,e.name,e.attr,e.xa?e.xa._id:"",e.ya?e.ya._id:""].join(",")}var vne=/([\s\S]*)<\/extra>/;function vS(e,r){var t=r.gd,a=t._fullLayout,n=r.hovermode,i=r.rotateLabels,l=r.bgColor,o=r.container,s=r.outerContainer,u=r.commonLabelOpts||{};if(e.length===0)return[[]];var f=r.fontFamily||xs.HOVERFONT,c=r.fontSize||xs.HOVERFONTSIZE,d=r.fontWeight||a.font.weight,h=r.fontStyle||a.font.style,m=r.fontVariant||a.font.variant,g=r.fontTextcase||a.font.textcase,y=r.fontLineposition||a.font.lineposition,x=r.fontShadow||a.font.shadow,w=e[0],T=w.xa,b=w.ya,M=n.charAt(0),S=M+"Label",A=w[S];if(A===void 0&&T.type==="multicategory")for(var L=0;La.width-Ne&&(pr=a.width-Ne),de.attr("d","M"+(fr-pr)+",0L"+(fr-pr+Tt)+","+Ke+Tt+"H"+Ne+"v"+Ke+(Gr*2+lr.height)+"H"+-Ne+"V"+Ke+Tt+"H"+(fr-pr-Tt)+"Z"),fr=pr,X.minX=fr-Ne,X.maxX=fr+Ne,T.side==="top"?(X.minY=Se-(Gr*2+lr.height),X.maxY=Se-Gr):(X.minY=Se+Gr,X.maxY=Se+(Gr*2+lr.height))}else{var xr,ur,mr;b.side==="right"?(xr="start",ur=1,mr="",fr=T._offset+T._length):(xr="end",ur=-1,mr="-",fr=T._offset),Se=b._offset+(w.y0+w.y1)/2,xe.attr("text-anchor",xr),de.attr("d","M0,0L"+mr+Tt+","+Tt+"V"+(Gr+lr.height/2)+"h"+mr+(Gr*2+lr.width)+"V-"+(Gr+lr.height/2)+"H"+mr+Tt+"V-"+Tt+"Z"),X.minY=Se-(Gr+lr.height/2),X.maxY=Se+(Gr+lr.height/2),b.side==="right"?(X.minX=fr+Tt,X.maxX=fr+Tt+(Gr*2+lr.width)):(X.minX=fr-Tt-(Gr*2+lr.width),X.maxX=fr-Tt);var te=lr.height/2,ve=P-lr.top-te,Fe="clip"+a._uid+"commonlabel"+b._id,Ye;if(frde.hoverinfo!=="none");if(Le.length===0)return[];var Z=a.hoverlabel,W=Z.font,ee=Le[0],ne=((n==="x unified"?ee.xa:ee.ya).unifiedhovertitle||{}).text,fe=ne?Ft.hovertemplateString({data:n==="x unified"?[{xa:ee.xa,x:ee.xVal}]:[{ya:ee.ya,y:ee.yVal}],fallback:ee.trace.hovertemplatefallback,locale:a._d3locale,template:ne}):A,we={showlegend:!0,legend:{title:{text:fe,font:W},font:W,bgcolor:Z.bgcolor,bordercolor:Z.bordercolor,borderwidth:1,tracegroupgap:7,traceorder:a.legend?a.legend.traceorder:void 0,orientation:"v"}},j={font:W};ine(we,j,t._fullData);var _e=j.legend;_e.entries=[];for(var ue=0;ue=0?he=Ae:Pe+Ce=0?he=Pe:Qe+Ce=0?Ve=je:Ze+De=0?Ve=Ze:re+De=0,(Le.idealAlign==="top"||!vt)&&Bt?(mr-=ve/2,Le.anchor="end"):vt?(mr+=ve/2,Le.anchor="start"):Le.anchor="middle",Le.crossPos=mr;else{if(Le.pos=mr,vt=ur+te/2+st<=z,Bt=ur-te/2-st>=0,(Le.idealAlign==="left"||!vt)&&Bt)ur-=te/2,Le.anchor="end";else if(vt)ur+=te/2,Le.anchor="start";else{Le.anchor="middle";var Lt=st/2,wa=ur+Lt-z,cn=ur-Lt;wa>0&&(ur-=wa),cn<0&&(ur+=-cn)}Le.crossPos=ur}Se.attr("text-anchor",Le.anchor),Ne&&Ke.attr("text-anchor",Le.anchor),de.attr("transform",j3(ur,mr)+(i?rne(fS):""))}),{hoverLabels:hr,commonLabelBoundingBox:X}}function iS(e,r,t,a,n,i){var c,d;var l="",o="";e.nameOverride!==void 0&&(e.name=e.nameOverride),e.name&&(e.trace._meta&&(e.name=Ft.templateString(e.name,e.trace._meta)),l=sS(e.name,e.nameLength));var s=t.charAt(0),u=s==="x"?"y":"x";e.zLabel!==void 0?(e.xLabel!==void 0&&(o+="x: "+e.xLabel+"
"),e.yLabel!==void 0&&(o+="y: "+e.yLabel+"
"),e.trace.type!=="choropleth"&&e.trace.type!=="choroplethmap"&&(o+=(o?"z: ":"")+e.zLabel)):r&&e[s+"Label"]===n?o=e[u+"Label"]||"":e.xLabel===void 0?e.yLabel!==void 0&&e.trace.type!=="scattercarpet"&&(o=e.yLabel):e.yLabel===void 0?o=e.xLabel:o="("+e.xLabel+", "+e.yLabel+")",(e.text||e.text===0)&&!Array.isArray(e.text)&&(o+=(o?"
":"")+e.text),e.extraText!==void 0&&(o+=(o?"
":"")+e.extraText),i&&o===""&&!e.hovertemplate&&(l===""&&i.remove(),o=l),(d=(c=e.trace)==null?void 0:c.hoverlabel)!=null&&d.split&&(e.hovertemplate="");let{hovertemplate:f=!1}=e;if(f){let h=e.hovertemplateLabels||e;e[s+"Label"]!==n&&(h[s+"other"]=h[s+"Val"],h[s+"otherLabel"]=h[s+"Label"]),o=Ft.hovertemplateString({data:[e.eventData[0]||{},e.trace._meta],fallback:e.trace.hovertemplatefallback,labels:h,locale:a._d3locale,template:f}),o=o.replace(vne,(m,g)=>(l=sS(g,e.nameLength),""))}return[o,l]}function dne(e,r,t,a){var n=r?"xa":"ya",i=r?"ya":"xa",l=0,o=1,s=e.size(),u=new Array(s),f=0,c=a.minX,d=a.maxX,h=a.minY,m=a.maxY,g=function(Y){return Y*t._invScaleX},y=function(Y){return Y*t._invScaleY};e.each(function(Y){var G=Y[n],O=Y[i],X=G._id.charAt(0)==="x",Z=G.range;f===0&&Z&&Z[0]>Z[1]!==X&&(o=-1);var W=0,ee=X?t.width:t.height;if(t.hovermode==="x"||t.hovermode==="y"){var ne=dS(Y,r),fe=Y.anchor,we=fe==="end"?-1:1,j,_e;if(fe==="middle")j=Y.crossPos+(X?y(ne.y-Y.by/2):g(Y.bx/2+Y.tx2width/2)),_e=j+(X?y(Y.by):g(Y.bx));else if(X)j=Y.crossPos+y(Tt+ne.y)-y(Y.by/2-Tt),_e=j+y(Y.by);else{var ue=g(we*Tt+ne.x),Me=ue+g(we*Y.bx);j=Y.crossPos+Math.min(ue,Me),_e=Y.crossPos+Math.max(ue,Me)}X?h!==void 0&&m!==void 0&&Math.min(_e,m)-Math.max(j,h)>1&&(O.side==="left"?(W=O._mainLinePosition,ee=t.width):ee=O._mainLinePosition):c!==void 0&&d!==void 0&&Math.min(_e,d)-Math.max(j,c)>1&&(O.side==="top"?(W=O._mainLinePosition,ee=t.height):ee=O._mainLinePosition)}u[f++]=[{datum:Y,traceIndex:Y.trace.index,dp:0,pos:Y.pos,posref:Y.posref,size:Y.by*(X?one:1)/2,pmin:W,pmax:ee}]}),u.sort(function(Y,G){return Y[0].posref-G[0].posref||o*(G[0].traceIndex-Y[0].traceIndex)});var x,w,T,b,M,S,A;function L(Y){var G=Y[0],O=Y[Y.length-1];if(w=G.pmin-G.pos-G.dp+G.size,T=O.pos+O.dp+O.size-G.pmax,w>.01){for(M=Y.length-1;M>=0;M--)Y[M].dp+=w;x=!1}if(!(T<.01)){if(w<-.01){for(M=Y.length-1;M>=0;M--)Y[M].dp-=T;x=!1}if(x){var X=0;for(b=0;bG.pmax&&X++;for(b=Y.length-1;b>=0&&!(X<=0);b--)S=Y[b],S.pos>G.pmax-1&&(S.del=!0,X--);for(b=0;b=0;M--)Y[M].dp-=T;for(b=Y.length-1;b>=0&&!(X<=0);b--)S=Y[b],S.pos+S.dp+S.size>G.pmax&&(S.del=!0,X--)}}}for(;!x&&l<=s;){for(l++,x=!0,b=0;b.01){for(M=P.length-1;M>=0;M--)P[M].dp+=w;for(q.push.apply(q,P),u.splice(b+1,1),A=0,M=q.length-1;M>=0;M--)A+=q[M].dp;for(T=A/q.length,M=q.length-1;M>=0;M--)q[M].dp-=T;x=!1}else b++}u.forEach(L)}for(b=u.length-1;b>=0;b--){var I=u[b];for(M=I.length-1;M>=0;M--){var B=I[M],H=B.datum;H.offset=B.dp,H.del=B.del}}}function dS(e,r){var t=0,a=e.offset;return r&&(a*=-une,t=e.offset*sne),{x:t,y:a}}function hne(e){var r={start:1,end:-1,middle:0}[e.anchor],t=r*(Tt+Gr),a=t+r*(e.txwidth+Gr),n=e.anchor==="middle";return n&&(t-=e.tx2width/2,a+=e.txwidth/2+Gr),{alignShift:r,textShiftX:t,text2ShiftX:a}}function hS(e,r,t,a){var n=function(l){return l*t},i=function(l){return l*a};e.each(function(l){var o=bs.select(this);if(l.del)return o.remove();var s=o.select("text.nums"),u=l.anchor,f=u==="end"?-1:1,c=hne(l),d=dS(l,r),h=d.x,m=d.y,g=u==="middle",y="hoverlabel"in l.trace?l.trace.hoverlabel.showarrow:!0,x;g?x="M-"+n(l.bx/2+l.tx2width/2)+","+i(m-l.by/2)+"h"+n(l.bx)+"v"+i(l.by)+"h-"+n(l.bx)+"Z":y?x="M0,0L"+n(f*Tt+h)+","+i(Tt+m)+"v"+i(l.by/2-Tt)+"h"+n(f*l.bx)+"v-"+i(l.by)+"H"+n(f*Tt+h)+"V"+i(m-Tt)+"Z":x="M"+n(f*Tt+h)+","+i(m-l.by/2)+"h"+n(f*l.bx)+"v"+i(l.by)+"h"+n(-f*l.bx)+"Z",o.select("path").attr("d",x);var w=h+c.textShiftX,T=m+l.ty0-l.by/2+Gr,b=l.textAlign||"auto";b!=="auto"&&(b==="left"&&u!=="start"?(s.attr("text-anchor","start"),w=g?-l.bx/2-l.tx2width/2+Gr:-l.bx-Gr):b==="right"&&u!=="end"&&(s.attr("text-anchor","end"),w=g?l.bx/2-l.tx2width/2-Gr:l.bx+Gr)),s.call(ei.positionText,n(w),i(T)),l.tx2width&&(o.select("text.name").call(ei.positionText,n(c.text2ShiftX+c.alignShift*Gr+h),i(m+l.ty0-l.by/2+Gr)),o.select("rect").call(tl.setRect,n(c.text2ShiftX+(c.alignShift-1)*l.tx2width/2+h),i(m-l.by/2-1),n(l.tx2width),i(l.by+2)))})}function pne(e,r){var t=e.index,a=e.trace||{},n=e.cd[0],i=e.cd[t]||{};function l(d){return d||wl(d)&&d===0}var o=Array.isArray(t)?function(d,h){var m=Ft.castOption(n,t,d);return l(m)?m:Ft.extractOption({},a,"",h)}:function(d,h){return Ft.extractOption(i,a,d,h)};function s(d,h,m){var g=o(h,m);l(g)&&(e[d]=g)}if(s("hoverinfo","hi","hoverinfo"),s("bgcolor","hbg","hoverlabel.bgcolor"),s("borderColor","hbc","hoverlabel.bordercolor"),s("fontFamily","htf","hoverlabel.font.family"),s("fontSize","hts","hoverlabel.font.size"),s("fontColor","htc","hoverlabel.font.color"),s("fontWeight","htw","hoverlabel.font.weight"),s("fontStyle","hty","hoverlabel.font.style"),s("fontVariant","htv","hoverlabel.font.variant"),s("nameLength","hnl","hoverlabel.namelength"),s("textAlign","hta","hoverlabel.align"),e.posref=r==="y"||r==="closest"&&a.orientation==="h"?e.xa._offset+(e.x0+e.x1)/2:e.ya._offset+(e.y0+e.y1)/2,e.x0=Ft.constrain(e.x0,0,e.xa._length),e.x1=Ft.constrain(e.x1,0,e.xa._length),e.y0=Ft.constrain(e.y0,0,e.ya._length),e.y1=Ft.constrain(e.y1,0,e.ya._length),e.xLabelVal!==void 0&&(e.xLabel="xLabel"in e?e.xLabel:al.hoverLabelText(e.xa,e.xLabelVal,a.xhoverformat),e.xVal=e.xa.c2d(e.xLabelVal)),e.yLabelVal!==void 0&&(e.yLabel="yLabel"in e?e.yLabel:al.hoverLabelText(e.ya,e.yLabelVal,a.yhoverformat),e.yVal=e.ya.c2d(e.yLabelVal)),e.zLabelVal!==void 0&&e.zLabel===void 0&&(e.zLabel=String(e.zLabelVal)),!isNaN(e.xerr)&&!(e.xa.type==="log"&&e.xerr<=0)){var u=al.tickText(e.xa,e.xa.c2l(e.xerr),"hover").text;e.xerrneg!==void 0?e.xLabel+=" +"+u+" / -"+al.tickText(e.xa,e.xa.c2l(e.xerrneg),"hover").text:e.xLabel+=" \xB1 "+u,r==="x"&&(e.distance+=1)}if(!isNaN(e.yerr)&&!(e.ya.type==="log"&&e.yerr<=0)){var f=al.tickText(e.ya,e.ya.c2l(e.yerr),"hover").text;e.yerrneg!==void 0?e.yLabel+=" +"+f+" / -"+al.tickText(e.ya,e.ya.c2l(e.yerrneg),"hover").text:e.yLabel+=" \xB1 "+f,r==="y"&&(e.distance+=1)}var c=e.hoverinfo||e.trace.hoverinfo;return c&&c!=="all"&&(c=Array.isArray(c)?c:c.split("+"),c.indexOf("x")===-1&&(e.xLabel=void 0),c.indexOf("y")===-1&&(e.yLabel=void 0),c.indexOf("z")===-1&&(e.zLabel=void 0),c.indexOf("text")===-1&&(e.text=void 0),c.indexOf("name")===-1&&(e.name=void 0)),e}function lS(e,r,t){var a=t.container,n=t.fullLayout,i=n._size,l=t.event,o=!!r.hLinePoint,s=!!r.vLinePoint,u,f;if(a.selectAll(".spikeline").remove(),!!(s||o)){var c=ra.combine(n.plot_bgcolor,n.paper_bgcolor);if(o){var d=r.hLinePoint,h,m;u=d&&d.xa,f=d&&d.ya;var g=f.spikesnap;g==="cursor"?(h=l.pointerX,m=l.pointerY):(h=u._offset+d.x,m=f._offset+d.y);var y=ra.wcagContrast(d.color,c)<1.5?ra.contrast(c):d.color,x=f.spikemode,w=f.spikethickness,T=f.spikecolor||y,b=al.getPxPosition(e,f),M,S;if(x.indexOf("toaxis")!==-1||x.indexOf("across")!==-1){if(x.indexOf("toaxis")!==-1&&(M=b,S=h),x.indexOf("across")!==-1){var A=f._counterDomainMin,L=f._counterDomainMax;f.anchor==="free"&&(A=Math.min(A,f.position),L=Math.max(L,f.position)),M=i.l+A*i.w,S=i.l+L*i.w}a.insert("line",":first-child").attr({x1:M,x2:S,y1:m,y2:m,"stroke-width":w,stroke:T,"stroke-dasharray":tl.dashStyle(f.spikedash,w)}).classed("spikeline",!0).classed("crisp",!0),a.insert("line",":first-child").attr({x1:M,x2:S,y1:m,y2:m,"stroke-width":w+2,stroke:c}).classed("spikeline",!0).classed("crisp",!0)}x.indexOf("marker")!==-1&&a.insert("circle",":first-child").attr({cx:b+(f.side!=="right"?w:-w),cy:m,r:w,fill:T}).classed("spikeline",!0)}if(s){var q=r.vLinePoint,P,z;u=q&&q.xa,f=q&&q.ya;var N=u.spikesnap;N==="cursor"?(P=l.pointerX,z=l.pointerY):(P=u._offset+q.x,z=f._offset+q.y);var I=ra.wcagContrast(q.color,c)<1.5?ra.contrast(c):q.color,B=u.spikemode,H=u.spikethickness,Y=u.spikecolor||I,G=al.getPxPosition(e,u),O,X;if(B.indexOf("toaxis")!==-1||B.indexOf("across")!==-1){if(B.indexOf("toaxis")!==-1&&(O=G,X=z),B.indexOf("across")!==-1){var Z=u._counterDomainMin,W=u._counterDomainMax;u.anchor==="free"&&(Z=Math.min(Z,u.position),W=Math.max(W,u.position)),O=i.t+(1-W)*i.h,X=i.t+(1-Z)*i.h}a.insert("line",":first-child").attr({x1:P,x2:P,y1:O,y2:X,"stroke-width":H,stroke:Y,"stroke-dasharray":tl.dashStyle(u.spikedash,H)}).classed("spikeline",!0).classed("crisp",!0),a.insert("line",":first-child").attr({x1:P,x2:P,y1:O,y2:X,"stroke-width":H+2,stroke:c}).classed("spikeline",!0).classed("crisp",!0)}B.indexOf("marker")!==-1&&a.insert("circle",":first-child").attr({cx:P,cy:G-(u.side!=="top"?H:-H),r:H,fill:Y}).classed("spikeline",!0)}}}function mne(e,r,t){if(!t||t.length!==e._hoverdata.length)return!0;for(var a=t.length-1;a>=0;a--){var n=t[a],i=e._hoverdata[a];if(n.curveNumber!==i.curveNumber||String(n.pointNumber)!==String(i.pointNumber)||String(n.pointNumbers)!==String(i.pointNumbers)||n.binNumber!==i.binNumber)return!0}return!1}function oS(e,r){return!r||r.vLinePoint!==e._spikepoints.vLinePoint||r.hLinePoint!==e._spikepoints.hLinePoint}function sS(e,r){return ei.plainText(e||"",{len:r,allowedTags:["br","sub","sup","b","i","em","s","u"]})}function yne(e,r){for(var t=r.charAt(0),a=[],n=[],i=[],l=0;le.offsetTop+e.clientTop,mS=e=>e.offsetLeft+e.clientLeft;function Z0(e,r){var t=e._fullLayout,a=r.getBoundingClientRect(),n=a.left,i=a.top,l=n+a.width,o=i+a.height,s=Ft.apply3DTransform(t._invTransform)(n,i),u=Ft.apply3DTransform(t._invTransform)(l,o),f=s[0],c=s[1],d=u[0],h=u[1];return{x:f,y:c,width:d-f,height:h-c,top:Math.min(c,h),left:Math.min(f,d),right:Math.max(f,d),bottom:Math.max(c,h)}}});var V1=J((w5e,yS)=>{"use strict";var gne=Re(),bne=Nr(),xne=Ai().isUnifiedHover;yS.exports=function(r,t,a,n){n=n||{};var i=t.legend;function l(o){n.font[o]||(n.font[o]=i?t.legend.font[o]:t.font[o])}t&&xne(t.hovermode)&&(n.font||(n.font={}),l("size"),l("family"),l("color"),l("weight"),l("style"),l("variant"),i?(n.bgcolor||(n.bgcolor=bne.combine(t.legend.bgcolor,t.paper_bgcolor)),n.bordercolor||(n.bordercolor=t.legend.bordercolor)):n.bgcolor||(n.bgcolor=t.paper_bgcolor)),a("hoverlabel.bgcolor",n.bgcolor),a("hoverlabel.bordercolor",n.bordercolor),a("hoverlabel.namelength",n.namelength),a("hoverlabel.showarrow",n.showarrow),gne.coerceFont(a,"hoverlabel.font",n.font),a("hoverlabel.align",n.align)}});var bS=J((M5e,gS)=>{"use strict";var _ne=Re(),wne=V1(),Mne=o0();gS.exports=function(r,t){function a(n,i){return _ne.coerce(r,t,Mne,n,i)}wne(r,t,a)}});var wS=J((T5e,_S)=>{"use strict";var xS=Re(),Tne=Gv(),Ane=V1();_S.exports=function(r,t,a,n){function i(o,s){return xS.coerce(r,t,Tne,o,s)}var l=xS.extendFlat({},n.hoverlabel);t.hovertemplate&&(l.namelength=-1),Ane(r,t,i,l)}});var t5=J((A5e,MS)=>{"use strict";var kne=Re(),Cne=o0();MS.exports=function(r,t){function a(n,i){return t[n]!==void 0?t[n]:kne.coerce(r,t,Cne,n,i)}return a("clickmode"),a("hoversubplots"),a("hoveranywhere"),a("clickanywhere"),a("hovermode")}});var kS=J((k5e,AS)=>{"use strict";var TS=Re(),Sne=o0(),Dne=t5(),Lne=V1();AS.exports=function(r,t){function a(u,f){return TS.coerce(r,t,Sne,u,f)}var n=Dne(r,t);n&&(a("hoverdistance"),a("spikedistance"),n.indexOf("unified")!==-1&&a("hoversort"));var i=a("dragmode");i==="select"&&a("selectdirection");var l=t._has("map"),o=t._has("geo"),s=t._basePlotModules.length;t.dragmode==="zoom"&&((l||o)&&s===1||l&&o&&s===2)&&(t.dragmode="pan"),Lne(r,t,a),TS.coerceFont(a,"hoverlabel.grouptitlefont",t.hoverlabel.font)}});var DS=J((C5e,SS)=>{"use strict";var a5=Re(),CS=kr();SS.exports=function(r){var t=r.calcdata,a=r._fullLayout;function n(u){return function(f){return a5.coerceHoverinfo({hoverinfo:f},{_module:u._module},a)}}for(var i=0;i{"use strict";var Ene=kr(),LS=Ai(),Pne=r5().hover;qS.exports=function(r,t,a){var n=Ene.getComponentMethod("annotations","onClick")(r,r._hoverdata),i=r._fullLayout;a!==void 0&&Pne(r,t,a,!0);function l(){var s,u,f,c,d,h;var o={points:r._hoverdata,event:t};(s=o.xaxes)!=null||(o.xaxes=r._hoverXAxes),(u=o.yaxes)!=null||(o.yaxes=r._hoverYAxes),(f=o.xvals)!=null||(o.xvals=r._hoverXVals&&LS.c2dApply(r._hoverXAxes,r._hoverXVals)),(c=o.yvals)!=null||(o.yvals=r._hoverYVals&&LS.c2dApply(r._hoverYAxes,r._hoverYVals)),(d=o.xPixel)!=null||(o.xPixel=r._hoverPointerX),(h=o.yPixel)!=null||(o.yPixel=r._hoverPointerY),r.emit("plotly_click",o)}(r._hoverdata||i.clickanywhere)&&t&&t.target&&(r._hoverdata||(r._hoverdata=[]),n&&n.then?n.then(l):l(),t.stopImmediatePropagation&&t.stopImmediatePropagation())}});var Si=J((D5e,zS)=>{"use strict";var Rne=Or(),X1=Re(),zne=Ci(),Zf=Ai(),PS=o0(),RS=r5();zS.exports={moduleType:"component",name:"fx",constants:(Ku(),Xe($u)),schema:{layout:PS},attributes:Gv(),layoutAttributes:PS,supplyLayoutGlobalDefaults:bS(),supplyDefaults:wS(),supplyLayoutDefaults:kS(),calc:DS(),getDistanceFunction:Zf.getDistanceFunction,getClosest:Zf.getClosest,inbox:Zf.inbox,quadrature:Zf.quadrature,appendArrayPointValue:Zf.appendArrayPointValue,castHoverOption:Nne,castHoverinfo:Ine,hover:RS.hover,unhover:zne.unhover,loneHover:RS.loneHover,loneUnhover:Fne,click:ES()};function Fne(e){var r=X1.isD3Selection(e)?e:Rne.select(e);r.selectAll("g.hovertext").remove(),r.selectAll(".spikeline").remove()}function Nne(e,r,t){return X1.castOption(e,r,"hoverlabel."+t)}function Ine(e,r,t){function a(n){return X1.coerceHoverinfo({hoverinfo:n},{_module:e._module},r)}return X1.castOption(e,t,"hoverinfo",a)}});var $0=J(Ml=>{"use strict";Ml.selectMode=function(e){return e==="lasso"||e==="select"};Ml.drawMode=function(e){return e==="drawclosedpath"||e==="drawopenpath"||e==="drawline"||e==="drawrect"||e==="drawcircle"};Ml.openMode=function(e){return e==="drawline"||e==="drawopenpath"};Ml.rectMode=function(e){return e==="select"||e==="drawline"||e==="drawrect"||e==="drawcircle"};Ml.freeMode=function(e){return e==="lasso"||e==="drawclosedpath"||e==="drawopenpath"};Ml.selectingOrDrawing=function(e){return Ml.freeMode(e)||Ml.rectMode(e)}});var W1=J((q5e,FS)=>{"use strict";FS.exports=function(r){var t=r._fullLayout;t._glcanvas&&t._glcanvas.size()&&t._glcanvas.each(function(a){a.regl&&a.regl.clear({color:!0,depth:!0})})}});var Z1=J((E5e,NS)=>{"use strict";NS.exports={undo:{width:857.1,height:1e3,path:"m857 350q0-87-34-166t-91-137-137-92-166-34q-96 0-183 41t-147 114q-4 6-4 13t5 11l76 77q6 5 14 5 9-1 13-7 41-53 100-82t126-29q58 0 110 23t92 61 61 91 22 111-22 111-61 91-92 61-110 23q-55 0-105-20t-90-57l77-77q17-16 8-38-10-23-33-23h-250q-15 0-25 11t-11 25v250q0 24 22 33 22 10 39-8l72-72q60 57 137 88t159 31q87 0 166-34t137-92 91-137 34-166z",transform:"matrix(1 0 0 -1 0 850)"},home:{width:928.6,height:1e3,path:"m786 296v-267q0-15-11-26t-25-10h-214v214h-143v-214h-214q-15 0-25 10t-11 26v267q0 1 0 2t0 2l321 264 321-264q1-1 1-4z m124 39l-34-41q-5-5-12-6h-2q-7 0-12 3l-386 322-386-322q-7-4-13-4-7 2-12 7l-35 41q-4 5-3 13t6 12l401 334q18 15 42 15t43-15l136-114v109q0 8 5 13t13 5h107q8 0 13-5t5-13v-227l122-102q5-5 6-12t-4-13z",transform:"matrix(1 0 0 -1 0 850)"},"camera-retro":{width:1e3,height:1e3,path:"m518 386q0 8-5 13t-13 5q-37 0-63-27t-26-63q0-8 5-13t13-5 12 5 5 13q0 23 16 38t38 16q8 0 13 5t5 13z m125-73q0-59-42-101t-101-42-101 42-42 101 42 101 101 42 101-42 42-101z m-572-320h858v71h-858v-71z m643 320q0 89-62 152t-152 62-151-62-63-152 63-151 151-63 152 63 62 151z m-571 358h214v72h-214v-72z m-72-107h858v143h-462l-36-71h-360v-72z m929 143v-714q0-30-21-51t-50-21h-858q-29 0-50 21t-21 51v714q0 30 21 51t50 21h858q29 0 50-21t21-51z",transform:"matrix(1 0 0 -1 0 850)"},curlybraces:{width:18,height:16,path:"M 9,4 C 7.354992,4 6,5.354992 6,7 V 9 C 6,9.2999997 5.8778068,9.8883542 5.5878906,10.291016 5.2979744,10.693677 4.9222213,11 4,11 a 1.0001,1.0001 0 0 0 0,2 c 0.2999997,0 0.8883542,0.122193 1.2910156,0.412109 C 5.693677,13.702026 6,14.077779 6,15 v 2 c 0,1.645008 1.354992,3 3,3 h 0.5 a 1,1 0 0 0 1,-1 1,1 0 0 0 -1,-1 H 9 C 8.4358712,18 8,17.564129 8,17 V 15 C 8,13.625876 7.3766799,12.602305 6.6113281,11.96875 6.8086352,11.794047 7.0679793,11.657537 7.2109375,11.458984 7.8210204,10.611647 8,9.6999993 8,9 V 7 C 8,6.4358712 8.4358712,6 9,6 h 0.5 a 1,1 0 0 0 1,-1 1,1 0 0 0 -1,-1 z m 5.5,0 a 1,1 0 0 0 -1,1 1,1 0 0 0 1,1 H 15 c 0.564129,0 1,0.4358712 1,1 v 2 c 0,0.6999993 0.17898,1.611647 0.789062,2.458984 0.142959,0.198553 0.402303,0.335063 0.59961,0.509766 C 16.62332,12.602305 16,13.625876 16,15 v 2 c 0,0.564129 -0.435871,1 -1,1 h -0.5 a 1,1 0 0 0 -1,1 1,1 0 0 0 1,1 H 15 c 1.645008,0 3,-1.354992 3,-3 v -2 c 0,-0.922221 0.306323,-1.297974 0.708984,-1.587891 C 19.111646,13.122193 19.7,13 20,13 a 1.0001,1.0001 0 0 0 0,-2 C 19.077779,11 18.702026,10.693677 18.412109,10.291016 18.122193,9.8883542 18,9.2999997 18,9 V 7 C 18,5.354992 16.645008,4 15,4 Z",transform:"translate(-3 -4)"},zoombox:{width:1e3,height:1e3,path:"m1000-25l-250 251c40 63 63 138 63 218 0 224-182 406-407 406-224 0-406-182-406-406s183-406 407-406c80 0 155 22 218 62l250-250 125 125z m-812 250l0 438 437 0 0-438-437 0z m62 375l313 0 0-312-313 0 0 312z",transform:"matrix(1 0 0 -1 0 850)"},pan:{width:1e3,height:1e3,path:"m1000 350l-187 188 0-125-250 0 0 250 125 0-188 187-187-187 125 0 0-250-250 0 0 125-188-188 186-187 0 125 252 0 0-250-125 0 187-188 188 188-125 0 0 250 250 0 0-126 187 188z",transform:"matrix(1 0 0 -1 0 850)"},zoom_plus:{width:875,height:1e3,path:"m1 787l0-875 875 0 0 875-875 0z m687-500l-187 0 0-187-125 0 0 187-188 0 0 125 188 0 0 187 125 0 0-187 187 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},zoom_minus:{width:875,height:1e3,path:"m0 788l0-876 875 0 0 876-875 0z m688-500l-500 0 0 125 500 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},autoscale:{width:1e3,height:1e3,path:"m250 850l-187 0-63 0 0-62 0-188 63 0 0 188 187 0 0 62z m688 0l-188 0 0-62 188 0 0-188 62 0 0 188 0 62-62 0z m-875-938l0 188-63 0 0-188 0-62 63 0 187 0 0 62-187 0z m875 188l0-188-188 0 0-62 188 0 62 0 0 62 0 188-62 0z m-125 188l-1 0-93-94-156 156 156 156 92-93 2 0 0 250-250 0 0-2 93-92-156-156-156 156 94 92 0 2-250 0 0-250 0 0 93 93 157-156-157-156-93 94 0 0 0-250 250 0 0 0-94 93 156 157 156-157-93-93 0 0 250 0 0 250z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_basic:{width:1500,height:1e3,path:"m375 725l0 0-375-375 375-374 0-1 1125 0 0 750-1125 0z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_compare:{width:1125,height:1e3,path:"m187 786l0 2-187-188 188-187 0 0 937 0 0 373-938 0z m0-499l0 1-187-188 188-188 0 0 937 0 0 376-938-1z",transform:"matrix(1 0 0 -1 0 850)"},plotlylogo:{width:1542,height:1e3,path:"m0-10h182v-140h-182v140z m228 146h183v-286h-183v286z m225 714h182v-1000h-182v1000z m225-285h182v-715h-182v715z m225 142h183v-857h-183v857z m231-428h182v-429h-182v429z m225-291h183v-138h-183v138z",transform:"matrix(1 0 0 -1 0 850)"},"z-axis":{width:1e3,height:1e3,path:"m833 5l-17 108v41l-130-65 130-66c0 0 0 38 0 39 0-1 36-14 39-25 4-15-6-22-16-30-15-12-39-16-56-20-90-22-187-23-279-23-261 0-341 34-353 59 3 60 228 110 228 110-140-8-351-35-351-116 0-120 293-142 474-142 155 0 477 22 477 142 0 50-74 79-163 96z m-374 94c-58-5-99-21-99-40 0-24 65-43 144-43 79 0 143 19 143 43 0 19-42 34-98 40v216h87l-132 135-133-135h88v-216z m167 515h-136v1c16 16 31 34 46 52l84 109v54h-230v-71h124v-1c-16-17-28-32-44-51l-89-114v-51h245v72z",transform:"matrix(1 0 0 -1 0 850)"},"3d_rotate":{width:1e3,height:1e3,path:"m922 660c-5 4-9 7-14 11-359 263-580-31-580-31l-102 28 58-400c0 1 1 1 2 2 118 108 351 249 351 249s-62 27-100 42c88 83 222 183 347 122 16-8 30-17 44-27-2 1-4 2-6 4z m36-329c0 0 64 229-88 296-62 27-124 14-175-11 157-78 225-208 249-266 8-19 11-31 11-31 2 5 6 15 11 32-5-13-8-20-8-20z m-775-239c70-31 117-50 198-32-121 80-199 346-199 346l-96-15-58-12c0 0 55-226 155-287z m603 133l-317-139c0 0 4-4 19-14 7-5 24-15 24-15s-177-147-389 4c235-287 536-112 536-112l31-22 100 299-4-1z m-298-153c6-4 14-9 24-15 0 0-17 10-24 15z",transform:"matrix(1 0 0 -1 0 850)"},camera:{width:1e3,height:1e3,path:"m500 450c-83 0-150-67-150-150 0-83 67-150 150-150 83 0 150 67 150 150 0 83-67 150-150 150z m400 150h-120c-16 0-34 13-39 29l-31 93c-6 15-23 28-40 28h-340c-16 0-34-13-39-28l-31-94c-6-15-23-28-40-28h-120c-55 0-100-45-100-100v-450c0-55 45-100 100-100h800c55 0 100 45 100 100v450c0 55-45 100-100 100z m-400-550c-138 0-250 112-250 250 0 138 112 250 250 250 138 0 250-112 250-250 0-138-112-250-250-250z m365 380c-19 0-35 16-35 35 0 19 16 35 35 35 19 0 35-16 35-35 0-19-16-35-35-35z",transform:"matrix(1 0 0 -1 0 850)"},movie:{width:1e3,height:1e3,path:"m938 413l-188-125c0 37-17 71-44 94 64 38 107 107 107 187 0 121-98 219-219 219-121 0-219-98-219-219 0-61 25-117 66-156h-115c30 33 49 76 49 125 0 103-84 187-187 187s-188-84-188-187c0-57 26-107 65-141-38-22-65-62-65-109v-250c0-70 56-126 125-126h500c69 0 125 56 125 126l188-126c34 0 62 28 62 63v375c0 35-28 63-62 63z m-750 0c-69 0-125 56-125 125s56 125 125 125 125-56 125-125-56-125-125-125z m406-1c-87 0-157 70-157 157 0 86 70 156 157 156s156-70 156-156-70-157-156-157z",transform:"matrix(1 0 0 -1 0 850)"},question:{width:857.1,height:1e3,path:"m500 82v107q0 8-5 13t-13 5h-107q-8 0-13-5t-5-13v-107q0-8 5-13t13-5h107q8 0 13 5t5 13z m143 375q0 49-31 91t-77 65-95 23q-136 0-207-119-9-14 4-24l74-55q4-4 10-4 9 0 14 7 30 38 48 51 19 14 48 14 27 0 48-15t21-33q0-21-11-34t-38-25q-35-16-65-48t-29-70v-20q0-8 5-13t13-5h107q8 0 13 5t5 13q0 10 12 27t30 28q18 10 28 16t25 19 25 27 16 34 7 45z m214-107q0-117-57-215t-156-156-215-58-216 58-155 156-58 215 58 215 155 156 216 58 215-58 156-156 57-215z",transform:"matrix(1 0 0 -1 0 850)"},disk:{width:857.1,height:1e3,path:"m214-7h429v214h-429v-214z m500 0h72v500q0 8-6 21t-11 20l-157 156q-5 6-19 12t-22 5v-232q0-22-15-38t-38-16h-322q-22 0-37 16t-16 38v232h-72v-714h72v232q0 22 16 38t37 16h465q22 0 38-16t15-38v-232z m-214 518v178q0 8-5 13t-13 5h-107q-7 0-13-5t-5-13v-178q0-8 5-13t13-5h107q7 0 13 5t5 13z m357-18v-518q0-22-15-38t-38-16h-750q-23 0-38 16t-16 38v750q0 22 16 38t38 16h517q23 0 50-12t42-26l156-157q16-15 27-42t11-49z",transform:"matrix(1 0 0 -1 0 850)"},cloudupload:{width:640,height:640,path:"M451.5 160C434.9 160 418.8 164.5 404.7 172.7C388.9 156.7 370.5 143.3 350.2 133.2C378.4 109.2 414.3 96 451.5 96C537.9 96 608 166 608 252.5C608 294 591.5 333.8 562.2 363.1L491.1 434.2C461.8 463.5 422 480 380.5 480C294.1 480 224 410 224 323.5C224 322 224 320.5 224.1 319C224.6 301.3 239.3 287.4 257 287.9C274.7 288.4 288.6 303.1 288.1 320.8C288.1 321.7 288.1 322.6 288.1 323.4C288.1 374.5 329.5 415.9 380.6 415.9C405.1 415.9 428.6 406.2 446 388.8L517.1 317.7C534.4 300.4 544.2 276.8 544.2 252.3C544.2 201.2 502.8 159.8 451.7 159.8zM307.2 237.3C305.3 236.5 303.4 235.4 301.7 234.2C289.1 227.7 274.7 224 259.6 224C235.1 224 211.6 233.7 194.2 251.1L123.1 322.2C105.8 339.5 96 363.1 96 387.6C96 438.7 137.4 480.1 188.5 480.1C205 480.1 221.1 475.7 235.2 467.5C251 483.5 269.4 496.9 289.8 507C261.6 530.9 225.8 544.2 188.5 544.2C102.1 544.2 32 474.2 32 387.7C32 346.2 48.5 306.4 77.8 277.1L148.9 206C178.2 176.7 218 160.2 259.5 160.2C346.1 160.2 416 230.8 416 317.1C416 318.4 416 319.7 416 321C415.6 338.7 400.9 352.6 383.2 352.2C365.5 351.8 351.6 337.1 352 319.4C352 318.6 352 317.9 352 317.1C352 283.4 334 253.8 307.2 237.5z",transform:"matrix(1 0 0 1 -15 -15)"},drawopenpath:{width:70,height:70,path:"M33.21,85.65a7.31,7.31,0,0,1-2.59-.48c-8.16-3.11-9.27-19.8-9.88-41.3-.1-3.58-.19-6.68-.35-9-.15-2.1-.67-3.48-1.43-3.79-2.13-.88-7.91,2.32-12,5.86L3,32.38c1.87-1.64,11.55-9.66,18.27-6.9,2.13.87,4.75,3.14,5.17,9,.17,2.43.26,5.59.36,9.25a224.17,224.17,0,0,0,1.5,23.4c1.54,10.76,4,12.22,4.48,12.4.84.32,2.79-.46,5.76-3.59L43,80.07C41.53,81.57,37.68,85.64,33.21,85.65ZM74.81,69a11.34,11.34,0,0,0,6.09-6.72L87.26,44.5,74.72,32,56.9,38.35c-2.37.86-5.57,3.42-6.61,6L38.65,72.14l8.42,8.43ZM55,46.27a7.91,7.91,0,0,1,3.64-3.17l14.8-5.3,8,8L76.11,60.6l-.06.19a6.37,6.37,0,0,1-3,3.43L48.25,74.59,44.62,71Zm16.57,7.82A6.9,6.9,0,1,0,64.64,61,6.91,6.91,0,0,0,71.54,54.09Zm-4.05,0a2.85,2.85,0,1,1-2.85-2.85A2.86,2.86,0,0,1,67.49,54.09Zm-4.13,5.22L60.5,56.45,44.26,72.7l2.86,2.86ZM97.83,35.67,84.14,22l-8.57,8.57L89.26,44.24Zm-13.69-8,8,8-2.85,2.85-8-8Z",transform:"matrix(1 0 0 1 -15 -15)"},drawclosedpath:{width:90,height:90,path:"M88.41,21.12a26.56,26.56,0,0,0-36.18,0l-2.07,2-2.07-2a26.57,26.57,0,0,0-36.18,0,23.74,23.74,0,0,0,0,34.8L48,90.12a3.22,3.22,0,0,0,4.42,0l36-34.21a23.73,23.73,0,0,0,0-34.79ZM84,51.24,50.16,83.35,16.35,51.25a17.28,17.28,0,0,1,0-25.47,20,20,0,0,1,27.3,0l4.29,4.07a3.23,3.23,0,0,0,4.44,0l4.29-4.07a20,20,0,0,1,27.3,0,17.27,17.27,0,0,1,0,25.46ZM66.76,47.68h-33v6.91h33ZM53.35,35H46.44V68h6.91Z",transform:"matrix(1 0 0 1 -5 -5)"},lasso:{width:1031,height:1e3,path:"m1018 538c-36 207-290 336-568 286-277-48-473-256-436-463 10-57 36-108 76-151-13-66 11-137 68-183 34-28 75-41 114-42l-55-70 0 0c-2-1-3-2-4-3-10-14-8-34 5-45 14-11 34-8 45 4 1 1 2 3 2 5l0 0 113 140c16 11 31 24 45 40 4 3 6 7 8 11 48-3 100 0 151 9 278 48 473 255 436 462z m-624-379c-80 14-149 48-197 96 42 42 109 47 156 9 33-26 47-66 41-105z m-187-74c-19 16-33 37-39 60 50-32 109-55 174-68-42-25-95-24-135 8z m360 75c-34-7-69-9-102-8 8 62-16 128-68 170-73 59-175 54-244-5-9 20-16 40-20 61-28 159 121 317 333 354s407-60 434-217c28-159-121-318-333-355z",transform:"matrix(1 0 0 -1 0 850)"},selectbox:{width:1e3,height:1e3,path:"m0 850l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-285l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z",transform:"matrix(1 0 0 -1 0 850)"},drawline:{width:70,height:70,path:"M60.64,62.3a11.29,11.29,0,0,0,6.09-6.72l6.35-17.72L60.54,25.31l-17.82,6.4c-2.36.86-5.57,3.41-6.6,6L24.48,65.5l8.42,8.42ZM40.79,39.63a7.89,7.89,0,0,1,3.65-3.17l14.79-5.31,8,8L61.94,54l-.06.19a6.44,6.44,0,0,1-3,3.43L34.07,68l-3.62-3.63Zm16.57,7.81a6.9,6.9,0,1,0-6.89,6.9A6.9,6.9,0,0,0,57.36,47.44Zm-4,0a2.86,2.86,0,1,1-2.85-2.85A2.86,2.86,0,0,1,53.32,47.44Zm-4.13,5.22L46.33,49.8,30.08,66.05l2.86,2.86ZM83.65,29,70,15.34,61.4,23.9,75.09,37.59ZM70,21.06l8,8-2.84,2.85-8-8ZM87,80.49H10.67V87H87Z",transform:"matrix(1 0 0 1 -15 -15)"},drawrect:{width:80,height:80,path:"M78,22V79H21V22H78m9-9H12V88H87V13ZM68,46.22H31V54H68ZM53,32H45.22V69H53Z",transform:"matrix(1 0 0 1 -10 -10)"},drawcircle:{width:80,height:80,path:"M50,84.72C26.84,84.72,8,69.28,8,50.3S26.84,15.87,50,15.87,92,31.31,92,50.3,73.16,84.72,50,84.72Zm0-60.59c-18.6,0-33.74,11.74-33.74,26.17S31.4,76.46,50,76.46,83.74,64.72,83.74,50.3,68.6,24.13,50,24.13Zm17.15,22h-34v7.11h34Zm-13.8-13H46.24v34h7.11Z",transform:"matrix(1 0 0 1 -10 -10)"},eraseshape:{width:80,height:80,path:"M82.77,78H31.85L6,49.57,31.85,21.14H82.77a8.72,8.72,0,0,1,8.65,8.77V69.24A8.72,8.72,0,0,1,82.77,78ZM35.46,69.84H82.77a.57.57,0,0,0,.49-.6V29.91a.57.57,0,0,0-.49-.61H35.46L17,49.57Zm32.68-34.7-24,24,5,5,24-24Zm-19,.53-5,5,24,24,5-5Z",transform:"matrix(1 0 0 1 -10 -10)"},spikeline:{width:1e3,height:1e3,path:"M512 409c0-57-46-104-103-104-57 0-104 47-104 104 0 57 47 103 104 103 57 0 103-46 103-103z m-327-39l92 0 0 92-92 0z m-185 0l92 0 0 92-92 0z m370-186l92 0 0 93-92 0z m0-184l92 0 0 92-92 0z",transform:"matrix(1.5 0 0 -1.5 0 850)"},pencil:{width:1792,height:1792,path:"M491 1536l91-91-235-235-91 91v107h128v128h107zm523-928q0-22-22-22-10 0-17 7l-542 542q-7 7-7 17 0 22 22 22 10 0 17-7l542-542q7-7 7-17zm-54-192l416 416-832 832h-416v-416zm683 96q0 53-37 90l-166 166-416-416 166-165q36-38 90-38 53 0 91 38l235 234q37 39 37 91z",transform:"matrix(1 0 0 1 0 1)"},newplotlylogo:{name:"newplotlylogo",svg:[""," plotly-logomark"," "," "," "," "," "," "," "," "," "," "," "," "," ",""].join("")}}});var J1={};Rt(J1,{CIRCLE_SIDES:()=>Bne,SQRT2:()=>Xne,cos45:()=>Gne,i000:()=>Hne,i090:()=>One,i180:()=>Yne,i270:()=>Une,sin45:()=>Vne});var Bne,Hne,One,Yne,Une,Gne,Vne,Xne,$1=Pt(()=>{"use strict";Bne=32,Hne=0,One=8,Yne=16,Une=24,Gne=Math.cos(Math.PI/4),Vne=Math.sin(Math.PI/4),Xne=Math.sqrt(2)});var K1=J((P5e,BS)=>{"use strict";var Wne=Re().strTranslate;function IS(e,r){switch(e.type){case"log":return e.p2d(r);case"date":return e.p2r(r,0,e.calendar);default:return e.p2r(r)}}function Zne(e,r){switch(e.type){case"log":return e.d2p(r);case"date":return e.r2p(r,0,e.calendar);default:return e.r2p(r)}}function Jne(e){var r=e._id.charAt(0)==="y"?1:0;return function(t){return IS(e,t[r])}}function $ne(e){return Wne(e.xaxis._offset,e.yaxis._offset)}BS.exports={p2r:IS,r2p:Zne,axValue:Jne,getTransform:$ne}});var so=J(Tl=>{"use strict";var Kne=Gg(),YS=($1(),Xe(J1)),K0=YS.CIRCLE_SIDES,n5=YS.SQRT2,US=K1(),HS=US.p2r,OS=US.r2p,jne=[0,3,4,5,6,1,2],Qne=[0,3,4,1,2];Tl.writePaths=function(e){var r=e.length;if(!r)return"M0,0Z";for(var t="",a=0;a0&&s{"use strict";var GS=ua(),JS=$0(),eie=JS.drawMode,rie=JS.openMode,j0=($1(),Xe(J1)),VS=j0.i000,XS=j0.i090,WS=j0.i180,ZS=j0.i270,tie=j0.cos45,aie=j0.sin45,$S=K1(),Q1=$S.p2r,uo=$S.r2p,nie=jl(),iie=nie.clearOutline,ed=so(),lie=ed.readPaths,oie=ed.writePaths,sie=ed.ellipseOver,uie=ed.fixDatesForPaths;function fie(e,r){if(e.length){var t=e[0][0];if(t){var a=r.gd,n=r.isActiveShape,i=r.dragmode,l=(a.layout||{}).shapes||[];if(!eie(i)&&n!==void 0){var o=a._fullLayout._activeShapeIndex;if(o{"use strict";var cie=$0(),vie=cie.selectMode,die=jl(),hie=die.clearOutline,i5=so(),pie=i5.readPaths,mie=i5.writePaths,yie=i5.fixDatesForPaths;QS.exports=function(r,t){if(r.length){var a=r[0][0];if(a){var n=a.getAttribute("d"),i=t.gd,l=i._fullLayout.newselection,o=t.plotinfo,s=o.xaxis,u=o.yaxis,f=t.isActiveSelection,c=t.dragmode,d=(i.layout||{}).selections||[];if(!vie(c)&&f!==void 0){var h=i._fullLayout._activeSelectionIndex;if(hwie,paramIsX:()=>xie,paramIsY:()=>_ie,paramRE:()=>bie,segmentRE:()=>gie});var gie,bie,xie,_ie,wie,Kf=Pt(()=>{"use strict";gie=/[MLHVQCTSZ][^MLHVQCTSZ]*/g,bie=/[^\s,]+/g,xie={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:{}},_ie={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:3},Z:{}},wie={M:2,L:2,H:1,V:1,Q:4,C:6,T:2,S:4,Z:0}});var co=J(Aa=>{"use strict";var il=(Kf(),Xe($f)),eD=Re(),fo=Mt();Aa.rangeToShapePosition=function(e){return e.type==="log"?e.r2d:function(r){return r}};Aa.shapePositionToRange=function(e){return e.type==="log"?e.d2r:function(r){return r}};Aa.decodeDate=function(e){return function(r){return r.replace&&(r=r.replace("_"," ")),e(r)}};Aa.encodeDate=function(e){return function(r){return e(r).replace(" ","_")}};Aa.extractPathCoords=function(e,r,t){var a=[],n=e.match(il.segmentRE);return n.forEach(function(i){var l=r[i.charAt(0)].drawn;if(l!==void 0){var o=i.slice(1).match(il.paramRE);if(!(!o||o.length{let o=l.charAt(0),s=n[o].drawn!==void 0;return i+(s?1:0)},0)};Aa.getDataToPixel=function(e,r,t,a,n){var i=e._fullLayout._size,l;if(r)if(n==="domain")l=function(s){return r._length*(a?1-s:s)+r._offset};else{var o=Aa.shapePositionToRange(r);l=function(s){var u=nl(r,t);return r._offset+r.r2p(o(s,!0))+u},r.type==="date"&&(l=Aa.decodeDate(l))}else a?l=function(s){return i.t+i.h*(1-s)}:l=function(s){return i.l+i.w*s};return l};Aa.getPixelToData=function(e,r,t,a){var n=e._fullLayout._size,i;if(r)if(a==="domain")i=function(o){var s=(o-r._offset)/r._length;return t?1-s:s};else{var l=Aa.rangeToShapePosition(r);i=function(o){return l(r.p2r(o-r._offset))}}else t?i=function(o){return 1-(o-n.t)/n.h}:i=function(o){return(o-n.l)/n.w};return i};Aa.roundPositionForSharpStrokeRendering=function(e,r){var t=Math.round(r%2)===1,a=Math.round(e);return t?a+.5:a};Aa.makeShapesOptionsAndPlotinfo=function(e,r){var t=e._fullLayout.shapes[r]||{},a=e._fullLayout._plots[t.xref+t.yref],n=!!a;return n?a._hadPlotinfo=!0:(a={},t.xref&&t.xref!=="paper"&&(a.xaxis=e._fullLayout[t.xref+"axis"]),t.yref&&t.yref!=="paper"&&(a.yaxis=e._fullLayout[t.yref+"axis"])),a.xsizemode=t.xsizemode,a.ysizemode=t.ysizemode,a.xanchor=t.xanchor,a.yanchor=t.yanchor,{options:t,plotinfo:a}};Aa.makeSelectionsOptionsAndPlotinfo=function(e,r){var t=e._fullLayout.selections[r]||{},a=e._fullLayout._plots[t.xref+t.yref],n=!!a;return n?a._hadPlotinfo=!0:(a={},t.xref&&(a.xaxis=e._fullLayout[t.xref+"axis"]),t.yref&&(a.yaxis=e._fullLayout[t.yref+"axis"])),{options:t,plotinfo:a}};Aa.getPathString=function(e,r){let t=r.type,a=fo.getRefType(r.xref),n=fo.getRefType(r.yref),i=e._fullLayout._size;var l,o,s,u,f,c,d,h,m,g,y,x;function w(P,z,N,I){var B;if(P)if(z==="domain")I?B=function(H){return P._offset+P._length*(1-H)}:B=function(H){return P._offset+P._length*H};else{let H=Aa.shapePositionToRange(P);B=function(Y){return P._offset+P.r2p(H(Y,!0))},N==="path"&&P.type==="date"&&(B=Aa.decodeDate(B))}else I?B=function(H){return i.t+i.h*(1-H)}:B=function(H){return i.l+i.w*H};return B}if(a==="array"?(d=[],l=r.xref.map(function(P){return fo.getFromId(e,P)}),d=r.xref.map(function(P,z){return w(l[z],fo.getRefType(P),t,!1)})):(l=fo.getFromId(e,r.xref),d=w(l,a,t,!1)),n==="array"?(h=[],o=r.yref.map(function(P){return fo.getFromId(e,P)}),h=r.yref.map(function(P,z){return w(o[z],fo.getRefType(P),t,!0)})):(o=fo.getFromId(e,r.yref),h=w(o,n,t,!0)),t==="path")return Mie(r,d,h);if(a==="array")s=nl(l[0],r.x0shift),u=nl(l[1],r.x1shift),m=d[0](r.x0)+s,g=d[1](r.x1)+u;else if(s=nl(l,r.x0shift),u=nl(l,r.x1shift),r.xsizemode==="pixel"){let P=d(r.xanchor);m=P+r.x0+s,g=P+r.x1+u}else m=d(r.x0)+s,g=d(r.x1)+u;if(n==="array")f=nl(o[0],r.y0shift),c=nl(o[1],r.y1shift),y=h[0](r.y0)+f,x=h[1](r.y1)+c;else if(f=nl(o,r.y0shift),c=nl(o,r.y1shift),r.ysizemode==="pixel"){let P=h(r.yanchor);y=P-r.y0+f,x=P-r.y1+c}else y=h(r.y0)+f,x=h(r.y1)+c;if(t==="line")return"M"+m+","+y+"L"+g+","+x;if(t==="rect")return"M"+m+","+y+"H"+g+"V"+x+"H"+m+"Z";var T=(m+g)/2,b=(y+x)/2,M=Math.abs(T-m),S=Math.abs(b-y),A="A"+M+","+S,L=T+M+","+b,q=T+","+(b-S);return"M"+L+A+" 0 1,1 "+q+A+" 0 0,1 "+L+"Z"};function Mie(e,r,t){let a=e.path,n=e.xsizemode,i=e.ysizemode,l=e.xanchor,o=e.yanchor,s=Array.isArray(e.xref),u=Array.isArray(e.yref);var f=0,c=0;return a.replace(il.segmentRE,function(d){var h=0,m=d.charAt(0),g=il.paramIsX[m],y=il.paramIsY[m],x=il.numParams[m];let w=g.drawn!==void 0,T=y.drawn!==void 0,b=s?r[f]:r,M=u?t[c]:t;var S=d.slice(1).replace(il.paramRE,function(A){return g[h]?n==="pixel"?A=b(l)+Number(A):A=b(A):y[h]&&(i==="pixel"?A=M(o)-Number(A):A=M(A)),h++,h>x&&(A="X"),A});return h>x&&(S=S.replace(/[\s,]*X.*/,""),eD.log("Ignoring extra params in segment "+d)),w&&f++,T&&c++,m+S})}Aa.getPixelShift=nl;function nl(e,r){r=r||0;var t=0;return r&&e&&(e.type==="category"||e.type==="multicategory")&&(t=(e.r2p(1)-e.r2p(0))*r),t}});var o5=J((I5e,aD)=>{"use strict";var Tie=Re(),ll=Mt(),rD=Ta(),tD=lt(),Aie=so().readPaths,_s=co(),kie=_s.getPathString,jf=A2(),Cie=(Oa(),Xe(Ha)).FROM_TL;aD.exports=function(r,t,a,n){if(n.selectAll(".shape-label").remove(),!!(a.label.text||a.label.texttemplate)){var i;if(a.label.texttemplate){var l={};if(a.type!=="path"){var o=ll.getFromId(r,a.xref),s=ll.getFromId(r,a.yref);let W=Array.isArray(a.xref),ee=Array.isArray(a.yref);for(var u in jf){var f=typeof jf[u]=="function",c=!W||jf.simpleXVariables.includes(u),d=!ee||jf.simpleYVariables.includes(u);if(f&&c&&d){var h=jf[u](a,o,s);h!==void 0&&(l[u]=h)}}}i=Tie.texttemplateStringForShapes({data:[l],fallback:a.label.texttemplatefallback,locale:r._fullLayout._d3locale,template:a.label.texttemplate})}else i=a.label.text;var m={"data-index":t},g=a.label.font,y={"data-notex":1},x=n.append("g").attr(m).classed("shape-label",!0),w=x.append("text").attr(y).classed("shape-label-text",!0).text(i),T,b,M,S;if(a.path){var A=kie(r,a),L=Aie(A,r);T=1/0,M=1/0,b=-1/0,S=-1/0;for(var q=0;q_s.getDataToPixel(r,qe,be,!1,Ce)(ze),Te=(ze,be,qe,Ce)=>_s.getDataToPixel(r,qe,be,!0,Ce)(ze);if(a.xsizemode==="pixel"){let ze=ce(a.xanchor,void 0,ne,_e),be=_s.getPixelShift(ne,a.x0shift),qe=_s.getPixelShift(ne,a.x1shift);T=ze+a.x0+be,b=ze+a.x1+qe}else T=ce(a.x0,a.x0shift,ne,_e),b=ce(a.x1,a.x1shift,fe,ue);if(a.ysizemode==="pixel"){let ze=Te(a.yanchor,void 0,we,Me),be=_s.getPixelShift(we,a.y0shift),qe=_s.getPixelShift(we,a.y1shift);M=ze-a.y0+be,S=ze-a.y1+qe}else M=Te(a.y0,a.y0shift,we,Me),S=Te(a.y1,a.y1shift,j,ge)}var H=a.label.textangle;H==="auto"&&(a.type==="line"?H=Sie(T,M,b,S):H=0),w.call(function(W){return W.call(tD.font,g).attr({}),rD.convertToTspans(W,r),W});var Y=tD.bBox(w.node()),G=Die(T,M,b,S,a,H,Y),O=G.textx,X=G.texty,Z=G.xanchor;w.attr({"text-anchor":{left:"start",center:"middle",right:"end"}[Z],y:X,x:O,transform:"rotate("+H+","+O+","+X+")"}).call(rD.positionText,O,X)}};function Sie(e,r,t,a){var n,i;return i=Math.abs(t-e),t>=e?n=r-a:n=a-r,-180/Math.PI*Math.atan2(n,i)}function Die(e,r,t,a,n,i,l){var o=n.label.textposition,s=n.label.textangle,u=n.label.padding,f=n.type,c=Math.PI/180*i,d=Math.sin(c),h=Math.cos(c),m=n.label.xanchor,g=n.label.yanchor,y,x,w,T;if(f==="line"){o==="start"?(y=e,x=r):o==="end"?(y=t,x=a):(y=(e+t)/2,x=(r+a)/2),m==="auto"&&(o==="start"?s==="auto"?t>e?m="left":te?m="right":te?m="right":te?m="left":t{"use strict";var Lie=Re(),qie=Lie.strTranslate,nD=Ci(),oD=$0(),Eie=oD.drawMode,sD=oD.selectMode,uD=kr(),iD=Nr(),ad=($1(),Xe(J1)),Pie=ad.i000,Rie=ad.i090,zie=ad.i180,Fie=ad.i270,Nie=jl(),fD=Nie.clearOutlineControllers,u5=so(),td=u5.pointsOnRectangle,s5=u5.pointsOnEllipse,Iie=u5.writePaths,Bie=rd().newShapes,Hie=rd().createShapeObj,Oie=l5(),Yie=o5();cD.exports=function e(r,t,a,n){n||(n=0);var i=a.gd;function l(){e(r,t,a,n++),(s5(r[0])||a.hasText)&&o({redrawing:!0})}function o(G){var O={};a.isActiveShape!==void 0&&(a.isActiveShape=!1,O=Bie(t,a)),a.isActiveSelection!==void 0&&(a.isActiveSelection=!1,O=Oie(t,a),i._fullLayout._reselect=!0),Object.keys(O).length&&uD.call((G||{}).redrawing?"relayout":"_guiRelayout",i,O)}var s=i._fullLayout,u=s._zoomlayer,f=a.dragmode,c=Eie(f),d=sD(f);(c||d)&&(i._fullLayout._outlining=!0),fD(i),t.attr("d",Iie(r));var h,m,g,y,x;if(!n&&(a.isActiveShape||a.isActiveSelection)){x=Uie([],r);var w=u.append("g").attr("class","outline-controllers");P(w),Y()}if(c&&a.hasText){var T=u.select(".label-temp"),b=Hie(t,a,a.dragmode);Yie(i,"label-temp",b,T)}function M(G){g=+G.srcElement.getAttribute("data-i"),y=+G.srcElement.getAttribute("data-j"),h[g][y].moveFn=S}function S(G,O){if(r.length){var X=x[g][y][1],Z=x[g][y][2],W=r[g],ee=W.length;if(td(W)){var ne=G,fe=O;if(a.isActiveSelection){var we=lD(W,y);we[1]===W[y][1]?fe=0:ne=0}for(var j=0;j1&&!(G.length===2&&G[1][0]==="Z")&&(y===0&&(G[0][0]="M"),r[g]=G,l(),o())}}function q(G,O){if(G===2){g=+O.srcElement.getAttribute("data-i"),y=+O.srcElement.getAttribute("data-j");var X=r[g];!td(X)&&!s5(X)&&L()}}function P(G){h=[];for(var O=0;O{"use strict";var Vie=Or(),yD=kr(),c5=Re(),ws=Mt(),Xie=so().readPaths,Wie=nd(),ld=o5(),gD=jl().clearOutlineControllers,f5=Nr(),od=lt(),Zie=mt().arrayEditor,vD=Ci(),dD=Si(),hD=lo(),Ms=(Kf(),Xe($f)),xn=co(),v5=xn.getPathString;_D.exports={draw:d5,drawOne:bD,eraseActiveShape:Qie,drawLabel:ld};function d5(e){var r=e._fullLayout;r._shapeUpperLayer.selectAll("path").remove(),r._shapeLowerLayer.selectAll("path").remove(),r._shapeUpperLayer.selectAll("text").remove(),r._shapeLowerLayer.selectAll("text").remove();for(var t in r._plots){var a=r._plots[t].shapelayer;a&&(a.selectAll("path").remove(),a.selectAll("text").remove())}for(var n=0;n{if(!e._dragging&&e._fullLayout.hoveranywhere){let l=n(i);l&&dD.hover(e,l,t.id)}}),a.addEventListener("click",i=>{if(!e._dragged&&e._fullLayout.clickanywhere){let l=n(i);l&&dD.click(e,l,t.id)}})}function xD(e,r,t){let a=t.xref,n=t.yref;if(Array.isArray(a)||Array.isArray(n)){let i="clip"+r._fullLayout._uid+"shape"+t._index,l=$ie(r,a,n);c5.ensureSingleById(r._fullLayout._clips,"clipPath",i,function(o){o.append("rect")}).select("rect").attr(l),od.setClipUrl(e,i,r)}else{let i=(a+n).replace(/paper/g,"").replace(/[xyz][0-9]* *domain/g,"");od.setClipUrl(e,i?"clip"+r._fullLayout._uid+i:null,r)}}function $ie(e,r,t){let a=e._fullLayout._size;function n(o,s){let u=(Array.isArray(o)?o:[o]).map(d=>ws.getFromId(e,d)).filter(Boolean);if(!u.length)return s?[a.t,a.t+a.h]:[a.l,a.l+a.w];let f=u.map(function(d){return d._offset}),c=u.map(function(d){return d._offset+d._length});return[Math.min(...f),Math.max(...c)]}let i=n(r,!1),l=n(t,!0);return{x:i[0],y:l[0],width:i[1]-i[0],height:l[1]-l[0]}}function Kie(e,r,t,a,n,i){var l=10,o=10,s=t.xsizemode==="pixel",u=t.ysizemode==="pixel",f=t.type==="line",c=t.type==="path",d=i.modifyItem,h,m,g,y,x,w,T,b,M,S,A,L,q,P,z,N=Vie.select(r.node().parentNode),I=ws.getFromId(e,t.xref),B=ws.getRefType(t.xref),H=ws.getFromId(e,t.yref),Y=ws.getRefType(t.yref),G=t.x0shift,O=t.x1shift,X=t.y0shift,Z=t.y1shift,W=function(Ue,ke){var We=xn.getDataToPixel(e,I,ke,!1,B);return We(Ue)},ee=function(Ue,ke){var We=xn.getDataToPixel(e,H,ke,!0,Y);return We(Ue)},ne=xn.getPixelToData(e,I,!1,B),fe=xn.getPixelToData(e,H,!0,Y),we=ue(),j={element:we.node(),gd:e,prepFn:ce,doneFn:Te,clickFn:ze},_e;vD.init(j),we.node().onmousemove=ge;function ue(){return f?Me():r}function Me(){var Ue=10,ke=Math.max(t.line.width,Ue),We=n.append("g").attr("data-index",a).attr("drag-helper",!0);We.append("path").attr("d",r.attr("d")).style({cursor:"move","stroke-width":ke,"stroke-opacity":"0"});var je={"fill-opacity":"0"},Ze=Math.max(ke/2,Ue);return We.append("circle").attr({"data-line-point":"start-point",cx:s?W(t.xanchor)+t.x0:W(t.x0,G),cy:u?ee(t.yanchor)-t.y0:ee(t.y0,X),r:Ze}).style(je).classed("cursor-grab",!0),We.append("circle").attr({"data-line-point":"end-point",cx:s?W(t.xanchor)+t.x1:W(t.x1,O),cy:u?ee(t.yanchor)-t.y1:ee(t.y1,Z),r:Ze}).style(je).classed("cursor-grab",!0),We}function ge(Ue){if(id(e)){_e=null;return}if(f)Ue.target.tagName==="path"?_e="move":_e=Ue.target.attributes["data-line-point"].value==="start-point"?"resize-over-start-point":"resize-over-end-point";else{var ke=j.element.getBoundingClientRect(),We=ke.right-ke.left,je=ke.bottom-ke.top,Ze=Ue.clientX-ke.left,Ae=Ue.clientY-ke.top,Pe=!c&&We>l&&je>o&&!Ue.shiftKey?vD.getCursor(Ze/We,1-Ae/je):"move";hD(r,Pe),_e=Pe.split("-")[0]}}function ce(Ue){id(e)||(s&&(x=W(t.xanchor)),u&&(w=ee(t.yanchor)),t.type==="path"?z=t.path:(h=s?t.x0:W(t.x0),m=u?t.y0:ee(t.y0),g=s?t.x1:W(t.x1),y=u?t.y1:ee(t.y1)),hy?(T=m,A="y0",b=y,L="y1"):(T=y,A="y1",b=m,L="y0"),ge(Ue),Ce(n,t),Ee(r,t,e),j.moveFn=_e==="move"?be:qe,j.altKey=Ue.altKey)}function Te(){id(e)||(hD(r),De(n),xD(r,e,t),yD.call("_guiRelayout",e,i.getUpdateObj()))}function ze(){id(e)||De(n)}function be(Ue,ke){if(t.type==="path"){var We=function(Ae){return Ae},je=We,Ze=We;s?d("xanchor",t.xanchor=ne(x+Ue)):(je=function(Pe){return ne(W(Pe)+Ue)},I&&I.type==="date"&&(je=xn.encodeDate(je))),u?d("yanchor",t.yanchor=fe(w+ke)):(Ze=function(Pe){return fe(ee(Pe)+ke)},H&&H.type==="date"&&(Ze=xn.encodeDate(Ze))),d("path",t.path=pD(z,je,Ze))}else s?d("xanchor",t.xanchor=ne(x+Ue)):(d("x0",t.x0=ne(h+Ue)),d("x1",t.x1=ne(g+Ue))),u?d("yanchor",t.yanchor=fe(w+ke)):(d("y0",t.y0=fe(m+ke)),d("y1",t.y1=fe(y+ke)));r.attr("d",v5(e,t)),Ce(n,t),ld(e,a,t,N)}function qe(Ue,ke){if(c){var We=function(Ge){return Ge},je=We,Ze=We;s?d("xanchor",t.xanchor=ne(x+Ue)):(je=function(nr){return ne(W(nr)+Ue)},I&&I.type==="date"&&(je=xn.encodeDate(je))),u?d("yanchor",t.yanchor=fe(w+ke)):(Ze=function(nr){return fe(ee(nr)+ke)},H&&H.type==="date"&&(Ze=xn.encodeDate(Ze))),d("path",t.path=pD(z,je,Ze))}else if(f){if(_e==="resize-over-start-point"){var Ae=h+Ue,Pe=u?m-ke:m+ke;d("x0",t.x0=s?Ae:ne(Ae)),d("y0",t.y0=u?Pe:fe(Pe))}else if(_e==="resize-over-end-point"){var Qe=g+Ue,re=u?y-ke:y+ke;d("x1",t.x1=s?Qe:ne(Qe)),d("y1",t.y1=u?re:fe(re))}}else{var he=function(Ge){return _e.indexOf(Ge)!==-1},Ve=he("n"),hr=he("s"),Le=he("w"),de=he("e"),xe=Ve?T+ke:T,He=hr?b+ke:b,Je=Le?M+Ue:M,Ie=de?S+Ue:S;u&&(Ve&&(xe=T-ke),hr&&(He=b-ke)),(!u&&He-xe>o||u&&xe-He>o)&&(d(A,t[A]=u?xe:fe(xe)),d(L,t[L]=u?He:fe(He))),Ie-Je>l&&(d(q,t[q]=s?Je:ne(Je)),d(P,t[P]=s?Ie:ne(Ie)))}r.attr("d",v5(e,t)),Ce(n,t),ld(e,a,t,N)}function Ce(Ue,ke){(s||u)&&We();function We(){var je=ke.type!=="path",Ze=Ue.selectAll(".visual-cue").data([0]),Ae=1;Ze.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":Ae}).classed("visual-cue",!0);var Pe=W(s?ke.xanchor:c5.midRange(je?[ke.x0,ke.x1]:xn.extractPathCoords(ke.path,Ms.paramIsX))),Qe=ee(u?ke.yanchor:c5.midRange(je?[ke.y0,ke.y1]:xn.extractPathCoords(ke.path,Ms.paramIsY)));if(Pe=xn.roundPositionForSharpStrokeRendering(Pe,Ae),Qe=xn.roundPositionForSharpStrokeRendering(Qe,Ae),s&&u){var re="M"+(Pe-1-Ae)+","+(Qe-1-Ae)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";Ze.attr("d",re)}else if(s){var he="M"+(Pe-1-Ae)+","+(Qe-9-Ae)+"v18 h2 v-18 Z";Ze.attr("d",he)}else{var Ve="M"+(Pe-9-Ae)+","+(Qe-1-Ae)+"h18 v2 h-18 Z";Ze.attr("d",Ve)}}}function De(Ue){Ue.selectAll(".visual-cue").remove()}function Ee(Ue,ke,We){var je=ke.xref,Ze=ke.yref,Ae=ws.getFromId(We,je),Pe=ws.getFromId(We,Ze),Qe="";je!=="paper"&&!Ae.autorange&&(Qe+=je),Ze!=="paper"&&!Pe.autorange&&(Qe+=Ze),od.setClipUrl(Ue,Qe?"clip"+We._fullLayout._uid+Qe:null,We)}}function pD(e,r,t){return e.replace(Ms.segmentRE,function(a){var n=0,i=a.charAt(0),l=Ms.paramIsX[i],o=Ms.paramIsY[i],s=Ms.numParams[i],u=a.slice(1).replace(Ms.paramRE,function(f){return n>=s||(l[n]?f=r(f):o[n]&&(f=t(f)),n++),f});return i+u})}function jie(e,r){if(sd(e)){var t=r.node(),a=+t.getAttribute("data-index");if(a>=0){if(a===e._fullLayout._activeShapeIndex){mD(e);return}e._fullLayout._activeShapeIndex=a,e._fullLayout._deactivateShape=mD,d5(e)}}}function mD(e){if(sd(e)){var r=e._fullLayout._activeShapeIndex;r>=0&&(gD(e),delete e._fullLayout._activeShapeIndex,d5(e))}}function Qie(e){if(sd(e)){gD(e);var r=e._fullLayout._activeShapeIndex,t=(e.layout||{}).shapes||[];if(r{"use strict";var Q0=Re()._,ele=function(e){return{DIALOG_TITLE:Q0(e,"Share chart"),DIALOG_MESSAGE_CLOUD:Q0(e,"This chart will be uploaded to {Plotly Cloud} to create a sharing link. Only you can see it until you change its visibility."),DIALOG_MESSAGE_CLOUD_ACCOUNT:Q0(e,"If you don't have a Plotly Cloud account yet, you'll have a chance to create one."),DIALOG_MESSAGE_OTHER:Q0(e,"This chart will be sent to {serverUrl}."),DIALOG_CANCEL:Q0(e,"Cancel"),DIALOG_CONFIRM:Q0(e,"Share")}};wD.exports=ele});var kD=J((Y5e,AD)=>{"use strict";var TD=Or(),{dfltConfig:rle}=Hl(),tle=MD(),ale=(e,r,t,a,n)=>{let i=tle(e),l=r.append("div").classed("plotly-cloud-dialog-box",!0);if(l.append("div").classed("plotly-cloud-dialog-title",!0).text(i.DIALOG_TITLE),t===rle.plotlyServerURL){let s=l.append("div").classed("plotly-cloud-dialog-message",!0),u=new URL(t).origin,f=i.DIALOG_MESSAGE_CLOUD.split(/(\{|\})/),c=f[0],d=f[2],h=f[4];s.append("span").text(c),s.append("a").classed("plotly-cloud-dialog-message--hostname",!0).attr("href",u).attr("target","_blank").text(d),s.append("span").text(h),s.append("div").classed("plotly-cloud-dialog-message--account",!0).text(i.DIALOG_MESSAGE_CLOUD_ACCOUNT)}else{let s=new URL(t),u=s.hostname,f=s.origin,c=i.DIALOG_MESSAGE_OTHER.split(/(\{|\})/),d=c[0],h=c[4],m=l.append("div").classed("plotly-cloud-dialog-message",!0);m.append("span").text(d),m.append("a").classed("plotly-cloud-dialog-message--hostname",!0).attr("href",f).attr("target","_blank").text(u),m.append("span").text(h)}let o=l.append("div").classed("plotly-cloud-dialog-buttons",!0);o.append("button").classed("plotly-cloud-dialog-btn",!0).classed("plotly-cloud-dialog-btn--cancel",!0).text(i.DIALOG_CANCEL).on("click",n),o.append("button").classed("plotly-cloud-dialog-btn",!0).classed("plotly-cloud-dialog-btn--confirm",!0).text(i.DIALOG_CONFIRM).on("click",a)},nle=(e,r,t)=>{let a=TD.select(e._fullLayout._paperdiv.node());a.selectAll(".plotly-cloud-dialog").remove();let n=a.append("div").classed("plotly-cloud-dialog",!0),i=()=>{n.remove(),document.removeEventListener("keydown",l)},l=o=>{(o.key==="Escape"||o.keyCode===27)&&i()};document.addEventListener("keydown",l),n.on("click",()=>{TD.event.target===n.node()&&i()}),ale(e,n,r,()=>{i(),t()},i)};AD.exports=nle});var m5=J((U5e,PD)=>{"use strict";var Nn=kr(),ile=Qt(),SD=ua(),$r=Z1(),lle=ud().eraseActiveShape,ole=kD(),eu=Re(),Vr=eu._,Jr={};PD.exports=Jr;Jr.toImage={name:"toImage",title:function(e){var r=e._context.toImageButtonOptions||{},t=r.format||"png";return t==="png"?Vr(e,"Download plot as a PNG"):Vr(e,"Download plot")},icon:$r.camera,click:function(e){var r=e._context.toImageButtonOptions,t={format:r.format||"png"};eu.notifier(Vr(e,"Preparing image - this may take a few seconds"),"long",e),["filename","width","height","scale"].forEach(function(a){a in r&&(t[a]=r[a])}),Nn.call("downloadImage",e,t).then(function(a){eu.notifier(Vr(e,"Image download succeeded")+" - "+a,"long",e)}).catch(function(){eu.notifier(Vr(e,"Sorry, there was a problem downloading your image!"),"long",e)})}};Jr.downloadJson={name:"downloadJson",title:function(e){return Vr(e,"Download plot as JSON")},icon:$r.curlybraces,click:function(e){Nn.call("downloadImage",e,{format:"full-json"}).then(function(r){eu.notifier(Vr(e,"JSON download succeeded")+" - "+r,"long",e)}).catch(function(){eu.notifier(Vr(e,"Sorry, there was a problem downloading your JSON file!"),"long",e)})}};Jr.sendChartToCloud={name:"sendChartToCloud",title:function(e){return Vr(e,"Share chart...")},icon:$r.cloudupload,click:function(e){var r=(window.PLOTLYENV||{}).BASE_URL||e._context.plotlyServerURL;if(!r){console.error("No destination URL provided (plotlyServerURL is empty)");return}var t;try{t=new URL(r)}catch(n){console.error("Invalid plotlyServerURL: "+r);return}let a=["http:","https:"];if(!a.includes(t.protocol)){console.error(`Invalid protocol '${t.protocol}' in plotlyServerURL '${r}'. Must be one of: ${a.join(", ")}`);return}ole(e,r,function(){ile.sendDataToCloud(e,r)})}};Jr.zoom2d={name:"zoom2d",_cat:"zoom",title:function(e){return Vr(e,"Zoom")},attr:"dragmode",val:"zoom",icon:$r.zoombox,click:en};Jr.pan2d={name:"pan2d",_cat:"pan",title:function(e){return Vr(e,"Pan")},attr:"dragmode",val:"pan",icon:$r.pan,click:en};Jr.select2d={name:"select2d",_cat:"select",title:function(e){return Vr(e,"Box Select")},attr:"dragmode",val:"select",icon:$r.selectbox,click:en};Jr.lasso2d={name:"lasso2d",_cat:"lasso",title:function(e){return Vr(e,"Lasso Select")},attr:"dragmode",val:"lasso",icon:$r.lasso,click:en};Jr.drawclosedpath={name:"drawclosedpath",title:function(e){return Vr(e,"Draw closed freeform")},attr:"dragmode",val:"drawclosedpath",icon:$r.drawclosedpath,click:en};Jr.drawopenpath={name:"drawopenpath",title:function(e){return Vr(e,"Draw open freeform")},attr:"dragmode",val:"drawopenpath",icon:$r.drawopenpath,click:en};Jr.drawline={name:"drawline",title:function(e){return Vr(e,"Draw line")},attr:"dragmode",val:"drawline",icon:$r.drawline,click:en};Jr.drawrect={name:"drawrect",title:function(e){return Vr(e,"Draw rectangle")},attr:"dragmode",val:"drawrect",icon:$r.drawrect,click:en};Jr.drawcircle={name:"drawcircle",title:function(e){return Vr(e,"Draw circle")},attr:"dragmode",val:"drawcircle",icon:$r.drawcircle,click:en};Jr.eraseshape={name:"eraseshape",title:function(e){return Vr(e,"Erase active shape")},icon:$r.eraseshape,click:lle};Jr.zoomIn2d={name:"zoomIn2d",_cat:"zoomin",title:function(e){return Vr(e,"Zoom in")},attr:"zoom",val:"in",icon:$r.zoom_plus,click:en};Jr.zoomOut2d={name:"zoomOut2d",_cat:"zoomout",title:function(e){return Vr(e,"Zoom out")},attr:"zoom",val:"out",icon:$r.zoom_minus,click:en};Jr.autoScale2d={name:"autoScale2d",_cat:"autoscale",title:function(e){return Vr(e,"Autoscale")},attr:"zoom",val:"auto",icon:$r.autoscale,click:en};Jr.resetScale2d={name:"resetScale2d",_cat:"resetscale",title:function(e){return Vr(e,"Reset axes")},attr:"zoom",val:"reset",icon:$r.home,click:en};Jr.hoverClosestCartesian={name:"hoverClosestCartesian",_cat:"hoverclosest",title:function(e){return Vr(e,"Show closest data on hover")},attr:"hovermode",val:"closest",icon:$r.tooltip_basic,gravity:"ne",click:en};Jr.hoverCompareCartesian={name:"hoverCompareCartesian",_cat:"hoverCompare",title:function(e){return Vr(e,"Compare data on hover")},attr:"hovermode",val:function(e){return e._fullLayout._isHoriz?"y":"x"},icon:$r.tooltip_compare,gravity:"ne",click:en};function en(e,r){var t=r.currentTarget,a=t.getAttribute("data-attr"),n=t.getAttribute("data-val")||!0,i=e._fullLayout,l={},o=SD.list(e,null,!0),s=i._cartesianSpikesEnabled,u,f;if(a==="zoom"){var c=n==="in"?.5:2,d=(1+c)/2,h=(1-c)/2,m,g;for(f=0;f-S),[g,y]=c.invert(f.midPt),{minscale:x}=u.projection,w=(o=u.projection.maxscale)!=null?o:1/0,T=Math.min(x,w),b=Math.max(x,w),M=n==="in"?CD*d:1/CD*d;M>b?M=b:M{"use strict";var RD=m5(),cle=Object.keys(RD),zD=["drawline","drawopenpath","drawclosedpath","drawcircle","drawrect","eraseshape"],FD=["v1hovermode","hoverclosest","hovercompare","togglehover","togglespikelines"].concat(zD,["downloadJson"]),ru=[],vle=function(e){if(FD.indexOf(e._cat||e.name)===-1){var r=e.name,t=(e._cat||e.name).toLowerCase();ru.indexOf(r)===-1&&ru.push(r),ru.indexOf(t)===-1&&ru.push(t)}};cle.forEach(function(e){vle(RD[e])});ru.sort();ND.exports={DRAW_MODES:zD,backButtons:FD,foreButtons:ru}});var b5={};Rt(b5,{default:()=>hle});var g5,dle,hle,x5=Pt(()=>{"use strict";g5=Xx(y5()),dle={editType:"modebar",orientation:{valType:"enumerated",values:["v","h"],dflt:"h",editType:"modebar",description:"Sets the orientation of the modebar."},bgcolor:{valType:"color",editType:"modebar",description:"Sets the background color of the modebar."},color:{valType:"color",editType:"modebar",description:"Sets the color of the icons in the modebar."},activecolor:{valType:"color",editType:"modebar",description:"Sets the color of the active or hovered on icons in the modebar."},uirevision:{valType:"any",editType:"none",description:["Controls persistence of user-driven changes related to the modebar,","including `hovermode`, `dragmode`, and `showspikes` at both the","root level and inside subplots. Defaults to `layout.uirevision`."].join(" ")},add:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar",description:["Determines which predefined modebar buttons to add.","Please note that these buttons will only be shown if they are","compatible with all trace types used in a graph.","Similar to `config.modeBarButtonsToAdd` option.",`This may include *${g5.default.backButtons.join("*, *")}*.`].join(" ")},remove:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar",description:["Determines which predefined modebar buttons to remove.","Similar to `config.modeBarButtonsToRemove` option.",`This may include *${g5.default.foreButtons.join("*, *")}*.`].join(" ")}},hle=dle});var BD=J((V5e,ID)=>{"use strict";var ple=Re(),Qf=Nr(),mle=mt(),yle=(x5(),Xe(b5)).default;ID.exports=function(r,t){var a=r.modebar||{},n=mle.newContainer(t,"modebar");function i(o,s){return ple.coerce(a,n,yle,o,s)}i("orientation"),i("bgcolor",Qf.addOpacity(t.paper_bgcolor,.5));var l=Qf.contrast(Qf.rgb(t.modebar.bgcolor));i("color",Qf.addOpacity(l,.3)),i("activecolor",Qf.addOpacity(l,.7)),i("uirevision",t.uirevision),i("add"),i("remove")}});var UD=J((X5e,YD)=>{"use strict";var _5=Or(),gle=Xr(),vd=Re(),HD=Z1(),ble=Vu().version,xle=new DOMParser;function OD(e){this.container=e.container,this.element=document.createElement("div"),this.update(e.graphInfo,e.buttons),this.container.appendChild(this.element)}var ol=OD.prototype;ol.update=function(e,r){this.graphInfo=e;var t=this.graphInfo._context,a=this.graphInfo._fullLayout,n="modebar-"+a._uid;this.element.setAttribute("id",n),this.element.setAttribute("role","toolbar"),this._uid=n,this.element.className="modebar modebar--custom",t.displayModeBar==="hover"&&(this.element.className+=" modebar--hover ease-bg"),a.modebar.orientation==="v"&&(this.element.className+=" vertical",r=r.reverse());var i=a.modebar,l="#"+n+" .modebar-group";document.querySelectorAll(l).forEach(function(c){c.style.backgroundColor=i.bgcolor});var o=!this.hasButtons(r),s=this.hasLogo!==t.displaylogo,u=this.locale!==t.locale;if(this.locale=t.locale,(o||s||u)&&(this.removeAllButtons(),this.updateButtons(r),t.watermark||t.displaylogo)){var f=this.getLogo();t.watermark&&(f.className=f.className+" watermark"),a.modebar.orientation==="v"?this.element.insertBefore(f,this.element.childNodes[0]):this.element.appendChild(f),this.hasLogo=!0}this.updateActiveButton(),vd.setStyleOnHover("#"+n+" .modebar-btn",".active",".icon path","fill: "+i.activecolor,"fill: "+i.color,this.element)};ol.updateButtons=function(e){var r=this;this.buttons=e,this.buttonElements=[],this.buttonsNames=[],this.buttons.forEach(function(t){var a=r.createGroup();t.forEach(function(n){var i=n.name;if(!i)throw new Error("must provide button 'name' in button config");if(r.buttonsNames.indexOf(i)!==-1)throw new Error("button name '"+i+"' is taken");r.buttonsNames.push(i);var l=r.createButton(n);r.buttonElements.push(l),a.appendChild(l)}),r.element.appendChild(a)})};ol.createGroup=function(){var e=document.createElement("div");e.className="modebar-group";var r=this.graphInfo._fullLayout.modebar;return e.style.backgroundColor=r.bgcolor,e};ol.createButton=function(e){var r=this,t=document.createElement("button");t.setAttribute("type","button"),t.setAttribute("rel","tooltip"),t.className="modebar-btn";var a=e.title;a===void 0?a=e.name:typeof a=="function"&&(a=a(this.graphInfo)),(a||a===0)&&(t.setAttribute("data-title",a),t.setAttribute("aria-label",a)),e.attr!==void 0&&t.setAttribute("data-attr",e.attr);var n=e.val;n!==void 0&&(typeof n=="function"&&(n=n(this.graphInfo)),t.setAttribute("data-val",n));var i=e.click;if(typeof i!="function")throw new Error("must provide button 'click' function in button config");t.addEventListener("click",function(o){e.click(r.graphInfo,o),r.updateActiveButton(o.currentTarget)}),t.setAttribute("data-toggle",e.toggle||!1),e.toggle&&_5.select(t).classed("active",!0);var l=e.icon;return typeof l=="function"?t.appendChild(l()):t.appendChild(this.createIcon(l||HD.question)),t.setAttribute("data-gravity",e.gravity||"n"),t};ol.createIcon=function(e){var r=gle(e.height)?Number(e.height):e.ascent-e.descent,t="http://www.w3.org/2000/svg",a;if(e.path){a=document.createElementNS(t,"svg"),a.setAttribute("viewBox",[0,0,e.width,r].join(" ")),a.setAttribute("class","icon");var n=document.createElementNS(t,"path");n.setAttribute("d",e.path),e.transform?n.setAttribute("transform",e.transform):e.ascent!==void 0&&n.setAttribute("transform","matrix(1 0 0 -1 0 "+e.ascent+")"),a.appendChild(n)}if(e.svg){var i=xle.parseFromString(e.svg,"application/xml");a=i.childNodes[0]}return a.setAttribute("height","1em"),a.setAttribute("width","1em"),a};ol.updateActiveButton=function(e){var r=this.graphInfo._fullLayout,t=e!==void 0?e.getAttribute("data-attr"):null;this.buttonElements.forEach(function(a){var n=a.getAttribute("data-val")||!0,i=a.getAttribute("data-attr"),l=a.getAttribute("data-toggle")==="true",o=_5.select(a),s=function(c,d){var h=r.modebar,m=c.querySelector(".icon path");m&&(d||c.matches(":hover")?m.style.fill=h.activecolor:m.style.fill=h.color)};if(l){if(i===t){var u=!o.classed("active");o.classed("active",u),s(a,u)}}else{var f=i===null?i:vd.nestedProperty(r,i).get();o.classed("active",f===n),s(a,f===n)}})};ol.hasButtons=function(e){var r=this.buttons;if(!r||e.length!==r.length)return!1;for(var t=0;t{"use strict";var Mle=ua(),GD=qn(),w5=kr(),Tle=Ai().isUnifiedHover,Ale=UD(),dd=m5(),kle=y5().DRAW_MODES,Cle=Re().extendDeep;VD.exports=function(r){var t=r._fullLayout,a=r._context,n=t._modeBar;if(!a.displayModeBar&&!a.watermark){n&&(n.destroy(),delete t._modeBar);return}if(!Array.isArray(a.modeBarButtonsToRemove))throw new Error(["*modeBarButtonsToRemove* configuration options","must be an array."].join(" "));if(!Array.isArray(a.modeBarButtonsToAdd))throw new Error(["*modeBarButtonsToAdd* configuration options","must be an array."].join(" "));var i=a.modeBarButtons,l;Array.isArray(i)&&i.length?l=Ple(i):!a.displayModeBar&&a.watermark?l=[]:l=Sle(r),n?n.update(r,l):t._modeBar=Ale(r,l)};function Sle(e){var r=e._fullLayout,t=e._fullData,a=e._context;function n(O,X){if(typeof X=="string"){if(X.toLowerCase()===O.toLowerCase())return!0}else{var Z=X.name,W=X._cat||X.name;if(Z===O||W===O.toLowerCase())return!0}return!1}var i=r.modebar.add;typeof i=="string"&&(i=[i]);var l=r.modebar.remove;typeof l=="string"&&(l=[l]);var o=a.modeBarButtonsToAdd.concat(i.filter(function(O){for(var X=0;X1?(q=["toggleHover"],P=["resetViews"]):c?(L=["zoomInGeo","zoomOutGeo"],q=["hoverClosestGeo"],P=["resetGeo"]):f?(q=["hoverClosest3d"],P=["resetCameraDefault3d","resetCameraLastSave3d"]):g?(L=["zoomInMap","zoomOutMap"],q=["toggleHover"],P=["resetViewMap"]):d?q=["hoverClosestPie"]:w?(q=["hoverClosestCartesian","hoverCompareCartesian"],P=["resetViewSankey"]):q=["toggleHover"],u&&q.push("toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"),(qle(t)||b)&&(q=[]),u&&!T&&(L=["zoomIn2d","zoomOut2d","autoScale2d"],P[0]!=="resetViews"&&(P=["resetScale2d"])),f?z=["zoom3d","pan3d","orbitRotation","tableRotation"]:u&&!T||m?z=["zoom2d","pan2d"]:g||c?z=["pan2d"]:y&&(z=["zoom2d"]),Lle(t)&&z.push("select2d","lasso2d");var N=[],I=function(O){N.indexOf(O)===-1&&q.indexOf(O)!==-1&&N.push(O)};if(Array.isArray(o)){for(var B=[],H=0;H{"use strict";WD.exports={moduleType:"component",name:"modebar",layoutAttributes:(x5(),Xe(b5)).default,supplyLayoutDefaults:BD(),manage:XD()}});var T5=J((J5e,ZD)=>{"use strict";var Rle=(Oa(),Xe(Ha)).FROM_BL;ZD.exports=function(r,t,a){a===void 0&&(a=Rle[r.constraintoward||"center"]);var n=[r.r2l(r.range[0]),r.r2l(r.range[1])],i=n[0]+(n[1]-n[0])*a;r.range=r._input.range=[r.l2r(i+(n[0]-i)*t),r.l2r(i+(n[1]-i)*t)],r.setScale()}});var rc=J(ec=>{"use strict";var Ts=Re(),A5=Ff(),Di=ua().id2name,zle=Mi(),JD=T5(),Fle=g1(),Nle=(la(),Xe(da)).ALMOST_EQUAL,Ile=(Oa(),Xe(Ha)).FROM_BL;ec.handleDefaults=function(e,r,t){var a=t.axIds,n=t.axHasImage,i=r._axisConstraintGroups=[],l=r._axisMatchGroups=[],o,s,u,f,c,d,h,m;for(o=0;oi?t.slice(i):a.slice(n))+l}function Hle(e,r){for(var t=r._size,a=t.h/t.w,n={},i=Object.keys(e),l=0;lNle*m&&!w)){for(i=0;iN&&ZP&&(P=Z);var ee=(P-q)/(2*z);c/=ee,q=s.l2r(q),P=s.l2r(P),s.range=s._input.range=S{"use strict";var pd=Or(),rn=kr(),In=Qt(),ri=Re(),S5=Ta(),D5=W1(),tc=Nr(),tu=lt(),QD=Rf(),nL=M5(),ac=Mt(),Al=(Oa(),Xe(Ha)),iL=rc(),Ole=iL.enforce,Yle=iL.clean,eL=Ff().doAutoRange,lL="start",Ule="middle",oL="end",Gle=(ya(),Xe(ma)).zindexSeparator;ba.layoutStyles=function(e){return ri.syncOrAsync([In.doAutoMargin,Xle],e)};function Vle(e,r,t){for(var a=0;a=e[1]||n[1]<=e[0])&&i[0]r[0])return!0}return!1}function Xle(e){var r=e._fullLayout,t=r._size,a=t.p,n=ac.list(e,"",!0),i,l,o,s,u,f;if(r._paperdiv.style({width:e._context.responsive&&r.autosize&&!e._context._hasZeroWidth&&!e.layout.width?"100%":r.width+"px",height:e._context.responsive&&r.autosize&&!e._context._hasZeroHeight&&!e.layout.height?"100%":r.height+"px"}).selectAll(".main-svg").call(tu.setSize,r.width,r.height),e._context.setBackground(e,r.paper_bgcolor),ba.drawMainTitle(e),nL.manage(e),!r._has("cartesian"))return In.previousPromises(e);function c(ce,Te,ze){var be=ce._lw/2;if(ce._id.charAt(0)==="x"){if(Te){if(ze==="top")return Te._offset-a-be}else return t.t+t.h*(1-(ce.position||0))+be%1;return Te._offset+Te._length+a+be}if(Te){if(ze==="right")return Te._offset+Te._length+a+be}else return t.l+t.w*(ce.position||0)+be%1;return Te._offset-a-be}for(i=0;i0){$le(e,i,u,s),o.attr({x:l,y:i,"text-anchor":a,dy:aL(r.yanchor)}).call(S5.positionText,l,i);var f=(r.text.match(S5.BR_TAG_ALL)||[]).length;if(f){var c=Al.LINE_SPACING*f+Al.MID_SHIFT;r.y===0&&(c=-c),o.selectAll(".line").each(function(){var y=+this.getAttribute("dy").slice(0,-2)-c+"em";this.setAttribute("dy",y)})}var d=pd.select(e).selectAll(".gtitle-subtitle");if(d.node()){var h=o.node().getBBox(),m=h.y+h.height,g=m+QD.SUBTITLE_PADDING_EM*r.subtitle.font.size;d.attr({x:l,y:g,"text-anchor":a,dy:aL(r.yanchor)}).call(S5.positionText,l,g)}}}};function Wle(e,r,t,a,n){var i=r.yref==="paper"?e._fullLayout._size.h:e._fullLayout.height,l=ri.isTopAnchor(r)?a:a-n,o=t==="b"?i-l:l;return ri.isTopAnchor(r)&&t==="t"||ri.isBottomAnchor(r)&&t==="b"?!1:o.5?"t":"b",l=e._fullLayout.margin[i],o=0;return r.yref==="paper"?o=t+r.pad.t+r.pad.b:r.yref==="container"&&(o=Zle(i,a,n,e._fullLayout.height,t)+r.pad.t+r.pad.b),o>l?o:0}function $le(e,r,t,a){var n="title.automargin",i=e._fullLayout.title,l=i.y>.5?"t":"b",o={x:i.x,y:i.y,t:0,b:0},s={};i.yref==="paper"&&Wle(e,i,l,r,a)?o[l]=t:i.yref==="container"&&(s[l]=t,e._fullLayout._reservedMargin[n]=s),In.allowAutoMargin(e,n),In.autoMargin(e,n,o)}function Kle(e,r){var t=e.title,a=e._size,n=0;return r===lL?n=t.pad.l:r===oL&&(n=-t.pad.r),t.xref==="paper"?a.l+a.w*t.x+n:e.width*t.x+n}function jle(e,r){var t=e.title,a=e._size,n=0;return r==="0em"||!r?n=-t.pad.b:r===Al.CAP_SHIFT+"em"&&(n=t.pad.t),t.y==="auto"?a.t/2:t.yref==="paper"?a.t+a.h-a.h*t.y+n:e.height-e.height*t.y+n}function aL(e){return e==="top"?Al.CAP_SHIFT+.3+"em":e==="bottom"?"-0.3em":Al.MID_SHIFT+"em"}function Qle(e){var r=e.title,t=Ule;return ri.isRightAnchor(r)?t=oL:ri.isLeftAnchor(r)&&(t=lL),t}function eoe(e){var r=e.title,t="0em";return ri.isTopAnchor(r)?t=Al.CAP_SHIFT+"em":ri.isMiddleAnchor(r)&&(t=Al.MID_SHIFT+"em"),t}ba.doTraceStyle=function(e){var r=e.calcdata,t=[],a;for(a=0;a{"use strict";var roe=so().readPaths,toe=nd(),sL=jl().clearOutlineControllers,L5=Nr(),uL=lt(),aoe=mt().arrayEditor,fL=co(),noe=fL.getPathString;vL.exports={draw:yd,drawOne:cL,activateLastSelection:ooe};function yd(e){var r=e._fullLayout;sL(e),r._selectionLayer.selectAll("path").remove();for(var t in r._plots){var a=r._plots[t].selectionLayer;a&&a.selectAll("path").remove()}for(var n=0;n=0;y--){var x=l.append("path").attr(s).style("opacity",y?.1:u).call(L5.stroke,c).call(L5.fill,f).call(uL.dashLine,y?"solid":h,y?4+d:d);if(ioe(x,e,a),m){var w=aoe(e.layout,"selections",a);x.style({cursor:"move"});var T={element:x.node(),plotinfo:n,gd:e,editHelpers:w,isActiveSelection:!0},b=roe(o,e);toe(b,x,T)}else x.style("pointer-events",y?"all":"none");g[y]=x}var M=g[0],S=g[1];S.node().addEventListener("click",function(){return loe(e,M)})}}function ioe(e,r,t){var a=t.xref+t.yref;uL.setClipUrl(e,"clip"+r._fullLayout._uid+a,r)}function loe(e,r){if(gd(e)){var t=r.node(),a=+t.getAttribute("data-index");if(a>=0){if(a===e._fullLayout._activeSelectionIndex){q5(e);return}e._fullLayout._activeSelectionIndex=a,e._fullLayout._deactivateSelection=q5,yd(e)}}}function ooe(e){if(gd(e)){var r=e._fullLayout.selections.length-1;e._fullLayout._activeSelectionIndex=r,e._fullLayout._deactivateSelection=q5,yd(e)}}function q5(e){if(gd(e)){var r=e._fullLayout._activeSelectionIndex;r>=0&&(sL(e),delete e._fullLayout._activeSelectionIndex,yd(e))}}});var hL=J((Q5e,dL)=>{function soe(){var e,r=0,t=!1;function a(n,i){return e.list.push({type:n,data:i?JSON.parse(JSON.stringify(i)):void 0}),e}return e={list:[],segmentId:function(){return r++},checkIntersection:function(n,i){return a("check",{seg1:n,seg2:i})},segmentChop:function(n,i){return a("div_seg",{seg:n,pt:i}),a("chop",{seg:n,pt:i})},statusRemove:function(n){return a("pop_seg",{seg:n})},segmentUpdate:function(n){return a("seg_update",{seg:n})},segmentNew:function(n,i){return a("new_seg",{seg:n,primary:i})},segmentRemove:function(n){return a("rem_seg",{seg:n})},tempStatus:function(n,i,l){return a("temp_status",{seg:n,above:i,below:l})},rewind:function(n){return a("rewind",{seg:n})},status:function(n,i,l){return a("status",{seg:n,above:i,below:l})},vert:function(n){return n===t?e:(t=n,a("vert",{x:n}))},log:function(n){return typeof n!="string"&&(n=JSON.stringify(n,!1," ")),a("log",{txt:n})},reset:function(){return a("reset")},selected:function(n){return a("selected",{segs:n})},chainStart:function(n){return a("chain_start",{seg:n})},chainRemoveHead:function(n,i){return a("chain_rem_head",{index:n,pt:i})},chainRemoveTail:function(n,i){return a("chain_rem_tail",{index:n,pt:i})},chainNew:function(n,i){return a("chain_new",{pt1:n,pt2:i})},chainMatch:function(n){return a("chain_match",{index:n})},chainClose:function(n){return a("chain_close",{index:n})},chainAddHead:function(n,i){return a("chain_add_head",{index:n,pt:i})},chainAddTail:function(n,i){return a("chain_add_tail",{index:n,pt:i})},chainConnect:function(n,i){return a("chain_con",{index1:n,index2:i})},chainReverse:function(n){return a("chain_rev",{index:n})},chainJoin:function(n,i){return a("chain_join",{index1:n,index2:i})},done:function(){return a("done")}},e}dL.exports=soe});var mL=J((ebe,pL)=>{function uoe(e){typeof e!="number"&&(e=1e-10);var r={epsilon:function(t){return typeof t=="number"&&(e=t),e},pointAboveOrOnLine:function(t,a,n){var i=a[0],l=a[1],o=n[0],s=n[1],u=t[0],f=t[1];return(o-i)*(f-l)-(s-l)*(u-i)>=-e},pointBetween:function(t,a,n){var i=t[1]-a[1],l=n[0]-a[0],o=t[0]-a[0],s=n[1]-a[1],u=o*l+i*s;if(u-e)},pointsSameX:function(t,a){return Math.abs(t[0]-a[0])e!=o-i>e&&(l-f)*(i-c)/(o-c)+f-n>e&&(s=!s),l=f,o=c}return s}};return r}pL.exports=uoe});var gL=J((rbe,yL)=>{var foe={create:function(){var e={root:{root:!0,next:null},exists:function(r){return!(r===null||r===e.root)},isEmpty:function(){return e.root.next===null},getHead:function(){return e.root.next},insertBefore:function(r,t){for(var a=e.root,n=e.root.next;n!==null;){if(t(n)){r.prev=n.prev,r.next=n,n.prev.next=r,n.prev=r;return}a=n,n=n.next}a.next=r,r.prev=a,r.next=null},findTransition:function(r){for(var t=e.root,a=e.root.next;a!==null&&!r(a);)t=a,a=a.next;return{before:t===e.root?null:t,after:a,insert:function(n){return n.prev=t,n.next=a,t.next=n,a!==null&&(a.prev=n),n}}}};return e},node:function(e){return e.prev=null,e.next=null,e.remove=function(){e.prev.next=e.next,e.next&&(e.next.prev=e.prev),e.prev=null,e.next=null},e}};yL.exports=foe});var xL=J((tbe,bL)=>{var nc=gL();function coe(e,r,t){function a(m,g){return{id:t?t.segmentId():-1,start:m,end:g,myFill:{above:null,below:null},otherFill:null}}function n(m,g,y){return{id:t?t.segmentId():-1,start:m,end:g,myFill:{above:y.myFill.above,below:y.myFill.below},otherFill:null}}var i=nc.create();function l(m,g,y,x,w,T){var b=r.pointsCompare(g,w);return b!==0?b:r.pointsSame(y,T)?0:m!==x?m?1:-1:r.pointAboveOrOnLine(y,x?w:T,x?T:w)?1:-1}function o(m,g){i.insertBefore(m,function(y){var x=l(m.isStart,m.pt,g,y.isStart,y.pt,y.other.pt);return x<0})}function s(m,g){var y=nc.node({isStart:!0,pt:m.start,seg:m,primary:g,other:null,status:null});return o(y,m.end),y}function u(m,g,y){var x=nc.node({isStart:!1,pt:g.end,seg:g,primary:y,other:m,status:null});m.other=x,o(x,m.pt)}function f(m,g){var y=s(m,g);return u(y,m,g),y}function c(m,g){t&&t.segmentChop(m.seg,g),m.other.remove(),m.seg.end=g,m.other.pt=g,o(m.other,m.pt)}function d(m,g){var y=n(g,m.seg.end,m.seg);return c(m,g),f(y,m.primary)}function h(m,g){var y=nc.create();function x(H,Y){var G=H.seg.start,O=H.seg.end,X=Y.seg.start,Z=Y.seg.end;return r.pointsCollinear(G,X,Z)?r.pointsCollinear(O,X,Z)||r.pointAboveOrOnLine(O,X,Z)?1:-1:r.pointAboveOrOnLine(G,X,Z)?1:-1}function w(H){return y.findTransition(function(Y){var G=x(H,Y.ev);return G>0})}function T(H,Y){var G=H.seg,O=Y.seg,X=G.start,Z=G.end,W=O.start,ee=O.end;t&&t.checkIntersection(G,O);var ne=r.linesIntersect(X,Z,W,ee);if(ne===!1){if(!r.pointsCollinear(X,Z,W)||r.pointsSame(X,ee)||r.pointsSame(Z,W))return!1;var fe=r.pointsSame(X,W),we=r.pointsSame(Z,ee);if(fe&&we)return Y;var j=!fe&&r.pointBetween(X,W,ee),_e=!we&&r.pointBetween(Z,W,ee);if(fe)return _e?d(Y,Z):d(H,ee),Y;j&&(we||(_e?d(Y,Z):d(H,ee)),d(Y,X))}else ne.alongA===0&&(ne.alongB===-1?d(H,W):ne.alongB===0?d(H,ne.pt):ne.alongB===1&&d(H,ee)),ne.alongB===0&&(ne.alongA===-1?d(Y,X):ne.alongA===0?d(Y,ne.pt):ne.alongA===1&&d(Y,Z));return!1}for(var b=[];!i.isEmpty();){var M=i.getHead();if(t&&t.vert(M.pt[0]),M.isStart){let H=function(){if(A){var Y=T(M,A);if(Y)return Y}return L?T(M,L):!1};var B=H;t&&t.segmentNew(M.seg,M.primary);var S=w(M),A=S.before?S.before.ev:null,L=S.after?S.after.ev:null;t&&t.tempStatus(M.seg,A?A.seg:!1,L?L.seg:!1);var q=H();if(q){if(e){var P;M.seg.myFill.below===null?P=!0:P=M.seg.myFill.above!==M.seg.myFill.below,P&&(q.seg.myFill.above=!q.seg.myFill.above)}else q.seg.otherFill=M.seg.myFill;t&&t.segmentUpdate(q.seg),M.other.remove(),M.remove()}if(i.getHead()!==M){t&&t.rewind(M.seg);continue}if(e){var P;M.seg.myFill.below===null?P=!0:P=M.seg.myFill.above!==M.seg.myFill.below,L?M.seg.myFill.below=L.seg.myFill.above:M.seg.myFill.below=m,P?M.seg.myFill.above=!M.seg.myFill.below:M.seg.myFill.above=M.seg.myFill.below}else if(M.seg.otherFill===null){var z;L?M.primary===L.primary?z=L.seg.otherFill.above:z=L.seg.myFill.above:z=M.primary?g:m,M.seg.otherFill={above:z,below:z}}t&&t.status(M.seg,A?A.seg:!1,L?L.seg:!1),M.other.status=S.insert(nc.node({ev:M}))}else{var N=M.status;if(N===null)throw new Error("PolyBool: Zero-length segment detected; your epsilon is probably too small or too large");if(y.exists(N.prev)&&y.exists(N.next)&&T(N.prev.ev,N.next.ev),t&&t.statusRemove(N.ev.seg),N.remove(),!M.primary){var I=M.seg.myFill;M.seg.myFill=M.seg.otherFill,M.seg.otherFill=I}b.push(M.seg)}i.getHead().remove()}return t&&t.done(),b}return e?{addRegion:function(m){for(var g,y=m[m.length-1],x=0;x{function voe(e,r,t){var a=[],n=[];return e.forEach(function(i){var l=i.start,o=i.end;if(r.pointsSame(l,o)){console.warn("PolyBool: Warning: Zero-length segment detected; your epsilon is probably too small or too large");return}t&&t.chainStart(i);var s={index:0,matches_head:!1,matches_pt1:!1},u={index:0,matches_head:!1,matches_pt1:!1},f=s;function c(B,H,Y){return f.index=B,f.matches_head=H,f.matches_pt1=Y,f===s?(f=u,!1):(f=null,!0)}for(var d=0;d{function ic(e,r,t){var a=[];return e.forEach(function(n){var i=(n.myFill.above?8:0)+(n.myFill.below?4:0)+(n.otherFill&&n.otherFill.above?2:0)+(n.otherFill&&n.otherFill.below?1:0);r[i]!==0&&a.push({id:t?t.segmentId():-1,start:n.start,end:n.end,myFill:{above:r[i]===1,below:r[i]===2},otherFill:null})}),t&&t.selected(a),a}var doe={union:function(e,r){return ic(e,[0,2,1,0,2,2,0,0,1,0,1,0,0,0,0,0],r)},intersect:function(e,r){return ic(e,[0,0,0,0,0,2,0,2,0,0,1,1,0,2,1,0],r)},difference:function(e,r){return ic(e,[0,0,0,0,2,0,2,0,1,1,0,0,0,1,2,0],r)},differenceRev:function(e,r){return ic(e,[0,2,1,0,0,0,1,1,0,2,0,2,0,0,0,0],r)},xor:function(e,r){return ic(e,[0,2,1,0,2,0,0,1,1,0,0,2,0,1,2,0],r)}};ML.exports=doe});var kL=J((ibe,AL)=>{var hoe={toPolygon:function(e,r){function t(i){if(i.length<=0)return e.segments({inverted:!1,regions:[]});function l(u){var f=u.slice(0,u.length-1);return e.segments({inverted:!1,regions:[f]})}for(var o=l(i[0]),s=1;s{var poe=hL(),moe=mL(),CL=xL(),yoe=wL(),lc=TL(),SL=kL(),ti=!1,oc=moe(),_n;_n={buildLog:function(e){return e===!0?ti=poe():e===!1&&(ti=!1),ti===!1?!1:ti.list},epsilon:function(e){return oc.epsilon(e)},segments:function(e){var r=CL(!0,oc,ti);return e.regions.forEach(r.addRegion),{segments:r.calculate(e.inverted),inverted:e.inverted}},combine:function(e,r){var t=CL(!1,oc,ti);return{combined:t.calculate(e.segments,e.inverted,r.segments,r.inverted),inverted1:e.inverted,inverted2:r.inverted}},selectUnion:function(e){return{segments:lc.union(e.combined,ti),inverted:e.inverted1||e.inverted2}},selectIntersect:function(e){return{segments:lc.intersect(e.combined,ti),inverted:e.inverted1&&e.inverted2}},selectDifference:function(e){return{segments:lc.difference(e.combined,ti),inverted:e.inverted1&&!e.inverted2}},selectDifferenceRev:function(e){return{segments:lc.differenceRev(e.combined,ti),inverted:!e.inverted1&&e.inverted2}},selectXor:function(e){return{segments:lc.xor(e.combined,ti),inverted:e.inverted1!==e.inverted2}},polygon:function(e){return{regions:yoe(e.segments,oc,ti),inverted:e.inverted}},polygonFromGeoJSON:function(e){return SL.toPolygon(_n,e)},polygonToGeoJSON:function(e){return SL.fromPolygon(_n,oc,e)},union:function(e,r){return sc(e,r,_n.selectUnion)},intersect:function(e,r){return sc(e,r,_n.selectIntersect)},difference:function(e,r){return sc(e,r,_n.selectDifference)},differenceRev:function(e,r){return sc(e,r,_n.selectDifferenceRev)},xor:function(e,r){return sc(e,r,_n.selectXor)}};function sc(e,r,t){var a=_n.segments(e),n=_n.segments(r),i=_n.combine(a,n),l=t(i);return _n.polygon(l)}typeof window=="object"&&(window.PolyBool=_n);DL.exports=_n});var EL=J((obe,qL)=>{qL.exports=function(r,t,a,n){var i=r[0],l=r[1],o=!1;a===void 0&&(a=0),n===void 0&&(n=t.length);for(var s=n-a,u=0,f=s-1;ul!=m>l&&i<(h-c)*(l-d)/(m-d)+c;g&&(o=!o)}return o}});var R5=J((sbe,PL)=>{"use strict";var P5=w2().dot,bd=(la(),Xe(da)).BADNUM,xd=PL.exports={};xd.tester=function(r){var t=r.slice(),a=t[0][0],n=a,i=t[0][1],l=i,o;for((t[t.length-1][0]!==t[0][0]||t[t.length-1][1]!==t[0][1])&&t.push(t[0]),o=1;on||x===bd||xl||g&&u(m))}function c(m,g){var y=m[0],x=m[1];if(y===bd||yn||x===bd||xl)return!1;var w=t.length,T=t[0][0],b=t[0][1],M=0,S,A,L,q,P;for(S=1;SMath.max(A,T)||x>Math.max(L,b)))if(xo||Math.abs(P5(c,u))>n)return!0;return!1};xd.filter=function(r,t){var a=[r[0]],n=0,i=0;function l(s){r.push(s);var u=a.length,f=n;a.splice(i+1);for(var c=f+1;c1){var o=r.pop();l(o)}return{addPt:l,raw:r,filtered:a}}});var RL={};Rt(RL,{BENDPX:()=>goe,MINSELECT:()=>boe,SELECTDELAY:()=>xoe,SELECTID:()=>_oe});var goe,boe,xoe,_oe,zL=Pt(()=>{"use strict";goe=1.5,boe=12,xoe=100,_oe="-select"});var aq=J((ube,tq)=>{"use strict";var FL=LL(),woe=EL(),cc=kr(),Moe=lt().dashStyle,uc=Nr(),Toe=Si(),Aoe=Ai().makeEventData,mc=$0(),koe=mc.freeMode,Coe=mc.rectMode,vc=mc.drawMode,I5=mc.openMode,B5=mc.selectMode,NL=co(),IL=(Kf(),Xe($f)),UL=nd(),GL=jl().clearOutline,VL=so(),z5=VL.handleEllipse,Soe=VL.readPaths,Doe=rd().newShapes,Loe=l5(),qoe=E5().activateLastSelection,wd=Re(),Eoe=wd.sorterAsc,XL=R5(),fc=R2(),ai=ua().getFromId,Poe=W1(),Roe=md().redrawReglTraces,Md=(zL(),Xe(RL)),sl=Md.MINSELECT,zoe=XL.filter,H5=XL.tester,O5=K1(),BL=O5.p2r,Foe=O5.axValue,Noe=O5.getTransform;function Y5(e){return e.subplot!==void 0}function Ioe(e,r,t,a,n){var i=!Y5(a),l=koe(n),o=Coe(n),s=I5(n),u=vc(n),f=B5(n),c=n==="drawline",d=n==="drawcircle",h=c||d,m=a.gd,g=m._fullLayout,y=f&&g.newselection.mode==="immediate"&&i,x=g._zoomlayer,w=a.element.getBoundingClientRect(),T=a.plotinfo,b=Noe(T),M=r-w.left,S=t-w.top;g._calcInverseTransform(m);var A=wd.apply3DTransform(g._invTransform)(M,S);M=A[0],S=A[1];var L=g._invScaleX,q=g._invScaleY,P=M,z=S,N="M"+M+","+S,I=a.xaxes[0],B=a.yaxes[0],H=I._length,Y=B._length,G=e.altKey&&!(vc(n)&&s),O,X,Z,W,ee,ne,fe;ZL(e,m,a),l&&(O=zoe([[M,S]],Md.BENDPX));var we=x.selectAll("path.select-outline-"+T.id).data([1]),j=u?g.newshape:g.newselection;u&&(a.hasText=j.label.text||j.label.texttemplate);var _e=u&&!s?j.fillcolor:"rgba(0,0,0,0)",ue=j.line.color||(i?uc.contrast(m._fullLayout.plot_bgcolor):"#7f7f7f");we.enter().append("path").attr("class","select-outline select-outline-"+T.id).style({opacity:u?j.opacity/2:1,"stroke-dasharray":Moe(j.line.dash,j.line.width),"stroke-width":j.line.width+"px","shape-rendering":"crispEdges"}).call(uc.stroke,ue).call(uc.fill,_e).attr("fill-rule","evenodd").classed("cursor-move",!!u).attr("transform",b).attr("d",N+"Z");var Me=x.append("path").attr("class","zoombox-corners").style({fill:uc.background,stroke:uc.defaultLine,"stroke-width":1}).attr("transform",b).attr("d","M0,0Z");if(u&&a.hasText){var ge=x.select(".label-temp");ge.empty()&&(ge=x.append("g").classed("label-temp",!0).classed("select-outline",!0).style({opacity:.8}))}var ce=g._uid+Md.SELECTID,Te=[],ze=Td(m,a.xaxes,a.yaxes,a.subplot);y&&!e.shiftKey&&(a._clearSubplotSelections=function(){if(i){var qe=I._id,Ce=B._id;QL(m,qe,Ce,ze);for(var De=(m.layout||{}).selections||[],Ee=[],Ue=!1,ke=0;ke=0){m._fullLayout._deactivateShape(m);return}if(!u){var De=g.clickmode;fc.done(ce).then(function(){if(fc.clear(ce),qe===2){for(we.remove(),ee=0;ee-1&&WL(Ce,m,a.xaxes,a.yaxes,a.subplot,a,we),De==="event"&&pc(m,void 0);Toe.click(m,Ce,T.id)}).catch(wd.error)}},a.doneFn=function(){Me.remove(),fc.done(ce).then(function(){fc.clear(ce),!y&&W&&a.selectionDefs&&(W.subtract=G,a.selectionDefs.push(W),a.mergedPolygons.length=0,[].push.apply(a.mergedPolygons,Z)),(y||u)&&dc(a,y),a.doneFnCompleted&&a.doneFnCompleted(Te),f&&pc(m,fe)}).catch(wd.error)}}function WL(e,r,t,a,n,i,l){var o=r._hoverdata,s=r._fullLayout,u=s.clickmode,f=u.indexOf("event")>-1,c=[],d,h,m,g,y,x,w,T,b,M;if(Uoe(o)){ZL(e,r,i),d=Td(r,t,a,n);var S=Goe(o,d),A=S.pointNumbers.length>0;if(A?Voe(d,S):Xoe(d)&&(w=OL(S))){for(l&&l.remove(),M=0;M=0}function Yoe(e){return e._fullLayout._activeSelectionIndex>=0}function dc(e,r){var t=e.dragmode,a=e.plotinfo,n=e.gd;Ooe(n)&&n._fullLayout._deactivateShape(n),Yoe(n)&&n._fullLayout._deactivateSelection(n);var i=n._fullLayout,l=i._zoomlayer,o=vc(t),s=B5(t);if(o||s){var u=l.selectAll(".select-outline-"+a.id);if(u&&n._fullLayout._outlining){var f;o&&(f=Doe(u,e)),f&&cc.call("_guiRelayout",n,{shapes:f});var c;s&&!Y5(e)&&(c=Loe(u,e)),c&&(n._fullLayout._noEmitSelectedAtStart=!0,cc.call("_guiRelayout",n,{selections:c}).then(function(){r&&qoe(n)})),n._fullLayout._outlining=!1}}a.selection={},a.selection.selectionDefs=e.selectionDefs=[],a.selection.mergedPolygons=e.mergedPolygons=[]}function HL(e){return e._id}function Td(e,r,t,a){if(!e.calcdata)return[];var n=[],i=r.map(HL),l=t.map(HL),o,s,u;for(u=0;u0,i=n?a[0]:t;return r.selectedpoints?r.selectedpoints.indexOf(i)>-1:!1}function Voe(e,r){var t=[],a,n,i,l;for(l=0;l0&&t.push(a);if(t.length===1&&(i=t[0]===r.searchInfo,i&&(n=r.searchInfo.cd[0].trace,n.selectedpoints.length===r.pointNumbers.length))){for(l=0;l1||(r+=a.selectedpoints.length,r>1)))return!1;return r===1}function hc(e,r,t){var a,n;for(a=0;a-1&&r;if(!l&&r){var qe=YL(e,!0);if(qe.length){var Ce=qe[0].xref,De=qe[0].yref;if(Ce&&De){var Ee=eq(qe),Ue=rq([ai(e,Ce,"x"),ai(e,De,"y")]);Ue(Te,Ee)}}e._fullLayout._noEmitSelectedAtStart?e._fullLayout._noEmitSelectedAtStart=!1:be&&pc(e,Te),d._reselect=!1}if(!l&&d._deselect){var ke=d._deselect;o=ke.xref,s=ke.yref,Joe(o,s,f)||QL(e,o,s,a),be&&(Te.points.length?pc(e,Te):V5(e)),d._deselect=!1}return{eventData:Te,selectionTesters:t}}function Zoe(e){var r=e.calcdata;if(r)for(var t=0;t{"use strict";nq.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}]});var yc={};Rt(yc,{axisRefDescription:()=>ese});function ese(e,r,t){return[`If set to a ${e} axis id (e.g. *${e}* or *${e}2*),`,`the \`${e}\` position refers to a ${e} coordinate.`,`If set to *paper*, the \`${e}\` position refers to the distance from the`,`${r} of the plotting area in normalized coordinates where *0* (*1*) corresponds`,`to the ${r} (${t}). If set to a ${e} 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 ${r} of the domain of that`,`axis: e.g., *${e}2 domain* refers to the domain of the second ${e}`,`axis and a ${e} position of 0.5 refers to the point between the ${r}`,`and the ${t} of the domain of the second ${e} axis.`].join(" ")}var gc=Pt(()=>{"use strict"});var au=J((vbe,oq)=>{"use strict";var iq=X5(),lq=Ea(),Ad=(ya(),Xe(ma)),rse=mt().templatedArray,cbe=(gc(),Xe(yc));oq.exports=rse("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:lq({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:iq.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:iq.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",Ad.idRegex.x.toString()],editType:"calc"},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",Ad.idRegex.y.toString()],editType:"calc"},xref:{valType:"enumerated",values:["paper",Ad.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",Ad.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:lq({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc"})});var kd={};Rt(kd,{PTS_LINESONLY:()=>tse,eventDataKeys:()=>lse,maxScreensAway:()=>ise,minTolerance:()=>ase,toleranceGrowth:()=>nse});var tse,ase,nse,ise,lse,Cd=Pt(()=>{"use strict";tse=20,ase=.2,nse=10,ise=20,lse=[]});var uq=J((dbe,sq)=>{"use strict";sq.exports=function(r){return{valType:"color",editType:"style",anim:!0}}});var As=J((hbe,yq)=>{"use strict";var fq=e1().axisHoverFormat,{hovertemplateAttrs:ose,texttemplateAttrs:sse,templatefallbackAttrs:cq}=Jo(),vq=Lf(),use=Ea(),dq=Zi().dash,fse=Zi().pattern,cse=lt(),vse=(Cd(),Xe(kd)),bc=oa().extendFlat,dse=uq();function hq(e){return{valType:"any",dflt:0,editType:"calc"}}function pq(e){return{valType:"any",editType:"calc"}}function mq(e){return{valType:"enumerated",values:["start","middle","end"],dflt:"middle",editType:"calc"}}yq.exports={x:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0},x0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",anim:!0},dx:{valType:"number",dflt:1,editType:"calc",anim:!0},y:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0},y0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",anim:!0},dy:{valType:"number",dflt:1,editType:"calc",anim:!0},xperiod:hq("x"),yperiod:hq("y"),xperiod0:pq("x0"),yperiod0:pq("y0"),xperiodalignment:mq("x"),yperiodalignment:mq("y"),xhoverformat:fq("x"),yhoverformat:fq("y"),offsetgroup:{valType:"string",dflt:"",editType:"calc"},alignmentgroup:{valType:"string",dflt:"",editType:"calc"},stackgroup:{valType:"string",dflt:"",editType:"calc"},orientation:{valType:"enumerated",values:["v","h"],editType:"calc"},groupnorm:{valType:"enumerated",values:["","fraction","percent"],dflt:"",editType:"calc"},stackgaps:{valType:"enumerated",values:["infer zero","interpolate"],dflt:"infer zero",editType:"calc"},text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},texttemplate:sse(),texttemplatefallback:cq({editType:"calc"}),hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"style"},mode:{valType:"flaglist",flags:["lines","markers","text"],extras:["none"],editType:"calc"},hoveron:{valType:"flaglist",flags:["points","fills"],editType:"style"},hovertemplate:ose({},{keys:vse.eventDataKeys}),hovertemplatefallback:cq(),line:{color:{valType:"color",editType:"style",anim:!0},width:{valType:"number",min:0,dflt:2,editType:"style",anim:!0},shape:{valType:"enumerated",values:["linear","spline","hv","vh","hvh","vhv"],dflt:"linear",editType:"plot"},smoothing:{valType:"number",min:0,max:1.3,dflt:1,editType:"plot"},dash:bc({},dq,{editType:"style"}),backoff:{valType:"number",min:0,dflt:"auto",arrayOk:!0,editType:"plot"},simplify:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},connectgaps:{valType:"boolean",dflt:!1,editType:"calc"},cliponaxis:{valType:"boolean",dflt:!0,editType:"plot"},fill:{valType:"enumerated",values:["none","tozeroy","tozerox","tonexty","tonextx","toself","tonext"],editType:"calc"},fillcolor:dse(!0),fillgradient:bc({type:{valType:"enumerated",values:["radial","horizontal","vertical","none"],dflt:"none",editType:"calc"},start:{valType:"number",editType:"calc"},stop:{valType:"number",editType:"calc"},colorscale:{valType:"colorscale",editType:"style"},editType:"calc"}),fillpattern:fse,marker:bc({symbol:{valType:"enumerated",values:cse.symbolList,dflt:"circle",arrayOk:!0,editType:"style"},opacity:{valType:"number",min:0,max:1,arrayOk:!0,editType:"style",anim:!0},angle:{valType:"angle",dflt:0,arrayOk:!0,editType:"plot",anim:!1},angleref:{valType:"enumerated",values:["previous","up"],dflt:"up",editType:"plot",anim:!1},standoff:{valType:"number",min:0,dflt:0,arrayOk:!0,editType:"plot",anim:!0},size:{valType:"number",min:0,dflt:6,arrayOk:!0,editType:"calc",anim:!0},maxdisplayed:{valType:"number",min:0,dflt:0,editType:"plot"},sizeref:{valType:"number",dflt:1,editType:"calc"},sizemin:{valType:"number",min:0,dflt:0,editType:"calc"},sizemode:{valType:"enumerated",values:["diameter","area"],dflt:"diameter",editType:"calc"},line:bc({width:{valType:"number",min:0,arrayOk:!0,editType:"style",anim:!0},dash:bc({},dq,{arrayOk:!0}),editType:"calc"},vq("marker.line",{anim:!0})),gradient:{type:{valType:"enumerated",values:["radial","horizontal","vertical","none"],arrayOk:!0,dflt:"none",editType:"calc"},color:{valType:"color",arrayOk:!0,editType:"calc"},editType:"calc"},editType:"calc"},vq("marker",{anim:!0})),selected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style"},color:{valType:"color",editType:"style"},size:{valType:"number",min:0,editType:"style"},editType:"style"},textfont:{color:{valType:"color",editType:"style"},editType:"style"},editType:"style"},unselected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style"},color:{valType:"color",editType:"style"},size:{valType:"number",min:0,editType:"style"},editType:"style"},textfont:{color:{valType:"color",editType:"style"},editType:"style"},editType:"style"},textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right"],dflt:"middle center",arrayOk:!0,editType:"calc"},textfont:use({editType:"calc",colorEditType:"style",arrayOk:!0}),zorder:{valType:"integer",dflt:0,editType:"plot"}}});var W5=J((mbe,xq)=>{"use strict";var gq=au(),bq=As().line,hse=Zi().dash,Sd=oa().extendFlat,pse=Wi().overrideAll,mse=mt().templatedArray,pbe=(gc(),Xe(yc));xq.exports=pse(mse("selection",{type:{valType:"enumerated",values:["rect","path"]},xref:Sd({},gq.xref,{}),yref:Sd({},gq.yref,{}),x0:{valType:"any"},x1:{valType:"any"},y0:{valType:"any"},y1:{valType:"any"},path:{valType:"string",editType:"arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:.7,editType:"arraydraw"},line:{color:bq.color,width:Sd({},bq.width,{min:1,dflt:1}),dash:Sd({},hse,{dflt:"dot"})}}),"arraydraw","from-root")});var Tq=J((ybe,Mq)=>{"use strict";var _q=Re(),Dd=Mt(),yse=Ti(),gse=W5(),wq=co();Mq.exports=function(r,t){yse(r,t,{name:"selections",handleItemDefaults:bse});for(var a=t.selections,n=0;n{"use strict";Aq.exports=function(r,t,a){a("newselection.mode");var n=a("newselection.line.width");n&&(a("newselection.line.color"),a("newselection.line.dash")),a("activeselection.fillcolor"),a("activeselection.opacity")}});var xc=J((bbe,Dq)=>{"use strict";var xse=kr(),Cq=Re(),Sq=ua();Dq.exports=function(r){return function(a,n){var i=a[r];if(Array.isArray(i))for(var l=xse.subplotsRegistry.cartesian,o=l.idRegex,s=n._subplots,u=s.xaxis,f=s.yaxis,c=s.cartesian,d=n._has("cartesian"),h=0;h{"use strict";var Lq=E5(),_c=aq();qq.exports={moduleType:"component",name:"selections",layoutAttributes:W5(),supplyLayoutDefaults:Tq(),supplyDrawNewSelectionDefaults:kq(),includeBasePlot:xc()("selections"),draw:Lq.draw,drawOne:Lq.drawOne,reselect:_c.reselect,prepSelect:_c.prepSelect,clearOutline:_c.clearOutline,clearSelectionsCache:_c.clearSelectionsCache,selectOnClick:_c.selectOnClick}});var Kq=J((_be,$q)=>{"use strict";var Q5=Or(),ni=Re(),Eq=ni.numberFormat,_se=D3(),Ld=kr(),Hq=ni.strTranslate,wse=Ta(),J5=Nr(),ho=lt(),Mse=Si(),Pq=Mt(),Tse=lo(),Ase=Ci(),Oq=$0(),qd=Oq.selectingOrDrawing,kse=Oq.freeMode,Cse=(Oa(),Xe(Ha)).FROM_TL,Sse=W1(),Dse=md().redrawReglTraces,Lse=Qt(),$5=ua().getFromId,qse=nu().prepSelect,Ese=nu().clearOutline,Pse=nu().selectOnClick,Z5=T5(),eb=(ya(),Xe(ma)),Rq=eb.MINDRAG,un=eb.MINZOOM,zq=!0;function Rse(e,r,t,a,n,i,l,o){var s=e._fullLayout._zoomlayer,u=l+o==="nsew",f=(l+o).length===1,c,d,h,m,g,y,x,w,T,b,M,S,A,L,q,P,z,N,I,B,H,Y,G;t+=r.yaxis._shift;function O(){if(c=r.xaxis,d=r.yaxis,T=c._length,b=d._length,x=c._offset,w=d._offset,h={},h[c._id]=c,m={},m[d._id]=d,l&&o)for(var de=r.overlays,xe=0;xe=0){He._fullLayout._deactivateShape(He);return}var Je=He._fullLayout.clickmode;if(j5(He),de===2&&!f&&Qe(),u)Je.indexOf("select")>-1&&Pse(xe,He,g,y,r.id,W),Je.indexOf("event")>-1&&Mse.click(He,xe,r.id);else if(de===1&&f){var Ie=l?d:c,Ge=l==="s"||o==="w"?0:1,nr=Ie._name+".range["+Ge+"]",lr=zse(Ie,Ge),fr="left",Se="middle";if(Ie.fixedrange)return;l?(Se=l==="n"?"top":"bottom",Ie.side==="right"&&(fr="right")):o==="e"&&(fr="right"),He._context.showAxisRangeEntryBoxes&&Q5.select(Z).call(wse.makeEditable,{gd:He,immediate:!0,background:He._fullLayout.paper_bgcolor,text:String(lr),fill:Ie.tickfont?Ie.tickfont.color:"#444",horizontalAlign:fr,verticalAlign:Se}).on("edit",function(Ke){var Ne=Ie.d2r(Ke);Ne!==void 0&&Ld.call("_guiRelayout",He,nr,Ne)})}}Ase.init(W);var fe,we,j,_e,ue,Me,ge,ce,Te,ze;function be(de,xe,He){var Je=Z.getBoundingClientRect();fe=xe-Je.left,we=He-Je.top,e._fullLayout._calcInverseTransform(e);var Ie=ni.apply3DTransform(e._fullLayout._invTransform)(fe,we);fe=Ie[0],we=Ie[1],j={l:fe,r:fe,w:0,t:we,b:we,h:0},_e=e._hmpixcount?e._hmlumcount/e._hmpixcount:J5.luminosity(e._fullLayout.plot_bgcolor),ue="M0,0H"+T+"V"+b+"H0V0",Me=!1,ge="xy",ze=!1,ce=Gq(s,_e,x,w,ue),Te=Vq(s,x,w)}function qe(de,xe){if(e._transitioningWithDuration)return!1;var He=Math.max(0,Math.min(T,Y*de+fe)),Je=Math.max(0,Math.min(b,G*xe+we)),Ie=Math.abs(He-fe),Ge=Math.abs(Je-we);j.l=Math.min(fe,He),j.r=Math.max(fe,He),j.t=Math.min(we,Je),j.b=Math.max(we,Je);function nr(){ge="",j.r=j.l,j.t=j.b,Te.attr("d","M0,0Z")}if(M.isSubplotConstrained)Ie>un||Ge>un?(ge="xy",Ie/T>Ge/b?(Ge=Ie*b/T,we>Je?j.t=we-Ge:j.b=we+Ge):(Ie=Ge*T/b,fe>He?j.l=fe-Ie:j.r=fe+Ie),Te.attr("d",Ed(j))):nr();else if(S.isSubplotConstrained)if(Ie>un||Ge>un){ge="xy";var lr=Math.min(j.l/T,(b-j.b)/b),fr=Math.max(j.r/T,(b-j.t)/b);j.l=lr*T,j.r=fr*T,j.b=(1-lr)*b,j.t=(1-fr)*b,Te.attr("d",Ed(j))}else nr();else!L||Ge0){var Ke;if(S.isSubplotConstrained||!A&&L.length===1){for(Ke=0;Ke1&&(nr.maxallowed!==void 0&&P===(nr.range[0]1&&(lr.maxallowed!==void 0&&z===(lr.range[0]=0?Math.min(e,.9):1/(1/Math.max(e,-.3)+3.222))}function Nse(e,r,t){return e?e==="nsew"?t?"":r==="pan"?"move":"crosshair":e.toLowerCase()+"-resize":"pointer"}function Gq(e,r,t,a,n){return e.append("path").attr("class","zoombox").style({fill:r>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("transform",Hq(t,a)).attr("d",n+"Z")}function Vq(e,r,t){return e.append("path").attr("class","zoombox-corners").style({fill:J5.background,stroke:J5.defaultLine,"stroke-width":1,opacity:0}).attr("transform",Hq(r,t)).attr("d","M0,0Z")}function Xq(e,r,t,a,n,i){e.attr("d",a+"M"+t.l+","+t.t+"v"+t.h+"h"+t.w+"v-"+t.h+"h-"+t.w+"Z"),Wq(e,r,n,i)}function Wq(e,r,t,a){t||(e.transition().style("fill",a>.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),r.transition().style("opacity",1).duration(200))}function j5(e){Q5.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function Zq(e){zq&&e.data&&e._context.showTips&&(ni.notifier(ni._(e,"Double-click to zoom back out"),"long",e),zq=!1)}function Ise(e,r){return"M"+(e.l-.5)+","+(r-un-.5)+"h-3v"+(2*un+1)+"h3ZM"+(e.r+.5)+","+(r-un-.5)+"h3v"+(2*un+1)+"h-3Z"}function Bse(e,r){return"M"+(r-un-.5)+","+(e.t-.5)+"v-3h"+(2*un+1)+"v3ZM"+(r-un-.5)+","+(e.b+.5)+"v3h"+(2*un+1)+"v-3Z"}function Ed(e){var r=Math.floor(Math.min(e.b-e.t,e.r-e.l,un)/2);return"M"+(e.l-3.5)+","+(e.t-.5+r)+"h3v"+-r+"h"+r+"v-3h-"+(r+3)+"ZM"+(e.r+3.5)+","+(e.t-.5+r)+"h-3v"+-r+"h"+-r+"v-3h"+(r+3)+"ZM"+(e.r+3.5)+","+(e.b+.5-r)+"h-3v"+r+"h"+-r+"v3h"+(r+3)+"ZM"+(e.l-3.5)+","+(e.b+.5-r)+"h3v"+r+"h"+r+"v3h-"+(r+3)+"Z"}function Iq(e,r,t,a,n){for(var i=!1,l={},o={},s,u,f,c,d=(n||{}).xaHash,h=(n||{}).yaHash,m=0;m{"use strict";var Hse=Or(),Pd=Si(),Ose=Ci(),Yse=lo(),Li=Kq().makeDragBox,xa=(ya(),Xe(ma)).DRAGGERSIZE;Rd.initInteractions=function(r){var t=r._fullLayout;if(r._context.staticPlot){Hse.select(r).selectAll(".drag").remove();return}if(!(!t._has("cartesian")&&!t._has("splom"))){var a=Object.keys(t._plots||{}).sort(function(i,l){if((t._plots[i].mainplot&&!0)===(t._plots[l].mainplot&&!0)){var o=i.split("y"),s=l.split("y");return o[0]===s[0]?Number(o[1]||1)-Number(s[1]||1):Number(o[0]||1)-Number(s[0]||1)}return t._plots[i].mainplot?1:-1});a.forEach(function(i){var l=t._plots[i],o=l.xaxis,s=l.yaxis;if(!l.mainplot){var u=Li(r,l,o._offset,s._offset,o._length,s._length,"ns","ew");u.onmousemove=function(d){r._fullLayout._rehover=function(){r._fullLayout._hoversubplot===i&&r._fullLayout._plots[i]&&Pd.hover(r,d,i)},Pd.hover(r,d,i),r._fullLayout._lasthover=u,r._fullLayout._hoversubplot=i},u.onmouseout=function(d){r._dragging||(r._fullLayout._hoversubplot=null,Ose.unhover(r,d))},r._context.showAxisDragHandles&&(Li(r,l,o._offset-xa,s._offset-xa,xa,xa,"n","w"),Li(r,l,o._offset+o._length,s._offset-xa,xa,xa,"n","e"),Li(r,l,o._offset-xa,s._offset+s._length,xa,xa,"s","w"),Li(r,l,o._offset+o._length,s._offset+s._length,xa,xa,"s","e"))}if(r._context.showAxisDragHandles){if(i===o._mainSubplot){var f=o._mainLinePosition;o.side==="top"&&(f-=xa),Li(r,l,o._offset+o._length*.1,f,o._length*.8,xa,"","ew"),Li(r,l,o._offset,f,o._length*.1,xa,"","w"),Li(r,l,o._offset+o._length*.9,f,o._length*.1,xa,"","e")}if(i===s._mainSubplot){var c=s._mainLinePosition;s.side!=="right"&&(c-=xa),Li(r,l,c,s._offset+s._length*.1,xa,s._length*.8,"ns",""),Li(r,l,c,s._offset+s._length*.9,xa,s._length*.1,"s",""),Li(r,l,c,s._offset,xa,s._length*.1,"n","")}}});var n=t._hoverlayer.node();n.onmousemove=function(i){i.target=r._fullLayout._lasthover,Pd.hover(r,i,t._hoversubplot)},n.onclick=function(i){i.target=r._fullLayout._lasthover,Pd.click(r,i)},n.onmousedown=function(i){r._fullLayout._lasthover.onmousedown(i)},Rd.updateFx(r)}};Rd.updateFx=function(e){var r=e._fullLayout,t=r.dragmode==="pan"?"move":"crosshair";Yse(r._draggers,t)}});var eE=J((Mbe,Qq)=>{"use strict";var jq=kr();Qq.exports=function(r){for(var t=jq.layoutArrayContainers,a=jq.layoutArrayRegexes,n=r.split("[")[0],i,l,o=0;o{"use strict";var Use=No(),tb=_2(),wc=Ol(),Gse=Uy().sorterAsc,ab=kr();Mc.containerArrayMatch=eE();var Vse=Mc.isAddVal=function(r){return r==="add"||Use(r)},rE=Mc.isRemoveVal=function(r){return r===null||r==="remove"};Mc.applyContainerArrayChanges=function(r,t,a,n,i){var l=t.astr,o=ab.getComponentMethod(l,"supplyLayoutDefaults"),s=ab.getComponentMethod(l,"draw"),u=ab.getComponentMethod(l,"drawOne"),f=n.replot||n.recalc||o===tb||s===tb,c=r.layout,d=r._fullLayout;if(a[""]){Object.keys(a).length>1&&wc.warn("Full array edits are incompatible with other edits",l);var h=a[""][""];if(rE(h))t.set(null);else if(Array.isArray(h))t.set(h);else return wc.warn("Unrecognized full array edit value",l,h),!0;return f?!1:(o(c,d),s(r),!0)}var m=Object.keys(a).map(Number).sort(Gse),g=t.get(),y=g||[],x=i(d,l).get(),w=[],T=-1,b=y.length,M,S,A,L,q,P,z,N;for(M=0;My.length-(z?0:1)){wc.warn("index out of range",l,A);continue}if(P!==void 0)q.length>1&&wc.warn("Insertion & removal are incompatible with edits to the same index.",l,A),rE(P)?w.push(A):z?(P==="add"&&(P={}),y.splice(A,0,P),x&&x.splice(A,0,{})):wc.warn("Unrecognized full object edit value",l,A,P),T===-1&&(T=A);else for(S=0;S=0;M--)y.splice(w[M],1),x&&x.splice(w[M],1);if(y.length?g||t.set(y):t.set(null),f)return!1;if(o(c,d),u!==tb){var I;if(T===-1)I=m;else{for(b=Math.max(y.length,b),I=[],M=0;M=T));M++)I.push(A);for(M=T;M{"use strict";var lE=Xr(),oE=kr(),tn=Re(),Tc=Qt(),sE=ua(),Ac=sE.cleanId,Xse=sE.getFromTrace,nb=oE.traceIs,Wse=["x","y","z"];ii.clearPromiseQueue=function(e){Array.isArray(e._promises)&&e._promises.length>0&&tn.log("Clearing previous rejected promises from queue."),e._promises=[]};ii.cleanLayout=function(e){var r,t;e||(e={}),e.xaxis1&&(e.xaxis||(e.xaxis=e.xaxis1),delete e.xaxis1),e.yaxis1&&(e.yaxis||(e.yaxis=e.yaxis1),delete e.yaxis1),e.scene1&&(e.scene||(e.scene=e.scene1),delete e.scene1);var a=(Tc.subplotsRegistry.cartesian||{}).attrRegex,n=(Tc.subplotsRegistry.polar||{}).attrRegex,i=(Tc.subplotsRegistry.ternary||{}).attrRegex,l=(Tc.subplotsRegistry.gl3d||{}).attrRegex,o=Object.keys(e);for(r=0;r3?(y.x=1.02,y.xanchor="left"):y.x<-2&&(y.x=-.02,y.xanchor="right"),y.y>3?(y.y=1.02,y.yanchor="bottom"):y.y<-2&&(y.y=-.02,y.yanchor="top")),e.dragmode==="rotate"&&(e.dragmode="orbit"),e.template&&e.template.layout&&ii.cleanLayout(e.template.layout),e};function iu(e,r,t=!1){var a=e[r],n=r.charAt(0);t&&Array.isArray(a)||a&&a!=="paper"&&(e[r]=Ac(a,n,!0))}ii.cleanData=function(e){for(var r=0;r0)return e.slice(0,r)}ii.hasParent=function(e,r){for(var t=iE(r);t;){if(t in e)return!0;t=iE(t)}return!1};ii.clearAxisTypes=function(e,r,t){for(var a=0;a{let t=(...a)=>a.every(n=>tn.isPlainObject(n))||a.every(n=>Array.isArray(n));if([e,r].every(a=>Array.isArray(a))){if(e.length!==r.length)return!1;for(let a=0;atn.isPlainObject(a))){if(Object.keys(e).length!==Object.keys(r).length)return!1;for(let a in e){if(a.startsWith("_"))continue;let n=e[a],i=r[a];if(n!==i&&!(t(n,i)?ib(n,i):!1))return!1}return!0}return!1};ii.collectionsAreEqual=ib});var fb=J(Wr=>{"use strict";var Bd=Or(),$se=Xr(),Kse=ng(),ar=Re(),ht=ar.nestedProperty,ob=Af(),fn=KM(),li=kr(),Xd=L0(),Sr=Qt(),an=Mt(),jse=S3(),Qse=Mi(),Nd=lt(),e0e=Nr(),r0e=rb().initInteractions,t0e=(ns(),Xe(as)),a0e=nu().clearOutline,hE=Hl().dfltConfig,Fd=tE(),$t=uE(),at=md(),po=Wi(),n0e=(ya(),Xe(ma)).AX_NAME_PATTERN,lb=0,fE=5;function i0e(e,r,t,a){var n;if(e=ar.getGraphDiv(e),ob.init(e),ar.isPlainObject(r)){var i=r;r=i.data,t=i.layout,a=i.config,n=i.frames}var l=ob.triggerHandler(e,"plotly_beforeplot",[r,t,a]);if(l===!1)return Promise.reject();!r&&!t&&!ar.isPlotDiv(e)&&ar.warn("Calling _doPlot as if redrawing but this container doesn't yet have a plot.",e);function o(){if(n)return Wr.addFrames(e,n)}mE(e,a),t||(t={}),Bd.select(e).classed("js-plotly-plot",!0),Nd.makeTester(),Array.isArray(e._promises)||(e._promises=[]);var s=(e.data||[]).length===0&&Array.isArray(r);Array.isArray(r)&&($t.cleanData(r),s?e.data=r:e.data.push.apply(e.data,r),e.empty=!1),(!e.layout||s)&&(e.layout=$t.cleanLayout(t)),Sr.supplyDefaults(e);var u=e._fullLayout,f=u._has("cartesian");u._replotting=!0,(s||u._shouldCreateBgLayer)&&(D0e(e),u._shouldCreateBgLayer&&delete u._shouldCreateBgLayer),Nd.initGradients(e),Nd.initPatterns(e),s&&an.saveShowSpikeInitial(e);var c=!e.calcdata||e.calcdata.length!==(e._fullData||[]).length;c&&Sr.doCalcdata(e);for(var d=0;d{ar.isHidden(e)||Sr.resize(e)};if(e._context.fillFrame||typeof ResizeObserver=="undefined")window.addEventListener("resize",L),e._clearResponsive=()=>window.removeEventListener("resize",L);else{let q=e.offsetWidth,P=e.offsetHeight,z=new ResizeObserver(()=>{let N=e.offsetWidth,I=e.offsetHeight,B=Math.abs(N-q)>1||Math.abs(I-P)>1;q=N,P=I,B&&N&&I&&L()});z.observe(e),e._clearResponsive=()=>z.disconnect()}}}else ar.clearResponsive(e);let h=document.fonts?[...document.fonts].filter(L=>L.status!=="loaded"):[];var m=ar.extendFlat({},u._size),g=0;function y(){for(var L=u._basePlotModules,q=0;q["loaded","loading"].includes(n.status));if(!t.length)return;let a={};e._fontLoadToken=a,yield Promise.all(t.map(n=>n.loaded.catch(()=>{}))),e._fontLoadToken===a&&(delete e._fontLoadToken,Nd.savedBBoxes={},Wr._doPlot(e))})}function Cc(e){var r=e._fullLayout;r._redrawFromAutoMarginCount?r._redrawFromAutoMarginCount--:e.emit("plotly_afterplot")}function o0e(e){return ar.extendFlat(hE,e)}function pE(e,r){try{e._fullLayout._paper.style("background",r)}catch(t){ar.error(t)}}function s0e(e,r){var t=e0e.combine(r,"white");pE(e,t)}function mE(e,r){if(!e._context){e._context=ar.extendDeep({},hE);var t=Bd.select("base");e._context._baseUrl=t.size()&&t.attr("href")?window.location.href.split("#")[0]:""}var a=e._context,n,i,l;if(r){for(i=Object.keys(r),n=0;n=e.data.length||n<-e.data.length)throw new Error(t+" must be valid indices for gd.data.");if(r.indexOf(n,a+1)>-1||n>=0&&r.indexOf(-e.data.length+n)>-1||n<0&&r.indexOf(e.data.length+n)>-1)throw new Error("each index in "+t+" must be unique.")}}function yE(e,r,t){if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(typeof r=="undefined")throw new Error("currentIndices is a required argument.");if(Array.isArray(r)||(r=[r]),Od(e,r,"currentIndices"),typeof t!="undefined"&&!Array.isArray(t)&&(t=[t]),typeof t!="undefined"&&Od(e,t,"newIndices"),typeof t!="undefined"&&r.length!==t.length)throw new Error("current and new indices must be of equal length.")}function c0e(e,r,t){var a,n;if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(typeof r=="undefined")throw new Error("traces must be defined.");for(Array.isArray(r)||(r=[r]),a=0;a=0&&f=0&&f0&&typeof L.parts[z]!="string";)z--;var N=L.parts[z],I=L.parts[z-1]+"."+N,B=L.parts.slice(0,z).join("."),H=ht(e.layout,B).get(),Y=ht(a,B).get(),G=L.get();if(q!==void 0){x[A]=q,w[A]=N==="reverse"?q:kl(G);var O=Xd.getLayoutValObject(a,L.parts);if(O&&O.impliedEdits&&q!==null)for(var X in O.impliedEdits)T(ar.relativeAttr(A,X),O.impliedEdits[X]);if(["width","height"].indexOf(A)!==-1)if(q){T("autosize",null);var Z=A==="height"?"width":"height";T(Z,a[Z])}else a[A]=e._initialAutoSize[A];else if(A==="autosize")T("width",q?null:a.width),T("height",q?null:a.height);else if(I.match(kE))S(I),ht(a,B+"._inputRange").set(null);else if(I.match(CE)){S(I),ht(a,B+"._inputRange").set(null);var W=ht(a,B).get();W._inputDomain&&(W._input.domain=W._inputDomain.slice())}else I.match(p0e)&&ht(a,B+"._inputDomain").set(null);if(N==="type"){M=H;var ee=Y.type==="linear"&&q==="log",ne=Y.type==="log"&&q==="linear";if(ee||ne){if(!M||!M.range)T(B+".autorange",!0);else if(Y.autorange)ee&&(M.range=M.range[1]>M.range[0]?[1,2]:[2,1]);else{var fe=M.range[0],we=M.range[1];ee?(fe<=0&&we<=0&&T(B+".autorange",!0),fe<=0?fe=we/1e6:we<=0&&(we=fe/1e6),T(B+".range[0]",Math.log(fe)/Math.LN10),T(B+".range[1]",Math.log(we)/Math.LN10)):(T(B+".range[0]",Math.pow(10,fe)),T(B+".range[1]",Math.pow(10,we)))}Array.isArray(a._subplots.polar)&&a._subplots.polar.length&&a[L.parts[0]]&&L.parts[1]==="radialaxis"&&delete a[L.parts[0]]._subplot.viewInitial["radialaxis.range"],li.getComponentMethod("annotations","convertCoords")(e,Y,q,T),li.getComponentMethod("images","convertCoords")(e,Y,q,T)}else T(B+".autorange",!0),T(B+".range",null);ht(a,B+"._inputRange").set(null)}else if(N.match(n0e)){var j=ht(a,A).get(),_e=(q||{}).type;(!_e||_e==="-")&&(_e="linear"),li.getComponentMethod("annotations","convertCoords")(e,j,_e,T),li.getComponentMethod("images","convertCoords")(e,j,_e,T)}var ue=Fd.containerArrayMatch(A);if(ue){f=ue.array,c=ue.index;var Me=ue.property,ge=O||{editType:"calc"};c!==""&&Me===""&&(Fd.isAddVal(q)?w[A]=null:Fd.isRemoveVal(q)?w[A]=(ht(t,f).get()||[])[c]:ar.warn("unrecognized full object value",r)),po.update(y,ge),u[f]||(u[f]={});var ce=u[f][c];ce||(ce=u[f][c]={}),ce[Me]=q,delete r[A]}else N==="reverse"?(H.range?H.range.reverse():(T(B+".autorange",!0),H.range=[1,0]),Y.autorange?y.calc=!0:y.plot=!0):(A==="dragmode"&&(q===!1&&G!==!1||q!==!1&&G===!1)||a._has("scatter-like")&&a._has("regl")&&A==="dragmode"&&(q==="lasso"||q==="select")&&!(G==="lasso"||G==="select")?y.plot=!0:O?po.update(y,O):y.calc=!0,L.set(q))}}for(f in u){var Te=Fd.applyContainerArrayChanges(e,i(t,f),u[f],y,i);Te||(y.plot=!0)}for(var ze in b){M=an.getFromId(e,ze);var be=M&&M._constraintGroup;if(be){y.calc=!0;for(var qe in be)b[qe]||(an.getFromId(e,qe)._constraintShrinkable=!0)}}(DE(e)||r.height||r.width)&&(y.plot=!0);var Ce=a.shapes;for(c=0;c1;)if(a.pop(),t=ht(r,a.join(".")+".uirevision").get(),t!==void 0)return t;return r.uirevision}function g0e(e,r){for(var t=0;t[B,e._ev.listeners(B)]);i=Wr.newPlot(e,r,t,a).then(()=>{for(let[B,H]of I)H.forEach(Y=>e.on(B,Y));return Wr.react(e,r,t,a)})}else{e.data=r||[],$t.cleanData(e.data),e.layout=t||{},$t.cleanLayout(e.layout),x0e(e.data,e.layout,o,s),Sr.supplyDefaults(e,{skipUpdateCalc:!0});var c=e._fullData,d=e._fullLayout,h=d.datarevision===void 0,m=d.transition,g=M0e(e,s,d,h,m),y=g.newDataRevision,x=w0e(e,o,c,h,m,y);if(DE(e)&&(g.layoutReplot=!0),x.calc||g.calc){e.calcdata=void 0;for(var w=Object.getOwnPropertyNames(d),T=0;T(f||e.emit("plotly_react",{config:a,data:r,layout:t}),e))}function w0e(e,r,t,a,n,i){var l=r.length===t.length;if(!n&&!l)return{fullReplot:!0,calc:!0};var o=po.traceFlags();o.arrays={},o.nChanges=0,o.nChangesAnim=0;var s,u;function f(h){var m=Xd.getTraceValObject(u,h);return!u._module.animatable&&m.anim&&(m.anim=!1),m}var c={getValObject:f,flags:o,immutable:a,transition:n,newDataRevision:i,gd:e},d={};for(s=0;s=n.length?n[0]:n[u]:n}function o(u){return Array.isArray(i)?u>=i.length?i[0]:i[u]:i}function s(u,f){var c=0;return function(){if(u&&++c===f)return u()}}return new Promise(function(u,f){function c(){if(a._frameQueue.length!==0){for(;a._frameQueue.length;){var N=a._frameQueue.pop();N.onInterrupt&&N.onInterrupt()}e.emit("plotly_animationinterrupted",[])}}function d(N){if(N.length!==0){for(var I=0;Ia._timeToNext&&m()};N()}var y=0;function x(N){return Array.isArray(n)?y>=n.length?N.transitionOpts=n[y]:N.transitionOpts=n[0]:N.transitionOpts=n,y++,N}var w,T,b=[],M=r==null,S=Array.isArray(r),A=!M&&!S&&ar.isPlainObject(r);if(A)b.push({type:"object",data:x(ar.extendFlat({},r))});else if(M||["string","number"].indexOf(typeof r)!==-1)for(w=0;w0&&PP)&&z.push(T);b=z}}b.length>0?d(b):(e.emit("plotly_animated"),u())})}function A0e(e,r,t){if(e=ar.getGraphDiv(e),r==null)return Promise.resolve();if(!ar.isPlotDiv(e))throw new Error("This element is not a Plotly plot: "+e+". It's likely that you've failed to create a plot before adding frames. For more details, see https://plotly.com/javascript/animations/");var a,n,i,l,o=e._transitionData._frames,s=e._transitionData._frameHash;if(!Array.isArray(r))throw new Error("addFrames failure: frameList must be an Array of frame definitions"+r);var u=o.length+r.length*2,f=[],c={};for(a=r.length-1;a>=0;a--)if(ar.isPlainObject(r[a])){var d=r[a].name,h=(s[d]||c[d]||{}).name,m=r[a].name,g=s[h]||c[h];h&&m&&typeof m=="number"&&g&&lbL.index?-1:A.index=0;a--){if(n=f[a].frame,typeof n.name=="number"&&ar.warn("Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings"),!n.name)for(;s[n.name="frame "+e._transitionData._counter++];);if(s[n.name]){for(i=0;i=0;t--)a=r[t],i.push({type:"delete",index:a}),l.unshift({type:"insert",index:a,value:n[a]});var o=Sr.modifyFrames,s=Sr.modifyFrames,u=[e,l],f=[e,i];return fn&&fn.add(e,o,u,s,f),Sr.modifyFrames(e,i)}function C0e(e){e=ar.getGraphDiv(e);var r=e._fullLayout||{},t=e._fullData||[];return Sr.cleanPlot([],{},t,r),Sr.purge(e),ob.purge(e),r._container&&r._container.remove(),delete e._context,e}function S0e(e){var r=e._fullLayout,t=e.getBoundingClientRect();if(!ar.equalDomRects(t,r._lastBBox)){var a=r._invTransform=ar.inverseTransformMatrix(ar.getFullTransformMatrix(e));r._invScaleX=Math.sqrt(a[0][0]*a[0][0]+a[0][1]*a[0][1]+a[0][2]*a[0][2]),r._invScaleY=Math.sqrt(a[1][0]*a[1][0]+a[1][1]*a[1][1]+a[1][2]*a[1][2]),r._lastBBox=t}}function D0e(e){var r=Bd.select(e),t=e._fullLayout;if(t._calcInverseTransform=S0e,t._calcInverseTransform(e),t._container=r.selectAll(".plot-container").data([0]),t._container.enter().insert("div",":first-child").classed("plot-container",!0).classed("plotly",!0).style({width:"100%",height:"100%"}),t._paperdiv=t._container.selectAll(".svg-container").data([0]),t._paperdiv.enter().append("div").classed("user-select-none",!0).classed("svg-container",!0).style("position","relative"),t._glcontainer=t._paperdiv.selectAll(".gl-container").data([{}]),t._glcontainer.enter().append("div").classed("gl-container",!0),t._paperdiv.selectAll(".main-svg").remove(),t._paperdiv.select(".modebar-container").remove(),t._paper=t._paperdiv.insert("svg",":first-child").classed("main-svg",!0),t._toppaper=t._paperdiv.append("svg").classed("main-svg",!0),t._modebardiv=t._paperdiv.append("div"),delete t._modeBar,t._hoverpaper=t._paperdiv.append("svg").classed("main-svg",!0),!t._uid){var a={};Bd.selectAll("defs").each(function(){this.id&&(a[this.id.split("-")[1]]=1)}),t._uid=ar.randstr(a)}t._paperdiv.selectAll(".main-svg").attr(t0e.svgAttrs),t._defs=t._paper.append("defs").attr("id","defs-"+t._uid),t._clips=t._defs.append("g").classed("clips",!0),t._topdefs=t._toppaper.append("defs").attr("id","topdefs-"+t._uid),t._topclips=t._topdefs.append("g").classed("clips",!0),t._bgLayer=t._paper.append("g").classed("bglayer",!0),t._draggers=t._paper.append("g").classed("draglayer",!0);var n=t._paper.append("g").classed("layer-below",!0);t._imageLowerLayer=n.append("g").classed("imagelayer",!0),t._shapeLowerLayer=n.append("g").classed("shapelayer",!0),t._cartesianlayer=t._paper.append("g").classed("cartesianlayer",!0),t._polarlayer=t._paper.append("g").classed("polarlayer",!0),t._smithlayer=t._paper.append("g").classed("smithlayer",!0),t._ternarylayer=t._paper.append("g").classed("ternarylayer",!0),t._geolayer=t._paper.append("g").classed("geolayer",!0),t._funnelarealayer=t._paper.append("g").classed("funnelarealayer",!0),t._pielayer=t._paper.append("g").classed("pielayer",!0),t._iciclelayer=t._paper.append("g").classed("iciclelayer",!0),t._treemaplayer=t._paper.append("g").classed("treemaplayer",!0),t._sunburstlayer=t._paper.append("g").classed("sunburstlayer",!0),t._indicatorlayer=t._toppaper.append("g").classed("indicatorlayer",!0),t._glimages=t._paper.append("g").classed("glimages",!0);var i=t._toppaper.append("g").classed("layer-above",!0);t._imageUpperLayer=i.append("g").classed("imagelayer",!0),t._shapeUpperLayer=i.append("g").classed("shapelayer",!0),t._selectionLayer=t._toppaper.append("g").classed("selectionlayer",!0),t._infolayer=t._toppaper.append("g").classed("infolayer",!0),t._menulayer=t._toppaper.append("g").classed("menulayer",!0),t._zoomlayer=t._toppaper.append("g").classed("zoomlayer",!0),t._hoverlayer=t._hoverpaper.append("g").classed("hoverlayer",!0),t._modebardiv.classed("modebar-container",!0).style("position","absolute").style("top","0px").style("right","0px"),e.emit("plotly_framework")}Wr.animate=T0e;Wr.addFrames=A0e;Wr.deleteFrames=k0e;Wr.addTraces=wE;Wr.deleteTraces=ME;Wr.extendTraces=xE;Wr.moveTraces=sb;Wr.prependTraces=_E;Wr.newPlot=f0e;Wr._doPlot=i0e;Wr.purge=C0e;Wr.react=_0e;Wr.redraw=u0e;Wr.relayout=kc;Wr.restyle=Yd;Wr.setPlotConfig=o0e;Wr.update=Gd;Wr._guiRelayout=ub(kc);Wr._guiRestyle=ub(Yd);Wr._guiUpdate=ub(Gd);Wr._storeDirectGUIEdit=h0e});var ks=J(oi=>{"use strict";var L0e=kr();oi.getDelay=function(e){return e._has&&(e._has("gl3d")||e._has("map"))?500:0};oi.getRedrawFunc=function(e){return function(){L0e.getComponentMethod("colorbar","draw")(e)}};oi.encodeSVG=function(e){return"data:image/svg+xml,"+encodeURIComponent(e)};oi.encodeJSON=function(e){return"data:application/json,"+encodeURIComponent(e)};var LE=window.URL||window.webkitURL;oi.createObjectURL=function(e){return LE.createObjectURL(e)};oi.revokeObjectURL=function(e){return LE.revokeObjectURL(e)};oi.createBlob=function(e,r){if(r==="svg")return new window.Blob([e],{type:"image/svg+xml;charset=utf-8"});if(r==="full-json")return new window.Blob([e],{type:"application/json;charset=utf-8"});var t=q0e(window.atob(e));return new window.Blob([t],{type:"image/"+r})};oi.octetStream=function(e){document.location.href="data:application/octet-stream"+e};oi.getPlotTitle=function(e){var a,n,i,l;var r=e._fullLayout;if(r){var t=(a=r.title)==null?void 0:a.text;return t===((n=r._dfltTitle)==null?void 0:n.plot)?void 0:t}return(l=(i=e.layout)==null?void 0:i.title)==null?void 0:l.text};oi.getPlotSubtitle=function(e){var a,n,i,l,o,s;var r=e._fullLayout;if(r){var t=(n=(a=r.title)==null?void 0:a.subtitle)==null?void 0:n.text;return t===((i=r._dfltTitle)==null?void 0:i.subtitle)?void 0:t}return(s=(o=(l=e.layout)==null?void 0:l.title)==null?void 0:o.subtitle)==null?void 0:s.text};function q0e(e){for(var r=e.length,t=new ArrayBuffer(r),a=new Uint8Array(t),n=0;n{"use strict";var vb=Or(),Dbe=Re(),E0e=lt(),P0e=Nr(),Lbe=(ns(),Xe(as)),cb=/"/g,Cs="TOBESTRIPPED",R0e=new RegExp(`("${Cs})|(${Cs}")|("${Cs})|(${Cs}")`,"g"),z0e=["&","&","&",""",""",""","'","'","'"],F0e=["<","<","<"],N0e=[">",">",">"];function I0e(e){let r=vb.select("body").append("div").style({display:"none"}).html(""),t=e.replace(/(&[^;]*;)/gi,a=>{let n=a.toLowerCase();return z0e.includes(n)?a:F0e.includes(n)?"<":N0e.includes(n)?">":a.includes("<")||a.includes(">")?"":r.html(a).text()});return r.remove(),t}function B0e(e){return e.replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&")}qE.exports=function(r,t,a){var n=r._fullLayout,i=n._paper,l=n._toppaper,o=n.width,s=n.height,u;i.insert("rect",":first-child").call(E0e.setRect,0,0,o,s).call(P0e.fill,n.paper_bgcolor);var f=n._basePlotModules||[];for(u=0;u{"use strict";var H0e=Re(),O0e=Y2().EventEmitter,Sc=ks();function Y0e(e){var r=e.emitter||new O0e,t=new Promise(function(a,n){var i=window.Image,l=e.svg,o=e.format||"png",s=e.canvas,u=e.scale||1,f=e.width||300,c=e.height||150,d=u*f,h=u*c,m=s.getContext("2d",{willReadFrequently:!0}),g=new i,y,x;o==="svg"||H0e.isSafari()?x=Sc.encodeSVG(l):(y=Sc.createBlob(l,"svg"),x=Sc.createObjectURL(y)),s.width=d,s.height=h,g.onload=function(){var w;switch(y=null,Sc.revokeObjectURL(x),o!=="svg"&&m.drawImage(g,0,0,d,h),o){case"jpeg":w=s.toDataURL("image/jpeg");break;case"png":w=s.toDataURL("image/png");break;case"webp":w=s.toDataURL("image/webp");break;case"svg":w=x;break;default:var T="Image format is not jpeg, png, svg or webp.";if(n(new Error(T)),!e.promise)return r.emit("error",T)}a(w),e.promise||r.emit("success",w)},g.onerror=function(w){if(y=null,Sc.revokeObjectURL(x),n(w),!e.promise)return r.emit("error",w)},g.src=x});return e.promise?t:r}EE.exports=Y0e});var hb=J((Pbe,zE)=>{"use strict";var PE=Xr(),RE=fb(),U0e=Qt(),ul=Re(),Dc=ks(),G0e=Zd(),V0e=Jd(),X0e=Vu().version,db=(xy(),Xe(by)).default;function W0e(e,r){r=r||{};var t,a,n,i;ul.isPlainObject(e)?(t=e.data||[],a=e.layout||{},n=e.config||{},i={}):(e=ul.getGraphDiv(e),t=ul.extendDeep([],e.data),a=ul.extendDeep({},e.layout),n=e._context,i=e._fullLayout||{});function l(S){return!(S in r)||ul.validate(r[S],db[S])}if(!l("width")&&r.width!==null||!l("height")&&r.height!==null)throw new Error("Height and width should be pixel values.");if(!l("format"))throw new Error("Export format is not "+ul.join2(db.format.values,", "," or ")+".");var o={};function s(S,A){return ul.coerce(r,o,db,S,A)}var u=s("format"),f=s("width"),c=s("height"),d=s("scale"),h=s("setBackground"),m=s("imageDataOnly"),g=document.createElement("div");g.style.position="absolute",g.style.left="-5000px",document.body.appendChild(g);var y=ul.extendFlat({},a);f?y.width=f:r.width===null&&PE(i.width)&&(y.width=i.width),c?y.height=c:r.height===null&&PE(i.height)&&(y.height=i.height);var x=ul.extendFlat({},n,{_exportedPlot:!0,staticPlot:!0,setBackground:h}),w=Dc.getRedrawFunc(g);function T(){return new Promise(function(S){setTimeout(S,Dc.getDelay(g._fullLayout))})}function b(){return new Promise(function(S,A){var L=G0e(g,u,d),q=g._fullLayout.width,P=g._fullLayout.height;function z(){RE.purge(g),document.body.removeChild(g)}if(u==="full-json"){var N=U0e.graphJson(g,!1,"object",!0,!0);return N.version=X0e,N=JSON.stringify(N),z(),S(m?N:Dc.encodeJSON(N))}if(z(),u==="svg")return S(m?L:Dc.encodeSVG(L));var I=document.createElement("canvas");I.id=ul.randstr(),V0e({format:u,width:q,height:P,scale:d,canvas:I,svg:L,promise:!0}).then(S).catch(A)})}function M(S){return m?S.replace(Dc.IMAGE_URL_PREFIX,""):S}return new Promise(function(S,A){RE.newPlot(g,t,y,x).then(w).then(T).then(b).then(function(L){S(M(L))}).catch(function(L){A(L)})})}zE.exports=W0e});var IE=J((Rbe,NE)=>{"use strict";var si=Re(),Z0e=Qt(),J0e=L0(),$0e=Hl().dfltConfig,qi=si.isPlainObject,Ds=Array.isArray,pb=si.isArrayOrTypedArray;NE.exports=function(r,t){r===void 0&&(r=[]),t===void 0&&(t={});var a=J0e.get(),n=[],i={_context:si.extendFlat({},$0e)},l,o;Ds(r)?(i.data=si.extendDeep([],r),l=r):(i.data=[],l=[],n.push(_a("array","data"))),qi(t)?(i.layout=si.extendDeep({},t),o=t):(i.layout={},o={},arguments.length>1&&n.push(_a("object","layout"))),Z0e.supplyDefaults(i);for(var s=i._fullData,u=l.length,f=0;fc.length&&a.push(_a("unused",n,u.concat(c.length)));var x=c.length,w=Array.isArray(y);w&&(x=Math.min(x,y.length));var T,b,M,S,A;if(d.dimensions===2)for(b=0;bc[b].length&&a.push(_a("unused",n,u.concat(b,c[b].length)));var L=c[b].length;for(T=0;T<(w?Math.min(L,y[b].length):L);T++)M=w?y[b][T]:y,S=f[b][T],A=c[b][T],si.validate(S,M)?A!==S&&A!==+S&&a.push(_a("dynamic",n,u.concat(b,T),S,A)):a.push(_a("value",n,u.concat(b,T),S))}else a.push(_a("array",n,u.concat(b),f[b]));else for(b=0;b{"use strict";var aue=Re(),Kd=ks();function nue(e,r,t){var a=document.createElement("a"),n="download"in a,i=new Promise(function(l,o){var s,u;if(n)return s=Kd.createBlob(e,t),u=Kd.createObjectURL(s),a.href=u,a.download=r,document.body.appendChild(a),a.click(),document.body.removeChild(a),Kd.revokeObjectURL(u),s=null,l(r);if(aue.isSafari()){var f=t==="svg"?",":";base64,";return Kd.octetStream(f+encodeURIComponent(e)),l(r)}o(new Error("download error"))});return i}BE.exports=nue});var mb=J((Fbe,GE)=>{"use strict";var jd=Re(),OE=Ta(),iue=hb(),lue=HE(),YE=ks(),UE=40;function oue(e,r){var t;return jd.isPlainObject(e)||(t=jd.getGraphDiv(e)),r=r||{},r.format=r.format||"png",r.width=r.width||null,r.height=r.height||null,r.imageDataOnly=!0,new Promise(function(a,n){t&&t._snapshotInProgress&&n(new Error("Image capture already in progress.")),t&&(t._snapshotInProgress=!0);var i=iue(e,r),l=r.filename||e.fn;if(!l){let s=YE.getPlotTitle(e);if(s&&!OE.matchTex(s))l=jd.slugify(s,UE);else{let u=YE.getPlotSubtitle(e);u&&!OE.matchTex(u)&&(l=jd.slugify(u,UE))}}var o=l||"plot-image";o+="."+r.format.replace("-","."),i.then(function(s){return t&&(t._snapshotInProgress=!1),lue(s,o,r.format)}).then(function(s){a(s)}).catch(function(s){t&&(t._snapshotInProgress=!1),n(s)})})}GE.exports=oue});var JE=J(yb=>{"use strict";var wn=Re(),Mn=wn.isPlainObject,VE=L0(),XE=Qt(),sue=yi(),WE=mt(),ZE=Hl().dfltConfig;yb.makeTemplate=function(e){e=wn.isPlainObject(e)?e:wn.getGraphDiv(e),e=wn.extendDeep({_context:ZE},{data:e.data,layout:e.layout}),XE.supplyDefaults(e);var r=e.data||[],t=e.layout||{};t._basePlotModules=e._fullLayout._basePlotModules,t._modules=e._fullLayout._modules;var a={data:{},layout:{}};r.forEach(function(h){var m={};Lc(h,m,fue.bind(null,h));var g=wn.coerce(h,{},sue,"type"),y=a.data[g];y||(y=a.data[g]=[]),y.push(m)}),Lc(t,a.layout,uue.bind(null,t)),delete a.layout.template;var n=t.template;if(Mn(n)){var i=n.layout,l,o,s,u,f,c;Mn(i)&&Qd(i,a.layout);var d=n.data;if(Mn(d)){for(o in a.data)if(s=d[o],Array.isArray(s)){for(f=a.data[o],c=f.length,u=s.length,l=0;lx?l.push({code:"unused",traceType:h,templateCount:y,dataCount:x}):x>y&&l.push({code:"reused",traceType:h,templateCount:y,dataCount:x})}}function w(T,b){for(var M in T)if(M.charAt(0)!=="_"){var S=T[M],A=ui(T,M,b);Mn(S)?(Array.isArray(T)&&S._template===!1&&S.templateitemname&&l.push({code:"missing",path:A,templateitemname:S.templateitemname}),w(S,A)):Array.isArray(S)&&cue(S)&&w(S,A)}}if(w({data:s,layout:o},""),l.length)return l.map(vue)};function cue(e){for(var r=0;r{"use strict";var va=fb();At._doPlot=va._doPlot;At.newPlot=va.newPlot;At.restyle=va.restyle;At.relayout=va.relayout;At.redraw=va.redraw;At.update=va.update;At._guiRestyle=va._guiRestyle;At._guiRelayout=va._guiRelayout;At._guiUpdate=va._guiUpdate;At._storeDirectGUIEdit=va._storeDirectGUIEdit;At.react=va.react;At.extendTraces=va.extendTraces;At.prependTraces=va.prependTraces;At.addTraces=va.addTraces;At.deleteTraces=va.deleteTraces;At.moveTraces=va.moveTraces;At.purge=va.purge;At.addFrames=va.addFrames;At.deleteFrames=va.deleteFrames;At.animate=va.animate;At.setPlotConfig=va.setPlotConfig;var due=yf().getGraphDiv,hue=ud().eraseActiveShape;At.deleteActiveShape=function(e){return hue(due(e))};At.toImage=hb();At.validate=IE();At.downloadImage=mb();var $E=JE();At.makeTemplate=$E.makeTemplate;At.validateTemplate=$E.validateTemplate});var bb=J((Bbe,jE)=>{"use strict";var gb=Re(),pue=kr();jE.exports=function(r,t,a,n){var i=n("x"),l=n("y"),o,s=pue.getComponentMethod("calendars","handleTraceDefaults");if(s(r,t,["x","y"],a),i){var u=gb.minRowLength(i);l?o=Math.min(u,gb.minRowLength(l)):(o=u,n("y0"),n("dy"))}else{if(!l)return 0;o=gb.minRowLength(l),n("x0"),n("dx")}return t._length=o,o}});var xb=J((Hbe,rP)=>{"use strict";var QE=Re().dateTick0,mue=(la(),Xe(da)),yue=mue.ONEWEEK;function eP(e,r){return e%yue===0?QE(r,1):QE(r,0)}rP.exports=function(r,t,a,n,i){if(i||(i={x:!0,y:!0}),i.x){var l=n("xperiod");l&&(n("xperiod0",eP(l,t.xcalendar)),n("xperiodalignment"))}if(i.y){var o=n("yperiod");o&&(n("yperiod0",eP(o,t.ycalendar)),n("yperiodalignment"))}}});var nP=J((Obe,aP)=>{"use strict";var tP=["orientation","groupnorm","stackgaps"];aP.exports=function(r,t,a,n){var i=a._scatterStackOpts,l=n("stackgroup");if(l){var o=t.xaxis+t.yaxis,s=i[o];s||(s=i[o]={});var u=s[l],f=!1;u?u.traces.push(t):(u=s[l]={traceIndices:[],traces:[t]},f=!0);for(var c={orientation:t.x&&!t.y?"h":"v"},d=0;d{"use strict";var iP=Nr(),lP=Kn().hasColorscale,oP=R0(),gue=qn();sP.exports=function(r,t,a,n,i,l={}){var o=gue.isBubble(r),s=(r.line||{}).color,u;if(s&&(a=s),i("marker.symbol"),i("marker.opacity",o?.7:1),i("marker.size"),l.noAngle||(i("marker.angle"),l.noAngleRef||i("marker.angleref"),l.noStandOff||i("marker.standoff")),i("marker.color",a),lP(r,"marker")&&oP(r,t,n,i,{prefix:"marker.",cLetter:"c"}),l.noSelect||(i("selected.marker.color"),i("unselected.marker.color"),i("selected.marker.size"),i("unselected.marker.size")),l.noLine||(s&&!Array.isArray(s)&&t.marker.color!==s?u=s:o?u=iP.background:u=iP.defaultLine,i("marker.line.color",u),lP(r,"marker.line")&&oP(r,t,n,i,{prefix:"marker.line.",cLetter:"c"}),i("marker.line.width",o?1:0),l.noLineDash||i("marker.line.dash")),o&&(i("marker.sizeref"),i("marker.sizemin"),i("marker.sizemode")),l.gradient){var f=i("marker.gradient.type");f!=="none"&&i("marker.gradient.color")}}});var cP=J((Ube,fP)=>{"use strict";var bue=Re().isArrayOrTypedArray,xue=Kn().hasColorscale,_ue=R0();fP.exports=function(r,t,a,n,i,l){l||(l={});var o=(r.marker||{}).color;if(o&&o._inputArray&&(o=o._inputArray),i("line.color",a),xue(r,"line"))_ue(r,t,n,i,{prefix:"line.",cLetter:"c"});else{var s=(bue(o)?!1:o)||a;i("line.color",s)}i("line.width"),l.noDash||i("line.dash"),l.backoff&&i("line.backoff")}});var dP=J((Gbe,vP)=>{"use strict";vP.exports=function(r,t,a){var n=a("line.shape");n==="spline"&&a("line.smoothing")}});var pP=J((Vbe,hP)=>{"use strict";var wue=Re();hP.exports=function(e,r,t,a,n){n=n||{},a("textposition"),wue.coerceFont(a,"textfont",n.font||t.font,n),n.noSelect||(a("selected.textfont.color"),a("unselected.textfont.color"))}});var gP=J((Xbe,yP)=>{"use strict";var rh=Nr(),mP=Re().isArrayOrTypedArray;function Mue(e){for(var r=rh.interpolate(e[0][1],e[1][1],.5),t=2;t{"use strict";var bP=Re(),Tue=kr(),Aue=As(),kue=(Cd(),Xe(kd)),lu=qn(),Cue=bb(),Sue=xb(),Due=nP(),Lue=uP(),que=cP(),xP=dP(),Eue=pP(),Pue=gP(),Rue=Re().coercePattern;_P.exports=function(r,t,a,n){function i(h,m){return bP.coerce(r,t,Aue,h,m)}var l=Cue(r,t,n,i);if(l||(t.visible=!1),!!t.visible){Sue(r,t,n,i),i("xhoverformat"),i("yhoverformat"),i("zorder");var o=Due(r,t,n,i);n.scattermode==="group"&&t.orientation===void 0&&i("orientation","v");var s=!o&&l{"use strict";var zue=rc().getAxisGroup;MP.exports=function(r,t,a,n,i){var l=t.orientation,o=t[{v:"x",h:"y"}[l]+"axis"],s=zue(a,o)+l,u=a._alignmentOpts||{},f=n("alignmentgroup"),c=u[s];c||(c=u[s]={});var d=c[f];d?d.traces.push(t):d=c[f]={traces:[t],alignmentIndex:Object.keys(c).length,offsetGroups:{}};var h=n("offsetgroup")||"",m=d.offsetGroups,g=m[h];t._offsetIndex=0,(i!=="group"||h)&&(g||(g=m[h]={offsetIndex:Object.keys(m).length}),t._offsetIndex=g.offsetIndex)}});var AP=J((Jbe,TP)=>{"use strict";var Fue=Re(),Nue=_b(),Iue=As();TP.exports=function(r,t){var a,n,i,l=t.scattermode;function o(d){return Fue.coerce(n._input,n,Iue,d)}if(t.scattermode==="group")for(i=0;i=0;f--){var c=r[f];if(c.type==="scatter"&&c.xaxis===s.xaxis&&c.yaxis===s.yaxis){c.opacity=void 0;break}}}}}});var CP=J(($be,kP)=>{"use strict";var Bue=Re(),Hue=W2();kP.exports=function(e,r){function t(n,i){return Bue.coerce(e,r,Hue,n,i)}var a=r.barmode==="group";r.scattermode==="group"&&t("scattergap",a?r.bargap:.2)}});var wb=J((Kbe,DP)=>{"use strict";var Oue=Xr(),SP=Re(),Yue=SP.dateTime2ms,th=SP.incrementMonth,Uue=(la(),Xe(da)),Gue=Uue.ONEAVGMONTH;DP.exports=function(r,t,a,n){if(t.type!=="date")return{vals:n};var i=r[a+"periodalignment"];if(!i)return{vals:n};var l=r[a+"period"],o;if(Oue(l)){if(l=+l,l<=0)return{vals:n}}else if(typeof l=="string"&&l.charAt(0)==="M"){var s=+l.substring(1);if(s>0&&Math.round(s)===s)o=s;else return{vals:n}}for(var u=t.calendar,f=i==="start",c=i==="end",d=r[a+"period0"],h=Yue(d,u)||0,m=[],g=[],y=[],x=n.length,w=0;wT;)S=th(S,-o,u);for(;S<=T;)S=th(S,o,u);M=th(S,-o,u)}else{for(b=Math.round((T-h)/l),S=h+b*l;S>T;)S-=l;for(;S<=T;)S+=l;M=S-l}m[w]=f?M:c?S:(M+S)/2,g[w]=M,y[w]=S}return{vals:m,starts:g,ends:y}}});var EP=J((jbe,qP)=>{"use strict";var Mb=Kn().hasColorscale,Tb=n1(),LP=qn();qP.exports=function(r,t){LP.hasLines(t)&&Mb(t,"line")&&Tb(r,t,{vals:t.line.color,containerStr:"line",cLetter:"c"}),LP.hasMarkers(t)&&(Mb(t,"marker")&&Tb(r,t,{vals:t.marker.color,containerStr:"marker",cLetter:"c"}),Mb(t,"marker.line")&&Tb(r,t,{vals:t.marker.line.color,containerStr:"marker.line",cLetter:"c"}))}});var Ab=J((Qbe,PP)=>{"use strict";var Nt=Re();PP.exports=function(r,t){for(var a=0;a{"use strict";var RP=Re();zP.exports=function(r,t){RP.isArrayOrTypedArray(t.selectedpoints)&&RP.tagSelected(r,t)}});var qb=J((r4e,YP)=>{"use strict";var FP=Xr(),Sb=Re(),qc=Mt(),NP=wb(),Cb=(la(),Xe(da)).BADNUM,Db=qn(),Vue=EP(),Xue=Ab(),Wue=kb();function Zue(e,r){var t=e._fullLayout,a=r._xA=qc.getFromId(e,r.xaxis||"x","x"),n=r._yA=qc.getFromId(e,r.yaxis||"y","y"),i=a.makeCalcdata(r,"x"),l=n.makeCalcdata(r,"y"),o=NP(r,a,"x",i),s=NP(r,n,"y",l),u=o.vals,f=s.vals,c=r._length,d=new Array(c),h=r.ids,m=Lb(r,t,a,n),g=!1,y,x,w,T,b,M;HP(t,r);var S="x",A="y",L;if(m)Sb.pushUnique(m.traceIndices,r.index),y=m.orientation==="v",y?(A="s",L="x"):(S="s",L="y"),b=m.stackgaps==="interpolate";else{var q=BP(r,c);IP(e,r,a,n,u,f,q)}var P=!!r.xperiodalignment,z=!!r.yperiodalignment;for(x=0;xx&&d[T].gap;)T--;for(M=d[T].s,w=d.length-1;w>T;w--)d[w].s=M;for(;x{"use strict";UP.exports=ah;var Jue=Re().distinctVals;function ah(e,r){this.traces=e,this.sepNegVal=r.sepNegVal,this.overlapNoMerge=r.overlapNoMerge;for(var t=1/0,a=r.posAxis._id.charAt(0),n=[],i=0;i$ue,eventDataKeys:()=>Kue});var $ue,Kue,Pc=Pt(()=>{"use strict";$ue=3,Kue=["value","label"]});var Nb=J((a4e,ZP)=>{"use strict";var fi=Xr(),{isArrayOrTypedArray:Cl}=Re(),{BADNUM:ou}=(la(),Xe(da)),jue=kr(),Rc=Mt(),{getAxisGroup:Que}=rc(),nh=GP(),{TEXTPAD:efe}=(Pc(),Xe(Ec)),{LINE_SPACING:rfe}=(Oa(),Xe(Ha)),{BR_TAG_ALL:tfe}=Ta();function afe(e,r){for(var t=r.xaxis,a=r.yaxis,n=e._fullLayout,i=e._fullData,l=e.calcdata,o=[],s=[],u=0;us+l||!fi(o))}for(var f=0;fa(i))):a(e.text);let n=e.outsidetextfont.size*rfe*t+efe;return{ppadplus:r.some(i=>i.s<0)?n:0,ppadminus:r.some(i=>i.s>=0)?n:0}}return{ppadplus:void 0,ppadminus:void 0}}function dfe(e,r,t,a){for(var n=su(a),i=0;i{"use strict";var JP=qb(),$P=Nb().setGroupPositions;function pfe(e,r){for(var t=r.xaxis,a=r.yaxis,n=e._fullLayout,i=e._fullData,l=e.calcdata,o=[],s=[],u=0;uq[f]&&f{"use strict";var yfe=lt(),tR=(la(),Xe(da)),zc=tR.BADNUM,aR=tR.LOG_CLIP,QP=aR+.5,eR=aR-.5,ih=Re(),gfe=ih.segmentsIntersect,rR=ih.constrain,Bb=(Cd(),Xe(kd));nR.exports=function(r,t){var a=t.trace||{},n=t.xaxis,i=t.yaxis,l=n.type==="log",o=i.type==="log",s=n._length,u=i._length,f=t.backoff,c=a.marker,d=t.connectGaps,h=t.baseTolerance,m=t.shape,g=m==="linear",y=a.fill&&a.fill!=="none",x=[],w=Bb.minTolerance,T=r.length,b=new Array(T),M=0,S,A,L,q,P,z,N,I,B,H,Y,G,O,X,Z,W;function ee(Se){var Ke=r[Se];if(!Ke)return!1;var Ne=t.linearized?n.l2p(Ke.x):n.c2p(Ke.x),pr=t.linearized?i.l2p(Ke.y):i.c2p(Ke.y);if(Ne===zc){if(l&&(Ne=n.c2p(Ke.x,!0)),Ne===zc)return!1;o&&pr===zc&&(Ne*=Math.abs(n._m*u*(n._m>0?QP:eR)/(i._m*s*(i._m>0?QP:eR)))),Ne*=1e3}if(pr===zc){if(o&&(pr=i.c2p(Ke.y,!0)),pr===zc)return!1;pr*=1e3}return[Ne,pr]}function ne(Se,Ke,Ne,pr){var xr=Ne-Se,ur=pr-Ke,mr=.5-Se,te=.5-Ke,ve=xr*xr+ur*ur,Fe=xr*mr+ur*te;if(Fe>0&&Fe1||Math.abs(mr.y-Ne[0][1])>1)&&(mr=[mr.x,mr.y],pr&&_e(mr,Se)<_e(Ne[0],Se)?Ne.unshift(mr):Ne.push(mr),pr++)}return Ne}function We(Se){if(Se[0]ge||Se[1]Te)return[rR(Se[0],Me,ge),rR(Se[1],ce,Te)]}function je(Se,Ke){if(Se[0]===Ke[0]&&(Se[0]===Me||Se[0]===ge)||Se[1]===Ke[1]&&(Se[1]===ce||Se[1]===Te))return!0}function Ze(Se,Ke){var Ne=[],pr=We(Se),xr=We(Ke);return pr&&xr&&je(pr,xr)||(pr&&Ne.push(pr),xr&&Ne.push(xr)),Ne}function Ae(Se,Ke,Ne){return function(pr,xr){var ur=We(pr),mr=We(xr),te=[];if(ur&&mr&&je(ur,mr))return te;ur&&te.push(ur),mr&&te.push(mr);var ve=2*ih.constrain((pr[Se]+xr[Se])/2,Ke,Ne)-((ur||pr)[Se]+(mr||xr)[Se]);if(ve){var Fe;ur&&mr?Fe=ve>0==ur[Se]>mr[Se]?ur:mr:Fe=ur||mr,Fe[Se]+=ve}return te}}var Pe;m==="linear"||m==="spline"?Pe=ke:m==="hv"||m==="vh"?Pe=Ze:m==="hvh"?Pe=Ae(0,Me,ge):m==="vhv"&&(Pe=Ae(1,ce,Te));function Qe(Se,Ke){var Ne=Ke[0]-Se[0],pr=(Ke[1]-Se[1])/Ne,xr=(Se[1]*Ke[0]-Ke[1]*Se[0])/Ne;return xr>0?[pr>0?Me:ge,Te]:[pr>0?ge:Me,ce]}function re(Se){var Ke=Se[0],Ne=Se[1],pr=Ke===b[M-1][0],xr=Ne===b[M-1][1];if(!(pr&&xr))if(M>1){var ur=Ke===b[M-2][0],mr=Ne===b[M-2][1];pr&&(Ke===Me||Ke===ge)&&ur?mr?M--:b[M-1]=Se:xr&&(Ne===ce||Ne===Te)&&mr?ur?M--:b[M-1]=Se:b[M++]=Se}else b[M++]=Se}function he(Se){b[M-1][0]!==Se[0]&&b[M-1][1]!==Se[1]&&re([Ce,De]),re(Se),Ee=null,Ce=De=0}var Ve=ih.isArrayOrTypedArray(c);function hr(Se){if(Se&&f&&(Se.i=S,Se.d=r,Se.trace=a,Se.marker=Ve?c[Se.i]:c,Se.backoff=f),fe=Se[0]/s,we=Se[1]/u,be=Se[0]ge?ge:0,qe=Se[1]Te?Te:0,be||qe){if(!M)b[M++]=[be||Se[0],qe||Se[1]];else if(Ee){var Ke=Pe(Ee,Se);Ke.length>1&&(he(Ke[0]),b[M++]=Ke[1])}else Ue=Pe(b[M-1],Se)[0],b[M++]=Ue;var Ne=b[M-1];be&&qe&&(Ne[0]!==be||Ne[1]!==qe)?(Ee&&(Ce!==be&&De!==qe?re(Ce&&De?Qe(Ee,Se):[Ce||be,De||qe]):Ce&&De&&re([Ce,De])),re([be,qe])):Ce-be&&De-qe&&re([be||Ce,qe||De]),Ee=Se,Ce=be,De=qe}else Ee&&he(Pe(Ee,Se)[0]),b[M++]=Se}for(S=0;Sj(z,Le))break;L=z,O=B[0]*I[0]+B[1]*I[1],O>Y?(Y=O,q=z,N=!1):O=r.length||!z)break;hr(z),A=z}}Ee&&re([Ce||Ee[0],De||Ee[1]]),x.push(b.slice(0,M))}var de=m.slice(m.length-1);if(f&&de!=="h"&&de!=="v"){for(var xe=!1,He=-1,Je=[],Ie=0;Ie{"use strict";var lR={tonextx:1,tonexty:1,tonext:1};oR.exports=function(r,t,a){var n,i,l,o,s,u={},f=!1,c=-1,d=0,h=-1;for(i=0;i=0?s=h:(s=h=d,d++),s{"use strict";var Ei=Or(),bfe=kr(),Fc=Re(),uu=Fc.ensureSingle,fR=Fc.identity,Ht=lt(),fu=qn(),xfe=iR(),_fe=sR(),lh=R5().tester;cR.exports=function(r,t,a,n,i,l){var o,s,u=!i,f=!!i&&i.duration>0,c=_fe(r,t,a);if(o=n.selectAll("g.trace").data(c,function(h){return h[0].trace.uid}),o.enter().append("g").attr("class",function(h){return"trace scatter trace"+h[0].trace.uid}).style("stroke-miterlimit",2),o.order(),wfe(r,o,t),f){l&&(s=l());var d=Ei.transition().duration(i.duration).ease(i.easing).each("end",function(){s&&s()}).each("interrupt",function(){s&&s()});d.each(function(){n.selectAll("g.trace").each(function(h,m){uR(r,m,t,h,c,this,i)})})}else o.each(function(h,m){uR(r,m,t,h,c,this,i)});u&&o.exit().remove(),n.selectAll("path:not([d])").remove()};function wfe(e,r,t){r.each(function(a){var n=uu(Ei.select(this),"g","fills");Ht.setClipUrl(n,t.layerClipId,e);var i=a[0].trace;i._ownFill=null,i._nextFill=null;var l=[];i._ownfill&&l.push("_ownFill"),i._nexttrace&&l.push("_nextFill");var o=n.selectAll("g").data(l,fR);o.enter().append("g"),o.exit().remove(),o.order().each(function(s){i[s]=uu(Ei.select(this),"path","js-fill")})})}function uR(e,r,t,a,n,i,l){var o=e._context.staticPlot,s;Mfe(e,r,t,a,n);var u=!!l&&l.duration>0;function f(Ae){return u?Ae.transition():Ae}var c=t.xaxis,d=t.yaxis,h=a[0].trace,m=h.line,g=Ei.select(i),y=uu(g,"g","errorbars"),x=uu(g,"g","lines"),w=uu(g,"g","points"),T=uu(g,"g","text");if(bfe.getComponentMethod("errorbars","plot")(e,y,t,l),h.visible!==!0)return;f(g).style("opacity",h.opacity);var b,M,S=h.fill.charAt(h.fill.length-1);S!=="x"&&S!=="y"&&(S="");var A,L;S==="y"?(A=1,L=d.c2p(0,!0)):S==="x"&&(A=0,L=c.c2p(0,!0)),a[0][t.isRangePlot?"nodeRangePlot3":"node3"]=g;var q="",P=[],z=h._prevtrace,N=null,I=null;z&&(q=z._prevRevpath||"",M=z._nextFill,P=z._ownPolygons,N=z._fillsegments,I=z._fillElement);var B,H,Y="",G="",O,X,Z,W,ee,ne,fe=[];h._polygons=[];var we=[],j=[],_e=Fc.noop;if(b=h._ownFill,fu.hasLines(h)||h.fill!=="none"){M&&M.datum(a),["hv","vh","hvh","vhv"].indexOf(m.shape)!==-1?(O=Ht.steps(m.shape),X=Ht.steps(m.shape.split("").reverse().join(""))):m.shape==="spline"?O=X=function(Ae){var Pe=Ae[Ae.length-1];return Ae.length>1&&Ae[0][0]===Pe[0]&&Ae[0][1]===Pe[1]?Ht.smoothclosed(Ae.slice(1),m.smoothing):Ht.smoothopen(Ae,m.smoothing)}:O=X=function(Ae){return"M"+Ae.join("L")},Z=function(Ae){return X(Ae.reverse())},j=xfe(a,{xaxis:c,yaxis:d,trace:h,connectGaps:h.connectgaps,baseTolerance:Math.max(m.width||1,3)/4,shape:m.shape,backoff:m.backoff,simplify:m.simplify,fill:h.fill}),we=new Array(j.length);var ue=0;for(s=0;s=o[0]&&g.x<=o[1]&&g.y>=s[0]&&g.y<=s[1]}),d=Math.ceil(c.length/f),h=0;n.forEach(function(g,y){var x=g[0].trace;fu.hasMarkers(x)&&x.marker.maxdisplayed>0&&y{"use strict";dR.exports={container:"marker",min:"cmin",max:"cmax"}});var pR=J((u4e,hR)=>{"use strict";var oh=Mt();hR.exports=function(r,t,a){var n={},i={_fullLayout:a},l=oh.getFromTrace(i,t,"x"),o=oh.getFromTrace(i,t,"y"),s=r.orig_x;s===void 0&&(s=r.x);var u=r.orig_y;return u===void 0&&(u=r.y),n.xLabel=oh.tickText(l,l.c2l(s),!0).text,n.yLabel=oh.tickText(o,o.c2l(u),!0).text,n}});var Gb=J((f4e,mR)=>{"use strict";var Ob=Or(),cu=lt(),Tfe=kr();function Afe(e){var r=Ob.select(e).selectAll("g.trace.scatter");r.style("opacity",function(t){return t[0].trace.opacity}),r.selectAll("g.points").each(function(t){var a=Ob.select(this),n=t.trace||t[0].trace;Yb(a,n,e)}),r.selectAll("g.text").each(function(t){var a=Ob.select(this),n=t.trace||t[0].trace;Ub(a,n,e)}),r.selectAll("g.trace path.js-line").call(cu.lineGroupStyle),r.selectAll("g.trace path.js-fill").call(cu.fillGroupStyle,e,!1),Tfe.getComponentMethod("errorbars","style")(r)}function Yb(e,r,t){cu.pointStyle(e.selectAll("path.point"),r,t)}function Ub(e,r,t){cu.textPointStyle(e.selectAll("text"),r,t)}function kfe(e,r,t){var a=r[0].trace;a.selectedpoints?(cu.selectedPointStyle(t.selectAll("path.point"),a),cu.selectedTextStyle(t.selectAll("text"),a)):(Yb(t,a,e),Ub(t,a,e))}mR.exports={style:Afe,stylePoints:Yb,styleText:Ub,styleOnSelect:kfe}});var gR=J((c4e,yR)=>{"use strict";var vu=Nr(),Cfe=qn();yR.exports=function(r,t){var a,n;if(r.mode==="lines")return a=r.line.color,a&&vu.opacity(a)?a:r.fillcolor;if(r.mode==="none")return r.fill?r.fillcolor:"";var i=t.mcc||t.mc||(r.marker||{}).color,l=t.mlcc||((r.marker||{}).line||{}).color;return n=i&&vu.opacity(i)?i:l&&vu.opacity(l)&&(t.mlw||((r.marker||{}).line||{}).width)?l:"",n?vu.opacity(n)<.3?vu.addOpacity(n,.3):n:(a=(r.line||{}).color,a&&vu.opacity(a)&&Cfe.hasLines(r)&&r.line.width?a:r.fillcolor)}});var _R=J((v4e,xR)=>{"use strict";var sh=Re(),bR=Si(),Sfe=kr(),Dfe=gR(),Vb=Nr(),Lfe=sh.fillText;xR.exports=function(r,t,a,n){var i=r.cd,l=i[0].trace,o=r.xa,s=r.ya,u=o.c2p(t),f=s.c2p(a),c=[u,f],d=l.hoveron||"",h=l.mode.indexOf("markers")!==-1?3:.5,m=!!l.xperiodalignment,g=!!l.yperiodalignment;if(d.indexOf("points")!==-1){var y=function(G){if(m){var O=o.c2p(G.xStart),X=o.c2p(G.xEnd);return u>=Math.min(O,X)&&u<=Math.max(O,X)?0:1/0}var Z=Math.max(3,G.mrc||0),W=1-1/Z,ee=Math.abs(o.c2p(G.x)-u);return ee=Math.min(O,X)&&f<=Math.max(O,X)?0:1/0}var Z=Math.max(3,G.mrc||0),W=1-1/Z,ee=Math.abs(s.c2p(G.y)-f);return eefe!=Te>=fe&&(Me=_e[j-1][0],ge=_e[j][0],Te-ce&&(ue=Me+(ge-Me)*(fe-ce)/(Te-ce),Z=Math.min(Z,ue),W=Math.max(W,ue)));return Z=Math.max(Z,0),W=Math.min(W,o._length),{x0:Z,x1:W,y0:fe,y1:fe}}if(d.indexOf("fills")!==-1&&l._fillElement){var B=N(l._fillElement)&&!N(l._fillExclusionElement);if(B){var H=I(l._polygons);H===null&&(H={x0:c[0],x1:c[0],y0:c[1],y1:c[1]});var Y=Vb.defaultLine;return Vb.opacity(l.fillcolor)?Y=l.fillcolor:Vb.opacity((l.line||{}).color)&&(Y=l.line.color),sh.extendFlat(r,{distance:r.maxHoverDistance,x0:H.x0,x1:H.x1,y0:H.y0,y1:H.y1,color:Y,hovertemplate:!1}),delete r.index,l.text&&!sh.isArrayOrTypedArray(l.text)?r.text=String(l.text):r.text=l.name,[r]}}}});var TR=J((d4e,MR)=>{"use strict";var wR=qn();MR.exports=function(r,t){var a=r.cd,n=r.xaxis,i=r.yaxis,l=[],o=a[0].trace,s,u,f,c,d=o.mode&&!wR.hasMarkers(o)&&!wR.hasText(o);if(d)return[];if(t===!1)for(s=0;s{"use strict";AR.exports={xaxis:{valType:"subplotid",dflt:"x",editType:"calc+clearAxisTypes"},yaxis:{valType:"subplotid",dflt:"y",editType:"calc+clearAxisTypes"}}});var LR=J((p4e,DR)=>{"use strict";var uh=kr().traceIs,Xb=o3();DR.exports=function(r,t,a,n){a("autotypenumbers",n.autotypenumbersDflt);var i=a("type",(n.splomStash||{}).type);i==="-"&&(qfe(t,n.data),t.type==="-"?t.type="linear":r.type=t.type)};function qfe(e,r){if(e.type==="-"){var t=e._id,a=t.charAt(0),n;t.indexOf("scene")!==-1&&(t=a);var i=Efe(r,t,a);if(i){if(i.type==="histogram"&&a==={v:"y",h:"x"}[i.orientation||"v"]){e.type="linear";return}var l=a+"calendar",o=i[l],s={noMultiCategory:!uh(i,"cartesian")||uh(i,"noMultiCategory")};if(i.type==="box"&&i._hasPreCompStats&&a==={h:"x",v:"y"}[i.orientation||"v"]&&(s.noMultiCategory=!0),s.autotypenumbers=e.autotypenumbers,SR(i,a)){var u=CR(i),f=[];for(n=0;n0&&(n["_"+t+"axes"]||{})[r])return n;if((n[t+"axis"]||t)===r){if(SR(n,t))return n;if((n[t]||[]).length||n[t+"0"])return n}}}function CR(e){return{v:"x",h:"y"}[e.orientation||"v"]}function SR(e,r){var t=CR(e),a=uh(e,"box-violin");return a&&r===t&&e[t]===void 0&&e[t+"0"]===void 0}});var ER=J((m4e,qR)=>{"use strict";var Pfe=hn().isTypedArraySpec;function Rfe(e,r){var t=r.dataAttr||e._id.charAt(0),a={},n,i,l;if(r.axData)n=r.axData;else for(n=[],i=0;i0||Pfe(i),o;l&&(o="array");var s=a("categoryorder",o),u;s==="array"&&(u=a("categoryarray")),!l&&s==="array"&&(s=t.categoryorder="trace"),s==="trace"?t._initialCategories=[]:s==="array"?t._initialCategories=u.slice():(u=Rfe(t,n).sort(),s==="category ascending"?t._initialCategories=u:s==="category descending"&&(t._initialCategories=u.reverse()))}}});var zR=J((y4e,RR)=>{"use strict";var PR=Nr(),zfe=Xi(),Ffe=Re();RR.exports=function(r,t,a,n){n=n||{};var i=n.dfltColor;function l(L,q){return Ffe.coerce2(r,t,n.attributes,L,q)}var o=l("linecolor",i),s=l("linewidth"),u=a("showline",n.showLine||!!o||!!s);u||(delete t.linecolor,delete t.linewidth);var f=PR.mix(i,n.bgColor,n.blend||zfe.lightFraction),c=l("gridcolor",f),d=l("gridwidth"),h=l("griddash"),m=a("showgrid",n.showGrid||!!c||!!d||!!h);if(m||(delete t.gridcolor,delete t.gridwidth,delete t.griddash),n.hasMinor){var g=PR.mix(t.gridcolor,n.bgColor,67),y=l("minor.gridcolor",g),x=l("minor.gridwidth",t.gridwidth||1),w=l("minor.griddash",t.griddash||"solid"),T=a("minor.showgrid",!!y||!!x||!!w);T||(delete t.minor.gridcolor,delete t.minor.gridwidth,delete t.minor.griddash)}if(!n.noZeroLine){var b=l("zerolinelayer"),M=l("zerolinecolor",i),S=l("zerolinewidth"),A=a("zeroline",n.showGrid||!!M||!!S);A||(delete t.zerolinelayer,delete t.zerolinecolor,delete t.zerolinewidth)}}});var Zb=J((g4e,OR)=>{"use strict";var FR=Xr(),Nfe=kr(),Nc=Re(),Ife=mt(),Bfe=Ti(),Wb=Mi(),NR=qg(),IR=Pg(),Hfe=Fg(),Ofe=Ng(),Yfe=ER(),Ufe=zR(),Gfe=S3(),BR=g1(),fh=(ya(),Xe(ma)).WEEKDAY_PATTERN,Vfe=(ya(),Xe(ma)).HOUR_PATTERN;OR.exports=function(r,t,a,n,i){var l=n.letter,o=n.font||{},s=n.splomStash||{},u=a("visible",!n.visibleDflt),f=t._template||{},c=t.type||f.type||"-",d;if(c==="date"){var h=Nfe.getComponentMethod("calendars","handleDefaults");h(r,t,"calendar",n.calendar),n.noTicklabelmode||(d=a("ticklabelmode"))}!n.noTicklabelindex&&(c==="date"||c==="linear")&&a("ticklabelindex");var m="";(!n.noTicklabelposition||c==="multicategory")&&(m=Nc.coerce(r,t,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:d==="period"?["outside","inside"]:l==="x"?["outside","inside","outside left","inside left","outside right","inside right"]:["outside","inside","outside top","inside top","outside bottom","inside bottom"]}},"ticklabelposition")),n.noTicklabeloverflow||a("ticklabeloverflow",m.indexOf("inside")!==-1?"hide past domain":c==="category"||c==="multicategory"?"allow":"hide past div"),BR(t,i),Gfe(r,t,a,n),Yfe(r,t,a,n),n.noHover||(c!=="category"&&a("hoverformat"),n.noUnifiedhovertitle||a("unifiedhovertitle.text"));var g=a("color"),y=g!==Wb.color.dflt?g:o.color,x=s.label||i._dfltTitle[l];if(Ofe(r,t,a,c,n),!u)return t;a("title.text",x),Nc.coerceFont(a,"title.font",o,{overrideDflt:{size:Nc.bigFont(o.size),color:y}}),NR(r,t,a,c);var w=n.hasMinor;if(w&&(Ife.newContainer(t,"minor"),NR(r,t,a,c,{isMinor:!0})),Hfe(r,t,a,c,n),IR(r,t,a,n),w){var T=n.isMinor;n.isMinor=!0,IR(r,t,a,n),n.isMinor=T}Ufe(r,t,a,{dfltColor:g,bgColor:n.bgColor,showGrid:n.showGrid,hasMinor:w,attributes:Wb}),w&&t.ticklabelindex==null&&!t.minor.ticks&&!t.minor.showgrid&&delete t.minor,(t.showline||t.ticks)&&a("mirror");var b=c==="multicategory";if(!n.noTickson&&(c==="category"||b)&&(t.ticks||t.showgrid)&&(b?(a("tickson","boundaries"),delete t.ticklabelposition):a("tickson")),b){var M=a("showdividers");M&&(a("dividercolor"),a("dividerwidth"))}if(c==="date")if(Bfe(r,t,{name:"rangebreaks",inclusionAttr:"enabled",handleItemDefaults:Xfe}),!t.rangebreaks.length)delete t.rangebreaks;else{for(var S=0;S=2){var l="",o,s;if(i.length===2){for(o=0;o<2;o++)if(s=HR(i[o]),s){l=fh;break}}var u=a("pattern",l);if(u===fh)for(o=0;o<2;o++)s=HR(i[o]),s&&(r.bounds[o]=i[o]=s-1);if(u)for(o=0;o<2;o++)switch(s=i[o],u){case fh:if(!FR(s)){r.enabled=!1;return}if(s=+s,s!==Math.floor(s)||s<0||s>=7){r.enabled=!1;return}r.bounds[o]=i[o]=s;break;case Vfe:if(!FR(s)){r.enabled=!1;return}if(s=+s,s<0||s>24){r.enabled=!1;return}r.bounds[o]=i[o]=s;break}if(t.autorange===!1){var f=t.range;if(f[0]f[1]){r.enabled=!1;return}}else if(i[0]>f[0]&&i[1]{"use strict";var Zfe=Xr(),ch=Re();YR.exports=function(r,t,a,n){var i=n.counterAxes||[],l=n.overlayableAxes||[],o=n.letter,s=n.grid,u=n.overlayingDomain,f,c,d,h,m,g;s&&(c=s._domains[o][s._axisMap[t._id]],f=s._anchors[t._id],c&&(d=s[o+"side"].split(" ")[0],h=s.domain[o][d==="right"||d==="top"?1:0])),c=c||[0,1],f=f||(Zfe(r.position)?"free":i[0]||"free"),d=d||(o==="x"?"bottom":"left"),h=h||0,m=0,g=!1;var y=ch.coerce(r,t,{anchor:{valType:"enumerated",values:["free"].concat(i),dflt:f}},"anchor"),x=ch.coerce(r,t,{side:{valType:"enumerated",values:o==="x"?["bottom","top"]:["left","right"],dflt:d}},"side");if(y==="free"){if(o==="y"){var w=a("autoshift");w&&(h=x==="left"?u[0]:u[1],g=t.automargin?t.automargin:!0,m=x==="left"?-3:3),a("shift",m)}a("position",h)}a("automargin",g);var T=!1;if(l.length&&(T=ch.coerce(r,t,{overlaying:{valType:"enumerated",values:[!1].concat(l),dflt:!1}},"overlaying")),!T){var b=a("domain",c);b[0]>b[1]-1/4096&&(t.domain=c),ch.noneOrAll(r.domain,t.domain,c),t.tickmode==="sync"&&(t.tickmode="auto")}return a("layer"),t}});var KR=J((x4e,$R)=>{"use strict";var Ls=Re(),UR=Nr(),Jfe=Ai().isUnifiedHover,$fe=t5(),GR=mt(),Kfe=x0(),VR=Mi(),jfe=LR(),XR=Zb(),Qfe=rc(),WR=Jb(),Kb=ua(),fl=Kb.id2name,ZR=Kb.name2id,ece=(ya(),Xe(ma)).AX_ID_PATTERN,JR=kr(),vh=JR.traceIs,$b=JR.getComponentMethod;function dh(e,r,t){Array.isArray(e[r])?e[r].push(t):e[r]=[t]}$R.exports=function(r,t,a){var n=t.autotypenumbers,i={},l={},o={},s={},u={},f={},c={},d={},h={},m={},g,y;for(g=0;g{"use strict";var rce=Or(),jR=kr(),hh=Re(),Bn=lt(),ph=Mt();QR.exports=function(r,t,a,n){var i=r._fullLayout;if(t.length===0){ph.redrawComponents(r);return}function l(y){var x=y.xaxis,w=y.yaxis;i._defs.select("#"+y.clipId+"> rect").call(Bn.setTranslate,0,0).call(Bn.setScale,1,1),y.plot.call(Bn.setTranslate,x._offset,w._offset).call(Bn.setScale,1,1);var T=y.plot.selectAll(".scatterlayer .trace");T.selectAll(".point").call(Bn.setPointGroupScale,1,1),T.selectAll(".textpoint").call(Bn.setTextPointsScale,1,1),T.call(Bn.hideOutsideRangePoints,y)}function o(y,x){var w=y.plotinfo,T=w.xaxis,b=w.yaxis,M=T._length,S=b._length,A=!!y.xr1,L=!!y.yr1,q=[];if(A){var P=hh.simpleMap(y.xr0,T.r2l),z=hh.simpleMap(y.xr1,T.r2l),N=P[1]-P[0],I=z[1]-z[0];q[0]=(P[0]*(1-x)+x*z[0]-P[0])/(P[1]-P[0])*M,q[2]=M*(1-x+x*I/N),T.range[0]=T.l2r(P[0]*(1-x)+x*z[0]),T.range[1]=T.l2r(P[1]*(1-x)+x*z[1])}else q[0]=0,q[2]=M;if(L){var B=hh.simpleMap(y.yr0,b.r2l),H=hh.simpleMap(y.yr1,b.r2l),Y=B[1]-B[0],G=H[1]-H[0];q[1]=(B[1]*(1-x)+x*H[1]-B[1])/(B[0]-B[1])*S,q[3]=S*(1-x+x*G/Y),b.range[0]=T.l2r(B[0]*(1-x)+x*H[0]),b.range[1]=b.l2r(B[1]*(1-x)+x*H[1])}else q[1]=0,q[3]=S;ph.drawOne(r,T,{skipTitle:!0}),ph.drawOne(r,b,{skipTitle:!0}),ph.redrawComponents(r,[T._id,b._id]);var O=A?M/q[2]:1,X=L?S/q[3]:1,Z=A?q[0]:0,W=L?q[1]:0,ee=A?q[0]/q[2]*M:0,ne=L?q[1]/q[3]*S:0,fe=T._offset-ee,we=b._offset-ne;w.clipRect.call(Bn.setTranslate,Z,W).call(Bn.setScale,1/O,1/X),w.plot.call(Bn.setTranslate,fe,we).call(Bn.setScale,O,X),Bn.setPointGroupScale(w.zoomScalePts,1/O,1/X),Bn.setTextPointsScale(w.zoomScaleTxt,1/O,1/X)}var s;n&&(s=n());function u(){for(var y={},x=0;xa.duration?(u(),h=window.cancelAnimationFrame(g)):h=window.requestAnimationFrame(g)}return c=Date.now(),h=window.requestAnimationFrame(g),Promise.resolve()}});var gh=J(Ua=>{"use strict";var yh=Or(),rz=kr(),qs=Re(),tce=Qt(),ace=lt(),tz=dg().getModuleCalcData,mo=ua(),Pi=(ya(),Xe(ma)),nce=(ns(),Xe(as)),Kr=qs.ensureSingle;function mh(e,r,t){return qs.ensureSingle(e,r,t,function(a){a.datum(t)})}var Es=Pi.zindexSeparator;Ua.name="cartesian";Ua.attr=["xaxis","yaxis"];Ua.idRoot=["x","y"];Ua.idRegex=Pi.idRegex;Ua.attrRegex=Pi.attrRegex;Ua.attributes=kR();Ua.layoutAttributes=Mi();Ua.supplyLayoutDefaults=KR();Ua.transitionAxes=ez();Ua.finalizeSubplots=function(e,r){var t=r._subplots,a=t.xaxis,n=t.yaxis,i=t.cartesian,l=i,o={},s={},u,f,c;for(u=0;u0){var h=d.id;if(h.indexOf(Es)!==-1)continue;h+=Es+(u+1),d=qs.extendFlat({},d,{id:h,plot:n._cartesianlayer.selectAll(".subplot").select("."+h)})}for(var m=[],g,y=0;y1&&(M+=Es+b),T.push(o+M),l=0;l1,c=r.mainplotinfo;if(!r.mainplot||f)if(u)r.xlines=Kr(a,"path","xlines-above"),r.ylines=Kr(a,"path","ylines-above"),r.xaxislayer=Kr(a,"g","xaxislayer-above"),r.yaxislayer=Kr(a,"g","yaxislayer-above");else{if(!l){var d=Kr(a,"g","layer-subplot");r.shapelayer=Kr(d,"g","shapelayer"),r.imagelayer=Kr(d,"g","imagelayer"),c&&f?(r.minorGridlayer=c.minorGridlayer,r.gridlayer=c.gridlayer,r.zerolinelayer=c.zerolinelayer):(r.minorGridlayer=Kr(a,"g","minor-gridlayer"),r.gridlayer=Kr(a,"g","gridlayer"),r.zerolinelayer=Kr(a,"g","zerolinelayer"));var h=Kr(a,"g","layer-between");r.shapelayerBetween=Kr(h,"g","shapelayer"),r.imagelayerBetween=Kr(h,"g","imagelayer"),Kr(a,"path","xlines-below"),Kr(a,"path","ylines-below"),r.overlinesBelow=Kr(a,"g","overlines-below"),Kr(a,"g","xaxislayer-below"),Kr(a,"g","yaxislayer-below"),r.overaxesBelow=Kr(a,"g","overaxes-below")}r.overplot=Kr(a,"g","overplot"),r.plot=Kr(r.overplot,"g",n),c&&f?r.zerolinelayerAbove=c.zerolinelayerAbove:r.zerolinelayerAbove=Kr(a,"g","zerolinelayer-above"),l||(r.xlines=Kr(a,"path","xlines-above"),r.ylines=Kr(a,"path","ylines-above"),r.overlinesAbove=Kr(a,"g","overlines-above"),Kr(a,"g","xaxislayer-above"),Kr(a,"g","yaxislayer-above"),r.overaxesAbove=Kr(a,"g","overaxes-above"),r.xlines=a.select(".xlines-"+o),r.ylines=a.select(".ylines-"+s),r.xaxislayer=a.select(".xaxislayer-"+o),r.yaxislayer=a.select(".yaxislayer-"+s))}else{var m=c.plotgroup,g=n+"-x",y=n+"-y";r.minorGridlayer=c.minorGridlayer,r.gridlayer=c.gridlayer,r.zerolinelayer=c.zerolinelayer,r.zerolinelayerAbove=c.zerolinelayerAbove,Kr(c.overlinesBelow,"path",g),Kr(c.overlinesBelow,"path",y),Kr(c.overaxesBelow,"g",g),Kr(c.overaxesBelow,"g",y),r.plot=Kr(c.overplot,"g",n),Kr(c.overlinesAbove,"path",g),Kr(c.overlinesAbove,"path",y),Kr(c.overaxesAbove,"g",g),Kr(c.overaxesAbove,"g",y),r.xlines=m.select(".overlines-"+o).select("."+g),r.ylines=m.select(".overlines-"+s).select("."+y),r.xaxislayer=m.select(".overaxes-"+o).select("."+g),r.yaxislayer=m.select(".overaxes-"+s).select("."+y)}l||(u||(mh(r.minorGridlayer,"g",r.xaxis._id),mh(r.minorGridlayer,"g",r.yaxis._id),r.minorGridlayer.selectAll("g").map(function(x){return x[0]}).sort(mo.idSort),mh(r.gridlayer,"g",r.xaxis._id),mh(r.gridlayer,"g",r.yaxis._id),r.gridlayer.selectAll("g").map(function(x){return x[0]}).sort(mo.idSort)),r.xlines.style("fill","none").classed("crisp",!0),r.ylines.style("fill","none").classed("crisp",!0))}function iz(e,r){if(e){var t={};e.each(function(s){var u=s[0],f=yh.select(this);f.remove(),lz(u,r),t[u]=!0});for(var a in r._plots)for(var n=r._plots[a],i=n.overlays||[],l=0;l{"use strict";var bh=qn();oz.exports={hasLines:bh.hasLines,hasMarkers:bh.hasMarkers,hasText:bh.hasText,isBubble:bh.isBubble,attributes:As(),layoutAttributes:W2(),supplyDefaults:wP(),crossTraceDefaults:AP(),supplyLayoutDefaults:CP(),calc:qb().calc,crossTraceCalc:jP(),arraysToCalcdata:Ab(),plot:vR(),colorbar:Hb(),formatLabels:pR(),style:Gb().style,styleOnSelect:Gb().styleOnSelect,hoverPoints:_R(),selectPoints:TR(),animatable:!0,moduleType:"trace",name:"scatter",basePlotModule:gh(),categories:["cartesian","svg","symbols","errorBarsOK","showLegend","scatter-like","zoomScale"],meta:{}}});var cz=J((T4e,fz)=>{"use strict";var lce=Or(),oce=Nr(),uz=X5(),jb=Re(),sce=jb.strScale,uce=jb.strRotate,fce=jb.strTranslate;fz.exports=function(r,t,a){var n=r.node(),i=uz[a.arrowhead||0],l=uz[a.startarrowhead||0],o=(a.arrowwidth||1)*(a.arrowsize||1),s=(a.arrowwidth||1)*(a.startarrowsize||1),u=t.indexOf("start")>=0,f=t.indexOf("end")>=0,c=i.backoff*o+a.standoff,d=l.backoff*s+a.startstandoff,h,m,g,y;if(n.nodeName==="line"){h={x:+r.attr("x1"),y:+r.attr("y1")},m={x:+r.attr("x2"),y:+r.attr("y2")};var x=h.x-m.x,w=h.y-m.y;if(g=Math.atan2(w,x),y=g+Math.PI,c&&d&&c+d>Math.sqrt(x*x+w*w)){B();return}if(c){if(c*c>x*x+w*w){B();return}var T=c*Math.cos(g),b=c*Math.sin(g);m.x+=T,m.y+=b,r.attr({x2:m.x,y2:m.y})}if(d){if(d*d>x*x+w*w){B();return}var M=d*Math.cos(g),S=d*Math.sin(g);h.x-=M,h.y-=S,r.attr({x1:h.x,y1:h.y})}}else if(n.nodeName==="path"){var A=n.getTotalLength(),L="";if(A{"use strict";var vz=Or(),Qb=kr(),cce=Qt(),go=Re(),e4=go.strTranslate,Bc=Mt(),Ps=Nr(),Sl=lt(),dz=Si(),r4=Ta(),t4=lo(),Ic=Ci(),vce=mt().arrayEditor,dce=cz();mz.exports={draw:hce,drawOne:hz,drawRaw:pz};function hce(e){var r=e._fullLayout;r._infolayer.selectAll(".annotation").remove();for(var t=0;t2/3?xr="right":xr="center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[xr]}for(var ce=!1,Te=["x","y"],ze=0;ze1)&&(Ce===qe?(Le=De.r2fraction(r["a"+be]),(Le<0||Le>1)&&(ce=!0)):ce=!0),Pe=De._offset+De.r2p(r[be]),he=.5}else{var de=hr==="domain";be==="x"?(re=r[be],Pe=de?De._offset+De._length*re:Pe=o.l+o.w*re):(re=1-r[be],Pe=de?De._offset+De._length*re:Pe=o.t+o.h*re),he=r.showarrow?.5:re}if(r.showarrow){Ae.head=Pe;var xe=r["a"+be];if(Ve=Ue*ge(.5,r.xanchor)-ke*ge(.5,r.yanchor),Ce===qe){var He=Bc.getRefType(Ce);He==="domain"?(be==="y"&&(xe=1-xe),Ae.tail=De._offset+De._length*xe):He==="paper"?be==="y"?(xe=1-xe,Ae.tail=o.t+o.h*xe):Ae.tail=o.l+o.w*xe:Ae.tail=De._offset+De.r2p(xe),Qe=Ve}else Ae.tail=Pe+xe,Qe=Ve+xe;Ae.text=Ae.tail+Ve;var Je=l[be==="x"?"width":"height"];if(qe==="paper"&&(Ae.head=go.constrain(Ae.head,1,Je-1)),Ce==="pixel"){var Ie=-Math.max(Ae.tail-3,Ae.text),Ge=Math.min(Ae.tail+3,Ae.text)-Je;Ie>0?(Ae.tail+=Ie,Ae.text+=Ie):Ge>0&&(Ae.tail-=Ge,Ae.text-=Ge)}Ae.tail+=Ze,Ae.head+=Ze}else Ve=We*ge(he,je),Qe=Ve,Ae.text=Pe+Ve;Ae.text+=Ze,Ve+=Ze,Qe+=Ze,r["_"+be+"padplus"]=We/2+Qe,r["_"+be+"padminus"]=We/2-Qe,r["_"+be+"size"]=We,r["_"+be+"shift"]=Ve}if(ce){A.remove();return}var nr=0,lr=0;if(r.align!=="left"&&(nr=(j-fe)*(r.align==="center"?.5:1)),r.valign!=="top"&&(lr=(_e-we)*(r.valign==="middle"?.5:1)),ee)W.select("svg").attr({x:P+nr-1,y:P+lr}).call(Sl.setClipUrl,N?g:null,e);else{var fr=P+lr-ne.top,Se=P+nr-ne.left;Y.call(r4.positionText,Se,fr).call(Sl.setClipUrl,N?g:null,e)}I.select("rect").call(Sl.setRect,P,P,j,_e),z.call(Sl.setRect,L/2,L/2,ue-L,Me-L),A.call(Sl.setTranslate,Math.round(y.x.text-ue/2),Math.round(y.y.text-Me/2)),T.attr({transform:"rotate("+x+","+y.x.text+","+y.y.text+")"});var Ke=function(pr,xr){w.selectAll(".annotation-arrow-g").remove();var ur=y.x.head,mr=y.y.head,te=y.x.tail+pr,ve=y.y.tail+xr,Fe=y.x.text+pr,Ye=y.y.text+xr,jr=go.rotationXYMatrix(x,Fe,Ye),st=go.apply2DTransform(jr),vt=go.apply2DTransform2(jr),Bt=+z.attr("width"),Lt=+z.attr("height"),wa=Fe-.5*Bt,cn=wa+Bt,ta=Ye-.5*Lt,ln=ta+Lt,An=[[wa,ta,wa,ln],[wa,ln,cn,ln],[cn,ln,cn,ta],[cn,ta,wa,ta]].map(vt);if(!An.reduce(function(gt,Kt){return gt^!!go.segmentsIntersect(ur,mr,ur+1e6,mr+1e6,Kt[0],Kt[1],Kt[2],Kt[3])},!1)){An.forEach(function(gt){var Kt=go.segmentsIntersect(te,ve,ur,mr,gt[0],gt[1],gt[2],gt[3]);Kt&&(te=Kt.x,ve=Kt.y)});var kn=r.arrowwidth,yr=r.arrowcolor,dt=r.arrowside,Qr=w.append("g").style({opacity:Ps.opacity(yr)}).classed("annotation-arrow-g",!0),yt=Qr.append("path").attr("d","M"+te+","+ve+"L"+ur+","+mr).style("stroke-width",kn+"px").call(Ps.stroke,Ps.rgb(yr));if(dce(yt,dt,r),s.annotationPosition&&yt.node().parentNode&&!a){var qt=ur,kt=mr;if(r.standoff){var ut=Math.sqrt(Math.pow(ur-te,2)+Math.pow(mr-ve,2));qt+=r.standoff*(te-ur)/ut,kt+=r.standoff*(ve-mr)/ut}var aa=Qr.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(te-qt)+","+(ve-kt),transform:e4(qt,kt)}).style("stroke-width",kn+6+"px").call(Ps.stroke,"rgba(0,0,0,0)").call(Ps.fill,"rgba(0,0,0,0)"),Un,Yt;Ic.init({element:aa.node(),gd:e,prepFn:function(){var gt=Sl.getTranslate(A);Un=gt.x,Yt=gt.y,n&&n.autorange&&d(n._name+".autorange",!0),i&&i.autorange&&d(i._name+".autorange",!0)},moveFn:function(gt,Kt){var jt=st(Un,Yt),Lo=jt[0]+gt,Rl=jt[1]+Kt;A.call(Sl.setTranslate,Lo,Rl),h("x",yo(n,gt,"x",o,r)),h("y",yo(i,Kt,"y",o,r)),r.axref===r.xref&&h("ax",yo(n,gt,"ax",o,r)),r.ayref===r.yref&&h("ay",yo(i,Kt,"ay",o,r)),Qr.attr("transform",e4(gt,Kt)),T.attr({transform:"rotate("+x+","+Lo+","+Rl+")"})},doneFn:function(){Qb.call("_guiRelayout",e,m());var gt=document.querySelector(".js-notes-box-panel");gt&>.redraw(gt.selectedObj)}})}}};if(r.showarrow&&Ke(0,0),b){var Ne;Ic.init({element:A.node(),gd:e,prepFn:function(){Ne=T.attr("transform")},moveFn:function(pr,xr){var ur="pointer";if(r.showarrow)r.axref===r.xref?h("ax",yo(n,pr,"ax",o,r)):h("ax",r.ax+pr),r.ayref===r.yref?h("ay",yo(i,xr,"ay",o.w,r)):h("ay",r.ay+xr),Ke(pr,xr);else{if(a)return;var mr,te;if(n)mr=yo(n,pr,"x",o,r);else{var ve=r._xsize/o.w,Fe=r.x+(r._xshift-r.xshift)/o.w-ve/2;mr=Ic.align(Fe+pr/o.w,ve,0,1,r.xanchor)}if(i)te=yo(i,xr,"y",o,r);else{var Ye=r._ysize/o.h,jr=r.y-(r._yshift+r.yshift)/o.h-Ye/2;te=Ic.align(jr-xr/o.h,Ye,0,1,r.yanchor)}h("x",mr),h("y",te),(!n||!i)&&(ur=Ic.getCursor(n?.5:mr,i?.5:te,r.xanchor,r.yanchor))}T.attr({transform:e4(pr,xr)+Ne}),t4(A,ur)},clickFn:function(pr,xr){r.captureevents&&e.emit("plotly_clickannotation",S(xr))},doneFn:function(){t4(A),Qb.call("_guiRelayout",e,m());var pr=document.querySelector(".js-notes-box-panel");pr&&pr.redraw(pr.selectedObj)}})}}s.annotationText?Y.call(r4.makeEditable,{delegate:A,gd:e}).call(G).on("edit",function(X){r.text=X,this.call(G),h("text",X),n&&n.autorange&&d(n._name+".autorange",!0),i&&i.autorange&&d(i._name+".autorange",!0),Qb.call("_guiRelayout",e,m())}):Y.call(G)}});var wz=J((k4e,_z)=>{"use strict";var yz=Re(),pce=kr(),gz=mt().arrayEditor;_z.exports={hasClickToShow:mce,onClick:yce};function mce(e,r){var t=xz(e,r);return t.on.length>0||t.explicitOff.length>0}function yce(e,r){var t=xz(e,r),a=t.on,n=t.off.concat(t.explicitOff),i={},l=e._fullLayout.annotations,o,s;if(a.length||n.length){for(o=0;o{"use strict";var a4=Re(),du=Nr();Mz.exports=function(r,t,a,n){n("opacity");var i=n("bgcolor"),l=n("bordercolor"),o=du.opacity(l);n("borderpad");var s=n("borderwidth"),u=n("showarrow");n("text",u?" ":a._dfltTitle.annotation),n("textangle"),a4.coerceFont(n,"font",a.font),n("width"),n("align");var f=n("height");if(f&&n("valign"),u){var c=n("arrowside"),d,h;c.indexOf("end")!==-1&&(d=n("arrowhead"),h=n("arrowsize")),c.indexOf("start")!==-1&&(n("startarrowhead",d),n("startarrowsize",h)),n("arrowcolor",o?t.bordercolor:du.defaultLine),n("arrowwidth",(o&&s||1)*2),n("standoff"),n("startstandoff")}var m=n("hovertext"),g=a.hoverlabel||{};if(m){var y=n("hoverlabel.bgcolor",g.bgcolor||(du.opacity(i)?du.rgb(i):du.defaultLine)),x=n("hoverlabel.bordercolor",g.bordercolor||du.contrast(y)),w=a4.extendFlat({},g.font);w.color||(w.color=x),a4.coerceFont(n,"hoverlabel.font",w)}n("captureevents",!!m)}});var Az=J((S4e,Tz)=>{"use strict";var i4=Re(),Rs=Mt(),gce=Ti(),bce=n4(),xce=au();Tz.exports=function(r,t){gce(r,t,{name:"annotations",handleItemDefaults:_ce})};function _ce(e,r,t){function a(T,b){return i4.coerce(e,r,xce,T,b)}var n=a("visible"),i=a("clicktoshow");if(n||i){bce(e,r,t,a);for(var l=r.showarrow,o=["x","y"],s=[-10,-30],u={_fullLayout:t},f=0;f<2;f++){var c=o[f],d=Rs.coerceRef(e,r,u,c,"","paper");if(d!=="paper"){var h=Rs.getFromId(u,d);h._annIndices.push(r._index)}if(Rs.coercePosition(r,u,a,d,c,.5),l){var m="a"+c,g=Rs.coerceRef(e,r,u,m,"pixel",["pixel","paper"]);g!=="pixel"&&g!==d&&(g=r[m]="pixel");var y=g==="pixel"?s[f]:.4;Rs.coercePosition(r,u,a,g,m,y)}a(c+"anchor"),a(c+"shift")}if(i4.noneOrAll(e,r,["x","y"]),l&&i4.noneOrAll(e,r,["ax","ay"]),i){var x=a("xclick"),w=a("yclick");r._xclick=x===void 0?r.x:Rs.cleanPosition(x,u,r.xref),r._yclick=w===void 0?r.y:Rs.cleanPosition(w,u,r.yref)}}}});var Sz=J((D4e,Cz)=>{"use strict";var l4=Re(),zs=Mt(),wce=xh().draw;Cz.exports=function(r){var t=r._fullLayout,a=l4.filterVisible(t.annotations);if(a.length&&r._fullData.length)return l4.syncOrAsync([wce,Mce],r)};function Mce(e){var r=e._fullLayout;l4.filterVisible(r.annotations).forEach(function(t){var a=zs.getFromId(e,t.xref),n=zs.getFromId(e,t.yref),i=zs.getRefType(t.xref),l=zs.getRefType(t.yref);t._extremes={},i==="range"&&kz(t,a),l==="range"&&kz(t,n)})}function kz(e,r){var t=r._id,a=t.charAt(0),n=e[a],i=e["a"+a],l=e[a+"ref"],o=e["a"+a+"ref"],s=e["_"+a+"padplus"],u=e["_"+a+"padminus"],f={x:1,y:-1}[a]*e[a+"shift"],c=3*e.arrowsize*e.arrowwidth||0,d=c+f,h=c-f,m=3*e.startarrowsize*e.arrowwidth||0,g=m+f,y=m-f,x;if(o===l){var w=zs.findExtremes(r,[r.r2c(n)],{ppadplus:d,ppadminus:h}),T=zs.findExtremes(r,[r.r2c(i)],{ppadplus:Math.max(s,g),ppadminus:Math.max(u,y)});x={min:[w.min[0],T.min[0]],max:[w.max[0],T.max[0]]}}else g=i?g+i:g,y=i?y-i:y,x=zs.findExtremes(r,[r.r2c(n)],{ppadplus:Math.max(s,d,g),ppadminus:Math.max(u,h,y)});e._extremes[t]=x}});var Lz=J((L4e,Dz)=>{"use strict";var Tce=Xr(),Ace=Uv();Dz.exports=function(r,t,a,n){t=t||{};var i=a==="log"&&t.type==="linear",l=a==="linear"&&t.type==="log";if(!(i||l))return;var o=r._fullLayout.annotations,s=t._id.charAt(0),u,f;function c(h){var m=u[h],g=null;i?g=Ace(m,t.range):g=Math.pow(10,m),Tce(g)||(g=null),n(f+h,g)}for(var d=0;d{"use strict";var o4=xh(),qz=wz();Ez.exports={moduleType:"component",name:"annotations",layoutAttributes:au(),supplyLayoutDefaults:Az(),includeBasePlot:xc()("annotations"),calcAutorange:Sz(),draw:o4.draw,drawOne:o4.drawOne,drawRaw:o4.drawRaw,hasClickToShow:qz.hasClickToShow,onClick:qz.onClick,convertCoords:Lz()}});var _h=J((E4e,Rz)=>{"use strict";var pt=au(),kce=Wi().overrideAll,Cce=mt().templatedArray;Rz.exports=kce(Cce("annotation",{visible:pt.visible,x:{valType:"any"},y:{valType:"any"},z:{valType:"any"},ax:{valType:"number"},ay:{valType:"number"},xanchor:pt.xanchor,xshift:pt.xshift,yanchor:pt.yanchor,yshift:pt.yshift,text:pt.text,textangle:pt.textangle,font:pt.font,width:pt.width,height:pt.height,opacity:pt.opacity,align:pt.align,valign:pt.valign,bgcolor:pt.bgcolor,bordercolor:pt.bordercolor,borderpad:pt.borderpad,borderwidth:pt.borderwidth,showarrow:pt.showarrow,arrowcolor:pt.arrowcolor,arrowhead:pt.arrowhead,startarrowhead:pt.startarrowhead,arrowside:pt.arrowside,arrowsize:pt.arrowsize,startarrowsize:pt.startarrowsize,arrowwidth:pt.arrowwidth,standoff:pt.standoff,startstandoff:pt.startstandoff,hovertext:pt.hovertext,hoverlabel:pt.hoverlabel,captureevents:pt.captureevents}),"calc","from-root")});var Fz=J((P4e,zz)=>{"use strict";var s4=Re(),Sce=Mt(),Dce=Ti(),Lce=n4(),qce=_h();zz.exports=function(r,t,a){Dce(r,t,{name:"annotations",handleItemDefaults:Ece,fullLayout:a.fullLayout})};function Ece(e,r,t,a){function n(o,s){return s4.coerce(e,r,qce,o,s)}function i(o){var s=o+"axis",u={_fullLayout:{}};return u._fullLayout[s]=t[s],Sce.coercePosition(r,u,n,o,o,.5)}var l=n("visible");l&&(Lce(e,r,a.fullLayout,n),i("x"),i("y"),i("z"),s4.noneOrAll(e,r,["x","y","z"]),r.xref="x",r.yref="y",r.zref="z",n("xanchor"),n("yanchor"),n("xshift"),n("yshift"),r.showarrow&&(r.axref="pixel",r.ayref="pixel",n("ax",-10),n("ay",-30),s4.noneOrAll(e,r,["ax","ay"])))}});var Hz=J((R4e,Bz)=>{"use strict";var Nz=Re(),Iz=Mt();Bz.exports=function(r){for(var t=r.fullSceneLayout,a=t.annotations,n=0;n{"use strict";function u4(e,r){var t=[0,0,0,0],a,n;for(a=0;a<4;++a)for(n=0;n<4;++n)t[n]+=e[4*a+n]*r[a];return t}function Rce(e,r){var t=u4(e.projection,u4(e.view,u4(e.model,[r[0],r[1],r[2],1])));return t}Oz.exports=Rce});var Gz=J((F4e,Uz)=>{"use strict";var zce=xh().drawRaw,Fce=Yz(),Nce=["x","y","z"];Uz.exports=function(r){for(var t=r.fullSceneLayout,a=r.dataScale,n=t.annotations,i=0;i1){o=!0;break}}o?r.fullLayout._infolayer.select(".annotation-"+r.id+'[data-index="'+i+'"]').remove():(l._pdata=Fce(r.glplot.cameraParams,[t.xaxis.r2l(l.x)*a[0],t.yaxis.r2l(l.y)*a[1],t.zaxis.r2l(l.z)*a[2]]),zce(r.graphDiv,l,i,r.id,l._xa,l._ya))}}});var Wz=J((N4e,Xz)=>{"use strict";var Ice=kr(),Vz=Re();Xz.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:_h()}}},layoutAttributes:_h(),handleDefaults:Fz(),includeBasePlot:Bce,convert:Hz(),draw:Gz()};function Bce(e,r){var t=Ice.subplotsRegistry.gl3d;if(t)for(var a=t.attrRegex,n=Object.keys(e),i=0;i{"use strict";var I4e=(ya(),Xe(ma)),Zz=Ea(),Jz=As().line,Hce=Zi().dash,Ri=oa().extendFlat,Oce=mt().templatedArray,B4e=(gc(),Xe(yc)),hu=yi(),$z=au(),{shapeTexttemplateAttrs:Yce,templatefallbackAttrs:Uce}=Jo(),Gce=A2();Kz.exports=Oce("shape",{visible:Ri({},hu.visible,{editType:"calc+arraydraw"}),showlegend:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},legend:Ri({},hu.legend,{editType:"calc+arraydraw"}),legendgroup:Ri({},hu.legendgroup,{editType:"calc+arraydraw"}),legendgrouptitle:{text:Ri({},hu.legendgrouptitle.text,{editType:"calc+arraydraw"}),font:Zz({editType:"calc+arraydraw"}),editType:"calc+arraydraw"},legendrank:Ri({},hu.legendrank,{editType:"calc+arraydraw"}),legendwidth:Ri({},hu.legendwidth,{editType:"calc+arraydraw"}),type:{valType:"enumerated",values:["circle","rect","path","line"],editType:"calc+arraydraw"},layer:{valType:"enumerated",values:["below","above","between"],dflt:"above",editType:"arraydraw"},xref:Ri({},$z.xref,{arrayOk:!0}),xsizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},xanchor:{valType:"any",editType:"calc+arraydraw"},x0:{valType:"any",editType:"calc+arraydraw"},x1:{valType:"any",editType:"calc+arraydraw"},x0shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},x1shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},yref:Ri({},$z.yref,{arrayOk:!0}),ysizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},yanchor:{valType:"any",editType:"calc+arraydraw"},y0:{valType:"any",editType:"calc+arraydraw"},y1:{valType:"any",editType:"calc+arraydraw"},y0shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},y1shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},path:{valType:"string",editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},line:{color:Ri({},Jz.color,{editType:"arraydraw"}),width:Ri({},Jz.width,{editType:"calc+arraydraw"}),dash:Ri({},Hce,{editType:"arraydraw"}),editType:"calc+arraydraw"},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd",editType:"arraydraw"},editable:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},label:{text:{valType:"string",dflt:"",editType:"arraydraw"},texttemplate:Yce({},{keys:Object.keys(Gce)}),texttemplatefallback:Uce({editType:"arraydraw"}),font:Zz({editType:"calc+arraydraw",colorEditType:"arraydraw"}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"],editType:"arraydraw"},textangle:{valType:"angle",dflt:"auto",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],editType:"calc+arraydraw"},padding:{valType:"number",dflt:3,min:0,editType:"arraydraw"},editType:"arraydraw"},editType:"arraydraw"})});var Qz=J((O4e,jz)=>{"use strict";var pu=Re(),Hn=Mt(),Vce=Ti(),Xce=f4(),Hc=co();jz.exports=function(r,t){Vce(r,t,{name:"shapes",handleItemDefaults:Zce})};function Wce(e,r){return e?"bottom":r.indexOf("top")!==-1?"top":r.indexOf("bottom")!==-1?"bottom":"middle"}function Zce(e,r,t){function a(T,b){return pu.coerce(e,r,Xce,T,b)}r._isShape=!0;var n=a("visible");if(!n)return;var i=a("showlegend");a("legend"),a("legendgroup"),i&&(a("legendwidth"),a("legendgrouptitle.text"),pu.coerceFont(a,"legendgrouptitle.font"),a("legendrank"));var l=a("path"),o=l?"path":"rect",s=a("type",o),u=s!=="path";u&&delete r.path,a("editable"),a("layer"),a("opacity"),a("fillcolor"),a("fillrule");var f=a("line.width");f&&(a("line.color"),a("line.dash"));var c=a("xsizemode"),d=a("ysizemode");let h=[.25,.75],m=[0,10];["x","y"].forEach(T=>{var b=T+"anchor",M=T==="x"?c:d,S={_fullLayout:t},A,L,q,P;let z=T+"ref",N=e[z];if(Array.isArray(N)&&N.length>0){let I=Hc.countDefiningCoords(s,l,T);P=Hn.coerceRefArray(e,r,S,T,void 0,"paper",I),r["_"+T+"refArray"]=!0}else P=Hn.coerceRef(e,r,S,T,void 0,"paper");if(Array.isArray(P))P.forEach(function(I){Hn.getRefType(I)==="range"&&(A=Hn.getFromId(S,I),A&&A._shapeIndices.indexOf(r._index)===-1&&A._shapeIndices.push(r._index))}),u&&[0,1].forEach(function(I){let B=P[I];Hn.getRefType(B)==="range"?(A=Hn.getFromId(S,B),L=Hc.shapePositionToRange(A),q=Hc.rangeToShapePosition(A),(A.type==="category"||A.type==="multicategory")&&a(T+I+"shift")):L=q=pu.identity;let Y=T+I,G=e[Y];if(e[Y]=L(e[Y],!0),M==="pixel"?a(Y,m[I]):Hn.coercePosition(r,S,a,B,Y,h[I]),r[Y]=q(r[Y]),e[Y]=G,I===0&&M==="pixel"){let O=e[b];e[b]=L(e[b],!0),Hn.coercePosition(r,S,a,B,b,.25),r[b]=q(r[b]),e[b]=O}});else{if(Hn.getRefType(P)==="range"?(A=Hn.getFromId(S,P),A._shapeIndices.push(r._index),q=Hc.rangeToShapePosition(A),L=Hc.shapePositionToRange(A),u&&(A.type==="category"||A.type==="multicategory")&&(a(T+"0shift"),a(T+"1shift"))):L=q=pu.identity,u){let B=T+"0",H=T+"1",Y=e[B],G=e[H];e[B]=L(e[B],!0),e[H]=L(e[H],!0),M==="pixel"?(a(B,m[0]),a(H,m[1])):(Hn.coercePosition(r,S,a,P,B,h[0]),Hn.coercePosition(r,S,a,P,H,h[1])),r[B]=q(r[B]),r[H]=q(r[H]),e[B]=Y,e[H]=G}if(M==="pixel"){let B=e[b];e[b]=L(e[b],!0),Hn.coercePosition(r,S,a,P,b,.25),r[b]=q(r[b]),e[b]=B}}}),u&&pu.noneOrAll(e,r,["x0","x1","y0","y1"]);var g=s==="line",y,x;if(u&&(y=a("label.texttemplate"),a("label.texttemplatefallback")),y||(x=a("label.text")),x||y){a("label.textangle");var w=a("label.textposition",g?"middle":"middle center");a("label.xanchor"),a("label.yanchor",Wce(g,w)),a("label.padding"),pu.coerceFont(a,"label.font",t.font)}}});var tF=J((Y4e,rF)=>{"use strict";var Jce=Nr(),eF=Re();function $ce(e,r){return e?"bottom":r.indexOf("top")!==-1?"top":r.indexOf("bottom")!==-1?"bottom":"middle"}rF.exports=function(r,t,a){a("newshape.visible"),a("newshape.name"),a("newshape.showlegend"),a("newshape.legend"),a("newshape.legendwidth"),a("newshape.legendgroup"),a("newshape.legendgrouptitle.text"),eF.coerceFont(a,"newshape.legendgrouptitle.font"),a("newshape.legendrank"),a("newshape.drawdirection"),a("newshape.layer"),a("newshape.fillcolor"),a("newshape.fillrule"),a("newshape.opacity");var n=a("newshape.line.width");if(n){var i=(r||{}).plot_bgcolor||"#FFF";a("newshape.line.color",Jce.contrast(i)),a("newshape.line.dash")}var l=r.dragmode==="drawline",o=a("newshape.label.text"),s=a("newshape.label.texttemplate");if(a("newshape.label.texttemplatefallback"),o||s){a("newshape.label.textangle");var u=a("newshape.label.textposition",l?"middle":"middle center");a("newshape.label.xanchor"),a("newshape.label.yanchor",$ce(l,u)),a("newshape.label.padding"),eF.coerceFont(a,"newshape.label.font",t.font)}a("activeshape.fillcolor"),a("activeshape.opacity")}});var uF=J((U4e,sF)=>{"use strict";var c4=Re(),ci=Mt(),cl=(Kf(),Xe($f)),v4=co();sF.exports=function(r){var t=r._fullLayout,a=c4.filterVisible(t.shapes);if(!(!a.length||!r._fullData.length))for(var n=0;n{l=ci.getFromId(r,c),i._extremes[l._id]=ci.findExtremes(l,d,nF(i))})}else i.xref!=="paper"&&s!=="domain"&&(l=ci.getFromId(r,i.xref),o=lF(l,i,cl.paramIsX),o&&(i._extremes[l._id]=ci.findExtremes(l,o,nF(i))));if(u==="array"){let f=aF(r,i,"y");Object.entries(f).forEach(([c,d])=>{l=ci.getFromId(r,c),i._extremes[l._id]=ci.findExtremes(l,d,iF(i))})}else i.yref!=="paper"&&u!=="domain"&&(l=ci.getFromId(r,i.yref),o=lF(l,i,cl.paramIsY),o&&(i._extremes[l._id]=ci.findExtremes(l,o,iF(i))))}};function aF(e,r,t){let a=r[t+"ref"],n=t==="x"?cl.paramIsX:cl.paramIsY;function i(c,d){c==="paper"||ci.getRefType(c)==="domain"||(l[c]||(l[c]=[]),l[c].push(d))}let l={};if(r.type==="path"&&r.path){let c=r.path.match(cl.segmentRE)||[];for(var o=0,s=0;sm&&(i(a[o],g[m]),o++)}}else i(a[0],r[t+"0"]),i(a[1],r[t+"1"]);let u={};for(let c in l){let d=ci.getFromId(e,c);if(d){var f=d.type==="category"||d.type==="multicategory"?d.r2c:d.d2c;d.type==="date"&&(f=v4.decodeDate(f)),u[d._id]=l[c].map(f)}}return u}function nF(e){return oF(e.line.width,e.xsizemode,e.x0,e.x1,e.path,!1)}function iF(e){return oF(e.line.width,e.ysizemode,e.y0,e.y1,e.path,!0)}function oF(e,r,t,a,n,i){var l=e/2,o=i;if(r==="pixel"){var s=n?v4.extractPathCoords(n,i?cl.paramIsY:cl.paramIsX):[t,a],u=c4.aggNums(Math.max,null,s),f=c4.aggNums(Math.min,null,s),c=f<0?Math.abs(f)+l:l,d=u>0?u+l:l;return{ppad:l,ppadplus:o?c:d,ppadminus:o?d:c}}else return{ppad:l}}function lF(e,r,t){var a=e._id.charAt(0)==="x"?"x":"y",n=e.type==="category"||e.type==="multicategory",i,l,o=0,s=0,u=n?e.r2c:e.d2c,f=r[a+"sizemode"]==="scaled";if(f?(i=r[a+"0"],l=r[a+"1"],n&&(o=r[a+"0shift"],s=r[a+"1shift"])):(i=r[a+"anchor"],l=r[a+"anchor"]),i!==void 0)return[u(i)+o,u(l)+s];if(r.path){var c=1/0,d=-1/0,h=r.path.match(cl.segmentRE),m,g,y,x,w;for(e.type==="date"&&(u=v4.decodeDate(u)),m=0;md&&(d=w)));if(d>=c)return[c,d]}}});var vF=J((G4e,cF)=>{"use strict";var fF=ud();cF.exports={moduleType:"component",name:"shapes",layoutAttributes:f4(),supplyLayoutDefaults:Qz(),supplyDrawNewShapeDefaults:tF(),includeBasePlot:xc()("shapes"),calcAutorange:uF(),draw:fF.draw,drawOne:fF.drawOne}});var d4=J((X4e,hF)=>{"use strict";var dF=(ya(),Xe(ma)),Kce=mt().templatedArray,V4e=(gc(),Xe(yc));hF.exports=Kce("image",{visible:{valType:"boolean",dflt:!0,editType:"arraydraw"},source:{valType:"string",editType:"arraydraw"},layer:{valType:"enumerated",values:["below","above"],dflt:"above",editType:"arraydraw"},sizex:{valType:"number",dflt:0,editType:"arraydraw"},sizey:{valType:"number",dflt:0,editType:"arraydraw"},sizing:{valType:"enumerated",values:["fill","contain","stretch"],dflt:"contain",editType:"arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},x:{valType:"any",dflt:0,editType:"arraydraw"},y:{valType:"any",dflt:0,editType:"arraydraw"},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left",editType:"arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],dflt:"top",editType:"arraydraw"},xref:{valType:"enumerated",values:["paper",dF.idRegex.x.toString()],dflt:"paper",editType:"arraydraw"},yref:{valType:"enumerated",values:["paper",dF.idRegex.y.toString()],dflt:"paper",editType:"arraydraw"},editType:"arraydraw"})});var mF=J((W4e,pF)=>{"use strict";var jce=Re(),h4=Mt(),Qce=Ti(),eve=d4(),rve="images";pF.exports=function(r,t){var a={name:rve,handleItemDefaults:tve};Qce(r,t,a)};function tve(e,r,t){function a(d,h){return jce.coerce(e,r,eve,d,h)}var n=a("source"),i=a("visible",!!n);if(!i)return r;a("layer"),a("xanchor"),a("yanchor"),a("sizex"),a("sizey"),a("sizing"),a("opacity");for(var l={_fullLayout:t},o=["x","y"],s=0;s<2;s++){var u=o[s],f=h4.coerceRef(e,r,l,u,"paper",void 0);if(f!=="paper"){var c=h4.getFromId(l,f);c._imgIndices.push(r._index)}h4.coercePosition(r,l,a,f,u,0)}return r}});var xF=J((Z4e,bF)=>{"use strict";var yF=Or(),ave=lt(),mu=Mt(),gF=ua(),nve=(ns(),Xe(as));bF.exports=function(r){var t=r._fullLayout,a=[],n={},i=[],l,o;for(o=0;o{"use strict";var _F=Xr(),ive=Uv();wF.exports=function(r,t,a,n){t=t||{};var i=a==="log"&&t.type==="linear",l=a==="linear"&&t.type==="log";if(i||l){for(var o=r._fullLayout.images,s=t._id.charAt(0),u,f,c=0;c{"use strict";TF.exports={moduleType:"component",name:"images",layoutAttributes:d4(),supplyLayoutDefaults:mF(),includeBasePlot:xc()("images"),draw:xF(),convertCoords:MF()}});var wh={};Rt(wh,{activeColor:()=>Lve,arrowOffsetX:()=>Cve,arrowPadX:()=>wve,arrowSymbol:()=>Eve,autoMarginIdRoot:()=>yve,blankHeaderOpts:()=>gve,buttonClassName:()=>dve,containerClassName:()=>ove,dropdownButtonClassName:()=>vve,dropdownButtonGroupClassName:()=>cve,gapButton:()=>Dve,gapButtonHeader:()=>Sve,headerArrowClassName:()=>fve,headerClassName:()=>uve,headerGroupClassName:()=>sve,hoverColor:()=>qve,itemRectClassName:()=>hve,itemTextClassName:()=>pve,menuIndexAttrName:()=>mve,minHeight:()=>xve,minWidth:()=>bve,name:()=>lve,rx:()=>Mve,ry:()=>Tve,textOffsetX:()=>Ave,textOffsetY:()=>kve,textPadX:()=>_ve});var lve,ove,sve,uve,fve,cve,vve,dve,hve,pve,mve,yve,gve,bve,xve,_ve,wve,Mve,Tve,Ave,kve,Cve,Sve,Dve,Lve,qve,Eve,Mh=Pt(()=>{"use strict";lve="updatemenus",ove="updatemenu-container",sve="updatemenu-header-group",uve="updatemenu-header",fve="updatemenu-header-arrow",cve="updatemenu-dropdown-button-group",vve="updatemenu-dropdown-button",dve="updatemenu-button",hve="updatemenu-item-rect",pve="updatemenu-item-text",mve="updatemenu-active-index",yve="updatemenu-",gve={label:" "},bve=30,xve=30,_ve=24,wve=16,Mve=2,Tve=2,Ave=12,kve=3,Cve=4,Sve=5,Dve=2,Lve="#F4FAFF",qve="#F4FAFF",Eve={left:"\u25C4",right:"\u25BA",up:"\u25B2",down:"\u25BC"}});var p4=J((K4e,CF)=>{"use strict";var Pve=Ea(),Rve=Xi(),zve=oa().extendFlat,Fve=Wi().overrideAll,Nve=k2(),kF=mt().templatedArray,Ive=kF("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}});CF.exports=Fve(kF("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:Ive,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:zve(Nve({editType:"arraydraw"}),{}),font:Pve({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:Rve.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")});var qF=J((j4e,LF)=>{"use strict";var Th=Re(),SF=Ti(),DF=p4(),Bve=(Mh(),Xe(wh)),Hve=Bve.name,Ove=DF.buttons;LF.exports=function(r,t){var a={name:Hve,handleItemDefaults:Yve};SF(r,t,a)};function Yve(e,r,t){function a(l,o){return Th.coerce(e,r,DF,l,o)}var n=SF(e,r,{name:"buttons",handleItemDefaults:Uve}),i=a("visible",n.length>0);i&&(a("active"),a("direction"),a("type"),a("showactive"),a("x"),a("y"),Th.noneOrAll(e,r,["x","y"]),a("xanchor"),a("yanchor"),a("pad.t"),a("pad.r"),a("pad.b"),a("pad.l"),Th.coerceFont(a,"font",t.font),a("bgcolor",t.paper_bgcolor),a("bordercolor"),a("borderwidth"))}function Uve(e,r){function t(n,i){return Th.coerce(e,r,Ove,n,i)}var a=t("visible",e.method==="skip"||Array.isArray(e.args));a&&(t("method"),t("args"),t("args2"),t("label"),t("execute"))}});var RF=J((Q4e,PF)=>{"use strict";PF.exports=Dt;var zi=Or(),EF=Nr(),yu=lt(),Ah=Re();function Dt(e,r,t){this.gd=e,this.container=r,this.id=t,this.position=null,this.translateX=null,this.translateY=null,this.hbar=null,this.vbar=null,this.bg=this.container.selectAll("rect.scrollbox-bg").data([0]),this.bg.exit().on(".drag",null).on("wheel",null).remove(),this.bg.enter().append("rect").classed("scrollbox-bg",!0).style("pointer-events","all").attr({opacity:0,x:0,y:0,width:0,height:0})}Dt.barWidth=2;Dt.barLength=20;Dt.barRadius=2;Dt.barPad=1;Dt.barColor="#808BA4";Dt.prototype.enable=function(r,t,a){var n=this.gd._fullLayout,i=n.width,l=n.height;this.position=r;var o=this.position.l,s=this.position.w,u=this.position.t,f=this.position.h,c=this.position.direction,d=c==="down",h=c==="left",m=c==="right",g=c==="up",y=s,x=f,w,T,b,M;!d&&!h&&!m&&!g&&(this.position.direction="down",d=!0);var S=d||g;S?(w=o,T=w+y,d?(b=u,M=Math.min(b+x,l),x=M-b):(M=u+x,b=Math.max(M-x,0),x=M-b)):(b=u,M=b+x,h?(T=o+y,w=Math.max(T-y,0),y=T-w):(w=o,T=Math.min(w+y,i),y=T-w)),this._box={l:w,t:b,w:y,h:x};var A=s>y,L=Dt.barLength+2*Dt.barPad,q=Dt.barWidth+2*Dt.barPad,P=o,z=u+f;z+q>l&&(z=l-q);var N=this.container.selectAll("rect.scrollbar-horizontal").data(A?[0]:[]);N.exit().on(".drag",null).remove(),N.enter().append("rect").classed("scrollbar-horizontal",!0).call(EF.fill,Dt.barColor),A?(this.hbar=N.attr({rx:Dt.barRadius,ry:Dt.barRadius,x:P,y:z,width:L,height:q}),this._hbarXMin=P+L/2,this._hbarTranslateMax=y-L):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var I=f>x,B=Dt.barWidth+2*Dt.barPad,H=Dt.barLength+2*Dt.barPad,Y=o+s,G=u;Y+B>i&&(Y=i-B);var O=this.container.selectAll("rect.scrollbar-vertical").data(I?[0]:[]);O.exit().on(".drag",null).remove(),O.enter().append("rect").classed("scrollbar-vertical",!0).call(EF.fill,Dt.barColor),I?(this.vbar=O.attr({rx:Dt.barRadius,ry:Dt.barRadius,x:Y,y:G,width:B,height:H}),this._vbarYMin=G+H/2,this._vbarTranslateMax=x-H):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var X=this.id,Z=w-.5,W=I?T+B+.5:T+.5,ee=b-.5,ne=A?M+q+.5:M+.5,fe=n._topdefs.selectAll("#"+X).data(A||I?[0]:[]);if(fe.exit().remove(),fe.enter().append("clipPath").attr("id",X).append("rect"),A||I?(this._clipRect=fe.select("rect").attr({x:Math.floor(Z),y:Math.floor(ee),width:Math.ceil(W)-Math.floor(Z),height:Math.ceil(ne)-Math.floor(ee)}),this.container.call(yu.setClipUrl,X,this.gd),this.bg.attr({x:o,y:u,width:s,height:f})):(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(yu.setClipUrl,null),delete this._clipRect),A||I){var we=zi.behavior.drag().on("dragstart",function(){zi.event.sourceEvent.preventDefault()}).on("drag",this._onBoxDrag.bind(this));this.container.on("wheel",null).on("wheel",this._onBoxWheel.bind(this)).on(".drag",null).call(we);var j=zi.behavior.drag().on("dragstart",function(){zi.event.sourceEvent.preventDefault(),zi.event.sourceEvent.stopPropagation()}).on("drag",this._onBarDrag.bind(this));A&&this.hbar.on(".drag",null).call(j),I&&this.vbar.on(".drag",null).call(j)}this.setTranslate(t,a)};Dt.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(yu.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)};Dt.prototype._onBoxDrag=function(){var r=this.translateX,t=this.translateY;this.hbar&&(r-=zi.event.dx),this.vbar&&(t-=zi.event.dy),this.setTranslate(r,t)};Dt.prototype._onBoxWheel=function(){var r=this.translateX,t=this.translateY;this.hbar&&(r+=zi.event.deltaY),this.vbar&&(t+=zi.event.deltaY),this.setTranslate(r,t)};Dt.prototype._onBarDrag=function(){var r=this.translateX,t=this.translateY;if(this.hbar){var a=r+this._hbarXMin,n=a+this._hbarTranslateMax,i=Ah.constrain(zi.event.x,a,n),l=(i-a)/(n-a),o=this.position.w-this._box.w;r=l*o}if(this.vbar){var s=t+this._vbarYMin,u=s+this._vbarTranslateMax,f=Ah.constrain(zi.event.y,s,u),c=(f-s)/(u-s),d=this.position.h-this._box.h;t=c*d}this.setTranslate(r,t)};Dt.prototype.setTranslate=function(r,t){var a=this.position.w-this._box.w,n=this.position.h-this._box.h;if(r=Ah.constrain(r||0,0,a),t=Ah.constrain(t||0,0,n),this.translateX=r,this.translateY=t,this.container.call(yu.setTranslate,this._box.l-this.position.l-r,this._box.t-this.position.t-t),this._clipRect&&this._clipRect.attr({x:Math.floor(this.position.l+r-.5),y:Math.floor(this.position.t+t-.5)}),this.hbar){var i=r/a;this.hbar.call(yu.setTranslate,r+i*this._hbarTranslateMax,t)}if(this.vbar){var l=t/n;this.vbar.call(yu.setTranslate,r,t+l*this._vbarTranslateMax)}}});var GF=J((e6e,UF)=>{"use strict";var gu=Or(),Oc=Qt(),Yc=Nr(),bu=lt(),On=Re(),kh=Ta(),Gve=mt().arrayEditor,FF=(Oa(),Xe(Ha)).LINE_SPACING,Cr=(Mh(),Xe(wh)),Vve=RF();UF.exports=function(r){var t=r._fullLayout,a=On.filterVisible(t[Cr.name]);function n(d){Oc.autoMargin(r,OF(d))}var i=t._menulayer.selectAll("g."+Cr.containerClassName).data(a.length>0?[0]:[]);if(i.enter().append("g").classed(Cr.containerClassName,!0).style("cursor","pointer"),i.exit().each(function(){gu.select(this).selectAll("g."+Cr.headerGroupClassName).each(n)}).remove(),a.length!==0){var l=i.selectAll("g."+Cr.headerGroupClassName).data(a,Xve);l.enter().append("g").classed(Cr.headerGroupClassName,!0);for(var o=On.ensureSingle(i,"g",Cr.dropdownButtonGroupClassName,function(d){d.style("pointer-events","all")}),s=0;s{"use strict";var Qve=(Mh(),Xe(wh));VF.exports={moduleType:"component",name:Qve.name,layoutAttributes:p4(),supplyLayoutDefaults:qF(),draw:GF()}});var Gc={};Rt(Gc,{arrowOffsetX:()=>b2e,autoMarginIdRoot:()=>p2e,containerClassName:()=>r2e,currentValueClass:()=>v2e,currentValueInset:()=>X2e,currentValuePadding:()=>V2e,gripBgActiveColor:()=>z2e,gripBgColor:()=>R2e,gripBorder:()=>q2e,gripBorderColor:()=>P2e,gripBorderWidth:()=>E2e,gripHeight:()=>L2e,gripRadius:()=>S2e,gripRectClass:()=>l2e,gripWidth:()=>D2e,groupClassName:()=>t2e,inputAreaClass:()=>a2e,inputProxyClass:()=>s2e,labelClass:()=>c2e,labelGroupClass:()=>f2e,labelOffset:()=>N2e,labelPadding:()=>F2e,labelsClass:()=>u2e,menuIndexAttrName:()=>h2e,minHeight:()=>y2e,minWidth:()=>m2e,minorTickColor:()=>U2e,minorTickLength:()=>G2e,minorTickOffset:()=>Y2e,name:()=>e2e,railBgColor:()=>A2e,railBorder:()=>w2e,railBorderColor:()=>T2e,railBorderWidth:()=>M2e,railHeight:()=>d2e,railInset:()=>k2e,railRadius:()=>x2e,railRectClass:()=>n2e,railTouchRectClass:()=>i2e,railWidth:()=>_2e,stepInset:()=>C2e,textPadX:()=>g2e,tickColor:()=>B2e,tickLength:()=>O2e,tickOffset:()=>H2e,tickRectClass:()=>o2e,tickWidth:()=>I2e});var e2e,r2e,t2e,a2e,n2e,i2e,l2e,o2e,s2e,u2e,f2e,c2e,v2e,d2e,h2e,p2e,m2e,y2e,g2e,b2e,x2e,_2e,w2e,M2e,T2e,A2e,k2e,C2e,S2e,D2e,L2e,q2e,E2e,P2e,R2e,z2e,F2e,N2e,I2e,B2e,H2e,O2e,Y2e,U2e,G2e,V2e,X2e,Vc=Pt(()=>{"use strict";e2e="sliders",r2e="slider-container",t2e="slider-group",a2e="slider-input-area",n2e="slider-rail-rect",i2e="slider-rail-touch-rect",l2e="slider-grip-rect",o2e="slider-tick-rect",s2e="slider-input-proxy",u2e="slider-labels",f2e="slider-label-group",c2e="slider-label",v2e="slider-current-value",d2e=5,h2e="slider-active-index",p2e="slider-",m2e=30,y2e=30,g2e=40,b2e=4,x2e=2,_2e=5,w2e=4,M2e=1,T2e="#bec8d9",A2e="#f8fafc",k2e=8,C2e=10,S2e=10,D2e=20,L2e=20,q2e=20,E2e=1,P2e="#bec8d9",R2e="#f6f8fa",z2e="#dbdde0",F2e=8,N2e=0,I2e=1,B2e="#333",H2e=25,O2e=7,Y2e=25,U2e="#333",G2e=4,V2e=8,X2e=0});var b4=J((t6e,JF)=>{"use strict";var WF=Ea(),W2e=k2(),Z2e=oa().extendDeepAll,J2e=Wi().overrideAll,$2e=gf(),ZF=mt().templatedArray,Fs=(Vc(),Xe(Gc)),K2e=ZF("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}});JF.exports=J2e(ZF("slider",{visible:{valType:"boolean",dflt:!0},active:{valType:"number",min:0,dflt:0},steps:K2e,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:Z2e(W2e({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:$2e.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:WF({})},font:WF({}),activebgcolor:{valType:"color",dflt:Fs.gripBgActiveColor},bgcolor:{valType:"color",dflt:Fs.railBgColor},bordercolor:{valType:"color",dflt:Fs.railBorderColor},borderwidth:{valType:"number",min:0,dflt:Fs.railBorderWidth},ticklen:{valType:"number",min:0,dflt:Fs.tickLength},tickcolor:{valType:"color",dflt:Fs.tickColor},tickwidth:{valType:"number",min:0,dflt:1},minorticklen:{valType:"number",min:0,dflt:Fs.minorTickLength}}),"arraydraw","from-root")});var QF=J((a6e,jF)=>{"use strict";var xu=Re(),$F=Ti(),KF=b4(),j2e=(Vc(),Xe(Gc)),Q2e=j2e.name,e1e=KF.steps;jF.exports=function(r,t){$F(r,t,{name:Q2e,handleItemDefaults:r1e})};function r1e(e,r,t){function a(c,d){return xu.coerce(e,r,KF,c,d)}for(var n=$F(e,r,{name:"steps",handleItemDefaults:t1e}),i=0,l=0;l{"use strict";var Fi=Or(),Ch=Qt(),bo=Nr(),Ni=lt(),Yn=Re(),a1e=Yn.strTranslate,Xc=Ta(),n1e=mt().arrayEditor,Ir=(Vc(),Xe(Gc)),w4=(Oa(),Xe(Ha)),tN=w4.LINE_SPACING,x4=w4.FROM_TL,_4=w4.FROM_BR;sN.exports=function(r){var t=r._context.staticPlot,a=r._fullLayout,n=i1e(a,r),i=a._infolayer.selectAll("g."+Ir.containerClassName).data(n.length>0?[0]:[]);i.enter().append("g").classed(Ir.containerClassName,!0).style("cursor",t?null:"ew-resize");function l(f){f._commandObserver&&(f._commandObserver.remove(),delete f._commandObserver),Ch.autoMargin(r,aN(f))}if(i.exit().each(function(){Fi.select(this).selectAll("g."+Ir.groupClassName).each(l)}).remove(),n.length!==0){var o=i.selectAll("g."+Ir.groupClassName).data(n,l1e);o.enter().append("g").classed(Ir.groupClassName,!0),o.exit().each(l).remove();for(var s=0;s0&&(o=o.transition().duration(r.transition.duration).ease(r.transition.easing)),o.attr("transform",a1e(l-Ir.gripWidth*.5,r._dims.currentValueTotalHeight))}}function M4(e,r){var t=e._dims;return t.inputAreaStart+Ir.stepInset+(t.inputAreaLength-2*Ir.stepInset)*Math.min(1,Math.max(0,r))}function rN(e,r){var t=e._dims;return Math.min(1,Math.max(0,(r-Ir.stepInset-t.inputAreaStart)/(t.inputAreaLength-2*Ir.stepInset-2*t.inputAreaStart)))}function d1e(e,r,t){var a=t._dims,n=Yn.ensureSingle(e,"rect",Ir.railTouchRectClass,function(i){i.call(lN,r,e,t).style("pointer-events","all")});n.attr({width:a.inputAreaLength,height:Math.max(a.inputAreaWidth,Ir.tickOffset+t.ticklen+a.labelHeight)}).call(bo.fill,t.bgcolor).attr("opacity",0),Ni.setTranslate(n,0,a.currentValueTotalHeight)}function h1e(e,r){var t=r._dims,a=t.inputAreaLength-Ir.railInset*2,n=Yn.ensureSingle(e,"rect",Ir.railRectClass);n.attr({width:a,height:Ir.railWidth,rx:Ir.railRadius,ry:Ir.railRadius,"shape-rendering":"crispEdges"}).call(bo.stroke,r.bordercolor).call(bo.fill,r.bgcolor).style("stroke-width",r.borderwidth+"px"),Ni.setTranslate(n,Ir.railInset,(t.inputAreaWidth-Ir.railWidth)*.5+t.currentValueTotalHeight)}});var cN=J((i6e,fN)=>{"use strict";var p1e=(Vc(),Xe(Gc));fN.exports={moduleType:"component",name:p1e.name,layoutAttributes:b4(),supplyLayoutDefaults:QF(),draw:uN()}});var Dh=J((l6e,dN)=>{"use strict";var vN=Xi();dN.exports={bgcolor:{valType:"color",dflt:vN.background,editType:"plot"},bordercolor:{valType:"color",dflt:vN.defaultLine,editType:"plot"},borderwidth:{valType:"integer",dflt:0,min:0,editType:"plot"},autorange:{valType:"boolean",dflt:!0,editType:"calc",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},range:{valType:"info_array",items:[{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}},{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}}],editType:"calc",impliedEdits:{autorange:!1}},thickness:{valType:"number",dflt:.15,min:0,max:1,editType:"plot"},visible:{valType:"boolean",dflt:!0,editType:"calc"},editType:"calc"}});var T4=J((o6e,hN)=>{"use strict";hN.exports={_isSubplotObj:!0,rangemode:{valType:"enumerated",values:["auto","fixed","match"],dflt:"match",editType:"calc"},range:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},editType:"calc"}});var Lh={};Rt(Lh,{bgClassName:()=>g1e,containerClassName:()=>y1e,extraPad:()=>O1e,grabAreaCursor:()=>F1e,grabAreaFill:()=>z1e,grabAreaMaxClassName:()=>C1e,grabAreaMinClassName:()=>T1e,grabAreaWidth:()=>N1e,grabberMaxClassName:()=>k1e,grabberMinClassName:()=>M1e,handleMaxClassName:()=>S1e,handleMinClassName:()=>A1e,handleRadius:()=>B1e,handleStrokeWidth:()=>H1e,handleWidth:()=>I1e,maskColor:()=>q1e,maskMaxClassName:()=>_1e,maskMaxOppAxisClassName:()=>L1e,maskMinClassName:()=>x1e,maskMinOppAxisClassName:()=>D1e,maskOppAxisColor:()=>E1e,name:()=>m1e,rangePlotClassName:()=>b1e,slideBoxClassName:()=>w1e,slideBoxCursor:()=>R1e,slideBoxFill:()=>P1e});var m1e,y1e,g1e,b1e,x1e,_1e,w1e,M1e,T1e,A1e,k1e,C1e,S1e,D1e,L1e,q1e,E1e,P1e,R1e,z1e,F1e,N1e,I1e,B1e,H1e,O1e,qh=Pt(()=>{"use strict";m1e="rangeslider",y1e="rangeslider-container",g1e="rangeslider-bg",b1e="rangeslider-rangeplot",x1e="rangeslider-mask-min",_1e="rangeslider-mask-max",w1e="rangeslider-slidebox",M1e="rangeslider-grabber-min",T1e="rangeslider-grabarea-min",A1e="rangeslider-handle-min",k1e="rangeslider-grabber-max",C1e="rangeslider-grabarea-max",S1e="rangeslider-handle-max",D1e="rangeslider-mask-min-opp-axis",L1e="rangeslider-mask-max-opp-axis",q1e="rgba(0,0,0,0.4)",E1e="rgba(0,0,0,0.2)",P1e="transparent",R1e="ew-resize",z1e="transparent",F1e="col-resize",N1e=10,I1e=4,B1e=1,H1e=1,O1e=15});var yN=J(Ph=>{"use strict";var Y1e=ua(),U1e=Ta(),pN=(qh(),Xe(Lh)),G1e=(Oa(),Xe(Ha)).LINE_SPACING,Eh=pN.name;function mN(e){var r=e&&e[Eh];return r&&r.visible}Ph.isVisible=mN;Ph.makeData=function(e){for(var r=Y1e.list({_fullLayout:e},"x",!0),t=e.margin,a=[],n=0;n{"use strict";var Rh=Re(),gN=mt(),bN=ua(),V1e=Dh(),X1e=T4();xN.exports=function(r,t,a){var n=r[a],i=t[a];if(!(n.rangeslider||t._requestRangeslider[i._id]))return;Rh.isPlainObject(n.rangeslider)||(n.rangeslider={});var l=n.rangeslider,o=gN.newContainer(i,"rangeslider");function s(M,S){return Rh.coerce(l,o,V1e,M,S)}var u,f;function c(M,S){return Rh.coerce(u,f,X1e,M,S)}var d=s("visible");if(d){s("bgcolor",t.plot_bgcolor),s("bordercolor"),s("borderwidth"),s("thickness"),s("autorange",!i.isValidRange(l.range)),s("range");var h=t._subplots;if(h)for(var m=h.cartesian.filter(function(M){return M.slice(0,Math.max(0,M.indexOf("y")))===bN.name2id(a)}).map(function(M){return M.slice(M.indexOf("y"),M.length)}),g=Rh.simpleMap(m,bN.id2name),y=0;y{"use strict";var W1e=ua().list,Z1e=Ff().getAutoRange,J1e=(qh(),Xe(Lh));wN.exports=function(r){for(var t=W1e(r,"x",!0),a=0;a{"use strict";var zh=Or(),$1e=kr(),K1e=Qt(),Ot=Re(),Fh=Ot.strTranslate,AN=lt(),xo=Nr(),j1e=Rf(),Q1e=gh(),A4=ua(),ede=Ci(),rde=lo(),Ur=(qh(),Xe(Lh));kN.exports=function(e){for(var r=e._fullLayout,t=r._rangeSliderData,a=0;a=O.max)Y=z[G+1];else if(H=O.pmax)Y=z[G+1];else if(H0?e.touches[0].clientX:0}function tde(e,r,t,a){if(r._context.staticPlot)return;var n=e.select("rect."+Ur.slideBoxClassName).node(),i=e.select("rect."+Ur.grabAreaMinClassName).node(),l=e.select("rect."+Ur.grabAreaMaxClassName).node();function o(){var s=zh.event,u=s.target,f=TN(s),c=f-e.node().getBoundingClientRect().left,d=a.d2p(t._rl[0]),h=a.d2p(t._rl[1]),m=ede.coverSlip();this.addEventListener("touchmove",g),this.addEventListener("touchend",y),m.addEventListener("mousemove",g),m.addEventListener("mouseup",y);function g(x){var w=TN(x),T=+w-f,b,M,S;switch(u){case n:if(S="ew-resize",d+T>t._length||h+T<0)return;b=d+T,M=h+T;break;case i:if(S="col-resize",d+T>t._length)return;b=d+T,M=h;break;case l:if(S="col-resize",h+T<0)return;b=d,M=h+T;break;default:S="ew-resize",b=c,M=c+T;break}if(M{"use strict";var vde=Re(),dde=Dh(),hde=T4(),k4=yN();SN.exports={moduleType:"component",name:"rangeslider",schema:{subplots:{xaxis:{rangeslider:vde.extendFlat({},dde,{yaxis:hde})}}},layoutAttributes:Dh(),handleDefaults:_N(),calcAutorange:MN(),draw:CN(),isVisible:k4.isVisible,makeData:k4.makeData,autoMarginOpts:k4.autoMarginOpts}});var Nh=J((d6e,qN)=>{"use strict";var pde=Ea(),LN=Xi(),mde=mt().templatedArray,yde=mde("button",{visible:{valType:"boolean",dflt:!0,editType:"plot"},step:{valType:"enumerated",values:["month","year","day","hour","minute","second","all"],dflt:"month",editType:"plot"},stepmode:{valType:"enumerated",values:["backward","todate"],dflt:"backward",editType:"plot"},count:{valType:"number",min:0,dflt:1,editType:"plot"},label:{valType:"string",editType:"plot"},editType:"plot"});qN.exports={visible:{valType:"boolean",editType:"plot"},buttons:yde,x:{valType:"number",min:-2,max:3,editType:"plot"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"plot"},y:{valType:"number",min:-2,max:3,editType:"plot"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"bottom",editType:"plot"},font:pde({editType:"plot"}),bgcolor:{valType:"color",dflt:LN.lightLine,editType:"plot"},activecolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:LN.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"}});var C4={};Rt(C4,{darkAmount:()=>Mde,lightAmount:()=>wde,minButtonWidth:()=>bde,rx:()=>xde,ry:()=>_de,yPad:()=>gde});var gde,bde,xde,_de,wde,Mde,S4=Pt(()=>{"use strict";gde=.02,bde=30,xde=3,_de=3,wde=25,Mde=10});var RN=J((h6e,PN)=>{"use strict";var Ih=Re(),Tde=Nr(),Ade=mt(),kde=Ti(),EN=Nh(),D4=(S4(),Xe(C4));PN.exports=function(r,t,a,n,i){var l=r.rangeselector||{},o=Ade.newContainer(t,"rangeselector");function s(h,m){return Ih.coerce(l,o,EN,h,m)}var u=kde(l,o,{name:"buttons",handleItemDefaults:Cde,calendar:i}),f=s("visible",u.length>0);if(f){var c=Sde(t,a,n);s("x",c[0]),s("y",c[1]),Ih.noneOrAll(r,t,["x","y"]),s("xanchor"),s("yanchor"),Ih.coerceFont(s,"font",a.font);var d=s("bgcolor");s("activecolor",Tde.contrast(d,D4.lightAmount,D4.darkAmount)),s("bordercolor"),s("borderwidth")}};function Cde(e,r,t,a){var n=a.calendar;function i(s,u){return Ih.coerce(e,r,EN.buttons,s,u)}var l=i("visible");if(l){var o=i("step");o!=="all"&&(n&&n!=="gregorian"&&(o==="month"||o==="year")?r.stepmode="backward":i("stepmode"),i("count")),i("label")}}function Sde(e,r,t){for(var a=t.filter(function(o){return r[o].anchor===e._id}),n=0,i=0;i{"use strict";var Dde=Yp(),Lde=Re().titleCase;zN.exports=function(r,t){var a=r._name,n={};if(t.step==="all")n[a+".autorange"]=!0;else{var i=qde(r,t);n[a+".range[0]"]=i[0],n[a+".range[1]"]=i[1]}return n};function qde(e,r){var t=e.range,a=new Date(e.r2l(t[1])),n=r.step,i=Dde["utc"+Lde(n)],l=r.count,o;switch(r.stepmode){case"backward":o=e.l2r(+i.offset(a,-l));break;case"todate":var s=i.offset(a,-l);o=e.l2r(+i.ceil(s));break}var u=t[1];return[o,u]}});var GN=J((m6e,UN)=>{"use strict";var Hh=Or(),Ede=kr(),Pde=Qt(),NN=Nr(),YN=lt(),Dl=Re(),IN=Dl.strTranslate,Bh=Ta(),Rde=ua(),E4=(Oa(),Xe(Ha)),BN=E4.LINE_SPACING,HN=E4.FROM_TL,ON=E4.FROM_BR,q4=(S4(),Xe(C4)),zde=FN();UN.exports=function(r){var t=r._fullLayout,a=t._infolayer.selectAll(".rangeselector").data(Fde(r),Nde);a.enter().append("g").classed("rangeselector",!0),a.exit().remove(),a.style({cursor:"pointer","pointer-events":"all"}),a.each(function(n){var i=Hh.select(this),l=n,o=l.rangeselector,s=i.selectAll("g.button").data(Dl.filterVisible(o.buttons));s.enter().append("g").classed("button",!0),s.exit().remove(),s.each(function(u){var f=Hh.select(this),c=zde(l,u);u._isActive=Ide(l,u,c),f.call(L4,o,u),f.call(Hde,o,u,r),f.on("click",function(){r._dragged||Ede.call("_guiRelayout",r,c)}),f.on("mouseover",function(){u._isHovered=!0,f.call(L4,o,u)}),f.on("mouseout",function(){u._isHovered=!1,f.call(L4,o,u)})}),Yde(r,s,o,l._name,i)})};function Fde(e){for(var r=Rde.list(e,"x",!0),t=[],a=0;a{"use strict";VN.exports={moduleType:"component",name:"rangeselector",schema:{subplots:{xaxis:{rangeselector:Nh()}}},layoutAttributes:Nh(),handleDefaults:RN(),draw:GN()}});var Oh=J(P4=>{"use strict";var WN=oa().extendFlat;P4.attributes=function(e,r){e=e||{},r=r||{};var t={valType:"info_array",editType:e.editType,items:[{valType:"number",min:0,max:1,editType:e.editType},{valType:"number",min:0,max:1,editType:e.editType}],dflt:[0,1]},a=e.name?e.name+" ":"",n=e.trace?"trace":"subplot",i=r.description?" "+r.description:"",l={x:WN({},t,{}),y:WN({},t,{}),editType:e.editType};return e.noGridCell||(l.row={valType:"integer",min:0,dflt:0,editType:e.editType},l.column={valType:"integer",min:0,dflt:0,editType:e.editType}),l};P4.defaults=function(e,r,t,a){var n=a&&a.x||[0,1],i=a&&a.y||[0,1],l=r.grid;if(l){var o=t("domain.column");o!==void 0&&(o{"use strict";var Ude=Re(),Gde=(y0(),Xe(mf)).counter,Vde=Oh().attributes,ZN=(ya(),Xe(ma)).idRegex,Xde=mt(),R4={rows:{valType:"integer",min:1,editType:"plot"},roworder:{valType:"enumerated",values:["top to bottom","bottom to top"],dflt:"top to bottom",editType:"plot"},columns:{valType:"integer",min:1,editType:"plot"},subplots:{valType:"info_array",freeLength:!0,dimensions:2,items:{valType:"enumerated",values:[Gde("xy").toString(),""],editType:"plot"},editType:"plot"},xaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[ZN.x.toString(),""],editType:"plot"},editType:"plot"},yaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[ZN.y.toString(),""],editType:"plot"},editType:"plot"},pattern:{valType:"enumerated",values:["independent","coupled"],dflt:"coupled",editType:"plot"},xgap:{valType:"number",min:0,max:1,editType:"plot"},ygap:{valType:"number",min:0,max:1,editType:"plot"},domain:Vde({name:"grid",editType:"plot",noGridCell:!0},{}),xside:{valType:"enumerated",values:["bottom","bottom plot","top plot","top"],dflt:"bottom plot",editType:"plot"},yside:{valType:"enumerated",values:["left","left plot","right plot","right"],dflt:"left plot",editType:"plot"},editType:"plot"};function Yh(e,r,t){var a=r[t+"axes"],n=Object.keys((e._splomAxes||{})[t]||{});if(Array.isArray(a))return a;if(n.length)return n}function Wde(e,r){var t=e.grid||{},a=Yh(r,t,"x"),n=Yh(r,t,"y");if(!e.grid&&!a&&!n)return;var i=Array.isArray(t.subplots)&&Array.isArray(t.subplots[0]),l=Array.isArray(a),o=Array.isArray(n),s=l&&a!==t.xaxes&&o&&n!==t.yaxes,u,f;i?(u=t.subplots.length,f=t.subplots[0].length):(o&&(u=n.length),l&&(f=a.length));var c=Xde.newContainer(r,"grid");function d(S,A){return Ude.coerce(t,c,R4,S,A)}var h=d("rows",u),m=d("columns",f);if(!(h*m>1)){delete r.grid;return}if(!i&&!l&&!o){var g=d("pattern")==="independent";g&&(i=!0)}c._hasSubplotGrid=i;var y=d("roworder"),x=y==="top to bottom",w=i?.2:.1,T=i?.3:.1,b,M;s&&r._splomGridDflt&&(b=r._splomGridDflt.xside,M=r._splomGridDflt.yside),c._domains={x:JN("x",d,w,b,m),y:JN("y",d,T,M,h,x)}}function JN(e,r,t,a,n,i){var l=r(e+"gap",t),o=r("domain."+e);r(e+"side",a);for(var s=new Array(n),u=o[0],f=(o[1]-u)/(n-l),c=f*(1-l),d=0;d{"use strict";QN.exports={visible:{valType:"boolean",editType:"calc"},type:{valType:"enumerated",values:["percent","constant","sqrt","data"],editType:"calc"},symmetric:{valType:"boolean",editType:"calc"},array:{valType:"data_array",editType:"calc"},arrayminus:{valType:"data_array",editType:"calc"},value:{valType:"number",min:0,dflt:10,editType:"calc"},valueminus:{valType:"number",min:0,dflt:10,editType:"calc"},traceref:{valType:"integer",min:0,dflt:0,editType:"style"},tracerefminus:{valType:"integer",min:0,dflt:0,editType:"style"},copy_ystyle:{valType:"boolean",editType:"plot"},copy_zstyle:{valType:"boolean",editType:"style"},color:{valType:"color",editType:"style"},thickness:{valType:"number",min:0,dflt:2,editType:"style"},width:{valType:"number",min:0,editType:"plot"},editType:"calc"}});var tI=J((_6e,rI)=>{"use strict";var eI=Xr(),Jde=kr(),$de=Re(),Kde=mt(),jde=z4();rI.exports=function(e,r,t,a){var n="error_"+a.axis,i=Kde.newContainer(r,n),l=e[n]||{};function o(m,g){return $de.coerce(l,i,jde,m,g)}var s=l.array!==void 0||l.value!==void 0||l.type==="sqrt",u=o("visible",s);if(u!==!1){var f=o("type","array"in l?"data":"percent"),c=!0;f!=="sqrt"&&(c=o("symmetric",!((f==="data"?"arrayminus":"valueminus")in l))),f==="data"?(o("array"),o("traceref"),c||(o("arrayminus"),o("tracerefminus"))):(f==="percent"||f==="constant")&&(o("value"),c||o("valueminus"));var d="copy_"+a.inherit+"style";if(a.inherit){var h=r["error_"+a.inherit];(h||{}).visible&&o(d,!(l.color||eI(l.thickness)||eI(l.width)))}(!a.inherit||!i[d])&&(o("color",t),o("thickness"),o("width",Jde.traceIs(r,"gl3d")?0:4))}}});var F4=J((w6e,nI)=>{"use strict";nI.exports=function(r){var t=r.type,a=r.symmetric;if(t==="data"){var n=r.array||[];if(a)return function(u,f){var c=+n[f];return[c,c]};var i=r.arrayminus||[];return function(u,f){var c=+n[f],d=+i[f];return!isNaN(c)||!isNaN(d)?[d||0,c||0]:[NaN,NaN]}}else{var l=aI(t,r.value),o=aI(t,r.valueminus);return a||r.valueminus===void 0?function(u){var f=l(u);return[f,f]}:function(u){return[o(u),l(u)]}}};function aI(e,r){if(e==="percent")return function(t){return Math.abs(t*r/100)};if(e==="constant")return function(){return Math.abs(r)};if(e==="sqrt")return function(t){return Math.sqrt(Math.abs(t))}}});var oI=J((M6e,lI)=>{"use strict";var N4=Xr(),Qde=kr(),I4=Mt(),ehe=Re(),rhe=F4();lI.exports=function(r){for(var t=r.calcdata,a=0;a{"use strict";var sI=Or(),_o=Xr(),the=lt(),ahe=qn();uI.exports=function(r,t,a,n){var i,l=a.xaxis,o=a.yaxis,s=n&&n.duration>0,u=r._context.staticPlot;t.each(function(f){var c=f[0].trace,d=c.error_x||{},h=c.error_y||{},m;c.ids&&(m=function(w){return w.id});var g=ahe.hasMarkers(c)&&c.marker.maxdisplayed>0;!h.visible&&!d.visible&&(f=[]);var y=sI.select(this).selectAll("g.errorbar").data(f,m);if(y.exit().remove(),!!f.length){d.visible||y.selectAll("path.xerror").remove(),h.visible||y.selectAll("path.yerror").remove(),y.style("opacity",1);var x=y.enter().append("g").classed("errorbar",!0);s&&x.style("opacity",0).transition().duration(n.duration).style("opacity",1),the.setClipUrl(y,a.layerClipId,r),y.each(function(w){var T=sI.select(this),b=nhe(w,l,o);if(!(g&&!w.vis)){var M,S=T.select("path.yerror");if(h.visible&&_o(b.x)&&_o(b.yh)&&_o(b.ys)){var A=h.width;M="M"+(b.x-A)+","+b.yh+"h"+2*A+"m-"+A+",0V"+b.ys,b.noYS||(M+="m-"+A+",0h"+2*A),i=!S.size(),i?S=T.append("path").style("vector-effect",u?"none":"non-scaling-stroke").classed("yerror",!0):s&&(S=S.transition().duration(n.duration).ease(n.easing)),S.attr("d",M)}else S.remove();var L=T.select("path.xerror");if(d.visible&&_o(b.y)&&_o(b.xh)&&_o(b.xs)){var q=(d.copy_ystyle?h:d).width;M="M"+b.xh+","+(b.y-q)+"v"+2*q+"m0,-"+q+"H"+b.xs,b.noXS||(M+="m0,-"+q+"v"+2*q),i=!L.size(),i?L=T.append("path").style("vector-effect",u?"none":"non-scaling-stroke").classed("xerror",!0):s&&(L=L.transition().duration(n.duration).ease(n.easing)),L.attr("d",M)}else L.remove()}})}})};function nhe(e,r,t){var a={x:r.c2p(e.x),y:t.c2p(e.y)};return e.yh!==void 0&&(a.yh=t.c2p(e.yh),a.ys=t.c2p(e.ys),_o(a.ys)||(a.noYS=!0,a.ys=t.c2p(e.ys,!0))),e.xh!==void 0&&(a.xh=r.c2p(e.xh),a.xs=r.c2p(e.xs),_o(a.xs)||(a.noXS=!0,a.xs=r.c2p(e.xs,!0))),a}});var dI=J((A6e,vI)=>{"use strict";var ihe=Or(),cI=Nr();vI.exports=function(r){r.each(function(t){var a=t[0].trace,n=a.error_y||{},i=a.error_x||{},l=ihe.select(this);l.selectAll("path.yerror").style("stroke-width",n.thickness+"px").call(cI.stroke,n.color),i.copy_ystyle&&(i=n),l.selectAll("path.xerror").style("stroke-width",i.thickness+"px").call(cI.stroke,i.color)})}});var mI=J((k6e,pI)=>{"use strict";var Wc=Re(),hI=Wi().overrideAll,Zc=z4(),Ns={error_x:Wc.extendFlat({},Zc),error_y:Wc.extendFlat({},Zc)};delete Ns.error_x.copy_zstyle;delete Ns.error_y.copy_zstyle;delete Ns.error_y.copy_ystyle;var Jc={error_x:Wc.extendFlat({},Zc),error_y:Wc.extendFlat({},Zc),error_z:Wc.extendFlat({},Zc)};delete Jc.error_x.copy_ystyle;delete Jc.error_y.copy_ystyle;delete Jc.error_z.copy_ystyle;delete Jc.error_z.copy_zstyle;pI.exports={moduleType:"component",name:"errorbars",schema:{traces:{scatter:Ns,bar:Ns,histogram:Ns,scatter3d:hI(Jc,"calc","nested"),scattergl:hI(Ns,"calc","nested")}},supplyDefaults:tI(),calc:oI(),makeComputeError:F4(),plot:fI(),style:dI(),hoverInfo:lhe};function lhe(e,r,t){(r.error_y||{}).visible&&(t.yerr=e.yh-e.y,r.error_y.symmetric||(t.yerrneg=e.y-e.ys)),(r.error_x||{}).visible&&(t.xerr=e.xh-e.x,r.error_x.symmetric||(t.xerrneg=e.x-e.xs))}});var yI={};Rt(yI,{cn:()=>ohe});var ohe,gI=Pt(()=>{"use strict";ohe={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"}});var kI=J((C6e,AI)=>{"use strict";var wo=Or(),Gh=Qt(),bI=kr(),Ll=Mt(),Uh=Ci(),vi=Re(),Bi=vi.strTranslate,TI=oa().extendFlat,B4=lo(),Ii=lt(),_u=Nr(),she=Rf(),uhe=Ta(),fhe=Kn().flipScale,che=Zb(),vhe=Jb(),dhe=Mi(),O4=(Oa(),Xe(Ha)),xI=O4.LINE_SPACING,_I=O4.FROM_TL,wI=O4.FROM_BR,St=(gI(),Xe(yI)).cn;function hhe(e){var r=e._fullLayout,t=r._infolayer.selectAll("g."+St.colorbar).data(phe(e),function(a){return a._id});t.enter().append("g").attr("class",function(a){return a._id}).classed(St.colorbar,!0),t.each(function(a){var n=wo.select(this);vi.ensureSingle(n,"rect",St.cbbg),vi.ensureSingle(n,"g",St.cbfills),vi.ensureSingle(n,"g",St.cblines),vi.ensureSingle(n,"g",St.cbaxis,function(l){l.classed(St.crisp,!0)}),vi.ensureSingle(n,"g",St.cbtitleunshift,function(l){l.append("g").classed(St.cbtitle,!0)}),vi.ensureSingle(n,"rect",St.cboutline);var i=mhe(n,a,e);i&&i.then&&(e._promises||[]).push(i),e._context.edits.colorbarPosition&&yhe(n,a,e)}),t.exit().each(function(a){Gh.autoMargin(e,a._id)}).remove(),t.order()}function phe(e){var r=e._fullLayout,t=e.calcdata,a=[],n,i,l,o;function s(T){return TI(T,{_fillcolor:null,_line:{color:null,width:null,dash:null},_levels:{start:null,end:null,size:null},_filllevels:null,_fillgradient:null,_zrange:null})}function u(){typeof o.calc=="function"?o.calc(e,l,n):(n._fillgradient=i.reversescale?fhe(i.colorscale):i.colorscale,n._zrange=[i[o.min],i[o.max]])}for(var f=0;f[Math.min(e[0]+r,e[1]),e[1]],MI=(e,r)=>[e[0],Math.max(e[1]-r,e[0])];function mhe(e,r,t){var a=r.orientation==="v",n=r.len,i=r.lenmode,l=r.thickness,o=r.thicknessmode,s=r.outlinewidth,u=r.borderwidth,f=r.bgcolor,c=r.xanchor,d=r.yanchor,h=r.xpad,m=r.ypad,g=r.x,y=a?r.y:1-r.y,x=r.yref==="paper",w=r.xref==="paper",T=t._fullLayout,b=T._size,M=r._fillcolor,S=r._line,A=r.title,L=A.side,q=r._zrange||wo.extent((typeof M=="function"?M:S.color).domain()),P=typeof S.color=="function"?S.color:function(){return S.color},z=typeof M=="function"?M:function(){return M},N=r._levels,I=ghe(t,r,q),B=I.fill,H=I.line,Y=Math.round(l*(o==="fraction"?a?b.w:b.h:1)),G=Y/(a?b.w:b.h),O=Math.round(n*(i==="fraction"?a?b.h:b.w:1)),X=O/(a?b.h:b.w),Z=w?b.w:t._fullLayout.width,W=x?b.h:t._fullLayout.height,ee=Math.round(a?g*Z+h:y*W+m),ne={center:.5,right:1}[c]||0,fe={top:1,middle:.5}[d]||0,we=a?g-ne*G:y-fe*G,j=a?y-fe*X:g-ne*X,_e=Math.round(a?W*(1-j):Z*j);r._lenFrac=X,r._thickFrac=G,r._uFrac=we,r._vFrac=j;var ue=r._axis=bhe(t,r,q);ue.position=G+(a?g+h/b.w:y+m/b.h);var Me=["top","bottom"].indexOf(L)!==-1;if(a&&Me&&(ue.title.side=L,ue.titlex=g+h/b.w,ue.titley=j+(A.side==="top"?X-m/b.h:m/b.h)),!a&&!Me&&(ue.title.side=L,ue.titley=y+m/b.h,ue.titlex=j+h/b.w),S.color&&r.tickmode==="auto"){ue.tickmode="linear",ue.tick0=N.start;var ge=N.size,ce=vi.constrain(O/50,4,15)+1,Te=(q[1]-q[0])/((r.nticks||ce)*ge);if(Te>1){var ze=Math.pow(10,Math.floor(Math.log(Te)/Math.LN10));ge*=ze*vi.roundUp(Te/ze,[2,5,10]),(Math.abs(N.start)/N.size+1e-6)%1<2e-6&&(ue.tick0=0)}ue.dtick=ge}var be=a?m/b.h:h/b.w;ue.domain=MI(H4([j,j+X],be),be),ue.setScale(),e.attr("transform",Bi(Math.round(b.l),Math.round(b.t)));var qe=e.select("."+St.cbtitleunshift).attr("transform",Bi(-Math.round(b.l),-Math.round(b.t))),Ce=ue.ticklabelposition,De=ue.title.font.size,Ee=e.select("."+St.cbaxis),Ue,ke=0,We=0;function je(re,he){var Ve={propContainer:ue,propName:r._propPrefix+"title.text",traceIndex:r._traceIndex,_meta:r._meta,placeholder:T._dfltTitle.colorbar,containerGroup:e.select("."+St.cbtitle)},hr=re.charAt(0)==="h"?re.slice(1):"h"+re;e.selectAll("."+hr+",."+hr+"-math-group").remove(),she.draw(t,re,TI(Ve,he||{}))}function Ze(){if(a&&Me||!a&&!Me){var re,he;L==="top"&&(re=h+b.l+Z*g,he=m+b.t+W*(1-j-X)+3+De*.75),L==="bottom"&&(re=h+b.l+Z*g,he=m+b.t+W*(1-j)-3-De*.25),L==="right"&&(he=m+b.t+W*y+3+De*.75,re=h+b.l+Z*j),je(ue._id+"title",{attributes:{x:re,y:he,"text-anchor":a?"start":"middle"}})}}function Ae(){if(a&&!Me||!a&&Me){var re=ue.position||0,he=ue._offset+ue._length/2,Ve,hr;if(L==="right")hr=he,Ve=b.l+Z*re+10+De*(ue.showticklabels?1:.5);else if(Ve=he,L==="bottom"&&(hr=b.t+W*re+10+(Ce.indexOf("inside")===-1?ue.tickfont.size:0)+(ue.ticks!=="inside"&&r.ticklen||0)),L==="top"){var Le=A.text.split("
").length;hr=b.t+W*re+10-Y-xI*De*Le}je((a?"h":"v")+ue._id+"title",{avoid:{selection:wo.select(t).selectAll("g."+ue._id+"tick"),side:L,offsetTop:a?0:b.t,offsetLeft:a?b.l:0,maxShift:a?T.width:T.height},attributes:{x:Ve,y:hr,"text-anchor":"middle"},transform:{rotate:a?-90:0,offset:0}})}}function Pe(){if(!a&&!Me||a&&Me){var re=e.select("."+St.cbtitle),he=re.select("text"),Ve=[-s/2,s/2],hr=re.select(".h"+ue._id+"title-math-group").node(),Le=15.6;he.node()&&(Le=parseInt(he.node().style.fontSize,10)*xI);var de;if(hr?(de=Ii.bBox(hr),We=de.width,ke=de.height,ke>Le&&(Ve[1]-=(ke-Le)/2)):he.node()&&!he.classed(St.jsPlaceholder)&&(de=Ii.bBox(he.node()),We=de.width,ke=de.height),a){if(ke){if(ke+=5,L==="top")ue.domain=MI(ue.domain,ke/b.h),Ve[1]*=-1;else{ue.domain=H4(ue.domain,ke/b.h);var xe=uhe.lineCount(he);Ve[1]+=(1-xe)*Le}re.attr("transform",Bi(Ve[0],Ve[1])),ue.setScale()}}else We&&(L==="right"&&(ue.domain=H4(ue.domain,(We+De/2)/b.w)),re.attr("transform",Bi(Ve[0],Ve[1])),ue.setScale())}e.selectAll("."+St.cbfills+",."+St.cblines).attr("transform",a?Bi(0,Math.round(b.h*(1-ue.domain[1]))):Bi(Math.round(b.w*ue.domain[0]),0)),Ee.attr("transform",a?Bi(0,Math.round(-b.t)):Bi(Math.round(-b.l),0));var He=e.select("."+St.cbfills).selectAll("rect."+St.cbfill).attr("style","").data(B);He.enter().append("rect").classed(St.cbfill,!0).attr("style",""),He.exit().remove();var Je=q.map(ue.c2p).map(Math.round).sort(function(fr,Se){return fr-Se});He.each(function(fr,Se){var Ke=[Se===0?q[0]:(B[Se]+B[Se-1])/2,Se===B.length-1?q[1]:(B[Se]+B[Se+1])/2].map(ue.c2p).map(Math.round);a&&(Ke[1]=vi.constrain(Ke[1]+(Ke[1]>Ke[0])?1:-1,Je[0],Je[1]));var Ne=wo.select(this).attr(a?"x":"y",ee).attr(a?"y":"x",wo.min(Ke)).attr(a?"width":"height",Math.max(Y,2)).attr(a?"height":"width",Math.max(wo.max(Ke)-wo.min(Ke),2));if(r._fillgradient)Ii.gradient(Ne,t,r._id,a?"vertical":"horizontalreversed",r._fillgradient,"fill");else{var pr=z(fr).replace("e-","");Ne.attr("fill",_u.hexString(pr))}});var Ie=e.select("."+St.cblines).selectAll("path."+St.cbline).data(S.color&&S.width?H:[]);Ie.enter().append("path").classed(St.cbline,!0),Ie.exit().remove(),Ie.each(function(fr){var Se=ee,Ke=Math.round(ue.c2p(fr))+S.width/2%1;wo.select(this).attr("d","M"+(a?Se+","+Ke:Ke+","+Se)+(a?"h":"v")+Y).call(Ii.lineGroupStyle,S.width,P(fr),S.dash)}),Ee.selectAll("g."+ue._id+"tick,path").remove();var Ge=ee+Y+(s||0)/2-(r.ticks==="outside"?1:0),nr=Ll.calcTicks(ue),lr=Ll.getTickSigns(ue)[2];return Ll.drawTicks(t,ue,{vals:ue.ticks==="inside"?Ll.clipEnds(ue,nr):nr,layer:Ee,path:Ll.makeTickPath(ue,Ge,lr),transFn:Ll.makeTransTickFn(ue)}),Ll.drawLabels(t,ue,{vals:nr,layer:Ee,transFn:Ll.makeTransTickLabelFn(ue),labelFns:Ll.makeLabelFns(ue,Ge)})}function Qe(){var re,he=Y+s/2;Ce.indexOf("inside")===-1&&(re=Ii.bBox(Ee.node()),he+=a?re.width:re.height),Ue=qe.select("text");var Ve=0,hr=a&&L==="top",Le=!a&&L==="right",de=0;if(Ue.node()&&!Ue.classed(St.jsPlaceholder)){var xe,He=qe.select(".h"+ue._id+"title-math-group").node();He&&(a&&Me||!a&&!Me)?(re=Ii.bBox(He),Ve=re.width,xe=re.height):(re=Ii.bBox(qe.node()),Ve=re.right-b.l-(a?ee:_e),xe=re.bottom-b.t-(a?_e:ee),!a&&L==="top"&&(he+=re.height,de=re.height)),Le&&(Ue.attr("transform",Bi(Ve/2+De/2,0)),Ve*=2),he=Math.max(he,a?Ve:xe)}var Je=(a?h:m)*2+he+u+s/2,Ie=0;!a&&A.text&&d==="bottom"&&y<=0&&(Ie=Je/2,Je+=Ie,de+=Ie),T._hColorbarMoveTitle=Ie,T._hColorbarMoveCBTitle=de;var Ge=u+s,nr=(a?ee:_e)-Ge/2-(a?h:0),lr=(a?_e:ee)-(a?O:m+de-Ie);e.select("."+St.cbbg).attr("x",nr).attr("y",lr).attr(a?"width":"height",Math.max(Je-Ie,2)).attr(a?"height":"width",Math.max(O+Ge,2)).call(_u.fill,f).call(_u.stroke,r.bordercolor).style("stroke-width",u);var fr=Le?Math.max(Ve-10,0):0;e.selectAll("."+St.cboutline).attr("x",(a?ee:_e+h)+fr).attr("y",(a?_e+m-O:ee)+(hr?ke:0)).attr(a?"width":"height",Math.max(Y,2)).attr(a?"height":"width",Math.max(O-(a?2*m+ke:2*h+fr),2)).call(_u.stroke,r.outlinecolor).style({fill:"none","stroke-width":s});var Se=a?ne*Je:0,Ke=a?0:(1-fe)*Je-de;if(Se=w?b.l-Se:-Se,Ke=x?b.t-Ke:-Ke,e.attr("transform",Bi(Se,Ke)),!a&&(u||_u.opacity(f)&&!_u.equals(T.paper_bgcolor,f))){var Ne=Ee.selectAll("text"),pr=Ne[0].length,xr=e.select("."+St.cbbg).node(),ur=Ii.bBox(xr),mr=Ii.getTranslate(e),te=2;Ne.each(function(cn,ta){var ln=0,An=pr-1;if(ta===ln||ta===An){var kn=Ii.bBox(this),yr=Ii.getTranslate(this),dt;if(ta===An){var Qr=kn.right+yr.x,yt=ur.right+mr.x+_e-u-te+g;dt=yt-Qr,dt>0&&(dt=0)}else if(ta===ln){var qt=kn.left+yr.x,kt=ur.left+mr.x+_e+u+te;dt=kt-qt,dt<0&&(dt=0)}dt&&(pr<3?this.setAttribute("transform","translate("+dt+",0) "+this.getAttribute("transform")):this.setAttribute("visibility","hidden"))}})}var ve={},Fe=_I[c],Ye=wI[c],jr=_I[d],st=wI[d],vt=Je-Y;a?(i==="pixels"?(ve.y=y,ve.t=O*jr,ve.b=O*st):(ve.t=ve.b=0,ve.yt=y+n*jr,ve.yb=y-n*st),o==="pixels"?(ve.x=g,ve.l=Je*Fe,ve.r=Je*Ye):(ve.l=vt*Fe,ve.r=vt*Ye,ve.xl=g-l*Fe,ve.xr=g+l*Ye)):(i==="pixels"?(ve.x=g,ve.l=O*Fe,ve.r=O*Ye):(ve.l=ve.r=0,ve.xl=g+n*Fe,ve.xr=g-n*Ye),o==="pixels"?(ve.y=1-y,ve.t=Je*jr,ve.b=Je*st):(ve.t=vt*jr,ve.b=vt*st,ve.yt=y-l*jr,ve.yb=y+l*st));var Bt=r.y<.5?"b":"t",Lt=r.x<.5?"l":"r";t._fullLayout._reservedMargin[r._id]={};var wa={r:T.width-nr-Se,l:nr+ve.r,b:T.height-lr-Ke,t:lr+ve.b};w&&x?Gh.autoMargin(t,r._id,ve):w?t._fullLayout._reservedMargin[r._id][Bt]=wa[Bt]:x||a?t._fullLayout._reservedMargin[r._id][Lt]=wa[Lt]:t._fullLayout._reservedMargin[r._id][Bt]=wa[Bt]}return vi.syncOrAsync([Gh.previousPromises,Ze,Pe,Ae,Gh.previousPromises,Qe],t)}function yhe(e,r,t){var a=r.orientation==="v",n=t._fullLayout,i=n._size,l,o,s;Uh.init({element:e.node(),gd:t,prepFn:function(){l=e.attr("transform"),B4(e)},moveFn:function(u,f){e.attr("transform",l+Bi(u,f)),o=Uh.align((a?r._uFrac:r._vFrac)+u/i.w,a?r._thickFrac:r._lenFrac,0,1,r.xanchor),s=Uh.align((a?r._vFrac:1-r._uFrac)-f/i.h,a?r._lenFrac:r._thickFrac,0,1,r.yanchor);var c=Uh.getCursor(o,s,r.xanchor,r.yanchor);B4(e,c)},doneFn:function(){if(B4(e),o!==void 0&&s!==void 0){var u={};u[r._propPrefix+"x"]=o,u[r._propPrefix+"y"]=s,r._traceIndex!==void 0?bI.call("_guiRestyle",t,u,r._traceIndex):bI.call("_guiRelayout",t,u)}}})}function ghe(e,r,t){var a=r._levels,n=[],i=[],l,o,s=a.end+a.size/100,u=a.size,f=1.001*t[0]-.001*t[1],c=1.001*t[1]-.001*t[0];for(o=0;o<1e5&&(l=a.start+o*u,!(u>0?l>=s:l<=s));o++)l>f&&l0?l>=s:l<=s));o++)l>t[0]&&l{"use strict";CI.exports={moduleType:"component",name:"colorbar",attributes:r1(),supplyDefaults:Ig(),draw:kI().draw,hasColorbar:Cg()}});var LI=J((D6e,DI)=>{"use strict";DI.exports={moduleType:"component",name:"legend",layoutAttributes:R3(),supplyLayoutDefaults:F3(),draw:K3(),style:W3()}});var EI=J((L6e,qI)=>{"use strict";qI.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"}}});var RI=J((q6e,PI)=>{"use strict";PI.exports={moduleType:"locale",name:"en-US",dictionary:{"Click to enter Colorscale title":"Click to enter Colorscale title"},format:{date:"%m/%d/%Y"}}});var U4=J((E6e,II)=>{"use strict";var xhe=kr(),NI=Re(),Y4=NI.extendFlat,zI=NI.extendDeep;function FI(e){var r;switch(e){case"themes__thumb":r={autosize:!0,width:150,height:150,title:{text:""},showlegend:!1,margin:{l:5,r:5,t:5,b:5,pad:0},annotations:[]};break;case"thumbnail":r={title:{text:""},showlegend:!1,borderwidth:0,bordercolor:"",margin:{l:1,r:1,t:1,b:1,pad:0},annotations:[]};break;default:r={}}return r}function _he(e){var r=["xaxis","yaxis","zaxis"];return r.indexOf(e.slice(0,5))>-1}II.exports=function(r,t){var a,n=r.data,i=r.layout,l=zI([],n),o=zI({},i,FI(t.tileClass)),s=r._context||{};if(t.width&&(o.width=t.width),t.height&&(o.height=t.height),t.tileClass==="thumbnail"||t.tileClass==="themes__thumb"){o.annotations=[];var u=Object.keys(o);for(a=0;a{"use strict";var whe=Y2().EventEmitter,Mhe=kr(),The=Re(),BI=ks(),Ahe=U4(),khe=Zd(),Che=Jd();function She(e,r){var t=new whe,a=Ahe(e,{format:"png"}),n=a.gd;n.style.position="absolute",n.style.left="-5000px",document.body.appendChild(n);function i(){var o=BI.getDelay(n._fullLayout);setTimeout(function(){var s=khe(n),u=document.createElement("canvas");u.id=The.randstr(),t=Che({format:r.format,width:n._fullLayout.width,height:n._fullLayout.height,canvas:u,emitter:t,svg:s}),t.clean=function(){n&&document.body.removeChild(n)}},o)}var l=BI.getRedrawFunc(n);return Mhe.call("_doPlot",n,a.data,a.layout,a.config).then(l).then(i).catch(function(o){t.emit("error",o)}),t}HI.exports=She});var GI=J((R6e,UI)=>{"use strict";var YI=ks(),Dhe={getDelay:YI.getDelay,getRedrawFunc:YI.getRedrawFunc,clone:U4(),toSVG:Zd(),svgToImg:Jd(),toImage:OI(),downloadImage:mb()};UI.exports=Dhe});var XI=J(ql=>{"use strict";ql.version=Vu().version;$x();zM();var Lhe=kr(),$c=ql.register=Lhe.register,V4=KE(),VI=Object.keys(V4);for(Vh=0;Vh{"use strict";WI.exports=XI()});var Kc=J((N6e,QI)=>{"use strict";var It=As(),JI=e1().axisHoverFormat,{hovertemplateAttrs:qhe,texttemplateAttrs:Ehe,templatefallbackAttrs:$I}=Jo(),jI=Lf(),Phe=Ea(),KI=(Pc(),Xe(Ec)),Rhe=Zi().pattern,Is=oa().extendFlat,X4=Phe({editType:"calc",arrayOk:!0,colorEditType:"style"}),zhe=It.marker,Fhe=zhe.line,Nhe=Is({},Fhe.width,{dflt:0}),Ihe=Is({width:Nhe,editType:"calc"},jI("marker.line")),Bhe=Is({line:Ihe,editType:"calc"},jI("marker"),{opacity:{valType:"number",arrayOk:!0,dflt:1,min:0,max:1,editType:"style"},pattern:Rhe,cornerradius:{valType:"any",editType:"calc"}});QI.exports={x:It.x,x0:It.x0,dx:It.dx,y:It.y,y0:It.y0,dy:It.dy,xperiod:It.xperiod,yperiod:It.yperiod,xperiod0:It.xperiod0,yperiod0:It.yperiod0,xperiodalignment:It.xperiodalignment,yperiodalignment:It.yperiodalignment,xhoverformat:JI("x"),yhoverformat:JI("y"),text:It.text,texttemplate:Ehe({editType:"plot"},{keys:KI.eventDataKeys}),texttemplatefallback:$I({editType:"plot"}),hovertext:It.hovertext,hovertemplate:qhe({},{keys:KI.eventDataKeys}),hovertemplatefallback:$I(),textposition:{valType:"enumerated",values:["inside","outside","auto","none"],dflt:"auto",arrayOk:!0,editType:"calc"},insidetextanchor:{valType:"enumerated",values:["end","middle","start"],dflt:"end",editType:"plot"},textangle:{valType:"angle",dflt:"auto",editType:"plot"},textfont:Is({},X4,{}),insidetextfont:Is({},X4,{}),outsidetextfont:Is({},X4,{}),constraintext:{valType:"enumerated",values:["inside","outside","both","none"],dflt:"both",editType:"calc"},cliponaxis:Is({},It.cliponaxis,{}),orientation:{valType:"enumerated",values:["v","h"],editType:"calc+clearAxisTypes"},base:{valType:"any",dflt:null,arrayOk:!0,editType:"calc"},offset:{valType:"number",dflt:null,arrayOk:!0,editType:"calc"},width:{valType:"number",dflt:null,min:0,arrayOk:!0,editType:"calc"},marker:Bhe,offsetgroup:It.offsetgroup,alignmentgroup:It.alignmentgroup,selected:{marker:{opacity:It.selected.marker.opacity,color:It.selected.marker.color,editType:"style"},textfont:It.selected.textfont,editType:"style"},unselected:{marker:{opacity:It.unselected.marker.opacity,color:It.unselected.marker.color,editType:"style"},textfont:It.unselected.textfont,editType:"style"},zorder:It.zorder}});var W4=J((I6e,eB)=>{"use strict";eB.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"}}});var nB=J((B6e,aB)=>{"use strict";var Hhe=Nr(),rB=Kn().hasColorscale,tB=R0(),Ohe=Re().coercePattern;aB.exports=function(r,t,a,n,i){var l=a("marker.color",n),o=rB(r,"marker");o&&tB(r,t,i,a,{prefix:"marker.",cLetter:"c"}),a("marker.line.color",Hhe.defaultLine),rB(r,"marker.line")&&tB(r,t,i,a,{prefix:"marker.line.",cLetter:"c"}),a("marker.line.width"),a("marker.opacity"),Ohe(a,"marker.pattern",l,o),a("selected.marker.color"),a("unselected.marker.color")}});var jc=J((H6e,fB)=>{"use strict";var iB=Xr(),Mu=Re(),lB=Nr(),Yhe=kr(),Uhe=bb(),Ghe=xb(),Vhe=nB(),Xhe=_b(),oB=Kc(),Wh=Mu.coerceFont;function Whe(e,r,t,a){function n(u,f){return Mu.coerce(e,r,oB,u,f)}var i=Uhe(e,r,a,n);if(!i){r.visible=!1;return}Ghe(e,r,a,n),n("xhoverformat"),n("yhoverformat"),n("zorder"),n("orientation",r.x&&!r.y?"h":"v"),n("base"),n("offset"),n("width"),n("text"),n("hovertext"),n("hovertemplate"),n("hovertemplatefallback");var l=n("textposition");uB(e,r,a,n,l,{moduleHasSelected:!0,moduleHasUnselected:!0,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),Vhe(e,r,n,t,a);var o=(r.marker.line||{}).color,s=Yhe.getComponentMethod("errorbars","supplyDefaults");s(e,r,o||lB.defaultLine,{axis:"y"}),s(e,r,o||lB.defaultLine,{axis:"x",inherit:"y"}),Mu.coerceSelectionMarkerOpacity(r,n)}function Zhe(e,r){var t,a;function n(o,s){return Mu.coerce(a._input,a,oB,o,s)}for(var i=0;i=0)return e}else if(typeof e=="string"&&(e=e.trim(),e.slice(-1)==="%"&&iB(e.slice(0,-1))&&(e=+e.slice(0,-1),e>=0)))return e+"%"}function uB(e,r,t,a,n,i){i=i||{};var l=i.moduleHasSelected!==!1,o=i.moduleHasUnselected!==!1,s=i.moduleHasConstrain!==!1,u=i.moduleHasCliponaxis!==!1,f=i.moduleHasTextangle!==!1,c=i.moduleHasInsideanchor!==!1,d=!!i.hasPathbar,h=Array.isArray(n)||n==="auto",m=h||n==="inside",g=h||n==="outside";if(m||g){var y=Wh(a,"textfont",t.font),x=Mu.extendFlat({},y),w=e.textfont&&e.textfont.color,T=!w;if(T&&delete x.color,Wh(a,"insidetextfont",x),d){var b=Mu.extendFlat({},y);T&&delete b.color,Wh(a,"pathbar.textfont",b)}g&&Wh(a,"outsidetextfont",y),l&&a("selected.textfont.color"),o&&a("unselected.textfont.color"),s&&a("constraintext"),u&&a("cliponaxis"),f&&a("textangle"),a("texttemplate"),a("texttemplatefallback")}m&&c&&a("insidetextanchor")}fB.exports={supplyDefaults:Whe,crossTraceDefaults:Zhe,handleText:uB,validateCornerradius:sB}});var vB=J((O6e,cB)=>{"use strict";var Jhe=kr(),$he=Mt(),Khe=Re(),jhe=W4(),Qhe=jc().validateCornerradius;cB.exports=function(e,r,t){function a(g,y){return Khe.coerce(e,r,jhe,g,y)}for(var n=!1,i=!1,l=!1,o={},s=a("barmode"),u=s==="group",f=0;f0&&!o[d]&&(l=!0),o[d]=!0),c.visible&&c.type==="histogram"){var h=$he.getFromId({_fullLayout:r},c[c.orientation==="v"?"xaxis":"yaxis"]);h.type!=="category"&&(i=!0)}}if(!n){delete r.barmode;return}s!=="overlay"&&a("barnorm"),a("bargap",i&&!l?0:.2),a("bargroupgap");var m=a("barcornerradius");r.barcornerradius=Qhe(m)}});var Z4=J((Y6e,dB)=>{"use strict";var Tu=Re();dB.exports=function(r,t){for(var a=0;a{"use strict";var hB=Mt(),pB=wb(),mB=Kn().hasColorscale,yB=n1(),epe=Z4(),rpe=kb();gB.exports=function(r,t){var a=hB.getFromId(r,t.xaxis||"x"),n=hB.getFromId(r,t.yaxis||"y"),i,l,o,s,u,f,c={msUTC:!!(t.base||t.base===0)};t.orientation==="h"?(i=a.makeCalcdata(t,"x",c),o=n.makeCalcdata(t,"y"),s=pB(t,n,"y",o),u=!!t.yperiodalignment,f="y"):(i=n.makeCalcdata(t,"y",c),o=a.makeCalcdata(t,"x"),s=pB(t,a,"x",o),u=!!t.xperiodalignment,f="x"),l=s.vals;for(var d=Math.min(l.length,i.length),h=new Array(d),m=0;m{"use strict";var tpe=Or(),ape=Re();function npe(e,r,t){var a=e._fullLayout,n=a["_"+t+"Text_minsize"];if(n){var i=a.uniformtext.mode==="hide",l;switch(t){case"funnelarea":case"pie":case"sunburst":l="g.slice";break;case"treemap":case"icicle":l="g.slice, g.pathbar";break;default:l="g.points > g.point"}r.selectAll(l).each(function(o){var s=o.transform;if(s){s.scale=i&&s.hide?0:n/s.fontSize;var u=tpe.select(this).select("text");ape.setTransormAndDisplay(u,s)}})}}function ipe(e,r,t){if(t.uniformtext.mode){var a=xB(e),n=t.uniformtext.minsize,i=r.scale*r.fontSize;r.hide=i{"use strict";var ope=Nr(),spe=Xr(),wB=Re().isArrayOrTypedArray;Bs.coerceString=function(e,r,t){if(typeof r=="string"){if(r||!e.noBlank)return r}else if((typeof r=="number"||r===!0)&&!e.strict)return String(r);return t!==void 0?t:e.dflt};Bs.coerceNumber=function(e,r,t){if(spe(r)){r=+r;var a=e.min,n=e.max,i=a!==void 0&&rn;if(!i)return r}return t!==void 0?t:e.dflt};Bs.coerceColor=function(e,r,t){return ope.isValid(r)?r:t!==void 0?t:e.dflt};Bs.coerceEnumerated=function(e,r,t){return e.coerceNumber&&(r=+r),e.values.indexOf(r)!==-1?r:t!==void 0?t:e.dflt};Bs.getValue=function(e,r){var t;return wB(e)?r{"use strict";var ev=Or(),upe=Nr(),rv=lt(),MB=Re(),TB=kr(),AB=Qc().resizeText,J4=Kc(),fpe=J4.textfont,cpe=J4.insidetextfont,vpe=J4.outsidetextfont,Fa=Zh();function dpe(e){var r=ev.select(e).selectAll('g[class^="barlayer"]').selectAll("g.trace");AB(e,r,"bar");var t=r.size(),a=e._fullLayout;r.style("opacity",function(n){return n[0].trace.opacity}).each(function(n){(a.barmode==="stack"&&t>1||a.bargap===0&&a.bargroupgap===0&&!n[0].trace.marker.line.width)&&ev.select(this).attr("shape-rendering","crispEdges")}),r.selectAll("g.points").each(function(n){var i=ev.select(this),l=n[0].trace;kB(i,l,e)}),TB.getComponentMethod("errorbars","style")(r)}function kB(e,r,t){rv.pointStyle(e.selectAll("path"),r,t),CB(e,r,t)}function CB(e,r,t){e.selectAll("text").each(function(a){var n=ev.select(this),i=MB.ensureUniformFontSize(t,SB(n,a,r,t));rv.font(n,i)})}function hpe(e,r,t){var a=r[0].trace;a.selectedpoints?ppe(t,a,e):(kB(t,a,e),TB.getComponentMethod("errorbars","style")(t))}function ppe(e,r,t){rv.selectedPointStyle(e.selectAll("path"),r),mpe(e.selectAll("text"),r,t)}function mpe(e,r,t){e.each(function(a){var n=ev.select(this),i;if(a.selected){i=MB.ensureUniformFontSize(t,SB(n,a,r,t));var l=r.selected.textfont&&r.selected.textfont.color;l&&(i.color=l),rv.font(n,i)}else rv.selectedTextStyle(n,r)})}function SB(e,r,t,a){var n=a._fullLayout.font,i=t.textfont;if(e.classed("bartext-inside")){var l=EB(r,t);i=LB(t,r.i,n,l)}else e.classed("bartext-outside")&&(i=qB(t,r.i,n));return i}function DB(e,r,t){return $4(fpe,e.textfont,r,t)}function LB(e,r,t,a){var n=DB(e,r,t),i=e._input.textfont===void 0||e._input.textfont.color===void 0||Array.isArray(e.textfont.color)&&e.textfont.color[r]===void 0;return i&&(n={color:upe.contrast(a),family:n.family,size:n.size,weight:n.weight,style:n.style,variant:n.variant,textcase:n.textcase,lineposition:n.lineposition,shadow:n.shadow}),$4(cpe,e.insidetextfont,r,n)}function qB(e,r,t){var a=DB(e,r,t);return $4(vpe,e.outsidetextfont,r,a)}function $4(e,r,t,a){r=r||{};var n=Fa.getValue(r.family,t),i=Fa.getValue(r.size,t),l=Fa.getValue(r.color,t),o=Fa.getValue(r.weight,t),s=Fa.getValue(r.style,t),u=Fa.getValue(r.variant,t),f=Fa.getValue(r.textcase,t),c=Fa.getValue(r.lineposition,t),d=Fa.getValue(r.shadow,t);return{family:Fa.coerceString(e.family,n,a.family),size:Fa.coerceNumber(e.size,i,a.size),color:Fa.coerceColor(e.color,l,a.color),weight:Fa.coerceString(e.weight,o,a.weight),style:Fa.coerceString(e.style,s,a.style),variant:Fa.coerceString(e.variant,u,a.variant),textcase:Fa.coerceString(e.variant,f,a.textcase),lineposition:Fa.coerceString(e.variant,c,a.lineposition),shadow:Fa.coerceString(e.variant,d,a.shadow)}}function EB(e,r){return r.type==="waterfall"?r[e.dir].marker.color:e.mcc||e.mc||r.marker.color}PB.exports={style:dpe,styleTextPoints:CB,styleOnSelect:hpe,getInsideTextFont:LB,getOutsideTextFont:qB,getBarColor:EB,resizeText:AB}});var YB=J((W6e,OB)=>{"use strict";var $h=Or(),Kh=Xr(),ka=Re(),ype=Ta(),gpe=Nr(),Mo=lt(),bpe=kr(),jh=Mt().tickText,RB=Qc(),xpe=RB.recordMinTextSize,_pe=RB.clearMinTextSize,K4=Jh(),Au=Zh(),wpe=(Pc(),Xe(Ec)),zB=Kc(),Mpe=zB.text,Tpe=zB.textposition,Ape=Ai().appendArrayPointValue,nn=wpe.TEXTPAD;function kpe(e){return e.id}function Cpe(e){if(e.ids)return kpe}function j4(e){return(e>0)-(e<0)}function Hi(e,r){return e0}function Dpe(e,r,t,a,n,i){var l=r.xaxis,o=r.yaxis,s=e._fullLayout,u=e._context.staticPlot;n||(n={mode:s.barmode,norm:s.barmode,gap:s.bargap,groupgap:s.bargroupgap},_pe("bar",s));var f=ka.makeTraceGroups(a,t,"trace bars").each(function(c){var d=$h.select(this),h=c[0].trace,m=c[0].t,g=h.type==="waterfall",y=h.type==="funnel",x=h.type==="histogram",w=h.type==="bar",T=w||y,b=0;g&&h.connector.visible&&h.connector.mode==="between"&&(b=h.connector.line.width/2);var M=h.orientation==="h",S=NB(n),A=ka.ensureSingle(d,"g","points"),L=Cpe(h),q=A.selectAll("g.point").data(ka.identity,L);q.enter().append("g").classed("point",!0),q.exit().remove(),q.each(function(z,N){var I=$h.select(this),B=Spe(z,l,o,M),H=B[0][0],Y=B[0][1],G=B[1][0],O=B[1][1],X=(M?Y-H:O-G)===0;X&&T&&Au.getLineWidth(h,z)&&(X=!1),X||(X=!Kh(H)||!Kh(Y)||!Kh(G)||!Kh(O)),z.isBlank=X,X&&(M?Y=H:O=G),b&&!X&&(M?(H-=Hi(H,Y)*b,Y+=Hi(H,Y)*b):(G-=Hi(G,O)*b,O+=Hi(G,O)*b));var Z,W;if(h.type==="waterfall"){if(!X){var ee=h[z.dir].marker;Z=ee.line.width,W=ee.color}}else Z=Au.getLineWidth(h,z),W=z.mc||h.marker.color;function ne(re){var he=$h.round(Z/2%1,2);return n.gap===0&&n.groupgap===0?$h.round(Math.round(re)-he,2):re}function fe(re,he,Ve){return Ve&&re===he?re:Math.abs(re-he)>=2?ne(re):re>he?Math.ceil(re):Math.floor(re)}var we=gpe.opacity(W),j=we<1||Z>.01?ne:fe;e._context.staticPlot||(H=j(H,Y,M),Y=j(Y,H,M),G=j(G,O,!M),O=j(O,G,!M));var _e=M?l.c2p:o.c2p,ue;z.s0>0?ue=z._sMax:z.s0<0?ue=z._sMin:ue=z.s1>0?z._sMax:z._sMin;function Me(re,he){if(!re)return 0;var Ve=Math.abs(M?O-G:Y-H),hr=Math.abs(M?Y-H:O-G),Le=j(Math.abs(_e(ue,!0)-_e(0,!0))),de=z.hasB?Math.min(Ve/2,hr/2):Math.min(Ve/2,Le),xe;if(he==="%"){var He=Math.min(50,re);xe=Ve*(He/100)}else xe=re;return j(Math.max(Math.min(xe,de),0))}var ge=w||x?Me(m.cornerradiusvalue,m.cornerradiusform):0,ce,Te,ze="M"+H+","+G+"V"+O+"H"+Y+"V"+G+"Z",be=0;if(ge&&z.s){var qe=j4(z.s0)===0||j4(z.s)===j4(z.s0)?z.s1:z.s0;if(be=j(z.hasB?0:Math.abs(_e(ue,!0)-_e(qe,!0))),be0?Math.sqrt(be*(2*ge-be)):0,We=Ce>0?Math.max:Math.min;ce="M"+H+","+G+"V"+(O-Ue*De)+"H"+We(Y-(ge-be)*Ce,H)+"A "+ge+","+ge+" 0 0 "+Ee+" "+Y+","+(O-ge*De-ke)+"V"+(G+ge*De+ke)+"A "+ge+","+ge+" 0 0 "+Ee+" "+We(Y-(ge-be)*Ce,H)+","+(G+Ue*De)+"Z"}else if(z.hasB)ce="M"+(H+ge*Ce)+","+G+"A "+ge+","+ge+" 0 0 "+Ee+" "+H+","+(G+ge*De)+"V"+(O-ge*De)+"A "+ge+","+ge+" 0 0 "+Ee+" "+(H+ge*Ce)+","+O+"H"+(Y-ge*Ce)+"A "+ge+","+ge+" 0 0 "+Ee+" "+Y+","+(O-ge*De)+"V"+(G+ge*De)+"A "+ge+","+ge+" 0 0 "+Ee+" "+(Y-ge*Ce)+","+G+"Z";else{Te=Math.abs(O-G)+be;var je=Te0?Math.sqrt(be*(2*ge-be)):0,Ae=De>0?Math.max:Math.min;ce="M"+(H+je*Ce)+","+G+"V"+Ae(O-(ge-be)*De,G)+"A "+ge+","+ge+" 0 0 "+Ee+" "+(H+ge*Ce-Ze)+","+O+"H"+(Y-ge*Ce+Ze)+"A "+ge+","+ge+" 0 0 "+Ee+" "+(Y-je*Ce)+","+Ae(O-(ge-be)*De,G)+"V"+G+"Z"}}else ce=ze}else ce=ze;var Pe=FB(ka.ensureSingle(I,"path"),s,n,i);if(Pe.style("vector-effect",u?"none":"non-scaling-stroke").attr("d",isNaN((Y-H)*(O-G))||X&&e._context.staticPlot?"M0,0Z":ce).call(Mo.setClipUrl,r.layerClipId,e),!s.uniformtext.mode&&S){var Qe=Mo.makePointStyleFns(h);Mo.singlePointStyle(z,Pe,h,Qe,e)}Lpe(e,r,I,c,N,H,Y,G,O,ge,be,n,i),r.layerClipId&&Mo.hideOutsideRangePoint(z,I.select("text"),l,o,h.xcalendar,h.ycalendar)});var P=h.cliponaxis===!1;Mo.setClipUrl(d,P?null:r.layerClipId,e)});bpe.getComponentMethod("errorbars","plot")(e,f,r,n)}function Lpe(e,r,t,a,n,i,l,o,s,u,f,c,d){var h=r.xaxis,m=r.yaxis,g=e._fullLayout,y;function x(ze,be,qe){var Ce=ka.ensureSingle(ze,"text").text(be).attr({class:"bartext bartext-"+y,"text-anchor":"middle","data-notex":1}).call(Mo.font,qe).call(ype.convertToTspans,e);return Ce}var w=a[0].trace,T=w.orientation==="h",b=zpe(a,T,h,m),M=Ppe(g,a,n,h,m);y=Rpe(w,n);var S=c.mode==="stack"||c.mode==="relative",A=a[n],L=!S||A._outmost,q=A.hasB,P=u&&u-f>nn;if(!M||y==="none"||(A.isBlank||i===l||o===s)&&(y==="auto"||y==="inside")){t.select("text").remove();return}var z=g.font,N=K4.getBarColor(a[n],w),I=K4.getInsideTextFont(w,n,z,N),B=K4.getOutsideTextFont(w,n,z),H=w.insidetextanchor||"end",Y=t.datum();T?h.type==="log"&&Y.s0<=0&&(h.range[0]0&&fe>0,_e;P?q?_e=Hs(X-2*u,Z,ne,fe,T)||Hs(X,Z-2*u,ne,fe,T):T?_e=Hs(X-(u-f),Z,ne,fe,T)||Hs(X,Z-2*(u-f),ne,fe,T):_e=Hs(X,Z-(u-f),ne,fe,T)||Hs(X-2*(u-f),Z,ne,fe,T):_e=Hs(X,Z,ne,fe,T),j&&_e?y="inside":(y="outside",W.remove(),W=null)}else y="inside";if(!W){we=ka.ensureUniformFontSize(e,y==="outside"?B:I),W=x(t,M,we);var ue=W.attr("transform");if(W.attr("transform",""),ee=Mo.bBox(W.node()),ne=ee.width,fe=ee.height,W.attr("transform",ue),ne<=0||fe<=0){W.remove();return}}var Me=w.textangle,ge,ce;y==="outside"?(ce=w.constraintext==="both"||w.constraintext==="outside",ge=Epe(i,l,o,s,ee,{isHorizontal:T,constrained:ce,angle:Me,zeroBarDir:b})):(ce=w.constraintext==="both"||w.constraintext==="inside",ge=HB(i,l,o,s,ee,{isHorizontal:T,constrained:ce,angle:Me,anchor:H,hasB:q,r:u,overhead:f})),ge.fontSize=we.size,xpe(w.type==="histogram"?"bar":w.type,ge,g),A.transform=ge;var Te=FB(W,g,c,d);ka.setTransormAndDisplay(Te,ge)}function Hs(e,r,t,a,n){if(e<0||r<0)return!1;var i=t<=e&&a<=r,l=t<=r&&a<=e,o=n?e>=t*(r/a):r>=a*(e/t);return i||l||o}function IB(e){return e==="auto"?0:e}function BB(e,r){var t=Math.PI/180*r,a=Math.abs(Math.sin(t)),n=Math.abs(Math.cos(t));return{x:e.width*n+e.height*a,y:e.width*a+e.height*n}}function HB(e,r,t,a,n,i){var l=!!i.isHorizontal,o=!!i.constrained,s=i.angle||0,u=i.anchor,f=u==="end",c=u==="start",d=i.leftToRight||0,h=(d+1)/2,m=1-h,g=i.hasB,y=i.r,x=i.overhead,w=n.width,T=n.height,b=Math.abs(r-e),M=Math.abs(a-t),S=b>2*nn&&M>2*nn?nn:0;b-=2*S,M-=2*S;var A=IB(s);s==="auto"&&!(w<=b&&T<=M)&&(w>b||T>M)&&(!(w>M||T>b)||wnn){var z=qpe(e,r,t,a,L,y,x,l,g);q=z.scale,P=z.pad}else q=1,o&&(q=Math.min(1,b/L.x,M/L.y)),P=0;var N=n.left*m+n.right*h,I=(n.top+n.bottom)/2,B=(e+nn)*m+(r-nn)*h,H=(t+a)/2,Y=0,G=0;if(c||f){var O=(l?L.x:L.y)/2;y&&(f||g)&&(S+=P);var X=l?Hi(e,r):Hi(t,a);l?c?(B=e+X*S,Y=-X*O):(B=r-X*S,Y=X*O):c?(H=t+X*S,G=-X*O):(H=a-X*S,G=X*O)}return{textX:N,textY:I,targetX:B,targetY:H,anchorX:Y,anchorY:G,scale:q,rotate:A}}function qpe(e,r,t,a,n,i,l,o,s){var u=Math.max(0,Math.abs(r-e)-2*nn),f=Math.max(0,Math.abs(a-t)-2*nn),c=i-nn,d=l?c-Math.sqrt(c*c-(c-l)*(c-l)):c,h=s?c*2:o?c-l:2*d,m=s?c*2:o?2*d:c-l,g,y,x,w,T;return n.y/n.x>=f/(u-h)?w=f/n.y:n.y/n.x<=(f-m)/u?w=u/n.x:!s&&o?(g=n.x*n.x+n.y*n.y/4,y=-2*n.x*(u-c)-n.y*(f/2-c),x=(u-c)*(u-c)+(f/2-c)*(f/2-c)-c*c,w=(-y+Math.sqrt(y*y-4*g*x))/(2*g)):s?(g=(n.x*n.x+n.y*n.y)/4,y=-n.x*(u/2-c)-n.y*(f/2-c),x=(u/2-c)*(u/2-c)+(f/2-c)*(f/2-c)-c*c,w=(-y+Math.sqrt(y*y-4*g*x))/(2*g)):(g=n.x*n.x/4+n.y*n.y,y=-n.x*(u/2-c)-2*n.y*(f-c),x=(u/2-c)*(u/2-c)+(f-c)*(f-c)-c*c,w=(-y+Math.sqrt(y*y-4*g*x))/(2*g)),w=Math.min(1,w),o?T=Math.max(0,c-Math.sqrt(Math.max(0,c*c-(c-(f-n.y*w)/2)*(c-(f-n.y*w)/2)))-l):T=Math.max(0,c-Math.sqrt(Math.max(0,c*c-(c-(u-n.x*w)/2)*(c-(u-n.x*w)/2)))-l),{scale:w,pad:T}}function Epe(e,r,t,a,n,i){var l=!!i.isHorizontal,o=!!i.constrained,s=i.angle||0,u=n.width,f=n.height,c=Math.abs(r-e),d=Math.abs(a-t),h;l?h=d>2*nn?nn:0:h=c>2*nn?nn:0;var m=1;o&&(m=l?Math.min(1,d/f):Math.min(1,c/u));var g=IB(s),y=BB(n,g),x=(l?y.x:y.y)/2,w=(n.left+n.right)/2,T=(n.top+n.bottom)/2,b=(e+r)/2,M=(t+a)/2,S=0,A=0,L;return(l?e===r:t===a)&&i.zeroBarDir?L=i.zeroBarDir:L=l?Hi(r,e):Hi(t,a),l?(b=r-L*h,S=L*x):(M=a+L*h,A=-L*x),{textX:w,textY:T,targetX:b,targetY:M,anchorX:S,anchorY:A,scale:m,rotate:g}}function Ppe(e,r,t,a,n){var i=r[0].trace,l=i.texttemplate,o;return l?o=Fpe(e,r,t,a,n):i.textinfo?o=Npe(r,t,a,n):o=Au.getValue(i.text,t),Au.coerceString(Mpe,o)}function Rpe(e,r){var t=Au.getValue(e.textposition,r);return Au.coerceEnumerated(Tpe,t)}function zpe(e,r,t,a){for(var n=!1,i=!1,l=0;l0?n=!0:o<0&&(i=!0),n&&i)return 0}var s=r?t:a,u=-Hi(s.range[0],s.range[1]);return i?n?0:-u:u}function Fpe(e,r,t,a,n){var i=r[0].trace,l=ka.castOption(i,t,"texttemplate");if(!l)return"";var o=i.type==="histogram",s=i.type==="waterfall",u=i.type==="funnel",f=i.orientation==="h",c,d,h,m;f?(c="y",d=n,h="x",m=a):(c="x",d=a,h="y",m=n);function g(S){return jh(d,d.c2l(S),!0).text}function y(S){return jh(m,m.c2l(S),!0).text}var x=r[t],w={};w.label=x.p,w.labelLabel=w[c+"Label"]=g(x.p);var T=ka.castOption(i,x.i,"text");(T===0||T)&&(w.text=T),w.value=x.s,w.valueLabel=w[h+"Label"]=y(x.s);var b={};Ape(b,i,x.i),(o||b.x===void 0)&&(b.x=f?w.value:w.label),(o||b.y===void 0)&&(b.y=f?w.label:w.value),(o||b.xLabel===void 0)&&(b.xLabel=f?w.valueLabel:w.labelLabel),(o||b.yLabel===void 0)&&(b.yLabel=f?w.labelLabel:w.valueLabel),s&&(w.delta=+x.rawS||x.s,w.deltaLabel=y(w.delta),w.final=x.v,w.finalLabel=y(w.final),w.initial=w.final-w.delta,w.initialLabel=y(w.initial)),u&&(w.value=x.s,w.valueLabel=y(w.value),w.percentInitial=x.begR,w.percentInitialLabel=ka.formatPercent(x.begR),w.percentPrevious=x.difR,w.percentPreviousLabel=ka.formatPercent(x.difR),w.percentTotal=x.sumR,w.percenTotalLabel=ka.formatPercent(x.sumR));var M=ka.castOption(i,x.i,"customdata");return M&&(w.customdata=M),ka.texttemplateString({data:[b,w,i._meta],fallback:i.texttemplatefallback,labels:w,locale:e._d3locale,template:l})}function Npe(e,r,t,a){var n=e[0].trace,i=n.orientation==="h",l=n.type==="waterfall",o=n.type==="funnel";function s(M){var S=i?a:t;return jh(S,M,!0).text}function u(M){var S=i?t:a;return jh(S,+M,!0).text}var f=n.textinfo,c=e[r],d=f.split("+"),h=[],m,g=function(M){return d.indexOf(M)!==-1};if(g("label")&&h.push(s(e[r].p)),g("text")&&(m=ka.castOption(n,c.i,"text"),(m===0||m)&&h.push(m)),l){var y=+c.rawS||c.s,x=c.v,w=x-y;g("initial")&&h.push(u(w)),g("delta")&&h.push(u(y)),g("final")&&h.push(u(x))}if(o){g("value")&&h.push(u(c.s));var T=0;g("percent initial")&&T++,g("percent previous")&&T++,g("percent total")&&T++;var b=T>1;g("percent initial")&&(m=ka.formatPercent(c.begR),b&&(m+=" of initial"),h.push(m)),g("percent previous")&&(m=ka.formatPercent(c.difR),b&&(m+=" of previous"),h.push(m)),g("percent total")&&(m=ka.formatPercent(c.sumR),b&&(m+=" of total"),h.push(m))}return h.join("
")}OB.exports={plot:Dpe,toMoveInsideBar:HB}});var WB=J((Z6e,XB)=>{"use strict";var tv=Si(),Ipe=kr(),UB=Nr(),Bpe=Re().fillText,Hpe=Zh().getLineWidth,Q4=Mt().hoverLabelText,Ope=(la(),Xe(da)).BADNUM;function Ype(e,r,t,a,n){var i=GB(e,r,t,a,n);if(i){var l=i.cd,o=l[0].trace,s=l[i.index];return i.color=VB(o,s),Ipe.getComponentMethod("errorbars","hoverInfo")(s,o,i),[i]}}function GB(e,r,t,a,n){var i=e.cd,l=i[0].trace,o=i[0].t,s=a==="closest",u=l.type==="waterfall",f=e.maxHoverDistance,c=e.maxSpikeDistance,d,h,m,g,y,x,w;l.orientation==="h"?(d=t,h=r,m="y",g="x",y=H,x=N):(d=r,h=t,m="x",g="y",x=H,y=N);var T=l[m+"period"],b=s||T;function M(j){return A(j,-1)}function S(j){return A(j,1)}function A(j,_e){var ue=j.w;return j[m]+_e*ue/2}function L(j){return j[m+"End"]-j[m+"Start"]}var q=s?M:T?function(j){return j.p-L(j)/2}:function(j){return Math.min(M(j),j.p-o.bardelta/2)},P=s?S:T?function(j){return j.p+L(j)/2}:function(j){return Math.max(S(j),j.p+o.bardelta/2)};function z(j,_e,ue){return n.finiteRange&&(ue=0),tv.inbox(j-d,_e-d,ue+Math.min(1,Math.abs(_e-j)/w)-1)}function N(j){return z(q(j),P(j),f)}function I(j){return z(M(j),S(j),c)}function B(j){var _e=j[g];if(u){var ue=Math.abs(j.rawS)||0;h>0?_e+=ue:h<0&&(_e-=ue)}return _e}function H(j){var _e=h,ue=j.b,Me=B(j);return tv.inbox(ue-_e,Me-_e,f+(Me-_e)/(Me-ue)-1)}function Y(j){var _e=h,ue=j.b,Me=B(j);return tv.inbox(ue-_e,Me-_e,c+(Me-_e)/(Me-ue)-1)}var G=e[m+"a"],O=e[g+"a"];w=Math.abs(G.r2c(G.range[1])-G.r2c(G.range[0]));function X(j){return(y(j)+x(j))/2}var Z=tv.getDistanceFunction(a,y,x,X);if(tv.getClosest(i,Z,e),e.index!==!1&&i[e.index].p!==Ope){b||(q=function(j){return Math.min(M(j),j.p-o.bargroupwidth/2)},P=function(j){return Math.max(S(j),j.p+o.bargroupwidth/2)});var W=e.index,ee=i[W],ne=l.base?ee.b+ee.s:ee.s;e[g+"0"]=e[g+"1"]=O.c2p(ee[g],!0),e[g+"LabelVal"]=ne;var fe=o.extents[o.extents.round(ee.p)];e[m+"0"]=G.c2p(s?q(ee):fe[0],!0),e[m+"1"]=G.c2p(s?P(ee):fe[1],!0);var we=ee.orig_p!==void 0;return e[m+"LabelVal"]=we?ee.orig_p:ee.p,e.labelLabel=Q4(G,e[m+"LabelVal"],l[m+"hoverformat"]),e.valueLabel=Q4(O,e[g+"LabelVal"],l[g+"hoverformat"]),e.baseLabel=Q4(O,ee.b,l[g+"hoverformat"]),e.spikeDistance=(Y(ee)+I(ee))/2,e[m+"Spike"]=G.c2p(ee.p,!0),Bpe(ee,l,e),e.hovertemplate=l.hovertemplate,e}}function VB(e,r){var t=r.mcc||e.marker.color,a=r.mlcc||e.marker.line.color,n=Hpe(e,r);if(UB.opacity(t))return t;if(UB.opacity(a)&&n)return a}XB.exports={hoverPoints:Ype,hoverOnBars:GB,getTraceColor:VB}});var JB=J((J6e,ZB)=>{"use strict";ZB.exports=function(r,t,a){return r.x="xVal"in t?t.xVal:t.x,r.y="yVal"in t?t.yVal:t.y,t.xa&&(r.xaxis=t.xa),t.ya&&(r.yaxis=t.ya),a.orientation==="h"?(r.label=r.y,r.value=r.x):(r.label=r.x,r.value=r.y),r}});var KB=J(($6e,$B)=>{"use strict";$B.exports=function(r,t){var a=r.cd,n=r.xaxis,i=r.yaxis,l=a[0].trace,o=l.type==="funnel",s=l.orientation==="h",u=[],f;if(t===!1)for(f=0;f{"use strict";jB.exports={attributes:Kc(),layoutAttributes:W4(),supplyDefaults:jc().supplyDefaults,crossTraceDefaults:jc().crossTraceDefaults,supplyLayoutDefaults:vB(),calc:bB(),crossTraceCalc:Nb().crossTraceCalc,colorbar:Hb(),arraysToCalcdata:Z4(),plot:YB().plot,style:Jh().style,styleOnSelect:Jh().styleOnSelect,hoverPoints:WB().hoverPoints,eventData:JB(),selectPoints:KB(),moduleType:"trace",name:"bar",basePlotModule:gh(),categories:["bar-like","cartesian","svg","bar","oriented","errorBarsOK","showLegend","zoomScale"],animatable:!0,meta:{}}});var rH=J((j6e,eH)=>{"use strict";eH.exports=QB()});var e6=J((Q6e,aH)=>{"use strict";var Qh=yi(),Gpe=Oh().attributes,Vpe=Ea(),Xpe=Xi(),{hovertemplateAttrs:Wpe,texttemplateAttrs:Zpe,templatefallbackAttrs:tH}=Jo(),To=oa().extendFlat,Jpe=Zi().pattern,ep=Vpe({editType:"plot",arrayOk:!0,colorEditType:"plot"});aH.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:Xpe.defaultLine,arrayOk:!0,editType:"style"},width:{valType:"number",min:0,dflt:0,arrayOk:!0,editType:"style"},editType:"calc"},pattern:Jpe,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:To({},Qh.hoverinfo,{flags:["label","text","value","percent","name"]}),hovertemplate:Wpe({},{keys:["label","color","value","percent","text"]}),hovertemplatefallback:tH(),texttemplate:Zpe({editType:"plot"},{keys:["label","color","value","percent","text"]}),texttemplatefallback:tH({editType:"plot"}),textposition:{valType:"enumerated",values:["inside","outside","auto","none"],dflt:"auto",arrayOk:!0,editType:"plot"},textfont:To({},ep,{}),insidetextorientation:{valType:"enumerated",values:["horizontal","radial","tangential","auto"],dflt:"auto",editType:"plot"},insidetextfont:To({},ep,{}),outsidetextfont:To({},ep,{}),automargin:{valType:"boolean",dflt:!1,editType:"plot"},showlegend:To({},Qh.showlegend,{arrayOk:!0}),legend:To({},Qh.legend,{arrayOk:!0}),legendrank:To({},Qh.legendrank,{arrayOk:!0}),title:{text:{valType:"string",dflt:"",editType:"plot"},font:To({},ep,{}),position:{valType:"enumerated",values:["top left","top center","top right","middle center","bottom left","bottom center","bottom right"],editType:"plot"},editType:"plot"},domain:Gpe({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"}}});var oH=J((exe,lH)=>{"use strict";var $pe=Xr(),av=Re(),Kpe=e6(),jpe=Oh().defaults,Qpe=jc().handleText,eme=Re().coercePattern;function nH(e,r){var t=av.isArrayOrTypedArray(e),a=av.isArrayOrTypedArray(r),n=Math.min(t?e.length:1/0,a?r.length:1/0);if(isFinite(n)||(n=0),n&&a){for(var i,l=0;l0){i=!0;break}}i||(n=0)}return{hasLabels:t,hasValues:a,len:n}}function iH(e,r,t,a,n){var i=a("marker.line.width");i&&a("marker.line.color",n?void 0:t.paper_bgcolor);var l=a("marker.colors");eme(a,"marker.pattern",l),e.marker&&!r.marker.pattern.fgcolor&&(r.marker.pattern.fgcolor=e.marker.colors),r.marker.pattern.bgcolor||(r.marker.pattern.bgcolor=t.paper_bgcolor)}function rme(e,r,t,a){function n(w,T){return av.coerce(e,r,Kpe,w,T)}var i=n("labels"),l=n("values"),o=nH(i,l),s=o.len;if(r._hasLabels=o.hasLabels,r._hasValues=o.hasValues,!r._hasLabels&&r._hasValues&&(n("label0"),n("dlabel")),!s){r.visible=!1;return}r._length=s,iH(e,r,a,n,!0),n("scalegroup");var u=n("text"),f=n("texttemplate");n("texttemplatefallback");var c;if(f||(c=n("textinfo",av.isArrayOrTypedArray(u)?"text+percent":"percent")),n("hovertext"),n("hovertemplate"),n("hovertemplatefallback"),f||c&&c!=="none"){var d=n("textposition");Qpe(e,r,a,n,d,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1});var h=Array.isArray(d)||d==="auto",m=h||d==="outside";m&&n("automargin"),(d==="inside"||d==="auto"||Array.isArray(d))&&n("insidetextorientation")}else c==="none"&&n("textposition","none");jpe(r,a,n);var g=n("hole"),y=n("title.text");if(y){var x=n("title.position",g?"middle center":"top center");!g&&x==="middle center"&&(r.title.position="top center"),av.coerceFont(n,"title.font",a.font)}n("sort"),n("direction"),n("rotation"),n("pull")}lH.exports={handleLabelsAndValues:nH,handleMarkerDefaults:iH,supplyDefaults:rme}});var r6=J((rxe,sH)=>{"use strict";sH.exports={hiddenlabels:{valType:"data_array",editType:"calc"},piecolorway:{valType:"colorlist",editType:"calc"},extendpiecolors:{valType:"boolean",dflt:!0,editType:"calc"}}});var fH=J((txe,uH)=>{"use strict";var tme=Re(),ame=r6();uH.exports=function(r,t){function a(n,i){return tme.coerce(r,t,ame,n,i)}a("hiddenlabels"),a("piecolorway",t.colorway),a("extendpiecolors")}});var t6=J((axe,dH)=>{"use strict";var nme=Xr(),ku=Nr(),ime={};function lme(e,r){var t=[],a=e._fullLayout,n=a.hiddenlabels||[],i=r.labels,l=r.marker.colors||[],o=r.values,s=r._length,u=r._hasValues&&s,f,c;if(r.dlabel)for(i=new Array(s),f=0;f=0});var b=r.type==="funnelarea"?g:r.sort;return b&&t.sort(function(M,S){return S.v-M.v}),t[0]&&(t[0].vTotal=m),t}function cH(e){return function(t,a){if(!t||!ku.isValid(t))return!1;let n=ku.rgbaString(t);return e[a]||(e[a]=n),n}}function ome(e,r){var t=(r||{}).type;t||(t="pie");var a=e._fullLayout,n=e.calcdata,i=a[t+"colorway"],l=a["_"+t+"colormap"];a["extend"+t+"colors"]&&(i=vH(i,ime));for(var o=0,s=0;s{"use strict";var sme=Ai().appendArrayMultiPointValues;hH.exports=function(r,t){var a={curveNumber:t.index,pointNumbers:r.pts,data:t._input,fullData:t,label:r.label,color:r.color,value:r.v,percent:r.percent,text:r.text,bbox:r.bbox,v:r.v};return r.pts.length===1&&(a.pointNumber=a.i=r.pts[0]),sme(a,t,r.pts),t.type==="funnelarea"&&(delete a.v,delete a.i),a}});var NH=J((ixe,FH)=>{"use strict";var Tn=Or(),ume=Qt(),rp=Si(),_H=Nr(),El=lt(),Na=Re(),fme=Na.strScale,mH=Na.strTranslate,a6=Ta(),wH=Qc(),cme=wH.recordMinTextSize,vme=wH.clearMinTextSize,MH=(Pc(),Xe(Ec)).TEXTPAD,Dr=F1(),tp=pH(),yH=Re().isValidTextValue;function dme(e,r){var t=e._context.staticPlot,a=e._fullLayout,n=a._size;vme("pie",a),kH(r,e),PH(r,n);var i=Na.makeTraceGroups(a._pielayer,r,"trace").each(function(l){var o=Tn.select(this),s=l[0],u=s.trace;wme(l),o.attr("stroke-linejoin","round"),o.each(function(){var f=Tn.select(this).selectAll("g.slice").data(l);f.enter().append("g").classed("slice",!0),f.exit().remove();var c=[[[],[]],[[],[]]],d=!1;f.each(function(b,M){if(b.hidden){Tn.select(this).selectAll("path,g").remove();return}b.pointNumber=b.i,b.curveNumber=u.index,c[b.pxmid[1]<0?0:1][b.pxmid[0]<0?0:1].push(b);var S=s.cx,A=s.cy,L=Tn.select(this),q=L.selectAll("path.surface").data([b]);if(q.enter().append("path").classed("surface",!0).style({"pointer-events":t?"none":"all"}),L.call(TH,e,l),u.pull){var P=+Dr.castOption(u.pull,b.pts)||0;P>0&&(S+=P*b.pxmid[0],A+=P*b.pxmid[1])}b.cxFinal=S,b.cyFinal=A;function z(O,X,Z,W){var ee=W*(X[0]-O[0]),ne=W*(X[1]-O[1]);return"a"+W*s.r+","+W*s.r+" 0 "+b.largeArc+(Z?" 1 ":" 0 ")+ee+","+ne}var N=u.hole;if(b.v===s.vTotal){var I="M"+(S+b.px0[0])+","+(A+b.px0[1])+z(b.px0,b.pxmid,!0,1)+z(b.pxmid,b.px0,!0,1)+"Z";N?q.attr("d","M"+(S+N*b.px0[0])+","+(A+N*b.px0[1])+z(b.px0,b.pxmid,!1,N)+z(b.pxmid,b.px0,!1,N)+"Z"+I):q.attr("d",I)}else{var B=z(b.px0,b.px1,!0,1);if(N){var H=1-N;q.attr("d","M"+(S+N*b.px1[0])+","+(A+N*b.px1[1])+z(b.px1,b.px0,!1,N)+"l"+H*b.px0[0]+","+H*b.px0[1]+B+"Z")}else q.attr("d","M"+S+","+A+"l"+b.px0[0]+","+b.px0[1]+B+"Z")}RH(e,b,s);var Y=Dr.castOption(u.textposition,b.pts),G=L.selectAll("g.slicetext").data(b.text&&Y!=="none"?[0]:[]);G.enter().append("g").classed("slicetext",!0),G.exit().remove(),G.each(function(){var O=Na.ensureSingle(Tn.select(this),"text","",function(j){j.attr("data-notex",1)}),X=Na.ensureUniformFontSize(e,Y==="outside"?pme(u,b,a.font):AH(u,b,a.font));O.text(b.text).attr({class:"slicetext",transform:"","text-anchor":"middle"}).call(El.font,X).call(a6.convertToTspans,e);var Z=El.bBox(O.node()),W;if(Y==="outside")W=xH(Z,b);else if(W=CH(Z,b,s),Y==="auto"&&W.scale<1){var ee=Na.ensureUniformFontSize(e,u.outsidetextfont);O.call(El.font,ee),Z=El.bBox(O.node()),W=xH(Z,b)}var ne=W.textPosAngle,fe=ne===void 0?b.pxmid:ap(s.r,ne);if(W.targetX=S+fe[0]*W.rCenter+(W.x||0),W.targetY=A+fe[1]*W.rCenter+(W.y||0),zH(W,Z),W.outside){var we=W.targetY;b.yLabelMin=we-Z.height/2,b.yLabelMid=we,b.yLabelMax=we+Z.height/2,b.labelExtraX=0,b.labelExtraY=0,d=!0}W.fontSize=X.size,cme(u.type,W,a),l[M].transform=W,Na.setTransormAndDisplay(O,W)})});var h=Tn.select(this).selectAll("g.titletext").data(u.title.text?[0]:[]);if(h.enter().append("g").classed("titletext",!0),h.exit().remove(),h.each(function(){var b=Na.ensureSingle(Tn.select(this),"text","",function(A){A.attr("data-notex",1)}),M=u.title.text;u._meta&&(M=Na.templateString(M,u._meta)),b.text(M).attr({class:"titletext",transform:"","text-anchor":"middle"}).call(El.font,u.title.font).call(a6.convertToTspans,e);var S;u.title.position==="middle center"?S=gme(s):S=qH(s,n),b.attr("transform",mH(S.x,S.y)+fme(Math.min(1,S.scale))+mH(S.tx,S.ty))}),d&&xme(c,u),hme(f,u),d&&u.automargin){var m=El.bBox(o.node()),g=u.domain,y=n.w*(g.x[1]-g.x[0]),x=n.h*(g.y[1]-g.y[0]),w=(.5*y-s.r)/n.w,T=(.5*x-s.r)/n.h;ume.autoMargin(e,"pie."+u.uid+".automargin",{xl:g.x[0]-w,xr:g.x[1]+w,yb:g.y[0]-T,yt:g.y[1]+T,l:Math.max(s.cx-s.r-m.left,0),r:Math.max(m.right-(s.cx+s.r),0),b:Math.max(m.bottom-(s.cy+s.r),0),t:Math.max(s.cy-s.r-m.top,0),pad:5})}})});setTimeout(function(){i.selectAll("tspan").each(function(){var l=Tn.select(this);l.attr("dy")&&l.attr("dy",l.attr("dy"))})},0)}function hme(e,r){e.each(function(t){var a=Tn.select(this);if(!t.labelExtraX&&!t.labelExtraY){a.select("path.textline").remove();return}var n=a.select("g.slicetext text");t.transform.targetX+=t.labelExtraX,t.transform.targetY+=t.labelExtraY,Na.setTransormAndDisplay(n,t.transform);var i=t.cxFinal+t.pxmid[0],l=t.cyFinal+t.pxmid[1],o="M"+i+","+l,s=(t.yLabelMax-t.yLabelMin)*(t.pxmid[0]<0?-1:1)/4;if(t.labelExtraX){var u=t.labelExtraX*t.pxmid[1]/t.pxmid[0],f=t.yLabelMid+t.labelExtraY-(t.cyFinal+t.pxmid[1]);Math.abs(u)>Math.abs(f)?o+="l"+f*t.pxmid[0]/t.pxmid[1]+","+f+"H"+(i+t.labelExtraX+s):o+="l"+t.labelExtraX+","+u+"v"+(f-u)+"h"+s}else o+="V"+(t.yLabelMid+t.labelExtraY)+"h"+s;Na.ensureSingle(a,"path","textline").call(_H.stroke,r.outsidetextfont.color).attr({"stroke-width":Math.min(2,r.outsidetextfont.size/8),d:o,fill:"none"})})}function TH(e,r,t){var a=t[0],n=a.cx,i=a.cy,l=a.trace,o=l.type==="funnelarea";"_hasHoverLabel"in l||(l._hasHoverLabel=!1),"_hasHoverEvent"in l||(l._hasHoverEvent=!1),e.on("mouseover",function(s){var u=r._fullLayout,f=r._fullData[l.index];if(!(r._dragging||u.hovermode===!1)){var c=f.hoverinfo;if(Array.isArray(c)&&(c=rp.castHoverinfo({hoverinfo:[Dr.castOption(c,s.pts)],_module:l._module},u,0)),c==="all"&&(c="label+text+value+percent+name"),f.hovertemplate||c!=="none"&&c!=="skip"&&c){var d=s.rInscribed||0,h=n+s.pxmid[0]*(1-d),m=i+s.pxmid[1]*(1-d),g=u.separators,y=[];if(c&&c.indexOf("label")!==-1&&y.push(s.label),s.text=Dr.castOption(f.hovertext||f.text,s.pts),c&&c.indexOf("text")!==-1){var x=s.text;Na.isValidTextValue(x)&&y.push(x)}s.value=s.v,s.valueLabel=Dr.formatPieValue(s.v,g),c&&c.indexOf("value")!==-1&&y.push(s.valueLabel),s.percent=s.v/a.vTotal,s.percentLabel=Dr.formatPiePercent(s.percent,g),c&&c.indexOf("percent")!==-1&&y.push(s.percentLabel);var w=f.hoverlabel,T=w.font,b=[];rp.loneHover({trace:l,x0:h-d*a.r,x1:h+d*a.r,y:m,_x0:o?n+s.TL[0]:h-d*a.r,_x1:o?n+s.TR[0]:h+d*a.r,_y0:o?i+s.TL[1]:m-d*a.r,_y1:o?i+s.BL[1]:m+d*a.r,text:y.join("
"),name:f.hovertemplate||c.indexOf("name")!==-1?f.name:void 0,idealAlign:s.pxmid[0]<0?"left":"right",color:Dr.castOption(w.bgcolor,s.pts)||s.color,borderColor:Dr.castOption(w.bordercolor,s.pts),fontFamily:Dr.castOption(T.family,s.pts),fontSize:Dr.castOption(T.size,s.pts),fontColor:Dr.castOption(T.color,s.pts),nameLength:Dr.castOption(w.namelength,s.pts),textAlign:Dr.castOption(w.align,s.pts),hovertemplate:Dr.castOption(f.hovertemplate,s.pts),hovertemplateLabels:s,eventData:[tp(s,f)]},{container:u._hoverlayer.node(),outerContainer:u._paper.node(),gd:r,inOut_bbox:b}),s.bbox=b[0],l._hasHoverLabel=!0}l._hasHoverEvent=!0,r.emit("plotly_hover",{points:[tp(s,f)],event:Tn.event})}}),e.on("mouseout",function(s){var u=r._fullLayout,f=r._fullData[l.index],c=Tn.select(this).datum();l._hasHoverEvent&&(s.originalEvent=Tn.event,r.emit("plotly_unhover",{points:[tp(c,f)],event:Tn.event}),l._hasHoverEvent=!1),l._hasHoverLabel&&(rp.loneUnhover(u._hoverlayer.node()),l._hasHoverLabel=!1)}),e.on("click",function(s){var u=r._fullLayout,f=r._fullData[l.index];r._dragging||u.hovermode===!1||(r._hoverdata=[tp(s,f)],rp.click(r,Tn.event))})}function pme(e,r,t){var a=Dr.castOption(e.outsidetextfont.color,r.pts)||Dr.castOption(e.textfont.color,r.pts)||t.color,n=Dr.castOption(e.outsidetextfont.family,r.pts)||Dr.castOption(e.textfont.family,r.pts)||t.family,i=Dr.castOption(e.outsidetextfont.size,r.pts)||Dr.castOption(e.textfont.size,r.pts)||t.size,l=Dr.castOption(e.outsidetextfont.weight,r.pts)||Dr.castOption(e.textfont.weight,r.pts)||t.weight,o=Dr.castOption(e.outsidetextfont.style,r.pts)||Dr.castOption(e.textfont.style,r.pts)||t.style,s=Dr.castOption(e.outsidetextfont.variant,r.pts)||Dr.castOption(e.textfont.variant,r.pts)||t.variant,u=Dr.castOption(e.outsidetextfont.textcase,r.pts)||Dr.castOption(e.textfont.textcase,r.pts)||t.textcase,f=Dr.castOption(e.outsidetextfont.lineposition,r.pts)||Dr.castOption(e.textfont.lineposition,r.pts)||t.lineposition,c=Dr.castOption(e.outsidetextfont.shadow,r.pts)||Dr.castOption(e.textfont.shadow,r.pts)||t.shadow;return{color:a,family:n,size:i,weight:l,style:o,variant:s,textcase:u,lineposition:f,shadow:c}}function AH(e,r,t){var a=Dr.castOption(e.insidetextfont.color,r.pts);!a&&e._input.textfont&&(a=Dr.castOption(e._input.textfont.color,r.pts));var n=Dr.castOption(e.insidetextfont.family,r.pts)||Dr.castOption(e.textfont.family,r.pts)||t.family,i=Dr.castOption(e.insidetextfont.size,r.pts)||Dr.castOption(e.textfont.size,r.pts)||t.size,l=Dr.castOption(e.insidetextfont.weight,r.pts)||Dr.castOption(e.textfont.weight,r.pts)||t.weight,o=Dr.castOption(e.insidetextfont.style,r.pts)||Dr.castOption(e.textfont.style,r.pts)||t.style,s=Dr.castOption(e.insidetextfont.variant,r.pts)||Dr.castOption(e.textfont.variant,r.pts)||t.variant,u=Dr.castOption(e.insidetextfont.textcase,r.pts)||Dr.castOption(e.textfont.textcase,r.pts)||t.textcase,f=Dr.castOption(e.insidetextfont.lineposition,r.pts)||Dr.castOption(e.textfont.lineposition,r.pts)||t.lineposition,c=Dr.castOption(e.insidetextfont.shadow,r.pts)||Dr.castOption(e.textfont.shadow,r.pts)||t.shadow;return{color:a||_H.contrast(r.color),family:n,size:i,weight:l,style:o,variant:s,textcase:u,lineposition:f,shadow:c}}function kH(e,r){for(var t,a,n=0;n=-4;w-=2)x(Math.PI*w,"tan");for(w=4;w>=-4;w-=2)x(Math.PI*(w+1),"tan")}if(c||h){for(w=4;w>=-4;w-=2)x(Math.PI*(w+1.5),"rad");for(w=4;w>=-4;w-=2)x(Math.PI*(w+.5),"rad")}}if(o||m||c){var T=Math.sqrt(e.width*e.width+e.height*e.height);if(y={scale:n*a*2/T,rCenter:1-n,rotate:0},y.textPosAngle=(r.startangle+r.stopangle)/2,y.scale>=1)return y;g.push(y)}(m||h)&&(y=gH(e,a,l,s,u),y.textPosAngle=(r.startangle+r.stopangle)/2,g.push(y)),(m||d)&&(y=bH(e,a,l,s,u),y.textPosAngle=(r.startangle+r.stopangle)/2,g.push(y));for(var b=0,M=0,S=0;S=1)break}return g[b]}function mme(e,r){var t=e.startangle,a=e.stopangle;return t>r&&r>a||t0?1:-1)/2,y:i/(1+t*t/(a*a)),outside:!0}}function gme(e){var r=Math.sqrt(e.titleBox.width*e.titleBox.width+e.titleBox.height*e.titleBox.height);return{x:e.cx,y:e.cy,scale:e.trace.hole*e.r*2/r,tx:0,ty:-e.titleBox.height/2+e.trace.title.font.size}}function qH(e,r){var t=1,a=1,n,i=e.trace,l={x:e.cx,y:e.cy},o={tx:0,ty:0};o.ty+=i.title.font.size,n=EH(i),i.title.position.indexOf("top")!==-1?(l.y-=(1+n)*e.r,o.ty-=e.titleBox.height):i.title.position.indexOf("bottom")!==-1&&(l.y+=(1+n)*e.r);var s=bme(e.r,e.trace.aspectratio),u=r.w*(i.domain.x[1]-i.domain.x[0])/2;return i.title.position.indexOf("left")!==-1?(u=u+s,l.x-=(1+n)*s,o.tx+=e.titleBox.width/2):i.title.position.indexOf("center")!==-1?u*=2:i.title.position.indexOf("right")!==-1&&(u=u+s,l.x+=(1+n)*s,o.tx-=e.titleBox.width/2),t=u/e.titleBox.width,a=n6(e,r)/e.titleBox.height,{x:l.x,y:l.y,scale:Math.min(t,a),tx:o.tx,ty:o.ty}}function bme(e,r){return e/(r===void 0?1:r)}function n6(e,r){var t=e.trace,a=r.h*(t.domain.y[1]-t.domain.y[0]);return Math.min(e.titleBox.height,a/2)}function EH(e){var r=e.pull;if(!r)return 0;var t;if(Na.isArrayOrTypedArray(r))for(r=0,t=0;tr&&(r=e.pull[t]);return r}function xme(e,r){var t,a,n,i,l,o,s,u,f,c,d,h,m;function g(T,b){return T.pxmid[1]-b.pxmid[1]}function y(T,b){return b.pxmid[1]-T.pxmid[1]}function x(T,b){b||(b={});var M=b.labelExtraY+(a?b.yLabelMax:b.yLabelMin),S=a?T.yLabelMin:T.yLabelMax,A=a?T.yLabelMax:T.yLabelMin,L=T.cyFinal+l(T.px0[1],T.px1[1]),q=M-S,P,z,N,I,B,H;if(q*s>0&&(T.labelExtraY=q),!!Na.isArrayOrTypedArray(r.pull))for(z=0;z=(Dr.castOption(r.pull,N.pts)||0))&&((T.pxmid[1]-N.pxmid[1])*s>0?(I=N.cyFinal+l(N.px0[1],N.px1[1]),q=I-S-T.labelExtraY,q*s>0&&(T.labelExtraY+=q)):(A+T.labelExtraY-L)*s>0&&(P=3*o*Math.abs(z-c.indexOf(T)),B=N.cxFinal+i(N.px0[0],N.px1[0]),H=B+P-(T.cxFinal+T.pxmid[0])-T.labelExtraX,H*o>0&&(T.labelExtraX+=H)))}for(a=0;a<2;a++)for(n=a?g:y,l=a?Math.max:Math.min,s=a?1:-1,t=0;t<2;t++){for(i=t?Math.max:Math.min,o=t?1:-1,u=e[a][t],u.sort(n),f=e[1-a][t],c=f.concat(u),h=[],d=0;d1?(u=t.r,f=u/n.aspectratio):(f=t.r,u=f*n.aspectratio),u*=(1+n.baseratio)/2,s=u*f}l=Math.min(l,s/t.vTotal)}for(a=0;ar.vTotal/2?1:0,u.halfangle=Math.PI*Math.min(u.v/r.vTotal,.5),u.ring=1-a.hole,u.rInscribed=yme(u,r))}function ap(e,r){return[e*Math.sin(r),-e*Math.cos(r)]}function RH(e,r,t){var a=e._fullLayout,n=t.trace,i=n.texttemplate,l=n.textinfo;if(!i&&l&&l!=="none"){var o=l.split("+"),s=function(b){return o.indexOf(b)!==-1},u=s("label"),f=s("text"),c=s("value"),d=s("percent"),h=a.separators,m;if(m=u?[r.label]:[],f){var g=Dr.getFirstFilled(n.text,r.pts);yH(g)&&m.push(g)}c&&m.push(Dr.formatPieValue(r.v,h)),d&&m.push(Dr.formatPiePercent(r.v/t.vTotal,h)),r.text=m.join("
")}function y(b){return{label:b.label,value:b.v,valueLabel:Dr.formatPieValue(b.v,a.separators),percent:b.v/t.vTotal,percentLabel:Dr.formatPiePercent(b.v/t.vTotal,a.separators),color:b.color,text:b.text,customdata:Na.castOption(n,b.i,"customdata")}}if(i){var x=Na.castOption(n,r.i,"texttemplate");if(!x)r.text="";else{var w=y(r),T=Dr.getFirstFilled(n.text,r.pts);(yH(T)||T==="")&&(w.text=T),r.text=Na.texttemplateString({data:[w,n._meta],fallback:n.texttemplatefallback,labels:w,locale:e._fullLayout._d3locale,template:x})}}}function zH(e,r){var t=e.rotate*Math.PI/180,a=Math.cos(t),n=Math.sin(t),i=(r.left+r.right)/2,l=(r.top+r.bottom)/2;e.textX=i*a-l*n,e.textY=i*n+l*a,e.noCenter=!0}FH.exports={plot:dme,formatSliceLabel:RH,transformInsideText:CH,determineInsideTextFont:AH,positionTitleOutside:qH,prerenderTitles:kH,layoutAreas:PH,attachFxHandlers:TH,computeTransform:zH}});var HH=J((lxe,BH)=>{"use strict";var IH=Or(),Mme=N1(),Tme=Qc().resizeText;BH.exports=function(r){var t=r._fullLayout._pielayer.selectAll(".trace");Tme(r,t,"pie"),t.each(function(a){var n=a[0],i=n.trace,l=IH.select(this);l.style({opacity:i.opacity}),l.selectAll("path.surface").each(function(o){IH.select(this).call(Mme,o,i,r)})})}});var YH=J(Cu=>{"use strict";var OH=Qt();Cu.name="pie";Cu.plot=function(e,r,t,a){OH.plotBasePlot(Cu.name,e,r,t,a)};Cu.clean=function(e,r,t,a){OH.cleanBasePlot(Cu.name,e,r,t,a)}});var GH=J((sxe,UH)=>{"use strict";UH.exports={attributes:e6(),supplyDefaults:oH().supplyDefaults,supplyLayoutDefaults:fH(),layoutAttributes:r6(),calc:t6().calc,crossTraceCalc:t6().crossTraceCalc,plot:NH().plot,style:HH(),styleOne:N1(),moduleType:"trace",name:"pie",basePlotModule:YH(),categories:["pie-like","pie","showLegend"],meta:{}}});var XH=J((uxe,VH)=>{"use strict";VH.exports=GH()});var Ga=J((fxe,ZH)=>{"use strict";var WH=Object.getOwnPropertySymbols,Ame=Object.prototype.hasOwnProperty,kme=Object.prototype.propertyIsEnumerable;function Cme(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function Sme(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var r={},t=0;t<10;t++)r["_"+String.fromCharCode(t)]=t;var a=Object.getOwnPropertyNames(r).map(function(i){return r[i]});if(a.join("")!=="0123456789")return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach(function(i){n[i]=i}),Object.keys(Object.assign({},n)).join("")==="abcdefghijklmnopqrst"}catch(i){return!1}}ZH.exports=Sme()?Object.assign:function(e,r){for(var t,a=Cme(e),n,i=1;i{var ip=Ga();function JH(){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={}}ip(JH.prototype,{instance:function(e,r){e=(e||"gregorian").toLowerCase(),r=r||"";var t=this._localCals[e+"-"+r];if(!t&&this.calendars[e]&&(t=new this.calendars[e](r),this._localCals[e+"-"+r]=t),!t)throw(this.local.invalidCalendar||this.regionalOptions[""].invalidCalendar).replace(/\{0\}/,e);return t},newDate:function(e,r,t,a,n){return a=(e!=null&&e.year?e.calendar():typeof a=="string"?this.instance(a,n):a)||this.instance(),a.newDate(e,r,t)},substituteDigits:function(e){return function(r){return(r+"").replace(/[0-9]/g,function(t){return e[t]})}},substituteChineseDigits:function(e,r){return function(t){for(var a="",n=0;t>0;){var i=t%10;a=(i===0?"":e[i]+r[n])+a,n++,t=Math.floor(t/10)}return a.indexOf(e[1]+r[1])===0&&(a=a.substr(1)),a||e[0]}}});function i6(e,r,t,a){if(this._calendar=e,this._year=r,this._month=t,this._day=a,this._calendar._validateLevel===0&&!this._calendar.isValid(this._year,this._month,this._day))throw(Hr.local.invalidDate||Hr.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name)}function np(e,r){return e=""+e,"000000".substring(0,r-e.length)+e}ip(i6.prototype,{newDate:function(e,r,t){return this._calendar.newDate(e==null?this:e,r,t)},year:function(e){return arguments.length===0?this._year:this.set(e,"y")},month:function(e){return arguments.length===0?this._month:this.set(e,"m")},day:function(e){return arguments.length===0?this._day:this.set(e,"d")},date:function(e,r,t){if(!this._calendar.isValid(e,r,t))throw(Hr.local.invalidDate||Hr.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name);return this._year=e,this._month=r,this._day=t,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(e,r){return this._calendar.add(this,e,r)},set:function(e,r){return this._calendar.set(this,e,r)},compareTo:function(e){if(this._calendar.name!==e._calendar.name)throw(Hr.local.differentCalendars||Hr.regionalOptions[""].differentCalendars).replace(/\{0\}/,this._calendar.local.name).replace(/\{1\}/,e._calendar.local.name);var r=this._year!==e._year?this._year-e._year:this._month!==e._month?this.monthOfYear()-e.monthOfYear():this._day-e._day;return r===0?0:r<0?-1:1},calendar:function(){return this._calendar},toJD:function(){return this._calendar.toJD(this)},fromJD:function(e){return this._calendar.fromJD(e)},toJSDate:function(){return this._calendar.toJSDate(this)},fromJSDate:function(e){return this._calendar.fromJSDate(e)},toString:function(){return(this.year()<0?"-":"")+np(Math.abs(this.year()),4)+"-"+np(this.month(),2)+"-"+np(this.day(),2)}});function l6(){this.shortYearCutoff="+10"}ip(l6.prototype,{_validateLevel:0,newDate:function(e,r,t){return e==null?this.today():(e.year&&(this._validate(e,r,t,Hr.local.invalidDate||Hr.regionalOptions[""].invalidDate),t=e.day(),r=e.month(),e=e.year()),new i6(this,e,r,t))},today:function(){return this.fromJSDate(new Date)},epoch:function(e){var r=this._validate(e,this.minMonth,this.minDay,Hr.local.invalidYear||Hr.regionalOptions[""].invalidYear);return r.year()<0?this.local.epochs[0]:this.local.epochs[1]},formatYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Hr.local.invalidYear||Hr.regionalOptions[""].invalidYear);return(r.year()<0?"-":"")+np(Math.abs(r.year()),4)},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Hr.local.invalidYear||Hr.regionalOptions[""].invalidYear),12},monthOfYear:function(e,r){var t=this._validate(e,r,this.minDay,Hr.local.invalidMonth||Hr.regionalOptions[""].invalidMonth);return(t.month()+this.monthsInYear(t)-this.firstMonth)%this.monthsInYear(t)+this.minMonth},fromMonthOfYear:function(e,r){var t=(r+this.firstMonth-2*this.minMonth)%this.monthsInYear(e)+this.minMonth;return this._validate(e,t,this.minDay,Hr.local.invalidMonth||Hr.regionalOptions[""].invalidMonth),t},daysInYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Hr.local.invalidYear||Hr.regionalOptions[""].invalidYear);return this.leapYear(r)?366:365},dayOfYear:function(e,r,t){var a=this._validate(e,r,t,Hr.local.invalidDate||Hr.regionalOptions[""].invalidDate);return a.toJD()-this.newDate(a.year(),this.fromMonthOfYear(a.year(),this.minMonth),this.minDay).toJD()+1},daysInWeek:function(){return 7},dayOfWeek:function(e,r,t){var a=this._validate(e,r,t,Hr.local.invalidDate||Hr.regionalOptions[""].invalidDate);return(Math.floor(this.toJD(a))+2)%this.daysInWeek()},extraInfo:function(e,r,t){return this._validate(e,r,t,Hr.local.invalidDate||Hr.regionalOptions[""].invalidDate),{}},add:function(e,r,t){return this._validate(e,this.minMonth,this.minDay,Hr.local.invalidDate||Hr.regionalOptions[""].invalidDate),this._correctAdd(e,this._add(e,r,t),r,t)},_add:function(e,r,t){if(this._validateLevel++,t==="d"||t==="w"){var a=e.toJD()+r*(t==="w"?this.daysInWeek():1),n=e.calendar().fromJD(a);return this._validateLevel--,[n.year(),n.month(),n.day()]}try{var i=e.year()+(t==="y"?r:0),l=e.monthOfYear()+(t==="m"?r:0),n=e.day(),o=function(f){for(;lc-1+f.minMonth;)i++,l-=c,c=f.monthsInYear(i)};t==="y"?(e.month()!==this.fromMonthOfYear(i,l)&&(l=this.newDate(i,e.month(),this.minDay).monthOfYear()),l=Math.min(l,this.monthsInYear(i)),n=Math.min(n,this.daysInMonth(i,this.fromMonthOfYear(i,l)))):t==="m"&&(o(this),n=Math.min(n,this.daysInMonth(i,this.fromMonthOfYear(i,l))));var s=[i,this.fromMonthOfYear(i,l),n];return this._validateLevel--,s}catch(u){throw this._validateLevel--,u}},_correctAdd:function(e,r,t,a){if(!this.hasYearZero&&(a==="y"||a==="m")&&(r[0]===0||e.year()>0!=r[0]>0)){var n={y:[1,1,"y"],m:[1,this.monthsInYear(-1),"m"],w:[this.daysInWeek(),this.daysInYear(-1),"d"],d:[1,this.daysInYear(-1),"d"]}[a],i=t<0?-1:1;r=this._add(e,t*n[0]+i*n[1],n[2])}return e.date(r[0],r[1],r[2])},set:function(e,r,t){this._validate(e,this.minMonth,this.minDay,Hr.local.invalidDate||Hr.regionalOptions[""].invalidDate);var a=t==="y"?r:e.year(),n=t==="m"?r:e.month(),i=t==="d"?r:e.day();return(t==="y"||t==="m")&&(i=Math.min(i,this.daysInMonth(a,n))),e.date(a,n,i)},isValid:function(e,r,t){this._validateLevel++;var a=this.hasYearZero||e!==0;if(a){var n=this.newDate(e,r,this.minDay);a=r>=this.minMonth&&r-this.minMonth=this.minDay&&t-this.minDay13.5?13:1),u=n-(s>2.5?4716:4715);return u<=0&&u--,this.newDate(u,s,o)},toJSDate:function(e,r,t){var a=this._validate(e,r,t,Hr.local.invalidDate||Hr.regionalOptions[""].invalidDate),n=new Date(a.year(),a.month()-1,a.day());return n.setHours(0),n.setMinutes(0),n.setSeconds(0),n.setMilliseconds(0),n.setHours(n.getHours()>12?n.getHours()+2:0),n},fromJSDate:function(e){return this.newDate(e.getFullYear(),e.getMonth()+1,e.getDate())}});var Hr=$H.exports=new JH;Hr.cdate=i6;Hr.baseCalendar=l6;Hr.calendars.gregorian=o6});var KH=J(()=>{var s6=Ga(),Ca=Va();s6(Ca.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"});Ca.local=Ca.regionalOptions[""];s6(Ca.cdate.prototype,{formatDate:function(e,r){return typeof e!="string"&&(r=e,e=""),this._calendar.formatDate(e||"",this,r)}});s6(Ca.baseCalendar.prototype,{UNIX_EPOCH:Ca.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:1440*60,TICKS_EPOCH:Ca.instance().jdEpoch,TICKS_PER_DAY:1440*60*1e7,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(e,r,t){if(typeof e!="string"&&(t=r,r=e,e=""),!r)return"";if(r.calendar()!==this)throw Ca.local.invalidFormat||Ca.regionalOptions[""].invalidFormat;e=e||this.local.dateFormat,t=t||{};for(var a=t.dayNamesShort||this.local.dayNamesShort,n=t.dayNames||this.local.dayNames,i=t.monthNumbers||this.local.monthNumbers,l=t.monthNamesShort||this.local.monthNamesShort,o=t.monthNames||this.local.monthNames,s=t.calculateWeek||this.local.calculateWeek,u=function(b,M){for(var S=1;T+S1},f=function(b,M,S,A){var L=""+M;if(u(b,A))for(;L.length1},w=function(N,I){var B=x(N,I),H=[2,3,B?4:2,B?4:2,10,11,20]["oyYJ@!".indexOf(N)+1],Y=new RegExp("^-?\\d{1,"+H+"}"),G=r.substring(L).match(Y);if(!G)throw(Ca.local.missingNumberAt||Ca.regionalOptions[""].missingNumberAt).replace(/\{0\}/,L);return L+=G[0].length,parseInt(G[0],10)},T=this,b=function(){if(typeof o=="function"){x("m");var N=o.call(T,r.substring(L));return L+=N.length,N}return w("m")},M=function(N,I,B,H){for(var Y=x(N,H)?B:I,G=0;G-1){d=1,h=m;for(var z=this.daysInMonth(c,d);h>z;z=this.daysInMonth(c,d))d++,h-=z}return f>-1?this.fromJD(f):this.newDate(c,d,h)},determineDate:function(e,r,t,a,n){t&&typeof t!="object"&&(n=a,a=t,t=null),typeof a!="string"&&(n=a,a="");var i=this,l=function(o){try{return i.parseDate(a,o,n)}catch(c){}o=o.toLowerCase();for(var s=(o.match(/^c/)&&t?t.newDate():null)||i.today(),u=/([+-]?[0-9]+)\s*(d|w|m|y)?/g,f=u.exec(o);f;)s.add(parseInt(f[1],10),f[2]||"d"),f=u.exec(o);return s};return r=r?r.newDate():null,e=e==null?r:typeof e=="string"?l(e):typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?r:i.today().add(e,"d"):i.newDate(e),e}})});var jH=J(()=>{var Ao=Va(),Dme=Ga(),u6=Ao.instance();function lp(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}lp.prototype=new Ao.baseCalendar;Dme(lp.prototype,{name:"Chinese",jdEpoch:17214255e-1,hasYearZero:!1,minMonth:0,firstMonth:0,minDay:1,regionalOptions:{"":{name:"Chinese",epochs:["BEC","EC"],monthNumbers:function(e,r){if(typeof e=="string"){var t=e.match(qme);return t?t[0]:""}var a=this._validateYear(e),n=e.month(),i=""+this.toChineseMonth(a,n);return r&&i.length<2&&(i="0"+i),this.isIntercalaryMonth(a,n)&&(i+="i"),i},monthNames:function(e){if(typeof e=="string"){var r=e.match(Eme);return r?r[0]:""}var t=this._validateYear(e),a=e.month(),n=this.toChineseMonth(t,a),i=["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"][n-1];return this.isIntercalaryMonth(t,a)&&(i="\u95F0"+i),i},monthNamesShort:function(e){if(typeof e=="string"){var r=e.match(Pme);return r?r[0]:""}var t=this._validateYear(e),a=e.month(),n=this.toChineseMonth(t,a),i=["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"][n-1];return this.isIntercalaryMonth(t,a)&&(i="\u95F0"+i),i},parseMonth:function(e,r){e=this._validateYear(e);var t=parseInt(r),a;if(isNaN(t))r[0]==="\u95F0"&&(a=!0,r=r.substring(1)),r[r.length-1]==="\u6708"&&(r=r.substring(0,r.length-1)),t=1+["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"].indexOf(r);else{var n=r[r.length-1];a=n==="i"||n==="I"}var i=this.toMonthIndex(e,t,a);return i},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(e,r){if(e.year&&(e=e.year()),typeof e!="number"||e<1888||e>2111)throw r.replace(/\{0\}/,this.local.name);return e},toMonthIndex:function(e,r,t){var a=this.intercalaryMonth(e),n=t&&r!==a;if(n||r<1||r>12)throw Ao.local.invalidMonth.replace(/\{0\}/,this.local.name);var i;return a?!t&&r<=a?i=r-1:i=r:i=r-1,i},toChineseMonth:function(e,r){e.year&&(e=e.year(),r=e.month());var t=this.intercalaryMonth(e),a=t?12:11;if(r<0||r>a)throw Ao.local.invalidMonth.replace(/\{0\}/,this.local.name);var n;return t?r>13;return t},isIntercalaryMonth:function(e,r){e.year&&(e=e.year(),r=e.month());var t=this.intercalaryMonth(e);return!!t&&t===r},leapYear:function(e){return this.intercalaryMonth(e)!==0},weekOfYear:function(e,r,t){var a=this._validateYear(e,Ao.local.invalidyear),n=Co[a-Co[0]],i=n>>9&4095,l=n>>5&15,o=n&31,s;s=u6.newDate(i,l,o),s.add(4-(s.dayOfWeek()||7),"d");var u=this.toJD(e,r,t)-s.toJD();return 1+Math.floor(u/7)},monthsInYear:function(e){return this.leapYear(e)?13:12},daysInMonth:function(e,r){e.year&&(r=e.month(),e=e.year()),e=this._validateYear(e);var t=ko[e-ko[0]],a=t>>13,n=a?12:11;if(r>n)throw Ao.local.invalidMonth.replace(/\{0\}/,this.local.name);var i=t&1<<12-r?30:29;return i},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var a=this._validate(e,i,t,Ao.local.invalidDate);e=this._validateYear(a.year()),r=a.month(),t=a.day();var n=this.isIntercalaryMonth(e,r),i=this.toChineseMonth(e,r),l=zme(e,i,t,n);return u6.toJD(l.year,l.month,l.day)},fromJD:function(e){var r=u6.fromJD(e),t=Rme(r.year(),r.month(),r.day()),a=this.toMonthIndex(t.year,t.month,t.isIntercalary);return this.newDate(t.year,a,t.day)},fromString:function(e){var r=e.match(Lme),t=this._validateYear(+r[1]),a=+r[2],n=!!r[3],i=this.toMonthIndex(t,a,n),l=+r[4];return this.newDate(t,i,l)},add:function(e,r,t){var a=e.year(),n=e.month(),i=this.isIntercalaryMonth(a,n),l=this.toChineseMonth(a,n),o=Object.getPrototypeOf(lp.prototype).add.call(this,e,r,t);if(t==="y"){var s=o.year(),u=o.month(),f=this.isIntercalaryMonth(s,l),c=i&&f?this.toMonthIndex(s,l,!0):this.toMonthIndex(s,l,!1);c!==u&&o.month(c)}return o}});var Lme=/^\s*(-?\d\d\d\d|\d\d)[-/](\d?\d)([iI]?)[-/](\d?\d)/m,qme=/^\d?\d[iI]?/m,Eme=/^闰?十?[一二三四五六七八九]?月/m,Pme=/^闰?十?[一二三四五六七八九]?/m;Ao.calendars.chinese=lp;var ko=[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],Co=[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 Rme(e,r,t,a){var n,i;if(typeof e=="object")n=e,i=r||{};else{var l=typeof e=="number"&&e>=1888&&e<=2111;if(!l)throw new Error("Solar year outside range 1888-2111");var o=typeof r=="number"&&r>=1&&r<=12;if(!o)throw new Error("Solar month outside range 1 - 12");var s=typeof t=="number"&&t>=1&&t<=31;if(!s)throw new Error("Solar day outside range 1 - 31");n={year:e,month:r,day:t},i=a||{}}var u=Co[n.year-Co[0]],f=n.year<<9|n.month<<5|n.day;i.year=f>=u?n.year:n.year-1,u=Co[i.year-Co[0]];var c=u>>9&4095,d=u>>5&15,h=u&31,m,g=new Date(c,d-1,h),y=new Date(n.year,n.month-1,n.day);m=Math.round((y-g)/(24*3600*1e3));var x=ko[i.year-ko[0]],w;for(w=0;w<13;w++){var T=x&1<<12-w?30:29;if(m>13;return!b||w=1888&&e<=2111;if(!o)throw new Error("Lunar year outside range 1888-2111");var s=typeof r=="number"&&r>=1&&r<=12;if(!s)throw new Error("Lunar month outside range 1 - 12");var u=typeof t=="number"&&t>=1&&t<=30;if(!u)throw new Error("Lunar day outside range 1 - 30");var f;typeof a=="object"?(f=!1,i=a):(f=!!a,i=n||{}),l={year:e,month:r,day:t,isIntercalary:f}}var c;c=l.day-1;var d=ko[l.year-ko[0]],h=d>>13,m;h&&(l.month>h||l.isIntercalary)?m=l.month:m=l.month-1;for(var g=0;g>9&4095,T=x>>5&15,b=x&31,M=new Date(w,T-1,b+c);return i.year=M.getFullYear(),i.month=1+M.getMonth(),i.day=M.getDate(),i}});var QH=J(()=>{var Os=Va(),Fme=Ga();function f6(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}f6.prototype=new Os.baseCalendar;Fme(f6.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(t){var r=this._validate(t,this.minMonth,this.minDay,Os.local.invalidYear),t=r.year()+(r.year()<0?1:0);return t%4===3||t%4===-1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Os.local.invalidYear||Os.regionalOptions[""].invalidYear),13},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Os.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===13&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var a=this._validate(e,r,t,Os.local.invalidDate);return e=a.year(),e<0&&e++,a.day()+(a.month()-1)*30+(e-1)*365+Math.floor(e/4)+this.jdEpoch-1},fromJD:function(e){var r=Math.floor(e)+.5-this.jdEpoch,t=Math.floor((r-Math.floor((r+366)/1461))/365)+1;t<=0&&t--,r=Math.floor(e)+.5-this.newDate(t,1,1).toJD();var a=Math.floor(r/30)+1,n=r-(a-1)*30+1;return this.newDate(t,a,n)}});Os.calendars.coptic=f6});var eO=J(()=>{var Pl=Va(),Nme=Ga();function c6(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}c6.prototype=new Pl.baseCalendar;Nme(c6.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(e){return this._validate(e,this.minMonth,this.minDay,Pl.local.invalidYear),!1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Pl.local.invalidYear),13},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Pl.local.invalidYear),400},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/8)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Pl.local.invalidMonth);return this.daysPerMonth[t.month()-1]},daysInWeek:function(){return 8},dayOfWeek:function(e,r,t){var a=this._validate(e,r,t,Pl.local.invalidDate);return(a.day()+1)%8},weekDay:function(e,r,t){var a=this.dayOfWeek(e,r,t);return a>=2&&a<=6},extraInfo:function(e,r,t){var a=this._validate(e,r,t,Pl.local.invalidDate);return{century:Ime[Math.floor((a.year()-1)/100)+1]||""}},toJD:function(e,r,t){var a=this._validate(e,r,t,Pl.local.invalidDate);return e=a.year()+(a.year()<0?1:0),r=a.month(),t=a.day(),t+(r>1?16:0)+(r>2?(r-2)*32:0)+(e-1)*400+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e+.5)-Math.floor(this.jdEpoch)-1;var r=Math.floor(e/400)+1;e-=(r-1)*400,e+=e>15?16:0;var t=Math.floor(e/32)+1,a=e-(t-1)*32+1;return this.newDate(r<=0?r-1:r,t,a)}});var Ime={20:"Fruitbat",21:"Anchovy"};Pl.calendars.discworld=c6});var rO=J(()=>{var Ys=Va(),Bme=Ga();function v6(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}v6.prototype=new Ys.baseCalendar;Bme(v6.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(t){var r=this._validate(t,this.minMonth,this.minDay,Ys.local.invalidYear),t=r.year()+(r.year()<0?1:0);return t%4===3||t%4===-1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Ys.local.invalidYear||Ys.regionalOptions[""].invalidYear),13},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Ys.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===13&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var a=this._validate(e,r,t,Ys.local.invalidDate);return e=a.year(),e<0&&e++,a.day()+(a.month()-1)*30+(e-1)*365+Math.floor(e/4)+this.jdEpoch-1},fromJD:function(e){var r=Math.floor(e)+.5-this.jdEpoch,t=Math.floor((r-Math.floor((r+366)/1461))/365)+1;t<=0&&t--,r=Math.floor(e)+.5-this.newDate(t,1,1).toJD();var a=Math.floor(r/30)+1,n=r-(a-1)*30+1;return this.newDate(t,a,n)}});Ys.calendars.ethiopian=v6});var tO=J(()=>{var So=Va(),Hme=Ga();function d6(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}d6.prototype=new So.baseCalendar;Hme(d6.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(e){var r=this._validate(e,this.minMonth,this.minDay,So.local.invalidYear);return this._leapYear(r.year())},_leapYear:function(e){return e=e<0?e+1:e,op(e*7+1,19)<7},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,So.local.invalidYear),this._leapYear(e.year?e.year():e)?13:12},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,So.local.invalidYear);return e=r.year(),this.toJD(e===-1?1:e+1,7,1)-this.toJD(e,7,1)},daysInMonth:function(e,r){return e.year&&(r=e.month(),e=e.year()),this._validate(e,r,this.minDay,So.local.invalidMonth),r===12&&this.leapYear(e)||r===8&&op(this.daysInYear(e),10)===5?30:r===9&&op(this.daysInYear(e),10)===3?29:this.daysPerMonth[r-1]},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==6},extraInfo:function(e,r,t){var a=this._validate(e,r,t,So.local.invalidDate);return{yearType:(this.leapYear(a)?"embolismic":"common")+" "+["deficient","regular","complete"][this.daysInYear(a)%10-3]}},toJD:function(e,r,t){var a=this._validate(e,r,t,So.local.invalidDate);e=a.year(),r=a.month(),t=a.day();var n=e<=0?e+1:e,i=this.jdEpoch+this._delay1(n)+this._delay2(n)+t+1;if(r<7){for(var l=7;l<=this.monthsInYear(e);l++)i+=this.daysInMonth(e,l);for(var l=1;l=this.toJD(r===-1?1:r+1,7,1);)r++;for(var t=ethis.toJD(r,t,this.daysInMonth(r,t));)t++;var a=e-this.toJD(r,t,1)+1;return this.newDate(r,t,a)}});function op(e,r){return e-r*Math.floor(e/r)}So.calendars.hebrew=d6});var aO=J(()=>{var nv=Va(),Ome=Ga();function h6(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}h6.prototype=new nv.baseCalendar;Ome(h6.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\u012Bs","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(e){var r=this._validate(e,this.minMonth,this.minDay,nv.local.invalidYear);return(r.year()*11+14)%30<11},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInYear:function(e){return this.leapYear(e)?355:354},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,nv.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===12&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==5},toJD:function(e,r,t){var a=this._validate(e,r,t,nv.local.invalidDate);return e=a.year(),r=a.month(),t=a.day(),e=e<=0?e+1:e,t+Math.ceil(29.5*(r-1))+(e-1)*354+Math.floor((3+11*e)/30)+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e)+.5;var r=Math.floor((30*(e-this.jdEpoch)+10646)/10631);r=r<=0?r-1:r;var t=Math.min(12,Math.ceil((e-29-this.toJD(r,1,1))/29.5)+1),a=e-this.toJD(r,t,1)+1;return this.newDate(r,t,a)}});nv.calendars.islamic=h6});var nO=J(()=>{var iv=Va(),Yme=Ga();function p6(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}p6.prototype=new iv.baseCalendar;Yme(p6.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(t){var r=this._validate(t,this.minMonth,this.minDay,iv.local.invalidYear),t=r.year()<0?r.year()+1:r.year();return t%4===0},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(4-(a.dayOfWeek()||7),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,iv.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===2&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var a=this._validate(e,r,t,iv.local.invalidDate);return e=a.year(),r=a.month(),t=a.day(),e<0&&e++,r<=2&&(e--,r+=12),Math.floor(365.25*(e+4716))+Math.floor(30.6001*(r+1))+t-1524.5},fromJD:function(e){var r=Math.floor(e+.5),t=r+1524,a=Math.floor((t-122.1)/365.25),n=Math.floor(365.25*a),i=Math.floor((t-n)/30.6001),l=i-Math.floor(i<14?1:13),o=a-Math.floor(l>2?4716:4715),s=t-n-Math.floor(30.6001*i);return o<=0&&o--,this.newDate(o,l,s)}});iv.calendars.julian=p6});var lO=J(()=>{var di=Va(),Ume=Ga();function y6(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}y6.prototype=new di.baseCalendar;Ume(y6.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(e){return this._validate(e,this.minMonth,this.minDay,di.local.invalidYear),!1},formatYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,di.local.invalidYear);e=r.year();var t=Math.floor(e/400);e=e%400,e+=e<0?400:0;var a=Math.floor(e/20);return t+"."+a+"."+e%20},forYear:function(e){if(e=e.split("."),e.length<3)throw"Invalid Mayan year";for(var r=0,t=0;t19||t>0&&a<0)throw"Invalid Mayan year";r=r*20+a}return r},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,di.local.invalidYear),18},weekOfYear:function(e,r,t){return this._validate(e,r,t,di.local.invalidDate),0},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,di.local.invalidYear),360},daysInMonth:function(e,r){return this._validate(e,r,this.minDay,di.local.invalidMonth),20},daysInWeek:function(){return 5},dayOfWeek:function(e,r,t){var a=this._validate(e,r,t,di.local.invalidDate);return a.day()},weekDay:function(e,r,t){return this._validate(e,r,t,di.local.invalidDate),!0},extraInfo:function(e,r,t){var a=this._validate(e,r,t,di.local.invalidDate),n=a.toJD(),i=this._toHaab(n),l=this._toTzolkin(n);return{haabMonthName:this.local.haabMonths[i[0]-1],haabMonth:i[0],haabDay:i[1],tzolkinDayName:this.local.tzolkinMonths[l[0]-1],tzolkinDay:l[0],tzolkinTrecena:l[1]}},_toHaab:function(e){e-=this.jdEpoch;var r=m6(e+8+340,365);return[Math.floor(r/20)+1,m6(r,20)]},_toTzolkin:function(e){return e-=this.jdEpoch,[iO(e+20,20),iO(e+4,13)]},toJD:function(e,r,t){var a=this._validate(e,r,t,di.local.invalidDate);return a.day()+a.month()*20+a.year()*360+this.jdEpoch},fromJD:function(e){e=Math.floor(e)+.5-this.jdEpoch;var r=Math.floor(e/360);e=e%360,e+=e<0?360:0;var t=Math.floor(e/20),a=e%20;return this.newDate(r,t,a)}});function m6(e,r){return e-r*Math.floor(e/r)}function iO(e,r){return m6(e-1,r)+1}di.calendars.mayan=y6});var sO=J(()=>{var Us=Va(),Gme=Ga();function g6(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}g6.prototype=new Us.baseCalendar;var oO=Us.instance("gregorian");Gme(g6.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(e){var r=this._validate(e,this.minMonth,this.minDay,Us.local.invalidYear||Us.regionalOptions[""].invalidYear);return oO.leapYear(r.year()+(r.year()<1?1:0)+1469)},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(1-(a.dayOfWeek()||7),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Us.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===12&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(n,r,t){var a=this._validate(n,r,t,Us.local.invalidMonth),n=a.year();n<0&&n++;for(var i=a.day(),l=1;l=this.toJD(r+1,1,1);)r++;for(var t=e-Math.floor(this.toJD(r,1,1)+.5)+1,a=1;t>this.daysInMonth(r,a);)t-=this.daysInMonth(r,a),a++;return this.newDate(r,a,t)}});Us.calendars.nanakshahi=g6});var uO=J(()=>{var Gs=Va(),Vme=Ga();function b6(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}b6.prototype=new Gs.baseCalendar;Vme(b6.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(e){return this.daysInYear(e)!==this.daysPerYear},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Gs.local.invalidYear);if(e=r.year(),typeof this.NEPALI_CALENDAR_DATA[e]=="undefined")return this.daysPerYear;for(var t=0,a=this.minMonth;a<=12;a++)t+=this.NEPALI_CALENDAR_DATA[e][a];return t},daysInMonth:function(e,r){return e.year&&(r=e.month(),e=e.year()),this._validate(e,r,this.minDay,Gs.local.invalidMonth),typeof this.NEPALI_CALENDAR_DATA[e]=="undefined"?this.daysPerMonth[r-1]:this.NEPALI_CALENDAR_DATA[e][r]},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==6},toJD:function(e,r,t){var a=this._validate(e,r,t,Gs.local.invalidDate);e=a.year(),r=a.month(),t=a.day();var n=Gs.instance(),i=0,l=r,o=e;this._createMissingCalendarData(e);var s=e-(l>9||l===9&&t>=this.NEPALI_CALENDAR_DATA[o][0]?56:57);for(r!==9&&(i=t,l--);l!==9;)l<=0&&(l=12,o--),i+=this.NEPALI_CALENDAR_DATA[o][l],l--;return r===9?(i+=t-this.NEPALI_CALENDAR_DATA[o][0],i<0&&(i+=n.daysInYear(s))):i+=this.NEPALI_CALENDAR_DATA[o][9]-this.NEPALI_CALENDAR_DATA[o][0],n.newDate(s,1,1).add(i,"d").toJD()},fromJD:function(e){var r=Gs.instance(),t=r.fromJD(e),a=t.year(),n=t.dayOfYear(),i=a+56;this._createMissingCalendarData(i);for(var l=9,o=this.NEPALI_CALENDAR_DATA[i][0],s=this.NEPALI_CALENDAR_DATA[i][l]-o+1;n>s;)l++,l>12&&(l=1,i++),s+=this.NEPALI_CALENDAR_DATA[i][l];var u=this.NEPALI_CALENDAR_DATA[i][l]-(s-n);return this.newDate(i,l,u)},_createMissingCalendarData:function(e){var r=this.daysPerMonth.slice(0);r.unshift(17);for(var t=e-1;t{var Su=Va(),Xme=Ga();function up(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}function sp(e){var r=e-475;e<0&&r++;var t=.242197,a=t*r,n=t*(r+1),i=a-Math.floor(a),l=n-Math.floor(n);return i>l}up.prototype=new Su.baseCalendar;Xme(up.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","Dey","Bahman","Esfand"],monthNamesShort:["Far","Ord","Kho","Tir","Mor","Sha","Meh","Aba","Aza","Dey","Bah","Esf"],dayNames:["Yekshanbeh","Doshanbeh","Seshanbeh","Chah\u0101rshanbeh","Panjshanbeh","Jom'eh","Shanbeh"],dayNamesShort:["Yek","Do","Se","Cha","Panj","Jom","Sha"],dayNamesMin:["Ye","Do","Se","Ch","Pa","Jo","Sh"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Su.local.invalidYear);return sp(r.year())},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-((a.dayOfWeek()+1)%7),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Su.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===12&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==5},toJD:function(e,r,t){var a=this._validate(e,r,t,Su.local.invalidDate);e=a.year(),r=a.month(),t=a.day();var n=0;if(e>0)for(var i=1;i0?e-1:e)*365+n+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e)+.5;var r=475+(e-this.toJD(475,1,1))/365.242197,t=Math.floor(r);t<=0&&t--,e>this.toJD(t,12,sp(t)?30:29)&&(t++,t===0&&t++);var a=e-this.toJD(t,1,1)+1,n=a<=186?Math.ceil(a/31):Math.ceil((a-6)/30),i=e-this.toJD(t,n,1)+1;return this.newDate(t,n,i)}});Su.calendars.persian=up;Su.calendars.jalali=up});var cO=J(()=>{var Vs=Va(),Wme=Ga(),fp=Vs.instance();function x6(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}x6.prototype=new Vs.baseCalendar;Wme(x6.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(t){var r=this._validate(t,this.minMonth,this.minDay,Vs.local.invalidYear),t=this._t2gYear(r.year());return fp.leapYear(t)},weekOfYear:function(n,r,t){var a=this._validate(n,this.minMonth,this.minDay,Vs.local.invalidYear),n=this._t2gYear(a.year());return fp.weekOfYear(n,a.month(),a.day())},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Vs.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===2&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(n,r,t){var a=this._validate(n,r,t,Vs.local.invalidDate),n=this._t2gYear(a.year());return fp.toJD(n,a.month(),a.day())},fromJD:function(e){var r=fp.fromJD(e),t=this._g2tYear(r.year());return this.newDate(t,r.month(),r.day())},_t2gYear:function(e){return e+this.yearsOffset+(e>=-this.yearsOffset&&e<=-1?1:0)},_g2tYear:function(e){return e-this.yearsOffset-(e>=1&&e<=this.yearsOffset?1:0)}});Vs.calendars.taiwan=x6});var vO=J(()=>{var Xs=Va(),Zme=Ga(),cp=Xs.instance();function _6(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}_6.prototype=new Xs.baseCalendar;Zme(_6.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(t){var r=this._validate(t,this.minMonth,this.minDay,Xs.local.invalidYear),t=this._t2gYear(r.year());return cp.leapYear(t)},weekOfYear:function(n,r,t){var a=this._validate(n,this.minMonth,this.minDay,Xs.local.invalidYear),n=this._t2gYear(a.year());return cp.weekOfYear(n,a.month(),a.day())},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Xs.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===2&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(n,r,t){var a=this._validate(n,r,t,Xs.local.invalidDate),n=this._t2gYear(a.year());return cp.toJD(n,a.month(),a.day())},fromJD:function(e){var r=cp.fromJD(e),t=this._g2tYear(r.year());return this.newDate(t,r.month(),r.day())},_t2gYear:function(e){return e-this.yearsOffset-(e>=1&&e<=this.yearsOffset?1:0)},_g2tYear:function(e){return e+this.yearsOffset+(e>=-this.yearsOffset&&e<=-1?1:0)}});Xs.calendars.thai=_6});var dO=J(()=>{var Ws=Va(),Jme=Ga();function w6(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}w6.prototype=new Ws.baseCalendar;Jme(w6.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\u0101th\u0101\u2019","Yawm al-Arba\u2018\u0101\u2019","Yawm al-Kham\u012Bs","Yawm al-Jum\u2018a","Yawm al-Sabt"],dayNamesMin:["Ah","Ith","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!0}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Ws.local.invalidYear);return this.daysInYear(r.year())===355},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInYear:function(e){for(var r=0,t=1;t<=12;t++)r+=this.daysInMonth(e,t);return r},daysInMonth:function(e,r){for(var t=this._validate(e,r,this.minDay,Ws.local.invalidMonth),a=t.toJD()-24e5+.5,n=0,i=0;ia)return Do[n]-Do[n-1];n++}return 30},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==5},toJD:function(e,r,t){var a=this._validate(e,r,t,Ws.local.invalidDate),n=12*(a.year()-1)+a.month()-15292,i=a.day()+Do[n-1]-1;return i+24e5-.5},fromJD:function(e){for(var r=e-24e5+.5,t=0,a=0;ar);a++)t++;var n=t+15292,i=Math.floor((n-1)/12),l=i+1,o=n-12*i,s=r-Do[t-1]+1;return this.newDate(l,o,s)},isValid:function(e,r,t){var a=Ws.baseCalendar.prototype.isValid.apply(this,arguments);return a&&(e=e.year!=null?e.year:e,a=e>=1276&&e<=1500),a},_validate:function(e,r,t,a){var n=Ws.baseCalendar.prototype._validate.apply(this,arguments);if(n.year<1276||n.year>1500)throw a.replace(/\{0\}/,this.local.name);return n}});Ws.calendars.ummalqura=w6;var Do=[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]});var pO=J((Yxe,hO)=>{"use strict";hO.exports=Va();KH();jH();QH();eO();rO();tO();aO();nO();lO();sO();uO();fO();cO();vO();dO()});var wO=J((Uxe,_O)=>{"use strict";var yO=pO(),lv=Re(),gO=(la(),Xe(da)),$me=gO.EPOCHJD,Kme=gO.ONEDAY,A6={valType:"enumerated",values:lv.sortObjectKeys(yO.calendars),editType:"calc",dflt:"gregorian"},bO=function(e,r,t,a){var n={};return n[t]=A6,lv.coerce(e,r,n,t,a)},jme=function(e,r,t,a){for(var n=0;n{"use strict";MO.exports=wO()});var nye=J((Vxe,kO)=>{var AO=ZI();AO.register([rH(),XH(),TO()]);kO.exports=AO});return nye();})(); +`||r[Br]===" "||r[Br]===" ");)Br++;continue}if(a===",")return;if(a===")"){t.push({type:fr.ParenClose});continue}if(a==="+"){if(Br--,Gv(r)){t.push(rf(r));continue}return}if(a==="-"){if(Br--,Gv(r)){t.push(rf(r));continue}if(Am(r)){t.push({type:fr.Ident,value:Zv(r)});continue}return}if(a==="."){if(Br--,Gv(r)){t.push(rf(r));continue}return}if(a==="/"){for(;Br4)){if(t.length===4){if(t[3].type!==fr.Alpha)return;t[3]=t[3].value}return t.length===3&&t.push({type:fr.None,value:void 0}),t.every(n=>n.type!==fr.Alpha)?t:void 0}}function aV(e,r){e._i=0;let t=e[e._i++];if(!t||t.type!==fr.Function)return;let a=Q_(e,r);if(a)return a.unshift(t.value),a}var nV=e=>{if(typeof e!="string")return;let r=rV(e),t=r?aV(r,!0):void 0,a,n=0,i=m0.length;for(;ne==="transparent"?{mode:"rgb",r:0,g:0,b:0,alpha:0}:void 0,t7=lV,Xo=(e,r,t)=>e+t*(r-e),oV=(e,r,t)=>(t-e)/(r-e),km=(e,r,t,a,n,i)=>Xo(Xo(e,r,n),Xo(t,a,n),i),sV=(e,r,t,a,n,i,l,o,s,u,f)=>Xo(km(e,r,t,a,s,u),km(n,i,l,o,s,u),f),uV=e=>{let r=[];for(let t=0;tr=>{let t=uV(r);return a=>{let n=a*t.length,i=a>=1?t.length-1:Math.max(Math.floor(n),0),l=t[i];return l===void 0?void 0:e(l[0],l[1],n-i)}},br=a7(Xo),ba=e=>{let r=!1,t=e.map(a=>a!==void 0?(r=!0,a):1);return r?t:e},fV={mode:"rgb",channels:["r","g","b","alpha"],parse:[r7,J_,$_,Z_,t7,"srgb"],serialize:"srgb",interpolate:{r:br,g:br,b:br,alpha:{use:br,fixup:ba}},gamut:!0,white:{r:1,g:1,b:1},black:{r:0,g:0,b:0}},Jo=fV,rm=(e=0)=>Math.pow(Math.abs(e),563/256)*Math.sign(e),cV=e=>{let r=rm(e.r),t=rm(e.g),a=rm(e.b),n={mode:"xyz65",x:.5766690429101305*r+.1855582379065463*t+.1882286462349947*a,y:.297344975250536*r+.6273635662554661*t+.0752914584939979*a,z:.0270313613864123*r+.0706888525358272*t+.9913375368376386*a};return e.alpha!==void 0&&(n.alpha=e.alpha),n},Cm=cV,tm=e=>Math.pow(Math.abs(e),256/563)*Math.sign(e),vV=({x:e,y:r,z:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n={mode:"a98",r:tm(e*2.0415879038107465-r*.5650069742788597-.3447313507783297*t),g:tm(e*-.9692436362808798+r*1.8759675015077206+.0415550574071756*t),b:tm(e*.0134442806320312-r*.1183623922310184+1.0151749943912058*t)};return a!==void 0&&(n.alpha=a),n},Sm=vV,am=(e=0)=>{let r=Math.abs(e);return r<=.04045?e/12.92:(Math.sign(e)||1)*Math.pow((r+.055)/1.055,2.4)},dV=({r:e,g:r,b:t,alpha:a})=>{let n={mode:"lrgb",r:am(e),g:am(r),b:am(t)};return a!==void 0&&(n.alpha=a),n},$o=dV,hV=e=>{let{r,g:t,b:a,alpha:n}=$o(e),i={mode:"xyz65",x:.4123907992659593*r+.357584339383878*t+.1804807884018343*a,y:.2126390058715102*r+.715168678767756*t+.0721923153607337*a,z:.0193308187155918*r+.119194779794626*t+.9505321522496607*a};return n!==void 0&&(i.alpha=n),i},Gl=hV,nm=(e=0)=>{let r=Math.abs(e);return r>.0031308?(Math.sign(e)||1)*(1.055*Math.pow(r,1/2.4)-.055):e*12.92},pV=({r:e,g:r,b:t,alpha:a},n="rgb")=>{let i={mode:n,r:nm(e),g:nm(r),b:nm(t)};return a!==void 0&&(i.alpha=a),i},Ko=pV,mV=({x:e,y:r,z:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=Ko({r:e*3.2409699419045226-r*1.537383177570094-.4986107602930034*t,g:e*-.9692436362808796+r*1.8759675015077204+.0415550574071756*t,b:e*.0556300796969936-r*.2039769588889765+1.0569715142428784*t});return a!==void 0&&(n.alpha=a),n},Vl=mV,gV=St(ut({},Jo),{mode:"a98",parse:["a98-rgb"],serialize:"a98-rgb",fromMode:{rgb:e=>Sm(Gl(e)),xyz65:Sm},toMode:{rgb:e=>Vl(Cm(e)),xyz65:Cm}}),n7=gV,yV=e=>(e=e%360)<0?e+360:e,Wa=yV,a2=(e,r)=>e.map((t,a,n)=>{if(t===void 0)return t;let i=Wa(t);return a===0||e[a-1]===void 0?i:r(i-Wa(n[a-1]))}).reduce((t,a)=>!t.length||a===void 0||t[t.length-1]===void 0?(t.push(a),t):(t.push(a+t[t.length-1]),t),[]),Zi=e=>a2(e,r=>Math.abs(r)<=180?r:r-360*Math.sign(r)),bV=e=>a2(e,r=>Math.abs(r)>=180||r===0?r:r-360*Math.sign(r)),xV=e=>a2(e,r=>r>=0?r:r+360),_V=e=>a2(e,r=>r<=0?r:r-360),Ba=[-.14861,1.78277,-.29227,-.90649,1.97294,0],wV=Math.PI/180,MV=180/Math.PI,F_=Ba[3]*Ba[4],N_=Ba[1]*Ba[4],I_=Ba[1]*Ba[2]-Ba[0]*Ba[3],TV=({r:e,g:r,b:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=(I_*t+e*F_-r*N_)/(I_+F_-N_),i=t-n,l=(Ba[4]*(r-n)-Ba[2]*i)/Ba[3],o={mode:"cubehelix",l:n,s:n===0||n===1?void 0:Math.sqrt(i*i+l*l)/(Ba[4]*n*(1-n))};return o.s&&(o.h=Math.atan2(l,i)*MV-120),a!==void 0&&(o.alpha=a),o},i7=TV,AV=({h:e,s:r,l:t,alpha:a})=>{let n={mode:"rgb"};e=(e===void 0?0:e+120)*wV,t===void 0&&(t=0);let i=r===void 0?0:r*t*(1-t),l=Math.cos(e),o=Math.sin(e);return n.r=t+i*(Ba[0]*l+Ba[1]*o),n.g=t+i*(Ba[2]*l+Ba[3]*o),n.b=t+i*(Ba[4]*l+Ba[5]*o),a!==void 0&&(n.alpha=a),n},l7=AV,of=(e,r)=>{if(e.h===void 0||r.h===void 0||!e.s||!r.s)return 0;let t=Wa(e.h),a=Wa(r.h),n=Math.sin((a-t+360)/2*Math.PI/180);return 2*Math.sqrt(e.s*r.s)*n},o7=(e,r)=>{if(e.h===void 0||r.h===void 0)return 0;let t=Wa(e.h),a=Wa(r.h);return Math.abs(a-t)>180?t-(a-360*Math.sign(a-t)):a-t},sf=(e,r)=>{if(e.h===void 0||r.h===void 0||!e.c||!r.c)return 0;let t=Wa(e.h),a=Wa(r.h),n=Math.sin((a-t+360)/2*Math.PI/180);return 2*Math.sqrt(e.c*r.c)*n},g0=(e="rgb",r=[1,1,1,0])=>{let t=an(e),a=t.channels,n=t.difference,i=xt(e);return(l,o)=>{let s=i(l),u=i(o);return Math.sqrt(a.reduce((f,c,d)=>{let h=n[c]?n[c](s,u):s[c]-u[c];return f+(r[d]||0)*Math.pow(isNaN(h)?0:h,2)},0))}},kV=()=>g0("lab65"),CV=(e=1,r=.045,t=.015)=>{let a=xt("lab65");return(n,i)=>{let l=a(n),o=a(i),s=l.l,u=l.a,f=l.b,c=Math.sqrt(u*u+f*f),d=o.l,h=o.a,p=o.b,g=Math.sqrt(h*h+p*p),y=Math.pow(s-d,2),x=Math.pow(c-g,2),w=Math.pow(u-h,2)+Math.pow(f-p,2)-x;return Math.sqrt(y/Math.pow(e,2)+x/Math.pow(1+r*c,2)+w/Math.pow(1+t*c,2))}},SV=(e=1,r=1,t=1)=>{let a=xt("lab65");return(n,i)=>{let l=a(n),o=a(i),s=l.l,u=l.a,f=l.b,c=Math.sqrt(u*u+f*f),d=o.l,h=o.a,p=o.b,g=Math.sqrt(h*h+p*p),y=(c+g)/2,x=.5*(1-Math.sqrt(Math.pow(y,7)/(Math.pow(y,7)+Math.pow(25,7)))),w=u*(1+x),M=h*(1+x),b=Math.sqrt(w*w+f*f),T=Math.sqrt(M*M+p*p),S=Math.abs(w)+Math.abs(f)===0?0:Math.atan2(f,w);S+=(S<0)*2*Math.PI;let C=Math.abs(M)+Math.abs(p)===0?0:Math.atan2(p,M);C+=(C<0)*2*Math.PI;let L=d-s,q=T-b,P=b*T===0?0:C-S;P-=(P>Math.PI)*2*Math.PI,P+=(P<-Math.PI)*2*Math.PI;let z=2*Math.sqrt(b*T)*Math.sin(P/2),N=(s+d)/2,H=(b+T)/2,B;b*T===0?B=S+C:(B=(S+C)/2,B-=(Math.abs(S-C)>Math.PI)*Math.PI,B+=(B<0)*2*Math.PI);let I=Math.pow(N-50,2),V=1-.17*Math.cos(B-Math.PI/6)+.24*Math.cos(2*B)+.32*Math.cos(3*B+Math.PI/30)-.2*Math.cos(4*B-63*Math.PI/180),O=1+.015*I/Math.sqrt(20+I),U=1+.045*H,W=1+.015*H*V,Z=30*Math.PI/180*Math.exp(-1*Math.pow((180/Math.PI*B-275)/25,2)),G=2*Math.sqrt(Math.pow(H,7)/(Math.pow(H,7)+Math.pow(25,7))),j=-1*Math.sin(2*Z)*G;return Math.sqrt(Math.pow(L/(e*O),2)+Math.pow(q/(r*U),2)+Math.pow(z/(t*W),2)+j*q/(r*U)*z/(t*W))}},DV=(e=1,r=1)=>{let t=xt("lab65");return(a,n)=>{let i=t(a),l=i.l,o=i.a,s=i.b,u=Math.sqrt(o*o+s*s),f=Math.atan2(s,o);f=f+2*Math.PI*(f<0);let c=t(n),d=c.l,h=c.a,p=c.b,g=Math.sqrt(h*h+p*p),y=Math.pow(l-d,2),x=Math.pow(u-g,2),w=Math.pow(o-h,2)+Math.pow(s-p,2)-x,M=Math.sqrt(Math.pow(u,4)/(Math.pow(u,4)+1900)),b=f>=164/180*Math.PI&&f<=345/180*Math.PI?.56+Math.abs(.2*Math.cos(f+168/180*Math.PI)):.36+Math.abs(.4*Math.cos(f+35/180*Math.PI)),T=l<16?.511:.040975*l/(1+.01765*l),S=.0638*u/(1+.0131*u)+.638,C=S*(M*b+1-M);return Math.sqrt(y/Math.pow(e*T,2)+x/Math.pow(r*S,2)+w/Math.pow(C,2))}},LV=()=>{let e=xt("lab65");return(r,t)=>{let a=e(r),n=e(t),i=a.l-n.l,l=a.a-n.a,o=a.b-n.b;return Math.abs(i)+Math.sqrt(l*l+o*o)}},qV=()=>g0("yiq",[.5053,.299,.1957]),EV=()=>g0("itp",[518400,129600,518400]),Ji=e=>{let r=e.reduce((a,n)=>{if(n!==void 0){let i=n*Math.PI/180;a.sin+=Math.sin(i),a.cos+=Math.cos(i)}return a},{sin:0,cos:0}),t=Math.atan2(r.sin,r.cos)*180/Math.PI;return t<0?360+t:t},s7=e=>{let r=e.filter(t=>t!==void 0);return r.length?r.reduce((t,a)=>t+a,0)/r.length:void 0},im=e=>typeof e=="function";function PV(e,r="rgb",t){let a=an(r),n=e.map(xt(r));return a.channels.reduce((i,l)=>{let o=n.map(s=>s[l]).filter(s=>s!==void 0);if(o.length){let s;im(t)?s=t:t&&im(t[l])?s=t[l]:a.average&&im(a.average[l])?s=a.average[l]:s=s7,i[l]=s(o,l)}return i},{mode:r})}var RV={mode:"cubehelix",channels:["h","s","l","alpha"],parse:["--cubehelix"],serialize:"--cubehelix",ranges:{h:[0,360],s:[0,4.614],l:[0,1]},fromMode:{rgb:i7},toMode:{rgb:l7},interpolate:{h:{use:br,fixup:Zi},s:br,l:br,alpha:{use:br,fixup:ba}},difference:{h:of},average:{h:Ji}},u7=RV,zV=({l:e,a:r,b:t,alpha:a},n="lch")=>{r===void 0&&(r=0),t===void 0&&(t=0);let i=Math.sqrt(r*r+t*t),l={mode:n,l:e,c:i};return i&&(l.h=Wa(Math.atan2(t,r)*180/Math.PI)),a!==void 0&&(l.alpha=a),l},yl=zV,FV=({l:e,c:r,h:t,alpha:a},n="lab")=>{t===void 0&&(t=0);let i={mode:n,l:e,a:r?r*Math.cos(t/180*Math.PI):0,b:r?r*Math.sin(t/180*Math.PI):0};return a!==void 0&&(i.alpha=a),i},bl=FV,f7=Math.pow(29,3)/Math.pow(3,3),c7=Math.pow(6,3)/Math.pow(29,3),ya={X:.3457/.3585,Y:1,Z:(1-.3457-.3585)/.3585},h0={X:.3127/.329,Y:1,Z:(1-.3127-.329)/.329},Fge=Math.pow(29,3)/Math.pow(3,3),Nge=Math.pow(6,3)/Math.pow(29,3),lm=e=>Math.pow(e,3)>c7?Math.pow(e,3):(116*e-16)/f7,NV=({l:e,a:r,b:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=(e+16)/116,i=r/500+n,l=n-t/200,o={mode:"xyz65",x:lm(i)*h0.X,y:lm(n)*h0.Y,z:lm(l)*h0.Z};return a!==void 0&&(o.alpha=a),o},Jm=NV,IV=e=>Vl(Jm(e)),uf=IV,om=e=>e>c7?Math.cbrt(e):(f7*e+16)/116,BV=({x:e,y:r,z:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=om(e/h0.X),i=om(r/h0.Y),l=om(t/h0.Z),o={mode:"lab65",l:116*i-16,a:500*(n-i),b:200*(i-l)};return a!==void 0&&(o.alpha=a),o},$m=BV,HV=e=>{let r=$m(Gl(e));return e.r===e.b&&e.b===e.g&&(r.a=r.b=0),r},ff=HV,Jv=1,v7=1,lf=26/180*Math.PI,$v=Math.cos(lf),Kv=Math.sin(lf),d7=100/Math.log(139/100),OV=({l:e,c:r,h:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n={mode:"lab65",l:(Math.exp(e*Jv/d7)-1)/.0039},i=(Math.exp(.0435*r*v7*Jv)-1)/.075,l=i*Math.cos(t/180*Math.PI-lf),o=i*Math.sin(t/180*Math.PI-lf);return n.a=l*$v-o/.83*Kv,n.b=l*Kv+o/.83*$v,a!==void 0&&(n.alpha=a),n},jv=OV,YV=({l:e,a:r,b:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=r*$v+t*Kv,i=.83*(t*$v-r*Kv),l=Math.sqrt(n*n+i*i),o={mode:"dlch",l:d7/Jv*Math.log(1+.0039*e),c:Math.log(1+.075*l)/(.0435*v7*Jv)};return o.c&&(o.h=Wa((Math.atan2(i,n)+lf)/Math.PI*180)),a!==void 0&&(o.alpha=a),o},Qv=YV,B_=e=>jv(yl(e,"dlch")),H_=e=>bl(Qv(e),"dlab"),UV={mode:"dlab",parse:["--din99o-lab"],serialize:"--din99o-lab",toMode:{lab65:B_,rgb:e=>uf(B_(e))},fromMode:{lab65:H_,rgb:e=>H_(ff(e))},channels:["l","a","b","alpha"],ranges:{l:[0,100],a:[-40.09,45.501],b:[-40.469,44.344]},interpolate:{l:br,a:br,b:br,alpha:{use:br,fixup:ba}}},h7=UV,GV={mode:"dlch",parse:["--din99o-lch"],serialize:"--din99o-lch",toMode:{lab65:jv,dlab:e=>bl(e,"dlab"),rgb:e=>uf(jv(e))},fromMode:{lab65:Qv,dlab:e=>yl(e,"dlch"),rgb:e=>Qv(ff(e))},channels:["l","c","h","alpha"],ranges:{l:[0,100],c:[0,51.484],h:[0,360]},interpolate:{l:br,c:br,h:{use:br,fixup:Zi},alpha:{use:br,fixup:ba}},difference:{h:sf},average:{h:Ji}},p7=GV;function m7({h:e,s:r,i:t,alpha:a}){e=Wa(e!==void 0?e:0),r===void 0&&(r=0),t===void 0&&(t=0);let n=Math.abs(e/60%2-1),i;switch(Math.floor(e/60)){case 0:i={r:t*(1+r*(3/(2-n)-1)),g:t*(1+r*(3*(1-n)/(2-n)-1)),b:t*(1-r)};break;case 1:i={r:t*(1+r*(3*(1-n)/(2-n)-1)),g:t*(1+r*(3/(2-n)-1)),b:t*(1-r)};break;case 2:i={r:t*(1-r),g:t*(1+r*(3/(2-n)-1)),b:t*(1+r*(3*(1-n)/(2-n)-1))};break;case 3:i={r:t*(1-r),g:t*(1+r*(3*(1-n)/(2-n)-1)),b:t*(1+r*(3/(2-n)-1))};break;case 4:i={r:t*(1+r*(3*(1-n)/(2-n)-1)),g:t*(1-r),b:t*(1+r*(3/(2-n)-1))};break;case 5:i={r:t*(1+r*(3/(2-n)-1)),g:t*(1-r),b:t*(1+r*(3*(1-n)/(2-n)-1))};break;default:i={r:t*(1-r),g:t*(1-r),b:t*(1-r)}}return i.mode="rgb",a!==void 0&&(i.alpha=a),i}function g7({r:e,g:r,b:t,alpha:a}){e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=Math.max(e,r,t),i=Math.min(e,r,t),l={mode:"hsi",s:e+r+t===0?0:1-3*i/(e+r+t),i:(e+r+t)/3};return n-i!==0&&(l.h=(n===e?(r-t)/(n-i)+(r{switch(r){case"deg":return+e;case"rad":return e/Math.PI*180;case"grad":return e/10*9;case"turn":return e*360}},WV=XV,ZV=new RegExp(`^hsla?\\(\\s*${GG}${p0}${af}${p0}${af}\\s*(?:,\\s*${Wm}\\s*)?\\)$`),JV=e=>{let r=e.match(ZV);if(!r)return;let t={mode:"hsl"};return r[3]!==void 0?t.h=+r[3]:r[1]!==void 0&&r[2]!==void 0&&(t.h=WV(r[1],r[2])),r[4]!==void 0&&(t.s=Math.min(Math.max(0,r[4]/100),1)),r[5]!==void 0&&(t.l=Math.min(Math.max(0,r[5]/100),1)),r[6]!==void 0?t.alpha=Math.max(0,Math.min(1,r[6]/100)):r[7]!==void 0&&(t.alpha=Math.max(0,Math.min(1,+r[7]))),t},_7=JV;function $V(e,r){if(!r||r[0]!=="hsl"&&r[0]!=="hsla")return;let t={mode:"hsl"},[,a,n,i,l]=r;if(a.type!==fr.None){if(a.type===fr.Percentage)return;t.h=a.value}if(n.type!==fr.None){if(n.type===fr.Hue)return;t.s=n.value/100}if(i.type!==fr.None){if(i.type===fr.Hue)return;t.l=i.value/100}return l.type!==fr.None&&(t.alpha=Math.min(1,Math.max(0,l.type===fr.Number?l.value:l.value/100))),t}var w7=$V,KV={mode:"hsl",toMode:{rgb:b7},fromMode:{rgb:x7},channels:["h","s","l","alpha"],ranges:{h:[0,360]},gamut:"rgb",parse:[w7,_7],serialize:e=>`hsl(${e.h!==void 0?e.h:"none"} ${e.s!==void 0?e.s*100+"%":"none"} ${e.l!==void 0?e.l*100+"%":"none"}${e.alpha<1?` / ${e.alpha}`:""})`,interpolate:{h:{use:br,fixup:Zi},s:br,l:br,alpha:{use:br,fixup:ba}},difference:{h:of},average:{h:Ji}},Km=KV;function jm({h:e,s:r,v:t,alpha:a}){e=Wa(e!==void 0?e:0),r===void 0&&(r=0),t===void 0&&(t=0);let n=Math.abs(e/60%2-1),i;switch(Math.floor(e/60)){case 0:i={r:t,g:t*(1-r*n),b:t*(1-r)};break;case 1:i={r:t*(1-r*n),g:t,b:t*(1-r)};break;case 2:i={r:t*(1-r),g:t,b:t*(1-r*n)};break;case 3:i={r:t*(1-r),g:t*(1-r*n),b:t};break;case 4:i={r:t*(1-r*n),g:t*(1-r),b:t};break;case 5:i={r:t,g:t*(1-r),b:t*(1-r*n)};break;default:i={r:t*(1-r),g:t*(1-r),b:t*(1-r)}}return i.mode="rgb",a!==void 0&&(i.alpha=a),i}function Qm({r:e,g:r,b:t,alpha:a}){e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=Math.max(e,r,t),i=Math.min(e,r,t),l={mode:"hsv",s:n===0?0:1-i/n,v:n};return n-i!==0&&(l.h=(n===e?(r-t)/(n-i)+(r1){let n=r+t;r/=n,t/=n}return jm({h:e,s:t===1?1:1-r/(1-t),v:1-t,alpha:a})}function T7(e){let r=Qm(e);if(r===void 0)return;let t=r.s!==void 0?r.s:0,a=r.v!==void 0?r.v:0,n={mode:"hwb",w:(1-t)*a,b:1-a};return r.h!==void 0&&(n.h=r.h),r.alpha!==void 0&&(n.alpha=r.alpha),n}function QV(e,r){if(!r||r[0]!=="hwb")return;let t={mode:"hwb"},[,a,n,i,l]=r;if(a.type!==fr.None){if(a.type===fr.Percentage)return;t.h=a.value}if(n.type!==fr.None){if(n.type===fr.Hue)return;t.w=n.value/100}if(i.type!==fr.None){if(i.type===fr.Hue)return;t.b=i.value/100}return l.type!==fr.None&&(t.alpha=Math.min(1,Math.max(0,l.type===fr.Number?l.value:l.value/100))),t}var A7=QV,eX={mode:"hwb",toMode:{rgb:M7},fromMode:{rgb:T7},channels:["h","w","b","alpha"],ranges:{h:[0,360]},gamut:"rgb",parse:[A7],serialize:e=>`hwb(${e.h!==void 0?e.h:"none"} ${e.w!==void 0?e.w*100+"%":"none"} ${e.b!==void 0?e.b*100+"%":"none"}${e.alpha<1?` / ${e.alpha}`:""})`,interpolate:{h:{use:br,fixup:Zi},w:br,b:br,alpha:{use:br,fixup:ba}},difference:{h:o7},average:{h:Ji}},k7=eX,C7=203,n2=.1593017578125,S7=78.84375,i2=.8359375,l2=18.8515625,o2=18.6875;function sm(e){if(e<0)return 0;let r=Math.pow(e,1/S7);return 1e4*Math.pow(Math.max(0,r-i2)/(l2-o2*r),1/n2)}function um(e){if(e<0)return 0;let r=Math.pow(e/1e4,n2);return Math.pow((i2+l2*r)/(1+o2*r),S7)}var fm=e=>Math.max(e/C7,0),rX=({i:e,t:r,p:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=sm(e+.008609037037932761*r+.11102962500302593*t),i=sm(e-.00860903703793275*r-.11102962500302599*t),l=sm(e+.5600313357106791*r-.32062717498731885*t),o={mode:"xyz65",x:fm(2.070152218389422*n-1.3263473389671556*i+.2066510476294051*l),y:fm(.3647385209748074*n+.680566024947227*i-.0453045459220346*l),z:fm(-.049747207535812*n-.0492609666966138*i+1.1880659249923042*l)};return a!==void 0&&(o.alpha=a),o},Dm=rX,cm=(e=0)=>Math.max(e*C7,0),tX=({x:e,y:r,z:t,alpha:a})=>{let n=cm(e),i=cm(r),l=cm(t),o=um(.3592832590121217*n+.6976051147779502*i-.0358915932320289*l),s=um(-.1920808463704995*n+1.1004767970374323*i+.0753748658519118*l),u=um(.0070797844607477*n+.0748396662186366*i+.8433265453898765*l),f=.5*o+.5*s,c=1.61376953125*o-3.323486328125*s+1.709716796875*u,d=4.378173828125*o-4.24560546875*s-.132568359375*u,h={mode:"itp",i:f,t:c,p:d};return a!==void 0&&(h.alpha=a),h},Lm=tX,aX={mode:"itp",channels:["i","t","p","alpha"],parse:["--ictcp"],serialize:"--ictcp",toMode:{xyz65:Dm,rgb:e=>Vl(Dm(e))},fromMode:{xyz65:Lm,rgb:e=>Lm(Gl(e))},ranges:{i:[0,.581],t:[-.369,.272],p:[-.164,.331]},interpolate:{i:br,t:br,p:br,alpha:{use:br,fixup:ba}}},D7=aX,nX=134.03437499999998,iX=16295499532821565e-27,vm=e=>{if(e<0)return 0;let r=Math.pow(e/1e4,n2);return Math.pow((i2+l2*r)/(1+o2*r),nX)},dm=(e=0)=>Math.max(e*203,0),lX=({x:e,y:r,z:t,alpha:a})=>{e=dm(e),r=dm(r),t=dm(t);let n=1.15*e-.15*t,i=.66*r+.34*e,l=vm(.41478972*n+.579999*i+.014648*t),o=vm(-.20151*n+1.120649*i+.0531008*t),s=vm(-.0166008*n+.2648*i+.6684799*t),u=(l+o)/2,f={mode:"jab",j:.44*u/(1-.56*u)-iX,a:3.524*l-4.066708*o+.542708*s,b:.199076*l+1.096799*o-1.295875*s};return a!==void 0&&(f.alpha=a),f},rg=lX,oX=134.03437499999998,O_=16295499532821565e-27,hm=e=>{if(e<0)return 0;let r=Math.pow(e,1/oX);return 1e4*Math.pow((i2-r)/(o2*r-l2),1/n2)},pm=e=>e/203,sX=({j:e,a:r,b:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=(e+O_)/(.44+.56*(e+O_)),i=hm(n+.13860504*r+.058047316*t),l=hm(n-.13860504*r-.058047316*t),o=hm(n-.096019242*r-.8118919*t),s={mode:"xyz65",x:pm(1.661373024652174*i-.914523081304348*l+.23136208173913045*o),y:pm(-.3250758611844533*i+1.571847026732543*l-.21825383453227928*o),z:pm(-.090982811*i-.31272829*l+1.5227666*o)};return a!==void 0&&(s.alpha=a),s},tg=sX,uX=e=>{let r=rg(Gl(e));return e.r===e.b&&e.b===e.g&&(r.a=r.b=0),r},ag=uX,fX=e=>Vl(tg(e)),ng=fX,cX={mode:"jab",channels:["j","a","b","alpha"],parse:["--jzazbz"],serialize:"--jzazbz",fromMode:{rgb:ag,xyz65:rg},toMode:{rgb:ng,xyz65:tg},ranges:{j:[0,.222],a:[-.109,.129],b:[-.185,.134]},interpolate:{j:br,a:br,b:br,alpha:{use:br,fixup:ba}}},L7=cX,vX=({j:e,a:r,b:t,alpha:a})=>{r===void 0&&(r=0),t===void 0&&(t=0);let n=Math.sqrt(r*r+t*t),i={mode:"jch",j:e,c:n};return n&&(i.h=Wa(Math.atan2(t,r)*180/Math.PI)),a!==void 0&&(i.alpha=a),i},qm=vX,dX=({j:e,c:r,h:t,alpha:a})=>{t===void 0&&(t=0);let n={mode:"jab",j:e,a:r?r*Math.cos(t/180*Math.PI):0,b:r?r*Math.sin(t/180*Math.PI):0};return a!==void 0&&(n.alpha=a),n},Em=dX,hX={mode:"jch",parse:["--jzczhz"],serialize:"--jzczhz",toMode:{jab:Em,rgb:e=>ng(Em(e))},fromMode:{rgb:e=>qm(ag(e)),jab:qm},channels:["j","c","h","alpha"],ranges:{j:[0,.221],c:[0,.19],h:[0,360]},interpolate:{h:{use:br,fixup:Zi},c:br,j:br,alpha:{use:br,fixup:ba}},difference:{h:sf},average:{h:Ji}},q7=hX,s2=Math.pow(29,3)/Math.pow(3,3),ig=Math.pow(6,3)/Math.pow(29,3),mm=e=>Math.pow(e,3)>ig?Math.pow(e,3):(116*e-16)/s2,pX=({l:e,a:r,b:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=(e+16)/116,i=r/500+n,l=n-t/200,o={mode:"xyz50",x:mm(i)*ya.X,y:mm(n)*ya.Y,z:mm(l)*ya.Z};return a!==void 0&&(o.alpha=a),o},u2=pX,mX=({x:e,y:r,z:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=Ko({r:e*3.1341359569958707-r*1.6173863321612538-.4906619460083532*t,g:e*-.978795502912089+r*1.916254567259524+.03344273116131949*t,b:e*.07195537988411677-r*.2289768264158322+1.405386058324125*t});return a!==void 0&&(n.alpha=a),n},y0=mX,gX=e=>y0(u2(e)),lg=gX,yX=e=>{let{r,g:t,b:a,alpha:n}=$o(e),i={mode:"xyz50",x:.436065742824811*r+.3851514688337912*t+.14307845442264197*a,y:.22249319175623702*r+.7168870538238823*t+.06061979053616537*a,z:.013923904500943465*r+.09708128566574634*t+.7140993584005155*a};return n!==void 0&&(i.alpha=n),i},b0=yX,gm=e=>e>ig?Math.cbrt(e):(s2*e+16)/116,bX=({x:e,y:r,z:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=gm(e/ya.X),i=gm(r/ya.Y),l=gm(t/ya.Z),o={mode:"lab",l:116*i-16,a:500*(n-i),b:200*(i-l)};return a!==void 0&&(o.alpha=a),o},f2=bX,xX=e=>{let r=f2(b0(e));return e.r===e.b&&e.b===e.g&&(r.a=r.b=0),r},og=xX;function _X(e,r){if(!r||r[0]!=="lab")return;let t={mode:"lab"},[,a,n,i,l]=r;if(!(a.type===fr.Hue||n.type===fr.Hue||i.type===fr.Hue))return a.type!==fr.None&&(t.l=Math.min(Math.max(0,a.value),100)),n.type!==fr.None&&(t.a=n.type===fr.Number?n.value:n.value*125/100),i.type!==fr.None&&(t.b=i.type===fr.Number?i.value:i.value*125/100),l.type!==fr.None&&(t.alpha=Math.min(1,Math.max(0,l.type===fr.Number?l.value:l.value/100))),t}var E7=_X,wX={mode:"lab",toMode:{xyz50:u2,rgb:lg},fromMode:{xyz50:f2,rgb:og},channels:["l","a","b","alpha"],ranges:{l:[0,100],a:[-125,125],b:[-125,125]},parse:[E7],serialize:e=>`lab(${e.l!==void 0?e.l:"none"} ${e.a!==void 0?e.a:"none"} ${e.b!==void 0?e.b:"none"}${e.alpha<1?` / ${e.alpha}`:""})`,interpolate:{l:br,a:br,b:br,alpha:{use:br,fixup:ba}}},c2=wX,MX=St(ut({},c2),{mode:"lab65",parse:["--lab-d65"],serialize:"--lab-d65",toMode:{xyz65:Jm,rgb:uf},fromMode:{xyz65:$m,rgb:ff},ranges:{l:[0,100],a:[-125,125],b:[-125,125]}}),P7=MX;function TX(e,r){if(!r||r[0]!=="lch")return;let t={mode:"lch"},[,a,n,i,l]=r;if(a.type!==fr.None){if(a.type===fr.Hue)return;t.l=Math.min(Math.max(0,a.value),100)}if(n.type!==fr.None&&(t.c=Math.max(0,n.type===fr.Number?n.value:n.value*150/100)),i.type!==fr.None){if(i.type===fr.Percentage)return;t.h=i.value}return l.type!==fr.None&&(t.alpha=Math.min(1,Math.max(0,l.type===fr.Number?l.value:l.value/100))),t}var R7=TX,AX={mode:"lch",toMode:{lab:bl,rgb:e=>lg(bl(e))},fromMode:{rgb:e=>yl(og(e)),lab:yl},channels:["l","c","h","alpha"],ranges:{l:[0,100],c:[0,150],h:[0,360]},parse:[R7],serialize:e=>`lch(${e.l!==void 0?e.l:"none"} ${e.c!==void 0?e.c:"none"} ${e.h!==void 0?e.h:"none"}${e.alpha<1?` / ${e.alpha}`:""})`,interpolate:{h:{use:br,fixup:Zi},c:br,l:br,alpha:{use:br,fixup:ba}},difference:{h:sf},average:{h:Ji}},v2=AX,kX=St(ut({},v2),{mode:"lch65",parse:["--lch-d65"],serialize:"--lch-d65",toMode:{lab65:e=>bl(e,"lab65"),rgb:e=>uf(bl(e,"lab65"))},fromMode:{rgb:e=>yl(ff(e),"lch65"),lab65:e=>yl(e,"lch65")},ranges:{l:[0,100],c:[0,150],h:[0,360]}}),z7=kX,CX=({l:e,u:r,v:t,alpha:a})=>{r===void 0&&(r=0),t===void 0&&(t=0);let n=Math.sqrt(r*r+t*t),i={mode:"lchuv",l:e,c:n};return n&&(i.h=Wa(Math.atan2(t,r)*180/Math.PI)),a!==void 0&&(i.alpha=a),i},sg=CX,SX=({l:e,c:r,h:t,alpha:a})=>{t===void 0&&(t=0);let n={mode:"luv",l:e,u:r?r*Math.cos(t/180*Math.PI):0,v:r?r*Math.sin(t/180*Math.PI):0};return a!==void 0&&(n.alpha=a),n},ug=SX,F7=(e,r,t)=>4*e/(e+15*r+3*t),N7=(e,r,t)=>9*r/(e+15*r+3*t),DX=F7(ya.X,ya.Y,ya.Z),LX=N7(ya.X,ya.Y,ya.Z),qX=e=>e<=ig?s2*e:116*Math.cbrt(e)-16,EX=({x:e,y:r,z:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=qX(r/ya.Y),i=F7(e,r,t),l=N7(e,r,t);!isFinite(i)||!isFinite(l)?n=i=l=0:(i=13*n*(i-DX),l=13*n*(l-LX));let o={mode:"luv",l:n,u:i,v:l};return a!==void 0&&(o.alpha=a),o},e2=EX,PX=(e,r,t)=>4*e/(e+15*r+3*t),RX=(e,r,t)=>9*r/(e+15*r+3*t),zX=PX(ya.X,ya.Y,ya.Z),FX=RX(ya.X,ya.Y,ya.Z),NX=({l:e,u:r,v:t,alpha:a})=>{if(e===void 0&&(e=0),e===0)return{mode:"xyz50",x:0,y:0,z:0};r===void 0&&(r=0),t===void 0&&(t=0);let n=r/(13*e)+zX,i=t/(13*e)+FX,l=ya.Y*(e<=8?e/s2:Math.pow((e+16)/116,3)),o=l*(9*n)/(4*i),s=l*(12-3*n-20*i)/(4*i),u={mode:"xyz50",x:o,y:l,z:s};return a!==void 0&&(u.alpha=a),u},r2=NX,IX=e=>sg(e2(b0(e))),BX=e=>y0(r2(ug(e))),HX={mode:"lchuv",toMode:{luv:ug,rgb:BX},fromMode:{rgb:IX,luv:sg},channels:["l","c","h","alpha"],parse:["--lchuv"],serialize:"--lchuv",ranges:{l:[0,100],c:[0,176.956],h:[0,360]},interpolate:{h:{use:br,fixup:Zi},c:br,l:br,alpha:{use:br,fixup:ba}},difference:{h:sf},average:{h:Ji}},I7=HX,OX=St(ut({},Jo),{mode:"lrgb",toMode:{rgb:Ko},fromMode:{rgb:$o},parse:["srgb-linear"],serialize:"srgb-linear"}),B7=OX,YX={mode:"luv",toMode:{xyz50:r2,rgb:e=>y0(r2(e))},fromMode:{xyz50:e2,rgb:e=>e2(b0(e))},channels:["l","u","v","alpha"],parse:["--luv"],serialize:"--luv",ranges:{l:[0,100],u:[-84.936,175.042],v:[-125.882,87.243]},interpolate:{l:br,u:br,v:br,alpha:{use:br,fixup:ba}}},H7=YX,UX=({r:e,g:r,b:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=Math.cbrt(.412221469470763*e+.5363325372617348*r+.0514459932675022*t),i=Math.cbrt(.2119034958178252*e+.6806995506452344*r+.1073969535369406*t),l=Math.cbrt(.0883024591900564*e+.2817188391361215*r+.6299787016738222*t),o={mode:"oklab",l:.210454268309314*n+.7936177747023054*i-.0040720430116193*l,a:1.9779985324311684*n-2.42859224204858*i+.450593709617411*l,b:.0259040424655478*n+.7827717124575296*i-.8086757549230774*l};return a!==void 0&&(o.alpha=a),o},fg=UX,GX=e=>{let r=fg($o(e));return e.r===e.b&&e.b===e.g&&(r.a=r.b=0),r},cf=GX,VX=({l:e,a:r,b:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=Math.pow(e+.3963377773761749*r+.2158037573099136*t,3),i=Math.pow(e-.1055613458156586*r-.0638541728258133*t,3),l=Math.pow(e-.0894841775298119*r-1.2914855480194092*t,3),o={mode:"lrgb",r:4.076741636075957*n-3.3077115392580616*i+.2309699031821044*l,g:-1.2684379732850317*n+2.6097573492876887*i-.3413193760026573*l,b:-.0041960761386756*n-.7034186179359362*i+1.7076146940746117*l};return a!==void 0&&(o.alpha=a),o},x0=VX,XX=e=>Ko(x0(e)),vf=XX;function Pm(e){let a=1.170873786407767;return .5*(a*e-.206+Math.sqrt((a*e-.206)*(a*e-.206)+4*.03*a*e))}function t2(e){return(e*e+.206*e)/(1.170873786407767*(e+.03))}function WX(e,r){let t,a,n,i,l,o,s,u;-1.88170328*e-.80936493*r>1?(t=1.19086277,a=1.76576728,n=.59662641,i=.75515197,l=.56771245,o=4.0767416621,s=-3.3077115913,u=.2309699292):1.81444104*e-1.19445276*r>1?(t=.73956515,a=-.45954404,n=.08285427,i=.1254107,l=.14503204,o=-1.2684380046,s=2.6097574011,u=-.3413193965):(t=1.35733652,a=-.00915799,n=-1.1513021,i=-.50559606,l=.00692167,o=-.0041960863,s=-.7034186147,u=1.707614701);let f=t+a*e+n*r+i*e*e+l*e*r,c=.3963377774*e+.2158037573*r,d=-.1055613458*e-.0638541728*r,h=-.0894841775*e-1.291485548*r;{let p=1+f*c,g=1+f*d,y=1+f*h,x=p*p*p,w=g*g*g,M=y*y*y,b=3*c*p*p,T=3*d*g*g,S=3*h*y*y,C=6*c*c*p,L=6*d*d*g,q=6*h*h*y,P=o*x+s*w+u*M,z=o*b+s*T+u*S,N=o*C+s*L+u*q;f=f-P*z/(z*z-.5*P*N)}return f}function cg(e,r){let t=WX(e,r),a=x0({l:1,a:t*e,b:t*r}),n=Math.cbrt(1/Math.max(a.r,a.g,a.b)),i=n*t;return[n,i]}function ZX(e,r,t,a,n,i=null){i||(i=cg(e,r));let l;if((t-n)*i[1]-(i[0]-n)*a<=0)l=i[1]*n/(a*i[0]+i[1]*(n-t));else{l=i[1]*(n-1)/(a*(i[0]-1)+i[1]*(n-t));{let o=t-n,s=a,u=.3963377774*e+.2158037573*r,f=-.1055613458*e-.0638541728*r,c=-.0894841775*e-1.291485548*r,d=o+s*u,h=o+s*f,p=o+s*c;{let g=n*(1-l)+l*t,y=l*a,x=g+y*u,w=g+y*f,M=g+y*c,b=x*x*x,T=w*w*w,S=M*M*M,C=3*d*x*x,L=3*h*w*w,q=3*p*M*M,P=6*d*d*x,z=6*h*h*w,N=6*p*p*M,H=4.0767416621*b-3.3077115913*T+.2309699292*S-1,B=4.0767416621*C-3.3077115913*L+.2309699292*q,I=4.0767416621*P-3.3077115913*z+.2309699292*N,V=B/(B*B-.5*H*I),O=-H*V,U=-1.2684380046*b+2.6097574011*T-.3413193965*S-1,W=-1.2684380046*C+2.6097574011*L-.3413193965*q,Z=-1.2684380046*P+2.6097574011*z-.3413193965*N,G=W/(W*W-.5*U*Z),j=-U*G,ie=-.0041960863*b-.7034186147*T+1.707614701*S-1,pe=-.0041960863*C-.7034186147*L+1.707614701*q,ve=-.0041960863*P-.7034186147*z+1.707614701*N,Q=pe/(pe*pe-.5*ie*ve),we=-ie*Q;O=V>=0?O:1e6,j=G>=0?j:1e6,we=Q>=0?we:1e6,l+=Math.min(O,Math.min(j,we))}}}return l}function vg(e,r,t=null){t||(t=cg(e,r));let a=t[0],n=t[1];return[n/a,n/(1-a)]}function O7(e,r,t){let a=cg(r,t),n=ZX(r,t,e,1,e,a),i=vg(r,t,a),l=.11516993+1/(7.4477897+4.1590124*t+r*(-2.19557347+1.75198401*t+r*(-2.13704948-10.02301043*t+r*(-4.24894561+5.38770819*t+4.69891013*r)))),o=.11239642+1/(1.6132032-.68124379*t+r*(.40370612+.90148123*t+r*(-.27087943+.6122399*t+r*(.00299215-.45399568*t-.14661872*r)))),s=n/Math.min(e*i[0],(1-e)*i[1]),u=e*l,f=(1-e)*o,c=.9*s*Math.sqrt(Math.sqrt(1/(1/(u*u*u*u)+1/(f*f*f*f))));return u=e*.4,f=(1-e)*.8,[Math.sqrt(1/(1/(u*u)+1/(f*f))),c,n]}function Rm(e){let r=e.l!==void 0?e.l:0,t=e.a!==void 0?e.a:0,a=e.b!==void 0?e.b:0,n={mode:"okhsl",l:Pm(r)};e.alpha!==void 0&&(n.alpha=e.alpha);let i=Math.sqrt(t*t+a*a);if(!i)return n.s=0,n;let[l,o,s]=O7(r,t/i,a/i),u;if(iRm(cf(e))},toMode:{oklab:zm,rgb:e=>vf(zm(e))}}),Y7=JX;function Fm(e){let r=e.l!==void 0?e.l:0,t=e.a!==void 0?e.a:0,a=e.b!==void 0?e.b:0,n=Math.sqrt(t*t+a*a),i=n?t/n:1,l=n?a/n:1,[o,s]=vg(i,l),u=.5,f=1-u/o,c=s/(n+r*s),d=c*r,h=c*n,p=t2(d),g=h*p/d,y=x0({l:p,a:i*g,b:l*g}),x=Math.cbrt(1/Math.max(y.r,y.g,y.b,0));r=r/x,n=n/x*Pm(r)/r,r=Pm(r);let w={mode:"okhsv",s:n?(u+s)*h/(s*u+s*f*h):0,v:r?r/d:0};return w.s&&(w.h=Wa(Math.atan2(a,t)*180/Math.PI)),e.alpha!==void 0&&(w.alpha=e.alpha),w}function Nm(e){let r={mode:"oklab"};e.alpha!==void 0&&(r.alpha=e.alpha);let t=e.h!==void 0?e.h:0,a=e.s!==void 0?e.s:0,n=e.v!==void 0?e.v:0,i=Math.cos(t/180*Math.PI),l=Math.sin(t/180*Math.PI),[o,s]=vg(i,l),u=.5,f=1-u/o,c=1-a*u/(u+s-s*f*a),d=a*s*u/(u+s-s*f*a),h=t2(c),p=d*h/c,g=x0({l:h,a:i*p,b:l*p}),y=Math.cbrt(1/Math.max(g.r,g.g,g.b,0)),x=t2(n*c),w=d*x/c;return r.l=x*y,r.a=w*i*y,r.b=w*l*y,r}var $X=St(ut({},eg),{mode:"okhsv",channels:["h","s","v","alpha"],parse:["--okhsv"],serialize:"--okhsv",fromMode:{oklab:Fm,rgb:e=>Fm(cf(e))},toMode:{oklab:Nm,rgb:e=>vf(Nm(e))}}),U7=$X;function KX(e,r){if(!r||r[0]!=="oklab")return;let t={mode:"oklab"},[,a,n,i,l]=r;if(!(a.type===fr.Hue||n.type===fr.Hue||i.type===fr.Hue))return a.type!==fr.None&&(t.l=Math.min(Math.max(0,a.type===fr.Number?a.value:a.value/100),1)),n.type!==fr.None&&(t.a=n.type===fr.Number?n.value:n.value*.4/100),i.type!==fr.None&&(t.b=i.type===fr.Number?i.value:i.value*.4/100),l.type!==fr.None&&(t.alpha=Math.min(1,Math.max(0,l.type===fr.Number?l.value:l.value/100))),t}var G7=KX,jX=St(ut({},c2),{mode:"oklab",toMode:{lrgb:x0,rgb:vf},fromMode:{lrgb:fg,rgb:cf},ranges:{l:[0,1],a:[-.4,.4],b:[-.4,.4]},parse:[G7],serialize:e=>`oklab(${e.l!==void 0?e.l:"none"} ${e.a!==void 0?e.a:"none"} ${e.b!==void 0?e.b:"none"}${e.alpha<1?` / ${e.alpha}`:""})`}),V7=jX;function QX(e,r){if(!r||r[0]!=="oklch")return;let t={mode:"oklch"},[,a,n,i,l]=r;if(a.type!==fr.None){if(a.type===fr.Hue)return;t.l=Math.min(Math.max(0,a.type===fr.Number?a.value:a.value/100),1)}if(n.type!==fr.None&&(t.c=Math.max(0,n.type===fr.Number?n.value:n.value*.4/100)),i.type!==fr.None){if(i.type===fr.Percentage)return;t.h=i.value}return l.type!==fr.None&&(t.alpha=Math.min(1,Math.max(0,l.type===fr.Number?l.value:l.value/100))),t}var X7=QX,eW=St(ut({},v2),{mode:"oklch",toMode:{oklab:e=>bl(e,"oklab"),rgb:e=>vf(bl(e,"oklab"))},fromMode:{rgb:e=>yl(cf(e),"oklch"),oklab:e=>yl(e,"oklch")},parse:[X7],serialize:e=>`oklch(${e.l!==void 0?e.l:"none"} ${e.c!==void 0?e.c:"none"} ${e.h!==void 0?e.h:"none"}${e.alpha<1?` / ${e.alpha}`:""})`,ranges:{l:[0,1],c:[0,.4],h:[0,360]}}),W7=eW,rW=e=>{let{r,g:t,b:a,alpha:n}=$o(e),i={mode:"xyz65",x:.486570948648216*r+.265667693169093*t+.1982172852343625*a,y:.2289745640697487*r+.6917385218365062*t+.079286914093745*a,z:0*r+.0451133818589026*t+1.043944368900976*a};return n!==void 0&&(i.alpha=n),i},Im=rW,tW=({x:e,y:r,z:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=Ko({r:e*2.4934969119414263-r*.9313836179191242-.402710784450717*t,g:e*-.8294889695615749+r*1.7626640603183465+.0236246858419436*t,b:e*.0358458302437845-r*.0761723892680418+.9568845240076871*t},"p3");return a!==void 0&&(n.alpha=a),n},Bm=tW,aW=St(ut({},Jo),{mode:"p3",parse:["display-p3"],serialize:"display-p3",fromMode:{rgb:e=>Bm(Gl(e)),xyz65:Bm},toMode:{rgb:e=>Vl(Im(e)),xyz65:Im}}),Z7=aW,ym=e=>{let r=Math.abs(e);return r>=1/512?Math.sign(e)*Math.pow(r,1/1.8):16*e},nW=({x:e,y:r,z:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n={mode:"prophoto",r:ym(e*1.3457868816471585-r*.2555720873797946-.0511018649755453*t),g:ym(e*-.5446307051249019+r*1.5082477428451466+.0205274474364214*t),b:ym(e*0+r*0+1.2119675456389452*t)};return a!==void 0&&(n.alpha=a),n},Hm=nW,bm=(e=0)=>{let r=Math.abs(e);return r>=16/512?Math.sign(e)*Math.pow(r,1.8):e/16},iW=e=>{let r=bm(e.r),t=bm(e.g),a=bm(e.b),n={mode:"xyz50",x:.7977666449006423*r+.1351812974005331*t+.0313477341283922*a,y:.2880748288194013*r+.7118352342418731*t+899369387256e-16*a,z:0*r+0*t+.8251046025104602*a};return e.alpha!==void 0&&(n.alpha=e.alpha),n},Om=iW,lW=St(ut({},Jo),{mode:"prophoto",parse:["prophoto-rgb"],serialize:"prophoto-rgb",fromMode:{xyz50:Hm,rgb:e=>Hm(b0(e))},toMode:{xyz50:Om,rgb:e=>y0(Om(e))}}),J7=lW,Y_=1.09929682680944,oW=.018053968510807,xm=e=>{let r=Math.abs(e);return r>oW?(Math.sign(e)||1)*(Y_*Math.pow(r,.45)-(Y_-1)):4.5*e},sW=({x:e,y:r,z:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n={mode:"rec2020",r:xm(e*1.7166511879712683-r*.3556707837763925-.2533662813736599*t),g:xm(e*-.6666843518324893+r*1.6164812366349395+.0157685458139111*t),b:xm(e*.0176398574453108-r*.0427706132578085+.9421031212354739*t)};return a!==void 0&&(n.alpha=a),n},Ym=sW,U_=1.09929682680944,uW=.018053968510807,_m=(e=0)=>{let r=Math.abs(e);return r{let r=_m(e.r),t=_m(e.g),a=_m(e.b),n={mode:"xyz65",x:.6369580483012911*r+.1446169035862083*t+.1688809751641721*a,y:.262700212011267*r+.6779980715188708*t+.059301716469862*a,z:0*r+.0280726930490874*t+1.0609850577107909*a};return e.alpha!==void 0&&(n.alpha=e.alpha),n},Um=fW,cW=St(ut({},Jo),{mode:"rec2020",fromMode:{xyz65:Ym,rgb:e=>Ym(Gl(e))},toMode:{xyz65:Um,rgb:e=>Vl(Um(e))},parse:["rec2020"],serialize:"rec2020"}),$7=cW,Wo=.0037930732552754493,K7=Math.cbrt(Wo),wm=e=>Math.cbrt(e)-K7,vW=e=>{let{r,g:t,b:a,alpha:n}=$o(e),i=wm(.3*r+.622*t+.078*a+Wo),l=wm(.23*r+.692*t+.078*a+Wo),o=wm(.2434226892454782*r+.2047674442449682*t+.5518098665095535*a+Wo),s={mode:"xyb",x:(i-l)/2,y:(i+l)/2,b:o-(i+l)/2};return n!==void 0&&(s.alpha=n),s},j7=vW,Mm=e=>Math.pow(e+K7,3),dW=({x:e,y:r,b:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=Mm(e+r)-Wo,i=Mm(r-e)-Wo,l=Mm(t+r)-Wo,o=Ko({r:11.031566904639861*n-9.866943908131562*i-.16462299650829934*l,g:-3.2541473810744237*n+4.418770377582723*i-.16462299650829934*l,b:-3.6588512867136815*n+2.7129230459360922*i+1.9459282407775895*l});return a!==void 0&&(o.alpha=a),o},Q7=dW,hW={mode:"xyb",channels:["x","y","b","alpha"],parse:["--xyb"],serialize:"--xyb",toMode:{rgb:Q7},fromMode:{rgb:j7},ranges:{x:[-.0154,.0281],y:[0,.8453],b:[-.2778,.388]},interpolate:{x:br,y:br,b:br,alpha:{use:br,fixup:ba}}},e8=hW,pW={mode:"xyz50",parse:["xyz-d50"],serialize:"xyz-d50",toMode:{rgb:y0,lab:f2},fromMode:{rgb:b0,lab:u2},channels:["x","y","z","alpha"],ranges:{x:[0,.964],y:[0,.999],z:[0,.825]},interpolate:{x:br,y:br,z:br,alpha:{use:br,fixup:ba}}},r8=pW,mW=e=>{let{x:r,y:t,z:a,alpha:n}=e;r===void 0&&(r=0),t===void 0&&(t=0),a===void 0&&(a=0);let i={mode:"xyz50",x:1.0479298208405488*r+.0229467933410191*t-.0501922295431356*a,y:.0296278156881593*r+.990434484573249*t-.0170738250293851*a,z:-.0092430581525912*r+.0150551448965779*t+.7518742899580008*a};return n!==void 0&&(i.alpha=n),i},t8=mW,gW=e=>{let{x:r,y:t,z:a,alpha:n}=e;r===void 0&&(r=0),t===void 0&&(t=0),a===void 0&&(a=0);let i={mode:"xyz65",x:.9554734527042182*r-.0230985368742614*t+.0632593086610217*a,y:-.0283697069632081*r+1.0099954580058226*t+.021041398966943*a,z:.0123140016883199*r-.0205076964334779*t+1.3303659366080753*a};return n!==void 0&&(i.alpha=n),i},a8=gW,yW={mode:"xyz65",toMode:{rgb:Vl,xyz50:t8},fromMode:{rgb:Gl,xyz50:a8},ranges:{x:[0,.95],y:[0,1],z:[0,1.088]},channels:["x","y","z","alpha"],parse:["xyz","xyz-d65"],serialize:"xyz-d65",interpolate:{x:br,y:br,z:br,alpha:{use:br,fixup:ba}}},n8=yW,bW=({r:e,g:r,b:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n={mode:"yiq",y:.29889531*e+.58662247*r+.11448223*t,i:.59597799*e-.2741761*r-.32180189*t,q:.21147017*e-.52261711*r+.31114694*t};return a!==void 0&&(n.alpha=a),n},i8=bW,xW=({y:e,i:r,q:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n={mode:"rgb",r:e+.95608445*r+.6208885*t,g:e-.27137664*r-.6486059*t,b:e-1.10561724*r+1.70250126*t};return a!==void 0&&(n.alpha=a),n},l8=xW,_W={mode:"yiq",toMode:{rgb:l8},fromMode:{rgb:i8},channels:["y","i","q","alpha"],parse:["--yiq"],serialize:"--yiq",ranges:{i:[-.595,.595],q:[-.522,.522]},interpolate:{y:br,i:br,q:br,alpha:{use:br,fixup:ba}}},o8=_W,wW=(e,r)=>Math.round(e*(r=Math.pow(10,r)))/r,MW=(e=4)=>r=>typeof r=="number"?wW(r,e):r,s8=MW,tf=s8(2),nf=e=>Math.max(0,Math.min(1,e||0)),Zo=e=>Math.round(nf(e)*255),dg=xt("rgb"),TW=xt("hsl"),hg=e=>{if(e===void 0)return;let r=Zo(e.r),t=Zo(e.g),a=Zo(e.b);return"#"+(1<<24|r<<16|t<<8|a).toString(16).slice(1)},u8=e=>{if(e===void 0)return;let r=Zo(e.alpha!==void 0?e.alpha:1);return hg(e)+(256|r).toString(16).slice(1)},f8=e=>{if(e===void 0)return;let r=Zo(e.r),t=Zo(e.g),a=Zo(e.b);return e.alpha===void 0||e.alpha===1?`rgb(${r}, ${t}, ${a})`:`rgba(${r}, ${t}, ${a}, ${tf(nf(e.alpha))})`},c8=e=>{if(e===void 0)return;let r=tf(e.h||0),t=tf(nf(e.s)*100)+"%",a=tf(nf(e.l)*100)+"%";return e.alpha===void 0||e.alpha===1?`hsl(${r}, ${t}, ${a})`:`hsla(${r}, ${t}, ${a}, ${tf(nf(e.alpha))})`},AW=e=>{let r=_i(e);if(!r)return;let t=an(r.mode);if(!t.serialize||typeof t.serialize=="string"){let a=`color(${t.serialize||`--${r.mode}`} `;return t.channels.forEach((n,i)=>{n!=="alpha"&&(a+=(i?" ":"")+(r[n]!==void 0?r[n]:"none"))}),r.alpha!==void 0&&r.alpha<1&&(a+=` / ${r.alpha}`),a+")"}if(typeof t.serialize=="function")return t.serialize(r)},kW=e=>hg(dg(e)),CW=e=>u8(dg(e)),SW=e=>f8(dg(e)),DW=e=>c8(TW(e)),LW={normal:(e,r)=>r,multiply:(e,r)=>e*r,screen:(e,r)=>e+r-e*r,"hard-light":(e,r)=>r<.5?e*2*r:2*r*(1-e)-1,overlay:(e,r)=>e<.5?r*2*e:2*e*(1-r)-1,darken:(e,r)=>Math.min(e,r),lighten:(e,r)=>Math.max(e,r),"color-dodge":(e,r)=>e===0?0:r===1?1:Math.min(1,e/(1-r)),"color-burn":(e,r)=>e===1?1:r===0?0:1-Math.min(1,(1-e)/r),"soft-light":(e,r)=>r<.5?e-(1-2*r)*e*(1-e):e+(2*r-1)*((e<.25?((16*e-12)*e+4)*e:Math.sqrt(e))-e),difference:(e,r)=>Math.abs(e-r),exclusion:(e,r)=>e+r-2*e*r},qW=(e,r="normal",t="rgb")=>{let a=typeof r=="function"?r:LW[r],n=xt(t),i=an(t).channels;return e.map(o=>{let s=n(o);return s.alpha===void 0&&(s.alpha=1),s}).reduce((o,s)=>{if(o===void 0)return s;let u=s.alpha+o.alpha*(1-s.alpha);return i.reduce((f,c)=>(c!=="alpha"&&(u===0?f[c]=0:(f[c]=s.alpha*(1-o.alpha)*s[c]+s.alpha*o.alpha*a(o[c],s[c])+(1-s.alpha)*o.alpha*o[c],f[c]=Math.max(0,Math.min(1,f[c]/u)))),f),{mode:t,alpha:u})})},EW=qW,PW=([e,r])=>e+Math.random()*(r-e),RW=e=>Object.keys(e).reduce((r,t)=>{let a=e[t];return r[t]=Array.isArray(a)?a:[a,a],r},{}),zW=(e="rgb",r={})=>{let t=an(e),a=RW(r);return t.channels.reduce((n,i)=>((a.alpha||i!=="alpha")&&(n[i]=PW(a[i]||t.ranges[i])),n),{mode:e})},FW=zW,df=(e,r="rgb",t=!1)=>{let a=r?an(r).channels:null,n=r?xt(r):_i;return i=>{let l=n(i);if(!l)return;let o=(a||an(l.mode).channels).reduce((u,f)=>{let c=e(l[f],f,l,r);return c!==void 0&&!isNaN(c)&&(u[f]=c),u},{mode:l.mode});if(!t)return o;let s=_i(i);return s&&s.mode!==o.mode?xt(s.mode)(o):o}},v8=(e,r,t)=>r!=="alpha"?(e||0)*(t.alpha!==void 0?t.alpha:1):e,d8=(e,r,t)=>r!=="alpha"&&t.alpha!==0?(e||0)/(t.alpha!==void 0?t.alpha:1):e,pg=(e=1,r=0)=>(t,a)=>a!=="alpha"?t*e+r:t,NW=(e=1,r=1,t=0)=>(a,n)=>n!=="alpha"?e*Math.pow(a,r)+t:a,IW=e=>{e[0]===void 0&&(e[0]=0),e[e.length-1]===void 0&&(e[e.length-1]=1);let r=1,t,a,n,i;for(;rr=>e<=0?1:e>=1?0:Math.pow(r,Math.log(.5)/Math.log(e)),h8=HW,Xv=e=>typeof e=="function",Vo=e=>e&&typeof e=="object",G_=e=>typeof e=="number",p8=(e,r="rgb",t,a)=>{let n=an(r),i=xt(r),l=[],o=[],s={};e.forEach(d=>{Array.isArray(d)?(l.push(i(d[0])),o.push(d[1])):G_(d)||Xv(d)?s[o.length]=d:(l.push(i(d)),o.push(void 0))}),BW(o);let u=n.channels.reduce((d,h)=>{let p;return Vo(t)&&Vo(t[h])&&t[h].fixup?p=t[h].fixup:Vo(n.interpolate[h])&&n.interpolate[h].fixup?p=n.interpolate[h].fixup:p=g=>g,d[h]=p(l.map(g=>g[h])),d},{});if(a){let d=l.map((h,p)=>n.channels.reduce((g,y)=>(g[y]=u[y][p],g),{mode:r}));u=n.channels.reduce((h,p)=>(h[p]=d.map(g=>{let y=a(g[p],p,g,r);return isNaN(y)?void 0:y}),h),{})}let f=n.channels.reduce((d,h)=>{let p;return Xv(t)?p=t:Vo(t)&&Xv(t[h])?p=t[h]:Vo(t)&&Vo(t[h])&&t[h].use?p=t[h].use:Xv(n.interpolate[h])?p=n.interpolate[h]:Vo(n.interpolate[h])&&(p=n.interpolate[h].use),d[h]=p(u[h]),d},{}),c=l.length-1;return d=>{if(d=Math.min(Math.max(0,d),1),d<=o[0])return l[0];if(d>o[c])return l[c];let h=0;for(;o[h]{let T=f[b](w);return T!==void 0&&(M[b]=T),M},{mode:r})}},OW=(e,r="rgb",t)=>p8(e,r,t),m8=(e,r)=>(t,a="rgb",n)=>{let i=r?df(r,a):void 0,l=p8(t,a,n,e);return i?o=>i(l(o)):l},YW=m8(v8,d8),Wv=(e,r)=>(e+r)%r,g8=(e,r,t,a,n)=>{let i=n*n,l=i*n;return((1-3*n+3*i-l)*e+(4-6*i+3*l)*r+(1+3*n+3*i-3*l)*t+l*a)/6},y8=e=>r=>{let t=e.length-1,a=r>=1?t-1:Math.max(0,Math.floor(r*t));return g8(a>0?e[a-1]:2*e[a]-e[a+1],e[a],e[a+1],ar=>{let t=e.length-1,a=Math.floor(r*t);return g8(e[Wv(a-1,e.length)],e[Wv(a,e.length)],e[Wv(a+1,e.length)],e[Wv(a+2,e.length)],(r-a/t)*t)},x8=e=>{let r,t=e.length-1,a=new Array(t),n=new Array(t),i=new Array(t);for(a[1]=1/4,n[1]=(6*e[1]-e[0])/4,r=2;r0&&(i[t-1]=n[t-1]),r=t-2;r>0;--r)i[r]=n[r]-a[r]*i[r+1];return i},UW=e=>y8(x8(e)),GW=e=>b8(x8(e)),d0=Math.sign,Gm=Math.min,qn=Math.abs,mg=e=>{let r=e.length-1,t=[],a=[],n=[];for(let i=0;i0?.5*(e[i+1]-e[i-1])*r:void 0),n.push(i>0?(d0(t[i-1])+d0(t[i]))*Gm(qn(t[i-1]),qn(t[i]),.5*qn(a[i])):void 0);return[t,a,n]},gg=(e,r,t)=>{let a=e.length-1,n=a*a;return i=>{let l;i>=1?l=a-1:l=Math.max(0,Math.floor(i*a));let o=i-l/a,s=o*o,u=s*o;return(r[l]+r[l+1]-2*t[l])*n*u+(3*t[l]-2*r[l]-r[l+1])*a*s+r[l]*o+e[l]}},VW=e=>{if(e.length<3)return br(e);let r=e.length-1,[t,,a]=mg(e);return a[0]=t[0],a[r]=t[r-1],gg(e,a,t)},XW=e=>{if(e.length<3)return br(e);let r=e.length-1,[t,a,n]=mg(e);return a[0]=(e[1]*2-e[0]*1.5-e[2]*.5)*r,a[r]=(e[r]*1.5-e[r-1]*2+e[r-2]*.5)*r,n[0]=a[0]*t[0]<=0?0:qn(a[0])>2*qn(t[0])?2*t[0]:a[0],n[r]=a[r]*t[r-1]<=0?0:qn(a[r])>2*qn(t[r-1])?2*t[r-1]:a[r],gg(e,n,t)},WW=e=>{let r=e.length-1,[t,a,n]=mg(e);a[0]=.5*(e[1]-e[r])*r,a[r]=.5*(e[0]-e[r-1])*r;let i=(e[0]-e[r])*r,l=i;return n[0]=(d0(i)+d0(t[0]))*Gm(qn(i),qn(t[0]),.5*qn(a[0])),n[r]=(d0(t[r-1])+d0(l))*Gm(qn(t[r-1]),qn(l),.5*qn(a[r])),gg(e,n,t)},ZW=(e=1)=>e===1?r=>r:r=>Math.pow(r,e),_8=ZW,JW=(e=2,r=1)=>{let t=_8(r);if(e<2)return e<1?[]:[t(.5)];let a=[];for(let n=0;n{let r={mode:e.mode,r:Math.max(0,Math.min(e.r!==void 0?e.r:0,1)),g:Math.max(0,Math.min(e.g!==void 0?e.g:0,1)),b:Math.max(0,Math.min(e.b!==void 0?e.b:0,1))};return e.alpha!==void 0&&(r.alpha=e.alpha),r},T8=e=>M8(w8(e)),A8=e=>e!==void 0&&(e.r===void 0||e.r>=0&&e.r<=1)&&(e.g===void 0||e.g>=0&&e.g<=1)&&(e.b===void 0||e.b>=0&&e.b<=1);function yg(e){return A8(w8(e))}function d2(e="rgb"){let{gamut:r}=an(e);if(!r)return a=>!0;let t=xt(typeof r=="string"?r:e);return a=>A8(t(a))}function KW(e){return e=_i(e),e===void 0||yg(e)?e:xt(e.mode)(T8(e))}function bg(e="rgb"){let{gamut:r}=an(e);if(!r)return i=>_i(i);let t=typeof r=="string"?r:e,a=xt(t),n=d2(t);return i=>{let l=_i(i);if(!l)return;let o=a(l);if(n(o))return l;let s=M8(o);return l.mode===s.mode?s:xt(l.mode)(s)}}function jW(e,r="lch",t="rgb"){e=_i(e);let a=t==="rgb"?yg:d2(t),n=t==="rgb"?T8:bg(t);if(e===void 0||a(e))return e;let i=xt(e.mode);e=xt(r)(e);let l=St(ut({},e),{c:0});if(!a(l))return i(n(l));let o=0,s=e.c!==void 0?e.c:0,u=an(r).ranges.c,f=(u[1]-u[0])/Math.pow(2,13),c=l.c;for(;s-o>f;)l.c=o+(s-o)*.5,a(l)?(c=l.c,o=l.c):s=l.c;return i(a(l)?l:St(ut({},l),{c}))}function QW(e="rgb",r="oklch",t=g0("oklch"),a=.02){let n=xt(e),i=an(e);if(!i.gamut)return f=>n(f);let l=d2(e),o=bg(e),s=xt(r),{ranges:u}=an(r);if(!u.l||!u.c)throw new Error("LCH-like space expected");return f=>{if(f=_i(f),f===void 0)return;let c=ut({},s(f));if(c.l===void 0&&(c.l=0),c.c===void 0&&(c.c=0),c.l>=u.l[1]){let y=St(ut({},i.white),{mode:e});return f.alpha!==void 0&&(y.alpha=f.alpha),y}if(c.l<=u.l[0]){let y=St(ut({},i.black),{mode:e});return f.alpha!==void 0&&(y.alpha=f.alpha),y}if(l(c))return n(c);let d=0,h=c.c,p=(u.c[1]-u.c[0])/4e3,g=o(c);for(;h-d>p;)c.c=(d+h)*.5,g=o(c),l(c)||t&&a>0&&t(c,g)<=a?d=c.c:h=c.c;return n(l(c)?c:g)}}var eZ=(e,r=g0(),t=a=>a)=>{let a=e.map((n,i)=>({color:t(n),i}));return(n,i=1,l=1/0)=>(isFinite(i)&&(i=Math.max(1,Math.min(i,a.length-1))),a.forEach(o=>{o.d=r(n,o.color)}),a.sort((o,s)=>o.d-s.d).slice(0,i).filter(o=>o.de[o.i]))},rZ=eZ,xg=e=>Math.max(e,0),_g=e=>Math.max(Math.min(e,1),0),tZ=(e,r,t)=>e===void 0||r===void 0?void 0:e+t*(r-e),aZ=e=>{let r=1-_g(e);return[.393+.607*r,.769-.769*r,.189-.189*r,0,.349-.349*r,.686+.314*r,.168-.168*r,0,.272-.272*r,.534-.534*r,.131+.869*r,0,0,0,0,1]},nZ=e=>{let r=xg(e);return[.213+.787*r,.715-.715*r,.072-.072*r,0,.213-.213*r,.715+.285*r,.072-.072*r,0,.213-.213*r,.715-.715*r,.072+.928*r,0,0,0,0,1]},iZ=e=>{let r=1-_g(e);return[.2126+.7874*r,.7152-.7152*r,.0722-.0722*r,0,.2126-.2126*r,.7152+.2848*r,.0722-.0722*r,0,.2126-.2126*r,.7152-.7152*r,.0722+.9278*r,0,0,0,0,1]},lZ=e=>{let r=Math.PI*e/180,t=Math.cos(r),a=Math.sin(r);return[.213+t*.787-a*.213,.715-t*.715-a*.715,.072-t*.072+a*.928,0,.213-t*.213+a*.143,.715+t*.285+a*.14,.072-t*.072-a*.283,0,.213-t*.213-a*.787,.715-t*.715+a*.715,.072+t*.928+a*.072,0,0,0,0,1]},h2=(e,r,t=!1)=>{let a=xt(r),n=an(r).channels;return i=>{let l=a(i);if(!l)return;let o={mode:r},s,u=n.length;for(let c=0;c{let t=xg(e);return df(pg(t),r,!0)},sZ=(e=1,r="rgb")=>{let t=xg(e);return df(pg(t,(1-t)/2),r,!0)},uZ=(e=1,r="rgb")=>h2(aZ(e),r,!0),fZ=(e=1,r="rgb")=>h2(nZ(e),r,!0),cZ=(e=1,r="rgb")=>h2(iZ(e),r,!0),vZ=(e=1,r="rgb")=>{let t=_g(e);return df((a,n)=>n==="alpha"?a:tZ(t,1-t,a),r,!0)},dZ=(e=0,r="rgb")=>h2(lZ(e),r,!0),hZ=xt("rgb"),pZ=[[1,0,-0,0,1,0,-0,-0,1],[.856167,.182038,-.038205,.029342,.955115,.015544,-.00288,-.001563,1.004443],[.734766,.334872,-.069637,.05184,.919198,.028963,-.004928,-.004209,1.009137],[.630323,.465641,-.095964,.069181,.890046,.040773,-.006308,-.007724,1.014032],[.539009,.579343,-.118352,.082546,.866121,.051332,-.007136,-.011959,1.019095],[.458064,.679578,-.137642,.092785,.846313,.060902,-.007494,-.016807,1.024301],[.38545,.769005,-.154455,.100526,.829802,.069673,-.007442,-.02219,1.029632],[.319627,.849633,-.169261,.106241,.815969,.07779,-.007025,-.028051,1.035076],[.259411,.923008,-.18242,.110296,.80434,.085364,-.006276,-.034346,1.040622],[.203876,.990338,-.194214,.112975,.794542,.092483,-.005222,-.041043,1.046265],[.152286,1.052583,-.204868,.114503,.786281,.099216,-.003882,-.048116,1.051998]],mZ=[[1,0,-0,0,1,0,-0,-0,1],[.866435,.177704,-.044139,.049567,.939063,.01137,-.003453,.007233,.99622],[.760729,.319078,-.079807,.090568,.889315,.020117,-.006027,.013325,.992702],[.675425,.43385,-.109275,.125303,.847755,.026942,-.00795,.018572,.989378],[.605511,.52856,-.134071,.155318,.812366,.032316,-.009376,.023176,.9862],[.547494,.607765,-.155259,.181692,.781742,.036566,-.01041,.027275,.983136],[.498864,.674741,-.173604,.205199,.754872,.039929,-.011131,.030969,.980162],[.457771,.731899,-.18967,.226409,.731012,.042579,-.011595,.034333,.977261],[.422823,.781057,-.203881,.245752,.709602,.044646,-.011843,.037423,.974421],[.392952,.82361,-.216562,.263559,.69021,.046232,-.01191,.040281,.97163],[.367322,.860646,-.227968,.280085,.672501,.047413,-.01182,.04294,.968881]],gZ=[[1,0,-0,0,1,0,-0,-0,1],[.92667,.092514,-.019184,.021191,.964503,.014306,.008437,.054813,.93675],[.89572,.13333,-.02905,.029997,.9454,.024603,.013027,.104707,.882266],[.905871,.127791,-.033662,.026856,.941251,.031893,.01341,.148296,.838294],[.948035,.08949,-.037526,.014364,.946792,.038844,.010853,.193991,.795156],[1.017277,.027029,-.044306,-.006113,.958479,.047634,.006379,.248708,.744913],[1.104996,-.046633,-.058363,-.032137,.971635,.060503,.001336,.317922,.680742],[1.193214,-.109812,-.083402,-.058496,.97941,.079086,-.002346,.403492,.598854],[1.257728,-.139648,-.118081,-.078003,.975409,.102594,-.003316,.501214,.502102],[1.278864,-.125333,-.153531,-.084748,.957674,.127074,-989e-6,.601151,.399838],[1.255528,-.076749,-.178779,-.078411,.930809,.147602,.004733,.691367,.3039]],wg=(e,r)=>{let t=Math.max(0,Math.min(1,r)),a=Math.round(t/.1),n=Math.round(t%.1),i=e[a];if(n>0&&aXo(i[s],l[s],n))}return l=>{let o=_i(l);if(o===void 0)return;let{r:s,g:u,b:f}=hZ(o),c={mode:"rgb",r:i[0]*s+i[1]*u+i[2]*f,g:i[3]*s+i[4]*u+i[5]*f,b:i[6]*s+i[7]*u+i[8]*f};return o.alpha!==void 0&&(c.alpha=o.alpha),xt(o.mode)(c)}},yZ=(e=1)=>wg(pZ,e),bZ=(e=1)=>wg(mZ,e),xZ=(e=1)=>wg(gZ,e),_Z=e=>e*e*(3-2*e),wZ=e=>.5-Math.sin(Math.asin(1-2*e)/3),MZ=e=>e*e*e*(e*(e*6-15)+10),TZ=MZ,AZ=e=>(1-Math.cos(e*Math.PI))/2,kZ=AZ;function Vm(e){let r=xt("lrgb")(e);return .2126*r.r+.7152*r.g+.0722*r.b}function CZ(e,r){let t=Vm(e),a=Vm(r);return(Math.max(t,a)+.05)/(Math.min(t,a)+.05)}var SZ=dt(n7),DZ=dt(u7),LZ=dt(h7),qZ=dt(p7),EZ=dt(y7),PZ=dt(Km),RZ=dt(eg),zZ=dt(k7),FZ=dt(D7),NZ=dt(L7),IZ=dt(q7),BZ=dt(c2),HZ=dt(P7),OZ=dt(v2),YZ=dt(z7),UZ=dt(I7),GZ=dt(B7),VZ=dt(H7),XZ=dt(Y7),WZ=dt(U7),ZZ=dt(V7),JZ=dt(W7),$Z=dt(Z7),KZ=dt(J7),jZ=dt($7),QZ=dt(Jo),eJ=dt(e8),rJ=dt(r8),tJ=dt(n8),aJ=dt(o8)});var Mg={};Nt(Mg,{default:()=>iJ});var nJ,iJ,Tg=Ft(()=>{"use strict";nJ={format:{valType:"enumerated",values:["png","jpeg","webp","svg","full-json"],dflt:"png",description:"Sets the format of exported image."},width:{valType:"number",min:1,description:["Sets the exported image width.","Defaults to the value found in `layout.width`","If set to *null*, the exported image width will match the current graph width."].join(" ")},height:{valType:"number",min:1,description:["Sets the exported image height.","Defaults to the value found in `layout.height`","If set to *null*, the exported image height will match the current graph height."].join(" ")},scale:{valType:"number",min:0,dflt:1,description:["Sets a scaling for the generated image.","If set, all features of a graphs (e.g. text, line width)","are scaled, unlike simply setting","a bigger *width* and *height*."].join(" ")},setBackground:{valType:"any",dflt:!1,description:["Sets the image background mode.","By default, the image background is determined by `layout.paper_bgcolor`,","the *transparent* mode.","One might consider setting `setBackground` to *opaque*","when exporting a *jpeg* image as JPEGs do not support opacity."].join(" ")},imageDataOnly:{valType:"boolean",dflt:!1,description:["Determines whether or not the return value is prefixed by","the image format's corresponding 'data:image;' spec."].join(" ")}},iJ=nJ});var Xl=J((Oge,E8)=>{"use strict";var{format:lJ,width:oJ,height:sJ,scale:uJ}=(Tg(),Xe(Mg)).default,S8=uJ,{dflt:Hge}=S8,fJ=K6(S8,["dflt"]),D8={staticPlot:{valType:"boolean",dflt:!1},typesetMath:{valType:"boolean",dflt:!0},plotlyServerURL:{valType:"string",dflt:"https://cloud.plotly.com/newchart"},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","map"],extras:[!0,!1],dflt:"gl3d+geo+map"},doubleClick:{valType:"enumerated",values:[!1,"reset","autosize","reset+autosize"],dflt:"reset+autosize"},doubleClickDelay:{valType:"number",dflt:500,min:0},showAxisDragHandles:{valType:"boolean",dflt:!0},showAxisRangeEntryBoxes:{valType:"boolean",dflt:!0},showTips:{valType:"boolean",dflt:!0},displayNotifier:{valType:"boolean",dflt:!0},displayModeBar:{valType:"enumerated",values:["hover",!0,!1],dflt:"hover"},showSendToCloud:{valType:"boolean",dflt:!0},modeBarButtonsToRemove:{valType:"any",dflt:[]},modeBarButtonsToAdd:{valType:"any",dflt:[]},modeBarButtons:{valType:"any",dflt:!1},toImageButtonOptions:{format:lJ,filename:{valType:"string"},width:oJ,height:sJ,scale:fJ},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/un/"},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},locale:{valType:"string",dflt:"en-US"},locales:{valType:"any",dflt:{}}},L8={};function q8(e,r){for(let t in e){let a=e[t];typeof a!="object"||a===null||(a.valType?"dflt"in a&&(r[t]=a.dflt):(r[t]||(r[t]={}),q8(a,r[t])))}}q8(D8,L8);E8.exports={configAttributes:D8,dfltConfig:L8}});var kg=J((Uge,P8)=>{"use strict";var Ag=Or(),cJ=Zr(),hf=[];P8.exports=function(e,r,t){var o;if(((o=t==null?void 0:t._context)==null?void 0:o.displayNotifier)===!1||hf.indexOf(e)!==-1)return;hf.push(e);var a=1e3;cJ(r)?a=r:r==="long"&&(a=3e3);var n=Ag.select("body").selectAll(".plotly-notifier").data([0]);n.enter().append("div").classed("plotly-notifier",!0);var i=n.selectAll(".notifier-note").data(hf);function l(s){s.duration(700).style("opacity",0).each("end",function(u){var f=hf.indexOf(u);f!==-1&&hf.splice(f,1),Ag.select(this).remove()})}i.enter().append("div").classed("notifier-note",!0).style("opacity",0).each(function(s){var u=Ag.select(this);u.append("button").classed("notifier-close",!0).html("×").on("click",function(){u.transition().call(l)});for(var f=u.append("p"),c=s.split(//g),d=0;d{"use strict";var _0=Xl().dfltConfig,Cg=kg(),Sg=R8.exports={};Sg.log=function(){var e;if(_0.logging>1){var r=["LOG:"];for(e=0;e1){var t=[];for(e=0;e"),"long")}};Sg.warn=function(){var e;if(_0.logging>0){var r=["WARN:"];for(e=0;e0){var t=[];for(e=0;e"),"stick")}};Sg.error=function(){var e;if(_0.logging>0){var r=["ERROR:"];for(e=0;e0){var t=[];for(e=0;e"),"stick")}}});var $i=J(jo=>{"use strict";jo.defaults=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"];jo.defaultLine="#444";jo.lightLine="#eee";jo.background="#fff";jo.borderLine="#BEC8D9";jo.lightFraction=1e3/11});var Nr=J((Xge,U8)=>{"use strict";var{converter:z8,formatHex:vJ,formatRgb:dJ,wcagContrast:hJ,wcagLuminance:pJ}=C8(),{isArrayOrTypedArray:F8}=xn(),{warn:mJ}=Wl(),{background:mf,defaultLine:qg,defaults:gJ,lightLine:yJ}=$i(),N8=z8("rgb"),bJ=z8("hsl"),I8=e=>{if(typeof e!="string")return;let r=e.trim().toLowerCase();if(!/^[0-9a-f]+$/.test(r))try{return N8(r)}catch(t){return}},nn=e=>e>0?e>1?1:e:0,xJ={mode:"rgb",r:0,g:0,b:0,alpha:1},Dg=e=>Math.round(e*255e6)/255e6,B8=e=>St(ut({},e),{r:Dg(e.r),g:Dg(e.g),b:Dg(e.b)}),En=e=>dJ(B8(e)),_J=e=>vJ(B8(e)),wJ=e=>{var r,t,a,n;return typeof e=="string"?`"${e}"`:F8(e)?`${(t=(r=e.constructor)==null?void 0:r.name)!=null?t:"Array"}(${e.length})`:typeof e=="object"?(n=(a=e.constructor)==null?void 0:a.name)!=null?n:"Object":`${typeof e} ${e}`},It=(e,r)=>{var a;let t=I8(e);return t?((a=t.alpha)!=null||(t.alpha=1),t):(!r&&e!=null&&mJ(`Invalid color specifier: ${wJ(e)}. Defaulting to "#000"`),xJ)},pf=e=>En(St(ut({},It(e)),{alpha:1})),MJ=e=>e?It(e).alpha:0,H8=e=>F8(e)&&e.length>2&&Number.isFinite(e[0])&&Number.isFinite(e[1])&&Number.isFinite(e[2]),TJ=e=>{let[r,t,a,n]=e,i=Math.max(r,t,a)>1?1/255:1,l=n!=null?n:1;return{mode:"rgb",r:r*i,g:t*i,b:a*i,alpha:l>1?l/255:l}},AJ=(e,r)=>{let t=H8(e)?TJ(e):It(e,!0),a=[nn(t.r),nn(t.g),nn(t.b),nn(t.alpha)];return r==="uint8"||r==="uint8_clamped"?Uint8Array.from(a,n=>Math.round(n*255)):r==="float32"?Float32Array.from(a):r==="float64"?Float64Array.from(a):a},kJ=(e,r)=>En(St(ut({},It(e)),{alpha:nn(r)})),O8=(e,r)=>{let t=It(e),a=t.alpha;if(a===1)return En(t);let n=It(r||mf),i=n.alpha,l=(o,s)=>(i===1?s:1-i+s*i)*(1-a)+o*a;return En({mode:"rgb",r:l(t.r,n.r),g:l(t.g,n.g),b:l(t.b,n.b)})},CJ=(e,r,t)=>{let a=It(e),n=It(r),i=(l,o)=>t*l+(1-t)*o;return En({mode:"rgb",r:i(a.r,n.r),g:i(a.g,n.g),b:i(a.b,n.b)})},Lg=(e,r)=>{let t=It(e),a=bJ(t)||{mode:"hsl",h:0,s:0,l:0};return En(N8(St(ut({},a),{l:nn((a.l*100+r)/100),alpha:t.alpha})))},p2=(e,r)=>hJ(It(e),It(r)),Y8=e=>p2(e,mf)>p2(e,qg),SJ=En(It(mf)),DJ=En(It(qg)),LJ=(e,r,t)=>(It(e).alpha!==1&&(e=O8(e,mf)),Y8(e)?r?Lg(e,r):SJ:t?Lg(e,-t):DJ),qJ=(e,r)=>{e.style({stroke:pf(r),"stroke-opacity":It(r).alpha})},EJ=(e,r)=>{e.style({fill:pf(r),"fill-opacity":It(r).alpha})},PJ=(e,r)=>!!(e&&r&&pf(e)===pf(r)),RJ=e=>I8(e)!==void 0,zJ=(e,r)=>{r=r===0?0:r||10;let t=It(e),a=r/100;return En(St(ut({},t),{r:nn(t.r+a),g:nn(t.g+a),b:nn(t.b+a)}))},FJ=(e,r,t)=>{let a=It(e),n=It(r),i=t/100,l=n.alpha-a.alpha,o=2*i-1,s=((o*l===-1?o:(o+l)/(1+o*l))+1)/2,u=1-s,f=(c,d)=>u*c+s*d;return En({mode:"rgb",r:f(a.r,n.r),g:f(a.g,n.g),b:f(a.b,n.b),alpha:a.alpha*(1-i)+n.alpha*i})},NJ=(e,r=["#000","#fff"])=>{let t,a=-1/0;for(let n of r){let i=p2(e,n);i>a&&(a=i,t=En(It(n)))}return t},IJ=e=>En(It(e)),BJ=e=>_J(It(e)).toUpperCase(),HJ=e=>{let r=It(e);return[nn(r.r)*255,nn(r.g)*255,nn(r.b)*255,nn(r.alpha)]},OJ=([e,r,t,a])=>En({mode:"rgb",r:e/255,g:r/255,b:t/255,alpha:a}),YJ=e=>{let r=It(e);return pJ({mode:"rgb",r:nn(r.r),g:nn(r.g),b:nn(r.b)})};U8.exports={addOpacity:kJ,adjustLightness:Lg,background:mf,brighten:zJ,combine:O8,contrast:LJ,defaultLine:qg,defaults:gJ,equals:PJ,fill:EJ,hexString:BJ,interpolate:CJ,isChannelArray:H8,isDark:Y8,isValid:RJ,lightLine:yJ,luminosity:YJ,mix:FJ,mostReadable:NJ,normalize:AJ,opacity:MJ,parse:It,rgb:pf,rgbaArray:HJ,rgbaArrayToString:OJ,rgbaString:IJ,stroke:qJ,wcagContrast:p2}});var Qo=J((Zge,X8)=>{"use strict";var UJ=Nr(),m2={Greys:[[0,"rgb(0,0,0)"],[1,"rgb(255,255,255)"]],YlGnBu:[[0,"rgb(8,29,88)"],[.125,"rgb(37,52,148)"],[.25,"rgb(34,94,168)"],[.375,"rgb(29,145,192)"],[.5,"rgb(65,182,196)"],[.625,"rgb(127,205,187)"],[.75,"rgb(199,233,180)"],[.875,"rgb(237,248,217)"],[1,"rgb(255,255,217)"]],Greens:[[0,"rgb(0,68,27)"],[.125,"rgb(0,109,44)"],[.25,"rgb(35,139,69)"],[.375,"rgb(65,171,93)"],[.5,"rgb(116,196,118)"],[.625,"rgb(161,217,155)"],[.75,"rgb(199,233,192)"],[.875,"rgb(229,245,224)"],[1,"rgb(247,252,245)"]],YlOrRd:[[0,"rgb(128,0,38)"],[.125,"rgb(189,0,38)"],[.25,"rgb(227,26,28)"],[.375,"rgb(252,78,42)"],[.5,"rgb(253,141,60)"],[.625,"rgb(254,178,76)"],[.75,"rgb(254,217,118)"],[.875,"rgb(255,237,160)"],[1,"rgb(255,255,204)"]],Bluered:[[0,"rgb(0,0,255)"],[1,"rgb(255,0,0)"]],RdBu:[[0,"rgb(5,10,172)"],[.35,"rgb(106,137,247)"],[.5,"rgb(190,190,190)"],[.6,"rgb(220,170,132)"],[.7,"rgb(230,145,90)"],[1,"rgb(178,10,28)"]],Reds:[[0,"rgb(220,220,220)"],[.2,"rgb(245,195,157)"],[.4,"rgb(245,160,105)"],[1,"rgb(178,10,28)"]],Blues:[[0,"rgb(5,10,172)"],[.35,"rgb(40,60,190)"],[.5,"rgb(70,100,245)"],[.6,"rgb(90,120,245)"],[.7,"rgb(106,137,247)"],[1,"rgb(220,220,220)"]],Picnic:[[0,"rgb(0,0,255)"],[.1,"rgb(51,153,255)"],[.2,"rgb(102,204,255)"],[.3,"rgb(153,204,255)"],[.4,"rgb(204,204,255)"],[.5,"rgb(255,255,255)"],[.6,"rgb(255,204,255)"],[.7,"rgb(255,153,255)"],[.8,"rgb(255,102,204)"],[.9,"rgb(255,102,102)"],[1,"rgb(255,0,0)"]],Rainbow:[[0,"rgb(150,0,90)"],[.125,"rgb(0,0,200)"],[.25,"rgb(0,25,255)"],[.375,"rgb(0,152,255)"],[.5,"rgb(44,255,150)"],[.625,"rgb(151,255,0)"],[.75,"rgb(255,234,0)"],[.875,"rgb(255,111,0)"],[1,"rgb(255,0,0)"]],Portland:[[0,"rgb(12,51,131)"],[.25,"rgb(10,136,186)"],[.5,"rgb(242,211,56)"],[.75,"rgb(242,143,56)"],[1,"rgb(217,30,30)"]],Jet:[[0,"rgb(0,0,131)"],[.125,"rgb(0,60,170)"],[.375,"rgb(5,255,255)"],[.625,"rgb(255,255,0)"],[.875,"rgb(250,0,0)"],[1,"rgb(128,0,0)"]],Hot:[[0,"rgb(0,0,0)"],[.3,"rgb(230,0,0)"],[.6,"rgb(255,210,0)"],[1,"rgb(255,255,255)"]],Blackbody:[[0,"rgb(0,0,0)"],[.2,"rgb(230,0,0)"],[.4,"rgb(230,210,0)"],[.7,"rgb(255,255,255)"],[1,"rgb(160,200,255)"]],Earth:[[0,"rgb(0,0,130)"],[.1,"rgb(0,180,180)"],[.2,"rgb(40,210,40)"],[.4,"rgb(230,230,50)"],[.6,"rgb(120,70,20)"],[1,"rgb(255,255,255)"]],Electric:[[0,"rgb(0,0,0)"],[.15,"rgb(30,0,100)"],[.4,"rgb(120,0,100)"],[.6,"rgb(160,90,0)"],[.8,"rgb(230,200,0)"],[1,"rgb(255,250,220)"]],Viridis:[[0,"#440154"],[.06274509803921569,"#48186a"],[.12549019607843137,"#472d7b"],[.18823529411764706,"#424086"],[.25098039215686274,"#3b528b"],[.3137254901960784,"#33638d"],[.3764705882352941,"#2c728e"],[.4392156862745098,"#26828e"],[.5019607843137255,"#21918c"],[.5647058823529412,"#1fa088"],[.6274509803921569,"#28ae80"],[.6901960784313725,"#3fbc73"],[.7529411764705882,"#5ec962"],[.8156862745098039,"#84d44b"],[.8784313725490196,"#addc30"],[.9411764705882353,"#d8e219"],[1,"#fde725"]],Cividis:[[0,"rgb(0,32,76)"],[.058824,"rgb(0,42,102)"],[.117647,"rgb(0,52,110)"],[.176471,"rgb(39,63,108)"],[.235294,"rgb(60,74,107)"],[.294118,"rgb(76,85,107)"],[.352941,"rgb(91,95,109)"],[.411765,"rgb(104,106,112)"],[.470588,"rgb(117,117,117)"],[.529412,"rgb(131,129,120)"],[.588235,"rgb(146,140,120)"],[.647059,"rgb(161,152,118)"],[.705882,"rgb(176,165,114)"],[.764706,"rgb(192,177,109)"],[.823529,"rgb(209,191,102)"],[.882353,"rgb(225,204,92)"],[.941176,"rgb(243,219,79)"],[1,"rgb(255,233,69)"]]},G8=m2.RdBu;function GJ(e,r){if(r||(r=G8),!e)return r;function t(){try{e=m2[e]||JSON.parse(e)}catch(a){e=r}}return typeof e=="string"&&(t(),typeof e=="string"&&t()),V8(e)?e:r}function V8(e){var r=0;if(!Array.isArray(e)||e.length<2||!e[0]||!e[e.length-1]||+e[0][0]!=0||+e[e.length-1][0]!=1)return!1;for(var t=0;tZJ,HIDE_PLACEHOLDER:()=>WJ,SHOW_PLACEHOLDER:()=>XJ});var XJ,WJ,ZJ,y2=Ft(()=>{"use strict";XJ=100,WJ=1e3,ZJ=.2});var gf={};Nt(gf,{counter:()=>es});function es(e,r="",t,a){let n=r+(t?"":"$"),i=a===!1?"":"^";return e==="xy"?new RegExp(i+"x"+Eg+"y"+Eg+n):new RegExp(i+e+Eg+n)}var Eg,w0=Ft(()=>{"use strict";Eg="([2-9]|[1-9][0-9]+)?"});var J8=J(wn=>{"use strict";var Pg=Zr(),W8=va().extendFlat,JJ=xi(),$J=Qo(),Rg=Nr(),KJ=(y2(),Xe(g2)).DESELECTDIM,M0=Hv(),Z8=(w0(),Xe(gf)).counter,jJ=(c0(),Xe(f0)).modHalf,wi=xn().isArrayOrTypedArray,Zl=xn().isTypedArraySpec,Jl=xn().decodeTypedArraySpec;wn.valObjectMeta={data_array:{coerceFunction:function(e,r,t){r.set(wi(e)?e:Zl(e)?Jl(e):t)}},enumerated:{coerceFunction:function(e,r,t,a){a.coerceNumber&&(e=+e),a.values.indexOf(e)===-1?r.set(t):r.set(e)},validateFunction:function(e,r){r.coerceNumber&&(e=+e);for(var t=r.values,a=0;ai===!0||i===!1;n(e)||a.arrayOk&&Array.isArray(e)&&e.length>0&&e.every(n)?r.set(e):r.set(t)}},number:{coerceFunction:function(e,r,t,a){Zl(e)&&(e=Jl(e)),!Pg(e)||a.min!==void 0&&ea.max?r.set(t):r.set(+e)}},integer:{coerceFunction:function(e,r,t,a){if((a.extras||[]).indexOf(e)!==-1){r.set(e);return}Zl(e)&&(e=Jl(e)),e%1||!Pg(e)||a.min!==void 0&&ea.max?r.set(t):r.set(+e)}},string:{coerceFunction:function(e,r,t,a){if(typeof e!="string"){var n=typeof e=="number";a.strict===!0||!n?r.set(t):r.set(String(e))}else a.noBlank&&!e?r.set(t):r.set(e)}},color:{coerceFunction:function(e,r,t){Zl(e)&&(e=Jl(e)),Rg.isValid(e)?r.set(e):r.set(t)}},colorlist:{coerceFunction:function(e,r,t){!Array.isArray(e)||!e.length?r.set(t):e.every(a=>Rg.isValid(a))?r.set(e):r.set(t)}},colorscale:{coerceFunction:function(e,r,t){r.set($J.get(e,t))}},angle:{coerceFunction:function(e,r,t){Zl(e)&&(e=Jl(e)),e==="auto"?r.set("auto"):Pg(e)?r.set(jJ(+e,360)):r.set(t)}},subplotid:{coerceFunction:function(e,r,t,a){var n=a.regex||Z8(t);let i=l=>typeof l=="string"&&n.test(l);i(e)||a.arrayOk&&wi(e)&&e.length>0&&e.every(i)?r.set(e):r.set(t)},validateFunction:function(e,r){var t=r.dflt;return e===t?!0:typeof e!="string"?!1:!!Z8(t).test(e)}},flaglist:{coerceFunction:function(e,r,t,a){if((a.extras||[]).indexOf(e)!==-1){r.set(e);return}if(typeof e!="string"){r.set(t);return}for(var n=e.split("+"),i=0;i{"use strict";$8.exports=function(){}});var zg=J((Kge,K8)=>{"use strict";K8.exports=function(r,t){if(t instanceof RegExp){for(var a=t.toString(),n=0;n{j8.exports=QJ;function QJ(){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}});var r9=J((Qge,e9)=>{e9.exports=e$;function e$(e){var r=new Float32Array(16);return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4],r[5]=e[5],r[6]=e[6],r[7]=e[7],r[8]=e[8],r[9]=e[9],r[10]=e[10],r[11]=e[11],r[12]=e[12],r[13]=e[13],r[14]=e[14],r[15]=e[15],r}});var a9=J((eye,t9)=>{t9.exports=r$;function r$(e,r){return e[0]=r[0],e[1]=r[1],e[2]=r[2],e[3]=r[3],e[4]=r[4],e[5]=r[5],e[6]=r[6],e[7]=r[7],e[8]=r[8],e[9]=r[9],e[10]=r[10],e[11]=r[11],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15],e}});var Fg=J((rye,n9)=>{n9.exports=t$;function t$(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}});var l9=J((tye,i9)=>{i9.exports=a$;function a$(e,r){if(e===r){var t=r[1],a=r[2],n=r[3],i=r[6],l=r[7],o=r[11];e[1]=r[4],e[2]=r[8],e[3]=r[12],e[4]=t,e[6]=r[9],e[7]=r[13],e[8]=a,e[9]=i,e[11]=r[14],e[12]=n,e[13]=l,e[14]=o}else e[0]=r[0],e[1]=r[4],e[2]=r[8],e[3]=r[12],e[4]=r[1],e[5]=r[5],e[6]=r[9],e[7]=r[13],e[8]=r[2],e[9]=r[6],e[10]=r[10],e[11]=r[14],e[12]=r[3],e[13]=r[7],e[14]=r[11],e[15]=r[15];return e}});var s9=J((aye,o9)=>{o9.exports=n$;function n$(e,r){var t=r[0],a=r[1],n=r[2],i=r[3],l=r[4],o=r[5],s=r[6],u=r[7],f=r[8],c=r[9],d=r[10],h=r[11],p=r[12],g=r[13],y=r[14],x=r[15],w=t*o-a*l,M=t*s-n*l,b=t*u-i*l,T=a*s-n*o,S=a*u-i*o,C=n*u-i*s,L=f*g-c*p,q=f*y-d*p,P=f*x-h*p,z=c*y-d*g,N=c*x-h*g,H=d*x-h*y,B=w*H-M*N+b*z+T*P-S*q+C*L;return B?(B=1/B,e[0]=(o*H-s*N+u*z)*B,e[1]=(n*N-a*H-i*z)*B,e[2]=(g*C-y*S+x*T)*B,e[3]=(d*S-c*C-h*T)*B,e[4]=(s*P-l*H-u*q)*B,e[5]=(t*H-n*P+i*q)*B,e[6]=(y*b-p*C-x*M)*B,e[7]=(f*C-d*b+h*M)*B,e[8]=(l*N-o*P+u*L)*B,e[9]=(a*P-t*N-i*L)*B,e[10]=(p*S-g*b+x*w)*B,e[11]=(c*b-f*S-h*w)*B,e[12]=(o*q-l*z-s*L)*B,e[13]=(t*z-a*q+n*L)*B,e[14]=(g*M-p*T-y*w)*B,e[15]=(f*T-c*M+d*w)*B,e):null}});var f9=J((nye,u9)=>{u9.exports=i$;function i$(e,r){var t=r[0],a=r[1],n=r[2],i=r[3],l=r[4],o=r[5],s=r[6],u=r[7],f=r[8],c=r[9],d=r[10],h=r[11],p=r[12],g=r[13],y=r[14],x=r[15];return e[0]=o*(d*x-h*y)-c*(s*x-u*y)+g*(s*h-u*d),e[1]=-(a*(d*x-h*y)-c*(n*x-i*y)+g*(n*h-i*d)),e[2]=a*(s*x-u*y)-o*(n*x-i*y)+g*(n*u-i*s),e[3]=-(a*(s*h-u*d)-o*(n*h-i*d)+c*(n*u-i*s)),e[4]=-(l*(d*x-h*y)-f*(s*x-u*y)+p*(s*h-u*d)),e[5]=t*(d*x-h*y)-f*(n*x-i*y)+p*(n*h-i*d),e[6]=-(t*(s*x-u*y)-l*(n*x-i*y)+p*(n*u-i*s)),e[7]=t*(s*h-u*d)-l*(n*h-i*d)+f*(n*u-i*s),e[8]=l*(c*x-h*g)-f*(o*x-u*g)+p*(o*h-u*c),e[9]=-(t*(c*x-h*g)-f*(a*x-i*g)+p*(a*h-i*c)),e[10]=t*(o*x-u*g)-l*(a*x-i*g)+p*(a*u-i*o),e[11]=-(t*(o*h-u*c)-l*(a*h-i*c)+f*(a*u-i*o)),e[12]=-(l*(c*y-d*g)-f*(o*y-s*g)+p*(o*d-s*c)),e[13]=t*(c*y-d*g)-f*(a*y-n*g)+p*(a*d-n*c),e[14]=-(t*(o*y-s*g)-l*(a*y-n*g)+p*(a*s-n*o)),e[15]=t*(o*d-s*c)-l*(a*d-n*c)+f*(a*s-n*o),e}});var v9=J((iye,c9)=>{c9.exports=l$;function l$(e){var r=e[0],t=e[1],a=e[2],n=e[3],i=e[4],l=e[5],o=e[6],s=e[7],u=e[8],f=e[9],c=e[10],d=e[11],h=e[12],p=e[13],g=e[14],y=e[15],x=r*l-t*i,w=r*o-a*i,M=r*s-n*i,b=t*o-a*l,T=t*s-n*l,S=a*s-n*o,C=u*p-f*h,L=u*g-c*h,q=u*y-d*h,P=f*g-c*p,z=f*y-d*p,N=c*y-d*g;return x*N-w*z+M*P+b*q-T*L+S*C}});var h9=J((lye,d9)=>{d9.exports=o$;function o$(e,r,t){var a=r[0],n=r[1],i=r[2],l=r[3],o=r[4],s=r[5],u=r[6],f=r[7],c=r[8],d=r[9],h=r[10],p=r[11],g=r[12],y=r[13],x=r[14],w=r[15],M=t[0],b=t[1],T=t[2],S=t[3];return e[0]=M*a+b*o+T*c+S*g,e[1]=M*n+b*s+T*d+S*y,e[2]=M*i+b*u+T*h+S*x,e[3]=M*l+b*f+T*p+S*w,M=t[4],b=t[5],T=t[6],S=t[7],e[4]=M*a+b*o+T*c+S*g,e[5]=M*n+b*s+T*d+S*y,e[6]=M*i+b*u+T*h+S*x,e[7]=M*l+b*f+T*p+S*w,M=t[8],b=t[9],T=t[10],S=t[11],e[8]=M*a+b*o+T*c+S*g,e[9]=M*n+b*s+T*d+S*y,e[10]=M*i+b*u+T*h+S*x,e[11]=M*l+b*f+T*p+S*w,M=t[12],b=t[13],T=t[14],S=t[15],e[12]=M*a+b*o+T*c+S*g,e[13]=M*n+b*s+T*d+S*y,e[14]=M*i+b*u+T*h+S*x,e[15]=M*l+b*f+T*p+S*w,e}});var m9=J((oye,p9)=>{p9.exports=s$;function s$(e,r,t){var a=t[0],n=t[1],i=t[2],l,o,s,u,f,c,d,h,p,g,y,x;return r===e?(e[12]=r[0]*a+r[4]*n+r[8]*i+r[12],e[13]=r[1]*a+r[5]*n+r[9]*i+r[13],e[14]=r[2]*a+r[6]*n+r[10]*i+r[14],e[15]=r[3]*a+r[7]*n+r[11]*i+r[15]):(l=r[0],o=r[1],s=r[2],u=r[3],f=r[4],c=r[5],d=r[6],h=r[7],p=r[8],g=r[9],y=r[10],x=r[11],e[0]=l,e[1]=o,e[2]=s,e[3]=u,e[4]=f,e[5]=c,e[6]=d,e[7]=h,e[8]=p,e[9]=g,e[10]=y,e[11]=x,e[12]=l*a+f*n+p*i+r[12],e[13]=o*a+c*n+g*i+r[13],e[14]=s*a+d*n+y*i+r[14],e[15]=u*a+h*n+x*i+r[15]),e}});var y9=J((sye,g9)=>{g9.exports=u$;function u$(e,r,t){var a=t[0],n=t[1],i=t[2];return e[0]=r[0]*a,e[1]=r[1]*a,e[2]=r[2]*a,e[3]=r[3]*a,e[4]=r[4]*n,e[5]=r[5]*n,e[6]=r[6]*n,e[7]=r[7]*n,e[8]=r[8]*i,e[9]=r[9]*i,e[10]=r[10]*i,e[11]=r[11]*i,e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15],e}});var x9=J((uye,b9)=>{b9.exports=f$;function f$(e,r,t,a){var n=a[0],i=a[1],l=a[2],o=Math.sqrt(n*n+i*i+l*l),s,u,f,c,d,h,p,g,y,x,w,M,b,T,S,C,L,q,P,z,N,H,B,I;return Math.abs(o)<1e-6?null:(o=1/o,n*=o,i*=o,l*=o,s=Math.sin(t),u=Math.cos(t),f=1-u,c=r[0],d=r[1],h=r[2],p=r[3],g=r[4],y=r[5],x=r[6],w=r[7],M=r[8],b=r[9],T=r[10],S=r[11],C=n*n*f+u,L=i*n*f+l*s,q=l*n*f-i*s,P=n*i*f-l*s,z=i*i*f+u,N=l*i*f+n*s,H=n*l*f+i*s,B=i*l*f-n*s,I=l*l*f+u,e[0]=c*C+g*L+M*q,e[1]=d*C+y*L+b*q,e[2]=h*C+x*L+T*q,e[3]=p*C+w*L+S*q,e[4]=c*P+g*z+M*N,e[5]=d*P+y*z+b*N,e[6]=h*P+x*z+T*N,e[7]=p*P+w*z+S*N,e[8]=c*H+g*B+M*I,e[9]=d*H+y*B+b*I,e[10]=h*H+x*B+T*I,e[11]=p*H+w*B+S*I,r!==e&&(e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e)}});var w9=J((fye,_9)=>{_9.exports=c$;function c$(e,r,t){var a=Math.sin(t),n=Math.cos(t),i=r[4],l=r[5],o=r[6],s=r[7],u=r[8],f=r[9],c=r[10],d=r[11];return r!==e&&(e[0]=r[0],e[1]=r[1],e[2]=r[2],e[3]=r[3],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e[4]=i*n+u*a,e[5]=l*n+f*a,e[6]=o*n+c*a,e[7]=s*n+d*a,e[8]=u*n-i*a,e[9]=f*n-l*a,e[10]=c*n-o*a,e[11]=d*n-s*a,e}});var T9=J((cye,M9)=>{M9.exports=v$;function v$(e,r,t){var a=Math.sin(t),n=Math.cos(t),i=r[0],l=r[1],o=r[2],s=r[3],u=r[8],f=r[9],c=r[10],d=r[11];return r!==e&&(e[4]=r[4],e[5]=r[5],e[6]=r[6],e[7]=r[7],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e[0]=i*n-u*a,e[1]=l*n-f*a,e[2]=o*n-c*a,e[3]=s*n-d*a,e[8]=i*a+u*n,e[9]=l*a+f*n,e[10]=o*a+c*n,e[11]=s*a+d*n,e}});var k9=J((vye,A9)=>{A9.exports=d$;function d$(e,r,t){var a=Math.sin(t),n=Math.cos(t),i=r[0],l=r[1],o=r[2],s=r[3],u=r[4],f=r[5],c=r[6],d=r[7];return r!==e&&(e[8]=r[8],e[9]=r[9],e[10]=r[10],e[11]=r[11],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e[0]=i*n+u*a,e[1]=l*n+f*a,e[2]=o*n+c*a,e[3]=s*n+d*a,e[4]=u*n-i*a,e[5]=f*n-l*a,e[6]=c*n-o*a,e[7]=d*n-s*a,e}});var S9=J((dye,C9)=>{C9.exports=h$;function h$(e,r,t){var a,n,i,l=t[0],o=t[1],s=t[2],u=Math.sqrt(l*l+o*o+s*s);return Math.abs(u)<1e-6?null:(u=1/u,l*=u,o*=u,s*=u,a=Math.sin(r),n=Math.cos(r),i=1-n,e[0]=l*l*i+n,e[1]=o*l*i+s*a,e[2]=s*l*i-o*a,e[3]=0,e[4]=l*o*i-s*a,e[5]=o*o*i+n,e[6]=s*o*i+l*a,e[7]=0,e[8]=l*s*i+o*a,e[9]=o*s*i-l*a,e[10]=s*s*i+n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e)}});var L9=J((hye,D9)=>{D9.exports=p$;function p$(e,r,t){var a=r[0],n=r[1],i=r[2],l=r[3],o=a+a,s=n+n,u=i+i,f=a*o,c=a*s,d=a*u,h=n*s,p=n*u,g=i*u,y=l*o,x=l*s,w=l*u;return e[0]=1-(h+g),e[1]=c+w,e[2]=d-x,e[3]=0,e[4]=c-w,e[5]=1-(f+g),e[6]=p+y,e[7]=0,e[8]=d+x,e[9]=p-y,e[10]=1-(f+h),e[11]=0,e[12]=t[0],e[13]=t[1],e[14]=t[2],e[15]=1,e}});var E9=J((pye,q9)=>{q9.exports=m$;function m$(e,r){return e[0]=r[0],e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=r[1],e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=r[2],e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var R9=J((mye,P9)=>{P9.exports=g$;function g$(e,r){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]=r[0],e[13]=r[1],e[14]=r[2],e[15]=1,e}});var F9=J((gye,z9)=>{z9.exports=y$;function y$(e,r){var t=Math.sin(r),a=Math.cos(r);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=a,e[6]=t,e[7]=0,e[8]=0,e[9]=-t,e[10]=a,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var I9=J((yye,N9)=>{N9.exports=b$;function b$(e,r){var t=Math.sin(r),a=Math.cos(r);return e[0]=a,e[1]=0,e[2]=-t,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=t,e[9]=0,e[10]=a,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var H9=J((bye,B9)=>{B9.exports=x$;function x$(e,r){var t=Math.sin(r),a=Math.cos(r);return e[0]=a,e[1]=t,e[2]=0,e[3]=0,e[4]=-t,e[5]=a,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}});var Y9=J((xye,O9)=>{O9.exports=_$;function _$(e,r){var t=r[0],a=r[1],n=r[2],i=r[3],l=t+t,o=a+a,s=n+n,u=t*l,f=a*l,c=a*o,d=n*l,h=n*o,p=n*s,g=i*l,y=i*o,x=i*s;return e[0]=1-c-p,e[1]=f+x,e[2]=d-y,e[3]=0,e[4]=f-x,e[5]=1-u-p,e[6]=h+g,e[7]=0,e[8]=d+y,e[9]=h-g,e[10]=1-u-c,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var G9=J((_ye,U9)=>{U9.exports=w$;function w$(e,r,t,a,n,i,l){var o=1/(t-r),s=1/(n-a),u=1/(i-l);return e[0]=i*2*o,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=i*2*s,e[6]=0,e[7]=0,e[8]=(t+r)*o,e[9]=(n+a)*s,e[10]=(l+i)*u,e[11]=-1,e[12]=0,e[13]=0,e[14]=l*i*2*u,e[15]=0,e}});var X9=J((wye,V9)=>{V9.exports=M$;function M$(e,r,t,a,n){var i=1/Math.tan(r/2),l=1/(a-n);return e[0]=i/t,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=i,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=(n+a)*l,e[11]=-1,e[12]=0,e[13]=0,e[14]=2*n*a*l,e[15]=0,e}});var Z9=J((Mye,W9)=>{W9.exports=T$;function T$(e,r,t,a){var n=Math.tan(r.upDegrees*Math.PI/180),i=Math.tan(r.downDegrees*Math.PI/180),l=Math.tan(r.leftDegrees*Math.PI/180),o=Math.tan(r.rightDegrees*Math.PI/180),s=2/(l+o),u=2/(n+i);return e[0]=s,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=u,e[6]=0,e[7]=0,e[8]=-((l-o)*s*.5),e[9]=(n-i)*u*.5,e[10]=a/(t-a),e[11]=-1,e[12]=0,e[13]=0,e[14]=a*t/(t-a),e[15]=0,e}});var $9=J((Tye,J9)=>{J9.exports=A$;function A$(e,r,t,a,n,i,l){var o=1/(r-t),s=1/(a-n),u=1/(i-l);return e[0]=-2*o,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*s,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*u,e[11]=0,e[12]=(r+t)*o,e[13]=(n+a)*s,e[14]=(l+i)*u,e[15]=1,e}});var j9=J((Aye,K9)=>{var k$=Fg();K9.exports=C$;function C$(e,r,t,a){var n,i,l,o,s,u,f,c,d,h,p=r[0],g=r[1],y=r[2],x=a[0],w=a[1],M=a[2],b=t[0],T=t[1],S=t[2];return Math.abs(p-b)<1e-6&&Math.abs(g-T)<1e-6&&Math.abs(y-S)<1e-6?k$(e):(f=p-b,c=g-T,d=y-S,h=1/Math.sqrt(f*f+c*c+d*d),f*=h,c*=h,d*=h,n=w*d-M*c,i=M*f-x*d,l=x*c-w*f,h=Math.sqrt(n*n+i*i+l*l),h?(h=1/h,n*=h,i*=h,l*=h):(n=0,i=0,l=0),o=c*l-d*i,s=d*n-f*l,u=f*i-c*n,h=Math.sqrt(o*o+s*s+u*u),h?(h=1/h,o*=h,s*=h,u*=h):(o=0,s=0,u=0),e[0]=n,e[1]=o,e[2]=f,e[3]=0,e[4]=i,e[5]=s,e[6]=c,e[7]=0,e[8]=l,e[9]=u,e[10]=d,e[11]=0,e[12]=-(n*p+i*g+l*y),e[13]=-(o*p+s*g+u*y),e[14]=-(f*p+c*g+d*y),e[15]=1,e)}});var ew=J((kye,Q9)=>{Q9.exports=S$;function S$(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]+")"}});var Ng=J((Cye,rw)=>{rw.exports={create:Q8(),clone:r9(),copy:a9(),identity:Fg(),transpose:l9(),invert:s9(),adjoint:f9(),determinant:v9(),multiply:h9(),translate:m9(),scale:y9(),rotate:x9(),rotateX:w9(),rotateY:T9(),rotateZ:k9(),fromRotation:S9(),fromRotationTranslation:L9(),fromScaling:E9(),fromTranslation:R9(),fromXRotation:F9(),fromYRotation:I9(),fromZRotation:H9(),fromQuat:Y9(),frustum:G9(),perspective:X9(),perspectiveFromFieldOfView:Z9(),ortho:$9(),lookAt:j9(),str:ew()}});var _2=J(Jt=>{"use strict";var D$=Ng();Jt.init2dArray=function(e,r){for(var t=new Array(e),a=0;a{"use strict";var L$=Or(),tw=Wl(),q$=_2(),E$=Ng();function P$(e){var r;if(typeof e=="string"){if(r=document.getElementById(e),r===null)throw new Error("No DOM element with id '"+e+"' exists on the page.");return r}else if(e==null)throw new Error("DOM element provided is null or undefined");return e}function R$(e){var r=L$.select(e);return r.node()instanceof HTMLElement&&r.size()&&r.classed("js-plotly-plot")}function aw(e){var r=e&&e.parentNode;r&&r.removeChild(e)}function z$(e,r){nw("global",e,r)}function nw(e,r,t){var a="plotly.js-style-"+e,n=document.getElementById(a);if(!(n&&n.matches(".no-inline-styles"))){n||(n=document.createElement("style"),n.setAttribute("id",a),n.appendChild(document.createTextNode("")),document.head.appendChild(n));var i=n.sheet;i?i.insertRule?i.insertRule(r+"{"+t+"}",0):i.addRule?i.addRule(r,t,0):tw.warn("addStyleRule failed"):tw.warn("Cannot addRelatedStyleRule, probably due to strict CSP...")}}function F$(e){var r="plotly.js-style-"+e,t=document.getElementById(r);t&&aw(t)}function N$(e,r,t,a,n,i){var l=a.split(":"),o=n.split(":"),s="data-btn-style-event-added";i||(i=document),i.querySelectorAll(e).forEach(function(u){u._hoverStyle={activeStyleParts:l,inactiveStyleParts:o},u.getAttribute(s)||(u.addEventListener("mouseenter",function(){var f=this._hoverStyle,c=this.querySelector(t);c&&(c.style[f.activeStyleParts[0]]=f.activeStyleParts[1])}),u.addEventListener("mouseleave",function(){var f=this._hoverStyle,c=this.querySelector(t);c&&(r&&this.matches(r)?c.style[f.activeStyleParts[0]]=f.activeStyleParts[1]:c.style[f.inactiveStyleParts[0]]=f.inactiveStyleParts[1])}),u.setAttribute(s,!0))})}function I$(e){var r=lw(e),t=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];return r.forEach(function(a){var n=iw(a);if(n){var i=q$.convertCssMatrix(n);t=E$.multiply(t,t,i)}}),t}function iw(e){var r=window.getComputedStyle(e,null),t=r.getPropertyValue("-webkit-transform")||r.getPropertyValue("-moz-transform")||r.getPropertyValue("-ms-transform")||r.getPropertyValue("-o-transform")||r.getPropertyValue("transform");return t==="none"?null:t.replace("matrix","").replace("3d","").slice(1,-1).split(",").map(function(a){return+a})}function lw(e){for(var r=[];B$(e);)r.push(e),e=e.parentNode,typeof ShadowRoot=="function"&&e instanceof ShadowRoot&&(e=e.host);return r}function B$(e){return e&&(e instanceof Element||e instanceof HTMLElement)}function H$(e,r){return e&&r&&e.top===r.top&&e.left===r.left&&e.right===r.right&&e.bottom===r.bottom}ow.exports={getGraphDiv:P$,isPlotDiv:R$,removeElement:aw,addStyleRule:z$,addRelatedStyleRule:nw,deleteRelatedStyleRule:F$,setStyleOnHover:N$,getFullTransformMatrix:I$,getElementTransformMatrix:iw,getElementAndAncestors:lw,equalDomRects:H$}});var bf=J((Lye,sw)=>{"use strict";sw.exports={mode:{valType:"enumerated",dflt:"afterall",values:["immediate","next","afterall"]},direction:{valType:"enumerated",values:["forward","reverse"],dflt:"forward"},fromcurrent:{valType:"boolean",dflt:!1},frame:{duration:{valType:"number",min:0,dflt:500},redraw:{valType:"boolean",dflt:!0}},transition:{duration:{valType:"number",min:0,dflt:500,editType:"none"},easing:{valType:"enumerated",dflt:"cubic-in-out",values:["linear","quad","cubic","sin","exp","circle","elastic","back","bounce","linear-in","quad-in","cubic-in","sin-in","exp-in","circle-in","elastic-in","back-in","bounce-in","linear-out","quad-out","cubic-out","sin-out","exp-out","circle-out","elastic-out","back-out","bounce-out","linear-in-out","quad-in-out","cubic-in-out","sin-in-out","exp-in-out","circle-in-out","elastic-in-out","back-in-out","bounce-in-out"],editType:"none"},ordering:{valType:"enumerated",values:["layout first","traces first"],dflt:"layout first",editType:"none"}}}});var Ki=J((qye,pw)=>{"use strict";var fw=va().extendFlat,O$=Uo(),cw={valType:"flaglist",extras:["none"],flags:["calc","clearAxisTypes","plot","style","markerSize","colorbars"]},vw={valType:"flaglist",extras:["none"],flags:["calc","plot","legend","ticks","axrange","layoutstyle","modebar","camera","arraydraw","colorbars"]},Y$=cw.flags.slice().concat(["fullReplot"]),U$=vw.flags.slice().concat("layoutReplot");pw.exports={traces:cw,layout:vw,traceFlags:function(){return uw(Y$)},layoutFlags:function(){return uw(U$)},update:function(e,r){var t=r.editType;if(t&&t!=="none")for(var a=t.split("+"),n=0;n{"use strict";Ig.dash={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",editType:"style"};Ig.pattern={shape:{valType:"enumerated",values:["","/","\\","x","-","|","+","."],dflt:"",arrayOk:!0,editType:"style"},path:{valType:"string",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"}});var Bg={};Nt(Bg,{DATE_FORMAT_LINK:()=>V$,FORMAT_LINK:()=>G$});var G$,V$,Hg=Ft(()=>{"use strict";G$="https://github.com/d3/d3-format/tree/v1.4.5#d3-format",V$="https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format"});var rs=J(T0=>{"use strict";var{DATE_FORMAT_LINK:X$,FORMAT_LINK:W$}=(Hg(),Xe(Bg)),Z$=["Variables that can't be found will be replaced with the specifier.",'For example, a template of "data: %{x}, %{y}" will result in a value of "data: 1, %{y}" if x is 1 and y is missing.',"Variables with an undefined value will be replaced with the fallback value."].join(" ");function J$({supportOther:e}={}){return["Variables are inserted using %{variable},",'for example "y: %{y}"'+(e?" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown.":"."),`Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}".`,W$,"for details on the formatting syntax.",`Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}".`,X$,"for details on the date formatting syntax.",Z$].join(" ")}T0.templateFormatStringDescription=J$;T0.hovertemplateAttrs=({editType:e="none",arrayOk:r}={},t={})=>ut({valType:"string",dflt:"",editType:e},r!==!1?{arrayOk:!0}:{});T0.texttemplateAttrs=({editType:e="calc",arrayOk:r}={},t={})=>ut({valType:"string",dflt:"",editType:e},r!==!1?{arrayOk:!0}:{});T0.shapeTexttemplateAttrs=({editType:e="arraydraw",newshape:r}={},t={})=>({valType:"string",dflt:"",editType:e});T0.templatefallbackAttrs=({editType:e="none"}={})=>({valType:"any",dflt:"-",editType:e})});var T2=J((zye,_w)=>{"use strict";function $l(e,r){return r?r.d2l(e):e}function mw(e,r){return r?r.l2d(e):e}function $$(e){return e.x0}function K$(e){return e.x1}function j$(e){return e.y0}function Q$(e){return e.y1}function gw(e){return e.x0shift||0}function yw(e){return e.x1shift||0}function bw(e){return e.y0shift||0}function xw(e){return e.y1shift||0}function w2(e,r){return $l(e.x1,r)+yw(e)-$l(e.x0,r)-gw(e)}function M2(e,r,t){return $l(e.y1,t)+xw(e)-$l(e.y0,t)-bw(e)}function eK(e,r){return Math.abs(w2(e,r))}function rK(e,r,t){return Math.abs(M2(e,r,t))}function tK(e,r,t){return e.type!=="line"?void 0:Math.sqrt(Math.pow(w2(e,r),2)+Math.pow(M2(e,r,t),2))}function aK(e,r){return mw(($l(e.x1,r)+yw(e)+$l(e.x0,r)+gw(e))/2,r)}function nK(e,r,t){return mw(($l(e.y1,t)+xw(e)+$l(e.y0,t)+bw(e))/2,t)}function iK(e,r,t){return e.type!=="line"?void 0:M2(e,r,t)/w2(e,r)}var lK=["x0","x1","y0","y1","dy","height","ycenter"],oK=["x0","x1","y0","y1","dx","width","xcenter"];_w.exports={x0:$$,x1:K$,y0:j$,y1:Q$,slope:iK,dx:w2,dy:M2,width:eK,height:rK,length:tK,xcenter:aK,ycenter:nK,simpleXVariables:lK,simpleYVariables:oK}});var Tw=J((Fye,Mw)=>{"use strict";var sK=Ki().overrideAll,ts=xi(),ww=Ia(),uK=ji().dash,Kl=va().extendFlat,{shapeTexttemplateAttrs:fK,templatefallbackAttrs:cK}=rs(),vK=T2();Mw.exports=sK({newshape:{visible:Kl({},ts.visible,{}),showlegend:{valType:"boolean",dflt:!1},legend:Kl({},ts.legend,{}),legendgroup:Kl({},ts.legendgroup,{}),legendgrouptitle:{text:Kl({},ts.legendgrouptitle.text,{}),font:ww({})},legendrank:Kl({},ts.legendrank,{}),legendwidth:Kl({},ts.legendwidth,{}),line:{color:{valType:"color"},width:{valType:"number",min:0,dflt:4},dash:Kl({},uK,{dflt:"solid"})},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd"},opacity:{valType:"number",min:0,max:1,dflt:1},layer:{valType:"enumerated",values:["below","above","between"],dflt:"above"},drawdirection:{valType:"enumerated",values:["ortho","horizontal","vertical","diagonal"],dflt:"diagonal"},name:Kl({},ts.name,{}),label:{text:{valType:"string",dflt:""},texttemplate:fK({newshape:!0},{keys:Object.keys(vK)}),texttemplatefallback:cK({editType:"arraydraw"}),font:ww({}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"]},textangle:{valType:"angle",dflt:"auto"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto"},yanchor:{valType:"enumerated",values:["top","middle","bottom"]},padding:{valType:"number",dflt:3,min:0}}},activeshape:{fillcolor:{valType:"color",dflt:"rgb(255,0,255)",description:"Sets the color filling the active shape' interior."},opacity:{valType:"number",min:0,max:1,dflt:.5}}},"none","from-root")});var kw=J((Nye,Aw)=>{"use strict";var dK=ji().dash,hK=va().extendFlat;Aw.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:hK({},dK,{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"}}});var A2=J((Iye,Cw)=>{"use strict";Cw.exports=function(e){var r=e.editType;return{t:{valType:"number",dflt:0,editType:r},r:{valType:"number",dflt:0,editType:r},b:{valType:"number",dflt:0,editType:r},l:{valType:"number",dflt:0,editType:r},editType:r}}});var A0=J((Bye,qw)=>{"use strict";var Og=Ia(),pK=bf(),k2=$i(),Sw=Tw(),Dw=kw(),mK=A2(),Lw=va().extendFlat,C2=Og({editType:"calc"});C2.family.dflt='"Open Sans", verdana, arial, sans-serif';C2.size.dflt=12;C2.color.dflt=k2.defaultLine;qw.exports={font:C2,title:{text:{valType:"string",editType:"layoutstyle"},font:Og({editType:"layoutstyle"}),subtitle:{text:{valType:"string",editType:"layoutstyle"},font:Og({editType:"layoutstyle"}),editType:"layoutstyle"},xref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle"},yref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle"},x:{valType:"number",min:0,max:1,dflt:.5,editType:"layoutstyle"},y:{valType:"number",min:0,max:1,dflt:"auto",editType:"layoutstyle"},xanchor:{valType:"enumerated",dflt:"auto",values:["auto","left","center","right"],editType:"layoutstyle"},yanchor:{valType:"enumerated",dflt:"auto",values:["auto","top","middle","bottom"],editType:"layoutstyle"},pad:Lw(mK({editType:"layoutstyle"}),{}),automargin:{valType:"boolean",dflt:!1,editType:"plot"},editType:"layoutstyle"},uniformtext:{mode:{valType:"enumerated",values:[!1,"hide","show"],dflt:!1,editType:"plot"},minsize:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"},autosize:{valType:"boolean",dflt:!1,editType:"none"},width:{valType:"number",min:10,dflt:700,editType:"plot"},height:{valType:"number",min:10,dflt:450,editType:"plot"},minreducedwidth:{valType:"number",min:2,dflt:64,editType:"plot"},minreducedheight:{valType:"number",min:2,dflt:64,editType:"plot"},margin:{l:{valType:"number",min:0,dflt:80,editType:"plot"},r:{valType:"number",min:0,dflt:80,editType:"plot"},t:{valType:"number",min:0,dflt:100,editType:"plot"},b:{valType:"number",min:0,dflt:80,editType:"plot"},pad:{valType:"number",min:0,dflt:0,editType:"plot"},autoexpand:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},computed:{valType:"any",editType:"none"},paper_bgcolor:{valType:"color",dflt:k2.background,editType:"plot"},plot_bgcolor:{valType:"color",dflt:k2.background,editType:"layoutstyle"},autotypenumbers:{valType:"enumerated",values:["convert types","strict"],dflt:"convert types",editType:"calc"},separators:{valType:"string",editType:"plot"},showlegend:{valType:"boolean",editType:"legend"},colorway:{valType:"colorlist",dflt:k2.defaults,editType:"calc"},datarevision:{valType:"any",editType:"calc"},uirevision:{valType:"any",editType:"none"},editrevision:{valType:"any",editType:"none"},selectionrevision:{valType:"any",editType:"none"},template:{valType:"any",editType:"calc"},newshape:Sw.newshape,activeshape:Sw.activeshape,newselection:Dw.newselection,activeselection:Dw.activeselection,meta:{valType:"any",arrayOk:!0,editType:"plot"},transition:Lw({},pK.transition,{editType:"none"})}});var Ew=J(()=>{(function(){if(!document.getElementById("9f215cf04c5486422605d13261cb87401f4e7763b6296af81e98efbc0130da53")){var e=document.createElement("style");e.id="9f215cf04c5486422605d13261cb87401f4e7763b6296af81e98efbc0130da53",e.textContent='.maplibregl-map{font:12px/20px Helvetica Neue,Arial,Helvetica,sans-serif;overflow:hidden;position:relative;-webkit-tap-highlight-color:rgb(0 0 0/0);-webkit-touch-callout:none}.maplibregl-canvas{position:absolute;left:0;top:0}.maplibregl-map:fullscreen{width:100%;height:100%}.maplibregl-ctrl-group button.maplibregl-ctrl-compass{touch-action:none}.maplibregl-canvas-container.maplibregl-interactive,.maplibregl-ctrl-group button.maplibregl-ctrl-compass{cursor:grab;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-canvas-container.maplibregl-interactive.maplibregl-track-pointer{cursor:pointer}.maplibregl-canvas-container.maplibregl-interactive:active,.maplibregl-ctrl-group button.maplibregl-ctrl-compass:active{cursor:grabbing}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-canvas-container.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:pinch-zoom}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:none}.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures,.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-ctrl-bottom-left,.maplibregl-ctrl-bottom-right,.maplibregl-ctrl-top-left,.maplibregl-ctrl-top-right{position:absolute;pointer-events:none;z-index:2}.maplibregl-ctrl-top-left{top:0;left:0}.maplibregl-ctrl-top-right{top:0;right:0}.maplibregl-ctrl-bottom-left{bottom:0;left:0}.maplibregl-ctrl-bottom-right{right:0;bottom:0}.maplibregl-ctrl{clear:both;pointer-events:auto;transform:translate(0)}.maplibregl-ctrl-top-left .maplibregl-ctrl{margin:10px 0 0 10px;float:left}.maplibregl-ctrl-top-right .maplibregl-ctrl{margin:10px 10px 0 0;float:right}.maplibregl-ctrl-bottom-left .maplibregl-ctrl{margin:0 0 10px 10px;float:left}.maplibregl-ctrl-bottom-right .maplibregl-ctrl{margin:0 10px 10px 0;float:right}.maplibregl-ctrl-group{border-radius:4px;background:#fff}.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px rgba(0,0,0,.1)}@media (forced-colors:active){.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px ButtonText}}.maplibregl-ctrl-group button{width:29px;height:29px;display:block;padding:0;outline:none;border:0;box-sizing:border-box;background-color:transparent;cursor:pointer}.maplibregl-ctrl button{-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-ctrl-group button+button{border-top:1px solid #ddd}.maplibregl-ctrl button .maplibregl-ctrl-icon{display:block;width:100%;height:100%;background-repeat:no-repeat;background-position:50%}@media (forced-colors:active){.maplibregl-ctrl-icon{background-color:transparent}.maplibregl-ctrl-group button+button{border-top:1px solid ButtonText}}.maplibregl-ctrl button::-moz-focus-inner{border:0;padding:0}.maplibregl-ctrl-attrib-button:focus,.maplibregl-ctrl-group button:focus{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl button:disabled{cursor:not-allowed}.maplibregl-ctrl button:disabled .maplibregl-ctrl-icon{opacity:.25}@media (hover:hover){.maplibregl-ctrl button:not(:disabled):hover{background-color:rgba(0,0,0,.05)}}.maplibregl-ctrl button:not(:disabled):active{background-color:rgba(0,0,0,.05)}.maplibregl-ctrl-group button:focus:focus-visible{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl-group button:focus:not(:focus-visible){box-shadow:none}.maplibregl-ctrl-group button:focus:first-child{border-radius:4px 4px 0 0}.maplibregl-ctrl-group button:focus:last-child{border-radius:0 0 4px 4px}.maplibregl-ctrl-group button:focus:only-child{border-radius:inherit}.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M10%2013c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h9c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M14.5%208.5c-.75%200-1.5.75-1.5%201.5v3h-3c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h3v3c0%20.75.75%201.5%201.5%201.5S16%2019.75%2016%2019v-3h3c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013h-3v-3c0-.75-.75-1.5-1.5-1.5%22%2F%3E%3C%2Fsvg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M10%2013c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h9c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M14.5%208.5c-.75%200-1.5.75-1.5%201.5v3h-3c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h3v3c0%20.75.75%201.5%201.5%201.5S16%2019.75%2016%2019v-3h3c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013h-3v-3c0-.75-.75-1.5-1.5-1.5%22%2F%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M10%2013c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h9c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M14.5%208.5c-.75%200-1.5.75-1.5%201.5v3h-3c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h3v3c0%20.75.75%201.5%201.5%201.5S16%2019.75%2016%2019v-3h3c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013h-3v-3c0-.75-.75-1.5-1.5-1.5%22%2F%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M24%2016v5.5c0%201.75-.75%202.5-2.5%202.5H16v-1l3-1.5-4-5.5%201-1%205.5%204%201.5-3zM6%2016l1.5%203%205.5-4%201%201-4%205.5%203%201.5v1H7.5C5.75%2024%205%2023.25%205%2021.5V16zm7-11v1l-3%201.5%204%205.5-1%201-5.5-4L6%2013H5V7.5C5%205.75%205.75%205%207.5%205zm11%202.5c0-1.75-.75-2.5-2.5-2.5H16v1l3%201.5-4%205.5%201%201%205.5-4%201.5%203h1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M18.5%2016c-1.75%200-2.5.75-2.5%202.5V24h1l1.5-3%205.5%204%201-1-4-5.5%203-1.5v-1zM13%2018.5c0-1.75-.75-2.5-2.5-2.5H5v1l3%201.5L4%2024l1%201%205.5-4%201.5%203h1zm3-8c0%201.75.75%202.5%202.5%202.5H24v-1l-3-1.5L25%205l-1-1-5.5%204L17%205h-1zM10.5%2013c1.75%200%202.5-.75%202.5-2.5V5h-1l-1.5%203L5%204%204%205l4%205.5L5%2012v1z%22%2F%3E%3C%2Fsvg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M24%2016v5.5c0%201.75-.75%202.5-2.5%202.5H16v-1l3-1.5-4-5.5%201-1%205.5%204%201.5-3zM6%2016l1.5%203%205.5-4%201%201-4%205.5%203%201.5v1H7.5C5.75%2024%205%2023.25%205%2021.5V16zm7-11v1l-3%201.5%204%205.5-1%201-5.5-4L6%2013H5V7.5C5%205.75%205.75%205%207.5%205zm11%202.5c0-1.75-.75-2.5-2.5-2.5H16v1l3%201.5-4%205.5%201%201%205.5-4%201.5%203h1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M18.5%2016c-1.75%200-2.5.75-2.5%202.5V24h1l1.5-3%205.5%204%201-1-4-5.5%203-1.5v-1zM13%2018.5c0-1.75-.75-2.5-2.5-2.5H5v1l3%201.5L4%2024l1%201%205.5-4%201.5%203h1zm3-8c0%201.75.75%202.5%202.5%202.5H24v-1l-3-1.5L25%205l-1-1-5.5%204L17%205h-1zM10.5%2013c1.75%200%202.5-.75%202.5-2.5V5h-1l-1.5%203L5%204%204%205l4%205.5L5%2012v1z%22%2F%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M24%2016v5.5c0%201.75-.75%202.5-2.5%202.5H16v-1l3-1.5-4-5.5%201-1%205.5%204%201.5-3zM6%2016l1.5%203%205.5-4%201%201-4%205.5%203%201.5v1H7.5C5.75%2024%205%2023.25%205%2021.5V16zm7-11v1l-3%201.5%204%205.5-1%201-5.5-4L6%2013H5V7.5C5%205.75%205.75%205%207.5%205zm11%202.5c0-1.75-.75-2.5-2.5-2.5H16v1l3%201.5-4%205.5%201%201%205.5-4%201.5%203h1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M18.5%2016c-1.75%200-2.5.75-2.5%202.5V24h1l1.5-3%205.5%204%201-1-4-5.5%203-1.5v-1zM13%2018.5c0-1.75-.75-2.5-2.5-2.5H5v1l3%201.5L4%2024l1%201%205.5-4%201.5%203h1zm3-8c0%201.75.75%202.5%202.5%202.5H24v-1l-3-1.5L25%205l-1-1-5.5%204L17%205h-1zM10.5%2013c1.75%200%202.5-.75%202.5-2.5V5h-1l-1.5%203L5%204%204%205l4%205.5L5%2012v1z%22%2F%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22m10.5%2014%204-8%204%208z%22%2F%3E%3Cpath%20fill%3D%22%23ccc%22%20d%3D%22m10.5%2016%204%208%204-8z%22%2F%3E%3C%2Fsvg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22m10.5%2014%204-8%204%208z%22%2F%3E%3Cpath%20fill%3D%22%23ccc%22%20d%3D%22m10.5%2016%204%208%204-8z%22%2F%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22m10.5%2014%204-8%204%208z%22%2F%3E%3Cpath%20fill%3D%22%23ccc%22%20d%3D%22m10.5%2016%204%208%204-8z%22%2F%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-globe .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2222%22%20height%3D%2222%22%20fill%3D%22none%22%20stroke%3D%22%23333%22%20viewBox%3D%220%200%2022%2022%22%3E%3Ccircle%20cx%3D%2211%22%20cy%3D%2211%22%20r%3D%228.5%22%2F%3E%3Cpath%20d%3D%22M17.5%2011c0%204.819-3.02%208.5-6.5%208.5S4.5%2015.819%204.5%2011%207.52%202.5%2011%202.5s6.5%203.681%206.5%208.5Z%22%2F%3E%3Cpath%20d%3D%22M13.5%2011c0%202.447-.331%204.64-.853%206.206-.262.785-.562%201.384-.872%201.777-.314.399-.58.517-.775.517s-.461-.118-.775-.517c-.31-.393-.61-.992-.872-1.777C8.831%2015.64%208.5%2013.446%208.5%2011s.331-4.64.853-6.206c.262-.785.562-1.384.872-1.777.314-.399.58-.517.775-.517s.461.118.775.517c.31.393.61.992.872%201.777.522%201.565.853%203.76.853%206.206Z%22%2F%3E%3Cpath%20d%3D%22M11%207.5c-1.909%200-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3%201.3%200%200%201-.224-.138q.07-.058.224-.138c.299-.151.763-.302%201.379-.434C7.378%205.666%209.091%205.5%2011%205.5s3.622.166%204.845.428c.616.132%201.08.283%201.379.434.105.053.177.1.224.138q-.07.058-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm0%209c-1.909%200-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3%201.3%200%200%201-.224-.138%201.3%201.3%200%200%201%20.224-.138c.299-.151.763-.302%201.379-.434C7.378%2014.666%209.091%2014.5%2011%2014.5s3.622.166%204.845.428c.616.132%201.08.283%201.379.434.105.053.177.1.224.138a1.3%201.3%200%200%201-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm0-4c-2.46%200-4.672-.222-6.255-.574-.796-.177-1.406-.38-1.805-.59a1.5%201.5%200%200%201-.39-.272.3.3%200%200%201-.047-.064.3.3%200%200%201%20.048-.064c.066-.073.189-.167.389-.272.399-.21%201.009-.413%201.805-.59C6.328%209.722%208.54%209.5%2011%209.5s4.672.222%206.256.574c.795.177%201.405.38%201.804.59.2.105.323.2.39.272a.3.3%200%200%201%20.047.064.3.3%200%200%201-.048.064%201.4%201.4%200%200%201-.389.272c-.399.21-1.009.413-1.804.59-1.584.352-3.796.574-6.256.574Zm-8.501-1.51v.002zm0%20.018v.002zm17.002.002v-.002zm0-.018v-.002z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-globe-enabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2222%22%20height%3D%2222%22%20fill%3D%22none%22%20stroke%3D%22%2333b5e5%22%20viewBox%3D%220%200%2022%2022%22%3E%3Ccircle%20cx%3D%2211%22%20cy%3D%2211%22%20r%3D%228.5%22%2F%3E%3Cpath%20d%3D%22M17.5%2011c0%204.819-3.02%208.5-6.5%208.5S4.5%2015.819%204.5%2011%207.52%202.5%2011%202.5s6.5%203.681%206.5%208.5Z%22%2F%3E%3Cpath%20d%3D%22M13.5%2011c0%202.447-.331%204.64-.853%206.206-.262.785-.562%201.384-.872%201.777-.314.399-.58.517-.775.517s-.461-.118-.775-.517c-.31-.393-.61-.992-.872-1.777C8.831%2015.64%208.5%2013.446%208.5%2011s.331-4.64.853-6.206c.262-.785.562-1.384.872-1.777.314-.399.58-.517.775-.517s.461.118.775.517c.31.393.61.992.872%201.777.522%201.565.853%203.76.853%206.206Z%22%2F%3E%3Cpath%20d%3D%22M11%207.5c-1.909%200-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3%201.3%200%200%201-.224-.138q.07-.058.224-.138c.299-.151.763-.302%201.379-.434C7.378%205.666%209.091%205.5%2011%205.5s3.622.166%204.845.428c.616.132%201.08.283%201.379.434.105.053.177.1.224.138q-.07.058-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm0%209c-1.909%200-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3%201.3%200%200%201-.224-.138%201.3%201.3%200%200%201%20.224-.138c.299-.151.763-.302%201.379-.434C7.378%2014.666%209.091%2014.5%2011%2014.5s3.622.166%204.845.428c.616.132%201.08.283%201.379.434.105.053.177.1.224.138a1.3%201.3%200%200%201-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm0-4c-2.46%200-4.672-.222-6.255-.574-.796-.177-1.406-.38-1.805-.59a1.5%201.5%200%200%201-.39-.272.3.3%200%200%201-.047-.064.3.3%200%200%201%20.048-.064c.066-.073.189-.167.389-.272.399-.21%201.009-.413%201.805-.59C6.328%209.722%208.54%209.5%2011%209.5s4.672.222%206.256.574c.795.177%201.405.38%201.804.59.2.105.323.2.39.272a.3.3%200%200%201%20.047.064.3.3%200%200%201-.048.064%201.4%201.4%200%200%201-.389.272c-.399.21-1.009.413-1.804.59-1.584.352-3.796.574-6.256.574Zm-8.501-1.51v.002zm0%20.018v.002zm17.002.002v-.002zm0-.018v-.002z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-terrain .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2222%22%20height%3D%2222%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2022%2022%22%3E%3Cpath%20d%3D%22m1.754%2013.406%204.453-4.851%203.09%203.09%203.281%203.277.969-.969-3.309-3.312%203.844-4.121%206.148%206.886h1.082v-.855l-7.207-8.07-4.84%205.187L6.169%206.57l-5.48%205.965v.871ZM.688%2016.844h20.625v1.375H.688Zm0%200%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-terrain-enabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2222%22%20height%3D%2222%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2022%2022%22%3E%3Cpath%20d%3D%22m1.754%2013.406%204.453-4.851%203.09%203.09%203.281%203.277.969-.969-3.309-3.312%203.844-4.121%206.148%206.886h1.082v-.855l-7.207-8.07-4.84%205.187L6.169%206.57l-5.48%205.965v.871ZM.688%2016.844h20.625v1.375H.688Zm0%200%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23aaa%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3Cpath%20fill%3D%22red%22%20d%3D%22m14%205%201%201-9%209-1-1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23e58978%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23e54e33%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-waiting .maplibregl-ctrl-icon{animation:maplibregl-spin 2s linear infinite}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23999%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3Cpath%20fill%3D%22red%22%20d%3D%22m14%205%201%201-9%209-1-1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23e58978%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23e54e33%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23666%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3Cpath%20fill%3D%22red%22%20d%3D%22m14%205%201%201-9%209-1-1z%22%2F%3E%3C%2Fsvg%3E")}}@keyframes maplibregl-spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}a.maplibregl-ctrl-logo{width:88px;height:23px;margin:0 0 -4px -4px;display:block;background-repeat:no-repeat;cursor:pointer;overflow:hidden;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2288%22%20height%3D%2223%22%20fill%3D%22none%22%3E%3Cpath%20fill%3D%22%23000%22%20fill-opacity%3D%22.4%22%20fill-rule%3D%22evenodd%22%20d%3D%22M17.408%2016.796h-1.827l2.501-12.095h.198l3.324%206.533.988%202.19.988-2.19%203.258-6.533h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.929%205.644h-.098l-2.914-5.644-.757-1.71-.345%201.71zm1.958-3.42-.726%203.663a1.255%201.255%200%200%201-1.232%201.011h-1.827a1.255%201.255%200%200%201-1.229-1.509l2.501-12.095a1.255%201.255%200%200%201%201.23-1.001h.197a1.25%201.25%200%200%201%201.12.685l3.19%206.273%203.125-6.263a1.25%201.25%200%200%201%201.123-.695h.181a1.255%201.255%200%200%201%201.227.991l1.443%206.71a5%205%200%200%201%20.314-.787l.009-.016a4.6%204.6%200%200%201%201.777-1.887c.782-.46%201.668-.667%202.611-.667a4.6%204.6%200%200%201%201.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255%201.255%200%200%201%201.212.925%201.255%201.255%200%200%201%201.212-.925h1.711c.284%200%20.545.094.755.252.613-.3%201.312-.45%202.075-.45%201.356%200%202.557.445%203.482%201.4q.47.48.763%201.064V4.701a1.255%201.255%200%200%201%201.255-1.255h1.86A1.255%201.255%200%200%201%2054.44%204.7v9.194h2.217c.19%200%20.37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42%202.42%200%200%201-.682-1.71c0-.665.267-1.253.735-1.7a2.45%202.45%200%200%201%201.722-.674%202.43%202.43%200%200%201%201.705.675q.318.302.504.683V4.7a1.255%201.255%200%200%201%201.255-1.255h1.744A1.255%201.255%200%200%201%2065.812%204.7v3.335a4.8%204.8%200%200%201%201.526-.246c.938%200%201.817.214%202.59.69a4.47%204.47%200%200%201%201.67%201.743v-.98a1.255%201.255%200%200%201%201.256-1.256h1.777c.233%200%20.451.064.639.174a3.4%203.4%200%200%201%201.567-.372c.346%200%20.861.02%201.285.232a1.25%201.25%200%200%201%20.689%201.004%204.7%204.7%200%200%201%20.853-.588c.795-.44%201.675-.647%202.61-.647%201.385%200%202.65.39%203.525%201.396.836.938%201.168%202.173%201.168%203.528q-.001.515-.056%201.051a1.255%201.255%200%200%201-.947%201.09l.408.952a1.255%201.255%200%200%201-.477%201.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06%200-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8%205.8%200%200%201-.548-2.512q0-.429.053-.843a1.3%201.3%200%200%201-.333-.086l-.166-.004c-.223%200-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255%201.255%200%200%201-1.256%201.256h-1.777a1.255%201.255%200%200%201-1.256-1.256V15.69l-.032.057a4.8%204.8%200%200%201-1.86%201.833%205.04%205.04%200%200%201-2.484.634%204.5%204.5%200%200%201-1.935-.424%201.25%201.25%200%200%201-.764.258h-1.71a1.255%201.255%200%200%201-1.256-1.255V7.687a2.4%202.4%200%200%201-.428.625c.253.23.412.561.412.93v7.553a1.255%201.255%200%200%201-1.256%201.255h-1.843a1.25%201.25%200%200%201-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255%201.255%200%200%201-1.256-1.255v-1.251l-.061.117a4.7%204.7%200%200%201-1.782%201.884%204.77%204.77%200%200%201-2.485.67%205.6%205.6%200%200%201-1.485-.188l.009%202.764a1.255%201.255%200%200%201-1.255%201.259h-1.729a1.255%201.255%200%200%201-1.255-1.255v-3.537a1.255%201.255%200%200%201-1.167.793h-1.679a1.25%201.25%200%200%201-.77-.263%204.5%204.5%200%200%201-1.945.429c-.885%200-1.724-.21-2.495-.632l-.017-.01a5%205%200%200%201-1.081-.836%201.255%201.255%200%200%201-1.254%201.312h-1.81a1.255%201.255%200%200%201-1.228-.99l-.782-3.625-2.044%203.939a1.25%201.25%200%200%201-1.115.676h-.098a1.25%201.25%200%200%201-1.116-.68l-2.061-3.994zM35.92%2016.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033%201.332h1.678V9.242h-1.694l-.033%201.267q-.133-.329-.526-.658l-.032-.028a3.2%203.2%200%200%200-.668-.428l-.27-.12a3.3%203.3%200%200%200-1.235-.23q-1.136-.001-1.974.493a3.36%203.36%200%200%200-1.3%201.382q-.445.89-.444%202.074%200%201.2.51%202.107a3.8%203.8%200%200%200%201.382%201.381%203.9%203.9%200%200%200%201.893.477q.795%200%201.455-.33zm-2.789-5.38q-.576.675-.575%201.762%200%201.102.559%201.794.576.675%201.645.675a2.25%202.25%200%200%200%20.934-.19%202.2%202.2%200%200%200%20.468-.29l.178-.161a2.2%202.2%200%200%200%20.397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2%202.2%200%200%200-.633-.709l-.13-.086-.047-.028a2.1%202.1%200%200%200-1.073-.285q-1.052%200-1.629.692zm2.316%202.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96%200%200%200-.353-.389.85.85%200%200%200-.464-.127c-.4%200-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945%200%20.506.122.801.27.99.097.11.266.224.68.224.303%200%20.504-.09.687-.269zm7.545%201.705a2.6%202.6%200%200%200%20.331.423q.319.33.755.548l.173.074q.65.255%201.49.255%201.02%200%201.844-.493a3.45%203.45%200%200%200%201.316-1.4q.493-.904.493-2.089%200-1.909-.988-2.913-.988-1.02-2.584-1.02-.898%200-1.575.347a3%203%200%200%200-.415.262l-.199.166a3.4%203.4%200%200%200-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296%201.119.297%201.07%200%201.645-.675.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.435%200-.835.16a2%202%200%200%200-.284.136%202%202%200%200%200-.363.254%202.2%202.2%200%200%200-.46.569l-.082.162a2.6%202.6%200%200%200-.213%201.072v.115q0%20.707.296%201.267l.135.211zm.964-.818a1.1%201.1%200%200%200%20.367.385.94.94%200%200%200%20.476.118c.423%200%20.59-.117.687-.23.159-.194.28-.478.28-.95%200-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1%201%200%200%200-.503.135l-.012.007a.86.86%200%200%200-.335.343c-.073.133-.132.324-.132.614v.115a1.4%201.4%200%200%200%20.14.66zm15.7-6.222q.347-.346.346-.856a1.05%201.05%200%200%200-.345-.79%201.18%201.18%200%200%200-.84-.329q-.51%200-.855.33a1.05%201.05%200%200%200-.346.79q0%20.51.346.855.345.346.856.346.51%200%20.839-.346zm4.337%209.314.033-1.332q.191.403.59.747l.098.081a4%204%200%200%200%20.316.224l.223.122a3.2%203.2%200%200%200%201.44.322%203.8%203.8%200%200%200%201.875-.477%203.5%203.5%200%200%200%201.382-1.366q.527-.89.526-2.09%200-1.184-.444-2.073a3.24%203.24%200%200%200-1.283-1.399q-.823-.51-1.942-.51a3.5%203.5%200%200%200-1.527.344l-.086.043-.165.09a3%203%200%200%200-.33.214q-.432.315-.656.707a2%202%200%200%200-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5%202.5%200%200%200%20.566.7q.117.098.245.18l.144.08a2.1%202.1%200%200%200%20.975.232q1.07%200%201.645-.675.576-.69.576-1.778%200-1.102-.576-1.777-.56-.691-1.645-.692a2.2%202.2%200%200%200-1.015.235q-.22.113-.415.282l-.15.142a2.1%202.1%200%200%200-.42.594q-.223.479-.223%201.1v.115q0%20.705.293%201.26zm2.616-.293c.157-.191.28-.479.28-.967%200-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87%200%200%200-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0%20.285.057.499.144.669a1.1%201.1%200%200%200%20.367.405c.137.082.28.123.455.123.423%200%20.59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493%200%20.642.099l.247-1.794q-.196-.099-.717-.099a2.3%202.3%200%200%200-.545.063%202%202%200%200%200-.411.148%202.2%202.2%200%200%200-.4.249%202.5%202.5%200%200%200-.485.499%202.7%202.7%200%200%200-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5%201.5%200%200%201%20.466-.636%202.5%202.5%200%200%201%20.399-.253%202%202%200%200%201%20.224-.099zm9.784%202.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46%203.46%200%200%200-1.4%201.382q-.493.906-.493%202.106%200%201.07.428%201.975.428.89%201.332%201.432.906.526%202.255.526.973%200%201.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954%200-1.497-.444a1.6%201.6%200%200%201-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1%201%200%200%200-.156-.176q-.46-.428-1.316-.428-.986%200-1.494.604-.379.45-.494%201.234zm-27.053%202.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z%22%2F%3E%3Cpath%20fill%3D%22%23fff%22%20d%3D%22m19.63%2011.151-.757-1.71-.345%201.71-1.12%205.644h-1.827L18.083%204.7h.197l3.325%206.533.988%202.19.988-2.19L26.839%204.7h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.93%205.644h-.098l-2.913-5.644zm14.836%205.81q-1.02%200-1.893-.478a3.8%203.8%200%200%201-1.381-1.382q-.51-.906-.51-2.106%200-1.185.444-2.074a3.36%203.36%200%200%201%201.3-1.382q.839-.494%201.974-.494a3.3%203.3%200%200%201%201.234.231%203.3%203.3%200%200%201%20.97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02%201.053a3.17%203.17%200%200%201-1.662.444zm.296-1.482q.938%200%201.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2%202.2%200%200%200-.807-.872%202.1%202.1%200%200%200-1.119-.313q-1.053%200-1.629.692-.575.675-.575%201.76%200%201.103.559%201.795.577.675%201.645.675zm6.521-6.237h1.711v1.4q.906-1.597%202.83-1.597%201.596%200%202.584%201.02.988%201.005.988%202.914%200%201.185-.493%202.09a3.46%203.46%200%200%201-1.316%201.399%203.5%203.5%200%200%201-1.844.493q-.954%200-1.662-.329a2.67%202.67%200%200%201-1.086-.97l.017%205.134h-1.728zm4.048%206.22q1.07%200%201.645-.674.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.592%200-1.12.296-.51.28-.822.823-.296.527-.296%201.234v.115q0%20.708.296%201.267.313.543.823.855.51.296%201.119.297z%22%2F%3E%3Cpath%20fill%3D%22%23e1e3e9%22%20d%3D%22M51.325%204.7h1.86v10.45h3.473v1.646h-5.333zm7.12%204.542h1.843v7.553h-1.843zm.905-1.415a1.16%201.16%200%200%201-.856-.346%201.17%201.17%200%200%201-.346-.856%201.05%201.05%200%200%201%20.346-.79q.346-.329.856-.329.494%200%20.839.33a1.05%201.05%200%200%201%20.345.79%201.16%201.16%200%200%201-.345.855q-.33.346-.84.346zm7.875%209.133a3.17%203.17%200%200%201-1.662-.444q-.723-.46-1.004-1.053l-.033%201.332h-1.71V4.701h1.743v4.657l-.082%201.283q.279-.658%201.086-1.119a3.5%203.5%200%200%201%201.778-.477q1.119%200%201.942.51a3.24%203.24%200%200%201%201.283%201.4q.445.888.444%202.072%200%201.201-.526%202.09a3.5%203.5%200%200%201-1.382%201.366%203.8%203.8%200%200%201-1.876.477zm-.296-1.481q1.069%200%201.645-.675.577-.69.577-1.778%200-1.102-.577-1.776-.56-.691-1.645-.692a2.12%202.12%200%200%200-1.58.659q-.642.641-.642%201.694v.115q0%20.71.296%201.267a2.4%202.4%200%200%200%20.807.872%202.1%202.1%200%200%200%201.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14%202.14%200%200%201%201.349-.46q.527%200%20.724.098l-.247%201.794q-.149-.099-.642-.099-.774%200-1.416.494-.626.493-.626%201.58v3.883h-1.777V9.242zm9.534%207.718q-1.35%200-2.255-.526-.904-.543-1.332-1.432a4.6%204.6%200%200%201-.428-1.975q0-1.2.493-2.106a3.46%203.46%200%200%201%201.4-1.382q.889-.495%202.007-.494%201.744%200%202.584.97.855.956.856%202.7%200%20.444-.05.92h-5.43q.18%201.005.708%201.45.542.443%201.497.443.79%200%201.3-.131a4%204%200%200%200%20.938-.362l.542%201.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728%200-1.991%201.86z%22%2F%3E%3Cpath%20d%3D%22M5.074%2015.948a.484.657%200%200%200-.486.659v1.84a.484.657%200%200%200%20.486.659h4.101a.484.657%200%200%200%20.486-.659v-1.84a.484.657%200%200%200-.486-.659zm3.56%201.16H5.617v.838h3.017z%22%20style%3D%22fill%3A%23fff%3Bfill-rule%3Aevenodd%3Bstroke-width%3A1.03600001%22%2F%3E%3Cg%20style%3D%22stroke-width%3A1.12603545%22%3E%3Cpath%20d%3D%22M-9.408-1.416c-3.833-.025-7.056%202.912-7.08%206.615-.02%203.08%201.653%204.832%203.107%206.268.903.892%201.721%201.74%202.32%202.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87%201.87%200%200%200-.362%201.121l-.011%201.877c-.003.402.104.787.347%201.125.244.338.688.653%201.23.656l4.142.028c.542.003.99-.306%201.238-.641a1.87%201.87%200%200%200%20.363-1.121l.012-1.875a1.87%201.87%200%200%200-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145%201.425-1.983%202.348-2.87%201.473-1.414%203.18-3.149%203.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006%201.1v.002c3.274.02%205.92%202.532%205.9%205.6-.017%202.706-1.39%204.026-2.863%205.44-1.034.994-2.118%202.033-2.814%203.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34%200%200%201-.226.084.34.34%200%200%201-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067%202.7-5.545%205.975-5.523m-.02%202.826c-1.62-.01-2.944%201.315-2.955%202.96-.01%201.646%201.295%202.988%202.916%202.999h.002c1.621.01%202.943-1.316%202.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005%201.1c1.017.006%201.829.83%201.822%201.89s-.83%201.874-1.848%201.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874%201.848-1.868m-2.155%2011.857%204.14.025c.271.002.49.305.487.676l-.013%201.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668%22%20style%3D%22color%3A%23000%3Bfont-style%3Anormal%3Bfont-variant%3Anormal%3Bfont-weight%3A400%3Bfont-stretch%3Anormal%3Bfont-size%3Amedium%3Bline-height%3Anormal%3Bfont-family%3Asans-serif%3Bfont-variant-ligatures%3Anormal%3Bfont-variant-position%3Anormal%3Bfont-variant-caps%3Anormal%3Bfont-variant-numeric%3Anormal%3Bfont-variant-alternates%3Anormal%3Bfont-feature-settings%3Anormal%3Btext-indent%3A0%3Btext-align%3Astart%3Btext-decoration%3Anone%3Btext-decoration-line%3Anone%3Btext-decoration-style%3Asolid%3Btext-decoration-color%3A%23000%3Bletter-spacing%3Anormal%3Bword-spacing%3Anormal%3Btext-transform%3Anone%3Bwriting-mode%3Alr-tb%3Bdirection%3Altr%3Btext-orientation%3Amixed%3Bdominant-baseline%3Aauto%3Bbaseline-shift%3Abaseline%3Btext-anchor%3Astart%3Bwhite-space%3Anormal%3Bshape-padding%3A0%3Bclip-rule%3Aevenodd%3Bdisplay%3Ainline%3Boverflow%3Avisible%3Bvisibility%3Avisible%3Bopacity%3A1%3Bisolation%3Aauto%3Bmix-blend-mode%3Anormal%3Bcolor-interpolation%3AsRGB%3Bcolor-interpolation-filters%3AlinearRGB%3Bsolid-color%3A%23000%3Bsolid-opacity%3A1%3Bvector-effect%3Anone%3Bfill%3A%23000%3Bfill-opacity%3A.4%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-linecap%3Abutt%3Bstroke-linejoin%3Amiter%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-dashoffset%3A0%3Bstroke-opacity%3A1%3Bcolor-rendering%3Aauto%3Bimage-rendering%3Aauto%3Bshape-rendering%3Aauto%3Btext-rendering%3Aauto%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-9.415-.316C-12.69-.338-15.37%202.14-15.39%205.207c-.017%202.716%201.326%204.041%202.78%205.477%201.013%201%202.081%202.055%202.78%203.67l.092.076a.34.34%200%200%200%20.225.086.34.34%200%200%200%20.227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6%201.78-2.64%202.814-3.634%201.473-1.414%202.847-2.733%202.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057%208.784c1.621.011%202.944-1.315%202.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945%201.315-2.955%202.96s1.295%202.989%202.916%203%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23e1e3e9%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-11.594%2015.465c-.27-.002-.492.297-.494.668l-.012%201.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23fff%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E")}a.maplibregl-ctrl-logo.maplibregl-compact{width:14px}@media (forced-colors:active){a.maplibregl-ctrl-logo{background-color:transparent;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2288%22%20height%3D%2223%22%20fill%3D%22none%22%3E%3Cpath%20fill%3D%22%23000%22%20fill-opacity%3D%22.4%22%20fill-rule%3D%22evenodd%22%20d%3D%22M17.408%2016.796h-1.827l2.501-12.095h.198l3.324%206.533.988%202.19.988-2.19%203.258-6.533h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.929%205.644h-.098l-2.914-5.644-.757-1.71-.345%201.71zm1.958-3.42-.726%203.663a1.255%201.255%200%200%201-1.232%201.011h-1.827a1.255%201.255%200%200%201-1.229-1.509l2.501-12.095a1.255%201.255%200%200%201%201.23-1.001h.197a1.25%201.25%200%200%201%201.12.685l3.19%206.273%203.125-6.263a1.25%201.25%200%200%201%201.123-.695h.181a1.255%201.255%200%200%201%201.227.991l1.443%206.71a5%205%200%200%201%20.314-.787l.009-.016a4.6%204.6%200%200%201%201.777-1.887c.782-.46%201.668-.667%202.611-.667a4.6%204.6%200%200%201%201.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255%201.255%200%200%201%201.212.925%201.255%201.255%200%200%201%201.212-.925h1.711c.284%200%20.545.094.755.252.613-.3%201.312-.45%202.075-.45%201.356%200%202.557.445%203.482%201.4q.47.48.763%201.064V4.701a1.255%201.255%200%200%201%201.255-1.255h1.86A1.255%201.255%200%200%201%2054.44%204.7v9.194h2.217c.19%200%20.37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42%202.42%200%200%201-.682-1.71c0-.665.267-1.253.735-1.7a2.45%202.45%200%200%201%201.722-.674%202.43%202.43%200%200%201%201.705.675q.318.302.504.683V4.7a1.255%201.255%200%200%201%201.255-1.255h1.744A1.255%201.255%200%200%201%2065.812%204.7v3.335a4.8%204.8%200%200%201%201.526-.246c.938%200%201.817.214%202.59.69a4.47%204.47%200%200%201%201.67%201.743v-.98a1.255%201.255%200%200%201%201.256-1.256h1.777c.233%200%20.451.064.639.174a3.4%203.4%200%200%201%201.567-.372c.346%200%20.861.02%201.285.232a1.25%201.25%200%200%201%20.689%201.004%204.7%204.7%200%200%201%20.853-.588c.795-.44%201.675-.647%202.61-.647%201.385%200%202.65.39%203.525%201.396.836.938%201.168%202.173%201.168%203.528q-.001.515-.056%201.051a1.255%201.255%200%200%201-.947%201.09l.408.952a1.255%201.255%200%200%201-.477%201.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06%200-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8%205.8%200%200%201-.548-2.512q0-.429.053-.843a1.3%201.3%200%200%201-.333-.086l-.166-.004c-.223%200-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255%201.255%200%200%201-1.256%201.256h-1.777a1.255%201.255%200%200%201-1.256-1.256V15.69l-.032.057a4.8%204.8%200%200%201-1.86%201.833%205.04%205.04%200%200%201-2.484.634%204.5%204.5%200%200%201-1.935-.424%201.25%201.25%200%200%201-.764.258h-1.71a1.255%201.255%200%200%201-1.256-1.255V7.687a2.4%202.4%200%200%201-.428.625c.253.23.412.561.412.93v7.553a1.255%201.255%200%200%201-1.256%201.255h-1.843a1.25%201.25%200%200%201-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255%201.255%200%200%201-1.256-1.255v-1.251l-.061.117a4.7%204.7%200%200%201-1.782%201.884%204.77%204.77%200%200%201-2.485.67%205.6%205.6%200%200%201-1.485-.188l.009%202.764a1.255%201.255%200%200%201-1.255%201.259h-1.729a1.255%201.255%200%200%201-1.255-1.255v-3.537a1.255%201.255%200%200%201-1.167.793h-1.679a1.25%201.25%200%200%201-.77-.263%204.5%204.5%200%200%201-1.945.429c-.885%200-1.724-.21-2.495-.632l-.017-.01a5%205%200%200%201-1.081-.836%201.255%201.255%200%200%201-1.254%201.312h-1.81a1.255%201.255%200%200%201-1.228-.99l-.782-3.625-2.044%203.939a1.25%201.25%200%200%201-1.115.676h-.098a1.25%201.25%200%200%201-1.116-.68l-2.061-3.994zM35.92%2016.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033%201.332h1.678V9.242h-1.694l-.033%201.267q-.133-.329-.526-.658l-.032-.028a3.2%203.2%200%200%200-.668-.428l-.27-.12a3.3%203.3%200%200%200-1.235-.23q-1.136-.001-1.974.493a3.36%203.36%200%200%200-1.3%201.382q-.445.89-.444%202.074%200%201.2.51%202.107a3.8%203.8%200%200%200%201.382%201.381%203.9%203.9%200%200%200%201.893.477q.795%200%201.455-.33zm-2.789-5.38q-.576.675-.575%201.762%200%201.102.559%201.794.576.675%201.645.675a2.25%202.25%200%200%200%20.934-.19%202.2%202.2%200%200%200%20.468-.29l.178-.161a2.2%202.2%200%200%200%20.397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2%202.2%200%200%200-.633-.709l-.13-.086-.047-.028a2.1%202.1%200%200%200-1.073-.285q-1.052%200-1.629.692zm2.316%202.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96%200%200%200-.353-.389.85.85%200%200%200-.464-.127c-.4%200-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945%200%20.506.122.801.27.99.097.11.266.224.68.224.303%200%20.504-.09.687-.269zm7.545%201.705a2.6%202.6%200%200%200%20.331.423q.319.33.755.548l.173.074q.65.255%201.49.255%201.02%200%201.844-.493a3.45%203.45%200%200%200%201.316-1.4q.493-.904.493-2.089%200-1.909-.988-2.913-.988-1.02-2.584-1.02-.898%200-1.575.347a3%203%200%200%200-.415.262l-.199.166a3.4%203.4%200%200%200-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296%201.119.297%201.07%200%201.645-.675.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.435%200-.835.16a2%202%200%200%200-.284.136%202%202%200%200%200-.363.254%202.2%202.2%200%200%200-.46.569l-.082.162a2.6%202.6%200%200%200-.213%201.072v.115q0%20.707.296%201.267l.135.211zm.964-.818a1.1%201.1%200%200%200%20.367.385.94.94%200%200%200%20.476.118c.423%200%20.59-.117.687-.23.159-.194.28-.478.28-.95%200-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1%201%200%200%200-.503.135l-.012.007a.86.86%200%200%200-.335.343c-.073.133-.132.324-.132.614v.115a1.4%201.4%200%200%200%20.14.66zm15.7-6.222q.347-.346.346-.856a1.05%201.05%200%200%200-.345-.79%201.18%201.18%200%200%200-.84-.329q-.51%200-.855.33a1.05%201.05%200%200%200-.346.79q0%20.51.346.855.345.346.856.346.51%200%20.839-.346zm4.337%209.314.033-1.332q.191.403.59.747l.098.081a4%204%200%200%200%20.316.224l.223.122a3.2%203.2%200%200%200%201.44.322%203.8%203.8%200%200%200%201.875-.477%203.5%203.5%200%200%200%201.382-1.366q.527-.89.526-2.09%200-1.184-.444-2.073a3.24%203.24%200%200%200-1.283-1.399q-.823-.51-1.942-.51a3.5%203.5%200%200%200-1.527.344l-.086.043-.165.09a3%203%200%200%200-.33.214q-.432.315-.656.707a2%202%200%200%200-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5%202.5%200%200%200%20.566.7q.117.098.245.18l.144.08a2.1%202.1%200%200%200%20.975.232q1.07%200%201.645-.675.576-.69.576-1.778%200-1.102-.576-1.777-.56-.691-1.645-.692a2.2%202.2%200%200%200-1.015.235q-.22.113-.415.282l-.15.142a2.1%202.1%200%200%200-.42.594q-.223.479-.223%201.1v.115q0%20.705.293%201.26zm2.616-.293c.157-.191.28-.479.28-.967%200-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87%200%200%200-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0%20.285.057.499.144.669a1.1%201.1%200%200%200%20.367.405c.137.082.28.123.455.123.423%200%20.59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493%200%20.642.099l.247-1.794q-.196-.099-.717-.099a2.3%202.3%200%200%200-.545.063%202%202%200%200%200-.411.148%202.2%202.2%200%200%200-.4.249%202.5%202.5%200%200%200-.485.499%202.7%202.7%200%200%200-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5%201.5%200%200%201%20.466-.636%202.5%202.5%200%200%201%20.399-.253%202%202%200%200%201%20.224-.099zm9.784%202.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46%203.46%200%200%200-1.4%201.382q-.493.906-.493%202.106%200%201.07.428%201.975.428.89%201.332%201.432.906.526%202.255.526.973%200%201.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954%200-1.497-.444a1.6%201.6%200%200%201-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1%201%200%200%200-.156-.176q-.46-.428-1.316-.428-.986%200-1.494.604-.379.45-.494%201.234zm-27.053%202.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z%22%2F%3E%3Cpath%20fill%3D%22%23fff%22%20d%3D%22m19.63%2011.151-.757-1.71-.345%201.71-1.12%205.644h-1.827L18.083%204.7h.197l3.325%206.533.988%202.19.988-2.19L26.839%204.7h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.93%205.644h-.098l-2.913-5.644zm14.836%205.81q-1.02%200-1.893-.478a3.8%203.8%200%200%201-1.381-1.382q-.51-.906-.51-2.106%200-1.185.444-2.074a3.36%203.36%200%200%201%201.3-1.382q.839-.494%201.974-.494a3.3%203.3%200%200%201%201.234.231%203.3%203.3%200%200%201%20.97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02%201.053a3.17%203.17%200%200%201-1.662.444zm.296-1.482q.938%200%201.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2%202.2%200%200%200-.807-.872%202.1%202.1%200%200%200-1.119-.313q-1.053%200-1.629.692-.575.675-.575%201.76%200%201.103.559%201.795.577.675%201.645.675zm6.521-6.237h1.711v1.4q.906-1.597%202.83-1.597%201.596%200%202.584%201.02.988%201.005.988%202.914%200%201.185-.493%202.09a3.46%203.46%200%200%201-1.316%201.399%203.5%203.5%200%200%201-1.844.493q-.954%200-1.662-.329a2.67%202.67%200%200%201-1.086-.97l.017%205.134h-1.728zm4.048%206.22q1.07%200%201.645-.674.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.592%200-1.12.296-.51.28-.822.823-.296.527-.296%201.234v.115q0%20.708.296%201.267.313.543.823.855.51.296%201.119.297z%22%2F%3E%3Cpath%20fill%3D%22%23e1e3e9%22%20d%3D%22M51.325%204.7h1.86v10.45h3.473v1.646h-5.333zm7.12%204.542h1.843v7.553h-1.843zm.905-1.415a1.16%201.16%200%200%201-.856-.346%201.17%201.17%200%200%201-.346-.856%201.05%201.05%200%200%201%20.346-.79q.346-.329.856-.329.494%200%20.839.33a1.05%201.05%200%200%201%20.345.79%201.16%201.16%200%200%201-.345.855q-.33.346-.84.346zm7.875%209.133a3.17%203.17%200%200%201-1.662-.444q-.723-.46-1.004-1.053l-.033%201.332h-1.71V4.701h1.743v4.657l-.082%201.283q.279-.658%201.086-1.119a3.5%203.5%200%200%201%201.778-.477q1.119%200%201.942.51a3.24%203.24%200%200%201%201.283%201.4q.445.888.444%202.072%200%201.201-.526%202.09a3.5%203.5%200%200%201-1.382%201.366%203.8%203.8%200%200%201-1.876.477zm-.296-1.481q1.069%200%201.645-.675.577-.69.577-1.778%200-1.102-.577-1.776-.56-.691-1.645-.692a2.12%202.12%200%200%200-1.58.659q-.642.641-.642%201.694v.115q0%20.71.296%201.267a2.4%202.4%200%200%200%20.807.872%202.1%202.1%200%200%200%201.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14%202.14%200%200%201%201.349-.46q.527%200%20.724.098l-.247%201.794q-.149-.099-.642-.099-.774%200-1.416.494-.626.493-.626%201.58v3.883h-1.777V9.242zm9.534%207.718q-1.35%200-2.255-.526-.904-.543-1.332-1.432a4.6%204.6%200%200%201-.428-1.975q0-1.2.493-2.106a3.46%203.46%200%200%201%201.4-1.382q.889-.495%202.007-.494%201.744%200%202.584.97.855.956.856%202.7%200%20.444-.05.92h-5.43q.18%201.005.708%201.45.542.443%201.497.443.79%200%201.3-.131a4%204%200%200%200%20.938-.362l.542%201.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728%200-1.991%201.86z%22%2F%3E%3Cpath%20d%3D%22M5.074%2015.948a.484.657%200%200%200-.486.659v1.84a.484.657%200%200%200%20.486.659h4.101a.484.657%200%200%200%20.486-.659v-1.84a.484.657%200%200%200-.486-.659zm3.56%201.16H5.617v.838h3.017z%22%20style%3D%22fill%3A%23fff%3Bfill-rule%3Aevenodd%3Bstroke-width%3A1.03600001%22%2F%3E%3Cg%20style%3D%22stroke-width%3A1.12603545%22%3E%3Cpath%20d%3D%22M-9.408-1.416c-3.833-.025-7.056%202.912-7.08%206.615-.02%203.08%201.653%204.832%203.107%206.268.903.892%201.721%201.74%202.32%202.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87%201.87%200%200%200-.362%201.121l-.011%201.877c-.003.402.104.787.347%201.125.244.338.688.653%201.23.656l4.142.028c.542.003.99-.306%201.238-.641a1.87%201.87%200%200%200%20.363-1.121l.012-1.875a1.87%201.87%200%200%200-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145%201.425-1.983%202.348-2.87%201.473-1.414%203.18-3.149%203.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006%201.1v.002c3.274.02%205.92%202.532%205.9%205.6-.017%202.706-1.39%204.026-2.863%205.44-1.034.994-2.118%202.033-2.814%203.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34%200%200%201-.226.084.34.34%200%200%201-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067%202.7-5.545%205.975-5.523m-.02%202.826c-1.62-.01-2.944%201.315-2.955%202.96-.01%201.646%201.295%202.988%202.916%202.999h.002c1.621.01%202.943-1.316%202.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005%201.1c1.017.006%201.829.83%201.822%201.89s-.83%201.874-1.848%201.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874%201.848-1.868m-2.155%2011.857%204.14.025c.271.002.49.305.487.676l-.013%201.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668%22%20style%3D%22color%3A%23000%3Bfont-style%3Anormal%3Bfont-variant%3Anormal%3Bfont-weight%3A400%3Bfont-stretch%3Anormal%3Bfont-size%3Amedium%3Bline-height%3Anormal%3Bfont-family%3Asans-serif%3Bfont-variant-ligatures%3Anormal%3Bfont-variant-position%3Anormal%3Bfont-variant-caps%3Anormal%3Bfont-variant-numeric%3Anormal%3Bfont-variant-alternates%3Anormal%3Bfont-feature-settings%3Anormal%3Btext-indent%3A0%3Btext-align%3Astart%3Btext-decoration%3Anone%3Btext-decoration-line%3Anone%3Btext-decoration-style%3Asolid%3Btext-decoration-color%3A%23000%3Bletter-spacing%3Anormal%3Bword-spacing%3Anormal%3Btext-transform%3Anone%3Bwriting-mode%3Alr-tb%3Bdirection%3Altr%3Btext-orientation%3Amixed%3Bdominant-baseline%3Aauto%3Bbaseline-shift%3Abaseline%3Btext-anchor%3Astart%3Bwhite-space%3Anormal%3Bshape-padding%3A0%3Bclip-rule%3Aevenodd%3Bdisplay%3Ainline%3Boverflow%3Avisible%3Bvisibility%3Avisible%3Bopacity%3A1%3Bisolation%3Aauto%3Bmix-blend-mode%3Anormal%3Bcolor-interpolation%3AsRGB%3Bcolor-interpolation-filters%3AlinearRGB%3Bsolid-color%3A%23000%3Bsolid-opacity%3A1%3Bvector-effect%3Anone%3Bfill%3A%23000%3Bfill-opacity%3A.4%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-linecap%3Abutt%3Bstroke-linejoin%3Amiter%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-dashoffset%3A0%3Bstroke-opacity%3A1%3Bcolor-rendering%3Aauto%3Bimage-rendering%3Aauto%3Bshape-rendering%3Aauto%3Btext-rendering%3Aauto%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-9.415-.316C-12.69-.338-15.37%202.14-15.39%205.207c-.017%202.716%201.326%204.041%202.78%205.477%201.013%201%202.081%202.055%202.78%203.67l.092.076a.34.34%200%200%200%20.225.086.34.34%200%200%200%20.227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6%201.78-2.64%202.814-3.634%201.473-1.414%202.847-2.733%202.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057%208.784c1.621.011%202.944-1.315%202.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945%201.315-2.955%202.96s1.295%202.989%202.916%203%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23e1e3e9%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-11.594%2015.465c-.27-.002-.492.297-.494.668l-.012%201.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23fff%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){a.maplibregl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2288%22%20height%3D%2223%22%20fill%3D%22none%22%3E%3Cpath%20fill%3D%22%23000%22%20fill-opacity%3D%22.4%22%20fill-rule%3D%22evenodd%22%20d%3D%22M17.408%2016.796h-1.827l2.501-12.095h.198l3.324%206.533.988%202.19.988-2.19%203.258-6.533h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.929%205.644h-.098l-2.914-5.644-.757-1.71-.345%201.71zm1.958-3.42-.726%203.663a1.255%201.255%200%200%201-1.232%201.011h-1.827a1.255%201.255%200%200%201-1.229-1.509l2.501-12.095a1.255%201.255%200%200%201%201.23-1.001h.197a1.25%201.25%200%200%201%201.12.685l3.19%206.273%203.125-6.263a1.25%201.25%200%200%201%201.123-.695h.181a1.255%201.255%200%200%201%201.227.991l1.443%206.71a5%205%200%200%201%20.314-.787l.009-.016a4.6%204.6%200%200%201%201.777-1.887c.782-.46%201.668-.667%202.611-.667a4.6%204.6%200%200%201%201.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255%201.255%200%200%201%201.212.925%201.255%201.255%200%200%201%201.212-.925h1.711c.284%200%20.545.094.755.252.613-.3%201.312-.45%202.075-.45%201.356%200%202.557.445%203.482%201.4q.47.48.763%201.064V4.701a1.255%201.255%200%200%201%201.255-1.255h1.86A1.255%201.255%200%200%201%2054.44%204.7v9.194h2.217c.19%200%20.37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42%202.42%200%200%201-.682-1.71c0-.665.267-1.253.735-1.7a2.45%202.45%200%200%201%201.722-.674%202.43%202.43%200%200%201%201.705.675q.318.302.504.683V4.7a1.255%201.255%200%200%201%201.255-1.255h1.744A1.255%201.255%200%200%201%2065.812%204.7v3.335a4.8%204.8%200%200%201%201.526-.246c.938%200%201.817.214%202.59.69a4.47%204.47%200%200%201%201.67%201.743v-.98a1.255%201.255%200%200%201%201.256-1.256h1.777c.233%200%20.451.064.639.174a3.4%203.4%200%200%201%201.567-.372c.346%200%20.861.02%201.285.232a1.25%201.25%200%200%201%20.689%201.004%204.7%204.7%200%200%201%20.853-.588c.795-.44%201.675-.647%202.61-.647%201.385%200%202.65.39%203.525%201.396.836.938%201.168%202.173%201.168%203.528q-.001.515-.056%201.051a1.255%201.255%200%200%201-.947%201.09l.408.952a1.255%201.255%200%200%201-.477%201.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06%200-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8%205.8%200%200%201-.548-2.512q0-.429.053-.843a1.3%201.3%200%200%201-.333-.086l-.166-.004c-.223%200-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255%201.255%200%200%201-1.256%201.256h-1.777a1.255%201.255%200%200%201-1.256-1.256V15.69l-.032.057a4.8%204.8%200%200%201-1.86%201.833%205.04%205.04%200%200%201-2.484.634%204.5%204.5%200%200%201-1.935-.424%201.25%201.25%200%200%201-.764.258h-1.71a1.255%201.255%200%200%201-1.256-1.255V7.687a2.4%202.4%200%200%201-.428.625c.253.23.412.561.412.93v7.553a1.255%201.255%200%200%201-1.256%201.255h-1.843a1.25%201.25%200%200%201-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255%201.255%200%200%201-1.256-1.255v-1.251l-.061.117a4.7%204.7%200%200%201-1.782%201.884%204.77%204.77%200%200%201-2.485.67%205.6%205.6%200%200%201-1.485-.188l.009%202.764a1.255%201.255%200%200%201-1.255%201.259h-1.729a1.255%201.255%200%200%201-1.255-1.255v-3.537a1.255%201.255%200%200%201-1.167.793h-1.679a1.25%201.25%200%200%201-.77-.263%204.5%204.5%200%200%201-1.945.429c-.885%200-1.724-.21-2.495-.632l-.017-.01a5%205%200%200%201-1.081-.836%201.255%201.255%200%200%201-1.254%201.312h-1.81a1.255%201.255%200%200%201-1.228-.99l-.782-3.625-2.044%203.939a1.25%201.25%200%200%201-1.115.676h-.098a1.25%201.25%200%200%201-1.116-.68l-2.061-3.994zM35.92%2016.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033%201.332h1.678V9.242h-1.694l-.033%201.267q-.133-.329-.526-.658l-.032-.028a3.2%203.2%200%200%200-.668-.428l-.27-.12a3.3%203.3%200%200%200-1.235-.23q-1.136-.001-1.974.493a3.36%203.36%200%200%200-1.3%201.382q-.445.89-.444%202.074%200%201.2.51%202.107a3.8%203.8%200%200%200%201.382%201.381%203.9%203.9%200%200%200%201.893.477q.795%200%201.455-.33zm-2.789-5.38q-.576.675-.575%201.762%200%201.102.559%201.794.576.675%201.645.675a2.25%202.25%200%200%200%20.934-.19%202.2%202.2%200%200%200%20.468-.29l.178-.161a2.2%202.2%200%200%200%20.397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2%202.2%200%200%200-.633-.709l-.13-.086-.047-.028a2.1%202.1%200%200%200-1.073-.285q-1.052%200-1.629.692zm2.316%202.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96%200%200%200-.353-.389.85.85%200%200%200-.464-.127c-.4%200-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945%200%20.506.122.801.27.99.097.11.266.224.68.224.303%200%20.504-.09.687-.269zm7.545%201.705a2.6%202.6%200%200%200%20.331.423q.319.33.755.548l.173.074q.65.255%201.49.255%201.02%200%201.844-.493a3.45%203.45%200%200%200%201.316-1.4q.493-.904.493-2.089%200-1.909-.988-2.913-.988-1.02-2.584-1.02-.898%200-1.575.347a3%203%200%200%200-.415.262l-.199.166a3.4%203.4%200%200%200-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296%201.119.297%201.07%200%201.645-.675.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.435%200-.835.16a2%202%200%200%200-.284.136%202%202%200%200%200-.363.254%202.2%202.2%200%200%200-.46.569l-.082.162a2.6%202.6%200%200%200-.213%201.072v.115q0%20.707.296%201.267l.135.211zm.964-.818a1.1%201.1%200%200%200%20.367.385.94.94%200%200%200%20.476.118c.423%200%20.59-.117.687-.23.159-.194.28-.478.28-.95%200-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1%201%200%200%200-.503.135l-.012.007a.86.86%200%200%200-.335.343c-.073.133-.132.324-.132.614v.115a1.4%201.4%200%200%200%20.14.66zm15.7-6.222q.347-.346.346-.856a1.05%201.05%200%200%200-.345-.79%201.18%201.18%200%200%200-.84-.329q-.51%200-.855.33a1.05%201.05%200%200%200-.346.79q0%20.51.346.855.345.346.856.346.51%200%20.839-.346zm4.337%209.314.033-1.332q.191.403.59.747l.098.081a4%204%200%200%200%20.316.224l.223.122a3.2%203.2%200%200%200%201.44.322%203.8%203.8%200%200%200%201.875-.477%203.5%203.5%200%200%200%201.382-1.366q.527-.89.526-2.09%200-1.184-.444-2.073a3.24%203.24%200%200%200-1.283-1.399q-.823-.51-1.942-.51a3.5%203.5%200%200%200-1.527.344l-.086.043-.165.09a3%203%200%200%200-.33.214q-.432.315-.656.707a2%202%200%200%200-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5%202.5%200%200%200%20.566.7q.117.098.245.18l.144.08a2.1%202.1%200%200%200%20.975.232q1.07%200%201.645-.675.576-.69.576-1.778%200-1.102-.576-1.777-.56-.691-1.645-.692a2.2%202.2%200%200%200-1.015.235q-.22.113-.415.282l-.15.142a2.1%202.1%200%200%200-.42.594q-.223.479-.223%201.1v.115q0%20.705.293%201.26zm2.616-.293c.157-.191.28-.479.28-.967%200-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87%200%200%200-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0%20.285.057.499.144.669a1.1%201.1%200%200%200%20.367.405c.137.082.28.123.455.123.423%200%20.59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493%200%20.642.099l.247-1.794q-.196-.099-.717-.099a2.3%202.3%200%200%200-.545.063%202%202%200%200%200-.411.148%202.2%202.2%200%200%200-.4.249%202.5%202.5%200%200%200-.485.499%202.7%202.7%200%200%200-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5%201.5%200%200%201%20.466-.636%202.5%202.5%200%200%201%20.399-.253%202%202%200%200%201%20.224-.099zm9.784%202.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46%203.46%200%200%200-1.4%201.382q-.493.906-.493%202.106%200%201.07.428%201.975.428.89%201.332%201.432.906.526%202.255.526.973%200%201.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954%200-1.497-.444a1.6%201.6%200%200%201-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1%201%200%200%200-.156-.176q-.46-.428-1.316-.428-.986%200-1.494.604-.379.45-.494%201.234zm-27.053%202.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z%22%2F%3E%3Cpath%20fill%3D%22%23fff%22%20d%3D%22m19.63%2011.151-.757-1.71-.345%201.71-1.12%205.644h-1.827L18.083%204.7h.197l3.325%206.533.988%202.19.988-2.19L26.839%204.7h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.93%205.644h-.098l-2.913-5.644zm14.836%205.81q-1.02%200-1.893-.478a3.8%203.8%200%200%201-1.381-1.382q-.51-.906-.51-2.106%200-1.185.444-2.074a3.36%203.36%200%200%201%201.3-1.382q.839-.494%201.974-.494a3.3%203.3%200%200%201%201.234.231%203.3%203.3%200%200%201%20.97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02%201.053a3.17%203.17%200%200%201-1.662.444zm.296-1.482q.938%200%201.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2%202.2%200%200%200-.807-.872%202.1%202.1%200%200%200-1.119-.313q-1.053%200-1.629.692-.575.675-.575%201.76%200%201.103.559%201.795.577.675%201.645.675zm6.521-6.237h1.711v1.4q.906-1.597%202.83-1.597%201.596%200%202.584%201.02.988%201.005.988%202.914%200%201.185-.493%202.09a3.46%203.46%200%200%201-1.316%201.399%203.5%203.5%200%200%201-1.844.493q-.954%200-1.662-.329a2.67%202.67%200%200%201-1.086-.97l.017%205.134h-1.728zm4.048%206.22q1.07%200%201.645-.674.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.592%200-1.12.296-.51.28-.822.823-.296.527-.296%201.234v.115q0%20.708.296%201.267.313.543.823.855.51.296%201.119.297z%22%2F%3E%3Cpath%20fill%3D%22%23e1e3e9%22%20d%3D%22M51.325%204.7h1.86v10.45h3.473v1.646h-5.333zm7.12%204.542h1.843v7.553h-1.843zm.905-1.415a1.16%201.16%200%200%201-.856-.346%201.17%201.17%200%200%201-.346-.856%201.05%201.05%200%200%201%20.346-.79q.346-.329.856-.329.494%200%20.839.33a1.05%201.05%200%200%201%20.345.79%201.16%201.16%200%200%201-.345.855q-.33.346-.84.346zm7.875%209.133a3.17%203.17%200%200%201-1.662-.444q-.723-.46-1.004-1.053l-.033%201.332h-1.71V4.701h1.743v4.657l-.082%201.283q.279-.658%201.086-1.119a3.5%203.5%200%200%201%201.778-.477q1.119%200%201.942.51a3.24%203.24%200%200%201%201.283%201.4q.445.888.444%202.072%200%201.201-.526%202.09a3.5%203.5%200%200%201-1.382%201.366%203.8%203.8%200%200%201-1.876.477zm-.296-1.481q1.069%200%201.645-.675.577-.69.577-1.778%200-1.102-.577-1.776-.56-.691-1.645-.692a2.12%202.12%200%200%200-1.58.659q-.642.641-.642%201.694v.115q0%20.71.296%201.267a2.4%202.4%200%200%200%20.807.872%202.1%202.1%200%200%200%201.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14%202.14%200%200%201%201.349-.46q.527%200%20.724.098l-.247%201.794q-.149-.099-.642-.099-.774%200-1.416.494-.626.493-.626%201.58v3.883h-1.777V9.242zm9.534%207.718q-1.35%200-2.255-.526-.904-.543-1.332-1.432a4.6%204.6%200%200%201-.428-1.975q0-1.2.493-2.106a3.46%203.46%200%200%201%201.4-1.382q.889-.495%202.007-.494%201.744%200%202.584.97.855.956.856%202.7%200%20.444-.05.92h-5.43q.18%201.005.708%201.45.542.443%201.497.443.79%200%201.3-.131a4%204%200%200%200%20.938-.362l.542%201.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728%200-1.991%201.86z%22%2F%3E%3Cpath%20d%3D%22M5.074%2015.948a.484.657%200%200%200-.486.659v1.84a.484.657%200%200%200%20.486.659h4.101a.484.657%200%200%200%20.486-.659v-1.84a.484.657%200%200%200-.486-.659zm3.56%201.16H5.617v.838h3.017z%22%20style%3D%22fill%3A%23fff%3Bfill-rule%3Aevenodd%3Bstroke-width%3A1.03600001%22%2F%3E%3Cg%20style%3D%22stroke-width%3A1.12603545%22%3E%3Cpath%20d%3D%22M-9.408-1.416c-3.833-.025-7.056%202.912-7.08%206.615-.02%203.08%201.653%204.832%203.107%206.268.903.892%201.721%201.74%202.32%202.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87%201.87%200%200%200-.362%201.121l-.011%201.877c-.003.402.104.787.347%201.125.244.338.688.653%201.23.656l4.142.028c.542.003.99-.306%201.238-.641a1.87%201.87%200%200%200%20.363-1.121l.012-1.875a1.87%201.87%200%200%200-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145%201.425-1.983%202.348-2.87%201.473-1.414%203.18-3.149%203.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006%201.1v.002c3.274.02%205.92%202.532%205.9%205.6-.017%202.706-1.39%204.026-2.863%205.44-1.034.994-2.118%202.033-2.814%203.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34%200%200%201-.226.084.34.34%200%200%201-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067%202.7-5.545%205.975-5.523m-.02%202.826c-1.62-.01-2.944%201.315-2.955%202.96-.01%201.646%201.295%202.988%202.916%202.999h.002c1.621.01%202.943-1.316%202.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005%201.1c1.017.006%201.829.83%201.822%201.89s-.83%201.874-1.848%201.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874%201.848-1.868m-2.155%2011.857%204.14.025c.271.002.49.305.487.676l-.013%201.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668%22%20style%3D%22color%3A%23000%3Bfont-style%3Anormal%3Bfont-variant%3Anormal%3Bfont-weight%3A400%3Bfont-stretch%3Anormal%3Bfont-size%3Amedium%3Bline-height%3Anormal%3Bfont-family%3Asans-serif%3Bfont-variant-ligatures%3Anormal%3Bfont-variant-position%3Anormal%3Bfont-variant-caps%3Anormal%3Bfont-variant-numeric%3Anormal%3Bfont-variant-alternates%3Anormal%3Bfont-feature-settings%3Anormal%3Btext-indent%3A0%3Btext-align%3Astart%3Btext-decoration%3Anone%3Btext-decoration-line%3Anone%3Btext-decoration-style%3Asolid%3Btext-decoration-color%3A%23000%3Bletter-spacing%3Anormal%3Bword-spacing%3Anormal%3Btext-transform%3Anone%3Bwriting-mode%3Alr-tb%3Bdirection%3Altr%3Btext-orientation%3Amixed%3Bdominant-baseline%3Aauto%3Bbaseline-shift%3Abaseline%3Btext-anchor%3Astart%3Bwhite-space%3Anormal%3Bshape-padding%3A0%3Bclip-rule%3Aevenodd%3Bdisplay%3Ainline%3Boverflow%3Avisible%3Bvisibility%3Avisible%3Bopacity%3A1%3Bisolation%3Aauto%3Bmix-blend-mode%3Anormal%3Bcolor-interpolation%3AsRGB%3Bcolor-interpolation-filters%3AlinearRGB%3Bsolid-color%3A%23000%3Bsolid-opacity%3A1%3Bvector-effect%3Anone%3Bfill%3A%23000%3Bfill-opacity%3A.4%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-linecap%3Abutt%3Bstroke-linejoin%3Amiter%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-dashoffset%3A0%3Bstroke-opacity%3A1%3Bcolor-rendering%3Aauto%3Bimage-rendering%3Aauto%3Bshape-rendering%3Aauto%3Btext-rendering%3Aauto%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-9.415-.316C-12.69-.338-15.37%202.14-15.39%205.207c-.017%202.716%201.326%204.041%202.78%205.477%201.013%201%202.081%202.055%202.78%203.67l.092.076a.34.34%200%200%200%20.225.086.34.34%200%200%200%20.227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6%201.78-2.64%202.814-3.634%201.473-1.414%202.847-2.733%202.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057%208.784c1.621.011%202.944-1.315%202.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945%201.315-2.955%202.96s1.295%202.989%202.916%203%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23e1e3e9%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-11.594%2015.465c-.27-.002-.492.297-.494.668l-.012%201.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23fff%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl.maplibregl-ctrl-attrib{padding:0 5px;background-color:hsla(0,0%,100%,.5);margin:0}@media screen{.maplibregl-ctrl-attrib.maplibregl-compact{min-height:20px;padding:2px 24px 2px 0;margin:10px;position:relative;background-color:#fff;color:#000;border-radius:12px;box-sizing:content-box}.maplibregl-ctrl-attrib.maplibregl-compact-show{padding:2px 28px 2px 8px;visibility:visible}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact-show,.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact-show{padding:2px 8px 2px 28px;border-radius:12px}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-inner{display:none}.maplibregl-ctrl-attrib-button{display:none;cursor:pointer;position:absolute;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20fill-rule%3D%22evenodd%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M4%2010a6%206%200%201%200%2012%200%206%206%200%201%200-12%200m5-3a1%201%200%201%200%202%200%201%201%200%201%200-2%200m0%203a1%201%200%201%201%202%200v3a1%201%200%201%201-2%200%22%2F%3E%3C%2Fsvg%3E");background-color:hsla(0,0%,100%,.5);width:24px;height:24px;box-sizing:border-box;border-radius:12px;outline:none;top:0;right:0;border:0}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;list-style:none}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button::-webkit-details-marker{display:none}.maplibregl-ctrl-bottom-left .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-top-left .maplibregl-ctrl-attrib-button{left:0}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-inner{display:block}.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-button{background-color:rgba(0,0,0,.05)}.maplibregl-ctrl-bottom-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;right:0}.maplibregl-ctrl-top-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{top:0;right:0}.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{top:0;left:0}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;left:0}}@media screen and (forced-colors:active){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22%23fff%22%20fill-rule%3D%22evenodd%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M4%2010a6%206%200%201%200%2012%200%206%206%200%201%200-12%200m5-3a1%201%200%201%200%202%200%201%201%200%201%200-2%200m0%203a1%201%200%201%201%202%200v3a1%201%200%201%201-2%200%22%2F%3E%3C%2Fsvg%3E")}}@media screen and (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20fill-rule%3D%22evenodd%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M4%2010a6%206%200%201%200%2012%200%206%206%200%201%200-12%200m5-3a1%201%200%201%200%202%200%201%201%200%201%200-2%200m0%203a1%201%200%201%201%202%200v3a1%201%200%201%201-2%200%22%2F%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl-attrib a{color:rgba(0,0,0,.75);text-decoration:none}.maplibregl-ctrl-attrib a:hover{color:inherit;text-decoration:underline}.maplibregl-attrib-empty{display:none}.maplibregl-ctrl-scale{background-color:hsla(0,0%,100%,.75);font-size:10px;white-space:nowrap;border-color:#333;border-style:none solid solid;border-width:medium 2px 2px;padding:0 5px;color:#333;box-sizing:border-box}.maplibregl-popup{position:absolute;top:0;left:0;display:flex;will-change:transform;pointer-events:none}.maplibregl-popup-anchor-top,.maplibregl-popup-anchor-top-left,.maplibregl-popup-anchor-top-right{flex-direction:column}.maplibregl-popup-anchor-bottom,.maplibregl-popup-anchor-bottom-left,.maplibregl-popup-anchor-bottom-right{flex-direction:column-reverse}.maplibregl-popup-anchor-left{flex-direction:row}.maplibregl-popup-anchor-right{flex-direction:row-reverse}.maplibregl-popup-tip{width:0;height:0;border:10px solid transparent;z-index:1}.maplibregl-popup-anchor-top .maplibregl-popup-tip{align-self:center;border-top:none;border-bottom-color:#fff}.maplibregl-popup-anchor-top-left .maplibregl-popup-tip{align-self:flex-start;border-top:none;border-left:none;border-bottom-color:#fff}.maplibregl-popup-anchor-top-right .maplibregl-popup-tip{align-self:flex-end;border-top:none;border-right:none;border-bottom-color:#fff}.maplibregl-popup-anchor-bottom .maplibregl-popup-tip{align-self:center;border-bottom:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip{align-self:flex-start;border-bottom:none;border-left:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip{align-self:flex-end;border-bottom:none;border-right:none;border-top-color:#fff}.maplibregl-popup-anchor-left .maplibregl-popup-tip{align-self:center;border-left:none;border-right-color:#fff}.maplibregl-popup-anchor-right .maplibregl-popup-tip{align-self:center;border-right:none;border-left-color:#fff}[dir=rtl] .maplibregl-popup-anchor-left{flex-direction:row-reverse}[dir=rtl] .maplibregl-popup-anchor-right{flex-direction:row}[dir=rtl] .maplibregl-popup-anchor-top-left .maplibregl-popup-tip{align-self:flex-end}[dir=rtl] .maplibregl-popup-anchor-top-right .maplibregl-popup-tip{align-self:flex-start}[dir=rtl] .maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip{align-self:flex-end}[dir=rtl] .maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip{align-self:flex-start}.maplibregl-popup-close-button{position:absolute;right:0;top:0;border:0;border-radius:0 3px 0 0;cursor:pointer;background-color:transparent}.maplibregl-popup-close-button:hover{background-color:rgba(0,0,0,.05)}.maplibregl-popup-content{position:relative;background:#fff;border-radius:3px;box-shadow:0 1px 2px rgba(0,0,0,.1);padding:15px 10px;pointer-events:auto}.maplibregl-popup-anchor-top-left .maplibregl-popup-content{border-top-left-radius:0}.maplibregl-popup-anchor-top-right .maplibregl-popup-content{border-top-right-radius:0}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-content{border-bottom-left-radius:0}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-content{border-bottom-right-radius:0}.maplibregl-popup-track-pointer{display:none}.maplibregl-popup-track-pointer *{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-map:hover .maplibregl-popup-track-pointer{display:flex}.maplibregl-map:active .maplibregl-popup-track-pointer{display:none}.maplibregl-marker{position:absolute;top:0;left:0;will-change:transform;transition:opacity .2s}.maplibregl-marker-draggable{cursor:grab}.maplibregl-user-location-dot,.maplibregl-user-location-dot:before{background-color:#1da1f2;width:15px;height:15px;border-radius:50%}.maplibregl-user-location-dot:before{content:"";position:absolute;animation:maplibregl-user-location-dot-pulse 2s infinite}.maplibregl-user-location-dot:after{border-radius:50%;border:2px solid #fff;content:"";height:19px;left:-2px;position:absolute;top:-2px;width:19px;box-sizing:border-box;box-shadow:0 0 3px rgba(0,0,0,.35)}@media (prefers-reduced-motion:reduce){.maplibregl-user-location-dot:before{animation:none}}@keyframes maplibregl-user-location-dot-pulse{0%{transform:scale(1);opacity:1}70%{transform:scale(3);opacity:0}to{transform:scale(1);opacity:0}}.maplibregl-user-location-dot-stale{background-color:#aaa}.maplibregl-user-location-dot-stale:after{display:none}.maplibregl-user-location-accuracy-circle{background-color:#1da1f233;width:1px;height:1px;border-radius:100%}.maplibregl-crosshair,.maplibregl-crosshair .maplibregl-interactive,.maplibregl-crosshair .maplibregl-interactive:active{cursor:crosshair}.maplibregl-boxzoom{position:absolute;top:0;left:0;width:0;height:0;background:#fff;border:2px dotted #202020;opacity:.5}.maplibregl-cooperative-gesture-screen{background:rgba(0,0,0,.4);position:absolute;inset:0;display:flex;justify-content:center;align-items:center;color:#fff;padding:1rem;font-size:1.4em;line-height:1.2;opacity:0;pointer-events:none;transition:opacity 1s ease 1s;z-index:99999}.maplibregl-cooperative-gesture-screen.maplibregl-show{opacity:1;transition:opacity .05s}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:none}@media (hover:none),(pointer:coarse){.maplibregl-cooperative-gesture-screen .maplibregl-desktop-message{display:none}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:block}}.maplibregl-pseudo-fullscreen{position:fixed!important;width:100%!important;height:100%!important;top:0!important;left:0!important;z-index:99999}',document.head.appendChild(e)}})()});var kr=J(Yr=>{"use strict";var Yg=Wl(),Pw=x2(),Rw=zg(),Yye=yf().addStyleRule,zw=va(),gK=xi(),yK=A0(),bK=zw.extendFlat,Ug=zw.extendDeepAll;Yr.modules={};Yr.allCategories={};Yr.allTypes=[];Yr.subplotsRegistry={};Yr.componentsRegistry={};Yr.layoutArrayContainers=[];Yr.layoutArrayRegexes=[];Yr.traceLayoutAttributes={};Yr.localeRegistry={};Yr.apiMethodRegistry={};Yr.collectableSubplotTypes=null;Yr.register=function(r){if(Yr.collectableSubplotTypes=null,r)r&&!Array.isArray(r)&&(r=[r]);else throw new Error("No argument passed to Plotly.register.");for(var t=0;t{"use strict";var TK=s0().timeFormat,Xw=Zr(),Gg=Wl(),Ql=(c0(),Xe(f0)).mod,S0=(ca(),Xe(ga)),Kn=S0.BADNUM,Mn=S0.ONEDAY,xf=S0.ONEHOUR,jl=S0.ONEMIN,C0=S0.ONESEC,_f=S0.EPOCHJD,xl=kr(),Hw=s0().utcFormat,AK=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\d)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d(:?\d\d)?)?)?)?)?)?\s*$/m,kK=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\di?)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d(:?\d\d)?)?)?)?)?)?\s*$/m,Ow=new Date().getFullYear()-70;function _l(e){return e&&xl.componentsRegistry.calendars&&typeof e=="string"&&e!=="gregorian"}$t.dateTick0=function(e,r){var t=CK(e,!!r);if(r<2)return t;var a=$t.dateTime2ms(t,e);return a+=Mn*(r-1),$t.ms2DateTime(a,0,e)};function CK(e,r){return _l(e)?r?xl.getComponentMethod("calendars","CANONICAL_SUNDAY")[e]:xl.getComponentMethod("calendars","CANONICAL_TICK")[e]:r?"2000-01-02":"2000-01-01"}$t.dfltRange=function(e){return _l(e)?xl.getComponentMethod("calendars","DFLTRANGE")[e]:["2000-01-01","2001-01-01"]};$t.isJSDate=function(e){return typeof e=="object"&&e!==null&&typeof e.getTime=="function"};var D2,L2;$t.dateTime2ms=function(e,r){if($t.isJSDate(e)){var t=e.getTimezoneOffset()*jl,a=(e.getUTCMinutes()-e.getMinutes())*jl+(e.getUTCSeconds()-e.getSeconds())*C0+(e.getUTCMilliseconds()-e.getMilliseconds());if(a){var n=3*jl;t=t-n/2+Ql(a-t+n/2,n)}return e=Number(e)-t,e>=D2&&e<=L2?e:Kn}if(typeof e!="string"&&typeof e!="number")return Kn;e=String(e);var i=_l(r),l=e.charAt(0);i&&(l==="G"||l==="g")&&(e=e.slice(1),r="");var o=i&&r.slice(0,7)==="chinese",s=e.match(o?kK:AK);if(!s)return Kn;var u=s[1],f=s[3]||"1",c=Number(s[5]||1),d=Number(s[7]||0),h=Number(s[9]||0),p=Number(s[11]||0);if(i){if(u.length===2)return Kn;u=Number(u);var g;try{var y=xl.getComponentMethod("calendars","getCal")(r);if(o){var x=f.charAt(f.length-1)==="i";f=parseInt(f,10),g=y.newDate(u,y.toMonthIndex(u,f,x),c)}else g=y.newDate(u,Number(f),c)}catch(M){return Kn}return g?(g.toJD()-_f)*Mn+d*xf+h*jl+p*C0:Kn}u.length===2?u=(Number(u)+2e3-Ow)%100+Ow:u=Number(u),f-=1;var w=new Date(Date.UTC(2e3,f,c,d,h));return w.setUTCFullYear(u),w.getUTCMonth()!==f||w.getUTCDate()!==c?Kn:w.getTime()+p*C0};D2=$t.MIN_MS=$t.dateTime2ms("-9999");L2=$t.MAX_MS=$t.dateTime2ms("9999-12-31 23:59:59.9999");$t.isDateTime=function(e,r){return $t.dateTime2ms(e,r)!==Kn};function k0(e,r){return String(e+Math.pow(10,r)).slice(1)}var S2=90*Mn,Yw=3*xf,Uw=5*jl;$t.ms2DateTime=function(e,r,t){if(typeof e!="number"||!(e>=D2&&e<=L2))return Kn;r||(r=0);var a=Math.floor(Ql(e+.05,1)*10),n=Math.round(e-a/10),i,l,o,s,u,f;if(_l(t)){var c=Math.floor(n/Mn)+_f,d=Math.floor(Ql(e,Mn));try{i=xl.getComponentMethod("calendars","getCal")(t).fromJD(c).formatDate("yyyy-mm-dd")}catch(h){i=Hw("G%Y-%m-%d")(new Date(n))}if(i.charAt(0)==="-")for(;i.length<11;)i="-0"+i.slice(1);else for(;i.length<10;)i="0"+i;l=r=D2+Mn&&e<=L2-Mn))return Kn;var r=Math.floor(Ql(e+.05,1)*10),t=new Date(Math.round(e-r/10)),a=TK("%Y-%m-%d")(t),n=t.getHours(),i=t.getMinutes(),l=t.getSeconds(),o=t.getUTCMilliseconds()*10+r;return Ww(a,n,i,l,o)};function Ww(e,r,t,a,n){if((r||t||a||n)&&(e+=" "+k0(r,2)+":"+k0(t,2),(a||n)&&(e+=":"+k0(a,2),n))){for(var i=4;n%10===0;)i-=1,n/=10;e+="."+k0(n,i)}return e}$t.cleanDate=function(e,r,t){if(e===Kn)return r;if($t.isJSDate(e)||typeof e=="number"&&isFinite(e)){if(_l(t))return Gg.error("JS Dates and milliseconds are incompatible with world calendars",e),r;if(e=$t.ms2DateTimeLocal(+e),!e&&r!==void 0)return r}else if(!$t.isDateTime(e,t))return Gg.error("unrecognized date",e),r;return e};var SK=/%\d?f/g,DK=/%h/g,LK={1:"1",2:"1",3:"2",4:"2"};function Gw(e,r,t,a){e=e.replace(SK,function(i){var l=Math.min(+i.charAt(1)||6,6),o=(r/1e3%1+2).toFixed(l).slice(2).replace(/0+$/,"")||"0";return o});var n=new Date(Math.floor(r+.05));if(e=e.replace(DK,function(){return LK[t("%q")(n)]}),_l(a))try{e=xl.getComponentMethod("calendars","worldCalFmt")(e,r,a)}catch(i){return"Invalid"}return t(e)(n)}var qK=[59,59.9,59.99,59.999,59.9999];function EK(e,r){var t=Ql(e+.05,Mn),a=k0(Math.floor(t/xf),2)+":"+k0(Ql(Math.floor(t/jl),60),2);if(r!=="M"){Xw(r)||(r=0);var n=Math.min(Ql(e/C0,60),qK[r]),i=(100+n).toFixed(r).slice(1);r>0&&(i=i.replace(/0+$/,"").replace(/[\.]$/,"")),a+=":"+i}return a}$t.formatDate=function(e,r,t,a,n,i){if(n=_l(n)&&n,!r)if(t==="y")r=i.year;else if(t==="m")r=i.month;else if(t==="d")r=i.dayMonth+` +`+i.year;else return EK(e,t)+` +`+Gw(i.dayMonthYear,e,a,n);return Gw(r,e,a,n)};var Vw=3*Mn;$t.incrementMonth=function(e,r,t){t=_l(t)&&t;var a=Ql(e,Mn);if(e=Math.round(e-a),t)try{var n=Math.round(e/Mn)+_f,i=xl.getComponentMethod("calendars","getCal")(t),l=i.fromJD(n);return r%12?i.add(l,r,"m"):i.add(l,r/12,"y"),(l.toJD()-_f)*Mn+a}catch(s){Gg.error("invalid ms "+e+" in calendar "+t)}var o=new Date(e+Vw);return o.setUTCMonth(o.getUTCMonth()+r)+a-Vw};$t.findExactDates=function(e,r){for(var t=0,a=0,n=0,i=0,l,o,s=_l(r)&&xl.getComponentMethod("calendars","getCal")(r),u=0;u{"use strict";Jw.exports=function(r){return r}});var Wg=J(wl=>{"use strict";var PK=Zr(),RK=Wl(),zK=Vg(),FK=(ca(),Xe(ga)).BADNUM,Xg=1e-9;wl.findBin=function(e,r,t){if(PK(r.start))return t?Math.ceil((e-r.start)/r.size-Xg)-1:Math.floor((e-r.start)/r.size+Xg);var a=0,n=r.length,i=0,l=n>1?(r[n-1]-r[0])/(n-1):1,o,s;for(l>=0?s=t?NK:IK:s=t?HK:BK,e+=l*Xg*(t?-1:1)*(l>=0?1:-1);a90&&RK.log("Long binary search..."),a-1};function NK(e,r){return er}function HK(e,r){return e>=r}wl.sorterAsc=function(e,r){return e-r};wl.sorterDes=function(e,r){return r-e};wl.distinctVals=function(e){var r=e.slice();r.sort(wl.sorterAsc);var t;for(t=r.length-1;t>-1&&r[t]===FK;t--);for(var a=r[t]-r[0]||1,n=a/(t||1)/1e4,i=[],l,o=0;o<=t;o++){var s=r[o],u=s-l;l===void 0?(i.push(s),l=s):u>n&&(a=Math.min(a,u),i.push(s),l=s)}return{vals:i,minDiff:a}};wl.roundUp=function(e,r,t){for(var a=0,n=r.length-1,i,l=0,o=t?0:1,s=t?1:0,u=t?Math.ceil:Math.floor;a0&&(a=1),t&&a)return e.sort(r)}return a?e:e.reverse()};wl.findIndexOfMin=function(e,r){r=r||zK;for(var t=1/0,a,n=0;nYK});function OK(e){return Object.keys(e).sort()}var YK,Jg=Ft(()=>{"use strict";YK=OK});var $w=J(Kt=>{"use strict";var wf=Zr(),UK=xn().isArrayOrTypedArray;Kt.aggNums=function(e,r,t,a){var n,i;if((!a||a>t.length)&&(a=t.length),wf(r)||(r=!1),UK(t[0])){for(i=new Array(a),n=0;ne.length-1)return e[e.length-1];var t=r%1;return t*e[Math.ceil(r)]+(1-t)*e[Math.floor(r)]}});var rM=J((Zye,eM)=>{"use strict";var Kw=(c0(),Xe(f0)),$g=Kw.mod,GK=Kw.modHalf,Mf=Math.PI,eo=2*Mf;function VK(e){return e/180*Mf}function XK(e){return e/Mf*180}function Kg(e){return Math.abs(e[1]-e[0])>eo-1e-14}function jw(e,r){return GK(r-e,eo)}function WK(e,r){return Math.abs(jw(e,r))}function Qw(e,r){if(Kg(r))return!0;var t,a;r[0]a&&(a+=eo);var n=$g(e,eo),i=n+eo;return n>=t&&n<=a||i>=t&&i<=a}function ZK(e,r,t,a){if(!Qw(r,a))return!1;var n,i;return t[0]=n&&e<=i}function jg(e,r,t,a,n,i,l){n=n||0,i=i||0;var o=Kg([t,a]),s,u,f,c,d;o?(s=0,u=Mf,f=eo):t{"use strict";as.isLeftAnchor=function(r){return r.xanchor==="left"||r.xanchor==="auto"&&r.x<=1/3};as.isCenterAnchor=function(r){return r.xanchor==="center"||r.xanchor==="auto"&&r.x>1/3&&r.x<2/3};as.isRightAnchor=function(r){return r.xanchor==="right"||r.xanchor==="auto"&&r.x>=2/3};as.isTopAnchor=function(r){return r.yanchor==="top"||r.yanchor==="auto"&&r.y>=2/3};as.isMiddleAnchor=function(r){return r.yanchor==="middle"||r.yanchor==="auto"&&r.y>1/3&&r.y<2/3};as.isBottomAnchor=function(r){return r.yanchor==="bottom"||r.yanchor==="auto"&&r.y<=1/3}});var iM=J(ns=>{"use strict";var Qg=(c0(),Xe(f0)).mod;ns.segmentsIntersect=nM;function nM(e,r,t,a,n,i,l,o){var s=t-e,u=n-e,f=l-n,c=a-r,d=i-r,h=o-i,p=s*h-f*c;if(p===0)return null;var g=(u*h-f*d)/p,y=(u*c-s*d)/p;return y<0||y>1||g<0||g>1?null:{x:e+s*g,y:r+c*g}}ns.segmentDistance=function(r,t,a,n,i,l,o,s){if(nM(r,t,a,n,i,l,o,s))return 0;var u=a-r,f=n-t,c=o-i,d=s-l,h=u*u+f*f,p=c*c+d*d,g=Math.min(q2(u,f,h,i-r,l-t),q2(u,f,h,o-r,s-t),q2(c,d,p,r-i,t-l),q2(c,d,p,a-i,n-l));return Math.sqrt(g)};function q2(e,r,t,a,n){var i=a*e+n*r;if(i<0)return a*a+n*n;if(i>t){var l=a-e,o=n-r;return l*l+o*o}else{var s=a*r-n*e;return s*s/t}}var E2,ey,aM;ns.getTextLocation=function(r,t,a,n){if((r!==ey||n!==aM)&&(E2={},ey=r,aM=n),E2[a])return E2[a];var i=r.getPointAtLength(Qg(a-n/2,t)),l=r.getPointAtLength(Qg(a+n/2,t)),o=Math.atan((l.y-i.y)/(l.x-i.x)),s=r.getPointAtLength(Qg(a,t)),u=(s.x*4+i.x+l.x)/6,f=(s.y*4+i.y+l.y)/6,c={x:u,y:f,theta:o};return E2[a]=c,c};ns.clearLocationCache=function(){ey=null};ns.getVisibleSegment=function(r,t,a){var n=t.left,i=t.right,l=t.top,o=t.bottom,s=0,u=r.getTotalLength(),f=u,c,d;function h(g){var y=r.getPointAtLength(g);g===0?c=y:g===u&&(d=y);var x=y.xi?y.x-i:0,w=y.yo?y.y-o:0;return Math.sqrt(x*x+w*w)}for(var p=h(s);p;){if(s+=p+a,s>f)return;p=h(s)}for(p=h(f);p;){if(f-=p+a,s>f)return;p=h(f)}return{min:s,max:f,len:f-s,total:u,isClosed:s===0&&f===u&&Math.abs(c.x-d.x)<.1&&Math.abs(c.y-d.y)<.1}};ns.findPointOnPath=function(r,t,a,n){n=n||{};for(var i=n.pathLength||r.getTotalLength(),l=n.tolerance||.001,o=n.iterationLimit||30,s=r.getPointAtLength(0)[a]>r.getPointAtLength(i)[a]?-1:1,u=0,f=0,c=i,d,h,p;u0?c=d:f=d,u++}return h}});var P2=J(Tf=>{"use strict";var Ml={};Tf.throttle=function(r,t,a){var n=Ml[r],i=Date.now();if(!n){for(var l in Ml)Ml[l].tsn.ts+t){o();return}n.timer=setTimeout(function(){o(),n.timer=null},t)};Tf.done=function(e){var r=Ml[e];return!r||!r.timer?Promise.resolve():new Promise(function(t){var a=r.onDone;r.onDone=function(){a&&a(),t(),r.onDone=null}})};Tf.clear=function(e){if(e)lM(Ml[e]),delete Ml[e];else for(var r in Ml)Tf.clear(r)};function lM(e){e&&e.timer!==null&&(clearTimeout(e.timer),e.timer=null)}});var sM=J((jye,oM)=>{"use strict";oM.exports=function(r){r._clearResponsive&&(r._clearResponsive(),delete r._clearResponsive)}});var uM=J((Qye,R2)=>{"use strict";R2.exports=ry;R2.exports.isMobile=ry;R2.exports.default=ry;var jK=/(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|redmi|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,QK=/CrOS/,ej=/android|ipad|playbook|silk/i;function ry(e){e||(e={});let r=e.ua;if(!r&&typeof navigator!="undefined"&&(r=navigator.userAgent),r&&r.headers&&typeof r.headers["user-agent"]=="string"&&(r=r.headers["user-agent"]),typeof r!="string")return!1;let t=jK.test(r)&&!QK.test(r)||!!e.tablet&&ej.test(r);return!t&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&r.indexOf("Macintosh")!==-1&&r.indexOf("Safari")!==-1&&(t=!0),t}});var cM=J((e3e,fM)=>{"use strict";var rj=Zr(),tj=uM();fM.exports=function(r){var t;if(r&&r.hasOwnProperty("userAgent")?t=r.userAgent:t=aj(),typeof t!="string")return!0;var a=tj({ua:{headers:{"user-agent":t}},tablet:!0,featureDetect:!1});if(!a)for(var n=t.split(" "),i=1;i-1;o--){var s=n[o];if(s.slice(0,8)==="Version/"){var u=s.slice(8).split(".")[0];if(rj(u)&&(u=+u),u>=13)return!0}}}return a};function aj(){var e;return typeof navigator!="undefined"&&(e=navigator.userAgent),e&&e.headers&&typeof e.headers["user-agent"]=="string"&&(e=e.headers["user-agent"]),e}});var dM=J((r3e,vM)=>{"use strict";var nj=Or();vM.exports=function(r,t,a){var n=r.selectAll("g."+a.replace(/\s/g,".")).data(t,function(l){return l[0].trace.uid});n.exit().remove(),n.enter().append("g").attr("class",a),n.order();var i=r.classed("rangeplot")?"nodeRangePlot3":"node3";return n.each(function(l){l[0][i]=nj.select(this)}),n}});var pM=J((t3e,hM)=>{"use strict";var ij=kr();hM.exports=function(r,t){for(var a=r._context.locale,n=0;n<2;n++){for(var i=r._context.locales,l=0;l<2;l++){var o=(i[a]||{}).dictionary;if(o){var s=o[t];if(s)return s}i=ij.localeRegistry}var u=a.split("-")[0];if(u===a)break;a=u}return t}});var gM=J((a3e,mM)=>{"use strict";mM.exports=function(r){for(var t={},a=[],n=0,i=0;i{"use strict";yM.exports=function(r){for(var t=sj(r)?oj:lj,a=[],n=0;n{"use strict";xM.exports=function(r,t){if(!t)return r;var a=1/Math.abs(t),n=a>1?(a*r+a*t)/a:r+t,i=String(n).length;if(i>16){var l=String(t).length,o=String(r).length;if(i>=o+l){var s=parseFloat(n).toPrecision(12);s.indexOf("e+")===-1&&(n=+s)}}return n}});var MM={};Nt(MM,{default:()=>cj});function fj(e){return typeof e=="string"&&(e=e.replace(uj,"")),(0,wM.default)(e)?Number(e):void 0}var wM,uj,cj,TM=Ft(()=>{"use strict";wM=Q6(Zr());ca();uj=/^['"%,$#\s']+|[, ]|['"%,$#\s']+$/g;cj=fj});var CM=J((o3e,kM)=>{"use strict";var vj=/<[^>]*>/g,dj=/[\p{S}\p{P}]/gu,hj=/[\p{Cc}\p{Cf}\uFE00-\uFE0F\u20E3]/gu,pj=/�/g,mj=/\s+/g,z2="-",AM=z2.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),gj=new RegExp(AM+"{3,}","g"),yj=new RegExp(AM+"$","g"),bj=60;function xj(e){return typeof e.toWellFormed=="function"?e.toWellFormed():new TextDecoder().decode(new TextEncoder().encode(e))}kM.exports=function(r,t=bj){var a=xj(r!=null?r:"").replace(pj,"").replace(vj," ").replace(dj,n=>n===z2?n:"").toLowerCase().trim().replace(mj,z2).replace(hj,"").replace(gj,z2);return a.length<=t?a:Array.from(a).slice(0,t).join("").replace(yj,"")}});var Fe=J((s3e,BM)=>{"use strict";var Af=Or(),_j=s0().utcFormat,wj=Wp().format,PM=Zr(),RM=(ca(),Xe(ga)),zM=RM.FP_SAFE,Mj=-zM,SM=RM.BADNUM,se={};BM.exports=se;se.adjustFormat=function(r){if(!r||/^\d[.]\df/.test(r)||/[.]\d%/.test(r))return r;if(r==="0.f")return"~f";if(/^\d%/.test(r))return"~%";if(/^\ds/.test(r))return"~s";var t=(r.match(/^[+\-( ]?/)||[""])[0],a=r.slice(t.length);return!/^[~,.0$#]/.test(a)&&/[&fps]/.test(a)?t+"~"+a:r};var DM={};se.warnBadFormat=function(e){var r=String(e);DM[r]||(DM[r]=1,se.warn('encountered bad format: "'+r+'"'))};se.noFormat=function(e){return String(e)};se.numberFormat=function(e){var r;try{r=wj(se.adjustFormat(e))}catch(t){return se.warnBadFormat(e),se.noFormat}return r};se.nestedProperty=Hv();se.keyedContainer=w_();se.relativeAttr=T_();se.isPlainObject=Uo();se.toLogRange=Yv();se.relinkPrivateKeys=S_();var ro=xn();se.isArrayBuffer=ro.isArrayBuffer;se.isTypedArray=ro.isTypedArray;se.isArrayOrTypedArray=ro.isArrayOrTypedArray;se.isArray1D=ro.isArray1D;se.ensureArray=ro.ensureArray;se.concat=ro.concat;se.maxRowLength=ro.maxRowLength;se.minRowLength=ro.minRowLength;var FM=(c0(),Xe(f0));se.mod=FM.mod;se.modHalf=FM.modHalf;var to=J8();se.valObjectMeta=to.valObjectMeta;se.coerce=to.coerce;se.coerce2=to.coerce2;se.coerceFont=to.coerceFont;se.coercePattern=to.coercePattern;se.coerceHoverinfo=to.coerceHoverinfo;se.coerceSelectionMarkerOpacity=to.coerceSelectionMarkerOpacity;se.validate=to.validate;var Pn=Zw();se.dateTime2ms=Pn.dateTime2ms;se.isDateTime=Pn.isDateTime;se.ms2DateTime=Pn.ms2DateTime;se.ms2DateTimeLocal=Pn.ms2DateTimeLocal;se.cleanDate=Pn.cleanDate;se.isJSDate=Pn.isJSDate;se.formatDate=Pn.formatDate;se.incrementMonth=Pn.incrementMonth;se.dateTick0=Pn.dateTick0;se.dfltRange=Pn.dfltRange;se.findExactDates=Pn.findExactDates;se.MIN_MS=Pn.MIN_MS;se.MAX_MS=Pn.MAX_MS;var is=Wg();se.findBin=is.findBin;se.sorterAsc=is.sorterAsc;se.sorterDes=is.sorterDes;se.distinctVals=is.distinctVals;se.roundUp=is.roundUp;se.sort=is.sort;se.findIndexOfMin=is.findIndexOfMin;se.sortObjectKeys=(Jg(),Xe(Zg)).default;var Tl=$w();se.aggNums=Tl.aggNums;se.len=Tl.len;se.mean=Tl.mean;se.geometricMean=Tl.geometricMean;se.median=Tl.median;se.midRange=Tl.midRange;se.variance=Tl.variance;se.stdev=Tl.stdev;se.interp=Tl.interp;var Mi=_2();se.init2dArray=Mi.init2dArray;se.transposeRagged=Mi.transposeRagged;se.dot=Mi.dot;se.translationMatrix=Mi.translationMatrix;se.rotationMatrix=Mi.rotationMatrix;se.rotationXYMatrix=Mi.rotationXYMatrix;se.apply3DTransform=Mi.apply3DTransform;se.apply2DTransform=Mi.apply2DTransform;se.apply2DTransform2=Mi.apply2DTransform2;se.convertCssMatrix=Mi.convertCssMatrix;se.inverseTransformMatrix=Mi.inverseTransformMatrix;var Qi=rM();se.deg2rad=Qi.deg2rad;se.rad2deg=Qi.rad2deg;se.angleDelta=Qi.angleDelta;se.angleDist=Qi.angleDist;se.isFullCircle=Qi.isFullCircle;se.isAngleInsideSector=Qi.isAngleInsideSector;se.isPtInsideSector=Qi.isPtInsideSector;se.pathArc=Qi.pathArc;se.pathSector=Qi.pathSector;se.pathAnnulus=Qi.pathAnnulus;var L0=tM();se.isLeftAnchor=L0.isLeftAnchor;se.isCenterAnchor=L0.isCenterAnchor;se.isRightAnchor=L0.isRightAnchor;se.isTopAnchor=L0.isTopAnchor;se.isMiddleAnchor=L0.isMiddleAnchor;se.isBottomAnchor=L0.isBottomAnchor;var q0=iM();se.segmentsIntersect=q0.segmentsIntersect;se.segmentDistance=q0.segmentDistance;se.getTextLocation=q0.getTextLocation;se.clearLocationCache=q0.clearLocationCache;se.getVisibleSegment=q0.getVisibleSegment;se.findPointOnPath=q0.findPointOnPath;var I2=va();se.extendFlat=I2.extendFlat;se.extendDeep=I2.extendDeep;se.extendDeepAll=I2.extendDeepAll;se.extendDeepNoArrays=I2.extendDeepNoArrays;var ty=Wl();se.log=ty.log;se.warn=ty.warn;se.error=ty.error;var Tj=(w0(),Xe(gf));se.counterRegex=Tj.counter;var ay=P2();se.throttle=ay.throttle;se.throttleDone=ay.done;se.clearThrottle=ay.clear;var Ti=yf();se.getGraphDiv=Ti.getGraphDiv;se.isPlotDiv=Ti.isPlotDiv;se.removeElement=Ti.removeElement;se.addStyleRule=Ti.addStyleRule;se.addRelatedStyleRule=Ti.addRelatedStyleRule;se.deleteRelatedStyleRule=Ti.deleteRelatedStyleRule;se.setStyleOnHover=Ti.setStyleOnHover;se.getFullTransformMatrix=Ti.getFullTransformMatrix;se.getElementTransformMatrix=Ti.getElementTransformMatrix;se.getElementAndAncestors=Ti.getElementAndAncestors;se.equalDomRects=Ti.equalDomRects;se.clearResponsive=sM();se.preserveDrawingBuffer=cM();se.makeTraceGroups=dM();se._=pM();se.notifier=kg();se.filterUnique=gM();se.filterVisible=bM();se.pushUnique=zg();se.increment=_M();se.cleanNumber=(TM(),Xe(MM)).default;se.slugify=CM();se.ensureNumber=function(r){return PM(r)?(r=Number(r),r>zM||r=r?!1:PM(e)&&e>=0&&e%1===0};se.noop=x2();se.identity=Vg();se.repeat=function(e,r){for(var t=new Array(r),a=0;at?Math.max(t,Math.min(r,e)):Math.max(r,Math.min(t,e))};se.bBoxIntersect=function(e,r,t){return t=t||0,e.left<=r.right+t&&r.left<=e.right+t&&e.top<=r.bottom+t&&r.top<=e.bottom+t};se.simpleMap=function(e,r,t,a,n){for(var i=e.length,l=new Array(i),o=0;o=Math.pow(2,t)?n>10?(se.warn("randstr failed uniqueness"),l):e(r,t,a,(n||0)+1):l};se.OptionControl=function(e,r){e||(e={}),r||(r="opt");var t={};return t.optionList=[],t._newoption=function(a){a[r]=e,t[a.name]=a,t.optionList.push(a)},t["_"+r]=e,t};se.smooth=function(e,r){if(r=Math.round(r)||0,r<2)return e;var t=e.length,a=2*t,n=2*r-1,i=new Array(n),l=new Array(t),o,s,u,f;for(o=0;o=a&&(u-=a*Math.floor(u/a)),u<0?u=-1-u:u>=t&&(u=a-1-u),f+=e[u]*i[s];l[o]=f}return l};se.syncOrAsync=function(e,r,t){var a,n;function i(){return se.syncOrAsync(e,r,t)}for(;e.length;)if(n=e.splice(0,1)[0],a=n(r),a&&a.then)return a.then(i);return t&&t(r)};se.stripTrailingSlash=function(e){return e.slice(-1)==="/"?e.slice(0,-1):e};se.noneOrAll=function(e,r,t){if(e){var a=!1,n=!0,i,l;for(i=0;i0?n:0})};se.fillArray=function(e,r,t,a){if(a=a||se.identity,se.isArrayOrTypedArray(e))for(var n=0;nCj.test(window.navigator.userAgent);var Sj=/Firefox\/(\d+)\.\d+/;se.getFirefoxVersion=function(){var e=Sj.exec(window.navigator.userAgent);if(e&&e.length===2){var r=parseInt(e[1]);if(!isNaN(r))return r}return null};se.isD3Selection=function(e){return e instanceof Af.selection};se.ensureSingle=function(e,r,t,a){var n=e.select(r+(t?"."+t:""));if(n.size())return n;var i=e.append(r);return t&&i.classed(t,!0),a&&i.call(a),i};se.ensureSingleById=function(e,r,t,a){var n=e.select(r+"#"+t);if(n.size())return n;var i=e.append(r).attr("id",t);return a&&i.call(a),i};se.objectFromPath=function(e,r){for(var t=e.split("."),a,n=a={},i=0;i1?n+l[1]:"";if(i&&(l.length>1||o.length>4||t))for(;a.test(o);)o=o.replace(a,"$1"+i+"$2");return o+s};se.TEMPLATE_STRING_REGEX=/%{([^\s%{}:]*)([:|\|][^}]*)?}/g;var IM=/^\w*$/;se.templateString=function(e,r){var t={};return e.replace(se.TEMPLATE_STRING_REGEX,function(a,n){var i;return IM.test(n)?i=r[n]:(t[n]=t[n]||se.nestedProperty(r,n).get,i=t[n](!0)),i!==void 0?i:""})};var qj={max:10,count:0,name:"hovertemplate"};se.hovertemplateString=e=>ny(St(ut({},e),{opts:qj}));var Ej={max:10,count:0,name:"texttemplate"};se.texttemplateString=e=>ny(St(ut({},e),{opts:Ej}));var Pj=/^(\S+)([\*\/])(-?\d+(\.\d+)?)$/;function Rj(e){var r=e.match(Pj);return r?{key:r[1],op:r[2],number:Number(r[3])}:{key:e,op:null,number:null}}var zj={max:10,count:0,name:"texttemplate",parseMultDiv:!0};se.texttemplateStringForShapes=e=>ny(St(ut({},e),{opts:zj}));var LM=/^[:|\|]/;function ny({data:e=[],locale:r,fallback:t,labels:a={},opts:n,template:i}){return i.replace(se.TEMPLATE_STRING_REGEX,(l,o,s)=>{let u=["xother","yother"].includes(o),f=["_xother","_yother"].includes(o),c=["_xother_","_yother_"].includes(o),d=["xother_","yother_"].includes(o),h=u||f||d||c;(f||c)&&(o=o.substring(1)),(d||c)&&(o=o.substring(0,o.length-1));let p=null,g=null;if(n.parseMultDiv){var y=Rj(o);o=y.key,p=y.op,g=y.number}let x;if(h){if(a[o]===void 0)return"";x=a[o]}else for(let T of e)if(T){if(T.hasOwnProperty(o)){x=T[o];break}if(IM.test(o)||(x=se.nestedProperty(T,o).get(!0)),x!==void 0)break}if(x===void 0){let{count:T,max:S,name:C}=n,L=t===!1?l:t;return T=N2&&l<=qM,u=o>=N2&&o<=qM;if(s&&(a=10*a+l-N2),u&&(n=10*n+o-N2),!s||!u){if(a!==n)return a-n;if(l!==o)return l-o}}return n-a};var D0=2e9;se.seedPseudoRandom=function(){D0=2e9};se.pseudoRandom=function(){var e=D0;return D0=(69069*D0+1)%4294967296,Math.abs(D0-e)<429496729?se.pseudoRandom():D0/4294967296};se.fillText=function(e,r,t){var a=Array.isArray(t)?function(l){t.push(l)}:function(l){t.text=l},n=se.extractOption(e,r,"htx","hovertext");if(se.isValidTextValue(n))return a(n);var i=se.extractOption(e,r,"tx","text");if(se.isValidTextValue(i))return a(i)};se.isValidTextValue=function(e){return e||e===0};se.formatPercent=function(e,r){r=r||0;for(var t=(Math.round(100*e*Math.pow(10,r))*Math.pow(.1,r)).toFixed(r)+"%",a=0;a1&&(u=1):u=0,se.strTranslate(n-u*(t+l),i-u*(a+o))+se.strScale(u)+(s?"rotate("+s+(r?"":" "+t+" "+a)+")":"")};se.setTransormAndDisplay=function(e,r){e.attr("transform",se.getTextTransform(r)),e.style("display",r.scale?null:"none")};se.ensureUniformFontSize=function(e,r){var t=se.extendFlat({},r);return t.size=Math.max(r.size,e._fullLayout.uniformtext.minsize||0),t};se.join2=function(e,r,t){var a=e.length;return a>1?e.slice(0,-1).join(r)+t+e[a-1]:e.join(r)};se.bigFont=function(e){return Math.round(1.2*e)};var EM=se.getFirefoxVersion(),Fj=EM!==null&&EM<86;se.getPositionFromD3Event=function(){return Fj?[Af.event.layerX,Af.event.layerY]:[Af.event.offsetX,Af.event.offsetY]}});var YM=J(()=>{"use strict";var Nj=Fe(),HM={"X,X div":'direction:ltr;font-family:"Open Sans",verdana,arial,sans-serif;margin:0;padding:0;border: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 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:focus-within .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-group a":"display:grid;place-content:center;","X .modebar-btn":"position:relative;font-size:16px;padding:3px 4px;height:22px;cursor:pointer;line-height:normal;box-sizing:border-box;border:none;background:rgba(0,0,0,0);","X .modebar-btn svg":"position:relative;","X .modebar-btn:focus-visible":"outline:1px solid #000;outline-offset:1px;border-radius:3px;","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;","X .plotly-cloud-dialog":'font-family:"Open Sans",verdana,arial,sans-serif;position:absolute;top:0;left:0;width:100%;height:100%;z-index:1001;display:flex;align-items:center;justify-content:center;background-color:rgba(0,0,0,.4);',"X .plotly-cloud-dialog .plotly-cloud-dialog-box":"box-sizing:border-box;min-width:300px;max-width:420px;padding:20px 24px;background-color:#fff;border:1px solid #e0e2e5;border-radius:4px;box-shadow:0 4px 16px rgba(0,0,0,.25);font-size:13px;color:#2a3f5f;","X .plotly-cloud-dialog .plotly-cloud-dialog-title":"font-size:16px;font-weight:bold;margin-bottom:12px;","X .plotly-cloud-dialog .plotly-cloud-dialog-message":"line-height:1.5;overflow-wrap:break-word;word-wrap:break-word;","X .plotly-cloud-dialog .plotly-cloud-dialog-message--hostname":"font-weight:bold;text-decoration:underline;","X .plotly-cloud-dialog .plotly-cloud-dialog-message--account":"margin-top:16px;padding:8px;border-radius:3px;font-size:.9em;background-color:#edf1f8;","X .plotly-cloud-dialog .plotly-cloud-dialog-buttons":"display:flex;justify-content:flex-end;margin-top:20px;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn":"font-family:inherit;font-size:13px;padding:7px 16px;margin-left:8px;border-radius:3px;border:1px solid rgba(0,0,0,0);cursor:pointer;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn:focus-visible":"outline:2px solid #447adb;outline-offset:1px;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn--cancel":"background-color:#f3f3f3;margin-left:auto;color:#777;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn--cancel:hover":"background-color:#e0e2e5;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn--confirm":"background-color:#447adb;color:#fff;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn--confirm:hover":"background-color:#1d3b84;",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(iy in HM)OM=iy.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier"),Nj.addStyleRule(OM,HM[iy]);var OM,iy});var ly=J((v3e,UM)=>{UM.exports=!0});var sy=J((d3e,GM)=>{"use strict";var Ij=ly(),oy;typeof window.matchMedia=="function"?oy=!window.matchMedia("(hover: none)").matches:oy=Ij;GM.exports=oy});var O2=J((h3e,uy)=>{"use strict";var E0=typeof Reflect=="object"?Reflect:null,VM=E0&&typeof E0.apply=="function"?E0.apply:function(r,t,a){return Function.prototype.apply.call(r,t,a)},B2;E0&&typeof E0.ownKeys=="function"?B2=E0.ownKeys:Object.getOwnPropertySymbols?B2=function(r){return Object.getOwnPropertyNames(r).concat(Object.getOwnPropertySymbols(r))}:B2=function(r){return Object.getOwnPropertyNames(r)};function Bj(e){console&&console.warn&&console.warn(e)}var WM=Number.isNaN||function(r){return r!==r};function _t(){_t.init.call(this)}uy.exports=_t;uy.exports.once=Uj;_t.EventEmitter=_t;_t.prototype._events=void 0;_t.prototype._eventsCount=0;_t.prototype._maxListeners=void 0;var XM=10;function H2(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(_t,"defaultMaxListeners",{enumerable:!0,get:function(){return XM},set:function(e){if(typeof e!="number"||e<0||WM(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");XM=e}});_t.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};_t.prototype.setMaxListeners=function(r){if(typeof r!="number"||r<0||WM(r))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+r+".");return this._maxListeners=r,this};function ZM(e){return e._maxListeners===void 0?_t.defaultMaxListeners:e._maxListeners}_t.prototype.getMaxListeners=function(){return ZM(this)};_t.prototype.emit=function(r){for(var t=[],a=1;a0&&(l=t[0]),l instanceof Error)throw l;var o=new Error("Unhandled error."+(l?" ("+l.message+")":""));throw o.context=l,o}var s=i[r];if(s===void 0)return!1;if(typeof s=="function")VM(s,this,t);else for(var u=s.length,f=QM(s,u),a=0;a0&&l.length>n&&!l.warned){l.warned=!0;var o=new Error("Possible EventEmitter memory leak detected. "+l.length+" "+String(r)+" listeners added. Use emitter.setMaxListeners() to increase limit");o.name="MaxListenersExceededWarning",o.emitter=e,o.type=r,o.count=l.length,Bj(o)}return e}_t.prototype.addListener=function(r,t){return JM(this,r,t,!1)};_t.prototype.on=_t.prototype.addListener;_t.prototype.prependListener=function(r,t){return JM(this,r,t,!0)};function Hj(){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 $M(e,r,t){var a={fired:!1,wrapFn:void 0,target:e,type:r,listener:t},n=Hj.bind(a);return n.listener=t,a.wrapFn=n,n}_t.prototype.once=function(r,t){return H2(t),this.on(r,$M(this,r,t)),this};_t.prototype.prependOnceListener=function(r,t){return H2(t),this.prependListener(r,$M(this,r,t)),this};_t.prototype.removeListener=function(r,t){var a,n,i,l,o;if(H2(t),n=this._events,n===void 0)return this;if(a=n[r],a===void 0)return this;if(a===t||a.listener===t)--this._eventsCount===0?this._events=Object.create(null):(delete n[r],n.removeListener&&this.emit("removeListener",r,a.listener||t));else if(typeof a!="function"){for(i=-1,l=a.length-1;l>=0;l--)if(a[l]===t||a[l].listener===t){o=a[l].listener,i=l;break}if(i<0)return this;i===0?a.shift():Oj(a,i),a.length===1&&(n[r]=a[0]),n.removeListener!==void 0&&this.emit("removeListener",r,o||t)}return this};_t.prototype.off=_t.prototype.removeListener;_t.prototype.removeAllListeners=function(r){var t,a,n;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[r]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete a[r]),this;if(arguments.length===0){var i=Object.keys(a),l;for(n=0;n=0;n--)this.removeListener(r,t[n]);return this};function KM(e,r,t){var a=e._events;if(a===void 0)return[];var n=a[r];return n===void 0?[]:typeof n=="function"?t?[n.listener||n]:[n]:t?Yj(n):QM(n,n.length)}_t.prototype.listeners=function(r){return KM(this,r,!0)};_t.prototype.rawListeners=function(r){return KM(this,r,!1)};_t.listenerCount=function(e,r){return typeof e.listenerCount=="function"?e.listenerCount(r):jM.call(e,r)};_t.prototype.listenerCount=jM;function jM(e){var r=this._events;if(r!==void 0){var t=r[e];if(typeof t=="function")return 1;if(t!==void 0)return t.length}return 0}_t.prototype.eventNames=function(){return this._eventsCount>0?B2(this._events):[]};function QM(e,r){for(var t=new Array(r),a=0;a{"use strict";var fy=O2().EventEmitter,Vj={init:function(e){if(e._ev instanceof fy)return e;var r=new fy,t=new fy;return e._ev=r,e._internalEv=t,e.on=r.on.bind(r),e.once=r.once.bind(r),e.removeListener=r.removeListener.bind(r),e.removeAllListeners=r.removeAllListeners.bind(r),e._internalOn=t.on.bind(t),e._internalOnce=t.once.bind(t),e._removeInternalListener=t.removeListener.bind(t),e._removeAllInternalListeners=t.removeAllListeners.bind(t),e.emit=function(a,n){r.emit(a,n),t.emit(a,n)},typeof e.addEventListener=="function"&&e.addEventListener("wheel",()=>{},{passive:!0}),e},triggerHandler:function(e,r,t){var a,n=e._ev;if(!n)return;var i=n._events[r];if(!i)return;function l(s){if(s.listener){if(n.removeListener(r,s.listener),!s.fired)return s.fired=!0,s.listener.apply(n,[t])}else return s.apply(n,[t])}i=Array.isArray(i)?i:[i];var o;for(o=0;o{"use strict";var tT=Fe(),Xj=Xl().dfltConfig;function Wj(e,r){for(var t=[],a,n=0;nXj.queueLength&&(e.undoQueue.queue.shift(),e.undoQueue.index--)};Al.startSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!0,e.undoQueue.beginSequence=!0};Al.stopSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!1,e.undoQueue.beginSequence=!1};Al.undo=function(r){var t,a;if(!(r.undoQueue===void 0||isNaN(r.undoQueue.index)||r.undoQueue.index<=0)){for(r.undoQueue.index--,t=r.undoQueue.queue[r.undoQueue.index],r.undoQueue.inSequence=!0,a=0;a=r.undoQueue.queue.length)){for(t=r.undoQueue.queue[r.undoQueue.index],r.undoQueue.inSequence=!0,a=0;a{"use strict";iT.exports={_isLinkedToArray:"frames_entry",group:{valType:"string"},name:{valType:"string"},traces:{valType:"any"},baseframe:{valType:"string"},data:{valType:"any"},layout:{valType:"any"}}});var z0=J(da=>{"use strict";var jn=kr(),Cf=Fe(),U2=xi(),vy=A0(),Zj=cy(),Jj=bf(),$j=Xl().configAttributes,lT=Ki(),Ai=Cf.extendDeepAll,P0=Cf.isPlainObject,Kj=Cf.isArrayOrTypedArray,G2=Cf.nestedProperty,jj=Cf.valObjectMeta,dy="_isSubplotObj",V2="_isLinkedToArray",Qj="_arrayAttrRegexps",sT="_deprecated",hy=[dy,V2,Qj,sT];da.IS_SUBPLOT_OBJ=dy;da.IS_LINKED_TO_ARRAY=V2;da.DEPRECATED=sT;da.UNDERSCORE_ATTRS=hy;da.get=function(){var e={};return jn.allTypes.forEach(function(r){e[r]=rQ(r)}),{defs:{valObjects:jj,metaKeys:hy.concat(["description","role","editType","impliedEdits"]),editType:{traces:lT.traces,layout:lT.layout},impliedEdits:{}},traces:e,layout:tQ(),frames:aQ(),animation:R0(Jj),config:R0($j)}};da.crawl=function(e,r,t,a){var n=t||0;a=a||"",Object.keys(e).forEach(function(i){var l=e[i];if(hy.indexOf(i)===-1){var o=(a?a+".":"")+i;r(l,i,e,n,o),!da.isValObject(l)&&P0(l)&&i!=="impliedEdits"&&da.crawl(l,r,n+1,o)}})};da.isValObject=function(e){return e&&e.valType!==void 0};da.findArrayAttributes=function(e){var r=[],t=[],a=[],n,i;function l(s,u,f,c){t=t.slice(0,c).concat([u]),a=a.slice(0,c).concat([s&&s._isLinkedToArray]);var d=s&&(s.valType==="data_array"||s.arrayOk===!0)&&!(t[c-1]==="colorbar"&&(u==="ticktext"||u==="tickvals"));d&&o(n,0,"")}function o(s,u,f){var c=s[t[u]],d=f+t[u];if(u===t.length-1)Kj(c)&&r.push(i+d);else if(a[u]){if(Array.isArray(c))for(var h=0;h=i.length)return!1;if(e.dimensions===2){if(t++,r.length===t)return e;var l=r[t];if(!Y2(l))return!1;e=i[n][l]}else e=i[n]}else e=i}}return e}function Y2(e){return e===Math.round(e)&&e>=0}function rQ(e){var r,t;r=jn.modules[e]._module,t=r.basePlotModule;var a={};a.type=null;var n=Ai({},U2),i=Ai({},r.attributes);da.crawl(i,function(s,u,f,c,d){G2(n,d).set(void 0),s===void 0&&G2(i,d).set(void 0)}),Ai(a,n),jn.traceIs(e,"noOpacity")&&delete a.opacity,jn.traceIs(e,"showLegend")||(delete a.showlegend,delete a.legendgroup),jn.traceIs(e,"noHover")&&(delete a.hoverinfo,delete a.hoverlabel),r.selectPoints||delete a.selectedpoints,Ai(a,i),t.attributes&&Ai(a,t.attributes),a.type=e;var l={meta:r.meta||{},categories:r.categories||{},animatable:!!r.animatable,type:e,attributes:R0(a)};if(r.layoutAttributes){var o={};Ai(o,r.layoutAttributes),l.layoutAttributes=R0(o)}return r.animatable||da.crawl(l,function(s){da.isValObject(s)&&"anim"in s&&delete s.anim}),l}function tQ(){var e={},r,t;Ai(e,vy);for(r in jn.subplotsRegistry)if(t=jn.subplotsRegistry[r],!!t.layoutAttributes)if(Array.isArray(t.attr))for(var a=0;a{"use strict";var F0=Fe(),sQ=xi(),ao="templateitemname",py={name:{valType:"string",editType:"none"}};py[ao]={valType:"string",editType:"calc"};ls.templatedArray=function(e,r){return r._isLinkedToArray=e,r.name=py.name,r[ao]=py[ao],r};ls.traceTemplater=function(e){var r={},t,a;for(t in e)a=e[t],Array.isArray(a)&&a.length&&(r[t]=0);function n(i){t=F0.coerce(i,{},sQ,"type");var l={type:t,_template:null};if(t in r){a=e[t];var o=r[t]%a.length;r[t]++,l._template=a[o]}return l}return{newTrace:n}};ls.newContainer=function(e,r,t){var a=e._template,n=a&&(a[r]||t&&a[t]);F0.isPlainObject(n)||(n=null);var i=e[r]={_template:n};return i};ls.arrayTemplater=function(e,r,t){var a=e._template,n=a&&a[cT(r)],i=a&&a[r];(!Array.isArray(i)||!i.length)&&(i=[]);var l={};function o(u){var f={name:u.name,_input:u},c=f[ao]=u[ao];if(!fT(c))return f._template=n,f;for(var d=0;d=a&&(t._input||{})._templateitemname;i&&(n=a);var l=r+"["+n+"]",o;function s(){o={},i&&(o[l]={},o[l][ao]=i)}s();function u(h,p){o[h]=p}function f(h,p){i?F0.nestedProperty(o[l],h).set(p):o[l+"."+h]=p}function c(){var h=o;return s(),h}function d(h,p){h&&f(h,p);var g=c();for(var y in g)F0.nestedProperty(e,y).set(g[y])}return{modifyBase:u,modifyItem:f,getUpdateObj:c,applyUpdate:d}}});var xa={};Nt(xa,{AX_ID_PATTERN:()=>dQ,AX_NAME_PATTERN:()=>hQ,DFLTRANGEX:()=>wQ,DFLTRANGEY:()=>MQ,DRAGGERSIZE:()=>xQ,HOUR_PATTERN:()=>mQ,MINDRAG:()=>yQ,MINZOOM:()=>bQ,REDRAWDELAY:()=>_Q,SUBPLOT_PATTERN:()=>pQ,WEEKDAY_PATTERN:()=>gQ,attrRegex:()=>fQ,clipOnAxisFalseQuery:()=>AQ,idRegex:()=>uQ,layerValue2layerClass:()=>kQ,traceLayerClasses:()=>TQ,xAxisMatch:()=>cQ,yAxisMatch:()=>vQ,zindexSeparator:()=>CQ});var uQ,fQ,cQ,vQ,dQ,hQ,pQ,mQ,gQ,yQ,bQ,xQ,_Q,wQ,MQ,TQ,AQ,kQ,CQ,_a=Ft(()=>{"use strict";w0();uQ={x:es("x","( domain)?"),y:es("y","( domain)?")},fQ=es("[xy]axis"),cQ=es("xaxis"),vQ=es("yaxis"),dQ=/^[xyz][0-9]*( domain)?$/,hQ=/^[xyz]axis[0-9]*$/,pQ=/^x([0-9]*)y([0-9]*)$/,mQ="hour",gQ="day of week",yQ=8,bQ=20,xQ=20,_Q=50,wQ=[-1,6],MQ=[-1,4],TQ=["imagelayer","heatmaplayer","contourcarpetlayer","contourlayer","funnellayer","waterfalllayer","barlayer","carpetlayer","violinlayer","boxlayer","ohlclayer","scattercarpetlayer","scatterlayer"],AQ=[".scatterlayer",".barlayer",".funnellayer",".waterfalllayer"],kQ={"above traces":"above","below traces":"below"},CQ="z"});var ha=J(Tn=>{"use strict";var SQ=kr(),my=(_a(),Xe(xa));Tn.id2name=function(r){if(!(typeof r!="string"||!r.match(my.AX_ID_PATTERN))){var t=r.split(" ")[0].slice(1);return t==="1"&&(t=""),r.charAt(0)+"axis"+t}};Tn.name2id=function(r){if(r.match(my.AX_NAME_PATTERN)){var t=r.slice(5);return t==="1"&&(t=""),r.charAt(0)+t}};Tn.cleanId=function(r,t,a){var n=/( domain)$/.test(r);if(!(typeof r!="string"||!r.match(my.AX_ID_PATTERN))&&!(t&&r.charAt(0)!==t)&&!(n&&!a)){var i=r.split(" ")[0].slice(1).replace(/^0+/,"");return i==="1"&&(i=""),r.charAt(0)+i+(n&&a?" domain":"")}};Tn.list=function(e,r,t){var a=e._fullLayout;if(!a)return[];var n=Tn.listIds(e,r),i=new Array(n.length),l;for(l=0;la?1:-1:+(e.slice(1)||1)-+(r.slice(1)||1)};Tn.ref2id=function(e){return/^[xyz]/.test(e)?e.split(" ")[0]:!1};function vT(e,r){if(r&&r.length){for(var t=0;t{"use strict";function DQ(e){var r=e._fullLayout._zoomlayer;r&&r.selectAll(".outline-controllers").remove()}function LQ(e){var r=e._fullLayout._zoomlayer;r&&r.selectAll(".select-outline").remove(),e._fullLayout._outlining=!1}dT.exports={clearOutlineControllers:DQ,clearOutline:LQ}});var X2=J((M3e,hT)=>{"use strict";hT.exports={scattermode:{valType:"enumerated",values:["group","overlay"],dflt:"overlay",editType:"calc"},scattergap:{valType:"number",min:0,max:1,editType:"calc"}}});var gy=J(Z2=>{"use strict";var W2=kr(),T3e=(_a(),Xe(xa)).SUBPLOT_PATTERN;Z2.getSubplotCalcData=function(e,r,t){var a=W2.subplotsRegistry[r];if(!a)return[];for(var n=a.attr,i=[],l=0;l{"use strict";var qQ=kr(),N0=Fe();os.manageCommandObserver=function(e,r,t,a){var n={},i=!0;r&&r._commandObserver&&(n=r._commandObserver),n.cache||(n.cache={}),n.lookupTable={};var l=os.hasSimpleAPICommandBindings(e,t,n.lookupTable);if(r&&r._commandObserver){if(l)return n;if(r._commandObserver.remove)return r._commandObserver.remove(),r._commandObserver=null,n}if(l){pT(e,l,n.cache),n.check=function(){if(i){var f=pT(e,l,n.cache);return f.changed&&a&&n.lookupTable[f.value]!==void 0&&(n.disable(),Promise.resolve(a({value:f.value,type:l.type,prop:l.prop,traces:l.traces,index:n.lookupTable[f.value]})).then(n.enable,n.enable)),f.changed}};for(var o=["plotly_relayout","plotly_redraw","plotly_restyle","plotly_update","plotly_animatingframe","plotly_afterplot"],s=0;s0?".":"")+n;N0.isPlainObject(i)?yy(i,r,l,a+1):r(l,n,i)}})}});var na=J((S3e,ST)=>{"use strict";var C3e=Or(),PQ=s0().timeFormatLocale,RQ=Wp().formatLocale,Sf=Zr(),zQ=Jp(),FQ=Xu().version,$r=kr(),NQ=z0(),IQ=yt(),vr=Fe(),BQ=Nr(),bT=(ca(),Xe(ga)).BADNUM,An=ha(),HQ=no().clearOutline,OQ=X2(),by=bf(),YQ=cy(),UQ=gy().getModuleCalcData,xT=vr.relinkPrivateKeys,ss=vr._,rr=ST.exports={};vr.extendFlat(rr,$r);rr.attributes=xi();rr.attributes.type.values=rr.allTypes;rr.fontAttrs=Ia();rr.layoutAttributes=A0();var $2=yT();rr.executeAPICommand=$2.executeAPICommand;rr.computeAPICommandBindings=$2.computeAPICommandBindings;rr.manageCommandObserver=$2.manageCommandObserver;rr.hasSimpleAPICommandBindings=$2.hasSimpleAPICommandBindings;rr.redrawText=function(e){return e=vr.getGraphDiv(e),new Promise(function(r){setTimeout(function(){e._fullLayout&&($r.getComponentMethod("annotations","draw")(e),$r.getComponentMethod("legend","draw")(e),$r.getComponentMethod("colorbar","draw")(e),r(rr.previousPromises(e)))},300)})};rr.resize=function(e){e=vr.getGraphDiv(e);var r,t=new Promise(function(a,n){(!e||vr.isHidden(e))&&n(new Error("Resize must be passed a displayed plot div element.")),e._redrawTimer&&clearTimeout(e._redrawTimer),e._resolveResize&&(r=e._resolveResize),e._resolveResize=a,e._redrawTimer=setTimeout(function(){if(!e.layout||e.layout.width&&e.layout.height||vr.isHidden(e)){a(e);return}delete e.layout.width,delete e.layout.height;var i=e.changed;e.autoplay=!0,$r.call("relayout",e,{autosize:!0}).then(function(){e.changed=i,e._resolveResize===a&&(delete e._resolveResize,a(e))})},100)});return r&&r(t),t};rr.previousPromises=function(e){if((e._promises||[]).length)return Promise.all(e._promises).then(function(){e._promises=[]})};rr.sendDataToCloud=function(e,r){e.emit("plotly_beforeexport");let t=new URL(r).origin;var a=rr.graphJson(e,!1,"object");a.version=FQ;var n=new URL(r);n.searchParams.set("origin",window.location.origin);var i=window.open(n.href,"_blank");if(!i){console.error("Unable to open Plotly Cloud (the popup may have been blocked)"),e.emit("plotly_exportfail");return}var l=function(o){o.origin===t&&o.data&&o.data.type==="CHART_AUTH_SUCCESS"&&(i.postMessage({type:"chart",chart:a},t),window.removeEventListener("message",l),e.emit("plotly_afterexport"))};return window.addEventListener("message",l),!1};var GQ=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],VQ=["year","month","dayMonth","dayMonthYear"];rr.supplyDefaults=function(e,r){var t=r&&r.skipUpdateCalc,a=e._fullLayout||{};if(a._skipDefaults){delete a._skipDefaults;return}var n=e._fullLayout={},i=e.layout||{},l=e._fullData||[],o=e._fullData=[],s=e.data||[],u=e.calcdata||[],f=e._context||{},c;e._transitionData||rr.createTransitionData(e),n._dfltTitle={plot:ss(e,"Click to enter Plot title"),subtitle:ss(e,"Click to enter Plot subtitle"),x:ss(e,"Click to enter X axis title"),y:ss(e,"Click to enter Y axis title"),colorbar:ss(e,"Click to enter Colorscale title"),annotation:ss(e,"new text")},n._traceWord=ss(e,"trace");var d=_T(e,GQ);if(a._initialAutoSizeIsDone){var h=a.width,p=a.height;rr.supplyLayoutGlobalDefaults(i,n,d),i.width||(n.width=h),i.height||(n.height=p),rr.sanitizeMargins(n)}else{rr.supplyLayoutGlobalDefaults(i,n,d);var g=!i.width||!i.height,y=n.autosize,x=f.autosizable,w=g&&(y||x);w?rr.plotAutoSize(e,i,n):g&&rr.sanitizeMargins(n),!y&&g&&(i.width=n.width,i.height=n.height)}n._d3locale=ZQ(d,n.separators),n._extraFormat=_T(e,VQ),n._initialAutoSizeIsDone=!0,n._dataLength=s.length,n._modules=[],n._visibleModules=[],n._basePlotModules=[];var M=n._subplots=WQ(),b=n._splomAxes={x:{},y:{}},T=n._splomSubplots={};n._splomGridDflt={},n._scatterStackOpts={},n._firstScatter={},n._alignmentOpts={},n._colorAxes={},n._requestRangeslider={},n._traceUids=XQ(l,s),rr.supplyDataDefaults(s,o,i,n);var S=Object.keys(b.x),C=Object.keys(b.y);if(S.length>1&&C.length>1){for($r.getComponentMethod("grid","sizeDefaults")(i,n),c=0;c15&&C.length>15&&n.shapes.length===0&&n.images.length===0,rr.linkSubplots(o,n,l,a),rr.cleanPlot(o,n,l,a);var N=!!(a._has&&a._has("cartesian")),H=!!(n._has&&n._has("cartesian")),B=N,I=H;B&&!I?a._bgLayer.remove():I&&!B&&(n._shouldCreateBgLayer=!0),a._zoomlayer&&!e._dragging&&HQ({_fullLayout:a}),JQ(o,n),xT(n,a),$r.getComponentMethod("colorscale","crossTraceDefaults")(o,n),n._preGUI||(n._preGUI={}),n._tracePreGUI||(n._tracePreGUI={});var V=n._tracePreGUI,O={},U;for(U in V)O[U]="old";for(c=0;c0){var f=1-2*i;l=Math.round(f*l),o=Math.round(f*o)}}var c=rr.layoutAttributes.width.min,d=rr.layoutAttributes.height.min;l1,p=!t.height&&Math.abs(a.height-o)>1;(p||h)&&(h&&(a.width=l),p&&(a.height=o)),r._initialAutoSize||(r._initialAutoSize={width:l,height:o}),rr.sanitizeMargins(a)};rr.supplyLayoutModuleDefaults=function(e,r,t,a){var n=$r.componentsRegistry,i=r._basePlotModules,l,o,s,u=$r.subplotsRegistry.cartesian;for(l in n)s=n[l],s.includeBasePlot&&s.includeBasePlot(e,r);i.length||i.push(u),r._has("cartesian")&&($r.getComponentMethod("grid","contentDefaults")(e,r),u.finalizeSubplots(e,r));for(var f in r._subplots)r._subplots[f].sort(vr.subplotSort);for(o=0;o1&&(t.l/=y,t.r/=y)}if(d){var x=(t.t+t.b)/d;x>1&&(t.t/=x,t.b/=x)}var w=t.xl!==void 0?t.xl:t.x,M=t.xr!==void 0?t.xr:t.x,b=t.yt!==void 0?t.yt:t.y,T=t.yb!==void 0?t.yb:t.y;h[r]={l:{val:w,size:t.l+g},r:{val:M,size:t.r+g},b:{val:T,size:t.b+g},t:{val:b,size:t.t+g}},p[r]=1}if(!a._replotting)return rr.doAutoMargin(e)}};function KQ(e){if("_redrawFromAutoMarginCount"in e._fullLayout)return!1;var r=An.list(e,"",!0);for(var t in r)if(r[t].autoshift||r[t].shift)return!0;return!1}rr.doAutoMargin=function(e){var r=e._fullLayout,t=r.width,a=r.height;r._size||(r._size={}),TT(r);var n=r._size,i=r.margin,l={t:0,b:0,l:0,r:0},o=vr.extendFlat({},n),s=i.l,u=i.r,f=i.t,c=i.b,d=r._pushmargin,h=r._pushmarginIds,p=r.minreducedwidth,g=r.minreducedheight;if(i.autoexpand!==!1){for(var y in d)h[y]||delete d[y];var x=e._fullLayout._reservedMargin;for(var w in x)for(var M in x[w]){var b=x[w][M];l[M]=Math.max(l[M],b)}d.base={l:{val:0,size:s},r:{val:1,size:u},t:{val:1,size:f},b:{val:0,size:c}};for(var T in l){var S=0;for(var C in d)C!=="base"&&Sf(d[C][T].size)&&(S=d[C][T].size>S?d[C][T].size:S);var L=Math.max(0,i[T]-S);l[T]=Math.max(0,l[T]-L)}for(var q in d){var P=d[q].l||{},z=d[q].b||{},N=P.val,H=P.size,B=z.val,I=z.size,V=t-l.r-l.l,O=a-l.t-l.b;for(var U in d){if(Sf(H)&&d[U].r){var W=d[U].r.val,Z=d[U].r.size;if(W>N){var G=(H*W+(Z-V)*N)/(W-N),j=(Z*(1-N)+(H-V)*(1-W))/(W-N);G+j>s+u&&(s=G,u=j)}}if(Sf(I)&&d[U].t){var ie=d[U].t.val,pe=d[U].t.size;if(ie>B){var ve=(I*ie+(pe-O)*B)/(ie-B),Q=(pe*(1-B)+(I-O)*(1-ie))/(ie-B);ve+Q>c+f&&(c=ve,f=Q)}}}}}var we=vr.constrain(t-i.l-i.r,AT,p),le=vr.constrain(a-i.t-i.b,kT,g),Se=Math.max(0,t-we),ce=Math.max(0,a-le);if(Se){var de=(s+u)/Se;de>1&&(s/=de,u/=de)}if(ce){var Ce=(c+f)/ce;Ce>1&&(c/=Ce,f/=Ce)}if(n.l=Math.round(s)+l.l,n.r=Math.round(u)+l.r,n.t=Math.round(f)+l.t,n.b=Math.round(c)+l.b,n.p=Math.round(i.pad),n.w=Math.round(t)-n.l-n.r,n.h=Math.round(a)-n.t-n.b,!r._replotting&&(rr.didMarginChange(o,n)||KQ(e))){"_redrawFromAutoMarginCount"in r?r._redrawFromAutoMarginCount++:r._redrawFromAutoMarginCount=1;var Ie=3*(1+Object.keys(h).length);if(r._redrawFromAutoMarginCount1)return!0}return!1};rr.graphJson=function(e,r=!1,t="json",a=!1,n=!1){(a&&r&&!e._fullData||a&&!r&&!e._fullLayout)&&rr.supplyDefaults(e);var i=a?e._fullData:e.data,l=a?e._fullLayout:e.layout,o=(e._transitionData||{})._frames;function s(c,d){if(typeof c=="function")return d?"_function_":null;if(vr.isPlainObject(c)){var h={};return Object.keys(c).sort().forEach(function(x){if(["_","["].indexOf(x.charAt(0))===-1){if(typeof c[x]=="function"){d&&(h[x]="_function");return}h[x]=s(c[x],d)}}),h}var p=Array.isArray(c),g=vr.isTypedArray(c);if((p||g)&&c.dtype&&c.shape){var y=c.bdata;return s({dtype:c.dtype,shape:c.shape,bdata:vr.isArrayBuffer(y)?zQ.encode(y):y},d)}return p?c.map(function(x){return s(x,d)}):g?vr.simpleMap(c,vr.identity):vr.isJSDate(c)?vr.ms2DateTimeLocal(+c):c}var u={data:(i||[]).map(function(c){var d=s(c);return r&&delete d.fit,d})};if(!r&&(u.layout=s(l),a)){var f=l._size;u.layout.computed={margin:{b:f.b,l:f.l,r:f.r,t:f.t}}}return o&&(u.frames=s(o)),n&&(u.config=s(e._context,!0)),t==="object"?u:JSON.stringify(u)};rr.modifyFrames=function(e,r){var t,a,n,i=e._transitionData._frames,l=e._transitionData._frameHash;for(t=0;t0&&(e._transitioningWithDuration=!0),e._transitionData._interruptCallbacks.push(function(){a=!0}),t.redraw&&e._transitionData._interruptCallbacks.push(function(){return $r.call("redraw",e)}),e._transitionData._interruptCallbacks.push(function(){e.emit("plotly_transitioninterrupted",[])});var d=0,h=0;function p(){return d++,function(){h++,!a&&h===d&&o(c)}}t.runFn(p),setTimeout(p())})}function o(c){if(e._transitionData)return i(e._transitionData._interruptCallbacks),Promise.resolve().then(function(){if(t.redraw)return $r.call("redraw",e)}).then(function(){e._transitioning=!1,e._transitioningWithDuration=!1,e.emit("plotly_transitioned",[])}).then(c)}function s(){if(e._transitionData)return e._transitioning=!1,n(e._transitionData._interruptCallbacks)}var u=[rr.previousPromises,s,t.prepareFn,rr.rehover,rr.reselect,l],f=vr.syncOrAsync(u,e);return(!f||!f.then)&&(f=Promise.resolve()),f.then(function(){return e})}rr.doCalcdata=function(e,r){var t=An.list(e),a=e._fullData,n=e._fullLayout,i,l,o,s=new Array(a.length),u=(e.calcdata||[]).slice();for(e.calcdata=s,n._numBoxes=0,n._numViolins=0,n._violinScaleGroupStats={},e._hmpixcount=0,e._hmlumcount=0,n._piecolormap={},n._sunburstcolormap={},n._treemapcolormap={},n._iciclecolormap={},n._funnelareacolormap={},o=0;oDT,svgAttrs:()=>aee,xlink:()=>LT,xmlns:()=>tee});var tee,DT,LT,aee,fs=Ft(()=>{"use strict";tee="http://www.w3.org/2000/xmlns/",DT="http://www.w3.org/2000/svg",LT="http://www.w3.org/1999/xlink",aee={xmlns:DT,"xmlns:xlink":LT}});var Za={};Nt(Za,{CAP_SHIFT:()=>see,FROM_BL:()=>nee,FROM_BR:()=>lee,FROM_TL:()=>iee,LINE_SPACING:()=>oee,MID_SHIFT:()=>uee,OPPOSITE_SIDE:()=>fee});var nee,iee,lee,oee,see,uee,fee,Ja=Ft(()=>{"use strict";nee={left:0,center:.5,right:1,bottom:0,middle:.5,top:1},iee={left:0,center:.5,right:1,bottom:1,middle:.5,top:0},lee={left:1,center:.5,right:0,bottom:0,middle:.5,top:1},oee=1.3,see=.7,uee=.35,fee={left:"right",right:"left",top:"bottom",bottom:"top"}});var La=J(ln=>{"use strict";var Ut=Or(),Qn=Fe(),cee=Qn.strTranslate,xy=(fs(),Xe(us)),vee=(Ja(),Xe(Za)).LINE_SPACING,dee=/([^$]*)([$]+[^$]*[$]+)([^$]*)/,My=e=>e?e.match(dee):null;ln.matchTex=My;var hee=e=>{var r=My(e);return!!r&&!r[1]&&!r[3]};ln.isPureTex=hee;function FT(e,r,t,a,n,i,l,o){var s=a.select("g"),u=s.node().getBoundingClientRect(),f=u.width,c=u.height,d=l===void 0?f:l,h=o===void 0?c:o;(f>d||c>h)&&(a.style("overflow","hidden"),u=a.node().getBoundingClientRect(),f=u.width,c=u.height);var p=+e.attr("x"),g=+e.attr("y"),y=i||e.node().getBoundingClientRect().height,x=-y/4;r[0]==="y"?t.attr({transform:"rotate("+[-90,p,g]+")"+cee(-f/2,x-c/2)}):r[0]==="l"?g=x-c/2:r[0]==="a"&&r.indexOf("atitle")!==0?(p=0,g=x):(p=p-f*(n==="middle"?.5:n==="end"?1:0),g=g+x-c/2),a.attr({x:p,y:g})}function pee(e){e.selectAll("a").each(function(){var r=Ut.select(this);["href","xlink:href"].forEach(function(t){var a=r.attr(t);a&&r.attr(t,ky(a)||null)})})}ln.convertToTspans=function(e,r,t){var a=e.text(),n=!e.attr("data-notex")&&r&&r._context.typesetMath&&My(a);n&&!bee()&&(n=null);var i=Ut.select(e.node().parentNode);if(i.empty())return;var l=e.attr("class")?e.attr("class").split(" ")[0]:"text";l+="-math",i.selectAll("svg."+l).remove(),i.selectAll("g."+l+"-group").remove(),e.style("display",null).attr({"data-unformatted":a,"data-math":"N"});function o(){i.empty()||(l=e.attr("class")+"-math",i.select("svg."+l).remove()),e.text("").style("white-space","pre");var s=Dee(e.node(),a);s&&e.style("pointer-events","all"),ln.positionText(e),t&&t.call(e)}return n?(r&&r._promises||[]).push(new Promise(function(s){e.style("display","none");var u=parseInt(e.node().style.fontSize,10),f={fontSize:u},c=e.attr("text-anchor");xee(n[2],f,function(d,h,p){i.selectAll("svg."+l).remove(),i.selectAll("g."+l+"-group").remove();var g=d&&d.select("svg");if(!g||!g.node()){o(),s();return}e.style("display","none");var y=i.append("g").classed(l+"-group",!0).attr({"pointer-events":"none","data-unformatted":a,"data-math":"Y"});y.node().appendChild(g.node()),pee(g),h&&h.node()&&g.node().insertBefore(h.node().cloneNode(!0),g.node().firstChild);var x=p.width,w=p.height;g.attr({class:l,height:w,preserveAspectRatio:"xMinYMin meet"}).style({overflow:"visible","pointer-events":"none","font-size":f.fontSize+"px"});var M=e.node().style.fill||"black",b=g.select("g");b.attr({fill:M,stroke:M}),FT(e,l,y,g,c,u,x,w),t&&t.call(e,y),s(y)})})):o(),e};ln.repositionMathGroup=function(e){if(!e.empty()){var r=(e.attr("class")?e.attr("class").split(" ")[0]:"text")+"-math",t=Ut.select(e.node().parentNode),a=t.select("g."+r+"-group"),n=a.select("svg."+r);if(!(a.empty()||n.empty())){var i=e.attr("text-anchor"),l=parseInt(e.node().style.fontSize,10);FT(e,r,a,n,i,l)}}};ln.getMathOrTextNode=function(e){var r=e.node();if(!r)return null;var t=(e.attr("class")?e.attr("class").split(" ")[0]:"text")+"-math",a=Ut.select(r.parentNode).select("g."+t+"-group");return a.empty()?r:a.node()};var mee=/(<|<|<)/g,gee=/(>|>|>)/g;function yee(e){return e.replace(mee,"\\lt ").replace(gee,"\\gt ")}var _y=null,NT=()=>typeof MathJax!="undefined"&&MathJax.version?parseInt(MathJax.version.split(".")[0]):null,qT=!1,ET=!1;function bee(){let e=NT();return e===3||e===4?!0:(e===null?qT||(qT=!0,Qn.warn("MathJax is not loaded. Math equations will not be rendered.")):ET||(ET=!0,Qn.warn("Unsupported MathJax version:",MathJax.version)),!1)}function xee(e,r,t){let a=NT();var n;let i=function(){if(!_y){let u=MathJax._.output.svg_ts.SVG,f=Qn.extendFlat({},MathJax.config.svg,{fontCache:"local"});a===4&&(f.linebreaks=Qn.extendFlat({},f.linebreaks,{inline:!1})),_y=MathJax._.mathjax.mathjax.document(document,Qn.extendFlat({},MathJax.config.options,{InputJax:MathJax.startup.input,OutputJax:new u(f)}))}let o="math-output-"+Qn.randstr({},64);n=Ut.select("body").append("div").attr({id:o}).style({visibility:"hidden",position:"absolute","font-size":r.fontSize+"px"});let s=yee(e).replace(/^\$+|\$+$/g,"");return MathJax._.mathjax.mathjax.handleRetriesFor(function(){return _y.convert(s,{display:!1})}).then(function(u){n.node().appendChild(u)})},l=function(){let o=n.select(".MathJax"),s=!o.empty()&&n.select("svg").node();if(!s)Qn.log("There was an error in the tex syntax.",e),t();else{let u=s.getBoundingClientRect(),f=o.select("defs");t(o,f,u)}n.remove()};Promise.resolve().then(i).then(l).catch(o=>{Qn.log("MathJax typesetting failed.",e,o),n&&n.remove(),t()})}var IT={sup:"font-size:70%",sub:"font-size:70%",s:"text-decoration:line-through",u:"text-decoration:underline",b:"font-weight:bold",i:"font-style:italic",a:"cursor:pointer",span:"",em:"font-style:italic;font-weight:bold"},_ee={sub:"0.3em",sup:"-0.6em"},wee={sub:"-0.21em",sup:"0.42em"},PT="\u200B",RT=["http:","https:","mailto:","",void 0,":"],BT=ln.NEWLINES=/(\r\n?|\n)/g,Ty=/(<[^<>]*>)/,Ay=/<(\/?)([^ >]*)(\s+(.*))?>/i,Mee=//i;ln.BR_TAG_ALL=//gi;var HT=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,OT=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,YT=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,Tee=/(^|[\s"'])popup\s*=\s*("([\w=,]*)"|'([\w=,]*)')/i;function cs(e,r){if(!e)return null;var t=e.match(r),a=t&&(t[3]||t[4]);return a&&K2(a)}var Aee=/(^|;)\s*color:/;ln.plainText=function(e,r){r=r||{};for(var t=r.len!==void 0&&r.len!==-1?r.len:1/0,a=r.allowedTags!==void 0?r.allowedTags:["br"],n="...",i=n.length,l=e.split(Ty),o=[],s="",u=0,f=0;fi?o.push(c.slice(0,Math.max(0,g-i))+n):o.push(c.slice(0,g));break}s=""}}return o.join("")};var kee={mu:"\u03BC",amp:"&",lt:"<",gt:">",nbsp:"\xA0",times:"\xD7",plusmn:"\xB1",deg:"\xB0"},Cee=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function K2(e){return e.replace(Cee,function(r,t){var a;return t.charAt(0)==="#"?a=See(t.charAt(1)==="x"?parseInt(t.slice(2),16):parseInt(t.slice(1),10)):a=kee[t],a||r})}ln.convertEntities=K2;function See(e){if(!(e>1114111)){var r=String.fromCodePoint;if(r)return r(e);var t=String.fromCharCode;return e<=65535?t(e):t((e>>10)+55232,e%1024+56320)}}function Dee(e,r){r=r.replace(BT," ");var t=!1,a=[],n,i=-1;function l(){i++;var S=document.createElementNS(xy.svg,"tspan");Ut.select(S).attr({class:"line",dy:i*vee+"em"}),e.appendChild(S),n=S;var C=a;if(a=[{node:S}],C.length>1)for(var L=1;L.",r);return}var C=a.pop();S!==C.type&&Qn.log("Start tag <"+C.type+"> doesnt match end tag <"+S+">. Pretending it did match.",r),n=a[a.length-1].node}var f=Mee.test(r);f?l():(n=e,a=[{node:e}]);for(var c=r.split(Ty),d=0;d{"use strict";var Lee=Or(),Lf=Zr(),j2=Fe(),vs=Nr(),qee=Qo().isValid;function Eee(e,r,t){var a=r?j2.nestedProperty(e,r).get()||{}:e,n=a[t||"color"];n&&n._inputArray&&(n=n._inputArray);var i=!1;if(j2.isArrayOrTypedArray(n)){for(var l=0;l=0;a--,n++){var i=e[a];t[n]=[1-i[0],i[1]]}return t}function WT(e,r){r=r||{};for(var t=e.domain,a=e.range,n=a.length,i=new Array(n),l=0;l{"use strict";var JT=(Hg(),Xe(Bg)),Ree=JT.FORMAT_LINK,zee=JT.DATE_FORMAT_LINK;function Fee(e,r){return{valType:"string",dflt:"",editType:"none",description:(r?Cy:$T)("hover text",e)+["By default the values are formatted using "+(r?"generic number format":"`"+e+"axis.hoverformat`")+"."].join(" ")}}function Cy(e,r){return["Sets the "+e+" formatting rule"+(r?" for `"+r+"`":""),"using d3 formatting mini-languages","which are very similar to those in Python. For numbers, see: "+Ree+"."].join(" ")}function $T(e,r){return Cy(e,r)+[" And for dates see: "+zee+".","We add two items to d3's date formatter:","*%h* for half of the year as a decimal number as well as","*%{n}f* for fractional seconds","with n digits. For example, *2016-10-13 09:15:23.456* with tickformat","*%H~%M~%S.%2f* would display *09~15~23.46*"].join(" ")}KT.exports={axisHoverFormat:Fee,descriptionOnlyNumbers:Cy,descriptionWithDates:$T}});var ki=J((P3e,hA)=>{"use strict";var jT=Ia(),I0=$i(),dA=ji().dash,Dy=va().extendFlat,QT=yt().templatedArray,E3e=rs().templateFormatStringDescription,eA=Q2().descriptionWithDates,Nee=(ca(),Xe(ga)).ONEDAY,el=(_a(),Xe(xa)),Iee=el.HOUR_PATTERN,Bee=el.WEEKDAY_PATTERN,Sy={valType:"enumerated",values:["auto","linear","array"],editType:"ticks",impliedEdits:{tick0:void 0,dtick:void 0}},Hee=Dy({},Sy,{values:Sy.values.slice().concat(["sync"])});function rA(e){return{valType:"integer",min:0,dflt:e?5:0,editType:"ticks"}}var tA={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},aA={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},nA={valType:"data_array",editType:"ticks"},iA={valType:"enumerated",values:["outside","inside",""],editType:"ticks"};function lA(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=5),r}function oA(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=1),r}var sA={valType:"color",dflt:I0.defaultLine,editType:"ticks"},uA={valType:"color",dflt:I0.lightLine,editType:"ticks"};function fA(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=1),r}var cA=Dy({},dA,{editType:"ticks"}),vA={valType:"boolean",editType:"ticks"};hA.exports={visible:{valType:"boolean",editType:"plot"},color:{valType:"color",dflt:I0.defaultLine,editType:"ticks"},title:{text:{valType:"string",editType:"ticks"},font:jT({editType:"ticks",description:"Sets this axis' title font."}),standoff:{valType:"number",min:0,editType:"ticks"},editType:"ticks"},type:{valType:"enumerated",values:["-","linear","log","date","category","multicategory"],dflt:"-",editType:"calc",_noTemplating:!0},autotypenumbers:{valType:"enumerated",values:["convert types","strict"],dflt:"convert types",editType:"calc"},autorange:{valType:"enumerated",values:[!0,!1,"reversed","min reversed","max reversed","min","max"],dflt:!0,editType:"axrange",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},autorangeoptions:{minallowed:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},maxallowed:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},clipmin:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},clipmax:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},include:{valType:"any",arrayOk:!0,editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},editType:"plot"},rangemode:{valType:"enumerated",values:["normal","tozero","nonnegative"],dflt:"normal",editType:"plot"},range:{valType:"info_array",items:[{valType:"any",editType:"axrange",impliedEdits:{"^autorange":!1},anim:!0},{valType:"any",editType:"axrange",impliedEdits:{"^autorange":!1},anim:!0}],editType:"axrange",impliedEdits:{autorange:!1},anim:!0},minallowed:{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},maxallowed:{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},fixedrange:{valType:"boolean",dflt:!1,editType:"calc"},modebardisable:{valType:"flaglist",flags:["autoscale","zoominout"],extras:["none"],dflt:"none",editType:"modebar"},insiderange:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},scaleanchor:{valType:"enumerated",values:[el.idRegex.x.toString(),el.idRegex.y.toString(),!1],editType:"plot"},scaleratio:{valType:"number",min:0,dflt:1,editType:"plot"},constrain:{valType:"enumerated",values:["range","domain"],editType:"plot"},constraintoward:{valType:"enumerated",values:["left","center","right","top","middle","bottom"],editType:"plot"},matches:{valType:"enumerated",values:[el.idRegex.x.toString(),el.idRegex.y.toString()],editType:"calc"},rangebreaks:QT("rangebreak",{enabled:{valType:"boolean",dflt:!0,editType:"calc"},bounds:{valType:"info_array",items:[{valType:"any",editType:"calc"},{valType:"any",editType:"calc"}],editType:"calc"},pattern:{valType:"enumerated",values:[Bee,Iee,""],editType:"calc"},values:{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"any",editType:"calc"}},dvalue:{valType:"number",editType:"calc",min:0,dflt:Nee},editType:"calc"}),tickmode:Hee,nticks:rA(),tick0:tA,dtick:aA,ticklabelstep:{valType:"integer",min:1,dflt:1,editType:"ticks"},tickvals:nA,ticktext:{valType:"data_array",editType:"ticks"},ticks:iA,tickson:{valType:"enumerated",values:["labels","boundaries"],dflt:"labels",editType:"ticks"},ticklabelmode:{valType:"enumerated",values:["instant","period"],dflt:"instant",editType:"ticks"},ticklabelposition:{valType:"enumerated",values:["outside","inside","outside top","inside top","outside left","inside left","outside right","inside right","outside bottom","inside bottom"],dflt:"outside",editType:"calc"},ticklabeloverflow:{valType:"enumerated",values:["allow","hide past div","hide past domain"],editType:"calc"},ticklabelshift:{valType:"integer",dflt:0,editType:"ticks"},ticklabelstandoff:{valType:"integer",dflt:0,editType:"ticks"},ticklabelindex:{valType:"integer",arrayOk:!0,editType:"calc"},mirror:{valType:"enumerated",values:[!0,"ticks",!1,"all","allticks"],dflt:!1,editType:"ticks+layoutstyle"},ticklen:lA(),tickwidth:oA(),tickcolor:sA,showticklabels:{valType:"boolean",dflt:!0,editType:"ticks"},labelalias:{valType:"any",dflt:!1,editType:"ticks"},automargin:{valType:"flaglist",flags:["height","width","left","right","top","bottom"],extras:[!0,!1],dflt:!1,editType:"ticks"},showspikes:{valType:"boolean",dflt:!1,editType:"modebar"},spikecolor:{valType:"color",dflt:null,editType:"none"},spikethickness:{valType:"number",dflt:3,editType:"none"},spikedash:Dy({},dA,{dflt:"dash",editType:"none"}),spikemode:{valType:"flaglist",flags:["toaxis","across","marker"],dflt:"toaxis",editType:"none"},spikesnap:{valType:"enumerated",values:["data","cursor","hovered data"],dflt:"hovered data",editType:"none"},tickfont:jT({editType:"ticks"}),tickangle:{valType:"angle",dflt:"auto",editType:"ticks"},autotickangles:{valType:"info_array",freeLength:!0,items:{valType:"angle"},dflt:[0,30,90],editType:"ticks"},tickprefix:{valType:"string",dflt:"",editType:"ticks"},showtickprefix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},ticksuffix:{valType:"string",dflt:"",editType:"ticks"},showticksuffix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},showexponent:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},exponentformat:{valType:"enumerated",values:["none","e","E","power","SI","B","SI extended"],dflt:"B",editType:"ticks"},minexponent:{valType:"number",dflt:3,min:0,editType:"ticks"},separatethousands:{valType:"boolean",dflt:!1,editType:"ticks"},tickformat:{valType:"string",dflt:"",editType:"ticks",description:eA("tick label")},tickformatstops:QT("tickformatstop",{enabled:{valType:"boolean",dflt:!0,editType:"ticks"},dtickrange:{valType:"info_array",items:[{valType:"any",editType:"ticks"},{valType:"any",editType:"ticks"}],editType:"ticks"},value:{valType:"string",dflt:"",editType:"ticks"},editType:"ticks"}),hoverformat:{valType:"string",dflt:"",editType:"none",description:eA("hover text")},unifiedhovertitle:{text:{valType:"string",dflt:"",editType:"none"},editType:"none"},showline:{valType:"boolean",dflt:!1,editType:"ticks+layoutstyle"},linecolor:{valType:"color",dflt:I0.defaultLine,editType:"layoutstyle"},linewidth:{valType:"number",min:0,dflt:1,editType:"ticks+layoutstyle"},showgrid:vA,gridcolor:uA,gridwidth:fA(),griddash:cA,zeroline:{valType:"boolean",editType:"ticks"},zerolinecolor:{valType:"color",dflt:I0.defaultLine,editType:"ticks"},zerolinelayer:{valType:"enumerated",values:["above traces","below traces"],dflt:"below traces",editType:"plot"},zerolinewidth:{valType:"number",dflt:1,editType:"ticks"},showdividers:{valType:"boolean",dflt:!0,editType:"ticks"},dividercolor:{valType:"color",dflt:I0.defaultLine,editType:"ticks"},dividerwidth:{valType:"number",dflt:1,editType:"ticks"},anchor:{valType:"enumerated",values:["free",el.idRegex.x.toString(),el.idRegex.y.toString()],editType:"plot"},side:{valType:"enumerated",values:["top","bottom","left","right"],editType:"plot"},overlaying:{valType:"enumerated",values:["free",el.idRegex.x.toString(),el.idRegex.y.toString()],editType:"plot"},minor:{tickmode:Sy,nticks:rA("minor"),tick0:tA,dtick:aA,tickvals:nA,ticks:iA,ticklen:lA("minor"),tickwidth:oA("minor"),tickcolor:sA,gridcolor:uA,gridwidth:fA("minor"),griddash:cA,showgrid:vA,editType:"ticks"},minorloglabels:{valType:"enumerated",values:["small digits","complete","none"],dflt:"small digits",editType:"calc"},layer:{valType:"enumerated",values:["above traces","below traces"],dflt:"above traces",editType:"plot"},domain:{valType:"info_array",items:[{valType:"number",min:0,max:1,editType:"plot"},{valType:"number",min:0,max:1,editType:"plot"}],dflt:[0,1],editType:"plot"},position:{valType:"number",min:0,max:1,dflt:0,editType:"plot"},autoshift:{valType:"boolean",dflt:!1,editType:"plot"},shift:{valType:"number",editType:"plot"},categoryorder:{valType:"enumerated",values:["trace","category ascending","category descending","array","total ascending","total descending","min ascending","min descending","max ascending","max descending","sum ascending","sum descending","mean ascending","mean descending","geometric mean ascending","geometric mean descending","median ascending","median descending"],dflt:"trace",editType:"calc"},categoryarray:{valType:"data_array",editType:"calc"},uirevision:{valType:"any",editType:"none"},editType:"calc"}});var e1=J((R3e,mA)=>{"use strict";var wt=ki(),pA=Ia(),Ly=va().extendFlat,Oee=Ki().overrideAll;mA.exports=Oee({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:wt.linecolor,outlinewidth:wt.linewidth,bordercolor:wt.linecolor,borderwidth:{valType:"number",min:0,dflt:0},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},tickmode:wt.minor.tickmode,nticks:wt.nticks,tick0:wt.tick0,dtick:Ly({},wt.dtick,{}),tickvals:wt.tickvals,ticktext:wt.ticktext,ticks:Ly({},wt.ticks,{dflt:""}),ticklabeloverflow:Ly({},wt.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:wt.ticklen,tickwidth:wt.tickwidth,tickcolor:wt.tickcolor,ticklabelstep:wt.ticklabelstep,showticklabels:wt.showticklabels,labelalias:wt.labelalias,tickfont:pA({description:"Sets the color bar's tick label font"}),tickangle:wt.tickangle,tickformat:wt.tickformat,tickformatstops:wt.tickformatstops,tickprefix:wt.tickprefix,showtickprefix:wt.showtickprefix,ticksuffix:wt.ticksuffix,showticksuffix:wt.showticksuffix,separatethousands:wt.separatethousands,exponentformat:wt.exponentformat,minexponent:wt.minexponent,showexponent:wt.showexponent,title:{text:{valType:"string"},font:pA({description:"Sets this color bar's title font."}),side:{valType:"enumerated",values:["right","top","bottom"]}}},"colorbars","from-root")});var qf=J((F3e,yA)=>{"use strict";var Yee=e1(),Uee=(w0(),Xe(gf)).counter,Gee=(Jg(),Xe(Zg)).default,gA=Qo().scales,z3e=Gee(gA);function r1(e){return"`"+e+"`"}yA.exports=function(r,t){r=r||"",t=t||{};var a=t.cLetter||"c",n="onlyIfNumerical"in t?t.onlyIfNumerical:!!r,i="noScale"in t?t.noScale:r==="marker.line",l="showScaleDflt"in t?t.showScaleDflt:a==="z",o=typeof t.colorscaleDflt=="string"?gA[t.colorscaleDflt]:null,s=t.editTypeOverride||"",u=r?r+".":"",f,c;"colorAttr"in t?(f=t.colorAttr,c=t.colorAttr):(f={z:"z",c:"color"}[a],c="in "+r1(u+f));var d=n?" Has an effect only if "+c+" is set to a numerical array.":"",h=a+"auto",p=a+"min",g=a+"max",y=a+"mid",x=r1(u+h),w=r1(u+p),M=r1(u+g),b=w+" and "+M,T={};T[p]=T[g]=void 0;var S={};S[h]=!1;var C={};return f==="color"&&(C.color={valType:"color",arrayOk:!0,editType:s||"style"},t.anim&&(C.color.anim=!0)),C[h]={valType:"boolean",dflt:!0,editType:"calc",impliedEdits:T},C[p]={valType:"number",dflt:null,editType:s||"plot",impliedEdits:S},C[g]={valType:"number",dflt:null,editType:s||"plot",impliedEdits:S},C[y]={valType:"number",dflt:null,editType:"calc",impliedEdits:T},C.colorscale={valType:"colorscale",editType:"calc",dflt:o,impliedEdits:{autocolorscale:!1}},C.autocolorscale={valType:"boolean",dflt:t.autoColorDflt!==!1,editType:"calc",impliedEdits:{colorscale:void 0}},C.reversescale={valType:"boolean",dflt:!1,editType:"plot"},i||(C.showscale={valType:"boolean",dflt:l,editType:"calc"},C.colorbar=Yee),t.noColorAxis||(C.coloraxis={valType:"subplotid",regex:Uee("coloraxis"),dflt:null,editType:"calc"}),C}});var Ey=J((N3e,bA)=>{"use strict";var Vee=va().extendFlat,Xee=qf(),qy=Qo().scales;bA.exports={editType:"calc",colorscale:{editType:"calc",sequential:{valType:"colorscale",dflt:qy.Reds,editType:"calc"},sequentialminus:{valType:"colorscale",dflt:qy.Blues,editType:"calc"},diverging:{valType:"colorscale",dflt:qy.RdBu,editType:"calc"}},coloraxis:Vee({_isSubplotObj:!0,editType:"calc"},Xee("",{colorAttr:"corresponding trace color array(s)",noColorAxis:!0,showScaleDflt:!0}))}});var Py=J((I3e,xA)=>{"use strict";var Wee=Fe();xA.exports=function(r){return Wee.isPlainObject(r.colorbar)}});var Fy=J(zy=>{"use strict";var Ry=Zr(),_A=Fe(),wA=(ca(),Xe(ga)),Zee=wA.ONEDAY,Jee=wA.ONEWEEK;zy.dtick=function(e,r){var t=r==="log",a=r==="date",n=r==="category",i=a?Zee:1;if(!e)return i;if(Ry(e))return e=Number(e),e<=0?i:n?Math.max(1,Math.round(e)):a?Math.max(.1,e):e;if(typeof e!="string"||!(a||t))return i;var l=e.charAt(0),o=e.slice(1);return o=Ry(o)?Number(o):0,o<=0||!(a&&l==="M"&&o===Math.round(o)||t&&l==="L"||t&&l==="D"&&(o===1||o===2))?i:e};zy.tick0=function(e,r,t,a){if(r==="date")return _A.cleanDate(e,_A.dateTick0(t,a%Jee===0?1:0));if(!(a==="D1"||a==="D2"))return Ry(e)?Number(e):0}});var Ny=J((H3e,TA)=>{"use strict";var MA=Fy(),$ee=Fe().isArrayOrTypedArray,Kee=xn().isTypedArraySpec,jee=xn().decodeTypedArraySpec;TA.exports=function(r,t,a,n,i={}){var l=i.isMinor,o=l?r.minor||{}:r,s=l?t.minor:t,u=l?"minor.":"";function f(b){var T=o[b];return Kee(T)&&(T=jee(T)),T!==void 0?T:(s._template||{})[b]}var c=f("tick0"),d=f("dtick"),h=f("tickvals"),p=f("overlaying"),g=n==="category"||n==="multicategory",y;$ee(h)?y="array":d?y="linear":p&&!g?y="sync":y="auto";var x=a(u+"tickmode",y);if(x==="auto"||x==="sync")a(u+"nticks");else if(x==="linear"){var w=s.dtick=MA.dtick(d,n);s.tick0=MA.tick0(c,n,t.calendar,w)}else if(n!=="multicategory"){var M=a(u+"tickvals");M===void 0?s.tickmode="auto":l||a("ticktext")}}});var By=J((O3e,kA)=>{"use strict";var Iy=Fe(),AA=ki();kA.exports=function(r,t,a,n){var i=n.isMinor,l=i?r.minor||{}:r,o=i?t.minor:t,s=i?AA.minor:AA,u=i?"minor.":"",f=Iy.coerce2(l,o,s,"ticklen",i?(t.ticklen||5)*.6:void 0),c=Iy.coerce2(l,o,s,"tickwidth",i?t.tickwidth||1:void 0),d=Iy.coerce2(l,o,s,"tickcolor",(i?t.tickcolor:void 0)||o.color),h=a(u+"ticks",!i&&n.outerTicks||f||c||d?"outside":"");h||(delete o.ticklen,delete o.tickwidth,delete o.tickcolor)}});var Hy=J((Y3e,CA)=>{"use strict";CA.exports=function(r){var t=["showexponent","showtickprefix","showticksuffix"],a=t.filter(function(i){return r[i]!==void 0}),n=function(i){return r[i]===r[a[0]]};if(a.every(n)||a.length===1)return r[a[0]]}});var Ci=J((U3e,SA)=>{"use strict";var t1=Fe(),Qee=yt();SA.exports=function(r,t,a){var n=a.name,i=a.inclusionAttr||"visible",l=t[n],o=t1.isArrayOrTypedArray(r[n])?r[n]:[],s=t[n]=[],u=Qee.arrayTemplater(t,n,i),f,c;for(f=0;f{"use strict";var Oy=Fe(),ere=Nr().contrast,DA=ki(),rre=Hy(),tre=Ci();LA.exports=function(r,t,a,n,i){i||(i={});var l=a("labelalias");Oy.isPlainObject(l)||delete t.labelalias;var o=rre(r),s=a("showticklabels");if(s){i.noTicklabelshift||a("ticklabelshift"),i.noTicklabelstandoff||a("ticklabelstandoff");var u=i.font||{},f=t.color,c=t.ticklabelposition||"",d=c.indexOf("inside")!==-1?ere(i.bgColor):f&&f!==DA.color.dflt?f:u.color;if(Oy.coerceFont(a,"tickfont",u,{overrideDflt:{color:d}}),!i.noTicklabelstep&&n!=="multicategory"&&n!=="log"&&a("ticklabelstep"),!i.noAng){var h=a("tickangle");!i.noAutotickangles&&h==="auto"&&a("autotickangles")}if(n!=="category"){var p=a("tickformat");tre(r,t,{name:"tickformatstops",inclusionAttr:"enabled",handleItemDefaults:are}),t.tickformatstops.length||delete t.tickformatstops,!i.noExp&&!p&&n!=="date"&&(a("showexponent",o),a("exponentformat"),a("minexponent"),a("separatethousands"))}!i.noMinorloglabels&&n==="log"&&a("minorloglabels")}};function are(e,r){function t(n,i){return Oy.coerce(e,r,DA.tickformatstops,n,i)}var a=t("enabled");a&&(t("dtickrange"),t("value"))}});var Uy=J((V3e,qA)=>{"use strict";var nre=Hy();qA.exports=function(r,t,a,n,i){i||(i={});var l=i.tickSuffixDflt,o=nre(r),s=a("tickprefix");s&&a("showtickprefix",o);var u=a("ticksuffix",l);u&&a("showticksuffix",o)}});var Gy=J((X3e,EA)=>{"use strict";var io=Fe(),ire=yt(),lre=Ny(),ore=By(),sre=Yy(),ure=Uy(),fre=e1();EA.exports=function(r,t,a){var n=ire.newContainer(t,"colorbar"),i=r.colorbar||{};function l(z,N){return io.coerce(i,n,fre,z,N)}var o=a.margin||{t:0,b:0,l:0,r:0},s=a.width-o.l-o.r,u=a.height-o.t-o.b,f=l("orientation"),c=f==="v",d=l("thicknessmode");l("thickness",d==="fraction"?30/(c?s:u):30);var h=l("lenmode");l("len",h==="fraction"?1:c?u:s);var p=l("yref"),g=l("xref"),y=p==="paper",x=g==="paper",w,M,b,T="left";c?(b="middle",T=x?"left":"right",w=x?1.02:1,M=.5):(b=y?"bottom":"top",T="center",w=.5,M=y?1.02:1),io.coerce(i,n,{x:{valType:"number",min:x?-2:0,max:x?3:1,dflt:w}},"x"),io.coerce(i,n,{y:{valType:"number",min:y?-2:0,max:y?3:1,dflt:M}},"y"),l("xanchor",T),l("xpad"),l("yanchor",b),l("ypad"),io.noneOrAll(i,n,["x","y"]),l("outlinecolor"),l("outlinewidth"),l("bordercolor"),l("borderwidth"),l("bgcolor");var S=io.coerce(i,n,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:c?["outside","inside","outside top","inside top","outside bottom","inside bottom"]:["outside","inside","outside left","inside left","outside right","inside right"]}},"ticklabelposition");l("ticklabeloverflow",S.indexOf("inside")!==-1?"hide past domain":"hide past div"),lre(i,n,l,"linear");var C=a.font,L={noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0,outerTicks:!1,font:C};S.indexOf("inside")!==-1&&(L.bgColor="black"),ure(i,n,l,"linear",L),sre(i,n,l,"linear",L),ore(i,n,l,"linear",L),l("title.text",a._dfltTitle.colorbar);var q=n.showticklabels?n.tickfont:C,P=io.extendFlat({},C,{family:q.family,size:io.bigFont(q.size)});io.coerceFont(l,"title.font",P),l("title.side",c?"top":"right")}});var B0=J((W3e,zA)=>{"use strict";var PA=Zr(),Xy=Fe(),cre=Py(),vre=Gy(),RA=Qo().isValid,dre=kr().traceIs;function Vy(e,r){var t=r.slice(0,r.length-1);return r?Xy.nestedProperty(e,t).get()||{}:e}zA.exports=function e(r,t,a,n,i){var l=i.prefix,o=i.cLetter,s="_module"in t,u=Vy(r,l),f=Vy(t,l),c=Vy(t._template||{},l)||{},d=function(){return delete r.coloraxis,delete t.coloraxis,e(r,t,a,n,i)};if(s){var h=a._colorAxes||{},p=n(l+"coloraxis");if(p){var g=dre(t,"contour")&&Xy.nestedProperty(t,"contours.coloring").get()||"heatmap",y=h[p];y?(y[2].push(d),y[0]!==g&&(y[0]=!1,Xy.warn(["Ignoring coloraxis:",p,"setting","as it is linked to incompatible colorscales."].join(" ")))):h[p]=[g,t,[d]];return}}var x=u[o+"min"],w=u[o+"max"],M=PA(x)&&PA(w)&&x{"use strict";var FA=Fe(),hre=yt(),NA=Ey(),pre=B0();IA.exports=function(r,t){function a(c,d){return FA.coerce(r,t,NA,c,d)}a("colorscale.sequential"),a("colorscale.sequentialminus"),a("colorscale.diverging");var n=t._colorAxes,i,l;function o(c,d){return FA.coerce(i,l,NA.coloraxis,c,d)}for(var s in n){var u=n[s];if(u[0])i=r[s]||{},l=hre.newContainer(t,s,"coloraxis"),l._name=s,pre(i,l,t,o,{prefix:"",cLetter:"c"});else{for(var f=0;f{"use strict";var mre=Fe(),gre=ei().hasColorscale,yre=ei().extractOpts;HA.exports=function(r,t){function a(f,c){var d=f["_"+c];d!==void 0&&(f[c]=d)}function n(f,c){var d=c.container?mre.nestedProperty(f,c.container).get():f;if(d)if(d.coloraxis)d._colorAx=t[d.coloraxis];else{var h=yre(d),p=h.auto;(p||h.min===void 0)&&a(d,c.min),(p||h.max===void 0)&&a(d,c.max),h.autocolorscale&&a(d,"colorscale")}}for(var i=0;i{"use strict";var YA=Zr(),Wy=Fe(),bre=ei().extractOpts;UA.exports=function(r,t,a){var n=r._fullLayout,i=a.vals,l=a.containerStr,o=l?Wy.nestedProperty(t,l).get():t,s=bre(o),u=s.auto!==!1,f=s.min,c=s.max,d=s.mid,h=function(){return Wy.aggNums(Math.min,null,i)},p=function(){return Wy.aggNums(Math.max,null,i)};if(f===void 0?f=h():u&&(o._colorAx&&YA(f)?f=Math.min(f,h()):f=h()),c===void 0?c=p():u&&(o._colorAx&&YA(c)?c=Math.max(c,p()):c=p()),u&&d!==void 0&&(c-d>d-f?f=d-(c-d):c-d=0?g=n.colorscale.sequential:g=n.colorscale.sequentialminus,s._sync("colorscale",g)}}});var Zy=J((K3e,GA)=>{"use strict";var n1=Qo(),H0=ei();GA.exports={moduleType:"component",name:"colorscale",attributes:qf(),layoutAttributes:Ey(),supplyLayoutDefaults:BA(),handleDefaults:B0(),crossTraceDefaults:OA(),calc:a1(),scales:n1.scales,defaultScale:n1.defaultScale,getScale:n1.get,isValidScale:n1.isValid,hasColorscale:H0.hasColorscale,extractOpts:H0.extractOpts,extractScale:H0.extractScale,flipScale:H0.flipScale,makeColorScaleFunc:H0.makeColorScaleFunc,makeColorScaleFuncFromTrace:H0.makeColorScaleFuncFromTrace}});var Rn=J((j3e,XA)=>{"use strict";var VA=Fe(),xre=xn().isTypedArraySpec;XA.exports={hasLines:function(e){return e.visible&&e.mode&&e.mode.indexOf("lines")!==-1},hasMarkers:function(e){return e.visible&&(e.mode&&e.mode.indexOf("markers")!==-1||e.type==="splom")},hasText:function(e){return e.visible&&e.mode&&e.mode.indexOf("text")!==-1},isBubble:function(e){var r=e.marker;return VA.isPlainObject(r)&&(VA.isArrayOrTypedArray(r.size)||xre(r.size))}}});var ZA=J((Q3e,WA)=>{"use strict";var _re=Zr();WA.exports=function(r,t){t||(t=2);var a=r.marker,n=a.sizeref||1,i=a.sizemin||0,l=a.sizemode==="area"?function(o){return Math.sqrt(o/n)}:function(o){return o/n};return function(o){var s=l(o/t);return _re(s)&&s>0?Math.max(s,i):0}}});var Si=J(Ha=>{"use strict";var Ef=Fe();Ha.getSubplot=function(e){return e.subplot||e.xaxis+e.yaxis||e.geo};Ha.isTraceInSubplots=function(e,r){if(e.type==="splom"){for(var t=e.xaxes||[],a=e.yaxes||[],n=0;n=0&&t.index{var Jy={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},Are=/([astvzqmhlc])([^astvzqmhlc]*)/gi,kre=/-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/gi;function Cre(e){let r=[];return e.replace(Are,(t,a,n)=>{let i=a.toLowerCase(),l=a,o=Sre(n);for(i==="m"&&o.length>2&&(r.push([l,...o.splice(0,2)]),i="l",l=l==="m"?"l":"L");;){if(o.length===Jy[i])return r.push([l,...o]),"";if(o.length{"use strict";var Dre=$y(),We=function(e,r){return r?Math.round(e*(r=Math.pow(10,r)))/r:Math.round(e)},qr="M0,0Z",jA=Math.sqrt(2),lo=Math.sqrt(3),Ky=Math.PI,jy=Math.cos,Qy=Math.sin;ak.exports={circle:{n:0,f:function(e,r,t){if(Er(r))return qr;var a=We(e,2),n="M"+a+",0A"+a+","+a+" 0 1,1 0,-"+a+"A"+a+","+a+" 0 0,1 "+a+",0Z";return t?Pr(r,t,n):n}},square:{n:1,f:function(e,r,t){if(Er(r))return qr;var a=We(e,2);return Pr(r,t,"M"+a+","+a+"H-"+a+"V-"+a+"H"+a+"Z")}},diamond:{n:2,f:function(e,r,t){if(Er(r))return qr;var a=We(e*1.3,2);return Pr(r,t,"M"+a+",0L0,"+a+"L-"+a+",0L0,-"+a+"Z")}},cross:{n:3,f:function(e,r,t){if(Er(r))return qr;var a=We(e*.4,2),n=We(e*1.2,2);return Pr(r,t,"M"+n+","+a+"H"+a+"V"+n+"H-"+a+"V"+a+"H-"+n+"V-"+a+"H-"+a+"V-"+n+"H"+a+"V-"+a+"H"+n+"Z")}},x:{n:4,f:function(e,r,t){if(Er(r))return qr;var a=We(e*.8/jA,2),n="l"+a+","+a,i="l"+a+",-"+a,l="l-"+a+",-"+a,o="l-"+a+","+a;return Pr(r,t,"M0,"+a+n+i+l+i+l+o+l+o+n+o+n+"Z")}},"triangle-up":{n:5,f:function(e,r,t){if(Er(r))return qr;var a=We(e*2/lo,2),n=We(e/2,2),i=We(e,2);return Pr(r,t,"M-"+a+","+n+"H"+a+"L0,-"+i+"Z")}},"triangle-down":{n:6,f:function(e,r,t){if(Er(r))return qr;var a=We(e*2/lo,2),n=We(e/2,2),i=We(e,2);return Pr(r,t,"M-"+a+",-"+n+"H"+a+"L0,"+i+"Z")}},"triangle-left":{n:7,f:function(e,r,t){if(Er(r))return qr;var a=We(e*2/lo,2),n=We(e/2,2),i=We(e,2);return Pr(r,t,"M"+n+",-"+a+"V"+a+"L-"+i+",0Z")}},"triangle-right":{n:8,f:function(e,r,t){if(Er(r))return qr;var a=We(e*2/lo,2),n=We(e/2,2),i=We(e,2);return Pr(r,t,"M-"+n+",-"+a+"V"+a+"L"+i+",0Z")}},"triangle-ne":{n:9,f:function(e,r,t){if(Er(r))return qr;var a=We(e*.6,2),n=We(e*1.2,2);return Pr(r,t,"M-"+n+",-"+a+"H"+a+"V"+n+"Z")}},"triangle-se":{n:10,f:function(e,r,t){if(Er(r))return qr;var a=We(e*.6,2),n=We(e*1.2,2);return Pr(r,t,"M"+a+",-"+n+"V"+a+"H-"+n+"Z")}},"triangle-sw":{n:11,f:function(e,r,t){if(Er(r))return qr;var a=We(e*.6,2),n=We(e*1.2,2);return Pr(r,t,"M"+n+","+a+"H-"+a+"V-"+n+"Z")}},"triangle-nw":{n:12,f:function(e,r,t){if(Er(r))return qr;var a=We(e*.6,2),n=We(e*1.2,2);return Pr(r,t,"M-"+a+","+n+"V-"+a+"H"+n+"Z")}},pentagon:{n:13,f:function(e,r,t){if(Er(r))return qr;var a=We(e*.951,2),n=We(e*.588,2),i=We(-e,2),l=We(e*-.309,2),o=We(e*.809,2);return Pr(r,t,"M"+a+","+l+"L"+n+","+o+"H-"+n+"L-"+a+","+l+"L0,"+i+"Z")}},hexagon:{n:14,f:function(e,r,t){if(Er(r))return qr;var a=We(e,2),n=We(e/2,2),i=We(e*lo/2,2);return Pr(r,t,"M"+i+",-"+n+"V"+n+"L0,"+a+"L-"+i+","+n+"V-"+n+"L0,-"+a+"Z")}},hexagon2:{n:15,f:function(e,r,t){if(Er(r))return qr;var a=We(e,2),n=We(e/2,2),i=We(e*lo/2,2);return Pr(r,t,"M-"+n+","+i+"H"+n+"L"+a+",0L"+n+",-"+i+"H-"+n+"L-"+a+",0Z")}},octagon:{n:16,f:function(e,r,t){if(Er(r))return qr;var a=We(e*.924,2),n=We(e*.383,2);return Pr(r,t,"M-"+n+",-"+a+"H"+n+"L"+a+",-"+n+"V"+n+"L"+n+","+a+"H-"+n+"L-"+a+","+n+"V-"+n+"Z")}},star:{n:17,f:function(e,r,t){if(Er(r))return qr;var a=e*1.4,n=We(a*.225,2),i=We(a*.951,2),l=We(a*.363,2),o=We(a*.588,2),s=We(-a,2),u=We(a*-.309,2),f=We(a*.118,2),c=We(a*.809,2),d=We(a*.382,2);return Pr(r,t,"M"+n+","+u+"H"+i+"L"+l+","+f+"L"+o+","+c+"L0,"+d+"L-"+o+","+c+"L-"+l+","+f+"L-"+i+","+u+"H-"+n+"L0,"+s+"Z")}},hexagram:{n:18,f:function(e,r,t){if(Er(r))return qr;var a=We(e*.66,2),n=We(e*.38,2),i=We(e*.76,2);return Pr(r,t,"M-"+i+",0l-"+n+",-"+a+"h"+i+"l"+n+",-"+a+"l"+n+","+a+"h"+i+"l-"+n+","+a+"l"+n+","+a+"h-"+i+"l-"+n+","+a+"l-"+n+",-"+a+"h-"+i+"Z")}},"star-triangle-up":{n:19,f:function(e,r,t){if(Er(r))return qr;var a=We(e*lo*.8,2),n=We(e*.8,2),i=We(e*1.6,2),l=We(e*4,2),o="A "+l+","+l+" 0 0 1 ";return Pr(r,t,"M-"+a+","+n+o+a+","+n+o+"0,-"+i+o+"-"+a+","+n+"Z")}},"star-triangle-down":{n:20,f:function(e,r,t){if(Er(r))return qr;var a=We(e*lo*.8,2),n=We(e*.8,2),i=We(e*1.6,2),l=We(e*4,2),o="A "+l+","+l+" 0 0 1 ";return Pr(r,t,"M"+a+",-"+n+o+"-"+a+",-"+n+o+"0,"+i+o+a+",-"+n+"Z")}},"star-square":{n:21,f:function(e,r,t){if(Er(r))return qr;var a=We(e*1.1,2),n=We(e*2,2),i="A "+n+","+n+" 0 0 1 ";return Pr(r,t,"M-"+a+",-"+a+i+"-"+a+","+a+i+a+","+a+i+a+",-"+a+i+"-"+a+",-"+a+"Z")}},"star-diamond":{n:22,f:function(e,r,t){if(Er(r))return qr;var a=We(e*1.4,2),n=We(e*1.9,2),i="A "+n+","+n+" 0 0 1 ";return Pr(r,t,"M-"+a+",0"+i+"0,"+a+i+a+",0"+i+"0,-"+a+i+"-"+a+",0Z")}},"diamond-tall":{n:23,f:function(e,r,t){if(Er(r))return qr;var a=We(e*.7,2),n=We(e*1.4,2);return Pr(r,t,"M0,"+n+"L"+a+",0L0,-"+n+"L-"+a+",0Z")}},"diamond-wide":{n:24,f:function(e,r,t){if(Er(r))return qr;var a=We(e*1.4,2),n=We(e*.7,2);return Pr(r,t,"M0,"+n+"L"+a+",0L0,-"+n+"L-"+a+",0Z")}},hourglass:{n:25,f:function(e,r,t){if(Er(r))return qr;var a=We(e,2);return Pr(r,t,"M"+a+","+a+"H-"+a+"L"+a+",-"+a+"H-"+a+"Z")},noDot:!0},bowtie:{n:26,f:function(e,r,t){if(Er(r))return qr;var a=We(e,2);return Pr(r,t,"M"+a+","+a+"V-"+a+"L-"+a+","+a+"V-"+a+"Z")},noDot:!0},"circle-cross":{n:27,f:function(e,r,t){if(Er(r))return qr;var a=We(e,2);return Pr(r,t,"M0,"+a+"V-"+a+"M"+a+",0H-"+a+"M"+a+",0A"+a+","+a+" 0 1,1 0,-"+a+"A"+a+","+a+" 0 0,1 "+a+",0Z")},needLine:!0,noDot:!0},"circle-x":{n:28,f:function(e,r,t){if(Er(r))return qr;var a=We(e,2),n=We(e/jA,2);return Pr(r,t,"M"+n+","+n+"L-"+n+",-"+n+"M"+n+",-"+n+"L-"+n+","+n+"M"+a+",0A"+a+","+a+" 0 1,1 0,-"+a+"A"+a+","+a+" 0 0,1 "+a+",0Z")},needLine:!0,noDot:!0},"square-cross":{n:29,f:function(e,r,t){if(Er(r))return qr;var a=We(e,2);return Pr(r,t,"M0,"+a+"V-"+a+"M"+a+",0H-"+a+"M"+a+","+a+"H-"+a+"V-"+a+"H"+a+"Z")},needLine:!0,noDot:!0},"square-x":{n:30,f:function(e,r,t){if(Er(r))return qr;var a=We(e,2);return Pr(r,t,"M"+a+","+a+"L-"+a+",-"+a+"M"+a+",-"+a+"L-"+a+","+a+"M"+a+","+a+"H-"+a+"V-"+a+"H"+a+"Z")},needLine:!0,noDot:!0},"diamond-cross":{n:31,f:function(e,r,t){if(Er(r))return qr;var a=We(e*1.3,2);return Pr(r,t,"M"+a+",0L0,"+a+"L-"+a+",0L0,-"+a+"ZM0,-"+a+"V"+a+"M-"+a+",0H"+a)},needLine:!0,noDot:!0},"diamond-x":{n:32,f:function(e,r,t){if(Er(r))return qr;var a=We(e*1.3,2),n=We(e*.65,2);return Pr(r,t,"M"+a+",0L0,"+a+"L-"+a+",0L0,-"+a+"ZM-"+n+",-"+n+"L"+n+","+n+"M-"+n+","+n+"L"+n+",-"+n)},needLine:!0,noDot:!0},"cross-thin":{n:33,f:function(e,r,t){if(Er(r))return qr;var a=We(e*1.4,2);return Pr(r,t,"M0,"+a+"V-"+a+"M"+a+",0H-"+a)},needLine:!0,noDot:!0,noFill:!0},"x-thin":{n:34,f:function(e,r,t){if(Er(r))return qr;var a=We(e,2);return Pr(r,t,"M"+a+","+a+"L-"+a+",-"+a+"M"+a+",-"+a+"L-"+a+","+a)},needLine:!0,noDot:!0,noFill:!0},asterisk:{n:35,f:function(e,r,t){if(Er(r))return qr;var a=We(e*1.2,2),n=We(e*.85,2);return Pr(r,t,"M0,"+a+"V-"+a+"M"+a+",0H-"+a+"M"+n+","+n+"L-"+n+",-"+n+"M"+n+",-"+n+"L-"+n+","+n)},needLine:!0,noDot:!0,noFill:!0},hash:{n:36,f:function(e,r,t){if(Er(r))return qr;var a=We(e/2,2),n=We(e,2);return Pr(r,t,"M"+a+","+n+"V-"+n+"M"+(a-n)+",-"+n+"V"+n+"M"+n+","+a+"H-"+n+"M-"+n+","+(a-n)+"H"+n)},needLine:!0,noFill:!0},"y-up":{n:37,f:function(e,r,t){if(Er(r))return qr;var a=We(e*1.2,2),n=We(e*1.6,2),i=We(e*.8,2);return Pr(r,t,"M-"+a+","+i+"L0,0M"+a+","+i+"L0,0M0,-"+n+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-down":{n:38,f:function(e,r,t){if(Er(r))return qr;var a=We(e*1.2,2),n=We(e*1.6,2),i=We(e*.8,2);return Pr(r,t,"M-"+a+",-"+i+"L0,0M"+a+",-"+i+"L0,0M0,"+n+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-left":{n:39,f:function(e,r,t){if(Er(r))return qr;var a=We(e*1.2,2),n=We(e*1.6,2),i=We(e*.8,2);return Pr(r,t,"M"+i+","+a+"L0,0M"+i+",-"+a+"L0,0M-"+n+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-right":{n:40,f:function(e,r,t){if(Er(r))return qr;var a=We(e*1.2,2),n=We(e*1.6,2),i=We(e*.8,2);return Pr(r,t,"M-"+i+","+a+"L0,0M-"+i+",-"+a+"L0,0M"+n+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"line-ew":{n:41,f:function(e,r,t){if(Er(r))return qr;var a=We(e*1.4,2);return Pr(r,t,"M"+a+",0H-"+a)},needLine:!0,noDot:!0,noFill:!0},"line-ns":{n:42,f:function(e,r,t){if(Er(r))return qr;var a=We(e*1.4,2);return Pr(r,t,"M0,"+a+"V-"+a)},needLine:!0,noDot:!0,noFill:!0},"line-ne":{n:43,f:function(e,r,t){if(Er(r))return qr;var a=We(e,2);return Pr(r,t,"M"+a+",-"+a+"L-"+a+","+a)},needLine:!0,noDot:!0,noFill:!0},"line-nw":{n:44,f:function(e,r,t){if(Er(r))return qr;var a=We(e,2);return Pr(r,t,"M"+a+","+a+"L-"+a+",-"+a)},needLine:!0,noDot:!0,noFill:!0},"arrow-up":{n:45,f:function(e,r,t){if(Er(r))return qr;var a=We(e,2),n=We(e*2,2);return Pr(r,t,"M0,0L-"+a+","+n+"H"+a+"Z")},backoff:1,noDot:!0},"arrow-down":{n:46,f:function(e,r,t){if(Er(r))return qr;var a=We(e,2),n=We(e*2,2);return Pr(r,t,"M0,0L-"+a+",-"+n+"H"+a+"Z")},noDot:!0},"arrow-left":{n:47,f:function(e,r,t){if(Er(r))return qr;var a=We(e*2,2),n=We(e,2);return Pr(r,t,"M0,0L"+a+",-"+n+"V"+n+"Z")},noDot:!0},"arrow-right":{n:48,f:function(e,r,t){if(Er(r))return qr;var a=We(e*2,2),n=We(e,2);return Pr(r,t,"M0,0L-"+a+",-"+n+"V"+n+"Z")},noDot:!0},"arrow-bar-up":{n:49,f:function(e,r,t){if(Er(r))return qr;var a=We(e,2),n=We(e*2,2);return Pr(r,t,"M-"+a+",0H"+a+"M0,0L-"+a+","+n+"H"+a+"Z")},backoff:1,needLine:!0,noDot:!0},"arrow-bar-down":{n:50,f:function(e,r,t){if(Er(r))return qr;var a=We(e,2),n=We(e*2,2);return Pr(r,t,"M-"+a+",0H"+a+"M0,0L-"+a+",-"+n+"H"+a+"Z")},needLine:!0,noDot:!0},"arrow-bar-left":{n:51,f:function(e,r,t){if(Er(r))return qr;var a=We(e*2,2),n=We(e,2);return Pr(r,t,"M0,-"+n+"V"+n+"M0,0L"+a+",-"+n+"V"+n+"Z")},needLine:!0,noDot:!0},"arrow-bar-right":{n:52,f:function(e,r,t){if(Er(r))return qr;var a=We(e*2,2),n=We(e,2);return Pr(r,t,"M0,-"+n+"V"+n+"M0,0L-"+a+",-"+n+"V"+n+"Z")},needLine:!0,noDot:!0},arrow:{n:53,f:function(e,r,t){if(Er(r))return qr;var a=Ky/2.5,n=2*e*jy(a),i=2*e*Qy(a);return Pr(r,t,"M0,0L"+-n+","+i+"L"+n+","+i+"Z")},backoff:.9,noDot:!0},"arrow-wide":{n:54,f:function(e,r,t){if(Er(r))return qr;var a=Ky/4,n=2*e*jy(a),i=2*e*Qy(a);return Pr(r,t,"M0,0L"+-n+","+i+"A "+2*e+","+2*e+" 0 0 1 "+n+","+i+"Z")},backoff:.4,noDot:!0}};function Er(e){return e===null}var QA,ek,rk,tk;function Pr(e,r,t){if((!e||e%360===0)&&!r)return t;if(rk===e&&tk===r&&QA===t)return ek;rk=e,tk=r,QA=t;function a(y,x){var w=jy(y),M=Qy(y),b=x[0],T=x[1]+(r||0);return[b*w-T*M,b*M+T*w]}for(var n=e/180*Ky,i=0,l=0,o=Dre(t),s="",u=0;u{"use strict";var wa=Or(),lt=Fe(),Lre=lt.numberFormat,oo=Zr(),l1=kr(),pa=Nr(),qre=Zy(),Rf=lt.strTranslate,o1=La(),Ere=(fs(),Xe(us)),Pre=(Ja(),Xe(Za)),Rre=Pre.LINE_SPACING,hk=(y2(),Xe(g2)).DESELECTDIM,zre=Rn(),Fre=ZA(),Nre=Si().appendArrayPointValue,er={};Tk.exports=er;er.font=function(e,r){var t=r.variant,a=r.style,n=r.weight,i=r.color,l=r.size,o=r.family,s=r.shadow,u=r.lineposition,f=r.textcase;o&&e.style("font-family",o),l+1&&e.style("font-size",l+"px"),i&&e.call(pa.fill,i),n&&e.style("font-weight",n),a&&e.style("font-style",a),t&&e.style("font-variant",t),f&&e.style("text-transform",e3(Bre(f))),s&&e.style("text-shadow",s==="auto"?o1.makeTextShadow(pa.contrast(i)):e3(s)),u&&e.style("text-decoration-line",e3(Hre(u)))};function e3(e){return e==="none"?void 0:e}var Ire={normal:"none",lower:"lowercase",upper:"uppercase","word caps":"capitalize"};function Bre(e){return Ire[e]}function Hre(e){return e.replace("under","underline").replace("over","overline").replace("through","line-through").split("+").join(" ")}er.setPosition=function(e,r,t){e.attr("x",r).attr("y",t)};er.setSize=function(e,r,t){e.attr("width",r).attr("height",t)};er.setRect=function(e,r,t,a,n){e.call(er.setPosition,r,t).call(er.setSize,a,n)};er.translatePoint=function(e,r,t,a){var n=t.c2p(e.x),i=a.c2p(e.y);if(oo(n)&&oo(i)&&r.node())r.node().nodeName==="text"?r.attr("x",n).attr("y",i):r.attr("transform",Rf(n,i));else return!1;return!0};er.translatePoints=function(e,r,t){e.each(function(a){var n=wa.select(this);er.translatePoint(a,n,r,t)})};er.hideOutsideRangePoint=function(e,r,t,a,n,i){r.attr("display",t.isPtWithinRange(e,n)&&a.isPtWithinRange(e,i)?null:"none")};er.hideOutsideRangePoints=function(e,r){if(r._hasClipOnAxisFalse){var t=r.xaxis,a=r.yaxis;e.each(function(n){var i=n[0].trace,l=i.xcalendar,o=i.ycalendar,s=l1.traceIs(i,"bar-like")?".bartext":".point,.textpoint";e.selectAll(s).each(function(u){er.hideOutsideRangePoint(u,wa.select(this),t,a,l,o)})})}};er.crispRound=function(e,r,t){return!r||!oo(r)?t||0:e._context.staticPlot?r:r<1?1:Math.round(r)};er.singleLineStyle=function(e,r,t,a,n){r.style("fill","none");var i=(((e||[])[0]||{}).trace||{}).line||{},l=t||i.width||0,o=n||i.dash||"";pa.stroke(r,a||i.color),er.dashLine(r,o,l)};er.lineGroupStyle=function(e,r,t,a){e.style("fill","none").each(function(n){var i=(((n||[])[0]||{}).trace||{}).line||{},l=r||i.width||0,o=a||i.dash||"";wa.select(this).call(pa.stroke,t||i.color).call(er.dashLine,o,l)})};er.dashLine=function(e,r,t){t=+t||0,r=er.dashStyle(r,t),e.style({"stroke-dasharray":r,"stroke-width":t+"px"})};er.dashStyle=function(e,r){r=+r||1;var t=Math.max(r,3);return e==="solid"?e="":e==="dot"?e=t+"px,"+t+"px":e==="dash"?e=3*t+"px,"+3*t+"px":e==="longdash"?e=5*t+"px,"+5*t+"px":e==="dashdot"?e=3*t+"px,"+t+"px,"+t+"px,"+t+"px":e==="longdashdot"&&(e=5*t+"px,"+2*t+"px,"+t+"px,"+2*t+"px"),e};function pk(e,r,t,a){var n=r.fillpattern,i=r.fillgradient,l=er.getPatternAttr,o=n&&(l(n.shape,0,"")||l(n.path,0,""));if(o){var s=l(n.bgcolor,0,null),u=l(n.fgcolor,0,null),f=n.fgopacity,c=l(n.size,0,8),d=l(n.solidity,0,.3),h=r.uid;er.pattern(e,"point",t,h,o,c,d,void 0,n.fillmode,s,u,f)}else if(i&&i.type!=="none"){var p=i.type,g="scatterfill-"+r.uid;if(a&&(g="legendfill-"+r.uid),!a&&(i.start!==void 0||i.stop!==void 0)){var y,x;p==="horizontal"?(y={x:i.start,y:0},x={x:i.stop,y:0}):p==="vertical"&&(y={x:0,y:i.start},x={x:0,y:i.stop}),y.x=r._xA.c2p(y.x===void 0?r._extremes.x.min[0].val:y.x,!0),y.y=r._yA.c2p(y.y===void 0?r._extremes.y.min[0].val:y.y,!0),x.x=r._xA.c2p(x.x===void 0?r._extremes.x.max[0].val:x.x,!0),x.y=r._yA.c2p(x.y===void 0?r._extremes.y.max[0].val:x.y,!0),e.call(yk,t,g,"linear",i.colorscale,"fill",y,x,!0,!1)}else p==="horizontal"&&(p=p+"reversed"),e.call(er.gradient,t,g,p,i.colorscale,"fill")}else r.fillcolor&&e.call(pa.fill,r.fillcolor)}er.singleFillStyle=function(e,r){var t=wa.select(e.node()),a=t.data(),n=((a[0]||[])[0]||{}).trace||{};pk(e,n,r,!1)};er.fillGroupStyle=function(e,r,t){e.style("stroke-width",0).each(function(a){var n=wa.select(this);a[0].trace&&pk(n,a[0].trace,r,t)})};var ik=nk();er.symbolNames=[];er.symbolFuncs=[];er.symbolBackOffs=[];er.symbolNeedLines={};er.symbolNoDot={};er.symbolNoFill={};er.symbolList=[];Object.keys(ik).forEach(function(e){var r=ik[e],t=r.n;er.symbolList.push(t,String(t),e,t+100,String(t+100),e+"-open"),er.symbolNames[t]=e,er.symbolFuncs[t]=r.f,er.symbolBackOffs[t]=r.backoff||0,r.needLine&&(er.symbolNeedLines[t]=!0),r.noDot?er.symbolNoDot[t]=!0:er.symbolList.push(t+200,String(t+200),e+"-dot",t+300,String(t+300),e+"-open-dot"),r.noFill&&(er.symbolNoFill[t]=!0)});var Ore=er.symbolNames.length,Yre="M0,0.5L0.5,0L0,-0.5L-0.5,0Z";er.symbolNumber=function(e){if(oo(e))e=+e;else if(typeof e=="string"){var r=0;e.indexOf("-open")>0&&(r=100,e=e.replace("-open","")),e.indexOf("-dot")>0&&(r+=200,e=e.replace("-dot","")),e=er.symbolNames.indexOf(e),e>=0&&(e+=r)}return e%100>=Ore||e>=400?0:Math.floor(Math.max(e,0))};function mk(e,r,t,a){var n=e%100;return er.symbolFuncs[n](r,t,a)+(e>=200?Yre:"")}var lk=Lre("~f"),gk={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}};er.gradient=function(e,r,t,a,n,i){var l=gk[a];return yk(e,r,t,l.type,n,i,l.start,l.stop,!1,l.reversed)};function yk(e,r,t,a,n,i,l,o,s,u){var f=n.length,c;a==="linear"?c={node:"linearGradient",attrs:{x1:l.x,y1:l.y,x2:o.x,y2:o.y,gradientUnits:s?"userSpaceOnUse":"objectBoundingBox"},reversed:u}:a==="radial"&&(c={node:"radialGradient",reversed:u});for(var d=new Array(f),h=0;h=0&&e.i===void 0&&(e.i=i.i),r.style("opacity",a.selectedOpacityFn?a.selectedOpacityFn(e):e.mo===void 0?l.opacity:e.mo),a.ms2mrc){var s;e.ms==="various"||l.size==="various"?s=3:s=a.ms2mrc(e.ms),e.mrc=s,a.selectedSizeFn&&(s=e.mrc=a.selectedSizeFn(e));var u=er.symbolNumber(e.mx||l.symbol)||0;e.om=u%200>=100;var f=o3(e,t),c=l3(e,t);r.attr("d",mk(u,s,f,c))}var d=!1,h,p,g;if(e.so)g=o.outlierwidth,p=o.outliercolor,h=l.outliercolor;else{var y=(o||{}).width;g=(e.mlw+1||y+1||(e.trace?(e.trace.marker.line||{}).width:0)+1)-1||0,"mlc"in e?p=e.mlcc=a.lineScale(e.mlc):lt.isArrayOrTypedArray(o.color)?p=pa.defaultLine:p=o.color,lt.isArrayOrTypedArray(l.color)&&(h=pa.defaultLine,d=!0),"mc"in e?h=e.mcc=a.markerScale(e.mc):h=l.color||l.colors||"rgba(0,0,0,0)",a.selectedColorFn&&(h=a.selectedColorFn(e))}let x=e.mld||(o||{}).dash;if(x&&er.dashLine(r,x,g),e.om)r.call(pa.stroke,h).style({"stroke-width":(g||1)+"px",fill:"none"});else{r.style("stroke-width",(e.isBlank?0:g)+"px");var w=l.gradient,M=e.mgt;M?d=!0:M=w&&w.type,lt.isArrayOrTypedArray(M)&&(M=M[0],gk[M]||(M=0));var b=l.pattern,T=er.getPatternAttr,S=b&&(T(b.shape,e.i,"")||T(b.path,e.i,""));if(M&&M!=="none"){var C=e.mgc;C?d=!0:C=w.color;var L=t.uid;d&&(L+="-"+e.i),er.gradient(r,n,L,M,[[0,C],[1,h]],"fill")}else if(S){var q=!1,P=b.fgcolor;!P&&i&&i.color&&(P=i.color,q=!0);var z=T(P,e.i,i&&i.color||null),N=T(b.bgcolor,e.i,null),H=b.fgopacity,B=T(b.size,e.i,8),I=T(b.solidity,e.i,.3);q=q||e.mcc||lt.isArrayOrTypedArray(b.shape)||lt.isArrayOrTypedArray(b.path)||lt.isArrayOrTypedArray(b.bgcolor)||lt.isArrayOrTypedArray(b.fgcolor)||lt.isArrayOrTypedArray(b.size)||lt.isArrayOrTypedArray(b.solidity);var V=t.uid;q&&(V+="-"+e.i),er.pattern(r,"point",n,V,S,B,I,e.mcc,b.fillmode,N,z,H)}else lt.isArrayOrTypedArray(h)?pa.fill(r,h[e.i]):pa.fill(r,h);g&&pa.stroke(r,p)}};er.makePointStyleFns=function(e){var r={},t=e.marker;return r.markerScale=er.tryColorscale(t,""),r.lineScale=er.tryColorscale(t,"line"),l1.traceIs(e,"symbols")&&(r.ms2mrc=zre.isBubble(e)?Fre(e):function(){return(t.size||6)/2}),e.selectedpoints&<.extendFlat(r,er.makeSelectedPointStyleFns(e)),r};er.makeSelectedPointStyleFns=function(e){var r={},t=e.selected||{},a=e.unselected||{},n=e.marker||{},i=t.marker||{},l=a.marker||{},o=n.opacity,s=i.opacity,u=l.opacity,f=s!==void 0,c=u!==void 0;(lt.isArrayOrTypedArray(o)||f||c)&&(r.selectedOpacityFn=function(b){var T=b.mo===void 0?n.opacity:b.mo;return b.selected?f?s:T:c?u:hk*T});var d=n.color,h=i.color,p=l.color;(h||p)&&(r.selectedColorFn=function(b){var T=b.mcc||d;return b.selected?h||T:p||T});var g=n.size,y=i.size,x=l.size,w=y!==void 0,M=x!==void 0;return l1.traceIs(e,"symbols")&&(w||M)&&(r.selectedSizeFn=function(b){var T=b.mrc||g/2;return b.selected?w?y/2:T:M?x/2:T}),r};er.makeSelectedTextStyleFns=function(e){var r={},t=e.selected||{},a=e.unselected||{},n=e.textfont||{},i=t.textfont||{},l=a.textfont||{},o=n.color,s=i.color,u=l.color;return r.selectedTextColorFn=function(f){var c=f.tc||o;return f.selected?s||c:u||(s?c:pa.addOpacity(c,hk))},r};er.selectedPointStyle=function(e,r){if(!(!e.size()||!r.selectedpoints)){var t=er.makeSelectedPointStyleFns(r),a=r.marker||{},n=[];t.selectedOpacityFn&&n.push(function(i,l){i.style("opacity",t.selectedOpacityFn(l))}),t.selectedColorFn&&n.push(function(i,l){pa.fill(i,t.selectedColorFn(l))}),t.selectedSizeFn&&n.push(function(i,l){var o=l.mx||a.symbol||0,s=t.selectedSizeFn(l);i.attr("d",mk(er.symbolNumber(o),s,o3(l,r),l3(l,r))),l.mrc2=s}),n.length&&e.each(function(i){for(var l=wa.select(this),o=0;o0?t:0}er.textPointStyle=function(e,r,t){if(e.size()){var a;if(r.selectedpoints){var n=er.makeSelectedTextStyleFns(r);a=n.selectedTextColorFn}var i=r.texttemplate,l=t._fullLayout;e.each(function(o){var s=wa.select(this),u=i?lt.extractOption(o,r,"txt","texttemplate"):lt.extractOption(o,r,"tx","text");if(!u&&u!==0){s.remove();return}if(i){var f=r._module.formatLabels,c=f?f(o,r,l):{},d={};Nre(d,r,o.i),u=lt.texttemplateString({data:[d,o,r._meta],fallback:r.texttemplatefallback,labels:c,locale:l._d3locale,template:u})}var h=o.tp||r.textposition,p=xk(o,r),g=a?a(o):o.tc||r.textfont.color;s.call(er.font,{family:o.tf||r.textfont.family,weight:o.tw||r.textfont.weight,style:o.ty||r.textfont.style,variant:o.tv||r.textfont.variant,textcase:o.tC||r.textfont.textcase,lineposition:o.tE||r.textfont.lineposition,shadow:o.tS||r.textfont.shadow,size:p,color:g}).text(u).call(o1.convertToTspans,t).call(bk,h,p,o.mrc)})}};er.selectedTextStyle=function(e,r){if(!(!e.size()||!r.selectedpoints)){var t=er.makeSelectedTextStyleFns(r);e.each(function(a){var n=wa.select(this),i=t.selectedTextColorFn(a),l=a.tp||r.textposition,o=xk(a,r);pa.fill(n,i);var s=l1.traceIs(r,"bar-like");bk(n,l,o,a.mrc2||a.mrc,s)})}};var ok=.5;er.smoothopen=function(e,r){if(e.length<3)return"M"+e.join("L");var t="M"+e[0],a=[],n;for(n=1;n=s||b>=f&&b<=s)&&(T<=c&&T>=u||T>=c&&T<=u)&&(e=[b,T])}return e}er.applyBackoff=Mk;er.makeTester=function(){var e=lt.ensureSingleById(wa.select("body"),"svg","js-plotly-tester",function(t){t.attr(Ere.svgAttrs).style({position:"absolute",left:"-10000px",top:"-10000px",width:"9000px",height:"9000px","z-index":"1"})}),r=lt.ensureSingle(e,"path","js-reference-point",function(t){t.attr("d","M0,0H1V1H0Z").style({"stroke-width":0,fill:"black"})});er.tester=e,er.testref=r};er.savedBBoxes={};var t3=0,Vre=1e4;er.bBox=function(e,r,t){t||(t=sk(e));var a;if(t){if(a=er.savedBBoxes[t],a)return lt.extendFlat({},a)}else if(e.childNodes.length===1){var n=e.childNodes[0];if(t=sk(n),t){var i=+n.getAttribute("x")||0,l=+n.getAttribute("y")||0,o=n.getAttribute("transform");if(!o){var s=er.bBox(n,!1,t);return i&&(s.left+=i,s.right+=i),l&&(s.top+=l,s.bottom+=l),s}if(t+="~"+i+"~"+l+"~"+o,a=er.savedBBoxes[t],a)return lt.extendFlat({},a)}}var u,f;r?u=e:(f=er.tester.node(),u=e.cloneNode(!0),f.appendChild(u)),wa.select(u).attr("transform",null).call(o1.positionText,0,0);var c=u.getBoundingClientRect(),d=er.testref.node().getBoundingClientRect();r||f.removeChild(u);var h={height:c.height,width:c.width,left:c.left-d.left,top:c.top-d.top,right:c.right-d.left,bottom:c.bottom-d.top};return t3>=Vre&&(er.savedBBoxes={},t3=0),t&&(er.savedBBoxes[t]=h),t3++,lt.extendFlat({},h)};function sk(e){var r=e.getAttribute("data-unformatted");if(r!==null)return r+e.getAttribute("data-math")+e.getAttribute("text-anchor")+e.getAttribute("style")}er.setClipUrl=function(e,r,t){e.attr("clip-path",i3(r,t))};function i3(e,r){if(!e)return null;var t=r._context,a=t._exportedPlot?"":t._baseUrl||"";return a?"url('"+a+"#"+e+"')":"url(#"+e+")"}er.getTranslate=function(e){var r=/.*\btranslate\((-?\d*\.?\d*)[^-\d]*(-?\d*\.?\d*)[^\d].*/,t=e.attr?"attr":"getAttribute",a=e[t]("transform")||"",n=a.replace(r,function(i,l,o){return[l,o].join(" ")}).split(" ");return{x:+n[0]||0,y:+n[1]||0}};er.setTranslate=function(e,r,t){var a=/(\btranslate\(.*?\);?)/,n=e.attr?"attr":"getAttribute",i=e.attr?"attr":"setAttribute",l=e[n]("transform")||"";return r=r||0,t=t||0,l=l.replace(a,"").trim(),l+=Rf(r,t),l=l.trim(),e[i]("transform",l),l};er.getScale=function(e){var r=/.*\bscale\((\d*\.?\d*)[^\d]*(\d*\.?\d*)[^\d].*/,t=e.attr?"attr":"getAttribute",a=e[t]("transform")||"",n=a.replace(r,function(i,l,o){return[l,o].join(" ")}).split(" ");return{x:+n[0]||1,y:+n[1]||1}};er.setScale=function(e,r,t){var a=/(\bscale\(.*?\);?)/,n=e.attr?"attr":"getAttribute",i=e.attr?"attr":"setAttribute",l=e[n]("transform")||"";return r=r||1,t=t||1,l=l.replace(a,"").trim(),l+="scale("+r+","+t+")",l=l.trim(),e[i]("transform",l),l};var Xre=/\s*sc.*/;er.setPointGroupScale=function(e,r,t){if(r=r||1,t=t||1,!!e){var a=r===1&&t===1?"":"scale("+r+","+t+")";e.each(function(){var n=(this.getAttribute("transform")||"").replace(Xre,"");n+=a,n=n.trim(),this.setAttribute("transform",n)})}};var Wre=/translate\([^)]*\)\s*$/;er.setTextPointsScale=function(e,r,t){e&&e.each(function(){var a,n=wa.select(this),i=n.select("text");if(i.node()){var l=parseFloat(i.attr("x")||0),o=parseFloat(i.attr("y")||0),s=(n.attr("transform")||"").match(Wre);r===1&&t===1?a=[]:a=[Rf(l,o),"scale("+r+","+t+")",Rf(-l,-o)],s&&a.push(s),n.attr("transform",a.join(""))}})};function l3(e,r){var t;return e&&(t=e.mf),t===void 0&&(t=r.marker&&r.marker.standoff||0),!r._geo&&!r._xA?-t:t}er.getMarkerStandoff=l3;var Pf=Math.atan2,ds=Math.cos,Y0=Math.sin;function uk(e,r){var t=r[0],a=r[1];return[t*ds(e)-a*Y0(e),t*Y0(e)+a*ds(e)]}var fk,ck,vk,dk,a3,n3;function o3(e,r){var t=e.ma;t===void 0&&(t=r.marker.angle,(!oo(t)||lt.isArrayOrTypedArray(t))&&(t=0));var a,n,i=r.marker.angleref;if(i==="previous"||i==="north"){if(r._geo){var l=r._geo.project(e.lonlat);a=l[0],n=l[1]}else{var o=r._xA,s=r._yA;if(o&&s)a=o.c2p(e.x),n=s.c2p(e.y);else return 90}if(r._geo){var u=e.lonlat[0],f=e.lonlat[1],c=r._geo.project([u,f+1e-5]),d=r._geo.project([u+1e-5,f]),h=Pf(d[1]-n,d[0]-a),p=Pf(c[1]-n,c[0]-a),g;if(i==="north")g=t/180*Math.PI;else if(i==="previous"){var y=u/180*Math.PI,x=f/180*Math.PI,w=fk/180*Math.PI,M=ck/180*Math.PI,b=w-y,T=ds(M)*Y0(b),S=Y0(M)*ds(x)-ds(M)*Y0(x)*ds(b);g=-Pf(T,S)-Math.PI,fk=u,ck=f}var C=uk(h,[ds(g),0]),L=uk(p,[Y0(g),0]);t=Pf(C[1]+L[1],C[0]+L[0])/Math.PI*180,i==="previous"&&!(n3===r.uid&&e.i===a3+1)&&(t=null)}if(i==="previous"&&!r._geo)if(n3===r.uid&&e.i===a3+1&&oo(a)&&oo(n)){var q=a-vk,P=n-dk,z=r.line&&r.line.shape||"",N=z.slice(z.length-1);N==="h"&&(P=0),N==="v"&&(q=0),t+=Pf(P,q)/Math.PI*180+90}else t=null}return vk=a,dk=n,a3=e.i,n3=r.uid,t}er.getMarkerAngle=o3});var zf=J((n5e,Sk)=>{"use strict";var U0=Or(),Zre=Zr(),Jre=na(),s3=kr(),ms=Fe(),Ak=ms.strTranslate,s1=ot(),u1=Nr(),G0=La(),kk=(y2(),Xe(g2)),$re=(Ja(),Xe(Za)).OPPOSITE_SIDE,Ck=/ [XY][0-9]* /,u3=1.6,f3=1.6;function Kre(e,r,t){var a=e._fullLayout,n=t.propContainer,i=t.propName,l=t.placeholder,o=t.traceIndex,s=t.avoid||{},u=t.attributes,f=t.transform,c=t.containerGroup,d=1,h=n.title,p=(h&&h.text?h.text:"").trim(),g=!1,y=h&&h.font?h.font:{},x=y.family,w=y.size,M=y.color,b=y.weight,T=y.style,S=y.variant,C=y.textcase,L=y.lineposition,q=y.shadow,P=t.subtitlePropName,z=!!P,N=t.subtitlePlaceholder,H=(n.title||{}).subtitle||{text:"",font:{}},B=(H.text||"").trim(),I=!1,V=1,O=H.font,U=O.family,W=O.size,Z=O.color,G=O.weight,j=O.style,ie=O.variant,pe=O.textcase,ve=O.lineposition,Q=O.shadow,we;i==="title.text"?we="titleText":i.indexOf("axis")!==-1?we="axisTitleText":i.indexOf("colorbar")!==-1&&(we="colorbarTitleText");var le=e._context.edits[we];function Se($e,Qe){return $e===void 0||Qe===void 0?!1:$e.replace(Ck," % ")===Qe.replace(Ck," % ")}p===""?d=0:Se(p,l)&&(le||(p=""),d=.2,g=!0),z&&(B===""?V=0:Se(B,N)&&(le||(B=""),V=.2,I=!0)),t._meta?p=ms.templateString(p,t._meta):a._meta&&(p=ms.templateString(p,a._meta));var ce=p||B||le,de;c||(c=ms.ensureSingle(a._infolayer,"g","g-"+r),de=a._hColorbarMoveTitle);var Ce=c.selectAll("text."+r).data(ce?[0]:[]);Ce.enter().append("text"),Ce.text(p).attr("class",r),Ce.exit().remove();var Ie=null,_e=r+"-subtitle",De=B||le;if(z&&(Ie=c.selectAll("text."+_e).data(De?[0]:[]),Ie.enter().append("text"),Ie.text(B).attr("class",_e),Ie.exit().remove()),!ce)return c;function Te($e,Qe){ms.syncOrAsync([Ae,ke],{title:$e,subtitle:Qe})}function Ae($e){var Qe=$e.title,Le=$e.subtitle,Be;!f&&de&&(f={}),f?(Be="",f.rotate&&(Be+="rotate("+[f.rotate,u.x,u.y]+")"),(f.offset||de)&&(Be+=Ak(0,(f.offset||0)-(de||0)))):Be=null,Qe.attr("transform",Be);function tr(ne){if(ne){var me=U0.select(ne.node().parentNode).select("."+_e);if(!me.empty()){var ze=ne.node().getBBox();if(ze.height){var Ve=ze.y+ze.height+u3*W;me.attr("y",Ve)}}}}if(Qe.style("opacity",d*u1.opacity(M)).call(s1.font,{color:u1.rgb(M),size:U0.round(w,2),family:x,weight:b,style:T,variant:S,textcase:C,shadow:q,lineposition:L}).attr(u).call(G0.convertToTspans,e,tr),Le&&!Le.empty()){var re=c.select("."+r+"-math-group"),ge=Qe.node().getBBox(),Ge=re.node()?re.node().getBBox():void 0,cr=Ge?Ge.y+Ge.height+u3*W:ge.y+ge.height+f3*W,mr=ms.extendFlat({},u,{y:cr});Le.attr("transform",Be),Le.style("opacity",V*u1.opacity(Z)).call(s1.font,{color:u1.rgb(Z),size:U0.round(W,2),family:U,weight:G,style:j,variant:ie,textcase:pe,shadow:Q,lineposition:ve}).attr(mr).call(G0.convertToTspans,e)}return Jre.previousPromises(e)}function ke($e){var Qe=$e.title,Le=U0.select(Qe.node().parentNode);if(s&&s.selection&&s.side&&p){Le.attr("transform",null);var Be=$re[s.side],tr=s.side==="left"||s.side==="top"?-1:1,re=Zre(s.pad)?s.pad:2,ge=s1.bBox(Le.node()),Ge={t:0,b:0,l:0,r:0},cr=e._fullLayout._reservedMargin;for(var mr in cr)for(var ne in cr[mr]){var me=cr[mr][ne];Ge[ne]=Math.max(Ge[ne],me)}var ze={left:Ge.l,top:Ge.t,right:a.width-Ge.r,bottom:a.height-Ge.b},Ve=s.maxShift||tr*(ze[s.side]-ge[s.side]),Ne=0;if(Ve<0)Ne=Ve;else{var Ze=s.offsetLeft||0,Ke=s.offsetTop||0;ge.left-=Ze,ge.right-=Ze,ge.top-=Ke,ge.bottom-=Ke,s.selection.each(function(){var xr=s1.bBox(this);ms.bBoxIntersect(ge,xr,re)&&(Ne=Math.max(Ne,tr*(xr[s.side]-ge[Be])+re))}),Ne=Math.min(Ve,Ne),n._titleScoot=Math.abs(Ne)}if(Ne>0||Ve<0){var _r={left:[-Ne,0],right:[Ne,0],top:[0,-Ne],bottom:[0,Ne]}[s.side];Le.attr("transform",Ak(_r[0],_r[1]))}}}Ce.call(Te,Ie);function Re($e,Qe){$e.text(Qe).on("mouseover.opacity",function(){U0.select(this).transition().duration(kk.SHOW_PLACEHOLDER).style("opacity",1)}).on("mouseout.opacity",function(){U0.select(this).transition().duration(kk.HIDE_PLACEHOLDER).style("opacity",0)})}if(le&&(p?Ce.on(".opacity",null):(Re(Ce,l),g=!0),Ce.call(G0.makeEditable,{gd:e}).on("edit",function($e){o!==void 0?s3.call("_guiRestyle",e,i,$e,o):s3.call("_guiRelayout",e,i,$e)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(Te)}).on("input",function($e){this.text($e||" ").call(G0.positionText,u.x,u.y)}),z)){if(z&&!p){var Me=Ce.node().getBBox(),Ue=Me.y+Me.height+f3*W;Ie.attr("y",Ue)}B?Ie.on(".opacity",null):(Re(Ie,N),I=!0),Ie.call(G0.makeEditable,{gd:e}).on("edit",function($e){s3.call("_guiRelayout",e,"title.subtitle.text",$e)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(Te)}).on("input",function($e){this.text($e||" ").call(G0.positionText,Ie.attr("x"),Ie.attr("y"))})}return Ce.classed("js-placeholder",g),Ie&&!Ie.empty()&&Ie.classed("js-placeholder",I),c}Sk.exports={draw:Kre,SUBTITLE_PADDING_EM:f3,SUBTITLE_PADDING_MATHJAX_EM:u3}});var g1=J((i5e,Pk)=>{"use strict";var jre=Or(),Qre=s0().utcFormat,ht=Fe(),ete=ht.numberFormat,rl=Zr(),so=ht.cleanNumber,rte=ht.ms2DateTime,Dk=ht.dateTime2ms,tl=ht.ensureNumber,Lk=ht.isArrayOrTypedArray,uo=(ca(),Xe(ga)),f1=uo.FP_SAFE,Di=uo.BADNUM,tte=uo.LOG_CLIP,ate=uo.ONEWEEK,c1=uo.ONEDAY,v1=uo.ONEHOUR,qk=uo.ONEMIN,Ek=uo.ONESEC,d1=ha(),m1=(_a(),Xe(xa)),h1=m1.HOUR_PATTERN,p1=m1.WEEKDAY_PATTERN;function Ff(e){return Math.pow(10,e)}function c3(e){return e!=null}Pk.exports=function(r,t){t=t||{};var a=r._id||"x",n=a.charAt(0);function i(b,T){if(b>0)return Math.log(b)/Math.LN10;if(b<=0&&T&&r.range&&r.range.length===2){var S=r.range[0],C=r.range[1];return .5*(S+C-2*tte*Math.abs(S-C))}else return Di}function l(b,T,S,C){if((C||{}).msUTC&&rl(b))return+b;var L=Dk(b,S||r.calendar);if(L===Di)if(rl(b)){b=+b;var q=Math.floor(ht.mod(b+.05,1)*10),P=Math.round(b-q/10);L=Dk(new Date(P))+q/10}else return Di;return L}function o(b,T,S){return rte(b,T,S||r.calendar)}function s(b){return r._categories[Math.round(b)]}function u(b){if(c3(b)){if(r._categoriesMap===void 0&&(r._categoriesMap={}),r._categoriesMap[b]!==void 0)return r._categoriesMap[b];r._categories.push(typeof b=="number"?String(b):b);var T=r._categories.length-1;return r._categoriesMap[b]=T,T}return Di}function f(b,T){for(var S=new Array(T),C=0;Cr.range[1]&&(S=!S);for(var C=S?-1:1,L=C*b,q=0,P=0;PN)q=P+1;else{q=L<(z+N)/2?P:P+1;break}}var H=r._B[q]||0;return isFinite(H)?p(b,r._m2,H):0},x=function(b){var T=r._rangebreaks.length;if(!T)return g(b,r._m,r._b);for(var S=0,C=0;Cr._rangebreaks[C].pmax&&(S=C+1);return g(b,r._m2,r._B[S])}}r.c2l=r.type==="log"?i:tl,r.l2c=r.type==="log"?Ff:tl,r.l2p=y,r.p2l=x,r.c2p=r.type==="log"?function(b,T){return y(i(b,T))}:y,r.p2c=r.type==="log"?function(b){return Ff(x(b))}:x,["linear","-"].indexOf(r.type)!==-1?(r.d2r=r.r2d=r.d2c=r.r2c=r.d2l=r.r2l=so,r.c2d=r.c2r=r.l2d=r.l2r=tl,r.d2p=r.r2p=function(b){return r.l2p(so(b))},r.p2d=r.p2r=x,r.cleanPos=tl):r.type==="log"?(r.d2r=r.d2l=function(b,T){return i(so(b),T)},r.r2d=r.r2c=function(b){return Ff(so(b))},r.d2c=r.r2l=so,r.c2d=r.l2r=tl,r.c2r=i,r.l2d=Ff,r.d2p=function(b,T){return r.l2p(r.d2r(b,T))},r.p2d=function(b){return Ff(x(b))},r.r2p=function(b){return r.l2p(so(b))},r.p2r=x,r.cleanPos=tl):r.type==="date"?(r.d2r=r.r2d=ht.identity,r.d2c=r.r2c=r.d2l=r.r2l=l,r.c2d=r.c2r=r.l2d=r.l2r=o,r.d2p=r.r2p=function(b,T,S){return r.l2p(l(b,0,S))},r.p2d=r.p2r=function(b,T,S){return o(x(b),T,S)},r.cleanPos=function(b){return ht.cleanDate(b,Di,r.calendar)}):r.type==="category"?(r.d2c=r.d2l=u,r.r2d=r.c2d=r.l2d=s,r.d2r=r.d2l_noadd=d,r.r2c=function(b){var T=h(b);return T!==void 0?T:r.fraction2r(.5)},r.l2r=r.c2r=tl,r.r2l=h,r.d2p=function(b){return r.l2p(r.r2c(b))},r.p2d=function(b){return s(x(b))},r.r2p=r.d2p,r.p2r=x,r.cleanPos=function(b){return typeof b=="string"&&b!==""?b:tl(b)}):r.type==="multicategory"&&(r.r2d=r.c2d=r.l2d=s,r.d2r=r.d2l_noadd=d,r.r2c=function(b){var T=d(b);return T!==void 0?T:r.fraction2r(.5)},r.r2c_just_indices=c,r.l2r=r.c2r=tl,r.r2l=d,r.d2p=function(b){return r.l2p(r.r2c(b))},r.p2d=function(b){return s(x(b))},r.r2p=r.d2p,r.p2r=x,r.cleanPos=function(b){return Array.isArray(b)||typeof b=="string"&&b!==""?b:tl(b)},r.setupMultiCategory=function(b){var T=r._traceIndices,S,C,L=r._matchGroup;if(L&&r._categories.length===0){for(var q in L)if(q!==a){var P=t[d1.id2name(q)];T=T.concat(P._traceIndices)}}var z=[[0,{}],[0,{}]],N=[];for(S=0;SP[1]&&(C[q?0:1]=S,L[1]=P[1]),L[0]>=L[1])if(T!==void 0){var z=P[0]+1;S!==void 0&&(z=Math.min(z,P[1])),C[q?0:1]=r.l2r(z)}else S!==void 0&&(C[q?1:0]=r.l2r(P[1]-1))}},r.cleanRange=function(b,T){r._cleanRange(b,T),r.limitRange(b)},r._cleanRange=function(b,T){T||(T={}),b||(b="range");var S=ht.nestedProperty(r,b).get(),C,L;if(r.type==="date"?L=ht.dfltRange(r.calendar):n==="y"?L=m1.DFLTRANGEY:r._name==="realaxis"?L=[0,1]:L=T.dfltRange||m1.DFLTRANGEX,L=L.slice(),(r.rangemode==="tozero"||r.rangemode==="nonnegative")&&(L[0]=0),!S||S.length!==2){ht.nestedProperty(r,b).set(L);return}var q=S[0]===null,P=S[1]===null;for(r.type==="date"&&!r.autorange&&(S[0]=ht.cleanDate(S[0],Di,r.calendar),S[1]=ht.cleanDate(S[1],Di,r.calendar)),C=0;C<2;C++)if(r.type==="date"){if(!ht.isDateTime(S[C],r.calendar)){r[b]=L;break}if(r.r2l(S[0])===r.r2l(S[1])){var z=ht.constrain(r.r2l(S[0]),ht.MIN_MS+1e3,ht.MAX_MS-1e3);S[0]=r.l2r(z-1e3),S[1]=r.l2r(z+1e3);break}}else{if(!rl(S[C]))if(!(q||P)&&rl(S[1-C]))S[C]=S[1-C]*(C?10:.1);else{r[b]=L;break}if(S[C]<-f1?S[C]=-f1:S[C]>f1&&(S[C]=f1),S[0]===S[1]){var N=Math.max(1,Math.abs(S[0]*1e-6));S[0]-=N,S[1]+=N}}},r.setScale=function(b){var T=t._size;if(r.overlaying){var S=d1.getFromId({_fullLayout:t},r.overlaying);r.domain=S.domain}var C=b&&r._r?"_r":"range",L=r.calendar;r.cleanRange(C);var q=r.r2l(r[C][0],L),P=r.r2l(r[C][1],L),z=n==="y";if(z?(r._offset=T.t+(1-r.domain[1])*T.h,r._length=T.h*(r.domain[1]-r.domain[0]),r._m=r._length/(q-P),r._b=-r._m*P):(r._offset=T.l+r.domain[0]*T.w,r._length=T.w*(r.domain[1]-r.domain[0]),r._m=r._length/(P-q),r._b=-r._m*q),r._rangebreaks=[],r._lBreaks=0,r._m2=0,r._B=[],r.rangebreaks){var N,H;if(r._rangebreaks=r.locateBreaks(Math.min(q,P),Math.max(q,P)),r._rangebreaks.length){for(N=0;NP&&(B=!B),B&&r._rangebreaks.reverse();var I=B?-1:1;for(r._m2=I*r._length/(Math.abs(P-q)-r._lBreaks),r._B.push(-r._m2*(z?P:q)),N=0;NL&&(L+=7,qL&&(L+=24,q=C&&q=C&&b=Q.min&&(jQ.max&&(Q.max=ie),pe=!1)}pe&&P.push({min:j,max:ie})}};for(S=0;S{"use strict";var Rk=Zr(),v3=Fe(),nte=(ca(),Xe(ga)).BADNUM,y1=v3.isArrayOrTypedArray,ite=v3.isDateTime,lte=v3.cleanNumber,zk=Math.round;Nk.exports=function(r,t,a){var n=r,i=a.noMultiCategory;if(y1(n)&&!n.length)return"-";if(!i&&cte(n))return"multicategory";if(i&&Array.isArray(n[0])){for(var l=[],o=0;oi*2}function Fk(e){return Math.max(1,(e-1)/1e3)}function fte(e,r){for(var t=e.length,a=Fk(t),n=0,i=0,l={},o=0;on*2}function cte(e){return y1(e[0])&&y1(e[1])}});var Nf=J((o5e,Vk)=>{"use strict";var vte=Or(),Ok=Zr(),fo=Fe(),b1=(ca(),Xe(ga)).FP_SAFE,dte=kr(),hte=ot(),Yk=ha(),pte=Yk.getFromId,mte=Yk.isLinked;Vk.exports={applyAutorangeOptions:Gk,getAutoRange:h3,makePadFn:p3,doAutoRange:yte,findExtremes:bte,concatExtremes:y3};function h3(e,r){var t,a,n=[],i=e._fullLayout,l=p3(i,r,0),o=p3(i,r,1),s=y3(e,r),u=s.min,f=s.max;if(u.length===0||f.length===0)return fo.simpleMap(r.range,r.r2l);var c=u[0].val,d=f[0].val;for(t=1;t0&&(P=M-l(S)-o(C),P>b?z/P>T&&(L=S,q=C,T=z/P):z/M>T&&(L={val:S.val,nopad:1},q={val:C.val,nopad:1},T=z/M));function N(O,U){return Math.max(O,o(U))}if(c===d){var H=c-1,B=c+1;if(x)if(c===0)n=[0,1];else{var I=(c>0?f:u).reduce(N,0),V=c/(1-Math.min(.5,I/M));n=c>0?[0,V]:[V,0]}else w?n=[Math.max(0,H),Math.max(1,B)]:n=[H,B]}else x?(L.val>=0&&(L={val:0,nopad:1}),q.val<=0&&(q={val:0,nopad:1})):w&&(L.val-T*l(L)<0&&(L={val:0,nopad:1}),q.val<=0&&(q={val:1,nopad:1})),T=(q.val-L.val-Ik(r,S.val,C.val))/(M-l(L)-o(q)),n=[L.val-T*l(L),q.val+T*o(q)];return n=Gk(n,r),r.limitRange&&r.limitRange(),p&&n.reverse(),fo.simpleMap(n,r.l2r||Number)}function Ik(e,r,t){var a=0;if(e.rangebreaks)for(var n=e.locateBreaks(r,t),i=0;i0?t.ppadplus:t.ppadminus)||t.ppad||0),S=b((e._m>0?t.ppadminus:t.ppadplus)||t.ppad||0),C=b(t.vpadplus||t.vpad),L=b(t.vpadminus||t.vpad);if(!u){if(w=1/0,M=-1/0,s)for(c=0;c0&&(w=d),d>M&&d-b1&&(w=d),d>M&&d=z;c--)P(c);return{min:a,max:n,opts:t}}function m3(e,r,t,a){Uk(e,r,t,a,xte)}function g3(e,r,t,a){Uk(e,r,t,a,_te)}function Uk(e,r,t,a,n){for(var i=a.tozero,l=a.extrapad,o=!0,s=0;s=t&&(u.extrapad||!l)){o=!1;break}else n(r,u.val)&&u.pad<=t&&(l||!u.extrapad)&&(e.splice(s,1),s--)}if(o){var f=i&&r===0;e.push({val:r,pad:f?0:t,extrapad:f?!1:l})}}function Hk(e){return Ok(e)&&Math.abs(e)=r}function wte(e,r){var t=r.autorangeoptions;return t&&t.minallowed!==void 0&&x1(r,t.minallowed,t.maxallowed)?t.minallowed:t&&t.clipmin!==void 0&&x1(r,t.clipmin,t.clipmax)?Math.max(e,r.d2l(t.clipmin)):e}function Mte(e,r){var t=r.autorangeoptions;return t&&t.maxallowed!==void 0&&x1(r,t.minallowed,t.maxallowed)?t.maxallowed:t&&t.clipmax!==void 0&&x1(r,t.clipmin,t.clipmax)?Math.min(e,r.d2l(t.clipmax)):e}function x1(e,r,t){return r!==void 0&&t!==void 0?(r=e.d2l(r),t=e.d2l(t),r=s&&(i=s,t=s),l<=s&&(l=s,a=s)}}return t=wte(t,r),a=Mte(a,r),[t,a]}});var Mt=J((u5e,dC)=>{"use strict";var ri=Or(),jt=Zr(),V0=na(),Bf=kr(),Ar=Fe(),X0=Ar.strTranslate,gs=La(),Tte=zf(),Hf=Nr(),zn=ot(),Ate=ki(),Xk=Fy(),s5e=(_a(),Xe(xa)),Oa=(ca(),Xe(ga)),kte=Oa.ONEMAXYEAR,M1=Oa.ONEAVGYEAR,T1=Oa.ONEMINYEAR,Cte=Oa.ONEMAXQUARTER,w3=Oa.ONEAVGQUARTER,A1=Oa.ONEMINQUARTER,Ste=Oa.ONEMAXMONTH,W0=Oa.ONEAVGMONTH,k1=Oa.ONEMINMONTH,Fn=Oa.ONEWEEK,on=Oa.ONEDAY,co=on/2,nl=Oa.ONEHOUR,Of=Oa.ONEMIN,C1=Oa.ONESEC,Dte=Oa.ONEMILLI,Lte=Oa.ONEMICROSEC,ys=Oa.MINUS_SIGN,D1=Oa.BADNUM,M3={K:"zeroline"},T3={K:"gridline",L:"path"},A3={K:"minor-gridline",L:"path"},aC={K:"tick",L:"path"},Wk={K:"tick",L:"text"},Zk={width:["x","r","l","xl","xr"],height:["y","t","b","yt","yb"],right:["r","xr"],left:["l","xl"],top:["t","yt"],bottom:["b","yb"]},L1=(Ja(),Xe(Za)),If=L1.MID_SHIFT,bs=L1.CAP_SHIFT,Yf=L1.LINE_SPACING,qte=L1.OPPOSITE_SIDE,S1=3,Oe=dC.exports={};Oe.setConvert=g1();var Ete=d3(),il=ha(),Pte=il.idSort,Rte=il.isLinked;Oe.id2name=il.id2name;Oe.name2id=il.name2id;Oe.cleanId=il.cleanId;Oe.list=il.list;Oe.listIds=il.listIds;Oe.getFromId=il.getFromId;Oe.getFromTrace=il.getFromTrace;var nC=Nf();Oe.getAutoRange=nC.getAutoRange;Oe.findExtremes=nC.findExtremes;var zte=1e-4;function D3(e){var r=(e[1]-e[0])*zte;return[e[0]-r,e[1]+r]}function Fte(e,r,t){if(![t,e,r].every(jt)||t===0)return e;let a=Math.round((e-r)/t),n=r+a*t;return e!==n&&Math.abs(e-n)d+" domain")),s=s.concat(i||[]),f.length>l?(Ar.warn("Array attribute "+u+" has more entries than expected, truncating to "+l),f=f.slice(0,l)):f.length2e-6||((t-e._forceTick0)/e._minDtick%1+1.000001)%1>2e-6)&&(e._minDtick=0))};Oe.saveRangeInitial=function(e,r){for(var t=Oe.list(e,"",!0),a=!1,n=0;nc*.3||u(a)||u(n))){var d=t.dtick/2;e+=e+dl){var o=Number(t.slice(1));i.exactYears>l&&o%12===0?e=Oe.tickIncrement(e,"M6","reverse")+on*1.5:i.exactMonths>l?e=Oe.tickIncrement(e,"M1","reverse")+on*15.5:e-=co;var s=Oe.tickIncrement(e,t);if(s<=a)return s}return e}Oe.prepMinorTicks=function(e,r,t){var c,d;if(!((c=r.minor)!=null&&c.dtick)){delete e.dtick;var a=r.dtick&&jt(r._tmin),n;if(a){var i=Oe.tickIncrement(r._tmin,r.dtick,!0);n=[r._tmin,i*.99+r._tmin*.01]}else{var l=Ar.simpleMap(r.range,r.r2l);n=[l[0],.8*l[0]+.2*l[1]]}if(e.range=Ar.simpleMap(n,r.l2r),e._isMinor=!0,Oe.prepTicks(e,t),a){var o=jt(r.dtick),s=jt(e.dtick),u=o?r.dtick:+r.dtick.substring(1),f=s?e.dtick:+e.dtick.substring(1);o&&s?b3(u,f)?u===2*Fn&&f===2*on&&(e.dtick=Fn):u===2*Fn&&f===3*on?e.dtick=Fn:u===Fn&&!(r._input.minor||{}).nticks?e.dtick=on:Kk(u/f,2.5)?e.dtick=u/2:e.dtick=u:String(r.dtick).charAt(0)==="M"?s?e.dtick="M1":b3(u,f)?u>=12&&f===2&&(e.dtick="M3"):e.dtick=r.dtick:String(e.dtick).charAt(0)==="L"?String(r.dtick).charAt(0)==="L"?b3(u,f)||(e.dtick=Kk(u/f,2.5)?r.dtick/2:r.dtick):e.dtick="D1":e.dtick==="D2"&&+r.dtick>1&&(e.dtick=1)}e.range=r.range}((d=r.minor)==null?void 0:d._tick0Init)===void 0&&(e.tick0=r.tick0),r._useTicklabelIndex&&(L3(e),r.minor._tickround=e._tickround)};function b3(e,r){return Math.abs((e/r+.5)%1-.5)<.001}function Kk(e,r){return Math.abs(e/r-1)<.001}Oe.prepTicks=function(e,r){var t=Ar.simpleMap(e.range,e.r2l,void 0,void 0,r);if(e.tickmode==="auto"||!e.dtick){var a=e.nticks,n;a||(e.type==="category"||e.type==="multicategory"?(n=e.tickfont?Ar.bigFont(e.tickfont.size||12):15,a=e._length/n):(n=e._id.charAt(0)==="y"?40:80,a=Ar.constrain(e._length/n,4,9)+1),e._name==="radialaxis"&&(a*=2)),e.minor&&e.minor.tickmode!=="array"||e.tickmode==="array"&&(a*=100),e._roughDTick=Math.abs(t[1]-t[0])/a,Oe.autoTicks(e,e._roughDTick),e._minDtick>0&&e.dtick0?(o=a-1,s=a):(o=a,s=a),i=e[o].value,l=e[s].value}var u=Math.abs(l-i),f=t||u,c=0;e[a].periodEndTick!=null?c=u:f>=T1?u>=T1&&u<=kte?c=u:c=M1:t===w3&&f>=A1?u>=A1&&u<=Cte?c=u:c=w3:f>=k1?u>=k1&&u<=Ste?c=u:c=W0:t===Fn&&f>=Fn?c=Fn:f>=on?c=on:t===co&&f>=co?c=co:t===nl&&f>=nl&&(c=nl);var d;c>=u&&(c=u,d=!0);var h=n+c;if(r.rangebreaks&&c>0){for(var p=84,g=0,y=0;yFn&&(c=u)}(c>0||a===0)&&(e[a].periodX=n+c/2)}}Oe.calcTicks=function(r,t){var a=r.type,n=r.calendar,i=r.ticklabelstep,l=r.ticklabelmode==="period",o=r.range[0]>r.range[1],s=!r.ticklabelindex||Ar.isArrayOrTypedArray(r.ticklabelindex)?r.ticklabelindex:[r.ticklabelindex];r._useTicklabelIndex=s!=null&&s!==0;for(var u=Ar.simpleMap(r.range,r.r2l,void 0,void 0,t),f=u[1]=(b?0:1);T--){var S=!T;T?(r._dtickInit=r.dtick,r._tick0Init=r.tick0):b&&(r.minor._dtickInit=r.minor.dtick,r.minor._tick0Init=r.minor.tick0);var C=T?r:Ar.extendFlat({},r,b?r.minor:{minor:{}});if(S?Oe.prepMinorTicks(C,r,t):Oe.prepTicks(C,t),C.tickmode==="array"){T?(y=[],p=jk(r,!S)):(x=[],g=jk(r,!S));continue}if(C.tickmode==="sync"){y=[],p=Yte(r);continue}var L=D3(u),q=L[0],P=L[1],z=jt(C.dtick),N=a==="log"&&!(z||C.dtick.charAt(0)==="L"),H=Oe.tickFirst(C,t);if(T){if(r._tmin=H,H=P:I<=P;I=Oe.tickIncrement(I,U,f,n)){if(T&&V++,C.rangebreaks&&!f){if(I=d)break}if(y.length>h||I===B)break;B=I;var Z={value:Fte(I,W,U)};T?(I===H&&(Z.first=!0),N&&I!==(I|0)&&(Z.simpleLabel=!0),i>1&&V%i&&(Z.skipLabel=!0),y.push(Z)):(Z.minor=!0,x.push(Z))}}function G(Te,Ae){let ke=Ae.find(Me=>Me.value===Te.value);if(ke!=null)return ke;let Re=1e7;for(let Me=0;MeG(ke,y)==null),Ae=y.concat(Te).sort((ke,Re)=>ke.value-Re.value);l&&y.length&&(y[0].skipLabel=!0),y.forEach(function(ke){ke.skipLabel||(s.forEach(Re=>{if(Re<0){let Me=Ae.filter(Qe=>Qe.value<=ke.value),Ue=Math.abs(Re),$e=Me.length-Ue-1;if(UeUe.value>=ke.value);if(Reke.skipLabel=!1)}if(M){var j=r.minor.ticks==="inside"&&r.ticks==="outside"||r.minor.ticks==="outside"&&r.ticks==="inside";if(!j){for(var ie=[],pe=0;pe-1;ve--){if(y[ve].drop){y.splice(ve,1);continue}y[ve].value=_3(y[ve].value,r);var Se=r.c2p(y[ve].value);(Q?le>Se-we:led||Red&&(ke.periodX=d),Ren&&pn&&yM1)r/=M1,a=n(10),e.dtick="M"+12*al(r,a,_1);else if(i>W0)r/=W0,e.dtick="M"+al(r,1,Qk);else if(i>on){if(e.dtick=al(r,on,e._hasDayOfWeekBreaks?[1,2,7,14]:Ute),!t){var l=Oe.getTickFormat(e),o=e.ticklabelmode==="period";o&&(e._rawTick0=e.tick0),/%[uVW]/.test(l)?e.tick0=Ar.dateTick0(e.calendar,2):e.tick0=Ar.dateTick0(e.calendar,1),o&&(e._dowTick0=e.tick0)}}else i>nl?e.dtick=al(r,nl,Qk):i>Of?e.dtick=al(r,Of,eC):i>C1?e.dtick=al(r,C1,eC):(a=n(10),e.dtick=al(r,a,_1))}else if(e.type==="log"){e.tick0=0;var s=Ar.simpleMap(e.range,e.r2l);if(e._isMinor&&(r*=1.5),r>.7)e.dtick=Math.ceil(r);else if(Math.abs(s[1]-s[0])<1){var u=1.5*Math.abs((s[1]-s[0])/r);r=Math.abs(Math.pow(10,s[1])-Math.pow(10,s[0]))/u,a=n(10),e.dtick="L"+al(r,a,_1)}else e.dtick=r>.3?"D2":"D1"}else e.type==="category"||e.type==="multicategory"?(e.tick0=0,e.dtick=Math.ceil(Math.max(r,1))):R3(e)?(e.tick0=0,a=1,e.dtick=al(r,a,Gte)):(e.tick0=0,a=n(10),e.dtick=al(r,a,_1));if(e.dtick===0&&(e.dtick=1),!jt(e.dtick)&&typeof e.dtick!="string"){var f=e.dtick;throw e.dtick=1,"ax.dtick error: "+String(f)}};function L3(e){var r=e.dtick;if(e._tickexponent=0,!jt(r)&&typeof r!="string"&&(r=1),(e.type==="category"||e.type==="multicategory")&&(e._tickround=null),e.type==="date"){var t=e.r2l(e.tick0),a=e.l2r(t).replace(/(^-|i)/g,""),n=a.length;if(String(r).charAt(0)==="M")n>10||a.slice(5)!=="01-01"?e._tickround="d":e._tickround=+r.slice(1)%12===0?"y":"m";else if(r>=on&&n<=10||r>=on*15)e._tickround="d";else if(r>=Of&&n<=16||r>=nl)e._tickround="M";else if(r>=C1&&n<=19||r>=Of)e._tickround="S";else{var i=e.l2r(t+r).replace(/^-/,"").length;e._tickround=Math.max(n,i)-20,e._tickround<0&&(e._tickround=4)}}else if(jt(r)||r.charAt(0)==="L"){var l=e.range.map(e.r2d||Number);jt(r)||(r=Number(r.slice(1))),e._tickround=2-Math.floor(Math.log(r)/Math.LN10+.01);var o=Math.max(Math.abs(l[0]),Math.abs(l[1])),s=Math.floor(Math.log(o)/Math.LN10+.01),u=e.minexponent===void 0?3:e.minexponent;Math.abs(s)>u&&(Z0(e.exponentformat)&&e.exponentformat!=="SI extended"&&!q3(s)||Z0(e.exponentformat)&&e.exponentformat==="SI extended"&&!E3(s)?e._tickexponent=3*Math.round((s-1)/3):e._tickexponent=s)}else e._tickround=null}Oe.tickIncrement=function(e,r,t,a){var n=t?-1:1;if(jt(r))return Ar.increment(e,n*r);var i=r.charAt(0),l=n*Number(r.slice(1));if(i==="M")return Ar.incrementMonth(e,l,a);if(i==="L")return Math.log(Math.pow(10,e)+l)/Math.LN10;if(i==="D"){var o=r==="D2"?oC:lC,s=e+n*.01,u=Ar.roundUp(Ar.mod(s,1),o,t);return Math.floor(s)+Math.log(ri.round(Math.pow(10,u),1))/Math.LN10}throw"unrecognized dtick "+String(r)};Oe.tickFirst=function(e,r){var t=e.r2l||Number,a=Ar.simpleMap(e.range,t,void 0,void 0,r),n=a[1]=0&&b<=e._length?M:null};if(s&&Ar.isArrayOrTypedArray(e.ticktext)){var p=Ar.simpleMap(e.range,e.r2l),g=(Math.abs(p[1]-p[0])-(e._lBreaks||0))/1e4;for(d=0;d"+o;else{var u=Gf(e),f=e._trueSide||e.side;(!u&&f==="top"||u&&f==="bottom")&&(l+="
")}r.text=l}function Xte(e,r,t,a,n){var i=e.dtick,l=r.x,o=e.tickformat,s=typeof i=="string"&&i.charAt(0);if(n==="never"&&(n=""),a&&s!=="L"&&(i="L3",s="L"),o||s==="L")r.text=Uf(Math.pow(10,l),e,n,a);else if(jt(i)||s==="D"&&(e.minorloglabels==="complete"||Ar.mod(l+.01,1)<.1)){var u;e.minorloglabels==="complete"&&!(Ar.mod(l+.01,1)<.1)&&(u=!0,r.fontSize*=.75);var f=Math.pow(10,l).toExponential(0),c=f.split("e"),d=+c[1],h=Math.abs(d),p=e.exponentformat;p==="power"||Z0(p)&&p!=="SI extended"&&q3(d)||Z0(p)&&p==="SI extended"&&E3(d)?(r.text=c[0],h>0&&(r.text+="x10"),r.text==="1x10"&&(r.text="10"),d!==0&&d!==1&&(r.text+=""+(d>0?"":ys)+h+""),r.fontSize*=1.25):(p==="e"||p==="E")&&h>2?r.text=c[0]+p+(d>0?"+":ys)+h:(r.text=Uf(Math.pow(10,l),e,"","fakehover"),i==="D1"&&e._id.charAt(0)==="y"&&(r.dy-=r.fontSize/6))}else if(s==="D")r.text=e.minorloglabels==="none"?"":String(Math.round(Math.pow(10,Ar.mod(l,1)))),r.fontSize*=.75;else throw"unrecognized dtick "+String(i);if(e.dtick==="D1"){var g=String(r.text).charAt(0);(g==="0"||g==="1")&&(e._id.charAt(0)==="y"?r.dx-=r.fontSize/4:(r.dy+=r.fontSize/2,r.dx+=(e.range[1]>e.range[0]?1:-1)*r.fontSize*(l<0?.5:.25)))}}function Wte(e,r){var t=e._categories[Math.round(r.x)];t===void 0&&(t=""),r.text=String(t)}function Zte(e,r,t){var a=Math.round(r.x),n=e._categories[a]||[],i=n[1]===void 0?"":String(n[1]),l=n[0]===void 0?"":String(n[0]);t?r.text=l+" - "+i:(r.text=i,r.text2=l)}function Jte(e,r,t,a,n){n==="never"?n="":e.showexponent==="all"&&Math.abs(r.x/e.dtick)<1e-6&&(n="hide"),r.text=Uf(r.x,e,n,a)}function $te(e,r,t,a,n){if(e.thetaunit==="radians"&&!t){var i=r.x/180;if(i===0)r.text="0";else{var l=Kte(i);if(l[1]>=100)r.text=Uf(Ar.deg2rad(r.x),e,n,a);else{var o=r.x<0;l[1]===1?l[0]===1?r.text="\u03C0":r.text=l[0]+"\u03C0":r.text=["",l[0],"","\u2044","",l[1],"","\u03C0"].join(""),o&&(r.text=ys+r.text)}}}else r.text=Uf(r.x,e,n,a)}function Kte(e){function r(o,s){return Math.abs(o-s)<=1e-6}function t(o,s){return r(s,0)?o:t(s,o%s)}function a(o){for(var s=1;!r(Math.round(o*s)/s,o);)s*=10;return s}var n=a(e),i=e*n,l=Math.abs(t(i,n));return[Math.round(i/l),Math.round(n/l)]}var uC=["f","p","n","\u03BC","m","","k","M","G","T"],jte=["q","r","y","z","a",...uC,"P","E","Z","Y","R","Q"],Z0=e=>["SI","SI extended","B"].includes(e);function q3(e){return e>14||e<-15}function E3(e){return e>32||e<-30}function Qte(e,r){return Z0(r)?!!(r==="SI extended"&&E3(e)||r!=="SI extended"&&q3(e)):!1}function Uf(e,r,t,a){var n=e<0,i=r._tickround,l=t||r.exponentformat||"B",o=r._tickexponent,s=Oe.getTickFormat(r),u=r.separatethousands;if(a){var f={exponentformat:l,minexponent:r.minexponent,dtick:r.showexponent==="none"?r.dtick:jt(e)&&Math.abs(e)||1,range:r.showexponent==="none"?r.range.map(r.r2d):[0,e||1]};L3(f),i=(Number(f._tickround)||0)+4,o=f._tickexponent,r.hoverformat&&(s=r.hoverformat)}if(s)return r._numFormat(s)(e).replace(/-/g,ys);l==="none"&&(o=0),e=Math.abs(e);let c=Math.pow(10,-i)/2;if(e"+d+"":l==="B"&&o===9?e+="B":Z0(l)&&(e+=l==="SI extended"?jte[o/3+10]:uC[o/3+5])}return n?ys+e:e}Oe.getTickFormat=function(e){var r;function t(s){return typeof s!="string"?s:Number(s.replace("M",""))*W0}function a(s,u){var f=["L","D"];if(typeof s==typeof u){if(typeof s=="number")return s-u;var c=f.indexOf(s.charAt(0)),d=f.indexOf(u.charAt(0));return c===d?Number(s.replace(/(L|D)/g,""))-Number(u.replace(/(L|D)/g,"")):c-d}else return typeof s=="number"?1:-1}function n(s,u,f){var c=f||function(p){return p},d=u[0],h=u[1];return(!d&&typeof d!="number"||c(d)<=c(s))&&(!h&&typeof h!="number"||c(h)>=c(s))}function i(s,u){var f=u[0]===null,c=u[1]===null,d=a(s,u[0])>=0,h=a(s,u[1])<=0;return(f||d)&&(c||h)}var l,o;if(e.tickformatstops&&e.tickformatstops.length>0)switch(e.type){case"date":case"linear":{for(r=0;r=0&&n.unshift(n.splice(f,1).shift())}});var o={false:{left:0,right:0}};return Ar.syncOrAsync(n.map(function(s){return function(){if(s){var u=Oe.getFromId(e,s);t||(t={}),t.axShifts=o,t.overlayingShiftedAx=l;var f=Oe.drawOne(e,u,t);return u._shiftPusher&&S3(u,u._fullDepth||0,o,!0),u._r=u.range.slice(),u._rl=Ar.simpleMap(u._r,u.r2l),f}}}))};Oe.drawOne=function(e,r,t){t=t||{};var a=t.axShifts||{},n=t.overlayingShiftedAx||[],i,l,o;r.setScale();var s=e._fullLayout,u=r._id,f=u.charAt(0),c=Oe.counterLetter(u),d=s._plots[r._mainSubplot],h=r.zerolinelayer==="above traces";if(!d)return;if(r._shiftPusher=r.autoshift||n.indexOf(r._id)!==-1||n.indexOf(r.overlaying)!==-1,r._shiftPusher&r.anchor==="free"){var p=r.linewidth/2||0;r.ticks==="inside"&&(p+=r.ticklen),S3(r,p,a,!0),S3(r,r.shift||0,a,!1)}(t.skipTitle!==!0||r._shift===void 0)&&(r._shift=vae(r,a));var g=d[f+"axislayer"],y=r._mainLinePosition,x=y+=r._shift,w=r._mainMirrorPosition,M=r._vals=Oe.calcTicks(r),b=[r.mirror,x,w].join("_");for(i=0;i0?Le.bottom-$e:0,Qe))));var ge=0,Ge=0;if(r._shiftPusher&&(ge=Math.max(Qe,Le.height>0?Me==="l"?$e-Le.left:Le.right-$e:0),r.title.text!==s._dfltTitle[f]&&(Ge=(r._titleStandoff||0)+(r._titleScoot||0),Me==="l"&&(Ge+=tC(r))),r._fullDepth=Math.max(ge,Ge)),r.automargin){Be={x:0,y:0,r:0,l:0,t:0,b:0};var cr=[0,1],mr=typeof r._shift=="number"?r._shift:0;if(f==="x"){if(Me==="b"?Be[Me]=r._depth:(Be[Me]=r._depth=Math.max(Le.width>0?$e-Le.top:0,Qe),cr.reverse()),Le.width>0){var ne=Le.right-(r._offset+r._length);ne>0&&(Be.xr=1,Be.r=ne);var me=r._offset-Le.left;me>0&&(Be.xl=0,Be.l=me)}}else if(Me==="l"?(r._depth=Math.max(Le.height>0?$e-Le.left:0,Qe),Be[Me]=r._depth-mr):(r._depth=Math.max(Le.height>0?Le.right-$e:0,Qe),Be[Me]=r._depth+mr,cr.reverse()),Le.height>0){var ze=Le.bottom-(r._offset+r._length);ze>0&&(Be.yb=0,Be.b=ze);var Ve=r._offset-Le.top;Ve>0&&(Be.yt=1,Be.t=Ve)}Be[c]=r.anchor==="free"?r.position:r._anchorAxis.domain[cr[0]],r.title.text!==s._dfltTitle[f]&&(Be[Me]+=tC(r)+(r.title.standoff||0)),r.mirror&&r.anchor!=="free"&&(tr={x:0,y:0,r:0,l:0,t:0,b:0},tr[Ue]=r.linewidth,r.mirror&&r.mirror!==!0&&(tr[Ue]+=Qe),r.mirror===!0||r.mirror==="ticks"?tr[c]=r._anchorAxis.domain[cr[1]]:(r.mirror==="all"||r.mirror==="allticks")&&(tr[c]=[r._counterDomainMin,r._counterDomainMax][cr[1]]))}Re&&(re=Bf.getComponentMethod("rangeslider","autoMarginOpts")(e,r)),typeof r.automargin=="string"&&(rC(Be,r.automargin),rC(tr,r.automargin)),V0.autoMargin(e,P3(r),Be),V0.autoMargin(e,cC(r),tr),V0.autoMargin(e,vC(r),re)}),Ar.syncOrAsync(Ae)}};function rC(e,r){if(e){var t=Object.keys(Zk).reduce(function(a,n){return r.indexOf(n)!==-1&&Zk[n].forEach(function(i){a[i]=1}),a},{});Object.keys(e).forEach(function(a){t[a]||(a.length===1?e[a]=0:delete e[a])})}}function eae(e,r){var t=[],a,n=function(i,l){var o=i.xbnd[l];o!==null&&t.push(Ar.extendFlat({},i,{x:o}))};if(r.length){for(a=0;ae.range[1],o=e.ticklabelposition&&e.ticklabelposition.indexOf("inside")!==-1,s=!o;if(t){var u=l?-1:1;t=t*u}if(a){var f=e.side,c=o&&(f==="top"||f==="left")||s&&(f==="bottom"||f==="right")?1:-1;a=a*c}return e._id.charAt(0)==="x"?function(d){return X0(n+e._offset+e.l2p(k3(d))+t,i+a)}:function(d){return X0(i+a,n+e._offset+e.l2p(k3(d))+t)}};function k3(e){return e.periodX!==void 0?e.periodX:e.x}function nae(e){var r=e.ticklabelposition||"",t=e.tickson||"",a=function(p){return r.indexOf(p)!==-1},n=a("top"),i=a("left"),l=a("right"),o=a("bottom"),s=a("inside"),u=t!=="boundaries"&&(o||i||n||l);if(!u&&!s)return[0,0];var f=e.side,c=u?(e.tickwidth||0)/2:0,d=S1,h=e.tickfont?e.tickfont.size:12;return(o||n)&&(c+=h*bs,d+=(e.linewidth||0)/2),(i||l)&&(c+=(e.linewidth||0)/2,d+=S1),s&&f==="top"&&(d-=h*(1-bs)),(i||n)&&(c=-c),(f==="bottom"||f==="right")&&(d=-d),[u?c:0,s?d:0]}Oe.makeTickPath=function(e,r,t,a){a||(a={});var n=a.minor;if(n&&!e.minor)return"";var i=a.len!==void 0?a.len:n?e.minor.ticklen:e.ticklen,l=e._id.charAt(0),o=(e.linewidth||1)/2;return l==="x"?"M0,"+(r+o*t)+"v"+i*t:"M"+(r+o*t)+",0h"+i*t};Oe.makeLabelFns=function(e,r,t){var a=e.ticklabelposition||"",n=e.tickson||"",i=function(H){return a.indexOf(H)!==-1},l=i("top"),o=i("left"),s=i("right"),u=i("bottom"),f=n!=="boundaries"&&(u||o||l||s),c=i("inside"),d=a==="inside"&&e.ticks==="inside"||!c&&e.ticks==="outside"&&n!=="boundaries",h=0,p=0,g=d?e.ticklen:0;if(c?g*=-1:f&&(g=0),d&&(h+=g,t)){var y=Ar.deg2rad(t);h=g*Math.cos(y)+1,p=g*Math.sin(y)}e.showticklabels&&(d||e.showline)&&(h+=.2*e.tickfont.size),h+=(e.linewidth||1)/2*(c?-1:1);var x={labelStandoff:h,labelShift:p},w,M,b,T,S=0,C=e.side,L=e._id.charAt(0),q=e.tickangle,P;if(L==="x")P=!c&&C==="bottom"||c&&C==="top",T=P?1:-1,c&&(T*=-1),w=p*T,M=r+h*T,b=P?1:-.2,Math.abs(q)===90&&(c?b+=If:q===-90&&C==="bottom"?b=bs:q===90&&C==="top"?b=If:b=.5,S=If/2*(q/90)),x.xFn=function(H){return H.dx+w+S*H.fontSize},x.yFn=function(H){return H.dy+M+H.fontSize*b},x.anchorFn=function(H,B){if(f){if(o)return"end";if(s)return"start"}return!jt(B)||B===0||B===180?"middle":B*T<0!==c?"end":"start"},x.heightFn=function(H,B,I){return B<-60||B>60?-.5*I:e.side==="top"!==c?-I:0};else if(L==="y"){if(P=!c&&C==="left"||c&&C==="right",T=P?1:-1,c&&(T*=-1),w=h,M=p*T,b=0,!c&&Math.abs(q)===90&&(q===-90&&C==="left"||q===90&&C==="right"?b=bs:b=.5),c){var z=jt(q)?+q:0;if(z!==0){var N=Ar.deg2rad(z);S=Math.abs(Math.sin(N))*bs*T,b=0}}x.xFn=function(H){return H.dx+r-(w+H.fontSize*b)*T+S*H.fontSize},x.yFn=function(H){return H.dy+M+H.fontSize*If},x.anchorFn=function(H,B){return jt(B)&&Math.abs(B)===90?"middle":P?"end":"start"},x.heightFn=function(H,B,I){return e.side==="right"&&(B*=-1),B<-30?-I:B<30?-.5*I:0}}return x};function q1(e){return[e.text,e.x,e.axInfo,e.font,e.fontSize,e.fontColor].join("_")}Oe.drawTicks=function(e,r,t){t=t||{};var a=r._id+"tick",n=[].concat(r.minor&&r.minor.ticks?t.vals.filter(function(l){return l.minor&&!l.noTick}):[]).concat(r.ticks?t.vals.filter(function(l){return!l.minor&&!l.noTick}):[]),i=t.layer.selectAll("path."+a).data(n,q1);i.exit().remove(),i.enter().append("path").classed(a,1).classed("ticks",1).classed("crisp",t.crisp!==!1).each(function(l){return Hf.stroke(ri.select(this),l.minor?r.minor.tickcolor:r.tickcolor)}).style("stroke-width",function(l){return zn.crispRound(e,l.minor?r.minor.tickwidth:r.tickwidth,1)+"px"}).attr("d",t.path).style("display",null),E1(r,[aC]),i.attr("transform",t.transFn)};Oe.drawGrid=function(e,r,t){if(t=t||{},r.tickmode!=="sync"){var a=r._id+"grid",n=r.minor&&r.minor.showgrid,i=n?t.vals.filter(function(x){return x.minor}):[],l=r.showgrid?t.vals.filter(function(x){return!x.minor}):[],o=t.counterAxis;if(o&&Oe.shouldShowZeroLine(e,r,o))for(var s=r.tickmode==="array",u=0;u=0;p--){var g=p?d:h;if(g){var y=g.selectAll("path."+a).data(p?l:i,q1);y.exit().remove(),y.enter().append("path").classed(a,1).classed("crisp",t.crisp!==!1),y.attr("transform",t.transFn).attr("d",t.path).each(function(x){return Hf.stroke(ri.select(this),x.minor?r.minor.gridcolor:r.gridcolor||"#ddd")}).style("stroke-dasharray",function(x){return zn.dashStyle(x.minor?r.minor.griddash:r.griddash,x.minor?r.minor.gridwidth:r.gridwidth)}).style("stroke-width",function(x){return(x.minor?c:r._gw)+"px"}).style("display",null),typeof t.path=="function"&&y.attr("d",t.path)}}E1(r,[T3,A3])}};Oe.drawZeroLine=function(e,r,t){t=t||t;var a=r._id+"zl",n=Oe.shouldShowZeroLine(e,r,t.counterAxis),i=t.layer.selectAll("path."+a).data(n?[{x:0,id:r._id}]:[]);i.exit().remove(),i.enter().append("path").classed(a,1).classed("zl",1).classed("crisp",t.crisp!==!1).each(function(){t.layer.selectAll("path").sort(function(l,o){return Pte(l.id,o.id)})}),i.attr("transform",t.transFn).attr("d",t.path).call(Hf.stroke,r.zerolinecolor||Hf.defaultLine).style("stroke-width",zn.crispRound(e,r.zerolinewidth,r._gw||1)+"px").style("display",null),E1(r,[M3])};Oe.drawLabels=function(e,r,t){t=t||{};var a=e._fullLayout,n=r._id,i=r.zerolinelayer==="above traces",l=t.cls||n+"tick",o=t.vals.filter(function(W){return W.text}),s=t.labelFns,u=t.secondary?0:r.tickangle,f=(r._prevTickAngles||{})[l],c=t.layer.selectAll("g."+l).data(r.showticklabels?o:[],q1),d=[];c.enter().append("g").classed(l,1).append("text").attr("text-anchor","middle").each(function(W){var Z=ri.select(this),G=e._promises.length;Z.call(gs.positionText,s.xFn(W),s.yFn(W)).call(zn.font,{family:W.font,size:W.fontSize,color:W.fontColor,weight:W.fontWeight,style:W.fontStyle,variant:W.fontVariant,textcase:W.fontTextcase,lineposition:W.fontLineposition,shadow:W.fontShadow}).text(W.text).call(gs.convertToTspans,e),e._promises[G]?d.push(e._promises.pop().then(function(){h(Z,u)})):h(Z,u)}),E1(r,[Wk]),c.exit().remove(),t.repositionOnUpdate&&c.each(function(W){ri.select(this).select("text").call(gs.positionText,s.xFn(W),s.yFn(W))});function h(W,Z){W.each(function(G){var j=ri.select(this),ie=j.select(".text-math-group"),pe=s.anchorFn(G,Z),ve=t.transFn.call(j.node(),G)+(jt(Z)&&+Z!=0?" rotate("+Z+","+s.xFn(G)+","+(s.yFn(G)-G.fontSize/2)+")":""),Q=gs.lineCount(j),we=Yf*G.fontSize,le=s.heightFn(G,jt(Z)?+Z:0,(Q-1)*we);if(le&&(ve+=X0(0,le)),ie.empty()){var Se=j.select("text");Se.attr({transform:ve,"text-anchor":pe}),Se.style("display",null),r._adjustTickLabelsOverflow&&r._adjustTickLabelsOverflow()}else{var ce=zn.bBox(ie.node()).width,de=ce*{end:-.5,start:.5}[pe];ie.attr("transform",ve+X0(de,0))}})}r._adjustTickLabelsOverflow=function(){var W=r.ticklabeloverflow;if(!(!W||W==="allow")){var Z=W.indexOf("hide")!==-1,G=r._id.charAt(0)==="x",j=0,ie=G?e._fullLayout.width:e._fullLayout.height;if(W.indexOf("domain")!==-1){var pe=Ar.simpleMap(r.range,r.r2l);j=r.l2p(pe[0])+r._offset,ie=r.l2p(pe[1])+r._offset}var ve=Math.min(j,ie),Q=Math.max(j,ie),we=r.side,le=1/0,Se=-1/0;c.each(function(Ie){var _e=ri.select(this),De=_e.select(".text-math-group");if(De.empty()){var Te=zn.bBox(_e.node()),Ae=0;G?(Te.right>Q||Te.leftQ||Te.top+(r.tickangle?0:Ie.fontSize/4)r["_visibleLabelMin_"+pe._id]?_e.style("display","none"):Q.K==="tick"&&!ve&&_e.node().style.display!=="none"&&_e.style("display",null)})})})})},h(c,f+1?f:u);function p(){return d.length&&Promise.all(d)}var g=null;function y(){if(h(c,u),o.length&&r.autotickangles&&(r.type!=="log"||String(r.dtick).charAt(0)!=="D")){g=r.autotickangles[0];var W=0,Z=[],G,j=1;c.each(function(Be){W=Math.max(W,Be.fontSize);var tr=r.l2p(Be.x),re=C3(this),ge=zn.bBox(re.node());j=Math.max(j,gs.lineCount(re)),Z.push({top:0,bottom:10,height:10,left:tr-ge.width/2,right:tr+ge.width/2+2,width:ge.width+2})});var ie=(r.tickson==="boundaries"||r.showdividers)&&!t.secondary,pe=o.length,ve=Math.abs((o[pe-1].x-o[0].x)*r._m)/(pe-1),Q=ie?ve/2:ve,we=ie?r.ticklen:W*1.25*j,le=Math.sqrt(Math.pow(Q,2)+Math.pow(we,2)),Se=Q/le,ce=r.autotickangles.map(function(Be){return Be*Math.PI/180}),de=ce.find(function(Be){return Math.abs(Math.cos(Be))<=Se});de===void 0&&(de=ce.reduce(function(Be,tr){return Math.abs(Math.cos(Be))V*I&&(N=I,q[L]=P[L]=H[L])}var O=Math.abs(N-z);O-T>0?(O-=T,T*=1+T/O):T=0,r._id.charAt(0)!=="y"&&(T=-T),q[C]=M.p2r(M.r2p(P[C])+S*T),M.autorange==="min"||M.autorange==="max reversed"?(q[0]=null,M._rangeInitial0=void 0,M._rangeInitial1=void 0):(M.autorange==="max"||M.autorange==="min reversed")&&(q[1]=null,M._rangeInitial0=void 0,M._rangeInitial1=void 0),a._insideTickLabelsUpdaterange[M._name+".range"]=q}var U=Ar.syncOrAsync(x);return U&&U.then&&e._promises.push(U),U};function iae(e,r,t){var a=r._id+"divider",n=t.vals,i=t.layer.selectAll("path."+a).data(n,q1);i.exit().remove(),i.enter().insert("path",":first-child").classed(a,1).classed("crisp",1).call(Hf.stroke,r.dividercolor).style("stroke-width",zn.crispRound(e,r.dividerwidth,1)+"px"),i.attr("transform",t.transFn).attr("d",t.path)}Oe.getPxPosition=function(e,r){var t=e._fullLayout._size,a=r._id.charAt(0),n=r.side,i;if(r.anchor!=="free"?i=r._anchorAxis:a==="x"?i={_offset:t.t+(1-(r.position||0))*t.h,_length:0}:a==="y"&&(i={_offset:t.l+(r.position||0)*t.w+r._shift,_length:0}),n==="top"||n==="left")return i._offset;if(n==="bottom"||n==="right")return i._offset+i._length};function tC(e){var r=e.title.font.size,t=(e.title.text.match(gs.BR_TAG_ALL)||[]).length;return e.title.hasOwnProperty("standoff")?r*(bs+t*Yf):t?r*(t+1)*Yf:r}function lae(e,r){var t=e._fullLayout,a=r._id,n=a.charAt(0),i=r.title.font.size,l,o=(r.title.text.match(gs.BR_TAG_ALL)||[]).length;if(r.title.hasOwnProperty("standoff"))r.side==="bottom"||r.side==="right"?l=r._depth+r.title.standoff+i*bs:(r.side==="top"||r.side==="left")&&(l=r._depth+r.title.standoff+i*(If+o*Yf));else{var s=Gf(r);if(r.type==="multicategory")l=r._depth;else{var u=1.5*i;s&&(u=.5*i,r.ticks==="outside"&&(u+=r.ticklen)),l=10+u+(r.linewidth?r.linewidth-1:0)}s||(n==="x"?l+=r.side==="top"?i*(r.showticklabels?1:0):i*(r.showticklabels?1.5:.5):l+=r.side==="right"?i*(r.showticklabels?1:.5):i*(r.showticklabels?.5:0))}var f=Oe.getPxPosition(e,r),c,d,h;n==="x"?(d=r._offset+r._length/2,h=r.side==="top"?f-l:f+l):(h=r._offset+r._length/2,d=r.side==="right"?f+l:f-l,c={rotate:"-90",offset:0});var p;if(r.type!=="multicategory"){var g=r._selections[r._id+"tick"];if(p={selection:g,side:r.side},g&&g.node()&&g.node().parentNode){var y=zn.getTranslate(g.node().parentNode);p.offsetLeft=y.x,p.offsetTop=y.y}r.title.hasOwnProperty("standoff")&&(p.pad=0)}return r._titleStandoff=l,Tte.draw(e,a+"title",{propContainer:r,propName:r._name+".title.text",placeholder:t._dfltTitle[n],avoid:p,transform:c,attributes:{x:d,y:h,"text-anchor":"middle"}})}Oe.shouldShowZeroLine=function(e,r,t){var a=Ar.simpleMap(r.range,r.r2l);return a[0]*a[1]<=0&&r.zeroline&&(r.type==="linear"||r.type==="-")&&!(r.rangebreaks&&r.maskBreaks(0)===D1)&&(fC(r,0)||!oae(e,r,t,a)||sae(e,r))};Oe.clipEnds=function(e,r){return r.filter(function(t){return fC(e,t.x)})};function fC(e,r){var t=e.l2p(r);return t>1&&t1)for(n=1;n=n.min&&e=Lte:/%L/.test(r)?e>=Dte:/%[SX]/.test(r)?e>=C1:/%M/.test(r)?e>=Of:/%[HI]/.test(r)?e>=nl:/%p/.test(r)?e>=co:/%[Aadejuwx]/.test(r)?e>=on:/%[UVW]/.test(r)?e>=Fn:/%[Bbm]/.test(r)?e>=k1:/%[q]/.test(r)?e>=A1:/%[Yy]/.test(r)?e>=T1:!0}});var pC=J((f5e,hC)=>{"use strict";hC.exports=function(r,t,a){var n,i;if(a){var l=t==="reversed"||t==="min reversed"||t==="max reversed";n=a[l?1:0],i=a[l?0:1]}var o=r("autorangeoptions.minallowed",i===null?n:void 0),s=r("autorangeoptions.maxallowed",n===null?i:void 0);o===void 0&&r("autorangeoptions.clipmin"),s===void 0&&r("autorangeoptions.clipmax"),r("autorangeoptions.include")}});var z3=J((c5e,mC)=>{"use strict";var hae=pC();mC.exports=function(r,t,a,n){var i=t._template||{},l=t.type||i.type||"-";a("minallowed"),a("maxallowed");var o=a("range");if(!o){var s;!n.noInsiderange&&l!=="log"&&(s=a("insiderange"),s&&(s[0]===null||s[1]===null)&&(t.insiderange=!1,s=void 0),s&&(o=a("range",s)))}var u=t.getAutorangeDflt(o,n),f=a("autorange",u),c;o&&(o[0]===null&&o[1]===null||(o[0]===null||o[1]===null)&&(f==="reversed"||f===!0)||o[0]!==null&&(f==="min"||f==="max reversed")||o[1]!==null&&(f==="max"||f==="min reversed"))&&(o=void 0,delete t.range,t.autorange=!0,c=!0),c||(u=t.getAutorangeDflt(o,n),f=a("autorange",u)),f&&(hae(a,f,o),(l==="linear"||l==="-")&&a("rangemode")),t.cleanRange()}});var yC=J((v5e,gC)=>{var pae={left:0,top:0};gC.exports=mae;function mae(e,r,t){r=r||e.currentTarget||e.srcElement,Array.isArray(t)||(t=[0,0]);var a=e.clientX||0,n=e.clientY||0,i=gae(r);return t[0]=a-i.left,t[1]=n-i.top,t}function gae(e){return e===window||e===document||e===document.body?pae:e.getBoundingClientRect()}});var F3=J((d5e,bC)=>{"use strict";var yae=ly();function bae(){var e=!1;try{var r=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("test",null,r),window.removeEventListener("test",null,r)}catch(t){e=!1}return e}bC.exports=yae&&bae()});var _C=J((h5e,xC)=>{"use strict";xC.exports=function(r,t,a,n,i){var l=(r-a)/(n-a),o=l+t/(n-a),s=(l+o)/2;return i==="left"||i==="bottom"?l:i==="center"||i==="middle"?s:i==="right"||i==="top"?o:l<2/3-s?l:o>4/3-s?o:s}});var TC=J((p5e,MC)=>{"use strict";var wC=Fe(),xae=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];MC.exports=function(r,t,a,n){return a==="left"?r=0:a==="center"?r=1:a==="right"?r=2:r=wC.constrain(Math.floor(r*3),0,2),n==="bottom"?t=0:n==="middle"?t=1:n==="top"?t=2:t=wC.constrain(Math.floor(t*3),0,2),xae[t][r]}});var kC=J((m5e,AC)=>{"use strict";var _ae=kf(),wae=P2(),Mae=yf().getGraphDiv,Tae=(ju(),Xe(Ku)),N3=AC.exports={};N3.wrapped=function(e,r,t){var i;e=Mae(e),e._fullLayout&&wae.clear(e._fullLayout._uid+Tae.HOVERID);let a=e._hoverdata;N3.raw(e,r,t)&&e._hoverAnywhereActive&&(e._hoverAnywhereActive=!1,(i=e._fullLayout)!=null&&i.hoveranywhere&&(r!=null&&r.target)&&!a&&e.emit("plotly_unhover",{event:r,points:[]}))};N3.raw=function(r,t){var a=r._fullLayout,n=r._hoverdata;return t||(t={}),t.target&&!r._dragged&&_ae.triggerHandler(r,"plotly_beforehover",t)===!1?!1:(a._hoverlayer.selectAll("g").remove(),a._hoverlayer.selectAll("line").remove(),a._hoverlayer.selectAll("circle").remove(),r._hoverdata=void 0,t.target&&n&&r.emit("plotly_unhover",{event:t,points:n}),!0)}});var Li=J((g5e,LC)=>{"use strict";var Aae=yC(),I3=sy(),kae=F3(),Cae=Fe().removeElement,Sae=(_a(),Xe(xa)),xs=LC.exports={};xs.align=_C();xs.getCursor=TC();var SC=kC();xs.unhover=SC.wrapped;xs.unhoverRaw=SC.raw;xs.init=function(r){var t=r.gd,a=1,n=t._context.doubleClickDelay,i=r.element,l,o,s,u,f,c,d,h;t._mouseDownTime||(t._mouseDownTime=0),i.style.pointerEvents="all",i.onmousedown=y,kae?(i._ontouchstart&&i.removeEventListener("touchstart",i._ontouchstart),i._ontouchstart=y,i.addEventListener("touchstart",y,{passive:!1})):i.ontouchstart=y;function p(M,b,T){return Math.abs(M)n&&(a=Math.max(a-1,1)),t._dragged)r.doneFn&&r.doneFn();else{var b;c.target===d?b=c:(b={target:d,srcElement:d,toElement:d},Object.keys(c).concat(Object.keys(c.__proto__)).forEach(T=>{var S=c[T];!b[T]&&typeof S!="function"&&(b[T]=S)})),r.clickFn&&r.clickFn(a,b),h||d.dispatchEvent(new MouseEvent("click",M))}t._dragging=!1,t._dragged=!1}};function DC(){var e=document.createElement("div");e.className="dragcover";var r=e.style;return r.position="fixed",r.left=0,r.right=0,r.top=0,r.bottom=0,r.zIndex=999999999,r.background="none",document.body.appendChild(e),e}xs.coverSlip=DC;function CC(e){return Aae(e.changedTouches?e.changedTouches[0]:e,document.body)}});var vo=J((y5e,qC)=>{"use strict";qC.exports=function(r,t){(r.attr("class")||"").split(" ").forEach(function(a){a.indexOf("cursor-")===0&&r.classed(a,!1)}),t&&r.classed("cursor-"+t,!0)}});var RC=J((b5e,PC)=>{"use strict";var B3=vo(),Vf="data-savedcursor",EC="!!";PC.exports=function(r,t){var a=r.attr(Vf);if(t){if(!a){for(var n=(r.attr("class")||"").split(" "),i=0;iFae,itemGap:()=>zae,itemHeightPad:()=>Iae,itemMinHeight:()=>Nae,scrollBarColor:()=>qae,scrollBarEnterAttrs:()=>Pae,scrollBarMargin:()=>Eae,scrollBarMinHeight:()=>Lae,scrollBarWidth:()=>Dae,titlePad:()=>Rae});var Dae,Lae,qae,Eae,Pae,Rae,zae,Fae,Nae,Iae,R1=Ft(()=>{"use strict";Dae=6,Lae=20,qae="#808BA4",Eae=4,Pae={rx:20,ry:3,width:0,height:0},Rae=2,zae=5,Fae=6,Nae=16,Iae=3});var O3=J((x5e,FC)=>{"use strict";var H3=Ia(),Bae=$i(),{dfltFillHeight:zC}=(R1(),Xe(P1));FC.exports={_isSubplotObj:!0,visible:{valType:"boolean",dflt:!0,editType:"legend"},bgcolor:{valType:"color",editType:"legend"},bordercolor:{valType:"color",dflt:Bae.defaultLine,editType:"legend"},maxheight:{valType:"number",min:0,editType:"legend"},borderwidth:{valType:"number",min:0,dflt:0,editType:"legend"},font:H3({editType:"legend"}),grouptitlefont:H3({editType:"legend"}),orientation:{valType:"enumerated",values:["v","h"],dflt:"v",editType:"legend"},traceorder:{valType:"flaglist",flags:["reversed","grouped"],extras:["normal"],editType:"legend"},tracegroupgap:{valType:"number",min:0,dflt:10,editType:"legend"},entrywidth:{valType:"number",min:0,editType:"legend"},entrywidthmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels",editType:"legend"},indentation:{valType:"number",min:-15,dflt:0,editType:"legend"},itemsizing:{valType:"enumerated",values:["trace","constant"],dflt:"trace",editType:"legend"},itemwidth:{valType:"number",min:30,dflt:30,editType:"legend"},itemheight:{valType:"number",min:zC,dflt:zC,editType:"legend"},itemclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggle",editType:"legend"},itemdoubleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggleothers",editType:"legend"},groupclick:{valType:"enumerated",values:["toggleitem","togglegroup"],dflt:"togglegroup",editType:"legend"},groupdoubleclick:{valType:"enumerated",values:["toggleitem","togglegroup"],editType:"legend"},titleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],editType:"legend"},titledoubleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],editType:"legend"},x:{valType:"number",editType:"legend"},xref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"legend"},y:{valType:"number",editType:"legend"},yref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],editType:"legend"},uirevision:{valType:"any",editType:"none"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"legend"},title:{text:{valType:"string",dflt:"",editType:"legend"},font:H3({editType:"legend"}),side:{valType:"enumerated",values:["top","left","top left","top center","top right"],editType:"legend"},editType:"legend"},editType:"legend"}});var Wf=J(Xf=>{"use strict";Xf.isGrouped=function(r){return(r.traceorder||"").indexOf("grouped")!==-1};Xf.isVertical=function(r){return r.orientation!=="h"};Xf.isReversed=function(r){return(r.traceorder||"").indexOf("reversed")!==-1};Xf.getId=function(r){return r._id||"legend"}});var U3=J((w5e,NC)=>{"use strict";var z1=kr(),Nn=Fe(),Hae=yt(),Oae=xi(),Yae=O3(),Uae=A0(),Y3=Wf();function Gae(e,r,t,a,n){var i=r[e]||{},l=Hae.newContainer(t,e);function o(Z,G){return Nn.coerce(i,l,Yae,Z,G)}var s=Nn.coerceFont(o,"font",t.font);o("bgcolor",t.paper_bgcolor),o("bordercolor");var u=o("visible");if(!u)return;var f,c=function(Z,G){var j=f._input,ie=f;return Nn.coerce(j,ie,Oae,Z,G)},d=t.font||{},h=Nn.coerceFont(o,"grouptitlefont",d,{overrideDflt:{size:Math.round(d.size*1.1)}}),p=0,g=!1,y="normal",x=(t.shapes||[]).filter(function(Z){return Z.showlegend});function w(Z){return z1.traceIs(Z,"pie-like")&&Z._length!=null&&(Array.isArray(Z.legend)||Array.isArray(Z.showlegend))}a.filter(w).forEach(function(Z){Z.visible&&p++;for(var G=0;GZ.legend.length)for(var ie=Z.legend.length;ie(e==="legend"?1:0));if(S===!1&&(t[e]=void 0),S===!1&&!i.uirevision||(o("uirevision",t.uirevision),S===!1))return;o("borderwidth");var C=o("orientation"),L=o("yref"),q=o("xref"),P=C==="h",z=L==="paper",N=q==="paper",H,B,I,V="left";P?(H=0,z1.getComponentMethod("rangeslider","isVisible")(r.xaxis)?z?(B=1.1,I="bottom"):(B=1,I="top"):z?(B=-.1,I="top"):(B=0,I="bottom")):(B=1,I="auto",N?H=1.02:(H=1,V="right")),Nn.coerce(i,l,{x:{valType:"number",editType:"legend",min:N?-2:0,max:N?3:1,dflt:H}},"x"),Nn.coerce(i,l,{y:{valType:"number",editType:"legend",min:z?-2:0,max:z?3:1,dflt:B}},"y"),o("traceorder",y),Y3.isGrouped(t[e])&&o("tracegroupgap"),o("entrywidth"),o("entrywidthmode"),o("indentation"),o("itemsizing"),o("itemwidth"),o("itemheight"),o("itemclick"),o("itemdoubleclick");let O=o("groupclick");o("groupdoubleclick",O),o("xanchor",V),o("yanchor",I),o("maxheight"),o("valign"),Nn.noneOrAll(i,l,["x","y"]);var U=o("title.text");if(U){o("title.side",P?"left":"top");var W=Nn.extendFlat({},s,{size:Nn.bigFont(s.size)});Nn.coerceFont(o,"title.font",W);let Z=n>1;o("titleclick",Z?"toggle":!1),o("titledoubleclick",Z?"toggleothers":!1)}}NC.exports=function(r,t,a){var n,i=a.slice(),l=t.shapes;if(l)for(n=0;n{"use strict";var ho=kr(),G3=Fe(),Vae=G3.pushUnique,Xae=Wf(),IC=!0;V3.handleItemClick=function(r,t,a,n,i){var l=t._fullLayout;if(t._dragged||t._editing)return;var o=r.data()[0][0];if(o.groupTitle&&o.noClick)return;let s=i===2?a.groupdoubleclick:a.groupclick;n==="toggle"&&a.itemdoubleclick==="toggleothers"&&IC&&t.data&&t._context.showTips&&(G3.notifier(G3._(t,"Double-click on legend to isolate one trace"),"long",t),IC=!1);var u=s==="togglegroup",f=l.hiddenlabels?l.hiddenlabels.slice():[],c=t._fullData;let d=(l.shapes||[]).filter(ke=>ke.showlegend||ke.legendgroup);var h=c.concat(d),p=o.trace;p._isShape&&(p=l.shapes[p.index]);var g=p.legendgroup,y,x,w,M,b,T,S={},C=[],L=[],q=[];function P(ke,Re){var Me=C.indexOf(ke),Ue=S.visible;return Ue||(Ue=S.visible=[]),C.indexOf(ke)===-1&&(C.push(ke),Me=C.length-1),Ue[Me]=Re,Me}var z=(l.shapes||[]).map(function(ke){return ke._input}),N=!1;function H(ke,Re){z[ke].visible=Re,N=!0}function B(ke,Re){if(!(o.groupTitle&&!u)){var Me=ke._isShape,Ue=ke.index;Ue===void 0&&(Ue=ke._index);var $e=ke.visible===!1?!1:Re;Me?H(Ue,$e):P(Ue,$e)}}var I=p.legend;if(!p._isShape&&ho.traceIs(p,"pie-like")){var V=o.label,O=f.indexOf(V);if(n==="toggle")O===-1?f.push(V):f.splice(O,1);else if(n==="toggleothers"){var U=O!==-1,W=[];for(y=0;yx.showlegend||x.legendgroup),s=i.concat(o);function u(x){return(x.legend||"legend")===l}var f,c;if(a==="toggle")f=!s.some(function(w){return u(w)&&w.visible===!0}),c=!1;else{let x=s.some(function(w){return!u(w)&&w.visible===!0&&w.showlegend!==!1});f=!0,c=!x}let d={visible:[]},h=[],p=(n.shapes||[]).map(function(x){return x._input});for(var g=!1,y=0;y{"use strict";var{isArrayOrTypedArray:W3}=xn(),BC=kr(),Z3=Wf();HC.exports=function(r,t,a){var n=t._inHover,i=Z3.isGrouped(t),l=Z3.isReversed(t),o={},s=[],u=!1,f={},c=0,d=0,h,p;function g(Z,G,j){if(t.visible!==!1&&!(a&&Z!==t._id))if(G===""||!Z3.isGrouped(t)){var ie="~~i"+c;s.push(ie),o[ie]=[j],c++}else s.indexOf(G)===-1?(s.push(G),u=!0,o[G]=[j]):o[G].push(j)}for(h=0;hH&&(z=H)}q[h][0]._groupMinRank=z,q[h][0]._preGroupSort=h}var B=function(Z,G){return Z[0]._groupMinRank-G[0]._groupMinRank||Z[0]._preGroupSort-G[0]._preGroupSort},I=function(Z,G){var j=W3(Z.trace.legendrank)?Z.trace.legendrank[Z.i]:Z.trace.legendrank,ie=W3(G.trace.legendrank)?G.trace.legendrank[G.i]:G.trace.legendrank;return j-ie||Z._preSort-G._preSort};for(q.forEach(function(Z,G){Z[0]._preGroupSort=G}),q.sort(B),h=0;h{"use strict";var F1=Fe();function YC(e){return e.indexOf("e")!==-1?e.replace(/[.]?0+e/,"e"):e.indexOf(".")!==-1?e.replace(/[.]?0+$/,""):e}_s.formatPiePercent=function(r,t){var a=YC((r*100).toPrecision(3));return F1.numSeparate(a,t)+"%"};_s.formatPieValue=function(r,t){var a=YC(r.toPrecision(10));return F1.numSeparate(a,t)};_s.getFirstFilled=function(r,t){if(F1.isArrayOrTypedArray(r))for(var a=0;a{"use strict";var Wae=ot(),Zae=Nr();UC.exports=function(r,t,a,n){var i=a.marker.pattern;i&&i.shape?Wae.pointStyle(r,a,n,t):Zae.fill(r,t.color)}});var I1=J((C5e,WC)=>{"use strict";var VC=Nr(),XC=N1().castOption,Jae=GC();WC.exports=function(r,t,a,n){var i=a.marker.line,l=XC(i.color,t.pts)||VC.defaultLine,o=XC(i.width,t.pts)||0;r.call(Jae,t,a,n).style("stroke-width",o).call(VC.stroke,l)}});var Q3=J((S5e,jC)=>{"use strict";var sn=Or(),J3=kr(),$a=Fe(),$3=$a.strTranslate,In=ot(),ti=Nr(),K3=ei().extractOpts,H1=Rn(),$ae=I1(),Kae=N1().castOption,ZC=(R1(),Xe(P1)),JC=12,$C=5,ws=2,jae=10,J0=5;jC.exports=function(r,t,a){var n=t._fullLayout;a||(a=n.legend);var i=a.itemsizing==="constant",l=a.itemwidth,o=a.itemheight,s=(l+ZC.itemGap*2)/2,u=$3(s,0),f=function(L,q,P,z){var N;if(L+1)N=L;else if(q&&q.width>0)N=q.width;else return 0;return i?z:Math.min(N,P)};r.each(function(L){var q=sn.select(this),P=$a.ensureSingle(q,"g","layers");P.style("opacity",L[0].trace.opacity);var z=a.indentation,N=a.valign,H=L[0].lineHeight,B=L[0].height;if(N==="middle"&&z===0||!H||!B)P.attr("transform",null);else{var I={top:1,bottom:-1}[N],V=I*(.5*(H-B+3))||0,O=a.indentation;P.attr("transform",$3(O,V))}var U=P.selectAll("g.legendfill").data([L]);U.enter().append("g").classed("legendfill",!0);var W=P.selectAll("g.legendlines").data([L]);W.enter().append("g").classed("legendlines",!0);var Z=P.selectAll("g.legendsymbols").data([L]);Z.enter().append("g").classed("legendsymbols",!0),Z.selectAll("g.legendpoints").data([L]).enter().append("g").classed("legendpoints",!0)}).each(C).each(h).each(g).each(p).each(x).each(T).each(b).each(c).each(d).each(w).each(M);function c(L){var q=KC(L),P=q.showFill,z=q.showLine,N=q.showGradientLine,H=q.showGradientFill,B=q.anyFill,I=q.anyLine,V=L[0],O=V.trace,U,W,Z=K3(O),G=Z.colorscale,j=Z.reversescale,ie=function(de){if(de.size())if(P)In.fillGroupStyle(de,t,!0);else{var Ce="legendfill-"+O.uid;In.gradient(de,t,Ce,j3(j),G,"fill")}},pe=function(de){if(de.size()){var Ce="legendline-"+O.uid;In.lineGroupStyle(de),In.gradient(de,t,Ce,j3(j),G,"stroke")}},ve=H1.hasMarkers(O)||!B?"M5,0":I?"M5,-2":"M5,-3",Q=sn.select(this),we=Q.select(".legendfill").selectAll("path").data(P||H?[L]:[]);we.enter().append("path").classed("js-fill",!0),we.exit().remove(),we.attr("d",ve+"h"+l+"v"+o+"h-"+l+"z").call(ie);let le=P||H?(ZC.dfltFillHeight-o)/2:0;if(Q.selectAll("g.legendfill, g.legendlines, g.legendsymbols").attr("transform",le?$3(0,le):null),z||N){var Se=f(void 0,O.line,jae,$C);W=$a.minExtend(O,{line:{width:Se}}),U=[$a.minExtend(V,{trace:W})]}var ce=Q.select(".legendlines").selectAll("path").data(z||N?[U]:[]);ce.enter().append("path").classed("js-line",!0),ce.exit().remove(),ce.attr("d",ve+(N?"l"+l+",0.0001":"h"+l)).call(z?In.lineGroupStyle:pe)}function d(L){var q=KC(L),P=q.anyFill,z=q.anyLine,N=q.showLine,H=q.showMarker,B=L[0],I=B.trace,V=!H&&!z&&!P&&H1.hasText(I),O,U;function W(le,Se,ce,de){var Ce=$a.nestedProperty(I,le).get(),Ie=$a.isArrayOrTypedArray(Ce)&&Se?Se(Ce):Ce;if(i&&Ie&&de!==void 0&&(Ie=de),ce){if(Iece[1])return ce[1]}return Ie}function Z(le){return B._distinct&&B.index&&le[B.index]?le[B.index]:le[0]}if(H||V||N){var G={},j={};if(H){G.mc=W("marker.color",Z);var ie=I.type==="scattermap";G.mx=ie?"circle":W("marker.symbol",Z),G.mo=W("marker.opacity",$a.mean,[.2,1]),G.mlc=W("marker.line.color",Z),G.mlw=W("marker.line.width",$a.mean,[0,5],ws),G.mld=W("marker.line.dash",Z),j.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var pe=W("marker.size",$a.mean,[2,16],JC);G.ms=pe,j.marker.size=pe}N&&(j.line={width:W("line.width",Z,[0,10],$C)}),V&&(G.tx="Aa",G.tp=W("textposition",Z),G.ts=10,G.tc=W("textfont.color",Z),G.tf=W("textfont.family",Z),G.tw=W("textfont.weight",Z),G.ty=W("textfont.style",Z),G.tv=W("textfont.variant",Z),G.tC=W("textfont.textcase",Z),G.tE=W("textfont.lineposition",Z),G.tS=W("textfont.shadow",Z)),O=[$a.minExtend(B,G)],U=$a.minExtend(I,j),U.selectedpoints=null,U.texttemplate=null}var ve=sn.select(this).select("g.legendpoints"),Q=ve.selectAll("path.scatterpts").data(H?O:[]);Q.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",u),Q.exit().remove(),Q.call(In.pointStyle,U,t),H&&(O[0].mrc=3);var we=ve.selectAll("g.pointtext").data(V?O:[]);we.enter().append("g").classed("pointtext",!0).append("text").attr("transform",u),we.exit().remove(),we.selectAll("text").call(In.textPointStyle,U,t)}function h(L){var q=L[0].trace,P=q.type==="waterfall";if(L[0]._distinct&&P){var z=L[0].trace[L[0].dir].marker;return L[0].mc=z.color,L[0].mlw=z.line.width,L[0].mlc=z.line.color,y(L,this,"waterfall")}var N=[];q.visible&&P&&(N=L[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 H=sn.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data(N);H.enter().append("path").classed("legendwaterfall",!0).attr("transform",u).style("stroke-miterlimit",1),H.exit().remove(),H.each(function(B){var I=sn.select(this),V=q[B[0]].marker,O=f(void 0,V.line,J0,ws);I.attr("d",B[1]).style("stroke-width",O+"px").call(ti.fill,V.color),O&&I.call(ti.stroke,V.line.color)})}function p(L){y(L,this)}function g(L){y(L,this,"funnel")}function y(L,q,P){var z=L[0].trace,N=z.marker||{},H=N.line||{},B=N.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",I=P?z.visible&&z.type===P:J3.traceIs(z,"bar"),V=sn.select(q).select("g.legendpoints").selectAll("path.legend"+P).data(I?[L]:[]);V.enter().append("path").classed("legend"+P,!0).attr("d",B).attr("transform",u),V.exit().remove(),V.each(function(O){var U=sn.select(this),W=O[0],Z=f(W.mlw,N.line,J0,ws);U.style("stroke-width",Z+"px");var G=W.mcc;if(!a._inHover&&"mc"in W){var j=K3(N),ie=j.mid;ie===void 0&&(ie=(j.max+j.min)/2),G=In.tryColorscale(N,"")(ie)}var pe=G||W.mc||N.color,ve=N.pattern,Q=In.getPatternAttr;let we=0;a._inHover&&W._distinct&&W.index!=null&&(we=W.index);let le=ve&&(Q(ve.shape,we,"")||Q(ve.path,we,""));if(le){let ce=Q(ve.bgcolor,we,null),de=Q(ve.fgcolor,we,null);var Se=ve.fgopacity;let Ce=a._inHover?B1(Q(ve.size,we,8),8,10):B1(ve.size,8,10),Ie=a._inHover?B1(Q(ve.solidity,we,.5),.5,1):B1(ve.solidity,.5,1),_e=a._inHover?`hover-${z.uid}-${we}`:`legend-${z.uid}`;U.call(In.pattern,"legend",t,_e,le,Ce,Ie,G,ve.fillmode,ce,de,Se)}else U.call(ti.fill,pe);Z&&ti.stroke(U,W.mlc||H.color)})}function x(L){var q=L[0].trace,P=sn.select(this).select("g.legendpoints").selectAll("path.legendbox").data(q.visible&&J3.traceIs(q,"box-violin")?[L]:[]);P.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform",u),P.exit().remove(),P.each(function(){var z=sn.select(this);if((q.boxpoints==="all"||q.points==="all")&&ti.opacity(q.fillcolor)===0&&ti.opacity((q.line||{}).color)===0){var N=$a.minExtend(q,{marker:{size:i?JC:$a.constrain(q.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});P.call(In.pointStyle,N,t)}else{var H=f(void 0,q.line,J0,ws);z.style("stroke-width",H+"px").call(ti.fill,q.fillcolor),H&&ti.stroke(z,q.line.color)}})}function w(L){var q=L[0].trace,P=sn.select(this).select("g.legendpoints").selectAll("path.legendcandle").data(q.visible&&q.type==="candlestick"?[L,L]:[]);P.enter().append("path").classed("legendcandle",!0).attr("d",function(z,N){return N?"M-15,0H-8M-8,6V-6H8Z":"M15,0H8M8,-6V6H-8Z"}).attr("transform",u).style("stroke-miterlimit",1),P.exit().remove(),P.each(function(z,N){var H=sn.select(this),B=q[N?"increasing":"decreasing"],I=f(void 0,B.line,J0,ws);H.style("stroke-width",I+"px").call(ti.fill,B.fillcolor),I&&ti.stroke(H,B.line.color)})}function M(L){var q=L[0].trace,P=sn.select(this).select("g.legendpoints").selectAll("path.legendohlc").data(q.visible&&q.type==="ohlc"?[L,L]:[]);P.enter().append("path").classed("legendohlc",!0).attr("d",function(z,N){return N?"M-15,0H0M-8,-6V0":"M15,0H0M8,6V0"}).attr("transform",u).style("stroke-miterlimit",1),P.exit().remove(),P.each(function(z,N){var H=sn.select(this),B=q[N?"increasing":"decreasing"],I=f(void 0,B.line,J0,ws);H.style("fill","none").call(In.dashLine,B.line.dash,I),I&&ti.stroke(H,B.line.color)})}function b(L){S(L,this,"pie")}function T(L){S(L,this,"funnelarea")}function S(L,q,P){var z=L[0],N=z.trace,H=P?N.visible&&N.type===P:J3.traceIs(N,P),B=sn.select(q).select("g.legendpoints").selectAll("path.legend"+P).data(H?[L]:[]);if(B.enter().append("path").classed("legend"+P,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",u),B.exit().remove(),B.size()){var I=N.marker||{},V=f(Kae(I.line.width,z.pts),I.line,J0,ws),O="pieLike",U=$a.minExtend(N,{marker:{line:{width:V}}},O),W=$a.minExtend(z,{trace:U},O);$ae(B,W,U,t)}}function C(L){var q=L[0].trace,P,z=[];if(q.visible)switch(q.type){case"histogram2d":case"heatmap":z=[["M-15,-2V4H15V-2Z"]],P=!0;break;case"choropleth":case"choroplethmap":z=[["M-6,-6V6H6V-6Z"]],P=!0;break;case"densitymap":z=[["M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"]],P="radial";break;case"cone":z=[["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"]],P=!1;break;case"streamtube":z=[["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"]],P=!1;break;case"surface":z=[["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"]],P=!0;break;case"mesh3d":z=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],P=!1;break;case"volume":z=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],P=!0;break;case"isosurface":z=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6 A12,24 0 0,0 6,-6 L0,6Z"]],P=!1;break}var N=sn.select(this).select("g.legendpoints").selectAll("path.legend3dandfriends").data(z);N.enter().append("path").classed("legend3dandfriends",!0).attr("transform",u).style("stroke-miterlimit",1),N.exit().remove(),N.each(function(H,B){var I=sn.select(this),V=K3(q),O=V.colorscale,U=V.reversescale,W=function(ie){if(ie.size()){var pe="legendfill-"+q.uid;In.gradient(ie,t,pe,j3(U,P==="radial"),O,"fill")}},Z;if(O){if(!P){var j=O.length;Z=B===0?O[U?j-1:0][1]:B===1?O[U?0:j-1][1]:O[Math.floor((j-1)/2)][1]}}else{var G=q.vertexcolor||q.facecolor||q.color;Z=$a.isArrayOrTypedArray(G)?G[B]||G[0]:G}I.attr("d",H[0]),Z?I.call(ti.fill,Z):I.call(W)})}};function j3(e,r){var t=r?"radial":"horizontal";return t+(e?"":"reversed")}function KC(e){var r=e[0].trace,t=r.contours,a=H1.hasLines(r)||r.visible&&r.type==="quiver",n=H1.hasMarkers(r),i=r.visible&&r.fill&&r.fill!=="none",l=!1,o=!1;if(t){var s=t.coloring;s==="lines"?l=!0:a=s==="none"||s==="heatmap"||t.showlines,t.type==="constraint"?i=t._operation!=="=":(s==="fill"||s==="heatmap")&&(o=!0)}return{showMarker:n,showLine:a,showFill:i,showGradientLine:l,showGradientFill:o,anyLine:a||l,anyFill:i||o}}function B1(e,r,t){return e&&$a.isArrayOrTypedArray(e)?r:e>t?t:e}});var a5=J((D5e,oS)=>{"use strict";var un=Or(),Qt=Fe(),r5=na(),Ms=kr(),U1=kf(),e5=Li(),ea=ot(),Zf=Nr(),kl=La(),QC=X3().handleItemClick,eS=X3().handleTitleClick,qt=(R1(),Xe(P1)),t5=(Ja(),Xe(Za)),iS=t5.LINE_SPACING,K0=t5.FROM_TL,rS=t5.FROM_BR,tS=OC(),Qae=Q3(),j0=Wf(),$0=1,ene=/^legend[0-9]*$/;oS.exports=function(r,t){if(t)aS(r,t);else{var a=r._fullLayout,n=a._legends,i=a._infolayer.selectAll('[class^="legend"]');i.each(function(){var u=un.select(this),f=u.attr("class"),c=f.split(" ")[0];c.match(ene)&&n.indexOf(c)===-1&&u.remove()});for(var l=0;l1)}var p=a.hiddenlabels||[];if(!o&&(!a.showlegend||!s.length))return l.selectAll("."+n).remove(),a._topdefs.select("#"+i).remove(),r5.autoMargin(e,n);var g=Qt.ensureSingle(l,"g",n,function(L){o||L.attr("pointer-events","all")}),y=Qt.ensureSingleById(a._topdefs,"clipPath",i,function(L){L.append("rect")}),x=Qt.ensureSingle(g,"rect","bg",function(L){L.attr("shape-rendering","crispEdges")});x.call(Zf.stroke,t.bordercolor).call(Zf.fill,t.bgcolor).style("stroke-width",t.borderwidth+"px");var w=Qt.ensureSingle(g,"g","scrollbox"),M=t.title;t._titleWidth=0,t._titleHeight=0;var b;M.text?(b=Qt.ensureSingle(w,"text",n+"titletext"),b.attr("text-anchor","start").call(ea.font,M.font).text(M.text),Y1(b,w,e,t,$0),!o&&(t.titleclick||t.titledoubleclick)&&nne(w,e,t,n)):(w.selectAll("."+n+"titletext").remove(),w.selectAll("."+n+"titletoggle").remove());var T=Qt.ensureSingle(g,"rect","scrollbar",function(L){L.attr(qt.scrollBarEnterAttrs).call(Zf.fill,qt.scrollBarColor)}),S=w.selectAll("g.groups").data(s);S.enter().append("g").attr("class","groups"),S.exit().remove();var C=S.selectAll("g.traces").data(Qt.identity);C.enter().append("g").attr("class","traces"),C.exit().remove(),C.style("opacity",function(L){let q=L[0],P=q.trace;if(q.groupTitle){let z=P.legendgroup,N=(a.shapes||[]).filter(function(B){return B.showlegend});return e._fullData.concat(N).some(function(B){return B.legendgroup===z&&(B.legend||"legend")===n&&B.visible===!0})?1:.5}return Ms.traceIs(P,"pie-like")?p.indexOf(L[0].label)!==-1?.5:1:P.visible==="legendonly"?.5:1}).each(function(){un.select(this).call(tne,e,t)}).call(Qae,e,t).each(function(L){o||L[0].groupTitle&&t.groupclick==="toggleitem"||un.select(this).call(ane,e,n)}),Qt.syncOrAsync([r5.previousPromises,function(){return one(e,S,C,t,w)},function(){var L=a._size,q=t.borderwidth,P=t.xref==="paper",z=t.yref==="paper";if(M.text){let De=(a.shapes||[]).filter(function(Ae){return Ae.showlegend}),Te=e._fullData.concat(De).some(function(Ae){let ke=Ae.legend||"legend";var Re=Array.isArray(ke)?ke.includes(n):ke===n;return Re&&Ae.visible===!0});b.style("opacity",Te?1:.5)}if(!o){var N,H;P?N=L.l+L.w*t.x-K0[G1(t)]*t._width:N=a.width*t.x-K0[G1(t)]*t._width,z?H=L.t+L.h*(1-t.y)-K0[V1(t)]*t._effHeight:H=a.height*(1-t.y)-K0[V1(t)]*t._effHeight;var B=sne(e,n,N,H);if(B)return;if(a.margin.autoexpand){var I=N,V=H;N=P?Qt.constrain(N,0,a.width-t._width):I,H=z?Qt.constrain(H,0,a.height-t._effHeight):V,N!==I&&Qt.log("Constrain "+n+".x to make legend fit inside graph"),H!==V&&Qt.log("Constrain "+n+".y to make legend fit inside graph")}ea.setTranslate(g,N,H)}if(T.on(".drag",null),g.on("wheel",null),o||t._height<=t._maxHeight||e._context.staticPlot){var O=t._effHeight;o&&(O=t._height),x.attr({width:t._width-q,height:O-q,x:q/2,y:q/2}),ea.setTranslate(w,0,0),y.select("rect").attr({width:t._width-2*q,height:O-2*q,x:q,y:q}),ea.setClipUrl(w,i,e),ea.setRect(T,0,0,0,0),delete t._scrollY}else{var U=Math.max(qt.scrollBarMinHeight,t._effHeight*t._effHeight/t._height),W=t._effHeight-U-2*qt.scrollBarMargin,Z=t._height-t._effHeight,G=W/Z,j=Math.min(t._scrollY||0,Z);x.attr({width:t._width-2*q+qt.scrollBarWidth+qt.scrollBarMargin,height:t._effHeight-q,x:q/2,y:q/2}),y.select("rect").attr({width:t._width-2*q+qt.scrollBarWidth+qt.scrollBarMargin,height:t._effHeight-2*q,x:q,y:q+j}),ea.setClipUrl(w,i,e),ce(j,U,G),g.on("wheel",function(){j=Qt.constrain(t._scrollY+un.event.deltaY/Z*W,0,Z),ce(j,U,G),j!==0&&j!==Z&&un.event.preventDefault()});var ie,pe,ve,Q=function(De,Te,Ae){var ke=(Ae-Te)/G+De;return Qt.constrain(ke,0,Z)},we=function(De,Te,Ae){var ke=(Te-Ae)/G+De;return Qt.constrain(ke,0,Z)},le=un.behavior.drag().on("dragstart",function(){var De=un.event.sourceEvent;De.type==="touchstart"?ie=De.changedTouches[0].clientY:ie=De.clientY,ve=j}).on("drag",function(){var De=un.event.sourceEvent;De.buttons===2||De.ctrlKey||(De.type==="touchmove"?pe=De.changedTouches[0].clientY:pe=De.clientY,j=Q(ve,ie,pe),ce(j,U,G))});T.call(le);var Se=un.behavior.drag().on("dragstart",function(){var De=un.event.sourceEvent;De.type==="touchstart"&&(ie=De.changedTouches[0].clientY,ve=j)}).on("drag",function(){var De=un.event.sourceEvent;De.type==="touchmove"&&(pe=De.changedTouches[0].clientY,j=we(ve,ie,pe),ce(j,U,G))});w.call(Se)}function ce(De,Te,Ae){t._scrollY=e._fullLayout[n]._scrollY=De,ea.setTranslate(w,0,-De),ea.setRect(T,t._width,qt.scrollBarMargin+De*Ae,qt.scrollBarWidth,Te),y.select("rect").attr("y",q+De)}if(e._context.edits.legendPosition){var de,Ce,Ie,_e;g.classed("cursor-move",!0),e5.init({element:g.node(),gd:e,prepFn:function(De){if(De.target!==T.node()){var Te=ea.getTranslate(g);Ie=Te.x,_e=Te.y}},moveFn:function(De,Te){if(Ie!==void 0&&_e!==void 0){var Ae=Ie+De,ke=_e+Te;ea.setTranslate(g,Ae,ke),de=e5.align(Ae,t._width,L.l,L.l+L.w,t.xanchor),Ce=e5.align(ke+t._height,-t._height,L.t+L.h,L.t,t.yanchor)}},doneFn:function(){if(de!==void 0&&Ce!==void 0){var De={};De[n+".x"]=de,De[n+".y"]=Ce,Ms.call("_guiRelayout",e,De)}},clickFn:function(De,Te){var Ae=l.selectAll("g.traces").filter(function(){var ke=this.getBoundingClientRect();return Te.clientX>=ke.left&&Te.clientX<=ke.right&&Te.clientY>=ke.top&&Te.clientY<=ke.bottom});Ae.size()>0&&lS(e,t,Ae,De,Te)}})}}],e)}}function O1(e,r,t){var a=e[0],n=a.width,i=r.entrywidthmode,l=a.trace.legendwidth||r.entrywidth;return i==="fraction"?r._maxWidth*l:t+(l||n)}function lS(e,r,t,a,n){var i=e._fullLayout,l=t.data()[0][0].trace,o=r.itemclick,s=r.itemdoubleclick,u={event:n,node:t.node(),curveNumber:l.index,expandedIndex:l.index,data:e.data,layout:e.layout,frames:e._transitionData._frames,config:e._context,fullData:e._fullData,fullLayout:i};l._group&&(u.group=l._group),Ms.traceIs(l,"pie-like")&&(u.label=t.datum()[0].label);var f=U1.triggerHandler(e,"plotly_legendclick",u);if(a===1){if(f===!1)return;r._clickTimeout=setTimeout(function(){e._fullLayout&&o&&QC(t,e,r,o,a)},e._context.doubleClickDelay)}else if(a===2){r._clickTimeout&&clearTimeout(r._clickTimeout),e._legendMouseDownTime=0;var c=U1.triggerHandler(e,"plotly_legenddoubleclick",u);c!==!1&&f!==!1&&s&&QC(t,e,r,s,a)}}function tne(e,r,t){var a=j0.getId(t),n=e.data()[0][0],i=n.trace,l=Ms.traceIs(i,"pie-like"),o=!t._inHover&&r._context.edits.legendText&&!l,s=t._maxNameLength,u,f;n.groupTitle?(u=n.groupTitle.text,f=n.groupTitle.font):(f=t.font,t.entries?u=n.text:(u=l?n.label:i.name,i._meta&&(u=Qt.templateString(u,i._meta))));var c=Qt.ensureSingle(e,"text",a+"text");c.attr("text-anchor","start").call(ea.font,f).text(o?nS(u,s):u);var d=t.indentation+t.itemwidth+qt.itemGap*2;kl.positionText(c,d,0),o?c.call(kl.makeEditable,{gd:r,text:u}).call(Y1,e,r,t).on("edit",function(h){this.text(nS(h,s)).call(Y1,e,r,t);var p={};return p.name=h,n.trace._isShape?Ms.call("_guiRelayout",r,"shapes["+i.index+"].name",p.name):Ms.call("_guiRestyle",r,p,i.index)}):Y1(c,e,r,t)}function nS(e,r){var t=Math.max(4,r);if(e&&e.trim().length>=t/2)return e;e=e||"";for(var a=t-e.length;a>0;a--)e+=" ";return e}function ane(e,r,t){var a=r._context.doubleClickDelay,n,i=1,l=Qt.ensureSingle(e,"rect",t+"toggle",function(o){r._context.staticPlot||o.style("cursor","pointer").attr("pointer-events","all"),o.call(Zf.fill,"rgba(0,0,0,0)")});r._context.staticPlot||(l.on("mousedown",function(){n=new Date().getTime(),n-r._legendMouseDownTimea&&(i=Math.max(i-1,1)),lS(r,o,e,i,un.event)}}))}function nne(e,r,t,a){if(r._fullData.some(function(u){let f=u.legend||"legend";return(Array.isArray(f)?f.includes(a):f===a)&&Ms.traceIs(u,"pie-like")}))return;let i=r._context.doubleClickDelay;var l,o=1;let s=Qt.ensureSingle(e,"rect",a+"titletoggle",function(u){r._context.staticPlot||u.style("cursor","pointer").attr("pointer-events","all"),u.call(Zf.fill,"rgba(0,0,0,0)")});r._context.staticPlot||(s.on("mousedown",function(){l=new Date().getTime(),l-r._legendMouseDownTimei&&(o=Math.max(o-1,1));let u={event:un.event,legendId:a,data:r.data,layout:r.layout,fullData:r._fullData,fullLayout:r._fullLayout};if(o===1&&t.titleclick){if(U1.triggerHandler(r,"plotly_legendtitleclick",u)===!1)return;t._titleClickTimeout=setTimeout(function(){r._fullLayout&&eS(r,t,t.titleclick)},i)}else o===2&&(t._titleClickTimeout&&clearTimeout(t._titleClickTimeout),r._legendMouseDownTime=0,U1.triggerHandler(r,"plotly_legendtitledoubleclick",u)!==!1&&t.titledoubleclick&&eS(r,t,t.titledoubleclick))}))}function Y1(e,r,t,a,n){a._inHover&&e.attr("data-notex",kl.isPureTex(e.text())?null:!0),kl.convertToTspans(e,t,function(){ine(r,t,a,n)})}function ine(e,r,t,a){var n=e.data()[0][0],i=n&&n.trace.showlegend;if(Array.isArray(i)&&(i=i[n.i]!==!1),!t._inHover&&n&&!i){e.remove();return}var l=e.select("g[class*=math-group]"),o=l.node(),s=j0.getId(t);t||(t=r._fullLayout[s]);var u=t.borderwidth,f;a===$0?f=t.title.font:n.groupTitle?f=n.groupTitle.font:f=t.font;var c=f.size*iS,d,h;if(o){var p=ea.bBox(o);d=p.height,h=p.width,a===$0?ea.setTranslate(l,u,u+d*.75):ea.setTranslate(l,0,d*.25)}else{var g="."+s+(a===$0?"title":"")+"text",y=e.select(g),x=kl.lineCount(y),w=y.node();if(d=c*x,h=w?ea.bBox(w).width:0,a===$0)t.title.side==="left"&&(h+=qt.itemGap*2),kl.positionText(y,u+qt.titlePad,u+c);else{var M=qt.itemGap*2+t.indentation+t.itemwidth;n.groupTitle&&(M=qt.itemGap,h-=t.indentation+t.itemwidth),kl.positionText(y,M,-c*((x-1)/2-.3))}}if(a===$0)t._titleWidth=h,t._titleHeight=d;else{n.lineHeight=c;let b=qt.itemMinHeight+t.itemheight-qt.dfltFillHeight;n.height=Math.max(d,qt.itemMinHeight,b)+qt.itemHeightPad,n.width=h}}function lne(e){var r=0,t=0,a=e.title.side;return a&&(a.indexOf("left")!==-1&&(r=e._titleWidth),a.indexOf("top")!==-1&&(t=e._titleHeight)),[r,t]}function one(e,r,t,a,n){var i=e._fullLayout,l=j0.getId(a);a||(a=i[l]);var o=i._size,s=j0.isVertical(a),u=j0.isGrouped(a),f=a.entrywidthmode==="fraction",c=a.borderwidth,d=2*c,h=qt.itemGap,p=a.indentation+a.itemwidth+h*2,g=2*(c+h),y=V1(a),x=a.y<0||a.y===0&&y==="top",w=a.y>1||a.y===1&&y==="bottom",M=a.tracegroupgap,b={};let{orientation:T,yref:S}=a,{maxheight:C}=a,L=x||w||T!=="v"||S!=="paper";C||(C=L?.5:1);let q=L?i.height:o.h;a._maxHeight=Math.max(C>1?C:C*q,30);var P=0;a._width=0,a._height=0;var z=lne(a);if(s)t.each(function(De){var Te=De[0].height;ea.setTranslate(this,c+z[0],c+z[1]+a._height+Te/2+h),a._height+=Te,a._width=Math.max(a._width,De[0].width)}),P=p+a._width,a._width+=h+p+d,a._height+=g,u&&(r.each(function(De,Te){ea.setTranslate(this,0,Te*a.tracegroupgap)}),a._height+=(a._lgroupsLength-1)*a.tracegroupgap);else{var N=G1(a),H=a.x<0||a.x===0&&N==="right",B=a.x>1||a.x===1&&N==="left",I=w||x,V=i.width/2;a._maxWidth=Math.max(H?I&&N==="left"?o.l+o.w:V:B?I&&N==="right"?o.r+o.w:V:o.w,2*p);var O=0,U=0;t.each(function(De){var Te=O1(De,a,p);O=Math.max(O,Te),U+=Te}),P=null;var W=0;if(u){var Z=0,G=0,j=0;r.each(function(){var De=0,Te=0;un.select(this).selectAll("g.traces").each(function(ke){var Re=O1(ke,a,p),Me=ke[0].height;ea.setTranslate(this,z[0],z[1]+c+h+Me/2+Te),Te+=Me,De=Math.max(De,Re),b[ke[0].trace.legendgroup]=De});var Ae=De+h;G>0&&Ae+c+G>a._maxWidth?(W=Math.max(W,G),G=0,j+=Z+M,Z=Te):Z=Math.max(Z,Te),ea.setTranslate(this,G,j),G+=Ae}),a._width=Math.max(W,G)+c,a._height=j+Z+g}else{var ie=t.size(),pe=U+d+(ie-1)*h=a._maxWidth&&(W=Math.max(W,le),Q=0,we+=ve,a._height+=ve,ve=0),ea.setTranslate(this,z[0]+c+Q,z[1]+c+we+Te/2+h),le=Q+Ae+h,Q+=ke,ve=Math.max(ve,Te)}),pe?(a._width=Q+d,a._height=ve+g):(a._width=Math.max(W,le)+d,a._height+=ve+g)}}a._width=Math.ceil(Math.max(a._width+z[0],a._titleWidth+2*(c+qt.titlePad))),a._height=Math.ceil(Math.max(a._height+z[1],a._titleHeight+2*(c+qt.itemGap))),a._effHeight=Math.min(a._height,a._maxHeight);var Se=e._context.edits,ce=Se.legendText||Se.legendPosition;if(t.each(function(De){var Te=un.select(this).select("."+l+"toggle"),Ae=De[0].height,ke=De[0].trace.legendgroup,Re=O1(De,a,p);u&&ke!==""&&(Re=b[ke]);var Me=ce?p:P||Re;!s&&!f&&(Me+=h/2),ea.setRect(Te,0,-Ae/2,Me,Ae)}),a._inHover){let De=a._width-d-h-z[0];t.each(function(Te){Te[0].textAlign==="right"&&un.select(this).select("."+l+"text").attr("text-anchor","end").call(kl.positionText,De)})}var de=n.select("."+l+"titletext");de.node()&&rne(de,a,c);var Ce=n.select("."+l+"titletoggle");if(Ce.size()&&de.node()){var Ie=de.attr("x")||0,_e=qt.titlePad;ea.setRect(Ce,Ie-_e,c,a._titleWidth+2*_e,a._titleHeight+2*_e)}}function sne(e,r,t,a){var n=e._fullLayout,i=n[r],l=G1(i),o=V1(i),s=i.xref==="paper",u=i.yref==="paper";e._fullLayout._reservedMargin[r]={};var f=i.y<.5?"b":"t",c=i.x<.5?"l":"r",d={r:n.width-t,l:t+i._width,b:n.height-a,t:a+i._effHeight};if(s&&u)return r5.autoMargin(e,r,{x:i.x,y:i.y,l:i._width*K0[l],r:i._width*rS[l],b:i._effHeight*rS[o],t:i._effHeight*K0[o]});s?e._fullLayout._reservedMargin[r][f]=d[f]:u||i.orientation==="v"?e._fullLayout._reservedMargin[r][c]=d[c]:e._fullLayout._reservedMargin[r][f]=d[f]}function G1(e){return Qt.isRightAnchor(e)?"right":Qt.isCenterAnchor(e)?"center":"left"}function V1(e){return Qt.isBottomAnchor(e)?"bottom":Qt.isMiddleAnchor(e)?"middle":"top"}});var s5=J(o5=>{"use strict";var Sl=Or(),Cl=Zr(),Et=Fe(),une=Et.pushUnique,n5=Et.strTranslate,fne=Et.strRotate,cne=kf(),Dt=La(),vne=RC(),ll=ot(),ia=Nr(),X1=Li(),ol=Mt(),dne=(_a(),Xe(xa)).zindexSeparator,Ts=kr(),Bn=Si(),As=(ju(),Xe(Ku)),hne=U3(),pne=a5(),mS=As.YANGLE,l5=Math.PI*mS/180,mne=1/Math.sin(l5),gne=Math.cos(l5),yne=Math.sin(l5),Tt=As.HOVERARROWSIZE,Gr=As.HOVERTEXTPAD,sS={box:!0,ohlc:!0,violin:!0,candlestick:!0},bne={scatter:!0,scattergl:!0,splom:!0};function uS(e,r){return e.distance-r.distance}o5.hover=function(r,t,a,n){r=Et.getGraphDiv(r);var i=t.target;Et.throttle(r._fullLayout._uid+As.HOVERID,As.HOVERMINTIME,function(){_ne(r,t,a,n,i)})};o5.loneHover=function(r,t){var a=!0;Array.isArray(r)||(a=!1,r=[r]);var n=t.gd,i=xS(n),l=_S(n),o=r.map(function(p){var g=p._x0||p.x0||p.x||0,y=p._x1||p.x1||p.x||0,x=p._y0||p.y0||p.y||0,w=p._y1||p.y1||p.y||0,M=p.eventData;if(M){var b=Math.min(g,y),T=Math.max(g,y),S=Math.min(x,w),C=Math.max(x,w),L=p.trace;if(Ts.traceIs(L,"gl3d")){var q=n._fullLayout[L.scene]._scene.container,P=q.offsetLeft,z=q.offsetTop;b+=P,T+=P,S+=z,C+=z}M.bbox={x0:b+l,x1:T+l,y0:S+i,y1:C+i},M.xPixel=(g+y)/2,M.yPixel=(x+w)/2,t.inOut_bbox&&t.inOut_bbox.push(M.bbox)}else M=!1;return{color:p.color||ia.defaultLine,x0:p.x0||p.x||0,x1:p.x1||p.x||0,y0:p.y0||p.y||0,y1:p.y1||p.y||0,xLabel:p.xLabel,yLabel:p.yLabel,zLabel:p.zLabel,text:p.text,name:p.name,idealAlign:p.idealAlign,borderColor:p.borderColor,fontFamily:p.fontFamily,fontSize:p.fontSize,fontColor:p.fontColor,fontWeight:p.fontWeight,fontStyle:p.fontStyle,fontVariant:p.fontVariant,nameLength:p.nameLength,textAlign:p.textAlign,trace:p.trace||{index:0,hoverinfo:""},xa:{_offset:0},ya:{_offset:0},index:0,hovertemplate:p.hovertemplate||!1,hovertemplateLabels:p.hovertemplateLabels||!1,eventData:M}}),s=!1,u=yS(o,{gd:n,hovermode:"closest",rotateLabels:s,bgColor:t.bgColor||ia.background,container:Sl.select(t.container),outerContainer:t.outerContainer||t.container}),f=u.hoverLabels;function c(){var p=5,g=0,y=0;f.sort(function(x,w){return x.y0-w.y0}).each(function(x,w){var M=x.y0-x.by/2;M-pL[0]._length||Te<0||Te>q[0]._length)return X1.unhoverRaw(e,r)}if(r.pointerX=De+L[0]._offset,r.pointerY=Te+q[0]._offset,"xval"in r?O=Bn.flat(i,r.xval):O=Bn.p2c(L,De),"yval"in r?U=Bn.flat(i,r.yval):U=Bn.p2c(q,Te),e._hoverPointerX=r.pointerX,e._hoverPointerY=r.pointerY,!Cl(O[0])||!Cl(U[0]))return Et.warn("Fx.hover failed",r,e),X1.unhoverRaw(e,r)}o.clickanywhere&&(e._hoverXVals=O,e._hoverYVals=U,e._hoverXAxes=L,e._hoverYAxes=q);var Re=1/0;function Me(ir,tt){for(Z=0;ZSe&&(I.splice(0,Se),Re=I[0].distance),Ts.traceIs(j,"ternary")&&B!==0){let aa=le.subplot;if(["aaxis","baxis","caxis"].some(Ca=>aa[Ca].showspikes&&aa[Ca].spikesnap!=="hovered data")){let Ca=ct==null?void 0:ct[0];if(!Number.isFinite(Ca==null?void 0:Ca.spikeDistance)){let Fo=Et.extendFlat({},le,{distance:B,index:!1}),Sa=j._module.hoverPoints(Fo,Q,we,"closest");Ca=Sa&&Sa[0]}let Hl=de[ie];Ca&&Ca.index!==void 0&&Ca.index!==!1&&Ca.spikeDistance<=B&&(!Hl||Ca.spikeDistancevt.spikeDistance)&&(ce.vLinePoint=vt))}var Gi=at.filter(function(aa){return aa.ya.showspikes&&aa.ya.spikesnap!=="hovered data"});if(Gi.length){var Xn=Gi[0];Cl(Xn.x0)&&Cl(Xn.y0)&&(vt=Qe(Xn),(!ce.hLinePoint||ce.hLinePoint.spikeDistance>vt.spikeDistance)&&(ce.hLinePoint=vt))}}}}}Me();function Ue(){if(o._hoverlayer.selectAll(".ternary-spikes").remove(),B!==0)for(let ir=0;irCt.trace.subplot===tt&&Ct.index!==void 0&&Ct.index!==!1&&Ct.spikeDistance<=B);Wr.drawSpikelines(ct,de[tt],O&&O[ir],U&&U[ir])}}}function $e(ir,tt,Wr){for(var ct=null,Ct=1/0,ka,at=0;atir.trace.index===Ne.trace.index):I=[Ne];var Ze=I.length,Ke=pS("x",Ne,o),_r=pS("y",Ne,o);Me(Ke,_r);var xr=[],qe={},Je=0,Ee=function(ir){var tt=sS[ir.trace.type]?gS(ir):ir.trace.index;if(!qe[tt])Je++,qe[tt]=Je,xr.push(ir);else{var Wr=qe[tt]-1,ct=xr[Wr];Wr>0&&Math.abs(ir.distance)Ze-1;je--)Ee(I[je]);I=xr,re()}var dr=e._hoverdata,hr=[],pr=xS(e),te=_S(e);for(let ir of I){var he=Bn.makeEventData(ir,ir.trace,ir.cd);if(ir.hovertemplate!==!1){var Pe=!1;ir.cd[ir.index]&&ir.cd[ir.index].ht&&(Pe=ir.cd[ir.index].ht),ir.hovertemplate=Pe||ir.trace.hovertemplate||!1}if(ir.xa&&ir.ya){var He=ir.x0+ir.xa._offset,Xr=ir.x1+ir.xa._offset,ft=ir.y0+ir.ya._offset,kt=ir.y1+ir.ya._offset,Rt=Math.min(He,Xr),Xt=Math.max(He,Xr),Ot=Math.min(ft,kt),Ga=Math.max(ft,kt);he.bbox={x0:Rt+te,x1:Xt+te,y0:Ot+pr,y1:Ga+pr},he.xPixel=(He+Xr)/2,he.yPixel=(ft+kt)/2}ir.eventData=[he],hr.push(he)}e._hoverdata=hr;var gt=h==="y"&&(V.length>1||I.length>1)||h==="closest"&&Ce&&I.length>1,Yt=ia.combine(o.plot_bgcolor||ia.background,o.paper_bgcolor),Wt=yS(I,{gd:e,hovermode:h,rotateLabels:gt,bgColor:Yt,container:o._hoverlayer,outerContainer:o._paper.node(),commonLabelOpts:o.hoverlabel,hoverdistance:o.hoverdistance}),la=Wt.hoverLabels;if(Bn.isUnifiedHover(h)||(cS(la,gt,o,Wt.commonLabelBoundingBox),Z1(la,gt,o._invScaleX,o._invScaleY),Wt.mathjaxPromise&&Wt.mathjaxPromise.then(function(){e._hoverdata===hr&&(cS(la,gt,o,Wt.commonLabelBoundingBox),Z1(la,gt,o._invScaleX,o._invScaleY),la.each(function(){var ir=Sl.select(this);Dt.repositionMathGroup(ir.select("text.nums")),Dt.repositionMathGroup(ir.select("text.name"))}))})),n&&n.tagName){var Va=Ts.getComponentMethod("annotations","hasClickToShow")(e,hr);vne(Sl.select(n),Va?"pointer":"")}var ta=Ane(e,r,dr);if(!n||a||!ta&&!o.hoveranywhere)return;dr&&ta&&e.emit("plotly_unhover",{event:r,points:dr}),oa(e._hoverdata);function oa(ir){e.emit("plotly_hover",{event:r,points:ir,xaxes:L,yaxes:q,xvals:Bn.c2dApply(L,O),yvals:Bn.c2dApply(q,U),xPixel:r.pointerX,yPixel:r.pointerY})}}function gS(e){return[e.trace.index,e.index,e.x0,e.y0,e.name,e.attr,e.xa?e.xa._id:"",e.ya?e.ya._id:""].join(",")}var wne=/([\s\S]*)<\/extra>/;function i5(e,r){return W1(e,Dt.getMathOrTextNode(r))}function yS(e,r){var t=r.gd,a=t._fullLayout,n=r.hovermode,i=r.rotateLabels,l=r.bgColor,o=r.container,s=r.outerContainer,u=r.commonLabelOpts||{};if(e.length===0)return[[]];var f=[],c=r.fontFamily||As.HOVERFONT,d=r.fontSize||As.HOVERFONTSIZE,h=r.fontWeight||a.font.weight,p=r.fontStyle||a.font.style,g=r.fontVariant||a.font.variant,y=r.fontTextcase||a.font.textcase,x=r.fontLineposition||a.font.lineposition,w=r.fontShadow||a.font.shadow,M=e[0],b=M.xa,T=M.ya,S=n.charAt(0),C=S+"Label",L=M[C];if(L===void 0&&b.type==="multicategory")for(var q=0;qa.width-pr&&(te=a.width-pr),me.attr("d","M"+(je-te)+",0L"+(je-te+Tt)+","+hr+Tt+"H"+pr+"v"+hr+(Gr*2+Ee.height)+"H"+-pr+"V"+hr+Tt+"H"+(je-te-Tt)+"Z"),je=te,Z.minX=je-pr,Z.maxX=je+pr,b.side==="top"?(Z.minY=dr-(Gr*2+Ee.height),Z.maxY=dr-Gr):(Z.minY=dr+Gr,Z.maxY=dr+(Gr*2+Ee.height))}else{var he,Pe,He;T.side==="right"?(he="start",Pe=1,He="",je=b._offset+b._length):(he="end",Pe=-1,He="-",je=b._offset),dr=T._offset+(M.y0+M.y1)/2,ze.attr("text-anchor",he),me.attr("d","M0,0L"+He+Tt+","+Tt+"V"+(Gr+Ee.height/2)+"h"+He+(Gr*2+Ee.width)+"V-"+(Gr+Ee.height/2)+"H"+He+Tt+"V-"+Tt+"Z"),Z.minY=dr-(Gr+Ee.height/2),Z.maxY=dr+(Gr+Ee.height/2),T.side==="right"?(Z.minX=je+Tt,Z.maxX=je+Tt+(Gr*2+Ee.width)):(Z.minX=je-Tt-(Gr*2+Ee.width),Z.maxX=je-Tt);var Xr=Ee.height/2,ft=z-Ee.top-Xr,kt="clip"+a._uid+"commonlabel"+T._id,Rt;if(jeme.hoverinfo!=="none");if(ne.length===0)return[];var G=a.hoverlabel,j=G.font,ie=ne[0],pe=((n==="x unified"?ie.xa:ie.ya).unifiedhovertitle||{}).text,ve=pe?Et.hovertemplateString({data:n==="x unified"?[{xa:ie.xa,x:ie.xVal}]:[{ya:ie.ya,y:ie.yVal}],fallback:ie.trace.hovertemplatefallback,locale:a._d3locale,template:pe}):L,Q={showlegend:!0,legend:{title:{text:ve,font:j},font:j,bgcolor:G.bgcolor,bordercolor:G.bordercolor,borderwidth:1,tracegroupgap:7,traceorder:a.legend?a.legend.traceorder:void 0,orientation:"v"}},we={font:j};hne(Q,we,t._fullData);var le=we.legend;le.entries=[];for(var Se=0;Se=0?Ge=Be:tr+Ae=0?Ge=tr:re+Ae=0?cr=Qe:Le+ke=0?cr=Le:ge+ke=0,(ne.idealAlign==="top"||!Wt)&&la?(He-=ft/2,ne.anchor="end"):Wt?(He+=ft/2,ne.anchor="start"):ne.anchor="middle",ne.crossPos=He;else{if(ne.pos=He,Wt=Pe+Xr/2+Yt<=N,la=Pe-Xr/2-Yt>=0,(ne.idealAlign==="left"||!Wt)&&la)Pe-=Xr/2,ne.anchor="end";else if(Wt)Pe+=Xr/2,ne.anchor="start";else{ne.anchor="middle";var Va=Yt/2,ta=Pe+Va-N,oa=Pe-Va;ta>0&&(Pe-=ta),oa<0&&(Pe+=-oa)}ne.crossPos=Pe}pr.attr("text-anchor",ne.anchor),kt&&te.attr("text-anchor",ne.anchor),me.attr("transform",n5(Pe,He)+(i?fne(mS):""))}}),{hoverLabels:mr,commonLabelBoundingBox:Z,mathjaxPromise:f.length?Promise.all(f):null}}function fS(e,r,t,a,n,i){var c,d;var l="",o="";e.nameOverride!==void 0&&(e.name=e.nameOverride),e.name&&(e.trace._meta&&(e.name=Et.templateString(e.name,e.trace._meta)),l=hS(e.name,e.nameLength));var s=t.charAt(0),u=s==="x"?"y":"x";e.zLabel!==void 0?(e.xLabel!==void 0&&(o+="x: "+e.xLabel+"
"),e.yLabel!==void 0&&(o+="y: "+e.yLabel+"
"),e.trace.type!=="choropleth"&&e.trace.type!=="choroplethmap"&&(o+=(o?"z: ":"")+e.zLabel)):r&&e[s+"Label"]===n?o=e[u+"Label"]||"":e.xLabel===void 0?e.yLabel!==void 0&&e.trace.type!=="scattercarpet"&&(o=e.yLabel):e.yLabel===void 0?o=e.xLabel:o="("+e.xLabel+", "+e.yLabel+")",(e.text||e.text===0)&&!Array.isArray(e.text)&&(o+=(o?"
":"")+e.text),e.extraText!==void 0&&(o+=(o?"
":"")+e.extraText),i&&o===""&&!e.hovertemplate&&(l===""&&i.remove(),o=l),(d=(c=e.trace)==null?void 0:c.hoverlabel)!=null&&d.split&&(e.hovertemplate="");let{hovertemplate:f=!1}=e;if(f){let h=e.hovertemplateLabels||e;e[s+"Label"]!==n&&(h[s+"other"]=h[s+"Val"],h[s+"otherLabel"]=h[s+"Label"]),o=Et.hovertemplateString({data:[e.eventData[0]||{},e.trace._meta],fallback:e.trace.hovertemplatefallback,labels:h,locale:a._d3locale,template:f}),o=o.replace(wne,(p,g)=>(l=hS(g,e.nameLength),""))}return[o,l]}function cS(e,r,t,a){var n=r?"xa":"ya",i=r?"ya":"xa",l=0,o=1,s=e.size(),u=new Array(s),f=0,c=a.minX,d=a.maxX,h=a.minY,p=a.maxY,g=function(V){return V*t._invScaleX},y=function(V){return V*t._invScaleY};e.each(function(V){var O=V[n],U=V[i],W=O._id.charAt(0)==="x",Z=O.range;f===0&&Z&&Z[0]>Z[1]!==W&&(o=-1);var G=0,j=W?t.width:t.height;if(t.hovermode==="x"||t.hovermode==="y"){var ie=bS(V,r),pe=V.anchor,ve=pe==="end"?-1:1,Q,we;if(pe==="middle")Q=V.crossPos+(W?y(ie.y-V.by/2):g(V.bx/2+V.tx2width/2)),we=Q+(W?y(V.by):g(V.bx));else if(W)Q=V.crossPos+y(Tt+ie.y)-y(V.by/2-Tt),we=Q+y(V.by);else{var le=g(ve*Tt+ie.x),Se=le+g(ve*V.bx);Q=V.crossPos+Math.min(le,Se),we=V.crossPos+Math.max(le,Se)}W?h!==void 0&&p!==void 0&&Math.min(we,p)-Math.max(Q,h)>1&&(U.side==="left"?(G=U._mainLinePosition,j=t.width):j=U._mainLinePosition):c!==void 0&&d!==void 0&&Math.min(we,d)-Math.max(Q,c)>1&&(U.side==="top"?(G=U._mainLinePosition,j=t.height):j=U._mainLinePosition)}u[f++]=[{datum:V,traceIndex:V.trace.index,dp:0,pos:V.pos,posref:V.posref,size:V.by*(W?mne:1)/2,pmin:G,pmax:j}]}),u.sort(function(V,O){return V[0].posref-O[0].posref||o*(O[0].traceIndex-V[0].traceIndex)});var x,w,M,b,T,S,C;function L(V){var O=V[0],U=V[V.length-1];if(w=O.pmin-O.pos-O.dp+O.size,M=U.pos+U.dp+U.size-O.pmax,w>.01){for(T=V.length-1;T>=0;T--)V[T].dp+=w;x=!1}if(!(M<.01)){if(w<-.01){for(T=V.length-1;T>=0;T--)V[T].dp-=M;x=!1}if(x){var W=0;for(b=0;bO.pmax&&W++;for(b=V.length-1;b>=0&&!(W<=0);b--)S=V[b],S.pos>O.pmax-1&&(S.del=!0,W--);for(b=0;b=0;T--)V[T].dp-=M;for(b=V.length-1;b>=0&&!(W<=0);b--)S=V[b],S.pos+S.dp+S.size>O.pmax&&(S.del=!0,W--)}}}for(;!x&&l<=s;){for(l++,x=!0,b=0;b.01){for(T=P.length-1;T>=0;T--)P[T].dp+=w;for(q.push.apply(q,P),u.splice(b+1,1),C=0,T=q.length-1;T>=0;T--)C+=q[T].dp;for(M=C/q.length,T=q.length-1;T>=0;T--)q[T].dp-=M;x=!1}else b++}u.forEach(L)}for(b=u.length-1;b>=0;b--){var H=u[b];for(T=H.length-1;T>=0;T--){var B=H[T],I=B.datum;I.offset=B.dp,I.del=B.del}}}function bS(e,r){var t=0,a=e.offset;return r&&(a*=-yne,t=e.offset*gne),{x:t,y:a}}function Mne(e){var r={start:1,end:-1,middle:0}[e.anchor],t=r*(Tt+Gr),a=t+r*(e.txwidth+Gr),n=e.anchor==="middle";return n&&(t-=e.tx2width/2,a+=e.txwidth/2+Gr),{alignShift:r,textShiftX:t,text2ShiftX:a}}function Z1(e,r,t,a){var n=function(l){return l*t},i=function(l){return l*a};e.each(function(l){var o=Sl.select(this);if(l.del)return o.remove();var s=o.select("text.nums"),u=l.anchor,f=u==="end"?-1:1,c=Mne(l),d=bS(l,r),h=d.x,p=d.y,g=u==="middle",y="hoverlabel"in l.trace?l.trace.hoverlabel.showarrow:!0,x;g?x="M-"+n(l.bx/2+l.tx2width/2)+","+i(p-l.by/2)+"h"+n(l.bx)+"v"+i(l.by)+"h-"+n(l.bx)+"Z":y?x="M0,0L"+n(f*Tt+h)+","+i(Tt+p)+"v"+i(l.by/2-Tt)+"h"+n(f*l.bx)+"v-"+i(l.by)+"H"+n(f*Tt+h)+"V"+i(p-Tt)+"Z":x="M"+n(f*Tt+h)+","+i(p-l.by/2)+"h"+n(f*l.bx)+"v"+i(l.by)+"h"+n(-f*l.bx)+"Z",o.select("path").attr("d",x);var w=h+c.textShiftX,M=p+l.ty0-l.by/2+Gr,b=l.textAlign||"auto";b!=="auto"&&(b==="left"&&u!=="start"?(s.attr("text-anchor","start"),w=g?-l.bx/2-l.tx2width/2+Gr:-l.bx-Gr):b==="right"&&u!=="end"&&(s.attr("text-anchor","end"),w=g?l.bx/2-l.tx2width/2-Gr:l.bx+Gr)),s.call(Dt.positionText,n(w),i(M)),l.tx2width&&(o.select("text.name").call(Dt.positionText,n(c.text2ShiftX+c.alignShift*Gr+h),i(p+l.ty0-l.by/2+Gr)),o.select("rect").call(ll.setRect,n(c.text2ShiftX+(c.alignShift-1)*l.tx2width/2+h),i(p-l.by/2-1),n(l.tx2width),i(l.by+2)))})}function Tne(e,r){var t=e.index,a=e.trace||{},n=e.cd[0],i=e.cd[t]||{};function l(d){return d||Cl(d)&&d===0}var o=Array.isArray(t)?function(d,h){var p=Et.castOption(n,t,d);return l(p)?p:Et.extractOption({},a,"",h)}:function(d,h){return Et.extractOption(i,a,d,h)};function s(d,h,p){var g=o(h,p);l(g)&&(e[d]=g)}if(s("hoverinfo","hi","hoverinfo"),s("bgcolor","hbg","hoverlabel.bgcolor"),s("borderColor","hbc","hoverlabel.bordercolor"),s("fontFamily","htf","hoverlabel.font.family"),s("fontSize","hts","hoverlabel.font.size"),s("fontColor","htc","hoverlabel.font.color"),s("fontWeight","htw","hoverlabel.font.weight"),s("fontStyle","hty","hoverlabel.font.style"),s("fontVariant","htv","hoverlabel.font.variant"),s("nameLength","hnl","hoverlabel.namelength"),s("textAlign","hta","hoverlabel.align"),e.posref=r==="y"||r==="closest"&&a.orientation==="h"?e.xa._offset+(e.x0+e.x1)/2:e.ya._offset+(e.y0+e.y1)/2,e.x0=Et.constrain(e.x0,0,e.xa._length),e.x1=Et.constrain(e.x1,0,e.xa._length),e.y0=Et.constrain(e.y0,0,e.ya._length),e.y1=Et.constrain(e.y1,0,e.ya._length),e.xLabelVal!==void 0&&(e.xLabel="xLabel"in e?e.xLabel:ol.hoverLabelText(e.xa,e.xLabelVal,a.xhoverformat),e.xVal=e.xa.c2d(e.xLabelVal)),e.yLabelVal!==void 0&&(e.yLabel="yLabel"in e?e.yLabel:ol.hoverLabelText(e.ya,e.yLabelVal,a.yhoverformat),e.yVal=e.ya.c2d(e.yLabelVal)),e.zLabelVal!==void 0&&e.zLabel===void 0&&(e.zLabel=String(e.zLabelVal)),!isNaN(e.xerr)&&!(e.xa.type==="log"&&e.xerr<=0)){var u=ol.tickText(e.xa,e.xa.c2l(e.xerr),"hover").text;e.xerrneg!==void 0?e.xLabel+=" +"+u+" / -"+ol.tickText(e.xa,e.xa.c2l(e.xerrneg),"hover").text:e.xLabel+=" \xB1 "+u,r==="x"&&(e.distance+=1)}if(!isNaN(e.yerr)&&!(e.ya.type==="log"&&e.yerr<=0)){var f=ol.tickText(e.ya,e.ya.c2l(e.yerr),"hover").text;e.yerrneg!==void 0?e.yLabel+=" +"+f+" / -"+ol.tickText(e.ya,e.ya.c2l(e.yerrneg),"hover").text:e.yLabel+=" \xB1 "+f,r==="y"&&(e.distance+=1)}var c=e.hoverinfo||e.trace.hoverinfo;return c&&c!=="all"&&(c=Array.isArray(c)?c:c.split("+"),c.indexOf("x")===-1&&(e.xLabel=void 0),c.indexOf("y")===-1&&(e.yLabel=void 0),c.indexOf("z")===-1&&(e.zLabel=void 0),c.indexOf("text")===-1&&(e.text=void 0),c.indexOf("name")===-1&&(e.name=void 0)),e}function vS(e,r,t){var a=t.container,n=t.fullLayout,i=n._size,l=t.event,o=!!r.hLinePoint,s=!!r.vLinePoint,u,f;if(a.selectAll(".spikeline").remove(),!!(s||o)){var c=ia.combine(n.plot_bgcolor,n.paper_bgcolor);if(o){var d=r.hLinePoint,h,p;u=d&&d.xa,f=d&&d.ya;var g=f.spikesnap;g==="cursor"?(h=l.pointerX,p=l.pointerY):(h=u._offset+d.x,p=f._offset+d.y);var y=ia.wcagContrast(d.color,c)<1.5?ia.contrast(c):d.color,x=f.spikemode,w=f.spikethickness,M=f.spikecolor||y,b=ol.getPxPosition(e,f),T,S;if(x.indexOf("toaxis")!==-1||x.indexOf("across")!==-1){if(x.indexOf("toaxis")!==-1&&(T=b,S=h),x.indexOf("across")!==-1){var C=f._counterDomainMin,L=f._counterDomainMax;f.anchor==="free"&&(C=Math.min(C,f.position),L=Math.max(L,f.position)),T=i.l+C*i.w,S=i.l+L*i.w}a.insert("line",":first-child").attr({x1:T,x2:S,y1:p,y2:p,"stroke-width":w,stroke:M,"stroke-dasharray":ll.dashStyle(f.spikedash,w)}).classed("spikeline",!0).classed("crisp",!0),a.insert("line",":first-child").attr({x1:T,x2:S,y1:p,y2:p,"stroke-width":w+2,stroke:c}).classed("spikeline",!0).classed("crisp",!0)}x.indexOf("marker")!==-1&&a.insert("circle",":first-child").attr({cx:b+(f.side!=="right"?w:-w),cy:p,r:w,fill:M}).classed("spikeline",!0)}if(s){var q=r.vLinePoint,P,z;u=q&&q.xa,f=q&&q.ya;var N=u.spikesnap;N==="cursor"?(P=l.pointerX,z=l.pointerY):(P=u._offset+q.x,z=f._offset+q.y);var H=ia.wcagContrast(q.color,c)<1.5?ia.contrast(c):q.color,B=u.spikemode,I=u.spikethickness,V=u.spikecolor||H,O=ol.getPxPosition(e,u),U,W;if(B.indexOf("toaxis")!==-1||B.indexOf("across")!==-1){if(B.indexOf("toaxis")!==-1&&(U=O,W=z),B.indexOf("across")!==-1){var Z=u._counterDomainMin,G=u._counterDomainMax;u.anchor==="free"&&(Z=Math.min(Z,u.position),G=Math.max(G,u.position)),U=i.t+(1-G)*i.h,W=i.t+(1-Z)*i.h}a.insert("line",":first-child").attr({x1:P,x2:P,y1:U,y2:W,"stroke-width":I,stroke:V,"stroke-dasharray":ll.dashStyle(u.spikedash,I)}).classed("spikeline",!0).classed("crisp",!0),a.insert("line",":first-child").attr({x1:P,x2:P,y1:U,y2:W,"stroke-width":I+2,stroke:c}).classed("spikeline",!0).classed("crisp",!0)}B.indexOf("marker")!==-1&&a.insert("circle",":first-child").attr({cx:P,cy:O-(u.side!=="top"?I:-I),r:I,fill:V}).classed("spikeline",!0)}}}function Ane(e,r,t){if(!t||t.length!==e._hoverdata.length)return!0;for(var a=t.length-1;a>=0;a--){var n=t[a],i=e._hoverdata[a];if(n.curveNumber!==i.curveNumber||String(n.pointNumber)!==String(i.pointNumber)||String(n.pointNumbers)!==String(i.pointNumbers)||n.binNumber!==i.binNumber)return!0}return!1}function dS(e,r){return!r||r.vLinePoint!==e._spikepoints.vLinePoint||r.hLinePoint!==e._spikepoints.hLinePoint}function hS(e,r){return Dt.plainText(e||"",{len:r,allowedTags:["br","sub","sup","b","i","em","s","u"]})}function kne(e,r){for(var t=r.charAt(0),a=[],n=[],i=[],l=0;le.offsetTop+e.clientTop,_S=e=>e.offsetLeft+e.clientLeft;function W1(e,r){var t=e._fullLayout,a=r.getBoundingClientRect(),n=a.left,i=a.top,l=n+a.width,o=i+a.height,s=Et.apply3DTransform(t._invTransform)(n,i),u=Et.apply3DTransform(t._invTransform)(l,o),f=s[0],c=s[1],d=u[0],h=u[1];return{x:f,y:c,width:d-f,height:h-c,top:Math.min(c,h),left:Math.min(f,d),right:Math.max(f,d),bottom:Math.max(c,h)}}});var J1=J((q5e,wS)=>{"use strict";var Cne=Fe(),Sne=Nr(),Dne=Si().isUnifiedHover;wS.exports=function(r,t,a,n){n=n||{};var i=t.legend;function l(o){n.font[o]||(n.font[o]=i?t.legend.font[o]:t.font[o])}t&&Dne(t.hovermode)&&(n.font||(n.font={}),l("size"),l("family"),l("color"),l("weight"),l("style"),l("variant"),i?(n.bgcolor||(n.bgcolor=Sne.combine(t.legend.bgcolor,t.paper_bgcolor)),n.bordercolor||(n.bordercolor=t.legend.bordercolor)):n.bgcolor||(n.bgcolor=t.paper_bgcolor)),a("hoverlabel.bgcolor",n.bgcolor),a("hoverlabel.bordercolor",n.bordercolor),a("hoverlabel.namelength",n.namelength),a("hoverlabel.showarrow",n.showarrow),Cne.coerceFont(a,"hoverlabel.font",n.font),a("hoverlabel.align",n.align)}});var TS=J((E5e,MS)=>{"use strict";var Lne=Fe(),qne=J1(),Ene=v0();MS.exports=function(r,t){function a(n,i){return Lne.coerce(r,t,Ene,n,i)}qne(r,t,a)}});var CS=J((P5e,kS)=>{"use strict";var AS=Fe(),Pne=Uv(),Rne=J1();kS.exports=function(r,t,a,n){function i(o,s){return AS.coerce(r,t,Pne,o,s)}var l=AS.extendFlat({},n.hoverlabel);t.hovertemplate&&(l.namelength=-1),Rne(r,t,i,l)}});var u5=J((R5e,SS)=>{"use strict";var zne=Fe(),Fne=v0();SS.exports=function(r,t){function a(n,i){return t[n]!==void 0?t[n]:zne.coerce(r,t,Fne,n,i)}return a("clickmode"),a("hoversubplots"),a("hoveranywhere"),a("clickanywhere"),a("hovermode")}});var qS=J((z5e,LS)=>{"use strict";var DS=Fe(),Nne=v0(),Ine=u5(),Bne=J1();LS.exports=function(r,t){function a(u,f){return DS.coerce(r,t,Nne,u,f)}var n=Ine(r,t);n&&(a("hoverdistance"),a("spikedistance"),n.indexOf("unified")!==-1&&a("hoversort"));var i=a("dragmode");i==="select"&&a("selectdirection");var l=t._has("map"),o=t._has("geo"),s=t._basePlotModules.length;t.dragmode==="zoom"&&((l||o)&&s===1||l&&o&&s===2)&&(t.dragmode="pan"),Bne(r,t,a),DS.coerceFont(a,"hoverlabel.grouptitlefont",t.hoverlabel.font)}});var RS=J((F5e,PS)=>{"use strict";var f5=Fe(),ES=kr();PS.exports=function(r){var t=r.calcdata,a=r._fullLayout;function n(u){return function(f){return f5.coerceHoverinfo({hoverinfo:f},{_module:u._module},a)}}for(var i=0;i{"use strict";var One=kr(),zS=Si(),Yne=s5().hover;FS.exports=function(r,t,a){var n=One.getComponentMethod("annotations","onClick")(r,r._hoverdata),i=r._fullLayout;a!==void 0&&Yne(r,t,a,!0);function l(){var s,u,f,c,d,h;var o={points:r._hoverdata,event:t};(s=o.xaxes)!=null||(o.xaxes=r._hoverXAxes),(u=o.yaxes)!=null||(o.yaxes=r._hoverYAxes),(f=o.xvals)!=null||(o.xvals=r._hoverXVals&&zS.c2dApply(r._hoverXAxes,r._hoverXVals)),(c=o.yvals)!=null||(o.yvals=r._hoverYVals&&zS.c2dApply(r._hoverYAxes,r._hoverYVals)),(d=o.xPixel)!=null||(o.xPixel=r._hoverPointerX),(h=o.yPixel)!=null||(o.yPixel=r._hoverPointerY),r.emit("plotly_click",o)}(r._hoverdata||i.clickanywhere)&&t&&t.target&&(r._hoverdata||(r._hoverdata=[]),n&&n.then?n.then(l):l(),t.stopImmediatePropagation&&t.stopImmediatePropagation())}});var qi=J((I5e,HS)=>{"use strict";var Une=Or(),$1=Fe(),Gne=Li(),Jf=Si(),IS=v0(),BS=s5();HS.exports={moduleType:"component",name:"fx",constants:(ju(),Xe(Ku)),schema:{layout:IS},attributes:Uv(),layoutAttributes:IS,supplyLayoutGlobalDefaults:TS(),supplyDefaults:CS(),supplyLayoutDefaults:qS(),calc:RS(),getDistanceFunction:Jf.getDistanceFunction,getClosest:Jf.getClosest,inbox:Jf.inbox,quadrature:Jf.quadrature,appendArrayPointValue:Jf.appendArrayPointValue,castHoverOption:Xne,castHoverinfo:Wne,hover:BS.hover,unhover:Gne.unhover,loneHover:BS.loneHover,loneUnhover:Vne,click:NS()};function Vne(e){var r=$1.isD3Selection(e)?e:Une.select(e);r.selectAll("g.hovertext").remove(),r.selectAll(".spikeline").remove()}function Xne(e,r,t){return $1.castOption(e,r,"hoverlabel."+t)}function Wne(e,r,t){function a(n){return $1.coerceHoverinfo({hoverinfo:n},{_module:e._module},r)}return $1.castOption(e,t,"hoverinfo",a)}});var Q0=J(Dl=>{"use strict";Dl.selectMode=function(e){return e==="lasso"||e==="select"};Dl.drawMode=function(e){return e==="drawclosedpath"||e==="drawopenpath"||e==="drawline"||e==="drawrect"||e==="drawcircle"};Dl.openMode=function(e){return e==="drawline"||e==="drawopenpath"};Dl.rectMode=function(e){return e==="select"||e==="drawline"||e==="drawrect"||e==="drawcircle"};Dl.freeMode=function(e){return e==="lasso"||e==="drawclosedpath"||e==="drawopenpath"};Dl.selectingOrDrawing=function(e){return Dl.freeMode(e)||Dl.rectMode(e)}});var K1=J((H5e,OS)=>{"use strict";OS.exports=function(r){var t=r._fullLayout;t._glcanvas&&t._glcanvas.size()&&t._glcanvas.each(function(a){a.regl&&a.regl.clear({color:!0,depth:!0})})}});var j1=J((O5e,YS)=>{"use strict";YS.exports={undo:{width:857.1,height:1e3,path:"m857 350q0-87-34-166t-91-137-137-92-166-34q-96 0-183 41t-147 114q-4 6-4 13t5 11l76 77q6 5 14 5 9-1 13-7 41-53 100-82t126-29q58 0 110 23t92 61 61 91 22 111-22 111-61 91-92 61-110 23q-55 0-105-20t-90-57l77-77q17-16 8-38-10-23-33-23h-250q-15 0-25 11t-11 25v250q0 24 22 33 22 10 39-8l72-72q60 57 137 88t159 31q87 0 166-34t137-92 91-137 34-166z",transform:"matrix(1 0 0 -1 0 850)"},home:{width:928.6,height:1e3,path:"m786 296v-267q0-15-11-26t-25-10h-214v214h-143v-214h-214q-15 0-25 10t-11 26v267q0 1 0 2t0 2l321 264 321-264q1-1 1-4z m124 39l-34-41q-5-5-12-6h-2q-7 0-12 3l-386 322-386-322q-7-4-13-4-7 2-12 7l-35 41q-4 5-3 13t6 12l401 334q18 15 42 15t43-15l136-114v109q0 8 5 13t13 5h107q8 0 13-5t5-13v-227l122-102q5-5 6-12t-4-13z",transform:"matrix(1 0 0 -1 0 850)"},"camera-retro":{width:1e3,height:1e3,path:"m518 386q0 8-5 13t-13 5q-37 0-63-27t-26-63q0-8 5-13t13-5 12 5 5 13q0 23 16 38t38 16q8 0 13 5t5 13z m125-73q0-59-42-101t-101-42-101 42-42 101 42 101 101 42 101-42 42-101z m-572-320h858v71h-858v-71z m643 320q0 89-62 152t-152 62-151-62-63-152 63-151 151-63 152 63 62 151z m-571 358h214v72h-214v-72z m-72-107h858v143h-462l-36-71h-360v-72z m929 143v-714q0-30-21-51t-50-21h-858q-29 0-50 21t-21 51v714q0 30 21 51t50 21h858q29 0 50-21t21-51z",transform:"matrix(1 0 0 -1 0 850)"},curlybraces:{width:18,height:16,path:"M 9,4 C 7.354992,4 6,5.354992 6,7 V 9 C 6,9.2999997 5.8778068,9.8883542 5.5878906,10.291016 5.2979744,10.693677 4.9222213,11 4,11 a 1.0001,1.0001 0 0 0 0,2 c 0.2999997,0 0.8883542,0.122193 1.2910156,0.412109 C 5.693677,13.702026 6,14.077779 6,15 v 2 c 0,1.645008 1.354992,3 3,3 h 0.5 a 1,1 0 0 0 1,-1 1,1 0 0 0 -1,-1 H 9 C 8.4358712,18 8,17.564129 8,17 V 15 C 8,13.625876 7.3766799,12.602305 6.6113281,11.96875 6.8086352,11.794047 7.0679793,11.657537 7.2109375,11.458984 7.8210204,10.611647 8,9.6999993 8,9 V 7 C 8,6.4358712 8.4358712,6 9,6 h 0.5 a 1,1 0 0 0 1,-1 1,1 0 0 0 -1,-1 z m 5.5,0 a 1,1 0 0 0 -1,1 1,1 0 0 0 1,1 H 15 c 0.564129,0 1,0.4358712 1,1 v 2 c 0,0.6999993 0.17898,1.611647 0.789062,2.458984 0.142959,0.198553 0.402303,0.335063 0.59961,0.509766 C 16.62332,12.602305 16,13.625876 16,15 v 2 c 0,0.564129 -0.435871,1 -1,1 h -0.5 a 1,1 0 0 0 -1,1 1,1 0 0 0 1,1 H 15 c 1.645008,0 3,-1.354992 3,-3 v -2 c 0,-0.922221 0.306323,-1.297974 0.708984,-1.587891 C 19.111646,13.122193 19.7,13 20,13 a 1.0001,1.0001 0 0 0 0,-2 C 19.077779,11 18.702026,10.693677 18.412109,10.291016 18.122193,9.8883542 18,9.2999997 18,9 V 7 C 18,5.354992 16.645008,4 15,4 Z",transform:"translate(-3 -4)"},zoombox:{width:1e3,height:1e3,path:"m1000-25l-250 251c40 63 63 138 63 218 0 224-182 406-407 406-224 0-406-182-406-406s183-406 407-406c80 0 155 22 218 62l250-250 125 125z m-812 250l0 438 437 0 0-438-437 0z m62 375l313 0 0-312-313 0 0 312z",transform:"matrix(1 0 0 -1 0 850)"},pan:{width:1e3,height:1e3,path:"m1000 350l-187 188 0-125-250 0 0 250 125 0-188 187-187-187 125 0 0-250-250 0 0 125-188-188 186-187 0 125 252 0 0-250-125 0 187-188 188 188-125 0 0 250 250 0 0-126 187 188z",transform:"matrix(1 0 0 -1 0 850)"},zoom_plus:{width:875,height:1e3,path:"m1 787l0-875 875 0 0 875-875 0z m687-500l-187 0 0-187-125 0 0 187-188 0 0 125 188 0 0 187 125 0 0-187 187 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},zoom_minus:{width:875,height:1e3,path:"m0 788l0-876 875 0 0 876-875 0z m688-500l-500 0 0 125 500 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},autoscale:{width:1e3,height:1e3,path:"m250 850l-187 0-63 0 0-62 0-188 63 0 0 188 187 0 0 62z m688 0l-188 0 0-62 188 0 0-188 62 0 0 188 0 62-62 0z m-875-938l0 188-63 0 0-188 0-62 63 0 187 0 0 62-187 0z m875 188l0-188-188 0 0-62 188 0 62 0 0 62 0 188-62 0z m-125 188l-1 0-93-94-156 156 156 156 92-93 2 0 0 250-250 0 0-2 93-92-156-156-156 156 94 92 0 2-250 0 0-250 0 0 93 93 157-156-157-156-93 94 0 0 0-250 250 0 0 0-94 93 156 157 156-157-93-93 0 0 250 0 0 250z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_basic:{width:1500,height:1e3,path:"m375 725l0 0-375-375 375-374 0-1 1125 0 0 750-1125 0z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_compare:{width:1125,height:1e3,path:"m187 786l0 2-187-188 188-187 0 0 937 0 0 373-938 0z m0-499l0 1-187-188 188-188 0 0 937 0 0 376-938-1z",transform:"matrix(1 0 0 -1 0 850)"},plotlylogo:{width:1542,height:1e3,path:"m0-10h182v-140h-182v140z m228 146h183v-286h-183v286z m225 714h182v-1000h-182v1000z m225-285h182v-715h-182v715z m225 142h183v-857h-183v857z m231-428h182v-429h-182v429z m225-291h183v-138h-183v138z",transform:"matrix(1 0 0 -1 0 850)"},"z-axis":{width:1e3,height:1e3,path:"m833 5l-17 108v41l-130-65 130-66c0 0 0 38 0 39 0-1 36-14 39-25 4-15-6-22-16-30-15-12-39-16-56-20-90-22-187-23-279-23-261 0-341 34-353 59 3 60 228 110 228 110-140-8-351-35-351-116 0-120 293-142 474-142 155 0 477 22 477 142 0 50-74 79-163 96z m-374 94c-58-5-99-21-99-40 0-24 65-43 144-43 79 0 143 19 143 43 0 19-42 34-98 40v216h87l-132 135-133-135h88v-216z m167 515h-136v1c16 16 31 34 46 52l84 109v54h-230v-71h124v-1c-16-17-28-32-44-51l-89-114v-51h245v72z",transform:"matrix(1 0 0 -1 0 850)"},"3d_rotate":{width:1e3,height:1e3,path:"m922 660c-5 4-9 7-14 11-359 263-580-31-580-31l-102 28 58-400c0 1 1 1 2 2 118 108 351 249 351 249s-62 27-100 42c88 83 222 183 347 122 16-8 30-17 44-27-2 1-4 2-6 4z m36-329c0 0 64 229-88 296-62 27-124 14-175-11 157-78 225-208 249-266 8-19 11-31 11-31 2 5 6 15 11 32-5-13-8-20-8-20z m-775-239c70-31 117-50 198-32-121 80-199 346-199 346l-96-15-58-12c0 0 55-226 155-287z m603 133l-317-139c0 0 4-4 19-14 7-5 24-15 24-15s-177-147-389 4c235-287 536-112 536-112l31-22 100 299-4-1z m-298-153c6-4 14-9 24-15 0 0-17 10-24 15z",transform:"matrix(1 0 0 -1 0 850)"},camera:{width:1e3,height:1e3,path:"m500 450c-83 0-150-67-150-150 0-83 67-150 150-150 83 0 150 67 150 150 0 83-67 150-150 150z m400 150h-120c-16 0-34 13-39 29l-31 93c-6 15-23 28-40 28h-340c-16 0-34-13-39-28l-31-94c-6-15-23-28-40-28h-120c-55 0-100-45-100-100v-450c0-55 45-100 100-100h800c55 0 100 45 100 100v450c0 55-45 100-100 100z m-400-550c-138 0-250 112-250 250 0 138 112 250 250 250 138 0 250-112 250-250 0-138-112-250-250-250z m365 380c-19 0-35 16-35 35 0 19 16 35 35 35 19 0 35-16 35-35 0-19-16-35-35-35z",transform:"matrix(1 0 0 -1 0 850)"},movie:{width:1e3,height:1e3,path:"m938 413l-188-125c0 37-17 71-44 94 64 38 107 107 107 187 0 121-98 219-219 219-121 0-219-98-219-219 0-61 25-117 66-156h-115c30 33 49 76 49 125 0 103-84 187-187 187s-188-84-188-187c0-57 26-107 65-141-38-22-65-62-65-109v-250c0-70 56-126 125-126h500c69 0 125 56 125 126l188-126c34 0 62 28 62 63v375c0 35-28 63-62 63z m-750 0c-69 0-125 56-125 125s56 125 125 125 125-56 125-125-56-125-125-125z m406-1c-87 0-157 70-157 157 0 86 70 156 157 156s156-70 156-156-70-157-156-157z",transform:"matrix(1 0 0 -1 0 850)"},question:{width:857.1,height:1e3,path:"m500 82v107q0 8-5 13t-13 5h-107q-8 0-13-5t-5-13v-107q0-8 5-13t13-5h107q8 0 13 5t5 13z m143 375q0 49-31 91t-77 65-95 23q-136 0-207-119-9-14 4-24l74-55q4-4 10-4 9 0 14 7 30 38 48 51 19 14 48 14 27 0 48-15t21-33q0-21-11-34t-38-25q-35-16-65-48t-29-70v-20q0-8 5-13t13-5h107q8 0 13 5t5 13q0 10 12 27t30 28q18 10 28 16t25 19 25 27 16 34 7 45z m214-107q0-117-57-215t-156-156-215-58-216 58-155 156-58 215 58 215 155 156 216 58 215-58 156-156 57-215z",transform:"matrix(1 0 0 -1 0 850)"},disk:{width:857.1,height:1e3,path:"m214-7h429v214h-429v-214z m500 0h72v500q0 8-6 21t-11 20l-157 156q-5 6-19 12t-22 5v-232q0-22-15-38t-38-16h-322q-22 0-37 16t-16 38v232h-72v-714h72v232q0 22 16 38t37 16h465q22 0 38-16t15-38v-232z m-214 518v178q0 8-5 13t-13 5h-107q-7 0-13-5t-5-13v-178q0-8 5-13t13-5h107q7 0 13 5t5 13z m357-18v-518q0-22-15-38t-38-16h-750q-23 0-38 16t-16 38v750q0 22 16 38t38 16h517q23 0 50-12t42-26l156-157q16-15 27-42t11-49z",transform:"matrix(1 0 0 -1 0 850)"},cloudupload:{width:640,height:640,path:"M451.5 160C434.9 160 418.8 164.5 404.7 172.7C388.9 156.7 370.5 143.3 350.2 133.2C378.4 109.2 414.3 96 451.5 96C537.9 96 608 166 608 252.5C608 294 591.5 333.8 562.2 363.1L491.1 434.2C461.8 463.5 422 480 380.5 480C294.1 480 224 410 224 323.5C224 322 224 320.5 224.1 319C224.6 301.3 239.3 287.4 257 287.9C274.7 288.4 288.6 303.1 288.1 320.8C288.1 321.7 288.1 322.6 288.1 323.4C288.1 374.5 329.5 415.9 380.6 415.9C405.1 415.9 428.6 406.2 446 388.8L517.1 317.7C534.4 300.4 544.2 276.8 544.2 252.3C544.2 201.2 502.8 159.8 451.7 159.8zM307.2 237.3C305.3 236.5 303.4 235.4 301.7 234.2C289.1 227.7 274.7 224 259.6 224C235.1 224 211.6 233.7 194.2 251.1L123.1 322.2C105.8 339.5 96 363.1 96 387.6C96 438.7 137.4 480.1 188.5 480.1C205 480.1 221.1 475.7 235.2 467.5C251 483.5 269.4 496.9 289.8 507C261.6 530.9 225.8 544.2 188.5 544.2C102.1 544.2 32 474.2 32 387.7C32 346.2 48.5 306.4 77.8 277.1L148.9 206C178.2 176.7 218 160.2 259.5 160.2C346.1 160.2 416 230.8 416 317.1C416 318.4 416 319.7 416 321C415.6 338.7 400.9 352.6 383.2 352.2C365.5 351.8 351.6 337.1 352 319.4C352 318.6 352 317.9 352 317.1C352 283.4 334 253.8 307.2 237.5z",transform:"matrix(1 0 0 1 -15 -15)"},drawopenpath:{width:70,height:70,path:"M33.21,85.65a7.31,7.31,0,0,1-2.59-.48c-8.16-3.11-9.27-19.8-9.88-41.3-.1-3.58-.19-6.68-.35-9-.15-2.1-.67-3.48-1.43-3.79-2.13-.88-7.91,2.32-12,5.86L3,32.38c1.87-1.64,11.55-9.66,18.27-6.9,2.13.87,4.75,3.14,5.17,9,.17,2.43.26,5.59.36,9.25a224.17,224.17,0,0,0,1.5,23.4c1.54,10.76,4,12.22,4.48,12.4.84.32,2.79-.46,5.76-3.59L43,80.07C41.53,81.57,37.68,85.64,33.21,85.65ZM74.81,69a11.34,11.34,0,0,0,6.09-6.72L87.26,44.5,74.72,32,56.9,38.35c-2.37.86-5.57,3.42-6.61,6L38.65,72.14l8.42,8.43ZM55,46.27a7.91,7.91,0,0,1,3.64-3.17l14.8-5.3,8,8L76.11,60.6l-.06.19a6.37,6.37,0,0,1-3,3.43L48.25,74.59,44.62,71Zm16.57,7.82A6.9,6.9,0,1,0,64.64,61,6.91,6.91,0,0,0,71.54,54.09Zm-4.05,0a2.85,2.85,0,1,1-2.85-2.85A2.86,2.86,0,0,1,67.49,54.09Zm-4.13,5.22L60.5,56.45,44.26,72.7l2.86,2.86ZM97.83,35.67,84.14,22l-8.57,8.57L89.26,44.24Zm-13.69-8,8,8-2.85,2.85-8-8Z",transform:"matrix(1 0 0 1 -15 -15)"},drawclosedpath:{width:90,height:90,path:"M88.41,21.12a26.56,26.56,0,0,0-36.18,0l-2.07,2-2.07-2a26.57,26.57,0,0,0-36.18,0,23.74,23.74,0,0,0,0,34.8L48,90.12a3.22,3.22,0,0,0,4.42,0l36-34.21a23.73,23.73,0,0,0,0-34.79ZM84,51.24,50.16,83.35,16.35,51.25a17.28,17.28,0,0,1,0-25.47,20,20,0,0,1,27.3,0l4.29,4.07a3.23,3.23,0,0,0,4.44,0l4.29-4.07a20,20,0,0,1,27.3,0,17.27,17.27,0,0,1,0,25.46ZM66.76,47.68h-33v6.91h33ZM53.35,35H46.44V68h6.91Z",transform:"matrix(1 0 0 1 -5 -5)"},lasso:{width:1031,height:1e3,path:"m1018 538c-36 207-290 336-568 286-277-48-473-256-436-463 10-57 36-108 76-151-13-66 11-137 68-183 34-28 75-41 114-42l-55-70 0 0c-2-1-3-2-4-3-10-14-8-34 5-45 14-11 34-8 45 4 1 1 2 3 2 5l0 0 113 140c16 11 31 24 45 40 4 3 6 7 8 11 48-3 100 0 151 9 278 48 473 255 436 462z m-624-379c-80 14-149 48-197 96 42 42 109 47 156 9 33-26 47-66 41-105z m-187-74c-19 16-33 37-39 60 50-32 109-55 174-68-42-25-95-24-135 8z m360 75c-34-7-69-9-102-8 8 62-16 128-68 170-73 59-175 54-244-5-9 20-16 40-20 61-28 159 121 317 333 354s407-60 434-217c28-159-121-318-333-355z",transform:"matrix(1 0 0 -1 0 850)"},selectbox:{width:1e3,height:1e3,path:"m0 850l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-285l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z",transform:"matrix(1 0 0 -1 0 850)"},drawline:{width:70,height:70,path:"M60.64,62.3a11.29,11.29,0,0,0,6.09-6.72l6.35-17.72L60.54,25.31l-17.82,6.4c-2.36.86-5.57,3.41-6.6,6L24.48,65.5l8.42,8.42ZM40.79,39.63a7.89,7.89,0,0,1,3.65-3.17l14.79-5.31,8,8L61.94,54l-.06.19a6.44,6.44,0,0,1-3,3.43L34.07,68l-3.62-3.63Zm16.57,7.81a6.9,6.9,0,1,0-6.89,6.9A6.9,6.9,0,0,0,57.36,47.44Zm-4,0a2.86,2.86,0,1,1-2.85-2.85A2.86,2.86,0,0,1,53.32,47.44Zm-4.13,5.22L46.33,49.8,30.08,66.05l2.86,2.86ZM83.65,29,70,15.34,61.4,23.9,75.09,37.59ZM70,21.06l8,8-2.84,2.85-8-8ZM87,80.49H10.67V87H87Z",transform:"matrix(1 0 0 1 -15 -15)"},drawrect:{width:80,height:80,path:"M78,22V79H21V22H78m9-9H12V88H87V13ZM68,46.22H31V54H68ZM53,32H45.22V69H53Z",transform:"matrix(1 0 0 1 -10 -10)"},drawcircle:{width:80,height:80,path:"M50,84.72C26.84,84.72,8,69.28,8,50.3S26.84,15.87,50,15.87,92,31.31,92,50.3,73.16,84.72,50,84.72Zm0-60.59c-18.6,0-33.74,11.74-33.74,26.17S31.4,76.46,50,76.46,83.74,64.72,83.74,50.3,68.6,24.13,50,24.13Zm17.15,22h-34v7.11h34Zm-13.8-13H46.24v34h7.11Z",transform:"matrix(1 0 0 1 -10 -10)"},eraseshape:{width:80,height:80,path:"M82.77,78H31.85L6,49.57,31.85,21.14H82.77a8.72,8.72,0,0,1,8.65,8.77V69.24A8.72,8.72,0,0,1,82.77,78ZM35.46,69.84H82.77a.57.57,0,0,0,.49-.6V29.91a.57.57,0,0,0-.49-.61H35.46L17,49.57Zm32.68-34.7-24,24,5,5,24-24Zm-19,.53-5,5,24,24,5-5Z",transform:"matrix(1 0 0 1 -10 -10)"},spikeline:{width:1e3,height:1e3,path:"M512 409c0-57-46-104-103-104-57 0-104 47-104 104 0 57 47 103 104 103 57 0 103-46 103-103z m-327-39l92 0 0 92-92 0z m-185 0l92 0 0 92-92 0z m370-186l92 0 0 93-92 0z m0-184l92 0 0 92-92 0z",transform:"matrix(1.5 0 0 -1.5 0 850)"},pencil:{width:1792,height:1792,path:"M491 1536l91-91-235-235-91 91v107h128v128h107zm523-928q0-22-22-22-10 0-17 7l-542 542q-7 7-7 17 0 22 22 22 10 0 17-7l542-542q7-7 7-17zm-54-192l416 416-832 832h-416v-416zm683 96q0 53-37 90l-166 166-416-416 166-165q36-38 90-38 53 0 91 38l235 234q37 39 37 91z",transform:"matrix(1 0 0 1 0 1)"},newplotlylogo:{name:"newplotlylogo",svg:[""," plotly-logomark"," "," "," "," "," "," "," "," "," "," "," "," "," ",""].join("")}}});var Q1={};Nt(Q1,{CIRCLE_SIDES:()=>Zne,SQRT2:()=>rie,cos45:()=>Qne,i000:()=>Jne,i090:()=>$ne,i180:()=>Kne,i270:()=>jne,sin45:()=>eie});var Zne,Jne,$ne,Kne,jne,Qne,eie,rie,ed=Ft(()=>{"use strict";Zne=32,Jne=0,$ne=8,Kne=16,jne=24,Qne=Math.cos(Math.PI/4),eie=Math.sin(Math.PI/4),rie=Math.sqrt(2)});var rd=J((Y5e,GS)=>{"use strict";var tie=Fe().strTranslate;function US(e,r){switch(e.type){case"log":return e.p2d(r);case"date":return e.p2r(r,0,e.calendar);default:return e.p2r(r)}}function aie(e,r){switch(e.type){case"log":return e.d2p(r);case"date":return e.r2p(r,0,e.calendar);default:return e.r2p(r)}}function nie(e){var r=e._id.charAt(0)==="y"?1:0;return function(t){return US(e,t[r])}}function iie(e){return tie(e.xaxis._offset,e.yaxis._offset)}GS.exports={p2r:US,r2p:aie,axValue:nie,getTransform:iie}});var po=J(Ll=>{"use strict";var lie=$y(),WS=(ed(),Xe(Q1)),eu=WS.CIRCLE_SIDES,c5=WS.SQRT2,ZS=rd(),VS=ZS.p2r,XS=ZS.r2p,oie=[0,3,4,5,6,1,2],sie=[0,3,4,1,2];Ll.writePaths=function(e){var r=e.length;if(!r)return"M0,0Z";for(var t="",a=0;a0&&s{"use strict";var JS=ha(),eD=Q0(),uie=eD.drawMode,fie=eD.openMode,ru=(ed(),Xe(Q1)),$S=ru.i000,KS=ru.i090,jS=ru.i180,QS=ru.i270,cie=ru.cos45,vie=ru.sin45,rD=rd(),ad=rD.p2r,mo=rD.r2p,die=no(),hie=die.clearOutline,nd=po(),pie=nd.readPaths,mie=nd.writePaths,gie=nd.ellipseOver,yie=nd.fixDatesForPaths;function bie(e,r){if(e.length){var t=e[0][0];if(t){var a=r.gd,n=r.isActiveShape,i=r.dragmode,l=(a.layout||{}).shapes||[];if(!uie(i)&&n!==void 0){var o=a._fullLayout._activeShapeIndex;if(o{"use strict";var xie=Q0(),_ie=xie.selectMode,wie=no(),Mie=wie.clearOutline,v5=po(),Tie=v5.readPaths,Aie=v5.writePaths,kie=v5.fixDatesForPaths;nD.exports=function(r,t){if(r.length){var a=r[0][0];if(a){var n=a.getAttribute("d"),i=t.gd,l=i._fullLayout.newselection,o=t.plotinfo,s=o.xaxis,u=o.yaxis,f=t.isActiveSelection,c=t.dragmode,d=(i.layout||{}).selections||[];if(!_ie(c)&&f!==void 0){var h=i._fullLayout._activeSelectionIndex;if(hqie,paramIsX:()=>Die,paramIsY:()=>Lie,paramRE:()=>Sie,segmentRE:()=>Cie});var Cie,Sie,Die,Lie,qie,jf=Ft(()=>{"use strict";Cie=/[MLHVQCTSZ][^MLHVQCTSZ]*/g,Sie=/[^\s,]+/g,Die={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:{}},Lie={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:3},Z:{}},qie={M:2,L:2,H:1,V:1,Q:4,C:6,T:2,S:4,Z:0}});var yo=J(qa=>{"use strict";var ul=(jf(),Xe(Kf)),iD=Fe(),go=Mt();qa.rangeToShapePosition=function(e){return e.type==="log"?e.r2d:function(r){return r}};qa.shapePositionToRange=function(e){return e.type==="log"?e.d2r:function(r){return r}};qa.decodeDate=function(e){return function(r){return r.replace&&(r=r.replace("_"," ")),e(r)}};qa.encodeDate=function(e){return function(r){return e(r).replace(" ","_")}};qa.extractPathCoords=function(e,r,t){var a=[],n=e.match(ul.segmentRE);return n.forEach(function(i){var l=r[i.charAt(0)].drawn;if(l!==void 0){var o=i.slice(1).match(ul.paramRE);if(!(!o||o.length{let o=l.charAt(0),s=n[o].drawn!==void 0;return i+(s?1:0)},0)};qa.getDataToPixel=function(e,r,t,a,n){var i=e._fullLayout._size,l;if(r)if(n==="domain")l=function(s){return r._length*(a?1-s:s)+r._offset};else{var o=qa.shapePositionToRange(r);l=function(s){var u=sl(r,t);return r._offset+r.r2p(o(s,!0))+u},r.type==="date"&&(l=qa.decodeDate(l))}else a?l=function(s){return i.t+i.h*(1-s)}:l=function(s){return i.l+i.w*s};return l};qa.getPixelToData=function(e,r,t,a){var n=e._fullLayout._size,i;if(r)if(a==="domain")i=function(o){var s=(o-r._offset)/r._length;return t?1-s:s};else{var l=qa.rangeToShapePosition(r);i=function(o){return l(r.p2r(o-r._offset))}}else t?i=function(o){return 1-(o-n.t)/n.h}:i=function(o){return(o-n.l)/n.w};return i};qa.roundPositionForSharpStrokeRendering=function(e,r){var t=Math.round(r%2)===1,a=Math.round(e);return t?a+.5:a};qa.makeShapesOptionsAndPlotinfo=function(e,r){var t=e._fullLayout.shapes[r]||{},a=e._fullLayout._plots[t.xref+t.yref],n=!!a;return n?a._hadPlotinfo=!0:(a={},t.xref&&t.xref!=="paper"&&(a.xaxis=e._fullLayout[t.xref+"axis"]),t.yref&&t.yref!=="paper"&&(a.yaxis=e._fullLayout[t.yref+"axis"])),a.xsizemode=t.xsizemode,a.ysizemode=t.ysizemode,a.xanchor=t.xanchor,a.yanchor=t.yanchor,{options:t,plotinfo:a}};qa.makeSelectionsOptionsAndPlotinfo=function(e,r){var t=e._fullLayout.selections[r]||{},a=e._fullLayout._plots[t.xref+t.yref],n=!!a;return n?a._hadPlotinfo=!0:(a={},t.xref&&(a.xaxis=e._fullLayout[t.xref+"axis"]),t.yref&&(a.yaxis=e._fullLayout[t.yref+"axis"])),{options:t,plotinfo:a}};qa.getPathString=function(e,r){let t=r.type,a=go.getRefType(r.xref),n=go.getRefType(r.yref),i=e._fullLayout._size;var l,o,s,u,f,c,d,h,p,g,y,x;function w(P,z,N,H){var B;if(P)if(z==="domain")H?B=function(I){return P._offset+P._length*(1-I)}:B=function(I){return P._offset+P._length*I};else{let I=qa.shapePositionToRange(P);B=function(V){return P._offset+P.r2p(I(V,!0))},N==="path"&&P.type==="date"&&(B=qa.decodeDate(B))}else H?B=function(I){return i.t+i.h*(1-I)}:B=function(I){return i.l+i.w*I};return B}if(a==="array"?(d=[],l=r.xref.map(function(P){return go.getFromId(e,P)}),d=r.xref.map(function(P,z){return w(l[z],go.getRefType(P),t,!1)})):(l=go.getFromId(e,r.xref),d=w(l,a,t,!1)),n==="array"?(h=[],o=r.yref.map(function(P){return go.getFromId(e,P)}),h=r.yref.map(function(P,z){return w(o[z],go.getRefType(P),t,!0)})):(o=go.getFromId(e,r.yref),h=w(o,n,t,!0)),t==="path")return Eie(r,d,h);if(a==="array")s=sl(l[0],r.x0shift),u=sl(l[1],r.x1shift),p=d[0](r.x0)+s,g=d[1](r.x1)+u;else if(s=sl(l,r.x0shift),u=sl(l,r.x1shift),r.xsizemode==="pixel"){let P=d(r.xanchor);p=P+r.x0+s,g=P+r.x1+u}else p=d(r.x0)+s,g=d(r.x1)+u;if(n==="array")f=sl(o[0],r.y0shift),c=sl(o[1],r.y1shift),y=h[0](r.y0)+f,x=h[1](r.y1)+c;else if(f=sl(o,r.y0shift),c=sl(o,r.y1shift),r.ysizemode==="pixel"){let P=h(r.yanchor);y=P-r.y0+f,x=P-r.y1+c}else y=h(r.y0)+f,x=h(r.y1)+c;if(t==="line")return"M"+p+","+y+"L"+g+","+x;if(t==="rect")return"M"+p+","+y+"H"+g+"V"+x+"H"+p+"Z";var M=(p+g)/2,b=(y+x)/2,T=Math.abs(M-p),S=Math.abs(b-y),C="A"+T+","+S,L=M+T+","+b,q=M+","+(b-S);return"M"+L+C+" 0 1,1 "+q+C+" 0 0,1 "+L+"Z"};function Eie(e,r,t){let a=e.path,n=e.xsizemode,i=e.ysizemode,l=e.xanchor,o=e.yanchor,s=Array.isArray(e.xref),u=Array.isArray(e.yref);var f=0,c=0;return a.replace(ul.segmentRE,function(d){var h=0,p=d.charAt(0),g=ul.paramIsX[p],y=ul.paramIsY[p],x=ul.numParams[p];let w=g.drawn!==void 0,M=y.drawn!==void 0,b=s?r[f]:r,T=u?t[c]:t;var S=d.slice(1).replace(ul.paramRE,function(C){return g[h]?n==="pixel"?C=b(l)+Number(C):C=b(C):y[h]&&(i==="pixel"?C=T(o)-Number(C):C=T(C)),h++,h>x&&(C="X"),C});return h>x&&(S=S.replace(/[\s,]*X.*/,""),iD.log("Ignoring extra params in segment "+d)),w&&f++,M&&c++,p+S})}qa.getPixelShift=sl;function sl(e,r){r=r||0;var t=0;return r&&e&&(e.type==="category"||e.type==="multicategory")&&(t=(e.r2p(1)-e.r2p(0))*r),t}});var h5=J((W5e,sD)=>{"use strict";var Pie=Fe(),fl=Mt(),lD=La(),oD=ot(),Rie=po().readPaths,ks=yo(),zie=ks.getPathString,Qf=T2(),Fie=(Ja(),Xe(Za)).FROM_TL;sD.exports=function(r,t,a,n){if(n.selectAll(".shape-label").remove(),!!(a.label.text||a.label.texttemplate)){var i;if(a.label.texttemplate){var l={};if(a.type!=="path"){var o=fl.getFromId(r,a.xref),s=fl.getFromId(r,a.yref);let G=Array.isArray(a.xref),j=Array.isArray(a.yref);for(var u in Qf){var f=typeof Qf[u]=="function",c=!G||Qf.simpleXVariables.includes(u),d=!j||Qf.simpleYVariables.includes(u);if(f&&c&&d){var h=Qf[u](a,o,s);h!==void 0&&(l[u]=h)}}}i=Pie.texttemplateStringForShapes({data:[l],fallback:a.label.texttemplatefallback,locale:r._fullLayout._d3locale,template:a.label.texttemplate})}else i=a.label.text;var p={"data-index":t},g=a.label.font,y={"data-notex":1},x=n.append("g").attr(p).classed("shape-label",!0),w=x.append("text").attr(y).classed("shape-label-text",!0).text(i),M,b,T,S;if(a.path){var C=zie(r,a),L=Rie(C,r);M=1/0,T=1/0,b=-1/0,S=-1/0;for(var q=0;qks.getDataToPixel(r,De,_e,!1,Te)(Ie),Ce=(Ie,_e,De,Te)=>ks.getDataToPixel(r,De,_e,!0,Te)(Ie);if(a.xsizemode==="pixel"){let Ie=de(a.xanchor,void 0,ie,we),_e=ks.getPixelShift(ie,a.x0shift),De=ks.getPixelShift(ie,a.x1shift);M=Ie+a.x0+_e,b=Ie+a.x1+De}else M=de(a.x0,a.x0shift,ie,we),b=de(a.x1,a.x1shift,pe,le);if(a.ysizemode==="pixel"){let Ie=Ce(a.yanchor,void 0,ve,Se),_e=ks.getPixelShift(ve,a.y0shift),De=ks.getPixelShift(ve,a.y1shift);T=Ie-a.y0+_e,S=Ie-a.y1+De}else T=Ce(a.y0,a.y0shift,ve,Se),S=Ce(a.y1,a.y1shift,Q,ce)}var I=a.label.textangle;I==="auto"&&(a.type==="line"?I=Nie(M,T,b,S):I=0),w.call(function(G){return G.call(oD.font,g).attr({}),lD.convertToTspans(G,r),G});var V=oD.bBox(w.node()),O=Iie(M,T,b,S,a,I,V),U=O.textx,W=O.texty,Z=O.xanchor;w.attr({"text-anchor":{left:"start",center:"middle",right:"end"}[Z],y:W,x:U,transform:"rotate("+I+","+U+","+W+")"}).call(lD.positionText,U,W)}};function Nie(e,r,t,a){var n,i;return i=Math.abs(t-e),t>=e?n=r-a:n=a-r,-180/Math.PI*Math.atan2(n,i)}function Iie(e,r,t,a,n,i,l){var o=n.label.textposition,s=n.label.textangle,u=n.label.padding,f=n.type,c=Math.PI/180*i,d=Math.sin(c),h=Math.cos(c),p=n.label.xanchor,g=n.label.yanchor,y,x,w,M;if(f==="line"){o==="start"?(y=e,x=r):o==="end"?(y=t,x=a):(y=(e+t)/2,x=(r+a)/2),p==="auto"&&(o==="start"?s==="auto"?t>e?p="left":te?p="right":te?p="right":te?p="left":t{"use strict";var Bie=Fe(),Hie=Bie.strTranslate,uD=Li(),vD=Q0(),Oie=vD.drawMode,dD=vD.selectMode,hD=kr(),fD=Nr(),od=(ed(),Xe(Q1)),Yie=od.i000,Uie=od.i090,Gie=od.i180,Vie=od.i270,Xie=no(),pD=Xie.clearOutlineControllers,m5=po(),ld=m5.pointsOnRectangle,p5=m5.pointsOnEllipse,Wie=m5.writePaths,Zie=id().newShapes,Jie=id().createShapeObj,$ie=d5(),Kie=h5();mD.exports=function e(r,t,a,n){n||(n=0);var i=a.gd;function l(){e(r,t,a,n++),(p5(r[0])||a.hasText)&&o({redrawing:!0})}function o(O){var U={};a.isActiveShape!==void 0&&(a.isActiveShape=!1,U=Zie(t,a)),a.isActiveSelection!==void 0&&(a.isActiveSelection=!1,U=$ie(t,a),i._fullLayout._reselect=!0),Object.keys(U).length&&hD.call((O||{}).redrawing?"relayout":"_guiRelayout",i,U)}var s=i._fullLayout,u=s._zoomlayer,f=a.dragmode,c=Oie(f),d=dD(f);(c||d)&&(i._fullLayout._outlining=!0),pD(i),t.attr("d",Wie(r));var h,p,g,y,x;if(!n&&(a.isActiveShape||a.isActiveSelection)){x=jie([],r);var w=u.append("g").attr("class","outline-controllers");P(w),V()}if(c&&a.hasText){var M=u.select(".label-temp"),b=Jie(t,a,a.dragmode);Kie(i,"label-temp",b,M)}function T(O){g=+O.srcElement.getAttribute("data-i"),y=+O.srcElement.getAttribute("data-j"),h[g][y].moveFn=S}function S(O,U){if(r.length){var W=x[g][y][1],Z=x[g][y][2],G=r[g],j=G.length;if(ld(G)){var ie=O,pe=U;if(a.isActiveSelection){var ve=cD(G,y);ve[1]===G[y][1]?pe=0:ie=0}for(var Q=0;Q1&&!(O.length===2&&O[1][0]==="Z")&&(y===0&&(O[0][0]="M"),r[g]=O,l(),o())}}function q(O,U){if(O===2){g=+U.srcElement.getAttribute("data-i"),y=+U.srcElement.getAttribute("data-j");var W=r[g];!ld(W)&&!p5(W)&&L()}}function P(O){h=[];for(var U=0;U{"use strict";var ele=Or(),wD=kr(),y5=Fe(),Cs=Mt(),rle=po().readPaths,tle=sd(),fd=h5(),MD=no().clearOutlineControllers,g5=Nr(),cd=ot(),ale=yt().arrayEditor,gD=Li(),yD=qi(),bD=vo(),Ss=(jf(),Xe(Kf)),kn=yo(),b5=kn.getPathString;kD.exports={draw:x5,drawOne:TD,eraseActiveShape:sle,drawLabel:fd};function x5(e){var r=e._fullLayout;r._shapeUpperLayer.selectAll("path").remove(),r._shapeLowerLayer.selectAll("path").remove(),r._shapeUpperLayer.selectAll("text").remove(),r._shapeLowerLayer.selectAll("text").remove();for(var t in r._plots){var a=r._plots[t].shapelayer;a&&(a.selectAll("path").remove(),a.selectAll("text").remove())}for(var n=0;n{if(!e._dragging&&e._fullLayout.hoveranywhere){let l=n(i);l&&yD.hover(e,l,t.id)}}),a.addEventListener("click",i=>{if(!e._dragged&&e._fullLayout.clickanywhere){let l=n(i);l&&yD.click(e,l,t.id)}})}function AD(e,r,t){let a=t.xref,n=t.yref;if(Array.isArray(a)||Array.isArray(n)){let i="clip"+r._fullLayout._uid+"shape"+t._index,l=ile(r,a,n);y5.ensureSingleById(r._fullLayout._clips,"clipPath",i,function(o){o.append("rect")}).select("rect").attr(l),cd.setClipUrl(e,i,r)}else{let i=(a+n).replace(/paper/g,"").replace(/[xyz][0-9]* *domain/g,"");cd.setClipUrl(e,i?"clip"+r._fullLayout._uid+i:null,r)}}function ile(e,r,t){let a=e._fullLayout._size;function n(o,s){let u=(Array.isArray(o)?o:[o]).map(d=>Cs.getFromId(e,d)).filter(Boolean);if(!u.length)return s?[a.t,a.t+a.h]:[a.l,a.l+a.w];let f=u.map(function(d){return d._offset}),c=u.map(function(d){return d._offset+d._length});return[Math.min(...f),Math.max(...c)]}let i=n(r,!1),l=n(t,!0);return{x:i[0],y:l[0],width:i[1]-i[0],height:l[1]-l[0]}}function lle(e,r,t,a,n,i){var l=10,o=10,s=t.xsizemode==="pixel",u=t.ysizemode==="pixel",f=t.type==="line",c=t.type==="path",d=i.modifyItem,h,p,g,y,x,w,M,b,T,S,C,L,q,P,z,N=ele.select(r.node().parentNode),H=Cs.getFromId(e,t.xref),B=Cs.getRefType(t.xref),I=Cs.getFromId(e,t.yref),V=Cs.getRefType(t.yref),O=t.x0shift,U=t.x1shift,W=t.y0shift,Z=t.y1shift,G=function(Re,Me){var Ue=kn.getDataToPixel(e,H,Me,!1,B);return Ue(Re)},j=function(Re,Me){var Ue=kn.getDataToPixel(e,I,Me,!0,V);return Ue(Re)},ie=kn.getPixelToData(e,H,!1,B),pe=kn.getPixelToData(e,I,!0,V),ve=le(),Q={element:ve.node(),gd:e,prepFn:de,doneFn:Ce,clickFn:Ie},we;gD.init(Q),ve.node().onmousemove=ce;function le(){return f?Se():r}function Se(){var Re=10,Me=Math.max(t.line.width,Re),Ue=n.append("g").attr("data-index",a).attr("drag-helper",!0);Ue.append("path").attr("d",r.attr("d")).style({cursor:"move","stroke-width":Me,"stroke-opacity":"0"});var $e={"fill-opacity":"0"},Qe=Math.max(Me/2,Re);return Ue.append("circle").attr({"data-line-point":"start-point",cx:s?G(t.xanchor)+t.x0:G(t.x0,O),cy:u?j(t.yanchor)-t.y0:j(t.y0,W),r:Qe}).style($e).classed("cursor-grab",!0),Ue.append("circle").attr({"data-line-point":"end-point",cx:s?G(t.xanchor)+t.x1:G(t.x1,U),cy:u?j(t.yanchor)-t.y1:j(t.y1,Z),r:Qe}).style($e).classed("cursor-grab",!0),Ue}function ce(Re){if(ud(e)){we=null;return}if(f)Re.target.tagName==="path"?we="move":we=Re.target.attributes["data-line-point"].value==="start-point"?"resize-over-start-point":"resize-over-end-point";else{var Me=Q.element.getBoundingClientRect(),Ue=Me.right-Me.left,$e=Me.bottom-Me.top,Qe=Re.clientX-Me.left,Le=Re.clientY-Me.top,Be=!c&&Ue>l&&$e>o&&!Re.shiftKey?gD.getCursor(Qe/Ue,1-Le/$e):"move";bD(r,Be),we=Be.split("-")[0]}}function de(Re){ud(e)||(s&&(x=G(t.xanchor)),u&&(w=j(t.yanchor)),t.type==="path"?z=t.path:(h=s?t.x0:G(t.x0),p=u?t.y0:j(t.y0),g=s?t.x1:G(t.x1),y=u?t.y1:j(t.y1)),hy?(M=p,C="y0",b=y,L="y1"):(M=y,C="y1",b=p,L="y0"),ce(Re),Te(n,t),ke(r,t,e),Q.moveFn=we==="move"?_e:De,Q.altKey=Re.altKey)}function Ce(){ud(e)||(bD(r),Ae(n),AD(r,e,t),wD.call("_guiRelayout",e,i.getUpdateObj()))}function Ie(){ud(e)||Ae(n)}function _e(Re,Me){if(t.type==="path"){var Ue=function(Le){return Le},$e=Ue,Qe=Ue;s?d("xanchor",t.xanchor=ie(x+Re)):($e=function(Be){return ie(G(Be)+Re)},H&&H.type==="date"&&($e=kn.encodeDate($e))),u?d("yanchor",t.yanchor=pe(w+Me)):(Qe=function(Be){return pe(j(Be)+Me)},I&&I.type==="date"&&(Qe=kn.encodeDate(Qe))),d("path",t.path=xD(z,$e,Qe))}else s?d("xanchor",t.xanchor=ie(x+Re)):(d("x0",t.x0=ie(h+Re)),d("x1",t.x1=ie(g+Re))),u?d("yanchor",t.yanchor=pe(w+Me)):(d("y0",t.y0=pe(p+Me)),d("y1",t.y1=pe(y+Me)));r.attr("d",b5(e,t)),Te(n,t),fd(e,a,t,N)}function De(Re,Me){if(c){var Ue=function(Ze){return Ze},$e=Ue,Qe=Ue;s?d("xanchor",t.xanchor=ie(x+Re)):($e=function(Ke){return ie(G(Ke)+Re)},H&&H.type==="date"&&($e=kn.encodeDate($e))),u?d("yanchor",t.yanchor=pe(w+Me)):(Qe=function(Ke){return pe(j(Ke)+Me)},I&&I.type==="date"&&(Qe=kn.encodeDate(Qe))),d("path",t.path=xD(z,$e,Qe))}else if(f){if(we==="resize-over-start-point"){var Le=h+Re,Be=u?p-Me:p+Me;d("x0",t.x0=s?Le:ie(Le)),d("y0",t.y0=u?Be:pe(Be))}else if(we==="resize-over-end-point"){var tr=g+Re,re=u?y-Me:y+Me;d("x1",t.x1=s?tr:ie(tr)),d("y1",t.y1=u?re:pe(re))}}else{var ge=function(Ze){return we.indexOf(Ze)!==-1},Ge=ge("n"),cr=ge("s"),mr=ge("w"),ne=ge("e"),me=Ge?M+Me:M,ze=cr?b+Me:b,Ve=mr?T+Re:T,Ne=ne?S+Re:S;u&&(Ge&&(me=M-Me),cr&&(ze=b-Me)),(!u&&ze-me>o||u&&me-ze>o)&&(d(C,t[C]=u?me:pe(me)),d(L,t[L]=u?ze:pe(ze))),Ne-Ve>l&&(d(q,t[q]=s?Ve:ie(Ve)),d(P,t[P]=s?Ne:ie(Ne)))}r.attr("d",b5(e,t)),Te(n,t),fd(e,a,t,N)}function Te(Re,Me){(s||u)&&Ue();function Ue(){var $e=Me.type!=="path",Qe=Re.selectAll(".visual-cue").data([0]),Le=1;Qe.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":Le}).classed("visual-cue",!0);var Be=G(s?Me.xanchor:y5.midRange($e?[Me.x0,Me.x1]:kn.extractPathCoords(Me.path,Ss.paramIsX))),tr=j(u?Me.yanchor:y5.midRange($e?[Me.y0,Me.y1]:kn.extractPathCoords(Me.path,Ss.paramIsY)));if(Be=kn.roundPositionForSharpStrokeRendering(Be,Le),tr=kn.roundPositionForSharpStrokeRendering(tr,Le),s&&u){var re="M"+(Be-1-Le)+","+(tr-1-Le)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";Qe.attr("d",re)}else if(s){var ge="M"+(Be-1-Le)+","+(tr-9-Le)+"v18 h2 v-18 Z";Qe.attr("d",ge)}else{var Ge="M"+(Be-9-Le)+","+(tr-1-Le)+"h18 v2 h-18 Z";Qe.attr("d",Ge)}}}function Ae(Re){Re.selectAll(".visual-cue").remove()}function ke(Re,Me,Ue){var $e=Me.xref,Qe=Me.yref,Le=Cs.getFromId(Ue,$e),Be=Cs.getFromId(Ue,Qe),tr="";$e!=="paper"&&!Le.autorange&&(tr+=$e),Qe!=="paper"&&!Be.autorange&&(tr+=Qe),cd.setClipUrl(Re,tr?"clip"+Ue._fullLayout._uid+tr:null,Ue)}}function xD(e,r,t){return e.replace(Ss.segmentRE,function(a){var n=0,i=a.charAt(0),l=Ss.paramIsX[i],o=Ss.paramIsY[i],s=Ss.numParams[i],u=a.slice(1).replace(Ss.paramRE,function(f){return n>=s||(l[n]?f=r(f):o[n]&&(f=t(f)),n++),f});return i+u})}function ole(e,r){if(vd(e)){var t=r.node(),a=+t.getAttribute("data-index");if(a>=0){if(a===e._fullLayout._activeShapeIndex){_D(e);return}e._fullLayout._activeShapeIndex=a,e._fullLayout._deactivateShape=_D,x5(e)}}}function _D(e){if(vd(e)){var r=e._fullLayout._activeShapeIndex;r>=0&&(MD(e),delete e._fullLayout._activeShapeIndex,x5(e))}}function sle(e){if(vd(e)){MD(e);var r=e._fullLayout._activeShapeIndex,t=(e.layout||{}).shapes||[];if(r{"use strict";var tu=Fe()._,ule=function(e){return{DIALOG_TITLE:tu(e,"Share chart"),DIALOG_MESSAGE_CLOUD:tu(e,"This chart will be uploaded to {Plotly Cloud} to create a sharing link. Only you can see it until you change its visibility."),DIALOG_MESSAGE_CLOUD_ACCOUNT:tu(e,"If you don't have a Plotly Cloud account yet, you'll have a chance to create one."),DIALOG_MESSAGE_OTHER:tu(e,"This chart will be sent to {serverUrl}."),DIALOG_CANCEL:tu(e,"Cancel"),DIALOG_CONFIRM:tu(e,"Share")}};CD.exports=ule});var qD=J((K5e,LD)=>{"use strict";var DD=Or(),{dfltConfig:fle}=Xl(),cle=SD(),vle=(e,r,t,a,n)=>{let i=cle(e),l=r.append("div").classed("plotly-cloud-dialog-box",!0);if(l.append("div").classed("plotly-cloud-dialog-title",!0).text(i.DIALOG_TITLE),t===fle.plotlyServerURL){let s=l.append("div").classed("plotly-cloud-dialog-message",!0),u=new URL(t).origin,f=i.DIALOG_MESSAGE_CLOUD.split(/(\{|\})/),c=f[0],d=f[2],h=f[4];s.append("span").text(c),s.append("a").classed("plotly-cloud-dialog-message--hostname",!0).attr("href",u).attr("target","_blank").text(d),s.append("span").text(h),s.append("div").classed("plotly-cloud-dialog-message--account",!0).text(i.DIALOG_MESSAGE_CLOUD_ACCOUNT)}else{let s=new URL(t),u=s.hostname,f=s.origin,c=i.DIALOG_MESSAGE_OTHER.split(/(\{|\})/),d=c[0],h=c[4],p=l.append("div").classed("plotly-cloud-dialog-message",!0);p.append("span").text(d),p.append("a").classed("plotly-cloud-dialog-message--hostname",!0).attr("href",f).attr("target","_blank").text(u),p.append("span").text(h)}let o=l.append("div").classed("plotly-cloud-dialog-buttons",!0);o.append("button").classed("plotly-cloud-dialog-btn",!0).classed("plotly-cloud-dialog-btn--cancel",!0).text(i.DIALOG_CANCEL).on("click",n),o.append("button").classed("plotly-cloud-dialog-btn",!0).classed("plotly-cloud-dialog-btn--confirm",!0).text(i.DIALOG_CONFIRM).on("click",a)},dle=(e,r,t)=>{let a=DD.select(e._fullLayout._paperdiv.node());a.selectAll(".plotly-cloud-dialog").remove();let n=a.append("div").classed("plotly-cloud-dialog",!0),i=()=>{n.remove(),document.removeEventListener("keydown",l)},l=o=>{(o.key==="Escape"||o.keyCode===27)&&i()};document.addEventListener("keydown",l),n.on("click",()=>{DD.event.target===n.node()&&i()}),vle(e,n,r,()=>{i(),t()},i)};LD.exports=dle});var M5=J((j5e,ID)=>{"use strict";var Hn=kr(),hle=na(),PD=ha(),jr=j1(),ple=dd().eraseActiveShape,mle=qD(),au=Fe(),Vr=au._,Kr={};ID.exports=Kr;Kr.toImage={name:"toImage",title:function(e){var r=e._context.toImageButtonOptions||{},t=r.format||"png";return t==="png"?Vr(e,"Download plot as a PNG"):Vr(e,"Download plot")},icon:jr.camera,click:function(e){var r=e._context.toImageButtonOptions,t={format:r.format||"png"};au.notifier(Vr(e,"Preparing image - this may take a few seconds"),"long",e),["filename","width","height","scale"].forEach(function(a){a in r&&(t[a]=r[a])}),Hn.call("downloadImage",e,t).then(function(a){au.notifier(Vr(e,"Image download succeeded")+" - "+a,"long",e)}).catch(function(){au.notifier(Vr(e,"Sorry, there was a problem downloading your image!"),"long",e)})}};Kr.downloadJson={name:"downloadJson",title:function(e){return Vr(e,"Download plot as JSON")},icon:jr.curlybraces,click:function(e){Hn.call("downloadImage",e,{format:"full-json"}).then(function(r){au.notifier(Vr(e,"JSON download succeeded")+" - "+r,"long",e)}).catch(function(){au.notifier(Vr(e,"Sorry, there was a problem downloading your JSON file!"),"long",e)})}};Kr.sendChartToCloud={name:"sendChartToCloud",title:function(e){return Vr(e,"Share chart...")},icon:jr.cloudupload,click:function(e){var r=(window.PLOTLYENV||{}).BASE_URL||e._context.plotlyServerURL;if(!r){console.error("No destination URL provided (plotlyServerURL is empty)");return}var t;try{t=new URL(r)}catch(n){console.error("Invalid plotlyServerURL: "+r);return}let a=["http:","https:"];if(!a.includes(t.protocol)){console.error(`Invalid protocol '${t.protocol}' in plotlyServerURL '${r}'. Must be one of: ${a.join(", ")}`);return}mle(e,r,function(){hle.sendDataToCloud(e,r)})}};Kr.zoom2d={name:"zoom2d",_cat:"zoom",title:function(e){return Vr(e,"Zoom")},attr:"dragmode",val:"zoom",icon:jr.zoombox,click:fn};Kr.pan2d={name:"pan2d",_cat:"pan",title:function(e){return Vr(e,"Pan")},attr:"dragmode",val:"pan",icon:jr.pan,click:fn};Kr.select2d={name:"select2d",_cat:"select",title:function(e){return Vr(e,"Box Select")},attr:"dragmode",val:"select",icon:jr.selectbox,click:fn};Kr.lasso2d={name:"lasso2d",_cat:"lasso",title:function(e){return Vr(e,"Lasso Select")},attr:"dragmode",val:"lasso",icon:jr.lasso,click:fn};Kr.drawclosedpath={name:"drawclosedpath",title:function(e){return Vr(e,"Draw closed freeform")},attr:"dragmode",val:"drawclosedpath",icon:jr.drawclosedpath,click:fn};Kr.drawopenpath={name:"drawopenpath",title:function(e){return Vr(e,"Draw open freeform")},attr:"dragmode",val:"drawopenpath",icon:jr.drawopenpath,click:fn};Kr.drawline={name:"drawline",title:function(e){return Vr(e,"Draw line")},attr:"dragmode",val:"drawline",icon:jr.drawline,click:fn};Kr.drawrect={name:"drawrect",title:function(e){return Vr(e,"Draw rectangle")},attr:"dragmode",val:"drawrect",icon:jr.drawrect,click:fn};Kr.drawcircle={name:"drawcircle",title:function(e){return Vr(e,"Draw circle")},attr:"dragmode",val:"drawcircle",icon:jr.drawcircle,click:fn};Kr.eraseshape={name:"eraseshape",title:function(e){return Vr(e,"Erase active shape")},icon:jr.eraseshape,click:ple};Kr.zoomIn2d={name:"zoomIn2d",_cat:"zoomin",title:function(e){return Vr(e,"Zoom in")},attr:"zoom",val:"in",icon:jr.zoom_plus,click:fn};Kr.zoomOut2d={name:"zoomOut2d",_cat:"zoomout",title:function(e){return Vr(e,"Zoom out")},attr:"zoom",val:"out",icon:jr.zoom_minus,click:fn};Kr.autoScale2d={name:"autoScale2d",_cat:"autoscale",title:function(e){return Vr(e,"Autoscale")},attr:"zoom",val:"auto",icon:jr.autoscale,click:fn};Kr.resetScale2d={name:"resetScale2d",_cat:"resetscale",title:function(e){return Vr(e,"Reset axes")},attr:"zoom",val:"reset",icon:jr.home,click:fn};Kr.hoverClosestCartesian={name:"hoverClosestCartesian",_cat:"hoverclosest",title:function(e){return Vr(e,"Show closest data on hover")},attr:"hovermode",val:"closest",icon:jr.tooltip_basic,gravity:"ne",click:fn};Kr.hoverCompareCartesian={name:"hoverCompareCartesian",_cat:"hoverCompare",title:function(e){return Vr(e,"Compare data on hover")},attr:"hovermode",val:function(e){return e._fullLayout._isHoriz?"y":"x"},icon:jr.tooltip_compare,gravity:"ne",click:fn};function fn(e,r){var t=r.currentTarget,a=t.getAttribute("data-attr"),n=t.getAttribute("data-val")||!0,i=e._fullLayout,l={},o=PD.list(e,null,!0),s=i._cartesianSpikesEnabled,u,f;if(a==="zoom"){var c=n==="in"?.5:2,d=(1+c)/2,h=(1-c)/2,p,g;for(f=0;f-S),[g,y]=c.invert(f.midPt),{minscale:x}=u.projection,w=(o=u.projection.maxscale)!=null?o:1/0,M=Math.min(x,w),b=Math.max(x,w),T=n==="in"?ED*d:1/ED*d;T>b?T=b:T{"use strict";var BD=M5(),xle=Object.keys(BD),HD=["drawline","drawopenpath","drawclosedpath","drawcircle","drawrect","eraseshape"],OD=["v1hovermode","hoverclosest","hovercompare","togglehover","togglespikelines"].concat(HD,["downloadJson"]),nu=[],_le=function(e){if(OD.indexOf(e._cat||e.name)===-1){var r=e.name,t=(e._cat||e.name).toLowerCase();nu.indexOf(r)===-1&&nu.push(r),nu.indexOf(t)===-1&&nu.push(t)}};xle.forEach(function(e){_le(BD[e])});nu.sort();YD.exports={DRAW_MODES:HD,backButtons:OD,foreButtons:nu}});var k5={};Nt(k5,{default:()=>Mle});var A5,wle,Mle,C5=Ft(()=>{"use strict";A5=Q6(T5()),wle={editType:"modebar",orientation:{valType:"enumerated",values:["v","h"],dflt:"h",editType:"modebar",description:"Sets the orientation of the modebar."},bgcolor:{valType:"color",editType:"modebar",description:"Sets the background color of the modebar."},color:{valType:"color",editType:"modebar",description:"Sets the color of the icons in the modebar."},activecolor:{valType:"color",editType:"modebar",description:"Sets the color of the active or hovered on icons in the modebar."},uirevision:{valType:"any",editType:"none",description:["Controls persistence of user-driven changes related to the modebar,","including `hovermode`, `dragmode`, and `showspikes` at both the","root level and inside subplots. Defaults to `layout.uirevision`."].join(" ")},add:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar",description:["Determines which predefined modebar buttons to add.","Please note that these buttons will only be shown if they are","compatible with all trace types used in a graph.","Similar to `config.modeBarButtonsToAdd` option.",`This may include *${A5.default.backButtons.join("*, *")}*.`].join(" ")},remove:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar",description:["Determines which predefined modebar buttons to remove.","Similar to `config.modeBarButtonsToRemove` option.",`This may include *${A5.default.foreButtons.join("*, *")}*.`].join(" ")}},Mle=wle});var GD=J((ebe,UD)=>{"use strict";var Tle=Fe(),ec=Nr(),Ale=yt(),kle=(C5(),Xe(k5)).default;UD.exports=function(r,t){var a=r.modebar||{},n=Ale.newContainer(t,"modebar");function i(o,s){return Tle.coerce(a,n,kle,o,s)}i("orientation"),i("bgcolor",ec.addOpacity(t.paper_bgcolor,.5));var l=ec.contrast(ec.rgb(t.modebar.bgcolor));i("color",ec.addOpacity(l,.3)),i("activecolor",ec.addOpacity(l,.7)),i("uirevision",t.uirevision),i("add"),i("remove")}});var ZD=J((rbe,WD)=>{"use strict";var S5=Or(),Cle=Zr(),md=Fe(),VD=j1(),Sle=Xu().version,Dle=new DOMParser;function XD(e){this.container=e.container,this.element=document.createElement("div"),this.update(e.graphInfo,e.buttons),this.container.appendChild(this.element)}var cl=XD.prototype;cl.update=function(e,r){this.graphInfo=e;var t=this.graphInfo._context,a=this.graphInfo._fullLayout,n="modebar-"+a._uid;this.element.setAttribute("id",n),this.element.setAttribute("role","toolbar"),this._uid=n,this.element.className="modebar modebar--custom",t.displayModeBar==="hover"&&(this.element.className+=" modebar--hover ease-bg"),a.modebar.orientation==="v"&&(this.element.className+=" vertical",r=r.reverse());var i=a.modebar,l="#"+n+" .modebar-group";document.querySelectorAll(l).forEach(function(c){c.style.backgroundColor=i.bgcolor});var o=!this.hasButtons(r),s=this.hasLogo!==t.displaylogo,u=this.locale!==t.locale;if(this.locale=t.locale,(o||s||u)&&(this.removeAllButtons(),this.updateButtons(r),t.watermark||t.displaylogo)){var f=this.getLogo();t.watermark&&(f.className=f.className+" watermark"),a.modebar.orientation==="v"?this.element.insertBefore(f,this.element.childNodes[0]):this.element.appendChild(f),this.hasLogo=!0}this.updateActiveButton(),md.setStyleOnHover("#"+n+" .modebar-btn",".active",".icon path","fill: "+i.activecolor,"fill: "+i.color,this.element)};cl.updateButtons=function(e){var r=this;this.buttons=e,this.buttonElements=[],this.buttonsNames=[],this.buttons.forEach(function(t){var a=r.createGroup();t.forEach(function(n){var i=n.name;if(!i)throw new Error("must provide button 'name' in button config");if(r.buttonsNames.indexOf(i)!==-1)throw new Error("button name '"+i+"' is taken");r.buttonsNames.push(i);var l=r.createButton(n);r.buttonElements.push(l),a.appendChild(l)}),r.element.appendChild(a)})};cl.createGroup=function(){var e=document.createElement("div");e.className="modebar-group";var r=this.graphInfo._fullLayout.modebar;return e.style.backgroundColor=r.bgcolor,e};cl.createButton=function(e){var r=this,t=document.createElement("button");t.setAttribute("type","button"),t.setAttribute("rel","tooltip"),t.className="modebar-btn";var a=e.title;a===void 0?a=e.name:typeof a=="function"&&(a=a(this.graphInfo)),(a||a===0)&&(t.setAttribute("data-title",a),t.setAttribute("aria-label",a)),e.attr!==void 0&&t.setAttribute("data-attr",e.attr);var n=e.val;n!==void 0&&(typeof n=="function"&&(n=n(this.graphInfo)),t.setAttribute("data-val",n));var i=e.click;if(typeof i!="function")throw new Error("must provide button 'click' function in button config");t.addEventListener("click",function(o){e.click(r.graphInfo,o),r.updateActiveButton(o.currentTarget)}),t.setAttribute("data-toggle",e.toggle||!1),e.toggle&&S5.select(t).classed("active",!0);var l=e.icon;return typeof l=="function"?t.appendChild(l()):t.appendChild(this.createIcon(l||VD.question)),t.setAttribute("data-gravity",e.gravity||"n"),t};cl.createIcon=function(e){var r=Cle(e.height)?Number(e.height):e.ascent-e.descent,t="http://www.w3.org/2000/svg",a;if(e.path){a=document.createElementNS(t,"svg"),a.setAttribute("viewBox",[0,0,e.width,r].join(" ")),a.setAttribute("class","icon");var n=document.createElementNS(t,"path");n.setAttribute("d",e.path),e.transform?n.setAttribute("transform",e.transform):e.ascent!==void 0&&n.setAttribute("transform","matrix(1 0 0 -1 0 "+e.ascent+")"),a.appendChild(n)}if(e.svg){var i=Dle.parseFromString(e.svg,"application/xml");a=i.childNodes[0]}return a.setAttribute("height","1em"),a.setAttribute("width","1em"),a};cl.updateActiveButton=function(e){var r=this.graphInfo._fullLayout,t=e!==void 0?e.getAttribute("data-attr"):null;this.buttonElements.forEach(function(a){var n=a.getAttribute("data-val")||!0,i=a.getAttribute("data-attr"),l=a.getAttribute("data-toggle")==="true",o=S5.select(a),s=function(c,d){var h=r.modebar,p=c.querySelector(".icon path");p&&(d||c.matches(":hover")?p.style.fill=h.activecolor:p.style.fill=h.color)};if(l){if(i===t){var u=!o.classed("active");o.classed("active",u),s(a,u)}}else{var f=i===null?i:md.nestedProperty(r,i).get();o.classed("active",f===n),s(a,f===n)}})};cl.hasButtons=function(e){var r=this.buttons;if(!r||e.length!==r.length)return!1;for(var t=0;t{"use strict";var Ele=ha(),JD=Rn(),D5=kr(),Ple=Si().isUnifiedHover,Rle=ZD(),gd=M5(),zle=T5().DRAW_MODES,Fle=Fe().extendDeep;$D.exports=function(r){var t=r._fullLayout,a=r._context,n=t._modeBar;if(!a.displayModeBar&&!a.watermark){n&&(n.destroy(),delete t._modeBar);return}if(!Array.isArray(a.modeBarButtonsToRemove))throw new Error(["*modeBarButtonsToRemove* configuration options","must be an array."].join(" "));if(!Array.isArray(a.modeBarButtonsToAdd))throw new Error(["*modeBarButtonsToAdd* configuration options","must be an array."].join(" "));var i=a.modeBarButtons,l;Array.isArray(i)&&i.length?l=Yle(i):!a.displayModeBar&&a.watermark?l=[]:l=Nle(r),n?n.update(r,l):t._modeBar=Rle(r,l)};function Nle(e){var r=e._fullLayout,t=e._fullData,a=e._context;function n(U,W){if(typeof W=="string"){if(W.toLowerCase()===U.toLowerCase())return!0}else{var Z=W.name,G=W._cat||W.name;if(Z===U||G===U.toLowerCase())return!0}return!1}var i=r.modebar.add;typeof i=="string"&&(i=[i]);var l=r.modebar.remove;typeof l=="string"&&(l=[l]);var o=a.modeBarButtonsToAdd.concat(i.filter(function(U){for(var W=0;W1?(q=["toggleHover"],P=["resetViews"]):c?(L=["zoomInGeo","zoomOutGeo"],q=["hoverClosestGeo"],P=["resetGeo"]):f?(q=["hoverClosest3d"],P=["resetCameraDefault3d","resetCameraLastSave3d"]):g?(L=["zoomInMap","zoomOutMap"],q=["toggleHover"],P=["resetViewMap"]):d?q=["hoverClosestPie"]:w?(q=["hoverClosestCartesian","hoverCompareCartesian"],P=["resetViewSankey"]):q=["toggleHover"],u&&q.push("toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"),(Hle(t)||b)&&(q=[]),u&&!M&&(L=["zoomIn2d","zoomOut2d","autoScale2d"],P[0]!=="resetViews"&&(P=["resetScale2d"])),f?z=["zoom3d","pan3d","orbitRotation","tableRotation"]:u&&!M||p?z=["zoom2d","pan2d"]:g||c?z=["pan2d"]:y&&(z=["zoom2d"]),Ble(t)&&z.push("select2d","lasso2d");var N=[],H=function(U){N.indexOf(U)===-1&&q.indexOf(U)!==-1&&N.push(U)};if(Array.isArray(o)){for(var B=[],I=0;I{"use strict";jD.exports={moduleType:"component",name:"modebar",layoutAttributes:(C5(),Xe(k5)).default,supplyLayoutDefaults:GD(),manage:KD()}});var q5=J((nbe,QD)=>{"use strict";var Ule=(Ja(),Xe(Za)).FROM_BL;QD.exports=function(r,t,a){a===void 0&&(a=Ule[r.constraintoward||"center"]);var n=[r.r2l(r.range[0]),r.r2l(r.range[1])],i=n[0]+(n[1]-n[0])*a;r.range=r._input.range=[r.l2r(i+(n[0]-i)*t),r.l2r(i+(n[1]-i)*t)],r.setScale()}});var tc=J(rc=>{"use strict";var Ds=Fe(),E5=Nf(),Ei=ha().id2name,Gle=ki(),eL=q5(),Vle=g1(),Xle=(ca(),Xe(ga)).ALMOST_EQUAL,Wle=(Ja(),Xe(Za)).FROM_BL;rc.handleDefaults=function(e,r,t){var a=t.axIds,n=t.axHasImage,i=r._axisConstraintGroups=[],l=r._axisMatchGroups=[],o,s,u,f,c,d,h,p;for(o=0;oi?t.slice(i):a.slice(n))+l}function Jle(e,r){for(var t=r._size,a=t.h/t.w,n={},i=Object.keys(e),l=0;lXle*p&&!w)){for(i=0;iN&&ZP&&(P=Z);var j=(P-q)/(2*z);c/=j,q=s.l2r(q),P=s.l2r(P),s.range=s._input.range=S{"use strict";var bd=Or(),cn=kr(),On=na(),ai=Fe(),z5=La(),F5=K1(),ac=Nr(),iu=ot(),nL=zf(),uL=L5(),nc=Mt(),ql=(Ja(),Xe(Za)),fL=tc(),$le=fL.enforce,Kle=fL.clean,iL=Nf().doAutoRange,cL="start",jle="middle",vL="end",Qle=(_a(),Xe(xa)).zindexSeparator;Ma.layoutStyles=function(e){return ai.syncOrAsync([On.doAutoMargin,roe],e)};function eoe(e,r,t){for(var a=0;a=e[1]||n[1]<=e[0])&&i[0]r[0])return!0}return!1}function roe(e){var r=e._fullLayout,t=r._size,a=t.p,n=nc.list(e,"",!0),i,l,o,s,u,f;if(r._paperdiv.style({width:e._context.responsive&&r.autosize&&!e._context._hasZeroWidth&&!e.layout.width?"100%":r.width+"px",height:e._context.responsive&&r.autosize&&!e._context._hasZeroHeight&&!e.layout.height?"100%":r.height+"px"}).selectAll(".main-svg").call(iu.setSize,r.width,r.height),e._context.setBackground(e,r.paper_bgcolor),Ma.drawMainTitle(e),uL.manage(e),!r._has("cartesian"))return On.previousPromises(e);function c(de,Ce,Ie){var _e=de._lw/2;if(de._id.charAt(0)==="x"){if(Ce){if(Ie==="top")return Ce._offset-a-_e}else return t.t+t.h*(1-(de.position||0))+_e%1;return Ce._offset+Ce._length+a+_e}if(Ce){if(Ie==="right")return Ce._offset+Ce._length+a+_e}else return t.l+t.w*(de.position||0)+_e%1;return Ce._offset-a-_e}for(i=0;i0){ioe(e,i,u,s),o.attr({x:l,y:i,"text-anchor":a,dy:sL(r.yanchor)}).call(z5.positionText,l,i);var f=(r.text.match(z5.BR_TAG_ALL)||[]).length;if(f){var c=ql.LINE_SPACING*f+ql.MID_SHIFT;r.y===0&&(c=-c),o.selectAll(".line").each(function(){var y=+this.getAttribute("dy").slice(0,-2)-c+"em";this.setAttribute("dy",y)})}var d=bd.select(e).selectAll(".gtitle-subtitle");if(d.node()){var h=o.node().getBBox(),p=h.y+h.height,g=p+nL.SUBTITLE_PADDING_EM*r.subtitle.font.size;d.attr({x:l,y:g,"text-anchor":a,dy:sL(r.yanchor)}).call(z5.positionText,l,g)}}}};function toe(e,r,t,a,n){var i=r.yref==="paper"?e._fullLayout._size.h:e._fullLayout.height,l=ai.isTopAnchor(r)?a:a-n,o=t==="b"?i-l:l;return ai.isTopAnchor(r)&&t==="t"||ai.isBottomAnchor(r)&&t==="b"?!1:o.5?"t":"b",l=e._fullLayout.margin[i],o=0;return r.yref==="paper"?o=t+r.pad.t+r.pad.b:r.yref==="container"&&(o=aoe(i,a,n,e._fullLayout.height,t)+r.pad.t+r.pad.b),o>l?o:0}function ioe(e,r,t,a){var n="title.automargin",i=e._fullLayout.title,l=i.y>.5?"t":"b",o={x:i.x,y:i.y,t:0,b:0},s={};i.yref==="paper"&&toe(e,i,l,r,a)?o[l]=t:i.yref==="container"&&(s[l]=t,e._fullLayout._reservedMargin[n]=s),On.allowAutoMargin(e,n),On.autoMargin(e,n,o)}function loe(e,r){var t=e.title,a=e._size,n=0;return r===cL?n=t.pad.l:r===vL&&(n=-t.pad.r),t.xref==="paper"?a.l+a.w*t.x+n:e.width*t.x+n}function ooe(e,r){var t=e.title,a=e._size,n=0;return r==="0em"||!r?n=-t.pad.b:r===ql.CAP_SHIFT+"em"&&(n=t.pad.t),t.y==="auto"?a.t/2:t.yref==="paper"?a.t+a.h-a.h*t.y+n:e.height-e.height*t.y+n}function sL(e){return e==="top"?ql.CAP_SHIFT+.3+"em":e==="bottom"?"-0.3em":ql.MID_SHIFT+"em"}function soe(e){var r=e.title,t=jle;return ai.isRightAnchor(r)?t=vL:ai.isLeftAnchor(r)&&(t=cL),t}function uoe(e){var r=e.title,t="0em";return ai.isTopAnchor(r)?t=ql.CAP_SHIFT+"em":ai.isMiddleAnchor(r)&&(t=ql.MID_SHIFT+"em"),t}Ma.doTraceStyle=function(e){var r=e.calcdata,t=[],a;for(a=0;a{"use strict";var foe=po().readPaths,coe=sd(),dL=no().clearOutlineControllers,N5=Nr(),hL=ot(),voe=yt().arrayEditor,pL=yo(),doe=pL.getPathString;gL.exports={draw:_d,drawOne:mL,activateLastSelection:moe};function _d(e){var r=e._fullLayout;dL(e),r._selectionLayer.selectAll("path").remove();for(var t in r._plots){var a=r._plots[t].selectionLayer;a&&a.selectAll("path").remove()}for(var n=0;n=0;y--){var x=l.append("path").attr(s).style("opacity",y?.1:u).call(N5.stroke,c).call(N5.fill,f).call(hL.dashLine,y?"solid":h,y?4+d:d);if(hoe(x,e,a),p){var w=voe(e.layout,"selections",a);x.style({cursor:"move"});var M={element:x.node(),plotinfo:n,gd:e,editHelpers:w,isActiveSelection:!0},b=foe(o,e);coe(b,x,M)}else x.style("pointer-events",y?"all":"none");g[y]=x}var T=g[0],S=g[1];S.node().addEventListener("click",function(){return poe(e,T)})}}function hoe(e,r,t){var a=t.xref+t.yref;hL.setClipUrl(e,"clip"+r._fullLayout._uid+a,r)}function poe(e,r){if(wd(e)){var t=r.node(),a=+t.getAttribute("data-index");if(a>=0){if(a===e._fullLayout._activeSelectionIndex){I5(e);return}e._fullLayout._activeSelectionIndex=a,e._fullLayout._deactivateSelection=I5,_d(e)}}}function moe(e){if(wd(e)){var r=e._fullLayout.selections.length-1;e._fullLayout._activeSelectionIndex=r,e._fullLayout._deactivateSelection=I5,_d(e)}}function I5(e){if(wd(e)){var r=e._fullLayout._activeSelectionIndex;r>=0&&(dL(e),delete e._fullLayout._activeSelectionIndex,_d(e))}}});var bL=J((sbe,yL)=>{function goe(){var e,r=0,t=!1;function a(n,i){return e.list.push({type:n,data:i?JSON.parse(JSON.stringify(i)):void 0}),e}return e={list:[],segmentId:function(){return r++},checkIntersection:function(n,i){return a("check",{seg1:n,seg2:i})},segmentChop:function(n,i){return a("div_seg",{seg:n,pt:i}),a("chop",{seg:n,pt:i})},statusRemove:function(n){return a("pop_seg",{seg:n})},segmentUpdate:function(n){return a("seg_update",{seg:n})},segmentNew:function(n,i){return a("new_seg",{seg:n,primary:i})},segmentRemove:function(n){return a("rem_seg",{seg:n})},tempStatus:function(n,i,l){return a("temp_status",{seg:n,above:i,below:l})},rewind:function(n){return a("rewind",{seg:n})},status:function(n,i,l){return a("status",{seg:n,above:i,below:l})},vert:function(n){return n===t?e:(t=n,a("vert",{x:n}))},log:function(n){return typeof n!="string"&&(n=JSON.stringify(n,!1," ")),a("log",{txt:n})},reset:function(){return a("reset")},selected:function(n){return a("selected",{segs:n})},chainStart:function(n){return a("chain_start",{seg:n})},chainRemoveHead:function(n,i){return a("chain_rem_head",{index:n,pt:i})},chainRemoveTail:function(n,i){return a("chain_rem_tail",{index:n,pt:i})},chainNew:function(n,i){return a("chain_new",{pt1:n,pt2:i})},chainMatch:function(n){return a("chain_match",{index:n})},chainClose:function(n){return a("chain_close",{index:n})},chainAddHead:function(n,i){return a("chain_add_head",{index:n,pt:i})},chainAddTail:function(n,i){return a("chain_add_tail",{index:n,pt:i})},chainConnect:function(n,i){return a("chain_con",{index1:n,index2:i})},chainReverse:function(n){return a("chain_rev",{index:n})},chainJoin:function(n,i){return a("chain_join",{index1:n,index2:i})},done:function(){return a("done")}},e}yL.exports=goe});var _L=J((ube,xL)=>{function yoe(e){typeof e!="number"&&(e=1e-10);var r={epsilon:function(t){return typeof t=="number"&&(e=t),e},pointAboveOrOnLine:function(t,a,n){var i=a[0],l=a[1],o=n[0],s=n[1],u=t[0],f=t[1];return(o-i)*(f-l)-(s-l)*(u-i)>=-e},pointBetween:function(t,a,n){var i=t[1]-a[1],l=n[0]-a[0],o=t[0]-a[0],s=n[1]-a[1],u=o*l+i*s;if(u-e)},pointsSameX:function(t,a){return Math.abs(t[0]-a[0])e!=o-i>e&&(l-f)*(i-c)/(o-c)+f-n>e&&(s=!s),l=f,o=c}return s}};return r}xL.exports=yoe});var ML=J((fbe,wL)=>{var boe={create:function(){var e={root:{root:!0,next:null},exists:function(r){return!(r===null||r===e.root)},isEmpty:function(){return e.root.next===null},getHead:function(){return e.root.next},insertBefore:function(r,t){for(var a=e.root,n=e.root.next;n!==null;){if(t(n)){r.prev=n.prev,r.next=n,n.prev.next=r,n.prev=r;return}a=n,n=n.next}a.next=r,r.prev=a,r.next=null},findTransition:function(r){for(var t=e.root,a=e.root.next;a!==null&&!r(a);)t=a,a=a.next;return{before:t===e.root?null:t,after:a,insert:function(n){return n.prev=t,n.next=a,t.next=n,a!==null&&(a.prev=n),n}}}};return e},node:function(e){return e.prev=null,e.next=null,e.remove=function(){e.prev.next=e.next,e.next&&(e.next.prev=e.prev),e.prev=null,e.next=null},e}};wL.exports=boe});var AL=J((cbe,TL)=>{var ic=ML();function xoe(e,r,t){function a(p,g){return{id:t?t.segmentId():-1,start:p,end:g,myFill:{above:null,below:null},otherFill:null}}function n(p,g,y){return{id:t?t.segmentId():-1,start:p,end:g,myFill:{above:y.myFill.above,below:y.myFill.below},otherFill:null}}var i=ic.create();function l(p,g,y,x,w,M){var b=r.pointsCompare(g,w);return b!==0?b:r.pointsSame(y,M)?0:p!==x?p?1:-1:r.pointAboveOrOnLine(y,x?w:M,x?M:w)?1:-1}function o(p,g){i.insertBefore(p,function(y){var x=l(p.isStart,p.pt,g,y.isStart,y.pt,y.other.pt);return x<0})}function s(p,g){var y=ic.node({isStart:!0,pt:p.start,seg:p,primary:g,other:null,status:null});return o(y,p.end),y}function u(p,g,y){var x=ic.node({isStart:!1,pt:g.end,seg:g,primary:y,other:p,status:null});p.other=x,o(x,p.pt)}function f(p,g){var y=s(p,g);return u(y,p,g),y}function c(p,g){t&&t.segmentChop(p.seg,g),p.other.remove(),p.seg.end=g,p.other.pt=g,o(p.other,p.pt)}function d(p,g){var y=n(g,p.seg.end,p.seg);return c(p,g),f(y,p.primary)}function h(p,g){var y=ic.create();function x(I,V){var O=I.seg.start,U=I.seg.end,W=V.seg.start,Z=V.seg.end;return r.pointsCollinear(O,W,Z)?r.pointsCollinear(U,W,Z)||r.pointAboveOrOnLine(U,W,Z)?1:-1:r.pointAboveOrOnLine(O,W,Z)?1:-1}function w(I){return y.findTransition(function(V){var O=x(I,V.ev);return O>0})}function M(I,V){var O=I.seg,U=V.seg,W=O.start,Z=O.end,G=U.start,j=U.end;t&&t.checkIntersection(O,U);var ie=r.linesIntersect(W,Z,G,j);if(ie===!1){if(!r.pointsCollinear(W,Z,G)||r.pointsSame(W,j)||r.pointsSame(Z,G))return!1;var pe=r.pointsSame(W,G),ve=r.pointsSame(Z,j);if(pe&&ve)return V;var Q=!pe&&r.pointBetween(W,G,j),we=!ve&&r.pointBetween(Z,G,j);if(pe)return we?d(V,Z):d(I,j),V;Q&&(ve||(we?d(V,Z):d(I,j)),d(V,W))}else ie.alongA===0&&(ie.alongB===-1?d(I,G):ie.alongB===0?d(I,ie.pt):ie.alongB===1&&d(I,j)),ie.alongB===0&&(ie.alongA===-1?d(V,W):ie.alongA===0?d(V,ie.pt):ie.alongA===1&&d(V,Z));return!1}for(var b=[];!i.isEmpty();){var T=i.getHead();if(t&&t.vert(T.pt[0]),T.isStart){let I=function(){if(C){var V=M(T,C);if(V)return V}return L?M(T,L):!1};var B=I;t&&t.segmentNew(T.seg,T.primary);var S=w(T),C=S.before?S.before.ev:null,L=S.after?S.after.ev:null;t&&t.tempStatus(T.seg,C?C.seg:!1,L?L.seg:!1);var q=I();if(q){if(e){var P;T.seg.myFill.below===null?P=!0:P=T.seg.myFill.above!==T.seg.myFill.below,P&&(q.seg.myFill.above=!q.seg.myFill.above)}else q.seg.otherFill=T.seg.myFill;t&&t.segmentUpdate(q.seg),T.other.remove(),T.remove()}if(i.getHead()!==T){t&&t.rewind(T.seg);continue}if(e){var P;T.seg.myFill.below===null?P=!0:P=T.seg.myFill.above!==T.seg.myFill.below,L?T.seg.myFill.below=L.seg.myFill.above:T.seg.myFill.below=p,P?T.seg.myFill.above=!T.seg.myFill.below:T.seg.myFill.above=T.seg.myFill.below}else if(T.seg.otherFill===null){var z;L?T.primary===L.primary?z=L.seg.otherFill.above:z=L.seg.myFill.above:z=T.primary?g:p,T.seg.otherFill={above:z,below:z}}t&&t.status(T.seg,C?C.seg:!1,L?L.seg:!1),T.other.status=S.insert(ic.node({ev:T}))}else{var N=T.status;if(N===null)throw new Error("PolyBool: Zero-length segment detected; your epsilon is probably too small or too large");if(y.exists(N.prev)&&y.exists(N.next)&&M(N.prev.ev,N.next.ev),t&&t.statusRemove(N.ev.seg),N.remove(),!T.primary){var H=T.seg.myFill;T.seg.myFill=T.seg.otherFill,T.seg.otherFill=H}b.push(T.seg)}i.getHead().remove()}return t&&t.done(),b}return e?{addRegion:function(p){for(var g,y=p[p.length-1],x=0;x{function _oe(e,r,t){var a=[],n=[];return e.forEach(function(i){var l=i.start,o=i.end;if(r.pointsSame(l,o)){console.warn("PolyBool: Warning: Zero-length segment detected; your epsilon is probably too small or too large");return}t&&t.chainStart(i);var s={index:0,matches_head:!1,matches_pt1:!1},u={index:0,matches_head:!1,matches_pt1:!1},f=s;function c(B,I,V){return f.index=B,f.matches_head=I,f.matches_pt1=V,f===s?(f=u,!1):(f=null,!0)}for(var d=0;d{function lc(e,r,t){var a=[];return e.forEach(function(n){var i=(n.myFill.above?8:0)+(n.myFill.below?4:0)+(n.otherFill&&n.otherFill.above?2:0)+(n.otherFill&&n.otherFill.below?1:0);r[i]!==0&&a.push({id:t?t.segmentId():-1,start:n.start,end:n.end,myFill:{above:r[i]===1,below:r[i]===2},otherFill:null})}),t&&t.selected(a),a}var woe={union:function(e,r){return lc(e,[0,2,1,0,2,2,0,0,1,0,1,0,0,0,0,0],r)},intersect:function(e,r){return lc(e,[0,0,0,0,0,2,0,2,0,0,1,1,0,2,1,0],r)},difference:function(e,r){return lc(e,[0,0,0,0,2,0,2,0,1,1,0,0,0,1,2,0],r)},differenceRev:function(e,r){return lc(e,[0,2,1,0,0,0,1,1,0,2,0,2,0,0,0,0],r)},xor:function(e,r){return lc(e,[0,2,1,0,2,0,0,1,1,0,0,2,0,1,2,0],r)}};SL.exports=woe});var qL=J((hbe,LL)=>{var Moe={toPolygon:function(e,r){function t(i){if(i.length<=0)return e.segments({inverted:!1,regions:[]});function l(u){var f=u.slice(0,u.length-1);return e.segments({inverted:!1,regions:[f]})}for(var o=l(i[0]),s=1;s{var Toe=bL(),Aoe=_L(),EL=AL(),koe=CL(),oc=DL(),PL=qL(),ni=!1,sc=Aoe(),Cn;Cn={buildLog:function(e){return e===!0?ni=Toe():e===!1&&(ni=!1),ni===!1?!1:ni.list},epsilon:function(e){return sc.epsilon(e)},segments:function(e){var r=EL(!0,sc,ni);return e.regions.forEach(r.addRegion),{segments:r.calculate(e.inverted),inverted:e.inverted}},combine:function(e,r){var t=EL(!1,sc,ni);return{combined:t.calculate(e.segments,e.inverted,r.segments,r.inverted),inverted1:e.inverted,inverted2:r.inverted}},selectUnion:function(e){return{segments:oc.union(e.combined,ni),inverted:e.inverted1||e.inverted2}},selectIntersect:function(e){return{segments:oc.intersect(e.combined,ni),inverted:e.inverted1&&e.inverted2}},selectDifference:function(e){return{segments:oc.difference(e.combined,ni),inverted:e.inverted1&&!e.inverted2}},selectDifferenceRev:function(e){return{segments:oc.differenceRev(e.combined,ni),inverted:!e.inverted1&&e.inverted2}},selectXor:function(e){return{segments:oc.xor(e.combined,ni),inverted:e.inverted1!==e.inverted2}},polygon:function(e){return{regions:koe(e.segments,sc,ni),inverted:e.inverted}},polygonFromGeoJSON:function(e){return PL.toPolygon(Cn,e)},polygonToGeoJSON:function(e){return PL.fromPolygon(Cn,sc,e)},union:function(e,r){return uc(e,r,Cn.selectUnion)},intersect:function(e,r){return uc(e,r,Cn.selectIntersect)},difference:function(e,r){return uc(e,r,Cn.selectDifference)},differenceRev:function(e,r){return uc(e,r,Cn.selectDifferenceRev)},xor:function(e,r){return uc(e,r,Cn.selectXor)}};function uc(e,r,t){var a=Cn.segments(e),n=Cn.segments(r),i=Cn.combine(a,n),l=t(i);return Cn.polygon(l)}typeof window=="object"&&(window.PolyBool=Cn);RL.exports=Cn});var NL=J((mbe,FL)=>{FL.exports=function(r,t,a,n){var i=r[0],l=r[1],o=!1;a===void 0&&(a=0),n===void 0&&(n=t.length);for(var s=n-a,u=0,f=s-1;ul!=p>l&&i<(h-c)*(l-d)/(p-d)+c;g&&(o=!o)}return o}});var O5=J((gbe,IL)=>{"use strict";var H5=_2().dot,Md=(ca(),Xe(ga)).BADNUM,Td=IL.exports={};Td.tester=function(r){var t=r.slice(),a=t[0][0],n=a,i=t[0][1],l=i,o;for((t[t.length-1][0]!==t[0][0]||t[t.length-1][1]!==t[0][1])&&t.push(t[0]),o=1;on||x===Md||xl||g&&u(p))}function c(p,g){var y=p[0],x=p[1];if(y===Md||yn||x===Md||xl)return!1;var w=t.length,M=t[0][0],b=t[0][1],T=0,S,C,L,q,P;for(S=1;SMath.max(C,M)||x>Math.max(L,b)))if(xo||Math.abs(H5(c,u))>n)return!0;return!1};Td.filter=function(r,t){var a=[r[0]],n=0,i=0;function l(s){r.push(s);var u=a.length,f=n;a.splice(i+1);for(var c=f+1;c1){var o=r.pop();l(o)}return{addPt:l,raw:r,filtered:a}}});var BL={};Nt(BL,{BENDPX:()=>Coe,MINSELECT:()=>Soe,SELECTDELAY:()=>Doe,SELECTID:()=>Loe});var Coe,Soe,Doe,Loe,HL=Ft(()=>{"use strict";Coe=1.5,Soe=12,Doe=100,Loe="-select"});var sq=J((ybe,oq)=>{"use strict";var OL=zL(),qoe=NL(),vc=kr(),Eoe=ot().dashStyle,fc=Nr(),Poe=qi(),Roe=Si().makeEventData,gc=Q0(),zoe=gc.freeMode,Foe=gc.rectMode,dc=gc.drawMode,V5=gc.openMode,X5=gc.selectMode,YL=yo(),UL=(jf(),Xe(Kf)),ZL=sd(),JL=no().clearOutline,$L=po(),Y5=$L.handleEllipse,Noe=$L.readPaths,Ioe=id().newShapes,Boe=d5(),Hoe=B5().activateLastSelection,kd=Fe(),Ooe=kd.sorterAsc,KL=O5(),cc=P2(),ii=ha().getFromId,Yoe=K1(),Uoe=xd().redrawReglTraces,Cd=(HL(),Xe(BL)),vl=Cd.MINSELECT,Goe=KL.filter,W5=KL.tester,Z5=rd(),GL=Z5.p2r,Voe=Z5.axValue,Xoe=Z5.getTransform;function J5(e){return e.subplot!==void 0}function Woe(e,r,t,a,n){var i=!J5(a),l=zoe(n),o=Foe(n),s=V5(n),u=dc(n),f=X5(n),c=n==="drawline",d=n==="drawcircle",h=c||d,p=a.gd,g=p._fullLayout,y=f&&g.newselection.mode==="immediate"&&i,x=g._zoomlayer,w=a.element.getBoundingClientRect(),M=a.plotinfo,b=Xoe(M),T=r-w.left,S=t-w.top;g._calcInverseTransform(p);var C=kd.apply3DTransform(g._invTransform)(T,S);T=C[0],S=C[1];var L=g._invScaleX,q=g._invScaleY,P=T,z=S,N="M"+T+","+S,H=a.xaxes[0],B=a.yaxes[0],I=H._length,V=B._length,O=e.altKey&&!(dc(n)&&s),U,W,Z,G,j,ie,pe;QL(e,p,a),l&&(U=Goe([[T,S]],Cd.BENDPX));var ve=x.selectAll("path.select-outline-"+M.id).data([1]),Q=u?g.newshape:g.newselection;u&&(a.hasText=Q.label.text||Q.label.texttemplate);var we=u&&!s?Q.fillcolor:"rgba(0,0,0,0)",le=Q.line.color||(i?fc.contrast(p._fullLayout.plot_bgcolor):"#7f7f7f");ve.enter().append("path").attr("class","select-outline select-outline-"+M.id).style({opacity:u?Q.opacity/2:1,"stroke-dasharray":Eoe(Q.line.dash,Q.line.width),"stroke-width":Q.line.width+"px","shape-rendering":"crispEdges"}).call(fc.stroke,le).call(fc.fill,we).attr("fill-rule","evenodd").classed("cursor-move",!!u).attr("transform",b).attr("d",N+"Z");var Se=x.append("path").attr("class","zoombox-corners").style({fill:fc.background,stroke:fc.defaultLine,"stroke-width":1}).attr("transform",b).attr("d","M0,0Z");if(u&&a.hasText){var ce=x.select(".label-temp");ce.empty()&&(ce=x.append("g").classed("label-temp",!0).classed("select-outline",!0).style({opacity:.8}))}var de=g._uid+Cd.SELECTID,Ce=[],Ie=Sd(p,a.xaxes,a.yaxes,a.subplot);y&&!e.shiftKey&&(a._clearSubplotSelections=function(){if(i){var De=H._id,Te=B._id;nq(p,De,Te,Ie);for(var Ae=(p.layout||{}).selections||[],ke=[],Re=!1,Me=0;Me=0){p._fullLayout._deactivateShape(p);return}if(!u){var Ae=g.clickmode;cc.done(de).then(function(){if(cc.clear(de),De===2){for(ve.remove(),j=0;j-1&&jL(Te,p,a.xaxes,a.yaxes,a.subplot,a,ve),Ae==="event"&&mc(p,void 0);Poe.click(p,Te,M.id)}).catch(kd.error)}},a.doneFn=function(){Se.remove(),cc.done(de).then(function(){cc.clear(de),!y&&G&&a.selectionDefs&&(G.subtract=O,a.selectionDefs.push(G),a.mergedPolygons.length=0,[].push.apply(a.mergedPolygons,Z)),(y||u)&&hc(a,y),a.doneFnCompleted&&a.doneFnCompleted(Ce),f&&mc(p,pe)}).catch(kd.error)}}function jL(e,r,t,a,n,i,l){var o=r._hoverdata,s=r._fullLayout,u=s.clickmode,f=u.indexOf("event")>-1,c=[],d,h,p,g,y,x,w,M,b,T;if(joe(o)){QL(e,r,i),d=Sd(r,t,a,n);var S=Qoe(o,d),C=S.pointNumbers.length>0;if(C?ese(d,S):rse(d)&&(w=XL(S))){for(l&&l.remove(),T=0;T=0}function Koe(e){return e._fullLayout._activeSelectionIndex>=0}function hc(e,r){var t=e.dragmode,a=e.plotinfo,n=e.gd;$oe(n)&&n._fullLayout._deactivateShape(n),Koe(n)&&n._fullLayout._deactivateSelection(n);var i=n._fullLayout,l=i._zoomlayer,o=dc(t),s=X5(t);if(o||s){var u=l.selectAll(".select-outline-"+a.id);if(u&&n._fullLayout._outlining){var f;o&&(f=Ioe(u,e)),f&&vc.call("_guiRelayout",n,{shapes:f});var c;s&&!J5(e)&&(c=Boe(u,e)),c&&(n._fullLayout._noEmitSelectedAtStart=!0,vc.call("_guiRelayout",n,{selections:c}).then(function(){r&&Hoe(n)})),n._fullLayout._outlining=!1}}a.selection={},a.selection.selectionDefs=e.selectionDefs=[],a.selection.mergedPolygons=e.mergedPolygons=[]}function VL(e){return e._id}function Sd(e,r,t,a){if(!e.calcdata)return[];var n=[],i=r.map(VL),l=t.map(VL),o,s,u;for(u=0;u0,i=n?a[0]:t;return r.selectedpoints?r.selectedpoints.indexOf(i)>-1:!1}function ese(e,r){var t=[],a,n,i,l;for(l=0;l0&&t.push(a);if(t.length===1&&(i=t[0]===r.searchInfo,i&&(n=r.searchInfo.cd[0].trace,n.selectedpoints.length===r.pointNumbers.length))){for(l=0;l1||(r+=a.selectedpoints.length,r>1)))return!1;return r===1}function pc(e,r,t){var a,n;for(a=0;a-1&&r;if(!l&&r){var De=WL(e,!0);if(De.length){var Te=De[0].xref,Ae=De[0].yref;if(Te&&Ae){var ke=iq(De),Re=lq([ii(e,Te,"x"),ii(e,Ae,"y")]);Re(Ce,ke)}}e._fullLayout._noEmitSelectedAtStart?e._fullLayout._noEmitSelectedAtStart=!1:_e&&mc(e,Ce),d._reselect=!1}if(!l&&d._deselect){var Me=d._deselect;o=Me.xref,s=Me.yref,nse(o,s,f)||nq(e,o,s,a),_e&&(Ce.points.length?mc(e,Ce):j5(e)),d._deselect=!1}return{eventData:Ce,selectionTesters:t}}function ase(e){var r=e.calcdata;if(r)for(var t=0;t{"use strict";uq.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}]});var yc={};Nt(yc,{axisRefDescription:()=>use});function use(e,r,t){return[`If set to a ${e} axis id (e.g. *${e}* or *${e}2*),`,`the \`${e}\` position refers to a ${e} coordinate.`,`If set to *paper*, the \`${e}\` position refers to the distance from the`,`${r} of the plotting area in normalized coordinates where *0* (*1*) corresponds`,`to the ${r} (${t}). If set to a ${e} 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 ${r} of the domain of that`,`axis: e.g., *${e}2 domain* refers to the domain of the second ${e}`,`axis and a ${e} position of 0.5 refers to the point between the ${r}`,`and the ${t} of the domain of the second ${e} axis.`].join(" ")}var bc=Ft(()=>{"use strict"});var lu=J((_be,vq)=>{"use strict";var fq=Q5(),cq=Ia(),Dd=(_a(),Xe(xa)),fse=yt().templatedArray,xbe=(bc(),Xe(yc));vq.exports=fse("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:cq({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:fq.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:fq.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",Dd.idRegex.x.toString()],editType:"calc"},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",Dd.idRegex.y.toString()],editType:"calc"},xref:{valType:"enumerated",values:["paper",Dd.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",Dd.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:cq({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc"})});var Ld={};Nt(Ld,{PTS_LINESONLY:()=>cse,eventDataKeys:()=>pse,maxScreensAway:()=>hse,minTolerance:()=>vse,toleranceGrowth:()=>dse});var cse,vse,dse,hse,pse,qd=Ft(()=>{"use strict";cse=20,vse=.2,dse=10,hse=20,pse=[]});var hq=J((wbe,dq)=>{"use strict";dq.exports=function(r){return{valType:"color",editType:"style",anim:!0}}});var Ls=J((Mbe,wq)=>{"use strict";var pq=Q2().axisHoverFormat,{hovertemplateAttrs:mse,texttemplateAttrs:gse,templatefallbackAttrs:mq}=rs(),gq=qf(),yse=Ia(),yq=ji().dash,bse=ji().pattern,xse=ot(),_se=(qd(),Xe(Ld)),xc=va().extendFlat,wse=hq();function bq(e){return{valType:"any",dflt:0,editType:"calc"}}function xq(e){return{valType:"any",editType:"calc"}}function _q(e){return{valType:"enumerated",values:["start","middle","end"],dflt:"middle",editType:"calc"}}wq.exports={x:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0},x0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",anim:!0},dx:{valType:"number",dflt:1,editType:"calc",anim:!0},y:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0},y0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",anim:!0},dy:{valType:"number",dflt:1,editType:"calc",anim:!0},xperiod:bq("x"),yperiod:bq("y"),xperiod0:xq("x0"),yperiod0:xq("y0"),xperiodalignment:_q("x"),yperiodalignment:_q("y"),xhoverformat:pq("x"),yhoverformat:pq("y"),offsetgroup:{valType:"string",dflt:"",editType:"calc"},alignmentgroup:{valType:"string",dflt:"",editType:"calc"},stackgroup:{valType:"string",dflt:"",editType:"calc"},orientation:{valType:"enumerated",values:["v","h"],editType:"calc"},groupnorm:{valType:"enumerated",values:["","fraction","percent"],dflt:"",editType:"calc"},stackgaps:{valType:"enumerated",values:["infer zero","interpolate"],dflt:"infer zero",editType:"calc"},text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},texttemplate:gse(),texttemplatefallback:mq({editType:"calc"}),hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"style"},mode:{valType:"flaglist",flags:["lines","markers","text"],extras:["none"],editType:"calc"},hoveron:{valType:"flaglist",flags:["points","fills"],editType:"style"},hovertemplate:mse({},{keys:_se.eventDataKeys}),hovertemplatefallback:mq(),line:{color:{valType:"color",editType:"style",anim:!0},width:{valType:"number",min:0,dflt:2,editType:"style",anim:!0},shape:{valType:"enumerated",values:["linear","spline","hv","vh","hvh","vhv"],dflt:"linear",editType:"plot"},smoothing:{valType:"number",min:0,max:1.3,dflt:1,editType:"plot"},dash:xc({},yq,{editType:"style"}),backoff:{valType:"number",min:0,dflt:"auto",arrayOk:!0,editType:"plot"},simplify:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},connectgaps:{valType:"boolean",dflt:!1,editType:"calc"},cliponaxis:{valType:"boolean",dflt:!0,editType:"plot"},fill:{valType:"enumerated",values:["none","tozeroy","tozerox","tonexty","tonextx","toself","tonext"],editType:"calc"},fillcolor:wse(!0),fillgradient:xc({type:{valType:"enumerated",values:["radial","horizontal","vertical","none"],dflt:"none",editType:"calc"},start:{valType:"number",editType:"calc"},stop:{valType:"number",editType:"calc"},colorscale:{valType:"colorscale",editType:"style"},editType:"calc"}),fillpattern:bse,marker:xc({symbol:{valType:"enumerated",values:xse.symbolList,dflt:"circle",arrayOk:!0,editType:"style"},opacity:{valType:"number",min:0,max:1,arrayOk:!0,editType:"style",anim:!0},angle:{valType:"angle",dflt:0,arrayOk:!0,editType:"plot",anim:!1},angleref:{valType:"enumerated",values:["previous","up"],dflt:"up",editType:"plot",anim:!1},standoff:{valType:"number",min:0,dflt:0,arrayOk:!0,editType:"plot",anim:!0},size:{valType:"number",min:0,dflt:6,arrayOk:!0,editType:"calc",anim:!0},maxdisplayed:{valType:"number",min:0,dflt:0,editType:"plot"},sizeref:{valType:"number",dflt:1,editType:"calc"},sizemin:{valType:"number",min:0,dflt:0,editType:"calc"},sizemode:{valType:"enumerated",values:["diameter","area"],dflt:"diameter",editType:"calc"},line:xc({width:{valType:"number",min:0,arrayOk:!0,editType:"style",anim:!0},dash:xc({},yq,{arrayOk:!0}),editType:"calc"},gq("marker.line",{anim:!0})),gradient:{type:{valType:"enumerated",values:["radial","horizontal","vertical","none"],arrayOk:!0,dflt:"none",editType:"calc"},color:{valType:"color",arrayOk:!0,editType:"calc"},editType:"calc"},editType:"calc"},gq("marker",{anim:!0})),selected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style"},color:{valType:"color",editType:"style"},size:{valType:"number",min:0,editType:"style"},editType:"style"},textfont:{color:{valType:"color",editType:"style"},editType:"style"},editType:"style"},unselected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style"},color:{valType:"color",editType:"style"},size:{valType:"number",min:0,editType:"style"},editType:"style"},textfont:{color:{valType:"color",editType:"style"},editType:"style"},editType:"style"},textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right"],dflt:"middle center",arrayOk:!0,editType:"calc"},textfont:yse({editType:"calc",colorEditType:"style",arrayOk:!0}),zorder:{valType:"integer",dflt:0,editType:"plot"}}});var eb=J((Abe,Aq)=>{"use strict";var Mq=lu(),Tq=Ls().line,Mse=ji().dash,Ed=va().extendFlat,Tse=Ki().overrideAll,Ase=yt().templatedArray,Tbe=(bc(),Xe(yc));Aq.exports=Tse(Ase("selection",{type:{valType:"enumerated",values:["rect","path"]},xref:Ed({},Mq.xref,{}),yref:Ed({},Mq.yref,{}),x0:{valType:"any"},x1:{valType:"any"},y0:{valType:"any"},y1:{valType:"any"},path:{valType:"string",editType:"arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:.7,editType:"arraydraw"},line:{color:Tq.color,width:Ed({},Tq.width,{min:1,dflt:1}),dash:Ed({},Mse,{dflt:"dot"})}}),"arraydraw","from-root")});var Dq=J((kbe,Sq)=>{"use strict";var kq=Fe(),Pd=Mt(),kse=Ci(),Cse=eb(),Cq=yo();Sq.exports=function(r,t){kse(r,t,{name:"selections",handleItemDefaults:Sse});for(var a=t.selections,n=0;n{"use strict";Lq.exports=function(r,t,a){a("newselection.mode");var n=a("newselection.line.width");n&&(a("newselection.line.color"),a("newselection.line.dash")),a("activeselection.fillcolor"),a("activeselection.opacity")}});var _c=J((Sbe,Rq)=>{"use strict";var Dse=kr(),Eq=Fe(),Pq=ha();Rq.exports=function(r){return function(a,n){var i=a[r];if(Array.isArray(i))for(var l=Dse.subplotsRegistry.cartesian,o=l.idRegex,s=n._subplots,u=s.xaxis,f=s.yaxis,c=s.cartesian,d=n._has("cartesian"),h=0;h{"use strict";var zq=B5(),wc=sq();Fq.exports={moduleType:"component",name:"selections",layoutAttributes:eb(),supplyLayoutDefaults:Dq(),supplyDrawNewSelectionDefaults:qq(),includeBasePlot:_c()("selections"),draw:zq.draw,drawOne:zq.drawOne,reselect:wc.reselect,prepSelect:wc.prepSelect,clearOutline:wc.clearOutline,clearSelectionsCache:wc.clearSelectionsCache,selectOnClick:wc.selectOnClick}});var tE=J((Lbe,rE)=>{"use strict";var lb=Or(),li=Fe(),Nq=li.numberFormat,Lse=F3(),Rd=kr(),Vq=li.strTranslate,qse=La(),tb=Nr(),xo=ot(),Ese=qi(),Iq=Mt(),Pse=vo(),Rse=Li(),Xq=Q0(),zd=Xq.selectingOrDrawing,zse=Xq.freeMode,Fse=(Ja(),Xe(Za)).FROM_TL,Nse=K1(),Ise=xd().redrawReglTraces,Bse=na(),ab=ha().getFromId,Hse=ou().prepSelect,Ose=ou().clearOutline,Yse=ou().selectOnClick,rb=q5(),ob=(_a(),Xe(xa)),Bq=ob.MINDRAG,mn=ob.MINZOOM,Hq=!0;function Use(e,r,t,a,n,i,l,o){var s=e._fullLayout._zoomlayer,u=l+o==="nsew",f=(l+o).length===1,c,d,h,p,g,y,x,w,M,b,T,S,C,L,q,P,z,N,H,B,I,V,O;t+=r.yaxis._shift;function U(){if(c=r.xaxis,d=r.yaxis,M=c._length,b=d._length,x=c._offset,w=d._offset,h={},h[c._id]=c,p={},p[d._id]=d,l&&o)for(var ne=r.overlays,me=0;me=0){ze._fullLayout._deactivateShape(ze);return}var Ve=ze._fullLayout.clickmode;if(ib(ze),ne===2&&!f&&tr(),u)Ve.indexOf("select")>-1&&Yse(me,ze,g,y,r.id,G),Ve.indexOf("event")>-1&&Ese.click(ze,me,r.id);else if(ne===1&&f){var Ne=l?d:c,Ze=l==="s"||o==="w"?0:1,Ke=Ne._name+".range["+Ze+"]",_r=Gse(Ne,Ze),xr="left",qe="middle";if(Ne.fixedrange)return;l?(qe=l==="n"?"top":"bottom",Ne.side==="right"&&(xr="right")):o==="e"&&(xr="right"),ze._context.showAxisRangeEntryBoxes&&lb.select(Z).call(qse.makeEditable,{gd:ze,immediate:!0,background:ze._fullLayout.paper_bgcolor,text:String(_r),fill:Ne.tickfont?Ne.tickfont.color:"#444",horizontalAlign:xr,verticalAlign:qe}).on("edit",function(Je){var Ee=Ne.d2r(Je);Ee!==void 0&&Rd.call("_guiRelayout",ze,Ke,Ee)})}}Rse.init(G);var pe,ve,Q,we,le,Se,ce,de,Ce,Ie;function _e(ne,me,ze){var Ve=Z.getBoundingClientRect();pe=me-Ve.left,ve=ze-Ve.top,e._fullLayout._calcInverseTransform(e);var Ne=li.apply3DTransform(e._fullLayout._invTransform)(pe,ve);pe=Ne[0],ve=Ne[1],Q={l:pe,r:pe,w:0,t:ve,b:ve,h:0},we=e._hmpixcount?e._hmlumcount/e._hmpixcount:tb.luminosity(e._fullLayout.plot_bgcolor),le="M0,0H"+M+"V"+b+"H0V0",Se=!1,ce="xy",Ie=!1,de=Jq(s,we,x,w,le),Ce=$q(s,x,w)}function De(ne,me){if(e._transitioningWithDuration)return!1;var ze=Math.max(0,Math.min(M,V*ne+pe)),Ve=Math.max(0,Math.min(b,O*me+ve)),Ne=Math.abs(ze-pe),Ze=Math.abs(Ve-ve);Q.l=Math.min(pe,ze),Q.r=Math.max(pe,ze),Q.t=Math.min(ve,Ve),Q.b=Math.max(ve,Ve);function Ke(){ce="",Q.r=Q.l,Q.t=Q.b,Ce.attr("d","M0,0Z")}if(T.isSubplotConstrained)Ne>mn||Ze>mn?(ce="xy",Ne/M>Ze/b?(Ze=Ne*b/M,ve>Ve?Q.t=ve-Ze:Q.b=ve+Ze):(Ne=Ze*M/b,pe>ze?Q.l=pe-Ne:Q.r=pe+Ne),Ce.attr("d",Fd(Q))):Ke();else if(S.isSubplotConstrained)if(Ne>mn||Ze>mn){ce="xy";var _r=Math.min(Q.l/M,(b-Q.b)/b),xr=Math.max(Q.r/M,(b-Q.t)/b);Q.l=_r*M,Q.r=xr*M,Q.b=(1-_r)*b,Q.t=(1-xr)*b,Ce.attr("d",Fd(Q))}else Ke();else!L||Ze0){var Je;if(S.isSubplotConstrained||!C&&L.length===1){for(Je=0;Je1&&(Ke.maxallowed!==void 0&&P===(Ke.range[0]1&&(_r.maxallowed!==void 0&&z===(_r.range[0]<_r.range[1]?"n":"s")||_r.minallowed!==void 0&&z===(_r.range[0]<_r.range[1]?"s":"n"))&&(pr=1,he=0),!(!hr&&!pr)){hr||(hr=1),pr||(pr=1);var Pe=Ke._offset-te/hr,He=_r._offset-he/pr;Ze.clipRect.call(xo.setTranslate,te,he).call(xo.setScale,hr,pr),Ze.plot.call(xo.setTranslate,Pe,He).call(xo.setScale,1/hr,1/pr),(hr!==Ze.xScaleFactor||pr!==Ze.yScaleFactor)&&(xo.setPointGroupScale(Ze.zoomScalePts,hr,pr),xo.setTextPointsScale(Ze.zoomScaleTxt,hr,pr)),xo.hideOutsideRangePoints(Ze.clipOnAxisFalseTraces,Ze),Ze.xScaleFactor=hr,Ze.yScaleFactor=pr}}}}function Ge(ne,me,ze){return ne.fixedrange?0:P&&T.xaHash[ne._id]?me:z&&(T.isSubplotConstrained?T.xaHash:T.yaHash)[ne._id]?ze:0}function cr(ne,me){return me?(ne.range=ne._r.slice(),rb(ne,me),mr(ne,me)):0}function mr(ne,me,ze){return ne._length*(1-me)*Fse[ze||ne.constraintoward||"middle"]}return Z}function Wq(e,r,t,a){var n=li.ensureSingle(e.draglayer,r,t,function(i){i.classed("drag",!0).style({fill:"transparent","stroke-width":0}).attr("data-subplot",e.id)});return n.call(Pse,a),n.node()}function Zq(e,r,t,a,n,i,l){var o=Wq(e,"rect",r,t);return lb.select(o).call(xo.setRect,a,n,i,l),o}function Oq(e,r){for(var t=0;t=0?Math.min(e,.9):1/(1/Math.max(e,-.3)+3.222))}function Xse(e,r,t){return e?e==="nsew"?t?"":r==="pan"?"move":"crosshair":e.toLowerCase()+"-resize":"pointer"}function Jq(e,r,t,a,n){return e.append("path").attr("class","zoombox").style({fill:r>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("transform",Vq(t,a)).attr("d",n+"Z")}function $q(e,r,t){return e.append("path").attr("class","zoombox-corners").style({fill:tb.background,stroke:tb.defaultLine,"stroke-width":1,opacity:0}).attr("transform",Vq(r,t)).attr("d","M0,0Z")}function Kq(e,r,t,a,n,i){e.attr("d",a+"M"+t.l+","+t.t+"v"+t.h+"h"+t.w+"v-"+t.h+"h-"+t.w+"Z"),jq(e,r,n,i)}function jq(e,r,t,a){t||(e.transition().style("fill",a>.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),r.transition().style("opacity",1).duration(200))}function ib(e){lb.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function Qq(e){Hq&&e.data&&e._context.showTips&&(li.notifier(li._(e,"Double-click to zoom back out"),"long",e),Hq=!1)}function Wse(e,r){return"M"+(e.l-.5)+","+(r-mn-.5)+"h-3v"+(2*mn+1)+"h3ZM"+(e.r+.5)+","+(r-mn-.5)+"h3v"+(2*mn+1)+"h-3Z"}function Zse(e,r){return"M"+(r-mn-.5)+","+(e.t-.5)+"v-3h"+(2*mn+1)+"v3ZM"+(r-mn-.5)+","+(e.b+.5)+"v3h"+(2*mn+1)+"v-3Z"}function Fd(e){var r=Math.floor(Math.min(e.b-e.t,e.r-e.l,mn)/2);return"M"+(e.l-3.5)+","+(e.t-.5+r)+"h3v"+-r+"h"+r+"v-3h-"+(r+3)+"ZM"+(e.r+3.5)+","+(e.t-.5+r)+"h-3v"+-r+"h"+-r+"v-3h"+(r+3)+"ZM"+(e.r+3.5)+","+(e.b+.5-r)+"h-3v"+r+"h"+-r+"v3h"+(r+3)+"ZM"+(e.l-3.5)+","+(e.b+.5-r)+"h3v"+r+"h"+r+"v3h-"+(r+3)+"Z"}function Uq(e,r,t,a,n){for(var i=!1,l={},o={},s,u,f,c,d=(n||{}).xaHash,h=(n||{}).yaHash,p=0;p{"use strict";var Jse=Or(),Nd=qi(),$se=Li(),Kse=vo(),Pi=tE().makeDragBox,Ta=(_a(),Xe(xa)).DRAGGERSIZE;Id.initInteractions=function(r){var t=r._fullLayout;if(r._context.staticPlot){Jse.select(r).selectAll(".drag").remove();return}if(!(!t._has("cartesian")&&!t._has("splom"))){var a=Object.keys(t._plots||{}).sort(function(i,l){if((t._plots[i].mainplot&&!0)===(t._plots[l].mainplot&&!0)){var o=i.split("y"),s=l.split("y");return o[0]===s[0]?Number(o[1]||1)-Number(s[1]||1):Number(o[0]||1)-Number(s[0]||1)}return t._plots[i].mainplot?1:-1});a.forEach(function(i){var l=t._plots[i],o=l.xaxis,s=l.yaxis;if(!l.mainplot){var u=Pi(r,l,o._offset,s._offset,o._length,s._length,"ns","ew");u.onmousemove=function(d){r._fullLayout._rehover=function(){r._fullLayout._hoversubplot===i&&r._fullLayout._plots[i]&&Nd.hover(r,d,i)},Nd.hover(r,d,i),r._fullLayout._lasthover=u,r._fullLayout._hoversubplot=i},u.onmouseout=function(d){r._dragging||(r._fullLayout._hoversubplot=null,$se.unhover(r,d))},r._context.showAxisDragHandles&&(Pi(r,l,o._offset-Ta,s._offset-Ta,Ta,Ta,"n","w"),Pi(r,l,o._offset+o._length,s._offset-Ta,Ta,Ta,"n","e"),Pi(r,l,o._offset-Ta,s._offset+s._length,Ta,Ta,"s","w"),Pi(r,l,o._offset+o._length,s._offset+s._length,Ta,Ta,"s","e"))}if(r._context.showAxisDragHandles){if(i===o._mainSubplot){var f=o._mainLinePosition;o.side==="top"&&(f-=Ta),Pi(r,l,o._offset+o._length*.1,f,o._length*.8,Ta,"","ew"),Pi(r,l,o._offset,f,o._length*.1,Ta,"","w"),Pi(r,l,o._offset+o._length*.9,f,o._length*.1,Ta,"","e")}if(i===s._mainSubplot){var c=s._mainLinePosition;s.side!=="right"&&(c-=Ta),Pi(r,l,c,s._offset+s._length*.1,Ta,s._length*.8,"ns",""),Pi(r,l,c,s._offset+s._length*.9,Ta,s._length*.1,"s",""),Pi(r,l,c,s._offset,Ta,s._length*.1,"n","")}}});var n=t._hoverlayer.node();n.onmousemove=function(i){i.target=r._fullLayout._lasthover,Nd.hover(r,i,t._hoversubplot)},n.onclick=function(i){i.target=r._fullLayout._lasthover,Nd.click(r,i)},n.onmousedown=function(i){r._fullLayout._lasthover.onmousedown(i)},Id.updateFx(r)}};Id.updateFx=function(e){var r=e._fullLayout,t=r.dragmode==="pan"?"move":"crosshair";Kse(r._draggers,t)}});var iE=J((Ebe,nE)=>{"use strict";var aE=kr();nE.exports=function(r){for(var t=aE.layoutArrayContainers,a=aE.layoutArrayRegexes,n=r.split("[")[0],i,l,o=0;o{"use strict";var jse=Uo(),ub=x2(),Mc=Wl(),Qse=Wg().sorterAsc,fb=kr();Tc.containerArrayMatch=iE();var e0e=Tc.isAddVal=function(r){return r==="add"||jse(r)},lE=Tc.isRemoveVal=function(r){return r===null||r==="remove"};Tc.applyContainerArrayChanges=function(r,t,a,n,i){var l=t.astr,o=fb.getComponentMethod(l,"supplyLayoutDefaults"),s=fb.getComponentMethod(l,"draw"),u=fb.getComponentMethod(l,"drawOne"),f=n.replot||n.recalc||o===ub||s===ub,c=r.layout,d=r._fullLayout;if(a[""]){Object.keys(a).length>1&&Mc.warn("Full array edits are incompatible with other edits",l);var h=a[""][""];if(lE(h))t.set(null);else if(Array.isArray(h))t.set(h);else return Mc.warn("Unrecognized full array edit value",l,h),!0;return f?!1:(o(c,d),s(r),!0)}var p=Object.keys(a).map(Number).sort(Qse),g=t.get(),y=g||[],x=i(d,l).get(),w=[],M=-1,b=y.length,T,S,C,L,q,P,z,N;for(T=0;Ty.length-(z?0:1)){Mc.warn("index out of range",l,C);continue}if(P!==void 0)q.length>1&&Mc.warn("Insertion & removal are incompatible with edits to the same index.",l,C),lE(P)?w.push(C):z?(P==="add"&&(P={}),y.splice(C,0,P),x&&x.splice(C,0,{})):Mc.warn("Unrecognized full object edit value",l,C,P),M===-1&&(M=C);else for(S=0;S=0;T--)y.splice(w[T],1),x&&x.splice(w[T],1);if(y.length?g||t.set(y):t.set(null),f)return!1;if(o(c,d),u!==ub){var H;if(M===-1)H=p;else{for(b=Math.max(y.length,b),H=[],T=0;T=M));T++)H.push(C);for(T=M;T{"use strict";var cE=Zr(),vE=kr(),vn=Fe(),Ac=na(),dE=ha(),kc=dE.cleanId,r0e=dE.getFromTrace,cb=vE.traceIs,t0e=["x","y","z"];oi.clearPromiseQueue=function(e){Array.isArray(e._promises)&&e._promises.length>0&&vn.log("Clearing previous rejected promises from queue."),e._promises=[]};oi.cleanLayout=function(e){var r,t;e||(e={}),e.xaxis1&&(e.xaxis||(e.xaxis=e.xaxis1),delete e.xaxis1),e.yaxis1&&(e.yaxis||(e.yaxis=e.yaxis1),delete e.yaxis1),e.scene1&&(e.scene||(e.scene=e.scene1),delete e.scene1);var a=(Ac.subplotsRegistry.cartesian||{}).attrRegex,n=(Ac.subplotsRegistry.polar||{}).attrRegex,i=(Ac.subplotsRegistry.ternary||{}).attrRegex,l=(Ac.subplotsRegistry.gl3d||{}).attrRegex,o=Object.keys(e);for(r=0;r3?(y.x=1.02,y.xanchor="left"):y.x<-2&&(y.x=-.02,y.xanchor="right"),y.y>3?(y.y=1.02,y.yanchor="bottom"):y.y<-2&&(y.y=-.02,y.yanchor="top")),e.dragmode==="rotate"&&(e.dragmode="orbit"),e.template&&e.template.layout&&oi.cleanLayout(e.template.layout),e};function su(e,r,t=!1){var a=e[r],n=r.charAt(0);t&&Array.isArray(a)||a&&a!=="paper"&&(e[r]=kc(a,n,!0))}oi.cleanData=function(e){for(var r=0;r0)return e.slice(0,r)}oi.hasParent=function(e,r){for(var t=fE(r);t;){if(t in e)return!0;t=fE(t)}return!1};oi.clearAxisTypes=function(e,r,t){for(var a=0;a{let t=(...a)=>a.every(n=>vn.isPlainObject(n))||a.every(n=>Array.isArray(n));if([e,r].every(a=>Array.isArray(a))){if(e.length!==r.length)return!1;for(let a=0;avn.isPlainObject(a))){if(Object.keys(e).length!==Object.keys(r).length)return!1;for(let a in e){if(a.startsWith("_"))continue;let n=e[a],i=r[a];if(n!==i&&!(t(n,i)?vb(n,i):!1))return!1}return!0}return!1};oi.collectionsAreEqual=vb});var gb=J(Jr=>{"use strict";var Ud=Or(),i0e=Zr(),l0e=sy(),nr=Fe(),pt=nr.nestedProperty,hb=kf(),gn=nT(),si=kr(),$d=z0(),Sr=na(),dn=Mt(),o0e=z3(),s0e=ki(),Od=ot(),u0e=Nr(),f0e=sb().initInteractions,c0e=(fs(),Xe(us)),v0e=ou().clearOutline,bE=Xl().dfltConfig,Hd=oE(),ra=hE(),st=xd(),_o=Ki(),d0e=(_a(),Xe(xa)).AX_NAME_PATTERN,db=0,pE=5;function h0e(e,r,t,a){var n;if(e=nr.getGraphDiv(e),hb.init(e),nr.isPlainObject(r)){var i=r;r=i.data,t=i.layout,a=i.config,n=i.frames}var l=hb.triggerHandler(e,"plotly_beforeplot",[r,t,a]);if(l===!1)return Promise.reject();!r&&!t&&!nr.isPlotDiv(e)&&nr.warn("Calling _doPlot as if redrawing but this container doesn't yet have a plot.",e);function o(){if(n)return Jr.addFrames(e,n)}_E(e,a),t||(t={}),Ud.select(e).classed("js-plotly-plot",!0),Od.makeTester(),Array.isArray(e._promises)||(e._promises=[]);var s=(e.data||[]).length===0&&Array.isArray(r);Array.isArray(r)&&(ra.cleanData(r),s?e.data=r:e.data.push.apply(e.data,r),e.empty=!1),(!e.layout||s)&&(e.layout=ra.cleanLayout(t)),Sr.supplyDefaults(e);var u=e._fullLayout,f=u._has("cartesian");u._replotting=!0,(s||u._shouldCreateBgLayer)&&(I0e(e),u._shouldCreateBgLayer&&delete u._shouldCreateBgLayer),Od.initGradients(e),Od.initPatterns(e),s&&dn.saveShowSpikeInitial(e);var c=!e.calcdata||e.calcdata.length!==(e._fullData||[]).length;c&&Sr.doCalcdata(e);for(var d=0;d{nr.isHidden(e)||Sr.resize(e)};if(e._context.fillFrame||typeof ResizeObserver=="undefined")window.addEventListener("resize",L),e._clearResponsive=()=>window.removeEventListener("resize",L);else{let q=e.offsetWidth,P=e.offsetHeight,z=new ResizeObserver(()=>{let N=e.offsetWidth,H=e.offsetHeight,B=Math.abs(N-q)>1||Math.abs(H-P)>1;q=N,P=H,B&&N&&H&&L()});z.observe(e),e._clearResponsive=()=>z.disconnect()}}}else nr.clearResponsive(e);let h=document.fonts?[...document.fonts].filter(L=>L.status!=="loaded"):[];var p=nr.extendFlat({},u._size),g=0;function y(){for(var L=u._basePlotModules,q=0;q["loaded","loading"].includes(n.status));if(!t.length)return;let a={};e._fontLoadToken=a,yield Promise.all(t.map(n=>n.loaded.catch(()=>{}))),e._fontLoadToken===a&&(delete e._fontLoadToken,Od.savedBBoxes={},Jr._doPlot(e))})}function Sc(e){var r=e._fullLayout;r._redrawFromAutoMarginCount?r._redrawFromAutoMarginCount--:e.emit("plotly_afterplot")}function m0e(e){return nr.extendFlat(bE,e)}function xE(e,r){try{e._fullLayout._paper.style("background",r)}catch(t){nr.error(t)}}function g0e(e,r){var t=u0e.combine(r,"white");xE(e,t)}function _E(e,r){if(!e._context){e._context=nr.extendDeep({},bE);var t=Ud.select("base");e._context._baseUrl=t.size()&&t.attr("href")?window.location.href.split("#")[0]:""}var a=e._context,n,i,l;if(r){for(i=Object.keys(r),n=0;n=e.data.length||n<-e.data.length)throw new Error(t+" must be valid indices for gd.data.");if(r.indexOf(n,a+1)>-1||n>=0&&r.indexOf(-e.data.length+n)>-1||n<0&&r.indexOf(e.data.length+n)>-1)throw new Error("each index in "+t+" must be unique.")}}function wE(e,r,t){if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(typeof r=="undefined")throw new Error("currentIndices is a required argument.");if(Array.isArray(r)||(r=[r]),Vd(e,r,"currentIndices"),typeof t!="undefined"&&!Array.isArray(t)&&(t=[t]),typeof t!="undefined"&&Vd(e,t,"newIndices"),typeof t!="undefined"&&r.length!==t.length)throw new Error("current and new indices must be of equal length.")}function x0e(e,r,t){var a,n;if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(typeof r=="undefined")throw new Error("traces must be defined.");for(Array.isArray(r)||(r=[r]),a=0;a=0&&f=0&&f0&&typeof L.parts[z]!="string";)z--;var N=L.parts[z],H=L.parts[z-1]+"."+N,B=L.parts.slice(0,z).join("."),I=pt(e.layout,B).get(),V=pt(a,B).get(),O=L.get();if(q!==void 0){x[C]=q,w[C]=N==="reverse"?q:El(O);var U=$d.getLayoutValObject(a,L.parts);if(U&&U.impliedEdits&&q!==null)for(var W in U.impliedEdits)M(nr.relativeAttr(C,W),U.impliedEdits[W]);if(["width","height"].indexOf(C)!==-1)if(q){M("autosize",null);var Z=C==="height"?"width":"height";M(Z,a[Z])}else a[C]=e._initialAutoSize[C];else if(C==="autosize")M("width",q?null:a.width),M("height",q?null:a.height);else if(H.match(qE))S(H),pt(a,B+"._inputRange").set(null);else if(H.match(EE)){S(H),pt(a,B+"._inputRange").set(null);var G=pt(a,B).get();G._inputDomain&&(G._input.domain=G._inputDomain.slice())}else H.match(T0e)&&pt(a,B+"._inputDomain").set(null);if(N==="type"){T=I;var j=V.type==="linear"&&q==="log",ie=V.type==="log"&&q==="linear";if(j||ie){if(!T||!T.range)M(B+".autorange",!0);else if(V.autorange)j&&(T.range=T.range[1]>T.range[0]?[1,2]:[2,1]);else{var pe=T.range[0],ve=T.range[1];j?(pe<=0&&ve<=0&&M(B+".autorange",!0),pe<=0?pe=ve/1e6:ve<=0&&(ve=pe/1e6),M(B+".range[0]",Math.log(pe)/Math.LN10),M(B+".range[1]",Math.log(ve)/Math.LN10)):(M(B+".range[0]",Math.pow(10,pe)),M(B+".range[1]",Math.pow(10,ve)))}Array.isArray(a._subplots.polar)&&a._subplots.polar.length&&a[L.parts[0]]&&L.parts[1]==="radialaxis"&&delete a[L.parts[0]]._subplot.viewInitial["radialaxis.range"],si.getComponentMethod("annotations","convertCoords")(e,V,q,M),si.getComponentMethod("images","convertCoords")(e,V,q,M)}else M(B+".autorange",!0),M(B+".range",null);pt(a,B+"._inputRange").set(null)}else if(N.match(d0e)){var Q=pt(a,C).get(),we=(q||{}).type;(!we||we==="-")&&(we="linear"),si.getComponentMethod("annotations","convertCoords")(e,Q,we,M),si.getComponentMethod("images","convertCoords")(e,Q,we,M)}var le=Hd.containerArrayMatch(C);if(le){f=le.array,c=le.index;var Se=le.property,ce=U||{editType:"calc"};c!==""&&Se===""&&(Hd.isAddVal(q)?w[C]=null:Hd.isRemoveVal(q)?w[C]=(pt(t,f).get()||[])[c]:nr.warn("unrecognized full object value",r)),_o.update(y,ce),u[f]||(u[f]={});var de=u[f][c];de||(de=u[f][c]={}),de[Se]=q,delete r[C]}else N==="reverse"?(I.range?I.range.reverse():(M(B+".autorange",!0),I.range=[1,0]),V.autorange?y.calc=!0:y.plot=!0):(C==="dragmode"&&(q===!1&&O!==!1||q!==!1&&O===!1)||a._has("scatter-like")&&a._has("regl")&&C==="dragmode"&&(q==="lasso"||q==="select")&&!(O==="lasso"||O==="select")?y.plot=!0:U?_o.update(y,U):y.calc=!0,L.set(q))}}for(f in u){var Ce=Hd.applyContainerArrayChanges(e,i(t,f),u[f],y,i);Ce||(y.plot=!0)}for(var Ie in b){T=dn.getFromId(e,Ie);var _e=T&&T._constraintGroup;if(_e){y.calc=!0;for(var De in _e)b[De]||(dn.getFromId(e,De)._constraintShrinkable=!0)}}(RE(e)||r.height||r.width)&&(y.plot=!0);var Te=a.shapes;for(c=0;c1;)if(a.pop(),t=pt(r,a.join(".")+".uirevision").get(),t!==void 0)return t;return r.uirevision}function C0e(e,r){for(var t=0;t[B,e._ev.listeners(B)]);i=Jr.newPlot(e,r,t,a).then(()=>{for(let[B,I]of H)I.forEach(V=>e.on(B,V));return Jr.react(e,r,t,a)})}else{e.data=r||[],ra.cleanData(e.data),e.layout=t||{},ra.cleanLayout(e.layout),D0e(e.data,e.layout,o,s),Sr.supplyDefaults(e,{skipUpdateCalc:!0});var c=e._fullData,d=e._fullLayout,h=d.datarevision===void 0,p=d.transition,g=E0e(e,s,d,h,p),y=g.newDataRevision,x=q0e(e,o,c,h,p,y);if(RE(e)&&(g.layoutReplot=!0),x.calc||g.calc){e.calcdata=void 0;for(var w=Object.getOwnPropertyNames(d),M=0;M(f||e.emit("plotly_react",{config:a,data:r,layout:t}),e))}function q0e(e,r,t,a,n,i){var l=r.length===t.length;if(!n&&!l)return{fullReplot:!0,calc:!0};var o=_o.traceFlags();o.arrays={},o.nChanges=0,o.nChangesAnim=0;var s,u;function f(h){var p=$d.getTraceValObject(u,h);return!u._module.animatable&&p.anim&&(p.anim=!1),p}var c={getValObject:f,flags:o,immutable:a,transition:n,newDataRevision:i,gd:e},d={};for(s=0;s=n.length?n[0]:n[u]:n}function o(u){return Array.isArray(i)?u>=i.length?i[0]:i[u]:i}function s(u,f){var c=0;return function(){if(u&&++c===f)return u()}}return new Promise(function(u,f){function c(){if(a._frameQueue.length!==0){for(;a._frameQueue.length;){var N=a._frameQueue.pop();N.onInterrupt&&N.onInterrupt()}e.emit("plotly_animationinterrupted",[])}}function d(N){if(N.length!==0){for(var H=0;Ha._timeToNext&&p()};N()}var y=0;function x(N){return Array.isArray(n)?y>=n.length?N.transitionOpts=n[y]:N.transitionOpts=n[0]:N.transitionOpts=n,y++,N}var w,M,b=[],T=r==null,S=Array.isArray(r),C=!T&&!S&&nr.isPlainObject(r);if(C)b.push({type:"object",data:x(nr.extendFlat({},r))});else if(T||["string","number"].indexOf(typeof r)!==-1)for(w=0;w0&&PP)&&z.push(M);b=z}}b.length>0?d(b):(e.emit("plotly_animated"),u())})}function R0e(e,r,t){if(e=nr.getGraphDiv(e),r==null)return Promise.resolve();if(!nr.isPlotDiv(e))throw new Error("This element is not a Plotly plot: "+e+". It's likely that you've failed to create a plot before adding frames. For more details, see https://plotly.com/javascript/animations/");var a,n,i,l,o=e._transitionData._frames,s=e._transitionData._frameHash;if(!Array.isArray(r))throw new Error("addFrames failure: frameList must be an Array of frame definitions"+r);var u=o.length+r.length*2,f=[],c={};for(a=r.length-1;a>=0;a--)if(nr.isPlainObject(r[a])){var d=r[a].name,h=(s[d]||c[d]||{}).name,p=r[a].name,g=s[h]||c[h];h&&p&&typeof p=="number"&&g&&dbL.index?-1:C.index=0;a--){if(n=f[a].frame,typeof n.name=="number"&&nr.warn("Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings"),!n.name)for(;s[n.name="frame "+e._transitionData._counter++];);if(s[n.name]){for(i=0;i=0;t--)a=r[t],i.push({type:"delete",index:a}),l.unshift({type:"insert",index:a,value:n[a]});var o=Sr.modifyFrames,s=Sr.modifyFrames,u=[e,l],f=[e,i];return gn&&gn.add(e,o,u,s,f),Sr.modifyFrames(e,i)}function F0e(e){e=nr.getGraphDiv(e);var r=e._fullLayout||{},t=e._fullData||[];return Sr.cleanPlot([],{},t,r),Sr.purge(e),hb.purge(e),r._container&&r._container.remove(),delete e._context,e}function N0e(e){var r=e._fullLayout,t=e.getBoundingClientRect();if(!nr.equalDomRects(t,r._lastBBox)){var a=r._invTransform=nr.inverseTransformMatrix(nr.getFullTransformMatrix(e));r._invScaleX=Math.sqrt(a[0][0]*a[0][0]+a[0][1]*a[0][1]+a[0][2]*a[0][2]),r._invScaleY=Math.sqrt(a[1][0]*a[1][0]+a[1][1]*a[1][1]+a[1][2]*a[1][2]),r._lastBBox=t}}function I0e(e){var r=Ud.select(e),t=e._fullLayout;if(t._calcInverseTransform=N0e,t._calcInverseTransform(e),t._container=r.selectAll(".plot-container").data([0]),t._container.enter().insert("div",":first-child").classed("plot-container",!0).classed("plotly",!0).style({width:"100%",height:"100%"}),t._paperdiv=t._container.selectAll(".svg-container").data([0]),t._paperdiv.enter().append("div").classed("user-select-none",!0).classed("svg-container",!0).style("position","relative"),t._glcontainer=t._paperdiv.selectAll(".gl-container").data([{}]),t._glcontainer.enter().append("div").classed("gl-container",!0),t._paperdiv.selectAll(".main-svg").remove(),t._paperdiv.select(".modebar-container").remove(),t._paper=t._paperdiv.insert("svg",":first-child").classed("main-svg",!0),t._toppaper=t._paperdiv.append("svg").classed("main-svg",!0),t._modebardiv=t._paperdiv.append("div"),delete t._modeBar,t._hoverpaper=t._paperdiv.append("svg").classed("main-svg",!0),!t._uid){var a={};Ud.selectAll("defs").each(function(){this.id&&(a[this.id.split("-")[1]]=1)}),t._uid=nr.randstr(a)}t._paperdiv.selectAll(".main-svg").attr(c0e.svgAttrs),t._defs=t._paper.append("defs").attr("id","defs-"+t._uid),t._clips=t._defs.append("g").classed("clips",!0),t._topdefs=t._toppaper.append("defs").attr("id","topdefs-"+t._uid),t._topclips=t._topdefs.append("g").classed("clips",!0),t._bgLayer=t._paper.append("g").classed("bglayer",!0),t._draggers=t._paper.append("g").classed("draglayer",!0);var n=t._paper.append("g").classed("layer-below",!0);t._imageLowerLayer=n.append("g").classed("imagelayer",!0),t._shapeLowerLayer=n.append("g").classed("shapelayer",!0),t._cartesianlayer=t._paper.append("g").classed("cartesianlayer",!0),t._polarlayer=t._paper.append("g").classed("polarlayer",!0),t._smithlayer=t._paper.append("g").classed("smithlayer",!0),t._ternarylayer=t._paper.append("g").classed("ternarylayer",!0),t._geolayer=t._paper.append("g").classed("geolayer",!0),t._funnelarealayer=t._paper.append("g").classed("funnelarealayer",!0),t._pielayer=t._paper.append("g").classed("pielayer",!0),t._iciclelayer=t._paper.append("g").classed("iciclelayer",!0),t._treemaplayer=t._paper.append("g").classed("treemaplayer",!0),t._sunburstlayer=t._paper.append("g").classed("sunburstlayer",!0),t._indicatorlayer=t._toppaper.append("g").classed("indicatorlayer",!0),t._glimages=t._paper.append("g").classed("glimages",!0);var i=t._toppaper.append("g").classed("layer-above",!0);t._imageUpperLayer=i.append("g").classed("imagelayer",!0),t._shapeUpperLayer=i.append("g").classed("shapelayer",!0),t._selectionLayer=t._toppaper.append("g").classed("selectionlayer",!0),t._infolayer=t._toppaper.append("g").classed("infolayer",!0),t._menulayer=t._toppaper.append("g").classed("menulayer",!0),t._zoomlayer=t._toppaper.append("g").classed("zoomlayer",!0),t._hoverlayer=t._hoverpaper.append("g").classed("hoverlayer",!0),t._modebardiv.classed("modebar-container",!0).style("position","absolute").style("top","0px").style("right","0px"),e.emit("plotly_framework")}Jr.animate=P0e;Jr.addFrames=R0e;Jr.deleteFrames=z0e;Jr.addTraces=CE;Jr.deleteTraces=SE;Jr.extendTraces=AE;Jr.moveTraces=pb;Jr.prependTraces=kE;Jr.newPlot=b0e;Jr._doPlot=h0e;Jr.purge=F0e;Jr.react=L0e;Jr.redraw=y0e;Jr.relayout=Cc;Jr.restyle=Xd;Jr.setPlotConfig=m0e;Jr.update=Zd;Jr._guiRelayout=mb(Cc);Jr._guiRestyle=mb(Xd);Jr._guiUpdate=mb(Zd);Jr._storeDirectGUIEdit=M0e});var qs=J(ui=>{"use strict";var B0e=kr();ui.getDelay=function(e){return e._has&&(e._has("gl3d")||e._has("map"))?500:0};ui.getRedrawFunc=function(e){return function(){B0e.getComponentMethod("colorbar","draw")(e)}};ui.encodeSVG=function(e){return"data:image/svg+xml,"+encodeURIComponent(e)};ui.encodeJSON=function(e){return"data:application/json,"+encodeURIComponent(e)};var zE=window.URL||window.webkitURL;ui.createObjectURL=function(e){return zE.createObjectURL(e)};ui.revokeObjectURL=function(e){return zE.revokeObjectURL(e)};ui.createBlob=function(e,r){if(r==="svg")return new window.Blob([e],{type:"image/svg+xml;charset=utf-8"});if(r==="full-json")return new window.Blob([e],{type:"application/json;charset=utf-8"});var t=H0e(window.atob(e));return new window.Blob([t],{type:"image/"+r})};ui.octetStream=function(e){document.location.href="data:application/octet-stream"+e};ui.getPlotTitle=function(e){var a,n,i,l;var r=e._fullLayout;if(r){var t=(a=r.title)==null?void 0:a.text;return t===((n=r._dfltTitle)==null?void 0:n.plot)?void 0:t}return(l=(i=e.layout)==null?void 0:i.title)==null?void 0:l.text};ui.getPlotSubtitle=function(e){var a,n,i,l,o,s;var r=e._fullLayout;if(r){var t=(n=(a=r.title)==null?void 0:a.subtitle)==null?void 0:n.text;return t===((i=r._dfltTitle)==null?void 0:i.subtitle)?void 0:t}return(s=(o=(l=e.layout)==null?void 0:l.title)==null?void 0:o.subtitle)==null?void 0:s.text};function H0e(e){for(var r=e.length,t=new ArrayBuffer(r),a=new Uint8Array(t),n=0;n{"use strict";var bb=Or(),Ibe=Fe(),O0e=ot(),Y0e=Nr(),Bbe=(fs(),Xe(us)),yb=/"/g,Es="TOBESTRIPPED",U0e=new RegExp(`("${Es})|(${Es}")|("${Es})|(${Es}")`,"g"),G0e=["&","&","&",""",""",""","'","'","'"],V0e=["<","<","<"],X0e=[">",">",">"];function W0e(e){let r=bb.select("body").append("div").style({display:"none"}).html(""),t=e.replace(/(&[^;]*;)/gi,a=>{let n=a.toLowerCase();return G0e.includes(n)?a:V0e.includes(n)?"<":X0e.includes(n)?">":a.includes("<")||a.includes(">")?"":r.html(a).text()});return r.remove(),t}function Z0e(e){return e.replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&")}FE.exports=function(r,t,a){var n=r._fullLayout,i=n._paper,l=n._toppaper,o=n.width,s=n.height,u;i.insert("rect",":first-child").call(O0e.setRect,0,0,o,s).call(Y0e.fill,n.paper_bgcolor);var f=n._basePlotModules||[];for(u=0;u{"use strict";var J0e=Fe(),$0e=O2().EventEmitter,Dc=qs();function K0e(e){var r=e.emitter||new $0e,t=new Promise(function(a,n){var i=window.Image,l=e.svg,o=e.format||"png",s=e.canvas,u=e.scale||1,f=e.width||300,c=e.height||150,d=u*f,h=u*c,p=s.getContext("2d",{willReadFrequently:!0}),g=new i,y,x;o==="svg"||J0e.isSafari()?x=Dc.encodeSVG(l):(y=Dc.createBlob(l,"svg"),x=Dc.createObjectURL(y)),s.width=d,s.height=h,g.onload=function(){var w;switch(y=null,Dc.revokeObjectURL(x),o!=="svg"&&p.drawImage(g,0,0,d,h),o){case"jpeg":w=s.toDataURL("image/jpeg");break;case"png":w=s.toDataURL("image/png");break;case"webp":w=s.toDataURL("image/webp");break;case"svg":w=x;break;default:var M="Image format is not jpeg, png, svg or webp.";if(n(new Error(M)),!e.promise)return r.emit("error",M)}a(w),e.promise||r.emit("success",w)},g.onerror=function(w){if(y=null,Dc.revokeObjectURL(x),n(w),!e.promise)return r.emit("error",w)},g.src=x});return e.promise?t:r}NE.exports=K0e});var _b=J((Ybe,HE)=>{"use strict";var IE=Zr(),BE=gb(),j0e=na(),dl=Fe(),Lc=qs(),Q0e=jd(),eue=Qd(),rue=Xu().version,xb=(Tg(),Xe(Mg)).default;function tue(e,r){r=r||{};var t,a,n,i;dl.isPlainObject(e)?(t=e.data||[],a=e.layout||{},n=e.config||{},i={}):(e=dl.getGraphDiv(e),t=dl.extendDeep([],e.data),a=dl.extendDeep({},e.layout),n=e._context,i=e._fullLayout||{});function l(S){return!(S in r)||dl.validate(r[S],xb[S])}if(!l("width")&&r.width!==null||!l("height")&&r.height!==null)throw new Error("Height and width should be pixel values.");if(!l("format"))throw new Error("Export format is not "+dl.join2(xb.format.values,", "," or ")+".");var o={};function s(S,C){return dl.coerce(r,o,xb,S,C)}var u=s("format"),f=s("width"),c=s("height"),d=s("scale"),h=s("setBackground"),p=s("imageDataOnly"),g=document.createElement("div");g.style.position="absolute",g.style.left="-5000px",document.body.appendChild(g);var y=dl.extendFlat({},a);f?y.width=f:r.width===null&&IE(i.width)&&(y.width=i.width),c?y.height=c:r.height===null&&IE(i.height)&&(y.height=i.height);var x=dl.extendFlat({},n,{_exportedPlot:!0,staticPlot:!0,setBackground:h}),w=Lc.getRedrawFunc(g);function M(){return new Promise(function(S){setTimeout(S,Lc.getDelay(g._fullLayout))})}function b(){return new Promise(function(S,C){var L=Q0e(g,u,d),q=g._fullLayout.width,P=g._fullLayout.height;function z(){BE.purge(g),document.body.removeChild(g)}if(u==="full-json"){var N=j0e.graphJson(g,!1,"object",!0,!0);return N.version=rue,N=JSON.stringify(N),z(),S(p?N:Lc.encodeJSON(N))}if(z(),u==="svg")return S(p?L:Lc.encodeSVG(L));var H=document.createElement("canvas");H.id=dl.randstr(),eue({format:u,width:q,height:P,scale:d,canvas:H,svg:L,promise:!0}).then(S).catch(C)})}function T(S){return p?S.replace(Lc.IMAGE_URL_PREFIX,""):S}return new Promise(function(S,C){BE.newPlot(g,t,y,x).then(w).then(M).then(b).then(function(L){S(T(L))}).catch(function(L){C(L)})})}HE.exports=tue});var UE=J((Ube,YE)=>{"use strict";var fi=Fe(),aue=na(),nue=z0(),iue=Xl().dfltConfig,Ri=fi.isPlainObject,Rs=Array.isArray,wb=fi.isArrayOrTypedArray;YE.exports=function(r,t){r===void 0&&(r=[]),t===void 0&&(t={});var a=nue.get(),n=[],i={_context:fi.extendFlat({},iue)},l,o;Rs(r)?(i.data=fi.extendDeep([],r),l=r):(i.data=[],l=[],n.push(Aa("array","data"))),Ri(t)?(i.layout=fi.extendDeep({},t),o=t):(i.layout={},o={},arguments.length>1&&n.push(Aa("object","layout"))),aue.supplyDefaults(i);for(var s=i._fullData,u=l.length,f=0;fc.length&&a.push(Aa("unused",n,u.concat(c.length)));var x=c.length,w=Array.isArray(y);w&&(x=Math.min(x,y.length));var M,b,T,S,C;if(d.dimensions===2)for(b=0;bc[b].length&&a.push(Aa("unused",n,u.concat(b,c[b].length)));var L=c[b].length;for(M=0;M<(w?Math.min(L,y[b].length):L);M++)T=w?y[b][M]:y,S=f[b][M],C=c[b][M],fi.validate(S,T)?C!==S&&C!==+S&&a.push(Aa("dynamic",n,u.concat(b,M),S,C)):a.push(Aa("value",n,u.concat(b,M),S))}else a.push(Aa("array",n,u.concat(b),f[b]));else for(b=0;b{"use strict";var vue=Fe(),rh=qs();function due(e,r,t){var a=document.createElement("a"),n="download"in a,i=new Promise(function(l,o){var s,u;if(n)return s=rh.createBlob(e,t),u=rh.createObjectURL(s),a.href=u,a.download=r,document.body.appendChild(a),a.click(),document.body.removeChild(a),rh.revokeObjectURL(u),s=null,l(r);if(vue.isSafari()){var f=t==="svg"?",":";base64,";return rh.octetStream(f+encodeURIComponent(e)),l(r)}o(new Error("download error"))});return i}GE.exports=due});var Mb=J((Vbe,JE)=>{"use strict";var th=Fe(),XE=La(),hue=_b(),pue=VE(),WE=qs(),ZE=40;function mue(e,r){var t;return th.isPlainObject(e)||(t=th.getGraphDiv(e)),r=r||{},r.format=r.format||"png",r.width=r.width||null,r.height=r.height||null,r.imageDataOnly=!0,new Promise(function(a,n){t&&t._snapshotInProgress&&n(new Error("Image capture already in progress.")),t&&(t._snapshotInProgress=!0);var i=hue(e,r),l=r.filename||e.fn;if(!l){let s=WE.getPlotTitle(e);if(s&&!XE.matchTex(s))l=th.slugify(s,ZE);else{let u=WE.getPlotSubtitle(e);u&&!XE.matchTex(u)&&(l=th.slugify(u,ZE))}}var o=l||"plot-image";o+="."+r.format.replace("-","."),i.then(function(s){return t&&(t._snapshotInProgress=!1),pue(s,o,r.format)}).then(function(s){a(s)}).catch(function(s){t&&(t._snapshotInProgress=!1),n(s)})})}JE.exports=mue});var eP=J(Tb=>{"use strict";var Sn=Fe(),Dn=Sn.isPlainObject,$E=z0(),KE=na(),gue=xi(),jE=yt(),QE=Xl().dfltConfig;Tb.makeTemplate=function(e){e=Sn.isPlainObject(e)?e:Sn.getGraphDiv(e),e=Sn.extendDeep({_context:QE},{data:e.data,layout:e.layout}),KE.supplyDefaults(e);var r=e.data||[],t=e.layout||{};t._basePlotModules=e._fullLayout._basePlotModules,t._modules=e._fullLayout._modules;var a={data:{},layout:{}};r.forEach(function(h){var p={};qc(h,p,bue.bind(null,h));var g=Sn.coerce(h,{},gue,"type"),y=a.data[g];y||(y=a.data[g]=[]),y.push(p)}),qc(t,a.layout,yue.bind(null,t)),delete a.layout.template;var n=t.template;if(Dn(n)){var i=n.layout,l,o,s,u,f,c;Dn(i)&&ah(i,a.layout);var d=n.data;if(Dn(d)){for(o in a.data)if(s=d[o],Array.isArray(s)){for(f=a.data[o],c=f.length,u=s.length,l=0;lx?l.push({code:"unused",traceType:h,templateCount:y,dataCount:x}):x>y&&l.push({code:"reused",traceType:h,templateCount:y,dataCount:x})}}function w(M,b){for(var T in M)if(T.charAt(0)!=="_"){var S=M[T],C=ci(M,T,b);Dn(S)?(Array.isArray(M)&&S._template===!1&&S.templateitemname&&l.push({code:"missing",path:C,templateitemname:S.templateitemname}),w(S,C)):Array.isArray(S)&&xue(S)&&w(S,C)}}if(w({data:s,layout:o},""),l.length)return l.map(_ue)};function xue(e){for(var r=0;r{"use strict";var ma=gb();At._doPlot=ma._doPlot;At.newPlot=ma.newPlot;At.restyle=ma.restyle;At.relayout=ma.relayout;At.redraw=ma.redraw;At.update=ma.update;At._guiRestyle=ma._guiRestyle;At._guiRelayout=ma._guiRelayout;At._guiUpdate=ma._guiUpdate;At._storeDirectGUIEdit=ma._storeDirectGUIEdit;At.react=ma.react;At.extendTraces=ma.extendTraces;At.prependTraces=ma.prependTraces;At.addTraces=ma.addTraces;At.deleteTraces=ma.deleteTraces;At.moveTraces=ma.moveTraces;At.purge=ma.purge;At.addFrames=ma.addFrames;At.deleteFrames=ma.deleteFrames;At.animate=ma.animate;At.setPlotConfig=ma.setPlotConfig;var wue=yf().getGraphDiv,Mue=dd().eraseActiveShape;At.deleteActiveShape=function(e){return Mue(wue(e))};At.toImage=_b();At.validate=UE();At.downloadImage=Mb();var rP=eP();At.makeTemplate=rP.makeTemplate;At.validateTemplate=rP.validateTemplate});var kb=J((Zbe,aP)=>{"use strict";var Ab=Fe(),Tue=kr();aP.exports=function(r,t,a,n){var i=n("x"),l=n("y"),o,s=Tue.getComponentMethod("calendars","handleTraceDefaults");if(s(r,t,["x","y"],a),i){var u=Ab.minRowLength(i);l?o=Math.min(u,Ab.minRowLength(l)):(o=u,n("y0"),n("dy"))}else{if(!l)return 0;o=Ab.minRowLength(l),n("x0"),n("dx")}return t._length=o,o}});var Cb=J((Jbe,lP)=>{"use strict";var nP=Fe().dateTick0,Aue=(ca(),Xe(ga)),kue=Aue.ONEWEEK;function iP(e,r){return e%kue===0?nP(r,1):nP(r,0)}lP.exports=function(r,t,a,n,i){if(i||(i={x:!0,y:!0}),i.x){var l=n("xperiod");l&&(n("xperiod0",iP(l,t.xcalendar)),n("xperiodalignment"))}if(i.y){var o=n("yperiod");o&&(n("yperiod0",iP(o,t.ycalendar)),n("yperiodalignment"))}}});var uP=J(($be,sP)=>{"use strict";var oP=["orientation","groupnorm","stackgaps"];sP.exports=function(r,t,a,n){var i=a._scatterStackOpts,l=n("stackgroup");if(l){var o=t.xaxis+t.yaxis,s=i[o];s||(s=i[o]={});var u=s[l],f=!1;u?u.traces.push(t):(u=s[l]={traceIndices:[],traces:[t]},f=!0);for(var c={orientation:t.x&&!t.y?"h":"v"},d=0;d{"use strict";var fP=Nr(),cP=ei().hasColorscale,vP=B0(),Cue=Rn();dP.exports=function(r,t,a,n,i,l={}){var o=Cue.isBubble(r),s=(r.line||{}).color,u;if(s&&(a=s),i("marker.symbol"),i("marker.opacity",o?.7:1),i("marker.size"),l.noAngle||(i("marker.angle"),l.noAngleRef||i("marker.angleref"),l.noStandOff||i("marker.standoff")),i("marker.color",a),cP(r,"marker")&&vP(r,t,n,i,{prefix:"marker.",cLetter:"c"}),l.noSelect||(i("selected.marker.color"),i("unselected.marker.color"),i("selected.marker.size"),i("unselected.marker.size")),l.noLine||(s&&!Array.isArray(s)&&t.marker.color!==s?u=s:o?u=fP.background:u=fP.defaultLine,i("marker.line.color",u),cP(r,"marker.line")&&vP(r,t,n,i,{prefix:"marker.line.",cLetter:"c"}),i("marker.line.width",o?1:0),l.noLineDash||i("marker.line.dash")),o&&(i("marker.sizeref"),i("marker.sizemin"),i("marker.sizemode")),l.gradient){var f=i("marker.gradient.type");f!=="none"&&i("marker.gradient.color")}}});var mP=J((jbe,pP)=>{"use strict";var Sue=Fe().isArrayOrTypedArray,Due=ei().hasColorscale,Lue=B0();pP.exports=function(r,t,a,n,i,l){l||(l={});var o=(r.marker||{}).color;if(o&&o._inputArray&&(o=o._inputArray),i("line.color",a),Due(r,"line"))Lue(r,t,n,i,{prefix:"line.",cLetter:"c"});else{var s=(Sue(o)?!1:o)||a;i("line.color",s)}i("line.width"),l.noDash||i("line.dash"),l.backoff&&i("line.backoff")}});var yP=J((Qbe,gP)=>{"use strict";gP.exports=function(r,t,a){var n=a("line.shape");n==="spline"&&a("line.smoothing")}});var xP=J((e4e,bP)=>{"use strict";var que=Fe();bP.exports=function(e,r,t,a,n){n=n||{},a("textposition"),que.coerceFont(a,"textfont",n.font||t.font,n),n.noSelect||(a("selected.textfont.color"),a("unselected.textfont.color"))}});var MP=J((r4e,wP)=>{"use strict";var ih=Nr(),_P=Fe().isArrayOrTypedArray;function Eue(e){for(var r=ih.interpolate(e[0][1],e[1][1],.5),t=2;t{"use strict";var TP=Fe(),Pue=kr(),Rue=Ls(),zue=(qd(),Xe(Ld)),uu=Rn(),Fue=kb(),Nue=Cb(),Iue=uP(),Bue=hP(),Hue=mP(),AP=yP(),Oue=xP(),Yue=MP(),Uue=Fe().coercePattern;kP.exports=function(r,t,a,n){function i(h,p){return TP.coerce(r,t,Rue,h,p)}var l=Fue(r,t,n,i);if(l||(t.visible=!1),!!t.visible){Nue(r,t,n,i),i("xhoverformat"),i("yhoverformat"),i("zorder");var o=Iue(r,t,n,i);n.scattermode==="group"&&t.orientation===void 0&&i("orientation","v");var s=!o&&l{"use strict";var Gue=tc().getAxisGroup;SP.exports=function(r,t,a,n,i){var l=t.orientation,o=t[{v:"x",h:"y"}[l]+"axis"],s=Gue(a,o)+l,u=a._alignmentOpts||{},f=n("alignmentgroup"),c=u[s];c||(c=u[s]={});var d=c[f];d?d.traces.push(t):d=c[f]={traces:[t],alignmentIndex:Object.keys(c).length,offsetGroups:{}};var h=n("offsetgroup")||"",p=d.offsetGroups,g=p[h];t._offsetIndex=0,(i!=="group"||h)&&(g||(g=p[h]={offsetIndex:Object.keys(p).length}),t._offsetIndex=g.offsetIndex)}});var LP=J((n4e,DP)=>{"use strict";var Vue=Fe(),Xue=Sb(),Wue=Ls();DP.exports=function(r,t){var a,n,i,l=t.scattermode;function o(d){return Vue.coerce(n._input,n,Wue,d)}if(t.scattermode==="group")for(i=0;i=0;f--){var c=r[f];if(c.type==="scatter"&&c.xaxis===s.xaxis&&c.yaxis===s.yaxis){c.opacity=void 0;break}}}}}});var EP=J((i4e,qP)=>{"use strict";var Zue=Fe(),Jue=X2();qP.exports=function(e,r){function t(n,i){return Zue.coerce(e,r,Jue,n,i)}var a=r.barmode==="group";r.scattermode==="group"&&t("scattergap",a?r.bargap:.2)}});var Db=J((l4e,RP)=>{"use strict";var $ue=Zr(),PP=Fe(),Kue=PP.dateTime2ms,lh=PP.incrementMonth,jue=(ca(),Xe(ga)),Que=jue.ONEAVGMONTH;RP.exports=function(r,t,a,n){if(t.type!=="date")return{vals:n};var i=r[a+"periodalignment"];if(!i)return{vals:n};var l=r[a+"period"],o;if($ue(l)){if(l=+l,l<=0)return{vals:n}}else if(typeof l=="string"&&l.charAt(0)==="M"){var s=+l.substring(1);if(s>0&&Math.round(s)===s)o=s;else return{vals:n}}for(var u=t.calendar,f=i==="start",c=i==="end",d=r[a+"period0"],h=Kue(d,u)||0,p=[],g=[],y=[],x=n.length,w=0;wM;)S=lh(S,-o,u);for(;S<=M;)S=lh(S,o,u);T=lh(S,-o,u)}else{for(b=Math.round((M-h)/l),S=h+b*l;S>M;)S-=l;for(;S<=M;)S+=l;T=S-l}p[w]=f?T:c?S:(T+S)/2,g[w]=T,y[w]=S}return{vals:p,starts:g,ends:y}}});var NP=J((o4e,FP)=>{"use strict";var Lb=ei().hasColorscale,qb=a1(),zP=Rn();FP.exports=function(r,t){zP.hasLines(t)&&Lb(t,"line")&&qb(r,t,{vals:t.line.color,containerStr:"line",cLetter:"c"}),zP.hasMarkers(t)&&(Lb(t,"marker")&&qb(r,t,{vals:t.marker.color,containerStr:"marker",cLetter:"c"}),Lb(t,"marker.line")&&qb(r,t,{vals:t.marker.line.color,containerStr:"marker.line",cLetter:"c"}))}});var Eb=J((s4e,IP)=>{"use strict";var Bt=Fe();IP.exports=function(r,t){for(var a=0;a{"use strict";var BP=Fe();HP.exports=function(r,t){BP.isArrayOrTypedArray(t.selectedpoints)&&BP.tagSelected(r,t)}});var Ib=J((f4e,WP)=>{"use strict";var OP=Zr(),zb=Fe(),Ec=Mt(),YP=Db(),Rb=(ca(),Xe(ga)).BADNUM,Fb=Rn(),efe=NP(),rfe=Eb(),tfe=Pb();function afe(e,r){var t=e._fullLayout,a=r._xA=Ec.getFromId(e,r.xaxis||"x","x"),n=r._yA=Ec.getFromId(e,r.yaxis||"y","y"),i=a.makeCalcdata(r,"x"),l=n.makeCalcdata(r,"y"),o=YP(r,a,"x",i),s=YP(r,n,"y",l),u=o.vals,f=s.vals,c=r._length,d=new Array(c),h=r.ids,p=Nb(r,t,a,n),g=!1,y,x,w,M,b,T;VP(t,r);var S="x",C="y",L;if(p)zb.pushUnique(p.traceIndices,r.index),y=p.orientation==="v",y?(C="s",L="x"):(S="s",L="y"),b=p.stackgaps==="interpolate";else{var q=GP(r,c);UP(e,r,a,n,u,f,q)}var P=!!r.xperiodalignment,z=!!r.yperiodalignment;for(x=0;xx&&d[M].gap;)M--;for(T=d[M].s,w=d.length-1;w>M;w--)d[w].s=T;for(;x{"use strict";ZP.exports=oh;var nfe=Fe().distinctVals;function oh(e,r){this.traces=e,this.sepNegVal=r.sepNegVal,this.overlapNoMerge=r.overlapNoMerge;for(var t=1/0,a=r.posAxis._id.charAt(0),n=[],i=0;iife,eventDataKeys:()=>lfe});var ife,lfe,Rc=Ft(()=>{"use strict";ife=3,lfe=["value","label"]});var Gb=J((v4e,QP)=>{"use strict";var vi=Zr(),{isArrayOrTypedArray:Pl}=Fe(),{BADNUM:fu}=(ca(),Xe(ga)),ofe=kr(),zc=Mt(),{getAxisGroup:sfe}=tc(),sh=JP(),{TEXTPAD:ufe}=(Rc(),Xe(Pc)),{LINE_SPACING:ffe}=(Ja(),Xe(Za)),{BR_TAG_ALL:cfe}=La();function vfe(e,r){for(var t=r.xaxis,a=r.yaxis,n=e._fullLayout,i=e._fullData,l=e.calcdata,o=[],s=[],u=0;us+l||!vi(o))}for(var f=0;fa(i))):a(e.text);let n=e.outsidetextfont.size*ffe*t+ufe;return{ppadplus:r.some(i=>i.s<0)?n:0,ppadminus:r.some(i=>i.s>=0)?n:0}}return{ppadplus:void 0,ppadminus:void 0}}function wfe(e,r,t,a){for(var n=cu(a),i=0;i{"use strict";var eR=Ib(),rR=Gb().setGroupPositions;function Tfe(e,r){for(var t=r.xaxis,a=r.yaxis,n=e._fullLayout,i=e._fullData,l=e.calcdata,o=[],s=[],u=0;uq[f]&&f{"use strict";var kfe=ot(),oR=(ca(),Xe(ga)),Fc=oR.BADNUM,sR=oR.LOG_CLIP,nR=sR+.5,iR=sR-.5,uh=Fe(),Cfe=uh.segmentsIntersect,lR=uh.constrain,Xb=(qd(),Xe(Ld));uR.exports=function(r,t){var a=t.trace||{},n=t.xaxis,i=t.yaxis,l=n.type==="log",o=i.type==="log",s=n._length,u=i._length,f=t.backoff,c=a.marker,d=t.connectGaps,h=t.baseTolerance,p=t.shape,g=p==="linear",y=a.fill&&a.fill!=="none",x=[],w=Xb.minTolerance,M=r.length,b=new Array(M),T=0,S,C,L,q,P,z,N,H,B,I,V,O,U,W,Z,G;function j(qe){var Je=r[qe];if(!Je)return!1;var Ee=t.linearized?n.l2p(Je.x):n.c2p(Je.x),je=t.linearized?i.l2p(Je.y):i.c2p(Je.y);if(Ee===Fc){if(l&&(Ee=n.c2p(Je.x,!0)),Ee===Fc)return!1;o&&je===Fc&&(Ee*=Math.abs(n._m*u*(n._m>0?nR:iR)/(i._m*s*(i._m>0?nR:iR)))),Ee*=1e3}if(je===Fc){if(o&&(je=i.c2p(Je.y,!0)),je===Fc)return!1;je*=1e3}return[Ee,je]}function ie(qe,Je,Ee,je){var dr=Ee-qe,hr=je-Je,pr=.5-qe,te=.5-Je,he=dr*dr+hr*hr,Pe=dr*pr+hr*te;if(Pe>0&&Pe1||Math.abs(pr.y-Ee[0][1])>1)&&(pr=[pr.x,pr.y],je&&we(pr,qe)ce||qe[1]Ce)return[lR(qe[0],Se,ce),lR(qe[1],de,Ce)]}function $e(qe,Je){if(qe[0]===Je[0]&&(qe[0]===Se||qe[0]===ce)||qe[1]===Je[1]&&(qe[1]===de||qe[1]===Ce))return!0}function Qe(qe,Je){var Ee=[],je=Ue(qe),dr=Ue(Je);return je&&dr&&$e(je,dr)||(je&&Ee.push(je),dr&&Ee.push(dr)),Ee}function Le(qe,Je,Ee){return function(je,dr){var hr=Ue(je),pr=Ue(dr),te=[];if(hr&&pr&&$e(hr,pr))return te;hr&&te.push(hr),pr&&te.push(pr);var he=2*uh.constrain((je[qe]+dr[qe])/2,Je,Ee)-((hr||je)[qe]+(pr||dr)[qe]);if(he){var Pe;hr&&pr?Pe=he>0==hr[qe]>pr[qe]?hr:pr:Pe=hr||pr,Pe[qe]+=he}return te}}var Be;p==="linear"||p==="spline"?Be=Me:p==="hv"||p==="vh"?Be=Qe:p==="hvh"?Be=Le(0,Se,ce):p==="vhv"&&(Be=Le(1,de,Ce));function tr(qe,Je){var Ee=Je[0]-qe[0],je=(Je[1]-qe[1])/Ee,dr=(qe[1]*Je[0]-Je[1]*qe[0])/Ee;return dr>0?[je>0?Se:ce,Ce]:[je>0?ce:Se,de]}function re(qe){var Je=qe[0],Ee=qe[1],je=Je===b[T-1][0],dr=Ee===b[T-1][1];if(!(je&&dr))if(T>1){var hr=Je===b[T-2][0],pr=Ee===b[T-2][1];je&&(Je===Se||Je===ce)&&hr?pr?T--:b[T-1]=qe:dr&&(Ee===de||Ee===Ce)&&pr?hr?T--:b[T-1]=qe:b[T++]=qe}else b[T++]=qe}function ge(qe){b[T-1][0]!==qe[0]&&b[T-1][1]!==qe[1]&&re([Te,Ae]),re(qe),ke=null,Te=Ae=0}var Ge=uh.isArrayOrTypedArray(c);function cr(qe){if(qe&&f&&(qe.i=S,qe.d=r,qe.trace=a,qe.marker=Ge?c[qe.i]:c,qe.backoff=f),pe=qe[0]/s,ve=qe[1]/u,_e=qe[0]ce?ce:0,De=qe[1]Ce?Ce:0,_e||De){if(!T)b[T++]=[_e||qe[0],De||qe[1]];else if(ke){var Je=Be(ke,qe);Je.length>1&&(ge(Je[0]),b[T++]=Je[1])}else Re=Be(b[T-1],qe)[0],b[T++]=Re;var Ee=b[T-1];_e&&De&&(Ee[0]!==_e||Ee[1]!==De)?(ke&&(Te!==_e&&Ae!==De?re(Te&&Ae?tr(ke,qe):[Te||_e,Ae||De]):Te&&Ae&&re([Te,Ae])),re([_e,De])):Te-_e&&Ae-De&&re([_e||Te,De||Ae]),ke=qe,Te=_e,Ae=De}else ke&&ge(Be(ke,qe)[0]),b[T++]=qe}for(S=0;SQ(z,mr))break;L=z,U=B[0]*H[0]+B[1]*H[1],U>V?(V=U,q=z,N=!1):U=r.length||!z)break;cr(z),C=z}}ke&&re([Te||ke[0],Ae||ke[1]]),x.push(b.slice(0,T))}var ne=p.slice(p.length-1);if(f&&ne!=="h"&&ne!=="v"){for(var me=!1,ze=-1,Ve=[],Ne=0;Ne{"use strict";var cR={tonextx:1,tonexty:1,tonext:1};vR.exports=function(r,t,a){var n,i,l,o,s,u={},f=!1,c=-1,d=0,h=-1;for(i=0;i=0?s=h:(s=h=d,d++),s{"use strict";var zi=Or(),Sfe=kr(),Nc=Fe(),vu=Nc.ensureSingle,pR=Nc.identity,Gt=ot(),du=Rn(),Dfe=fR(),Lfe=dR(),fh=O5().tester;mR.exports=function(r,t,a,n,i,l){var o,s,u=!i,f=!!i&&i.duration>0,c=Lfe(r,t,a);if(o=n.selectAll("g.trace").data(c,function(h){return h[0].trace.uid}),o.enter().append("g").attr("class",function(h){return"trace scatter trace"+h[0].trace.uid}).style("stroke-miterlimit",2),o.order(),qfe(r,o,t),f){l&&(s=l());var d=zi.transition().duration(i.duration).ease(i.easing).each("end",function(){s&&s()}).each("interrupt",function(){s&&s()});d.each(function(){n.selectAll("g.trace").each(function(h,p){hR(r,p,t,h,c,this,i)})})}else o.each(function(h,p){hR(r,p,t,h,c,this,i)});u&&o.exit().remove(),n.selectAll("path:not([d])").remove()};function qfe(e,r,t){r.each(function(a){var n=vu(zi.select(this),"g","fills");Gt.setClipUrl(n,t.layerClipId,e);var i=a[0].trace;i._ownFill=null,i._nextFill=null;var l=[];i._ownfill&&l.push("_ownFill"),i._nexttrace&&l.push("_nextFill");var o=n.selectAll("g").data(l,pR);o.enter().append("g"),o.exit().remove(),o.order().each(function(s){i[s]=vu(zi.select(this),"path","js-fill")})})}function hR(e,r,t,a,n,i,l){var o=e._context.staticPlot,s;Efe(e,r,t,a,n);var u=!!l&&l.duration>0;function f(Le){return u?Le.transition():Le}var c=t.xaxis,d=t.yaxis,h=a[0].trace,p=h.line,g=zi.select(i),y=vu(g,"g","errorbars"),x=vu(g,"g","lines"),w=vu(g,"g","points"),M=vu(g,"g","text");if(Sfe.getComponentMethod("errorbars","plot")(e,y,t,l),h.visible!==!0)return;f(g).style("opacity",h.opacity);var b,T,S=h.fill.charAt(h.fill.length-1);S!=="x"&&S!=="y"&&(S="");var C,L;S==="y"?(C=1,L=d.c2p(0,!0)):S==="x"&&(C=0,L=c.c2p(0,!0)),a[0][t.isRangePlot?"nodeRangePlot3":"node3"]=g;var q="",P=[],z=h._prevtrace,N=null,H=null;z&&(q=z._prevRevpath||"",T=z._nextFill,P=z._ownPolygons,N=z._fillsegments,H=z._fillElement);var B,I,V="",O="",U,W,Z,G,j,ie,pe=[];h._polygons=[];var ve=[],Q=[],we=Nc.noop;if(b=h._ownFill,du.hasLines(h)||h.fill!=="none"){T&&T.datum(a),["hv","vh","hvh","vhv"].indexOf(p.shape)!==-1?(U=Gt.steps(p.shape),W=Gt.steps(p.shape.split("").reverse().join(""))):p.shape==="spline"?U=W=function(Le){var Be=Le[Le.length-1];return Le.length>1&&Le[0][0]===Be[0]&&Le[0][1]===Be[1]?Gt.smoothclosed(Le.slice(1),p.smoothing):Gt.smoothopen(Le,p.smoothing)}:U=W=function(Le){return"M"+Le.join("L")},Z=function(Le){return W(Le.reverse())},Q=Dfe(a,{xaxis:c,yaxis:d,trace:h,connectGaps:h.connectgaps,baseTolerance:Math.max(p.width||1,3)/4,shape:p.shape,backoff:p.backoff,simplify:p.simplify,fill:h.fill}),ve=new Array(Q.length);var le=0;for(s=0;s=o[0]&&g.x<=o[1]&&g.y>=s[0]&&g.y<=s[1]}),d=Math.ceil(c.length/f),h=0;n.forEach(function(g,y){var x=g[0].trace;du.hasMarkers(x)&&x.marker.maxdisplayed>0&&y{"use strict";yR.exports={container:"marker",min:"cmin",max:"cmax"}});var xR=J((y4e,bR)=>{"use strict";var ch=Mt();bR.exports=function(r,t,a){var n={},i={_fullLayout:a},l=ch.getFromTrace(i,t,"x"),o=ch.getFromTrace(i,t,"y"),s=r.orig_x;s===void 0&&(s=r.x);var u=r.orig_y;return u===void 0&&(u=r.y),n.xLabel=ch.tickText(l,l.c2l(s),!0).text,n.yLabel=ch.tickText(o,o.c2l(u),!0).text,n}});var Kb=J((b4e,_R)=>{"use strict";var Zb=Or(),hu=ot(),Pfe=kr();function Rfe(e){var r=Zb.select(e).selectAll("g.trace.scatter");r.style("opacity",function(t){return t[0].trace.opacity}),r.selectAll("g.points").each(function(t){var a=Zb.select(this),n=t.trace||t[0].trace;Jb(a,n,e)}),r.selectAll("g.text").each(function(t){var a=Zb.select(this),n=t.trace||t[0].trace;$b(a,n,e)}),r.selectAll("g.trace path.js-line").call(hu.lineGroupStyle),r.selectAll("g.trace path.js-fill").call(hu.fillGroupStyle,e,!1),Pfe.getComponentMethod("errorbars","style")(r)}function Jb(e,r,t){hu.pointStyle(e.selectAll("path.point"),r,t)}function $b(e,r,t){hu.textPointStyle(e.selectAll("text"),r,t)}function zfe(e,r,t){var a=r[0].trace;a.selectedpoints?(hu.selectedPointStyle(t.selectAll("path.point"),a),hu.selectedTextStyle(t.selectAll("text"),a)):(Jb(t,a,e),$b(t,a,e))}_R.exports={style:Rfe,stylePoints:Jb,styleText:$b,styleOnSelect:zfe}});var MR=J((x4e,wR)=>{"use strict";var pu=Nr(),Ffe=Rn();wR.exports=function(r,t){var a,n;if(r.mode==="lines")return a=r.line.color,a&&pu.opacity(a)?a:r.fillcolor;if(r.mode==="none")return r.fill?r.fillcolor:"";var i=t.mcc||t.mc||(r.marker||{}).color,l=t.mlcc||((r.marker||{}).line||{}).color;return n=i&&pu.opacity(i)?i:l&&pu.opacity(l)&&(t.mlw||((r.marker||{}).line||{}).width)?l:"",n?pu.opacity(n)<.3?pu.addOpacity(n,.3):n:(a=(r.line||{}).color,a&&pu.opacity(a)&&Ffe.hasLines(r)&&r.line.width?a:r.fillcolor)}});var kR=J((_4e,AR)=>{"use strict";var vh=Fe(),TR=qi(),Nfe=kr(),Ife=MR(),jb=Nr(),Bfe=vh.fillText;AR.exports=function(r,t,a,n){var i=r.cd,l=i[0].trace,o=r.xa,s=r.ya,u=o.c2p(t),f=s.c2p(a),c=[u,f],d=l.hoveron||"",h=l.mode.indexOf("markers")!==-1?3:.5,p=!!l.xperiodalignment,g=!!l.yperiodalignment;if(d.indexOf("points")!==-1){var y=function(O){if(p){var U=o.c2p(O.xStart),W=o.c2p(O.xEnd);return u>=Math.min(U,W)&&u<=Math.max(U,W)?0:1/0}var Z=Math.max(3,O.mrc||0),G=1-1/Z,j=Math.abs(o.c2p(O.x)-u);return j=Math.min(U,W)&&f<=Math.max(U,W)?0:1/0}var Z=Math.max(3,O.mrc||0),G=1-1/Z,j=Math.abs(s.c2p(O.y)-f);return jpe!=Ce>=pe&&(Se=we[Q-1][0],ce=we[Q][0],Ce-de&&(le=Se+(ce-Se)*(pe-de)/(Ce-de),Z=Math.min(Z,le),G=Math.max(G,le)));return Z=Math.max(Z,0),G=Math.min(G,o._length),{x0:Z,x1:G,y0:pe,y1:pe}}if(d.indexOf("fills")!==-1&&l._fillElement){var B=N(l._fillElement)&&!N(l._fillExclusionElement);if(B){var I=H(l._polygons);I===null&&(I={x0:c[0],x1:c[0],y0:c[1],y1:c[1]});var V=jb.defaultLine;return jb.opacity(l.fillcolor)?V=l.fillcolor:jb.opacity((l.line||{}).color)&&(V=l.line.color),vh.extendFlat(r,{distance:r.maxHoverDistance,x0:I.x0,x1:I.x1,y0:I.y0,y1:I.y1,color:V,hovertemplate:!1}),delete r.index,l.text&&!vh.isArrayOrTypedArray(l.text)?r.text=String(l.text):r.text=l.name,[r]}}}});var DR=J((w4e,SR)=>{"use strict";var CR=Rn();SR.exports=function(r,t){var a=r.cd,n=r.xaxis,i=r.yaxis,l=[],o=a[0].trace,s,u,f,c,d=o.mode&&!CR.hasMarkers(o)&&!CR.hasText(o);if(d)return[];if(t===!1)for(s=0;s{"use strict";LR.exports={xaxis:{valType:"subplotid",dflt:"x",editType:"calc+clearAxisTypes"},yaxis:{valType:"subplotid",dflt:"y",editType:"calc+clearAxisTypes"}}});var zR=J((T4e,RR)=>{"use strict";var dh=kr().traceIs,Qb=d3();RR.exports=function(r,t,a,n){a("autotypenumbers",n.autotypenumbersDflt);var i=a("type",(n.splomStash||{}).type);i==="-"&&(Hfe(t,n.data),t.type==="-"?t.type="linear":r.type=t.type)};function Hfe(e,r){if(e.type==="-"){var t=e._id,a=t.charAt(0),n;t.indexOf("scene")!==-1&&(t=a);var i=Ofe(r,t,a);if(i){if(i.type==="histogram"&&a==={v:"y",h:"x"}[i.orientation||"v"]){e.type="linear";return}var l=a+"calendar",o=i[l],s={noMultiCategory:!dh(i,"cartesian")||dh(i,"noMultiCategory")};if(i.type==="box"&&i._hasPreCompStats&&a==={h:"x",v:"y"}[i.orientation||"v"]&&(s.noMultiCategory=!0),s.autotypenumbers=e.autotypenumbers,PR(i,a)){var u=ER(i),f=[];for(n=0;n0&&(n["_"+t+"axes"]||{})[r])return n;if((n[t+"axis"]||t)===r){if(PR(n,t))return n;if((n[t]||[]).length||n[t+"0"])return n}}}function ER(e){return{v:"x",h:"y"}[e.orientation||"v"]}function PR(e,r){var t=ER(e),a=dh(e,"box-violin");return a&&r===t&&e[t]===void 0&&e[t+"0"]===void 0}});var NR=J((A4e,FR)=>{"use strict";var Yfe=xn().isTypedArraySpec;function Ufe(e,r){var t=r.dataAttr||e._id.charAt(0),a={},n,i,l;if(r.axData)n=r.axData;else for(n=[],i=0;i0||Yfe(i),o;l&&(o="array");var s=a("categoryorder",o),u;s==="array"&&(u=a("categoryarray")),!l&&s==="array"&&(s=t.categoryorder="trace"),s==="trace"?t._initialCategories=[]:s==="array"?t._initialCategories=u.slice():(u=Ufe(t,n).sort(),s==="category ascending"?t._initialCategories=u:s==="category descending"&&(t._initialCategories=u.reverse()))}}});var HR=J((k4e,BR)=>{"use strict";var IR=Nr(),Gfe=$i(),Vfe=Fe();BR.exports=function(r,t,a,n){n=n||{};var i=n.dfltColor;function l(L,q){return Vfe.coerce2(r,t,n.attributes,L,q)}var o=l("linecolor",i),s=l("linewidth"),u=a("showline",n.showLine||!!o||!!s);u||(delete t.linecolor,delete t.linewidth);var f=IR.mix(i,n.bgColor,n.blend||Gfe.lightFraction),c=l("gridcolor",f),d=l("gridwidth"),h=l("griddash"),p=a("showgrid",n.showGrid||!!c||!!d||!!h);if(p||(delete t.gridcolor,delete t.gridwidth,delete t.griddash),n.hasMinor){var g=IR.mix(t.gridcolor,n.bgColor,67),y=l("minor.gridcolor",g),x=l("minor.gridwidth",t.gridwidth||1),w=l("minor.griddash",t.griddash||"solid"),M=a("minor.showgrid",!!y||!!x||!!w);M||(delete t.minor.gridcolor,delete t.minor.gridwidth,delete t.minor.griddash)}if(!n.noZeroLine){var b=l("zerolinelayer"),T=l("zerolinecolor",i),S=l("zerolinewidth"),C=a("zeroline",n.showGrid||!!T||!!S);C||(delete t.zerolinelayer,delete t.zerolinecolor,delete t.zerolinewidth)}}});var r4=J((C4e,XR)=>{"use strict";var OR=Zr(),Xfe=kr(),Ic=Fe(),Wfe=yt(),Zfe=Ci(),e4=ki(),YR=Ny(),UR=By(),Jfe=Yy(),$fe=Uy(),Kfe=NR(),jfe=HR(),Qfe=z3(),GR=g1(),hh=(_a(),Xe(xa)).WEEKDAY_PATTERN,ece=(_a(),Xe(xa)).HOUR_PATTERN;XR.exports=function(r,t,a,n,i){var l=n.letter,o=n.font||{},s=n.splomStash||{},u=a("visible",!n.visibleDflt),f=t._template||{},c=t.type||f.type||"-",d;if(c==="date"){var h=Xfe.getComponentMethod("calendars","handleDefaults");h(r,t,"calendar",n.calendar),n.noTicklabelmode||(d=a("ticklabelmode"))}!n.noTicklabelindex&&(c==="date"||c==="linear")&&a("ticklabelindex");var p="";(!n.noTicklabelposition||c==="multicategory")&&(p=Ic.coerce(r,t,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:d==="period"?["outside","inside"]:l==="x"?["outside","inside","outside left","inside left","outside right","inside right"]:["outside","inside","outside top","inside top","outside bottom","inside bottom"]}},"ticklabelposition")),n.noTicklabeloverflow||a("ticklabeloverflow",p.indexOf("inside")!==-1?"hide past domain":c==="category"||c==="multicategory"?"allow":"hide past div"),GR(t,i),Qfe(r,t,a,n),Kfe(r,t,a,n),n.noHover||(c!=="category"&&a("hoverformat"),n.noUnifiedhovertitle||a("unifiedhovertitle.text"));var g=a("color"),y=g!==e4.color.dflt?g:o.color,x=s.label||i._dfltTitle[l];if($fe(r,t,a,c,n),!u)return t;a("title.text",x),Ic.coerceFont(a,"title.font",o,{overrideDflt:{size:Ic.bigFont(o.size),color:y}}),YR(r,t,a,c);var w=n.hasMinor;if(w&&(Wfe.newContainer(t,"minor"),YR(r,t,a,c,{isMinor:!0})),Jfe(r,t,a,c,n),UR(r,t,a,n),w){var M=n.isMinor;n.isMinor=!0,UR(r,t,a,n),n.isMinor=M}jfe(r,t,a,{dfltColor:g,bgColor:n.bgColor,showGrid:n.showGrid,hasMinor:w,attributes:e4}),w&&t.ticklabelindex==null&&!t.minor.ticks&&!t.minor.showgrid&&delete t.minor,(t.showline||t.ticks)&&a("mirror");var b=c==="multicategory";if(!n.noTickson&&(c==="category"||b)&&(t.ticks||t.showgrid)&&(b?(a("tickson","boundaries"),delete t.ticklabelposition):a("tickson")),b){var T=a("showdividers");T&&(a("dividercolor"),a("dividerwidth"))}if(c==="date")if(Zfe(r,t,{name:"rangebreaks",inclusionAttr:"enabled",handleItemDefaults:rce}),!t.rangebreaks.length)delete t.rangebreaks;else{for(var S=0;S=2){var l="",o,s;if(i.length===2){for(o=0;o<2;o++)if(s=VR(i[o]),s){l=hh;break}}var u=a("pattern",l);if(u===hh)for(o=0;o<2;o++)s=VR(i[o]),s&&(r.bounds[o]=i[o]=s-1);if(u)for(o=0;o<2;o++)switch(s=i[o],u){case hh:if(!OR(s)){r.enabled=!1;return}if(s=+s,s!==Math.floor(s)||s<0||s>=7){r.enabled=!1;return}r.bounds[o]=i[o]=s;break;case ece:if(!OR(s)){r.enabled=!1;return}if(s=+s,s<0||s>24){r.enabled=!1;return}r.bounds[o]=i[o]=s;break}if(t.autorange===!1){var f=t.range;if(f[0]f[1]){r.enabled=!1;return}}else if(i[0]>f[0]&&i[1]{"use strict";var ace=Zr(),ph=Fe();WR.exports=function(r,t,a,n){var i=n.counterAxes||[],l=n.overlayableAxes||[],o=n.letter,s=n.grid,u=n.overlayingDomain,f,c,d,h,p,g;s&&(c=s._domains[o][s._axisMap[t._id]],f=s._anchors[t._id],c&&(d=s[o+"side"].split(" ")[0],h=s.domain[o][d==="right"||d==="top"?1:0])),c=c||[0,1],f=f||(ace(r.position)?"free":i[0]||"free"),d=d||(o==="x"?"bottom":"left"),h=h||0,p=0,g=!1;var y=ph.coerce(r,t,{anchor:{valType:"enumerated",values:["free"].concat(i),dflt:f}},"anchor"),x=ph.coerce(r,t,{side:{valType:"enumerated",values:o==="x"?["bottom","top"]:["left","right"],dflt:d}},"side");if(y==="free"){if(o==="y"){var w=a("autoshift");w&&(h=x==="left"?u[0]:u[1],g=t.automargin?t.automargin:!0,p=x==="left"?-3:3),a("shift",p)}a("position",h)}a("automargin",g);var M=!1;if(l.length&&(M=ph.coerce(r,t,{overlaying:{valType:"enumerated",values:[!1].concat(l),dflt:!1}},"overlaying")),!M){var b=a("domain",c);b[0]>b[1]-1/4096&&(t.domain=c),ph.noneOrAll(r.domain,t.domain,c),t.tickmode==="sync"&&(t.tickmode="auto")}return a("layer"),t}});var tz=J((D4e,rz)=>{"use strict";var zs=Fe(),ZR=Nr(),nce=Si().isUnifiedHover,ice=u5(),JR=yt(),lce=A0(),$R=ki(),oce=zR(),KR=r4(),sce=tc(),jR=t4(),n4=ha(),hl=n4.id2name,QR=n4.name2id,uce=(_a(),Xe(xa)).AX_ID_PATTERN,ez=kr(),mh=ez.traceIs,a4=ez.getComponentMethod;function gh(e,r,t){Array.isArray(e[r])?e[r].push(t):e[r]=[t]}rz.exports=function(r,t,a){var n=t.autotypenumbers,i={},l={},o={},s={},u={},f={},c={},d={},h={},p={},g,y;for(g=0;g{"use strict";var fce=Or(),az=kr(),yh=Fe(),Yn=ot(),bh=Mt();nz.exports=function(r,t,a,n){var i=r._fullLayout;if(t.length===0){bh.redrawComponents(r);return}function l(y){var x=y.xaxis,w=y.yaxis;i._defs.select("#"+y.clipId+"> rect").call(Yn.setTranslate,0,0).call(Yn.setScale,1,1),y.plot.call(Yn.setTranslate,x._offset,w._offset).call(Yn.setScale,1,1);var M=y.plot.selectAll(".scatterlayer .trace");M.selectAll(".point").call(Yn.setPointGroupScale,1,1),M.selectAll(".textpoint").call(Yn.setTextPointsScale,1,1),M.call(Yn.hideOutsideRangePoints,y)}function o(y,x){var w=y.plotinfo,M=w.xaxis,b=w.yaxis,T=M._length,S=b._length,C=!!y.xr1,L=!!y.yr1,q=[];if(C){var P=yh.simpleMap(y.xr0,M.r2l),z=yh.simpleMap(y.xr1,M.r2l),N=P[1]-P[0],H=z[1]-z[0];q[0]=(P[0]*(1-x)+x*z[0]-P[0])/(P[1]-P[0])*T,q[2]=T*(1-x+x*H/N),M.range[0]=M.l2r(P[0]*(1-x)+x*z[0]),M.range[1]=M.l2r(P[1]*(1-x)+x*z[1])}else q[0]=0,q[2]=T;if(L){var B=yh.simpleMap(y.yr0,b.r2l),I=yh.simpleMap(y.yr1,b.r2l),V=B[1]-B[0],O=I[1]-I[0];q[1]=(B[1]*(1-x)+x*I[1]-B[1])/(B[0]-B[1])*S,q[3]=S*(1-x+x*O/V),b.range[0]=M.l2r(B[0]*(1-x)+x*I[0]),b.range[1]=b.l2r(B[1]*(1-x)+x*I[1])}else q[1]=0,q[3]=S;bh.drawOne(r,M,{skipTitle:!0}),bh.drawOne(r,b,{skipTitle:!0}),bh.redrawComponents(r,[M._id,b._id]);var U=C?T/q[2]:1,W=L?S/q[3]:1,Z=C?q[0]:0,G=L?q[1]:0,j=C?q[0]/q[2]*T:0,ie=L?q[1]/q[3]*S:0,pe=M._offset-j,ve=b._offset-ie;w.clipRect.call(Yn.setTranslate,Z,G).call(Yn.setScale,1/U,1/W),w.plot.call(Yn.setTranslate,pe,ve).call(Yn.setScale,U,W),Yn.setPointGroupScale(w.zoomScalePts,1/U,1/W),Yn.setTextPointsScale(w.zoomScaleTxt,1/U,1/W)}var s;n&&(s=n());function u(){for(var y={},x=0;xa.duration?(u(),h=window.cancelAnimationFrame(g)):h=window.requestAnimationFrame(g)}return c=Date.now(),h=window.requestAnimationFrame(g),Promise.resolve()}});var wh=J(Ka=>{"use strict";var _h=Or(),lz=kr(),Fs=Fe(),cce=na(),vce=ot(),oz=gy().getModuleCalcData,wo=ha(),Fi=(_a(),Xe(xa)),dce=(fs(),Xe(us)),Qr=Fs.ensureSingle;function xh(e,r,t){return Fs.ensureSingle(e,r,t,function(a){a.datum(t)})}var Ns=Fi.zindexSeparator;Ka.name="cartesian";Ka.attr=["xaxis","yaxis"];Ka.idRoot=["x","y"];Ka.idRegex=Fi.idRegex;Ka.attrRegex=Fi.attrRegex;Ka.attributes=qR();Ka.layoutAttributes=ki();Ka.supplyLayoutDefaults=tz();Ka.transitionAxes=iz();Ka.finalizeSubplots=function(e,r){var t=r._subplots,a=t.xaxis,n=t.yaxis,i=t.cartesian,l=i,o={},s={},u,f,c;for(u=0;u0){var h=d.id;if(h.indexOf(Ns)!==-1)continue;h+=Ns+(u+1),d=Fs.extendFlat({},d,{id:h,plot:n._cartesianlayer.selectAll(".subplot").select("."+h)})}for(var p=[],g,y=0;y1&&(T+=Ns+b),M.push(o+T),l=0;l1,c=r.mainplotinfo;if(!r.mainplot||f)if(u)r.xlines=Qr(a,"path","xlines-above"),r.ylines=Qr(a,"path","ylines-above"),r.xaxislayer=Qr(a,"g","xaxislayer-above"),r.yaxislayer=Qr(a,"g","yaxislayer-above");else{if(!l){var d=Qr(a,"g","layer-subplot");r.shapelayer=Qr(d,"g","shapelayer"),r.imagelayer=Qr(d,"g","imagelayer"),c&&f?(r.minorGridlayer=c.minorGridlayer,r.gridlayer=c.gridlayer,r.zerolinelayer=c.zerolinelayer):(r.minorGridlayer=Qr(a,"g","minor-gridlayer"),r.gridlayer=Qr(a,"g","gridlayer"),r.zerolinelayer=Qr(a,"g","zerolinelayer"));var h=Qr(a,"g","layer-between");r.shapelayerBetween=Qr(h,"g","shapelayer"),r.imagelayerBetween=Qr(h,"g","imagelayer"),Qr(a,"path","xlines-below"),Qr(a,"path","ylines-below"),r.overlinesBelow=Qr(a,"g","overlines-below"),Qr(a,"g","xaxislayer-below"),Qr(a,"g","yaxislayer-below"),r.overaxesBelow=Qr(a,"g","overaxes-below")}r.overplot=Qr(a,"g","overplot"),r.plot=Qr(r.overplot,"g",n),c&&f?r.zerolinelayerAbove=c.zerolinelayerAbove:r.zerolinelayerAbove=Qr(a,"g","zerolinelayer-above"),l||(r.xlines=Qr(a,"path","xlines-above"),r.ylines=Qr(a,"path","ylines-above"),r.overlinesAbove=Qr(a,"g","overlines-above"),Qr(a,"g","xaxislayer-above"),Qr(a,"g","yaxislayer-above"),r.overaxesAbove=Qr(a,"g","overaxes-above"),r.xlines=a.select(".xlines-"+o),r.ylines=a.select(".ylines-"+s),r.xaxislayer=a.select(".xaxislayer-"+o),r.yaxislayer=a.select(".yaxislayer-"+s))}else{var p=c.plotgroup,g=n+"-x",y=n+"-y";r.minorGridlayer=c.minorGridlayer,r.gridlayer=c.gridlayer,r.zerolinelayer=c.zerolinelayer,r.zerolinelayerAbove=c.zerolinelayerAbove,Qr(c.overlinesBelow,"path",g),Qr(c.overlinesBelow,"path",y),Qr(c.overaxesBelow,"g",g),Qr(c.overaxesBelow,"g",y),r.plot=Qr(c.overplot,"g",n),Qr(c.overlinesAbove,"path",g),Qr(c.overlinesAbove,"path",y),Qr(c.overaxesAbove,"g",g),Qr(c.overaxesAbove,"g",y),r.xlines=p.select(".overlines-"+o).select("."+g),r.ylines=p.select(".overlines-"+s).select("."+y),r.xaxislayer=p.select(".overaxes-"+o).select("."+g),r.yaxislayer=p.select(".overaxes-"+s).select("."+y)}l||(u||(xh(r.minorGridlayer,"g",r.xaxis._id),xh(r.minorGridlayer,"g",r.yaxis._id),r.minorGridlayer.selectAll("g").map(function(x){return x[0]}).sort(wo.idSort),xh(r.gridlayer,"g",r.xaxis._id),xh(r.gridlayer,"g",r.yaxis._id),r.gridlayer.selectAll("g").map(function(x){return x[0]}).sort(wo.idSort)),r.xlines.style("fill","none").classed("crisp",!0),r.ylines.style("fill","none").classed("crisp",!0))}function fz(e,r){if(e){var t={};e.each(function(s){var u=s[0],f=_h.select(this);f.remove(),cz(u,r),t[u]=!0});for(var a in r._plots)for(var n=r._plots[a],i=n.overlays||[],l=0;l{"use strict";var Mh=Rn();vz.exports={hasLines:Mh.hasLines,hasMarkers:Mh.hasMarkers,hasText:Mh.hasText,isBubble:Mh.isBubble,attributes:Ls(),layoutAttributes:X2(),supplyDefaults:CP(),crossTraceDefaults:LP(),supplyLayoutDefaults:EP(),calc:Ib().calc,crossTraceCalc:aR(),arraysToCalcdata:Eb(),plot:gR(),colorbar:Wb(),formatLabels:xR(),style:Kb().style,styleOnSelect:Kb().styleOnSelect,hoverPoints:kR(),selectPoints:DR(),animatable:!0,moduleType:"trace",name:"scatter",basePlotModule:wh(),categories:["cartesian","svg","symbols","errorBarsOK","showLegend","scatter-like","zoomScale"],meta:{}}});var mz=J((P4e,pz)=>{"use strict";var pce=Or(),mce=Nr(),hz=Q5(),i4=Fe(),gce=i4.strScale,yce=i4.strRotate,bce=i4.strTranslate;pz.exports=function(r,t,a){var n=r.node(),i=hz[a.arrowhead||0],l=hz[a.startarrowhead||0],o=(a.arrowwidth||1)*(a.arrowsize||1),s=(a.arrowwidth||1)*(a.startarrowsize||1),u=t.indexOf("start")>=0,f=t.indexOf("end")>=0,c=i.backoff*o+a.standoff,d=l.backoff*s+a.startstandoff,h,p,g,y;if(n.nodeName==="line"){h={x:+r.attr("x1"),y:+r.attr("y1")},p={x:+r.attr("x2"),y:+r.attr("y2")};var x=h.x-p.x,w=h.y-p.y;if(g=Math.atan2(w,x),y=g+Math.PI,c&&d&&c+d>Math.sqrt(x*x+w*w)){B();return}if(c){if(c*c>x*x+w*w){B();return}var M=c*Math.cos(g),b=c*Math.sin(g);p.x+=M,p.y+=b,r.attr({x2:p.x,y2:p.y})}if(d){if(d*d>x*x+w*w){B();return}var T=d*Math.cos(g),S=d*Math.sin(g);h.x-=T,h.y-=S,r.attr({x1:h.x,y1:h.y})}}else if(n.nodeName==="path"){var C=n.getTotalLength(),L="";if(C{"use strict";var gz=Or(),l4=kr(),xce=na(),To=Fe(),o4=To.strTranslate,Hc=Mt(),Is=Nr(),Rl=ot(),yz=qi(),s4=La(),u4=vo(),Bc=Li(),_ce=yt().arrayEditor,wce=mz();_z.exports={draw:Mce,drawOne:bz,drawRaw:xz};function Mce(e){var r=e._fullLayout;r._infolayer.selectAll(".annotation").remove();for(var t=0;t2/3?dr="right":dr="center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[dr]}for(var de=!1,Ce=["x","y"],Ie=0;Ie1)&&(Te===De?(mr=Ae.r2fraction(r["a"+_e]),(mr<0||mr>1)&&(de=!0)):de=!0),Be=Ae._offset+Ae.r2p(r[_e]),ge=.5}else{var ne=cr==="domain";_e==="x"?(re=r[_e],Be=ne?Ae._offset+Ae._length*re:Be=o.l+o.w*re):(re=1-r[_e],Be=ne?Ae._offset+Ae._length*re:Be=o.t+o.h*re),ge=r.showarrow?.5:re}if(r.showarrow){Le.head=Be;var me=r["a"+_e];if(Ge=Re*ce(.5,r.xanchor)-Me*ce(.5,r.yanchor),Te===De){var ze=Hc.getRefType(Te);ze==="domain"?(_e==="y"&&(me=1-me),Le.tail=Ae._offset+Ae._length*me):ze==="paper"?_e==="y"?(me=1-me,Le.tail=o.t+o.h*me):Le.tail=o.l+o.w*me:Le.tail=Ae._offset+Ae.r2p(me),tr=Ge}else Le.tail=Be+me,tr=Ge+me;Le.text=Le.tail+Ge;var Ve=l[_e==="x"?"width":"height"];if(De==="paper"&&(Le.head=To.constrain(Le.head,1,Ve-1)),Te==="pixel"){var Ne=-Math.max(Le.tail-3,Le.text),Ze=Math.min(Le.tail+3,Le.text)-Ve;Ne>0?(Le.tail+=Ne,Le.text+=Ne):Ze>0&&(Le.tail-=Ze,Le.text-=Ze)}Le.tail+=Qe,Le.head+=Qe}else Ge=Ue*ce(ge,$e),tr=Ge,Le.text=Be+Ge;Le.text+=Qe,Ge+=Qe,tr+=Qe,r["_"+_e+"padplus"]=Ue/2+tr,r["_"+_e+"padminus"]=Ue/2-tr,r["_"+_e+"size"]=Ue,r["_"+_e+"shift"]=Ge}if(de){C.remove();return}var Ke=0,_r=0;if(r.align!=="left"&&(Ke=(Q-pe)*(r.align==="center"?.5:1)),r.valign!=="top"&&(_r=(we-ve)*(r.valign==="middle"?.5:1)),j)G.select("svg").attr({x:P+Ke-1,y:P+_r}).call(Rl.setClipUrl,N?g:null,e);else{var xr=P+_r-ie.top,qe=P+Ke-ie.left;V.call(s4.positionText,qe,xr).call(Rl.setClipUrl,N?g:null,e)}H.select("rect").call(Rl.setRect,P,P,Q,we),z.call(Rl.setRect,L/2,L/2,le-L,Se-L),C.call(Rl.setTranslate,Math.round(y.x.text-le/2),Math.round(y.y.text-Se/2)),M.attr({transform:"rotate("+x+","+y.x.text+","+y.y.text+")"});var Je=function(je,dr){w.selectAll(".annotation-arrow-g").remove();var hr=y.x.head,pr=y.y.head,te=y.x.tail+je,he=y.y.tail+dr,Pe=y.x.text+je,He=y.y.text+dr,Xr=To.rotationXYMatrix(x,Pe,He),ft=To.apply2DTransform(Xr),kt=To.apply2DTransform2(Xr),Rt=+z.attr("width"),Xt=+z.attr("height"),Ot=Pe-.5*Rt,Ga=Ot+Rt,gt=He-.5*Xt,Yt=gt+Xt,Wt=[[Ot,gt,Ot,Yt],[Ot,Yt,Ga,Yt],[Ga,Yt,Ga,gt],[Ga,gt,Ot,gt]].map(kt);if(!Wt.reduce(function(vt,sa){return vt^!!To.segmentsIntersect(hr,pr,hr+1e6,pr+1e6,sa[0],sa[1],sa[2],sa[3])},!1)){Wt.forEach(function(vt){var sa=To.segmentsIntersect(te,he,hr,pr,vt[0],vt[1],vt[2],vt[3]);sa&&(te=sa.x,he=sa.y)});var la=r.arrowwidth,Va=r.arrowcolor,ta=r.arrowside,oa=w.append("g").style({opacity:Is.opacity(Va)}).classed("annotation-arrow-g",!0),ir=oa.append("path").attr("d","M"+te+","+he+"L"+hr+","+pr).style("stroke-width",la+"px").call(Is.stroke,Is.rgb(Va));if(wce(ir,ta,r),s.annotationPosition&&ir.node().parentNode&&!a){var tt=hr,Wr=pr;if(r.standoff){var ct=Math.sqrt(Math.pow(hr-te,2)+Math.pow(pr-he,2));tt+=r.standoff*(te-hr)/ct,Wr+=r.standoff*(he-pr)/ct}var Ct=oa.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(te-tt)+","+(he-Wr),transform:o4(tt,Wr)}).style("stroke-width",la+6+"px").call(Is.stroke,"rgba(0,0,0,0)").call(Is.fill,"rgba(0,0,0,0)"),ka,at;Bc.init({element:Ct.node(),gd:e,prepFn:function(){var vt=Rl.getTranslate(C);ka=vt.x,at=vt.y,n&&n.autorange&&d(n._name+".autorange",!0),i&&i.autorange&&d(i._name+".autorange",!0)},moveFn:function(vt,sa){var mi=ft(ka,at),Gi=mi[0]+vt,Xn=mi[1]+sa;C.call(Rl.setTranslate,Gi,Xn),h("x",Mo(n,vt,"x",o,r)),h("y",Mo(i,sa,"y",o,r)),r.axref===r.xref&&h("ax",Mo(n,vt,"ax",o,r)),r.ayref===r.yref&&h("ay",Mo(i,sa,"ay",o,r)),oa.attr("transform",o4(vt,sa)),M.attr({transform:"rotate("+x+","+Gi+","+Xn+")"})},doneFn:function(){l4.call("_guiRelayout",e,p());var vt=document.querySelector(".js-notes-box-panel");vt&&vt.redraw(vt.selectedObj)}})}}};if(r.showarrow&&Je(0,0),b){var Ee;Bc.init({element:C.node(),gd:e,prepFn:function(){Ee=M.attr("transform")},moveFn:function(je,dr){var hr="pointer";if(r.showarrow)r.axref===r.xref?h("ax",Mo(n,je,"ax",o,r)):h("ax",r.ax+je),r.ayref===r.yref?h("ay",Mo(i,dr,"ay",o.w,r)):h("ay",r.ay+dr),Je(je,dr);else{if(a)return;var pr,te;if(n)pr=Mo(n,je,"x",o,r);else{var he=r._xsize/o.w,Pe=r.x+(r._xshift-r.xshift)/o.w-he/2;pr=Bc.align(Pe+je/o.w,he,0,1,r.xanchor)}if(i)te=Mo(i,dr,"y",o,r);else{var He=r._ysize/o.h,Xr=r.y-(r._yshift+r.yshift)/o.h-He/2;te=Bc.align(Xr-dr/o.h,He,0,1,r.yanchor)}h("x",pr),h("y",te),(!n||!i)&&(hr=Bc.getCursor(n?.5:pr,i?.5:te,r.xanchor,r.yanchor))}M.attr({transform:o4(je,dr)+Ee}),u4(C,hr)},clickFn:function(je,dr){r.captureevents&&e.emit("plotly_clickannotation",S(dr))},doneFn:function(){u4(C),l4.call("_guiRelayout",e,p());var je=document.querySelector(".js-notes-box-panel");je&&je.redraw(je.selectedObj)}})}}s.annotationText?V.call(s4.makeEditable,{delegate:C,gd:e}).call(O).on("edit",function(W){r.text=W,this.call(O),h("text",W),n&&n.autorange&&d(n._name+".autorange",!0),i&&i.autorange&&d(i._name+".autorange",!0),l4.call("_guiRelayout",e,p())}):V.call(O)}});var Cz=J((z4e,kz)=>{"use strict";var wz=Fe(),Tce=kr(),Mz=yt().arrayEditor;kz.exports={hasClickToShow:Ace,onClick:kce};function Ace(e,r){var t=Az(e,r);return t.on.length>0||t.explicitOff.length>0}function kce(e,r){var t=Az(e,r),a=t.on,n=t.off.concat(t.explicitOff),i={},l=e._fullLayout.annotations,o,s;if(a.length||n.length){for(o=0;o{"use strict";var f4=Fe(),mu=Nr();Sz.exports=function(r,t,a,n){n("opacity");var i=n("bgcolor"),l=n("bordercolor"),o=mu.opacity(l);n("borderpad");var s=n("borderwidth"),u=n("showarrow");n("text",u?" ":a._dfltTitle.annotation),n("textangle"),f4.coerceFont(n,"font",a.font),n("width"),n("align");var f=n("height");if(f&&n("valign"),u){var c=n("arrowside"),d,h;c.indexOf("end")!==-1&&(d=n("arrowhead"),h=n("arrowsize")),c.indexOf("start")!==-1&&(n("startarrowhead",d),n("startarrowsize",h)),n("arrowcolor",o?t.bordercolor:mu.defaultLine),n("arrowwidth",(o&&s||1)*2),n("standoff"),n("startstandoff")}var p=n("hovertext"),g=a.hoverlabel||{};if(p){var y=n("hoverlabel.bgcolor",g.bgcolor||(mu.opacity(i)?mu.rgb(i):mu.defaultLine)),x=n("hoverlabel.bordercolor",g.bordercolor||mu.contrast(y)),w=f4.extendFlat({},g.font);w.color||(w.color=x),f4.coerceFont(n,"hoverlabel.font",w)}n("captureevents",!!p)}});var Lz=J((N4e,Dz)=>{"use strict";var v4=Fe(),Bs=Mt(),Cce=Ci(),Sce=c4(),Dce=lu();Dz.exports=function(r,t){Cce(r,t,{name:"annotations",handleItemDefaults:Lce})};function Lce(e,r,t){function a(M,b){return v4.coerce(e,r,Dce,M,b)}var n=a("visible"),i=a("clicktoshow");if(n||i){Sce(e,r,t,a);for(var l=r.showarrow,o=["x","y"],s=[-10,-30],u={_fullLayout:t},f=0;f<2;f++){var c=o[f],d=Bs.coerceRef(e,r,u,c,"","paper");if(d!=="paper"){var h=Bs.getFromId(u,d);h._annIndices.push(r._index)}if(Bs.coercePosition(r,u,a,d,c,.5),l){var p="a"+c,g=Bs.coerceRef(e,r,u,p,"pixel",["pixel","paper"]);g!=="pixel"&&g!==d&&(g=r[p]="pixel");var y=g==="pixel"?s[f]:.4;Bs.coercePosition(r,u,a,g,p,y)}a(c+"anchor"),a(c+"shift")}if(v4.noneOrAll(e,r,["x","y"]),l&&v4.noneOrAll(e,r,["ax","ay"]),i){var x=a("xclick"),w=a("yclick");r._xclick=x===void 0?r.x:Bs.cleanPosition(x,u,r.xref),r._yclick=w===void 0?r.y:Bs.cleanPosition(w,u,r.yref)}}}});var Pz=J((I4e,Ez)=>{"use strict";var d4=Fe(),Hs=Mt(),qce=Th().draw;Ez.exports=function(r){var t=r._fullLayout,a=d4.filterVisible(t.annotations);if(a.length&&r._fullData.length)return d4.syncOrAsync([qce,Ece],r)};function Ece(e){var r=e._fullLayout;d4.filterVisible(r.annotations).forEach(function(t){var a=Hs.getFromId(e,t.xref),n=Hs.getFromId(e,t.yref),i=Hs.getRefType(t.xref),l=Hs.getRefType(t.yref);t._extremes={},i==="range"&&qz(t,a),l==="range"&&qz(t,n)})}function qz(e,r){var t=r._id,a=t.charAt(0),n=e[a],i=e["a"+a],l=e[a+"ref"],o=e["a"+a+"ref"],s=e["_"+a+"padplus"],u=e["_"+a+"padminus"],f={x:1,y:-1}[a]*e[a+"shift"],c=3*e.arrowsize*e.arrowwidth||0,d=c+f,h=c-f,p=3*e.startarrowsize*e.arrowwidth||0,g=p+f,y=p-f,x;if(o===l){var w=Hs.findExtremes(r,[r.r2c(n)],{ppadplus:d,ppadminus:h}),M=Hs.findExtremes(r,[r.r2c(i)],{ppadplus:Math.max(s,g),ppadminus:Math.max(u,y)});x={min:[w.min[0],M.min[0]],max:[w.max[0],M.max[0]]}}else g=i?g+i:g,y=i?y-i:y,x=Hs.findExtremes(r,[r.r2c(n)],{ppadplus:Math.max(s,d,g),ppadminus:Math.max(u,h,y)});e._extremes[t]=x}});var zz=J((B4e,Rz)=>{"use strict";var Pce=Zr(),Rce=Yv();Rz.exports=function(r,t,a,n){t=t||{};var i=a==="log"&&t.type==="linear",l=a==="linear"&&t.type==="log";if(!(i||l))return;var o=r._fullLayout.annotations,s=t._id.charAt(0),u,f;function c(h){var p=u[h],g=null;i?g=Rce(p,t.range):g=Math.pow(10,p),Pce(g)||(g=null),n(f+h,g)}for(var d=0;d{"use strict";var h4=Th(),Fz=Cz();Nz.exports={moduleType:"component",name:"annotations",layoutAttributes:lu(),supplyLayoutDefaults:Lz(),includeBasePlot:_c()("annotations"),calcAutorange:Pz(),draw:h4.draw,drawOne:h4.drawOne,drawRaw:h4.drawRaw,hasClickToShow:Fz.hasClickToShow,onClick:Fz.onClick,convertCoords:zz()}});var Ah=J((O4e,Bz)=>{"use strict";var mt=lu(),zce=Ki().overrideAll,Fce=yt().templatedArray;Bz.exports=zce(Fce("annotation",{visible:mt.visible,x:{valType:"any"},y:{valType:"any"},z:{valType:"any"},ax:{valType:"number"},ay:{valType:"number"},xanchor:mt.xanchor,xshift:mt.xshift,yanchor:mt.yanchor,yshift:mt.yshift,text:mt.text,textangle:mt.textangle,font:mt.font,width:mt.width,height:mt.height,opacity:mt.opacity,align:mt.align,valign:mt.valign,bgcolor:mt.bgcolor,bordercolor:mt.bordercolor,borderpad:mt.borderpad,borderwidth:mt.borderwidth,showarrow:mt.showarrow,arrowcolor:mt.arrowcolor,arrowhead:mt.arrowhead,startarrowhead:mt.startarrowhead,arrowside:mt.arrowside,arrowsize:mt.arrowsize,startarrowsize:mt.startarrowsize,arrowwidth:mt.arrowwidth,standoff:mt.standoff,startstandoff:mt.startstandoff,hovertext:mt.hovertext,hoverlabel:mt.hoverlabel,captureevents:mt.captureevents}),"calc","from-root")});var Oz=J((Y4e,Hz)=>{"use strict";var p4=Fe(),Nce=Mt(),Ice=Ci(),Bce=c4(),Hce=Ah();Hz.exports=function(r,t,a){Ice(r,t,{name:"annotations",handleItemDefaults:Oce,fullLayout:a.fullLayout})};function Oce(e,r,t,a){function n(o,s){return p4.coerce(e,r,Hce,o,s)}function i(o){var s=o+"axis",u={_fullLayout:{}};return u._fullLayout[s]=t[s],Nce.coercePosition(r,u,n,o,o,.5)}var l=n("visible");l&&(Bce(e,r,a.fullLayout,n),i("x"),i("y"),i("z"),p4.noneOrAll(e,r,["x","y","z"]),r.xref="x",r.yref="y",r.zref="z",n("xanchor"),n("yanchor"),n("xshift"),n("yshift"),r.showarrow&&(r.axref="pixel",r.ayref="pixel",n("ax",-10),n("ay",-30),p4.noneOrAll(e,r,["ax","ay"])))}});var Vz=J((U4e,Gz)=>{"use strict";var Yz=Fe(),Uz=Mt();Gz.exports=function(r){for(var t=r.fullSceneLayout,a=t.annotations,n=0;n{"use strict";function m4(e,r){var t=[0,0,0,0],a,n;for(a=0;a<4;++a)for(n=0;n<4;++n)t[n]+=e[4*a+n]*r[a];return t}function Uce(e,r){var t=m4(e.projection,m4(e.view,m4(e.model,[r[0],r[1],r[2],1])));return t}Xz.exports=Uce});var Jz=J((V4e,Zz)=>{"use strict";var Gce=Th().drawRaw,Vce=Wz(),Xce=["x","y","z"];Zz.exports=function(r){for(var t=r.fullSceneLayout,a=r.dataScale,n=t.annotations,i=0;i1){o=!0;break}}o?r.fullLayout._infolayer.select(".annotation-"+r.id+'[data-index="'+i+'"]').remove():(l._pdata=Vce(r.glplot.cameraParams,[t.xaxis.r2l(l.x)*a[0],t.yaxis.r2l(l.y)*a[1],t.zaxis.r2l(l.z)*a[2]]),Gce(r.graphDiv,l,i,r.id,l._xa,l._ya))}}});var jz=J((X4e,Kz)=>{"use strict";var Wce=kr(),$z=Fe();Kz.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:Ah()}}},layoutAttributes:Ah(),handleDefaults:Oz(),includeBasePlot:Zce,convert:Vz(),draw:Jz()};function Zce(e,r){var t=Wce.subplotsRegistry.gl3d;if(t)for(var a=t.attrRegex,n=Object.keys(e),i=0;i{"use strict";var W4e=(_a(),Xe(xa)),Qz=Ia(),eF=Ls().line,Jce=ji().dash,Ni=va().extendFlat,$ce=yt().templatedArray,Z4e=(bc(),Xe(yc)),gu=xi(),rF=lu(),{shapeTexttemplateAttrs:Kce,templatefallbackAttrs:jce}=rs(),Qce=T2();tF.exports=$ce("shape",{visible:Ni({},gu.visible,{editType:"calc+arraydraw"}),showlegend:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},legend:Ni({},gu.legend,{editType:"calc+arraydraw"}),legendgroup:Ni({},gu.legendgroup,{editType:"calc+arraydraw"}),legendgrouptitle:{text:Ni({},gu.legendgrouptitle.text,{editType:"calc+arraydraw"}),font:Qz({editType:"calc+arraydraw"}),editType:"calc+arraydraw"},legendrank:Ni({},gu.legendrank,{editType:"calc+arraydraw"}),legendwidth:Ni({},gu.legendwidth,{editType:"calc+arraydraw"}),type:{valType:"enumerated",values:["circle","rect","path","line"],editType:"calc+arraydraw"},layer:{valType:"enumerated",values:["below","above","between"],dflt:"above",editType:"arraydraw"},xref:Ni({},rF.xref,{arrayOk:!0}),xsizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},xanchor:{valType:"any",editType:"calc+arraydraw"},x0:{valType:"any",editType:"calc+arraydraw"},x1:{valType:"any",editType:"calc+arraydraw"},x0shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},x1shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},yref:Ni({},rF.yref,{arrayOk:!0}),ysizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},yanchor:{valType:"any",editType:"calc+arraydraw"},y0:{valType:"any",editType:"calc+arraydraw"},y1:{valType:"any",editType:"calc+arraydraw"},y0shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},y1shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},path:{valType:"string",editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},line:{color:Ni({},eF.color,{editType:"arraydraw"}),width:Ni({},eF.width,{editType:"calc+arraydraw"}),dash:Ni({},Jce,{editType:"arraydraw"}),editType:"calc+arraydraw"},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd",editType:"arraydraw"},editable:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},label:{text:{valType:"string",dflt:"",editType:"arraydraw"},texttemplate:Kce({},{keys:Object.keys(Qce)}),texttemplatefallback:jce({editType:"arraydraw"}),font:Qz({editType:"calc+arraydraw",colorEditType:"arraydraw"}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"],editType:"arraydraw"},textangle:{valType:"angle",dflt:"auto",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],editType:"calc+arraydraw"},padding:{valType:"number",dflt:3,min:0,editType:"arraydraw"},editType:"arraydraw"},editType:"arraydraw"})});var nF=J(($4e,aF)=>{"use strict";var yu=Fe(),Un=Mt(),eve=Ci(),rve=g4(),Oc=yo();aF.exports=function(r,t){eve(r,t,{name:"shapes",handleItemDefaults:ave})};function tve(e,r){return e?"bottom":r.indexOf("top")!==-1?"top":r.indexOf("bottom")!==-1?"bottom":"middle"}function ave(e,r,t){function a(M,b){return yu.coerce(e,r,rve,M,b)}r._isShape=!0;var n=a("visible");if(!n)return;var i=a("showlegend");a("legend"),a("legendgroup"),i&&(a("legendwidth"),a("legendgrouptitle.text"),yu.coerceFont(a,"legendgrouptitle.font"),a("legendrank"));var l=a("path"),o=l?"path":"rect",s=a("type",o),u=s!=="path";u&&delete r.path,a("editable"),a("layer"),a("opacity"),a("fillcolor"),a("fillrule");var f=a("line.width");f&&(a("line.color"),a("line.dash"));var c=a("xsizemode"),d=a("ysizemode");let h=[.25,.75],p=[0,10];["x","y"].forEach(M=>{var b=M+"anchor",T=M==="x"?c:d,S={_fullLayout:t},C,L,q,P;let z=M+"ref",N=e[z];if(Array.isArray(N)&&N.length>0){let H=Oc.countDefiningCoords(s,l,M);P=Un.coerceRefArray(e,r,S,M,void 0,"paper",H),r["_"+M+"refArray"]=!0}else P=Un.coerceRef(e,r,S,M,void 0,"paper");if(Array.isArray(P))P.forEach(function(H){Un.getRefType(H)==="range"&&(C=Un.getFromId(S,H),C&&C._shapeIndices.indexOf(r._index)===-1&&C._shapeIndices.push(r._index))}),u&&[0,1].forEach(function(H){let B=P[H];Un.getRefType(B)==="range"?(C=Un.getFromId(S,B),L=Oc.shapePositionToRange(C),q=Oc.rangeToShapePosition(C),(C.type==="category"||C.type==="multicategory")&&a(M+H+"shift")):L=q=yu.identity;let V=M+H,O=e[V];if(e[V]=L(e[V],!0),T==="pixel"?a(V,p[H]):Un.coercePosition(r,S,a,B,V,h[H]),r[V]=q(r[V]),e[V]=O,H===0&&T==="pixel"){let U=e[b];e[b]=L(e[b],!0),Un.coercePosition(r,S,a,B,b,.25),r[b]=q(r[b]),e[b]=U}});else{if(Un.getRefType(P)==="range"?(C=Un.getFromId(S,P),C._shapeIndices.push(r._index),q=Oc.rangeToShapePosition(C),L=Oc.shapePositionToRange(C),u&&(C.type==="category"||C.type==="multicategory")&&(a(M+"0shift"),a(M+"1shift"))):L=q=yu.identity,u){let B=M+"0",I=M+"1",V=e[B],O=e[I];e[B]=L(e[B],!0),e[I]=L(e[I],!0),T==="pixel"?(a(B,p[0]),a(I,p[1])):(Un.coercePosition(r,S,a,P,B,h[0]),Un.coercePosition(r,S,a,P,I,h[1])),r[B]=q(r[B]),r[I]=q(r[I]),e[B]=V,e[I]=O}if(T==="pixel"){let B=e[b];e[b]=L(e[b],!0),Un.coercePosition(r,S,a,P,b,.25),r[b]=q(r[b]),e[b]=B}}}),u&&yu.noneOrAll(e,r,["x0","x1","y0","y1"]);var g=s==="line",y,x;if(u&&(y=a("label.texttemplate"),a("label.texttemplatefallback")),y||(x=a("label.text")),x||y){a("label.textangle");var w=a("label.textposition",g?"middle":"middle center");a("label.xanchor"),a("label.yanchor",tve(g,w)),a("label.padding"),yu.coerceFont(a,"label.font",t.font)}}});var oF=J((K4e,lF)=>{"use strict";var nve=Nr(),iF=Fe();function ive(e,r){return e?"bottom":r.indexOf("top")!==-1?"top":r.indexOf("bottom")!==-1?"bottom":"middle"}lF.exports=function(r,t,a){a("newshape.visible"),a("newshape.name"),a("newshape.showlegend"),a("newshape.legend"),a("newshape.legendwidth"),a("newshape.legendgroup"),a("newshape.legendgrouptitle.text"),iF.coerceFont(a,"newshape.legendgrouptitle.font"),a("newshape.legendrank"),a("newshape.drawdirection"),a("newshape.layer"),a("newshape.fillcolor"),a("newshape.fillrule"),a("newshape.opacity");var n=a("newshape.line.width");if(n){var i=(r||{}).plot_bgcolor||"#FFF";a("newshape.line.color",nve.contrast(i)),a("newshape.line.dash")}var l=r.dragmode==="drawline",o=a("newshape.label.text"),s=a("newshape.label.texttemplate");if(a("newshape.label.texttemplatefallback"),o||s){a("newshape.label.textangle");var u=a("newshape.label.textposition",l?"middle":"middle center");a("newshape.label.xanchor"),a("newshape.label.yanchor",ive(l,u)),a("newshape.label.padding"),iF.coerceFont(a,"newshape.label.font",t.font)}a("activeshape.fillcolor"),a("activeshape.opacity")}});var hF=J((j4e,dF)=>{"use strict";var y4=Fe(),di=Mt(),pl=(jf(),Xe(Kf)),b4=yo();dF.exports=function(r){var t=r._fullLayout,a=y4.filterVisible(t.shapes);if(!(!a.length||!r._fullData.length))for(var n=0;n{l=di.getFromId(r,c),i._extremes[l._id]=di.findExtremes(l,d,uF(i))})}else i.xref!=="paper"&&s!=="domain"&&(l=di.getFromId(r,i.xref),o=cF(l,i,pl.paramIsX),o&&(i._extremes[l._id]=di.findExtremes(l,o,uF(i))));if(u==="array"){let f=sF(r,i,"y");Object.entries(f).forEach(([c,d])=>{l=di.getFromId(r,c),i._extremes[l._id]=di.findExtremes(l,d,fF(i))})}else i.yref!=="paper"&&u!=="domain"&&(l=di.getFromId(r,i.yref),o=cF(l,i,pl.paramIsY),o&&(i._extremes[l._id]=di.findExtremes(l,o,fF(i))))}};function sF(e,r,t){let a=r[t+"ref"],n=t==="x"?pl.paramIsX:pl.paramIsY;function i(c,d){c==="paper"||di.getRefType(c)==="domain"||(l[c]||(l[c]=[]),l[c].push(d))}let l={};if(r.type==="path"&&r.path){let c=r.path.match(pl.segmentRE)||[];for(var o=0,s=0;sp&&(i(a[o],g[p]),o++)}}else i(a[0],r[t+"0"]),i(a[1],r[t+"1"]);let u={};for(let c in l){let d=di.getFromId(e,c);if(d){var f=d.type==="category"||d.type==="multicategory"?d.r2c:d.d2c;d.type==="date"&&(f=b4.decodeDate(f)),u[d._id]=l[c].map(f)}}return u}function uF(e){return vF(e.line.width,e.xsizemode,e.x0,e.x1,e.path,!1)}function fF(e){return vF(e.line.width,e.ysizemode,e.y0,e.y1,e.path,!0)}function vF(e,r,t,a,n,i){var l=e/2,o=i;if(r==="pixel"){var s=n?b4.extractPathCoords(n,i?pl.paramIsY:pl.paramIsX):[t,a],u=y4.aggNums(Math.max,null,s),f=y4.aggNums(Math.min,null,s),c=f<0?Math.abs(f)+l:l,d=u>0?u+l:l;return{ppad:l,ppadplus:o?c:d,ppadminus:o?d:c}}else return{ppad:l}}function cF(e,r,t){var a=e._id.charAt(0)==="x"?"x":"y",n=e.type==="category"||e.type==="multicategory",i,l,o=0,s=0,u=n?e.r2c:e.d2c,f=r[a+"sizemode"]==="scaled";if(f?(i=r[a+"0"],l=r[a+"1"],n&&(o=r[a+"0shift"],s=r[a+"1shift"])):(i=r[a+"anchor"],l=r[a+"anchor"]),i!==void 0)return[u(i)+o,u(l)+s];if(r.path){var c=1/0,d=-1/0,h=r.path.match(pl.segmentRE),p,g,y,x,w;for(e.type==="date"&&(u=b4.decodeDate(u)),p=0;pd&&(d=w)));if(d>=c)return[c,d]}}});var gF=J((Q4e,mF)=>{"use strict";var pF=dd();mF.exports={moduleType:"component",name:"shapes",layoutAttributes:g4(),supplyLayoutDefaults:nF(),supplyDrawNewShapeDefaults:oF(),includeBasePlot:_c()("shapes"),calcAutorange:hF(),draw:pF.draw,drawOne:pF.drawOne}});var x4=J((rxe,bF)=>{"use strict";var yF=(_a(),Xe(xa)),lve=yt().templatedArray,exe=(bc(),Xe(yc));bF.exports=lve("image",{visible:{valType:"boolean",dflt:!0,editType:"arraydraw"},source:{valType:"string",editType:"arraydraw"},layer:{valType:"enumerated",values:["below","above"],dflt:"above",editType:"arraydraw"},sizex:{valType:"number",dflt:0,editType:"arraydraw"},sizey:{valType:"number",dflt:0,editType:"arraydraw"},sizing:{valType:"enumerated",values:["fill","contain","stretch"],dflt:"contain",editType:"arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},x:{valType:"any",dflt:0,editType:"arraydraw"},y:{valType:"any",dflt:0,editType:"arraydraw"},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left",editType:"arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],dflt:"top",editType:"arraydraw"},xref:{valType:"enumerated",values:["paper",yF.idRegex.x.toString()],dflt:"paper",editType:"arraydraw"},yref:{valType:"enumerated",values:["paper",yF.idRegex.y.toString()],dflt:"paper",editType:"arraydraw"},editType:"arraydraw"})});var _F=J((txe,xF)=>{"use strict";var ove=Fe(),_4=Mt(),sve=Ci(),uve=x4(),fve="images";xF.exports=function(r,t){var a={name:fve,handleItemDefaults:cve};sve(r,t,a)};function cve(e,r,t){function a(d,h){return ove.coerce(e,r,uve,d,h)}var n=a("source"),i=a("visible",!!n);if(!i)return r;a("layer"),a("xanchor"),a("yanchor"),a("sizex"),a("sizey"),a("sizing"),a("opacity");for(var l={_fullLayout:t},o=["x","y"],s=0;s<2;s++){var u=o[s],f=_4.coerceRef(e,r,l,u,"paper",void 0);if(f!=="paper"){var c=_4.getFromId(l,f);c._imgIndices.push(r._index)}_4.coercePosition(r,l,a,f,u,0)}return r}});var AF=J((axe,TF)=>{"use strict";var wF=Or(),vve=ot(),bu=Mt(),MF=ha(),dve=(fs(),Xe(us));TF.exports=function(r){var t=r._fullLayout,a=[],n={},i=[],l,o;for(o=0;o{"use strict";var kF=Zr(),hve=Yv();CF.exports=function(r,t,a,n){t=t||{};var i=a==="log"&&t.type==="linear",l=a==="linear"&&t.type==="log";if(i||l){for(var o=r._fullLayout.images,s=t._id.charAt(0),u,f,c=0;c{"use strict";DF.exports={moduleType:"component",name:"images",layoutAttributes:x4(),supplyLayoutDefaults:_F(),includeBasePlot:_c()("images"),draw:AF(),convertCoords:SF()}});var kh={};Nt(kh,{activeColor:()=>Bve,arrowOffsetX:()=>Fve,arrowPadX:()=>qve,arrowSymbol:()=>Ove,autoMarginIdRoot:()=>kve,blankHeaderOpts:()=>Cve,buttonClassName:()=>wve,containerClassName:()=>mve,dropdownButtonClassName:()=>_ve,dropdownButtonGroupClassName:()=>xve,gapButton:()=>Ive,gapButtonHeader:()=>Nve,headerArrowClassName:()=>bve,headerClassName:()=>yve,headerGroupClassName:()=>gve,hoverColor:()=>Hve,itemRectClassName:()=>Mve,itemTextClassName:()=>Tve,menuIndexAttrName:()=>Ave,minHeight:()=>Dve,minWidth:()=>Sve,name:()=>pve,rx:()=>Eve,ry:()=>Pve,textOffsetX:()=>Rve,textOffsetY:()=>zve,textPadX:()=>Lve});var pve,mve,gve,yve,bve,xve,_ve,wve,Mve,Tve,Ave,kve,Cve,Sve,Dve,Lve,qve,Eve,Pve,Rve,zve,Fve,Nve,Ive,Bve,Hve,Ove,Ch=Ft(()=>{"use strict";pve="updatemenus",mve="updatemenu-container",gve="updatemenu-header-group",yve="updatemenu-header",bve="updatemenu-header-arrow",xve="updatemenu-dropdown-button-group",_ve="updatemenu-dropdown-button",wve="updatemenu-button",Mve="updatemenu-item-rect",Tve="updatemenu-item-text",Ave="updatemenu-active-index",kve="updatemenu-",Cve={label:" "},Sve=30,Dve=30,Lve=24,qve=16,Eve=2,Pve=2,Rve=12,zve=3,Fve=4,Nve=5,Ive=2,Bve="#F4FAFF",Hve="#F4FAFF",Ove={left:"\u25C4",right:"\u25BA",up:"\u25B2",down:"\u25BC"}});var w4=J((lxe,EF)=>{"use strict";var Yve=Ia(),Uve=$i(),Gve=va().extendFlat,Vve=Ki().overrideAll,Xve=A2(),qF=yt().templatedArray,Wve=qF("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}});EF.exports=Vve(qF("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:Wve,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:Gve(Xve({editType:"arraydraw"}),{}),font:Yve({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:Uve.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")});var FF=J((oxe,zF)=>{"use strict";var Sh=Fe(),PF=Ci(),RF=w4(),Zve=(Ch(),Xe(kh)),Jve=Zve.name,$ve=RF.buttons;zF.exports=function(r,t){var a={name:Jve,handleItemDefaults:Kve};PF(r,t,a)};function Kve(e,r,t){function a(l,o){return Sh.coerce(e,r,RF,l,o)}var n=PF(e,r,{name:"buttons",handleItemDefaults:jve}),i=a("visible",n.length>0);i&&(a("active"),a("direction"),a("type"),a("showactive"),a("x"),a("y"),Sh.noneOrAll(e,r,["x","y"]),a("xanchor"),a("yanchor"),a("pad.t"),a("pad.r"),a("pad.b"),a("pad.l"),Sh.coerceFont(a,"font",t.font),a("bgcolor",t.paper_bgcolor),a("bordercolor"),a("borderwidth"))}function jve(e,r){function t(n,i){return Sh.coerce(e,r,$ve,n,i)}var a=t("visible",e.method==="skip"||Array.isArray(e.args));a&&(t("method"),t("args"),t("args2"),t("label"),t("execute"))}});var BF=J((sxe,IF)=>{"use strict";IF.exports=Pt;var Ii=Or(),NF=Nr(),xu=ot(),Dh=Fe();function Pt(e,r,t){this.gd=e,this.container=r,this.id=t,this.position=null,this.translateX=null,this.translateY=null,this.hbar=null,this.vbar=null,this.bg=this.container.selectAll("rect.scrollbox-bg").data([0]),this.bg.exit().on(".drag",null).on("wheel",null).remove(),this.bg.enter().append("rect").classed("scrollbox-bg",!0).style("pointer-events","all").attr({opacity:0,x:0,y:0,width:0,height:0})}Pt.barWidth=2;Pt.barLength=20;Pt.barRadius=2;Pt.barPad=1;Pt.barColor="#808BA4";Pt.prototype.enable=function(r,t,a){var n=this.gd._fullLayout,i=n.width,l=n.height;this.position=r;var o=this.position.l,s=this.position.w,u=this.position.t,f=this.position.h,c=this.position.direction,d=c==="down",h=c==="left",p=c==="right",g=c==="up",y=s,x=f,w,M,b,T;!d&&!h&&!p&&!g&&(this.position.direction="down",d=!0);var S=d||g;S?(w=o,M=w+y,d?(b=u,T=Math.min(b+x,l),x=T-b):(T=u+x,b=Math.max(T-x,0),x=T-b)):(b=u,T=b+x,h?(M=o+y,w=Math.max(M-y,0),y=M-w):(w=o,M=Math.min(w+y,i),y=M-w)),this._box={l:w,t:b,w:y,h:x};var C=s>y,L=Pt.barLength+2*Pt.barPad,q=Pt.barWidth+2*Pt.barPad,P=o,z=u+f;z+q>l&&(z=l-q);var N=this.container.selectAll("rect.scrollbar-horizontal").data(C?[0]:[]);N.exit().on(".drag",null).remove(),N.enter().append("rect").classed("scrollbar-horizontal",!0).call(NF.fill,Pt.barColor),C?(this.hbar=N.attr({rx:Pt.barRadius,ry:Pt.barRadius,x:P,y:z,width:L,height:q}),this._hbarXMin=P+L/2,this._hbarTranslateMax=y-L):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var H=f>x,B=Pt.barWidth+2*Pt.barPad,I=Pt.barLength+2*Pt.barPad,V=o+s,O=u;V+B>i&&(V=i-B);var U=this.container.selectAll("rect.scrollbar-vertical").data(H?[0]:[]);U.exit().on(".drag",null).remove(),U.enter().append("rect").classed("scrollbar-vertical",!0).call(NF.fill,Pt.barColor),H?(this.vbar=U.attr({rx:Pt.barRadius,ry:Pt.barRadius,x:V,y:O,width:B,height:I}),this._vbarYMin=O+I/2,this._vbarTranslateMax=x-I):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var W=this.id,Z=w-.5,G=H?M+B+.5:M+.5,j=b-.5,ie=C?T+q+.5:T+.5,pe=n._topdefs.selectAll("#"+W).data(C||H?[0]:[]);if(pe.exit().remove(),pe.enter().append("clipPath").attr("id",W).append("rect"),C||H?(this._clipRect=pe.select("rect").attr({x:Math.floor(Z),y:Math.floor(j),width:Math.ceil(G)-Math.floor(Z),height:Math.ceil(ie)-Math.floor(j)}),this.container.call(xu.setClipUrl,W,this.gd),this.bg.attr({x:o,y:u,width:s,height:f})):(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(xu.setClipUrl,null),delete this._clipRect),C||H){var ve=Ii.behavior.drag().on("dragstart",function(){Ii.event.sourceEvent.preventDefault()}).on("drag",this._onBoxDrag.bind(this));this.container.on("wheel",null).on("wheel",this._onBoxWheel.bind(this)).on(".drag",null).call(ve);var Q=Ii.behavior.drag().on("dragstart",function(){Ii.event.sourceEvent.preventDefault(),Ii.event.sourceEvent.stopPropagation()}).on("drag",this._onBarDrag.bind(this));C&&this.hbar.on(".drag",null).call(Q),H&&this.vbar.on(".drag",null).call(Q)}this.setTranslate(t,a)};Pt.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(xu.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)};Pt.prototype._onBoxDrag=function(){var r=this.translateX,t=this.translateY;this.hbar&&(r-=Ii.event.dx),this.vbar&&(t-=Ii.event.dy),this.setTranslate(r,t)};Pt.prototype._onBoxWheel=function(){var r=this.translateX,t=this.translateY;this.hbar&&(r+=Ii.event.deltaY),this.vbar&&(t+=Ii.event.deltaY),this.setTranslate(r,t)};Pt.prototype._onBarDrag=function(){var r=this.translateX,t=this.translateY;if(this.hbar){var a=r+this._hbarXMin,n=a+this._hbarTranslateMax,i=Dh.constrain(Ii.event.x,a,n),l=(i-a)/(n-a),o=this.position.w-this._box.w;r=l*o}if(this.vbar){var s=t+this._vbarYMin,u=s+this._vbarTranslateMax,f=Dh.constrain(Ii.event.y,s,u),c=(f-s)/(u-s),d=this.position.h-this._box.h;t=c*d}this.setTranslate(r,t)};Pt.prototype.setTranslate=function(r,t){var a=this.position.w-this._box.w,n=this.position.h-this._box.h;if(r=Dh.constrain(r||0,0,a),t=Dh.constrain(t||0,0,n),this.translateX=r,this.translateY=t,this.container.call(xu.setTranslate,this._box.l-this.position.l-r,this._box.t-this.position.t-t),this._clipRect&&this._clipRect.attr({x:Math.floor(this.position.l+r-.5),y:Math.floor(this.position.t+t-.5)}),this.hbar){var i=r/a;this.hbar.call(xu.setTranslate,r+i*this._hbarTranslateMax,t)}if(this.vbar){var l=t/n;this.vbar.call(xu.setTranslate,r,t+l*this._vbarTranslateMax)}}});var JF=J((uxe,ZF)=>{"use strict";var _u=Or(),Yc=na(),Uc=Nr(),wu=ot(),Gn=Fe(),Lh=La(),Qve=yt().arrayEditor,OF=(Ja(),Xe(Za)).LINE_SPACING,Cr=(Ch(),Xe(kh)),e2e=BF();ZF.exports=function(r){var t=r._fullLayout,a=Gn.filterVisible(t[Cr.name]);function n(d){Yc.autoMargin(r,XF(d))}var i=t._menulayer.selectAll("g."+Cr.containerClassName).data(a.length>0?[0]:[]);if(i.enter().append("g").classed(Cr.containerClassName,!0).style("cursor","pointer"),i.exit().each(function(){_u.select(this).selectAll("g."+Cr.headerGroupClassName).each(n)}).remove(),a.length!==0){var l=i.selectAll("g."+Cr.headerGroupClassName).data(a,r2e);l.enter().append("g").classed(Cr.headerGroupClassName,!0);for(var o=Gn.ensureSingle(i,"g",Cr.dropdownButtonGroupClassName,function(d){d.style("pointer-events","all")}),s=0;s{"use strict";var s2e=(Ch(),Xe(kh));$F.exports={moduleType:"component",name:s2e.name,layoutAttributes:w4(),supplyLayoutDefaults:FF(),draw:JF()}});var Vc={};Nt(Vc,{arrowOffsetX:()=>S2e,autoMarginIdRoot:()=>T2e,containerClassName:()=>f2e,currentValueClass:()=>_2e,currentValueInset:()=>r1e,currentValuePadding:()=>e1e,gripBgActiveColor:()=>G2e,gripBgColor:()=>U2e,gripBorder:()=>H2e,gripBorderColor:()=>Y2e,gripBorderWidth:()=>O2e,gripHeight:()=>B2e,gripRadius:()=>N2e,gripRectClass:()=>p2e,gripWidth:()=>I2e,groupClassName:()=>c2e,inputAreaClass:()=>v2e,inputProxyClass:()=>g2e,labelClass:()=>x2e,labelGroupClass:()=>b2e,labelOffset:()=>X2e,labelPadding:()=>V2e,labelsClass:()=>y2e,menuIndexAttrName:()=>M2e,minHeight:()=>k2e,minWidth:()=>A2e,minorTickColor:()=>j2e,minorTickLength:()=>Q2e,minorTickOffset:()=>K2e,name:()=>u2e,railBgColor:()=>R2e,railBorder:()=>q2e,railBorderColor:()=>P2e,railBorderWidth:()=>E2e,railHeight:()=>w2e,railInset:()=>z2e,railRadius:()=>D2e,railRectClass:()=>d2e,railTouchRectClass:()=>h2e,railWidth:()=>L2e,stepInset:()=>F2e,textPadX:()=>C2e,tickColor:()=>Z2e,tickLength:()=>$2e,tickOffset:()=>J2e,tickRectClass:()=>m2e,tickWidth:()=>W2e});var u2e,f2e,c2e,v2e,d2e,h2e,p2e,m2e,g2e,y2e,b2e,x2e,_2e,w2e,M2e,T2e,A2e,k2e,C2e,S2e,D2e,L2e,q2e,E2e,P2e,R2e,z2e,F2e,N2e,I2e,B2e,H2e,O2e,Y2e,U2e,G2e,V2e,X2e,W2e,Z2e,J2e,$2e,K2e,j2e,Q2e,e1e,r1e,Xc=Ft(()=>{"use strict";u2e="sliders",f2e="slider-container",c2e="slider-group",v2e="slider-input-area",d2e="slider-rail-rect",h2e="slider-rail-touch-rect",p2e="slider-grip-rect",m2e="slider-tick-rect",g2e="slider-input-proxy",y2e="slider-labels",b2e="slider-label-group",x2e="slider-label",_2e="slider-current-value",w2e=5,M2e="slider-active-index",T2e="slider-",A2e=30,k2e=30,C2e=40,S2e=4,D2e=2,L2e=5,q2e=4,E2e=1,P2e="#bec8d9",R2e="#f8fafc",z2e=8,F2e=10,N2e=10,I2e=20,B2e=20,H2e=20,O2e=1,Y2e="#bec8d9",U2e="#f6f8fa",G2e="#dbdde0",V2e=8,X2e=0,W2e=1,Z2e="#333",J2e=25,$2e=7,K2e=25,j2e="#333",Q2e=4,e1e=8,r1e=0});var k4=J((cxe,eN)=>{"use strict";var jF=Ia(),t1e=A2(),a1e=va().extendDeepAll,n1e=Ki().overrideAll,i1e=bf(),QF=yt().templatedArray,Os=(Xc(),Xe(Vc)),l1e=QF("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}});eN.exports=n1e(QF("slider",{visible:{valType:"boolean",dflt:!0},active:{valType:"number",min:0,dflt:0},steps:l1e,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:a1e(t1e({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:i1e.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:jF({})},font:jF({}),activebgcolor:{valType:"color",dflt:Os.gripBgActiveColor},bgcolor:{valType:"color",dflt:Os.railBgColor},bordercolor:{valType:"color",dflt:Os.railBorderColor},borderwidth:{valType:"number",min:0,dflt:Os.railBorderWidth},ticklen:{valType:"number",min:0,dflt:Os.tickLength},tickcolor:{valType:"color",dflt:Os.tickColor},tickwidth:{valType:"number",min:0,dflt:1},minorticklen:{valType:"number",min:0,dflt:Os.minorTickLength}}),"arraydraw","from-root")});var nN=J((vxe,aN)=>{"use strict";var Mu=Fe(),rN=Ci(),tN=k4(),o1e=(Xc(),Xe(Vc)),s1e=o1e.name,u1e=tN.steps;aN.exports=function(r,t){rN(r,t,{name:s1e,handleItemDefaults:f1e})};function f1e(e,r,t){function a(c,d){return Mu.coerce(e,r,tN,c,d)}for(var n=rN(e,r,{name:"steps",handleItemDefaults:c1e}),i=0,l=0;l{"use strict";var Bi=Or(),qh=na(),Ao=Nr(),Hi=ot(),Vn=Fe(),v1e=Vn.strTranslate,Wc=La(),d1e=yt().arrayEditor,Ir=(Xc(),Xe(Vc)),D4=(Ja(),Xe(Za)),oN=D4.LINE_SPACING,C4=D4.FROM_TL,S4=D4.FROM_BR;dN.exports=function(r){var t=r._context.staticPlot,a=r._fullLayout,n=h1e(a,r),i=a._infolayer.selectAll("g."+Ir.containerClassName).data(n.length>0?[0]:[]);i.enter().append("g").classed(Ir.containerClassName,!0).style("cursor",t?null:"ew-resize");function l(f){f._commandObserver&&(f._commandObserver.remove(),delete f._commandObserver),qh.autoMargin(r,sN(f))}if(i.exit().each(function(){Bi.select(this).selectAll("g."+Ir.groupClassName).each(l)}).remove(),n.length!==0){var o=i.selectAll("g."+Ir.groupClassName).data(n,p1e);o.enter().append("g").classed(Ir.groupClassName,!0),o.exit().each(l).remove();for(var s=0;s0&&(o=o.transition().duration(r.transition.duration).ease(r.transition.easing)),o.attr("transform",v1e(l-Ir.gripWidth*.5,r._dims.currentValueTotalHeight))}}function L4(e,r){var t=e._dims;return t.inputAreaStart+Ir.stepInset+(t.inputAreaLength-2*Ir.stepInset)*Math.min(1,Math.max(0,r))}function lN(e,r){var t=e._dims;return Math.min(1,Math.max(0,(r-Ir.stepInset-t.inputAreaStart)/(t.inputAreaLength-2*Ir.stepInset-2*t.inputAreaStart)))}function w1e(e,r,t){var a=t._dims,n=Vn.ensureSingle(e,"rect",Ir.railTouchRectClass,function(i){i.call(cN,r,e,t).style("pointer-events","all")});n.attr({width:a.inputAreaLength,height:Math.max(a.inputAreaWidth,Ir.tickOffset+t.ticklen+a.labelHeight)}).call(Ao.fill,t.bgcolor).attr("opacity",0),Hi.setTranslate(n,0,a.currentValueTotalHeight)}function M1e(e,r){var t=r._dims,a=t.inputAreaLength-Ir.railInset*2,n=Vn.ensureSingle(e,"rect",Ir.railRectClass);n.attr({width:a,height:Ir.railWidth,rx:Ir.railRadius,ry:Ir.railRadius,"shape-rendering":"crispEdges"}).call(Ao.stroke,r.bordercolor).call(Ao.fill,r.bgcolor).style("stroke-width",r.borderwidth+"px"),Hi.setTranslate(n,Ir.railInset,(t.inputAreaWidth-Ir.railWidth)*.5+t.currentValueTotalHeight)}});var mN=J((hxe,pN)=>{"use strict";var T1e=(Xc(),Xe(Vc));pN.exports={moduleType:"component",name:T1e.name,layoutAttributes:k4(),supplyLayoutDefaults:nN(),draw:hN()}});var Ph=J((pxe,yN)=>{"use strict";var gN=$i();yN.exports={bgcolor:{valType:"color",dflt:gN.background,editType:"plot"},bordercolor:{valType:"color",dflt:gN.defaultLine,editType:"plot"},borderwidth:{valType:"integer",dflt:0,min:0,editType:"plot"},autorange:{valType:"boolean",dflt:!0,editType:"calc",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},range:{valType:"info_array",items:[{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}},{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}}],editType:"calc",impliedEdits:{autorange:!1}},thickness:{valType:"number",dflt:.15,min:0,max:1,editType:"plot"},visible:{valType:"boolean",dflt:!0,editType:"calc"},editType:"calc"}});var q4=J((mxe,bN)=>{"use strict";bN.exports={_isSubplotObj:!0,rangemode:{valType:"enumerated",values:["auto","fixed","match"],dflt:"match",editType:"calc"},range:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},editType:"calc"}});var Rh={};Nt(Rh,{bgClassName:()=>C1e,containerClassName:()=>k1e,extraPad:()=>$1e,grabAreaCursor:()=>V1e,grabAreaFill:()=>G1e,grabAreaMaxClassName:()=>F1e,grabAreaMinClassName:()=>P1e,grabAreaWidth:()=>X1e,grabberMaxClassName:()=>z1e,grabberMinClassName:()=>E1e,handleMaxClassName:()=>N1e,handleMinClassName:()=>R1e,handleRadius:()=>Z1e,handleStrokeWidth:()=>J1e,handleWidth:()=>W1e,maskColor:()=>H1e,maskMaxClassName:()=>L1e,maskMaxOppAxisClassName:()=>B1e,maskMinClassName:()=>D1e,maskMinOppAxisClassName:()=>I1e,maskOppAxisColor:()=>O1e,name:()=>A1e,rangePlotClassName:()=>S1e,slideBoxClassName:()=>q1e,slideBoxCursor:()=>U1e,slideBoxFill:()=>Y1e});var A1e,k1e,C1e,S1e,D1e,L1e,q1e,E1e,P1e,R1e,z1e,F1e,N1e,I1e,B1e,H1e,O1e,Y1e,U1e,G1e,V1e,X1e,W1e,Z1e,J1e,$1e,zh=Ft(()=>{"use strict";A1e="rangeslider",k1e="rangeslider-container",C1e="rangeslider-bg",S1e="rangeslider-rangeplot",D1e="rangeslider-mask-min",L1e="rangeslider-mask-max",q1e="rangeslider-slidebox",E1e="rangeslider-grabber-min",P1e="rangeslider-grabarea-min",R1e="rangeslider-handle-min",z1e="rangeslider-grabber-max",F1e="rangeslider-grabarea-max",N1e="rangeslider-handle-max",I1e="rangeslider-mask-min-opp-axis",B1e="rangeslider-mask-max-opp-axis",H1e="rgba(0,0,0,0.4)",O1e="rgba(0,0,0,0.2)",Y1e="transparent",U1e="ew-resize",G1e="transparent",V1e="col-resize",X1e=10,W1e=4,Z1e=1,J1e=1,$1e=15});var wN=J(Nh=>{"use strict";var K1e=ha(),j1e=La(),xN=(zh(),Xe(Rh)),Q1e=(Ja(),Xe(Za)).LINE_SPACING,Fh=xN.name;function _N(e){var r=e&&e[Fh];return r&&r.visible}Nh.isVisible=_N;Nh.makeData=function(e){for(var r=K1e.list({_fullLayout:e},"x",!0),t=e.margin,a=[],n=0;n{"use strict";var Ih=Fe(),MN=yt(),TN=ha(),ede=Ph(),rde=q4();AN.exports=function(r,t,a){var n=r[a],i=t[a];if(!(n.rangeslider||t._requestRangeslider[i._id]))return;Ih.isPlainObject(n.rangeslider)||(n.rangeslider={});var l=n.rangeslider,o=MN.newContainer(i,"rangeslider");function s(T,S){return Ih.coerce(l,o,ede,T,S)}var u,f;function c(T,S){return Ih.coerce(u,f,rde,T,S)}var d=s("visible");if(d){s("bgcolor",t.plot_bgcolor),s("bordercolor"),s("borderwidth"),s("thickness"),s("autorange",!i.isValidRange(l.range)),s("range");var h=t._subplots;if(h)for(var p=h.cartesian.filter(function(T){return T.slice(0,Math.max(0,T.indexOf("y")))===TN.name2id(a)}).map(function(T){return T.slice(T.indexOf("y"),T.length)}),g=Ih.simpleMap(p,TN.id2name),y=0;y{"use strict";var tde=ha().list,ade=Nf().getAutoRange,nde=(zh(),Xe(Rh));CN.exports=function(r){for(var t=tde(r,"x",!0),a=0;a{"use strict";var Bh=Or(),ide=kr(),lde=na(),Vt=Fe(),Hh=Vt.strTranslate,LN=ot(),ko=Nr(),ode=zf(),sde=wh(),E4=ha(),ude=Li(),fde=vo(),Ur=(zh(),Xe(Rh));qN.exports=function(e){for(var r=e._fullLayout,t=r._rangeSliderData,a=0;a=U.max)V=z[O+1];else if(I=U.pmax)V=z[O+1];else if(I0?e.touches[0].clientX:0}function cde(e,r,t,a){if(r._context.staticPlot)return;var n=e.select("rect."+Ur.slideBoxClassName).node(),i=e.select("rect."+Ur.grabAreaMinClassName).node(),l=e.select("rect."+Ur.grabAreaMaxClassName).node();function o(){var s=Bh.event,u=s.target,f=DN(s),c=f-e.node().getBoundingClientRect().left,d=a.d2p(t._rl[0]),h=a.d2p(t._rl[1]),p=ude.coverSlip();this.addEventListener("touchmove",g),this.addEventListener("touchend",y),p.addEventListener("mousemove",g),p.addEventListener("mouseup",y);function g(x){var w=DN(x),M=+w-f,b,T,S;switch(u){case n:if(S="ew-resize",d+M>t._length||h+M<0)return;b=d+M,T=h+M;break;case i:if(S="col-resize",d+M>t._length)return;b=d+M,T=h;break;case l:if(S="col-resize",h+M<0)return;b=d,T=h+M;break;default:S="ew-resize",b=c,T=c+M;break}if(T{"use strict";var _de=Fe(),wde=Ph(),Mde=q4(),P4=wN();PN.exports={moduleType:"component",name:"rangeslider",schema:{subplots:{xaxis:{rangeslider:_de.extendFlat({},wde,{yaxis:Mde})}}},layoutAttributes:Ph(),handleDefaults:kN(),calcAutorange:SN(),draw:EN(),isVisible:P4.isVisible,makeData:P4.makeData,autoMarginOpts:P4.autoMarginOpts}});var Oh=J((wxe,FN)=>{"use strict";var Tde=Ia(),zN=$i(),Ade=yt().templatedArray,kde=Ade("button",{visible:{valType:"boolean",dflt:!0,editType:"plot"},step:{valType:"enumerated",values:["month","year","day","hour","minute","second","all"],dflt:"month",editType:"plot"},stepmode:{valType:"enumerated",values:["backward","todate"],dflt:"backward",editType:"plot"},count:{valType:"number",min:0,dflt:1,editType:"plot"},label:{valType:"string",editType:"plot"},editType:"plot"});FN.exports={visible:{valType:"boolean",editType:"plot"},buttons:kde,x:{valType:"number",min:-2,max:3,editType:"plot"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"plot"},y:{valType:"number",min:-2,max:3,editType:"plot"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"bottom",editType:"plot"},font:Tde({editType:"plot"}),bgcolor:{valType:"color",dflt:zN.lightLine,editType:"plot"},activecolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:zN.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"}});var R4={};Nt(R4,{darkAmount:()=>Ede,lightAmount:()=>qde,minButtonWidth:()=>Sde,rx:()=>Dde,ry:()=>Lde,yPad:()=>Cde});var Cde,Sde,Dde,Lde,qde,Ede,z4=Ft(()=>{"use strict";Cde=.02,Sde=30,Dde=3,Lde=3,qde=25,Ede=10});var BN=J((Mxe,IN)=>{"use strict";var Yh=Fe(),Pde=Nr(),Rde=yt(),zde=Ci(),NN=Oh(),F4=(z4(),Xe(R4));IN.exports=function(r,t,a,n,i){var l=r.rangeselector||{},o=Rde.newContainer(t,"rangeselector");function s(h,p){return Yh.coerce(l,o,NN,h,p)}var u=zde(l,o,{name:"buttons",handleItemDefaults:Fde,calendar:i}),f=s("visible",u.length>0);if(f){var c=Nde(t,a,n);s("x",c[0]),s("y",c[1]),Yh.noneOrAll(r,t,["x","y"]),s("xanchor"),s("yanchor"),Yh.coerceFont(s,"font",a.font);var d=s("bgcolor");s("activecolor",Pde.contrast(d,F4.lightAmount,F4.darkAmount)),s("bordercolor"),s("borderwidth")}};function Fde(e,r,t,a){var n=a.calendar;function i(s,u){return Yh.coerce(e,r,NN.buttons,s,u)}var l=i("visible");if(l){var o=i("step");o!=="all"&&(n&&n!=="gregorian"&&(o==="month"||o==="year")?r.stepmode="backward":i("stepmode"),i("count")),i("label")}}function Nde(e,r,t){for(var a=t.filter(function(o){return r[o].anchor===e._id}),n=0,i=0;i{"use strict";var Ide=Xp(),Bde=Fe().titleCase;HN.exports=function(r,t){var a=r._name,n={};if(t.step==="all")n[a+".autorange"]=!0;else{var i=Hde(r,t);n[a+".range[0]"]=i[0],n[a+".range[1]"]=i[1]}return n};function Hde(e,r){var t=e.range,a=new Date(e.r2l(t[1])),n=r.step,i=Ide["utc"+Bde(n)],l=r.count,o;switch(r.stepmode){case"backward":o=e.l2r(+i.offset(a,-l));break;case"todate":var s=i.offset(a,-l);o=e.l2r(+i.ceil(s));break}var u=t[1];return[o,u]}});var JN=J((Axe,ZN)=>{"use strict";var Gh=Or(),Ode=kr(),Yde=na(),YN=Nr(),WN=ot(),zl=Fe(),UN=zl.strTranslate,Uh=La(),Ude=ha(),B4=(Ja(),Xe(Za)),GN=B4.LINE_SPACING,VN=B4.FROM_TL,XN=B4.FROM_BR,I4=(z4(),Xe(R4)),Gde=ON();ZN.exports=function(r){var t=r._fullLayout,a=t._infolayer.selectAll(".rangeselector").data(Vde(r),Xde);a.enter().append("g").classed("rangeselector",!0),a.exit().remove(),a.style({cursor:"pointer","pointer-events":"all"}),a.each(function(n){var i=Gh.select(this),l=n,o=l.rangeselector,s=i.selectAll("g.button").data(zl.filterVisible(o.buttons));s.enter().append("g").classed("button",!0),s.exit().remove(),s.each(function(u){var f=Gh.select(this),c=Gde(l,u);u._isActive=Wde(l,u,c),f.call(N4,o,u),f.call(Jde,o,u,r),f.on("click",function(){r._dragged||Ode.call("_guiRelayout",r,c)}),f.on("mouseover",function(){u._isHovered=!0,f.call(N4,o,u)}),f.on("mouseout",function(){u._isHovered=!1,f.call(N4,o,u)})}),Kde(r,s,o,l._name,i)})};function Vde(e){for(var r=Ude.list(e,"x",!0),t=[],a=0;a{"use strict";$N.exports={moduleType:"component",name:"rangeselector",schema:{subplots:{xaxis:{rangeselector:Oh()}}},layoutAttributes:Oh(),handleDefaults:BN(),draw:JN()}});var Vh=J(H4=>{"use strict";var jN=va().extendFlat;H4.attributes=function(e,r){e=e||{},r=r||{};var t={valType:"info_array",editType:e.editType,items:[{valType:"number",min:0,max:1,editType:e.editType},{valType:"number",min:0,max:1,editType:e.editType}],dflt:[0,1]},a=e.name?e.name+" ":"",n=e.trace?"trace":"subplot",i=r.description?" "+r.description:"",l={x:jN({},t,{}),y:jN({},t,{}),editType:e.editType};return e.noGridCell||(l.row={valType:"integer",min:0,dflt:0,editType:e.editType},l.column={valType:"integer",min:0,dflt:0,editType:e.editType}),l};H4.defaults=function(e,r,t,a){var n=a&&a.x||[0,1],i=a&&a.y||[0,1],l=r.grid;if(l){var o=t("domain.column");o!==void 0&&(o{"use strict";var jde=Fe(),Qde=(w0(),Xe(gf)).counter,ehe=Vh().attributes,QN=(_a(),Xe(xa)).idRegex,rhe=yt(),O4={rows:{valType:"integer",min:1,editType:"plot"},roworder:{valType:"enumerated",values:["top to bottom","bottom to top"],dflt:"top to bottom",editType:"plot"},columns:{valType:"integer",min:1,editType:"plot"},subplots:{valType:"info_array",freeLength:!0,dimensions:2,items:{valType:"enumerated",values:[Qde("xy").toString(),""],editType:"plot"},editType:"plot"},xaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[QN.x.toString(),""],editType:"plot"},editType:"plot"},yaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[QN.y.toString(),""],editType:"plot"},editType:"plot"},pattern:{valType:"enumerated",values:["independent","coupled"],dflt:"coupled",editType:"plot"},xgap:{valType:"number",min:0,max:1,editType:"plot"},ygap:{valType:"number",min:0,max:1,editType:"plot"},domain:ehe({name:"grid",editType:"plot",noGridCell:!0},{}),xside:{valType:"enumerated",values:["bottom","bottom plot","top plot","top"],dflt:"bottom plot",editType:"plot"},yside:{valType:"enumerated",values:["left","left plot","right plot","right"],dflt:"left plot",editType:"plot"},editType:"plot"};function Xh(e,r,t){var a=r[t+"axes"],n=Object.keys((e._splomAxes||{})[t]||{});if(Array.isArray(a))return a;if(n.length)return n}function the(e,r){var t=e.grid||{},a=Xh(r,t,"x"),n=Xh(r,t,"y");if(!e.grid&&!a&&!n)return;var i=Array.isArray(t.subplots)&&Array.isArray(t.subplots[0]),l=Array.isArray(a),o=Array.isArray(n),s=l&&a!==t.xaxes&&o&&n!==t.yaxes,u,f;i?(u=t.subplots.length,f=t.subplots[0].length):(o&&(u=n.length),l&&(f=a.length));var c=rhe.newContainer(r,"grid");function d(S,C){return jde.coerce(t,c,O4,S,C)}var h=d("rows",u),p=d("columns",f);if(!(h*p>1)){delete r.grid;return}if(!i&&!l&&!o){var g=d("pattern")==="independent";g&&(i=!0)}c._hasSubplotGrid=i;var y=d("roworder"),x=y==="top to bottom",w=i?.2:.1,M=i?.3:.1,b,T;s&&r._splomGridDflt&&(b=r._splomGridDflt.xside,T=r._splomGridDflt.yside),c._domains={x:eI("x",d,w,b,p),y:eI("y",d,M,T,h,x)}}function eI(e,r,t,a,n,i){var l=r(e+"gap",t),o=r("domain."+e);r(e+"side",a);for(var s=new Array(n),u=o[0],f=(o[1]-u)/(n-l),c=f*(1-l),d=0;d{"use strict";nI.exports={visible:{valType:"boolean",editType:"calc"},type:{valType:"enumerated",values:["percent","constant","sqrt","data"],editType:"calc"},symmetric:{valType:"boolean",editType:"calc"},array:{valType:"data_array",editType:"calc"},arrayminus:{valType:"data_array",editType:"calc"},value:{valType:"number",min:0,dflt:10,editType:"calc"},valueminus:{valType:"number",min:0,dflt:10,editType:"calc"},traceref:{valType:"integer",min:0,dflt:0,editType:"style"},tracerefminus:{valType:"integer",min:0,dflt:0,editType:"style"},copy_ystyle:{valType:"boolean",editType:"plot"},copy_zstyle:{valType:"boolean",editType:"style"},color:{valType:"color",editType:"style"},thickness:{valType:"number",min:0,dflt:2,editType:"style"},width:{valType:"number",min:0,editType:"plot"},editType:"calc"}});var oI=J((Lxe,lI)=>{"use strict";var iI=Zr(),nhe=kr(),ihe=Fe(),lhe=yt(),ohe=Y4();lI.exports=function(e,r,t,a){var n="error_"+a.axis,i=lhe.newContainer(r,n),l=e[n]||{};function o(p,g){return ihe.coerce(l,i,ohe,p,g)}var s=l.array!==void 0||l.value!==void 0||l.type==="sqrt",u=o("visible",s);if(u!==!1){var f=o("type","array"in l?"data":"percent"),c=!0;f!=="sqrt"&&(c=o("symmetric",!((f==="data"?"arrayminus":"valueminus")in l))),f==="data"?(o("array"),o("traceref"),c||(o("arrayminus"),o("tracerefminus"))):(f==="percent"||f==="constant")&&(o("value"),c||o("valueminus"));var d="copy_"+a.inherit+"style";if(a.inherit){var h=r["error_"+a.inherit];(h||{}).visible&&o(d,!(l.color||iI(l.thickness)||iI(l.width)))}(!a.inherit||!i[d])&&(o("color",t),o("thickness"),o("width",nhe.traceIs(r,"gl3d")?0:4))}}});var U4=J((qxe,uI)=>{"use strict";uI.exports=function(r){var t=r.type,a=r.symmetric;if(t==="data"){var n=r.array||[];if(a)return function(u,f){var c=+n[f];return[c,c]};var i=r.arrayminus||[];return function(u,f){var c=+n[f],d=+i[f];return!isNaN(c)||!isNaN(d)?[d||0,c||0]:[NaN,NaN]}}else{var l=sI(t,r.value),o=sI(t,r.valueminus);return a||r.valueminus===void 0?function(u){var f=l(u);return[f,f]}:function(u){return[o(u),l(u)]}}};function sI(e,r){if(e==="percent")return function(t){return Math.abs(t*r/100)};if(e==="constant")return function(){return Math.abs(r)};if(e==="sqrt")return function(t){return Math.sqrt(Math.abs(t))}}});var vI=J((Exe,cI)=>{"use strict";var G4=Zr(),she=kr(),V4=Mt(),uhe=Fe(),fhe=U4();cI.exports=function(r){for(var t=r.calcdata,a=0;a{"use strict";var dI=Or(),Co=Zr(),che=ot(),vhe=Rn();hI.exports=function(r,t,a,n){var i,l=a.xaxis,o=a.yaxis,s=n&&n.duration>0,u=r._context.staticPlot;t.each(function(f){var c=f[0].trace,d=c.error_x||{},h=c.error_y||{},p;c.ids&&(p=function(w){return w.id});var g=vhe.hasMarkers(c)&&c.marker.maxdisplayed>0;!h.visible&&!d.visible&&(f=[]);var y=dI.select(this).selectAll("g.errorbar").data(f,p);if(y.exit().remove(),!!f.length){d.visible||y.selectAll("path.xerror").remove(),h.visible||y.selectAll("path.yerror").remove(),y.style("opacity",1);var x=y.enter().append("g").classed("errorbar",!0);s&&x.style("opacity",0).transition().duration(n.duration).style("opacity",1),che.setClipUrl(y,a.layerClipId,r),y.each(function(w){var M=dI.select(this),b=dhe(w,l,o);if(!(g&&!w.vis)){var T,S=M.select("path.yerror");if(h.visible&&Co(b.x)&&Co(b.yh)&&Co(b.ys)){var C=h.width;T="M"+(b.x-C)+","+b.yh+"h"+2*C+"m-"+C+",0V"+b.ys,b.noYS||(T+="m-"+C+",0h"+2*C),i=!S.size(),i?S=M.append("path").style("vector-effect",u?"none":"non-scaling-stroke").classed("yerror",!0):s&&(S=S.transition().duration(n.duration).ease(n.easing)),S.attr("d",T)}else S.remove();var L=M.select("path.xerror");if(d.visible&&Co(b.y)&&Co(b.xh)&&Co(b.xs)){var q=(d.copy_ystyle?h:d).width;T="M"+b.xh+","+(b.y-q)+"v"+2*q+"m0,-"+q+"H"+b.xs,b.noXS||(T+="m0,-"+q+"v"+2*q),i=!L.size(),i?L=M.append("path").style("vector-effect",u?"none":"non-scaling-stroke").classed("xerror",!0):s&&(L=L.transition().duration(n.duration).ease(n.easing)),L.attr("d",T)}else L.remove()}})}})};function dhe(e,r,t){var a={x:r.c2p(e.x),y:t.c2p(e.y)};return e.yh!==void 0&&(a.yh=t.c2p(e.yh),a.ys=t.c2p(e.ys),Co(a.ys)||(a.noYS=!0,a.ys=t.c2p(e.ys,!0))),e.xh!==void 0&&(a.xh=r.c2p(e.xh),a.xs=r.c2p(e.xs),Co(a.xs)||(a.noXS=!0,a.xs=r.c2p(e.xs,!0))),a}});var yI=J((Rxe,gI)=>{"use strict";var hhe=Or(),mI=Nr();gI.exports=function(r){r.each(function(t){var a=t[0].trace,n=a.error_y||{},i=a.error_x||{},l=hhe.select(this);l.selectAll("path.yerror").style("stroke-width",n.thickness+"px").call(mI.stroke,n.color),i.copy_ystyle&&(i=n),l.selectAll("path.xerror").style("stroke-width",i.thickness+"px").call(mI.stroke,i.color)})}});var _I=J((zxe,xI)=>{"use strict";var Zc=Fe(),bI=Ki().overrideAll,Jc=Y4(),Ys={error_x:Zc.extendFlat({},Jc),error_y:Zc.extendFlat({},Jc)};delete Ys.error_x.copy_zstyle;delete Ys.error_y.copy_zstyle;delete Ys.error_y.copy_ystyle;var $c={error_x:Zc.extendFlat({},Jc),error_y:Zc.extendFlat({},Jc),error_z:Zc.extendFlat({},Jc)};delete $c.error_x.copy_ystyle;delete $c.error_y.copy_ystyle;delete $c.error_z.copy_ystyle;delete $c.error_z.copy_zstyle;xI.exports={moduleType:"component",name:"errorbars",schema:{traces:{scatter:Ys,bar:Ys,histogram:Ys,scatter3d:bI($c,"calc","nested"),scattergl:bI(Ys,"calc","nested")}},supplyDefaults:oI(),calc:vI(),makeComputeError:U4(),plot:pI(),style:yI(),hoverInfo:phe};function phe(e,r,t){(r.error_y||{}).visible&&(t.yerr=e.yh-e.y,r.error_y.symmetric||(t.yerrneg=e.y-e.ys)),(r.error_x||{}).visible&&(t.xerr=e.xh-e.x,r.error_x.symmetric||(t.xerrneg=e.x-e.xs))}});var wI={};Nt(wI,{cn:()=>mhe});var mhe,MI=Ft(()=>{"use strict";mhe={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"}});var qI=J((Fxe,LI)=>{"use strict";var So=Or(),Zh=na(),TI=kr(),Fl=Mt(),Wh=Li(),hi=Fe(),Yi=hi.strTranslate,DI=va().extendFlat,X4=vo(),Oi=ot(),Tu=Nr(),ghe=zf(),yhe=La(),bhe=ei().flipScale,xhe=r4(),_he=t4(),whe=ki(),Z4=(Ja(),Xe(Za)),AI=Z4.LINE_SPACING,kI=Z4.FROM_TL,CI=Z4.FROM_BR,Lt=(MI(),Xe(wI)).cn;function Mhe(e){var r=e._fullLayout,t=r._infolayer.selectAll("g."+Lt.colorbar).data(The(e),function(a){return a._id});t.enter().append("g").attr("class",function(a){return a._id}).classed(Lt.colorbar,!0),t.each(function(a){var n=So.select(this);hi.ensureSingle(n,"rect",Lt.cbbg),hi.ensureSingle(n,"g",Lt.cbfills),hi.ensureSingle(n,"g",Lt.cblines),hi.ensureSingle(n,"g",Lt.cbaxis,function(l){l.classed(Lt.crisp,!0)}),hi.ensureSingle(n,"g",Lt.cbtitleunshift,function(l){l.append("g").classed(Lt.cbtitle,!0)}),hi.ensureSingle(n,"rect",Lt.cboutline);var i=Ahe(n,a,e);i&&i.then&&(e._promises||[]).push(i),e._context.edits.colorbarPosition&&khe(n,a,e)}),t.exit().each(function(a){Zh.autoMargin(e,a._id)}).remove(),t.order()}function The(e){var r=e._fullLayout,t=e.calcdata,a=[],n,i,l,o;function s(M){return DI(M,{_fillcolor:null,_line:{color:null,width:null,dash:null},_levels:{start:null,end:null,size:null},_filllevels:null,_fillgradient:null,_zrange:null})}function u(){typeof o.calc=="function"?o.calc(e,l,n):(n._fillgradient=i.reversescale?bhe(i.colorscale):i.colorscale,n._zrange=[i[o.min],i[o.max]])}for(var f=0;f[Math.min(e[0]+r,e[1]),e[1]],SI=(e,r)=>[e[0],Math.max(e[1]-r,e[0])];function Ahe(e,r,t){var a=r.orientation==="v",n=r.len,i=r.lenmode,l=r.thickness,o=r.thicknessmode,s=r.outlinewidth,u=r.borderwidth,f=r.bgcolor,c=r.xanchor,d=r.yanchor,h=r.xpad,p=r.ypad,g=r.x,y=a?r.y:1-r.y,x=r.yref==="paper",w=r.xref==="paper",M=t._fullLayout,b=M._size,T=r._fillcolor,S=r._line,C=r.title,L=C.side,q=r._zrange||So.extent((typeof T=="function"?T:S.color).domain()),P=typeof S.color=="function"?S.color:function(){return S.color},z=typeof T=="function"?T:function(){return T},N=r._levels,H=Che(t,r,q),B=H.fill,I=H.line,V=Math.round(l*(o==="fraction"?a?b.w:b.h:1)),O=V/(a?b.w:b.h),U=Math.round(n*(i==="fraction"?a?b.h:b.w:1)),W=U/(a?b.h:b.w),Z=w?b.w:t._fullLayout.width,G=x?b.h:t._fullLayout.height,j=Math.round(a?g*Z+h:y*G+p),ie={center:.5,right:1}[c]||0,pe={top:1,middle:.5}[d]||0,ve=a?g-ie*O:y-pe*O,Q=a?y-pe*W:g-ie*W,we=Math.round(a?G*(1-Q):Z*Q);r._lenFrac=W,r._thickFrac=O,r._uFrac=ve,r._vFrac=Q;var le=r._axis=She(t,r,q);le.position=O+(a?g+h/b.w:y+p/b.h);var Se=["top","bottom"].indexOf(L)!==-1;if(a&&Se&&(le.title.side=L,le.titlex=g+h/b.w,le.titley=Q+(C.side==="top"?W-p/b.h:p/b.h)),!a&&!Se&&(le.title.side=L,le.titley=y+p/b.h,le.titlex=Q+h/b.w),S.color&&r.tickmode==="auto"){le.tickmode="linear",le.tick0=N.start;var ce=N.size,de=hi.constrain(U/50,4,15)+1,Ce=(q[1]-q[0])/((r.nticks||de)*ce);if(Ce>1){var Ie=Math.pow(10,Math.floor(Math.log(Ce)/Math.LN10));ce*=Ie*hi.roundUp(Ce/Ie,[2,5,10]),(Math.abs(N.start)/N.size+1e-6)%1<2e-6&&(le.tick0=0)}le.dtick=ce}var _e=a?p/b.h:h/b.w;le.domain=SI(W4([Q,Q+W],_e),_e),le.setScale(),e.attr("transform",Yi(Math.round(b.l),Math.round(b.t)));var De=e.select("."+Lt.cbtitleunshift).attr("transform",Yi(-Math.round(b.l),-Math.round(b.t))),Te=le.ticklabelposition,Ae=le.title.font.size,ke=e.select("."+Lt.cbaxis),Re,Me=0,Ue=0;function $e(re,ge){var Ge={propContainer:le,propName:r._propPrefix+"title.text",traceIndex:r._traceIndex,_meta:r._meta,placeholder:M._dfltTitle.colorbar,containerGroup:e.select("."+Lt.cbtitle)},cr=re.charAt(0)==="h"?re.slice(1):"h"+re;e.selectAll("."+cr+",."+cr+"-math-group").remove(),ghe.draw(t,re,DI(Ge,ge||{}))}function Qe(){if(a&&Se||!a&&!Se){var re,ge;L==="top"&&(re=h+b.l+Z*g,ge=p+b.t+G*(1-Q-W)+3+Ae*.75),L==="bottom"&&(re=h+b.l+Z*g,ge=p+b.t+G*(1-Q)-3-Ae*.25),L==="right"&&(ge=p+b.t+G*y+3+Ae*.75,re=h+b.l+Z*Q),$e(le._id+"title",{attributes:{x:re,y:ge,"text-anchor":a?"start":"middle"}})}}function Le(){if(a&&!Se||!a&&Se){var re=le.position||0,ge=le._offset+le._length/2,Ge,cr;if(L==="right")cr=ge,Ge=b.l+Z*re+10+Ae*(le.showticklabels?1:.5);else if(Ge=ge,L==="bottom"&&(cr=b.t+G*re+10+(Te.indexOf("inside")===-1?le.tickfont.size:0)+(le.ticks!=="inside"&&r.ticklen||0)),L==="top"){var mr=C.text.split("
").length;cr=b.t+G*re+10-V-AI*Ae*mr}$e((a?"h":"v")+le._id+"title",{avoid:{selection:So.select(t).selectAll("g."+le._id+"tick"),side:L,offsetTop:a?0:b.t,offsetLeft:a?b.l:0,maxShift:a?M.width:M.height},attributes:{x:Ge,y:cr,"text-anchor":"middle"},transform:{rotate:a?-90:0,offset:0}})}}function Be(){if(!a&&!Se||a&&Se){var re=e.select("."+Lt.cbtitle),ge=re.select("text"),Ge=[-s/2,s/2],cr=re.select(".h"+le._id+"title-math-group").node(),mr=15.6;ge.node()&&(mr=parseInt(ge.node().style.fontSize,10)*AI);var ne;if(cr?(ne=Oi.bBox(cr),Ue=ne.width,Me=ne.height,Me>mr&&(Ge[1]-=(Me-mr)/2)):ge.node()&&!ge.classed(Lt.jsPlaceholder)&&(ne=Oi.bBox(ge.node()),Ue=ne.width,Me=ne.height),a){if(Me){if(Me+=5,L==="top")le.domain=SI(le.domain,Me/b.h),Ge[1]*=-1;else{le.domain=W4(le.domain,Me/b.h);var me=yhe.lineCount(ge);Ge[1]+=(1-me)*mr}re.attr("transform",Yi(Ge[0],Ge[1])),le.setScale()}}else Ue&&(L==="right"&&(le.domain=W4(le.domain,(Ue+Ae/2)/b.w)),re.attr("transform",Yi(Ge[0],Ge[1])),le.setScale())}e.selectAll("."+Lt.cbfills+",."+Lt.cblines).attr("transform",a?Yi(0,Math.round(b.h*(1-le.domain[1]))):Yi(Math.round(b.w*le.domain[0]),0)),ke.attr("transform",a?Yi(0,Math.round(-b.t)):Yi(Math.round(-b.l),0));var ze=e.select("."+Lt.cbfills).selectAll("rect."+Lt.cbfill).attr("style","").data(B);ze.enter().append("rect").classed(Lt.cbfill,!0).attr("style",""),ze.exit().remove();var Ve=q.map(le.c2p).map(Math.round).sort(function(xr,qe){return xr-qe});ze.each(function(xr,qe){var Je=[qe===0?q[0]:(B[qe]+B[qe-1])/2,qe===B.length-1?q[1]:(B[qe]+B[qe+1])/2].map(le.c2p).map(Math.round);a&&(Je[1]=hi.constrain(Je[1]+(Je[1]>Je[0])?1:-1,Ve[0],Ve[1]));var Ee=So.select(this).attr(a?"x":"y",j).attr(a?"y":"x",So.min(Je)).attr(a?"width":"height",Math.max(V,2)).attr(a?"height":"width",Math.max(So.max(Je)-So.min(Je),2));if(r._fillgradient)Oi.gradient(Ee,t,r._id,a?"vertical":"horizontalreversed",r._fillgradient,"fill");else{var je=z(xr).replace("e-","");Ee.attr("fill",Tu.hexString(je))}});var Ne=e.select("."+Lt.cblines).selectAll("path."+Lt.cbline).data(S.color&&S.width?I:[]);Ne.enter().append("path").classed(Lt.cbline,!0),Ne.exit().remove(),Ne.each(function(xr){var qe=j,Je=Math.round(le.c2p(xr))+S.width/2%1;So.select(this).attr("d","M"+(a?qe+","+Je:Je+","+qe)+(a?"h":"v")+V).call(Oi.lineGroupStyle,S.width,P(xr),S.dash)}),ke.selectAll("g."+le._id+"tick,path").remove();var Ze=j+V+(s||0)/2-(r.ticks==="outside"?1:0),Ke=Fl.calcTicks(le),_r=Fl.getTickSigns(le)[2];return Fl.drawTicks(t,le,{vals:le.ticks==="inside"?Fl.clipEnds(le,Ke):Ke,layer:ke,path:Fl.makeTickPath(le,Ze,_r),transFn:Fl.makeTransTickFn(le)}),Fl.drawLabels(t,le,{vals:Ke,layer:ke,transFn:Fl.makeTransTickLabelFn(le),labelFns:Fl.makeLabelFns(le,Ze)})}function tr(){var re,ge=V+s/2;Te.indexOf("inside")===-1&&(re=Oi.bBox(ke.node()),ge+=a?re.width:re.height),Re=De.select("text");var Ge=0,cr=a&&L==="top",mr=!a&&L==="right",ne=0;if(Re.node()&&!Re.classed(Lt.jsPlaceholder)){var me,ze=De.select(".h"+le._id+"title-math-group").node();ze&&(a&&Se||!a&&!Se)?(re=Oi.bBox(ze),Ge=re.width,me=re.height):(re=Oi.bBox(De.node()),Ge=re.right-b.l-(a?j:we),me=re.bottom-b.t-(a?we:j),!a&&L==="top"&&(ge+=re.height,ne=re.height)),mr&&(Re.attr("transform",Yi(Ge/2+Ae/2,0)),Ge*=2),ge=Math.max(ge,a?Ge:me)}var Ve=(a?h:p)*2+ge+u+s/2,Ne=0;!a&&C.text&&d==="bottom"&&y<=0&&(Ne=Ve/2,Ve+=Ne,ne+=Ne),M._hColorbarMoveTitle=Ne,M._hColorbarMoveCBTitle=ne;var Ze=u+s,Ke=(a?j:we)-Ze/2-(a?h:0),_r=(a?we:j)-(a?U:p+ne-Ne);e.select("."+Lt.cbbg).attr("x",Ke).attr("y",_r).attr(a?"width":"height",Math.max(Ve-Ne,2)).attr(a?"height":"width",Math.max(U+Ze,2)).call(Tu.fill,f).call(Tu.stroke,r.bordercolor).style("stroke-width",u);var xr=mr?Math.max(Ge-10,0):0;e.selectAll("."+Lt.cboutline).attr("x",(a?j:we+h)+xr).attr("y",(a?we+p-U:j)+(cr?Me:0)).attr(a?"width":"height",Math.max(V,2)).attr(a?"height":"width",Math.max(U-(a?2*p+Me:2*h+xr),2)).call(Tu.stroke,r.outlinecolor).style({fill:"none","stroke-width":s});var qe=a?ie*Ve:0,Je=a?0:(1-pe)*Ve-ne;if(qe=w?b.l-qe:-qe,Je=x?b.t-Je:-Je,e.attr("transform",Yi(qe,Je)),!a&&(u||Tu.opacity(f)&&!Tu.equals(M.paper_bgcolor,f))){var Ee=ke.selectAll("text"),je=Ee[0].length,dr=e.select("."+Lt.cbbg).node(),hr=Oi.bBox(dr),pr=Oi.getTranslate(e),te=2;Ee.each(function(Ga,gt){var Yt=0,Wt=je-1;if(gt===Yt||gt===Wt){var la=Oi.bBox(this),Va=Oi.getTranslate(this),ta;if(gt===Wt){var oa=la.right+Va.x,ir=hr.right+pr.x+we-u-te+g;ta=ir-oa,ta>0&&(ta=0)}else if(gt===Yt){var tt=la.left+Va.x,Wr=hr.left+pr.x+we+u+te;ta=Wr-tt,ta<0&&(ta=0)}ta&&(je<3?this.setAttribute("transform","translate("+ta+",0) "+this.getAttribute("transform")):this.setAttribute("visibility","hidden"))}})}var he={},Pe=kI[c],He=CI[c],Xr=kI[d],ft=CI[d],kt=Ve-V;a?(i==="pixels"?(he.y=y,he.t=U*Xr,he.b=U*ft):(he.t=he.b=0,he.yt=y+n*Xr,he.yb=y-n*ft),o==="pixels"?(he.x=g,he.l=Ve*Pe,he.r=Ve*He):(he.l=kt*Pe,he.r=kt*He,he.xl=g-l*Pe,he.xr=g+l*He)):(i==="pixels"?(he.x=g,he.l=U*Pe,he.r=U*He):(he.l=he.r=0,he.xl=g+n*Pe,he.xr=g-n*He),o==="pixels"?(he.y=1-y,he.t=Ve*Xr,he.b=Ve*ft):(he.t=kt*Xr,he.b=kt*ft,he.yt=y-l*Xr,he.yb=y+l*ft));var Rt=r.y<.5?"b":"t",Xt=r.x<.5?"l":"r";t._fullLayout._reservedMargin[r._id]={};var Ot={r:M.width-Ke-qe,l:Ke+he.r,b:M.height-_r-Je,t:_r+he.b};w&&x?Zh.autoMargin(t,r._id,he):w?t._fullLayout._reservedMargin[r._id][Rt]=Ot[Rt]:x||a?t._fullLayout._reservedMargin[r._id][Xt]=Ot[Xt]:t._fullLayout._reservedMargin[r._id][Rt]=Ot[Rt]}return hi.syncOrAsync([Zh.previousPromises,Qe,Be,Le,Zh.previousPromises,tr],t)}function khe(e,r,t){var a=r.orientation==="v",n=t._fullLayout,i=n._size,l,o,s;Wh.init({element:e.node(),gd:t,prepFn:function(){l=e.attr("transform"),X4(e)},moveFn:function(u,f){e.attr("transform",l+Yi(u,f)),o=Wh.align((a?r._uFrac:r._vFrac)+u/i.w,a?r._thickFrac:r._lenFrac,0,1,r.xanchor),s=Wh.align((a?r._vFrac:1-r._uFrac)-f/i.h,a?r._lenFrac:r._thickFrac,0,1,r.yanchor);var c=Wh.getCursor(o,s,r.xanchor,r.yanchor);X4(e,c)},doneFn:function(){if(X4(e),o!==void 0&&s!==void 0){var u={};u[r._propPrefix+"x"]=o,u[r._propPrefix+"y"]=s,r._traceIndex!==void 0?TI.call("_guiRestyle",t,u,r._traceIndex):TI.call("_guiRelayout",t,u)}}})}function Che(e,r,t){var a=r._levels,n=[],i=[],l,o,s=a.end+a.size/100,u=a.size,f=1.001*t[0]-.001*t[1],c=1.001*t[1]-.001*t[0];for(o=0;o<1e5&&(l=a.start+o*u,!(u>0?l>=s:l<=s));o++)l>f&&l0?l>=s:l<=s));o++)l>t[0]&&l{"use strict";EI.exports={moduleType:"component",name:"colorbar",attributes:e1(),supplyDefaults:Gy(),draw:qI().draw,hasColorbar:Py()}});var zI=J((Ixe,RI)=>{"use strict";RI.exports={moduleType:"component",name:"legend",layoutAttributes:O3(),supplyLayoutDefaults:U3(),draw:a5(),style:Q3()}});var NI=J((Bxe,FI)=>{"use strict";FI.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"}}});var BI=J((Hxe,II)=>{"use strict";II.exports={moduleType:"locale",name:"en-US",dictionary:{"Click to enter Colorscale title":"Click to enter Colorscale title"},format:{date:"%m/%d/%Y"}}});var $4=J((Oxe,UI)=>{"use strict";var Dhe=kr(),YI=Fe(),J4=YI.extendFlat,HI=YI.extendDeep;function OI(e){var r;switch(e){case"themes__thumb":r={autosize:!0,width:150,height:150,title:{text:""},showlegend:!1,margin:{l:5,r:5,t:5,b:5,pad:0},annotations:[]};break;case"thumbnail":r={title:{text:""},showlegend:!1,borderwidth:0,bordercolor:"",margin:{l:1,r:1,t:1,b:1,pad:0},annotations:[]};break;default:r={}}return r}function Lhe(e){var r=["xaxis","yaxis","zaxis"];return r.indexOf(e.slice(0,5))>-1}UI.exports=function(r,t){var a,n=r.data,i=r.layout,l=HI([],n),o=HI({},i,OI(t.tileClass)),s=r._context||{};if(t.width&&(o.width=t.width),t.height&&(o.height=t.height),t.tileClass==="thumbnail"||t.tileClass==="themes__thumb"){o.annotations=[];var u=Object.keys(o);for(a=0;a{"use strict";var qhe=O2().EventEmitter,Ehe=kr(),Phe=Fe(),GI=qs(),Rhe=$4(),zhe=jd(),Fhe=Qd();function Nhe(e,r){var t=new qhe,a=Rhe(e,{format:"png"}),n=a.gd;n.style.position="absolute",n.style.left="-5000px",document.body.appendChild(n);function i(){var o=GI.getDelay(n._fullLayout);setTimeout(function(){var s=zhe(n),u=document.createElement("canvas");u.id=Phe.randstr(),t=Fhe({format:r.format,width:n._fullLayout.width,height:n._fullLayout.height,canvas:u,emitter:t,svg:s}),t.clean=function(){n&&document.body.removeChild(n)}},o)}var l=GI.getRedrawFunc(n);return Ehe.call("_doPlot",n,a.data,a.layout,a.config).then(l).then(i).catch(function(o){t.emit("error",o)}),t}VI.exports=Nhe});var JI=J((Uxe,ZI)=>{"use strict";var WI=qs(),Ihe={getDelay:WI.getDelay,getRedrawFunc:WI.getRedrawFunc,clone:$4(),toSVG:jd(),svgToImg:Qd(),toImage:XI(),downloadImage:Mb()};ZI.exports=Ihe});var KI=J(Nl=>{"use strict";Nl.version=Xu().version;a_();YM();var Bhe=kr(),Kc=Nl.register=Bhe.register,j4=tP(),$I=Object.keys(j4);for(Jh=0;Jh<$I.length;Jh++)Au=$I[Jh],Au.charAt(0)!=="_"&&(Nl[Au]=j4[Au]),Kc({moduleType:"apiMethod",name:Au,fn:j4[Au]});var Au,Jh;Kc(dz());Kc([Iz(),jz(),ou(),gF(),LF(),KF(),mN(),RN(),KN(),aI(),_I(),Zy(),PI(),zI(),qi(),L5()]);Kc([NI(),BI()]);window.PlotlyLocales&&Array.isArray(window.PlotlyLocales)&&(Kc(window.PlotlyLocales),delete window.PlotlyLocales);Nl.Icons=j1();var $h=qi(),K4=na();Nl.Plots={resize:K4.resize,graphJson:K4.graphJson,sendDataToCloud:K4.sendDataToCloud};Nl.Fx={hover:$h.hover,unhover:$h.unhover,loneHover:$h.loneHover,loneUnhover:$h.loneUnhover};Nl.Snapshot=JI();Nl.PlotSchema=z0()});var QI=J((Vxe,jI)=>{"use strict";jI.exports=KI()});var jc=J((Xxe,nB)=>{"use strict";var Ht=Ls(),eB=Q2().axisHoverFormat,{hovertemplateAttrs:Hhe,texttemplateAttrs:Ohe,templatefallbackAttrs:rB}=rs(),aB=qf(),Yhe=Ia(),tB=(Rc(),Xe(Pc)),Uhe=ji().pattern,Us=va().extendFlat,Q4=Yhe({editType:"calc",arrayOk:!0,colorEditType:"style"}),Ghe=Ht.marker,Vhe=Ghe.line,Xhe=Us({},Vhe.width,{dflt:0}),Whe=Us({width:Xhe,editType:"calc"},aB("marker.line")),Zhe=Us({line:Whe,editType:"calc"},aB("marker"),{opacity:{valType:"number",arrayOk:!0,dflt:1,min:0,max:1,editType:"style"},pattern:Uhe,cornerradius:{valType:"any",editType:"calc"}});nB.exports={x:Ht.x,x0:Ht.x0,dx:Ht.dx,y:Ht.y,y0:Ht.y0,dy:Ht.dy,xperiod:Ht.xperiod,yperiod:Ht.yperiod,xperiod0:Ht.xperiod0,yperiod0:Ht.yperiod0,xperiodalignment:Ht.xperiodalignment,yperiodalignment:Ht.yperiodalignment,xhoverformat:eB("x"),yhoverformat:eB("y"),text:Ht.text,texttemplate:Ohe({editType:"plot"},{keys:tB.eventDataKeys}),texttemplatefallback:rB({editType:"plot"}),hovertext:Ht.hovertext,hovertemplate:Hhe({},{keys:tB.eventDataKeys}),hovertemplatefallback:rB(),textposition:{valType:"enumerated",values:["inside","outside","auto","none"],dflt:"auto",arrayOk:!0,editType:"calc"},insidetextanchor:{valType:"enumerated",values:["end","middle","start"],dflt:"end",editType:"plot"},textangle:{valType:"angle",dflt:"auto",editType:"plot"},textfont:Us({},Q4,{}),insidetextfont:Us({},Q4,{}),outsidetextfont:Us({},Q4,{}),constraintext:{valType:"enumerated",values:["inside","outside","both","none"],dflt:"both",editType:"calc"},cliponaxis:Us({},Ht.cliponaxis,{}),orientation:{valType:"enumerated",values:["v","h"],editType:"calc+clearAxisTypes"},base:{valType:"any",dflt:null,arrayOk:!0,editType:"calc"},offset:{valType:"number",dflt:null,arrayOk:!0,editType:"calc"},width:{valType:"number",dflt:null,min:0,arrayOk:!0,editType:"calc"},marker:Zhe,offsetgroup:Ht.offsetgroup,alignmentgroup:Ht.alignmentgroup,selected:{marker:{opacity:Ht.selected.marker.opacity,color:Ht.selected.marker.color,editType:"style"},textfont:Ht.selected.textfont,editType:"style"},unselected:{marker:{opacity:Ht.unselected.marker.opacity,color:Ht.unselected.marker.color,editType:"style"},textfont:Ht.unselected.textfont,editType:"style"},zorder:Ht.zorder}});var ex=J((Wxe,iB)=>{"use strict";iB.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"}}});var uB=J((Zxe,sB)=>{"use strict";var Jhe=Nr(),lB=ei().hasColorscale,oB=B0(),$he=Fe().coercePattern;sB.exports=function(r,t,a,n,i){var l=a("marker.color",n),o=lB(r,"marker");o&&oB(r,t,i,a,{prefix:"marker.",cLetter:"c"}),a("marker.line.color",Jhe.defaultLine),lB(r,"marker.line")&&oB(r,t,i,a,{prefix:"marker.line.",cLetter:"c"}),a("marker.line.width"),a("marker.opacity"),$he(a,"marker.pattern",l,o),a("selected.marker.color"),a("unselected.marker.color")}});var Qc=J((Jxe,pB)=>{"use strict";var fB=Zr(),ku=Fe(),cB=Nr(),Khe=kr(),jhe=kb(),Qhe=Cb(),epe=uB(),rpe=Sb(),vB=jc(),Kh=ku.coerceFont;function tpe(e,r,t,a){function n(u,f){return ku.coerce(e,r,vB,u,f)}var i=jhe(e,r,a,n);if(!i){r.visible=!1;return}Qhe(e,r,a,n),n("xhoverformat"),n("yhoverformat"),n("zorder"),n("orientation",r.x&&!r.y?"h":"v"),n("base"),n("offset"),n("width"),n("text"),n("hovertext"),n("hovertemplate"),n("hovertemplatefallback");var l=n("textposition");hB(e,r,a,n,l,{moduleHasSelected:!0,moduleHasUnselected:!0,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),epe(e,r,n,t,a);var o=(r.marker.line||{}).color,s=Khe.getComponentMethod("errorbars","supplyDefaults");s(e,r,o||cB.defaultLine,{axis:"y"}),s(e,r,o||cB.defaultLine,{axis:"x",inherit:"y"}),ku.coerceSelectionMarkerOpacity(r,n)}function ape(e,r){var t,a;function n(o,s){return ku.coerce(a._input,a,vB,o,s)}for(var i=0;i=0)return e}else if(typeof e=="string"&&(e=e.trim(),e.slice(-1)==="%"&&fB(e.slice(0,-1))&&(e=+e.slice(0,-1),e>=0)))return e+"%"}function hB(e,r,t,a,n,i){i=i||{};var l=i.moduleHasSelected!==!1,o=i.moduleHasUnselected!==!1,s=i.moduleHasConstrain!==!1,u=i.moduleHasCliponaxis!==!1,f=i.moduleHasTextangle!==!1,c=i.moduleHasInsideanchor!==!1,d=!!i.hasPathbar,h=Array.isArray(n)||n==="auto",p=h||n==="inside",g=h||n==="outside";if(p||g){var y=Kh(a,"textfont",t.font),x=ku.extendFlat({},y),w=e.textfont&&e.textfont.color,M=!w;if(M&&delete x.color,Kh(a,"insidetextfont",x),d){var b=ku.extendFlat({},y);M&&delete b.color,Kh(a,"pathbar.textfont",b)}g&&Kh(a,"outsidetextfont",y),l&&a("selected.textfont.color"),o&&a("unselected.textfont.color"),s&&a("constraintext"),u&&a("cliponaxis"),f&&a("textangle"),a("texttemplate"),a("texttemplatefallback")}p&&c&&a("insidetextanchor")}pB.exports={supplyDefaults:tpe,crossTraceDefaults:ape,handleText:hB,validateCornerradius:dB}});var gB=J(($xe,mB)=>{"use strict";var npe=kr(),ipe=Mt(),lpe=Fe(),ope=ex(),spe=Qc().validateCornerradius;mB.exports=function(e,r,t){function a(g,y){return lpe.coerce(e,r,ope,g,y)}for(var n=!1,i=!1,l=!1,o={},s=a("barmode"),u=s==="group",f=0;f0&&!o[d]&&(l=!0),o[d]=!0),c.visible&&c.type==="histogram"){var h=ipe.getFromId({_fullLayout:r},c[c.orientation==="v"?"xaxis":"yaxis"]);h.type!=="category"&&(i=!0)}}if(!n){delete r.barmode;return}s!=="overlay"&&a("barnorm"),a("bargap",i&&!l?0:.2),a("bargroupgap");var p=a("barcornerradius");r.barcornerradius=spe(p)}});var rx=J((Kxe,yB)=>{"use strict";var Cu=Fe();yB.exports=function(r,t){for(var a=0;a{"use strict";var bB=Mt(),xB=Db(),_B=ei().hasColorscale,wB=a1(),upe=rx(),fpe=Pb();MB.exports=function(r,t){var a=bB.getFromId(r,t.xaxis||"x"),n=bB.getFromId(r,t.yaxis||"y"),i,l,o,s,u,f,c={msUTC:!!(t.base||t.base===0)};t.orientation==="h"?(i=a.makeCalcdata(t,"x",c),o=n.makeCalcdata(t,"y"),s=xB(t,n,"y",o),u=!!t.yperiodalignment,f="y"):(i=n.makeCalcdata(t,"y",c),o=a.makeCalcdata(t,"x"),s=xB(t,a,"x",o),u=!!t.xperiodalignment,f="x"),l=s.vals;for(var d=Math.min(l.length,i.length),h=new Array(d),p=0;p{"use strict";var cpe=Or(),vpe=Fe();function dpe(e,r,t){var a=e._fullLayout,n=a["_"+t+"Text_minsize"];if(n){var i=a.uniformtext.mode==="hide",l;switch(t){case"funnelarea":case"pie":case"sunburst":l="g.slice";break;case"treemap":case"icicle":l="g.slice, g.pathbar";break;default:l="g.points > g.point"}r.selectAll(l).each(function(o){var s=o.transform;if(s){s.scale=i&&s.hide?0:n/s.fontSize;var u=cpe.select(this).select("text");vpe.setTransormAndDisplay(u,s)}})}}function hpe(e,r,t){if(t.uniformtext.mode){var a=AB(e),n=t.uniformtext.minsize,i=r.scale*r.fontSize;r.hide=i{"use strict";var mpe=Nr(),gpe=Zr(),CB=Fe().isArrayOrTypedArray;Gs.coerceString=function(e,r,t){if(typeof r=="string"){if(r||!e.noBlank)return r}else if((typeof r=="number"||r===!0)&&!e.strict)return String(r);return t!==void 0?t:e.dflt};Gs.coerceNumber=function(e,r,t){if(gpe(r)){r=+r;var a=e.min,n=e.max,i=a!==void 0&&rn;if(!i)return r}return t!==void 0?t:e.dflt};Gs.coerceColor=function(e,r,t){return mpe.isValid(r)?r:t!==void 0?t:e.dflt};Gs.coerceEnumerated=function(e,r,t){return e.coerceNumber&&(r=+r),e.values.indexOf(r)!==-1?r:t!==void 0?t:e.dflt};Gs.getValue=function(e,r){var t;return CB(e)?r{"use strict";var rv=Or(),ype=Nr(),tv=ot(),SB=Fe(),DB=kr(),LB=ev().resizeText,tx=jc(),bpe=tx.textfont,xpe=tx.insidetextfont,_pe=tx.outsidetextfont,Ya=jh();function wpe(e){var r=rv.select(e).selectAll('g[class^="barlayer"]').selectAll("g.trace");LB(e,r,"bar");var t=r.size(),a=e._fullLayout;r.style("opacity",function(n){return n[0].trace.opacity}).each(function(n){(a.barmode==="stack"&&t>1||a.bargap===0&&a.bargroupgap===0&&!n[0].trace.marker.line.width)&&rv.select(this).attr("shape-rendering","crispEdges")}),r.selectAll("g.points").each(function(n){var i=rv.select(this),l=n[0].trace;qB(i,l,e)}),DB.getComponentMethod("errorbars","style")(r)}function qB(e,r,t){tv.pointStyle(e.selectAll("path"),r,t),EB(e,r,t)}function EB(e,r,t){e.selectAll("text").each(function(a){var n=rv.select(this),i=SB.ensureUniformFontSize(t,PB(n,a,r,t));tv.font(n,i)})}function Mpe(e,r,t){var a=r[0].trace;a.selectedpoints?Tpe(t,a,e):(qB(t,a,e),DB.getComponentMethod("errorbars","style")(t))}function Tpe(e,r,t){tv.selectedPointStyle(e.selectAll("path"),r),Ape(e.selectAll("text"),r,t)}function Ape(e,r,t){e.each(function(a){var n=rv.select(this),i;if(a.selected){i=SB.ensureUniformFontSize(t,PB(n,a,r,t));var l=r.selected.textfont&&r.selected.textfont.color;l&&(i.color=l),tv.font(n,i)}else tv.selectedTextStyle(n,r)})}function PB(e,r,t,a){var n=a._fullLayout.font,i=t.textfont;if(e.classed("bartext-inside")){var l=NB(r,t);i=zB(t,r.i,n,l)}else e.classed("bartext-outside")&&(i=FB(t,r.i,n));return i}function RB(e,r,t){return ax(bpe,e.textfont,r,t)}function zB(e,r,t,a){var n=RB(e,r,t),i=e._input.textfont===void 0||e._input.textfont.color===void 0||Array.isArray(e.textfont.color)&&e.textfont.color[r]===void 0;return i&&(n={color:ype.contrast(a),family:n.family,size:n.size,weight:n.weight,style:n.style,variant:n.variant,textcase:n.textcase,lineposition:n.lineposition,shadow:n.shadow}),ax(xpe,e.insidetextfont,r,n)}function FB(e,r,t){var a=RB(e,r,t);return ax(_pe,e.outsidetextfont,r,a)}function ax(e,r,t,a){r=r||{};var n=Ya.getValue(r.family,t),i=Ya.getValue(r.size,t),l=Ya.getValue(r.color,t),o=Ya.getValue(r.weight,t),s=Ya.getValue(r.style,t),u=Ya.getValue(r.variant,t),f=Ya.getValue(r.textcase,t),c=Ya.getValue(r.lineposition,t),d=Ya.getValue(r.shadow,t);return{family:Ya.coerceString(e.family,n,a.family),size:Ya.coerceNumber(e.size,i,a.size),color:Ya.coerceColor(e.color,l,a.color),weight:Ya.coerceString(e.weight,o,a.weight),style:Ya.coerceString(e.style,s,a.style),variant:Ya.coerceString(e.variant,u,a.variant),textcase:Ya.coerceString(e.variant,f,a.textcase),lineposition:Ya.coerceString(e.variant,c,a.lineposition),shadow:Ya.coerceString(e.variant,d,a.shadow)}}function NB(e,r){return r.type==="waterfall"?r[e.dir].marker.color:e.mcc||e.mc||r.marker.color}IB.exports={style:wpe,styleTextPoints:EB,styleOnSelect:Mpe,getInsideTextFont:zB,getOutsideTextFont:FB,getBarColor:NB,resizeText:LB}});var WB=J((t6e,XB)=>{"use strict";var ep=Or(),rp=Zr(),Ea=Fe(),kpe=La(),Cpe=Nr(),Do=ot(),Spe=kr(),tp=Mt().tickText,BB=ev(),Dpe=BB.recordMinTextSize,Lpe=BB.clearMinTextSize,nx=Qh(),Su=jh(),qpe=(Rc(),Xe(Pc)),HB=jc(),Epe=HB.text,Ppe=HB.textposition,Rpe=Si().appendArrayPointValue,hn=qpe.TEXTPAD;function zpe(e){return e.id}function Fpe(e){if(e.ids)return zpe}function ix(e){return(e>0)-(e<0)}function Ui(e,r){return e0}function Ipe(e,r,t,a,n,i){var l=r.xaxis,o=r.yaxis,s=e._fullLayout,u=e._context.staticPlot;n||(n={mode:s.barmode,norm:s.barmode,gap:s.bargap,groupgap:s.bargroupgap},Lpe("bar",s));var f=Ea.makeTraceGroups(a,t,"trace bars").each(function(c){var d=ep.select(this),h=c[0].trace,p=c[0].t,g=h.type==="waterfall",y=h.type==="funnel",x=h.type==="histogram",w=h.type==="bar",M=w||y,b=0;g&&h.connector.visible&&h.connector.mode==="between"&&(b=h.connector.line.width/2);var T=h.orientation==="h",S=YB(n),C=Ea.ensureSingle(d,"g","points"),L=Fpe(h),q=C.selectAll("g.point").data(Ea.identity,L);q.enter().append("g").classed("point",!0),q.exit().remove(),q.each(function(z,N){var H=ep.select(this),B=Npe(z,l,o,T),I=B[0][0],V=B[0][1],O=B[1][0],U=B[1][1],W=(T?V-I:U-O)===0;W&&M&&Su.getLineWidth(h,z)&&(W=!1),W||(W=!rp(I)||!rp(V)||!rp(O)||!rp(U)),z.isBlank=W,W&&(T?V=I:U=O),b&&!W&&(T?(I-=Ui(I,V)*b,V+=Ui(I,V)*b):(O-=Ui(O,U)*b,U+=Ui(O,U)*b));var Z,G;if(h.type==="waterfall"){if(!W){var j=h[z.dir].marker;Z=j.line.width,G=j.color}}else Z=Su.getLineWidth(h,z),G=z.mc||h.marker.color;function ie(re){var ge=ep.round(Z/2%1,2);return n.gap===0&&n.groupgap===0?ep.round(Math.round(re)-ge,2):re}function pe(re,ge,Ge){return Ge&&re===ge?re:Math.abs(re-ge)>=2?ie(re):re>ge?Math.ceil(re):Math.floor(re)}var ve=Cpe.opacity(G),Q=ve<1||Z>.01?ie:pe;e._context.staticPlot||(I=Q(I,V,T),V=Q(V,I,T),O=Q(O,U,!T),U=Q(U,O,!T));var we=T?l.c2p:o.c2p,le;z.s0>0?le=z._sMax:z.s0<0?le=z._sMin:le=z.s1>0?z._sMax:z._sMin;function Se(re,ge){if(!re)return 0;var Ge=Math.abs(T?U-O:V-I),cr=Math.abs(T?V-I:U-O),mr=Q(Math.abs(we(le,!0)-we(0,!0))),ne=z.hasB?Math.min(Ge/2,cr/2):Math.min(Ge/2,mr),me;if(ge==="%"){var ze=Math.min(50,re);me=Ge*(ze/100)}else me=re;return Q(Math.max(Math.min(me,ne),0))}var ce=w||x?Se(p.cornerradiusvalue,p.cornerradiusform):0,de,Ce,Ie="M"+I+","+O+"V"+U+"H"+V+"V"+O+"Z",_e=0;if(ce&&z.s){var De=ix(z.s0)===0||ix(z.s)===ix(z.s0)?z.s1:z.s0;if(_e=Q(z.hasB?0:Math.abs(we(le,!0)-we(De,!0))),_e0?Math.sqrt(_e*(2*ce-_e)):0,Ue=Te>0?Math.max:Math.min;de="M"+I+","+O+"V"+(U-Re*Ae)+"H"+Ue(V-(ce-_e)*Te,I)+"A "+ce+","+ce+" 0 0 "+ke+" "+V+","+(U-ce*Ae-Me)+"V"+(O+ce*Ae+Me)+"A "+ce+","+ce+" 0 0 "+ke+" "+Ue(V-(ce-_e)*Te,I)+","+(O+Re*Ae)+"Z"}else if(z.hasB)de="M"+(I+ce*Te)+","+O+"A "+ce+","+ce+" 0 0 "+ke+" "+I+","+(O+ce*Ae)+"V"+(U-ce*Ae)+"A "+ce+","+ce+" 0 0 "+ke+" "+(I+ce*Te)+","+U+"H"+(V-ce*Te)+"A "+ce+","+ce+" 0 0 "+ke+" "+V+","+(U-ce*Ae)+"V"+(O+ce*Ae)+"A "+ce+","+ce+" 0 0 "+ke+" "+(V-ce*Te)+","+O+"Z";else{Ce=Math.abs(U-O)+_e;var $e=Ce0?Math.sqrt(_e*(2*ce-_e)):0,Le=Ae>0?Math.max:Math.min;de="M"+(I+$e*Te)+","+O+"V"+Le(U-(ce-_e)*Ae,O)+"A "+ce+","+ce+" 0 0 "+ke+" "+(I+ce*Te-Qe)+","+U+"H"+(V-ce*Te+Qe)+"A "+ce+","+ce+" 0 0 "+ke+" "+(V-$e*Te)+","+Le(U-(ce-_e)*Ae,O)+"V"+O+"Z"}}else de=Ie}else de=Ie;var Be=OB(Ea.ensureSingle(H,"path"),s,n,i);if(Be.style("vector-effect",u?"none":"non-scaling-stroke").attr("d",isNaN((V-I)*(U-O))||W&&e._context.staticPlot?"M0,0Z":de).call(Do.setClipUrl,r.layerClipId,e),!s.uniformtext.mode&&S){var tr=Do.makePointStyleFns(h);Do.singlePointStyle(z,Be,h,tr,e)}Bpe(e,r,H,c,N,I,V,O,U,ce,_e,n,i),r.layerClipId&&Do.hideOutsideRangePoint(z,H.select("text"),l,o,h.xcalendar,h.ycalendar)});var P=h.cliponaxis===!1;Do.setClipUrl(d,P?null:r.layerClipId,e)});Spe.getComponentMethod("errorbars","plot")(e,f,r,n)}function Bpe(e,r,t,a,n,i,l,o,s,u,f,c,d){var h=r.xaxis,p=r.yaxis,g=e._fullLayout,y;function x(Ie,_e,De){var Te=Ea.ensureSingle(Ie,"text").text(_e).attr({class:"bartext bartext-"+y,"text-anchor":"middle","data-notex":1}).call(Do.font,De).call(kpe.convertToTspans,e);return Te}var w=a[0].trace,M=w.orientation==="h",b=Gpe(a,M,h,p),T=Ype(g,a,n,h,p);y=Upe(w,n);var S=c.mode==="stack"||c.mode==="relative",C=a[n],L=!S||C._outmost,q=C.hasB,P=u&&u-f>hn;if(!T||y==="none"||(C.isBlank||i===l||o===s)&&(y==="auto"||y==="inside")){t.select("text").remove();return}var z=g.font,N=nx.getBarColor(a[n],w),H=nx.getInsideTextFont(w,n,z,N),B=nx.getOutsideTextFont(w,n,z),I=w.insidetextanchor||"end",V=t.datum();M?h.type==="log"&&V.s0<=0&&(h.range[0]0&&pe>0,we;P?q?we=Vs(W-2*u,Z,ie,pe,M)||Vs(W,Z-2*u,ie,pe,M):M?we=Vs(W-(u-f),Z,ie,pe,M)||Vs(W,Z-2*(u-f),ie,pe,M):we=Vs(W,Z-(u-f),ie,pe,M)||Vs(W-2*(u-f),Z,ie,pe,M):we=Vs(W,Z,ie,pe,M),Q&&we?y="inside":(y="outside",G.remove(),G=null)}else y="inside";if(!G){ve=Ea.ensureUniformFontSize(e,y==="outside"?B:H),G=x(t,T,ve);var le=G.attr("transform");if(G.attr("transform",""),j=Do.bBox(G.node()),ie=j.width,pe=j.height,G.attr("transform",le),ie<=0||pe<=0){G.remove();return}}var Se=w.textangle,ce,de;y==="outside"?(de=w.constraintext==="both"||w.constraintext==="outside",ce=Ope(i,l,o,s,j,{isHorizontal:M,constrained:de,angle:Se,zeroBarDir:b})):(de=w.constraintext==="both"||w.constraintext==="inside",ce=VB(i,l,o,s,j,{isHorizontal:M,constrained:de,angle:Se,anchor:I,hasB:q,r:u,overhead:f})),ce.fontSize=ve.size,Dpe(w.type==="histogram"?"bar":w.type,ce,g),C.transform=ce;var Ce=OB(G,g,c,d);Ea.setTransormAndDisplay(Ce,ce)}function Vs(e,r,t,a,n){if(e<0||r<0)return!1;var i=t<=e&&a<=r,l=t<=r&&a<=e,o=n?e>=t*(r/a):r>=a*(e/t);return i||l||o}function UB(e){return e==="auto"?0:e}function GB(e,r){var t=Math.PI/180*r,a=Math.abs(Math.sin(t)),n=Math.abs(Math.cos(t));return{x:e.width*n+e.height*a,y:e.width*a+e.height*n}}function VB(e,r,t,a,n,i){var l=!!i.isHorizontal,o=!!i.constrained,s=i.angle||0,u=i.anchor,f=u==="end",c=u==="start",d=i.leftToRight||0,h=(d+1)/2,p=1-h,g=i.hasB,y=i.r,x=i.overhead,w=n.width,M=n.height,b=Math.abs(r-e),T=Math.abs(a-t),S=b>2*hn&&T>2*hn?hn:0;b-=2*S,T-=2*S;var C=UB(s);s==="auto"&&!(w<=b&&M<=T)&&(w>b||M>T)&&(!(w>T||M>b)||whn){var z=Hpe(e,r,t,a,L,y,x,l,g);q=z.scale,P=z.pad}else q=1,o&&(q=Math.min(1,b/L.x,T/L.y)),P=0;var N=n.left*p+n.right*h,H=(n.top+n.bottom)/2,B=(e+hn)*p+(r-hn)*h,I=(t+a)/2,V=0,O=0;if(c||f){var U=(l?L.x:L.y)/2;y&&(f||g)&&(S+=P);var W=l?Ui(e,r):Ui(t,a);l?c?(B=e+W*S,V=-W*U):(B=r-W*S,V=W*U):c?(I=t+W*S,O=-W*U):(I=a-W*S,O=W*U)}return{textX:N,textY:H,targetX:B,targetY:I,anchorX:V,anchorY:O,scale:q,rotate:C}}function Hpe(e,r,t,a,n,i,l,o,s){var u=Math.max(0,Math.abs(r-e)-2*hn),f=Math.max(0,Math.abs(a-t)-2*hn),c=i-hn,d=l?c-Math.sqrt(c*c-(c-l)*(c-l)):c,h=s?c*2:o?c-l:2*d,p=s?c*2:o?2*d:c-l,g,y,x,w,M;return n.y/n.x>=f/(u-h)?w=f/n.y:n.y/n.x<=(f-p)/u?w=u/n.x:!s&&o?(g=n.x*n.x+n.y*n.y/4,y=-2*n.x*(u-c)-n.y*(f/2-c),x=(u-c)*(u-c)+(f/2-c)*(f/2-c)-c*c,w=(-y+Math.sqrt(y*y-4*g*x))/(2*g)):s?(g=(n.x*n.x+n.y*n.y)/4,y=-n.x*(u/2-c)-n.y*(f/2-c),x=(u/2-c)*(u/2-c)+(f/2-c)*(f/2-c)-c*c,w=(-y+Math.sqrt(y*y-4*g*x))/(2*g)):(g=n.x*n.x/4+n.y*n.y,y=-n.x*(u/2-c)-2*n.y*(f-c),x=(u/2-c)*(u/2-c)+(f-c)*(f-c)-c*c,w=(-y+Math.sqrt(y*y-4*g*x))/(2*g)),w=Math.min(1,w),o?M=Math.max(0,c-Math.sqrt(Math.max(0,c*c-(c-(f-n.y*w)/2)*(c-(f-n.y*w)/2)))-l):M=Math.max(0,c-Math.sqrt(Math.max(0,c*c-(c-(u-n.x*w)/2)*(c-(u-n.x*w)/2)))-l),{scale:w,pad:M}}function Ope(e,r,t,a,n,i){var l=!!i.isHorizontal,o=!!i.constrained,s=i.angle||0,u=n.width,f=n.height,c=Math.abs(r-e),d=Math.abs(a-t),h;l?h=d>2*hn?hn:0:h=c>2*hn?hn:0;var p=1;o&&(p=l?Math.min(1,d/f):Math.min(1,c/u));var g=UB(s),y=GB(n,g),x=(l?y.x:y.y)/2,w=(n.left+n.right)/2,M=(n.top+n.bottom)/2,b=(e+r)/2,T=(t+a)/2,S=0,C=0,L;return(l?e===r:t===a)&&i.zeroBarDir?L=i.zeroBarDir:L=l?Ui(r,e):Ui(t,a),l?(b=r-L*h,S=L*x):(T=a+L*h,C=-L*x),{textX:w,textY:M,targetX:b,targetY:T,anchorX:S,anchorY:C,scale:p,rotate:g}}function Ype(e,r,t,a,n){var i=r[0].trace,l=i.texttemplate,o;return l?o=Vpe(e,r,t,a,n):i.textinfo?o=Xpe(r,t,a,n):o=Su.getValue(i.text,t),Su.coerceString(Epe,o)}function Upe(e,r){var t=Su.getValue(e.textposition,r);return Su.coerceEnumerated(Ppe,t)}function Gpe(e,r,t,a){for(var n=!1,i=!1,l=0;l0?n=!0:o<0&&(i=!0),n&&i)return 0}var s=r?t:a,u=-Ui(s.range[0],s.range[1]);return i?n?0:-u:u}function Vpe(e,r,t,a,n){var i=r[0].trace,l=Ea.castOption(i,t,"texttemplate");if(!l)return"";var o=i.type==="histogram",s=i.type==="waterfall",u=i.type==="funnel",f=i.orientation==="h",c,d,h,p;f?(c="y",d=n,h="x",p=a):(c="x",d=a,h="y",p=n);function g(S){return tp(d,d.c2l(S),!0).text}function y(S){return tp(p,p.c2l(S),!0).text}var x=r[t],w={};w.label=x.p,w.labelLabel=w[c+"Label"]=g(x.p);var M=Ea.castOption(i,x.i,"text");(M===0||M)&&(w.text=M),w.value=x.s,w.valueLabel=w[h+"Label"]=y(x.s);var b={};Rpe(b,i,x.i),(o||b.x===void 0)&&(b.x=f?w.value:w.label),(o||b.y===void 0)&&(b.y=f?w.label:w.value),(o||b.xLabel===void 0)&&(b.xLabel=f?w.valueLabel:w.labelLabel),(o||b.yLabel===void 0)&&(b.yLabel=f?w.labelLabel:w.valueLabel),s&&(w.delta=+x.rawS||x.s,w.deltaLabel=y(w.delta),w.final=x.v,w.finalLabel=y(w.final),w.initial=w.final-w.delta,w.initialLabel=y(w.initial)),u&&(w.value=x.s,w.valueLabel=y(w.value),w.percentInitial=x.begR,w.percentInitialLabel=Ea.formatPercent(x.begR),w.percentPrevious=x.difR,w.percentPreviousLabel=Ea.formatPercent(x.difR),w.percentTotal=x.sumR,w.percentTotalLabel=Ea.formatPercent(x.sumR));var T=Ea.castOption(i,x.i,"customdata");return T&&(w.customdata=T),Ea.texttemplateString({data:[b,w,i._meta],fallback:i.texttemplatefallback,labels:w,locale:e._d3locale,template:l})}function Xpe(e,r,t,a){var n=e[0].trace,i=n.orientation==="h",l=n.type==="waterfall",o=n.type==="funnel";function s(T){var S=i?a:t;return tp(S,T,!0).text}function u(T){var S=i?t:a;return tp(S,+T,!0).text}var f=n.textinfo,c=e[r],d=f.split("+"),h=[],p,g=function(T){return d.indexOf(T)!==-1};if(g("label")&&h.push(s(e[r].p)),g("text")&&(p=Ea.castOption(n,c.i,"text"),(p===0||p)&&h.push(p)),l){var y=+c.rawS||c.s,x=c.v,w=x-y;g("initial")&&h.push(u(w)),g("delta")&&h.push(u(y)),g("final")&&h.push(u(x))}if(o){g("value")&&h.push(u(c.s));var M=0;g("percent initial")&&M++,g("percent previous")&&M++,g("percent total")&&M++;var b=M>1;g("percent initial")&&(p=Ea.formatPercent(c.begR),b&&(p+=" of initial"),h.push(p)),g("percent previous")&&(p=Ea.formatPercent(c.difR),b&&(p+=" of previous"),h.push(p)),g("percent total")&&(p=Ea.formatPercent(c.sumR),b&&(p+=" of total"),h.push(p))}return h.join("
")}XB.exports={plot:Ipe,toMoveInsideBar:VB}});var jB=J((a6e,KB)=>{"use strict";var av=qi(),Wpe=kr(),ZB=Nr(),Zpe=Fe().fillText,Jpe=jh().getLineWidth,lx=Mt().hoverLabelText,$pe=(ca(),Xe(ga)).BADNUM;function Kpe(e,r,t,a,n){var i=JB(e,r,t,a,n);if(i){var l=i.cd,o=l[0].trace,s=l[i.index];return i.color=$B(o,s),Wpe.getComponentMethod("errorbars","hoverInfo")(s,o,i),[i]}}function JB(e,r,t,a,n){var i=e.cd,l=i[0].trace,o=i[0].t,s=a==="closest",u=l.type==="waterfall",f=e.maxHoverDistance,c=e.maxSpikeDistance,d,h,p,g,y,x,w;l.orientation==="h"?(d=t,h=r,p="y",g="x",y=I,x=N):(d=r,h=t,p="x",g="y",x=I,y=N);var M=l[p+"period"],b=s||M;function T(Q){return C(Q,-1)}function S(Q){return C(Q,1)}function C(Q,we){var le=Q.w;return Q[p]+we*le/2}function L(Q){return Q[p+"End"]-Q[p+"Start"]}var q=s?T:M?function(Q){return Q.p-L(Q)/2}:function(Q){return Math.min(T(Q),Q.p-o.bardelta/2)},P=s?S:M?function(Q){return Q.p+L(Q)/2}:function(Q){return Math.max(S(Q),Q.p+o.bardelta/2)};function z(Q,we,le){return n.finiteRange&&(le=0),av.inbox(Q-d,we-d,le+Math.min(1,Math.abs(we-Q)/w)-1)}function N(Q){return z(q(Q),P(Q),f)}function H(Q){return z(T(Q),S(Q),c)}function B(Q){var we=Q[g];if(u){var le=Math.abs(Q.rawS)||0;h>0?we+=le:h<0&&(we-=le)}return we}function I(Q){var we=h,le=Q.b,Se=B(Q);return av.inbox(le-we,Se-we,f+(Se-we)/(Se-le)-1)}function V(Q){var we=h,le=Q.b,Se=B(Q);return av.inbox(le-we,Se-we,c+(Se-we)/(Se-le)-1)}var O=e[p+"a"],U=e[g+"a"];w=Math.abs(O.r2c(O.range[1])-O.r2c(O.range[0]));function W(Q){return(y(Q)+x(Q))/2}var Z=av.getDistanceFunction(a,y,x,W);if(av.getClosest(i,Z,e),e.index!==!1&&i[e.index].p!==$pe){b||(q=function(Q){return Math.min(T(Q),Q.p-o.bargroupwidth/2)},P=function(Q){return Math.max(S(Q),Q.p+o.bargroupwidth/2)});var G=e.index,j=i[G],ie=l.base?j.b+j.s:j.s;e[g+"0"]=e[g+"1"]=U.c2p(j[g],!0),e[g+"LabelVal"]=ie;var pe=o.extents[o.extents.round(j.p)];e[p+"0"]=O.c2p(s?q(j):pe[0],!0),e[p+"1"]=O.c2p(s?P(j):pe[1],!0);var ve=j.orig_p!==void 0;return e[p+"LabelVal"]=ve?j.orig_p:j.p,e.labelLabel=lx(O,e[p+"LabelVal"],l[p+"hoverformat"]),e.valueLabel=lx(U,e[g+"LabelVal"],l[g+"hoverformat"]),e.baseLabel=lx(U,j.b,l[g+"hoverformat"]),e.spikeDistance=(V(j)+H(j))/2,e[p+"Spike"]=O.c2p(j.p,!0),Zpe(j,l,e),e.hovertemplate=l.hovertemplate,e}}function $B(e,r){var t=r.mcc||e.marker.color,a=r.mlcc||e.marker.line.color,n=Jpe(e,r);if(ZB.opacity(t))return t;if(ZB.opacity(a)&&n)return a}KB.exports={hoverPoints:Kpe,hoverOnBars:JB,getTraceColor:$B}});var eH=J((n6e,QB)=>{"use strict";QB.exports=function(r,t,a){return r.x="xVal"in t?t.xVal:t.x,r.y="yVal"in t?t.yVal:t.y,t.xa&&(r.xaxis=t.xa),t.ya&&(r.yaxis=t.ya),a.orientation==="h"?(r.label=r.y,r.value=r.x):(r.label=r.x,r.value=r.y),r}});var tH=J((i6e,rH)=>{"use strict";rH.exports=function(r,t){var a=r.cd,n=r.xaxis,i=r.yaxis,l=a[0].trace,o=l.type==="funnel",s=l.orientation==="h",u=[],f;if(t===!1)for(f=0;f{"use strict";aH.exports={attributes:jc(),layoutAttributes:ex(),supplyDefaults:Qc().supplyDefaults,crossTraceDefaults:Qc().crossTraceDefaults,supplyLayoutDefaults:gB(),calc:TB(),crossTraceCalc:Gb().crossTraceCalc,colorbar:Wb(),arraysToCalcdata:rx(),plot:WB().plot,style:Qh().style,styleOnSelect:Qh().styleOnSelect,hoverPoints:jB().hoverPoints,eventData:eH(),selectPoints:tH(),moduleType:"trace",name:"bar",basePlotModule:wh(),categories:["bar-like","cartesian","svg","bar","oriented","errorBarsOK","showLegend","zoomScale"],animatable:!0,meta:{}}});var lH=J((o6e,iH)=>{"use strict";iH.exports=nH()});var ox=J((s6e,sH)=>{"use strict";var ap=xi(),Qpe=Vh().attributes,eme=Ia(),rme=$i(),{hovertemplateAttrs:tme,texttemplateAttrs:ame,templatefallbackAttrs:oH}=rs(),Lo=va().extendFlat,nme=ji().pattern,np=eme({editType:"plot",arrayOk:!0,colorEditType:"plot"});sH.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:rme.defaultLine,arrayOk:!0,editType:"style"},width:{valType:"number",min:0,dflt:0,arrayOk:!0,editType:"style"},editType:"calc"},pattern:nme,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:Lo({},ap.hoverinfo,{flags:["label","text","value","percent","name"]}),hovertemplate:tme({},{keys:["label","color","value","percent","text"]}),hovertemplatefallback:oH(),texttemplate:ame({editType:"plot"},{keys:["label","color","value","percent","text"]}),texttemplatefallback:oH({editType:"plot"}),textposition:{valType:"enumerated",values:["inside","outside","auto","none"],dflt:"auto",arrayOk:!0,editType:"plot"},textfont:Lo({},np,{}),insidetextorientation:{valType:"enumerated",values:["horizontal","radial","tangential","auto"],dflt:"auto",editType:"plot"},insidetextfont:Lo({},np,{}),outsidetextfont:Lo({},np,{}),automargin:{valType:"boolean",dflt:!1,editType:"plot"},showlegend:Lo({},ap.showlegend,{arrayOk:!0}),legend:Lo({},ap.legend,{arrayOk:!0}),legendrank:Lo({},ap.legendrank,{arrayOk:!0}),title:{text:{valType:"string",dflt:"",editType:"plot"},font:Lo({},np,{}),position:{valType:"enumerated",values:["top left","top center","top right","middle center","bottom left","bottom center","bottom right"],editType:"plot"},editType:"plot"},domain:Qpe({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"}}});var vH=J((u6e,cH)=>{"use strict";var ime=Zr(),nv=Fe(),lme=ox(),ome=Vh().defaults,sme=Qc().handleText,ume=Fe().coercePattern;function uH(e,r){var t=nv.isArrayOrTypedArray(e),a=nv.isArrayOrTypedArray(r),n=Math.min(t?e.length:1/0,a?r.length:1/0);if(isFinite(n)||(n=0),n&&a){for(var i,l=0;l0){i=!0;break}}i||(n=0)}return{hasLabels:t,hasValues:a,len:n}}function fH(e,r,t,a,n){var i=a("marker.line.width");i&&a("marker.line.color",n?void 0:t.paper_bgcolor);var l=a("marker.colors");ume(a,"marker.pattern",l),e.marker&&!r.marker.pattern.fgcolor&&(r.marker.pattern.fgcolor=e.marker.colors),r.marker.pattern.bgcolor||(r.marker.pattern.bgcolor=t.paper_bgcolor)}function fme(e,r,t,a){function n(w,M){return nv.coerce(e,r,lme,w,M)}var i=n("labels"),l=n("values"),o=uH(i,l),s=o.len;if(r._hasLabels=o.hasLabels,r._hasValues=o.hasValues,!r._hasLabels&&r._hasValues&&(n("label0"),n("dlabel")),!s){r.visible=!1;return}r._length=s,fH(e,r,a,n,!0),n("scalegroup");var u=n("text"),f=n("texttemplate");n("texttemplatefallback");var c;if(f||(c=n("textinfo",nv.isArrayOrTypedArray(u)?"text+percent":"percent")),n("hovertext"),n("hovertemplate"),n("hovertemplatefallback"),f||c&&c!=="none"){var d=n("textposition");sme(e,r,a,n,d,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1});var h=Array.isArray(d)||d==="auto",p=h||d==="outside";p&&n("automargin"),(d==="inside"||d==="auto"||Array.isArray(d))&&n("insidetextorientation")}else c==="none"&&n("textposition","none");ome(r,a,n);var g=n("hole"),y=n("title.text");if(y){var x=n("title.position",g?"middle center":"top center");!g&&x==="middle center"&&(r.title.position="top center"),nv.coerceFont(n,"title.font",a.font)}n("sort"),n("direction"),n("rotation"),n("pull")}cH.exports={handleLabelsAndValues:uH,handleMarkerDefaults:fH,supplyDefaults:fme}});var sx=J((f6e,dH)=>{"use strict";dH.exports={hiddenlabels:{valType:"data_array",editType:"calc"},piecolorway:{valType:"colorlist",editType:"calc"},extendpiecolors:{valType:"boolean",dflt:!0,editType:"calc"}}});var pH=J((c6e,hH)=>{"use strict";var cme=Fe(),vme=sx();hH.exports=function(r,t){function a(n,i){return cme.coerce(r,t,vme,n,i)}a("hiddenlabels"),a("piecolorway",t.colorway),a("extendpiecolors")}});var ux=J((v6e,yH)=>{"use strict";var dme=Zr(),Du=Nr(),hme={};function pme(e,r){var t=[],a=e._fullLayout,n=a.hiddenlabels||[],i=r.labels,l=r.marker.colors||[],o=r.values,s=r._length,u=r._hasValues&&s,f,c;if(r.dlabel)for(i=new Array(s),f=0;f=0});var b=r.type==="funnelarea"?g:r.sort;return b&&t.sort(function(T,S){return S.v-T.v}),t[0]&&(t[0].vTotal=p),t}function mH(e){return function(t,a){if(!t||!Du.isValid(t))return!1;let n=Du.rgbaString(t);return e[a]||(e[a]=n),n}}function mme(e,r){var t=(r||{}).type;t||(t="pie");var a=e._fullLayout,n=e.calcdata,i=a[t+"colorway"],l=a["_"+t+"colormap"];a["extend"+t+"colors"]&&(i=gH(i,hme));for(var o=0,s=0;s{"use strict";var gme=Si().appendArrayMultiPointValues;bH.exports=function(r,t){var a={curveNumber:t.index,pointNumbers:r.pts,data:t._input,fullData:t,label:r.label,color:r.color,value:r.v,percent:r.percent,text:r.text,bbox:r.bbox,v:r.v};return r.pts.length===1&&(a.pointNumber=a.i=r.pts[0]),gme(a,t,r.pts),t.type==="funnelarea"&&(delete a.v,delete a.i),a}});var YH=J((h6e,OH)=>{"use strict";var Ln=Or(),yme=na(),ip=qi(),kH=Nr(),Il=ot(),Ua=Fe(),bme=Ua.strScale,_H=Ua.strTranslate,fx=La(),CH=ev(),xme=CH.recordMinTextSize,_me=CH.clearMinTextSize,SH=(Rc(),Xe(Pc)).TEXTPAD,Dr=N1(),lp=xH(),wH=Fe().isValidTextValue;function wme(e,r){var t=e._context.staticPlot,a=e._fullLayout,n=a._size;_me("pie",a),qH(r,e),IH(r,n);var i=Ua.makeTraceGroups(a._pielayer,r,"trace").each(function(l){var o=Ln.select(this),s=l[0],u=s.trace;qme(l),o.attr("stroke-linejoin","round"),o.each(function(){var f=Ln.select(this).selectAll("g.slice").data(l);f.enter().append("g").classed("slice",!0),f.exit().remove();var c=[[[],[]],[[],[]]],d=!1;f.each(function(b,T){if(b.hidden){Ln.select(this).selectAll("path,g").remove();return}b.pointNumber=b.i,b.curveNumber=u.index,c[b.pxmid[1]<0?0:1][b.pxmid[0]<0?0:1].push(b);var S=s.cx,C=s.cy,L=Ln.select(this),q=L.selectAll("path.surface").data([b]);if(q.enter().append("path").classed("surface",!0).style({"pointer-events":t?"none":"all"}),L.call(DH,e,l),u.pull){var P=+Dr.castOption(u.pull,b.pts)||0;P>0&&(S+=P*b.pxmid[0],C+=P*b.pxmid[1])}b.cxFinal=S,b.cyFinal=C;function z(U,W,Z,G){var j=G*(W[0]-U[0]),ie=G*(W[1]-U[1]);return"a"+G*s.r+","+G*s.r+" 0 "+b.largeArc+(Z?" 1 ":" 0 ")+j+","+ie}var N=u.hole;if(b.v===s.vTotal){var H="M"+(S+b.px0[0])+","+(C+b.px0[1])+z(b.px0,b.pxmid,!0,1)+z(b.pxmid,b.px0,!0,1)+"Z";N?q.attr("d","M"+(S+N*b.px0[0])+","+(C+N*b.px0[1])+z(b.px0,b.pxmid,!1,N)+z(b.pxmid,b.px0,!1,N)+"Z"+H):q.attr("d",H)}else{var B=z(b.px0,b.px1,!0,1);if(N){var I=1-N;q.attr("d","M"+(S+N*b.px1[0])+","+(C+N*b.px1[1])+z(b.px1,b.px0,!1,N)+"l"+I*b.px0[0]+","+I*b.px0[1]+B+"Z")}else q.attr("d","M"+S+","+C+"l"+b.px0[0]+","+b.px0[1]+B+"Z")}BH(e,b,s);var V=Dr.castOption(u.textposition,b.pts),O=L.selectAll("g.slicetext").data(b.text&&V!=="none"?[0]:[]);O.enter().append("g").classed("slicetext",!0),O.exit().remove(),O.each(function(){var U=Ua.ensureSingle(Ln.select(this),"text","",function(Q){Q.attr("data-notex",1)}),W=Ua.ensureUniformFontSize(e,V==="outside"?Tme(u,b,a.font):LH(u,b,a.font));U.text(b.text).attr({class:"slicetext",transform:"","text-anchor":"middle"}).call(Il.font,W).call(fx.convertToTspans,e);var Z=Il.bBox(U.node()),G;if(V==="outside")G=AH(Z,b);else if(G=EH(Z,b,s),V==="auto"&&G.scale<1){var j=Ua.ensureUniformFontSize(e,u.outsidetextfont);U.call(Il.font,j),Z=Il.bBox(U.node()),G=AH(Z,b)}var ie=G.textPosAngle,pe=ie===void 0?b.pxmid:op(s.r,ie);if(G.targetX=S+pe[0]*G.rCenter+(G.x||0),G.targetY=C+pe[1]*G.rCenter+(G.y||0),HH(G,Z),G.outside){var ve=G.targetY;b.yLabelMin=ve-Z.height/2,b.yLabelMid=ve,b.yLabelMax=ve+Z.height/2,b.labelExtraX=0,b.labelExtraY=0,d=!0}G.fontSize=W.size,xme(u.type,G,a),l[T].transform=G,Ua.setTransormAndDisplay(U,G)})});var h=Ln.select(this).selectAll("g.titletext").data(u.title.text?[0]:[]);if(h.enter().append("g").classed("titletext",!0),h.exit().remove(),h.each(function(){var b=Ua.ensureSingle(Ln.select(this),"text","",function(C){C.attr("data-notex",1)}),T=u.title.text;u._meta&&(T=Ua.templateString(T,u._meta)),b.text(T).attr({class:"titletext",transform:"","text-anchor":"middle"}).call(Il.font,u.title.font).call(fx.convertToTspans,e);var S;u.title.position==="middle center"?S=Cme(s):S=FH(s,n),b.attr("transform",_H(S.x,S.y)+bme(Math.min(1,S.scale))+_H(S.tx,S.ty))}),d&&Dme(c,u),Mme(f,u),d&&u.automargin){var p=Il.bBox(o.node()),g=u.domain,y=n.w*(g.x[1]-g.x[0]),x=n.h*(g.y[1]-g.y[0]),w=(.5*y-s.r)/n.w,M=(.5*x-s.r)/n.h;yme.autoMargin(e,"pie."+u.uid+".automargin",{xl:g.x[0]-w,xr:g.x[1]+w,yb:g.y[0]-M,yt:g.y[1]+M,l:Math.max(s.cx-s.r-p.left,0),r:Math.max(p.right-(s.cx+s.r),0),b:Math.max(p.bottom-(s.cy+s.r),0),t:Math.max(s.cy-s.r-p.top,0),pad:5})}})});setTimeout(function(){i.selectAll("tspan").each(function(){var l=Ln.select(this);l.attr("dy")&&l.attr("dy",l.attr("dy"))})},0)}function Mme(e,r){e.each(function(t){var a=Ln.select(this);if(!t.labelExtraX&&!t.labelExtraY){a.select("path.textline").remove();return}var n=a.select("g.slicetext text");t.transform.targetX+=t.labelExtraX,t.transform.targetY+=t.labelExtraY,Ua.setTransormAndDisplay(n,t.transform);var i=t.cxFinal+t.pxmid[0],l=t.cyFinal+t.pxmid[1],o="M"+i+","+l,s=(t.yLabelMax-t.yLabelMin)*(t.pxmid[0]<0?-1:1)/4;if(t.labelExtraX){var u=t.labelExtraX*t.pxmid[1]/t.pxmid[0],f=t.yLabelMid+t.labelExtraY-(t.cyFinal+t.pxmid[1]);Math.abs(u)>Math.abs(f)?o+="l"+f*t.pxmid[0]/t.pxmid[1]+","+f+"H"+(i+t.labelExtraX+s):o+="l"+t.labelExtraX+","+u+"v"+(f-u)+"h"+s}else o+="V"+(t.yLabelMid+t.labelExtraY)+"h"+s;Ua.ensureSingle(a,"path","textline").call(kH.stroke,r.outsidetextfont.color).attr({"stroke-width":Math.min(2,r.outsidetextfont.size/8),d:o,fill:"none"})})}function DH(e,r,t){var a=t[0],n=a.cx,i=a.cy,l=a.trace,o=l.type==="funnelarea";"_hasHoverLabel"in l||(l._hasHoverLabel=!1),"_hasHoverEvent"in l||(l._hasHoverEvent=!1),e.on("mouseover",function(s){var u=r._fullLayout,f=r._fullData[l.index];if(!(r._dragging||u.hovermode===!1)){var c=f.hoverinfo;if(Array.isArray(c)&&(c=ip.castHoverinfo({hoverinfo:[Dr.castOption(c,s.pts)],_module:l._module},u,0)),c==="all"&&(c="label+text+value+percent+name"),f.hovertemplate||c!=="none"&&c!=="skip"&&c){var d=s.rInscribed||0,h=n+s.pxmid[0]*(1-d),p=i+s.pxmid[1]*(1-d),g=u.separators,y=[];if(c&&c.indexOf("label")!==-1&&y.push(s.label),s.text=Dr.castOption(f.hovertext||f.text,s.pts),c&&c.indexOf("text")!==-1){var x=s.text;Ua.isValidTextValue(x)&&y.push(x)}s.value=s.v,s.valueLabel=Dr.formatPieValue(s.v,g),c&&c.indexOf("value")!==-1&&y.push(s.valueLabel),s.percent=s.v/a.vTotal,s.percentLabel=Dr.formatPiePercent(s.percent,g),c&&c.indexOf("percent")!==-1&&y.push(s.percentLabel);var w=f.hoverlabel,M=w.font,b=[];ip.loneHover({trace:l,x0:h-d*a.r,x1:h+d*a.r,y:p,_x0:o?n+s.TL[0]:h-d*a.r,_x1:o?n+s.TR[0]:h+d*a.r,_y0:o?i+s.TL[1]:p-d*a.r,_y1:o?i+s.BL[1]:p+d*a.r,text:y.join("
"),name:f.hovertemplate||c.indexOf("name")!==-1?f.name:void 0,idealAlign:s.pxmid[0]<0?"left":"right",color:Dr.castOption(w.bgcolor,s.pts)||s.color,borderColor:Dr.castOption(w.bordercolor,s.pts),fontFamily:Dr.castOption(M.family,s.pts),fontSize:Dr.castOption(M.size,s.pts),fontColor:Dr.castOption(M.color,s.pts),nameLength:Dr.castOption(w.namelength,s.pts),textAlign:Dr.castOption(w.align,s.pts),hovertemplate:Dr.castOption(f.hovertemplate,s.pts),hovertemplateLabels:s,eventData:[lp(s,f)]},{container:u._hoverlayer.node(),outerContainer:u._paper.node(),gd:r,inOut_bbox:b}),s.bbox=b[0],l._hasHoverLabel=!0}l._hasHoverEvent=!0,r.emit("plotly_hover",{points:[lp(s,f)],event:Ln.event})}}),e.on("mouseout",function(s){var u=r._fullLayout,f=r._fullData[l.index],c=Ln.select(this).datum();l._hasHoverEvent&&(s.originalEvent=Ln.event,r.emit("plotly_unhover",{points:[lp(c,f)],event:Ln.event}),l._hasHoverEvent=!1),l._hasHoverLabel&&(ip.loneUnhover(u._hoverlayer.node()),l._hasHoverLabel=!1)}),e.on("click",function(s){var u=r._fullLayout,f=r._fullData[l.index];r._dragging||u.hovermode===!1||(r._hoverdata=[lp(s,f)],ip.click(r,Ln.event))})}function Tme(e,r,t){var a=Dr.castOption(e.outsidetextfont.color,r.pts)||Dr.castOption(e.textfont.color,r.pts)||t.color,n=Dr.castOption(e.outsidetextfont.family,r.pts)||Dr.castOption(e.textfont.family,r.pts)||t.family,i=Dr.castOption(e.outsidetextfont.size,r.pts)||Dr.castOption(e.textfont.size,r.pts)||t.size,l=Dr.castOption(e.outsidetextfont.weight,r.pts)||Dr.castOption(e.textfont.weight,r.pts)||t.weight,o=Dr.castOption(e.outsidetextfont.style,r.pts)||Dr.castOption(e.textfont.style,r.pts)||t.style,s=Dr.castOption(e.outsidetextfont.variant,r.pts)||Dr.castOption(e.textfont.variant,r.pts)||t.variant,u=Dr.castOption(e.outsidetextfont.textcase,r.pts)||Dr.castOption(e.textfont.textcase,r.pts)||t.textcase,f=Dr.castOption(e.outsidetextfont.lineposition,r.pts)||Dr.castOption(e.textfont.lineposition,r.pts)||t.lineposition,c=Dr.castOption(e.outsidetextfont.shadow,r.pts)||Dr.castOption(e.textfont.shadow,r.pts)||t.shadow;return{color:a,family:n,size:i,weight:l,style:o,variant:s,textcase:u,lineposition:f,shadow:c}}function LH(e,r,t){var a=Dr.castOption(e.insidetextfont.color,r.pts);!a&&e._input.textfont&&(a=Dr.castOption(e._input.textfont.color,r.pts));var n=Dr.castOption(e.insidetextfont.family,r.pts)||Dr.castOption(e.textfont.family,r.pts)||t.family,i=Dr.castOption(e.insidetextfont.size,r.pts)||Dr.castOption(e.textfont.size,r.pts)||t.size,l=Dr.castOption(e.insidetextfont.weight,r.pts)||Dr.castOption(e.textfont.weight,r.pts)||t.weight,o=Dr.castOption(e.insidetextfont.style,r.pts)||Dr.castOption(e.textfont.style,r.pts)||t.style,s=Dr.castOption(e.insidetextfont.variant,r.pts)||Dr.castOption(e.textfont.variant,r.pts)||t.variant,u=Dr.castOption(e.insidetextfont.textcase,r.pts)||Dr.castOption(e.textfont.textcase,r.pts)||t.textcase,f=Dr.castOption(e.insidetextfont.lineposition,r.pts)||Dr.castOption(e.textfont.lineposition,r.pts)||t.lineposition,c=Dr.castOption(e.insidetextfont.shadow,r.pts)||Dr.castOption(e.textfont.shadow,r.pts)||t.shadow;return{color:a||kH.contrast(r.color),family:n,size:i,weight:l,style:o,variant:s,textcase:u,lineposition:f,shadow:c}}function qH(e,r){for(var t,a,n=0;n=-4;w-=2)x(Math.PI*w,"tan");for(w=4;w>=-4;w-=2)x(Math.PI*(w+1),"tan")}if(c||h){for(w=4;w>=-4;w-=2)x(Math.PI*(w+1.5),"rad");for(w=4;w>=-4;w-=2)x(Math.PI*(w+.5),"rad")}}if(o||p||c){var M=Math.sqrt(e.width*e.width+e.height*e.height);if(y={scale:n*a*2/M,rCenter:1-n,rotate:0},y.textPosAngle=(r.startangle+r.stopangle)/2,y.scale>=1)return y;g.push(y)}(p||h)&&(y=MH(e,a,l,s,u),y.textPosAngle=(r.startangle+r.stopangle)/2,g.push(y)),(p||d)&&(y=TH(e,a,l,s,u),y.textPosAngle=(r.startangle+r.stopangle)/2,g.push(y));for(var b=0,T=0,S=0;S=1)break}return g[b]}function Ame(e,r){var t=e.startangle,a=e.stopangle;return t>r&&r>a||t0?1:-1)/2,y:i/(1+t*t/(a*a)),outside:!0}}function Cme(e){var r=Math.sqrt(e.titleBox.width*e.titleBox.width+e.titleBox.height*e.titleBox.height);return{x:e.cx,y:e.cy,scale:e.trace.hole*e.r*2/r,tx:0,ty:-e.titleBox.height/2+e.trace.title.font.size}}function FH(e,r){var t=1,a=1,n,i=e.trace,l={x:e.cx,y:e.cy},o={tx:0,ty:0};o.ty+=i.title.font.size,n=NH(i),i.title.position.indexOf("top")!==-1?(l.y-=(1+n)*e.r,o.ty-=e.titleBox.height):i.title.position.indexOf("bottom")!==-1&&(l.y+=(1+n)*e.r);var s=Sme(e.r,e.trace.aspectratio),u=r.w*(i.domain.x[1]-i.domain.x[0])/2;return i.title.position.indexOf("left")!==-1?(u=u+s,l.x-=(1+n)*s,o.tx+=e.titleBox.width/2):i.title.position.indexOf("center")!==-1?u*=2:i.title.position.indexOf("right")!==-1&&(u=u+s,l.x+=(1+n)*s,o.tx-=e.titleBox.width/2),t=u/e.titleBox.width,a=cx(e,r)/e.titleBox.height,{x:l.x,y:l.y,scale:Math.min(t,a),tx:o.tx,ty:o.ty}}function Sme(e,r){return e/(r===void 0?1:r)}function cx(e,r){var t=e.trace,a=r.h*(t.domain.y[1]-t.domain.y[0]);return Math.min(e.titleBox.height,a/2)}function NH(e){var r=e.pull;if(!r)return 0;var t;if(Ua.isArrayOrTypedArray(r))for(r=0,t=0;tr&&(r=e.pull[t]);return r}function Dme(e,r){var t,a,n,i,l,o,s,u,f,c,d,h,p;function g(M,b){return M.pxmid[1]-b.pxmid[1]}function y(M,b){return b.pxmid[1]-M.pxmid[1]}function x(M,b){b||(b={});var T=b.labelExtraY+(a?b.yLabelMax:b.yLabelMin),S=a?M.yLabelMin:M.yLabelMax,C=a?M.yLabelMax:M.yLabelMin,L=M.cyFinal+l(M.px0[1],M.px1[1]),q=T-S,P,z,N,H,B,I;if(q*s>0&&(M.labelExtraY=q),!!Ua.isArrayOrTypedArray(r.pull))for(z=0;z=(Dr.castOption(r.pull,N.pts)||0))&&((M.pxmid[1]-N.pxmid[1])*s>0?(H=N.cyFinal+l(N.px0[1],N.px1[1]),q=H-S-M.labelExtraY,q*s>0&&(M.labelExtraY+=q)):(C+M.labelExtraY-L)*s>0&&(P=3*o*Math.abs(z-c.indexOf(M)),B=N.cxFinal+i(N.px0[0],N.px1[0]),I=B+P-(M.cxFinal+M.pxmid[0])-M.labelExtraX,I*o>0&&(M.labelExtraX+=I)))}for(a=0;a<2;a++)for(n=a?g:y,l=a?Math.max:Math.min,s=a?1:-1,t=0;t<2;t++){for(i=t?Math.max:Math.min,o=t?1:-1,u=e[a][t],u.sort(n),f=e[1-a][t],c=f.concat(u),h=[],d=0;d1?(u=t.r,f=u/n.aspectratio):(f=t.r,u=f*n.aspectratio),u*=(1+n.baseratio)/2,s=u*f}l=Math.min(l,s/t.vTotal)}for(a=0;ar.vTotal/2?1:0,u.halfangle=Math.PI*Math.min(u.v/r.vTotal,.5),u.ring=1-a.hole,u.rInscribed=kme(u,r))}function op(e,r){return[e*Math.sin(r),-e*Math.cos(r)]}function BH(e,r,t){var a=e._fullLayout,n=t.trace,i=n.texttemplate,l=n.textinfo;if(!i&&l&&l!=="none"){var o=l.split("+"),s=function(b){return o.indexOf(b)!==-1},u=s("label"),f=s("text"),c=s("value"),d=s("percent"),h=a.separators,p;if(p=u?[r.label]:[],f){var g=Dr.getFirstFilled(n.text,r.pts);wH(g)&&p.push(g)}c&&p.push(Dr.formatPieValue(r.v,h)),d&&p.push(Dr.formatPiePercent(r.v/t.vTotal,h)),r.text=p.join("
")}function y(b){return{label:b.label,value:b.v,valueLabel:Dr.formatPieValue(b.v,a.separators),percent:b.v/t.vTotal,percentLabel:Dr.formatPiePercent(b.v/t.vTotal,a.separators),color:b.color,text:b.text,customdata:Ua.castOption(n,b.i,"customdata")}}if(i){var x=Ua.castOption(n,r.i,"texttemplate");if(!x)r.text="";else{var w=y(r),M=Dr.getFirstFilled(n.text,r.pts);(wH(M)||M==="")&&(w.text=M),r.text=Ua.texttemplateString({data:[w,n._meta],fallback:n.texttemplatefallback,labels:w,locale:e._fullLayout._d3locale,template:x})}}}function HH(e,r){var t=e.rotate*Math.PI/180,a=Math.cos(t),n=Math.sin(t),i=(r.left+r.right)/2,l=(r.top+r.bottom)/2;e.textX=i*a-l*n,e.textY=i*n+l*a,e.noCenter=!0}OH.exports={plot:wme,formatSliceLabel:BH,transformInsideText:EH,determineInsideTextFont:LH,positionTitleOutside:FH,prerenderTitles:qH,layoutAreas:IH,attachFxHandlers:DH,computeTransform:HH}});var VH=J((p6e,GH)=>{"use strict";var UH=Or(),Eme=I1(),Pme=ev().resizeText;GH.exports=function(r){var t=r._fullLayout._pielayer.selectAll(".trace");Pme(r,t,"pie"),t.each(function(a){var n=a[0],i=n.trace,l=UH.select(this);l.style({opacity:i.opacity}),l.selectAll("path.surface").each(function(o){UH.select(this).call(Eme,o,i,r)})})}});var WH=J(Lu=>{"use strict";var XH=na();Lu.name="pie";Lu.plot=function(e,r,t,a){XH.plotBasePlot(Lu.name,e,r,t,a)};Lu.clean=function(e,r,t,a){XH.cleanBasePlot(Lu.name,e,r,t,a)}});var JH=J((g6e,ZH)=>{"use strict";ZH.exports={attributes:ox(),supplyDefaults:vH().supplyDefaults,supplyLayoutDefaults:pH(),layoutAttributes:sx(),calc:ux().calc,crossTraceCalc:ux().crossTraceCalc,plot:YH().plot,style:VH(),styleOne:I1(),moduleType:"trace",name:"pie",basePlotModule:WH(),categories:["pie-like","pie","showLegend"],meta:{}}});var KH=J((y6e,$H)=>{"use strict";$H.exports=JH()});var ja=J((b6e,QH)=>{"use strict";var jH=Object.getOwnPropertySymbols,Rme=Object.prototype.hasOwnProperty,zme=Object.prototype.propertyIsEnumerable;function Fme(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function Nme(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var r={},t=0;t<10;t++)r["_"+String.fromCharCode(t)]=t;var a=Object.getOwnPropertyNames(r).map(function(i){return r[i]});if(a.join("")!=="0123456789")return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach(function(i){n[i]=i}),Object.keys(Object.assign({},n)).join("")==="abcdefghijklmnopqrst"}catch(i){return!1}}QH.exports=Nme()?Object.assign:function(e,r){for(var t,a=Fme(e),n,i=1;i{var up=ja();function eO(){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={}}up(eO.prototype,{instance:function(e,r){e=(e||"gregorian").toLowerCase(),r=r||"";var t=this._localCals[e+"-"+r];if(!t&&this.calendars[e]&&(t=new this.calendars[e](r),this._localCals[e+"-"+r]=t),!t)throw(this.local.invalidCalendar||this.regionalOptions[""].invalidCalendar).replace(/\{0\}/,e);return t},newDate:function(e,r,t,a,n){return a=(e!=null&&e.year?e.calendar():typeof a=="string"?this.instance(a,n):a)||this.instance(),a.newDate(e,r,t)},substituteDigits:function(e){return function(r){return(r+"").replace(/[0-9]/g,function(t){return e[t]})}},substituteChineseDigits:function(e,r){return function(t){for(var a="",n=0;t>0;){var i=t%10;a=(i===0?"":e[i]+r[n])+a,n++,t=Math.floor(t/10)}return a.indexOf(e[1]+r[1])===0&&(a=a.substr(1)),a||e[0]}}});function vx(e,r,t,a){if(this._calendar=e,this._year=r,this._month=t,this._day=a,this._calendar._validateLevel===0&&!this._calendar.isValid(this._year,this._month,this._day))throw(Hr.local.invalidDate||Hr.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name)}function sp(e,r){return e=""+e,"000000".substring(0,r-e.length)+e}up(vx.prototype,{newDate:function(e,r,t){return this._calendar.newDate(e==null?this:e,r,t)},year:function(e){return arguments.length===0?this._year:this.set(e,"y")},month:function(e){return arguments.length===0?this._month:this.set(e,"m")},day:function(e){return arguments.length===0?this._day:this.set(e,"d")},date:function(e,r,t){if(!this._calendar.isValid(e,r,t))throw(Hr.local.invalidDate||Hr.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name);return this._year=e,this._month=r,this._day=t,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(e,r){return this._calendar.add(this,e,r)},set:function(e,r){return this._calendar.set(this,e,r)},compareTo:function(e){if(this._calendar.name!==e._calendar.name)throw(Hr.local.differentCalendars||Hr.regionalOptions[""].differentCalendars).replace(/\{0\}/,this._calendar.local.name).replace(/\{1\}/,e._calendar.local.name);var r=this._year!==e._year?this._year-e._year:this._month!==e._month?this.monthOfYear()-e.monthOfYear():this._day-e._day;return r===0?0:r<0?-1:1},calendar:function(){return this._calendar},toJD:function(){return this._calendar.toJD(this)},fromJD:function(e){return this._calendar.fromJD(e)},toJSDate:function(){return this._calendar.toJSDate(this)},fromJSDate:function(e){return this._calendar.fromJSDate(e)},toString:function(){return(this.year()<0?"-":"")+sp(Math.abs(this.year()),4)+"-"+sp(this.month(),2)+"-"+sp(this.day(),2)}});function dx(){this.shortYearCutoff="+10"}up(dx.prototype,{_validateLevel:0,newDate:function(e,r,t){return e==null?this.today():(e.year&&(this._validate(e,r,t,Hr.local.invalidDate||Hr.regionalOptions[""].invalidDate),t=e.day(),r=e.month(),e=e.year()),new vx(this,e,r,t))},today:function(){return this.fromJSDate(new Date)},epoch:function(e){var r=this._validate(e,this.minMonth,this.minDay,Hr.local.invalidYear||Hr.regionalOptions[""].invalidYear);return r.year()<0?this.local.epochs[0]:this.local.epochs[1]},formatYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Hr.local.invalidYear||Hr.regionalOptions[""].invalidYear);return(r.year()<0?"-":"")+sp(Math.abs(r.year()),4)},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Hr.local.invalidYear||Hr.regionalOptions[""].invalidYear),12},monthOfYear:function(e,r){var t=this._validate(e,r,this.minDay,Hr.local.invalidMonth||Hr.regionalOptions[""].invalidMonth);return(t.month()+this.monthsInYear(t)-this.firstMonth)%this.monthsInYear(t)+this.minMonth},fromMonthOfYear:function(e,r){var t=(r+this.firstMonth-2*this.minMonth)%this.monthsInYear(e)+this.minMonth;return this._validate(e,t,this.minDay,Hr.local.invalidMonth||Hr.regionalOptions[""].invalidMonth),t},daysInYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Hr.local.invalidYear||Hr.regionalOptions[""].invalidYear);return this.leapYear(r)?366:365},dayOfYear:function(e,r,t){var a=this._validate(e,r,t,Hr.local.invalidDate||Hr.regionalOptions[""].invalidDate);return a.toJD()-this.newDate(a.year(),this.fromMonthOfYear(a.year(),this.minMonth),this.minDay).toJD()+1},daysInWeek:function(){return 7},dayOfWeek:function(e,r,t){var a=this._validate(e,r,t,Hr.local.invalidDate||Hr.regionalOptions[""].invalidDate);return(Math.floor(this.toJD(a))+2)%this.daysInWeek()},extraInfo:function(e,r,t){return this._validate(e,r,t,Hr.local.invalidDate||Hr.regionalOptions[""].invalidDate),{}},add:function(e,r,t){return this._validate(e,this.minMonth,this.minDay,Hr.local.invalidDate||Hr.regionalOptions[""].invalidDate),this._correctAdd(e,this._add(e,r,t),r,t)},_add:function(e,r,t){if(this._validateLevel++,t==="d"||t==="w"){var a=e.toJD()+r*(t==="w"?this.daysInWeek():1),n=e.calendar().fromJD(a);return this._validateLevel--,[n.year(),n.month(),n.day()]}try{var i=e.year()+(t==="y"?r:0),l=e.monthOfYear()+(t==="m"?r:0),n=e.day(),o=function(f){for(;lc-1+f.minMonth;)i++,l-=c,c=f.monthsInYear(i)};t==="y"?(e.month()!==this.fromMonthOfYear(i,l)&&(l=this.newDate(i,e.month(),this.minDay).monthOfYear()),l=Math.min(l,this.monthsInYear(i)),n=Math.min(n,this.daysInMonth(i,this.fromMonthOfYear(i,l)))):t==="m"&&(o(this),n=Math.min(n,this.daysInMonth(i,this.fromMonthOfYear(i,l))));var s=[i,this.fromMonthOfYear(i,l),n];return this._validateLevel--,s}catch(u){throw this._validateLevel--,u}},_correctAdd:function(e,r,t,a){if(!this.hasYearZero&&(a==="y"||a==="m")&&(r[0]===0||e.year()>0!=r[0]>0)){var n={y:[1,1,"y"],m:[1,this.monthsInYear(-1),"m"],w:[this.daysInWeek(),this.daysInYear(-1),"d"],d:[1,this.daysInYear(-1),"d"]}[a],i=t<0?-1:1;r=this._add(e,t*n[0]+i*n[1],n[2])}return e.date(r[0],r[1],r[2])},set:function(e,r,t){this._validate(e,this.minMonth,this.minDay,Hr.local.invalidDate||Hr.regionalOptions[""].invalidDate);var a=t==="y"?r:e.year(),n=t==="m"?r:e.month(),i=t==="d"?r:e.day();return(t==="y"||t==="m")&&(i=Math.min(i,this.daysInMonth(a,n))),e.date(a,n,i)},isValid:function(e,r,t){this._validateLevel++;var a=this.hasYearZero||e!==0;if(a){var n=this.newDate(e,r,this.minDay);a=r>=this.minMonth&&r-this.minMonth=this.minDay&&t-this.minDay13.5?13:1),u=n-(s>2.5?4716:4715);return u<=0&&u--,this.newDate(u,s,o)},toJSDate:function(e,r,t){var a=this._validate(e,r,t,Hr.local.invalidDate||Hr.regionalOptions[""].invalidDate),n=new Date(a.year(),a.month()-1,a.day());return n.setHours(0),n.setMinutes(0),n.setSeconds(0),n.setMilliseconds(0),n.setHours(n.getHours()>12?n.getHours()+2:0),n},fromJSDate:function(e){return this.newDate(e.getFullYear(),e.getMonth()+1,e.getDate())}});var Hr=rO.exports=new eO;Hr.cdate=vx;Hr.baseCalendar=dx;Hr.calendars.gregorian=hx});var tO=J(()=>{var px=ja(),Pa=Qa();px(Pa.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"});Pa.local=Pa.regionalOptions[""];px(Pa.cdate.prototype,{formatDate:function(e,r){return typeof e!="string"&&(r=e,e=""),this._calendar.formatDate(e||"",this,r)}});px(Pa.baseCalendar.prototype,{UNIX_EPOCH:Pa.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:1440*60,TICKS_EPOCH:Pa.instance().jdEpoch,TICKS_PER_DAY:1440*60*1e7,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(e,r,t){if(typeof e!="string"&&(t=r,r=e,e=""),!r)return"";if(r.calendar()!==this)throw Pa.local.invalidFormat||Pa.regionalOptions[""].invalidFormat;e=e||this.local.dateFormat,t=t||{};for(var a=t.dayNamesShort||this.local.dayNamesShort,n=t.dayNames||this.local.dayNames,i=t.monthNumbers||this.local.monthNumbers,l=t.monthNamesShort||this.local.monthNamesShort,o=t.monthNames||this.local.monthNames,s=t.calculateWeek||this.local.calculateWeek,u=function(b,T){for(var S=1;M+S1},f=function(b,T,S,C){var L=""+T;if(u(b,C))for(;L.length1},w=function(N,H){var B=x(N,H),I=[2,3,B?4:2,B?4:2,10,11,20]["oyYJ@!".indexOf(N)+1],V=new RegExp("^-?\\d{1,"+I+"}"),O=r.substring(L).match(V);if(!O)throw(Pa.local.missingNumberAt||Pa.regionalOptions[""].missingNumberAt).replace(/\{0\}/,L);return L+=O[0].length,parseInt(O[0],10)},M=this,b=function(){if(typeof o=="function"){x("m");var N=o.call(M,r.substring(L));return L+=N.length,N}return w("m")},T=function(N,H,B,I){for(var V=x(N,I)?B:H,O=0;O-1){d=1,h=p;for(var z=this.daysInMonth(c,d);h>z;z=this.daysInMonth(c,d))d++,h-=z}return f>-1?this.fromJD(f):this.newDate(c,d,h)},determineDate:function(e,r,t,a,n){t&&typeof t!="object"&&(n=a,a=t,t=null),typeof a!="string"&&(n=a,a="");var i=this,l=function(o){try{return i.parseDate(a,o,n)}catch(c){}o=o.toLowerCase();for(var s=(o.match(/^c/)&&t?t.newDate():null)||i.today(),u=/([+-]?[0-9]+)\s*(d|w|m|y)?/g,f=u.exec(o);f;)s.add(parseInt(f[1],10),f[2]||"d"),f=u.exec(o);return s};return r=r?r.newDate():null,e=e==null?r:typeof e=="string"?l(e):typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?r:i.today().add(e,"d"):i.newDate(e),e}})});var aO=J(()=>{var qo=Qa(),Ime=ja(),mx=qo.instance();function fp(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}fp.prototype=new qo.baseCalendar;Ime(fp.prototype,{name:"Chinese",jdEpoch:17214255e-1,hasYearZero:!1,minMonth:0,firstMonth:0,minDay:1,regionalOptions:{"":{name:"Chinese",epochs:["BEC","EC"],monthNumbers:function(e,r){if(typeof e=="string"){var t=e.match(Hme);return t?t[0]:""}var a=this._validateYear(e),n=e.month(),i=""+this.toChineseMonth(a,n);return r&&i.length<2&&(i="0"+i),this.isIntercalaryMonth(a,n)&&(i+="i"),i},monthNames:function(e){if(typeof e=="string"){var r=e.match(Ome);return r?r[0]:""}var t=this._validateYear(e),a=e.month(),n=this.toChineseMonth(t,a),i=["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"][n-1];return this.isIntercalaryMonth(t,a)&&(i="\u95F0"+i),i},monthNamesShort:function(e){if(typeof e=="string"){var r=e.match(Yme);return r?r[0]:""}var t=this._validateYear(e),a=e.month(),n=this.toChineseMonth(t,a),i=["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"][n-1];return this.isIntercalaryMonth(t,a)&&(i="\u95F0"+i),i},parseMonth:function(e,r){e=this._validateYear(e);var t=parseInt(r),a;if(isNaN(t))r[0]==="\u95F0"&&(a=!0,r=r.substring(1)),r[r.length-1]==="\u6708"&&(r=r.substring(0,r.length-1)),t=1+["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"].indexOf(r);else{var n=r[r.length-1];a=n==="i"||n==="I"}var i=this.toMonthIndex(e,t,a);return i},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(e,r){if(e.year&&(e=e.year()),typeof e!="number"||e<1888||e>2111)throw r.replace(/\{0\}/,this.local.name);return e},toMonthIndex:function(e,r,t){var a=this.intercalaryMonth(e),n=t&&r!==a;if(n||r<1||r>12)throw qo.local.invalidMonth.replace(/\{0\}/,this.local.name);var i;return a?!t&&r<=a?i=r-1:i=r:i=r-1,i},toChineseMonth:function(e,r){e.year&&(e=e.year(),r=e.month());var t=this.intercalaryMonth(e),a=t?12:11;if(r<0||r>a)throw qo.local.invalidMonth.replace(/\{0\}/,this.local.name);var n;return t?r>13;return t},isIntercalaryMonth:function(e,r){e.year&&(e=e.year(),r=e.month());var t=this.intercalaryMonth(e);return!!t&&t===r},leapYear:function(e){return this.intercalaryMonth(e)!==0},weekOfYear:function(e,r,t){var a=this._validateYear(e,qo.local.invalidyear),n=Po[a-Po[0]],i=n>>9&4095,l=n>>5&15,o=n&31,s;s=mx.newDate(i,l,o),s.add(4-(s.dayOfWeek()||7),"d");var u=this.toJD(e,r,t)-s.toJD();return 1+Math.floor(u/7)},monthsInYear:function(e){return this.leapYear(e)?13:12},daysInMonth:function(e,r){e.year&&(r=e.month(),e=e.year()),e=this._validateYear(e);var t=Eo[e-Eo[0]],a=t>>13,n=a?12:11;if(r>n)throw qo.local.invalidMonth.replace(/\{0\}/,this.local.name);var i=t&1<<12-r?30:29;return i},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var a=this._validate(e,i,t,qo.local.invalidDate);e=this._validateYear(a.year()),r=a.month(),t=a.day();var n=this.isIntercalaryMonth(e,r),i=this.toChineseMonth(e,r),l=Gme(e,i,t,n);return mx.toJD(l.year,l.month,l.day)},fromJD:function(e){var r=mx.fromJD(e),t=Ume(r.year(),r.month(),r.day()),a=this.toMonthIndex(t.year,t.month,t.isIntercalary);return this.newDate(t.year,a,t.day)},fromString:function(e){var r=e.match(Bme),t=this._validateYear(+r[1]),a=+r[2],n=!!r[3],i=this.toMonthIndex(t,a,n),l=+r[4];return this.newDate(t,i,l)},add:function(e,r,t){var a=e.year(),n=e.month(),i=this.isIntercalaryMonth(a,n),l=this.toChineseMonth(a,n),o=Object.getPrototypeOf(fp.prototype).add.call(this,e,r,t);if(t==="y"){var s=o.year(),u=o.month(),f=this.isIntercalaryMonth(s,l),c=i&&f?this.toMonthIndex(s,l,!0):this.toMonthIndex(s,l,!1);c!==u&&o.month(c)}return o}});var Bme=/^\s*(-?\d\d\d\d|\d\d)[-/](\d?\d)([iI]?)[-/](\d?\d)/m,Hme=/^\d?\d[iI]?/m,Ome=/^闰?十?[一二三四五六七八九]?月/m,Yme=/^闰?十?[一二三四五六七八九]?/m;qo.calendars.chinese=fp;var Eo=[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],Po=[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 Ume(e,r,t,a){var n,i;if(typeof e=="object")n=e,i=r||{};else{var l=typeof e=="number"&&e>=1888&&e<=2111;if(!l)throw new Error("Solar year outside range 1888-2111");var o=typeof r=="number"&&r>=1&&r<=12;if(!o)throw new Error("Solar month outside range 1 - 12");var s=typeof t=="number"&&t>=1&&t<=31;if(!s)throw new Error("Solar day outside range 1 - 31");n={year:e,month:r,day:t},i=a||{}}var u=Po[n.year-Po[0]],f=n.year<<9|n.month<<5|n.day;i.year=f>=u?n.year:n.year-1,u=Po[i.year-Po[0]];var c=u>>9&4095,d=u>>5&15,h=u&31,p,g=new Date(c,d-1,h),y=new Date(n.year,n.month-1,n.day);p=Math.round((y-g)/(24*3600*1e3));var x=Eo[i.year-Eo[0]],w;for(w=0;w<13;w++){var M=x&1<<12-w?30:29;if(p>13;return!b||w=1888&&e<=2111;if(!o)throw new Error("Lunar year outside range 1888-2111");var s=typeof r=="number"&&r>=1&&r<=12;if(!s)throw new Error("Lunar month outside range 1 - 12");var u=typeof t=="number"&&t>=1&&t<=30;if(!u)throw new Error("Lunar day outside range 1 - 30");var f;typeof a=="object"?(f=!1,i=a):(f=!!a,i=n||{}),l={year:e,month:r,day:t,isIntercalary:f}}var c;c=l.day-1;var d=Eo[l.year-Eo[0]],h=d>>13,p;h&&(l.month>h||l.isIntercalary)?p=l.month:p=l.month-1;for(var g=0;g>9&4095,M=x>>5&15,b=x&31,T=new Date(w,M-1,b+c);return i.year=T.getFullYear(),i.month=1+T.getMonth(),i.day=T.getDate(),i}});var nO=J(()=>{var Xs=Qa(),Vme=ja();function gx(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}gx.prototype=new Xs.baseCalendar;Vme(gx.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(t){var r=this._validate(t,this.minMonth,this.minDay,Xs.local.invalidYear),t=r.year()+(r.year()<0?1:0);return t%4===3||t%4===-1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Xs.local.invalidYear||Xs.regionalOptions[""].invalidYear),13},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Xs.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===13&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var a=this._validate(e,r,t,Xs.local.invalidDate);return e=a.year(),e<0&&e++,a.day()+(a.month()-1)*30+(e-1)*365+Math.floor(e/4)+this.jdEpoch-1},fromJD:function(e){var r=Math.floor(e)+.5-this.jdEpoch,t=Math.floor((r-Math.floor((r+366)/1461))/365)+1;t<=0&&t--,r=Math.floor(e)+.5-this.newDate(t,1,1).toJD();var a=Math.floor(r/30)+1,n=r-(a-1)*30+1;return this.newDate(t,a,n)}});Xs.calendars.coptic=gx});var iO=J(()=>{var Bl=Qa(),Xme=ja();function yx(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}yx.prototype=new Bl.baseCalendar;Xme(yx.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(e){return this._validate(e,this.minMonth,this.minDay,Bl.local.invalidYear),!1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Bl.local.invalidYear),13},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Bl.local.invalidYear),400},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/8)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Bl.local.invalidMonth);return this.daysPerMonth[t.month()-1]},daysInWeek:function(){return 8},dayOfWeek:function(e,r,t){var a=this._validate(e,r,t,Bl.local.invalidDate);return(a.day()+1)%8},weekDay:function(e,r,t){var a=this.dayOfWeek(e,r,t);return a>=2&&a<=6},extraInfo:function(e,r,t){var a=this._validate(e,r,t,Bl.local.invalidDate);return{century:Wme[Math.floor((a.year()-1)/100)+1]||""}},toJD:function(e,r,t){var a=this._validate(e,r,t,Bl.local.invalidDate);return e=a.year()+(a.year()<0?1:0),r=a.month(),t=a.day(),t+(r>1?16:0)+(r>2?(r-2)*32:0)+(e-1)*400+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e+.5)-Math.floor(this.jdEpoch)-1;var r=Math.floor(e/400)+1;e-=(r-1)*400,e+=e>15?16:0;var t=Math.floor(e/32)+1,a=e-(t-1)*32+1;return this.newDate(r<=0?r-1:r,t,a)}});var Wme={20:"Fruitbat",21:"Anchovy"};Bl.calendars.discworld=yx});var lO=J(()=>{var Ws=Qa(),Zme=ja();function bx(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}bx.prototype=new Ws.baseCalendar;Zme(bx.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(t){var r=this._validate(t,this.minMonth,this.minDay,Ws.local.invalidYear),t=r.year()+(r.year()<0?1:0);return t%4===3||t%4===-1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Ws.local.invalidYear||Ws.regionalOptions[""].invalidYear),13},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Ws.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===13&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var a=this._validate(e,r,t,Ws.local.invalidDate);return e=a.year(),e<0&&e++,a.day()+(a.month()-1)*30+(e-1)*365+Math.floor(e/4)+this.jdEpoch-1},fromJD:function(e){var r=Math.floor(e)+.5-this.jdEpoch,t=Math.floor((r-Math.floor((r+366)/1461))/365)+1;t<=0&&t--,r=Math.floor(e)+.5-this.newDate(t,1,1).toJD();var a=Math.floor(r/30)+1,n=r-(a-1)*30+1;return this.newDate(t,a,n)}});Ws.calendars.ethiopian=bx});var oO=J(()=>{var Ro=Qa(),Jme=ja();function xx(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}xx.prototype=new Ro.baseCalendar;Jme(xx.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(e){var r=this._validate(e,this.minMonth,this.minDay,Ro.local.invalidYear);return this._leapYear(r.year())},_leapYear:function(e){return e=e<0?e+1:e,cp(e*7+1,19)<7},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Ro.local.invalidYear),this._leapYear(e.year?e.year():e)?13:12},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Ro.local.invalidYear);return e=r.year(),this.toJD(e===-1?1:e+1,7,1)-this.toJD(e,7,1)},daysInMonth:function(e,r){return e.year&&(r=e.month(),e=e.year()),this._validate(e,r,this.minDay,Ro.local.invalidMonth),r===12&&this.leapYear(e)||r===8&&cp(this.daysInYear(e),10)===5?30:r===9&&cp(this.daysInYear(e),10)===3?29:this.daysPerMonth[r-1]},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==6},extraInfo:function(e,r,t){var a=this._validate(e,r,t,Ro.local.invalidDate);return{yearType:(this.leapYear(a)?"embolismic":"common")+" "+["deficient","regular","complete"][this.daysInYear(a)%10-3]}},toJD:function(e,r,t){var a=this._validate(e,r,t,Ro.local.invalidDate);e=a.year(),r=a.month(),t=a.day();var n=e<=0?e+1:e,i=this.jdEpoch+this._delay1(n)+this._delay2(n)+t+1;if(r<7){for(var l=7;l<=this.monthsInYear(e);l++)i+=this.daysInMonth(e,l);for(var l=1;l=this.toJD(r===-1?1:r+1,7,1);)r++;for(var t=ethis.toJD(r,t,this.daysInMonth(r,t));)t++;var a=e-this.toJD(r,t,1)+1;return this.newDate(r,t,a)}});function cp(e,r){return e-r*Math.floor(e/r)}Ro.calendars.hebrew=xx});var sO=J(()=>{var iv=Qa(),$me=ja();function _x(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}_x.prototype=new iv.baseCalendar;$me(_x.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\u012Bs","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(e){var r=this._validate(e,this.minMonth,this.minDay,iv.local.invalidYear);return(r.year()*11+14)%30<11},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInYear:function(e){return this.leapYear(e)?355:354},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,iv.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===12&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==5},toJD:function(e,r,t){var a=this._validate(e,r,t,iv.local.invalidDate);return e=a.year(),r=a.month(),t=a.day(),e=e<=0?e+1:e,t+Math.ceil(29.5*(r-1))+(e-1)*354+Math.floor((3+11*e)/30)+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e)+.5;var r=Math.floor((30*(e-this.jdEpoch)+10646)/10631);r=r<=0?r-1:r;var t=Math.min(12,Math.ceil((e-29-this.toJD(r,1,1))/29.5)+1),a=e-this.toJD(r,t,1)+1;return this.newDate(r,t,a)}});iv.calendars.islamic=_x});var uO=J(()=>{var lv=Qa(),Kme=ja();function wx(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}wx.prototype=new lv.baseCalendar;Kme(wx.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(t){var r=this._validate(t,this.minMonth,this.minDay,lv.local.invalidYear),t=r.year()<0?r.year()+1:r.year();return t%4===0},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(4-(a.dayOfWeek()||7),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,lv.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===2&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var a=this._validate(e,r,t,lv.local.invalidDate);return e=a.year(),r=a.month(),t=a.day(),e<0&&e++,r<=2&&(e--,r+=12),Math.floor(365.25*(e+4716))+Math.floor(30.6001*(r+1))+t-1524.5},fromJD:function(e){var r=Math.floor(e+.5),t=r+1524,a=Math.floor((t-122.1)/365.25),n=Math.floor(365.25*a),i=Math.floor((t-n)/30.6001),l=i-Math.floor(i<14?1:13),o=a-Math.floor(l>2?4716:4715),s=t-n-Math.floor(30.6001*i);return o<=0&&o--,this.newDate(o,l,s)}});lv.calendars.julian=wx});var cO=J(()=>{var pi=Qa(),jme=ja();function Tx(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}Tx.prototype=new pi.baseCalendar;jme(Tx.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(e){return this._validate(e,this.minMonth,this.minDay,pi.local.invalidYear),!1},formatYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,pi.local.invalidYear);e=r.year();var t=Math.floor(e/400);e=e%400,e+=e<0?400:0;var a=Math.floor(e/20);return t+"."+a+"."+e%20},forYear:function(e){if(e=e.split("."),e.length<3)throw"Invalid Mayan year";for(var r=0,t=0;t19||t>0&&a<0)throw"Invalid Mayan year";r=r*20+a}return r},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,pi.local.invalidYear),18},weekOfYear:function(e,r,t){return this._validate(e,r,t,pi.local.invalidDate),0},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,pi.local.invalidYear),360},daysInMonth:function(e,r){return this._validate(e,r,this.minDay,pi.local.invalidMonth),20},daysInWeek:function(){return 5},dayOfWeek:function(e,r,t){var a=this._validate(e,r,t,pi.local.invalidDate);return a.day()},weekDay:function(e,r,t){return this._validate(e,r,t,pi.local.invalidDate),!0},extraInfo:function(e,r,t){var a=this._validate(e,r,t,pi.local.invalidDate),n=a.toJD(),i=this._toHaab(n),l=this._toTzolkin(n);return{haabMonthName:this.local.haabMonths[i[0]-1],haabMonth:i[0],haabDay:i[1],tzolkinDayName:this.local.tzolkinMonths[l[0]-1],tzolkinDay:l[0],tzolkinTrecena:l[1]}},_toHaab:function(e){e-=this.jdEpoch;var r=Mx(e+8+340,365);return[Math.floor(r/20)+1,Mx(r,20)]},_toTzolkin:function(e){return e-=this.jdEpoch,[fO(e+20,20),fO(e+4,13)]},toJD:function(e,r,t){var a=this._validate(e,r,t,pi.local.invalidDate);return a.day()+a.month()*20+a.year()*360+this.jdEpoch},fromJD:function(e){e=Math.floor(e)+.5-this.jdEpoch;var r=Math.floor(e/360);e=e%360,e+=e<0?360:0;var t=Math.floor(e/20),a=e%20;return this.newDate(r,t,a)}});function Mx(e,r){return e-r*Math.floor(e/r)}function fO(e,r){return Mx(e-1,r)+1}pi.calendars.mayan=Tx});var dO=J(()=>{var Zs=Qa(),Qme=ja();function Ax(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}Ax.prototype=new Zs.baseCalendar;var vO=Zs.instance("gregorian");Qme(Ax.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(e){var r=this._validate(e,this.minMonth,this.minDay,Zs.local.invalidYear||Zs.regionalOptions[""].invalidYear);return vO.leapYear(r.year()+(r.year()<1?1:0)+1469)},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(1-(a.dayOfWeek()||7),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Zs.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===12&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(n,r,t){var a=this._validate(n,r,t,Zs.local.invalidMonth),n=a.year();n<0&&n++;for(var i=a.day(),l=1;l=this.toJD(r+1,1,1);)r++;for(var t=e-Math.floor(this.toJD(r,1,1)+.5)+1,a=1;t>this.daysInMonth(r,a);)t-=this.daysInMonth(r,a),a++;return this.newDate(r,a,t)}});Zs.calendars.nanakshahi=Ax});var hO=J(()=>{var Js=Qa(),ege=ja();function kx(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}kx.prototype=new Js.baseCalendar;ege(kx.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(e){return this.daysInYear(e)!==this.daysPerYear},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Js.local.invalidYear);if(e=r.year(),typeof this.NEPALI_CALENDAR_DATA[e]=="undefined")return this.daysPerYear;for(var t=0,a=this.minMonth;a<=12;a++)t+=this.NEPALI_CALENDAR_DATA[e][a];return t},daysInMonth:function(e,r){return e.year&&(r=e.month(),e=e.year()),this._validate(e,r,this.minDay,Js.local.invalidMonth),typeof this.NEPALI_CALENDAR_DATA[e]=="undefined"?this.daysPerMonth[r-1]:this.NEPALI_CALENDAR_DATA[e][r]},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==6},toJD:function(e,r,t){var a=this._validate(e,r,t,Js.local.invalidDate);e=a.year(),r=a.month(),t=a.day();var n=Js.instance(),i=0,l=r,o=e;this._createMissingCalendarData(e);var s=e-(l>9||l===9&&t>=this.NEPALI_CALENDAR_DATA[o][0]?56:57);for(r!==9&&(i=t,l--);l!==9;)l<=0&&(l=12,o--),i+=this.NEPALI_CALENDAR_DATA[o][l],l--;return r===9?(i+=t-this.NEPALI_CALENDAR_DATA[o][0],i<0&&(i+=n.daysInYear(s))):i+=this.NEPALI_CALENDAR_DATA[o][9]-this.NEPALI_CALENDAR_DATA[o][0],n.newDate(s,1,1).add(i,"d").toJD()},fromJD:function(e){var r=Js.instance(),t=r.fromJD(e),a=t.year(),n=t.dayOfYear(),i=a+56;this._createMissingCalendarData(i);for(var l=9,o=this.NEPALI_CALENDAR_DATA[i][0],s=this.NEPALI_CALENDAR_DATA[i][l]-o+1;n>s;)l++,l>12&&(l=1,i++),s+=this.NEPALI_CALENDAR_DATA[i][l];var u=this.NEPALI_CALENDAR_DATA[i][l]-(s-n);return this.newDate(i,l,u)},_createMissingCalendarData:function(e){var r=this.daysPerMonth.slice(0);r.unshift(17);for(var t=e-1;t{var qu=Qa(),rge=ja();function dp(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}function vp(e){var r=e-475;e<0&&r++;var t=.242197,a=t*r,n=t*(r+1),i=a-Math.floor(a),l=n-Math.floor(n);return i>l}dp.prototype=new qu.baseCalendar;rge(dp.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","Dey","Bahman","Esfand"],monthNamesShort:["Far","Ord","Kho","Tir","Mor","Sha","Meh","Aba","Aza","Dey","Bah","Esf"],dayNames:["Yekshanbeh","Doshanbeh","Seshanbeh","Chah\u0101rshanbeh","Panjshanbeh","Jom'eh","Shanbeh"],dayNamesShort:["Yek","Do","Se","Cha","Panj","Jom","Sha"],dayNamesMin:["Ye","Do","Se","Ch","Pa","Jo","Sh"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,qu.local.invalidYear);return vp(r.year())},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-((a.dayOfWeek()+1)%7),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,qu.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===12&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==5},toJD:function(e,r,t){var a=this._validate(e,r,t,qu.local.invalidDate);e=a.year(),r=a.month(),t=a.day();var n=0;if(e>0)for(var i=1;i0?e-1:e)*365+n+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e)+.5;var r=475+(e-this.toJD(475,1,1))/365.242197,t=Math.floor(r);t<=0&&t--,e>this.toJD(t,12,vp(t)?30:29)&&(t++,t===0&&t++);var a=e-this.toJD(t,1,1)+1,n=a<=186?Math.ceil(a/31):Math.ceil((a-6)/30),i=e-this.toJD(t,n,1)+1;return this.newDate(t,n,i)}});qu.calendars.persian=dp;qu.calendars.jalali=dp});var mO=J(()=>{var $s=Qa(),tge=ja(),hp=$s.instance();function Cx(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}Cx.prototype=new $s.baseCalendar;tge(Cx.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(t){var r=this._validate(t,this.minMonth,this.minDay,$s.local.invalidYear),t=this._t2gYear(r.year());return hp.leapYear(t)},weekOfYear:function(n,r,t){var a=this._validate(n,this.minMonth,this.minDay,$s.local.invalidYear),n=this._t2gYear(a.year());return hp.weekOfYear(n,a.month(),a.day())},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,$s.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===2&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(n,r,t){var a=this._validate(n,r,t,$s.local.invalidDate),n=this._t2gYear(a.year());return hp.toJD(n,a.month(),a.day())},fromJD:function(e){var r=hp.fromJD(e),t=this._g2tYear(r.year());return this.newDate(t,r.month(),r.day())},_t2gYear:function(e){return e+this.yearsOffset+(e>=-this.yearsOffset&&e<=-1?1:0)},_g2tYear:function(e){return e-this.yearsOffset-(e>=1&&e<=this.yearsOffset?1:0)}});$s.calendars.taiwan=Cx});var gO=J(()=>{var Ks=Qa(),age=ja(),pp=Ks.instance();function Sx(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}Sx.prototype=new Ks.baseCalendar;age(Sx.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(t){var r=this._validate(t,this.minMonth,this.minDay,Ks.local.invalidYear),t=this._t2gYear(r.year());return pp.leapYear(t)},weekOfYear:function(n,r,t){var a=this._validate(n,this.minMonth,this.minDay,Ks.local.invalidYear),n=this._t2gYear(a.year());return pp.weekOfYear(n,a.month(),a.day())},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Ks.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===2&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(n,r,t){var a=this._validate(n,r,t,Ks.local.invalidDate),n=this._t2gYear(a.year());return pp.toJD(n,a.month(),a.day())},fromJD:function(e){var r=pp.fromJD(e),t=this._g2tYear(r.year());return this.newDate(t,r.month(),r.day())},_t2gYear:function(e){return e-this.yearsOffset-(e>=1&&e<=this.yearsOffset?1:0)},_g2tYear:function(e){return e+this.yearsOffset+(e>=-this.yearsOffset&&e<=-1?1:0)}});Ks.calendars.thai=Sx});var yO=J(()=>{var js=Qa(),nge=ja();function Dx(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}Dx.prototype=new js.baseCalendar;nge(Dx.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\u0101th\u0101\u2019","Yawm al-Arba\u2018\u0101\u2019","Yawm al-Kham\u012Bs","Yawm al-Jum\u2018a","Yawm al-Sabt"],dayNamesMin:["Ah","Ith","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!0}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,js.local.invalidYear);return this.daysInYear(r.year())===355},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInYear:function(e){for(var r=0,t=1;t<=12;t++)r+=this.daysInMonth(e,t);return r},daysInMonth:function(e,r){for(var t=this._validate(e,r,this.minDay,js.local.invalidMonth),a=t.toJD()-24e5+.5,n=0,i=0;ia)return zo[n]-zo[n-1];n++}return 30},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==5},toJD:function(e,r,t){var a=this._validate(e,r,t,js.local.invalidDate),n=12*(a.year()-1)+a.month()-15292,i=a.day()+zo[n-1]-1;return i+24e5-.5},fromJD:function(e){for(var r=e-24e5+.5,t=0,a=0;ar);a++)t++;var n=t+15292,i=Math.floor((n-1)/12),l=i+1,o=n-12*i,s=r-zo[t-1]+1;return this.newDate(l,o,s)},isValid:function(e,r,t){var a=js.baseCalendar.prototype.isValid.apply(this,arguments);return a&&(e=e.year!=null?e.year:e,a=e>=1276&&e<=1500),a},_validate:function(e,r,t,a){var n=js.baseCalendar.prototype._validate.apply(this,arguments);if(n.year<1276||n.year>1500)throw a.replace(/\{0\}/,this.local.name);return n}});js.calendars.ummalqura=Dx;var zo=[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]});var xO=J((K6e,bO)=>{"use strict";bO.exports=Qa();tO();aO();nO();iO();lO();oO();sO();uO();cO();dO();hO();pO();mO();gO();yO()});var CO=J((j6e,kO)=>{"use strict";var wO=xO(),ov=Fe(),MO=(ca(),Xe(ga)),ige=MO.EPOCHJD,lge=MO.ONEDAY,Ex={valType:"enumerated",values:ov.sortObjectKeys(wO.calendars),editType:"calc",dflt:"gregorian"},TO=function(e,r,t,a){var n={};return n[t]=Ex,ov.coerce(e,r,n,t,a)},oge=function(e,r,t,a){for(var n=0;n{"use strict";SO.exports=CO()});var dge=J((e_e,qO)=>{var LO=QI();LO.register([lH(),KH(),DO()]);qO.exports=LO});return dge();})(); /*! Bundled license information: native-promise-only/lib/npo.src.js: diff --git a/dist/plotly-cartesian.js b/dist/plotly-cartesian.js index 6caf15a9153..3307c7723fd 100644 --- a/dist/plotly-cartesian.js +++ b/dist/plotly-cartesian.js @@ -1,5 +1,5 @@ /** -* plotly.js (cartesian) v4.1.2 +* plotly.js (cartesian) v4.2.0 * Copyright 2012-2026, Plotly, Inc. * All rights reserved. * Licensed under the MIT license @@ -110,7 +110,7 @@ var Plotly = (() => { var require_version = __commonJS({ "src/version.js"(exports) { "use strict"; - exports.version = "4.1.2"; + exports.version = "4.2.0"; } }); @@ -17760,9 +17760,9 @@ var Plotly = (() => { var require_maplibre_gl = __commonJS({ "node_modules/maplibre-gl/dist/maplibre-gl.css"() { (function() { - if (!document.getElementById("ce8d464691048653ffe3a57c6c18ab566e8366f186677868cf724621a857b4fe")) { + if (!document.getElementById("9f215cf04c5486422605d13261cb87401f4e7763b6296af81e98efbc0130da53")) { var e = document.createElement("style"); - e.id = "ce8d464691048653ffe3a57c6c18ab566e8366f186677868cf724621a857b4fe"; + e.id = "9f215cf04c5486422605d13261cb87401f4e7763b6296af81e98efbc0130da53"; e.textContent = `.maplibregl-map{font:12px/20px Helvetica Neue,Arial,Helvetica,sans-serif;overflow:hidden;position:relative;-webkit-tap-highlight-color:rgb(0 0 0/0);-webkit-touch-callout:none}.maplibregl-canvas{position:absolute;left:0;top:0}.maplibregl-map:fullscreen{width:100%;height:100%}.maplibregl-ctrl-group button.maplibregl-ctrl-compass{touch-action:none}.maplibregl-canvas-container.maplibregl-interactive,.maplibregl-ctrl-group button.maplibregl-ctrl-compass{cursor:grab;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-canvas-container.maplibregl-interactive.maplibregl-track-pointer{cursor:pointer}.maplibregl-canvas-container.maplibregl-interactive:active,.maplibregl-ctrl-group button.maplibregl-ctrl-compass:active{cursor:grabbing}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-canvas-container.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:pinch-zoom}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:none}.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures,.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-ctrl-bottom-left,.maplibregl-ctrl-bottom-right,.maplibregl-ctrl-top-left,.maplibregl-ctrl-top-right{position:absolute;pointer-events:none;z-index:2}.maplibregl-ctrl-top-left{top:0;left:0}.maplibregl-ctrl-top-right{top:0;right:0}.maplibregl-ctrl-bottom-left{bottom:0;left:0}.maplibregl-ctrl-bottom-right{right:0;bottom:0}.maplibregl-ctrl{clear:both;pointer-events:auto;transform:translate(0)}.maplibregl-ctrl-top-left .maplibregl-ctrl{margin:10px 0 0 10px;float:left}.maplibregl-ctrl-top-right .maplibregl-ctrl{margin:10px 10px 0 0;float:right}.maplibregl-ctrl-bottom-left .maplibregl-ctrl{margin:0 0 10px 10px;float:left}.maplibregl-ctrl-bottom-right .maplibregl-ctrl{margin:0 10px 10px 0;float:right}.maplibregl-ctrl-group{border-radius:4px;background:#fff}.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px rgba(0,0,0,.1)}@media (forced-colors:active){.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px ButtonText}}.maplibregl-ctrl-group button{width:29px;height:29px;display:block;padding:0;outline:none;border:0;box-sizing:border-box;background-color:transparent;cursor:pointer}.maplibregl-ctrl button{-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-ctrl-group button+button{border-top:1px solid #ddd}.maplibregl-ctrl button .maplibregl-ctrl-icon{display:block;width:100%;height:100%;background-repeat:no-repeat;background-position:50%}@media (forced-colors:active){.maplibregl-ctrl-icon{background-color:transparent}.maplibregl-ctrl-group button+button{border-top:1px solid ButtonText}}.maplibregl-ctrl button::-moz-focus-inner{border:0;padding:0}.maplibregl-ctrl-attrib-button:focus,.maplibregl-ctrl-group button:focus{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl button:disabled{cursor:not-allowed}.maplibregl-ctrl button:disabled .maplibregl-ctrl-icon{opacity:.25}@media (hover:hover){.maplibregl-ctrl button:not(:disabled):hover{background-color:rgba(0,0,0,.05)}}.maplibregl-ctrl button:not(:disabled):active{background-color:rgba(0,0,0,.05)}.maplibregl-ctrl-group button:focus:focus-visible{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl-group button:focus:not(:focus-visible){box-shadow:none}.maplibregl-ctrl-group button:focus:first-child{border-radius:4px 4px 0 0}.maplibregl-ctrl-group button:focus:last-child{border-radius:0 0 4px 4px}.maplibregl-ctrl-group button:focus:only-child{border-radius:inherit}.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M10%2013c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h9c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M14.5%208.5c-.75%200-1.5.75-1.5%201.5v3h-3c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h3v3c0%20.75.75%201.5%201.5%201.5S16%2019.75%2016%2019v-3h3c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013h-3v-3c0-.75-.75-1.5-1.5-1.5%22%2F%3E%3C%2Fsvg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M10%2013c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h9c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M14.5%208.5c-.75%200-1.5.75-1.5%201.5v3h-3c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h3v3c0%20.75.75%201.5%201.5%201.5S16%2019.75%2016%2019v-3h3c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013h-3v-3c0-.75-.75-1.5-1.5-1.5%22%2F%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M10%2013c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h9c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M14.5%208.5c-.75%200-1.5.75-1.5%201.5v3h-3c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h3v3c0%20.75.75%201.5%201.5%201.5S16%2019.75%2016%2019v-3h3c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013h-3v-3c0-.75-.75-1.5-1.5-1.5%22%2F%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M24%2016v5.5c0%201.75-.75%202.5-2.5%202.5H16v-1l3-1.5-4-5.5%201-1%205.5%204%201.5-3zM6%2016l1.5%203%205.5-4%201%201-4%205.5%203%201.5v1H7.5C5.75%2024%205%2023.25%205%2021.5V16zm7-11v1l-3%201.5%204%205.5-1%201-5.5-4L6%2013H5V7.5C5%205.75%205.75%205%207.5%205zm11%202.5c0-1.75-.75-2.5-2.5-2.5H16v1l3%201.5-4%205.5%201%201%205.5-4%201.5%203h1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M18.5%2016c-1.75%200-2.5.75-2.5%202.5V24h1l1.5-3%205.5%204%201-1-4-5.5%203-1.5v-1zM13%2018.5c0-1.75-.75-2.5-2.5-2.5H5v1l3%201.5L4%2024l1%201%205.5-4%201.5%203h1zm3-8c0%201.75.75%202.5%202.5%202.5H24v-1l-3-1.5L25%205l-1-1-5.5%204L17%205h-1zM10.5%2013c1.75%200%202.5-.75%202.5-2.5V5h-1l-1.5%203L5%204%204%205l4%205.5L5%2012v1z%22%2F%3E%3C%2Fsvg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M24%2016v5.5c0%201.75-.75%202.5-2.5%202.5H16v-1l3-1.5-4-5.5%201-1%205.5%204%201.5-3zM6%2016l1.5%203%205.5-4%201%201-4%205.5%203%201.5v1H7.5C5.75%2024%205%2023.25%205%2021.5V16zm7-11v1l-3%201.5%204%205.5-1%201-5.5-4L6%2013H5V7.5C5%205.75%205.75%205%207.5%205zm11%202.5c0-1.75-.75-2.5-2.5-2.5H16v1l3%201.5-4%205.5%201%201%205.5-4%201.5%203h1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M18.5%2016c-1.75%200-2.5.75-2.5%202.5V24h1l1.5-3%205.5%204%201-1-4-5.5%203-1.5v-1zM13%2018.5c0-1.75-.75-2.5-2.5-2.5H5v1l3%201.5L4%2024l1%201%205.5-4%201.5%203h1zm3-8c0%201.75.75%202.5%202.5%202.5H24v-1l-3-1.5L25%205l-1-1-5.5%204L17%205h-1zM10.5%2013c1.75%200%202.5-.75%202.5-2.5V5h-1l-1.5%203L5%204%204%205l4%205.5L5%2012v1z%22%2F%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M24%2016v5.5c0%201.75-.75%202.5-2.5%202.5H16v-1l3-1.5-4-5.5%201-1%205.5%204%201.5-3zM6%2016l1.5%203%205.5-4%201%201-4%205.5%203%201.5v1H7.5C5.75%2024%205%2023.25%205%2021.5V16zm7-11v1l-3%201.5%204%205.5-1%201-5.5-4L6%2013H5V7.5C5%205.75%205.75%205%207.5%205zm11%202.5c0-1.75-.75-2.5-2.5-2.5H16v1l3%201.5-4%205.5%201%201%205.5-4%201.5%203h1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M18.5%2016c-1.75%200-2.5.75-2.5%202.5V24h1l1.5-3%205.5%204%201-1-4-5.5%203-1.5v-1zM13%2018.5c0-1.75-.75-2.5-2.5-2.5H5v1l3%201.5L4%2024l1%201%205.5-4%201.5%203h1zm3-8c0%201.75.75%202.5%202.5%202.5H24v-1l-3-1.5L25%205l-1-1-5.5%204L17%205h-1zM10.5%2013c1.75%200%202.5-.75%202.5-2.5V5h-1l-1.5%203L5%204%204%205l4%205.5L5%2012v1z%22%2F%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22m10.5%2014%204-8%204%208z%22%2F%3E%3Cpath%20fill%3D%22%23ccc%22%20d%3D%22m10.5%2016%204%208%204-8z%22%2F%3E%3C%2Fsvg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22m10.5%2014%204-8%204%208z%22%2F%3E%3Cpath%20fill%3D%22%23ccc%22%20d%3D%22m10.5%2016%204%208%204-8z%22%2F%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22m10.5%2014%204-8%204%208z%22%2F%3E%3Cpath%20fill%3D%22%23ccc%22%20d%3D%22m10.5%2016%204%208%204-8z%22%2F%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-globe .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2222%22%20height%3D%2222%22%20fill%3D%22none%22%20stroke%3D%22%23333%22%20viewBox%3D%220%200%2022%2022%22%3E%3Ccircle%20cx%3D%2211%22%20cy%3D%2211%22%20r%3D%228.5%22%2F%3E%3Cpath%20d%3D%22M17.5%2011c0%204.819-3.02%208.5-6.5%208.5S4.5%2015.819%204.5%2011%207.52%202.5%2011%202.5s6.5%203.681%206.5%208.5Z%22%2F%3E%3Cpath%20d%3D%22M13.5%2011c0%202.447-.331%204.64-.853%206.206-.262.785-.562%201.384-.872%201.777-.314.399-.58.517-.775.517s-.461-.118-.775-.517c-.31-.393-.61-.992-.872-1.777C8.831%2015.64%208.5%2013.446%208.5%2011s.331-4.64.853-6.206c.262-.785.562-1.384.872-1.777.314-.399.58-.517.775-.517s.461.118.775.517c.31.393.61.992.872%201.777.522%201.565.853%203.76.853%206.206Z%22%2F%3E%3Cpath%20d%3D%22M11%207.5c-1.909%200-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3%201.3%200%200%201-.224-.138q.07-.058.224-.138c.299-.151.763-.302%201.379-.434C7.378%205.666%209.091%205.5%2011%205.5s3.622.166%204.845.428c.616.132%201.08.283%201.379.434.105.053.177.1.224.138q-.07.058-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm0%209c-1.909%200-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3%201.3%200%200%201-.224-.138%201.3%201.3%200%200%201%20.224-.138c.299-.151.763-.302%201.379-.434C7.378%2014.666%209.091%2014.5%2011%2014.5s3.622.166%204.845.428c.616.132%201.08.283%201.379.434.105.053.177.1.224.138a1.3%201.3%200%200%201-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm0-4c-2.46%200-4.672-.222-6.255-.574-.796-.177-1.406-.38-1.805-.59a1.5%201.5%200%200%201-.39-.272.3.3%200%200%201-.047-.064.3.3%200%200%201%20.048-.064c.066-.073.189-.167.389-.272.399-.21%201.009-.413%201.805-.59C6.328%209.722%208.54%209.5%2011%209.5s4.672.222%206.256.574c.795.177%201.405.38%201.804.59.2.105.323.2.39.272a.3.3%200%200%201%20.047.064.3.3%200%200%201-.048.064%201.4%201.4%200%200%201-.389.272c-.399.21-1.009.413-1.804.59-1.584.352-3.796.574-6.256.574Zm-8.501-1.51v.002zm0%20.018v.002zm17.002.002v-.002zm0-.018v-.002z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-globe-enabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2222%22%20height%3D%2222%22%20fill%3D%22none%22%20stroke%3D%22%2333b5e5%22%20viewBox%3D%220%200%2022%2022%22%3E%3Ccircle%20cx%3D%2211%22%20cy%3D%2211%22%20r%3D%228.5%22%2F%3E%3Cpath%20d%3D%22M17.5%2011c0%204.819-3.02%208.5-6.5%208.5S4.5%2015.819%204.5%2011%207.52%202.5%2011%202.5s6.5%203.681%206.5%208.5Z%22%2F%3E%3Cpath%20d%3D%22M13.5%2011c0%202.447-.331%204.64-.853%206.206-.262.785-.562%201.384-.872%201.777-.314.399-.58.517-.775.517s-.461-.118-.775-.517c-.31-.393-.61-.992-.872-1.777C8.831%2015.64%208.5%2013.446%208.5%2011s.331-4.64.853-6.206c.262-.785.562-1.384.872-1.777.314-.399.58-.517.775-.517s.461.118.775.517c.31.393.61.992.872%201.777.522%201.565.853%203.76.853%206.206Z%22%2F%3E%3Cpath%20d%3D%22M11%207.5c-1.909%200-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3%201.3%200%200%201-.224-.138q.07-.058.224-.138c.299-.151.763-.302%201.379-.434C7.378%205.666%209.091%205.5%2011%205.5s3.622.166%204.845.428c.616.132%201.08.283%201.379.434.105.053.177.1.224.138q-.07.058-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm0%209c-1.909%200-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3%201.3%200%200%201-.224-.138%201.3%201.3%200%200%201%20.224-.138c.299-.151.763-.302%201.379-.434C7.378%2014.666%209.091%2014.5%2011%2014.5s3.622.166%204.845.428c.616.132%201.08.283%201.379.434.105.053.177.1.224.138a1.3%201.3%200%200%201-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm0-4c-2.46%200-4.672-.222-6.255-.574-.796-.177-1.406-.38-1.805-.59a1.5%201.5%200%200%201-.39-.272.3.3%200%200%201-.047-.064.3.3%200%200%201%20.048-.064c.066-.073.189-.167.389-.272.399-.21%201.009-.413%201.805-.59C6.328%209.722%208.54%209.5%2011%209.5s4.672.222%206.256.574c.795.177%201.405.38%201.804.59.2.105.323.2.39.272a.3.3%200%200%201%20.047.064.3.3%200%200%201-.048.064%201.4%201.4%200%200%201-.389.272c-.399.21-1.009.413-1.804.59-1.584.352-3.796.574-6.256.574Zm-8.501-1.51v.002zm0%20.018v.002zm17.002.002v-.002zm0-.018v-.002z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-terrain .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2222%22%20height%3D%2222%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2022%2022%22%3E%3Cpath%20d%3D%22m1.754%2013.406%204.453-4.851%203.09%203.09%203.281%203.277.969-.969-3.309-3.312%203.844-4.121%206.148%206.886h1.082v-.855l-7.207-8.07-4.84%205.187L6.169%206.57l-5.48%205.965v.871ZM.688%2016.844h20.625v1.375H.688Zm0%200%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-terrain-enabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2222%22%20height%3D%2222%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2022%2022%22%3E%3Cpath%20d%3D%22m1.754%2013.406%204.453-4.851%203.09%203.09%203.281%203.277.969-.969-3.309-3.312%203.844-4.121%206.148%206.886h1.082v-.855l-7.207-8.07-4.84%205.187L6.169%206.57l-5.48%205.965v.871ZM.688%2016.844h20.625v1.375H.688Zm0%200%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23aaa%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3Cpath%20fill%3D%22red%22%20d%3D%22m14%205%201%201-9%209-1-1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23e58978%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23e54e33%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-waiting .maplibregl-ctrl-icon{animation:maplibregl-spin 2s linear infinite}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23999%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3Cpath%20fill%3D%22red%22%20d%3D%22m14%205%201%201-9%209-1-1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23e58978%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23e54e33%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23666%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3Cpath%20fill%3D%22red%22%20d%3D%22m14%205%201%201-9%209-1-1z%22%2F%3E%3C%2Fsvg%3E")}}@keyframes maplibregl-spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}a.maplibregl-ctrl-logo{width:88px;height:23px;margin:0 0 -4px -4px;display:block;background-repeat:no-repeat;cursor:pointer;overflow:hidden;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2288%22%20height%3D%2223%22%20fill%3D%22none%22%3E%3Cpath%20fill%3D%22%23000%22%20fill-opacity%3D%22.4%22%20fill-rule%3D%22evenodd%22%20d%3D%22M17.408%2016.796h-1.827l2.501-12.095h.198l3.324%206.533.988%202.19.988-2.19%203.258-6.533h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.929%205.644h-.098l-2.914-5.644-.757-1.71-.345%201.71zm1.958-3.42-.726%203.663a1.255%201.255%200%200%201-1.232%201.011h-1.827a1.255%201.255%200%200%201-1.229-1.509l2.501-12.095a1.255%201.255%200%200%201%201.23-1.001h.197a1.25%201.25%200%200%201%201.12.685l3.19%206.273%203.125-6.263a1.25%201.25%200%200%201%201.123-.695h.181a1.255%201.255%200%200%201%201.227.991l1.443%206.71a5%205%200%200%201%20.314-.787l.009-.016a4.6%204.6%200%200%201%201.777-1.887c.782-.46%201.668-.667%202.611-.667a4.6%204.6%200%200%201%201.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255%201.255%200%200%201%201.212.925%201.255%201.255%200%200%201%201.212-.925h1.711c.284%200%20.545.094.755.252.613-.3%201.312-.45%202.075-.45%201.356%200%202.557.445%203.482%201.4q.47.48.763%201.064V4.701a1.255%201.255%200%200%201%201.255-1.255h1.86A1.255%201.255%200%200%201%2054.44%204.7v9.194h2.217c.19%200%20.37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42%202.42%200%200%201-.682-1.71c0-.665.267-1.253.735-1.7a2.45%202.45%200%200%201%201.722-.674%202.43%202.43%200%200%201%201.705.675q.318.302.504.683V4.7a1.255%201.255%200%200%201%201.255-1.255h1.744A1.255%201.255%200%200%201%2065.812%204.7v3.335a4.8%204.8%200%200%201%201.526-.246c.938%200%201.817.214%202.59.69a4.47%204.47%200%200%201%201.67%201.743v-.98a1.255%201.255%200%200%201%201.256-1.256h1.777c.233%200%20.451.064.639.174a3.4%203.4%200%200%201%201.567-.372c.346%200%20.861.02%201.285.232a1.25%201.25%200%200%201%20.689%201.004%204.7%204.7%200%200%201%20.853-.588c.795-.44%201.675-.647%202.61-.647%201.385%200%202.65.39%203.525%201.396.836.938%201.168%202.173%201.168%203.528q-.001.515-.056%201.051a1.255%201.255%200%200%201-.947%201.09l.408.952a1.255%201.255%200%200%201-.477%201.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06%200-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8%205.8%200%200%201-.548-2.512q0-.429.053-.843a1.3%201.3%200%200%201-.333-.086l-.166-.004c-.223%200-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255%201.255%200%200%201-1.256%201.256h-1.777a1.255%201.255%200%200%201-1.256-1.256V15.69l-.032.057a4.8%204.8%200%200%201-1.86%201.833%205.04%205.04%200%200%201-2.484.634%204.5%204.5%200%200%201-1.935-.424%201.25%201.25%200%200%201-.764.258h-1.71a1.255%201.255%200%200%201-1.256-1.255V7.687a2.4%202.4%200%200%201-.428.625c.253.23.412.561.412.93v7.553a1.255%201.255%200%200%201-1.256%201.255h-1.843a1.25%201.25%200%200%201-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255%201.255%200%200%201-1.256-1.255v-1.251l-.061.117a4.7%204.7%200%200%201-1.782%201.884%204.77%204.77%200%200%201-2.485.67%205.6%205.6%200%200%201-1.485-.188l.009%202.764a1.255%201.255%200%200%201-1.255%201.259h-1.729a1.255%201.255%200%200%201-1.255-1.255v-3.537a1.255%201.255%200%200%201-1.167.793h-1.679a1.25%201.25%200%200%201-.77-.263%204.5%204.5%200%200%201-1.945.429c-.885%200-1.724-.21-2.495-.632l-.017-.01a5%205%200%200%201-1.081-.836%201.255%201.255%200%200%201-1.254%201.312h-1.81a1.255%201.255%200%200%201-1.228-.99l-.782-3.625-2.044%203.939a1.25%201.25%200%200%201-1.115.676h-.098a1.25%201.25%200%200%201-1.116-.68l-2.061-3.994zM35.92%2016.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033%201.332h1.678V9.242h-1.694l-.033%201.267q-.133-.329-.526-.658l-.032-.028a3.2%203.2%200%200%200-.668-.428l-.27-.12a3.3%203.3%200%200%200-1.235-.23q-1.136-.001-1.974.493a3.36%203.36%200%200%200-1.3%201.382q-.445.89-.444%202.074%200%201.2.51%202.107a3.8%203.8%200%200%200%201.382%201.381%203.9%203.9%200%200%200%201.893.477q.795%200%201.455-.33zm-2.789-5.38q-.576.675-.575%201.762%200%201.102.559%201.794.576.675%201.645.675a2.25%202.25%200%200%200%20.934-.19%202.2%202.2%200%200%200%20.468-.29l.178-.161a2.2%202.2%200%200%200%20.397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2%202.2%200%200%200-.633-.709l-.13-.086-.047-.028a2.1%202.1%200%200%200-1.073-.285q-1.052%200-1.629.692zm2.316%202.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96%200%200%200-.353-.389.85.85%200%200%200-.464-.127c-.4%200-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945%200%20.506.122.801.27.99.097.11.266.224.68.224.303%200%20.504-.09.687-.269zm7.545%201.705a2.6%202.6%200%200%200%20.331.423q.319.33.755.548l.173.074q.65.255%201.49.255%201.02%200%201.844-.493a3.45%203.45%200%200%200%201.316-1.4q.493-.904.493-2.089%200-1.909-.988-2.913-.988-1.02-2.584-1.02-.898%200-1.575.347a3%203%200%200%200-.415.262l-.199.166a3.4%203.4%200%200%200-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296%201.119.297%201.07%200%201.645-.675.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.435%200-.835.16a2%202%200%200%200-.284.136%202%202%200%200%200-.363.254%202.2%202.2%200%200%200-.46.569l-.082.162a2.6%202.6%200%200%200-.213%201.072v.115q0%20.707.296%201.267l.135.211zm.964-.818a1.1%201.1%200%200%200%20.367.385.94.94%200%200%200%20.476.118c.423%200%20.59-.117.687-.23.159-.194.28-.478.28-.95%200-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1%201%200%200%200-.503.135l-.012.007a.86.86%200%200%200-.335.343c-.073.133-.132.324-.132.614v.115a1.4%201.4%200%200%200%20.14.66zm15.7-6.222q.347-.346.346-.856a1.05%201.05%200%200%200-.345-.79%201.18%201.18%200%200%200-.84-.329q-.51%200-.855.33a1.05%201.05%200%200%200-.346.79q0%20.51.346.855.345.346.856.346.51%200%20.839-.346zm4.337%209.314.033-1.332q.191.403.59.747l.098.081a4%204%200%200%200%20.316.224l.223.122a3.2%203.2%200%200%200%201.44.322%203.8%203.8%200%200%200%201.875-.477%203.5%203.5%200%200%200%201.382-1.366q.527-.89.526-2.09%200-1.184-.444-2.073a3.24%203.24%200%200%200-1.283-1.399q-.823-.51-1.942-.51a3.5%203.5%200%200%200-1.527.344l-.086.043-.165.09a3%203%200%200%200-.33.214q-.432.315-.656.707a2%202%200%200%200-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5%202.5%200%200%200%20.566.7q.117.098.245.18l.144.08a2.1%202.1%200%200%200%20.975.232q1.07%200%201.645-.675.576-.69.576-1.778%200-1.102-.576-1.777-.56-.691-1.645-.692a2.2%202.2%200%200%200-1.015.235q-.22.113-.415.282l-.15.142a2.1%202.1%200%200%200-.42.594q-.223.479-.223%201.1v.115q0%20.705.293%201.26zm2.616-.293c.157-.191.28-.479.28-.967%200-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87%200%200%200-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0%20.285.057.499.144.669a1.1%201.1%200%200%200%20.367.405c.137.082.28.123.455.123.423%200%20.59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493%200%20.642.099l.247-1.794q-.196-.099-.717-.099a2.3%202.3%200%200%200-.545.063%202%202%200%200%200-.411.148%202.2%202.2%200%200%200-.4.249%202.5%202.5%200%200%200-.485.499%202.7%202.7%200%200%200-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5%201.5%200%200%201%20.466-.636%202.5%202.5%200%200%201%20.399-.253%202%202%200%200%201%20.224-.099zm9.784%202.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46%203.46%200%200%200-1.4%201.382q-.493.906-.493%202.106%200%201.07.428%201.975.428.89%201.332%201.432.906.526%202.255.526.973%200%201.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954%200-1.497-.444a1.6%201.6%200%200%201-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1%201%200%200%200-.156-.176q-.46-.428-1.316-.428-.986%200-1.494.604-.379.45-.494%201.234zm-27.053%202.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z%22%2F%3E%3Cpath%20fill%3D%22%23fff%22%20d%3D%22m19.63%2011.151-.757-1.71-.345%201.71-1.12%205.644h-1.827L18.083%204.7h.197l3.325%206.533.988%202.19.988-2.19L26.839%204.7h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.93%205.644h-.098l-2.913-5.644zm14.836%205.81q-1.02%200-1.893-.478a3.8%203.8%200%200%201-1.381-1.382q-.51-.906-.51-2.106%200-1.185.444-2.074a3.36%203.36%200%200%201%201.3-1.382q.839-.494%201.974-.494a3.3%203.3%200%200%201%201.234.231%203.3%203.3%200%200%201%20.97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02%201.053a3.17%203.17%200%200%201-1.662.444zm.296-1.482q.938%200%201.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2%202.2%200%200%200-.807-.872%202.1%202.1%200%200%200-1.119-.313q-1.053%200-1.629.692-.575.675-.575%201.76%200%201.103.559%201.795.577.675%201.645.675zm6.521-6.237h1.711v1.4q.906-1.597%202.83-1.597%201.596%200%202.584%201.02.988%201.005.988%202.914%200%201.185-.493%202.09a3.46%203.46%200%200%201-1.316%201.399%203.5%203.5%200%200%201-1.844.493q-.954%200-1.662-.329a2.67%202.67%200%200%201-1.086-.97l.017%205.134h-1.728zm4.048%206.22q1.07%200%201.645-.674.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.592%200-1.12.296-.51.28-.822.823-.296.527-.296%201.234v.115q0%20.708.296%201.267.313.543.823.855.51.296%201.119.297z%22%2F%3E%3Cpath%20fill%3D%22%23e1e3e9%22%20d%3D%22M51.325%204.7h1.86v10.45h3.473v1.646h-5.333zm7.12%204.542h1.843v7.553h-1.843zm.905-1.415a1.16%201.16%200%200%201-.856-.346%201.17%201.17%200%200%201-.346-.856%201.05%201.05%200%200%201%20.346-.79q.346-.329.856-.329.494%200%20.839.33a1.05%201.05%200%200%201%20.345.79%201.16%201.16%200%200%201-.345.855q-.33.346-.84.346zm7.875%209.133a3.17%203.17%200%200%201-1.662-.444q-.723-.46-1.004-1.053l-.033%201.332h-1.71V4.701h1.743v4.657l-.082%201.283q.279-.658%201.086-1.119a3.5%203.5%200%200%201%201.778-.477q1.119%200%201.942.51a3.24%203.24%200%200%201%201.283%201.4q.445.888.444%202.072%200%201.201-.526%202.09a3.5%203.5%200%200%201-1.382%201.366%203.8%203.8%200%200%201-1.876.477zm-.296-1.481q1.069%200%201.645-.675.577-.69.577-1.778%200-1.102-.577-1.776-.56-.691-1.645-.692a2.12%202.12%200%200%200-1.58.659q-.642.641-.642%201.694v.115q0%20.71.296%201.267a2.4%202.4%200%200%200%20.807.872%202.1%202.1%200%200%200%201.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14%202.14%200%200%201%201.349-.46q.527%200%20.724.098l-.247%201.794q-.149-.099-.642-.099-.774%200-1.416.494-.626.493-.626%201.58v3.883h-1.777V9.242zm9.534%207.718q-1.35%200-2.255-.526-.904-.543-1.332-1.432a4.6%204.6%200%200%201-.428-1.975q0-1.2.493-2.106a3.46%203.46%200%200%201%201.4-1.382q.889-.495%202.007-.494%201.744%200%202.584.97.855.956.856%202.7%200%20.444-.05.92h-5.43q.18%201.005.708%201.45.542.443%201.497.443.79%200%201.3-.131a4%204%200%200%200%20.938-.362l.542%201.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728%200-1.991%201.86z%22%2F%3E%3Cpath%20d%3D%22M5.074%2015.948a.484.657%200%200%200-.486.659v1.84a.484.657%200%200%200%20.486.659h4.101a.484.657%200%200%200%20.486-.659v-1.84a.484.657%200%200%200-.486-.659zm3.56%201.16H5.617v.838h3.017z%22%20style%3D%22fill%3A%23fff%3Bfill-rule%3Aevenodd%3Bstroke-width%3A1.03600001%22%2F%3E%3Cg%20style%3D%22stroke-width%3A1.12603545%22%3E%3Cpath%20d%3D%22M-9.408-1.416c-3.833-.025-7.056%202.912-7.08%206.615-.02%203.08%201.653%204.832%203.107%206.268.903.892%201.721%201.74%202.32%202.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87%201.87%200%200%200-.362%201.121l-.011%201.877c-.003.402.104.787.347%201.125.244.338.688.653%201.23.656l4.142.028c.542.003.99-.306%201.238-.641a1.87%201.87%200%200%200%20.363-1.121l.012-1.875a1.87%201.87%200%200%200-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145%201.425-1.983%202.348-2.87%201.473-1.414%203.18-3.149%203.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006%201.1v.002c3.274.02%205.92%202.532%205.9%205.6-.017%202.706-1.39%204.026-2.863%205.44-1.034.994-2.118%202.033-2.814%203.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34%200%200%201-.226.084.34.34%200%200%201-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067%202.7-5.545%205.975-5.523m-.02%202.826c-1.62-.01-2.944%201.315-2.955%202.96-.01%201.646%201.295%202.988%202.916%202.999h.002c1.621.01%202.943-1.316%202.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005%201.1c1.017.006%201.829.83%201.822%201.89s-.83%201.874-1.848%201.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874%201.848-1.868m-2.155%2011.857%204.14.025c.271.002.49.305.487.676l-.013%201.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668%22%20style%3D%22color%3A%23000%3Bfont-style%3Anormal%3Bfont-variant%3Anormal%3Bfont-weight%3A400%3Bfont-stretch%3Anormal%3Bfont-size%3Amedium%3Bline-height%3Anormal%3Bfont-family%3Asans-serif%3Bfont-variant-ligatures%3Anormal%3Bfont-variant-position%3Anormal%3Bfont-variant-caps%3Anormal%3Bfont-variant-numeric%3Anormal%3Bfont-variant-alternates%3Anormal%3Bfont-feature-settings%3Anormal%3Btext-indent%3A0%3Btext-align%3Astart%3Btext-decoration%3Anone%3Btext-decoration-line%3Anone%3Btext-decoration-style%3Asolid%3Btext-decoration-color%3A%23000%3Bletter-spacing%3Anormal%3Bword-spacing%3Anormal%3Btext-transform%3Anone%3Bwriting-mode%3Alr-tb%3Bdirection%3Altr%3Btext-orientation%3Amixed%3Bdominant-baseline%3Aauto%3Bbaseline-shift%3Abaseline%3Btext-anchor%3Astart%3Bwhite-space%3Anormal%3Bshape-padding%3A0%3Bclip-rule%3Aevenodd%3Bdisplay%3Ainline%3Boverflow%3Avisible%3Bvisibility%3Avisible%3Bopacity%3A1%3Bisolation%3Aauto%3Bmix-blend-mode%3Anormal%3Bcolor-interpolation%3AsRGB%3Bcolor-interpolation-filters%3AlinearRGB%3Bsolid-color%3A%23000%3Bsolid-opacity%3A1%3Bvector-effect%3Anone%3Bfill%3A%23000%3Bfill-opacity%3A.4%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-linecap%3Abutt%3Bstroke-linejoin%3Amiter%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-dashoffset%3A0%3Bstroke-opacity%3A1%3Bcolor-rendering%3Aauto%3Bimage-rendering%3Aauto%3Bshape-rendering%3Aauto%3Btext-rendering%3Aauto%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-9.415-.316C-12.69-.338-15.37%202.14-15.39%205.207c-.017%202.716%201.326%204.041%202.78%205.477%201.013%201%202.081%202.055%202.78%203.67l.092.076a.34.34%200%200%200%20.225.086.34.34%200%200%200%20.227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6%201.78-2.64%202.814-3.634%201.473-1.414%202.847-2.733%202.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057%208.784c1.621.011%202.944-1.315%202.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945%201.315-2.955%202.96s1.295%202.989%202.916%203%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23e1e3e9%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-11.594%2015.465c-.27-.002-.492.297-.494.668l-.012%201.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23fff%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E")}a.maplibregl-ctrl-logo.maplibregl-compact{width:14px}@media (forced-colors:active){a.maplibregl-ctrl-logo{background-color:transparent;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2288%22%20height%3D%2223%22%20fill%3D%22none%22%3E%3Cpath%20fill%3D%22%23000%22%20fill-opacity%3D%22.4%22%20fill-rule%3D%22evenodd%22%20d%3D%22M17.408%2016.796h-1.827l2.501-12.095h.198l3.324%206.533.988%202.19.988-2.19%203.258-6.533h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.929%205.644h-.098l-2.914-5.644-.757-1.71-.345%201.71zm1.958-3.42-.726%203.663a1.255%201.255%200%200%201-1.232%201.011h-1.827a1.255%201.255%200%200%201-1.229-1.509l2.501-12.095a1.255%201.255%200%200%201%201.23-1.001h.197a1.25%201.25%200%200%201%201.12.685l3.19%206.273%203.125-6.263a1.25%201.25%200%200%201%201.123-.695h.181a1.255%201.255%200%200%201%201.227.991l1.443%206.71a5%205%200%200%201%20.314-.787l.009-.016a4.6%204.6%200%200%201%201.777-1.887c.782-.46%201.668-.667%202.611-.667a4.6%204.6%200%200%201%201.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255%201.255%200%200%201%201.212.925%201.255%201.255%200%200%201%201.212-.925h1.711c.284%200%20.545.094.755.252.613-.3%201.312-.45%202.075-.45%201.356%200%202.557.445%203.482%201.4q.47.48.763%201.064V4.701a1.255%201.255%200%200%201%201.255-1.255h1.86A1.255%201.255%200%200%201%2054.44%204.7v9.194h2.217c.19%200%20.37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42%202.42%200%200%201-.682-1.71c0-.665.267-1.253.735-1.7a2.45%202.45%200%200%201%201.722-.674%202.43%202.43%200%200%201%201.705.675q.318.302.504.683V4.7a1.255%201.255%200%200%201%201.255-1.255h1.744A1.255%201.255%200%200%201%2065.812%204.7v3.335a4.8%204.8%200%200%201%201.526-.246c.938%200%201.817.214%202.59.69a4.47%204.47%200%200%201%201.67%201.743v-.98a1.255%201.255%200%200%201%201.256-1.256h1.777c.233%200%20.451.064.639.174a3.4%203.4%200%200%201%201.567-.372c.346%200%20.861.02%201.285.232a1.25%201.25%200%200%201%20.689%201.004%204.7%204.7%200%200%201%20.853-.588c.795-.44%201.675-.647%202.61-.647%201.385%200%202.65.39%203.525%201.396.836.938%201.168%202.173%201.168%203.528q-.001.515-.056%201.051a1.255%201.255%200%200%201-.947%201.09l.408.952a1.255%201.255%200%200%201-.477%201.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06%200-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8%205.8%200%200%201-.548-2.512q0-.429.053-.843a1.3%201.3%200%200%201-.333-.086l-.166-.004c-.223%200-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255%201.255%200%200%201-1.256%201.256h-1.777a1.255%201.255%200%200%201-1.256-1.256V15.69l-.032.057a4.8%204.8%200%200%201-1.86%201.833%205.04%205.04%200%200%201-2.484.634%204.5%204.5%200%200%201-1.935-.424%201.25%201.25%200%200%201-.764.258h-1.71a1.255%201.255%200%200%201-1.256-1.255V7.687a2.4%202.4%200%200%201-.428.625c.253.23.412.561.412.93v7.553a1.255%201.255%200%200%201-1.256%201.255h-1.843a1.25%201.25%200%200%201-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255%201.255%200%200%201-1.256-1.255v-1.251l-.061.117a4.7%204.7%200%200%201-1.782%201.884%204.77%204.77%200%200%201-2.485.67%205.6%205.6%200%200%201-1.485-.188l.009%202.764a1.255%201.255%200%200%201-1.255%201.259h-1.729a1.255%201.255%200%200%201-1.255-1.255v-3.537a1.255%201.255%200%200%201-1.167.793h-1.679a1.25%201.25%200%200%201-.77-.263%204.5%204.5%200%200%201-1.945.429c-.885%200-1.724-.21-2.495-.632l-.017-.01a5%205%200%200%201-1.081-.836%201.255%201.255%200%200%201-1.254%201.312h-1.81a1.255%201.255%200%200%201-1.228-.99l-.782-3.625-2.044%203.939a1.25%201.25%200%200%201-1.115.676h-.098a1.25%201.25%200%200%201-1.116-.68l-2.061-3.994zM35.92%2016.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033%201.332h1.678V9.242h-1.694l-.033%201.267q-.133-.329-.526-.658l-.032-.028a3.2%203.2%200%200%200-.668-.428l-.27-.12a3.3%203.3%200%200%200-1.235-.23q-1.136-.001-1.974.493a3.36%203.36%200%200%200-1.3%201.382q-.445.89-.444%202.074%200%201.2.51%202.107a3.8%203.8%200%200%200%201.382%201.381%203.9%203.9%200%200%200%201.893.477q.795%200%201.455-.33zm-2.789-5.38q-.576.675-.575%201.762%200%201.102.559%201.794.576.675%201.645.675a2.25%202.25%200%200%200%20.934-.19%202.2%202.2%200%200%200%20.468-.29l.178-.161a2.2%202.2%200%200%200%20.397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2%202.2%200%200%200-.633-.709l-.13-.086-.047-.028a2.1%202.1%200%200%200-1.073-.285q-1.052%200-1.629.692zm2.316%202.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96%200%200%200-.353-.389.85.85%200%200%200-.464-.127c-.4%200-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945%200%20.506.122.801.27.99.097.11.266.224.68.224.303%200%20.504-.09.687-.269zm7.545%201.705a2.6%202.6%200%200%200%20.331.423q.319.33.755.548l.173.074q.65.255%201.49.255%201.02%200%201.844-.493a3.45%203.45%200%200%200%201.316-1.4q.493-.904.493-2.089%200-1.909-.988-2.913-.988-1.02-2.584-1.02-.898%200-1.575.347a3%203%200%200%200-.415.262l-.199.166a3.4%203.4%200%200%200-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296%201.119.297%201.07%200%201.645-.675.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.435%200-.835.16a2%202%200%200%200-.284.136%202%202%200%200%200-.363.254%202.2%202.2%200%200%200-.46.569l-.082.162a2.6%202.6%200%200%200-.213%201.072v.115q0%20.707.296%201.267l.135.211zm.964-.818a1.1%201.1%200%200%200%20.367.385.94.94%200%200%200%20.476.118c.423%200%20.59-.117.687-.23.159-.194.28-.478.28-.95%200-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1%201%200%200%200-.503.135l-.012.007a.86.86%200%200%200-.335.343c-.073.133-.132.324-.132.614v.115a1.4%201.4%200%200%200%20.14.66zm15.7-6.222q.347-.346.346-.856a1.05%201.05%200%200%200-.345-.79%201.18%201.18%200%200%200-.84-.329q-.51%200-.855.33a1.05%201.05%200%200%200-.346.79q0%20.51.346.855.345.346.856.346.51%200%20.839-.346zm4.337%209.314.033-1.332q.191.403.59.747l.098.081a4%204%200%200%200%20.316.224l.223.122a3.2%203.2%200%200%200%201.44.322%203.8%203.8%200%200%200%201.875-.477%203.5%203.5%200%200%200%201.382-1.366q.527-.89.526-2.09%200-1.184-.444-2.073a3.24%203.24%200%200%200-1.283-1.399q-.823-.51-1.942-.51a3.5%203.5%200%200%200-1.527.344l-.086.043-.165.09a3%203%200%200%200-.33.214q-.432.315-.656.707a2%202%200%200%200-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5%202.5%200%200%200%20.566.7q.117.098.245.18l.144.08a2.1%202.1%200%200%200%20.975.232q1.07%200%201.645-.675.576-.69.576-1.778%200-1.102-.576-1.777-.56-.691-1.645-.692a2.2%202.2%200%200%200-1.015.235q-.22.113-.415.282l-.15.142a2.1%202.1%200%200%200-.42.594q-.223.479-.223%201.1v.115q0%20.705.293%201.26zm2.616-.293c.157-.191.28-.479.28-.967%200-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87%200%200%200-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0%20.285.057.499.144.669a1.1%201.1%200%200%200%20.367.405c.137.082.28.123.455.123.423%200%20.59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493%200%20.642.099l.247-1.794q-.196-.099-.717-.099a2.3%202.3%200%200%200-.545.063%202%202%200%200%200-.411.148%202.2%202.2%200%200%200-.4.249%202.5%202.5%200%200%200-.485.499%202.7%202.7%200%200%200-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5%201.5%200%200%201%20.466-.636%202.5%202.5%200%200%201%20.399-.253%202%202%200%200%201%20.224-.099zm9.784%202.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46%203.46%200%200%200-1.4%201.382q-.493.906-.493%202.106%200%201.07.428%201.975.428.89%201.332%201.432.906.526%202.255.526.973%200%201.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954%200-1.497-.444a1.6%201.6%200%200%201-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1%201%200%200%200-.156-.176q-.46-.428-1.316-.428-.986%200-1.494.604-.379.45-.494%201.234zm-27.053%202.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z%22%2F%3E%3Cpath%20fill%3D%22%23fff%22%20d%3D%22m19.63%2011.151-.757-1.71-.345%201.71-1.12%205.644h-1.827L18.083%204.7h.197l3.325%206.533.988%202.19.988-2.19L26.839%204.7h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.93%205.644h-.098l-2.913-5.644zm14.836%205.81q-1.02%200-1.893-.478a3.8%203.8%200%200%201-1.381-1.382q-.51-.906-.51-2.106%200-1.185.444-2.074a3.36%203.36%200%200%201%201.3-1.382q.839-.494%201.974-.494a3.3%203.3%200%200%201%201.234.231%203.3%203.3%200%200%201%20.97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02%201.053a3.17%203.17%200%200%201-1.662.444zm.296-1.482q.938%200%201.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2%202.2%200%200%200-.807-.872%202.1%202.1%200%200%200-1.119-.313q-1.053%200-1.629.692-.575.675-.575%201.76%200%201.103.559%201.795.577.675%201.645.675zm6.521-6.237h1.711v1.4q.906-1.597%202.83-1.597%201.596%200%202.584%201.02.988%201.005.988%202.914%200%201.185-.493%202.09a3.46%203.46%200%200%201-1.316%201.399%203.5%203.5%200%200%201-1.844.493q-.954%200-1.662-.329a2.67%202.67%200%200%201-1.086-.97l.017%205.134h-1.728zm4.048%206.22q1.07%200%201.645-.674.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.592%200-1.12.296-.51.28-.822.823-.296.527-.296%201.234v.115q0%20.708.296%201.267.313.543.823.855.51.296%201.119.297z%22%2F%3E%3Cpath%20fill%3D%22%23e1e3e9%22%20d%3D%22M51.325%204.7h1.86v10.45h3.473v1.646h-5.333zm7.12%204.542h1.843v7.553h-1.843zm.905-1.415a1.16%201.16%200%200%201-.856-.346%201.17%201.17%200%200%201-.346-.856%201.05%201.05%200%200%201%20.346-.79q.346-.329.856-.329.494%200%20.839.33a1.05%201.05%200%200%201%20.345.79%201.16%201.16%200%200%201-.345.855q-.33.346-.84.346zm7.875%209.133a3.17%203.17%200%200%201-1.662-.444q-.723-.46-1.004-1.053l-.033%201.332h-1.71V4.701h1.743v4.657l-.082%201.283q.279-.658%201.086-1.119a3.5%203.5%200%200%201%201.778-.477q1.119%200%201.942.51a3.24%203.24%200%200%201%201.283%201.4q.445.888.444%202.072%200%201.201-.526%202.09a3.5%203.5%200%200%201-1.382%201.366%203.8%203.8%200%200%201-1.876.477zm-.296-1.481q1.069%200%201.645-.675.577-.69.577-1.778%200-1.102-.577-1.776-.56-.691-1.645-.692a2.12%202.12%200%200%200-1.58.659q-.642.641-.642%201.694v.115q0%20.71.296%201.267a2.4%202.4%200%200%200%20.807.872%202.1%202.1%200%200%200%201.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14%202.14%200%200%201%201.349-.46q.527%200%20.724.098l-.247%201.794q-.149-.099-.642-.099-.774%200-1.416.494-.626.493-.626%201.58v3.883h-1.777V9.242zm9.534%207.718q-1.35%200-2.255-.526-.904-.543-1.332-1.432a4.6%204.6%200%200%201-.428-1.975q0-1.2.493-2.106a3.46%203.46%200%200%201%201.4-1.382q.889-.495%202.007-.494%201.744%200%202.584.97.855.956.856%202.7%200%20.444-.05.92h-5.43q.18%201.005.708%201.45.542.443%201.497.443.79%200%201.3-.131a4%204%200%200%200%20.938-.362l.542%201.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728%200-1.991%201.86z%22%2F%3E%3Cpath%20d%3D%22M5.074%2015.948a.484.657%200%200%200-.486.659v1.84a.484.657%200%200%200%20.486.659h4.101a.484.657%200%200%200%20.486-.659v-1.84a.484.657%200%200%200-.486-.659zm3.56%201.16H5.617v.838h3.017z%22%20style%3D%22fill%3A%23fff%3Bfill-rule%3Aevenodd%3Bstroke-width%3A1.03600001%22%2F%3E%3Cg%20style%3D%22stroke-width%3A1.12603545%22%3E%3Cpath%20d%3D%22M-9.408-1.416c-3.833-.025-7.056%202.912-7.08%206.615-.02%203.08%201.653%204.832%203.107%206.268.903.892%201.721%201.74%202.32%202.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87%201.87%200%200%200-.362%201.121l-.011%201.877c-.003.402.104.787.347%201.125.244.338.688.653%201.23.656l4.142.028c.542.003.99-.306%201.238-.641a1.87%201.87%200%200%200%20.363-1.121l.012-1.875a1.87%201.87%200%200%200-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145%201.425-1.983%202.348-2.87%201.473-1.414%203.18-3.149%203.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006%201.1v.002c3.274.02%205.92%202.532%205.9%205.6-.017%202.706-1.39%204.026-2.863%205.44-1.034.994-2.118%202.033-2.814%203.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34%200%200%201-.226.084.34.34%200%200%201-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067%202.7-5.545%205.975-5.523m-.02%202.826c-1.62-.01-2.944%201.315-2.955%202.96-.01%201.646%201.295%202.988%202.916%202.999h.002c1.621.01%202.943-1.316%202.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005%201.1c1.017.006%201.829.83%201.822%201.89s-.83%201.874-1.848%201.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874%201.848-1.868m-2.155%2011.857%204.14.025c.271.002.49.305.487.676l-.013%201.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668%22%20style%3D%22color%3A%23000%3Bfont-style%3Anormal%3Bfont-variant%3Anormal%3Bfont-weight%3A400%3Bfont-stretch%3Anormal%3Bfont-size%3Amedium%3Bline-height%3Anormal%3Bfont-family%3Asans-serif%3Bfont-variant-ligatures%3Anormal%3Bfont-variant-position%3Anormal%3Bfont-variant-caps%3Anormal%3Bfont-variant-numeric%3Anormal%3Bfont-variant-alternates%3Anormal%3Bfont-feature-settings%3Anormal%3Btext-indent%3A0%3Btext-align%3Astart%3Btext-decoration%3Anone%3Btext-decoration-line%3Anone%3Btext-decoration-style%3Asolid%3Btext-decoration-color%3A%23000%3Bletter-spacing%3Anormal%3Bword-spacing%3Anormal%3Btext-transform%3Anone%3Bwriting-mode%3Alr-tb%3Bdirection%3Altr%3Btext-orientation%3Amixed%3Bdominant-baseline%3Aauto%3Bbaseline-shift%3Abaseline%3Btext-anchor%3Astart%3Bwhite-space%3Anormal%3Bshape-padding%3A0%3Bclip-rule%3Aevenodd%3Bdisplay%3Ainline%3Boverflow%3Avisible%3Bvisibility%3Avisible%3Bopacity%3A1%3Bisolation%3Aauto%3Bmix-blend-mode%3Anormal%3Bcolor-interpolation%3AsRGB%3Bcolor-interpolation-filters%3AlinearRGB%3Bsolid-color%3A%23000%3Bsolid-opacity%3A1%3Bvector-effect%3Anone%3Bfill%3A%23000%3Bfill-opacity%3A.4%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-linecap%3Abutt%3Bstroke-linejoin%3Amiter%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-dashoffset%3A0%3Bstroke-opacity%3A1%3Bcolor-rendering%3Aauto%3Bimage-rendering%3Aauto%3Bshape-rendering%3Aauto%3Btext-rendering%3Aauto%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-9.415-.316C-12.69-.338-15.37%202.14-15.39%205.207c-.017%202.716%201.326%204.041%202.78%205.477%201.013%201%202.081%202.055%202.78%203.67l.092.076a.34.34%200%200%200%20.225.086.34.34%200%200%200%20.227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6%201.78-2.64%202.814-3.634%201.473-1.414%202.847-2.733%202.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057%208.784c1.621.011%202.944-1.315%202.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945%201.315-2.955%202.96s1.295%202.989%202.916%203%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23e1e3e9%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-11.594%2015.465c-.27-.002-.492.297-.494.668l-.012%201.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23fff%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){a.maplibregl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2288%22%20height%3D%2223%22%20fill%3D%22none%22%3E%3Cpath%20fill%3D%22%23000%22%20fill-opacity%3D%22.4%22%20fill-rule%3D%22evenodd%22%20d%3D%22M17.408%2016.796h-1.827l2.501-12.095h.198l3.324%206.533.988%202.19.988-2.19%203.258-6.533h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.929%205.644h-.098l-2.914-5.644-.757-1.71-.345%201.71zm1.958-3.42-.726%203.663a1.255%201.255%200%200%201-1.232%201.011h-1.827a1.255%201.255%200%200%201-1.229-1.509l2.501-12.095a1.255%201.255%200%200%201%201.23-1.001h.197a1.25%201.25%200%200%201%201.12.685l3.19%206.273%203.125-6.263a1.25%201.25%200%200%201%201.123-.695h.181a1.255%201.255%200%200%201%201.227.991l1.443%206.71a5%205%200%200%201%20.314-.787l.009-.016a4.6%204.6%200%200%201%201.777-1.887c.782-.46%201.668-.667%202.611-.667a4.6%204.6%200%200%201%201.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255%201.255%200%200%201%201.212.925%201.255%201.255%200%200%201%201.212-.925h1.711c.284%200%20.545.094.755.252.613-.3%201.312-.45%202.075-.45%201.356%200%202.557.445%203.482%201.4q.47.48.763%201.064V4.701a1.255%201.255%200%200%201%201.255-1.255h1.86A1.255%201.255%200%200%201%2054.44%204.7v9.194h2.217c.19%200%20.37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42%202.42%200%200%201-.682-1.71c0-.665.267-1.253.735-1.7a2.45%202.45%200%200%201%201.722-.674%202.43%202.43%200%200%201%201.705.675q.318.302.504.683V4.7a1.255%201.255%200%200%201%201.255-1.255h1.744A1.255%201.255%200%200%201%2065.812%204.7v3.335a4.8%204.8%200%200%201%201.526-.246c.938%200%201.817.214%202.59.69a4.47%204.47%200%200%201%201.67%201.743v-.98a1.255%201.255%200%200%201%201.256-1.256h1.777c.233%200%20.451.064.639.174a3.4%203.4%200%200%201%201.567-.372c.346%200%20.861.02%201.285.232a1.25%201.25%200%200%201%20.689%201.004%204.7%204.7%200%200%201%20.853-.588c.795-.44%201.675-.647%202.61-.647%201.385%200%202.65.39%203.525%201.396.836.938%201.168%202.173%201.168%203.528q-.001.515-.056%201.051a1.255%201.255%200%200%201-.947%201.09l.408.952a1.255%201.255%200%200%201-.477%201.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06%200-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8%205.8%200%200%201-.548-2.512q0-.429.053-.843a1.3%201.3%200%200%201-.333-.086l-.166-.004c-.223%200-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255%201.255%200%200%201-1.256%201.256h-1.777a1.255%201.255%200%200%201-1.256-1.256V15.69l-.032.057a4.8%204.8%200%200%201-1.86%201.833%205.04%205.04%200%200%201-2.484.634%204.5%204.5%200%200%201-1.935-.424%201.25%201.25%200%200%201-.764.258h-1.71a1.255%201.255%200%200%201-1.256-1.255V7.687a2.4%202.4%200%200%201-.428.625c.253.23.412.561.412.93v7.553a1.255%201.255%200%200%201-1.256%201.255h-1.843a1.25%201.25%200%200%201-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255%201.255%200%200%201-1.256-1.255v-1.251l-.061.117a4.7%204.7%200%200%201-1.782%201.884%204.77%204.77%200%200%201-2.485.67%205.6%205.6%200%200%201-1.485-.188l.009%202.764a1.255%201.255%200%200%201-1.255%201.259h-1.729a1.255%201.255%200%200%201-1.255-1.255v-3.537a1.255%201.255%200%200%201-1.167.793h-1.679a1.25%201.25%200%200%201-.77-.263%204.5%204.5%200%200%201-1.945.429c-.885%200-1.724-.21-2.495-.632l-.017-.01a5%205%200%200%201-1.081-.836%201.255%201.255%200%200%201-1.254%201.312h-1.81a1.255%201.255%200%200%201-1.228-.99l-.782-3.625-2.044%203.939a1.25%201.25%200%200%201-1.115.676h-.098a1.25%201.25%200%200%201-1.116-.68l-2.061-3.994zM35.92%2016.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033%201.332h1.678V9.242h-1.694l-.033%201.267q-.133-.329-.526-.658l-.032-.028a3.2%203.2%200%200%200-.668-.428l-.27-.12a3.3%203.3%200%200%200-1.235-.23q-1.136-.001-1.974.493a3.36%203.36%200%200%200-1.3%201.382q-.445.89-.444%202.074%200%201.2.51%202.107a3.8%203.8%200%200%200%201.382%201.381%203.9%203.9%200%200%200%201.893.477q.795%200%201.455-.33zm-2.789-5.38q-.576.675-.575%201.762%200%201.102.559%201.794.576.675%201.645.675a2.25%202.25%200%200%200%20.934-.19%202.2%202.2%200%200%200%20.468-.29l.178-.161a2.2%202.2%200%200%200%20.397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2%202.2%200%200%200-.633-.709l-.13-.086-.047-.028a2.1%202.1%200%200%200-1.073-.285q-1.052%200-1.629.692zm2.316%202.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96%200%200%200-.353-.389.85.85%200%200%200-.464-.127c-.4%200-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945%200%20.506.122.801.27.99.097.11.266.224.68.224.303%200%20.504-.09.687-.269zm7.545%201.705a2.6%202.6%200%200%200%20.331.423q.319.33.755.548l.173.074q.65.255%201.49.255%201.02%200%201.844-.493a3.45%203.45%200%200%200%201.316-1.4q.493-.904.493-2.089%200-1.909-.988-2.913-.988-1.02-2.584-1.02-.898%200-1.575.347a3%203%200%200%200-.415.262l-.199.166a3.4%203.4%200%200%200-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296%201.119.297%201.07%200%201.645-.675.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.435%200-.835.16a2%202%200%200%200-.284.136%202%202%200%200%200-.363.254%202.2%202.2%200%200%200-.46.569l-.082.162a2.6%202.6%200%200%200-.213%201.072v.115q0%20.707.296%201.267l.135.211zm.964-.818a1.1%201.1%200%200%200%20.367.385.94.94%200%200%200%20.476.118c.423%200%20.59-.117.687-.23.159-.194.28-.478.28-.95%200-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1%201%200%200%200-.503.135l-.012.007a.86.86%200%200%200-.335.343c-.073.133-.132.324-.132.614v.115a1.4%201.4%200%200%200%20.14.66zm15.7-6.222q.347-.346.346-.856a1.05%201.05%200%200%200-.345-.79%201.18%201.18%200%200%200-.84-.329q-.51%200-.855.33a1.05%201.05%200%200%200-.346.79q0%20.51.346.855.345.346.856.346.51%200%20.839-.346zm4.337%209.314.033-1.332q.191.403.59.747l.098.081a4%204%200%200%200%20.316.224l.223.122a3.2%203.2%200%200%200%201.44.322%203.8%203.8%200%200%200%201.875-.477%203.5%203.5%200%200%200%201.382-1.366q.527-.89.526-2.09%200-1.184-.444-2.073a3.24%203.24%200%200%200-1.283-1.399q-.823-.51-1.942-.51a3.5%203.5%200%200%200-1.527.344l-.086.043-.165.09a3%203%200%200%200-.33.214q-.432.315-.656.707a2%202%200%200%200-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5%202.5%200%200%200%20.566.7q.117.098.245.18l.144.08a2.1%202.1%200%200%200%20.975.232q1.07%200%201.645-.675.576-.69.576-1.778%200-1.102-.576-1.777-.56-.691-1.645-.692a2.2%202.2%200%200%200-1.015.235q-.22.113-.415.282l-.15.142a2.1%202.1%200%200%200-.42.594q-.223.479-.223%201.1v.115q0%20.705.293%201.26zm2.616-.293c.157-.191.28-.479.28-.967%200-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87%200%200%200-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0%20.285.057.499.144.669a1.1%201.1%200%200%200%20.367.405c.137.082.28.123.455.123.423%200%20.59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493%200%20.642.099l.247-1.794q-.196-.099-.717-.099a2.3%202.3%200%200%200-.545.063%202%202%200%200%200-.411.148%202.2%202.2%200%200%200-.4.249%202.5%202.5%200%200%200-.485.499%202.7%202.7%200%200%200-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5%201.5%200%200%201%20.466-.636%202.5%202.5%200%200%201%20.399-.253%202%202%200%200%201%20.224-.099zm9.784%202.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46%203.46%200%200%200-1.4%201.382q-.493.906-.493%202.106%200%201.07.428%201.975.428.89%201.332%201.432.906.526%202.255.526.973%200%201.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954%200-1.497-.444a1.6%201.6%200%200%201-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1%201%200%200%200-.156-.176q-.46-.428-1.316-.428-.986%200-1.494.604-.379.45-.494%201.234zm-27.053%202.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z%22%2F%3E%3Cpath%20fill%3D%22%23fff%22%20d%3D%22m19.63%2011.151-.757-1.71-.345%201.71-1.12%205.644h-1.827L18.083%204.7h.197l3.325%206.533.988%202.19.988-2.19L26.839%204.7h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.93%205.644h-.098l-2.913-5.644zm14.836%205.81q-1.02%200-1.893-.478a3.8%203.8%200%200%201-1.381-1.382q-.51-.906-.51-2.106%200-1.185.444-2.074a3.36%203.36%200%200%201%201.3-1.382q.839-.494%201.974-.494a3.3%203.3%200%200%201%201.234.231%203.3%203.3%200%200%201%20.97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02%201.053a3.17%203.17%200%200%201-1.662.444zm.296-1.482q.938%200%201.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2%202.2%200%200%200-.807-.872%202.1%202.1%200%200%200-1.119-.313q-1.053%200-1.629.692-.575.675-.575%201.76%200%201.103.559%201.795.577.675%201.645.675zm6.521-6.237h1.711v1.4q.906-1.597%202.83-1.597%201.596%200%202.584%201.02.988%201.005.988%202.914%200%201.185-.493%202.09a3.46%203.46%200%200%201-1.316%201.399%203.5%203.5%200%200%201-1.844.493q-.954%200-1.662-.329a2.67%202.67%200%200%201-1.086-.97l.017%205.134h-1.728zm4.048%206.22q1.07%200%201.645-.674.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.592%200-1.12.296-.51.28-.822.823-.296.527-.296%201.234v.115q0%20.708.296%201.267.313.543.823.855.51.296%201.119.297z%22%2F%3E%3Cpath%20fill%3D%22%23e1e3e9%22%20d%3D%22M51.325%204.7h1.86v10.45h3.473v1.646h-5.333zm7.12%204.542h1.843v7.553h-1.843zm.905-1.415a1.16%201.16%200%200%201-.856-.346%201.17%201.17%200%200%201-.346-.856%201.05%201.05%200%200%201%20.346-.79q.346-.329.856-.329.494%200%20.839.33a1.05%201.05%200%200%201%20.345.79%201.16%201.16%200%200%201-.345.855q-.33.346-.84.346zm7.875%209.133a3.17%203.17%200%200%201-1.662-.444q-.723-.46-1.004-1.053l-.033%201.332h-1.71V4.701h1.743v4.657l-.082%201.283q.279-.658%201.086-1.119a3.5%203.5%200%200%201%201.778-.477q1.119%200%201.942.51a3.24%203.24%200%200%201%201.283%201.4q.445.888.444%202.072%200%201.201-.526%202.09a3.5%203.5%200%200%201-1.382%201.366%203.8%203.8%200%200%201-1.876.477zm-.296-1.481q1.069%200%201.645-.675.577-.69.577-1.778%200-1.102-.577-1.776-.56-.691-1.645-.692a2.12%202.12%200%200%200-1.58.659q-.642.641-.642%201.694v.115q0%20.71.296%201.267a2.4%202.4%200%200%200%20.807.872%202.1%202.1%200%200%200%201.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14%202.14%200%200%201%201.349-.46q.527%200%20.724.098l-.247%201.794q-.149-.099-.642-.099-.774%200-1.416.494-.626.493-.626%201.58v3.883h-1.777V9.242zm9.534%207.718q-1.35%200-2.255-.526-.904-.543-1.332-1.432a4.6%204.6%200%200%201-.428-1.975q0-1.2.493-2.106a3.46%203.46%200%200%201%201.4-1.382q.889-.495%202.007-.494%201.744%200%202.584.97.855.956.856%202.7%200%20.444-.05.92h-5.43q.18%201.005.708%201.45.542.443%201.497.443.79%200%201.3-.131a4%204%200%200%200%20.938-.362l.542%201.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728%200-1.991%201.86z%22%2F%3E%3Cpath%20d%3D%22M5.074%2015.948a.484.657%200%200%200-.486.659v1.84a.484.657%200%200%200%20.486.659h4.101a.484.657%200%200%200%20.486-.659v-1.84a.484.657%200%200%200-.486-.659zm3.56%201.16H5.617v.838h3.017z%22%20style%3D%22fill%3A%23fff%3Bfill-rule%3Aevenodd%3Bstroke-width%3A1.03600001%22%2F%3E%3Cg%20style%3D%22stroke-width%3A1.12603545%22%3E%3Cpath%20d%3D%22M-9.408-1.416c-3.833-.025-7.056%202.912-7.08%206.615-.02%203.08%201.653%204.832%203.107%206.268.903.892%201.721%201.74%202.32%202.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87%201.87%200%200%200-.362%201.121l-.011%201.877c-.003.402.104.787.347%201.125.244.338.688.653%201.23.656l4.142.028c.542.003.99-.306%201.238-.641a1.87%201.87%200%200%200%20.363-1.121l.012-1.875a1.87%201.87%200%200%200-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145%201.425-1.983%202.348-2.87%201.473-1.414%203.18-3.149%203.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006%201.1v.002c3.274.02%205.92%202.532%205.9%205.6-.017%202.706-1.39%204.026-2.863%205.44-1.034.994-2.118%202.033-2.814%203.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34%200%200%201-.226.084.34.34%200%200%201-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067%202.7-5.545%205.975-5.523m-.02%202.826c-1.62-.01-2.944%201.315-2.955%202.96-.01%201.646%201.295%202.988%202.916%202.999h.002c1.621.01%202.943-1.316%202.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005%201.1c1.017.006%201.829.83%201.822%201.89s-.83%201.874-1.848%201.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874%201.848-1.868m-2.155%2011.857%204.14.025c.271.002.49.305.487.676l-.013%201.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668%22%20style%3D%22color%3A%23000%3Bfont-style%3Anormal%3Bfont-variant%3Anormal%3Bfont-weight%3A400%3Bfont-stretch%3Anormal%3Bfont-size%3Amedium%3Bline-height%3Anormal%3Bfont-family%3Asans-serif%3Bfont-variant-ligatures%3Anormal%3Bfont-variant-position%3Anormal%3Bfont-variant-caps%3Anormal%3Bfont-variant-numeric%3Anormal%3Bfont-variant-alternates%3Anormal%3Bfont-feature-settings%3Anormal%3Btext-indent%3A0%3Btext-align%3Astart%3Btext-decoration%3Anone%3Btext-decoration-line%3Anone%3Btext-decoration-style%3Asolid%3Btext-decoration-color%3A%23000%3Bletter-spacing%3Anormal%3Bword-spacing%3Anormal%3Btext-transform%3Anone%3Bwriting-mode%3Alr-tb%3Bdirection%3Altr%3Btext-orientation%3Amixed%3Bdominant-baseline%3Aauto%3Bbaseline-shift%3Abaseline%3Btext-anchor%3Astart%3Bwhite-space%3Anormal%3Bshape-padding%3A0%3Bclip-rule%3Aevenodd%3Bdisplay%3Ainline%3Boverflow%3Avisible%3Bvisibility%3Avisible%3Bopacity%3A1%3Bisolation%3Aauto%3Bmix-blend-mode%3Anormal%3Bcolor-interpolation%3AsRGB%3Bcolor-interpolation-filters%3AlinearRGB%3Bsolid-color%3A%23000%3Bsolid-opacity%3A1%3Bvector-effect%3Anone%3Bfill%3A%23000%3Bfill-opacity%3A.4%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-linecap%3Abutt%3Bstroke-linejoin%3Amiter%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-dashoffset%3A0%3Bstroke-opacity%3A1%3Bcolor-rendering%3Aauto%3Bimage-rendering%3Aauto%3Bshape-rendering%3Aauto%3Btext-rendering%3Aauto%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-9.415-.316C-12.69-.338-15.37%202.14-15.39%205.207c-.017%202.716%201.326%204.041%202.78%205.477%201.013%201%202.081%202.055%202.78%203.67l.092.076a.34.34%200%200%200%20.225.086.34.34%200%200%200%20.227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6%201.78-2.64%202.814-3.634%201.473-1.414%202.847-2.733%202.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057%208.784c1.621.011%202.944-1.315%202.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945%201.315-2.955%202.96s1.295%202.989%202.916%203%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23e1e3e9%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-11.594%2015.465c-.27-.002-.492.297-.494.668l-.012%201.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23fff%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl.maplibregl-ctrl-attrib{padding:0 5px;background-color:hsla(0,0%,100%,.5);margin:0}@media screen{.maplibregl-ctrl-attrib.maplibregl-compact{min-height:20px;padding:2px 24px 2px 0;margin:10px;position:relative;background-color:#fff;color:#000;border-radius:12px;box-sizing:content-box}.maplibregl-ctrl-attrib.maplibregl-compact-show{padding:2px 28px 2px 8px;visibility:visible}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact-show,.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact-show{padding:2px 8px 2px 28px;border-radius:12px}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-inner{display:none}.maplibregl-ctrl-attrib-button{display:none;cursor:pointer;position:absolute;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20fill-rule%3D%22evenodd%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M4%2010a6%206%200%201%200%2012%200%206%206%200%201%200-12%200m5-3a1%201%200%201%200%202%200%201%201%200%201%200-2%200m0%203a1%201%200%201%201%202%200v3a1%201%200%201%201-2%200%22%2F%3E%3C%2Fsvg%3E");background-color:hsla(0,0%,100%,.5);width:24px;height:24px;box-sizing:border-box;border-radius:12px;outline:none;top:0;right:0;border:0}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;list-style:none}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button::-webkit-details-marker{display:none}.maplibregl-ctrl-bottom-left .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-top-left .maplibregl-ctrl-attrib-button{left:0}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-inner{display:block}.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-button{background-color:rgba(0,0,0,.05)}.maplibregl-ctrl-bottom-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;right:0}.maplibregl-ctrl-top-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{top:0;right:0}.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{top:0;left:0}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;left:0}}@media screen and (forced-colors:active){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22%23fff%22%20fill-rule%3D%22evenodd%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M4%2010a6%206%200%201%200%2012%200%206%206%200%201%200-12%200m5-3a1%201%200%201%200%202%200%201%201%200%201%200-2%200m0%203a1%201%200%201%201%202%200v3a1%201%200%201%201-2%200%22%2F%3E%3C%2Fsvg%3E")}}@media screen and (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20fill-rule%3D%22evenodd%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M4%2010a6%206%200%201%200%2012%200%206%206%200%201%200-12%200m5-3a1%201%200%201%200%202%200%201%201%200%201%200-2%200m0%203a1%201%200%201%201%202%200v3a1%201%200%201%201-2%200%22%2F%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl-attrib a{color:rgba(0,0,0,.75);text-decoration:none}.maplibregl-ctrl-attrib a:hover{color:inherit;text-decoration:underline}.maplibregl-attrib-empty{display:none}.maplibregl-ctrl-scale{background-color:hsla(0,0%,100%,.75);font-size:10px;white-space:nowrap;border-color:#333;border-style:none solid solid;border-width:medium 2px 2px;padding:0 5px;color:#333;box-sizing:border-box}.maplibregl-popup{position:absolute;top:0;left:0;display:flex;will-change:transform;pointer-events:none}.maplibregl-popup-anchor-top,.maplibregl-popup-anchor-top-left,.maplibregl-popup-anchor-top-right{flex-direction:column}.maplibregl-popup-anchor-bottom,.maplibregl-popup-anchor-bottom-left,.maplibregl-popup-anchor-bottom-right{flex-direction:column-reverse}.maplibregl-popup-anchor-left{flex-direction:row}.maplibregl-popup-anchor-right{flex-direction:row-reverse}.maplibregl-popup-tip{width:0;height:0;border:10px solid transparent;z-index:1}.maplibregl-popup-anchor-top .maplibregl-popup-tip{align-self:center;border-top:none;border-bottom-color:#fff}.maplibregl-popup-anchor-top-left .maplibregl-popup-tip{align-self:flex-start;border-top:none;border-left:none;border-bottom-color:#fff}.maplibregl-popup-anchor-top-right .maplibregl-popup-tip{align-self:flex-end;border-top:none;border-right:none;border-bottom-color:#fff}.maplibregl-popup-anchor-bottom .maplibregl-popup-tip{align-self:center;border-bottom:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip{align-self:flex-start;border-bottom:none;border-left:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip{align-self:flex-end;border-bottom:none;border-right:none;border-top-color:#fff}.maplibregl-popup-anchor-left .maplibregl-popup-tip{align-self:center;border-left:none;border-right-color:#fff}.maplibregl-popup-anchor-right .maplibregl-popup-tip{align-self:center;border-right:none;border-left-color:#fff}[dir=rtl] .maplibregl-popup-anchor-left{flex-direction:row-reverse}[dir=rtl] .maplibregl-popup-anchor-right{flex-direction:row}[dir=rtl] .maplibregl-popup-anchor-top-left .maplibregl-popup-tip{align-self:flex-end}[dir=rtl] .maplibregl-popup-anchor-top-right .maplibregl-popup-tip{align-self:flex-start}[dir=rtl] .maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip{align-self:flex-end}[dir=rtl] .maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip{align-self:flex-start}.maplibregl-popup-close-button{position:absolute;right:0;top:0;border:0;border-radius:0 3px 0 0;cursor:pointer;background-color:transparent}.maplibregl-popup-close-button:hover{background-color:rgba(0,0,0,.05)}.maplibregl-popup-content{position:relative;background:#fff;border-radius:3px;box-shadow:0 1px 2px rgba(0,0,0,.1);padding:15px 10px;pointer-events:auto}.maplibregl-popup-anchor-top-left .maplibregl-popup-content{border-top-left-radius:0}.maplibregl-popup-anchor-top-right .maplibregl-popup-content{border-top-right-radius:0}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-content{border-bottom-left-radius:0}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-content{border-bottom-right-radius:0}.maplibregl-popup-track-pointer{display:none}.maplibregl-popup-track-pointer *{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-map:hover .maplibregl-popup-track-pointer{display:flex}.maplibregl-map:active .maplibregl-popup-track-pointer{display:none}.maplibregl-marker{position:absolute;top:0;left:0;will-change:transform;transition:opacity .2s}.maplibregl-marker-draggable{cursor:grab}.maplibregl-user-location-dot,.maplibregl-user-location-dot:before{background-color:#1da1f2;width:15px;height:15px;border-radius:50%}.maplibregl-user-location-dot:before{content:"";position:absolute;animation:maplibregl-user-location-dot-pulse 2s infinite}.maplibregl-user-location-dot:after{border-radius:50%;border:2px solid #fff;content:"";height:19px;left:-2px;position:absolute;top:-2px;width:19px;box-sizing:border-box;box-shadow:0 0 3px rgba(0,0,0,.35)}@media (prefers-reduced-motion:reduce){.maplibregl-user-location-dot:before{animation:none}}@keyframes maplibregl-user-location-dot-pulse{0%{transform:scale(1);opacity:1}70%{transform:scale(3);opacity:0}to{transform:scale(1);opacity:0}}.maplibregl-user-location-dot-stale{background-color:#aaa}.maplibregl-user-location-dot-stale:after{display:none}.maplibregl-user-location-accuracy-circle{background-color:#1da1f233;width:1px;height:1px;border-radius:100%}.maplibregl-crosshair,.maplibregl-crosshair .maplibregl-interactive,.maplibregl-crosshair .maplibregl-interactive:active{cursor:crosshair}.maplibregl-boxzoom{position:absolute;top:0;left:0;width:0;height:0;background:#fff;border:2px dotted #202020;opacity:.5}.maplibregl-cooperative-gesture-screen{background:rgba(0,0,0,.4);position:absolute;inset:0;display:flex;justify-content:center;align-items:center;color:#fff;padding:1rem;font-size:1.4em;line-height:1.2;opacity:0;pointer-events:none;transition:opacity 1s ease 1s;z-index:99999}.maplibregl-cooperative-gesture-screen.maplibregl-show{opacity:1;transition:opacity .05s}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:none}@media (hover:none),(pointer:coarse){.maplibregl-cooperative-gesture-screen .maplibregl-desktop-message{display:none}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:block}}.maplibregl-pseudo-fullscreen{position:fixed!important;width:100%!important;height:100%!important;top:0!important;left:0!important;z-index:99999}`; document.head.appendChild(e); } @@ -23898,6 +23898,55 @@ var Plotly = (() => { var FIND_TEX = /([^$]*)([$]+[^$]*[$]+)([^$]*)/; var matchTex = (str) => str ? str.match(FIND_TEX) : null; exports.matchTex = matchTex; + var isPureTex = (str) => { + var tex = matchTex(str); + return !!tex && !tex[1] && !tex[3]; + }; + exports.isPureTex = isPureTex; + function positionMathGroup(_context, svgClass, mathjaxGroup, newSvg, textAnchor, fontSize, width0, height0) { + var g = newSvg.select("g"); + var bb = g.node().getBoundingClientRect(); + var w = bb.width; + var h = bb.height; + var w0 = width0 === void 0 ? w : width0; + var h0 = height0 === void 0 ? h : height0; + if (w > w0 || h > h0) { + newSvg.style("overflow", "hidden"); + bb = newSvg.node().getBoundingClientRect(); + w = bb.width; + h = bb.height; + } + var x = +_context.attr("x"); + var y = +_context.attr("y"); + var textHeight = fontSize || _context.node().getBoundingClientRect().height; + var dy = -textHeight / 4; + if (svgClass[0] === "y") { + mathjaxGroup.attr({ + transform: "rotate(" + [-90, x, y] + ")" + strTranslate(-w / 2, dy - h / 2) + }); + } else if (svgClass[0] === "l") { + y = dy - h / 2; + } else if (svgClass[0] === "a" && svgClass.indexOf("atitle") !== 0) { + x = 0; + y = dy; + } else { + x = x - w * (textAnchor === "middle" ? 0.5 : textAnchor === "end" ? 1 : 0); + y = y + dy - h / 2; + } + newSvg.attr({ + x, + y + }); + } + function sanitizeMathJaxLinks(newSvg) { + newSvg.selectAll("a").each(function() { + var a = d3.select(this); + ["href", "xlink:href"].forEach(function(attrName) { + var href = a.attr(attrName); + if (href) a.attr(attrName, sanitizeHref(href) || null); + }); + }); + } exports.convertToTspans = function(_context, gd, _callback) { var str = _context.text(); var tex = !_context.attr("data-notex") && gd && gd._context.typesetMath && matchTex(str); @@ -23951,6 +24000,7 @@ var Plotly = (() => { "data-math": "Y" }); mathjaxGroup.node().appendChild(newSvg.node()); + sanitizeMathJaxLinks(newSvg); if (_glyphDefs && _glyphDefs.node()) { newSvg.node().insertBefore( _glyphDefs.node().cloneNode(true), @@ -23971,36 +24021,7 @@ var Plotly = (() => { var fill = _context.node().style.fill || "black"; var g = newSvg.select("g"); g.attr({ fill, stroke: fill }); - var bb = g.node().getBoundingClientRect(); - var w = bb.width; - var h = bb.height; - if (w > w0 || h > h0) { - newSvg.style("overflow", "hidden"); - bb = newSvg.node().getBoundingClientRect(); - w = bb.width; - h = bb.height; - } - var x = +_context.attr("x"); - var y = +_context.attr("y"); - var textHeight = fontSize || _context.node().getBoundingClientRect().height; - var dy = -textHeight / 4; - if (svgClass[0] === "y") { - mathjaxGroup.attr({ - transform: "rotate(" + [-90, x, y] + ")" + strTranslate(-w / 2, dy - h / 2) - }); - } else if (svgClass[0] === "l") { - y = dy - h / 2; - } else if (svgClass[0] === "a" && svgClass.indexOf("atitle") !== 0) { - x = 0; - y = dy; - } else { - x = x - w * (textAnchor === "middle" ? 0.5 : textAnchor === "end" ? 1 : 0); - y = y + dy - h / 2; - } - newSvg.attr({ - x, - y - }); + positionMathGroup(_context, svgClass, mathjaxGroup, newSvg, textAnchor, fontSize, w0, h0); if (_callback) _callback.call(_context, mathjaxGroup); resolve(mathjaxGroup); }); @@ -24008,6 +24029,24 @@ var Plotly = (() => { } else showText(); return _context; }; + exports.repositionMathGroup = function(_context) { + if (_context.empty()) return; + var svgClass = (_context.attr("class") ? _context.attr("class").split(" ")[0] : "text") + "-math"; + var parent = d3.select(_context.node().parentNode); + var mathjaxGroup = parent.select("g." + svgClass + "-group"); + var newSvg = mathjaxGroup.select("svg." + svgClass); + if (mathjaxGroup.empty() || newSvg.empty()) return; + var textAnchor = _context.attr("text-anchor"); + var fontSize = parseInt(_context.node().style.fontSize, 10); + positionMathGroup(_context, svgClass, mathjaxGroup, newSvg, textAnchor, fontSize); + }; + exports.getMathOrTextNode = function(textSel) { + var node = textSel.node(); + if (!node) return null; + var svgClass = (textSel.attr("class") ? textSel.attr("class").split(" ")[0] : "text") + "-math"; + var mathGroup = d3.select(node.parentNode).select("g." + svgClass + "-group"); + return mathGroup.empty() ? node : mathGroup.node(); + }; var LT_MATCH = /(<|<|<)/g; var GT_MATCH = /(>|>|>)/g; function cleanEscapesForTex(s) { @@ -30773,6 +30812,10 @@ var Plotly = (() => { if (((_b = ax.minor) == null ? void 0 : _b._tick0Init) === void 0) { mockAx.tick0 = ax.tick0; } + if (ax._useTicklabelIndex) { + autoTickRound(mockAx); + ax.minor._tickround = mockAx._tickround; + } }; function isMultiple(bigger, smaller) { return Math.abs((bigger / smaller + 0.5) % 1 - 0.5) < 1e-3; @@ -30860,24 +30903,32 @@ var Plotly = (() => { function positionPeriodTicks(tickVals, ax, definedDelta) { for (var i = 0; i < tickVals.length; i++) { var v = tickVals[i].value; - var a = i; - var b = i + 1; - if (i < tickVals.length - 1) { - a = i; - b = i + 1; - } else if (i > 0) { - a = i - 1; - b = i; + var A, B; + if (tickVals[i].periodEndTick != null) { + A = tickVals[i].value; + B = tickVals[i].periodEndTick.value; } else { - a = i; - b = i; + var a = i; + var b = i + 1; + if (i < tickVals.length - 1) { + a = i; + b = i + 1; + } else if (i > 0) { + a = i - 1; + b = i; + } else { + a = i; + b = i; + } + A = tickVals[a].value; + B = tickVals[b].value; } - var A = tickVals[a].value; - var B = tickVals[b].value; var actualDelta = Math.abs(B - A); var delta = definedDelta || actualDelta; var periodLength = 0; - if (delta >= ONEMINYEAR2) { + if (tickVals[i].periodEndTick != null) { + periodLength = actualDelta; + } else if (delta >= ONEMINYEAR2) { if (actualDelta >= ONEMINYEAR2 && actualDelta <= ONEMAXYEAR2) { periodLength = actualDelta; } else { @@ -30936,6 +30987,7 @@ var Plotly = (() => { var isPeriod = ax.ticklabelmode === "period"; var isReversed = ax.range[0] > ax.range[1]; var ticklabelIndex = !ax.ticklabelindex || Lib.isArrayOrTypedArray(ax.ticklabelindex) ? ax.ticklabelindex : [ax.ticklabelindex]; + ax._useTicklabelIndex = ticklabelIndex != null && ticklabelIndex !== 0; var rng = Lib.simpleMap(ax.range, ax.r2l, void 0, void 0, opts); var axrev = rng[1] < rng[0]; var minRange = Math.min(rng[0], rng[1]); @@ -30947,7 +30999,7 @@ var Plotly = (() => { var minorTickVals = []; var allTicklabelVals = []; var hasMinor = ax.minor && (ax.minor.ticks || ax.minor.showgrid); - var calcMinor = hasMinor || ticklabelIndex; + var calcMinor = hasMinor || ax._useTicklabelIndex; for (var major = 1; major >= (calcMinor ? 0 : 1); major--) { var isMinor = !major; if (major) { @@ -31017,7 +31069,7 @@ var Plotly = (() => { x = axes.tickIncrement(x, dtick, !axrev, calendar); } } - if ((major || ticklabelIndex) && isPeriod) { + if ((major || ax._useTicklabelIndex) && isPeriod) { x = axes.tickIncrement(x, dtick, !axrev, calendar); if (major) majorId--; } @@ -31052,72 +31104,82 @@ var Plotly = (() => { } } } + function findOverlappingTick(minorTick, majorTicks) { + const majorTick = majorTicks.find((majorTick2) => majorTick2.value === minorTick.value); + if (majorTick != null) { + return majorTick; + } + const epsilon2 = 1e7; + for (let i2 = 0; i2 < majorTicks.length; i2++) { + if (epsilon2 + majorTicks[i2].value === epsilon2 + minorTick.value) { + return majorTicks[i2]; + } + } + return null; + } + ; if (!minorTickVals || minorTickVals.length < 3) { - ticklabelIndex = false; + ax._useTicklabelIndex = false; } else { - var diff = (minorTickVals[2].value - minorTickVals[1].value) * (isReversed ? -1 : 1); + const diff = (minorTickVals[2].value - minorTickVals[1].value) * (isReversed ? -1 : 1); if (!periodCompatibleWithTickformat(diff, ax.tickformat)) { - ticklabelIndex = false; + ax._useTicklabelIndex = false; minorTickVals = minorTickVals.slice(1); } } - if (!ticklabelIndex) { + if (!ax._useTicklabelIndex) { allTicklabelVals = tickVals; } else { - var allTickVals = tickVals.concat(minorTickVals); + const filteredMinors = minorTickVals.filter((minor) => findOverlappingTick(minor, tickVals) == null); + const labelTickValsAscending = tickVals.concat(filteredMinors).sort((a, b) => a.value - b.value); if (isPeriod && tickVals.length) { - allTickVals = allTickVals.slice(1); - } - allTickVals = allTickVals.sort(function(a, b) { - return a.value - b.value; - }).filter(function(tick, index, self2) { - return index === 0 || tick.value !== self2[index - 1].value; - }); - var majorTickIndices = allTickVals.map(function(item, index) { - return item.minor === void 0 && !item.skipLabel ? index : null; - }).filter(function(index) { - return index !== null; - }); - majorTickIndices.forEach(function(majorIdx) { - ticklabelIndex.map(function(nextLabelIdx) { - var minorIdx = majorIdx + nextLabelIdx; - if (minorIdx >= 0 && minorIdx < allTickVals.length) { - Lib.pushUnique(allTicklabelVals, allTickVals[minorIdx]); - } - }); - }); - tickVals.forEach(function(tick) { - tick.skipLabel = allTicklabelVals.indexOf(tick) === -1; + tickVals[0].skipLabel = true; + } + tickVals.forEach(function(majorTick) { + if (!majorTick.skipLabel) { + ticklabelIndex.forEach((labelIndex) => { + if (labelIndex < 0) { + const smallerTicks = labelTickValsAscending.filter((minorTick) => minorTick.value <= majorTick.value); + const absLabelIndex = Math.abs(labelIndex); + const labeledTickIndex = smallerTicks.length - absLabelIndex - 1; + if (absLabelIndex < smallerTicks.length) { + const tickToLabel = smallerTicks[labeledTickIndex]; + allTicklabelVals.push(tickToLabel); + if (isPeriod) { + tickToLabel.periodEndTick = smallerTicks[labeledTickIndex + 1]; + } + } + } else { + const largerTicks = labelTickValsAscending.filter((minorTick) => minorTick.value >= majorTick.value); + if (labelIndex < largerTicks.length) { + const tickToLabel = largerTicks[labelIndex]; + allTicklabelVals.push(tickToLabel); + if (isPeriod && largerTicks[labelIndex + 1]) { + tickToLabel.periodEndTick = largerTicks[labelIndex + 1]; + } + } + } + }); + majorTick.skipLabel = true; + } }); + allTicklabelVals.forEach((t2) => t2.skipLabel = false); } if (hasMinor) { - var canOverlap = ax.minor.ticks === "inside" && ax.ticks === "outside" || ax.minor.ticks === "outside" && ax.ticks === "inside"; - if (!canOverlap) { - var majorValues = tickVals.map(function(d) { - return d.value; - }); + var allowedToOverlap = ax.minor.ticks === "inside" && ax.ticks === "outside" || ax.minor.ticks === "outside" && ax.ticks === "inside"; + if (!allowedToOverlap) { var list = []; for (var k = 0; k < minorTickVals.length; k++) { - var T = minorTickVals[k]; - var v = T.value; - if (majorValues.indexOf(v) !== -1) { - continue; - } - var found = false; - for (var q = 0; !found && q < tickVals.length; q++) { - if ( - // add 10e6 to eliminate problematic digits - 1e7 + tickVals[q].value === 1e7 + v - ) { - found = true; - } + if (findOverlappingTick(minorTickVals[k], tickVals) == null) { + list.push(minorTickVals[k]); } - if (!found) list.push(T); } minorTickVals = list; } } - if (isPeriod) positionPeriodTicks(allTicklabelVals, ax, ax._definedDelta); + if (isPeriod) { + positionPeriodTicks(allTicklabelVals, ax, ax._definedDelta); + } var i; if (ax.rangebreaks) { var flip = ax._id.charAt(0) === "y"; @@ -31180,7 +31242,7 @@ var Plotly = (() => { var _minor = tickVals[i].minor; var _value = tickVals[i].value; if (_minor) { - if (ticklabelIndex && allTicklabelVals.indexOf(tickVals[i]) !== -1) { + if (ax._useTicklabelIndex && allTicklabelVals.indexOf(tickVals[i]) !== -1) { t = setTickLabel(ax, tickVals[i]); } else { t = { x: _value }; @@ -31196,7 +31258,7 @@ var Plotly = (() => { ticksOut.push(t); } } - if (isPeriod && ticklabelIndex && minorTicks.length) { + if (isPeriod && ax._useTicklabelIndex && minorTicks.length) { minorTicks[0].noTick = true; } ticksOut = ticksOut.concat(minorTicks); @@ -31565,7 +31627,7 @@ var Plotly = (() => { }; } function formatDate(ax, out, hover, extraPrecision) { - var tr = ax._tickround; + var tr = ax._useTicklabelIndex ? ax.minor._tickround : ax._tickround; var fmt = hover && ax.hoverformat || axes.getTickFormat(ax); extraPrecision = !fmt && extraPrecision; if (extraPrecision) { @@ -33900,12 +33962,44 @@ var Plotly = (() => { } }); + // src/components/legend/constants.ts + var constants_exports3 = {}; + __export(constants_exports3, { + dfltFillHeight: () => dfltFillHeight, + itemGap: () => itemGap, + itemHeightPad: () => itemHeightPad, + itemMinHeight: () => itemMinHeight, + scrollBarColor: () => scrollBarColor, + scrollBarEnterAttrs: () => scrollBarEnterAttrs, + scrollBarMargin: () => scrollBarMargin, + scrollBarMinHeight: () => scrollBarMinHeight, + scrollBarWidth: () => scrollBarWidth, + titlePad: () => titlePad + }); + var scrollBarWidth, scrollBarMinHeight, scrollBarColor, scrollBarMargin, scrollBarEnterAttrs, titlePad, itemGap, dfltFillHeight, itemMinHeight, itemHeightPad; + var init_constants3 = __esm({ + "src/components/legend/constants.ts"() { + "use strict"; + scrollBarWidth = 6; + scrollBarMinHeight = 20; + scrollBarColor = "#808BA4"; + scrollBarMargin = 4; + scrollBarEnterAttrs = { rx: 20, ry: 3, width: 0, height: 0 }; + titlePad = 2; + itemGap = 5; + dfltFillHeight = 6; + itemMinHeight = 16; + itemHeightPad = 3; + } + }); + // src/components/legend/attributes.js var require_attributes9 = __commonJS({ "src/components/legend/attributes.js"(exports, module) { "use strict"; var fontAttrs = require_font_attributes(); var colorAttrs = require_attributes3(); + var { dfltFillHeight: dfltFillHeight2 } = (init_constants3(), __toCommonJS(constants_exports3)); module.exports = { // not really a 'subplot' attribute container, // but this is the flag we use to denote attributes that @@ -33989,6 +34083,12 @@ var Plotly = (() => { dflt: 30, editType: "legend" }, + itemheight: { + valType: "number", + min: dfltFillHeight2, + dflt: dfltFillHeight2, + editType: "legend" + }, itemclick: { valType: "enumerated", values: ["toggle", "toggleothers", false], @@ -34266,6 +34366,7 @@ var Plotly = (() => { coerce("indentation"); coerce("itemsizing"); coerce("itemwidth"); + coerce("itemheight"); coerce("itemclick"); coerce("itemdoubleclick"); const groupClick = coerce("groupclick"); @@ -34586,31 +34687,6 @@ var Plotly = (() => { } }); - // src/components/legend/constants.ts - var constants_exports3 = {}; - __export(constants_exports3, { - itemGap: () => itemGap, - scrollBarColor: () => scrollBarColor, - scrollBarEnterAttrs: () => scrollBarEnterAttrs, - scrollBarMargin: () => scrollBarMargin, - scrollBarMinHeight: () => scrollBarMinHeight, - scrollBarWidth: () => scrollBarWidth, - titlePad: () => titlePad - }); - var scrollBarWidth, scrollBarMinHeight, scrollBarColor, scrollBarMargin, scrollBarEnterAttrs, titlePad, itemGap; - var init_constants3 = __esm({ - "src/components/legend/constants.ts"() { - "use strict"; - scrollBarWidth = 6; - scrollBarMinHeight = 20; - scrollBarColor = "#808BA4"; - scrollBarMargin = 4; - scrollBarEnterAttrs = { rx: 20, ry: 3, width: 0, height: 0 }; - titlePad = 2; - itemGap = 5; - } - }); - // src/components/legend/get_legend_data.js var require_get_legend_data = __commonJS({ "src/components/legend/get_legend_data.js"(exports, module) { @@ -34855,6 +34931,7 @@ var Plotly = (() => { if (!legend) legend = fullLayout.legend; var constantItemSizing = legend.itemsizing === "constant"; var itemWidth = legend.itemwidth; + var itemHeight = legend.itemheight; var centerPos = (itemWidth + constants2.itemGap * 2) / 2; var centerTransform = strTranslate(centerPos, 0); var boundLineWidth = function(mlw, cont, max, cst) { @@ -34932,7 +35009,9 @@ var Plotly = (() => { var fill = this3.select(".legendfill").selectAll("path").data(showFill || showGradientFill ? [d] : []); fill.enter().append("path").classed("js-fill", true); fill.exit().remove(); - fill.attr("d", pathStart + "h" + itemWidth + "v6h-" + itemWidth + "z").call(fillStyle); + fill.attr("d", pathStart + "h" + itemWidth + "v" + itemHeight + "h-" + itemWidth + "z").call(fillStyle); + const fillShiftY = showFill || showGradientFill ? (constants2.dfltFillHeight - itemHeight) / 2 : 0; + this3.selectAll("g.legendfill, g.legendlines, g.legendsymbols").attr("transform", fillShiftY ? strTranslate(0, fillShiftY) : null); if (showLine || showGradientLine) { var lw = boundLineWidth(void 0, trace.line, MAX_LINE_WIDTH, CST_LINE_WIDTH); tMod = Lib.minExtend(trace, { line: { width: lw } }); @@ -35092,14 +35171,18 @@ var Plotly = (() => { var fillColor = mcc || d0.mc || marker.color; var markerPattern = marker.pattern; var pAttr = Drawing.getPatternAttr; - var patternShape = markerPattern && (pAttr(markerPattern.shape, 0, "") || pAttr(markerPattern.path, 0, "")); + let patternIndex = 0; + if (legend._inHover && d0._distinct && d0.index != null) { + patternIndex = d0.index; + } + const patternShape = markerPattern && (pAttr(markerPattern.shape, patternIndex, "") || pAttr(markerPattern.path, patternIndex, "")); if (patternShape) { - var patternBGColor = pAttr(markerPattern.bgcolor, 0, null); - var patternFGColor = pAttr(markerPattern.fgcolor, 0, null); + const patternBGColor = pAttr(markerPattern.bgcolor, patternIndex, null); + const patternFGColor = pAttr(markerPattern.fgcolor, patternIndex, null); var patternFGOpacity = markerPattern.fgopacity; - var patternSize = dimAttr(markerPattern.size, 8, 10); - var patternSolidity = dimAttr(markerPattern.solidity, 0.5, 1); - var patternID = "legend-" + trace.uid; + const patternSize = legend._inHover ? dimAttr(pAttr(markerPattern.size, patternIndex, 8), 8, 10) : dimAttr(markerPattern.size, 8, 10); + const patternSolidity = legend._inHover ? dimAttr(pAttr(markerPattern.solidity, patternIndex, 0.5), 0.5, 1) : dimAttr(markerPattern.solidity, 0.5, 1); + const patternID = legend._inHover ? `hover-${trace.uid}-${patternIndex}` : `legend-${trace.uid}`; p.call( Drawing.pattern, "legend", @@ -35921,7 +36004,7 @@ var Plotly = (() => { }); } function textLayout(s, g, gd, legendObj, aTitle) { - if (legendObj._inHover) s.attr("data-notex", true); + if (legendObj._inHover) s.attr("data-notex", svgTextUtils.isPureTex(s.text()) ? null : true); svgTextUtils.convertToTspans(s, gd, function() { computeTextDimensions(g, gd, legendObj, aTitle); }); @@ -35996,7 +36079,8 @@ var Plotly = (() => { legendObj._titleHeight = height; } else { legendItem.lineHeight = lineHeight; - legendItem.height = Math.max(height, 16) + 3; + const fillItemHeight = constants2.itemMinHeight + legendObj.itemheight - constants2.dfltFillHeight; + legendItem.height = Math.max(height, constants2.itemMinHeight, fillItemHeight) + constants2.itemHeightPad; legendItem.width = width; } } @@ -36188,6 +36272,13 @@ var Plotly = (() => { } Drawing.setRect(traceToggle, 0, -h / 2, w, h); }); + if (legendObj._inHover) { + const textRight = legendObj._width - bw2 - itemGap2 - titleSize[0]; + traces.each(function(d) { + if (d[0].textAlign !== "right") return; + d3.select(this).select("." + legendId + "text").attr("text-anchor", "end").call(svgTextUtils.positionText, textRight); + }); + } var titleEl = scrollBox.select("." + legendId + "titletext"); if (titleEl.node()) { horizontalAlignTitle(titleEl, legendObj, bw); @@ -36391,28 +36482,47 @@ var Plotly = (() => { outerContainer: opts.outerContainer || opts.container }); var hoverLabel = hoverText.hoverLabels; - var tooltipSpacing = 5; - var lastBottomY = 0; - var anchor = 0; - hoverLabel.sort(function(a, b) { - return a.y0 - b.y0; - }).each(function(d, i) { - var topY = d.y0 - d.by / 2; - if (topY - tooltipSpacing < lastBottomY) { - d.offset = lastBottomY - topY + tooltipSpacing; - } else { - d.offset = 0; - } - lastBottomY = topY + d.by + d.offset; - if (i === opts.anchorIndex || 0) anchor = d.offset; - }).each(function(d) { - d.offset -= anchor; - }); + function fixVerticalOverlap() { + var tooltipSpacing = 5; + var lastBottomY = 0; + var anchor = 0; + hoverLabel.sort(function(a, b) { + return a.y0 - b.y0; + }).each(function(d, i) { + var topY = d.y0 - d.by / 2; + if (topY - tooltipSpacing < lastBottomY) { + d.offset = lastBottomY - topY + tooltipSpacing; + } else { + d.offset = 0; + } + lastBottomY = topY + d.by + d.offset; + if (i === opts.anchorIndex || 0) anchor = d.offset; + }).each(function(d) { + d.offset -= anchor; + }); + } var scaleX = gd._fullLayout._invScaleX; var scaleY = gd._fullLayout._invScaleY; + fixVerticalOverlap(); alignHoverText(hoverLabel, rotateLabels, scaleX, scaleY); + if (hoverText.mathjaxPromise) { + hoverText.mathjaxPromise.then(function() { + fixVerticalOverlap(); + alignHoverText(hoverLabel, rotateLabels, scaleX, scaleY); + hoverLabel.each(function() { + var g = d3.select(this); + svgTextUtils.repositionMathGroup(g.select("text.nums")); + svgTextUtils.repositionMathGroup(g.select("text.name")); + }); + }); + } return multiHover ? hoverLabel : hoverLabel.node(); }; + function canSpikeToNonHoveredPoint(xa, ya) { + return Boolean( + (xa == null ? void 0 : xa.showspikes) && xa.spikesnap !== "hovered data" || (ya == null ? void 0 : ya.showspikes) && ya.spikesnap !== "hovered data" + ); + } function _hover(gd, evt, subplot, noHoverEvent, eventTarget) { if (!subplot) subplot = "xy"; if (typeof subplot === "string") { @@ -36425,6 +36535,7 @@ var Plotly = (() => { var plots = fullLayout._plots || []; var plotinfo = plots[subplot]; var hasCartesian = fullLayout._has("cartesian"); + var hasTernary = fullLayout._has("ternary"); var hovermode = evt.hovermode || fullLayout.hovermode; var hovermodeHasX = (hovermode || "").charAt(0) === "x"; var hovermodeHasY = (hovermode || "").charAt(0) === "y"; @@ -36487,6 +36598,7 @@ var Plotly = (() => { hLinePoint: null, vLinePoint: null }; + const ternarySpikePoints = {}; var hasOneHorizontalTrace = false; if (Array.isArray(evt)) { hovermode = "array"; @@ -36683,42 +36795,56 @@ var Plotly = (() => { hoverData.splice(0, closedataPreviousLength); distance = hoverData[0].distance; } - if (hasCartesian && spikedistance !== 0) { - if (hoverData.length === 0) { - pointData.distance = spikedistance; - pointData.index = false; - var closestPoints = trace._module.hoverPoints(pointData, xval, yval, "closest", { - hoverLayer: fullLayout._hoverlayer - }); - if (closestPoints) { - closestPoints = closestPoints.filter(function(point) { - return point.spikeDistance <= spikedistance; - }); + if (Registry.traceIs(trace, "ternary") && spikedistance !== 0) { + const ternary = pointData.subplot; + const needsClosestPoint = ["aaxis", "baxis", "caxis"].some((name4) => ternary[name4].showspikes && ternary[name4].spikesnap !== "hovered data"); + if (needsClosestPoint) { + let spikePoint = newPoints == null ? void 0 : newPoints[0]; + if (!Number.isFinite(spikePoint == null ? void 0 : spikePoint.spikeDistance)) { + const spikeData = Lib.extendFlat({}, pointData, { distance: spikedistance, index: false }); + const closestPoints2 = trace._module.hoverPoints(spikeData, xval, yval, "closest"); + spikePoint = closestPoints2 && closestPoints2[0]; } - if (closestPoints && closestPoints.length) { - var tmpPoint; - var closestVPoints = closestPoints.filter(function(point) { - return point.xa.showspikes && point.xa.spikesnap !== "hovered data"; - }); - if (closestVPoints.length) { - var closestVPt = closestVPoints[0]; - if (isNumeric2(closestVPt.x0) && isNumeric2(closestVPt.y0)) { - tmpPoint = fillSpikePoint(closestVPt); - if (!spikePoints.vLinePoint || spikePoints.vLinePoint.spikeDistance > tmpPoint.spikeDistance) { - spikePoints.vLinePoint = tmpPoint; - } + const previousSpikePoint = ternarySpikePoints[subplotId]; + if (spikePoint && spikePoint.index !== void 0 && spikePoint.index !== false && spikePoint.spikeDistance <= spikedistance && (!previousSpikePoint || spikePoint.spikeDistance < previousSpikePoint.spikeDistance)) { + ternarySpikePoints[subplotId] = spikePoint; + } + } + } + if (hasCartesian && hoverData.length === 0 && spikedistance !== 0 && canSpikeToNonHoveredPoint(pointData.xa, pointData.ya)) { + pointData.distance = spikedistance; + pointData.index = false; + var closestPoints = trace._module.hoverPoints(pointData, xval, yval, "closest", { + hoverLayer: fullLayout._hoverlayer + }); + if (closestPoints) { + closestPoints = closestPoints.filter(function(point) { + return point.spikeDistance <= spikedistance; + }); + } + if (closestPoints == null ? void 0 : closestPoints.length) { + var tmpPoint; + var closestVPoints = closestPoints.filter(function(point) { + return point.xa.showspikes && point.xa.spikesnap !== "hovered data"; + }); + if (closestVPoints.length) { + var closestVPt = closestVPoints[0]; + if (isNumeric2(closestVPt.x0) && isNumeric2(closestVPt.y0)) { + tmpPoint = fillSpikePoint(closestVPt); + if (!spikePoints.vLinePoint || spikePoints.vLinePoint.spikeDistance > tmpPoint.spikeDistance) { + spikePoints.vLinePoint = tmpPoint; } } - var closestHPoints = closestPoints.filter(function(point) { - return point.ya.showspikes && point.ya.spikesnap !== "hovered data"; - }); - if (closestHPoints.length) { - var closestHPt = closestHPoints[0]; - if (isNumeric2(closestHPt.x0) && isNumeric2(closestHPt.y0)) { - tmpPoint = fillSpikePoint(closestHPt); - if (!spikePoints.hLinePoint || spikePoints.hLinePoint.spikeDistance > tmpPoint.spikeDistance) { - spikePoints.hLinePoint = tmpPoint; - } + } + var closestHPoints = closestPoints.filter(function(point) { + return point.ya.showspikes && point.ya.spikesnap !== "hovered data"; + }); + if (closestHPoints.length) { + var closestHPt = closestHPoints[0]; + if (isNumeric2(closestHPt.x0) && isNumeric2(closestHPt.y0)) { + tmpPoint = fillSpikePoint(closestHPt); + if (!spikePoints.hLinePoint || spikePoints.hLinePoint.spikeDistance > tmpPoint.spikeDistance) { + spikePoints.hLinePoint = tmpPoint; } } } @@ -36727,6 +36853,18 @@ var Plotly = (() => { } } findHoverPoints(); + function updateTernarySpikelines() { + fullLayout._hoverlayer.selectAll(".ternary-spikes").remove(); + if (spikedistance === 0) return; + for (let i2 = 0; i2 < subplots.length; i2++) { + const id2 = subplots[i2]; + const ternary = fullLayout[id2] && fullLayout[id2]._subplot; + if (ternary && ternary.drawSpikelines) { + const point = hoverData.find((d) => d.trace.subplot === id2 && d.index !== void 0 && d.index !== false && d.spikeDistance <= spikedistance); + ternary.drawSpikelines(point, ternarySpikePoints[id2], xvalArray && xvalArray[i2], yvalArray && yvalArray[i2]); + } + } + } function selectClosestPoint(pointsData, spikedistance2, spikeOnWinning2) { var resultPoint = null; var minDistance = Infinity; @@ -36816,6 +36954,7 @@ var Plotly = (() => { emitHover([]); gd._hoverAnywhereActive = true; } + if (hasTernary) updateTernarySpikelines(); return result; } if (hasCartesian) { @@ -36823,6 +36962,7 @@ var Plotly = (() => { createSpikelines(gd, spikePoints, spikelineOpts); } } + if (hasTernary) updateTernarySpikelines(); if (helpers.isXYhover(_mode) && hoverData[0].length !== 0 && hoverData[0].trace.type !== "splom") { var winningPoint = hoverData[0]; if (multipleHoverPoints[winningPoint.trace.type]) { @@ -36912,6 +37052,18 @@ var Plotly = (() => { if (!helpers.isUnifiedHover(hovermode)) { hoverAvoidOverlaps(hoverLabels, rotateLabels, fullLayout, hoverText.commonLabelBoundingBox); alignHoverText(hoverLabels, rotateLabels, fullLayout._invScaleX, fullLayout._invScaleY); + if (hoverText.mathjaxPromise) { + hoverText.mathjaxPromise.then(function() { + if (gd._hoverdata !== newhoverdata) return; + hoverAvoidOverlaps(hoverLabels, rotateLabels, fullLayout, hoverText.commonLabelBoundingBox); + alignHoverText(hoverLabels, rotateLabels, fullLayout._invScaleX, fullLayout._invScaleY); + hoverLabels.each(function() { + var g = d3.select(this); + svgTextUtils.repositionMathGroup(g.select("text.nums")); + svgTextUtils.repositionMathGroup(g.select("text.name")); + }); + }); + } } if (eventTarget && eventTarget.tagName) { var hasClickToShow = Registry.getComponentMethod("annotations", "hasClickToShow")(gd, newhoverdata); @@ -36945,6 +37097,9 @@ var Plotly = (() => { return [d.trace.index, d.index, d.x0, d.y0, d.name, d.attr, d.xa ? d.xa._id : "", d.ya ? d.ya._id : ""].join(","); } var EXTRA_STRING_REGEX = /([\s\S]*)<\/extra>/; + function getHoverTextBBox(gd, textSel) { + return getBoundingClientRect(gd, svgTextUtils.getMathOrTextNode(textSel)); + } function createHoverText(hoverData, opts) { var gd = opts.gd; var fullLayout = gd._fullLayout; @@ -36955,6 +37110,7 @@ var Plotly = (() => { var outerContainer = opts.outerContainer; var commonLabelOpts = opts.commonLabelOpts || {}; if (hoverData.length === 0) return [[]]; + var mathjaxPromises = []; var fontFamily = opts.fontFamily || constants2.HOVERFONT; var fontSize = opts.fontSize || constants2.HOVERFONTSIZE; var fontWeight = opts.fontWeight || fullLayout.font.weight; @@ -37010,9 +37166,7 @@ var Plotly = (() => { var lpath = Lib.ensureSingle(label, "path", "", function(s) { s.style({ "stroke-width": "1px" }); }); - var ltext = Lib.ensureSingle(label, "text", "", function(s) { - s.attr("data-notex", 1); - }); + var ltext = Lib.ensureSingle(label, "text", ""); var commonBgColor = commonLabelOpts.bgcolor || Color.defaultLine; var commonStroke = commonLabelOpts.bordercolor || Color.contrast(commonBgColor); var contrastColor = Color.contrast(commonBgColor); @@ -37032,100 +37186,122 @@ var Plotly = (() => { fill: commonBgColor, stroke: commonStroke }); - ltext.text(t0).call(Drawing.font, commonLabelFont).call(svgTextUtils.positionText, 0, 0).call(svgTextUtils.convertToTspans, gd); - label.attr("transform", ""); - var tbb2 = getBoundingClientRect(gd, ltext.node()); - var lx2, ly2; - if (hovermode === "x") { - var topsign = xa.side === "top" ? "-" : ""; - ltext.attr("text-anchor", "middle").call( - svgTextUtils.positionText, - 0, - xa.side === "top" ? outerTop - tbb2.bottom - HOVERARROWSIZE2 - HOVERTEXTPAD2 : outerTop - tbb2.top + HOVERARROWSIZE2 + HOVERTEXTPAD2 - ); - lx2 = xa._offset + (c0.x0 + c0.x1) / 2; - ly2 = ya._offset + (xa.side === "top" ? 0 : ya._length); - var halfWidth = tbb2.width / 2 + HOVERTEXTPAD2; - var tooltipMidX = lx2; - if (lx2 < halfWidth) { - tooltipMidX = halfWidth; - } else if (lx2 > fullLayout.width - halfWidth) { - tooltipMidX = fullLayout.width - halfWidth; - } - lpath.attr( - "d", - "M" + (lx2 - tooltipMidX) + ",0L" + (lx2 - tooltipMidX + HOVERARROWSIZE2) + "," + topsign + HOVERARROWSIZE2 + "H" + halfWidth + "v" + topsign + (HOVERTEXTPAD2 * 2 + tbb2.height) + "H" + -halfWidth + "V" + topsign + HOVERARROWSIZE2 + "H" + (lx2 - tooltipMidX - HOVERARROWSIZE2) + "Z" - ); - lx2 = tooltipMidX; - commonLabelRect.minX = lx2 - halfWidth; - commonLabelRect.maxX = lx2 + halfWidth; - if (xa.side === "top") { - commonLabelRect.minY = ly2 - (HOVERTEXTPAD2 * 2 + tbb2.height); - commonLabelRect.maxY = ly2 - HOVERTEXTPAD2; - } else { - commonLabelRect.minY = ly2 + HOVERTEXTPAD2; - commonLabelRect.maxY = ly2 + (HOVERTEXTPAD2 * 2 + tbb2.height); - } - } else { - var anchor; - var sgn; - var leftsign; - if (ya.side === "right") { - anchor = "start"; - sgn = 1; - leftsign = ""; - lx2 = xa._offset + xa._length; - } else { - anchor = "end"; - sgn = -1; - leftsign = "-"; - lx2 = xa._offset; - } - ly2 = ya._offset + (c0.y0 + c0.y1) / 2; - ltext.attr("text-anchor", anchor); - lpath.attr( - "d", - "M0,0L" + leftsign + HOVERARROWSIZE2 + "," + HOVERARROWSIZE2 + "V" + (HOVERTEXTPAD2 + tbb2.height / 2) + "h" + leftsign + (HOVERTEXTPAD2 * 2 + tbb2.width) + "V-" + (HOVERTEXTPAD2 + tbb2.height / 2) + "H" + leftsign + HOVERARROWSIZE2 + "V-" + HOVERARROWSIZE2 + "Z" - ); - commonLabelRect.minY = ly2 - (HOVERTEXTPAD2 + tbb2.height / 2); - commonLabelRect.maxY = ly2 + (HOVERTEXTPAD2 + tbb2.height / 2); - if (ya.side === "right") { - commonLabelRect.minX = lx2 + HOVERARROWSIZE2; - commonLabelRect.maxX = lx2 + HOVERARROWSIZE2 + (HOVERTEXTPAD2 * 2 + tbb2.width); - } else { - commonLabelRect.minX = lx2 - HOVERARROWSIZE2 - (HOVERTEXTPAD2 * 2 + tbb2.width); - commonLabelRect.maxX = lx2 - HOVERARROWSIZE2; - } - var halfHeight = tbb2.height / 2; - var lty = outerTop - tbb2.top - halfHeight; - var clipId = "clip" + fullLayout._uid + "commonlabel" + ya._id; - var clipPath; - if (lx2 < tbb2.width + 2 * HOVERTEXTPAD2 + HOVERARROWSIZE2) { - clipPath = "M-" + (HOVERARROWSIZE2 + HOVERTEXTPAD2) + "-" + halfHeight + "h-" + (tbb2.width - HOVERTEXTPAD2) + "V" + halfHeight + "h" + (tbb2.width - HOVERTEXTPAD2) + "Z"; - var ltx = tbb2.width - lx2 + HOVERTEXTPAD2; - svgTextUtils.positionText(ltext, ltx, lty); - if (anchor === "end") { - ltext.selectAll("tspan").each(function() { - var s = d3.select(this); - var dummy = Drawing.tester.append("text").text(s.text()).call(Drawing.font, commonLabelFont); - var dummyBB = getBoundingClientRect(gd, dummy.node()); - if (Math.round(dummyBB.width) < Math.round(tbb2.width)) { - s.attr("x", ltx - dummyBB.width); + var commonLabelTex = svgTextUtils.isPureTex(String(t0)); + var onCommonLabelReady; + if (commonLabelTex) { + mathjaxPromises.push( + new Promise(function(resolve) { + onCommonLabelReady = function() { + if (!ltext.node().parentNode) { + resolve(); + return; } - dummy.remove(); - }); + positionCommonLabel(); + svgTextUtils.repositionMathGroup(ltext); + resolve(); + }; + }) + ); + } + ltext.text(t0).call(Drawing.font, commonLabelFont).attr("data-notex", commonLabelTex ? null : 1).call(svgTextUtils.positionText, 0, 0).call(svgTextUtils.convertToTspans, gd, onCommonLabelReady); + positionCommonLabel(); + function positionCommonLabel() { + label.attr("transform", ""); + svgTextUtils.positionText(ltext, 0, 0); + svgTextUtils.repositionMathGroup(ltext); + var tbb2 = getHoverTextBBox(gd, ltext); + var lx2, ly2; + if (hovermode === "x") { + var topsign = xa.side === "top" ? "-" : ""; + ltext.attr("text-anchor", "middle").call( + svgTextUtils.positionText, + 0, + xa.side === "top" ? outerTop - tbb2.bottom - HOVERARROWSIZE2 - HOVERTEXTPAD2 : outerTop - tbb2.top + HOVERARROWSIZE2 + HOVERTEXTPAD2 + ); + lx2 = xa._offset + (c0.x0 + c0.x1) / 2; + ly2 = ya._offset + (xa.side === "top" ? 0 : ya._length); + var halfWidth = tbb2.width / 2 + HOVERTEXTPAD2; + var tooltipMidX = lx2; + if (lx2 < halfWidth) { + tooltipMidX = halfWidth; + } else if (lx2 > fullLayout.width - halfWidth) { + tooltipMidX = fullLayout.width - halfWidth; + } + lpath.attr( + "d", + "M" + (lx2 - tooltipMidX) + ",0L" + (lx2 - tooltipMidX + HOVERARROWSIZE2) + "," + topsign + HOVERARROWSIZE2 + "H" + halfWidth + "v" + topsign + (HOVERTEXTPAD2 * 2 + tbb2.height) + "H" + -halfWidth + "V" + topsign + HOVERARROWSIZE2 + "H" + (lx2 - tooltipMidX - HOVERARROWSIZE2) + "Z" + ); + lx2 = tooltipMidX; + commonLabelRect.minX = lx2 - halfWidth; + commonLabelRect.maxX = lx2 + halfWidth; + if (xa.side === "top") { + commonLabelRect.minY = ly2 - (HOVERTEXTPAD2 * 2 + tbb2.height); + commonLabelRect.maxY = ly2 - HOVERTEXTPAD2; + } else { + commonLabelRect.minY = ly2 + HOVERTEXTPAD2; + commonLabelRect.maxY = ly2 + (HOVERTEXTPAD2 * 2 + tbb2.height); } } else { - svgTextUtils.positionText(ltext, sgn * (HOVERTEXTPAD2 + HOVERARROWSIZE2), lty); - clipPath = null; + var anchor; + var sgn; + var leftsign; + if (ya.side === "right") { + anchor = "start"; + sgn = 1; + leftsign = ""; + lx2 = xa._offset + xa._length; + } else { + anchor = "end"; + sgn = -1; + leftsign = "-"; + lx2 = xa._offset; + } + ly2 = ya._offset + (c0.y0 + c0.y1) / 2; + ltext.attr("text-anchor", anchor); + lpath.attr( + "d", + "M0,0L" + leftsign + HOVERARROWSIZE2 + "," + HOVERARROWSIZE2 + "V" + (HOVERTEXTPAD2 + tbb2.height / 2) + "h" + leftsign + (HOVERTEXTPAD2 * 2 + tbb2.width) + "V-" + (HOVERTEXTPAD2 + tbb2.height / 2) + "H" + leftsign + HOVERARROWSIZE2 + "V-" + HOVERARROWSIZE2 + "Z" + ); + commonLabelRect.minY = ly2 - (HOVERTEXTPAD2 + tbb2.height / 2); + commonLabelRect.maxY = ly2 + (HOVERTEXTPAD2 + tbb2.height / 2); + if (ya.side === "right") { + commonLabelRect.minX = lx2 + HOVERARROWSIZE2; + commonLabelRect.maxX = lx2 + HOVERARROWSIZE2 + (HOVERTEXTPAD2 * 2 + tbb2.width); + } else { + commonLabelRect.minX = lx2 - HOVERARROWSIZE2 - (HOVERTEXTPAD2 * 2 + tbb2.width); + commonLabelRect.maxX = lx2 - HOVERARROWSIZE2; + } + var halfHeight = tbb2.height / 2; + var lty = outerTop - tbb2.top - halfHeight; + var clipId = "clip" + fullLayout._uid + "commonlabel" + ya._id; + var clipPath; + if (lx2 < tbb2.width + 2 * HOVERTEXTPAD2 + HOVERARROWSIZE2) { + clipPath = "M-" + (HOVERARROWSIZE2 + HOVERTEXTPAD2) + "-" + halfHeight + "h-" + (tbb2.width - HOVERTEXTPAD2) + "V" + halfHeight + "h" + (tbb2.width - HOVERTEXTPAD2) + "Z"; + var ltx = tbb2.width - lx2 + HOVERTEXTPAD2; + svgTextUtils.positionText(ltext, ltx, lty); + if (anchor === "end") { + ltext.selectAll("tspan").each(function() { + var s = d3.select(this); + var dummy = Drawing.tester.append("text").text(s.text()).call(Drawing.font, commonLabelFont); + var dummyBB = getBoundingClientRect(gd, dummy.node()); + if (Math.round(dummyBB.width) < Math.round(tbb2.width)) { + s.attr("x", ltx - dummyBB.width); + } + dummy.remove(); + }); + } + } else { + svgTextUtils.positionText(ltext, sgn * (HOVERTEXTPAD2 + HOVERARROWSIZE2), lty); + clipPath = null; + } + var textClip = fullLayout._topclips.selectAll("#" + clipId).data(clipPath ? [0] : []); + textClip.enter().append("clipPath").attr("id", clipId).append("path"); + textClip.exit().remove(); + textClip.select("path").attr("d", clipPath); + Drawing.setClipUrl(ltext, clipPath ? clipId : null, gd); } - var textClip = fullLayout._topclips.selectAll("#" + clipId).data(clipPath ? [0] : []); - textClip.enter().append("clipPath").attr("id", clipId).append("path"); - textClip.exit().remove(); - textClip.select("path").attr("d", clipPath); - Drawing.setClipUrl(ltext, clipPath ? clipId : null, gd); + label.attr("transform", strTranslate(lx2, ly2)); } - label.attr("transform", strTranslate(lx2, ly2)); }); if (helpers.isUnifiedHover(hovermode)) { container.selectAll("g.hovertext").remove(); @@ -37332,6 +37508,23 @@ var Plotly = (() => { var texts2 = getHoverLabelText(d, showCommonLabel, hovermode, fullLayout, t0, g); var text2 = texts2[0]; var name5 = texts2[1]; + var hasName = !!(name5 && name5 !== text2); + var numsTex = svgTextUtils.isPureTex(text2); + var nameTex = hasName && svgTextUtils.isPureTex(name5); + var pendingLabelParts = (numsTex ? 1 : 0) + (nameTex ? 1 : 0); + var onLabelPartReady; + if (pendingLabelParts) { + mathjaxPromises.push( + new Promise(function(resolve) { + onLabelPartReady = function() { + if (--pendingLabelParts === 0) { + if (g.node().parentNode) finalizePosition(); + resolve(); + } + }; + }) + ); + } var tx = g.select("text.nums").call(Drawing.font, { family: d.fontFamily || fontFamily, size: d.fontSize || fontSize, @@ -37342,11 +37535,9 @@ var Plotly = (() => { textcase: d.fontTextcase || fontTextcase, lineposition: d.fontLineposition || fontLineposition, shadow: d.fontShadow || fontShadow - }).text(text2).attr("data-notex", 1).call(svgTextUtils.positionText, 0, 0).call(svgTextUtils.convertToTspans, gd); + }).text(text2).attr("data-notex", numsTex ? null : 1).call(svgTextUtils.positionText, 0, 0).call(svgTextUtils.convertToTspans, gd, numsTex ? onLabelPartReady : void 0); var tx2 = g.select("text.name"); - var tx2width = 0; - var tx2height = 0; - if (name5 && name5 !== text2) { + if (hasName) { tx2.call(Drawing.font, { family: d.fontFamily || fontFamily, size: d.fontSize || fontSize, @@ -37357,75 +37548,90 @@ var Plotly = (() => { textcase: d.fontTextcase || fontTextcase, lineposition: d.fontLineposition || fontLineposition, shadow: d.fontShadow || fontShadow - }).text(name5).attr("data-notex", 1).call(svgTextUtils.positionText, 0, 0).call(svgTextUtils.convertToTspans, gd); - var t2bb = getBoundingClientRect(gd, tx2.node()); - tx2width = t2bb.width + 2 * HOVERTEXTPAD2; - tx2height = t2bb.height + 2 * HOVERTEXTPAD2; + }).text(name5).attr("data-notex", nameTex ? null : 1).call(svgTextUtils.positionText, 0, 0).call(svgTextUtils.convertToTspans, gd, nameTex ? onLabelPartReady : void 0); } else { tx2.remove(); g.select("rect").remove(); } - g.select("path").style({ - fill: numsColor, - stroke: contrastColor - }); - var htx = d.xa._offset + (d.x0 + d.x1) / 2; - var hty = d.ya._offset + (d.y0 + d.y1) / 2; - var dx = Math.abs(d.x1 - d.x0); - var dy = Math.abs(d.y1 - d.y0); - var tbb2 = getBoundingClientRect(gd, tx.node()); - var tbbWidth = tbb2.width / fullLayout._invScaleX; - var tbbHeight = tbb2.height / fullLayout._invScaleY; - d.ty0 = (outerTop - tbb2.top) / fullLayout._invScaleY; - d.bx = tbbWidth + 2 * HOVERTEXTPAD2; - d.by = Math.max(tbbHeight + 2 * HOVERTEXTPAD2, tx2height); - d.anchor = "start"; - d.txwidth = tbbWidth; - d.tx2width = tx2width; - d.offset = 0; - var txTotalWidth = (tbbWidth + HOVERARROWSIZE2 + HOVERTEXTPAD2 + tx2width) * fullLayout._invScaleX; - var anchorStartOK, anchorEndOK; - if (rotateLabels) { - d.pos = htx; - anchorStartOK = hty + dy / 2 + txTotalWidth <= outerHeight; - anchorEndOK = hty - dy / 2 - txTotalWidth >= 0; - if ((d.idealAlign === "top" || !anchorStartOK) && anchorEndOK) { - hty -= dy / 2; - d.anchor = "end"; - } else if (anchorStartOK) { - hty += dy / 2; - d.anchor = "start"; + finalizePosition(); + function finalizePosition() { + g.attr("transform", ""); + tx.call(svgTextUtils.positionText, 0, 0); + svgTextUtils.repositionMathGroup(tx); + if (hasName) { + tx2.call(svgTextUtils.positionText, 0, 0); + svgTextUtils.repositionMathGroup(tx2); + } + g.select("path").style({ + fill: numsColor, + stroke: contrastColor + }); + var htx = d.xa._offset + (d.x0 + d.x1) / 2; + var hty = d.ya._offset + (d.y0 + d.y1) / 2; + var dx = Math.abs(d.x1 - d.x0); + var dy = Math.abs(d.y1 - d.y0); + var tx2width = 0; + var tx2height = 0; + if (hasName) { + var t2bb = getHoverTextBBox(gd, tx2); + tx2width = t2bb.width + 2 * HOVERTEXTPAD2; + tx2height = t2bb.height + 2 * HOVERTEXTPAD2; + } + var tbb2 = getHoverTextBBox(gd, tx); + var tbbWidth = tbb2.width / fullLayout._invScaleX; + var tbbHeight = tbb2.height / fullLayout._invScaleY; + d.ty0 = (outerTop - tbb2.top) / fullLayout._invScaleY; + d.bx = tbbWidth + 2 * HOVERTEXTPAD2; + d.by = Math.max(tbbHeight + 2 * HOVERTEXTPAD2, tx2height); + d.anchor = "start"; + d.txwidth = tbbWidth; + d.tx2width = tx2width; + d.offset = 0; + var txTotalWidth = (tbbWidth + HOVERARROWSIZE2 + HOVERTEXTPAD2 + tx2width) * fullLayout._invScaleX; + var anchorStartOK, anchorEndOK; + if (rotateLabels) { + d.pos = htx; + anchorStartOK = hty + dy / 2 + txTotalWidth <= outerHeight; + anchorEndOK = hty - dy / 2 - txTotalWidth >= 0; + if ((d.idealAlign === "top" || !anchorStartOK) && anchorEndOK) { + hty -= dy / 2; + d.anchor = "end"; + } else if (anchorStartOK) { + hty += dy / 2; + d.anchor = "start"; + } else { + d.anchor = "middle"; + } + d.crossPos = hty; } else { - d.anchor = "middle"; + d.pos = hty; + anchorStartOK = htx + dx / 2 + txTotalWidth <= outerWidth; + anchorEndOK = htx - dx / 2 - txTotalWidth >= 0; + if ((d.idealAlign === "left" || !anchorStartOK) && anchorEndOK) { + htx -= dx / 2; + d.anchor = "end"; + } else if (anchorStartOK) { + htx += dx / 2; + d.anchor = "start"; + } else { + d.anchor = "middle"; + var txHalfWidth = txTotalWidth / 2; + var overflowR = htx + txHalfWidth - outerWidth; + var overflowL = htx - txHalfWidth; + if (overflowR > 0) htx -= overflowR; + if (overflowL < 0) htx += -overflowL; + } + d.crossPos = htx; } - d.crossPos = hty; - } else { - d.pos = hty; - anchorStartOK = htx + dx / 2 + txTotalWidth <= outerWidth; - anchorEndOK = htx - dx / 2 - txTotalWidth >= 0; - if ((d.idealAlign === "left" || !anchorStartOK) && anchorEndOK) { - htx -= dx / 2; - d.anchor = "end"; - } else if (anchorStartOK) { - htx += dx / 2; - d.anchor = "start"; - } else { - d.anchor = "middle"; - var txHalfWidth = txTotalWidth / 2; - var overflowR = htx + txHalfWidth - outerWidth; - var overflowL = htx - txHalfWidth; - if (overflowR > 0) htx -= overflowR; - if (overflowL < 0) htx += -overflowL; - } - d.crossPos = htx; - } - tx.attr("text-anchor", d.anchor); - if (tx2width) tx2.attr("text-anchor", d.anchor); - g.attr("transform", strTranslate(htx, hty) + (rotateLabels ? strRotate(YANGLE2) : "")); + tx.attr("text-anchor", d.anchor); + if (tx2width) tx2.attr("text-anchor", d.anchor); + g.attr("transform", strTranslate(htx, hty) + (rotateLabels ? strRotate(YANGLE2) : "")); + } }); return { hoverLabels, - commonLabelBoundingBox: commonLabelRect + commonLabelBoundingBox: commonLabelRect, + mathjaxPromise: mathjaxPromises.length ? Promise.all(mathjaxPromises) : null }; } function getHoverLabelText(d, showCommonLabel, hovermode, fullLayout, t0, g) { @@ -48788,7 +48994,7 @@ var Plotly = (() => { } function marginPushersAgain() { if (!Plots.didMarginChange(oldMargins, fullLayout._size)) return; - return Lib.syncOrAsync([marginPushers, subroutines.layoutStyles], gd); + return marginPushers(); } function positionAndAutorange() { if (!recalc) { @@ -65265,7 +65471,7 @@ var Plotly = (() => { obj.percentPrevious = cdi.difR; obj.percentPreviousLabel = Lib.formatPercent(cdi.difR); obj.percentTotal = cdi.sumR; - obj.percenTotalLabel = Lib.formatPercent(cdi.sumR); + obj.percentTotalLabel = Lib.formatPercent(cdi.sumR); } var customdata = Lib.castOption(trace, cdi.i, "customdata"); if (customdata) obj.customdata = customdata; @@ -72712,6 +72918,7 @@ var Plotly = (() => { var _ = Lib._; var Color = require_color(); var Drawing = require_drawing(); + var svgTextUtils = require_svg_text_utils(); var setConvert = require_set_convert(); var extendFlat2 = require_extend().extendFlat; var Plots = require_plots(); @@ -72830,6 +73037,94 @@ var Plotly = (() => { toplevel.order(); }; var whRatio = Math.sqrt(4 / 3); + proto.drawSpikelines = function(hoverPoint, spikePoint, cursorXVal, cursorYVal) { + const fullLayout = this.graphDiv._fullLayout; + const axes = [this.aaxis, this.baxis, this.caxis]; + if (!axes.some((axis) => axis.showspikes)) return; + const span = this.sum - axes[0].min - axes[1].min - axes[2].min; + const contrastColor = Color.combine(fullLayout[this.id].bgcolor, fullLayout.paper_bgcolor); + let layer; + for (let i = 0; i < axes.length; i++) { + const axis = axes[i]; + if (!axis.showspikes) continue; + const snap = axis.spikesnap; + const selectedPoint = snap === "hovered data" ? hoverPoint : spikePoint || hoverPoint; + if (!selectedPoint) continue; + const snapToCursor = snap === "cursor"; + if (snapToCursor && (!Number.isFinite(cursorXVal) || !Number.isFinite(cursorYVal))) { + continue; + } + const calcPoint = selectedPoint.cd[selectedPoint.index]; + const a = snapToCursor ? cursorYVal : calcPoint.a; + const b = snapToCursor ? (this.sum - cursorYVal - cursorXVal) / 2 : calcPoint.b; + const c = snapToCursor ? (this.sum - cursorYVal + cursorXVal) / 2 : calcPoint.c; + if (!this.xaxis.isPtWithinRange({ a, b, c })) continue; + if (!layer) { + layer = fullLayout._hoverlayer.insert("g", ":first-child").attr("class", "ternary-spikes").attr("transform", strTranslate(this.x0, this.y0)).style("pointer-events", "none"); + } + const fa = Lib.constrain((a - axes[0].min) / span, 0, 1); + const fb = Lib.constrain((b - axes[1].min) / span, 0, 1); + const fc = Lib.constrain((c - axes[2].min) / span, 0, 1); + const x = this.w * (fc + fa / 2); + const y = this.h * (1 - fa); + const [axisX, axisY, acrossX, acrossY] = [ + [this.w * fa / 2, y, this.w * (1 - fa / 2), y], + // aaxis + [this.w * (1 - fb), this.h, this.w * (1 - fb) / 2, this.h * fb], + // baxis + [this.w * (1 + fc) / 2, this.h * fc, this.w * fc, this.h] + // caxis + ][i]; + const pointColor = selectedPoint.color || axis.color; + const dfltColor = Color.wcagContrast(pointColor, contrastColor) < 1.5 ? Color.contrast(contrastColor) : pointColor; + const color = axis.spikecolor || dfltColor; + const thickness = axis.spikethickness; + const mode = axis.spikemode; + if (mode.indexOf("toaxis") !== -1 || mode.indexOf("across") !== -1) { + const across = mode.indexOf("across") !== -1; + layer.append("line").attr({ + class: "spikeline", + x1: across ? acrossX : x, + y1: across ? acrossY : y, + x2: axisX, + y2: axisY, + "stroke-width": thickness, + "stroke-dasharray": Drawing.dashStyle(axis.spikedash, thickness) + }).call(Color.stroke, color); + } + if (mode.indexOf("marker") !== -1) { + layer.append("circle").attr({ + class: "spikeline", + cx: axisX, + cy: axisY, + r: thickness + }).call(Color.fill, color); + } + const label = layer.append("g").attr("class", "ternary-spikelabel").attr("transform", strTranslate(axisX, axisY)); + const text = label.append("text").attr("text-anchor", "middle").call(Drawing.font, axis.tickfont || fullLayout.font).text(Axes.tickText(axis, [a, b, c][i], true).text).call(svgTextUtils.convertToTspans, this.graphDiv); + const box = Drawing.bBox(text.node()); + const width = box.width + 6; + const height = box.height + 4; + const arrow = Math.min(6, height / 2, width / 2); + const left = i === 0 ? -arrow - width : i === 1 ? -width / 2 : 0; + const top = i === 0 ? -height / 2 : i === 1 ? arrow : -height; + let outline; + if (i === 0) { + outline = `M0,0L${-arrow},${-arrow}V${top}H${left}v${height}H${-arrow}V${arrow}Z`; + } else if (i === 1) { + outline = `M0,0L${arrow},${arrow}H${width / 2}v${height}H${left}V${arrow}H${-arrow}Z`; + } else { + outline = `M0,0V${top}h${width}V0Z`; + } + label.insert("path", "text").attr("d", outline).call(Color.fill, color); + text.call( + svgTextUtils.positionText, + left + width / 2 - box.left - box.width / 2, + top + height / 2 - box.top - box.height / 2 + ); + text.call(Color.fill, Color.contrast(color)); + } + }; proto.adjustLayout = function(ternaryLayout, graphSize) { var _this = this; var domain = ternaryLayout.domain; @@ -73342,7 +73637,14 @@ var Plotly = (() => { valType: "number", dflt: 0, min: 0 - } + }, + // spikelines + showspikes: extendFlat2({}, axesAttrs.showspikes, {}), + spikecolor: axesAttrs.spikecolor, + spikethickness: axesAttrs.spikethickness, + spikedash: axesAttrs.spikedash, + spikemode: axesAttrs.spikemode, + spikesnap: axesAttrs.spikesnap }; var attrs = module.exports = overrideAll({ domain: domainAttrs({ name: "ternary" }), @@ -73458,6 +73760,9 @@ var Plotly = (() => { function coerce(attr, dflt) { return Lib.coerce(containerIn, containerOut, axAttrs, attr, dflt); } + function coerce2(attr, dflt) { + return Lib.coerce2(containerIn, containerOut, axAttrs, attr, dflt); + } coerce("uirevision", ternaryLayoutOut.uirevision); containerOut.type = "linear"; var dfltColor = coerce("color"); @@ -73506,6 +73811,19 @@ var Plotly = (() => { }); coerce("hoverformat"); coerce("layer"); + var spikecolor = coerce2("spikecolor"); + var spikethickness = coerce2("spikethickness"); + var spikedash = coerce2("spikedash"); + var spikemode = coerce2("spikemode"); + var spikesnap = coerce2("spikesnap"); + var showSpikes = coerce("showspikes", !!spikecolor || !!spikethickness || !!spikedash || !!spikemode || !!spikesnap); + if (!showSpikes) { + delete containerOut.spikecolor; + delete containerOut.spikethickness; + delete containerOut.spikedash; + delete containerOut.spikemode; + delete containerOut.spikesnap; + } } } }); diff --git a/dist/plotly-cartesian.min.js b/dist/plotly-cartesian.min.js index 11ced8ef9b4..e384d849bf3 100644 --- a/dist/plotly-cartesian.min.js +++ b/dist/plotly-cartesian.min.js @@ -1,5 +1,5 @@ /** -* plotly.js (cartesian - minified) v4.1.2 +* plotly.js (cartesian - minified) v4.2.0 * Copyright 2012-2026, Plotly, Inc. * All rights reserved. * Licensed under the MIT license @@ -12,93 +12,93 @@ root.moduleName = factory(); } } (typeof self !== "undefined" ? self : this, () => { -"use strict";var Plotly=(()=>{var jce=Object.create;var $v=Object.defineProperty,Wce=Object.defineProperties,Xce=Object.getOwnPropertyDescriptor,Zce=Object.getOwnPropertyDescriptors,$ce=Object.getOwnPropertyNames,F1=Object.getOwnPropertySymbols,Jce=Object.getPrototypeOf,s5=Object.prototype.hasOwnProperty,zS=Object.prototype.propertyIsEnumerable;var FS=(e,r,t)=>r in e?$v(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,At=(e,r)=>{for(var t in r||(r={}))s5.call(r,t)&&FS(e,t,r[t]);if(F1)for(var t of F1(r))zS.call(r,t)&&FS(e,t,r[t]);return e},Vt=(e,r)=>Wce(e,Zce(r));var NS=(e,r)=>{var t={};for(var a in e)s5.call(e,a)&&r.indexOf(a)<0&&(t[a]=e[a]);if(e!=null&&F1)for(var a of F1(e))r.indexOf(a)<0&&zS.call(e,a)&&(t[a]=e[a]);return t};var St=(e,r,t)=>()=>{if(t)throw t[0];try{return e&&(r=e(e=0)),r}catch(a){throw t=[a],a}};var z=(e,r)=>()=>{try{return r||e((r={exports:{}}).exports,r),r.exports}catch(t){throw r=0,t}},qt=(e,r)=>{for(var t in r)$v(e,t,{get:r[t],enumerable:!0})},IS=(e,r,t,a)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of $ce(r))!s5.call(e,n)&&n!==t&&$v(e,n,{get:()=>r[n],enumerable:!(a=Xce(r,n))||a.enumerable});return e};var xc=(e,r,t)=>(t=e!=null?jce(Jce(e)):{},IS(r||!e||!e.__esModule?$v(t,"default",{value:e,enumerable:!0}):t,e)),ze=e=>IS($v({},"__esModule",{value:!0}),e);var BS=(e,r,t)=>new Promise((a,n)=>{var i=s=>{try{l(t.next(s))}catch(u){n(u)}},o=s=>{try{l(t.throw(s))}catch(u){n(u)}},l=s=>s.done?a(s.value):Promise.resolve(s.value).then(i,o);l((t=t.apply(e,r)).next())});var Jv=z(OS=>{"use strict";OS.version="4.1.2"});var US=z((HS,z1)=>{(function(r,t,a){t[r]=t[r]||a(),typeof z1!="undefined"&&z1.exports&&(z1.exports=t[r])})("Promise",typeof window!="undefined"?window:HS,function(){"use strict";var r,t,a,n=Object.prototype.toString,i=typeof setImmediate!="undefined"?function(A){return setImmediate(A)}:setTimeout;try{Object.defineProperty({},"x",{}),r=function(A,w,x,_){return Object.defineProperty(A,w,{value:x,writable:!0,configurable:_!==!1})}}catch(b){r=function(w,x,_){return w[x]=_,w}}a=(function(){var A,w,x;function _(k,T){this.fn=k,this.self=T,this.next=void 0}return{add:function(T,q){x=new _(T,q),w?w.next=x:A=x,w=x,x=void 0},drain:function(){var T=A;for(A=w=t=void 0;T;)T.fn.call(T.self),T=T.next}}})();function o(b,A){a.add(b,A),t||(t=i(a.drain))}function l(b){var A,w=typeof b;return b!=null&&(w=="object"||w=="function")&&(A=b.then),typeof A=="function"?A:!1}function s(){for(var b=0;b0&&o(s,w))}catch(x){c.call(new d(w),x)}}}function c(b){var A=this;A.triggered||(A.triggered=!0,A.def&&(A=A.def),A.msg=b,A.state=2,A.chain.length>0&&o(s,A))}function v(b,A,w,x){for(var _=0;_{(function(){var e={version:"3.8.2"},r=[].slice,t=function(h){return r.call(h)},a=self.document;function n(h){return h&&(h.ownerDocument||h.document||h).documentElement}function i(h){return h&&(h.ownerDocument&&h.ownerDocument.defaultView||h.document&&h||h.defaultView)}if(a)try{t(a.documentElement.childNodes)[0].nodeType}catch(h){t=function(g){for(var M=g.length,S=new Array(M);M--;)S[M]=g[M];return S}}if(Date.now||(Date.now=function(){return+new Date}),a)try{a.createElement("DIV").style.setProperty("opacity",0,"")}catch(h){var o=this.Element.prototype,l=o.setAttribute,s=o.setAttributeNS,u=this.CSSStyleDeclaration.prototype,f=u.setProperty;o.setAttribute=function(g,M){l.call(this,g,M+"")},o.setAttributeNS=function(g,M,S){s.call(this,g,M,S+"")},u.setProperty=function(g,M,S){f.call(this,g,M+"",S)}}e.ascending=c;function c(h,g){return hg?1:h>=g?0:NaN}e.descending=function(h,g){return gh?1:g>=h?0:NaN},e.min=function(h,g){var M=-1,S=h.length,L,D;if(arguments.length===1){for(;++M=D){L=D;break}for(;++MD&&(L=D)}else{for(;++M=D){L=D;break}for(;++MD&&(L=D)}return L},e.max=function(h,g){var M=-1,S=h.length,L,D;if(arguments.length===1){for(;++M=D){L=D;break}for(;++ML&&(L=D)}else{for(;++M=D){L=D;break}for(;++ML&&(L=D)}return L},e.extent=function(h,g){var M=-1,S=h.length,L,D,B;if(arguments.length===1){for(;++M=D){L=B=D;break}for(;++MD&&(L=D),B=D){L=B=D;break}for(;++MD&&(L=D),B1)return B/(H-1)},e.deviation=function(){var h=e.variance.apply(this,arguments);return h&&Math.sqrt(h)};function p(h){return{left:function(g,M,S,L){for(arguments.length<3&&(S=0),arguments.length<4&&(L=g.length);S>>1;h(g[D],M)<0?S=D+1:L=D}return S},right:function(g,M,S,L){for(arguments.length<3&&(S=0),arguments.length<4&&(L=g.length);S>>1;h(g[D],M)>0?L=D:S=D+1}return S}}}var y=p(c);e.bisectLeft=y.left,e.bisect=e.bisectRight=y.right,e.bisector=function(h){return p(h.length===1?function(g,M){return c(h(g),M)}:h)},e.shuffle=function(h,g,M){(S=arguments.length)<3&&(M=h.length,S<2&&(g=0));for(var S=M-g,L,D;S;)D=Math.random()*S--|0,L=h[S+g],h[S+g]=h[D+g],h[D+g]=L;return h},e.permute=function(h,g){for(var M=g.length,S=new Array(M);M--;)S[M]=h[g[M]];return S},e.pairs=function(h){for(var g=0,M=h.length-1,S,L=h[0],D=new Array(M<0?0:M);g=0;)for(B=h[g],M=B.length;--M>=0;)D[--L]=B[M];return D};var b=Math.abs;e.range=function(h,g,M){if(arguments.length<3&&(M=1,arguments.length<2&&(g=h,h=0)),(g-h)/M===1/0)throw new Error("infinite range");var S=[],L=A(b(M)),D=-1,B;if(h*=L,g*=L,M*=L,M<0)for(;(B=h+M*++D)>g;)S.push(B/L);else for(;(B=h+M*++D)=g.length)return L?L.call(h,H):S?H.sort(S):H;for(var Z=-1,K=H.length,Q=g[X++],pe,we,ee,le=new x,ve;++Z=g.length)return F;var X=[],Z=M[H++];return F.forEach(function(K,Q){X.push({key:K,values:B(Q,H)})}),Z?X.sort(function(K,Q){return Z(K.key,Q.key)}):X}return h.map=function(F,H){return D(H,F,0)},h.entries=function(F){return B(D(e.map,F,0),0)},h.key=function(F){return g.push(F),h},h.sortKeys=function(F){return M[g.length-1]=F,h},h.sortValues=function(F){return S=F,h},h.rollup=function(F){return L=F,h},h},e.set=function(h){var g=new I;if(h)for(var M=0,S=h.length;M=0&&(S=h.slice(M+1),h=h.slice(0,M)),h)return arguments.length<2?this[h].on(S):this[h].on(S,g);if(arguments.length===2){if(g==null)for(h in this)this.hasOwnProperty(h)&&this[h].on(S,null);return this}};function j(h){var g=[],M=new x;function S(){for(var L=g,D=-1,B=L.length,F;++D=0&&(M=h.slice(0,g))!=="xmlns"&&(h=h.slice(g+1)),Ce.hasOwnProperty(M)?{space:Ce[M],local:h}:h}},oe.attr=function(h,g){if(arguments.length<2){if(typeof h=="string"){var M=this.node();return h=e.ns.qualify(h),h.local?M.getAttributeNS(h.space,h.local):M.getAttribute(h)}for(g in h)this.each(Me(g,h[g]));return this}return this.each(Me(h,g))};function Me(h,g){h=e.ns.qualify(h);function M(){this.removeAttribute(h)}function S(){this.removeAttributeNS(h.space,h.local)}function L(){this.setAttribute(h,g)}function D(){this.setAttributeNS(h.space,h.local,g)}function B(){var H=g.apply(this,arguments);H==null?this.removeAttribute(h):this.setAttribute(h,H)}function F(){var H=g.apply(this,arguments);H==null?this.removeAttributeNS(h.space,h.local):this.setAttributeNS(h.space,h.local,H)}return g==null?h.local?S:M:typeof g=="function"?h.local?F:B:h.local?D:L}function Le(h){return h.trim().replace(/\s+/g," ")}oe.classed=function(h,g){if(arguments.length<2){if(typeof h=="string"){var M=this.node(),S=(h=Ie(h)).length,L=-1;if(g=M.classList){for(;++L=0;)(D=M[S])&&(L&&L!==D.nextSibling&&L.parentNode.insertBefore(D,L),L=D);return this},oe.sort=function(h){h=xe.apply(this,arguments);for(var g=-1,M=this.length;++g=g&&(g=L+1);!(H=B[g])&&++g0&&(h=h.slice(0,L));var B=Ue.get(h);B&&(h=B,D=Oe);function F(){var Z=this[S];Z&&(this.removeEventListener(h,Z,Z.$),delete this[S])}function H(){var Z=D(g,t(arguments));F.call(this),this.addEventListener(h,this[S]=Z,Z.$=M),Z._=g}function X(){var Z=new RegExp("^__on([^.]+)"+e.requote(h)+"$"),K;for(var Q in this)if(K=Q.match(Z)){var pe=this[Q];this.removeEventListener(K[1],pe,pe.$),delete this[Q]}}return L?g?H:F:g?V:X}var Ue=e.map({mouseenter:"mouseover",mouseleave:"mouseout"});a&&Ue.forEach(function(h){"on"+h in a&&Ue.remove(h)});function $e(h,g){return function(M){var S=e.event;e.event=M,g[0]=this.__data__;try{h.apply(this,g)}finally{e.event=S}}}function Oe(h,g){var M=$e(h,g);return function(S){var L=this,D=S.relatedTarget;(!D||D!==L&&!(D.compareDocumentPosition(L)&8))&&M.call(L,S)}}var We,ar=0;function or(h){var g=".dragsuppress-"+ ++ar,M="click"+g,S=e.select(i(h)).on("touchmove"+g,J).on("dragstart"+g,J).on("selectstart"+g,J);if(We==null&&(We="onselectstart"in h?!1:Y(h.style,"userSelect")),We){var L=n(h).style,D=L[We];L[We]="none"}return function(B){if(S.on(g,null),We&&(L[We]=D),B){var F=function(){S.on(M,null)};S.on(M,function(){J(),F()},!0),setTimeout(F,0)}}}e.mouse=function(h){return Ee(h,te())};var sr=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;function Ee(h,g){g.changedTouches&&(g=g.changedTouches[0]);var M=h.ownerSVGElement||h;if(M.createSVGPoint){var S=M.createSVGPoint();if(sr<0){var L=i(h);if(L.scrollX||L.scrollY){M=e.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var D=M[0][0].getScreenCTM();sr=!(D.f||D.e),M.remove()}}return sr?(S.x=g.pageX,S.y=g.pageY):(S.x=g.clientX,S.y=g.clientY),S=S.matrixTransform(h.getScreenCTM().inverse()),[S.x,S.y]}var B=h.getBoundingClientRect();return[g.clientX-B.left-h.clientLeft,g.clientY-B.top-h.clientTop]}e.touch=function(h,g,M){if(arguments.length<3&&(M=g,g=te().changedTouches),g){for(var S=0,L=g.length,D;S0?1:h<0?-1:0}function Kr(h,g,M){return(g[0]-h[0])*(M[1]-h[1])-(g[1]-h[1])*(M[0]-h[0])}function Qr(h){return h>1?0:h<-1?yr:Math.acos(h)}function yt(h){return h>1?ne:h<-1?-ne:Math.asin(h)}function gt(h){return((h=Math.exp(h))-1/h)/2}function Et(h){return((h=Math.exp(h))+1/h)/2}function aa(h){return((h=Math.exp(2*h))-1)/(h+1)}function $a(h){return(h=Math.sin(h/2))*h}var na=Math.SQRT2,Ja=2,hn=4;e.interpolateZoom=function(h,g){var M=h[0],S=h[1],L=h[2],D=g[0],B=g[1],F=g[2],H=D-M,X=B-S,Z=H*H+X*X,K,Q;if(Z0&&(nr=nr.transition().duration(B)),nr.call(Ae.event)}function xr(){le&&le.domain(ee.range().map(function(nr){return(nr-h.x)/h.k}).map(ee.invert)),_e&&_e.domain(ve.range().map(function(nr){return(nr-h.y)/h.k}).map(ve.invert))}function _r(nr){F++||nr({type:"zoomstart"})}function Nr(nr){xr(),nr({type:"zoom",scale:h.k,translate:[h.x,h.y]})}function Ar(nr){--F||(nr({type:"zoomend"}),M=null)}function Er(){var nr=this,Ir=we.of(nr,arguments),Or=0,lt=e.select(i(nr)).on(X,rn).on(Z,An),Kt=de(e.mouse(nr)),La=or(nr);D1.call(nr),_r(Ir);function rn(){Or=1,dr(e.mouse(nr),Kt),Nr(Ir)}function An(){lt.on(X,null).on(Z,null),La(Or),Ar(Ir)}}function ot(){var nr=this,Ir=we.of(nr,arguments),Or={},lt=0,Kt,La=".zoom-"+e.event.changedTouches[0].identifier,rn="touchmove"+La,An="touchend"+La,Bn=[],Tn=e.select(nr),Wn=or(nr);Xn(),_r(Ir),Tn.on(H,null).on(Q,Xn);function dn(){var To=e.touches(nr);return Kt=h.k,To.forEach(function(tn){tn.identifier in Or&&(Or[tn.identifier]=de(tn))}),To}function Xn(){var To=e.event.target;e.select(To).on(rn,Lu).on(An,Vce),Bn.push(To);for(var tn=e.event.changedTouches,zi=0,el=tn.length;zi1){var Cu=Ni[0],ys=Ni[1],R1=Cu[0]-ys[0],RS=Cu[1]-ys[1];lt=R1*R1+RS*RS}}function Lu(){var To=e.touches(nr),tn,zi,el,Ni;D1.call(nr);for(var bc=0,Cu=To.length;bc1?1:g,M=M<0?0:M>1?1:M,L=M<=.5?M*(1+g):M+g-M*g,S=2*M-L;function D(F){return F>360?F-=360:F<0&&(F+=360),F<60?S+(L-S)*F/60:F<180?L:F<240?S+(L-S)*(240-F)/60:S}function B(F){return Math.round(D(F)*255)}return new ca(B(h+120),B(h),B(h-120))}e.hcl=it;function it(h,g,M){return this instanceof it?(this.h=+h,this.c=+g,void(this.l=+M)):arguments.length<2?h instanceof it?new it(h.h,h.c,h.l):h instanceof Xt?cc(h.l,h.a,h.b):cc((h=p1((h=e.rgb(h)).r,h.g,h.b)).l,h.a,h.b):new it(h,g,M)}var ia=it.prototype=new Vr;ia.brighter=function(h){return new it(this.h,this.c,Math.min(100,this.l+Pt*(arguments.length?h:1)))},ia.darker=function(h){return new it(this.h,this.c,Math.max(0,this.l-Pt*(arguments.length?h:1)))},ia.rgb=function(){return zn(this.h,this.c,this.l).rgb()};function zn(h,g,M){return isNaN(h)&&(h=0),isNaN(g)&&(g=0),new Xt(M,Math.cos(h*=ge)*g,Math.sin(h)*g)}e.lab=Xt;function Xt(h,g,M){return this instanceof Xt?(this.l=+h,this.a=+g,void(this.b=+M)):arguments.length<2?h instanceof Xt?new Xt(h.l,h.a,h.b):h instanceof it?zn(h.h,h.c,h.l):p1((h=ca(h)).r,h.g,h.b):new Xt(h,g,M)}var Pt=18,oa=.95047,la=1,dt=1.08883,Ka=Xt.prototype=new Vr;Ka.brighter=function(h){return new Xt(Math.min(100,this.l+Pt*(arguments.length?h:1)),this.a,this.b)},Ka.darker=function(h){return new Xt(Math.max(0,this.l-Pt*(arguments.length?h:1)),this.a,this.b)},Ka.rgb=function(){return Yt(this.l,this.a,this.b)};function Yt(h,g,M){var S=(h+16)/116,L=S+g/500,D=S-M/200;return L=Nn(L)*oa,S=Nn(S)*la,D=Nn(D)*dt,new ca(ci(3.2404542*L-1.5371385*S-.4985314*D),ci(-.969266*L+1.8760108*S+.041556*D),ci(.0556434*L-.2040259*S+1.0572252*D))}function cc(h,g,M){return h>0?new it(Math.atan2(M,g)*Ne,Math.sqrt(g*g+M*M),h):new it(NaN,NaN,h)}function Nn(h){return h>.206893034?h*h*h:(h-4/29)/7.787037}function wo(h){return h>.008856?Math.pow(h,1/3):7.787037*h+4/29}function ci(h){return Math.round(255*(h<=.00304?12.92*h:1.055*Math.pow(h,1/2.4)-.055))}e.rgb=ca;function ca(h,g,M){return this instanceof ca?(this.r=~~h,this.g=~~g,void(this.b=~~M)):arguments.length<2?h instanceof ca?new ca(h.r,h.g,h.b):h1(""+h,ca,kt):new ca(h,g,M)}function vc(h){return new ca(h>>16,h>>8&255,h&255)}function ds(h){return vc(h)+""}var In=ca.prototype=new Vr;In.brighter=function(h){h=Math.pow(.7,arguments.length?h:1);var g=this.r,M=this.g,S=this.b,L=30;return!g&&!M&&!S?new ca(L,L,L):(g&&g>4,S=S>>4|S,L=H&240,L=L>>4|L,D=H&15,D=D<<4|D):h.length===7&&(S=(H&16711680)>>16,L=(H&65280)>>8,D=H&255)),g(S,L,D))}function d1(h,g,M){var S=Math.min(h/=255,g/=255,M/=255),L=Math.max(h,g,M),D=L-S,B,F,H=(L+S)/2;return D?(F=H<.5?D/(L+S):D/(2-L-S),h==L?B=(g-M)/D+(g0&&H<1?0:B),new ht(B,F,H)}function p1(h,g,M){h=Bv(h),g=Bv(g),M=Bv(M);var S=wo((.4124564*h+.3575761*g+.1804375*M)/oa),L=wo((.2126729*h+.7151522*g+.072175*M)/la),D=wo((.0193339*h+.119192*g+.9503041*M)/dt);return Xt(116*L-16,500*(S-L),200*(L-D))}function Bv(h){return(h/=255)<=.04045?h/12.92:Math.pow((h+.055)/1.055,2.4)}function Ov(h){var g=parseFloat(h);return h.charAt(h.length-1)==="%"?Math.round(g*2.55):g}var kr=e.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});kr.forEach(function(h,g){kr.set(h,vc(g))});function Mr(h){return typeof h=="function"?h:function(){return h}}e.functor=Mr,e.xhr=pt(O);function pt(h){return function(g,M,S){return arguments.length===2&&typeof M=="function"&&(S=M,M=null),fr(g,M,h,S)}}function fr(h,g,M,S){var L={},D=e.dispatch("beforesend","progress","load","error"),B={},F=new XMLHttpRequest,H=null;self.XDomainRequest&&!("withCredentials"in F)&&/^(http(s)?:)?\/\//.test(h)&&(F=new XDomainRequest),"onload"in F?F.onload=F.onerror=X:F.onreadystatechange=function(){F.readyState>3&&X()};function X(){var Z=F.status,K;if(!Z&&It(F)||Z>=200&&Z<300||Z===304){try{K=M.call(L,F)}catch(Q){D.error.call(L,Q);return}D.load.call(L,K)}else D.error.call(L,F)}return F.onprogress=function(Z){var K=e.event;e.event=Z;try{D.progress.call(L,F)}finally{e.event=K}},L.header=function(Z,K){return Z=(Z+"").toLowerCase(),arguments.length<2?B[Z]:(K==null?delete B[Z]:B[Z]=K+"",L)},L.mimeType=function(Z){return arguments.length?(g=Z==null?null:Z+"",L):g},L.responseType=function(Z){return arguments.length?(H=Z,L):H},L.response=function(Z){return M=Z,L},["get","post"].forEach(function(Z){L[Z]=function(){return L.send.apply(L,[Z].concat(t(arguments)))}}),L.send=function(Z,K,Q){if(arguments.length===2&&typeof K=="function"&&(Q=K,K=null),F.open(Z,h,!0),g!=null&&!("accept"in B)&&(B.accept=g+",*/*"),F.setRequestHeader)for(var pe in B)F.setRequestHeader(pe,B[pe]);return g!=null&&F.overrideMimeType&&F.overrideMimeType(g),H!=null&&(F.responseType=H),Q!=null&&L.on("error",Q).on("load",function(we){Q(null,we)}),D.beforesend.call(L,F),F.send(K==null?null:K),L},L.abort=function(){return F.abort(),L},e.rebind(L,D,"on"),S==null?L:L.get(wn(S))}function wn(h){return h.length===1?function(g,M){h(g==null?M:null)}:h}function It(h){var g=h.responseType;return g&&g!=="text"?h.response:h.responseText}e.dsv=function(h,g){var M=new RegExp('["'+h+` -]`),S=h.charCodeAt(0);function L(X,Z,K){arguments.length<3&&(K=Z,Z=null);var Q=fr(X,g,Z==null?D:B(Z),K);return Q.row=function(pe){return arguments.length?Q.response((Z=pe)==null?D:B(pe)):Z},Q}function D(X){return L.parse(X.responseText)}function B(X){return function(Z){return L.parse(Z.responseText,X)}}L.parse=function(X,Z){var K;return L.parseRows(X,function(Q,pe){if(K)return K(Q,pe-1);var we=function(ee){for(var le={},ve=Q.length,_e=0;_e=we)return Q;if(_e)return _e=!1,K;var Ve=ee;if(X.charCodeAt(Ve)===34){for(var lr=Ve;lr++{var Kce=Object.create;var $v=Object.defineProperty,Qce=Object.defineProperties,e0e=Object.getOwnPropertyDescriptor,r0e=Object.getOwnPropertyDescriptors,t0e=Object.getOwnPropertyNames,z1=Object.getOwnPropertySymbols,a0e=Object.getPrototypeOf,h5=Object.prototype.hasOwnProperty,GS=Object.prototype.propertyIsEnumerable;var US=(e,r,t)=>r in e?$v(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,At=(e,r)=>{for(var t in r||(r={}))h5.call(r,t)&&US(e,t,r[t]);if(z1)for(var t of z1(r))GS.call(r,t)&&US(e,t,r[t]);return e},Jt=(e,r)=>Qce(e,r0e(r));var YS=(e,r)=>{var t={};for(var a in e)h5.call(e,a)&&r.indexOf(a)<0&&(t[a]=e[a]);if(e!=null&&z1)for(var a of z1(e))r.indexOf(a)<0&&GS.call(e,a)&&(t[a]=e[a]);return t};var Ct=(e,r,t)=>()=>{if(t)throw t[0];try{return e&&(r=e(e=0)),r}catch(a){throw t=[a],a}};var z=(e,r)=>()=>{try{return r||e((r={exports:{}}).exports,r),r.exports}catch(t){throw r=0,t}},Dt=(e,r)=>{for(var t in r)$v(e,t,{get:r[t],enumerable:!0})},VS=(e,r,t,a)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of t0e(r))!h5.call(e,n)&&n!==t&&$v(e,n,{get:()=>r[n],enumerable:!(a=e0e(r,n))||a.enumerable});return e};var wc=(e,r,t)=>(t=e!=null?Kce(a0e(e)):{},VS(r||!e||!e.__esModule?$v(t,"default",{value:e,enumerable:!0}):t,e)),Ne=e=>VS($v({},"__esModule",{value:!0}),e);var jS=(e,r,t)=>new Promise((a,n)=>{var i=s=>{try{l(t.next(s))}catch(u){n(u)}},o=s=>{try{l(t.throw(s))}catch(u){n(u)}},l=s=>s.done?a(s.value):Promise.resolve(s.value).then(i,o);l((t=t.apply(e,r)).next())});var Jv=z(WS=>{"use strict";WS.version="4.2.0"});var ZS=z((XS,N1)=>{(function(r,t,a){t[r]=t[r]||a(),typeof N1!="undefined"&&N1.exports&&(N1.exports=t[r])})("Promise",typeof window!="undefined"?window:XS,function(){"use strict";var r,t,a,n=Object.prototype.toString,i=typeof setImmediate!="undefined"?function(T){return setImmediate(T)}:setTimeout;try{Object.defineProperty({},"x",{}),r=function(T,w,x,_){return Object.defineProperty(T,w,{value:x,writable:!0,configurable:_!==!1})}}catch(b){r=function(w,x,_){return w[x]=_,w}}a=(function(){var T,w,x;function _(k,M){this.fn=k,this.self=M,this.next=void 0}return{add:function(M,S){x=new _(M,S),w?w.next=x:T=x,w=x,x=void 0},drain:function(){var M=T;for(T=w=t=void 0;M;)M.fn.call(M.self),M=M.next}}})();function o(b,T){a.add(b,T),t||(t=i(a.drain))}function l(b){var T,w=typeof b;return b!=null&&(w=="object"||w=="function")&&(T=b.then),typeof T=="function"?T:!1}function s(){for(var b=0;b0&&o(s,w))}catch(x){c.call(new d(w),x)}}}function c(b){var T=this;T.triggered||(T.triggered=!0,T.def&&(T=T.def),T.msg=b,T.state=2,T.chain.length>0&&o(s,T))}function v(b,T,w,x){for(var _=0;_{(function(){var e={version:"3.8.2"},r=[].slice,t=function(h){return r.call(h)},a=self.document;function n(h){return h&&(h.ownerDocument||h.document||h).documentElement}function i(h){return h&&(h.ownerDocument&&h.ownerDocument.defaultView||h.document&&h||h.defaultView)}if(a)try{t(a.documentElement.childNodes)[0].nodeType}catch(h){t=function(g){for(var A=g.length,q=new Array(A);A--;)q[A]=g[A];return q}}if(Date.now||(Date.now=function(){return+new Date}),a)try{a.createElement("DIV").style.setProperty("opacity",0,"")}catch(h){var o=this.Element.prototype,l=o.setAttribute,s=o.setAttributeNS,u=this.CSSStyleDeclaration.prototype,f=u.setProperty;o.setAttribute=function(g,A){l.call(this,g,A+"")},o.setAttributeNS=function(g,A,q){s.call(this,g,A,q+"")},u.setProperty=function(g,A,q){f.call(this,g,A+"",q)}}e.ascending=c;function c(h,g){return hg?1:h>=g?0:NaN}e.descending=function(h,g){return gh?1:g>=h?0:NaN},e.min=function(h,g){var A=-1,q=h.length,L,D;if(arguments.length===1){for(;++A=D){L=D;break}for(;++AD&&(L=D)}else{for(;++A=D){L=D;break}for(;++AD&&(L=D)}return L},e.max=function(h,g){var A=-1,q=h.length,L,D;if(arguments.length===1){for(;++A=D){L=D;break}for(;++AL&&(L=D)}else{for(;++A=D){L=D;break}for(;++AL&&(L=D)}return L},e.extent=function(h,g){var A=-1,q=h.length,L,D,O;if(arguments.length===1){for(;++A=D){L=O=D;break}for(;++AD&&(L=D),O=D){L=O=D;break}for(;++AD&&(L=D),O1)return O/(H-1)},e.deviation=function(){var h=e.variance.apply(this,arguments);return h&&Math.sqrt(h)};function p(h){return{left:function(g,A,q,L){for(arguments.length<3&&(q=0),arguments.length<4&&(L=g.length);q>>1;h(g[D],A)<0?q=D+1:L=D}return q},right:function(g,A,q,L){for(arguments.length<3&&(q=0),arguments.length<4&&(L=g.length);q>>1;h(g[D],A)>0?L=D:q=D+1}return q}}}var m=p(c);e.bisectLeft=m.left,e.bisect=e.bisectRight=m.right,e.bisector=function(h){return p(h.length===1?function(g,A){return c(h(g),A)}:h)},e.shuffle=function(h,g,A){(q=arguments.length)<3&&(A=h.length,q<2&&(g=0));for(var q=A-g,L,D;q;)D=Math.random()*q--|0,L=h[q+g],h[q+g]=h[D+g],h[D+g]=L;return h},e.permute=function(h,g){for(var A=g.length,q=new Array(A);A--;)q[A]=h[g[A]];return q},e.pairs=function(h){for(var g=0,A=h.length-1,q,L=h[0],D=new Array(A<0?0:A);g=0;)for(O=h[g],A=O.length;--A>=0;)D[--L]=O[A];return D};var b=Math.abs;e.range=function(h,g,A){if(arguments.length<3&&(A=1,arguments.length<2&&(g=h,h=0)),(g-h)/A===1/0)throw new Error("infinite range");var q=[],L=T(b(A)),D=-1,O;if(h*=L,g*=L,A*=L,A<0)for(;(O=h+A*++D)>g;)q.push(O/L);else for(;(O=h+A*++D)=g.length)return L?L.call(h,H):q?H.sort(q):H;for(var Z=-1,K=H.length,Q=g[X++],pe,we,ee,fe=new x,ve;++Z=g.length)return F;var X=[],Z=A[H++];return F.forEach(function(K,Q){X.push({key:K,values:O(Q,H)})}),Z?X.sort(function(K,Q){return Z(K.key,Q.key)}):X}return h.map=function(F,H){return D(H,F,0)},h.entries=function(F){return O(D(e.map,F,0),0)},h.key=function(F){return g.push(F),h},h.sortKeys=function(F){return A[g.length-1]=F,h},h.sortValues=function(F){return q=F,h},h.rollup=function(F){return L=F,h},h},e.set=function(h){var g=new B;if(h)for(var A=0,q=h.length;A=0&&(q=h.slice(A+1),h=h.slice(0,A)),h)return arguments.length<2?this[h].on(q):this[h].on(q,g);if(arguments.length===2){if(g==null)for(h in this)this.hasOwnProperty(h)&&this[h].on(q,null);return this}};function Y(h){var g=[],A=new x;function q(){for(var L=g,D=-1,O=L.length,F;++D=0&&(A=h.slice(0,g))!=="xmlns"&&(h=h.slice(g+1)),Ce.hasOwnProperty(A)?{space:Ce[A],local:h}:h}},oe.attr=function(h,g){if(arguments.length<2){if(typeof h=="string"){var A=this.node();return h=e.ns.qualify(h),h.local?A.getAttributeNS(h.space,h.local):A.getAttribute(h)}for(g in h)this.each(Me(g,h[g]));return this}return this.each(Me(h,g))};function Me(h,g){h=e.ns.qualify(h);function A(){this.removeAttribute(h)}function q(){this.removeAttributeNS(h.space,h.local)}function L(){this.setAttribute(h,g)}function D(){this.setAttributeNS(h.space,h.local,g)}function O(){var H=g.apply(this,arguments);H==null?this.removeAttribute(h):this.setAttribute(h,H)}function F(){var H=g.apply(this,arguments);H==null?this.removeAttributeNS(h.space,h.local):this.setAttributeNS(h.space,h.local,H)}return g==null?h.local?q:A:typeof g=="function"?h.local?F:O:h.local?D:L}function Le(h){return h.trim().replace(/\s+/g," ")}oe.classed=function(h,g){if(arguments.length<2){if(typeof h=="string"){var A=this.node(),q=(h=Ee(h)).length,L=-1;if(g=A.classList){for(;++L=0;)(D=A[q])&&(L&&L!==D.nextSibling&&L.parentNode.insertBefore(D,L),L=D);return this},oe.sort=function(h){h=be.apply(this,arguments);for(var g=-1,A=this.length;++g=g&&(g=L+1);!(H=O[g])&&++g0&&(h=h.slice(0,L));var O=Ie.get(h);O&&(h=O,D=Oe);function F(){var Z=this[q];Z&&(this.removeEventListener(h,Z,Z.$),delete this[q])}function H(){var Z=D(g,t(arguments));F.call(this),this.addEventListener(h,this[q]=Z,Z.$=A),Z._=g}function X(){var Z=new RegExp("^__on([^.]+)"+e.requote(h)+"$"),K;for(var Q in this)if(K=Q.match(Z)){var pe=this[Q];this.removeEventListener(K[1],pe,pe.$),delete this[Q]}}return L?g?H:F:g?j:X}var Ie=e.map({mouseenter:"mouseover",mouseleave:"mouseout"});a&&Ie.forEach(function(h){"on"+h in a&&Ie.remove(h)});function We(h,g){return function(A){var q=e.event;e.event=A,g[0]=this.__data__;try{h.apply(this,g)}finally{e.event=q}}}function Oe(h,g){var A=We(h,g);return function(q){var L=this,D=q.relatedTarget;(!D||D!==L&&!(D.compareDocumentPosition(L)&8))&&A.call(L,q)}}var Xe,Qe=0;function _r(h){var g=".dragsuppress-"+ ++Qe,A="click"+g,q=e.select(i(h)).on("touchmove"+g,J).on("dragstart"+g,J).on("selectstart"+g,J);if(Xe==null&&(Xe="onselectstart"in h?!1:G(h.style,"userSelect")),Xe){var L=n(h).style,D=L[Xe];L[Xe]="none"}return function(O){if(q.on(g,null),Xe&&(L[Xe]=D),O){var F=function(){q.on(A,null)};q.on(A,function(){J(),F()},!0),setTimeout(F,0)}}}e.mouse=function(h){return Re(h,re())};var gr=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;function Re(h,g){g.changedTouches&&(g=g.changedTouches[0]);var A=h.ownerSVGElement||h;if(A.createSVGPoint){var q=A.createSVGPoint();if(gr<0){var L=i(h);if(L.scrollX||L.scrollY){A=e.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var D=A[0][0].getScreenCTM();gr=!(D.f||D.e),A.remove()}}return gr?(q.x=g.pageX,q.y=g.pageY):(q.x=g.clientX,q.y=g.clientY),q=q.matrixTransform(h.getScreenCTM().inverse()),[q.x,q.y]}var O=h.getBoundingClientRect();return[g.clientX-O.left-h.clientLeft,g.clientY-O.top-h.clientTop]}e.touch=function(h,g,A){if(arguments.length<3&&(A=g,g=re().changedTouches),g){for(var q=0,L=g.length,D;q0?1:h<0?-1:0}function Gr(h,g,A){return(g[0]-h[0])*(A[1]-h[1])-(g[1]-h[1])*(A[0]-h[0])}function rt(h){return h>1?0:h<-1?cr:Math.acos(h)}function qt(h){return h>1?ie:h<-1?-ie:Math.asin(h)}function gt(h){return((h=Math.exp(h))-1/h)/2}function Ut(h){return((h=Math.exp(h))+1/h)/2}function Bt(h){return((h=Math.exp(2*h))-1)/(h+1)}function Fa(h){return(h=Math.sin(h/2))*h}var kt=Math.SQRT2,Zt=2,$t=4;e.interpolateZoom=function(h,g){var A=h[0],q=h[1],L=h[2],D=g[0],O=g[1],F=g[2],H=D-A,X=O-q,Z=H*H+X*X,K,Q;if(Z0&&(ir=ir.transition().duration(O)),ir.call(Te.event)}function br(){fe&&fe.domain(ee.range().map(function(ir){return(ir-h.x)/h.k}).map(ee.invert)),_e&&_e.domain(ve.range().map(function(ir){return(ir-h.y)/h.k}).map(ve.invert))}function xr(ir){F++||ir({type:"zoomstart"})}function Nr(ir){br(),ir({type:"zoom",scale:h.k,translate:[h.x,h.y]})}function Tr(ir){--F||(ir({type:"zoomend"}),A=null)}function Er(){var ir=this,Ir=we.of(ir,arguments),Or=0,vt=e.select(i(ir)).on(X,nn).on(Z,Mn),ua=de(e.mouse(ir)),Na=_r(ir);E1.call(ir),xr(Ir);function nn(){Or=1,hr(e.mouse(ir),ua),Nr(Ir)}function Mn(){vt.on(X,null).on(Z,null),Na(Or),Tr(Ir)}}function ct(){var ir=this,Ir=we.of(ir,arguments),Or={},vt=0,ua,Na=".zoom-"+e.event.changedTouches[0].identifier,nn="touchmove"+Na,Mn="touchend"+Na,Un=[],kn=e.select(ir),Jn=_r(ir);Kn(),xr(Ir),kn.on(H,null).on(Q,Kn);function mn(){var So=e.touches(ir);return ua=h.k,So.forEach(function(on){on.identifier in Or&&(Or[on.identifier]=de(on))}),So}function Kn(){var So=e.event.target;e.select(So).on(nn,Pu).on(Mn,Jce),Un.push(So);for(var on=e.event.changedTouches,Bi=0,nl=on.length;Bi1){var Ru=Oi[0],_s=Oi[1],F1=Ru[0]-_s[0],HS=Ru[1]-_s[1];vt=F1*F1+HS*HS}}function Pu(){var So=e.touches(ir),on,Bi,nl,Oi;E1.call(ir);for(var _c=0,Ru=So.length;_c1?1:g,A=A<0?0:A>1?1:A,L=A<=.5?A*(1+g):A+g-A*g,q=2*A-L;function D(F){return F>360?F-=360:F<0&&(F+=360),F<60?q+(L-q)*F/60:F<180?L:F<240?q+(L-q)*(240-F)/60:q}function O(F){return Math.round(D(F)*255)}return new ta(O(h+120),O(h),O(h-120))}e.hcl=ft;function ft(h,g,A){return this instanceof ft?(this.h=+h,this.c=+g,void(this.l=+A)):arguments.length<2?h instanceof ft?new ft(h.h,h.c,h.l):h instanceof at?qu(h.l,h.a,h.b):qu((h=m1((h=e.rgb(h)).r,h.g,h.b)).l,h.a,h.b):new ft(h,g,A)}var Ft=ft.prototype=new Ot;Ft.brighter=function(h){return new ft(this.h,this.c,Math.min(100,this.l+bt*(arguments.length?h:1)))},Ft.darker=function(h){return new ft(this.h,this.c,Math.max(0,this.l-bt*(arguments.length?h:1)))},Ft.rgb=function(){return qa(this.h,this.c,this.l).rgb()};function qa(h,g,A){return isNaN(h)&&(h=0),isNaN(g)&&(g=0),new at(A,Math.cos(h*=ye)*g,Math.sin(h)*g)}e.lab=at;function at(h,g,A){return this instanceof at?(this.l=+h,this.a=+g,void(this.b=+A)):arguments.length<2?h instanceof at?new at(h.l,h.a,h.b):h instanceof ft?qa(h.h,h.c,h.l):m1((h=ta(h)).r,h.g,h.b):new at(h,g,A)}var bt=18,ma=.95047,pi=1,nt=1.08883,La=at.prototype=new Ot;La.brighter=function(h){return new at(Math.min(100,this.l+bt*(arguments.length?h:1)),this.a,this.b)},La.darker=function(h){return new at(Math.max(0,this.l-bt*(arguments.length?h:1)),this.a,this.b)},La.rgb=function(){return Wr(this.l,this.a,this.b)};function Wr(h,g,A){var q=(h+16)/116,L=q+g/500,D=q-A/200;return L=Ht(L)*ma,q=Ht(q)*pi,D=Ht(D)*nt,new ta(On(3.2404542*L-1.5371385*q-.4985314*D),On(-.969266*L+1.8760108*q+.041556*D),On(.0556434*L-.2040259*q+1.0572252*D))}function qu(h,g,A){return h>0?new ft(Math.atan2(A,g)*Fe,Math.sqrt(g*g+A*A),h):new ft(NaN,NaN,h)}function Ht(h){return h>.206893034?h*h*h:(h-4/29)/7.787037}function $n(h){return h>.008856?Math.pow(h,1/3):7.787037*h+4/29}function On(h){return Math.round(255*(h<=.00304?12.92*h:1.055*Math.pow(h,1/2.4)-.055))}e.rgb=ta;function ta(h,g,A){return this instanceof ta?(this.r=~~h,this.g=~~g,void(this.b=~~A)):arguments.length<2?h instanceof ta?new ta(h.r,h.g,h.b):d1(""+h,ta,Yr):new ta(h,g,A)}function dc(h){return new ta(h>>16,h>>8&255,h&255)}function gs(h){return dc(h)+""}var Hn=ta.prototype=new Ot;Hn.brighter=function(h){h=Math.pow(.7,arguments.length?h:1);var g=this.r,A=this.g,q=this.b,L=30;return!g&&!A&&!q?new ta(L,L,L):(g&&g>4,q=q>>4|q,L=H&240,L=L>>4|L,D=H&15,D=D<<4|D):h.length===7&&(q=(H&16711680)>>16,L=(H&65280)>>8,D=H&255)),g(q,L,D))}function p1(h,g,A){var q=Math.min(h/=255,g/=255,A/=255),L=Math.max(h,g,A),D=L-q,O,F,H=(L+q)/2;return D?(F=H<.5?D/(L+q):D/(2-L-q),h==L?O=(g-A)/D+(g0&&H<1?0:O),new tr(O,F,H)}function m1(h,g,A){h=Bv(h),g=Bv(g),A=Bv(A);var q=$n((.4124564*h+.3575761*g+.1804375*A)/ma),L=$n((.2126729*h+.7151522*g+.072175*A)/pi),D=$n((.0193339*h+.119192*g+.9503041*A)/nt);return at(116*L-16,500*(q-L),200*(L-D))}function Bv(h){return(h/=255)<=.04045?h/12.92:Math.pow((h+.055)/1.055,2.4)}function Ov(h){var g=parseFloat(h);return h.charAt(h.length-1)==="%"?Math.round(g*2.55):g}var kr=e.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});kr.forEach(function(h,g){kr.set(h,dc(g))});function Mr(h){return typeof h=="function"?h:function(){return h}}e.functor=Mr,e.xhr=yt(N);function yt(h){return function(g,A,q){return arguments.length===2&&typeof A=="function"&&(q=A,A=null),ur(g,A,h,q)}}function ur(h,g,A,q){var L={},D=e.dispatch("beforesend","progress","load","error"),O={},F=new XMLHttpRequest,H=null;self.XDomainRequest&&!("withCredentials"in F)&&/^(http(s)?:)?\/\//.test(h)&&(F=new XDomainRequest),"onload"in F?F.onload=F.onerror=X:F.onreadystatechange=function(){F.readyState>3&&X()};function X(){var Z=F.status,K;if(!Z&&Gt(F)||Z>=200&&Z<300||Z===304){try{K=A.call(L,F)}catch(Q){D.error.call(L,Q);return}D.load.call(L,K)}else D.error.call(L,F)}return F.onprogress=function(Z){var K=e.event;e.event=Z;try{D.progress.call(L,F)}finally{e.event=K}},L.header=function(Z,K){return Z=(Z+"").toLowerCase(),arguments.length<2?O[Z]:(K==null?delete O[Z]:O[Z]=K+"",L)},L.mimeType=function(Z){return arguments.length?(g=Z==null?null:Z+"",L):g},L.responseType=function(Z){return arguments.length?(H=Z,L):H},L.response=function(Z){return A=Z,L},["get","post"].forEach(function(Z){L[Z]=function(){return L.send.apply(L,[Z].concat(t(arguments)))}}),L.send=function(Z,K,Q){if(arguments.length===2&&typeof K=="function"&&(Q=K,K=null),F.open(Z,h,!0),g!=null&&!("accept"in O)&&(O.accept=g+",*/*"),F.setRequestHeader)for(var pe in O)F.setRequestHeader(pe,O[pe]);return g!=null&&F.overrideMimeType&&F.overrideMimeType(g),H!=null&&(F.responseType=H),Q!=null&&L.on("error",Q).on("load",function(we){Q(null,we)}),D.beforesend.call(L,F),F.send(K==null?null:K),L},L.abort=function(){return F.abort(),L},e.rebind(L,D,"on"),q==null?L:L.get(An(q))}function An(h){return h.length===1?function(g,A){h(g==null?A:null)}:h}function Gt(h){var g=h.responseType;return g&&g!=="text"?h.response:h.responseText}e.dsv=function(h,g){var A=new RegExp('["'+h+` +]`),q=h.charCodeAt(0);function L(X,Z,K){arguments.length<3&&(K=Z,Z=null);var Q=ur(X,g,Z==null?D:O(Z),K);return Q.row=function(pe){return arguments.length?Q.response((Z=pe)==null?D:O(pe)):Z},Q}function D(X){return L.parse(X.responseText)}function O(X){return function(Z){return L.parse(Z.responseText,X)}}L.parse=function(X,Z){var K;return L.parseRows(X,function(Q,pe){if(K)return K(Q,pe-1);var we=function(ee){for(var fe={},ve=Q.length,_e=0;_e=we)return Q;if(_e)return _e=!1,K;var Ve=ee;if(X.charCodeAt(Ve)===34){for(var lr=Ve;lr++24?(isFinite(g)&&(clearTimeout(Mu),Mu=setTimeout(Rx,g)),Ri=0):(Ri=1,xk(Rx))}e.timer.flush=function(){_k(),wk()};function _k(){for(var h=Date.now(),g=Qa;g;)h>=g.t&&g.c(h-g.t)&&(g.c=null),g=g.n;return h}function wk(){for(var h,g=Qa,M=1/0;g;)g.c?(g.t=0;--F)ee.push(L[X[K[F]][2]]);for(F=+pe;F1&&Kr(h[M[S-2]],h[M[S-1]],h[L])<=0;)--S;M[S++]=L}return M.slice(0,S)}function Xue(h,g){return h[0]-g[0]||h[1]-g[1]}e.geom.polygon=function(h){return $(h,y1),h};var y1=e.geom.polygon.prototype=[];y1.area=function(){for(var h=-1,g=this.length,M,S=this[g-1],L=0;++hBe)F=F.L;else if(B=g-Kue(F,M),B>Be){if(!F.R){S=F;break}F=F.R}else{D>-Be?(S=F.P,L=F):B>-Be?(S=F,L=F.N):S=L=F;break}var H=Sk(h);if(pc.insert(S,H),!(!S&&!L)){if(S===L){yc(S),L=Sk(S.site),pc.insert(H,L),H.edge=L.edge=Gv(S.site,H.site),mc(S),mc(L);return}if(!L){H.edge=Gv(S.site,H.site);return}yc(S),yc(L);var X=S.site,Z=X.x,K=X.y,Q=h.x-Z,pe=h.y-K,we=L.site,ee=we.x-Z,le=we.y-K,ve=2*(Q*le-pe*ee),_e=Q*Q+pe*pe,Ae=ee*ee+le*le,de={x:(le*_e-pe*Ae)/ve+Z,y:(Q*Ae-ee*_e)/ve+K};g1(L.edge,X,we,de),H.edge=Gv(X,h,null,de),L.edge=Gv(h,we,null,de),mc(S),mc(L)}}function qk(h,g){var M=h.site,S=M.x,L=M.y,D=L-g;if(!D)return S;var B=h.P;if(!B)return-1/0;M=B.site;var F=M.x,H=M.y,X=H-g;if(!X)return F;var Z=F-S,K=1/D-1/X,Q=Z/X;return K?(-Q+Math.sqrt(Q*Q-2*K*(Z*Z/(-2*X)-H+X/2+L-D/2)))/K+S:(S+F)/2}function Kue(h,g){var M=h.N;if(M)return qk(M,g);var S=h.site;return S.y===g?S.x:1/0}function Lk(h){this.site=h,this.edges=[]}Lk.prototype.prepare=function(){for(var h=this.edges,g=h.length,M;g--;)M=h[g].edge,(!M.b||!M.a)&&h.splice(g,1);return h.sort(Ck),h.length};function Que(h){for(var g=h[0][0],M=h[1][0],S=h[0][1],L=h[1][1],D,B,F,H,X=ku,Z=X.length,K,Q,pe,we,ee,le;Z--;)if(K=X[Z],!(!K||!K.prepare()))for(pe=K.edges,we=pe.length,Q=0;QBe||b(H-B)>Be)&&(pe.splice(Q,0,new b1(nfe(K.site,le,b(F-g)Be?{x:g,y:b(D-g)Be?{x:b(B-L)Be?{x:M,y:b(D-M)Be?{x:b(B-S)=-mr)){var Q=H*H+X*X,pe=Z*Z+le*le,we=(le*Q-X*pe)/K,ee=(H*pe-Z*Q)/K,le=ee+F,ve=kk.pop()||new efe;ve.arc=h,ve.site=L,ve.x=we+B,ve.y=le+Math.sqrt(we*we+ee*ee),ve.cy=le,h.circle=ve;for(var _e=null,Ae=Uv._;Ae;)if(ve.y0)){if(ee/=pe,pe<0){if(ee0){if(ee>Q)return;ee>K&&(K=ee)}if(ee=M-F,!(!pe&&ee<0)){if(ee/=pe,pe<0){if(ee>Q)return;ee>K&&(K=ee)}else if(pe>0){if(ee0)){if(ee/=we,we<0){if(ee0){if(ee>Q)return;ee>K&&(K=ee)}if(ee=S-H,!(!we&&ee<0)){if(ee/=we,we<0){if(ee>Q)return;ee>K&&(K=ee)}else if(we>0){if(ee0&&(L.a={x:F+K*pe,y:H+K*we}),Q<1&&(L.b={x:F+Q*pe,y:H+Q*we}),L}}}}}}function tfe(h){for(var g=dc,M=rfe(h[0][0],h[0][1],h[1][0],h[1][1]),S=g.length,L;S--;)L=g[S],(!afe(L,h)||!M(L)||b(L.a.x-L.b.x)=D)return;if(Z>Q){if(!S)S={x:we,y:B};else if(S.y>=F)return;M={x:we,y:F}}else{if(!S)S={x:we,y:F};else if(S.y1)if(Z>Q){if(!S)S={x:(B-ve)/le,y:B};else if(S.y>=F)return;M={x:(F-ve)/le,y:F}}else{if(!S)S={x:(F-ve)/le,y:F};else if(S.y=D)return;M={x:D,y:le*D+ve}}else{if(!S)S={x:D,y:le*D+ve};else if(S.x=Z&&ve.x<=Q&&ve.y>=K&&ve.y<=pe?[[Z,pe],[Q,pe],[Q,K],[Z,K]]:[];_e.point=H[ee]}),X}function F(H){return H.map(function(X,Z){return{x:Math.round(S(X,Z)/Be)*Be,y:Math.round(L(X,Z)/Be)*Be,i:Z}})}return B.links=function(H){return Ox(F(H)).edges.filter(function(X){return X.l&&X.r}).map(function(X){return{source:H[X.l.i],target:H[X.r.i]}})},B.triangles=function(H){var X=[];return Ox(F(H)).cells.forEach(function(Z,K){for(var Q=Z.site,pe=Z.edges.sort(Ck),we=-1,ee=pe.length,le,ve,_e=pe[ee-1].edge,Ae=_e.l===Q?_e.r:_e.l;++weAe&&(Ae=Z.x),Z.y>de&&(de=Z.y),pe.push(Z.x),we.push(Z.y);else for(ee=0;eeAe&&(Ae=Ve),lr>de&&(de=lr),pe.push(Ve),we.push(lr)}var dr=Ae-ve,cr=de-_e;dr>cr?de=_e+dr:Ae=ve+cr;function xr(Ar,Er,ot,va,bt,nr,Ir,Or){if(!(isNaN(ot)||isNaN(va)))if(Ar.leaf){var lt=Ar.x,Kt=Ar.y;if(lt!=null)if(b(lt-ot)+b(Kt-va)<.01)_r(Ar,Er,ot,va,bt,nr,Ir,Or);else{var La=Ar.point;Ar.x=Ar.y=Ar.point=null,_r(Ar,La,lt,Kt,bt,nr,Ir,Or),_r(Ar,Er,ot,va,bt,nr,Ir,Or)}else Ar.x=ot,Ar.y=va,Ar.point=Er}else _r(Ar,Er,ot,va,bt,nr,Ir,Or)}function _r(Ar,Er,ot,va,bt,nr,Ir,Or){var lt=(bt+Ir)*.5,Kt=(nr+Or)*.5,La=ot>=lt,rn=va>=Kt,An=rn<<1|La;Ar.leaf=!1,Ar=Ar.nodes[An]||(Ar.nodes[An]=Pk()),La?bt=lt:Ir=lt,rn?nr=Kt:Or=Kt,xr(Ar,Er,ot,va,bt,nr,Ir,Or)}var Nr=Pk();if(Nr.add=function(Ar){xr(Nr,Ar,+K(Ar,++ee),+Q(Ar,ee),ve,_e,Ae,de)},Nr.visit=function(Ar){jv(Ar,Nr,ve,_e,Ae,de)},Nr.find=function(Ar){return ufe(Nr,Ar[0],Ar[1],ve,_e,Ae,de)},ee=-1,g==null){for(;++eeD||Q>B||pe=Ve,cr=M>=lr,xr=cr<<1|dr,_r=xr+4;xr<_r;++xr)if(Z=de[xr&3])switch(xr&3){case 0:X(Z,K,Q,Ve,lr);break;case 1:X(Z,Ve,Q,pe,lr);break;case 2:X(Z,K,lr,Ve,we);break;case 3:X(Z,Ve,lr,pe,we);break}}})(h,S,L,D,B),H}e.interpolateRgb=Hx;function Hx(h,g){h=e.rgb(h),g=e.rgb(g);var M=h.r,S=h.g,L=h.b,D=g.r-M,B=g.g-S,F=g.b-L;return function(H){return"#"+ps(Math.round(M+D*H))+ps(Math.round(S+B*H))+ps(Math.round(L+F*H))}}e.interpolateObject=Rk;function Rk(h,g){var M={},S={},L;for(L in h)L in g?M[L]=Su(h[L],g[L]):S[L]=h[L];for(L in g)L in h||(S[L]=g[L]);return function(D){for(L in M)S[L]=M[L](D);return S}}e.interpolateNumber=Fl;function Fl(h,g){return h=+h,g=+g,function(M){return h*(1-M)+g*M}}e.interpolateString=Fk;function Fk(h,g){var M=Ux.lastIndex=Gx.lastIndex=0,S,L,D,B=-1,F=[],H=[];for(h=h+"",g=g+"";(S=Ux.exec(h))&&(L=Gx.exec(g));)(D=L.index)>M&&(D=g.slice(M,D),F[B]?F[B]+=D:F[++B]=D),(S=S[0])===(L=L[0])?F[B]?F[B]+=L:F[++B]=L:(F[++B]=null,H.push({i:B,x:Fl(S,L)})),M=Gx.lastIndex;return M=0&&!(S=e.interpolators[M](h,g)););return S}e.interpolators=[function(h,g){var M=typeof g;return(M==="string"?kr.has(g.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(g)?Hx:Fk:g instanceof Vr?Hx:Array.isArray(g)?w1:M==="object"&&isNaN(g)?Rk:Fl)(h,g)}],e.interpolateArray=w1;function w1(h,g){var M=[],S=[],L=h.length,D=g.length,B=Math.min(h.length,g.length),F;for(F=0;F=0?h.slice(0,g):h,S=g>=0?h.slice(g+1):"in";return M=ffe.get(M)||zk,S=cfe.get(S)||O,vfe(S(M.apply(null,r.call(arguments,1))))};function vfe(h){return function(g){return g<=0?0:g>=1?1:h(g)}}function Nk(h){return function(g){return 1-h(1-g)}}function Ik(h){return function(g){return .5*(g<.5?h(2*g):2-h(2-2*g))}}function hfe(h){return h*h}function dfe(h){return h*h*h}function pfe(h){if(h<=0)return 0;if(h>=1)return 1;var g=h*h,M=g*h;return 4*(h<.5?M:3*(h-g)+M-.75)}function mfe(h){return function(g){return Math.pow(g,h)}}function yfe(h){return 1-Math.cos(h*ne)}function gfe(h){return Math.pow(2,10*(h-1))}function bfe(h){return 1-Math.sqrt(1-h*h)}function xfe(h,g){var M;return arguments.length<2&&(g=.45),arguments.length?M=g/ur*Math.asin(1/h):(h=1,M=g/4),function(S){return 1+h*Math.pow(2,-10*S)*Math.sin((S-M)*ur/g)}}function _fe(h){return h||(h=1.70158),function(g){return g*g*((h+1)*g-h)}}function wfe(h){return h<1/2.75?7.5625*h*h:h<2/2.75?7.5625*(h-=1.5/2.75)*h+.75:h<2.5/2.75?7.5625*(h-=2.25/2.75)*h+.9375:7.5625*(h-=2.625/2.75)*h+.984375}e.interpolateHcl=Afe;function Afe(h,g){h=e.hcl(h),g=e.hcl(g);var M=h.h,S=h.c,L=h.l,D=g.h-M,B=g.c-S,F=g.l-L;return isNaN(B)&&(B=0,S=isNaN(S)?g.c:S),isNaN(D)?(D=0,M=isNaN(M)?g.h:M):D>180?D-=360:D<-180&&(D+=360),function(H){return zn(M+D*H,S+B*H,L+F*H)+""}}e.interpolateHsl=Tfe;function Tfe(h,g){h=e.hsl(h),g=e.hsl(g);var M=h.h,S=h.s,L=h.l,D=g.h-M,B=g.s-S,F=g.l-L;return isNaN(B)&&(B=0,S=isNaN(S)?g.s:S),isNaN(D)?(D=0,M=isNaN(M)?g.h:M):D>180?D-=360:D<-180&&(D+=360),function(H){return kt(M+D*H,S+B*H,L+F*H)+""}}e.interpolateLab=Mfe;function Mfe(h,g){h=e.lab(h),g=e.lab(g);var M=h.l,S=h.a,L=h.b,D=g.l-M,B=g.a-S,F=g.b-L;return function(H){return Yt(M+D*H,S+B*H,L+F*H)+""}}e.interpolateRound=Bk;function Bk(h,g){return g-=h,function(M){return Math.round(h+g*M)}}e.transform=function(h){var g=a.createElementNS(e.ns.prefix.svg,"g");return(e.transform=function(M){if(M!=null){g.setAttribute("transform",M);var S=g.transform.baseVal.consolidate()}return new Ok(S?S.matrix:Sfe)})(h)};function Ok(h){var g=[h.a,h.b],M=[h.c,h.d],S=Uk(g),L=Hk(g,M),D=Uk(kfe(M,g,-L))||0;g[0]*M[1]180?g+=360:g-h>180&&(h+=360),S.push({i:M.push(gc(M)+"rotate(",null,")")-2,x:Fl(h,g)})):g&&M.push(gc(M)+"rotate("+g+")")}function Cfe(h,g,M,S){h!==g?S.push({i:M.push(gc(M)+"skewX(",null,")")-2,x:Fl(h,g)}):g&&M.push(gc(M)+"skewX("+g+")")}function Dfe(h,g,M,S){if(h[0]!==g[0]||h[1]!==g[1]){var L=M.push(gc(M)+"scale(",null,",",null,")");S.push({i:L-4,x:Fl(h[0],g[0])},{i:L-2,x:Fl(h[1],g[1])})}else(g[0]!==1||g[1]!==1)&&M.push(gc(M)+"scale("+g+")")}function Gk(h,g){var M=[],S=[];return h=e.transform(h),g=e.transform(g),qfe(h.translate,g.translate,M,S),Lfe(h.rotate,g.rotate,M,S),Cfe(h.skew,g.skew,M,S),Dfe(h.scale,g.scale,M,S),h=g=null,function(L){for(var D=-1,B=S.length,F;++D0?D=de:(M.c=null,M.t=NaN,M=null,g.end({type:"end",alpha:D=0})):de>0&&(g.start({type:"start",alpha:D=de}),M=m1(h.tick)),h):D},h.start=function(){var de,Ve=pe.length,lr=we.length,dr=S[0],cr=S[1],xr,_r;for(de=0;de=0;)D.push(Z=X[H]),Z.parent=F,Z.depth=F.depth+1;M&&(F.value=0),F.children=X}else M&&(F.value=+M.call(S,F,F.depth)||0),delete F.children;return Qo(L,function(K){var Q,pe;h&&(Q=K.children)&&Q.sort(h),M&&(pe=K.parent)&&(pe.value+=K.value)}),B}return S.sort=function(L){return arguments.length?(h=L,S):h},S.children=function(L){return arguments.length?(g=L,S):g},S.value=function(L){return arguments.length?(M=L,S):M},S.revalue=function(L){return M&&(Xv(L,function(D){D.children&&(D.value=0)}),Qo(L,function(D){var B;D.children||(D.value=+M.call(S,D,D.depth)||0),(B=D.parent)&&(B.value+=D.value)})),L},S};function Wv(h,g){return e.rebind(h,g,"sort","children","value"),h.nodes=h,h.links=jfe,h}function Xv(h,g){for(var M=[h];(h=M.pop())!=null;)if(g(h),(L=h.children)&&(S=L.length))for(var S,L;--S>=0;)M.push(L[S])}function Qo(h,g){for(var M=[h],S=[];(h=M.pop())!=null;)if(S.push(h),(B=h.children)&&(D=B.length))for(var L=-1,D,B;++LL&&(L=F),S.push(F)}for(B=0;BS&&(M=g,S=L);return M}function Qfe(h){return h.reduce(ece,0)}function ece(h,g){return h+g[1]}e.layout.histogram=function(){var h=!0,g=Number,M=tce,S=rce;function L(D,Q){for(var F=[],H=D.map(g,this),X=M.call(this,H,Q),Z=S.call(this,X,H,Q),K,Q=-1,pe=H.length,we=Z.length-1,ee=h?1:1/pe,le;++Q0)for(Q=-1;++Q=X[0]&&le<=X[1]&&(K=F[e.bisect(Z,le,1,we)-1],K.y+=ee,K.push(D[Q]));return F}return L.value=function(D){return arguments.length?(g=D,L):g},L.range=function(D){return arguments.length?(M=Mr(D),L):M},L.bins=function(D){return arguments.length?(S=typeof D=="number"?function(B){return Wk(B,D)}:Mr(D),L):S},L.frequency=function(D){return arguments.length?(h=!!D,L):h},L};function rce(h,g){return Wk(h,Math.ceil(Math.log(g.length)/Math.LN2+1))}function Wk(h,g){for(var M=-1,S=+h[0],L=(h[1]-S)/g,D=[];++M<=g;)D[M]=L*M+S;return D}function tce(h){return[e.min(h),e.max(h)]}e.layout.pack=function(){var h=e.layout.hierarchy().sort(ace),g=0,M=[1,1],S;function L(D,B){var F=h.call(this,D,B),H=F[0],X=M[0],Z=M[1],K=S==null?Math.sqrt:typeof S=="function"?S:function(){return S};if(H.x=H.y=0,Qo(H,function(pe){pe.r=+K(pe.value)}),Qo(H,$k),g){var Q=g*(S?1:Math.max(2*H.r/X,2*H.r/Z))/2;Qo(H,function(pe){pe.r+=Q}),Qo(H,$k),Qo(H,function(pe){pe.r-=Q})}return Jk(H,X/2,Z/2,S?1:1/Math.max(2*H.r/X,2*H.r/Z)),F}return L.size=function(D){return arguments.length?(M=D,L):M},L.radius=function(D){return arguments.length?(S=D==null||typeof D=="function"?D:+D,L):S},L.padding=function(D){return arguments.length?(g=+D,L):g},Wv(L,h)};function ace(h,g){return h.value-g.value}function jx(h,g){var M=h._pack_next;h._pack_next=g,g._pack_prev=h,g._pack_next=M,M._pack_prev=g}function Xk(h,g){h._pack_next=g,g._pack_prev=h}function Zk(h,g){var M=g.x-h.x,S=g.y-h.y,L=h.r+g.r;return .999*L*L>M*M+S*S}function $k(h){if(!(g=h.children)||!(Q=g.length))return;var g,M=1/0,S=-1/0,L=1/0,D=-1/0,B,F,H,X,Z,K,Q;function pe(de){M=Math.min(de.x-de.r,M),S=Math.max(de.x+de.r,S),L=Math.min(de.y-de.r,L),D=Math.max(de.y+de.r,D)}if(g.forEach(nce),B=g[0],B.x=-B.r,B.y=0,pe(B),Q>1&&(F=g[1],F.x=F.r,F.y=0,pe(F),Q>2))for(H=g[2],Kk(B,F,H),pe(H),jx(B,H),B._pack_prev=H,jx(H,F),F=B._pack_next,X=3;Xle.x&&(le=Ve),Ve.depth>ve.depth&&(ve=Ve)});var _e=g(ee,le)/2-ee.x,Ae=M[0]/(le.x+g(le,ee)/2+_e),de=M[1]/(ve.depth||1);Xv(pe,function(Ve){Ve.x=(Ve.x+_e)*Ae,Ve.y=Ve.depth*de})}return Q}function D(Z){for(var K={A:null,children:[Z]},Q=[K],pe;(pe=Q.pop())!=null;)for(var we=pe.children,ee,le=0,ve=we.length;le0&&(oce(sce(ee,Z,Q),Z,Ve),ve+=Ve,_e+=Ve),Ae+=ee.m,ve+=pe.m,de+=le.m,_e+=we.m;ee&&!Xx(we)&&(we.t=ee,we.m+=Ae-_e),pe&&!Wx(le)&&(le.t=pe,le.m+=ve-de,Q=Z)}return Q}function X(Z){Z.x*=M[0],Z.y=Z.depth*M[1]}return L.separation=function(Z){return arguments.length?(g=Z,L):g},L.size=function(Z){return arguments.length?(S=(M=Z)==null?X:null,L):S?null:M},L.nodeSize=function(Z){return arguments.length?(S=(M=Z)==null?null:X,L):S?M:null},Wv(L,h)};function Qk(h,g){return h.parent==g.parent?1:2}function Wx(h){var g=h.children;return g.length?g[0]:h.t}function Xx(h){var g=h.children,M;return(M=g.length)?g[M-1]:h.t}function oce(h,g,M){var S=M/(g.i-h.i);g.c-=S,g.s+=M,h.c+=S,g.z+=M,g.m+=M}function lce(h){for(var g=0,M=0,S=h.children,L=S.length,D;--L>=0;)D=S[L],D.z+=g,D.m+=g,g+=D.s+(M+=D.c)}function sce(h,g,M){return h.a.parent===g.parent?h.a:M}e.layout.cluster=function(){var h=e.layout.hierarchy().sort(null).value(null),g=Qk,M=[1,1],S=!1;function L(D,B){var F=h.call(this,D,B),H=F[0],X,Z=0;Qo(H,function(ee){var le=ee.children;le&&le.length?(ee.x=fce(le),ee.y=uce(le)):(ee.x=X?Z+=g(ee,X):0,ee.y=0,X=ee)});var K=eS(H),Q=rS(H),pe=K.x-g(K,Q)/2,we=Q.x+g(Q,K)/2;return Qo(H,S?function(ee){ee.x=(ee.x-H.x)*M[0],ee.y=(H.y-ee.y)*M[1]}:function(ee){ee.x=(ee.x-pe)/(we-pe)*M[0],ee.y=(1-(H.y?ee.y/H.y:1))*M[1]}),F}return L.separation=function(D){return arguments.length?(g=D,L):g},L.size=function(D){return arguments.length?(S=(M=D)==null,L):S?null:M},L.nodeSize=function(D){return arguments.length?(S=(M=D)!=null,L):S?M:null},Wv(L,h)};function uce(h){return 1+e.max(h,function(g){return g.y})}function fce(h){return h.reduce(function(g,M){return g+M.x},0)/h.length}function eS(h){var g=h.children;return g&&g.length?eS(g[0]):h}function rS(h){var g=h.children,M;return g&&(M=g.length)?rS(g[M-1]):h}e.layout.treemap=function(){var h=e.layout.hierarchy(),g=Math.round,M=[1,1],S=null,L=Zx,D=!1,B,F="squarify",H=.5*(1+Math.sqrt(5));function X(ee,le){for(var ve=-1,_e=ee.length,Ae,de;++ve<_e;)de=(Ae=ee[ve]).value*(le<0?0:le),Ae.area=isNaN(de)||de<=0?0:de}function Z(ee){var le=ee.children;if(le&&le.length){var ve=L(ee),_e=[],Ae=le.slice(),de,Ve=1/0,lr,dr=F==="slice"?ve.dx:F==="dice"?ve.dy:F==="slice-dice"?ee.depth&1?ve.dy:ve.dx:Math.min(ve.dx,ve.dy),cr;for(X(Ae,ve.dx*ve.dy/ee.value),_e.area=0;(cr=Ae.length)>0;)_e.push(de=Ae[cr-1]),_e.area+=de.area,F!=="squarify"||(lr=Q(_e,dr))<=Ve?(Ae.pop(),Ve=lr):(_e.area-=_e.pop().area,pe(_e,dr,ve,!1),dr=Math.min(ve.dx,ve.dy),_e.length=_e.area=0,Ve=1/0);_e.length&&(pe(_e,dr,ve,!0),_e.length=_e.area=0),le.forEach(Z)}}function K(ee){var le=ee.children;if(le&&le.length){var ve=L(ee),_e=le.slice(),Ae,de=[];for(X(_e,ve.dx*ve.dy/ee.value),de.area=0;Ae=_e.pop();)de.push(Ae),de.area+=Ae.area,Ae.z!=null&&(pe(de,Ae.z?ve.dx:ve.dy,ve,!_e.length),de.length=de.area=0);le.forEach(K)}}function Q(ee,le){for(var ve=ee.area,_e,Ae=0,de=1/0,Ve=-1,lr=ee.length;++VeAe&&(Ae=_e));return ve*=ve,le*=le,ve?Math.max(le*Ae*H/ve,ve/(le*de*H)):1/0}function pe(ee,le,ve,_e){var Ae=-1,de=ee.length,Ve=ve.x,lr=ve.y,dr=le?g(ee.area/le):0,cr;if(le==ve.dx){for((_e||dr>ve.dy)&&(dr=ve.dy);++Aeve.dx)&&(dr=ve.dx);++Ae1);return h+g*S*Math.sqrt(-2*Math.log(D)/D)}},logNormal:function(){var h=e.random.normal.apply(e,arguments);return function(){return Math.exp(h())}},bates:function(h){var g=e.random.irwinHall(h);return function(){return g()/h}},irwinHall:function(h){return function(){for(var g=0,M=0;M2?hce:cce,X=S?Pfe:Efe;return L=H(h,g,X,M),D=H(g,h,X,Su),F}function F(H){return L(H)}return F.invert=function(H){return D(H)},F.domain=function(H){return arguments.length?(h=H.map(Number),B()):h},F.range=function(H){return arguments.length?(g=H,B()):g},F.rangeRound=function(H){return F.range(H).interpolate(Bk)},F.clamp=function(H){return arguments.length?(S=H,B()):S},F.interpolate=function(H){return arguments.length?(M=H,B()):M},F.ticks=function(H){return Kx(h,H)},F.tickFormat=function(H,X){return d3_scale_linearTickFormat(h,H,X)},F.nice=function(H){return oS(h,H),B()},F.copy=function(){return nS(h,g,M,S)},B()}function iS(h,g){return e.rebind(h,g,"range","rangeRound","interpolate","clamp")}function oS(h,g){return $x(h,aS(Jx(h,g)[2])),$x(h,aS(Jx(h,g)[2])),h}function Jx(h,g){g==null&&(g=10);var M=A1(h),S=M[1]-M[0],L=Math.pow(10,Math.floor(Math.log(S/g)/Math.LN10)),D=g/S*L;return D<=.15?L*=10:D<=.35?L*=5:D<=.75&&(L*=2),M[0]=Math.ceil(M[0]/L)*L,M[1]=Math.floor(M[1]/L)*L+L*.5,M[2]=L,M}function Kx(h,g){return e.range.apply(e,Jx(h,g))}var dce={s:1,g:1,p:1,r:1,e:1};function lS(h){return-Math.floor(Math.log(h)/Math.LN10+.01)}function ije(h,g){var M=lS(g[2]);return h in dce?Math.abs(M-lS(Math.max(b(g[0]),b(g[1]))))+ +(h!=="e"):M-(h==="%")*2}e.scale.log=function(){return sS(e.scale.linear().domain([0,1]),10,!0,[1,10])};function sS(h,g,M,S){function L(F){return(M?Math.log(F<0?0:F):-Math.log(F>0?0:-F))/Math.log(g)}function D(F){return M?Math.pow(g,F):-Math.pow(g,-F)}function B(F){return h(L(F))}return B.invert=function(F){return D(h.invert(F))},B.domain=function(F){return arguments.length?(M=F[0]>=0,h.domain((S=F.map(Number)).map(L)),B):S},B.base=function(F){return arguments.length?(g=+F,h.domain(S.map(L)),B):g},B.nice=function(){var F=$x(S.map(L),M?Math:pce);return h.domain(F),S=F.map(D),B},B.ticks=function(){var F=A1(S),H=[],X=F[0],Z=F[1],K=Math.floor(L(X)),Q=Math.ceil(L(Z)),pe=g%1?2:g;if(isFinite(Q-K)){if(M){for(;K0;we--)H.push(D(K)*we);for(K=0;H[K]Z;Q--);H=H.slice(K,Q)}return H},B.copy=function(){return sS(h.copy(),g,M,S)},iS(B,h)}var pce={floor:function(h){return-Math.ceil(-h)},ceil:function(h){return-Math.floor(-h)}};e.scale.pow=function(){return uS(e.scale.linear(),1,[0,1])};function uS(h,g,M){var S=M1(g),L=M1(1/g);function D(B){return h(S(B))}return D.invert=function(B){return L(h.invert(B))},D.domain=function(B){return arguments.length?(h.domain((M=B.map(Number)).map(S)),D):M},D.ticks=function(B){return Kx(M,B)},D.tickFormat=function(B,F){return d3_scale_linearTickFormat(M,B,F)},D.nice=function(B){return D.domain(oS(M,B))},D.exponent=function(B){return arguments.length?(S=M1(g=B),L=M1(1/g),h.domain(M.map(S)),D):g},D.copy=function(){return uS(h.copy(),g,M)},iS(D,h)}function M1(h){return function(g){return g<0?-Math.pow(-g,h):Math.pow(g,h)}}e.scale.sqrt=function(){return e.scale.pow().exponent(.5)},e.scale.ordinal=function(){return fS([],{t:"range",a:[[]]})};function fS(h,g){var M,S,L;function D(F){return S[((M.get(F)||(g.t==="range"?M.set(F,h.push(F)):NaN))-1)%S.length]}function B(F,H){return e.range(h.length).map(function(X){return F+H*X})}return D.domain=function(F){if(!arguments.length)return h;h=[],M=new x;for(var H=-1,X=F.length,Z;++H0?M[D-1]:h[0],DQ?0:1;if(Z=gr)return H(Z,we)+(X?H(X,1-we):"")+"Z";var ee,le,ve,_e,Ae=0,de=0,Ve,lr,dr,cr,xr,_r,Nr,Ar,Er=[];if((_e=(+B.apply(this,arguments)||0)/2)&&(ve=S===k1?Math.sqrt(X*X+Z*Z):+S.apply(this,arguments),we||(de*=-1),Z&&(de=yt(ve/Z*Math.sin(_e))),X&&(Ae=yt(ve/X*Math.sin(_e)))),Z){Ve=Z*Math.cos(K+de),lr=Z*Math.sin(K+de),dr=Z*Math.cos(Q-de),cr=Z*Math.sin(Q-de);var ot=Math.abs(Q-K-2*de)<=yr?0:1;if(de&&S1(Ve,lr,dr,cr)===we^ot){var va=(K+Q)/2;Ve=Z*Math.cos(va),lr=Z*Math.sin(va),dr=cr=null}}else Ve=lr=0;if(X){xr=X*Math.cos(Q-Ae),_r=X*Math.sin(Q-Ae),Nr=X*Math.cos(K+Ae),Ar=X*Math.sin(K+Ae);var bt=Math.abs(K-Q+2*Ae)<=yr?0:1;if(Ae&&S1(xr,_r,Nr,Ar)===1-we^bt){var nr=(K+Q)/2;xr=X*Math.cos(nr),_r=X*Math.sin(nr),Nr=Ar=null}}else xr=_r=0;if(pe>Be&&(ee=Math.min(Math.abs(Z-X)/2,+M.apply(this,arguments)))>.001){le=X0?0:1}function q1(h,g,M,S,L){var D=h[0]-g[0],B=h[1]-g[1],F=(L?S:-S)/Math.sqrt(D*D+B*B),H=F*B,X=-F*D,Z=h[0]+H,K=h[1]+X,Q=g[0]+H,pe=g[1]+X,we=(Z+Q)/2,ee=(K+pe)/2,le=Q-Z,ve=pe-K,_e=le*le+ve*ve,Ae=M-S,de=Z*pe-Q*K,Ve=(ve<0?-1:1)*Math.sqrt(Math.max(0,Ae*Ae*_e-de*de)),lr=(de*ve-le*Ve)/_e,dr=(-de*le-ve*Ve)/_e,cr=(de*ve+le*Ve)/_e,xr=(-de*le+ve*Ve)/_e,_r=lr-we,Nr=dr-ee,Ar=cr-we,Er=xr-ee;return _r*_r+Nr*Nr>Ar*Ar+Er*Er&&(lr=cr,dr=xr),[[lr-H,dr-X],[lr*M/Ae,dr*M/Ae]]}function yS(){return!0}function gS(h){var g=hc,M=Hv,S=yS,L=Ao,D=L.key,B=.7;function F(H){var X=[],Z=[],K=-1,Q=H.length,pe,we=Mr(g),ee=Mr(M);function le(){X.push("M",L(h(Z),B))}for(;++K1?h.join("L"):h+"Z"}function bS(h){return h.join("L")+"Z"}function Tce(h){for(var g=0,M=h.length,S=h[0],L=[S[0],",",S[1]];++g1&&L.push("H",S[0]),L.join("")}function e5(h){for(var g=0,M=h.length,S=h[0],L=[S[0],",",S[1]];++g1){F=g[1],D=h[H],H++,S+="C"+(L[0]+B[0])+","+(L[1]+B[1])+","+(D[0]-F[0])+","+(D[1]-F[1])+","+D[0]+","+D[1];for(var X=2;X9&&(D=M*3/Math.sqrt(D),B[F]=D*S,B[F+1]=D*L));for(F=-1;++F<=H;)D=(h[Math.min(H,F+1)][0]-h[Math.max(0,F-1)][0])/(6*(1+B[F]*B[F])),g.push([D||0,B[F]*D||0]);return g}function Pce(h){return h.length<3?Ao(h):h[0]+L1(h,Ece(h))}e.svg.line.radial=function(){var h=gS(AS);return h.radius=h.x,delete h.x,h.angle=h.y,delete h.y,h};function AS(h){for(var g,M=-1,S=h.length,L,D;++Myr)+",1 "+K}function X(Z,K,Q,pe){return"Q 0,0 "+pe}return D.radius=function(Z){return arguments.length?(M=Mr(Z),D):M},D.source=function(Z){return arguments.length?(h=Mr(Z),D):h},D.target=function(Z){return arguments.length?(g=Mr(Z),D):g},D.startAngle=function(Z){return arguments.length?(S=Mr(Z),D):S},D.endAngle=function(Z){return arguments.length?(L=Mr(Z),D):L},D};function Rce(h){return h.radius}e.svg.diagonal=function(){var h=MS,g=kS,M=SS;function S(L,D){var B=h.call(this,L,D),F=g.call(this,L,D),H=(B.y+F.y)/2,X=[B,{x:B.x,y:H},{x:F.x,y:H},F];return X=X.map(M),"M"+X[0]+"C"+X[1]+" "+X[2]+" "+X[3]}return S.source=function(L){return arguments.length?(h=Mr(L),S):h},S.target=function(L){return arguments.length?(g=Mr(L),S):g},S.projection=function(L){return arguments.length?(M=L,S):M},S};function SS(h){return[h.x,h.y]}e.svg.diagonal.radial=function(){var h=e.svg.diagonal(),g=SS,M=h.projection;return h.projection=function(S){return arguments.length?M(Fce(g=S)):g},h};function Fce(h){return function(){var g=h.apply(this,arguments),M=g[0],S=g[1]-ne;return[M*Math.cos(S),M*Math.sin(S)]}}e.svg.symbol=function(){var h=Nce,g=zce;function M(S,L){return(LS.get(h.call(this,S,L))||qS)(g.call(this,S,L))}return M.type=function(S){return arguments.length?(h=Mr(S),M):h},M.size=function(S){return arguments.length?(g=Mr(S),M):g},M};function zce(){return 64}function Nce(){return"circle"}function qS(h){var g=Math.sqrt(h/yr);return"M0,"+g+"A"+g+","+g+" 0 1,1 0,"+-g+"A"+g+","+g+" 0 1,1 0,"+g+"Z"}var LS=e.map({circle:qS,cross:function(h){var g=Math.sqrt(h/5)/2;return"M"+-3*g+","+-g+"H"+-g+"V"+-3*g+"H"+g+"V"+-g+"H"+3*g+"V"+g+"H"+g+"V"+3*g+"H"+-g+"V"+g+"H"+-3*g+"Z"},diamond:function(h){var g=Math.sqrt(h/(2*CS)),M=g*CS;return"M0,"+-g+"L"+M+",0 0,"+g+" "+-M+",0Z"},square:function(h){var g=Math.sqrt(h)/2;return"M"+-g+","+-g+"L"+g+","+-g+" "+g+","+g+" "+-g+","+g+"Z"},"triangle-down":function(h){var g=Math.sqrt(h/C1),M=g*C1/2;return"M0,"+M+"L"+g+","+-M+" "+-g+","+-M+"Z"},"triangle-up":function(h){var g=Math.sqrt(h/C1),M=g*C1/2;return"M0,"+-M+"L"+g+","+M+" "+-g+","+M+"Z"}});e.svg.symbolTypes=LS.keys();var C1=Math.sqrt(3),CS=Math.tan(30*ge);oe.transition=function(h){for(var g=qu||++ES,M=o5(h),S=[],L,D,B=E1||{time:Date.now(),ease:pfe,delay:0,duration:250},F=-1,H=this.length;++F0;)K[--_e].call(h,ve);if(le>=1)return B.event&&B.event.end.call(h,h.__data__,g),--D.count?delete D[S]:delete h[M],1}B||(F=L.time,H=m1(Q,0,F),B=D[S]={tween:new x,time:F,timer:H,delay:L.delay,duration:L.duration,ease:L.ease,index:g},L=null,++D.count)}e.svg.axis=function(){var h=e.scale.linear(),g=PS,M=6,S=6,L=3,D=[10],B=null,F;function H(X){X.each(function(){var Z=e.select(this),K=this.__chart__||h,Q=this.__chart__=h.copy(),pe=B==null?Q.ticks?Q.ticks.apply(Q,D):Q.domain():B,we=F==null?Q.tickFormat?Q.tickFormat.apply(Q,D):O:F,ee=Z.selectAll(".tick").data(pe,Q),le=ee.enter().insert("g",".domain").attr("class","tick").style("opacity",Be),ve=e.transition(ee.exit()).style("opacity",Be).remove(),_e=e.transition(ee.order()).style("opacity",1),Ae=Math.max(M,0)+L,de,Ve=T1(Q),lr=Z.selectAll(".domain").data([0]),dr=(lr.enter().append("path").attr("class","domain"),e.transition(lr));le.append("line"),le.append("text");var cr=le.select("line"),xr=_e.select("line"),_r=ee.select("text").text(we),Nr=le.select("text"),Ar=_e.select("text"),Er=g==="top"||g==="left"?-1:1,ot,va,bt,nr;if(g==="bottom"||g==="top"?(de=Oce,ot="x",bt="y",va="x2",nr="y2",_r.attr("dy",Er<0?"0em":".71em").style("text-anchor","middle"),dr.attr("d","M"+Ve[0]+","+Er*S+"V0H"+Ve[1]+"V"+Er*S)):(de=Hce,ot="y",bt="x",va="y2",nr="x2",_r.attr("dy",".32em").style("text-anchor",Er<0?"end":"start"),dr.attr("d","M"+Er*S+","+Ve[0]+"H0V"+Ve[1]+"H"+Er*S)),cr.attr(nr,Er*M),Nr.attr(bt,Er*Ae),xr.attr(va,0).attr(nr,Er*M),Ar.attr(ot,0).attr(bt,Er*Ae),Q.rangeBand){var Ir=Q,Or=Ir.rangeBand()/2;K=Q=function(lt){return Ir(lt)+Or}}else K.rangeBand?K=Q:ve.call(de,Q,K);le.call(de,K,Q),_e.call(de,Q,Q)})}return H.scale=function(X){return arguments.length?(h=X,H):h},H.orient=function(X){return arguments.length?(g=X in Bce?X+"":PS,H):g},H.ticks=function(){return arguments.length?(D=t(arguments),H):D},H.tickValues=function(X){return arguments.length?(B=X,H):B},H.tickFormat=function(X){return arguments.length?(F=X,H):F},H.tickSize=function(X){var Z=arguments.length;return Z?(M=+X,S=+arguments[Z-1],H):M},H.innerTickSize=function(X){return arguments.length?(M=+X,H):M},H.outerTickSize=function(X){return arguments.length?(S=+X,H):S},H.tickPadding=function(X){return arguments.length?(L=+X,H):L},H.tickSubdivide=function(){return arguments.length&&H},H};var PS="bottom",Bce={top:1,right:1,bottom:1,left:1};function Oce(h,g,M){h.attr("transform",function(S){var L=g(S);return"translate("+(isFinite(L)?L:M(S))+",0)"})}function Hce(h,g,M){h.attr("transform",function(S){var L=g(S);return"translate(0,"+(isFinite(L)?L:M(S))+")"})}e.svg.brush=function(){var h=ae(Z,"brushstart","brush","brushend"),g=null,M=null,S=[0,0],L=[0,0],D,B,F=!0,H=!0,X=l5[0];function Z(ee){ee.each(function(){var le=e.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",we).on("touchstart.brush",we),ve=le.selectAll(".background").data([0]);ve.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),le.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var _e=le.selectAll(".resize").data(X,O);_e.exit().remove(),_e.enter().append("g").attr("class",function(lr){return"resize "+lr}).style("cursor",function(lr){return Uce[lr]}).append("rect").attr("x",function(lr){return/[ew]$/.test(lr)?-3:null}).attr("y",function(lr){return/^[ns]/.test(lr)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),_e.style("display",Z.empty()?"none":null);var Ae=e.transition(le),de=e.transition(ve),Ve;g&&(Ve=T1(g),de.attr("x",Ve[0]).attr("width",Ve[1]-Ve[0]),Q(Ae)),M&&(Ve=T1(M),de.attr("y",Ve[0]).attr("height",Ve[1]-Ve[0]),pe(Ae)),K(Ae)})}Z.event=function(ee){ee.each(function(){var le=h.of(this,arguments),ve={x:S,y:L,i:D,j:B},_e=this.__chart__||ve;this.__chart__=ve,qu?e.select(this).transition().each("start.brush",function(){D=_e.i,B=_e.j,S=_e.x,L=_e.y,le({type:"brushstart"})}).tween("brush:brush",function(){var Ae=w1(S,ve.x),de=w1(L,ve.y);return D=B=null,function(Ve){S=ve.x=Ae(Ve),L=ve.y=de(Ve),le({type:"brush",mode:"resize"})}}).each("end.brush",function(){D=ve.i,B=ve.j,le({type:"brush",mode:"resize"}),le({type:"brushend"})}):(le({type:"brushstart"}),le({type:"brush",mode:"resize"}),le({type:"brushend"}))})};function K(ee){ee.selectAll(".resize").attr("transform",function(le){return"translate("+S[+/e$/.test(le)]+","+L[+/^s/.test(le)]+")"})}function Q(ee){ee.select(".extent").attr("x",S[0]),ee.selectAll(".extent,.n>rect,.s>rect").attr("width",S[1]-S[0])}function pe(ee){ee.select(".extent").attr("y",L[0]),ee.selectAll(".extent,.e>rect,.w>rect").attr("height",L[1]-L[0])}function we(){var ee=this,le=e.select(e.event.target),ve=h.of(ee,arguments),_e=e.select(ee),Ae=le.datum(),de=!/^(n|s)$/.test(Ae)&&g,Ve=!/^(e|w)$/.test(Ae)&&M,lr=le.classed("extent"),dr=or(ee),cr,xr=e.mouse(ee),_r,Nr=e.select(i(ee)).on("keydown.brush",ot).on("keyup.brush",va);if(e.event.changedTouches?Nr.on("touchmove.brush",bt).on("touchend.brush",Ir):Nr.on("mousemove.brush",bt).on("mouseup.brush",Ir),_e.interrupt().selectAll("*").interrupt(),lr)xr[0]=S[0]-xr[0],xr[1]=L[0]-xr[1];else if(Ae){var Ar=+/w$/.test(Ae),Er=+/^n/.test(Ae);_r=[S[1-Ar]-xr[0],L[1-Er]-xr[1]],xr[0]=S[Ar],xr[1]=L[Er]}else e.event.altKey&&(cr=xr.slice());_e.style("pointer-events","none").selectAll(".resize").style("display",null),e.select("body").style("cursor",le.style("cursor")),ve({type:"brushstart"}),bt();function ot(){e.event.keyCode==32&&(lr||(cr=null,xr[0]-=S[1],xr[1]-=L[1],lr=2),J())}function va(){e.event.keyCode==32&&lr==2&&(xr[0]+=S[1],xr[1]+=L[1],lr=0,J())}function bt(){var Or=e.mouse(ee),lt=!1;_r&&(Or[0]+=_r[0],Or[1]+=_r[1]),lr||(e.event.altKey?(cr||(cr=[(S[0]+S[1])/2,(L[0]+L[1])/2]),xr[0]=S[+(Or[0]{(function(e,r){typeof I1=="object"&&typeof GS!="undefined"?r(I1):(e=e||self,r(e.d3=e.d3||{}))})(I1,function(e){"use strict";var r=new Date,t=new Date;function a(re,xe,Ye,vr){function Pe(me){return re(me=arguments.length===0?new Date:new Date(+me)),me}return Pe.floor=function(me){return re(me=new Date(+me)),me},Pe.ceil=function(me){return re(me=new Date(me-1)),xe(me,1),re(me),me},Pe.round=function(me){var Te=Pe(me),Ue=Pe.ceil(me);return me-Te0))return $e;do $e.push(Oe=new Date(+me)),xe(me,Ue),re(me);while(Oe=Te)for(;re(Te),!me(Te);)Te.setTime(Te-1)},function(Te,Ue){if(Te>=Te)if(Ue<0)for(;++Ue<=0;)for(;xe(Te,-1),!me(Te););else for(;--Ue>=0;)for(;xe(Te,1),!me(Te););})},Ye&&(Pe.count=function(me,Te){return r.setTime(+me),t.setTime(+Te),re(r),re(t),Math.floor(Ye(r,t))},Pe.every=function(me){return me=Math.floor(me),!isFinite(me)||!(me>0)?null:me>1?Pe.filter(vr?function(Te){return vr(Te)%me===0}:function(Te){return Pe.count(0,Te)%me===0}):Pe}),Pe}var n=a(function(){},function(re,xe){re.setTime(+re+xe)},function(re,xe){return xe-re});n.every=function(re){return re=Math.floor(re),!isFinite(re)||!(re>0)?null:re>1?a(function(xe){xe.setTime(Math.floor(xe/re)*re)},function(xe,Ye){xe.setTime(+xe+Ye*re)},function(xe,Ye){return(Ye-xe)/re}):n};var i=n.range,o=1e3,l=6e4,s=36e5,u=864e5,f=6048e5,c=a(function(re){re.setTime(re-re.getMilliseconds())},function(re,xe){re.setTime(+re+xe*o)},function(re,xe){return(xe-re)/o},function(re){return re.getUTCSeconds()}),v=c.range,d=a(function(re){re.setTime(re-re.getMilliseconds()-re.getSeconds()*o)},function(re,xe){re.setTime(+re+xe*l)},function(re,xe){return(xe-re)/l},function(re){return re.getMinutes()}),p=d.range,y=a(function(re){re.setTime(re-re.getMilliseconds()-re.getSeconds()*o-re.getMinutes()*l)},function(re,xe){re.setTime(+re+xe*s)},function(re,xe){return(xe-re)/s},function(re){return re.getHours()}),m=y.range,b=a(function(re){re.setHours(0,0,0,0)},function(re,xe){re.setDate(re.getDate()+xe)},function(re,xe){return(xe-re-(xe.getTimezoneOffset()-re.getTimezoneOffset())*l)/u},function(re){return re.getDate()-1}),A=b.range;function w(re){return a(function(xe){xe.setDate(xe.getDate()-(xe.getDay()+7-re)%7),xe.setHours(0,0,0,0)},function(xe,Ye){xe.setDate(xe.getDate()+Ye*7)},function(xe,Ye){return(Ye-xe-(Ye.getTimezoneOffset()-xe.getTimezoneOffset())*l)/f})}var x=w(0),_=w(1),k=w(2),T=w(3),q=w(4),C=w(5),E=w(6),P=x.range,R=_.range,N=k.range,I=T.range,O=q.range,U=C.range,Y=E.range,G=a(function(re){re.setDate(1),re.setHours(0,0,0,0)},function(re,xe){re.setMonth(re.getMonth()+xe)},function(re,xe){return xe.getMonth()-re.getMonth()+(xe.getFullYear()-re.getFullYear())*12},function(re){return re.getMonth()}),V=G.range,W=a(function(re){re.setMonth(0,1),re.setHours(0,0,0,0)},function(re,xe){re.setFullYear(re.getFullYear()+xe)},function(re,xe){return xe.getFullYear()-re.getFullYear()},function(re){return re.getFullYear()});W.every=function(re){return!isFinite(re=Math.floor(re))||!(re>0)?null:a(function(xe){xe.setFullYear(Math.floor(xe.getFullYear()/re)*re),xe.setMonth(0,1),xe.setHours(0,0,0,0)},function(xe,Ye){xe.setFullYear(xe.getFullYear()+Ye*re)})};var j=W.range,J=a(function(re){re.setUTCSeconds(0,0)},function(re,xe){re.setTime(+re+xe*l)},function(re,xe){return(xe-re)/l},function(re){return re.getUTCMinutes()}),te=J.range,ae=a(function(re){re.setUTCMinutes(0,0,0)},function(re,xe){re.setTime(+re+xe*s)},function(re,xe){return(xe-re)/s},function(re){return re.getUTCHours()}),se=ae.range,$=a(function(re){re.setUTCHours(0,0,0,0)},function(re,xe){re.setUTCDate(re.getUTCDate()+xe)},function(re,xe){return(xe-re)/u},function(re){return re.getUTCDate()-1}),fe=$.range;function ie(re){return a(function(xe){xe.setUTCDate(xe.getUTCDate()-(xe.getUTCDay()+7-re)%7),xe.setUTCHours(0,0,0,0)},function(xe,Ye){xe.setUTCDate(xe.getUTCDate()+Ye*7)},function(xe,Ye){return(Ye-xe)/f})}var ue=ie(0),ce=ie(1),oe=ie(2),be=ie(3),Re=ie(4),ye=ie(5),Ce=ie(6),Me=ue.range,Le=ce.range,De=oe.range,Ie=be.range,qe=Re.range,Ze=ye.range,Je=Ce.range,Xe=a(function(re){re.setUTCDate(1),re.setUTCHours(0,0,0,0)},function(re,xe){re.setUTCMonth(re.getUTCMonth()+xe)},function(re,xe){return xe.getUTCMonth()-re.getUTCMonth()+(xe.getUTCFullYear()-re.getUTCFullYear())*12},function(re){return re.getUTCMonth()}),Se=Xe.range,Fe=a(function(re){re.setUTCMonth(0,1),re.setUTCHours(0,0,0,0)},function(re,xe){re.setUTCFullYear(re.getUTCFullYear()+xe)},function(re,xe){return xe.getUTCFullYear()-re.getUTCFullYear()},function(re){return re.getUTCFullYear()});Fe.every=function(re){return!isFinite(re=Math.floor(re))||!(re>0)?null:a(function(xe){xe.setUTCFullYear(Math.floor(xe.getUTCFullYear()/re)*re),xe.setUTCMonth(0,1),xe.setUTCHours(0,0,0,0)},function(xe,Ye){xe.setUTCFullYear(xe.getUTCFullYear()+Ye*re)})};var er=Fe.range;e.timeDay=b,e.timeDays=A,e.timeFriday=C,e.timeFridays=U,e.timeHour=y,e.timeHours=m,e.timeInterval=a,e.timeMillisecond=n,e.timeMilliseconds=i,e.timeMinute=d,e.timeMinutes=p,e.timeMonday=_,e.timeMondays=R,e.timeMonth=G,e.timeMonths=V,e.timeSaturday=E,e.timeSaturdays=Y,e.timeSecond=c,e.timeSeconds=v,e.timeSunday=x,e.timeSundays=P,e.timeThursday=q,e.timeThursdays=O,e.timeTuesday=k,e.timeTuesdays=N,e.timeWednesday=T,e.timeWednesdays=I,e.timeWeek=x,e.timeWeeks=P,e.timeYear=W,e.timeYears=j,e.utcDay=$,e.utcDays=fe,e.utcFriday=ye,e.utcFridays=Ze,e.utcHour=ae,e.utcHours=se,e.utcMillisecond=n,e.utcMilliseconds=i,e.utcMinute=J,e.utcMinutes=te,e.utcMonday=ce,e.utcMondays=Le,e.utcMonth=Xe,e.utcMonths=Se,e.utcSaturday=Ce,e.utcSaturdays=Je,e.utcSecond=c,e.utcSeconds=v,e.utcSunday=ue,e.utcSundays=Me,e.utcThursday=Re,e.utcThursdays=qe,e.utcTuesday=oe,e.utcTuesdays=De,e.utcWednesday=be,e.utcWednesdays=Ie,e.utcWeek=ue,e.utcWeeks=Me,e.utcYear=Fe,e.utcYears=er,Object.defineProperty(e,"__esModule",{value:!0})})});var _c=z((B1,YS)=>{(function(e,r){typeof B1=="object"&&typeof YS!="undefined"?r(B1,u5()):(e=e||self,r(e.d3=e.d3||{},e.d3))})(B1,function(e,r){"use strict";function t(ne){if(0<=ne.y&&ne.y<100){var ge=new Date(-1,ne.m,ne.d,ne.H,ne.M,ne.S,ne.L);return ge.setFullYear(ne.y),ge}return new Date(ne.y,ne.m,ne.d,ne.H,ne.M,ne.S,ne.L)}function a(ne){if(0<=ne.y&&ne.y<100){var ge=new Date(Date.UTC(-1,ne.m,ne.d,ne.H,ne.M,ne.S,ne.L));return ge.setUTCFullYear(ne.y),ge}return new Date(Date.UTC(ne.y,ne.m,ne.d,ne.H,ne.M,ne.S,ne.L))}function n(ne,ge,Ne){return{y:ne,m:ge,d:Ne,H:0,M:0,S:0,L:0}}function i(ne){var ge=ne.dateTime,Ne=ne.date,He=ne.time,Kr=ne.periods,Qr=ne.days,yt=ne.shortDays,gt=ne.months,Et=ne.shortMonths,aa=v(Kr),$a=d(Kr),na=v(Qr),Ja=d(Qr),hn=v(yt),fa=d(yt),hr=v(gt),wt=d(gt),Vr=v(Et),ht=d(Et),Nt={a:wo,A:ci,b:ca,B:vc,c:null,d:G,e:G,f:te,g:ye,G:Me,H:V,I:W,j,L:J,m:ae,M:se,p:ds,q:In,Q:or,s:sr,S:$,u:fe,U:ie,V:ce,w:oe,W:be,x:null,X:null,y:Re,Y:Ce,Z:Le,"%":ar},kt={a:ps,A:h1,b:d1,B:p1,c:null,d:De,e:De,f:Xe,g:Ue,G:Oe,H:Ie,I:qe,j:Ze,L:Je,m:Se,M:Fe,p:Bv,q:Ov,Q:or,s:sr,S:er,u:re,U:xe,V:vr,w:Pe,W:me,x:null,X:null,y:Te,Y:$e,Z:We,"%":ar},it={a:oa,A:la,b:dt,B:Ka,c:Yt,d:q,e:q,f:I,g:x,G:w,H:E,I:E,j:C,L:N,m:T,M:P,p:Pt,q:k,Q:U,s:Y,S:R,u:y,U:m,V:b,w:p,W:A,x:cc,X:Nn,y:x,Y:w,Z:_,"%":O};Nt.x=ia(Ne,Nt),Nt.X=ia(He,Nt),Nt.c=ia(ge,Nt),kt.x=ia(Ne,kt),kt.X=ia(He,kt),kt.c=ia(ge,kt);function ia(kr,Mr){return function(pt){var fr=[],wn=-1,It=0,Qa=kr.length,en,Ri,Mu;for(pt instanceof Date||(pt=new Date(+pt));++wn53)return null;"w"in fr||(fr.w=1),"Z"in fr?(It=a(n(fr.y,0,1)),Qa=It.getUTCDay(),It=Qa>4||Qa===0?r.utcMonday.ceil(It):r.utcMonday(It),It=r.utcDay.offset(It,(fr.V-1)*7),fr.y=It.getUTCFullYear(),fr.m=It.getUTCMonth(),fr.d=It.getUTCDate()+(fr.w+6)%7):(It=t(n(fr.y,0,1)),Qa=It.getDay(),It=Qa>4||Qa===0?r.timeMonday.ceil(It):r.timeMonday(It),It=r.timeDay.offset(It,(fr.V-1)*7),fr.y=It.getFullYear(),fr.m=It.getMonth(),fr.d=It.getDate()+(fr.w+6)%7)}else("W"in fr||"U"in fr)&&("w"in fr||(fr.w="u"in fr?fr.u%7:"W"in fr?1:0),Qa="Z"in fr?a(n(fr.y,0,1)).getUTCDay():t(n(fr.y,0,1)).getDay(),fr.m=0,fr.d="W"in fr?(fr.w+6)%7+fr.W*7-(Qa+5)%7:fr.w+fr.U*7-(Qa+6)%7);return"Z"in fr?(fr.H+=fr.Z/100|0,fr.M+=fr.Z%100,a(fr)):t(fr)}}function Xt(kr,Mr,pt,fr){for(var wn=0,It=Mr.length,Qa=pt.length,en,Ri;wn=Qa)return-1;if(en=Mr.charCodeAt(wn++),en===37){if(en=Mr.charAt(wn++),Ri=it[en in o?Mr.charAt(wn++):en],!Ri||(fr=Ri(kr,pt,fr))<0)return-1}else if(en!=pt.charCodeAt(fr++))return-1}return fr}function Pt(kr,Mr,pt){var fr=aa.exec(Mr.slice(pt));return fr?(kr.p=$a[fr[0].toLowerCase()],pt+fr[0].length):-1}function oa(kr,Mr,pt){var fr=hn.exec(Mr.slice(pt));return fr?(kr.w=fa[fr[0].toLowerCase()],pt+fr[0].length):-1}function la(kr,Mr,pt){var fr=na.exec(Mr.slice(pt));return fr?(kr.w=Ja[fr[0].toLowerCase()],pt+fr[0].length):-1}function dt(kr,Mr,pt){var fr=Vr.exec(Mr.slice(pt));return fr?(kr.m=ht[fr[0].toLowerCase()],pt+fr[0].length):-1}function Ka(kr,Mr,pt){var fr=hr.exec(Mr.slice(pt));return fr?(kr.m=wt[fr[0].toLowerCase()],pt+fr[0].length):-1}function Yt(kr,Mr,pt){return Xt(kr,ge,Mr,pt)}function cc(kr,Mr,pt){return Xt(kr,Ne,Mr,pt)}function Nn(kr,Mr,pt){return Xt(kr,He,Mr,pt)}function wo(kr){return yt[kr.getDay()]}function ci(kr){return Qr[kr.getDay()]}function ca(kr){return Et[kr.getMonth()]}function vc(kr){return gt[kr.getMonth()]}function ds(kr){return Kr[+(kr.getHours()>=12)]}function In(kr){return 1+~~(kr.getMonth()/3)}function ps(kr){return yt[kr.getUTCDay()]}function h1(kr){return Qr[kr.getUTCDay()]}function d1(kr){return Et[kr.getUTCMonth()]}function p1(kr){return gt[kr.getUTCMonth()]}function Bv(kr){return Kr[+(kr.getUTCHours()>=12)]}function Ov(kr){return 1+~~(kr.getUTCMonth()/3)}return{format:function(kr){var Mr=ia(kr+="",Nt);return Mr.toString=function(){return kr},Mr},parse:function(kr){var Mr=zn(kr+="",!1);return Mr.toString=function(){return kr},Mr},utcFormat:function(kr){var Mr=ia(kr+="",kt);return Mr.toString=function(){return kr},Mr},utcParse:function(kr){var Mr=zn(kr+="",!0);return Mr.toString=function(){return kr},Mr}}}var o={"-":"",_:" ",0:"0"},l=/^\s*\d+/,s=/^%/,u=/[\\^$*+?|[\]().{}]/g;function f(ne,ge,Ne){var He=ne<0?"-":"",Kr=(He?-ne:ne)+"",Qr=Kr.length;return He+(Qr68?1900:2e3),Ne+He[0].length):-1}function _(ne,ge,Ne){var He=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(ge.slice(Ne,Ne+6));return He?(ne.Z=He[1]?0:-(He[2]+(He[3]||"00")),Ne+He[0].length):-1}function k(ne,ge,Ne){var He=l.exec(ge.slice(Ne,Ne+1));return He?(ne.q=He[0]*3-3,Ne+He[0].length):-1}function T(ne,ge,Ne){var He=l.exec(ge.slice(Ne,Ne+2));return He?(ne.m=He[0]-1,Ne+He[0].length):-1}function q(ne,ge,Ne){var He=l.exec(ge.slice(Ne,Ne+2));return He?(ne.d=+He[0],Ne+He[0].length):-1}function C(ne,ge,Ne){var He=l.exec(ge.slice(Ne,Ne+3));return He?(ne.m=0,ne.d=+He[0],Ne+He[0].length):-1}function E(ne,ge,Ne){var He=l.exec(ge.slice(Ne,Ne+2));return He?(ne.H=+He[0],Ne+He[0].length):-1}function P(ne,ge,Ne){var He=l.exec(ge.slice(Ne,Ne+2));return He?(ne.M=+He[0],Ne+He[0].length):-1}function R(ne,ge,Ne){var He=l.exec(ge.slice(Ne,Ne+2));return He?(ne.S=+He[0],Ne+He[0].length):-1}function N(ne,ge,Ne){var He=l.exec(ge.slice(Ne,Ne+3));return He?(ne.L=+He[0],Ne+He[0].length):-1}function I(ne,ge,Ne){var He=l.exec(ge.slice(Ne,Ne+6));return He?(ne.L=Math.floor(He[0]/1e3),Ne+He[0].length):-1}function O(ne,ge,Ne){var He=s.exec(ge.slice(Ne,Ne+1));return He?Ne+He[0].length:-1}function U(ne,ge,Ne){var He=l.exec(ge.slice(Ne));return He?(ne.Q=+He[0],Ne+He[0].length):-1}function Y(ne,ge,Ne){var He=l.exec(ge.slice(Ne));return He?(ne.s=+He[0],Ne+He[0].length):-1}function G(ne,ge){return f(ne.getDate(),ge,2)}function V(ne,ge){return f(ne.getHours(),ge,2)}function W(ne,ge){return f(ne.getHours()%12||12,ge,2)}function j(ne,ge){return f(1+r.timeDay.count(r.timeYear(ne),ne),ge,3)}function J(ne,ge){return f(ne.getMilliseconds(),ge,3)}function te(ne,ge){return J(ne,ge)+"000"}function ae(ne,ge){return f(ne.getMonth()+1,ge,2)}function se(ne,ge){return f(ne.getMinutes(),ge,2)}function $(ne,ge){return f(ne.getSeconds(),ge,2)}function fe(ne){var ge=ne.getDay();return ge===0?7:ge}function ie(ne,ge){return f(r.timeSunday.count(r.timeYear(ne)-1,ne),ge,2)}function ue(ne){var ge=ne.getDay();return ge>=4||ge===0?r.timeThursday(ne):r.timeThursday.ceil(ne)}function ce(ne,ge){return ne=ue(ne),f(r.timeThursday.count(r.timeYear(ne),ne)+(r.timeYear(ne).getDay()===4),ge,2)}function oe(ne){return ne.getDay()}function be(ne,ge){return f(r.timeMonday.count(r.timeYear(ne)-1,ne),ge,2)}function Re(ne,ge){return f(ne.getFullYear()%100,ge,2)}function ye(ne,ge){return ne=ue(ne),f(ne.getFullYear()%100,ge,2)}function Ce(ne,ge){return f(ne.getFullYear()%1e4,ge,4)}function Me(ne,ge){var Ne=ne.getDay();return ne=Ne>=4||Ne===0?r.timeThursday(ne):r.timeThursday.ceil(ne),f(ne.getFullYear()%1e4,ge,4)}function Le(ne){var ge=ne.getTimezoneOffset();return(ge>0?"-":(ge*=-1,"+"))+f(ge/60|0,"0",2)+f(ge%60,"0",2)}function De(ne,ge){return f(ne.getUTCDate(),ge,2)}function Ie(ne,ge){return f(ne.getUTCHours(),ge,2)}function qe(ne,ge){return f(ne.getUTCHours()%12||12,ge,2)}function Ze(ne,ge){return f(1+r.utcDay.count(r.utcYear(ne),ne),ge,3)}function Je(ne,ge){return f(ne.getUTCMilliseconds(),ge,3)}function Xe(ne,ge){return Je(ne,ge)+"000"}function Se(ne,ge){return f(ne.getUTCMonth()+1,ge,2)}function Fe(ne,ge){return f(ne.getUTCMinutes(),ge,2)}function er(ne,ge){return f(ne.getUTCSeconds(),ge,2)}function re(ne){var ge=ne.getUTCDay();return ge===0?7:ge}function xe(ne,ge){return f(r.utcSunday.count(r.utcYear(ne)-1,ne),ge,2)}function Ye(ne){var ge=ne.getUTCDay();return ge>=4||ge===0?r.utcThursday(ne):r.utcThursday.ceil(ne)}function vr(ne,ge){return ne=Ye(ne),f(r.utcThursday.count(r.utcYear(ne),ne)+(r.utcYear(ne).getUTCDay()===4),ge,2)}function Pe(ne){return ne.getUTCDay()}function me(ne,ge){return f(r.utcMonday.count(r.utcYear(ne)-1,ne),ge,2)}function Te(ne,ge){return f(ne.getUTCFullYear()%100,ge,2)}function Ue(ne,ge){return ne=Ye(ne),f(ne.getUTCFullYear()%100,ge,2)}function $e(ne,ge){return f(ne.getUTCFullYear()%1e4,ge,4)}function Oe(ne,ge){var Ne=ne.getUTCDay();return ne=Ne>=4||Ne===0?r.utcThursday(ne):r.utcThursday.ceil(ne),f(ne.getUTCFullYear()%1e4,ge,4)}function We(){return"+0000"}function ar(){return"%"}function or(ne){return+ne}function sr(ne){return Math.floor(+ne/1e3)}var Ee;Ke({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 Ke(ne){return Ee=i(ne),e.timeFormat=Ee.format,e.timeParse=Ee.parse,e.utcFormat=Ee.utcFormat,e.utcParse=Ee.utcParse,Ee}var Be="%Y-%m-%dT%H:%M:%S.%LZ";function mr(ne){return ne.toISOString()}var yr=Date.prototype.toISOString?mr:e.utcFormat(Be);function ur(ne){var ge=new Date(ne);return isNaN(ge)?null:ge}var gr=+new Date("2000-01-01T00:00:00.000Z")?ur:e.utcParse(Be);e.isoFormat=yr,e.isoParse=gr,e.timeFormatDefaultLocale=Ke,e.timeFormatLocale=i,Object.defineProperty(e,"__esModule",{value:!0})})});var f5=z((O1,VS)=>{(function(e,r){typeof O1=="object"&&typeof VS!="undefined"?r(O1):(e=typeof globalThis!="undefined"?globalThis:e||self,r(e.d3=e.d3||{}))})(O1,(function(e){"use strict";function r(T){return Math.abs(T=Math.round(T))>=1e21?T.toLocaleString("en").replace(/,/g,""):T.toString(10)}function t(T,q){if((C=(T=q?T.toExponential(q-1):T.toExponential()).indexOf("e"))<0)return null;var C,E=T.slice(0,C);return[E.length>1?E[0]+E.slice(2):E,+T.slice(C+1)]}function a(T){return T=t(Math.abs(T)),T?T[1]:NaN}function n(T,q){return function(C,E){for(var P=C.length,R=[],N=0,I=T[0],O=0;P>0&&I>0&&(O+I+1>E&&(I=Math.max(1,E-O)),R.push(C.substring(P-=I,P+I)),!((O+=I+1)>E));)I=T[N=(N+1)%T.length];return R.reverse().join(q)}}function i(T){return function(q){return q.replace(/[0-9]/g,function(C){return T[+C]})}}var o=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function l(T){if(!(q=o.exec(T)))throw new Error("invalid format: "+T);var q;return new s({fill:q[1],align:q[2],sign:q[3],symbol:q[4],zero:q[5],width:q[6],comma:q[7],precision:q[8]&&q[8].slice(1),trim:q[9],type:q[10]})}l.prototype=s.prototype;function s(T){this.fill=T.fill===void 0?" ":T.fill+"",this.align=T.align===void 0?">":T.align+"",this.sign=T.sign===void 0?"-":T.sign+"",this.symbol=T.symbol===void 0?"":T.symbol+"",this.zero=!!T.zero,this.width=T.width===void 0?void 0:+T.width,this.comma=!!T.comma,this.precision=T.precision===void 0?void 0:+T.precision,this.trim=!!T.trim,this.type=T.type===void 0?"":T.type+""}s.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 u(T){e:for(var q=T.length,C=1,E=-1,P;C0&&(E=0);break}return E>0?T.slice(0,E)+T.slice(P+1):T}var f;function c(T,q){var C=t(T,q);if(!C)return T+"";var E=C[0],P=C[1],R=P-(f=Math.max(-8,Math.min(8,Math.floor(P/3)))*3)+1,N=E.length;return R===N?E:R>N?E+new Array(R-N+1).join("0"):R>0?E.slice(0,R)+"."+E.slice(R):"0."+new Array(1-R).join("0")+t(T,Math.max(0,q+R-1))[0]}function v(T,q){var C=t(T,q);if(!C)return T+"";var E=C[0],P=C[1];return P<0?"0."+new Array(-P).join("0")+E:E.length>P+1?E.slice(0,P+1)+"."+E.slice(P+1):E+new Array(P-E.length+2).join("0")}var d={"%":function(T,q){return(T*100).toFixed(q)},b:function(T){return Math.round(T).toString(2)},c:function(T){return T+""},d:r,e:function(T,q){return T.toExponential(q)},f:function(T,q){return T.toFixed(q)},g:function(T,q){return T.toPrecision(q)},o:function(T){return Math.round(T).toString(8)},p:function(T,q){return v(T*100,q)},r:v,s:c,X:function(T){return Math.round(T).toString(16).toUpperCase()},x:function(T){return Math.round(T).toString(16)}};function p(T){return T}var y=Array.prototype.map,m=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function b(T){var q=T.grouping===void 0||T.thousands===void 0?p:n(y.call(T.grouping,Number),T.thousands+""),C=T.currency===void 0?"":T.currency[0]+"",E=T.currency===void 0?"":T.currency[1]+"",P=T.decimal===void 0?".":T.decimal+"",R=T.numerals===void 0?p:i(y.call(T.numerals,String)),N=T.percent===void 0?"%":T.percent+"",I=T.minus===void 0?"-":T.minus+"",O=T.nan===void 0?"NaN":T.nan+"";function U(G){G=l(G);var V=G.fill,W=G.align,j=G.sign,J=G.symbol,te=G.zero,ae=G.width,se=G.comma,$=G.precision,fe=G.trim,ie=G.type;ie==="n"?(se=!0,ie="g"):d[ie]||($===void 0&&($=12),fe=!0,ie="g"),(te||V==="0"&&W==="=")&&(te=!0,V="0",W="=");var ue=J==="$"?C:J==="#"&&/[boxX]/.test(ie)?"0"+ie.toLowerCase():"",ce=J==="$"?E:/[%p]/.test(ie)?N:"",oe=d[ie],be=/[defgprs%]/.test(ie);$=$===void 0?6:/[gprs]/.test(ie)?Math.max(1,Math.min(21,$)):Math.max(0,Math.min(20,$));function Re(ye){var Ce=ue,Me=ce,Le,De,Ie;if(ie==="c")Me=oe(ye)+Me,ye="";else{ye=+ye;var qe=ye<0||1/ye<0;if(ye=isNaN(ye)?O:oe(Math.abs(ye),$),fe&&(ye=u(ye)),qe&&+ye==0&&j!=="+"&&(qe=!1),Ce=(qe?j==="("?j:I:j==="-"||j==="("?"":j)+Ce,Me=(ie==="s"?m[8+f/3]:"")+Me+(qe&&j==="("?")":""),be){for(Le=-1,De=ye.length;++LeIe||Ie>57){Me=(Ie===46?P+ye.slice(Le+1):ye.slice(Le))+Me,ye=ye.slice(0,Le);break}}}se&&!te&&(ye=q(ye,1/0));var Ze=Ce.length+ye.length+Me.length,Je=Ze>1)+Ce+ye+Me+Je.slice(Ze);break;default:ye=Je+Ce+ye+Me;break}return R(ye)}return Re.toString=function(){return G+""},Re}function Y(G,V){var W=U((G=l(G),G.type="f",G)),j=Math.max(-8,Math.min(8,Math.floor(a(V)/3)))*3,J=Math.pow(10,-j),te=m[8+j/3];return function(ae){return W(J*ae)+te}}return{format:U,formatPrefix:Y}}var A;w({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function w(T){return A=b(T),e.format=A.format,e.formatPrefix=A.formatPrefix,A}function x(T){return Math.max(0,-a(Math.abs(T)))}function _(T,q){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(a(q)/3)))*3-a(Math.abs(T)))}function k(T,q){return T=Math.abs(T),q=Math.abs(q)-T,Math.max(0,a(q)-a(T))+1}e.FormatSpecifier=s,e.formatDefaultLocale=w,e.formatLocale=b,e.formatSpecifier=l,e.precisionFixed=x,e.precisionPrefix=_,e.precisionRound=k,Object.defineProperty(e,"__esModule",{value:!0})}))});var WS=z((uje,jS)=>{"use strict";jS.exports=function(e){for(var r=e.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}});var Br=z((fje,XS)=>{"use strict";var Kce=WS();XS.exports=function(e){var r=typeof e;if(r==="string"){var t=e;if(e=+e,e===0&&Kce(t))return!1}else if(r!=="number")return!1;return e-e<1}});var Zt={};qt(Zt,{ALMOST_EQUAL:()=>y0e,BADNUM:()=>c5,EPOCHJD:()=>m0e,FP_SAFE:()=>Qce,LOG_CLIP:()=>g0e,MINUS_SIGN:()=>b0e,ONEAVGMONTH:()=>l0e,ONEAVGQUARTER:()=>n0e,ONEAVGYEAR:()=>r0e,ONEDAY:()=>f0e,ONEHOUR:()=>c0e,ONEMAXMONTH:()=>o0e,ONEMAXQUARTER:()=>a0e,ONEMAXYEAR:()=>e0e,ONEMICROSEC:()=>p0e,ONEMILLI:()=>d0e,ONEMIN:()=>v0e,ONEMINMONTH:()=>s0e,ONEMINQUARTER:()=>i0e,ONEMINYEAR:()=>t0e,ONESEC:()=>h0e,ONEWEEK:()=>u0e});var c5,Qce,e0e,r0e,t0e,a0e,n0e,i0e,o0e,l0e,s0e,u0e,f0e,c0e,v0e,h0e,d0e,p0e,m0e,y0e,g0e,b0e,jt=St(()=>{"use strict";c5=void 0,Qce=Number.MAX_VALUE*1e-4,e0e=316224e5,r0e=315576e5,t0e=31536e6,a0e=79488e5,n0e=78894e5,i0e=76896e5,o0e=26784e5,l0e=26298e5,s0e=24192e5,u0e=6048e5,f0e=864e5,c0e=36e5,v0e=6e4,h0e=1e3,d0e=1,p0e=.001,m0e=24405875e-1,y0e=1-1e-6,g0e=10,b0e="\u2212"});var v5=z((H1,ZS)=>{(function(e,r){typeof H1=="object"&&typeof ZS!="undefined"?r(H1):(e=typeof globalThis!="undefined"?globalThis:e||self,r(e["base64-arraybuffer"]={}))})(H1,(function(e){"use strict";for(var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),a=0;a>2],f+=r[(l[s]&3)<<4|l[s+1]>>4],f+=r[(l[s+1]&15)<<2|l[s+2]>>6],f+=r[l[s+2]&63];return u%3===2?f=f.substring(0,f.length-1)+"=":u%3===1&&(f=f.substring(0,f.length-2)+"=="),f},i=function(o){var l=o.length*.75,s=o.length,u,f=0,c,v,d,p;o[o.length-1]==="="&&(l--,o[o.length-2]==="="&&l--);var y=new ArrayBuffer(l),m=new Uint8Array(y);for(u=0;u>4,m[f++]=(v&15)<<4|d>>2,m[f++]=(d&3)<<6|p&63;return y};e.decode=i,e.encode=n,Object.defineProperty(e,"__esModule",{value:!0})}))});var Du=z((cje,$S)=>{"use strict";$S.exports=function(r){return window&&window.process&&window.process.versions?Object.prototype.toString.call(r)==="[object Object]":Object.prototype.toString.call(r)==="[object Object]"&&Object.getPrototypeOf(r).hasOwnProperty("hasOwnProperty")}});var Zn=z(Mo=>{"use strict";var x0e=v5().decode,_0e=Du(),h5=Array.isArray,w0e=ArrayBuffer,A0e=DataView;function JS(e){return w0e.isView(e)&&!(e instanceof A0e)}Mo.isTypedArray=JS;function U1(e){return h5(e)||JS(e)}Mo.isArrayOrTypedArray=U1;function T0e(e){return!U1(e[0])}Mo.isArray1D=T0e;Mo.ensureArray=function(e,r){return h5(e)||(e=[]),e.length=r,e};var Va={u1c:typeof Uint8ClampedArray=="undefined"?void 0:Uint8ClampedArray,i1:typeof Int8Array=="undefined"?void 0:Int8Array,u1:typeof Uint8Array=="undefined"?void 0:Uint8Array,i2:typeof Int16Array=="undefined"?void 0:Int16Array,u2:typeof Uint16Array=="undefined"?void 0:Uint16Array,i4:typeof Int32Array=="undefined"?void 0:Int32Array,u4:typeof Uint32Array=="undefined"?void 0:Uint32Array,f4:typeof Float32Array=="undefined"?void 0:Float32Array,f8:typeof Float64Array=="undefined"?void 0:Float64Array};Va.uint8c=Va.u1c;Va.uint8=Va.u1;Va.int8=Va.i1;Va.uint16=Va.u2;Va.int16=Va.i2;Va.uint32=Va.u4;Va.int32=Va.i4;Va.float32=Va.f4;Va.float64=Va.f8;function d5(e){return e.constructor===ArrayBuffer}Mo.isArrayBuffer=d5;Mo.decodeTypedArraySpec=function(e){var r=[],t=M0e(e),a=t.dtype,n=Va[a];if(!n)throw new Error('Error in dtype: "'+a+'"');var i=n.BYTES_PER_ELEMENT,o=t.bdata;d5(o)||(o=x0e(o));var l=t.shape===void 0?[o.byteLength/i]:(""+t.shape).split(",");l.reverse();var s=l.length,u,f,c=+l[0],v=i*c,d=0;if(s===1)r=new n(o);else if(s===2)for(u=+l[1],f=0;f{"use strict";var QS=Br(),m5=Zn().isArrayOrTypedArray;aq.exports=function(r,t){if(QS(t))t=String(t);else if(typeof t!="string"||t.slice(-4)==="[-1]")throw"bad property string";var a=t.split("."),n,i,o,l;for(l=0;l{"use strict";var wc=G1(),C0e=/^\w*$/,D0e=0,nq=1,Y1=2,iq=3,Eu=4;oq.exports=function(r,t,a,n){a=a||"name",n=n||"value";var i,o,l,s={};t&&t.length?(l=wc(r,t),o=l.get()):o=r,t=t||"";var u={};if(o)for(i=0;i2)return s[d]=s[d]|Y1,c.set(v,null);if(f){for(i=d;i{"use strict";var E0e=/^(.*)(\.[^\.\[\]]+|\[\d\])$/,P0e=/^[^\.\[\]]+$/;sq.exports=function(e,r){for(;r;){var t=e.match(E0e);if(t)e=t[1];else if(e.match(P0e))e="";else throw new Error("bad relativeAttr call:"+[e,r]);if(r.charAt(0)==="^")r=r.slice(1);else break}return e&&r.charAt(0)!=="["?e+"."+r:e+r}});var V1=z((mje,fq)=>{"use strict";var R0e=Br();fq.exports=function(r,t){if(r>0)return Math.log(r)/Math.LN10;var a=Math.log(Math.min(t[0],t[1]))/Math.LN10;return R0e(a)||(a=Math.log(Math.max(t[0],t[1]))/Math.LN10-6),a}});var hq=z((yje,vq)=>{"use strict";var cq=Zn().isArrayOrTypedArray,Kv=Du();vq.exports=function e(r,t){for(var a in t){var n=t[a],i=r[a];if(i!==n)if(a.charAt(0)==="_"||typeof n=="function"){if(a in r)continue;r[a]=n}else if(cq(n)&&cq(i)&&Kv(n[0])){if(a==="customdata"||a==="ids")continue;for(var o=Math.min(n.length,i.length),l=0;lF0e,modHalf:()=>z0e});function F0e(e,r){let t=e%r;return t<0?t+r:t}function z0e(e,r){return Math.abs(e)>r/2?e-Math.round(e/r)*r:e}var Tc=St(()=>{"use strict"});var Mt=z(rh=>{"use strict";var dq=Du(),Qv=Array.isArray;function N0e(e,r){var t,a;for(t=0;t{"use strict";pq.exports=function(e){var r=e.variantValues,t=e.editType,a=e.colorEditType;a===void 0&&(a=t);var n={editType:t,valType:"integer",min:1,max:1e3,extras:["normal","bold"],dflt:"normal"};e.noNumericWeightValues&&(n.valType="enumerated",n.values=n.extras,n.extras=void 0,n.min=void 0,n.max=void 0);var i={family:{valType:"string",noBlank:!0,strict:!0,editType:t},size:{valType:"number",min:1,editType:t},color:{valType:"color",editType:a},weight:n,style:{editType:t,valType:"enumerated",values:["normal","italic"],dflt:"normal"},variant:e.noFontVariant?void 0:{editType:t,valType:"enumerated",values:r||["normal","small-caps","all-small-caps","all-petite-caps","petite-caps","unicase"],dflt:"normal"},textcase:e.noFontTextcase?void 0:{editType:t,valType:"enumerated",values:["normal","word caps","upper","lower"],dflt:"normal"},lineposition:e.noFontLineposition?void 0:{editType:t,valType:"flaglist",flags:["under","over","through"],extras:["none"],dflt:"none"},shadow:e.noFontShadow?void 0:{editType:t,valType:"string",dflt:e.autoShadowDflt?"auto":"none"},editType:t};return e.autoSize&&(i.size.dflt="auto"),e.autoColor&&(i.color.dflt="auto"),e.arrayOk&&(i.family.arrayOk=!0,i.weight.arrayOk=!0,i.style.arrayOk=!0,e.noFontVariant||(i.variant.arrayOk=!0),e.noFontTextcase||(i.textcase.arrayOk=!0),e.noFontLineposition||(i.lineposition.arrayOk=!0),e.noFontShadow||(i.shadow.arrayOk=!0),i.size.arrayOk=!0,i.color.arrayOk=!0),i}});var th={};qt(th,{HOVERARROWSIZE:()=>B0e,HOVERFONT:()=>U0e,HOVERFONTSIZE:()=>H0e,HOVERID:()=>Y0e,HOVERMINTIME:()=>G0e,HOVERTEXTPAD:()=>O0e,YANGLE:()=>I0e});var I0e,B0e,O0e,H0e,U0e,G0e,Y0e,ah=St(()=>{"use strict";I0e=60,B0e=6,O0e=3,H0e=13,U0e="Arial, sans-serif",G0e=50,Y0e="-hover"});var Mc=z((xje,gq)=>{"use strict";var mq=(ah(),ze(th)),yq=Ca(),y5=yq({editType:"none"});y5.family.dflt=mq.HOVERFONT;y5.size.dflt=mq.HOVERFONTSIZE;gq.exports={clickmode:{valType:"flaglist",flags:["event","select"],dflt:"event",editType:"plot",extras:["none"]},dragmode:{valType:"enumerated",values:["zoom","pan","select","lasso","drawclosedpath","drawopenpath","drawline","drawrect","drawcircle","orbit","turntable",!1],dflt:"zoom",editType:"modebar"},hovermode:{valType:"enumerated",values:["x","y","closest",!1,"x unified","y unified"],dflt:"closest",editType:"modebar"},hoversort:{valType:"enumerated",values:["trace","value descending","value ascending"],dflt:"trace",editType:"none"},hoversubplots:{valType:"enumerated",values:["single","overlaying","axis"],dflt:"overlaying",editType:"none"},hoveranywhere:{valType:"boolean",dflt:!1,editType:"none"},clickanywhere:{valType:"boolean",dflt:!1,editType:"none"},hoverdistance:{valType:"integer",min:-1,dflt:20,editType:"none"},spikedistance:{valType:"integer",min:-1,dflt:-1,editType:"none"},hoverlabel:{bgcolor:{valType:"color",editType:"none"},bordercolor:{valType:"color",editType:"none"},font:y5,grouptitlefont:yq({editType:"none"}),align:{valType:"enumerated",values:["left","right","auto"],dflt:"auto",editType:"none"},namelength:{valType:"integer",min:-1,dflt:15,editType:"none"},showarrow:{valType:"boolean",dflt:!0,editType:"none"},editType:"none"},selectdirection:{valType:"enumerated",values:["h","v","d","any"],dflt:"any",editType:"none"}}});var j1=z((_je,bq)=>{"use strict";var V0e=Ca(),nh=Mc().hoverlabel,ih=Mt().extendFlat;bq.exports={hoverlabel:{bgcolor:ih({},nh.bgcolor,{arrayOk:!0}),bordercolor:ih({},nh.bordercolor,{arrayOk:!0}),font:V0e({arrayOk:!0,editType:"none"}),align:ih({},nh.align,{arrayOk:!0}),namelength:ih({},nh.namelength,{arrayOk:!0}),showarrow:ih({},nh.showarrow),editType:"none"}}});var On=z((wje,xq)=>{"use strict";var j0e=Ca(),W0e=j1();xq.exports={type:{valType:"enumerated",values:[],dflt:"scatter",editType:"calc+clearAxisTypes",_noTemplating:!0},visible:{valType:"enumerated",values:[!0,!1,"legendonly"],dflt:!0,editType:"calc"},showlegend:{valType:"boolean",dflt:!0,editType:"style"},legend:{valType:"subplotid",dflt:"legend",editType:"style"},legendgroup:{valType:"string",dflt:"",editType:"style"},legendgrouptitle:{text:{valType:"string",dflt:"",editType:"style"},font:j0e({editType:"style"}),editType:"style"},legendrank:{valType:"number",dflt:1e3,editType:"style"},legendwidth:{valType:"number",min:0,editType:"style"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"style"},name:{valType:"string",editType:"style"},uid:{valType:"string",editType:"plot",anim:!0},ids:{valType:"data_array",editType:"calc",anim:!0},customdata:{valType:"data_array",editType:"calc"},meta:{valType:"any",arrayOk:!0,editType:"plot"},selectedpoints:{valType:"any",editType:"calc"},hoverinfo:{valType:"flaglist",flags:["x","y","z","text","name"],extras:["all","none","skip"],arrayOk:!0,dflt:"all",editType:"none"},hoverlabel:W0e.hoverlabel,uirevision:{valType:"any",editType:"none"}}});var vC=z((Lje,cC)=>{var u_=Object.defineProperty,X0e=Object.getOwnPropertyDescriptor,Z0e=Object.getOwnPropertyNames,$0e=Object.prototype.hasOwnProperty,J0e=(e,r)=>{for(var t in r)u_(e,t,{get:r[t],enumerable:!0})},K0e=(e,r,t,a)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of Z0e(r))!$0e.call(e,n)&&n!==t&&u_(e,n,{get:()=>r[n],enumerable:!(a=X0e(r,n))||a.enumerable});return e},Q0e=e=>K0e(u_({},"__esModule",{value:!0}),e),Cq={};J0e(Cq,{a98:()=>Y2e,average:()=>Zve,averageAngle:()=>al,averageNumber:()=>Wq,blend:()=>Xde,blerp:()=>G5,clampChroma:()=>d2e,clampGamut:()=>z_,clampRgb:()=>h2e,colorsNamed:()=>Eq,convertA98ToXyz65:()=>Y5,convertCubehelixToRgb:()=>Vq,convertDlchToLab65:()=>rp,convertHsiToRgb:()=>rL,convertHslToRgb:()=>nL,convertHsvToRgb:()=>p_,convertHwbToRgb:()=>sL,convertItpToXyz65:()=>j5,convertJabToJch:()=>X5,convertJabToRgb:()=>__,convertJabToXyz65:()=>b_,convertJchToJab:()=>Z5,convertLab65ToDlch:()=>tp,convertLab65ToRgb:()=>hh,convertLab65ToXyz65:()=>v_,convertLabToLch:()=>zl,convertLabToRgb:()=>A_,convertLabToXyz50:()=>vp,convertLchToLab:()=>Nl,convertLchuvToLuv:()=>k_,convertLrgbToOklab:()=>S_,convertLrgbToRgb:()=>Bu,convertLuvToLchuv:()=>M_,convertLuvToXyz50:()=>np,convertOkhslToOklab:()=>K5,convertOkhsvToOklab:()=>e_,convertOklabToLrgb:()=>Pc,convertOklabToOkhsl:()=>J5,convertOklabToOkhsv:()=>Q5,convertOklabToRgb:()=>mh,convertP3ToXyz65:()=>r_,convertProphotoToXyz50:()=>n_,convertRec2020ToXyz65:()=>o_,convertRgbToCubehelix:()=>Yq,convertRgbToHsi:()=>tL,convertRgbToHsl:()=>iL,convertRgbToHsv:()=>m_,convertRgbToHwb:()=>uL,convertRgbToJab:()=>x_,convertRgbToLab:()=>T_,convertRgbToLab65:()=>dh,convertRgbToLrgb:()=>Iu,convertRgbToOklab:()=>ph,convertRgbToXyb:()=>NL,convertRgbToXyz50:()=>Ec,convertRgbToXyz65:()=>gs,convertRgbToYiq:()=>YL,convertXybToRgb:()=>IL,convertXyz50ToLab:()=>hp,convertXyz50ToLuv:()=>ap,convertXyz50ToProphoto:()=>a_,convertXyz50ToRgb:()=>Dc,convertXyz50ToXyz65:()=>UL,convertXyz65ToA98:()=>V5,convertXyz65ToItp:()=>W5,convertXyz65ToJab:()=>g_,convertXyz65ToLab65:()=>h_,convertXyz65ToP3:()=>t_,convertXyz65ToRec2020:()=>i_,convertXyz65ToRgb:()=>bs,convertXyz65ToXyz50:()=>HL,convertYiqToRgb:()=>VL,converter:()=>Bt,cubehelix:()=>V2e,differenceCie76:()=>Uve,differenceCie94:()=>Gve,differenceCiede2000:()=>Yve,differenceCmc:()=>Vve,differenceEuclidean:()=>Cc,differenceHueChroma:()=>vh,differenceHueNaive:()=>jq,differenceHueSaturation:()=>ch,differenceHyab:()=>jve,differenceItp:()=>Xve,differenceKotsarenkoRamos:()=>Wve,displayable:()=>F_,dlab:()=>j2e,dlch:()=>W2e,easingGamma:()=>oC,easingInOutSine:()=>U2e,easingMidpoint:()=>QL,easingSmootherstep:()=>O2e,easingSmoothstep:()=>N2e,easingSmoothstepInverse:()=>I2e,filterBrightness:()=>A2e,filterContrast:()=>T2e,filterDeficiencyDeuter:()=>F2e,filterDeficiencyProt:()=>R2e,filterDeficiencyTrit:()=>z2e,filterGrayscale:()=>S2e,filterHueRotate:()=>L2e,filterInvert:()=>q2e,filterSaturate:()=>k2e,filterSepia:()=>M2e,fixupAlpha:()=>Ba,fixupHueDecreasing:()=>Nve,fixupHueIncreasing:()=>zve,fixupHueLonger:()=>Fve,fixupHueShorter:()=>tl,formatCss:()=>Hde,formatHex:()=>Ude,formatHex8:()=>Gde,formatHsl:()=>Vde,formatRgb:()=>Yde,getMode:()=>Mn,hsi:()=>X2e,hsl:()=>Z2e,hsv:()=>$2e,hwb:()=>J2e,inGamut:()=>mp,interpolate:()=>a2e,interpolateWith:()=>rC,interpolateWithPremultipliedAlpha:()=>n2e,interpolatorLinear:()=>wr,interpolatorPiecewise:()=>Uq,interpolatorSplineBasis:()=>aC,interpolatorSplineBasisClosed:()=>nC,interpolatorSplineMonotone:()=>l2e,interpolatorSplineMonotone2:()=>s2e,interpolatorSplineMonotoneClosed:()=>u2e,interpolatorSplineNatural:()=>i2e,interpolatorSplineNaturalClosed:()=>o2e,itp:()=>K2e,jab:()=>Q2e,jch:()=>e1e,lab:()=>r1e,lab65:()=>t1e,lch:()=>a1e,lch65:()=>n1e,lchuv:()=>i1e,lerp:()=>Ru,lrgb:()=>o1e,luv:()=>l1e,mapAlphaDivide:()=>KL,mapAlphaMultiply:()=>JL,mapTransferGamma:()=>Qde,mapTransferLinear:()=>E_,mapper:()=>yh,modeA98:()=>Gq,modeCubehelix:()=>Xq,modeDlab:()=>Qq,modeDlch:()=>eL,modeHsi:()=>aL,modeHsl:()=>d_,modeHsv:()=>y_,modeHwb:()=>cL,modeItp:()=>dL,modeJab:()=>pL,modeJch:()=>mL,modeLab:()=>dp,modeLab65:()=>gL,modeLch:()=>pp,modeLch65:()=>xL,modeLchuv:()=>AL,modeLrgb:()=>TL,modeLuv:()=>ML,modeOkhsl:()=>SL,modeOkhsv:()=>qL,modeOklab:()=>CL,modeOklch:()=>EL,modeP3:()=>PL,modeProphoto:()=>RL,modeRec2020:()=>FL,modeRgb:()=>Nu,modeXyb:()=>BL,modeXyz50:()=>OL,modeXyz65:()=>GL,modeYiq:()=>jL,nearest:()=>y2e,okhsl:()=>s1e,okhsv:()=>u1e,oklab:()=>f1e,oklch:()=>c1e,p3:()=>v1e,parse:()=>Bq,parseHex:()=>Rq,parseHsl:()=>lL,parseHslLegacy:()=>oL,parseHwb:()=>fL,parseLab:()=>yL,parseLch:()=>bL,parseNamed:()=>Pq,parseOklab:()=>LL,parseOklch:()=>DL,parseRgb:()=>Oq,parseRgbLegacy:()=>Fq,parseTransparent:()=>Hq,prophoto:()=>h1e,random:()=>Kde,rec2020:()=>d1e,removeParser:()=>hve,rgb:()=>p1e,round:()=>WL,samples:()=>v2e,serializeHex:()=>D_,serializeHex8:()=>XL,serializeHsl:()=>$L,serializeRgb:()=>ZL,toGamut:()=>p2e,trilerp:()=>Tve,unlerp:()=>Ave,useMode:()=>Lt,useParser:()=>Nq,wcagContrast:()=>G2e,wcagLuminance:()=>s_,xyb:()=>m1e,xyz50:()=>y1e,xyz65:()=>g1e,yiq:()=>b1e});cC.exports=Q0e(Cq);var eve=(e,r)=>{if(typeof e=="number"){if(r===3)return{mode:"rgb",r:(e>>8&15|e>>4&240)/255,g:(e>>4&15|e&240)/255,b:(e&15|e<<4&240)/255};if(r===4)return{mode:"rgb",r:(e>>12&15|e>>8&240)/255,g:(e>>8&15|e>>4&240)/255,b:(e>>4&15|e&240)/255,alpha:(e&15|e<<4&240)/255};if(r===6)return{mode:"rgb",r:(e>>16&255)/255,g:(e>>8&255)/255,b:(e&255)/255};if(r===8)return{mode:"rgb",r:(e>>24&255)/255,g:(e>>16&255)/255,b:(e>>8&255)/255,alpha:(e&255)/255}}},Dq=eve,rve={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},Eq=rve,tve=e=>Dq(Eq[e.toLowerCase()],6),Pq=tve,ave=/^#?([0-9a-f]{8}|[0-9a-f]{6}|[0-9a-f]{4}|[0-9a-f]{3})$/i,nve=e=>{let r;return(r=e.match(ave))?Dq(parseInt(r[1],16),r[1].length):void 0},Rq=nve,$n="([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)",Aje=`(?:${$n}|none)`,sh=`${$n}%`,Tje=`(?:${$n}%|none)`,f_=`(?:${$n}%|${$n})`,ive=`(?:${$n}%|${$n}|none)`,ove=`(?:${$n}(deg|grad|rad|turn)|${$n})`,Mje=`(?:${$n}(deg|grad|rad|turn)|${$n}|none)`,qc="\\s*,\\s*",kje=new RegExp("^"+ive+"$"),lve=new RegExp(`^rgba?\\(\\s*${$n}${qc}${$n}${qc}${$n}\\s*(?:,\\s*${f_}\\s*)?\\)$`),sve=new RegExp(`^rgba?\\(\\s*${sh}${qc}${sh}${qc}${sh}\\s*(?:,\\s*${f_}\\s*)?\\)$`),uve=e=>{let r={mode:"rgb"},t;if(t=e.match(lve))t[1]!==void 0&&(r.r=t[1]/255),t[2]!==void 0&&(r.g=t[2]/255),t[3]!==void 0&&(r.b=t[3]/255);else if(t=e.match(sve))t[1]!==void 0&&(r.r=t[1]/100),t[2]!==void 0&&(r.g=t[2]/100),t[3]!==void 0&&(r.b=t[3]/100);else return;return t[4]!==void 0?r.alpha=Math.max(0,Math.min(1,t[4]/100)):t[5]!==void 0&&(r.alpha=Math.max(0,Math.min(1,+t[5]))),r},Fq=uve,fve=(e,r)=>e===void 0?void 0:typeof e!="object"?Bq(e):e.mode!==void 0?e:r?Vt(At({},e),{mode:r}):void 0,ko=fve,cve=(e="rgb")=>r=>(r=ko(r,e))!==void 0?r.mode===e?r:rl[r.mode][e]?rl[r.mode][e](r):e==="rgb"?rl[r.mode].rgb(r):rl.rgb[e](rl[r.mode].rgb(r)):void 0,Bt=cve,rl={},zq={},Lc=[],c_={},vve=e=>e,Lt=e=>(rl[e.mode]=At(At({},rl[e.mode]),e.toMode),Object.keys(e.fromMode||{}).forEach(r=>{rl[r]||(rl[r]={}),rl[r][e.mode]=e.fromMode[r]}),e.ranges||(e.ranges={}),e.difference||(e.difference={}),e.channels.forEach(r=>{if(e.ranges[r]===void 0&&(e.ranges[r]=[0,1]),!e.interpolate[r])throw new Error(`Missing interpolator for: ${r}`);typeof e.interpolate[r]=="function"&&(e.interpolate[r]={use:e.interpolate[r]}),e.interpolate[r].fixup||(e.interpolate[r].fixup=vve)}),zq[e.mode]=e,(e.parse||[]).forEach(r=>{Nq(r,e.mode)}),Bt(e.mode)),Mn=e=>zq[e],Nq=(e,r)=>{if(typeof e=="string"){if(!r)throw new Error("'mode' required when 'parser' is a string");c_[e]=r}else typeof e=="function"&&Lc.indexOf(e)<0&&Lc.push(e)},hve=e=>{if(typeof e=="string")delete c_[e];else if(typeof e=="function"){let r=Lc.indexOf(e);r>0&&Lc.splice(r,1)}},H5=/[^\x00-\x7F]|[a-zA-Z_]/,dve=/[^\x00-\x7F]|[-\w]/,pr={Function:"function",Ident:"ident",Number:"number",Percentage:"percentage",ParenClose:")",None:"none",Hue:"hue",Alpha:"alpha"},Ur=0;function W1(e){let r=e[Ur],t=e[Ur+1];return r==="-"||r==="+"?/\d/.test(t)||t==="."&&/\d/.test(e[Ur+2]):r==="."?/\d/.test(t):/\d/.test(r)}function U5(e){if(Ur>=e.length)return!1;let r=e[Ur];if(H5.test(r))return!0;if(r==="-"){if(e.length-Ur<2)return!1;let t=e[Ur+1];return!!(t==="-"||H5.test(t))}return!1}var pve={deg:1,rad:180/Math.PI,grad:9/10,turn:360};function oh(e){let r="";if((e[Ur]==="-"||e[Ur]==="+")&&(r+=e[Ur++]),r+=X1(e),e[Ur]==="."&&/\d/.test(e[Ur+1])&&(r+=e[Ur++]+X1(e)),(e[Ur]==="e"||e[Ur]==="E")&&((e[Ur+1]==="-"||e[Ur+1]==="+")&&/\d/.test(e[Ur+2])?r+=e[Ur++]+e[Ur++]+X1(e):/\d/.test(e[Ur+1])&&(r+=e[Ur++]+X1(e))),U5(e)){let t=J1(e);return t==="deg"||t==="rad"||t==="turn"||t==="grad"?{type:pr.Hue,value:r*pve[t]}:void 0}return e[Ur]==="%"?(Ur++,{type:pr.Percentage,value:+r}):{type:pr.Number,value:+r}}function X1(e){let r="";for(;/\d/.test(e[Ur]);)r+=e[Ur++];return r}function J1(e){let r="";for(;Ur24?(isFinite(g)&&(clearTimeout(Lu),Lu=setTimeout(Bx,g)),Ni=0):(Ni=1,Sk(Bx))}e.timer.flush=function(){qk(),Lk()};function qk(){for(var h=Date.now(),g=tn;g;)h>=g.t&&g.c(h-g.t)&&(g.c=null),g=g.n;return h}function Lk(){for(var h,g=tn,A=1/0;g;)g.c?(g.t=0;--F)ee.push(L[X[K[F]][2]]);for(F=+pe;F1&&Gr(h[A[q-2]],h[A[q-1]],h[L])<=0;)--q;A[q++]=L}return A.slice(0,q)}function efe(h,g){return h[0]-g[0]||h[1]-g[1]}e.geom.polygon=function(h){return $(h,g1),h};var g1=e.geom.polygon.prototype=[];g1.area=function(){for(var h=-1,g=this.length,A,q=this[g-1],L=0;++hze)F=F.L;else if(O=g-nfe(F,A),O>ze){if(!F.R){q=F;break}F=F.R}else{D>-ze?(q=F.P,L=F):O>-ze?(q=F,L=F.N):q=L=F;break}var H=Rk(h);if(yc.insert(q,H),!(!q&&!L)){if(q===L){bc(q),L=Rk(q.site),yc.insert(H,L),H.edge=L.edge=Gv(q.site,H.site),gc(q),gc(L);return}if(!L){H.edge=Gv(q.site,H.site);return}bc(q),bc(L);var X=q.site,Z=X.x,K=X.y,Q=h.x-Z,pe=h.y-K,we=L.site,ee=we.x-Z,fe=we.y-K,ve=2*(Q*fe-pe*ee),_e=Q*Q+pe*pe,Te=ee*ee+fe*fe,de={x:(fe*_e-pe*Te)/ve+Z,y:(Q*Te-ee*_e)/ve+K};b1(L.edge,X,we,de),H.edge=Gv(X,h,null,de),L.edge=Gv(h,we,null,de),gc(q),gc(L)}}function Fk(h,g){var A=h.site,q=A.x,L=A.y,D=L-g;if(!D)return q;var O=h.P;if(!O)return-1/0;A=O.site;var F=A.x,H=A.y,X=H-g;if(!X)return F;var Z=F-q,K=1/D-1/X,Q=Z/X;return K?(-Q+Math.sqrt(Q*Q-2*K*(Z*Z/(-2*X)-H+X/2+L-D/2)))/K+q:(q+F)/2}function nfe(h,g){var A=h.N;if(A)return Fk(A,g);var q=h.site;return q.y===g?q.x:1/0}function zk(h){this.site=h,this.edges=[]}zk.prototype.prepare=function(){for(var h=this.edges,g=h.length,A;g--;)A=h[g].edge,(!A.b||!A.a)&&h.splice(g,1);return h.sort(Nk),h.length};function ife(h){for(var g=h[0][0],A=h[1][0],q=h[0][1],L=h[1][1],D,O,F,H,X=Cu,Z=X.length,K,Q,pe,we,ee,fe;Z--;)if(K=X[Z],!(!K||!K.prepare()))for(pe=K.edges,we=pe.length,Q=0;Qze||b(H-O)>ze)&&(pe.splice(Q,0,new x1(ffe(K.site,fe,b(F-g)ze?{x:g,y:b(D-g)ze?{x:b(O-L)ze?{x:A,y:b(D-A)ze?{x:b(O-q)=-rr)){var Q=H*H+X*X,pe=Z*Z+fe*fe,we=(fe*Q-X*pe)/K,ee=(H*pe-Z*Q)/K,fe=ee+F,ve=Pk.pop()||new ofe;ve.arc=h,ve.site=L,ve.x=we+O,ve.y=fe+Math.sqrt(we*we+ee*ee),ve.cy=fe,h.circle=ve;for(var _e=null,Te=Uv._;Te;)if(ve.y0)){if(ee/=pe,pe<0){if(ee0){if(ee>Q)return;ee>K&&(K=ee)}if(ee=A-F,!(!pe&&ee<0)){if(ee/=pe,pe<0){if(ee>Q)return;ee>K&&(K=ee)}else if(pe>0){if(ee0)){if(ee/=we,we<0){if(ee0){if(ee>Q)return;ee>K&&(K=ee)}if(ee=q-H,!(!we&&ee<0)){if(ee/=we,we<0){if(ee>Q)return;ee>K&&(K=ee)}else if(we>0){if(ee0&&(L.a={x:F+K*pe,y:H+K*we}),Q<1&&(L.b={x:F+Q*pe,y:H+Q*we}),L}}}}}}function sfe(h){for(var g=mc,A=lfe(h[0][0],h[0][1],h[1][0],h[1][1]),q=g.length,L;q--;)L=g[q],(!ufe(L,h)||!A(L)||b(L.a.x-L.b.x)=D)return;if(Z>Q){if(!q)q={x:we,y:O};else if(q.y>=F)return;A={x:we,y:F}}else{if(!q)q={x:we,y:F};else if(q.y1)if(Z>Q){if(!q)q={x:(O-ve)/fe,y:O};else if(q.y>=F)return;A={x:(F-ve)/fe,y:F}}else{if(!q)q={x:(F-ve)/fe,y:F};else if(q.y=D)return;A={x:D,y:fe*D+ve}}else{if(!q)q={x:D,y:fe*D+ve};else if(q.x=Z&&ve.x<=Q&&ve.y>=K&&ve.y<=pe?[[Z,pe],[Q,pe],[Q,K],[Z,K]]:[];_e.point=H[ee]}),X}function F(H){return H.map(function(X,Z){return{x:Math.round(q(X,Z)/ze)*ze,y:Math.round(L(X,Z)/ze)*ze,i:Z}})}return O.links=function(H){return Vx(F(H)).edges.filter(function(X){return X.l&&X.r}).map(function(X){return{source:H[X.l.i],target:H[X.r.i]}})},O.triangles=function(H){var X=[];return Vx(F(H)).cells.forEach(function(Z,K){for(var Q=Z.site,pe=Z.edges.sort(Nk),we=-1,ee=pe.length,fe,ve,_e=pe[ee-1].edge,Te=_e.l===Q?_e.r:_e.l;++weTe&&(Te=Z.x),Z.y>de&&(de=Z.y),pe.push(Z.x),we.push(Z.y);else for(ee=0;eeTe&&(Te=Ve),lr>de&&(de=lr),pe.push(Ve),we.push(lr)}var hr=Te-ve,fr=de-_e;hr>fr?de=_e+hr:Te=ve+fr;function br(Tr,Er,ct,ya,xt,ir,Ir,Or){if(!(isNaN(ct)||isNaN(ya)))if(Tr.leaf){var vt=Tr.x,ua=Tr.y;if(vt!=null)if(b(vt-ct)+b(ua-ya)<.01)xr(Tr,Er,ct,ya,xt,ir,Ir,Or);else{var Na=Tr.point;Tr.x=Tr.y=Tr.point=null,xr(Tr,Na,vt,ua,xt,ir,Ir,Or),xr(Tr,Er,ct,ya,xt,ir,Ir,Or)}else Tr.x=ct,Tr.y=ya,Tr.point=Er}else xr(Tr,Er,ct,ya,xt,ir,Ir,Or)}function xr(Tr,Er,ct,ya,xt,ir,Ir,Or){var vt=(xt+Ir)*.5,ua=(ir+Or)*.5,Na=ct>=vt,nn=ya>=ua,Mn=nn<<1|Na;Tr.leaf=!1,Tr=Tr.nodes[Mn]||(Tr.nodes[Mn]=Ok()),Na?xt=vt:Ir=vt,nn?ir=ua:Or=ua,br(Tr,Er,ct,ya,xt,ir,Ir,Or)}var Nr=Ok();if(Nr.add=function(Tr){br(Nr,Tr,+K(Tr,++ee),+Q(Tr,ee),ve,_e,Te,de)},Nr.visit=function(Tr){jv(Tr,Nr,ve,_e,Te,de)},Nr.find=function(Tr){return pfe(Nr,Tr[0],Tr[1],ve,_e,Te,de)},ee=-1,g==null){for(;++eeD||Q>O||pe=Ve,fr=A>=lr,br=fr<<1|hr,xr=br+4;brA&&(D=g.slice(A,D),F[O]?F[O]+=D:F[++O]=D),(q=q[0])===(L=L[0])?F[O]?F[O]+=L:F[++O]=L:(F[++O]=null,H.push({i:O,x:Nl(q,L)})),A=Xx.lastIndex;return A=0&&!(q=e.interpolators[A](h,g)););return q}e.interpolators=[function(h,g){var A=typeof g;return(A==="string"?kr.has(g.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(g)?jx:Uk:g instanceof Ot?jx:Array.isArray(g)?T1:A==="object"&&isNaN(g)?Hk:Nl)(h,g)}],e.interpolateArray=T1;function T1(h,g){var A=[],q=[],L=h.length,D=g.length,O=Math.min(h.length,g.length),F;for(F=0;F=0?h.slice(0,g):h,q=g>=0?h.slice(g+1):"in";return A=mfe.get(A)||Gk,q=yfe.get(q)||N,gfe(q(A.apply(null,r.call(arguments,1))))};function gfe(h){return function(g){return g<=0?0:g>=1?1:h(g)}}function Yk(h){return function(g){return 1-h(1-g)}}function Vk(h){return function(g){return .5*(g<.5?h(2*g):2-h(2-2*g))}}function bfe(h){return h*h}function xfe(h){return h*h*h}function _fe(h){if(h<=0)return 0;if(h>=1)return 1;var g=h*h,A=g*h;return 4*(h<.5?A:3*(h-g)+A-.75)}function wfe(h){return function(g){return Math.pow(g,h)}}function Tfe(h){return 1-Math.cos(h*ie)}function Afe(h){return Math.pow(2,10*(h-1))}function Mfe(h){return 1-Math.sqrt(1-h*h)}function kfe(h,g){var A;return arguments.length<2&&(g=.45),arguments.length?A=g/pr*Math.asin(1/h):(h=1,A=g/4),function(q){return 1+h*Math.pow(2,-10*q)*Math.sin((q-A)*pr/g)}}function Sfe(h){return h||(h=1.70158),function(g){return g*g*((h+1)*g-h)}}function qfe(h){return h<1/2.75?7.5625*h*h:h<2/2.75?7.5625*(h-=1.5/2.75)*h+.75:h<2.5/2.75?7.5625*(h-=2.25/2.75)*h+.9375:7.5625*(h-=2.625/2.75)*h+.984375}e.interpolateHcl=Lfe;function Lfe(h,g){h=e.hcl(h),g=e.hcl(g);var A=h.h,q=h.c,L=h.l,D=g.h-A,O=g.c-q,F=g.l-L;return isNaN(O)&&(O=0,q=isNaN(q)?g.c:q),isNaN(D)?(D=0,A=isNaN(A)?g.h:A):D>180?D-=360:D<-180&&(D+=360),function(H){return qa(A+D*H,q+O*H,L+F*H)+""}}e.interpolateHsl=Cfe;function Cfe(h,g){h=e.hsl(h),g=e.hsl(g);var A=h.h,q=h.s,L=h.l,D=g.h-A,O=g.s-q,F=g.l-L;return isNaN(O)&&(O=0,q=isNaN(q)?g.s:q),isNaN(D)?(D=0,A=isNaN(A)?g.h:A):D>180?D-=360:D<-180&&(D+=360),function(H){return Yr(A+D*H,q+O*H,L+F*H)+""}}e.interpolateLab=Dfe;function Dfe(h,g){h=e.lab(h),g=e.lab(g);var A=h.l,q=h.a,L=h.b,D=g.l-A,O=g.a-q,F=g.b-L;return function(H){return Wr(A+D*H,q+O*H,L+F*H)+""}}e.interpolateRound=jk;function jk(h,g){return g-=h,function(A){return Math.round(h+g*A)}}e.transform=function(h){var g=a.createElementNS(e.ns.prefix.svg,"g");return(e.transform=function(A){if(A!=null){g.setAttribute("transform",A);var q=g.transform.baseVal.consolidate()}return new Wk(q?q.matrix:Pfe)})(h)};function Wk(h){var g=[h.a,h.b],A=[h.c,h.d],q=Zk(g),L=Xk(g,A),D=Zk(Efe(A,g,-L))||0;g[0]*A[1]180?g+=360:g-h>180&&(h+=360),q.push({i:A.push(xc(A)+"rotate(",null,")")-2,x:Nl(h,g)})):g&&A.push(xc(A)+"rotate("+g+")")}function zfe(h,g,A,q){h!==g?q.push({i:A.push(xc(A)+"skewX(",null,")")-2,x:Nl(h,g)}):g&&A.push(xc(A)+"skewX("+g+")")}function Nfe(h,g,A,q){if(h[0]!==g[0]||h[1]!==g[1]){var L=A.push(xc(A)+"scale(",null,",",null,")");q.push({i:L-4,x:Nl(h[0],g[0])},{i:L-2,x:Nl(h[1],g[1])})}else(g[0]!==1||g[1]!==1)&&A.push(xc(A)+"scale("+g+")")}function $k(h,g){var A=[],q=[];return h=e.transform(h),g=e.transform(g),Rfe(h.translate,g.translate,A,q),Ffe(h.rotate,g.rotate,A,q),zfe(h.skew,g.skew,A,q),Nfe(h.scale,g.scale,A,q),h=g=null,function(L){for(var D=-1,O=q.length,F;++D0?D=de:(A.c=null,A.t=NaN,A=null,g.end({type:"end",alpha:D=0})):de>0&&(g.start({type:"start",alpha:D=de}),A=y1(h.tick)),h):D},h.start=function(){var de,Ve=pe.length,lr=we.length,hr=q[0],fr=q[1],br,xr;for(de=0;de=0;)D.push(Z=X[H]),Z.parent=F,Z.depth=F.depth+1;A&&(F.value=0),F.children=X}else A&&(F.value=+A.call(q,F,F.depth)||0),delete F.children;return al(L,function(K){var Q,pe;h&&(Q=K.children)&&Q.sort(h),A&&(pe=K.parent)&&(pe.value+=K.value)}),O}return q.sort=function(L){return arguments.length?(h=L,q):h},q.children=function(L){return arguments.length?(g=L,q):g},q.value=function(L){return arguments.length?(A=L,q):A},q.revalue=function(L){return A&&(Xv(L,function(D){D.children&&(D.value=0)}),al(L,function(D){var O;D.children||(D.value=+A.call(q,D,D.depth)||0),(O=D.parent)&&(O.value+=D.value)})),L},q};function Wv(h,g){return e.rebind(h,g,"sort","children","value"),h.nodes=h,h.links=Kfe,h}function Xv(h,g){for(var A=[h];(h=A.pop())!=null;)if(g(h),(L=h.children)&&(q=L.length))for(var q,L;--q>=0;)A.push(L[q])}function al(h,g){for(var A=[h],q=[];(h=A.pop())!=null;)if(q.push(h),(O=h.children)&&(D=O.length))for(var L=-1,D,O;++LL&&(L=F),q.push(F)}for(O=0;Oq&&(A=g,q=L);return A}function ice(h){return h.reduce(oce,0)}function oce(h,g){return h+g[1]}e.layout.histogram=function(){var h=!0,g=Number,A=sce,q=lce;function L(D,Q){for(var F=[],H=D.map(g,this),X=A.call(this,H,Q),Z=q.call(this,X,H,Q),K,Q=-1,pe=H.length,we=Z.length-1,ee=h?1:1/pe,fe;++Q0)for(Q=-1;++Q=X[0]&&fe<=X[1]&&(K=F[e.bisect(Z,fe,1,we)-1],K.y+=ee,K.push(D[Q]));return F}return L.value=function(D){return arguments.length?(g=D,L):g},L.range=function(D){return arguments.length?(A=Mr(D),L):A},L.bins=function(D){return arguments.length?(q=typeof D=="number"?function(O){return eS(O,D)}:Mr(D),L):q},L.frequency=function(D){return arguments.length?(h=!!D,L):h},L};function lce(h,g){return eS(h,Math.ceil(Math.log(g.length)/Math.LN2+1))}function eS(h,g){for(var A=-1,q=+h[0],L=(h[1]-q)/g,D=[];++A<=g;)D[A]=L*A+q;return D}function sce(h){return[e.min(h),e.max(h)]}e.layout.pack=function(){var h=e.layout.hierarchy().sort(uce),g=0,A=[1,1],q;function L(D,O){var F=h.call(this,D,O),H=F[0],X=A[0],Z=A[1],K=q==null?Math.sqrt:typeof q=="function"?q:function(){return q};if(H.x=H.y=0,al(H,function(pe){pe.r=+K(pe.value)}),al(H,aS),g){var Q=g*(q?1:Math.max(2*H.r/X,2*H.r/Z))/2;al(H,function(pe){pe.r+=Q}),al(H,aS),al(H,function(pe){pe.r-=Q})}return nS(H,X/2,Z/2,q?1:1/Math.max(2*H.r/X,2*H.r/Z)),F}return L.size=function(D){return arguments.length?(A=D,L):A},L.radius=function(D){return arguments.length?(q=D==null||typeof D=="function"?D:+D,L):q},L.padding=function(D){return arguments.length?(g=+D,L):g},Wv(L,h)};function uce(h,g){return h.value-g.value}function Jx(h,g){var A=h._pack_next;h._pack_next=g,g._pack_prev=h,g._pack_next=A,A._pack_prev=g}function rS(h,g){h._pack_next=g,g._pack_prev=h}function tS(h,g){var A=g.x-h.x,q=g.y-h.y,L=h.r+g.r;return .999*L*L>A*A+q*q}function aS(h){if(!(g=h.children)||!(Q=g.length))return;var g,A=1/0,q=-1/0,L=1/0,D=-1/0,O,F,H,X,Z,K,Q;function pe(de){A=Math.min(de.x-de.r,A),q=Math.max(de.x+de.r,q),L=Math.min(de.y-de.r,L),D=Math.max(de.y+de.r,D)}if(g.forEach(fce),O=g[0],O.x=-O.r,O.y=0,pe(O),Q>1&&(F=g[1],F.x=F.r,F.y=0,pe(F),Q>2))for(H=g[2],iS(O,F,H),pe(H),Jx(O,H),O._pack_prev=H,Jx(H,F),F=O._pack_next,X=3;Xfe.x&&(fe=Ve),Ve.depth>ve.depth&&(ve=Ve)});var _e=g(ee,fe)/2-ee.x,Te=A[0]/(fe.x+g(fe,ee)/2+_e),de=A[1]/(ve.depth||1);Xv(pe,function(Ve){Ve.x=(Ve.x+_e)*Te,Ve.y=Ve.depth*de})}return Q}function D(Z){for(var K={A:null,children:[Z]},Q=[K],pe;(pe=Q.pop())!=null;)for(var we=pe.children,ee,fe=0,ve=we.length;fe0&&(vce(dce(ee,Z,Q),Z,Ve),ve+=Ve,_e+=Ve),Te+=ee.m,ve+=pe.m,de+=fe.m,_e+=we.m;ee&&!Qx(we)&&(we.t=ee,we.m+=Te-_e),pe&&!Kx(fe)&&(fe.t=pe,fe.m+=ve-de,Q=Z)}return Q}function X(Z){Z.x*=A[0],Z.y=Z.depth*A[1]}return L.separation=function(Z){return arguments.length?(g=Z,L):g},L.size=function(Z){return arguments.length?(q=(A=Z)==null?X:null,L):q?null:A},L.nodeSize=function(Z){return arguments.length?(q=(A=Z)==null?null:X,L):q?A:null},Wv(L,h)};function oS(h,g){return h.parent==g.parent?1:2}function Kx(h){var g=h.children;return g.length?g[0]:h.t}function Qx(h){var g=h.children,A;return(A=g.length)?g[A-1]:h.t}function vce(h,g,A){var q=A/(g.i-h.i);g.c-=q,g.s+=A,h.c+=q,g.z+=A,g.m+=A}function hce(h){for(var g=0,A=0,q=h.children,L=q.length,D;--L>=0;)D=q[L],D.z+=g,D.m+=g,g+=D.s+(A+=D.c)}function dce(h,g,A){return h.a.parent===g.parent?h.a:A}e.layout.cluster=function(){var h=e.layout.hierarchy().sort(null).value(null),g=oS,A=[1,1],q=!1;function L(D,O){var F=h.call(this,D,O),H=F[0],X,Z=0;al(H,function(ee){var fe=ee.children;fe&&fe.length?(ee.x=mce(fe),ee.y=pce(fe)):(ee.x=X?Z+=g(ee,X):0,ee.y=0,X=ee)});var K=lS(H),Q=sS(H),pe=K.x-g(K,Q)/2,we=Q.x+g(Q,K)/2;return al(H,q?function(ee){ee.x=(ee.x-H.x)*A[0],ee.y=(H.y-ee.y)*A[1]}:function(ee){ee.x=(ee.x-pe)/(we-pe)*A[0],ee.y=(1-(H.y?ee.y/H.y:1))*A[1]}),F}return L.separation=function(D){return arguments.length?(g=D,L):g},L.size=function(D){return arguments.length?(q=(A=D)==null,L):q?null:A},L.nodeSize=function(D){return arguments.length?(q=(A=D)!=null,L):q?A:null},Wv(L,h)};function pce(h){return 1+e.max(h,function(g){return g.y})}function mce(h){return h.reduce(function(g,A){return g+A.x},0)/h.length}function lS(h){var g=h.children;return g&&g.length?lS(g[0]):h}function sS(h){var g=h.children,A;return g&&(A=g.length)?sS(g[A-1]):h}e.layout.treemap=function(){var h=e.layout.hierarchy(),g=Math.round,A=[1,1],q=null,L=e5,D=!1,O,F="squarify",H=.5*(1+Math.sqrt(5));function X(ee,fe){for(var ve=-1,_e=ee.length,Te,de;++ve<_e;)de=(Te=ee[ve]).value*(fe<0?0:fe),Te.area=isNaN(de)||de<=0?0:de}function Z(ee){var fe=ee.children;if(fe&&fe.length){var ve=L(ee),_e=[],Te=fe.slice(),de,Ve=1/0,lr,hr=F==="slice"?ve.dx:F==="dice"?ve.dy:F==="slice-dice"?ee.depth&1?ve.dy:ve.dx:Math.min(ve.dx,ve.dy),fr;for(X(Te,ve.dx*ve.dy/ee.value),_e.area=0;(fr=Te.length)>0;)_e.push(de=Te[fr-1]),_e.area+=de.area,F!=="squarify"||(lr=Q(_e,hr))<=Ve?(Te.pop(),Ve=lr):(_e.area-=_e.pop().area,pe(_e,hr,ve,!1),hr=Math.min(ve.dx,ve.dy),_e.length=_e.area=0,Ve=1/0);_e.length&&(pe(_e,hr,ve,!0),_e.length=_e.area=0),fe.forEach(Z)}}function K(ee){var fe=ee.children;if(fe&&fe.length){var ve=L(ee),_e=fe.slice(),Te,de=[];for(X(_e,ve.dx*ve.dy/ee.value),de.area=0;Te=_e.pop();)de.push(Te),de.area+=Te.area,Te.z!=null&&(pe(de,Te.z?ve.dx:ve.dy,ve,!_e.length),de.length=de.area=0);fe.forEach(K)}}function Q(ee,fe){for(var ve=ee.area,_e,Te=0,de=1/0,Ve=-1,lr=ee.length;++VeTe&&(Te=_e));return ve*=ve,fe*=fe,ve?Math.max(fe*Te*H/ve,ve/(fe*de*H)):1/0}function pe(ee,fe,ve,_e){var Te=-1,de=ee.length,Ve=ve.x,lr=ve.y,hr=fe?g(ee.area/fe):0,fr;if(fe==ve.dx){for((_e||hr>ve.dy)&&(hr=ve.dy);++Teve.dx)&&(hr=ve.dx);++Te1);return h+g*q*Math.sqrt(-2*Math.log(D)/D)}},logNormal:function(){var h=e.random.normal.apply(e,arguments);return function(){return Math.exp(h())}},bates:function(h){var g=e.random.irwinHall(h);return function(){return g()/h}},irwinHall:function(h){return function(){for(var g=0,A=0;A2?bce:yce,X=q?Bfe:Ife;return L=H(h,g,X,A),D=H(g,h,X,Du),F}function F(H){return L(H)}return F.invert=function(H){return D(H)},F.domain=function(H){return arguments.length?(h=H.map(Number),O()):h},F.range=function(H){return arguments.length?(g=H,O()):g},F.rangeRound=function(H){return F.range(H).interpolate(jk)},F.clamp=function(H){return arguments.length?(q=H,O()):q},F.interpolate=function(H){return arguments.length?(A=H,O()):A},F.ticks=function(H){return a5(h,H)},F.tickFormat=function(H,X){return d3_scale_linearTickFormat(h,H,X)},F.nice=function(H){return hS(h,H),O()},F.copy=function(){return cS(h,g,A,q)},O()}function vS(h,g){return e.rebind(h,g,"range","rangeRound","interpolate","clamp")}function hS(h,g){return r5(h,fS(t5(h,g)[2])),r5(h,fS(t5(h,g)[2])),h}function t5(h,g){g==null&&(g=10);var A=A1(h),q=A[1]-A[0],L=Math.pow(10,Math.floor(Math.log(q/g)/Math.LN10)),D=g/q*L;return D<=.15?L*=10:D<=.35?L*=5:D<=.75&&(L*=2),A[0]=Math.ceil(A[0]/L)*L,A[1]=Math.floor(A[1]/L)*L+L*.5,A[2]=L,A}function a5(h,g){return e.range.apply(e,t5(h,g))}var xce={s:1,g:1,p:1,r:1,e:1};function dS(h){return-Math.floor(Math.log(h)/Math.LN10+.01)}function pje(h,g){var A=dS(g[2]);return h in xce?Math.abs(A-dS(Math.max(b(g[0]),b(g[1]))))+ +(h!=="e"):A-(h==="%")*2}e.scale.log=function(){return pS(e.scale.linear().domain([0,1]),10,!0,[1,10])};function pS(h,g,A,q){function L(F){return(A?Math.log(F<0?0:F):-Math.log(F>0?0:-F))/Math.log(g)}function D(F){return A?Math.pow(g,F):-Math.pow(g,-F)}function O(F){return h(L(F))}return O.invert=function(F){return D(h.invert(F))},O.domain=function(F){return arguments.length?(A=F[0]>=0,h.domain((q=F.map(Number)).map(L)),O):q},O.base=function(F){return arguments.length?(g=+F,h.domain(q.map(L)),O):g},O.nice=function(){var F=r5(q.map(L),A?Math:_ce);return h.domain(F),q=F.map(D),O},O.ticks=function(){var F=A1(q),H=[],X=F[0],Z=F[1],K=Math.floor(L(X)),Q=Math.ceil(L(Z)),pe=g%1?2:g;if(isFinite(Q-K)){if(A){for(;K0;we--)H.push(D(K)*we);for(K=0;H[K]Z;Q--);H=H.slice(K,Q)}return H},O.copy=function(){return pS(h.copy(),g,A,q)},vS(O,h)}var _ce={floor:function(h){return-Math.ceil(-h)},ceil:function(h){return-Math.floor(-h)}};e.scale.pow=function(){return mS(e.scale.linear(),1,[0,1])};function mS(h,g,A){var q=k1(g),L=k1(1/g);function D(O){return h(q(O))}return D.invert=function(O){return L(h.invert(O))},D.domain=function(O){return arguments.length?(h.domain((A=O.map(Number)).map(q)),D):A},D.ticks=function(O){return a5(A,O)},D.tickFormat=function(O,F){return d3_scale_linearTickFormat(A,O,F)},D.nice=function(O){return D.domain(hS(A,O))},D.exponent=function(O){return arguments.length?(q=k1(g=O),L=k1(1/g),h.domain(A.map(q)),D):g},D.copy=function(){return mS(h.copy(),g,A)},vS(D,h)}function k1(h){return function(g){return g<0?-Math.pow(-g,h):Math.pow(g,h)}}e.scale.sqrt=function(){return e.scale.pow().exponent(.5)},e.scale.ordinal=function(){return yS([],{t:"range",a:[[]]})};function yS(h,g){var A,q,L;function D(F){return q[((A.get(F)||(g.t==="range"?A.set(F,h.push(F)):NaN))-1)%q.length]}function O(F,H){return e.range(h.length).map(function(X){return F+H*X})}return D.domain=function(F){if(!arguments.length)return h;h=[],A=new x;for(var H=-1,X=F.length,Z;++H0?A[D-1]:h[0],DQ?0:1;if(Z=mr)return H(Z,we)+(X?H(X,1-we):"")+"Z";var ee,fe,ve,_e,Te=0,de=0,Ve,lr,hr,fr,br,xr,Nr,Tr,Er=[];if((_e=(+O.apply(this,arguments)||0)/2)&&(ve=q===S1?Math.sqrt(X*X+Z*Z):+q.apply(this,arguments),we||(de*=-1),Z&&(de=qt(ve/Z*Math.sin(_e))),X&&(Te=qt(ve/X*Math.sin(_e)))),Z){Ve=Z*Math.cos(K+de),lr=Z*Math.sin(K+de),hr=Z*Math.cos(Q-de),fr=Z*Math.sin(Q-de);var ct=Math.abs(Q-K-2*de)<=cr?0:1;if(de&&q1(Ve,lr,hr,fr)===we^ct){var ya=(K+Q)/2;Ve=Z*Math.cos(ya),lr=Z*Math.sin(ya),hr=fr=null}}else Ve=lr=0;if(X){br=X*Math.cos(Q-Te),xr=X*Math.sin(Q-Te),Nr=X*Math.cos(K+Te),Tr=X*Math.sin(K+Te);var xt=Math.abs(K-Q+2*Te)<=cr?0:1;if(Te&&q1(br,xr,Nr,Tr)===1-we^xt){var ir=(K+Q)/2;br=X*Math.cos(ir),xr=X*Math.sin(ir),Nr=Tr=null}}else br=xr=0;if(pe>ze&&(ee=Math.min(Math.abs(Z-X)/2,+A.apply(this,arguments)))>.001){fe=X0?0:1}function L1(h,g,A,q,L){var D=h[0]-g[0],O=h[1]-g[1],F=(L?q:-q)/Math.sqrt(D*D+O*O),H=F*O,X=-F*D,Z=h[0]+H,K=h[1]+X,Q=g[0]+H,pe=g[1]+X,we=(Z+Q)/2,ee=(K+pe)/2,fe=Q-Z,ve=pe-K,_e=fe*fe+ve*ve,Te=A-q,de=Z*pe-Q*K,Ve=(ve<0?-1:1)*Math.sqrt(Math.max(0,Te*Te*_e-de*de)),lr=(de*ve-fe*Ve)/_e,hr=(-de*fe-ve*Ve)/_e,fr=(de*ve+fe*Ve)/_e,br=(-de*fe+ve*Ve)/_e,xr=lr-we,Nr=hr-ee,Tr=fr-we,Er=br-ee;return xr*xr+Nr*Nr>Tr*Tr+Er*Er&&(lr=fr,hr=br),[[lr-H,hr-X],[lr*A/Te,hr*A/Te]]}function AS(){return!0}function MS(h){var g=pc,A=Hv,q=AS,L=ko,D=L.key,O=.7;function F(H){var X=[],Z=[],K=-1,Q=H.length,pe,we=Mr(g),ee=Mr(A);function fe(){X.push("M",L(h(Z),O))}for(;++K1?h.join("L"):h+"Z"}function kS(h){return h.join("L")+"Z"}function Cce(h){for(var g=0,A=h.length,q=h[0],L=[q[0],",",q[1]];++g1&&L.push("H",q[0]),L.join("")}function i5(h){for(var g=0,A=h.length,q=h[0],L=[q[0],",",q[1]];++g1){F=g[1],D=h[H],H++,q+="C"+(L[0]+O[0])+","+(L[1]+O[1])+","+(D[0]-F[0])+","+(D[1]-F[1])+","+D[0]+","+D[1];for(var X=2;X9&&(D=A*3/Math.sqrt(D),O[F]=D*q,O[F+1]=D*L));for(F=-1;++F<=H;)D=(h[Math.min(H,F+1)][0]-h[Math.max(0,F-1)][0])/(6*(1+O[F]*O[F])),g.push([D||0,O[F]*D||0]);return g}function Bce(h){return h.length<3?ko(h):h[0]+C1(h,Ice(h))}e.svg.line.radial=function(){var h=MS(CS);return h.radius=h.x,delete h.x,h.angle=h.y,delete h.y,h};function CS(h){for(var g,A=-1,q=h.length,L,D;++Acr)+",1 "+K}function X(Z,K,Q,pe){return"Q 0,0 "+pe}return D.radius=function(Z){return arguments.length?(A=Mr(Z),D):A},D.source=function(Z){return arguments.length?(h=Mr(Z),D):h},D.target=function(Z){return arguments.length?(g=Mr(Z),D):g},D.startAngle=function(Z){return arguments.length?(q=Mr(Z),D):q},D.endAngle=function(Z){return arguments.length?(L=Mr(Z),D):L},D};function Oce(h){return h.radius}e.svg.diagonal=function(){var h=ES,g=PS,A=RS;function q(L,D){var O=h.call(this,L,D),F=g.call(this,L,D),H=(O.y+F.y)/2,X=[O,{x:O.x,y:H},{x:F.x,y:H},F];return X=X.map(A),"M"+X[0]+"C"+X[1]+" "+X[2]+" "+X[3]}return q.source=function(L){return arguments.length?(h=Mr(L),q):h},q.target=function(L){return arguments.length?(g=Mr(L),q):g},q.projection=function(L){return arguments.length?(A=L,q):A},q};function RS(h){return[h.x,h.y]}e.svg.diagonal.radial=function(){var h=e.svg.diagonal(),g=RS,A=h.projection;return h.projection=function(q){return arguments.length?A(Hce(g=q)):g},h};function Hce(h){return function(){var g=h.apply(this,arguments),A=g[0],q=g[1]-ie;return[A*Math.cos(q),A*Math.sin(q)]}}e.svg.symbol=function(){var h=Gce,g=Uce;function A(q,L){return(zS.get(h.call(this,q,L))||FS)(g.call(this,q,L))}return A.type=function(q){return arguments.length?(h=Mr(q),A):h},A.size=function(q){return arguments.length?(g=Mr(q),A):g},A};function Uce(){return 64}function Gce(){return"circle"}function FS(h){var g=Math.sqrt(h/cr);return"M0,"+g+"A"+g+","+g+" 0 1,1 0,"+-g+"A"+g+","+g+" 0 1,1 0,"+g+"Z"}var zS=e.map({circle:FS,cross:function(h){var g=Math.sqrt(h/5)/2;return"M"+-3*g+","+-g+"H"+-g+"V"+-3*g+"H"+g+"V"+-g+"H"+3*g+"V"+g+"H"+g+"V"+3*g+"H"+-g+"V"+g+"H"+-3*g+"Z"},diamond:function(h){var g=Math.sqrt(h/(2*NS)),A=g*NS;return"M0,"+-g+"L"+A+",0 0,"+g+" "+-A+",0Z"},square:function(h){var g=Math.sqrt(h)/2;return"M"+-g+","+-g+"L"+g+","+-g+" "+g+","+g+" "+-g+","+g+"Z"},"triangle-down":function(h){var g=Math.sqrt(h/D1),A=g*D1/2;return"M0,"+A+"L"+g+","+-A+" "+-g+","+-A+"Z"},"triangle-up":function(h){var g=Math.sqrt(h/D1),A=g*D1/2;return"M0,"+-A+"L"+g+","+A+" "+-g+","+A+"Z"}});e.svg.symbolTypes=zS.keys();var D1=Math.sqrt(3),NS=Math.tan(30*ye);oe.transition=function(h){for(var g=Eu||++BS,A=c5(h),q=[],L,D,O=P1||{time:Date.now(),ease:_fe,delay:0,duration:250},F=-1,H=this.length;++F0;)K[--_e].call(h,ve);if(fe>=1)return O.event&&O.event.end.call(h,h.__data__,g),--D.count?delete D[q]:delete h[A],1}O||(F=L.time,H=y1(Q,0,F),O=D[q]={tween:new x,time:F,timer:H,delay:L.delay,duration:L.duration,ease:L.ease,index:g},L=null,++D.count)}e.svg.axis=function(){var h=e.scale.linear(),g=OS,A=6,q=6,L=3,D=[10],O=null,F;function H(X){X.each(function(){var Z=e.select(this),K=this.__chart__||h,Q=this.__chart__=h.copy(),pe=O==null?Q.ticks?Q.ticks.apply(Q,D):Q.domain():O,we=F==null?Q.tickFormat?Q.tickFormat.apply(Q,D):N:F,ee=Z.selectAll(".tick").data(pe,Q),fe=ee.enter().insert("g",".domain").attr("class","tick").style("opacity",ze),ve=e.transition(ee.exit()).style("opacity",ze).remove(),_e=e.transition(ee.order()).style("opacity",1),Te=Math.max(A,0)+L,de,Ve=M1(Q),lr=Z.selectAll(".domain").data([0]),hr=(lr.enter().append("path").attr("class","domain"),e.transition(lr));fe.append("line"),fe.append("text");var fr=fe.select("line"),br=_e.select("line"),xr=ee.select("text").text(we),Nr=fe.select("text"),Tr=_e.select("text"),Er=g==="top"||g==="left"?-1:1,ct,ya,xt,ir;if(g==="bottom"||g==="top"?(de=jce,ct="x",xt="y",ya="x2",ir="y2",xr.attr("dy",Er<0?"0em":".71em").style("text-anchor","middle"),hr.attr("d","M"+Ve[0]+","+Er*q+"V0H"+Ve[1]+"V"+Er*q)):(de=Wce,ct="y",xt="x",ya="y2",ir="x2",xr.attr("dy",".32em").style("text-anchor",Er<0?"end":"start"),hr.attr("d","M"+Er*q+","+Ve[0]+"H0V"+Ve[1]+"H"+Er*q)),fr.attr(ir,Er*A),Nr.attr(xt,Er*Te),br.attr(ya,0).attr(ir,Er*A),Tr.attr(ct,0).attr(xt,Er*Te),Q.rangeBand){var Ir=Q,Or=Ir.rangeBand()/2;K=Q=function(vt){return Ir(vt)+Or}}else K.rangeBand?K=Q:ve.call(de,Q,K);fe.call(de,K,Q),_e.call(de,Q,Q)})}return H.scale=function(X){return arguments.length?(h=X,H):h},H.orient=function(X){return arguments.length?(g=X in Vce?X+"":OS,H):g},H.ticks=function(){return arguments.length?(D=t(arguments),H):D},H.tickValues=function(X){return arguments.length?(O=X,H):O},H.tickFormat=function(X){return arguments.length?(F=X,H):F},H.tickSize=function(X){var Z=arguments.length;return Z?(A=+X,q=+arguments[Z-1],H):A},H.innerTickSize=function(X){return arguments.length?(A=+X,H):A},H.outerTickSize=function(X){return arguments.length?(q=+X,H):q},H.tickPadding=function(X){return arguments.length?(L=+X,H):L},H.tickSubdivide=function(){return arguments.length&&H},H};var OS="bottom",Vce={top:1,right:1,bottom:1,left:1};function jce(h,g,A){h.attr("transform",function(q){var L=g(q);return"translate("+(isFinite(L)?L:A(q))+",0)"})}function Wce(h,g,A){h.attr("transform",function(q){var L=g(q);return"translate(0,"+(isFinite(L)?L:A(q))+")"})}e.svg.brush=function(){var h=le(Z,"brushstart","brush","brushend"),g=null,A=null,q=[0,0],L=[0,0],D,O,F=!0,H=!0,X=v5[0];function Z(ee){ee.each(function(){var fe=e.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",we).on("touchstart.brush",we),ve=fe.selectAll(".background").data([0]);ve.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),fe.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var _e=fe.selectAll(".resize").data(X,N);_e.exit().remove(),_e.enter().append("g").attr("class",function(lr){return"resize "+lr}).style("cursor",function(lr){return Xce[lr]}).append("rect").attr("x",function(lr){return/[ew]$/.test(lr)?-3:null}).attr("y",function(lr){return/^[ns]/.test(lr)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),_e.style("display",Z.empty()?"none":null);var Te=e.transition(fe),de=e.transition(ve),Ve;g&&(Ve=M1(g),de.attr("x",Ve[0]).attr("width",Ve[1]-Ve[0]),Q(Te)),A&&(Ve=M1(A),de.attr("y",Ve[0]).attr("height",Ve[1]-Ve[0]),pe(Te)),K(Te)})}Z.event=function(ee){ee.each(function(){var fe=h.of(this,arguments),ve={x:q,y:L,i:D,j:O},_e=this.__chart__||ve;this.__chart__=ve,Eu?e.select(this).transition().each("start.brush",function(){D=_e.i,O=_e.j,q=_e.x,L=_e.y,fe({type:"brushstart"})}).tween("brush:brush",function(){var Te=T1(q,ve.x),de=T1(L,ve.y);return D=O=null,function(Ve){q=ve.x=Te(Ve),L=ve.y=de(Ve),fe({type:"brush",mode:"resize"})}}).each("end.brush",function(){D=ve.i,O=ve.j,fe({type:"brush",mode:"resize"}),fe({type:"brushend"})}):(fe({type:"brushstart"}),fe({type:"brush",mode:"resize"}),fe({type:"brushend"}))})};function K(ee){ee.selectAll(".resize").attr("transform",function(fe){return"translate("+q[+/e$/.test(fe)]+","+L[+/^s/.test(fe)]+")"})}function Q(ee){ee.select(".extent").attr("x",q[0]),ee.selectAll(".extent,.n>rect,.s>rect").attr("width",q[1]-q[0])}function pe(ee){ee.select(".extent").attr("y",L[0]),ee.selectAll(".extent,.e>rect,.w>rect").attr("height",L[1]-L[0])}function we(){var ee=this,fe=e.select(e.event.target),ve=h.of(ee,arguments),_e=e.select(ee),Te=fe.datum(),de=!/^(n|s)$/.test(Te)&&g,Ve=!/^(e|w)$/.test(Te)&&A,lr=fe.classed("extent"),hr=_r(ee),fr,br=e.mouse(ee),xr,Nr=e.select(i(ee)).on("keydown.brush",ct).on("keyup.brush",ya);if(e.event.changedTouches?Nr.on("touchmove.brush",xt).on("touchend.brush",Ir):Nr.on("mousemove.brush",xt).on("mouseup.brush",Ir),_e.interrupt().selectAll("*").interrupt(),lr)br[0]=q[0]-br[0],br[1]=L[0]-br[1];else if(Te){var Tr=+/w$/.test(Te),Er=+/^n/.test(Te);xr=[q[1-Tr]-br[0],L[1-Er]-br[1]],br[0]=q[Tr],br[1]=L[Er]}else e.event.altKey&&(fr=br.slice());_e.style("pointer-events","none").selectAll(".resize").style("display",null),e.select("body").style("cursor",fe.style("cursor")),ve({type:"brushstart"}),xt();function ct(){e.event.keyCode==32&&(lr||(fr=null,br[0]-=q[1],br[1]-=L[1],lr=2),J())}function ya(){e.event.keyCode==32&&lr==2&&(br[0]+=q[1],br[1]+=L[1],lr=0,J())}function xt(){var Or=e.mouse(ee),vt=!1;xr&&(Or[0]+=xr[0],Or[1]+=xr[1]),lr||(e.event.altKey?(fr||(fr=[(q[0]+q[1])/2,(L[0]+L[1])/2]),br[0]=q[+(Or[0]{(function(e,r){typeof B1=="object"&&typeof $S!="undefined"?r(B1):(e=e||self,r(e.d3=e.d3||{}))})(B1,function(e){"use strict";var r=new Date,t=new Date;function a(ae,be,Ge,sr){function vr(ue){return ae(ue=arguments.length===0?new Date:new Date(+ue)),ue}return vr.floor=function(ue){return ae(ue=new Date(+ue)),ue},vr.ceil=function(ue){return ae(ue=new Date(ue-1)),be(ue,1),ae(ue),ue},vr.round=function(ue){var xe=vr(ue),Ie=vr.ceil(ue);return ue-xe0))return We;do We.push(Oe=new Date(+ue)),be(ue,Ie),ae(ue);while(Oe=xe)for(;ae(xe),!ue(xe);)xe.setTime(xe-1)},function(xe,Ie){if(xe>=xe)if(Ie<0)for(;++Ie<=0;)for(;be(xe,-1),!ue(xe););else for(;--Ie>=0;)for(;be(xe,1),!ue(xe););})},Ge&&(vr.count=function(ue,xe){return r.setTime(+ue),t.setTime(+xe),ae(r),ae(t),Math.floor(Ge(r,t))},vr.every=function(ue){return ue=Math.floor(ue),!isFinite(ue)||!(ue>0)?null:ue>1?vr.filter(sr?function(xe){return sr(xe)%ue===0}:function(xe){return vr.count(0,xe)%ue===0}):vr}),vr}var n=a(function(){},function(ae,be){ae.setTime(+ae+be)},function(ae,be){return be-ae});n.every=function(ae){return ae=Math.floor(ae),!isFinite(ae)||!(ae>0)?null:ae>1?a(function(be){be.setTime(Math.floor(be/ae)*ae)},function(be,Ge){be.setTime(+be+Ge*ae)},function(be,Ge){return(Ge-be)/ae}):n};var i=n.range,o=1e3,l=6e4,s=36e5,u=864e5,f=6048e5,c=a(function(ae){ae.setTime(ae-ae.getMilliseconds())},function(ae,be){ae.setTime(+ae+be*o)},function(ae,be){return(be-ae)/o},function(ae){return ae.getUTCSeconds()}),v=c.range,d=a(function(ae){ae.setTime(ae-ae.getMilliseconds()-ae.getSeconds()*o)},function(ae,be){ae.setTime(+ae+be*l)},function(ae,be){return(be-ae)/l},function(ae){return ae.getMinutes()}),p=d.range,m=a(function(ae){ae.setTime(ae-ae.getMilliseconds()-ae.getSeconds()*o-ae.getMinutes()*l)},function(ae,be){ae.setTime(+ae+be*s)},function(ae,be){return(be-ae)/s},function(ae){return ae.getHours()}),y=m.range,b=a(function(ae){ae.setHours(0,0,0,0)},function(ae,be){ae.setDate(ae.getDate()+be)},function(ae,be){return(be-ae-(be.getTimezoneOffset()-ae.getTimezoneOffset())*l)/u},function(ae){return ae.getDate()-1}),T=b.range;function w(ae){return a(function(be){be.setDate(be.getDate()-(be.getDay()+7-ae)%7),be.setHours(0,0,0,0)},function(be,Ge){be.setDate(be.getDate()+Ge*7)},function(be,Ge){return(Ge-be-(Ge.getTimezoneOffset()-be.getTimezoneOffset())*l)/f})}var x=w(0),_=w(1),k=w(2),M=w(3),S=w(4),C=w(5),E=w(6),P=x.range,R=_.range,I=k.range,B=M.range,N=S.range,U=C.range,G=E.range,V=a(function(ae){ae.setDate(1),ae.setHours(0,0,0,0)},function(ae,be){ae.setMonth(ae.getMonth()+be)},function(ae,be){return be.getMonth()-ae.getMonth()+(be.getFullYear()-ae.getFullYear())*12},function(ae){return ae.getMonth()}),j=V.range,W=a(function(ae){ae.setMonth(0,1),ae.setHours(0,0,0,0)},function(ae,be){ae.setFullYear(ae.getFullYear()+be)},function(ae,be){return be.getFullYear()-ae.getFullYear()},function(ae){return ae.getFullYear()});W.every=function(ae){return!isFinite(ae=Math.floor(ae))||!(ae>0)?null:a(function(be){be.setFullYear(Math.floor(be.getFullYear()/ae)*ae),be.setMonth(0,1),be.setHours(0,0,0,0)},function(be,Ge){be.setFullYear(be.getFullYear()+Ge*ae)})};var Y=W.range,J=a(function(ae){ae.setUTCSeconds(0,0)},function(ae,be){ae.setTime(+ae+be*l)},function(ae,be){return(be-ae)/l},function(ae){return ae.getUTCMinutes()}),re=J.range,le=a(function(ae){ae.setUTCMinutes(0,0,0)},function(ae,be){ae.setTime(+ae+be*s)},function(ae,be){return(be-ae)/s},function(ae){return ae.getUTCHours()}),ne=le.range,$=a(function(ae){ae.setUTCHours(0,0,0,0)},function(ae,be){ae.setUTCDate(ae.getUTCDate()+be)},function(ae,be){return(be-ae)/u},function(ae){return ae.getUTCDate()-1}),ce=$.range;function te(ae){return a(function(be){be.setUTCDate(be.getUTCDate()-(be.getUTCDay()+7-ae)%7),be.setUTCHours(0,0,0,0)},function(be,Ge){be.setUTCDate(be.getUTCDate()+Ge*7)},function(be,Ge){return(Ge-be)/f})}var ge=te(0),se=te(1),oe=te(2),Ae=te(3),Pe=te(4),me=te(5),Ce=te(6),Me=ge.range,Le=se.range,Se=oe.range,Ee=Ae.range,qe=Pe.range,Ue=me.range,Je=Ce.range,Ke=a(function(ae){ae.setUTCDate(1),ae.setUTCHours(0,0,0,0)},function(ae,be){ae.setUTCMonth(ae.getUTCMonth()+be)},function(ae,be){return be.getUTCMonth()-ae.getUTCMonth()+(be.getUTCFullYear()-ae.getUTCFullYear())*12},function(ae){return ae.getUTCMonth()}),De=Ke.range,Be=a(function(ae){ae.setUTCMonth(0,1),ae.setUTCHours(0,0,0,0)},function(ae,be){ae.setUTCFullYear(ae.getUTCFullYear()+be)},function(ae,be){return be.getUTCFullYear()-ae.getUTCFullYear()},function(ae){return ae.getUTCFullYear()});Be.every=function(ae){return!isFinite(ae=Math.floor(ae))||!(ae>0)?null:a(function(be){be.setUTCFullYear(Math.floor(be.getUTCFullYear()/ae)*ae),be.setUTCMonth(0,1),be.setUTCHours(0,0,0,0)},function(be,Ge){be.setUTCFullYear(be.getUTCFullYear()+Ge*ae)})};var er=Be.range;e.timeDay=b,e.timeDays=T,e.timeFriday=C,e.timeFridays=U,e.timeHour=m,e.timeHours=y,e.timeInterval=a,e.timeMillisecond=n,e.timeMilliseconds=i,e.timeMinute=d,e.timeMinutes=p,e.timeMonday=_,e.timeMondays=R,e.timeMonth=V,e.timeMonths=j,e.timeSaturday=E,e.timeSaturdays=G,e.timeSecond=c,e.timeSeconds=v,e.timeSunday=x,e.timeSundays=P,e.timeThursday=S,e.timeThursdays=N,e.timeTuesday=k,e.timeTuesdays=I,e.timeWednesday=M,e.timeWednesdays=B,e.timeWeek=x,e.timeWeeks=P,e.timeYear=W,e.timeYears=Y,e.utcDay=$,e.utcDays=ce,e.utcFriday=me,e.utcFridays=Ue,e.utcHour=le,e.utcHours=ne,e.utcMillisecond=n,e.utcMilliseconds=i,e.utcMinute=J,e.utcMinutes=re,e.utcMonday=se,e.utcMondays=Le,e.utcMonth=Ke,e.utcMonths=De,e.utcSaturday=Ce,e.utcSaturdays=Je,e.utcSecond=c,e.utcSeconds=v,e.utcSunday=ge,e.utcSundays=Me,e.utcThursday=Pe,e.utcThursdays=qe,e.utcTuesday=oe,e.utcTuesdays=Se,e.utcWednesday=Ae,e.utcWednesdays=Ee,e.utcWeek=ge,e.utcWeeks=Me,e.utcYear=Be,e.utcYears=er,Object.defineProperty(e,"__esModule",{value:!0})})});var Tc=z((O1,JS)=>{(function(e,r){typeof O1=="object"&&typeof JS!="undefined"?r(O1,d5()):(e=e||self,r(e.d3=e.d3||{},e.d3))})(O1,function(e,r){"use strict";function t(ie){if(0<=ie.y&&ie.y<100){var ye=new Date(-1,ie.m,ie.d,ie.H,ie.M,ie.S,ie.L);return ye.setFullYear(ie.y),ye}return new Date(ie.y,ie.m,ie.d,ie.H,ie.M,ie.S,ie.L)}function a(ie){if(0<=ie.y&&ie.y<100){var ye=new Date(Date.UTC(-1,ie.m,ie.d,ie.H,ie.M,ie.S,ie.L));return ye.setUTCFullYear(ie.y),ye}return new Date(Date.UTC(ie.y,ie.m,ie.d,ie.H,ie.M,ie.S,ie.L))}function n(ie,ye,Fe){return{y:ie,m:ye,d:Fe,H:0,M:0,S:0,L:0}}function i(ie){var ye=ie.dateTime,Fe=ie.date,He=ie.time,Gr=ie.periods,rt=ie.days,qt=ie.shortDays,gt=ie.months,Ut=ie.shortMonths,Bt=v(Gr),Fa=d(Gr),kt=v(rt),Zt=d(rt),$t=v(qt),Lt=d(qt),ra=v(gt),sa=d(gt),Ot=v(Ut),tr=d(Ut),tt={a:$n,A:On,b:ta,B:dc,c:null,d:V,e:V,f:re,g:me,G:Me,H:j,I:W,j:Y,L:J,m:le,M:ne,p:gs,q:Hn,Q:_r,s:gr,S:$,u:ce,U:te,V:se,w:oe,W:Ae,x:null,X:null,y:Pe,Y:Ce,Z:Le,"%":Qe},Yr={a:bs,A:d1,b:p1,B:m1,c:null,d:Se,e:Se,f:Ke,g:Ie,G:Oe,H:Ee,I:qe,j:Ue,L:Je,m:De,M:Be,p:Bv,q:Ov,Q:_r,s:gr,S:er,u:ae,U:be,V:sr,w:vr,W:ue,x:null,X:null,y:xe,Y:We,Z:Xe,"%":Qe},ft={a:ma,A:pi,b:nt,B:La,c:Wr,d:S,e:S,f:B,g:x,G:w,H:E,I:E,j:C,L:I,m:M,M:P,p:bt,q:k,Q:U,s:G,S:R,u:m,U:y,V:b,w:p,W:T,x:qu,X:Ht,y:x,Y:w,Z:_,"%":N};tt.x=Ft(Fe,tt),tt.X=Ft(He,tt),tt.c=Ft(ye,tt),Yr.x=Ft(Fe,Yr),Yr.X=Ft(He,Yr),Yr.c=Ft(ye,Yr);function Ft(kr,Mr){return function(yt){var ur=[],An=-1,Gt=0,tn=kr.length,an,Ni,Lu;for(yt instanceof Date||(yt=new Date(+yt));++An53)return null;"w"in ur||(ur.w=1),"Z"in ur?(Gt=a(n(ur.y,0,1)),tn=Gt.getUTCDay(),Gt=tn>4||tn===0?r.utcMonday.ceil(Gt):r.utcMonday(Gt),Gt=r.utcDay.offset(Gt,(ur.V-1)*7),ur.y=Gt.getUTCFullYear(),ur.m=Gt.getUTCMonth(),ur.d=Gt.getUTCDate()+(ur.w+6)%7):(Gt=t(n(ur.y,0,1)),tn=Gt.getDay(),Gt=tn>4||tn===0?r.timeMonday.ceil(Gt):r.timeMonday(Gt),Gt=r.timeDay.offset(Gt,(ur.V-1)*7),ur.y=Gt.getFullYear(),ur.m=Gt.getMonth(),ur.d=Gt.getDate()+(ur.w+6)%7)}else("W"in ur||"U"in ur)&&("w"in ur||(ur.w="u"in ur?ur.u%7:"W"in ur?1:0),tn="Z"in ur?a(n(ur.y,0,1)).getUTCDay():t(n(ur.y,0,1)).getDay(),ur.m=0,ur.d="W"in ur?(ur.w+6)%7+ur.W*7-(tn+5)%7:ur.w+ur.U*7-(tn+6)%7);return"Z"in ur?(ur.H+=ur.Z/100|0,ur.M+=ur.Z%100,a(ur)):t(ur)}}function at(kr,Mr,yt,ur){for(var An=0,Gt=Mr.length,tn=yt.length,an,Ni;An=tn)return-1;if(an=Mr.charCodeAt(An++),an===37){if(an=Mr.charAt(An++),Ni=ft[an in o?Mr.charAt(An++):an],!Ni||(ur=Ni(kr,yt,ur))<0)return-1}else if(an!=yt.charCodeAt(ur++))return-1}return ur}function bt(kr,Mr,yt){var ur=Bt.exec(Mr.slice(yt));return ur?(kr.p=Fa[ur[0].toLowerCase()],yt+ur[0].length):-1}function ma(kr,Mr,yt){var ur=$t.exec(Mr.slice(yt));return ur?(kr.w=Lt[ur[0].toLowerCase()],yt+ur[0].length):-1}function pi(kr,Mr,yt){var ur=kt.exec(Mr.slice(yt));return ur?(kr.w=Zt[ur[0].toLowerCase()],yt+ur[0].length):-1}function nt(kr,Mr,yt){var ur=Ot.exec(Mr.slice(yt));return ur?(kr.m=tr[ur[0].toLowerCase()],yt+ur[0].length):-1}function La(kr,Mr,yt){var ur=ra.exec(Mr.slice(yt));return ur?(kr.m=sa[ur[0].toLowerCase()],yt+ur[0].length):-1}function Wr(kr,Mr,yt){return at(kr,ye,Mr,yt)}function qu(kr,Mr,yt){return at(kr,Fe,Mr,yt)}function Ht(kr,Mr,yt){return at(kr,He,Mr,yt)}function $n(kr){return qt[kr.getDay()]}function On(kr){return rt[kr.getDay()]}function ta(kr){return Ut[kr.getMonth()]}function dc(kr){return gt[kr.getMonth()]}function gs(kr){return Gr[+(kr.getHours()>=12)]}function Hn(kr){return 1+~~(kr.getMonth()/3)}function bs(kr){return qt[kr.getUTCDay()]}function d1(kr){return rt[kr.getUTCDay()]}function p1(kr){return Ut[kr.getUTCMonth()]}function m1(kr){return gt[kr.getUTCMonth()]}function Bv(kr){return Gr[+(kr.getUTCHours()>=12)]}function Ov(kr){return 1+~~(kr.getUTCMonth()/3)}return{format:function(kr){var Mr=Ft(kr+="",tt);return Mr.toString=function(){return kr},Mr},parse:function(kr){var Mr=qa(kr+="",!1);return Mr.toString=function(){return kr},Mr},utcFormat:function(kr){var Mr=Ft(kr+="",Yr);return Mr.toString=function(){return kr},Mr},utcParse:function(kr){var Mr=qa(kr+="",!0);return Mr.toString=function(){return kr},Mr}}}var o={"-":"",_:" ",0:"0"},l=/^\s*\d+/,s=/^%/,u=/[\\^$*+?|[\]().{}]/g;function f(ie,ye,Fe){var He=ie<0?"-":"",Gr=(He?-ie:ie)+"",rt=Gr.length;return He+(rt68?1900:2e3),Fe+He[0].length):-1}function _(ie,ye,Fe){var He=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(ye.slice(Fe,Fe+6));return He?(ie.Z=He[1]?0:-(He[2]+(He[3]||"00")),Fe+He[0].length):-1}function k(ie,ye,Fe){var He=l.exec(ye.slice(Fe,Fe+1));return He?(ie.q=He[0]*3-3,Fe+He[0].length):-1}function M(ie,ye,Fe){var He=l.exec(ye.slice(Fe,Fe+2));return He?(ie.m=He[0]-1,Fe+He[0].length):-1}function S(ie,ye,Fe){var He=l.exec(ye.slice(Fe,Fe+2));return He?(ie.d=+He[0],Fe+He[0].length):-1}function C(ie,ye,Fe){var He=l.exec(ye.slice(Fe,Fe+3));return He?(ie.m=0,ie.d=+He[0],Fe+He[0].length):-1}function E(ie,ye,Fe){var He=l.exec(ye.slice(Fe,Fe+2));return He?(ie.H=+He[0],Fe+He[0].length):-1}function P(ie,ye,Fe){var He=l.exec(ye.slice(Fe,Fe+2));return He?(ie.M=+He[0],Fe+He[0].length):-1}function R(ie,ye,Fe){var He=l.exec(ye.slice(Fe,Fe+2));return He?(ie.S=+He[0],Fe+He[0].length):-1}function I(ie,ye,Fe){var He=l.exec(ye.slice(Fe,Fe+3));return He?(ie.L=+He[0],Fe+He[0].length):-1}function B(ie,ye,Fe){var He=l.exec(ye.slice(Fe,Fe+6));return He?(ie.L=Math.floor(He[0]/1e3),Fe+He[0].length):-1}function N(ie,ye,Fe){var He=s.exec(ye.slice(Fe,Fe+1));return He?Fe+He[0].length:-1}function U(ie,ye,Fe){var He=l.exec(ye.slice(Fe));return He?(ie.Q=+He[0],Fe+He[0].length):-1}function G(ie,ye,Fe){var He=l.exec(ye.slice(Fe));return He?(ie.s=+He[0],Fe+He[0].length):-1}function V(ie,ye){return f(ie.getDate(),ye,2)}function j(ie,ye){return f(ie.getHours(),ye,2)}function W(ie,ye){return f(ie.getHours()%12||12,ye,2)}function Y(ie,ye){return f(1+r.timeDay.count(r.timeYear(ie),ie),ye,3)}function J(ie,ye){return f(ie.getMilliseconds(),ye,3)}function re(ie,ye){return J(ie,ye)+"000"}function le(ie,ye){return f(ie.getMonth()+1,ye,2)}function ne(ie,ye){return f(ie.getMinutes(),ye,2)}function $(ie,ye){return f(ie.getSeconds(),ye,2)}function ce(ie){var ye=ie.getDay();return ye===0?7:ye}function te(ie,ye){return f(r.timeSunday.count(r.timeYear(ie)-1,ie),ye,2)}function ge(ie){var ye=ie.getDay();return ye>=4||ye===0?r.timeThursday(ie):r.timeThursday.ceil(ie)}function se(ie,ye){return ie=ge(ie),f(r.timeThursday.count(r.timeYear(ie),ie)+(r.timeYear(ie).getDay()===4),ye,2)}function oe(ie){return ie.getDay()}function Ae(ie,ye){return f(r.timeMonday.count(r.timeYear(ie)-1,ie),ye,2)}function Pe(ie,ye){return f(ie.getFullYear()%100,ye,2)}function me(ie,ye){return ie=ge(ie),f(ie.getFullYear()%100,ye,2)}function Ce(ie,ye){return f(ie.getFullYear()%1e4,ye,4)}function Me(ie,ye){var Fe=ie.getDay();return ie=Fe>=4||Fe===0?r.timeThursday(ie):r.timeThursday.ceil(ie),f(ie.getFullYear()%1e4,ye,4)}function Le(ie){var ye=ie.getTimezoneOffset();return(ye>0?"-":(ye*=-1,"+"))+f(ye/60|0,"0",2)+f(ye%60,"0",2)}function Se(ie,ye){return f(ie.getUTCDate(),ye,2)}function Ee(ie,ye){return f(ie.getUTCHours(),ye,2)}function qe(ie,ye){return f(ie.getUTCHours()%12||12,ye,2)}function Ue(ie,ye){return f(1+r.utcDay.count(r.utcYear(ie),ie),ye,3)}function Je(ie,ye){return f(ie.getUTCMilliseconds(),ye,3)}function Ke(ie,ye){return Je(ie,ye)+"000"}function De(ie,ye){return f(ie.getUTCMonth()+1,ye,2)}function Be(ie,ye){return f(ie.getUTCMinutes(),ye,2)}function er(ie,ye){return f(ie.getUTCSeconds(),ye,2)}function ae(ie){var ye=ie.getUTCDay();return ye===0?7:ye}function be(ie,ye){return f(r.utcSunday.count(r.utcYear(ie)-1,ie),ye,2)}function Ge(ie){var ye=ie.getUTCDay();return ye>=4||ye===0?r.utcThursday(ie):r.utcThursday.ceil(ie)}function sr(ie,ye){return ie=Ge(ie),f(r.utcThursday.count(r.utcYear(ie),ie)+(r.utcYear(ie).getUTCDay()===4),ye,2)}function vr(ie){return ie.getUTCDay()}function ue(ie,ye){return f(r.utcMonday.count(r.utcYear(ie)-1,ie),ye,2)}function xe(ie,ye){return f(ie.getUTCFullYear()%100,ye,2)}function Ie(ie,ye){return ie=Ge(ie),f(ie.getUTCFullYear()%100,ye,2)}function We(ie,ye){return f(ie.getUTCFullYear()%1e4,ye,4)}function Oe(ie,ye){var Fe=ie.getUTCDay();return ie=Fe>=4||Fe===0?r.utcThursday(ie):r.utcThursday.ceil(ie),f(ie.getUTCFullYear()%1e4,ye,4)}function Xe(){return"+0000"}function Qe(){return"%"}function _r(ie){return+ie}function gr(ie){return Math.floor(+ie/1e3)}var Re;Ze({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 Ze(ie){return Re=i(ie),e.timeFormat=Re.format,e.timeParse=Re.parse,e.utcFormat=Re.utcFormat,e.utcParse=Re.utcParse,Re}var ze="%Y-%m-%dT%H:%M:%S.%LZ";function rr(ie){return ie.toISOString()}var cr=Date.prototype.toISOString?rr:e.utcFormat(ze);function pr(ie){var ye=new Date(ie);return isNaN(ye)?null:ye}var mr=+new Date("2000-01-01T00:00:00.000Z")?pr:e.utcParse(ze);e.isoFormat=cr,e.isoParse=mr,e.timeFormatDefaultLocale=Ze,e.timeFormatLocale=i,Object.defineProperty(e,"__esModule",{value:!0})})});var p5=z((H1,KS)=>{(function(e,r){typeof H1=="object"&&typeof KS!="undefined"?r(H1):(e=typeof globalThis!="undefined"?globalThis:e||self,r(e.d3=e.d3||{}))})(H1,(function(e){"use strict";function r(M){return Math.abs(M=Math.round(M))>=1e21?M.toLocaleString("en").replace(/,/g,""):M.toString(10)}function t(M,S){if((C=(M=S?M.toExponential(S-1):M.toExponential()).indexOf("e"))<0)return null;var C,E=M.slice(0,C);return[E.length>1?E[0]+E.slice(2):E,+M.slice(C+1)]}function a(M){return M=t(Math.abs(M)),M?M[1]:NaN}function n(M,S){return function(C,E){for(var P=C.length,R=[],I=0,B=M[0],N=0;P>0&&B>0&&(N+B+1>E&&(B=Math.max(1,E-N)),R.push(C.substring(P-=B,P+B)),!((N+=B+1)>E));)B=M[I=(I+1)%M.length];return R.reverse().join(S)}}function i(M){return function(S){return S.replace(/[0-9]/g,function(C){return M[+C]})}}var o=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function l(M){if(!(S=o.exec(M)))throw new Error("invalid format: "+M);var S;return new s({fill:S[1],align:S[2],sign:S[3],symbol:S[4],zero:S[5],width:S[6],comma:S[7],precision:S[8]&&S[8].slice(1),trim:S[9],type:S[10]})}l.prototype=s.prototype;function s(M){this.fill=M.fill===void 0?" ":M.fill+"",this.align=M.align===void 0?">":M.align+"",this.sign=M.sign===void 0?"-":M.sign+"",this.symbol=M.symbol===void 0?"":M.symbol+"",this.zero=!!M.zero,this.width=M.width===void 0?void 0:+M.width,this.comma=!!M.comma,this.precision=M.precision===void 0?void 0:+M.precision,this.trim=!!M.trim,this.type=M.type===void 0?"":M.type+""}s.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 u(M){e:for(var S=M.length,C=1,E=-1,P;C0&&(E=0);break}return E>0?M.slice(0,E)+M.slice(P+1):M}var f;function c(M,S){var C=t(M,S);if(!C)return M+"";var E=C[0],P=C[1],R=P-(f=Math.max(-8,Math.min(8,Math.floor(P/3)))*3)+1,I=E.length;return R===I?E:R>I?E+new Array(R-I+1).join("0"):R>0?E.slice(0,R)+"."+E.slice(R):"0."+new Array(1-R).join("0")+t(M,Math.max(0,S+R-1))[0]}function v(M,S){var C=t(M,S);if(!C)return M+"";var E=C[0],P=C[1];return P<0?"0."+new Array(-P).join("0")+E:E.length>P+1?E.slice(0,P+1)+"."+E.slice(P+1):E+new Array(P-E.length+2).join("0")}var d={"%":function(M,S){return(M*100).toFixed(S)},b:function(M){return Math.round(M).toString(2)},c:function(M){return M+""},d:r,e:function(M,S){return M.toExponential(S)},f:function(M,S){return M.toFixed(S)},g:function(M,S){return M.toPrecision(S)},o:function(M){return Math.round(M).toString(8)},p:function(M,S){return v(M*100,S)},r:v,s:c,X:function(M){return Math.round(M).toString(16).toUpperCase()},x:function(M){return Math.round(M).toString(16)}};function p(M){return M}var m=Array.prototype.map,y=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function b(M){var S=M.grouping===void 0||M.thousands===void 0?p:n(m.call(M.grouping,Number),M.thousands+""),C=M.currency===void 0?"":M.currency[0]+"",E=M.currency===void 0?"":M.currency[1]+"",P=M.decimal===void 0?".":M.decimal+"",R=M.numerals===void 0?p:i(m.call(M.numerals,String)),I=M.percent===void 0?"%":M.percent+"",B=M.minus===void 0?"-":M.minus+"",N=M.nan===void 0?"NaN":M.nan+"";function U(V){V=l(V);var j=V.fill,W=V.align,Y=V.sign,J=V.symbol,re=V.zero,le=V.width,ne=V.comma,$=V.precision,ce=V.trim,te=V.type;te==="n"?(ne=!0,te="g"):d[te]||($===void 0&&($=12),ce=!0,te="g"),(re||j==="0"&&W==="=")&&(re=!0,j="0",W="=");var ge=J==="$"?C:J==="#"&&/[boxX]/.test(te)?"0"+te.toLowerCase():"",se=J==="$"?E:/[%p]/.test(te)?I:"",oe=d[te],Ae=/[defgprs%]/.test(te);$=$===void 0?6:/[gprs]/.test(te)?Math.max(1,Math.min(21,$)):Math.max(0,Math.min(20,$));function Pe(me){var Ce=ge,Me=se,Le,Se,Ee;if(te==="c")Me=oe(me)+Me,me="";else{me=+me;var qe=me<0||1/me<0;if(me=isNaN(me)?N:oe(Math.abs(me),$),ce&&(me=u(me)),qe&&+me==0&&Y!=="+"&&(qe=!1),Ce=(qe?Y==="("?Y:B:Y==="-"||Y==="("?"":Y)+Ce,Me=(te==="s"?y[8+f/3]:"")+Me+(qe&&Y==="("?")":""),Ae){for(Le=-1,Se=me.length;++LeEe||Ee>57){Me=(Ee===46?P+me.slice(Le+1):me.slice(Le))+Me,me=me.slice(0,Le);break}}}ne&&!re&&(me=S(me,1/0));var Ue=Ce.length+me.length+Me.length,Je=Ue>1)+Ce+me+Me+Je.slice(Ue);break;default:me=Je+Ce+me+Me;break}return R(me)}return Pe.toString=function(){return V+""},Pe}function G(V,j){var W=U((V=l(V),V.type="f",V)),Y=Math.max(-8,Math.min(8,Math.floor(a(j)/3)))*3,J=Math.pow(10,-Y),re=y[8+Y/3];return function(le){return W(J*le)+re}}return{format:U,formatPrefix:G}}var T;w({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function w(M){return T=b(M),e.format=T.format,e.formatPrefix=T.formatPrefix,T}function x(M){return Math.max(0,-a(Math.abs(M)))}function _(M,S){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(a(S)/3)))*3-a(Math.abs(M)))}function k(M,S){return M=Math.abs(M),S=Math.abs(S)-M,Math.max(0,a(S)-a(M))+1}e.FormatSpecifier=s,e.formatDefaultLocale=w,e.formatLocale=b,e.formatSpecifier=l,e.precisionFixed=x,e.precisionPrefix=_,e.precisionRound=k,Object.defineProperty(e,"__esModule",{value:!0})}))});var eq=z((bje,QS)=>{"use strict";QS.exports=function(e){for(var r=e.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}});var Br=z((xje,rq)=>{"use strict";var n0e=eq();rq.exports=function(e){var r=typeof e;if(r==="string"){var t=e;if(e=+e,e===0&&n0e(t))return!1}else if(r!=="number")return!1;return e-e<1}});var aa={};Dt(aa,{ALMOST_EQUAL:()=>T0e,BADNUM:()=>m5,EPOCHJD:()=>w0e,FP_SAFE:()=>i0e,LOG_CLIP:()=>A0e,MINUS_SIGN:()=>M0e,ONEAVGMONTH:()=>h0e,ONEAVGQUARTER:()=>f0e,ONEAVGYEAR:()=>l0e,ONEDAY:()=>m0e,ONEHOUR:()=>y0e,ONEMAXMONTH:()=>v0e,ONEMAXQUARTER:()=>u0e,ONEMAXYEAR:()=>o0e,ONEMICROSEC:()=>_0e,ONEMILLI:()=>x0e,ONEMIN:()=>g0e,ONEMINMONTH:()=>d0e,ONEMINQUARTER:()=>c0e,ONEMINYEAR:()=>s0e,ONESEC:()=>b0e,ONEWEEK:()=>p0e});var m5,i0e,o0e,l0e,s0e,u0e,f0e,c0e,v0e,h0e,d0e,p0e,m0e,y0e,g0e,b0e,x0e,_0e,w0e,T0e,A0e,M0e,Kt=Ct(()=>{"use strict";m5=void 0,i0e=Number.MAX_VALUE*1e-4,o0e=316224e5,l0e=315576e5,s0e=31536e6,u0e=79488e5,f0e=78894e5,c0e=76896e5,v0e=26784e5,h0e=26298e5,d0e=24192e5,p0e=6048e5,m0e=864e5,y0e=36e5,g0e=6e4,b0e=1e3,x0e=1,_0e=.001,w0e=24405875e-1,T0e=1-1e-6,A0e=10,M0e="\u2212"});var y5=z((U1,tq)=>{(function(e,r){typeof U1=="object"&&typeof tq!="undefined"?r(U1):(e=typeof globalThis!="undefined"?globalThis:e||self,r(e["base64-arraybuffer"]={}))})(U1,(function(e){"use strict";for(var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),a=0;a>2],f+=r[(l[s]&3)<<4|l[s+1]>>4],f+=r[(l[s+1]&15)<<2|l[s+2]>>6],f+=r[l[s+2]&63];return u%3===2?f=f.substring(0,f.length-1)+"=":u%3===1&&(f=f.substring(0,f.length-2)+"=="),f},i=function(o){var l=o.length*.75,s=o.length,u,f=0,c,v,d,p;o[o.length-1]==="="&&(l--,o[o.length-2]==="="&&l--);var m=new ArrayBuffer(l),y=new Uint8Array(m);for(u=0;u>4,y[f++]=(v&15)<<4|d>>2,y[f++]=(d&3)<<6|p&63;return m};e.decode=i,e.encode=n,Object.defineProperty(e,"__esModule",{value:!0})}))});var Fu=z((_je,aq)=>{"use strict";aq.exports=function(r){return window&&window.process&&window.process.versions?Object.prototype.toString.call(r)==="[object Object]":Object.prototype.toString.call(r)==="[object Object]"&&Object.getPrototypeOf(r).hasOwnProperty("hasOwnProperty")}});var Qn=z(qo=>{"use strict";var k0e=y5().decode,S0e=Fu(),g5=Array.isArray,q0e=ArrayBuffer,L0e=DataView;function nq(e){return q0e.isView(e)&&!(e instanceof L0e)}qo.isTypedArray=nq;function G1(e){return g5(e)||nq(e)}qo.isArrayOrTypedArray=G1;function C0e(e){return!G1(e[0])}qo.isArray1D=C0e;qo.ensureArray=function(e,r){return g5(e)||(e=[]),e.length=r,e};var Ja={u1c:typeof Uint8ClampedArray=="undefined"?void 0:Uint8ClampedArray,i1:typeof Int8Array=="undefined"?void 0:Int8Array,u1:typeof Uint8Array=="undefined"?void 0:Uint8Array,i2:typeof Int16Array=="undefined"?void 0:Int16Array,u2:typeof Uint16Array=="undefined"?void 0:Uint16Array,i4:typeof Int32Array=="undefined"?void 0:Int32Array,u4:typeof Uint32Array=="undefined"?void 0:Uint32Array,f4:typeof Float32Array=="undefined"?void 0:Float32Array,f8:typeof Float64Array=="undefined"?void 0:Float64Array};Ja.uint8c=Ja.u1c;Ja.uint8=Ja.u1;Ja.int8=Ja.i1;Ja.uint16=Ja.u2;Ja.int16=Ja.i2;Ja.uint32=Ja.u4;Ja.int32=Ja.i4;Ja.float32=Ja.f4;Ja.float64=Ja.f8;function b5(e){return e.constructor===ArrayBuffer}qo.isArrayBuffer=b5;qo.decodeTypedArraySpec=function(e){var r=[],t=D0e(e),a=t.dtype,n=Ja[a];if(!n)throw new Error('Error in dtype: "'+a+'"');var i=n.BYTES_PER_ELEMENT,o=t.bdata;b5(o)||(o=k0e(o));var l=t.shape===void 0?[o.byteLength/i]:(""+t.shape).split(",");l.reverse();var s=l.length,u,f,c=+l[0],v=i*c,d=0;if(s===1)r=new n(o);else if(s===2)for(u=+l[1],f=0;f{"use strict";var oq=Br(),_5=Qn().isArrayOrTypedArray;fq.exports=function(r,t){if(oq(t))t=String(t);else if(typeof t!="string"||t.slice(-4)==="[-1]")throw"bad property string";var a=t.split("."),n,i,o,l;for(l=0;l{"use strict";var Ac=Y1(),z0e=/^\w*$/,N0e=0,cq=1,V1=2,vq=3,zu=4;hq.exports=function(r,t,a,n){a=a||"name",n=n||"value";var i,o,l,s={};t&&t.length?(l=Ac(r,t),o=l.get()):o=r,t=t||"";var u={};if(o)for(i=0;i2)return s[d]=s[d]|V1,c.set(v,null);if(f){for(i=d;i{"use strict";var I0e=/^(.*)(\.[^\.\[\]]+|\[\d\])$/,B0e=/^[^\.\[\]]+$/;pq.exports=function(e,r){for(;r;){var t=e.match(I0e);if(t)e=t[1];else if(e.match(B0e))e="";else throw new Error("bad relativeAttr call:"+[e,r]);if(r.charAt(0)==="^")r=r.slice(1);else break}return e&&r.charAt(0)!=="["?e+"."+r:e+r}});var j1=z((kje,yq)=>{"use strict";var O0e=Br();yq.exports=function(r,t){if(r>0)return Math.log(r)/Math.LN10;var a=Math.log(Math.min(t[0],t[1]))/Math.LN10;return O0e(a)||(a=Math.log(Math.max(t[0],t[1]))/Math.LN10-6),a}});var xq=z((Sje,bq)=>{"use strict";var gq=Qn().isArrayOrTypedArray,Kv=Fu();bq.exports=function e(r,t){for(var a in t){var n=t[a],i=r[a];if(i!==n)if(a.charAt(0)==="_"||typeof n=="function"){if(a in r)continue;r[a]=n}else if(gq(n)&&gq(i)&&Kv(n[0])){if(a==="customdata"||a==="ids")continue;for(var o=Math.min(n.length,i.length),l=0;lH0e,modHalf:()=>U0e});function H0e(e,r){let t=e%r;return t<0?t+r:t}function U0e(e,r){return Math.abs(e)>r/2?e-Math.round(e/r)*r:e}var kc=Ct(()=>{"use strict"});var St=z(rh=>{"use strict";var _q=Fu(),Qv=Array.isArray;function G0e(e,r){var t,a;for(t=0;t{"use strict";wq.exports=function(e){var r=e.variantValues,t=e.editType,a=e.colorEditType;a===void 0&&(a=t);var n={editType:t,valType:"integer",min:1,max:1e3,extras:["normal","bold"],dflt:"normal"};e.noNumericWeightValues&&(n.valType="enumerated",n.values=n.extras,n.extras=void 0,n.min=void 0,n.max=void 0);var i={family:{valType:"string",noBlank:!0,strict:!0,editType:t},size:{valType:"number",min:1,editType:t},color:{valType:"color",editType:a},weight:n,style:{editType:t,valType:"enumerated",values:["normal","italic"],dflt:"normal"},variant:e.noFontVariant?void 0:{editType:t,valType:"enumerated",values:r||["normal","small-caps","all-small-caps","all-petite-caps","petite-caps","unicase"],dflt:"normal"},textcase:e.noFontTextcase?void 0:{editType:t,valType:"enumerated",values:["normal","word caps","upper","lower"],dflt:"normal"},lineposition:e.noFontLineposition?void 0:{editType:t,valType:"flaglist",flags:["under","over","through"],extras:["none"],dflt:"none"},shadow:e.noFontShadow?void 0:{editType:t,valType:"string",dflt:e.autoShadowDflt?"auto":"none"},editType:t};return e.autoSize&&(i.size.dflt="auto"),e.autoColor&&(i.color.dflt="auto"),e.arrayOk&&(i.family.arrayOk=!0,i.weight.arrayOk=!0,i.style.arrayOk=!0,e.noFontVariant||(i.variant.arrayOk=!0),e.noFontTextcase||(i.textcase.arrayOk=!0),e.noFontLineposition||(i.lineposition.arrayOk=!0),e.noFontShadow||(i.shadow.arrayOk=!0),i.size.arrayOk=!0,i.color.arrayOk=!0),i}});var th={};Dt(th,{HOVERARROWSIZE:()=>V0e,HOVERFONT:()=>X0e,HOVERFONTSIZE:()=>W0e,HOVERID:()=>$0e,HOVERMINTIME:()=>Z0e,HOVERTEXTPAD:()=>j0e,YANGLE:()=>Y0e});var Y0e,V0e,j0e,W0e,X0e,Z0e,$0e,ah=Ct(()=>{"use strict";Y0e=60,V0e=6,j0e=3,W0e=13,X0e="Arial, sans-serif",Z0e=50,$0e="-hover"});var Sc=z((Cje,Mq)=>{"use strict";var Tq=(ah(),Ne(th)),Aq=Ia(),w5=Aq({editType:"none"});w5.family.dflt=Tq.HOVERFONT;w5.size.dflt=Tq.HOVERFONTSIZE;Mq.exports={clickmode:{valType:"flaglist",flags:["event","select"],dflt:"event",editType:"plot",extras:["none"]},dragmode:{valType:"enumerated",values:["zoom","pan","select","lasso","drawclosedpath","drawopenpath","drawline","drawrect","drawcircle","orbit","turntable",!1],dflt:"zoom",editType:"modebar"},hovermode:{valType:"enumerated",values:["x","y","closest",!1,"x unified","y unified"],dflt:"closest",editType:"modebar"},hoversort:{valType:"enumerated",values:["trace","value descending","value ascending"],dflt:"trace",editType:"none"},hoversubplots:{valType:"enumerated",values:["single","overlaying","axis"],dflt:"overlaying",editType:"none"},hoveranywhere:{valType:"boolean",dflt:!1,editType:"none"},clickanywhere:{valType:"boolean",dflt:!1,editType:"none"},hoverdistance:{valType:"integer",min:-1,dflt:20,editType:"none"},spikedistance:{valType:"integer",min:-1,dflt:-1,editType:"none"},hoverlabel:{bgcolor:{valType:"color",editType:"none"},bordercolor:{valType:"color",editType:"none"},font:w5,grouptitlefont:Aq({editType:"none"}),align:{valType:"enumerated",values:["left","right","auto"],dflt:"auto",editType:"none"},namelength:{valType:"integer",min:-1,dflt:15,editType:"none"},showarrow:{valType:"boolean",dflt:!0,editType:"none"},editType:"none"},selectdirection:{valType:"enumerated",values:["h","v","d","any"],dflt:"any",editType:"none"}}});var W1=z((Dje,kq)=>{"use strict";var J0e=Ia(),nh=Sc().hoverlabel,ih=St().extendFlat;kq.exports={hoverlabel:{bgcolor:ih({},nh.bgcolor,{arrayOk:!0}),bordercolor:ih({},nh.bordercolor,{arrayOk:!0}),font:J0e({arrayOk:!0,editType:"none"}),align:ih({},nh.align,{arrayOk:!0}),namelength:ih({},nh.namelength,{arrayOk:!0}),showarrow:ih({},nh.showarrow),editType:"none"}}});var Gn=z((Eje,Sq)=>{"use strict";var K0e=Ia(),Q0e=W1();Sq.exports={type:{valType:"enumerated",values:[],dflt:"scatter",editType:"calc+clearAxisTypes",_noTemplating:!0},visible:{valType:"enumerated",values:[!0,!1,"legendonly"],dflt:!0,editType:"calc"},showlegend:{valType:"boolean",dflt:!0,editType:"style"},legend:{valType:"subplotid",dflt:"legend",editType:"style"},legendgroup:{valType:"string",dflt:"",editType:"style"},legendgrouptitle:{text:{valType:"string",dflt:"",editType:"style"},font:K0e({editType:"style"}),editType:"style"},legendrank:{valType:"number",dflt:1e3,editType:"style"},legendwidth:{valType:"number",min:0,editType:"style"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"style"},name:{valType:"string",editType:"style"},uid:{valType:"string",editType:"plot",anim:!0},ids:{valType:"data_array",editType:"calc",anim:!0},customdata:{valType:"data_array",editType:"calc"},meta:{valType:"any",arrayOk:!0,editType:"plot"},selectedpoints:{valType:"any",editType:"calc"},hoverinfo:{valType:"flaglist",flags:["x","y","z","text","name"],extras:["all","none","skip"],arrayOk:!0,dflt:"all",editType:"none"},hoverlabel:Q0e.hoverlabel,uirevision:{valType:"any",editType:"none"}}});var bC=z((Bje,gC)=>{var d_=Object.defineProperty,eve=Object.getOwnPropertyDescriptor,rve=Object.getOwnPropertyNames,tve=Object.prototype.hasOwnProperty,ave=(e,r)=>{for(var t in r)d_(e,t,{get:r[t],enumerable:!0})},nve=(e,r,t,a)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of rve(r))!tve.call(e,n)&&n!==t&&d_(e,n,{get:()=>r[n],enumerable:!(a=eve(r,n))||a.enumerable});return e},ive=e=>nve(d_({},"__esModule",{value:!0}),e),Nq={};ave(Nq,{a98:()=>$2e,average:()=>rhe,averageAngle:()=>ll,averageNumber:()=>eL,blend:()=>e2e,blerp:()=>X5,clampChroma:()=>x2e,clampGamut:()=>H_,clampRgb:()=>b2e,colorsNamed:()=>Bq,convertA98ToXyz65:()=>Z5,convertCubehelixToRgb:()=>Kq,convertDlchToLab65:()=>tp,convertHsiToRgb:()=>sL,convertHslToRgb:()=>cL,convertHsvToRgb:()=>x_,convertHwbToRgb:()=>pL,convertItpToXyz65:()=>J5,convertJabToJch:()=>Q5,convertJabToRgb:()=>k_,convertJabToXyz65:()=>A_,convertJchToJab:()=>e_,convertLab65ToDlch:()=>ap,convertLab65ToRgb:()=>hh,convertLab65ToXyz65:()=>y_,convertLabToLch:()=>Il,convertLabToRgb:()=>q_,convertLabToXyz50:()=>hp,convertLchToLab:()=>Bl,convertLchuvToLuv:()=>D_,convertLrgbToOklab:()=>E_,convertLrgbToRgb:()=>Gu,convertLuvToLchuv:()=>C_,convertLuvToXyz50:()=>ip,convertOkhslToOklab:()=>a_,convertOkhsvToOklab:()=>i_,convertOklabToLrgb:()=>Fc,convertOklabToOkhsl:()=>t_,convertOklabToOkhsv:()=>n_,convertOklabToRgb:()=>mh,convertP3ToXyz65:()=>o_,convertProphotoToXyz50:()=>u_,convertRec2020ToXyz65:()=>c_,convertRgbToCubehelix:()=>Jq,convertRgbToHsi:()=>uL,convertRgbToHsl:()=>vL,convertRgbToHsv:()=>__,convertRgbToHwb:()=>mL,convertRgbToJab:()=>M_,convertRgbToLab:()=>L_,convertRgbToLab65:()=>dh,convertRgbToLrgb:()=>Uu,convertRgbToOklab:()=>ph,convertRgbToXyb:()=>YL,convertRgbToXyz50:()=>Rc,convertRgbToXyz65:()=>ws,convertRgbToYiq:()=>JL,convertXybToRgb:()=>VL,convertXyz50ToLab:()=>dp,convertXyz50ToLuv:()=>np,convertXyz50ToProphoto:()=>s_,convertXyz50ToRgb:()=>Pc,convertXyz50ToXyz65:()=>ZL,convertXyz65ToA98:()=>$5,convertXyz65ToItp:()=>K5,convertXyz65ToJab:()=>T_,convertXyz65ToLab65:()=>g_,convertXyz65ToP3:()=>l_,convertXyz65ToRec2020:()=>f_,convertXyz65ToRgb:()=>Ts,convertXyz65ToXyz50:()=>XL,convertYiqToRgb:()=>KL,converter:()=>Yt,cubehelix:()=>J2e,differenceCie76:()=>Xve,differenceCie94:()=>Zve,differenceCiede2000:()=>$ve,differenceCmc:()=>Jve,differenceEuclidean:()=>Ec,differenceHueChroma:()=>vh,differenceHueNaive:()=>Qq,differenceHueSaturation:()=>ch,differenceHyab:()=>Kve,differenceItp:()=>ehe,differenceKotsarenkoRamos:()=>Qve,displayable:()=>O_,dlab:()=>K2e,dlch:()=>Q2e,easingGamma:()=>hC,easingInOutSine:()=>X2e,easingMidpoint:()=>oC,easingSmootherstep:()=>j2e,easingSmoothstep:()=>G2e,easingSmoothstepInverse:()=>Y2e,filterBrightness:()=>L2e,filterContrast:()=>C2e,filterDeficiencyDeuter:()=>H2e,filterDeficiencyProt:()=>O2e,filterDeficiencyTrit:()=>U2e,filterGrayscale:()=>P2e,filterHueRotate:()=>F2e,filterInvert:()=>R2e,filterSaturate:()=>E2e,filterSepia:()=>D2e,fixupAlpha:()=>Va,fixupHueDecreasing:()=>Gve,fixupHueIncreasing:()=>Uve,fixupHueLonger:()=>Hve,fixupHueShorter:()=>ol,formatCss:()=>Wde,formatHex:()=>Xde,formatHex8:()=>Zde,formatHsl:()=>Jde,formatRgb:()=>$de,getMode:()=>Sn,hsi:()=>e1e,hsl:()=>r1e,hsv:()=>t1e,hwb:()=>a1e,inGamut:()=>yp,interpolate:()=>u2e,interpolateWith:()=>sC,interpolateWithPremultipliedAlpha:()=>f2e,interpolatorLinear:()=>wr,interpolatorPiecewise:()=>Zq,interpolatorSplineBasis:()=>fC,interpolatorSplineBasisClosed:()=>cC,interpolatorSplineMonotone:()=>h2e,interpolatorSplineMonotone2:()=>d2e,interpolatorSplineMonotoneClosed:()=>p2e,interpolatorSplineNatural:()=>c2e,interpolatorSplineNaturalClosed:()=>v2e,itp:()=>n1e,jab:()=>i1e,jch:()=>o1e,lab:()=>l1e,lab65:()=>s1e,lch:()=>u1e,lch65:()=>f1e,lchuv:()=>c1e,lerp:()=>Iu,lrgb:()=>v1e,luv:()=>h1e,mapAlphaDivide:()=>iC,mapAlphaMultiply:()=>nC,mapTransferGamma:()=>i2e,mapTransferLinear:()=>N_,mapper:()=>yh,modeA98:()=>$q,modeCubehelix:()=>rL,modeDlab:()=>oL,modeDlch:()=>lL,modeHsi:()=>fL,modeHsl:()=>b_,modeHsv:()=>w_,modeHwb:()=>gL,modeItp:()=>_L,modeJab:()=>wL,modeJch:()=>TL,modeLab:()=>pp,modeLab65:()=>ML,modeLch:()=>mp,modeLch65:()=>SL,modeLchuv:()=>CL,modeLrgb:()=>DL,modeLuv:()=>EL,modeOkhsl:()=>RL,modeOkhsv:()=>FL,modeOklab:()=>NL,modeOklch:()=>BL,modeP3:()=>OL,modeProphoto:()=>HL,modeRec2020:()=>UL,modeRgb:()=>Hu,modeXyb:()=>jL,modeXyz50:()=>WL,modeXyz65:()=>$L,modeYiq:()=>QL,nearest:()=>T2e,okhsl:()=>d1e,okhsv:()=>p1e,oklab:()=>m1e,oklch:()=>y1e,p3:()=>g1e,parse:()=>jq,parseHex:()=>Hq,parseHsl:()=>dL,parseHslLegacy:()=>hL,parseHwb:()=>yL,parseLab:()=>AL,parseLch:()=>kL,parseNamed:()=>Oq,parseOklab:()=>zL,parseOklch:()=>IL,parseRgb:()=>Wq,parseRgbLegacy:()=>Uq,parseTransparent:()=>Xq,prophoto:()=>b1e,random:()=>n2e,rec2020:()=>x1e,removeParser:()=>bve,rgb:()=>_1e,round:()=>eC,samples:()=>g2e,serializeHex:()=>z_,serializeHex8:()=>rC,serializeHsl:()=>aC,serializeRgb:()=>tC,toGamut:()=>_2e,trilerp:()=>Cve,unlerp:()=>Lve,useMode:()=>Et,useParser:()=>Yq,wcagContrast:()=>Z2e,wcagLuminance:()=>h_,xyb:()=>w1e,xyz50:()=>T1e,xyz65:()=>A1e,yiq:()=>M1e});gC.exports=ive(Nq);var ove=(e,r)=>{if(typeof e=="number"){if(r===3)return{mode:"rgb",r:(e>>8&15|e>>4&240)/255,g:(e>>4&15|e&240)/255,b:(e&15|e<<4&240)/255};if(r===4)return{mode:"rgb",r:(e>>12&15|e>>8&240)/255,g:(e>>8&15|e>>4&240)/255,b:(e>>4&15|e&240)/255,alpha:(e&15|e<<4&240)/255};if(r===6)return{mode:"rgb",r:(e>>16&255)/255,g:(e>>8&255)/255,b:(e&255)/255};if(r===8)return{mode:"rgb",r:(e>>24&255)/255,g:(e>>16&255)/255,b:(e>>8&255)/255,alpha:(e&255)/255}}},Iq=ove,lve={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},Bq=lve,sve=e=>Iq(Bq[e.toLowerCase()],6),Oq=sve,uve=/^#?([0-9a-f]{8}|[0-9a-f]{6}|[0-9a-f]{4}|[0-9a-f]{3})$/i,fve=e=>{let r;return(r=e.match(uve))?Iq(parseInt(r[1],16),r[1].length):void 0},Hq=fve,ei="([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)",Pje=`(?:${ei}|none)`,sh=`${ei}%`,Rje=`(?:${ei}%|none)`,p_=`(?:${ei}%|${ei})`,cve=`(?:${ei}%|${ei}|none)`,vve=`(?:${ei}(deg|grad|rad|turn)|${ei})`,Fje=`(?:${ei}(deg|grad|rad|turn)|${ei}|none)`,Cc="\\s*,\\s*",zje=new RegExp("^"+cve+"$"),hve=new RegExp(`^rgba?\\(\\s*${ei}${Cc}${ei}${Cc}${ei}\\s*(?:,\\s*${p_}\\s*)?\\)$`),dve=new RegExp(`^rgba?\\(\\s*${sh}${Cc}${sh}${Cc}${sh}\\s*(?:,\\s*${p_}\\s*)?\\)$`),pve=e=>{let r={mode:"rgb"},t;if(t=e.match(hve))t[1]!==void 0&&(r.r=t[1]/255),t[2]!==void 0&&(r.g=t[2]/255),t[3]!==void 0&&(r.b=t[3]/255);else if(t=e.match(dve))t[1]!==void 0&&(r.r=t[1]/100),t[2]!==void 0&&(r.g=t[2]/100),t[3]!==void 0&&(r.b=t[3]/100);else return;return t[4]!==void 0?r.alpha=Math.max(0,Math.min(1,t[4]/100)):t[5]!==void 0&&(r.alpha=Math.max(0,Math.min(1,+t[5]))),r},Uq=pve,mve=(e,r)=>e===void 0?void 0:typeof e!="object"?jq(e):e.mode!==void 0?e:r?Jt(At({},e),{mode:r}):void 0,Lo=mve,yve=(e="rgb")=>r=>(r=Lo(r,e))!==void 0?r.mode===e?r:il[r.mode][e]?il[r.mode][e](r):e==="rgb"?il[r.mode].rgb(r):il.rgb[e](il[r.mode].rgb(r)):void 0,Yt=yve,il={},Gq={},Dc=[],m_={},gve=e=>e,Et=e=>(il[e.mode]=At(At({},il[e.mode]),e.toMode),Object.keys(e.fromMode||{}).forEach(r=>{il[r]||(il[r]={}),il[r][e.mode]=e.fromMode[r]}),e.ranges||(e.ranges={}),e.difference||(e.difference={}),e.channels.forEach(r=>{if(e.ranges[r]===void 0&&(e.ranges[r]=[0,1]),!e.interpolate[r])throw new Error(`Missing interpolator for: ${r}`);typeof e.interpolate[r]=="function"&&(e.interpolate[r]={use:e.interpolate[r]}),e.interpolate[r].fixup||(e.interpolate[r].fixup=gve)}),Gq[e.mode]=e,(e.parse||[]).forEach(r=>{Yq(r,e.mode)}),Yt(e.mode)),Sn=e=>Gq[e],Yq=(e,r)=>{if(typeof e=="string"){if(!r)throw new Error("'mode' required when 'parser' is a string");m_[e]=r}else typeof e=="function"&&Dc.indexOf(e)<0&&Dc.push(e)},bve=e=>{if(typeof e=="string")delete m_[e];else if(typeof e=="function"){let r=Dc.indexOf(e);r>0&&Dc.splice(r,1)}},j5=/[^\x00-\x7F]|[a-zA-Z_]/,xve=/[^\x00-\x7F]|[-\w]/,dr={Function:"function",Ident:"ident",Number:"number",Percentage:"percentage",ParenClose:")",None:"none",Hue:"hue",Alpha:"alpha"},Ur=0;function X1(e){let r=e[Ur],t=e[Ur+1];return r==="-"||r==="+"?/\d/.test(t)||t==="."&&/\d/.test(e[Ur+2]):r==="."?/\d/.test(t):/\d/.test(r)}function W5(e){if(Ur>=e.length)return!1;let r=e[Ur];if(j5.test(r))return!0;if(r==="-"){if(e.length-Ur<2)return!1;let t=e[Ur+1];return!!(t==="-"||j5.test(t))}return!1}var _ve={deg:1,rad:180/Math.PI,grad:9/10,turn:360};function oh(e){let r="";if((e[Ur]==="-"||e[Ur]==="+")&&(r+=e[Ur++]),r+=Z1(e),e[Ur]==="."&&/\d/.test(e[Ur+1])&&(r+=e[Ur++]+Z1(e)),(e[Ur]==="e"||e[Ur]==="E")&&((e[Ur+1]==="-"||e[Ur+1]==="+")&&/\d/.test(e[Ur+2])?r+=e[Ur++]+e[Ur++]+Z1(e):/\d/.test(e[Ur+1])&&(r+=e[Ur++]+Z1(e))),W5(e)){let t=K1(e);return t==="deg"||t==="rad"||t==="turn"||t==="grad"?{type:dr.Hue,value:r*_ve[t]}:void 0}return e[Ur]==="%"?(Ur++,{type:dr.Percentage,value:+r}):{type:dr.Number,value:+r}}function Z1(e){let r="";for(;/\d/.test(e[Ur]);)r+=e[Ur++];return r}function K1(e){let r="";for(;Ur4)){if(t.length===4){if(t[3].type!==pr.Alpha)return;t[3]=t[3].value}return t.length===3&&t.push({type:pr.None,value:void 0}),t.every(n=>n.type!==pr.Alpha)?t:void 0}}function bve(e,r){e._i=0;let t=e[e._i++];if(!t||t.type!==pr.Function)return;let a=Iq(e,r);if(a)return a.unshift(t.value),a}var xve=e=>{if(typeof e!="string")return;let r=yve(e),t=r?bve(r,!0):void 0,a,n=0,i=Lc.length;for(;ne==="transparent"?{mode:"rgb",r:0,g:0,b:0,alpha:0}:void 0,Hq=wve,Ru=(e,r,t)=>e+t*(r-e),Ave=(e,r,t)=>(t-e)/(r-e),G5=(e,r,t,a,n,i)=>Ru(Ru(e,r,n),Ru(t,a,n),i),Tve=(e,r,t,a,n,i,o,l,s,u,f)=>Ru(G5(e,r,t,a,s,u),G5(n,i,o,l,s,u),f),Mve=e=>{let r=[];for(let t=0;tr=>{let t=Mve(r);return a=>{let n=a*t.length,i=a>=1?t.length-1:Math.max(Math.floor(n),0),o=t[i];return o===void 0?void 0:e(o[0],o[1],n-i)}},wr=Uq(Ru),Ba=e=>{let r=!1,t=e.map(a=>a!==void 0?(r=!0,a):1);return r?t:e},kve={mode:"rgb",channels:["r","g","b","alpha"],parse:[Oq,Rq,Fq,Pq,Hq,"srgb"],serialize:"srgb",interpolate:{r:wr,g:wr,b:wr,alpha:{use:wr,fixup:Ba}},gamut:!0,white:{r:1,g:1,b:1},black:{r:0,g:0,b:0}},Nu=kve,g5=(e=0)=>Math.pow(Math.abs(e),563/256)*Math.sign(e),Sve=e=>{let r=g5(e.r),t=g5(e.g),a=g5(e.b),n={mode:"xyz65",x:.5766690429101305*r+.1855582379065463*t+.1882286462349947*a,y:.297344975250536*r+.6273635662554661*t+.0752914584939979*a,z:.0270313613864123*r+.0706888525358272*t+.9913375368376386*a};return e.alpha!==void 0&&(n.alpha=e.alpha),n},Y5=Sve,b5=e=>Math.pow(Math.abs(e),256/563)*Math.sign(e),qve=({x:e,y:r,z:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n={mode:"a98",r:b5(e*2.0415879038107465-r*.5650069742788597-.3447313507783297*t),g:b5(e*-.9692436362808798+r*1.8759675015077206+.0415550574071756*t),b:b5(e*.0134442806320312-r*.1183623922310184+1.0151749943912058*t)};return a!==void 0&&(n.alpha=a),n},V5=qve,x5=(e=0)=>{let r=Math.abs(e);return r<=.04045?e/12.92:(Math.sign(e)||1)*Math.pow((r+.055)/1.055,2.4)},Lve=({r:e,g:r,b:t,alpha:a})=>{let n={mode:"lrgb",r:x5(e),g:x5(r),b:x5(t)};return a!==void 0&&(n.alpha=a),n},Iu=Lve,Cve=e=>{let{r,g:t,b:a,alpha:n}=Iu(e),i={mode:"xyz65",x:.4123907992659593*r+.357584339383878*t+.1804807884018343*a,y:.2126390058715102*r+.715168678767756*t+.0721923153607337*a,z:.0193308187155918*r+.119194779794626*t+.9505321522496607*a};return n!==void 0&&(i.alpha=n),i},gs=Cve,_5=(e=0)=>{let r=Math.abs(e);return r>.0031308?(Math.sign(e)||1)*(1.055*Math.pow(r,1/2.4)-.055):e*12.92},Dve=({r:e,g:r,b:t,alpha:a},n="rgb")=>{let i={mode:n,r:_5(e),g:_5(r),b:_5(t)};return a!==void 0&&(i.alpha=a),i},Bu=Dve,Eve=({x:e,y:r,z:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=Bu({r:e*3.2409699419045226-r*1.537383177570094-.4986107602930034*t,g:e*-.9692436362808796+r*1.8759675015077204+.0415550574071756*t,b:e*.0556300796969936-r*.2039769588889765+1.0569715142428784*t});return a!==void 0&&(n.alpha=a),n},bs=Eve,Pve=Vt(At({},Nu),{mode:"a98",parse:["a98-rgb"],serialize:"a98-rgb",fromMode:{rgb:e=>V5(gs(e)),xyz65:V5},toMode:{rgb:e=>bs(Y5(e)),xyz65:Y5}}),Gq=Pve,Rve=e=>(e=e%360)<0?e+360:e,pn=Rve,op=(e,r)=>e.map((t,a,n)=>{if(t===void 0)return t;let i=pn(t);return a===0||e[a-1]===void 0?i:r(i-pn(n[a-1]))}).reduce((t,a)=>!t.length||a===void 0||t[t.length-1]===void 0?(t.push(a),t):(t.push(a+t[t.length-1]),t),[]),tl=e=>op(e,r=>Math.abs(r)<=180?r:r-360*Math.sign(r)),Fve=e=>op(e,r=>Math.abs(r)>=180||r===0?r:r-360*Math.sign(r)),zve=e=>op(e,r=>r>=0?r:r+360),Nve=e=>op(e,r=>r<=0?r:r-360),an=[-.14861,1.78277,-.29227,-.90649,1.97294,0],Ive=Math.PI/180,Bve=180/Math.PI,_q=an[3]*an[4],wq=an[1]*an[4],Aq=an[1]*an[2]-an[0]*an[3],Ove=({r:e,g:r,b:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=(Aq*t+e*_q-r*wq)/(Aq+_q-wq),i=t-n,o=(an[4]*(r-n)-an[2]*i)/an[3],l={mode:"cubehelix",l:n,s:n===0||n===1?void 0:Math.sqrt(i*i+o*o)/(an[4]*n*(1-n))};return l.s&&(l.h=Math.atan2(o,i)*Bve-120),a!==void 0&&(l.alpha=a),l},Yq=Ove,Hve=({h:e,s:r,l:t,alpha:a})=>{let n={mode:"rgb"};e=(e===void 0?0:e+120)*Ive,t===void 0&&(t=0);let i=r===void 0?0:r*t*(1-t),o=Math.cos(e),l=Math.sin(e);return n.r=t+i*(an[0]*o+an[1]*l),n.g=t+i*(an[2]*o+an[3]*l),n.b=t+i*(an[4]*o+an[5]*l),a!==void 0&&(n.alpha=a),n},Vq=Hve,ch=(e,r)=>{if(e.h===void 0||r.h===void 0||!e.s||!r.s)return 0;let t=pn(e.h),a=pn(r.h),n=Math.sin((a-t+360)/2*Math.PI/180);return 2*Math.sqrt(e.s*r.s)*n},jq=(e,r)=>{if(e.h===void 0||r.h===void 0)return 0;let t=pn(e.h),a=pn(r.h);return Math.abs(a-t)>180?t-(a-360*Math.sign(a-t)):a-t},vh=(e,r)=>{if(e.h===void 0||r.h===void 0||!e.c||!r.c)return 0;let t=pn(e.h),a=pn(r.h),n=Math.sin((a-t+360)/2*Math.PI/180);return 2*Math.sqrt(e.c*r.c)*n},Cc=(e="rgb",r=[1,1,1,0])=>{let t=Mn(e),a=t.channels,n=t.difference,i=Bt(e);return(o,l)=>{let s=i(o),u=i(l);return Math.sqrt(a.reduce((f,c,v)=>{let d=n[c]?n[c](s,u):s[c]-u[c];return f+(r[v]||0)*Math.pow(isNaN(d)?0:d,2)},0))}},Uve=()=>Cc("lab65"),Gve=(e=1,r=.045,t=.015)=>{let a=Bt("lab65");return(n,i)=>{let o=a(n),l=a(i),s=o.l,u=o.a,f=o.b,c=Math.sqrt(u*u+f*f),v=l.l,d=l.a,p=l.b,y=Math.sqrt(d*d+p*p),m=Math.pow(s-v,2),b=Math.pow(c-y,2),A=Math.pow(u-d,2)+Math.pow(f-p,2)-b;return Math.sqrt(m/Math.pow(e,2)+b/Math.pow(1+r*c,2)+A/Math.pow(1+t*c,2))}},Yve=(e=1,r=1,t=1)=>{let a=Bt("lab65");return(n,i)=>{let o=a(n),l=a(i),s=o.l,u=o.a,f=o.b,c=Math.sqrt(u*u+f*f),v=l.l,d=l.a,p=l.b,y=Math.sqrt(d*d+p*p),m=(c+y)/2,b=.5*(1-Math.sqrt(Math.pow(m,7)/(Math.pow(m,7)+Math.pow(25,7)))),A=u*(1+b),w=d*(1+b),x=Math.sqrt(A*A+f*f),_=Math.sqrt(w*w+p*p),k=Math.abs(A)+Math.abs(f)===0?0:Math.atan2(f,A);k+=(k<0)*2*Math.PI;let T=Math.abs(w)+Math.abs(p)===0?0:Math.atan2(p,w);T+=(T<0)*2*Math.PI;let q=v-s,C=_-x,E=x*_===0?0:T-k;E-=(E>Math.PI)*2*Math.PI,E+=(E<-Math.PI)*2*Math.PI;let P=2*Math.sqrt(x*_)*Math.sin(E/2),R=(s+v)/2,N=(x+_)/2,I;x*_===0?I=k+T:(I=(k+T)/2,I-=(Math.abs(k-T)>Math.PI)*Math.PI,I+=(I<0)*2*Math.PI);let O=Math.pow(R-50,2),U=1-.17*Math.cos(I-Math.PI/6)+.24*Math.cos(2*I)+.32*Math.cos(3*I+Math.PI/30)-.2*Math.cos(4*I-63*Math.PI/180),Y=1+.015*O/Math.sqrt(20+O),G=1+.045*N,V=1+.015*N*U,W=30*Math.PI/180*Math.exp(-1*Math.pow((180/Math.PI*I-275)/25,2)),j=2*Math.sqrt(Math.pow(N,7)/(Math.pow(N,7)+Math.pow(25,7))),J=-1*Math.sin(2*W)*j;return Math.sqrt(Math.pow(q/(e*Y),2)+Math.pow(C/(r*G),2)+Math.pow(P/(t*V),2)+J*C/(r*G)*P/(t*V))}},Vve=(e=1,r=1)=>{let t=Bt("lab65");return(a,n)=>{let i=t(a),o=i.l,l=i.a,s=i.b,u=Math.sqrt(l*l+s*s),f=Math.atan2(s,l);f=f+2*Math.PI*(f<0);let c=t(n),v=c.l,d=c.a,p=c.b,y=Math.sqrt(d*d+p*p),m=Math.pow(o-v,2),b=Math.pow(u-y,2),A=Math.pow(l-d,2)+Math.pow(s-p,2)-b,w=Math.sqrt(Math.pow(u,4)/(Math.pow(u,4)+1900)),x=f>=164/180*Math.PI&&f<=345/180*Math.PI?.56+Math.abs(.2*Math.cos(f+168/180*Math.PI)):.36+Math.abs(.4*Math.cos(f+35/180*Math.PI)),_=o<16?.511:.040975*o/(1+.01765*o),k=.0638*u/(1+.0131*u)+.638,T=k*(w*x+1-w);return Math.sqrt(m/Math.pow(e*_,2)+b/Math.pow(r*k,2)+A/Math.pow(T,2))}},jve=()=>{let e=Bt("lab65");return(r,t)=>{let a=e(r),n=e(t),i=a.l-n.l,o=a.a-n.a,l=a.b-n.b;return Math.abs(i)+Math.sqrt(o*o+l*l)}},Wve=()=>Cc("yiq",[.5053,.299,.1957]),Xve=()=>Cc("itp",[518400,129600,518400]),al=e=>{let r=e.reduce((a,n)=>{if(n!==void 0){let i=n*Math.PI/180;a.sin+=Math.sin(i),a.cos+=Math.cos(i)}return a},{sin:0,cos:0}),t=Math.atan2(r.sin,r.cos)*180/Math.PI;return t<0?360+t:t},Wq=e=>{let r=e.filter(t=>t!==void 0);return r.length?r.reduce((t,a)=>t+a,0)/r.length:void 0},w5=e=>typeof e=="function";function Zve(e,r="rgb",t){let a=Mn(r),n=e.map(Bt(r));return a.channels.reduce((i,o)=>{let l=n.map(s=>s[o]).filter(s=>s!==void 0);if(l.length){let s;w5(t)?s=t:t&&w5(t[o])?s=t[o]:a.average&&w5(a.average[o])?s=a.average[o]:s=Wq,i[o]=s(l,o)}return i},{mode:r})}var $ve={mode:"cubehelix",channels:["h","s","l","alpha"],parse:["--cubehelix"],serialize:"--cubehelix",ranges:{h:[0,360],s:[0,4.614],l:[0,1]},fromMode:{rgb:Yq},toMode:{rgb:Vq},interpolate:{h:{use:wr,fixup:tl},s:wr,l:wr,alpha:{use:wr,fixup:Ba}},difference:{h:ch},average:{h:al}},Xq=$ve,Jve=({l:e,a:r,b:t,alpha:a},n="lch")=>{r===void 0&&(r=0),t===void 0&&(t=0);let i=Math.sqrt(r*r+t*t),o={mode:n,l:e,c:i};return i&&(o.h=pn(Math.atan2(t,r)*180/Math.PI)),a!==void 0&&(o.alpha=a),o},zl=Jve,Kve=({l:e,c:r,h:t,alpha:a},n="lab")=>{t===void 0&&(t=0);let i={mode:n,l:e,a:r?r*Math.cos(t/180*Math.PI):0,b:r?r*Math.sin(t/180*Math.PI):0};return a!==void 0&&(i.alpha=a),i},Nl=Kve,Zq=Math.pow(29,3)/Math.pow(3,3),$q=Math.pow(6,3)/Math.pow(29,3),Ia={X:.3457/.3585,Y:1,Z:(1-.3457-.3585)/.3585},Sc={X:.3127/.329,Y:1,Z:(1-.3127-.329)/.329},Sje=Math.pow(29,3)/Math.pow(3,3),qje=Math.pow(6,3)/Math.pow(29,3),A5=e=>Math.pow(e,3)>$q?Math.pow(e,3):(116*e-16)/Zq,Qve=({l:e,a:r,b:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=(e+16)/116,i=r/500+n,o=n-t/200,l={mode:"xyz65",x:A5(i)*Sc.X,y:A5(n)*Sc.Y,z:A5(o)*Sc.Z};return a!==void 0&&(l.alpha=a),l},v_=Qve,ehe=e=>bs(v_(e)),hh=ehe,T5=e=>e>$q?Math.cbrt(e):(Zq*e+16)/116,rhe=({x:e,y:r,z:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=T5(e/Sc.X),i=T5(r/Sc.Y),o=T5(t/Sc.Z),l={mode:"lab65",l:116*i-16,a:500*(n-i),b:200*(i-o)};return a!==void 0&&(l.alpha=a),l},h_=rhe,the=e=>{let r=h_(gs(e));return e.r===e.b&&e.b===e.g&&(r.a=r.b=0),r},dh=the,K1=1,Jq=1,fh=26/180*Math.PI,Q1=Math.cos(fh),ep=Math.sin(fh),Kq=100/Math.log(139/100),ahe=({l:e,c:r,h:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n={mode:"lab65",l:(Math.exp(e*K1/Kq)-1)/.0039},i=(Math.exp(.0435*r*Jq*K1)-1)/.075,o=i*Math.cos(t/180*Math.PI-fh),l=i*Math.sin(t/180*Math.PI-fh);return n.a=o*Q1-l/.83*ep,n.b=o*ep+l/.83*Q1,a!==void 0&&(n.alpha=a),n},rp=ahe,nhe=({l:e,a:r,b:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=r*Q1+t*ep,i=.83*(t*Q1-r*ep),o=Math.sqrt(n*n+i*i),l={mode:"dlch",l:Kq/K1*Math.log(1+.0039*e),c:Math.log(1+.075*o)/(.0435*Jq*K1)};return l.c&&(l.h=pn((Math.atan2(i,n)+fh)/Math.PI*180)),a!==void 0&&(l.alpha=a),l},tp=nhe,Tq=e=>rp(zl(e,"dlch")),Mq=e=>Nl(tp(e),"dlab"),ihe={mode:"dlab",parse:["--din99o-lab"],serialize:"--din99o-lab",toMode:{lab65:Tq,rgb:e=>hh(Tq(e))},fromMode:{lab65:Mq,rgb:e=>Mq(dh(e))},channels:["l","a","b","alpha"],ranges:{l:[0,100],a:[-40.09,45.501],b:[-40.469,44.344]},interpolate:{l:wr,a:wr,b:wr,alpha:{use:wr,fixup:Ba}}},Qq=ihe,ohe={mode:"dlch",parse:["--din99o-lch"],serialize:"--din99o-lch",toMode:{lab65:rp,dlab:e=>Nl(e,"dlab"),rgb:e=>hh(rp(e))},fromMode:{lab65:tp,dlab:e=>zl(e,"dlch"),rgb:e=>tp(dh(e))},channels:["l","c","h","alpha"],ranges:{l:[0,100],c:[0,51.484],h:[0,360]},interpolate:{l:wr,c:wr,h:{use:wr,fixup:tl},alpha:{use:wr,fixup:Ba}},difference:{h:vh},average:{h:al}},eL=ohe;function rL({h:e,s:r,i:t,alpha:a}){e=pn(e!==void 0?e:0),r===void 0&&(r=0),t===void 0&&(t=0);let n=Math.abs(e/60%2-1),i;switch(Math.floor(e/60)){case 0:i={r:t*(1+r*(3/(2-n)-1)),g:t*(1+r*(3*(1-n)/(2-n)-1)),b:t*(1-r)};break;case 1:i={r:t*(1+r*(3*(1-n)/(2-n)-1)),g:t*(1+r*(3/(2-n)-1)),b:t*(1-r)};break;case 2:i={r:t*(1-r),g:t*(1+r*(3/(2-n)-1)),b:t*(1+r*(3*(1-n)/(2-n)-1))};break;case 3:i={r:t*(1-r),g:t*(1+r*(3*(1-n)/(2-n)-1)),b:t*(1+r*(3/(2-n)-1))};break;case 4:i={r:t*(1+r*(3*(1-n)/(2-n)-1)),g:t*(1-r),b:t*(1+r*(3/(2-n)-1))};break;case 5:i={r:t*(1+r*(3/(2-n)-1)),g:t*(1-r),b:t*(1+r*(3*(1-n)/(2-n)-1))};break;default:i={r:t*(1-r),g:t*(1-r),b:t*(1-r)}}return i.mode="rgb",a!==void 0&&(i.alpha=a),i}function tL({r:e,g:r,b:t,alpha:a}){e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=Math.max(e,r,t),i=Math.min(e,r,t),o={mode:"hsi",s:e+r+t===0?0:1-3*i/(e+r+t),i:(e+r+t)/3};return n-i!==0&&(o.h=(n===e?(r-t)/(n-i)+(r{switch(r){case"deg":return+e;case"rad":return e/Math.PI*180;case"grad":return e/10*9;case"turn":return e*360}},uhe=she,fhe=new RegExp(`^hsla?\\(\\s*${ove}${qc}${sh}${qc}${sh}\\s*(?:,\\s*${f_}\\s*)?\\)$`),che=e=>{let r=e.match(fhe);if(!r)return;let t={mode:"hsl"};return r[3]!==void 0?t.h=+r[3]:r[1]!==void 0&&r[2]!==void 0&&(t.h=uhe(r[1],r[2])),r[4]!==void 0&&(t.s=Math.min(Math.max(0,r[4]/100),1)),r[5]!==void 0&&(t.l=Math.min(Math.max(0,r[5]/100),1)),r[6]!==void 0?t.alpha=Math.max(0,Math.min(1,r[6]/100)):r[7]!==void 0&&(t.alpha=Math.max(0,Math.min(1,+r[7]))),t},oL=che;function vhe(e,r){if(!r||r[0]!=="hsl"&&r[0]!=="hsla")return;let t={mode:"hsl"},[,a,n,i,o]=r;if(a.type!==pr.None){if(a.type===pr.Percentage)return;t.h=a.value}if(n.type!==pr.None){if(n.type===pr.Hue)return;t.s=n.value/100}if(i.type!==pr.None){if(i.type===pr.Hue)return;t.l=i.value/100}return o.type!==pr.None&&(t.alpha=Math.min(1,Math.max(0,o.type===pr.Number?o.value:o.value/100))),t}var lL=vhe,hhe={mode:"hsl",toMode:{rgb:nL},fromMode:{rgb:iL},channels:["h","s","l","alpha"],ranges:{h:[0,360]},gamut:"rgb",parse:[lL,oL],serialize:e=>`hsl(${e.h!==void 0?e.h:"none"} ${e.s!==void 0?e.s*100+"%":"none"} ${e.l!==void 0?e.l*100+"%":"none"}${e.alpha<1?` / ${e.alpha}`:""})`,interpolate:{h:{use:wr,fixup:tl},s:wr,l:wr,alpha:{use:wr,fixup:Ba}},difference:{h:ch},average:{h:al}},d_=hhe;function p_({h:e,s:r,v:t,alpha:a}){e=pn(e!==void 0?e:0),r===void 0&&(r=0),t===void 0&&(t=0);let n=Math.abs(e/60%2-1),i;switch(Math.floor(e/60)){case 0:i={r:t,g:t*(1-r*n),b:t*(1-r)};break;case 1:i={r:t*(1-r*n),g:t,b:t*(1-r)};break;case 2:i={r:t*(1-r),g:t,b:t*(1-r*n)};break;case 3:i={r:t*(1-r),g:t*(1-r*n),b:t};break;case 4:i={r:t*(1-r*n),g:t*(1-r),b:t};break;case 5:i={r:t,g:t*(1-r),b:t*(1-r*n)};break;default:i={r:t*(1-r),g:t*(1-r),b:t*(1-r)}}return i.mode="rgb",a!==void 0&&(i.alpha=a),i}function m_({r:e,g:r,b:t,alpha:a}){e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=Math.max(e,r,t),i=Math.min(e,r,t),o={mode:"hsv",s:n===0?0:1-i/n,v:n};return n-i!==0&&(o.h=(n===e?(r-t)/(n-i)+(r1){let n=r+t;r/=n,t/=n}return p_({h:e,s:t===1?1:1-r/(1-t),v:1-t,alpha:a})}function uL(e){let r=m_(e);if(r===void 0)return;let t=r.s!==void 0?r.s:0,a=r.v!==void 0?r.v:0,n={mode:"hwb",w:(1-t)*a,b:1-a};return r.h!==void 0&&(n.h=r.h),r.alpha!==void 0&&(n.alpha=r.alpha),n}function phe(e,r){if(!r||r[0]!=="hwb")return;let t={mode:"hwb"},[,a,n,i,o]=r;if(a.type!==pr.None){if(a.type===pr.Percentage)return;t.h=a.value}if(n.type!==pr.None){if(n.type===pr.Hue)return;t.w=n.value/100}if(i.type!==pr.None){if(i.type===pr.Hue)return;t.b=i.value/100}return o.type!==pr.None&&(t.alpha=Math.min(1,Math.max(0,o.type===pr.Number?o.value:o.value/100))),t}var fL=phe,mhe={mode:"hwb",toMode:{rgb:sL},fromMode:{rgb:uL},channels:["h","w","b","alpha"],ranges:{h:[0,360]},gamut:"rgb",parse:[fL],serialize:e=>`hwb(${e.h!==void 0?e.h:"none"} ${e.w!==void 0?e.w*100+"%":"none"} ${e.b!==void 0?e.b*100+"%":"none"}${e.alpha<1?` / ${e.alpha}`:""})`,interpolate:{h:{use:wr,fixup:tl},w:wr,b:wr,alpha:{use:wr,fixup:Ba}},difference:{h:jq},average:{h:al}},cL=mhe,vL=203,lp=.1593017578125,hL=78.84375,sp=.8359375,up=18.8515625,fp=18.6875;function M5(e){if(e<0)return 0;let r=Math.pow(e,1/hL);return 1e4*Math.pow(Math.max(0,r-sp)/(up-fp*r),1/lp)}function k5(e){if(e<0)return 0;let r=Math.pow(e/1e4,lp);return Math.pow((sp+up*r)/(1+fp*r),hL)}var S5=e=>Math.max(e/vL,0),yhe=({i:e,t:r,p:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=M5(e+.008609037037932761*r+.11102962500302593*t),i=M5(e-.00860903703793275*r-.11102962500302599*t),o=M5(e+.5600313357106791*r-.32062717498731885*t),l={mode:"xyz65",x:S5(2.070152218389422*n-1.3263473389671556*i+.2066510476294051*o),y:S5(.3647385209748074*n+.680566024947227*i-.0453045459220346*o),z:S5(-.049747207535812*n-.0492609666966138*i+1.1880659249923042*o)};return a!==void 0&&(l.alpha=a),l},j5=yhe,q5=(e=0)=>Math.max(e*vL,0),ghe=({x:e,y:r,z:t,alpha:a})=>{let n=q5(e),i=q5(r),o=q5(t),l=k5(.3592832590121217*n+.6976051147779502*i-.0358915932320289*o),s=k5(-.1920808463704995*n+1.1004767970374323*i+.0753748658519118*o),u=k5(.0070797844607477*n+.0748396662186366*i+.8433265453898765*o),f=.5*l+.5*s,c=1.61376953125*l-3.323486328125*s+1.709716796875*u,v=4.378173828125*l-4.24560546875*s-.132568359375*u,d={mode:"itp",i:f,t:c,p:v};return a!==void 0&&(d.alpha=a),d},W5=ghe,bhe={mode:"itp",channels:["i","t","p","alpha"],parse:["--ictcp"],serialize:"--ictcp",toMode:{xyz65:j5,rgb:e=>bs(j5(e))},fromMode:{xyz65:W5,rgb:e=>W5(gs(e))},ranges:{i:[0,.581],t:[-.369,.272],p:[-.164,.331]},interpolate:{i:wr,t:wr,p:wr,alpha:{use:wr,fixup:Ba}}},dL=bhe,xhe=134.03437499999998,_he=16295499532821565e-27,L5=e=>{if(e<0)return 0;let r=Math.pow(e/1e4,lp);return Math.pow((sp+up*r)/(1+fp*r),xhe)},C5=(e=0)=>Math.max(e*203,0),whe=({x:e,y:r,z:t,alpha:a})=>{e=C5(e),r=C5(r),t=C5(t);let n=1.15*e-.15*t,i=.66*r+.34*e,o=L5(.41478972*n+.579999*i+.014648*t),l=L5(-.20151*n+1.120649*i+.0531008*t),s=L5(-.0166008*n+.2648*i+.6684799*t),u=(o+l)/2,f={mode:"jab",j:.44*u/(1-.56*u)-_he,a:3.524*o-4.066708*l+.542708*s,b:.199076*o+1.096799*l-1.295875*s};return a!==void 0&&(f.alpha=a),f},g_=whe,Ahe=134.03437499999998,kq=16295499532821565e-27,D5=e=>{if(e<0)return 0;let r=Math.pow(e,1/Ahe);return 1e4*Math.pow((sp-r)/(fp*r-up),1/lp)},E5=e=>e/203,The=({j:e,a:r,b:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=(e+kq)/(.44+.56*(e+kq)),i=D5(n+.13860504*r+.058047316*t),o=D5(n-.13860504*r-.058047316*t),l=D5(n-.096019242*r-.8118919*t),s={mode:"xyz65",x:E5(1.661373024652174*i-.914523081304348*o+.23136208173913045*l),y:E5(-.3250758611844533*i+1.571847026732543*o-.21825383453227928*l),z:E5(-.090982811*i-.31272829*o+1.5227666*l)};return a!==void 0&&(s.alpha=a),s},b_=The,Mhe=e=>{let r=g_(gs(e));return e.r===e.b&&e.b===e.g&&(r.a=r.b=0),r},x_=Mhe,khe=e=>bs(b_(e)),__=khe,She={mode:"jab",channels:["j","a","b","alpha"],parse:["--jzazbz"],serialize:"--jzazbz",fromMode:{rgb:x_,xyz65:g_},toMode:{rgb:__,xyz65:b_},ranges:{j:[0,.222],a:[-.109,.129],b:[-.185,.134]},interpolate:{j:wr,a:wr,b:wr,alpha:{use:wr,fixup:Ba}}},pL=She,qhe=({j:e,a:r,b:t,alpha:a})=>{r===void 0&&(r=0),t===void 0&&(t=0);let n=Math.sqrt(r*r+t*t),i={mode:"jch",j:e,c:n};return n&&(i.h=pn(Math.atan2(t,r)*180/Math.PI)),a!==void 0&&(i.alpha=a),i},X5=qhe,Lhe=({j:e,c:r,h:t,alpha:a})=>{t===void 0&&(t=0);let n={mode:"jab",j:e,a:r?r*Math.cos(t/180*Math.PI):0,b:r?r*Math.sin(t/180*Math.PI):0};return a!==void 0&&(n.alpha=a),n},Z5=Lhe,Che={mode:"jch",parse:["--jzczhz"],serialize:"--jzczhz",toMode:{jab:Z5,rgb:e=>__(Z5(e))},fromMode:{rgb:e=>X5(x_(e)),jab:X5},channels:["j","c","h","alpha"],ranges:{j:[0,.221],c:[0,.19],h:[0,360]},interpolate:{h:{use:wr,fixup:tl},c:wr,j:wr,alpha:{use:wr,fixup:Ba}},difference:{h:vh},average:{h:al}},mL=Che,cp=Math.pow(29,3)/Math.pow(3,3),w_=Math.pow(6,3)/Math.pow(29,3),P5=e=>Math.pow(e,3)>w_?Math.pow(e,3):(116*e-16)/cp,Dhe=({l:e,a:r,b:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=(e+16)/116,i=r/500+n,o=n-t/200,l={mode:"xyz50",x:P5(i)*Ia.X,y:P5(n)*Ia.Y,z:P5(o)*Ia.Z};return a!==void 0&&(l.alpha=a),l},vp=Dhe,Ehe=({x:e,y:r,z:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=Bu({r:e*3.1341359569958707-r*1.6173863321612538-.4906619460083532*t,g:e*-.978795502912089+r*1.916254567259524+.03344273116131949*t,b:e*.07195537988411677-r*.2289768264158322+1.405386058324125*t});return a!==void 0&&(n.alpha=a),n},Dc=Ehe,Phe=e=>Dc(vp(e)),A_=Phe,Rhe=e=>{let{r,g:t,b:a,alpha:n}=Iu(e),i={mode:"xyz50",x:.436065742824811*r+.3851514688337912*t+.14307845442264197*a,y:.22249319175623702*r+.7168870538238823*t+.06061979053616537*a,z:.013923904500943465*r+.09708128566574634*t+.7140993584005155*a};return n!==void 0&&(i.alpha=n),i},Ec=Rhe,R5=e=>e>w_?Math.cbrt(e):(cp*e+16)/116,Fhe=({x:e,y:r,z:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=R5(e/Ia.X),i=R5(r/Ia.Y),o=R5(t/Ia.Z),l={mode:"lab",l:116*i-16,a:500*(n-i),b:200*(i-o)};return a!==void 0&&(l.alpha=a),l},hp=Fhe,zhe=e=>{let r=hp(Ec(e));return e.r===e.b&&e.b===e.g&&(r.a=r.b=0),r},T_=zhe;function Nhe(e,r){if(!r||r[0]!=="lab")return;let t={mode:"lab"},[,a,n,i,o]=r;if(!(a.type===pr.Hue||n.type===pr.Hue||i.type===pr.Hue))return a.type!==pr.None&&(t.l=Math.min(Math.max(0,a.value),100)),n.type!==pr.None&&(t.a=n.type===pr.Number?n.value:n.value*125/100),i.type!==pr.None&&(t.b=i.type===pr.Number?i.value:i.value*125/100),o.type!==pr.None&&(t.alpha=Math.min(1,Math.max(0,o.type===pr.Number?o.value:o.value/100))),t}var yL=Nhe,Ihe={mode:"lab",toMode:{xyz50:vp,rgb:A_},fromMode:{xyz50:hp,rgb:T_},channels:["l","a","b","alpha"],ranges:{l:[0,100],a:[-125,125],b:[-125,125]},parse:[yL],serialize:e=>`lab(${e.l!==void 0?e.l:"none"} ${e.a!==void 0?e.a:"none"} ${e.b!==void 0?e.b:"none"}${e.alpha<1?` / ${e.alpha}`:""})`,interpolate:{l:wr,a:wr,b:wr,alpha:{use:wr,fixup:Ba}}},dp=Ihe,Bhe=Vt(At({},dp),{mode:"lab65",parse:["--lab-d65"],serialize:"--lab-d65",toMode:{xyz65:v_,rgb:hh},fromMode:{xyz65:h_,rgb:dh},ranges:{l:[0,100],a:[-125,125],b:[-125,125]}}),gL=Bhe;function Ohe(e,r){if(!r||r[0]!=="lch")return;let t={mode:"lch"},[,a,n,i,o]=r;if(a.type!==pr.None){if(a.type===pr.Hue)return;t.l=Math.min(Math.max(0,a.value),100)}if(n.type!==pr.None&&(t.c=Math.max(0,n.type===pr.Number?n.value:n.value*150/100)),i.type!==pr.None){if(i.type===pr.Percentage)return;t.h=i.value}return o.type!==pr.None&&(t.alpha=Math.min(1,Math.max(0,o.type===pr.Number?o.value:o.value/100))),t}var bL=Ohe,Hhe={mode:"lch",toMode:{lab:Nl,rgb:e=>A_(Nl(e))},fromMode:{rgb:e=>zl(T_(e)),lab:zl},channels:["l","c","h","alpha"],ranges:{l:[0,100],c:[0,150],h:[0,360]},parse:[bL],serialize:e=>`lch(${e.l!==void 0?e.l:"none"} ${e.c!==void 0?e.c:"none"} ${e.h!==void 0?e.h:"none"}${e.alpha<1?` / ${e.alpha}`:""})`,interpolate:{h:{use:wr,fixup:tl},c:wr,l:wr,alpha:{use:wr,fixup:Ba}},difference:{h:vh},average:{h:al}},pp=Hhe,Uhe=Vt(At({},pp),{mode:"lch65",parse:["--lch-d65"],serialize:"--lch-d65",toMode:{lab65:e=>Nl(e,"lab65"),rgb:e=>hh(Nl(e,"lab65"))},fromMode:{rgb:e=>zl(dh(e),"lch65"),lab65:e=>zl(e,"lch65")},ranges:{l:[0,100],c:[0,150],h:[0,360]}}),xL=Uhe,Ghe=({l:e,u:r,v:t,alpha:a})=>{r===void 0&&(r=0),t===void 0&&(t=0);let n=Math.sqrt(r*r+t*t),i={mode:"lchuv",l:e,c:n};return n&&(i.h=pn(Math.atan2(t,r)*180/Math.PI)),a!==void 0&&(i.alpha=a),i},M_=Ghe,Yhe=({l:e,c:r,h:t,alpha:a})=>{t===void 0&&(t=0);let n={mode:"luv",l:e,u:r?r*Math.cos(t/180*Math.PI):0,v:r?r*Math.sin(t/180*Math.PI):0};return a!==void 0&&(n.alpha=a),n},k_=Yhe,_L=(e,r,t)=>4*e/(e+15*r+3*t),wL=(e,r,t)=>9*r/(e+15*r+3*t),Vhe=_L(Ia.X,Ia.Y,Ia.Z),jhe=wL(Ia.X,Ia.Y,Ia.Z),Whe=e=>e<=w_?cp*e:116*Math.cbrt(e)-16,Xhe=({x:e,y:r,z:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=Whe(r/Ia.Y),i=_L(e,r,t),o=wL(e,r,t);!isFinite(i)||!isFinite(o)?n=i=o=0:(i=13*n*(i-Vhe),o=13*n*(o-jhe));let l={mode:"luv",l:n,u:i,v:o};return a!==void 0&&(l.alpha=a),l},ap=Xhe,Zhe=(e,r,t)=>4*e/(e+15*r+3*t),$he=(e,r,t)=>9*r/(e+15*r+3*t),Jhe=Zhe(Ia.X,Ia.Y,Ia.Z),Khe=$he(Ia.X,Ia.Y,Ia.Z),Qhe=({l:e,u:r,v:t,alpha:a})=>{if(e===void 0&&(e=0),e===0)return{mode:"xyz50",x:0,y:0,z:0};r===void 0&&(r=0),t===void 0&&(t=0);let n=r/(13*e)+Jhe,i=t/(13*e)+Khe,o=Ia.Y*(e<=8?e/cp:Math.pow((e+16)/116,3)),l=o*(9*n)/(4*i),s=o*(12-3*n-20*i)/(4*i),u={mode:"xyz50",x:l,y:o,z:s};return a!==void 0&&(u.alpha=a),u},np=Qhe,ede=e=>M_(ap(Ec(e))),rde=e=>Dc(np(k_(e))),tde={mode:"lchuv",toMode:{luv:k_,rgb:rde},fromMode:{rgb:ede,luv:M_},channels:["l","c","h","alpha"],parse:["--lchuv"],serialize:"--lchuv",ranges:{l:[0,100],c:[0,176.956],h:[0,360]},interpolate:{h:{use:wr,fixup:tl},c:wr,l:wr,alpha:{use:wr,fixup:Ba}},difference:{h:vh},average:{h:al}},AL=tde,ade=Vt(At({},Nu),{mode:"lrgb",toMode:{rgb:Bu},fromMode:{rgb:Iu},parse:["srgb-linear"],serialize:"srgb-linear"}),TL=ade,nde={mode:"luv",toMode:{xyz50:np,rgb:e=>Dc(np(e))},fromMode:{xyz50:ap,rgb:e=>ap(Ec(e))},channels:["l","u","v","alpha"],parse:["--luv"],serialize:"--luv",ranges:{l:[0,100],u:[-84.936,175.042],v:[-125.882,87.243]},interpolate:{l:wr,u:wr,v:wr,alpha:{use:wr,fixup:Ba}}},ML=nde,ide=({r:e,g:r,b:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=Math.cbrt(.412221469470763*e+.5363325372617348*r+.0514459932675022*t),i=Math.cbrt(.2119034958178252*e+.6806995506452344*r+.1073969535369406*t),o=Math.cbrt(.0883024591900564*e+.2817188391361215*r+.6299787016738222*t),l={mode:"oklab",l:.210454268309314*n+.7936177747023054*i-.0040720430116193*o,a:1.9779985324311684*n-2.42859224204858*i+.450593709617411*o,b:.0259040424655478*n+.7827717124575296*i-.8086757549230774*o};return a!==void 0&&(l.alpha=a),l},S_=ide,ode=e=>{let r=S_(Iu(e));return e.r===e.b&&e.b===e.g&&(r.a=r.b=0),r},ph=ode,lde=({l:e,a:r,b:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=Math.pow(e+.3963377773761749*r+.2158037573099136*t,3),i=Math.pow(e-.1055613458156586*r-.0638541728258133*t,3),o=Math.pow(e-.0894841775298119*r-1.2914855480194092*t,3),l={mode:"lrgb",r:4.076741636075957*n-3.3077115392580616*i+.2309699031821044*o,g:-1.2684379732850317*n+2.6097573492876887*i-.3413193760026573*o,b:-.0041960761386756*n-.7034186179359362*i+1.7076146940746117*o};return a!==void 0&&(l.alpha=a),l},Pc=lde,sde=e=>Bu(Pc(e)),mh=sde;function $5(e){let a=1.170873786407767;return .5*(a*e-.206+Math.sqrt((a*e-.206)*(a*e-.206)+4*.03*a*e))}function ip(e){return(e*e+.206*e)/(1.170873786407767*(e+.03))}function ude(e,r){let t,a,n,i,o,l,s,u;-1.88170328*e-.80936493*r>1?(t=1.19086277,a=1.76576728,n=.59662641,i=.75515197,o=.56771245,l=4.0767416621,s=-3.3077115913,u=.2309699292):1.81444104*e-1.19445276*r>1?(t=.73956515,a=-.45954404,n=.08285427,i=.1254107,o=.14503204,l=-1.2684380046,s=2.6097574011,u=-.3413193965):(t=1.35733652,a=-.00915799,n=-1.1513021,i=-.50559606,o=.00692167,l=-.0041960863,s=-.7034186147,u=1.707614701);let f=t+a*e+n*r+i*e*e+o*e*r,c=.3963377774*e+.2158037573*r,v=-.1055613458*e-.0638541728*r,d=-.0894841775*e-1.291485548*r;{let p=1+f*c,y=1+f*v,m=1+f*d,b=p*p*p,A=y*y*y,w=m*m*m,x=3*c*p*p,_=3*v*y*y,k=3*d*m*m,T=6*c*c*p,q=6*v*v*y,C=6*d*d*m,E=l*b+s*A+u*w,P=l*x+s*_+u*k,R=l*T+s*q+u*C;f=f-E*P/(P*P-.5*E*R)}return f}function q_(e,r){let t=ude(e,r),a=Pc({l:1,a:t*e,b:t*r}),n=Math.cbrt(1/Math.max(a.r,a.g,a.b)),i=n*t;return[n,i]}function fde(e,r,t,a,n,i=null){i||(i=q_(e,r));let o;if((t-n)*i[1]-(i[0]-n)*a<=0)o=i[1]*n/(a*i[0]+i[1]*(n-t));else{o=i[1]*(n-1)/(a*(i[0]-1)+i[1]*(n-t));{let l=t-n,s=a,u=.3963377774*e+.2158037573*r,f=-.1055613458*e-.0638541728*r,c=-.0894841775*e-1.291485548*r,v=l+s*u,d=l+s*f,p=l+s*c;{let y=n*(1-o)+o*t,m=o*a,b=y+m*u,A=y+m*f,w=y+m*c,x=b*b*b,_=A*A*A,k=w*w*w,T=3*v*b*b,q=3*d*A*A,C=3*p*w*w,E=6*v*v*b,P=6*d*d*A,R=6*p*p*w,N=4.0767416621*x-3.3077115913*_+.2309699292*k-1,I=4.0767416621*T-3.3077115913*q+.2309699292*C,O=4.0767416621*E-3.3077115913*P+.2309699292*R,U=I/(I*I-.5*N*O),Y=-N*U,G=-1.2684380046*x+2.6097574011*_-.3413193965*k-1,V=-1.2684380046*T+2.6097574011*q-.3413193965*C,W=-1.2684380046*E+2.6097574011*P-.3413193965*R,j=V/(V*V-.5*G*W),J=-G*j,te=-.0041960863*x-.7034186147*_+1.707614701*k-1,ae=-.0041960863*T-.7034186147*q+1.707614701*C,se=-.0041960863*E-.7034186147*P+1.707614701*R,$=ae/(ae*ae-.5*te*se),fe=-te*$;Y=U>=0?Y:1e6,J=j>=0?J:1e6,fe=$>=0?fe:1e6,o+=Math.min(Y,Math.min(J,fe))}}}return o}function L_(e,r,t=null){t||(t=q_(e,r));let a=t[0],n=t[1];return[n/a,n/(1-a)]}function kL(e,r,t){let a=q_(r,t),n=fde(r,t,e,1,e,a),i=L_(r,t,a),o=.11516993+1/(7.4477897+4.1590124*t+r*(-2.19557347+1.75198401*t+r*(-2.13704948-10.02301043*t+r*(-4.24894561+5.38770819*t+4.69891013*r)))),l=.11239642+1/(1.6132032-.68124379*t+r*(.40370612+.90148123*t+r*(-.27087943+.6122399*t+r*(.00299215-.45399568*t-.14661872*r)))),s=n/Math.min(e*i[0],(1-e)*i[1]),u=e*o,f=(1-e)*l,c=.9*s*Math.sqrt(Math.sqrt(1/(1/(u*u*u*u)+1/(f*f*f*f))));return u=e*.4,f=(1-e)*.8,[Math.sqrt(1/(1/(u*u)+1/(f*f))),c,n]}function J5(e){let r=e.l!==void 0?e.l:0,t=e.a!==void 0?e.a:0,a=e.b!==void 0?e.b:0,n={mode:"okhsl",l:$5(r)};e.alpha!==void 0&&(n.alpha=e.alpha);let i=Math.sqrt(t*t+a*a);if(!i)return n.s=0,n;let[o,l,s]=kL(r,t/i,a/i),u;if(iJ5(ph(e))},toMode:{oklab:K5,rgb:e=>mh(K5(e))}}),SL=cde;function Q5(e){let r=e.l!==void 0?e.l:0,t=e.a!==void 0?e.a:0,a=e.b!==void 0?e.b:0,n=Math.sqrt(t*t+a*a),i=n?t/n:1,o=n?a/n:1,[l,s]=L_(i,o),u=.5,f=1-u/l,c=s/(n+r*s),v=c*r,d=c*n,p=ip(v),y=d*p/v,m=Pc({l:p,a:i*y,b:o*y}),b=Math.cbrt(1/Math.max(m.r,m.g,m.b,0));r=r/b,n=n/b*$5(r)/r,r=$5(r);let A={mode:"okhsv",s:n?(u+s)*d/(s*u+s*f*d):0,v:r?r/v:0};return A.s&&(A.h=pn(Math.atan2(a,t)*180/Math.PI)),e.alpha!==void 0&&(A.alpha=e.alpha),A}function e_(e){let r={mode:"oklab"};e.alpha!==void 0&&(r.alpha=e.alpha);let t=e.h!==void 0?e.h:0,a=e.s!==void 0?e.s:0,n=e.v!==void 0?e.v:0,i=Math.cos(t/180*Math.PI),o=Math.sin(t/180*Math.PI),[l,s]=L_(i,o),u=.5,f=1-u/l,c=1-a*u/(u+s-s*f*a),v=a*s*u/(u+s-s*f*a),d=ip(c),p=v*d/c,y=Pc({l:d,a:i*p,b:o*p}),m=Math.cbrt(1/Math.max(y.r,y.g,y.b,0)),b=ip(n*c),A=v*b/c;return r.l=b*m,r.a=A*i*m,r.b=A*o*m,r}var vde=Vt(At({},y_),{mode:"okhsv",channels:["h","s","v","alpha"],parse:["--okhsv"],serialize:"--okhsv",fromMode:{oklab:Q5,rgb:e=>Q5(ph(e))},toMode:{oklab:e_,rgb:e=>mh(e_(e))}}),qL=vde;function hde(e,r){if(!r||r[0]!=="oklab")return;let t={mode:"oklab"},[,a,n,i,o]=r;if(!(a.type===pr.Hue||n.type===pr.Hue||i.type===pr.Hue))return a.type!==pr.None&&(t.l=Math.min(Math.max(0,a.type===pr.Number?a.value:a.value/100),1)),n.type!==pr.None&&(t.a=n.type===pr.Number?n.value:n.value*.4/100),i.type!==pr.None&&(t.b=i.type===pr.Number?i.value:i.value*.4/100),o.type!==pr.None&&(t.alpha=Math.min(1,Math.max(0,o.type===pr.Number?o.value:o.value/100))),t}var LL=hde,dde=Vt(At({},dp),{mode:"oklab",toMode:{lrgb:Pc,rgb:mh},fromMode:{lrgb:S_,rgb:ph},ranges:{l:[0,1],a:[-.4,.4],b:[-.4,.4]},parse:[LL],serialize:e=>`oklab(${e.l!==void 0?e.l:"none"} ${e.a!==void 0?e.a:"none"} ${e.b!==void 0?e.b:"none"}${e.alpha<1?` / ${e.alpha}`:""})`}),CL=dde;function pde(e,r){if(!r||r[0]!=="oklch")return;let t={mode:"oklch"},[,a,n,i,o]=r;if(a.type!==pr.None){if(a.type===pr.Hue)return;t.l=Math.min(Math.max(0,a.type===pr.Number?a.value:a.value/100),1)}if(n.type!==pr.None&&(t.c=Math.max(0,n.type===pr.Number?n.value:n.value*.4/100)),i.type!==pr.None){if(i.type===pr.Percentage)return;t.h=i.value}return o.type!==pr.None&&(t.alpha=Math.min(1,Math.max(0,o.type===pr.Number?o.value:o.value/100))),t}var DL=pde,mde=Vt(At({},pp),{mode:"oklch",toMode:{oklab:e=>Nl(e,"oklab"),rgb:e=>mh(Nl(e,"oklab"))},fromMode:{rgb:e=>zl(ph(e),"oklch"),oklab:e=>zl(e,"oklch")},parse:[DL],serialize:e=>`oklch(${e.l!==void 0?e.l:"none"} ${e.c!==void 0?e.c:"none"} ${e.h!==void 0?e.h:"none"}${e.alpha<1?` / ${e.alpha}`:""})`,ranges:{l:[0,1],c:[0,.4],h:[0,360]}}),EL=mde,yde=e=>{let{r,g:t,b:a,alpha:n}=Iu(e),i={mode:"xyz65",x:.486570948648216*r+.265667693169093*t+.1982172852343625*a,y:.2289745640697487*r+.6917385218365062*t+.079286914093745*a,z:0*r+.0451133818589026*t+1.043944368900976*a};return n!==void 0&&(i.alpha=n),i},r_=yde,gde=({x:e,y:r,z:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=Bu({r:e*2.4934969119414263-r*.9313836179191242-.402710784450717*t,g:e*-.8294889695615749+r*1.7626640603183465+.0236246858419436*t,b:e*.0358458302437845-r*.0761723892680418+.9568845240076871*t},"p3");return a!==void 0&&(n.alpha=a),n},t_=gde,bde=Vt(At({},Nu),{mode:"p3",parse:["display-p3"],serialize:"display-p3",fromMode:{rgb:e=>t_(gs(e)),xyz65:t_},toMode:{rgb:e=>bs(r_(e)),xyz65:r_}}),PL=bde,F5=e=>{let r=Math.abs(e);return r>=1/512?Math.sign(e)*Math.pow(r,1/1.8):16*e},xde=({x:e,y:r,z:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n={mode:"prophoto",r:F5(e*1.3457868816471585-r*.2555720873797946-.0511018649755453*t),g:F5(e*-.5446307051249019+r*1.5082477428451466+.0205274474364214*t),b:F5(e*0+r*0+1.2119675456389452*t)};return a!==void 0&&(n.alpha=a),n},a_=xde,z5=(e=0)=>{let r=Math.abs(e);return r>=16/512?Math.sign(e)*Math.pow(r,1.8):e/16},_de=e=>{let r=z5(e.r),t=z5(e.g),a=z5(e.b),n={mode:"xyz50",x:.7977666449006423*r+.1351812974005331*t+.0313477341283922*a,y:.2880748288194013*r+.7118352342418731*t+899369387256e-16*a,z:0*r+0*t+.8251046025104602*a};return e.alpha!==void 0&&(n.alpha=e.alpha),n},n_=_de,wde=Vt(At({},Nu),{mode:"prophoto",parse:["prophoto-rgb"],serialize:"prophoto-rgb",fromMode:{xyz50:a_,rgb:e=>a_(Ec(e))},toMode:{xyz50:n_,rgb:e=>Dc(n_(e))}}),RL=wde,Sq=1.09929682680944,Ade=.018053968510807,N5=e=>{let r=Math.abs(e);return r>Ade?(Math.sign(e)||1)*(Sq*Math.pow(r,.45)-(Sq-1)):4.5*e},Tde=({x:e,y:r,z:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n={mode:"rec2020",r:N5(e*1.7166511879712683-r*.3556707837763925-.2533662813736599*t),g:N5(e*-.6666843518324893+r*1.6164812366349395+.0157685458139111*t),b:N5(e*.0176398574453108-r*.0427706132578085+.9421031212354739*t)};return a!==void 0&&(n.alpha=a),n},i_=Tde,qq=1.09929682680944,Mde=.018053968510807,I5=(e=0)=>{let r=Math.abs(e);return r{let r=I5(e.r),t=I5(e.g),a=I5(e.b),n={mode:"xyz65",x:.6369580483012911*r+.1446169035862083*t+.1688809751641721*a,y:.262700212011267*r+.6779980715188708*t+.059301716469862*a,z:0*r+.0280726930490874*t+1.0609850577107909*a};return e.alpha!==void 0&&(n.alpha=e.alpha),n},o_=kde,Sde=Vt(At({},Nu),{mode:"rec2020",fromMode:{xyz65:i_,rgb:e=>i_(gs(e))},toMode:{xyz65:o_,rgb:e=>bs(o_(e))},parse:["rec2020"],serialize:"rec2020"}),FL=Sde,Fu=.0037930732552754493,zL=Math.cbrt(Fu),B5=e=>Math.cbrt(e)-zL,qde=e=>{let{r,g:t,b:a,alpha:n}=Iu(e),i=B5(.3*r+.622*t+.078*a+Fu),o=B5(.23*r+.692*t+.078*a+Fu),l=B5(.2434226892454782*r+.2047674442449682*t+.5518098665095535*a+Fu),s={mode:"xyb",x:(i-o)/2,y:(i+o)/2,b:l-(i+o)/2};return n!==void 0&&(s.alpha=n),s},NL=qde,O5=e=>Math.pow(e+zL,3),Lde=({x:e,y:r,b:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=O5(e+r)-Fu,i=O5(r-e)-Fu,o=O5(t+r)-Fu,l=Bu({r:11.031566904639861*n-9.866943908131562*i-.16462299650829934*o,g:-3.2541473810744237*n+4.418770377582723*i-.16462299650829934*o,b:-3.6588512867136815*n+2.7129230459360922*i+1.9459282407775895*o});return a!==void 0&&(l.alpha=a),l},IL=Lde,Cde={mode:"xyb",channels:["x","y","b","alpha"],parse:["--xyb"],serialize:"--xyb",toMode:{rgb:IL},fromMode:{rgb:NL},ranges:{x:[-.0154,.0281],y:[0,.8453],b:[-.2778,.388]},interpolate:{x:wr,y:wr,b:wr,alpha:{use:wr,fixup:Ba}}},BL=Cde,Dde={mode:"xyz50",parse:["xyz-d50"],serialize:"xyz-d50",toMode:{rgb:Dc,lab:hp},fromMode:{rgb:Ec,lab:vp},channels:["x","y","z","alpha"],ranges:{x:[0,.964],y:[0,.999],z:[0,.825]},interpolate:{x:wr,y:wr,z:wr,alpha:{use:wr,fixup:Ba}}},OL=Dde,Ede=e=>{let{x:r,y:t,z:a,alpha:n}=e;r===void 0&&(r=0),t===void 0&&(t=0),a===void 0&&(a=0);let i={mode:"xyz50",x:1.0479298208405488*r+.0229467933410191*t-.0501922295431356*a,y:.0296278156881593*r+.990434484573249*t-.0170738250293851*a,z:-.0092430581525912*r+.0150551448965779*t+.7518742899580008*a};return n!==void 0&&(i.alpha=n),i},HL=Ede,Pde=e=>{let{x:r,y:t,z:a,alpha:n}=e;r===void 0&&(r=0),t===void 0&&(t=0),a===void 0&&(a=0);let i={mode:"xyz65",x:.9554734527042182*r-.0230985368742614*t+.0632593086610217*a,y:-.0283697069632081*r+1.0099954580058226*t+.021041398966943*a,z:.0123140016883199*r-.0205076964334779*t+1.3303659366080753*a};return n!==void 0&&(i.alpha=n),i},UL=Pde,Rde={mode:"xyz65",toMode:{rgb:bs,xyz50:HL},fromMode:{rgb:gs,xyz50:UL},ranges:{x:[0,.95],y:[0,1],z:[0,1.088]},channels:["x","y","z","alpha"],parse:["xyz","xyz-d65"],serialize:"xyz-d65",interpolate:{x:wr,y:wr,z:wr,alpha:{use:wr,fixup:Ba}}},GL=Rde,Fde=({r:e,g:r,b:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n={mode:"yiq",y:.29889531*e+.58662247*r+.11448223*t,i:.59597799*e-.2741761*r-.32180189*t,q:.21147017*e-.52261711*r+.31114694*t};return a!==void 0&&(n.alpha=a),n},YL=Fde,zde=({y:e,i:r,q:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n={mode:"rgb",r:e+.95608445*r+.6208885*t,g:e-.27137664*r-.6486059*t,b:e-1.10561724*r+1.70250126*t};return a!==void 0&&(n.alpha=a),n},VL=zde,Nde={mode:"yiq",toMode:{rgb:VL},fromMode:{rgb:YL},channels:["y","i","q","alpha"],parse:["--yiq"],serialize:"--yiq",ranges:{i:[-.595,.595],q:[-.522,.522]},interpolate:{y:wr,i:wr,q:wr,alpha:{use:wr,fixup:Ba}}},jL=Nde,Ide=(e,r)=>Math.round(e*(r=Math.pow(10,r)))/r,Bde=(e=4)=>r=>typeof r=="number"?Ide(r,e):r,WL=Bde,lh=WL(2),uh=e=>Math.max(0,Math.min(1,e||0)),zu=e=>Math.round(uh(e)*255),C_=Bt("rgb"),Ode=Bt("hsl"),D_=e=>{if(e===void 0)return;let r=zu(e.r),t=zu(e.g),a=zu(e.b);return"#"+(1<<24|r<<16|t<<8|a).toString(16).slice(1)},XL=e=>{if(e===void 0)return;let r=zu(e.alpha!==void 0?e.alpha:1);return D_(e)+(256|r).toString(16).slice(1)},ZL=e=>{if(e===void 0)return;let r=zu(e.r),t=zu(e.g),a=zu(e.b);return e.alpha===void 0||e.alpha===1?`rgb(${r}, ${t}, ${a})`:`rgba(${r}, ${t}, ${a}, ${lh(uh(e.alpha))})`},$L=e=>{if(e===void 0)return;let r=lh(e.h||0),t=lh(uh(e.s)*100)+"%",a=lh(uh(e.l)*100)+"%";return e.alpha===void 0||e.alpha===1?`hsl(${r}, ${t}, ${a})`:`hsla(${r}, ${t}, ${a}, ${lh(uh(e.alpha))})`},Hde=e=>{let r=ko(e);if(!r)return;let t=Mn(r.mode);if(!t.serialize||typeof t.serialize=="string"){let a=`color(${t.serialize||`--${r.mode}`} `;return t.channels.forEach((n,i)=>{n!=="alpha"&&(a+=(i?" ":"")+(r[n]!==void 0?r[n]:"none"))}),r.alpha!==void 0&&r.alpha<1&&(a+=` / ${r.alpha}`),a+")"}if(typeof t.serialize=="function")return t.serialize(r)},Ude=e=>D_(C_(e)),Gde=e=>XL(C_(e)),Yde=e=>ZL(C_(e)),Vde=e=>$L(Ode(e)),jde={normal:(e,r)=>r,multiply:(e,r)=>e*r,screen:(e,r)=>e+r-e*r,"hard-light":(e,r)=>r<.5?e*2*r:2*r*(1-e)-1,overlay:(e,r)=>e<.5?r*2*e:2*e*(1-r)-1,darken:(e,r)=>Math.min(e,r),lighten:(e,r)=>Math.max(e,r),"color-dodge":(e,r)=>e===0?0:r===1?1:Math.min(1,e/(1-r)),"color-burn":(e,r)=>e===1?1:r===0?0:1-Math.min(1,(1-e)/r),"soft-light":(e,r)=>r<.5?e-(1-2*r)*e*(1-e):e+(2*r-1)*((e<.25?((16*e-12)*e+4)*e:Math.sqrt(e))-e),difference:(e,r)=>Math.abs(e-r),exclusion:(e,r)=>e+r-2*e*r},Wde=(e,r="normal",t="rgb")=>{let a=typeof r=="function"?r:jde[r],n=Bt(t),i=Mn(t).channels;return e.map(l=>{let s=n(l);return s.alpha===void 0&&(s.alpha=1),s}).reduce((l,s)=>{if(l===void 0)return s;let u=s.alpha+l.alpha*(1-s.alpha);return i.reduce((f,c)=>(c!=="alpha"&&(u===0?f[c]=0:(f[c]=s.alpha*(1-l.alpha)*s[c]+s.alpha*l.alpha*a(l[c],s[c])+(1-s.alpha)*l.alpha*l[c],f[c]=Math.max(0,Math.min(1,f[c]/u)))),f),{mode:t,alpha:u})})},Xde=Wde,Zde=([e,r])=>e+Math.random()*(r-e),$de=e=>Object.keys(e).reduce((r,t)=>{let a=e[t];return r[t]=Array.isArray(a)?a:[a,a],r},{}),Jde=(e="rgb",r={})=>{let t=Mn(e),a=$de(r);return t.channels.reduce((n,i)=>((a.alpha||i!=="alpha")&&(n[i]=Zde(a[i]||t.ranges[i])),n),{mode:e})},Kde=Jde,yh=(e,r="rgb",t=!1)=>{let a=r?Mn(r).channels:null,n=r?Bt(r):ko;return i=>{let o=n(i);if(!o)return;let l=(a||Mn(o.mode).channels).reduce((u,f)=>{let c=e(o[f],f,o,r);return c!==void 0&&!isNaN(c)&&(u[f]=c),u},{mode:o.mode});if(!t)return l;let s=ko(i);return s&&s.mode!==l.mode?Bt(s.mode)(l):l}},JL=(e,r,t)=>r!=="alpha"?(e||0)*(t.alpha!==void 0?t.alpha:1):e,KL=(e,r,t)=>r!=="alpha"&&t.alpha!==0?(e||0)/(t.alpha!==void 0?t.alpha:1):e,E_=(e=1,r=0)=>(t,a)=>a!=="alpha"?t*e+r:t,Qde=(e=1,r=1,t=0)=>(a,n)=>n!=="alpha"?e*Math.pow(a,r)+t:a,e2e=e=>{e[0]===void 0&&(e[0]=0),e[e.length-1]===void 0&&(e[e.length-1]=1);let r=1,t,a,n,i;for(;rr=>e<=0?1:e>=1?0:Math.pow(r,Math.log(.5)/Math.log(e)),QL=t2e,Z1=e=>typeof e=="function",Pu=e=>e&&typeof e=="object",Lq=e=>typeof e=="number",eC=(e,r="rgb",t,a)=>{let n=Mn(r),i=Bt(r),o=[],l=[],s={};e.forEach(v=>{Array.isArray(v)?(o.push(i(v[0])),l.push(v[1])):Lq(v)||Z1(v)?s[l.length]=v:(o.push(i(v)),l.push(void 0))}),r2e(l);let u=n.channels.reduce((v,d)=>{let p;return Pu(t)&&Pu(t[d])&&t[d].fixup?p=t[d].fixup:Pu(n.interpolate[d])&&n.interpolate[d].fixup?p=n.interpolate[d].fixup:p=y=>y,v[d]=p(o.map(y=>y[d])),v},{});if(a){let v=o.map((d,p)=>n.channels.reduce((y,m)=>(y[m]=u[m][p],y),{mode:r}));u=n.channels.reduce((d,p)=>(d[p]=v.map(y=>{let m=a(y[p],p,y,r);return isNaN(m)?void 0:m}),d),{})}let f=n.channels.reduce((v,d)=>{let p;return Z1(t)?p=t:Pu(t)&&Z1(t[d])?p=t[d]:Pu(t)&&Pu(t[d])&&t[d].use?p=t[d].use:Z1(n.interpolate[d])?p=n.interpolate[d]:Pu(n.interpolate[d])&&(p=n.interpolate[d].use),v[d]=p(u[d]),v},{}),c=o.length-1;return v=>{if(v=Math.min(Math.max(0,v),1),v<=l[0])return o[0];if(v>l[c])return o[c];let d=0;for(;l[d]{let _=f[x](A);return _!==void 0&&(w[x]=_),w},{mode:r})}},a2e=(e,r="rgb",t)=>eC(e,r,t),rC=(e,r)=>(t,a="rgb",n)=>{let i=r?yh(r,a):void 0,o=eC(t,a,n,e);return i?l=>i(o(l)):o},n2e=rC(JL,KL),$1=(e,r)=>(e+r)%r,tC=(e,r,t,a,n)=>{let i=n*n,o=i*n;return((1-3*n+3*i-o)*e+(4-6*i+3*o)*r+(1+3*n+3*i-3*o)*t+o*a)/6},aC=e=>r=>{let t=e.length-1,a=r>=1?t-1:Math.max(0,Math.floor(r*t));return tC(a>0?e[a-1]:2*e[a]-e[a+1],e[a],e[a+1],ar=>{let t=e.length-1,a=Math.floor(r*t);return tC(e[$1(a-1,e.length)],e[$1(a,e.length)],e[$1(a+1,e.length)],e[$1(a+2,e.length)],(r-a/t)*t)},iC=e=>{let r,t=e.length-1,a=new Array(t),n=new Array(t),i=new Array(t);for(a[1]=1/4,n[1]=(6*e[1]-e[0])/4,r=2;r0&&(i[t-1]=n[t-1]),r=t-2;r>0;--r)i[r]=n[r]-a[r]*i[r+1];return i},i2e=e=>aC(iC(e)),o2e=e=>nC(iC(e)),kc=Math.sign,l_=Math.min,vi=Math.abs,P_=e=>{let r=e.length-1,t=[],a=[],n=[];for(let i=0;i0?.5*(e[i+1]-e[i-1])*r:void 0),n.push(i>0?(kc(t[i-1])+kc(t[i]))*l_(vi(t[i-1]),vi(t[i]),.5*vi(a[i])):void 0);return[t,a,n]},R_=(e,r,t)=>{let a=e.length-1,n=a*a;return i=>{let o;i>=1?o=a-1:o=Math.max(0,Math.floor(i*a));let l=i-o/a,s=l*l,u=s*l;return(r[o]+r[o+1]-2*t[o])*n*u+(3*t[o]-2*r[o]-r[o+1])*a*s+r[o]*l+e[o]}},l2e=e=>{if(e.length<3)return wr(e);let r=e.length-1,[t,,a]=P_(e);return a[0]=t[0],a[r]=t[r-1],R_(e,a,t)},s2e=e=>{if(e.length<3)return wr(e);let r=e.length-1,[t,a,n]=P_(e);return a[0]=(e[1]*2-e[0]*1.5-e[2]*.5)*r,a[r]=(e[r]*1.5-e[r-1]*2+e[r-2]*.5)*r,n[0]=a[0]*t[0]<=0?0:vi(a[0])>2*vi(t[0])?2*t[0]:a[0],n[r]=a[r]*t[r-1]<=0?0:vi(a[r])>2*vi(t[r-1])?2*t[r-1]:a[r],R_(e,n,t)},u2e=e=>{let r=e.length-1,[t,a,n]=P_(e);a[0]=.5*(e[1]-e[r])*r,a[r]=.5*(e[0]-e[r-1])*r;let i=(e[0]-e[r])*r,o=i;return n[0]=(kc(i)+kc(t[0]))*l_(vi(i),vi(t[0]),.5*vi(a[0])),n[r]=(kc(t[r-1])+kc(o))*l_(vi(t[r-1]),vi(o),.5*vi(a[r])),R_(e,n,t)},f2e=(e=1)=>e===1?r=>r:r=>Math.pow(r,e),oC=f2e,c2e=(e=2,r=1)=>{let t=oC(r);if(e<2)return e<1?[]:[t(.5)];let a=[];for(let n=0;n{let r={mode:e.mode,r:Math.max(0,Math.min(e.r!==void 0?e.r:0,1)),g:Math.max(0,Math.min(e.g!==void 0?e.g:0,1)),b:Math.max(0,Math.min(e.b!==void 0?e.b:0,1))};return e.alpha!==void 0&&(r.alpha=e.alpha),r},uC=e=>sC(lC(e)),fC=e=>e!==void 0&&(e.r===void 0||e.r>=0&&e.r<=1)&&(e.g===void 0||e.g>=0&&e.g<=1)&&(e.b===void 0||e.b>=0&&e.b<=1);function F_(e){return fC(lC(e))}function mp(e="rgb"){let{gamut:r}=Mn(e);if(!r)return a=>!0;let t=Bt(typeof r=="string"?r:e);return a=>fC(t(a))}function h2e(e){return e=ko(e),e===void 0||F_(e)?e:Bt(e.mode)(uC(e))}function z_(e="rgb"){let{gamut:r}=Mn(e);if(!r)return i=>ko(i);let t=typeof r=="string"?r:e,a=Bt(t),n=mp(t);return i=>{let o=ko(i);if(!o)return;let l=a(o);if(n(l))return o;let s=sC(l);return o.mode===s.mode?s:Bt(o.mode)(s)}}function d2e(e,r="lch",t="rgb"){e=ko(e);let a=t==="rgb"?F_:mp(t),n=t==="rgb"?uC:z_(t);if(e===void 0||a(e))return e;let i=Bt(e.mode);e=Bt(r)(e);let o=Vt(At({},e),{c:0});if(!a(o))return i(n(o));let l=0,s=e.c!==void 0?e.c:0,u=Mn(r).ranges.c,f=(u[1]-u[0])/Math.pow(2,13),c=o.c;for(;s-l>f;)o.c=l+(s-l)*.5,a(o)?(c=o.c,l=o.c):s=o.c;return i(a(o)?o:Vt(At({},o),{c}))}function p2e(e="rgb",r="oklch",t=Cc("oklch"),a=.02){let n=Bt(e),i=Mn(e);if(!i.gamut)return f=>n(f);let o=mp(e),l=z_(e),s=Bt(r),{ranges:u}=Mn(r);if(!u.l||!u.c)throw new Error("LCH-like space expected");return f=>{if(f=ko(f),f===void 0)return;let c=At({},s(f));if(c.l===void 0&&(c.l=0),c.c===void 0&&(c.c=0),c.l>=u.l[1]){let m=Vt(At({},i.white),{mode:e});return f.alpha!==void 0&&(m.alpha=f.alpha),m}if(c.l<=u.l[0]){let m=Vt(At({},i.black),{mode:e});return f.alpha!==void 0&&(m.alpha=f.alpha),m}if(o(c))return n(c);let v=0,d=c.c,p=(u.c[1]-u.c[0])/4e3,y=l(c);for(;d-v>p;)c.c=(v+d)*.5,y=l(c),o(c)||t&&a>0&&t(c,y)<=a?v=c.c:d=c.c;return n(o(c)?c:y)}}var m2e=(e,r=Cc(),t=a=>a)=>{let a=e.map((n,i)=>({color:t(n),i}));return(n,i=1,o=1/0)=>(isFinite(i)&&(i=Math.max(1,Math.min(i,a.length-1))),a.forEach(l=>{l.d=r(n,l.color)}),a.sort((l,s)=>l.d-s.d).slice(0,i).filter(l=>l.de[l.i]))},y2e=m2e,N_=e=>Math.max(e,0),I_=e=>Math.max(Math.min(e,1),0),g2e=(e,r,t)=>e===void 0||r===void 0?void 0:e+t*(r-e),b2e=e=>{let r=1-I_(e);return[.393+.607*r,.769-.769*r,.189-.189*r,0,.349-.349*r,.686+.314*r,.168-.168*r,0,.272-.272*r,.534-.534*r,.131+.869*r,0,0,0,0,1]},x2e=e=>{let r=N_(e);return[.213+.787*r,.715-.715*r,.072-.072*r,0,.213-.213*r,.715+.285*r,.072-.072*r,0,.213-.213*r,.715-.715*r,.072+.928*r,0,0,0,0,1]},_2e=e=>{let r=1-I_(e);return[.2126+.7874*r,.7152-.7152*r,.0722-.0722*r,0,.2126-.2126*r,.7152+.2848*r,.0722-.0722*r,0,.2126-.2126*r,.7152-.7152*r,.0722+.9278*r,0,0,0,0,1]},w2e=e=>{let r=Math.PI*e/180,t=Math.cos(r),a=Math.sin(r);return[.213+t*.787-a*.213,.715-t*.715-a*.715,.072-t*.072+a*.928,0,.213-t*.213+a*.143,.715+t*.285+a*.14,.072-t*.072-a*.283,0,.213-t*.213-a*.787,.715-t*.715+a*.715,.072+t*.928+a*.072,0,0,0,0,1]},yp=(e,r,t=!1)=>{let a=Bt(r),n=Mn(r).channels;return i=>{let o=a(i);if(!o)return;let l={mode:r},s,u=n.length;for(let c=0;c{let t=N_(e);return yh(E_(t),r,!0)},T2e=(e=1,r="rgb")=>{let t=N_(e);return yh(E_(t,(1-t)/2),r,!0)},M2e=(e=1,r="rgb")=>yp(b2e(e),r,!0),k2e=(e=1,r="rgb")=>yp(x2e(e),r,!0),S2e=(e=1,r="rgb")=>yp(_2e(e),r,!0),q2e=(e=1,r="rgb")=>{let t=I_(e);return yh((a,n)=>n==="alpha"?a:g2e(t,1-t,a),r,!0)},L2e=(e=0,r="rgb")=>yp(w2e(e),r,!0),C2e=Bt("rgb"),D2e=[[1,0,-0,0,1,0,-0,-0,1],[.856167,.182038,-.038205,.029342,.955115,.015544,-.00288,-.001563,1.004443],[.734766,.334872,-.069637,.05184,.919198,.028963,-.004928,-.004209,1.009137],[.630323,.465641,-.095964,.069181,.890046,.040773,-.006308,-.007724,1.014032],[.539009,.579343,-.118352,.082546,.866121,.051332,-.007136,-.011959,1.019095],[.458064,.679578,-.137642,.092785,.846313,.060902,-.007494,-.016807,1.024301],[.38545,.769005,-.154455,.100526,.829802,.069673,-.007442,-.02219,1.029632],[.319627,.849633,-.169261,.106241,.815969,.07779,-.007025,-.028051,1.035076],[.259411,.923008,-.18242,.110296,.80434,.085364,-.006276,-.034346,1.040622],[.203876,.990338,-.194214,.112975,.794542,.092483,-.005222,-.041043,1.046265],[.152286,1.052583,-.204868,.114503,.786281,.099216,-.003882,-.048116,1.051998]],E2e=[[1,0,-0,0,1,0,-0,-0,1],[.866435,.177704,-.044139,.049567,.939063,.01137,-.003453,.007233,.99622],[.760729,.319078,-.079807,.090568,.889315,.020117,-.006027,.013325,.992702],[.675425,.43385,-.109275,.125303,.847755,.026942,-.00795,.018572,.989378],[.605511,.52856,-.134071,.155318,.812366,.032316,-.009376,.023176,.9862],[.547494,.607765,-.155259,.181692,.781742,.036566,-.01041,.027275,.983136],[.498864,.674741,-.173604,.205199,.754872,.039929,-.011131,.030969,.980162],[.457771,.731899,-.18967,.226409,.731012,.042579,-.011595,.034333,.977261],[.422823,.781057,-.203881,.245752,.709602,.044646,-.011843,.037423,.974421],[.392952,.82361,-.216562,.263559,.69021,.046232,-.01191,.040281,.97163],[.367322,.860646,-.227968,.280085,.672501,.047413,-.01182,.04294,.968881]],P2e=[[1,0,-0,0,1,0,-0,-0,1],[.92667,.092514,-.019184,.021191,.964503,.014306,.008437,.054813,.93675],[.89572,.13333,-.02905,.029997,.9454,.024603,.013027,.104707,.882266],[.905871,.127791,-.033662,.026856,.941251,.031893,.01341,.148296,.838294],[.948035,.08949,-.037526,.014364,.946792,.038844,.010853,.193991,.795156],[1.017277,.027029,-.044306,-.006113,.958479,.047634,.006379,.248708,.744913],[1.104996,-.046633,-.058363,-.032137,.971635,.060503,.001336,.317922,.680742],[1.193214,-.109812,-.083402,-.058496,.97941,.079086,-.002346,.403492,.598854],[1.257728,-.139648,-.118081,-.078003,.975409,.102594,-.003316,.501214,.502102],[1.278864,-.125333,-.153531,-.084748,.957674,.127074,-989e-6,.601151,.399838],[1.255528,-.076749,-.178779,-.078411,.930809,.147602,.004733,.691367,.3039]],B_=(e,r)=>{let t=Math.max(0,Math.min(1,r)),a=Math.round(t/.1),n=Math.round(t%.1),i=e[a];if(n>0&&aRu(i[s],o[s],n))}return o=>{let l=ko(o);if(l===void 0)return;let{r:s,g:u,b:f}=C2e(l),c={mode:"rgb",r:i[0]*s+i[1]*u+i[2]*f,g:i[3]*s+i[4]*u+i[5]*f,b:i[6]*s+i[7]*u+i[8]*f};return l.alpha!==void 0&&(c.alpha=l.alpha),Bt(l.mode)(c)}},R2e=(e=1)=>B_(D2e,e),F2e=(e=1)=>B_(E2e,e),z2e=(e=1)=>B_(P2e,e),N2e=e=>e*e*(3-2*e),I2e=e=>.5-Math.sin(Math.asin(1-2*e)/3),B2e=e=>e*e*e*(e*(e*6-15)+10),O2e=B2e,H2e=e=>(1-Math.cos(e*Math.PI))/2,U2e=H2e;function s_(e){let r=Bt("lrgb")(e);return .2126*r.r+.7152*r.g+.0722*r.b}function G2e(e,r){let t=s_(e),a=s_(r);return(Math.max(t,a)+.05)/(Math.min(t,a)+.05)}var Y2e=Lt(Gq),V2e=Lt(Xq),j2e=Lt(Qq),W2e=Lt(eL),X2e=Lt(aL),Z2e=Lt(d_),$2e=Lt(y_),J2e=Lt(cL),K2e=Lt(dL),Q2e=Lt(pL),e1e=Lt(mL),r1e=Lt(dp),t1e=Lt(gL),a1e=Lt(pp),n1e=Lt(xL),i1e=Lt(AL),o1e=Lt(TL),l1e=Lt(ML),s1e=Lt(SL),u1e=Lt(qL),f1e=Lt(CL),c1e=Lt(EL),v1e=Lt(PL),h1e=Lt(RL),d1e=Lt(FL),p1e=Lt(Nu),m1e=Lt(BL),y1e=Lt(OL),g1e=Lt(GL),b1e=Lt(jL)});var O_={};qt(O_,{default:()=>_1e});var x1e,_1e,H_=St(()=>{"use strict";x1e={format:{valType:"enumerated",values:["png","jpeg","webp","svg","full-json"],dflt:"png",description:"Sets the format of exported image."},width:{valType:"number",min:1,description:["Sets the exported image width.","Defaults to the value found in `layout.width`","If set to *null*, the exported image width will match the current graph width."].join(" ")},height:{valType:"number",min:1,description:["Sets the exported image height.","Defaults to the value found in `layout.height`","If set to *null*, the exported image height will match the current graph height."].join(" ")},scale:{valType:"number",min:0,dflt:1,description:["Sets a scaling for the generated image.","If set, all features of a graphs (e.g. text, line width)","are scaled, unlike simply setting","a bigger *width* and *height*."].join(" ")},setBackground:{valType:"any",dflt:!1,description:["Sets the image background mode.","By default, the image background is determined by `layout.paper_bgcolor`,","the *transparent* mode.","One might consider setting `setBackground` to *opaque*","when exporting a *jpeg* image as JPEGs do not support opacity."].join(" ")},imageDataOnly:{valType:"boolean",dflt:!1,description:["Determines whether or not the return value is prefixed by","the image format's corresponding 'data:image;' spec."].join(" ")}},_1e=x1e});var xs=z((Eje,yC)=>{"use strict";var{format:w1e,width:A1e,height:T1e,scale:M1e}=(H_(),ze(O_)).default,hC=M1e,{dflt:Dje}=hC,k1e=NS(hC,["dflt"]),dC={staticPlot:{valType:"boolean",dflt:!1},typesetMath:{valType:"boolean",dflt:!0},plotlyServerURL:{valType:"string",dflt:"https://cloud.plotly.com/newchart"},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","map"],extras:[!0,!1],dflt:"gl3d+geo+map"},doubleClick:{valType:"enumerated",values:[!1,"reset","autosize","reset+autosize"],dflt:"reset+autosize"},doubleClickDelay:{valType:"number",dflt:500,min:0},showAxisDragHandles:{valType:"boolean",dflt:!0},showAxisRangeEntryBoxes:{valType:"boolean",dflt:!0},showTips:{valType:"boolean",dflt:!0},displayNotifier:{valType:"boolean",dflt:!0},displayModeBar:{valType:"enumerated",values:["hover",!0,!1],dflt:"hover"},showSendToCloud:{valType:"boolean",dflt:!0},modeBarButtonsToRemove:{valType:"any",dflt:[]},modeBarButtonsToAdd:{valType:"any",dflt:[]},modeBarButtons:{valType:"any",dflt:!1},toImageButtonOptions:{format:w1e,filename:{valType:"string"},width:A1e,height:T1e,scale:k1e},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/un/"},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},locale:{valType:"string",dflt:"en-US"},locales:{valType:"any",dflt:{}}},pC={};function mC(e,r){for(let t in e){let a=e[t];typeof a!="object"||a===null||(a.valType?"dflt"in a&&(r[t]=a.dflt):(r[t]||(r[t]={}),mC(a,r[t])))}}mC(dC,pC);yC.exports={configAttributes:dC,dfltConfig:pC}});var G_=z((Rje,gC)=>{"use strict";var U_=Pr(),S1e=Br(),gh=[];gC.exports=function(e,r,t){var l;if(((l=t==null?void 0:t._context)==null?void 0:l.displayNotifier)===!1||gh.indexOf(e)!==-1)return;gh.push(e);var a=1e3;S1e(r)?a=r:r==="long"&&(a=3e3);var n=U_.select("body").selectAll(".plotly-notifier").data([0]);n.enter().append("div").classed("plotly-notifier",!0);var i=n.selectAll(".notifier-note").data(gh);function o(s){s.duration(700).style("opacity",0).each("end",function(u){var f=gh.indexOf(u);f!==-1&&gh.splice(f,1),U_.select(this).remove()})}i.enter().append("div").classed("notifier-note",!0).style("opacity",0).each(function(s){var u=U_.select(this);u.append("button").classed("notifier-close",!0).html("×").on("click",function(){u.transition().call(o)});for(var f=u.append("p"),c=s.split(//g),v=0;v{"use strict";var Rc=xs().dfltConfig,Y_=G_(),V_=bC.exports={};V_.log=function(){var e;if(Rc.logging>1){var r=["LOG:"];for(e=0;e1){var t=[];for(e=0;e"),"long")}};V_.warn=function(){var e;if(Rc.logging>0){var r=["WARN:"];for(e=0;e0){var t=[];for(e=0;e"),"stick")}};V_.error=function(){var e;if(Rc.logging>0){var r=["ERROR:"];for(e=0;e0){var t=[];for(e=0;e"),"stick")}}});var Ii=z(Ou=>{"use strict";Ou.defaults=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"];Ou.defaultLine="#444";Ou.lightLine="#eee";Ou.background="#fff";Ou.borderLine="#BEC8D9";Ou.lightFraction=1e3/11});var qr=z((Nje,qC)=>{"use strict";var{converter:xC,formatHex:q1e,formatRgb:L1e,wcagContrast:C1e,wcagLuminance:D1e}=vC(),{isArrayOrTypedArray:_C}=Zn(),{warn:E1e}=_s(),{background:xh,defaultLine:X_,defaults:P1e,lightLine:R1e}=Ii(),wC=xC("rgb"),F1e=xC("hsl"),AC=e=>{if(typeof e!="string")return;let r=e.trim().toLowerCase();if(!/^[0-9a-f]+$/.test(r))try{return wC(r)}catch(t){return}},kn=e=>e>0?e>1?1:e:0,z1e={mode:"rgb",r:0,g:0,b:0,alpha:1},j_=e=>Math.round(e*255e6)/255e6,TC=e=>Vt(At({},e),{r:j_(e.r),g:j_(e.g),b:j_(e.b)}),hi=e=>L1e(TC(e)),N1e=e=>q1e(TC(e)),I1e=e=>{var r,t,a,n;return typeof e=="string"?`"${e}"`:_C(e)?`${(t=(r=e.constructor)==null?void 0:r.name)!=null?t:"Array"}(${e.length})`:typeof e=="object"?(n=(a=e.constructor)==null?void 0:a.name)!=null?n:"Object":`${typeof e} ${e}`},Qt=(e,r)=>{var a;let t=AC(e);return t?((a=t.alpha)!=null||(t.alpha=1),t):(!r&&e!=null&&E1e(`Invalid color specifier: ${I1e(e)}. Defaulting to "#000"`),z1e)},bh=e=>hi(Vt(At({},Qt(e)),{alpha:1})),B1e=e=>e?Qt(e).alpha:0,MC=e=>_C(e)&&e.length>2&&Number.isFinite(e[0])&&Number.isFinite(e[1])&&Number.isFinite(e[2]),O1e=e=>{let[r,t,a,n]=e,i=Math.max(r,t,a)>1?1/255:1,o=n!=null?n:1;return{mode:"rgb",r:r*i,g:t*i,b:a*i,alpha:o>1?o/255:o}},H1e=(e,r)=>{let t=MC(e)?O1e(e):Qt(e,!0),a=[kn(t.r),kn(t.g),kn(t.b),kn(t.alpha)];return r==="uint8"||r==="uint8_clamped"?Uint8Array.from(a,n=>Math.round(n*255)):r==="float32"?Float32Array.from(a):r==="float64"?Float64Array.from(a):a},U1e=(e,r)=>hi(Vt(At({},Qt(e)),{alpha:kn(r)})),kC=(e,r)=>{let t=Qt(e),a=t.alpha;if(a===1)return hi(t);let n=Qt(r||xh),i=n.alpha,o=(l,s)=>(i===1?s:1-i+s*i)*(1-a)+l*a;return hi({mode:"rgb",r:o(t.r,n.r),g:o(t.g,n.g),b:o(t.b,n.b)})},G1e=(e,r,t)=>{let a=Qt(e),n=Qt(r),i=(o,l)=>t*o+(1-t)*l;return hi({mode:"rgb",r:i(a.r,n.r),g:i(a.g,n.g),b:i(a.b,n.b)})},W_=(e,r)=>{let t=Qt(e),a=F1e(t)||{mode:"hsl",h:0,s:0,l:0};return hi(wC(Vt(At({},a),{l:kn((a.l*100+r)/100),alpha:t.alpha})))},gp=(e,r)=>C1e(Qt(e),Qt(r)),SC=e=>gp(e,xh)>gp(e,X_),Y1e=hi(Qt(xh)),V1e=hi(Qt(X_)),j1e=(e,r,t)=>(Qt(e).alpha!==1&&(e=kC(e,xh)),SC(e)?r?W_(e,r):Y1e:t?W_(e,-t):V1e),W1e=(e,r)=>{e.style({stroke:bh(r),"stroke-opacity":Qt(r).alpha})},X1e=(e,r)=>{e.style({fill:bh(r),"fill-opacity":Qt(r).alpha})},Z1e=(e,r)=>!!(e&&r&&bh(e)===bh(r)),$1e=e=>AC(e)!==void 0,J1e=(e,r)=>{r=r===0?0:r||10;let t=Qt(e),a=r/100;return hi(Vt(At({},t),{r:kn(t.r+a),g:kn(t.g+a),b:kn(t.b+a)}))},K1e=(e,r,t)=>{let a=Qt(e),n=Qt(r),i=t/100,o=n.alpha-a.alpha,l=2*i-1,s=((l*o===-1?l:(l+o)/(1+l*o))+1)/2,u=1-s,f=(c,v)=>u*c+s*v;return hi({mode:"rgb",r:f(a.r,n.r),g:f(a.g,n.g),b:f(a.b,n.b),alpha:a.alpha*(1-i)+n.alpha*i})},Q1e=(e,r=["#000","#fff"])=>{let t,a=-1/0;for(let n of r){let i=gp(e,n);i>a&&(a=i,t=hi(Qt(n)))}return t},epe=e=>hi(Qt(e)),rpe=e=>N1e(Qt(e)).toUpperCase(),tpe=e=>{let r=Qt(e);return[kn(r.r)*255,kn(r.g)*255,kn(r.b)*255,kn(r.alpha)]},ape=([e,r,t,a])=>hi({mode:"rgb",r:e/255,g:r/255,b:t/255,alpha:a}),npe=e=>{let r=Qt(e);return D1e({mode:"rgb",r:kn(r.r),g:kn(r.g),b:kn(r.b)})};qC.exports={addOpacity:U1e,adjustLightness:W_,background:xh,brighten:J1e,combine:kC,contrast:j1e,defaultLine:X_,defaults:P1e,equals:Z1e,fill:X1e,hexString:rpe,interpolate:G1e,isChannelArray:MC,isDark:SC,isValid:$1e,lightLine:R1e,luminosity:npe,mix:K1e,mostReadable:Q1e,normalize:H1e,opacity:B1e,parse:Qt,rgb:bh,rgbaArray:tpe,rgbaArrayToString:ape,rgbaString:epe,stroke:W1e,wcagContrast:gp}});var Hu=z((Bje,DC)=>{"use strict";var ipe=qr(),bp={Greys:[[0,"rgb(0,0,0)"],[1,"rgb(255,255,255)"]],YlGnBu:[[0,"rgb(8,29,88)"],[.125,"rgb(37,52,148)"],[.25,"rgb(34,94,168)"],[.375,"rgb(29,145,192)"],[.5,"rgb(65,182,196)"],[.625,"rgb(127,205,187)"],[.75,"rgb(199,233,180)"],[.875,"rgb(237,248,217)"],[1,"rgb(255,255,217)"]],Greens:[[0,"rgb(0,68,27)"],[.125,"rgb(0,109,44)"],[.25,"rgb(35,139,69)"],[.375,"rgb(65,171,93)"],[.5,"rgb(116,196,118)"],[.625,"rgb(161,217,155)"],[.75,"rgb(199,233,192)"],[.875,"rgb(229,245,224)"],[1,"rgb(247,252,245)"]],YlOrRd:[[0,"rgb(128,0,38)"],[.125,"rgb(189,0,38)"],[.25,"rgb(227,26,28)"],[.375,"rgb(252,78,42)"],[.5,"rgb(253,141,60)"],[.625,"rgb(254,178,76)"],[.75,"rgb(254,217,118)"],[.875,"rgb(255,237,160)"],[1,"rgb(255,255,204)"]],Bluered:[[0,"rgb(0,0,255)"],[1,"rgb(255,0,0)"]],RdBu:[[0,"rgb(5,10,172)"],[.35,"rgb(106,137,247)"],[.5,"rgb(190,190,190)"],[.6,"rgb(220,170,132)"],[.7,"rgb(230,145,90)"],[1,"rgb(178,10,28)"]],Reds:[[0,"rgb(220,220,220)"],[.2,"rgb(245,195,157)"],[.4,"rgb(245,160,105)"],[1,"rgb(178,10,28)"]],Blues:[[0,"rgb(5,10,172)"],[.35,"rgb(40,60,190)"],[.5,"rgb(70,100,245)"],[.6,"rgb(90,120,245)"],[.7,"rgb(106,137,247)"],[1,"rgb(220,220,220)"]],Picnic:[[0,"rgb(0,0,255)"],[.1,"rgb(51,153,255)"],[.2,"rgb(102,204,255)"],[.3,"rgb(153,204,255)"],[.4,"rgb(204,204,255)"],[.5,"rgb(255,255,255)"],[.6,"rgb(255,204,255)"],[.7,"rgb(255,153,255)"],[.8,"rgb(255,102,204)"],[.9,"rgb(255,102,102)"],[1,"rgb(255,0,0)"]],Rainbow:[[0,"rgb(150,0,90)"],[.125,"rgb(0,0,200)"],[.25,"rgb(0,25,255)"],[.375,"rgb(0,152,255)"],[.5,"rgb(44,255,150)"],[.625,"rgb(151,255,0)"],[.75,"rgb(255,234,0)"],[.875,"rgb(255,111,0)"],[1,"rgb(255,0,0)"]],Portland:[[0,"rgb(12,51,131)"],[.25,"rgb(10,136,186)"],[.5,"rgb(242,211,56)"],[.75,"rgb(242,143,56)"],[1,"rgb(217,30,30)"]],Jet:[[0,"rgb(0,0,131)"],[.125,"rgb(0,60,170)"],[.375,"rgb(5,255,255)"],[.625,"rgb(255,255,0)"],[.875,"rgb(250,0,0)"],[1,"rgb(128,0,0)"]],Hot:[[0,"rgb(0,0,0)"],[.3,"rgb(230,0,0)"],[.6,"rgb(255,210,0)"],[1,"rgb(255,255,255)"]],Blackbody:[[0,"rgb(0,0,0)"],[.2,"rgb(230,0,0)"],[.4,"rgb(230,210,0)"],[.7,"rgb(255,255,255)"],[1,"rgb(160,200,255)"]],Earth:[[0,"rgb(0,0,130)"],[.1,"rgb(0,180,180)"],[.2,"rgb(40,210,40)"],[.4,"rgb(230,230,50)"],[.6,"rgb(120,70,20)"],[1,"rgb(255,255,255)"]],Electric:[[0,"rgb(0,0,0)"],[.15,"rgb(30,0,100)"],[.4,"rgb(120,0,100)"],[.6,"rgb(160,90,0)"],[.8,"rgb(230,200,0)"],[1,"rgb(255,250,220)"]],Viridis:[[0,"#440154"],[.06274509803921569,"#48186a"],[.12549019607843137,"#472d7b"],[.18823529411764706,"#424086"],[.25098039215686274,"#3b528b"],[.3137254901960784,"#33638d"],[.3764705882352941,"#2c728e"],[.4392156862745098,"#26828e"],[.5019607843137255,"#21918c"],[.5647058823529412,"#1fa088"],[.6274509803921569,"#28ae80"],[.6901960784313725,"#3fbc73"],[.7529411764705882,"#5ec962"],[.8156862745098039,"#84d44b"],[.8784313725490196,"#addc30"],[.9411764705882353,"#d8e219"],[1,"#fde725"]],Cividis:[[0,"rgb(0,32,76)"],[.058824,"rgb(0,42,102)"],[.117647,"rgb(0,52,110)"],[.176471,"rgb(39,63,108)"],[.235294,"rgb(60,74,107)"],[.294118,"rgb(76,85,107)"],[.352941,"rgb(91,95,109)"],[.411765,"rgb(104,106,112)"],[.470588,"rgb(117,117,117)"],[.529412,"rgb(131,129,120)"],[.588235,"rgb(146,140,120)"],[.647059,"rgb(161,152,118)"],[.705882,"rgb(176,165,114)"],[.764706,"rgb(192,177,109)"],[.823529,"rgb(209,191,102)"],[.882353,"rgb(225,204,92)"],[.941176,"rgb(243,219,79)"],[1,"rgb(255,233,69)"]]},LC=bp.RdBu;function ope(e,r){if(r||(r=LC),!e)return r;function t(){try{e=bp[e]||JSON.parse(e)}catch(a){e=r}}return typeof e=="string"&&(t(),typeof e=="string"&&t()),CC(e)?e:r}function CC(e){var r=0;if(!Array.isArray(e)||e.length<2||!e[0]||!e[e.length-1]||+e[0][0]!=0||+e[e.length-1][0]!=1)return!1;for(var t=0;tfpe,HIDE_PLACEHOLDER:()=>upe,SHOW_PLACEHOLDER:()=>spe});var spe,upe,fpe,_p=St(()=>{"use strict";spe=100,upe=1e3,fpe=.2});var _h={};qt(_h,{counter:()=>Uu});function Uu(e,r="",t,a){let n=r+(t?"":"$"),i=a===!1?"":"^";return e==="xy"?new RegExp(i+"x"+Z_+"y"+Z_+n):new RegExp(i+e+Z_+n)}var Z_,Fc=St(()=>{"use strict";Z_="([2-9]|[1-9][0-9]+)?"});var RC=z(Jn=>{"use strict";var $_=Br(),EC=Mt().extendFlat,cpe=On(),vpe=Hu(),J_=qr(),hpe=(_p(),ze(xp)).DESELECTDIM,zc=G1(),PC=(Fc(),ze(_h)).counter,dpe=(Tc(),ze(Ac)).modHalf,So=Zn().isArrayOrTypedArray,ws=Zn().isTypedArraySpec,As=Zn().decodeTypedArraySpec;Jn.valObjectMeta={data_array:{coerceFunction:function(e,r,t){r.set(So(e)?e:ws(e)?As(e):t)}},enumerated:{coerceFunction:function(e,r,t,a){a.coerceNumber&&(e=+e),a.values.indexOf(e)===-1?r.set(t):r.set(e)},validateFunction:function(e,r){r.coerceNumber&&(e=+e);for(var t=r.values,a=0;ai===!0||i===!1;n(e)||a.arrayOk&&Array.isArray(e)&&e.length>0&&e.every(n)?r.set(e):r.set(t)}},number:{coerceFunction:function(e,r,t,a){ws(e)&&(e=As(e)),!$_(e)||a.min!==void 0&&ea.max?r.set(t):r.set(+e)}},integer:{coerceFunction:function(e,r,t,a){if((a.extras||[]).indexOf(e)!==-1){r.set(e);return}ws(e)&&(e=As(e)),e%1||!$_(e)||a.min!==void 0&&ea.max?r.set(t):r.set(+e)}},string:{coerceFunction:function(e,r,t,a){if(typeof e!="string"){var n=typeof e=="number";a.strict===!0||!n?r.set(t):r.set(String(e))}else a.noBlank&&!e?r.set(t):r.set(e)}},color:{coerceFunction:function(e,r,t){ws(e)&&(e=As(e)),J_.isValid(e)?r.set(e):r.set(t)}},colorlist:{coerceFunction:function(e,r,t){!Array.isArray(e)||!e.length?r.set(t):e.every(a=>J_.isValid(a))?r.set(e):r.set(t)}},colorscale:{coerceFunction:function(e,r,t){r.set(vpe.get(e,t))}},angle:{coerceFunction:function(e,r,t){ws(e)&&(e=As(e)),e==="auto"?r.set("auto"):$_(e)?r.set(dpe(+e,360)):r.set(t)}},subplotid:{coerceFunction:function(e,r,t,a){var n=a.regex||PC(t);let i=o=>typeof o=="string"&&n.test(o);i(e)||a.arrayOk&&So(e)&&e.length>0&&e.every(i)?r.set(e):r.set(t)},validateFunction:function(e,r){var t=r.dflt;return e===t?!0:typeof e!="string"?!1:!!PC(t).test(e)}},flaglist:{coerceFunction:function(e,r,t,a){if((a.extras||[]).indexOf(e)!==-1){r.set(e);return}if(typeof e!="string"){r.set(t);return}for(var n=e.split("+"),i=0;i{"use strict";FC.exports=function(){}});var K_=z((Uje,zC)=>{"use strict";zC.exports=function(r,t){if(t instanceof RegExp){for(var a=t.toString(),n=0;n{NC.exports=ppe;function ppe(){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}});var OC=z((Yje,BC)=>{BC.exports=mpe;function mpe(e){var r=new Float32Array(16);return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4],r[5]=e[5],r[6]=e[6],r[7]=e[7],r[8]=e[8],r[9]=e[9],r[10]=e[10],r[11]=e[11],r[12]=e[12],r[13]=e[13],r[14]=e[14],r[15]=e[15],r}});var UC=z((Vje,HC)=>{HC.exports=ype;function ype(e,r){return e[0]=r[0],e[1]=r[1],e[2]=r[2],e[3]=r[3],e[4]=r[4],e[5]=r[5],e[6]=r[6],e[7]=r[7],e[8]=r[8],e[9]=r[9],e[10]=r[10],e[11]=r[11],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15],e}});var Q_=z((jje,GC)=>{GC.exports=gpe;function gpe(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}});var VC=z((Wje,YC)=>{YC.exports=bpe;function bpe(e,r){if(e===r){var t=r[1],a=r[2],n=r[3],i=r[6],o=r[7],l=r[11];e[1]=r[4],e[2]=r[8],e[3]=r[12],e[4]=t,e[6]=r[9],e[7]=r[13],e[8]=a,e[9]=i,e[11]=r[14],e[12]=n,e[13]=o,e[14]=l}else e[0]=r[0],e[1]=r[4],e[2]=r[8],e[3]=r[12],e[4]=r[1],e[5]=r[5],e[6]=r[9],e[7]=r[13],e[8]=r[2],e[9]=r[6],e[10]=r[10],e[11]=r[14],e[12]=r[3],e[13]=r[7],e[14]=r[11],e[15]=r[15];return e}});var WC=z((Xje,jC)=>{jC.exports=xpe;function xpe(e,r){var t=r[0],a=r[1],n=r[2],i=r[3],o=r[4],l=r[5],s=r[6],u=r[7],f=r[8],c=r[9],v=r[10],d=r[11],p=r[12],y=r[13],m=r[14],b=r[15],A=t*l-a*o,w=t*s-n*o,x=t*u-i*o,_=a*s-n*l,k=a*u-i*l,T=n*u-i*s,q=f*y-c*p,C=f*m-v*p,E=f*b-d*p,P=c*m-v*y,R=c*b-d*y,N=v*b-d*m,I=A*N-w*R+x*P+_*E-k*C+T*q;return I?(I=1/I,e[0]=(l*N-s*R+u*P)*I,e[1]=(n*R-a*N-i*P)*I,e[2]=(y*T-m*k+b*_)*I,e[3]=(v*k-c*T-d*_)*I,e[4]=(s*E-o*N-u*C)*I,e[5]=(t*N-n*E+i*C)*I,e[6]=(m*x-p*T-b*w)*I,e[7]=(f*T-v*x+d*w)*I,e[8]=(o*R-l*E+u*q)*I,e[9]=(a*E-t*R-i*q)*I,e[10]=(p*k-y*x+b*A)*I,e[11]=(c*x-f*k-d*A)*I,e[12]=(l*C-o*P-s*q)*I,e[13]=(t*P-a*C+n*q)*I,e[14]=(y*w-p*_-m*A)*I,e[15]=(f*_-c*w+v*A)*I,e):null}});var ZC=z((Zje,XC)=>{XC.exports=_pe;function _pe(e,r){var t=r[0],a=r[1],n=r[2],i=r[3],o=r[4],l=r[5],s=r[6],u=r[7],f=r[8],c=r[9],v=r[10],d=r[11],p=r[12],y=r[13],m=r[14],b=r[15];return e[0]=l*(v*b-d*m)-c*(s*b-u*m)+y*(s*d-u*v),e[1]=-(a*(v*b-d*m)-c*(n*b-i*m)+y*(n*d-i*v)),e[2]=a*(s*b-u*m)-l*(n*b-i*m)+y*(n*u-i*s),e[3]=-(a*(s*d-u*v)-l*(n*d-i*v)+c*(n*u-i*s)),e[4]=-(o*(v*b-d*m)-f*(s*b-u*m)+p*(s*d-u*v)),e[5]=t*(v*b-d*m)-f*(n*b-i*m)+p*(n*d-i*v),e[6]=-(t*(s*b-u*m)-o*(n*b-i*m)+p*(n*u-i*s)),e[7]=t*(s*d-u*v)-o*(n*d-i*v)+f*(n*u-i*s),e[8]=o*(c*b-d*y)-f*(l*b-u*y)+p*(l*d-u*c),e[9]=-(t*(c*b-d*y)-f*(a*b-i*y)+p*(a*d-i*c)),e[10]=t*(l*b-u*y)-o*(a*b-i*y)+p*(a*u-i*l),e[11]=-(t*(l*d-u*c)-o*(a*d-i*c)+f*(a*u-i*l)),e[12]=-(o*(c*m-v*y)-f*(l*m-s*y)+p*(l*v-s*c)),e[13]=t*(c*m-v*y)-f*(a*m-n*y)+p*(a*v-n*c),e[14]=-(t*(l*m-s*y)-o*(a*m-n*y)+p*(a*s-n*l)),e[15]=t*(l*v-s*c)-o*(a*v-n*c)+f*(a*s-n*l),e}});var JC=z(($je,$C)=>{$C.exports=wpe;function wpe(e){var r=e[0],t=e[1],a=e[2],n=e[3],i=e[4],o=e[5],l=e[6],s=e[7],u=e[8],f=e[9],c=e[10],v=e[11],d=e[12],p=e[13],y=e[14],m=e[15],b=r*o-t*i,A=r*l-a*i,w=r*s-n*i,x=t*l-a*o,_=t*s-n*o,k=a*s-n*l,T=u*p-f*d,q=u*y-c*d,C=u*m-v*d,E=f*y-c*p,P=f*m-v*p,R=c*m-v*y;return b*R-A*P+w*E+x*C-_*q+k*T}});var QC=z((Jje,KC)=>{KC.exports=Ape;function Ape(e,r,t){var a=r[0],n=r[1],i=r[2],o=r[3],l=r[4],s=r[5],u=r[6],f=r[7],c=r[8],v=r[9],d=r[10],p=r[11],y=r[12],m=r[13],b=r[14],A=r[15],w=t[0],x=t[1],_=t[2],k=t[3];return e[0]=w*a+x*l+_*c+k*y,e[1]=w*n+x*s+_*v+k*m,e[2]=w*i+x*u+_*d+k*b,e[3]=w*o+x*f+_*p+k*A,w=t[4],x=t[5],_=t[6],k=t[7],e[4]=w*a+x*l+_*c+k*y,e[5]=w*n+x*s+_*v+k*m,e[6]=w*i+x*u+_*d+k*b,e[7]=w*o+x*f+_*p+k*A,w=t[8],x=t[9],_=t[10],k=t[11],e[8]=w*a+x*l+_*c+k*y,e[9]=w*n+x*s+_*v+k*m,e[10]=w*i+x*u+_*d+k*b,e[11]=w*o+x*f+_*p+k*A,w=t[12],x=t[13],_=t[14],k=t[15],e[12]=w*a+x*l+_*c+k*y,e[13]=w*n+x*s+_*v+k*m,e[14]=w*i+x*u+_*d+k*b,e[15]=w*o+x*f+_*p+k*A,e}});var rD=z((Kje,eD)=>{eD.exports=Tpe;function Tpe(e,r,t){var a=t[0],n=t[1],i=t[2],o,l,s,u,f,c,v,d,p,y,m,b;return r===e?(e[12]=r[0]*a+r[4]*n+r[8]*i+r[12],e[13]=r[1]*a+r[5]*n+r[9]*i+r[13],e[14]=r[2]*a+r[6]*n+r[10]*i+r[14],e[15]=r[3]*a+r[7]*n+r[11]*i+r[15]):(o=r[0],l=r[1],s=r[2],u=r[3],f=r[4],c=r[5],v=r[6],d=r[7],p=r[8],y=r[9],m=r[10],b=r[11],e[0]=o,e[1]=l,e[2]=s,e[3]=u,e[4]=f,e[5]=c,e[6]=v,e[7]=d,e[8]=p,e[9]=y,e[10]=m,e[11]=b,e[12]=o*a+f*n+p*i+r[12],e[13]=l*a+c*n+y*i+r[13],e[14]=s*a+v*n+m*i+r[14],e[15]=u*a+d*n+b*i+r[15]),e}});var aD=z((Qje,tD)=>{tD.exports=Mpe;function Mpe(e,r,t){var a=t[0],n=t[1],i=t[2];return e[0]=r[0]*a,e[1]=r[1]*a,e[2]=r[2]*a,e[3]=r[3]*a,e[4]=r[4]*n,e[5]=r[5]*n,e[6]=r[6]*n,e[7]=r[7]*n,e[8]=r[8]*i,e[9]=r[9]*i,e[10]=r[10]*i,e[11]=r[11]*i,e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15],e}});var iD=z((eWe,nD)=>{nD.exports=kpe;function kpe(e,r,t,a){var n=a[0],i=a[1],o=a[2],l=Math.sqrt(n*n+i*i+o*o),s,u,f,c,v,d,p,y,m,b,A,w,x,_,k,T,q,C,E,P,R,N,I,O;return Math.abs(l)<1e-6?null:(l=1/l,n*=l,i*=l,o*=l,s=Math.sin(t),u=Math.cos(t),f=1-u,c=r[0],v=r[1],d=r[2],p=r[3],y=r[4],m=r[5],b=r[6],A=r[7],w=r[8],x=r[9],_=r[10],k=r[11],T=n*n*f+u,q=i*n*f+o*s,C=o*n*f-i*s,E=n*i*f-o*s,P=i*i*f+u,R=o*i*f+n*s,N=n*o*f+i*s,I=i*o*f-n*s,O=o*o*f+u,e[0]=c*T+y*q+w*C,e[1]=v*T+m*q+x*C,e[2]=d*T+b*q+_*C,e[3]=p*T+A*q+k*C,e[4]=c*E+y*P+w*R,e[5]=v*E+m*P+x*R,e[6]=d*E+b*P+_*R,e[7]=p*E+A*P+k*R,e[8]=c*N+y*I+w*O,e[9]=v*N+m*I+x*O,e[10]=d*N+b*I+_*O,e[11]=p*N+A*I+k*O,r!==e&&(e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e)}});var lD=z((rWe,oD)=>{oD.exports=Spe;function Spe(e,r,t){var a=Math.sin(t),n=Math.cos(t),i=r[4],o=r[5],l=r[6],s=r[7],u=r[8],f=r[9],c=r[10],v=r[11];return r!==e&&(e[0]=r[0],e[1]=r[1],e[2]=r[2],e[3]=r[3],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e[4]=i*n+u*a,e[5]=o*n+f*a,e[6]=l*n+c*a,e[7]=s*n+v*a,e[8]=u*n-i*a,e[9]=f*n-o*a,e[10]=c*n-l*a,e[11]=v*n-s*a,e}});var uD=z((tWe,sD)=>{sD.exports=qpe;function qpe(e,r,t){var a=Math.sin(t),n=Math.cos(t),i=r[0],o=r[1],l=r[2],s=r[3],u=r[8],f=r[9],c=r[10],v=r[11];return r!==e&&(e[4]=r[4],e[5]=r[5],e[6]=r[6],e[7]=r[7],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e[0]=i*n-u*a,e[1]=o*n-f*a,e[2]=l*n-c*a,e[3]=s*n-v*a,e[8]=i*a+u*n,e[9]=o*a+f*n,e[10]=l*a+c*n,e[11]=s*a+v*n,e}});var cD=z((aWe,fD)=>{fD.exports=Lpe;function Lpe(e,r,t){var a=Math.sin(t),n=Math.cos(t),i=r[0],o=r[1],l=r[2],s=r[3],u=r[4],f=r[5],c=r[6],v=r[7];return r!==e&&(e[8]=r[8],e[9]=r[9],e[10]=r[10],e[11]=r[11],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e[0]=i*n+u*a,e[1]=o*n+f*a,e[2]=l*n+c*a,e[3]=s*n+v*a,e[4]=u*n-i*a,e[5]=f*n-o*a,e[6]=c*n-l*a,e[7]=v*n-s*a,e}});var hD=z((nWe,vD)=>{vD.exports=Cpe;function Cpe(e,r,t){var a,n,i,o=t[0],l=t[1],s=t[2],u=Math.sqrt(o*o+l*l+s*s);return Math.abs(u)<1e-6?null:(u=1/u,o*=u,l*=u,s*=u,a=Math.sin(r),n=Math.cos(r),i=1-n,e[0]=o*o*i+n,e[1]=l*o*i+s*a,e[2]=s*o*i-l*a,e[3]=0,e[4]=o*l*i-s*a,e[5]=l*l*i+n,e[6]=s*l*i+o*a,e[7]=0,e[8]=o*s*i+l*a,e[9]=l*s*i-o*a,e[10]=s*s*i+n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e)}});var pD=z((iWe,dD)=>{dD.exports=Dpe;function Dpe(e,r,t){var a=r[0],n=r[1],i=r[2],o=r[3],l=a+a,s=n+n,u=i+i,f=a*l,c=a*s,v=a*u,d=n*s,p=n*u,y=i*u,m=o*l,b=o*s,A=o*u;return e[0]=1-(d+y),e[1]=c+A,e[2]=v-b,e[3]=0,e[4]=c-A,e[5]=1-(f+y),e[6]=p+m,e[7]=0,e[8]=v+b,e[9]=p-m,e[10]=1-(f+d),e[11]=0,e[12]=t[0],e[13]=t[1],e[14]=t[2],e[15]=1,e}});var yD=z((oWe,mD)=>{mD.exports=Epe;function Epe(e,r){return e[0]=r[0],e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=r[1],e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=r[2],e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var bD=z((lWe,gD)=>{gD.exports=Ppe;function Ppe(e,r){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]=r[0],e[13]=r[1],e[14]=r[2],e[15]=1,e}});var _D=z((sWe,xD)=>{xD.exports=Rpe;function Rpe(e,r){var t=Math.sin(r),a=Math.cos(r);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=a,e[6]=t,e[7]=0,e[8]=0,e[9]=-t,e[10]=a,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var AD=z((uWe,wD)=>{wD.exports=Fpe;function Fpe(e,r){var t=Math.sin(r),a=Math.cos(r);return e[0]=a,e[1]=0,e[2]=-t,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=t,e[9]=0,e[10]=a,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var MD=z((fWe,TD)=>{TD.exports=zpe;function zpe(e,r){var t=Math.sin(r),a=Math.cos(r);return e[0]=a,e[1]=t,e[2]=0,e[3]=0,e[4]=-t,e[5]=a,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}});var SD=z((cWe,kD)=>{kD.exports=Npe;function Npe(e,r){var t=r[0],a=r[1],n=r[2],i=r[3],o=t+t,l=a+a,s=n+n,u=t*o,f=a*o,c=a*l,v=n*o,d=n*l,p=n*s,y=i*o,m=i*l,b=i*s;return e[0]=1-c-p,e[1]=f+b,e[2]=v-m,e[3]=0,e[4]=f-b,e[5]=1-u-p,e[6]=d+y,e[7]=0,e[8]=v+m,e[9]=d-y,e[10]=1-u-c,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var LD=z((vWe,qD)=>{qD.exports=Ipe;function Ipe(e,r,t,a,n,i,o){var l=1/(t-r),s=1/(n-a),u=1/(i-o);return e[0]=i*2*l,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=i*2*s,e[6]=0,e[7]=0,e[8]=(t+r)*l,e[9]=(n+a)*s,e[10]=(o+i)*u,e[11]=-1,e[12]=0,e[13]=0,e[14]=o*i*2*u,e[15]=0,e}});var DD=z((hWe,CD)=>{CD.exports=Bpe;function Bpe(e,r,t,a,n){var i=1/Math.tan(r/2),o=1/(a-n);return e[0]=i/t,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=i,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=(n+a)*o,e[11]=-1,e[12]=0,e[13]=0,e[14]=2*n*a*o,e[15]=0,e}});var PD=z((dWe,ED)=>{ED.exports=Ope;function Ope(e,r,t,a){var n=Math.tan(r.upDegrees*Math.PI/180),i=Math.tan(r.downDegrees*Math.PI/180),o=Math.tan(r.leftDegrees*Math.PI/180),l=Math.tan(r.rightDegrees*Math.PI/180),s=2/(o+l),u=2/(n+i);return e[0]=s,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=u,e[6]=0,e[7]=0,e[8]=-((o-l)*s*.5),e[9]=(n-i)*u*.5,e[10]=a/(t-a),e[11]=-1,e[12]=0,e[13]=0,e[14]=a*t/(t-a),e[15]=0,e}});var FD=z((pWe,RD)=>{RD.exports=Hpe;function Hpe(e,r,t,a,n,i,o){var l=1/(r-t),s=1/(a-n),u=1/(i-o);return e[0]=-2*l,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*s,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*u,e[11]=0,e[12]=(r+t)*l,e[13]=(n+a)*s,e[14]=(o+i)*u,e[15]=1,e}});var ND=z((mWe,zD)=>{var Upe=Q_();zD.exports=Gpe;function Gpe(e,r,t,a){var n,i,o,l,s,u,f,c,v,d,p=r[0],y=r[1],m=r[2],b=a[0],A=a[1],w=a[2],x=t[0],_=t[1],k=t[2];return Math.abs(p-x)<1e-6&&Math.abs(y-_)<1e-6&&Math.abs(m-k)<1e-6?Upe(e):(f=p-x,c=y-_,v=m-k,d=1/Math.sqrt(f*f+c*c+v*v),f*=d,c*=d,v*=d,n=A*v-w*c,i=w*f-b*v,o=b*c-A*f,d=Math.sqrt(n*n+i*i+o*o),d?(d=1/d,n*=d,i*=d,o*=d):(n=0,i=0,o=0),l=c*o-v*i,s=v*n-f*o,u=f*i-c*n,d=Math.sqrt(l*l+s*s+u*u),d?(d=1/d,l*=d,s*=d,u*=d):(l=0,s=0,u=0),e[0]=n,e[1]=l,e[2]=f,e[3]=0,e[4]=i,e[5]=s,e[6]=c,e[7]=0,e[8]=o,e[9]=u,e[10]=v,e[11]=0,e[12]=-(n*p+i*y+o*m),e[13]=-(l*p+s*y+u*m),e[14]=-(f*p+c*y+v*m),e[15]=1,e)}});var BD=z((yWe,ID)=>{ID.exports=Ype;function Ype(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]+")"}});var e4=z((gWe,OD)=>{OD.exports={create:IC(),clone:OC(),copy:UC(),identity:Q_(),transpose:VC(),invert:WC(),adjoint:ZC(),determinant:JC(),multiply:QC(),translate:rD(),scale:aD(),rotate:iD(),rotateX:lD(),rotateY:uD(),rotateZ:cD(),fromRotation:hD(),fromRotationTranslation:pD(),fromScaling:yD(),fromTranslation:bD(),fromXRotation:_D(),fromYRotation:AD(),fromZRotation:MD(),fromQuat:SD(),frustum:LD(),perspective:DD(),perspectiveFromFieldOfView:PD(),ortho:FD(),lookAt:ND(),str:BD()}});var Tp=z(ha=>{"use strict";var Vpe=e4();ha.init2dArray=function(e,r){for(var t=new Array(e),a=0;a{"use strict";var jpe=Pr(),HD=_s(),Wpe=Tp(),Xpe=e4();function Zpe(e){var r;if(typeof e=="string"){if(r=document.getElementById(e),r===null)throw new Error("No DOM element with id '"+e+"' exists on the page.");return r}else if(e==null)throw new Error("DOM element provided is null or undefined");return e}function $pe(e){var r=jpe.select(e);return r.node()instanceof HTMLElement&&r.size()&&r.classed("js-plotly-plot")}function UD(e){var r=e&&e.parentNode;r&&r.removeChild(e)}function Jpe(e,r){GD("global",e,r)}function GD(e,r,t){var a="plotly.js-style-"+e,n=document.getElementById(a);if(!(n&&n.matches(".no-inline-styles"))){n||(n=document.createElement("style"),n.setAttribute("id",a),n.appendChild(document.createTextNode("")),document.head.appendChild(n));var i=n.sheet;i?i.insertRule?i.insertRule(r+"{"+t+"}",0):i.addRule?i.addRule(r,t,0):HD.warn("addStyleRule failed"):HD.warn("Cannot addRelatedStyleRule, probably due to strict CSP...")}}function Kpe(e){var r="plotly.js-style-"+e,t=document.getElementById(r);t&&UD(t)}function Qpe(e,r,t,a,n,i){var o=a.split(":"),l=n.split(":"),s="data-btn-style-event-added";i||(i=document),i.querySelectorAll(e).forEach(function(u){u._hoverStyle={activeStyleParts:o,inactiveStyleParts:l},u.getAttribute(s)||(u.addEventListener("mouseenter",function(){var f=this._hoverStyle,c=this.querySelector(t);c&&(c.style[f.activeStyleParts[0]]=f.activeStyleParts[1])}),u.addEventListener("mouseleave",function(){var f=this._hoverStyle,c=this.querySelector(t);c&&(r&&this.matches(r)?c.style[f.activeStyleParts[0]]=f.activeStyleParts[1]:c.style[f.inactiveStyleParts[0]]=f.inactiveStyleParts[1])}),u.setAttribute(s,!0))})}function eme(e){var r=VD(e),t=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];return r.forEach(function(a){var n=YD(a);if(n){var i=Wpe.convertCssMatrix(n);t=Xpe.multiply(t,t,i)}}),t}function YD(e){var r=window.getComputedStyle(e,null),t=r.getPropertyValue("-webkit-transform")||r.getPropertyValue("-moz-transform")||r.getPropertyValue("-ms-transform")||r.getPropertyValue("-o-transform")||r.getPropertyValue("transform");return t==="none"?null:t.replace("matrix","").replace("3d","").slice(1,-1).split(",").map(function(a){return+a})}function VD(e){for(var r=[];rme(e);)r.push(e),e=e.parentNode,typeof ShadowRoot=="function"&&e instanceof ShadowRoot&&(e=e.host);return r}function rme(e){return e&&(e instanceof Element||e instanceof HTMLElement)}function tme(e,r){return e&&r&&e.top===r.top&&e.left===r.left&&e.right===r.right&&e.bottom===r.bottom}jD.exports={getGraphDiv:Zpe,isPlotDiv:$pe,removeElement:UD,addStyleRule:Jpe,addRelatedStyleRule:GD,deleteRelatedStyleRule:Kpe,setStyleOnHover:Qpe,getFullTransformMatrix:eme,getElementTransformMatrix:YD,getElementAndAncestors:VD,equalDomRects:tme}});var Ah=z((_We,WD)=>{"use strict";WD.exports={mode:{valType:"enumerated",dflt:"afterall",values:["immediate","next","afterall"]},direction:{valType:"enumerated",values:["forward","reverse"],dflt:"forward"},fromcurrent:{valType:"boolean",dflt:!1},frame:{duration:{valType:"number",min:0,dflt:500},redraw:{valType:"boolean",dflt:!0}},transition:{duration:{valType:"number",min:0,dflt:500,editType:"none"},easing:{valType:"enumerated",dflt:"cubic-in-out",values:["linear","quad","cubic","sin","exp","circle","elastic","back","bounce","linear-in","quad-in","cubic-in","sin-in","exp-in","circle-in","elastic-in","back-in","bounce-in","linear-out","quad-out","cubic-out","sin-out","exp-out","circle-out","elastic-out","back-out","bounce-out","linear-in-out","quad-in-out","cubic-in-out","sin-in-out","exp-in-out","circle-in-out","elastic-in-out","back-in-out","bounce-in-out"],editType:"none"},ordering:{valType:"enumerated",values:["layout first","traces first"],dflt:"layout first",editType:"none"}}}});var qo=z((wWe,eE)=>{"use strict";var ZD=Mt().extendFlat,ame=Du(),$D={valType:"flaglist",extras:["none"],flags:["calc","clearAxisTypes","plot","style","markerSize","colorbars"]},JD={valType:"flaglist",extras:["none"],flags:["calc","plot","legend","ticks","axrange","layoutstyle","modebar","camera","arraydraw","colorbars"]},nme=$D.flags.slice().concat(["fullReplot"]),ime=JD.flags.slice().concat("layoutReplot");eE.exports={traces:$D,layout:JD,traceFlags:function(){return XD(nme)},layoutFlags:function(){return XD(ime)},update:function(e,r){var t=r.editType;if(t&&t!=="none")for(var a=t.split("+"),n=0;n{"use strict";r4.dash={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",editType:"style"};r4.pattern={shape:{valType:"enumerated",values:["","/","\\","x","-","|","+","."],dflt:"",arrayOk:!0,editType:"style"},path:{valType:"string",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"}});var t4={};qt(t4,{DATE_FORMAT_LINK:()=>lme,FORMAT_LINK:()=>ome});var ome,lme,a4=St(()=>{"use strict";ome="https://github.com/d3/d3-format/tree/v1.4.5#d3-format",lme="https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format"});var di=z(Nc=>{"use strict";var{DATE_FORMAT_LINK:sme,FORMAT_LINK:ume}=(a4(),ze(t4)),fme=["Variables that can't be found will be replaced with the specifier.",'For example, a template of "data: %{x}, %{y}" will result in a value of "data: 1, %{y}" if x is 1 and y is missing.',"Variables with an undefined value will be replaced with the fallback value."].join(" ");function cme({supportOther:e}={}){return["Variables are inserted using %{variable},",'for example "y: %{y}"'+(e?" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown.":"."),`Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}".`,ume,"for details on the formatting syntax.",`Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}".`,sme,"for details on the date formatting syntax.",fme].join(" ")}Nc.templateFormatStringDescription=cme;Nc.hovertemplateAttrs=({editType:e="none",arrayOk:r}={},t={})=>At({valType:"string",dflt:"",editType:e},r!==!1?{arrayOk:!0}:{});Nc.texttemplateAttrs=({editType:e="calc",arrayOk:r}={},t={})=>At({valType:"string",dflt:"",editType:e},r!==!1?{arrayOk:!0}:{});Nc.shapeTexttemplateAttrs=({editType:e="arraydraw",newshape:r}={},t={})=>({valType:"string",dflt:"",editType:e});Nc.templatefallbackAttrs=({editType:e="none"}={})=>({valType:"any",dflt:"-",editType:e})});var Sp=z((kWe,oE)=>{"use strict";function Ts(e,r){return r?r.d2l(e):e}function rE(e,r){return r?r.l2d(e):e}function vme(e){return e.x0}function hme(e){return e.x1}function dme(e){return e.y0}function pme(e){return e.y1}function tE(e){return e.x0shift||0}function aE(e){return e.x1shift||0}function nE(e){return e.y0shift||0}function iE(e){return e.y1shift||0}function Mp(e,r){return Ts(e.x1,r)+aE(e)-Ts(e.x0,r)-tE(e)}function kp(e,r,t){return Ts(e.y1,t)+iE(e)-Ts(e.y0,t)-nE(e)}function mme(e,r){return Math.abs(Mp(e,r))}function yme(e,r,t){return Math.abs(kp(e,r,t))}function gme(e,r,t){return e.type!=="line"?void 0:Math.sqrt(Math.pow(Mp(e,r),2)+Math.pow(kp(e,r,t),2))}function bme(e,r){return rE((Ts(e.x1,r)+aE(e)+Ts(e.x0,r)+tE(e))/2,r)}function xme(e,r,t){return rE((Ts(e.y1,t)+iE(e)+Ts(e.y0,t)+nE(e))/2,t)}function _me(e,r,t){return e.type!=="line"?void 0:kp(e,r,t)/Mp(e,r)}var wme=["x0","x1","y0","y1","dy","height","ycenter"],Ame=["x0","x1","y0","y1","dx","width","xcenter"];oE.exports={x0:vme,x1:hme,y0:dme,y1:pme,slope:_me,dx:Mp,dy:kp,width:mme,height:yme,length:gme,xcenter:bme,ycenter:xme,simpleXVariables:wme,simpleYVariables:Ame}});var uE=z((SWe,sE)=>{"use strict";var Tme=qo().overrideAll,Gu=On(),lE=Ca(),Mme=Bi().dash,Ms=Mt().extendFlat,{shapeTexttemplateAttrs:kme,templatefallbackAttrs:Sme}=di(),qme=Sp();sE.exports=Tme({newshape:{visible:Ms({},Gu.visible,{}),showlegend:{valType:"boolean",dflt:!1},legend:Ms({},Gu.legend,{}),legendgroup:Ms({},Gu.legendgroup,{}),legendgrouptitle:{text:Ms({},Gu.legendgrouptitle.text,{}),font:lE({})},legendrank:Ms({},Gu.legendrank,{}),legendwidth:Ms({},Gu.legendwidth,{}),line:{color:{valType:"color"},width:{valType:"number",min:0,dflt:4},dash:Ms({},Mme,{dflt:"solid"})},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd"},opacity:{valType:"number",min:0,max:1,dflt:1},layer:{valType:"enumerated",values:["below","above","between"],dflt:"above"},drawdirection:{valType:"enumerated",values:["ortho","horizontal","vertical","diagonal"],dflt:"diagonal"},name:Ms({},Gu.name,{}),label:{text:{valType:"string",dflt:""},texttemplate:kme({newshape:!0},{keys:Object.keys(qme)}),texttemplatefallback:Sme({editType:"arraydraw"}),font:lE({}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"]},textangle:{valType:"angle",dflt:"auto"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto"},yanchor:{valType:"enumerated",values:["top","middle","bottom"]},padding:{valType:"number",dflt:3,min:0}}},activeshape:{fillcolor:{valType:"color",dflt:"rgb(255,0,255)",description:"Sets the color filling the active shape' interior."},opacity:{valType:"number",min:0,max:1,dflt:.5}}},"none","from-root")});var cE=z((qWe,fE)=>{"use strict";var Lme=Bi().dash,Cme=Mt().extendFlat;fE.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:Cme({},Lme,{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"}}});var qp=z((LWe,vE)=>{"use strict";vE.exports=function(e){var r=e.editType;return{t:{valType:"number",dflt:0,editType:r},r:{valType:"number",dflt:0,editType:r},b:{valType:"number",dflt:0,editType:r},l:{valType:"number",dflt:0,editType:r},editType:r}}});var Ic=z((CWe,mE)=>{"use strict";var n4=Ca(),Dme=Ah(),Lp=Ii(),hE=uE(),dE=cE(),Eme=qp(),pE=Mt().extendFlat,Cp=n4({editType:"calc"});Cp.family.dflt='"Open Sans", verdana, arial, sans-serif';Cp.size.dflt=12;Cp.color.dflt=Lp.defaultLine;mE.exports={font:Cp,title:{text:{valType:"string",editType:"layoutstyle"},font:n4({editType:"layoutstyle"}),subtitle:{text:{valType:"string",editType:"layoutstyle"},font:n4({editType:"layoutstyle"}),editType:"layoutstyle"},xref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle"},yref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle"},x:{valType:"number",min:0,max:1,dflt:.5,editType:"layoutstyle"},y:{valType:"number",min:0,max:1,dflt:"auto",editType:"layoutstyle"},xanchor:{valType:"enumerated",dflt:"auto",values:["auto","left","center","right"],editType:"layoutstyle"},yanchor:{valType:"enumerated",dflt:"auto",values:["auto","top","middle","bottom"],editType:"layoutstyle"},pad:pE(Eme({editType:"layoutstyle"}),{}),automargin:{valType:"boolean",dflt:!1,editType:"plot"},editType:"layoutstyle"},uniformtext:{mode:{valType:"enumerated",values:[!1,"hide","show"],dflt:!1,editType:"plot"},minsize:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"},autosize:{valType:"boolean",dflt:!1,editType:"none"},width:{valType:"number",min:10,dflt:700,editType:"plot"},height:{valType:"number",min:10,dflt:450,editType:"plot"},minreducedwidth:{valType:"number",min:2,dflt:64,editType:"plot"},minreducedheight:{valType:"number",min:2,dflt:64,editType:"plot"},margin:{l:{valType:"number",min:0,dflt:80,editType:"plot"},r:{valType:"number",min:0,dflt:80,editType:"plot"},t:{valType:"number",min:0,dflt:100,editType:"plot"},b:{valType:"number",min:0,dflt:80,editType:"plot"},pad:{valType:"number",min:0,dflt:0,editType:"plot"},autoexpand:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},computed:{valType:"any",editType:"none"},paper_bgcolor:{valType:"color",dflt:Lp.background,editType:"plot"},plot_bgcolor:{valType:"color",dflt:Lp.background,editType:"layoutstyle"},autotypenumbers:{valType:"enumerated",values:["convert types","strict"],dflt:"convert types",editType:"calc"},separators:{valType:"string",editType:"plot"},showlegend:{valType:"boolean",editType:"legend"},colorway:{valType:"colorlist",dflt:Lp.defaults,editType:"calc"},datarevision:{valType:"any",editType:"calc"},uirevision:{valType:"any",editType:"none"},editrevision:{valType:"any",editType:"none"},selectionrevision:{valType:"any",editType:"none"},template:{valType:"any",editType:"calc"},newshape:hE.newshape,activeshape:hE.activeshape,newselection:dE.newselection,activeselection:dE.activeselection,meta:{valType:"any",arrayOk:!0,editType:"plot"},transition:pE({},Dme.transition,{editType:"none"})}});var yE=z(()=>{(function(){if(!document.getElementById("ce8d464691048653ffe3a57c6c18ab566e8366f186677868cf724621a857b4fe")){var e=document.createElement("style");e.id="ce8d464691048653ffe3a57c6c18ab566e8366f186677868cf724621a857b4fe",e.textContent='.maplibregl-map{font:12px/20px Helvetica Neue,Arial,Helvetica,sans-serif;overflow:hidden;position:relative;-webkit-tap-highlight-color:rgb(0 0 0/0);-webkit-touch-callout:none}.maplibregl-canvas{position:absolute;left:0;top:0}.maplibregl-map:fullscreen{width:100%;height:100%}.maplibregl-ctrl-group button.maplibregl-ctrl-compass{touch-action:none}.maplibregl-canvas-container.maplibregl-interactive,.maplibregl-ctrl-group button.maplibregl-ctrl-compass{cursor:grab;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-canvas-container.maplibregl-interactive.maplibregl-track-pointer{cursor:pointer}.maplibregl-canvas-container.maplibregl-interactive:active,.maplibregl-ctrl-group button.maplibregl-ctrl-compass:active{cursor:grabbing}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-canvas-container.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:pinch-zoom}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:none}.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures,.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-ctrl-bottom-left,.maplibregl-ctrl-bottom-right,.maplibregl-ctrl-top-left,.maplibregl-ctrl-top-right{position:absolute;pointer-events:none;z-index:2}.maplibregl-ctrl-top-left{top:0;left:0}.maplibregl-ctrl-top-right{top:0;right:0}.maplibregl-ctrl-bottom-left{bottom:0;left:0}.maplibregl-ctrl-bottom-right{right:0;bottom:0}.maplibregl-ctrl{clear:both;pointer-events:auto;transform:translate(0)}.maplibregl-ctrl-top-left .maplibregl-ctrl{margin:10px 0 0 10px;float:left}.maplibregl-ctrl-top-right .maplibregl-ctrl{margin:10px 10px 0 0;float:right}.maplibregl-ctrl-bottom-left .maplibregl-ctrl{margin:0 0 10px 10px;float:left}.maplibregl-ctrl-bottom-right .maplibregl-ctrl{margin:0 10px 10px 0;float:right}.maplibregl-ctrl-group{border-radius:4px;background:#fff}.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px rgba(0,0,0,.1)}@media (forced-colors:active){.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px ButtonText}}.maplibregl-ctrl-group button{width:29px;height:29px;display:block;padding:0;outline:none;border:0;box-sizing:border-box;background-color:transparent;cursor:pointer}.maplibregl-ctrl button{-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-ctrl-group button+button{border-top:1px solid #ddd}.maplibregl-ctrl button .maplibregl-ctrl-icon{display:block;width:100%;height:100%;background-repeat:no-repeat;background-position:50%}@media (forced-colors:active){.maplibregl-ctrl-icon{background-color:transparent}.maplibregl-ctrl-group button+button{border-top:1px solid ButtonText}}.maplibregl-ctrl button::-moz-focus-inner{border:0;padding:0}.maplibregl-ctrl-attrib-button:focus,.maplibregl-ctrl-group button:focus{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl button:disabled{cursor:not-allowed}.maplibregl-ctrl button:disabled .maplibregl-ctrl-icon{opacity:.25}@media (hover:hover){.maplibregl-ctrl button:not(:disabled):hover{background-color:rgba(0,0,0,.05)}}.maplibregl-ctrl button:not(:disabled):active{background-color:rgba(0,0,0,.05)}.maplibregl-ctrl-group button:focus:focus-visible{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl-group button:focus:not(:focus-visible){box-shadow:none}.maplibregl-ctrl-group button:focus:first-child{border-radius:4px 4px 0 0}.maplibregl-ctrl-group button:focus:last-child{border-radius:0 0 4px 4px}.maplibregl-ctrl-group button:focus:only-child{border-radius:inherit}.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M10%2013c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h9c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M14.5%208.5c-.75%200-1.5.75-1.5%201.5v3h-3c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h3v3c0%20.75.75%201.5%201.5%201.5S16%2019.75%2016%2019v-3h3c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013h-3v-3c0-.75-.75-1.5-1.5-1.5%22%2F%3E%3C%2Fsvg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M10%2013c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h9c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M14.5%208.5c-.75%200-1.5.75-1.5%201.5v3h-3c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h3v3c0%20.75.75%201.5%201.5%201.5S16%2019.75%2016%2019v-3h3c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013h-3v-3c0-.75-.75-1.5-1.5-1.5%22%2F%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M10%2013c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h9c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M14.5%208.5c-.75%200-1.5.75-1.5%201.5v3h-3c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h3v3c0%20.75.75%201.5%201.5%201.5S16%2019.75%2016%2019v-3h3c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013h-3v-3c0-.75-.75-1.5-1.5-1.5%22%2F%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M24%2016v5.5c0%201.75-.75%202.5-2.5%202.5H16v-1l3-1.5-4-5.5%201-1%205.5%204%201.5-3zM6%2016l1.5%203%205.5-4%201%201-4%205.5%203%201.5v1H7.5C5.75%2024%205%2023.25%205%2021.5V16zm7-11v1l-3%201.5%204%205.5-1%201-5.5-4L6%2013H5V7.5C5%205.75%205.75%205%207.5%205zm11%202.5c0-1.75-.75-2.5-2.5-2.5H16v1l3%201.5-4%205.5%201%201%205.5-4%201.5%203h1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M18.5%2016c-1.75%200-2.5.75-2.5%202.5V24h1l1.5-3%205.5%204%201-1-4-5.5%203-1.5v-1zM13%2018.5c0-1.75-.75-2.5-2.5-2.5H5v1l3%201.5L4%2024l1%201%205.5-4%201.5%203h1zm3-8c0%201.75.75%202.5%202.5%202.5H24v-1l-3-1.5L25%205l-1-1-5.5%204L17%205h-1zM10.5%2013c1.75%200%202.5-.75%202.5-2.5V5h-1l-1.5%203L5%204%204%205l4%205.5L5%2012v1z%22%2F%3E%3C%2Fsvg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M24%2016v5.5c0%201.75-.75%202.5-2.5%202.5H16v-1l3-1.5-4-5.5%201-1%205.5%204%201.5-3zM6%2016l1.5%203%205.5-4%201%201-4%205.5%203%201.5v1H7.5C5.75%2024%205%2023.25%205%2021.5V16zm7-11v1l-3%201.5%204%205.5-1%201-5.5-4L6%2013H5V7.5C5%205.75%205.75%205%207.5%205zm11%202.5c0-1.75-.75-2.5-2.5-2.5H16v1l3%201.5-4%205.5%201%201%205.5-4%201.5%203h1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M18.5%2016c-1.75%200-2.5.75-2.5%202.5V24h1l1.5-3%205.5%204%201-1-4-5.5%203-1.5v-1zM13%2018.5c0-1.75-.75-2.5-2.5-2.5H5v1l3%201.5L4%2024l1%201%205.5-4%201.5%203h1zm3-8c0%201.75.75%202.5%202.5%202.5H24v-1l-3-1.5L25%205l-1-1-5.5%204L17%205h-1zM10.5%2013c1.75%200%202.5-.75%202.5-2.5V5h-1l-1.5%203L5%204%204%205l4%205.5L5%2012v1z%22%2F%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M24%2016v5.5c0%201.75-.75%202.5-2.5%202.5H16v-1l3-1.5-4-5.5%201-1%205.5%204%201.5-3zM6%2016l1.5%203%205.5-4%201%201-4%205.5%203%201.5v1H7.5C5.75%2024%205%2023.25%205%2021.5V16zm7-11v1l-3%201.5%204%205.5-1%201-5.5-4L6%2013H5V7.5C5%205.75%205.75%205%207.5%205zm11%202.5c0-1.75-.75-2.5-2.5-2.5H16v1l3%201.5-4%205.5%201%201%205.5-4%201.5%203h1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M18.5%2016c-1.75%200-2.5.75-2.5%202.5V24h1l1.5-3%205.5%204%201-1-4-5.5%203-1.5v-1zM13%2018.5c0-1.75-.75-2.5-2.5-2.5H5v1l3%201.5L4%2024l1%201%205.5-4%201.5%203h1zm3-8c0%201.75.75%202.5%202.5%202.5H24v-1l-3-1.5L25%205l-1-1-5.5%204L17%205h-1zM10.5%2013c1.75%200%202.5-.75%202.5-2.5V5h-1l-1.5%203L5%204%204%205l4%205.5L5%2012v1z%22%2F%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22m10.5%2014%204-8%204%208z%22%2F%3E%3Cpath%20fill%3D%22%23ccc%22%20d%3D%22m10.5%2016%204%208%204-8z%22%2F%3E%3C%2Fsvg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22m10.5%2014%204-8%204%208z%22%2F%3E%3Cpath%20fill%3D%22%23ccc%22%20d%3D%22m10.5%2016%204%208%204-8z%22%2F%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22m10.5%2014%204-8%204%208z%22%2F%3E%3Cpath%20fill%3D%22%23ccc%22%20d%3D%22m10.5%2016%204%208%204-8z%22%2F%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-globe .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2222%22%20height%3D%2222%22%20fill%3D%22none%22%20stroke%3D%22%23333%22%20viewBox%3D%220%200%2022%2022%22%3E%3Ccircle%20cx%3D%2211%22%20cy%3D%2211%22%20r%3D%228.5%22%2F%3E%3Cpath%20d%3D%22M17.5%2011c0%204.819-3.02%208.5-6.5%208.5S4.5%2015.819%204.5%2011%207.52%202.5%2011%202.5s6.5%203.681%206.5%208.5Z%22%2F%3E%3Cpath%20d%3D%22M13.5%2011c0%202.447-.331%204.64-.853%206.206-.262.785-.562%201.384-.872%201.777-.314.399-.58.517-.775.517s-.461-.118-.775-.517c-.31-.393-.61-.992-.872-1.777C8.831%2015.64%208.5%2013.446%208.5%2011s.331-4.64.853-6.206c.262-.785.562-1.384.872-1.777.314-.399.58-.517.775-.517s.461.118.775.517c.31.393.61.992.872%201.777.522%201.565.853%203.76.853%206.206Z%22%2F%3E%3Cpath%20d%3D%22M11%207.5c-1.909%200-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3%201.3%200%200%201-.224-.138q.07-.058.224-.138c.299-.151.763-.302%201.379-.434C7.378%205.666%209.091%205.5%2011%205.5s3.622.166%204.845.428c.616.132%201.08.283%201.379.434.105.053.177.1.224.138q-.07.058-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm0%209c-1.909%200-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3%201.3%200%200%201-.224-.138%201.3%201.3%200%200%201%20.224-.138c.299-.151.763-.302%201.379-.434C7.378%2014.666%209.091%2014.5%2011%2014.5s3.622.166%204.845.428c.616.132%201.08.283%201.379.434.105.053.177.1.224.138a1.3%201.3%200%200%201-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm0-4c-2.46%200-4.672-.222-6.255-.574-.796-.177-1.406-.38-1.805-.59a1.5%201.5%200%200%201-.39-.272.3.3%200%200%201-.047-.064.3.3%200%200%201%20.048-.064c.066-.073.189-.167.389-.272.399-.21%201.009-.413%201.805-.59C6.328%209.722%208.54%209.5%2011%209.5s4.672.222%206.256.574c.795.177%201.405.38%201.804.59.2.105.323.2.39.272a.3.3%200%200%201%20.047.064.3.3%200%200%201-.048.064%201.4%201.4%200%200%201-.389.272c-.399.21-1.009.413-1.804.59-1.584.352-3.796.574-6.256.574Zm-8.501-1.51v.002zm0%20.018v.002zm17.002.002v-.002zm0-.018v-.002z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-globe-enabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2222%22%20height%3D%2222%22%20fill%3D%22none%22%20stroke%3D%22%2333b5e5%22%20viewBox%3D%220%200%2022%2022%22%3E%3Ccircle%20cx%3D%2211%22%20cy%3D%2211%22%20r%3D%228.5%22%2F%3E%3Cpath%20d%3D%22M17.5%2011c0%204.819-3.02%208.5-6.5%208.5S4.5%2015.819%204.5%2011%207.52%202.5%2011%202.5s6.5%203.681%206.5%208.5Z%22%2F%3E%3Cpath%20d%3D%22M13.5%2011c0%202.447-.331%204.64-.853%206.206-.262.785-.562%201.384-.872%201.777-.314.399-.58.517-.775.517s-.461-.118-.775-.517c-.31-.393-.61-.992-.872-1.777C8.831%2015.64%208.5%2013.446%208.5%2011s.331-4.64.853-6.206c.262-.785.562-1.384.872-1.777.314-.399.58-.517.775-.517s.461.118.775.517c.31.393.61.992.872%201.777.522%201.565.853%203.76.853%206.206Z%22%2F%3E%3Cpath%20d%3D%22M11%207.5c-1.909%200-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3%201.3%200%200%201-.224-.138q.07-.058.224-.138c.299-.151.763-.302%201.379-.434C7.378%205.666%209.091%205.5%2011%205.5s3.622.166%204.845.428c.616.132%201.08.283%201.379.434.105.053.177.1.224.138q-.07.058-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm0%209c-1.909%200-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3%201.3%200%200%201-.224-.138%201.3%201.3%200%200%201%20.224-.138c.299-.151.763-.302%201.379-.434C7.378%2014.666%209.091%2014.5%2011%2014.5s3.622.166%204.845.428c.616.132%201.08.283%201.379.434.105.053.177.1.224.138a1.3%201.3%200%200%201-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm0-4c-2.46%200-4.672-.222-6.255-.574-.796-.177-1.406-.38-1.805-.59a1.5%201.5%200%200%201-.39-.272.3.3%200%200%201-.047-.064.3.3%200%200%201%20.048-.064c.066-.073.189-.167.389-.272.399-.21%201.009-.413%201.805-.59C6.328%209.722%208.54%209.5%2011%209.5s4.672.222%206.256.574c.795.177%201.405.38%201.804.59.2.105.323.2.39.272a.3.3%200%200%201%20.047.064.3.3%200%200%201-.048.064%201.4%201.4%200%200%201-.389.272c-.399.21-1.009.413-1.804.59-1.584.352-3.796.574-6.256.574Zm-8.501-1.51v.002zm0%20.018v.002zm17.002.002v-.002zm0-.018v-.002z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-terrain .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2222%22%20height%3D%2222%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2022%2022%22%3E%3Cpath%20d%3D%22m1.754%2013.406%204.453-4.851%203.09%203.09%203.281%203.277.969-.969-3.309-3.312%203.844-4.121%206.148%206.886h1.082v-.855l-7.207-8.07-4.84%205.187L6.169%206.57l-5.48%205.965v.871ZM.688%2016.844h20.625v1.375H.688Zm0%200%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-terrain-enabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2222%22%20height%3D%2222%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2022%2022%22%3E%3Cpath%20d%3D%22m1.754%2013.406%204.453-4.851%203.09%203.09%203.281%203.277.969-.969-3.309-3.312%203.844-4.121%206.148%206.886h1.082v-.855l-7.207-8.07-4.84%205.187L6.169%206.57l-5.48%205.965v.871ZM.688%2016.844h20.625v1.375H.688Zm0%200%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23aaa%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3Cpath%20fill%3D%22red%22%20d%3D%22m14%205%201%201-9%209-1-1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23e58978%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23e54e33%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-waiting .maplibregl-ctrl-icon{animation:maplibregl-spin 2s linear infinite}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23999%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3Cpath%20fill%3D%22red%22%20d%3D%22m14%205%201%201-9%209-1-1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23e58978%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23e54e33%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23666%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3Cpath%20fill%3D%22red%22%20d%3D%22m14%205%201%201-9%209-1-1z%22%2F%3E%3C%2Fsvg%3E")}}@keyframes maplibregl-spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}a.maplibregl-ctrl-logo{width:88px;height:23px;margin:0 0 -4px -4px;display:block;background-repeat:no-repeat;cursor:pointer;overflow:hidden;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2288%22%20height%3D%2223%22%20fill%3D%22none%22%3E%3Cpath%20fill%3D%22%23000%22%20fill-opacity%3D%22.4%22%20fill-rule%3D%22evenodd%22%20d%3D%22M17.408%2016.796h-1.827l2.501-12.095h.198l3.324%206.533.988%202.19.988-2.19%203.258-6.533h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.929%205.644h-.098l-2.914-5.644-.757-1.71-.345%201.71zm1.958-3.42-.726%203.663a1.255%201.255%200%200%201-1.232%201.011h-1.827a1.255%201.255%200%200%201-1.229-1.509l2.501-12.095a1.255%201.255%200%200%201%201.23-1.001h.197a1.25%201.25%200%200%201%201.12.685l3.19%206.273%203.125-6.263a1.25%201.25%200%200%201%201.123-.695h.181a1.255%201.255%200%200%201%201.227.991l1.443%206.71a5%205%200%200%201%20.314-.787l.009-.016a4.6%204.6%200%200%201%201.777-1.887c.782-.46%201.668-.667%202.611-.667a4.6%204.6%200%200%201%201.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255%201.255%200%200%201%201.212.925%201.255%201.255%200%200%201%201.212-.925h1.711c.284%200%20.545.094.755.252.613-.3%201.312-.45%202.075-.45%201.356%200%202.557.445%203.482%201.4q.47.48.763%201.064V4.701a1.255%201.255%200%200%201%201.255-1.255h1.86A1.255%201.255%200%200%201%2054.44%204.7v9.194h2.217c.19%200%20.37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42%202.42%200%200%201-.682-1.71c0-.665.267-1.253.735-1.7a2.45%202.45%200%200%201%201.722-.674%202.43%202.43%200%200%201%201.705.675q.318.302.504.683V4.7a1.255%201.255%200%200%201%201.255-1.255h1.744A1.255%201.255%200%200%201%2065.812%204.7v3.335a4.8%204.8%200%200%201%201.526-.246c.938%200%201.817.214%202.59.69a4.47%204.47%200%200%201%201.67%201.743v-.98a1.255%201.255%200%200%201%201.256-1.256h1.777c.233%200%20.451.064.639.174a3.4%203.4%200%200%201%201.567-.372c.346%200%20.861.02%201.285.232a1.25%201.25%200%200%201%20.689%201.004%204.7%204.7%200%200%201%20.853-.588c.795-.44%201.675-.647%202.61-.647%201.385%200%202.65.39%203.525%201.396.836.938%201.168%202.173%201.168%203.528q-.001.515-.056%201.051a1.255%201.255%200%200%201-.947%201.09l.408.952a1.255%201.255%200%200%201-.477%201.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06%200-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8%205.8%200%200%201-.548-2.512q0-.429.053-.843a1.3%201.3%200%200%201-.333-.086l-.166-.004c-.223%200-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255%201.255%200%200%201-1.256%201.256h-1.777a1.255%201.255%200%200%201-1.256-1.256V15.69l-.032.057a4.8%204.8%200%200%201-1.86%201.833%205.04%205.04%200%200%201-2.484.634%204.5%204.5%200%200%201-1.935-.424%201.25%201.25%200%200%201-.764.258h-1.71a1.255%201.255%200%200%201-1.256-1.255V7.687a2.4%202.4%200%200%201-.428.625c.253.23.412.561.412.93v7.553a1.255%201.255%200%200%201-1.256%201.255h-1.843a1.25%201.25%200%200%201-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255%201.255%200%200%201-1.256-1.255v-1.251l-.061.117a4.7%204.7%200%200%201-1.782%201.884%204.77%204.77%200%200%201-2.485.67%205.6%205.6%200%200%201-1.485-.188l.009%202.764a1.255%201.255%200%200%201-1.255%201.259h-1.729a1.255%201.255%200%200%201-1.255-1.255v-3.537a1.255%201.255%200%200%201-1.167.793h-1.679a1.25%201.25%200%200%201-.77-.263%204.5%204.5%200%200%201-1.945.429c-.885%200-1.724-.21-2.495-.632l-.017-.01a5%205%200%200%201-1.081-.836%201.255%201.255%200%200%201-1.254%201.312h-1.81a1.255%201.255%200%200%201-1.228-.99l-.782-3.625-2.044%203.939a1.25%201.25%200%200%201-1.115.676h-.098a1.25%201.25%200%200%201-1.116-.68l-2.061-3.994zM35.92%2016.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033%201.332h1.678V9.242h-1.694l-.033%201.267q-.133-.329-.526-.658l-.032-.028a3.2%203.2%200%200%200-.668-.428l-.27-.12a3.3%203.3%200%200%200-1.235-.23q-1.136-.001-1.974.493a3.36%203.36%200%200%200-1.3%201.382q-.445.89-.444%202.074%200%201.2.51%202.107a3.8%203.8%200%200%200%201.382%201.381%203.9%203.9%200%200%200%201.893.477q.795%200%201.455-.33zm-2.789-5.38q-.576.675-.575%201.762%200%201.102.559%201.794.576.675%201.645.675a2.25%202.25%200%200%200%20.934-.19%202.2%202.2%200%200%200%20.468-.29l.178-.161a2.2%202.2%200%200%200%20.397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2%202.2%200%200%200-.633-.709l-.13-.086-.047-.028a2.1%202.1%200%200%200-1.073-.285q-1.052%200-1.629.692zm2.316%202.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96%200%200%200-.353-.389.85.85%200%200%200-.464-.127c-.4%200-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945%200%20.506.122.801.27.99.097.11.266.224.68.224.303%200%20.504-.09.687-.269zm7.545%201.705a2.6%202.6%200%200%200%20.331.423q.319.33.755.548l.173.074q.65.255%201.49.255%201.02%200%201.844-.493a3.45%203.45%200%200%200%201.316-1.4q.493-.904.493-2.089%200-1.909-.988-2.913-.988-1.02-2.584-1.02-.898%200-1.575.347a3%203%200%200%200-.415.262l-.199.166a3.4%203.4%200%200%200-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296%201.119.297%201.07%200%201.645-.675.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.435%200-.835.16a2%202%200%200%200-.284.136%202%202%200%200%200-.363.254%202.2%202.2%200%200%200-.46.569l-.082.162a2.6%202.6%200%200%200-.213%201.072v.115q0%20.707.296%201.267l.135.211zm.964-.818a1.1%201.1%200%200%200%20.367.385.94.94%200%200%200%20.476.118c.423%200%20.59-.117.687-.23.159-.194.28-.478.28-.95%200-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1%201%200%200%200-.503.135l-.012.007a.86.86%200%200%200-.335.343c-.073.133-.132.324-.132.614v.115a1.4%201.4%200%200%200%20.14.66zm15.7-6.222q.347-.346.346-.856a1.05%201.05%200%200%200-.345-.79%201.18%201.18%200%200%200-.84-.329q-.51%200-.855.33a1.05%201.05%200%200%200-.346.79q0%20.51.346.855.345.346.856.346.51%200%20.839-.346zm4.337%209.314.033-1.332q.191.403.59.747l.098.081a4%204%200%200%200%20.316.224l.223.122a3.2%203.2%200%200%200%201.44.322%203.8%203.8%200%200%200%201.875-.477%203.5%203.5%200%200%200%201.382-1.366q.527-.89.526-2.09%200-1.184-.444-2.073a3.24%203.24%200%200%200-1.283-1.399q-.823-.51-1.942-.51a3.5%203.5%200%200%200-1.527.344l-.086.043-.165.09a3%203%200%200%200-.33.214q-.432.315-.656.707a2%202%200%200%200-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5%202.5%200%200%200%20.566.7q.117.098.245.18l.144.08a2.1%202.1%200%200%200%20.975.232q1.07%200%201.645-.675.576-.69.576-1.778%200-1.102-.576-1.777-.56-.691-1.645-.692a2.2%202.2%200%200%200-1.015.235q-.22.113-.415.282l-.15.142a2.1%202.1%200%200%200-.42.594q-.223.479-.223%201.1v.115q0%20.705.293%201.26zm2.616-.293c.157-.191.28-.479.28-.967%200-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87%200%200%200-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0%20.285.057.499.144.669a1.1%201.1%200%200%200%20.367.405c.137.082.28.123.455.123.423%200%20.59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493%200%20.642.099l.247-1.794q-.196-.099-.717-.099a2.3%202.3%200%200%200-.545.063%202%202%200%200%200-.411.148%202.2%202.2%200%200%200-.4.249%202.5%202.5%200%200%200-.485.499%202.7%202.7%200%200%200-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5%201.5%200%200%201%20.466-.636%202.5%202.5%200%200%201%20.399-.253%202%202%200%200%201%20.224-.099zm9.784%202.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46%203.46%200%200%200-1.4%201.382q-.493.906-.493%202.106%200%201.07.428%201.975.428.89%201.332%201.432.906.526%202.255.526.973%200%201.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954%200-1.497-.444a1.6%201.6%200%200%201-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1%201%200%200%200-.156-.176q-.46-.428-1.316-.428-.986%200-1.494.604-.379.45-.494%201.234zm-27.053%202.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z%22%2F%3E%3Cpath%20fill%3D%22%23fff%22%20d%3D%22m19.63%2011.151-.757-1.71-.345%201.71-1.12%205.644h-1.827L18.083%204.7h.197l3.325%206.533.988%202.19.988-2.19L26.839%204.7h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.93%205.644h-.098l-2.913-5.644zm14.836%205.81q-1.02%200-1.893-.478a3.8%203.8%200%200%201-1.381-1.382q-.51-.906-.51-2.106%200-1.185.444-2.074a3.36%203.36%200%200%201%201.3-1.382q.839-.494%201.974-.494a3.3%203.3%200%200%201%201.234.231%203.3%203.3%200%200%201%20.97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02%201.053a3.17%203.17%200%200%201-1.662.444zm.296-1.482q.938%200%201.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2%202.2%200%200%200-.807-.872%202.1%202.1%200%200%200-1.119-.313q-1.053%200-1.629.692-.575.675-.575%201.76%200%201.103.559%201.795.577.675%201.645.675zm6.521-6.237h1.711v1.4q.906-1.597%202.83-1.597%201.596%200%202.584%201.02.988%201.005.988%202.914%200%201.185-.493%202.09a3.46%203.46%200%200%201-1.316%201.399%203.5%203.5%200%200%201-1.844.493q-.954%200-1.662-.329a2.67%202.67%200%200%201-1.086-.97l.017%205.134h-1.728zm4.048%206.22q1.07%200%201.645-.674.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.592%200-1.12.296-.51.28-.822.823-.296.527-.296%201.234v.115q0%20.708.296%201.267.313.543.823.855.51.296%201.119.297z%22%2F%3E%3Cpath%20fill%3D%22%23e1e3e9%22%20d%3D%22M51.325%204.7h1.86v10.45h3.473v1.646h-5.333zm7.12%204.542h1.843v7.553h-1.843zm.905-1.415a1.16%201.16%200%200%201-.856-.346%201.17%201.17%200%200%201-.346-.856%201.05%201.05%200%200%201%20.346-.79q.346-.329.856-.329.494%200%20.839.33a1.05%201.05%200%200%201%20.345.79%201.16%201.16%200%200%201-.345.855q-.33.346-.84.346zm7.875%209.133a3.17%203.17%200%200%201-1.662-.444q-.723-.46-1.004-1.053l-.033%201.332h-1.71V4.701h1.743v4.657l-.082%201.283q.279-.658%201.086-1.119a3.5%203.5%200%200%201%201.778-.477q1.119%200%201.942.51a3.24%203.24%200%200%201%201.283%201.4q.445.888.444%202.072%200%201.201-.526%202.09a3.5%203.5%200%200%201-1.382%201.366%203.8%203.8%200%200%201-1.876.477zm-.296-1.481q1.069%200%201.645-.675.577-.69.577-1.778%200-1.102-.577-1.776-.56-.691-1.645-.692a2.12%202.12%200%200%200-1.58.659q-.642.641-.642%201.694v.115q0%20.71.296%201.267a2.4%202.4%200%200%200%20.807.872%202.1%202.1%200%200%200%201.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14%202.14%200%200%201%201.349-.46q.527%200%20.724.098l-.247%201.794q-.149-.099-.642-.099-.774%200-1.416.494-.626.493-.626%201.58v3.883h-1.777V9.242zm9.534%207.718q-1.35%200-2.255-.526-.904-.543-1.332-1.432a4.6%204.6%200%200%201-.428-1.975q0-1.2.493-2.106a3.46%203.46%200%200%201%201.4-1.382q.889-.495%202.007-.494%201.744%200%202.584.97.855.956.856%202.7%200%20.444-.05.92h-5.43q.18%201.005.708%201.45.542.443%201.497.443.79%200%201.3-.131a4%204%200%200%200%20.938-.362l.542%201.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728%200-1.991%201.86z%22%2F%3E%3Cpath%20d%3D%22M5.074%2015.948a.484.657%200%200%200-.486.659v1.84a.484.657%200%200%200%20.486.659h4.101a.484.657%200%200%200%20.486-.659v-1.84a.484.657%200%200%200-.486-.659zm3.56%201.16H5.617v.838h3.017z%22%20style%3D%22fill%3A%23fff%3Bfill-rule%3Aevenodd%3Bstroke-width%3A1.03600001%22%2F%3E%3Cg%20style%3D%22stroke-width%3A1.12603545%22%3E%3Cpath%20d%3D%22M-9.408-1.416c-3.833-.025-7.056%202.912-7.08%206.615-.02%203.08%201.653%204.832%203.107%206.268.903.892%201.721%201.74%202.32%202.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87%201.87%200%200%200-.362%201.121l-.011%201.877c-.003.402.104.787.347%201.125.244.338.688.653%201.23.656l4.142.028c.542.003.99-.306%201.238-.641a1.87%201.87%200%200%200%20.363-1.121l.012-1.875a1.87%201.87%200%200%200-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145%201.425-1.983%202.348-2.87%201.473-1.414%203.18-3.149%203.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006%201.1v.002c3.274.02%205.92%202.532%205.9%205.6-.017%202.706-1.39%204.026-2.863%205.44-1.034.994-2.118%202.033-2.814%203.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34%200%200%201-.226.084.34.34%200%200%201-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067%202.7-5.545%205.975-5.523m-.02%202.826c-1.62-.01-2.944%201.315-2.955%202.96-.01%201.646%201.295%202.988%202.916%202.999h.002c1.621.01%202.943-1.316%202.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005%201.1c1.017.006%201.829.83%201.822%201.89s-.83%201.874-1.848%201.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874%201.848-1.868m-2.155%2011.857%204.14.025c.271.002.49.305.487.676l-.013%201.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668%22%20style%3D%22color%3A%23000%3Bfont-style%3Anormal%3Bfont-variant%3Anormal%3Bfont-weight%3A400%3Bfont-stretch%3Anormal%3Bfont-size%3Amedium%3Bline-height%3Anormal%3Bfont-family%3Asans-serif%3Bfont-variant-ligatures%3Anormal%3Bfont-variant-position%3Anormal%3Bfont-variant-caps%3Anormal%3Bfont-variant-numeric%3Anormal%3Bfont-variant-alternates%3Anormal%3Bfont-feature-settings%3Anormal%3Btext-indent%3A0%3Btext-align%3Astart%3Btext-decoration%3Anone%3Btext-decoration-line%3Anone%3Btext-decoration-style%3Asolid%3Btext-decoration-color%3A%23000%3Bletter-spacing%3Anormal%3Bword-spacing%3Anormal%3Btext-transform%3Anone%3Bwriting-mode%3Alr-tb%3Bdirection%3Altr%3Btext-orientation%3Amixed%3Bdominant-baseline%3Aauto%3Bbaseline-shift%3Abaseline%3Btext-anchor%3Astart%3Bwhite-space%3Anormal%3Bshape-padding%3A0%3Bclip-rule%3Aevenodd%3Bdisplay%3Ainline%3Boverflow%3Avisible%3Bvisibility%3Avisible%3Bopacity%3A1%3Bisolation%3Aauto%3Bmix-blend-mode%3Anormal%3Bcolor-interpolation%3AsRGB%3Bcolor-interpolation-filters%3AlinearRGB%3Bsolid-color%3A%23000%3Bsolid-opacity%3A1%3Bvector-effect%3Anone%3Bfill%3A%23000%3Bfill-opacity%3A.4%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-linecap%3Abutt%3Bstroke-linejoin%3Amiter%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-dashoffset%3A0%3Bstroke-opacity%3A1%3Bcolor-rendering%3Aauto%3Bimage-rendering%3Aauto%3Bshape-rendering%3Aauto%3Btext-rendering%3Aauto%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-9.415-.316C-12.69-.338-15.37%202.14-15.39%205.207c-.017%202.716%201.326%204.041%202.78%205.477%201.013%201%202.081%202.055%202.78%203.67l.092.076a.34.34%200%200%200%20.225.086.34.34%200%200%200%20.227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6%201.78-2.64%202.814-3.634%201.473-1.414%202.847-2.733%202.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057%208.784c1.621.011%202.944-1.315%202.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945%201.315-2.955%202.96s1.295%202.989%202.916%203%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23e1e3e9%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-11.594%2015.465c-.27-.002-.492.297-.494.668l-.012%201.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23fff%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E")}a.maplibregl-ctrl-logo.maplibregl-compact{width:14px}@media (forced-colors:active){a.maplibregl-ctrl-logo{background-color:transparent;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2288%22%20height%3D%2223%22%20fill%3D%22none%22%3E%3Cpath%20fill%3D%22%23000%22%20fill-opacity%3D%22.4%22%20fill-rule%3D%22evenodd%22%20d%3D%22M17.408%2016.796h-1.827l2.501-12.095h.198l3.324%206.533.988%202.19.988-2.19%203.258-6.533h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.929%205.644h-.098l-2.914-5.644-.757-1.71-.345%201.71zm1.958-3.42-.726%203.663a1.255%201.255%200%200%201-1.232%201.011h-1.827a1.255%201.255%200%200%201-1.229-1.509l2.501-12.095a1.255%201.255%200%200%201%201.23-1.001h.197a1.25%201.25%200%200%201%201.12.685l3.19%206.273%203.125-6.263a1.25%201.25%200%200%201%201.123-.695h.181a1.255%201.255%200%200%201%201.227.991l1.443%206.71a5%205%200%200%201%20.314-.787l.009-.016a4.6%204.6%200%200%201%201.777-1.887c.782-.46%201.668-.667%202.611-.667a4.6%204.6%200%200%201%201.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255%201.255%200%200%201%201.212.925%201.255%201.255%200%200%201%201.212-.925h1.711c.284%200%20.545.094.755.252.613-.3%201.312-.45%202.075-.45%201.356%200%202.557.445%203.482%201.4q.47.48.763%201.064V4.701a1.255%201.255%200%200%201%201.255-1.255h1.86A1.255%201.255%200%200%201%2054.44%204.7v9.194h2.217c.19%200%20.37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42%202.42%200%200%201-.682-1.71c0-.665.267-1.253.735-1.7a2.45%202.45%200%200%201%201.722-.674%202.43%202.43%200%200%201%201.705.675q.318.302.504.683V4.7a1.255%201.255%200%200%201%201.255-1.255h1.744A1.255%201.255%200%200%201%2065.812%204.7v3.335a4.8%204.8%200%200%201%201.526-.246c.938%200%201.817.214%202.59.69a4.47%204.47%200%200%201%201.67%201.743v-.98a1.255%201.255%200%200%201%201.256-1.256h1.777c.233%200%20.451.064.639.174a3.4%203.4%200%200%201%201.567-.372c.346%200%20.861.02%201.285.232a1.25%201.25%200%200%201%20.689%201.004%204.7%204.7%200%200%201%20.853-.588c.795-.44%201.675-.647%202.61-.647%201.385%200%202.65.39%203.525%201.396.836.938%201.168%202.173%201.168%203.528q-.001.515-.056%201.051a1.255%201.255%200%200%201-.947%201.09l.408.952a1.255%201.255%200%200%201-.477%201.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06%200-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8%205.8%200%200%201-.548-2.512q0-.429.053-.843a1.3%201.3%200%200%201-.333-.086l-.166-.004c-.223%200-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255%201.255%200%200%201-1.256%201.256h-1.777a1.255%201.255%200%200%201-1.256-1.256V15.69l-.032.057a4.8%204.8%200%200%201-1.86%201.833%205.04%205.04%200%200%201-2.484.634%204.5%204.5%200%200%201-1.935-.424%201.25%201.25%200%200%201-.764.258h-1.71a1.255%201.255%200%200%201-1.256-1.255V7.687a2.4%202.4%200%200%201-.428.625c.253.23.412.561.412.93v7.553a1.255%201.255%200%200%201-1.256%201.255h-1.843a1.25%201.25%200%200%201-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255%201.255%200%200%201-1.256-1.255v-1.251l-.061.117a4.7%204.7%200%200%201-1.782%201.884%204.77%204.77%200%200%201-2.485.67%205.6%205.6%200%200%201-1.485-.188l.009%202.764a1.255%201.255%200%200%201-1.255%201.259h-1.729a1.255%201.255%200%200%201-1.255-1.255v-3.537a1.255%201.255%200%200%201-1.167.793h-1.679a1.25%201.25%200%200%201-.77-.263%204.5%204.5%200%200%201-1.945.429c-.885%200-1.724-.21-2.495-.632l-.017-.01a5%205%200%200%201-1.081-.836%201.255%201.255%200%200%201-1.254%201.312h-1.81a1.255%201.255%200%200%201-1.228-.99l-.782-3.625-2.044%203.939a1.25%201.25%200%200%201-1.115.676h-.098a1.25%201.25%200%200%201-1.116-.68l-2.061-3.994zM35.92%2016.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033%201.332h1.678V9.242h-1.694l-.033%201.267q-.133-.329-.526-.658l-.032-.028a3.2%203.2%200%200%200-.668-.428l-.27-.12a3.3%203.3%200%200%200-1.235-.23q-1.136-.001-1.974.493a3.36%203.36%200%200%200-1.3%201.382q-.445.89-.444%202.074%200%201.2.51%202.107a3.8%203.8%200%200%200%201.382%201.381%203.9%203.9%200%200%200%201.893.477q.795%200%201.455-.33zm-2.789-5.38q-.576.675-.575%201.762%200%201.102.559%201.794.576.675%201.645.675a2.25%202.25%200%200%200%20.934-.19%202.2%202.2%200%200%200%20.468-.29l.178-.161a2.2%202.2%200%200%200%20.397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2%202.2%200%200%200-.633-.709l-.13-.086-.047-.028a2.1%202.1%200%200%200-1.073-.285q-1.052%200-1.629.692zm2.316%202.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96%200%200%200-.353-.389.85.85%200%200%200-.464-.127c-.4%200-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945%200%20.506.122.801.27.99.097.11.266.224.68.224.303%200%20.504-.09.687-.269zm7.545%201.705a2.6%202.6%200%200%200%20.331.423q.319.33.755.548l.173.074q.65.255%201.49.255%201.02%200%201.844-.493a3.45%203.45%200%200%200%201.316-1.4q.493-.904.493-2.089%200-1.909-.988-2.913-.988-1.02-2.584-1.02-.898%200-1.575.347a3%203%200%200%200-.415.262l-.199.166a3.4%203.4%200%200%200-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296%201.119.297%201.07%200%201.645-.675.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.435%200-.835.16a2%202%200%200%200-.284.136%202%202%200%200%200-.363.254%202.2%202.2%200%200%200-.46.569l-.082.162a2.6%202.6%200%200%200-.213%201.072v.115q0%20.707.296%201.267l.135.211zm.964-.818a1.1%201.1%200%200%200%20.367.385.94.94%200%200%200%20.476.118c.423%200%20.59-.117.687-.23.159-.194.28-.478.28-.95%200-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1%201%200%200%200-.503.135l-.012.007a.86.86%200%200%200-.335.343c-.073.133-.132.324-.132.614v.115a1.4%201.4%200%200%200%20.14.66zm15.7-6.222q.347-.346.346-.856a1.05%201.05%200%200%200-.345-.79%201.18%201.18%200%200%200-.84-.329q-.51%200-.855.33a1.05%201.05%200%200%200-.346.79q0%20.51.346.855.345.346.856.346.51%200%20.839-.346zm4.337%209.314.033-1.332q.191.403.59.747l.098.081a4%204%200%200%200%20.316.224l.223.122a3.2%203.2%200%200%200%201.44.322%203.8%203.8%200%200%200%201.875-.477%203.5%203.5%200%200%200%201.382-1.366q.527-.89.526-2.09%200-1.184-.444-2.073a3.24%203.24%200%200%200-1.283-1.399q-.823-.51-1.942-.51a3.5%203.5%200%200%200-1.527.344l-.086.043-.165.09a3%203%200%200%200-.33.214q-.432.315-.656.707a2%202%200%200%200-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5%202.5%200%200%200%20.566.7q.117.098.245.18l.144.08a2.1%202.1%200%200%200%20.975.232q1.07%200%201.645-.675.576-.69.576-1.778%200-1.102-.576-1.777-.56-.691-1.645-.692a2.2%202.2%200%200%200-1.015.235q-.22.113-.415.282l-.15.142a2.1%202.1%200%200%200-.42.594q-.223.479-.223%201.1v.115q0%20.705.293%201.26zm2.616-.293c.157-.191.28-.479.28-.967%200-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87%200%200%200-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0%20.285.057.499.144.669a1.1%201.1%200%200%200%20.367.405c.137.082.28.123.455.123.423%200%20.59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493%200%20.642.099l.247-1.794q-.196-.099-.717-.099a2.3%202.3%200%200%200-.545.063%202%202%200%200%200-.411.148%202.2%202.2%200%200%200-.4.249%202.5%202.5%200%200%200-.485.499%202.7%202.7%200%200%200-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5%201.5%200%200%201%20.466-.636%202.5%202.5%200%200%201%20.399-.253%202%202%200%200%201%20.224-.099zm9.784%202.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46%203.46%200%200%200-1.4%201.382q-.493.906-.493%202.106%200%201.07.428%201.975.428.89%201.332%201.432.906.526%202.255.526.973%200%201.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954%200-1.497-.444a1.6%201.6%200%200%201-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1%201%200%200%200-.156-.176q-.46-.428-1.316-.428-.986%200-1.494.604-.379.45-.494%201.234zm-27.053%202.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z%22%2F%3E%3Cpath%20fill%3D%22%23fff%22%20d%3D%22m19.63%2011.151-.757-1.71-.345%201.71-1.12%205.644h-1.827L18.083%204.7h.197l3.325%206.533.988%202.19.988-2.19L26.839%204.7h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.93%205.644h-.098l-2.913-5.644zm14.836%205.81q-1.02%200-1.893-.478a3.8%203.8%200%200%201-1.381-1.382q-.51-.906-.51-2.106%200-1.185.444-2.074a3.36%203.36%200%200%201%201.3-1.382q.839-.494%201.974-.494a3.3%203.3%200%200%201%201.234.231%203.3%203.3%200%200%201%20.97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02%201.053a3.17%203.17%200%200%201-1.662.444zm.296-1.482q.938%200%201.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2%202.2%200%200%200-.807-.872%202.1%202.1%200%200%200-1.119-.313q-1.053%200-1.629.692-.575.675-.575%201.76%200%201.103.559%201.795.577.675%201.645.675zm6.521-6.237h1.711v1.4q.906-1.597%202.83-1.597%201.596%200%202.584%201.02.988%201.005.988%202.914%200%201.185-.493%202.09a3.46%203.46%200%200%201-1.316%201.399%203.5%203.5%200%200%201-1.844.493q-.954%200-1.662-.329a2.67%202.67%200%200%201-1.086-.97l.017%205.134h-1.728zm4.048%206.22q1.07%200%201.645-.674.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.592%200-1.12.296-.51.28-.822.823-.296.527-.296%201.234v.115q0%20.708.296%201.267.313.543.823.855.51.296%201.119.297z%22%2F%3E%3Cpath%20fill%3D%22%23e1e3e9%22%20d%3D%22M51.325%204.7h1.86v10.45h3.473v1.646h-5.333zm7.12%204.542h1.843v7.553h-1.843zm.905-1.415a1.16%201.16%200%200%201-.856-.346%201.17%201.17%200%200%201-.346-.856%201.05%201.05%200%200%201%20.346-.79q.346-.329.856-.329.494%200%20.839.33a1.05%201.05%200%200%201%20.345.79%201.16%201.16%200%200%201-.345.855q-.33.346-.84.346zm7.875%209.133a3.17%203.17%200%200%201-1.662-.444q-.723-.46-1.004-1.053l-.033%201.332h-1.71V4.701h1.743v4.657l-.082%201.283q.279-.658%201.086-1.119a3.5%203.5%200%200%201%201.778-.477q1.119%200%201.942.51a3.24%203.24%200%200%201%201.283%201.4q.445.888.444%202.072%200%201.201-.526%202.09a3.5%203.5%200%200%201-1.382%201.366%203.8%203.8%200%200%201-1.876.477zm-.296-1.481q1.069%200%201.645-.675.577-.69.577-1.778%200-1.102-.577-1.776-.56-.691-1.645-.692a2.12%202.12%200%200%200-1.58.659q-.642.641-.642%201.694v.115q0%20.71.296%201.267a2.4%202.4%200%200%200%20.807.872%202.1%202.1%200%200%200%201.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14%202.14%200%200%201%201.349-.46q.527%200%20.724.098l-.247%201.794q-.149-.099-.642-.099-.774%200-1.416.494-.626.493-.626%201.58v3.883h-1.777V9.242zm9.534%207.718q-1.35%200-2.255-.526-.904-.543-1.332-1.432a4.6%204.6%200%200%201-.428-1.975q0-1.2.493-2.106a3.46%203.46%200%200%201%201.4-1.382q.889-.495%202.007-.494%201.744%200%202.584.97.855.956.856%202.7%200%20.444-.05.92h-5.43q.18%201.005.708%201.45.542.443%201.497.443.79%200%201.3-.131a4%204%200%200%200%20.938-.362l.542%201.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728%200-1.991%201.86z%22%2F%3E%3Cpath%20d%3D%22M5.074%2015.948a.484.657%200%200%200-.486.659v1.84a.484.657%200%200%200%20.486.659h4.101a.484.657%200%200%200%20.486-.659v-1.84a.484.657%200%200%200-.486-.659zm3.56%201.16H5.617v.838h3.017z%22%20style%3D%22fill%3A%23fff%3Bfill-rule%3Aevenodd%3Bstroke-width%3A1.03600001%22%2F%3E%3Cg%20style%3D%22stroke-width%3A1.12603545%22%3E%3Cpath%20d%3D%22M-9.408-1.416c-3.833-.025-7.056%202.912-7.08%206.615-.02%203.08%201.653%204.832%203.107%206.268.903.892%201.721%201.74%202.32%202.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87%201.87%200%200%200-.362%201.121l-.011%201.877c-.003.402.104.787.347%201.125.244.338.688.653%201.23.656l4.142.028c.542.003.99-.306%201.238-.641a1.87%201.87%200%200%200%20.363-1.121l.012-1.875a1.87%201.87%200%200%200-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145%201.425-1.983%202.348-2.87%201.473-1.414%203.18-3.149%203.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006%201.1v.002c3.274.02%205.92%202.532%205.9%205.6-.017%202.706-1.39%204.026-2.863%205.44-1.034.994-2.118%202.033-2.814%203.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34%200%200%201-.226.084.34.34%200%200%201-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067%202.7-5.545%205.975-5.523m-.02%202.826c-1.62-.01-2.944%201.315-2.955%202.96-.01%201.646%201.295%202.988%202.916%202.999h.002c1.621.01%202.943-1.316%202.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005%201.1c1.017.006%201.829.83%201.822%201.89s-.83%201.874-1.848%201.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874%201.848-1.868m-2.155%2011.857%204.14.025c.271.002.49.305.487.676l-.013%201.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668%22%20style%3D%22color%3A%23000%3Bfont-style%3Anormal%3Bfont-variant%3Anormal%3Bfont-weight%3A400%3Bfont-stretch%3Anormal%3Bfont-size%3Amedium%3Bline-height%3Anormal%3Bfont-family%3Asans-serif%3Bfont-variant-ligatures%3Anormal%3Bfont-variant-position%3Anormal%3Bfont-variant-caps%3Anormal%3Bfont-variant-numeric%3Anormal%3Bfont-variant-alternates%3Anormal%3Bfont-feature-settings%3Anormal%3Btext-indent%3A0%3Btext-align%3Astart%3Btext-decoration%3Anone%3Btext-decoration-line%3Anone%3Btext-decoration-style%3Asolid%3Btext-decoration-color%3A%23000%3Bletter-spacing%3Anormal%3Bword-spacing%3Anormal%3Btext-transform%3Anone%3Bwriting-mode%3Alr-tb%3Bdirection%3Altr%3Btext-orientation%3Amixed%3Bdominant-baseline%3Aauto%3Bbaseline-shift%3Abaseline%3Btext-anchor%3Astart%3Bwhite-space%3Anormal%3Bshape-padding%3A0%3Bclip-rule%3Aevenodd%3Bdisplay%3Ainline%3Boverflow%3Avisible%3Bvisibility%3Avisible%3Bopacity%3A1%3Bisolation%3Aauto%3Bmix-blend-mode%3Anormal%3Bcolor-interpolation%3AsRGB%3Bcolor-interpolation-filters%3AlinearRGB%3Bsolid-color%3A%23000%3Bsolid-opacity%3A1%3Bvector-effect%3Anone%3Bfill%3A%23000%3Bfill-opacity%3A.4%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-linecap%3Abutt%3Bstroke-linejoin%3Amiter%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-dashoffset%3A0%3Bstroke-opacity%3A1%3Bcolor-rendering%3Aauto%3Bimage-rendering%3Aauto%3Bshape-rendering%3Aauto%3Btext-rendering%3Aauto%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-9.415-.316C-12.69-.338-15.37%202.14-15.39%205.207c-.017%202.716%201.326%204.041%202.78%205.477%201.013%201%202.081%202.055%202.78%203.67l.092.076a.34.34%200%200%200%20.225.086.34.34%200%200%200%20.227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6%201.78-2.64%202.814-3.634%201.473-1.414%202.847-2.733%202.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057%208.784c1.621.011%202.944-1.315%202.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945%201.315-2.955%202.96s1.295%202.989%202.916%203%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23e1e3e9%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-11.594%2015.465c-.27-.002-.492.297-.494.668l-.012%201.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23fff%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){a.maplibregl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2288%22%20height%3D%2223%22%20fill%3D%22none%22%3E%3Cpath%20fill%3D%22%23000%22%20fill-opacity%3D%22.4%22%20fill-rule%3D%22evenodd%22%20d%3D%22M17.408%2016.796h-1.827l2.501-12.095h.198l3.324%206.533.988%202.19.988-2.19%203.258-6.533h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.929%205.644h-.098l-2.914-5.644-.757-1.71-.345%201.71zm1.958-3.42-.726%203.663a1.255%201.255%200%200%201-1.232%201.011h-1.827a1.255%201.255%200%200%201-1.229-1.509l2.501-12.095a1.255%201.255%200%200%201%201.23-1.001h.197a1.25%201.25%200%200%201%201.12.685l3.19%206.273%203.125-6.263a1.25%201.25%200%200%201%201.123-.695h.181a1.255%201.255%200%200%201%201.227.991l1.443%206.71a5%205%200%200%201%20.314-.787l.009-.016a4.6%204.6%200%200%201%201.777-1.887c.782-.46%201.668-.667%202.611-.667a4.6%204.6%200%200%201%201.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255%201.255%200%200%201%201.212.925%201.255%201.255%200%200%201%201.212-.925h1.711c.284%200%20.545.094.755.252.613-.3%201.312-.45%202.075-.45%201.356%200%202.557.445%203.482%201.4q.47.48.763%201.064V4.701a1.255%201.255%200%200%201%201.255-1.255h1.86A1.255%201.255%200%200%201%2054.44%204.7v9.194h2.217c.19%200%20.37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42%202.42%200%200%201-.682-1.71c0-.665.267-1.253.735-1.7a2.45%202.45%200%200%201%201.722-.674%202.43%202.43%200%200%201%201.705.675q.318.302.504.683V4.7a1.255%201.255%200%200%201%201.255-1.255h1.744A1.255%201.255%200%200%201%2065.812%204.7v3.335a4.8%204.8%200%200%201%201.526-.246c.938%200%201.817.214%202.59.69a4.47%204.47%200%200%201%201.67%201.743v-.98a1.255%201.255%200%200%201%201.256-1.256h1.777c.233%200%20.451.064.639.174a3.4%203.4%200%200%201%201.567-.372c.346%200%20.861.02%201.285.232a1.25%201.25%200%200%201%20.689%201.004%204.7%204.7%200%200%201%20.853-.588c.795-.44%201.675-.647%202.61-.647%201.385%200%202.65.39%203.525%201.396.836.938%201.168%202.173%201.168%203.528q-.001.515-.056%201.051a1.255%201.255%200%200%201-.947%201.09l.408.952a1.255%201.255%200%200%201-.477%201.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06%200-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8%205.8%200%200%201-.548-2.512q0-.429.053-.843a1.3%201.3%200%200%201-.333-.086l-.166-.004c-.223%200-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255%201.255%200%200%201-1.256%201.256h-1.777a1.255%201.255%200%200%201-1.256-1.256V15.69l-.032.057a4.8%204.8%200%200%201-1.86%201.833%205.04%205.04%200%200%201-2.484.634%204.5%204.5%200%200%201-1.935-.424%201.25%201.25%200%200%201-.764.258h-1.71a1.255%201.255%200%200%201-1.256-1.255V7.687a2.4%202.4%200%200%201-.428.625c.253.23.412.561.412.93v7.553a1.255%201.255%200%200%201-1.256%201.255h-1.843a1.25%201.25%200%200%201-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255%201.255%200%200%201-1.256-1.255v-1.251l-.061.117a4.7%204.7%200%200%201-1.782%201.884%204.77%204.77%200%200%201-2.485.67%205.6%205.6%200%200%201-1.485-.188l.009%202.764a1.255%201.255%200%200%201-1.255%201.259h-1.729a1.255%201.255%200%200%201-1.255-1.255v-3.537a1.255%201.255%200%200%201-1.167.793h-1.679a1.25%201.25%200%200%201-.77-.263%204.5%204.5%200%200%201-1.945.429c-.885%200-1.724-.21-2.495-.632l-.017-.01a5%205%200%200%201-1.081-.836%201.255%201.255%200%200%201-1.254%201.312h-1.81a1.255%201.255%200%200%201-1.228-.99l-.782-3.625-2.044%203.939a1.25%201.25%200%200%201-1.115.676h-.098a1.25%201.25%200%200%201-1.116-.68l-2.061-3.994zM35.92%2016.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033%201.332h1.678V9.242h-1.694l-.033%201.267q-.133-.329-.526-.658l-.032-.028a3.2%203.2%200%200%200-.668-.428l-.27-.12a3.3%203.3%200%200%200-1.235-.23q-1.136-.001-1.974.493a3.36%203.36%200%200%200-1.3%201.382q-.445.89-.444%202.074%200%201.2.51%202.107a3.8%203.8%200%200%200%201.382%201.381%203.9%203.9%200%200%200%201.893.477q.795%200%201.455-.33zm-2.789-5.38q-.576.675-.575%201.762%200%201.102.559%201.794.576.675%201.645.675a2.25%202.25%200%200%200%20.934-.19%202.2%202.2%200%200%200%20.468-.29l.178-.161a2.2%202.2%200%200%200%20.397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2%202.2%200%200%200-.633-.709l-.13-.086-.047-.028a2.1%202.1%200%200%200-1.073-.285q-1.052%200-1.629.692zm2.316%202.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96%200%200%200-.353-.389.85.85%200%200%200-.464-.127c-.4%200-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945%200%20.506.122.801.27.99.097.11.266.224.68.224.303%200%20.504-.09.687-.269zm7.545%201.705a2.6%202.6%200%200%200%20.331.423q.319.33.755.548l.173.074q.65.255%201.49.255%201.02%200%201.844-.493a3.45%203.45%200%200%200%201.316-1.4q.493-.904.493-2.089%200-1.909-.988-2.913-.988-1.02-2.584-1.02-.898%200-1.575.347a3%203%200%200%200-.415.262l-.199.166a3.4%203.4%200%200%200-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296%201.119.297%201.07%200%201.645-.675.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.435%200-.835.16a2%202%200%200%200-.284.136%202%202%200%200%200-.363.254%202.2%202.2%200%200%200-.46.569l-.082.162a2.6%202.6%200%200%200-.213%201.072v.115q0%20.707.296%201.267l.135.211zm.964-.818a1.1%201.1%200%200%200%20.367.385.94.94%200%200%200%20.476.118c.423%200%20.59-.117.687-.23.159-.194.28-.478.28-.95%200-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1%201%200%200%200-.503.135l-.012.007a.86.86%200%200%200-.335.343c-.073.133-.132.324-.132.614v.115a1.4%201.4%200%200%200%20.14.66zm15.7-6.222q.347-.346.346-.856a1.05%201.05%200%200%200-.345-.79%201.18%201.18%200%200%200-.84-.329q-.51%200-.855.33a1.05%201.05%200%200%200-.346.79q0%20.51.346.855.345.346.856.346.51%200%20.839-.346zm4.337%209.314.033-1.332q.191.403.59.747l.098.081a4%204%200%200%200%20.316.224l.223.122a3.2%203.2%200%200%200%201.44.322%203.8%203.8%200%200%200%201.875-.477%203.5%203.5%200%200%200%201.382-1.366q.527-.89.526-2.09%200-1.184-.444-2.073a3.24%203.24%200%200%200-1.283-1.399q-.823-.51-1.942-.51a3.5%203.5%200%200%200-1.527.344l-.086.043-.165.09a3%203%200%200%200-.33.214q-.432.315-.656.707a2%202%200%200%200-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5%202.5%200%200%200%20.566.7q.117.098.245.18l.144.08a2.1%202.1%200%200%200%20.975.232q1.07%200%201.645-.675.576-.69.576-1.778%200-1.102-.576-1.777-.56-.691-1.645-.692a2.2%202.2%200%200%200-1.015.235q-.22.113-.415.282l-.15.142a2.1%202.1%200%200%200-.42.594q-.223.479-.223%201.1v.115q0%20.705.293%201.26zm2.616-.293c.157-.191.28-.479.28-.967%200-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87%200%200%200-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0%20.285.057.499.144.669a1.1%201.1%200%200%200%20.367.405c.137.082.28.123.455.123.423%200%20.59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493%200%20.642.099l.247-1.794q-.196-.099-.717-.099a2.3%202.3%200%200%200-.545.063%202%202%200%200%200-.411.148%202.2%202.2%200%200%200-.4.249%202.5%202.5%200%200%200-.485.499%202.7%202.7%200%200%200-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5%201.5%200%200%201%20.466-.636%202.5%202.5%200%200%201%20.399-.253%202%202%200%200%201%20.224-.099zm9.784%202.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46%203.46%200%200%200-1.4%201.382q-.493.906-.493%202.106%200%201.07.428%201.975.428.89%201.332%201.432.906.526%202.255.526.973%200%201.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954%200-1.497-.444a1.6%201.6%200%200%201-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1%201%200%200%200-.156-.176q-.46-.428-1.316-.428-.986%200-1.494.604-.379.45-.494%201.234zm-27.053%202.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z%22%2F%3E%3Cpath%20fill%3D%22%23fff%22%20d%3D%22m19.63%2011.151-.757-1.71-.345%201.71-1.12%205.644h-1.827L18.083%204.7h.197l3.325%206.533.988%202.19.988-2.19L26.839%204.7h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.93%205.644h-.098l-2.913-5.644zm14.836%205.81q-1.02%200-1.893-.478a3.8%203.8%200%200%201-1.381-1.382q-.51-.906-.51-2.106%200-1.185.444-2.074a3.36%203.36%200%200%201%201.3-1.382q.839-.494%201.974-.494a3.3%203.3%200%200%201%201.234.231%203.3%203.3%200%200%201%20.97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02%201.053a3.17%203.17%200%200%201-1.662.444zm.296-1.482q.938%200%201.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2%202.2%200%200%200-.807-.872%202.1%202.1%200%200%200-1.119-.313q-1.053%200-1.629.692-.575.675-.575%201.76%200%201.103.559%201.795.577.675%201.645.675zm6.521-6.237h1.711v1.4q.906-1.597%202.83-1.597%201.596%200%202.584%201.02.988%201.005.988%202.914%200%201.185-.493%202.09a3.46%203.46%200%200%201-1.316%201.399%203.5%203.5%200%200%201-1.844.493q-.954%200-1.662-.329a2.67%202.67%200%200%201-1.086-.97l.017%205.134h-1.728zm4.048%206.22q1.07%200%201.645-.674.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.592%200-1.12.296-.51.28-.822.823-.296.527-.296%201.234v.115q0%20.708.296%201.267.313.543.823.855.51.296%201.119.297z%22%2F%3E%3Cpath%20fill%3D%22%23e1e3e9%22%20d%3D%22M51.325%204.7h1.86v10.45h3.473v1.646h-5.333zm7.12%204.542h1.843v7.553h-1.843zm.905-1.415a1.16%201.16%200%200%201-.856-.346%201.17%201.17%200%200%201-.346-.856%201.05%201.05%200%200%201%20.346-.79q.346-.329.856-.329.494%200%20.839.33a1.05%201.05%200%200%201%20.345.79%201.16%201.16%200%200%201-.345.855q-.33.346-.84.346zm7.875%209.133a3.17%203.17%200%200%201-1.662-.444q-.723-.46-1.004-1.053l-.033%201.332h-1.71V4.701h1.743v4.657l-.082%201.283q.279-.658%201.086-1.119a3.5%203.5%200%200%201%201.778-.477q1.119%200%201.942.51a3.24%203.24%200%200%201%201.283%201.4q.445.888.444%202.072%200%201.201-.526%202.09a3.5%203.5%200%200%201-1.382%201.366%203.8%203.8%200%200%201-1.876.477zm-.296-1.481q1.069%200%201.645-.675.577-.69.577-1.778%200-1.102-.577-1.776-.56-.691-1.645-.692a2.12%202.12%200%200%200-1.58.659q-.642.641-.642%201.694v.115q0%20.71.296%201.267a2.4%202.4%200%200%200%20.807.872%202.1%202.1%200%200%200%201.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14%202.14%200%200%201%201.349-.46q.527%200%20.724.098l-.247%201.794q-.149-.099-.642-.099-.774%200-1.416.494-.626.493-.626%201.58v3.883h-1.777V9.242zm9.534%207.718q-1.35%200-2.255-.526-.904-.543-1.332-1.432a4.6%204.6%200%200%201-.428-1.975q0-1.2.493-2.106a3.46%203.46%200%200%201%201.4-1.382q.889-.495%202.007-.494%201.744%200%202.584.97.855.956.856%202.7%200%20.444-.05.92h-5.43q.18%201.005.708%201.45.542.443%201.497.443.79%200%201.3-.131a4%204%200%200%200%20.938-.362l.542%201.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728%200-1.991%201.86z%22%2F%3E%3Cpath%20d%3D%22M5.074%2015.948a.484.657%200%200%200-.486.659v1.84a.484.657%200%200%200%20.486.659h4.101a.484.657%200%200%200%20.486-.659v-1.84a.484.657%200%200%200-.486-.659zm3.56%201.16H5.617v.838h3.017z%22%20style%3D%22fill%3A%23fff%3Bfill-rule%3Aevenodd%3Bstroke-width%3A1.03600001%22%2F%3E%3Cg%20style%3D%22stroke-width%3A1.12603545%22%3E%3Cpath%20d%3D%22M-9.408-1.416c-3.833-.025-7.056%202.912-7.08%206.615-.02%203.08%201.653%204.832%203.107%206.268.903.892%201.721%201.74%202.32%202.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87%201.87%200%200%200-.362%201.121l-.011%201.877c-.003.402.104.787.347%201.125.244.338.688.653%201.23.656l4.142.028c.542.003.99-.306%201.238-.641a1.87%201.87%200%200%200%20.363-1.121l.012-1.875a1.87%201.87%200%200%200-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145%201.425-1.983%202.348-2.87%201.473-1.414%203.18-3.149%203.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006%201.1v.002c3.274.02%205.92%202.532%205.9%205.6-.017%202.706-1.39%204.026-2.863%205.44-1.034.994-2.118%202.033-2.814%203.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34%200%200%201-.226.084.34.34%200%200%201-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067%202.7-5.545%205.975-5.523m-.02%202.826c-1.62-.01-2.944%201.315-2.955%202.96-.01%201.646%201.295%202.988%202.916%202.999h.002c1.621.01%202.943-1.316%202.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005%201.1c1.017.006%201.829.83%201.822%201.89s-.83%201.874-1.848%201.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874%201.848-1.868m-2.155%2011.857%204.14.025c.271.002.49.305.487.676l-.013%201.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668%22%20style%3D%22color%3A%23000%3Bfont-style%3Anormal%3Bfont-variant%3Anormal%3Bfont-weight%3A400%3Bfont-stretch%3Anormal%3Bfont-size%3Amedium%3Bline-height%3Anormal%3Bfont-family%3Asans-serif%3Bfont-variant-ligatures%3Anormal%3Bfont-variant-position%3Anormal%3Bfont-variant-caps%3Anormal%3Bfont-variant-numeric%3Anormal%3Bfont-variant-alternates%3Anormal%3Bfont-feature-settings%3Anormal%3Btext-indent%3A0%3Btext-align%3Astart%3Btext-decoration%3Anone%3Btext-decoration-line%3Anone%3Btext-decoration-style%3Asolid%3Btext-decoration-color%3A%23000%3Bletter-spacing%3Anormal%3Bword-spacing%3Anormal%3Btext-transform%3Anone%3Bwriting-mode%3Alr-tb%3Bdirection%3Altr%3Btext-orientation%3Amixed%3Bdominant-baseline%3Aauto%3Bbaseline-shift%3Abaseline%3Btext-anchor%3Astart%3Bwhite-space%3Anormal%3Bshape-padding%3A0%3Bclip-rule%3Aevenodd%3Bdisplay%3Ainline%3Boverflow%3Avisible%3Bvisibility%3Avisible%3Bopacity%3A1%3Bisolation%3Aauto%3Bmix-blend-mode%3Anormal%3Bcolor-interpolation%3AsRGB%3Bcolor-interpolation-filters%3AlinearRGB%3Bsolid-color%3A%23000%3Bsolid-opacity%3A1%3Bvector-effect%3Anone%3Bfill%3A%23000%3Bfill-opacity%3A.4%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-linecap%3Abutt%3Bstroke-linejoin%3Amiter%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-dashoffset%3A0%3Bstroke-opacity%3A1%3Bcolor-rendering%3Aauto%3Bimage-rendering%3Aauto%3Bshape-rendering%3Aauto%3Btext-rendering%3Aauto%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-9.415-.316C-12.69-.338-15.37%202.14-15.39%205.207c-.017%202.716%201.326%204.041%202.78%205.477%201.013%201%202.081%202.055%202.78%203.67l.092.076a.34.34%200%200%200%20.225.086.34.34%200%200%200%20.227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6%201.78-2.64%202.814-3.634%201.473-1.414%202.847-2.733%202.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057%208.784c1.621.011%202.944-1.315%202.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945%201.315-2.955%202.96s1.295%202.989%202.916%203%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23e1e3e9%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-11.594%2015.465c-.27-.002-.492.297-.494.668l-.012%201.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23fff%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl.maplibregl-ctrl-attrib{padding:0 5px;background-color:hsla(0,0%,100%,.5);margin:0}@media screen{.maplibregl-ctrl-attrib.maplibregl-compact{min-height:20px;padding:2px 24px 2px 0;margin:10px;position:relative;background-color:#fff;color:#000;border-radius:12px;box-sizing:content-box}.maplibregl-ctrl-attrib.maplibregl-compact-show{padding:2px 28px 2px 8px;visibility:visible}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact-show,.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact-show{padding:2px 8px 2px 28px;border-radius:12px}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-inner{display:none}.maplibregl-ctrl-attrib-button{display:none;cursor:pointer;position:absolute;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20fill-rule%3D%22evenodd%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M4%2010a6%206%200%201%200%2012%200%206%206%200%201%200-12%200m5-3a1%201%200%201%200%202%200%201%201%200%201%200-2%200m0%203a1%201%200%201%201%202%200v3a1%201%200%201%201-2%200%22%2F%3E%3C%2Fsvg%3E");background-color:hsla(0,0%,100%,.5);width:24px;height:24px;box-sizing:border-box;border-radius:12px;outline:none;top:0;right:0;border:0}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;list-style:none}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button::-webkit-details-marker{display:none}.maplibregl-ctrl-bottom-left .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-top-left .maplibregl-ctrl-attrib-button{left:0}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-inner{display:block}.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-button{background-color:rgba(0,0,0,.05)}.maplibregl-ctrl-bottom-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;right:0}.maplibregl-ctrl-top-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{top:0;right:0}.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{top:0;left:0}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;left:0}}@media screen and (forced-colors:active){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22%23fff%22%20fill-rule%3D%22evenodd%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M4%2010a6%206%200%201%200%2012%200%206%206%200%201%200-12%200m5-3a1%201%200%201%200%202%200%201%201%200%201%200-2%200m0%203a1%201%200%201%201%202%200v3a1%201%200%201%201-2%200%22%2F%3E%3C%2Fsvg%3E")}}@media screen and (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20fill-rule%3D%22evenodd%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M4%2010a6%206%200%201%200%2012%200%206%206%200%201%200-12%200m5-3a1%201%200%201%200%202%200%201%201%200%201%200-2%200m0%203a1%201%200%201%201%202%200v3a1%201%200%201%201-2%200%22%2F%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl-attrib a{color:rgba(0,0,0,.75);text-decoration:none}.maplibregl-ctrl-attrib a:hover{color:inherit;text-decoration:underline}.maplibregl-attrib-empty{display:none}.maplibregl-ctrl-scale{background-color:hsla(0,0%,100%,.75);font-size:10px;white-space:nowrap;border-color:#333;border-style:none solid solid;border-width:medium 2px 2px;padding:0 5px;color:#333;box-sizing:border-box}.maplibregl-popup{position:absolute;top:0;left:0;display:flex;will-change:transform;pointer-events:none}.maplibregl-popup-anchor-top,.maplibregl-popup-anchor-top-left,.maplibregl-popup-anchor-top-right{flex-direction:column}.maplibregl-popup-anchor-bottom,.maplibregl-popup-anchor-bottom-left,.maplibregl-popup-anchor-bottom-right{flex-direction:column-reverse}.maplibregl-popup-anchor-left{flex-direction:row}.maplibregl-popup-anchor-right{flex-direction:row-reverse}.maplibregl-popup-tip{width:0;height:0;border:10px solid transparent;z-index:1}.maplibregl-popup-anchor-top .maplibregl-popup-tip{align-self:center;border-top:none;border-bottom-color:#fff}.maplibregl-popup-anchor-top-left .maplibregl-popup-tip{align-self:flex-start;border-top:none;border-left:none;border-bottom-color:#fff}.maplibregl-popup-anchor-top-right .maplibregl-popup-tip{align-self:flex-end;border-top:none;border-right:none;border-bottom-color:#fff}.maplibregl-popup-anchor-bottom .maplibregl-popup-tip{align-self:center;border-bottom:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip{align-self:flex-start;border-bottom:none;border-left:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip{align-self:flex-end;border-bottom:none;border-right:none;border-top-color:#fff}.maplibregl-popup-anchor-left .maplibregl-popup-tip{align-self:center;border-left:none;border-right-color:#fff}.maplibregl-popup-anchor-right .maplibregl-popup-tip{align-self:center;border-right:none;border-left-color:#fff}[dir=rtl] .maplibregl-popup-anchor-left{flex-direction:row-reverse}[dir=rtl] .maplibregl-popup-anchor-right{flex-direction:row}[dir=rtl] .maplibregl-popup-anchor-top-left .maplibregl-popup-tip{align-self:flex-end}[dir=rtl] .maplibregl-popup-anchor-top-right .maplibregl-popup-tip{align-self:flex-start}[dir=rtl] .maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip{align-self:flex-end}[dir=rtl] .maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip{align-self:flex-start}.maplibregl-popup-close-button{position:absolute;right:0;top:0;border:0;border-radius:0 3px 0 0;cursor:pointer;background-color:transparent}.maplibregl-popup-close-button:hover{background-color:rgba(0,0,0,.05)}.maplibregl-popup-content{position:relative;background:#fff;border-radius:3px;box-shadow:0 1px 2px rgba(0,0,0,.1);padding:15px 10px;pointer-events:auto}.maplibregl-popup-anchor-top-left .maplibregl-popup-content{border-top-left-radius:0}.maplibregl-popup-anchor-top-right .maplibregl-popup-content{border-top-right-radius:0}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-content{border-bottom-left-radius:0}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-content{border-bottom-right-radius:0}.maplibregl-popup-track-pointer{display:none}.maplibregl-popup-track-pointer *{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-map:hover .maplibregl-popup-track-pointer{display:flex}.maplibregl-map:active .maplibregl-popup-track-pointer{display:none}.maplibregl-marker{position:absolute;top:0;left:0;will-change:transform;transition:opacity .2s}.maplibregl-marker-draggable{cursor:grab}.maplibregl-user-location-dot,.maplibregl-user-location-dot:before{background-color:#1da1f2;width:15px;height:15px;border-radius:50%}.maplibregl-user-location-dot:before{content:"";position:absolute;animation:maplibregl-user-location-dot-pulse 2s infinite}.maplibregl-user-location-dot:after{border-radius:50%;border:2px solid #fff;content:"";height:19px;left:-2px;position:absolute;top:-2px;width:19px;box-sizing:border-box;box-shadow:0 0 3px rgba(0,0,0,.35)}@media (prefers-reduced-motion:reduce){.maplibregl-user-location-dot:before{animation:none}}@keyframes maplibregl-user-location-dot-pulse{0%{transform:scale(1);opacity:1}70%{transform:scale(3);opacity:0}to{transform:scale(1);opacity:0}}.maplibregl-user-location-dot-stale{background-color:#aaa}.maplibregl-user-location-dot-stale:after{display:none}.maplibregl-user-location-accuracy-circle{background-color:#1da1f233;width:1px;height:1px;border-radius:100%}.maplibregl-crosshair,.maplibregl-crosshair .maplibregl-interactive,.maplibregl-crosshair .maplibregl-interactive:active{cursor:crosshair}.maplibregl-boxzoom{position:absolute;top:0;left:0;width:0;height:0;background:#fff;border:2px dotted #202020;opacity:.5}.maplibregl-cooperative-gesture-screen{background:rgba(0,0,0,.4);position:absolute;inset:0;display:flex;justify-content:center;align-items:center;color:#fff;padding:1rem;font-size:1.4em;line-height:1.2;opacity:0;pointer-events:none;transition:opacity 1s ease 1s;z-index:99999}.maplibregl-cooperative-gesture-screen.maplibregl-show{opacity:1;transition:opacity .05s}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:none}@media (hover:none),(pointer:coarse){.maplibregl-cooperative-gesture-screen .maplibregl-desktop-message{display:none}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:block}}.maplibregl-pseudo-fullscreen{position:fixed!important;width:100%!important;height:100%!important;top:0!important;left:0!important;z-index:99999}',document.head.appendChild(e)}})()});var Tr=z(jr=>{"use strict";var i4=_s(),gE=Ap(),bE=K_(),PWe=wh().addStyleRule,xE=Mt(),Pme=On(),Rme=Ic(),Fme=xE.extendFlat,o4=xE.extendDeepAll;jr.modules={};jr.allCategories={};jr.allTypes=[];jr.subplotsRegistry={};jr.componentsRegistry={};jr.layoutArrayContainers=[];jr.layoutArrayRegexes=[];jr.traceLayoutAttributes={};jr.localeRegistry={};jr.apiMethodRegistry={};jr.collectableSubplotTypes=null;jr.register=function(r){if(jr.collectableSubplotTypes=null,r)r&&!Array.isArray(r)&&(r=[r]);else throw new Error("No argument passed to Plotly.register.");for(var t=0;t{"use strict";var Ome=_c().timeFormat,DE=Br(),l4=_s(),Ss=(Tc(),ze(Ac)).mod,Hc=(jt(),ze(Zt)),Oi=Hc.BADNUM,Kn=Hc.ONEDAY,Th=Hc.ONEHOUR,ks=Hc.ONEMIN,Oc=Hc.ONESEC,Mh=Hc.EPOCHJD,Il=Tr(),ME=_c().utcFormat,Hme=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\d)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d(:?\d\d)?)?)?)?)?)?\s*$/m,Ume=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\di?)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d(:?\d\d)?)?)?)?)?)?\s*$/m,kE=new Date().getFullYear()-70;function Bl(e){return e&&Il.componentsRegistry.calendars&&typeof e=="string"&&e!=="gregorian"}da.dateTick0=function(e,r){var t=Gme(e,!!r);if(r<2)return t;var a=da.dateTime2ms(t,e);return a+=Kn*(r-1),da.ms2DateTime(a,0,e)};function Gme(e,r){return Bl(e)?r?Il.getComponentMethod("calendars","CANONICAL_SUNDAY")[e]:Il.getComponentMethod("calendars","CANONICAL_TICK")[e]:r?"2000-01-02":"2000-01-01"}da.dfltRange=function(e){return Bl(e)?Il.getComponentMethod("calendars","DFLTRANGE")[e]:["2000-01-01","2001-01-01"]};da.isJSDate=function(e){return typeof e=="object"&&e!==null&&typeof e.getTime=="function"};var Ep,Pp;da.dateTime2ms=function(e,r){if(da.isJSDate(e)){var t=e.getTimezoneOffset()*ks,a=(e.getUTCMinutes()-e.getMinutes())*ks+(e.getUTCSeconds()-e.getSeconds())*Oc+(e.getUTCMilliseconds()-e.getMilliseconds());if(a){var n=3*ks;t=t-n/2+Ss(a-t+n/2,n)}return e=Number(e)-t,e>=Ep&&e<=Pp?e:Oi}if(typeof e!="string"&&typeof e!="number")return Oi;e=String(e);var i=Bl(r),o=e.charAt(0);i&&(o==="G"||o==="g")&&(e=e.slice(1),r="");var l=i&&r.slice(0,7)==="chinese",s=e.match(l?Ume:Hme);if(!s)return Oi;var u=s[1],f=s[3]||"1",c=Number(s[5]||1),v=Number(s[7]||0),d=Number(s[9]||0),p=Number(s[11]||0);if(i){if(u.length===2)return Oi;u=Number(u);var y;try{var m=Il.getComponentMethod("calendars","getCal")(r);if(l){var b=f.charAt(f.length-1)==="i";f=parseInt(f,10),y=m.newDate(u,m.toMonthIndex(u,f,b),c)}else y=m.newDate(u,Number(f),c)}catch(w){return Oi}return y?(y.toJD()-Mh)*Kn+v*Th+d*ks+p*Oc:Oi}u.length===2?u=(Number(u)+2e3-kE)%100+kE:u=Number(u),f-=1;var A=new Date(Date.UTC(2e3,f,c,v,d));return A.setUTCFullYear(u),A.getUTCMonth()!==f||A.getUTCDate()!==c?Oi:A.getTime()+p*Oc};Ep=da.MIN_MS=da.dateTime2ms("-9999");Pp=da.MAX_MS=da.dateTime2ms("9999-12-31 23:59:59.9999");da.isDateTime=function(e,r){return da.dateTime2ms(e,r)!==Oi};function Bc(e,r){return String(e+Math.pow(10,r)).slice(1)}var Dp=90*Kn,SE=3*Th,qE=5*ks;da.ms2DateTime=function(e,r,t){if(typeof e!="number"||!(e>=Ep&&e<=Pp))return Oi;r||(r=0);var a=Math.floor(Ss(e+.05,1)*10),n=Math.round(e-a/10),i,o,l,s,u,f;if(Bl(t)){var c=Math.floor(n/Kn)+Mh,v=Math.floor(Ss(e,Kn));try{i=Il.getComponentMethod("calendars","getCal")(t).fromJD(c).formatDate("yyyy-mm-dd")}catch(d){i=ME("G%Y-%m-%d")(new Date(n))}if(i.charAt(0)==="-")for(;i.length<11;)i="-0"+i.slice(1);else for(;i.length<10;)i="0"+i;o=r=Ep+Kn&&e<=Pp-Kn))return Oi;var r=Math.floor(Ss(e+.05,1)*10),t=new Date(Math.round(e-r/10)),a=Ome("%Y-%m-%d")(t),n=t.getHours(),i=t.getMinutes(),o=t.getSeconds(),l=t.getUTCMilliseconds()*10+r;return EE(a,n,i,o,l)};function EE(e,r,t,a,n){if((r||t||a||n)&&(e+=" "+Bc(r,2)+":"+Bc(t,2),(a||n)&&(e+=":"+Bc(a,2),n))){for(var i=4;n%10===0;)i-=1,n/=10;e+="."+Bc(n,i)}return e}da.cleanDate=function(e,r,t){if(e===Oi)return r;if(da.isJSDate(e)||typeof e=="number"&&isFinite(e)){if(Bl(t))return l4.error("JS Dates and milliseconds are incompatible with world calendars",e),r;if(e=da.ms2DateTimeLocal(+e),!e&&r!==void 0)return r}else if(!da.isDateTime(e,t))return l4.error("unrecognized date",e),r;return e};var Yme=/%\d?f/g,Vme=/%h/g,jme={1:"1",2:"1",3:"2",4:"2"};function LE(e,r,t,a){e=e.replace(Yme,function(i){var o=Math.min(+i.charAt(1)||6,6),l=(r/1e3%1+2).toFixed(o).slice(2).replace(/0+$/,"")||"0";return l});var n=new Date(Math.floor(r+.05));if(e=e.replace(Vme,function(){return jme[t("%q")(n)]}),Bl(a))try{e=Il.getComponentMethod("calendars","worldCalFmt")(e,r,a)}catch(i){return"Invalid"}return t(e)(n)}var Wme=[59,59.9,59.99,59.999,59.9999];function Xme(e,r){var t=Ss(e+.05,Kn),a=Bc(Math.floor(t/Th),2)+":"+Bc(Ss(Math.floor(t/ks),60),2);if(r!=="M"){DE(r)||(r=0);var n=Math.min(Ss(e/Oc,60),Wme[r]),i=(100+n).toFixed(r).slice(1);r>0&&(i=i.replace(/0+$/,"").replace(/[\.]$/,"")),a+=":"+i}return a}da.formatDate=function(e,r,t,a,n,i){if(n=Bl(n)&&n,!r)if(t==="y")r=i.year;else if(t==="m")r=i.month;else if(t==="d")r=i.dayMonth+` -`+i.year;else return Xme(e,t)+` -`+LE(i.dayMonthYear,e,a,n);return LE(r,e,a,n)};var CE=3*Kn;da.incrementMonth=function(e,r,t){t=Bl(t)&&t;var a=Ss(e,Kn);if(e=Math.round(e-a),t)try{var n=Math.round(e/Kn)+Mh,i=Il.getComponentMethod("calendars","getCal")(t),o=i.fromJD(n);return r%12?i.add(o,r,"m"):i.add(o,r/12,"y"),(o.toJD()-Mh)*Kn+a}catch(s){l4.error("invalid ms "+e+" in calendar "+t)}var l=new Date(e+CE);return l.setUTCMonth(l.getUTCMonth()+r)+a-CE};da.findExactDates=function(e,r){for(var t=0,a=0,n=0,i=0,o,l,s=Bl(r)&&Il.getComponentMethod("calendars","getCal")(r),u=0;u{"use strict";RE.exports=function(r){return r}});var f4=z(Ol=>{"use strict";var Zme=Br(),$me=_s(),Jme=s4(),Kme=(jt(),ze(Zt)).BADNUM,u4=1e-9;Ol.findBin=function(e,r,t){if(Zme(r.start))return t?Math.ceil((e-r.start)/r.size-u4)-1:Math.floor((e-r.start)/r.size+u4);var a=0,n=r.length,i=0,o=n>1?(r[n-1]-r[0])/(n-1):1,l,s;for(o>=0?s=t?Qme:eye:s=t?tye:rye,e+=o*u4*(t?-1:1)*(o>=0?1:-1);a90&&$me.log("Long binary search..."),a-1};function Qme(e,r){return er}function tye(e,r){return e>=r}Ol.sorterAsc=function(e,r){return e-r};Ol.sorterDes=function(e,r){return r-e};Ol.distinctVals=function(e){var r=e.slice();r.sort(Ol.sorterAsc);var t;for(t=r.length-1;t>-1&&r[t]===Kme;t--);for(var a=r[t]-r[0]||1,n=a/(t||1)/1e4,i=[],o,l=0;l<=t;l++){var s=r[l],u=s-o;o===void 0?(i.push(s),o=s):u>n&&(a=Math.min(a,u),i.push(s),o=s)}return{vals:i,minDiff:a}};Ol.roundUp=function(e,r,t){for(var a=0,n=r.length-1,i,o=0,l=t?0:1,s=t?1:0,u=t?Math.ceil:Math.floor;a0&&(a=1),t&&a)return e.sort(r)}return a?e:e.reverse()};Ol.findIndexOfMin=function(e,r){r=r||Jme;for(var t=1/0,a,n=0;nnye});function aye(e){return Object.keys(e).sort()}var nye,v4=St(()=>{"use strict";nye=aye});var FE=z(pa=>{"use strict";var kh=Br(),iye=Zn().isArrayOrTypedArray;pa.aggNums=function(e,r,t,a){var n,i;if((!a||a>t.length)&&(a=t.length),kh(r)||(r=!1),iye(t[0])){for(i=new Array(a),n=0;ne.length-1)return e[e.length-1];var t=r%1;return t*e[Math.ceil(r)]+(1-t)*e[Math.floor(r)]}});var OE=z((BWe,BE)=>{"use strict";var zE=(Tc(),ze(Ac)),h4=zE.mod,oye=zE.modHalf,Sh=Math.PI,qs=2*Sh;function lye(e){return e/180*Sh}function sye(e){return e/Sh*180}function d4(e){return Math.abs(e[1]-e[0])>qs-1e-14}function NE(e,r){return oye(r-e,qs)}function uye(e,r){return Math.abs(NE(e,r))}function IE(e,r){if(d4(r))return!0;var t,a;r[0]a&&(a+=qs);var n=h4(e,qs),i=n+qs;return n>=t&&n<=a||i>=t&&i<=a}function fye(e,r,t,a){if(!IE(r,a))return!1;var n,i;return t[0]=n&&e<=i}function p4(e,r,t,a,n,i,o){n=n||0,i=i||0;var l=d4([t,a]),s,u,f,c,v;l?(s=0,u=Sh,f=qs):t{"use strict";Yu.isLeftAnchor=function(r){return r.xanchor==="left"||r.xanchor==="auto"&&r.x<=1/3};Yu.isCenterAnchor=function(r){return r.xanchor==="center"||r.xanchor==="auto"&&r.x>1/3&&r.x<2/3};Yu.isRightAnchor=function(r){return r.xanchor==="right"||r.xanchor==="auto"&&r.x>=2/3};Yu.isTopAnchor=function(r){return r.yanchor==="top"||r.yanchor==="auto"&&r.y>=2/3};Yu.isMiddleAnchor=function(r){return r.yanchor==="middle"||r.yanchor==="auto"&&r.y>1/3&&r.y<2/3};Yu.isBottomAnchor=function(r){return r.yanchor==="bottom"||r.yanchor==="auto"&&r.y<=1/3}});var YE=z(Vu=>{"use strict";var m4=(Tc(),ze(Ac)).mod;Vu.segmentsIntersect=GE;function GE(e,r,t,a,n,i,o,l){var s=t-e,u=n-e,f=o-n,c=a-r,v=i-r,d=l-i,p=s*d-f*c;if(p===0)return null;var y=(u*d-f*v)/p,m=(u*c-s*v)/p;return m<0||m>1||y<0||y>1?null:{x:e+s*y,y:r+c*y}}Vu.segmentDistance=function(r,t,a,n,i,o,l,s){if(GE(r,t,a,n,i,o,l,s))return 0;var u=a-r,f=n-t,c=l-i,v=s-o,d=u*u+f*f,p=c*c+v*v,y=Math.min(Rp(u,f,d,i-r,o-t),Rp(u,f,d,l-r,s-t),Rp(c,v,p,r-i,t-o),Rp(c,v,p,a-i,n-o));return Math.sqrt(y)};function Rp(e,r,t,a,n){var i=a*e+n*r;if(i<0)return a*a+n*n;if(i>t){var o=a-e,l=n-r;return o*o+l*l}else{var s=a*r-n*e;return s*s/t}}var Fp,y4,UE;Vu.getTextLocation=function(r,t,a,n){if((r!==y4||n!==UE)&&(Fp={},y4=r,UE=n),Fp[a])return Fp[a];var i=r.getPointAtLength(m4(a-n/2,t)),o=r.getPointAtLength(m4(a+n/2,t)),l=Math.atan((o.y-i.y)/(o.x-i.x)),s=r.getPointAtLength(m4(a,t)),u=(s.x*4+i.x+o.x)/6,f=(s.y*4+i.y+o.y)/6,c={x:u,y:f,theta:l};return Fp[a]=c,c};Vu.clearLocationCache=function(){y4=null};Vu.getVisibleSegment=function(r,t,a){var n=t.left,i=t.right,o=t.top,l=t.bottom,s=0,u=r.getTotalLength(),f=u,c,v;function d(y){var m=r.getPointAtLength(y);y===0?c=m:y===u&&(v=m);var b=m.xi?m.x-i:0,A=m.yl?m.y-l:0;return Math.sqrt(b*b+A*A)}for(var p=d(s);p;){if(s+=p+a,s>f)return;p=d(s)}for(p=d(f);p;){if(f-=p+a,s>f)return;p=d(f)}return{min:s,max:f,len:f-s,total:u,isClosed:s===0&&f===u&&Math.abs(c.x-v.x)<.1&&Math.abs(c.y-v.y)<.1}};Vu.findPointOnPath=function(r,t,a,n){n=n||{};for(var i=n.pathLength||r.getTotalLength(),o=n.tolerance||.001,l=n.iterationLimit||30,s=r.getPointAtLength(0)[a]>r.getPointAtLength(i)[a]?-1:1,u=0,f=0,c=i,v,d,p;u0?c=v:f=v,u++}return d}});var zp=z(qh=>{"use strict";var Hl={};qh.throttle=function(r,t,a){var n=Hl[r],i=Date.now();if(!n){for(var o in Hl)Hl[o].tsn.ts+t){l();return}n.timer=setTimeout(function(){l(),n.timer=null},t)};qh.done=function(e){var r=Hl[e];return!r||!r.timer?Promise.resolve():new Promise(function(t){var a=r.onDone;r.onDone=function(){a&&a(),t(),r.onDone=null}})};qh.clear=function(e){if(e)VE(Hl[e]),delete Hl[e];else for(var r in Hl)qh.clear(r)};function VE(e){e&&e.timer!==null&&(clearTimeout(e.timer),e.timer=null)}});var WE=z((GWe,jE)=>{"use strict";jE.exports=function(r){r._clearResponsive&&(r._clearResponsive(),delete r._clearResponsive)}});var XE=z((YWe,Np)=>{"use strict";Np.exports=g4;Np.exports.isMobile=g4;Np.exports.default=g4;var dye=/(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|redmi|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,pye=/CrOS/,mye=/android|ipad|playbook|silk/i;function g4(e){e||(e={});let r=e.ua;if(!r&&typeof navigator!="undefined"&&(r=navigator.userAgent),r&&r.headers&&typeof r.headers["user-agent"]=="string"&&(r=r.headers["user-agent"]),typeof r!="string")return!1;let t=dye.test(r)&&!pye.test(r)||!!e.tablet&&mye.test(r);return!t&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&r.indexOf("Macintosh")!==-1&&r.indexOf("Safari")!==-1&&(t=!0),t}});var $E=z((VWe,ZE)=>{"use strict";var yye=Br(),gye=XE();ZE.exports=function(r){var t;if(r&&r.hasOwnProperty("userAgent")?t=r.userAgent:t=bye(),typeof t!="string")return!0;var a=gye({ua:{headers:{"user-agent":t}},tablet:!0,featureDetect:!1});if(!a)for(var n=t.split(" "),i=1;i-1;l--){var s=n[l];if(s.slice(0,8)==="Version/"){var u=s.slice(8).split(".")[0];if(yye(u)&&(u=+u),u>=13)return!0}}}return a};function bye(){var e;return typeof navigator!="undefined"&&(e=navigator.userAgent),e&&e.headers&&typeof e.headers["user-agent"]=="string"&&(e=e.headers["user-agent"]),e}});var KE=z((jWe,JE)=>{"use strict";var xye=Pr();JE.exports=function(r,t,a){var n=r.selectAll("g."+a.replace(/\s/g,".")).data(t,function(o){return o[0].trace.uid});n.exit().remove(),n.enter().append("g").attr("class",a),n.order();var i=r.classed("rangeplot")?"nodeRangePlot3":"node3";return n.each(function(o){o[0][i]=xye.select(this)}),n}});var eP=z((WWe,QE)=>{"use strict";var _ye=Tr();QE.exports=function(r,t){for(var a=r._context.locale,n=0;n<2;n++){for(var i=r._context.locales,o=0;o<2;o++){var l=(i[a]||{}).dictionary;if(l){var s=l[t];if(s)return s}i=_ye.localeRegistry}var u=a.split("-")[0];if(u===a)break;a=u}return t}});var tP=z((XWe,rP)=>{"use strict";rP.exports=function(r){for(var t={},a=[],n=0,i=0;i{"use strict";aP.exports=function(r){for(var t=Tye(r)?Aye:wye,a=[],n=0;n{"use strict";iP.exports=function(r,t){if(!t)return r;var a=1/Math.abs(t),n=a>1?(a*r+a*t)/a:r+t,i=String(n).length;if(i>16){var o=String(t).length,l=String(r).length;if(i>=l+o){var s=parseFloat(n).toPrecision(12);s.indexOf("e+")===-1&&(n=+s)}}return n}});var sP={};qt(sP,{default:()=>Sye});function kye(e){return typeof e=="string"&&(e=e.replace(Mye,"")),(0,lP.default)(e)?Number(e):void 0}var lP,Mye,Sye,uP=St(()=>{"use strict";lP=xc(Br());jt();Mye=/^['"%,$#\s']+|[, ]|['"%,$#\s']+$/g;Sye=kye});var vP=z((KWe,cP)=>{"use strict";var qye=/<[^>]*>/g,Lye=/[\p{S}\p{P}]/gu,Cye=/[\p{Cc}\p{Cf}\uFE00-\uFE0F\u20E3]/gu,Dye=/�/g,Eye=/\s+/g,Ip="-",fP=Ip.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),Pye=new RegExp(fP+"{3,}","g"),Rye=new RegExp(fP+"$","g"),Fye=60;function zye(e){return typeof e.toWellFormed=="function"?e.toWellFormed():new TextDecoder().decode(new TextEncoder().encode(e))}cP.exports=function(r,t=Fye){var a=zye(r!=null?r:"").replace(Dye,"").replace(qye," ").replace(Lye,n=>n===Ip?n:"").toLowerCase().trim().replace(Eye,Ip).replace(Cye,"").replace(Pye,Ip);return a.length<=t?a:Array.from(a).slice(0,t).join("").replace(Rye,"")}});var ke=z((QWe,TP)=>{"use strict";var Lh=Pr(),Nye=_c().utcFormat,Iye=f5().format,gP=Br(),bP=(jt(),ze(Zt)),xP=bP.FP_SAFE,Bye=-xP,hP=bP.BADNUM,he={};TP.exports=he;he.adjustFormat=function(r){if(!r||/^\d[.]\df/.test(r)||/[.]\d%/.test(r))return r;if(r==="0.f")return"~f";if(/^\d%/.test(r))return"~%";if(/^\ds/.test(r))return"~s";var t=(r.match(/^[+\-( ]?/)||[""])[0],a=r.slice(t.length);return!/^[~,.0$#]/.test(a)&&/[&fps]/.test(a)?t+"~"+a:r};var dP={};he.warnBadFormat=function(e){var r=String(e);dP[r]||(dP[r]=1,he.warn('encountered bad format: "'+r+'"'))};he.noFormat=function(e){return String(e)};he.numberFormat=function(e){var r;try{r=Iye(he.adjustFormat(e))}catch(t){return he.warnBadFormat(e),he.noFormat}return r};he.nestedProperty=G1();he.keyedContainer=lq();he.relativeAttr=uq();he.isPlainObject=Du();he.toLogRange=V1();he.relinkPrivateKeys=hq();var Ls=Zn();he.isArrayBuffer=Ls.isArrayBuffer;he.isTypedArray=Ls.isTypedArray;he.isArrayOrTypedArray=Ls.isArrayOrTypedArray;he.isArray1D=Ls.isArray1D;he.ensureArray=Ls.ensureArray;he.concat=Ls.concat;he.maxRowLength=Ls.maxRowLength;he.minRowLength=Ls.minRowLength;var _P=(Tc(),ze(Ac));he.mod=_P.mod;he.modHalf=_P.modHalf;var Cs=RC();he.valObjectMeta=Cs.valObjectMeta;he.coerce=Cs.coerce;he.coerce2=Cs.coerce2;he.coerceFont=Cs.coerceFont;he.coercePattern=Cs.coercePattern;he.coerceHoverinfo=Cs.coerceHoverinfo;he.coerceSelectionMarkerOpacity=Cs.coerceSelectionMarkerOpacity;he.validate=Cs.validate;var pi=PE();he.dateTime2ms=pi.dateTime2ms;he.isDateTime=pi.isDateTime;he.ms2DateTime=pi.ms2DateTime;he.ms2DateTimeLocal=pi.ms2DateTimeLocal;he.cleanDate=pi.cleanDate;he.isJSDate=pi.isJSDate;he.formatDate=pi.formatDate;he.incrementMonth=pi.incrementMonth;he.dateTick0=pi.dateTick0;he.dfltRange=pi.dfltRange;he.findExactDates=pi.findExactDates;he.MIN_MS=pi.MIN_MS;he.MAX_MS=pi.MAX_MS;var ju=f4();he.findBin=ju.findBin;he.sorterAsc=ju.sorterAsc;he.sorterDes=ju.sorterDes;he.distinctVals=ju.distinctVals;he.roundUp=ju.roundUp;he.sort=ju.sort;he.findIndexOfMin=ju.findIndexOfMin;he.sortObjectKeys=(v4(),ze(c4)).default;var Ul=FE();he.aggNums=Ul.aggNums;he.len=Ul.len;he.mean=Ul.mean;he.geometricMean=Ul.geometricMean;he.median=Ul.median;he.midRange=Ul.midRange;he.variance=Ul.variance;he.stdev=Ul.stdev;he.interp=Ul.interp;var Lo=Tp();he.init2dArray=Lo.init2dArray;he.transposeRagged=Lo.transposeRagged;he.dot=Lo.dot;he.translationMatrix=Lo.translationMatrix;he.rotationMatrix=Lo.rotationMatrix;he.rotationXYMatrix=Lo.rotationXYMatrix;he.apply3DTransform=Lo.apply3DTransform;he.apply2DTransform=Lo.apply2DTransform;he.apply2DTransform2=Lo.apply2DTransform2;he.convertCssMatrix=Lo.convertCssMatrix;he.inverseTransformMatrix=Lo.inverseTransformMatrix;var nl=OE();he.deg2rad=nl.deg2rad;he.rad2deg=nl.rad2deg;he.angleDelta=nl.angleDelta;he.angleDist=nl.angleDist;he.isFullCircle=nl.isFullCircle;he.isAngleInsideSector=nl.isAngleInsideSector;he.isPtInsideSector=nl.isPtInsideSector;he.pathArc=nl.pathArc;he.pathSector=nl.pathSector;he.pathAnnulus=nl.pathAnnulus;var Gc=HE();he.isLeftAnchor=Gc.isLeftAnchor;he.isCenterAnchor=Gc.isCenterAnchor;he.isRightAnchor=Gc.isRightAnchor;he.isTopAnchor=Gc.isTopAnchor;he.isMiddleAnchor=Gc.isMiddleAnchor;he.isBottomAnchor=Gc.isBottomAnchor;var Yc=YE();he.segmentsIntersect=Yc.segmentsIntersect;he.segmentDistance=Yc.segmentDistance;he.getTextLocation=Yc.getTextLocation;he.clearLocationCache=Yc.clearLocationCache;he.getVisibleSegment=Yc.getVisibleSegment;he.findPointOnPath=Yc.findPointOnPath;var Hp=Mt();he.extendFlat=Hp.extendFlat;he.extendDeep=Hp.extendDeep;he.extendDeepAll=Hp.extendDeepAll;he.extendDeepNoArrays=Hp.extendDeepNoArrays;var b4=_s();he.log=b4.log;he.warn=b4.warn;he.error=b4.error;var Oye=(Fc(),ze(_h));he.counterRegex=Oye.counter;var x4=zp();he.throttle=x4.throttle;he.throttleDone=x4.done;he.clearThrottle=x4.clear;var Co=wh();he.getGraphDiv=Co.getGraphDiv;he.isPlotDiv=Co.isPlotDiv;he.removeElement=Co.removeElement;he.addStyleRule=Co.addStyleRule;he.addRelatedStyleRule=Co.addRelatedStyleRule;he.deleteRelatedStyleRule=Co.deleteRelatedStyleRule;he.setStyleOnHover=Co.setStyleOnHover;he.getFullTransformMatrix=Co.getFullTransformMatrix;he.getElementTransformMatrix=Co.getElementTransformMatrix;he.getElementAndAncestors=Co.getElementAndAncestors;he.equalDomRects=Co.equalDomRects;he.clearResponsive=WE();he.preserveDrawingBuffer=$E();he.makeTraceGroups=KE();he._=eP();he.notifier=G_();he.filterUnique=tP();he.filterVisible=nP();he.pushUnique=K_();he.increment=oP();he.cleanNumber=(uP(),ze(sP)).default;he.slugify=vP();he.ensureNumber=function(r){return gP(r)?(r=Number(r),r>xP||r=r?!1:gP(e)&&e>=0&&e%1===0};he.noop=Ap();he.identity=s4();he.repeat=function(e,r){for(var t=new Array(r),a=0;at?Math.max(t,Math.min(r,e)):Math.max(r,Math.min(t,e))};he.bBoxIntersect=function(e,r,t){return t=t||0,e.left<=r.right+t&&r.left<=e.right+t&&e.top<=r.bottom+t&&r.top<=e.bottom+t};he.simpleMap=function(e,r,t,a,n){for(var i=e.length,o=new Array(i),l=0;l=Math.pow(2,t)?n>10?(he.warn("randstr failed uniqueness"),o):e(r,t,a,(n||0)+1):o};he.OptionControl=function(e,r){e||(e={}),r||(r="opt");var t={};return t.optionList=[],t._newoption=function(a){a[r]=e,t[a.name]=a,t.optionList.push(a)},t["_"+r]=e,t};he.smooth=function(e,r){if(r=Math.round(r)||0,r<2)return e;var t=e.length,a=2*t,n=2*r-1,i=new Array(n),o=new Array(t),l,s,u,f;for(l=0;l=a&&(u-=a*Math.floor(u/a)),u<0?u=-1-u:u>=t&&(u=a-1-u),f+=e[u]*i[s];o[l]=f}return o};he.syncOrAsync=function(e,r,t){var a,n;function i(){return he.syncOrAsync(e,r,t)}for(;e.length;)if(n=e.splice(0,1)[0],a=n(r),a&&a.then)return a.then(i);return t&&t(r)};he.stripTrailingSlash=function(e){return e.slice(-1)==="/"?e.slice(0,-1):e};he.noneOrAll=function(e,r,t){if(e){var a=!1,n=!0,i,o;for(i=0;i0?n:0})};he.fillArray=function(e,r,t,a){if(a=a||he.identity,he.isArrayOrTypedArray(e))for(var n=0;nGye.test(window.navigator.userAgent);var Yye=/Firefox\/(\d+)\.\d+/;he.getFirefoxVersion=function(){var e=Yye.exec(window.navigator.userAgent);if(e&&e.length===2){var r=parseInt(e[1]);if(!isNaN(r))return r}return null};he.isD3Selection=function(e){return e instanceof Lh.selection};he.ensureSingle=function(e,r,t,a){var n=e.select(r+(t?"."+t:""));if(n.size())return n;var i=e.append(r);return t&&i.classed(t,!0),a&&i.call(a),i};he.ensureSingleById=function(e,r,t,a){var n=e.select(r+"#"+t);if(n.size())return n;var i=e.append(r).attr("id",t);return a&&i.call(a),i};he.objectFromPath=function(e,r){for(var t=e.split("."),a,n=a={},i=0;i1?n+o[1]:"";if(i&&(o.length>1||l.length>4||t))for(;a.test(l);)l=l.replace(a,"$1"+i+"$2");return l+s};he.TEMPLATE_STRING_REGEX=/%{([^\s%{}:]*)([:|\|][^}]*)?}/g;var AP=/^\w*$/;he.templateString=function(e,r){var t={};return e.replace(he.TEMPLATE_STRING_REGEX,function(a,n){var i;return AP.test(n)?i=r[n]:(t[n]=t[n]||he.nestedProperty(r,n).get,i=t[n](!0)),i!==void 0?i:""})};var Wye={max:10,count:0,name:"hovertemplate"};he.hovertemplateString=e=>_4(Vt(At({},e),{opts:Wye}));var Xye={max:10,count:0,name:"texttemplate"};he.texttemplateString=e=>_4(Vt(At({},e),{opts:Xye}));var Zye=/^(\S+)([\*\/])(-?\d+(\.\d+)?)$/;function $ye(e){var r=e.match(Zye);return r?{key:r[1],op:r[2],number:Number(r[3])}:{key:e,op:null,number:null}}var Jye={max:10,count:0,name:"texttemplate",parseMultDiv:!0};he.texttemplateStringForShapes=e=>_4(Vt(At({},e),{opts:Jye}));var pP=/^[:|\|]/;function _4({data:e=[],locale:r,fallback:t,labels:a={},opts:n,template:i}){return i.replace(he.TEMPLATE_STRING_REGEX,(o,l,s)=>{let u=["xother","yother"].includes(l),f=["_xother","_yother"].includes(l),c=["_xother_","_yother_"].includes(l),v=["xother_","yother_"].includes(l),d=u||f||v||c;(f||c)&&(l=l.substring(1)),(v||c)&&(l=l.substring(0,l.length-1));let p=null,y=null;if(n.parseMultDiv){var m=$ye(l);l=m.key,p=m.op,y=m.number}let b;if(d){if(a[l]===void 0)return"";b=a[l]}else for(let _ of e)if(_){if(_.hasOwnProperty(l)){b=_[l];break}if(AP.test(l)||(b=he.nestedProperty(_,l).get(!0)),b!==void 0)break}if(b===void 0){let{count:_,max:k,name:T}=n,q=t===!1?o:t;return _=Op&&o<=mP,u=l>=Op&&l<=mP;if(s&&(a=10*a+o-Op),u&&(n=10*n+l-Op),!s||!u){if(a!==n)return a-n;if(o!==l)return o-l}}return n-a};var Uc=2e9;he.seedPseudoRandom=function(){Uc=2e9};he.pseudoRandom=function(){var e=Uc;return Uc=(69069*Uc+1)%4294967296,Math.abs(Uc-e)<429496729?he.pseudoRandom():Uc/4294967296};he.fillText=function(e,r,t){var a=Array.isArray(t)?function(o){t.push(o)}:function(o){t.text=o},n=he.extractOption(e,r,"htx","hovertext");if(he.isValidTextValue(n))return a(n);var i=he.extractOption(e,r,"tx","text");if(he.isValidTextValue(i))return a(i)};he.isValidTextValue=function(e){return e||e===0};he.formatPercent=function(e,r){r=r||0;for(var t=(Math.round(100*e*Math.pow(10,r))*Math.pow(.1,r)).toFixed(r)+"%",a=0;a1&&(u=1):u=0,he.strTranslate(n-u*(t+o),i-u*(a+l))+he.strScale(u)+(s?"rotate("+s+(r?"":" "+t+" "+a)+")":"")};he.setTransormAndDisplay=function(e,r){e.attr("transform",he.getTextTransform(r)),e.style("display",r.scale?null:"none")};he.ensureUniformFontSize=function(e,r){var t=he.extendFlat({},r);return t.size=Math.max(r.size,e._fullLayout.uniformtext.minsize||0),t};he.join2=function(e,r,t){var a=e.length;return a>1?e.slice(0,-1).join(r)+t+e[a-1]:e.join(r)};he.bigFont=function(e){return Math.round(1.2*e)};var yP=he.getFirefoxVersion(),Kye=yP!==null&&yP<86;he.getPositionFromD3Event=function(){return Kye?[Lh.event.layerX,Lh.event.layerY]:[Lh.event.offsetX,Lh.event.offsetY]}});var SP=z(()=>{"use strict";var Qye=ke(),MP={"X,X div":'direction:ltr;font-family:"Open Sans",verdana,arial,sans-serif;margin:0;padding:0;border: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 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:focus-within .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-group a":"display:grid;place-content:center;","X .modebar-btn":"position:relative;font-size:16px;padding:3px 4px;height:22px;cursor:pointer;line-height:normal;box-sizing:border-box;border:none;background:rgba(0,0,0,0);","X .modebar-btn svg":"position:relative;","X .modebar-btn:focus-visible":"outline:1px solid #000;outline-offset:1px;border-radius:3px;","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;","X .plotly-cloud-dialog":'font-family:"Open Sans",verdana,arial,sans-serif;position:absolute;top:0;left:0;width:100%;height:100%;z-index:1001;display:flex;align-items:center;justify-content:center;background-color:rgba(0,0,0,.4);',"X .plotly-cloud-dialog .plotly-cloud-dialog-box":"box-sizing:border-box;min-width:300px;max-width:420px;padding:20px 24px;background-color:#fff;border:1px solid #e0e2e5;border-radius:4px;box-shadow:0 4px 16px rgba(0,0,0,.25);font-size:13px;color:#2a3f5f;","X .plotly-cloud-dialog .plotly-cloud-dialog-title":"font-size:16px;font-weight:bold;margin-bottom:12px;","X .plotly-cloud-dialog .plotly-cloud-dialog-message":"line-height:1.5;overflow-wrap:break-word;word-wrap:break-word;","X .plotly-cloud-dialog .plotly-cloud-dialog-message--hostname":"font-weight:bold;text-decoration:underline;","X .plotly-cloud-dialog .plotly-cloud-dialog-message--account":"margin-top:16px;padding:8px;border-radius:3px;font-size:.9em;background-color:#edf1f8;","X .plotly-cloud-dialog .plotly-cloud-dialog-buttons":"display:flex;justify-content:flex-end;margin-top:20px;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn":"font-family:inherit;font-size:13px;padding:7px 16px;margin-left:8px;border-radius:3px;border:1px solid rgba(0,0,0,0);cursor:pointer;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn:focus-visible":"outline:2px solid #447adb;outline-offset:1px;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn--cancel":"background-color:#f3f3f3;margin-left:auto;color:#777;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn--cancel:hover":"background-color:#e0e2e5;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn--confirm":"background-color:#447adb;color:#fff;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn--confirm:hover":"background-color:#1d3b84;",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(w4 in MP)kP=w4.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier"),Qye.addStyleRule(kP,MP[w4]);var kP,w4});var A4=z((aXe,qP)=>{qP.exports=!0});var M4=z((nXe,LP)=>{"use strict";var ege=A4(),T4;typeof window.matchMedia=="function"?T4=!window.matchMedia("(hover: none)").matches:T4=ege;LP.exports=T4});var Wu=z((iXe,k4)=>{"use strict";var Vc=typeof Reflect=="object"?Reflect:null,CP=Vc&&typeof Vc.apply=="function"?Vc.apply:function(r,t,a){return Function.prototype.apply.call(r,t,a)},Up;Vc&&typeof Vc.ownKeys=="function"?Up=Vc.ownKeys:Object.getOwnPropertySymbols?Up=function(r){return Object.getOwnPropertyNames(r).concat(Object.getOwnPropertySymbols(r))}:Up=function(r){return Object.getOwnPropertyNames(r)};function rge(e){console&&console.warn&&console.warn(e)}var EP=Number.isNaN||function(r){return r!==r};function Ot(){Ot.init.call(this)}k4.exports=Ot;k4.exports.once=ige;Ot.EventEmitter=Ot;Ot.prototype._events=void 0;Ot.prototype._eventsCount=0;Ot.prototype._maxListeners=void 0;var DP=10;function Gp(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(Ot,"defaultMaxListeners",{enumerable:!0,get:function(){return DP},set:function(e){if(typeof e!="number"||e<0||EP(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");DP=e}});Ot.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};Ot.prototype.setMaxListeners=function(r){if(typeof r!="number"||r<0||EP(r))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+r+".");return this._maxListeners=r,this};function PP(e){return e._maxListeners===void 0?Ot.defaultMaxListeners:e._maxListeners}Ot.prototype.getMaxListeners=function(){return PP(this)};Ot.prototype.emit=function(r){for(var t=[],a=1;a0&&(o=t[0]),o instanceof Error)throw o;var l=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw l.context=o,l}var s=i[r];if(s===void 0)return!1;if(typeof s=="function")CP(s,this,t);else for(var u=s.length,f=IP(s,u),a=0;a0&&o.length>n&&!o.warned){o.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(r)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=r,l.count=o.length,rge(l)}return e}Ot.prototype.addListener=function(r,t){return RP(this,r,t,!1)};Ot.prototype.on=Ot.prototype.addListener;Ot.prototype.prependListener=function(r,t){return RP(this,r,t,!0)};function tge(){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 FP(e,r,t){var a={fired:!1,wrapFn:void 0,target:e,type:r,listener:t},n=tge.bind(a);return n.listener=t,a.wrapFn=n,n}Ot.prototype.once=function(r,t){return Gp(t),this.on(r,FP(this,r,t)),this};Ot.prototype.prependOnceListener=function(r,t){return Gp(t),this.prependListener(r,FP(this,r,t)),this};Ot.prototype.removeListener=function(r,t){var a,n,i,o,l;if(Gp(t),n=this._events,n===void 0)return this;if(a=n[r],a===void 0)return this;if(a===t||a.listener===t)--this._eventsCount===0?this._events=Object.create(null):(delete n[r],n.removeListener&&this.emit("removeListener",r,a.listener||t));else if(typeof a!="function"){for(i=-1,o=a.length-1;o>=0;o--)if(a[o]===t||a[o].listener===t){l=a[o].listener,i=o;break}if(i<0)return this;i===0?a.shift():age(a,i),a.length===1&&(n[r]=a[0]),n.removeListener!==void 0&&this.emit("removeListener",r,l||t)}return this};Ot.prototype.off=Ot.prototype.removeListener;Ot.prototype.removeAllListeners=function(r){var t,a,n;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[r]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete a[r]),this;if(arguments.length===0){var i=Object.keys(a),o;for(n=0;n=0;n--)this.removeListener(r,t[n]);return this};function zP(e,r,t){var a=e._events;if(a===void 0)return[];var n=a[r];return n===void 0?[]:typeof n=="function"?t?[n.listener||n]:[n]:t?nge(n):IP(n,n.length)}Ot.prototype.listeners=function(r){return zP(this,r,!0)};Ot.prototype.rawListeners=function(r){return zP(this,r,!1)};Ot.listenerCount=function(e,r){return typeof e.listenerCount=="function"?e.listenerCount(r):NP.call(e,r)};Ot.prototype.listenerCount=NP;function NP(e){var r=this._events;if(r!==void 0){var t=r[e];if(typeof t=="function")return 1;if(t!==void 0)return t.length}return 0}Ot.prototype.eventNames=function(){return this._eventsCount>0?Up(this._events):[]};function IP(e,r){for(var t=new Array(r),a=0;a{"use strict";var S4=Wu().EventEmitter,lge={init:function(e){if(e._ev instanceof S4)return e;var r=new S4,t=new S4;return e._ev=r,e._internalEv=t,e.on=r.on.bind(r),e.once=r.once.bind(r),e.removeListener=r.removeListener.bind(r),e.removeAllListeners=r.removeAllListeners.bind(r),e._internalOn=t.on.bind(t),e._internalOnce=t.once.bind(t),e._removeInternalListener=t.removeListener.bind(t),e._removeAllInternalListeners=t.removeAllListeners.bind(t),e.emit=function(a,n){r.emit(a,n),t.emit(a,n)},typeof e.addEventListener=="function"&&e.addEventListener("wheel",()=>{},{passive:!0}),e},triggerHandler:function(e,r,t){var a,n=e._ev;if(!n)return;var i=n._events[r];if(!i)return;function o(s){if(s.listener){if(n.removeListener(r,s.listener),!s.fired)return s.fired=!0,s.listener.apply(n,[t])}else return s.apply(n,[t])}i=Array.isArray(i)?i:[i];var l;for(l=0;l{"use strict";var HP=ke(),sge=xs().dfltConfig;function uge(e,r){for(var t=[],a,n=0;nsge.queueLength&&(e.undoQueue.queue.shift(),e.undoQueue.index--)};Gl.startSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!0,e.undoQueue.beginSequence=!0};Gl.stopSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!1,e.undoQueue.beginSequence=!1};Gl.undo=function(r){var t,a;if(!(r.undoQueue===void 0||isNaN(r.undoQueue.index)||r.undoQueue.index<=0)){for(r.undoQueue.index--,t=r.undoQueue.queue[r.undoQueue.index],r.undoQueue.inSequence=!0,a=0;a=r.undoQueue.queue.length)){for(t=r.undoQueue.queue[r.undoQueue.index],r.undoQueue.inSequence=!0,a=0;a{"use strict";YP.exports={_isLinkedToArray:"frames_entry",group:{valType:"string"},name:{valType:"string"},traces:{valType:"any"},baseframe:{valType:"string"},data:{valType:"any"},layout:{valType:"any"}}});var Xc=z(Da=>{"use strict";var Hi=Tr(),Dh=ke(),Vp=On(),L4=Ic(),fge=q4(),cge=Ah(),vge=xs().configAttributes,VP=qo(),Do=Dh.extendDeepAll,jc=Dh.isPlainObject,hge=Dh.isArrayOrTypedArray,jp=Dh.nestedProperty,dge=Dh.valObjectMeta,C4="_isSubplotObj",Wp="_isLinkedToArray",pge="_arrayAttrRegexps",WP="_deprecated",D4=[C4,Wp,pge,WP];Da.IS_SUBPLOT_OBJ=C4;Da.IS_LINKED_TO_ARRAY=Wp;Da.DEPRECATED=WP;Da.UNDERSCORE_ATTRS=D4;Da.get=function(){var e={};return Hi.allTypes.forEach(function(r){e[r]=yge(r)}),{defs:{valObjects:dge,metaKeys:D4.concat(["description","role","editType","impliedEdits"]),editType:{traces:VP.traces,layout:VP.layout},impliedEdits:{}},traces:e,layout:gge(),frames:bge(),animation:Wc(cge),config:Wc(vge)}};Da.crawl=function(e,r,t,a){var n=t||0;a=a||"",Object.keys(e).forEach(function(i){var o=e[i];if(D4.indexOf(i)===-1){var l=(a?a+".":"")+i;r(o,i,e,n,l),!Da.isValObject(o)&&jc(o)&&i!=="impliedEdits"&&Da.crawl(o,r,n+1,l)}})};Da.isValObject=function(e){return e&&e.valType!==void 0};Da.findArrayAttributes=function(e){var r=[],t=[],a=[],n,i;function o(s,u,f,c){t=t.slice(0,c).concat([u]),a=a.slice(0,c).concat([s&&s._isLinkedToArray]);var v=s&&(s.valType==="data_array"||s.arrayOk===!0)&&!(t[c-1]==="colorbar"&&(u==="ticktext"||u==="tickvals"));v&&l(n,0,"")}function l(s,u,f){var c=s[t[u]],v=f+t[u];if(u===t.length-1)hge(c)&&r.push(i+v);else if(a[u]){if(Array.isArray(c))for(var d=0;d=i.length)return!1;if(e.dimensions===2){if(t++,r.length===t)return e;var o=r[t];if(!Yp(o))return!1;e=i[n][o]}else e=i[n]}else e=i}}return e}function Yp(e){return e===Math.round(e)&&e>=0}function yge(e){var r,t;r=Hi.modules[e]._module,t=r.basePlotModule;var a={};a.type=null;var n=Do({},Vp),i=Do({},r.attributes);Da.crawl(i,function(s,u,f,c,v){jp(n,v).set(void 0),s===void 0&&jp(i,v).set(void 0)}),Do(a,n),Hi.traceIs(e,"noOpacity")&&delete a.opacity,Hi.traceIs(e,"showLegend")||(delete a.showlegend,delete a.legendgroup),Hi.traceIs(e,"noHover")&&(delete a.hoverinfo,delete a.hoverlabel),r.selectPoints||delete a.selectedpoints,Do(a,i),t.attributes&&Do(a,t.attributes),a.type=e;var o={meta:r.meta||{},categories:r.categories||{},animatable:!!r.animatable,type:e,attributes:Wc(a)};if(r.layoutAttributes){var l={};Do(l,r.layoutAttributes),o.layoutAttributes=Wc(l)}return r.animatable||Da.crawl(o,function(s){Da.isValObject(s)&&"anim"in s&&delete s.anim}),o}function gge(){var e={},r,t;Do(e,L4);for(r in Hi.subplotsRegistry)if(t=Hi.subplotsRegistry[r],!!t.layoutAttributes)if(Array.isArray(t.attr))for(var a=0;a{"use strict";var Zc=ke(),Tge=On(),Ds="templateitemname",E4={name:{valType:"string",editType:"none"}};E4[Ds]={valType:"string",editType:"calc"};Xu.templatedArray=function(e,r){return r._isLinkedToArray=e,r.name=E4.name,r[Ds]=E4[Ds],r};Xu.traceTemplater=function(e){var r={},t,a;for(t in e)a=e[t],Array.isArray(a)&&a.length&&(r[t]=0);function n(i){t=Zc.coerce(i,{},Tge,"type");var o={type:t,_template:null};if(t in r){a=e[t];var l=r[t]%a.length;r[t]++,o._template=a[l]}return o}return{newTrace:n}};Xu.newContainer=function(e,r,t){var a=e._template,n=a&&(a[r]||t&&a[t]);Zc.isPlainObject(n)||(n=null);var i=e[r]={_template:n};return i};Xu.arrayTemplater=function(e,r,t){var a=e._template,n=a&&a[$P(r)],i=a&&a[r];(!Array.isArray(i)||!i.length)&&(i=[]);var o={};function l(u){var f={name:u.name,_input:u},c=f[Ds]=u[Ds];if(!ZP(c))return f._template=n,f;for(var v=0;v=a&&(t._input||{})._templateitemname;i&&(n=a);var o=r+"["+n+"]",l;function s(){l={},i&&(l[o]={},l[o][Ds]=i)}s();function u(d,p){l[d]=p}function f(d,p){i?Zc.nestedProperty(l[o],d).set(p):l[o+"."+d]=p}function c(){var d=l;return s(),d}function v(d,p){d&&f(d,p);var y=c();for(var m in y)Zc.nestedProperty(e,m).set(y[m])}return{modifyBase:u,modifyItem:f,getUpdateObj:c,applyUpdate:v}}});var Ea={};qt(Ea,{AX_ID_PATTERN:()=>Lge,AX_NAME_PATTERN:()=>Cge,DFLTRANGEX:()=>Ige,DFLTRANGEY:()=>Bge,DRAGGERSIZE:()=>zge,HOUR_PATTERN:()=>Ege,MINDRAG:()=>Rge,MINZOOM:()=>Fge,REDRAWDELAY:()=>Nge,SUBPLOT_PATTERN:()=>Dge,WEEKDAY_PATTERN:()=>Pge,attrRegex:()=>kge,clipOnAxisFalseQuery:()=>Hge,idRegex:()=>Mge,layerValue2layerClass:()=>Uge,traceLayerClasses:()=>Oge,xAxisMatch:()=>Sge,yAxisMatch:()=>qge,zindexSeparator:()=>Gge});var Mge,kge,Sge,qge,Lge,Cge,Dge,Ege,Pge,Rge,Fge,zge,Nge,Ige,Bge,Oge,Hge,Uge,Gge,Pa=St(()=>{"use strict";Fc();Mge={x:Uu("x","( domain)?"),y:Uu("y","( domain)?")},kge=Uu("[xy]axis"),Sge=Uu("xaxis"),qge=Uu("yaxis"),Lge=/^[xyz][0-9]*( domain)?$/,Cge=/^[xyz]axis[0-9]*$/,Dge=/^x([0-9]*)y([0-9]*)$/,Ege="hour",Pge="day of week",Rge=8,Fge=20,zge=20,Nge=50,Ige=[-1,6],Bge=[-1,4],Oge=["imagelayer","heatmaplayer","contourcarpetlayer","contourlayer","funnellayer","waterfalllayer","barlayer","carpetlayer","violinlayer","boxlayer","ohlclayer","scattercarpetlayer","scatterlayer"],Hge=[".scatterlayer",".barlayer",".funnellayer",".waterfalllayer"],Uge={"above traces":"above","below traces":"below"},Gge="z"});var Aa=z(Qn=>{"use strict";var Yge=Tr(),P4=(Pa(),ze(Ea));Qn.id2name=function(r){if(!(typeof r!="string"||!r.match(P4.AX_ID_PATTERN))){var t=r.split(" ")[0].slice(1);return t==="1"&&(t=""),r.charAt(0)+"axis"+t}};Qn.name2id=function(r){if(r.match(P4.AX_NAME_PATTERN)){var t=r.slice(5);return t==="1"&&(t=""),r.charAt(0)+t}};Qn.cleanId=function(r,t,a){var n=/( domain)$/.test(r);if(!(typeof r!="string"||!r.match(P4.AX_ID_PATTERN))&&!(t&&r.charAt(0)!==t)&&!(n&&!a)){var i=r.split(" ")[0].slice(1).replace(/^0+/,"");return i==="1"&&(i=""),r.charAt(0)+i+(n&&a?" domain":"")}};Qn.list=function(e,r,t){var a=e._fullLayout;if(!a)return[];var n=Qn.listIds(e,r),i=new Array(n.length),o;for(o=0;oa?1:-1:+(e.slice(1)||1)-+(r.slice(1)||1)};Qn.ref2id=function(e){return/^[xyz]/.test(e)?e.split(" ")[0]:!1};function JP(e,r){if(r&&r.length){for(var t=0;t{"use strict";function Vge(e){var r=e._fullLayout._zoomlayer;r&&r.selectAll(".outline-controllers").remove()}function jge(e){var r=e._fullLayout._zoomlayer;r&&r.selectAll(".select-outline").remove(),e._fullLayout._outlining=!1}KP.exports={clearOutlineControllers:Vge,clearOutline:jge}});var Xp=z((dXe,QP)=>{"use strict";QP.exports={scattermode:{valType:"enumerated",values:["group","overlay"],dflt:"overlay",editType:"calc"},scattergap:{valType:"number",min:0,max:1,editType:"calc"}}});var Jp=z($p=>{"use strict";var Zp=Tr(),pXe=(Pa(),ze(Ea)).SUBPLOT_PATTERN;$p.getSubplotCalcData=function(e,r,t){var a=Zp.subplotsRegistry[r];if(!a)return[];for(var n=a.attr,i=[],o=0;o{"use strict";var Wge=Tr(),$c=ke();Zu.manageCommandObserver=function(e,r,t,a){var n={},i=!0;r&&r._commandObserver&&(n=r._commandObserver),n.cache||(n.cache={}),n.lookupTable={};var o=Zu.hasSimpleAPICommandBindings(e,t,n.lookupTable);if(r&&r._commandObserver){if(o)return n;if(r._commandObserver.remove)return r._commandObserver.remove(),r._commandObserver=null,n}if(o){eR(e,o,n.cache),n.check=function(){if(i){var f=eR(e,o,n.cache);return f.changed&&a&&n.lookupTable[f.value]!==void 0&&(n.disable(),Promise.resolve(a({value:f.value,type:o.type,prop:o.prop,traces:o.traces,index:n.lookupTable[f.value]})).then(n.enable,n.enable)),f.changed}};for(var l=["plotly_relayout","plotly_redraw","plotly_restyle","plotly_update","plotly_animatingframe","plotly_afterplot"],s=0;s0?".":"")+n;$c.isPlainObject(i)?R4(i,r,o,a+1):r(o,n,i)}})}});var ma=z((bXe,hR)=>{"use strict";var gXe=Pr(),Zge=_c().timeFormatLocale,$ge=f5().formatLocale,Eh=Br(),Jge=v5(),Kge=Jv().version,et=Tr(),Qge=Xc(),e3e=Ct(),br=ke(),r3e=qr(),nR=(jt(),ze(Zt)).BADNUM,ei=Aa(),t3e=Es().clearOutline,a3e=Xp(),F4=Ah(),n3e=q4(),i3e=Jp().getModuleCalcData,iR=br.relinkPrivateKeys,$u=br._,tr=hR.exports={};br.extendFlat(tr,et);tr.attributes=On();tr.attributes.type.values=tr.allTypes;tr.fontAttrs=Ca();tr.layoutAttributes=Ic();var Qp=aR();tr.executeAPICommand=Qp.executeAPICommand;tr.computeAPICommandBindings=Qp.computeAPICommandBindings;tr.manageCommandObserver=Qp.manageCommandObserver;tr.hasSimpleAPICommandBindings=Qp.hasSimpleAPICommandBindings;tr.redrawText=function(e){return e=br.getGraphDiv(e),new Promise(function(r){setTimeout(function(){e._fullLayout&&(et.getComponentMethod("annotations","draw")(e),et.getComponentMethod("legend","draw")(e),et.getComponentMethod("colorbar","draw")(e),r(tr.previousPromises(e)))},300)})};tr.resize=function(e){e=br.getGraphDiv(e);var r,t=new Promise(function(a,n){(!e||br.isHidden(e))&&n(new Error("Resize must be passed a displayed plot div element.")),e._redrawTimer&&clearTimeout(e._redrawTimer),e._resolveResize&&(r=e._resolveResize),e._resolveResize=a,e._redrawTimer=setTimeout(function(){if(!e.layout||e.layout.width&&e.layout.height||br.isHidden(e)){a(e);return}delete e.layout.width,delete e.layout.height;var i=e.changed;e.autoplay=!0,et.call("relayout",e,{autosize:!0}).then(function(){e.changed=i,e._resolveResize===a&&(delete e._resolveResize,a(e))})},100)});return r&&r(t),t};tr.previousPromises=function(e){if((e._promises||[]).length)return Promise.all(e._promises).then(function(){e._promises=[]})};tr.sendDataToCloud=function(e,r){e.emit("plotly_beforeexport");let t=new URL(r).origin;var a=tr.graphJson(e,!1,"object");a.version=Kge;var n=new URL(r);n.searchParams.set("origin",window.location.origin);var i=window.open(n.href,"_blank");if(!i){console.error("Unable to open Plotly Cloud (the popup may have been blocked)"),e.emit("plotly_exportfail");return}var o=function(l){l.origin===t&&l.data&&l.data.type==="CHART_AUTH_SUCCESS"&&(i.postMessage({type:"chart",chart:a},t),window.removeEventListener("message",o),e.emit("plotly_afterexport"))};return window.addEventListener("message",o),!1};var o3e=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],l3e=["year","month","dayMonth","dayMonthYear"];tr.supplyDefaults=function(e,r){var t=r&&r.skipUpdateCalc,a=e._fullLayout||{};if(a._skipDefaults){delete a._skipDefaults;return}var n=e._fullLayout={},i=e.layout||{},o=e._fullData||[],l=e._fullData=[],s=e.data||[],u=e.calcdata||[],f=e._context||{},c;e._transitionData||tr.createTransitionData(e),n._dfltTitle={plot:$u(e,"Click to enter Plot title"),subtitle:$u(e,"Click to enter Plot subtitle"),x:$u(e,"Click to enter X axis title"),y:$u(e,"Click to enter Y axis title"),colorbar:$u(e,"Click to enter Colorscale title"),annotation:$u(e,"new text")},n._traceWord=$u(e,"trace");var v=oR(e,o3e);if(a._initialAutoSizeIsDone){var d=a.width,p=a.height;tr.supplyLayoutGlobalDefaults(i,n,v),i.width||(n.width=d),i.height||(n.height=p),tr.sanitizeMargins(n)}else{tr.supplyLayoutGlobalDefaults(i,n,v);var y=!i.width||!i.height,m=n.autosize,b=f.autosizable,A=y&&(m||b);A?tr.plotAutoSize(e,i,n):y&&tr.sanitizeMargins(n),!m&&y&&(i.width=n.width,i.height=n.height)}n._d3locale=f3e(v,n.separators),n._extraFormat=oR(e,l3e),n._initialAutoSizeIsDone=!0,n._dataLength=s.length,n._modules=[],n._visibleModules=[],n._basePlotModules=[];var w=n._subplots=u3e(),x=n._splomAxes={x:{},y:{}},_=n._splomSubplots={};n._splomGridDflt={},n._scatterStackOpts={},n._firstScatter={},n._alignmentOpts={},n._colorAxes={},n._requestRangeslider={},n._traceUids=s3e(o,s),tr.supplyDataDefaults(s,l,i,n);var k=Object.keys(x.x),T=Object.keys(x.y);if(k.length>1&&T.length>1){for(et.getComponentMethod("grid","sizeDefaults")(i,n),c=0;c15&&T.length>15&&n.shapes.length===0&&n.images.length===0,tr.linkSubplots(l,n,o,a),tr.cleanPlot(l,n,o,a);var R=!!(a._has&&a._has("cartesian")),N=!!(n._has&&n._has("cartesian")),I=R,O=N;I&&!O?a._bgLayer.remove():O&&!I&&(n._shouldCreateBgLayer=!0),a._zoomlayer&&!e._dragging&&t3e({_fullLayout:a}),c3e(l,n),iR(n,a),et.getComponentMethod("colorscale","crossTraceDefaults")(l,n),n._preGUI||(n._preGUI={}),n._tracePreGUI||(n._tracePreGUI={});var U=n._tracePreGUI,Y={},G;for(G in U)Y[G]="old";for(c=0;c0){var f=1-2*i;o=Math.round(f*o),l=Math.round(f*l)}}var c=tr.layoutAttributes.width.min,v=tr.layoutAttributes.height.min;o1,p=!t.height&&Math.abs(a.height-l)>1;(p||d)&&(d&&(a.width=o),p&&(a.height=l)),r._initialAutoSize||(r._initialAutoSize={width:o,height:l}),tr.sanitizeMargins(a)};tr.supplyLayoutModuleDefaults=function(e,r,t,a){var n=et.componentsRegistry,i=r._basePlotModules,o,l,s,u=et.subplotsRegistry.cartesian;for(o in n)s=n[o],s.includeBasePlot&&s.includeBasePlot(e,r);i.length||i.push(u),r._has("cartesian")&&(et.getComponentMethod("grid","contentDefaults")(e,r),u.finalizeSubplots(e,r));for(var f in r._subplots)r._subplots[f].sort(br.subplotSort);for(l=0;l1&&(t.l/=m,t.r/=m)}if(v){var b=(t.t+t.b)/v;b>1&&(t.t/=b,t.b/=b)}var A=t.xl!==void 0?t.xl:t.x,w=t.xr!==void 0?t.xr:t.x,x=t.yt!==void 0?t.yt:t.y,_=t.yb!==void 0?t.yb:t.y;d[r]={l:{val:A,size:t.l+y},r:{val:w,size:t.r+y},b:{val:_,size:t.b+y},t:{val:x,size:t.t+y}},p[r]=1}if(!a._replotting)return tr.doAutoMargin(e)}};function h3e(e){if("_redrawFromAutoMarginCount"in e._fullLayout)return!1;var r=ei.list(e,"",!0);for(var t in r)if(r[t].autoshift||r[t].shift)return!0;return!1}tr.doAutoMargin=function(e){var r=e._fullLayout,t=r.width,a=r.height;r._size||(r._size={}),uR(r);var n=r._size,i=r.margin,o={t:0,b:0,l:0,r:0},l=br.extendFlat({},n),s=i.l,u=i.r,f=i.t,c=i.b,v=r._pushmargin,d=r._pushmarginIds,p=r.minreducedwidth,y=r.minreducedheight;if(i.autoexpand!==!1){for(var m in v)d[m]||delete v[m];var b=e._fullLayout._reservedMargin;for(var A in b)for(var w in b[A]){var x=b[A][w];o[w]=Math.max(o[w],x)}v.base={l:{val:0,size:s},r:{val:1,size:u},t:{val:1,size:f},b:{val:0,size:c}};for(var _ in o){var k=0;for(var T in v)T!=="base"&&Eh(v[T][_].size)&&(k=v[T][_].size>k?v[T][_].size:k);var q=Math.max(0,i[_]-k);o[_]=Math.max(0,o[_]-q)}for(var C in v){var E=v[C].l||{},P=v[C].b||{},R=E.val,N=E.size,I=P.val,O=P.size,U=t-o.r-o.l,Y=a-o.t-o.b;for(var G in v){if(Eh(N)&&v[G].r){var V=v[G].r.val,W=v[G].r.size;if(V>R){var j=(N*V+(W-U)*R)/(V-R),J=(W*(1-R)+(N-U)*(1-V))/(V-R);j+J>s+u&&(s=j,u=J)}}if(Eh(O)&&v[G].t){var te=v[G].t.val,ae=v[G].t.size;if(te>I){var se=(O*te+(ae-Y)*I)/(te-I),$=(ae*(1-I)+(O-Y)*(1-te))/(te-I);se+$>c+f&&(c=se,f=$)}}}}}var fe=br.constrain(t-i.l-i.r,fR,p),ie=br.constrain(a-i.t-i.b,cR,y),ue=Math.max(0,t-fe),ce=Math.max(0,a-ie);if(ue){var oe=(s+u)/ue;oe>1&&(s/=oe,u/=oe)}if(ce){var be=(c+f)/ce;be>1&&(c/=be,f/=be)}if(n.l=Math.round(s)+o.l,n.r=Math.round(u)+o.r,n.t=Math.round(f)+o.t,n.b=Math.round(c)+o.b,n.p=Math.round(i.pad),n.w=Math.round(t)-n.l-n.r,n.h=Math.round(a)-n.t-n.b,!r._replotting&&(tr.didMarginChange(l,n)||h3e(e))){"_redrawFromAutoMarginCount"in r?r._redrawFromAutoMarginCount++:r._redrawFromAutoMarginCount=1;var Re=3*(1+Object.keys(d).length);if(r._redrawFromAutoMarginCount1)return!0}return!1};tr.graphJson=function(e,r=!1,t="json",a=!1,n=!1){(a&&r&&!e._fullData||a&&!r&&!e._fullLayout)&&tr.supplyDefaults(e);var i=a?e._fullData:e.data,o=a?e._fullLayout:e.layout,l=(e._transitionData||{})._frames;function s(c,v){if(typeof c=="function")return v?"_function_":null;if(br.isPlainObject(c)){var d={};return Object.keys(c).sort().forEach(function(b){if(["_","["].indexOf(b.charAt(0))===-1){if(typeof c[b]=="function"){v&&(d[b]="_function");return}d[b]=s(c[b],v)}}),d}var p=Array.isArray(c),y=br.isTypedArray(c);if((p||y)&&c.dtype&&c.shape){var m=c.bdata;return s({dtype:c.dtype,shape:c.shape,bdata:br.isArrayBuffer(m)?Jge.encode(m):m},v)}return p?c.map(function(b){return s(b,v)}):y?br.simpleMap(c,br.identity):br.isJSDate(c)?br.ms2DateTimeLocal(+c):c}var u={data:(i||[]).map(function(c){var v=s(c);return r&&delete v.fit,v})};if(!r&&(u.layout=s(o),a)){var f=o._size;u.layout.computed={margin:{b:f.b,l:f.l,r:f.r,t:f.t}}}return l&&(u.frames=s(l)),n&&(u.config=s(e._context,!0)),t==="object"?u:JSON.stringify(u)};tr.modifyFrames=function(e,r){var t,a,n,i=e._transitionData._frames,o=e._transitionData._frameHash;for(t=0;t0&&(e._transitioningWithDuration=!0),e._transitionData._interruptCallbacks.push(function(){a=!0}),t.redraw&&e._transitionData._interruptCallbacks.push(function(){return et.call("redraw",e)}),e._transitionData._interruptCallbacks.push(function(){e.emit("plotly_transitioninterrupted",[])});var v=0,d=0;function p(){return v++,function(){d++,!a&&d===v&&l(c)}}t.runFn(p),setTimeout(p())})}function l(c){if(e._transitionData)return i(e._transitionData._interruptCallbacks),Promise.resolve().then(function(){if(t.redraw)return et.call("redraw",e)}).then(function(){e._transitioning=!1,e._transitioningWithDuration=!1,e.emit("plotly_transitioned",[])}).then(c)}function s(){if(e._transitionData)return e._transitioning=!1,n(e._transitionData._interruptCallbacks)}var u=[tr.previousPromises,s,t.prepareFn,tr.rehover,tr.reselect,o],f=br.syncOrAsync(u,e);return(!f||!f.then)&&(f=Promise.resolve()),f.then(function(){return e})}tr.doCalcdata=function(e,r){var t=ei.list(e),a=e._fullData,n=e._fullLayout,i,o,l,s=new Array(a.length),u=(e.calcdata||[]).slice();for(e.calcdata=s,n._numBoxes=0,n._numViolins=0,n._violinScaleGroupStats={},e._hmpixcount=0,e._hmlumcount=0,n._piecolormap={},n._sunburstcolormap={},n._treemapcolormap={},n._iciclecolormap={},n._funnelareacolormap={},l=0;ldR,svgAttrs:()=>b3e,xlink:()=>pR,xmlns:()=>g3e});var g3e,dR,pR,b3e,Vl=St(()=>{"use strict";g3e="http://www.w3.org/2000/xmlns/",dR="http://www.w3.org/2000/svg",pR="http://www.w3.org/1999/xlink",b3e={xmlns:dR,"xmlns:xlink":pR}});var nn={};qt(nn,{CAP_SHIFT:()=>T3e,FROM_BL:()=>x3e,FROM_BR:()=>w3e,FROM_TL:()=>_3e,LINE_SPACING:()=>A3e,MID_SHIFT:()=>M3e,OPPOSITE_SIDE:()=>k3e});var x3e,_3e,w3e,A3e,T3e,M3e,k3e,on=St(()=>{"use strict";x3e={left:0,center:.5,right:1,bottom:0,middle:.5,top:1},_3e={left:0,center:.5,right:1,bottom:1,middle:.5,top:0},w3e={left:1,center:.5,right:0,bottom:0,middle:.5,top:1},A3e=1.3,T3e=.7,M3e=.35,k3e={left:"right",right:"left",top:"bottom",bottom:"top"}});var Fa=z(mi=>{"use strict";var Ra=Pr(),Ui=ke(),S3e=Ui.strTranslate,z4=(Vl(),ze(Yl)),q3e=(on(),ze(nn)).LINE_SPACING,L3e=/([^$]*)([$]+[^$]*[$]+)([^$]*)/,_R=e=>e?e.match(L3e):null;mi.matchTex=_R;mi.convertToTspans=function(e,r,t){var a=e.text(),n=!e.attr("data-notex")&&r&&r._context.typesetMath&&_R(a);n&&!P3e()&&(n=null);var i=Ra.select(e.node().parentNode);if(i.empty())return;var o=e.attr("class")?e.attr("class").split(" ")[0]:"text";o+="-math",i.selectAll("svg."+o).remove(),i.selectAll("g."+o+"-group").remove(),e.style("display",null).attr({"data-unformatted":a,"data-math":"N"});function l(){i.empty()||(o=e.attr("class")+"-math",i.select("svg."+o).remove()),e.text("").style("white-space","pre");var s=G3e(e.node(),a);s&&e.style("pointer-events","all"),mi.positionText(e),t&&t.call(e)}return n?(r&&r._promises||[]).push(new Promise(function(s){e.style("display","none");var u=parseInt(e.node().style.fontSize,10),f={fontSize:u},c=e.attr("text-anchor");R3e(n[2],f,function(v,d,p){i.selectAll("svg."+o).remove(),i.selectAll("g."+o+"-group").remove();var y=v&&v.select("svg");if(!y||!y.node()){l(),s();return}e.style("display","none");var m=i.append("g").classed(o+"-group",!0).attr({"pointer-events":"none","data-unformatted":a,"data-math":"Y"});m.node().appendChild(y.node()),d&&d.node()&&y.node().insertBefore(d.node().cloneNode(!0),y.node().firstChild);var b=p.width,A=p.height;y.attr({class:o,height:A,preserveAspectRatio:"xMinYMin meet"}).style({overflow:"visible","pointer-events":"none","font-size":f.fontSize+"px"});var w=e.node().style.fill||"black",x=y.select("g");x.attr({fill:w,stroke:w});var _=x.node().getBoundingClientRect(),k=_.width,T=_.height;(k>b||T>A)&&(y.style("overflow","hidden"),_=y.node().getBoundingClientRect(),k=_.width,T=_.height);var q=+e.attr("x"),C=+e.attr("y"),E=u||e.node().getBoundingClientRect().height,P=-E/4;o[0]==="y"?m.attr({transform:"rotate("+[-90,q,C]+")"+S3e(-k/2,P-T/2)}):o[0]==="l"?C=P-T/2:o[0]==="a"&&o.indexOf("atitle")!==0?(q=0,C=P):(q=q-k*(c==="middle"?.5:c==="end"?1:0),C=C+P-T/2),y.attr({x:q,y:C}),t&&t.call(e,m),s(m)})})):l(),e};var C3e=/(<|<|<)/g,D3e=/(>|>|>)/g;function E3e(e){return e.replace(C3e,"\\lt ").replace(D3e,"\\gt ")}var N4=null,wR=()=>typeof MathJax!="undefined"&&MathJax.version?parseInt(MathJax.version.split(".")[0]):null,mR=!1,yR=!1;function P3e(){let e=wR();return e===3||e===4?!0:(e===null?mR||(mR=!0,Ui.warn("MathJax is not loaded. Math equations will not be rendered.")):yR||(yR=!0,Ui.warn("Unsupported MathJax version:",MathJax.version)),!1)}function R3e(e,r,t){let a=wR();var n;let i=function(){if(!N4){let u=MathJax._.output.svg_ts.SVG,f=Ui.extendFlat({},MathJax.config.svg,{fontCache:"local"});a===4&&(f.linebreaks=Ui.extendFlat({},f.linebreaks,{inline:!1})),N4=MathJax._.mathjax.mathjax.document(document,Ui.extendFlat({},MathJax.config.options,{InputJax:MathJax.startup.input,OutputJax:new u(f)}))}let l="math-output-"+Ui.randstr({},64);n=Ra.select("body").append("div").attr({id:l}).style({visibility:"hidden",position:"absolute","font-size":r.fontSize+"px"});let s=E3e(e).replace(/^\$+|\$+$/g,"");return MathJax._.mathjax.mathjax.handleRetriesFor(function(){return N4.convert(s,{display:!1})}).then(function(u){n.node().appendChild(u)})},o=function(){let l=n.select(".MathJax"),s=!l.empty()&&n.select("svg").node();if(!s)Ui.log("There was an error in the tex syntax.",e),t();else{let u=s.getBoundingClientRect(),f=l.select("defs");t(l,f,u)}n.remove()};Promise.resolve().then(i).then(o).catch(l=>{Ui.log("MathJax typesetting failed.",e,l),n&&n.remove(),t()})}var AR={sup:"font-size:70%",sub:"font-size:70%",s:"text-decoration:line-through",u:"text-decoration:underline",b:"font-weight:bold",i:"font-style:italic",a:"cursor:pointer",span:"",em:"font-style:italic;font-weight:bold"},F3e={sub:"0.3em",sup:"-0.6em"},z3e={sub:"-0.21em",sup:"0.42em"},gR="\u200B",bR=["http:","https:","mailto:","",void 0,":"],TR=mi.NEWLINES=/(\r\n?|\n)/g,B4=/(<[^<>]*>)/,O4=/<(\/?)([^ >]*)(\s+(.*))?>/i,N3e=//i;mi.BR_TAG_ALL=//gi;var MR=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,kR=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,SR=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,I3e=/(^|[\s"'])popup\s*=\s*("([\w=,]*)"|'([\w=,]*)')/i;function Ju(e,r){if(!e)return null;var t=e.match(r),a=t&&(t[3]||t[4]);return a&&em(a)}var B3e=/(^|;)\s*color:/;mi.plainText=function(e,r){r=r||{};for(var t=r.len!==void 0&&r.len!==-1?r.len:1/0,a=r.allowedTags!==void 0?r.allowedTags:["br"],n="...",i=n.length,o=e.split(B4),l=[],s="",u=0,f=0;fi?l.push(c.slice(0,Math.max(0,y-i))+n):l.push(c.slice(0,y));break}s=""}}return l.join("")};var O3e={mu:"\u03BC",amp:"&",lt:"<",gt:">",nbsp:"\xA0",times:"\xD7",plusmn:"\xB1",deg:"\xB0"},H3e=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function em(e){return e.replace(H3e,function(r,t){var a;return t.charAt(0)==="#"?a=U3e(t.charAt(1)==="x"?parseInt(t.slice(2),16):parseInt(t.slice(1),10)):a=O3e[t],a||r})}mi.convertEntities=em;function U3e(e){if(!(e>1114111)){var r=String.fromCodePoint;if(r)return r(e);var t=String.fromCharCode;return e<=65535?t(e):t((e>>10)+55232,e%1024+56320)}}function G3e(e,r){r=r.replace(TR," ");var t=!1,a=[],n,i=-1;function o(){i++;var k=document.createElementNS(z4.svg,"tspan");Ra.select(k).attr({class:"line",dy:i*q3e+"em"}),e.appendChild(k),n=k;var T=a;if(a=[{node:k}],T.length>1)for(var q=1;q.",r);return}var T=a.pop();k!==T.type&&Ui.log("Start tag <"+T.type+"> doesnt match end tag <"+k+">. Pretending it did match.",r),n=a[a.length-1].node}var f=N3e.test(r);f?o():(n=e,a=[{node:e}]);for(var c=r.split(B4),v=0;v{"use strict";var Y3e=Pr(),Rh=Br(),rm=ke(),Ku=qr(),V3e=Hu().isValid;function j3e(e,r,t){var a=r?rm.nestedProperty(e,r).get()||{}:e,n=a[t||"color"];n&&n._inputArray&&(n=n._inputArray);var i=!1;if(rm.isArrayOrTypedArray(n)){for(var o=0;o=0;a--,n++){var i=e[a];t[n]=[1-i[0],i[1]]}return t}function PR(e,r){r=r||{};for(var t=e.domain,a=e.range,n=a.length,i=new Array(n),o=0;o{"use strict";var FR=(a4(),ze(t4)),X3e=FR.FORMAT_LINK,Z3e=FR.DATE_FORMAT_LINK;function $3e(e,r){return{valType:"string",dflt:"",editType:"none",description:(r?H4:zR)("hover text",e)+["By default the values are formatted using "+(r?"generic number format":"`"+e+"axis.hoverformat`")+"."].join(" ")}}function H4(e,r){return["Sets the "+e+" formatting rule"+(r?" for `"+r+"`":""),"using d3 formatting mini-languages","which are very similar to those in Python. For numbers, see: "+X3e+"."].join(" ")}function zR(e,r){return H4(e,r)+[" And for dates see: "+Z3e+".","We add two items to d3's date formatter:","*%h* for half of the year as a decimal number as well as","*%{n}f* for fractional seconds","with n digits. For example, *2016-10-13 09:15:23.456* with tickformat","*%H~%M~%S.%2f* would display *09~15~23.46*"].join(" ")}NR.exports={axisHoverFormat:$3e,descriptionOnlyNumbers:H4,descriptionWithDates:zR}});var Gi=z((TXe,eF)=>{"use strict";var IR=Ca(),Jc=Ii(),QR=Bi().dash,G4=Mt().extendFlat,BR=Ct().templatedArray,AXe=di().templateFormatStringDescription,OR=Eo().descriptionWithDates,J3e=(jt(),ze(Zt)).ONEDAY,il=(Pa(),ze(Ea)),K3e=il.HOUR_PATTERN,Q3e=il.WEEKDAY_PATTERN,U4={valType:"enumerated",values:["auto","linear","array"],editType:"ticks",impliedEdits:{tick0:void 0,dtick:void 0}},ebe=G4({},U4,{values:U4.values.slice().concat(["sync"])});function HR(e){return{valType:"integer",min:0,dflt:e?5:0,editType:"ticks"}}var UR={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},GR={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},YR={valType:"data_array",editType:"ticks"},VR={valType:"enumerated",values:["outside","inside",""],editType:"ticks"};function jR(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=5),r}function WR(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=1),r}var XR={valType:"color",dflt:Jc.defaultLine,editType:"ticks"},ZR={valType:"color",dflt:Jc.lightLine,editType:"ticks"};function $R(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=1),r}var JR=G4({},QR,{editType:"ticks"}),KR={valType:"boolean",editType:"ticks"};eF.exports={visible:{valType:"boolean",editType:"plot"},color:{valType:"color",dflt:Jc.defaultLine,editType:"ticks"},title:{text:{valType:"string",editType:"ticks"},font:IR({editType:"ticks",description:"Sets this axis' title font."}),standoff:{valType:"number",min:0,editType:"ticks"},editType:"ticks"},type:{valType:"enumerated",values:["-","linear","log","date","category","multicategory"],dflt:"-",editType:"calc",_noTemplating:!0},autotypenumbers:{valType:"enumerated",values:["convert types","strict"],dflt:"convert types",editType:"calc"},autorange:{valType:"enumerated",values:[!0,!1,"reversed","min reversed","max reversed","min","max"],dflt:!0,editType:"axrange",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},autorangeoptions:{minallowed:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},maxallowed:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},clipmin:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},clipmax:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},include:{valType:"any",arrayOk:!0,editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},editType:"plot"},rangemode:{valType:"enumerated",values:["normal","tozero","nonnegative"],dflt:"normal",editType:"plot"},range:{valType:"info_array",items:[{valType:"any",editType:"axrange",impliedEdits:{"^autorange":!1},anim:!0},{valType:"any",editType:"axrange",impliedEdits:{"^autorange":!1},anim:!0}],editType:"axrange",impliedEdits:{autorange:!1},anim:!0},minallowed:{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},maxallowed:{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},fixedrange:{valType:"boolean",dflt:!1,editType:"calc"},modebardisable:{valType:"flaglist",flags:["autoscale","zoominout"],extras:["none"],dflt:"none",editType:"modebar"},insiderange:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},scaleanchor:{valType:"enumerated",values:[il.idRegex.x.toString(),il.idRegex.y.toString(),!1],editType:"plot"},scaleratio:{valType:"number",min:0,dflt:1,editType:"plot"},constrain:{valType:"enumerated",values:["range","domain"],editType:"plot"},constraintoward:{valType:"enumerated",values:["left","center","right","top","middle","bottom"],editType:"plot"},matches:{valType:"enumerated",values:[il.idRegex.x.toString(),il.idRegex.y.toString()],editType:"calc"},rangebreaks:BR("rangebreak",{enabled:{valType:"boolean",dflt:!0,editType:"calc"},bounds:{valType:"info_array",items:[{valType:"any",editType:"calc"},{valType:"any",editType:"calc"}],editType:"calc"},pattern:{valType:"enumerated",values:[Q3e,K3e,""],editType:"calc"},values:{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"any",editType:"calc"}},dvalue:{valType:"number",editType:"calc",min:0,dflt:J3e},editType:"calc"}),tickmode:ebe,nticks:HR(),tick0:UR,dtick:GR,ticklabelstep:{valType:"integer",min:1,dflt:1,editType:"ticks"},tickvals:YR,ticktext:{valType:"data_array",editType:"ticks"},ticks:VR,tickson:{valType:"enumerated",values:["labels","boundaries"],dflt:"labels",editType:"ticks"},ticklabelmode:{valType:"enumerated",values:["instant","period"],dflt:"instant",editType:"ticks"},ticklabelposition:{valType:"enumerated",values:["outside","inside","outside top","inside top","outside left","inside left","outside right","inside right","outside bottom","inside bottom"],dflt:"outside",editType:"calc"},ticklabeloverflow:{valType:"enumerated",values:["allow","hide past div","hide past domain"],editType:"calc"},ticklabelshift:{valType:"integer",dflt:0,editType:"ticks"},ticklabelstandoff:{valType:"integer",dflt:0,editType:"ticks"},ticklabelindex:{valType:"integer",arrayOk:!0,editType:"calc"},mirror:{valType:"enumerated",values:[!0,"ticks",!1,"all","allticks"],dflt:!1,editType:"ticks+layoutstyle"},ticklen:jR(),tickwidth:WR(),tickcolor:XR,showticklabels:{valType:"boolean",dflt:!0,editType:"ticks"},labelalias:{valType:"any",dflt:!1,editType:"ticks"},automargin:{valType:"flaglist",flags:["height","width","left","right","top","bottom"],extras:[!0,!1],dflt:!1,editType:"ticks"},showspikes:{valType:"boolean",dflt:!1,editType:"modebar"},spikecolor:{valType:"color",dflt:null,editType:"none"},spikethickness:{valType:"number",dflt:3,editType:"none"},spikedash:G4({},QR,{dflt:"dash",editType:"none"}),spikemode:{valType:"flaglist",flags:["toaxis","across","marker"],dflt:"toaxis",editType:"none"},spikesnap:{valType:"enumerated",values:["data","cursor","hovered data"],dflt:"hovered data",editType:"none"},tickfont:IR({editType:"ticks"}),tickangle:{valType:"angle",dflt:"auto",editType:"ticks"},autotickangles:{valType:"info_array",freeLength:!0,items:{valType:"angle"},dflt:[0,30,90],editType:"ticks"},tickprefix:{valType:"string",dflt:"",editType:"ticks"},showtickprefix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},ticksuffix:{valType:"string",dflt:"",editType:"ticks"},showticksuffix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},showexponent:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},exponentformat:{valType:"enumerated",values:["none","e","E","power","SI","B","SI extended"],dflt:"B",editType:"ticks"},minexponent:{valType:"number",dflt:3,min:0,editType:"ticks"},separatethousands:{valType:"boolean",dflt:!1,editType:"ticks"},tickformat:{valType:"string",dflt:"",editType:"ticks",description:OR("tick label")},tickformatstops:BR("tickformatstop",{enabled:{valType:"boolean",dflt:!0,editType:"ticks"},dtickrange:{valType:"info_array",items:[{valType:"any",editType:"ticks"},{valType:"any",editType:"ticks"}],editType:"ticks"},value:{valType:"string",dflt:"",editType:"ticks"},editType:"ticks"}),hoverformat:{valType:"string",dflt:"",editType:"none",description:OR("hover text")},unifiedhovertitle:{text:{valType:"string",dflt:"",editType:"none"},editType:"none"},showline:{valType:"boolean",dflt:!1,editType:"ticks+layoutstyle"},linecolor:{valType:"color",dflt:Jc.defaultLine,editType:"layoutstyle"},linewidth:{valType:"number",min:0,dflt:1,editType:"ticks+layoutstyle"},showgrid:KR,gridcolor:ZR,gridwidth:$R(),griddash:JR,zeroline:{valType:"boolean",editType:"ticks"},zerolinecolor:{valType:"color",dflt:Jc.defaultLine,editType:"ticks"},zerolinelayer:{valType:"enumerated",values:["above traces","below traces"],dflt:"below traces",editType:"plot"},zerolinewidth:{valType:"number",dflt:1,editType:"ticks"},showdividers:{valType:"boolean",dflt:!0,editType:"ticks"},dividercolor:{valType:"color",dflt:Jc.defaultLine,editType:"ticks"},dividerwidth:{valType:"number",dflt:1,editType:"ticks"},anchor:{valType:"enumerated",values:["free",il.idRegex.x.toString(),il.idRegex.y.toString()],editType:"plot"},side:{valType:"enumerated",values:["top","bottom","left","right"],editType:"plot"},overlaying:{valType:"enumerated",values:["free",il.idRegex.x.toString(),il.idRegex.y.toString()],editType:"plot"},minor:{tickmode:U4,nticks:HR("minor"),tick0:UR,dtick:GR,tickvals:YR,ticks:VR,ticklen:jR("minor"),tickwidth:WR("minor"),tickcolor:XR,gridcolor:ZR,gridwidth:$R("minor"),griddash:JR,showgrid:KR,editType:"ticks"},minorloglabels:{valType:"enumerated",values:["small digits","complete","none"],dflt:"small digits",editType:"calc"},layer:{valType:"enumerated",values:["above traces","below traces"],dflt:"above traces",editType:"plot"},domain:{valType:"info_array",items:[{valType:"number",min:0,max:1,editType:"plot"},{valType:"number",min:0,max:1,editType:"plot"}],dflt:[0,1],editType:"plot"},position:{valType:"number",min:0,max:1,dflt:0,editType:"plot"},autoshift:{valType:"boolean",dflt:!1,editType:"plot"},shift:{valType:"number",editType:"plot"},categoryorder:{valType:"enumerated",values:["trace","category ascending","category descending","array","total ascending","total descending","min ascending","min descending","max ascending","max descending","sum ascending","sum descending","mean ascending","mean descending","geometric mean ascending","geometric mean descending","median ascending","median descending"],dflt:"trace",editType:"calc"},categoryarray:{valType:"data_array",editType:"calc"},uirevision:{valType:"any",editType:"none"},editType:"calc"}});var tm=z((MXe,tF)=>{"use strict";var Ht=Gi(),rF=Ca(),Y4=Mt().extendFlat,rbe=qo().overrideAll;tF.exports=rbe({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:Ht.linecolor,outlinewidth:Ht.linewidth,bordercolor:Ht.linecolor,borderwidth:{valType:"number",min:0,dflt:0},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},tickmode:Ht.minor.tickmode,nticks:Ht.nticks,tick0:Ht.tick0,dtick:Y4({},Ht.dtick,{}),tickvals:Ht.tickvals,ticktext:Ht.ticktext,ticks:Y4({},Ht.ticks,{dflt:""}),ticklabeloverflow:Y4({},Ht.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:Ht.ticklen,tickwidth:Ht.tickwidth,tickcolor:Ht.tickcolor,ticklabelstep:Ht.ticklabelstep,showticklabels:Ht.showticklabels,labelalias:Ht.labelalias,tickfont:rF({description:"Sets the color bar's tick label font"}),tickangle:Ht.tickangle,tickformat:Ht.tickformat,tickformatstops:Ht.tickformatstops,tickprefix:Ht.tickprefix,showtickprefix:Ht.showtickprefix,ticksuffix:Ht.ticksuffix,showticksuffix:Ht.showticksuffix,separatethousands:Ht.separatethousands,exponentformat:Ht.exponentformat,minexponent:Ht.minexponent,showexponent:Ht.showexponent,title:{text:{valType:"string"},font:rF({description:"Sets this color bar's title font."}),side:{valType:"enumerated",values:["right","top","bottom"]}}},"colorbars","from-root")});var ol=z((SXe,nF)=>{"use strict";var tbe=tm(),abe=(Fc(),ze(_h)).counter,nbe=(v4(),ze(c4)).default,aF=Hu().scales,kXe=nbe(aF);function am(e){return"`"+e+"`"}nF.exports=function(r,t){r=r||"",t=t||{};var a=t.cLetter||"c",n="onlyIfNumerical"in t?t.onlyIfNumerical:!!r,i="noScale"in t?t.noScale:r==="marker.line",o="showScaleDflt"in t?t.showScaleDflt:a==="z",l=typeof t.colorscaleDflt=="string"?aF[t.colorscaleDflt]:null,s=t.editTypeOverride||"",u=r?r+".":"",f,c;"colorAttr"in t?(f=t.colorAttr,c=t.colorAttr):(f={z:"z",c:"color"}[a],c="in "+am(u+f));var v=n?" Has an effect only if "+c+" is set to a numerical array.":"",d=a+"auto",p=a+"min",y=a+"max",m=a+"mid",b=am(u+d),A=am(u+p),w=am(u+y),x=A+" and "+w,_={};_[p]=_[y]=void 0;var k={};k[d]=!1;var T={};return f==="color"&&(T.color={valType:"color",arrayOk:!0,editType:s||"style"},t.anim&&(T.color.anim=!0)),T[d]={valType:"boolean",dflt:!0,editType:"calc",impliedEdits:_},T[p]={valType:"number",dflt:null,editType:s||"plot",impliedEdits:k},T[y]={valType:"number",dflt:null,editType:s||"plot",impliedEdits:k},T[m]={valType:"number",dflt:null,editType:"calc",impliedEdits:_},T.colorscale={valType:"colorscale",editType:"calc",dflt:l,impliedEdits:{autocolorscale:!1}},T.autocolorscale={valType:"boolean",dflt:t.autoColorDflt!==!1,editType:"calc",impliedEdits:{colorscale:void 0}},T.reversescale={valType:"boolean",dflt:!1,editType:"plot"},i||(T.showscale={valType:"boolean",dflt:o,editType:"calc"},T.colorbar=tbe),t.noColorAxis||(T.coloraxis={valType:"subplotid",regex:abe("coloraxis"),dflt:null,editType:"calc"}),T}});var j4=z((qXe,iF)=>{"use strict";var ibe=Mt().extendFlat,obe=ol(),V4=Hu().scales;iF.exports={editType:"calc",colorscale:{editType:"calc",sequential:{valType:"colorscale",dflt:V4.Reds,editType:"calc"},sequentialminus:{valType:"colorscale",dflt:V4.Blues,editType:"calc"},diverging:{valType:"colorscale",dflt:V4.RdBu,editType:"calc"}},coloraxis:ibe({_isSubplotObj:!0,editType:"calc"},obe("",{colorAttr:"corresponding trace color array(s)",noColorAxis:!0,showScaleDflt:!0}))}});var W4=z((LXe,oF)=>{"use strict";var lbe=ke();oF.exports=function(r){return lbe.isPlainObject(r.colorbar)}});var $4=z(Z4=>{"use strict";var X4=Br(),lF=ke(),sF=(jt(),ze(Zt)),sbe=sF.ONEDAY,ube=sF.ONEWEEK;Z4.dtick=function(e,r){var t=r==="log",a=r==="date",n=r==="category",i=a?sbe:1;if(!e)return i;if(X4(e))return e=Number(e),e<=0?i:n?Math.max(1,Math.round(e)):a?Math.max(.1,e):e;if(typeof e!="string"||!(a||t))return i;var o=e.charAt(0),l=e.slice(1);return l=X4(l)?Number(l):0,l<=0||!(a&&o==="M"&&l===Math.round(l)||t&&o==="L"||t&&o==="D"&&(l===1||l===2))?i:e};Z4.tick0=function(e,r,t,a){if(r==="date")return lF.cleanDate(e,lF.dateTick0(t,a%ube===0?1:0));if(!(a==="D1"||a==="D2"))return X4(e)?Number(e):0}});var nm=z((DXe,fF)=>{"use strict";var uF=$4(),fbe=ke().isArrayOrTypedArray,cbe=Zn().isTypedArraySpec,vbe=Zn().decodeTypedArraySpec;fF.exports=function(r,t,a,n,i={}){var o=i.isMinor,l=o?r.minor||{}:r,s=o?t.minor:t,u=o?"minor.":"";function f(x){var _=l[x];return cbe(_)&&(_=vbe(_)),_!==void 0?_:(s._template||{})[x]}var c=f("tick0"),v=f("dtick"),d=f("tickvals"),p=f("overlaying"),y=n==="category"||n==="multicategory",m;fbe(d)?m="array":v?m="linear":p&&!y?m="sync":m="auto";var b=a(u+"tickmode",m);if(b==="auto"||b==="sync")a(u+"nticks");else if(b==="linear"){var A=s.dtick=uF.dtick(v,n);s.tick0=uF.tick0(c,n,t.calendar,A)}else if(n!=="multicategory"){var w=a(u+"tickvals");w===void 0?s.tickmode="auto":o||a("ticktext")}}});var im=z((EXe,vF)=>{"use strict";var J4=ke(),cF=Gi();vF.exports=function(r,t,a,n){var i=n.isMinor,o=i?r.minor||{}:r,l=i?t.minor:t,s=i?cF.minor:cF,u=i?"minor.":"",f=J4.coerce2(o,l,s,"ticklen",i?(t.ticklen||5)*.6:void 0),c=J4.coerce2(o,l,s,"tickwidth",i?t.tickwidth||1:void 0),v=J4.coerce2(o,l,s,"tickcolor",(i?t.tickcolor:void 0)||l.color),d=a(u+"ticks",!i&&n.outerTicks||f||c||v?"outside":"");d||(delete l.ticklen,delete l.tickwidth,delete l.tickcolor)}});var K4=z((PXe,hF)=>{"use strict";hF.exports=function(r){var t=["showexponent","showtickprefix","showticksuffix"],a=t.filter(function(i){return r[i]!==void 0}),n=function(i){return r[i]===r[a[0]]};if(a.every(n)||a.length===1)return r[a[0]]}});var Po=z((RXe,dF)=>{"use strict";var om=ke(),hbe=Ct();dF.exports=function(r,t,a){var n=a.name,i=a.inclusionAttr||"visible",o=t[n],l=om.isArrayOrTypedArray(r[n])?r[n]:[],s=t[n]=[],u=hbe.arrayTemplater(t,n,i),f,c;for(f=0;f{"use strict";var Q4=ke(),dbe=qr().contrast,pF=Gi(),pbe=K4(),mbe=Po();mF.exports=function(r,t,a,n,i){i||(i={});var o=a("labelalias");Q4.isPlainObject(o)||delete t.labelalias;var l=pbe(r),s=a("showticklabels");if(s){i.noTicklabelshift||a("ticklabelshift"),i.noTicklabelstandoff||a("ticklabelstandoff");var u=i.font||{},f=t.color,c=t.ticklabelposition||"",v=c.indexOf("inside")!==-1?dbe(i.bgColor):f&&f!==pF.color.dflt?f:u.color;if(Q4.coerceFont(a,"tickfont",u,{overrideDflt:{color:v}}),!i.noTicklabelstep&&n!=="multicategory"&&n!=="log"&&a("ticklabelstep"),!i.noAng){var d=a("tickangle");!i.noAutotickangles&&d==="auto"&&a("autotickangles")}if(n!=="category"){var p=a("tickformat");mbe(r,t,{name:"tickformatstops",inclusionAttr:"enabled",handleItemDefaults:ybe}),t.tickformatstops.length||delete t.tickformatstops,!i.noExp&&!p&&n!=="date"&&(a("showexponent",l),a("exponentformat"),a("minexponent"),a("separatethousands"))}!i.noMinorloglabels&&n==="log"&&a("minorloglabels")}};function ybe(e,r){function t(n,i){return Q4.coerce(e,r,pF.tickformatstops,n,i)}var a=t("enabled");a&&(t("dtickrange"),t("value"))}});var sm=z((zXe,yF)=>{"use strict";var gbe=K4();yF.exports=function(r,t,a,n,i){i||(i={});var o=i.tickSuffixDflt,l=gbe(r),s=a("tickprefix");s&&a("showtickprefix",l);var u=a("ticksuffix",o);u&&a("showticksuffix",l)}});var e6=z((NXe,gF)=>{"use strict";var Ps=ke(),bbe=Ct(),xbe=nm(),_be=im(),wbe=lm(),Abe=sm(),Tbe=tm();gF.exports=function(r,t,a){var n=bbe.newContainer(t,"colorbar"),i=r.colorbar||{};function o(P,R){return Ps.coerce(i,n,Tbe,P,R)}var l=a.margin||{t:0,b:0,l:0,r:0},s=a.width-l.l-l.r,u=a.height-l.t-l.b,f=o("orientation"),c=f==="v",v=o("thicknessmode");o("thickness",v==="fraction"?30/(c?s:u):30);var d=o("lenmode");o("len",d==="fraction"?1:c?u:s);var p=o("yref"),y=o("xref"),m=p==="paper",b=y==="paper",A,w,x,_="left";c?(x="middle",_=b?"left":"right",A=b?1.02:1,w=.5):(x=m?"bottom":"top",_="center",A=.5,w=m?1.02:1),Ps.coerce(i,n,{x:{valType:"number",min:b?-2:0,max:b?3:1,dflt:A}},"x"),Ps.coerce(i,n,{y:{valType:"number",min:m?-2:0,max:m?3:1,dflt:w}},"y"),o("xanchor",_),o("xpad"),o("yanchor",x),o("ypad"),Ps.noneOrAll(i,n,["x","y"]),o("outlinecolor"),o("outlinewidth"),o("bordercolor"),o("borderwidth"),o("bgcolor");var k=Ps.coerce(i,n,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:c?["outside","inside","outside top","inside top","outside bottom","inside bottom"]:["outside","inside","outside left","inside left","outside right","inside right"]}},"ticklabelposition");o("ticklabeloverflow",k.indexOf("inside")!==-1?"hide past domain":"hide past div"),xbe(i,n,o,"linear");var T=a.font,q={noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0,outerTicks:!1,font:T};k.indexOf("inside")!==-1&&(q.bgColor="black"),Abe(i,n,o,"linear",q),wbe(i,n,o,"linear",q),_be(i,n,o,"linear",q),o("title.text",a._dfltTitle.colorbar);var C=n.showticklabels?n.tickfont:T,E=Ps.extendFlat({},T,{family:C.family,size:Ps.bigFont(C.size)});Ps.coerceFont(o,"title.font",E),o("title.side",c?"top":"right")}});var jl=z((IXe,_F)=>{"use strict";var bF=Br(),t6=ke(),Mbe=W4(),kbe=e6(),xF=Hu().isValid,Sbe=Tr().traceIs;function r6(e,r){var t=r.slice(0,r.length-1);return r?t6.nestedProperty(e,t).get()||{}:e}_F.exports=function e(r,t,a,n,i){var o=i.prefix,l=i.cLetter,s="_module"in t,u=r6(r,o),f=r6(t,o),c=r6(t._template||{},o)||{},v=function(){return delete r.coloraxis,delete t.coloraxis,e(r,t,a,n,i)};if(s){var d=a._colorAxes||{},p=n(o+"coloraxis");if(p){var y=Sbe(t,"contour")&&t6.nestedProperty(t,"contours.coloring").get()||"heatmap",m=d[p];m?(m[2].push(v),m[0]!==y&&(m[0]=!1,t6.warn(["Ignoring coloraxis:",p,"setting","as it is linked to incompatible colorscales."].join(" ")))):d[p]=[y,t,[v]];return}}var b=u[l+"min"],A=u[l+"max"],w=bF(b)&&bF(A)&&b{"use strict";var wF=ke(),qbe=Ct(),AF=j4(),Lbe=jl();TF.exports=function(r,t){function a(c,v){return wF.coerce(r,t,AF,c,v)}a("colorscale.sequential"),a("colorscale.sequentialminus"),a("colorscale.diverging");var n=t._colorAxes,i,o;function l(c,v){return wF.coerce(i,o,AF.coloraxis,c,v)}for(var s in n){var u=n[s];if(u[0])i=r[s]||{},o=qbe.newContainer(t,s,"coloraxis"),o._name=s,Lbe(i,o,t,l,{prefix:"",cLetter:"c"});else{for(var f=0;f{"use strict";var Cbe=ke(),Dbe=yi().hasColorscale,Ebe=yi().extractOpts;kF.exports=function(r,t){function a(f,c){var v=f["_"+c];v!==void 0&&(f[c]=v)}function n(f,c){var v=c.container?Cbe.nestedProperty(f,c.container).get():f;if(v)if(v.coloraxis)v._colorAx=t[v.coloraxis];else{var d=Ebe(v),p=d.auto;(p||d.min===void 0)&&a(v,c.min),(p||d.max===void 0)&&a(v,c.max),d.autocolorscale&&a(v,"colorscale")}}for(var i=0;i{"use strict";var qF=Br(),a6=ke(),Pbe=yi().extractOpts;LF.exports=function(r,t,a){var n=r._fullLayout,i=a.vals,o=a.containerStr,l=o?a6.nestedProperty(t,o).get():t,s=Pbe(l),u=s.auto!==!1,f=s.min,c=s.max,v=s.mid,d=function(){return a6.aggNums(Math.min,null,i)},p=function(){return a6.aggNums(Math.max,null,i)};if(f===void 0?f=d():u&&(l._colorAx&&qF(f)?f=Math.min(f,d()):f=d()),c===void 0?c=p():u&&(l._colorAx&&qF(c)?c=Math.max(c,p()):c=p()),u&&v!==void 0&&(c-v>v-f?f=v-(c-v):c-v=0?y=n.colorscale.sequential:y=n.colorscale.sequentialminus,s._sync("colorscale",y)}}});var ll=z((UXe,CF)=>{"use strict";var um=Hu(),Qc=yi();CF.exports={moduleType:"component",name:"colorscale",attributes:ol(),layoutAttributes:j4(),supplyLayoutDefaults:MF(),handleDefaults:jl(),crossTraceDefaults:SF(),calc:Kc(),scales:um.scales,defaultScale:um.defaultScale,getScale:um.get,isValidScale:um.isValid,hasColorscale:Qc.hasColorscale,extractOpts:Qc.extractOpts,extractScale:Qc.extractScale,flipScale:Qc.flipScale,makeColorScaleFunc:Qc.makeColorScaleFunc,makeColorScaleFuncFromTrace:Qc.makeColorScaleFuncFromTrace}});var ri=z((GXe,EF)=>{"use strict";var DF=ke(),Rbe=Zn().isTypedArraySpec;EF.exports={hasLines:function(e){return e.visible&&e.mode&&e.mode.indexOf("lines")!==-1},hasMarkers:function(e){return e.visible&&(e.mode&&e.mode.indexOf("markers")!==-1||e.type==="splom")},hasText:function(e){return e.visible&&e.mode&&e.mode.indexOf("text")!==-1},isBubble:function(e){var r=e.marker;return DF.isPlainObject(r)&&(DF.isArrayOrTypedArray(r.size)||Rbe(r.size))}}});var RF=z((YXe,PF)=>{"use strict";var Fbe=Br();PF.exports=function(r,t){t||(t=2);var a=r.marker,n=a.sizeref||1,i=a.sizemin||0,o=a.sizemode==="area"?function(l){return Math.sqrt(l/n)}:function(l){return l/n};return function(l){var s=o(l/t);return Fbe(s)&&s>0?Math.max(s,i):0}}});var Ro=z(ln=>{"use strict";var Fh=ke();ln.getSubplot=function(e){return e.subplot||e.xaxis+e.yaxis||e.geo};ln.isTraceInSubplots=function(e,r){if(e.type==="splom"){for(var t=e.xaxes||[],a=e.yaxes||[],n=0;n=0&&t.index{var n6={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},Bbe=/([astvzqmhlc])([^astvzqmhlc]*)/gi,Obe=/-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/gi;function Hbe(e){let r=[];return e.replace(Bbe,(t,a,n)=>{let i=a.toLowerCase(),o=a,l=Ube(n);for(i==="m"&&l.length>2&&(r.push([o,...l.splice(0,2)]),i="l",o=o==="m"?"l":"L");;){if(l.length===n6[i])return r.push([o,...l]),"";if(l.length{"use strict";var Gbe=i6(),Qe=function(e,r){return r?Math.round(e*(r=Math.pow(10,r)))/r:Math.round(e)},Rr="M0,0Z",IF=Math.sqrt(2),Rs=Math.sqrt(3),o6=Math.PI,l6=Math.cos,s6=Math.sin;GF.exports={circle:{n:0,f:function(e,r,t){if(Fr(r))return Rr;var a=Qe(e,2),n="M"+a+",0A"+a+","+a+" 0 1,1 0,-"+a+"A"+a+","+a+" 0 0,1 "+a+",0Z";return t?zr(r,t,n):n}},square:{n:1,f:function(e,r,t){if(Fr(r))return Rr;var a=Qe(e,2);return zr(r,t,"M"+a+","+a+"H-"+a+"V-"+a+"H"+a+"Z")}},diamond:{n:2,f:function(e,r,t){if(Fr(r))return Rr;var a=Qe(e*1.3,2);return zr(r,t,"M"+a+",0L0,"+a+"L-"+a+",0L0,-"+a+"Z")}},cross:{n:3,f:function(e,r,t){if(Fr(r))return Rr;var a=Qe(e*.4,2),n=Qe(e*1.2,2);return zr(r,t,"M"+n+","+a+"H"+a+"V"+n+"H-"+a+"V"+a+"H-"+n+"V-"+a+"H-"+a+"V-"+n+"H"+a+"V-"+a+"H"+n+"Z")}},x:{n:4,f:function(e,r,t){if(Fr(r))return Rr;var a=Qe(e*.8/IF,2),n="l"+a+","+a,i="l"+a+",-"+a,o="l-"+a+",-"+a,l="l-"+a+","+a;return zr(r,t,"M0,"+a+n+i+o+i+o+l+o+l+n+l+n+"Z")}},"triangle-up":{n:5,f:function(e,r,t){if(Fr(r))return Rr;var a=Qe(e*2/Rs,2),n=Qe(e/2,2),i=Qe(e,2);return zr(r,t,"M-"+a+","+n+"H"+a+"L0,-"+i+"Z")}},"triangle-down":{n:6,f:function(e,r,t){if(Fr(r))return Rr;var a=Qe(e*2/Rs,2),n=Qe(e/2,2),i=Qe(e,2);return zr(r,t,"M-"+a+",-"+n+"H"+a+"L0,"+i+"Z")}},"triangle-left":{n:7,f:function(e,r,t){if(Fr(r))return Rr;var a=Qe(e*2/Rs,2),n=Qe(e/2,2),i=Qe(e,2);return zr(r,t,"M"+n+",-"+a+"V"+a+"L-"+i+",0Z")}},"triangle-right":{n:8,f:function(e,r,t){if(Fr(r))return Rr;var a=Qe(e*2/Rs,2),n=Qe(e/2,2),i=Qe(e,2);return zr(r,t,"M-"+n+",-"+a+"V"+a+"L"+i+",0Z")}},"triangle-ne":{n:9,f:function(e,r,t){if(Fr(r))return Rr;var a=Qe(e*.6,2),n=Qe(e*1.2,2);return zr(r,t,"M-"+n+",-"+a+"H"+a+"V"+n+"Z")}},"triangle-se":{n:10,f:function(e,r,t){if(Fr(r))return Rr;var a=Qe(e*.6,2),n=Qe(e*1.2,2);return zr(r,t,"M"+a+",-"+n+"V"+a+"H-"+n+"Z")}},"triangle-sw":{n:11,f:function(e,r,t){if(Fr(r))return Rr;var a=Qe(e*.6,2),n=Qe(e*1.2,2);return zr(r,t,"M"+n+","+a+"H-"+a+"V-"+n+"Z")}},"triangle-nw":{n:12,f:function(e,r,t){if(Fr(r))return Rr;var a=Qe(e*.6,2),n=Qe(e*1.2,2);return zr(r,t,"M-"+a+","+n+"V-"+a+"H"+n+"Z")}},pentagon:{n:13,f:function(e,r,t){if(Fr(r))return Rr;var a=Qe(e*.951,2),n=Qe(e*.588,2),i=Qe(-e,2),o=Qe(e*-.309,2),l=Qe(e*.809,2);return zr(r,t,"M"+a+","+o+"L"+n+","+l+"H-"+n+"L-"+a+","+o+"L0,"+i+"Z")}},hexagon:{n:14,f:function(e,r,t){if(Fr(r))return Rr;var a=Qe(e,2),n=Qe(e/2,2),i=Qe(e*Rs/2,2);return zr(r,t,"M"+i+",-"+n+"V"+n+"L0,"+a+"L-"+i+","+n+"V-"+n+"L0,-"+a+"Z")}},hexagon2:{n:15,f:function(e,r,t){if(Fr(r))return Rr;var a=Qe(e,2),n=Qe(e/2,2),i=Qe(e*Rs/2,2);return zr(r,t,"M-"+n+","+i+"H"+n+"L"+a+",0L"+n+",-"+i+"H-"+n+"L-"+a+",0Z")}},octagon:{n:16,f:function(e,r,t){if(Fr(r))return Rr;var a=Qe(e*.924,2),n=Qe(e*.383,2);return zr(r,t,"M-"+n+",-"+a+"H"+n+"L"+a+",-"+n+"V"+n+"L"+n+","+a+"H-"+n+"L-"+a+","+n+"V-"+n+"Z")}},star:{n:17,f:function(e,r,t){if(Fr(r))return Rr;var a=e*1.4,n=Qe(a*.225,2),i=Qe(a*.951,2),o=Qe(a*.363,2),l=Qe(a*.588,2),s=Qe(-a,2),u=Qe(a*-.309,2),f=Qe(a*.118,2),c=Qe(a*.809,2),v=Qe(a*.382,2);return zr(r,t,"M"+n+","+u+"H"+i+"L"+o+","+f+"L"+l+","+c+"L0,"+v+"L-"+l+","+c+"L-"+o+","+f+"L-"+i+","+u+"H-"+n+"L0,"+s+"Z")}},hexagram:{n:18,f:function(e,r,t){if(Fr(r))return Rr;var a=Qe(e*.66,2),n=Qe(e*.38,2),i=Qe(e*.76,2);return zr(r,t,"M-"+i+",0l-"+n+",-"+a+"h"+i+"l"+n+",-"+a+"l"+n+","+a+"h"+i+"l-"+n+","+a+"l"+n+","+a+"h-"+i+"l-"+n+","+a+"l-"+n+",-"+a+"h-"+i+"Z")}},"star-triangle-up":{n:19,f:function(e,r,t){if(Fr(r))return Rr;var a=Qe(e*Rs*.8,2),n=Qe(e*.8,2),i=Qe(e*1.6,2),o=Qe(e*4,2),l="A "+o+","+o+" 0 0 1 ";return zr(r,t,"M-"+a+","+n+l+a+","+n+l+"0,-"+i+l+"-"+a+","+n+"Z")}},"star-triangle-down":{n:20,f:function(e,r,t){if(Fr(r))return Rr;var a=Qe(e*Rs*.8,2),n=Qe(e*.8,2),i=Qe(e*1.6,2),o=Qe(e*4,2),l="A "+o+","+o+" 0 0 1 ";return zr(r,t,"M"+a+",-"+n+l+"-"+a+",-"+n+l+"0,"+i+l+a+",-"+n+"Z")}},"star-square":{n:21,f:function(e,r,t){if(Fr(r))return Rr;var a=Qe(e*1.1,2),n=Qe(e*2,2),i="A "+n+","+n+" 0 0 1 ";return zr(r,t,"M-"+a+",-"+a+i+"-"+a+","+a+i+a+","+a+i+a+",-"+a+i+"-"+a+",-"+a+"Z")}},"star-diamond":{n:22,f:function(e,r,t){if(Fr(r))return Rr;var a=Qe(e*1.4,2),n=Qe(e*1.9,2),i="A "+n+","+n+" 0 0 1 ";return zr(r,t,"M-"+a+",0"+i+"0,"+a+i+a+",0"+i+"0,-"+a+i+"-"+a+",0Z")}},"diamond-tall":{n:23,f:function(e,r,t){if(Fr(r))return Rr;var a=Qe(e*.7,2),n=Qe(e*1.4,2);return zr(r,t,"M0,"+n+"L"+a+",0L0,-"+n+"L-"+a+",0Z")}},"diamond-wide":{n:24,f:function(e,r,t){if(Fr(r))return Rr;var a=Qe(e*1.4,2),n=Qe(e*.7,2);return zr(r,t,"M0,"+n+"L"+a+",0L0,-"+n+"L-"+a+",0Z")}},hourglass:{n:25,f:function(e,r,t){if(Fr(r))return Rr;var a=Qe(e,2);return zr(r,t,"M"+a+","+a+"H-"+a+"L"+a+",-"+a+"H-"+a+"Z")},noDot:!0},bowtie:{n:26,f:function(e,r,t){if(Fr(r))return Rr;var a=Qe(e,2);return zr(r,t,"M"+a+","+a+"V-"+a+"L-"+a+","+a+"V-"+a+"Z")},noDot:!0},"circle-cross":{n:27,f:function(e,r,t){if(Fr(r))return Rr;var a=Qe(e,2);return zr(r,t,"M0,"+a+"V-"+a+"M"+a+",0H-"+a+"M"+a+",0A"+a+","+a+" 0 1,1 0,-"+a+"A"+a+","+a+" 0 0,1 "+a+",0Z")},needLine:!0,noDot:!0},"circle-x":{n:28,f:function(e,r,t){if(Fr(r))return Rr;var a=Qe(e,2),n=Qe(e/IF,2);return zr(r,t,"M"+n+","+n+"L-"+n+",-"+n+"M"+n+",-"+n+"L-"+n+","+n+"M"+a+",0A"+a+","+a+" 0 1,1 0,-"+a+"A"+a+","+a+" 0 0,1 "+a+",0Z")},needLine:!0,noDot:!0},"square-cross":{n:29,f:function(e,r,t){if(Fr(r))return Rr;var a=Qe(e,2);return zr(r,t,"M0,"+a+"V-"+a+"M"+a+",0H-"+a+"M"+a+","+a+"H-"+a+"V-"+a+"H"+a+"Z")},needLine:!0,noDot:!0},"square-x":{n:30,f:function(e,r,t){if(Fr(r))return Rr;var a=Qe(e,2);return zr(r,t,"M"+a+","+a+"L-"+a+",-"+a+"M"+a+",-"+a+"L-"+a+","+a+"M"+a+","+a+"H-"+a+"V-"+a+"H"+a+"Z")},needLine:!0,noDot:!0},"diamond-cross":{n:31,f:function(e,r,t){if(Fr(r))return Rr;var a=Qe(e*1.3,2);return zr(r,t,"M"+a+",0L0,"+a+"L-"+a+",0L0,-"+a+"ZM0,-"+a+"V"+a+"M-"+a+",0H"+a)},needLine:!0,noDot:!0},"diamond-x":{n:32,f:function(e,r,t){if(Fr(r))return Rr;var a=Qe(e*1.3,2),n=Qe(e*.65,2);return zr(r,t,"M"+a+",0L0,"+a+"L-"+a+",0L0,-"+a+"ZM-"+n+",-"+n+"L"+n+","+n+"M-"+n+","+n+"L"+n+",-"+n)},needLine:!0,noDot:!0},"cross-thin":{n:33,f:function(e,r,t){if(Fr(r))return Rr;var a=Qe(e*1.4,2);return zr(r,t,"M0,"+a+"V-"+a+"M"+a+",0H-"+a)},needLine:!0,noDot:!0,noFill:!0},"x-thin":{n:34,f:function(e,r,t){if(Fr(r))return Rr;var a=Qe(e,2);return zr(r,t,"M"+a+","+a+"L-"+a+",-"+a+"M"+a+",-"+a+"L-"+a+","+a)},needLine:!0,noDot:!0,noFill:!0},asterisk:{n:35,f:function(e,r,t){if(Fr(r))return Rr;var a=Qe(e*1.2,2),n=Qe(e*.85,2);return zr(r,t,"M0,"+a+"V-"+a+"M"+a+",0H-"+a+"M"+n+","+n+"L-"+n+",-"+n+"M"+n+",-"+n+"L-"+n+","+n)},needLine:!0,noDot:!0,noFill:!0},hash:{n:36,f:function(e,r,t){if(Fr(r))return Rr;var a=Qe(e/2,2),n=Qe(e,2);return zr(r,t,"M"+a+","+n+"V-"+n+"M"+(a-n)+",-"+n+"V"+n+"M"+n+","+a+"H-"+n+"M-"+n+","+(a-n)+"H"+n)},needLine:!0,noFill:!0},"y-up":{n:37,f:function(e,r,t){if(Fr(r))return Rr;var a=Qe(e*1.2,2),n=Qe(e*1.6,2),i=Qe(e*.8,2);return zr(r,t,"M-"+a+","+i+"L0,0M"+a+","+i+"L0,0M0,-"+n+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-down":{n:38,f:function(e,r,t){if(Fr(r))return Rr;var a=Qe(e*1.2,2),n=Qe(e*1.6,2),i=Qe(e*.8,2);return zr(r,t,"M-"+a+",-"+i+"L0,0M"+a+",-"+i+"L0,0M0,"+n+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-left":{n:39,f:function(e,r,t){if(Fr(r))return Rr;var a=Qe(e*1.2,2),n=Qe(e*1.6,2),i=Qe(e*.8,2);return zr(r,t,"M"+i+","+a+"L0,0M"+i+",-"+a+"L0,0M-"+n+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-right":{n:40,f:function(e,r,t){if(Fr(r))return Rr;var a=Qe(e*1.2,2),n=Qe(e*1.6,2),i=Qe(e*.8,2);return zr(r,t,"M-"+i+","+a+"L0,0M-"+i+",-"+a+"L0,0M"+n+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"line-ew":{n:41,f:function(e,r,t){if(Fr(r))return Rr;var a=Qe(e*1.4,2);return zr(r,t,"M"+a+",0H-"+a)},needLine:!0,noDot:!0,noFill:!0},"line-ns":{n:42,f:function(e,r,t){if(Fr(r))return Rr;var a=Qe(e*1.4,2);return zr(r,t,"M0,"+a+"V-"+a)},needLine:!0,noDot:!0,noFill:!0},"line-ne":{n:43,f:function(e,r,t){if(Fr(r))return Rr;var a=Qe(e,2);return zr(r,t,"M"+a+",-"+a+"L-"+a+","+a)},needLine:!0,noDot:!0,noFill:!0},"line-nw":{n:44,f:function(e,r,t){if(Fr(r))return Rr;var a=Qe(e,2);return zr(r,t,"M"+a+","+a+"L-"+a+",-"+a)},needLine:!0,noDot:!0,noFill:!0},"arrow-up":{n:45,f:function(e,r,t){if(Fr(r))return Rr;var a=Qe(e,2),n=Qe(e*2,2);return zr(r,t,"M0,0L-"+a+","+n+"H"+a+"Z")},backoff:1,noDot:!0},"arrow-down":{n:46,f:function(e,r,t){if(Fr(r))return Rr;var a=Qe(e,2),n=Qe(e*2,2);return zr(r,t,"M0,0L-"+a+",-"+n+"H"+a+"Z")},noDot:!0},"arrow-left":{n:47,f:function(e,r,t){if(Fr(r))return Rr;var a=Qe(e*2,2),n=Qe(e,2);return zr(r,t,"M0,0L"+a+",-"+n+"V"+n+"Z")},noDot:!0},"arrow-right":{n:48,f:function(e,r,t){if(Fr(r))return Rr;var a=Qe(e*2,2),n=Qe(e,2);return zr(r,t,"M0,0L-"+a+",-"+n+"V"+n+"Z")},noDot:!0},"arrow-bar-up":{n:49,f:function(e,r,t){if(Fr(r))return Rr;var a=Qe(e,2),n=Qe(e*2,2);return zr(r,t,"M-"+a+",0H"+a+"M0,0L-"+a+","+n+"H"+a+"Z")},backoff:1,needLine:!0,noDot:!0},"arrow-bar-down":{n:50,f:function(e,r,t){if(Fr(r))return Rr;var a=Qe(e,2),n=Qe(e*2,2);return zr(r,t,"M-"+a+",0H"+a+"M0,0L-"+a+",-"+n+"H"+a+"Z")},needLine:!0,noDot:!0},"arrow-bar-left":{n:51,f:function(e,r,t){if(Fr(r))return Rr;var a=Qe(e*2,2),n=Qe(e,2);return zr(r,t,"M0,-"+n+"V"+n+"M0,0L"+a+",-"+n+"V"+n+"Z")},needLine:!0,noDot:!0},"arrow-bar-right":{n:52,f:function(e,r,t){if(Fr(r))return Rr;var a=Qe(e*2,2),n=Qe(e,2);return zr(r,t,"M0,-"+n+"V"+n+"M0,0L-"+a+",-"+n+"V"+n+"Z")},needLine:!0,noDot:!0},arrow:{n:53,f:function(e,r,t){if(Fr(r))return Rr;var a=o6/2.5,n=2*e*l6(a),i=2*e*s6(a);return zr(r,t,"M0,0L"+-n+","+i+"L"+n+","+i+"Z")},backoff:.9,noDot:!0},"arrow-wide":{n:54,f:function(e,r,t){if(Fr(r))return Rr;var a=o6/4,n=2*e*l6(a),i=2*e*s6(a);return zr(r,t,"M0,0L"+-n+","+i+"A "+2*e+","+2*e+" 0 0 1 "+n+","+i+"Z")},backoff:.4,noDot:!0}};function Fr(e){return e===null}var BF,OF,HF,UF;function zr(e,r,t){if((!e||e%360===0)&&!r)return t;if(HF===e&&UF===r&&BF===t)return OF;HF=e,UF=r,BF=t;function a(m,b){var A=l6(m),w=s6(m),x=b[0],_=b[1]+(r||0);return[x*A-_*w,x*w+_*A]}for(var n=e/180*o6,i=0,o=0,l=Gbe(t),s="",u=0;u{"use strict";var Oa=Pr(),xt=ke(),Ybe=xt.numberFormat,Fs=Br(),cm=Tr(),za=qr(),Vbe=ll(),Nh=xt.strTranslate,vm=Fa(),jbe=(Vl(),ze(Yl)),Wbe=(on(),ze(nn)),Xbe=Wbe.LINE_SPACING,ez=(_p(),ze(xp)).DESELECTDIM,Zbe=ri(),$be=RF(),Jbe=Ro().appendArrayPointValue,rr={};fz.exports=rr;rr.font=function(e,r){var t=r.variant,a=r.style,n=r.weight,i=r.color,o=r.size,l=r.family,s=r.shadow,u=r.lineposition,f=r.textcase;l&&e.style("font-family",l),o+1&&e.style("font-size",o+"px"),i&&e.call(za.fill,i),n&&e.style("font-weight",n),a&&e.style("font-style",a),t&&e.style("font-variant",t),f&&e.style("text-transform",u6(Qbe(f))),s&&e.style("text-shadow",s==="auto"?vm.makeTextShadow(za.contrast(i)):u6(s)),u&&e.style("text-decoration-line",u6(exe(u)))};function u6(e){return e==="none"?void 0:e}var Kbe={normal:"none",lower:"lowercase",upper:"uppercase","word caps":"capitalize"};function Qbe(e){return Kbe[e]}function exe(e){return e.replace("under","underline").replace("over","overline").replace("through","line-through").split("+").join(" ")}rr.setPosition=function(e,r,t){e.attr("x",r).attr("y",t)};rr.setSize=function(e,r,t){e.attr("width",r).attr("height",t)};rr.setRect=function(e,r,t,a,n){e.call(rr.setPosition,r,t).call(rr.setSize,a,n)};rr.translatePoint=function(e,r,t,a){var n=t.c2p(e.x),i=a.c2p(e.y);if(Fs(n)&&Fs(i)&&r.node())r.node().nodeName==="text"?r.attr("x",n).attr("y",i):r.attr("transform",Nh(n,i));else return!1;return!0};rr.translatePoints=function(e,r,t){e.each(function(a){var n=Oa.select(this);rr.translatePoint(a,n,r,t)})};rr.hideOutsideRangePoint=function(e,r,t,a,n,i){r.attr("display",t.isPtWithinRange(e,n)&&a.isPtWithinRange(e,i)?null:"none")};rr.hideOutsideRangePoints=function(e,r){if(r._hasClipOnAxisFalse){var t=r.xaxis,a=r.yaxis;e.each(function(n){var i=n[0].trace,o=i.xcalendar,l=i.ycalendar,s=cm.traceIs(i,"bar-like")?".bartext":".point,.textpoint";e.selectAll(s).each(function(u){rr.hideOutsideRangePoint(u,Oa.select(this),t,a,o,l)})})}};rr.crispRound=function(e,r,t){return!r||!Fs(r)?t||0:e._context.staticPlot?r:r<1?1:Math.round(r)};rr.singleLineStyle=function(e,r,t,a,n){r.style("fill","none");var i=(((e||[])[0]||{}).trace||{}).line||{},o=t||i.width||0,l=n||i.dash||"";za.stroke(r,a||i.color),rr.dashLine(r,l,o)};rr.lineGroupStyle=function(e,r,t,a){e.style("fill","none").each(function(n){var i=(((n||[])[0]||{}).trace||{}).line||{},o=r||i.width||0,l=a||i.dash||"";Oa.select(this).call(za.stroke,t||i.color).call(rr.dashLine,l,o)})};rr.dashLine=function(e,r,t){t=+t||0,r=rr.dashStyle(r,t),e.style({"stroke-dasharray":r,"stroke-width":t+"px"})};rr.dashStyle=function(e,r){r=+r||1;var t=Math.max(r,3);return e==="solid"?e="":e==="dot"?e=t+"px,"+t+"px":e==="dash"?e=3*t+"px,"+3*t+"px":e==="longdash"?e=5*t+"px,"+5*t+"px":e==="dashdot"?e=3*t+"px,"+t+"px,"+t+"px,"+t+"px":e==="longdashdot"&&(e=5*t+"px,"+2*t+"px,"+t+"px,"+2*t+"px"),e};function rz(e,r,t,a){var n=r.fillpattern,i=r.fillgradient,o=rr.getPatternAttr,l=n&&(o(n.shape,0,"")||o(n.path,0,""));if(l){var s=o(n.bgcolor,0,null),u=o(n.fgcolor,0,null),f=n.fgopacity,c=o(n.size,0,8),v=o(n.solidity,0,.3),d=r.uid;rr.pattern(e,"point",t,d,l,c,v,void 0,n.fillmode,s,u,f)}else if(i&&i.type!=="none"){var p=i.type,y="scatterfill-"+r.uid;if(a&&(y="legendfill-"+r.uid),!a&&(i.start!==void 0||i.stop!==void 0)){var m,b;p==="horizontal"?(m={x:i.start,y:0},b={x:i.stop,y:0}):p==="vertical"&&(m={x:0,y:i.start},b={x:0,y:i.stop}),m.x=r._xA.c2p(m.x===void 0?r._extremes.x.min[0].val:m.x,!0),m.y=r._yA.c2p(m.y===void 0?r._extremes.y.min[0].val:m.y,!0),b.x=r._xA.c2p(b.x===void 0?r._extremes.x.max[0].val:b.x,!0),b.y=r._yA.c2p(b.y===void 0?r._extremes.y.max[0].val:b.y,!0),e.call(nz,t,y,"linear",i.colorscale,"fill",m,b,!0,!1)}else p==="horizontal"&&(p=p+"reversed"),e.call(rr.gradient,t,y,p,i.colorscale,"fill")}else r.fillcolor&&e.call(za.fill,r.fillcolor)}rr.singleFillStyle=function(e,r){var t=Oa.select(e.node()),a=t.data(),n=((a[0]||[])[0]||{}).trace||{};rz(e,n,r,!1)};rr.fillGroupStyle=function(e,r,t){e.style("stroke-width",0).each(function(a){var n=Oa.select(this);a[0].trace&&rz(n,a[0].trace,r,t)})};var VF=YF();rr.symbolNames=[];rr.symbolFuncs=[];rr.symbolBackOffs=[];rr.symbolNeedLines={};rr.symbolNoDot={};rr.symbolNoFill={};rr.symbolList=[];Object.keys(VF).forEach(function(e){var r=VF[e],t=r.n;rr.symbolList.push(t,String(t),e,t+100,String(t+100),e+"-open"),rr.symbolNames[t]=e,rr.symbolFuncs[t]=r.f,rr.symbolBackOffs[t]=r.backoff||0,r.needLine&&(rr.symbolNeedLines[t]=!0),r.noDot?rr.symbolNoDot[t]=!0:rr.symbolList.push(t+200,String(t+200),e+"-dot",t+300,String(t+300),e+"-open-dot"),r.noFill&&(rr.symbolNoFill[t]=!0)});var rxe=rr.symbolNames.length,txe="M0,0.5L0.5,0L0,-0.5L-0.5,0Z";rr.symbolNumber=function(e){if(Fs(e))e=+e;else if(typeof e=="string"){var r=0;e.indexOf("-open")>0&&(r=100,e=e.replace("-open","")),e.indexOf("-dot")>0&&(r+=200,e=e.replace("-dot","")),e=rr.symbolNames.indexOf(e),e>=0&&(e+=r)}return e%100>=rxe||e>=400?0:Math.floor(Math.max(e,0))};function tz(e,r,t,a){var n=e%100;return rr.symbolFuncs[n](r,t,a)+(e>=200?txe:"")}var jF=Ybe("~f"),az={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}};rr.gradient=function(e,r,t,a,n,i){var o=az[a];return nz(e,r,t,o.type,n,i,o.start,o.stop,!1,o.reversed)};function nz(e,r,t,a,n,i,o,l,s,u){var f=n.length,c;a==="linear"?c={node:"linearGradient",attrs:{x1:o.x,y1:o.y,x2:l.x,y2:l.y,gradientUnits:s?"userSpaceOnUse":"objectBoundingBox"},reversed:u}:a==="radial"&&(c={node:"radialGradient",reversed:u});for(var v=new Array(f),d=0;d=0&&e.i===void 0&&(e.i=i.i),r.style("opacity",a.selectedOpacityFn?a.selectedOpacityFn(e):e.mo===void 0?o.opacity:e.mo),a.ms2mrc){var s;e.ms==="various"||o.size==="various"?s=3:s=a.ms2mrc(e.ms),e.mrc=s,a.selectedSizeFn&&(s=e.mrc=a.selectedSizeFn(e));var u=rr.symbolNumber(e.mx||o.symbol)||0;e.om=u%200>=100;var f=m6(e,t),c=p6(e,t);r.attr("d",tz(u,s,f,c))}var v=!1,d,p,y;if(e.so)y=l.outlierwidth,p=l.outliercolor,d=o.outliercolor;else{var m=(l||{}).width;y=(e.mlw+1||m+1||(e.trace?(e.trace.marker.line||{}).width:0)+1)-1||0,"mlc"in e?p=e.mlcc=a.lineScale(e.mlc):xt.isArrayOrTypedArray(l.color)?p=za.defaultLine:p=l.color,xt.isArrayOrTypedArray(o.color)&&(d=za.defaultLine,v=!0),"mc"in e?d=e.mcc=a.markerScale(e.mc):d=o.color||o.colors||"rgba(0,0,0,0)",a.selectedColorFn&&(d=a.selectedColorFn(e))}let b=e.mld||(l||{}).dash;if(b&&rr.dashLine(r,b,y),e.om)r.call(za.stroke,d).style({"stroke-width":(y||1)+"px",fill:"none"});else{r.style("stroke-width",(e.isBlank?0:y)+"px");var A=o.gradient,w=e.mgt;w?v=!0:w=A&&A.type,xt.isArrayOrTypedArray(w)&&(w=w[0],az[w]||(w=0));var x=o.pattern,_=rr.getPatternAttr,k=x&&(_(x.shape,e.i,"")||_(x.path,e.i,""));if(w&&w!=="none"){var T=e.mgc;T?v=!0:T=A.color;var q=t.uid;v&&(q+="-"+e.i),rr.gradient(r,n,q,w,[[0,T],[1,d]],"fill")}else if(k){var C=!1,E=x.fgcolor;!E&&i&&i.color&&(E=i.color,C=!0);var P=_(E,e.i,i&&i.color||null),R=_(x.bgcolor,e.i,null),N=x.fgopacity,I=_(x.size,e.i,8),O=_(x.solidity,e.i,.3);C=C||e.mcc||xt.isArrayOrTypedArray(x.shape)||xt.isArrayOrTypedArray(x.path)||xt.isArrayOrTypedArray(x.bgcolor)||xt.isArrayOrTypedArray(x.fgcolor)||xt.isArrayOrTypedArray(x.size)||xt.isArrayOrTypedArray(x.solidity);var U=t.uid;C&&(U+="-"+e.i),rr.pattern(r,"point",n,U,k,I,O,e.mcc,x.fillmode,R,P,N)}else xt.isArrayOrTypedArray(d)?za.fill(r,d[e.i]):za.fill(r,d);y&&za.stroke(r,p)}};rr.makePointStyleFns=function(e){var r={},t=e.marker;return r.markerScale=rr.tryColorscale(t,""),r.lineScale=rr.tryColorscale(t,"line"),cm.traceIs(e,"symbols")&&(r.ms2mrc=Zbe.isBubble(e)?$be(e):function(){return(t.size||6)/2}),e.selectedpoints&&xt.extendFlat(r,rr.makeSelectedPointStyleFns(e)),r};rr.makeSelectedPointStyleFns=function(e){var r={},t=e.selected||{},a=e.unselected||{},n=e.marker||{},i=t.marker||{},o=a.marker||{},l=n.opacity,s=i.opacity,u=o.opacity,f=s!==void 0,c=u!==void 0;(xt.isArrayOrTypedArray(l)||f||c)&&(r.selectedOpacityFn=function(x){var _=x.mo===void 0?n.opacity:x.mo;return x.selected?f?s:_:c?u:ez*_});var v=n.color,d=i.color,p=o.color;(d||p)&&(r.selectedColorFn=function(x){var _=x.mcc||v;return x.selected?d||_:p||_});var y=n.size,m=i.size,b=o.size,A=m!==void 0,w=b!==void 0;return cm.traceIs(e,"symbols")&&(A||w)&&(r.selectedSizeFn=function(x){var _=x.mrc||y/2;return x.selected?A?m/2:_:w?b/2:_}),r};rr.makeSelectedTextStyleFns=function(e){var r={},t=e.selected||{},a=e.unselected||{},n=e.textfont||{},i=t.textfont||{},o=a.textfont||{},l=n.color,s=i.color,u=o.color;return r.selectedTextColorFn=function(f){var c=f.tc||l;return f.selected?s||c:u||(s?c:za.addOpacity(c,ez))},r};rr.selectedPointStyle=function(e,r){if(!(!e.size()||!r.selectedpoints)){var t=rr.makeSelectedPointStyleFns(r),a=r.marker||{},n=[];t.selectedOpacityFn&&n.push(function(i,o){i.style("opacity",t.selectedOpacityFn(o))}),t.selectedColorFn&&n.push(function(i,o){za.fill(i,t.selectedColorFn(o))}),t.selectedSizeFn&&n.push(function(i,o){var l=o.mx||a.symbol||0,s=t.selectedSizeFn(o);i.attr("d",tz(rr.symbolNumber(l),s,m6(o,r),p6(o,r))),o.mrc2=s}),n.length&&e.each(function(i){for(var o=Oa.select(this),l=0;l0?t:0}rr.textPointStyle=function(e,r,t){if(e.size()){var a;if(r.selectedpoints){var n=rr.makeSelectedTextStyleFns(r);a=n.selectedTextColorFn}var i=r.texttemplate,o=t._fullLayout;e.each(function(l){var s=Oa.select(this),u=i?xt.extractOption(l,r,"txt","texttemplate"):xt.extractOption(l,r,"tx","text");if(!u&&u!==0){s.remove();return}if(i){var f=r._module.formatLabels,c=f?f(l,r,o):{},v={};Jbe(v,r,l.i),u=xt.texttemplateString({data:[v,l,r._meta],fallback:r.texttemplatefallback,labels:c,locale:o._d3locale,template:u})}var d=l.tp||r.textposition,p=oz(l,r),y=a?a(l):l.tc||r.textfont.color;s.call(rr.font,{family:l.tf||r.textfont.family,weight:l.tw||r.textfont.weight,style:l.ty||r.textfont.style,variant:l.tv||r.textfont.variant,textcase:l.tC||r.textfont.textcase,lineposition:l.tE||r.textfont.lineposition,shadow:l.tS||r.textfont.shadow,size:p,color:y}).text(u).call(vm.convertToTspans,t).call(iz,d,p,l.mrc)})}};rr.selectedTextStyle=function(e,r){if(!(!e.size()||!r.selectedpoints)){var t=rr.makeSelectedTextStyleFns(r);e.each(function(a){var n=Oa.select(this),i=t.selectedTextColorFn(a),o=a.tp||r.textposition,l=oz(a,r);za.fill(n,i);var s=cm.traceIs(r,"bar-like");iz(n,o,l,a.mrc2||a.mrc,s)})}};var WF=.5;rr.smoothopen=function(e,r){if(e.length<3)return"M"+e.join("L");var t="M"+e[0],a=[],n;for(n=1;n=s||x>=f&&x<=s)&&(_<=c&&_>=u||_>=c&&_<=u)&&(e=[x,_])}return e}rr.applyBackoff=uz;rr.makeTester=function(){var e=xt.ensureSingleById(Oa.select("body"),"svg","js-plotly-tester",function(t){t.attr(jbe.svgAttrs).style({position:"absolute",left:"-10000px",top:"-10000px",width:"9000px",height:"9000px","z-index":"1"})}),r=xt.ensureSingle(e,"path","js-reference-point",function(t){t.attr("d","M0,0H1V1H0Z").style({"stroke-width":0,fill:"black"})});rr.tester=e,rr.testref=r};rr.savedBBoxes={};var c6=0,ixe=1e4;rr.bBox=function(e,r,t){t||(t=XF(e));var a;if(t){if(a=rr.savedBBoxes[t],a)return xt.extendFlat({},a)}else if(e.childNodes.length===1){var n=e.childNodes[0];if(t=XF(n),t){var i=+n.getAttribute("x")||0,o=+n.getAttribute("y")||0,l=n.getAttribute("transform");if(!l){var s=rr.bBox(n,!1,t);return i&&(s.left+=i,s.right+=i),o&&(s.top+=o,s.bottom+=o),s}if(t+="~"+i+"~"+o+"~"+l,a=rr.savedBBoxes[t],a)return xt.extendFlat({},a)}}var u,f;r?u=e:(f=rr.tester.node(),u=e.cloneNode(!0),f.appendChild(u)),Oa.select(u).attr("transform",null).call(vm.positionText,0,0);var c=u.getBoundingClientRect(),v=rr.testref.node().getBoundingClientRect();r||f.removeChild(u);var d={height:c.height,width:c.width,left:c.left-v.left,top:c.top-v.top,right:c.right-v.left,bottom:c.bottom-v.top};return c6>=ixe&&(rr.savedBBoxes={},c6=0),t&&(rr.savedBBoxes[t]=d),c6++,xt.extendFlat({},d)};function XF(e){var r=e.getAttribute("data-unformatted");if(r!==null)return r+e.getAttribute("data-math")+e.getAttribute("text-anchor")+e.getAttribute("style")}rr.setClipUrl=function(e,r,t){e.attr("clip-path",d6(r,t))};function d6(e,r){if(!e)return null;var t=r._context,a=t._exportedPlot?"":t._baseUrl||"";return a?"url('"+a+"#"+e+"')":"url(#"+e+")"}rr.getTranslate=function(e){var r=/.*\btranslate\((-?\d*\.?\d*)[^-\d]*(-?\d*\.?\d*)[^\d].*/,t=e.attr?"attr":"getAttribute",a=e[t]("transform")||"",n=a.replace(r,function(i,o,l){return[o,l].join(" ")}).split(" ");return{x:+n[0]||0,y:+n[1]||0}};rr.setTranslate=function(e,r,t){var a=/(\btranslate\(.*?\);?)/,n=e.attr?"attr":"getAttribute",i=e.attr?"attr":"setAttribute",o=e[n]("transform")||"";return r=r||0,t=t||0,o=o.replace(a,"").trim(),o+=Nh(r,t),o=o.trim(),e[i]("transform",o),o};rr.getScale=function(e){var r=/.*\bscale\((\d*\.?\d*)[^\d]*(\d*\.?\d*)[^\d].*/,t=e.attr?"attr":"getAttribute",a=e[t]("transform")||"",n=a.replace(r,function(i,o,l){return[o,l].join(" ")}).split(" ");return{x:+n[0]||1,y:+n[1]||1}};rr.setScale=function(e,r,t){var a=/(\bscale\(.*?\);?)/,n=e.attr?"attr":"getAttribute",i=e.attr?"attr":"setAttribute",o=e[n]("transform")||"";return r=r||1,t=t||1,o=o.replace(a,"").trim(),o+="scale("+r+","+t+")",o=o.trim(),e[i]("transform",o),o};var oxe=/\s*sc.*/;rr.setPointGroupScale=function(e,r,t){if(r=r||1,t=t||1,!!e){var a=r===1&&t===1?"":"scale("+r+","+t+")";e.each(function(){var n=(this.getAttribute("transform")||"").replace(oxe,"");n+=a,n=n.trim(),this.setAttribute("transform",n)})}};var lxe=/translate\([^)]*\)\s*$/;rr.setTextPointsScale=function(e,r,t){e&&e.each(function(){var a,n=Oa.select(this),i=n.select("text");if(i.node()){var o=parseFloat(i.attr("x")||0),l=parseFloat(i.attr("y")||0),s=(n.attr("transform")||"").match(lxe);r===1&&t===1?a=[]:a=[Nh(o,l),"scale("+r+","+t+")",Nh(-o,-l)],s&&a.push(s),n.attr("transform",a.join(""))}})};function p6(e,r){var t;return e&&(t=e.mf),t===void 0&&(t=r.marker&&r.marker.standoff||0),!r._geo&&!r._xA?-t:t}rr.getMarkerStandoff=p6;var zh=Math.atan2,Qu=Math.cos,r0=Math.sin;function ZF(e,r){var t=r[0],a=r[1];return[t*Qu(e)-a*r0(e),t*r0(e)+a*Qu(e)]}var $F,JF,KF,QF,v6,h6;function m6(e,r){var t=e.ma;t===void 0&&(t=r.marker.angle,(!Fs(t)||xt.isArrayOrTypedArray(t))&&(t=0));var a,n,i=r.marker.angleref;if(i==="previous"||i==="north"){if(r._geo){var o=r._geo.project(e.lonlat);a=o[0],n=o[1]}else{var l=r._xA,s=r._yA;if(l&&s)a=l.c2p(e.x),n=s.c2p(e.y);else return 90}if(r._geo){var u=e.lonlat[0],f=e.lonlat[1],c=r._geo.project([u,f+1e-5]),v=r._geo.project([u+1e-5,f]),d=zh(v[1]-n,v[0]-a),p=zh(c[1]-n,c[0]-a),y;if(i==="north")y=t/180*Math.PI;else if(i==="previous"){var m=u/180*Math.PI,b=f/180*Math.PI,A=$F/180*Math.PI,w=JF/180*Math.PI,x=A-m,_=Qu(w)*r0(x),k=r0(w)*Qu(b)-Qu(w)*r0(b)*Qu(x);y=-zh(_,k)-Math.PI,$F=u,JF=f}var T=ZF(d,[Qu(y),0]),q=ZF(p,[r0(y),0]);t=zh(T[1]+q[1],T[0]+q[0])/Math.PI*180,i==="previous"&&!(h6===r.uid&&e.i===v6+1)&&(t=null)}if(i==="previous"&&!r._geo)if(h6===r.uid&&e.i===v6+1&&Fs(a)&&Fs(n)){var C=a-KF,E=n-QF,P=r.line&&r.line.shape||"",R=P.slice(P.length-1);R==="h"&&(E=0),R==="v"&&(C=0),t+=zh(E,C)/Math.PI*180+90}else t=null}return KF=a,QF=n,v6=e.i,h6=r.uid,t}rr.getMarkerAngle=m6});var n0=z((ZXe,dz)=>{"use strict";var t0=Pr(),sxe=Br(),uxe=ma(),y6=Tr(),tf=ke(),cz=tf.strTranslate,hm=Jr(),dm=qr(),a0=Fa(),vz=(_p(),ze(xp)),fxe=(on(),ze(nn)).OPPOSITE_SIDE,hz=/ [XY][0-9]* /,g6=1.6,b6=1.6;function cxe(e,r,t){var a=e._fullLayout,n=t.propContainer,i=t.propName,o=t.placeholder,l=t.traceIndex,s=t.avoid||{},u=t.attributes,f=t.transform,c=t.containerGroup,v=1,d=n.title,p=(d&&d.text?d.text:"").trim(),y=!1,m=d&&d.font?d.font:{},b=m.family,A=m.size,w=m.color,x=m.weight,_=m.style,k=m.variant,T=m.textcase,q=m.lineposition,C=m.shadow,E=t.subtitlePropName,P=!!E,R=t.subtitlePlaceholder,N=(n.title||{}).subtitle||{text:"",font:{}},I=(N.text||"").trim(),O=!1,U=1,Y=N.font,G=Y.family,V=Y.size,W=Y.color,j=Y.weight,J=Y.style,te=Y.variant,ae=Y.textcase,se=Y.lineposition,$=Y.shadow,fe;i==="title.text"?fe="titleText":i.indexOf("axis")!==-1?fe="axisTitleText":i.indexOf("colorbar")!==-1&&(fe="colorbarTitleText");var ie=e._context.edits[fe];function ue(Je,Xe){return Je===void 0||Xe===void 0?!1:Je.replace(hz," % ")===Xe.replace(hz," % ")}p===""?v=0:ue(p,o)&&(ie||(p=""),v=.2,y=!0),P&&(I===""?U=0:ue(I,R)&&(ie||(I=""),U=.2,O=!0)),t._meta?p=tf.templateString(p,t._meta):a._meta&&(p=tf.templateString(p,a._meta));var ce=p||I||ie,oe;c||(c=tf.ensureSingle(a._infolayer,"g","g-"+r),oe=a._hColorbarMoveTitle);var be=c.selectAll("text."+r).data(ce?[0]:[]);be.enter().append("text"),be.text(p).attr("class",r),be.exit().remove();var Re=null,ye=r+"-subtitle",Ce=I||ie;if(P&&(Re=c.selectAll("text."+ye).data(Ce?[0]:[]),Re.enter().append("text"),Re.text(I).attr("class",ye),Re.exit().remove()),!ce)return c;function Me(Je,Xe){tf.syncOrAsync([Le,De],{title:Je,subtitle:Xe})}function Le(Je){var Xe=Je.title,Se=Je.subtitle,Fe;!f&&oe&&(f={}),f?(Fe="",f.rotate&&(Fe+="rotate("+[f.rotate,u.x,u.y]+")"),(f.offset||oe)&&(Fe+=cz(0,(f.offset||0)-(oe||0)))):Fe=null,Xe.attr("transform",Fe);function er(me){if(me){var Te=t0.select(me.node().parentNode).select("."+ye);if(!Te.empty()){var Ue=me.node().getBBox();if(Ue.height){var $e=Ue.y+Ue.height+g6*V;Te.attr("y",$e)}}}}if(Xe.style("opacity",v*dm.opacity(w)).call(hm.font,{color:dm.rgb(w),size:t0.round(A,2),family:b,weight:x,style:_,variant:k,textcase:T,shadow:C,lineposition:q}).attr(u).call(a0.convertToTspans,e,er),Se&&!Se.empty()){var re=c.select("."+r+"-math-group"),xe=Xe.node().getBBox(),Ye=re.node()?re.node().getBBox():void 0,vr=Ye?Ye.y+Ye.height+g6*V:xe.y+xe.height+b6*V,Pe=tf.extendFlat({},u,{y:vr});Se.attr("transform",Fe),Se.style("opacity",U*dm.opacity(W)).call(hm.font,{color:dm.rgb(W),size:t0.round(V,2),family:G,weight:j,style:J,variant:te,textcase:ae,shadow:$,lineposition:se}).attr(Pe).call(a0.convertToTspans,e)}return uxe.previousPromises(e)}function De(Je){var Xe=Je.title,Se=t0.select(Xe.node().parentNode);if(s&&s.selection&&s.side&&p){Se.attr("transform",null);var Fe=fxe[s.side],er=s.side==="left"||s.side==="top"?-1:1,re=sxe(s.pad)?s.pad:2,xe=hm.bBox(Se.node()),Ye={t:0,b:0,l:0,r:0},vr=e._fullLayout._reservedMargin;for(var Pe in vr)for(var me in vr[Pe]){var Te=vr[Pe][me];Ye[me]=Math.max(Ye[me],Te)}var Ue={left:Ye.l,top:Ye.t,right:a.width-Ye.r,bottom:a.height-Ye.b},$e=s.maxShift||er*(Ue[s.side]-xe[s.side]),Oe=0;if($e<0)Oe=$e;else{var We=s.offsetLeft||0,ar=s.offsetTop||0;xe.left-=We,xe.right-=We,xe.top-=ar,xe.bottom-=ar,s.selection.each(function(){var sr=hm.bBox(this);tf.bBoxIntersect(xe,sr,re)&&(Oe=Math.max(Oe,er*(sr[s.side]-xe[Fe])+re))}),Oe=Math.min($e,Oe),n._titleScoot=Math.abs(Oe)}if(Oe>0||$e<0){var or={left:[-Oe,0],right:[Oe,0],top:[0,-Oe],bottom:[0,Oe]}[s.side];Se.attr("transform",cz(or[0],or[1]))}}}be.call(Me,Re);function Ie(Je,Xe){Je.text(Xe).on("mouseover.opacity",function(){t0.select(this).transition().duration(vz.SHOW_PLACEHOLDER).style("opacity",1)}).on("mouseout.opacity",function(){t0.select(this).transition().duration(vz.HIDE_PLACEHOLDER).style("opacity",0)})}if(ie&&(p?be.on(".opacity",null):(Ie(be,o),y=!0),be.call(a0.makeEditable,{gd:e}).on("edit",function(Je){l!==void 0?y6.call("_guiRestyle",e,i,Je,l):y6.call("_guiRelayout",e,i,Je)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(Me)}).on("input",function(Je){this.text(Je||" ").call(a0.positionText,u.x,u.y)}),P)){if(P&&!p){var qe=be.node().getBBox(),Ze=qe.y+qe.height+b6*V;Re.attr("y",Ze)}I?Re.on(".opacity",null):(Ie(Re,R),O=!0),Re.call(a0.makeEditable,{gd:e}).on("edit",function(Je){y6.call("_guiRelayout",e,"title.subtitle.text",Je)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(Me)}).on("input",function(Je){this.text(Je||" ").call(a0.positionText,Re.attr("x"),Re.attr("y"))})}return be.classed("js-placeholder",y),Re&&!Re.empty()&&Re.classed("js-placeholder",O),c}dz.exports={draw:cxe,SUBTITLE_PADDING_EM:b6,SUBTITLE_PADDING_MATHJAX_EM:g6}});var i0=z(($Xe,bz)=>{"use strict";var vxe=Pr(),hxe=_c().utcFormat,Dt=ke(),dxe=Dt.numberFormat,sl=Br(),zs=Dt.cleanNumber,pxe=Dt.ms2DateTime,pz=Dt.dateTime2ms,ul=Dt.ensureNumber,mz=Dt.isArrayOrTypedArray,Ns=(jt(),ze(Zt)),pm=Ns.FP_SAFE,Fo=Ns.BADNUM,mxe=Ns.LOG_CLIP,yxe=Ns.ONEWEEK,mm=Ns.ONEDAY,ym=Ns.ONEHOUR,yz=Ns.ONEMIN,gz=Ns.ONESEC,gm=Aa(),_m=(Pa(),ze(Ea)),bm=_m.HOUR_PATTERN,xm=_m.WEEKDAY_PATTERN;function Ih(e){return Math.pow(10,e)}function x6(e){return e!=null}bz.exports=function(r,t){t=t||{};var a=r._id||"x",n=a.charAt(0);function i(x,_){if(x>0)return Math.log(x)/Math.LN10;if(x<=0&&_&&r.range&&r.range.length===2){var k=r.range[0],T=r.range[1];return .5*(k+T-2*mxe*Math.abs(k-T))}else return Fo}function o(x,_,k,T){if((T||{}).msUTC&&sl(x))return+x;var q=pz(x,k||r.calendar);if(q===Fo)if(sl(x)){x=+x;var C=Math.floor(Dt.mod(x+.05,1)*10),E=Math.round(x-C/10);q=pz(new Date(E))+C/10}else return Fo;return q}function l(x,_,k){return pxe(x,_,k||r.calendar)}function s(x){return r._categories[Math.round(x)]}function u(x){if(x6(x)){if(r._categoriesMap===void 0&&(r._categoriesMap={}),r._categoriesMap[x]!==void 0)return r._categoriesMap[x];r._categories.push(typeof x=="number"?String(x):x);var _=r._categories.length-1;return r._categoriesMap[x]=_,_}return Fo}function f(x,_){for(var k=new Array(_),T=0;T<_;T++){var q=(x[0]||[])[T],C=(x[1]||[])[T];k[T]=c([q,C])}return k}function c(x){if(r._categoriesMap)return r._categoriesMap[x]}function v(x){var _=c(x);if(_!==void 0)return _;if(sl(x))return+x}function d(x){return sl(x)?+x:c(x)}function p(x,_,k){return vxe.round(k+_*x,2)}function y(x,_,k){return(x-k)/_}var m=function(_){return sl(_)?p(_,r._m,r._b):Fo},b=function(x){return y(x,r._m,r._b)};if(r.rangebreaks){var A=n==="y";m=function(x){if(!sl(x))return Fo;var _=r._rangebreaks.length;if(!_)return p(x,r._m,r._b);var k=A;r.range[0]>r.range[1]&&(k=!k);for(var T=k?-1:1,q=T*x,C=0,E=0;E<_;E++){var P=T*r._rangebreaks[E].min,R=T*r._rangebreaks[E].max;if(qR)C=E+1;else{C=q<(P+R)/2?E:E+1;break}}var N=r._B[C]||0;return isFinite(N)?p(x,r._m2,N):0},b=function(x){var _=r._rangebreaks.length;if(!_)return y(x,r._m,r._b);for(var k=0,T=0;T<_&&!(xr._rangebreaks[T].pmax&&(k=T+1);return y(x,r._m2,r._B[k])}}r.c2l=r.type==="log"?i:ul,r.l2c=r.type==="log"?Ih:ul,r.l2p=m,r.p2l=b,r.c2p=r.type==="log"?function(x,_){return m(i(x,_))}:m,r.p2c=r.type==="log"?function(x){return Ih(b(x))}:b,["linear","-"].indexOf(r.type)!==-1?(r.d2r=r.r2d=r.d2c=r.r2c=r.d2l=r.r2l=zs,r.c2d=r.c2r=r.l2d=r.l2r=ul,r.d2p=r.r2p=function(x){return r.l2p(zs(x))},r.p2d=r.p2r=b,r.cleanPos=ul):r.type==="log"?(r.d2r=r.d2l=function(x,_){return i(zs(x),_)},r.r2d=r.r2c=function(x){return Ih(zs(x))},r.d2c=r.r2l=zs,r.c2d=r.l2r=ul,r.c2r=i,r.l2d=Ih,r.d2p=function(x,_){return r.l2p(r.d2r(x,_))},r.p2d=function(x){return Ih(b(x))},r.r2p=function(x){return r.l2p(zs(x))},r.p2r=b,r.cleanPos=ul):r.type==="date"?(r.d2r=r.r2d=Dt.identity,r.d2c=r.r2c=r.d2l=r.r2l=o,r.c2d=r.c2r=r.l2d=r.l2r=l,r.d2p=r.r2p=function(x,_,k){return r.l2p(o(x,0,k))},r.p2d=r.p2r=function(x,_,k){return l(b(x),_,k)},r.cleanPos=function(x){return Dt.cleanDate(x,Fo,r.calendar)}):r.type==="category"?(r.d2c=r.d2l=u,r.r2d=r.c2d=r.l2d=s,r.d2r=r.d2l_noadd=v,r.r2c=function(x){var _=d(x);return _!==void 0?_:r.fraction2r(.5)},r.l2r=r.c2r=ul,r.r2l=d,r.d2p=function(x){return r.l2p(r.r2c(x))},r.p2d=function(x){return s(b(x))},r.r2p=r.d2p,r.p2r=b,r.cleanPos=function(x){return typeof x=="string"&&x!==""?x:ul(x)}):r.type==="multicategory"&&(r.r2d=r.c2d=r.l2d=s,r.d2r=r.d2l_noadd=v,r.r2c=function(x){var _=v(x);return _!==void 0?_:r.fraction2r(.5)},r.r2c_just_indices=c,r.l2r=r.c2r=ul,r.r2l=v,r.d2p=function(x){return r.l2p(r.r2c(x))},r.p2d=function(x){return s(b(x))},r.r2p=r.d2p,r.p2r=b,r.cleanPos=function(x){return Array.isArray(x)||typeof x=="string"&&x!==""?x:ul(x)},r.setupMultiCategory=function(x){var _=r._traceIndices,k,T,q=r._matchGroup;if(q&&r._categories.length===0){for(var C in q)if(C!==a){var E=t[gm.id2name(C)];_=_.concat(E._traceIndices)}}var P=[[0,{}],[0,{}]],R=[];for(k=0;k<_.length;k++){var N=x[_[k]];if(n in N){var I=N[n],O=N._length||Dt.minRowLength(I);if(mz(I[0])&&mz(I[1]))for(T=0;TE[1]&&(T[C?0:1]=k,q[1]=E[1]),q[0]>=q[1])if(_!==void 0){var P=E[0]+1;k!==void 0&&(P=Math.min(P,E[1])),T[C?0:1]=r.l2r(P)}else k!==void 0&&(T[C?1:0]=r.l2r(E[1]-1))}},r.cleanRange=function(x,_){r._cleanRange(x,_),r.limitRange(x)},r._cleanRange=function(x,_){_||(_={}),x||(x="range");var k=Dt.nestedProperty(r,x).get(),T,q;if(r.type==="date"?q=Dt.dfltRange(r.calendar):n==="y"?q=_m.DFLTRANGEY:r._name==="realaxis"?q=[0,1]:q=_.dfltRange||_m.DFLTRANGEX,q=q.slice(),(r.rangemode==="tozero"||r.rangemode==="nonnegative")&&(q[0]=0),!k||k.length!==2){Dt.nestedProperty(r,x).set(q);return}var C=k[0]===null,E=k[1]===null;for(r.type==="date"&&!r.autorange&&(k[0]=Dt.cleanDate(k[0],Fo,r.calendar),k[1]=Dt.cleanDate(k[1],Fo,r.calendar)),T=0;T<2;T++)if(r.type==="date"){if(!Dt.isDateTime(k[T],r.calendar)){r[x]=q;break}if(r.r2l(k[0])===r.r2l(k[1])){var P=Dt.constrain(r.r2l(k[0]),Dt.MIN_MS+1e3,Dt.MAX_MS-1e3);k[0]=r.l2r(P-1e3),k[1]=r.l2r(P+1e3);break}}else{if(!sl(k[T]))if(!(C||E)&&sl(k[1-T]))k[T]=k[1-T]*(T?10:.1);else{r[x]=q;break}if(k[T]<-pm?k[T]=-pm:k[T]>pm&&(k[T]=pm),k[0]===k[1]){var R=Math.max(1,Math.abs(k[0]*1e-6));k[0]-=R,k[1]+=R}}},r.setScale=function(x){var _=t._size;if(r.overlaying){var k=gm.getFromId({_fullLayout:t},r.overlaying);r.domain=k.domain}var T=x&&r._r?"_r":"range",q=r.calendar;r.cleanRange(T);var C=r.r2l(r[T][0],q),E=r.r2l(r[T][1],q),P=n==="y";if(P?(r._offset=_.t+(1-r.domain[1])*_.h,r._length=_.h*(r.domain[1]-r.domain[0]),r._m=r._length/(C-E),r._b=-r._m*E):(r._offset=_.l+r.domain[0]*_.w,r._length=_.w*(r.domain[1]-r.domain[0]),r._m=r._length/(E-C),r._b=-r._m*C),r._rangebreaks=[],r._lBreaks=0,r._m2=0,r._B=[],r.rangebreaks){var R,N;if(r._rangebreaks=r.locateBreaks(Math.min(C,E),Math.max(C,E)),r._rangebreaks.length){for(R=0;RE&&(I=!I),I&&r._rangebreaks.reverse();var O=I?-1:1;for(r._m2=O*r._length/(Math.abs(E-C)-r._lBreaks),r._B.push(-r._m2*(P?E:C)),R=0;Rq&&(q+=7,Cq&&(q+=24,C=T&&C=T&&x=$.min&&(J<$.min&&($.min=J),te>$.max&&($.max=te),ae=!1)}ae&&E.push({min:J,max:te})}};for(k=0;k{"use strict";var xz=Br(),_6=ke(),gxe=(jt(),ze(Zt)).BADNUM,wm=_6.isArrayOrTypedArray,bxe=_6.isDateTime,xxe=_6.cleanNumber,_z=Math.round;Az.exports=function(r,t,a){var n=r,i=a.noMultiCategory;if(wm(n)&&!n.length)return"-";if(!i&&Mxe(n))return"multicategory";if(i&&Array.isArray(n[0])){for(var o=[],l=0;li*2}function wz(e){return Math.max(1,(e-1)/1e3)}function Txe(e,r){for(var t=e.length,a=wz(t),n=0,i=0,o={},l=0;ln*2}function Mxe(e){return wm(e[0])&&wm(e[1])}});var Bh=z((KXe,Dz)=>{"use strict";var kxe=Pr(),Sz=Br(),Is=ke(),Tm=(jt(),ze(Zt)).FP_SAFE,Sxe=Tr(),qxe=Jr(),qz=Aa(),Lxe=qz.getFromId,Cxe=qz.isLinked;Dz.exports={applyAutorangeOptions:Cz,getAutoRange:w6,makePadFn:A6,doAutoRange:Exe,findExtremes:Pxe,concatExtremes:k6};function w6(e,r){var t,a,n=[],i=e._fullLayout,o=A6(i,r,0),l=A6(i,r,1),s=k6(e,r),u=s.min,f=s.max;if(u.length===0||f.length===0)return Is.simpleMap(r.range,r.r2l);var c=u[0].val,v=f[0].val;for(t=1;t0&&(E=w-o(k)-l(T),E>x?P/E>_&&(q=k,C=T,_=P/E):P/w>_&&(q={val:k.val,nopad:1},C={val:T.val,nopad:1},_=P/w));function R(Y,G){return Math.max(Y,l(G))}if(c===v){var N=c-1,I=c+1;if(b)if(c===0)n=[0,1];else{var O=(c>0?f:u).reduce(R,0),U=c/(1-Math.min(.5,O/w));n=c>0?[0,U]:[U,0]}else A?n=[Math.max(0,N),Math.max(1,I)]:n=[N,I]}else b?(q.val>=0&&(q={val:0,nopad:1}),C.val<=0&&(C={val:0,nopad:1})):A&&(q.val-_*o(q)<0&&(q={val:0,nopad:1}),C.val<=0&&(C={val:1,nopad:1})),_=(C.val-q.val-Tz(r,k.val,T.val))/(w-o(q)-l(C)),n=[q.val-_*o(q),C.val+_*l(C)];return n=Cz(n,r),r.limitRange&&r.limitRange(),p&&n.reverse(),Is.simpleMap(n,r.l2r||Number)}function Tz(e,r,t){var a=0;if(e.rangebreaks)for(var n=e.locateBreaks(r,t),i=0;i0?t.ppadplus:t.ppadminus)||t.ppad||0),k=x((e._m>0?t.ppadminus:t.ppadplus)||t.ppad||0),T=x(t.vpadplus||t.vpad),q=x(t.vpadminus||t.vpad);if(!u){if(A=1/0,w=-1/0,s)for(c=0;c0&&(A=v),v>w&&v-Tm&&(A=v),v>w&&v=P;c--)E(c);return{min:a,max:n,opts:t}}function T6(e,r,t,a){Lz(e,r,t,a,Rxe)}function M6(e,r,t,a){Lz(e,r,t,a,Fxe)}function Lz(e,r,t,a,n){for(var i=a.tozero,o=a.extrapad,l=!0,s=0;s=t&&(u.extrapad||!o)){l=!1;break}else n(r,u.val)&&u.pad<=t&&(o||!u.extrapad)&&(e.splice(s,1),s--)}if(l){var f=i&&r===0;e.push({val:r,pad:f?0:t,extrapad:f?!1:o})}}function kz(e){return Sz(e)&&Math.abs(e)=r}function zxe(e,r){var t=r.autorangeoptions;return t&&t.minallowed!==void 0&&Mm(r,t.minallowed,t.maxallowed)?t.minallowed:t&&t.clipmin!==void 0&&Mm(r,t.clipmin,t.clipmax)?Math.max(e,r.d2l(t.clipmin)):e}function Nxe(e,r){var t=r.autorangeoptions;return t&&t.maxallowed!==void 0&&Mm(r,t.minallowed,t.maxallowed)?t.maxallowed:t&&t.clipmax!==void 0&&Mm(r,t.clipmin,t.clipmax)?Math.min(e,r.d2l(t.clipmax)):e}function Mm(e,r,t){return r!==void 0&&t!==void 0?(r=e.d2l(r),t=e.d2l(t),r=s&&(i=s,t=s),o<=s&&(o=s,a=s)}}return t=zxe(t,r),a=Nxe(a,r),[t,a]}});var Yr=z((eZe,eN)=>{"use strict";var Yi=Pr(),ya=Br(),o0=ma(),Hh=Tr(),Sr=ke(),l0=Sr.strTranslate,af=Fa(),Ixe=n0(),Uh=qr(),gi=Jr(),Bxe=Gi(),Ez=$4(),QXe=(Pa(),ze(Ea)),sn=(jt(),ze(Zt)),Oxe=sn.ONEMAXYEAR,qm=sn.ONEAVGYEAR,Lm=sn.ONEMINYEAR,Hxe=sn.ONEMAXQUARTER,C6=sn.ONEAVGQUARTER,Cm=sn.ONEMINQUARTER,Uxe=sn.ONEMAXMONTH,s0=sn.ONEAVGMONTH,Dm=sn.ONEMINMONTH,bi=sn.ONEWEEK,Sn=sn.ONEDAY,Bs=Sn/2,cl=sn.ONEHOUR,Gh=sn.ONEMIN,Em=sn.ONESEC,Gxe=sn.ONEMILLI,Yxe=sn.ONEMICROSEC,nf=sn.MINUS_SIGN,Rm=sn.BADNUM,D6={K:"zeroline"},E6={K:"gridline",L:"path"},P6={K:"minor-gridline",L:"path"},Gz={K:"tick",L:"path"},Pz={K:"tick",L:"text"},Rz={width:["x","r","l","xl","xr"],height:["y","t","b","yt","yb"],right:["r","xr"],left:["l","xl"],top:["t","yt"],bottom:["b","yb"]},Fm=(on(),ze(nn)),Oh=Fm.MID_SHIFT,of=Fm.CAP_SHIFT,Yh=Fm.LINE_SPACING,Vxe=Fm.OPPOSITE_SIDE,Pm=3,Ge=eN.exports={};Ge.setConvert=i0();var jxe=Am(),vl=Aa(),Wxe=vl.idSort,Xxe=vl.isLinked;Ge.id2name=vl.id2name;Ge.name2id=vl.name2id;Ge.cleanId=vl.cleanId;Ge.list=vl.list;Ge.listIds=vl.listIds;Ge.getFromId=vl.getFromId;Ge.getFromTrace=vl.getFromTrace;var Yz=Bh();Ge.getAutoRange=Yz.getAutoRange;Ge.findExtremes=Yz.findExtremes;var Zxe=1e-4;function N6(e){var r=(e[1]-e[0])*Zxe;return[e[0]-r,e[1]+r]}function $xe(e,r,t){if(![t,e,r].every(ya)||t===0)return e;let a=Math.round((e-r)/t),n=r+a*t;return e!==n&&Math.abs(e-n)v+" domain")),s=s.concat(i||[]),f.length>o?(Sr.warn("Array attribute "+u+" has more entries than expected, truncating to "+o),f=f.slice(0,o)):f.length2e-6||((t-e._forceTick0)/e._minDtick%1+1.000001)%1>2e-6)&&(e._minDtick=0))};Ge.saveRangeInitial=function(e,r){for(var t=Ge.list(e,"",!0),a=!1,n=0;nc*.3||u(a)||u(n))){var v=t.dtick/2;e+=e+vo){var l=Number(t.slice(1));i.exactYears>o&&l%12===0?e=Ge.tickIncrement(e,"M6","reverse")+Sn*1.5:i.exactMonths>o?e=Ge.tickIncrement(e,"M1","reverse")+Sn*15.5:e-=Bs;var s=Ge.tickIncrement(e,t);if(s<=a)return s}return e}Ge.prepMinorTicks=function(e,r,t){var c,v;if(!((c=r.minor)!=null&&c.dtick)){delete e.dtick;var a=r.dtick&&ya(r._tmin),n;if(a){var i=Ge.tickIncrement(r._tmin,r.dtick,!0);n=[r._tmin,i*.99+r._tmin*.01]}else{var o=Sr.simpleMap(r.range,r.r2l);n=[o[0],.8*o[0]+.2*o[1]]}if(e.range=Sr.simpleMap(n,r.l2r),e._isMinor=!0,Ge.prepTicks(e,t),a){var l=ya(r.dtick),s=ya(e.dtick),u=l?r.dtick:+r.dtick.substring(1),f=s?e.dtick:+e.dtick.substring(1);l&&s?S6(u,f)?u===2*bi&&f===2*Sn&&(e.dtick=bi):u===2*bi&&f===3*Sn?e.dtick=bi:u===bi&&!(r._input.minor||{}).nticks?e.dtick=Sn:Nz(u/f,2.5)?e.dtick=u/2:e.dtick=u:String(r.dtick).charAt(0)==="M"?s?e.dtick="M1":S6(u,f)?u>=12&&f===2&&(e.dtick="M3"):e.dtick=r.dtick:String(e.dtick).charAt(0)==="L"?String(r.dtick).charAt(0)==="L"?S6(u,f)||(e.dtick=Nz(u/f,2.5)?r.dtick/2:r.dtick):e.dtick="D1":e.dtick==="D2"&&+r.dtick>1&&(e.dtick=1)}e.range=r.range}((v=r.minor)==null?void 0:v._tick0Init)===void 0&&(e.tick0=r.tick0)};function S6(e,r){return Math.abs((e/r+.5)%1-.5)<.001}function Nz(e,r){return Math.abs(e/r-1)<.001}Ge.prepTicks=function(e,r){var t=Sr.simpleMap(e.range,e.r2l,void 0,void 0,r);if(e.tickmode==="auto"||!e.dtick){var a=e.nticks,n;a||(e.type==="category"||e.type==="multicategory"?(n=e.tickfont?Sr.bigFont(e.tickfont.size||12):15,a=e._length/n):(n=e._id.charAt(0)==="y"?40:80,a=Sr.constrain(e._length/n,4,9)+1),e._name==="radialaxis"&&(a*=2)),e.minor&&e.minor.tickmode!=="array"||e.tickmode==="array"&&(a*=100),e._roughDTick=Math.abs(t[1]-t[0])/a,Ge.autoTicks(e,e._roughDTick),e._minDtick>0&&e.dtick0?(i=a-1,o=a):(i=a,o=a);var l=e[i].value,s=e[o].value,u=Math.abs(s-l),f=t||u,c=0;f>=Lm?u>=Lm&&u<=Oxe?c=u:c=qm:t===C6&&f>=Cm?u>=Cm&&u<=Hxe?c=u:c=C6:f>=Dm?u>=Dm&&u<=Uxe?c=u:c=s0:t===bi&&f>=bi?c=bi:f>=Sn?c=Sn:t===Bs&&f>=Bs?c=Bs:t===cl&&f>=cl&&(c=cl);var v;c>=u&&(c=u,v=!0);var d=n+c;if(r.rangebreaks&&c>0){for(var p=84,y=0,m=0;mbi&&(c=u)}(c>0||a===0)&&(e[a].periodX=n+c/2)}}Ge.calcTicks=function(r,t){for(var a=r.type,n=r.calendar,i=r.ticklabelstep,o=r.ticklabelmode==="period",l=r.range[0]>r.range[1],s=!r.ticklabelindex||Sr.isArrayOrTypedArray(r.ticklabelindex)?r.ticklabelindex:[r.ticklabelindex],u=Sr.simpleMap(r.range,r.r2l,void 0,void 0,t),f=u[1]=(x?0:1);_--){var k=!_;_?(r._dtickInit=r.dtick,r._tick0Init=r.tick0):x&&(r.minor._dtickInit=r.minor.dtick,r.minor._tick0Init=r.minor.tick0);var T=_?r:Sr.extendFlat({},r,x?r.minor:{minor:{}});if(k?Ge.prepMinorTicks(T,r,t):Ge.prepTicks(T,t),T.tickmode==="array"){_?(m=[],p=Iz(r,!k)):(b=[],y=Iz(r,!k));continue}if(T.tickmode==="sync"){m=[],p=t5e(r);continue}var q=N6(u),C=q[0],E=q[1],P=ya(T.dtick),R=a==="log"&&!(P||T.dtick.charAt(0)==="L"),N=Ge.tickFirst(T,t);if(_){if(r._tmin=N,N=E:O<=E;O=Ge.tickIncrement(O,G,f,n)){if(_&&U++,T.rangebreaks&&!f){if(O=v)break}if(m.length>d||O===I)break;I=O;var W={value:$xe(O,V,G)};_?(O===N&&(W.first=!0),R&&O!==(O|0)&&(W.simpleLabel=!0),i>1&&U%i&&(W.skipLabel=!0),m.push(W)):(W.minor=!0,b.push(W))}}if(!b||b.length<3)s=!1;else{var j=(b[2].value-b[1].value)*(l?-1:1);S5e(j,r.tickformat)||(s=!1,b=b.slice(1))}if(!s)A=m;else{var J=m.concat(b);o&&m.length&&(J=J.slice(1)),J=J.sort(function(Xe,Se){return Xe.value-Se.value}).filter(function(Xe,Se,Fe){return Se===0||Xe.value!==Fe[Se-1].value});var te=J.map(function(Xe,Se){return Xe.minor===void 0&&!Xe.skipLabel?Se:null}).filter(function(Xe){return Xe!==null});te.forEach(function(Xe){s.map(function(Se){var Fe=Xe+Se;Fe>=0&&Fe-1;be--){if(m[be].drop){m.splice(be,1);continue}m[be].value=L6(m[be].value,r);var Me=r.c2p(m[be].value);(Re?Ce>Me-ye:Cev||erv&&(Fe.periodX=v),ern&&pn&&mqm)r/=qm,a=n(10),e.dtick="M"+12*fl(r,a,km);else if(i>s0)r/=s0,e.dtick="M"+fl(r,1,Bz);else if(i>Sn){if(e.dtick=fl(r,Sn,e._hasDayOfWeekBreaks?[1,2,7,14]:a5e),!t){var o=Ge.getTickFormat(e),l=e.ticklabelmode==="period";l&&(e._rawTick0=e.tick0),/%[uVW]/.test(o)?e.tick0=Sr.dateTick0(e.calendar,2):e.tick0=Sr.dateTick0(e.calendar,1),l&&(e._dowTick0=e.tick0)}}else i>cl?e.dtick=fl(r,cl,Bz):i>Gh?e.dtick=fl(r,Gh,Oz):i>Em?e.dtick=fl(r,Em,Oz):(a=n(10),e.dtick=fl(r,a,km))}else if(e.type==="log"){e.tick0=0;var s=Sr.simpleMap(e.range,e.r2l);if(e._isMinor&&(r*=1.5),r>.7)e.dtick=Math.ceil(r);else if(Math.abs(s[1]-s[0])<1){var u=1.5*Math.abs((s[1]-s[0])/r);r=Math.abs(Math.pow(10,s[1])-Math.pow(10,s[0]))/u,a=n(10),e.dtick="L"+fl(r,a,km)}else e.dtick=r>.3?"D2":"D1"}else e.type==="category"||e.type==="multicategory"?(e.tick0=0,e.dtick=Math.ceil(Math.max(r,1))):H6(e)?(e.tick0=0,a=1,e.dtick=fl(r,a,n5e)):(e.tick0=0,a=n(10),e.dtick=fl(r,a,km));if(e.dtick===0&&(e.dtick=1),!ya(e.dtick)&&typeof e.dtick!="string"){var f=e.dtick;throw e.dtick=1,"ax.dtick error: "+String(f)}};function Xz(e){var r=e.dtick;if(e._tickexponent=0,!ya(r)&&typeof r!="string"&&(r=1),(e.type==="category"||e.type==="multicategory")&&(e._tickround=null),e.type==="date"){var t=e.r2l(e.tick0),a=e.l2r(t).replace(/(^-|i)/g,""),n=a.length;if(String(r).charAt(0)==="M")n>10||a.slice(5)!=="01-01"?e._tickround="d":e._tickround=+r.slice(1)%12===0?"y":"m";else if(r>=Sn&&n<=10||r>=Sn*15)e._tickround="d";else if(r>=Gh&&n<=16||r>=cl)e._tickround="M";else if(r>=Em&&n<=19||r>=Gh)e._tickround="S";else{var i=e.l2r(t+r).replace(/^-/,"").length;e._tickround=Math.max(n,i)-20,e._tickround<0&&(e._tickround=4)}}else if(ya(r)||r.charAt(0)==="L"){var o=e.range.map(e.r2d||Number);ya(r)||(r=Number(r.slice(1))),e._tickround=2-Math.floor(Math.log(r)/Math.LN10+.01);var l=Math.max(Math.abs(o[0]),Math.abs(o[1])),s=Math.floor(Math.log(l)/Math.LN10+.01),u=e.minexponent===void 0?3:e.minexponent;Math.abs(s)>u&&(u0(e.exponentformat)&&e.exponentformat!=="SI extended"&&!I6(s)||u0(e.exponentformat)&&e.exponentformat==="SI extended"&&!B6(s)?e._tickexponent=3*Math.round((s-1)/3):e._tickexponent=s)}else e._tickround=null}Ge.tickIncrement=function(e,r,t,a){var n=t?-1:1;if(ya(r))return Sr.increment(e,n*r);var i=r.charAt(0),o=n*Number(r.slice(1));if(i==="M")return Sr.incrementMonth(e,o,a);if(i==="L")return Math.log(Math.pow(10,e)+o)/Math.LN10;if(i==="D"){var l=r==="D2"?Wz:jz,s=e+n*.01,u=Sr.roundUp(Sr.mod(s,1),l,t);return Math.floor(s)+Math.log(Yi.round(Math.pow(10,u),1))/Math.LN10}throw"unrecognized dtick "+String(r)};Ge.tickFirst=function(e,r){var t=e.r2l||Number,a=Sr.simpleMap(e.range,t,void 0,void 0,r),n=a[1]=0&&x<=e._length?w:null};if(s&&Sr.isArrayOrTypedArray(e.ticktext)){var p=Sr.simpleMap(e.range,e.r2l),y=(Math.abs(p[1]-p[0])-(e._lBreaks||0))/1e4;for(v=0;v"+l;else{var u=jh(e),f=e._trueSide||e.side;(!u&&f==="top"||u&&f==="bottom")&&(o+="
")}r.text=o}function o5e(e,r,t,a,n){var i=e.dtick,o=r.x,l=e.tickformat,s=typeof i=="string"&&i.charAt(0);if(n==="never"&&(n=""),a&&s!=="L"&&(i="L3",s="L"),l||s==="L")r.text=Vh(Math.pow(10,o),e,n,a);else if(ya(i)||s==="D"&&(e.minorloglabels==="complete"||Sr.mod(o+.01,1)<.1)){var u;e.minorloglabels==="complete"&&!(Sr.mod(o+.01,1)<.1)&&(u=!0,r.fontSize*=.75);var f=Math.pow(10,o).toExponential(0),c=f.split("e"),v=+c[1],d=Math.abs(v),p=e.exponentformat;p==="power"||u0(p)&&p!=="SI extended"&&I6(v)||u0(p)&&p==="SI extended"&&B6(v)?(r.text=c[0],d>0&&(r.text+="x10"),r.text==="1x10"&&(r.text="10"),v!==0&&v!==1&&(r.text+=""+(v>0?"":nf)+d+""),r.fontSize*=1.25):(p==="e"||p==="E")&&d>2?r.text=c[0]+p+(v>0?"+":nf)+d:(r.text=Vh(Math.pow(10,o),e,"","fakehover"),i==="D1"&&e._id.charAt(0)==="y"&&(r.dy-=r.fontSize/6))}else if(s==="D")r.text=e.minorloglabels==="none"?"":String(Math.round(Math.pow(10,Sr.mod(o,1)))),r.fontSize*=.75;else throw"unrecognized dtick "+String(i);if(e.dtick==="D1"){var y=String(r.text).charAt(0);(y==="0"||y==="1")&&(e._id.charAt(0)==="y"?r.dx-=r.fontSize/4:(r.dy+=r.fontSize/2,r.dx+=(e.range[1]>e.range[0]?1:-1)*r.fontSize*(o<0?.5:.25)))}}function l5e(e,r){var t=e._categories[Math.round(r.x)];t===void 0&&(t=""),r.text=String(t)}function s5e(e,r,t){var a=Math.round(r.x),n=e._categories[a]||[],i=n[1]===void 0?"":String(n[1]),o=n[0]===void 0?"":String(n[0]);t?r.text=o+" - "+i:(r.text=i,r.text2=o)}function u5e(e,r,t,a,n){n==="never"?n="":e.showexponent==="all"&&Math.abs(r.x/e.dtick)<1e-6&&(n="hide"),r.text=Vh(r.x,e,n,a)}function f5e(e,r,t,a,n){if(e.thetaunit==="radians"&&!t){var i=r.x/180;if(i===0)r.text="0";else{var o=c5e(i);if(o[1]>=100)r.text=Vh(Sr.deg2rad(r.x),e,n,a);else{var l=r.x<0;o[1]===1?o[0]===1?r.text="\u03C0":r.text=o[0]+"\u03C0":r.text=["",o[0],"","\u2044","",o[1],"","\u03C0"].join(""),l&&(r.text=nf+r.text)}}}else r.text=Vh(r.x,e,n,a)}function c5e(e){function r(l,s){return Math.abs(l-s)<=1e-6}function t(l,s){return r(s,0)?l:t(s,l%s)}function a(l){for(var s=1;!r(Math.round(l*s)/s,l);)s*=10;return s}var n=a(e),i=e*n,o=Math.abs(t(i,n));return[Math.round(i/o),Math.round(n/o)]}var $z=["f","p","n","\u03BC","m","","k","M","G","T"],v5e=["q","r","y","z","a",...$z,"P","E","Z","Y","R","Q"],u0=e=>["SI","SI extended","B"].includes(e);function I6(e){return e>14||e<-15}function B6(e){return e>32||e<-30}function h5e(e,r){return u0(r)?!!(r==="SI extended"&&B6(e)||r!=="SI extended"&&I6(e)):!1}function Vh(e,r,t,a){var n=e<0,i=r._tickround,o=t||r.exponentformat||"B",l=r._tickexponent,s=Ge.getTickFormat(r),u=r.separatethousands;if(a){var f={exponentformat:o,minexponent:r.minexponent,dtick:r.showexponent==="none"?r.dtick:ya(e)&&Math.abs(e)||1,range:r.showexponent==="none"?r.range.map(r.r2d):[0,e||1]};Xz(f),i=(Number(f._tickround)||0)+4,l=f._tickexponent,r.hoverformat&&(s=r.hoverformat)}if(s)return r._numFormat(s)(e).replace(/-/g,nf);o==="none"&&(l=0),e=Math.abs(e);let c=Math.pow(10,-i)/2;if(e"+v+"":o==="B"&&l===9?e+="B":u0(o)&&(e+=o==="SI extended"?v5e[l/3+10]:$z[l/3+5])}return n?nf+e:e}Ge.getTickFormat=function(e){var r;function t(s){return typeof s!="string"?s:Number(s.replace("M",""))*s0}function a(s,u){var f=["L","D"];if(typeof s==typeof u){if(typeof s=="number")return s-u;var c=f.indexOf(s.charAt(0)),v=f.indexOf(u.charAt(0));return c===v?Number(s.replace(/(L|D)/g,""))-Number(u.replace(/(L|D)/g,"")):c-v}else return typeof s=="number"?1:-1}function n(s,u,f){var c=f||function(p){return p},v=u[0],d=u[1];return(!v&&typeof v!="number"||c(v)<=c(s))&&(!d&&typeof d!="number"||c(d)>=c(s))}function i(s,u){var f=u[0]===null,c=u[1]===null,v=a(s,u[0])>=0,d=a(s,u[1])<=0;return(f||v)&&(c||d)}var o,l;if(e.tickformatstops&&e.tickformatstops.length>0)switch(e.type){case"date":case"linear":{for(r=0;r=0&&n.unshift(n.splice(f,1).shift())}});var l={false:{left:0,right:0}};return Sr.syncOrAsync(n.map(function(s){return function(){if(s){var u=Ge.getFromId(e,s);t||(t={}),t.axShifts=l,t.overlayingShiftedAx=o;var f=Ge.drawOne(e,u,t);return u._shiftPusher&&z6(u,u._fullDepth||0,l,!0),u._r=u.range.slice(),u._rl=Sr.simpleMap(u._r,u.r2l),f}}}))};Ge.drawOne=function(e,r,t){t=t||{};var a=t.axShifts||{},n=t.overlayingShiftedAx||[],i,o,l;r.setScale();var s=e._fullLayout,u=r._id,f=u.charAt(0),c=Ge.counterLetter(u),v=s._plots[r._mainSubplot],d=r.zerolinelayer==="above traces";if(!v)return;if(r._shiftPusher=r.autoshift||n.indexOf(r._id)!==-1||n.indexOf(r.overlaying)!==-1,r._shiftPusher&r.anchor==="free"){var p=r.linewidth/2||0;r.ticks==="inside"&&(p+=r.ticklen),z6(r,p,a,!0),z6(r,r.shift||0,a,!1)}(t.skipTitle!==!0||r._shift===void 0)&&(r._shift=k5e(r,a));var y=v[f+"axislayer"],m=r._mainLinePosition,b=m+=r._shift,A=r._mainMirrorPosition,w=r._vals=Ge.calcTicks(r),x=[r.mirror,b,A].join("_");for(i=0;i0?Se.bottom-Je:0,Xe))));var xe=0,Ye=0;if(r._shiftPusher&&(xe=Math.max(Xe,Se.height>0?qe==="l"?Je-Se.left:Se.right-Je:0),r.title.text!==s._dfltTitle[f]&&(Ye=(r._titleStandoff||0)+(r._titleScoot||0),qe==="l"&&(Ye+=Uz(r))),r._fullDepth=Math.max(xe,Ye)),r.automargin){Fe={x:0,y:0,r:0,l:0,t:0,b:0};var vr=[0,1],Pe=typeof r._shift=="number"?r._shift:0;if(f==="x"){if(qe==="b"?Fe[qe]=r._depth:(Fe[qe]=r._depth=Math.max(Se.width>0?Je-Se.top:0,Xe),vr.reverse()),Se.width>0){var me=Se.right-(r._offset+r._length);me>0&&(Fe.xr=1,Fe.r=me);var Te=r._offset-Se.left;Te>0&&(Fe.xl=0,Fe.l=Te)}}else if(qe==="l"?(r._depth=Math.max(Se.height>0?Je-Se.left:0,Xe),Fe[qe]=r._depth-Pe):(r._depth=Math.max(Se.height>0?Se.right-Je:0,Xe),Fe[qe]=r._depth+Pe,vr.reverse()),Se.height>0){var Ue=Se.bottom-(r._offset+r._length);Ue>0&&(Fe.yb=0,Fe.b=Ue);var $e=r._offset-Se.top;$e>0&&(Fe.yt=1,Fe.t=$e)}Fe[c]=r.anchor==="free"?r.position:r._anchorAxis.domain[vr[0]],r.title.text!==s._dfltTitle[f]&&(Fe[qe]+=Uz(r)+(r.title.standoff||0)),r.mirror&&r.anchor!=="free"&&(er={x:0,y:0,r:0,l:0,t:0,b:0},er[Ze]=r.linewidth,r.mirror&&r.mirror!==!0&&(er[Ze]+=Xe),r.mirror===!0||r.mirror==="ticks"?er[c]=r._anchorAxis.domain[vr[1]]:(r.mirror==="all"||r.mirror==="allticks")&&(er[c]=[r._counterDomainMin,r._counterDomainMax][vr[1]]))}Ie&&(re=Hh.getComponentMethod("rangeslider","autoMarginOpts")(e,r)),typeof r.automargin=="string"&&(Hz(Fe,r.automargin),Hz(er,r.automargin)),o0.autoMargin(e,O6(r),Fe),o0.autoMargin(e,Kz(r),er),o0.autoMargin(e,Qz(r),re)}),Sr.syncOrAsync(Le)}};function Hz(e,r){if(e){var t=Object.keys(Rz).reduce(function(a,n){return r.indexOf(n)!==-1&&Rz[n].forEach(function(i){a[i]=1}),a},{});Object.keys(e).forEach(function(a){t[a]||(a.length===1?e[a]=0:delete e[a])})}}function d5e(e,r){var t=[],a,n=function(i,o){var l=i.xbnd[o];l!==null&&t.push(Sr.extendFlat({},i,{x:l}))};if(r.length){for(a=0;ae.range[1],l=e.ticklabelposition&&e.ticklabelposition.indexOf("inside")!==-1,s=!l;if(t){var u=o?-1:1;t=t*u}if(a){var f=e.side,c=l&&(f==="top"||f==="left")||s&&(f==="bottom"||f==="right")?1:-1;a=a*c}return e._id.charAt(0)==="x"?function(v){return l0(n+e._offset+e.l2p(R6(v))+t,i+a)}:function(v){return l0(i+a,n+e._offset+e.l2p(R6(v))+t)}};function R6(e){return e.periodX!==void 0?e.periodX:e.x}function g5e(e){var r=e.ticklabelposition||"",t=e.tickson||"",a=function(p){return r.indexOf(p)!==-1},n=a("top"),i=a("left"),o=a("right"),l=a("bottom"),s=a("inside"),u=t!=="boundaries"&&(l||i||n||o);if(!u&&!s)return[0,0];var f=e.side,c=u?(e.tickwidth||0)/2:0,v=Pm,d=e.tickfont?e.tickfont.size:12;return(l||n)&&(c+=d*of,v+=(e.linewidth||0)/2),(i||o)&&(c+=(e.linewidth||0)/2,v+=Pm),s&&f==="top"&&(v-=d*(1-of)),(i||n)&&(c=-c),(f==="bottom"||f==="right")&&(v=-v),[u?c:0,s?v:0]}Ge.makeTickPath=function(e,r,t,a){a||(a={});var n=a.minor;if(n&&!e.minor)return"";var i=a.len!==void 0?a.len:n?e.minor.ticklen:e.ticklen,o=e._id.charAt(0),l=(e.linewidth||1)/2;return o==="x"?"M0,"+(r+l*t)+"v"+i*t:"M"+(r+l*t)+",0h"+i*t};Ge.makeLabelFns=function(e,r,t){var a=e.ticklabelposition||"",n=e.tickson||"",i=function(N){return a.indexOf(N)!==-1},o=i("top"),l=i("left"),s=i("right"),u=i("bottom"),f=n!=="boundaries"&&(u||l||o||s),c=i("inside"),v=a==="inside"&&e.ticks==="inside"||!c&&e.ticks==="outside"&&n!=="boundaries",d=0,p=0,y=v?e.ticklen:0;if(c?y*=-1:f&&(y=0),v&&(d+=y,t)){var m=Sr.deg2rad(t);d=y*Math.cos(m)+1,p=y*Math.sin(m)}e.showticklabels&&(v||e.showline)&&(d+=.2*e.tickfont.size),d+=(e.linewidth||1)/2*(c?-1:1);var b={labelStandoff:d,labelShift:p},A,w,x,_,k=0,T=e.side,q=e._id.charAt(0),C=e.tickangle,E;if(q==="x")E=!c&&T==="bottom"||c&&T==="top",_=E?1:-1,c&&(_*=-1),A=p*_,w=r+d*_,x=E?1:-.2,Math.abs(C)===90&&(c?x+=Oh:C===-90&&T==="bottom"?x=of:C===90&&T==="top"?x=Oh:x=.5,k=Oh/2*(C/90)),b.xFn=function(N){return N.dx+A+k*N.fontSize},b.yFn=function(N){return N.dy+w+N.fontSize*x},b.anchorFn=function(N,I){if(f){if(l)return"end";if(s)return"start"}return!ya(I)||I===0||I===180?"middle":I*_<0!==c?"end":"start"},b.heightFn=function(N,I,O){return I<-60||I>60?-.5*O:e.side==="top"!==c?-O:0};else if(q==="y"){if(E=!c&&T==="left"||c&&T==="right",_=E?1:-1,c&&(_*=-1),A=d,w=p*_,x=0,!c&&Math.abs(C)===90&&(C===-90&&T==="left"||C===90&&T==="right"?x=of:x=.5),c){var P=ya(C)?+C:0;if(P!==0){var R=Sr.deg2rad(P);k=Math.abs(Math.sin(R))*of*_,x=0}}b.xFn=function(N){return N.dx+r-(A+N.fontSize*x)*_+k*N.fontSize},b.yFn=function(N){return N.dy+w+N.fontSize*Oh},b.anchorFn=function(N,I){return ya(I)&&Math.abs(I)===90?"middle":E?"end":"start"},b.heightFn=function(N,I,O){return e.side==="right"&&(I*=-1),I<-30?-O:I<30?-.5*O:0}}return b};function zm(e){return[e.text,e.x,e.axInfo,e.font,e.fontSize,e.fontColor].join("_")}Ge.drawTicks=function(e,r,t){t=t||{};var a=r._id+"tick",n=[].concat(r.minor&&r.minor.ticks?t.vals.filter(function(o){return o.minor&&!o.noTick}):[]).concat(r.ticks?t.vals.filter(function(o){return!o.minor&&!o.noTick}):[]),i=t.layer.selectAll("path."+a).data(n,zm);i.exit().remove(),i.enter().append("path").classed(a,1).classed("ticks",1).classed("crisp",t.crisp!==!1).each(function(o){return Uh.stroke(Yi.select(this),o.minor?r.minor.tickcolor:r.tickcolor)}).style("stroke-width",function(o){return gi.crispRound(e,o.minor?r.minor.tickwidth:r.tickwidth,1)+"px"}).attr("d",t.path).style("display",null),Nm(r,[Gz]),i.attr("transform",t.transFn)};Ge.drawGrid=function(e,r,t){if(t=t||{},r.tickmode!=="sync"){var a=r._id+"grid",n=r.minor&&r.minor.showgrid,i=n?t.vals.filter(function(b){return b.minor}):[],o=r.showgrid?t.vals.filter(function(b){return!b.minor}):[],l=t.counterAxis;if(l&&Ge.shouldShowZeroLine(e,r,l))for(var s=r.tickmode==="array",u=0;u=0;p--){var y=p?v:d;if(y){var m=y.selectAll("path."+a).data(p?o:i,zm);m.exit().remove(),m.enter().append("path").classed(a,1).classed("crisp",t.crisp!==!1),m.attr("transform",t.transFn).attr("d",t.path).each(function(b){return Uh.stroke(Yi.select(this),b.minor?r.minor.gridcolor:r.gridcolor||"#ddd")}).style("stroke-dasharray",function(b){return gi.dashStyle(b.minor?r.minor.griddash:r.griddash,b.minor?r.minor.gridwidth:r.gridwidth)}).style("stroke-width",function(b){return(b.minor?c:r._gw)+"px"}).style("display",null),typeof t.path=="function"&&m.attr("d",t.path)}}Nm(r,[E6,P6])}};Ge.drawZeroLine=function(e,r,t){t=t||t;var a=r._id+"zl",n=Ge.shouldShowZeroLine(e,r,t.counterAxis),i=t.layer.selectAll("path."+a).data(n?[{x:0,id:r._id}]:[]);i.exit().remove(),i.enter().append("path").classed(a,1).classed("zl",1).classed("crisp",t.crisp!==!1).each(function(){t.layer.selectAll("path").sort(function(o,l){return Wxe(o.id,l.id)})}),i.attr("transform",t.transFn).attr("d",t.path).call(Uh.stroke,r.zerolinecolor||Uh.defaultLine).style("stroke-width",gi.crispRound(e,r.zerolinewidth,r._gw||1)+"px").style("display",null),Nm(r,[D6])};Ge.drawLabels=function(e,r,t){t=t||{};var a=e._fullLayout,n=r._id,i=r.zerolinelayer==="above traces",o=t.cls||n+"tick",l=t.vals.filter(function(V){return V.text}),s=t.labelFns,u=t.secondary?0:r.tickangle,f=(r._prevTickAngles||{})[o],c=t.layer.selectAll("g."+o).data(r.showticklabels?l:[],zm),v=[];c.enter().append("g").classed(o,1).append("text").attr("text-anchor","middle").each(function(V){var W=Yi.select(this),j=e._promises.length;W.call(af.positionText,s.xFn(V),s.yFn(V)).call(gi.font,{family:V.font,size:V.fontSize,color:V.fontColor,weight:V.fontWeight,style:V.fontStyle,variant:V.fontVariant,textcase:V.fontTextcase,lineposition:V.fontLineposition,shadow:V.fontShadow}).text(V.text).call(af.convertToTspans,e),e._promises[j]?v.push(e._promises.pop().then(function(){d(W,u)})):d(W,u)}),Nm(r,[Pz]),c.exit().remove(),t.repositionOnUpdate&&c.each(function(V){Yi.select(this).select("text").call(af.positionText,s.xFn(V),s.yFn(V))});function d(V,W){V.each(function(j){var J=Yi.select(this),te=J.select(".text-math-group"),ae=s.anchorFn(j,W),se=t.transFn.call(J.node(),j)+(ya(W)&&+W!=0?" rotate("+W+","+s.xFn(j)+","+(s.yFn(j)-j.fontSize/2)+")":""),$=af.lineCount(J),fe=Yh*j.fontSize,ie=s.heightFn(j,ya(W)?+W:0,($-1)*fe);if(ie&&(se+=l0(0,ie)),te.empty()){var ue=J.select("text");ue.attr({transform:se,"text-anchor":ae}),ue.style("display",null),r._adjustTickLabelsOverflow&&r._adjustTickLabelsOverflow()}else{var ce=gi.bBox(te.node()).width,oe=ce*{end:-.5,start:.5}[ae];te.attr("transform",se+l0(oe,0))}})}r._adjustTickLabelsOverflow=function(){var V=r.ticklabeloverflow;if(!(!V||V==="allow")){var W=V.indexOf("hide")!==-1,j=r._id.charAt(0)==="x",J=0,te=j?e._fullLayout.width:e._fullLayout.height;if(V.indexOf("domain")!==-1){var ae=Sr.simpleMap(r.range,r.r2l);J=r.l2p(ae[0])+r._offset,te=r.l2p(ae[1])+r._offset}var se=Math.min(J,te),$=Math.max(J,te),fe=r.side,ie=1/0,ue=-1/0;c.each(function(Re){var ye=Yi.select(this),Ce=ye.select(".text-math-group");if(Ce.empty()){var Me=gi.bBox(ye.node()),Le=0;j?(Me.right>$||Me.left$||Me.top+(r.tickangle?0:Re.fontSize/4)r["_visibleLabelMin_"+ae._id]?ye.style("display","none"):$.K==="tick"&&!se&&ye.node().style.display!=="none"&&ye.style("display",null)})})})})},d(c,f+1?f:u);function p(){return v.length&&Promise.all(v)}var y=null;function m(){if(d(c,u),l.length&&r.autotickangles&&(r.type!=="log"||String(r.dtick).charAt(0)!=="D")){y=r.autotickangles[0];var V=0,W=[],j,J=1;c.each(function(Fe){V=Math.max(V,Fe.fontSize);var er=r.l2p(Fe.x),re=F6(this),xe=gi.bBox(re.node());J=Math.max(J,af.lineCount(re)),W.push({top:0,bottom:10,height:10,left:er-xe.width/2,right:er+xe.width/2+2,width:xe.width+2})});var te=(r.tickson==="boundaries"||r.showdividers)&&!t.secondary,ae=l.length,se=Math.abs((l[ae-1].x-l[0].x)*r._m)/(ae-1),$=te?se/2:se,fe=te?r.ticklen:V*1.25*J,ie=Math.sqrt(Math.pow($,2)+Math.pow(fe,2)),ue=$/ie,ce=r.autotickangles.map(function(Fe){return Fe*Math.PI/180}),oe=ce.find(function(Fe){return Math.abs(Math.cos(Fe))<=ue});oe===void 0&&(oe=ce.reduce(function(Fe,er){return Math.abs(Math.cos(Fe))U*O&&(R=O,C[q]=E[q]=N[q])}var Y=Math.abs(R-P);Y-_>0?(Y-=_,_*=1+_/Y):_=0,r._id.charAt(0)!=="y"&&(_=-_),C[T]=w.p2r(w.r2p(E[T])+k*_),w.autorange==="min"||w.autorange==="max reversed"?(C[0]=null,w._rangeInitial0=void 0,w._rangeInitial1=void 0):(w.autorange==="max"||w.autorange==="min reversed")&&(C[1]=null,w._rangeInitial0=void 0,w._rangeInitial1=void 0),a._insideTickLabelsUpdaterange[w._name+".range"]=C}var G=Sr.syncOrAsync(b);return G&&G.then&&e._promises.push(G),G};function b5e(e,r,t){var a=r._id+"divider",n=t.vals,i=t.layer.selectAll("path."+a).data(n,zm);i.exit().remove(),i.enter().insert("path",":first-child").classed(a,1).classed("crisp",1).call(Uh.stroke,r.dividercolor).style("stroke-width",gi.crispRound(e,r.dividerwidth,1)+"px"),i.attr("transform",t.transFn).attr("d",t.path)}Ge.getPxPosition=function(e,r){var t=e._fullLayout._size,a=r._id.charAt(0),n=r.side,i;if(r.anchor!=="free"?i=r._anchorAxis:a==="x"?i={_offset:t.t+(1-(r.position||0))*t.h,_length:0}:a==="y"&&(i={_offset:t.l+(r.position||0)*t.w+r._shift,_length:0}),n==="top"||n==="left")return i._offset;if(n==="bottom"||n==="right")return i._offset+i._length};function Uz(e){var r=e.title.font.size,t=(e.title.text.match(af.BR_TAG_ALL)||[]).length;return e.title.hasOwnProperty("standoff")?r*(of+t*Yh):t?r*(t+1)*Yh:r}function x5e(e,r){var t=e._fullLayout,a=r._id,n=a.charAt(0),i=r.title.font.size,o,l=(r.title.text.match(af.BR_TAG_ALL)||[]).length;if(r.title.hasOwnProperty("standoff"))r.side==="bottom"||r.side==="right"?o=r._depth+r.title.standoff+i*of:(r.side==="top"||r.side==="left")&&(o=r._depth+r.title.standoff+i*(Oh+l*Yh));else{var s=jh(r);if(r.type==="multicategory")o=r._depth;else{var u=1.5*i;s&&(u=.5*i,r.ticks==="outside"&&(u+=r.ticklen)),o=10+u+(r.linewidth?r.linewidth-1:0)}s||(n==="x"?o+=r.side==="top"?i*(r.showticklabels?1:0):i*(r.showticklabels?1.5:.5):o+=r.side==="right"?i*(r.showticklabels?1:.5):i*(r.showticklabels?.5:0))}var f=Ge.getPxPosition(e,r),c,v,d;n==="x"?(v=r._offset+r._length/2,d=r.side==="top"?f-o:f+o):(d=r._offset+r._length/2,v=r.side==="right"?f+o:f-o,c={rotate:"-90",offset:0});var p;if(r.type!=="multicategory"){var y=r._selections[r._id+"tick"];if(p={selection:y,side:r.side},y&&y.node()&&y.node().parentNode){var m=gi.getTranslate(y.node().parentNode);p.offsetLeft=m.x,p.offsetTop=m.y}r.title.hasOwnProperty("standoff")&&(p.pad=0)}return r._titleStandoff=o,Ixe.draw(e,a+"title",{propContainer:r,propName:r._name+".title.text",placeholder:t._dfltTitle[n],avoid:p,transform:c,attributes:{x:v,y:d,"text-anchor":"middle"}})}Ge.shouldShowZeroLine=function(e,r,t){var a=Sr.simpleMap(r.range,r.r2l);return a[0]*a[1]<=0&&r.zeroline&&(r.type==="linear"||r.type==="-")&&!(r.rangebreaks&&r.maskBreaks(0)===Rm)&&(Jz(r,0)||!_5e(e,r,t,a)||w5e(e,r))};Ge.clipEnds=function(e,r){return r.filter(function(t){return Jz(e,t.x)})};function Jz(e,r){var t=e.l2p(r);return t>1&&t1)for(n=1;n=n.min&&e=Yxe:/%L/.test(r)?e>=Gxe:/%[SX]/.test(r)?e>=Em:/%M/.test(r)?e>=Gh:/%[HI]/.test(r)?e>=cl:/%p/.test(r)?e>=Bs:/%[Aadejuwx]/.test(r)?e>=Sn:/%[UVW]/.test(r)?e>=bi:/%[Bbm]/.test(r)?e>=Dm:/%[q]/.test(r)?e>=Cm:/%[Yy]/.test(r)?e>=Lm:!0}});var tN=z((rZe,rN)=>{"use strict";rN.exports=function(r,t,a){var n,i;if(a){var o=t==="reversed"||t==="min reversed"||t==="max reversed";n=a[o?1:0],i=a[o?0:1]}var l=r("autorangeoptions.minallowed",i===null?n:void 0),s=r("autorangeoptions.maxallowed",n===null?i:void 0);l===void 0&&r("autorangeoptions.clipmin"),s===void 0&&r("autorangeoptions.clipmax"),r("autorangeoptions.include")}});var U6=z((tZe,aN)=>{"use strict";var q5e=tN();aN.exports=function(r,t,a,n){var i=t._template||{},o=t.type||i.type||"-";a("minallowed"),a("maxallowed");var l=a("range");if(!l){var s;!n.noInsiderange&&o!=="log"&&(s=a("insiderange"),s&&(s[0]===null||s[1]===null)&&(t.insiderange=!1,s=void 0),s&&(l=a("range",s)))}var u=t.getAutorangeDflt(l,n),f=a("autorange",u),c;l&&(l[0]===null&&l[1]===null||(l[0]===null||l[1]===null)&&(f==="reversed"||f===!0)||l[0]!==null&&(f==="min"||f==="max reversed")||l[1]!==null&&(f==="max"||f==="min reversed"))&&(l=void 0,delete t.range,t.autorange=!0,c=!0),c||(u=t.getAutorangeDflt(l,n),f=a("autorange",u)),f&&(q5e(a,f,l),(o==="linear"||o==="-")&&a("rangemode")),t.cleanRange()}});var iN=z((aZe,nN)=>{var L5e={left:0,top:0};nN.exports=C5e;function C5e(e,r,t){r=r||e.currentTarget||e.srcElement,Array.isArray(t)||(t=[0,0]);var a=e.clientX||0,n=e.clientY||0,i=D5e(r);return t[0]=a-i.left,t[1]=n-i.top,t}function D5e(e){return e===window||e===document||e===document.body?L5e:e.getBoundingClientRect()}});var G6=z((nZe,oN)=>{"use strict";var E5e=A4();function P5e(){var e=!1;try{var r=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("test",null,r),window.removeEventListener("test",null,r)}catch(t){e=!1}return e}oN.exports=E5e&&P5e()});var sN=z((iZe,lN)=>{"use strict";lN.exports=function(r,t,a,n,i){var o=(r-a)/(n-a),l=o+t/(n-a),s=(o+l)/2;return i==="left"||i==="bottom"?o:i==="center"||i==="middle"?s:i==="right"||i==="top"?l:o<2/3-s?o:l>4/3-s?l:s}});var cN=z((oZe,fN)=>{"use strict";var uN=ke(),R5e=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];fN.exports=function(r,t,a,n){return a==="left"?r=0:a==="center"?r=1:a==="right"?r=2:r=uN.constrain(Math.floor(r*3),0,2),n==="bottom"?t=0:n==="middle"?t=1:n==="top"?t=2:t=uN.constrain(Math.floor(t*3),0,2),R5e[t][r]}});var hN=z((lZe,vN)=>{"use strict";var F5e=Ch(),z5e=zp(),N5e=wh().getGraphDiv,I5e=(ah(),ze(th)),Y6=vN.exports={};Y6.wrapped=function(e,r,t){var i;e=N5e(e),e._fullLayout&&z5e.clear(e._fullLayout._uid+I5e.HOVERID);let a=e._hoverdata;Y6.raw(e,r,t)&&e._hoverAnywhereActive&&(e._hoverAnywhereActive=!1,(i=e._fullLayout)!=null&&i.hoveranywhere&&(r!=null&&r.target)&&!a&&e.emit("plotly_unhover",{event:r,points:[]}))};Y6.raw=function(r,t){var a=r._fullLayout,n=r._hoverdata;return t||(t={}),t.target&&!r._dragged&&F5e.triggerHandler(r,"plotly_beforehover",t)===!1?!1:(a._hoverlayer.selectAll("g").remove(),a._hoverlayer.selectAll("line").remove(),a._hoverlayer.selectAll("circle").remove(),r._hoverdata=void 0,t.target&&n&&r.emit("plotly_unhover",{event:t,points:n}),!0)}});var Vi=z((sZe,yN)=>{"use strict";var B5e=iN(),V6=M4(),O5e=G6(),H5e=ke().removeElement,U5e=(Pa(),ze(Ea)),lf=yN.exports={};lf.align=sN();lf.getCursor=cN();var pN=hN();lf.unhover=pN.wrapped;lf.unhoverRaw=pN.raw;lf.init=function(r){var t=r.gd,a=1,n=t._context.doubleClickDelay,i=r.element,o,l,s,u,f,c,v,d;t._mouseDownTime||(t._mouseDownTime=0),i.style.pointerEvents="all",i.onmousedown=m,O5e?(i._ontouchstart&&i.removeEventListener("touchstart",i._ontouchstart),i._ontouchstart=m,i.addEventListener("touchstart",m,{passive:!1})):i.ontouchstart=m;function p(w,x,_){return Math.abs(w)<_&&(w=0),Math.abs(x)<_&&(x=0),[w,x]}var y=r.clampFn||p;function m(w){t._dragged=!1,t._dragging=!0;var x=dN(w);o=x[0],l=x[1],v=w.target,c=w,d=w.buttons===2||w.ctrlKey,typeof w.clientX=="undefined"&&typeof w.clientY=="undefined"&&(w.clientX=o,w.clientY=l),s=new Date().getTime(),s-t._mouseDownTimen&&(a=Math.max(a-1,1)),t._dragged)r.doneFn&&r.doneFn();else{var x;c.target===v?x=c:(x={target:v,srcElement:v,toElement:v},Object.keys(c).concat(Object.keys(c.__proto__)).forEach(_=>{var k=c[_];!x[_]&&typeof k!="function"&&(x[_]=k)})),r.clickFn&&r.clickFn(a,x),d||v.dispatchEvent(new MouseEvent("click",w))}t._dragging=!1,t._dragged=!1}};function mN(){var e=document.createElement("div");e.className="dragcover";var r=e.style;return r.position="fixed",r.left=0,r.right=0,r.top=0,r.bottom=0,r.zIndex=999999999,r.background="none",document.body.appendChild(e),e}lf.coverSlip=mN;function dN(e){return B5e(e.changedTouches?e.changedTouches[0]:e,document.body)}});var Os=z((uZe,gN)=>{"use strict";gN.exports=function(r,t){(r.attr("class")||"").split(" ").forEach(function(a){a.indexOf("cursor-")===0&&r.classed(a,!1)}),t&&r.classed("cursor-"+t,!0)}});var _N=z((fZe,xN)=>{"use strict";var j6=Os(),Wh="data-savedcursor",bN="!!";xN.exports=function(r,t){var a=r.attr(Wh);if(t){if(!a){for(var n=(r.attr("class")||"").split(" "),i=0;i{"use strict";var W6=Ca(),G5e=Ii();wN.exports={_isSubplotObj:!0,visible:{valType:"boolean",dflt:!0,editType:"legend"},bgcolor:{valType:"color",editType:"legend"},bordercolor:{valType:"color",dflt:G5e.defaultLine,editType:"legend"},maxheight:{valType:"number",min:0,editType:"legend"},borderwidth:{valType:"number",min:0,dflt:0,editType:"legend"},font:W6({editType:"legend"}),grouptitlefont:W6({editType:"legend"}),orientation:{valType:"enumerated",values:["v","h"],dflt:"v",editType:"legend"},traceorder:{valType:"flaglist",flags:["reversed","grouped"],extras:["normal"],editType:"legend"},tracegroupgap:{valType:"number",min:0,dflt:10,editType:"legend"},entrywidth:{valType:"number",min:0,editType:"legend"},entrywidthmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels",editType:"legend"},indentation:{valType:"number",min:-15,dflt:0,editType:"legend"},itemsizing:{valType:"enumerated",values:["trace","constant"],dflt:"trace",editType:"legend"},itemwidth:{valType:"number",min:30,dflt:30,editType:"legend"},itemclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggle",editType:"legend"},itemdoubleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggleothers",editType:"legend"},groupclick:{valType:"enumerated",values:["toggleitem","togglegroup"],dflt:"togglegroup",editType:"legend"},groupdoubleclick:{valType:"enumerated",values:["toggleitem","togglegroup"],editType:"legend"},titleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],editType:"legend"},titledoubleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],editType:"legend"},x:{valType:"number",editType:"legend"},xref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"legend"},y:{valType:"number",editType:"legend"},yref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],editType:"legend"},uirevision:{valType:"any",editType:"none"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"legend"},title:{text:{valType:"string",dflt:"",editType:"legend"},font:W6({editType:"legend"}),side:{valType:"enumerated",values:["top","left","top left","top center","top right"],editType:"legend"},editType:"legend"},editType:"legend"}});var Zh=z(Xh=>{"use strict";Xh.isGrouped=function(r){return(r.traceorder||"").indexOf("grouped")!==-1};Xh.isVertical=function(r){return r.orientation!=="h"};Xh.isReversed=function(r){return(r.traceorder||"").indexOf("reversed")!==-1};Xh.getId=function(r){return r._id||"legend"}});var $6=z((hZe,AN)=>{"use strict";var Im=Tr(),xi=ke(),Y5e=Ct(),V5e=On(),j5e=X6(),W5e=Ic(),Z6=Zh();function X5e(e,r,t,a,n){var i=r[e]||{},o=Y5e.newContainer(t,e);function l(W,j){return xi.coerce(i,o,j5e,W,j)}var s=xi.coerceFont(l,"font",t.font);l("bgcolor",t.paper_bgcolor),l("bordercolor");var u=l("visible");if(!u)return;var f,c=function(W,j){var J=f._input,te=f;return xi.coerce(J,te,V5e,W,j)},v=t.font||{},d=xi.coerceFont(l,"grouptitlefont",v,{overrideDflt:{size:Math.round(v.size*1.1)}}),p=0,y=!1,m="normal",b=(t.shapes||[]).filter(function(W){return W.showlegend});function A(W){return Im.traceIs(W,"pie-like")&&W._length!=null&&(Array.isArray(W.legend)||Array.isArray(W.showlegend))}a.filter(A).forEach(function(W){W.visible&&p++;for(var j=0;jW.legend.length)for(var te=W.legend.length;te(e==="legend"?1:0));if(k===!1&&(t[e]=void 0),k===!1&&!i.uirevision||(l("uirevision",t.uirevision),k===!1))return;l("borderwidth");var T=l("orientation"),q=l("yref"),C=l("xref"),E=T==="h",P=q==="paper",R=C==="paper",N,I,O,U="left";E?(N=0,Im.getComponentMethod("rangeslider","isVisible")(r.xaxis)?P?(I=1.1,O="bottom"):(I=1,O="top"):P?(I=-.1,O="top"):(I=0,O="bottom")):(I=1,O="auto",R?N=1.02:(N=1,U="right")),xi.coerce(i,o,{x:{valType:"number",editType:"legend",min:R?-2:0,max:R?3:1,dflt:N}},"x"),xi.coerce(i,o,{y:{valType:"number",editType:"legend",min:P?-2:0,max:P?3:1,dflt:I}},"y"),l("traceorder",m),Z6.isGrouped(t[e])&&l("tracegroupgap"),l("entrywidth"),l("entrywidthmode"),l("indentation"),l("itemsizing"),l("itemwidth"),l("itemclick"),l("itemdoubleclick");let Y=l("groupclick");l("groupdoubleclick",Y),l("xanchor",U),l("yanchor",O),l("maxheight"),l("valign"),xi.noneOrAll(i,o,["x","y"]);var G=l("title.text");if(G){l("title.side",E?"left":"top");var V=xi.extendFlat({},s,{size:xi.bigFont(s.size)});xi.coerceFont(l,"title.font",V);let W=n>1;l("titleclick",W?"toggle":!1),l("titledoubleclick",W?"toggleothers":!1)}}AN.exports=function(r,t,a){var n,i=a.slice(),o=t.shapes;if(o)for(n=0;n{"use strict";var Hs=Tr(),J6=ke(),Z5e=J6.pushUnique,$5e=Zh(),TN=!0;K6.handleItemClick=function(r,t,a,n,i){var o=t._fullLayout;if(t._dragged||t._editing)return;var l=r.data()[0][0];if(l.groupTitle&&l.noClick)return;let s=i===2?a.groupdoubleclick:a.groupclick;n==="toggle"&&a.itemdoubleclick==="toggleothers"&&TN&&t.data&&t._context.showTips&&(J6.notifier(J6._(t,"Double-click on legend to isolate one trace"),"long",t),TN=!1);var u=s==="togglegroup",f=o.hiddenlabels?o.hiddenlabels.slice():[],c=t._fullData;let v=(o.shapes||[]).filter(De=>De.showlegend||De.legendgroup);var d=c.concat(v),p=l.trace;p._isShape&&(p=o.shapes[p.index]);var y=p.legendgroup,m,b,A,w,x,_,k={},T=[],q=[],C=[];function E(De,Ie){var qe=T.indexOf(De),Ze=k.visible;return Ze||(Ze=k.visible=[]),T.indexOf(De)===-1&&(T.push(De),qe=T.length-1),Ze[qe]=Ie,qe}var P=(o.shapes||[]).map(function(De){return De._input}),R=!1;function N(De,Ie){P[De].visible=Ie,R=!0}function I(De,Ie){if(!(l.groupTitle&&!u)){var qe=De._isShape,Ze=De.index;Ze===void 0&&(Ze=De._index);var Je=De.visible===!1?!1:Ie;qe?N(Ze,Je):E(Ze,Je)}}var O=p.legend;if(!p._isShape&&Hs.traceIs(p,"pie-like")){var U=l.label,Y=f.indexOf(U);if(n==="toggle")Y===-1?f.push(U):f.splice(Y,1);else if(n==="toggleothers"){var G=Y!==-1,V=[];for(m=0;mb.showlegend||b.legendgroup),s=i.concat(l);function u(b){return(b.legend||"legend")===o}var f,c;if(a==="toggle")f=!s.some(function(A){return u(A)&&A.visible===!0}),c=!1;else{let b=s.some(function(A){return!u(A)&&A.visible===!0&&A.showlegend!==!1});f=!0,c=!b}let v={visible:[]},d=[],p=(n.shapes||[]).map(function(b){return b._input});for(var y=!1,m=0;ma_e,scrollBarColor:()=>Q5e,scrollBarEnterAttrs:()=>r_e,scrollBarMargin:()=>e_e,scrollBarMinHeight:()=>K5e,scrollBarWidth:()=>J5e,titlePad:()=>t_e});var J5e,K5e,Q5e,e_e,r_e,t_e,a_e,r7=St(()=>{"use strict";J5e=6,K5e=20,Q5e="#808BA4",e_e=4,r_e={rx:20,ry:3,width:0,height:0},t_e=2,a_e=5});var SN=z((pZe,kN)=>{"use strict";var{isArrayOrTypedArray:t7}=Zn(),MN=Tr(),a7=Zh();kN.exports=function(r,t,a){var n=t._inHover,i=a7.isGrouped(t),o=a7.isReversed(t),l={},s=[],u=!1,f={},c=0,v=0,d,p;function y(W,j,J){if(t.visible!==!1&&!(a&&W!==t._id))if(j===""||!a7.isGrouped(t)){var te="~~i"+c;s.push(te),l[te]=[J],c++}else s.indexOf(j)===-1?(s.push(j),u=!0,l[j]=[J]):l[j].push(J)}for(d=0;dN&&(P=N)}C[d][0]._groupMinRank=P,C[d][0]._preGroupSort=d}var I=function(W,j){return W[0]._groupMinRank-j[0]._groupMinRank||W[0]._preGroupSort-j[0]._preGroupSort},O=function(W,j){var J=t7(W.trace.legendrank)?W.trace.legendrank[W.i]:W.trace.legendrank,te=t7(j.trace.legendrank)?j.trace.legendrank[j.i]:j.trace.legendrank;return J-te||W._preSort-j._preSort};for(C.forEach(function(W,j){W[0]._preGroupSort=j}),C.sort(I),d=0;d{"use strict";var Bm=ke();function qN(e){return e.indexOf("e")!==-1?e.replace(/[.]?0+e/,"e"):e.indexOf(".")!==-1?e.replace(/[.]?0+$/,""):e}sf.formatPiePercent=function(r,t){var a=qN((r*100).toPrecision(3));return Bm.numSeparate(a,t)+"%"};sf.formatPieValue=function(r,t){var a=qN(r.toPrecision(10));return Bm.numSeparate(a,t)};sf.getFirstFilled=function(r,t){if(Bm.isArrayOrTypedArray(r))for(var a=0;a{"use strict";var n_e=Jr(),i_e=qr();LN.exports=function(r,t,a,n){var i=a.marker.pattern;i&&i.shape?n_e.pointStyle(r,a,n,t):i_e.fill(r,t.color)}});var Hm=z((gZe,PN)=>{"use strict";var DN=qr(),EN=Om().castOption,o_e=CN();PN.exports=function(r,t,a,n){var i=a.marker.line,o=EN(i.color,t.pts)||DN.defaultLine,l=EN(i.width,t.pts)||0;r.call(o_e,t,a,n).style("stroke-width",l).call(DN.stroke,o)}});var l7=z((bZe,BN)=>{"use strict";var qn=Pr(),n7=Tr(),mn=ke(),RN=mn.strTranslate,_i=Jr(),ji=qr(),i7=yi().extractOpts,Um=ri(),l_e=Hm(),s_e=Om().castOption,u_e=(r7(),ze(e7)),FN=12,zN=5,uf=2,f_e=10,f0=5;BN.exports=function(r,t,a){var n=t._fullLayout;a||(a=n.legend);var i=a.itemsizing==="constant",o=a.itemwidth,l=(o+u_e.itemGap*2)/2,s=RN(l,0),u=function(T,q,C,E){var P;if(T+1)P=T;else if(q&&q.width>0)P=q.width;else return 0;return i?E:Math.min(P,C)};r.each(function(T){var q=qn.select(this),C=mn.ensureSingle(q,"g","layers");C.style("opacity",T[0].trace.opacity);var E=a.indentation,P=a.valign,R=T[0].lineHeight,N=T[0].height;if(P==="middle"&&E===0||!R||!N)C.attr("transform",null);else{var I={top:1,bottom:-1}[P],O=I*(.5*(R-N+3))||0,U=a.indentation;C.attr("transform",RN(U,O))}var Y=C.selectAll("g.legendfill").data([T]);Y.enter().append("g").classed("legendfill",!0);var G=C.selectAll("g.legendlines").data([T]);G.enter().append("g").classed("legendlines",!0);var V=C.selectAll("g.legendsymbols").data([T]);V.enter().append("g").classed("legendsymbols",!0),V.selectAll("g.legendpoints").data([T]).enter().append("g").classed("legendpoints",!0)}).each(k).each(v).each(p).each(d).each(m).each(x).each(w).each(f).each(c).each(b).each(A);function f(T){var q=NN(T),C=q.showFill,E=q.showLine,P=q.showGradientLine,R=q.showGradientFill,N=q.anyFill,I=q.anyLine,O=T[0],U=O.trace,Y,G,V=i7(U),W=V.colorscale,j=V.reversescale,J=function(ue){if(ue.size())if(C)_i.fillGroupStyle(ue,t,!0);else{var ce="legendfill-"+U.uid;_i.gradient(ue,t,ce,o7(j),W,"fill")}},te=function(ue){if(ue.size()){var ce="legendline-"+U.uid;_i.lineGroupStyle(ue),_i.gradient(ue,t,ce,o7(j),W,"stroke")}},ae=Um.hasMarkers(U)||!N?"M5,0":I?"M5,-2":"M5,-3",se=qn.select(this),$=se.select(".legendfill").selectAll("path").data(C||R?[T]:[]);if($.enter().append("path").classed("js-fill",!0),$.exit().remove(),$.attr("d",ae+"h"+o+"v6h-"+o+"z").call(J),E||P){var fe=u(void 0,U.line,f_e,zN);G=mn.minExtend(U,{line:{width:fe}}),Y=[mn.minExtend(O,{trace:G})]}var ie=se.select(".legendlines").selectAll("path").data(E||P?[Y]:[]);ie.enter().append("path").classed("js-line",!0),ie.exit().remove(),ie.attr("d",ae+(P?"l"+o+",0.0001":"h"+o)).call(E?_i.lineGroupStyle:te)}function c(T){var q=NN(T),C=q.anyFill,E=q.anyLine,P=q.showLine,R=q.showMarker,N=T[0],I=N.trace,O=!R&&!E&&!C&&Um.hasText(I),U,Y;function G(fe,ie,ue,ce){var oe=mn.nestedProperty(I,fe).get(),be=mn.isArrayOrTypedArray(oe)&&ie?ie(oe):oe;if(i&&be&&ce!==void 0&&(be=ce),ue){if(beue[1])return ue[1]}return be}function V(fe){return N._distinct&&N.index&&fe[N.index]?fe[N.index]:fe[0]}if(R||O||P){var W={},j={};if(R){W.mc=G("marker.color",V);var J=I.type==="scattermap";W.mx=J?"circle":G("marker.symbol",V),W.mo=G("marker.opacity",mn.mean,[.2,1]),W.mlc=G("marker.line.color",V),W.mlw=G("marker.line.width",mn.mean,[0,5],uf),W.mld=G("marker.line.dash",V),j.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var te=G("marker.size",mn.mean,[2,16],FN);W.ms=te,j.marker.size=te}P&&(j.line={width:G("line.width",V,[0,10],zN)}),O&&(W.tx="Aa",W.tp=G("textposition",V),W.ts=10,W.tc=G("textfont.color",V),W.tf=G("textfont.family",V),W.tw=G("textfont.weight",V),W.ty=G("textfont.style",V),W.tv=G("textfont.variant",V),W.tC=G("textfont.textcase",V),W.tE=G("textfont.lineposition",V),W.tS=G("textfont.shadow",V)),U=[mn.minExtend(N,W)],Y=mn.minExtend(I,j),Y.selectedpoints=null,Y.texttemplate=null}var ae=qn.select(this).select("g.legendpoints"),se=ae.selectAll("path.scatterpts").data(R?U:[]);se.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",s),se.exit().remove(),se.call(_i.pointStyle,Y,t),R&&(U[0].mrc=3);var $=ae.selectAll("g.pointtext").data(O?U:[]);$.enter().append("g").classed("pointtext",!0).append("text").attr("transform",s),$.exit().remove(),$.selectAll("text").call(_i.textPointStyle,Y,t)}function v(T){var q=T[0].trace,C=q.type==="waterfall";if(T[0]._distinct&&C){var E=T[0].trace[T[0].dir].marker;return T[0].mc=E.color,T[0].mlw=E.line.width,T[0].mlc=E.line.color,y(T,this,"waterfall")}var P=[];q.visible&&C&&(P=T[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 R=qn.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data(P);R.enter().append("path").classed("legendwaterfall",!0).attr("transform",s).style("stroke-miterlimit",1),R.exit().remove(),R.each(function(N){var I=qn.select(this),O=q[N[0]].marker,U=u(void 0,O.line,f0,uf);I.attr("d",N[1]).style("stroke-width",U+"px").call(ji.fill,O.color),U&&I.call(ji.stroke,O.line.color)})}function d(T){y(T,this)}function p(T){y(T,this,"funnel")}function y(T,q,C){var E=T[0].trace,P=E.marker||{},R=P.line||{},N=P.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",I=C?E.visible&&E.type===C:n7.traceIs(E,"bar"),O=qn.select(q).select("g.legendpoints").selectAll("path.legend"+C).data(I?[T]:[]);O.enter().append("path").classed("legend"+C,!0).attr("d",N).attr("transform",s),O.exit().remove(),O.each(function(U){var Y=qn.select(this),G=U[0],V=u(G.mlw,P.line,f0,uf);Y.style("stroke-width",V+"px");var W=G.mcc;if(!a._inHover&&"mc"in G){var j=i7(P),J=j.mid;J===void 0&&(J=(j.max+j.min)/2),W=_i.tryColorscale(P,"")(J)}var te=W||G.mc||P.color,ae=P.pattern,se=_i.getPatternAttr,$=ae&&(se(ae.shape,0,"")||se(ae.path,0,""));if($){var fe=se(ae.bgcolor,0,null),ie=se(ae.fgcolor,0,null),ue=ae.fgopacity,ce=IN(ae.size,8,10),oe=IN(ae.solidity,.5,1),be="legend-"+E.uid;Y.call(_i.pattern,"legend",t,be,$,ce,oe,W,ae.fillmode,fe,ie,ue)}else Y.call(ji.fill,te);V&&ji.stroke(Y,G.mlc||R.color)})}function m(T){var q=T[0].trace,C=qn.select(this).select("g.legendpoints").selectAll("path.legendbox").data(q.visible&&n7.traceIs(q,"box-violin")?[T]:[]);C.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform",s),C.exit().remove(),C.each(function(){var E=qn.select(this);if((q.boxpoints==="all"||q.points==="all")&&ji.opacity(q.fillcolor)===0&&ji.opacity((q.line||{}).color)===0){var P=mn.minExtend(q,{marker:{size:i?FN:mn.constrain(q.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});C.call(_i.pointStyle,P,t)}else{var R=u(void 0,q.line,f0,uf);E.style("stroke-width",R+"px").call(ji.fill,q.fillcolor),R&&ji.stroke(E,q.line.color)}})}function b(T){var q=T[0].trace,C=qn.select(this).select("g.legendpoints").selectAll("path.legendcandle").data(q.visible&&q.type==="candlestick"?[T,T]:[]);C.enter().append("path").classed("legendcandle",!0).attr("d",function(E,P){return P?"M-15,0H-8M-8,6V-6H8Z":"M15,0H8M8,-6V6H-8Z"}).attr("transform",s).style("stroke-miterlimit",1),C.exit().remove(),C.each(function(E,P){var R=qn.select(this),N=q[P?"increasing":"decreasing"],I=u(void 0,N.line,f0,uf);R.style("stroke-width",I+"px").call(ji.fill,N.fillcolor),I&&ji.stroke(R,N.line.color)})}function A(T){var q=T[0].trace,C=qn.select(this).select("g.legendpoints").selectAll("path.legendohlc").data(q.visible&&q.type==="ohlc"?[T,T]:[]);C.enter().append("path").classed("legendohlc",!0).attr("d",function(E,P){return P?"M-15,0H0M-8,-6V0":"M15,0H0M8,6V0"}).attr("transform",s).style("stroke-miterlimit",1),C.exit().remove(),C.each(function(E,P){var R=qn.select(this),N=q[P?"increasing":"decreasing"],I=u(void 0,N.line,f0,uf);R.style("fill","none").call(_i.dashLine,N.line.dash,I),I&&ji.stroke(R,N.line.color)})}function w(T){_(T,this,"pie")}function x(T){_(T,this,"funnelarea")}function _(T,q,C){var E=T[0],P=E.trace,R=C?P.visible&&P.type===C:n7.traceIs(P,C),N=qn.select(q).select("g.legendpoints").selectAll("path.legend"+C).data(R?[T]:[]);if(N.enter().append("path").classed("legend"+C,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",s),N.exit().remove(),N.size()){var I=P.marker||{},O=u(s_e(I.line.width,E.pts),I.line,f0,uf),U="pieLike",Y=mn.minExtend(P,{marker:{line:{width:O}}},U),G=mn.minExtend(E,{trace:Y},U);l_e(N,G,Y,t)}}function k(T){var q=T[0].trace,C,E=[];if(q.visible)switch(q.type){case"histogram2d":case"heatmap":E=[["M-15,-2V4H15V-2Z"]],C=!0;break;case"choropleth":case"choroplethmap":E=[["M-6,-6V6H6V-6Z"]],C=!0;break;case"densitymap":E=[["M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"]],C="radial";break;case"cone":E=[["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"]],C=!1;break;case"streamtube":E=[["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"]],C=!1;break;case"surface":E=[["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"]],C=!0;break;case"mesh3d":E=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],C=!1;break;case"volume":E=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],C=!0;break;case"isosurface":E=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6 A12,24 0 0,0 6,-6 L0,6Z"]],C=!1;break}var P=qn.select(this).select("g.legendpoints").selectAll("path.legend3dandfriends").data(E);P.enter().append("path").classed("legend3dandfriends",!0).attr("transform",s).style("stroke-miterlimit",1),P.exit().remove(),P.each(function(R,N){var I=qn.select(this),O=i7(q),U=O.colorscale,Y=O.reversescale,G=function(J){if(J.size()){var te="legendfill-"+q.uid;_i.gradient(J,t,te,o7(Y,C==="radial"),U,"fill")}},V;if(U){if(!C){var j=U.length;V=N===0?U[Y?j-1:0][1]:N===1?U[Y?0:j-1][1]:U[Math.floor((j-1)/2)][1]}}else{var W=q.vertexcolor||q.facecolor||q.color;V=mn.isArrayOrTypedArray(W)?W[N]||W[0]:W}I.attr("d",R[0]),V?I.call(ji.fill,V):I.call(G)})}};function o7(e,r){var t=r?"radial":"horizontal";return t+(e?"":"reversed")}function NN(e){var r=e[0].trace,t=r.contours,a=Um.hasLines(r)||r.visible&&r.type==="quiver",n=Um.hasMarkers(r),i=r.visible&&r.fill&&r.fill!=="none",o=!1,l=!1;if(t){var s=t.coloring;s==="lines"?o=!0:a=s==="none"||s==="heatmap"||t.showlines,t.type==="constraint"?i=t._operation!=="=":(s==="fill"||s==="heatmap")&&(l=!0)}return{showMarker:n,showLine:a,showFill:i,showGradientLine:o,showGradientFill:l,anyLine:a||o,anyFill:i||l}}function IN(e,r,t){return e&&mn.isArrayOrTypedArray(e)?r:e>t?t:e}});var c7=z((xZe,XN)=>{"use strict";var Hn=Pr(),ga=ke(),u7=ma(),ff=Tr(),Vm=Ch(),s7=Vi(),ba=Jr(),$h=qr(),cf=Fa(),ON=Q6().handleItemClick,HN=Q6().handleTitleClick,Ta=(r7(),ze(e7)),f7=(on(),ze(nn)),jN=f7.LINE_SPACING,v0=f7.FROM_TL,UN=f7.FROM_BR,GN=SN(),c_e=l7(),h0=Zh(),c0=1,v_e=/^legend[0-9]*$/;XN.exports=function(r,t){if(t)YN(r,t);else{var a=r._fullLayout,n=a._legends,i=a._infolayer.selectAll('[class^="legend"]');i.each(function(){var u=Hn.select(this),f=u.attr("class"),c=f.split(" ")[0];c.match(v_e)&&n.indexOf(c)===-1&&u.remove()});for(var o=0;o1)}var p=a.hiddenlabels||[];if(!l&&(!a.showlegend||!s.length))return o.selectAll("."+n).remove(),a._topdefs.select("#"+i).remove(),u7.autoMargin(e,n);var y=ga.ensureSingle(o,"g",n,function(q){l||q.attr("pointer-events","all")}),m=ga.ensureSingleById(a._topdefs,"clipPath",i,function(q){q.append("rect")}),b=ga.ensureSingle(y,"rect","bg",function(q){q.attr("shape-rendering","crispEdges")});b.call($h.stroke,t.bordercolor).call($h.fill,t.bgcolor).style("stroke-width",t.borderwidth+"px");var A=ga.ensureSingle(y,"g","scrollbox"),w=t.title;t._titleWidth=0,t._titleHeight=0;var x;w.text?(x=ga.ensureSingle(A,"text",n+"titletext"),x.attr("text-anchor","start").call(ba.font,w.font).text(w.text),Ym(x,A,e,t,c0),!l&&(t.titleclick||t.titledoubleclick)&&m_e(A,e,t,n)):(A.selectAll("."+n+"titletext").remove(),A.selectAll("."+n+"titletoggle").remove());var _=ga.ensureSingle(y,"rect","scrollbar",function(q){q.attr(Ta.scrollBarEnterAttrs).call($h.fill,Ta.scrollBarColor)}),k=A.selectAll("g.groups").data(s);k.enter().append("g").attr("class","groups"),k.exit().remove();var T=k.selectAll("g.traces").data(ga.identity);T.enter().append("g").attr("class","traces"),T.exit().remove(),T.style("opacity",function(q){let C=q[0],E=C.trace;if(C.groupTitle){let P=E.legendgroup,R=(a.shapes||[]).filter(function(I){return I.showlegend});return e._fullData.concat(R).some(function(I){return I.legendgroup===P&&(I.legend||"legend")===n&&I.visible===!0})?1:.5}return ff.traceIs(E,"pie-like")?p.indexOf(q[0].label)!==-1?.5:1:E.visible==="legendonly"?.5:1}).each(function(){Hn.select(this).call(d_e,e,t)}).call(c_e,e,t).each(function(q){l||q[0].groupTitle&&t.groupclick==="toggleitem"||Hn.select(this).call(p_e,e,n)}),ga.syncOrAsync([u7.previousPromises,function(){return b_e(e,k,T,t,A)},function(){var q=a._size,C=t.borderwidth,E=t.xref==="paper",P=t.yref==="paper";if(w.text){let Ce=(a.shapes||[]).filter(function(Le){return Le.showlegend}),Me=e._fullData.concat(Ce).some(function(Le){let De=Le.legend||"legend";var Ie=Array.isArray(De)?De.includes(n):De===n;return Ie&&Le.visible===!0});x.style("opacity",Me?1:.5)}if(!l){var R,N;E?R=q.l+q.w*t.x-v0[jm(t)]*t._width:R=a.width*t.x-v0[jm(t)]*t._width,P?N=q.t+q.h*(1-t.y)-v0[Wm(t)]*t._effHeight:N=a.height*(1-t.y)-v0[Wm(t)]*t._effHeight;var I=x_e(e,n,R,N);if(I)return;if(a.margin.autoexpand){var O=R,U=N;R=E?ga.constrain(R,0,a.width-t._width):O,N=P?ga.constrain(N,0,a.height-t._effHeight):U,R!==O&&ga.log("Constrain "+n+".x to make legend fit inside graph"),N!==U&&ga.log("Constrain "+n+".y to make legend fit inside graph")}ba.setTranslate(y,R,N)}if(_.on(".drag",null),y.on("wheel",null),l||t._height<=t._maxHeight||e._context.staticPlot){var Y=t._effHeight;l&&(Y=t._height),b.attr({width:t._width-C,height:Y-C,x:C/2,y:C/2}),ba.setTranslate(A,0,0),m.select("rect").attr({width:t._width-2*C,height:Y-2*C,x:C,y:C}),ba.setClipUrl(A,i,e),ba.setRect(_,0,0,0,0),delete t._scrollY}else{var G=Math.max(Ta.scrollBarMinHeight,t._effHeight*t._effHeight/t._height),V=t._effHeight-G-2*Ta.scrollBarMargin,W=t._height-t._effHeight,j=V/W,J=Math.min(t._scrollY||0,W);b.attr({width:t._width-2*C+Ta.scrollBarWidth+Ta.scrollBarMargin,height:t._effHeight-C,x:C/2,y:C/2}),m.select("rect").attr({width:t._width-2*C+Ta.scrollBarWidth+Ta.scrollBarMargin,height:t._effHeight-2*C,x:C,y:C+J}),ba.setClipUrl(A,i,e),ce(J,G,j),y.on("wheel",function(){J=ga.constrain(t._scrollY+Hn.event.deltaY/W*V,0,W),ce(J,G,j),J!==0&&J!==W&&Hn.event.preventDefault()});var te,ae,se,$=function(Ce,Me,Le){var De=(Le-Me)/j+Ce;return ga.constrain(De,0,W)},fe=function(Ce,Me,Le){var De=(Me-Le)/j+Ce;return ga.constrain(De,0,W)},ie=Hn.behavior.drag().on("dragstart",function(){var Ce=Hn.event.sourceEvent;Ce.type==="touchstart"?te=Ce.changedTouches[0].clientY:te=Ce.clientY,se=J}).on("drag",function(){var Ce=Hn.event.sourceEvent;Ce.buttons===2||Ce.ctrlKey||(Ce.type==="touchmove"?ae=Ce.changedTouches[0].clientY:ae=Ce.clientY,J=$(se,te,ae),ce(J,G,j))});_.call(ie);var ue=Hn.behavior.drag().on("dragstart",function(){var Ce=Hn.event.sourceEvent;Ce.type==="touchstart"&&(te=Ce.changedTouches[0].clientY,se=J)}).on("drag",function(){var Ce=Hn.event.sourceEvent;Ce.type==="touchmove"&&(ae=Ce.changedTouches[0].clientY,J=fe(se,te,ae),ce(J,G,j))});A.call(ue)}function ce(Ce,Me,Le){t._scrollY=e._fullLayout[n]._scrollY=Ce,ba.setTranslate(A,0,-Ce),ba.setRect(_,t._width,Ta.scrollBarMargin+Ce*Le,Ta.scrollBarWidth,Me),m.select("rect").attr("y",C+Ce)}if(e._context.edits.legendPosition){var oe,be,Re,ye;y.classed("cursor-move",!0),s7.init({element:y.node(),gd:e,prepFn:function(Ce){if(Ce.target!==_.node()){var Me=ba.getTranslate(y);Re=Me.x,ye=Me.y}},moveFn:function(Ce,Me){if(Re!==void 0&&ye!==void 0){var Le=Re+Ce,De=ye+Me;ba.setTranslate(y,Le,De),oe=s7.align(Le,t._width,q.l,q.l+q.w,t.xanchor),be=s7.align(De+t._height,-t._height,q.t+q.h,q.t,t.yanchor)}},doneFn:function(){if(oe!==void 0&&be!==void 0){var Ce={};Ce[n+".x"]=oe,Ce[n+".y"]=be,ff.call("_guiRelayout",e,Ce)}},clickFn:function(Ce,Me){var Le=o.selectAll("g.traces").filter(function(){var De=this.getBoundingClientRect();return Me.clientX>=De.left&&Me.clientX<=De.right&&Me.clientY>=De.top&&Me.clientY<=De.bottom});Le.size()>0&&WN(e,t,Le,Ce,Me)}})}}],e)}}function Gm(e,r,t){var a=e[0],n=a.width,i=r.entrywidthmode,o=a.trace.legendwidth||r.entrywidth;return i==="fraction"?r._maxWidth*o:t+(o||n)}function WN(e,r,t,a,n){var i=e._fullLayout,o=t.data()[0][0].trace,l=r.itemclick,s=r.itemdoubleclick,u={event:n,node:t.node(),curveNumber:o.index,expandedIndex:o.index,data:e.data,layout:e.layout,frames:e._transitionData._frames,config:e._context,fullData:e._fullData,fullLayout:i};o._group&&(u.group=o._group),ff.traceIs(o,"pie-like")&&(u.label=t.datum()[0].label);var f=Vm.triggerHandler(e,"plotly_legendclick",u);if(a===1){if(f===!1)return;r._clickTimeout=setTimeout(function(){e._fullLayout&&l&&ON(t,e,r,l,a)},e._context.doubleClickDelay)}else if(a===2){r._clickTimeout&&clearTimeout(r._clickTimeout),e._legendMouseDownTime=0;var c=Vm.triggerHandler(e,"plotly_legenddoubleclick",u);c!==!1&&f!==!1&&s&&ON(t,e,r,s,a)}}function d_e(e,r,t){var a=h0.getId(t),n=e.data()[0][0],i=n.trace,o=ff.traceIs(i,"pie-like"),l=!t._inHover&&r._context.edits.legendText&&!o,s=t._maxNameLength,u,f;n.groupTitle?(u=n.groupTitle.text,f=n.groupTitle.font):(f=t.font,t.entries?u=n.text:(u=o?n.label:i.name,i._meta&&(u=ga.templateString(u,i._meta))));var c=ga.ensureSingle(e,"text",a+"text");c.attr("text-anchor","start").call(ba.font,f).text(l?VN(u,s):u);var v=t.indentation+t.itemwidth+Ta.itemGap*2;cf.positionText(c,v,0),l?c.call(cf.makeEditable,{gd:r,text:u}).call(Ym,e,r,t).on("edit",function(d){this.text(VN(d,s)).call(Ym,e,r,t);var p={};return p.name=d,n.trace._isShape?ff.call("_guiRelayout",r,"shapes["+i.index+"].name",p.name):ff.call("_guiRestyle",r,p,i.index)}):Ym(c,e,r,t)}function VN(e,r){var t=Math.max(4,r);if(e&&e.trim().length>=t/2)return e;e=e||"";for(var a=t-e.length;a>0;a--)e+=" ";return e}function p_e(e,r,t){var a=r._context.doubleClickDelay,n,i=1,o=ga.ensureSingle(e,"rect",t+"toggle",function(l){r._context.staticPlot||l.style("cursor","pointer").attr("pointer-events","all"),l.call($h.fill,"rgba(0,0,0,0)")});r._context.staticPlot||(o.on("mousedown",function(){n=new Date().getTime(),n-r._legendMouseDownTimea&&(i=Math.max(i-1,1)),WN(r,l,e,i,Hn.event)}}))}function m_e(e,r,t,a){if(r._fullData.some(function(u){let f=u.legend||"legend";return(Array.isArray(f)?f.includes(a):f===a)&&ff.traceIs(u,"pie-like")}))return;let i=r._context.doubleClickDelay;var o,l=1;let s=ga.ensureSingle(e,"rect",a+"titletoggle",function(u){r._context.staticPlot||u.style("cursor","pointer").attr("pointer-events","all"),u.call($h.fill,"rgba(0,0,0,0)")});r._context.staticPlot||(s.on("mousedown",function(){o=new Date().getTime(),o-r._legendMouseDownTimei&&(l=Math.max(l-1,1));let u={event:Hn.event,legendId:a,data:r.data,layout:r.layout,fullData:r._fullData,fullLayout:r._fullLayout};if(l===1&&t.titleclick){if(Vm.triggerHandler(r,"plotly_legendtitleclick",u)===!1)return;t._titleClickTimeout=setTimeout(function(){r._fullLayout&&HN(r,t,t.titleclick)},i)}else l===2&&(t._titleClickTimeout&&clearTimeout(t._titleClickTimeout),r._legendMouseDownTime=0,Vm.triggerHandler(r,"plotly_legendtitledoubleclick",u)!==!1&&t.titledoubleclick&&HN(r,t,t.titledoubleclick))}))}function Ym(e,r,t,a,n){a._inHover&&e.attr("data-notex",!0),cf.convertToTspans(e,t,function(){y_e(r,t,a,n)})}function y_e(e,r,t,a){var n=e.data()[0][0],i=n&&n.trace.showlegend;if(Array.isArray(i)&&(i=i[n.i]!==!1),!t._inHover&&n&&!i){e.remove();return}var o=e.select("g[class*=math-group]"),l=o.node(),s=h0.getId(t);t||(t=r._fullLayout[s]);var u=t.borderwidth,f;a===c0?f=t.title.font:n.groupTitle?f=n.groupTitle.font:f=t.font;var c=f.size*jN,v,d;if(l){var p=ba.bBox(l);v=p.height,d=p.width,a===c0?ba.setTranslate(o,u,u+v*.75):ba.setTranslate(o,0,v*.25)}else{var y="."+s+(a===c0?"title":"")+"text",m=e.select(y),b=cf.lineCount(m),A=m.node();if(v=c*b,d=A?ba.bBox(A).width:0,a===c0)t.title.side==="left"&&(d+=Ta.itemGap*2),cf.positionText(m,u+Ta.titlePad,u+c);else{var w=Ta.itemGap*2+t.indentation+t.itemwidth;n.groupTitle&&(w=Ta.itemGap,d-=t.indentation+t.itemwidth),cf.positionText(m,w,-c*((b-1)/2-.3))}}a===c0?(t._titleWidth=d,t._titleHeight=v):(n.lineHeight=c,n.height=Math.max(v,16)+3,n.width=d)}function g_e(e){var r=0,t=0,a=e.title.side;return a&&(a.indexOf("left")!==-1&&(r=e._titleWidth),a.indexOf("top")!==-1&&(t=e._titleHeight)),[r,t]}function b_e(e,r,t,a,n){var i=e._fullLayout,o=h0.getId(a);a||(a=i[o]);var l=i._size,s=h0.isVertical(a),u=h0.isGrouped(a),f=a.entrywidthmode==="fraction",c=a.borderwidth,v=2*c,d=Ta.itemGap,p=a.indentation+a.itemwidth+d*2,y=2*(c+d),m=Wm(a),b=a.y<0||a.y===0&&m==="top",A=a.y>1||a.y===1&&m==="bottom",w=a.tracegroupgap,x={};let{orientation:_,yref:k}=a,{maxheight:T}=a,q=b||A||_!=="v"||k!=="paper";T||(T=q?.5:1);let C=q?i.height:l.h;a._maxHeight=Math.max(T>1?T:T*C,30);var E=0;a._width=0,a._height=0;var P=g_e(a);if(s)t.each(function(Ce){var Me=Ce[0].height;ba.setTranslate(this,c+P[0],c+P[1]+a._height+Me/2+d),a._height+=Me,a._width=Math.max(a._width,Ce[0].width)}),E=p+a._width,a._width+=d+p+v,a._height+=y,u&&(r.each(function(Ce,Me){ba.setTranslate(this,0,Me*a.tracegroupgap)}),a._height+=(a._lgroupsLength-1)*a.tracegroupgap);else{var R=jm(a),N=a.x<0||a.x===0&&R==="right",I=a.x>1||a.x===1&&R==="left",O=A||b,U=i.width/2;a._maxWidth=Math.max(N?O&&R==="left"?l.l+l.w:U:I?O&&R==="right"?l.r+l.w:U:l.w,2*p);var Y=0,G=0;t.each(function(Ce){var Me=Gm(Ce,a,p);Y=Math.max(Y,Me),G+=Me}),E=null;var V=0;if(u){var W=0,j=0,J=0;r.each(function(){var Ce=0,Me=0;Hn.select(this).selectAll("g.traces").each(function(De){var Ie=Gm(De,a,p),qe=De[0].height;ba.setTranslate(this,P[0],P[1]+c+d+qe/2+Me),Me+=qe,Ce=Math.max(Ce,Ie),x[De[0].trace.legendgroup]=Ce});var Le=Ce+d;j>0&&Le+c+j>a._maxWidth?(V=Math.max(V,j),j=0,J+=W+w,W=Me):W=Math.max(W,Me),ba.setTranslate(this,j,J),j+=Le}),a._width=Math.max(V,j)+c,a._height=J+W+y}else{var te=t.size(),ae=G+v+(te-1)*d=a._maxWidth&&(V=Math.max(V,ie),$=0,fe+=se,a._height+=se,se=0),ba.setTranslate(this,P[0]+c+$,P[1]+c+fe+Me/2+d),ie=$+Le+d,$+=De,se=Math.max(se,Me)}),ae?(a._width=$+v,a._height=se+y):(a._width=Math.max(V,ie)+v,a._height+=se+y)}}a._width=Math.ceil(Math.max(a._width+P[0],a._titleWidth+2*(c+Ta.titlePad))),a._height=Math.ceil(Math.max(a._height+P[1],a._titleHeight+2*(c+Ta.itemGap))),a._effHeight=Math.min(a._height,a._maxHeight);var ue=e._context.edits,ce=ue.legendText||ue.legendPosition;t.each(function(Ce){var Me=Hn.select(this).select("."+o+"toggle"),Le=Ce[0].height,De=Ce[0].trace.legendgroup,Ie=Gm(Ce,a,p);u&&De!==""&&(Ie=x[De]);var qe=ce?p:E||Ie;!s&&!f&&(qe+=d/2),ba.setRect(Me,0,-Le/2,qe,Le)});var oe=n.select("."+o+"titletext");oe.node()&&h_e(oe,a,c);var be=n.select("."+o+"titletoggle");if(be.size()&&oe.node()){var Re=oe.attr("x")||0,ye=Ta.titlePad;ba.setRect(be,Re-ye,c,a._titleWidth+2*ye,a._titleHeight+2*ye)}}function x_e(e,r,t,a){var n=e._fullLayout,i=n[r],o=jm(i),l=Wm(i),s=i.xref==="paper",u=i.yref==="paper";e._fullLayout._reservedMargin[r]={};var f=i.y<.5?"b":"t",c=i.x<.5?"l":"r",v={r:n.width-t,l:t+i._width,b:n.height-a,t:a+i._effHeight};if(s&&u)return u7.autoMargin(e,r,{x:i.x,y:i.y,l:i._width*v0[o],r:i._width*UN[o],b:i._effHeight*UN[l],t:i._effHeight*v0[l]});s?e._fullLayout._reservedMargin[r][f]=v[f]:u||i.orientation==="v"?e._fullLayout._reservedMargin[r][c]=v[c]:e._fullLayout._reservedMargin[r][f]=v[f]}function jm(e){return ga.isRightAnchor(e)?"right":ga.isCenterAnchor(e)?"center":"left"}function Wm(e){return ga.isBottomAnchor(e)?"bottom":ga.isMiddleAnchor(e)?"middle":"top"}});var p7=z(d7=>{"use strict";var vf=Pr(),Wl=Br(),ea=ke(),__e=ea.pushUnique,v7=ea.strTranslate,w_e=ea.strRotate,A_e=Ch(),Wi=Fa(),T_e=_N(),hl=Jr(),Ma=qr(),Xm=Vi(),dl=Yr(),M_e=(Pa(),ze(Ea)).zindexSeparator,p0=Tr(),wi=Ro(),hf=(ah(),ze(th)),k_e=$6(),S_e=c7(),tI=hf.YANGLE,h7=Math.PI*tI/180,q_e=1/Math.sin(h7),L_e=Math.cos(h7),C_e=Math.sin(h7),Ut=hf.HOVERARROWSIZE,Xr=hf.HOVERTEXTPAD,ZN={box:!0,ohlc:!0,violin:!0,candlestick:!0},D_e={scatter:!0,scattergl:!0,splom:!0};function $N(e,r){return e.distance-r.distance}d7.hover=function(r,t,a,n){r=ea.getGraphDiv(r);var i=t.target;ea.throttle(r._fullLayout._uid+hf.HOVERID,hf.HOVERMINTIME,function(){E_e(r,t,a,n,i)})};d7.loneHover=function(r,t){var a=!0;Array.isArray(r)||(a=!1,r=[r]);var n=t.gd,i=lI(n),o=sI(n),l=r.map(function(m){var b=m._x0||m.x0||m.x||0,A=m._x1||m.x1||m.x||0,w=m._y0||m.y0||m.y||0,x=m._y1||m.y1||m.y||0,_=m.eventData;if(_){var k=Math.min(b,A),T=Math.max(b,A),q=Math.min(w,x),C=Math.max(w,x),E=m.trace;if(p0.traceIs(E,"gl3d")){var P=n._fullLayout[E.scene]._scene.container,R=P.offsetLeft,N=P.offsetTop;k+=R,T+=R,q+=N,C+=N}_.bbox={x0:k+o,x1:T+o,y0:q+i,y1:C+i},_.xPixel=(b+A)/2,_.yPixel=(w+x)/2,t.inOut_bbox&&t.inOut_bbox.push(_.bbox)}else _=!1;return{color:m.color||Ma.defaultLine,x0:m.x0||m.x||0,x1:m.x1||m.x||0,y0:m.y0||m.y||0,y1:m.y1||m.y||0,xLabel:m.xLabel,yLabel:m.yLabel,zLabel:m.zLabel,text:m.text,name:m.name,idealAlign:m.idealAlign,borderColor:m.borderColor,fontFamily:m.fontFamily,fontSize:m.fontSize,fontColor:m.fontColor,fontWeight:m.fontWeight,fontStyle:m.fontStyle,fontVariant:m.fontVariant,nameLength:m.nameLength,textAlign:m.textAlign,trace:m.trace||{index:0,hoverinfo:""},xa:{_offset:0},ya:{_offset:0},index:0,hovertemplate:m.hovertemplate||!1,hovertemplateLabels:m.hovertemplateLabels||!1,eventData:_}}),s=!1,u=nI(l,{gd:n,hovermode:"closest",rotateLabels:s,bgColor:t.bgColor||Ma.background,container:vf.select(t.container),outerContainer:t.outerContainer||t.container}),f=u.hoverLabels,c=5,v=0,d=0;f.sort(function(m,b){return m.y0-b.y0}).each(function(m,b){var A=m.y0-m.by/2;A-cT[0]._length||ye<0||ye>q[0]._length)return Xm.unhoverRaw(e,r)}if(r.pointerX=Re+T[0]._offset,r.pointerY=ye+q[0]._offset,"xval"in r?U=wi.flat(i,r.xval):U=wi.p2c(T,Re),"yval"in r?Y=wi.flat(i,r.yval):Y=wi.p2c(q,ye),e._hoverPointerX=r.pointerX,e._hoverPointerY=r.pointerY,!Wl(U[0])||!Wl(Y[0]))return ea.warn("Fx.hover failed",r,e),Xm.unhoverRaw(e,r)}l.clickanywhere&&(e._hoverXVals=U,e._hoverYVals=Y,e._hoverXAxes=T,e._hoverYAxes=q);var Le=1/0;function De(hr,wt){for(V=0;Vie&&(I.splice(0,ie),Le=I[0].distance),c&&N!==0&&I.length===0){fe.distance=N,fe.index=!1;var it=j._module.hoverPoints(fe,se,$,"closest",{hoverLayer:l._hoverlayer});if(it&&(it=it.filter(function(la){return la.spikeDistance<=N})),it&&it.length){var ia,zn=it.filter(function(la){return la.xa.showspikes&&la.xa.spikesnap!=="hovered data"});if(zn.length){var Xt=zn[0];Wl(Xt.x0)&&Wl(Xt.y0)&&(ia=qe(Xt),(!ue.vLinePoint||ue.vLinePoint.spikeDistance>ia.spikeDistance)&&(ue.vLinePoint=ia))}var Pt=it.filter(function(la){return la.ya.showspikes&&la.ya.spikesnap!=="hovered data"});if(Pt.length){var oa=Pt[0];Wl(oa.x0)&&Wl(oa.y0)&&(ia=qe(oa),(!ue.hLinePoint||ue.hLinePoint.spikeDistance>ia.spikeDistance)&&(ue.hLinePoint=ia))}}}}}De();function Ie(hr,wt,Vr){for(var ht=null,Nt=1/0,kt,it=0;ithr.trace.index===Te.trace.index):I=[Te];var Ue=I.length,$e=rI("x",Te,l),Oe=rI("y",Te,l);De($e,Oe);var We=[],ar={},or=0,sr=function(hr){var wt=ZN[hr.trace.type]?aI(hr):hr.trace.index;if(!ar[wt])or++,ar[wt]=or,We.push(hr);else{var Vr=ar[wt]-1,ht=We[Vr];Vr>0&&Math.abs(hr.distance)Ue-1;Ee--)sr(I[Ee]);I=We,Se()}var Ke=e._hoverdata,Be=[],mr=lI(e),yr=sI(e);for(let hr of I){var ur=wi.makeEventData(hr,hr.trace,hr.cd);if(hr.hovertemplate!==!1){var gr=!1;hr.cd[hr.index]&&hr.cd[hr.index].ht&&(gr=hr.cd[hr.index].ht),hr.hovertemplate=gr||hr.trace.hovertemplate||!1}if(hr.xa&&hr.ya){var ne=hr.x0+hr.xa._offset,ge=hr.x1+hr.xa._offset,Ne=hr.y0+hr.ya._offset,He=hr.y1+hr.ya._offset,Kr=Math.min(ne,ge),Qr=Math.max(ne,ge),yt=Math.min(Ne,He),gt=Math.max(Ne,He);ur.bbox={x0:Kr+yr,x1:Qr+yr,y0:yt+mr,y1:gt+mr},ur.xPixel=(ne+ge)/2,ur.yPixel=(Ne+He)/2}hr.eventData=[ur],Be.push(ur)}e._hoverdata=Be;var Et=v==="y"&&(O.length>1||I.length>1)||v==="closest"&&ce&&I.length>1,aa=Ma.combine(l.plot_bgcolor||Ma.background,l.paper_bgcolor),$a=nI(I,{gd:e,hovermode:v,rotateLabels:Et,bgColor:aa,container:l._hoverlayer,outerContainer:l._paper.node(),commonLabelOpts:l.hoverlabel,hoverdistance:l.hoverdistance}),na=$a.hoverLabels;if(wi.isUnifiedHover(v)||(R_e(na,Et,l,$a.commonLabelBoundingBox),oI(na,Et,l._invScaleX,l._invScaleY)),n&&n.tagName){var Ja=p0.getComponentMethod("annotations","hasClickToShow")(e,Be);T_e(vf.select(n),Ja?"pointer":"")}var hn=N_e(e,r,Ke);if(!n||a||!hn&&!l.hoveranywhere)return;Ke&&hn&&e.emit("plotly_unhover",{event:r,points:Ke}),fa(e._hoverdata);function fa(hr){e.emit("plotly_hover",{event:r,points:hr,xaxes:T,yaxes:q,xvals:wi.c2dApply(T,U),yvals:wi.c2dApply(q,Y),xPixel:r.pointerX,yPixel:r.pointerY})}}function aI(e){return[e.trace.index,e.index,e.x0,e.y0,e.name,e.attr,e.xa?e.xa._id:"",e.ya?e.ya._id:""].join(",")}var P_e=/([\s\S]*)<\/extra>/;function nI(e,r){var t=r.gd,a=t._fullLayout,n=r.hovermode,i=r.rotateLabels,o=r.bgColor,l=r.container,s=r.outerContainer,u=r.commonLabelOpts||{};if(e.length===0)return[[]];var f=r.fontFamily||hf.HOVERFONT,c=r.fontSize||hf.HOVERFONTSIZE,v=r.fontWeight||a.font.weight,d=r.fontStyle||a.font.style,p=r.fontVariant||a.font.variant,y=r.fontTextcase||a.font.textcase,m=r.fontLineposition||a.font.lineposition,b=r.fontShadow||a.font.shadow,A=e[0],w=A.xa,x=A.ya,_=n.charAt(0),k=_+"Label",T=A[k];if(T===void 0&&w.type==="multicategory")for(var q=0;qa.width-Be&&(mr=a.width-Be),me.attr("d","M"+(sr-mr)+",0L"+(sr-mr+Ut)+","+Ke+Ut+"H"+Be+"v"+Ke+(Xr*2+or.height)+"H"+-Be+"V"+Ke+Ut+"H"+(sr-mr-Ut)+"Z"),sr=mr,V.minX=sr-Be,V.maxX=sr+Be,w.side==="top"?(V.minY=Ee-(Xr*2+or.height),V.maxY=Ee-Xr):(V.minY=Ee+Xr,V.maxY=Ee+(Xr*2+or.height))}else{var yr,ur,gr;x.side==="right"?(yr="start",ur=1,gr="",sr=w._offset+w._length):(yr="end",ur=-1,gr="-",sr=w._offset),Ee=x._offset+(A.y0+A.y1)/2,Te.attr("text-anchor",yr),me.attr("d","M0,0L"+gr+Ut+","+Ut+"V"+(Xr+or.height/2)+"h"+gr+(Xr*2+or.width)+"V-"+(Xr+or.height/2)+"H"+gr+Ut+"V-"+Ut+"Z"),V.minY=Ee-(Xr+or.height/2),V.maxY=Ee+(Xr+or.height/2),x.side==="right"?(V.minX=sr+Ut,V.maxX=sr+Ut+(Xr*2+or.width)):(V.minX=sr-Ut-(Xr*2+or.width),V.maxX=sr-Ut);var ne=or.height/2,ge=E-or.top-ne,Ne="clip"+a._uid+"commonlabel"+x._id,He;if(srme.hoverinfo!=="none");if(Pe.length===0)return[];var W=a.hoverlabel,j=W.font,J=Pe[0],te=((n==="x unified"?J.xa:J.ya).unifiedhovertitle||{}).text,ae=te?ea.hovertemplateString({data:n==="x unified"?[{xa:J.xa,x:J.xVal}]:[{ya:J.ya,y:J.yVal}],fallback:J.trace.hovertemplatefallback,locale:a._d3locale,template:te}):T,se={showlegend:!0,legend:{title:{text:ae,font:j},font:j,bgcolor:W.bgcolor,bordercolor:W.bordercolor,borderwidth:1,tracegroupgap:7,traceorder:a.legend?a.legend.traceorder:void 0,orientation:"v"}},$={font:j};k_e(se,$,t._fullData);var fe=$.legend;fe.entries=[];for(var ie=0;ie=0?xe=Se:Fe+Me=0?xe=Fe:er+Me=0?Ye=Je:Xe+Le=0?Ye=Xe:re+Le=0,(Pe.idealAlign==="top"||!yt)&>?(gr-=ge/2,Pe.anchor="end"):yt?(gr+=ge/2,Pe.anchor="start"):Pe.anchor="middle",Pe.crossPos=gr;else{if(Pe.pos=gr,yt=ur+ne/2+Qr<=P,gt=ur-ne/2-Qr>=0,(Pe.idealAlign==="left"||!yt)&>)ur-=ne/2,Pe.anchor="end";else if(yt)ur+=ne/2,Pe.anchor="start";else{Pe.anchor="middle";var Et=Qr/2,aa=ur+Et-P,$a=ur-Et;aa>0&&(ur-=aa),$a<0&&(ur+=-$a)}Pe.crossPos=ur}Ee.attr("text-anchor",Pe.anchor),Be&&Ke.attr("text-anchor",Pe.anchor),me.attr("transform",v7(ur,gr)+(i?w_e(tI):""))}),{hoverLabels:vr,commonLabelBoundingBox:V}}function JN(e,r,t,a,n,i){var c,v;var o="",l="";e.nameOverride!==void 0&&(e.name=e.nameOverride),e.name&&(e.trace._meta&&(e.name=ea.templateString(e.name,e.trace._meta)),o=eI(e.name,e.nameLength));var s=t.charAt(0),u=s==="x"?"y":"x";e.zLabel!==void 0?(e.xLabel!==void 0&&(l+="x: "+e.xLabel+"
"),e.yLabel!==void 0&&(l+="y: "+e.yLabel+"
"),e.trace.type!=="choropleth"&&e.trace.type!=="choroplethmap"&&(l+=(l?"z: ":"")+e.zLabel)):r&&e[s+"Label"]===n?l=e[u+"Label"]||"":e.xLabel===void 0?e.yLabel!==void 0&&e.trace.type!=="scattercarpet"&&(l=e.yLabel):e.yLabel===void 0?l=e.xLabel:l="("+e.xLabel+", "+e.yLabel+")",(e.text||e.text===0)&&!Array.isArray(e.text)&&(l+=(l?"
":"")+e.text),e.extraText!==void 0&&(l+=(l?"
":"")+e.extraText),i&&l===""&&!e.hovertemplate&&(o===""&&i.remove(),l=o),(v=(c=e.trace)==null?void 0:c.hoverlabel)!=null&&v.split&&(e.hovertemplate="");let{hovertemplate:f=!1}=e;if(f){let d=e.hovertemplateLabels||e;e[s+"Label"]!==n&&(d[s+"other"]=d[s+"Val"],d[s+"otherLabel"]=d[s+"Label"]),l=ea.hovertemplateString({data:[e.eventData[0]||{},e.trace._meta],fallback:e.trace.hovertemplatefallback,labels:d,locale:a._d3locale,template:f}),l=l.replace(P_e,(p,y)=>(o=eI(y,e.nameLength),""))}return[l,o]}function R_e(e,r,t,a){var n=r?"xa":"ya",i=r?"ya":"xa",o=0,l=1,s=e.size(),u=new Array(s),f=0,c=a.minX,v=a.maxX,d=a.minY,p=a.maxY,y=function(U){return U*t._invScaleX},m=function(U){return U*t._invScaleY};e.each(function(U){var Y=U[n],G=U[i],V=Y._id.charAt(0)==="x",W=Y.range;f===0&&W&&W[0]>W[1]!==V&&(l=-1);var j=0,J=V?t.width:t.height;if(t.hovermode==="x"||t.hovermode==="y"){var te=iI(U,r),ae=U.anchor,se=ae==="end"?-1:1,$,fe;if(ae==="middle")$=U.crossPos+(V?m(te.y-U.by/2):y(U.bx/2+U.tx2width/2)),fe=$+(V?m(U.by):y(U.bx));else if(V)$=U.crossPos+m(Ut+te.y)-m(U.by/2-Ut),fe=$+m(U.by);else{var ie=y(se*Ut+te.x),ue=ie+y(se*U.bx);$=U.crossPos+Math.min(ie,ue),fe=U.crossPos+Math.max(ie,ue)}V?d!==void 0&&p!==void 0&&Math.min(fe,p)-Math.max($,d)>1&&(G.side==="left"?(j=G._mainLinePosition,J=t.width):J=G._mainLinePosition):c!==void 0&&v!==void 0&&Math.min(fe,v)-Math.max($,c)>1&&(G.side==="top"?(j=G._mainLinePosition,J=t.height):J=G._mainLinePosition)}u[f++]=[{datum:U,traceIndex:U.trace.index,dp:0,pos:U.pos,posref:U.posref,size:U.by*(V?q_e:1)/2,pmin:j,pmax:J}]}),u.sort(function(U,Y){return U[0].posref-Y[0].posref||l*(Y[0].traceIndex-U[0].traceIndex)});var b,A,w,x,_,k,T;function q(U){var Y=U[0],G=U[U.length-1];if(A=Y.pmin-Y.pos-Y.dp+Y.size,w=G.pos+G.dp+G.size-Y.pmax,A>.01){for(_=U.length-1;_>=0;_--)U[_].dp+=A;b=!1}if(!(w<.01)){if(A<-.01){for(_=U.length-1;_>=0;_--)U[_].dp-=w;b=!1}if(b){var V=0;for(x=0;xY.pmax&&V++;for(x=U.length-1;x>=0&&!(V<=0);x--)k=U[x],k.pos>Y.pmax-1&&(k.del=!0,V--);for(x=0;x=0;_--)U[_].dp-=w;for(x=U.length-1;x>=0&&!(V<=0);x--)k=U[x],k.pos+k.dp+k.size>Y.pmax&&(k.del=!0,V--)}}}for(;!b&&o<=s;){for(o++,b=!0,x=0;x.01){for(_=E.length-1;_>=0;_--)E[_].dp+=A;for(C.push.apply(C,E),u.splice(x+1,1),T=0,_=C.length-1;_>=0;_--)T+=C[_].dp;for(w=T/C.length,_=C.length-1;_>=0;_--)C[_].dp-=w;b=!1}else x++}u.forEach(q)}for(x=u.length-1;x>=0;x--){var N=u[x];for(_=N.length-1;_>=0;_--){var I=N[_],O=I.datum;O.offset=I.dp,O.del=I.del}}}function iI(e,r){var t=0,a=e.offset;return r&&(a*=-C_e,t=e.offset*L_e),{x:t,y:a}}function F_e(e){var r={start:1,end:-1,middle:0}[e.anchor],t=r*(Ut+Xr),a=t+r*(e.txwidth+Xr),n=e.anchor==="middle";return n&&(t-=e.tx2width/2,a+=e.txwidth/2+Xr),{alignShift:r,textShiftX:t,text2ShiftX:a}}function oI(e,r,t,a){var n=function(o){return o*t},i=function(o){return o*a};e.each(function(o){var l=vf.select(this);if(o.del)return l.remove();var s=l.select("text.nums"),u=o.anchor,f=u==="end"?-1:1,c=F_e(o),v=iI(o,r),d=v.x,p=v.y,y=u==="middle",m="hoverlabel"in o.trace?o.trace.hoverlabel.showarrow:!0,b;y?b="M-"+n(o.bx/2+o.tx2width/2)+","+i(p-o.by/2)+"h"+n(o.bx)+"v"+i(o.by)+"h-"+n(o.bx)+"Z":m?b="M0,0L"+n(f*Ut+d)+","+i(Ut+p)+"v"+i(o.by/2-Ut)+"h"+n(f*o.bx)+"v-"+i(o.by)+"H"+n(f*Ut+d)+"V"+i(p-Ut)+"Z":b="M"+n(f*Ut+d)+","+i(p-o.by/2)+"h"+n(f*o.bx)+"v"+i(o.by)+"h"+n(-f*o.bx)+"Z",l.select("path").attr("d",b);var A=d+c.textShiftX,w=p+o.ty0-o.by/2+Xr,x=o.textAlign||"auto";x!=="auto"&&(x==="left"&&u!=="start"?(s.attr("text-anchor","start"),A=y?-o.bx/2-o.tx2width/2+Xr:-o.bx-Xr):x==="right"&&u!=="end"&&(s.attr("text-anchor","end"),A=y?o.bx/2-o.tx2width/2-Xr:o.bx+Xr)),s.call(Wi.positionText,n(A),i(w)),o.tx2width&&(l.select("text.name").call(Wi.positionText,n(c.text2ShiftX+c.alignShift*Xr+d),i(p+o.ty0-o.by/2+Xr)),l.select("rect").call(hl.setRect,n(c.text2ShiftX+(c.alignShift-1)*o.tx2width/2+d),i(p-o.by/2-1),n(o.tx2width),i(o.by+2)))})}function z_e(e,r){var t=e.index,a=e.trace||{},n=e.cd[0],i=e.cd[t]||{};function o(v){return v||Wl(v)&&v===0}var l=Array.isArray(t)?function(v,d){var p=ea.castOption(n,t,v);return o(p)?p:ea.extractOption({},a,"",d)}:function(v,d){return ea.extractOption(i,a,v,d)};function s(v,d,p){var y=l(d,p);o(y)&&(e[v]=y)}if(s("hoverinfo","hi","hoverinfo"),s("bgcolor","hbg","hoverlabel.bgcolor"),s("borderColor","hbc","hoverlabel.bordercolor"),s("fontFamily","htf","hoverlabel.font.family"),s("fontSize","hts","hoverlabel.font.size"),s("fontColor","htc","hoverlabel.font.color"),s("fontWeight","htw","hoverlabel.font.weight"),s("fontStyle","hty","hoverlabel.font.style"),s("fontVariant","htv","hoverlabel.font.variant"),s("nameLength","hnl","hoverlabel.namelength"),s("textAlign","hta","hoverlabel.align"),e.posref=r==="y"||r==="closest"&&a.orientation==="h"?e.xa._offset+(e.x0+e.x1)/2:e.ya._offset+(e.y0+e.y1)/2,e.x0=ea.constrain(e.x0,0,e.xa._length),e.x1=ea.constrain(e.x1,0,e.xa._length),e.y0=ea.constrain(e.y0,0,e.ya._length),e.y1=ea.constrain(e.y1,0,e.ya._length),e.xLabelVal!==void 0&&(e.xLabel="xLabel"in e?e.xLabel:dl.hoverLabelText(e.xa,e.xLabelVal,a.xhoverformat),e.xVal=e.xa.c2d(e.xLabelVal)),e.yLabelVal!==void 0&&(e.yLabel="yLabel"in e?e.yLabel:dl.hoverLabelText(e.ya,e.yLabelVal,a.yhoverformat),e.yVal=e.ya.c2d(e.yLabelVal)),e.zLabelVal!==void 0&&e.zLabel===void 0&&(e.zLabel=String(e.zLabelVal)),!isNaN(e.xerr)&&!(e.xa.type==="log"&&e.xerr<=0)){var u=dl.tickText(e.xa,e.xa.c2l(e.xerr),"hover").text;e.xerrneg!==void 0?e.xLabel+=" +"+u+" / -"+dl.tickText(e.xa,e.xa.c2l(e.xerrneg),"hover").text:e.xLabel+=" \xB1 "+u,r==="x"&&(e.distance+=1)}if(!isNaN(e.yerr)&&!(e.ya.type==="log"&&e.yerr<=0)){var f=dl.tickText(e.ya,e.ya.c2l(e.yerr),"hover").text;e.yerrneg!==void 0?e.yLabel+=" +"+f+" / -"+dl.tickText(e.ya,e.ya.c2l(e.yerrneg),"hover").text:e.yLabel+=" \xB1 "+f,r==="y"&&(e.distance+=1)}var c=e.hoverinfo||e.trace.hoverinfo;return c&&c!=="all"&&(c=Array.isArray(c)?c:c.split("+"),c.indexOf("x")===-1&&(e.xLabel=void 0),c.indexOf("y")===-1&&(e.yLabel=void 0),c.indexOf("z")===-1&&(e.zLabel=void 0),c.indexOf("text")===-1&&(e.text=void 0),c.indexOf("name")===-1&&(e.name=void 0)),e}function KN(e,r,t){var a=t.container,n=t.fullLayout,i=n._size,o=t.event,l=!!r.hLinePoint,s=!!r.vLinePoint,u,f;if(a.selectAll(".spikeline").remove(),!!(s||l)){var c=Ma.combine(n.plot_bgcolor,n.paper_bgcolor);if(l){var v=r.hLinePoint,d,p;u=v&&v.xa,f=v&&v.ya;var y=f.spikesnap;y==="cursor"?(d=o.pointerX,p=o.pointerY):(d=u._offset+v.x,p=f._offset+v.y);var m=Ma.wcagContrast(v.color,c)<1.5?Ma.contrast(c):v.color,b=f.spikemode,A=f.spikethickness,w=f.spikecolor||m,x=dl.getPxPosition(e,f),_,k;if(b.indexOf("toaxis")!==-1||b.indexOf("across")!==-1){if(b.indexOf("toaxis")!==-1&&(_=x,k=d),b.indexOf("across")!==-1){var T=f._counterDomainMin,q=f._counterDomainMax;f.anchor==="free"&&(T=Math.min(T,f.position),q=Math.max(q,f.position)),_=i.l+T*i.w,k=i.l+q*i.w}a.insert("line",":first-child").attr({x1:_,x2:k,y1:p,y2:p,"stroke-width":A,stroke:w,"stroke-dasharray":hl.dashStyle(f.spikedash,A)}).classed("spikeline",!0).classed("crisp",!0),a.insert("line",":first-child").attr({x1:_,x2:k,y1:p,y2:p,"stroke-width":A+2,stroke:c}).classed("spikeline",!0).classed("crisp",!0)}b.indexOf("marker")!==-1&&a.insert("circle",":first-child").attr({cx:x+(f.side!=="right"?A:-A),cy:p,r:A,fill:w}).classed("spikeline",!0)}if(s){var C=r.vLinePoint,E,P;u=C&&C.xa,f=C&&C.ya;var R=u.spikesnap;R==="cursor"?(E=o.pointerX,P=o.pointerY):(E=u._offset+C.x,P=f._offset+C.y);var N=Ma.wcagContrast(C.color,c)<1.5?Ma.contrast(c):C.color,I=u.spikemode,O=u.spikethickness,U=u.spikecolor||N,Y=dl.getPxPosition(e,u),G,V;if(I.indexOf("toaxis")!==-1||I.indexOf("across")!==-1){if(I.indexOf("toaxis")!==-1&&(G=Y,V=P),I.indexOf("across")!==-1){var W=u._counterDomainMin,j=u._counterDomainMax;u.anchor==="free"&&(W=Math.min(W,u.position),j=Math.max(j,u.position)),G=i.t+(1-j)*i.h,V=i.t+(1-W)*i.h}a.insert("line",":first-child").attr({x1:E,x2:E,y1:G,y2:V,"stroke-width":O,stroke:U,"stroke-dasharray":hl.dashStyle(u.spikedash,O)}).classed("spikeline",!0).classed("crisp",!0),a.insert("line",":first-child").attr({x1:E,x2:E,y1:G,y2:V,"stroke-width":O+2,stroke:c}).classed("spikeline",!0).classed("crisp",!0)}I.indexOf("marker")!==-1&&a.insert("circle",":first-child").attr({cx:E,cy:Y-(u.side!=="top"?O:-O),r:O,fill:U}).classed("spikeline",!0)}}}function N_e(e,r,t){if(!t||t.length!==e._hoverdata.length)return!0;for(var a=t.length-1;a>=0;a--){var n=t[a],i=e._hoverdata[a];if(n.curveNumber!==i.curveNumber||String(n.pointNumber)!==String(i.pointNumber)||String(n.pointNumbers)!==String(i.pointNumbers)||n.binNumber!==i.binNumber)return!0}return!1}function QN(e,r){return!r||r.vLinePoint!==e._spikepoints.vLinePoint||r.hLinePoint!==e._spikepoints.hLinePoint}function eI(e,r){return Wi.plainText(e||"",{len:r,allowedTags:["br","sub","sup","b","i","em","s","u"]})}function I_e(e,r){for(var t=r.charAt(0),a=[],n=[],i=[],o=0;oe.offsetTop+e.clientTop,sI=e=>e.offsetLeft+e.clientLeft;function d0(e,r){var t=e._fullLayout,a=r.getBoundingClientRect(),n=a.left,i=a.top,o=n+a.width,l=i+a.height,s=ea.apply3DTransform(t._invTransform)(n,i),u=ea.apply3DTransform(t._invTransform)(o,l),f=s[0],c=s[1],v=u[0],d=u[1];return{x:f,y:c,width:v-f,height:d-c,top:Math.min(c,d),left:Math.min(f,v),right:Math.max(f,v),bottom:Math.max(c,d)}}});var Zm=z((wZe,uI)=>{"use strict";var B_e=ke(),O_e=qr(),H_e=Ro().isUnifiedHover;uI.exports=function(r,t,a,n){n=n||{};var i=t.legend;function o(l){n.font[l]||(n.font[l]=i?t.legend.font[l]:t.font[l])}t&&H_e(t.hovermode)&&(n.font||(n.font={}),o("size"),o("family"),o("color"),o("weight"),o("style"),o("variant"),i?(n.bgcolor||(n.bgcolor=O_e.combine(t.legend.bgcolor,t.paper_bgcolor)),n.bordercolor||(n.bordercolor=t.legend.bordercolor)):n.bgcolor||(n.bgcolor=t.paper_bgcolor)),a("hoverlabel.bgcolor",n.bgcolor),a("hoverlabel.bordercolor",n.bordercolor),a("hoverlabel.namelength",n.namelength),a("hoverlabel.showarrow",n.showarrow),B_e.coerceFont(a,"hoverlabel.font",n.font),a("hoverlabel.align",n.align)}});var cI=z((AZe,fI)=>{"use strict";var U_e=ke(),G_e=Zm(),Y_e=Mc();fI.exports=function(r,t){function a(n,i){return U_e.coerce(r,t,Y_e,n,i)}G_e(r,t,a)}});var dI=z((TZe,hI)=>{"use strict";var vI=ke(),V_e=j1(),j_e=Zm();hI.exports=function(r,t,a,n){function i(l,s){return vI.coerce(r,t,V_e,l,s)}var o=vI.extendFlat({},n.hoverlabel);t.hovertemplate&&(o.namelength=-1),j_e(r,t,i,o)}});var m7=z((MZe,pI)=>{"use strict";var W_e=ke(),X_e=Mc();pI.exports=function(r,t){function a(n,i){return t[n]!==void 0?t[n]:W_e.coerce(r,t,X_e,n,i)}return a("clickmode"),a("hoversubplots"),a("hoveranywhere"),a("clickanywhere"),a("hovermode")}});var gI=z((kZe,yI)=>{"use strict";var mI=ke(),Z_e=Mc(),$_e=m7(),J_e=Zm();yI.exports=function(r,t){function a(u,f){return mI.coerce(r,t,Z_e,u,f)}var n=$_e(r,t);n&&(a("hoverdistance"),a("spikedistance"),n.indexOf("unified")!==-1&&a("hoversort"));var i=a("dragmode");i==="select"&&a("selectdirection");var o=t._has("map"),l=t._has("geo"),s=t._basePlotModules.length;t.dragmode==="zoom"&&((o||l)&&s===1||o&&l&&s===2)&&(t.dragmode="pan"),J_e(r,t,a),mI.coerceFont(a,"hoverlabel.grouptitlefont",t.hoverlabel.font)}});var _I=z((SZe,xI)=>{"use strict";var y7=ke(),bI=Tr();xI.exports=function(r){var t=r.calcdata,a=r._fullLayout;function n(u){return function(f){return y7.coerceHoverinfo({hoverinfo:f},{_module:u._module},a)}}for(var i=0;i{"use strict";var Q_e=Tr(),wI=Ro(),e4e=p7().hover;AI.exports=function(r,t,a){var n=Q_e.getComponentMethod("annotations","onClick")(r,r._hoverdata),i=r._fullLayout;a!==void 0&&e4e(r,t,a,!0);function o(){var s,u,f,c,v,d;var l={points:r._hoverdata,event:t};(s=l.xaxes)!=null||(l.xaxes=r._hoverXAxes),(u=l.yaxes)!=null||(l.yaxes=r._hoverYAxes),(f=l.xvals)!=null||(l.xvals=r._hoverXVals&&wI.c2dApply(r._hoverXAxes,r._hoverXVals)),(c=l.yvals)!=null||(l.yvals=r._hoverYVals&&wI.c2dApply(r._hoverYAxes,r._hoverYVals)),(v=l.xPixel)!=null||(l.xPixel=r._hoverPointerX),(d=l.yPixel)!=null||(l.yPixel=r._hoverPointerY),r.emit("plotly_click",l)}(r._hoverdata||i.clickanywhere)&&t&&t.target&&(r._hoverdata||(r._hoverdata=[]),n&&n.then?n.then(o):o(),t.stopImmediatePropagation&&t.stopImmediatePropagation())}});var Un=z((LZe,SI)=>{"use strict";var r4e=Pr(),$m=ke(),t4e=Vi(),Jh=Ro(),MI=Mc(),kI=p7();SI.exports={moduleType:"component",name:"fx",constants:(ah(),ze(th)),schema:{layout:MI},attributes:j1(),layoutAttributes:MI,supplyLayoutGlobalDefaults:cI(),supplyDefaults:dI(),supplyLayoutDefaults:gI(),calc:_I(),getDistanceFunction:Jh.getDistanceFunction,getClosest:Jh.getClosest,inbox:Jh.inbox,quadrature:Jh.quadrature,appendArrayPointValue:Jh.appendArrayPointValue,castHoverOption:n4e,castHoverinfo:i4e,hover:kI.hover,unhover:t4e.unhover,loneHover:kI.loneHover,loneUnhover:a4e,click:TI()};function a4e(e){var r=$m.isD3Selection(e)?e:r4e.select(e);r.selectAll("g.hovertext").remove(),r.selectAll(".spikeline").remove()}function n4e(e,r,t){return $m.castOption(e,r,"hoverlabel."+t)}function i4e(e,r,t){function a(n){return $m.coerceHoverinfo({hoverinfo:n},{_module:e._module},r)}return $m.castOption(e,t,"hoverinfo",a)}});var df=z(Xl=>{"use strict";Xl.selectMode=function(e){return e==="lasso"||e==="select"};Xl.drawMode=function(e){return e==="drawclosedpath"||e==="drawopenpath"||e==="drawline"||e==="drawrect"||e==="drawcircle"};Xl.openMode=function(e){return e==="drawline"||e==="drawopenpath"};Xl.rectMode=function(e){return e==="select"||e==="drawline"||e==="drawrect"||e==="drawcircle"};Xl.freeMode=function(e){return e==="lasso"||e==="drawclosedpath"||e==="drawopenpath"};Xl.selectingOrDrawing=function(e){return Xl.freeMode(e)||Xl.rectMode(e)}});var Jm=z((DZe,qI)=>{"use strict";qI.exports=function(r){var t=r._fullLayout;t._glcanvas&&t._glcanvas.size()&&t._glcanvas.each(function(a){a.regl&&a.regl.clear({color:!0,depth:!0})})}});var Km=z((EZe,LI)=>{"use strict";LI.exports={undo:{width:857.1,height:1e3,path:"m857 350q0-87-34-166t-91-137-137-92-166-34q-96 0-183 41t-147 114q-4 6-4 13t5 11l76 77q6 5 14 5 9-1 13-7 41-53 100-82t126-29q58 0 110 23t92 61 61 91 22 111-22 111-61 91-92 61-110 23q-55 0-105-20t-90-57l77-77q17-16 8-38-10-23-33-23h-250q-15 0-25 11t-11 25v250q0 24 22 33 22 10 39-8l72-72q60 57 137 88t159 31q87 0 166-34t137-92 91-137 34-166z",transform:"matrix(1 0 0 -1 0 850)"},home:{width:928.6,height:1e3,path:"m786 296v-267q0-15-11-26t-25-10h-214v214h-143v-214h-214q-15 0-25 10t-11 26v267q0 1 0 2t0 2l321 264 321-264q1-1 1-4z m124 39l-34-41q-5-5-12-6h-2q-7 0-12 3l-386 322-386-322q-7-4-13-4-7 2-12 7l-35 41q-4 5-3 13t6 12l401 334q18 15 42 15t43-15l136-114v109q0 8 5 13t13 5h107q8 0 13-5t5-13v-227l122-102q5-5 6-12t-4-13z",transform:"matrix(1 0 0 -1 0 850)"},"camera-retro":{width:1e3,height:1e3,path:"m518 386q0 8-5 13t-13 5q-37 0-63-27t-26-63q0-8 5-13t13-5 12 5 5 13q0 23 16 38t38 16q8 0 13 5t5 13z m125-73q0-59-42-101t-101-42-101 42-42 101 42 101 101 42 101-42 42-101z m-572-320h858v71h-858v-71z m643 320q0 89-62 152t-152 62-151-62-63-152 63-151 151-63 152 63 62 151z m-571 358h214v72h-214v-72z m-72-107h858v143h-462l-36-71h-360v-72z m929 143v-714q0-30-21-51t-50-21h-858q-29 0-50 21t-21 51v714q0 30 21 51t50 21h858q29 0 50-21t21-51z",transform:"matrix(1 0 0 -1 0 850)"},curlybraces:{width:18,height:16,path:"M 9,4 C 7.354992,4 6,5.354992 6,7 V 9 C 6,9.2999997 5.8778068,9.8883542 5.5878906,10.291016 5.2979744,10.693677 4.9222213,11 4,11 a 1.0001,1.0001 0 0 0 0,2 c 0.2999997,0 0.8883542,0.122193 1.2910156,0.412109 C 5.693677,13.702026 6,14.077779 6,15 v 2 c 0,1.645008 1.354992,3 3,3 h 0.5 a 1,1 0 0 0 1,-1 1,1 0 0 0 -1,-1 H 9 C 8.4358712,18 8,17.564129 8,17 V 15 C 8,13.625876 7.3766799,12.602305 6.6113281,11.96875 6.8086352,11.794047 7.0679793,11.657537 7.2109375,11.458984 7.8210204,10.611647 8,9.6999993 8,9 V 7 C 8,6.4358712 8.4358712,6 9,6 h 0.5 a 1,1 0 0 0 1,-1 1,1 0 0 0 -1,-1 z m 5.5,0 a 1,1 0 0 0 -1,1 1,1 0 0 0 1,1 H 15 c 0.564129,0 1,0.4358712 1,1 v 2 c 0,0.6999993 0.17898,1.611647 0.789062,2.458984 0.142959,0.198553 0.402303,0.335063 0.59961,0.509766 C 16.62332,12.602305 16,13.625876 16,15 v 2 c 0,0.564129 -0.435871,1 -1,1 h -0.5 a 1,1 0 0 0 -1,1 1,1 0 0 0 1,1 H 15 c 1.645008,0 3,-1.354992 3,-3 v -2 c 0,-0.922221 0.306323,-1.297974 0.708984,-1.587891 C 19.111646,13.122193 19.7,13 20,13 a 1.0001,1.0001 0 0 0 0,-2 C 19.077779,11 18.702026,10.693677 18.412109,10.291016 18.122193,9.8883542 18,9.2999997 18,9 V 7 C 18,5.354992 16.645008,4 15,4 Z",transform:"translate(-3 -4)"},zoombox:{width:1e3,height:1e3,path:"m1000-25l-250 251c40 63 63 138 63 218 0 224-182 406-407 406-224 0-406-182-406-406s183-406 407-406c80 0 155 22 218 62l250-250 125 125z m-812 250l0 438 437 0 0-438-437 0z m62 375l313 0 0-312-313 0 0 312z",transform:"matrix(1 0 0 -1 0 850)"},pan:{width:1e3,height:1e3,path:"m1000 350l-187 188 0-125-250 0 0 250 125 0-188 187-187-187 125 0 0-250-250 0 0 125-188-188 186-187 0 125 252 0 0-250-125 0 187-188 188 188-125 0 0 250 250 0 0-126 187 188z",transform:"matrix(1 0 0 -1 0 850)"},zoom_plus:{width:875,height:1e3,path:"m1 787l0-875 875 0 0 875-875 0z m687-500l-187 0 0-187-125 0 0 187-188 0 0 125 188 0 0 187 125 0 0-187 187 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},zoom_minus:{width:875,height:1e3,path:"m0 788l0-876 875 0 0 876-875 0z m688-500l-500 0 0 125 500 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},autoscale:{width:1e3,height:1e3,path:"m250 850l-187 0-63 0 0-62 0-188 63 0 0 188 187 0 0 62z m688 0l-188 0 0-62 188 0 0-188 62 0 0 188 0 62-62 0z m-875-938l0 188-63 0 0-188 0-62 63 0 187 0 0 62-187 0z m875 188l0-188-188 0 0-62 188 0 62 0 0 62 0 188-62 0z m-125 188l-1 0-93-94-156 156 156 156 92-93 2 0 0 250-250 0 0-2 93-92-156-156-156 156 94 92 0 2-250 0 0-250 0 0 93 93 157-156-157-156-93 94 0 0 0-250 250 0 0 0-94 93 156 157 156-157-93-93 0 0 250 0 0 250z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_basic:{width:1500,height:1e3,path:"m375 725l0 0-375-375 375-374 0-1 1125 0 0 750-1125 0z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_compare:{width:1125,height:1e3,path:"m187 786l0 2-187-188 188-187 0 0 937 0 0 373-938 0z m0-499l0 1-187-188 188-188 0 0 937 0 0 376-938-1z",transform:"matrix(1 0 0 -1 0 850)"},plotlylogo:{width:1542,height:1e3,path:"m0-10h182v-140h-182v140z m228 146h183v-286h-183v286z m225 714h182v-1000h-182v1000z m225-285h182v-715h-182v715z m225 142h183v-857h-183v857z m231-428h182v-429h-182v429z m225-291h183v-138h-183v138z",transform:"matrix(1 0 0 -1 0 850)"},"z-axis":{width:1e3,height:1e3,path:"m833 5l-17 108v41l-130-65 130-66c0 0 0 38 0 39 0-1 36-14 39-25 4-15-6-22-16-30-15-12-39-16-56-20-90-22-187-23-279-23-261 0-341 34-353 59 3 60 228 110 228 110-140-8-351-35-351-116 0-120 293-142 474-142 155 0 477 22 477 142 0 50-74 79-163 96z m-374 94c-58-5-99-21-99-40 0-24 65-43 144-43 79 0 143 19 143 43 0 19-42 34-98 40v216h87l-132 135-133-135h88v-216z m167 515h-136v1c16 16 31 34 46 52l84 109v54h-230v-71h124v-1c-16-17-28-32-44-51l-89-114v-51h245v72z",transform:"matrix(1 0 0 -1 0 850)"},"3d_rotate":{width:1e3,height:1e3,path:"m922 660c-5 4-9 7-14 11-359 263-580-31-580-31l-102 28 58-400c0 1 1 1 2 2 118 108 351 249 351 249s-62 27-100 42c88 83 222 183 347 122 16-8 30-17 44-27-2 1-4 2-6 4z m36-329c0 0 64 229-88 296-62 27-124 14-175-11 157-78 225-208 249-266 8-19 11-31 11-31 2 5 6 15 11 32-5-13-8-20-8-20z m-775-239c70-31 117-50 198-32-121 80-199 346-199 346l-96-15-58-12c0 0 55-226 155-287z m603 133l-317-139c0 0 4-4 19-14 7-5 24-15 24-15s-177-147-389 4c235-287 536-112 536-112l31-22 100 299-4-1z m-298-153c6-4 14-9 24-15 0 0-17 10-24 15z",transform:"matrix(1 0 0 -1 0 850)"},camera:{width:1e3,height:1e3,path:"m500 450c-83 0-150-67-150-150 0-83 67-150 150-150 83 0 150 67 150 150 0 83-67 150-150 150z m400 150h-120c-16 0-34 13-39 29l-31 93c-6 15-23 28-40 28h-340c-16 0-34-13-39-28l-31-94c-6-15-23-28-40-28h-120c-55 0-100-45-100-100v-450c0-55 45-100 100-100h800c55 0 100 45 100 100v450c0 55-45 100-100 100z m-400-550c-138 0-250 112-250 250 0 138 112 250 250 250 138 0 250-112 250-250 0-138-112-250-250-250z m365 380c-19 0-35 16-35 35 0 19 16 35 35 35 19 0 35-16 35-35 0-19-16-35-35-35z",transform:"matrix(1 0 0 -1 0 850)"},movie:{width:1e3,height:1e3,path:"m938 413l-188-125c0 37-17 71-44 94 64 38 107 107 107 187 0 121-98 219-219 219-121 0-219-98-219-219 0-61 25-117 66-156h-115c30 33 49 76 49 125 0 103-84 187-187 187s-188-84-188-187c0-57 26-107 65-141-38-22-65-62-65-109v-250c0-70 56-126 125-126h500c69 0 125 56 125 126l188-126c34 0 62 28 62 63v375c0 35-28 63-62 63z m-750 0c-69 0-125 56-125 125s56 125 125 125 125-56 125-125-56-125-125-125z m406-1c-87 0-157 70-157 157 0 86 70 156 157 156s156-70 156-156-70-157-156-157z",transform:"matrix(1 0 0 -1 0 850)"},question:{width:857.1,height:1e3,path:"m500 82v107q0 8-5 13t-13 5h-107q-8 0-13-5t-5-13v-107q0-8 5-13t13-5h107q8 0 13 5t5 13z m143 375q0 49-31 91t-77 65-95 23q-136 0-207-119-9-14 4-24l74-55q4-4 10-4 9 0 14 7 30 38 48 51 19 14 48 14 27 0 48-15t21-33q0-21-11-34t-38-25q-35-16-65-48t-29-70v-20q0-8 5-13t13-5h107q8 0 13 5t5 13q0 10 12 27t30 28q18 10 28 16t25 19 25 27 16 34 7 45z m214-107q0-117-57-215t-156-156-215-58-216 58-155 156-58 215 58 215 155 156 216 58 215-58 156-156 57-215z",transform:"matrix(1 0 0 -1 0 850)"},disk:{width:857.1,height:1e3,path:"m214-7h429v214h-429v-214z m500 0h72v500q0 8-6 21t-11 20l-157 156q-5 6-19 12t-22 5v-232q0-22-15-38t-38-16h-322q-22 0-37 16t-16 38v232h-72v-714h72v232q0 22 16 38t37 16h465q22 0 38-16t15-38v-232z m-214 518v178q0 8-5 13t-13 5h-107q-7 0-13-5t-5-13v-178q0-8 5-13t13-5h107q7 0 13 5t5 13z m357-18v-518q0-22-15-38t-38-16h-750q-23 0-38 16t-16 38v750q0 22 16 38t38 16h517q23 0 50-12t42-26l156-157q16-15 27-42t11-49z",transform:"matrix(1 0 0 -1 0 850)"},cloudupload:{width:640,height:640,path:"M451.5 160C434.9 160 418.8 164.5 404.7 172.7C388.9 156.7 370.5 143.3 350.2 133.2C378.4 109.2 414.3 96 451.5 96C537.9 96 608 166 608 252.5C608 294 591.5 333.8 562.2 363.1L491.1 434.2C461.8 463.5 422 480 380.5 480C294.1 480 224 410 224 323.5C224 322 224 320.5 224.1 319C224.6 301.3 239.3 287.4 257 287.9C274.7 288.4 288.6 303.1 288.1 320.8C288.1 321.7 288.1 322.6 288.1 323.4C288.1 374.5 329.5 415.9 380.6 415.9C405.1 415.9 428.6 406.2 446 388.8L517.1 317.7C534.4 300.4 544.2 276.8 544.2 252.3C544.2 201.2 502.8 159.8 451.7 159.8zM307.2 237.3C305.3 236.5 303.4 235.4 301.7 234.2C289.1 227.7 274.7 224 259.6 224C235.1 224 211.6 233.7 194.2 251.1L123.1 322.2C105.8 339.5 96 363.1 96 387.6C96 438.7 137.4 480.1 188.5 480.1C205 480.1 221.1 475.7 235.2 467.5C251 483.5 269.4 496.9 289.8 507C261.6 530.9 225.8 544.2 188.5 544.2C102.1 544.2 32 474.2 32 387.7C32 346.2 48.5 306.4 77.8 277.1L148.9 206C178.2 176.7 218 160.2 259.5 160.2C346.1 160.2 416 230.8 416 317.1C416 318.4 416 319.7 416 321C415.6 338.7 400.9 352.6 383.2 352.2C365.5 351.8 351.6 337.1 352 319.4C352 318.6 352 317.9 352 317.1C352 283.4 334 253.8 307.2 237.5z",transform:"matrix(1 0 0 1 -15 -15)"},drawopenpath:{width:70,height:70,path:"M33.21,85.65a7.31,7.31,0,0,1-2.59-.48c-8.16-3.11-9.27-19.8-9.88-41.3-.1-3.58-.19-6.68-.35-9-.15-2.1-.67-3.48-1.43-3.79-2.13-.88-7.91,2.32-12,5.86L3,32.38c1.87-1.64,11.55-9.66,18.27-6.9,2.13.87,4.75,3.14,5.17,9,.17,2.43.26,5.59.36,9.25a224.17,224.17,0,0,0,1.5,23.4c1.54,10.76,4,12.22,4.48,12.4.84.32,2.79-.46,5.76-3.59L43,80.07C41.53,81.57,37.68,85.64,33.21,85.65ZM74.81,69a11.34,11.34,0,0,0,6.09-6.72L87.26,44.5,74.72,32,56.9,38.35c-2.37.86-5.57,3.42-6.61,6L38.65,72.14l8.42,8.43ZM55,46.27a7.91,7.91,0,0,1,3.64-3.17l14.8-5.3,8,8L76.11,60.6l-.06.19a6.37,6.37,0,0,1-3,3.43L48.25,74.59,44.62,71Zm16.57,7.82A6.9,6.9,0,1,0,64.64,61,6.91,6.91,0,0,0,71.54,54.09Zm-4.05,0a2.85,2.85,0,1,1-2.85-2.85A2.86,2.86,0,0,1,67.49,54.09Zm-4.13,5.22L60.5,56.45,44.26,72.7l2.86,2.86ZM97.83,35.67,84.14,22l-8.57,8.57L89.26,44.24Zm-13.69-8,8,8-2.85,2.85-8-8Z",transform:"matrix(1 0 0 1 -15 -15)"},drawclosedpath:{width:90,height:90,path:"M88.41,21.12a26.56,26.56,0,0,0-36.18,0l-2.07,2-2.07-2a26.57,26.57,0,0,0-36.18,0,23.74,23.74,0,0,0,0,34.8L48,90.12a3.22,3.22,0,0,0,4.42,0l36-34.21a23.73,23.73,0,0,0,0-34.79ZM84,51.24,50.16,83.35,16.35,51.25a17.28,17.28,0,0,1,0-25.47,20,20,0,0,1,27.3,0l4.29,4.07a3.23,3.23,0,0,0,4.44,0l4.29-4.07a20,20,0,0,1,27.3,0,17.27,17.27,0,0,1,0,25.46ZM66.76,47.68h-33v6.91h33ZM53.35,35H46.44V68h6.91Z",transform:"matrix(1 0 0 1 -5 -5)"},lasso:{width:1031,height:1e3,path:"m1018 538c-36 207-290 336-568 286-277-48-473-256-436-463 10-57 36-108 76-151-13-66 11-137 68-183 34-28 75-41 114-42l-55-70 0 0c-2-1-3-2-4-3-10-14-8-34 5-45 14-11 34-8 45 4 1 1 2 3 2 5l0 0 113 140c16 11 31 24 45 40 4 3 6 7 8 11 48-3 100 0 151 9 278 48 473 255 436 462z m-624-379c-80 14-149 48-197 96 42 42 109 47 156 9 33-26 47-66 41-105z m-187-74c-19 16-33 37-39 60 50-32 109-55 174-68-42-25-95-24-135 8z m360 75c-34-7-69-9-102-8 8 62-16 128-68 170-73 59-175 54-244-5-9 20-16 40-20 61-28 159 121 317 333 354s407-60 434-217c28-159-121-318-333-355z",transform:"matrix(1 0 0 -1 0 850)"},selectbox:{width:1e3,height:1e3,path:"m0 850l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-285l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z",transform:"matrix(1 0 0 -1 0 850)"},drawline:{width:70,height:70,path:"M60.64,62.3a11.29,11.29,0,0,0,6.09-6.72l6.35-17.72L60.54,25.31l-17.82,6.4c-2.36.86-5.57,3.41-6.6,6L24.48,65.5l8.42,8.42ZM40.79,39.63a7.89,7.89,0,0,1,3.65-3.17l14.79-5.31,8,8L61.94,54l-.06.19a6.44,6.44,0,0,1-3,3.43L34.07,68l-3.62-3.63Zm16.57,7.81a6.9,6.9,0,1,0-6.89,6.9A6.9,6.9,0,0,0,57.36,47.44Zm-4,0a2.86,2.86,0,1,1-2.85-2.85A2.86,2.86,0,0,1,53.32,47.44Zm-4.13,5.22L46.33,49.8,30.08,66.05l2.86,2.86ZM83.65,29,70,15.34,61.4,23.9,75.09,37.59ZM70,21.06l8,8-2.84,2.85-8-8ZM87,80.49H10.67V87H87Z",transform:"matrix(1 0 0 1 -15 -15)"},drawrect:{width:80,height:80,path:"M78,22V79H21V22H78m9-9H12V88H87V13ZM68,46.22H31V54H68ZM53,32H45.22V69H53Z",transform:"matrix(1 0 0 1 -10 -10)"},drawcircle:{width:80,height:80,path:"M50,84.72C26.84,84.72,8,69.28,8,50.3S26.84,15.87,50,15.87,92,31.31,92,50.3,73.16,84.72,50,84.72Zm0-60.59c-18.6,0-33.74,11.74-33.74,26.17S31.4,76.46,50,76.46,83.74,64.72,83.74,50.3,68.6,24.13,50,24.13Zm17.15,22h-34v7.11h34Zm-13.8-13H46.24v34h7.11Z",transform:"matrix(1 0 0 1 -10 -10)"},eraseshape:{width:80,height:80,path:"M82.77,78H31.85L6,49.57,31.85,21.14H82.77a8.72,8.72,0,0,1,8.65,8.77V69.24A8.72,8.72,0,0,1,82.77,78ZM35.46,69.84H82.77a.57.57,0,0,0,.49-.6V29.91a.57.57,0,0,0-.49-.61H35.46L17,49.57Zm32.68-34.7-24,24,5,5,24-24Zm-19,.53-5,5,24,24,5-5Z",transform:"matrix(1 0 0 1 -10 -10)"},spikeline:{width:1e3,height:1e3,path:"M512 409c0-57-46-104-103-104-57 0-104 47-104 104 0 57 47 103 104 103 57 0 103-46 103-103z m-327-39l92 0 0 92-92 0z m-185 0l92 0 0 92-92 0z m370-186l92 0 0 93-92 0z m0-184l92 0 0 92-92 0z",transform:"matrix(1.5 0 0 -1.5 0 850)"},pencil:{width:1792,height:1792,path:"M491 1536l91-91-235-235-91 91v107h128v128h107zm523-928q0-22-22-22-10 0-17 7l-542 542q-7 7-7 17 0 22 22 22 10 0 17-7l542-542q7-7 7-17zm-54-192l416 416-832 832h-416v-416zm683 96q0 53-37 90l-166 166-416-416 166-165q36-38 90-38 53 0 91 38l235 234q37 39 37 91z",transform:"matrix(1 0 0 1 0 1)"},newplotlylogo:{name:"newplotlylogo",svg:[""," plotly-logomark"," "," "," "," "," "," "," "," "," "," "," "," "," ",""].join("")}}});var Qm={};qt(Qm,{CIRCLE_SIDES:()=>o4e,SQRT2:()=>h4e,cos45:()=>c4e,i000:()=>l4e,i090:()=>s4e,i180:()=>u4e,i270:()=>f4e,sin45:()=>v4e});var o4e,l4e,s4e,u4e,f4e,c4e,v4e,h4e,ey=St(()=>{"use strict";o4e=32,l4e=0,s4e=8,u4e=16,f4e=24,c4e=Math.cos(Math.PI/4),v4e=Math.sin(Math.PI/4),h4e=Math.sqrt(2)});var ry=z((PZe,DI)=>{"use strict";var d4e=ke().strTranslate;function CI(e,r){switch(e.type){case"log":return e.p2d(r);case"date":return e.p2r(r,0,e.calendar);default:return e.p2r(r)}}function p4e(e,r){switch(e.type){case"log":return e.d2p(r);case"date":return e.r2p(r,0,e.calendar);default:return e.r2p(r)}}function m4e(e){var r=e._id.charAt(0)==="y"?1:0;return function(t){return CI(e,t[r])}}function y4e(e){return d4e(e.xaxis._offset,e.yaxis._offset)}DI.exports={p2r:CI,r2p:p4e,axValue:m4e,getTransform:y4e}});var Us=z(Zl=>{"use strict";var g4e=i6(),RI=(ey(),ze(Qm)),m0=RI.CIRCLE_SIDES,g7=RI.SQRT2,FI=ry(),EI=FI.p2r,PI=FI.r2p,b4e=[0,3,4,5,6,1,2],x4e=[0,3,4,1,2];Zl.writePaths=function(e){var r=e.length;if(!r)return"M0,0Z";for(var t="",a=0;a0&&s{"use strict";var zI=Aa(),HI=df(),_4e=HI.drawMode,w4e=HI.openMode,y0=(ey(),ze(Qm)),NI=y0.i000,II=y0.i090,BI=y0.i180,OI=y0.i270,A4e=y0.cos45,T4e=y0.sin45,UI=ry(),ay=UI.p2r,Gs=UI.r2p,M4e=Es(),k4e=M4e.clearOutline,ny=Us(),S4e=ny.readPaths,q4e=ny.writePaths,L4e=ny.ellipseOver,C4e=ny.fixDatesForPaths;function D4e(e,r){if(e.length){var t=e[0][0];if(t){var a=r.gd,n=r.isActiveShape,i=r.dragmode,o=(a.layout||{}).shapes||[];if(!_4e(i)&&n!==void 0){var l=a._fullLayout._activeShapeIndex;if(l{"use strict";var E4e=df(),P4e=E4e.selectMode,R4e=Es(),F4e=R4e.clearOutline,b7=Us(),z4e=b7.readPaths,N4e=b7.writePaths,I4e=b7.fixDatesForPaths;VI.exports=function(r,t){if(r.length){var a=r[0][0];if(a){var n=a.getAttribute("d"),i=t.gd,o=i._fullLayout.newselection,l=t.plotinfo,s=l.xaxis,u=l.yaxis,f=t.isActiveSelection,c=t.dragmode,v=(i.layout||{}).selections||[];if(!P4e(c)&&f!==void 0){var d=i._fullLayout._activeSelectionIndex;if(dG4e,paramIsX:()=>H4e,paramIsY:()=>U4e,paramRE:()=>O4e,segmentRE:()=>B4e});var B4e,O4e,H4e,U4e,G4e,ed=St(()=>{"use strict";B4e=/[MLHVQCTSZ][^MLHVQCTSZ]*/g,O4e=/[^\s,]+/g,H4e={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:{}},U4e={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:3},Z:{}},G4e={M:2,L:2,H:1,V:1,Q:4,C:6,T:2,S:4,Z:0}});var Vs=z(ja=>{"use strict";var ml=(ed(),ze(Qh)),jI=ke(),Ys=Yr();ja.rangeToShapePosition=function(e){return e.type==="log"?e.r2d:function(r){return r}};ja.shapePositionToRange=function(e){return e.type==="log"?e.d2r:function(r){return r}};ja.decodeDate=function(e){return function(r){return r.replace&&(r=r.replace("_"," ")),e(r)}};ja.encodeDate=function(e){return function(r){return e(r).replace(" ","_")}};ja.extractPathCoords=function(e,r,t){var a=[],n=e.match(ml.segmentRE);return n.forEach(function(i){var o=r[i.charAt(0)].drawn;if(o!==void 0){var l=i.slice(1).match(ml.paramRE);if(!(!l||l.length{let l=o.charAt(0),s=n[l].drawn!==void 0;return i+(s?1:0)},0)};ja.getDataToPixel=function(e,r,t,a,n){var i=e._fullLayout._size,o;if(r)if(n==="domain")o=function(s){return r._length*(a?1-s:s)+r._offset};else{var l=ja.shapePositionToRange(r);o=function(s){var u=pl(r,t);return r._offset+r.r2p(l(s,!0))+u},r.type==="date"&&(o=ja.decodeDate(o))}else a?o=function(s){return i.t+i.h*(1-s)}:o=function(s){return i.l+i.w*s};return o};ja.getPixelToData=function(e,r,t,a){var n=e._fullLayout._size,i;if(r)if(a==="domain")i=function(l){var s=(l-r._offset)/r._length;return t?1-s:s};else{var o=ja.rangeToShapePosition(r);i=function(l){return o(r.p2r(l-r._offset))}}else t?i=function(l){return 1-(l-n.t)/n.h}:i=function(l){return(l-n.l)/n.w};return i};ja.roundPositionForSharpStrokeRendering=function(e,r){var t=Math.round(r%2)===1,a=Math.round(e);return t?a+.5:a};ja.makeShapesOptionsAndPlotinfo=function(e,r){var t=e._fullLayout.shapes[r]||{},a=e._fullLayout._plots[t.xref+t.yref],n=!!a;return n?a._hadPlotinfo=!0:(a={},t.xref&&t.xref!=="paper"&&(a.xaxis=e._fullLayout[t.xref+"axis"]),t.yref&&t.yref!=="paper"&&(a.yaxis=e._fullLayout[t.yref+"axis"])),a.xsizemode=t.xsizemode,a.ysizemode=t.ysizemode,a.xanchor=t.xanchor,a.yanchor=t.yanchor,{options:t,plotinfo:a}};ja.makeSelectionsOptionsAndPlotinfo=function(e,r){var t=e._fullLayout.selections[r]||{},a=e._fullLayout._plots[t.xref+t.yref],n=!!a;return n?a._hadPlotinfo=!0:(a={},t.xref&&(a.xaxis=e._fullLayout[t.xref+"axis"]),t.yref&&(a.yaxis=e._fullLayout[t.yref+"axis"])),{options:t,plotinfo:a}};ja.getPathString=function(e,r){let t=r.type,a=Ys.getRefType(r.xref),n=Ys.getRefType(r.yref),i=e._fullLayout._size;var o,l,s,u,f,c,v,d,p,y,m,b;function A(E,P,R,N){var I;if(E)if(P==="domain")N?I=function(O){return E._offset+E._length*(1-O)}:I=function(O){return E._offset+E._length*O};else{let O=ja.shapePositionToRange(E);I=function(U){return E._offset+E.r2p(O(U,!0))},R==="path"&&E.type==="date"&&(I=ja.decodeDate(I))}else N?I=function(O){return i.t+i.h*(1-O)}:I=function(O){return i.l+i.w*O};return I}if(a==="array"?(v=[],o=r.xref.map(function(E){return Ys.getFromId(e,E)}),v=r.xref.map(function(E,P){return A(o[P],Ys.getRefType(E),t,!1)})):(o=Ys.getFromId(e,r.xref),v=A(o,a,t,!1)),n==="array"?(d=[],l=r.yref.map(function(E){return Ys.getFromId(e,E)}),d=r.yref.map(function(E,P){return A(l[P],Ys.getRefType(E),t,!0)})):(l=Ys.getFromId(e,r.yref),d=A(l,n,t,!0)),t==="path")return Y4e(r,v,d);if(a==="array")s=pl(o[0],r.x0shift),u=pl(o[1],r.x1shift),p=v[0](r.x0)+s,y=v[1](r.x1)+u;else if(s=pl(o,r.x0shift),u=pl(o,r.x1shift),r.xsizemode==="pixel"){let E=v(r.xanchor);p=E+r.x0+s,y=E+r.x1+u}else p=v(r.x0)+s,y=v(r.x1)+u;if(n==="array")f=pl(l[0],r.y0shift),c=pl(l[1],r.y1shift),m=d[0](r.y0)+f,b=d[1](r.y1)+c;else if(f=pl(l,r.y0shift),c=pl(l,r.y1shift),r.ysizemode==="pixel"){let E=d(r.yanchor);m=E-r.y0+f,b=E-r.y1+c}else m=d(r.y0)+f,b=d(r.y1)+c;if(t==="line")return"M"+p+","+m+"L"+y+","+b;if(t==="rect")return"M"+p+","+m+"H"+y+"V"+b+"H"+p+"Z";var w=(p+y)/2,x=(m+b)/2,_=Math.abs(w-p),k=Math.abs(x-m),T="A"+_+","+k,q=w+_+","+x,C=w+","+(x-k);return"M"+q+T+" 0 1,1 "+C+T+" 0 0,1 "+q+"Z"};function Y4e(e,r,t){let a=e.path,n=e.xsizemode,i=e.ysizemode,o=e.xanchor,l=e.yanchor,s=Array.isArray(e.xref),u=Array.isArray(e.yref);var f=0,c=0;return a.replace(ml.segmentRE,function(v){var d=0,p=v.charAt(0),y=ml.paramIsX[p],m=ml.paramIsY[p],b=ml.numParams[p];let A=y.drawn!==void 0,w=m.drawn!==void 0,x=s?r[f]:r,_=u?t[c]:t;var k=v.slice(1).replace(ml.paramRE,function(T){return y[d]?n==="pixel"?T=x(o)+Number(T):T=x(T):m[d]&&(i==="pixel"?T=_(l)-Number(T):T=_(T)),d++,d>b&&(T="X"),T});return d>b&&(k=k.replace(/[\s,]*X.*/,""),jI.log("Ignoring extra params in segment "+v)),A&&f++,w&&c++,p+k})}ja.getPixelShift=pl;function pl(e,r){r=r||0;var t=0;return r&&e&&(e.type==="category"||e.type==="multicategory")&&(t=(e.r2p(1)-e.r2p(0))*r),t}});var _7=z((IZe,ZI)=>{"use strict";var V4e=ke(),yl=Yr(),WI=Fa(),XI=Jr(),j4e=Us().readPaths,pf=Vs(),W4e=pf.getPathString,rd=Sp(),X4e=(on(),ze(nn)).FROM_TL;ZI.exports=function(r,t,a,n){if(n.selectAll(".shape-label").remove(),!!(a.label.text||a.label.texttemplate)){var i;if(a.label.texttemplate){var o={};if(a.type!=="path"){var l=yl.getFromId(r,a.xref),s=yl.getFromId(r,a.yref);let j=Array.isArray(a.xref),J=Array.isArray(a.yref);for(var u in rd){var f=typeof rd[u]=="function",c=!j||rd.simpleXVariables.includes(u),v=!J||rd.simpleYVariables.includes(u);if(f&&c&&v){var d=rd[u](a,l,s);d!==void 0&&(o[u]=d)}}}i=V4e.texttemplateStringForShapes({data:[o],fallback:a.label.texttemplatefallback,locale:r._fullLayout._d3locale,template:a.label.texttemplate})}else i=a.label.text;var p={"data-index":t},y=a.label.font,m={"data-notex":1},b=n.append("g").attr(p).classed("shape-label",!0),A=b.append("text").attr(m).classed("shape-label-text",!0).text(i),w,x,_,k;if(a.path){var T=W4e(r,a),q=j4e(T,r);w=1/0,_=1/0,x=-1/0,k=-1/0;for(var C=0;Cpf.getDataToPixel(r,Ce,ye,!1,Me)(Re),be=(Re,ye,Ce,Me)=>pf.getDataToPixel(r,Ce,ye,!0,Me)(Re);if(a.xsizemode==="pixel"){let Re=oe(a.xanchor,void 0,te,fe),ye=pf.getPixelShift(te,a.x0shift),Ce=pf.getPixelShift(te,a.x1shift);w=Re+a.x0+ye,x=Re+a.x1+Ce}else w=oe(a.x0,a.x0shift,te,fe),x=oe(a.x1,a.x1shift,ae,ie);if(a.ysizemode==="pixel"){let Re=be(a.yanchor,void 0,se,ue),ye=pf.getPixelShift(se,a.y0shift),Ce=pf.getPixelShift(se,a.y1shift);_=Re-a.y0+ye,k=Re-a.y1+Ce}else _=be(a.y0,a.y0shift,se,ue),k=be(a.y1,a.y1shift,$,ce)}var O=a.label.textangle;O==="auto"&&(a.type==="line"?O=Z4e(w,_,x,k):O=0),A.call(function(j){return j.call(XI.font,y).attr({}),WI.convertToTspans(j,r),j});var U=XI.bBox(A.node()),Y=$4e(w,_,x,k,a,O,U),G=Y.textx,V=Y.texty,W=Y.xanchor;A.attr({"text-anchor":{left:"start",center:"middle",right:"end"}[W],y:V,x:G,transform:"rotate("+O+","+G+","+V+")"}).call(WI.positionText,G,V)}};function Z4e(e,r,t,a){var n,i;return i=Math.abs(t-e),t>=e?n=r-a:n=a-r,-180/Math.PI*Math.atan2(n,i)}function $4e(e,r,t,a,n,i,o){var l=n.label.textposition,s=n.label.textangle,u=n.label.padding,f=n.type,c=Math.PI/180*i,v=Math.sin(c),d=Math.cos(c),p=n.label.xanchor,y=n.label.yanchor,m,b,A,w;if(f==="line"){l==="start"?(m=e,b=r):l==="end"?(m=t,b=a):(m=(e+t)/2,b=(r+a)/2),p==="auto"&&(l==="start"?s==="auto"?t>e?p="left":te?p="right":te?p="right":te?p="left":t{"use strict";var J4e=ke(),K4e=J4e.strTranslate,$I=Vi(),QI=df(),Q4e=QI.drawMode,eB=QI.selectMode,rB=Tr(),JI=qr(),ly=(ey(),ze(Qm)),e6e=ly.i000,r6e=ly.i090,t6e=ly.i180,a6e=ly.i270,n6e=Es(),tB=n6e.clearOutlineControllers,A7=Us(),oy=A7.pointsOnRectangle,w7=A7.pointsOnEllipse,i6e=A7.writePaths,o6e=iy().newShapes,l6e=iy().createShapeObj,s6e=x7(),u6e=_7();aB.exports=function e(r,t,a,n){n||(n=0);var i=a.gd;function o(){e(r,t,a,n++),(w7(r[0])||a.hasText)&&l({redrawing:!0})}function l(Y){var G={};a.isActiveShape!==void 0&&(a.isActiveShape=!1,G=o6e(t,a)),a.isActiveSelection!==void 0&&(a.isActiveSelection=!1,G=s6e(t,a),i._fullLayout._reselect=!0),Object.keys(G).length&&rB.call((Y||{}).redrawing?"relayout":"_guiRelayout",i,G)}var s=i._fullLayout,u=s._zoomlayer,f=a.dragmode,c=Q4e(f),v=eB(f);(c||v)&&(i._fullLayout._outlining=!0),tB(i),t.attr("d",i6e(r));var d,p,y,m,b;if(!n&&(a.isActiveShape||a.isActiveSelection)){b=f6e([],r);var A=u.append("g").attr("class","outline-controllers");E(A),U()}if(c&&a.hasText){var w=u.select(".label-temp"),x=l6e(t,a,a.dragmode);u6e(i,"label-temp",x,w)}function _(Y){y=+Y.srcElement.getAttribute("data-i"),m=+Y.srcElement.getAttribute("data-j"),d[y][m].moveFn=k}function k(Y,G){if(r.length){var V=b[y][m][1],W=b[y][m][2],j=r[y],J=j.length;if(oy(j)){var te=Y,ae=G;if(a.isActiveSelection){var se=KI(j,m);se[1]===j[m][1]?ae=0:te=0}for(var $=0;$1&&!(Y.length===2&&Y[1][0]==="Z")&&(m===0&&(Y[0][0]="M"),r[y]=Y,o(),l())}}function C(Y,G){if(Y===2){y=+G.srcElement.getAttribute("data-i"),m=+G.srcElement.getAttribute("data-j");var V=r[y];!oy(V)&&!w7(V)&&q()}}function E(Y){d=[];for(var G=0;G{"use strict";var v6e=Pr(),uB=Tr(),M7=ke(),mf=Yr(),h6e=Us().readPaths,d6e=sy(),fy=_7(),fB=Es().clearOutlineControllers,T7=qr(),cy=Jr(),p6e=Ct().arrayEditor,nB=Vi(),iB=Un(),oB=Os(),yf=(ed(),ze(Qh)),ti=Vs(),k7=ti.getPathString;hB.exports={draw:S7,drawOne:cB,eraseActiveShape:x6e,drawLabel:fy};function S7(e){var r=e._fullLayout;r._shapeUpperLayer.selectAll("path").remove(),r._shapeLowerLayer.selectAll("path").remove(),r._shapeUpperLayer.selectAll("text").remove(),r._shapeLowerLayer.selectAll("text").remove();for(var t in r._plots){var a=r._plots[t].shapelayer;a&&(a.selectAll("path").remove(),a.selectAll("text").remove())}for(var n=0;n{if(!e._dragging&&e._fullLayout.hoveranywhere){let o=n(i);o&&iB.hover(e,o,t.id)}}),a.addEventListener("click",i=>{if(!e._dragged&&e._fullLayout.clickanywhere){let o=n(i);o&&iB.click(e,o,t.id)}})}function vB(e,r,t){let a=t.xref,n=t.yref;if(Array.isArray(a)||Array.isArray(n)){let i="clip"+r._fullLayout._uid+"shape"+t._index,o=y6e(r,a,n);M7.ensureSingleById(r._fullLayout._clips,"clipPath",i,function(l){l.append("rect")}).select("rect").attr(o),cy.setClipUrl(e,i,r)}else{let i=(a+n).replace(/paper/g,"").replace(/[xyz][0-9]* *domain/g,"");cy.setClipUrl(e,i?"clip"+r._fullLayout._uid+i:null,r)}}function y6e(e,r,t){let a=e._fullLayout._size;function n(l,s){let u=(Array.isArray(l)?l:[l]).map(v=>mf.getFromId(e,v)).filter(Boolean);if(!u.length)return s?[a.t,a.t+a.h]:[a.l,a.l+a.w];let f=u.map(function(v){return v._offset}),c=u.map(function(v){return v._offset+v._length});return[Math.min(...f),Math.max(...c)]}let i=n(r,!1),o=n(t,!0);return{x:i[0],y:o[0],width:i[1]-i[0],height:o[1]-o[0]}}function g6e(e,r,t,a,n,i){var o=10,l=10,s=t.xsizemode==="pixel",u=t.ysizemode==="pixel",f=t.type==="line",c=t.type==="path",v=i.modifyItem,d,p,y,m,b,A,w,x,_,k,T,q,C,E,P,R=v6e.select(r.node().parentNode),N=mf.getFromId(e,t.xref),I=mf.getRefType(t.xref),O=mf.getFromId(e,t.yref),U=mf.getRefType(t.yref),Y=t.x0shift,G=t.x1shift,V=t.y0shift,W=t.y1shift,j=function(Ie,qe){var Ze=ti.getDataToPixel(e,N,qe,!1,I);return Ze(Ie)},J=function(Ie,qe){var Ze=ti.getDataToPixel(e,O,qe,!0,U);return Ze(Ie)},te=ti.getPixelToData(e,N,!1,I),ae=ti.getPixelToData(e,O,!0,U),se=ie(),$={element:se.node(),gd:e,prepFn:oe,doneFn:be,clickFn:Re},fe;nB.init($),se.node().onmousemove=ce;function ie(){return f?ue():r}function ue(){var Ie=10,qe=Math.max(t.line.width,Ie),Ze=n.append("g").attr("data-index",a).attr("drag-helper",!0);Ze.append("path").attr("d",r.attr("d")).style({cursor:"move","stroke-width":qe,"stroke-opacity":"0"});var Je={"fill-opacity":"0"},Xe=Math.max(qe/2,Ie);return Ze.append("circle").attr({"data-line-point":"start-point",cx:s?j(t.xanchor)+t.x0:j(t.x0,Y),cy:u?J(t.yanchor)-t.y0:J(t.y0,V),r:Xe}).style(Je).classed("cursor-grab",!0),Ze.append("circle").attr({"data-line-point":"end-point",cx:s?j(t.xanchor)+t.x1:j(t.x1,G),cy:u?J(t.yanchor)-t.y1:J(t.y1,W),r:Xe}).style(Je).classed("cursor-grab",!0),Ze}function ce(Ie){if(uy(e)){fe=null;return}if(f)Ie.target.tagName==="path"?fe="move":fe=Ie.target.attributes["data-line-point"].value==="start-point"?"resize-over-start-point":"resize-over-end-point";else{var qe=$.element.getBoundingClientRect(),Ze=qe.right-qe.left,Je=qe.bottom-qe.top,Xe=Ie.clientX-qe.left,Se=Ie.clientY-qe.top,Fe=!c&&Ze>o&&Je>l&&!Ie.shiftKey?nB.getCursor(Xe/Ze,1-Se/Je):"move";oB(r,Fe),fe=Fe.split("-")[0]}}function oe(Ie){uy(e)||(s&&(b=j(t.xanchor)),u&&(A=J(t.yanchor)),t.type==="path"?P=t.path:(d=s?t.x0:j(t.x0),p=u?t.y0:J(t.y0),y=s?t.x1:j(t.x1),m=u?t.y1:J(t.y1)),dm?(w=p,T="y0",x=m,q="y1"):(w=m,T="y1",x=p,q="y0"),ce(Ie),Me(n,t),De(r,t,e),$.moveFn=fe==="move"?ye:Ce,$.altKey=Ie.altKey)}function be(){uy(e)||(oB(r),Le(n),vB(r,e,t),uB.call("_guiRelayout",e,i.getUpdateObj()))}function Re(){uy(e)||Le(n)}function ye(Ie,qe){if(t.type==="path"){var Ze=function(Se){return Se},Je=Ze,Xe=Ze;s?v("xanchor",t.xanchor=te(b+Ie)):(Je=function(Fe){return te(j(Fe)+Ie)},N&&N.type==="date"&&(Je=ti.encodeDate(Je))),u?v("yanchor",t.yanchor=ae(A+qe)):(Xe=function(Fe){return ae(J(Fe)+qe)},O&&O.type==="date"&&(Xe=ti.encodeDate(Xe))),v("path",t.path=lB(P,Je,Xe))}else s?v("xanchor",t.xanchor=te(b+Ie)):(v("x0",t.x0=te(d+Ie)),v("x1",t.x1=te(y+Ie))),u?v("yanchor",t.yanchor=ae(A+qe)):(v("y0",t.y0=ae(p+qe)),v("y1",t.y1=ae(m+qe)));r.attr("d",k7(e,t)),Me(n,t),fy(e,a,t,R)}function Ce(Ie,qe){if(c){var Ze=function(We){return We},Je=Ze,Xe=Ze;s?v("xanchor",t.xanchor=te(b+Ie)):(Je=function(ar){return te(j(ar)+Ie)},N&&N.type==="date"&&(Je=ti.encodeDate(Je))),u?v("yanchor",t.yanchor=ae(A+qe)):(Xe=function(ar){return ae(J(ar)+qe)},O&&O.type==="date"&&(Xe=ti.encodeDate(Xe))),v("path",t.path=lB(P,Je,Xe))}else if(f){if(fe==="resize-over-start-point"){var Se=d+Ie,Fe=u?p-qe:p+qe;v("x0",t.x0=s?Se:te(Se)),v("y0",t.y0=u?Fe:ae(Fe))}else if(fe==="resize-over-end-point"){var er=y+Ie,re=u?m-qe:m+qe;v("x1",t.x1=s?er:te(er)),v("y1",t.y1=u?re:ae(re))}}else{var xe=function(We){return fe.indexOf(We)!==-1},Ye=xe("n"),vr=xe("s"),Pe=xe("w"),me=xe("e"),Te=Ye?w+qe:w,Ue=vr?x+qe:x,$e=Pe?_+Ie:_,Oe=me?k+Ie:k;u&&(Ye&&(Te=w-qe),vr&&(Ue=x-qe)),(!u&&Ue-Te>l||u&&Te-Ue>l)&&(v(T,t[T]=u?Te:ae(Te)),v(q,t[q]=u?Ue:ae(Ue))),Oe-$e>o&&(v(C,t[C]=s?$e:te($e)),v(E,t[E]=s?Oe:te(Oe)))}r.attr("d",k7(e,t)),Me(n,t),fy(e,a,t,R)}function Me(Ie,qe){(s||u)&&Ze();function Ze(){var Je=qe.type!=="path",Xe=Ie.selectAll(".visual-cue").data([0]),Se=1;Xe.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":Se}).classed("visual-cue",!0);var Fe=j(s?qe.xanchor:M7.midRange(Je?[qe.x0,qe.x1]:ti.extractPathCoords(qe.path,yf.paramIsX))),er=J(u?qe.yanchor:M7.midRange(Je?[qe.y0,qe.y1]:ti.extractPathCoords(qe.path,yf.paramIsY)));if(Fe=ti.roundPositionForSharpStrokeRendering(Fe,Se),er=ti.roundPositionForSharpStrokeRendering(er,Se),s&&u){var re="M"+(Fe-1-Se)+","+(er-1-Se)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";Xe.attr("d",re)}else if(s){var xe="M"+(Fe-1-Se)+","+(er-9-Se)+"v18 h2 v-18 Z";Xe.attr("d",xe)}else{var Ye="M"+(Fe-9-Se)+","+(er-1-Se)+"h18 v2 h-18 Z";Xe.attr("d",Ye)}}}function Le(Ie){Ie.selectAll(".visual-cue").remove()}function De(Ie,qe,Ze){var Je=qe.xref,Xe=qe.yref,Se=mf.getFromId(Ze,Je),Fe=mf.getFromId(Ze,Xe),er="";Je!=="paper"&&!Se.autorange&&(er+=Je),Xe!=="paper"&&!Fe.autorange&&(er+=Xe),cy.setClipUrl(Ie,er?"clip"+Ze._fullLayout._uid+er:null,Ze)}}function lB(e,r,t){return e.replace(yf.segmentRE,function(a){var n=0,i=a.charAt(0),o=yf.paramIsX[i],l=yf.paramIsY[i],s=yf.numParams[i],u=a.slice(1).replace(yf.paramRE,function(f){return n>=s||(o[n]?f=r(f):l[n]&&(f=t(f)),n++),f});return i+u})}function b6e(e,r){if(vy(e)){var t=r.node(),a=+t.getAttribute("data-index");if(a>=0){if(a===e._fullLayout._activeShapeIndex){sB(e);return}e._fullLayout._activeShapeIndex=a,e._fullLayout._deactivateShape=sB,S7(e)}}}function sB(e){if(vy(e)){var r=e._fullLayout._activeShapeIndex;r>=0&&(fB(e),delete e._fullLayout._activeShapeIndex,S7(e))}}function x6e(e){if(vy(e)){fB(e);var r=e._fullLayout._activeShapeIndex,t=(e.layout||{}).shapes||[];if(r{"use strict";var g0=ke()._,_6e=function(e){return{DIALOG_TITLE:g0(e,"Share chart"),DIALOG_MESSAGE_CLOUD:g0(e,"This chart will be uploaded to {Plotly Cloud} to create a sharing link. Only you can see it until you change its visibility."),DIALOG_MESSAGE_CLOUD_ACCOUNT:g0(e,"If you don't have a Plotly Cloud account yet, you'll have a chance to create one."),DIALOG_MESSAGE_OTHER:g0(e,"This chart will be sent to {serverUrl}."),DIALOG_CANCEL:g0(e,"Cancel"),DIALOG_CONFIRM:g0(e,"Share")}};dB.exports=_6e});var gB=z((UZe,yB)=>{"use strict";var mB=Pr(),{dfltConfig:w6e}=xs(),A6e=pB(),T6e=(e,r,t,a,n)=>{let i=A6e(e),o=r.append("div").classed("plotly-cloud-dialog-box",!0);if(o.append("div").classed("plotly-cloud-dialog-title",!0).text(i.DIALOG_TITLE),t===w6e.plotlyServerURL){let s=o.append("div").classed("plotly-cloud-dialog-message",!0),u=new URL(t).origin,f=i.DIALOG_MESSAGE_CLOUD.split(/(\{|\})/),c=f[0],v=f[2],d=f[4];s.append("span").text(c),s.append("a").classed("plotly-cloud-dialog-message--hostname",!0).attr("href",u).attr("target","_blank").text(v),s.append("span").text(d),s.append("div").classed("plotly-cloud-dialog-message--account",!0).text(i.DIALOG_MESSAGE_CLOUD_ACCOUNT)}else{let s=new URL(t),u=s.hostname,f=s.origin,c=i.DIALOG_MESSAGE_OTHER.split(/(\{|\})/),v=c[0],d=c[4],p=o.append("div").classed("plotly-cloud-dialog-message",!0);p.append("span").text(v),p.append("a").classed("plotly-cloud-dialog-message--hostname",!0).attr("href",f).attr("target","_blank").text(u),p.append("span").text(d)}let l=o.append("div").classed("plotly-cloud-dialog-buttons",!0);l.append("button").classed("plotly-cloud-dialog-btn",!0).classed("plotly-cloud-dialog-btn--cancel",!0).text(i.DIALOG_CANCEL).on("click",n),l.append("button").classed("plotly-cloud-dialog-btn",!0).classed("plotly-cloud-dialog-btn--confirm",!0).text(i.DIALOG_CONFIRM).on("click",a)},M6e=(e,r,t)=>{let a=mB.select(e._fullLayout._paperdiv.node());a.selectAll(".plotly-cloud-dialog").remove();let n=a.append("div").classed("plotly-cloud-dialog",!0),i=()=>{n.remove(),document.removeEventListener("keydown",o)},o=l=>{(l.key==="Escape"||l.keyCode===27)&&i()};document.addEventListener("keydown",o),n.on("click",()=>{mB.event.target===n.node()&&i()}),T6e(e,n,r,()=>{i(),t()},i)};yB.exports=M6e});var C7=z((GZe,MB)=>{"use strict";var Ai=Tr(),k6e=ma(),xB=Aa(),tt=Km(),S6e=hy().eraseActiveShape,q6e=gB(),b0=ke(),Zr=b0._,rt={};MB.exports=rt;rt.toImage={name:"toImage",title:function(e){var r=e._context.toImageButtonOptions||{},t=r.format||"png";return t==="png"?Zr(e,"Download plot as a PNG"):Zr(e,"Download plot")},icon:tt.camera,click:function(e){var r=e._context.toImageButtonOptions,t={format:r.format||"png"};b0.notifier(Zr(e,"Preparing image - this may take a few seconds"),"long",e),["filename","width","height","scale"].forEach(function(a){a in r&&(t[a]=r[a])}),Ai.call("downloadImage",e,t).then(function(a){b0.notifier(Zr(e,"Image download succeeded")+" - "+a,"long",e)}).catch(function(){b0.notifier(Zr(e,"Sorry, there was a problem downloading your image!"),"long",e)})}};rt.downloadJson={name:"downloadJson",title:function(e){return Zr(e,"Download plot as JSON")},icon:tt.curlybraces,click:function(e){Ai.call("downloadImage",e,{format:"full-json"}).then(function(r){b0.notifier(Zr(e,"JSON download succeeded")+" - "+r,"long",e)}).catch(function(){b0.notifier(Zr(e,"Sorry, there was a problem downloading your JSON file!"),"long",e)})}};rt.sendChartToCloud={name:"sendChartToCloud",title:function(e){return Zr(e,"Share chart...")},icon:tt.cloudupload,click:function(e){var r=(window.PLOTLYENV||{}).BASE_URL||e._context.plotlyServerURL;if(!r){console.error("No destination URL provided (plotlyServerURL is empty)");return}var t;try{t=new URL(r)}catch(n){console.error("Invalid plotlyServerURL: "+r);return}let a=["http:","https:"];if(!a.includes(t.protocol)){console.error(`Invalid protocol '${t.protocol}' in plotlyServerURL '${r}'. Must be one of: ${a.join(", ")}`);return}q6e(e,r,function(){k6e.sendDataToCloud(e,r)})}};rt.zoom2d={name:"zoom2d",_cat:"zoom",title:function(e){return Zr(e,"Zoom")},attr:"dragmode",val:"zoom",icon:tt.zoombox,click:Ln};rt.pan2d={name:"pan2d",_cat:"pan",title:function(e){return Zr(e,"Pan")},attr:"dragmode",val:"pan",icon:tt.pan,click:Ln};rt.select2d={name:"select2d",_cat:"select",title:function(e){return Zr(e,"Box Select")},attr:"dragmode",val:"select",icon:tt.selectbox,click:Ln};rt.lasso2d={name:"lasso2d",_cat:"lasso",title:function(e){return Zr(e,"Lasso Select")},attr:"dragmode",val:"lasso",icon:tt.lasso,click:Ln};rt.drawclosedpath={name:"drawclosedpath",title:function(e){return Zr(e,"Draw closed freeform")},attr:"dragmode",val:"drawclosedpath",icon:tt.drawclosedpath,click:Ln};rt.drawopenpath={name:"drawopenpath",title:function(e){return Zr(e,"Draw open freeform")},attr:"dragmode",val:"drawopenpath",icon:tt.drawopenpath,click:Ln};rt.drawline={name:"drawline",title:function(e){return Zr(e,"Draw line")},attr:"dragmode",val:"drawline",icon:tt.drawline,click:Ln};rt.drawrect={name:"drawrect",title:function(e){return Zr(e,"Draw rectangle")},attr:"dragmode",val:"drawrect",icon:tt.drawrect,click:Ln};rt.drawcircle={name:"drawcircle",title:function(e){return Zr(e,"Draw circle")},attr:"dragmode",val:"drawcircle",icon:tt.drawcircle,click:Ln};rt.eraseshape={name:"eraseshape",title:function(e){return Zr(e,"Erase active shape")},icon:tt.eraseshape,click:S6e};rt.zoomIn2d={name:"zoomIn2d",_cat:"zoomin",title:function(e){return Zr(e,"Zoom in")},attr:"zoom",val:"in",icon:tt.zoom_plus,click:Ln};rt.zoomOut2d={name:"zoomOut2d",_cat:"zoomout",title:function(e){return Zr(e,"Zoom out")},attr:"zoom",val:"out",icon:tt.zoom_minus,click:Ln};rt.autoScale2d={name:"autoScale2d",_cat:"autoscale",title:function(e){return Zr(e,"Autoscale")},attr:"zoom",val:"auto",icon:tt.autoscale,click:Ln};rt.resetScale2d={name:"resetScale2d",_cat:"resetscale",title:function(e){return Zr(e,"Reset axes")},attr:"zoom",val:"reset",icon:tt.home,click:Ln};rt.hoverClosestCartesian={name:"hoverClosestCartesian",_cat:"hoverclosest",title:function(e){return Zr(e,"Show closest data on hover")},attr:"hovermode",val:"closest",icon:tt.tooltip_basic,gravity:"ne",click:Ln};rt.hoverCompareCartesian={name:"hoverCompareCartesian",_cat:"hoverCompare",title:function(e){return Zr(e,"Compare data on hover")},attr:"hovermode",val:function(e){return e._fullLayout._isHoriz?"y":"x"},icon:tt.tooltip_compare,gravity:"ne",click:Ln};function Ln(e,r){var t=r.currentTarget,a=t.getAttribute("data-attr"),n=t.getAttribute("data-val")||!0,i=e._fullLayout,o={},l=xB.list(e,null,!0),s=i._cartesianSpikesEnabled,u,f;if(a==="zoom"){var c=n==="in"?.5:2,v=(1+c)/2,d=(1-c)/2,p,y;for(f=0;f-k),[y,m]=c.invert(f.midPt),{minscale:b}=u.projection,A=(l=u.projection.maxscale)!=null?l:1/0,w=Math.min(b,A),x=Math.max(b,A),_=n==="in"?bB*v:1/bB*v;_>x?_=x:_{"use strict";var kB=C7(),E6e=Object.keys(kB),SB=["drawline","drawopenpath","drawclosedpath","drawcircle","drawrect","eraseshape"],qB=["v1hovermode","hoverclosest","hovercompare","togglehover","togglespikelines"].concat(SB,["downloadJson"]),x0=[],P6e=function(e){if(qB.indexOf(e._cat||e.name)===-1){var r=e.name,t=(e._cat||e.name).toLowerCase();x0.indexOf(r)===-1&&x0.push(r),x0.indexOf(t)===-1&&x0.push(t)}};E6e.forEach(function(e){P6e(kB[e])});x0.sort();LB.exports={DRAW_MODES:SB,backButtons:qB,foreButtons:x0}});var P7={};qt(P7,{default:()=>F6e});var E7,R6e,F6e,R7=St(()=>{"use strict";E7=xc(D7()),R6e={editType:"modebar",orientation:{valType:"enumerated",values:["v","h"],dflt:"h",editType:"modebar",description:"Sets the orientation of the modebar."},bgcolor:{valType:"color",editType:"modebar",description:"Sets the background color of the modebar."},color:{valType:"color",editType:"modebar",description:"Sets the color of the icons in the modebar."},activecolor:{valType:"color",editType:"modebar",description:"Sets the color of the active or hovered on icons in the modebar."},uirevision:{valType:"any",editType:"none",description:["Controls persistence of user-driven changes related to the modebar,","including `hovermode`, `dragmode`, and `showspikes` at both the","root level and inside subplots. Defaults to `layout.uirevision`."].join(" ")},add:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar",description:["Determines which predefined modebar buttons to add.","Please note that these buttons will only be shown if they are","compatible with all trace types used in a graph.","Similar to `config.modeBarButtonsToAdd` option.",`This may include *${E7.default.backButtons.join("*, *")}*.`].join(" ")},remove:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar",description:["Determines which predefined modebar buttons to remove.","Similar to `config.modeBarButtonsToRemove` option.",`This may include *${E7.default.foreButtons.join("*, *")}*.`].join(" ")}},F6e=R6e});var DB=z((VZe,CB)=>{"use strict";var z6e=ke(),td=qr(),N6e=Ct(),I6e=(R7(),ze(P7)).default;CB.exports=function(r,t){var a=r.modebar||{},n=N6e.newContainer(t,"modebar");function i(l,s){return z6e.coerce(a,n,I6e,l,s)}i("orientation"),i("bgcolor",td.addOpacity(t.paper_bgcolor,.5));var o=td.contrast(td.rgb(t.modebar.bgcolor));i("color",td.addOpacity(o,.3)),i("activecolor",td.addOpacity(o,.7)),i("uirevision",t.uirevision),i("add"),i("remove")}});var FB=z((jZe,RB)=>{"use strict";var F7=Pr(),B6e=Br(),my=ke(),EB=Km(),O6e=Jv().version,H6e=new DOMParser;function PB(e){this.container=e.container,this.element=document.createElement("div"),this.update(e.graphInfo,e.buttons),this.container.appendChild(this.element)}var gl=PB.prototype;gl.update=function(e,r){this.graphInfo=e;var t=this.graphInfo._context,a=this.graphInfo._fullLayout,n="modebar-"+a._uid;this.element.setAttribute("id",n),this.element.setAttribute("role","toolbar"),this._uid=n,this.element.className="modebar modebar--custom",t.displayModeBar==="hover"&&(this.element.className+=" modebar--hover ease-bg"),a.modebar.orientation==="v"&&(this.element.className+=" vertical",r=r.reverse());var i=a.modebar,o="#"+n+" .modebar-group";document.querySelectorAll(o).forEach(function(c){c.style.backgroundColor=i.bgcolor});var l=!this.hasButtons(r),s=this.hasLogo!==t.displaylogo,u=this.locale!==t.locale;if(this.locale=t.locale,(l||s||u)&&(this.removeAllButtons(),this.updateButtons(r),t.watermark||t.displaylogo)){var f=this.getLogo();t.watermark&&(f.className=f.className+" watermark"),a.modebar.orientation==="v"?this.element.insertBefore(f,this.element.childNodes[0]):this.element.appendChild(f),this.hasLogo=!0}this.updateActiveButton(),my.setStyleOnHover("#"+n+" .modebar-btn",".active",".icon path","fill: "+i.activecolor,"fill: "+i.color,this.element)};gl.updateButtons=function(e){var r=this;this.buttons=e,this.buttonElements=[],this.buttonsNames=[],this.buttons.forEach(function(t){var a=r.createGroup();t.forEach(function(n){var i=n.name;if(!i)throw new Error("must provide button 'name' in button config");if(r.buttonsNames.indexOf(i)!==-1)throw new Error("button name '"+i+"' is taken");r.buttonsNames.push(i);var o=r.createButton(n);r.buttonElements.push(o),a.appendChild(o)}),r.element.appendChild(a)})};gl.createGroup=function(){var e=document.createElement("div");e.className="modebar-group";var r=this.graphInfo._fullLayout.modebar;return e.style.backgroundColor=r.bgcolor,e};gl.createButton=function(e){var r=this,t=document.createElement("button");t.setAttribute("type","button"),t.setAttribute("rel","tooltip"),t.className="modebar-btn";var a=e.title;a===void 0?a=e.name:typeof a=="function"&&(a=a(this.graphInfo)),(a||a===0)&&(t.setAttribute("data-title",a),t.setAttribute("aria-label",a)),e.attr!==void 0&&t.setAttribute("data-attr",e.attr);var n=e.val;n!==void 0&&(typeof n=="function"&&(n=n(this.graphInfo)),t.setAttribute("data-val",n));var i=e.click;if(typeof i!="function")throw new Error("must provide button 'click' function in button config");t.addEventListener("click",function(l){e.click(r.graphInfo,l),r.updateActiveButton(l.currentTarget)}),t.setAttribute("data-toggle",e.toggle||!1),e.toggle&&F7.select(t).classed("active",!0);var o=e.icon;return typeof o=="function"?t.appendChild(o()):t.appendChild(this.createIcon(o||EB.question)),t.setAttribute("data-gravity",e.gravity||"n"),t};gl.createIcon=function(e){var r=B6e(e.height)?Number(e.height):e.ascent-e.descent,t="http://www.w3.org/2000/svg",a;if(e.path){a=document.createElementNS(t,"svg"),a.setAttribute("viewBox",[0,0,e.width,r].join(" ")),a.setAttribute("class","icon");var n=document.createElementNS(t,"path");n.setAttribute("d",e.path),e.transform?n.setAttribute("transform",e.transform):e.ascent!==void 0&&n.setAttribute("transform","matrix(1 0 0 -1 0 "+e.ascent+")"),a.appendChild(n)}if(e.svg){var i=H6e.parseFromString(e.svg,"application/xml");a=i.childNodes[0]}return a.setAttribute("height","1em"),a.setAttribute("width","1em"),a};gl.updateActiveButton=function(e){var r=this.graphInfo._fullLayout,t=e!==void 0?e.getAttribute("data-attr"):null;this.buttonElements.forEach(function(a){var n=a.getAttribute("data-val")||!0,i=a.getAttribute("data-attr"),o=a.getAttribute("data-toggle")==="true",l=F7.select(a),s=function(c,v){var d=r.modebar,p=c.querySelector(".icon path");p&&(v||c.matches(":hover")?p.style.fill=d.activecolor:p.style.fill=d.color)};if(o){if(i===t){var u=!l.classed("active");l.classed("active",u),s(a,u)}}else{var f=i===null?i:my.nestedProperty(r,i).get();l.classed("active",f===n),s(a,f===n)}})};gl.hasButtons=function(e){var r=this.buttons;if(!r||e.length!==r.length)return!1;for(var t=0;t{"use strict";var Y6e=Aa(),zB=ri(),z7=Tr(),V6e=Ro().isUnifiedHover,j6e=FB(),yy=C7(),W6e=D7().DRAW_MODES,X6e=ke().extendDeep;NB.exports=function(r){var t=r._fullLayout,a=r._context,n=t._modeBar;if(!a.displayModeBar&&!a.watermark){n&&(n.destroy(),delete t._modeBar);return}if(!Array.isArray(a.modeBarButtonsToRemove))throw new Error(["*modeBarButtonsToRemove* configuration options","must be an array."].join(" "));if(!Array.isArray(a.modeBarButtonsToAdd))throw new Error(["*modeBarButtonsToAdd* configuration options","must be an array."].join(" "));var i=a.modeBarButtons,o;Array.isArray(i)&&i.length?o=e7e(i):!a.displayModeBar&&a.watermark?o=[]:o=Z6e(r),n?n.update(r,o):t._modeBar=j6e(r,o)};function Z6e(e){var r=e._fullLayout,t=e._fullData,a=e._context;function n(G,V){if(typeof V=="string"){if(V.toLowerCase()===G.toLowerCase())return!0}else{var W=V.name,j=V._cat||V.name;if(W===G||j===G.toLowerCase())return!0}return!1}var i=r.modebar.add;typeof i=="string"&&(i=[i]);var o=r.modebar.remove;typeof o=="string"&&(o=[o]);var l=a.modeBarButtonsToAdd.concat(i.filter(function(G){for(var V=0;V1?(C=["toggleHover"],E=["resetViews"]):c?(q=["zoomInGeo","zoomOutGeo"],C=["hoverClosestGeo"],E=["resetGeo"]):f?(C=["hoverClosest3d"],E=["resetCameraDefault3d","resetCameraLastSave3d"]):y?(q=["zoomInMap","zoomOutMap"],C=["toggleHover"],E=["resetViewMap"]):v?C=["hoverClosestPie"]:A?(C=["hoverClosestCartesian","hoverCompareCartesian"],E=["resetViewSankey"]):C=["toggleHover"],u&&C.push("toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"),(K6e(t)||x)&&(C=[]),u&&!w&&(q=["zoomIn2d","zoomOut2d","autoScale2d"],E[0]!=="resetViews"&&(E=["resetScale2d"])),f?P=["zoom3d","pan3d","orbitRotation","tableRotation"]:u&&!w||p?P=["zoom2d","pan2d"]:y||c?P=["pan2d"]:m&&(P=["zoom2d"]),J6e(t)&&P.push("select2d","lasso2d");var R=[],N=function(G){R.indexOf(G)===-1&&C.indexOf(G)!==-1&&R.push(G)};if(Array.isArray(l)){for(var I=[],O=0;O{"use strict";BB.exports={moduleType:"component",name:"modebar",layoutAttributes:(R7(),ze(P7)).default,supplyLayoutDefaults:DB(),manage:IB()}});var I7=z((ZZe,OB)=>{"use strict";var r7e=(on(),ze(nn)).FROM_BL;OB.exports=function(r,t,a){a===void 0&&(a=r7e[r.constraintoward||"center"]);var n=[r.r2l(r.range[0]),r.r2l(r.range[1])],i=n[0]+(n[1]-n[0])*a;r.range=r._input.range=[r.l2r(i+(n[0]-i)*t),r.l2r(i+(n[1]-i)*t)],r.setScale()}});var bf=z(ad=>{"use strict";var gf=ke(),B7=Bh(),zo=Aa().id2name,t7e=Gi(),HB=I7(),a7e=i0(),n7e=(jt(),ze(Zt)).ALMOST_EQUAL,i7e=(on(),ze(nn)).FROM_BL;ad.handleDefaults=function(e,r,t){var a=t.axIds,n=t.axHasImage,i=r._axisConstraintGroups=[],o=r._axisMatchGroups=[],l,s,u,f,c,v,d,p;for(l=0;li?t.slice(i):a.slice(n))+o}function l7e(e,r){for(var t=r._size,a=t.h/t.w,n={},i=Object.keys(e),o=0;on7e*p&&!A)){for(i=0;iR&&WE&&(E=W);var J=(E-C)/(2*P);c/=J,C=s.l2r(C),E=s.l2r(E),s.range=s._input.range=k{"use strict";var by=Pr(),Cn=Tr(),Ti=ma(),Xi=ke(),U7=Fa(),G7=Jm(),nd=qr(),_0=Jr(),VB=n0(),$B=N7(),id=Yr(),$l=(on(),ze(nn)),JB=bf(),s7e=JB.enforce,u7e=JB.clean,jB=Bh().doAutoRange,KB="start",f7e="middle",QB="end",c7e=(Pa(),ze(Ea)).zindexSeparator;Ha.layoutStyles=function(e){return Xi.syncOrAsync([Ti.doAutoMargin,h7e],e)};function v7e(e,r,t){for(var a=0;a=e[1]||n[1]<=e[0])&&i[0]r[0])return!0}return!1}function h7e(e){var r=e._fullLayout,t=r._size,a=t.p,n=id.list(e,"",!0),i,o,l,s,u,f;if(r._paperdiv.style({width:e._context.responsive&&r.autosize&&!e._context._hasZeroWidth&&!e.layout.width?"100%":r.width+"px",height:e._context.responsive&&r.autosize&&!e._context._hasZeroHeight&&!e.layout.height?"100%":r.height+"px"}).selectAll(".main-svg").call(_0.setSize,r.width,r.height),e._context.setBackground(e,r.paper_bgcolor),Ha.drawMainTitle(e),$B.manage(e),!r._has("cartesian"))return Ti.previousPromises(e);function c(oe,be,Re){var ye=oe._lw/2;if(oe._id.charAt(0)==="x"){if(be){if(Re==="top")return be._offset-a-ye}else return t.t+t.h*(1-(oe.position||0))+ye%1;return be._offset+be._length+a+ye}if(be){if(Re==="right")return be._offset+be._length+a+ye}else return t.l+t.w*(oe.position||0)+ye%1;return be._offset-a-ye}for(i=0;i0){y7e(e,i,u,s),l.attr({x:o,y:i,"text-anchor":a,dy:ZB(r.yanchor)}).call(U7.positionText,o,i);var f=(r.text.match(U7.BR_TAG_ALL)||[]).length;if(f){var c=$l.LINE_SPACING*f+$l.MID_SHIFT;r.y===0&&(c=-c),l.selectAll(".line").each(function(){var m=+this.getAttribute("dy").slice(0,-2)-c+"em";this.setAttribute("dy",m)})}var v=by.select(e).selectAll(".gtitle-subtitle");if(v.node()){var d=l.node().getBBox(),p=d.y+d.height,y=p+VB.SUBTITLE_PADDING_EM*r.subtitle.font.size;v.attr({x:o,y,"text-anchor":a,dy:ZB(r.yanchor)}).call(U7.positionText,o,y)}}}};function d7e(e,r,t,a,n){var i=r.yref==="paper"?e._fullLayout._size.h:e._fullLayout.height,o=Xi.isTopAnchor(r)?a:a-n,l=t==="b"?i-o:o;return Xi.isTopAnchor(r)&&t==="t"||Xi.isBottomAnchor(r)&&t==="b"?!1:l.5?"t":"b",o=e._fullLayout.margin[i],l=0;return r.yref==="paper"?l=t+r.pad.t+r.pad.b:r.yref==="container"&&(l=p7e(i,a,n,e._fullLayout.height,t)+r.pad.t+r.pad.b),l>o?l:0}function y7e(e,r,t,a){var n="title.automargin",i=e._fullLayout.title,o=i.y>.5?"t":"b",l={x:i.x,y:i.y,t:0,b:0},s={};i.yref==="paper"&&d7e(e,i,o,r,a)?l[o]=t:i.yref==="container"&&(s[o]=t,e._fullLayout._reservedMargin[n]=s),Ti.allowAutoMargin(e,n),Ti.autoMargin(e,n,l)}function g7e(e,r){var t=e.title,a=e._size,n=0;return r===KB?n=t.pad.l:r===QB&&(n=-t.pad.r),t.xref==="paper"?a.l+a.w*t.x+n:e.width*t.x+n}function b7e(e,r){var t=e.title,a=e._size,n=0;return r==="0em"||!r?n=-t.pad.b:r===$l.CAP_SHIFT+"em"&&(n=t.pad.t),t.y==="auto"?a.t/2:t.yref==="paper"?a.t+a.h-a.h*t.y+n:e.height-e.height*t.y+n}function ZB(e){return e==="top"?$l.CAP_SHIFT+.3+"em":e==="bottom"?"-0.3em":$l.MID_SHIFT+"em"}function x7e(e){var r=e.title,t=f7e;return Xi.isRightAnchor(r)?t=QB:Xi.isLeftAnchor(r)&&(t=KB),t}function _7e(e){var r=e.title,t="0em";return Xi.isTopAnchor(r)?t=$l.CAP_SHIFT+"em":Xi.isMiddleAnchor(r)&&(t=$l.MID_SHIFT+"em"),t}Ha.doTraceStyle=function(e){var r=e.calcdata,t=[],a;for(a=0;a{"use strict";var w7e=Us().readPaths,A7e=sy(),eO=Es().clearOutlineControllers,Y7=qr(),rO=Jr(),T7e=Ct().arrayEditor,tO=Vs(),M7e=tO.getPathString;nO.exports={draw:_y,drawOne:aO,activateLastSelection:q7e};function _y(e){var r=e._fullLayout;eO(e),r._selectionLayer.selectAll("path").remove();for(var t in r._plots){var a=r._plots[t].selectionLayer;a&&a.selectAll("path").remove()}for(var n=0;n=0;m--){var b=o.append("path").attr(s).style("opacity",m?.1:u).call(Y7.stroke,c).call(Y7.fill,f).call(rO.dashLine,m?"solid":d,m?4+v:v);if(k7e(b,e,a),p){var A=T7e(e.layout,"selections",a);b.style({cursor:"move"});var w={element:b.node(),plotinfo:n,gd:e,editHelpers:A,isActiveSelection:!0},x=w7e(l,e);A7e(x,b,w)}else b.style("pointer-events",m?"all":"none");y[m]=b}var _=y[0],k=y[1];k.node().addEventListener("click",function(){return S7e(e,_)})}}function k7e(e,r,t){var a=t.xref+t.yref;rO.setClipUrl(e,"clip"+r._fullLayout._uid+a,r)}function S7e(e,r){if(wy(e)){var t=r.node(),a=+t.getAttribute("data-index");if(a>=0){if(a===e._fullLayout._activeSelectionIndex){V7(e);return}e._fullLayout._activeSelectionIndex=a,e._fullLayout._deactivateSelection=V7,_y(e)}}}function q7e(e){if(wy(e)){var r=e._fullLayout.selections.length-1;e._fullLayout._activeSelectionIndex=r,e._fullLayout._deactivateSelection=V7,_y(e)}}function V7(e){if(wy(e)){var r=e._fullLayout._activeSelectionIndex;r>=0&&(eO(e),delete e._fullLayout._activeSelectionIndex,_y(e))}}});var oO=z((QZe,iO)=>{function L7e(){var e,r=0,t=!1;function a(n,i){return e.list.push({type:n,data:i?JSON.parse(JSON.stringify(i)):void 0}),e}return e={list:[],segmentId:function(){return r++},checkIntersection:function(n,i){return a("check",{seg1:n,seg2:i})},segmentChop:function(n,i){return a("div_seg",{seg:n,pt:i}),a("chop",{seg:n,pt:i})},statusRemove:function(n){return a("pop_seg",{seg:n})},segmentUpdate:function(n){return a("seg_update",{seg:n})},segmentNew:function(n,i){return a("new_seg",{seg:n,primary:i})},segmentRemove:function(n){return a("rem_seg",{seg:n})},tempStatus:function(n,i,o){return a("temp_status",{seg:n,above:i,below:o})},rewind:function(n){return a("rewind",{seg:n})},status:function(n,i,o){return a("status",{seg:n,above:i,below:o})},vert:function(n){return n===t?e:(t=n,a("vert",{x:n}))},log:function(n){return typeof n!="string"&&(n=JSON.stringify(n,!1," ")),a("log",{txt:n})},reset:function(){return a("reset")},selected:function(n){return a("selected",{segs:n})},chainStart:function(n){return a("chain_start",{seg:n})},chainRemoveHead:function(n,i){return a("chain_rem_head",{index:n,pt:i})},chainRemoveTail:function(n,i){return a("chain_rem_tail",{index:n,pt:i})},chainNew:function(n,i){return a("chain_new",{pt1:n,pt2:i})},chainMatch:function(n){return a("chain_match",{index:n})},chainClose:function(n){return a("chain_close",{index:n})},chainAddHead:function(n,i){return a("chain_add_head",{index:n,pt:i})},chainAddTail:function(n,i){return a("chain_add_tail",{index:n,pt:i})},chainConnect:function(n,i){return a("chain_con",{index1:n,index2:i})},chainReverse:function(n){return a("chain_rev",{index:n})},chainJoin:function(n,i){return a("chain_join",{index1:n,index2:i})},done:function(){return a("done")}},e}iO.exports=L7e});var sO=z((e$e,lO)=>{function C7e(e){typeof e!="number"&&(e=1e-10);var r={epsilon:function(t){return typeof t=="number"&&(e=t),e},pointAboveOrOnLine:function(t,a,n){var i=a[0],o=a[1],l=n[0],s=n[1],u=t[0],f=t[1];return(l-i)*(f-o)-(s-o)*(u-i)>=-e},pointBetween:function(t,a,n){var i=t[1]-a[1],o=n[0]-a[0],l=t[0]-a[0],s=n[1]-a[1],u=l*o+i*s;if(u-e)},pointsSameX:function(t,a){return Math.abs(t[0]-a[0])e!=l-i>e&&(o-f)*(i-c)/(l-c)+f-n>e&&(s=!s),o=f,l=c}return s}};return r}lO.exports=C7e});var fO=z((r$e,uO)=>{var D7e={create:function(){var e={root:{root:!0,next:null},exists:function(r){return!(r===null||r===e.root)},isEmpty:function(){return e.root.next===null},getHead:function(){return e.root.next},insertBefore:function(r,t){for(var a=e.root,n=e.root.next;n!==null;){if(t(n)){r.prev=n.prev,r.next=n,n.prev.next=r,n.prev=r;return}a=n,n=n.next}a.next=r,r.prev=a,r.next=null},findTransition:function(r){for(var t=e.root,a=e.root.next;a!==null&&!r(a);)t=a,a=a.next;return{before:t===e.root?null:t,after:a,insert:function(n){return n.prev=t,n.next=a,t.next=n,a!==null&&(a.prev=n),n}}}};return e},node:function(e){return e.prev=null,e.next=null,e.remove=function(){e.prev.next=e.next,e.next&&(e.next.prev=e.prev),e.prev=null,e.next=null},e}};uO.exports=D7e});var vO=z((t$e,cO)=>{var od=fO();function E7e(e,r,t){function a(p,y){return{id:t?t.segmentId():-1,start:p,end:y,myFill:{above:null,below:null},otherFill:null}}function n(p,y,m){return{id:t?t.segmentId():-1,start:p,end:y,myFill:{above:m.myFill.above,below:m.myFill.below},otherFill:null}}var i=od.create();function o(p,y,m,b,A,w){var x=r.pointsCompare(y,A);return x!==0?x:r.pointsSame(m,w)?0:p!==b?p?1:-1:r.pointAboveOrOnLine(m,b?A:w,b?w:A)?1:-1}function l(p,y){i.insertBefore(p,function(m){var b=o(p.isStart,p.pt,y,m.isStart,m.pt,m.other.pt);return b<0})}function s(p,y){var m=od.node({isStart:!0,pt:p.start,seg:p,primary:y,other:null,status:null});return l(m,p.end),m}function u(p,y,m){var b=od.node({isStart:!1,pt:y.end,seg:y,primary:m,other:p,status:null});p.other=b,l(b,p.pt)}function f(p,y){var m=s(p,y);return u(m,p,y),m}function c(p,y){t&&t.segmentChop(p.seg,y),p.other.remove(),p.seg.end=y,p.other.pt=y,l(p.other,p.pt)}function v(p,y){var m=n(y,p.seg.end,p.seg);return c(p,y),f(m,p.primary)}function d(p,y){var m=od.create();function b(O,U){var Y=O.seg.start,G=O.seg.end,V=U.seg.start,W=U.seg.end;return r.pointsCollinear(Y,V,W)?r.pointsCollinear(G,V,W)||r.pointAboveOrOnLine(G,V,W)?1:-1:r.pointAboveOrOnLine(Y,V,W)?1:-1}function A(O){return m.findTransition(function(U){var Y=b(O,U.ev);return Y>0})}function w(O,U){var Y=O.seg,G=U.seg,V=Y.start,W=Y.end,j=G.start,J=G.end;t&&t.checkIntersection(Y,G);var te=r.linesIntersect(V,W,j,J);if(te===!1){if(!r.pointsCollinear(V,W,j)||r.pointsSame(V,J)||r.pointsSame(W,j))return!1;var ae=r.pointsSame(V,j),se=r.pointsSame(W,J);if(ae&&se)return U;var $=!ae&&r.pointBetween(V,j,J),fe=!se&&r.pointBetween(W,j,J);if(ae)return fe?v(U,W):v(O,J),U;$&&(se||(fe?v(U,W):v(O,J)),v(U,V))}else te.alongA===0&&(te.alongB===-1?v(O,j):te.alongB===0?v(O,te.pt):te.alongB===1&&v(O,J)),te.alongB===0&&(te.alongA===-1?v(U,V):te.alongA===0?v(U,te.pt):te.alongA===1&&v(U,W));return!1}for(var x=[];!i.isEmpty();){var _=i.getHead();if(t&&t.vert(_.pt[0]),_.isStart){let O=function(){if(T){var U=w(_,T);if(U)return U}return q?w(_,q):!1};var I=O;t&&t.segmentNew(_.seg,_.primary);var k=A(_),T=k.before?k.before.ev:null,q=k.after?k.after.ev:null;t&&t.tempStatus(_.seg,T?T.seg:!1,q?q.seg:!1);var C=O();if(C){if(e){var E;_.seg.myFill.below===null?E=!0:E=_.seg.myFill.above!==_.seg.myFill.below,E&&(C.seg.myFill.above=!C.seg.myFill.above)}else C.seg.otherFill=_.seg.myFill;t&&t.segmentUpdate(C.seg),_.other.remove(),_.remove()}if(i.getHead()!==_){t&&t.rewind(_.seg);continue}if(e){var E;_.seg.myFill.below===null?E=!0:E=_.seg.myFill.above!==_.seg.myFill.below,q?_.seg.myFill.below=q.seg.myFill.above:_.seg.myFill.below=p,E?_.seg.myFill.above=!_.seg.myFill.below:_.seg.myFill.above=_.seg.myFill.below}else if(_.seg.otherFill===null){var P;q?_.primary===q.primary?P=q.seg.otherFill.above:P=q.seg.myFill.above:P=_.primary?y:p,_.seg.otherFill={above:P,below:P}}t&&t.status(_.seg,T?T.seg:!1,q?q.seg:!1),_.other.status=k.insert(od.node({ev:_}))}else{var R=_.status;if(R===null)throw new Error("PolyBool: Zero-length segment detected; your epsilon is probably too small or too large");if(m.exists(R.prev)&&m.exists(R.next)&&w(R.prev.ev,R.next.ev),t&&t.statusRemove(R.ev.seg),R.remove(),!_.primary){var N=_.seg.myFill;_.seg.myFill=_.seg.otherFill,_.seg.otherFill=N}x.push(_.seg)}i.getHead().remove()}return t&&t.done(),x}return e?{addRegion:function(p){for(var y,m=p[p.length-1],b=0;b{function P7e(e,r,t){var a=[],n=[];return e.forEach(function(i){var o=i.start,l=i.end;if(r.pointsSame(o,l)){console.warn("PolyBool: Warning: Zero-length segment detected; your epsilon is probably too small or too large");return}t&&t.chainStart(i);var s={index:0,matches_head:!1,matches_pt1:!1},u={index:0,matches_head:!1,matches_pt1:!1},f=s;function c(I,O,U){return f.index=I,f.matches_head=O,f.matches_pt1=U,f===s?(f=u,!1):(f=null,!0)}for(var v=0;v{function ld(e,r,t){var a=[];return e.forEach(function(n){var i=(n.myFill.above?8:0)+(n.myFill.below?4:0)+(n.otherFill&&n.otherFill.above?2:0)+(n.otherFill&&n.otherFill.below?1:0);r[i]!==0&&a.push({id:t?t.segmentId():-1,start:n.start,end:n.end,myFill:{above:r[i]===1,below:r[i]===2},otherFill:null})}),t&&t.selected(a),a}var R7e={union:function(e,r){return ld(e,[0,2,1,0,2,2,0,0,1,0,1,0,0,0,0,0],r)},intersect:function(e,r){return ld(e,[0,0,0,0,0,2,0,2,0,0,1,1,0,2,1,0],r)},difference:function(e,r){return ld(e,[0,0,0,0,2,0,2,0,1,1,0,0,0,1,2,0],r)},differenceRev:function(e,r){return ld(e,[0,2,1,0,0,0,1,1,0,2,0,2,0,0,0,0],r)},xor:function(e,r){return ld(e,[0,2,1,0,2,0,0,1,1,0,0,2,0,1,2,0],r)}};pO.exports=R7e});var gO=z((i$e,yO)=>{var F7e={toPolygon:function(e,r){function t(i){if(i.length<=0)return e.segments({inverted:!1,regions:[]});function o(u){var f=u.slice(0,u.length-1);return e.segments({inverted:!1,regions:[f]})}for(var l=o(i[0]),s=1;s{var z7e=oO(),N7e=sO(),bO=vO(),I7e=dO(),sd=mO(),xO=gO(),Zi=!1,ud=N7e(),ai;ai={buildLog:function(e){return e===!0?Zi=z7e():e===!1&&(Zi=!1),Zi===!1?!1:Zi.list},epsilon:function(e){return ud.epsilon(e)},segments:function(e){var r=bO(!0,ud,Zi);return e.regions.forEach(r.addRegion),{segments:r.calculate(e.inverted),inverted:e.inverted}},combine:function(e,r){var t=bO(!1,ud,Zi);return{combined:t.calculate(e.segments,e.inverted,r.segments,r.inverted),inverted1:e.inverted,inverted2:r.inverted}},selectUnion:function(e){return{segments:sd.union(e.combined,Zi),inverted:e.inverted1||e.inverted2}},selectIntersect:function(e){return{segments:sd.intersect(e.combined,Zi),inverted:e.inverted1&&e.inverted2}},selectDifference:function(e){return{segments:sd.difference(e.combined,Zi),inverted:e.inverted1&&!e.inverted2}},selectDifferenceRev:function(e){return{segments:sd.differenceRev(e.combined,Zi),inverted:!e.inverted1&&e.inverted2}},selectXor:function(e){return{segments:sd.xor(e.combined,Zi),inverted:e.inverted1!==e.inverted2}},polygon:function(e){return{regions:I7e(e.segments,ud,Zi),inverted:e.inverted}},polygonFromGeoJSON:function(e){return xO.toPolygon(ai,e)},polygonToGeoJSON:function(e){return xO.fromPolygon(ai,ud,e)},union:function(e,r){return fd(e,r,ai.selectUnion)},intersect:function(e,r){return fd(e,r,ai.selectIntersect)},difference:function(e,r){return fd(e,r,ai.selectDifference)},differenceRev:function(e,r){return fd(e,r,ai.selectDifferenceRev)},xor:function(e,r){return fd(e,r,ai.selectXor)}};function fd(e,r,t){var a=ai.segments(e),n=ai.segments(r),i=ai.combine(a,n),o=t(i);return ai.polygon(o)}typeof window=="object"&&(window.PolyBool=ai);_O.exports=ai});var TO=z((l$e,AO)=>{AO.exports=function(r,t,a,n){var i=r[0],o=r[1],l=!1;a===void 0&&(a=0),n===void 0&&(n=t.length);for(var s=n-a,u=0,f=s-1;uo!=p>o&&i<(d-c)*(o-v)/(p-v)+c;y&&(l=!l)}return l}});var X7=z((s$e,MO)=>{"use strict";var W7=Tp().dot,Ay=(jt(),ze(Zt)).BADNUM,Ty=MO.exports={};Ty.tester=function(r){var t=r.slice(),a=t[0][0],n=a,i=t[0][1],o=i,l;for((t[t.length-1][0]!==t[0][0]||t[t.length-1][1]!==t[0][1])&&t.push(t[0]),l=1;ln||b===Ay||bo||y&&u(p))}function c(p,y){var m=p[0],b=p[1];if(m===Ay||mn||b===Ay||bo)return!1;var A=t.length,w=t[0][0],x=t[0][1],_=0,k,T,q,C,E;for(k=1;kMath.max(T,w)||b>Math.max(q,x)))if(bl||Math.abs(W7(c,u))>n)return!0;return!1};Ty.filter=function(r,t){var a=[r[0]],n=0,i=0;function o(s){r.push(s);var u=a.length,f=n;a.splice(i+1);for(var c=f+1;c1){var l=r.pop();o(l)}return{addPt:o,raw:r,filtered:a}}});var kO={};qt(kO,{BENDPX:()=>B7e,MINSELECT:()=>O7e,SELECTDELAY:()=>H7e,SELECTID:()=>U7e});var B7e,O7e,H7e,U7e,SO=St(()=>{"use strict";B7e=1.5,O7e=12,H7e=100,U7e="-select"});var ZO=z((u$e,XO)=>{"use strict";var qO=wO(),G7e=TO(),hd=Tr(),Y7e=Jr().dashStyle,cd=qr(),V7e=Un(),j7e=Ro().makeEventData,gd=df(),W7e=gd.freeMode,X7e=gd.rectMode,dd=gd.drawMode,K7=gd.openMode,Q7=gd.selectMode,LO=Vs(),CO=(ed(),ze(Qh)),FO=sy(),zO=Es().clearOutline,NO=Us(),Z7=NO.handleEllipse,Z7e=NO.readPaths,$7e=iy().newShapes,J7e=x7(),K7e=j7().activateLastSelection,ky=ke(),Q7e=ky.sorterAsc,IO=X7(),vd=zp(),$i=Aa().getFromId,ewe=Jm(),rwe=xy().redrawReglTraces,Sy=(SO(),ze(kO)),bl=Sy.MINSELECT,twe=IO.filter,ew=IO.tester,rw=ry(),DO=rw.p2r,awe=rw.axValue,nwe=rw.getTransform;function tw(e){return e.subplot!==void 0}function iwe(e,r,t,a,n){var i=!tw(a),o=W7e(n),l=X7e(n),s=K7(n),u=dd(n),f=Q7(n),c=n==="drawline",v=n==="drawcircle",d=c||v,p=a.gd,y=p._fullLayout,m=f&&y.newselection.mode==="immediate"&&i,b=y._zoomlayer,A=a.element.getBoundingClientRect(),w=a.plotinfo,x=nwe(w),_=r-A.left,k=t-A.top;y._calcInverseTransform(p);var T=ky.apply3DTransform(y._invTransform)(_,k);_=T[0],k=T[1];var q=y._invScaleX,C=y._invScaleY,E=_,P=k,R="M"+_+","+k,N=a.xaxes[0],I=a.yaxes[0],O=N._length,U=I._length,Y=e.altKey&&!(dd(n)&&s),G,V,W,j,J,te,ae;OO(e,p,a),o&&(G=twe([[_,k]],Sy.BENDPX));var se=b.selectAll("path.select-outline-"+w.id).data([1]),$=u?y.newshape:y.newselection;u&&(a.hasText=$.label.text||$.label.texttemplate);var fe=u&&!s?$.fillcolor:"rgba(0,0,0,0)",ie=$.line.color||(i?cd.contrast(p._fullLayout.plot_bgcolor):"#7f7f7f");se.enter().append("path").attr("class","select-outline select-outline-"+w.id).style({opacity:u?$.opacity/2:1,"stroke-dasharray":Y7e($.line.dash,$.line.width),"stroke-width":$.line.width+"px","shape-rendering":"crispEdges"}).call(cd.stroke,ie).call(cd.fill,fe).attr("fill-rule","evenodd").classed("cursor-move",!!u).attr("transform",x).attr("d",R+"Z");var ue=b.append("path").attr("class","zoombox-corners").style({fill:cd.background,stroke:cd.defaultLine,"stroke-width":1}).attr("transform",x).attr("d","M0,0Z");if(u&&a.hasText){var ce=b.select(".label-temp");ce.empty()&&(ce=b.append("g").classed("label-temp",!0).classed("select-outline",!0).style({opacity:.8}))}var oe=y._uid+Sy.SELECTID,be=[],Re=qy(p,a.xaxes,a.yaxes,a.subplot);m&&!e.shiftKey&&(a._clearSubplotSelections=function(){if(i){var Ce=N._id,Me=I._id;VO(p,Ce,Me,Re);for(var Le=(p.layout||{}).selections||[],De=[],Ie=!1,qe=0;qe=0){p._fullLayout._deactivateShape(p);return}if(!u){var Le=y.clickmode;vd.done(oe).then(function(){if(vd.clear(oe),Ce===2){for(se.remove(),J=0;J-1&&BO(Me,p,a.xaxes,a.yaxes,a.subplot,a,se),Le==="event"&&yd(p,void 0);V7e.click(p,Me,w.id)}).catch(ky.error)}},a.doneFn=function(){ue.remove(),vd.done(oe).then(function(){vd.clear(oe),!m&&j&&a.selectionDefs&&(j.subtract=Y,a.selectionDefs.push(j),a.mergedPolygons.length=0,[].push.apply(a.mergedPolygons,W)),(m||u)&&pd(a,m),a.doneFnCompleted&&a.doneFnCompleted(be),f&&yd(p,ae)}).catch(ky.error)}}function BO(e,r,t,a,n,i,o){var l=r._hoverdata,s=r._fullLayout,u=s.clickmode,f=u.indexOf("event")>-1,c=[],v,d,p,y,m,b,A,w,x,_;if(fwe(l)){OO(e,r,i),v=qy(r,t,a,n);var k=cwe(l,v),T=k.pointNumbers.length>0;if(T?vwe(v,k):hwe(v)&&(A=PO(k))){for(o&&o.remove(),_=0;_=0}function uwe(e){return e._fullLayout._activeSelectionIndex>=0}function pd(e,r){var t=e.dragmode,a=e.plotinfo,n=e.gd;swe(n)&&n._fullLayout._deactivateShape(n),uwe(n)&&n._fullLayout._deactivateSelection(n);var i=n._fullLayout,o=i._zoomlayer,l=dd(t),s=Q7(t);if(l||s){var u=o.selectAll(".select-outline-"+a.id);if(u&&n._fullLayout._outlining){var f;l&&(f=$7e(u,e)),f&&hd.call("_guiRelayout",n,{shapes:f});var c;s&&!tw(e)&&(c=J7e(u,e)),c&&(n._fullLayout._noEmitSelectedAtStart=!0,hd.call("_guiRelayout",n,{selections:c}).then(function(){r&&K7e(n)})),n._fullLayout._outlining=!1}}a.selection={},a.selection.selectionDefs=e.selectionDefs=[],a.selection.mergedPolygons=e.mergedPolygons=[]}function EO(e){return e._id}function qy(e,r,t,a){if(!e.calcdata)return[];var n=[],i=r.map(EO),o=t.map(EO),l,s,u;for(u=0;u0,i=n?a[0]:t;return r.selectedpoints?r.selectedpoints.indexOf(i)>-1:!1}function vwe(e,r){var t=[],a,n,i,o;for(o=0;o0&&t.push(a);if(t.length===1&&(i=t[0]===r.searchInfo,i&&(n=r.searchInfo.cd[0].trace,n.selectedpoints.length===r.pointNumbers.length))){for(o=0;o1||(r+=a.selectedpoints.length,r>1)))return!1;return r===1}function md(e,r,t){var a,n;for(a=0;a-1&&r;if(!o&&r){var Ce=RO(e,!0);if(Ce.length){var Me=Ce[0].xref,Le=Ce[0].yref;if(Me&&Le){var De=jO(Ce),Ie=WO([$i(e,Me,"x"),$i(e,Le,"y")]);Ie(be,De)}}e._fullLayout._noEmitSelectedAtStart?e._fullLayout._noEmitSelectedAtStart=!1:ye&&yd(e,be),v._reselect=!1}if(!o&&v._deselect){var qe=v._deselect;l=qe.xref,s=qe.yref,mwe(l,s,f)||VO(e,l,s,a),ye&&(be.points.length?yd(e,be):iw(e)),v._deselect=!1}return{eventData:be,selectionTesters:t}}function pwe(e){var r=e.calcdata;if(r)for(var t=0;t{"use strict";$O.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}]});var bd={};qt(bd,{axisRefDescription:()=>_we});function _we(e,r,t){return[`If set to a ${e} axis id (e.g. *${e}* or *${e}2*),`,`the \`${e}\` position refers to a ${e} coordinate.`,`If set to *paper*, the \`${e}\` position refers to the distance from the`,`${r} of the plotting area in normalized coordinates where *0* (*1*) corresponds`,`to the ${r} (${t}). If set to a ${e} 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 ${r} of the domain of that`,`axis: e.g., *${e}2 domain* refers to the domain of the second ${e}`,`axis and a ${e} position of 0.5 refers to the point between the ${r}`,`and the ${t} of the domain of the second ${e} axis.`].join(" ")}var xd=St(()=>{"use strict"});var w0=z((v$e,QO)=>{"use strict";var JO=ow(),KO=Ca(),Ly=(Pa(),ze(Ea)),wwe=Ct().templatedArray,c$e=(xd(),ze(bd));QO.exports=wwe("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:KO({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:JO.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:JO.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",Ly.idRegex.x.toString()],editType:"calc"},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",Ly.idRegex.y.toString()],editType:"calc"},xref:{valType:"enumerated",values:["paper",Ly.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",Ly.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:KO({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc"})});var _d={};qt(_d,{PTS_LINESONLY:()=>Awe,eventDataKeys:()=>Swe,maxScreensAway:()=>kwe,minTolerance:()=>Twe,toleranceGrowth:()=>Mwe});var Awe,Twe,Mwe,kwe,Swe,wd=St(()=>{"use strict";Awe=20,Twe=.2,Mwe=10,kwe=20,Swe=[]});var Cy=z((h$e,eH)=>{"use strict";eH.exports=function(r){return{valType:"color",editType:"style",anim:!0}}});var Ji=z((d$e,sH)=>{"use strict";var rH=Eo().axisHoverFormat,{hovertemplateAttrs:qwe,texttemplateAttrs:Lwe,templatefallbackAttrs:tH}=di(),aH=ol(),Cwe=Ca(),nH=Bi().dash,Dwe=Bi().pattern,Ewe=Jr(),Pwe=(wd(),ze(_d)),Ad=Mt().extendFlat,Rwe=Cy();function iH(e){return{valType:"any",dflt:0,editType:"calc"}}function oH(e){return{valType:"any",editType:"calc"}}function lH(e){return{valType:"enumerated",values:["start","middle","end"],dflt:"middle",editType:"calc"}}sH.exports={x:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0},x0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",anim:!0},dx:{valType:"number",dflt:1,editType:"calc",anim:!0},y:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0},y0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",anim:!0},dy:{valType:"number",dflt:1,editType:"calc",anim:!0},xperiod:iH("x"),yperiod:iH("y"),xperiod0:oH("x0"),yperiod0:oH("y0"),xperiodalignment:lH("x"),yperiodalignment:lH("y"),xhoverformat:rH("x"),yhoverformat:rH("y"),offsetgroup:{valType:"string",dflt:"",editType:"calc"},alignmentgroup:{valType:"string",dflt:"",editType:"calc"},stackgroup:{valType:"string",dflt:"",editType:"calc"},orientation:{valType:"enumerated",values:["v","h"],editType:"calc"},groupnorm:{valType:"enumerated",values:["","fraction","percent"],dflt:"",editType:"calc"},stackgaps:{valType:"enumerated",values:["infer zero","interpolate"],dflt:"infer zero",editType:"calc"},text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},texttemplate:Lwe(),texttemplatefallback:tH({editType:"calc"}),hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"style"},mode:{valType:"flaglist",flags:["lines","markers","text"],extras:["none"],editType:"calc"},hoveron:{valType:"flaglist",flags:["points","fills"],editType:"style"},hovertemplate:qwe({},{keys:Pwe.eventDataKeys}),hovertemplatefallback:tH(),line:{color:{valType:"color",editType:"style",anim:!0},width:{valType:"number",min:0,dflt:2,editType:"style",anim:!0},shape:{valType:"enumerated",values:["linear","spline","hv","vh","hvh","vhv"],dflt:"linear",editType:"plot"},smoothing:{valType:"number",min:0,max:1.3,dflt:1,editType:"plot"},dash:Ad({},nH,{editType:"style"}),backoff:{valType:"number",min:0,dflt:"auto",arrayOk:!0,editType:"plot"},simplify:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},connectgaps:{valType:"boolean",dflt:!1,editType:"calc"},cliponaxis:{valType:"boolean",dflt:!0,editType:"plot"},fill:{valType:"enumerated",values:["none","tozeroy","tozerox","tonexty","tonextx","toself","tonext"],editType:"calc"},fillcolor:Rwe(!0),fillgradient:Ad({type:{valType:"enumerated",values:["radial","horizontal","vertical","none"],dflt:"none",editType:"calc"},start:{valType:"number",editType:"calc"},stop:{valType:"number",editType:"calc"},colorscale:{valType:"colorscale",editType:"style"},editType:"calc"}),fillpattern:Dwe,marker:Ad({symbol:{valType:"enumerated",values:Ewe.symbolList,dflt:"circle",arrayOk:!0,editType:"style"},opacity:{valType:"number",min:0,max:1,arrayOk:!0,editType:"style",anim:!0},angle:{valType:"angle",dflt:0,arrayOk:!0,editType:"plot",anim:!1},angleref:{valType:"enumerated",values:["previous","up"],dflt:"up",editType:"plot",anim:!1},standoff:{valType:"number",min:0,dflt:0,arrayOk:!0,editType:"plot",anim:!0},size:{valType:"number",min:0,dflt:6,arrayOk:!0,editType:"calc",anim:!0},maxdisplayed:{valType:"number",min:0,dflt:0,editType:"plot"},sizeref:{valType:"number",dflt:1,editType:"calc"},sizemin:{valType:"number",min:0,dflt:0,editType:"calc"},sizemode:{valType:"enumerated",values:["diameter","area"],dflt:"diameter",editType:"calc"},line:Ad({width:{valType:"number",min:0,arrayOk:!0,editType:"style",anim:!0},dash:Ad({},nH,{arrayOk:!0}),editType:"calc"},aH("marker.line",{anim:!0})),gradient:{type:{valType:"enumerated",values:["radial","horizontal","vertical","none"],arrayOk:!0,dflt:"none",editType:"calc"},color:{valType:"color",arrayOk:!0,editType:"calc"},editType:"calc"},editType:"calc"},aH("marker",{anim:!0})),selected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style"},color:{valType:"color",editType:"style"},size:{valType:"number",min:0,editType:"style"},editType:"style"},textfont:{color:{valType:"color",editType:"style"},editType:"style"},editType:"style"},unselected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style"},color:{valType:"color",editType:"style"},size:{valType:"number",min:0,editType:"style"},editType:"style"},textfont:{color:{valType:"color",editType:"style"},editType:"style"},editType:"style"},textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right"],dflt:"middle center",arrayOk:!0,editType:"calc"},textfont:Cwe({editType:"calc",colorEditType:"style",arrayOk:!0}),zorder:{valType:"integer",dflt:0,editType:"plot"}}});var lw=z((m$e,cH)=>{"use strict";var uH=w0(),fH=Ji().line,Fwe=Bi().dash,Dy=Mt().extendFlat,zwe=qo().overrideAll,Nwe=Ct().templatedArray,p$e=(xd(),ze(bd));cH.exports=zwe(Nwe("selection",{type:{valType:"enumerated",values:["rect","path"]},xref:Dy({},uH.xref,{}),yref:Dy({},uH.yref,{}),x0:{valType:"any"},x1:{valType:"any"},y0:{valType:"any"},y1:{valType:"any"},path:{valType:"string",editType:"arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:.7,editType:"arraydraw"},line:{color:fH.color,width:Dy({},fH.width,{min:1,dflt:1}),dash:Dy({},Fwe,{dflt:"dot"})}}),"arraydraw","from-root")});var pH=z((y$e,dH)=>{"use strict";var vH=ke(),Ey=Yr(),Iwe=Po(),Bwe=lw(),hH=Vs();dH.exports=function(r,t){Iwe(r,t,{name:"selections",handleItemDefaults:Owe});for(var a=t.selections,n=0;n{"use strict";mH.exports=function(r,t,a){a("newselection.mode");var n=a("newselection.line.width");n&&(a("newselection.line.color"),a("newselection.line.dash")),a("activeselection.fillcolor"),a("activeselection.opacity")}});var Td=z((b$e,xH)=>{"use strict";var Hwe=Tr(),gH=ke(),bH=Aa();xH.exports=function(r){return function(a,n){var i=a[r];if(Array.isArray(i))for(var o=Hwe.subplotsRegistry.cartesian,l=o.idRegex,s=n._subplots,u=s.xaxis,f=s.yaxis,c=s.cartesian,v=n._has("cartesian"),d=0;d{"use strict";var _H=j7(),Md=ZO();wH.exports={moduleType:"component",name:"selections",layoutAttributes:lw(),supplyLayoutDefaults:pH(),supplyDrawNewSelectionDefaults:yH(),includeBasePlot:Td()("selections"),draw:_H.draw,drawOne:_H.drawOne,reselect:Md.reselect,prepSelect:Md.prepSelect,clearOutline:Md.clearOutline,clearSelectionsCache:Md.clearSelectionsCache,selectOnClick:Md.selectOnClick}});var UH=z((_$e,HH)=>{"use strict";var hw=Pr(),Ki=ke(),AH=Ki.numberFormat,Uwe=G6(),Py=Tr(),DH=Ki.strTranslate,Gwe=Fa(),uw=qr(),Ws=Jr(),Ywe=Un(),TH=Yr(),Vwe=Os(),jwe=Vi(),EH=df(),Ry=EH.selectingOrDrawing,Wwe=EH.freeMode,Xwe=(on(),ze(nn)).FROM_TL,Zwe=Jm(),$we=xy().redrawReglTraces,Jwe=ma(),fw=Aa().getFromId,Kwe=xl().prepSelect,Qwe=xl().clearOutline,e8e=xl().selectOnClick,sw=I7(),dw=(Pa(),ze(Ea)),MH=dw.MINDRAG,Gn=dw.MINZOOM,kH=!0;function r8e(e,r,t,a,n,i,o,l){var s=e._fullLayout._zoomlayer,u=o+l==="nsew",f=(o+l).length===1,c,v,d,p,y,m,b,A,w,x,_,k,T,q,C,E,P,R,N,I,O,U,Y;t+=r.yaxis._shift;function G(){if(c=r.xaxis,v=r.yaxis,w=c._length,x=v._length,b=c._offset,A=v._offset,d={},d[c._id]=c,p={},p[v._id]=v,o&&l)for(var me=r.overlays,Te=0;Te=0){Ue._fullLayout._deactivateShape(Ue);return}var $e=Ue._fullLayout.clickmode;if(vw(Ue),me===2&&!f&&er(),u)$e.indexOf("select")>-1&&e8e(Te,Ue,y,m,r.id,j),$e.indexOf("event")>-1&&Ywe.click(Ue,Te,r.id);else if(me===1&&f){var Oe=o?v:c,We=o==="s"||l==="w"?0:1,ar=Oe._name+".range["+We+"]",or=t8e(Oe,We),sr="left",Ee="middle";if(Oe.fixedrange)return;o?(Ee=o==="n"?"top":"bottom",Oe.side==="right"&&(sr="right")):l==="e"&&(sr="right"),Ue._context.showAxisRangeEntryBoxes&&hw.select(W).call(Gwe.makeEditable,{gd:Ue,immediate:!0,background:Ue._fullLayout.paper_bgcolor,text:String(or),fill:Oe.tickfont?Oe.tickfont.color:"#444",horizontalAlign:sr,verticalAlign:Ee}).on("edit",function(Ke){var Be=Oe.d2r(Ke);Be!==void 0&&Py.call("_guiRelayout",Ue,ar,Be)})}}jwe.init(j);var ae,se,$,fe,ie,ue,ce,oe,be,Re;function ye(me,Te,Ue){var $e=W.getBoundingClientRect();ae=Te-$e.left,se=Ue-$e.top,e._fullLayout._calcInverseTransform(e);var Oe=Ki.apply3DTransform(e._fullLayout._invTransform)(ae,se);ae=Oe[0],se=Oe[1],$={l:ae,r:ae,w:0,t:se,b:se,h:0},fe=e._hmpixcount?e._hmlumcount/e._hmpixcount:uw.luminosity(e._fullLayout.plot_bgcolor),ie="M0,0H"+w+"V"+x+"H0V0",ue=!1,ce="xy",Re=!1,oe=FH(s,fe,b,A,ie),be=zH(s,b,A)}function Ce(me,Te){if(e._transitioningWithDuration)return!1;var Ue=Math.max(0,Math.min(w,U*me+ae)),$e=Math.max(0,Math.min(x,Y*Te+se)),Oe=Math.abs(Ue-ae),We=Math.abs($e-se);$.l=Math.min(ae,Ue),$.r=Math.max(ae,Ue),$.t=Math.min(se,$e),$.b=Math.max(se,$e);function ar(){ce="",$.r=$.l,$.t=$.b,be.attr("d","M0,0Z")}if(_.isSubplotConstrained)Oe>Gn||We>Gn?(ce="xy",Oe/w>We/x?(We=Oe*x/w,se>$e?$.t=se-We:$.b=se+We):(Oe=We*w/x,ae>Ue?$.l=ae-Oe:$.r=ae+Oe),be.attr("d",Fy($))):ar();else if(k.isSubplotConstrained)if(Oe>Gn||We>Gn){ce="xy";var or=Math.min($.l/w,(x-$.b)/x),sr=Math.max($.r/w,(x-$.t)/x);$.l=or*w,$.r=sr*w,$.b=(1-or)*x,$.t=(1-sr)*x,be.attr("d",Fy($))}else ar();else!q||We0){var Ke;if(k.isSubplotConstrained||!T&&q.length===1){for(Ke=0;Ke1&&(ar.maxallowed!==void 0&&E===(ar.range[0]1&&(or.maxallowed!==void 0&&P===(or.range[0]=0?Math.min(e,.9):1/(1/Math.max(e,-.3)+3.222))}function n8e(e,r,t){return e?e==="nsew"?t?"":r==="pan"?"move":"crosshair":e.toLowerCase()+"-resize":"pointer"}function FH(e,r,t,a,n){return e.append("path").attr("class","zoombox").style({fill:r>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("transform",DH(t,a)).attr("d",n+"Z")}function zH(e,r,t){return e.append("path").attr("class","zoombox-corners").style({fill:uw.background,stroke:uw.defaultLine,"stroke-width":1,opacity:0}).attr("transform",DH(r,t)).attr("d","M0,0Z")}function NH(e,r,t,a,n,i){e.attr("d",a+"M"+t.l+","+t.t+"v"+t.h+"h"+t.w+"v-"+t.h+"h-"+t.w+"Z"),IH(e,r,n,i)}function IH(e,r,t,a){t||(e.transition().style("fill",a>.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),r.transition().style("opacity",1).duration(200))}function vw(e){hw.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function BH(e){kH&&e.data&&e._context.showTips&&(Ki.notifier(Ki._(e,"Double-click to zoom back out"),"long",e),kH=!1)}function i8e(e,r){return"M"+(e.l-.5)+","+(r-Gn-.5)+"h-3v"+(2*Gn+1)+"h3ZM"+(e.r+.5)+","+(r-Gn-.5)+"h3v"+(2*Gn+1)+"h-3Z"}function o8e(e,r){return"M"+(r-Gn-.5)+","+(e.t-.5)+"v-3h"+(2*Gn+1)+"v3ZM"+(r-Gn-.5)+","+(e.b+.5)+"v3h"+(2*Gn+1)+"v-3Z"}function Fy(e){var r=Math.floor(Math.min(e.b-e.t,e.r-e.l,Gn)/2);return"M"+(e.l-3.5)+","+(e.t-.5+r)+"h3v"+-r+"h"+r+"v-3h-"+(r+3)+"ZM"+(e.r+3.5)+","+(e.t-.5+r)+"h-3v"+-r+"h"+-r+"v-3h"+(r+3)+"ZM"+(e.r+3.5)+","+(e.b+.5-r)+"h-3v"+r+"h"+-r+"v3h"+(r+3)+"ZM"+(e.l-3.5)+","+(e.b+.5-r)+"h3v"+r+"h"+r+"v3h-"+(r+3)+"Z"}function LH(e,r,t,a,n){for(var i=!1,o={},l={},s,u,f,c,v=(n||{}).xaHash,d=(n||{}).yaHash,p=0;p{"use strict";var l8e=Pr(),zy=Un(),s8e=Vi(),u8e=Os(),No=UH().makeDragBox,Ua=(Pa(),ze(Ea)).DRAGGERSIZE;Ny.initInteractions=function(r){var t=r._fullLayout;if(r._context.staticPlot){l8e.select(r).selectAll(".drag").remove();return}if(!(!t._has("cartesian")&&!t._has("splom"))){var a=Object.keys(t._plots||{}).sort(function(i,o){if((t._plots[i].mainplot&&!0)===(t._plots[o].mainplot&&!0)){var l=i.split("y"),s=o.split("y");return l[0]===s[0]?Number(l[1]||1)-Number(s[1]||1):Number(l[0]||1)-Number(s[0]||1)}return t._plots[i].mainplot?1:-1});a.forEach(function(i){var o=t._plots[i],l=o.xaxis,s=o.yaxis;if(!o.mainplot){var u=No(r,o,l._offset,s._offset,l._length,s._length,"ns","ew");u.onmousemove=function(v){r._fullLayout._rehover=function(){r._fullLayout._hoversubplot===i&&r._fullLayout._plots[i]&&zy.hover(r,v,i)},zy.hover(r,v,i),r._fullLayout._lasthover=u,r._fullLayout._hoversubplot=i},u.onmouseout=function(v){r._dragging||(r._fullLayout._hoversubplot=null,s8e.unhover(r,v))},r._context.showAxisDragHandles&&(No(r,o,l._offset-Ua,s._offset-Ua,Ua,Ua,"n","w"),No(r,o,l._offset+l._length,s._offset-Ua,Ua,Ua,"n","e"),No(r,o,l._offset-Ua,s._offset+s._length,Ua,Ua,"s","w"),No(r,o,l._offset+l._length,s._offset+s._length,Ua,Ua,"s","e"))}if(r._context.showAxisDragHandles){if(i===l._mainSubplot){var f=l._mainLinePosition;l.side==="top"&&(f-=Ua),No(r,o,l._offset+l._length*.1,f,l._length*.8,Ua,"","ew"),No(r,o,l._offset,f,l._length*.1,Ua,"","w"),No(r,o,l._offset+l._length*.9,f,l._length*.1,Ua,"","e")}if(i===s._mainSubplot){var c=s._mainLinePosition;s.side!=="right"&&(c-=Ua),No(r,o,c,s._offset+s._length*.1,Ua,s._length*.8,"ns",""),No(r,o,c,s._offset+s._length*.9,Ua,s._length*.1,"s",""),No(r,o,c,s._offset,Ua,s._length*.1,"n","")}}});var n=t._hoverlayer.node();n.onmousemove=function(i){i.target=r._fullLayout._lasthover,zy.hover(r,i,t._hoversubplot)},n.onclick=function(i){i.target=r._fullLayout._lasthover,zy.click(r,i)},n.onmousedown=function(i){r._fullLayout._lasthover.onmousedown(i)},Ny.updateFx(r)}};Ny.updateFx=function(e){var r=e._fullLayout,t=r.dragmode==="pan"?"move":"crosshair";u8e(r._draggers,t)}});var VH=z((A$e,YH)=>{"use strict";var GH=Tr();YH.exports=function(r){for(var t=GH.layoutArrayContainers,a=GH.layoutArrayRegexes,n=r.split("[")[0],i,o,l=0;l{"use strict";var f8e=Du(),mw=Ap(),kd=_s(),c8e=f4().sorterAsc,yw=Tr();Sd.containerArrayMatch=VH();var v8e=Sd.isAddVal=function(r){return r==="add"||f8e(r)},jH=Sd.isRemoveVal=function(r){return r===null||r==="remove"};Sd.applyContainerArrayChanges=function(r,t,a,n,i){var o=t.astr,l=yw.getComponentMethod(o,"supplyLayoutDefaults"),s=yw.getComponentMethod(o,"draw"),u=yw.getComponentMethod(o,"drawOne"),f=n.replot||n.recalc||l===mw||s===mw,c=r.layout,v=r._fullLayout;if(a[""]){Object.keys(a).length>1&&kd.warn("Full array edits are incompatible with other edits",o);var d=a[""][""];if(jH(d))t.set(null);else if(Array.isArray(d))t.set(d);else return kd.warn("Unrecognized full array edit value",o,d),!0;return f?!1:(l(c,v),s(r),!0)}var p=Object.keys(a).map(Number).sort(c8e),y=t.get(),m=y||[],b=i(v,o).get(),A=[],w=-1,x=m.length,_,k,T,q,C,E,P,R;for(_=0;_m.length-(P?0:1)){kd.warn("index out of range",o,T);continue}if(E!==void 0)C.length>1&&kd.warn("Insertion & removal are incompatible with edits to the same index.",o,T),jH(E)?A.push(T):P?(E==="add"&&(E={}),m.splice(T,0,E),b&&b.splice(T,0,{})):kd.warn("Unrecognized full object edit value",o,T,E),w===-1&&(w=T);else for(k=0;k=0;_--)m.splice(A[_],1),b&&b.splice(A[_],1);if(m.length?y||t.set(m):t.set(null),f)return!1;if(l(c,v),u!==mw){var N;if(w===-1)N=p;else{for(x=Math.max(m.length,x),N=[],_=0;_=w));_++)N.push(T);for(_=w;_{"use strict";var JH=Br(),KH=Tr(),Dn=ke(),qd=ma(),QH=Aa(),Ld=QH.cleanId,h8e=QH.getFromTrace,gw=KH.traceIs,d8e=["x","y","z"];Qi.clearPromiseQueue=function(e){Array.isArray(e._promises)&&e._promises.length>0&&Dn.log("Clearing previous rejected promises from queue."),e._promises=[]};Qi.cleanLayout=function(e){var r,t;e||(e={}),e.xaxis1&&(e.xaxis||(e.xaxis=e.xaxis1),delete e.xaxis1),e.yaxis1&&(e.yaxis||(e.yaxis=e.yaxis1),delete e.yaxis1),e.scene1&&(e.scene||(e.scene=e.scene1),delete e.scene1);var a=(qd.subplotsRegistry.cartesian||{}).attrRegex,n=(qd.subplotsRegistry.polar||{}).attrRegex,i=(qd.subplotsRegistry.ternary||{}).attrRegex,o=(qd.subplotsRegistry.gl3d||{}).attrRegex,l=Object.keys(e);for(r=0;r3?(m.x=1.02,m.xanchor="left"):m.x<-2&&(m.x=-.02,m.xanchor="right"),m.y>3?(m.y=1.02,m.yanchor="bottom"):m.y<-2&&(m.y=-.02,m.yanchor="top")),e.dragmode==="rotate"&&(e.dragmode="orbit"),e.template&&e.template.layout&&Qi.cleanLayout(e.template.layout),e};function A0(e,r,t=!1){var a=e[r],n=r.charAt(0);t&&Array.isArray(a)||a&&a!=="paper"&&(e[r]=Ld(a,n,!0))}Qi.cleanData=function(e){for(var r=0;r0)return e.slice(0,r)}Qi.hasParent=function(e,r){for(var t=$H(r);t;){if(t in e)return!0;t=$H(t)}return!1};Qi.clearAxisTypes=function(e,r,t){for(var a=0;a{let t=(...a)=>a.every(n=>Dn.isPlainObject(n))||a.every(n=>Array.isArray(n));if([e,r].every(a=>Array.isArray(a))){if(e.length!==r.length)return!1;for(let a=0;aDn.isPlainObject(a))){if(Object.keys(e).length!==Object.keys(r).length)return!1;for(let a in e){if(a.startsWith("_"))continue;let n=e[a],i=r[a];if(n!==i&&!(t(n,i)?bw(n,i):!1))return!1}return!0}return!1};Qi.collectionsAreEqual=bw});var Tw=z($r=>{"use strict";var Uy=Pr(),y8e=Br(),g8e=M4(),ir=ke(),Rt=ir.nestedProperty,_w=Ch(),Yn=GP(),eo=Tr(),Zy=Xc(),Cr=ma(),En=Yr(),b8e=U6(),x8e=Gi(),Oy=Jr(),_8e=qr(),w8e=pw().initInteractions,A8e=(Vl(),ze(Yl)),T8e=xl().clearOutline,iU=xs().dfltConfig,By=WH(),xa=eU(),mt=xy(),Xs=qo(),M8e=(Pa(),ze(Ea)).AX_NAME_PATTERN,xw=0,rU=5;function k8e(e,r,t,a){var n;if(e=ir.getGraphDiv(e),_w.init(e),ir.isPlainObject(r)){var i=r;r=i.data,t=i.layout,a=i.config,n=i.frames}var o=_w.triggerHandler(e,"plotly_beforeplot",[r,t,a]);if(o===!1)return Promise.reject();!r&&!t&&!ir.isPlotDiv(e)&&ir.warn("Calling _doPlot as if redrawing but this container doesn't yet have a plot.",e);function l(){if(n)return $r.addFrames(e,n)}lU(e,a),t||(t={}),Uy.select(e).classed("js-plotly-plot",!0),Oy.makeTester(),Array.isArray(e._promises)||(e._promises=[]);var s=(e.data||[]).length===0&&Array.isArray(r);Array.isArray(r)&&(xa.cleanData(r),s?e.data=r:e.data.push.apply(e.data,r),e.empty=!1),(!e.layout||s)&&(e.layout=xa.cleanLayout(t)),Cr.supplyDefaults(e);var u=e._fullLayout,f=u._has("cartesian");u._replotting=!0,(s||u._shouldCreateBgLayer)&&($8e(e),u._shouldCreateBgLayer&&delete u._shouldCreateBgLayer),Oy.initGradients(e),Oy.initPatterns(e),s&&En.saveShowSpikeInitial(e);var c=!e.calcdata||e.calcdata.length!==(e._fullData||[]).length;c&&Cr.doCalcdata(e);for(var v=0;v{ir.isHidden(e)||Cr.resize(e)};if(e._context.fillFrame||typeof ResizeObserver=="undefined")window.addEventListener("resize",q),e._clearResponsive=()=>window.removeEventListener("resize",q);else{let C=e.offsetWidth,E=e.offsetHeight,P=new ResizeObserver(()=>{let R=e.offsetWidth,N=e.offsetHeight,I=Math.abs(R-C)>1||Math.abs(N-E)>1;C=R,E=N,I&&R&&N&&q()});P.observe(e),e._clearResponsive=()=>P.disconnect()}}}else ir.clearResponsive(e);let d=document.fonts?[...document.fonts].filter(q=>q.status!=="loaded"):[];var p=ir.extendFlat({},u._size),y=0;function m(){for(var q=u._basePlotModules,C=0;C["loaded","loading"].includes(n.status));if(!t.length)return;let a={};e._fontLoadToken=a,yield Promise.all(t.map(n=>n.loaded.catch(()=>{}))),e._fontLoadToken===a&&(delete e._fontLoadToken,Oy.savedBBoxes={},$r._doPlot(e))})}function Dd(e){var r=e._fullLayout;r._redrawFromAutoMarginCount?r._redrawFromAutoMarginCount--:e.emit("plotly_afterplot")}function q8e(e){return ir.extendFlat(iU,e)}function oU(e,r){try{e._fullLayout._paper.style("background",r)}catch(t){ir.error(t)}}function L8e(e,r){var t=_8e.combine(r,"white");oU(e,t)}function lU(e,r){if(!e._context){e._context=ir.extendDeep({},iU);var t=Uy.select("base");e._context._baseUrl=t.size()&&t.attr("href")?window.location.href.split("#")[0]:""}var a=e._context,n,i,o;if(r){for(i=Object.keys(r),n=0;n=e.data.length||n<-e.data.length)throw new Error(t+" must be valid indices for gd.data.");if(r.indexOf(n,a+1)>-1||n>=0&&r.indexOf(-e.data.length+n)>-1||n<0&&r.indexOf(e.data.length+n)>-1)throw new Error("each index in "+t+" must be unique.")}}function sU(e,r,t){if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(typeof r=="undefined")throw new Error("currentIndices is a required argument.");if(Array.isArray(r)||(r=[r]),Yy(e,r,"currentIndices"),typeof t!="undefined"&&!Array.isArray(t)&&(t=[t]),typeof t!="undefined"&&Yy(e,t,"newIndices"),typeof t!="undefined"&&r.length!==t.length)throw new Error("current and new indices must be of equal length.")}function E8e(e,r,t){var a,n;if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(typeof r=="undefined")throw new Error("traces must be defined.");for(Array.isArray(r)||(r=[r]),a=0;a=0&&f=0&&f0&&typeof q.parts[P]!="string";)P--;var R=q.parts[P],N=q.parts[P-1]+"."+R,I=q.parts.slice(0,P).join("."),O=Rt(e.layout,I).get(),U=Rt(a,I).get(),Y=q.get();if(C!==void 0){b[T]=C,A[T]=R==="reverse"?C:Jl(Y);var G=Zy.getLayoutValObject(a,q.parts);if(G&&G.impliedEdits&&C!==null)for(var V in G.impliedEdits)w(ir.relativeAttr(T,V),G.impliedEdits[V]);if(["width","height"].indexOf(T)!==-1)if(C){w("autosize",null);var W=T==="height"?"width":"height";w(W,a[W])}else a[T]=e._initialAutoSize[T];else if(T==="autosize")w("width",C?null:a.width),w("height",C?null:a.height);else if(N.match(yU))k(N),Rt(a,I+"._inputRange").set(null);else if(N.match(gU)){k(N),Rt(a,I+"._inputRange").set(null);var j=Rt(a,I).get();j._inputDomain&&(j._input.domain=j._inputDomain.slice())}else N.match(z8e)&&Rt(a,I+"._inputDomain").set(null);if(R==="type"){_=O;var J=U.type==="linear"&&C==="log",te=U.type==="log"&&C==="linear";if(J||te){if(!_||!_.range)w(I+".autorange",!0);else if(U.autorange)J&&(_.range=_.range[1]>_.range[0]?[1,2]:[2,1]);else{var ae=_.range[0],se=_.range[1];J?(ae<=0&&se<=0&&w(I+".autorange",!0),ae<=0?ae=se/1e6:se<=0&&(se=ae/1e6),w(I+".range[0]",Math.log(ae)/Math.LN10),w(I+".range[1]",Math.log(se)/Math.LN10)):(w(I+".range[0]",Math.pow(10,ae)),w(I+".range[1]",Math.pow(10,se)))}Array.isArray(a._subplots.polar)&&a._subplots.polar.length&&a[q.parts[0]]&&q.parts[1]==="radialaxis"&&delete a[q.parts[0]]._subplot.viewInitial["radialaxis.range"],eo.getComponentMethod("annotations","convertCoords")(e,U,C,w),eo.getComponentMethod("images","convertCoords")(e,U,C,w)}else w(I+".autorange",!0),w(I+".range",null);Rt(a,I+"._inputRange").set(null)}else if(R.match(M8e)){var $=Rt(a,T).get(),fe=(C||{}).type;(!fe||fe==="-")&&(fe="linear"),eo.getComponentMethod("annotations","convertCoords")(e,$,fe,w),eo.getComponentMethod("images","convertCoords")(e,$,fe,w)}var ie=By.containerArrayMatch(T);if(ie){f=ie.array,c=ie.index;var ue=ie.property,ce=G||{editType:"calc"};c!==""&&ue===""&&(By.isAddVal(C)?A[T]=null:By.isRemoveVal(C)?A[T]=(Rt(t,f).get()||[])[c]:ir.warn("unrecognized full object value",r)),Xs.update(m,ce),u[f]||(u[f]={});var oe=u[f][c];oe||(oe=u[f][c]={}),oe[ue]=C,delete r[T]}else R==="reverse"?(O.range?O.range.reverse():(w(I+".autorange",!0),O.range=[1,0]),U.autorange?m.calc=!0:m.plot=!0):(T==="dragmode"&&(C===!1&&Y!==!1||C!==!1&&Y===!1)||a._has("scatter-like")&&a._has("regl")&&T==="dragmode"&&(C==="lasso"||C==="select")&&!(Y==="lasso"||Y==="select")?m.plot=!0:G?Xs.update(m,G):m.calc=!0,q.set(C))}}for(f in u){var be=By.applyContainerArrayChanges(e,i(t,f),u[f],m,i);be||(m.plot=!0)}for(var Re in x){_=En.getFromId(e,Re);var ye=_&&_._constraintGroup;if(ye){m.calc=!0;for(var Ce in ye)x[Ce]||(En.getFromId(e,Ce)._constraintShrinkable=!0)}}(xU(e)||r.height||r.width)&&(m.plot=!0);var Me=a.shapes;for(c=0;c1;)if(a.pop(),t=Rt(r,a.join(".")+".uirevision").get(),t!==void 0)return t;return r.uirevision}function B8e(e,r){for(var t=0;t[I,e._ev.listeners(I)]);i=$r.newPlot(e,r,t,a).then(()=>{for(let[I,O]of N)O.forEach(U=>e.on(I,U));return $r.react(e,r,t,a)})}else{e.data=r||[],xa.cleanData(e.data),e.layout=t||{},xa.cleanLayout(e.layout),H8e(e.data,e.layout,l,s),Cr.supplyDefaults(e,{skipUpdateCalc:!0});var c=e._fullData,v=e._fullLayout,d=v.datarevision===void 0,p=v.transition,y=Y8e(e,s,v,d,p),m=y.newDataRevision,b=G8e(e,l,c,d,p,m);if(xU(e)&&(y.layoutReplot=!0),b.calc||y.calc){e.calcdata=void 0;for(var A=Object.getOwnPropertyNames(v),w=0;w(f||e.emit("plotly_react",{config:a,data:r,layout:t}),e))}function G8e(e,r,t,a,n,i){var o=r.length===t.length;if(!n&&!o)return{fullReplot:!0,calc:!0};var l=Xs.traceFlags();l.arrays={},l.nChanges=0,l.nChangesAnim=0;var s,u;function f(d){var p=Zy.getTraceValObject(u,d);return!u._module.animatable&&p.anim&&(p.anim=!1),p}var c={getValObject:f,flags:l,immutable:a,transition:n,newDataRevision:i,gd:e},v={};for(s=0;s=n.length?n[0]:n[u]:n}function l(u){return Array.isArray(i)?u>=i.length?i[0]:i[u]:i}function s(u,f){var c=0;return function(){if(u&&++c===f)return u()}}return new Promise(function(u,f){function c(){if(a._frameQueue.length!==0){for(;a._frameQueue.length;){var R=a._frameQueue.pop();R.onInterrupt&&R.onInterrupt()}e.emit("plotly_animationinterrupted",[])}}function v(R){if(R.length!==0){for(var N=0;Na._timeToNext&&p()};R()}var m=0;function b(R){return Array.isArray(n)?m>=n.length?R.transitionOpts=n[m]:R.transitionOpts=n[0]:R.transitionOpts=n,m++,R}var A,w,x=[],_=r==null,k=Array.isArray(r),T=!_&&!k&&ir.isPlainObject(r);if(T)x.push({type:"object",data:b(ir.extendFlat({},r))});else if(_||["string","number"].indexOf(typeof r)!==-1)for(A=0;A0&&EE)&&P.push(w);x=P}}x.length>0?v(x):(e.emit("plotly_animated"),u())})}function j8e(e,r,t){if(e=ir.getGraphDiv(e),r==null)return Promise.resolve();if(!ir.isPlotDiv(e))throw new Error("This element is not a Plotly plot: "+e+". It's likely that you've failed to create a plot before adding frames. For more details, see https://plotly.com/javascript/animations/");var a,n,i,o,l=e._transitionData._frames,s=e._transitionData._frameHash;if(!Array.isArray(r))throw new Error("addFrames failure: frameList must be an Array of frame definitions"+r);var u=l.length+r.length*2,f=[],c={};for(a=r.length-1;a>=0;a--)if(ir.isPlainObject(r[a])){var v=r[a].name,d=(s[v]||c[v]||{}).name,p=r[a].name,y=s[d]||c[d];d&&p&&typeof p=="number"&&y&&xwq.index?-1:T.index=0;a--){if(n=f[a].frame,typeof n.name=="number"&&ir.warn("Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings"),!n.name)for(;s[n.name="frame "+e._transitionData._counter++];);if(s[n.name]){for(i=0;i=0;t--)a=r[t],i.push({type:"delete",index:a}),o.unshift({type:"insert",index:a,value:n[a]});var l=Cr.modifyFrames,s=Cr.modifyFrames,u=[e,o],f=[e,i];return Yn&&Yn.add(e,l,u,s,f),Cr.modifyFrames(e,i)}function X8e(e){e=ir.getGraphDiv(e);var r=e._fullLayout||{},t=e._fullData||[];return Cr.cleanPlot([],{},t,r),Cr.purge(e),_w.purge(e),r._container&&r._container.remove(),delete e._context,e}function Z8e(e){var r=e._fullLayout,t=e.getBoundingClientRect();if(!ir.equalDomRects(t,r._lastBBox)){var a=r._invTransform=ir.inverseTransformMatrix(ir.getFullTransformMatrix(e));r._invScaleX=Math.sqrt(a[0][0]*a[0][0]+a[0][1]*a[0][1]+a[0][2]*a[0][2]),r._invScaleY=Math.sqrt(a[1][0]*a[1][0]+a[1][1]*a[1][1]+a[1][2]*a[1][2]),r._lastBBox=t}}function $8e(e){var r=Uy.select(e),t=e._fullLayout;if(t._calcInverseTransform=Z8e,t._calcInverseTransform(e),t._container=r.selectAll(".plot-container").data([0]),t._container.enter().insert("div",":first-child").classed("plot-container",!0).classed("plotly",!0).style({width:"100%",height:"100%"}),t._paperdiv=t._container.selectAll(".svg-container").data([0]),t._paperdiv.enter().append("div").classed("user-select-none",!0).classed("svg-container",!0).style("position","relative"),t._glcontainer=t._paperdiv.selectAll(".gl-container").data([{}]),t._glcontainer.enter().append("div").classed("gl-container",!0),t._paperdiv.selectAll(".main-svg").remove(),t._paperdiv.select(".modebar-container").remove(),t._paper=t._paperdiv.insert("svg",":first-child").classed("main-svg",!0),t._toppaper=t._paperdiv.append("svg").classed("main-svg",!0),t._modebardiv=t._paperdiv.append("div"),delete t._modeBar,t._hoverpaper=t._paperdiv.append("svg").classed("main-svg",!0),!t._uid){var a={};Uy.selectAll("defs").each(function(){this.id&&(a[this.id.split("-")[1]]=1)}),t._uid=ir.randstr(a)}t._paperdiv.selectAll(".main-svg").attr(A8e.svgAttrs),t._defs=t._paper.append("defs").attr("id","defs-"+t._uid),t._clips=t._defs.append("g").classed("clips",!0),t._topdefs=t._toppaper.append("defs").attr("id","topdefs-"+t._uid),t._topclips=t._topdefs.append("g").classed("clips",!0),t._bgLayer=t._paper.append("g").classed("bglayer",!0),t._draggers=t._paper.append("g").classed("draglayer",!0);var n=t._paper.append("g").classed("layer-below",!0);t._imageLowerLayer=n.append("g").classed("imagelayer",!0),t._shapeLowerLayer=n.append("g").classed("shapelayer",!0),t._cartesianlayer=t._paper.append("g").classed("cartesianlayer",!0),t._polarlayer=t._paper.append("g").classed("polarlayer",!0),t._smithlayer=t._paper.append("g").classed("smithlayer",!0),t._ternarylayer=t._paper.append("g").classed("ternarylayer",!0),t._geolayer=t._paper.append("g").classed("geolayer",!0),t._funnelarealayer=t._paper.append("g").classed("funnelarealayer",!0),t._pielayer=t._paper.append("g").classed("pielayer",!0),t._iciclelayer=t._paper.append("g").classed("iciclelayer",!0),t._treemaplayer=t._paper.append("g").classed("treemaplayer",!0),t._sunburstlayer=t._paper.append("g").classed("sunburstlayer",!0),t._indicatorlayer=t._toppaper.append("g").classed("indicatorlayer",!0),t._glimages=t._paper.append("g").classed("glimages",!0);var i=t._toppaper.append("g").classed("layer-above",!0);t._imageUpperLayer=i.append("g").classed("imagelayer",!0),t._shapeUpperLayer=i.append("g").classed("shapelayer",!0),t._selectionLayer=t._toppaper.append("g").classed("selectionlayer",!0),t._infolayer=t._toppaper.append("g").classed("infolayer",!0),t._menulayer=t._toppaper.append("g").classed("menulayer",!0),t._zoomlayer=t._toppaper.append("g").classed("zoomlayer",!0),t._hoverlayer=t._hoverpaper.append("g").classed("hoverlayer",!0),t._modebardiv.classed("modebar-container",!0).style("position","absolute").style("top","0px").style("right","0px"),e.emit("plotly_framework")}$r.animate=V8e;$r.addFrames=j8e;$r.deleteFrames=W8e;$r.addTraces=hU;$r.deleteTraces=dU;$r.extendTraces=cU;$r.moveTraces=ww;$r.prependTraces=vU;$r.newPlot=D8e;$r._doPlot=k8e;$r.purge=X8e;$r.react=U8e;$r.redraw=C8e;$r.relayout=Cd;$r.restyle=Vy;$r.setPlotConfig=q8e;$r.update=Wy;$r._guiRelayout=Aw(Cd);$r._guiRestyle=Aw(Vy);$r._guiUpdate=Aw(Wy);$r._storeDirectGUIEdit=F8e});var Kl=z(ro=>{"use strict";var J8e=Tr();ro.getDelay=function(e){return e._has&&(e._has("gl3d")||e._has("map"))?500:0};ro.getRedrawFunc=function(e){return function(){J8e.getComponentMethod("colorbar","draw")(e)}};ro.encodeSVG=function(e){return"data:image/svg+xml,"+encodeURIComponent(e)};ro.encodeJSON=function(e){return"data:application/json,"+encodeURIComponent(e)};var _U=window.URL||window.webkitURL;ro.createObjectURL=function(e){return _U.createObjectURL(e)};ro.revokeObjectURL=function(e){return _U.revokeObjectURL(e)};ro.createBlob=function(e,r){if(r==="svg")return new window.Blob([e],{type:"image/svg+xml;charset=utf-8"});if(r==="full-json")return new window.Blob([e],{type:"application/json;charset=utf-8"});var t=K8e(window.atob(e));return new window.Blob([t],{type:"image/"+r})};ro.octetStream=function(e){document.location.href="data:application/octet-stream"+e};ro.getPlotTitle=function(e){var a,n,i,o;var r=e._fullLayout;if(r){var t=(a=r.title)==null?void 0:a.text;return t===((n=r._dfltTitle)==null?void 0:n.plot)?void 0:t}return(o=(i=e.layout)==null?void 0:i.title)==null?void 0:o.text};ro.getPlotSubtitle=function(e){var a,n,i,o,l,s;var r=e._fullLayout;if(r){var t=(n=(a=r.title)==null?void 0:a.subtitle)==null?void 0:n.text;return t===((i=r._dfltTitle)==null?void 0:i.subtitle)?void 0:t}return(s=(l=(o=e.layout)==null?void 0:o.title)==null?void 0:l.subtitle)==null?void 0:s.text};function K8e(e){for(var r=e.length,t=new ArrayBuffer(r),a=new Uint8Array(t),n=0;n{"use strict";var kw=Pr(),L$e=ke(),Q8e=Jr(),e9e=qr(),C$e=(Vl(),ze(Yl)),Mw=/"/g,xf="TOBESTRIPPED",r9e=new RegExp(`("${xf})|(${xf}")|("${xf})|(${xf}")`,"g"),t9e=["&","&","&",""",""",""","'","'","'"],a9e=["<","<","<"],n9e=[">",">",">"];function i9e(e){let r=kw.select("body").append("div").style({display:"none"}).html(""),t=e.replace(/(&[^;]*;)/gi,a=>{let n=a.toLowerCase();return t9e.includes(n)?a:a9e.includes(n)?"<":n9e.includes(n)?">":a.includes("<")||a.includes(">")?"":r.html(a).text()});return r.remove(),t}function o9e(e){return e.replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&")}wU.exports=function(r,t,a){var n=r._fullLayout,i=n._paper,o=n._toppaper,l=n.width,s=n.height,u;i.insert("rect",":first-child").call(Q8e.setRect,0,0,l,s).call(e9e.fill,n.paper_bgcolor);var f=n._basePlotModules||[];for(u=0;u{"use strict";var l9e=ke(),s9e=Wu().EventEmitter,Ed=Kl();function u9e(e){var r=e.emitter||new s9e,t=new Promise(function(a,n){var i=window.Image,o=e.svg,l=e.format||"png",s=e.canvas,u=e.scale||1,f=e.width||300,c=e.height||150,v=u*f,d=u*c,p=s.getContext("2d",{willReadFrequently:!0}),y=new i,m,b;l==="svg"||l9e.isSafari()?b=Ed.encodeSVG(o):(m=Ed.createBlob(o,"svg"),b=Ed.createObjectURL(m)),s.width=v,s.height=d,y.onload=function(){var A;switch(m=null,Ed.revokeObjectURL(b),l!=="svg"&&p.drawImage(y,0,0,v,d),l){case"jpeg":A=s.toDataURL("image/jpeg");break;case"png":A=s.toDataURL("image/png");break;case"webp":A=s.toDataURL("image/webp");break;case"svg":A=b;break;default:var w="Image format is not jpeg, png, svg or webp.";if(n(new Error(w)),!e.promise)return r.emit("error",w)}a(A),e.promise||r.emit("success",A)},y.onerror=function(A){if(m=null,Ed.revokeObjectURL(b),n(A),!e.promise)return r.emit("error",A)},y.src=b});return e.promise?t:r}AU.exports=u9e});var qw=z((P$e,kU)=>{"use strict";var TU=Br(),MU=Tw(),f9e=ma(),_l=ke(),Pd=Kl(),c9e=Jy(),v9e=Ky(),h9e=Jv().version,Sw=(H_(),ze(O_)).default;function d9e(e,r){r=r||{};var t,a,n,i;_l.isPlainObject(e)?(t=e.data||[],a=e.layout||{},n=e.config||{},i={}):(e=_l.getGraphDiv(e),t=_l.extendDeep([],e.data),a=_l.extendDeep({},e.layout),n=e._context,i=e._fullLayout||{});function o(k){return!(k in r)||_l.validate(r[k],Sw[k])}if(!o("width")&&r.width!==null||!o("height")&&r.height!==null)throw new Error("Height and width should be pixel values.");if(!o("format"))throw new Error("Export format is not "+_l.join2(Sw.format.values,", "," or ")+".");var l={};function s(k,T){return _l.coerce(r,l,Sw,k,T)}var u=s("format"),f=s("width"),c=s("height"),v=s("scale"),d=s("setBackground"),p=s("imageDataOnly"),y=document.createElement("div");y.style.position="absolute",y.style.left="-5000px",document.body.appendChild(y);var m=_l.extendFlat({},a);f?m.width=f:r.width===null&&TU(i.width)&&(m.width=i.width),c?m.height=c:r.height===null&&TU(i.height)&&(m.height=i.height);var b=_l.extendFlat({},n,{_exportedPlot:!0,staticPlot:!0,setBackground:d}),A=Pd.getRedrawFunc(y);function w(){return new Promise(function(k){setTimeout(k,Pd.getDelay(y._fullLayout))})}function x(){return new Promise(function(k,T){var q=c9e(y,u,v),C=y._fullLayout.width,E=y._fullLayout.height;function P(){MU.purge(y),document.body.removeChild(y)}if(u==="full-json"){var R=f9e.graphJson(y,!1,"object",!0,!0);return R.version=h9e,R=JSON.stringify(R),P(),k(p?R:Pd.encodeJSON(R))}if(P(),u==="svg")return k(p?q:Pd.encodeSVG(q));var N=document.createElement("canvas");N.id=_l.randstr(),v9e({format:u,width:C,height:E,scale:v,canvas:N,svg:q,promise:!0}).then(k).catch(T)})}function _(k){return p?k.replace(Pd.IMAGE_URL_PREFIX,""):k}return new Promise(function(k,T){MU.newPlot(y,t,m,b).then(A).then(w).then(x).then(function(q){k(_(q))}).catch(function(q){T(q)})})}kU.exports=d9e});var LU=z((R$e,qU)=>{"use strict";var to=ke(),p9e=ma(),m9e=Xc(),y9e=xs().dfltConfig,Io=to.isPlainObject,wf=Array.isArray,Lw=to.isArrayOrTypedArray;qU.exports=function(r,t){r===void 0&&(r=[]),t===void 0&&(t={});var a=m9e.get(),n=[],i={_context:to.extendFlat({},y9e)},o,l;wf(r)?(i.data=to.extendDeep([],r),o=r):(i.data=[],o=[],n.push(Ga("array","data"))),Io(t)?(i.layout=to.extendDeep({},t),l=t):(i.layout={},l={},arguments.length>1&&n.push(Ga("object","layout"))),p9e.supplyDefaults(i);for(var s=i._fullData,u=o.length,f=0;fc.length&&a.push(Ga("unused",n,u.concat(c.length)));var b=c.length,A=Array.isArray(m);A&&(b=Math.min(b,m.length));var w,x,_,k,T;if(v.dimensions===2)for(x=0;xc[x].length&&a.push(Ga("unused",n,u.concat(x,c[x].length)));var q=c[x].length;for(w=0;w<(A?Math.min(q,m[x].length):q);w++)_=A?m[x][w]:m,k=f[x][w],T=c[x][w],to.validate(k,_)?T!==k&&T!==+k&&a.push(Ga("dynamic",n,u.concat(x,w),k,T)):a.push(Ga("value",n,u.concat(x,w),k))}else a.push(Ga("array",n,u.concat(x),f[x]));else for(x=0;x{"use strict";var T9e=ke(),eg=Kl();function M9e(e,r,t){var a=document.createElement("a"),n="download"in a,i=new Promise(function(o,l){var s,u;if(n)return s=eg.createBlob(e,t),u=eg.createObjectURL(s),a.href=u,a.download=r,document.body.appendChild(a),a.click(),document.body.removeChild(a),eg.revokeObjectURL(u),s=null,o(r);if(T9e.isSafari()){var f=t==="svg"?",":";base64,";return eg.octetStream(f+encodeURIComponent(e)),o(r)}l(new Error("download error"))});return i}CU.exports=M9e});var Cw=z((z$e,FU)=>{"use strict";var rg=ke(),EU=Fa(),k9e=qw(),S9e=DU(),PU=Kl(),RU=40;function q9e(e,r){var t;return rg.isPlainObject(e)||(t=rg.getGraphDiv(e)),r=r||{},r.format=r.format||"png",r.width=r.width||null,r.height=r.height||null,r.imageDataOnly=!0,new Promise(function(a,n){t&&t._snapshotInProgress&&n(new Error("Image capture already in progress.")),t&&(t._snapshotInProgress=!0);var i=k9e(e,r),o=r.filename||e.fn;if(!o){let s=PU.getPlotTitle(e);if(s&&!EU.matchTex(s))o=rg.slugify(s,RU);else{let u=PU.getPlotSubtitle(e);u&&!EU.matchTex(u)&&(o=rg.slugify(u,RU))}}var l=o||"plot-image";l+="."+r.format.replace("-","."),i.then(function(s){return t&&(t._snapshotInProgress=!1),S9e(s,l,r.format)}).then(function(s){a(s)}).catch(function(s){t&&(t._snapshotInProgress=!1),n(s)})})}FU.exports=q9e});var OU=z(Dw=>{"use strict";var ni=ke(),ii=ni.isPlainObject,zU=Xc(),NU=ma(),L9e=On(),IU=Ct(),BU=xs().dfltConfig;Dw.makeTemplate=function(e){e=ni.isPlainObject(e)?e:ni.getGraphDiv(e),e=ni.extendDeep({_context:BU},{data:e.data,layout:e.layout}),NU.supplyDefaults(e);var r=e.data||[],t=e.layout||{};t._basePlotModules=e._fullLayout._basePlotModules,t._modules=e._fullLayout._modules;var a={data:{},layout:{}};r.forEach(function(d){var p={};Rd(d,p,D9e.bind(null,d));var y=ni.coerce(d,{},L9e,"type"),m=a.data[y];m||(m=a.data[y]=[]),m.push(p)}),Rd(t,a.layout,C9e.bind(null,t)),delete a.layout.template;var n=t.template;if(ii(n)){var i=n.layout,o,l,s,u,f,c;ii(i)&&tg(i,a.layout);var v=n.data;if(ii(v)){for(l in a.data)if(s=v[l],Array.isArray(s)){for(f=a.data[l],c=f.length,u=s.length,o=0;ob?o.push({code:"unused",traceType:d,templateCount:m,dataCount:b}):b>m&&o.push({code:"reused",traceType:d,templateCount:m,dataCount:b})}}function A(w,x){for(var _ in w)if(_.charAt(0)!=="_"){var k=w[_],T=ao(w,_,x);ii(k)?(Array.isArray(w)&&k._template===!1&&k.templateitemname&&o.push({code:"missing",path:T,templateitemname:k.templateitemname}),A(k,T)):Array.isArray(k)&&E9e(k)&&A(k,T)}}if(A({data:s,layout:l},""),o.length)return o.map(P9e)};function E9e(e){for(var r=0;r{"use strict";var Na=Tw();Gt._doPlot=Na._doPlot;Gt.newPlot=Na.newPlot;Gt.restyle=Na.restyle;Gt.relayout=Na.relayout;Gt.redraw=Na.redraw;Gt.update=Na.update;Gt._guiRestyle=Na._guiRestyle;Gt._guiRelayout=Na._guiRelayout;Gt._guiUpdate=Na._guiUpdate;Gt._storeDirectGUIEdit=Na._storeDirectGUIEdit;Gt.react=Na.react;Gt.extendTraces=Na.extendTraces;Gt.prependTraces=Na.prependTraces;Gt.addTraces=Na.addTraces;Gt.deleteTraces=Na.deleteTraces;Gt.moveTraces=Na.moveTraces;Gt.purge=Na.purge;Gt.addFrames=Na.addFrames;Gt.deleteFrames=Na.deleteFrames;Gt.animate=Na.animate;Gt.setPlotConfig=Na.setPlotConfig;var R9e=wh().getGraphDiv,F9e=hy().eraseActiveShape;Gt.deleteActiveShape=function(e){return F9e(R9e(e))};Gt.toImage=qw();Gt.validate=LU();Gt.downloadImage=Cw();var HU=OU();Gt.makeTemplate=HU.makeTemplate;Gt.validateTemplate=HU.validateTemplate});var Pw=z((B$e,GU)=>{"use strict";var Ew=ke(),z9e=Tr();GU.exports=function(r,t,a,n){var i=n("x"),o=n("y"),l,s=z9e.getComponentMethod("calendars","handleTraceDefaults");if(s(r,t,["x","y"],a),i){var u=Ew.minRowLength(i);o?l=Math.min(u,Ew.minRowLength(o)):(l=u,n("y0"),n("dy"))}else{if(!o)return 0;l=Ew.minRowLength(o),n("x0"),n("dx")}return t._length=l,l}});var T0=z((O$e,jU)=>{"use strict";var YU=ke().dateTick0,N9e=(jt(),ze(Zt)),I9e=N9e.ONEWEEK;function VU(e,r){return e%I9e===0?YU(r,1):YU(r,0)}jU.exports=function(r,t,a,n,i){if(i||(i={x:!0,y:!0}),i.x){var o=n("xperiod");o&&(n("xperiod0",VU(o,t.xcalendar)),n("xperiodalignment"))}if(i.y){var l=n("yperiod");l&&(n("yperiod0",VU(l,t.ycalendar)),n("yperiodalignment"))}}});var ZU=z((H$e,XU)=>{"use strict";var WU=["orientation","groupnorm","stackgaps"];XU.exports=function(r,t,a,n){var i=a._scatterStackOpts,o=n("stackgroup");if(o){var l=t.xaxis+t.yaxis,s=i[l];s||(s=i[l]={});var u=s[o],f=!1;u?u.traces.push(t):(u=s[o]={traceIndices:[],traces:[t]},f=!0);for(var c={orientation:t.x&&!t.y?"h":"v"},v=0;v{"use strict";var $U=qr(),JU=yi().hasColorscale,KU=jl(),B9e=ri();QU.exports=function(r,t,a,n,i,o={}){var l=B9e.isBubble(r),s=(r.line||{}).color,u;if(s&&(a=s),i("marker.symbol"),i("marker.opacity",l?.7:1),i("marker.size"),o.noAngle||(i("marker.angle"),o.noAngleRef||i("marker.angleref"),o.noStandOff||i("marker.standoff")),i("marker.color",a),JU(r,"marker")&&KU(r,t,n,i,{prefix:"marker.",cLetter:"c"}),o.noSelect||(i("selected.marker.color"),i("unselected.marker.color"),i("selected.marker.size"),i("unselected.marker.size")),o.noLine||(s&&!Array.isArray(s)&&t.marker.color!==s?u=s:l?u=$U.background:u=$U.defaultLine,i("marker.line.color",u),JU(r,"marker.line")&&KU(r,t,n,i,{prefix:"marker.line.",cLetter:"c"}),i("marker.line.width",l?1:0),o.noLineDash||i("marker.line.dash")),l&&(i("marker.sizeref"),i("marker.sizemin"),i("marker.sizemode")),o.gradient){var f=i("marker.gradient.type");f!=="none"&&i("marker.gradient.color")}}});var Fw=z((G$e,eG)=>{"use strict";var O9e=ke().isArrayOrTypedArray,H9e=yi().hasColorscale,U9e=jl();eG.exports=function(r,t,a,n,i,o){o||(o={});var l=(r.marker||{}).color;if(l&&l._inputArray&&(l=l._inputArray),i("line.color",a),H9e(r,"line"))U9e(r,t,n,i,{prefix:"line.",cLetter:"c"});else{var s=(O9e(l)?!1:l)||a;i("line.color",s)}i("line.width"),o.noDash||i("line.dash"),o.backoff&&i("line.backoff")}});var zw=z((Y$e,rG)=>{"use strict";rG.exports=function(r,t,a){var n=a("line.shape");n==="spline"&&a("line.smoothing")}});var Nw=z((V$e,tG)=>{"use strict";var G9e=ke();tG.exports=function(e,r,t,a,n){n=n||{},a("textposition"),G9e.coerceFont(a,"textfont",n.font||t.font,n),n.noSelect||(a("selected.textfont.color"),a("unselected.textfont.color"))}});var Iw=z((j$e,nG)=>{"use strict";var ng=qr(),aG=ke().isArrayOrTypedArray;function Y9e(e){for(var r=ng.interpolate(e[0][1],e[1][1],.5),t=2;t{"use strict";var iG=ke(),V9e=Tr(),j9e=Ji(),W9e=(wd(),ze(_d)),M0=ri(),X9e=Pw(),Z9e=T0(),$9e=ZU(),J9e=Rw(),K9e=Fw(),oG=zw(),Q9e=Nw(),eAe=Iw(),rAe=ke().coercePattern;lG.exports=function(r,t,a,n){function i(d,p){return iG.coerce(r,t,j9e,d,p)}var o=X9e(r,t,n,i);if(o||(t.visible=!1),!!t.visible){Z9e(r,t,n,i),i("xhoverformat"),i("yhoverformat"),i("zorder");var l=$9e(r,t,n,i);n.scattermode==="group"&&t.orientation===void 0&&i("orientation","v");var s=!l&&o{"use strict";var tAe=bf().getAxisGroup;uG.exports=function(r,t,a,n,i){var o=t.orientation,l=t[{v:"x",h:"y"}[o]+"axis"],s=tAe(a,l)+o,u=a._alignmentOpts||{},f=n("alignmentgroup"),c=u[s];c||(c=u[s]={});var v=c[f];v?v.traces.push(t):v=c[f]={traces:[t],alignmentIndex:Object.keys(c).length,offsetGroups:{}};var d=n("offsetgroup")||"",p=v.offsetGroups,y=p[d];t._offsetIndex=0,(i!=="group"||d)&&(y||(y=p[d]={offsetIndex:Object.keys(p).length}),t._offsetIndex=y.offsetIndex)}});var cG=z((Z$e,fG)=>{"use strict";var aAe=ke(),nAe=Fd(),iAe=Ji();fG.exports=function(r,t){var a,n,i,o=t.scattermode;function l(v){return aAe.coerce(n._input,n,iAe,v)}if(t.scattermode==="group")for(i=0;i=0;f--){var c=r[f];if(c.type==="scatter"&&c.xaxis===s.xaxis&&c.yaxis===s.yaxis){c.opacity=void 0;break}}}}}});var hG=z(($$e,vG)=>{"use strict";var oAe=ke(),lAe=Xp();vG.exports=function(e,r){function t(n,i){return oAe.coerce(e,r,lAe,n,i)}var a=r.barmode==="group";r.scattermode==="group"&&t("scattergap",a?r.bargap:.2)}});var k0=z((J$e,pG)=>{"use strict";var sAe=Br(),dG=ke(),uAe=dG.dateTime2ms,ig=dG.incrementMonth,fAe=(jt(),ze(Zt)),cAe=fAe.ONEAVGMONTH;pG.exports=function(r,t,a,n){if(t.type!=="date")return{vals:n};var i=r[a+"periodalignment"];if(!i)return{vals:n};var o=r[a+"period"],l;if(sAe(o)){if(o=+o,o<=0)return{vals:n}}else if(typeof o=="string"&&o.charAt(0)==="M"){var s=+o.substring(1);if(s>0&&Math.round(s)===s)l=s;else return{vals:n}}for(var u=t.calendar,f=i==="start",c=i==="end",v=r[a+"period0"],d=uAe(v,u)||0,p=[],y=[],m=[],b=n.length,A=0;Aw;)k=ig(k,-l,u);for(;k<=w;)k=ig(k,l,u);_=ig(k,-l,u)}else{for(x=Math.round((w-d)/o),k=d+x*o;k>w;)k-=o;for(;k<=w;)k+=o;_=k-o}p[A]=f?_:c?k:(_+k)/2,y[A]=_,m[A]=k}return{vals:p,starts:y,ends:m}}});var Hw=z((K$e,yG)=>{"use strict";var Bw=yi().hasColorscale,Ow=Kc(),mG=ri();yG.exports=function(r,t){mG.hasLines(t)&&Bw(t,"line")&&Ow(r,t,{vals:t.line.color,containerStr:"line",cLetter:"c"}),mG.hasMarkers(t)&&(Bw(t,"marker")&&Ow(r,t,{vals:t.marker.color,containerStr:"marker",cLetter:"c"}),Bw(t,"marker.line")&&Ow(r,t,{vals:t.marker.line.color,containerStr:"marker.line",cLetter:"c"}))}});var og=z((Q$e,gG)=>{"use strict";var ra=ke();gG.exports=function(r,t){for(var a=0;a{"use strict";var bG=ke();xG.exports=function(r,t){bG.isArrayOrTypedArray(t.selectedpoints)&&bG.tagSelected(r,t)}});var sg=z((rJe,SG)=>{"use strict";var _G=Br(),Gw=ke(),zd=Yr(),wG=k0(),Uw=(jt(),ze(Zt)).BADNUM,Yw=ri(),vAe=Hw(),hAe=og(),dAe=lg();function pAe(e,r){var t=e._fullLayout,a=r._xA=zd.getFromId(e,r.xaxis||"x","x"),n=r._yA=zd.getFromId(e,r.yaxis||"y","y"),i=a.makeCalcdata(r,"x"),o=n.makeCalcdata(r,"y"),l=wG(r,a,"x",i),s=wG(r,n,"y",o),u=l.vals,f=s.vals,c=r._length,v=new Array(c),d=r.ids,p=Vw(r,t,a,n),y=!1,m,b,A,w,x,_;MG(t,r);var k="x",T="y",q;if(p)Gw.pushUnique(p.traceIndices,r.index),m=p.orientation==="v",m?(T="s",q="x"):(k="s",q="y"),x=p.stackgaps==="interpolate";else{var C=TG(r,c);AG(e,r,a,n,u,f,C)}var E=!!r.xperiodalignment,P=!!r.yperiodalignment;for(b=0;bb&&v[w].gap;)w--;for(_=v[w].s,A=v.length-1;A>w;A--)v[A].s=_;for(;b{"use strict";qG.exports=ug;var mAe=ke().distinctVals;function ug(e,r){this.traces=e,this.sepNegVal=r.sepNegVal,this.overlapNoMerge=r.overlapNoMerge;for(var t=1/0,a=r.posAxis._id.charAt(0),n=[],i=0;iyAe,eventDataKeys:()=>gAe});var yAe,gAe,Id=St(()=>{"use strict";yAe=3,gAe=["value","label"]});var cg=z((aJe,PG)=>{"use strict";var no=Br(),{isArrayOrTypedArray:Ql}=ke(),{BADNUM:S0}=(jt(),ze(Zt)),bAe=Tr(),Bd=Yr(),{getAxisGroup:xAe}=bf(),fg=LG(),{TEXTPAD:_Ae}=(Id(),ze(Nd)),{LINE_SPACING:wAe}=(on(),ze(nn)),{BR_TAG_ALL:AAe}=Fa();function TAe(e,r){for(var t=r.xaxis,a=r.yaxis,n=e._fullLayout,i=e._fullData,o=e.calcdata,l=[],s=[],u=0;us+o||!no(l))}for(var f=0;fa(i))):a(e.text);let n=e.outsidetextfont.size*wAe*t+_Ae;return{ppadplus:r.some(i=>i.s<0)?n:0,ppadminus:r.some(i=>i.s>=0)?n:0}}return{ppadplus:void 0,ppadminus:void 0}}function RAe(e,r,t,a){for(var n=q0(a),i=0;i{"use strict";var RG=sg(),FG=cg().setGroupPositions;function zAe(e,r){for(var t=r.xaxis,a=r.yaxis,n=e._fullLayout,i=e._fullData,o=e.calcdata,l=[],s=[],u=0;uC[f]&&f{"use strict";var IAe=Jr(),HG=(jt(),ze(Zt)),Od=HG.BADNUM,UG=HG.LOG_CLIP,IG=UG+.5,BG=UG-.5,vg=ke(),BAe=vg.segmentsIntersect,OG=vg.constrain,Kw=(wd(),ze(_d));GG.exports=function(r,t){var a=t.trace||{},n=t.xaxis,i=t.yaxis,o=n.type==="log",l=i.type==="log",s=n._length,u=i._length,f=t.backoff,c=a.marker,v=t.connectGaps,d=t.baseTolerance,p=t.shape,y=p==="linear",m=a.fill&&a.fill!=="none",b=[],A=Kw.minTolerance,w=r.length,x=new Array(w),_=0,k,T,q,C,E,P,R,N,I,O,U,Y,G,V,W,j;function J(Ee){var Ke=r[Ee];if(!Ke)return!1;var Be=t.linearized?n.l2p(Ke.x):n.c2p(Ke.x),mr=t.linearized?i.l2p(Ke.y):i.c2p(Ke.y);if(Be===Od){if(o&&(Be=n.c2p(Ke.x,!0)),Be===Od)return!1;l&&mr===Od&&(Be*=Math.abs(n._m*u*(n._m>0?IG:BG)/(i._m*s*(i._m>0?IG:BG)))),Be*=1e3}if(mr===Od){if(l&&(mr=i.c2p(Ke.y,!0)),mr===Od)return!1;mr*=1e3}return[Be,mr]}function te(Ee,Ke,Be,mr){var yr=Be-Ee,ur=mr-Ke,gr=.5-Ee,ne=.5-Ke,ge=yr*yr+ur*ur,Ne=yr*gr+ur*ne;if(Ne>0&&Ne1||Math.abs(gr.y-Be[0][1])>1)&&(gr=[gr.x,gr.y],mr&&fe(gr,Ee)ce||Ee[1]be)return[OG(Ee[0],ue,ce),OG(Ee[1],oe,be)]}function Je(Ee,Ke){if(Ee[0]===Ke[0]&&(Ee[0]===ue||Ee[0]===ce)||Ee[1]===Ke[1]&&(Ee[1]===oe||Ee[1]===be))return!0}function Xe(Ee,Ke){var Be=[],mr=Ze(Ee),yr=Ze(Ke);return mr&&yr&&Je(mr,yr)||(mr&&Be.push(mr),yr&&Be.push(yr)),Be}function Se(Ee,Ke,Be){return function(mr,yr){var ur=Ze(mr),gr=Ze(yr),ne=[];if(ur&&gr&&Je(ur,gr))return ne;ur&&ne.push(ur),gr&&ne.push(gr);var ge=2*vg.constrain((mr[Ee]+yr[Ee])/2,Ke,Be)-((ur||mr)[Ee]+(gr||yr)[Ee]);if(ge){var Ne;ur&&gr?Ne=ge>0==ur[Ee]>gr[Ee]?ur:gr:Ne=ur||gr,Ne[Ee]+=ge}return ne}}var Fe;p==="linear"||p==="spline"?Fe=qe:p==="hv"||p==="vh"?Fe=Xe:p==="hvh"?Fe=Se(0,ue,ce):p==="vhv"&&(Fe=Se(1,oe,be));function er(Ee,Ke){var Be=Ke[0]-Ee[0],mr=(Ke[1]-Ee[1])/Be,yr=(Ee[1]*Ke[0]-Ke[1]*Ee[0])/Be;return yr>0?[mr>0?ue:ce,be]:[mr>0?ce:ue,oe]}function re(Ee){var Ke=Ee[0],Be=Ee[1],mr=Ke===x[_-1][0],yr=Be===x[_-1][1];if(!(mr&&yr))if(_>1){var ur=Ke===x[_-2][0],gr=Be===x[_-2][1];mr&&(Ke===ue||Ke===ce)&&ur?gr?_--:x[_-1]=Ee:yr&&(Be===oe||Be===be)&&gr?ur?_--:x[_-1]=Ee:x[_++]=Ee}else x[_++]=Ee}function xe(Ee){x[_-1][0]!==Ee[0]&&x[_-1][1]!==Ee[1]&&re([Me,Le]),re(Ee),De=null,Me=Le=0}var Ye=vg.isArrayOrTypedArray(c);function vr(Ee){if(Ee&&f&&(Ee.i=k,Ee.d=r,Ee.trace=a,Ee.marker=Ye?c[Ee.i]:c,Ee.backoff=f),ae=Ee[0]/s,se=Ee[1]/u,ye=Ee[0]ce?ce:0,Ce=Ee[1]be?be:0,ye||Ce){if(!_)x[_++]=[ye||Ee[0],Ce||Ee[1]];else if(De){var Ke=Fe(De,Ee);Ke.length>1&&(xe(Ke[0]),x[_++]=Ke[1])}else Ie=Fe(x[_-1],Ee)[0],x[_++]=Ie;var Be=x[_-1];ye&&Ce&&(Be[0]!==ye||Be[1]!==Ce)?(De&&(Me!==ye&&Le!==Ce?re(Me&&Le?er(De,Ee):[Me||ye,Le||Ce]):Me&&Le&&re([Me,Le])),re([ye,Ce])):Me-ye&&Le-Ce&&re([ye||Me,Ce||Le]),De=Ee,Me=ye,Le=Ce}else De&&xe(Fe(De,Ee)[0]),x[_++]=Ee}for(k=0;k$(P,Pe))break;q=P,G=I[0]*N[0]+I[1]*N[1],G>U?(U=G,C=P,R=!1):G=r.length||!P)break;vr(P),T=P}}De&&re([Me||De[0],Le||De[1]]),b.push(x.slice(0,_))}var me=p.slice(p.length-1);if(f&&me!=="h"&&me!=="v"){for(var Te=!1,Ue=-1,$e=[],Oe=0;Oe{"use strict";var YG={tonextx:1,tonexty:1,tonext:1};VG.exports=function(r,t,a){var n,i,o,l,s,u={},f=!1,c=-1,v=0,d=-1;for(i=0;i=0?s=d:(s=d=v,v++),s{"use strict";var Bo=Pr(),OAe=Tr(),Hd=ke(),L0=Hd.ensureSingle,XG=Hd.identity,sa=Jr(),C0=ri(),HAe=Qw(),UAe=jG(),hg=X7().tester;ZG.exports=function(r,t,a,n,i,o){var l,s,u=!i,f=!!i&&i.duration>0,c=UAe(r,t,a);if(l=n.selectAll("g.trace").data(c,function(d){return d[0].trace.uid}),l.enter().append("g").attr("class",function(d){return"trace scatter trace"+d[0].trace.uid}).style("stroke-miterlimit",2),l.order(),GAe(r,l,t),f){o&&(s=o());var v=Bo.transition().duration(i.duration).ease(i.easing).each("end",function(){s&&s()}).each("interrupt",function(){s&&s()});v.each(function(){n.selectAll("g.trace").each(function(d,p){WG(r,p,t,d,c,this,i)})})}else l.each(function(d,p){WG(r,p,t,d,c,this,i)});u&&l.exit().remove(),n.selectAll("path:not([d])").remove()};function GAe(e,r,t){r.each(function(a){var n=L0(Bo.select(this),"g","fills");sa.setClipUrl(n,t.layerClipId,e);var i=a[0].trace;i._ownFill=null,i._nextFill=null;var o=[];i._ownfill&&o.push("_ownFill"),i._nexttrace&&o.push("_nextFill");var l=n.selectAll("g").data(o,XG);l.enter().append("g"),l.exit().remove(),l.order().each(function(s){i[s]=L0(Bo.select(this),"path","js-fill")})})}function WG(e,r,t,a,n,i,o){var l=e._context.staticPlot,s;YAe(e,r,t,a,n);var u=!!o&&o.duration>0;function f(Se){return u?Se.transition():Se}var c=t.xaxis,v=t.yaxis,d=a[0].trace,p=d.line,y=Bo.select(i),m=L0(y,"g","errorbars"),b=L0(y,"g","lines"),A=L0(y,"g","points"),w=L0(y,"g","text");if(OAe.getComponentMethod("errorbars","plot")(e,m,t,o),d.visible!==!0)return;f(y).style("opacity",d.opacity);var x,_,k=d.fill.charAt(d.fill.length-1);k!=="x"&&k!=="y"&&(k="");var T,q;k==="y"?(T=1,q=v.c2p(0,!0)):k==="x"&&(T=0,q=c.c2p(0,!0)),a[0][t.isRangePlot?"nodeRangePlot3":"node3"]=y;var C="",E=[],P=d._prevtrace,R=null,N=null;P&&(C=P._prevRevpath||"",_=P._nextFill,E=P._ownPolygons,R=P._fillsegments,N=P._fillElement);var I,O,U="",Y="",G,V,W,j,J,te,ae=[];d._polygons=[];var se=[],$=[],fe=Hd.noop;if(x=d._ownFill,C0.hasLines(d)||d.fill!=="none"){_&&_.datum(a),["hv","vh","hvh","vhv"].indexOf(p.shape)!==-1?(G=sa.steps(p.shape),V=sa.steps(p.shape.split("").reverse().join(""))):p.shape==="spline"?G=V=function(Se){var Fe=Se[Se.length-1];return Se.length>1&&Se[0][0]===Fe[0]&&Se[0][1]===Fe[1]?sa.smoothclosed(Se.slice(1),p.smoothing):sa.smoothopen(Se,p.smoothing)}:G=V=function(Se){return"M"+Se.join("L")},W=function(Se){return V(Se.reverse())},$=HAe(a,{xaxis:c,yaxis:v,trace:d,connectGaps:d.connectgaps,baseTolerance:Math.max(p.width||1,3)/4,shape:p.shape,backoff:p.backoff,simplify:p.simplify,fill:d.fill}),se=new Array($.length);var ie=0;for(s=0;s<$.length;s++){var ue,ce=$[s];!ue||!k?(ue=ce.slice(),se[ie]=ue,ie++):ue.push.apply(ue,ce)}d._fillElement=null,d._fillExclusionElement=N,d._fillsegments=se.slice(0,ie),se=d._fillsegments,$.length&&(j=$[0][0].slice(),J=$[$.length-1],te=J[J.length-1].slice()),fe=function(Se){return function(Fe){if(I=G(Fe),O=W(Fe),U?k?(U+="L"+I.slice(1),Y=O+("L"+Y.slice(1))):(U+="Z"+I,Y=O+"Z"+Y):(U=I,Y=O),C0.hasLines(d)){var er=Bo.select(this);if(er.datum(a),Se)f(er.style("opacity",0).attr("d",I).call(sa.lineGroupStyle)).style("opacity",1);else{var re=f(er);re.attr("d",I),sa.singleLineStyle(a,re)}}}}}var oe=b.selectAll(".js-line").data($);f(oe.exit()).style("opacity",0).remove(),oe.each(fe(!1)),oe.enter().append("path").classed("js-line",!0).style("vector-effect",l?"none":"non-scaling-stroke").call(sa.lineGroupStyle).each(fe(!0)),sa.setClipUrl(oe,t.layerClipId,e);function be(Se){f(Se).attr("d","M0,0Z")}var Re=function(){var Se=new Array(se.length);for(s=0;s=l[0]&&y.x<=l[1]&&y.y>=s[0]&&y.y<=s[1]}),v=Math.ceil(c.length/f),d=0;n.forEach(function(y,m){var b=y[0].trace;C0.hasMarkers(b)&&b.marker.maxdisplayed>0&&m{"use strict";$G.exports={container:"marker",min:"cmin",max:"cmax"}});var r8=z((uJe,JG)=>{"use strict";var dg=Yr();JG.exports=function(r,t,a){var n={},i={_fullLayout:a},o=dg.getFromTrace(i,t,"x"),l=dg.getFromTrace(i,t,"y"),s=r.orig_x;s===void 0&&(s=r.x);var u=r.orig_y;return u===void 0&&(u=r.y),n.xLabel=dg.tickText(o,o.c2l(s),!0).text,n.yLabel=dg.tickText(l,l.c2l(u),!0).text,n}});var Af=z((fJe,KG)=>{"use strict";var t8=Pr(),D0=Jr(),VAe=Tr();function jAe(e){var r=t8.select(e).selectAll("g.trace.scatter");r.style("opacity",function(t){return t[0].trace.opacity}),r.selectAll("g.points").each(function(t){var a=t8.select(this),n=t.trace||t[0].trace;a8(a,n,e)}),r.selectAll("g.text").each(function(t){var a=t8.select(this),n=t.trace||t[0].trace;n8(a,n,e)}),r.selectAll("g.trace path.js-line").call(D0.lineGroupStyle),r.selectAll("g.trace path.js-fill").call(D0.fillGroupStyle,e,!1),VAe.getComponentMethod("errorbars","style")(r)}function a8(e,r,t){D0.pointStyle(e.selectAll("path.point"),r,t)}function n8(e,r,t){D0.textPointStyle(e.selectAll("text"),r,t)}function WAe(e,r,t){var a=r[0].trace;a.selectedpoints?(D0.selectedPointStyle(t.selectAll("path.point"),a),D0.selectedTextStyle(t.selectAll("text"),a)):(a8(t,a,e),n8(t,a,e))}KG.exports={style:jAe,stylePoints:a8,styleText:n8,styleOnSelect:WAe}});var eY=z((cJe,QG)=>{"use strict";var E0=qr(),XAe=ri();QG.exports=function(r,t){var a,n;if(r.mode==="lines")return a=r.line.color,a&&E0.opacity(a)?a:r.fillcolor;if(r.mode==="none")return r.fill?r.fillcolor:"";var i=t.mcc||t.mc||(r.marker||{}).color,o=t.mlcc||((r.marker||{}).line||{}).color;return n=i&&E0.opacity(i)?i:o&&E0.opacity(o)&&(t.mlw||((r.marker||{}).line||{}).width)?o:"",n?E0.opacity(n)<.3?E0.addOpacity(n,.3):n:(a=(r.line||{}).color,a&&E0.opacity(a)&&XAe.hasLines(r)&&r.line.width?a:r.fillcolor)}});var o8=z((vJe,tY)=>{"use strict";var pg=ke(),rY=Un(),ZAe=Tr(),$Ae=eY(),i8=qr(),JAe=pg.fillText;tY.exports=function(r,t,a,n){var i=r.cd,o=i[0].trace,l=r.xa,s=r.ya,u=l.c2p(t),f=s.c2p(a),c=[u,f],v=o.hoveron||"",d=o.mode.indexOf("markers")!==-1?3:.5,p=!!o.xperiodalignment,y=!!o.yperiodalignment;if(v.indexOf("points")!==-1){var m=function(Y){if(p){var G=l.c2p(Y.xStart),V=l.c2p(Y.xEnd);return u>=Math.min(G,V)&&u<=Math.max(G,V)?0:1/0}var W=Math.max(3,Y.mrc||0),j=1-1/W,J=Math.abs(l.c2p(Y.x)-u);return J=Math.min(G,V)&&f<=Math.max(G,V)?0:1/0}var W=Math.max(3,Y.mrc||0),j=1-1/W,J=Math.abs(s.c2p(Y.y)-f);return Jae!=be>=ae&&(ue=fe[$-1][0],ce=fe[$][0],be-oe&&(ie=ue+(ce-ue)*(ae-oe)/(be-oe),W=Math.min(W,ie),j=Math.max(j,ie)));return W=Math.max(W,0),j=Math.min(j,l._length),{x0:W,x1:j,y0:ae,y1:ae}}if(v.indexOf("fills")!==-1&&o._fillElement){var I=R(o._fillElement)&&!R(o._fillExclusionElement);if(I){var O=N(o._polygons);O===null&&(O={x0:c[0],x1:c[0],y0:c[1],y1:c[1]});var U=i8.defaultLine;return i8.opacity(o.fillcolor)?U=o.fillcolor:i8.opacity((o.line||{}).color)&&(U=o.line.color),pg.extendFlat(r,{distance:r.maxHoverDistance,x0:O.x0,x1:O.x1,y0:O.y0,y1:O.y1,color:U,hovertemplate:!1}),delete r.index,o.text&&!pg.isArrayOrTypedArray(o.text)?r.text=String(o.text):r.text=o.name,[r]}}}});var l8=z((hJe,nY)=>{"use strict";var aY=ri();nY.exports=function(r,t){var a=r.cd,n=r.xaxis,i=r.yaxis,o=[],l=a[0].trace,s,u,f,c,v=l.mode&&!aY.hasMarkers(l)&&!aY.hasText(l);if(v)return[];if(t===!1)for(s=0;s{"use strict";iY.exports={xaxis:{valType:"subplotid",dflt:"x",editType:"calc+clearAxisTypes"},yaxis:{valType:"subplotid",dflt:"y",editType:"calc+clearAxisTypes"}}});var fY=z((pJe,uY)=>{"use strict";var mg=Tr().traceIs,s8=Am();uY.exports=function(r,t,a,n){a("autotypenumbers",n.autotypenumbersDflt);var i=a("type",(n.splomStash||{}).type);i==="-"&&(KAe(t,n.data),t.type==="-"?t.type="linear":r.type=t.type)};function KAe(e,r){if(e.type==="-"){var t=e._id,a=t.charAt(0),n;t.indexOf("scene")!==-1&&(t=a);var i=QAe(r,t,a);if(i){if(i.type==="histogram"&&a==={v:"y",h:"x"}[i.orientation||"v"]){e.type="linear";return}var o=a+"calendar",l=i[o],s={noMultiCategory:!mg(i,"cartesian")||mg(i,"noMultiCategory")};if(i.type==="box"&&i._hasPreCompStats&&a==={h:"x",v:"y"}[i.orientation||"v"]&&(s.noMultiCategory=!0),s.autotypenumbers=e.autotypenumbers,sY(i,a)){var u=lY(i),f=[];for(n=0;n0&&(n["_"+t+"axes"]||{})[r])return n;if((n[t+"axis"]||t)===r){if(sY(n,t))return n;if((n[t]||[]).length||n[t+"0"])return n}}}function lY(e){return{v:"x",h:"y"}[e.orientation||"v"]}function sY(e,r){var t=lY(e),a=mg(e,"box-violin");return a&&r===t&&e[t]===void 0&&e[t+"0"]===void 0}});var vY=z((mJe,cY)=>{"use strict";var eTe=Zn().isTypedArraySpec;function rTe(e,r){var t=r.dataAttr||e._id.charAt(0),a={},n,i,o;if(r.axData)n=r.axData;else for(n=[],i=0;i0||eTe(i),l;o&&(l="array");var s=a("categoryorder",l),u;s==="array"&&(u=a("categoryarray")),!o&&s==="array"&&(s=t.categoryorder="trace"),s==="trace"?t._initialCategories=[]:s==="array"?t._initialCategories=u.slice():(u=rTe(t,n).sort(),s==="category ascending"?t._initialCategories=u:s==="category descending"&&(t._initialCategories=u.reverse()))}}});var u8=z((yJe,dY)=>{"use strict";var hY=qr(),tTe=Ii(),aTe=ke();dY.exports=function(r,t,a,n){n=n||{};var i=n.dfltColor;function o(q,C){return aTe.coerce2(r,t,n.attributes,q,C)}var l=o("linecolor",i),s=o("linewidth"),u=a("showline",n.showLine||!!l||!!s);u||(delete t.linecolor,delete t.linewidth);var f=hY.mix(i,n.bgColor,n.blend||tTe.lightFraction),c=o("gridcolor",f),v=o("gridwidth"),d=o("griddash"),p=a("showgrid",n.showGrid||!!c||!!v||!!d);if(p||(delete t.gridcolor,delete t.gridwidth,delete t.griddash),n.hasMinor){var y=hY.mix(t.gridcolor,n.bgColor,67),m=o("minor.gridcolor",y),b=o("minor.gridwidth",t.gridwidth||1),A=o("minor.griddash",t.griddash||"solid"),w=a("minor.showgrid",!!m||!!b||!!A);w||(delete t.minor.gridcolor,delete t.minor.gridwidth,delete t.minor.griddash)}if(!n.noZeroLine){var x=o("zerolinelayer"),_=o("zerolinecolor",i),k=o("zerolinewidth"),T=a("zeroline",n.showGrid||!!_||!!k);T||(delete t.zerolinelayer,delete t.zerolinecolor,delete t.zerolinewidth)}}});var c8=z((gJe,xY)=>{"use strict";var pY=Br(),nTe=Tr(),Gd=ke(),iTe=Ct(),oTe=Po(),f8=Gi(),mY=nm(),yY=im(),lTe=lm(),sTe=sm(),uTe=vY(),fTe=u8(),cTe=U6(),gY=i0(),yg=(Pa(),ze(Ea)).WEEKDAY_PATTERN,vTe=(Pa(),ze(Ea)).HOUR_PATTERN;xY.exports=function(r,t,a,n,i){var o=n.letter,l=n.font||{},s=n.splomStash||{},u=a("visible",!n.visibleDflt),f=t._template||{},c=t.type||f.type||"-",v;if(c==="date"){var d=nTe.getComponentMethod("calendars","handleDefaults");d(r,t,"calendar",n.calendar),n.noTicklabelmode||(v=a("ticklabelmode"))}!n.noTicklabelindex&&(c==="date"||c==="linear")&&a("ticklabelindex");var p="";(!n.noTicklabelposition||c==="multicategory")&&(p=Gd.coerce(r,t,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:v==="period"?["outside","inside"]:o==="x"?["outside","inside","outside left","inside left","outside right","inside right"]:["outside","inside","outside top","inside top","outside bottom","inside bottom"]}},"ticklabelposition")),n.noTicklabeloverflow||a("ticklabeloverflow",p.indexOf("inside")!==-1?"hide past domain":c==="category"||c==="multicategory"?"allow":"hide past div"),gY(t,i),cTe(r,t,a,n),uTe(r,t,a,n),n.noHover||(c!=="category"&&a("hoverformat"),n.noUnifiedhovertitle||a("unifiedhovertitle.text"));var y=a("color"),m=y!==f8.color.dflt?y:l.color,b=s.label||i._dfltTitle[o];if(sTe(r,t,a,c,n),!u)return t;a("title.text",b),Gd.coerceFont(a,"title.font",l,{overrideDflt:{size:Gd.bigFont(l.size),color:m}}),mY(r,t,a,c);var A=n.hasMinor;if(A&&(iTe.newContainer(t,"minor"),mY(r,t,a,c,{isMinor:!0})),lTe(r,t,a,c,n),yY(r,t,a,n),A){var w=n.isMinor;n.isMinor=!0,yY(r,t,a,n),n.isMinor=w}fTe(r,t,a,{dfltColor:y,bgColor:n.bgColor,showGrid:n.showGrid,hasMinor:A,attributes:f8}),A&&t.ticklabelindex==null&&!t.minor.ticks&&!t.minor.showgrid&&delete t.minor,(t.showline||t.ticks)&&a("mirror");var x=c==="multicategory";if(!n.noTickson&&(c==="category"||x)&&(t.ticks||t.showgrid)&&(x?(a("tickson","boundaries"),delete t.ticklabelposition):a("tickson")),x){var _=a("showdividers");_&&(a("dividercolor"),a("dividerwidth"))}if(c==="date")if(oTe(r,t,{name:"rangebreaks",inclusionAttr:"enabled",handleItemDefaults:hTe}),!t.rangebreaks.length)delete t.rangebreaks;else{for(var k=0;k=2){var o="",l,s;if(i.length===2){for(l=0;l<2;l++)if(s=bY(i[l]),s){o=yg;break}}var u=a("pattern",o);if(u===yg)for(l=0;l<2;l++)s=bY(i[l]),s&&(r.bounds[l]=i[l]=s-1);if(u)for(l=0;l<2;l++)switch(s=i[l],u){case yg:if(!pY(s)){r.enabled=!1;return}if(s=+s,s!==Math.floor(s)||s<0||s>=7){r.enabled=!1;return}r.bounds[l]=i[l]=s;break;case vTe:if(!pY(s)){r.enabled=!1;return}if(s=+s,s<0||s>24){r.enabled=!1;return}r.bounds[l]=i[l]=s;break}if(t.autorange===!1){var f=t.range;if(f[0]f[1]){r.enabled=!1;return}}else if(i[0]>f[0]&&i[1]{"use strict";var pTe=Br(),gg=ke();_Y.exports=function(r,t,a,n){var i=n.counterAxes||[],o=n.overlayableAxes||[],l=n.letter,s=n.grid,u=n.overlayingDomain,f,c,v,d,p,y;s&&(c=s._domains[l][s._axisMap[t._id]],f=s._anchors[t._id],c&&(v=s[l+"side"].split(" ")[0],d=s.domain[l][v==="right"||v==="top"?1:0])),c=c||[0,1],f=f||(pTe(r.position)?"free":i[0]||"free"),v=v||(l==="x"?"bottom":"left"),d=d||0,p=0,y=!1;var m=gg.coerce(r,t,{anchor:{valType:"enumerated",values:["free"].concat(i),dflt:f}},"anchor"),b=gg.coerce(r,t,{side:{valType:"enumerated",values:l==="x"?["bottom","top"]:["left","right"],dflt:v}},"side");if(m==="free"){if(l==="y"){var A=a("autoshift");A&&(d=b==="left"?u[0]:u[1],y=t.automargin?t.automargin:!0,p=b==="left"?-3:3),a("shift",p)}a("position",d)}a("automargin",y);var w=!1;if(o.length&&(w=gg.coerce(r,t,{overlaying:{valType:"enumerated",values:[!1].concat(o),dflt:!1}},"overlaying")),!w){var x=a("domain",c);x[0]>x[1]-1/4096&&(t.domain=c),gg.noneOrAll(r.domain,t.domain,c),t.tickmode==="sync"&&(t.tickmode="auto")}return a("layer"),t}});var CY=z((xJe,LY)=>{"use strict";var Tf=ke(),wY=qr(),mTe=Ro().isUnifiedHover,yTe=m7(),AY=Ct(),gTe=Ic(),TY=Gi(),bTe=fY(),MY=c8(),xTe=bf(),kY=v8(),d8=Aa(),wl=d8.id2name,SY=d8.name2id,_Te=(Pa(),ze(Ea)).AX_ID_PATTERN,qY=Tr(),bg=qY.traceIs,h8=qY.getComponentMethod;function xg(e,r,t){Array.isArray(e[r])?e[r].push(t):e[r]=[t]}LY.exports=function(r,t,a){var n=t.autotypenumbers,i={},o={},l={},s={},u={},f={},c={},v={},d={},p={},y,m;for(y=0;y{"use strict";var wTe=Pr(),DY=Tr(),_g=ke(),Mi=Jr(),wg=Yr();EY.exports=function(r,t,a,n){var i=r._fullLayout;if(t.length===0){wg.redrawComponents(r);return}function o(m){var b=m.xaxis,A=m.yaxis;i._defs.select("#"+m.clipId+"> rect").call(Mi.setTranslate,0,0).call(Mi.setScale,1,1),m.plot.call(Mi.setTranslate,b._offset,A._offset).call(Mi.setScale,1,1);var w=m.plot.selectAll(".scatterlayer .trace");w.selectAll(".point").call(Mi.setPointGroupScale,1,1),w.selectAll(".textpoint").call(Mi.setTextPointsScale,1,1),w.call(Mi.hideOutsideRangePoints,m)}function l(m,b){var A=m.plotinfo,w=A.xaxis,x=A.yaxis,_=w._length,k=x._length,T=!!m.xr1,q=!!m.yr1,C=[];if(T){var E=_g.simpleMap(m.xr0,w.r2l),P=_g.simpleMap(m.xr1,w.r2l),R=E[1]-E[0],N=P[1]-P[0];C[0]=(E[0]*(1-b)+b*P[0]-E[0])/(E[1]-E[0])*_,C[2]=_*(1-b+b*N/R),w.range[0]=w.l2r(E[0]*(1-b)+b*P[0]),w.range[1]=w.l2r(E[1]*(1-b)+b*P[1])}else C[0]=0,C[2]=_;if(q){var I=_g.simpleMap(m.yr0,x.r2l),O=_g.simpleMap(m.yr1,x.r2l),U=I[1]-I[0],Y=O[1]-O[0];C[1]=(I[1]*(1-b)+b*O[1]-I[1])/(I[0]-I[1])*k,C[3]=k*(1-b+b*Y/U),x.range[0]=w.l2r(I[0]*(1-b)+b*O[0]),x.range[1]=x.l2r(I[1]*(1-b)+b*O[1])}else C[1]=0,C[3]=k;wg.drawOne(r,w,{skipTitle:!0}),wg.drawOne(r,x,{skipTitle:!0}),wg.redrawComponents(r,[w._id,x._id]);var G=T?_/C[2]:1,V=q?k/C[3]:1,W=T?C[0]:0,j=q?C[1]:0,J=T?C[0]/C[2]*_:0,te=q?C[1]/C[3]*k:0,ae=w._offset-J,se=x._offset-te;A.clipRect.call(Mi.setTranslate,W,j).call(Mi.setScale,1/G,1/V),A.plot.call(Mi.setTranslate,ae,se).call(Mi.setScale,G,V),Mi.setPointGroupScale(A.zoomScalePts,1/G,1/V),Mi.setTextPointsScale(A.zoomScaleTxt,1/G,1/V)}var s;n&&(s=n());function u(){for(var m={},b=0;ba.duration?(u(),d=window.cancelAnimationFrame(y)):d=window.requestAnimationFrame(y)}return c=Date.now(),d=window.requestAnimationFrame(y),Promise.resolve()}});var io=z(yn=>{"use strict";var Tg=Pr(),RY=Tr(),Mf=ke(),ATe=ma(),TTe=Jr(),FY=Jp().getModuleCalcData,Zs=Aa(),Oo=(Pa(),ze(Ea)),MTe=(Vl(),ze(Yl)),at=Mf.ensureSingle;function Ag(e,r,t){return Mf.ensureSingle(e,r,t,function(a){a.datum(t)})}var kf=Oo.zindexSeparator;yn.name="cartesian";yn.attr=["xaxis","yaxis"];yn.idRoot=["x","y"];yn.idRegex=Oo.idRegex;yn.attrRegex=Oo.attrRegex;yn.attributes=oY();yn.layoutAttributes=Gi();yn.supplyLayoutDefaults=CY();yn.transitionAxes=PY();yn.finalizeSubplots=function(e,r){var t=r._subplots,a=t.xaxis,n=t.yaxis,i=t.cartesian,o=i,l={},s={},u,f,c;for(u=0;u0){var d=v.id;if(d.indexOf(kf)!==-1)continue;d+=kf+(u+1),v=Mf.extendFlat({},v,{id:d,plot:n._cartesianlayer.selectAll(".subplot").select("."+d)})}for(var p=[],y,m=0;m1&&(_+=kf+x),w.push(l+_),o=0;o1,c=r.mainplotinfo;if(!r.mainplot||f)if(u)r.xlines=at(a,"path","xlines-above"),r.ylines=at(a,"path","ylines-above"),r.xaxislayer=at(a,"g","xaxislayer-above"),r.yaxislayer=at(a,"g","yaxislayer-above");else{if(!o){var v=at(a,"g","layer-subplot");r.shapelayer=at(v,"g","shapelayer"),r.imagelayer=at(v,"g","imagelayer"),c&&f?(r.minorGridlayer=c.minorGridlayer,r.gridlayer=c.gridlayer,r.zerolinelayer=c.zerolinelayer):(r.minorGridlayer=at(a,"g","minor-gridlayer"),r.gridlayer=at(a,"g","gridlayer"),r.zerolinelayer=at(a,"g","zerolinelayer"));var d=at(a,"g","layer-between");r.shapelayerBetween=at(d,"g","shapelayer"),r.imagelayerBetween=at(d,"g","imagelayer"),at(a,"path","xlines-below"),at(a,"path","ylines-below"),r.overlinesBelow=at(a,"g","overlines-below"),at(a,"g","xaxislayer-below"),at(a,"g","yaxislayer-below"),r.overaxesBelow=at(a,"g","overaxes-below")}r.overplot=at(a,"g","overplot"),r.plot=at(r.overplot,"g",n),c&&f?r.zerolinelayerAbove=c.zerolinelayerAbove:r.zerolinelayerAbove=at(a,"g","zerolinelayer-above"),o||(r.xlines=at(a,"path","xlines-above"),r.ylines=at(a,"path","ylines-above"),r.overlinesAbove=at(a,"g","overlines-above"),at(a,"g","xaxislayer-above"),at(a,"g","yaxislayer-above"),r.overaxesAbove=at(a,"g","overaxes-above"),r.xlines=a.select(".xlines-"+l),r.ylines=a.select(".ylines-"+s),r.xaxislayer=a.select(".xaxislayer-"+l),r.yaxislayer=a.select(".yaxislayer-"+s))}else{var p=c.plotgroup,y=n+"-x",m=n+"-y";r.minorGridlayer=c.minorGridlayer,r.gridlayer=c.gridlayer,r.zerolinelayer=c.zerolinelayer,r.zerolinelayerAbove=c.zerolinelayerAbove,at(c.overlinesBelow,"path",y),at(c.overlinesBelow,"path",m),at(c.overaxesBelow,"g",y),at(c.overaxesBelow,"g",m),r.plot=at(c.overplot,"g",n),at(c.overlinesAbove,"path",y),at(c.overlinesAbove,"path",m),at(c.overaxesAbove,"g",y),at(c.overaxesAbove,"g",m),r.xlines=p.select(".overlines-"+l).select("."+y),r.ylines=p.select(".overlines-"+s).select("."+m),r.xaxislayer=p.select(".overaxes-"+l).select("."+y),r.yaxislayer=p.select(".overaxes-"+s).select("."+m)}o||(u||(Ag(r.minorGridlayer,"g",r.xaxis._id),Ag(r.minorGridlayer,"g",r.yaxis._id),r.minorGridlayer.selectAll("g").map(function(b){return b[0]}).sort(Zs.idSort),Ag(r.gridlayer,"g",r.xaxis._id),Ag(r.gridlayer,"g",r.yaxis._id),r.gridlayer.selectAll("g").map(function(b){return b[0]}).sort(Zs.idSort)),r.xlines.style("fill","none").classed("crisp",!0),r.ylines.style("fill","none").classed("crisp",!0))}function IY(e,r){if(e){var t={};e.each(function(s){var u=s[0],f=Tg.select(this);f.remove(),BY(u,r),t[u]=!0});for(var a in r._plots)for(var n=r._plots[a],i=n.overlays||[],o=0;o{"use strict";var Mg=ri();OY.exports={hasLines:Mg.hasLines,hasMarkers:Mg.hasMarkers,hasText:Mg.hasText,isBubble:Mg.isBubble,attributes:Ji(),layoutAttributes:Xp(),supplyDefaults:sG(),crossTraceDefaults:cG(),supplyLayoutDefaults:hG(),calc:sg().calc,crossTraceCalc:NG(),arraysToCalcdata:og(),plot:e8(),colorbar:Ud(),formatLabels:r8(),style:Af().style,styleOnSelect:Af().styleOnSelect,hoverPoints:o8(),selectPoints:l8(),animatable:!0,moduleType:"trace",name:"scatter",basePlotModule:io(),categories:["cartesian","svg","symbols","errorBarsOK","showLegend","scatter-like","zoomScale"],meta:{}}});var YY=z((TJe,GY)=>{"use strict";var STe=Pr(),qTe=qr(),UY=ow(),p8=ke(),LTe=p8.strScale,CTe=p8.strRotate,DTe=p8.strTranslate;GY.exports=function(r,t,a){var n=r.node(),i=UY[a.arrowhead||0],o=UY[a.startarrowhead||0],l=(a.arrowwidth||1)*(a.arrowsize||1),s=(a.arrowwidth||1)*(a.startarrowsize||1),u=t.indexOf("start")>=0,f=t.indexOf("end")>=0,c=i.backoff*l+a.standoff,v=o.backoff*s+a.startstandoff,d,p,y,m;if(n.nodeName==="line"){d={x:+r.attr("x1"),y:+r.attr("y1")},p={x:+r.attr("x2"),y:+r.attr("y2")};var b=d.x-p.x,A=d.y-p.y;if(y=Math.atan2(A,b),m=y+Math.PI,c&&v&&c+v>Math.sqrt(b*b+A*A)){I();return}if(c){if(c*c>b*b+A*A){I();return}var w=c*Math.cos(y),x=c*Math.sin(y);p.x+=w,p.y+=x,r.attr({x2:p.x,y2:p.y})}if(v){if(v*v>b*b+A*A){I();return}var _=v*Math.cos(y),k=v*Math.sin(y);d.x-=_,d.y-=k,r.attr({x1:d.x,y1:d.y})}}else if(n.nodeName==="path"){var T=n.getTotalLength(),q="";if(T{"use strict";var VY=Pr(),m8=Tr(),ETe=ma(),Js=ke(),y8=Js.strTranslate,Vd=Yr(),Sf=qr(),es=Jr(),jY=Un(),g8=Fa(),b8=Os(),Yd=Vi(),PTe=Ct().arrayEditor,RTe=YY();ZY.exports={draw:FTe,drawOne:WY,drawRaw:XY};function FTe(e){var r=e._fullLayout;r._infolayer.selectAll(".annotation").remove();for(var t=0;t2/3?yr="right":yr="center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[yr]}for(var oe=!1,be=["x","y"],Re=0;Re1)&&(Me===Ce?(Pe=Le.r2fraction(r["a"+ye]),(Pe<0||Pe>1)&&(oe=!0)):oe=!0),Fe=Le._offset+Le.r2p(r[ye]),xe=.5}else{var me=vr==="domain";ye==="x"?(re=r[ye],Fe=me?Le._offset+Le._length*re:Fe=l.l+l.w*re):(re=1-r[ye],Fe=me?Le._offset+Le._length*re:Fe=l.t+l.h*re),xe=r.showarrow?.5:re}if(r.showarrow){Se.head=Fe;var Te=r["a"+ye];if(Ye=Ie*ce(.5,r.xanchor)-qe*ce(.5,r.yanchor),Me===Ce){var Ue=Vd.getRefType(Me);Ue==="domain"?(ye==="y"&&(Te=1-Te),Se.tail=Le._offset+Le._length*Te):Ue==="paper"?ye==="y"?(Te=1-Te,Se.tail=l.t+l.h*Te):Se.tail=l.l+l.w*Te:Se.tail=Le._offset+Le.r2p(Te),er=Ye}else Se.tail=Fe+Te,er=Ye+Te;Se.text=Se.tail+Ye;var $e=o[ye==="x"?"width":"height"];if(Ce==="paper"&&(Se.head=Js.constrain(Se.head,1,$e-1)),Me==="pixel"){var Oe=-Math.max(Se.tail-3,Se.text),We=Math.min(Se.tail+3,Se.text)-$e;Oe>0?(Se.tail+=Oe,Se.text+=Oe):We>0&&(Se.tail-=We,Se.text-=We)}Se.tail+=Xe,Se.head+=Xe}else Ye=Ze*ce(xe,Je),er=Ye,Se.text=Fe+Ye;Se.text+=Xe,Ye+=Xe,er+=Xe,r["_"+ye+"padplus"]=Ze/2+er,r["_"+ye+"padminus"]=Ze/2-er,r["_"+ye+"size"]=Ze,r["_"+ye+"shift"]=Ye}if(oe){T.remove();return}var ar=0,or=0;if(r.align!=="left"&&(ar=($-ae)*(r.align==="center"?.5:1)),r.valign!=="top"&&(or=(fe-se)*(r.valign==="middle"?.5:1)),J)j.select("svg").attr({x:E+ar-1,y:E+or}).call(es.setClipUrl,R?y:null,e);else{var sr=E+or-te.top,Ee=E+ar-te.left;U.call(g8.positionText,Ee,sr).call(es.setClipUrl,R?y:null,e)}N.select("rect").call(es.setRect,E,E,$,fe),P.call(es.setRect,q/2,q/2,ie-q,ue-q),T.call(es.setTranslate,Math.round(m.x.text-ie/2),Math.round(m.y.text-ue/2)),w.attr({transform:"rotate("+b+","+m.x.text+","+m.y.text+")"});var Ke=function(mr,yr){A.selectAll(".annotation-arrow-g").remove();var ur=m.x.head,gr=m.y.head,ne=m.x.tail+mr,ge=m.y.tail+yr,Ne=m.x.text+mr,He=m.y.text+yr,Kr=Js.rotationXYMatrix(b,Ne,He),Qr=Js.apply2DTransform(Kr),yt=Js.apply2DTransform2(Kr),gt=+P.attr("width"),Et=+P.attr("height"),aa=Ne-.5*gt,$a=aa+gt,na=He-.5*Et,Ja=na+Et,hn=[[aa,na,aa,Ja],[aa,Ja,$a,Ja],[$a,Ja,$a,na],[$a,na,aa,na]].map(yt);if(!hn.reduce(function(Pt,oa){return Pt^!!Js.segmentsIntersect(ur,gr,ur+1e6,gr+1e6,oa[0],oa[1],oa[2],oa[3])},!1)){hn.forEach(function(Pt){var oa=Js.segmentsIntersect(ne,ge,ur,gr,Pt[0],Pt[1],Pt[2],Pt[3]);oa&&(ne=oa.x,ge=oa.y)});var fa=r.arrowwidth,hr=r.arrowcolor,wt=r.arrowside,Vr=A.append("g").style({opacity:Sf.opacity(hr)}).classed("annotation-arrow-g",!0),ht=Vr.append("path").attr("d","M"+ne+","+ge+"L"+ur+","+gr).style("stroke-width",fa+"px").call(Sf.stroke,Sf.rgb(hr));if(RTe(ht,wt,r),s.annotationPosition&&ht.node().parentNode&&!a){var Nt=ur,kt=gr;if(r.standoff){var it=Math.sqrt(Math.pow(ur-ne,2)+Math.pow(gr-ge,2));Nt+=r.standoff*(ne-ur)/it,kt+=r.standoff*(ge-gr)/it}var ia=Vr.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(ne-Nt)+","+(ge-kt),transform:y8(Nt,kt)}).style("stroke-width",fa+6+"px").call(Sf.stroke,"rgba(0,0,0,0)").call(Sf.fill,"rgba(0,0,0,0)"),zn,Xt;Yd.init({element:ia.node(),gd:e,prepFn:function(){var Pt=es.getTranslate(T);zn=Pt.x,Xt=Pt.y,n&&n.autorange&&v(n._name+".autorange",!0),i&&i.autorange&&v(i._name+".autorange",!0)},moveFn:function(Pt,oa){var la=Qr(zn,Xt),dt=la[0]+Pt,Ka=la[1]+oa;T.call(es.setTranslate,dt,Ka),d("x",$s(n,Pt,"x",l,r)),d("y",$s(i,oa,"y",l,r)),r.axref===r.xref&&d("ax",$s(n,Pt,"ax",l,r)),r.ayref===r.yref&&d("ay",$s(i,oa,"ay",l,r)),Vr.attr("transform",y8(Pt,oa)),w.attr({transform:"rotate("+b+","+dt+","+Ka+")"})},doneFn:function(){m8.call("_guiRelayout",e,p());var Pt=document.querySelector(".js-notes-box-panel");Pt&&Pt.redraw(Pt.selectedObj)}})}}};if(r.showarrow&&Ke(0,0),x){var Be;Yd.init({element:T.node(),gd:e,prepFn:function(){Be=w.attr("transform")},moveFn:function(mr,yr){var ur="pointer";if(r.showarrow)r.axref===r.xref?d("ax",$s(n,mr,"ax",l,r)):d("ax",r.ax+mr),r.ayref===r.yref?d("ay",$s(i,yr,"ay",l.w,r)):d("ay",r.ay+yr),Ke(mr,yr);else{if(a)return;var gr,ne;if(n)gr=$s(n,mr,"x",l,r);else{var ge=r._xsize/l.w,Ne=r.x+(r._xshift-r.xshift)/l.w-ge/2;gr=Yd.align(Ne+mr/l.w,ge,0,1,r.xanchor)}if(i)ne=$s(i,yr,"y",l,r);else{var He=r._ysize/l.h,Kr=r.y-(r._yshift+r.yshift)/l.h-He/2;ne=Yd.align(Kr-yr/l.h,He,0,1,r.yanchor)}d("x",gr),d("y",ne),(!n||!i)&&(ur=Yd.getCursor(n?.5:gr,i?.5:ne,r.xanchor,r.yanchor))}w.attr({transform:y8(mr,yr)+Be}),b8(T,ur)},clickFn:function(mr,yr){r.captureevents&&e.emit("plotly_clickannotation",k(yr))},doneFn:function(){b8(T),m8.call("_guiRelayout",e,p());var mr=document.querySelector(".js-notes-box-panel");mr&&mr.redraw(mr.selectedObj)}})}}s.annotationText?U.call(g8.makeEditable,{delegate:T,gd:e}).call(Y).on("edit",function(V){r.text=V,this.call(Y),d("text",V),n&&n.autorange&&v(n._name+".autorange",!0),i&&i.autorange&&v(i._name+".autorange",!0),m8.call("_guiRelayout",e,p())}):U.call(Y)}});var rV=z((kJe,eV)=>{"use strict";var $Y=ke(),zTe=Tr(),JY=Ct().arrayEditor;eV.exports={hasClickToShow:NTe,onClick:ITe};function NTe(e,r){var t=QY(e,r);return t.on.length>0||t.explicitOff.length>0}function ITe(e,r){var t=QY(e,r),a=t.on,n=t.off.concat(t.explicitOff),i={},o=e._fullLayout.annotations,l,s;if(a.length||n.length){for(l=0;l{"use strict";var x8=ke(),P0=qr();tV.exports=function(r,t,a,n){n("opacity");var i=n("bgcolor"),o=n("bordercolor"),l=P0.opacity(o);n("borderpad");var s=n("borderwidth"),u=n("showarrow");n("text",u?" ":a._dfltTitle.annotation),n("textangle"),x8.coerceFont(n,"font",a.font),n("width"),n("align");var f=n("height");if(f&&n("valign"),u){var c=n("arrowside"),v,d;c.indexOf("end")!==-1&&(v=n("arrowhead"),d=n("arrowsize")),c.indexOf("start")!==-1&&(n("startarrowhead",v),n("startarrowsize",d)),n("arrowcolor",l?t.bordercolor:P0.defaultLine),n("arrowwidth",(l&&s||1)*2),n("standoff"),n("startstandoff")}var p=n("hovertext"),y=a.hoverlabel||{};if(p){var m=n("hoverlabel.bgcolor",y.bgcolor||(P0.opacity(i)?P0.rgb(i):P0.defaultLine)),b=n("hoverlabel.bordercolor",y.bordercolor||P0.contrast(m)),A=x8.extendFlat({},y.font);A.color||(A.color=b),x8.coerceFont(n,"hoverlabel.font",A)}n("captureevents",!!p)}});var nV=z((qJe,aV)=>{"use strict";var w8=ke(),qf=Yr(),BTe=Po(),OTe=_8(),HTe=w0();aV.exports=function(r,t){BTe(r,t,{name:"annotations",handleItemDefaults:UTe})};function UTe(e,r,t){function a(w,x){return w8.coerce(e,r,HTe,w,x)}var n=a("visible"),i=a("clicktoshow");if(n||i){OTe(e,r,t,a);for(var o=r.showarrow,l=["x","y"],s=[-10,-30],u={_fullLayout:t},f=0;f<2;f++){var c=l[f],v=qf.coerceRef(e,r,u,c,"","paper");if(v!=="paper"){var d=qf.getFromId(u,v);d._annIndices.push(r._index)}if(qf.coercePosition(r,u,a,v,c,.5),o){var p="a"+c,y=qf.coerceRef(e,r,u,p,"pixel",["pixel","paper"]);y!=="pixel"&&y!==v&&(y=r[p]="pixel");var m=y==="pixel"?s[f]:.4;qf.coercePosition(r,u,a,y,p,m)}a(c+"anchor"),a(c+"shift")}if(w8.noneOrAll(e,r,["x","y"]),o&&w8.noneOrAll(e,r,["ax","ay"]),i){var b=a("xclick"),A=a("yclick");r._xclick=b===void 0?r.x:qf.cleanPosition(b,u,r.xref),r._yclick=A===void 0?r.y:qf.cleanPosition(A,u,r.yref)}}}});var lV=z((LJe,oV)=>{"use strict";var A8=ke(),Lf=Yr(),GTe=kg().draw;oV.exports=function(r){var t=r._fullLayout,a=A8.filterVisible(t.annotations);if(a.length&&r._fullData.length)return A8.syncOrAsync([GTe,YTe],r)};function YTe(e){var r=e._fullLayout;A8.filterVisible(r.annotations).forEach(function(t){var a=Lf.getFromId(e,t.xref),n=Lf.getFromId(e,t.yref),i=Lf.getRefType(t.xref),o=Lf.getRefType(t.yref);t._extremes={},i==="range"&&iV(t,a),o==="range"&&iV(t,n)})}function iV(e,r){var t=r._id,a=t.charAt(0),n=e[a],i=e["a"+a],o=e[a+"ref"],l=e["a"+a+"ref"],s=e["_"+a+"padplus"],u=e["_"+a+"padminus"],f={x:1,y:-1}[a]*e[a+"shift"],c=3*e.arrowsize*e.arrowwidth||0,v=c+f,d=c-f,p=3*e.startarrowsize*e.arrowwidth||0,y=p+f,m=p-f,b;if(l===o){var A=Lf.findExtremes(r,[r.r2c(n)],{ppadplus:v,ppadminus:d}),w=Lf.findExtremes(r,[r.r2c(i)],{ppadplus:Math.max(s,y),ppadminus:Math.max(u,m)});b={min:[A.min[0],w.min[0]],max:[A.max[0],w.max[0]]}}else y=i?y+i:y,m=i?m-i:m,b=Lf.findExtremes(r,[r.r2c(n)],{ppadplus:Math.max(s,v,y),ppadminus:Math.max(u,d,m)});e._extremes[t]=b}});var uV=z((CJe,sV)=>{"use strict";var VTe=Br(),jTe=V1();sV.exports=function(r,t,a,n){t=t||{};var i=a==="log"&&t.type==="linear",o=a==="linear"&&t.type==="log";if(!(i||o))return;var l=r._fullLayout.annotations,s=t._id.charAt(0),u,f;function c(d){var p=u[d],y=null;i?y=jTe(p,t.range):y=Math.pow(10,p),VTe(y)||(y=null),n(f+d,y)}for(var v=0;v{"use strict";var T8=kg(),fV=rV();cV.exports={moduleType:"component",name:"annotations",layoutAttributes:w0(),supplyLayoutDefaults:nV(),includeBasePlot:Td()("annotations"),calcAutorange:lV(),draw:T8.draw,drawOne:T8.drawOne,drawRaw:T8.drawRaw,hasClickToShow:fV.hasClickToShow,onClick:fV.onClick,convertCoords:uV()}});var Sg=z((EJe,hV)=>{"use strict";var Ft=w0(),WTe=qo().overrideAll,XTe=Ct().templatedArray;hV.exports=WTe(XTe("annotation",{visible:Ft.visible,x:{valType:"any"},y:{valType:"any"},z:{valType:"any"},ax:{valType:"number"},ay:{valType:"number"},xanchor:Ft.xanchor,xshift:Ft.xshift,yanchor:Ft.yanchor,yshift:Ft.yshift,text:Ft.text,textangle:Ft.textangle,font:Ft.font,width:Ft.width,height:Ft.height,opacity:Ft.opacity,align:Ft.align,valign:Ft.valign,bgcolor:Ft.bgcolor,bordercolor:Ft.bordercolor,borderpad:Ft.borderpad,borderwidth:Ft.borderwidth,showarrow:Ft.showarrow,arrowcolor:Ft.arrowcolor,arrowhead:Ft.arrowhead,startarrowhead:Ft.startarrowhead,arrowside:Ft.arrowside,arrowsize:Ft.arrowsize,startarrowsize:Ft.startarrowsize,arrowwidth:Ft.arrowwidth,standoff:Ft.standoff,startstandoff:Ft.startstandoff,hovertext:Ft.hovertext,hoverlabel:Ft.hoverlabel,captureevents:Ft.captureevents}),"calc","from-root")});var pV=z((PJe,dV)=>{"use strict";var M8=ke(),ZTe=Yr(),$Te=Po(),JTe=_8(),KTe=Sg();dV.exports=function(r,t,a){$Te(r,t,{name:"annotations",handleItemDefaults:QTe,fullLayout:a.fullLayout})};function QTe(e,r,t,a){function n(l,s){return M8.coerce(e,r,KTe,l,s)}function i(l){var s=l+"axis",u={_fullLayout:{}};return u._fullLayout[s]=t[s],ZTe.coercePosition(r,u,n,l,l,.5)}var o=n("visible");o&&(JTe(e,r,a.fullLayout,n),i("x"),i("y"),i("z"),M8.noneOrAll(e,r,["x","y","z"]),r.xref="x",r.yref="y",r.zref="z",n("xanchor"),n("yanchor"),n("xshift"),n("yshift"),r.showarrow&&(r.axref="pixel",r.ayref="pixel",n("ax",-10),n("ay",-30),M8.noneOrAll(e,r,["ax","ay"])))}});var bV=z((RJe,gV)=>{"use strict";var mV=ke(),yV=Yr();gV.exports=function(r){for(var t=r.fullSceneLayout,a=t.annotations,n=0;n{"use strict";function k8(e,r){var t=[0,0,0,0],a,n;for(a=0;a<4;++a)for(n=0;n<4;++n)t[n]+=e[4*a+n]*r[a];return t}function rMe(e,r){var t=k8(e.projection,k8(e.view,k8(e.model,[r[0],r[1],r[2],1])));return t}xV.exports=rMe});var AV=z((zJe,wV)=>{"use strict";var tMe=kg().drawRaw,aMe=_V(),nMe=["x","y","z"];wV.exports=function(r){for(var t=r.fullSceneLayout,a=r.dataScale,n=t.annotations,i=0;i1){l=!0;break}}l?r.fullLayout._infolayer.select(".annotation-"+r.id+'[data-index="'+i+'"]').remove():(o._pdata=aMe(r.glplot.cameraParams,[t.xaxis.r2l(o.x)*a[0],t.yaxis.r2l(o.y)*a[1],t.zaxis.r2l(o.z)*a[2]]),tMe(r.graphDiv,o,i,r.id,o._xa,o._ya))}}});var kV=z((NJe,MV)=>{"use strict";var iMe=Tr(),TV=ke();MV.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:Sg()}}},layoutAttributes:Sg(),handleDefaults:pV(),includeBasePlot:oMe,convert:bV(),draw:AV()};function oMe(e,r){var t=iMe.subplotsRegistry.gl3d;if(t)for(var a=t.attrRegex,n=Object.keys(e),i=0;i{"use strict";var IJe=(Pa(),ze(Ea)),SV=Ca(),qV=Ji().line,lMe=Bi().dash,Ho=Mt().extendFlat,sMe=Ct().templatedArray,BJe=(xd(),ze(bd)),R0=On(),LV=w0(),{shapeTexttemplateAttrs:uMe,templatefallbackAttrs:fMe}=di(),cMe=Sp();CV.exports=sMe("shape",{visible:Ho({},R0.visible,{editType:"calc+arraydraw"}),showlegend:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},legend:Ho({},R0.legend,{editType:"calc+arraydraw"}),legendgroup:Ho({},R0.legendgroup,{editType:"calc+arraydraw"}),legendgrouptitle:{text:Ho({},R0.legendgrouptitle.text,{editType:"calc+arraydraw"}),font:SV({editType:"calc+arraydraw"}),editType:"calc+arraydraw"},legendrank:Ho({},R0.legendrank,{editType:"calc+arraydraw"}),legendwidth:Ho({},R0.legendwidth,{editType:"calc+arraydraw"}),type:{valType:"enumerated",values:["circle","rect","path","line"],editType:"calc+arraydraw"},layer:{valType:"enumerated",values:["below","above","between"],dflt:"above",editType:"arraydraw"},xref:Ho({},LV.xref,{arrayOk:!0}),xsizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},xanchor:{valType:"any",editType:"calc+arraydraw"},x0:{valType:"any",editType:"calc+arraydraw"},x1:{valType:"any",editType:"calc+arraydraw"},x0shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},x1shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},yref:Ho({},LV.yref,{arrayOk:!0}),ysizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},yanchor:{valType:"any",editType:"calc+arraydraw"},y0:{valType:"any",editType:"calc+arraydraw"},y1:{valType:"any",editType:"calc+arraydraw"},y0shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},y1shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},path:{valType:"string",editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},line:{color:Ho({},qV.color,{editType:"arraydraw"}),width:Ho({},qV.width,{editType:"calc+arraydraw"}),dash:Ho({},lMe,{editType:"arraydraw"}),editType:"calc+arraydraw"},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd",editType:"arraydraw"},editable:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},label:{text:{valType:"string",dflt:"",editType:"arraydraw"},texttemplate:uMe({},{keys:Object.keys(cMe)}),texttemplatefallback:fMe({editType:"arraydraw"}),font:SV({editType:"calc+arraydraw",colorEditType:"arraydraw"}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"],editType:"arraydraw"},textangle:{valType:"angle",dflt:"auto",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],editType:"calc+arraydraw"},padding:{valType:"number",dflt:3,min:0,editType:"arraydraw"},editType:"arraydraw"},editType:"arraydraw"})});var EV=z((HJe,DV)=>{"use strict";var F0=ke(),ki=Yr(),vMe=Po(),hMe=S8(),jd=Vs();DV.exports=function(r,t){vMe(r,t,{name:"shapes",handleItemDefaults:pMe})};function dMe(e,r){return e?"bottom":r.indexOf("top")!==-1?"top":r.indexOf("bottom")!==-1?"bottom":"middle"}function pMe(e,r,t){function a(w,x){return F0.coerce(e,r,hMe,w,x)}r._isShape=!0;var n=a("visible");if(!n)return;var i=a("showlegend");a("legend"),a("legendgroup"),i&&(a("legendwidth"),a("legendgrouptitle.text"),F0.coerceFont(a,"legendgrouptitle.font"),a("legendrank"));var o=a("path"),l=o?"path":"rect",s=a("type",l),u=s!=="path";u&&delete r.path,a("editable"),a("layer"),a("opacity"),a("fillcolor"),a("fillrule");var f=a("line.width");f&&(a("line.color"),a("line.dash"));var c=a("xsizemode"),v=a("ysizemode");let d=[.25,.75],p=[0,10];["x","y"].forEach(w=>{var x=w+"anchor",_=w==="x"?c:v,k={_fullLayout:t},T,q,C,E;let P=w+"ref",R=e[P];if(Array.isArray(R)&&R.length>0){let N=jd.countDefiningCoords(s,o,w);E=ki.coerceRefArray(e,r,k,w,void 0,"paper",N),r["_"+w+"refArray"]=!0}else E=ki.coerceRef(e,r,k,w,void 0,"paper");if(Array.isArray(E))E.forEach(function(N){ki.getRefType(N)==="range"&&(T=ki.getFromId(k,N),T&&T._shapeIndices.indexOf(r._index)===-1&&T._shapeIndices.push(r._index))}),u&&[0,1].forEach(function(N){let I=E[N];ki.getRefType(I)==="range"?(T=ki.getFromId(k,I),q=jd.shapePositionToRange(T),C=jd.rangeToShapePosition(T),(T.type==="category"||T.type==="multicategory")&&a(w+N+"shift")):q=C=F0.identity;let U=w+N,Y=e[U];if(e[U]=q(e[U],!0),_==="pixel"?a(U,p[N]):ki.coercePosition(r,k,a,I,U,d[N]),r[U]=C(r[U]),e[U]=Y,N===0&&_==="pixel"){let G=e[x];e[x]=q(e[x],!0),ki.coercePosition(r,k,a,I,x,.25),r[x]=C(r[x]),e[x]=G}});else{if(ki.getRefType(E)==="range"?(T=ki.getFromId(k,E),T._shapeIndices.push(r._index),C=jd.rangeToShapePosition(T),q=jd.shapePositionToRange(T),u&&(T.type==="category"||T.type==="multicategory")&&(a(w+"0shift"),a(w+"1shift"))):q=C=F0.identity,u){let I=w+"0",O=w+"1",U=e[I],Y=e[O];e[I]=q(e[I],!0),e[O]=q(e[O],!0),_==="pixel"?(a(I,p[0]),a(O,p[1])):(ki.coercePosition(r,k,a,E,I,d[0]),ki.coercePosition(r,k,a,E,O,d[1])),r[I]=C(r[I]),r[O]=C(r[O]),e[I]=U,e[O]=Y}if(_==="pixel"){let I=e[x];e[x]=q(e[x],!0),ki.coercePosition(r,k,a,E,x,.25),r[x]=C(r[x]),e[x]=I}}}),u&&F0.noneOrAll(e,r,["x0","x1","y0","y1"]);var y=s==="line",m,b;if(u&&(m=a("label.texttemplate"),a("label.texttemplatefallback")),m||(b=a("label.text")),b||m){a("label.textangle");var A=a("label.textposition",y?"middle":"middle center");a("label.xanchor"),a("label.yanchor",dMe(y,A)),a("label.padding"),F0.coerceFont(a,"label.font",t.font)}}});var FV=z((UJe,RV)=>{"use strict";var mMe=qr(),PV=ke();function yMe(e,r){return e?"bottom":r.indexOf("top")!==-1?"top":r.indexOf("bottom")!==-1?"bottom":"middle"}RV.exports=function(r,t,a){a("newshape.visible"),a("newshape.name"),a("newshape.showlegend"),a("newshape.legend"),a("newshape.legendwidth"),a("newshape.legendgroup"),a("newshape.legendgrouptitle.text"),PV.coerceFont(a,"newshape.legendgrouptitle.font"),a("newshape.legendrank"),a("newshape.drawdirection"),a("newshape.layer"),a("newshape.fillcolor"),a("newshape.fillrule"),a("newshape.opacity");var n=a("newshape.line.width");if(n){var i=(r||{}).plot_bgcolor||"#FFF";a("newshape.line.color",mMe.contrast(i)),a("newshape.line.dash")}var o=r.dragmode==="drawline",l=a("newshape.label.text"),s=a("newshape.label.texttemplate");if(a("newshape.label.texttemplatefallback"),l||s){a("newshape.label.textangle");var u=a("newshape.label.textposition",o?"middle":"middle center");a("newshape.label.xanchor"),a("newshape.label.yanchor",yMe(o,u)),a("newshape.label.padding"),PV.coerceFont(a,"newshape.label.font",t.font)}a("activeshape.fillcolor"),a("activeshape.opacity")}});var UV=z((GJe,HV)=>{"use strict";var q8=ke(),oo=Yr(),Al=(ed(),ze(Qh)),L8=Vs();HV.exports=function(r){var t=r._fullLayout,a=q8.filterVisible(t.shapes);if(!(!a.length||!r._fullData.length))for(var n=0;n{o=oo.getFromId(r,c),i._extremes[o._id]=oo.findExtremes(o,v,NV(i))})}else i.xref!=="paper"&&s!=="domain"&&(o=oo.getFromId(r,i.xref),l=BV(o,i,Al.paramIsX),l&&(i._extremes[o._id]=oo.findExtremes(o,l,NV(i))));if(u==="array"){let f=zV(r,i,"y");Object.entries(f).forEach(([c,v])=>{o=oo.getFromId(r,c),i._extremes[o._id]=oo.findExtremes(o,v,IV(i))})}else i.yref!=="paper"&&u!=="domain"&&(o=oo.getFromId(r,i.yref),l=BV(o,i,Al.paramIsY),l&&(i._extremes[o._id]=oo.findExtremes(o,l,IV(i))))}};function zV(e,r,t){let a=r[t+"ref"],n=t==="x"?Al.paramIsX:Al.paramIsY;function i(c,v){c==="paper"||oo.getRefType(c)==="domain"||(o[c]||(o[c]=[]),o[c].push(v))}let o={};if(r.type==="path"&&r.path){let c=r.path.match(Al.segmentRE)||[];for(var l=0,s=0;sp&&(i(a[l],y[p]),l++)}}else i(a[0],r[t+"0"]),i(a[1],r[t+"1"]);let u={};for(let c in o){let v=oo.getFromId(e,c);if(v){var f=v.type==="category"||v.type==="multicategory"?v.r2c:v.d2c;v.type==="date"&&(f=L8.decodeDate(f)),u[v._id]=o[c].map(f)}}return u}function NV(e){return OV(e.line.width,e.xsizemode,e.x0,e.x1,e.path,!1)}function IV(e){return OV(e.line.width,e.ysizemode,e.y0,e.y1,e.path,!0)}function OV(e,r,t,a,n,i){var o=e/2,l=i;if(r==="pixel"){var s=n?L8.extractPathCoords(n,i?Al.paramIsY:Al.paramIsX):[t,a],u=q8.aggNums(Math.max,null,s),f=q8.aggNums(Math.min,null,s),c=f<0?Math.abs(f)+o:o,v=u>0?u+o:o;return{ppad:o,ppadplus:l?c:v,ppadminus:l?v:c}}else return{ppad:o}}function BV(e,r,t){var a=e._id.charAt(0)==="x"?"x":"y",n=e.type==="category"||e.type==="multicategory",i,o,l=0,s=0,u=n?e.r2c:e.d2c,f=r[a+"sizemode"]==="scaled";if(f?(i=r[a+"0"],o=r[a+"1"],n&&(l=r[a+"0shift"],s=r[a+"1shift"])):(i=r[a+"anchor"],o=r[a+"anchor"]),i!==void 0)return[u(i)+l,u(o)+s];if(r.path){var c=1/0,v=-1/0,d=r.path.match(Al.segmentRE),p,y,m,b,A;for(e.type==="date"&&(u=L8.decodeDate(u)),p=0;pv&&(v=A)));if(v>=c)return[c,v]}}});var VV=z((YJe,YV)=>{"use strict";var GV=hy();YV.exports={moduleType:"component",name:"shapes",layoutAttributes:S8(),supplyLayoutDefaults:EV(),supplyDrawNewShapeDefaults:FV(),includeBasePlot:Td()("shapes"),calcAutorange:UV(),draw:GV.draw,drawOne:GV.drawOne}});var C8=z((jJe,WV)=>{"use strict";var jV=(Pa(),ze(Ea)),gMe=Ct().templatedArray,VJe=(xd(),ze(bd));WV.exports=gMe("image",{visible:{valType:"boolean",dflt:!0,editType:"arraydraw"},source:{valType:"string",editType:"arraydraw"},layer:{valType:"enumerated",values:["below","above"],dflt:"above",editType:"arraydraw"},sizex:{valType:"number",dflt:0,editType:"arraydraw"},sizey:{valType:"number",dflt:0,editType:"arraydraw"},sizing:{valType:"enumerated",values:["fill","contain","stretch"],dflt:"contain",editType:"arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},x:{valType:"any",dflt:0,editType:"arraydraw"},y:{valType:"any",dflt:0,editType:"arraydraw"},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left",editType:"arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],dflt:"top",editType:"arraydraw"},xref:{valType:"enumerated",values:["paper",jV.idRegex.x.toString()],dflt:"paper",editType:"arraydraw"},yref:{valType:"enumerated",values:["paper",jV.idRegex.y.toString()],dflt:"paper",editType:"arraydraw"},editType:"arraydraw"})});var ZV=z((WJe,XV)=>{"use strict";var bMe=ke(),D8=Yr(),xMe=Po(),_Me=C8(),wMe="images";XV.exports=function(r,t){var a={name:wMe,handleItemDefaults:AMe};xMe(r,t,a)};function AMe(e,r,t){function a(v,d){return bMe.coerce(e,r,_Me,v,d)}var n=a("source"),i=a("visible",!!n);if(!i)return r;a("layer"),a("xanchor"),a("yanchor"),a("sizex"),a("sizey"),a("sizing"),a("opacity");for(var o={_fullLayout:t},l=["x","y"],s=0;s<2;s++){var u=l[s],f=D8.coerceRef(e,r,o,u,"paper",void 0);if(f!=="paper"){var c=D8.getFromId(o,f);c._imgIndices.push(r._index)}D8.coercePosition(r,o,a,f,u,0)}return r}});var QV=z((XJe,KV)=>{"use strict";var $V=Pr(),TMe=Jr(),z0=Yr(),JV=Aa(),MMe=(Vl(),ze(Yl));KV.exports=function(r){var t=r._fullLayout,a=[],n={},i=[],o,l;for(l=0;l{"use strict";var ej=Br(),kMe=V1();rj.exports=function(r,t,a,n){t=t||{};var i=a==="log"&&t.type==="linear",o=a==="linear"&&t.type==="log";if(i||o){for(var l=r._fullLayout.images,s=t._id.charAt(0),u,f,c=0;c{"use strict";aj.exports={moduleType:"component",name:"images",layoutAttributes:C8(),supplyLayoutDefaults:ZV(),includeBasePlot:Td()("images"),draw:QV(),convertCoords:tj()}});var qg={};qt(qg,{activeColor:()=>JMe,arrowOffsetX:()=>XMe,arrowPadX:()=>GMe,arrowSymbol:()=>QMe,autoMarginIdRoot:()=>IMe,blankHeaderOpts:()=>BMe,buttonClassName:()=>RMe,containerClassName:()=>qMe,dropdownButtonClassName:()=>PMe,dropdownButtonGroupClassName:()=>EMe,gapButton:()=>$Me,gapButtonHeader:()=>ZMe,headerArrowClassName:()=>DMe,headerClassName:()=>CMe,headerGroupClassName:()=>LMe,hoverColor:()=>KMe,itemRectClassName:()=>FMe,itemTextClassName:()=>zMe,menuIndexAttrName:()=>NMe,minHeight:()=>HMe,minWidth:()=>OMe,name:()=>SMe,rx:()=>YMe,ry:()=>VMe,textOffsetX:()=>jMe,textOffsetY:()=>WMe,textPadX:()=>UMe});var SMe,qMe,LMe,CMe,DMe,EMe,PMe,RMe,FMe,zMe,NMe,IMe,BMe,OMe,HMe,UMe,GMe,YMe,VMe,jMe,WMe,XMe,ZMe,$Me,JMe,KMe,QMe,Lg=St(()=>{"use strict";SMe="updatemenus",qMe="updatemenu-container",LMe="updatemenu-header-group",CMe="updatemenu-header",DMe="updatemenu-header-arrow",EMe="updatemenu-dropdown-button-group",PMe="updatemenu-dropdown-button",RMe="updatemenu-button",FMe="updatemenu-item-rect",zMe="updatemenu-item-text",NMe="updatemenu-active-index",IMe="updatemenu-",BMe={label:" "},OMe=30,HMe=30,UMe=24,GMe=16,YMe=2,VMe=2,jMe=12,WMe=3,XMe=4,ZMe=5,$Me=2,JMe="#F4FAFF",KMe="#F4FAFF",QMe={left:"\u25C4",right:"\u25BA",up:"\u25B2",down:"\u25BC"}});var E8=z((JJe,oj)=>{"use strict";var eke=Ca(),rke=Ii(),tke=Mt().extendFlat,ake=qo().overrideAll,nke=qp(),ij=Ct().templatedArray,ike=ij("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}});oj.exports=ake(ij("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:ike,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:tke(nke({editType:"arraydraw"}),{}),font:eke({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:rke.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")});var fj=z((KJe,uj)=>{"use strict";var Cg=ke(),lj=Po(),sj=E8(),oke=(Lg(),ze(qg)),lke=oke.name,ske=sj.buttons;uj.exports=function(r,t){var a={name:lke,handleItemDefaults:uke};lj(r,t,a)};function uke(e,r,t){function a(o,l){return Cg.coerce(e,r,sj,o,l)}var n=lj(e,r,{name:"buttons",handleItemDefaults:fke}),i=a("visible",n.length>0);i&&(a("active"),a("direction"),a("type"),a("showactive"),a("x"),a("y"),Cg.noneOrAll(e,r,["x","y"]),a("xanchor"),a("yanchor"),a("pad.t"),a("pad.r"),a("pad.b"),a("pad.l"),Cg.coerceFont(a,"font",t.font),a("bgcolor",t.paper_bgcolor),a("bordercolor"),a("borderwidth"))}function fke(e,r){function t(n,i){return Cg.coerce(e,r,ske,n,i)}var a=t("visible",e.method==="skip"||Array.isArray(e.args));a&&(t("method"),t("args"),t("args2"),t("label"),t("execute"))}});var hj=z((QJe,vj)=>{"use strict";vj.exports=$t;var Uo=Pr(),cj=qr(),N0=Jr(),Dg=ke();function $t(e,r,t){this.gd=e,this.container=r,this.id=t,this.position=null,this.translateX=null,this.translateY=null,this.hbar=null,this.vbar=null,this.bg=this.container.selectAll("rect.scrollbox-bg").data([0]),this.bg.exit().on(".drag",null).on("wheel",null).remove(),this.bg.enter().append("rect").classed("scrollbox-bg",!0).style("pointer-events","all").attr({opacity:0,x:0,y:0,width:0,height:0})}$t.barWidth=2;$t.barLength=20;$t.barRadius=2;$t.barPad=1;$t.barColor="#808BA4";$t.prototype.enable=function(r,t,a){var n=this.gd._fullLayout,i=n.width,o=n.height;this.position=r;var l=this.position.l,s=this.position.w,u=this.position.t,f=this.position.h,c=this.position.direction,v=c==="down",d=c==="left",p=c==="right",y=c==="up",m=s,b=f,A,w,x,_;!v&&!d&&!p&&!y&&(this.position.direction="down",v=!0);var k=v||y;k?(A=l,w=A+m,v?(x=u,_=Math.min(x+b,o),b=_-x):(_=u+b,x=Math.max(_-b,0),b=_-x)):(x=u,_=x+b,d?(w=l+m,A=Math.max(w-m,0),m=w-A):(A=l,w=Math.min(A+m,i),m=w-A)),this._box={l:A,t:x,w:m,h:b};var T=s>m,q=$t.barLength+2*$t.barPad,C=$t.barWidth+2*$t.barPad,E=l,P=u+f;P+C>o&&(P=o-C);var R=this.container.selectAll("rect.scrollbar-horizontal").data(T?[0]:[]);R.exit().on(".drag",null).remove(),R.enter().append("rect").classed("scrollbar-horizontal",!0).call(cj.fill,$t.barColor),T?(this.hbar=R.attr({rx:$t.barRadius,ry:$t.barRadius,x:E,y:P,width:q,height:C}),this._hbarXMin=E+q/2,this._hbarTranslateMax=m-q):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var N=f>b,I=$t.barWidth+2*$t.barPad,O=$t.barLength+2*$t.barPad,U=l+s,Y=u;U+I>i&&(U=i-I);var G=this.container.selectAll("rect.scrollbar-vertical").data(N?[0]:[]);G.exit().on(".drag",null).remove(),G.enter().append("rect").classed("scrollbar-vertical",!0).call(cj.fill,$t.barColor),N?(this.vbar=G.attr({rx:$t.barRadius,ry:$t.barRadius,x:U,y:Y,width:I,height:O}),this._vbarYMin=Y+O/2,this._vbarTranslateMax=b-O):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var V=this.id,W=A-.5,j=N?w+I+.5:w+.5,J=x-.5,te=T?_+C+.5:_+.5,ae=n._topdefs.selectAll("#"+V).data(T||N?[0]:[]);if(ae.exit().remove(),ae.enter().append("clipPath").attr("id",V).append("rect"),T||N?(this._clipRect=ae.select("rect").attr({x:Math.floor(W),y:Math.floor(J),width:Math.ceil(j)-Math.floor(W),height:Math.ceil(te)-Math.floor(J)}),this.container.call(N0.setClipUrl,V,this.gd),this.bg.attr({x:l,y:u,width:s,height:f})):(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(N0.setClipUrl,null),delete this._clipRect),T||N){var se=Uo.behavior.drag().on("dragstart",function(){Uo.event.sourceEvent.preventDefault()}).on("drag",this._onBoxDrag.bind(this));this.container.on("wheel",null).on("wheel",this._onBoxWheel.bind(this)).on(".drag",null).call(se);var $=Uo.behavior.drag().on("dragstart",function(){Uo.event.sourceEvent.preventDefault(),Uo.event.sourceEvent.stopPropagation()}).on("drag",this._onBarDrag.bind(this));T&&this.hbar.on(".drag",null).call($),N&&this.vbar.on(".drag",null).call($)}this.setTranslate(t,a)};$t.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(N0.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)};$t.prototype._onBoxDrag=function(){var r=this.translateX,t=this.translateY;this.hbar&&(r-=Uo.event.dx),this.vbar&&(t-=Uo.event.dy),this.setTranslate(r,t)};$t.prototype._onBoxWheel=function(){var r=this.translateX,t=this.translateY;this.hbar&&(r+=Uo.event.deltaY),this.vbar&&(t+=Uo.event.deltaY),this.setTranslate(r,t)};$t.prototype._onBarDrag=function(){var r=this.translateX,t=this.translateY;if(this.hbar){var a=r+this._hbarXMin,n=a+this._hbarTranslateMax,i=Dg.constrain(Uo.event.x,a,n),o=(i-a)/(n-a),l=this.position.w-this._box.w;r=o*l}if(this.vbar){var s=t+this._vbarYMin,u=s+this._vbarTranslateMax,f=Dg.constrain(Uo.event.y,s,u),c=(f-s)/(u-s),v=this.position.h-this._box.h;t=c*v}this.setTranslate(r,t)};$t.prototype.setTranslate=function(r,t){var a=this.position.w-this._box.w,n=this.position.h-this._box.h;if(r=Dg.constrain(r||0,0,a),t=Dg.constrain(t||0,0,n),this.translateX=r,this.translateY=t,this.container.call(N0.setTranslate,this._box.l-this.position.l-r,this._box.t-this.position.t-t),this._clipRect&&this._clipRect.attr({x:Math.floor(this.position.l+r-.5),y:Math.floor(this.position.t+t-.5)}),this.hbar){var i=r/a;this.hbar.call(N0.setTranslate,r+i*this._hbarTranslateMax,t)}if(this.vbar){var o=t/n;this.vbar.call(N0.setTranslate,r,t+o*this._vbarTranslateMax)}}});var Aj=z((eKe,wj)=>{"use strict";var I0=Pr(),Wd=ma(),Xd=qr(),B0=Jr(),Si=ke(),Eg=Fa(),cke=Ct().arrayEditor,pj=(on(),ze(nn)).LINE_SPACING,Lr=(Lg(),ze(qg)),vke=hj();wj.exports=function(r){var t=r._fullLayout,a=Si.filterVisible(t[Lr.name]);function n(v){Wd.autoMargin(r,xj(v))}var i=t._menulayer.selectAll("g."+Lr.containerClassName).data(a.length>0?[0]:[]);if(i.enter().append("g").classed(Lr.containerClassName,!0).style("cursor","pointer"),i.exit().each(function(){I0.select(this).selectAll("g."+Lr.headerGroupClassName).each(n)}).remove(),a.length!==0){var o=i.selectAll("g."+Lr.headerGroupClassName).data(a,hke);o.enter().append("g").classed(Lr.headerGroupClassName,!0);for(var l=Si.ensureSingle(i,"g",Lr.dropdownButtonGroupClassName,function(v){v.style("pointer-events","all")}),s=0;s{"use strict";var xke=(Lg(),ze(qg));Tj.exports={moduleType:"component",name:xke.name,layoutAttributes:E8(),supplyLayoutDefaults:fj(),draw:Aj()}});var $d={};qt($d,{arrowOffsetX:()=>Oke,autoMarginIdRoot:()=>zke,containerClassName:()=>wke,currentValueClass:()=>Pke,currentValueInset:()=>hSe,currentValuePadding:()=>vSe,gripBgActiveColor:()=>tSe,gripBgColor:()=>rSe,gripBorder:()=>Kke,gripBorderColor:()=>eSe,gripBorderWidth:()=>Qke,gripHeight:()=>Jke,gripRadius:()=>Zke,gripRectClass:()=>Ske,gripWidth:()=>$ke,groupClassName:()=>Ake,inputAreaClass:()=>Tke,inputProxyClass:()=>Lke,labelClass:()=>Eke,labelGroupClass:()=>Dke,labelOffset:()=>nSe,labelPadding:()=>aSe,labelsClass:()=>Cke,menuIndexAttrName:()=>Fke,minHeight:()=>Ike,minWidth:()=>Nke,minorTickColor:()=>fSe,minorTickLength:()=>cSe,minorTickOffset:()=>uSe,name:()=>_ke,railBgColor:()=>jke,railBorder:()=>Gke,railBorderColor:()=>Vke,railBorderWidth:()=>Yke,railHeight:()=>Rke,railInset:()=>Wke,railRadius:()=>Hke,railRectClass:()=>Mke,railTouchRectClass:()=>kke,railWidth:()=>Uke,stepInset:()=>Xke,textPadX:()=>Bke,tickColor:()=>oSe,tickLength:()=>sSe,tickOffset:()=>lSe,tickRectClass:()=>qke,tickWidth:()=>iSe});var _ke,wke,Ake,Tke,Mke,kke,Ske,qke,Lke,Cke,Dke,Eke,Pke,Rke,Fke,zke,Nke,Ike,Bke,Oke,Hke,Uke,Gke,Yke,Vke,jke,Wke,Xke,Zke,$ke,Jke,Kke,Qke,eSe,rSe,tSe,aSe,nSe,iSe,oSe,lSe,sSe,uSe,fSe,cSe,vSe,hSe,Jd=St(()=>{"use strict";_ke="sliders",wke="slider-container",Ake="slider-group",Tke="slider-input-area",Mke="slider-rail-rect",kke="slider-rail-touch-rect",Ske="slider-grip-rect",qke="slider-tick-rect",Lke="slider-input-proxy",Cke="slider-labels",Dke="slider-label-group",Eke="slider-label",Pke="slider-current-value",Rke=5,Fke="slider-active-index",zke="slider-",Nke=30,Ike=30,Bke=40,Oke=4,Hke=2,Uke=5,Gke=4,Yke=1,Vke="#bec8d9",jke="#f8fafc",Wke=8,Xke=10,Zke=10,$ke=20,Jke=20,Kke=20,Qke=1,eSe="#bec8d9",rSe="#f6f8fa",tSe="#dbdde0",aSe=8,nSe=0,iSe=1,oSe="#333",lSe=25,sSe=7,uSe=25,fSe="#333",cSe=4,vSe=8,hSe=0});var z8=z((tKe,qj)=>{"use strict";var kj=Ca(),dSe=qp(),pSe=Mt().extendDeepAll,mSe=qo().overrideAll,ySe=Ah(),Sj=Ct().templatedArray,Cf=(Jd(),ze($d)),gSe=Sj("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}});qj.exports=mSe(Sj("slider",{visible:{valType:"boolean",dflt:!0},active:{valType:"number",min:0,dflt:0},steps:gSe,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:pSe(dSe({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:ySe.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:kj({})},font:kj({}),activebgcolor:{valType:"color",dflt:Cf.gripBgActiveColor},bgcolor:{valType:"color",dflt:Cf.railBgColor},bordercolor:{valType:"color",dflt:Cf.railBorderColor},borderwidth:{valType:"number",min:0,dflt:Cf.railBorderWidth},ticklen:{valType:"number",min:0,dflt:Cf.tickLength},tickcolor:{valType:"color",dflt:Cf.tickColor},tickwidth:{valType:"number",min:0,dflt:1},minorticklen:{valType:"number",min:0,dflt:Cf.minorTickLength}}),"arraydraw","from-root")});var Ej=z((aKe,Dj)=>{"use strict";var O0=ke(),Lj=Po(),Cj=z8(),bSe=(Jd(),ze($d)),xSe=bSe.name,_Se=Cj.steps;Dj.exports=function(r,t){Lj(r,t,{name:xSe,handleItemDefaults:wSe})};function wSe(e,r,t){function a(c,v){return O0.coerce(e,r,Cj,c,v)}for(var n=Lj(e,r,{name:"steps",handleItemDefaults:ASe}),i=0,o=0;o{"use strict";var Go=Pr(),Pg=ma(),Ks=qr(),Yo=Jr(),qi=ke(),TSe=qi.strTranslate,Kd=Fa(),MSe=Ct().arrayEditor,Hr=(Jd(),ze($d)),B8=(on(),ze(nn)),Fj=B8.LINE_SPACING,N8=B8.FROM_TL,I8=B8.FROM_BR;Hj.exports=function(r){var t=r._context.staticPlot,a=r._fullLayout,n=kSe(a,r),i=a._infolayer.selectAll("g."+Hr.containerClassName).data(n.length>0?[0]:[]);i.enter().append("g").classed(Hr.containerClassName,!0).style("cursor",t?null:"ew-resize");function o(f){f._commandObserver&&(f._commandObserver.remove(),delete f._commandObserver),Pg.autoMargin(r,zj(f))}if(i.exit().each(function(){Go.select(this).selectAll("g."+Hr.groupClassName).each(o)}).remove(),n.length!==0){var l=i.selectAll("g."+Hr.groupClassName).data(n,SSe);l.enter().append("g").classed(Hr.groupClassName,!0),l.exit().each(o).remove();for(var s=0;s0&&(l=l.transition().duration(r.transition.duration).ease(r.transition.easing)),l.attr("transform",TSe(o-Hr.gripWidth*.5,r._dims.currentValueTotalHeight))}}function O8(e,r){var t=e._dims;return t.inputAreaStart+Hr.stepInset+(t.inputAreaLength-2*Hr.stepInset)*Math.min(1,Math.max(0,r))}function Rj(e,r){var t=e._dims;return Math.min(1,Math.max(0,(r-Hr.stepInset-t.inputAreaStart)/(t.inputAreaLength-2*Hr.stepInset-2*t.inputAreaStart)))}function RSe(e,r,t){var a=t._dims,n=qi.ensureSingle(e,"rect",Hr.railTouchRectClass,function(i){i.call(Bj,r,e,t).style("pointer-events","all")});n.attr({width:a.inputAreaLength,height:Math.max(a.inputAreaWidth,Hr.tickOffset+t.ticklen+a.labelHeight)}).call(Ks.fill,t.bgcolor).attr("opacity",0),Yo.setTranslate(n,0,a.currentValueTotalHeight)}function FSe(e,r){var t=r._dims,a=t.inputAreaLength-Hr.railInset*2,n=qi.ensureSingle(e,"rect",Hr.railRectClass);n.attr({width:a,height:Hr.railWidth,rx:Hr.railRadius,ry:Hr.railRadius,"shape-rendering":"crispEdges"}).call(Ks.stroke,r.bordercolor).call(Ks.fill,r.bgcolor).style("stroke-width",r.borderwidth+"px"),Yo.setTranslate(n,Hr.railInset,(t.inputAreaWidth-Hr.railWidth)*.5+t.currentValueTotalHeight)}});var Yj=z((iKe,Gj)=>{"use strict";var zSe=(Jd(),ze($d));Gj.exports={moduleType:"component",name:zSe.name,layoutAttributes:z8(),supplyLayoutDefaults:Ej(),draw:Uj()}});var Fg=z((oKe,jj)=>{"use strict";var Vj=Ii();jj.exports={bgcolor:{valType:"color",dflt:Vj.background,editType:"plot"},bordercolor:{valType:"color",dflt:Vj.defaultLine,editType:"plot"},borderwidth:{valType:"integer",dflt:0,min:0,editType:"plot"},autorange:{valType:"boolean",dflt:!0,editType:"calc",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},range:{valType:"info_array",items:[{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}},{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}}],editType:"calc",impliedEdits:{autorange:!1}},thickness:{valType:"number",dflt:.15,min:0,max:1,editType:"plot"},visible:{valType:"boolean",dflt:!0,editType:"calc"},editType:"calc"}});var H8=z((lKe,Wj)=>{"use strict";Wj.exports={_isSubplotObj:!0,rangemode:{valType:"enumerated",values:["auto","fixed","match"],dflt:"match",editType:"calc"},range:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},editType:"calc"}});var zg={};qt(zg,{bgClassName:()=>BSe,containerClassName:()=>ISe,extraPad:()=>sqe,grabAreaCursor:()=>aqe,grabAreaFill:()=>tqe,grabAreaMaxClassName:()=>XSe,grabAreaMinClassName:()=>VSe,grabAreaWidth:()=>nqe,grabberMaxClassName:()=>WSe,grabberMinClassName:()=>YSe,handleMaxClassName:()=>ZSe,handleMinClassName:()=>jSe,handleRadius:()=>oqe,handleStrokeWidth:()=>lqe,handleWidth:()=>iqe,maskColor:()=>KSe,maskMaxClassName:()=>USe,maskMaxOppAxisClassName:()=>JSe,maskMinClassName:()=>HSe,maskMinOppAxisClassName:()=>$Se,maskOppAxisColor:()=>QSe,name:()=>NSe,rangePlotClassName:()=>OSe,slideBoxClassName:()=>GSe,slideBoxCursor:()=>rqe,slideBoxFill:()=>eqe});var NSe,ISe,BSe,OSe,HSe,USe,GSe,YSe,VSe,jSe,WSe,XSe,ZSe,$Se,JSe,KSe,QSe,eqe,rqe,tqe,aqe,nqe,iqe,oqe,lqe,sqe,Ng=St(()=>{"use strict";NSe="rangeslider",ISe="rangeslider-container",BSe="rangeslider-bg",OSe="rangeslider-rangeplot",HSe="rangeslider-mask-min",USe="rangeslider-mask-max",GSe="rangeslider-slidebox",YSe="rangeslider-grabber-min",VSe="rangeslider-grabarea-min",jSe="rangeslider-handle-min",WSe="rangeslider-grabber-max",XSe="rangeslider-grabarea-max",ZSe="rangeslider-handle-max",$Se="rangeslider-mask-min-opp-axis",JSe="rangeslider-mask-max-opp-axis",KSe="rgba(0,0,0,0.4)",QSe="rgba(0,0,0,0.2)",eqe="transparent",rqe="ew-resize",tqe="transparent",aqe="col-resize",nqe=10,iqe=4,oqe=1,lqe=1,sqe=15});var $j=z(Bg=>{"use strict";var uqe=Aa(),fqe=Fa(),Xj=(Ng(),ze(zg)),cqe=(on(),ze(nn)).LINE_SPACING,Ig=Xj.name;function Zj(e){var r=e&&e[Ig];return r&&r.visible}Bg.isVisible=Zj;Bg.makeData=function(e){for(var r=uqe.list({_fullLayout:e},"x",!0),t=e.margin,a=[],n=0;n{"use strict";var Og=ke(),Jj=Ct(),Kj=Aa(),vqe=Fg(),hqe=H8();Qj.exports=function(r,t,a){var n=r[a],i=t[a];if(!(n.rangeslider||t._requestRangeslider[i._id]))return;Og.isPlainObject(n.rangeslider)||(n.rangeslider={});var o=n.rangeslider,l=Jj.newContainer(i,"rangeslider");function s(_,k){return Og.coerce(o,l,vqe,_,k)}var u,f;function c(_,k){return Og.coerce(u,f,hqe,_,k)}var v=s("visible");if(v){s("bgcolor",t.plot_bgcolor),s("bordercolor"),s("borderwidth"),s("thickness"),s("autorange",!i.isValidRange(o.range)),s("range");var d=t._subplots;if(d)for(var p=d.cartesian.filter(function(_){return _.slice(0,Math.max(0,_.indexOf("y")))===Kj.name2id(a)}).map(function(_){return _.slice(_.indexOf("y"),_.length)}),y=Og.simpleMap(p,Kj.id2name),m=0;m{"use strict";var dqe=Aa().list,pqe=Bh().getAutoRange,mqe=(Ng(),ze(zg));rW.exports=function(r){for(var t=dqe(r,"x",!0),a=0;a{"use strict";var Hg=Pr(),yqe=Tr(),gqe=ma(),ua=ke(),Ug=ua.strTranslate,nW=Jr(),Qs=qr(),bqe=n0(),xqe=io(),U8=Aa(),_qe=Vi(),wqe=Os(),Wr=(Ng(),ze(zg));iW.exports=function(e){for(var r=e._fullLayout,t=r._rangeSliderData,a=0;a=G.max)U=P[Y+1];else if(O=G.pmax)U=P[Y+1];else if(O0?e.touches[0].clientX:0}function Aqe(e,r,t,a){if(r._context.staticPlot)return;var n=e.select("rect."+Wr.slideBoxClassName).node(),i=e.select("rect."+Wr.grabAreaMinClassName).node(),o=e.select("rect."+Wr.grabAreaMaxClassName).node();function l(){var s=Hg.event,u=s.target,f=aW(s),c=f-e.node().getBoundingClientRect().left,v=a.d2p(t._rl[0]),d=a.d2p(t._rl[1]),p=_qe.coverSlip();this.addEventListener("touchmove",y),this.addEventListener("touchend",m),p.addEventListener("mousemove",y),p.addEventListener("mouseup",m);function y(b){var A=aW(b),w=+A-f,x,_,k;switch(u){case n:if(k="ew-resize",v+w>t._length||d+w<0)return;x=v+w,_=d+w;break;case i:if(k="col-resize",v+w>t._length)return;x=v+w,_=d;break;case o:if(k="col-resize",d+w<0)return;x=v,_=d+w;break;default:k="ew-resize",x=c,_=c+w;break}if(_{"use strict";var Pqe=ke(),Rqe=Fg(),Fqe=H8(),G8=$j();lW.exports={moduleType:"component",name:"rangeslider",schema:{subplots:{xaxis:{rangeslider:Pqe.extendFlat({},Rqe,{yaxis:Fqe})}}},layoutAttributes:Fg(),handleDefaults:eW(),calcAutorange:tW(),draw:oW(),isVisible:G8.isVisible,makeData:G8.makeData,autoMarginOpts:G8.autoMarginOpts}});var Gg=z((hKe,fW)=>{"use strict";var zqe=Ca(),uW=Ii(),Nqe=Ct().templatedArray,Iqe=Nqe("button",{visible:{valType:"boolean",dflt:!0,editType:"plot"},step:{valType:"enumerated",values:["month","year","day","hour","minute","second","all"],dflt:"month",editType:"plot"},stepmode:{valType:"enumerated",values:["backward","todate"],dflt:"backward",editType:"plot"},count:{valType:"number",min:0,dflt:1,editType:"plot"},label:{valType:"string",editType:"plot"},editType:"plot"});fW.exports={visible:{valType:"boolean",editType:"plot"},buttons:Iqe,x:{valType:"number",min:-2,max:3,editType:"plot"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"plot"},y:{valType:"number",min:-2,max:3,editType:"plot"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"bottom",editType:"plot"},font:zqe({editType:"plot"}),bgcolor:{valType:"color",dflt:uW.lightLine,editType:"plot"},activecolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:uW.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"}});var Y8={};qt(Y8,{darkAmount:()=>Yqe,lightAmount:()=>Gqe,minButtonWidth:()=>Oqe,rx:()=>Hqe,ry:()=>Uqe,yPad:()=>Bqe});var Bqe,Oqe,Hqe,Uqe,Gqe,Yqe,V8=St(()=>{"use strict";Bqe=.02,Oqe=30,Hqe=3,Uqe=3,Gqe=25,Yqe=10});var hW=z((dKe,vW)=>{"use strict";var Yg=ke(),Vqe=qr(),jqe=Ct(),Wqe=Po(),cW=Gg(),j8=(V8(),ze(Y8));vW.exports=function(r,t,a,n,i){var o=r.rangeselector||{},l=jqe.newContainer(t,"rangeselector");function s(d,p){return Yg.coerce(o,l,cW,d,p)}var u=Wqe(o,l,{name:"buttons",handleItemDefaults:Xqe,calendar:i}),f=s("visible",u.length>0);if(f){var c=Zqe(t,a,n);s("x",c[0]),s("y",c[1]),Yg.noneOrAll(r,t,["x","y"]),s("xanchor"),s("yanchor"),Yg.coerceFont(s,"font",a.font);var v=s("bgcolor");s("activecolor",Vqe.contrast(v,j8.lightAmount,j8.darkAmount)),s("bordercolor"),s("borderwidth")}};function Xqe(e,r,t,a){var n=a.calendar;function i(s,u){return Yg.coerce(e,r,cW.buttons,s,u)}var o=i("visible");if(o){var l=i("step");l!=="all"&&(n&&n!=="gregorian"&&(l==="month"||l==="year")?r.stepmode="backward":i("stepmode"),i("count")),i("label")}}function Zqe(e,r,t){for(var a=t.filter(function(l){return r[l].anchor===e._id}),n=0,i=0;i{"use strict";var $qe=u5(),Jqe=ke().titleCase;dW.exports=function(r,t){var a=r._name,n={};if(t.step==="all")n[a+".autorange"]=!0;else{var i=Kqe(r,t);n[a+".range[0]"]=i[0],n[a+".range[1]"]=i[1]}return n};function Kqe(e,r){var t=e.range,a=new Date(e.r2l(t[1])),n=r.step,i=$qe["utc"+Jqe(n)],o=r.count,l;switch(r.stepmode){case"backward":l=e.l2r(+i.offset(a,-o));break;case"todate":var s=i.offset(a,-o);l=e.l2r(+i.ceil(s));break}var u=t[1];return[l,u]}});var AW=z((mKe,wW)=>{"use strict";var jg=Pr(),Qqe=Tr(),eLe=ma(),mW=qr(),_W=Jr(),rs=ke(),yW=rs.strTranslate,Vg=Fa(),rLe=Aa(),Z8=(on(),ze(nn)),gW=Z8.LINE_SPACING,bW=Z8.FROM_TL,xW=Z8.FROM_BR,X8=(V8(),ze(Y8)),tLe=pW();wW.exports=function(r){var t=r._fullLayout,a=t._infolayer.selectAll(".rangeselector").data(aLe(r),nLe);a.enter().append("g").classed("rangeselector",!0),a.exit().remove(),a.style({cursor:"pointer","pointer-events":"all"}),a.each(function(n){var i=jg.select(this),o=n,l=o.rangeselector,s=i.selectAll("g.button").data(rs.filterVisible(l.buttons));s.enter().append("g").classed("button",!0),s.exit().remove(),s.each(function(u){var f=jg.select(this),c=tLe(o,u);u._isActive=iLe(o,u,c),f.call(W8,l,u),f.call(lLe,l,u,r),f.on("click",function(){r._dragged||Qqe.call("_guiRelayout",r,c)}),f.on("mouseover",function(){u._isHovered=!0,f.call(W8,l,u)}),f.on("mouseout",function(){u._isHovered=!1,f.call(W8,l,u)})}),uLe(r,s,l,o._name,i)})};function aLe(e){for(var r=rLe.list(e,"x",!0),t=[],a=0;a{"use strict";TW.exports={moduleType:"component",name:"rangeselector",schema:{subplots:{xaxis:{rangeselector:Gg()}}},layoutAttributes:Gg(),handleDefaults:hW(),draw:AW()}});var H0=z($8=>{"use strict";var kW=Mt().extendFlat;$8.attributes=function(e,r){e=e||{},r=r||{};var t={valType:"info_array",editType:e.editType,items:[{valType:"number",min:0,max:1,editType:e.editType},{valType:"number",min:0,max:1,editType:e.editType}],dflt:[0,1]},a=e.name?e.name+" ":"",n=e.trace?"trace":"subplot",i=r.description?" "+r.description:"",o={x:kW({},t,{}),y:kW({},t,{}),editType:e.editType};return e.noGridCell||(o.row={valType:"integer",min:0,dflt:0,editType:e.editType},o.column={valType:"integer",min:0,dflt:0,editType:e.editType}),o};$8.defaults=function(e,r,t,a){var n=a&&a.x||[0,1],i=a&&a.y||[0,1],o=r.grid;if(o){var l=t("domain.column");l!==void 0&&(l{"use strict";var fLe=ke(),cLe=(Fc(),ze(_h)).counter,vLe=H0().attributes,SW=(Pa(),ze(Ea)).idRegex,hLe=Ct(),J8={rows:{valType:"integer",min:1,editType:"plot"},roworder:{valType:"enumerated",values:["top to bottom","bottom to top"],dflt:"top to bottom",editType:"plot"},columns:{valType:"integer",min:1,editType:"plot"},subplots:{valType:"info_array",freeLength:!0,dimensions:2,items:{valType:"enumerated",values:[cLe("xy").toString(),""],editType:"plot"},editType:"plot"},xaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[SW.x.toString(),""],editType:"plot"},editType:"plot"},yaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[SW.y.toString(),""],editType:"plot"},editType:"plot"},pattern:{valType:"enumerated",values:["independent","coupled"],dflt:"coupled",editType:"plot"},xgap:{valType:"number",min:0,max:1,editType:"plot"},ygap:{valType:"number",min:0,max:1,editType:"plot"},domain:vLe({name:"grid",editType:"plot",noGridCell:!0},{}),xside:{valType:"enumerated",values:["bottom","bottom plot","top plot","top"],dflt:"bottom plot",editType:"plot"},yside:{valType:"enumerated",values:["left","left plot","right plot","right"],dflt:"left plot",editType:"plot"},editType:"plot"};function Wg(e,r,t){var a=r[t+"axes"],n=Object.keys((e._splomAxes||{})[t]||{});if(Array.isArray(a))return a;if(n.length)return n}function dLe(e,r){var t=e.grid||{},a=Wg(r,t,"x"),n=Wg(r,t,"y");if(!e.grid&&!a&&!n)return;var i=Array.isArray(t.subplots)&&Array.isArray(t.subplots[0]),o=Array.isArray(a),l=Array.isArray(n),s=o&&a!==t.xaxes&&l&&n!==t.yaxes,u,f;i?(u=t.subplots.length,f=t.subplots[0].length):(l&&(u=n.length),o&&(f=a.length));var c=hLe.newContainer(r,"grid");function v(k,T){return fLe.coerce(t,c,J8,k,T)}var d=v("rows",u),p=v("columns",f);if(!(d*p>1)){delete r.grid;return}if(!i&&!o&&!l){var y=v("pattern")==="independent";y&&(i=!0)}c._hasSubplotGrid=i;var m=v("roworder"),b=m==="top to bottom",A=i?.2:.1,w=i?.3:.1,x,_;s&&r._splomGridDflt&&(x=r._splomGridDflt.xside,_=r._splomGridDflt.yside),c._domains={x:qW("x",v,A,x,p),y:qW("y",v,w,_,d,b)}}function qW(e,r,t,a,n,i){var o=r(e+"gap",t),l=r("domain."+e);r(e+"side",a);for(var s=new Array(n),u=l[0],f=(l[1]-u)/(n-o),c=f*(1-o),v=0;v{"use strict";EW.exports={visible:{valType:"boolean",editType:"calc"},type:{valType:"enumerated",values:["percent","constant","sqrt","data"],editType:"calc"},symmetric:{valType:"boolean",editType:"calc"},array:{valType:"data_array",editType:"calc"},arrayminus:{valType:"data_array",editType:"calc"},value:{valType:"number",min:0,dflt:10,editType:"calc"},valueminus:{valType:"number",min:0,dflt:10,editType:"calc"},traceref:{valType:"integer",min:0,dflt:0,editType:"style"},tracerefminus:{valType:"integer",min:0,dflt:0,editType:"style"},copy_ystyle:{valType:"boolean",editType:"plot"},copy_zstyle:{valType:"boolean",editType:"style"},color:{valType:"color",editType:"style"},thickness:{valType:"number",min:0,dflt:2,editType:"style"},width:{valType:"number",min:0,editType:"plot"},editType:"calc"}});var FW=z((_Ke,RW)=>{"use strict";var PW=Br(),mLe=Tr(),yLe=ke(),gLe=Ct(),bLe=K8();RW.exports=function(e,r,t,a){var n="error_"+a.axis,i=gLe.newContainer(r,n),o=e[n]||{};function l(p,y){return yLe.coerce(o,i,bLe,p,y)}var s=o.array!==void 0||o.value!==void 0||o.type==="sqrt",u=l("visible",s);if(u!==!1){var f=l("type","array"in o?"data":"percent"),c=!0;f!=="sqrt"&&(c=l("symmetric",!((f==="data"?"arrayminus":"valueminus")in o))),f==="data"?(l("array"),l("traceref"),c||(l("arrayminus"),l("tracerefminus"))):(f==="percent"||f==="constant")&&(l("value"),c||l("valueminus"));var v="copy_"+a.inherit+"style";if(a.inherit){var d=r["error_"+a.inherit];(d||{}).visible&&l(v,!(o.color||PW(o.thickness)||PW(o.width)))}(!a.inherit||!i[v])&&(l("color",t),l("thickness"),l("width",mLe.traceIs(r,"gl3d")?0:4))}}});var Q8=z((wKe,NW)=>{"use strict";NW.exports=function(r){var t=r.type,a=r.symmetric;if(t==="data"){var n=r.array||[];if(a)return function(u,f){var c=+n[f];return[c,c]};var i=r.arrayminus||[];return function(u,f){var c=+n[f],v=+i[f];return!isNaN(c)||!isNaN(v)?[v||0,c||0]:[NaN,NaN]}}else{var o=zW(t,r.value),l=zW(t,r.valueminus);return a||r.valueminus===void 0?function(u){var f=o(u);return[f,f]}:function(u){return[l(u),o(u)]}}};function zW(e,r){if(e==="percent")return function(t){return Math.abs(t*r/100)};if(e==="constant")return function(){return Math.abs(r)};if(e==="sqrt")return function(t){return Math.sqrt(Math.abs(t))}}});var OW=z((AKe,BW)=>{"use strict";var e9=Br(),xLe=Tr(),r9=Yr(),_Le=ke(),wLe=Q8();BW.exports=function(r){for(var t=r.calcdata,a=0;a{"use strict";var HW=Pr(),eu=Br(),ALe=Jr(),TLe=ri();UW.exports=function(r,t,a,n){var i,o=a.xaxis,l=a.yaxis,s=n&&n.duration>0,u=r._context.staticPlot;t.each(function(f){var c=f[0].trace,v=c.error_x||{},d=c.error_y||{},p;c.ids&&(p=function(A){return A.id});var y=TLe.hasMarkers(c)&&c.marker.maxdisplayed>0;!d.visible&&!v.visible&&(f=[]);var m=HW.select(this).selectAll("g.errorbar").data(f,p);if(m.exit().remove(),!!f.length){v.visible||m.selectAll("path.xerror").remove(),d.visible||m.selectAll("path.yerror").remove(),m.style("opacity",1);var b=m.enter().append("g").classed("errorbar",!0);s&&b.style("opacity",0).transition().duration(n.duration).style("opacity",1),ALe.setClipUrl(m,a.layerClipId,r),m.each(function(A){var w=HW.select(this),x=MLe(A,o,l);if(!(y&&!A.vis)){var _,k=w.select("path.yerror");if(d.visible&&eu(x.x)&&eu(x.yh)&&eu(x.ys)){var T=d.width;_="M"+(x.x-T)+","+x.yh+"h"+2*T+"m-"+T+",0V"+x.ys,x.noYS||(_+="m-"+T+",0h"+2*T),i=!k.size(),i?k=w.append("path").style("vector-effect",u?"none":"non-scaling-stroke").classed("yerror",!0):s&&(k=k.transition().duration(n.duration).ease(n.easing)),k.attr("d",_)}else k.remove();var q=w.select("path.xerror");if(v.visible&&eu(x.y)&&eu(x.xh)&&eu(x.xs)){var C=(v.copy_ystyle?d:v).width;_="M"+x.xh+","+(x.y-C)+"v"+2*C+"m0,-"+C+"H"+x.xs,x.noXS||(_+="m0,-"+C+"v"+2*C),i=!q.size(),i?q=w.append("path").style("vector-effect",u?"none":"non-scaling-stroke").classed("xerror",!0):s&&(q=q.transition().duration(n.duration).ease(n.easing)),q.attr("d",_)}else q.remove()}})}})};function MLe(e,r,t){var a={x:r.c2p(e.x),y:t.c2p(e.y)};return e.yh!==void 0&&(a.yh=t.c2p(e.yh),a.ys=t.c2p(e.ys),eu(a.ys)||(a.noYS=!0,a.ys=t.c2p(e.ys,!0))),e.xh!==void 0&&(a.xh=r.c2p(e.xh),a.xs=r.c2p(e.xs),eu(a.xs)||(a.noXS=!0,a.xs=r.c2p(e.xs,!0))),a}});var jW=z((MKe,VW)=>{"use strict";var kLe=Pr(),YW=qr();VW.exports=function(r){r.each(function(t){var a=t[0].trace,n=a.error_y||{},i=a.error_x||{},o=kLe.select(this);o.selectAll("path.yerror").style("stroke-width",n.thickness+"px").call(YW.stroke,n.color),i.copy_ystyle&&(i=n),o.selectAll("path.xerror").style("stroke-width",i.thickness+"px").call(YW.stroke,i.color)})}});var ZW=z((kKe,XW)=>{"use strict";var Qd=ke(),WW=qo().overrideAll,e2=K8(),Df={error_x:Qd.extendFlat({},e2),error_y:Qd.extendFlat({},e2)};delete Df.error_x.copy_zstyle;delete Df.error_y.copy_zstyle;delete Df.error_y.copy_ystyle;var r2={error_x:Qd.extendFlat({},e2),error_y:Qd.extendFlat({},e2),error_z:Qd.extendFlat({},e2)};delete r2.error_x.copy_ystyle;delete r2.error_y.copy_ystyle;delete r2.error_z.copy_ystyle;delete r2.error_z.copy_zstyle;XW.exports={moduleType:"component",name:"errorbars",schema:{traces:{scatter:Df,bar:Df,histogram:Df,scatter3d:WW(r2,"calc","nested"),scattergl:WW(Df,"calc","nested")}},supplyDefaults:FW(),calc:OW(),makeComputeError:Q8(),plot:GW(),style:jW(),hoverInfo:SLe};function SLe(e,r,t){(r.error_y||{}).visible&&(t.yerr=e.yh-e.y,r.error_y.symmetric||(t.yerrneg=e.y-e.ys)),(r.error_x||{}).visible&&(t.xerr=e.xh-e.x,r.error_x.symmetric||(t.xerrneg=e.x-e.xs))}});var $W={};qt($W,{cn:()=>qLe});var qLe,JW=St(()=>{"use strict";qLe={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"}});var iX=z((SKe,nX)=>{"use strict";var ru=Pr(),Zg=ma(),KW=Tr(),ts=Yr(),Xg=Vi(),lo=ke(),jo=lo.strTranslate,aX=Mt().extendFlat,t9=Os(),Vo=Jr(),U0=qr(),LLe=n0(),CLe=Fa(),DLe=yi().flipScale,ELe=c8(),PLe=v8(),RLe=Gi(),n9=(on(),ze(nn)),QW=n9.LINE_SPACING,eX=n9.FROM_TL,rX=n9.FROM_BR,Wt=(JW(),ze($W)).cn;function FLe(e){var r=e._fullLayout,t=r._infolayer.selectAll("g."+Wt.colorbar).data(zLe(e),function(a){return a._id});t.enter().append("g").attr("class",function(a){return a._id}).classed(Wt.colorbar,!0),t.each(function(a){var n=ru.select(this);lo.ensureSingle(n,"rect",Wt.cbbg),lo.ensureSingle(n,"g",Wt.cbfills),lo.ensureSingle(n,"g",Wt.cblines),lo.ensureSingle(n,"g",Wt.cbaxis,function(o){o.classed(Wt.crisp,!0)}),lo.ensureSingle(n,"g",Wt.cbtitleunshift,function(o){o.append("g").classed(Wt.cbtitle,!0)}),lo.ensureSingle(n,"rect",Wt.cboutline);var i=NLe(n,a,e);i&&i.then&&(e._promises||[]).push(i),e._context.edits.colorbarPosition&&ILe(n,a,e)}),t.exit().each(function(a){Zg.autoMargin(e,a._id)}).remove(),t.order()}function zLe(e){var r=e._fullLayout,t=e.calcdata,a=[],n,i,o,l;function s(w){return aX(w,{_fillcolor:null,_line:{color:null,width:null,dash:null},_levels:{start:null,end:null,size:null},_filllevels:null,_fillgradient:null,_zrange:null})}function u(){typeof l.calc=="function"?l.calc(e,o,n):(n._fillgradient=i.reversescale?DLe(i.colorscale):i.colorscale,n._zrange=[i[l.min],i[l.max]])}for(var f=0;f[Math.min(e[0]+r,e[1]),e[1]],tX=(e,r)=>[e[0],Math.max(e[1]-r,e[0])];function NLe(e,r,t){var a=r.orientation==="v",n=r.len,i=r.lenmode,o=r.thickness,l=r.thicknessmode,s=r.outlinewidth,u=r.borderwidth,f=r.bgcolor,c=r.xanchor,v=r.yanchor,d=r.xpad,p=r.ypad,y=r.x,m=a?r.y:1-r.y,b=r.yref==="paper",A=r.xref==="paper",w=t._fullLayout,x=w._size,_=r._fillcolor,k=r._line,T=r.title,q=T.side,C=r._zrange||ru.extent((typeof _=="function"?_:k.color).domain()),E=typeof k.color=="function"?k.color:function(){return k.color},P=typeof _=="function"?_:function(){return _},R=r._levels,N=BLe(t,r,C),I=N.fill,O=N.line,U=Math.round(o*(l==="fraction"?a?x.w:x.h:1)),Y=U/(a?x.w:x.h),G=Math.round(n*(i==="fraction"?a?x.h:x.w:1)),V=G/(a?x.h:x.w),W=A?x.w:t._fullLayout.width,j=b?x.h:t._fullLayout.height,J=Math.round(a?y*W+d:m*j+p),te={center:.5,right:1}[c]||0,ae={top:1,middle:.5}[v]||0,se=a?y-te*Y:m-ae*Y,$=a?m-ae*V:y-te*V,fe=Math.round(a?j*(1-$):W*$);r._lenFrac=V,r._thickFrac=Y,r._uFrac=se,r._vFrac=$;var ie=r._axis=OLe(t,r,C);ie.position=Y+(a?y+d/x.w:m+p/x.h);var ue=["top","bottom"].indexOf(q)!==-1;if(a&&ue&&(ie.title.side=q,ie.titlex=y+d/x.w,ie.titley=$+(T.side==="top"?V-p/x.h:p/x.h)),!a&&!ue&&(ie.title.side=q,ie.titley=m+p/x.h,ie.titlex=$+d/x.w),k.color&&r.tickmode==="auto"){ie.tickmode="linear",ie.tick0=R.start;var ce=R.size,oe=lo.constrain(G/50,4,15)+1,be=(C[1]-C[0])/((r.nticks||oe)*ce);if(be>1){var Re=Math.pow(10,Math.floor(Math.log(be)/Math.LN10));ce*=Re*lo.roundUp(be/Re,[2,5,10]),(Math.abs(R.start)/R.size+1e-6)%1<2e-6&&(ie.tick0=0)}ie.dtick=ce}var ye=a?p/x.h:d/x.w;ie.domain=tX(a9([$,$+V],ye),ye),ie.setScale(),e.attr("transform",jo(Math.round(x.l),Math.round(x.t)));var Ce=e.select("."+Wt.cbtitleunshift).attr("transform",jo(-Math.round(x.l),-Math.round(x.t))),Me=ie.ticklabelposition,Le=ie.title.font.size,De=e.select("."+Wt.cbaxis),Ie,qe=0,Ze=0;function Je(re,xe){var Ye={propContainer:ie,propName:r._propPrefix+"title.text",traceIndex:r._traceIndex,_meta:r._meta,placeholder:w._dfltTitle.colorbar,containerGroup:e.select("."+Wt.cbtitle)},vr=re.charAt(0)==="h"?re.slice(1):"h"+re;e.selectAll("."+vr+",."+vr+"-math-group").remove(),LLe.draw(t,re,aX(Ye,xe||{}))}function Xe(){if(a&&ue||!a&&!ue){var re,xe;q==="top"&&(re=d+x.l+W*y,xe=p+x.t+j*(1-$-V)+3+Le*.75),q==="bottom"&&(re=d+x.l+W*y,xe=p+x.t+j*(1-$)-3-Le*.25),q==="right"&&(xe=p+x.t+j*m+3+Le*.75,re=d+x.l+W*$),Je(ie._id+"title",{attributes:{x:re,y:xe,"text-anchor":a?"start":"middle"}})}}function Se(){if(a&&!ue||!a&&ue){var re=ie.position||0,xe=ie._offset+ie._length/2,Ye,vr;if(q==="right")vr=xe,Ye=x.l+W*re+10+Le*(ie.showticklabels?1:.5);else if(Ye=xe,q==="bottom"&&(vr=x.t+j*re+10+(Me.indexOf("inside")===-1?ie.tickfont.size:0)+(ie.ticks!=="inside"&&r.ticklen||0)),q==="top"){var Pe=T.text.split("
").length;vr=x.t+j*re+10-U-QW*Le*Pe}Je((a?"h":"v")+ie._id+"title",{avoid:{selection:ru.select(t).selectAll("g."+ie._id+"tick"),side:q,offsetTop:a?0:x.t,offsetLeft:a?x.l:0,maxShift:a?w.width:w.height},attributes:{x:Ye,y:vr,"text-anchor":"middle"},transform:{rotate:a?-90:0,offset:0}})}}function Fe(){if(!a&&!ue||a&&ue){var re=e.select("."+Wt.cbtitle),xe=re.select("text"),Ye=[-s/2,s/2],vr=re.select(".h"+ie._id+"title-math-group").node(),Pe=15.6;xe.node()&&(Pe=parseInt(xe.node().style.fontSize,10)*QW);var me;if(vr?(me=Vo.bBox(vr),Ze=me.width,qe=me.height,qe>Pe&&(Ye[1]-=(qe-Pe)/2)):xe.node()&&!xe.classed(Wt.jsPlaceholder)&&(me=Vo.bBox(xe.node()),Ze=me.width,qe=me.height),a){if(qe){if(qe+=5,q==="top")ie.domain=tX(ie.domain,qe/x.h),Ye[1]*=-1;else{ie.domain=a9(ie.domain,qe/x.h);var Te=CLe.lineCount(xe);Ye[1]+=(1-Te)*Pe}re.attr("transform",jo(Ye[0],Ye[1])),ie.setScale()}}else Ze&&(q==="right"&&(ie.domain=a9(ie.domain,(Ze+Le/2)/x.w)),re.attr("transform",jo(Ye[0],Ye[1])),ie.setScale())}e.selectAll("."+Wt.cbfills+",."+Wt.cblines).attr("transform",a?jo(0,Math.round(x.h*(1-ie.domain[1]))):jo(Math.round(x.w*ie.domain[0]),0)),De.attr("transform",a?jo(0,Math.round(-x.t)):jo(Math.round(-x.l),0));var Ue=e.select("."+Wt.cbfills).selectAll("rect."+Wt.cbfill).attr("style","").data(I);Ue.enter().append("rect").classed(Wt.cbfill,!0).attr("style",""),Ue.exit().remove();var $e=C.map(ie.c2p).map(Math.round).sort(function(sr,Ee){return sr-Ee});Ue.each(function(sr,Ee){var Ke=[Ee===0?C[0]:(I[Ee]+I[Ee-1])/2,Ee===I.length-1?C[1]:(I[Ee]+I[Ee+1])/2].map(ie.c2p).map(Math.round);a&&(Ke[1]=lo.constrain(Ke[1]+(Ke[1]>Ke[0])?1:-1,$e[0],$e[1]));var Be=ru.select(this).attr(a?"x":"y",J).attr(a?"y":"x",ru.min(Ke)).attr(a?"width":"height",Math.max(U,2)).attr(a?"height":"width",Math.max(ru.max(Ke)-ru.min(Ke),2));if(r._fillgradient)Vo.gradient(Be,t,r._id,a?"vertical":"horizontalreversed",r._fillgradient,"fill");else{var mr=P(sr).replace("e-","");Be.attr("fill",U0.hexString(mr))}});var Oe=e.select("."+Wt.cblines).selectAll("path."+Wt.cbline).data(k.color&&k.width?O:[]);Oe.enter().append("path").classed(Wt.cbline,!0),Oe.exit().remove(),Oe.each(function(sr){var Ee=J,Ke=Math.round(ie.c2p(sr))+k.width/2%1;ru.select(this).attr("d","M"+(a?Ee+","+Ke:Ke+","+Ee)+(a?"h":"v")+U).call(Vo.lineGroupStyle,k.width,E(sr),k.dash)}),De.selectAll("g."+ie._id+"tick,path").remove();var We=J+U+(s||0)/2-(r.ticks==="outside"?1:0),ar=ts.calcTicks(ie),or=ts.getTickSigns(ie)[2];return ts.drawTicks(t,ie,{vals:ie.ticks==="inside"?ts.clipEnds(ie,ar):ar,layer:De,path:ts.makeTickPath(ie,We,or),transFn:ts.makeTransTickFn(ie)}),ts.drawLabels(t,ie,{vals:ar,layer:De,transFn:ts.makeTransTickLabelFn(ie),labelFns:ts.makeLabelFns(ie,We)})}function er(){var re,xe=U+s/2;Me.indexOf("inside")===-1&&(re=Vo.bBox(De.node()),xe+=a?re.width:re.height),Ie=Ce.select("text");var Ye=0,vr=a&&q==="top",Pe=!a&&q==="right",me=0;if(Ie.node()&&!Ie.classed(Wt.jsPlaceholder)){var Te,Ue=Ce.select(".h"+ie._id+"title-math-group").node();Ue&&(a&&ue||!a&&!ue)?(re=Vo.bBox(Ue),Ye=re.width,Te=re.height):(re=Vo.bBox(Ce.node()),Ye=re.right-x.l-(a?J:fe),Te=re.bottom-x.t-(a?fe:J),!a&&q==="top"&&(xe+=re.height,me=re.height)),Pe&&(Ie.attr("transform",jo(Ye/2+Le/2,0)),Ye*=2),xe=Math.max(xe,a?Ye:Te)}var $e=(a?d:p)*2+xe+u+s/2,Oe=0;!a&&T.text&&v==="bottom"&&m<=0&&(Oe=$e/2,$e+=Oe,me+=Oe),w._hColorbarMoveTitle=Oe,w._hColorbarMoveCBTitle=me;var We=u+s,ar=(a?J:fe)-We/2-(a?d:0),or=(a?fe:J)-(a?G:p+me-Oe);e.select("."+Wt.cbbg).attr("x",ar).attr("y",or).attr(a?"width":"height",Math.max($e-Oe,2)).attr(a?"height":"width",Math.max(G+We,2)).call(U0.fill,f).call(U0.stroke,r.bordercolor).style("stroke-width",u);var sr=Pe?Math.max(Ye-10,0):0;e.selectAll("."+Wt.cboutline).attr("x",(a?J:fe+d)+sr).attr("y",(a?fe+p-G:J)+(vr?qe:0)).attr(a?"width":"height",Math.max(U,2)).attr(a?"height":"width",Math.max(G-(a?2*p+qe:2*d+sr),2)).call(U0.stroke,r.outlinecolor).style({fill:"none","stroke-width":s});var Ee=a?te*$e:0,Ke=a?0:(1-ae)*$e-me;if(Ee=A?x.l-Ee:-Ee,Ke=b?x.t-Ke:-Ke,e.attr("transform",jo(Ee,Ke)),!a&&(u||U0.opacity(f)&&!U0.equals(w.paper_bgcolor,f))){var Be=De.selectAll("text"),mr=Be[0].length,yr=e.select("."+Wt.cbbg).node(),ur=Vo.bBox(yr),gr=Vo.getTranslate(e),ne=2;Be.each(function($a,na){var Ja=0,hn=mr-1;if(na===Ja||na===hn){var fa=Vo.bBox(this),hr=Vo.getTranslate(this),wt;if(na===hn){var Vr=fa.right+hr.x,ht=ur.right+gr.x+fe-u-ne+y;wt=ht-Vr,wt>0&&(wt=0)}else if(na===Ja){var Nt=fa.left+hr.x,kt=ur.left+gr.x+fe+u+ne;wt=kt-Nt,wt<0&&(wt=0)}wt&&(mr<3?this.setAttribute("transform","translate("+wt+",0) "+this.getAttribute("transform")):this.setAttribute("visibility","hidden"))}})}var ge={},Ne=eX[c],He=rX[c],Kr=eX[v],Qr=rX[v],yt=$e-U;a?(i==="pixels"?(ge.y=m,ge.t=G*Kr,ge.b=G*Qr):(ge.t=ge.b=0,ge.yt=m+n*Kr,ge.yb=m-n*Qr),l==="pixels"?(ge.x=y,ge.l=$e*Ne,ge.r=$e*He):(ge.l=yt*Ne,ge.r=yt*He,ge.xl=y-o*Ne,ge.xr=y+o*He)):(i==="pixels"?(ge.x=y,ge.l=G*Ne,ge.r=G*He):(ge.l=ge.r=0,ge.xl=y+n*Ne,ge.xr=y-n*He),l==="pixels"?(ge.y=1-m,ge.t=$e*Kr,ge.b=$e*Qr):(ge.t=yt*Kr,ge.b=yt*Qr,ge.yt=m-o*Kr,ge.yb=m+o*Qr));var gt=r.y<.5?"b":"t",Et=r.x<.5?"l":"r";t._fullLayout._reservedMargin[r._id]={};var aa={r:w.width-ar-Ee,l:ar+ge.r,b:w.height-or-Ke,t:or+ge.b};A&&b?Zg.autoMargin(t,r._id,ge):A?t._fullLayout._reservedMargin[r._id][gt]=aa[gt]:b||a?t._fullLayout._reservedMargin[r._id][Et]=aa[Et]:t._fullLayout._reservedMargin[r._id][gt]=aa[gt]}return lo.syncOrAsync([Zg.previousPromises,Xe,Fe,Se,Zg.previousPromises,er],t)}function ILe(e,r,t){var a=r.orientation==="v",n=t._fullLayout,i=n._size,o,l,s;Xg.init({element:e.node(),gd:t,prepFn:function(){o=e.attr("transform"),t9(e)},moveFn:function(u,f){e.attr("transform",o+jo(u,f)),l=Xg.align((a?r._uFrac:r._vFrac)+u/i.w,a?r._thickFrac:r._lenFrac,0,1,r.xanchor),s=Xg.align((a?r._vFrac:1-r._uFrac)-f/i.h,a?r._lenFrac:r._thickFrac,0,1,r.yanchor);var c=Xg.getCursor(l,s,r.xanchor,r.yanchor);t9(e,c)},doneFn:function(){if(t9(e),l!==void 0&&s!==void 0){var u={};u[r._propPrefix+"x"]=l,u[r._propPrefix+"y"]=s,r._traceIndex!==void 0?KW.call("_guiRestyle",t,u,r._traceIndex):KW.call("_guiRelayout",t,u)}}})}function BLe(e,r,t){var a=r._levels,n=[],i=[],o,l,s=a.end+a.size/100,u=a.size,f=1.001*t[0]-.001*t[1],c=1.001*t[1]-.001*t[0];for(l=0;l<1e5&&(o=a.start+l*u,!(u>0?o>=s:o<=s));l++)o>f&&o0?o>=s:o<=s));l++)o>t[0]&&o{"use strict";oX.exports={moduleType:"component",name:"colorbar",attributes:tm(),supplyDefaults:e6(),draw:iX().draw,hasColorbar:W4()}});var uX=z((LKe,sX)=>{"use strict";sX.exports={moduleType:"component",name:"legend",layoutAttributes:X6(),supplyLayoutDefaults:$6(),draw:c7(),style:l7()}});var cX=z((CKe,fX)=>{"use strict";fX.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"}}});var hX=z((DKe,vX)=>{"use strict";vX.exports={moduleType:"locale",name:"en-US",dictionary:{"Click to enter Colorscale title":"Click to enter Colorscale title"},format:{date:"%m/%d/%Y"}}});var o9=z((EKe,yX)=>{"use strict";var HLe=Tr(),mX=ke(),i9=mX.extendFlat,dX=mX.extendDeep;function pX(e){var r;switch(e){case"themes__thumb":r={autosize:!0,width:150,height:150,title:{text:""},showlegend:!1,margin:{l:5,r:5,t:5,b:5,pad:0},annotations:[]};break;case"thumbnail":r={title:{text:""},showlegend:!1,borderwidth:0,bordercolor:"",margin:{l:1,r:1,t:1,b:1,pad:0},annotations:[]};break;default:r={}}return r}function ULe(e){var r=["xaxis","yaxis","zaxis"];return r.indexOf(e.slice(0,5))>-1}yX.exports=function(r,t){var a,n=r.data,i=r.layout,o=dX([],n),l=dX({},i,pX(t.tileClass)),s=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 u=Object.keys(l);for(a=0;a{"use strict";var GLe=Wu().EventEmitter,YLe=Tr(),VLe=ke(),gX=Kl(),jLe=o9(),WLe=Jy(),XLe=Ky();function ZLe(e,r){var t=new GLe,a=jLe(e,{format:"png"}),n=a.gd;n.style.position="absolute",n.style.left="-5000px",document.body.appendChild(n);function i(){var l=gX.getDelay(n._fullLayout);setTimeout(function(){var s=WLe(n),u=document.createElement("canvas");u.id=VLe.randstr(),t=XLe({format:r.format,width:n._fullLayout.width,height:n._fullLayout.height,canvas:u,emitter:t,svg:s}),t.clean=function(){n&&document.body.removeChild(n)}},l)}var o=gX.getRedrawFunc(n);return YLe.call("_doPlot",n,a.data,a.layout,a.config).then(o).then(i).catch(function(l){t.emit("error",l)}),t}bX.exports=ZLe});var AX=z((RKe,wX)=>{"use strict";var _X=Kl(),$Le={getDelay:_X.getDelay,getRedrawFunc:_X.getRedrawFunc,clone:o9(),toSVG:Jy(),svgToImg:Ky(),toImage:xX(),downloadImage:Cw()};wX.exports=$Le});var MX=z(as=>{"use strict";as.version=Jv().version;US();SP();var JLe=Tr(),t2=as.register=JLe.register,s9=UU(),TX=Object.keys(s9);for($g=0;$g{"use strict";kX.exports=MX()});var Pf=z((NKe,EX)=>{"use strict";var ta=Ji(),qX=Eo().axisHoverFormat,{hovertemplateAttrs:KLe,texttemplateAttrs:QLe,templatefallbackAttrs:LX}=di(),DX=ol(),eCe=Ca(),CX=(Id(),ze(Nd)),rCe=Bi().pattern,Ef=Mt().extendFlat,u9=eCe({editType:"calc",arrayOk:!0,colorEditType:"style"}),tCe=ta.marker,aCe=tCe.line,nCe=Ef({},aCe.width,{dflt:0}),iCe=Ef({width:nCe,editType:"calc"},DX("marker.line")),oCe=Ef({line:iCe,editType:"calc"},DX("marker"),{opacity:{valType:"number",arrayOk:!0,dflt:1,min:0,max:1,editType:"style"},pattern:rCe,cornerradius:{valType:"any",editType:"calc"}});EX.exports={x:ta.x,x0:ta.x0,dx:ta.dx,y:ta.y,y0:ta.y0,dy:ta.dy,xperiod:ta.xperiod,yperiod:ta.yperiod,xperiod0:ta.xperiod0,yperiod0:ta.yperiod0,xperiodalignment:ta.xperiodalignment,yperiodalignment:ta.yperiodalignment,xhoverformat:qX("x"),yhoverformat:qX("y"),text:ta.text,texttemplate:QLe({editType:"plot"},{keys:CX.eventDataKeys}),texttemplatefallback:LX({editType:"plot"}),hovertext:ta.hovertext,hovertemplate:KLe({},{keys:CX.eventDataKeys}),hovertemplatefallback:LX(),textposition:{valType:"enumerated",values:["inside","outside","auto","none"],dflt:"auto",arrayOk:!0,editType:"calc"},insidetextanchor:{valType:"enumerated",values:["end","middle","start"],dflt:"end",editType:"plot"},textangle:{valType:"angle",dflt:"auto",editType:"plot"},textfont:Ef({},u9,{}),insidetextfont:Ef({},u9,{}),outsidetextfont:Ef({},u9,{}),constraintext:{valType:"enumerated",values:["inside","outside","both","none"],dflt:"both",editType:"calc"},cliponaxis:Ef({},ta.cliponaxis,{}),orientation:{valType:"enumerated",values:["v","h"],editType:"calc+clearAxisTypes"},base:{valType:"any",dflt:null,arrayOk:!0,editType:"calc"},offset:{valType:"number",dflt:null,arrayOk:!0,editType:"calc"},width:{valType:"number",dflt:null,min:0,arrayOk:!0,editType:"calc"},marker:oCe,offsetgroup:ta.offsetgroup,alignmentgroup:ta.alignmentgroup,selected:{marker:{opacity:ta.selected.marker.opacity,color:ta.selected.marker.color,editType:"style"},textfont:ta.selected.textfont,editType:"style"},unselected:{marker:{opacity:ta.unselected.marker.opacity,color:ta.unselected.marker.color,editType:"style"},textfont:ta.unselected.textfont,editType:"style"},zorder:ta.zorder}});var Kg=z((IKe,PX)=>{"use strict";PX.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"}}});var f9=z((BKe,zX)=>{"use strict";var lCe=qr(),RX=yi().hasColorscale,FX=jl(),sCe=ke().coercePattern;zX.exports=function(r,t,a,n,i){var o=a("marker.color",n),l=RX(r,"marker");l&&FX(r,t,i,a,{prefix:"marker.",cLetter:"c"}),a("marker.line.color",lCe.defaultLine),RX(r,"marker.line")&&FX(r,t,i,a,{prefix:"marker.line.",cLetter:"c"}),a("marker.line.width"),a("marker.opacity"),sCe(a,"marker.pattern",o,l),a("selected.marker.color"),a("unselected.marker.color")}});var Rf=z((OKe,UX)=>{"use strict";var NX=Br(),Y0=ke(),IX=qr(),uCe=Tr(),fCe=Pw(),cCe=T0(),vCe=f9(),hCe=Fd(),BX=Pf(),Qg=Y0.coerceFont;function dCe(e,r,t,a){function n(u,f){return Y0.coerce(e,r,BX,u,f)}var i=fCe(e,r,a,n);if(!i){r.visible=!1;return}cCe(e,r,a,n),n("xhoverformat"),n("yhoverformat"),n("zorder"),n("orientation",r.x&&!r.y?"h":"v"),n("base"),n("offset"),n("width"),n("text"),n("hovertext"),n("hovertemplate"),n("hovertemplatefallback");var o=n("textposition");HX(e,r,a,n,o,{moduleHasSelected:!0,moduleHasUnselected:!0,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),vCe(e,r,n,t,a);var l=(r.marker.line||{}).color,s=uCe.getComponentMethod("errorbars","supplyDefaults");s(e,r,l||IX.defaultLine,{axis:"y"}),s(e,r,l||IX.defaultLine,{axis:"x",inherit:"y"}),Y0.coerceSelectionMarkerOpacity(r,n)}function pCe(e,r){var t,a;function n(l,s){return Y0.coerce(a._input,a,BX,l,s)}for(var i=0;i=0)return e}else if(typeof e=="string"&&(e=e.trim(),e.slice(-1)==="%"&&NX(e.slice(0,-1))&&(e=+e.slice(0,-1),e>=0)))return e+"%"}function HX(e,r,t,a,n,i){i=i||{};var o=i.moduleHasSelected!==!1,l=i.moduleHasUnselected!==!1,s=i.moduleHasConstrain!==!1,u=i.moduleHasCliponaxis!==!1,f=i.moduleHasTextangle!==!1,c=i.moduleHasInsideanchor!==!1,v=!!i.hasPathbar,d=Array.isArray(n)||n==="auto",p=d||n==="inside",y=d||n==="outside";if(p||y){var m=Qg(a,"textfont",t.font),b=Y0.extendFlat({},m),A=e.textfont&&e.textfont.color,w=!A;if(w&&delete b.color,Qg(a,"insidetextfont",b),v){var x=Y0.extendFlat({},m);w&&delete x.color,Qg(a,"pathbar.textfont",x)}y&&Qg(a,"outsidetextfont",m),o&&a("selected.textfont.color"),l&&a("unselected.textfont.color"),s&&a("constraintext"),u&&a("cliponaxis"),f&&a("textangle"),a("texttemplate"),a("texttemplatefallback")}p&&c&&a("insidetextanchor")}UX.exports={supplyDefaults:dCe,crossTraceDefaults:pCe,handleText:HX,validateCornerradius:OX}});var c9=z((HKe,GX)=>{"use strict";var mCe=Tr(),yCe=Yr(),gCe=ke(),bCe=Kg(),xCe=Rf().validateCornerradius;GX.exports=function(e,r,t){function a(y,m){return gCe.coerce(e,r,bCe,y,m)}for(var n=!1,i=!1,o=!1,l={},s=a("barmode"),u=s==="group",f=0;f0&&!l[v]&&(o=!0),l[v]=!0),c.visible&&c.type==="histogram"){var d=yCe.getFromId({_fullLayout:r},c[c.orientation==="v"?"xaxis":"yaxis"]);d.type!=="category"&&(i=!0)}}if(!n){delete r.barmode;return}s!=="overlay"&&a("barnorm"),a("bargap",i&&!o?0:.2),a("bargroupgap");var p=a("barcornerradius");r.barcornerradius=xCe(p)}});var e3=z((UKe,YX)=>{"use strict";var V0=ke();YX.exports=function(r,t){for(var a=0;a{"use strict";var VX=Yr(),jX=k0(),WX=yi().hasColorscale,XX=Kc(),_Ce=e3(),wCe=lg();ZX.exports=function(r,t){var a=VX.getFromId(r,t.xaxis||"x"),n=VX.getFromId(r,t.yaxis||"y"),i,o,l,s,u,f,c={msUTC:!!(t.base||t.base===0)};t.orientation==="h"?(i=a.makeCalcdata(t,"x",c),l=n.makeCalcdata(t,"y"),s=jX(t,n,"y",l),u=!!t.yperiodalignment,f="y"):(i=n.makeCalcdata(t,"y",c),l=a.makeCalcdata(t,"x"),s=jX(t,a,"x",l),u=!!t.xperiodalignment,f="x"),o=s.vals;for(var v=Math.min(o.length,i.length),d=new Array(v),p=0;p{"use strict";var ACe=Pr(),TCe=ke();function MCe(e,r,t){var a=e._fullLayout,n=a["_"+t+"Text_minsize"];if(n){var i=a.uniformtext.mode==="hide",o;switch(t){case"funnelarea":case"pie":case"sunburst":o="g.slice";break;case"treemap":case"icicle":o="g.slice, g.pathbar";break;default:o="g.points > g.point"}r.selectAll(o).each(function(l){var s=l.transform;if(s){s.scale=i&&s.hide?0:n/s.fontSize;var u=ACe.select(this).select("text");TCe.setTransormAndDisplay(u,s)}})}}function kCe(e,r,t){if(t.uniformtext.mode){var a=JX(e),n=t.uniformtext.minsize,i=r.scale*r.fontSize;r.hide=i{"use strict";var qCe=qr(),LCe=Br(),QX=ke().isArrayOrTypedArray;Ff.coerceString=function(e,r,t){if(typeof r=="string"){if(r||!e.noBlank)return r}else if((typeof r=="number"||r===!0)&&!e.strict)return String(r);return t!==void 0?t:e.dflt};Ff.coerceNumber=function(e,r,t){if(LCe(r)){r=+r;var a=e.min,n=e.max,i=a!==void 0&&rn;if(!i)return r}return t!==void 0?t:e.dflt};Ff.coerceColor=function(e,r,t){return qCe.isValid(r)?r:t!==void 0?t:e.dflt};Ff.coerceEnumerated=function(e,r,t){return e.coerceNumber&&(r=+r),e.values.indexOf(r)!==-1?r:t!==void 0?t:e.dflt};Ff.getValue=function(e,r){var t;return QX(e)?r{"use strict";var n2=Pr(),CCe=qr(),i2=Jr(),eZ=ke(),rZ=Tr(),tZ=a2().resizeText,v9=Pf(),DCe=v9.textfont,ECe=v9.insidetextfont,PCe=v9.outsidetextfont,un=r3();function RCe(e){var r=n2.select(e).selectAll('g[class^="barlayer"]').selectAll("g.trace");tZ(e,r,"bar");var t=r.size(),a=e._fullLayout;r.style("opacity",function(n){return n[0].trace.opacity}).each(function(n){(a.barmode==="stack"&&t>1||a.bargap===0&&a.bargroupgap===0&&!n[0].trace.marker.line.width)&&n2.select(this).attr("shape-rendering","crispEdges")}),r.selectAll("g.points").each(function(n){var i=n2.select(this),o=n[0].trace;aZ(i,o,e)}),rZ.getComponentMethod("errorbars","style")(r)}function aZ(e,r,t){i2.pointStyle(e.selectAll("path"),r,t),nZ(e,r,t)}function nZ(e,r,t){e.selectAll("text").each(function(a){var n=n2.select(this),i=eZ.ensureUniformFontSize(t,iZ(n,a,r,t));i2.font(n,i)})}function FCe(e,r,t){var a=r[0].trace;a.selectedpoints?zCe(t,a,e):(aZ(t,a,e),rZ.getComponentMethod("errorbars","style")(t))}function zCe(e,r,t){i2.selectedPointStyle(e.selectAll("path"),r),NCe(e.selectAll("text"),r,t)}function NCe(e,r,t){e.each(function(a){var n=n2.select(this),i;if(a.selected){i=eZ.ensureUniformFontSize(t,iZ(n,a,r,t));var o=r.selected.textfont&&r.selected.textfont.color;o&&(i.color=o),i2.font(n,i)}else i2.selectedTextStyle(n,r)})}function iZ(e,r,t,a){var n=a._fullLayout.font,i=t.textfont;if(e.classed("bartext-inside")){var o=uZ(r,t);i=lZ(t,r.i,n,o)}else e.classed("bartext-outside")&&(i=sZ(t,r.i,n));return i}function oZ(e,r,t){return h9(DCe,e.textfont,r,t)}function lZ(e,r,t,a){var n=oZ(e,r,t),i=e._input.textfont===void 0||e._input.textfont.color===void 0||Array.isArray(e.textfont.color)&&e.textfont.color[r]===void 0;return i&&(n={color:CCe.contrast(a),family:n.family,size:n.size,weight:n.weight,style:n.style,variant:n.variant,textcase:n.textcase,lineposition:n.lineposition,shadow:n.shadow}),h9(ECe,e.insidetextfont,r,n)}function sZ(e,r,t){var a=oZ(e,r,t);return h9(PCe,e.outsidetextfont,r,a)}function h9(e,r,t,a){r=r||{};var n=un.getValue(r.family,t),i=un.getValue(r.size,t),o=un.getValue(r.color,t),l=un.getValue(r.weight,t),s=un.getValue(r.style,t),u=un.getValue(r.variant,t),f=un.getValue(r.textcase,t),c=un.getValue(r.lineposition,t),v=un.getValue(r.shadow,t);return{family:un.coerceString(e.family,n,a.family),size:un.coerceNumber(e.size,i,a.size),color:un.coerceColor(e.color,o,a.color),weight:un.coerceString(e.weight,l,a.weight),style:un.coerceString(e.style,s,a.style),variant:un.coerceString(e.variant,u,a.variant),textcase:un.coerceString(e.variant,f,a.textcase),lineposition:un.coerceString(e.variant,c,a.lineposition),shadow:un.coerceString(e.variant,v,a.shadow)}}function uZ(e,r){return r.type==="waterfall"?r[e.dir].marker.color:e.mcc||e.mc||r.marker.color}fZ.exports={style:RCe,styleTextPoints:nZ,styleOnSelect:FCe,getInsideTextFont:lZ,getOutsideTextFont:sZ,getBarColor:uZ,resizeText:tZ}});var m9=z((WKe,gZ)=>{"use strict";var t3=Pr(),a3=Br(),Wa=ke(),ICe=Fa(),BCe=qr(),tu=Jr(),OCe=Tr(),n3=Yr().tickText,cZ=a2(),HCe=cZ.recordMinTextSize,UCe=cZ.clearMinTextSize,d9=j0(),W0=r3(),GCe=(Id(),ze(Nd)),vZ=Pf(),YCe=vZ.text,VCe=vZ.textposition,jCe=Ro().appendArrayPointValue,Pn=GCe.TEXTPAD;function WCe(e){return e.id}function XCe(e){if(e.ids)return WCe}function p9(e){return(e>0)-(e<0)}function Wo(e,r){return e0}function $Ce(e,r,t,a,n,i){var o=r.xaxis,l=r.yaxis,s=e._fullLayout,u=e._context.staticPlot;n||(n={mode:s.barmode,norm:s.barmode,gap:s.bargap,groupgap:s.bargroupgap},UCe("bar",s));var f=Wa.makeTraceGroups(a,t,"trace bars").each(function(c){var v=t3.select(this),d=c[0].trace,p=c[0].t,y=d.type==="waterfall",m=d.type==="funnel",b=d.type==="histogram",A=d.type==="bar",w=A||m,x=0;y&&d.connector.visible&&d.connector.mode==="between"&&(x=d.connector.line.width/2);var _=d.orientation==="h",k=dZ(n),T=Wa.ensureSingle(v,"g","points"),q=XCe(d),C=T.selectAll("g.point").data(Wa.identity,q);C.enter().append("g").classed("point",!0),C.exit().remove(),C.each(function(P,R){var N=t3.select(this),I=ZCe(P,o,l,_),O=I[0][0],U=I[0][1],Y=I[1][0],G=I[1][1],V=(_?U-O:G-Y)===0;V&&w&&W0.getLineWidth(d,P)&&(V=!1),V||(V=!a3(O)||!a3(U)||!a3(Y)||!a3(G)),P.isBlank=V,V&&(_?U=O:G=Y),x&&!V&&(_?(O-=Wo(O,U)*x,U+=Wo(O,U)*x):(Y-=Wo(Y,G)*x,G+=Wo(Y,G)*x));var W,j;if(d.type==="waterfall"){if(!V){var J=d[P.dir].marker;W=J.line.width,j=J.color}}else W=W0.getLineWidth(d,P),j=P.mc||d.marker.color;function te(re){var xe=t3.round(W/2%1,2);return n.gap===0&&n.groupgap===0?t3.round(Math.round(re)-xe,2):re}function ae(re,xe,Ye){return Ye&&re===xe?re:Math.abs(re-xe)>=2?te(re):re>xe?Math.ceil(re):Math.floor(re)}var se=BCe.opacity(j),$=se<1||W>.01?te:ae;e._context.staticPlot||(O=$(O,U,_),U=$(U,O,_),Y=$(Y,G,!_),G=$(G,Y,!_));var fe=_?o.c2p:l.c2p,ie;P.s0>0?ie=P._sMax:P.s0<0?ie=P._sMin:ie=P.s1>0?P._sMax:P._sMin;function ue(re,xe){if(!re)return 0;var Ye=Math.abs(_?G-Y:U-O),vr=Math.abs(_?U-O:G-Y),Pe=$(Math.abs(fe(ie,!0)-fe(0,!0))),me=P.hasB?Math.min(Ye/2,vr/2):Math.min(Ye/2,Pe),Te;if(xe==="%"){var Ue=Math.min(50,re);Te=Ye*(Ue/100)}else Te=re;return $(Math.max(Math.min(Te,me),0))}var ce=A||b?ue(p.cornerradiusvalue,p.cornerradiusform):0,oe,be,Re="M"+O+","+Y+"V"+G+"H"+U+"V"+Y+"Z",ye=0;if(ce&&P.s){var Ce=p9(P.s0)===0||p9(P.s)===p9(P.s0)?P.s1:P.s0;if(ye=$(P.hasB?0:Math.abs(fe(ie,!0)-fe(Ce,!0))),ye0?Math.sqrt(ye*(2*ce-ye)):0,Ze=Me>0?Math.max:Math.min;oe="M"+O+","+Y+"V"+(G-Ie*Le)+"H"+Ze(U-(ce-ye)*Me,O)+"A "+ce+","+ce+" 0 0 "+De+" "+U+","+(G-ce*Le-qe)+"V"+(Y+ce*Le+qe)+"A "+ce+","+ce+" 0 0 "+De+" "+Ze(U-(ce-ye)*Me,O)+","+(Y+Ie*Le)+"Z"}else if(P.hasB)oe="M"+(O+ce*Me)+","+Y+"A "+ce+","+ce+" 0 0 "+De+" "+O+","+(Y+ce*Le)+"V"+(G-ce*Le)+"A "+ce+","+ce+" 0 0 "+De+" "+(O+ce*Me)+","+G+"H"+(U-ce*Me)+"A "+ce+","+ce+" 0 0 "+De+" "+U+","+(G-ce*Le)+"V"+(Y+ce*Le)+"A "+ce+","+ce+" 0 0 "+De+" "+(U-ce*Me)+","+Y+"Z";else{be=Math.abs(G-Y)+ye;var Je=be0?Math.sqrt(ye*(2*ce-ye)):0,Se=Le>0?Math.max:Math.min;oe="M"+(O+Je*Me)+","+Y+"V"+Se(G-(ce-ye)*Le,Y)+"A "+ce+","+ce+" 0 0 "+De+" "+(O+ce*Me-Xe)+","+G+"H"+(U-ce*Me+Xe)+"A "+ce+","+ce+" 0 0 "+De+" "+(U-Je*Me)+","+Se(G-(ce-ye)*Le,Y)+"V"+Y+"Z"}}else oe=Re}else oe=Re;var Fe=hZ(Wa.ensureSingle(N,"path"),s,n,i);if(Fe.style("vector-effect",u?"none":"non-scaling-stroke").attr("d",isNaN((U-O)*(G-Y))||V&&e._context.staticPlot?"M0,0Z":oe).call(tu.setClipUrl,r.layerClipId,e),!s.uniformtext.mode&&k){var er=tu.makePointStyleFns(d);tu.singlePointStyle(P,Fe,d,er,e)}JCe(e,r,N,c,R,O,U,Y,G,ce,ye,n,i),r.layerClipId&&tu.hideOutsideRangePoint(P,N.select("text"),o,l,d.xcalendar,d.ycalendar)});var E=d.cliponaxis===!1;tu.setClipUrl(v,E?null:r.layerClipId,e)});OCe.getComponentMethod("errorbars","plot")(e,f,r,n)}function JCe(e,r,t,a,n,i,o,l,s,u,f,c,v){var d=r.xaxis,p=r.yaxis,y=e._fullLayout,m;function b(Re,ye,Ce){var Me=Wa.ensureSingle(Re,"text").text(ye).attr({class:"bartext bartext-"+m,"text-anchor":"middle","data-notex":1}).call(tu.font,Ce).call(ICe.convertToTspans,e);return Me}var A=a[0].trace,w=A.orientation==="h",x=tDe(a,w,d,p),_=eDe(y,a,n,d,p);m=rDe(A,n);var k=c.mode==="stack"||c.mode==="relative",T=a[n],q=!k||T._outmost,C=T.hasB,E=u&&u-f>Pn;if(!_||m==="none"||(T.isBlank||i===o||l===s)&&(m==="auto"||m==="inside")){t.select("text").remove();return}var P=y.font,R=d9.getBarColor(a[n],A),N=d9.getInsideTextFont(A,n,P,R),I=d9.getOutsideTextFont(A,n,P),O=A.insidetextanchor||"end",U=t.datum();w?d.type==="log"&&U.s0<=0&&(d.range[0]0&&ae>0,fe;E?C?fe=zf(V-2*u,W,te,ae,w)||zf(V,W-2*u,te,ae,w):w?fe=zf(V-(u-f),W,te,ae,w)||zf(V,W-2*(u-f),te,ae,w):fe=zf(V,W-(u-f),te,ae,w)||zf(V-2*(u-f),W,te,ae,w):fe=zf(V,W,te,ae,w),$&&fe?m="inside":(m="outside",j.remove(),j=null)}else m="inside";if(!j){se=Wa.ensureUniformFontSize(e,m==="outside"?I:N),j=b(t,_,se);var ie=j.attr("transform");if(j.attr("transform",""),J=tu.bBox(j.node()),te=J.width,ae=J.height,j.attr("transform",ie),te<=0||ae<=0){j.remove();return}}var ue=A.textangle,ce,oe;m==="outside"?(oe=A.constraintext==="both"||A.constraintext==="outside",ce=QCe(i,o,l,s,J,{isHorizontal:w,constrained:oe,angle:ue,zeroBarDir:x})):(oe=A.constraintext==="both"||A.constraintext==="inside",ce=yZ(i,o,l,s,J,{isHorizontal:w,constrained:oe,angle:ue,anchor:O,hasB:C,r:u,overhead:f})),ce.fontSize=se.size,HCe(A.type==="histogram"?"bar":A.type,ce,y),T.transform=ce;var be=hZ(j,y,c,v);Wa.setTransormAndDisplay(be,ce)}function zf(e,r,t,a,n){if(e<0||r<0)return!1;var i=t<=e&&a<=r,o=t<=r&&a<=e,l=n?e>=t*(r/a):r>=a*(e/t);return i||o||l}function pZ(e){return e==="auto"?0:e}function mZ(e,r){var t=Math.PI/180*r,a=Math.abs(Math.sin(t)),n=Math.abs(Math.cos(t));return{x:e.width*n+e.height*a,y:e.width*a+e.height*n}}function yZ(e,r,t,a,n,i){var o=!!i.isHorizontal,l=!!i.constrained,s=i.angle||0,u=i.anchor,f=u==="end",c=u==="start",v=i.leftToRight||0,d=(v+1)/2,p=1-d,y=i.hasB,m=i.r,b=i.overhead,A=n.width,w=n.height,x=Math.abs(r-e),_=Math.abs(a-t),k=x>2*Pn&&_>2*Pn?Pn:0;x-=2*k,_-=2*k;var T=pZ(s);s==="auto"&&!(A<=x&&w<=_)&&(A>x||w>_)&&(!(A>_||w>x)||APn){var P=KCe(e,r,t,a,q,m,b,o,y);C=P.scale,E=P.pad}else C=1,l&&(C=Math.min(1,x/q.x,_/q.y)),E=0;var R=n.left*p+n.right*d,N=(n.top+n.bottom)/2,I=(e+Pn)*p+(r-Pn)*d,O=(t+a)/2,U=0,Y=0;if(c||f){var G=(o?q.x:q.y)/2;m&&(f||y)&&(k+=E);var V=o?Wo(e,r):Wo(t,a);o?c?(I=e+V*k,U=-V*G):(I=r-V*k,U=V*G):c?(O=t+V*k,Y=-V*G):(O=a-V*k,Y=V*G)}return{textX:R,textY:N,targetX:I,targetY:O,anchorX:U,anchorY:Y,scale:C,rotate:T}}function KCe(e,r,t,a,n,i,o,l,s){var u=Math.max(0,Math.abs(r-e)-2*Pn),f=Math.max(0,Math.abs(a-t)-2*Pn),c=i-Pn,v=o?c-Math.sqrt(c*c-(c-o)*(c-o)):c,d=s?c*2:l?c-o:2*v,p=s?c*2:l?2*v:c-o,y,m,b,A,w;return n.y/n.x>=f/(u-d)?A=f/n.y:n.y/n.x<=(f-p)/u?A=u/n.x:!s&&l?(y=n.x*n.x+n.y*n.y/4,m=-2*n.x*(u-c)-n.y*(f/2-c),b=(u-c)*(u-c)+(f/2-c)*(f/2-c)-c*c,A=(-m+Math.sqrt(m*m-4*y*b))/(2*y)):s?(y=(n.x*n.x+n.y*n.y)/4,m=-n.x*(u/2-c)-n.y*(f/2-c),b=(u/2-c)*(u/2-c)+(f/2-c)*(f/2-c)-c*c,A=(-m+Math.sqrt(m*m-4*y*b))/(2*y)):(y=n.x*n.x/4+n.y*n.y,m=-n.x*(u/2-c)-2*n.y*(f-c),b=(u/2-c)*(u/2-c)+(f-c)*(f-c)-c*c,A=(-m+Math.sqrt(m*m-4*y*b))/(2*y)),A=Math.min(1,A),l?w=Math.max(0,c-Math.sqrt(Math.max(0,c*c-(c-(f-n.y*A)/2)*(c-(f-n.y*A)/2)))-o):w=Math.max(0,c-Math.sqrt(Math.max(0,c*c-(c-(u-n.x*A)/2)*(c-(u-n.x*A)/2)))-o),{scale:A,pad:w}}function QCe(e,r,t,a,n,i){var o=!!i.isHorizontal,l=!!i.constrained,s=i.angle||0,u=n.width,f=n.height,c=Math.abs(r-e),v=Math.abs(a-t),d;o?d=v>2*Pn?Pn:0:d=c>2*Pn?Pn:0;var p=1;l&&(p=o?Math.min(1,v/f):Math.min(1,c/u));var y=pZ(s),m=mZ(n,y),b=(o?m.x:m.y)/2,A=(n.left+n.right)/2,w=(n.top+n.bottom)/2,x=(e+r)/2,_=(t+a)/2,k=0,T=0,q;return(o?e===r:t===a)&&i.zeroBarDir?q=i.zeroBarDir:q=o?Wo(r,e):Wo(t,a),o?(x=r-q*d,k=q*b):(_=a+q*d,T=-q*b),{textX:A,textY:w,targetX:x,targetY:_,anchorX:k,anchorY:T,scale:p,rotate:y}}function eDe(e,r,t,a,n){var i=r[0].trace,o=i.texttemplate,l;return o?l=aDe(e,r,t,a,n):i.textinfo?l=nDe(r,t,a,n):l=W0.getValue(i.text,t),W0.coerceString(YCe,l)}function rDe(e,r){var t=W0.getValue(e.textposition,r);return W0.coerceEnumerated(VCe,t)}function tDe(e,r,t,a){for(var n=!1,i=!1,o=0;o0?n=!0:l<0&&(i=!0),n&&i)return 0}var s=r?t:a,u=-Wo(s.range[0],s.range[1]);return i?n?0:-u:u}function aDe(e,r,t,a,n){var i=r[0].trace,o=Wa.castOption(i,t,"texttemplate");if(!o)return"";var l=i.type==="histogram",s=i.type==="waterfall",u=i.type==="funnel",f=i.orientation==="h",c,v,d,p;f?(c="y",v=n,d="x",p=a):(c="x",v=a,d="y",p=n);function y(k){return n3(v,v.c2l(k),!0).text}function m(k){return n3(p,p.c2l(k),!0).text}var b=r[t],A={};A.label=b.p,A.labelLabel=A[c+"Label"]=y(b.p);var w=Wa.castOption(i,b.i,"text");(w===0||w)&&(A.text=w),A.value=b.s,A.valueLabel=A[d+"Label"]=m(b.s);var x={};jCe(x,i,b.i),(l||x.x===void 0)&&(x.x=f?A.value:A.label),(l||x.y===void 0)&&(x.y=f?A.label:A.value),(l||x.xLabel===void 0)&&(x.xLabel=f?A.valueLabel:A.labelLabel),(l||x.yLabel===void 0)&&(x.yLabel=f?A.labelLabel:A.valueLabel),s&&(A.delta=+b.rawS||b.s,A.deltaLabel=m(A.delta),A.final=b.v,A.finalLabel=m(A.final),A.initial=A.final-A.delta,A.initialLabel=m(A.initial)),u&&(A.value=b.s,A.valueLabel=m(A.value),A.percentInitial=b.begR,A.percentInitialLabel=Wa.formatPercent(b.begR),A.percentPrevious=b.difR,A.percentPreviousLabel=Wa.formatPercent(b.difR),A.percentTotal=b.sumR,A.percenTotalLabel=Wa.formatPercent(b.sumR));var _=Wa.castOption(i,b.i,"customdata");return _&&(A.customdata=_),Wa.texttemplateString({data:[x,A,i._meta],fallback:i.texttemplatefallback,labels:A,locale:e._d3locale,template:o})}function nDe(e,r,t,a){var n=e[0].trace,i=n.orientation==="h",o=n.type==="waterfall",l=n.type==="funnel";function s(_){var k=i?a:t;return n3(k,_,!0).text}function u(_){var k=i?t:a;return n3(k,+_,!0).text}var f=n.textinfo,c=e[r],v=f.split("+"),d=[],p,y=function(_){return v.indexOf(_)!==-1};if(y("label")&&d.push(s(e[r].p)),y("text")&&(p=Wa.castOption(n,c.i,"text"),(p===0||p)&&d.push(p)),o){var m=+c.rawS||c.s,b=c.v,A=b-m;y("initial")&&d.push(u(A)),y("delta")&&d.push(u(m)),y("final")&&d.push(u(b))}if(l){y("value")&&d.push(u(c.s));var w=0;y("percent initial")&&w++,y("percent previous")&&w++,y("percent total")&&w++;var x=w>1;y("percent initial")&&(p=Wa.formatPercent(c.begR),x&&(p+=" of initial"),d.push(p)),y("percent previous")&&(p=Wa.formatPercent(c.difR),x&&(p+=" of previous"),d.push(p)),y("percent total")&&(p=Wa.formatPercent(c.sumR),x&&(p+=" of total"),d.push(p))}return d.join("
")}gZ.exports={plot:$Ce,toMoveInsideBar:yZ}});var g9=z((XKe,wZ)=>{"use strict";var o2=Un(),iDe=Tr(),bZ=qr(),oDe=ke().fillText,lDe=r3().getLineWidth,y9=Yr().hoverLabelText,sDe=(jt(),ze(Zt)).BADNUM;function uDe(e,r,t,a,n){var i=xZ(e,r,t,a,n);if(i){var o=i.cd,l=o[0].trace,s=o[i.index];return i.color=_Z(l,s),iDe.getComponentMethod("errorbars","hoverInfo")(s,l,i),[i]}}function xZ(e,r,t,a,n){var i=e.cd,o=i[0].trace,l=i[0].t,s=a==="closest",u=o.type==="waterfall",f=e.maxHoverDistance,c=e.maxSpikeDistance,v,d,p,y,m,b,A;o.orientation==="h"?(v=t,d=r,p="y",y="x",m=O,b=R):(v=r,d=t,p="x",y="y",b=O,m=R);var w=o[p+"period"],x=s||w;function _($){return T($,-1)}function k($){return T($,1)}function T($,fe){var ie=$.w;return $[p]+fe*ie/2}function q($){return $[p+"End"]-$[p+"Start"]}var C=s?_:w?function($){return $.p-q($)/2}:function($){return Math.min(_($),$.p-l.bardelta/2)},E=s?k:w?function($){return $.p+q($)/2}:function($){return Math.max(k($),$.p+l.bardelta/2)};function P($,fe,ie){return n.finiteRange&&(ie=0),o2.inbox($-v,fe-v,ie+Math.min(1,Math.abs(fe-$)/A)-1)}function R($){return P(C($),E($),f)}function N($){return P(_($),k($),c)}function I($){var fe=$[y];if(u){var ie=Math.abs($.rawS)||0;d>0?fe+=ie:d<0&&(fe-=ie)}return fe}function O($){var fe=d,ie=$.b,ue=I($);return o2.inbox(ie-fe,ue-fe,f+(ue-fe)/(ue-ie)-1)}function U($){var fe=d,ie=$.b,ue=I($);return o2.inbox(ie-fe,ue-fe,c+(ue-fe)/(ue-ie)-1)}var Y=e[p+"a"],G=e[y+"a"];A=Math.abs(Y.r2c(Y.range[1])-Y.r2c(Y.range[0]));function V($){return(m($)+b($))/2}var W=o2.getDistanceFunction(a,m,b,V);if(o2.getClosest(i,W,e),e.index!==!1&&i[e.index].p!==sDe){x||(C=function($){return Math.min(_($),$.p-l.bargroupwidth/2)},E=function($){return Math.max(k($),$.p+l.bargroupwidth/2)});var j=e.index,J=i[j],te=o.base?J.b+J.s:J.s;e[y+"0"]=e[y+"1"]=G.c2p(J[y],!0),e[y+"LabelVal"]=te;var ae=l.extents[l.extents.round(J.p)];e[p+"0"]=Y.c2p(s?C(J):ae[0],!0),e[p+"1"]=Y.c2p(s?E(J):ae[1],!0);var se=J.orig_p!==void 0;return e[p+"LabelVal"]=se?J.orig_p:J.p,e.labelLabel=y9(Y,e[p+"LabelVal"],o[p+"hoverformat"]),e.valueLabel=y9(G,e[y+"LabelVal"],o[y+"hoverformat"]),e.baseLabel=y9(G,J.b,o[y+"hoverformat"]),e.spikeDistance=(U(J)+N(J))/2,e[p+"Spike"]=Y.c2p(J.p,!0),oDe(J,o,e),e.hovertemplate=o.hovertemplate,e}}function _Z(e,r){var t=r.mcc||e.marker.color,a=r.mlcc||e.marker.line.color,n=lDe(e,r);if(bZ.opacity(t))return t;if(bZ.opacity(a)&&n)return a}wZ.exports={hoverPoints:uDe,hoverOnBars:xZ,getTraceColor:_Z}});var TZ=z((ZKe,AZ)=>{"use strict";AZ.exports=function(r,t,a){return r.x="xVal"in t?t.xVal:t.x,r.y="yVal"in t?t.yVal:t.y,t.xa&&(r.xaxis=t.xa),t.ya&&(r.yaxis=t.ya),a.orientation==="h"?(r.label=r.y,r.value=r.x):(r.label=r.x,r.value=r.y),r}});var b9=z(($Ke,MZ)=>{"use strict";MZ.exports=function(r,t){var a=r.cd,n=r.xaxis,i=r.yaxis,o=a[0].trace,l=o.type==="funnel",s=o.orientation==="h",u=[],f;if(t===!1)for(f=0;f{"use strict";kZ.exports={attributes:Pf(),layoutAttributes:Kg(),supplyDefaults:Rf().supplyDefaults,crossTraceDefaults:Rf().crossTraceDefaults,supplyLayoutDefaults:c9(),calc:$X(),crossTraceCalc:cg().crossTraceCalc,colorbar:Ud(),arraysToCalcdata:e3(),plot:m9().plot,style:j0().style,styleOnSelect:j0().styleOnSelect,hoverPoints:g9().hoverPoints,eventData:TZ(),selectPoints:b9(),moduleType:"trace",name:"bar",basePlotModule:io(),categories:["bar-like","cartesian","svg","bar","oriented","errorBarsOK","showLegend","zoomScale"],animatable:!0,meta:{}}});var LZ=z((KKe,qZ)=>{"use strict";qZ.exports=SZ()});var i3=z((QKe,PZ)=>{"use strict";var cDe=Cy(),so=Ji(),CZ=Pf(),vDe=Ii(),DZ=Eo().axisHoverFormat,{hovertemplateAttrs:hDe,templatefallbackAttrs:dDe}=di(),ns=Mt().extendFlat,X0=so.marker,EZ=X0.line;PZ.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:so.xperiod,yperiod:so.yperiod,xperiod0:so.xperiod0,yperiod0:so.yperiod0,xperiodalignment:so.xperiodalignment,yperiodalignment:so.yperiodalignment,xhoverformat:DZ("x"),yhoverformat:DZ("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:ns({},X0.symbol,{arrayOk:!1,editType:"plot"}),opacity:ns({},X0.opacity,{arrayOk:!1,dflt:1,editType:"style"}),angle:ns({},X0.angle,{arrayOk:!1,editType:"calc"}),size:ns({},X0.size,{arrayOk:!1,editType:"calc"}),color:ns({},X0.color,{arrayOk:!1,editType:"style"}),line:{color:ns({},EZ.color,{arrayOk:!1,dflt:vDe.defaultLine,editType:"style"}),width:ns({},EZ.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:cDe(),whiskerwidth:{valType:"number",min:0,max:1,dflt:.5,editType:"calc"},showwhiskers:{valType:"boolean",editType:"calc"},offsetgroup:CZ.offsetgroup,alignmentgroup:CZ.alignmentgroup,selected:{marker:so.selected.marker,editType:"style"},unselected:{marker:so.unselected.marker,editType:"style"},text:ns({},so.text,{}),hovertext:ns({},so.hovertext,{}),hovertemplate:hDe({}),hovertemplatefallback:dDe(),hoveron:{valType:"flaglist",flags:["boxes","points"],dflt:"boxes+points",editType:"style"},zorder:so.zorder}});var o3=z((eQe,RZ)=>{"use strict";RZ.exports={boxmode:{valType:"enumerated",values:["group","overlay"],dflt:"overlay",editType:"calc"},boxgap:{valType:"number",min:0,max:1,dflt:.3,editType:"calc"},boxgroupgap:{valType:"number",min:0,max:1,dflt:.3,editType:"calc"}}});var s2=z((rQe,IZ)=>{"use strict";var uo=ke(),pDe=Tr(),mDe=qr(),yDe=T0(),gDe=Fd(),FZ=Am(),l2=i3();function bDe(e,r,t,a){function n(p,y){return uo.coerce(e,r,l2,p,y)}if(zZ(e,r,n,a),r.visible!==!1){yDe(e,r,a,n),n("xhoverformat"),n("yhoverformat");var i=r._hasPreCompStats;i&&(n("lowerfence"),n("upperfence")),n("line.color",(e.marker||{}).color||t),n("line.width"),n("fillcolor",mDe.addOpacity(r.line.color,.5));var o=!1;if(i){var l=n("mean"),s=n("sd");l&&l.length&&(o=!0,s&&s.length&&(o="sd"))}n("whiskerwidth");var u=n("sizemode"),f;u==="quartiles"&&(f=n("boxmean",o)),n("showwhiskers",u==="quartiles"),(u==="sd"||f==="sd")&&n("sdmultiple"),n("width"),n("quartilemethod");var c=!1;if(i){var v=n("notchspan");v&&v.length&&(c=!0)}else uo.validate(e.notchwidth,l2.notchwidth)&&(c=!0);var d=n("notched",c);d&&n("notchwidth"),NZ(e,r,n,{prefix:"box"}),n("zorder")}}function zZ(e,r,t,a){function n(E){var P=0;return E&&E.length&&(P+=1,uo.isArrayOrTypedArray(E[0])&&E[0].length&&(P+=1)),P}function i(E){return uo.validate(e[E],l2[E])}var o=t("y"),l=t("x"),s;if(r.type==="box"){var u=t("q1"),f=t("median"),c=t("q3");r._hasPreCompStats=u&&u.length&&f&&f.length&&c&&c.length,s=Math.min(uo.minRowLength(u),uo.minRowLength(f),uo.minRowLength(c))}else r._hasPreCompStats=!1;var v=n(o),d=n(l),p=v&&uo.minRowLength(o),y=d&&uo.minRowLength(l),m=a.calendar,b={autotypenumbers:a.autotypenumbers},A,w;if(r._hasPreCompStats)switch(String(d)+String(v)){case"00":var x=i("x0")||i("dx"),_=i("y0")||i("dy");_&&!x?A="h":A="v",w=s;break;case"10":A="v",w=Math.min(s,y);break;case"20":A="h",w=Math.min(s,l.length);break;case"01":A="h",w=Math.min(s,p);break;case"02":A="v",w=Math.min(s,o.length);break;case"12":A="v",w=Math.min(s,y,o.length);break;case"21":A="h",w=Math.min(s,l.length,p);break;case"11":w=0;break;case"22":var k=!1,T;for(T=0;T0?(A="v",d>0?w=Math.min(y,p):w=Math.min(p)):d>0?(A="h",w=Math.min(y)):w=0;if(!w){r.visible=!1;return}r._length=w;var q=t("orientation",A);r._hasPreCompStats?q==="v"&&d===0?(t("x0",0),t("dx",1)):q==="h"&&v===0&&(t("y0",0),t("dy",1)):q==="v"&&d===0?t("x0"):q==="h"&&v===0&&t("y0");var C=pDe.getComponentMethod("calendars","handleTraceDefaults");C(e,r,["x","y"],a)}function NZ(e,r,t,a){var n=a.prefix,i=uo.coerce2(e,r,l2,"marker.outliercolor"),o=t("marker.line.outliercolor"),l="outliers";r._hasPreCompStats?l="all":(i||o)&&(l="suspectedoutliers");var s=t(n+"points",l);s?(t("jitter",s==="all"?.3:0),t("pointpos",s==="all"?-1.5:0),t("marker.symbol"),t("marker.opacity"),t("marker.size"),t("marker.angle"),t("marker.color",r.line.color),t("marker.line.color"),t("marker.line.width"),s==="suspectedoutliers"&&(t("marker.line.outliercolor",r.marker.color),t("marker.line.outlierwidth")),t("selected.marker.color"),t("unselected.marker.color"),t("selected.marker.size"),t("unselected.marker.size"),t("text"),t("hovertext")):delete r.marker;var u=t("hoveron");(u==="all"||u.indexOf("points")!==-1)&&(t("hovertemplate"),t("hovertemplatefallback")),uo.coerceSelectionMarkerOpacity(r,t)}function xDe(e,r){var t,a;function n(s){return uo.coerce(a._input,a,l2,s)}for(var i=0;i{"use strict";var _De=Tr(),wDe=ke(),ADe=o3();function BZ(e,r,t,a,n){for(var i=n+"Layout",o=!1,l=0;l{"use strict";var w9=Br(),l3=Yr(),MDe=k0(),_a=ke(),Li=(jt(),ze(Zt)).BADNUM,is=_a._;ZZ.exports=function(r,t){var a=r._fullLayout,n=l3.getFromId(r,t.xaxis||"x"),i=l3.getFromId(r,t.yaxis||"y"),o=[],l=t.type==="violin"?"_numViolins":"_numBoxes",s,u,f,c,v,d,p;t.orientation==="h"?(f=n,c="x",v=i,d="y",p=!!t.yperiodalignment):(f=i,c="y",v=n,d="x",p=!!t.xperiodalignment);var y=kDe(t,d,v,a[l]),m=y[0],b=y[1],A=_a.distinctVals(m,v),w=A.vals,x=A.minDiff/2,_,k,T,q,C,E,P=(t.boxpoints||t.points)==="all"?_a.identity:function(De){return De.v<_.lf||De.v>_.uf};if(t._hasPreCompStats){var R=t[c],N=function(De){return f.d2c((t[De]||[])[s])},I=1/0,O=-1/0;for(s=0;s=_.q1&&_.q3>=_.med){var Y=N("lowerfence");_.lf=Y!==Li&&Y<=_.q1?Y:YZ(_,T,q);var G=N("upperfence");_.uf=G!==Li&&G>=_.q3?G:VZ(_,T,q);var V=N("mean");_.mean=V!==Li?V:q?_a.mean(T,q):(_.q1+_.q3)/2;var W=N("sd");_.sd=V!==Li&&W>=0?W:q?_a.stdev(T,q,_.mean):_.q3-_.q1,_.lo=jZ(_),_.uo=WZ(_);var j=N("notchspan");j=j!==Li&&j>0?j:XZ(_,q),_.ln=_.med-j,_.un=_.med+j;var J=_.lf,te=_.uf;t.boxpoints&&T.length&&(J=Math.min(J,T[0]),te=Math.max(te,T[q-1])),t.notched&&(J=Math.min(J,_.ln),te=Math.max(te,_.un)),_.min=J,_.max=te}else{_a.warn(["Invalid input - make sure that q1 <= median <= q3","q1 = "+_.q1,"median = "+_.med,"q3 = "+_.q3].join(` -`));var ae;_.med!==Li?ae=_.med:_.q1!==Li?_.q3!==Li?ae=(_.q1+_.q3)/2:ae=_.q1:_.q3!==Li?ae=_.q3:ae=0,_.med=ae,_.q1=_.q3=ae,_.lf=_.uf=ae,_.mean=_.sd=ae,_.ln=_.un=ae,_.min=_.max=ae}I=Math.min(I,_.min),O=Math.max(O,_.max),_.pts2=k.filter(P),o.push(_)}}t._extremes[f._id]=l3.findExtremes(f,[I,O],{padded:!0})}else{var se=f.makeCalcdata(t,c),$=SDe(w,x),fe=w.length,ie=qDe(fe);for(s=0;s=0&&ue0){if(_={},_.pos=_[d]=w[s],k=_.pts=ie[s].sort(UZ),T=_[c]=k.map(GZ),q=T.length,_.min=T[0],_.max=T[q-1],_.mean=_a.mean(T,q),_.sd=_a.stdev(T,q,_.mean)*t.sdmultiple,_.med=_a.interp(T,.5),q%2&&(Re||ye)){var Ce,Me;Re?(Ce=T.slice(0,q/2),Me=T.slice(q/2+1)):ye&&(Ce=T.slice(0,q/2+1),Me=T.slice(q/2)),_.q1=_a.interp(Ce,.5),_.q3=_a.interp(Me,.5)}else _.q1=_a.interp(T,.25),_.q3=_a.interp(T,.75);_.lf=YZ(_,T,q),_.uf=VZ(_,T,q),_.lo=jZ(_),_.uo=WZ(_);var Le=XZ(_,q);_.ln=_.med-Le,_.un=_.med+Le,ce=Math.min(ce,_.ln),oe=Math.max(oe,_.un),_.pts2=k.filter(P),o.push(_)}t.notched&&_a.isTypedArray(se)&&(se=Array.from(se)),t._extremes[f._id]=l3.findExtremes(f,t.notched?se.concat([ce,oe]):se,{padded:!0})}return LDe(o,t),o.length>0?(o[0].t={num:a[l],dPos:x,posLetter:d,valLetter:c,labels:{med:is(r,"median:"),min:is(r,"min:"),q1:is(r,"q1:"),q3:is(r,"q3:"),max:is(r,"max:"),mean:t.boxmean==="sd"||t.sizemode==="sd"?is(r,"mean \xB1 \u03C3:").replace("\u03C3",t.sdmultiple===1?"\u03C3":t.sdmultiple+"\u03C3"):is(r,"mean:"),lf:is(r,"lower fence:"),uf:is(r,"upper fence:")}},a[l]++,o):[{t:{empty:!0}}]};function kDe(e,r,t,a){var n=r in e,i=r+"0"in e,o="d"+r in e;if(n||i&&o){var l=t.makeCalcdata(e,r),s=MDe(e,t,r,l).vals;return[s,l]}var u;i?u=e[r+"0"]:"name"in e&&(t.type==="category"||w9(e.name)&&["linear","log"].indexOf(t.type)!==-1||_a.isDateTime(e.name)&&t.type==="date")?u=e.name:u=a;for(var f=t.type==="multicategory"?t.r2c_just_indices(u):t.d2c(u,0,e[r+"calendar"]),c=e._length,v=new Array(c),d=0;d{"use strict";var $Z=Yr(),CDe=ke(),DDe=bf().getAxisGroup,JZ=["v","h"];function EDe(e,r){for(var t=e.calcdata,a=r.xaxis,n=r.yaxis,i=0;i1,A=1-i[e+"gap"],w=1-i[e+"groupgap"];for(s=0;s0;if(T==="positive"?(G=q*(k?1:.5),j=W,V=j=E):T==="negative"?(G=j=E,V=q*(k?1:.5),J=W):(G=V=q,j=J=W),ie){var ue=x.pointpos,ce=x.jitter,oe=x.marker.size/2,be=0;ue+ce>=0&&(be=W*(ue+ce),be>G?(fe=!0,se=oe,te=be):be>j&&(se=oe,te=G)),be<=G&&(te=G);var Re=0;ue-ce<=0&&(Re=-W*(ue-ce),Re>V?(fe=!0,$=oe,ae=Re):Re>J&&($=oe,ae=V)),Re<=V&&(ae=V)}else te=G,ae=V;var ye=new Array(f.length);for(u=0;u{"use strict";var Z0=Pr(),Nf=ke(),PDe=Jr(),e$=5,RDe=.01;function FDe(e,r,t,a){var n=e._context.staticPlot,i=r.xaxis,o=r.yaxis;Nf.makeTraceGroups(a,t,"trace boxes").each(function(l){var s=Z0.select(this),u=l[0],f=u.t,c=u.trace;if(f.wdPos=f.bdPos*c.whiskerwidth,c.visible!==!0||f.empty){s.remove();return}var v,d;c.orientation==="h"?(v=o,d=i):(v=i,d=o),r$(s,{pos:v,val:d},c,f,n),t$(s,{x:i,y:o},c,f),a$(s,{pos:v,val:d},c,f)})}function r$(e,r,t,a,n){var i=t.orientation==="h",o=r.val,l=r.pos,s=!!l.rangebreaks,u=a.bPos,f=a.wdPos||0,c=a.bPosPxOffset||0,v=t.whiskerwidth||0,d=t.showwhiskers!==!1,p=t.notched||!1,y=p?1-2*t.notchwidth:1,m,b;Array.isArray(a.bdPos)?(m=a.bdPos[0],b=a.bdPos[1]):(m=a.bdPos,b=a.bdPos);var A=e.selectAll("path.box").data(t.type!=="violin"||t.box.visible?Nf.identity:[]);A.enter().append("path").style("vector-effect",n?"none":"non-scaling-stroke").attr("class","box"),A.exit().remove(),A.each(function(w){if(w.empty)return Z0.select(this).attr("d","M0,0Z");var x=l.c2l(w.pos+u,!0),_=l.l2p(x-m)+c,k=l.l2p(x+b)+c,T=s?(_+k)/2:l.l2p(x)+c,q=t.whiskerwidth,C=s?_*q+(1-q)*T:l.l2p(x-f)+c,E=s?k*q+(1-q)*T:l.l2p(x+f)+c,P=l.l2p(x-m*y)+c,R=l.l2p(x+b*y)+c,N=t.sizemode==="sd",I=o.c2p(N?w.mean-w.sd:w.q1,!0),O=N?o.c2p(w.mean+w.sd,!0):o.c2p(w.q3,!0),U=Nf.constrain(N?o.c2p(w.mean,!0):o.c2p(w.med,!0),Math.min(I,O)+1,Math.max(I,O)-1),Y=w.lf===void 0||t.boxpoints===!1||N,G=o.c2p(Y?w.min:w.lf,!0),V=o.c2p(Y?w.max:w.uf,!0),W=o.c2p(w.ln,!0),j=o.c2p(w.un,!0);i?Z0.select(this).attr("d","M"+U+","+P+"V"+R+"M"+I+","+_+"V"+k+(p?"H"+W+"L"+U+","+R+"L"+j+","+k:"")+"H"+O+"V"+_+(p?"H"+j+"L"+U+","+P+"L"+W+","+_:"")+"Z"+(d?"M"+I+","+T+"H"+G+"M"+O+","+T+"H"+V+(v===0?"":"M"+G+","+C+"V"+E+"M"+V+","+C+"V"+E):"")):Z0.select(this).attr("d","M"+P+","+U+"H"+R+"M"+_+","+I+"H"+k+(p?"V"+W+"L"+R+","+U+"L"+k+","+j:"")+"V"+O+"H"+_+(p?"V"+j+"L"+P+","+U+"L"+_+","+W:"")+"Z"+(d?"M"+T+","+I+"V"+G+"M"+T+","+O+"V"+V+(v===0?"":"M"+C+","+G+"H"+E+"M"+C+","+V+"H"+E):""))})}function t$(e,r,t,a){var n=r.x,i=r.y,o=a.bdPos,l=a.bPos,s=t.boxpoints||t.points;Nf.seedPseudoRandom();var u=function(v){return v.forEach(function(d){d.t=a,d.trace=t}),v},f=e.selectAll("g.points").data(s?u:[]);f.enter().append("g").attr("class","points"),f.exit().remove();var c=f.selectAll("path").data(function(v){var d,p=v.pts2,y=Math.max((v.max-v.min)/10,v.q3-v.q1),m=y*1e-9,b=y*RDe,A=[],w=0,x;if(t.jitter){if(y===0)for(w=1,A=new Array(p.length),d=0;dv.lo&&(E.so=!0)}return p});c.enter().append("path").classed("point",!0),c.exit().remove(),c.call(PDe.translatePoints,n,i)}function a$(e,r,t,a){var n=r.val,i=r.pos,o=!!i.rangebreaks,l=a.bPos,s=a.bPosPxOffset||0,u=t.boxmean||(t.meanline||{}).visible,f,c;Array.isArray(a.bdPos)?(f=a.bdPos[0],c=a.bdPos[1]):(f=a.bdPos,c=a.bdPos);var v=e.selectAll("path.mean").data(t.type==="box"&&t.boxmean||t.type==="violin"&&t.box.visible&&t.meanline.visible?Nf.identity:[]);v.enter().append("path").attr("class","mean").style({fill:"none","vector-effect":"non-scaling-stroke"}),v.exit().remove(),v.each(function(d){var p=i.c2l(d.pos+l,!0),y=i.l2p(p-f)+s,m=i.l2p(p+c)+s,b=o?(y+m)/2:i.l2p(p)+s,A=n.c2p(d.mean,!0),w=n.c2p(d.mean-d.sd,!0),x=n.c2p(d.mean+d.sd,!0);t.orientation==="h"?Z0.select(this).attr("d","M"+A+","+y+"V"+m+(u==="sd"?"m0,0L"+w+","+b+"L"+A+","+y+"L"+x+","+b+"Z":"")):Z0.select(this).attr("d","M"+y+","+A+"H"+m+(u==="sd"?"m0,0L"+b+","+w+"L"+y+","+A+"L"+b+","+x+"Z":""))})}n$.exports={plot:FDe,plotBoxAndWhiskers:r$,plotPoints:t$,plotBoxMean:a$}});var L9=z((oQe,i$)=>{"use strict";var k9=Pr(),S9=qr(),q9=Jr();function zDe(e,r,t){var a=t||k9.select(e).selectAll("g.trace.boxes");a.style("opacity",function(n){return n[0].trace.opacity}),a.each(function(n){var i=k9.select(this),o=n[0].trace,l=o.line.width;function s(c,v,d,p){c.style("stroke-width",v+"px").call(S9.stroke,d).call(S9.fill,p)}var u=i.selectAll("path.box");if(o.type==="candlestick")u.each(function(c){if(!c.empty){var v=k9.select(this),d=o[c.dir];s(v,d.line.width,d.line.color,d.fillcolor),v.style("opacity",o.selectedpoints&&!c.selected?.3:1)}});else{s(u,l,o.line.color,o.fillcolor),i.selectAll("path.mean").style({"stroke-width":l,"stroke-dasharray":2*l+"px,"+l+"px"}).call(S9.stroke,o.line.color);var f=i.selectAll("path.point");q9.pointStyle(f,o,e)}})}function NDe(e,r,t){var a=r[0].trace,n=t.selectAll("path.point");a.selectedpoints?q9.selectedPointStyle(n,a):q9.pointStyle(n,a,e)}i$.exports={style:zDe,styleOnSelect:NDe}});var D9=z((lQe,u$)=>{"use strict";var IDe=Yr(),C9=ke(),au=Un(),o$=qr(),BDe=C9.fillText;function ODe(e,r,t,a){var n=e.cd,i=n[0].trace,o=i.hoveron,l=[],s;return o.indexOf("boxes")!==-1&&(l=l.concat(l$(e,r,t,a))),o.indexOf("points")!==-1&&(s=s$(e,r,t)),a==="closest"?s?[s]:l:(s&&l.push(s),l)}function l$(e,r,t,a){var n=e.cd,i=e.xa,o=e.ya,l=n[0].trace,s=n[0].t,u=l.type==="violin",f,c,v,d,p,y,m,b,A,w,x,_=s.bdPos,k,T,q=s.wHover,C=function(oe){return v.c2l(oe.pos)+s.bPos-v.c2l(y)};u&&l.side!=="both"?(l.side==="positive"&&(A=function(oe){var be=C(oe);return au.inbox(be,be+q,w)},k=_,T=0),l.side==="negative"&&(A=function(oe){var be=C(oe);return au.inbox(be-q,be,w)},k=0,T=_)):(A=function(oe){var be=C(oe);return au.inbox(be-q,be+q,w)},k=T=_);var E;u?E=function(oe){return au.inbox(oe.span[0]-p,oe.span[1]-p,w)}:E=function(oe){return au.inbox(oe.min-p,oe.max-p,w)},l.orientation==="h"?(p=r,y=t,m=E,b=A,f="y",v=o,c="x",d=i):(p=t,y=r,m=A,b=E,f="x",v=i,c="y",d=o);var P=Math.min(1,_/Math.abs(v.r2c(v.range[1])-v.r2c(v.range[0])));w=e.maxHoverDistance-P,x=e.maxSpikeDistance-P;function R(oe){return(m(oe)+b(oe))/2}var N=au.getDistanceFunction(a,m,b,R);if(au.getClosest(n,N,e),e.index===!1)return[];var I=n[e.index],O=l.line.color,U=(l.marker||{}).color;o$.opacity(O)&&l.line.width?e.color=O:o$.opacity(U)&&l.boxpoints?e.color=U:e.color=l.fillcolor,e[f+"0"]=v.c2p(I.pos+s.bPos-T,!0),e[f+"1"]=v.c2p(I.pos+s.bPos+k,!0),e[f+"LabelVal"]=I.orig_p!==void 0?I.orig_p:I.pos;var Y=f+"Spike";e.spikeDistance=R(I)*x/w,e[Y]=v.c2p(I.pos,!0);var G=l.boxmean||l.sizemode==="sd"||(l.meanline||{}).visible,V=l.boxpoints||l.points,W=V&&G?["max","uf","q3","med","mean","q1","lf","min"]:V&&!G?["max","uf","q3","med","q1","lf","min"]:!V&&G?["max","q3","med","mean","q1","min"]:["max","q3","med","q1","min"],j=d.range[1]{"use strict";f$.exports=function(r,t){return t.hoverOnBox&&(r.hoverOnBox=t.hoverOnBox),"xVal"in t&&(r.x=t.xVal),"yVal"in t&&(r.y=t.yVal),t.xa&&(r.xaxis=t.xa),t.ya&&(r.yaxis=t.ya),r}});var E9=z((uQe,v$)=>{"use strict";v$.exports=function(r,t){var a=r.cd,n=r.xaxis,i=r.yaxis,o=[],l,s;if(t===!1)for(l=0;l{"use strict";h$.exports={attributes:i3(),layoutAttributes:o3(),supplyDefaults:s2().supplyDefaults,crossTraceDefaults:s2().crossTraceDefaults,supplyLayoutDefaults:x9().supplyLayoutDefaults,calc:A9(),crossTraceCalc:T9().crossTraceCalc,plot:M9().plot,style:L9().style,styleOnSelect:L9().styleOnSelect,hoverPoints:D9().hoverPoints,eventData:c$(),selectPoints:E9(),moduleType:"trace",name:"box",basePlotModule:io(),categories:["cartesian","svg","symbols","oriented","box-violin","showLegend","boxLayout","zoomScale"],meta:{}}});var m$=z((cQe,p$)=>{"use strict";p$.exports=d$()});var u2=z((vQe,g$)=>{"use strict";var HDe=ol(),{extendFlat:oi}=Mt(),UDe=On(),{axisHoverFormat:P9}=Eo(),GDe=Ca(),{hovertemplateAttrs:YDe,templatefallbackAttrs:y$,texttemplateAttrs:VDe}=di(),Ci=Ji();g$.exports=oi({z:{valType:"data_array",editType:"calc"},x:oi({},Ci.x,{impliedEdits:{xtype:"array"}}),x0:oi({},Ci.x0,{impliedEdits:{xtype:"scaled"}}),dx:oi({},Ci.dx,{impliedEdits:{xtype:"scaled"}}),y:oi({},Ci.y,{impliedEdits:{ytype:"array"}}),y0:oi({},Ci.y0,{impliedEdits:{ytype:"scaled"}}),dy:oi({},Ci.dy,{impliedEdits:{ytype:"scaled"}}),xperiod:oi({},Ci.xperiod,{impliedEdits:{xtype:"scaled"}}),yperiod:oi({},Ci.yperiod,{impliedEdits:{ytype:"scaled"}}),xperiod0:oi({},Ci.xperiod0,{impliedEdits:{xtype:"scaled"}}),yperiod0:oi({},Ci.yperiod0,{impliedEdits:{ytype:"scaled"}}),xperiodalignment:oi({},Ci.xperiodalignment,{impliedEdits:{xtype:"scaled"}}),yperiodalignment:oi({},Ci.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:P9("x"),yhoverformat:P9("y"),zhoverformat:P9("z",1),hovertemplate:YDe(),hovertemplatefallback:y$(),texttemplate:VDe({arrayOk:!1,editType:"plot"},{keys:["x","y","z","text"]}),texttemplatefallback:y$({editType:"plot"}),textfont:GDe({editType:"plot",autoSize:!0,autoColor:!0,colorEditType:"style"}),showlegend:oi({},UDe.showlegend,{dflt:!1}),zorder:Ci.zorder},HDe("",{cLetter:"z",autoColorDflt:!1}))});var R9=z((hQe,x$)=>{"use strict";var jDe=Br(),s3=ke(),WDe=Tr();x$.exports=function(r,t,a,n,i,o){var l=a("z");i=i||"x",o=o||"y";var s,u;if(l===void 0||!l.length)return 0;if(s3.isArray1D(l)){s=a(i),u=a(o);var f=s3.minRowLength(s),c=s3.minRowLength(u);if(f===0||c===0)return 0;t._length=Math.min(f,c,l.length)}else{if(s=b$(i,a),u=b$(o,a),!XDe(l))return 0;a("transpose"),t._length=null}var v=WDe.getComponentMethod("calendars","handleTraceDefaults");return v(r,t,[i,o],n),!0};function b$(e,r){var t=r(e),a=t?r(e+"type","array"):"scaled";return a==="scaled"&&(r(e+"0"),r("d"+e)),t}function XDe(e){for(var r=!0,t=!1,a=!1,n,i=0;i0&&(t=!0);for(var o=0;o{"use strict";var _$=ke();w$.exports=function(r,t){r("texttemplate"),r("texttemplatefallback");var a=_$.extendFlat({},t.font,{color:"auto",size:"auto"});_$.coerceFont(r,"textfont",a)}});var F9=z((pQe,A$)=>{"use strict";A$.exports=function(r,t,a){var n=a("zsmooth");n===!1&&(a("xgap"),a("ygap")),a("zhoverformat")}});var k$=z((mQe,M$)=>{"use strict";var T$=ke(),ZDe=R9(),$De=f2(),JDe=T0(),KDe=F9(),QDe=jl(),eEe=u2();M$.exports=function(r,t,a,n){function i(l,s){return T$.coerce(r,t,eEe,l,s)}var o=ZDe(r,t,i,n);if(!o){t.visible=!1;return}JDe(r,t,n,i),i("xhoverformat"),i("yhoverformat"),i("text"),i("hovertext"),i("hovertemplate"),i("hovertemplatefallback"),$De(i,n),KDe(r,t,i,n),i("hoverongaps"),i("connectgaps",T$.isArray1D(t.z)&&t.zsmooth!==!1),QDe(r,t,n,i,{prefix:"",cLetter:"z"}),i("zorder")}});var z9=z((yQe,S$)=>{"use strict";var $0=Br();S$.exports={count:function(e,r,t){return t[e]++,1},sum:function(e,r,t,a){var n=a[r];return $0(n)?(n=Number(n),t[e]+=n,n):0},avg:function(e,r,t,a,n){var i=a[r];return $0(i)&&(i=Number(i),t[e]+=i,n[e]++),0},min:function(e,r,t,a){var n=a[r];if($0(n))if(n=Number(n),$0(t[e])){if(t[e]>n){var i=n-t[e];return t[e]=n,i}}else return t[e]=n,n;return 0},max:function(e,r,t,a){var n=a[r];if($0(n))if(n=Number(n),$0(t[e])){if(t[e]{"use strict";q$.exports={percent:function(e,r){for(var t=e.length,a=100/r,n=0;n{"use strict";L$.exports=function(r,t){for(var a=r.length,n=0,i=0;i{"use strict";var J0=(jt(),ze(Zt)),If=J0.ONEAVGYEAR,C$=J0.ONEAVGMONTH,f3=J0.ONEDAY,D$=J0.ONEHOUR,E$=J0.ONEMIN,P$=J0.ONESEC,R$=Yr().tickIncrement;N$.exports=function(r,t,a,n,i){var o=-1.1*t,l=-.1*t,s=r-l,u=a[0],f=a[1],c=Math.min(u3(u+l,u+s,n,i),u3(f+l,f+s,n,i)),v=Math.min(u3(u+o,u+l,n,i),u3(f+o,f+l,n,i)),d,p;if(c>v&&vf3){var y=d===If?1:6,m=d===If?"M12":"M1";return function(b,A){var w=n.c2d(b,If,i),x=w.indexOf("-",y);x>0&&(w=w.slice(0,x));var _=n.d2c(w,0,i);if(_P$?e>f3?e>If*1.1?If:e>C$*1.1?C$:f3:e>D$?D$:e>E$?E$:P$:Math.pow(10,Math.floor(Math.log(e)/Math.LN10))}function rEe(e,r,t,a,n,i){if(a&&e>f3){var o=z$(r,n,i),l=z$(t,n,i),s=e===If?0:1;return o[s]!==l[s]}return Math.floor(t/e)-Math.floor(r/e)>.1}function z$(e,r,t){var a=r.c2d(e,If,t).split("-");return a[0]===""&&(a.unshift(),a[0]="-"+a[0]),a}});var U9=z((_Qe,U$)=>{"use strict";var O9=Br(),Rn=ke(),I$=Tr(),fo=Yr(),{hasColorscale:B$}=yi(),O$=Kc(),tEe=e3(),H$=z9(),aEe=N9(),nEe=I9(),iEe=B9();function oEe(e,r){var t=[],a=[],n=r.orientation==="h",i=fo.getFromId(e,n?r.yaxis:r.xaxis),o=n?"y":"x",l={x:"y",y:"x"}[o],s=r[o+"calendar"],u=r.cumulative,f,c=H9(e,r,i,o),v=c[0],d=c[1],p=typeof v.size=="string",y=[],m=p?y:v,b=[],A=[],w=[],x=0,_=r.histnorm,k=r.histfunc,T=_.indexOf("density")!==-1,q,C,E;u.enabled&&T&&(_=_.replace(/ ?density$/,""),T=!1);var P=k==="max"||k==="min",R=P?null:0,N=H$.count,I=aEe[_],O=!1,U=function(be){return i.r2c(be,0,s)},Y;for(Rn.isArrayOrTypedArray(r[l])&&k!=="count"&&(Y=r[l],O=k==="avg",N=H$[k]),f=U(v.start),C=U(v.end)+(f-fo.tickIncrement(f,v.size,!1,s))/1e6;f=0&&E=ue;f--)if(a[f]){ce=f;break}for(f=ue;f<=ce;f++)if(O9(t[f])&&O9(a[f])){var oe={p:t[f],s:a[f],b:0};u.enabled||(oe.pts=w[f],j?oe.ph0=oe.ph1=w[f].length?d[w[f][0]]:t[f]:(r._computePh=!0,oe.ph0=$(y[f]),oe.ph1=$(y[f+1],!0))),ie.push(oe)}return ie.length===1&&(ie[0].width1=fo.tickIncrement(ie[0].p,v.size,!1,s)-ie[0].p),B$(r,"marker")&&O$(e,r,{vals:r.marker.color,containerStr:"marker",cLetter:"c"}),B$(r,"marker.line")&&O$(e,r,{vals:r.marker.line.color,containerStr:"marker.line",cLetter:"c"}),tEe(ie,r),Rn.isArrayOrTypedArray(r.selectedpoints)&&Rn.tagSelected(ie,r,ae),ie}function H9(e,r,t,a,n){var se;var i=a+"bins",o=e._fullLayout,l=r["_"+a+"bingroup"],s=o._histogramBinOpts[l],u=o.barmode==="overlay",f,c,v,d,p,y,m,b=function($){return t.r2c($,0,d)},A=function($){return t.c2r($,0,d)},w=t.type==="date"?function($){return $||$===0?Rn.cleanDate($,null,d):null}:function($){return O9($)?Number($):null};function x($,fe,ie){fe[$+"Found"]?(fe[$]=w(fe[$]),fe[$]===null&&(fe[$]=ie[$])):(y[$]=fe[$]=ie[$],Rn.nestedProperty(c[0],i+"."+$).set(ie[$]))}if(r["_"+a+"autoBinFinished"])delete r["_"+a+"autoBinFinished"];else{c=s.traces;var _=[],k=!0,T=!1,q=!1;for(f=0;ft.r2l(Y)&&(V=fo.tickIncrement(V,s.size,!0,d)),N.start=t.l2r(V),U||Rn.nestedProperty(r,i+".start").set(N.start)}var W=s.end,j=t.r2l(R.end),J=j!==void 0;if((s.endFound||J)&&j!==t.r2l(W)){var te=J?j:Rn.aggNums(Math.max,null,p);N.end=t.l2r(te),J||Rn.nestedProperty(r,i+".start").set(N.end)}var ae="autobin"+a;return r._input[ae]===!1&&(r._input[i]=Rn.extendFlat({},r[i]||{}),delete r._input[ae],delete r[ae]),[N,p]}function lEe(e,r,t,a,n){var i=e._fullLayout,o=sEe(e,r),l=!1,s=1/0,u=[r],f,c,v;for(f=0;f=0;a--)l(a);else if(r==="increasing"){for(a=1;a=0;a--)e[a]+=e[a+1];t==="exclude"&&(e.push(0),e.shift())}}U$.exports={calc:oEe,calcAllAutoBins:H9}});var $$=z((wQe,Z$)=>{"use strict";var G$=ke(),K0=Yr(),Y$=z9(),fEe=N9(),cEe=I9(),vEe=B9(),V$=U9().calcAllAutoBins;Z$.exports=function(r,t){var a=K0.getFromId(r,t.xaxis),n=K0.getFromId(r,t.yaxis),i=t.xcalendar,o=t.ycalendar,l=function(me){return a.r2c(me,0,i)},s=function(me){return n.r2c(me,0,o)},u=function(me){return a.c2r(me,0,i)},f=function(me){return n.c2r(me,0,o)},c,v,d,p,y=V$(r,t,a,"x"),m=y[0],b=y[1],A=V$(r,t,n,"y"),w=A[0],x=A[1],_=t._length;b.length>_&&b.splice(_,b.length-_),x.length>_&&x.splice(_,x.length-_);var k=[],T=[],q=[],C=typeof m.size=="string",E=typeof w.size=="string",P=[],R=[],N=C?P:m,I=E?R:w,O=0,U=[],Y=[],G=t.histnorm,V=t.histfunc,W=G.indexOf("density")!==-1,j=V==="max"||V==="min",J=j?null:0,te=Y$.count,ae=fEe[G],se=!1,$=[],fe=[],ie="z"in t?t.z:"marker"in t&&Array.isArray(t.marker.color)?t.marker.color:"";ie&&V!=="count"&&(se=V==="avg",te=Y$[V]);var ue=m.size,ce=l(m.start),oe=l(m.end)+(ce-K0.tickIncrement(ce,ue,!1,i))/1e6;for(c=ce;c=0&&d=0&&p{"use strict";var Tl=ke(),J$=(jt(),ze(Zt)).BADNUM,K$=k0();Q$.exports=function(r,t,a,n,i,o){var l=r._length,s=t.makeCalcdata(r,n),u=a.makeCalcdata(r,i);s=K$(r,t,n,s).vals,u=K$(r,a,i,u).vals;var f=r.text,c=f!==void 0&&Tl.isArray1D(f),v=r.hovertext,d=v!==void 0&&Tl.isArray1D(v),p,y,m=Tl.distinctVals(s),b=m.vals,A=Tl.distinctVals(u),w=A.vals,x=[],_,k,T=w.length,q=b.length;for(p=0;p{"use strict";var hEe=Br(),dEe=ke(),c3=(jt(),ze(Zt)).BADNUM;rJ.exports=function(r,t,a,n){var i,o,l,s,u,f;function c(b){if(hEe(b))return+b}if(t&&t.transpose){for(i=0,u=0;u{"use strict";var pEe=ke(),aJ=.01,mEe=[[-1,0],[1,0],[0,-1],[0,1]];function yEe(e){return .5-.25*Math.min(1,e*.5)}iJ.exports=function(r,t){var a=1,n;for(nJ(r,t),n=0;naJ;n++)a=nJ(r,t,yEe(a));return a>aJ&&pEe.log("interp2d didn't converge quickly",a),r};function nJ(e,r,t){var a=0,n,i,o,l,s,u,f,c,v,d,p,y,m;for(l=0;ly&&(a=Math.max(a,Math.abs(e[i][o]-p)/(m-y))))}return a}});var sJ=z((kQe,lJ)=>{"use strict";var gEe=ke().maxRowLength;lJ.exports=function(r){var t=[],a={},n=[],i=r[0],o=[],l=[0,0,0],s=gEe(r),u,f,c,v,d,p,y,m;for(f=0;f=0;d--)v=n[d],f=v[0],c=v[1],p=((a[[f-1,c]]||l)[2]+(a[[f+1,c]]||l)[2]+(a[[f,c-1]]||l)[2]+(a[[f,c+1]]||l)[2])/20,p&&(y[v]=[f,c,p],n.splice(d,1),m=!0);if(!m)throw"findEmpties iterated with no new neighbors";for(v in y)a[v]=y[v],t.push(y[v])}return t.sort(function(b,A){return A[2]-b[2]})}});var vJ=z((SQe,cJ)=>{"use strict";var uJ=Tr(),fJ=ke().isArrayOrTypedArray;cJ.exports=function(r,t,a,n,i,o){var l=[],s=uJ.traceIs(r,"contour"),u=uJ.traceIs(r,"histogram"),f,c,v,d=fJ(t)&&t.length>1;if(d&&!u&&o.type!=="category"){var p=t.length;if(p<=i){if(s)l=Array.from(t).slice(0,i);else if(i===1)o.type==="log"?l=[.5*t[0],2*t[0]]:l=[t[0]-.5,t[0]+.5];else if(o.type==="log"){for(l=[Math.pow(t[0],1.5)/Math.pow(t[1],.5)],v=1;v{"use strict";var hJ=Tr(),G9=ke(),v3=Yr(),dJ=k0(),bEe=$$(),xEe=Kc(),_Ee=eJ(),wEe=tJ(),AEe=oJ(),TEe=sJ(),h3=vJ(),Y9=(jt(),ze(Zt)).BADNUM;mJ.exports=function(r,t){var a=v3.getFromId(r,t.xaxis||"x"),n=v3.getFromId(r,t.yaxis||"y"),i=hJ.traceIs(t,"contour"),o=hJ.traceIs(t,"histogram"),l=i?"best":t.zsmooth,s,u,f,c,v,d,p,y,m,b,A;if(a._minDtick=0,n._minDtick=0,o)A=bEe(r,t),c=A.orig_x,s=A.x,u=A.x0,f=A.dx,y=A.orig_y,v=A.y,d=A.y0,p=A.dy,m=A.z;else{var w=t.z;G9.isArray1D(w)?(_Ee(t,a,n,"x","y",["z"]),s=t._x,v=t._y,w=t._z):(c=t.x?a.makeCalcdata(t,"x"):[],y=t.y?n.makeCalcdata(t,"y"):[],s=dJ(t,a,"x",c).vals,v=dJ(t,n,"y",y).vals,t._x=s,t._y=v),u=t.x0,f=t.dx,d=t.y0,p=t.dy,m=wEe(w,t,a,n)}(a.rangebreaks||n.rangebreaks)&&(m=MEe(s,v,m),o||(s=pJ(s),v=pJ(v),t._x=s,t._y=v)),!o&&(i||t.connectgaps)&&(t._emptypoints=TEe(m),AEe(m,t._emptypoints));function x(N){l=t._input.zsmooth=t.zsmooth=!1,G9.warn('cannot use zsmooth: "fast": '+N)}function _(N){if(N.length>1){var I=(N[N.length-1]-N[0])/(N.length-1),O=Math.abs(I/100);for(b=0;bO)return!1}return!0}t._islinear=!1,a.type==="log"||n.type==="log"?l==="fast"&&x("log axis found"):_(s)?_(v)?t._islinear=!0:l==="fast"&&x("y scale is not linear"):l==="fast"&&x("x scale is not linear");var k=G9.maxRowLength(m),T=t.xtype==="scaled"?"":s,q=h3(t,T,u,f,k,a),C=t.ytype==="scaled"?"":v,E=h3(t,C,d,p,m.length,n);t._extremes[a._id]=v3.findExtremes(a,q),t._extremes[n._id]=v3.findExtremes(n,E);var P={x:q,y:E,z:m,text:t._text||t.text,hovertext:t._hovertext||t.hovertext};if(t.xperiodalignment&&c&&(P.orig_x=c),t.yperiodalignment&&y&&(P.orig_y=y),T&&T.length===q.length-1&&(P.xCenter=T),C&&C.length===E.length-1&&(P.yCenter=C),o&&(P.xRanges=A.xRanges,P.yRanges=A.yRanges,P.pts=A.pts),i||xEe(r,t,{vals:m,cLetter:"z"}),i&&t.contours&&t.contours.coloring==="heatmap"){var R={type:t.type==="contour"?"heatmap":"histogram2d",xcalendar:t.xcalendar,ycalendar:t.ycalendar};P.xfill=h3(R,T,u,f,k,a),P.yfill=h3(R,C,d,p,m.length,n)}return[P]};function pJ(e){for(var r=[],t=e.length,a=0;ayJ,STYLE:()=>kEe});var yJ,kEe,m3=St(()=>{"use strict";yJ=[["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"]],kEe=yJ.map(e=>e.join(": ")+"; ").join("")});var j9=z((LQe,bJ)=>{"use strict";var gJ=(m3(),ze(p3)),SEe=Jr(),V9=ke(),Q0=null;function qEe(){if(Q0!==null)return Q0;Q0=!1;var e=V9.isSafari()||V9.isMacWKWebView()||V9.isIOS();if(window.navigator.userAgent&&!e){var r=Array.from(gJ.CSS_DECLARATIONS).reverse(),t=window.CSS&&window.CSS.supports||window.supportsCSS;if(typeof t=="function")Q0=r.some(function(o){return t.apply(null,o)});else{var a=SEe.tester.append("image").attr("style",gJ.STYLE),n=window.getComputedStyle(a.node()),i=n.imageRendering;Q0=r.some(function(o){var l=o[1];return i===l||i===l.toLowerCase()}),a.remove()}}return Q0}bJ.exports=qEe});var y3=z((CQe,LJ)=>{"use strict";var xJ=Pr(),LEe=Tr(),CEe=Jr(),DEe=Yr(),co=ke(),_J=Fa(),EEe=r8(),wJ=qr(),PEe=ll().extractOpts,REe=ll().makeColorScaleFuncFromTrace,FEe=(Vl(),ze(Yl)),zEe=(on(),ze(nn)),W9=zEe.LINE_SPACING,NEe=j9(),IEe=(m3(),ze(p3)).STYLE,SJ="heatmap-label";function qJ(e){return e.selectAll("g."+SJ)}function AJ(e){qJ(e).remove()}LJ.exports=function(e,r,t,a){var n=r.xaxis,i=r.yaxis;co.makeTraceGroups(a,t,"hm").each(function(o){var l=xJ.select(this),s=o[0],u=s.trace,f=u.xgap||0,c=u.ygap||0,v=s.z,d=s.x,p=s.y,y=s.xCenter,m=s.yCenter,b=LEe.traceIs(u,"contour"),A=b?"best":u.zsmooth,w=v.length,x=co.maxRowLength(v),_=!1,k=!1,T,q,C,E,P,R,N,I;for(R=0;T===void 0&&R0;)q=n.c2p(d[R]),R--;for(q0;)P=i.c2p(p[R]),R--;P=n._length||q<=0||E>=i._length||P<=0;if(V){var W=l.selectAll("image").data([]);W.exit().remove(),AJ(l);return}var j,J;O==="fast"?(j=x,J=w):(j=Y,J=G);var te=document.createElement("canvas");te.width=j,te.height=J;var ae=te.getContext("2d",{willReadFrequently:!0}),se=REe(u,{noNumericCheck:!0,returnArray:!0}),$,fe;O==="fast"?($=_?function(dt){return x-1-dt}:co.identity,fe=k?function(dt){return w-1-dt}:co.identity):($=function(dt){return co.constrain(Math.round(n.c2p(d[dt])-T),0,Y)},fe=function(dt){return co.constrain(Math.round(i.c2p(p[dt])-E),0,G)});var ie=fe(0),ue=[ie,ie],ce=_?0:1,oe=k?0:1,be=0,Re=0,ye=0,Ce=0,Me,Le,De,Ie,qe;function Ze(dt,Ka=0){if(dt===void 0)return[0,0,0,0];var Yt=se(dt);return Yt[0]=Math.round(Yt[0]),Yt[1]=Math.round(Yt[1]),Yt[2]=Math.round(Yt[2]),be+=Ka,Re+=Yt[0]*Ka,ye+=Yt[1]*Ka,Ce+=Yt[2]*Ka,Yt}function Je(dt,Ka,Yt,cc){var Nn=dt[Yt.bin0];if(Nn===void 0)return Ze(void 0,1);var wo=dt[Yt.bin1],ci=Ka[Yt.bin0],ca=Ka[Yt.bin1],vc=wo-Nn||0,ds=ci-Nn||0,In;return wo===void 0?ca===void 0?In=0:ci===void 0?In=2*(ca-Nn):In=(2*ca-ci-Nn)*2/3:ca===void 0?ci===void 0?In=0:In=(2*Nn-wo-ci)*2/3:ci===void 0?In=(2*ca-wo-Nn)*2/3:In=ca+Nn-wo-ci,Ze(Nn+Yt.frac*vc+cc.frac*(ds+Yt.frac*In))}if(O!=="default"){var Xe=0,Se;try{Se=new Uint8Array(j*J*4)}catch(dt){Se=new Array(j*J*4)}if(O==="smooth"){var Fe=y||d,er=m||p,re=new Array(Fe.length),xe=new Array(er.length),Ye=new Array(Y),vr=y?MJ:TJ,Pe=m?MJ:TJ,me,Te,Ue;for(R=0;RKr||Kr>i._length))for(N=ne;Nyt||yt>n._length)){var gt=EEe({x:Qr,y:He},u,e._fullLayout);gt.x=Qr,gt.y=He;var Et=s.z[R][N];Et===void 0?(gt.z="",gt.zLabel=""):(gt.z=Et,gt.zLabel=DEe.tickText(Be,Et,"hover").text);var aa=s.text&&s.text[R]&&s.text[R][N];(aa===void 0||aa===!1)&&(aa=""),gt.text=aa;var $a=co.texttemplateString({data:[gt,u._meta],fallback:u.texttemplatefallback,labels:gt,locale:e._fullLayout._d3locale,template:Ee});if($a){var na=$a.split("
"),Ja=na.length,hn=0;for(I=0;I{"use strict";CJ.exports={min:"zmin",max:"zmax"}});var g3=z((EQe,DJ)=>{"use strict";var BEe=Pr();DJ.exports=function(r){BEe.select(r).selectAll(".hm image").style("opacity",function(t){return t.trace.opacity})}});var x3=z((PQe,PJ)=>{"use strict";var EJ=Un(),c2=ke(),b3=c2.isArrayOrTypedArray,OEe=Yr(),HEe=ll().extractOpts;PJ.exports=function(r,t,a,n,i){i||(i={});var o=i.isContour,l=r.cd[0],s=l.trace,u=r.xa,f=r.ya,c=l.x,v=l.y,d=l.z,p=l.xCenter,y=l.yCenter,m=l.zmask,b=s.zhoverformat,A=c,w=v,x,_,k,T;if(r.index!==!1){try{k=Math.round(r.index[1]),T=Math.round(r.index[0])}catch(W){c2.error("Error hovering on heatmap, pointNumber must be [row,col], found:",r.index);return}if(k<0||k>=d[0].length||T<0||T>d.length)return}else{if(EJ.inbox(t-c[0],t-c[c.length-1],0)>0||EJ.inbox(a-v[0],a-v[v.length-1],0)>0)return;if(o){var q;for(A=[2*c[0]-c[1]],q=1;q{"use strict";RJ.exports={attributes:u2(),supplyDefaults:k$(),calc:d3(),plot:y3(),colorbar:X9(),style:g3(),hoverPoints:x3(),moduleType:"trace",name:"heatmap",basePlotModule:io(),categories:["cartesian","svg","2dMap","showLegend"],meta:{}}});var NJ=z((FQe,zJ)=>{"use strict";zJ.exports=FJ()});var Z9=z((zQe,IJ)=>{"use strict";IJ.exports=function(r,t){return{start:{valType:"any",editType:"calc"},end:{valType:"any",editType:"calc"},size:{valType:"any",editType:"calc"},editType:"calc"}}});var BJ={};qt(BJ,{eventDataKeys:()=>UEe});var UEe,OJ=St(()=>{"use strict";UEe=["binNumber"]});var _3=z((NQe,YJ)=>{"use strict";var li=Pf(),HJ=Eo().axisHoverFormat,{hovertemplateAttrs:GEe,texttemplateAttrs:YEe,templatefallbackAttrs:UJ}=di(),$9=Ca(),GJ=Z9(),VEe=(OJ(),ze(BJ)),J9=Mt().extendFlat;YJ.exports={x:{valType:"data_array",editType:"calc+clearAxisTypes"},y:{valType:"data_array",editType:"calc+clearAxisTypes"},xhoverformat:HJ("x"),yhoverformat:HJ("y"),text:J9({},li.text,{}),hovertext:J9({},li.hovertext,{}),orientation:li.orientation,histfunc:{valType:"enumerated",values:["count","sum","avg","min","max"],dflt:"count",editType:"calc"},histnorm:{valType:"enumerated",values:["","percent","probability","density","probability density"],dflt:"",editType:"calc"},cumulative:{enabled:{valType:"boolean",dflt:!1,editType:"calc"},direction:{valType:"enumerated",values:["increasing","decreasing"],dflt:"increasing",editType:"calc"},currentbin:{valType:"enumerated",values:["include","exclude","half"],dflt:"include",editType:"calc"},editType:"calc"},nbinsx:{valType:"integer",min:0,dflt:0,editType:"calc"},xbins:GJ("x",!0),nbinsy:{valType:"integer",min:0,dflt:0,editType:"calc"},ybins:GJ("y",!0),autobinx:{valType:"boolean",dflt:null,editType:"calc"},autobiny:{valType:"boolean",dflt:null,editType:"calc"},bingroup:{valType:"string",dflt:"",editType:"calc"},hovertemplate:GEe({},{keys:VEe.eventDataKeys}),hovertemplatefallback:UJ(),texttemplate:YEe({arrayOk:!1,editType:"plot"},{keys:["label","value"]}),texttemplatefallback:UJ({editType:"plot"}),textposition:J9({},li.textposition,{arrayOk:!1}),textfont:$9({arrayOk:!1,editType:"plot",colorEditType:"style"}),outsidetextfont:$9({arrayOk:!1,editType:"plot",colorEditType:"style"}),insidetextfont:$9({arrayOk:!1,editType:"plot",colorEditType:"style"}),insidetextanchor:li.insidetextanchor,textangle:li.textangle,cliponaxis:li.cliponaxis,constraintext:li.constraintext,marker:li.marker,offsetgroup:li.offsetgroup,alignmentgroup:li.alignmentgroup,selected:li.selected,unselected:li.unselected,zorder:li.zorder}});var XJ=z((IQe,WJ)=>{"use strict";var VJ=Tr(),v2=ke(),jJ=qr(),jEe=Rf().handleText,WEe=f9(),XEe=_3();WJ.exports=function(r,t,a,n){function i(A,w){return v2.coerce(r,t,XEe,A,w)}var o=i("x"),l=i("y"),s=i("cumulative.enabled");s&&(i("cumulative.direction"),i("cumulative.currentbin")),i("text");var u=i("textposition");jEe(r,t,n,i,u,{moduleHasSelected:!0,moduleHasUnselected:!0,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),i("hovertext"),i("hovertemplate"),i("hovertemplatefallback"),i("xhoverformat"),i("yhoverformat");var f=i("orientation",l&&!o?"h":"v"),c=f==="v"?"x":"y",v=f==="v"?"y":"x",d=o&&l?Math.min(v2.minRowLength(o)&&v2.minRowLength(l)):v2.minRowLength(t[c]||[]);if(!d){t.visible=!1;return}t._length=d;var p=VJ.getComponentMethod("calendars","handleTraceDefaults");p(r,t,["x","y"],n);var y=t[v];y&&i("histfunc"),i("histnorm"),i("autobin"+c),WEe(r,t,i,a,n),v2.coerceSelectionMarkerOpacity(t,i);var m=(t.marker.line||{}).color,b=VJ.getComponentMethod("errorbars","supplyDefaults");b(r,t,m||jJ.defaultLine,{axis:"y"}),b(r,t,m||jJ.defaultLine,{axis:"x",inherit:"y"}),i("zorder")}});var A3=z((BQe,JJ)=>{"use strict";var h2=ke(),ZEe=Aa(),w3=Tr().traceIs,$Ee=Fd(),JEe=Rf().validateCornerradius,ZJ=h2.nestedProperty,K9=bf().getAxisGroup,$J=[{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"}],KEe=["x","y"];JJ.exports=function(r,t){var a=t._histogramBinOpts={},n=[],i={},o=[],l,s,u,f,c,v,d;function p(O,U){return h2.coerce(l._input,l,l._module.attributes,O,U)}function y(O){return O.orientation==="v"?"x":"y"}function m(O,U){var Y=ZEe.getFromTrace({_fullLayout:t},O,U);return Y.type}function b(O,U,Y){var G=O.uid+"__"+Y;U||(U=G);var V=m(O,Y),W=O[Y+"calendar"]||"",j=a[U],J=!0;j&&(V===j.axType&&W===j.calendar?(J=!1,j.traces.push(O),j.dirs.push(Y)):(U=G,V!==j.axType&&h2.warn(["Attempted to group the bins of trace",O.index,"set on a","type:"+V,"axis","with bins on","type:"+j.axType,"axis."].join(" ")),W!==j.calendar&&h2.warn(["Attempted to group the bins of trace",O.index,"set with a",W,"calendar","with bins",j.calendar?"on a "+j.calendar+" calendar":"w/o a set calendar"].join(" ")))),J&&(a[U]={traces:[O],dirs:[Y],axType:V,calendar:O[Y+"calendar"]||""}),O["_"+Y+"bingroup"]=U}for(c=0;c{"use strict";var QEe=g9().hoverPoints,ePe=Yr().hoverLabelText;KJ.exports=function(r,t,a,n,i){var o=QEe(r,t,a,n,i);if(o){r=o[0];var l=r.cd[r.index],s=r.cd[0].trace;if(!s.cumulative.enabled){var u=s.orientation==="h"?"y":"x";r[u+"Label"]=ePe(r[u+"a"],[l.ph0,l.ph1],s[u+"hoverformat"])}return o}}});var Q9=z((HQe,eK)=>{"use strict";eK.exports=function(r,t,a,n,i){if(r.x="xVal"in t?t.xVal:t.x,r.y="yVal"in t?t.yVal:t.y,"zLabelVal"in t&&(r.z=t.zLabelVal),t.xa&&(r.xaxis=t.xa),t.ya&&(r.yaxis=t.ya),!(a.cumulative||{}).enabled){var o=Array.isArray(i)?n[0].pts[i[0]][i[1]]:n[i].pts;r.pointNumbers=o,r.binNumber=r.pointNumber,delete r.pointNumber,delete r.pointIndex,r.pointIndices=o}return r}});var tK=z((UQe,rK)=>{"use strict";rK.exports={attributes:_3(),layoutAttributes:Kg(),supplyDefaults:XJ(),crossTraceDefaults:A3(),supplyLayoutDefaults:c9(),calc:U9().calc,crossTraceCalc:cg().crossTraceCalc,plot:m9().plot,layerName:"barlayer",style:j0().style,styleOnSelect:j0().styleOnSelect,colorbar:Ud(),hoverPoints:QJ(),selectPoints:b9(),eventData:Q9(),moduleType:"trace",name:"histogram",basePlotModule:io(),categories:["bar-like","cartesian","svg","bar","histogram","oriented","errorBarsOK","showLegend"],meta:{}}});var nK=z((GQe,aK)=>{"use strict";aK.exports=tK()});var M3=z((YQe,lK)=>{"use strict";var Xo=_3(),iK=Z9(),T3=u2(),rPe=On(),eA=Eo().axisHoverFormat,{hovertemplateAttrs:tPe,texttemplateAttrs:aPe,templatefallbackAttrs:oK}=di(),nPe=ol(),d2=Mt().extendFlat;lK.exports=d2({x:Xo.x,y:Xo.y,z:{valType:"data_array",editType:"calc"},marker:{color:{valType:"data_array",editType:"calc"},editType:"calc"},histnorm:Xo.histnorm,histfunc:Xo.histfunc,nbinsx:Xo.nbinsx,xbins:iK("x"),nbinsy:Xo.nbinsy,ybins:iK("y"),autobinx:Xo.autobinx,autobiny:Xo.autobiny,bingroup:d2({},Xo.bingroup,{}),xbingroup:d2({},Xo.bingroup,{}),ybingroup:d2({},Xo.bingroup,{}),xgap:T3.xgap,ygap:T3.ygap,zsmooth:T3.zsmooth,xhoverformat:eA("x"),yhoverformat:eA("y"),zhoverformat:eA("z",1),hovertemplate:tPe({},{keys:["z"]}),hovertemplatefallback:oK(),texttemplate:aPe({arrayOk:!1,editType:"plot"},{keys:["z"]}),texttemplatefallback:oK({editType:"plot"}),textfont:T3.textfont,showlegend:d2({},rPe.showlegend,{dflt:!1})},nPe("",{cLetter:"z",autoColorDflt:!1}))});var rA=z((VQe,uK)=>{"use strict";var iPe=Tr(),sK=ke();uK.exports=function(r,t,a,n){var i=a("x"),o=a("y"),l=sK.minRowLength(i),s=sK.minRowLength(o);if(!l||!s){t.visible=!1;return}t._length=Math.min(l,s);var u=iPe.getComponentMethod("calendars","handleTraceDefaults");u(r,t,["x","y"],n);var f=a("z")||a("marker.color");f&&a("histfunc"),a("histnorm"),a("autobinx"),a("autobiny")}});var cK=z((jQe,fK)=>{"use strict";var oPe=ke(),lPe=rA(),sPe=F9(),uPe=jl(),fPe=f2(),cPe=M3();fK.exports=function(r,t,a,n){function i(o,l){return oPe.coerce(r,t,cPe,o,l)}lPe(r,t,i,n),t.visible!==!1&&(sPe(r,t,i,n),uPe(r,t,n,i,{prefix:"",cLetter:"z"}),i("hovertemplate"),i("hovertemplatefallback"),fPe(i,n),i("xhoverformat"),i("yhoverformat"))}});var dK=z((WQe,hK)=>{"use strict";var vPe=x3(),vK=Yr().hoverLabelText;hK.exports=function(r,t,a,n,i){var o=vPe(r,t,a,n,i);if(o){r=o[0];var l=r.index,s=l[0],u=l[1],f=r.cd[0],c=f.trace,v=f.xRanges[u],d=f.yRanges[s];return r.xLabel=vK(r.xa,[v[0],v[1]],c.xhoverformat),r.yLabel=vK(r.ya,[d[0],d[1]],c.yhoverformat),o}}});var mK=z((XQe,pK)=>{"use strict";pK.exports={attributes:M3(),supplyDefaults:cK(),crossTraceDefaults:A3(),calc:d3(),plot:y3(),layerName:"heatmaplayer",colorbar:X9(),style:g3(),hoverPoints:dK(),eventData:Q9(),moduleType:"trace",name:"histogram2d",basePlotModule:io(),categories:["cartesian","svg","2dMap","histogram","showLegend"],meta:{}}});var gK=z((ZQe,yK)=>{"use strict";yK.exports=mK()});var k3={};qt(k3,{COMPARISON_OPS:()=>hPe,COMPARISON_OPS2:()=>dPe,CONSTRAINT_REDUCTION:()=>yPe,INTERVAL_OPS:()=>pPe,SET_OPS:()=>mPe});var hPe,dPe,pPe,mPe,yPe,S3=St(()=>{"use strict";hPe=["=","!=","<",">=",">","<="],dPe=["=","<",">=",">","<="],pPe=["[]","()","[)","(]","][",")(","](",")["],mPe=["{}","}{"],yPe={"=":"=","<":"<","<=":"<",">":">",">=":">","[]":"[]","()":"[]","[)":"[]","(]":"[]","][":"][",")(":"][","](":"][",")[":"]["}});var L3=z(($Qe,wK)=>{"use strict";var wa=u2(),q3=Ji(),xK=Eo(),tA=xK.axisHoverFormat,gPe=xK.descriptionOnlyNumbers,bPe=ol(),xPe=Bi().dash,_Pe=Ca(),ev=Mt().extendFlat,_K=(S3(),ze(k3)),wPe=_K.COMPARISON_OPS2,APe=_K.INTERVAL_OPS,bK=q3.line;wK.exports=ev({z:wa.z,x:wa.x,x0:wa.x0,dx:wa.dx,y:wa.y,y0:wa.y0,dy:wa.dy,xperiod:wa.xperiod,yperiod:wa.yperiod,xperiod0:q3.xperiod0,yperiod0:q3.yperiod0,xperiodalignment:wa.xperiodalignment,yperiodalignment:wa.yperiodalignment,text:wa.text,hovertext:wa.hovertext,transpose:wa.transpose,xtype:wa.xtype,ytype:wa.ytype,xhoverformat:tA("x"),yhoverformat:tA("y"),zhoverformat:tA("z",1),hovertemplate:wa.hovertemplate,hovertemplatefallback:wa.hovertemplatefallback,texttemplate:ev({},wa.texttemplate,{}),texttemplatefallback:wa.texttemplatefallback,textfont:ev({},wa.textfont,{}),hoverongaps:wa.hoverongaps,connectgaps:ev({},wa.connectgaps,{}),fillcolor:{valType:"color",editType:"calc"},autocontour:{valType:"boolean",dflt:!0,editType:"calc",impliedEdits:{"contours.start":void 0,"contours.end":void 0,"contours.size":void 0}},ncontours:{valType:"integer",dflt:15,min:1,editType:"calc"},contours:{type:{valType:"enumerated",values:["levels","constraint"],dflt:"levels",editType:"calc"},start:{valType:"number",dflt:null,editType:"plot",impliedEdits:{"^autocontour":!1}},end:{valType:"number",dflt:null,editType:"plot",impliedEdits:{"^autocontour":!1}},size:{valType:"number",dflt:null,min:0,editType:"plot",impliedEdits:{"^autocontour":!1}},coloring:{valType:"enumerated",values:["fill","heatmap","lines","none"],dflt:"fill",editType:"calc"},showlines:{valType:"boolean",dflt:!0,editType:"plot"},showlabels:{valType:"boolean",dflt:!1,editType:"plot"},labelfont:_Pe({editType:"plot",colorEditType:"style"}),labelformat:{valType:"string",dflt:"",editType:"plot",description:gPe("contour label")},operation:{valType:"enumerated",values:[].concat(wPe).concat(APe),dflt:"=",editType:"calc"},value:{valType:"any",dflt:0,editType:"calc"},editType:"calc",impliedEdits:{autocontour:!1}},line:{color:ev({},bK.color,{editType:"style+colorbars"}),width:{valType:"number",min:0,editType:"style+colorbars"},dash:xPe,smoothing:ev({},bK.smoothing,{}),editType:"plot"},zorder:q3.zorder},bPe("",{cLetter:"z",autoColorDflt:!1,editTypeOverride:"calc"}))});var nA=z((JQe,TK)=>{"use strict";var gn=M3(),Ml=L3(),TPe=ol(),aA=Eo().axisHoverFormat,AK=Mt().extendFlat;TK.exports=AK({x:gn.x,y:gn.y,z:gn.z,marker:gn.marker,histnorm:gn.histnorm,histfunc:gn.histfunc,nbinsx:gn.nbinsx,xbins:gn.xbins,nbinsy:gn.nbinsy,ybins:gn.ybins,autobinx:gn.autobinx,autobiny:gn.autobiny,bingroup:gn.bingroup,xbingroup:gn.xbingroup,ybingroup:gn.ybingroup,autocontour:Ml.autocontour,ncontours:Ml.ncontours,contours:Ml.contours,line:{color:Ml.line.color,width:AK({},Ml.line.width,{dflt:.5}),dash:Ml.line.dash,smoothing:Ml.line.smoothing,editType:"plot"},xhoverformat:aA("x"),yhoverformat:aA("y"),zhoverformat:aA("z",1),hovertemplate:gn.hovertemplate,hovertemplatefallback:gn.hovertemplatefallback,texttemplate:Ml.texttemplate,texttemplatefallback:Ml.texttemplatefallback,textfont:Ml.textfont},TPe("",{cLetter:"z",editTypeOverride:"calc"}))});var iA=z((KQe,MK)=>{"use strict";MK.exports=function(r,t,a,n){var i=n("contours.start"),o=n("contours.end"),l=i===!1||o===!1,s=a("contours.size"),u;l?u=t.autocontour=!0:u=a("autocontour",!1),(u||!s)&&a("ncontours")}});var oA=z((QQe,kK)=>{"use strict";var MPe=ke();kK.exports=function(r,t,a,n){n||(n={});var i=r("contours.showlabels");if(i){var o=t.font;MPe.coerceFont(r,"contours.labelfont",o,{overrideDflt:{color:a}}),r("contours.labelformat")}n.hasHover!==!1&&r("zhoverformat")}});var lA=z((eer,SK)=>{"use strict";var kPe=jl(),SPe=oA();SK.exports=function(r,t,a,n,i){var o=a("contours.coloring"),l,s="";o==="fill"&&(l=a("contours.showlines")),l!==!1&&(o!=="lines"&&(s=a("line.color","#000")),a("line.width",.5),a("line.dash")),o!=="none"&&(r.showlegend!==!0&&(t.showlegend=!1),t._dfltShowLegend=!1,kPe(r,t,n,a,{prefix:"",cLetter:"z"})),a("line.smoothing"),SPe(a,n,s,i)}});var DK=z((rer,CK)=>{"use strict";var qK=ke(),qPe=rA(),LPe=iA(),CPe=lA(),DPe=f2(),LK=nA();CK.exports=function(r,t,a,n){function i(l,s){return qK.coerce(r,t,LK,l,s)}function o(l){return qK.coerce2(r,t,LK,l)}qPe(r,t,i,n),t.visible!==!1&&(LPe(r,t,i,o),CPe(r,t,i,n),i("xhoverformat"),i("yhoverformat"),i("hovertemplate"),i("hovertemplatefallback"),t.contours&&t.contours.coloring==="heatmap"&&DPe(i,n))}});var RK=z((ter,PK)=>{"use strict";var uA=Yr(),sA=ke();PK.exports=function(r,t){var a=r.contours;if(r.autocontour){var n=r.zmin,i=r.zmax;(r.zauto||n===void 0)&&(n=sA.aggNums(Math.min,null,t)),(r.zauto||i===void 0)&&(i=sA.aggNums(Math.max,null,t));var o=EK(n,i,r.ncontours);a.size=o.dtick,a.start=uA.tickFirst(o),o.range.reverse(),a.end=uA.tickFirst(o),a.start===n&&(a.start+=a.size),a.end===i&&(a.end-=a.size),a.start>a.end&&(a.start=a.end=(a.start+a.end)/2),r._input.contours||(r._input.contours={}),sA.extendFlat(r._input.contours,{start:a.start,end:a.end,size:a.size}),r._input.autocontour=!0}else if(a.type!=="constraint"){var l=a.start,s=a.end,u=r._input.contours;if(l>s&&(a.start=u.start=s,s=a.end=u.end=l,l=a.start),!(a.size>0)){var f;l===s?f=1:f=EK(l,s,r.ncontours).dtick,u.size=a.size=f}}};function EK(e,r,t){var a={type:"linear",range:[e,r]};return uA.autoTicks(a,(r-e)/(t||15)),a}});var p2=z((aer,FK)=>{"use strict";FK.exports=function(r){return r.end+r.size/1e6}});var fA=z((ner,NK)=>{"use strict";var zK=ll(),EPe=d3(),PPe=RK(),RPe=p2();NK.exports=function(r,t){var a=EPe(r,t),n=a[0].z;PPe(t,n);var i=t.contours,o=zK.extractOpts(t),l;if(i.coloring==="heatmap"&&o.auto&&t.autocontour===!1){var s=i.start,u=RPe(i),f=i.size||1,c=Math.floor((u-s)/f)+1;isFinite(f)||(f=1,c=1);var v=s-f/2,d=v+c*f;l=[v,d]}else l=n;return zK.calc(r,t,{vals:l,cLetter:"z"}),a}});var C3={};qt(C3,{BOTTOMSTART:()=>FPe,CHOOSESADDLE:()=>OPe,LABELDISTANCE:()=>UPe,LABELINCREASE:()=>GPe,LABELMAX:()=>VPe,LABELMIN:()=>YPe,LABELOPTIMIZER:()=>jPe,LEFTSTART:()=>NPe,NEWDELTA:()=>BPe,RIGHTSTART:()=>IPe,SADDLEREMAINDER:()=>HPe,TOPSTART:()=>zPe});var FPe,zPe,NPe,IPe,BPe,OPe,HPe,UPe,GPe,YPe,VPe,jPe,D3=St(()=>{"use strict";FPe=[1,9,13,104,713],zPe=[4,6,7,104,713],NPe=[8,12,14,208,1114],IPe=[2,3,11,208,1114],BPe=[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]],OPe={104:[4,1],208:[2,8],713:[7,13],1114:[11,14]},HPe={1:4,2:8,4:1,7:13,8:2,11:14,13:7,14:11},UPe=2,GPe=10,YPe=3,VPe=10,jPe={EDGECOST:1,ANGLECOST:1,NEIGHBORCOST:5,SAMELEVELFACTOR:10,SAMELEVELDISTANCE:5,MAXCOST:100,INITIALSEARCHPOINTS:10,ITERATIONS:5}});var BK=z((ier,IK)=>{"use strict";var E3=(D3(),ze(C3));IK.exports=function(r){var t=r[0].z,a=t.length,n=t[0].length,i=a===2||n===2,o,l,s,u,f,c,v,d,p;for(l=0;le?0:1)+(r[0][1]>e?0:2)+(r[1][1]>e?0:4)+(r[1][0]>e?0:8);if(t===5||t===10){var a=(r[0][0]+r[0][1]+r[1][0]+r[1][1])/4;return e>a?t===5?713:1114:t===5?104:208}return t===15?0:t}});var GK=z((oer,UK)=>{"use strict";var P3=ke(),rv=(D3(),ze(C3));UK.exports=function(r,t,a){var n,i,o,l,s;for(t=t||.01,a=a||.01,o=0;o20?(o=rv.CHOOSESADDLE[o][(l[0]||l[1])<0?0:1],e.crossings[i]=rv.SADDLEREMAINDER[o]):delete e.crossings[i],l=rv.NEWDELTA[o],!l){P3.log("Found bad marching index:",o,r,e.level);break}s.push(HK(e,r,l)),r[0]+=l[0],r[1]+=l[1],i=r.join(","),m2(s[s.length-1],s[s.length-2],a,n)&&s.pop();var p=l[0]&&(r[0]<0||r[0]>f-2)||l[1]&&(r[1]<0||r[1]>u-2),y=r[0]===c[0]&&r[1]===c[1]&&l[0]===v[0]&&l[1]===v[1];if(y||t&&p)break;o=e.crossings[i]}d===1e4&&P3.log("Infinite loop in contour?");var m=m2(s[0],s[s.length-1],a,n),b=0,A=.2*e.smoothing,w=[],x=0,_,k,T,q,C,E,P,R,N,I,O;for(d=1;d=x;d--)if(_=w[d],_=x&&_+w[k]R&&N--,e.edgepaths[N]=O.concat(s,I));break}V||(e.edgepaths[R]=s.concat(I))}for(R=0;R20&&r?e===208||e===1114?a=t[0]===0?1:-1:n=t[1]===0?1:-1:rv.BOTTOMSTART.indexOf(e)!==-1?n=1:rv.LEFTSTART.indexOf(e)!==-1?a=1:rv.TOPSTART.indexOf(e)!==-1?n=-1:a=-1,[a,n]}function HK(e,r,t){var a=r[0]+Math.max(t[0],0),n=r[1]+Math.max(t[1],0),i=e.z[n][a],o=e.xaxis,l=e.yaxis;if(t[1]){var s=(e.level-i)/(e.z[n][a+1]-i),u=(s!==1?(1-s)*o.c2l(e.x[a]):0)+(s!==0?s*o.c2l(e.x[a+1]):0);return[o.c2p(o.l2c(u),!0),l.c2p(e.y[n],!0),a+s,n]}else{var f=(e.level-i)/(e.z[n+1][a]-i),c=(f!==1?(1-f)*l.c2l(e.y[n]):0)+(f!==0?f*l.c2l(e.y[n+1]):0);return[o.c2p(e.x[a],!0),l.c2p(l.l2c(c),!0),a,n+f]}}});var WK=z((ler,jK)=>{"use strict";var cA=(S3(),ze(k3)),$Pe=Br();jK.exports={"[]":YK("[]"),"][":YK("]["),">":vA(">"),"<":vA("<"),"=":vA("=")};function VK(e,r){var t=Array.isArray(r),a;function n(i){return $Pe(i)?+i:null}return cA.COMPARISON_OPS2.indexOf(e)!==-1?a=n(t?r[0]:r):cA.INTERVAL_OPS.indexOf(e)!==-1?a=t?[n(r[0]),n(r[1])]:[n(r),n(r)]:cA.SET_OPS.indexOf(e)!==-1&&(a=t?r.map(n):[n(r)]),a}function YK(e){return function(r){r=VK(e,r);var t=Math.min(r[0],r[1]),a=Math.max(r[0],r[1]);return{start:t,end:a,size:a-t}}}function vA(e){return function(r){return r=VK(e,r),{start:r,end:1/0,size:1/0}}}});var $K=z((ser,ZK)=>{"use strict";var XK=ke(),JPe=WK(),KPe=p2();ZK.exports=function(r,t,a){for(var n=r.type==="constraint"?JPe[r._operation](r.value):r,i=n.size,o=[],l=KPe(n),s=a.trace._carpetTrace,u=s?{xaxis:s.aaxis,yaxis:s.baxis,x:a.a,y:a.b}:{xaxis:t.xaxis,yaxis:t.yaxis,x:a.x,y:a.y},f=n.start;f1e3){XK.warn("Too many contours, clipping at 1000",r);break}return o}});var QK=z((uer,KK)=>{"use strict";var tv=ke();KK.exports=function(e,r){var t,a,n,i=function(s){return s.reverse()},o=function(s){return s};switch(r){case"=":case"<":return e;case">":for(e.length!==1&&tv.warn("Contour data invalid for the specified inequality operation."),a=e[0],t=0;t{"use strict";eQ.exports=function(e,r){var t=e[0],a=t.z,n;switch(r.type){case"levels":var i=Math.min(a[0][0],a[0][1]);for(n=0;no.level||o.starts.length&&i===o.level)}break;case"constraint":if(t.prefixBoundary=!1,t.edgepaths.length)return;var l=t.x.length,s=t.y.length,u=-1/0,f=1/0;for(n=0;n":c>u&&(t.prefixBoundary=!0);break;case"<":(cu||t.starts.length&&d===f)&&(t.prefixBoundary=!0);break;case"][":v=Math.min(c[0],c[1]),d=Math.max(c[0],c[1]),vu&&(t.prefixBoundary=!0);break}break}}});var hA=z(Fn=>{"use strict";var g2=Pr(),Xa=ke(),os=Jr(),QPe=ll(),nQ=Fa(),tQ=Yr(),aQ=i0(),eRe=y3(),iQ=BK(),oQ=GK(),rRe=$K(),tRe=QK(),lQ=rQ(),y2=(D3(),ze(C3)),kl=y2.LABELOPTIMIZER;Fn.plot=function(r,t,a,n){var i=t.xaxis,o=t.yaxis;Xa.makeTraceGroups(n,a,"contour").each(function(l){var s=g2.select(this),u=l[0],f=u.trace,c=u.x,v=u.y,d=f.contours,p=rRe(d,t,u),y=Xa.ensureSingle(s,"g","heatmapcoloring"),m=[];d.coloring==="heatmap"&&(m=[l]),eRe(r,t,m,y),iQ(p),oQ(p);var b=i.c2p(c[0],!0),A=i.c2p(c[c.length-1],!0),w=o.c2p(v[0],!0),x=o.c2p(v[v.length-1],!0),_=[[b,x],[A,x],[A,w],[b,w]],k=p;d.type==="constraint"&&(k=tRe(p,d._operation)),aRe(s,_,d),nRe(s,k,_,d),iRe(s,p,r,u,d),lRe(s,t,r,u,_)})};function aRe(e,r,t){var a=Xa.ensureSingle(e,"g","contourbg"),n=a.selectAll("path").data(t.coloring==="fill"?[0]:[]);n.enter().append("path"),n.exit().remove(),n.attr("d","M"+r.join("L")+"Z").style("stroke","none")}function nRe(e,r,t,a){var n=a.coloring==="fill"||a.type==="constraint"&&a._operation!=="=",i="M"+t.join("L")+"Z";n&&lQ(r,a);var o=Xa.ensureSingle(e,"g","contourfill"),l=o.selectAll("path").data(n?r:[]);l.enter().append("path"),l.exit().remove(),l.each(function(s){var u=(s.prefixBoundary?i:"")+sQ(s,t);u?g2.select(this).attr("d",u).style("stroke","none"):g2.select(this).remove()})}function sQ(e,r){var t="",a=0,n=e.edgepaths.map(function(b,A){return A}),i=!0,o,l,s,u,f,c;function v(b){return Math.abs(b[1]-r[0][1])<.01}function d(b){return Math.abs(b[1]-r[2][1])<.01}function p(b){return Math.abs(b[0]-r[0][0])<.01}function y(b){return Math.abs(b[0]-r[2][0])<.01}for(;n.length;){for(c=os.smoothopen(e.edgepaths[a],e.smoothing),t+=i?c:c.replace(/^M/,"L"),n.splice(n.indexOf(a),1),o=e.edgepaths[a][e.edgepaths[a].length-1],u=-1,s=0;s<4;s++){if(!o){Xa.log("Missing end?",a,e);break}for(v(o)&&!y(o)?l=r[1]:p(o)?l=r[0]:d(o)?l=r[3]:y(o)&&(l=r[2]),f=0;f=0&&(l=m,u=f):Math.abs(o[1]-l[1])<.01?Math.abs(o[1]-m[1])<.01&&(m[0]-o[0])*(l[0]-m[0])>=0&&(l=m,u=f):Xa.log("endpt to newendpt is not vert. or horz.",o,l,m)}if(o=l,u>=0)break;t+="L"+l}if(u===e.edgepaths.length){Xa.log("unclosed perimeter path");break}a=u,i=n.indexOf(a)===-1,i&&(a=n[0],t+="Z")}for(a=0;akl.MAXCOST*2)break;v&&(l/=2),o=u-l/2,s=o+l*1.5}if(c<=kl.MAXCOST)return f};function oRe(e,r,t,a){var n=r.width/2,i=r.height/2,o=e.x,l=e.y,s=e.theta,u=Math.cos(s)*n,f=Math.sin(s)*n,c=(o>a.center?a.right-o:o-a.left)/(u+Math.abs(Math.sin(s)*i)),v=(l>a.middle?a.bottom-l:l-a.top)/(Math.abs(f)+Math.cos(s)*i);if(c<1||v<1)return 1/0;var d=kl.EDGECOST*(1/(c-1)+1/(v-1));d+=kl.ANGLECOST*s*s;for(var p=o-u,y=l-f,m=o+u,b=l+f,A=0;A{"use strict";var uRe=Pr(),dA=ll(),fRe=p2();uQ.exports=function(r){var t=r.contours,a=t.start,n=fRe(t),i=t.size||1,o=Math.floor((n-a)/i)+1,l=t.coloring==="lines"?0:1,s=dA.extractOpts(r);isFinite(i)||(i=1,o=1);var u=s.reversescale?dA.flipScale(s.colorscale):s.colorscale,f=u.length,c=new Array(f),v=new Array(f),d,p,y=s.min,m=s.max;if(t.coloring==="heatmap"){for(p=0;p=m)&&(a<=y&&(a=y),n>=m&&(n=m),o=Math.floor((n-a)/i)+1,l=0),p=0;py&&(c.unshift(y),v.unshift(v[0])),c[c.length-1]{"use strict";var R3=Pr(),fQ=Jr(),cRe=g3(),vRe=pA();cQ.exports=function(r){var t=R3.select(r).selectAll("g.contour");t.style("opacity",function(a){return a[0].trace.opacity}),t.each(function(a){var n=R3.select(this),i=a[0].trace,o=i.contours,l=i.line,s=o.size||1,u=o.start,f=o.type==="constraint",c=!f&&o.coloring==="lines",v=!f&&o.coloring==="fill",d=c||v?vRe(i):null;n.selectAll("g.contourlevel").each(function(m){R3.select(this).selectAll("path").call(fQ.lineGroupStyle,l.width,c?d(m.level):l.color,l.dash)});var p=o.labelfont;if(n.selectAll("g.contourlabels text").each(function(m){fQ.font(R3.select(this),{weight:p.weight,style:p.style,variant:p.variant,textcase:p.textcase,lineposition:p.lineposition,shadow:p.shadow,family:p.family,size:p.size,color:p.color||(c?d(m.level):l.color)})}),f)n.selectAll("g.contourfill path").style("fill",i.fillcolor);else if(v){var y;n.selectAll("g.contourfill path").style("fill",function(m){return y===void 0&&(y=m.level),d(m.level+.5*s)}),y===void 0&&(y=u),n.selectAll("g.contourbg path").style("fill",d(y-.5*s))}}),cRe(r)}});var yA=z((der,hQ)=>{"use strict";var vQ=ll(),hRe=pA(),dRe=p2();function pRe(e,r,t){var a=r.contours,n=r.line,i=a.size||1,o=a.coloring,l=hRe(r,{isColorbar:!0});if(o==="heatmap"){var s=vQ.extractOpts(r);t._fillgradient=s.reversescale?vQ.flipScale(s.colorscale):s.colorscale,t._zrange=[s.min,s.max]}else o==="fill"&&(t._fillcolor=l);t._line={color:o==="lines"?l:n.color,width:a.showlines!==!1?n.width:0,dash:n.dash},t._levels={start:a.start,end:dRe(a),size:i}}hQ.exports={min:"zmin",max:"zmax",calc:pRe}});var gA=z((per,dQ)=>{"use strict";var F3=qr(),mRe=x3();dQ.exports=function(r,t,a,n,i){i||(i={}),i.isContour=!0;var o=mRe(r,t,a,n,i);return o&&o.forEach(function(l){var s=l.trace;s.contours.type==="constraint"&&(s.fillcolor&&F3.opacity(s.fillcolor)?l.color=F3.addOpacity(s.fillcolor,1):s.contours.showlines&&F3.opacity(s.line.color)&&(l.color=F3.addOpacity(s.line.color,1)))}),o}});var mQ=z((mer,pQ)=>{"use strict";pQ.exports={attributes:nA(),supplyDefaults:DK(),crossTraceDefaults:A3(),calc:fA(),plot:hA().plot,layerName:"contourlayer",style:mA(),colorbar:yA(),hoverPoints:gA(),moduleType:"trace",name:"histogram2dcontour",basePlotModule:io(),categories:["cartesian","svg","2dMap","contour","histogram","showLegend"],meta:{}}});var gQ=z((yer,yQ)=>{"use strict";yQ.exports=mQ()});var MQ=z((ger,TQ)=>{"use strict";var bQ=Br(),yRe=oA(),wQ=qr(),xQ=wQ.addOpacity,gRe=wQ.opacity,AQ=(S3(),ze(k3)),_Q=ke().isArrayOrTypedArray,bRe=AQ.CONSTRAINT_REDUCTION,xRe=AQ.COMPARISON_OPS2;TQ.exports=function(r,t,a,n,i,o){var l=t.contours,s,u,f,c=a("contours.operation");if(l._operation=bRe[c],_Re(a,l),c==="="?s=l.showlines=!0:(s=a("contours.showlines"),f=a("fillcolor",xQ((r.line||{}).color||i,.5))),s){var v=f&&gRe(f)?xQ(t.fillcolor,1):i;u=a("line.color",v),a("line.width",2),a("line.dash")}a("line.smoothing"),yRe(a,n,u,o)};function _Re(e,r){var t;xRe.indexOf(r.operation)===-1?(e("contours.value",[0,1]),_Q(r.value)?r.value.length>2?r.value=r.value.slice(2):r.length===0?r.value=[0,1]:r.length<2?(t=parseFloat(r.value[0]),r.value=[t,t+1]):r.value=[parseFloat(r.value[0]),parseFloat(r.value[1])]:bQ(r.value)&&(t=parseFloat(r.value),r.value=[t,t+1])):(e("contours.value",0),bQ(r.value)||(_Q(r.value)?r.value=parseFloat(r.value[0]):r.value=0))}});var qQ=z((ber,SQ)=>{"use strict";var bA=ke(),wRe=R9(),ARe=T0(),TRe=MQ(),MRe=iA(),kRe=lA(),SRe=f2(),kQ=L3();SQ.exports=function(r,t,a,n){function i(u,f){return bA.coerce(r,t,kQ,u,f)}function o(u){return bA.coerce2(r,t,kQ,u)}var l=wRe(r,t,i,n);if(!l){t.visible=!1;return}ARe(r,t,n,i),i("xhoverformat"),i("yhoverformat"),i("text"),i("hovertext"),i("hoverongaps"),i("hovertemplate"),i("hovertemplatefallback");var s=i("contours.type")==="constraint";i("connectgaps",bA.isArray1D(t.z)),s?TRe(r,t,i,n,a):(MRe(r,t,i,o),kRe(r,t,i,n)),t.contours&&t.contours.coloring==="heatmap"&&SRe(i,n),i("zorder")}});var CQ=z((xer,LQ)=>{"use strict";LQ.exports={attributes:L3(),supplyDefaults:qQ(),calc:fA(),plot:hA().plot,style:mA(),colorbar:yA(),hoverPoints:gA(),moduleType:"trace",name:"contour",basePlotModule:io(),categories:["cartesian","svg","2dMap","contour","showLegend"],meta:{}}});var EQ=z((_er,DQ)=>{"use strict";DQ.exports=CQ()});var xA=z((wer,zQ)=>{"use strict";var{hovertemplateAttrs:qRe,texttemplateAttrs:LRe,templatefallbackAttrs:PQ}=di(),CRe=Cy(),Di=Ji(),DRe=On(),RQ=ol(),ERe=Bi().dash,nu=Mt().extendFlat,vo=Di.marker,b2=Di.line,FQ=vo.line;zQ.exports={a:{valType:"data_array",editType:"calc"},b:{valType:"data_array",editType:"calc"},c:{valType:"data_array",editType:"calc"},sum:{valType:"number",dflt:0,min:0,editType:"calc"},mode:nu({},Di.mode,{dflt:"markers"}),text:nu({},Di.text,{}),texttemplate:LRe({editType:"plot"},{keys:["a","b","c","text"]}),texttemplatefallback:PQ({editType:"plot"}),hovertext:nu({},Di.hovertext,{}),line:{color:b2.color,width:b2.width,dash:ERe,backoff:b2.backoff,shape:nu({},b2.shape,{values:["linear","spline"]}),smoothing:b2.smoothing,editType:"calc"},connectgaps:Di.connectgaps,cliponaxis:Di.cliponaxis,fill:nu({},Di.fill,{values:["none","toself","tonext"],dflt:"none"}),fillcolor:CRe(),marker:nu({symbol:vo.symbol,opacity:vo.opacity,angle:vo.angle,angleref:vo.angleref,standoff:vo.standoff,maxdisplayed:vo.maxdisplayed,size:vo.size,sizeref:vo.sizeref,sizemin:vo.sizemin,sizemode:vo.sizemode,line:nu({width:FQ.width,dash:FQ.dash,editType:"calc"},RQ("marker.line")),gradient:vo.gradient,editType:"calc"},RQ("marker")),textfont:Di.textfont,textposition:Di.textposition,selected:Di.selected,unselected:Di.unselected,hoverinfo:nu({},DRe.hoverinfo,{flags:["a","b","c","text","name"]}),hoveron:Di.hoveron,hovertemplate:qRe(),hovertemplatefallback:PQ()}});var OQ=z((Aer,BQ)=>{"use strict";var NQ=ke(),PRe=(wd(),ze(_d)),av=ri(),RRe=Rw(),FRe=Fw(),IQ=zw(),zRe=Nw(),NRe=Iw(),IRe=xA();BQ.exports=function(r,t,a,n){function i(v,d){return NQ.coerce(r,t,IRe,v,d)}var o=i("a"),l=i("b"),s=i("c"),u;if(o?(u=o.length,l?(u=Math.min(u,l.length),s&&(u=Math.min(u,s.length))):s?u=Math.min(u,s.length):u=0):l&&s&&(u=Math.min(l.length,s.length)),!u){t.visible=!1;return}t._length=u,i("sum"),i("text"),i("hovertext"),t.hoveron!=="fills"&&(i("hovertemplate"),i("hovertemplatefallback"));var f=u{"use strict";var _A=Yr();HQ.exports=function(r,t,a){var n={},i=a[t.subplot]._subplot;return n.aLabel=_A.tickText(i.aaxis,r.a,!0).text,n.bLabel=_A.tickText(i.baxis,r.b,!0).text,n.cLabel=_A.tickText(i.caxis,r.c,!0).text,n}});var jQ=z((Mer,VQ)=>{"use strict";var wA=Br(),BRe=Hw(),ORe=og(),HRe=lg(),URe=sg().calcMarkerSize,GQ=["a","b","c"],YQ={a:["b","c"],b:["a","c"],c:["a","b"]};VQ.exports=function(r,t){var a=r._fullLayout[t.subplot],n=a.sum,i=t.sum||n,o={a:t.a,b:t.b,c:t.c},l=t.ids,s,u,f,c,v,d;for(s=0;s{"use strict";var GRe=e8();WQ.exports=function(r,t,a){var n=t.plotContainer;n.select(".scatterlayer").selectAll("*").remove();for(var i=t.xaxis,o=t.yaxis,l={xaxis:i,yaxis:o,plot:n,layerClipId:t._hasClipOnAxisFalse?t.clipIdRelative:null},s=t.layers.frontplot.select("g.scatterlayer"),u=0;u{"use strict";var YRe=o8();ZQ.exports=function(r,t,a,n){var i=YRe(r,t,a,n);if(!i||i[0].index===!1)return;var o=i[0];if(o.index===void 0){var l=1-o.y0/r.ya._length,s=r.xa._length,u=s*l/2,f=s-u;return o.x0=Math.max(Math.min(o.x0,f),u),o.x1=Math.max(Math.min(o.x1,f),u),i}var c=o.cd[o.index],v=o.trace,d=o.subplot;o.a=c.a,o.b=c.b,o.c=c.c,o.xLabelVal=void 0,o.yLabelVal=void 0;var p={};p[v.subplot]={_subplot:d};var y=v._module.formatLabels(c,v,p);o.aLabel=y.aLabel,o.bLabel=y.bLabel,o.cLabel=y.cLabel;var m=c.hi||v.hoverinfo,b=[];function A(x,_){b.push(x._hovertitle+": "+_)}if(!v.hovertemplate){var w=m.split("+");w.indexOf("all")!==-1&&(w=["a","b","c"]),w.indexOf("a")!==-1&&A(d.aaxis,o.aLabel),w.indexOf("b")!==-1&&A(d.baxis,o.bLabel),w.indexOf("c")!==-1&&A(d.caxis,o.cLabel)}return o.extraText=b.join("
"),o.hovertemplate=v.hovertemplate,i}});var KQ=z((qer,JQ)=>{"use strict";JQ.exports=function(r,t,a,n,i){if(t.xa&&(r.xaxis=t.xa),t.ya&&(r.yaxis=t.ya),n[i]){var o=n[i];r.a=o.a,r.b=o.b,r.c=o.c}else r.a=t.a,r.b=t.b,r.c=t.c;return r}});var uee=z((Ler,see)=>{"use strict";var nee=Pr(),AA=Tr(),ls=ke(),Sl=ls.strTranslate,z3=ls._,Bf=qr(),N3=Jr(),x2=i0(),TA=Mt().extendFlat,VRe=ma(),iu=Yr(),QQ=Vi(),eee=Un(),iee=df(),ree=iee.freeMode,jRe=iee.rectMode,MA=n0(),WRe=xl().prepSelect,XRe=xl().selectOnClick,ZRe=xl().clearOutline,$Re=xl().clearSelectionsCache,oee=(Pa(),ze(Ea));function lee(e,r){this.id=e.id,this.graphDiv=e.graphDiv,this.init(r),this.makeFramework(r),this.updateFx(r),this.aTickLayout=null,this.bTickLayout=null,this.cTickLayout=null}see.exports=lee;var ql=lee.prototype;ql.init=function(e){this.container=e._ternarylayer,this.defs=e._defs,this.layoutId=e._uid,this.traceHash={},this.layers={}};ql.plot=function(e,r){var t=this,a=r[t.id],n=r._size;t._hasClipOnAxisFalse=!1;for(var i=0;inv*u?(b=u,m=b*nv):(m=s,b=m/nv),A=o*m/s,w=l*b/u,p=r.l+r.w*n-m/2,y=r.t+r.h*(1-i)-b/2,t.x0=p,t.y0=y,t.w=m,t.h=b,t.sum=f,t.xaxis={type:"linear",range:[c+2*d-f,f-c-2*v],domain:[n-A/2,n+A/2],_id:"x"},x2(t.xaxis,t.graphDiv._fullLayout),t.xaxis.setScale(),t.xaxis.isPtWithinRange=function(I){return I.a>=t.aaxis.range[0]&&I.a<=t.aaxis.range[1]&&I.b>=t.baxis.range[1]&&I.b<=t.baxis.range[0]&&I.c>=t.caxis.range[1]&&I.c<=t.caxis.range[0]},t.yaxis={type:"linear",range:[c,f-v-d],domain:[i-w/2,i+w/2],_id:"y"},x2(t.yaxis,t.graphDiv._fullLayout),t.yaxis.setScale(),t.yaxis.isPtWithinRange=function(){return!0};var x=t.yaxis.domain[0],_=t.aaxis=TA({},e.aaxis,{range:[c,f-v-d],side:"left",tickangle:(+e.aaxis.tickangle||0)-30,domain:[x,x+w*nv],anchor:"free",position:0,_id:"y",_length:m});x2(_,t.graphDiv._fullLayout),_.setScale();var k=t.baxis=TA({},e.baxis,{range:[f-c-d,v],side:"bottom",domain:t.xaxis.domain,anchor:"free",position:0,_id:"x",_length:m});x2(k,t.graphDiv._fullLayout),k.setScale();var T=t.caxis=TA({},e.caxis,{range:[f-c-v,d],side:"right",tickangle:(+e.caxis.tickangle||0)+30,domain:[x,x+w*nv],anchor:"free",position:0,_id:"y",_length:m});x2(T,t.graphDiv._fullLayout),T.setScale();var q="M"+p+","+(y+b)+"h"+m+"l-"+m/2+",-"+b+"Z";t.clipDef.select("path").attr("d",q),t.layers.plotbg.select("path").attr("d",q);var C="M0,"+b+"h"+m+"l-"+m/2+",-"+b+"Z";t.clipDefRelative.select("path").attr("d",C);var E=Sl(p,y);t.plotContainer.selectAll(".scatterlayer,.maplayer").attr("transform",E),t.clipDefRelative.select("path").attr("transform",null);var P=Sl(p-k._offset,y+b);t.layers.baxis.attr("transform",P),t.layers.bgrid.attr("transform",P);var R=Sl(p+m/2,y)+"rotate(30)"+Sl(0,-_._offset);t.layers.aaxis.attr("transform",R),t.layers.agrid.attr("transform",R);var N=Sl(p+m/2,y)+"rotate(-30)"+Sl(0,-T._offset);t.layers.caxis.attr("transform",N),t.layers.cgrid.attr("transform",N),t.drawAxes(!0),t.layers.aline.select("path").attr("d",_.showline?"M"+p+","+(y+b)+"l"+m/2+",-"+b:"M0,0").call(Bf.stroke,_.linecolor||"#000").style("stroke-width",(_.linewidth||0)+"px"),t.layers.bline.select("path").attr("d",k.showline?"M"+p+","+(y+b)+"h"+m:"M0,0").call(Bf.stroke,k.linecolor||"#000").style("stroke-width",(k.linewidth||0)+"px"),t.layers.cline.select("path").attr("d",T.showline?"M"+(p+m/2)+","+y+"l"+m/2+","+b:"M0,0").call(Bf.stroke,T.linecolor||"#000").style("stroke-width",(T.linewidth||0)+"px"),t.graphDiv._context.staticPlot||t.initInteractions(),N3.setClipUrl(t.layers.frontplot,t._hasClipOnAxisFalse?null:t.clipId,t.graphDiv)};ql.drawAxes=function(e){var r=this,t=r.graphDiv,a=r.id.slice(7)+"title",n=r.layers,i=r.aaxis,o=r.baxis,l=r.caxis;if(r.drawAx(i),r.drawAx(o),r.drawAx(l),e){var s=Math.max(i.showticklabels?i.tickfont.size/2:0,(l.showticklabels?l.tickfont.size*.75:0)+(l.ticks==="outside"?l.ticklen*.87:0)),u=(o.showticklabels?o.tickfont.size:0)+(o.ticks==="outside"?o.ticklen:0)+3;n["a-title"]=MA.draw(t,"a"+a,{propContainer:i,propName:r.id+".aaxis.title.text",placeholder:z3(t,"Click to enter Component A title"),attributes:{x:r.x0+r.w/2,y:r.y0-i.title.font.size/3-s,"text-anchor":"middle"}}),n["b-title"]=MA.draw(t,"b"+a,{propContainer:o,propName:r.id+".baxis.title.text",placeholder:z3(t,"Click to enter Component B title"),attributes:{x:r.x0-u,y:r.y0+r.h+o.title.font.size*.83+u,"text-anchor":"middle"}}),n["c-title"]=MA.draw(t,"c"+a,{propContainer:l,propName:r.id+".caxis.title.text",placeholder:z3(t,"Click to enter Component C title"),attributes:{x:r.x0+r.w+u,y:r.y0+r.h+l.title.font.size*.83+u,"text-anchor":"middle"}})}};ql.drawAx=function(e){var r=this,t=r.graphDiv,a=e._name,n=a.charAt(0),i=e._id,o=r.layers[a],l=30,s=n+"tickLayout",u=JRe(e);r[s]!==u&&(o.selectAll("."+i+"tick").remove(),r[s]=u),e.setScale();var f=iu.calcTicks(e),c=iu.clipEnds(e,f),v=iu.makeTransTickFn(e),d=iu.getTickSigns(e)[2],p=ls.deg2rad(l),y=d*(e.linewidth||1)/2,m=d*e.ticklen,b=r.w,A=r.h,w=n==="b"?"M0,"+y+"l"+Math.sin(p)*m+","+Math.cos(p)*m:"M"+y+",0l"+Math.cos(p)*m+","+-Math.sin(p)*m,x={a:"M0,0l"+A+",-"+b/2,b:"M0,0l-"+b/2+",-"+A,c:"M0,0l-"+A+","+b/2}[n];iu.drawTicks(t,e,{vals:e.ticks==="inside"?c:f,layer:o,path:w,transFn:v,crisp:!1}),iu.drawGrid(t,e,{vals:c,layer:r.layers[n+"grid"],path:x,transFn:v,crisp:!1}),iu.drawLabels(t,e,{vals:f,layer:o,transFn:v,labelFns:iu.makeLabelFns(e,0,l)})};function JRe(e){return e.ticks+String(e.ticklen)+String(e.showticklabels)}var Ya=oee.MINZOOM/2+.87,KRe="m-0.87,.5h"+Ya+"v3h-"+(Ya+5.2)+"l"+(Ya/2+2.6)+",-"+(Ya*.87+4.5)+"l2.6,1.5l-"+Ya/2+","+Ya*.87+"Z",QRe="m0.87,.5h-"+Ya+"v3h"+(Ya+5.2)+"l-"+(Ya/2+2.6)+",-"+(Ya*.87+4.5)+"l-2.6,1.5l"+Ya/2+","+Ya*.87+"Z",eFe="m0,1l"+Ya/2+","+Ya*.87+"l2.6,-1.5l-"+(Ya/2+2.6)+",-"+(Ya*.87+4.5)+"l-"+(Ya/2+2.6)+","+(Ya*.87+4.5)+"l2.6,1.5l"+Ya/2+",-"+Ya*.87+"Z",rFe="m0.5,0.5h5v-2h-5v-5h-2v5h-5v2h5v5h2Z",tee=!0;ql.clearOutline=function(){$Re(this.dragOptions),ZRe(this.dragOptions.gd)};ql.initInteractions=function(){var e=this,r=e.layers.plotbg.select("path").node(),t=e.graphDiv,a=t._fullLayout._zoomlayer,n,i;this.dragOptions={element:r,gd:t,plotinfo:{id:e.id,domain:t._fullLayout[e.id].domain,xaxis:e.xaxis,yaxis:e.yaxis},subplot:e.id,prepFn:function(P,R,N){e.dragOptions.xaxes=[e.xaxis],e.dragOptions.yaxes=[e.yaxis],n=t._fullLayout._invScaleX,i=t._fullLayout._invScaleY;var I=e.dragOptions.dragmode=t._fullLayout.dragmode;ree(I)?e.dragOptions.minDrag=1:e.dragOptions.minDrag=void 0,I==="zoom"?(e.dragOptions.moveFn=k,e.dragOptions.clickFn=b,e.dragOptions.doneFn=T,A(P,R,N)):I==="pan"?(e.dragOptions.moveFn=C,e.dragOptions.clickFn=b,e.dragOptions.doneFn=E,q(),e.clearOutline(t)):(jRe(I)||ree(I))&&WRe(P,R,N,e.dragOptions,I)}};var o,l,s,u,f,c,v,d,p,y;function m(P){var R={};return R[e.id+".aaxis.min"]=P.a,R[e.id+".baxis.min"]=P.b,R[e.id+".caxis.min"]=P.c,R}function b(P,R){var N=t._fullLayout.clickmode;aee(t),P===2&&(t.emit("plotly_doubleclick",null),AA.call("_guiRelayout",t,m({a:0,b:0,c:0}))),N.indexOf("select")>-1&&P===1&&XRe(R,t,[e.xaxis],[e.yaxis],e.id,e.dragOptions),N.indexOf("event")>-1&&eee.click(t,R,e.id)}function A(P,R,N){var I=r.getBoundingClientRect();o=R-I.left,l=N-I.top,t._fullLayout._calcInverseTransform(t);var O=t._fullLayout._invTransform,U=ls.apply3DTransform(O)(o,l);o=U[0],l=U[1],s={a:e.aaxis.range[0],b:e.baxis.range[1],c:e.caxis.range[1]},f=s,u=e.aaxis.range[1]-s.a,c=Bf.luminosity(e.graphDiv._fullLayout[e.id].bgcolor),v="M0,"+e.h+"L"+e.w/2+", 0L"+e.w+","+e.h+"Z",d=!1,p=a.append("path").attr("class","zoombox").attr("transform",Sl(e.x0,e.y0)).style({fill:c>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("d",v),y=a.append("path").attr("class","zoombox-corners").attr("transform",Sl(e.x0,e.y0)).style({fill:Bf.background,stroke:Bf.defaultLine,"stroke-width":1,opacity:0}).attr("d","M0,0Z"),e.clearOutline(t)}function w(P,R){return 1-R/e.h}function x(P,R){return 1-(P+(e.h-R)/Math.sqrt(3))/e.w}function _(P,R){return(P-(e.h-R)/Math.sqrt(3))/e.w}function k(P,R){var N=o+P*n,I=l+R*i,O=Math.max(0,Math.min(1,w(o,l),w(N,I))),U=Math.max(0,Math.min(1,x(o,l),x(N,I))),Y=Math.max(0,Math.min(1,_(o,l),_(N,I))),G=(O/2+Y)*e.w,V=(1-O/2-U)*e.w,W=(G+V)/2,j=V-G,J=(1-O)*e.h,te=J-j/nv;j.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),y.transition().style("opacity",1).duration(200),d=!0),t.emit("plotly_relayouting",m(f))}function T(){aee(t),f!==s&&(AA.call("_guiRelayout",t,m(f)),tee&&t.data&&t._context.showTips&&(ls.notifier(z3(t,"Double-click to zoom back out"),"long",t),tee=!1))}function q(){s={a:e.aaxis.range[0],b:e.baxis.range[1],c:e.caxis.range[1]},f=s}function C(P,R){var N=P/e.xaxis._m,I=R/e.yaxis._m;f={a:s.a-I,b:s.b+(N+I)/2,c:s.c-(N-I)/2};var O=[f.a,f.b,f.c].sort(ls.sorterAsc),U={a:O.indexOf(f.a),b:O.indexOf(f.b),c:O.indexOf(f.c)};O[0]<0&&(O[1]+O[0]/2<0?(O[2]+=O[0]+O[1],O[0]=O[1]=0):(O[2]+=O[0]/2,O[1]+=O[0]/2,O[0]=0),f={a:O[U.a],b:O[U.b],c:O[U.c]},R=(s.a-f.a)*e.yaxis._m,P=(s.c-f.c-s.b+f.b)*e.xaxis._m);var Y=Sl(e.x0+P,e.y0+R);e.plotContainer.selectAll(".scatterlayer,.maplayer").attr("transform",Y);var G=Sl(-P,-R);e.clipDefRelative.select("path").attr("transform",G),e.aaxis.range=[f.a,e.sum-f.b-f.c],e.baxis.range=[e.sum-f.a-f.c,f.b],e.caxis.range=[e.sum-f.a-f.b,f.c],e.drawAxes(!1),e._hasClipOnAxisFalse&&e.plotContainer.select(".scatterlayer").selectAll(".trace").call(N3.hideOutsideRangePoints,e),t.emit("plotly_relayouting",m(f))}function E(){AA.call("_guiRelayout",t,m(f))}r.onmousemove=function(P){eee.hover(t,P,e.id),t._fullLayout._lasthover=r,t._fullLayout._hoversubplot=e.id},r.onmouseout=function(P){t._dragging||QQ.unhover(t,P)},QQ.init(this.dragOptions)};function aee(e){nee.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}});var qA=z((Cer,fee)=>{"use strict";var tFe=Ii(),aFe=H0().attributes,st=Gi(),nFe=qo().overrideAll,kA=Mt().extendFlat,SA={title:{text:st.title.text,font:st.title.font},color:st.color,tickmode:st.minor.tickmode,nticks:kA({},st.nticks,{dflt:6,min:1}),tick0:st.tick0,dtick:st.dtick,tickvals:st.tickvals,ticktext:st.ticktext,ticks:st.ticks,ticklen:st.ticklen,tickwidth:st.tickwidth,tickcolor:st.tickcolor,ticklabelstep:st.ticklabelstep,showticklabels:st.showticklabels,labelalias:st.labelalias,showtickprefix:st.showtickprefix,tickprefix:st.tickprefix,showticksuffix:st.showticksuffix,ticksuffix:st.ticksuffix,showexponent:st.showexponent,exponentformat:st.exponentformat,minexponent:st.minexponent,separatethousands:st.separatethousands,tickfont:st.tickfont,tickangle:st.tickangle,tickformat:st.tickformat,tickformatstops:st.tickformatstops,hoverformat:st.hoverformat,showline:kA({},st.showline,{dflt:!0}),linecolor:st.linecolor,linewidth:st.linewidth,showgrid:kA({},st.showgrid,{dflt:!0}),gridcolor:st.gridcolor,gridwidth:st.gridwidth,griddash:st.griddash,layer:st.layer,min:{valType:"number",dflt:0,min:0}},I3=fee.exports=nFe({domain:aFe({name:"ternary"}),bgcolor:{valType:"color",dflt:tFe.background},sum:{valType:"number",dflt:1,min:0},aaxis:SA,baxis:SA,caxis:SA},"plot","from-root");I3.uirevision={valType:"any",editType:"none"};I3.aaxis.uirevision=I3.baxis.uirevision=I3.caxis.uirevision={valType:"any",editType:"none"}});var vee=z((Der,cee)=>{"use strict";var iFe=ke(),oFe=Ct(),lFe=H0().defaults;cee.exports=function(r,t,a,n){var i=n.type,o=n.attributes,l=n.handleDefaults,s=n.partition||"x",u=t._subplots[i],f=u.length,c=f&&u[0].replace(/\d+$/,""),v,d;function p(A,w){return iFe.coerce(v,d,o,A,w)}for(var y=0;y{"use strict";var sFe=qr(),uFe=Ct(),B3=ke(),fFe=vee(),cFe=lm(),vFe=sm(),hFe=im(),dFe=nm(),pFe=u8(),dee=qA(),hee=["aaxis","baxis","caxis"];pee.exports=function(r,t,a){fFe(r,t,a,{type:"ternary",attributes:dee,handleDefaults:mFe,font:t.font,paper_bgcolor:t.paper_bgcolor})};function mFe(e,r,t,a){var n=t("bgcolor"),i=t("sum");a.bgColor=sFe.combine(n,a.paper_bgcolor);for(var o,l,s,u=0;u=i&&(f.min=0,c.min=0,v.min=0,e.aaxis&&delete e.aaxis.min,e.baxis&&delete e.baxis.min,e.caxis&&delete e.caxis.min)}function yFe(e,r,t,a){var n=dee[r._name];function i(d,p){return B3.coerce(e,r,n,d,p)}i("uirevision",a.uirevision),r.type="linear";var o=i("color"),l=o!==n.color.dflt?o:t.font.color,s=r._name,u=s.charAt(0).toUpperCase(),f="Component "+u,c=i("title.text",f);r._hovertitle=c===f?c:u,B3.coerceFont(i,"title.font",t.font,{overrideDflt:{size:B3.bigFont(t.font.size),color:l}}),i("min"),dFe(e,r,i,"linear"),vFe(e,r,i,"linear"),cFe(e,r,i,"linear",{noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0}),hFe(e,r,i,{outerTicks:!0});var v=i("showticklabels");v&&(B3.coerceFont(i,"tickfont",t.font,{overrideDflt:{color:l}}),i("tickangle"),i("tickformat")),pFe(e,r,i,{dfltColor:o,bgColor:t.bgColor,blend:60,showLine:!0,showGrid:!0,noZeroLine:!0,attributes:n}),i("hoverformat"),i("layer")}});var yee=z(ho=>{"use strict";var gFe=uee(),bFe=Jp().getSubplotCalcData,xFe=ke().counterRegex,iv="ternary";ho.name=iv;var _Fe=ho.attr="subplot";ho.idRoot=iv;ho.idRegex=ho.attrRegex=xFe(iv);var wFe=ho.attributes={};wFe[_Fe]={valType:"subplotid",dflt:"ternary",editType:"calc"};ho.layoutAttributes=qA();ho.supplyLayoutDefaults=mee();ho.plot=function(r){for(var t=r._fullLayout,a=r.calcdata,n=t._subplots[iv],i=0;i{"use strict";gee.exports={attributes:xA(),supplyDefaults:OQ(),colorbar:Ud(),formatLabels:UQ(),calc:jQ(),plot:XQ(),style:Af().style,styleOnSelect:Af().styleOnSelect,hoverPoints:$Q(),selectPoints:l8(),eventData:KQ(),moduleType:"trace",name:"scatterternary",basePlotModule:yee(),categories:["ternary","symbols","showLegend","scatter-like"],meta:{}}});var _ee=z((Fer,xee)=>{"use strict";xee.exports=bee()});var LA=z((zer,Aee)=>{"use strict";var ka=i3(),ov=Mt().extendFlat,wee=Eo().axisHoverFormat;Aee.exports={y:ka.y,x:ka.x,x0:ka.x0,y0:ka.y0,xhoverformat:wee("x"),yhoverformat:wee("y"),name:ov({},ka.name,{}),orientation:ov({},ka.orientation,{}),bandwidth:{valType:"number",min:0,editType:"calc"},scalegroup:{valType:"string",dflt:"",editType:"calc"},scalemode:{valType:"enumerated",values:["width","count"],dflt:"width",editType:"calc"},spanmode:{valType:"enumerated",values:["soft","hard","manual"],dflt:"soft",editType:"calc"},span:{valType:"info_array",items:[{valType:"any",editType:"calc"},{valType:"any",editType:"calc"}],editType:"calc"},line:{color:{valType:"color",editType:"style"},width:{valType:"number",min:0,dflt:2,editType:"style"},editType:"plot"},fillcolor:ka.fillcolor,points:ov({},ka.boxpoints,{}),jitter:ov({},ka.jitter,{}),pointpos:ov({},ka.pointpos,{}),width:ov({},ka.width,{}),marker:ka.marker,text:ka.text,hovertext:ka.hovertext,hovertemplate:ka.hovertemplate,hovertemplatefallback:ka.hovertemplatefallback,quartilemethod:ka.quartilemethod,box:{visible:{valType:"boolean",dflt:!1,editType:"plot"},width:{valType:"number",min:0,max:1,dflt:.25,editType:"plot"},fillcolor:{valType:"color",editType:"style"},line:{color:{valType:"color",editType:"style"},width:{valType:"number",min:0,editType:"style"},editType:"style"},editType:"plot"},meanline:{visible:{valType:"boolean",dflt:!1,editType:"plot"},color:{valType:"color",editType:"style"},width:{valType:"number",min:0,editType:"style"},editType:"plot"},side:{valType:"enumerated",values:["both","positive","negative"],dflt:"both",editType:"calc"},offsetgroup:ka.offsetgroup,alignmentgroup:ka.alignmentgroup,selected:ka.selected,unselected:ka.unselected,hoveron:{valType:"flaglist",flags:["violins","points","kde"],dflt:"violins+points+kde",extras:["all"],editType:"style"},zorder:ka.zorder}});var EA=z((Ner,Tee)=>{"use strict";var CA=o3(),DA=ke().extendFlat;Tee.exports={violinmode:DA({},CA.boxmode,{}),violingap:DA({},CA.boxgap,{}),violingroupgap:DA({},CA.boxgroupgap,{})}});var Lee=z((Ier,qee)=>{"use strict";var Mee=ke(),AFe=qr(),kee=s2(),See=LA();qee.exports=function(r,t,a,n){function i(_,k){return Mee.coerce(r,t,See,_,k)}function o(_,k){return Mee.coerce2(r,t,See,_,k)}if(kee.handleSampleDefaults(r,t,i,n),t.visible!==!1){i("bandwidth"),i("side");var l=i("width");l||(i("scalegroup",t.name),i("scalemode"));var s=i("span"),u;Array.isArray(s)&&(u="manual"),i("spanmode",u);var f=i("line.color",(r.marker||{}).color||a),c=i("line.width"),v=i("fillcolor",AFe.addOpacity(t.line.color,.5));kee.handlePointsDefaults(r,t,i,{prefix:""});var d=o("box.width"),p=o("box.fillcolor",v),y=o("box.line.color",f),m=o("box.line.width",c),b=i("box.visible",!!(d||p||y||m));b||(t.box={visible:!1});var A=o("meanline.color",f),w=o("meanline.width",c),x=i("meanline.visible",!!(A||w));x||(t.meanline={visible:!1}),i("quartilemethod"),i("zorder")}}});var Dee=z((Ber,Cee)=>{"use strict";var TFe=ke(),MFe=EA(),kFe=x9();Cee.exports=function(r,t,a){function n(i,o){return TFe.coerce(r,t,MFe,i,o)}kFe._supply(r,t,a,n,"violin")}});var O3=z(Of=>{"use strict";var SFe=ke(),qFe={gaussian:function(e){return 1/Math.sqrt(2*Math.PI)*Math.exp(-.5*e*e)}};Of.makeKDE=function(e,r,t){var a=t.length,n=qFe.gaussian,i=e.bandwidth,o=1/(a*i);return function(l){for(var s=0,u=0;u{"use strict";var PA=ke(),RA=Yr(),LFe=A9(),Eee=O3(),CFe=(jt(),ze(Zt)).BADNUM;Pee.exports=function(r,t){var a=LFe(r,t);if(a[0].t.empty)return a;for(var n=r._fullLayout,i=RA.getFromId(r,t[t.orientation==="h"?"xaxis":"yaxis"]),o=1/0,l=-1/0,s=0,u=0,f=0;f{"use strict";var RFe=T9().setPositionOffset,Fee=["v","h"];zee.exports=function(r,t){for(var a=r.calcdata,n=t.xaxis,i=t.yaxis,o=0;o{"use strict";var FA=Pr(),zA=ke(),FFe=Jr(),NA=M9(),zFe=Qw(),NFe=O3();Iee.exports=function(r,t,a,n){var i=r._context.staticPlot,o=r._fullLayout,l=t.xaxis,s=t.yaxis;function u(f,c){var v=zFe(f,{xaxis:l,yaxis:s,trace:c,connectGaps:!0,baseTolerance:.75,shape:"spline",simplify:!0,linearized:!0});return FFe.smoothopen(v[0],1)}zA.makeTraceGroups(n,a,"trace violins").each(function(f){var c=FA.select(this),v=f[0],d=v.t,p=v.trace;if(p.visible!==!0||d.empty){c.remove();return}var y=d.bPos,m=d.bdPos,b=t[d.valLetter+"axis"],A=t[d.posLetter+"axis"],w=p.side==="both",x=w||p.side==="positive",_=w||p.side==="negative",k=c.selectAll("path.violin").data(zA.identity);k.enter().append("path").style("vector-effect",i?"none":"non-scaling-stroke").attr("class","violin"),k.exit().remove(),k.each(function(I){var O=FA.select(this),U=I.density,Y=U.length,G=A.c2l(I.pos+y,!0),V=A.l2p(G),W;if(p.width)W=d.maxKDE/m;else{var j=o._violinScaleGroupStats[p.scalegroup];W=p.scalemode==="count"?j.maxKDE/m*(j.maxCount/I.pts.length):j.maxKDE/m}var J,te,ae,se,$,fe,ie;if(x){for(fe=new Array(Y),se=0;se{"use strict";var Oee=Pr(),lv=qr(),IFe=Af().stylePoints;Hee.exports=function(r){var t=Oee.select(r).selectAll("g.trace.violins");t.style("opacity",function(a){return a[0].trace.opacity}),t.each(function(a){var n=a[0].trace,i=Oee.select(this),o=n.box||{},l=o.line||{},s=n.meanline||{},u=s.width;i.selectAll("path.violin").style("stroke-width",n.line.width+"px").call(lv.stroke,n.line.color).call(lv.fill,n.fillcolor),i.selectAll("path.box").style("stroke-width",l.width+"px").call(lv.stroke,l.color).call(lv.fill,o.fillcolor);var f={"stroke-width":u+"px","stroke-dasharray":2*u+"px,"+u+"px"};i.selectAll("path.mean").style(f).call(lv.stroke,s.color),i.selectAll("path.meanline").style(f).call(lv.stroke,s.color),IFe(i,n,r)})}});var jee=z((Ver,Vee)=>{"use strict";var BFe=qr(),IA=ke(),OFe=Yr(),Gee=D9(),Yee=O3();Vee.exports=function(r,t,a,n,i){i||(i={});var o=i.hoverLayer,l=r.cd,s=l[0].trace,u=s.hoveron,f=u.indexOf("violins")!==-1,c=u.indexOf("kde")!==-1,v=[],d,p;if(f||c){var y=Gee.hoverOnBoxes(r,t,a,n);if(c&&y.length>0){var m=r.xa,b=r.ya,A,w,x,_,k;s.orientation==="h"?(k=t,A="y",x=b,w="x",_=m):(k=a,A="x",x=m,w="y",_=b);var T=l[r.index];if(k>=T.span[0]&&k<=T.span[1]){var q=IA.extendFlat({},r),C=_.c2p(k,!0),E=Yee.getKdeValue(T,s,k),P=Yee.getPositionOnKdePath(T,s,C),R=x._offset,N=x._length;q[A+"0"]=P[0],q[A+"1"]=P[1],q[w+"0"]=q[w+"1"]=C,q[w+"Label"]=w+": "+OFe.hoverLabelText(_,k,s[w+"hoverformat"])+", "+l[0].t.labels.kde+" "+E.toFixed(3);for(var I=0,O=0;O{"use strict";Wee.exports={attributes:LA(),layoutAttributes:EA(),supplyDefaults:Lee(),crossTraceDefaults:s2().crossTraceDefaults,supplyLayoutDefaults:Dee(),calc:Ree(),crossTraceCalc:Nee(),plot:Bee(),style:Uee(),styleOnSelect:Af().styleOnSelect,hoverPoints:jee(),selectPoints:E9(),moduleType:"trace",name:"violin",basePlotModule:io(),categories:["cartesian","svg","symbols","oriented","box-violin","showLegend","violinLayout","zoomScale"],meta:{}}});var $ee=z((Wer,Zee)=>{"use strict";Zee.exports=Xee()});var _2={};qt(_2,{colormodel:()=>BA});var BA,sv=St(()=>{"use strict";BA={rgb:{min:[0,0,0],max:[255,255,255],fmt:e=>e.slice(0,3),suffix:["","",""]},rgba:{min:[0,0,0,0],max:[255,255,255,1],fmt:e=>e.slice(0,4),suffix:["","","",""]},rgba256:{colormodel:"rgba",zminDflt:[0,0,0,0],zmaxDflt:[255,255,255,255],min:[0,0,0,0],max:[255,255,255,1],fmt:e=>e.slice(0,4),suffix:["","","",""]},hsl:{min:[0,0,0],max:[360,100,100],fmt:e=>{let r=e.slice(0,3);return r[1]=r[1]+"%",r[2]=r[2]+"%",r},suffix:["\xB0","%","%"]},hsla:{min:[0,0,0,0],max:[360,100,100,1],fmt:e=>{let r=e.slice(0,4);return r[1]=r[1]+"%",r[2]=r[2]+"%",r},suffix:["\xB0","%","%",""]}}});var OA={};qt(OA,{default:()=>UFe});var Jee,Kee,H3,Qee,ere,rre,tre,HFe,UFe,HA=St(()=>{"use strict";Jee=xc(Mt()),Kee=xc(On()),H3=xc(di()),Qee=xc(Ji());sv();ere=["rgb","rgba","rgba256","hsl","hsla"],rre=[],tre=[];for(let e of ere){let r=BA[e];rre.push(`For the \`${e}\` colormodel, it is [${(r.zminDflt||r.min).join(", ")}].`),tre.push(`For the \`${e}\` colormodel, it is [${(r.zmaxDflt||r.max).join(", ")}].`)}HFe={source:{valType:"string",editType:"calc",description:["Specifies the data URI of the image to be visualized.",'The URI consists of "data:image/[][;base64\\\\],"'].join(" ")},z:{valType:"data_array",editType:"calc",description:["A 2-dimensional array in which each element is an array of 3 or 4 numbers representing a color."].join(" ")},colormodel:{valType:"enumerated",values:ere,editType:"calc",description:["Color model used to map the numerical color components described in `z` into colors.","If `source` is specified, this attribute will be set to `rgba256`","otherwise it defaults to `rgb`."].join(" ")},zsmooth:{valType:"enumerated",values:["fast",!1],dflt:!1,editType:"plot",description:["Picks a smoothing algorithm used to smooth `z` data.","This only applies for image traces that use the `source` attribute."].join(" ")},zmin:{valType:"info_array",items:[{valType:"number",editType:"calc"},{valType:"number",editType:"calc"},{valType:"number",editType:"calc"},{valType:"number",editType:"calc"}],editType:"calc",description:["Array defining the lower bound for each color component.","Note that the default value will depend on the colormodel.",rre.join(" ")].join(" ")},zmax:{valType:"info_array",items:[{valType:"number",editType:"calc"},{valType:"number",editType:"calc"},{valType:"number",editType:"calc"},{valType:"number",editType:"calc"}],editType:"calc",description:["Array defining the higher bound for each color component.","Note that the default value will depend on the colormodel.",tre.join(" ")].join(" ")},x0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",description:["Set the image's x position. The left edge of the image","(or the right edge if the x axis is reversed or dx is negative)","will be found at xmin=x0-dx/2"].join(" ")},y0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",description:["Set the image's y position. The top edge of the image","(or the bottom edge if the y axis is NOT reversed or if dy is negative)","will be found at ymin=y0-dy/2. By default when an image trace is","included, the y axis will be reversed so that the image is right-side-up,","but you can disable this by setting yaxis.autorange=true or by providing","an explicit y axis range."].join(" ")},dx:{valType:"number",dflt:1,editType:"calc",description:"Set the pixel's horizontal size."},dy:{valType:"number",dflt:1,editType:"calc",description:"Set the pixel's vertical size"},text:{valType:"data_array",editType:"plot",description:"Sets the text elements associated with each z value."},hovertext:{valType:"data_array",editType:"plot",description:"Same as `text`."},hoverinfo:(0,Jee.extendFlat)({},Kee.default.hoverinfo,{flags:["x","y","z","color","name","text"],dflt:"x+y+z+text+name"}),hovertemplate:(0,H3.hovertemplateAttrs)({},{keys:["z","color","colormodel"]}),hovertemplatefallback:(0,H3.templatefallbackAttrs)(),zorder:Qee.zorder},UFe=HFe});var ire=z((Zer,nre)=>{"use strict";var GFe=ke(),YFe=(HA(),ze(OA)).default,are=(sv(),ze(_2)),VFe=Kl().IMAGE_URL_PREFIX;nre.exports=function(r,t){function a(o,l){return GFe.coerce(r,t,YFe,o,l)}a("source"),t.source&&!t.source.match(VFe)&&delete t.source,t._hasSource=!!t.source;var n=a("z");if(t._hasZ=!(n===void 0||!n.length||!n[0]||!n[0].length),!t._hasZ&&!t._hasSource){t.visible=!1;return}a("x0"),a("y0"),a("dx"),a("dy");var i;t._hasZ?(a("colormodel","rgb"),i=are.colormodel[t.colormodel],a("zmin",i.zminDflt||i.min),a("zmax",i.zmaxDflt||i.max)):t._hasSource&&(t.colormodel="rgba256",i=are.colormodel[t.colormodel],t.zmin=i.zminDflt,t.zmax=i.zmaxDflt),a("zsmooth"),a("text"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback"),t._length=null,a("zorder")}});var ss=z(($er,UA)=>{typeof Object.create=="function"?UA.exports=function(r,t){t&&(r.super_=t,r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}))}:UA.exports=function(r,t){if(t){r.super_=t;var a=function(){};a.prototype=t.prototype,r.prototype=new a,r.prototype.constructor=r}}});var GA=z((Jer,ore)=>{ore.exports=Wu().EventEmitter});var ure=z(U3=>{"use strict";U3.byteLength=WFe;U3.toByteArray=ZFe;U3.fromByteArray=KFe;var Ll=[],po=[],jFe=typeof Uint8Array!="undefined"?Uint8Array:Array,YA="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(Hf=0,lre=YA.length;Hf0)throw new Error("Invalid string. Length must be a multiple of 4");var t=e.indexOf("=");t===-1&&(t=r);var a=t===r?0:4-t%4;return[t,a]}function WFe(e){var r=sre(e),t=r[0],a=r[1];return(t+a)*3/4-a}function XFe(e,r,t){return(r+t)*3/4-t}function ZFe(e){var r,t=sre(e),a=t[0],n=t[1],i=new jFe(XFe(e,a,n)),o=0,l=n>0?a-4:a,s;for(s=0;s>16&255,i[o++]=r>>8&255,i[o++]=r&255;return n===2&&(r=po[e.charCodeAt(s)]<<2|po[e.charCodeAt(s+1)]>>4,i[o++]=r&255),n===1&&(r=po[e.charCodeAt(s)]<<10|po[e.charCodeAt(s+1)]<<4|po[e.charCodeAt(s+2)]>>2,i[o++]=r>>8&255,i[o++]=r&255),i}function $Fe(e){return Ll[e>>18&63]+Ll[e>>12&63]+Ll[e>>6&63]+Ll[e&63]}function JFe(e,r,t){for(var a,n=[],i=r;il?l:o+i));return a===1?(r=e[t-1],n.push(Ll[r>>2]+Ll[r<<4&63]+"==")):a===2&&(r=(e[t-2]<<8)+e[t-1],n.push(Ll[r>>10]+Ll[r>>4&63]+Ll[r<<2&63]+"=")),n.join("")}});var fre=z(VA=>{VA.read=function(e,r,t,a,n){var i,o,l=n*8-a-1,s=(1<>1,f=-7,c=t?n-1:0,v=t?-1:1,d=e[r+c];for(c+=v,i=d&(1<<-f)-1,d>>=-f,f+=l;f>0;i=i*256+e[r+c],c+=v,f-=8);for(o=i&(1<<-f)-1,i>>=-f,f+=a;f>0;o=o*256+e[r+c],c+=v,f-=8);if(i===0)i=1-u;else{if(i===s)return o?NaN:(d?-1:1)*(1/0);o=o+Math.pow(2,a),i=i-u}return(d?-1:1)*o*Math.pow(2,i-a)};VA.write=function(e,r,t,a,n,i){var o,l,s,u=i*8-n-1,f=(1<>1,v=n===23?Math.pow(2,-24)-Math.pow(2,-77):0,d=a?0:i-1,p=a?1:-1,y=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(l=isNaN(r)?1:0,o=f):(o=Math.floor(Math.log(r)/Math.LN2),r*(s=Math.pow(2,-o))<1&&(o--,s*=2),o+c>=1?r+=v/s:r+=v*Math.pow(2,1-c),r*s>=2&&(o++,s/=2),o+c>=f?(l=0,o=f):o+c>=1?(l=(r*s-1)*Math.pow(2,n),o=o+c):(l=r*Math.pow(2,c-1)*Math.pow(2,n),o=0));n>=8;e[t+d]=l&255,d+=p,l/=256,n-=8);for(o=o<0;e[t+d]=o&255,d+=p,o/=256,u-=8);e[t+d-p]|=y*128}});var hv=z(vv=>{"use strict";var jA=ure(),fv=fre(),cre=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;vv.Buffer=je;vv.SlowBuffer=nze;vv.INSPECT_MAX_BYTES=50;var G3=2147483647;vv.kMaxLength=G3;je.TYPED_ARRAY_SUPPORT=QFe();!je.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&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 QFe(){try{let e=new Uint8Array(1),r={foo:function(){return 42}};return Object.setPrototypeOf(r,Uint8Array.prototype),Object.setPrototypeOf(e,r),e.foo()===42}catch(e){return!1}}Object.defineProperty(je.prototype,"parent",{enumerable:!0,get:function(){if(je.isBuffer(this))return this.buffer}});Object.defineProperty(je.prototype,"offset",{enumerable:!0,get:function(){if(je.isBuffer(this))return this.byteOffset}});function us(e){if(e>G3)throw new RangeError('The value "'+e+'" is invalid for option "size"');let r=new Uint8Array(e);return Object.setPrototypeOf(r,je.prototype),r}function je(e,r,t){if(typeof e=="number"){if(typeof r=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return $A(e)}return pre(e,r,t)}je.poolSize=8192;function pre(e,r,t){if(typeof e=="string")return rze(e,r);if(ArrayBuffer.isView(e))return tze(e);if(e==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(Cl(e,ArrayBuffer)||e&&Cl(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(Cl(e,SharedArrayBuffer)||e&&Cl(e.buffer,SharedArrayBuffer)))return XA(e,r,t);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let a=e.valueOf&&e.valueOf();if(a!=null&&a!==e)return je.from(a,r,t);let n=aze(e);if(n)return n;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return je.from(e[Symbol.toPrimitive]("string"),r,t);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}je.from=function(e,r,t){return pre(e,r,t)};Object.setPrototypeOf(je.prototype,Uint8Array.prototype);Object.setPrototypeOf(je,Uint8Array);function mre(e){if(typeof e!="number")throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function eze(e,r,t){return mre(e),e<=0?us(e):r!==void 0?typeof t=="string"?us(e).fill(r,t):us(e).fill(r):us(e)}je.alloc=function(e,r,t){return eze(e,r,t)};function $A(e){return mre(e),us(e<0?0:JA(e)|0)}je.allocUnsafe=function(e){return $A(e)};je.allocUnsafeSlow=function(e){return $A(e)};function rze(e,r){if((typeof r!="string"||r==="")&&(r="utf8"),!je.isEncoding(r))throw new TypeError("Unknown encoding: "+r);let t=yre(e,r)|0,a=us(t),n=a.write(e,r);return n!==t&&(a=a.slice(0,n)),a}function WA(e){let r=e.length<0?0:JA(e.length)|0,t=us(r);for(let a=0;a=G3)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+G3.toString(16)+" bytes");return e|0}function nze(e){return+e!=e&&(e=0),je.alloc(+e)}je.isBuffer=function(r){return r!=null&&r._isBuffer===!0&&r!==je.prototype};je.compare=function(r,t){if(Cl(r,Uint8Array)&&(r=je.from(r,r.offset,r.byteLength)),Cl(t,Uint8Array)&&(t=je.from(t,t.offset,t.byteLength)),!je.isBuffer(r)||!je.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(r===t)return 0;let a=r.length,n=t.length;for(let i=0,o=Math.min(a,n);in.length?(je.isBuffer(o)||(o=je.from(o)),o.copy(n,i)):Uint8Array.prototype.set.call(n,o,i);else if(je.isBuffer(o))o.copy(n,i);else throw new TypeError('"list" argument must be an Array of Buffers');i+=o.length}return n};function yre(e,r){if(je.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||Cl(e,ArrayBuffer))return e.byteLength;if(typeof e!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);let t=e.length,a=arguments.length>2&&arguments[2]===!0;if(!a&&t===0)return 0;let n=!1;for(;;)switch(r){case"ascii":case"latin1":case"binary":return t;case"utf8":case"utf-8":return ZA(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return t*2;case"hex":return t>>>1;case"base64":return kre(e).length;default:if(n)return a?-1:ZA(e).length;r=(""+r).toLowerCase(),n=!0}}je.byteLength=yre;function ize(e,r,t){let a=!1;if((r===void 0||r<0)&&(r=0),r>this.length||((t===void 0||t>this.length)&&(t=this.length),t<=0)||(t>>>=0,r>>>=0,t<=r))return"";for(e||(e="utf8");;)switch(e){case"hex":return pze(this,r,t);case"utf8":case"utf-8":return bre(this,r,t);case"ascii":return hze(this,r,t);case"latin1":case"binary":return dze(this,r,t);case"base64":return cze(this,r,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return mze(this,r,t);default:if(a)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),a=!0}}je.prototype._isBuffer=!0;function Uf(e,r,t){let a=e[r];e[r]=e[t],e[t]=a}je.prototype.swap16=function(){let r=this.length;if(r%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;tt&&(r+=" ... "),""};cre&&(je.prototype[cre]=je.prototype.inspect);je.prototype.compare=function(r,t,a,n,i){if(Cl(r,Uint8Array)&&(r=je.from(r,r.offset,r.byteLength)),!je.isBuffer(r))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof r);if(t===void 0&&(t=0),a===void 0&&(a=r?r.length:0),n===void 0&&(n=0),i===void 0&&(i=this.length),t<0||a>r.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&t>=a)return 0;if(n>=i)return-1;if(t>=a)return 1;if(t>>>=0,a>>>=0,n>>>=0,i>>>=0,this===r)return 0;let o=i-n,l=a-t,s=Math.min(o,l),u=this.slice(n,i),f=r.slice(t,a);for(let c=0;c2147483647?t=2147483647:t<-2147483648&&(t=-2147483648),t=+t,QA(t)&&(t=n?0:e.length-1),t<0&&(t=e.length+t),t>=e.length){if(n)return-1;t=e.length-1}else if(t<0)if(n)t=0;else return-1;if(typeof r=="string"&&(r=je.from(r,a)),je.isBuffer(r))return r.length===0?-1:vre(e,r,t,a,n);if(typeof r=="number")return r=r&255,typeof Uint8Array.prototype.indexOf=="function"?n?Uint8Array.prototype.indexOf.call(e,r,t):Uint8Array.prototype.lastIndexOf.call(e,r,t):vre(e,[r],t,a,n);throw new TypeError("val must be string, number or Buffer")}function vre(e,r,t,a,n){let i=1,o=e.length,l=r.length;if(a!==void 0&&(a=String(a).toLowerCase(),a==="ucs2"||a==="ucs-2"||a==="utf16le"||a==="utf-16le")){if(e.length<2||r.length<2)return-1;i=2,o/=2,l/=2,t/=2}function s(f,c){return i===1?f[c]:f.readUInt16BE(c*i)}let u;if(n){let f=-1;for(u=t;uo&&(t=o-l),u=t;u>=0;u--){let f=!0;for(let c=0;cn&&(a=n)):a=n;let i=r.length;a>i/2&&(a=i/2);let o;for(o=0;o>>0,isFinite(a)?(a=a>>>0,n===void 0&&(n="utf8")):(n=a,a=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let i=this.length-t;if((a===void 0||a>i)&&(a=i),r.length>0&&(a<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");let o=!1;for(;;)switch(n){case"hex":return oze(this,r,t,a);case"utf8":case"utf-8":return lze(this,r,t,a);case"ascii":case"latin1":case"binary":return sze(this,r,t,a);case"base64":return uze(this,r,t,a);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return fze(this,r,t,a);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}};je.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function cze(e,r,t){return r===0&&t===e.length?jA.fromByteArray(e):jA.fromByteArray(e.slice(r,t))}function bre(e,r,t){t=Math.min(e.length,t);let a=[],n=r;for(;n239?4:i>223?3:i>191?2:1;if(n+l<=t){let s,u,f,c;switch(l){case 1:i<128&&(o=i);break;case 2:s=e[n+1],(s&192)===128&&(c=(i&31)<<6|s&63,c>127&&(o=c));break;case 3:s=e[n+1],u=e[n+2],(s&192)===128&&(u&192)===128&&(c=(i&15)<<12|(s&63)<<6|u&63,c>2047&&(c<55296||c>57343)&&(o=c));break;case 4:s=e[n+1],u=e[n+2],f=e[n+3],(s&192)===128&&(u&192)===128&&(f&192)===128&&(c=(i&15)<<18|(s&63)<<12|(u&63)<<6|f&63,c>65535&&c<1114112&&(o=c))}}o===null?(o=65533,l=1):o>65535&&(o-=65536,a.push(o>>>10&1023|55296),o=56320|o&1023),a.push(o),n+=l}return vze(a)}var hre=4096;function vze(e){let r=e.length;if(r<=hre)return String.fromCharCode.apply(String,e);let t="",a=0;for(;aa)&&(t=a);let n="";for(let i=r;ia&&(r=a),t<0?(t+=a,t<0&&(t=0)):t>a&&(t=a),tt)throw new RangeError("Trying to access beyond buffer length")}je.prototype.readUintLE=je.prototype.readUIntLE=function(r,t,a){r=r>>>0,t=t>>>0,a||fn(r,t,this.length);let n=this[r],i=1,o=0;for(;++o>>0,t=t>>>0,a||fn(r,t,this.length);let n=this[r+--t],i=1;for(;t>0&&(i*=256);)n+=this[r+--t]*i;return n};je.prototype.readUint8=je.prototype.readUInt8=function(r,t){return r=r>>>0,t||fn(r,1,this.length),this[r]};je.prototype.readUint16LE=je.prototype.readUInt16LE=function(r,t){return r=r>>>0,t||fn(r,2,this.length),this[r]|this[r+1]<<8};je.prototype.readUint16BE=je.prototype.readUInt16BE=function(r,t){return r=r>>>0,t||fn(r,2,this.length),this[r]<<8|this[r+1]};je.prototype.readUint32LE=je.prototype.readUInt32LE=function(r,t){return r=r>>>0,t||fn(r,4,this.length),(this[r]|this[r+1]<<8|this[r+2]<<16)+this[r+3]*16777216};je.prototype.readUint32BE=je.prototype.readUInt32BE=function(r,t){return r=r>>>0,t||fn(r,4,this.length),this[r]*16777216+(this[r+1]<<16|this[r+2]<<8|this[r+3])};je.prototype.readBigUInt64LE=ou(function(r){r=r>>>0,cv(r,"offset");let t=this[r],a=this[r+7];(t===void 0||a===void 0)&&w2(r,this.length-8);let n=t+this[++r]*2**8+this[++r]*2**16+this[++r]*2**24,i=this[++r]+this[++r]*2**8+this[++r]*2**16+a*2**24;return BigInt(n)+(BigInt(i)<>>0,cv(r,"offset");let t=this[r],a=this[r+7];(t===void 0||a===void 0)&&w2(r,this.length-8);let n=t*2**24+this[++r]*2**16+this[++r]*2**8+this[++r],i=this[++r]*2**24+this[++r]*2**16+this[++r]*2**8+a;return(BigInt(n)<>>0,t=t>>>0,a||fn(r,t,this.length);let n=this[r],i=1,o=0;for(;++o=i&&(n-=Math.pow(2,8*t)),n};je.prototype.readIntBE=function(r,t,a){r=r>>>0,t=t>>>0,a||fn(r,t,this.length);let n=t,i=1,o=this[r+--n];for(;n>0&&(i*=256);)o+=this[r+--n]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*t)),o};je.prototype.readInt8=function(r,t){return r=r>>>0,t||fn(r,1,this.length),this[r]&128?(255-this[r]+1)*-1:this[r]};je.prototype.readInt16LE=function(r,t){r=r>>>0,t||fn(r,2,this.length);let a=this[r]|this[r+1]<<8;return a&32768?a|4294901760:a};je.prototype.readInt16BE=function(r,t){r=r>>>0,t||fn(r,2,this.length);let a=this[r+1]|this[r]<<8;return a&32768?a|4294901760:a};je.prototype.readInt32LE=function(r,t){return r=r>>>0,t||fn(r,4,this.length),this[r]|this[r+1]<<8|this[r+2]<<16|this[r+3]<<24};je.prototype.readInt32BE=function(r,t){return r=r>>>0,t||fn(r,4,this.length),this[r]<<24|this[r+1]<<16|this[r+2]<<8|this[r+3]};je.prototype.readBigInt64LE=ou(function(r){r=r>>>0,cv(r,"offset");let t=this[r],a=this[r+7];(t===void 0||a===void 0)&&w2(r,this.length-8);let n=this[r+4]+this[r+5]*2**8+this[r+6]*2**16+(a<<24);return(BigInt(n)<>>0,cv(r,"offset");let t=this[r],a=this[r+7];(t===void 0||a===void 0)&&w2(r,this.length-8);let n=(t<<24)+this[++r]*2**16+this[++r]*2**8+this[++r];return(BigInt(n)<>>0,t||fn(r,4,this.length),fv.read(this,r,!0,23,4)};je.prototype.readFloatBE=function(r,t){return r=r>>>0,t||fn(r,4,this.length),fv.read(this,r,!1,23,4)};je.prototype.readDoubleLE=function(r,t){return r=r>>>0,t||fn(r,8,this.length),fv.read(this,r,!0,52,8)};je.prototype.readDoubleBE=function(r,t){return r=r>>>0,t||fn(r,8,this.length),fv.read(this,r,!1,52,8)};function si(e,r,t,a,n,i){if(!je.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>n||re.length)throw new RangeError("Index out of range")}je.prototype.writeUintLE=je.prototype.writeUIntLE=function(r,t,a,n){if(r=+r,t=t>>>0,a=a>>>0,!n){let l=Math.pow(2,8*a)-1;si(this,r,t,a,l,0)}let i=1,o=0;for(this[t]=r&255;++o>>0,a=a>>>0,!n){let l=Math.pow(2,8*a)-1;si(this,r,t,a,l,0)}let i=a-1,o=1;for(this[t+i]=r&255;--i>=0&&(o*=256);)this[t+i]=r/o&255;return t+a};je.prototype.writeUint8=je.prototype.writeUInt8=function(r,t,a){return r=+r,t=t>>>0,a||si(this,r,t,1,255,0),this[t]=r&255,t+1};je.prototype.writeUint16LE=je.prototype.writeUInt16LE=function(r,t,a){return r=+r,t=t>>>0,a||si(this,r,t,2,65535,0),this[t]=r&255,this[t+1]=r>>>8,t+2};je.prototype.writeUint16BE=je.prototype.writeUInt16BE=function(r,t,a){return r=+r,t=t>>>0,a||si(this,r,t,2,65535,0),this[t]=r>>>8,this[t+1]=r&255,t+2};je.prototype.writeUint32LE=je.prototype.writeUInt32LE=function(r,t,a){return r=+r,t=t>>>0,a||si(this,r,t,4,4294967295,0),this[t+3]=r>>>24,this[t+2]=r>>>16,this[t+1]=r>>>8,this[t]=r&255,t+4};je.prototype.writeUint32BE=je.prototype.writeUInt32BE=function(r,t,a){return r=+r,t=t>>>0,a||si(this,r,t,4,4294967295,0),this[t]=r>>>24,this[t+1]=r>>>16,this[t+2]=r>>>8,this[t+3]=r&255,t+4};function xre(e,r,t,a,n){Mre(r,a,n,e,t,7);let i=Number(r&BigInt(4294967295));e[t++]=i,i=i>>8,e[t++]=i,i=i>>8,e[t++]=i,i=i>>8,e[t++]=i;let o=Number(r>>BigInt(32)&BigInt(4294967295));return e[t++]=o,o=o>>8,e[t++]=o,o=o>>8,e[t++]=o,o=o>>8,e[t++]=o,t}function _re(e,r,t,a,n){Mre(r,a,n,e,t,7);let i=Number(r&BigInt(4294967295));e[t+7]=i,i=i>>8,e[t+6]=i,i=i>>8,e[t+5]=i,i=i>>8,e[t+4]=i;let o=Number(r>>BigInt(32)&BigInt(4294967295));return e[t+3]=o,o=o>>8,e[t+2]=o,o=o>>8,e[t+1]=o,o=o>>8,e[t]=o,t+8}je.prototype.writeBigUInt64LE=ou(function(r,t=0){return xre(this,r,t,BigInt(0),BigInt("0xffffffffffffffff"))});je.prototype.writeBigUInt64BE=ou(function(r,t=0){return _re(this,r,t,BigInt(0),BigInt("0xffffffffffffffff"))});je.prototype.writeIntLE=function(r,t,a,n){if(r=+r,t=t>>>0,!n){let s=Math.pow(2,8*a-1);si(this,r,t,a,s-1,-s)}let i=0,o=1,l=0;for(this[t]=r&255;++i>0)-l&255;return t+a};je.prototype.writeIntBE=function(r,t,a,n){if(r=+r,t=t>>>0,!n){let s=Math.pow(2,8*a-1);si(this,r,t,a,s-1,-s)}let i=a-1,o=1,l=0;for(this[t+i]=r&255;--i>=0&&(o*=256);)r<0&&l===0&&this[t+i+1]!==0&&(l=1),this[t+i]=(r/o>>0)-l&255;return t+a};je.prototype.writeInt8=function(r,t,a){return r=+r,t=t>>>0,a||si(this,r,t,1,127,-128),r<0&&(r=255+r+1),this[t]=r&255,t+1};je.prototype.writeInt16LE=function(r,t,a){return r=+r,t=t>>>0,a||si(this,r,t,2,32767,-32768),this[t]=r&255,this[t+1]=r>>>8,t+2};je.prototype.writeInt16BE=function(r,t,a){return r=+r,t=t>>>0,a||si(this,r,t,2,32767,-32768),this[t]=r>>>8,this[t+1]=r&255,t+2};je.prototype.writeInt32LE=function(r,t,a){return r=+r,t=t>>>0,a||si(this,r,t,4,2147483647,-2147483648),this[t]=r&255,this[t+1]=r>>>8,this[t+2]=r>>>16,this[t+3]=r>>>24,t+4};je.prototype.writeInt32BE=function(r,t,a){return r=+r,t=t>>>0,a||si(this,r,t,4,2147483647,-2147483648),r<0&&(r=4294967295+r+1),this[t]=r>>>24,this[t+1]=r>>>16,this[t+2]=r>>>8,this[t+3]=r&255,t+4};je.prototype.writeBigInt64LE=ou(function(r,t=0){return xre(this,r,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});je.prototype.writeBigInt64BE=ou(function(r,t=0){return _re(this,r,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function wre(e,r,t,a,n,i){if(t+a>e.length)throw new RangeError("Index out of range");if(t<0)throw new RangeError("Index out of range")}function Are(e,r,t,a,n){return r=+r,t=t>>>0,n||wre(e,r,t,4,34028234663852886e22,-34028234663852886e22),fv.write(e,r,t,a,23,4),t+4}je.prototype.writeFloatLE=function(r,t,a){return Are(this,r,t,!0,a)};je.prototype.writeFloatBE=function(r,t,a){return Are(this,r,t,!1,a)};function Tre(e,r,t,a,n){return r=+r,t=t>>>0,n||wre(e,r,t,8,17976931348623157e292,-17976931348623157e292),fv.write(e,r,t,a,52,8),t+8}je.prototype.writeDoubleLE=function(r,t,a){return Tre(this,r,t,!0,a)};je.prototype.writeDoubleBE=function(r,t,a){return Tre(this,r,t,!1,a)};je.prototype.copy=function(r,t,a,n){if(!je.isBuffer(r))throw new TypeError("argument should be a Buffer");if(a||(a=0),!n&&n!==0&&(n=this.length),t>=r.length&&(t=r.length),t||(t=0),n>0&&n=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),r.length-t>>0,a=a===void 0?this.length:a>>>0,r||(r=0);let i;if(typeof r=="number")for(i=t;i2**32?n=dre(String(t)):typeof t=="bigint"&&(n=String(t),(t>BigInt(2)**BigInt(32)||t<-(BigInt(2)**BigInt(32)))&&(n=dre(n)),n+="n"),a+=` It must be ${r}. Received ${n}`,a},RangeError);function dre(e){let r="",t=e.length,a=e[0]==="-"?1:0;for(;t>=a+4;t-=3)r=`_${e.slice(t-3,t)}${r}`;return`${e.slice(0,t)}${r}`}function yze(e,r,t){cv(r,"offset"),(e[r]===void 0||e[r+t]===void 0)&&w2(r,e.length-(t+1))}function Mre(e,r,t,a,n,i){if(e>t||e3?r===0||r===BigInt(0)?l=`>= 0${o} and < 2${o} ** ${(i+1)*8}${o}`:l=`>= -(2${o} ** ${(i+1)*8-1}${o}) and < 2 ** ${(i+1)*8-1}${o}`:l=`>= ${r}${o} and <= ${t}${o}`,new uv.ERR_OUT_OF_RANGE("value",l,e)}yze(a,n,i)}function cv(e,r){if(typeof e!="number")throw new uv.ERR_INVALID_ARG_TYPE(r,"number",e)}function w2(e,r,t){throw Math.floor(e)!==e?(cv(e,t),new uv.ERR_OUT_OF_RANGE(t||"offset","an integer",e)):r<0?new uv.ERR_BUFFER_OUT_OF_BOUNDS:new uv.ERR_OUT_OF_RANGE(t||"offset",`>= ${t?1:0} and <= ${r}`,e)}var gze=/[^+/0-9A-Za-z-_]/g;function bze(e){if(e=e.split("=")[0],e=e.trim().replace(gze,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function ZA(e,r){r=r||1/0;let t,a=e.length,n=null,i=[];for(let o=0;o55295&&t<57344){if(!n){if(t>56319){(r-=3)>-1&&i.push(239,191,189);continue}else if(o+1===a){(r-=3)>-1&&i.push(239,191,189);continue}n=t;continue}if(t<56320){(r-=3)>-1&&i.push(239,191,189),n=t;continue}t=(n-55296<<10|t-56320)+65536}else n&&(r-=3)>-1&&i.push(239,191,189);if(n=null,t<128){if((r-=1)<0)break;i.push(t)}else if(t<2048){if((r-=2)<0)break;i.push(t>>6|192,t&63|128)}else if(t<65536){if((r-=3)<0)break;i.push(t>>12|224,t>>6&63|128,t&63|128)}else if(t<1114112){if((r-=4)<0)break;i.push(t>>18|240,t>>12&63|128,t>>6&63|128,t&63|128)}else throw new Error("Invalid code point")}return i}function xze(e){let r=[];for(let t=0;t>8,n=t%256,i.push(n),i.push(a);return i}function kre(e){return jA.toByteArray(bze(e))}function Y3(e,r,t,a){let n;for(n=0;n=r.length||n>=e.length);++n)r[n+t]=e[n];return n}function Cl(e,r){return e instanceof r||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===r.name}function QA(e){return e!==e}var wze=(function(){let e="0123456789abcdef",r=new Array(256);for(let t=0;t<16;++t){let a=t*16;for(let n=0;n<16;++n)r[a+n]=e[t]+e[n]}return r})();function ou(e){return typeof BigInt=="undefined"?Aze:e}function Aze(){throw new Error("BigInt not supported")}});var V3=z((trr,Sre)=>{"use strict";Sre.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var r={},t=Symbol("test"),a=Object(t);if(typeof t=="string"||Object.prototype.toString.call(t)!=="[object Symbol]"||Object.prototype.toString.call(a)!=="[object Symbol]")return!1;var n=42;r[t]=n;for(var i in r)return!1;if(typeof Object.keys=="function"&&Object.keys(r).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(r).length!==0)return!1;var o=Object.getOwnPropertySymbols(r);if(o.length!==1||o[0]!==t||!Object.prototype.propertyIsEnumerable.call(r,t))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var l=Object.getOwnPropertyDescriptor(r,t);if(l.value!==n||l.enumerable!==!0)return!1}return!0}});var A2=z((arr,qre)=>{"use strict";var Tze=V3();qre.exports=function(){return Tze()&&!!Symbol.toStringTag}});var j3=z((nrr,Lre)=>{"use strict";Lre.exports=Object});var Dre=z((irr,Cre)=>{"use strict";Cre.exports=Error});var Pre=z((orr,Ere)=>{"use strict";Ere.exports=EvalError});var Fre=z((lrr,Rre)=>{"use strict";Rre.exports=RangeError});var Nre=z((srr,zre)=>{"use strict";zre.exports=ReferenceError});var eT=z((urr,Ire)=>{"use strict";Ire.exports=SyntaxError});var dv=z((frr,Bre)=>{"use strict";Bre.exports=TypeError});var Hre=z((crr,Ore)=>{"use strict";Ore.exports=URIError});var Gre=z((vrr,Ure)=>{"use strict";Ure.exports=Math.abs});var Vre=z((hrr,Yre)=>{"use strict";Yre.exports=Math.floor});var Wre=z((drr,jre)=>{"use strict";jre.exports=Math.max});var Zre=z((prr,Xre)=>{"use strict";Xre.exports=Math.min});var Jre=z((mrr,$re)=>{"use strict";$re.exports=Math.pow});var Qre=z((yrr,Kre)=>{"use strict";Kre.exports=Math.round});var rte=z((grr,ete)=>{"use strict";ete.exports=Number.isNaN||function(r){return r!==r}});var ate=z((brr,tte)=>{"use strict";var Mze=rte();tte.exports=function(r){return Mze(r)||r===0?r:r<0?-1:1}});var ite=z((xrr,nte)=>{"use strict";nte.exports=Object.getOwnPropertyDescriptor});var Gf=z((_rr,ote)=>{"use strict";var W3=ite();if(W3)try{W3([],"length")}catch(e){W3=null}ote.exports=W3});var T2=z((wrr,lte)=>{"use strict";var X3=Object.defineProperty||!1;if(X3)try{X3({},"a",{value:1})}catch(e){X3=!1}lte.exports=X3});var fte=z((Arr,ute)=>{"use strict";var ste=typeof Symbol!="undefined"&&Symbol,kze=V3();ute.exports=function(){return typeof ste!="function"||typeof Symbol!="function"||typeof ste("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:kze()}});var rT=z((Trr,cte)=>{"use strict";cte.exports=typeof Reflect!="undefined"&&Reflect.getPrototypeOf||null});var tT=z((Mrr,vte)=>{"use strict";var Sze=j3();vte.exports=Sze.getPrototypeOf||null});var pte=z((krr,dte)=>{"use strict";var qze="Function.prototype.bind called on incompatible ",Lze=Object.prototype.toString,Cze=Math.max,Dze="[object Function]",hte=function(r,t){for(var a=[],n=0;n{"use strict";var Rze=pte();mte.exports=Function.prototype.bind||Rze});var Z3=z((qrr,yte)=>{"use strict";yte.exports=Function.prototype.call});var $3=z((Lrr,gte)=>{"use strict";gte.exports=Function.prototype.apply});var xte=z((Crr,bte)=>{"use strict";bte.exports=typeof Reflect!="undefined"&&Reflect&&Reflect.apply});var aT=z((Drr,_te)=>{"use strict";var Fze=pv(),zze=$3(),Nze=Z3(),Ize=xte();_te.exports=Ize||Fze.call(Nze,zze)});var J3=z((Err,wte)=>{"use strict";var Bze=pv(),Oze=dv(),Hze=Z3(),Uze=aT();wte.exports=function(r){if(r.length<1||typeof r[0]!="function")throw new Oze("a function is required");return Uze(Bze,Hze,r)}});var qte=z((Prr,Ste)=>{"use strict";var Gze=J3(),Ate=Gf(),Mte;try{Mte=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!="object"||!("code"in e)||e.code!=="ERR_PROTO_ACCESS")throw e}var nT=!!Mte&&Ate&&Ate(Object.prototype,"__proto__"),kte=Object,Tte=kte.getPrototypeOf;Ste.exports=nT&&typeof nT.get=="function"?Gze([nT.get]):typeof Tte=="function"?function(r){return Tte(r==null?r:kte(r))}:!1});var K3=z((Rrr,Ete)=>{"use strict";var Lte=rT(),Cte=tT(),Dte=qte();Ete.exports=Lte?function(r){return Lte(r)}:Cte?function(r){if(!r||typeof r!="object"&&typeof r!="function")throw new TypeError("getProto: not an object");return Cte(r)}:Dte?function(r){return Dte(r)}:null});var iT=z((Frr,Pte)=>{"use strict";var Yze=Function.prototype.call,Vze=Object.prototype.hasOwnProperty,jze=pv();Pte.exports=jze.call(Yze,Vze)});var rb=z((zrr,Bte)=>{"use strict";var ut,Wze=j3(),Xze=Dre(),Zze=Pre(),$ze=Fre(),Jze=Nre(),bv=eT(),gv=dv(),Kze=Hre(),Qze=Gre(),eNe=Vre(),rNe=Wre(),tNe=Zre(),aNe=Jre(),nNe=Qre(),iNe=ate(),Nte=Function,oT=function(e){try{return Nte('"use strict"; return ('+e+").constructor;")()}catch(r){}},M2=Gf(),oNe=T2(),lT=function(){throw new gv},lNe=M2?(function(){try{return arguments.callee,lT}catch(e){try{return M2(arguments,"callee").get}catch(r){return lT}}})():lT,mv=fte()(),cn=K3(),sNe=tT(),uNe=rT(),Ite=$3(),k2=Z3(),yv={},fNe=typeof Uint8Array=="undefined"||!cn?ut:cn(Uint8Array),Yf={__proto__:null,"%AggregateError%":typeof AggregateError=="undefined"?ut:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?ut:ArrayBuffer,"%ArrayIteratorPrototype%":mv&&cn?cn([][Symbol.iterator]()):ut,"%AsyncFromSyncIteratorPrototype%":ut,"%AsyncFunction%":yv,"%AsyncGenerator%":yv,"%AsyncGeneratorFunction%":yv,"%AsyncIteratorPrototype%":yv,"%Atomics%":typeof Atomics=="undefined"?ut:Atomics,"%BigInt%":typeof BigInt=="undefined"?ut:BigInt,"%BigInt64Array%":typeof BigInt64Array=="undefined"?ut:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array=="undefined"?ut:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView=="undefined"?ut:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Xze,"%eval%":eval,"%EvalError%":Zze,"%Float16Array%":typeof Float16Array=="undefined"?ut:Float16Array,"%Float32Array%":typeof Float32Array=="undefined"?ut:Float32Array,"%Float64Array%":typeof Float64Array=="undefined"?ut:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry=="undefined"?ut:FinalizationRegistry,"%Function%":Nte,"%GeneratorFunction%":yv,"%Int8Array%":typeof Int8Array=="undefined"?ut:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?ut:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?ut:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":mv&&cn?cn(cn([][Symbol.iterator]())):ut,"%JSON%":typeof JSON=="object"?JSON:ut,"%Map%":typeof Map=="undefined"?ut:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!mv||!cn?ut:cn(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Wze,"%Object.getOwnPropertyDescriptor%":M2,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?ut:Promise,"%Proxy%":typeof Proxy=="undefined"?ut:Proxy,"%RangeError%":$ze,"%ReferenceError%":Jze,"%Reflect%":typeof Reflect=="undefined"?ut:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set=="undefined"?ut:Set,"%SetIteratorPrototype%":typeof Set=="undefined"||!mv||!cn?ut:cn(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?ut:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":mv&&cn?cn(""[Symbol.iterator]()):ut,"%Symbol%":mv?Symbol:ut,"%SyntaxError%":bv,"%ThrowTypeError%":lNe,"%TypedArray%":fNe,"%TypeError%":gv,"%Uint8Array%":typeof Uint8Array=="undefined"?ut:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray=="undefined"?ut:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array=="undefined"?ut:Uint16Array,"%Uint32Array%":typeof Uint32Array=="undefined"?ut:Uint32Array,"%URIError%":Kze,"%WeakMap%":typeof WeakMap=="undefined"?ut:WeakMap,"%WeakRef%":typeof WeakRef=="undefined"?ut:WeakRef,"%WeakSet%":typeof WeakSet=="undefined"?ut:WeakSet,"%Function.prototype.call%":k2,"%Function.prototype.apply%":Ite,"%Object.defineProperty%":oNe,"%Object.getPrototypeOf%":sNe,"%Math.abs%":Qze,"%Math.floor%":eNe,"%Math.max%":rNe,"%Math.min%":tNe,"%Math.pow%":aNe,"%Math.round%":nNe,"%Math.sign%":iNe,"%Reflect.getPrototypeOf%":uNe};if(cn)try{null.error}catch(e){Rte=cn(cn(e)),Yf["%Error.prototype%"]=Rte}var Rte,cNe=function e(r){var t;if(r==="%AsyncFunction%")t=oT("async function () {}");else if(r==="%GeneratorFunction%")t=oT("function* () {}");else if(r==="%AsyncGeneratorFunction%")t=oT("async function* () {}");else if(r==="%AsyncGenerator%"){var a=e("%AsyncGeneratorFunction%");a&&(t=a.prototype)}else if(r==="%AsyncIteratorPrototype%"){var n=e("%AsyncGenerator%");n&&cn&&(t=cn(n.prototype))}return Yf[r]=t,t},Fte={__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"]},S2=pv(),Q3=iT(),vNe=S2.call(k2,Array.prototype.concat),hNe=S2.call(Ite,Array.prototype.splice),zte=S2.call(k2,String.prototype.replace),eb=S2.call(k2,String.prototype.slice),dNe=S2.call(k2,RegExp.prototype.exec),pNe=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,mNe=/\\(\\)?/g,yNe=function(r){var t=eb(r,0,1),a=eb(r,-1);if(t==="%"&&a!=="%")throw new bv("invalid intrinsic syntax, expected closing `%`");if(a==="%"&&t!=="%")throw new bv("invalid intrinsic syntax, expected opening `%`");var n=[];return zte(r,pNe,function(i,o,l,s){n[n.length]=l?zte(s,mNe,"$1"):o||i}),n},gNe=function(r,t){var a=r,n;if(Q3(Fte,a)&&(n=Fte[a],a="%"+n[0]+"%"),Q3(Yf,a)){var i=Yf[a];if(i===yv&&(i=cNe(a)),typeof i=="undefined"&&!t)throw new gv("intrinsic "+r+" exists, but is not available. Please file an issue!");return{alias:n,name:a,value:i}}throw new bv("intrinsic "+r+" does not exist!")};Bte.exports=function(r,t){if(typeof r!="string"||r.length===0)throw new gv("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof t!="boolean")throw new gv('"allowMissing" argument must be a boolean');if(dNe(/^%?[^%]*%?$/,r)===null)throw new bv("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var a=yNe(r),n=a.length>0?a[0]:"",i=gNe("%"+n+"%",t),o=i.name,l=i.value,s=!1,u=i.alias;u&&(n=u[0],hNe(a,vNe([0,1],u)));for(var f=1,c=!0;f=a.length){var y=M2(l,v);c=!!y,c&&"get"in y&&!("originalValue"in y.get)?l=y.get:l=l[v]}else c=Q3(l,v),l=l[v];c&&!s&&(Yf[o]=l)}}return l}});var Vf=z((Nrr,Ute)=>{"use strict";var Ote=rb(),Hte=J3(),bNe=Hte([Ote("%String.prototype.indexOf%")]);Ute.exports=function(r,t){var a=Ote(r,!!t);return typeof a=="function"&&bNe(r,".prototype.")>-1?Hte([a]):a}});var Vte=z((Irr,Yte)=>{"use strict";var xNe=A2()(),_Ne=Vf(),sT=_Ne("Object.prototype.toString"),tb=function(r){return xNe&&r&&typeof r=="object"&&Symbol.toStringTag in r?!1:sT(r)==="[object Arguments]"},Gte=function(r){return tb(r)?!0:r!==null&&typeof r=="object"&&"length"in r&&typeof r.length=="number"&&r.length>=0&&sT(r)!=="[object Array]"&&"callee"in r&&sT(r.callee)==="[object Function]"},wNe=(function(){return tb(arguments)})();tb.isLegacyArguments=Gte;Yte.exports=wNe?tb:Gte});var Jte=z((Brr,$te)=>{"use strict";var jte=Vf(),ANe=A2()(),TNe=iT(),MNe=Gf(),cT;ANe?(Wte=jte("RegExp.prototype.exec"),uT={},ab=function(){throw uT},fT={toString:ab,valueOf:ab},typeof Symbol.toPrimitive=="symbol"&&(fT[Symbol.toPrimitive]=ab),cT=function(r){if(!r||typeof r!="object")return!1;var t=MNe(r,"lastIndex"),a=t&&TNe(t,"value");if(!a)return!1;try{Wte(r,fT)}catch(n){return n===uT}}):(Xte=jte("Object.prototype.toString"),Zte="[object RegExp]",cT=function(r){return!r||typeof r!="object"&&typeof r!="function"?!1:Xte(r)===Zte});var Wte,uT,ab,fT,Xte,Zte;$te.exports=cT});var Qte=z((Orr,Kte)=>{"use strict";var kNe=Vf(),SNe=Jte(),qNe=kNe("RegExp.prototype.exec"),LNe=dv();Kte.exports=function(r){if(!SNe(r))throw new LNe("`regex` must be a RegExp");return function(a){return qNe(r,a)!==null}}});var rae=z((Hrr,eae)=>{"use strict";var CNe=function*(){}.constructor;eae.exports=()=>CNe});var iae=z((Urr,nae)=>{"use strict";var aae=Vf(),DNe=Qte(),ENe=DNe(/^\s*(?:function)?\*/),PNe=A2()(),tae=K3(),RNe=aae("Object.prototype.toString"),FNe=aae("Function.prototype.toString"),zNe=rae();nae.exports=function(r){if(typeof r!="function")return!1;if(ENe(FNe(r)))return!0;if(!PNe){var t=RNe(r);return t==="[object GeneratorFunction]"}if(!tae)return!1;var a=zNe();return a&&tae(r)===a.prototype}});var uae=z((Grr,sae)=>{"use strict";var lae=Function.prototype.toString,xv=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,hT,nb;if(typeof xv=="function"&&typeof Object.defineProperty=="function")try{hT=Object.defineProperty({},"length",{get:function(){throw nb}}),nb={},xv(function(){throw 42},null,hT)}catch(e){e!==nb&&(xv=null)}else xv=null;var NNe=/^\s*class\b/,dT=function(r){try{var t=lae.call(r);return NNe.test(t)}catch(a){return!1}},vT=function(r){try{return dT(r)?!1:(lae.call(r),!0)}catch(t){return!1}},ib=Object.prototype.toString,INe="[object Object]",BNe="[object Function]",ONe="[object GeneratorFunction]",HNe="[object HTMLAllCollection]",UNe="[object HTML document.all class]",GNe="[object HTMLCollection]",YNe=typeof Symbol=="function"&&!!Symbol.toStringTag,VNe=!(0 in[,]),pT=function(){return!1};typeof document=="object"&&(oae=document.all,ib.call(oae)===ib.call(document.all)&&(pT=function(r){if((VNe||!r)&&(typeof r=="undefined"||typeof r=="object"))try{var t=ib.call(r);return(t===HNe||t===UNe||t===GNe||t===INe)&&r("")==null}catch(a){}return!1}));var oae;sae.exports=xv?function(r){if(pT(r))return!0;if(!r||typeof r!="function"&&typeof r!="object")return!1;try{xv(r,null,hT)}catch(t){if(t!==nb)return!1}return!dT(r)&&vT(r)}:function(r){if(pT(r))return!0;if(!r||typeof r!="function"&&typeof r!="object")return!1;if(YNe)return vT(r);if(dT(r))return!1;var t=ib.call(r);return t!==BNe&&t!==ONe&&!/^\[object HTML/.test(t)?!1:vT(r)}});var vae=z((Yrr,cae)=>{"use strict";var jNe=uae(),WNe=Object.prototype.toString,fae=Object.prototype.hasOwnProperty,XNe=function(r,t,a){for(var n=0,i=r.length;n=3&&(n=a),JNe(r)?XNe(r,t,n):typeof r=="string"?ZNe(r,t,n):$Ne(r,t,n)}});var dae=z((Vrr,hae)=>{"use strict";hae.exports=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]});var mae=z((jrr,pae)=>{"use strict";var mT=dae(),KNe=typeof globalThis=="undefined"?window:globalThis;pae.exports=function(){for(var r=[],t=0;t{"use strict";var yae=T2(),QNe=eT(),_v=dv(),gae=Gf();bae.exports=function(r,t,a){if(!r||typeof r!="object"&&typeof r!="function")throw new _v("`obj` must be an object or a function`");if(typeof t!="string"&&typeof t!="symbol")throw new _v("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new _v("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new _v("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new _v("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new _v("`loose`, if provided, must be a boolean");var n=arguments.length>3?arguments[3]:null,i=arguments.length>4?arguments[4]:null,o=arguments.length>5?arguments[5]:null,l=arguments.length>6?arguments[6]:!1,s=!!gae&&gae(r,t);if(yae)yae(r,t,{configurable:o===null&&s?s.configurable:!o,enumerable:n===null&&s?s.enumerable:!n,value:a,writable:i===null&&s?s.writable:!i});else if(l||!n&&!i&&!o)r[t]=a;else throw new QNe("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}});var bT=z((Xrr,_ae)=>{"use strict";var gT=T2(),xae=function(){return!!gT};xae.hasArrayLengthDefineBug=function(){if(!gT)return null;try{return gT([],"length",{value:1}).length!==1}catch(r){return!0}};_ae.exports=xae});var kae=z((Zrr,Mae)=>{"use strict";var eIe=rb(),wae=yT(),rIe=bT()(),Aae=Gf(),Tae=dv(),tIe=eIe("%Math.floor%");Mae.exports=function(r,t){if(typeof r!="function")throw new Tae("`fn` is not a function");if(typeof t!="number"||t<0||t>4294967295||tIe(t)!==t)throw new Tae("`length` must be a positive 32-bit integer");var a=arguments.length>2&&!!arguments[2],n=!0,i=!0;if("length"in r&&Aae){var o=Aae(r,"length");o&&!o.configurable&&(n=!1),o&&!o.writable&&(i=!1)}return(n||i||!a)&&(rIe?wae(r,"length",t,!0,!0):wae(r,"length",t)),r}});var qae=z(($rr,Sae)=>{"use strict";var aIe=pv(),nIe=$3(),iIe=aT();Sae.exports=function(){return iIe(aIe,nIe,arguments)}});var q2=z((Jrr,ob)=>{"use strict";var oIe=kae(),Lae=T2(),lIe=J3(),Cae=qae();ob.exports=function(r){var t=lIe(arguments),a=1+r.length-(arguments.length-1);return oIe(t,a>0?a:0,!0)};Lae?Lae(ob.exports,"apply",{value:Cae}):ob.exports.apply=Cae});var AT=z((Krr,Rae)=>{"use strict";var ub=vae(),sIe=mae(),Dae=q2(),_T=Vf(),sb=Gf(),lb=K3(),uIe=_T("Object.prototype.toString"),Pae=A2()(),Eae=typeof globalThis=="undefined"?window:globalThis,xT=sIe(),wT=_T("String.prototype.slice"),fIe=_T("Array.prototype.indexOf",!0)||function(r,t){for(var a=0;a-1}function dIe(e){if(!e||typeof e!="object")return!1;if(!Pae){var r=wT(uIe(e),8,-1);return hIe(r)?r:r!=="Object"?!1:vIe(e)}return sb?cIe(e):null}Rae.exports=dIe});var zae=z((Qrr,Fae)=>{"use strict";var pIe=AT();Fae.exports=function(r){return!!pIe(r)}});var kT=z(ft=>{"use strict";var mIe=Vte(),yIe=iae(),Zo=AT(),Nae=zae();function wv(e){return e.call.bind(e)}var Iae=typeof BigInt!="undefined",Bae=typeof Symbol!="undefined",mo=wv(Object.prototype.toString),gIe=wv(Number.prototype.valueOf),bIe=wv(String.prototype.valueOf),xIe=wv(Boolean.prototype.valueOf);Iae&&(Oae=wv(BigInt.prototype.valueOf));var Oae;Bae&&(Hae=wv(Symbol.prototype.valueOf));var Hae;function C2(e,r){if(typeof e!="object")return!1;try{return r(e),!0}catch(t){return!1}}ft.isArgumentsObject=mIe;ft.isGeneratorFunction=yIe;ft.isTypedArray=Nae;function _Ie(e){return typeof Promise!="undefined"&&e instanceof Promise||e!==null&&typeof e=="object"&&typeof e.then=="function"&&typeof e.catch=="function"}ft.isPromise=_Ie;function wIe(e){return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?ArrayBuffer.isView(e):Nae(e)||Gae(e)}ft.isArrayBufferView=wIe;function AIe(e){return Zo(e)==="Uint8Array"}ft.isUint8Array=AIe;function TIe(e){return Zo(e)==="Uint8ClampedArray"}ft.isUint8ClampedArray=TIe;function MIe(e){return Zo(e)==="Uint16Array"}ft.isUint16Array=MIe;function kIe(e){return Zo(e)==="Uint32Array"}ft.isUint32Array=kIe;function SIe(e){return Zo(e)==="Int8Array"}ft.isInt8Array=SIe;function qIe(e){return Zo(e)==="Int16Array"}ft.isInt16Array=qIe;function LIe(e){return Zo(e)==="Int32Array"}ft.isInt32Array=LIe;function CIe(e){return Zo(e)==="Float32Array"}ft.isFloat32Array=CIe;function DIe(e){return Zo(e)==="Float64Array"}ft.isFloat64Array=DIe;function EIe(e){return Zo(e)==="BigInt64Array"}ft.isBigInt64Array=EIe;function PIe(e){return Zo(e)==="BigUint64Array"}ft.isBigUint64Array=PIe;function cb(e){return mo(e)==="[object Map]"}cb.working=typeof Map!="undefined"&&cb(new Map);function RIe(e){return typeof Map=="undefined"?!1:cb.working?cb(e):e instanceof Map}ft.isMap=RIe;function vb(e){return mo(e)==="[object Set]"}vb.working=typeof Set!="undefined"&&vb(new Set);function FIe(e){return typeof Set=="undefined"?!1:vb.working?vb(e):e instanceof Set}ft.isSet=FIe;function hb(e){return mo(e)==="[object WeakMap]"}hb.working=typeof WeakMap!="undefined"&&hb(new WeakMap);function zIe(e){return typeof WeakMap=="undefined"?!1:hb.working?hb(e):e instanceof WeakMap}ft.isWeakMap=zIe;function MT(e){return mo(e)==="[object WeakSet]"}MT.working=typeof WeakSet!="undefined"&&MT(new WeakSet);function NIe(e){return MT(e)}ft.isWeakSet=NIe;function db(e){return mo(e)==="[object ArrayBuffer]"}db.working=typeof ArrayBuffer!="undefined"&&db(new ArrayBuffer);function Uae(e){return typeof ArrayBuffer=="undefined"?!1:db.working?db(e):e instanceof ArrayBuffer}ft.isArrayBuffer=Uae;function pb(e){return mo(e)==="[object DataView]"}pb.working=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"&&pb(new DataView(new ArrayBuffer(1),0,1));function Gae(e){return typeof DataView=="undefined"?!1:pb.working?pb(e):e instanceof DataView}ft.isDataView=Gae;var TT=typeof SharedArrayBuffer!="undefined"?SharedArrayBuffer:void 0;function L2(e){return mo(e)==="[object SharedArrayBuffer]"}function Yae(e){return typeof TT=="undefined"?!1:(typeof L2.working=="undefined"&&(L2.working=L2(new TT)),L2.working?L2(e):e instanceof TT)}ft.isSharedArrayBuffer=Yae;function IIe(e){return mo(e)==="[object AsyncFunction]"}ft.isAsyncFunction=IIe;function BIe(e){return mo(e)==="[object Map Iterator]"}ft.isMapIterator=BIe;function OIe(e){return mo(e)==="[object Set Iterator]"}ft.isSetIterator=OIe;function HIe(e){return mo(e)==="[object Generator]"}ft.isGeneratorObject=HIe;function UIe(e){return mo(e)==="[object WebAssembly.Module]"}ft.isWebAssemblyCompiledModule=UIe;function Vae(e){return C2(e,gIe)}ft.isNumberObject=Vae;function jae(e){return C2(e,bIe)}ft.isStringObject=jae;function Wae(e){return C2(e,xIe)}ft.isBooleanObject=Wae;function Xae(e){return Iae&&C2(e,Oae)}ft.isBigIntObject=Xae;function Zae(e){return Bae&&C2(e,Hae)}ft.isSymbolObject=Zae;function GIe(e){return Vae(e)||jae(e)||Wae(e)||Xae(e)||Zae(e)}ft.isBoxedPrimitive=GIe;function YIe(e){return typeof Uint8Array!="undefined"&&(Uae(e)||Yae(e))}ft.isAnyArrayBuffer=YIe;["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(e){Object.defineProperty(ft,e,{enumerable:!1,value:function(){throw new Error(e+" is not supported in userland")}})})});var ST=z((rtr,$ae)=>{$ae.exports=function(r){return r&&typeof r=="object"&&typeof r.copy=="function"&&typeof r.fill=="function"&&typeof r.readUInt8=="function"}});var PT=z(ct=>{var Jae=Object.getOwnPropertyDescriptors||function(r){for(var t=Object.keys(r),a={},n=0;n=n)return l;switch(l){case"%s":return String(a[t++]);case"%d":return Number(a[t++]);case"%j":try{return JSON.stringify(a[t++])}catch(s){return"[Circular]"}default:return l}}),o=a[t];t=3&&(t.depth=arguments[2]),arguments.length>=4&&(t.colors=arguments[3]),DT(r)?t.showHidden=r:r&&ct._extend(t,r),Wf(t.showHidden)&&(t.showHidden=!1),Wf(t.depth)&&(t.depth=2),Wf(t.colors)&&(t.colors=!1),Wf(t.customInspect)&&(t.customInspect=!0),t.colors&&(t.stylize=jIe),bb(t,e,t.depth)}ct.inspect=lu;lu.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]};lu.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function jIe(e,r){var t=lu.styles[r];return t?"\x1B["+lu.colors[t][0]+"m"+e+"\x1B["+lu.colors[t][1]+"m":e}function WIe(e,r){return e}function XIe(e){var r={};return e.forEach(function(t,a){r[t]=!0}),r}function bb(e,r,t){if(e.customInspect&&r&&gb(r.inspect)&&r.inspect!==ct.inspect&&!(r.constructor&&r.constructor.prototype===r)){var a=r.inspect(t,e);return wb(a)||(a=bb(e,a,t)),a}var n=ZIe(e,r);if(n)return n;var i=Object.keys(r),o=XIe(i);if(e.showHidden&&(i=Object.getOwnPropertyNames(r)),E2(r)&&(i.indexOf("message")>=0||i.indexOf("description")>=0))return qT(r);if(i.length===0){if(gb(r)){var l=r.name?": "+r.name:"";return e.stylize("[Function"+l+"]","special")}if(D2(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(xb(r))return e.stylize(Date.prototype.toString.call(r),"date");if(E2(r))return qT(r)}var s="",u=!1,f=["{","}"];if(Qae(r)&&(u=!0,f=["[","]"]),gb(r)){var c=r.name?": "+r.name:"";s=" [Function"+c+"]"}if(D2(r)&&(s=" "+RegExp.prototype.toString.call(r)),xb(r)&&(s=" "+Date.prototype.toUTCString.call(r)),E2(r)&&(s=" "+qT(r)),i.length===0&&(!u||r.length==0))return f[0]+s+f[1];if(t<0)return D2(r)?e.stylize(RegExp.prototype.toString.call(r),"regexp"):e.stylize("[Object]","special");e.seen.push(r);var v;return u?v=$Ie(e,r,t,o,i):v=i.map(function(d){return CT(e,r,t,o,d,u)}),e.seen.pop(),JIe(v,s,f)}function ZIe(e,r){if(Wf(r))return e.stylize("undefined","undefined");if(wb(r)){var t="'"+JSON.stringify(r).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(t,"string")}if(ene(r))return e.stylize(""+r,"number");if(DT(r))return e.stylize(""+r,"boolean");if(_b(r))return e.stylize("null","null")}function qT(e){return"["+Error.prototype.toString.call(e)+"]"}function $Ie(e,r,t,a,n){for(var i=[],o=0,l=r.length;o4)){if(t.length===4){if(t[3].type!==dr.Alpha)return;t[3]=t[3].value}return t.length===3&&t.push({type:dr.None,value:void 0}),t.every(n=>n.type!==dr.Alpha)?t:void 0}}function Mve(e,r){e._i=0;let t=e[e._i++];if(!t||t.type!==dr.Function)return;let a=Vq(e,r);if(a)return a.unshift(t.value),a}var kve=e=>{if(typeof e!="string")return;let r=Tve(e),t=r?Mve(r,!0):void 0,a,n=0,i=Dc.length;for(;ne==="transparent"?{mode:"rgb",r:0,g:0,b:0,alpha:0}:void 0,Xq=qve,Iu=(e,r,t)=>e+t*(r-e),Lve=(e,r,t)=>(t-e)/(r-e),X5=(e,r,t,a,n,i)=>Iu(Iu(e,r,n),Iu(t,a,n),i),Cve=(e,r,t,a,n,i,o,l,s,u,f)=>Iu(X5(e,r,t,a,s,u),X5(n,i,o,l,s,u),f),Dve=e=>{let r=[];for(let t=0;tr=>{let t=Dve(r);return a=>{let n=a*t.length,i=a>=1?t.length-1:Math.max(Math.floor(n),0),o=t[i];return o===void 0?void 0:e(o[0],o[1],n-i)}},wr=Zq(Iu),Va=e=>{let r=!1,t=e.map(a=>a!==void 0?(r=!0,a):1);return r?t:e},Eve={mode:"rgb",channels:["r","g","b","alpha"],parse:[Wq,Hq,Uq,Oq,Xq,"srgb"],serialize:"srgb",interpolate:{r:wr,g:wr,b:wr,alpha:{use:wr,fixup:Va}},gamut:!0,white:{r:1,g:1,b:1},black:{r:0,g:0,b:0}},Hu=Eve,T5=(e=0)=>Math.pow(Math.abs(e),563/256)*Math.sign(e),Pve=e=>{let r=T5(e.r),t=T5(e.g),a=T5(e.b),n={mode:"xyz65",x:.5766690429101305*r+.1855582379065463*t+.1882286462349947*a,y:.297344975250536*r+.6273635662554661*t+.0752914584939979*a,z:.0270313613864123*r+.0706888525358272*t+.9913375368376386*a};return e.alpha!==void 0&&(n.alpha=e.alpha),n},Z5=Pve,A5=e=>Math.pow(Math.abs(e),256/563)*Math.sign(e),Rve=({x:e,y:r,z:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n={mode:"a98",r:A5(e*2.0415879038107465-r*.5650069742788597-.3447313507783297*t),g:A5(e*-.9692436362808798+r*1.8759675015077206+.0415550574071756*t),b:A5(e*.0134442806320312-r*.1183623922310184+1.0151749943912058*t)};return a!==void 0&&(n.alpha=a),n},$5=Rve,M5=(e=0)=>{let r=Math.abs(e);return r<=.04045?e/12.92:(Math.sign(e)||1)*Math.pow((r+.055)/1.055,2.4)},Fve=({r:e,g:r,b:t,alpha:a})=>{let n={mode:"lrgb",r:M5(e),g:M5(r),b:M5(t)};return a!==void 0&&(n.alpha=a),n},Uu=Fve,zve=e=>{let{r,g:t,b:a,alpha:n}=Uu(e),i={mode:"xyz65",x:.4123907992659593*r+.357584339383878*t+.1804807884018343*a,y:.2126390058715102*r+.715168678767756*t+.0721923153607337*a,z:.0193308187155918*r+.119194779794626*t+.9505321522496607*a};return n!==void 0&&(i.alpha=n),i},ws=zve,k5=(e=0)=>{let r=Math.abs(e);return r>.0031308?(Math.sign(e)||1)*(1.055*Math.pow(r,1/2.4)-.055):e*12.92},Nve=({r:e,g:r,b:t,alpha:a},n="rgb")=>{let i={mode:n,r:k5(e),g:k5(r),b:k5(t)};return a!==void 0&&(i.alpha=a),i},Gu=Nve,Ive=({x:e,y:r,z:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=Gu({r:e*3.2409699419045226-r*1.537383177570094-.4986107602930034*t,g:e*-.9692436362808796+r*1.8759675015077204+.0415550574071756*t,b:e*.0556300796969936-r*.2039769588889765+1.0569715142428784*t});return a!==void 0&&(n.alpha=a),n},Ts=Ive,Bve=Jt(At({},Hu),{mode:"a98",parse:["a98-rgb"],serialize:"a98-rgb",fromMode:{rgb:e=>$5(ws(e)),xyz65:$5},toMode:{rgb:e=>Ts(Z5(e)),xyz65:Z5}}),$q=Bve,Ove=e=>(e=e%360)<0?e+360:e,yn=Ove,lp=(e,r)=>e.map((t,a,n)=>{if(t===void 0)return t;let i=yn(t);return a===0||e[a-1]===void 0?i:r(i-yn(n[a-1]))}).reduce((t,a)=>!t.length||a===void 0||t[t.length-1]===void 0?(t.push(a),t):(t.push(a+t[t.length-1]),t),[]),ol=e=>lp(e,r=>Math.abs(r)<=180?r:r-360*Math.sign(r)),Hve=e=>lp(e,r=>Math.abs(r)>=180||r===0?r:r-360*Math.sign(r)),Uve=e=>lp(e,r=>r>=0?r:r+360),Gve=e=>lp(e,r=>r<=0?r:r-360),ln=[-.14861,1.78277,-.29227,-.90649,1.97294,0],Yve=Math.PI/180,Vve=180/Math.PI,qq=ln[3]*ln[4],Lq=ln[1]*ln[4],Cq=ln[1]*ln[2]-ln[0]*ln[3],jve=({r:e,g:r,b:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=(Cq*t+e*qq-r*Lq)/(Cq+qq-Lq),i=t-n,o=(ln[4]*(r-n)-ln[2]*i)/ln[3],l={mode:"cubehelix",l:n,s:n===0||n===1?void 0:Math.sqrt(i*i+o*o)/(ln[4]*n*(1-n))};return l.s&&(l.h=Math.atan2(o,i)*Vve-120),a!==void 0&&(l.alpha=a),l},Jq=jve,Wve=({h:e,s:r,l:t,alpha:a})=>{let n={mode:"rgb"};e=(e===void 0?0:e+120)*Yve,t===void 0&&(t=0);let i=r===void 0?0:r*t*(1-t),o=Math.cos(e),l=Math.sin(e);return n.r=t+i*(ln[0]*o+ln[1]*l),n.g=t+i*(ln[2]*o+ln[3]*l),n.b=t+i*(ln[4]*o+ln[5]*l),a!==void 0&&(n.alpha=a),n},Kq=Wve,ch=(e,r)=>{if(e.h===void 0||r.h===void 0||!e.s||!r.s)return 0;let t=yn(e.h),a=yn(r.h),n=Math.sin((a-t+360)/2*Math.PI/180);return 2*Math.sqrt(e.s*r.s)*n},Qq=(e,r)=>{if(e.h===void 0||r.h===void 0)return 0;let t=yn(e.h),a=yn(r.h);return Math.abs(a-t)>180?t-(a-360*Math.sign(a-t)):a-t},vh=(e,r)=>{if(e.h===void 0||r.h===void 0||!e.c||!r.c)return 0;let t=yn(e.h),a=yn(r.h),n=Math.sin((a-t+360)/2*Math.PI/180);return 2*Math.sqrt(e.c*r.c)*n},Ec=(e="rgb",r=[1,1,1,0])=>{let t=Sn(e),a=t.channels,n=t.difference,i=Yt(e);return(o,l)=>{let s=i(o),u=i(l);return Math.sqrt(a.reduce((f,c,v)=>{let d=n[c]?n[c](s,u):s[c]-u[c];return f+(r[v]||0)*Math.pow(isNaN(d)?0:d,2)},0))}},Xve=()=>Ec("lab65"),Zve=(e=1,r=.045,t=.015)=>{let a=Yt("lab65");return(n,i)=>{let o=a(n),l=a(i),s=o.l,u=o.a,f=o.b,c=Math.sqrt(u*u+f*f),v=l.l,d=l.a,p=l.b,m=Math.sqrt(d*d+p*p),y=Math.pow(s-v,2),b=Math.pow(c-m,2),T=Math.pow(u-d,2)+Math.pow(f-p,2)-b;return Math.sqrt(y/Math.pow(e,2)+b/Math.pow(1+r*c,2)+T/Math.pow(1+t*c,2))}},$ve=(e=1,r=1,t=1)=>{let a=Yt("lab65");return(n,i)=>{let o=a(n),l=a(i),s=o.l,u=o.a,f=o.b,c=Math.sqrt(u*u+f*f),v=l.l,d=l.a,p=l.b,m=Math.sqrt(d*d+p*p),y=(c+m)/2,b=.5*(1-Math.sqrt(Math.pow(y,7)/(Math.pow(y,7)+Math.pow(25,7)))),T=u*(1+b),w=d*(1+b),x=Math.sqrt(T*T+f*f),_=Math.sqrt(w*w+p*p),k=Math.abs(T)+Math.abs(f)===0?0:Math.atan2(f,T);k+=(k<0)*2*Math.PI;let M=Math.abs(w)+Math.abs(p)===0?0:Math.atan2(p,w);M+=(M<0)*2*Math.PI;let S=v-s,C=_-x,E=x*_===0?0:M-k;E-=(E>Math.PI)*2*Math.PI,E+=(E<-Math.PI)*2*Math.PI;let P=2*Math.sqrt(x*_)*Math.sin(E/2),R=(s+v)/2,I=(x+_)/2,B;x*_===0?B=k+M:(B=(k+M)/2,B-=(Math.abs(k-M)>Math.PI)*Math.PI,B+=(B<0)*2*Math.PI);let N=Math.pow(R-50,2),U=1-.17*Math.cos(B-Math.PI/6)+.24*Math.cos(2*B)+.32*Math.cos(3*B+Math.PI/30)-.2*Math.cos(4*B-63*Math.PI/180),G=1+.015*N/Math.sqrt(20+N),V=1+.045*I,j=1+.015*I*U,W=30*Math.PI/180*Math.exp(-1*Math.pow((180/Math.PI*B-275)/25,2)),Y=2*Math.sqrt(Math.pow(I,7)/(Math.pow(I,7)+Math.pow(25,7))),J=-1*Math.sin(2*W)*Y;return Math.sqrt(Math.pow(S/(e*G),2)+Math.pow(C/(r*V),2)+Math.pow(P/(t*j),2)+J*C/(r*V)*P/(t*j))}},Jve=(e=1,r=1)=>{let t=Yt("lab65");return(a,n)=>{let i=t(a),o=i.l,l=i.a,s=i.b,u=Math.sqrt(l*l+s*s),f=Math.atan2(s,l);f=f+2*Math.PI*(f<0);let c=t(n),v=c.l,d=c.a,p=c.b,m=Math.sqrt(d*d+p*p),y=Math.pow(o-v,2),b=Math.pow(u-m,2),T=Math.pow(l-d,2)+Math.pow(s-p,2)-b,w=Math.sqrt(Math.pow(u,4)/(Math.pow(u,4)+1900)),x=f>=164/180*Math.PI&&f<=345/180*Math.PI?.56+Math.abs(.2*Math.cos(f+168/180*Math.PI)):.36+Math.abs(.4*Math.cos(f+35/180*Math.PI)),_=o<16?.511:.040975*o/(1+.01765*o),k=.0638*u/(1+.0131*u)+.638,M=k*(w*x+1-w);return Math.sqrt(y/Math.pow(e*_,2)+b/Math.pow(r*k,2)+T/Math.pow(M,2))}},Kve=()=>{let e=Yt("lab65");return(r,t)=>{let a=e(r),n=e(t),i=a.l-n.l,o=a.a-n.a,l=a.b-n.b;return Math.abs(i)+Math.sqrt(o*o+l*l)}},Qve=()=>Ec("yiq",[.5053,.299,.1957]),ehe=()=>Ec("itp",[518400,129600,518400]),ll=e=>{let r=e.reduce((a,n)=>{if(n!==void 0){let i=n*Math.PI/180;a.sin+=Math.sin(i),a.cos+=Math.cos(i)}return a},{sin:0,cos:0}),t=Math.atan2(r.sin,r.cos)*180/Math.PI;return t<0?360+t:t},eL=e=>{let r=e.filter(t=>t!==void 0);return r.length?r.reduce((t,a)=>t+a,0)/r.length:void 0},S5=e=>typeof e=="function";function rhe(e,r="rgb",t){let a=Sn(r),n=e.map(Yt(r));return a.channels.reduce((i,o)=>{let l=n.map(s=>s[o]).filter(s=>s!==void 0);if(l.length){let s;S5(t)?s=t:t&&S5(t[o])?s=t[o]:a.average&&S5(a.average[o])?s=a.average[o]:s=eL,i[o]=s(l,o)}return i},{mode:r})}var the={mode:"cubehelix",channels:["h","s","l","alpha"],parse:["--cubehelix"],serialize:"--cubehelix",ranges:{h:[0,360],s:[0,4.614],l:[0,1]},fromMode:{rgb:Jq},toMode:{rgb:Kq},interpolate:{h:{use:wr,fixup:ol},s:wr,l:wr,alpha:{use:wr,fixup:Va}},difference:{h:ch},average:{h:ll}},rL=the,ahe=({l:e,a:r,b:t,alpha:a},n="lch")=>{r===void 0&&(r=0),t===void 0&&(t=0);let i=Math.sqrt(r*r+t*t),o={mode:n,l:e,c:i};return i&&(o.h=yn(Math.atan2(t,r)*180/Math.PI)),a!==void 0&&(o.alpha=a),o},Il=ahe,nhe=({l:e,c:r,h:t,alpha:a},n="lab")=>{t===void 0&&(t=0);let i={mode:n,l:e,a:r?r*Math.cos(t/180*Math.PI):0,b:r?r*Math.sin(t/180*Math.PI):0};return a!==void 0&&(i.alpha=a),i},Bl=nhe,tL=Math.pow(29,3)/Math.pow(3,3),aL=Math.pow(6,3)/Math.pow(29,3),Ya={X:.3457/.3585,Y:1,Z:(1-.3457-.3585)/.3585},Lc={X:.3127/.329,Y:1,Z:(1-.3127-.329)/.329},Nje=Math.pow(29,3)/Math.pow(3,3),Ije=Math.pow(6,3)/Math.pow(29,3),q5=e=>Math.pow(e,3)>aL?Math.pow(e,3):(116*e-16)/tL,ihe=({l:e,a:r,b:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=(e+16)/116,i=r/500+n,o=n-t/200,l={mode:"xyz65",x:q5(i)*Lc.X,y:q5(n)*Lc.Y,z:q5(o)*Lc.Z};return a!==void 0&&(l.alpha=a),l},y_=ihe,ohe=e=>Ts(y_(e)),hh=ohe,L5=e=>e>aL?Math.cbrt(e):(tL*e+16)/116,lhe=({x:e,y:r,z:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=L5(e/Lc.X),i=L5(r/Lc.Y),o=L5(t/Lc.Z),l={mode:"lab65",l:116*i-16,a:500*(n-i),b:200*(i-o)};return a!==void 0&&(l.alpha=a),l},g_=lhe,she=e=>{let r=g_(ws(e));return e.r===e.b&&e.b===e.g&&(r.a=r.b=0),r},dh=she,Q1=1,nL=1,fh=26/180*Math.PI,ep=Math.cos(fh),rp=Math.sin(fh),iL=100/Math.log(139/100),uhe=({l:e,c:r,h:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n={mode:"lab65",l:(Math.exp(e*Q1/iL)-1)/.0039},i=(Math.exp(.0435*r*nL*Q1)-1)/.075,o=i*Math.cos(t/180*Math.PI-fh),l=i*Math.sin(t/180*Math.PI-fh);return n.a=o*ep-l/.83*rp,n.b=o*rp+l/.83*ep,a!==void 0&&(n.alpha=a),n},tp=uhe,fhe=({l:e,a:r,b:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=r*ep+t*rp,i=.83*(t*ep-r*rp),o=Math.sqrt(n*n+i*i),l={mode:"dlch",l:iL/Q1*Math.log(1+.0039*e),c:Math.log(1+.075*o)/(.0435*nL*Q1)};return l.c&&(l.h=yn((Math.atan2(i,n)+fh)/Math.PI*180)),a!==void 0&&(l.alpha=a),l},ap=fhe,Dq=e=>tp(Il(e,"dlch")),Eq=e=>Bl(ap(e),"dlab"),che={mode:"dlab",parse:["--din99o-lab"],serialize:"--din99o-lab",toMode:{lab65:Dq,rgb:e=>hh(Dq(e))},fromMode:{lab65:Eq,rgb:e=>Eq(dh(e))},channels:["l","a","b","alpha"],ranges:{l:[0,100],a:[-40.09,45.501],b:[-40.469,44.344]},interpolate:{l:wr,a:wr,b:wr,alpha:{use:wr,fixup:Va}}},oL=che,vhe={mode:"dlch",parse:["--din99o-lch"],serialize:"--din99o-lch",toMode:{lab65:tp,dlab:e=>Bl(e,"dlab"),rgb:e=>hh(tp(e))},fromMode:{lab65:ap,dlab:e=>Il(e,"dlch"),rgb:e=>ap(dh(e))},channels:["l","c","h","alpha"],ranges:{l:[0,100],c:[0,51.484],h:[0,360]},interpolate:{l:wr,c:wr,h:{use:wr,fixup:ol},alpha:{use:wr,fixup:Va}},difference:{h:vh},average:{h:ll}},lL=vhe;function sL({h:e,s:r,i:t,alpha:a}){e=yn(e!==void 0?e:0),r===void 0&&(r=0),t===void 0&&(t=0);let n=Math.abs(e/60%2-1),i;switch(Math.floor(e/60)){case 0:i={r:t*(1+r*(3/(2-n)-1)),g:t*(1+r*(3*(1-n)/(2-n)-1)),b:t*(1-r)};break;case 1:i={r:t*(1+r*(3*(1-n)/(2-n)-1)),g:t*(1+r*(3/(2-n)-1)),b:t*(1-r)};break;case 2:i={r:t*(1-r),g:t*(1+r*(3/(2-n)-1)),b:t*(1+r*(3*(1-n)/(2-n)-1))};break;case 3:i={r:t*(1-r),g:t*(1+r*(3*(1-n)/(2-n)-1)),b:t*(1+r*(3/(2-n)-1))};break;case 4:i={r:t*(1+r*(3*(1-n)/(2-n)-1)),g:t*(1-r),b:t*(1+r*(3/(2-n)-1))};break;case 5:i={r:t*(1+r*(3/(2-n)-1)),g:t*(1-r),b:t*(1+r*(3*(1-n)/(2-n)-1))};break;default:i={r:t*(1-r),g:t*(1-r),b:t*(1-r)}}return i.mode="rgb",a!==void 0&&(i.alpha=a),i}function uL({r:e,g:r,b:t,alpha:a}){e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=Math.max(e,r,t),i=Math.min(e,r,t),o={mode:"hsi",s:e+r+t===0?0:1-3*i/(e+r+t),i:(e+r+t)/3};return n-i!==0&&(o.h=(n===e?(r-t)/(n-i)+(r{switch(r){case"deg":return+e;case"rad":return e/Math.PI*180;case"grad":return e/10*9;case"turn":return e*360}},phe=dhe,mhe=new RegExp(`^hsla?\\(\\s*${vve}${Cc}${sh}${Cc}${sh}\\s*(?:,\\s*${p_}\\s*)?\\)$`),yhe=e=>{let r=e.match(mhe);if(!r)return;let t={mode:"hsl"};return r[3]!==void 0?t.h=+r[3]:r[1]!==void 0&&r[2]!==void 0&&(t.h=phe(r[1],r[2])),r[4]!==void 0&&(t.s=Math.min(Math.max(0,r[4]/100),1)),r[5]!==void 0&&(t.l=Math.min(Math.max(0,r[5]/100),1)),r[6]!==void 0?t.alpha=Math.max(0,Math.min(1,r[6]/100)):r[7]!==void 0&&(t.alpha=Math.max(0,Math.min(1,+r[7]))),t},hL=yhe;function ghe(e,r){if(!r||r[0]!=="hsl"&&r[0]!=="hsla")return;let t={mode:"hsl"},[,a,n,i,o]=r;if(a.type!==dr.None){if(a.type===dr.Percentage)return;t.h=a.value}if(n.type!==dr.None){if(n.type===dr.Hue)return;t.s=n.value/100}if(i.type!==dr.None){if(i.type===dr.Hue)return;t.l=i.value/100}return o.type!==dr.None&&(t.alpha=Math.min(1,Math.max(0,o.type===dr.Number?o.value:o.value/100))),t}var dL=ghe,bhe={mode:"hsl",toMode:{rgb:cL},fromMode:{rgb:vL},channels:["h","s","l","alpha"],ranges:{h:[0,360]},gamut:"rgb",parse:[dL,hL],serialize:e=>`hsl(${e.h!==void 0?e.h:"none"} ${e.s!==void 0?e.s*100+"%":"none"} ${e.l!==void 0?e.l*100+"%":"none"}${e.alpha<1?` / ${e.alpha}`:""})`,interpolate:{h:{use:wr,fixup:ol},s:wr,l:wr,alpha:{use:wr,fixup:Va}},difference:{h:ch},average:{h:ll}},b_=bhe;function x_({h:e,s:r,v:t,alpha:a}){e=yn(e!==void 0?e:0),r===void 0&&(r=0),t===void 0&&(t=0);let n=Math.abs(e/60%2-1),i;switch(Math.floor(e/60)){case 0:i={r:t,g:t*(1-r*n),b:t*(1-r)};break;case 1:i={r:t*(1-r*n),g:t,b:t*(1-r)};break;case 2:i={r:t*(1-r),g:t,b:t*(1-r*n)};break;case 3:i={r:t*(1-r),g:t*(1-r*n),b:t};break;case 4:i={r:t*(1-r*n),g:t*(1-r),b:t};break;case 5:i={r:t,g:t*(1-r),b:t*(1-r*n)};break;default:i={r:t*(1-r),g:t*(1-r),b:t*(1-r)}}return i.mode="rgb",a!==void 0&&(i.alpha=a),i}function __({r:e,g:r,b:t,alpha:a}){e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=Math.max(e,r,t),i=Math.min(e,r,t),o={mode:"hsv",s:n===0?0:1-i/n,v:n};return n-i!==0&&(o.h=(n===e?(r-t)/(n-i)+(r1){let n=r+t;r/=n,t/=n}return x_({h:e,s:t===1?1:1-r/(1-t),v:1-t,alpha:a})}function mL(e){let r=__(e);if(r===void 0)return;let t=r.s!==void 0?r.s:0,a=r.v!==void 0?r.v:0,n={mode:"hwb",w:(1-t)*a,b:1-a};return r.h!==void 0&&(n.h=r.h),r.alpha!==void 0&&(n.alpha=r.alpha),n}function _he(e,r){if(!r||r[0]!=="hwb")return;let t={mode:"hwb"},[,a,n,i,o]=r;if(a.type!==dr.None){if(a.type===dr.Percentage)return;t.h=a.value}if(n.type!==dr.None){if(n.type===dr.Hue)return;t.w=n.value/100}if(i.type!==dr.None){if(i.type===dr.Hue)return;t.b=i.value/100}return o.type!==dr.None&&(t.alpha=Math.min(1,Math.max(0,o.type===dr.Number?o.value:o.value/100))),t}var yL=_he,whe={mode:"hwb",toMode:{rgb:pL},fromMode:{rgb:mL},channels:["h","w","b","alpha"],ranges:{h:[0,360]},gamut:"rgb",parse:[yL],serialize:e=>`hwb(${e.h!==void 0?e.h:"none"} ${e.w!==void 0?e.w*100+"%":"none"} ${e.b!==void 0?e.b*100+"%":"none"}${e.alpha<1?` / ${e.alpha}`:""})`,interpolate:{h:{use:wr,fixup:ol},w:wr,b:wr,alpha:{use:wr,fixup:Va}},difference:{h:Qq},average:{h:ll}},gL=whe,bL=203,sp=.1593017578125,xL=78.84375,up=.8359375,fp=18.8515625,cp=18.6875;function C5(e){if(e<0)return 0;let r=Math.pow(e,1/xL);return 1e4*Math.pow(Math.max(0,r-up)/(fp-cp*r),1/sp)}function D5(e){if(e<0)return 0;let r=Math.pow(e/1e4,sp);return Math.pow((up+fp*r)/(1+cp*r),xL)}var E5=e=>Math.max(e/bL,0),The=({i:e,t:r,p:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=C5(e+.008609037037932761*r+.11102962500302593*t),i=C5(e-.00860903703793275*r-.11102962500302599*t),o=C5(e+.5600313357106791*r-.32062717498731885*t),l={mode:"xyz65",x:E5(2.070152218389422*n-1.3263473389671556*i+.2066510476294051*o),y:E5(.3647385209748074*n+.680566024947227*i-.0453045459220346*o),z:E5(-.049747207535812*n-.0492609666966138*i+1.1880659249923042*o)};return a!==void 0&&(l.alpha=a),l},J5=The,P5=(e=0)=>Math.max(e*bL,0),Ahe=({x:e,y:r,z:t,alpha:a})=>{let n=P5(e),i=P5(r),o=P5(t),l=D5(.3592832590121217*n+.6976051147779502*i-.0358915932320289*o),s=D5(-.1920808463704995*n+1.1004767970374323*i+.0753748658519118*o),u=D5(.0070797844607477*n+.0748396662186366*i+.8433265453898765*o),f=.5*l+.5*s,c=1.61376953125*l-3.323486328125*s+1.709716796875*u,v=4.378173828125*l-4.24560546875*s-.132568359375*u,d={mode:"itp",i:f,t:c,p:v};return a!==void 0&&(d.alpha=a),d},K5=Ahe,Mhe={mode:"itp",channels:["i","t","p","alpha"],parse:["--ictcp"],serialize:"--ictcp",toMode:{xyz65:J5,rgb:e=>Ts(J5(e))},fromMode:{xyz65:K5,rgb:e=>K5(ws(e))},ranges:{i:[0,.581],t:[-.369,.272],p:[-.164,.331]},interpolate:{i:wr,t:wr,p:wr,alpha:{use:wr,fixup:Va}}},_L=Mhe,khe=134.03437499999998,She=16295499532821565e-27,R5=e=>{if(e<0)return 0;let r=Math.pow(e/1e4,sp);return Math.pow((up+fp*r)/(1+cp*r),khe)},F5=(e=0)=>Math.max(e*203,0),qhe=({x:e,y:r,z:t,alpha:a})=>{e=F5(e),r=F5(r),t=F5(t);let n=1.15*e-.15*t,i=.66*r+.34*e,o=R5(.41478972*n+.579999*i+.014648*t),l=R5(-.20151*n+1.120649*i+.0531008*t),s=R5(-.0166008*n+.2648*i+.6684799*t),u=(o+l)/2,f={mode:"jab",j:.44*u/(1-.56*u)-She,a:3.524*o-4.066708*l+.542708*s,b:.199076*o+1.096799*l-1.295875*s};return a!==void 0&&(f.alpha=a),f},T_=qhe,Lhe=134.03437499999998,Pq=16295499532821565e-27,z5=e=>{if(e<0)return 0;let r=Math.pow(e,1/Lhe);return 1e4*Math.pow((up-r)/(cp*r-fp),1/sp)},N5=e=>e/203,Che=({j:e,a:r,b:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=(e+Pq)/(.44+.56*(e+Pq)),i=z5(n+.13860504*r+.058047316*t),o=z5(n-.13860504*r-.058047316*t),l=z5(n-.096019242*r-.8118919*t),s={mode:"xyz65",x:N5(1.661373024652174*i-.914523081304348*o+.23136208173913045*l),y:N5(-.3250758611844533*i+1.571847026732543*o-.21825383453227928*l),z:N5(-.090982811*i-.31272829*o+1.5227666*l)};return a!==void 0&&(s.alpha=a),s},A_=Che,Dhe=e=>{let r=T_(ws(e));return e.r===e.b&&e.b===e.g&&(r.a=r.b=0),r},M_=Dhe,Ehe=e=>Ts(A_(e)),k_=Ehe,Phe={mode:"jab",channels:["j","a","b","alpha"],parse:["--jzazbz"],serialize:"--jzazbz",fromMode:{rgb:M_,xyz65:T_},toMode:{rgb:k_,xyz65:A_},ranges:{j:[0,.222],a:[-.109,.129],b:[-.185,.134]},interpolate:{j:wr,a:wr,b:wr,alpha:{use:wr,fixup:Va}}},wL=Phe,Rhe=({j:e,a:r,b:t,alpha:a})=>{r===void 0&&(r=0),t===void 0&&(t=0);let n=Math.sqrt(r*r+t*t),i={mode:"jch",j:e,c:n};return n&&(i.h=yn(Math.atan2(t,r)*180/Math.PI)),a!==void 0&&(i.alpha=a),i},Q5=Rhe,Fhe=({j:e,c:r,h:t,alpha:a})=>{t===void 0&&(t=0);let n={mode:"jab",j:e,a:r?r*Math.cos(t/180*Math.PI):0,b:r?r*Math.sin(t/180*Math.PI):0};return a!==void 0&&(n.alpha=a),n},e_=Fhe,zhe={mode:"jch",parse:["--jzczhz"],serialize:"--jzczhz",toMode:{jab:e_,rgb:e=>k_(e_(e))},fromMode:{rgb:e=>Q5(M_(e)),jab:Q5},channels:["j","c","h","alpha"],ranges:{j:[0,.221],c:[0,.19],h:[0,360]},interpolate:{h:{use:wr,fixup:ol},c:wr,j:wr,alpha:{use:wr,fixup:Va}},difference:{h:vh},average:{h:ll}},TL=zhe,vp=Math.pow(29,3)/Math.pow(3,3),S_=Math.pow(6,3)/Math.pow(29,3),I5=e=>Math.pow(e,3)>S_?Math.pow(e,3):(116*e-16)/vp,Nhe=({l:e,a:r,b:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=(e+16)/116,i=r/500+n,o=n-t/200,l={mode:"xyz50",x:I5(i)*Ya.X,y:I5(n)*Ya.Y,z:I5(o)*Ya.Z};return a!==void 0&&(l.alpha=a),l},hp=Nhe,Ihe=({x:e,y:r,z:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=Gu({r:e*3.1341359569958707-r*1.6173863321612538-.4906619460083532*t,g:e*-.978795502912089+r*1.916254567259524+.03344273116131949*t,b:e*.07195537988411677-r*.2289768264158322+1.405386058324125*t});return a!==void 0&&(n.alpha=a),n},Pc=Ihe,Bhe=e=>Pc(hp(e)),q_=Bhe,Ohe=e=>{let{r,g:t,b:a,alpha:n}=Uu(e),i={mode:"xyz50",x:.436065742824811*r+.3851514688337912*t+.14307845442264197*a,y:.22249319175623702*r+.7168870538238823*t+.06061979053616537*a,z:.013923904500943465*r+.09708128566574634*t+.7140993584005155*a};return n!==void 0&&(i.alpha=n),i},Rc=Ohe,B5=e=>e>S_?Math.cbrt(e):(vp*e+16)/116,Hhe=({x:e,y:r,z:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=B5(e/Ya.X),i=B5(r/Ya.Y),o=B5(t/Ya.Z),l={mode:"lab",l:116*i-16,a:500*(n-i),b:200*(i-o)};return a!==void 0&&(l.alpha=a),l},dp=Hhe,Uhe=e=>{let r=dp(Rc(e));return e.r===e.b&&e.b===e.g&&(r.a=r.b=0),r},L_=Uhe;function Ghe(e,r){if(!r||r[0]!=="lab")return;let t={mode:"lab"},[,a,n,i,o]=r;if(!(a.type===dr.Hue||n.type===dr.Hue||i.type===dr.Hue))return a.type!==dr.None&&(t.l=Math.min(Math.max(0,a.value),100)),n.type!==dr.None&&(t.a=n.type===dr.Number?n.value:n.value*125/100),i.type!==dr.None&&(t.b=i.type===dr.Number?i.value:i.value*125/100),o.type!==dr.None&&(t.alpha=Math.min(1,Math.max(0,o.type===dr.Number?o.value:o.value/100))),t}var AL=Ghe,Yhe={mode:"lab",toMode:{xyz50:hp,rgb:q_},fromMode:{xyz50:dp,rgb:L_},channels:["l","a","b","alpha"],ranges:{l:[0,100],a:[-125,125],b:[-125,125]},parse:[AL],serialize:e=>`lab(${e.l!==void 0?e.l:"none"} ${e.a!==void 0?e.a:"none"} ${e.b!==void 0?e.b:"none"}${e.alpha<1?` / ${e.alpha}`:""})`,interpolate:{l:wr,a:wr,b:wr,alpha:{use:wr,fixup:Va}}},pp=Yhe,Vhe=Jt(At({},pp),{mode:"lab65",parse:["--lab-d65"],serialize:"--lab-d65",toMode:{xyz65:y_,rgb:hh},fromMode:{xyz65:g_,rgb:dh},ranges:{l:[0,100],a:[-125,125],b:[-125,125]}}),ML=Vhe;function jhe(e,r){if(!r||r[0]!=="lch")return;let t={mode:"lch"},[,a,n,i,o]=r;if(a.type!==dr.None){if(a.type===dr.Hue)return;t.l=Math.min(Math.max(0,a.value),100)}if(n.type!==dr.None&&(t.c=Math.max(0,n.type===dr.Number?n.value:n.value*150/100)),i.type!==dr.None){if(i.type===dr.Percentage)return;t.h=i.value}return o.type!==dr.None&&(t.alpha=Math.min(1,Math.max(0,o.type===dr.Number?o.value:o.value/100))),t}var kL=jhe,Whe={mode:"lch",toMode:{lab:Bl,rgb:e=>q_(Bl(e))},fromMode:{rgb:e=>Il(L_(e)),lab:Il},channels:["l","c","h","alpha"],ranges:{l:[0,100],c:[0,150],h:[0,360]},parse:[kL],serialize:e=>`lch(${e.l!==void 0?e.l:"none"} ${e.c!==void 0?e.c:"none"} ${e.h!==void 0?e.h:"none"}${e.alpha<1?` / ${e.alpha}`:""})`,interpolate:{h:{use:wr,fixup:ol},c:wr,l:wr,alpha:{use:wr,fixup:Va}},difference:{h:vh},average:{h:ll}},mp=Whe,Xhe=Jt(At({},mp),{mode:"lch65",parse:["--lch-d65"],serialize:"--lch-d65",toMode:{lab65:e=>Bl(e,"lab65"),rgb:e=>hh(Bl(e,"lab65"))},fromMode:{rgb:e=>Il(dh(e),"lch65"),lab65:e=>Il(e,"lch65")},ranges:{l:[0,100],c:[0,150],h:[0,360]}}),SL=Xhe,Zhe=({l:e,u:r,v:t,alpha:a})=>{r===void 0&&(r=0),t===void 0&&(t=0);let n=Math.sqrt(r*r+t*t),i={mode:"lchuv",l:e,c:n};return n&&(i.h=yn(Math.atan2(t,r)*180/Math.PI)),a!==void 0&&(i.alpha=a),i},C_=Zhe,$he=({l:e,c:r,h:t,alpha:a})=>{t===void 0&&(t=0);let n={mode:"luv",l:e,u:r?r*Math.cos(t/180*Math.PI):0,v:r?r*Math.sin(t/180*Math.PI):0};return a!==void 0&&(n.alpha=a),n},D_=$he,qL=(e,r,t)=>4*e/(e+15*r+3*t),LL=(e,r,t)=>9*r/(e+15*r+3*t),Jhe=qL(Ya.X,Ya.Y,Ya.Z),Khe=LL(Ya.X,Ya.Y,Ya.Z),Qhe=e=>e<=S_?vp*e:116*Math.cbrt(e)-16,ede=({x:e,y:r,z:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=Qhe(r/Ya.Y),i=qL(e,r,t),o=LL(e,r,t);!isFinite(i)||!isFinite(o)?n=i=o=0:(i=13*n*(i-Jhe),o=13*n*(o-Khe));let l={mode:"luv",l:n,u:i,v:o};return a!==void 0&&(l.alpha=a),l},np=ede,rde=(e,r,t)=>4*e/(e+15*r+3*t),tde=(e,r,t)=>9*r/(e+15*r+3*t),ade=rde(Ya.X,Ya.Y,Ya.Z),nde=tde(Ya.X,Ya.Y,Ya.Z),ide=({l:e,u:r,v:t,alpha:a})=>{if(e===void 0&&(e=0),e===0)return{mode:"xyz50",x:0,y:0,z:0};r===void 0&&(r=0),t===void 0&&(t=0);let n=r/(13*e)+ade,i=t/(13*e)+nde,o=Ya.Y*(e<=8?e/vp:Math.pow((e+16)/116,3)),l=o*(9*n)/(4*i),s=o*(12-3*n-20*i)/(4*i),u={mode:"xyz50",x:l,y:o,z:s};return a!==void 0&&(u.alpha=a),u},ip=ide,ode=e=>C_(np(Rc(e))),lde=e=>Pc(ip(D_(e))),sde={mode:"lchuv",toMode:{luv:D_,rgb:lde},fromMode:{rgb:ode,luv:C_},channels:["l","c","h","alpha"],parse:["--lchuv"],serialize:"--lchuv",ranges:{l:[0,100],c:[0,176.956],h:[0,360]},interpolate:{h:{use:wr,fixup:ol},c:wr,l:wr,alpha:{use:wr,fixup:Va}},difference:{h:vh},average:{h:ll}},CL=sde,ude=Jt(At({},Hu),{mode:"lrgb",toMode:{rgb:Gu},fromMode:{rgb:Uu},parse:["srgb-linear"],serialize:"srgb-linear"}),DL=ude,fde={mode:"luv",toMode:{xyz50:ip,rgb:e=>Pc(ip(e))},fromMode:{xyz50:np,rgb:e=>np(Rc(e))},channels:["l","u","v","alpha"],parse:["--luv"],serialize:"--luv",ranges:{l:[0,100],u:[-84.936,175.042],v:[-125.882,87.243]},interpolate:{l:wr,u:wr,v:wr,alpha:{use:wr,fixup:Va}}},EL=fde,cde=({r:e,g:r,b:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=Math.cbrt(.412221469470763*e+.5363325372617348*r+.0514459932675022*t),i=Math.cbrt(.2119034958178252*e+.6806995506452344*r+.1073969535369406*t),o=Math.cbrt(.0883024591900564*e+.2817188391361215*r+.6299787016738222*t),l={mode:"oklab",l:.210454268309314*n+.7936177747023054*i-.0040720430116193*o,a:1.9779985324311684*n-2.42859224204858*i+.450593709617411*o,b:.0259040424655478*n+.7827717124575296*i-.8086757549230774*o};return a!==void 0&&(l.alpha=a),l},E_=cde,vde=e=>{let r=E_(Uu(e));return e.r===e.b&&e.b===e.g&&(r.a=r.b=0),r},ph=vde,hde=({l:e,a:r,b:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=Math.pow(e+.3963377773761749*r+.2158037573099136*t,3),i=Math.pow(e-.1055613458156586*r-.0638541728258133*t,3),o=Math.pow(e-.0894841775298119*r-1.2914855480194092*t,3),l={mode:"lrgb",r:4.076741636075957*n-3.3077115392580616*i+.2309699031821044*o,g:-1.2684379732850317*n+2.6097573492876887*i-.3413193760026573*o,b:-.0041960761386756*n-.7034186179359362*i+1.7076146940746117*o};return a!==void 0&&(l.alpha=a),l},Fc=hde,dde=e=>Gu(Fc(e)),mh=dde;function r_(e){let a=1.170873786407767;return .5*(a*e-.206+Math.sqrt((a*e-.206)*(a*e-.206)+4*.03*a*e))}function op(e){return(e*e+.206*e)/(1.170873786407767*(e+.03))}function pde(e,r){let t,a,n,i,o,l,s,u;-1.88170328*e-.80936493*r>1?(t=1.19086277,a=1.76576728,n=.59662641,i=.75515197,o=.56771245,l=4.0767416621,s=-3.3077115913,u=.2309699292):1.81444104*e-1.19445276*r>1?(t=.73956515,a=-.45954404,n=.08285427,i=.1254107,o=.14503204,l=-1.2684380046,s=2.6097574011,u=-.3413193965):(t=1.35733652,a=-.00915799,n=-1.1513021,i=-.50559606,o=.00692167,l=-.0041960863,s=-.7034186147,u=1.707614701);let f=t+a*e+n*r+i*e*e+o*e*r,c=.3963377774*e+.2158037573*r,v=-.1055613458*e-.0638541728*r,d=-.0894841775*e-1.291485548*r;{let p=1+f*c,m=1+f*v,y=1+f*d,b=p*p*p,T=m*m*m,w=y*y*y,x=3*c*p*p,_=3*v*m*m,k=3*d*y*y,M=6*c*c*p,S=6*v*v*m,C=6*d*d*y,E=l*b+s*T+u*w,P=l*x+s*_+u*k,R=l*M+s*S+u*C;f=f-E*P/(P*P-.5*E*R)}return f}function P_(e,r){let t=pde(e,r),a=Fc({l:1,a:t*e,b:t*r}),n=Math.cbrt(1/Math.max(a.r,a.g,a.b)),i=n*t;return[n,i]}function mde(e,r,t,a,n,i=null){i||(i=P_(e,r));let o;if((t-n)*i[1]-(i[0]-n)*a<=0)o=i[1]*n/(a*i[0]+i[1]*(n-t));else{o=i[1]*(n-1)/(a*(i[0]-1)+i[1]*(n-t));{let l=t-n,s=a,u=.3963377774*e+.2158037573*r,f=-.1055613458*e-.0638541728*r,c=-.0894841775*e-1.291485548*r,v=l+s*u,d=l+s*f,p=l+s*c;{let m=n*(1-o)+o*t,y=o*a,b=m+y*u,T=m+y*f,w=m+y*c,x=b*b*b,_=T*T*T,k=w*w*w,M=3*v*b*b,S=3*d*T*T,C=3*p*w*w,E=6*v*v*b,P=6*d*d*T,R=6*p*p*w,I=4.0767416621*x-3.3077115913*_+.2309699292*k-1,B=4.0767416621*M-3.3077115913*S+.2309699292*C,N=4.0767416621*E-3.3077115913*P+.2309699292*R,U=B/(B*B-.5*I*N),G=-I*U,V=-1.2684380046*x+2.6097574011*_-.3413193965*k-1,j=-1.2684380046*M+2.6097574011*S-.3413193965*C,W=-1.2684380046*E+2.6097574011*P-.3413193965*R,Y=j/(j*j-.5*V*W),J=-V*Y,re=-.0041960863*x-.7034186147*_+1.707614701*k-1,le=-.0041960863*M-.7034186147*S+1.707614701*C,ne=-.0041960863*E-.7034186147*P+1.707614701*R,$=le/(le*le-.5*re*ne),ce=-re*$;G=U>=0?G:1e6,J=Y>=0?J:1e6,ce=$>=0?ce:1e6,o+=Math.min(G,Math.min(J,ce))}}}return o}function R_(e,r,t=null){t||(t=P_(e,r));let a=t[0],n=t[1];return[n/a,n/(1-a)]}function PL(e,r,t){let a=P_(r,t),n=mde(r,t,e,1,e,a),i=R_(r,t,a),o=.11516993+1/(7.4477897+4.1590124*t+r*(-2.19557347+1.75198401*t+r*(-2.13704948-10.02301043*t+r*(-4.24894561+5.38770819*t+4.69891013*r)))),l=.11239642+1/(1.6132032-.68124379*t+r*(.40370612+.90148123*t+r*(-.27087943+.6122399*t+r*(.00299215-.45399568*t-.14661872*r)))),s=n/Math.min(e*i[0],(1-e)*i[1]),u=e*o,f=(1-e)*l,c=.9*s*Math.sqrt(Math.sqrt(1/(1/(u*u*u*u)+1/(f*f*f*f))));return u=e*.4,f=(1-e)*.8,[Math.sqrt(1/(1/(u*u)+1/(f*f))),c,n]}function t_(e){let r=e.l!==void 0?e.l:0,t=e.a!==void 0?e.a:0,a=e.b!==void 0?e.b:0,n={mode:"okhsl",l:r_(r)};e.alpha!==void 0&&(n.alpha=e.alpha);let i=Math.sqrt(t*t+a*a);if(!i)return n.s=0,n;let[o,l,s]=PL(r,t/i,a/i),u;if(it_(ph(e))},toMode:{oklab:a_,rgb:e=>mh(a_(e))}}),RL=yde;function n_(e){let r=e.l!==void 0?e.l:0,t=e.a!==void 0?e.a:0,a=e.b!==void 0?e.b:0,n=Math.sqrt(t*t+a*a),i=n?t/n:1,o=n?a/n:1,[l,s]=R_(i,o),u=.5,f=1-u/l,c=s/(n+r*s),v=c*r,d=c*n,p=op(v),m=d*p/v,y=Fc({l:p,a:i*m,b:o*m}),b=Math.cbrt(1/Math.max(y.r,y.g,y.b,0));r=r/b,n=n/b*r_(r)/r,r=r_(r);let T={mode:"okhsv",s:n?(u+s)*d/(s*u+s*f*d):0,v:r?r/v:0};return T.s&&(T.h=yn(Math.atan2(a,t)*180/Math.PI)),e.alpha!==void 0&&(T.alpha=e.alpha),T}function i_(e){let r={mode:"oklab"};e.alpha!==void 0&&(r.alpha=e.alpha);let t=e.h!==void 0?e.h:0,a=e.s!==void 0?e.s:0,n=e.v!==void 0?e.v:0,i=Math.cos(t/180*Math.PI),o=Math.sin(t/180*Math.PI),[l,s]=R_(i,o),u=.5,f=1-u/l,c=1-a*u/(u+s-s*f*a),v=a*s*u/(u+s-s*f*a),d=op(c),p=v*d/c,m=Fc({l:d,a:i*p,b:o*p}),y=Math.cbrt(1/Math.max(m.r,m.g,m.b,0)),b=op(n*c),T=v*b/c;return r.l=b*y,r.a=T*i*y,r.b=T*o*y,r}var gde=Jt(At({},w_),{mode:"okhsv",channels:["h","s","v","alpha"],parse:["--okhsv"],serialize:"--okhsv",fromMode:{oklab:n_,rgb:e=>n_(ph(e))},toMode:{oklab:i_,rgb:e=>mh(i_(e))}}),FL=gde;function bde(e,r){if(!r||r[0]!=="oklab")return;let t={mode:"oklab"},[,a,n,i,o]=r;if(!(a.type===dr.Hue||n.type===dr.Hue||i.type===dr.Hue))return a.type!==dr.None&&(t.l=Math.min(Math.max(0,a.type===dr.Number?a.value:a.value/100),1)),n.type!==dr.None&&(t.a=n.type===dr.Number?n.value:n.value*.4/100),i.type!==dr.None&&(t.b=i.type===dr.Number?i.value:i.value*.4/100),o.type!==dr.None&&(t.alpha=Math.min(1,Math.max(0,o.type===dr.Number?o.value:o.value/100))),t}var zL=bde,xde=Jt(At({},pp),{mode:"oklab",toMode:{lrgb:Fc,rgb:mh},fromMode:{lrgb:E_,rgb:ph},ranges:{l:[0,1],a:[-.4,.4],b:[-.4,.4]},parse:[zL],serialize:e=>`oklab(${e.l!==void 0?e.l:"none"} ${e.a!==void 0?e.a:"none"} ${e.b!==void 0?e.b:"none"}${e.alpha<1?` / ${e.alpha}`:""})`}),NL=xde;function _de(e,r){if(!r||r[0]!=="oklch")return;let t={mode:"oklch"},[,a,n,i,o]=r;if(a.type!==dr.None){if(a.type===dr.Hue)return;t.l=Math.min(Math.max(0,a.type===dr.Number?a.value:a.value/100),1)}if(n.type!==dr.None&&(t.c=Math.max(0,n.type===dr.Number?n.value:n.value*.4/100)),i.type!==dr.None){if(i.type===dr.Percentage)return;t.h=i.value}return o.type!==dr.None&&(t.alpha=Math.min(1,Math.max(0,o.type===dr.Number?o.value:o.value/100))),t}var IL=_de,wde=Jt(At({},mp),{mode:"oklch",toMode:{oklab:e=>Bl(e,"oklab"),rgb:e=>mh(Bl(e,"oklab"))},fromMode:{rgb:e=>Il(ph(e),"oklch"),oklab:e=>Il(e,"oklch")},parse:[IL],serialize:e=>`oklch(${e.l!==void 0?e.l:"none"} ${e.c!==void 0?e.c:"none"} ${e.h!==void 0?e.h:"none"}${e.alpha<1?` / ${e.alpha}`:""})`,ranges:{l:[0,1],c:[0,.4],h:[0,360]}}),BL=wde,Tde=e=>{let{r,g:t,b:a,alpha:n}=Uu(e),i={mode:"xyz65",x:.486570948648216*r+.265667693169093*t+.1982172852343625*a,y:.2289745640697487*r+.6917385218365062*t+.079286914093745*a,z:0*r+.0451133818589026*t+1.043944368900976*a};return n!==void 0&&(i.alpha=n),i},o_=Tde,Ade=({x:e,y:r,z:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=Gu({r:e*2.4934969119414263-r*.9313836179191242-.402710784450717*t,g:e*-.8294889695615749+r*1.7626640603183465+.0236246858419436*t,b:e*.0358458302437845-r*.0761723892680418+.9568845240076871*t},"p3");return a!==void 0&&(n.alpha=a),n},l_=Ade,Mde=Jt(At({},Hu),{mode:"p3",parse:["display-p3"],serialize:"display-p3",fromMode:{rgb:e=>l_(ws(e)),xyz65:l_},toMode:{rgb:e=>Ts(o_(e)),xyz65:o_}}),OL=Mde,O5=e=>{let r=Math.abs(e);return r>=1/512?Math.sign(e)*Math.pow(r,1/1.8):16*e},kde=({x:e,y:r,z:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n={mode:"prophoto",r:O5(e*1.3457868816471585-r*.2555720873797946-.0511018649755453*t),g:O5(e*-.5446307051249019+r*1.5082477428451466+.0205274474364214*t),b:O5(e*0+r*0+1.2119675456389452*t)};return a!==void 0&&(n.alpha=a),n},s_=kde,H5=(e=0)=>{let r=Math.abs(e);return r>=16/512?Math.sign(e)*Math.pow(r,1.8):e/16},Sde=e=>{let r=H5(e.r),t=H5(e.g),a=H5(e.b),n={mode:"xyz50",x:.7977666449006423*r+.1351812974005331*t+.0313477341283922*a,y:.2880748288194013*r+.7118352342418731*t+899369387256e-16*a,z:0*r+0*t+.8251046025104602*a};return e.alpha!==void 0&&(n.alpha=e.alpha),n},u_=Sde,qde=Jt(At({},Hu),{mode:"prophoto",parse:["prophoto-rgb"],serialize:"prophoto-rgb",fromMode:{xyz50:s_,rgb:e=>s_(Rc(e))},toMode:{xyz50:u_,rgb:e=>Pc(u_(e))}}),HL=qde,Rq=1.09929682680944,Lde=.018053968510807,U5=e=>{let r=Math.abs(e);return r>Lde?(Math.sign(e)||1)*(Rq*Math.pow(r,.45)-(Rq-1)):4.5*e},Cde=({x:e,y:r,z:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n={mode:"rec2020",r:U5(e*1.7166511879712683-r*.3556707837763925-.2533662813736599*t),g:U5(e*-.6666843518324893+r*1.6164812366349395+.0157685458139111*t),b:U5(e*.0176398574453108-r*.0427706132578085+.9421031212354739*t)};return a!==void 0&&(n.alpha=a),n},f_=Cde,Fq=1.09929682680944,Dde=.018053968510807,G5=(e=0)=>{let r=Math.abs(e);return r{let r=G5(e.r),t=G5(e.g),a=G5(e.b),n={mode:"xyz65",x:.6369580483012911*r+.1446169035862083*t+.1688809751641721*a,y:.262700212011267*r+.6779980715188708*t+.059301716469862*a,z:0*r+.0280726930490874*t+1.0609850577107909*a};return e.alpha!==void 0&&(n.alpha=e.alpha),n},c_=Ede,Pde=Jt(At({},Hu),{mode:"rec2020",fromMode:{xyz65:f_,rgb:e=>f_(ws(e))},toMode:{xyz65:c_,rgb:e=>Ts(c_(e))},parse:["rec2020"],serialize:"rec2020"}),UL=Pde,Bu=.0037930732552754493,GL=Math.cbrt(Bu),Y5=e=>Math.cbrt(e)-GL,Rde=e=>{let{r,g:t,b:a,alpha:n}=Uu(e),i=Y5(.3*r+.622*t+.078*a+Bu),o=Y5(.23*r+.692*t+.078*a+Bu),l=Y5(.2434226892454782*r+.2047674442449682*t+.5518098665095535*a+Bu),s={mode:"xyb",x:(i-o)/2,y:(i+o)/2,b:l-(i+o)/2};return n!==void 0&&(s.alpha=n),s},YL=Rde,V5=e=>Math.pow(e+GL,3),Fde=({x:e,y:r,b:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=V5(e+r)-Bu,i=V5(r-e)-Bu,o=V5(t+r)-Bu,l=Gu({r:11.031566904639861*n-9.866943908131562*i-.16462299650829934*o,g:-3.2541473810744237*n+4.418770377582723*i-.16462299650829934*o,b:-3.6588512867136815*n+2.7129230459360922*i+1.9459282407775895*o});return a!==void 0&&(l.alpha=a),l},VL=Fde,zde={mode:"xyb",channels:["x","y","b","alpha"],parse:["--xyb"],serialize:"--xyb",toMode:{rgb:VL},fromMode:{rgb:YL},ranges:{x:[-.0154,.0281],y:[0,.8453],b:[-.2778,.388]},interpolate:{x:wr,y:wr,b:wr,alpha:{use:wr,fixup:Va}}},jL=zde,Nde={mode:"xyz50",parse:["xyz-d50"],serialize:"xyz-d50",toMode:{rgb:Pc,lab:dp},fromMode:{rgb:Rc,lab:hp},channels:["x","y","z","alpha"],ranges:{x:[0,.964],y:[0,.999],z:[0,.825]},interpolate:{x:wr,y:wr,z:wr,alpha:{use:wr,fixup:Va}}},WL=Nde,Ide=e=>{let{x:r,y:t,z:a,alpha:n}=e;r===void 0&&(r=0),t===void 0&&(t=0),a===void 0&&(a=0);let i={mode:"xyz50",x:1.0479298208405488*r+.0229467933410191*t-.0501922295431356*a,y:.0296278156881593*r+.990434484573249*t-.0170738250293851*a,z:-.0092430581525912*r+.0150551448965779*t+.7518742899580008*a};return n!==void 0&&(i.alpha=n),i},XL=Ide,Bde=e=>{let{x:r,y:t,z:a,alpha:n}=e;r===void 0&&(r=0),t===void 0&&(t=0),a===void 0&&(a=0);let i={mode:"xyz65",x:.9554734527042182*r-.0230985368742614*t+.0632593086610217*a,y:-.0283697069632081*r+1.0099954580058226*t+.021041398966943*a,z:.0123140016883199*r-.0205076964334779*t+1.3303659366080753*a};return n!==void 0&&(i.alpha=n),i},ZL=Bde,Ode={mode:"xyz65",toMode:{rgb:Ts,xyz50:XL},fromMode:{rgb:ws,xyz50:ZL},ranges:{x:[0,.95],y:[0,1],z:[0,1.088]},channels:["x","y","z","alpha"],parse:["xyz","xyz-d65"],serialize:"xyz-d65",interpolate:{x:wr,y:wr,z:wr,alpha:{use:wr,fixup:Va}}},$L=Ode,Hde=({r:e,g:r,b:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n={mode:"yiq",y:.29889531*e+.58662247*r+.11448223*t,i:.59597799*e-.2741761*r-.32180189*t,q:.21147017*e-.52261711*r+.31114694*t};return a!==void 0&&(n.alpha=a),n},JL=Hde,Ude=({y:e,i:r,q:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n={mode:"rgb",r:e+.95608445*r+.6208885*t,g:e-.27137664*r-.6486059*t,b:e-1.10561724*r+1.70250126*t};return a!==void 0&&(n.alpha=a),n},KL=Ude,Gde={mode:"yiq",toMode:{rgb:KL},fromMode:{rgb:JL},channels:["y","i","q","alpha"],parse:["--yiq"],serialize:"--yiq",ranges:{i:[-.595,.595],q:[-.522,.522]},interpolate:{y:wr,i:wr,q:wr,alpha:{use:wr,fixup:Va}}},QL=Gde,Yde=(e,r)=>Math.round(e*(r=Math.pow(10,r)))/r,Vde=(e=4)=>r=>typeof r=="number"?Yde(r,e):r,eC=Vde,lh=eC(2),uh=e=>Math.max(0,Math.min(1,e||0)),Ou=e=>Math.round(uh(e)*255),F_=Yt("rgb"),jde=Yt("hsl"),z_=e=>{if(e===void 0)return;let r=Ou(e.r),t=Ou(e.g),a=Ou(e.b);return"#"+(1<<24|r<<16|t<<8|a).toString(16).slice(1)},rC=e=>{if(e===void 0)return;let r=Ou(e.alpha!==void 0?e.alpha:1);return z_(e)+(256|r).toString(16).slice(1)},tC=e=>{if(e===void 0)return;let r=Ou(e.r),t=Ou(e.g),a=Ou(e.b);return e.alpha===void 0||e.alpha===1?`rgb(${r}, ${t}, ${a})`:`rgba(${r}, ${t}, ${a}, ${lh(uh(e.alpha))})`},aC=e=>{if(e===void 0)return;let r=lh(e.h||0),t=lh(uh(e.s)*100)+"%",a=lh(uh(e.l)*100)+"%";return e.alpha===void 0||e.alpha===1?`hsl(${r}, ${t}, ${a})`:`hsla(${r}, ${t}, ${a}, ${lh(uh(e.alpha))})`},Wde=e=>{let r=Lo(e);if(!r)return;let t=Sn(r.mode);if(!t.serialize||typeof t.serialize=="string"){let a=`color(${t.serialize||`--${r.mode}`} `;return t.channels.forEach((n,i)=>{n!=="alpha"&&(a+=(i?" ":"")+(r[n]!==void 0?r[n]:"none"))}),r.alpha!==void 0&&r.alpha<1&&(a+=` / ${r.alpha}`),a+")"}if(typeof t.serialize=="function")return t.serialize(r)},Xde=e=>z_(F_(e)),Zde=e=>rC(F_(e)),$de=e=>tC(F_(e)),Jde=e=>aC(jde(e)),Kde={normal:(e,r)=>r,multiply:(e,r)=>e*r,screen:(e,r)=>e+r-e*r,"hard-light":(e,r)=>r<.5?e*2*r:2*r*(1-e)-1,overlay:(e,r)=>e<.5?r*2*e:2*e*(1-r)-1,darken:(e,r)=>Math.min(e,r),lighten:(e,r)=>Math.max(e,r),"color-dodge":(e,r)=>e===0?0:r===1?1:Math.min(1,e/(1-r)),"color-burn":(e,r)=>e===1?1:r===0?0:1-Math.min(1,(1-e)/r),"soft-light":(e,r)=>r<.5?e-(1-2*r)*e*(1-e):e+(2*r-1)*((e<.25?((16*e-12)*e+4)*e:Math.sqrt(e))-e),difference:(e,r)=>Math.abs(e-r),exclusion:(e,r)=>e+r-2*e*r},Qde=(e,r="normal",t="rgb")=>{let a=typeof r=="function"?r:Kde[r],n=Yt(t),i=Sn(t).channels;return e.map(l=>{let s=n(l);return s.alpha===void 0&&(s.alpha=1),s}).reduce((l,s)=>{if(l===void 0)return s;let u=s.alpha+l.alpha*(1-s.alpha);return i.reduce((f,c)=>(c!=="alpha"&&(u===0?f[c]=0:(f[c]=s.alpha*(1-l.alpha)*s[c]+s.alpha*l.alpha*a(l[c],s[c])+(1-s.alpha)*l.alpha*l[c],f[c]=Math.max(0,Math.min(1,f[c]/u)))),f),{mode:t,alpha:u})})},e2e=Qde,r2e=([e,r])=>e+Math.random()*(r-e),t2e=e=>Object.keys(e).reduce((r,t)=>{let a=e[t];return r[t]=Array.isArray(a)?a:[a,a],r},{}),a2e=(e="rgb",r={})=>{let t=Sn(e),a=t2e(r);return t.channels.reduce((n,i)=>((a.alpha||i!=="alpha")&&(n[i]=r2e(a[i]||t.ranges[i])),n),{mode:e})},n2e=a2e,yh=(e,r="rgb",t=!1)=>{let a=r?Sn(r).channels:null,n=r?Yt(r):Lo;return i=>{let o=n(i);if(!o)return;let l=(a||Sn(o.mode).channels).reduce((u,f)=>{let c=e(o[f],f,o,r);return c!==void 0&&!isNaN(c)&&(u[f]=c),u},{mode:o.mode});if(!t)return l;let s=Lo(i);return s&&s.mode!==l.mode?Yt(s.mode)(l):l}},nC=(e,r,t)=>r!=="alpha"?(e||0)*(t.alpha!==void 0?t.alpha:1):e,iC=(e,r,t)=>r!=="alpha"&&t.alpha!==0?(e||0)/(t.alpha!==void 0?t.alpha:1):e,N_=(e=1,r=0)=>(t,a)=>a!=="alpha"?t*e+r:t,i2e=(e=1,r=1,t=0)=>(a,n)=>n!=="alpha"?e*Math.pow(a,r)+t:a,o2e=e=>{e[0]===void 0&&(e[0]=0),e[e.length-1]===void 0&&(e[e.length-1]=1);let r=1,t,a,n,i;for(;rr=>e<=0?1:e>=1?0:Math.pow(r,Math.log(.5)/Math.log(e)),oC=s2e,$1=e=>typeof e=="function",Nu=e=>e&&typeof e=="object",zq=e=>typeof e=="number",lC=(e,r="rgb",t,a)=>{let n=Sn(r),i=Yt(r),o=[],l=[],s={};e.forEach(v=>{Array.isArray(v)?(o.push(i(v[0])),l.push(v[1])):zq(v)||$1(v)?s[l.length]=v:(o.push(i(v)),l.push(void 0))}),l2e(l);let u=n.channels.reduce((v,d)=>{let p;return Nu(t)&&Nu(t[d])&&t[d].fixup?p=t[d].fixup:Nu(n.interpolate[d])&&n.interpolate[d].fixup?p=n.interpolate[d].fixup:p=m=>m,v[d]=p(o.map(m=>m[d])),v},{});if(a){let v=o.map((d,p)=>n.channels.reduce((m,y)=>(m[y]=u[y][p],m),{mode:r}));u=n.channels.reduce((d,p)=>(d[p]=v.map(m=>{let y=a(m[p],p,m,r);return isNaN(y)?void 0:y}),d),{})}let f=n.channels.reduce((v,d)=>{let p;return $1(t)?p=t:Nu(t)&&$1(t[d])?p=t[d]:Nu(t)&&Nu(t[d])&&t[d].use?p=t[d].use:$1(n.interpolate[d])?p=n.interpolate[d]:Nu(n.interpolate[d])&&(p=n.interpolate[d].use),v[d]=p(u[d]),v},{}),c=o.length-1;return v=>{if(v=Math.min(Math.max(0,v),1),v<=l[0])return o[0];if(v>l[c])return o[c];let d=0;for(;l[d]{let _=f[x](T);return _!==void 0&&(w[x]=_),w},{mode:r})}},u2e=(e,r="rgb",t)=>lC(e,r,t),sC=(e,r)=>(t,a="rgb",n)=>{let i=r?yh(r,a):void 0,o=lC(t,a,n,e);return i?l=>i(o(l)):o},f2e=sC(nC,iC),J1=(e,r)=>(e+r)%r,uC=(e,r,t,a,n)=>{let i=n*n,o=i*n;return((1-3*n+3*i-o)*e+(4-6*i+3*o)*r+(1+3*n+3*i-3*o)*t+o*a)/6},fC=e=>r=>{let t=e.length-1,a=r>=1?t-1:Math.max(0,Math.floor(r*t));return uC(a>0?e[a-1]:2*e[a]-e[a+1],e[a],e[a+1],ar=>{let t=e.length-1,a=Math.floor(r*t);return uC(e[J1(a-1,e.length)],e[J1(a,e.length)],e[J1(a+1,e.length)],e[J1(a+2,e.length)],(r-a/t)*t)},vC=e=>{let r,t=e.length-1,a=new Array(t),n=new Array(t),i=new Array(t);for(a[1]=1/4,n[1]=(6*e[1]-e[0])/4,r=2;r0&&(i[t-1]=n[t-1]),r=t-2;r>0;--r)i[r]=n[r]-a[r]*i[r+1];return i},c2e=e=>fC(vC(e)),v2e=e=>cC(vC(e)),qc=Math.sign,v_=Math.min,mi=Math.abs,I_=e=>{let r=e.length-1,t=[],a=[],n=[];for(let i=0;i0?.5*(e[i+1]-e[i-1])*r:void 0),n.push(i>0?(qc(t[i-1])+qc(t[i]))*v_(mi(t[i-1]),mi(t[i]),.5*mi(a[i])):void 0);return[t,a,n]},B_=(e,r,t)=>{let a=e.length-1,n=a*a;return i=>{let o;i>=1?o=a-1:o=Math.max(0,Math.floor(i*a));let l=i-o/a,s=l*l,u=s*l;return(r[o]+r[o+1]-2*t[o])*n*u+(3*t[o]-2*r[o]-r[o+1])*a*s+r[o]*l+e[o]}},h2e=e=>{if(e.length<3)return wr(e);let r=e.length-1,[t,,a]=I_(e);return a[0]=t[0],a[r]=t[r-1],B_(e,a,t)},d2e=e=>{if(e.length<3)return wr(e);let r=e.length-1,[t,a,n]=I_(e);return a[0]=(e[1]*2-e[0]*1.5-e[2]*.5)*r,a[r]=(e[r]*1.5-e[r-1]*2+e[r-2]*.5)*r,n[0]=a[0]*t[0]<=0?0:mi(a[0])>2*mi(t[0])?2*t[0]:a[0],n[r]=a[r]*t[r-1]<=0?0:mi(a[r])>2*mi(t[r-1])?2*t[r-1]:a[r],B_(e,n,t)},p2e=e=>{let r=e.length-1,[t,a,n]=I_(e);a[0]=.5*(e[1]-e[r])*r,a[r]=.5*(e[0]-e[r-1])*r;let i=(e[0]-e[r])*r,o=i;return n[0]=(qc(i)+qc(t[0]))*v_(mi(i),mi(t[0]),.5*mi(a[0])),n[r]=(qc(t[r-1])+qc(o))*v_(mi(t[r-1]),mi(o),.5*mi(a[r])),B_(e,n,t)},m2e=(e=1)=>e===1?r=>r:r=>Math.pow(r,e),hC=m2e,y2e=(e=2,r=1)=>{let t=hC(r);if(e<2)return e<1?[]:[t(.5)];let a=[];for(let n=0;n{let r={mode:e.mode,r:Math.max(0,Math.min(e.r!==void 0?e.r:0,1)),g:Math.max(0,Math.min(e.g!==void 0?e.g:0,1)),b:Math.max(0,Math.min(e.b!==void 0?e.b:0,1))};return e.alpha!==void 0&&(r.alpha=e.alpha),r},mC=e=>pC(dC(e)),yC=e=>e!==void 0&&(e.r===void 0||e.r>=0&&e.r<=1)&&(e.g===void 0||e.g>=0&&e.g<=1)&&(e.b===void 0||e.b>=0&&e.b<=1);function O_(e){return yC(dC(e))}function yp(e="rgb"){let{gamut:r}=Sn(e);if(!r)return a=>!0;let t=Yt(typeof r=="string"?r:e);return a=>yC(t(a))}function b2e(e){return e=Lo(e),e===void 0||O_(e)?e:Yt(e.mode)(mC(e))}function H_(e="rgb"){let{gamut:r}=Sn(e);if(!r)return i=>Lo(i);let t=typeof r=="string"?r:e,a=Yt(t),n=yp(t);return i=>{let o=Lo(i);if(!o)return;let l=a(o);if(n(l))return o;let s=pC(l);return o.mode===s.mode?s:Yt(o.mode)(s)}}function x2e(e,r="lch",t="rgb"){e=Lo(e);let a=t==="rgb"?O_:yp(t),n=t==="rgb"?mC:H_(t);if(e===void 0||a(e))return e;let i=Yt(e.mode);e=Yt(r)(e);let o=Jt(At({},e),{c:0});if(!a(o))return i(n(o));let l=0,s=e.c!==void 0?e.c:0,u=Sn(r).ranges.c,f=(u[1]-u[0])/Math.pow(2,13),c=o.c;for(;s-l>f;)o.c=l+(s-l)*.5,a(o)?(c=o.c,l=o.c):s=o.c;return i(a(o)?o:Jt(At({},o),{c}))}function _2e(e="rgb",r="oklch",t=Ec("oklch"),a=.02){let n=Yt(e),i=Sn(e);if(!i.gamut)return f=>n(f);let o=yp(e),l=H_(e),s=Yt(r),{ranges:u}=Sn(r);if(!u.l||!u.c)throw new Error("LCH-like space expected");return f=>{if(f=Lo(f),f===void 0)return;let c=At({},s(f));if(c.l===void 0&&(c.l=0),c.c===void 0&&(c.c=0),c.l>=u.l[1]){let y=Jt(At({},i.white),{mode:e});return f.alpha!==void 0&&(y.alpha=f.alpha),y}if(c.l<=u.l[0]){let y=Jt(At({},i.black),{mode:e});return f.alpha!==void 0&&(y.alpha=f.alpha),y}if(o(c))return n(c);let v=0,d=c.c,p=(u.c[1]-u.c[0])/4e3,m=l(c);for(;d-v>p;)c.c=(v+d)*.5,m=l(c),o(c)||t&&a>0&&t(c,m)<=a?v=c.c:d=c.c;return n(o(c)?c:m)}}var w2e=(e,r=Ec(),t=a=>a)=>{let a=e.map((n,i)=>({color:t(n),i}));return(n,i=1,o=1/0)=>(isFinite(i)&&(i=Math.max(1,Math.min(i,a.length-1))),a.forEach(l=>{l.d=r(n,l.color)}),a.sort((l,s)=>l.d-s.d).slice(0,i).filter(l=>l.de[l.i]))},T2e=w2e,U_=e=>Math.max(e,0),G_=e=>Math.max(Math.min(e,1),0),A2e=(e,r,t)=>e===void 0||r===void 0?void 0:e+t*(r-e),M2e=e=>{let r=1-G_(e);return[.393+.607*r,.769-.769*r,.189-.189*r,0,.349-.349*r,.686+.314*r,.168-.168*r,0,.272-.272*r,.534-.534*r,.131+.869*r,0,0,0,0,1]},k2e=e=>{let r=U_(e);return[.213+.787*r,.715-.715*r,.072-.072*r,0,.213-.213*r,.715+.285*r,.072-.072*r,0,.213-.213*r,.715-.715*r,.072+.928*r,0,0,0,0,1]},S2e=e=>{let r=1-G_(e);return[.2126+.7874*r,.7152-.7152*r,.0722-.0722*r,0,.2126-.2126*r,.7152+.2848*r,.0722-.0722*r,0,.2126-.2126*r,.7152-.7152*r,.0722+.9278*r,0,0,0,0,1]},q2e=e=>{let r=Math.PI*e/180,t=Math.cos(r),a=Math.sin(r);return[.213+t*.787-a*.213,.715-t*.715-a*.715,.072-t*.072+a*.928,0,.213-t*.213+a*.143,.715+t*.285+a*.14,.072-t*.072-a*.283,0,.213-t*.213-a*.787,.715-t*.715+a*.715,.072+t*.928+a*.072,0,0,0,0,1]},gp=(e,r,t=!1)=>{let a=Yt(r),n=Sn(r).channels;return i=>{let o=a(i);if(!o)return;let l={mode:r},s,u=n.length;for(let c=0;c{let t=U_(e);return yh(N_(t),r,!0)},C2e=(e=1,r="rgb")=>{let t=U_(e);return yh(N_(t,(1-t)/2),r,!0)},D2e=(e=1,r="rgb")=>gp(M2e(e),r,!0),E2e=(e=1,r="rgb")=>gp(k2e(e),r,!0),P2e=(e=1,r="rgb")=>gp(S2e(e),r,!0),R2e=(e=1,r="rgb")=>{let t=G_(e);return yh((a,n)=>n==="alpha"?a:A2e(t,1-t,a),r,!0)},F2e=(e=0,r="rgb")=>gp(q2e(e),r,!0),z2e=Yt("rgb"),N2e=[[1,0,-0,0,1,0,-0,-0,1],[.856167,.182038,-.038205,.029342,.955115,.015544,-.00288,-.001563,1.004443],[.734766,.334872,-.069637,.05184,.919198,.028963,-.004928,-.004209,1.009137],[.630323,.465641,-.095964,.069181,.890046,.040773,-.006308,-.007724,1.014032],[.539009,.579343,-.118352,.082546,.866121,.051332,-.007136,-.011959,1.019095],[.458064,.679578,-.137642,.092785,.846313,.060902,-.007494,-.016807,1.024301],[.38545,.769005,-.154455,.100526,.829802,.069673,-.007442,-.02219,1.029632],[.319627,.849633,-.169261,.106241,.815969,.07779,-.007025,-.028051,1.035076],[.259411,.923008,-.18242,.110296,.80434,.085364,-.006276,-.034346,1.040622],[.203876,.990338,-.194214,.112975,.794542,.092483,-.005222,-.041043,1.046265],[.152286,1.052583,-.204868,.114503,.786281,.099216,-.003882,-.048116,1.051998]],I2e=[[1,0,-0,0,1,0,-0,-0,1],[.866435,.177704,-.044139,.049567,.939063,.01137,-.003453,.007233,.99622],[.760729,.319078,-.079807,.090568,.889315,.020117,-.006027,.013325,.992702],[.675425,.43385,-.109275,.125303,.847755,.026942,-.00795,.018572,.989378],[.605511,.52856,-.134071,.155318,.812366,.032316,-.009376,.023176,.9862],[.547494,.607765,-.155259,.181692,.781742,.036566,-.01041,.027275,.983136],[.498864,.674741,-.173604,.205199,.754872,.039929,-.011131,.030969,.980162],[.457771,.731899,-.18967,.226409,.731012,.042579,-.011595,.034333,.977261],[.422823,.781057,-.203881,.245752,.709602,.044646,-.011843,.037423,.974421],[.392952,.82361,-.216562,.263559,.69021,.046232,-.01191,.040281,.97163],[.367322,.860646,-.227968,.280085,.672501,.047413,-.01182,.04294,.968881]],B2e=[[1,0,-0,0,1,0,-0,-0,1],[.92667,.092514,-.019184,.021191,.964503,.014306,.008437,.054813,.93675],[.89572,.13333,-.02905,.029997,.9454,.024603,.013027,.104707,.882266],[.905871,.127791,-.033662,.026856,.941251,.031893,.01341,.148296,.838294],[.948035,.08949,-.037526,.014364,.946792,.038844,.010853,.193991,.795156],[1.017277,.027029,-.044306,-.006113,.958479,.047634,.006379,.248708,.744913],[1.104996,-.046633,-.058363,-.032137,.971635,.060503,.001336,.317922,.680742],[1.193214,-.109812,-.083402,-.058496,.97941,.079086,-.002346,.403492,.598854],[1.257728,-.139648,-.118081,-.078003,.975409,.102594,-.003316,.501214,.502102],[1.278864,-.125333,-.153531,-.084748,.957674,.127074,-989e-6,.601151,.399838],[1.255528,-.076749,-.178779,-.078411,.930809,.147602,.004733,.691367,.3039]],Y_=(e,r)=>{let t=Math.max(0,Math.min(1,r)),a=Math.round(t/.1),n=Math.round(t%.1),i=e[a];if(n>0&&aIu(i[s],o[s],n))}return o=>{let l=Lo(o);if(l===void 0)return;let{r:s,g:u,b:f}=z2e(l),c={mode:"rgb",r:i[0]*s+i[1]*u+i[2]*f,g:i[3]*s+i[4]*u+i[5]*f,b:i[6]*s+i[7]*u+i[8]*f};return l.alpha!==void 0&&(c.alpha=l.alpha),Yt(l.mode)(c)}},O2e=(e=1)=>Y_(N2e,e),H2e=(e=1)=>Y_(I2e,e),U2e=(e=1)=>Y_(B2e,e),G2e=e=>e*e*(3-2*e),Y2e=e=>.5-Math.sin(Math.asin(1-2*e)/3),V2e=e=>e*e*e*(e*(e*6-15)+10),j2e=V2e,W2e=e=>(1-Math.cos(e*Math.PI))/2,X2e=W2e;function h_(e){let r=Yt("lrgb")(e);return .2126*r.r+.7152*r.g+.0722*r.b}function Z2e(e,r){let t=h_(e),a=h_(r);return(Math.max(t,a)+.05)/(Math.min(t,a)+.05)}var $2e=Et($q),J2e=Et(rL),K2e=Et(oL),Q2e=Et(lL),e1e=Et(fL),r1e=Et(b_),t1e=Et(w_),a1e=Et(gL),n1e=Et(_L),i1e=Et(wL),o1e=Et(TL),l1e=Et(pp),s1e=Et(ML),u1e=Et(mp),f1e=Et(SL),c1e=Et(CL),v1e=Et(DL),h1e=Et(EL),d1e=Et(RL),p1e=Et(FL),m1e=Et(NL),y1e=Et(BL),g1e=Et(OL),b1e=Et(HL),x1e=Et(UL),_1e=Et(Hu),w1e=Et(jL),T1e=Et(WL),A1e=Et($L),M1e=Et(QL)});var V_={};Dt(V_,{default:()=>S1e});var k1e,S1e,j_=Ct(()=>{"use strict";k1e={format:{valType:"enumerated",values:["png","jpeg","webp","svg","full-json"],dflt:"png",description:"Sets the format of exported image."},width:{valType:"number",min:1,description:["Sets the exported image width.","Defaults to the value found in `layout.width`","If set to *null*, the exported image width will match the current graph width."].join(" ")},height:{valType:"number",min:1,description:["Sets the exported image height.","Defaults to the value found in `layout.height`","If set to *null*, the exported image height will match the current graph height."].join(" ")},scale:{valType:"number",min:0,dflt:1,description:["Sets a scaling for the generated image.","If set, all features of a graphs (e.g. text, line width)","are scaled, unlike simply setting","a bigger *width* and *height*."].join(" ")},setBackground:{valType:"any",dflt:!1,description:["Sets the image background mode.","By default, the image background is determined by `layout.paper_bgcolor`,","the *transparent* mode.","One might consider setting `setBackground` to *opaque*","when exporting a *jpeg* image as JPEGs do not support opacity."].join(" ")},imageDataOnly:{valType:"boolean",dflt:!1,description:["Determines whether or not the return value is prefixed by","the image format's corresponding 'data:image;' spec."].join(" ")}},S1e=k1e});var As=z((Uje,AC)=>{"use strict";var{format:q1e,width:L1e,height:C1e,scale:D1e}=(j_(),Ne(V_)).default,xC=D1e,{dflt:Hje}=xC,E1e=YS(xC,["dflt"]),_C={staticPlot:{valType:"boolean",dflt:!1},typesetMath:{valType:"boolean",dflt:!0},plotlyServerURL:{valType:"string",dflt:"https://cloud.plotly.com/newchart"},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","map"],extras:[!0,!1],dflt:"gl3d+geo+map"},doubleClick:{valType:"enumerated",values:[!1,"reset","autosize","reset+autosize"],dflt:"reset+autosize"},doubleClickDelay:{valType:"number",dflt:500,min:0},showAxisDragHandles:{valType:"boolean",dflt:!0},showAxisRangeEntryBoxes:{valType:"boolean",dflt:!0},showTips:{valType:"boolean",dflt:!0},displayNotifier:{valType:"boolean",dflt:!0},displayModeBar:{valType:"enumerated",values:["hover",!0,!1],dflt:"hover"},showSendToCloud:{valType:"boolean",dflt:!0},modeBarButtonsToRemove:{valType:"any",dflt:[]},modeBarButtonsToAdd:{valType:"any",dflt:[]},modeBarButtons:{valType:"any",dflt:!1},toImageButtonOptions:{format:q1e,filename:{valType:"string"},width:L1e,height:C1e,scale:E1e},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/un/"},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},locale:{valType:"string",dflt:"en-US"},locales:{valType:"any",dflt:{}}},wC={};function TC(e,r){for(let t in e){let a=e[t];typeof a!="object"||a===null||(a.valType?"dflt"in a&&(r[t]=a.dflt):(r[t]||(r[t]={}),TC(a,r[t])))}}TC(_C,wC);AC.exports={configAttributes:_C,dfltConfig:wC}});var X_=z((Yje,MC)=>{"use strict";var W_=Pr(),P1e=Br(),gh=[];MC.exports=function(e,r,t){var l;if(((l=t==null?void 0:t._context)==null?void 0:l.displayNotifier)===!1||gh.indexOf(e)!==-1)return;gh.push(e);var a=1e3;P1e(r)?a=r:r==="long"&&(a=3e3);var n=W_.select("body").selectAll(".plotly-notifier").data([0]);n.enter().append("div").classed("plotly-notifier",!0);var i=n.selectAll(".notifier-note").data(gh);function o(s){s.duration(700).style("opacity",0).each("end",function(u){var f=gh.indexOf(u);f!==-1&&gh.splice(f,1),W_.select(this).remove()})}i.enter().append("div").classed("notifier-note",!0).style("opacity",0).each(function(s){var u=W_.select(this);u.append("button").classed("notifier-close",!0).html("×").on("click",function(){u.transition().call(o)});for(var f=u.append("p"),c=s.split(//g),v=0;v{"use strict";var zc=As().dfltConfig,Z_=X_(),$_=kC.exports={};$_.log=function(){var e;if(zc.logging>1){var r=["LOG:"];for(e=0;e1){var t=[];for(e=0;e"),"long")}};$_.warn=function(){var e;if(zc.logging>0){var r=["WARN:"];for(e=0;e0){var t=[];for(e=0;e"),"stick")}};$_.error=function(){var e;if(zc.logging>0){var r=["ERROR:"];for(e=0;e0){var t=[];for(e=0;e"),"stick")}}});var Hi=z(Yu=>{"use strict";Yu.defaults=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"];Yu.defaultLine="#444";Yu.lightLine="#eee";Yu.background="#fff";Yu.borderLine="#BEC8D9";Yu.lightFraction=1e3/11});var qr=z((Wje,FC)=>{"use strict";var{converter:SC,formatHex:R1e,formatRgb:F1e,wcagContrast:z1e,wcagLuminance:N1e}=bC(),{isArrayOrTypedArray:qC}=Qn(),{warn:I1e}=Ms(),{background:xh,defaultLine:Q_,defaults:B1e,lightLine:O1e}=Hi(),LC=SC("rgb"),H1e=SC("hsl"),CC=e=>{if(typeof e!="string")return;let r=e.trim().toLowerCase();if(!/^[0-9a-f]+$/.test(r))try{return LC(r)}catch(t){return}},qn=e=>e>0?e>1?1:e:0,U1e={mode:"rgb",r:0,g:0,b:0,alpha:1},J_=e=>Math.round(e*255e6)/255e6,DC=e=>Jt(At({},e),{r:J_(e.r),g:J_(e.g),b:J_(e.b)}),yi=e=>F1e(DC(e)),G1e=e=>R1e(DC(e)),Y1e=e=>{var r,t,a,n;return typeof e=="string"?`"${e}"`:qC(e)?`${(t=(r=e.constructor)==null?void 0:r.name)!=null?t:"Array"}(${e.length})`:typeof e=="object"?(n=(a=e.constructor)==null?void 0:a.name)!=null?n:"Object":`${typeof e} ${e}`},fa=(e,r)=>{var a;let t=CC(e);return t?((a=t.alpha)!=null||(t.alpha=1),t):(!r&&e!=null&&I1e(`Invalid color specifier: ${Y1e(e)}. Defaulting to "#000"`),U1e)},bh=e=>yi(Jt(At({},fa(e)),{alpha:1})),V1e=e=>e?fa(e).alpha:0,EC=e=>qC(e)&&e.length>2&&Number.isFinite(e[0])&&Number.isFinite(e[1])&&Number.isFinite(e[2]),j1e=e=>{let[r,t,a,n]=e,i=Math.max(r,t,a)>1?1/255:1,o=n!=null?n:1;return{mode:"rgb",r:r*i,g:t*i,b:a*i,alpha:o>1?o/255:o}},W1e=(e,r)=>{let t=EC(e)?j1e(e):fa(e,!0),a=[qn(t.r),qn(t.g),qn(t.b),qn(t.alpha)];return r==="uint8"||r==="uint8_clamped"?Uint8Array.from(a,n=>Math.round(n*255)):r==="float32"?Float32Array.from(a):r==="float64"?Float64Array.from(a):a},X1e=(e,r)=>yi(Jt(At({},fa(e)),{alpha:qn(r)})),PC=(e,r)=>{let t=fa(e),a=t.alpha;if(a===1)return yi(t);let n=fa(r||xh),i=n.alpha,o=(l,s)=>(i===1?s:1-i+s*i)*(1-a)+l*a;return yi({mode:"rgb",r:o(t.r,n.r),g:o(t.g,n.g),b:o(t.b,n.b)})},Z1e=(e,r,t)=>{let a=fa(e),n=fa(r),i=(o,l)=>t*o+(1-t)*l;return yi({mode:"rgb",r:i(a.r,n.r),g:i(a.g,n.g),b:i(a.b,n.b)})},K_=(e,r)=>{let t=fa(e),a=H1e(t)||{mode:"hsl",h:0,s:0,l:0};return yi(LC(Jt(At({},a),{l:qn((a.l*100+r)/100),alpha:t.alpha})))},bp=(e,r)=>z1e(fa(e),fa(r)),RC=e=>bp(e,xh)>bp(e,Q_),$1e=yi(fa(xh)),J1e=yi(fa(Q_)),K1e=(e,r,t)=>(fa(e).alpha!==1&&(e=PC(e,xh)),RC(e)?r?K_(e,r):$1e:t?K_(e,-t):J1e),Q1e=(e,r)=>{e.style({stroke:bh(r),"stroke-opacity":fa(r).alpha})},epe=(e,r)=>{e.style({fill:bh(r),"fill-opacity":fa(r).alpha})},rpe=(e,r)=>!!(e&&r&&bh(e)===bh(r)),tpe=e=>CC(e)!==void 0,ape=(e,r)=>{r=r===0?0:r||10;let t=fa(e),a=r/100;return yi(Jt(At({},t),{r:qn(t.r+a),g:qn(t.g+a),b:qn(t.b+a)}))},npe=(e,r,t)=>{let a=fa(e),n=fa(r),i=t/100,o=n.alpha-a.alpha,l=2*i-1,s=((l*o===-1?l:(l+o)/(1+l*o))+1)/2,u=1-s,f=(c,v)=>u*c+s*v;return yi({mode:"rgb",r:f(a.r,n.r),g:f(a.g,n.g),b:f(a.b,n.b),alpha:a.alpha*(1-i)+n.alpha*i})},ipe=(e,r=["#000","#fff"])=>{let t,a=-1/0;for(let n of r){let i=bp(e,n);i>a&&(a=i,t=yi(fa(n)))}return t},ope=e=>yi(fa(e)),lpe=e=>G1e(fa(e)).toUpperCase(),spe=e=>{let r=fa(e);return[qn(r.r)*255,qn(r.g)*255,qn(r.b)*255,qn(r.alpha)]},upe=([e,r,t,a])=>yi({mode:"rgb",r:e/255,g:r/255,b:t/255,alpha:a}),fpe=e=>{let r=fa(e);return N1e({mode:"rgb",r:qn(r.r),g:qn(r.g),b:qn(r.b)})};FC.exports={addOpacity:X1e,adjustLightness:K_,background:xh,brighten:ape,combine:PC,contrast:K1e,defaultLine:Q_,defaults:B1e,equals:rpe,fill:epe,hexString:lpe,interpolate:Z1e,isChannelArray:EC,isDark:RC,isValid:tpe,lightLine:O1e,luminosity:fpe,mix:npe,mostReadable:ipe,normalize:W1e,opacity:V1e,parse:fa,rgb:bh,rgbaArray:spe,rgbaArrayToString:upe,rgbaString:ope,stroke:Q1e,wcagContrast:bp}});var Vu=z((Zje,IC)=>{"use strict";var cpe=qr(),xp={Greys:[[0,"rgb(0,0,0)"],[1,"rgb(255,255,255)"]],YlGnBu:[[0,"rgb(8,29,88)"],[.125,"rgb(37,52,148)"],[.25,"rgb(34,94,168)"],[.375,"rgb(29,145,192)"],[.5,"rgb(65,182,196)"],[.625,"rgb(127,205,187)"],[.75,"rgb(199,233,180)"],[.875,"rgb(237,248,217)"],[1,"rgb(255,255,217)"]],Greens:[[0,"rgb(0,68,27)"],[.125,"rgb(0,109,44)"],[.25,"rgb(35,139,69)"],[.375,"rgb(65,171,93)"],[.5,"rgb(116,196,118)"],[.625,"rgb(161,217,155)"],[.75,"rgb(199,233,192)"],[.875,"rgb(229,245,224)"],[1,"rgb(247,252,245)"]],YlOrRd:[[0,"rgb(128,0,38)"],[.125,"rgb(189,0,38)"],[.25,"rgb(227,26,28)"],[.375,"rgb(252,78,42)"],[.5,"rgb(253,141,60)"],[.625,"rgb(254,178,76)"],[.75,"rgb(254,217,118)"],[.875,"rgb(255,237,160)"],[1,"rgb(255,255,204)"]],Bluered:[[0,"rgb(0,0,255)"],[1,"rgb(255,0,0)"]],RdBu:[[0,"rgb(5,10,172)"],[.35,"rgb(106,137,247)"],[.5,"rgb(190,190,190)"],[.6,"rgb(220,170,132)"],[.7,"rgb(230,145,90)"],[1,"rgb(178,10,28)"]],Reds:[[0,"rgb(220,220,220)"],[.2,"rgb(245,195,157)"],[.4,"rgb(245,160,105)"],[1,"rgb(178,10,28)"]],Blues:[[0,"rgb(5,10,172)"],[.35,"rgb(40,60,190)"],[.5,"rgb(70,100,245)"],[.6,"rgb(90,120,245)"],[.7,"rgb(106,137,247)"],[1,"rgb(220,220,220)"]],Picnic:[[0,"rgb(0,0,255)"],[.1,"rgb(51,153,255)"],[.2,"rgb(102,204,255)"],[.3,"rgb(153,204,255)"],[.4,"rgb(204,204,255)"],[.5,"rgb(255,255,255)"],[.6,"rgb(255,204,255)"],[.7,"rgb(255,153,255)"],[.8,"rgb(255,102,204)"],[.9,"rgb(255,102,102)"],[1,"rgb(255,0,0)"]],Rainbow:[[0,"rgb(150,0,90)"],[.125,"rgb(0,0,200)"],[.25,"rgb(0,25,255)"],[.375,"rgb(0,152,255)"],[.5,"rgb(44,255,150)"],[.625,"rgb(151,255,0)"],[.75,"rgb(255,234,0)"],[.875,"rgb(255,111,0)"],[1,"rgb(255,0,0)"]],Portland:[[0,"rgb(12,51,131)"],[.25,"rgb(10,136,186)"],[.5,"rgb(242,211,56)"],[.75,"rgb(242,143,56)"],[1,"rgb(217,30,30)"]],Jet:[[0,"rgb(0,0,131)"],[.125,"rgb(0,60,170)"],[.375,"rgb(5,255,255)"],[.625,"rgb(255,255,0)"],[.875,"rgb(250,0,0)"],[1,"rgb(128,0,0)"]],Hot:[[0,"rgb(0,0,0)"],[.3,"rgb(230,0,0)"],[.6,"rgb(255,210,0)"],[1,"rgb(255,255,255)"]],Blackbody:[[0,"rgb(0,0,0)"],[.2,"rgb(230,0,0)"],[.4,"rgb(230,210,0)"],[.7,"rgb(255,255,255)"],[1,"rgb(160,200,255)"]],Earth:[[0,"rgb(0,0,130)"],[.1,"rgb(0,180,180)"],[.2,"rgb(40,210,40)"],[.4,"rgb(230,230,50)"],[.6,"rgb(120,70,20)"],[1,"rgb(255,255,255)"]],Electric:[[0,"rgb(0,0,0)"],[.15,"rgb(30,0,100)"],[.4,"rgb(120,0,100)"],[.6,"rgb(160,90,0)"],[.8,"rgb(230,200,0)"],[1,"rgb(255,250,220)"]],Viridis:[[0,"#440154"],[.06274509803921569,"#48186a"],[.12549019607843137,"#472d7b"],[.18823529411764706,"#424086"],[.25098039215686274,"#3b528b"],[.3137254901960784,"#33638d"],[.3764705882352941,"#2c728e"],[.4392156862745098,"#26828e"],[.5019607843137255,"#21918c"],[.5647058823529412,"#1fa088"],[.6274509803921569,"#28ae80"],[.6901960784313725,"#3fbc73"],[.7529411764705882,"#5ec962"],[.8156862745098039,"#84d44b"],[.8784313725490196,"#addc30"],[.9411764705882353,"#d8e219"],[1,"#fde725"]],Cividis:[[0,"rgb(0,32,76)"],[.058824,"rgb(0,42,102)"],[.117647,"rgb(0,52,110)"],[.176471,"rgb(39,63,108)"],[.235294,"rgb(60,74,107)"],[.294118,"rgb(76,85,107)"],[.352941,"rgb(91,95,109)"],[.411765,"rgb(104,106,112)"],[.470588,"rgb(117,117,117)"],[.529412,"rgb(131,129,120)"],[.588235,"rgb(146,140,120)"],[.647059,"rgb(161,152,118)"],[.705882,"rgb(176,165,114)"],[.764706,"rgb(192,177,109)"],[.823529,"rgb(209,191,102)"],[.882353,"rgb(225,204,92)"],[.941176,"rgb(243,219,79)"],[1,"rgb(255,233,69)"]]},zC=xp.RdBu;function vpe(e,r){if(r||(r=zC),!e)return r;function t(){try{e=xp[e]||JSON.parse(e)}catch(a){e=r}}return typeof e=="string"&&(t(),typeof e=="string"&&t()),NC(e)?e:r}function NC(e){var r=0;if(!Array.isArray(e)||e.length<2||!e[0]||!e[e.length-1]||+e[0][0]!=0||+e[e.length-1][0]!=1)return!1;for(var t=0;tmpe,HIDE_PLACEHOLDER:()=>ppe,SHOW_PLACEHOLDER:()=>dpe});var dpe,ppe,mpe,wp=Ct(()=>{"use strict";dpe=100,ppe=1e3,mpe=.2});var _h={};Dt(_h,{counter:()=>ju});function ju(e,r="",t,a){let n=r+(t?"":"$"),i=a===!1?"":"^";return e==="xy"?new RegExp(i+"x"+e4+"y"+e4+n):new RegExp(i+e+e4+n)}var e4,Nc=Ct(()=>{"use strict";e4="([2-9]|[1-9][0-9]+)?"});var HC=z(ri=>{"use strict";var r4=Br(),BC=St().extendFlat,ype=Gn(),gpe=Vu(),t4=qr(),bpe=(wp(),Ne(_p)).DESELECTDIM,Ic=Y1(),OC=(Nc(),Ne(_h)).counter,xpe=(kc(),Ne(Mc)).modHalf,Co=Qn().isArrayOrTypedArray,ks=Qn().isTypedArraySpec,Ss=Qn().decodeTypedArraySpec;ri.valObjectMeta={data_array:{coerceFunction:function(e,r,t){r.set(Co(e)?e:ks(e)?Ss(e):t)}},enumerated:{coerceFunction:function(e,r,t,a){a.coerceNumber&&(e=+e),a.values.indexOf(e)===-1?r.set(t):r.set(e)},validateFunction:function(e,r){r.coerceNumber&&(e=+e);for(var t=r.values,a=0;ai===!0||i===!1;n(e)||a.arrayOk&&Array.isArray(e)&&e.length>0&&e.every(n)?r.set(e):r.set(t)}},number:{coerceFunction:function(e,r,t,a){ks(e)&&(e=Ss(e)),!r4(e)||a.min!==void 0&&ea.max?r.set(t):r.set(+e)}},integer:{coerceFunction:function(e,r,t,a){if((a.extras||[]).indexOf(e)!==-1){r.set(e);return}ks(e)&&(e=Ss(e)),e%1||!r4(e)||a.min!==void 0&&ea.max?r.set(t):r.set(+e)}},string:{coerceFunction:function(e,r,t,a){if(typeof e!="string"){var n=typeof e=="number";a.strict===!0||!n?r.set(t):r.set(String(e))}else a.noBlank&&!e?r.set(t):r.set(e)}},color:{coerceFunction:function(e,r,t){ks(e)&&(e=Ss(e)),t4.isValid(e)?r.set(e):r.set(t)}},colorlist:{coerceFunction:function(e,r,t){!Array.isArray(e)||!e.length?r.set(t):e.every(a=>t4.isValid(a))?r.set(e):r.set(t)}},colorscale:{coerceFunction:function(e,r,t){r.set(gpe.get(e,t))}},angle:{coerceFunction:function(e,r,t){ks(e)&&(e=Ss(e)),e==="auto"?r.set("auto"):r4(e)?r.set(xpe(+e,360)):r.set(t)}},subplotid:{coerceFunction:function(e,r,t,a){var n=a.regex||OC(t);let i=o=>typeof o=="string"&&n.test(o);i(e)||a.arrayOk&&Co(e)&&e.length>0&&e.every(i)?r.set(e):r.set(t)},validateFunction:function(e,r){var t=r.dflt;return e===t?!0:typeof e!="string"?!1:!!OC(t).test(e)}},flaglist:{coerceFunction:function(e,r,t,a){if((a.extras||[]).indexOf(e)!==-1){r.set(e);return}if(typeof e!="string"){r.set(t);return}for(var n=e.split("+"),i=0;i{"use strict";UC.exports=function(){}});var a4=z((Kje,GC)=>{"use strict";GC.exports=function(r,t){if(t instanceof RegExp){for(var a=t.toString(),n=0;n{YC.exports=_pe;function _pe(){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}});var WC=z((eWe,jC)=>{jC.exports=wpe;function wpe(e){var r=new Float32Array(16);return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4],r[5]=e[5],r[6]=e[6],r[7]=e[7],r[8]=e[8],r[9]=e[9],r[10]=e[10],r[11]=e[11],r[12]=e[12],r[13]=e[13],r[14]=e[14],r[15]=e[15],r}});var ZC=z((rWe,XC)=>{XC.exports=Tpe;function Tpe(e,r){return e[0]=r[0],e[1]=r[1],e[2]=r[2],e[3]=r[3],e[4]=r[4],e[5]=r[5],e[6]=r[6],e[7]=r[7],e[8]=r[8],e[9]=r[9],e[10]=r[10],e[11]=r[11],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15],e}});var n4=z((tWe,$C)=>{$C.exports=Ape;function Ape(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}});var KC=z((aWe,JC)=>{JC.exports=Mpe;function Mpe(e,r){if(e===r){var t=r[1],a=r[2],n=r[3],i=r[6],o=r[7],l=r[11];e[1]=r[4],e[2]=r[8],e[3]=r[12],e[4]=t,e[6]=r[9],e[7]=r[13],e[8]=a,e[9]=i,e[11]=r[14],e[12]=n,e[13]=o,e[14]=l}else e[0]=r[0],e[1]=r[4],e[2]=r[8],e[3]=r[12],e[4]=r[1],e[5]=r[5],e[6]=r[9],e[7]=r[13],e[8]=r[2],e[9]=r[6],e[10]=r[10],e[11]=r[14],e[12]=r[3],e[13]=r[7],e[14]=r[11],e[15]=r[15];return e}});var eD=z((nWe,QC)=>{QC.exports=kpe;function kpe(e,r){var t=r[0],a=r[1],n=r[2],i=r[3],o=r[4],l=r[5],s=r[6],u=r[7],f=r[8],c=r[9],v=r[10],d=r[11],p=r[12],m=r[13],y=r[14],b=r[15],T=t*l-a*o,w=t*s-n*o,x=t*u-i*o,_=a*s-n*l,k=a*u-i*l,M=n*u-i*s,S=f*m-c*p,C=f*y-v*p,E=f*b-d*p,P=c*y-v*m,R=c*b-d*m,I=v*b-d*y,B=T*I-w*R+x*P+_*E-k*C+M*S;return B?(B=1/B,e[0]=(l*I-s*R+u*P)*B,e[1]=(n*R-a*I-i*P)*B,e[2]=(m*M-y*k+b*_)*B,e[3]=(v*k-c*M-d*_)*B,e[4]=(s*E-o*I-u*C)*B,e[5]=(t*I-n*E+i*C)*B,e[6]=(y*x-p*M-b*w)*B,e[7]=(f*M-v*x+d*w)*B,e[8]=(o*R-l*E+u*S)*B,e[9]=(a*E-t*R-i*S)*B,e[10]=(p*k-m*x+b*T)*B,e[11]=(c*x-f*k-d*T)*B,e[12]=(l*C-o*P-s*S)*B,e[13]=(t*P-a*C+n*S)*B,e[14]=(m*w-p*_-y*T)*B,e[15]=(f*_-c*w+v*T)*B,e):null}});var tD=z((iWe,rD)=>{rD.exports=Spe;function Spe(e,r){var t=r[0],a=r[1],n=r[2],i=r[3],o=r[4],l=r[5],s=r[6],u=r[7],f=r[8],c=r[9],v=r[10],d=r[11],p=r[12],m=r[13],y=r[14],b=r[15];return e[0]=l*(v*b-d*y)-c*(s*b-u*y)+m*(s*d-u*v),e[1]=-(a*(v*b-d*y)-c*(n*b-i*y)+m*(n*d-i*v)),e[2]=a*(s*b-u*y)-l*(n*b-i*y)+m*(n*u-i*s),e[3]=-(a*(s*d-u*v)-l*(n*d-i*v)+c*(n*u-i*s)),e[4]=-(o*(v*b-d*y)-f*(s*b-u*y)+p*(s*d-u*v)),e[5]=t*(v*b-d*y)-f*(n*b-i*y)+p*(n*d-i*v),e[6]=-(t*(s*b-u*y)-o*(n*b-i*y)+p*(n*u-i*s)),e[7]=t*(s*d-u*v)-o*(n*d-i*v)+f*(n*u-i*s),e[8]=o*(c*b-d*m)-f*(l*b-u*m)+p*(l*d-u*c),e[9]=-(t*(c*b-d*m)-f*(a*b-i*m)+p*(a*d-i*c)),e[10]=t*(l*b-u*m)-o*(a*b-i*m)+p*(a*u-i*l),e[11]=-(t*(l*d-u*c)-o*(a*d-i*c)+f*(a*u-i*l)),e[12]=-(o*(c*y-v*m)-f*(l*y-s*m)+p*(l*v-s*c)),e[13]=t*(c*y-v*m)-f*(a*y-n*m)+p*(a*v-n*c),e[14]=-(t*(l*y-s*m)-o*(a*y-n*m)+p*(a*s-n*l)),e[15]=t*(l*v-s*c)-o*(a*v-n*c)+f*(a*s-n*l),e}});var nD=z((oWe,aD)=>{aD.exports=qpe;function qpe(e){var r=e[0],t=e[1],a=e[2],n=e[3],i=e[4],o=e[5],l=e[6],s=e[7],u=e[8],f=e[9],c=e[10],v=e[11],d=e[12],p=e[13],m=e[14],y=e[15],b=r*o-t*i,T=r*l-a*i,w=r*s-n*i,x=t*l-a*o,_=t*s-n*o,k=a*s-n*l,M=u*p-f*d,S=u*m-c*d,C=u*y-v*d,E=f*m-c*p,P=f*y-v*p,R=c*y-v*m;return b*R-T*P+w*E+x*C-_*S+k*M}});var oD=z((lWe,iD)=>{iD.exports=Lpe;function Lpe(e,r,t){var a=r[0],n=r[1],i=r[2],o=r[3],l=r[4],s=r[5],u=r[6],f=r[7],c=r[8],v=r[9],d=r[10],p=r[11],m=r[12],y=r[13],b=r[14],T=r[15],w=t[0],x=t[1],_=t[2],k=t[3];return e[0]=w*a+x*l+_*c+k*m,e[1]=w*n+x*s+_*v+k*y,e[2]=w*i+x*u+_*d+k*b,e[3]=w*o+x*f+_*p+k*T,w=t[4],x=t[5],_=t[6],k=t[7],e[4]=w*a+x*l+_*c+k*m,e[5]=w*n+x*s+_*v+k*y,e[6]=w*i+x*u+_*d+k*b,e[7]=w*o+x*f+_*p+k*T,w=t[8],x=t[9],_=t[10],k=t[11],e[8]=w*a+x*l+_*c+k*m,e[9]=w*n+x*s+_*v+k*y,e[10]=w*i+x*u+_*d+k*b,e[11]=w*o+x*f+_*p+k*T,w=t[12],x=t[13],_=t[14],k=t[15],e[12]=w*a+x*l+_*c+k*m,e[13]=w*n+x*s+_*v+k*y,e[14]=w*i+x*u+_*d+k*b,e[15]=w*o+x*f+_*p+k*T,e}});var sD=z((sWe,lD)=>{lD.exports=Cpe;function Cpe(e,r,t){var a=t[0],n=t[1],i=t[2],o,l,s,u,f,c,v,d,p,m,y,b;return r===e?(e[12]=r[0]*a+r[4]*n+r[8]*i+r[12],e[13]=r[1]*a+r[5]*n+r[9]*i+r[13],e[14]=r[2]*a+r[6]*n+r[10]*i+r[14],e[15]=r[3]*a+r[7]*n+r[11]*i+r[15]):(o=r[0],l=r[1],s=r[2],u=r[3],f=r[4],c=r[5],v=r[6],d=r[7],p=r[8],m=r[9],y=r[10],b=r[11],e[0]=o,e[1]=l,e[2]=s,e[3]=u,e[4]=f,e[5]=c,e[6]=v,e[7]=d,e[8]=p,e[9]=m,e[10]=y,e[11]=b,e[12]=o*a+f*n+p*i+r[12],e[13]=l*a+c*n+m*i+r[13],e[14]=s*a+v*n+y*i+r[14],e[15]=u*a+d*n+b*i+r[15]),e}});var fD=z((uWe,uD)=>{uD.exports=Dpe;function Dpe(e,r,t){var a=t[0],n=t[1],i=t[2];return e[0]=r[0]*a,e[1]=r[1]*a,e[2]=r[2]*a,e[3]=r[3]*a,e[4]=r[4]*n,e[5]=r[5]*n,e[6]=r[6]*n,e[7]=r[7]*n,e[8]=r[8]*i,e[9]=r[9]*i,e[10]=r[10]*i,e[11]=r[11]*i,e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15],e}});var vD=z((fWe,cD)=>{cD.exports=Epe;function Epe(e,r,t,a){var n=a[0],i=a[1],o=a[2],l=Math.sqrt(n*n+i*i+o*o),s,u,f,c,v,d,p,m,y,b,T,w,x,_,k,M,S,C,E,P,R,I,B,N;return Math.abs(l)<1e-6?null:(l=1/l,n*=l,i*=l,o*=l,s=Math.sin(t),u=Math.cos(t),f=1-u,c=r[0],v=r[1],d=r[2],p=r[3],m=r[4],y=r[5],b=r[6],T=r[7],w=r[8],x=r[9],_=r[10],k=r[11],M=n*n*f+u,S=i*n*f+o*s,C=o*n*f-i*s,E=n*i*f-o*s,P=i*i*f+u,R=o*i*f+n*s,I=n*o*f+i*s,B=i*o*f-n*s,N=o*o*f+u,e[0]=c*M+m*S+w*C,e[1]=v*M+y*S+x*C,e[2]=d*M+b*S+_*C,e[3]=p*M+T*S+k*C,e[4]=c*E+m*P+w*R,e[5]=v*E+y*P+x*R,e[6]=d*E+b*P+_*R,e[7]=p*E+T*P+k*R,e[8]=c*I+m*B+w*N,e[9]=v*I+y*B+x*N,e[10]=d*I+b*B+_*N,e[11]=p*I+T*B+k*N,r!==e&&(e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e)}});var dD=z((cWe,hD)=>{hD.exports=Ppe;function Ppe(e,r,t){var a=Math.sin(t),n=Math.cos(t),i=r[4],o=r[5],l=r[6],s=r[7],u=r[8],f=r[9],c=r[10],v=r[11];return r!==e&&(e[0]=r[0],e[1]=r[1],e[2]=r[2],e[3]=r[3],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e[4]=i*n+u*a,e[5]=o*n+f*a,e[6]=l*n+c*a,e[7]=s*n+v*a,e[8]=u*n-i*a,e[9]=f*n-o*a,e[10]=c*n-l*a,e[11]=v*n-s*a,e}});var mD=z((vWe,pD)=>{pD.exports=Rpe;function Rpe(e,r,t){var a=Math.sin(t),n=Math.cos(t),i=r[0],o=r[1],l=r[2],s=r[3],u=r[8],f=r[9],c=r[10],v=r[11];return r!==e&&(e[4]=r[4],e[5]=r[5],e[6]=r[6],e[7]=r[7],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e[0]=i*n-u*a,e[1]=o*n-f*a,e[2]=l*n-c*a,e[3]=s*n-v*a,e[8]=i*a+u*n,e[9]=o*a+f*n,e[10]=l*a+c*n,e[11]=s*a+v*n,e}});var gD=z((hWe,yD)=>{yD.exports=Fpe;function Fpe(e,r,t){var a=Math.sin(t),n=Math.cos(t),i=r[0],o=r[1],l=r[2],s=r[3],u=r[4],f=r[5],c=r[6],v=r[7];return r!==e&&(e[8]=r[8],e[9]=r[9],e[10]=r[10],e[11]=r[11],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e[0]=i*n+u*a,e[1]=o*n+f*a,e[2]=l*n+c*a,e[3]=s*n+v*a,e[4]=u*n-i*a,e[5]=f*n-o*a,e[6]=c*n-l*a,e[7]=v*n-s*a,e}});var xD=z((dWe,bD)=>{bD.exports=zpe;function zpe(e,r,t){var a,n,i,o=t[0],l=t[1],s=t[2],u=Math.sqrt(o*o+l*l+s*s);return Math.abs(u)<1e-6?null:(u=1/u,o*=u,l*=u,s*=u,a=Math.sin(r),n=Math.cos(r),i=1-n,e[0]=o*o*i+n,e[1]=l*o*i+s*a,e[2]=s*o*i-l*a,e[3]=0,e[4]=o*l*i-s*a,e[5]=l*l*i+n,e[6]=s*l*i+o*a,e[7]=0,e[8]=o*s*i+l*a,e[9]=l*s*i-o*a,e[10]=s*s*i+n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e)}});var wD=z((pWe,_D)=>{_D.exports=Npe;function Npe(e,r,t){var a=r[0],n=r[1],i=r[2],o=r[3],l=a+a,s=n+n,u=i+i,f=a*l,c=a*s,v=a*u,d=n*s,p=n*u,m=i*u,y=o*l,b=o*s,T=o*u;return e[0]=1-(d+m),e[1]=c+T,e[2]=v-b,e[3]=0,e[4]=c-T,e[5]=1-(f+m),e[6]=p+y,e[7]=0,e[8]=v+b,e[9]=p-y,e[10]=1-(f+d),e[11]=0,e[12]=t[0],e[13]=t[1],e[14]=t[2],e[15]=1,e}});var AD=z((mWe,TD)=>{TD.exports=Ipe;function Ipe(e,r){return e[0]=r[0],e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=r[1],e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=r[2],e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var kD=z((yWe,MD)=>{MD.exports=Bpe;function Bpe(e,r){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]=r[0],e[13]=r[1],e[14]=r[2],e[15]=1,e}});var qD=z((gWe,SD)=>{SD.exports=Ope;function Ope(e,r){var t=Math.sin(r),a=Math.cos(r);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=a,e[6]=t,e[7]=0,e[8]=0,e[9]=-t,e[10]=a,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var CD=z((bWe,LD)=>{LD.exports=Hpe;function Hpe(e,r){var t=Math.sin(r),a=Math.cos(r);return e[0]=a,e[1]=0,e[2]=-t,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=t,e[9]=0,e[10]=a,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var ED=z((xWe,DD)=>{DD.exports=Upe;function Upe(e,r){var t=Math.sin(r),a=Math.cos(r);return e[0]=a,e[1]=t,e[2]=0,e[3]=0,e[4]=-t,e[5]=a,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}});var RD=z((_We,PD)=>{PD.exports=Gpe;function Gpe(e,r){var t=r[0],a=r[1],n=r[2],i=r[3],o=t+t,l=a+a,s=n+n,u=t*o,f=a*o,c=a*l,v=n*o,d=n*l,p=n*s,m=i*o,y=i*l,b=i*s;return e[0]=1-c-p,e[1]=f+b,e[2]=v-y,e[3]=0,e[4]=f-b,e[5]=1-u-p,e[6]=d+m,e[7]=0,e[8]=v+y,e[9]=d-m,e[10]=1-u-c,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var zD=z((wWe,FD)=>{FD.exports=Ype;function Ype(e,r,t,a,n,i,o){var l=1/(t-r),s=1/(n-a),u=1/(i-o);return e[0]=i*2*l,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=i*2*s,e[6]=0,e[7]=0,e[8]=(t+r)*l,e[9]=(n+a)*s,e[10]=(o+i)*u,e[11]=-1,e[12]=0,e[13]=0,e[14]=o*i*2*u,e[15]=0,e}});var ID=z((TWe,ND)=>{ND.exports=Vpe;function Vpe(e,r,t,a,n){var i=1/Math.tan(r/2),o=1/(a-n);return e[0]=i/t,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=i,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=(n+a)*o,e[11]=-1,e[12]=0,e[13]=0,e[14]=2*n*a*o,e[15]=0,e}});var OD=z((AWe,BD)=>{BD.exports=jpe;function jpe(e,r,t,a){var n=Math.tan(r.upDegrees*Math.PI/180),i=Math.tan(r.downDegrees*Math.PI/180),o=Math.tan(r.leftDegrees*Math.PI/180),l=Math.tan(r.rightDegrees*Math.PI/180),s=2/(o+l),u=2/(n+i);return e[0]=s,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=u,e[6]=0,e[7]=0,e[8]=-((o-l)*s*.5),e[9]=(n-i)*u*.5,e[10]=a/(t-a),e[11]=-1,e[12]=0,e[13]=0,e[14]=a*t/(t-a),e[15]=0,e}});var UD=z((MWe,HD)=>{HD.exports=Wpe;function Wpe(e,r,t,a,n,i,o){var l=1/(r-t),s=1/(a-n),u=1/(i-o);return e[0]=-2*l,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*s,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*u,e[11]=0,e[12]=(r+t)*l,e[13]=(n+a)*s,e[14]=(o+i)*u,e[15]=1,e}});var YD=z((kWe,GD)=>{var Xpe=n4();GD.exports=Zpe;function Zpe(e,r,t,a){var n,i,o,l,s,u,f,c,v,d,p=r[0],m=r[1],y=r[2],b=a[0],T=a[1],w=a[2],x=t[0],_=t[1],k=t[2];return Math.abs(p-x)<1e-6&&Math.abs(m-_)<1e-6&&Math.abs(y-k)<1e-6?Xpe(e):(f=p-x,c=m-_,v=y-k,d=1/Math.sqrt(f*f+c*c+v*v),f*=d,c*=d,v*=d,n=T*v-w*c,i=w*f-b*v,o=b*c-T*f,d=Math.sqrt(n*n+i*i+o*o),d?(d=1/d,n*=d,i*=d,o*=d):(n=0,i=0,o=0),l=c*o-v*i,s=v*n-f*o,u=f*i-c*n,d=Math.sqrt(l*l+s*s+u*u),d?(d=1/d,l*=d,s*=d,u*=d):(l=0,s=0,u=0),e[0]=n,e[1]=l,e[2]=f,e[3]=0,e[4]=i,e[5]=s,e[6]=c,e[7]=0,e[8]=o,e[9]=u,e[10]=v,e[11]=0,e[12]=-(n*p+i*m+o*y),e[13]=-(l*p+s*m+u*y),e[14]=-(f*p+c*m+v*y),e[15]=1,e)}});var jD=z((SWe,VD)=>{VD.exports=$pe;function $pe(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]+")"}});var i4=z((qWe,WD)=>{WD.exports={create:VC(),clone:WC(),copy:ZC(),identity:n4(),transpose:KC(),invert:eD(),adjoint:tD(),determinant:nD(),multiply:oD(),translate:sD(),scale:fD(),rotate:vD(),rotateX:dD(),rotateY:mD(),rotateZ:gD(),fromRotation:xD(),fromRotationTranslation:wD(),fromScaling:AD(),fromTranslation:kD(),fromXRotation:qD(),fromYRotation:CD(),fromZRotation:ED(),fromQuat:RD(),frustum:zD(),perspective:ID(),perspectiveFromFieldOfView:OD(),ortho:UD(),lookAt:YD(),str:jD()}});var Mp=z(ga=>{"use strict";var Jpe=i4();ga.init2dArray=function(e,r){for(var t=new Array(e),a=0;a{"use strict";var Kpe=Pr(),XD=Ms(),Qpe=Mp(),eme=i4();function rme(e){var r;if(typeof e=="string"){if(r=document.getElementById(e),r===null)throw new Error("No DOM element with id '"+e+"' exists on the page.");return r}else if(e==null)throw new Error("DOM element provided is null or undefined");return e}function tme(e){var r=Kpe.select(e);return r.node()instanceof HTMLElement&&r.size()&&r.classed("js-plotly-plot")}function ZD(e){var r=e&&e.parentNode;r&&r.removeChild(e)}function ame(e,r){$D("global",e,r)}function $D(e,r,t){var a="plotly.js-style-"+e,n=document.getElementById(a);if(!(n&&n.matches(".no-inline-styles"))){n||(n=document.createElement("style"),n.setAttribute("id",a),n.appendChild(document.createTextNode("")),document.head.appendChild(n));var i=n.sheet;i?i.insertRule?i.insertRule(r+"{"+t+"}",0):i.addRule?i.addRule(r,t,0):XD.warn("addStyleRule failed"):XD.warn("Cannot addRelatedStyleRule, probably due to strict CSP...")}}function nme(e){var r="plotly.js-style-"+e,t=document.getElementById(r);t&&ZD(t)}function ime(e,r,t,a,n,i){var o=a.split(":"),l=n.split(":"),s="data-btn-style-event-added";i||(i=document),i.querySelectorAll(e).forEach(function(u){u._hoverStyle={activeStyleParts:o,inactiveStyleParts:l},u.getAttribute(s)||(u.addEventListener("mouseenter",function(){var f=this._hoverStyle,c=this.querySelector(t);c&&(c.style[f.activeStyleParts[0]]=f.activeStyleParts[1])}),u.addEventListener("mouseleave",function(){var f=this._hoverStyle,c=this.querySelector(t);c&&(r&&this.matches(r)?c.style[f.activeStyleParts[0]]=f.activeStyleParts[1]:c.style[f.inactiveStyleParts[0]]=f.inactiveStyleParts[1])}),u.setAttribute(s,!0))})}function ome(e){var r=KD(e),t=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];return r.forEach(function(a){var n=JD(a);if(n){var i=Qpe.convertCssMatrix(n);t=eme.multiply(t,t,i)}}),t}function JD(e){var r=window.getComputedStyle(e,null),t=r.getPropertyValue("-webkit-transform")||r.getPropertyValue("-moz-transform")||r.getPropertyValue("-ms-transform")||r.getPropertyValue("-o-transform")||r.getPropertyValue("transform");return t==="none"?null:t.replace("matrix","").replace("3d","").slice(1,-1).split(",").map(function(a){return+a})}function KD(e){for(var r=[];lme(e);)r.push(e),e=e.parentNode,typeof ShadowRoot=="function"&&e instanceof ShadowRoot&&(e=e.host);return r}function lme(e){return e&&(e instanceof Element||e instanceof HTMLElement)}function sme(e,r){return e&&r&&e.top===r.top&&e.left===r.left&&e.right===r.right&&e.bottom===r.bottom}QD.exports={getGraphDiv:rme,isPlotDiv:tme,removeElement:ZD,addStyleRule:ame,addRelatedStyleRule:$D,deleteRelatedStyleRule:nme,setStyleOnHover:ime,getFullTransformMatrix:ome,getElementTransformMatrix:JD,getElementAndAncestors:KD,equalDomRects:sme}});var Th=z((DWe,eE)=>{"use strict";eE.exports={mode:{valType:"enumerated",dflt:"afterall",values:["immediate","next","afterall"]},direction:{valType:"enumerated",values:["forward","reverse"],dflt:"forward"},fromcurrent:{valType:"boolean",dflt:!1},frame:{duration:{valType:"number",min:0,dflt:500},redraw:{valType:"boolean",dflt:!0}},transition:{duration:{valType:"number",min:0,dflt:500,editType:"none"},easing:{valType:"enumerated",dflt:"cubic-in-out",values:["linear","quad","cubic","sin","exp","circle","elastic","back","bounce","linear-in","quad-in","cubic-in","sin-in","exp-in","circle-in","elastic-in","back-in","bounce-in","linear-out","quad-out","cubic-out","sin-out","exp-out","circle-out","elastic-out","back-out","bounce-out","linear-in-out","quad-in-out","cubic-in-out","sin-in-out","exp-in-out","circle-in-out","elastic-in-out","back-in-out","bounce-in-out"],editType:"none"},ordering:{valType:"enumerated",values:["layout first","traces first"],dflt:"layout first",editType:"none"}}}});var Do=z((EWe,lE)=>{"use strict";var tE=St().extendFlat,ume=Fu(),aE={valType:"flaglist",extras:["none"],flags:["calc","clearAxisTypes","plot","style","markerSize","colorbars"]},nE={valType:"flaglist",extras:["none"],flags:["calc","plot","legend","ticks","axrange","layoutstyle","modebar","camera","arraydraw","colorbars"]},fme=aE.flags.slice().concat(["fullReplot"]),cme=nE.flags.slice().concat("layoutReplot");lE.exports={traces:aE,layout:nE,traceFlags:function(){return rE(fme)},layoutFlags:function(){return rE(cme)},update:function(e,r){var t=r.editType;if(t&&t!=="none")for(var a=t.split("+"),n=0;n{"use strict";o4.dash={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",editType:"style"};o4.pattern={shape:{valType:"enumerated",values:["","/","\\","x","-","|","+","."],dflt:"",arrayOk:!0,editType:"style"},path:{valType:"string",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"}});var l4={};Dt(l4,{DATE_FORMAT_LINK:()=>hme,FORMAT_LINK:()=>vme});var vme,hme,s4=Ct(()=>{"use strict";vme="https://github.com/d3/d3-format/tree/v1.4.5#d3-format",hme="https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format"});var gi=z(Bc=>{"use strict";var{DATE_FORMAT_LINK:dme,FORMAT_LINK:pme}=(s4(),Ne(l4)),mme=["Variables that can't be found will be replaced with the specifier.",'For example, a template of "data: %{x}, %{y}" will result in a value of "data: 1, %{y}" if x is 1 and y is missing.',"Variables with an undefined value will be replaced with the fallback value."].join(" ");function yme({supportOther:e}={}){return["Variables are inserted using %{variable},",'for example "y: %{y}"'+(e?" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown.":"."),`Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}".`,pme,"for details on the formatting syntax.",`Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}".`,dme,"for details on the date formatting syntax.",mme].join(" ")}Bc.templateFormatStringDescription=yme;Bc.hovertemplateAttrs=({editType:e="none",arrayOk:r}={},t={})=>At({valType:"string",dflt:"",editType:e},r!==!1?{arrayOk:!0}:{});Bc.texttemplateAttrs=({editType:e="calc",arrayOk:r}={},t={})=>At({valType:"string",dflt:"",editType:e},r!==!1?{arrayOk:!0}:{});Bc.shapeTexttemplateAttrs=({editType:e="arraydraw",newshape:r}={},t={})=>({valType:"string",dflt:"",editType:e});Bc.templatefallbackAttrs=({editType:e="none"}={})=>({valType:"any",dflt:"-",editType:e})});var qp=z((zWe,hE)=>{"use strict";function qs(e,r){return r?r.d2l(e):e}function sE(e,r){return r?r.l2d(e):e}function gme(e){return e.x0}function bme(e){return e.x1}function xme(e){return e.y0}function _me(e){return e.y1}function uE(e){return e.x0shift||0}function fE(e){return e.x1shift||0}function cE(e){return e.y0shift||0}function vE(e){return e.y1shift||0}function kp(e,r){return qs(e.x1,r)+fE(e)-qs(e.x0,r)-uE(e)}function Sp(e,r,t){return qs(e.y1,t)+vE(e)-qs(e.y0,t)-cE(e)}function wme(e,r){return Math.abs(kp(e,r))}function Tme(e,r,t){return Math.abs(Sp(e,r,t))}function Ame(e,r,t){return e.type!=="line"?void 0:Math.sqrt(Math.pow(kp(e,r),2)+Math.pow(Sp(e,r,t),2))}function Mme(e,r){return sE((qs(e.x1,r)+fE(e)+qs(e.x0,r)+uE(e))/2,r)}function kme(e,r,t){return sE((qs(e.y1,t)+vE(e)+qs(e.y0,t)+cE(e))/2,t)}function Sme(e,r,t){return e.type!=="line"?void 0:Sp(e,r,t)/kp(e,r)}var qme=["x0","x1","y0","y1","dy","height","ycenter"],Lme=["x0","x1","y0","y1","dx","width","xcenter"];hE.exports={x0:gme,x1:bme,y0:xme,y1:_me,slope:Sme,dx:kp,dy:Sp,width:wme,height:Tme,length:Ame,xcenter:Mme,ycenter:kme,simpleXVariables:qme,simpleYVariables:Lme}});var mE=z((NWe,pE)=>{"use strict";var Cme=Do().overrideAll,Wu=Gn(),dE=Ia(),Dme=Ui().dash,Ls=St().extendFlat,{shapeTexttemplateAttrs:Eme,templatefallbackAttrs:Pme}=gi(),Rme=qp();pE.exports=Cme({newshape:{visible:Ls({},Wu.visible,{}),showlegend:{valType:"boolean",dflt:!1},legend:Ls({},Wu.legend,{}),legendgroup:Ls({},Wu.legendgroup,{}),legendgrouptitle:{text:Ls({},Wu.legendgrouptitle.text,{}),font:dE({})},legendrank:Ls({},Wu.legendrank,{}),legendwidth:Ls({},Wu.legendwidth,{}),line:{color:{valType:"color"},width:{valType:"number",min:0,dflt:4},dash:Ls({},Dme,{dflt:"solid"})},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd"},opacity:{valType:"number",min:0,max:1,dflt:1},layer:{valType:"enumerated",values:["below","above","between"],dflt:"above"},drawdirection:{valType:"enumerated",values:["ortho","horizontal","vertical","diagonal"],dflt:"diagonal"},name:Ls({},Wu.name,{}),label:{text:{valType:"string",dflt:""},texttemplate:Eme({newshape:!0},{keys:Object.keys(Rme)}),texttemplatefallback:Pme({editType:"arraydraw"}),font:dE({}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"]},textangle:{valType:"angle",dflt:"auto"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto"},yanchor:{valType:"enumerated",values:["top","middle","bottom"]},padding:{valType:"number",dflt:3,min:0}}},activeshape:{fillcolor:{valType:"color",dflt:"rgb(255,0,255)",description:"Sets the color filling the active shape' interior."},opacity:{valType:"number",min:0,max:1,dflt:.5}}},"none","from-root")});var gE=z((IWe,yE)=>{"use strict";var Fme=Ui().dash,zme=St().extendFlat;yE.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:zme({},Fme,{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"}}});var Lp=z((BWe,bE)=>{"use strict";bE.exports=function(e){var r=e.editType;return{t:{valType:"number",dflt:0,editType:r},r:{valType:"number",dflt:0,editType:r},b:{valType:"number",dflt:0,editType:r},l:{valType:"number",dflt:0,editType:r},editType:r}}});var Oc=z((OWe,TE)=>{"use strict";var u4=Ia(),Nme=Th(),Cp=Hi(),xE=mE(),_E=gE(),Ime=Lp(),wE=St().extendFlat,Dp=u4({editType:"calc"});Dp.family.dflt='"Open Sans", verdana, arial, sans-serif';Dp.size.dflt=12;Dp.color.dflt=Cp.defaultLine;TE.exports={font:Dp,title:{text:{valType:"string",editType:"layoutstyle"},font:u4({editType:"layoutstyle"}),subtitle:{text:{valType:"string",editType:"layoutstyle"},font:u4({editType:"layoutstyle"}),editType:"layoutstyle"},xref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle"},yref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle"},x:{valType:"number",min:0,max:1,dflt:.5,editType:"layoutstyle"},y:{valType:"number",min:0,max:1,dflt:"auto",editType:"layoutstyle"},xanchor:{valType:"enumerated",dflt:"auto",values:["auto","left","center","right"],editType:"layoutstyle"},yanchor:{valType:"enumerated",dflt:"auto",values:["auto","top","middle","bottom"],editType:"layoutstyle"},pad:wE(Ime({editType:"layoutstyle"}),{}),automargin:{valType:"boolean",dflt:!1,editType:"plot"},editType:"layoutstyle"},uniformtext:{mode:{valType:"enumerated",values:[!1,"hide","show"],dflt:!1,editType:"plot"},minsize:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"},autosize:{valType:"boolean",dflt:!1,editType:"none"},width:{valType:"number",min:10,dflt:700,editType:"plot"},height:{valType:"number",min:10,dflt:450,editType:"plot"},minreducedwidth:{valType:"number",min:2,dflt:64,editType:"plot"},minreducedheight:{valType:"number",min:2,dflt:64,editType:"plot"},margin:{l:{valType:"number",min:0,dflt:80,editType:"plot"},r:{valType:"number",min:0,dflt:80,editType:"plot"},t:{valType:"number",min:0,dflt:100,editType:"plot"},b:{valType:"number",min:0,dflt:80,editType:"plot"},pad:{valType:"number",min:0,dflt:0,editType:"plot"},autoexpand:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},computed:{valType:"any",editType:"none"},paper_bgcolor:{valType:"color",dflt:Cp.background,editType:"plot"},plot_bgcolor:{valType:"color",dflt:Cp.background,editType:"layoutstyle"},autotypenumbers:{valType:"enumerated",values:["convert types","strict"],dflt:"convert types",editType:"calc"},separators:{valType:"string",editType:"plot"},showlegend:{valType:"boolean",editType:"legend"},colorway:{valType:"colorlist",dflt:Cp.defaults,editType:"calc"},datarevision:{valType:"any",editType:"calc"},uirevision:{valType:"any",editType:"none"},editrevision:{valType:"any",editType:"none"},selectionrevision:{valType:"any",editType:"none"},template:{valType:"any",editType:"calc"},newshape:xE.newshape,activeshape:xE.activeshape,newselection:_E.newselection,activeselection:_E.activeselection,meta:{valType:"any",arrayOk:!0,editType:"plot"},transition:wE({},Nme.transition,{editType:"none"})}});var AE=z(()=>{(function(){if(!document.getElementById("9f215cf04c5486422605d13261cb87401f4e7763b6296af81e98efbc0130da53")){var e=document.createElement("style");e.id="9f215cf04c5486422605d13261cb87401f4e7763b6296af81e98efbc0130da53",e.textContent='.maplibregl-map{font:12px/20px Helvetica Neue,Arial,Helvetica,sans-serif;overflow:hidden;position:relative;-webkit-tap-highlight-color:rgb(0 0 0/0);-webkit-touch-callout:none}.maplibregl-canvas{position:absolute;left:0;top:0}.maplibregl-map:fullscreen{width:100%;height:100%}.maplibregl-ctrl-group button.maplibregl-ctrl-compass{touch-action:none}.maplibregl-canvas-container.maplibregl-interactive,.maplibregl-ctrl-group button.maplibregl-ctrl-compass{cursor:grab;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-canvas-container.maplibregl-interactive.maplibregl-track-pointer{cursor:pointer}.maplibregl-canvas-container.maplibregl-interactive:active,.maplibregl-ctrl-group button.maplibregl-ctrl-compass:active{cursor:grabbing}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-canvas-container.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:pinch-zoom}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:none}.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures,.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-ctrl-bottom-left,.maplibregl-ctrl-bottom-right,.maplibregl-ctrl-top-left,.maplibregl-ctrl-top-right{position:absolute;pointer-events:none;z-index:2}.maplibregl-ctrl-top-left{top:0;left:0}.maplibregl-ctrl-top-right{top:0;right:0}.maplibregl-ctrl-bottom-left{bottom:0;left:0}.maplibregl-ctrl-bottom-right{right:0;bottom:0}.maplibregl-ctrl{clear:both;pointer-events:auto;transform:translate(0)}.maplibregl-ctrl-top-left .maplibregl-ctrl{margin:10px 0 0 10px;float:left}.maplibregl-ctrl-top-right .maplibregl-ctrl{margin:10px 10px 0 0;float:right}.maplibregl-ctrl-bottom-left .maplibregl-ctrl{margin:0 0 10px 10px;float:left}.maplibregl-ctrl-bottom-right .maplibregl-ctrl{margin:0 10px 10px 0;float:right}.maplibregl-ctrl-group{border-radius:4px;background:#fff}.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px rgba(0,0,0,.1)}@media (forced-colors:active){.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px ButtonText}}.maplibregl-ctrl-group button{width:29px;height:29px;display:block;padding:0;outline:none;border:0;box-sizing:border-box;background-color:transparent;cursor:pointer}.maplibregl-ctrl button{-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-ctrl-group button+button{border-top:1px solid #ddd}.maplibregl-ctrl button .maplibregl-ctrl-icon{display:block;width:100%;height:100%;background-repeat:no-repeat;background-position:50%}@media (forced-colors:active){.maplibregl-ctrl-icon{background-color:transparent}.maplibregl-ctrl-group button+button{border-top:1px solid ButtonText}}.maplibregl-ctrl button::-moz-focus-inner{border:0;padding:0}.maplibregl-ctrl-attrib-button:focus,.maplibregl-ctrl-group button:focus{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl button:disabled{cursor:not-allowed}.maplibregl-ctrl button:disabled .maplibregl-ctrl-icon{opacity:.25}@media (hover:hover){.maplibregl-ctrl button:not(:disabled):hover{background-color:rgba(0,0,0,.05)}}.maplibregl-ctrl button:not(:disabled):active{background-color:rgba(0,0,0,.05)}.maplibregl-ctrl-group button:focus:focus-visible{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl-group button:focus:not(:focus-visible){box-shadow:none}.maplibregl-ctrl-group button:focus:first-child{border-radius:4px 4px 0 0}.maplibregl-ctrl-group button:focus:last-child{border-radius:0 0 4px 4px}.maplibregl-ctrl-group button:focus:only-child{border-radius:inherit}.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M10%2013c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h9c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M14.5%208.5c-.75%200-1.5.75-1.5%201.5v3h-3c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h3v3c0%20.75.75%201.5%201.5%201.5S16%2019.75%2016%2019v-3h3c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013h-3v-3c0-.75-.75-1.5-1.5-1.5%22%2F%3E%3C%2Fsvg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M10%2013c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h9c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M14.5%208.5c-.75%200-1.5.75-1.5%201.5v3h-3c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h3v3c0%20.75.75%201.5%201.5%201.5S16%2019.75%2016%2019v-3h3c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013h-3v-3c0-.75-.75-1.5-1.5-1.5%22%2F%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M10%2013c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h9c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M14.5%208.5c-.75%200-1.5.75-1.5%201.5v3h-3c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h3v3c0%20.75.75%201.5%201.5%201.5S16%2019.75%2016%2019v-3h3c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013h-3v-3c0-.75-.75-1.5-1.5-1.5%22%2F%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M24%2016v5.5c0%201.75-.75%202.5-2.5%202.5H16v-1l3-1.5-4-5.5%201-1%205.5%204%201.5-3zM6%2016l1.5%203%205.5-4%201%201-4%205.5%203%201.5v1H7.5C5.75%2024%205%2023.25%205%2021.5V16zm7-11v1l-3%201.5%204%205.5-1%201-5.5-4L6%2013H5V7.5C5%205.75%205.75%205%207.5%205zm11%202.5c0-1.75-.75-2.5-2.5-2.5H16v1l3%201.5-4%205.5%201%201%205.5-4%201.5%203h1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M18.5%2016c-1.75%200-2.5.75-2.5%202.5V24h1l1.5-3%205.5%204%201-1-4-5.5%203-1.5v-1zM13%2018.5c0-1.75-.75-2.5-2.5-2.5H5v1l3%201.5L4%2024l1%201%205.5-4%201.5%203h1zm3-8c0%201.75.75%202.5%202.5%202.5H24v-1l-3-1.5L25%205l-1-1-5.5%204L17%205h-1zM10.5%2013c1.75%200%202.5-.75%202.5-2.5V5h-1l-1.5%203L5%204%204%205l4%205.5L5%2012v1z%22%2F%3E%3C%2Fsvg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M24%2016v5.5c0%201.75-.75%202.5-2.5%202.5H16v-1l3-1.5-4-5.5%201-1%205.5%204%201.5-3zM6%2016l1.5%203%205.5-4%201%201-4%205.5%203%201.5v1H7.5C5.75%2024%205%2023.25%205%2021.5V16zm7-11v1l-3%201.5%204%205.5-1%201-5.5-4L6%2013H5V7.5C5%205.75%205.75%205%207.5%205zm11%202.5c0-1.75-.75-2.5-2.5-2.5H16v1l3%201.5-4%205.5%201%201%205.5-4%201.5%203h1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M18.5%2016c-1.75%200-2.5.75-2.5%202.5V24h1l1.5-3%205.5%204%201-1-4-5.5%203-1.5v-1zM13%2018.5c0-1.75-.75-2.5-2.5-2.5H5v1l3%201.5L4%2024l1%201%205.5-4%201.5%203h1zm3-8c0%201.75.75%202.5%202.5%202.5H24v-1l-3-1.5L25%205l-1-1-5.5%204L17%205h-1zM10.5%2013c1.75%200%202.5-.75%202.5-2.5V5h-1l-1.5%203L5%204%204%205l4%205.5L5%2012v1z%22%2F%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M24%2016v5.5c0%201.75-.75%202.5-2.5%202.5H16v-1l3-1.5-4-5.5%201-1%205.5%204%201.5-3zM6%2016l1.5%203%205.5-4%201%201-4%205.5%203%201.5v1H7.5C5.75%2024%205%2023.25%205%2021.5V16zm7-11v1l-3%201.5%204%205.5-1%201-5.5-4L6%2013H5V7.5C5%205.75%205.75%205%207.5%205zm11%202.5c0-1.75-.75-2.5-2.5-2.5H16v1l3%201.5-4%205.5%201%201%205.5-4%201.5%203h1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M18.5%2016c-1.75%200-2.5.75-2.5%202.5V24h1l1.5-3%205.5%204%201-1-4-5.5%203-1.5v-1zM13%2018.5c0-1.75-.75-2.5-2.5-2.5H5v1l3%201.5L4%2024l1%201%205.5-4%201.5%203h1zm3-8c0%201.75.75%202.5%202.5%202.5H24v-1l-3-1.5L25%205l-1-1-5.5%204L17%205h-1zM10.5%2013c1.75%200%202.5-.75%202.5-2.5V5h-1l-1.5%203L5%204%204%205l4%205.5L5%2012v1z%22%2F%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22m10.5%2014%204-8%204%208z%22%2F%3E%3Cpath%20fill%3D%22%23ccc%22%20d%3D%22m10.5%2016%204%208%204-8z%22%2F%3E%3C%2Fsvg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22m10.5%2014%204-8%204%208z%22%2F%3E%3Cpath%20fill%3D%22%23ccc%22%20d%3D%22m10.5%2016%204%208%204-8z%22%2F%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22m10.5%2014%204-8%204%208z%22%2F%3E%3Cpath%20fill%3D%22%23ccc%22%20d%3D%22m10.5%2016%204%208%204-8z%22%2F%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-globe .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2222%22%20height%3D%2222%22%20fill%3D%22none%22%20stroke%3D%22%23333%22%20viewBox%3D%220%200%2022%2022%22%3E%3Ccircle%20cx%3D%2211%22%20cy%3D%2211%22%20r%3D%228.5%22%2F%3E%3Cpath%20d%3D%22M17.5%2011c0%204.819-3.02%208.5-6.5%208.5S4.5%2015.819%204.5%2011%207.52%202.5%2011%202.5s6.5%203.681%206.5%208.5Z%22%2F%3E%3Cpath%20d%3D%22M13.5%2011c0%202.447-.331%204.64-.853%206.206-.262.785-.562%201.384-.872%201.777-.314.399-.58.517-.775.517s-.461-.118-.775-.517c-.31-.393-.61-.992-.872-1.777C8.831%2015.64%208.5%2013.446%208.5%2011s.331-4.64.853-6.206c.262-.785.562-1.384.872-1.777.314-.399.58-.517.775-.517s.461.118.775.517c.31.393.61.992.872%201.777.522%201.565.853%203.76.853%206.206Z%22%2F%3E%3Cpath%20d%3D%22M11%207.5c-1.909%200-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3%201.3%200%200%201-.224-.138q.07-.058.224-.138c.299-.151.763-.302%201.379-.434C7.378%205.666%209.091%205.5%2011%205.5s3.622.166%204.845.428c.616.132%201.08.283%201.379.434.105.053.177.1.224.138q-.07.058-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm0%209c-1.909%200-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3%201.3%200%200%201-.224-.138%201.3%201.3%200%200%201%20.224-.138c.299-.151.763-.302%201.379-.434C7.378%2014.666%209.091%2014.5%2011%2014.5s3.622.166%204.845.428c.616.132%201.08.283%201.379.434.105.053.177.1.224.138a1.3%201.3%200%200%201-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm0-4c-2.46%200-4.672-.222-6.255-.574-.796-.177-1.406-.38-1.805-.59a1.5%201.5%200%200%201-.39-.272.3.3%200%200%201-.047-.064.3.3%200%200%201%20.048-.064c.066-.073.189-.167.389-.272.399-.21%201.009-.413%201.805-.59C6.328%209.722%208.54%209.5%2011%209.5s4.672.222%206.256.574c.795.177%201.405.38%201.804.59.2.105.323.2.39.272a.3.3%200%200%201%20.047.064.3.3%200%200%201-.048.064%201.4%201.4%200%200%201-.389.272c-.399.21-1.009.413-1.804.59-1.584.352-3.796.574-6.256.574Zm-8.501-1.51v.002zm0%20.018v.002zm17.002.002v-.002zm0-.018v-.002z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-globe-enabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2222%22%20height%3D%2222%22%20fill%3D%22none%22%20stroke%3D%22%2333b5e5%22%20viewBox%3D%220%200%2022%2022%22%3E%3Ccircle%20cx%3D%2211%22%20cy%3D%2211%22%20r%3D%228.5%22%2F%3E%3Cpath%20d%3D%22M17.5%2011c0%204.819-3.02%208.5-6.5%208.5S4.5%2015.819%204.5%2011%207.52%202.5%2011%202.5s6.5%203.681%206.5%208.5Z%22%2F%3E%3Cpath%20d%3D%22M13.5%2011c0%202.447-.331%204.64-.853%206.206-.262.785-.562%201.384-.872%201.777-.314.399-.58.517-.775.517s-.461-.118-.775-.517c-.31-.393-.61-.992-.872-1.777C8.831%2015.64%208.5%2013.446%208.5%2011s.331-4.64.853-6.206c.262-.785.562-1.384.872-1.777.314-.399.58-.517.775-.517s.461.118.775.517c.31.393.61.992.872%201.777.522%201.565.853%203.76.853%206.206Z%22%2F%3E%3Cpath%20d%3D%22M11%207.5c-1.909%200-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3%201.3%200%200%201-.224-.138q.07-.058.224-.138c.299-.151.763-.302%201.379-.434C7.378%205.666%209.091%205.5%2011%205.5s3.622.166%204.845.428c.616.132%201.08.283%201.379.434.105.053.177.1.224.138q-.07.058-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm0%209c-1.909%200-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3%201.3%200%200%201-.224-.138%201.3%201.3%200%200%201%20.224-.138c.299-.151.763-.302%201.379-.434C7.378%2014.666%209.091%2014.5%2011%2014.5s3.622.166%204.845.428c.616.132%201.08.283%201.379.434.105.053.177.1.224.138a1.3%201.3%200%200%201-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm0-4c-2.46%200-4.672-.222-6.255-.574-.796-.177-1.406-.38-1.805-.59a1.5%201.5%200%200%201-.39-.272.3.3%200%200%201-.047-.064.3.3%200%200%201%20.048-.064c.066-.073.189-.167.389-.272.399-.21%201.009-.413%201.805-.59C6.328%209.722%208.54%209.5%2011%209.5s4.672.222%206.256.574c.795.177%201.405.38%201.804.59.2.105.323.2.39.272a.3.3%200%200%201%20.047.064.3.3%200%200%201-.048.064%201.4%201.4%200%200%201-.389.272c-.399.21-1.009.413-1.804.59-1.584.352-3.796.574-6.256.574Zm-8.501-1.51v.002zm0%20.018v.002zm17.002.002v-.002zm0-.018v-.002z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-terrain .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2222%22%20height%3D%2222%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2022%2022%22%3E%3Cpath%20d%3D%22m1.754%2013.406%204.453-4.851%203.09%203.09%203.281%203.277.969-.969-3.309-3.312%203.844-4.121%206.148%206.886h1.082v-.855l-7.207-8.07-4.84%205.187L6.169%206.57l-5.48%205.965v.871ZM.688%2016.844h20.625v1.375H.688Zm0%200%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-terrain-enabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2222%22%20height%3D%2222%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2022%2022%22%3E%3Cpath%20d%3D%22m1.754%2013.406%204.453-4.851%203.09%203.09%203.281%203.277.969-.969-3.309-3.312%203.844-4.121%206.148%206.886h1.082v-.855l-7.207-8.07-4.84%205.187L6.169%206.57l-5.48%205.965v.871ZM.688%2016.844h20.625v1.375H.688Zm0%200%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23aaa%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3Cpath%20fill%3D%22red%22%20d%3D%22m14%205%201%201-9%209-1-1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23e58978%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23e54e33%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-waiting .maplibregl-ctrl-icon{animation:maplibregl-spin 2s linear infinite}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23999%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3Cpath%20fill%3D%22red%22%20d%3D%22m14%205%201%201-9%209-1-1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23e58978%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23e54e33%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23666%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3Cpath%20fill%3D%22red%22%20d%3D%22m14%205%201%201-9%209-1-1z%22%2F%3E%3C%2Fsvg%3E")}}@keyframes maplibregl-spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}a.maplibregl-ctrl-logo{width:88px;height:23px;margin:0 0 -4px -4px;display:block;background-repeat:no-repeat;cursor:pointer;overflow:hidden;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2288%22%20height%3D%2223%22%20fill%3D%22none%22%3E%3Cpath%20fill%3D%22%23000%22%20fill-opacity%3D%22.4%22%20fill-rule%3D%22evenodd%22%20d%3D%22M17.408%2016.796h-1.827l2.501-12.095h.198l3.324%206.533.988%202.19.988-2.19%203.258-6.533h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.929%205.644h-.098l-2.914-5.644-.757-1.71-.345%201.71zm1.958-3.42-.726%203.663a1.255%201.255%200%200%201-1.232%201.011h-1.827a1.255%201.255%200%200%201-1.229-1.509l2.501-12.095a1.255%201.255%200%200%201%201.23-1.001h.197a1.25%201.25%200%200%201%201.12.685l3.19%206.273%203.125-6.263a1.25%201.25%200%200%201%201.123-.695h.181a1.255%201.255%200%200%201%201.227.991l1.443%206.71a5%205%200%200%201%20.314-.787l.009-.016a4.6%204.6%200%200%201%201.777-1.887c.782-.46%201.668-.667%202.611-.667a4.6%204.6%200%200%201%201.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255%201.255%200%200%201%201.212.925%201.255%201.255%200%200%201%201.212-.925h1.711c.284%200%20.545.094.755.252.613-.3%201.312-.45%202.075-.45%201.356%200%202.557.445%203.482%201.4q.47.48.763%201.064V4.701a1.255%201.255%200%200%201%201.255-1.255h1.86A1.255%201.255%200%200%201%2054.44%204.7v9.194h2.217c.19%200%20.37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42%202.42%200%200%201-.682-1.71c0-.665.267-1.253.735-1.7a2.45%202.45%200%200%201%201.722-.674%202.43%202.43%200%200%201%201.705.675q.318.302.504.683V4.7a1.255%201.255%200%200%201%201.255-1.255h1.744A1.255%201.255%200%200%201%2065.812%204.7v3.335a4.8%204.8%200%200%201%201.526-.246c.938%200%201.817.214%202.59.69a4.47%204.47%200%200%201%201.67%201.743v-.98a1.255%201.255%200%200%201%201.256-1.256h1.777c.233%200%20.451.064.639.174a3.4%203.4%200%200%201%201.567-.372c.346%200%20.861.02%201.285.232a1.25%201.25%200%200%201%20.689%201.004%204.7%204.7%200%200%201%20.853-.588c.795-.44%201.675-.647%202.61-.647%201.385%200%202.65.39%203.525%201.396.836.938%201.168%202.173%201.168%203.528q-.001.515-.056%201.051a1.255%201.255%200%200%201-.947%201.09l.408.952a1.255%201.255%200%200%201-.477%201.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06%200-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8%205.8%200%200%201-.548-2.512q0-.429.053-.843a1.3%201.3%200%200%201-.333-.086l-.166-.004c-.223%200-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255%201.255%200%200%201-1.256%201.256h-1.777a1.255%201.255%200%200%201-1.256-1.256V15.69l-.032.057a4.8%204.8%200%200%201-1.86%201.833%205.04%205.04%200%200%201-2.484.634%204.5%204.5%200%200%201-1.935-.424%201.25%201.25%200%200%201-.764.258h-1.71a1.255%201.255%200%200%201-1.256-1.255V7.687a2.4%202.4%200%200%201-.428.625c.253.23.412.561.412.93v7.553a1.255%201.255%200%200%201-1.256%201.255h-1.843a1.25%201.25%200%200%201-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255%201.255%200%200%201-1.256-1.255v-1.251l-.061.117a4.7%204.7%200%200%201-1.782%201.884%204.77%204.77%200%200%201-2.485.67%205.6%205.6%200%200%201-1.485-.188l.009%202.764a1.255%201.255%200%200%201-1.255%201.259h-1.729a1.255%201.255%200%200%201-1.255-1.255v-3.537a1.255%201.255%200%200%201-1.167.793h-1.679a1.25%201.25%200%200%201-.77-.263%204.5%204.5%200%200%201-1.945.429c-.885%200-1.724-.21-2.495-.632l-.017-.01a5%205%200%200%201-1.081-.836%201.255%201.255%200%200%201-1.254%201.312h-1.81a1.255%201.255%200%200%201-1.228-.99l-.782-3.625-2.044%203.939a1.25%201.25%200%200%201-1.115.676h-.098a1.25%201.25%200%200%201-1.116-.68l-2.061-3.994zM35.92%2016.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033%201.332h1.678V9.242h-1.694l-.033%201.267q-.133-.329-.526-.658l-.032-.028a3.2%203.2%200%200%200-.668-.428l-.27-.12a3.3%203.3%200%200%200-1.235-.23q-1.136-.001-1.974.493a3.36%203.36%200%200%200-1.3%201.382q-.445.89-.444%202.074%200%201.2.51%202.107a3.8%203.8%200%200%200%201.382%201.381%203.9%203.9%200%200%200%201.893.477q.795%200%201.455-.33zm-2.789-5.38q-.576.675-.575%201.762%200%201.102.559%201.794.576.675%201.645.675a2.25%202.25%200%200%200%20.934-.19%202.2%202.2%200%200%200%20.468-.29l.178-.161a2.2%202.2%200%200%200%20.397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2%202.2%200%200%200-.633-.709l-.13-.086-.047-.028a2.1%202.1%200%200%200-1.073-.285q-1.052%200-1.629.692zm2.316%202.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96%200%200%200-.353-.389.85.85%200%200%200-.464-.127c-.4%200-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945%200%20.506.122.801.27.99.097.11.266.224.68.224.303%200%20.504-.09.687-.269zm7.545%201.705a2.6%202.6%200%200%200%20.331.423q.319.33.755.548l.173.074q.65.255%201.49.255%201.02%200%201.844-.493a3.45%203.45%200%200%200%201.316-1.4q.493-.904.493-2.089%200-1.909-.988-2.913-.988-1.02-2.584-1.02-.898%200-1.575.347a3%203%200%200%200-.415.262l-.199.166a3.4%203.4%200%200%200-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296%201.119.297%201.07%200%201.645-.675.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.435%200-.835.16a2%202%200%200%200-.284.136%202%202%200%200%200-.363.254%202.2%202.2%200%200%200-.46.569l-.082.162a2.6%202.6%200%200%200-.213%201.072v.115q0%20.707.296%201.267l.135.211zm.964-.818a1.1%201.1%200%200%200%20.367.385.94.94%200%200%200%20.476.118c.423%200%20.59-.117.687-.23.159-.194.28-.478.28-.95%200-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1%201%200%200%200-.503.135l-.012.007a.86.86%200%200%200-.335.343c-.073.133-.132.324-.132.614v.115a1.4%201.4%200%200%200%20.14.66zm15.7-6.222q.347-.346.346-.856a1.05%201.05%200%200%200-.345-.79%201.18%201.18%200%200%200-.84-.329q-.51%200-.855.33a1.05%201.05%200%200%200-.346.79q0%20.51.346.855.345.346.856.346.51%200%20.839-.346zm4.337%209.314.033-1.332q.191.403.59.747l.098.081a4%204%200%200%200%20.316.224l.223.122a3.2%203.2%200%200%200%201.44.322%203.8%203.8%200%200%200%201.875-.477%203.5%203.5%200%200%200%201.382-1.366q.527-.89.526-2.09%200-1.184-.444-2.073a3.24%203.24%200%200%200-1.283-1.399q-.823-.51-1.942-.51a3.5%203.5%200%200%200-1.527.344l-.086.043-.165.09a3%203%200%200%200-.33.214q-.432.315-.656.707a2%202%200%200%200-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5%202.5%200%200%200%20.566.7q.117.098.245.18l.144.08a2.1%202.1%200%200%200%20.975.232q1.07%200%201.645-.675.576-.69.576-1.778%200-1.102-.576-1.777-.56-.691-1.645-.692a2.2%202.2%200%200%200-1.015.235q-.22.113-.415.282l-.15.142a2.1%202.1%200%200%200-.42.594q-.223.479-.223%201.1v.115q0%20.705.293%201.26zm2.616-.293c.157-.191.28-.479.28-.967%200-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87%200%200%200-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0%20.285.057.499.144.669a1.1%201.1%200%200%200%20.367.405c.137.082.28.123.455.123.423%200%20.59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493%200%20.642.099l.247-1.794q-.196-.099-.717-.099a2.3%202.3%200%200%200-.545.063%202%202%200%200%200-.411.148%202.2%202.2%200%200%200-.4.249%202.5%202.5%200%200%200-.485.499%202.7%202.7%200%200%200-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5%201.5%200%200%201%20.466-.636%202.5%202.5%200%200%201%20.399-.253%202%202%200%200%201%20.224-.099zm9.784%202.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46%203.46%200%200%200-1.4%201.382q-.493.906-.493%202.106%200%201.07.428%201.975.428.89%201.332%201.432.906.526%202.255.526.973%200%201.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954%200-1.497-.444a1.6%201.6%200%200%201-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1%201%200%200%200-.156-.176q-.46-.428-1.316-.428-.986%200-1.494.604-.379.45-.494%201.234zm-27.053%202.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z%22%2F%3E%3Cpath%20fill%3D%22%23fff%22%20d%3D%22m19.63%2011.151-.757-1.71-.345%201.71-1.12%205.644h-1.827L18.083%204.7h.197l3.325%206.533.988%202.19.988-2.19L26.839%204.7h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.93%205.644h-.098l-2.913-5.644zm14.836%205.81q-1.02%200-1.893-.478a3.8%203.8%200%200%201-1.381-1.382q-.51-.906-.51-2.106%200-1.185.444-2.074a3.36%203.36%200%200%201%201.3-1.382q.839-.494%201.974-.494a3.3%203.3%200%200%201%201.234.231%203.3%203.3%200%200%201%20.97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02%201.053a3.17%203.17%200%200%201-1.662.444zm.296-1.482q.938%200%201.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2%202.2%200%200%200-.807-.872%202.1%202.1%200%200%200-1.119-.313q-1.053%200-1.629.692-.575.675-.575%201.76%200%201.103.559%201.795.577.675%201.645.675zm6.521-6.237h1.711v1.4q.906-1.597%202.83-1.597%201.596%200%202.584%201.02.988%201.005.988%202.914%200%201.185-.493%202.09a3.46%203.46%200%200%201-1.316%201.399%203.5%203.5%200%200%201-1.844.493q-.954%200-1.662-.329a2.67%202.67%200%200%201-1.086-.97l.017%205.134h-1.728zm4.048%206.22q1.07%200%201.645-.674.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.592%200-1.12.296-.51.28-.822.823-.296.527-.296%201.234v.115q0%20.708.296%201.267.313.543.823.855.51.296%201.119.297z%22%2F%3E%3Cpath%20fill%3D%22%23e1e3e9%22%20d%3D%22M51.325%204.7h1.86v10.45h3.473v1.646h-5.333zm7.12%204.542h1.843v7.553h-1.843zm.905-1.415a1.16%201.16%200%200%201-.856-.346%201.17%201.17%200%200%201-.346-.856%201.05%201.05%200%200%201%20.346-.79q.346-.329.856-.329.494%200%20.839.33a1.05%201.05%200%200%201%20.345.79%201.16%201.16%200%200%201-.345.855q-.33.346-.84.346zm7.875%209.133a3.17%203.17%200%200%201-1.662-.444q-.723-.46-1.004-1.053l-.033%201.332h-1.71V4.701h1.743v4.657l-.082%201.283q.279-.658%201.086-1.119a3.5%203.5%200%200%201%201.778-.477q1.119%200%201.942.51a3.24%203.24%200%200%201%201.283%201.4q.445.888.444%202.072%200%201.201-.526%202.09a3.5%203.5%200%200%201-1.382%201.366%203.8%203.8%200%200%201-1.876.477zm-.296-1.481q1.069%200%201.645-.675.577-.69.577-1.778%200-1.102-.577-1.776-.56-.691-1.645-.692a2.12%202.12%200%200%200-1.58.659q-.642.641-.642%201.694v.115q0%20.71.296%201.267a2.4%202.4%200%200%200%20.807.872%202.1%202.1%200%200%200%201.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14%202.14%200%200%201%201.349-.46q.527%200%20.724.098l-.247%201.794q-.149-.099-.642-.099-.774%200-1.416.494-.626.493-.626%201.58v3.883h-1.777V9.242zm9.534%207.718q-1.35%200-2.255-.526-.904-.543-1.332-1.432a4.6%204.6%200%200%201-.428-1.975q0-1.2.493-2.106a3.46%203.46%200%200%201%201.4-1.382q.889-.495%202.007-.494%201.744%200%202.584.97.855.956.856%202.7%200%20.444-.05.92h-5.43q.18%201.005.708%201.45.542.443%201.497.443.79%200%201.3-.131a4%204%200%200%200%20.938-.362l.542%201.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728%200-1.991%201.86z%22%2F%3E%3Cpath%20d%3D%22M5.074%2015.948a.484.657%200%200%200-.486.659v1.84a.484.657%200%200%200%20.486.659h4.101a.484.657%200%200%200%20.486-.659v-1.84a.484.657%200%200%200-.486-.659zm3.56%201.16H5.617v.838h3.017z%22%20style%3D%22fill%3A%23fff%3Bfill-rule%3Aevenodd%3Bstroke-width%3A1.03600001%22%2F%3E%3Cg%20style%3D%22stroke-width%3A1.12603545%22%3E%3Cpath%20d%3D%22M-9.408-1.416c-3.833-.025-7.056%202.912-7.08%206.615-.02%203.08%201.653%204.832%203.107%206.268.903.892%201.721%201.74%202.32%202.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87%201.87%200%200%200-.362%201.121l-.011%201.877c-.003.402.104.787.347%201.125.244.338.688.653%201.23.656l4.142.028c.542.003.99-.306%201.238-.641a1.87%201.87%200%200%200%20.363-1.121l.012-1.875a1.87%201.87%200%200%200-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145%201.425-1.983%202.348-2.87%201.473-1.414%203.18-3.149%203.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006%201.1v.002c3.274.02%205.92%202.532%205.9%205.6-.017%202.706-1.39%204.026-2.863%205.44-1.034.994-2.118%202.033-2.814%203.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34%200%200%201-.226.084.34.34%200%200%201-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067%202.7-5.545%205.975-5.523m-.02%202.826c-1.62-.01-2.944%201.315-2.955%202.96-.01%201.646%201.295%202.988%202.916%202.999h.002c1.621.01%202.943-1.316%202.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005%201.1c1.017.006%201.829.83%201.822%201.89s-.83%201.874-1.848%201.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874%201.848-1.868m-2.155%2011.857%204.14.025c.271.002.49.305.487.676l-.013%201.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668%22%20style%3D%22color%3A%23000%3Bfont-style%3Anormal%3Bfont-variant%3Anormal%3Bfont-weight%3A400%3Bfont-stretch%3Anormal%3Bfont-size%3Amedium%3Bline-height%3Anormal%3Bfont-family%3Asans-serif%3Bfont-variant-ligatures%3Anormal%3Bfont-variant-position%3Anormal%3Bfont-variant-caps%3Anormal%3Bfont-variant-numeric%3Anormal%3Bfont-variant-alternates%3Anormal%3Bfont-feature-settings%3Anormal%3Btext-indent%3A0%3Btext-align%3Astart%3Btext-decoration%3Anone%3Btext-decoration-line%3Anone%3Btext-decoration-style%3Asolid%3Btext-decoration-color%3A%23000%3Bletter-spacing%3Anormal%3Bword-spacing%3Anormal%3Btext-transform%3Anone%3Bwriting-mode%3Alr-tb%3Bdirection%3Altr%3Btext-orientation%3Amixed%3Bdominant-baseline%3Aauto%3Bbaseline-shift%3Abaseline%3Btext-anchor%3Astart%3Bwhite-space%3Anormal%3Bshape-padding%3A0%3Bclip-rule%3Aevenodd%3Bdisplay%3Ainline%3Boverflow%3Avisible%3Bvisibility%3Avisible%3Bopacity%3A1%3Bisolation%3Aauto%3Bmix-blend-mode%3Anormal%3Bcolor-interpolation%3AsRGB%3Bcolor-interpolation-filters%3AlinearRGB%3Bsolid-color%3A%23000%3Bsolid-opacity%3A1%3Bvector-effect%3Anone%3Bfill%3A%23000%3Bfill-opacity%3A.4%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-linecap%3Abutt%3Bstroke-linejoin%3Amiter%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-dashoffset%3A0%3Bstroke-opacity%3A1%3Bcolor-rendering%3Aauto%3Bimage-rendering%3Aauto%3Bshape-rendering%3Aauto%3Btext-rendering%3Aauto%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-9.415-.316C-12.69-.338-15.37%202.14-15.39%205.207c-.017%202.716%201.326%204.041%202.78%205.477%201.013%201%202.081%202.055%202.78%203.67l.092.076a.34.34%200%200%200%20.225.086.34.34%200%200%200%20.227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6%201.78-2.64%202.814-3.634%201.473-1.414%202.847-2.733%202.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057%208.784c1.621.011%202.944-1.315%202.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945%201.315-2.955%202.96s1.295%202.989%202.916%203%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23e1e3e9%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-11.594%2015.465c-.27-.002-.492.297-.494.668l-.012%201.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23fff%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E")}a.maplibregl-ctrl-logo.maplibregl-compact{width:14px}@media (forced-colors:active){a.maplibregl-ctrl-logo{background-color:transparent;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2288%22%20height%3D%2223%22%20fill%3D%22none%22%3E%3Cpath%20fill%3D%22%23000%22%20fill-opacity%3D%22.4%22%20fill-rule%3D%22evenodd%22%20d%3D%22M17.408%2016.796h-1.827l2.501-12.095h.198l3.324%206.533.988%202.19.988-2.19%203.258-6.533h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.929%205.644h-.098l-2.914-5.644-.757-1.71-.345%201.71zm1.958-3.42-.726%203.663a1.255%201.255%200%200%201-1.232%201.011h-1.827a1.255%201.255%200%200%201-1.229-1.509l2.501-12.095a1.255%201.255%200%200%201%201.23-1.001h.197a1.25%201.25%200%200%201%201.12.685l3.19%206.273%203.125-6.263a1.25%201.25%200%200%201%201.123-.695h.181a1.255%201.255%200%200%201%201.227.991l1.443%206.71a5%205%200%200%201%20.314-.787l.009-.016a4.6%204.6%200%200%201%201.777-1.887c.782-.46%201.668-.667%202.611-.667a4.6%204.6%200%200%201%201.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255%201.255%200%200%201%201.212.925%201.255%201.255%200%200%201%201.212-.925h1.711c.284%200%20.545.094.755.252.613-.3%201.312-.45%202.075-.45%201.356%200%202.557.445%203.482%201.4q.47.48.763%201.064V4.701a1.255%201.255%200%200%201%201.255-1.255h1.86A1.255%201.255%200%200%201%2054.44%204.7v9.194h2.217c.19%200%20.37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42%202.42%200%200%201-.682-1.71c0-.665.267-1.253.735-1.7a2.45%202.45%200%200%201%201.722-.674%202.43%202.43%200%200%201%201.705.675q.318.302.504.683V4.7a1.255%201.255%200%200%201%201.255-1.255h1.744A1.255%201.255%200%200%201%2065.812%204.7v3.335a4.8%204.8%200%200%201%201.526-.246c.938%200%201.817.214%202.59.69a4.47%204.47%200%200%201%201.67%201.743v-.98a1.255%201.255%200%200%201%201.256-1.256h1.777c.233%200%20.451.064.639.174a3.4%203.4%200%200%201%201.567-.372c.346%200%20.861.02%201.285.232a1.25%201.25%200%200%201%20.689%201.004%204.7%204.7%200%200%201%20.853-.588c.795-.44%201.675-.647%202.61-.647%201.385%200%202.65.39%203.525%201.396.836.938%201.168%202.173%201.168%203.528q-.001.515-.056%201.051a1.255%201.255%200%200%201-.947%201.09l.408.952a1.255%201.255%200%200%201-.477%201.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06%200-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8%205.8%200%200%201-.548-2.512q0-.429.053-.843a1.3%201.3%200%200%201-.333-.086l-.166-.004c-.223%200-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255%201.255%200%200%201-1.256%201.256h-1.777a1.255%201.255%200%200%201-1.256-1.256V15.69l-.032.057a4.8%204.8%200%200%201-1.86%201.833%205.04%205.04%200%200%201-2.484.634%204.5%204.5%200%200%201-1.935-.424%201.25%201.25%200%200%201-.764.258h-1.71a1.255%201.255%200%200%201-1.256-1.255V7.687a2.4%202.4%200%200%201-.428.625c.253.23.412.561.412.93v7.553a1.255%201.255%200%200%201-1.256%201.255h-1.843a1.25%201.25%200%200%201-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255%201.255%200%200%201-1.256-1.255v-1.251l-.061.117a4.7%204.7%200%200%201-1.782%201.884%204.77%204.77%200%200%201-2.485.67%205.6%205.6%200%200%201-1.485-.188l.009%202.764a1.255%201.255%200%200%201-1.255%201.259h-1.729a1.255%201.255%200%200%201-1.255-1.255v-3.537a1.255%201.255%200%200%201-1.167.793h-1.679a1.25%201.25%200%200%201-.77-.263%204.5%204.5%200%200%201-1.945.429c-.885%200-1.724-.21-2.495-.632l-.017-.01a5%205%200%200%201-1.081-.836%201.255%201.255%200%200%201-1.254%201.312h-1.81a1.255%201.255%200%200%201-1.228-.99l-.782-3.625-2.044%203.939a1.25%201.25%200%200%201-1.115.676h-.098a1.25%201.25%200%200%201-1.116-.68l-2.061-3.994zM35.92%2016.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033%201.332h1.678V9.242h-1.694l-.033%201.267q-.133-.329-.526-.658l-.032-.028a3.2%203.2%200%200%200-.668-.428l-.27-.12a3.3%203.3%200%200%200-1.235-.23q-1.136-.001-1.974.493a3.36%203.36%200%200%200-1.3%201.382q-.445.89-.444%202.074%200%201.2.51%202.107a3.8%203.8%200%200%200%201.382%201.381%203.9%203.9%200%200%200%201.893.477q.795%200%201.455-.33zm-2.789-5.38q-.576.675-.575%201.762%200%201.102.559%201.794.576.675%201.645.675a2.25%202.25%200%200%200%20.934-.19%202.2%202.2%200%200%200%20.468-.29l.178-.161a2.2%202.2%200%200%200%20.397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2%202.2%200%200%200-.633-.709l-.13-.086-.047-.028a2.1%202.1%200%200%200-1.073-.285q-1.052%200-1.629.692zm2.316%202.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96%200%200%200-.353-.389.85.85%200%200%200-.464-.127c-.4%200-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945%200%20.506.122.801.27.99.097.11.266.224.68.224.303%200%20.504-.09.687-.269zm7.545%201.705a2.6%202.6%200%200%200%20.331.423q.319.33.755.548l.173.074q.65.255%201.49.255%201.02%200%201.844-.493a3.45%203.45%200%200%200%201.316-1.4q.493-.904.493-2.089%200-1.909-.988-2.913-.988-1.02-2.584-1.02-.898%200-1.575.347a3%203%200%200%200-.415.262l-.199.166a3.4%203.4%200%200%200-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296%201.119.297%201.07%200%201.645-.675.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.435%200-.835.16a2%202%200%200%200-.284.136%202%202%200%200%200-.363.254%202.2%202.2%200%200%200-.46.569l-.082.162a2.6%202.6%200%200%200-.213%201.072v.115q0%20.707.296%201.267l.135.211zm.964-.818a1.1%201.1%200%200%200%20.367.385.94.94%200%200%200%20.476.118c.423%200%20.59-.117.687-.23.159-.194.28-.478.28-.95%200-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1%201%200%200%200-.503.135l-.012.007a.86.86%200%200%200-.335.343c-.073.133-.132.324-.132.614v.115a1.4%201.4%200%200%200%20.14.66zm15.7-6.222q.347-.346.346-.856a1.05%201.05%200%200%200-.345-.79%201.18%201.18%200%200%200-.84-.329q-.51%200-.855.33a1.05%201.05%200%200%200-.346.79q0%20.51.346.855.345.346.856.346.51%200%20.839-.346zm4.337%209.314.033-1.332q.191.403.59.747l.098.081a4%204%200%200%200%20.316.224l.223.122a3.2%203.2%200%200%200%201.44.322%203.8%203.8%200%200%200%201.875-.477%203.5%203.5%200%200%200%201.382-1.366q.527-.89.526-2.09%200-1.184-.444-2.073a3.24%203.24%200%200%200-1.283-1.399q-.823-.51-1.942-.51a3.5%203.5%200%200%200-1.527.344l-.086.043-.165.09a3%203%200%200%200-.33.214q-.432.315-.656.707a2%202%200%200%200-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5%202.5%200%200%200%20.566.7q.117.098.245.18l.144.08a2.1%202.1%200%200%200%20.975.232q1.07%200%201.645-.675.576-.69.576-1.778%200-1.102-.576-1.777-.56-.691-1.645-.692a2.2%202.2%200%200%200-1.015.235q-.22.113-.415.282l-.15.142a2.1%202.1%200%200%200-.42.594q-.223.479-.223%201.1v.115q0%20.705.293%201.26zm2.616-.293c.157-.191.28-.479.28-.967%200-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87%200%200%200-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0%20.285.057.499.144.669a1.1%201.1%200%200%200%20.367.405c.137.082.28.123.455.123.423%200%20.59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493%200%20.642.099l.247-1.794q-.196-.099-.717-.099a2.3%202.3%200%200%200-.545.063%202%202%200%200%200-.411.148%202.2%202.2%200%200%200-.4.249%202.5%202.5%200%200%200-.485.499%202.7%202.7%200%200%200-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5%201.5%200%200%201%20.466-.636%202.5%202.5%200%200%201%20.399-.253%202%202%200%200%201%20.224-.099zm9.784%202.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46%203.46%200%200%200-1.4%201.382q-.493.906-.493%202.106%200%201.07.428%201.975.428.89%201.332%201.432.906.526%202.255.526.973%200%201.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954%200-1.497-.444a1.6%201.6%200%200%201-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1%201%200%200%200-.156-.176q-.46-.428-1.316-.428-.986%200-1.494.604-.379.45-.494%201.234zm-27.053%202.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z%22%2F%3E%3Cpath%20fill%3D%22%23fff%22%20d%3D%22m19.63%2011.151-.757-1.71-.345%201.71-1.12%205.644h-1.827L18.083%204.7h.197l3.325%206.533.988%202.19.988-2.19L26.839%204.7h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.93%205.644h-.098l-2.913-5.644zm14.836%205.81q-1.02%200-1.893-.478a3.8%203.8%200%200%201-1.381-1.382q-.51-.906-.51-2.106%200-1.185.444-2.074a3.36%203.36%200%200%201%201.3-1.382q.839-.494%201.974-.494a3.3%203.3%200%200%201%201.234.231%203.3%203.3%200%200%201%20.97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02%201.053a3.17%203.17%200%200%201-1.662.444zm.296-1.482q.938%200%201.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2%202.2%200%200%200-.807-.872%202.1%202.1%200%200%200-1.119-.313q-1.053%200-1.629.692-.575.675-.575%201.76%200%201.103.559%201.795.577.675%201.645.675zm6.521-6.237h1.711v1.4q.906-1.597%202.83-1.597%201.596%200%202.584%201.02.988%201.005.988%202.914%200%201.185-.493%202.09a3.46%203.46%200%200%201-1.316%201.399%203.5%203.5%200%200%201-1.844.493q-.954%200-1.662-.329a2.67%202.67%200%200%201-1.086-.97l.017%205.134h-1.728zm4.048%206.22q1.07%200%201.645-.674.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.592%200-1.12.296-.51.28-.822.823-.296.527-.296%201.234v.115q0%20.708.296%201.267.313.543.823.855.51.296%201.119.297z%22%2F%3E%3Cpath%20fill%3D%22%23e1e3e9%22%20d%3D%22M51.325%204.7h1.86v10.45h3.473v1.646h-5.333zm7.12%204.542h1.843v7.553h-1.843zm.905-1.415a1.16%201.16%200%200%201-.856-.346%201.17%201.17%200%200%201-.346-.856%201.05%201.05%200%200%201%20.346-.79q.346-.329.856-.329.494%200%20.839.33a1.05%201.05%200%200%201%20.345.79%201.16%201.16%200%200%201-.345.855q-.33.346-.84.346zm7.875%209.133a3.17%203.17%200%200%201-1.662-.444q-.723-.46-1.004-1.053l-.033%201.332h-1.71V4.701h1.743v4.657l-.082%201.283q.279-.658%201.086-1.119a3.5%203.5%200%200%201%201.778-.477q1.119%200%201.942.51a3.24%203.24%200%200%201%201.283%201.4q.445.888.444%202.072%200%201.201-.526%202.09a3.5%203.5%200%200%201-1.382%201.366%203.8%203.8%200%200%201-1.876.477zm-.296-1.481q1.069%200%201.645-.675.577-.69.577-1.778%200-1.102-.577-1.776-.56-.691-1.645-.692a2.12%202.12%200%200%200-1.58.659q-.642.641-.642%201.694v.115q0%20.71.296%201.267a2.4%202.4%200%200%200%20.807.872%202.1%202.1%200%200%200%201.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14%202.14%200%200%201%201.349-.46q.527%200%20.724.098l-.247%201.794q-.149-.099-.642-.099-.774%200-1.416.494-.626.493-.626%201.58v3.883h-1.777V9.242zm9.534%207.718q-1.35%200-2.255-.526-.904-.543-1.332-1.432a4.6%204.6%200%200%201-.428-1.975q0-1.2.493-2.106a3.46%203.46%200%200%201%201.4-1.382q.889-.495%202.007-.494%201.744%200%202.584.97.855.956.856%202.7%200%20.444-.05.92h-5.43q.18%201.005.708%201.45.542.443%201.497.443.79%200%201.3-.131a4%204%200%200%200%20.938-.362l.542%201.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728%200-1.991%201.86z%22%2F%3E%3Cpath%20d%3D%22M5.074%2015.948a.484.657%200%200%200-.486.659v1.84a.484.657%200%200%200%20.486.659h4.101a.484.657%200%200%200%20.486-.659v-1.84a.484.657%200%200%200-.486-.659zm3.56%201.16H5.617v.838h3.017z%22%20style%3D%22fill%3A%23fff%3Bfill-rule%3Aevenodd%3Bstroke-width%3A1.03600001%22%2F%3E%3Cg%20style%3D%22stroke-width%3A1.12603545%22%3E%3Cpath%20d%3D%22M-9.408-1.416c-3.833-.025-7.056%202.912-7.08%206.615-.02%203.08%201.653%204.832%203.107%206.268.903.892%201.721%201.74%202.32%202.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87%201.87%200%200%200-.362%201.121l-.011%201.877c-.003.402.104.787.347%201.125.244.338.688.653%201.23.656l4.142.028c.542.003.99-.306%201.238-.641a1.87%201.87%200%200%200%20.363-1.121l.012-1.875a1.87%201.87%200%200%200-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145%201.425-1.983%202.348-2.87%201.473-1.414%203.18-3.149%203.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006%201.1v.002c3.274.02%205.92%202.532%205.9%205.6-.017%202.706-1.39%204.026-2.863%205.44-1.034.994-2.118%202.033-2.814%203.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34%200%200%201-.226.084.34.34%200%200%201-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067%202.7-5.545%205.975-5.523m-.02%202.826c-1.62-.01-2.944%201.315-2.955%202.96-.01%201.646%201.295%202.988%202.916%202.999h.002c1.621.01%202.943-1.316%202.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005%201.1c1.017.006%201.829.83%201.822%201.89s-.83%201.874-1.848%201.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874%201.848-1.868m-2.155%2011.857%204.14.025c.271.002.49.305.487.676l-.013%201.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668%22%20style%3D%22color%3A%23000%3Bfont-style%3Anormal%3Bfont-variant%3Anormal%3Bfont-weight%3A400%3Bfont-stretch%3Anormal%3Bfont-size%3Amedium%3Bline-height%3Anormal%3Bfont-family%3Asans-serif%3Bfont-variant-ligatures%3Anormal%3Bfont-variant-position%3Anormal%3Bfont-variant-caps%3Anormal%3Bfont-variant-numeric%3Anormal%3Bfont-variant-alternates%3Anormal%3Bfont-feature-settings%3Anormal%3Btext-indent%3A0%3Btext-align%3Astart%3Btext-decoration%3Anone%3Btext-decoration-line%3Anone%3Btext-decoration-style%3Asolid%3Btext-decoration-color%3A%23000%3Bletter-spacing%3Anormal%3Bword-spacing%3Anormal%3Btext-transform%3Anone%3Bwriting-mode%3Alr-tb%3Bdirection%3Altr%3Btext-orientation%3Amixed%3Bdominant-baseline%3Aauto%3Bbaseline-shift%3Abaseline%3Btext-anchor%3Astart%3Bwhite-space%3Anormal%3Bshape-padding%3A0%3Bclip-rule%3Aevenodd%3Bdisplay%3Ainline%3Boverflow%3Avisible%3Bvisibility%3Avisible%3Bopacity%3A1%3Bisolation%3Aauto%3Bmix-blend-mode%3Anormal%3Bcolor-interpolation%3AsRGB%3Bcolor-interpolation-filters%3AlinearRGB%3Bsolid-color%3A%23000%3Bsolid-opacity%3A1%3Bvector-effect%3Anone%3Bfill%3A%23000%3Bfill-opacity%3A.4%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-linecap%3Abutt%3Bstroke-linejoin%3Amiter%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-dashoffset%3A0%3Bstroke-opacity%3A1%3Bcolor-rendering%3Aauto%3Bimage-rendering%3Aauto%3Bshape-rendering%3Aauto%3Btext-rendering%3Aauto%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-9.415-.316C-12.69-.338-15.37%202.14-15.39%205.207c-.017%202.716%201.326%204.041%202.78%205.477%201.013%201%202.081%202.055%202.78%203.67l.092.076a.34.34%200%200%200%20.225.086.34.34%200%200%200%20.227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6%201.78-2.64%202.814-3.634%201.473-1.414%202.847-2.733%202.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057%208.784c1.621.011%202.944-1.315%202.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945%201.315-2.955%202.96s1.295%202.989%202.916%203%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23e1e3e9%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-11.594%2015.465c-.27-.002-.492.297-.494.668l-.012%201.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23fff%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){a.maplibregl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2288%22%20height%3D%2223%22%20fill%3D%22none%22%3E%3Cpath%20fill%3D%22%23000%22%20fill-opacity%3D%22.4%22%20fill-rule%3D%22evenodd%22%20d%3D%22M17.408%2016.796h-1.827l2.501-12.095h.198l3.324%206.533.988%202.19.988-2.19%203.258-6.533h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.929%205.644h-.098l-2.914-5.644-.757-1.71-.345%201.71zm1.958-3.42-.726%203.663a1.255%201.255%200%200%201-1.232%201.011h-1.827a1.255%201.255%200%200%201-1.229-1.509l2.501-12.095a1.255%201.255%200%200%201%201.23-1.001h.197a1.25%201.25%200%200%201%201.12.685l3.19%206.273%203.125-6.263a1.25%201.25%200%200%201%201.123-.695h.181a1.255%201.255%200%200%201%201.227.991l1.443%206.71a5%205%200%200%201%20.314-.787l.009-.016a4.6%204.6%200%200%201%201.777-1.887c.782-.46%201.668-.667%202.611-.667a4.6%204.6%200%200%201%201.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255%201.255%200%200%201%201.212.925%201.255%201.255%200%200%201%201.212-.925h1.711c.284%200%20.545.094.755.252.613-.3%201.312-.45%202.075-.45%201.356%200%202.557.445%203.482%201.4q.47.48.763%201.064V4.701a1.255%201.255%200%200%201%201.255-1.255h1.86A1.255%201.255%200%200%201%2054.44%204.7v9.194h2.217c.19%200%20.37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42%202.42%200%200%201-.682-1.71c0-.665.267-1.253.735-1.7a2.45%202.45%200%200%201%201.722-.674%202.43%202.43%200%200%201%201.705.675q.318.302.504.683V4.7a1.255%201.255%200%200%201%201.255-1.255h1.744A1.255%201.255%200%200%201%2065.812%204.7v3.335a4.8%204.8%200%200%201%201.526-.246c.938%200%201.817.214%202.59.69a4.47%204.47%200%200%201%201.67%201.743v-.98a1.255%201.255%200%200%201%201.256-1.256h1.777c.233%200%20.451.064.639.174a3.4%203.4%200%200%201%201.567-.372c.346%200%20.861.02%201.285.232a1.25%201.25%200%200%201%20.689%201.004%204.7%204.7%200%200%201%20.853-.588c.795-.44%201.675-.647%202.61-.647%201.385%200%202.65.39%203.525%201.396.836.938%201.168%202.173%201.168%203.528q-.001.515-.056%201.051a1.255%201.255%200%200%201-.947%201.09l.408.952a1.255%201.255%200%200%201-.477%201.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06%200-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8%205.8%200%200%201-.548-2.512q0-.429.053-.843a1.3%201.3%200%200%201-.333-.086l-.166-.004c-.223%200-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255%201.255%200%200%201-1.256%201.256h-1.777a1.255%201.255%200%200%201-1.256-1.256V15.69l-.032.057a4.8%204.8%200%200%201-1.86%201.833%205.04%205.04%200%200%201-2.484.634%204.5%204.5%200%200%201-1.935-.424%201.25%201.25%200%200%201-.764.258h-1.71a1.255%201.255%200%200%201-1.256-1.255V7.687a2.4%202.4%200%200%201-.428.625c.253.23.412.561.412.93v7.553a1.255%201.255%200%200%201-1.256%201.255h-1.843a1.25%201.25%200%200%201-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255%201.255%200%200%201-1.256-1.255v-1.251l-.061.117a4.7%204.7%200%200%201-1.782%201.884%204.77%204.77%200%200%201-2.485.67%205.6%205.6%200%200%201-1.485-.188l.009%202.764a1.255%201.255%200%200%201-1.255%201.259h-1.729a1.255%201.255%200%200%201-1.255-1.255v-3.537a1.255%201.255%200%200%201-1.167.793h-1.679a1.25%201.25%200%200%201-.77-.263%204.5%204.5%200%200%201-1.945.429c-.885%200-1.724-.21-2.495-.632l-.017-.01a5%205%200%200%201-1.081-.836%201.255%201.255%200%200%201-1.254%201.312h-1.81a1.255%201.255%200%200%201-1.228-.99l-.782-3.625-2.044%203.939a1.25%201.25%200%200%201-1.115.676h-.098a1.25%201.25%200%200%201-1.116-.68l-2.061-3.994zM35.92%2016.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033%201.332h1.678V9.242h-1.694l-.033%201.267q-.133-.329-.526-.658l-.032-.028a3.2%203.2%200%200%200-.668-.428l-.27-.12a3.3%203.3%200%200%200-1.235-.23q-1.136-.001-1.974.493a3.36%203.36%200%200%200-1.3%201.382q-.445.89-.444%202.074%200%201.2.51%202.107a3.8%203.8%200%200%200%201.382%201.381%203.9%203.9%200%200%200%201.893.477q.795%200%201.455-.33zm-2.789-5.38q-.576.675-.575%201.762%200%201.102.559%201.794.576.675%201.645.675a2.25%202.25%200%200%200%20.934-.19%202.2%202.2%200%200%200%20.468-.29l.178-.161a2.2%202.2%200%200%200%20.397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2%202.2%200%200%200-.633-.709l-.13-.086-.047-.028a2.1%202.1%200%200%200-1.073-.285q-1.052%200-1.629.692zm2.316%202.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96%200%200%200-.353-.389.85.85%200%200%200-.464-.127c-.4%200-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945%200%20.506.122.801.27.99.097.11.266.224.68.224.303%200%20.504-.09.687-.269zm7.545%201.705a2.6%202.6%200%200%200%20.331.423q.319.33.755.548l.173.074q.65.255%201.49.255%201.02%200%201.844-.493a3.45%203.45%200%200%200%201.316-1.4q.493-.904.493-2.089%200-1.909-.988-2.913-.988-1.02-2.584-1.02-.898%200-1.575.347a3%203%200%200%200-.415.262l-.199.166a3.4%203.4%200%200%200-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296%201.119.297%201.07%200%201.645-.675.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.435%200-.835.16a2%202%200%200%200-.284.136%202%202%200%200%200-.363.254%202.2%202.2%200%200%200-.46.569l-.082.162a2.6%202.6%200%200%200-.213%201.072v.115q0%20.707.296%201.267l.135.211zm.964-.818a1.1%201.1%200%200%200%20.367.385.94.94%200%200%200%20.476.118c.423%200%20.59-.117.687-.23.159-.194.28-.478.28-.95%200-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1%201%200%200%200-.503.135l-.012.007a.86.86%200%200%200-.335.343c-.073.133-.132.324-.132.614v.115a1.4%201.4%200%200%200%20.14.66zm15.7-6.222q.347-.346.346-.856a1.05%201.05%200%200%200-.345-.79%201.18%201.18%200%200%200-.84-.329q-.51%200-.855.33a1.05%201.05%200%200%200-.346.79q0%20.51.346.855.345.346.856.346.51%200%20.839-.346zm4.337%209.314.033-1.332q.191.403.59.747l.098.081a4%204%200%200%200%20.316.224l.223.122a3.2%203.2%200%200%200%201.44.322%203.8%203.8%200%200%200%201.875-.477%203.5%203.5%200%200%200%201.382-1.366q.527-.89.526-2.09%200-1.184-.444-2.073a3.24%203.24%200%200%200-1.283-1.399q-.823-.51-1.942-.51a3.5%203.5%200%200%200-1.527.344l-.086.043-.165.09a3%203%200%200%200-.33.214q-.432.315-.656.707a2%202%200%200%200-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5%202.5%200%200%200%20.566.7q.117.098.245.18l.144.08a2.1%202.1%200%200%200%20.975.232q1.07%200%201.645-.675.576-.69.576-1.778%200-1.102-.576-1.777-.56-.691-1.645-.692a2.2%202.2%200%200%200-1.015.235q-.22.113-.415.282l-.15.142a2.1%202.1%200%200%200-.42.594q-.223.479-.223%201.1v.115q0%20.705.293%201.26zm2.616-.293c.157-.191.28-.479.28-.967%200-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87%200%200%200-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0%20.285.057.499.144.669a1.1%201.1%200%200%200%20.367.405c.137.082.28.123.455.123.423%200%20.59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493%200%20.642.099l.247-1.794q-.196-.099-.717-.099a2.3%202.3%200%200%200-.545.063%202%202%200%200%200-.411.148%202.2%202.2%200%200%200-.4.249%202.5%202.5%200%200%200-.485.499%202.7%202.7%200%200%200-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5%201.5%200%200%201%20.466-.636%202.5%202.5%200%200%201%20.399-.253%202%202%200%200%201%20.224-.099zm9.784%202.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46%203.46%200%200%200-1.4%201.382q-.493.906-.493%202.106%200%201.07.428%201.975.428.89%201.332%201.432.906.526%202.255.526.973%200%201.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954%200-1.497-.444a1.6%201.6%200%200%201-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1%201%200%200%200-.156-.176q-.46-.428-1.316-.428-.986%200-1.494.604-.379.45-.494%201.234zm-27.053%202.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z%22%2F%3E%3Cpath%20fill%3D%22%23fff%22%20d%3D%22m19.63%2011.151-.757-1.71-.345%201.71-1.12%205.644h-1.827L18.083%204.7h.197l3.325%206.533.988%202.19.988-2.19L26.839%204.7h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.93%205.644h-.098l-2.913-5.644zm14.836%205.81q-1.02%200-1.893-.478a3.8%203.8%200%200%201-1.381-1.382q-.51-.906-.51-2.106%200-1.185.444-2.074a3.36%203.36%200%200%201%201.3-1.382q.839-.494%201.974-.494a3.3%203.3%200%200%201%201.234.231%203.3%203.3%200%200%201%20.97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02%201.053a3.17%203.17%200%200%201-1.662.444zm.296-1.482q.938%200%201.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2%202.2%200%200%200-.807-.872%202.1%202.1%200%200%200-1.119-.313q-1.053%200-1.629.692-.575.675-.575%201.76%200%201.103.559%201.795.577.675%201.645.675zm6.521-6.237h1.711v1.4q.906-1.597%202.83-1.597%201.596%200%202.584%201.02.988%201.005.988%202.914%200%201.185-.493%202.09a3.46%203.46%200%200%201-1.316%201.399%203.5%203.5%200%200%201-1.844.493q-.954%200-1.662-.329a2.67%202.67%200%200%201-1.086-.97l.017%205.134h-1.728zm4.048%206.22q1.07%200%201.645-.674.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.592%200-1.12.296-.51.28-.822.823-.296.527-.296%201.234v.115q0%20.708.296%201.267.313.543.823.855.51.296%201.119.297z%22%2F%3E%3Cpath%20fill%3D%22%23e1e3e9%22%20d%3D%22M51.325%204.7h1.86v10.45h3.473v1.646h-5.333zm7.12%204.542h1.843v7.553h-1.843zm.905-1.415a1.16%201.16%200%200%201-.856-.346%201.17%201.17%200%200%201-.346-.856%201.05%201.05%200%200%201%20.346-.79q.346-.329.856-.329.494%200%20.839.33a1.05%201.05%200%200%201%20.345.79%201.16%201.16%200%200%201-.345.855q-.33.346-.84.346zm7.875%209.133a3.17%203.17%200%200%201-1.662-.444q-.723-.46-1.004-1.053l-.033%201.332h-1.71V4.701h1.743v4.657l-.082%201.283q.279-.658%201.086-1.119a3.5%203.5%200%200%201%201.778-.477q1.119%200%201.942.51a3.24%203.24%200%200%201%201.283%201.4q.445.888.444%202.072%200%201.201-.526%202.09a3.5%203.5%200%200%201-1.382%201.366%203.8%203.8%200%200%201-1.876.477zm-.296-1.481q1.069%200%201.645-.675.577-.69.577-1.778%200-1.102-.577-1.776-.56-.691-1.645-.692a2.12%202.12%200%200%200-1.58.659q-.642.641-.642%201.694v.115q0%20.71.296%201.267a2.4%202.4%200%200%200%20.807.872%202.1%202.1%200%200%200%201.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14%202.14%200%200%201%201.349-.46q.527%200%20.724.098l-.247%201.794q-.149-.099-.642-.099-.774%200-1.416.494-.626.493-.626%201.58v3.883h-1.777V9.242zm9.534%207.718q-1.35%200-2.255-.526-.904-.543-1.332-1.432a4.6%204.6%200%200%201-.428-1.975q0-1.2.493-2.106a3.46%203.46%200%200%201%201.4-1.382q.889-.495%202.007-.494%201.744%200%202.584.97.855.956.856%202.7%200%20.444-.05.92h-5.43q.18%201.005.708%201.45.542.443%201.497.443.79%200%201.3-.131a4%204%200%200%200%20.938-.362l.542%201.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728%200-1.991%201.86z%22%2F%3E%3Cpath%20d%3D%22M5.074%2015.948a.484.657%200%200%200-.486.659v1.84a.484.657%200%200%200%20.486.659h4.101a.484.657%200%200%200%20.486-.659v-1.84a.484.657%200%200%200-.486-.659zm3.56%201.16H5.617v.838h3.017z%22%20style%3D%22fill%3A%23fff%3Bfill-rule%3Aevenodd%3Bstroke-width%3A1.03600001%22%2F%3E%3Cg%20style%3D%22stroke-width%3A1.12603545%22%3E%3Cpath%20d%3D%22M-9.408-1.416c-3.833-.025-7.056%202.912-7.08%206.615-.02%203.08%201.653%204.832%203.107%206.268.903.892%201.721%201.74%202.32%202.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87%201.87%200%200%200-.362%201.121l-.011%201.877c-.003.402.104.787.347%201.125.244.338.688.653%201.23.656l4.142.028c.542.003.99-.306%201.238-.641a1.87%201.87%200%200%200%20.363-1.121l.012-1.875a1.87%201.87%200%200%200-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145%201.425-1.983%202.348-2.87%201.473-1.414%203.18-3.149%203.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006%201.1v.002c3.274.02%205.92%202.532%205.9%205.6-.017%202.706-1.39%204.026-2.863%205.44-1.034.994-2.118%202.033-2.814%203.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34%200%200%201-.226.084.34.34%200%200%201-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067%202.7-5.545%205.975-5.523m-.02%202.826c-1.62-.01-2.944%201.315-2.955%202.96-.01%201.646%201.295%202.988%202.916%202.999h.002c1.621.01%202.943-1.316%202.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005%201.1c1.017.006%201.829.83%201.822%201.89s-.83%201.874-1.848%201.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874%201.848-1.868m-2.155%2011.857%204.14.025c.271.002.49.305.487.676l-.013%201.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668%22%20style%3D%22color%3A%23000%3Bfont-style%3Anormal%3Bfont-variant%3Anormal%3Bfont-weight%3A400%3Bfont-stretch%3Anormal%3Bfont-size%3Amedium%3Bline-height%3Anormal%3Bfont-family%3Asans-serif%3Bfont-variant-ligatures%3Anormal%3Bfont-variant-position%3Anormal%3Bfont-variant-caps%3Anormal%3Bfont-variant-numeric%3Anormal%3Bfont-variant-alternates%3Anormal%3Bfont-feature-settings%3Anormal%3Btext-indent%3A0%3Btext-align%3Astart%3Btext-decoration%3Anone%3Btext-decoration-line%3Anone%3Btext-decoration-style%3Asolid%3Btext-decoration-color%3A%23000%3Bletter-spacing%3Anormal%3Bword-spacing%3Anormal%3Btext-transform%3Anone%3Bwriting-mode%3Alr-tb%3Bdirection%3Altr%3Btext-orientation%3Amixed%3Bdominant-baseline%3Aauto%3Bbaseline-shift%3Abaseline%3Btext-anchor%3Astart%3Bwhite-space%3Anormal%3Bshape-padding%3A0%3Bclip-rule%3Aevenodd%3Bdisplay%3Ainline%3Boverflow%3Avisible%3Bvisibility%3Avisible%3Bopacity%3A1%3Bisolation%3Aauto%3Bmix-blend-mode%3Anormal%3Bcolor-interpolation%3AsRGB%3Bcolor-interpolation-filters%3AlinearRGB%3Bsolid-color%3A%23000%3Bsolid-opacity%3A1%3Bvector-effect%3Anone%3Bfill%3A%23000%3Bfill-opacity%3A.4%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-linecap%3Abutt%3Bstroke-linejoin%3Amiter%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-dashoffset%3A0%3Bstroke-opacity%3A1%3Bcolor-rendering%3Aauto%3Bimage-rendering%3Aauto%3Bshape-rendering%3Aauto%3Btext-rendering%3Aauto%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-9.415-.316C-12.69-.338-15.37%202.14-15.39%205.207c-.017%202.716%201.326%204.041%202.78%205.477%201.013%201%202.081%202.055%202.78%203.67l.092.076a.34.34%200%200%200%20.225.086.34.34%200%200%200%20.227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6%201.78-2.64%202.814-3.634%201.473-1.414%202.847-2.733%202.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057%208.784c1.621.011%202.944-1.315%202.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945%201.315-2.955%202.96s1.295%202.989%202.916%203%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23e1e3e9%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-11.594%2015.465c-.27-.002-.492.297-.494.668l-.012%201.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23fff%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl.maplibregl-ctrl-attrib{padding:0 5px;background-color:hsla(0,0%,100%,.5);margin:0}@media screen{.maplibregl-ctrl-attrib.maplibregl-compact{min-height:20px;padding:2px 24px 2px 0;margin:10px;position:relative;background-color:#fff;color:#000;border-radius:12px;box-sizing:content-box}.maplibregl-ctrl-attrib.maplibregl-compact-show{padding:2px 28px 2px 8px;visibility:visible}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact-show,.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact-show{padding:2px 8px 2px 28px;border-radius:12px}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-inner{display:none}.maplibregl-ctrl-attrib-button{display:none;cursor:pointer;position:absolute;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20fill-rule%3D%22evenodd%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M4%2010a6%206%200%201%200%2012%200%206%206%200%201%200-12%200m5-3a1%201%200%201%200%202%200%201%201%200%201%200-2%200m0%203a1%201%200%201%201%202%200v3a1%201%200%201%201-2%200%22%2F%3E%3C%2Fsvg%3E");background-color:hsla(0,0%,100%,.5);width:24px;height:24px;box-sizing:border-box;border-radius:12px;outline:none;top:0;right:0;border:0}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;list-style:none}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button::-webkit-details-marker{display:none}.maplibregl-ctrl-bottom-left .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-top-left .maplibregl-ctrl-attrib-button{left:0}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-inner{display:block}.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-button{background-color:rgba(0,0,0,.05)}.maplibregl-ctrl-bottom-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;right:0}.maplibregl-ctrl-top-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{top:0;right:0}.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{top:0;left:0}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;left:0}}@media screen and (forced-colors:active){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22%23fff%22%20fill-rule%3D%22evenodd%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M4%2010a6%206%200%201%200%2012%200%206%206%200%201%200-12%200m5-3a1%201%200%201%200%202%200%201%201%200%201%200-2%200m0%203a1%201%200%201%201%202%200v3a1%201%200%201%201-2%200%22%2F%3E%3C%2Fsvg%3E")}}@media screen and (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20fill-rule%3D%22evenodd%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M4%2010a6%206%200%201%200%2012%200%206%206%200%201%200-12%200m5-3a1%201%200%201%200%202%200%201%201%200%201%200-2%200m0%203a1%201%200%201%201%202%200v3a1%201%200%201%201-2%200%22%2F%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl-attrib a{color:rgba(0,0,0,.75);text-decoration:none}.maplibregl-ctrl-attrib a:hover{color:inherit;text-decoration:underline}.maplibregl-attrib-empty{display:none}.maplibregl-ctrl-scale{background-color:hsla(0,0%,100%,.75);font-size:10px;white-space:nowrap;border-color:#333;border-style:none solid solid;border-width:medium 2px 2px;padding:0 5px;color:#333;box-sizing:border-box}.maplibregl-popup{position:absolute;top:0;left:0;display:flex;will-change:transform;pointer-events:none}.maplibregl-popup-anchor-top,.maplibregl-popup-anchor-top-left,.maplibregl-popup-anchor-top-right{flex-direction:column}.maplibregl-popup-anchor-bottom,.maplibregl-popup-anchor-bottom-left,.maplibregl-popup-anchor-bottom-right{flex-direction:column-reverse}.maplibregl-popup-anchor-left{flex-direction:row}.maplibregl-popup-anchor-right{flex-direction:row-reverse}.maplibregl-popup-tip{width:0;height:0;border:10px solid transparent;z-index:1}.maplibregl-popup-anchor-top .maplibregl-popup-tip{align-self:center;border-top:none;border-bottom-color:#fff}.maplibregl-popup-anchor-top-left .maplibregl-popup-tip{align-self:flex-start;border-top:none;border-left:none;border-bottom-color:#fff}.maplibregl-popup-anchor-top-right .maplibregl-popup-tip{align-self:flex-end;border-top:none;border-right:none;border-bottom-color:#fff}.maplibregl-popup-anchor-bottom .maplibregl-popup-tip{align-self:center;border-bottom:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip{align-self:flex-start;border-bottom:none;border-left:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip{align-self:flex-end;border-bottom:none;border-right:none;border-top-color:#fff}.maplibregl-popup-anchor-left .maplibregl-popup-tip{align-self:center;border-left:none;border-right-color:#fff}.maplibregl-popup-anchor-right .maplibregl-popup-tip{align-self:center;border-right:none;border-left-color:#fff}[dir=rtl] .maplibregl-popup-anchor-left{flex-direction:row-reverse}[dir=rtl] .maplibregl-popup-anchor-right{flex-direction:row}[dir=rtl] .maplibregl-popup-anchor-top-left .maplibregl-popup-tip{align-self:flex-end}[dir=rtl] .maplibregl-popup-anchor-top-right .maplibregl-popup-tip{align-self:flex-start}[dir=rtl] .maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip{align-self:flex-end}[dir=rtl] .maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip{align-self:flex-start}.maplibregl-popup-close-button{position:absolute;right:0;top:0;border:0;border-radius:0 3px 0 0;cursor:pointer;background-color:transparent}.maplibregl-popup-close-button:hover{background-color:rgba(0,0,0,.05)}.maplibregl-popup-content{position:relative;background:#fff;border-radius:3px;box-shadow:0 1px 2px rgba(0,0,0,.1);padding:15px 10px;pointer-events:auto}.maplibregl-popup-anchor-top-left .maplibregl-popup-content{border-top-left-radius:0}.maplibregl-popup-anchor-top-right .maplibregl-popup-content{border-top-right-radius:0}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-content{border-bottom-left-radius:0}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-content{border-bottom-right-radius:0}.maplibregl-popup-track-pointer{display:none}.maplibregl-popup-track-pointer *{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-map:hover .maplibregl-popup-track-pointer{display:flex}.maplibregl-map:active .maplibregl-popup-track-pointer{display:none}.maplibregl-marker{position:absolute;top:0;left:0;will-change:transform;transition:opacity .2s}.maplibregl-marker-draggable{cursor:grab}.maplibregl-user-location-dot,.maplibregl-user-location-dot:before{background-color:#1da1f2;width:15px;height:15px;border-radius:50%}.maplibregl-user-location-dot:before{content:"";position:absolute;animation:maplibregl-user-location-dot-pulse 2s infinite}.maplibregl-user-location-dot:after{border-radius:50%;border:2px solid #fff;content:"";height:19px;left:-2px;position:absolute;top:-2px;width:19px;box-sizing:border-box;box-shadow:0 0 3px rgba(0,0,0,.35)}@media (prefers-reduced-motion:reduce){.maplibregl-user-location-dot:before{animation:none}}@keyframes maplibregl-user-location-dot-pulse{0%{transform:scale(1);opacity:1}70%{transform:scale(3);opacity:0}to{transform:scale(1);opacity:0}}.maplibregl-user-location-dot-stale{background-color:#aaa}.maplibregl-user-location-dot-stale:after{display:none}.maplibregl-user-location-accuracy-circle{background-color:#1da1f233;width:1px;height:1px;border-radius:100%}.maplibregl-crosshair,.maplibregl-crosshair .maplibregl-interactive,.maplibregl-crosshair .maplibregl-interactive:active{cursor:crosshair}.maplibregl-boxzoom{position:absolute;top:0;left:0;width:0;height:0;background:#fff;border:2px dotted #202020;opacity:.5}.maplibregl-cooperative-gesture-screen{background:rgba(0,0,0,.4);position:absolute;inset:0;display:flex;justify-content:center;align-items:center;color:#fff;padding:1rem;font-size:1.4em;line-height:1.2;opacity:0;pointer-events:none;transition:opacity 1s ease 1s;z-index:99999}.maplibregl-cooperative-gesture-screen.maplibregl-show{opacity:1;transition:opacity .05s}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:none}@media (hover:none),(pointer:coarse){.maplibregl-cooperative-gesture-screen .maplibregl-desktop-message{display:none}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:block}}.maplibregl-pseudo-fullscreen{position:fixed!important;width:100%!important;height:100%!important;top:0!important;left:0!important;z-index:99999}',document.head.appendChild(e)}})()});var Ar=z(Xr=>{"use strict";var f4=Ms(),ME=Ap(),kE=a4(),GWe=wh().addStyleRule,SE=St(),Bme=Gn(),Ome=Oc(),Hme=SE.extendFlat,c4=SE.extendDeepAll;Xr.modules={};Xr.allCategories={};Xr.allTypes=[];Xr.subplotsRegistry={};Xr.componentsRegistry={};Xr.layoutArrayContainers=[];Xr.layoutArrayRegexes=[];Xr.traceLayoutAttributes={};Xr.localeRegistry={};Xr.apiMethodRegistry={};Xr.collectableSubplotTypes=null;Xr.register=function(r){if(Xr.collectableSubplotTypes=null,r)r&&!Array.isArray(r)&&(r=[r]);else throw new Error("No argument passed to Plotly.register.");for(var t=0;t{"use strict";var jme=Tc().timeFormat,IE=Br(),v4=Ms(),Ds=(kc(),Ne(Mc)).mod,Gc=(Kt(),Ne(aa)),Gi=Gc.BADNUM,ti=Gc.ONEDAY,Ah=Gc.ONEHOUR,Cs=Gc.ONEMIN,Uc=Gc.ONESEC,Mh=Gc.EPOCHJD,Ol=Ar(),EE=Tc().utcFormat,Wme=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\d)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d(:?\d\d)?)?)?)?)?)?\s*$/m,Xme=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\di?)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d(:?\d\d)?)?)?)?)?)?\s*$/m,PE=new Date().getFullYear()-70;function Hl(e){return e&&Ol.componentsRegistry.calendars&&typeof e=="string"&&e!=="gregorian"}ba.dateTick0=function(e,r){var t=Zme(e,!!r);if(r<2)return t;var a=ba.dateTime2ms(t,e);return a+=ti*(r-1),ba.ms2DateTime(a,0,e)};function Zme(e,r){return Hl(e)?r?Ol.getComponentMethod("calendars","CANONICAL_SUNDAY")[e]:Ol.getComponentMethod("calendars","CANONICAL_TICK")[e]:r?"2000-01-02":"2000-01-01"}ba.dfltRange=function(e){return Hl(e)?Ol.getComponentMethod("calendars","DFLTRANGE")[e]:["2000-01-01","2001-01-01"]};ba.isJSDate=function(e){return typeof e=="object"&&e!==null&&typeof e.getTime=="function"};var Pp,Rp;ba.dateTime2ms=function(e,r){if(ba.isJSDate(e)){var t=e.getTimezoneOffset()*Cs,a=(e.getUTCMinutes()-e.getMinutes())*Cs+(e.getUTCSeconds()-e.getSeconds())*Uc+(e.getUTCMilliseconds()-e.getMilliseconds());if(a){var n=3*Cs;t=t-n/2+Ds(a-t+n/2,n)}return e=Number(e)-t,e>=Pp&&e<=Rp?e:Gi}if(typeof e!="string"&&typeof e!="number")return Gi;e=String(e);var i=Hl(r),o=e.charAt(0);i&&(o==="G"||o==="g")&&(e=e.slice(1),r="");var l=i&&r.slice(0,7)==="chinese",s=e.match(l?Xme:Wme);if(!s)return Gi;var u=s[1],f=s[3]||"1",c=Number(s[5]||1),v=Number(s[7]||0),d=Number(s[9]||0),p=Number(s[11]||0);if(i){if(u.length===2)return Gi;u=Number(u);var m;try{var y=Ol.getComponentMethod("calendars","getCal")(r);if(l){var b=f.charAt(f.length-1)==="i";f=parseInt(f,10),m=y.newDate(u,y.toMonthIndex(u,f,b),c)}else m=y.newDate(u,Number(f),c)}catch(w){return Gi}return m?(m.toJD()-Mh)*ti+v*Ah+d*Cs+p*Uc:Gi}u.length===2?u=(Number(u)+2e3-PE)%100+PE:u=Number(u),f-=1;var T=new Date(Date.UTC(2e3,f,c,v,d));return T.setUTCFullYear(u),T.getUTCMonth()!==f||T.getUTCDate()!==c?Gi:T.getTime()+p*Uc};Pp=ba.MIN_MS=ba.dateTime2ms("-9999");Rp=ba.MAX_MS=ba.dateTime2ms("9999-12-31 23:59:59.9999");ba.isDateTime=function(e,r){return ba.dateTime2ms(e,r)!==Gi};function Hc(e,r){return String(e+Math.pow(10,r)).slice(1)}var Ep=90*ti,RE=3*Ah,FE=5*Cs;ba.ms2DateTime=function(e,r,t){if(typeof e!="number"||!(e>=Pp&&e<=Rp))return Gi;r||(r=0);var a=Math.floor(Ds(e+.05,1)*10),n=Math.round(e-a/10),i,o,l,s,u,f;if(Hl(t)){var c=Math.floor(n/ti)+Mh,v=Math.floor(Ds(e,ti));try{i=Ol.getComponentMethod("calendars","getCal")(t).fromJD(c).formatDate("yyyy-mm-dd")}catch(d){i=EE("G%Y-%m-%d")(new Date(n))}if(i.charAt(0)==="-")for(;i.length<11;)i="-0"+i.slice(1);else for(;i.length<10;)i="0"+i;o=r=Pp+ti&&e<=Rp-ti))return Gi;var r=Math.floor(Ds(e+.05,1)*10),t=new Date(Math.round(e-r/10)),a=jme("%Y-%m-%d")(t),n=t.getHours(),i=t.getMinutes(),o=t.getSeconds(),l=t.getUTCMilliseconds()*10+r;return BE(a,n,i,o,l)};function BE(e,r,t,a,n){if((r||t||a||n)&&(e+=" "+Hc(r,2)+":"+Hc(t,2),(a||n)&&(e+=":"+Hc(a,2),n))){for(var i=4;n%10===0;)i-=1,n/=10;e+="."+Hc(n,i)}return e}ba.cleanDate=function(e,r,t){if(e===Gi)return r;if(ba.isJSDate(e)||typeof e=="number"&&isFinite(e)){if(Hl(t))return v4.error("JS Dates and milliseconds are incompatible with world calendars",e),r;if(e=ba.ms2DateTimeLocal(+e),!e&&r!==void 0)return r}else if(!ba.isDateTime(e,t))return v4.error("unrecognized date",e),r;return e};var $me=/%\d?f/g,Jme=/%h/g,Kme={1:"1",2:"1",3:"2",4:"2"};function zE(e,r,t,a){e=e.replace($me,function(i){var o=Math.min(+i.charAt(1)||6,6),l=(r/1e3%1+2).toFixed(o).slice(2).replace(/0+$/,"")||"0";return l});var n=new Date(Math.floor(r+.05));if(e=e.replace(Jme,function(){return Kme[t("%q")(n)]}),Hl(a))try{e=Ol.getComponentMethod("calendars","worldCalFmt")(e,r,a)}catch(i){return"Invalid"}return t(e)(n)}var Qme=[59,59.9,59.99,59.999,59.9999];function eye(e,r){var t=Ds(e+.05,ti),a=Hc(Math.floor(t/Ah),2)+":"+Hc(Ds(Math.floor(t/Cs),60),2);if(r!=="M"){IE(r)||(r=0);var n=Math.min(Ds(e/Uc,60),Qme[r]),i=(100+n).toFixed(r).slice(1);r>0&&(i=i.replace(/0+$/,"").replace(/[\.]$/,"")),a+=":"+i}return a}ba.formatDate=function(e,r,t,a,n,i){if(n=Hl(n)&&n,!r)if(t==="y")r=i.year;else if(t==="m")r=i.month;else if(t==="d")r=i.dayMonth+` +`+i.year;else return eye(e,t)+` +`+zE(i.dayMonthYear,e,a,n);return zE(r,e,a,n)};var NE=3*ti;ba.incrementMonth=function(e,r,t){t=Hl(t)&&t;var a=Ds(e,ti);if(e=Math.round(e-a),t)try{var n=Math.round(e/ti)+Mh,i=Ol.getComponentMethod("calendars","getCal")(t),o=i.fromJD(n);return r%12?i.add(o,r,"m"):i.add(o,r/12,"y"),(o.toJD()-Mh)*ti+a}catch(s){v4.error("invalid ms "+e+" in calendar "+t)}var l=new Date(e+NE);return l.setUTCMonth(l.getUTCMonth()+r)+a-NE};ba.findExactDates=function(e,r){for(var t=0,a=0,n=0,i=0,o,l,s=Hl(r)&&Ol.getComponentMethod("calendars","getCal")(r),u=0;u{"use strict";HE.exports=function(r){return r}});var p4=z(Ul=>{"use strict";var rye=Br(),tye=Ms(),aye=h4(),nye=(Kt(),Ne(aa)).BADNUM,d4=1e-9;Ul.findBin=function(e,r,t){if(rye(r.start))return t?Math.ceil((e-r.start)/r.size-d4)-1:Math.floor((e-r.start)/r.size+d4);var a=0,n=r.length,i=0,o=n>1?(r[n-1]-r[0])/(n-1):1,l,s;for(o>=0?s=t?iye:oye:s=t?sye:lye,e+=o*d4*(t?-1:1)*(o>=0?1:-1);a90&&tye.log("Long binary search..."),a-1};function iye(e,r){return er}function sye(e,r){return e>=r}Ul.sorterAsc=function(e,r){return e-r};Ul.sorterDes=function(e,r){return r-e};Ul.distinctVals=function(e){var r=e.slice();r.sort(Ul.sorterAsc);var t;for(t=r.length-1;t>-1&&r[t]===nye;t--);for(var a=r[t]-r[0]||1,n=a/(t||1)/1e4,i=[],o,l=0;l<=t;l++){var s=r[l],u=s-o;o===void 0?(i.push(s),o=s):u>n&&(a=Math.min(a,u),i.push(s),o=s)}return{vals:i,minDiff:a}};Ul.roundUp=function(e,r,t){for(var a=0,n=r.length-1,i,o=0,l=t?0:1,s=t?1:0,u=t?Math.ceil:Math.floor;a0&&(a=1),t&&a)return e.sort(r)}return a?e:e.reverse()};Ul.findIndexOfMin=function(e,r){r=r||aye;for(var t=1/0,a,n=0;nfye});function uye(e){return Object.keys(e).sort()}var fye,y4=Ct(()=>{"use strict";fye=uye});var UE=z(xa=>{"use strict";var kh=Br(),cye=Qn().isArrayOrTypedArray;xa.aggNums=function(e,r,t,a){var n,i;if((!a||a>t.length)&&(a=t.length),kh(r)||(r=!1),cye(t[0])){for(i=new Array(a),n=0;ne.length-1)return e[e.length-1];var t=r%1;return t*e[Math.ceil(r)]+(1-t)*e[Math.floor(r)]}});var WE=z((ZWe,jE)=>{"use strict";var GE=(kc(),Ne(Mc)),g4=GE.mod,vye=GE.modHalf,Sh=Math.PI,Es=2*Sh;function hye(e){return e/180*Sh}function dye(e){return e/Sh*180}function b4(e){return Math.abs(e[1]-e[0])>Es-1e-14}function YE(e,r){return vye(r-e,Es)}function pye(e,r){return Math.abs(YE(e,r))}function VE(e,r){if(b4(r))return!0;var t,a;r[0]a&&(a+=Es);var n=g4(e,Es),i=n+Es;return n>=t&&n<=a||i>=t&&i<=a}function mye(e,r,t,a){if(!VE(r,a))return!1;var n,i;return t[0]=n&&e<=i}function x4(e,r,t,a,n,i,o){n=n||0,i=i||0;var l=b4([t,a]),s,u,f,c,v;l?(s=0,u=Sh,f=Es):t{"use strict";Xu.isLeftAnchor=function(r){return r.xanchor==="left"||r.xanchor==="auto"&&r.x<=1/3};Xu.isCenterAnchor=function(r){return r.xanchor==="center"||r.xanchor==="auto"&&r.x>1/3&&r.x<2/3};Xu.isRightAnchor=function(r){return r.xanchor==="right"||r.xanchor==="auto"&&r.x>=2/3};Xu.isTopAnchor=function(r){return r.yanchor==="top"||r.yanchor==="auto"&&r.y>=2/3};Xu.isMiddleAnchor=function(r){return r.yanchor==="middle"||r.yanchor==="auto"&&r.y>1/3&&r.y<2/3};Xu.isBottomAnchor=function(r){return r.yanchor==="bottom"||r.yanchor==="auto"&&r.y<=1/3}});var JE=z(Zu=>{"use strict";var _4=(kc(),Ne(Mc)).mod;Zu.segmentsIntersect=$E;function $E(e,r,t,a,n,i,o,l){var s=t-e,u=n-e,f=o-n,c=a-r,v=i-r,d=l-i,p=s*d-f*c;if(p===0)return null;var m=(u*d-f*v)/p,y=(u*c-s*v)/p;return y<0||y>1||m<0||m>1?null:{x:e+s*m,y:r+c*m}}Zu.segmentDistance=function(r,t,a,n,i,o,l,s){if($E(r,t,a,n,i,o,l,s))return 0;var u=a-r,f=n-t,c=l-i,v=s-o,d=u*u+f*f,p=c*c+v*v,m=Math.min(Fp(u,f,d,i-r,o-t),Fp(u,f,d,l-r,s-t),Fp(c,v,p,r-i,t-o),Fp(c,v,p,a-i,n-o));return Math.sqrt(m)};function Fp(e,r,t,a,n){var i=a*e+n*r;if(i<0)return a*a+n*n;if(i>t){var o=a-e,l=n-r;return o*o+l*l}else{var s=a*r-n*e;return s*s/t}}var zp,w4,ZE;Zu.getTextLocation=function(r,t,a,n){if((r!==w4||n!==ZE)&&(zp={},w4=r,ZE=n),zp[a])return zp[a];var i=r.getPointAtLength(_4(a-n/2,t)),o=r.getPointAtLength(_4(a+n/2,t)),l=Math.atan((o.y-i.y)/(o.x-i.x)),s=r.getPointAtLength(_4(a,t)),u=(s.x*4+i.x+o.x)/6,f=(s.y*4+i.y+o.y)/6,c={x:u,y:f,theta:l};return zp[a]=c,c};Zu.clearLocationCache=function(){w4=null};Zu.getVisibleSegment=function(r,t,a){var n=t.left,i=t.right,o=t.top,l=t.bottom,s=0,u=r.getTotalLength(),f=u,c,v;function d(m){var y=r.getPointAtLength(m);m===0?c=y:m===u&&(v=y);var b=y.xi?y.x-i:0,T=y.yl?y.y-l:0;return Math.sqrt(b*b+T*T)}for(var p=d(s);p;){if(s+=p+a,s>f)return;p=d(s)}for(p=d(f);p;){if(f-=p+a,s>f)return;p=d(f)}return{min:s,max:f,len:f-s,total:u,isClosed:s===0&&f===u&&Math.abs(c.x-v.x)<.1&&Math.abs(c.y-v.y)<.1}};Zu.findPointOnPath=function(r,t,a,n){n=n||{};for(var i=n.pathLength||r.getTotalLength(),o=n.tolerance||.001,l=n.iterationLimit||30,s=r.getPointAtLength(0)[a]>r.getPointAtLength(i)[a]?-1:1,u=0,f=0,c=i,v,d,p;u0?c=v:f=v,u++}return d}});var Np=z(qh=>{"use strict";var Gl={};qh.throttle=function(r,t,a){var n=Gl[r],i=Date.now();if(!n){for(var o in Gl)Gl[o].tsn.ts+t){l();return}n.timer=setTimeout(function(){l(),n.timer=null},t)};qh.done=function(e){var r=Gl[e];return!r||!r.timer?Promise.resolve():new Promise(function(t){var a=r.onDone;r.onDone=function(){a&&a(),t(),r.onDone=null}})};qh.clear=function(e){if(e)KE(Gl[e]),delete Gl[e];else for(var r in Gl)qh.clear(r)};function KE(e){e&&e.timer!==null&&(clearTimeout(e.timer),e.timer=null)}});var eP=z((QWe,QE)=>{"use strict";QE.exports=function(r){r._clearResponsive&&(r._clearResponsive(),delete r._clearResponsive)}});var rP=z((eXe,Ip)=>{"use strict";Ip.exports=T4;Ip.exports.isMobile=T4;Ip.exports.default=T4;var xye=/(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|redmi|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,_ye=/CrOS/,wye=/android|ipad|playbook|silk/i;function T4(e){e||(e={});let r=e.ua;if(!r&&typeof navigator!="undefined"&&(r=navigator.userAgent),r&&r.headers&&typeof r.headers["user-agent"]=="string"&&(r=r.headers["user-agent"]),typeof r!="string")return!1;let t=xye.test(r)&&!_ye.test(r)||!!e.tablet&&wye.test(r);return!t&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&r.indexOf("Macintosh")!==-1&&r.indexOf("Safari")!==-1&&(t=!0),t}});var aP=z((rXe,tP)=>{"use strict";var Tye=Br(),Aye=rP();tP.exports=function(r){var t;if(r&&r.hasOwnProperty("userAgent")?t=r.userAgent:t=Mye(),typeof t!="string")return!0;var a=Aye({ua:{headers:{"user-agent":t}},tablet:!0,featureDetect:!1});if(!a)for(var n=t.split(" "),i=1;i-1;l--){var s=n[l];if(s.slice(0,8)==="Version/"){var u=s.slice(8).split(".")[0];if(Tye(u)&&(u=+u),u>=13)return!0}}}return a};function Mye(){var e;return typeof navigator!="undefined"&&(e=navigator.userAgent),e&&e.headers&&typeof e.headers["user-agent"]=="string"&&(e=e.headers["user-agent"]),e}});var iP=z((tXe,nP)=>{"use strict";var kye=Pr();nP.exports=function(r,t,a){var n=r.selectAll("g."+a.replace(/\s/g,".")).data(t,function(o){return o[0].trace.uid});n.exit().remove(),n.enter().append("g").attr("class",a),n.order();var i=r.classed("rangeplot")?"nodeRangePlot3":"node3";return n.each(function(o){o[0][i]=kye.select(this)}),n}});var lP=z((aXe,oP)=>{"use strict";var Sye=Ar();oP.exports=function(r,t){for(var a=r._context.locale,n=0;n<2;n++){for(var i=r._context.locales,o=0;o<2;o++){var l=(i[a]||{}).dictionary;if(l){var s=l[t];if(s)return s}i=Sye.localeRegistry}var u=a.split("-")[0];if(u===a)break;a=u}return t}});var uP=z((nXe,sP)=>{"use strict";sP.exports=function(r){for(var t={},a=[],n=0,i=0;i{"use strict";fP.exports=function(r){for(var t=Cye(r)?Lye:qye,a=[],n=0;n{"use strict";vP.exports=function(r,t){if(!t)return r;var a=1/Math.abs(t),n=a>1?(a*r+a*t)/a:r+t,i=String(n).length;if(i>16){var o=String(t).length,l=String(r).length;if(i>=l+o){var s=parseFloat(n).toPrecision(12);s.indexOf("e+")===-1&&(n=+s)}}return n}});var pP={};Dt(pP,{default:()=>Pye});function Eye(e){return typeof e=="string"&&(e=e.replace(Dye,"")),(0,dP.default)(e)?Number(e):void 0}var dP,Dye,Pye,mP=Ct(()=>{"use strict";dP=wc(Br());Kt();Dye=/^['"%,$#\s']+|[, ]|['"%,$#\s']+$/g;Pye=Eye});var bP=z((sXe,gP)=>{"use strict";var Rye=/<[^>]*>/g,Fye=/[\p{S}\p{P}]/gu,zye=/[\p{Cc}\p{Cf}\uFE00-\uFE0F\u20E3]/gu,Nye=/�/g,Iye=/\s+/g,Bp="-",yP=Bp.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),Bye=new RegExp(yP+"{3,}","g"),Oye=new RegExp(yP+"$","g"),Hye=60;function Uye(e){return typeof e.toWellFormed=="function"?e.toWellFormed():new TextDecoder().decode(new TextEncoder().encode(e))}gP.exports=function(r,t=Hye){var a=Uye(r!=null?r:"").replace(Nye,"").replace(Rye," ").replace(Fye,n=>n===Bp?n:"").toLowerCase().trim().replace(Iye,Bp).replace(zye,"").replace(Bye,Bp);return a.length<=t?a:Array.from(a).slice(0,t).join("").replace(Oye,"")}});var ke=z((uXe,DP)=>{"use strict";var Lh=Pr(),Gye=Tc().utcFormat,Yye=p5().format,MP=Br(),kP=(Kt(),Ne(aa)),SP=kP.FP_SAFE,Vye=-SP,xP=kP.BADNUM,he={};DP.exports=he;he.adjustFormat=function(r){if(!r||/^\d[.]\df/.test(r)||/[.]\d%/.test(r))return r;if(r==="0.f")return"~f";if(/^\d%/.test(r))return"~%";if(/^\ds/.test(r))return"~s";var t=(r.match(/^[+\-( ]?/)||[""])[0],a=r.slice(t.length);return!/^[~,.0$#]/.test(a)&&/[&fps]/.test(a)?t+"~"+a:r};var _P={};he.warnBadFormat=function(e){var r=String(e);_P[r]||(_P[r]=1,he.warn('encountered bad format: "'+r+'"'))};he.noFormat=function(e){return String(e)};he.numberFormat=function(e){var r;try{r=Yye(he.adjustFormat(e))}catch(t){return he.warnBadFormat(e),he.noFormat}return r};he.nestedProperty=Y1();he.keyedContainer=dq();he.relativeAttr=mq();he.isPlainObject=Fu();he.toLogRange=j1();he.relinkPrivateKeys=xq();var Ps=Qn();he.isArrayBuffer=Ps.isArrayBuffer;he.isTypedArray=Ps.isTypedArray;he.isArrayOrTypedArray=Ps.isArrayOrTypedArray;he.isArray1D=Ps.isArray1D;he.ensureArray=Ps.ensureArray;he.concat=Ps.concat;he.maxRowLength=Ps.maxRowLength;he.minRowLength=Ps.minRowLength;var qP=(kc(),Ne(Mc));he.mod=qP.mod;he.modHalf=qP.modHalf;var Rs=HC();he.valObjectMeta=Rs.valObjectMeta;he.coerce=Rs.coerce;he.coerce2=Rs.coerce2;he.coerceFont=Rs.coerceFont;he.coercePattern=Rs.coercePattern;he.coerceHoverinfo=Rs.coerceHoverinfo;he.coerceSelectionMarkerOpacity=Rs.coerceSelectionMarkerOpacity;he.validate=Rs.validate;var bi=OE();he.dateTime2ms=bi.dateTime2ms;he.isDateTime=bi.isDateTime;he.ms2DateTime=bi.ms2DateTime;he.ms2DateTimeLocal=bi.ms2DateTimeLocal;he.cleanDate=bi.cleanDate;he.isJSDate=bi.isJSDate;he.formatDate=bi.formatDate;he.incrementMonth=bi.incrementMonth;he.dateTick0=bi.dateTick0;he.dfltRange=bi.dfltRange;he.findExactDates=bi.findExactDates;he.MIN_MS=bi.MIN_MS;he.MAX_MS=bi.MAX_MS;var $u=p4();he.findBin=$u.findBin;he.sorterAsc=$u.sorterAsc;he.sorterDes=$u.sorterDes;he.distinctVals=$u.distinctVals;he.roundUp=$u.roundUp;he.sort=$u.sort;he.findIndexOfMin=$u.findIndexOfMin;he.sortObjectKeys=(y4(),Ne(m4)).default;var Yl=UE();he.aggNums=Yl.aggNums;he.len=Yl.len;he.mean=Yl.mean;he.geometricMean=Yl.geometricMean;he.median=Yl.median;he.midRange=Yl.midRange;he.variance=Yl.variance;he.stdev=Yl.stdev;he.interp=Yl.interp;var Eo=Mp();he.init2dArray=Eo.init2dArray;he.transposeRagged=Eo.transposeRagged;he.dot=Eo.dot;he.translationMatrix=Eo.translationMatrix;he.rotationMatrix=Eo.rotationMatrix;he.rotationXYMatrix=Eo.rotationXYMatrix;he.apply3DTransform=Eo.apply3DTransform;he.apply2DTransform=Eo.apply2DTransform;he.apply2DTransform2=Eo.apply2DTransform2;he.convertCssMatrix=Eo.convertCssMatrix;he.inverseTransformMatrix=Eo.inverseTransformMatrix;var sl=WE();he.deg2rad=sl.deg2rad;he.rad2deg=sl.rad2deg;he.angleDelta=sl.angleDelta;he.angleDist=sl.angleDist;he.isFullCircle=sl.isFullCircle;he.isAngleInsideSector=sl.isAngleInsideSector;he.isPtInsideSector=sl.isPtInsideSector;he.pathArc=sl.pathArc;he.pathSector=sl.pathSector;he.pathAnnulus=sl.pathAnnulus;var Vc=XE();he.isLeftAnchor=Vc.isLeftAnchor;he.isCenterAnchor=Vc.isCenterAnchor;he.isRightAnchor=Vc.isRightAnchor;he.isTopAnchor=Vc.isTopAnchor;he.isMiddleAnchor=Vc.isMiddleAnchor;he.isBottomAnchor=Vc.isBottomAnchor;var jc=JE();he.segmentsIntersect=jc.segmentsIntersect;he.segmentDistance=jc.segmentDistance;he.getTextLocation=jc.getTextLocation;he.clearLocationCache=jc.clearLocationCache;he.getVisibleSegment=jc.getVisibleSegment;he.findPointOnPath=jc.findPointOnPath;var Up=St();he.extendFlat=Up.extendFlat;he.extendDeep=Up.extendDeep;he.extendDeepAll=Up.extendDeepAll;he.extendDeepNoArrays=Up.extendDeepNoArrays;var A4=Ms();he.log=A4.log;he.warn=A4.warn;he.error=A4.error;var jye=(Nc(),Ne(_h));he.counterRegex=jye.counter;var M4=Np();he.throttle=M4.throttle;he.throttleDone=M4.done;he.clearThrottle=M4.clear;var Po=wh();he.getGraphDiv=Po.getGraphDiv;he.isPlotDiv=Po.isPlotDiv;he.removeElement=Po.removeElement;he.addStyleRule=Po.addStyleRule;he.addRelatedStyleRule=Po.addRelatedStyleRule;he.deleteRelatedStyleRule=Po.deleteRelatedStyleRule;he.setStyleOnHover=Po.setStyleOnHover;he.getFullTransformMatrix=Po.getFullTransformMatrix;he.getElementTransformMatrix=Po.getElementTransformMatrix;he.getElementAndAncestors=Po.getElementAndAncestors;he.equalDomRects=Po.equalDomRects;he.clearResponsive=eP();he.preserveDrawingBuffer=aP();he.makeTraceGroups=iP();he._=lP();he.notifier=X_();he.filterUnique=uP();he.filterVisible=cP();he.pushUnique=a4();he.increment=hP();he.cleanNumber=(mP(),Ne(pP)).default;he.slugify=bP();he.ensureNumber=function(r){return MP(r)?(r=Number(r),r>SP||r=r?!1:MP(e)&&e>=0&&e%1===0};he.noop=Ap();he.identity=h4();he.repeat=function(e,r){for(var t=new Array(r),a=0;at?Math.max(t,Math.min(r,e)):Math.max(r,Math.min(t,e))};he.bBoxIntersect=function(e,r,t){return t=t||0,e.left<=r.right+t&&r.left<=e.right+t&&e.top<=r.bottom+t&&r.top<=e.bottom+t};he.simpleMap=function(e,r,t,a,n){for(var i=e.length,o=new Array(i),l=0;l=Math.pow(2,t)?n>10?(he.warn("randstr failed uniqueness"),o):e(r,t,a,(n||0)+1):o};he.OptionControl=function(e,r){e||(e={}),r||(r="opt");var t={};return t.optionList=[],t._newoption=function(a){a[r]=e,t[a.name]=a,t.optionList.push(a)},t["_"+r]=e,t};he.smooth=function(e,r){if(r=Math.round(r)||0,r<2)return e;var t=e.length,a=2*t,n=2*r-1,i=new Array(n),o=new Array(t),l,s,u,f;for(l=0;l=a&&(u-=a*Math.floor(u/a)),u<0?u=-1-u:u>=t&&(u=a-1-u),f+=e[u]*i[s];o[l]=f}return o};he.syncOrAsync=function(e,r,t){var a,n;function i(){return he.syncOrAsync(e,r,t)}for(;e.length;)if(n=e.splice(0,1)[0],a=n(r),a&&a.then)return a.then(i);return t&&t(r)};he.stripTrailingSlash=function(e){return e.slice(-1)==="/"?e.slice(0,-1):e};he.noneOrAll=function(e,r,t){if(e){var a=!1,n=!0,i,o;for(i=0;i0?n:0})};he.fillArray=function(e,r,t,a){if(a=a||he.identity,he.isArrayOrTypedArray(e))for(var n=0;nZye.test(window.navigator.userAgent);var $ye=/Firefox\/(\d+)\.\d+/;he.getFirefoxVersion=function(){var e=$ye.exec(window.navigator.userAgent);if(e&&e.length===2){var r=parseInt(e[1]);if(!isNaN(r))return r}return null};he.isD3Selection=function(e){return e instanceof Lh.selection};he.ensureSingle=function(e,r,t,a){var n=e.select(r+(t?"."+t:""));if(n.size())return n;var i=e.append(r);return t&&i.classed(t,!0),a&&i.call(a),i};he.ensureSingleById=function(e,r,t,a){var n=e.select(r+"#"+t);if(n.size())return n;var i=e.append(r).attr("id",t);return a&&i.call(a),i};he.objectFromPath=function(e,r){for(var t=e.split("."),a,n=a={},i=0;i1?n+o[1]:"";if(i&&(o.length>1||l.length>4||t))for(;a.test(l);)l=l.replace(a,"$1"+i+"$2");return l+s};he.TEMPLATE_STRING_REGEX=/%{([^\s%{}:]*)([:|\|][^}]*)?}/g;var CP=/^\w*$/;he.templateString=function(e,r){var t={};return e.replace(he.TEMPLATE_STRING_REGEX,function(a,n){var i;return CP.test(n)?i=r[n]:(t[n]=t[n]||he.nestedProperty(r,n).get,i=t[n](!0)),i!==void 0?i:""})};var Qye={max:10,count:0,name:"hovertemplate"};he.hovertemplateString=e=>k4(Jt(At({},e),{opts:Qye}));var ege={max:10,count:0,name:"texttemplate"};he.texttemplateString=e=>k4(Jt(At({},e),{opts:ege}));var rge=/^(\S+)([\*\/])(-?\d+(\.\d+)?)$/;function tge(e){var r=e.match(rge);return r?{key:r[1],op:r[2],number:Number(r[3])}:{key:e,op:null,number:null}}var age={max:10,count:0,name:"texttemplate",parseMultDiv:!0};he.texttemplateStringForShapes=e=>k4(Jt(At({},e),{opts:age}));var wP=/^[:|\|]/;function k4({data:e=[],locale:r,fallback:t,labels:a={},opts:n,template:i}){return i.replace(he.TEMPLATE_STRING_REGEX,(o,l,s)=>{let u=["xother","yother"].includes(l),f=["_xother","_yother"].includes(l),c=["_xother_","_yother_"].includes(l),v=["xother_","yother_"].includes(l),d=u||f||v||c;(f||c)&&(l=l.substring(1)),(v||c)&&(l=l.substring(0,l.length-1));let p=null,m=null;if(n.parseMultDiv){var y=tge(l);l=y.key,p=y.op,m=y.number}let b;if(d){if(a[l]===void 0)return"";b=a[l]}else for(let _ of e)if(_){if(_.hasOwnProperty(l)){b=_[l];break}if(CP.test(l)||(b=he.nestedProperty(_,l).get(!0)),b!==void 0)break}if(b===void 0){let{count:_,max:k,name:M}=n,S=t===!1?o:t;return _=Hp&&o<=TP,u=l>=Hp&&l<=TP;if(s&&(a=10*a+o-Hp),u&&(n=10*n+l-Hp),!s||!u){if(a!==n)return a-n;if(o!==l)return o-l}}return n-a};var Yc=2e9;he.seedPseudoRandom=function(){Yc=2e9};he.pseudoRandom=function(){var e=Yc;return Yc=(69069*Yc+1)%4294967296,Math.abs(Yc-e)<429496729?he.pseudoRandom():Yc/4294967296};he.fillText=function(e,r,t){var a=Array.isArray(t)?function(o){t.push(o)}:function(o){t.text=o},n=he.extractOption(e,r,"htx","hovertext");if(he.isValidTextValue(n))return a(n);var i=he.extractOption(e,r,"tx","text");if(he.isValidTextValue(i))return a(i)};he.isValidTextValue=function(e){return e||e===0};he.formatPercent=function(e,r){r=r||0;for(var t=(Math.round(100*e*Math.pow(10,r))*Math.pow(.1,r)).toFixed(r)+"%",a=0;a1&&(u=1):u=0,he.strTranslate(n-u*(t+o),i-u*(a+l))+he.strScale(u)+(s?"rotate("+s+(r?"":" "+t+" "+a)+")":"")};he.setTransormAndDisplay=function(e,r){e.attr("transform",he.getTextTransform(r)),e.style("display",r.scale?null:"none")};he.ensureUniformFontSize=function(e,r){var t=he.extendFlat({},r);return t.size=Math.max(r.size,e._fullLayout.uniformtext.minsize||0),t};he.join2=function(e,r,t){var a=e.length;return a>1?e.slice(0,-1).join(r)+t+e[a-1]:e.join(r)};he.bigFont=function(e){return Math.round(1.2*e)};var AP=he.getFirefoxVersion(),nge=AP!==null&&AP<86;he.getPositionFromD3Event=function(){return nge?[Lh.event.layerX,Lh.event.layerY]:[Lh.event.offsetX,Lh.event.offsetY]}});var RP=z(()=>{"use strict";var ige=ke(),EP={"X,X div":'direction:ltr;font-family:"Open Sans",verdana,arial,sans-serif;margin:0;padding:0;border: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 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:focus-within .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-group a":"display:grid;place-content:center;","X .modebar-btn":"position:relative;font-size:16px;padding:3px 4px;height:22px;cursor:pointer;line-height:normal;box-sizing:border-box;border:none;background:rgba(0,0,0,0);","X .modebar-btn svg":"position:relative;","X .modebar-btn:focus-visible":"outline:1px solid #000;outline-offset:1px;border-radius:3px;","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;","X .plotly-cloud-dialog":'font-family:"Open Sans",verdana,arial,sans-serif;position:absolute;top:0;left:0;width:100%;height:100%;z-index:1001;display:flex;align-items:center;justify-content:center;background-color:rgba(0,0,0,.4);',"X .plotly-cloud-dialog .plotly-cloud-dialog-box":"box-sizing:border-box;min-width:300px;max-width:420px;padding:20px 24px;background-color:#fff;border:1px solid #e0e2e5;border-radius:4px;box-shadow:0 4px 16px rgba(0,0,0,.25);font-size:13px;color:#2a3f5f;","X .plotly-cloud-dialog .plotly-cloud-dialog-title":"font-size:16px;font-weight:bold;margin-bottom:12px;","X .plotly-cloud-dialog .plotly-cloud-dialog-message":"line-height:1.5;overflow-wrap:break-word;word-wrap:break-word;","X .plotly-cloud-dialog .plotly-cloud-dialog-message--hostname":"font-weight:bold;text-decoration:underline;","X .plotly-cloud-dialog .plotly-cloud-dialog-message--account":"margin-top:16px;padding:8px;border-radius:3px;font-size:.9em;background-color:#edf1f8;","X .plotly-cloud-dialog .plotly-cloud-dialog-buttons":"display:flex;justify-content:flex-end;margin-top:20px;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn":"font-family:inherit;font-size:13px;padding:7px 16px;margin-left:8px;border-radius:3px;border:1px solid rgba(0,0,0,0);cursor:pointer;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn:focus-visible":"outline:2px solid #447adb;outline-offset:1px;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn--cancel":"background-color:#f3f3f3;margin-left:auto;color:#777;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn--cancel:hover":"background-color:#e0e2e5;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn--confirm":"background-color:#447adb;color:#fff;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn--confirm:hover":"background-color:#1d3b84;",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(S4 in EP)PP=S4.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier"),ige.addStyleRule(PP,EP[S4]);var PP,S4});var q4=z((hXe,FP)=>{FP.exports=!0});var C4=z((dXe,zP)=>{"use strict";var oge=q4(),L4;typeof window.matchMedia=="function"?L4=!window.matchMedia("(hover: none)").matches:L4=oge;zP.exports=L4});var Ju=z((pXe,D4)=>{"use strict";var Wc=typeof Reflect=="object"?Reflect:null,NP=Wc&&typeof Wc.apply=="function"?Wc.apply:function(r,t,a){return Function.prototype.apply.call(r,t,a)},Gp;Wc&&typeof Wc.ownKeys=="function"?Gp=Wc.ownKeys:Object.getOwnPropertySymbols?Gp=function(r){return Object.getOwnPropertyNames(r).concat(Object.getOwnPropertySymbols(r))}:Gp=function(r){return Object.getOwnPropertyNames(r)};function lge(e){console&&console.warn&&console.warn(e)}var BP=Number.isNaN||function(r){return r!==r};function Vt(){Vt.init.call(this)}D4.exports=Vt;D4.exports.once=cge;Vt.EventEmitter=Vt;Vt.prototype._events=void 0;Vt.prototype._eventsCount=0;Vt.prototype._maxListeners=void 0;var IP=10;function Yp(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(Vt,"defaultMaxListeners",{enumerable:!0,get:function(){return IP},set:function(e){if(typeof e!="number"||e<0||BP(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");IP=e}});Vt.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};Vt.prototype.setMaxListeners=function(r){if(typeof r!="number"||r<0||BP(r))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+r+".");return this._maxListeners=r,this};function OP(e){return e._maxListeners===void 0?Vt.defaultMaxListeners:e._maxListeners}Vt.prototype.getMaxListeners=function(){return OP(this)};Vt.prototype.emit=function(r){for(var t=[],a=1;a0&&(o=t[0]),o instanceof Error)throw o;var l=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw l.context=o,l}var s=i[r];if(s===void 0)return!1;if(typeof s=="function")NP(s,this,t);else for(var u=s.length,f=VP(s,u),a=0;a0&&o.length>n&&!o.warned){o.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(r)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=r,l.count=o.length,lge(l)}return e}Vt.prototype.addListener=function(r,t){return HP(this,r,t,!1)};Vt.prototype.on=Vt.prototype.addListener;Vt.prototype.prependListener=function(r,t){return HP(this,r,t,!0)};function sge(){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 UP(e,r,t){var a={fired:!1,wrapFn:void 0,target:e,type:r,listener:t},n=sge.bind(a);return n.listener=t,a.wrapFn=n,n}Vt.prototype.once=function(r,t){return Yp(t),this.on(r,UP(this,r,t)),this};Vt.prototype.prependOnceListener=function(r,t){return Yp(t),this.prependListener(r,UP(this,r,t)),this};Vt.prototype.removeListener=function(r,t){var a,n,i,o,l;if(Yp(t),n=this._events,n===void 0)return this;if(a=n[r],a===void 0)return this;if(a===t||a.listener===t)--this._eventsCount===0?this._events=Object.create(null):(delete n[r],n.removeListener&&this.emit("removeListener",r,a.listener||t));else if(typeof a!="function"){for(i=-1,o=a.length-1;o>=0;o--)if(a[o]===t||a[o].listener===t){l=a[o].listener,i=o;break}if(i<0)return this;i===0?a.shift():uge(a,i),a.length===1&&(n[r]=a[0]),n.removeListener!==void 0&&this.emit("removeListener",r,l||t)}return this};Vt.prototype.off=Vt.prototype.removeListener;Vt.prototype.removeAllListeners=function(r){var t,a,n;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[r]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete a[r]),this;if(arguments.length===0){var i=Object.keys(a),o;for(n=0;n=0;n--)this.removeListener(r,t[n]);return this};function GP(e,r,t){var a=e._events;if(a===void 0)return[];var n=a[r];return n===void 0?[]:typeof n=="function"?t?[n.listener||n]:[n]:t?fge(n):VP(n,n.length)}Vt.prototype.listeners=function(r){return GP(this,r,!0)};Vt.prototype.rawListeners=function(r){return GP(this,r,!1)};Vt.listenerCount=function(e,r){return typeof e.listenerCount=="function"?e.listenerCount(r):YP.call(e,r)};Vt.prototype.listenerCount=YP;function YP(e){var r=this._events;if(r!==void 0){var t=r[e];if(typeof t=="function")return 1;if(t!==void 0)return t.length}return 0}Vt.prototype.eventNames=function(){return this._eventsCount>0?Gp(this._events):[]};function VP(e,r){for(var t=new Array(r),a=0;a{"use strict";var E4=Ju().EventEmitter,hge={init:function(e){if(e._ev instanceof E4)return e;var r=new E4,t=new E4;return e._ev=r,e._internalEv=t,e.on=r.on.bind(r),e.once=r.once.bind(r),e.removeListener=r.removeListener.bind(r),e.removeAllListeners=r.removeAllListeners.bind(r),e._internalOn=t.on.bind(t),e._internalOnce=t.once.bind(t),e._removeInternalListener=t.removeListener.bind(t),e._removeAllInternalListeners=t.removeAllListeners.bind(t),e.emit=function(a,n){r.emit(a,n),t.emit(a,n)},typeof e.addEventListener=="function"&&e.addEventListener("wheel",()=>{},{passive:!0}),e},triggerHandler:function(e,r,t){var a,n=e._ev;if(!n)return;var i=n._events[r];if(!i)return;function o(s){if(s.listener){if(n.removeListener(r,s.listener),!s.fired)return s.fired=!0,s.listener.apply(n,[t])}else return s.apply(n,[t])}i=Array.isArray(i)?i:[i];var l;for(l=0;l{"use strict";var XP=ke(),dge=As().dfltConfig;function pge(e,r){for(var t=[],a,n=0;ndge.queueLength&&(e.undoQueue.queue.shift(),e.undoQueue.index--)};Vl.startSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!0,e.undoQueue.beginSequence=!0};Vl.stopSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!1,e.undoQueue.beginSequence=!1};Vl.undo=function(r){var t,a;if(!(r.undoQueue===void 0||isNaN(r.undoQueue.index)||r.undoQueue.index<=0)){for(r.undoQueue.index--,t=r.undoQueue.queue[r.undoQueue.index],r.undoQueue.inSequence=!0,a=0;a=r.undoQueue.queue.length)){for(t=r.undoQueue.queue[r.undoQueue.index],r.undoQueue.inSequence=!0,a=0;a{"use strict";JP.exports={_isLinkedToArray:"frames_entry",group:{valType:"string"},name:{valType:"string"},traces:{valType:"any"},baseframe:{valType:"string"},data:{valType:"any"},layout:{valType:"any"}}});var $c=z(Ba=>{"use strict";var Yi=Ar(),Dh=ke(),jp=Gn(),R4=Oc(),mge=P4(),yge=Th(),gge=As().configAttributes,KP=Do(),Ro=Dh.extendDeepAll,Xc=Dh.isPlainObject,bge=Dh.isArrayOrTypedArray,Wp=Dh.nestedProperty,xge=Dh.valObjectMeta,F4="_isSubplotObj",Xp="_isLinkedToArray",_ge="_arrayAttrRegexps",eR="_deprecated",z4=[F4,Xp,_ge,eR];Ba.IS_SUBPLOT_OBJ=F4;Ba.IS_LINKED_TO_ARRAY=Xp;Ba.DEPRECATED=eR;Ba.UNDERSCORE_ATTRS=z4;Ba.get=function(){var e={};return Yi.allTypes.forEach(function(r){e[r]=Tge(r)}),{defs:{valObjects:xge,metaKeys:z4.concat(["description","role","editType","impliedEdits"]),editType:{traces:KP.traces,layout:KP.layout},impliedEdits:{}},traces:e,layout:Age(),frames:Mge(),animation:Zc(yge),config:Zc(gge)}};Ba.crawl=function(e,r,t,a){var n=t||0;a=a||"",Object.keys(e).forEach(function(i){var o=e[i];if(z4.indexOf(i)===-1){var l=(a?a+".":"")+i;r(o,i,e,n,l),!Ba.isValObject(o)&&Xc(o)&&i!=="impliedEdits"&&Ba.crawl(o,r,n+1,l)}})};Ba.isValObject=function(e){return e&&e.valType!==void 0};Ba.findArrayAttributes=function(e){var r=[],t=[],a=[],n,i;function o(s,u,f,c){t=t.slice(0,c).concat([u]),a=a.slice(0,c).concat([s&&s._isLinkedToArray]);var v=s&&(s.valType==="data_array"||s.arrayOk===!0)&&!(t[c-1]==="colorbar"&&(u==="ticktext"||u==="tickvals"));v&&l(n,0,"")}function l(s,u,f){var c=s[t[u]],v=f+t[u];if(u===t.length-1)bge(c)&&r.push(i+v);else if(a[u]){if(Array.isArray(c))for(var d=0;d=i.length)return!1;if(e.dimensions===2){if(t++,r.length===t)return e;var o=r[t];if(!Vp(o))return!1;e=i[n][o]}else e=i[n]}else e=i}}return e}function Vp(e){return e===Math.round(e)&&e>=0}function Tge(e){var r,t;r=Yi.modules[e]._module,t=r.basePlotModule;var a={};a.type=null;var n=Ro({},jp),i=Ro({},r.attributes);Ba.crawl(i,function(s,u,f,c,v){Wp(n,v).set(void 0),s===void 0&&Wp(i,v).set(void 0)}),Ro(a,n),Yi.traceIs(e,"noOpacity")&&delete a.opacity,Yi.traceIs(e,"showLegend")||(delete a.showlegend,delete a.legendgroup),Yi.traceIs(e,"noHover")&&(delete a.hoverinfo,delete a.hoverlabel),r.selectPoints||delete a.selectedpoints,Ro(a,i),t.attributes&&Ro(a,t.attributes),a.type=e;var o={meta:r.meta||{},categories:r.categories||{},animatable:!!r.animatable,type:e,attributes:Zc(a)};if(r.layoutAttributes){var l={};Ro(l,r.layoutAttributes),o.layoutAttributes=Zc(l)}return r.animatable||Ba.crawl(o,function(s){Ba.isValObject(s)&&"anim"in s&&delete s.anim}),o}function Age(){var e={},r,t;Ro(e,R4);for(r in Yi.subplotsRegistry)if(t=Yi.subplotsRegistry[r],!!t.layoutAttributes)if(Array.isArray(t.attr))for(var a=0;a{"use strict";var Jc=ke(),Cge=Gn(),Fs="templateitemname",N4={name:{valType:"string",editType:"none"}};N4[Fs]={valType:"string",editType:"calc"};Ku.templatedArray=function(e,r){return r._isLinkedToArray=e,r.name=N4.name,r[Fs]=N4[Fs],r};Ku.traceTemplater=function(e){var r={},t,a;for(t in e)a=e[t],Array.isArray(a)&&a.length&&(r[t]=0);function n(i){t=Jc.coerce(i,{},Cge,"type");var o={type:t,_template:null};if(t in r){a=e[t];var l=r[t]%a.length;r[t]++,o._template=a[l]}return o}return{newTrace:n}};Ku.newContainer=function(e,r,t){var a=e._template,n=a&&(a[r]||t&&a[t]);Jc.isPlainObject(n)||(n=null);var i=e[r]={_template:n};return i};Ku.arrayTemplater=function(e,r,t){var a=e._template,n=a&&a[aR(r)],i=a&&a[r];(!Array.isArray(i)||!i.length)&&(i=[]);var o={};function l(u){var f={name:u.name,_input:u},c=f[Fs]=u[Fs];if(!tR(c))return f._template=n,f;for(var v=0;v=a&&(t._input||{})._templateitemname;i&&(n=a);var o=r+"["+n+"]",l;function s(){l={},i&&(l[o]={},l[o][Fs]=i)}s();function u(d,p){l[d]=p}function f(d,p){i?Jc.nestedProperty(l[o],d).set(p):l[o+"."+d]=p}function c(){var d=l;return s(),d}function v(d,p){d&&f(d,p);var m=c();for(var y in m)Jc.nestedProperty(e,y).set(m[y])}return{modifyBase:u,modifyItem:f,getUpdateObj:c,applyUpdate:v}}});var Oa={};Dt(Oa,{AX_ID_PATTERN:()=>Fge,AX_NAME_PATTERN:()=>zge,DFLTRANGEX:()=>Yge,DFLTRANGEY:()=>Vge,DRAGGERSIZE:()=>Uge,HOUR_PATTERN:()=>Ige,MINDRAG:()=>Oge,MINZOOM:()=>Hge,REDRAWDELAY:()=>Gge,SUBPLOT_PATTERN:()=>Nge,WEEKDAY_PATTERN:()=>Bge,attrRegex:()=>Ege,clipOnAxisFalseQuery:()=>Wge,idRegex:()=>Dge,layerValue2layerClass:()=>Xge,traceLayerClasses:()=>jge,xAxisMatch:()=>Pge,yAxisMatch:()=>Rge,zindexSeparator:()=>Zge});var Dge,Ege,Pge,Rge,Fge,zge,Nge,Ige,Bge,Oge,Hge,Uge,Gge,Yge,Vge,jge,Wge,Xge,Zge,Ha=Ct(()=>{"use strict";Nc();Dge={x:ju("x","( domain)?"),y:ju("y","( domain)?")},Ege=ju("[xy]axis"),Pge=ju("xaxis"),Rge=ju("yaxis"),Fge=/^[xyz][0-9]*( domain)?$/,zge=/^[xyz]axis[0-9]*$/,Nge=/^x([0-9]*)y([0-9]*)$/,Ige="hour",Bge="day of week",Oge=8,Hge=20,Uge=20,Gge=50,Yge=[-1,6],Vge=[-1,4],jge=["imagelayer","heatmaplayer","contourcarpetlayer","contourlayer","funnellayer","waterfalllayer","barlayer","carpetlayer","violinlayer","boxlayer","ohlclayer","scattercarpetlayer","scatterlayer"],Wge=[".scatterlayer",".barlayer",".funnellayer",".waterfalllayer"],Xge={"above traces":"above","below traces":"below"},Zge="z"});var Ca=z(ai=>{"use strict";var $ge=Ar(),I4=(Ha(),Ne(Oa));ai.id2name=function(r){if(!(typeof r!="string"||!r.match(I4.AX_ID_PATTERN))){var t=r.split(" ")[0].slice(1);return t==="1"&&(t=""),r.charAt(0)+"axis"+t}};ai.name2id=function(r){if(r.match(I4.AX_NAME_PATTERN)){var t=r.slice(5);return t==="1"&&(t=""),r.charAt(0)+t}};ai.cleanId=function(r,t,a){var n=/( domain)$/.test(r);if(!(typeof r!="string"||!r.match(I4.AX_ID_PATTERN))&&!(t&&r.charAt(0)!==t)&&!(n&&!a)){var i=r.split(" ")[0].slice(1).replace(/^0+/,"");return i==="1"&&(i=""),r.charAt(0)+i+(n&&a?" domain":"")}};ai.list=function(e,r,t){var a=e._fullLayout;if(!a)return[];var n=ai.listIds(e,r),i=new Array(n.length),o;for(o=0;oa?1:-1:+(e.slice(1)||1)-+(r.slice(1)||1)};ai.ref2id=function(e){return/^[xyz]/.test(e)?e.split(" ")[0]:!1};function nR(e,r){if(r&&r.length){for(var t=0;t{"use strict";function Jge(e){var r=e._fullLayout._zoomlayer;r&&r.selectAll(".outline-controllers").remove()}function Kge(e){var r=e._fullLayout._zoomlayer;r&&r.selectAll(".select-outline").remove(),e._fullLayout._outlining=!1}iR.exports={clearOutlineControllers:Jge,clearOutline:Kge}});var Zp=z((AXe,oR)=>{"use strict";oR.exports={scattermode:{valType:"enumerated",values:["group","overlay"],dflt:"overlay",editType:"calc"},scattergap:{valType:"number",min:0,max:1,editType:"calc"}}});var Kp=z(Jp=>{"use strict";var $p=Ar(),MXe=(Ha(),Ne(Oa)).SUBPLOT_PATTERN;Jp.getSubplotCalcData=function(e,r,t){var a=$p.subplotsRegistry[r];if(!a)return[];for(var n=a.attr,i=[],o=0;o{"use strict";var Qge=Ar(),Kc=ke();Qu.manageCommandObserver=function(e,r,t,a){var n={},i=!0;r&&r._commandObserver&&(n=r._commandObserver),n.cache||(n.cache={}),n.lookupTable={};var o=Qu.hasSimpleAPICommandBindings(e,t,n.lookupTable);if(r&&r._commandObserver){if(o)return n;if(r._commandObserver.remove)return r._commandObserver.remove(),r._commandObserver=null,n}if(o){lR(e,o,n.cache),n.check=function(){if(i){var f=lR(e,o,n.cache);return f.changed&&a&&n.lookupTable[f.value]!==void 0&&(n.disable(),Promise.resolve(a({value:f.value,type:o.type,prop:o.prop,traces:o.traces,index:n.lookupTable[f.value]})).then(n.enable,n.enable)),f.changed}};for(var l=["plotly_relayout","plotly_redraw","plotly_restyle","plotly_update","plotly_animatingframe","plotly_afterplot"],s=0;s0?".":"")+n;Kc.isPlainObject(i)?B4(i,r,o,a+1):r(o,n,i)}})}});var _a=z((LXe,xR)=>{"use strict";var qXe=Pr(),r3e=Tc().timeFormatLocale,t3e=p5().formatLocale,Eh=Br(),a3e=y5(),n3e=Jv().version,it=Ar(),i3e=$c(),o3e=Pt(),yr=ke(),l3e=qr(),cR=(Kt(),Ne(aa)).BADNUM,ni=Ca(),s3e=zs().clearOutline,u3e=Zp(),O4=Th(),f3e=P4(),c3e=Kp().getModuleCalcData,vR=yr.relinkPrivateKeys,ef=yr._,nr=xR.exports={};yr.extendFlat(nr,it);nr.attributes=Gn();nr.attributes.type.values=nr.allTypes;nr.fontAttrs=Ia();nr.layoutAttributes=Oc();var em=fR();nr.executeAPICommand=em.executeAPICommand;nr.computeAPICommandBindings=em.computeAPICommandBindings;nr.manageCommandObserver=em.manageCommandObserver;nr.hasSimpleAPICommandBindings=em.hasSimpleAPICommandBindings;nr.redrawText=function(e){return e=yr.getGraphDiv(e),new Promise(function(r){setTimeout(function(){e._fullLayout&&(it.getComponentMethod("annotations","draw")(e),it.getComponentMethod("legend","draw")(e),it.getComponentMethod("colorbar","draw")(e),r(nr.previousPromises(e)))},300)})};nr.resize=function(e){e=yr.getGraphDiv(e);var r,t=new Promise(function(a,n){(!e||yr.isHidden(e))&&n(new Error("Resize must be passed a displayed plot div element.")),e._redrawTimer&&clearTimeout(e._redrawTimer),e._resolveResize&&(r=e._resolveResize),e._resolveResize=a,e._redrawTimer=setTimeout(function(){if(!e.layout||e.layout.width&&e.layout.height||yr.isHidden(e)){a(e);return}delete e.layout.width,delete e.layout.height;var i=e.changed;e.autoplay=!0,it.call("relayout",e,{autosize:!0}).then(function(){e.changed=i,e._resolveResize===a&&(delete e._resolveResize,a(e))})},100)});return r&&r(t),t};nr.previousPromises=function(e){if((e._promises||[]).length)return Promise.all(e._promises).then(function(){e._promises=[]})};nr.sendDataToCloud=function(e,r){e.emit("plotly_beforeexport");let t=new URL(r).origin;var a=nr.graphJson(e,!1,"object");a.version=n3e;var n=new URL(r);n.searchParams.set("origin",window.location.origin);var i=window.open(n.href,"_blank");if(!i){console.error("Unable to open Plotly Cloud (the popup may have been blocked)"),e.emit("plotly_exportfail");return}var o=function(l){l.origin===t&&l.data&&l.data.type==="CHART_AUTH_SUCCESS"&&(i.postMessage({type:"chart",chart:a},t),window.removeEventListener("message",o),e.emit("plotly_afterexport"))};return window.addEventListener("message",o),!1};var v3e=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],h3e=["year","month","dayMonth","dayMonthYear"];nr.supplyDefaults=function(e,r){var t=r&&r.skipUpdateCalc,a=e._fullLayout||{};if(a._skipDefaults){delete a._skipDefaults;return}var n=e._fullLayout={},i=e.layout||{},o=e._fullData||[],l=e._fullData=[],s=e.data||[],u=e.calcdata||[],f=e._context||{},c;e._transitionData||nr.createTransitionData(e),n._dfltTitle={plot:ef(e,"Click to enter Plot title"),subtitle:ef(e,"Click to enter Plot subtitle"),x:ef(e,"Click to enter X axis title"),y:ef(e,"Click to enter Y axis title"),colorbar:ef(e,"Click to enter Colorscale title"),annotation:ef(e,"new text")},n._traceWord=ef(e,"trace");var v=hR(e,v3e);if(a._initialAutoSizeIsDone){var d=a.width,p=a.height;nr.supplyLayoutGlobalDefaults(i,n,v),i.width||(n.width=d),i.height||(n.height=p),nr.sanitizeMargins(n)}else{nr.supplyLayoutGlobalDefaults(i,n,v);var m=!i.width||!i.height,y=n.autosize,b=f.autosizable,T=m&&(y||b);T?nr.plotAutoSize(e,i,n):m&&nr.sanitizeMargins(n),!y&&m&&(i.width=n.width,i.height=n.height)}n._d3locale=m3e(v,n.separators),n._extraFormat=hR(e,h3e),n._initialAutoSizeIsDone=!0,n._dataLength=s.length,n._modules=[],n._visibleModules=[],n._basePlotModules=[];var w=n._subplots=p3e(),x=n._splomAxes={x:{},y:{}},_=n._splomSubplots={};n._splomGridDflt={},n._scatterStackOpts={},n._firstScatter={},n._alignmentOpts={},n._colorAxes={},n._requestRangeslider={},n._traceUids=d3e(o,s),nr.supplyDataDefaults(s,l,i,n);var k=Object.keys(x.x),M=Object.keys(x.y);if(k.length>1&&M.length>1){for(it.getComponentMethod("grid","sizeDefaults")(i,n),c=0;c15&&M.length>15&&n.shapes.length===0&&n.images.length===0,nr.linkSubplots(l,n,o,a),nr.cleanPlot(l,n,o,a);var R=!!(a._has&&a._has("cartesian")),I=!!(n._has&&n._has("cartesian")),B=R,N=I;B&&!N?a._bgLayer.remove():N&&!B&&(n._shouldCreateBgLayer=!0),a._zoomlayer&&!e._dragging&&s3e({_fullLayout:a}),y3e(l,n),vR(n,a),it.getComponentMethod("colorscale","crossTraceDefaults")(l,n),n._preGUI||(n._preGUI={}),n._tracePreGUI||(n._tracePreGUI={});var U=n._tracePreGUI,G={},V;for(V in U)G[V]="old";for(c=0;c0){var f=1-2*i;o=Math.round(f*o),l=Math.round(f*l)}}var c=nr.layoutAttributes.width.min,v=nr.layoutAttributes.height.min;o1,p=!t.height&&Math.abs(a.height-l)>1;(p||d)&&(d&&(a.width=o),p&&(a.height=l)),r._initialAutoSize||(r._initialAutoSize={width:o,height:l}),nr.sanitizeMargins(a)};nr.supplyLayoutModuleDefaults=function(e,r,t,a){var n=it.componentsRegistry,i=r._basePlotModules,o,l,s,u=it.subplotsRegistry.cartesian;for(o in n)s=n[o],s.includeBasePlot&&s.includeBasePlot(e,r);i.length||i.push(u),r._has("cartesian")&&(it.getComponentMethod("grid","contentDefaults")(e,r),u.finalizeSubplots(e,r));for(var f in r._subplots)r._subplots[f].sort(yr.subplotSort);for(l=0;l1&&(t.l/=y,t.r/=y)}if(v){var b=(t.t+t.b)/v;b>1&&(t.t/=b,t.b/=b)}var T=t.xl!==void 0?t.xl:t.x,w=t.xr!==void 0?t.xr:t.x,x=t.yt!==void 0?t.yt:t.y,_=t.yb!==void 0?t.yb:t.y;d[r]={l:{val:T,size:t.l+m},r:{val:w,size:t.r+m},b:{val:_,size:t.b+m},t:{val:x,size:t.t+m}},p[r]=1}if(!a._replotting)return nr.doAutoMargin(e)}};function b3e(e){if("_redrawFromAutoMarginCount"in e._fullLayout)return!1;var r=ni.list(e,"",!0);for(var t in r)if(r[t].autoshift||r[t].shift)return!0;return!1}nr.doAutoMargin=function(e){var r=e._fullLayout,t=r.width,a=r.height;r._size||(r._size={}),mR(r);var n=r._size,i=r.margin,o={t:0,b:0,l:0,r:0},l=yr.extendFlat({},n),s=i.l,u=i.r,f=i.t,c=i.b,v=r._pushmargin,d=r._pushmarginIds,p=r.minreducedwidth,m=r.minreducedheight;if(i.autoexpand!==!1){for(var y in v)d[y]||delete v[y];var b=e._fullLayout._reservedMargin;for(var T in b)for(var w in b[T]){var x=b[T][w];o[w]=Math.max(o[w],x)}v.base={l:{val:0,size:s},r:{val:1,size:u},t:{val:1,size:f},b:{val:0,size:c}};for(var _ in o){var k=0;for(var M in v)M!=="base"&&Eh(v[M][_].size)&&(k=v[M][_].size>k?v[M][_].size:k);var S=Math.max(0,i[_]-k);o[_]=Math.max(0,o[_]-S)}for(var C in v){var E=v[C].l||{},P=v[C].b||{},R=E.val,I=E.size,B=P.val,N=P.size,U=t-o.r-o.l,G=a-o.t-o.b;for(var V in v){if(Eh(I)&&v[V].r){var j=v[V].r.val,W=v[V].r.size;if(j>R){var Y=(I*j+(W-U)*R)/(j-R),J=(W*(1-R)+(I-U)*(1-j))/(j-R);Y+J>s+u&&(s=Y,u=J)}}if(Eh(N)&&v[V].t){var re=v[V].t.val,le=v[V].t.size;if(re>B){var ne=(N*re+(le-G)*B)/(re-B),$=(le*(1-B)+(N-G)*(1-re))/(re-B);ne+$>c+f&&(c=ne,f=$)}}}}}var ce=yr.constrain(t-i.l-i.r,yR,p),te=yr.constrain(a-i.t-i.b,gR,m),ge=Math.max(0,t-ce),se=Math.max(0,a-te);if(ge){var oe=(s+u)/ge;oe>1&&(s/=oe,u/=oe)}if(se){var Ae=(c+f)/se;Ae>1&&(c/=Ae,f/=Ae)}if(n.l=Math.round(s)+o.l,n.r=Math.round(u)+o.r,n.t=Math.round(f)+o.t,n.b=Math.round(c)+o.b,n.p=Math.round(i.pad),n.w=Math.round(t)-n.l-n.r,n.h=Math.round(a)-n.t-n.b,!r._replotting&&(nr.didMarginChange(l,n)||b3e(e))){"_redrawFromAutoMarginCount"in r?r._redrawFromAutoMarginCount++:r._redrawFromAutoMarginCount=1;var Pe=3*(1+Object.keys(d).length);if(r._redrawFromAutoMarginCount1)return!0}return!1};nr.graphJson=function(e,r=!1,t="json",a=!1,n=!1){(a&&r&&!e._fullData||a&&!r&&!e._fullLayout)&&nr.supplyDefaults(e);var i=a?e._fullData:e.data,o=a?e._fullLayout:e.layout,l=(e._transitionData||{})._frames;function s(c,v){if(typeof c=="function")return v?"_function_":null;if(yr.isPlainObject(c)){var d={};return Object.keys(c).sort().forEach(function(b){if(["_","["].indexOf(b.charAt(0))===-1){if(typeof c[b]=="function"){v&&(d[b]="_function");return}d[b]=s(c[b],v)}}),d}var p=Array.isArray(c),m=yr.isTypedArray(c);if((p||m)&&c.dtype&&c.shape){var y=c.bdata;return s({dtype:c.dtype,shape:c.shape,bdata:yr.isArrayBuffer(y)?a3e.encode(y):y},v)}return p?c.map(function(b){return s(b,v)}):m?yr.simpleMap(c,yr.identity):yr.isJSDate(c)?yr.ms2DateTimeLocal(+c):c}var u={data:(i||[]).map(function(c){var v=s(c);return r&&delete v.fit,v})};if(!r&&(u.layout=s(o),a)){var f=o._size;u.layout.computed={margin:{b:f.b,l:f.l,r:f.r,t:f.t}}}return l&&(u.frames=s(l)),n&&(u.config=s(e._context,!0)),t==="object"?u:JSON.stringify(u)};nr.modifyFrames=function(e,r){var t,a,n,i=e._transitionData._frames,o=e._transitionData._frameHash;for(t=0;t0&&(e._transitioningWithDuration=!0),e._transitionData._interruptCallbacks.push(function(){a=!0}),t.redraw&&e._transitionData._interruptCallbacks.push(function(){return it.call("redraw",e)}),e._transitionData._interruptCallbacks.push(function(){e.emit("plotly_transitioninterrupted",[])});var v=0,d=0;function p(){return v++,function(){d++,!a&&d===v&&l(c)}}t.runFn(p),setTimeout(p())})}function l(c){if(e._transitionData)return i(e._transitionData._interruptCallbacks),Promise.resolve().then(function(){if(t.redraw)return it.call("redraw",e)}).then(function(){e._transitioning=!1,e._transitioningWithDuration=!1,e.emit("plotly_transitioned",[])}).then(c)}function s(){if(e._transitionData)return e._transitioning=!1,n(e._transitionData._interruptCallbacks)}var u=[nr.previousPromises,s,t.prepareFn,nr.rehover,nr.reselect,o],f=yr.syncOrAsync(u,e);return(!f||!f.then)&&(f=Promise.resolve()),f.then(function(){return e})}nr.doCalcdata=function(e,r){var t=ni.list(e),a=e._fullData,n=e._fullLayout,i,o,l,s=new Array(a.length),u=(e.calcdata||[]).slice();for(e.calcdata=s,n._numBoxes=0,n._numViolins=0,n._violinScaleGroupStats={},e._hmpixcount=0,e._hmlumcount=0,n._piecolormap={},n._sunburstcolormap={},n._treemapcolormap={},n._iciclecolormap={},n._funnelareacolormap={},l=0;l_R,svgAttrs:()=>M3e,xlink:()=>wR,xmlns:()=>A3e});var A3e,_R,wR,M3e,Wl=Ct(()=>{"use strict";A3e="http://www.w3.org/2000/xmlns/",_R="http://www.w3.org/2000/svg",wR="http://www.w3.org/1999/xlink",M3e={xmlns:_R,"xmlns:xlink":wR}});var sn={};Dt(sn,{CAP_SHIFT:()=>C3e,FROM_BL:()=>k3e,FROM_BR:()=>q3e,FROM_TL:()=>S3e,LINE_SPACING:()=>L3e,MID_SHIFT:()=>D3e,OPPOSITE_SIDE:()=>E3e});var k3e,S3e,q3e,L3e,C3e,D3e,E3e,un=Ct(()=>{"use strict";k3e={left:0,center:.5,right:1,bottom:0,middle:.5,top:1},S3e={left:0,center:.5,right:1,bottom:1,middle:.5,top:0},q3e={left:1,center:.5,right:0,bottom:0,middle:.5,top:1},L3e=1.3,C3e=.7,D3e=.35,E3e={left:"right",right:"left",top:"bottom",bottom:"top"}});var Da=z(Ln=>{"use strict";var ha=Pr(),Vi=ke(),P3e=Vi.strTranslate,H4=(Wl(),Ne(jl)),R3e=(un(),Ne(sn)).LINE_SPACING,F3e=/([^$]*)([$]+[^$]*[$]+)([^$]*)/,Y4=e=>e?e.match(F3e):null;Ln.matchTex=Y4;var z3e=e=>{var r=Y4(e);return!!r&&!r[1]&&!r[3]};Ln.isPureTex=z3e;function qR(e,r,t,a,n,i,o,l){var s=a.select("g"),u=s.node().getBoundingClientRect(),f=u.width,c=u.height,v=o===void 0?f:o,d=l===void 0?c:l;(f>v||c>d)&&(a.style("overflow","hidden"),u=a.node().getBoundingClientRect(),f=u.width,c=u.height);var p=+e.attr("x"),m=+e.attr("y"),y=i||e.node().getBoundingClientRect().height,b=-y/4;r[0]==="y"?t.attr({transform:"rotate("+[-90,p,m]+")"+P3e(-f/2,b-c/2)}):r[0]==="l"?m=b-c/2:r[0]==="a"&&r.indexOf("atitle")!==0?(p=0,m=b):(p=p-f*(n==="middle"?.5:n==="end"?1:0),m=m+b-c/2),a.attr({x:p,y:m})}function N3e(e){e.selectAll("a").each(function(){var r=ha.select(this);["href","xlink:href"].forEach(function(t){var a=r.attr(t);a&&r.attr(t,W4(a)||null)})})}Ln.convertToTspans=function(e,r,t){var a=e.text(),n=!e.attr("data-notex")&&r&&r._context.typesetMath&&Y4(a);n&&!H3e()&&(n=null);var i=ha.select(e.node().parentNode);if(i.empty())return;var o=e.attr("class")?e.attr("class").split(" ")[0]:"text";o+="-math",i.selectAll("svg."+o).remove(),i.selectAll("g."+o+"-group").remove(),e.style("display",null).attr({"data-unformatted":a,"data-math":"N"});function l(){i.empty()||(o=e.attr("class")+"-math",i.select("svg."+o).remove()),e.text("").style("white-space","pre");var s=J3e(e.node(),a);s&&e.style("pointer-events","all"),Ln.positionText(e),t&&t.call(e)}return n?(r&&r._promises||[]).push(new Promise(function(s){e.style("display","none");var u=parseInt(e.node().style.fontSize,10),f={fontSize:u},c=e.attr("text-anchor");U3e(n[2],f,function(v,d,p){i.selectAll("svg."+o).remove(),i.selectAll("g."+o+"-group").remove();var m=v&&v.select("svg");if(!m||!m.node()){l(),s();return}e.style("display","none");var y=i.append("g").classed(o+"-group",!0).attr({"pointer-events":"none","data-unformatted":a,"data-math":"Y"});y.node().appendChild(m.node()),N3e(m),d&&d.node()&&m.node().insertBefore(d.node().cloneNode(!0),m.node().firstChild);var b=p.width,T=p.height;m.attr({class:o,height:T,preserveAspectRatio:"xMinYMin meet"}).style({overflow:"visible","pointer-events":"none","font-size":f.fontSize+"px"});var w=e.node().style.fill||"black",x=m.select("g");x.attr({fill:w,stroke:w}),qR(e,o,y,m,c,u,b,T),t&&t.call(e,y),s(y)})})):l(),e};Ln.repositionMathGroup=function(e){if(!e.empty()){var r=(e.attr("class")?e.attr("class").split(" ")[0]:"text")+"-math",t=ha.select(e.node().parentNode),a=t.select("g."+r+"-group"),n=a.select("svg."+r);if(!(a.empty()||n.empty())){var i=e.attr("text-anchor"),o=parseInt(e.node().style.fontSize,10);qR(e,r,a,n,i,o)}}};Ln.getMathOrTextNode=function(e){var r=e.node();if(!r)return null;var t=(e.attr("class")?e.attr("class").split(" ")[0]:"text")+"-math",a=ha.select(r.parentNode).select("g."+t+"-group");return a.empty()?r:a.node()};var I3e=/(<|<|<)/g,B3e=/(>|>|>)/g;function O3e(e){return e.replace(I3e,"\\lt ").replace(B3e,"\\gt ")}var U4=null,LR=()=>typeof MathJax!="undefined"&&MathJax.version?parseInt(MathJax.version.split(".")[0]):null,TR=!1,AR=!1;function H3e(){let e=LR();return e===3||e===4?!0:(e===null?TR||(TR=!0,Vi.warn("MathJax is not loaded. Math equations will not be rendered.")):AR||(AR=!0,Vi.warn("Unsupported MathJax version:",MathJax.version)),!1)}function U3e(e,r,t){let a=LR();var n;let i=function(){if(!U4){let u=MathJax._.output.svg_ts.SVG,f=Vi.extendFlat({},MathJax.config.svg,{fontCache:"local"});a===4&&(f.linebreaks=Vi.extendFlat({},f.linebreaks,{inline:!1})),U4=MathJax._.mathjax.mathjax.document(document,Vi.extendFlat({},MathJax.config.options,{InputJax:MathJax.startup.input,OutputJax:new u(f)}))}let l="math-output-"+Vi.randstr({},64);n=ha.select("body").append("div").attr({id:l}).style({visibility:"hidden",position:"absolute","font-size":r.fontSize+"px"});let s=O3e(e).replace(/^\$+|\$+$/g,"");return MathJax._.mathjax.mathjax.handleRetriesFor(function(){return U4.convert(s,{display:!1})}).then(function(u){n.node().appendChild(u)})},o=function(){let l=n.select(".MathJax"),s=!l.empty()&&n.select("svg").node();if(!s)Vi.log("There was an error in the tex syntax.",e),t();else{let u=s.getBoundingClientRect(),f=l.select("defs");t(l,f,u)}n.remove()};Promise.resolve().then(i).then(o).catch(l=>{Vi.log("MathJax typesetting failed.",e,l),n&&n.remove(),t()})}var CR={sup:"font-size:70%",sub:"font-size:70%",s:"text-decoration:line-through",u:"text-decoration:underline",b:"font-weight:bold",i:"font-style:italic",a:"cursor:pointer",span:"",em:"font-style:italic;font-weight:bold"},G3e={sub:"0.3em",sup:"-0.6em"},Y3e={sub:"-0.21em",sup:"0.42em"},MR="\u200B",kR=["http:","https:","mailto:","",void 0,":"],DR=Ln.NEWLINES=/(\r\n?|\n)/g,V4=/(<[^<>]*>)/,j4=/<(\/?)([^ >]*)(\s+(.*))?>/i,V3e=//i;Ln.BR_TAG_ALL=//gi;var ER=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,PR=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,RR=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,j3e=/(^|[\s"'])popup\s*=\s*("([\w=,]*)"|'([\w=,]*)')/i;function rf(e,r){if(!e)return null;var t=e.match(r),a=t&&(t[3]||t[4]);return a&&rm(a)}var W3e=/(^|;)\s*color:/;Ln.plainText=function(e,r){r=r||{};for(var t=r.len!==void 0&&r.len!==-1?r.len:1/0,a=r.allowedTags!==void 0?r.allowedTags:["br"],n="...",i=n.length,o=e.split(V4),l=[],s="",u=0,f=0;fi?l.push(c.slice(0,Math.max(0,m-i))+n):l.push(c.slice(0,m));break}s=""}}return l.join("")};var X3e={mu:"\u03BC",amp:"&",lt:"<",gt:">",nbsp:"\xA0",times:"\xD7",plusmn:"\xB1",deg:"\xB0"},Z3e=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function rm(e){return e.replace(Z3e,function(r,t){var a;return t.charAt(0)==="#"?a=$3e(t.charAt(1)==="x"?parseInt(t.slice(2),16):parseInt(t.slice(1),10)):a=X3e[t],a||r})}Ln.convertEntities=rm;function $3e(e){if(!(e>1114111)){var r=String.fromCodePoint;if(r)return r(e);var t=String.fromCharCode;return e<=65535?t(e):t((e>>10)+55232,e%1024+56320)}}function J3e(e,r){r=r.replace(DR," ");var t=!1,a=[],n,i=-1;function o(){i++;var k=document.createElementNS(H4.svg,"tspan");ha.select(k).attr({class:"line",dy:i*R3e+"em"}),e.appendChild(k),n=k;var M=a;if(a=[{node:k}],M.length>1)for(var S=1;S.",r);return}var M=a.pop();k!==M.type&&Vi.log("Start tag <"+M.type+"> doesnt match end tag <"+k+">. Pretending it did match.",r),n=a[a.length-1].node}var f=V3e.test(r);f?o():(n=e,a=[{node:e}]);for(var c=r.split(V4),v=0;v{"use strict";var K3e=Pr(),Rh=Br(),tm=ke(),tf=qr(),Q3e=Vu().isValid;function ebe(e,r,t){var a=r?tm.nestedProperty(e,r).get()||{}:e,n=a[t||"color"];n&&n._inputArray&&(n=n._inputArray);var i=!1;if(tm.isArrayOrTypedArray(n)){for(var o=0;o=0;a--,n++){var i=e[a];t[n]=[1-i[0],i[1]]}return t}function BR(e,r){r=r||{};for(var t=e.domain,a=e.range,n=a.length,i=new Array(n),o=0;o{"use strict";var HR=(s4(),Ne(l4)),tbe=HR.FORMAT_LINK,abe=HR.DATE_FORMAT_LINK;function nbe(e,r){return{valType:"string",dflt:"",editType:"none",description:(r?X4:UR)("hover text",e)+["By default the values are formatted using "+(r?"generic number format":"`"+e+"axis.hoverformat`")+"."].join(" ")}}function X4(e,r){return["Sets the "+e+" formatting rule"+(r?" for `"+r+"`":""),"using d3 formatting mini-languages","which are very similar to those in Python. For numbers, see: "+tbe+"."].join(" ")}function UR(e,r){return X4(e,r)+[" And for dates see: "+abe+".","We add two items to d3's date formatter:","*%h* for half of the year as a decimal number as well as","*%{n}f* for fractional seconds","with n digits. For example, *2016-10-13 09:15:23.456* with tickformat","*%H~%M~%S.%2f* would display *09~15~23.46*"].join(" ")}GR.exports={axisHoverFormat:nbe,descriptionOnlyNumbers:X4,descriptionWithDates:UR}});var ji=z((RXe,oF)=>{"use strict";var YR=Ia(),Qc=Hi(),iF=Ui().dash,$4=St().extendFlat,VR=Pt().templatedArray,PXe=gi().templateFormatStringDescription,jR=Fo().descriptionWithDates,ibe=(Kt(),Ne(aa)).ONEDAY,ul=(Ha(),Ne(Oa)),obe=ul.HOUR_PATTERN,lbe=ul.WEEKDAY_PATTERN,Z4={valType:"enumerated",values:["auto","linear","array"],editType:"ticks",impliedEdits:{tick0:void 0,dtick:void 0}},sbe=$4({},Z4,{values:Z4.values.slice().concat(["sync"])});function WR(e){return{valType:"integer",min:0,dflt:e?5:0,editType:"ticks"}}var XR={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},ZR={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},$R={valType:"data_array",editType:"ticks"},JR={valType:"enumerated",values:["outside","inside",""],editType:"ticks"};function KR(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=5),r}function QR(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=1),r}var eF={valType:"color",dflt:Qc.defaultLine,editType:"ticks"},rF={valType:"color",dflt:Qc.lightLine,editType:"ticks"};function tF(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=1),r}var aF=$4({},iF,{editType:"ticks"}),nF={valType:"boolean",editType:"ticks"};oF.exports={visible:{valType:"boolean",editType:"plot"},color:{valType:"color",dflt:Qc.defaultLine,editType:"ticks"},title:{text:{valType:"string",editType:"ticks"},font:YR({editType:"ticks",description:"Sets this axis' title font."}),standoff:{valType:"number",min:0,editType:"ticks"},editType:"ticks"},type:{valType:"enumerated",values:["-","linear","log","date","category","multicategory"],dflt:"-",editType:"calc",_noTemplating:!0},autotypenumbers:{valType:"enumerated",values:["convert types","strict"],dflt:"convert types",editType:"calc"},autorange:{valType:"enumerated",values:[!0,!1,"reversed","min reversed","max reversed","min","max"],dflt:!0,editType:"axrange",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},autorangeoptions:{minallowed:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},maxallowed:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},clipmin:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},clipmax:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},include:{valType:"any",arrayOk:!0,editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},editType:"plot"},rangemode:{valType:"enumerated",values:["normal","tozero","nonnegative"],dflt:"normal",editType:"plot"},range:{valType:"info_array",items:[{valType:"any",editType:"axrange",impliedEdits:{"^autorange":!1},anim:!0},{valType:"any",editType:"axrange",impliedEdits:{"^autorange":!1},anim:!0}],editType:"axrange",impliedEdits:{autorange:!1},anim:!0},minallowed:{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},maxallowed:{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},fixedrange:{valType:"boolean",dflt:!1,editType:"calc"},modebardisable:{valType:"flaglist",flags:["autoscale","zoominout"],extras:["none"],dflt:"none",editType:"modebar"},insiderange:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},scaleanchor:{valType:"enumerated",values:[ul.idRegex.x.toString(),ul.idRegex.y.toString(),!1],editType:"plot"},scaleratio:{valType:"number",min:0,dflt:1,editType:"plot"},constrain:{valType:"enumerated",values:["range","domain"],editType:"plot"},constraintoward:{valType:"enumerated",values:["left","center","right","top","middle","bottom"],editType:"plot"},matches:{valType:"enumerated",values:[ul.idRegex.x.toString(),ul.idRegex.y.toString()],editType:"calc"},rangebreaks:VR("rangebreak",{enabled:{valType:"boolean",dflt:!0,editType:"calc"},bounds:{valType:"info_array",items:[{valType:"any",editType:"calc"},{valType:"any",editType:"calc"}],editType:"calc"},pattern:{valType:"enumerated",values:[lbe,obe,""],editType:"calc"},values:{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"any",editType:"calc"}},dvalue:{valType:"number",editType:"calc",min:0,dflt:ibe},editType:"calc"}),tickmode:sbe,nticks:WR(),tick0:XR,dtick:ZR,ticklabelstep:{valType:"integer",min:1,dflt:1,editType:"ticks"},tickvals:$R,ticktext:{valType:"data_array",editType:"ticks"},ticks:JR,tickson:{valType:"enumerated",values:["labels","boundaries"],dflt:"labels",editType:"ticks"},ticklabelmode:{valType:"enumerated",values:["instant","period"],dflt:"instant",editType:"ticks"},ticklabelposition:{valType:"enumerated",values:["outside","inside","outside top","inside top","outside left","inside left","outside right","inside right","outside bottom","inside bottom"],dflt:"outside",editType:"calc"},ticklabeloverflow:{valType:"enumerated",values:["allow","hide past div","hide past domain"],editType:"calc"},ticklabelshift:{valType:"integer",dflt:0,editType:"ticks"},ticklabelstandoff:{valType:"integer",dflt:0,editType:"ticks"},ticklabelindex:{valType:"integer",arrayOk:!0,editType:"calc"},mirror:{valType:"enumerated",values:[!0,"ticks",!1,"all","allticks"],dflt:!1,editType:"ticks+layoutstyle"},ticklen:KR(),tickwidth:QR(),tickcolor:eF,showticklabels:{valType:"boolean",dflt:!0,editType:"ticks"},labelalias:{valType:"any",dflt:!1,editType:"ticks"},automargin:{valType:"flaglist",flags:["height","width","left","right","top","bottom"],extras:[!0,!1],dflt:!1,editType:"ticks"},showspikes:{valType:"boolean",dflt:!1,editType:"modebar"},spikecolor:{valType:"color",dflt:null,editType:"none"},spikethickness:{valType:"number",dflt:3,editType:"none"},spikedash:$4({},iF,{dflt:"dash",editType:"none"}),spikemode:{valType:"flaglist",flags:["toaxis","across","marker"],dflt:"toaxis",editType:"none"},spikesnap:{valType:"enumerated",values:["data","cursor","hovered data"],dflt:"hovered data",editType:"none"},tickfont:YR({editType:"ticks"}),tickangle:{valType:"angle",dflt:"auto",editType:"ticks"},autotickangles:{valType:"info_array",freeLength:!0,items:{valType:"angle"},dflt:[0,30,90],editType:"ticks"},tickprefix:{valType:"string",dflt:"",editType:"ticks"},showtickprefix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},ticksuffix:{valType:"string",dflt:"",editType:"ticks"},showticksuffix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},showexponent:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},exponentformat:{valType:"enumerated",values:["none","e","E","power","SI","B","SI extended"],dflt:"B",editType:"ticks"},minexponent:{valType:"number",dflt:3,min:0,editType:"ticks"},separatethousands:{valType:"boolean",dflt:!1,editType:"ticks"},tickformat:{valType:"string",dflt:"",editType:"ticks",description:jR("tick label")},tickformatstops:VR("tickformatstop",{enabled:{valType:"boolean",dflt:!0,editType:"ticks"},dtickrange:{valType:"info_array",items:[{valType:"any",editType:"ticks"},{valType:"any",editType:"ticks"}],editType:"ticks"},value:{valType:"string",dflt:"",editType:"ticks"},editType:"ticks"}),hoverformat:{valType:"string",dflt:"",editType:"none",description:jR("hover text")},unifiedhovertitle:{text:{valType:"string",dflt:"",editType:"none"},editType:"none"},showline:{valType:"boolean",dflt:!1,editType:"ticks+layoutstyle"},linecolor:{valType:"color",dflt:Qc.defaultLine,editType:"layoutstyle"},linewidth:{valType:"number",min:0,dflt:1,editType:"ticks+layoutstyle"},showgrid:nF,gridcolor:rF,gridwidth:tF(),griddash:aF,zeroline:{valType:"boolean",editType:"ticks"},zerolinecolor:{valType:"color",dflt:Qc.defaultLine,editType:"ticks"},zerolinelayer:{valType:"enumerated",values:["above traces","below traces"],dflt:"below traces",editType:"plot"},zerolinewidth:{valType:"number",dflt:1,editType:"ticks"},showdividers:{valType:"boolean",dflt:!0,editType:"ticks"},dividercolor:{valType:"color",dflt:Qc.defaultLine,editType:"ticks"},dividerwidth:{valType:"number",dflt:1,editType:"ticks"},anchor:{valType:"enumerated",values:["free",ul.idRegex.x.toString(),ul.idRegex.y.toString()],editType:"plot"},side:{valType:"enumerated",values:["top","bottom","left","right"],editType:"plot"},overlaying:{valType:"enumerated",values:["free",ul.idRegex.x.toString(),ul.idRegex.y.toString()],editType:"plot"},minor:{tickmode:Z4,nticks:WR("minor"),tick0:XR,dtick:ZR,tickvals:$R,ticks:JR,ticklen:KR("minor"),tickwidth:QR("minor"),tickcolor:eF,gridcolor:rF,gridwidth:tF("minor"),griddash:aF,showgrid:nF,editType:"ticks"},minorloglabels:{valType:"enumerated",values:["small digits","complete","none"],dflt:"small digits",editType:"calc"},layer:{valType:"enumerated",values:["above traces","below traces"],dflt:"above traces",editType:"plot"},domain:{valType:"info_array",items:[{valType:"number",min:0,max:1,editType:"plot"},{valType:"number",min:0,max:1,editType:"plot"}],dflt:[0,1],editType:"plot"},position:{valType:"number",min:0,max:1,dflt:0,editType:"plot"},autoshift:{valType:"boolean",dflt:!1,editType:"plot"},shift:{valType:"number",editType:"plot"},categoryorder:{valType:"enumerated",values:["trace","category ascending","category descending","array","total ascending","total descending","min ascending","min descending","max ascending","max descending","sum ascending","sum descending","mean ascending","mean descending","geometric mean ascending","geometric mean descending","median ascending","median descending"],dflt:"trace",editType:"calc"},categoryarray:{valType:"data_array",editType:"calc"},uirevision:{valType:"any",editType:"none"},editType:"calc"}});var am=z((FXe,sF)=>{"use strict";var jt=ji(),lF=Ia(),J4=St().extendFlat,ube=Do().overrideAll;sF.exports=ube({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:jt.linecolor,outlinewidth:jt.linewidth,bordercolor:jt.linecolor,borderwidth:{valType:"number",min:0,dflt:0},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},tickmode:jt.minor.tickmode,nticks:jt.nticks,tick0:jt.tick0,dtick:J4({},jt.dtick,{}),tickvals:jt.tickvals,ticktext:jt.ticktext,ticks:J4({},jt.ticks,{dflt:""}),ticklabeloverflow:J4({},jt.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:jt.ticklen,tickwidth:jt.tickwidth,tickcolor:jt.tickcolor,ticklabelstep:jt.ticklabelstep,showticklabels:jt.showticklabels,labelalias:jt.labelalias,tickfont:lF({description:"Sets the color bar's tick label font"}),tickangle:jt.tickangle,tickformat:jt.tickformat,tickformatstops:jt.tickformatstops,tickprefix:jt.tickprefix,showtickprefix:jt.showtickprefix,ticksuffix:jt.ticksuffix,showticksuffix:jt.showticksuffix,separatethousands:jt.separatethousands,exponentformat:jt.exponentformat,minexponent:jt.minexponent,showexponent:jt.showexponent,title:{text:{valType:"string"},font:lF({description:"Sets this color bar's title font."}),side:{valType:"enumerated",values:["right","top","bottom"]}}},"colorbars","from-root")});var fl=z((NXe,fF)=>{"use strict";var fbe=am(),cbe=(Nc(),Ne(_h)).counter,vbe=(y4(),Ne(m4)).default,uF=Vu().scales,zXe=vbe(uF);function nm(e){return"`"+e+"`"}fF.exports=function(r,t){r=r||"",t=t||{};var a=t.cLetter||"c",n="onlyIfNumerical"in t?t.onlyIfNumerical:!!r,i="noScale"in t?t.noScale:r==="marker.line",o="showScaleDflt"in t?t.showScaleDflt:a==="z",l=typeof t.colorscaleDflt=="string"?uF[t.colorscaleDflt]:null,s=t.editTypeOverride||"",u=r?r+".":"",f,c;"colorAttr"in t?(f=t.colorAttr,c=t.colorAttr):(f={z:"z",c:"color"}[a],c="in "+nm(u+f));var v=n?" Has an effect only if "+c+" is set to a numerical array.":"",d=a+"auto",p=a+"min",m=a+"max",y=a+"mid",b=nm(u+d),T=nm(u+p),w=nm(u+m),x=T+" and "+w,_={};_[p]=_[m]=void 0;var k={};k[d]=!1;var M={};return f==="color"&&(M.color={valType:"color",arrayOk:!0,editType:s||"style"},t.anim&&(M.color.anim=!0)),M[d]={valType:"boolean",dflt:!0,editType:"calc",impliedEdits:_},M[p]={valType:"number",dflt:null,editType:s||"plot",impliedEdits:k},M[m]={valType:"number",dflt:null,editType:s||"plot",impliedEdits:k},M[y]={valType:"number",dflt:null,editType:"calc",impliedEdits:_},M.colorscale={valType:"colorscale",editType:"calc",dflt:l,impliedEdits:{autocolorscale:!1}},M.autocolorscale={valType:"boolean",dflt:t.autoColorDflt!==!1,editType:"calc",impliedEdits:{colorscale:void 0}},M.reversescale={valType:"boolean",dflt:!1,editType:"plot"},i||(M.showscale={valType:"boolean",dflt:o,editType:"calc"},M.colorbar=fbe),t.noColorAxis||(M.coloraxis={valType:"subplotid",regex:cbe("coloraxis"),dflt:null,editType:"calc"}),M}});var Q4=z((IXe,cF)=>{"use strict";var hbe=St().extendFlat,dbe=fl(),K4=Vu().scales;cF.exports={editType:"calc",colorscale:{editType:"calc",sequential:{valType:"colorscale",dflt:K4.Reds,editType:"calc"},sequentialminus:{valType:"colorscale",dflt:K4.Blues,editType:"calc"},diverging:{valType:"colorscale",dflt:K4.RdBu,editType:"calc"}},coloraxis:hbe({_isSubplotObj:!0,editType:"calc"},dbe("",{colorAttr:"corresponding trace color array(s)",noColorAxis:!0,showScaleDflt:!0}))}});var e6=z((BXe,vF)=>{"use strict";var pbe=ke();vF.exports=function(r){return pbe.isPlainObject(r.colorbar)}});var a6=z(t6=>{"use strict";var r6=Br(),hF=ke(),dF=(Kt(),Ne(aa)),mbe=dF.ONEDAY,ybe=dF.ONEWEEK;t6.dtick=function(e,r){var t=r==="log",a=r==="date",n=r==="category",i=a?mbe:1;if(!e)return i;if(r6(e))return e=Number(e),e<=0?i:n?Math.max(1,Math.round(e)):a?Math.max(.1,e):e;if(typeof e!="string"||!(a||t))return i;var o=e.charAt(0),l=e.slice(1);return l=r6(l)?Number(l):0,l<=0||!(a&&o==="M"&&l===Math.round(l)||t&&o==="L"||t&&o==="D"&&(l===1||l===2))?i:e};t6.tick0=function(e,r,t,a){if(r==="date")return hF.cleanDate(e,hF.dateTick0(t,a%ybe===0?1:0));if(!(a==="D1"||a==="D2"))return r6(e)?Number(e):0}});var im=z((HXe,mF)=>{"use strict";var pF=a6(),gbe=ke().isArrayOrTypedArray,bbe=Qn().isTypedArraySpec,xbe=Qn().decodeTypedArraySpec;mF.exports=function(r,t,a,n,i={}){var o=i.isMinor,l=o?r.minor||{}:r,s=o?t.minor:t,u=o?"minor.":"";function f(x){var _=l[x];return bbe(_)&&(_=xbe(_)),_!==void 0?_:(s._template||{})[x]}var c=f("tick0"),v=f("dtick"),d=f("tickvals"),p=f("overlaying"),m=n==="category"||n==="multicategory",y;gbe(d)?y="array":v?y="linear":p&&!m?y="sync":y="auto";var b=a(u+"tickmode",y);if(b==="auto"||b==="sync")a(u+"nticks");else if(b==="linear"){var T=s.dtick=pF.dtick(v,n);s.tick0=pF.tick0(c,n,t.calendar,T)}else if(n!=="multicategory"){var w=a(u+"tickvals");w===void 0?s.tickmode="auto":o||a("ticktext")}}});var om=z((UXe,gF)=>{"use strict";var n6=ke(),yF=ji();gF.exports=function(r,t,a,n){var i=n.isMinor,o=i?r.minor||{}:r,l=i?t.minor:t,s=i?yF.minor:yF,u=i?"minor.":"",f=n6.coerce2(o,l,s,"ticklen",i?(t.ticklen||5)*.6:void 0),c=n6.coerce2(o,l,s,"tickwidth",i?t.tickwidth||1:void 0),v=n6.coerce2(o,l,s,"tickcolor",(i?t.tickcolor:void 0)||l.color),d=a(u+"ticks",!i&&n.outerTicks||f||c||v?"outside":"");d||(delete l.ticklen,delete l.tickwidth,delete l.tickcolor)}});var i6=z((GXe,bF)=>{"use strict";bF.exports=function(r){var t=["showexponent","showtickprefix","showticksuffix"],a=t.filter(function(i){return r[i]!==void 0}),n=function(i){return r[i]===r[a[0]]};if(a.every(n)||a.length===1)return r[a[0]]}});var zo=z((YXe,xF)=>{"use strict";var lm=ke(),_be=Pt();xF.exports=function(r,t,a){var n=a.name,i=a.inclusionAttr||"visible",o=t[n],l=lm.isArrayOrTypedArray(r[n])?r[n]:[],s=t[n]=[],u=_be.arrayTemplater(t,n,i),f,c;for(f=0;f{"use strict";var o6=ke(),wbe=qr().contrast,_F=ji(),Tbe=i6(),Abe=zo();wF.exports=function(r,t,a,n,i){i||(i={});var o=a("labelalias");o6.isPlainObject(o)||delete t.labelalias;var l=Tbe(r),s=a("showticklabels");if(s){i.noTicklabelshift||a("ticklabelshift"),i.noTicklabelstandoff||a("ticklabelstandoff");var u=i.font||{},f=t.color,c=t.ticklabelposition||"",v=c.indexOf("inside")!==-1?wbe(i.bgColor):f&&f!==_F.color.dflt?f:u.color;if(o6.coerceFont(a,"tickfont",u,{overrideDflt:{color:v}}),!i.noTicklabelstep&&n!=="multicategory"&&n!=="log"&&a("ticklabelstep"),!i.noAng){var d=a("tickangle");!i.noAutotickangles&&d==="auto"&&a("autotickangles")}if(n!=="category"){var p=a("tickformat");Abe(r,t,{name:"tickformatstops",inclusionAttr:"enabled",handleItemDefaults:Mbe}),t.tickformatstops.length||delete t.tickformatstops,!i.noExp&&!p&&n!=="date"&&(a("showexponent",l),a("exponentformat"),a("minexponent"),a("separatethousands"))}!i.noMinorloglabels&&n==="log"&&a("minorloglabels")}};function Mbe(e,r){function t(n,i){return o6.coerce(e,r,_F.tickformatstops,n,i)}var a=t("enabled");a&&(t("dtickrange"),t("value"))}});var um=z((jXe,TF)=>{"use strict";var kbe=i6();TF.exports=function(r,t,a,n,i){i||(i={});var o=i.tickSuffixDflt,l=kbe(r),s=a("tickprefix");s&&a("showtickprefix",l);var u=a("ticksuffix",o);u&&a("showticksuffix",l)}});var l6=z((WXe,AF)=>{"use strict";var Ns=ke(),Sbe=Pt(),qbe=im(),Lbe=om(),Cbe=sm(),Dbe=um(),Ebe=am();AF.exports=function(r,t,a){var n=Sbe.newContainer(t,"colorbar"),i=r.colorbar||{};function o(P,R){return Ns.coerce(i,n,Ebe,P,R)}var l=a.margin||{t:0,b:0,l:0,r:0},s=a.width-l.l-l.r,u=a.height-l.t-l.b,f=o("orientation"),c=f==="v",v=o("thicknessmode");o("thickness",v==="fraction"?30/(c?s:u):30);var d=o("lenmode");o("len",d==="fraction"?1:c?u:s);var p=o("yref"),m=o("xref"),y=p==="paper",b=m==="paper",T,w,x,_="left";c?(x="middle",_=b?"left":"right",T=b?1.02:1,w=.5):(x=y?"bottom":"top",_="center",T=.5,w=y?1.02:1),Ns.coerce(i,n,{x:{valType:"number",min:b?-2:0,max:b?3:1,dflt:T}},"x"),Ns.coerce(i,n,{y:{valType:"number",min:y?-2:0,max:y?3:1,dflt:w}},"y"),o("xanchor",_),o("xpad"),o("yanchor",x),o("ypad"),Ns.noneOrAll(i,n,["x","y"]),o("outlinecolor"),o("outlinewidth"),o("bordercolor"),o("borderwidth"),o("bgcolor");var k=Ns.coerce(i,n,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:c?["outside","inside","outside top","inside top","outside bottom","inside bottom"]:["outside","inside","outside left","inside left","outside right","inside right"]}},"ticklabelposition");o("ticklabeloverflow",k.indexOf("inside")!==-1?"hide past domain":"hide past div"),qbe(i,n,o,"linear");var M=a.font,S={noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0,outerTicks:!1,font:M};k.indexOf("inside")!==-1&&(S.bgColor="black"),Dbe(i,n,o,"linear",S),Cbe(i,n,o,"linear",S),Lbe(i,n,o,"linear",S),o("title.text",a._dfltTitle.colorbar);var C=n.showticklabels?n.tickfont:M,E=Ns.extendFlat({},M,{family:C.family,size:Ns.bigFont(C.size)});Ns.coerceFont(o,"title.font",E),o("title.side",c?"top":"right")}});var Xl=z((XXe,SF)=>{"use strict";var MF=Br(),u6=ke(),Pbe=e6(),Rbe=l6(),kF=Vu().isValid,Fbe=Ar().traceIs;function s6(e,r){var t=r.slice(0,r.length-1);return r?u6.nestedProperty(e,t).get()||{}:e}SF.exports=function e(r,t,a,n,i){var o=i.prefix,l=i.cLetter,s="_module"in t,u=s6(r,o),f=s6(t,o),c=s6(t._template||{},o)||{},v=function(){return delete r.coloraxis,delete t.coloraxis,e(r,t,a,n,i)};if(s){var d=a._colorAxes||{},p=n(o+"coloraxis");if(p){var m=Fbe(t,"contour")&&u6.nestedProperty(t,"contours.coloring").get()||"heatmap",y=d[p];y?(y[2].push(v),y[0]!==m&&(y[0]=!1,u6.warn(["Ignoring coloraxis:",p,"setting","as it is linked to incompatible colorscales."].join(" ")))):d[p]=[m,t,[v]];return}}var b=u[l+"min"],T=u[l+"max"],w=MF(b)&&MF(T)&&b{"use strict";var qF=ke(),zbe=Pt(),LF=Q4(),Nbe=Xl();CF.exports=function(r,t){function a(c,v){return qF.coerce(r,t,LF,c,v)}a("colorscale.sequential"),a("colorscale.sequentialminus"),a("colorscale.diverging");var n=t._colorAxes,i,o;function l(c,v){return qF.coerce(i,o,LF.coloraxis,c,v)}for(var s in n){var u=n[s];if(u[0])i=r[s]||{},o=zbe.newContainer(t,s,"coloraxis"),o._name=s,Nbe(i,o,t,l,{prefix:"",cLetter:"c"});else{for(var f=0;f{"use strict";var Ibe=ke(),Bbe=xi().hasColorscale,Obe=xi().extractOpts;EF.exports=function(r,t){function a(f,c){var v=f["_"+c];v!==void 0&&(f[c]=v)}function n(f,c){var v=c.container?Ibe.nestedProperty(f,c.container).get():f;if(v)if(v.coloraxis)v._colorAx=t[v.coloraxis];else{var d=Obe(v),p=d.auto;(p||d.min===void 0)&&a(v,c.min),(p||d.max===void 0)&&a(v,c.max),d.autocolorscale&&a(v,"colorscale")}}for(var i=0;i{"use strict";var RF=Br(),f6=ke(),Hbe=xi().extractOpts;FF.exports=function(r,t,a){var n=r._fullLayout,i=a.vals,o=a.containerStr,l=o?f6.nestedProperty(t,o).get():t,s=Hbe(l),u=s.auto!==!1,f=s.min,c=s.max,v=s.mid,d=function(){return f6.aggNums(Math.min,null,i)},p=function(){return f6.aggNums(Math.max,null,i)};if(f===void 0?f=d():u&&(l._colorAx&&RF(f)?f=Math.min(f,d()):f=d()),c===void 0?c=p():u&&(l._colorAx&&RF(c)?c=Math.max(c,p()):c=p()),u&&v!==void 0&&(c-v>v-f?f=v-(c-v):c-v=0?m=n.colorscale.sequential:m=n.colorscale.sequentialminus,s._sync("colorscale",m)}}});var cl=z((KXe,zF)=>{"use strict";var fm=Vu(),r0=xi();zF.exports={moduleType:"component",name:"colorscale",attributes:fl(),layoutAttributes:Q4(),supplyLayoutDefaults:DF(),handleDefaults:Xl(),crossTraceDefaults:PF(),calc:e0(),scales:fm.scales,defaultScale:fm.defaultScale,getScale:fm.get,isValidScale:fm.isValid,hasColorscale:r0.hasColorscale,extractOpts:r0.extractOpts,extractScale:r0.extractScale,flipScale:r0.flipScale,makeColorScaleFunc:r0.makeColorScaleFunc,makeColorScaleFuncFromTrace:r0.makeColorScaleFuncFromTrace}});var ii=z((QXe,IF)=>{"use strict";var NF=ke(),Ube=Qn().isTypedArraySpec;IF.exports={hasLines:function(e){return e.visible&&e.mode&&e.mode.indexOf("lines")!==-1},hasMarkers:function(e){return e.visible&&(e.mode&&e.mode.indexOf("markers")!==-1||e.type==="splom")},hasText:function(e){return e.visible&&e.mode&&e.mode.indexOf("text")!==-1},isBubble:function(e){var r=e.marker;return NF.isPlainObject(r)&&(NF.isArrayOrTypedArray(r.size)||Ube(r.size))}}});var OF=z((eZe,BF)=>{"use strict";var Gbe=Br();BF.exports=function(r,t){t||(t=2);var a=r.marker,n=a.sizeref||1,i=a.sizemin||0,o=a.sizemode==="area"?function(l){return Math.sqrt(l/n)}:function(l){return l/n};return function(l){var s=o(l/t);return Gbe(s)&&s>0?Math.max(s,i):0}}});var No=z(fn=>{"use strict";var Fh=ke();fn.getSubplot=function(e){return e.subplot||e.xaxis+e.yaxis||e.geo};fn.isTraceInSubplots=function(e,r){if(e.type==="splom"){for(var t=e.xaxes||[],a=e.yaxes||[],n=0;n=0&&t.index{var c6={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},Wbe=/([astvzqmhlc])([^astvzqmhlc]*)/gi,Xbe=/-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/gi;function Zbe(e){let r=[];return e.replace(Wbe,(t,a,n)=>{let i=a.toLowerCase(),o=a,l=$be(n);for(i==="m"&&l.length>2&&(r.push([o,...l.splice(0,2)]),i="l",o=o==="m"?"l":"L");;){if(l.length===c6[i])return r.push([o,...l]),"";if(l.length{"use strict";var Jbe=v6(),$e=function(e,r){return r?Math.round(e*(r=Math.pow(10,r)))/r:Math.round(e)},Rr="M0,0Z",YF=Math.sqrt(2),Is=Math.sqrt(3),h6=Math.PI,d6=Math.cos,p6=Math.sin;ZF.exports={circle:{n:0,f:function(e,r,t){if(Fr(r))return Rr;var a=$e(e,2),n="M"+a+",0A"+a+","+a+" 0 1,1 0,-"+a+"A"+a+","+a+" 0 0,1 "+a+",0Z";return t?zr(r,t,n):n}},square:{n:1,f:function(e,r,t){if(Fr(r))return Rr;var a=$e(e,2);return zr(r,t,"M"+a+","+a+"H-"+a+"V-"+a+"H"+a+"Z")}},diamond:{n:2,f:function(e,r,t){if(Fr(r))return Rr;var a=$e(e*1.3,2);return zr(r,t,"M"+a+",0L0,"+a+"L-"+a+",0L0,-"+a+"Z")}},cross:{n:3,f:function(e,r,t){if(Fr(r))return Rr;var a=$e(e*.4,2),n=$e(e*1.2,2);return zr(r,t,"M"+n+","+a+"H"+a+"V"+n+"H-"+a+"V"+a+"H-"+n+"V-"+a+"H-"+a+"V-"+n+"H"+a+"V-"+a+"H"+n+"Z")}},x:{n:4,f:function(e,r,t){if(Fr(r))return Rr;var a=$e(e*.8/YF,2),n="l"+a+","+a,i="l"+a+",-"+a,o="l-"+a+",-"+a,l="l-"+a+","+a;return zr(r,t,"M0,"+a+n+i+o+i+o+l+o+l+n+l+n+"Z")}},"triangle-up":{n:5,f:function(e,r,t){if(Fr(r))return Rr;var a=$e(e*2/Is,2),n=$e(e/2,2),i=$e(e,2);return zr(r,t,"M-"+a+","+n+"H"+a+"L0,-"+i+"Z")}},"triangle-down":{n:6,f:function(e,r,t){if(Fr(r))return Rr;var a=$e(e*2/Is,2),n=$e(e/2,2),i=$e(e,2);return zr(r,t,"M-"+a+",-"+n+"H"+a+"L0,"+i+"Z")}},"triangle-left":{n:7,f:function(e,r,t){if(Fr(r))return Rr;var a=$e(e*2/Is,2),n=$e(e/2,2),i=$e(e,2);return zr(r,t,"M"+n+",-"+a+"V"+a+"L-"+i+",0Z")}},"triangle-right":{n:8,f:function(e,r,t){if(Fr(r))return Rr;var a=$e(e*2/Is,2),n=$e(e/2,2),i=$e(e,2);return zr(r,t,"M-"+n+",-"+a+"V"+a+"L"+i+",0Z")}},"triangle-ne":{n:9,f:function(e,r,t){if(Fr(r))return Rr;var a=$e(e*.6,2),n=$e(e*1.2,2);return zr(r,t,"M-"+n+",-"+a+"H"+a+"V"+n+"Z")}},"triangle-se":{n:10,f:function(e,r,t){if(Fr(r))return Rr;var a=$e(e*.6,2),n=$e(e*1.2,2);return zr(r,t,"M"+a+",-"+n+"V"+a+"H-"+n+"Z")}},"triangle-sw":{n:11,f:function(e,r,t){if(Fr(r))return Rr;var a=$e(e*.6,2),n=$e(e*1.2,2);return zr(r,t,"M"+n+","+a+"H-"+a+"V-"+n+"Z")}},"triangle-nw":{n:12,f:function(e,r,t){if(Fr(r))return Rr;var a=$e(e*.6,2),n=$e(e*1.2,2);return zr(r,t,"M-"+a+","+n+"V-"+a+"H"+n+"Z")}},pentagon:{n:13,f:function(e,r,t){if(Fr(r))return Rr;var a=$e(e*.951,2),n=$e(e*.588,2),i=$e(-e,2),o=$e(e*-.309,2),l=$e(e*.809,2);return zr(r,t,"M"+a+","+o+"L"+n+","+l+"H-"+n+"L-"+a+","+o+"L0,"+i+"Z")}},hexagon:{n:14,f:function(e,r,t){if(Fr(r))return Rr;var a=$e(e,2),n=$e(e/2,2),i=$e(e*Is/2,2);return zr(r,t,"M"+i+",-"+n+"V"+n+"L0,"+a+"L-"+i+","+n+"V-"+n+"L0,-"+a+"Z")}},hexagon2:{n:15,f:function(e,r,t){if(Fr(r))return Rr;var a=$e(e,2),n=$e(e/2,2),i=$e(e*Is/2,2);return zr(r,t,"M-"+n+","+i+"H"+n+"L"+a+",0L"+n+",-"+i+"H-"+n+"L-"+a+",0Z")}},octagon:{n:16,f:function(e,r,t){if(Fr(r))return Rr;var a=$e(e*.924,2),n=$e(e*.383,2);return zr(r,t,"M-"+n+",-"+a+"H"+n+"L"+a+",-"+n+"V"+n+"L"+n+","+a+"H-"+n+"L-"+a+","+n+"V-"+n+"Z")}},star:{n:17,f:function(e,r,t){if(Fr(r))return Rr;var a=e*1.4,n=$e(a*.225,2),i=$e(a*.951,2),o=$e(a*.363,2),l=$e(a*.588,2),s=$e(-a,2),u=$e(a*-.309,2),f=$e(a*.118,2),c=$e(a*.809,2),v=$e(a*.382,2);return zr(r,t,"M"+n+","+u+"H"+i+"L"+o+","+f+"L"+l+","+c+"L0,"+v+"L-"+l+","+c+"L-"+o+","+f+"L-"+i+","+u+"H-"+n+"L0,"+s+"Z")}},hexagram:{n:18,f:function(e,r,t){if(Fr(r))return Rr;var a=$e(e*.66,2),n=$e(e*.38,2),i=$e(e*.76,2);return zr(r,t,"M-"+i+",0l-"+n+",-"+a+"h"+i+"l"+n+",-"+a+"l"+n+","+a+"h"+i+"l-"+n+","+a+"l"+n+","+a+"h-"+i+"l-"+n+","+a+"l-"+n+",-"+a+"h-"+i+"Z")}},"star-triangle-up":{n:19,f:function(e,r,t){if(Fr(r))return Rr;var a=$e(e*Is*.8,2),n=$e(e*.8,2),i=$e(e*1.6,2),o=$e(e*4,2),l="A "+o+","+o+" 0 0 1 ";return zr(r,t,"M-"+a+","+n+l+a+","+n+l+"0,-"+i+l+"-"+a+","+n+"Z")}},"star-triangle-down":{n:20,f:function(e,r,t){if(Fr(r))return Rr;var a=$e(e*Is*.8,2),n=$e(e*.8,2),i=$e(e*1.6,2),o=$e(e*4,2),l="A "+o+","+o+" 0 0 1 ";return zr(r,t,"M"+a+",-"+n+l+"-"+a+",-"+n+l+"0,"+i+l+a+",-"+n+"Z")}},"star-square":{n:21,f:function(e,r,t){if(Fr(r))return Rr;var a=$e(e*1.1,2),n=$e(e*2,2),i="A "+n+","+n+" 0 0 1 ";return zr(r,t,"M-"+a+",-"+a+i+"-"+a+","+a+i+a+","+a+i+a+",-"+a+i+"-"+a+",-"+a+"Z")}},"star-diamond":{n:22,f:function(e,r,t){if(Fr(r))return Rr;var a=$e(e*1.4,2),n=$e(e*1.9,2),i="A "+n+","+n+" 0 0 1 ";return zr(r,t,"M-"+a+",0"+i+"0,"+a+i+a+",0"+i+"0,-"+a+i+"-"+a+",0Z")}},"diamond-tall":{n:23,f:function(e,r,t){if(Fr(r))return Rr;var a=$e(e*.7,2),n=$e(e*1.4,2);return zr(r,t,"M0,"+n+"L"+a+",0L0,-"+n+"L-"+a+",0Z")}},"diamond-wide":{n:24,f:function(e,r,t){if(Fr(r))return Rr;var a=$e(e*1.4,2),n=$e(e*.7,2);return zr(r,t,"M0,"+n+"L"+a+",0L0,-"+n+"L-"+a+",0Z")}},hourglass:{n:25,f:function(e,r,t){if(Fr(r))return Rr;var a=$e(e,2);return zr(r,t,"M"+a+","+a+"H-"+a+"L"+a+",-"+a+"H-"+a+"Z")},noDot:!0},bowtie:{n:26,f:function(e,r,t){if(Fr(r))return Rr;var a=$e(e,2);return zr(r,t,"M"+a+","+a+"V-"+a+"L-"+a+","+a+"V-"+a+"Z")},noDot:!0},"circle-cross":{n:27,f:function(e,r,t){if(Fr(r))return Rr;var a=$e(e,2);return zr(r,t,"M0,"+a+"V-"+a+"M"+a+",0H-"+a+"M"+a+",0A"+a+","+a+" 0 1,1 0,-"+a+"A"+a+","+a+" 0 0,1 "+a+",0Z")},needLine:!0,noDot:!0},"circle-x":{n:28,f:function(e,r,t){if(Fr(r))return Rr;var a=$e(e,2),n=$e(e/YF,2);return zr(r,t,"M"+n+","+n+"L-"+n+",-"+n+"M"+n+",-"+n+"L-"+n+","+n+"M"+a+",0A"+a+","+a+" 0 1,1 0,-"+a+"A"+a+","+a+" 0 0,1 "+a+",0Z")},needLine:!0,noDot:!0},"square-cross":{n:29,f:function(e,r,t){if(Fr(r))return Rr;var a=$e(e,2);return zr(r,t,"M0,"+a+"V-"+a+"M"+a+",0H-"+a+"M"+a+","+a+"H-"+a+"V-"+a+"H"+a+"Z")},needLine:!0,noDot:!0},"square-x":{n:30,f:function(e,r,t){if(Fr(r))return Rr;var a=$e(e,2);return zr(r,t,"M"+a+","+a+"L-"+a+",-"+a+"M"+a+",-"+a+"L-"+a+","+a+"M"+a+","+a+"H-"+a+"V-"+a+"H"+a+"Z")},needLine:!0,noDot:!0},"diamond-cross":{n:31,f:function(e,r,t){if(Fr(r))return Rr;var a=$e(e*1.3,2);return zr(r,t,"M"+a+",0L0,"+a+"L-"+a+",0L0,-"+a+"ZM0,-"+a+"V"+a+"M-"+a+",0H"+a)},needLine:!0,noDot:!0},"diamond-x":{n:32,f:function(e,r,t){if(Fr(r))return Rr;var a=$e(e*1.3,2),n=$e(e*.65,2);return zr(r,t,"M"+a+",0L0,"+a+"L-"+a+",0L0,-"+a+"ZM-"+n+",-"+n+"L"+n+","+n+"M-"+n+","+n+"L"+n+",-"+n)},needLine:!0,noDot:!0},"cross-thin":{n:33,f:function(e,r,t){if(Fr(r))return Rr;var a=$e(e*1.4,2);return zr(r,t,"M0,"+a+"V-"+a+"M"+a+",0H-"+a)},needLine:!0,noDot:!0,noFill:!0},"x-thin":{n:34,f:function(e,r,t){if(Fr(r))return Rr;var a=$e(e,2);return zr(r,t,"M"+a+","+a+"L-"+a+",-"+a+"M"+a+",-"+a+"L-"+a+","+a)},needLine:!0,noDot:!0,noFill:!0},asterisk:{n:35,f:function(e,r,t){if(Fr(r))return Rr;var a=$e(e*1.2,2),n=$e(e*.85,2);return zr(r,t,"M0,"+a+"V-"+a+"M"+a+",0H-"+a+"M"+n+","+n+"L-"+n+",-"+n+"M"+n+",-"+n+"L-"+n+","+n)},needLine:!0,noDot:!0,noFill:!0},hash:{n:36,f:function(e,r,t){if(Fr(r))return Rr;var a=$e(e/2,2),n=$e(e,2);return zr(r,t,"M"+a+","+n+"V-"+n+"M"+(a-n)+",-"+n+"V"+n+"M"+n+","+a+"H-"+n+"M-"+n+","+(a-n)+"H"+n)},needLine:!0,noFill:!0},"y-up":{n:37,f:function(e,r,t){if(Fr(r))return Rr;var a=$e(e*1.2,2),n=$e(e*1.6,2),i=$e(e*.8,2);return zr(r,t,"M-"+a+","+i+"L0,0M"+a+","+i+"L0,0M0,-"+n+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-down":{n:38,f:function(e,r,t){if(Fr(r))return Rr;var a=$e(e*1.2,2),n=$e(e*1.6,2),i=$e(e*.8,2);return zr(r,t,"M-"+a+",-"+i+"L0,0M"+a+",-"+i+"L0,0M0,"+n+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-left":{n:39,f:function(e,r,t){if(Fr(r))return Rr;var a=$e(e*1.2,2),n=$e(e*1.6,2),i=$e(e*.8,2);return zr(r,t,"M"+i+","+a+"L0,0M"+i+",-"+a+"L0,0M-"+n+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-right":{n:40,f:function(e,r,t){if(Fr(r))return Rr;var a=$e(e*1.2,2),n=$e(e*1.6,2),i=$e(e*.8,2);return zr(r,t,"M-"+i+","+a+"L0,0M-"+i+",-"+a+"L0,0M"+n+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"line-ew":{n:41,f:function(e,r,t){if(Fr(r))return Rr;var a=$e(e*1.4,2);return zr(r,t,"M"+a+",0H-"+a)},needLine:!0,noDot:!0,noFill:!0},"line-ns":{n:42,f:function(e,r,t){if(Fr(r))return Rr;var a=$e(e*1.4,2);return zr(r,t,"M0,"+a+"V-"+a)},needLine:!0,noDot:!0,noFill:!0},"line-ne":{n:43,f:function(e,r,t){if(Fr(r))return Rr;var a=$e(e,2);return zr(r,t,"M"+a+",-"+a+"L-"+a+","+a)},needLine:!0,noDot:!0,noFill:!0},"line-nw":{n:44,f:function(e,r,t){if(Fr(r))return Rr;var a=$e(e,2);return zr(r,t,"M"+a+","+a+"L-"+a+",-"+a)},needLine:!0,noDot:!0,noFill:!0},"arrow-up":{n:45,f:function(e,r,t){if(Fr(r))return Rr;var a=$e(e,2),n=$e(e*2,2);return zr(r,t,"M0,0L-"+a+","+n+"H"+a+"Z")},backoff:1,noDot:!0},"arrow-down":{n:46,f:function(e,r,t){if(Fr(r))return Rr;var a=$e(e,2),n=$e(e*2,2);return zr(r,t,"M0,0L-"+a+",-"+n+"H"+a+"Z")},noDot:!0},"arrow-left":{n:47,f:function(e,r,t){if(Fr(r))return Rr;var a=$e(e*2,2),n=$e(e,2);return zr(r,t,"M0,0L"+a+",-"+n+"V"+n+"Z")},noDot:!0},"arrow-right":{n:48,f:function(e,r,t){if(Fr(r))return Rr;var a=$e(e*2,2),n=$e(e,2);return zr(r,t,"M0,0L-"+a+",-"+n+"V"+n+"Z")},noDot:!0},"arrow-bar-up":{n:49,f:function(e,r,t){if(Fr(r))return Rr;var a=$e(e,2),n=$e(e*2,2);return zr(r,t,"M-"+a+",0H"+a+"M0,0L-"+a+","+n+"H"+a+"Z")},backoff:1,needLine:!0,noDot:!0},"arrow-bar-down":{n:50,f:function(e,r,t){if(Fr(r))return Rr;var a=$e(e,2),n=$e(e*2,2);return zr(r,t,"M-"+a+",0H"+a+"M0,0L-"+a+",-"+n+"H"+a+"Z")},needLine:!0,noDot:!0},"arrow-bar-left":{n:51,f:function(e,r,t){if(Fr(r))return Rr;var a=$e(e*2,2),n=$e(e,2);return zr(r,t,"M0,-"+n+"V"+n+"M0,0L"+a+",-"+n+"V"+n+"Z")},needLine:!0,noDot:!0},"arrow-bar-right":{n:52,f:function(e,r,t){if(Fr(r))return Rr;var a=$e(e*2,2),n=$e(e,2);return zr(r,t,"M0,-"+n+"V"+n+"M0,0L-"+a+",-"+n+"V"+n+"Z")},needLine:!0,noDot:!0},arrow:{n:53,f:function(e,r,t){if(Fr(r))return Rr;var a=h6/2.5,n=2*e*d6(a),i=2*e*p6(a);return zr(r,t,"M0,0L"+-n+","+i+"L"+n+","+i+"Z")},backoff:.9,noDot:!0},"arrow-wide":{n:54,f:function(e,r,t){if(Fr(r))return Rr;var a=h6/4,n=2*e*d6(a),i=2*e*p6(a);return zr(r,t,"M0,0L"+-n+","+i+"A "+2*e+","+2*e+" 0 0 1 "+n+","+i+"Z")},backoff:.4,noDot:!0}};function Fr(e){return e===null}var VF,jF,WF,XF;function zr(e,r,t){if((!e||e%360===0)&&!r)return t;if(WF===e&&XF===r&&VF===t)return jF;WF=e,XF=r,VF=t;function a(y,b){var T=d6(y),w=p6(y),x=b[0],_=b[1]+(r||0);return[x*T-_*w,x*w+_*T]}for(var n=e/180*h6,i=0,o=0,l=Jbe(t),s="",u=0;u{"use strict";var ja=Pr(),_t=ke(),Kbe=_t.numberFormat,Bs=Br(),vm=Ar(),Ua=qr(),Qbe=cl(),Nh=_t.strTranslate,hm=Da(),exe=(Wl(),Ne(jl)),rxe=(un(),Ne(sn)),txe=rxe.LINE_SPACING,oz=(wp(),Ne(_p)).DESELECTDIM,axe=ii(),nxe=OF(),ixe=No().appendArrayPointValue,ar={};mz.exports=ar;ar.font=function(e,r){var t=r.variant,a=r.style,n=r.weight,i=r.color,o=r.size,l=r.family,s=r.shadow,u=r.lineposition,f=r.textcase;l&&e.style("font-family",l),o+1&&e.style("font-size",o+"px"),i&&e.call(Ua.fill,i),n&&e.style("font-weight",n),a&&e.style("font-style",a),t&&e.style("font-variant",t),f&&e.style("text-transform",m6(lxe(f))),s&&e.style("text-shadow",s==="auto"?hm.makeTextShadow(Ua.contrast(i)):m6(s)),u&&e.style("text-decoration-line",m6(sxe(u)))};function m6(e){return e==="none"?void 0:e}var oxe={normal:"none",lower:"lowercase",upper:"uppercase","word caps":"capitalize"};function lxe(e){return oxe[e]}function sxe(e){return e.replace("under","underline").replace("over","overline").replace("through","line-through").split("+").join(" ")}ar.setPosition=function(e,r,t){e.attr("x",r).attr("y",t)};ar.setSize=function(e,r,t){e.attr("width",r).attr("height",t)};ar.setRect=function(e,r,t,a,n){e.call(ar.setPosition,r,t).call(ar.setSize,a,n)};ar.translatePoint=function(e,r,t,a){var n=t.c2p(e.x),i=a.c2p(e.y);if(Bs(n)&&Bs(i)&&r.node())r.node().nodeName==="text"?r.attr("x",n).attr("y",i):r.attr("transform",Nh(n,i));else return!1;return!0};ar.translatePoints=function(e,r,t){e.each(function(a){var n=ja.select(this);ar.translatePoint(a,n,r,t)})};ar.hideOutsideRangePoint=function(e,r,t,a,n,i){r.attr("display",t.isPtWithinRange(e,n)&&a.isPtWithinRange(e,i)?null:"none")};ar.hideOutsideRangePoints=function(e,r){if(r._hasClipOnAxisFalse){var t=r.xaxis,a=r.yaxis;e.each(function(n){var i=n[0].trace,o=i.xcalendar,l=i.ycalendar,s=vm.traceIs(i,"bar-like")?".bartext":".point,.textpoint";e.selectAll(s).each(function(u){ar.hideOutsideRangePoint(u,ja.select(this),t,a,o,l)})})}};ar.crispRound=function(e,r,t){return!r||!Bs(r)?t||0:e._context.staticPlot?r:r<1?1:Math.round(r)};ar.singleLineStyle=function(e,r,t,a,n){r.style("fill","none");var i=(((e||[])[0]||{}).trace||{}).line||{},o=t||i.width||0,l=n||i.dash||"";Ua.stroke(r,a||i.color),ar.dashLine(r,l,o)};ar.lineGroupStyle=function(e,r,t,a){e.style("fill","none").each(function(n){var i=(((n||[])[0]||{}).trace||{}).line||{},o=r||i.width||0,l=a||i.dash||"";ja.select(this).call(Ua.stroke,t||i.color).call(ar.dashLine,l,o)})};ar.dashLine=function(e,r,t){t=+t||0,r=ar.dashStyle(r,t),e.style({"stroke-dasharray":r,"stroke-width":t+"px"})};ar.dashStyle=function(e,r){r=+r||1;var t=Math.max(r,3);return e==="solid"?e="":e==="dot"?e=t+"px,"+t+"px":e==="dash"?e=3*t+"px,"+3*t+"px":e==="longdash"?e=5*t+"px,"+5*t+"px":e==="dashdot"?e=3*t+"px,"+t+"px,"+t+"px,"+t+"px":e==="longdashdot"&&(e=5*t+"px,"+2*t+"px,"+t+"px,"+2*t+"px"),e};function lz(e,r,t,a){var n=r.fillpattern,i=r.fillgradient,o=ar.getPatternAttr,l=n&&(o(n.shape,0,"")||o(n.path,0,""));if(l){var s=o(n.bgcolor,0,null),u=o(n.fgcolor,0,null),f=n.fgopacity,c=o(n.size,0,8),v=o(n.solidity,0,.3),d=r.uid;ar.pattern(e,"point",t,d,l,c,v,void 0,n.fillmode,s,u,f)}else if(i&&i.type!=="none"){var p=i.type,m="scatterfill-"+r.uid;if(a&&(m="legendfill-"+r.uid),!a&&(i.start!==void 0||i.stop!==void 0)){var y,b;p==="horizontal"?(y={x:i.start,y:0},b={x:i.stop,y:0}):p==="vertical"&&(y={x:0,y:i.start},b={x:0,y:i.stop}),y.x=r._xA.c2p(y.x===void 0?r._extremes.x.min[0].val:y.x,!0),y.y=r._yA.c2p(y.y===void 0?r._extremes.y.min[0].val:y.y,!0),b.x=r._xA.c2p(b.x===void 0?r._extremes.x.max[0].val:b.x,!0),b.y=r._yA.c2p(b.y===void 0?r._extremes.y.max[0].val:b.y,!0),e.call(fz,t,m,"linear",i.colorscale,"fill",y,b,!0,!1)}else p==="horizontal"&&(p=p+"reversed"),e.call(ar.gradient,t,m,p,i.colorscale,"fill")}else r.fillcolor&&e.call(Ua.fill,r.fillcolor)}ar.singleFillStyle=function(e,r){var t=ja.select(e.node()),a=t.data(),n=((a[0]||[])[0]||{}).trace||{};lz(e,n,r,!1)};ar.fillGroupStyle=function(e,r,t){e.style("stroke-width",0).each(function(a){var n=ja.select(this);a[0].trace&&lz(n,a[0].trace,r,t)})};var JF=$F();ar.symbolNames=[];ar.symbolFuncs=[];ar.symbolBackOffs=[];ar.symbolNeedLines={};ar.symbolNoDot={};ar.symbolNoFill={};ar.symbolList=[];Object.keys(JF).forEach(function(e){var r=JF[e],t=r.n;ar.symbolList.push(t,String(t),e,t+100,String(t+100),e+"-open"),ar.symbolNames[t]=e,ar.symbolFuncs[t]=r.f,ar.symbolBackOffs[t]=r.backoff||0,r.needLine&&(ar.symbolNeedLines[t]=!0),r.noDot?ar.symbolNoDot[t]=!0:ar.symbolList.push(t+200,String(t+200),e+"-dot",t+300,String(t+300),e+"-open-dot"),r.noFill&&(ar.symbolNoFill[t]=!0)});var uxe=ar.symbolNames.length,fxe="M0,0.5L0.5,0L0,-0.5L-0.5,0Z";ar.symbolNumber=function(e){if(Bs(e))e=+e;else if(typeof e=="string"){var r=0;e.indexOf("-open")>0&&(r=100,e=e.replace("-open","")),e.indexOf("-dot")>0&&(r+=200,e=e.replace("-dot","")),e=ar.symbolNames.indexOf(e),e>=0&&(e+=r)}return e%100>=uxe||e>=400?0:Math.floor(Math.max(e,0))};function sz(e,r,t,a){var n=e%100;return ar.symbolFuncs[n](r,t,a)+(e>=200?fxe:"")}var KF=Kbe("~f"),uz={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}};ar.gradient=function(e,r,t,a,n,i){var o=uz[a];return fz(e,r,t,o.type,n,i,o.start,o.stop,!1,o.reversed)};function fz(e,r,t,a,n,i,o,l,s,u){var f=n.length,c;a==="linear"?c={node:"linearGradient",attrs:{x1:o.x,y1:o.y,x2:l.x,y2:l.y,gradientUnits:s?"userSpaceOnUse":"objectBoundingBox"},reversed:u}:a==="radial"&&(c={node:"radialGradient",reversed:u});for(var v=new Array(f),d=0;d=0&&e.i===void 0&&(e.i=i.i),r.style("opacity",a.selectedOpacityFn?a.selectedOpacityFn(e):e.mo===void 0?o.opacity:e.mo),a.ms2mrc){var s;e.ms==="various"||o.size==="various"?s=3:s=a.ms2mrc(e.ms),e.mrc=s,a.selectedSizeFn&&(s=e.mrc=a.selectedSizeFn(e));var u=ar.symbolNumber(e.mx||o.symbol)||0;e.om=u%200>=100;var f=T6(e,t),c=w6(e,t);r.attr("d",sz(u,s,f,c))}var v=!1,d,p,m;if(e.so)m=l.outlierwidth,p=l.outliercolor,d=o.outliercolor;else{var y=(l||{}).width;m=(e.mlw+1||y+1||(e.trace?(e.trace.marker.line||{}).width:0)+1)-1||0,"mlc"in e?p=e.mlcc=a.lineScale(e.mlc):_t.isArrayOrTypedArray(l.color)?p=Ua.defaultLine:p=l.color,_t.isArrayOrTypedArray(o.color)&&(d=Ua.defaultLine,v=!0),"mc"in e?d=e.mcc=a.markerScale(e.mc):d=o.color||o.colors||"rgba(0,0,0,0)",a.selectedColorFn&&(d=a.selectedColorFn(e))}let b=e.mld||(l||{}).dash;if(b&&ar.dashLine(r,b,m),e.om)r.call(Ua.stroke,d).style({"stroke-width":(m||1)+"px",fill:"none"});else{r.style("stroke-width",(e.isBlank?0:m)+"px");var T=o.gradient,w=e.mgt;w?v=!0:w=T&&T.type,_t.isArrayOrTypedArray(w)&&(w=w[0],uz[w]||(w=0));var x=o.pattern,_=ar.getPatternAttr,k=x&&(_(x.shape,e.i,"")||_(x.path,e.i,""));if(w&&w!=="none"){var M=e.mgc;M?v=!0:M=T.color;var S=t.uid;v&&(S+="-"+e.i),ar.gradient(r,n,S,w,[[0,M],[1,d]],"fill")}else if(k){var C=!1,E=x.fgcolor;!E&&i&&i.color&&(E=i.color,C=!0);var P=_(E,e.i,i&&i.color||null),R=_(x.bgcolor,e.i,null),I=x.fgopacity,B=_(x.size,e.i,8),N=_(x.solidity,e.i,.3);C=C||e.mcc||_t.isArrayOrTypedArray(x.shape)||_t.isArrayOrTypedArray(x.path)||_t.isArrayOrTypedArray(x.bgcolor)||_t.isArrayOrTypedArray(x.fgcolor)||_t.isArrayOrTypedArray(x.size)||_t.isArrayOrTypedArray(x.solidity);var U=t.uid;C&&(U+="-"+e.i),ar.pattern(r,"point",n,U,k,B,N,e.mcc,x.fillmode,R,P,I)}else _t.isArrayOrTypedArray(d)?Ua.fill(r,d[e.i]):Ua.fill(r,d);m&&Ua.stroke(r,p)}};ar.makePointStyleFns=function(e){var r={},t=e.marker;return r.markerScale=ar.tryColorscale(t,""),r.lineScale=ar.tryColorscale(t,"line"),vm.traceIs(e,"symbols")&&(r.ms2mrc=axe.isBubble(e)?nxe(e):function(){return(t.size||6)/2}),e.selectedpoints&&_t.extendFlat(r,ar.makeSelectedPointStyleFns(e)),r};ar.makeSelectedPointStyleFns=function(e){var r={},t=e.selected||{},a=e.unselected||{},n=e.marker||{},i=t.marker||{},o=a.marker||{},l=n.opacity,s=i.opacity,u=o.opacity,f=s!==void 0,c=u!==void 0;(_t.isArrayOrTypedArray(l)||f||c)&&(r.selectedOpacityFn=function(x){var _=x.mo===void 0?n.opacity:x.mo;return x.selected?f?s:_:c?u:oz*_});var v=n.color,d=i.color,p=o.color;(d||p)&&(r.selectedColorFn=function(x){var _=x.mcc||v;return x.selected?d||_:p||_});var m=n.size,y=i.size,b=o.size,T=y!==void 0,w=b!==void 0;return vm.traceIs(e,"symbols")&&(T||w)&&(r.selectedSizeFn=function(x){var _=x.mrc||m/2;return x.selected?T?y/2:_:w?b/2:_}),r};ar.makeSelectedTextStyleFns=function(e){var r={},t=e.selected||{},a=e.unselected||{},n=e.textfont||{},i=t.textfont||{},o=a.textfont||{},l=n.color,s=i.color,u=o.color;return r.selectedTextColorFn=function(f){var c=f.tc||l;return f.selected?s||c:u||(s?c:Ua.addOpacity(c,oz))},r};ar.selectedPointStyle=function(e,r){if(!(!e.size()||!r.selectedpoints)){var t=ar.makeSelectedPointStyleFns(r),a=r.marker||{},n=[];t.selectedOpacityFn&&n.push(function(i,o){i.style("opacity",t.selectedOpacityFn(o))}),t.selectedColorFn&&n.push(function(i,o){Ua.fill(i,t.selectedColorFn(o))}),t.selectedSizeFn&&n.push(function(i,o){var l=o.mx||a.symbol||0,s=t.selectedSizeFn(o);i.attr("d",sz(ar.symbolNumber(l),s,T6(o,r),w6(o,r))),o.mrc2=s}),n.length&&e.each(function(i){for(var o=ja.select(this),l=0;l0?t:0}ar.textPointStyle=function(e,r,t){if(e.size()){var a;if(r.selectedpoints){var n=ar.makeSelectedTextStyleFns(r);a=n.selectedTextColorFn}var i=r.texttemplate,o=t._fullLayout;e.each(function(l){var s=ja.select(this),u=i?_t.extractOption(l,r,"txt","texttemplate"):_t.extractOption(l,r,"tx","text");if(!u&&u!==0){s.remove();return}if(i){var f=r._module.formatLabels,c=f?f(l,r,o):{},v={};ixe(v,r,l.i),u=_t.texttemplateString({data:[v,l,r._meta],fallback:r.texttemplatefallback,labels:c,locale:o._d3locale,template:u})}var d=l.tp||r.textposition,p=vz(l,r),m=a?a(l):l.tc||r.textfont.color;s.call(ar.font,{family:l.tf||r.textfont.family,weight:l.tw||r.textfont.weight,style:l.ty||r.textfont.style,variant:l.tv||r.textfont.variant,textcase:l.tC||r.textfont.textcase,lineposition:l.tE||r.textfont.lineposition,shadow:l.tS||r.textfont.shadow,size:p,color:m}).text(u).call(hm.convertToTspans,t).call(cz,d,p,l.mrc)})}};ar.selectedTextStyle=function(e,r){if(!(!e.size()||!r.selectedpoints)){var t=ar.makeSelectedTextStyleFns(r);e.each(function(a){var n=ja.select(this),i=t.selectedTextColorFn(a),o=a.tp||r.textposition,l=vz(a,r);Ua.fill(n,i);var s=vm.traceIs(r,"bar-like");cz(n,o,l,a.mrc2||a.mrc,s)})}};var QF=.5;ar.smoothopen=function(e,r){if(e.length<3)return"M"+e.join("L");var t="M"+e[0],a=[],n;for(n=1;n=s||x>=f&&x<=s)&&(_<=c&&_>=u||_>=c&&_<=u)&&(e=[x,_])}return e}ar.applyBackoff=pz;ar.makeTester=function(){var e=_t.ensureSingleById(ja.select("body"),"svg","js-plotly-tester",function(t){t.attr(exe.svgAttrs).style({position:"absolute",left:"-10000px",top:"-10000px",width:"9000px",height:"9000px","z-index":"1"})}),r=_t.ensureSingle(e,"path","js-reference-point",function(t){t.attr("d","M0,0H1V1H0Z").style({"stroke-width":0,fill:"black"})});ar.tester=e,ar.testref=r};ar.savedBBoxes={};var g6=0,hxe=1e4;ar.bBox=function(e,r,t){t||(t=ez(e));var a;if(t){if(a=ar.savedBBoxes[t],a)return _t.extendFlat({},a)}else if(e.childNodes.length===1){var n=e.childNodes[0];if(t=ez(n),t){var i=+n.getAttribute("x")||0,o=+n.getAttribute("y")||0,l=n.getAttribute("transform");if(!l){var s=ar.bBox(n,!1,t);return i&&(s.left+=i,s.right+=i),o&&(s.top+=o,s.bottom+=o),s}if(t+="~"+i+"~"+o+"~"+l,a=ar.savedBBoxes[t],a)return _t.extendFlat({},a)}}var u,f;r?u=e:(f=ar.tester.node(),u=e.cloneNode(!0),f.appendChild(u)),ja.select(u).attr("transform",null).call(hm.positionText,0,0);var c=u.getBoundingClientRect(),v=ar.testref.node().getBoundingClientRect();r||f.removeChild(u);var d={height:c.height,width:c.width,left:c.left-v.left,top:c.top-v.top,right:c.right-v.left,bottom:c.bottom-v.top};return g6>=hxe&&(ar.savedBBoxes={},g6=0),t&&(ar.savedBBoxes[t]=d),g6++,_t.extendFlat({},d)};function ez(e){var r=e.getAttribute("data-unformatted");if(r!==null)return r+e.getAttribute("data-math")+e.getAttribute("text-anchor")+e.getAttribute("style")}ar.setClipUrl=function(e,r,t){e.attr("clip-path",_6(r,t))};function _6(e,r){if(!e)return null;var t=r._context,a=t._exportedPlot?"":t._baseUrl||"";return a?"url('"+a+"#"+e+"')":"url(#"+e+")"}ar.getTranslate=function(e){var r=/.*\btranslate\((-?\d*\.?\d*)[^-\d]*(-?\d*\.?\d*)[^\d].*/,t=e.attr?"attr":"getAttribute",a=e[t]("transform")||"",n=a.replace(r,function(i,o,l){return[o,l].join(" ")}).split(" ");return{x:+n[0]||0,y:+n[1]||0}};ar.setTranslate=function(e,r,t){var a=/(\btranslate\(.*?\);?)/,n=e.attr?"attr":"getAttribute",i=e.attr?"attr":"setAttribute",o=e[n]("transform")||"";return r=r||0,t=t||0,o=o.replace(a,"").trim(),o+=Nh(r,t),o=o.trim(),e[i]("transform",o),o};ar.getScale=function(e){var r=/.*\bscale\((\d*\.?\d*)[^\d]*(\d*\.?\d*)[^\d].*/,t=e.attr?"attr":"getAttribute",a=e[t]("transform")||"",n=a.replace(r,function(i,o,l){return[o,l].join(" ")}).split(" ");return{x:+n[0]||1,y:+n[1]||1}};ar.setScale=function(e,r,t){var a=/(\bscale\(.*?\);?)/,n=e.attr?"attr":"getAttribute",i=e.attr?"attr":"setAttribute",o=e[n]("transform")||"";return r=r||1,t=t||1,o=o.replace(a,"").trim(),o+="scale("+r+","+t+")",o=o.trim(),e[i]("transform",o),o};var dxe=/\s*sc.*/;ar.setPointGroupScale=function(e,r,t){if(r=r||1,t=t||1,!!e){var a=r===1&&t===1?"":"scale("+r+","+t+")";e.each(function(){var n=(this.getAttribute("transform")||"").replace(dxe,"");n+=a,n=n.trim(),this.setAttribute("transform",n)})}};var pxe=/translate\([^)]*\)\s*$/;ar.setTextPointsScale=function(e,r,t){e&&e.each(function(){var a,n=ja.select(this),i=n.select("text");if(i.node()){var o=parseFloat(i.attr("x")||0),l=parseFloat(i.attr("y")||0),s=(n.attr("transform")||"").match(pxe);r===1&&t===1?a=[]:a=[Nh(o,l),"scale("+r+","+t+")",Nh(-o,-l)],s&&a.push(s),n.attr("transform",a.join(""))}})};function w6(e,r){var t;return e&&(t=e.mf),t===void 0&&(t=r.marker&&r.marker.standoff||0),!r._geo&&!r._xA?-t:t}ar.getMarkerStandoff=w6;var zh=Math.atan2,af=Math.cos,a0=Math.sin;function rz(e,r){var t=r[0],a=r[1];return[t*af(e)-a*a0(e),t*a0(e)+a*af(e)]}var tz,az,nz,iz,b6,x6;function T6(e,r){var t=e.ma;t===void 0&&(t=r.marker.angle,(!Bs(t)||_t.isArrayOrTypedArray(t))&&(t=0));var a,n,i=r.marker.angleref;if(i==="previous"||i==="north"){if(r._geo){var o=r._geo.project(e.lonlat);a=o[0],n=o[1]}else{var l=r._xA,s=r._yA;if(l&&s)a=l.c2p(e.x),n=s.c2p(e.y);else return 90}if(r._geo){var u=e.lonlat[0],f=e.lonlat[1],c=r._geo.project([u,f+1e-5]),v=r._geo.project([u+1e-5,f]),d=zh(v[1]-n,v[0]-a),p=zh(c[1]-n,c[0]-a),m;if(i==="north")m=t/180*Math.PI;else if(i==="previous"){var y=u/180*Math.PI,b=f/180*Math.PI,T=tz/180*Math.PI,w=az/180*Math.PI,x=T-y,_=af(w)*a0(x),k=a0(w)*af(b)-af(w)*a0(b)*af(x);m=-zh(_,k)-Math.PI,tz=u,az=f}var M=rz(d,[af(m),0]),S=rz(p,[a0(m),0]);t=zh(M[1]+S[1],M[0]+S[0])/Math.PI*180,i==="previous"&&!(x6===r.uid&&e.i===b6+1)&&(t=null)}if(i==="previous"&&!r._geo)if(x6===r.uid&&e.i===b6+1&&Bs(a)&&Bs(n)){var C=a-nz,E=n-iz,P=r.line&&r.line.shape||"",R=P.slice(P.length-1);R==="h"&&(E=0),R==="v"&&(C=0),t+=zh(E,C)/Math.PI*180+90}else t=null}return nz=a,iz=n,b6=e.i,x6=r.uid,t}ar.getMarkerAngle=T6});var o0=z((iZe,xz)=>{"use strict";var n0=Pr(),mxe=Br(),yxe=_a(),A6=Ar(),lf=ke(),yz=lf.strTranslate,dm=et(),pm=qr(),i0=Da(),gz=(wp(),Ne(_p)),gxe=(un(),Ne(sn)).OPPOSITE_SIDE,bz=/ [XY][0-9]* /,M6=1.6,k6=1.6;function bxe(e,r,t){var a=e._fullLayout,n=t.propContainer,i=t.propName,o=t.placeholder,l=t.traceIndex,s=t.avoid||{},u=t.attributes,f=t.transform,c=t.containerGroup,v=1,d=n.title,p=(d&&d.text?d.text:"").trim(),m=!1,y=d&&d.font?d.font:{},b=y.family,T=y.size,w=y.color,x=y.weight,_=y.style,k=y.variant,M=y.textcase,S=y.lineposition,C=y.shadow,E=t.subtitlePropName,P=!!E,R=t.subtitlePlaceholder,I=(n.title||{}).subtitle||{text:"",font:{}},B=(I.text||"").trim(),N=!1,U=1,G=I.font,V=G.family,j=G.size,W=G.color,Y=G.weight,J=G.style,re=G.variant,le=G.textcase,ne=G.lineposition,$=G.shadow,ce;i==="title.text"?ce="titleText":i.indexOf("axis")!==-1?ce="axisTitleText":i.indexOf("colorbar")!==-1&&(ce="colorbarTitleText");var te=e._context.edits[ce];function ge(Je,Ke){return Je===void 0||Ke===void 0?!1:Je.replace(bz," % ")===Ke.replace(bz," % ")}p===""?v=0:ge(p,o)&&(te||(p=""),v=.2,m=!0),P&&(B===""?U=0:ge(B,R)&&(te||(B=""),U=.2,N=!0)),t._meta?p=lf.templateString(p,t._meta):a._meta&&(p=lf.templateString(p,a._meta));var se=p||B||te,oe;c||(c=lf.ensureSingle(a._infolayer,"g","g-"+r),oe=a._hColorbarMoveTitle);var Ae=c.selectAll("text."+r).data(se?[0]:[]);Ae.enter().append("text"),Ae.text(p).attr("class",r),Ae.exit().remove();var Pe=null,me=r+"-subtitle",Ce=B||te;if(P&&(Pe=c.selectAll("text."+me).data(Ce?[0]:[]),Pe.enter().append("text"),Pe.text(B).attr("class",me),Pe.exit().remove()),!se)return c;function Me(Je,Ke){lf.syncOrAsync([Le,Se],{title:Je,subtitle:Ke})}function Le(Je){var Ke=Je.title,De=Je.subtitle,Be;!f&&oe&&(f={}),f?(Be="",f.rotate&&(Be+="rotate("+[f.rotate,u.x,u.y]+")"),(f.offset||oe)&&(Be+=yz(0,(f.offset||0)-(oe||0)))):Be=null,Ke.attr("transform",Be);function er(ue){if(ue){var xe=n0.select(ue.node().parentNode).select("."+me);if(!xe.empty()){var Ie=ue.node().getBBox();if(Ie.height){var We=Ie.y+Ie.height+M6*j;xe.attr("y",We)}}}}if(Ke.style("opacity",v*pm.opacity(w)).call(dm.font,{color:pm.rgb(w),size:n0.round(T,2),family:b,weight:x,style:_,variant:k,textcase:M,shadow:C,lineposition:S}).attr(u).call(i0.convertToTspans,e,er),De&&!De.empty()){var ae=c.select("."+r+"-math-group"),be=Ke.node().getBBox(),Ge=ae.node()?ae.node().getBBox():void 0,sr=Ge?Ge.y+Ge.height+M6*j:be.y+be.height+k6*j,vr=lf.extendFlat({},u,{y:sr});De.attr("transform",Be),De.style("opacity",U*pm.opacity(W)).call(dm.font,{color:pm.rgb(W),size:n0.round(j,2),family:V,weight:Y,style:J,variant:re,textcase:le,shadow:$,lineposition:ne}).attr(vr).call(i0.convertToTspans,e)}return yxe.previousPromises(e)}function Se(Je){var Ke=Je.title,De=n0.select(Ke.node().parentNode);if(s&&s.selection&&s.side&&p){De.attr("transform",null);var Be=gxe[s.side],er=s.side==="left"||s.side==="top"?-1:1,ae=mxe(s.pad)?s.pad:2,be=dm.bBox(De.node()),Ge={t:0,b:0,l:0,r:0},sr=e._fullLayout._reservedMargin;for(var vr in sr)for(var ue in sr[vr]){var xe=sr[vr][ue];Ge[ue]=Math.max(Ge[ue],xe)}var Ie={left:Ge.l,top:Ge.t,right:a.width-Ge.r,bottom:a.height-Ge.b},We=s.maxShift||er*(Ie[s.side]-be[s.side]),Oe=0;if(We<0)Oe=We;else{var Xe=s.offsetLeft||0,Qe=s.offsetTop||0;be.left-=Xe,be.right-=Xe,be.top-=Qe,be.bottom-=Qe,s.selection.each(function(){var gr=dm.bBox(this);lf.bBoxIntersect(be,gr,ae)&&(Oe=Math.max(Oe,er*(gr[s.side]-be[Be])+ae))}),Oe=Math.min(We,Oe),n._titleScoot=Math.abs(Oe)}if(Oe>0||We<0){var _r={left:[-Oe,0],right:[Oe,0],top:[0,-Oe],bottom:[0,Oe]}[s.side];De.attr("transform",yz(_r[0],_r[1]))}}}Ae.call(Me,Pe);function Ee(Je,Ke){Je.text(Ke).on("mouseover.opacity",function(){n0.select(this).transition().duration(gz.SHOW_PLACEHOLDER).style("opacity",1)}).on("mouseout.opacity",function(){n0.select(this).transition().duration(gz.HIDE_PLACEHOLDER).style("opacity",0)})}if(te&&(p?Ae.on(".opacity",null):(Ee(Ae,o),m=!0),Ae.call(i0.makeEditable,{gd:e}).on("edit",function(Je){l!==void 0?A6.call("_guiRestyle",e,i,Je,l):A6.call("_guiRelayout",e,i,Je)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(Me)}).on("input",function(Je){this.text(Je||" ").call(i0.positionText,u.x,u.y)}),P)){if(P&&!p){var qe=Ae.node().getBBox(),Ue=qe.y+qe.height+k6*j;Pe.attr("y",Ue)}B?Pe.on(".opacity",null):(Ee(Pe,R),N=!0),Pe.call(i0.makeEditable,{gd:e}).on("edit",function(Je){A6.call("_guiRelayout",e,"title.subtitle.text",Je)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(Me)}).on("input",function(Je){this.text(Je||" ").call(i0.positionText,Pe.attr("x"),Pe.attr("y"))})}return Ae.classed("js-placeholder",m),Pe&&!Pe.empty()&&Pe.classed("js-placeholder",N),c}xz.exports={draw:bxe,SUBTITLE_PADDING_EM:k6,SUBTITLE_PADDING_MATHJAX_EM:M6}});var l0=z((oZe,Mz)=>{"use strict";var xxe=Pr(),_xe=Tc().utcFormat,Rt=ke(),wxe=Rt.numberFormat,vl=Br(),Os=Rt.cleanNumber,Txe=Rt.ms2DateTime,_z=Rt.dateTime2ms,hl=Rt.ensureNumber,wz=Rt.isArrayOrTypedArray,Hs=(Kt(),Ne(aa)),mm=Hs.FP_SAFE,Io=Hs.BADNUM,Axe=Hs.LOG_CLIP,Mxe=Hs.ONEWEEK,ym=Hs.ONEDAY,gm=Hs.ONEHOUR,Tz=Hs.ONEMIN,Az=Hs.ONESEC,bm=Ca(),wm=(Ha(),Ne(Oa)),xm=wm.HOUR_PATTERN,_m=wm.WEEKDAY_PATTERN;function Ih(e){return Math.pow(10,e)}function S6(e){return e!=null}Mz.exports=function(r,t){t=t||{};var a=r._id||"x",n=a.charAt(0);function i(x,_){if(x>0)return Math.log(x)/Math.LN10;if(x<=0&&_&&r.range&&r.range.length===2){var k=r.range[0],M=r.range[1];return .5*(k+M-2*Axe*Math.abs(k-M))}else return Io}function o(x,_,k,M){if((M||{}).msUTC&&vl(x))return+x;var S=_z(x,k||r.calendar);if(S===Io)if(vl(x)){x=+x;var C=Math.floor(Rt.mod(x+.05,1)*10),E=Math.round(x-C/10);S=_z(new Date(E))+C/10}else return Io;return S}function l(x,_,k){return Txe(x,_,k||r.calendar)}function s(x){return r._categories[Math.round(x)]}function u(x){if(S6(x)){if(r._categoriesMap===void 0&&(r._categoriesMap={}),r._categoriesMap[x]!==void 0)return r._categoriesMap[x];r._categories.push(typeof x=="number"?String(x):x);var _=r._categories.length-1;return r._categoriesMap[x]=_,_}return Io}function f(x,_){for(var k=new Array(_),M=0;M<_;M++){var S=(x[0]||[])[M],C=(x[1]||[])[M];k[M]=c([S,C])}return k}function c(x){if(r._categoriesMap)return r._categoriesMap[x]}function v(x){var _=c(x);if(_!==void 0)return _;if(vl(x))return+x}function d(x){return vl(x)?+x:c(x)}function p(x,_,k){return xxe.round(k+_*x,2)}function m(x,_,k){return(x-k)/_}var y=function(_){return vl(_)?p(_,r._m,r._b):Io},b=function(x){return m(x,r._m,r._b)};if(r.rangebreaks){var T=n==="y";y=function(x){if(!vl(x))return Io;var _=r._rangebreaks.length;if(!_)return p(x,r._m,r._b);var k=T;r.range[0]>r.range[1]&&(k=!k);for(var M=k?-1:1,S=M*x,C=0,E=0;E<_;E++){var P=M*r._rangebreaks[E].min,R=M*r._rangebreaks[E].max;if(SR)C=E+1;else{C=S<(P+R)/2?E:E+1;break}}var I=r._B[C]||0;return isFinite(I)?p(x,r._m2,I):0},b=function(x){var _=r._rangebreaks.length;if(!_)return m(x,r._m,r._b);for(var k=0,M=0;M<_&&!(xr._rangebreaks[M].pmax&&(k=M+1);return m(x,r._m2,r._B[k])}}r.c2l=r.type==="log"?i:hl,r.l2c=r.type==="log"?Ih:hl,r.l2p=y,r.p2l=b,r.c2p=r.type==="log"?function(x,_){return y(i(x,_))}:y,r.p2c=r.type==="log"?function(x){return Ih(b(x))}:b,["linear","-"].indexOf(r.type)!==-1?(r.d2r=r.r2d=r.d2c=r.r2c=r.d2l=r.r2l=Os,r.c2d=r.c2r=r.l2d=r.l2r=hl,r.d2p=r.r2p=function(x){return r.l2p(Os(x))},r.p2d=r.p2r=b,r.cleanPos=hl):r.type==="log"?(r.d2r=r.d2l=function(x,_){return i(Os(x),_)},r.r2d=r.r2c=function(x){return Ih(Os(x))},r.d2c=r.r2l=Os,r.c2d=r.l2r=hl,r.c2r=i,r.l2d=Ih,r.d2p=function(x,_){return r.l2p(r.d2r(x,_))},r.p2d=function(x){return Ih(b(x))},r.r2p=function(x){return r.l2p(Os(x))},r.p2r=b,r.cleanPos=hl):r.type==="date"?(r.d2r=r.r2d=Rt.identity,r.d2c=r.r2c=r.d2l=r.r2l=o,r.c2d=r.c2r=r.l2d=r.l2r=l,r.d2p=r.r2p=function(x,_,k){return r.l2p(o(x,0,k))},r.p2d=r.p2r=function(x,_,k){return l(b(x),_,k)},r.cleanPos=function(x){return Rt.cleanDate(x,Io,r.calendar)}):r.type==="category"?(r.d2c=r.d2l=u,r.r2d=r.c2d=r.l2d=s,r.d2r=r.d2l_noadd=v,r.r2c=function(x){var _=d(x);return _!==void 0?_:r.fraction2r(.5)},r.l2r=r.c2r=hl,r.r2l=d,r.d2p=function(x){return r.l2p(r.r2c(x))},r.p2d=function(x){return s(b(x))},r.r2p=r.d2p,r.p2r=b,r.cleanPos=function(x){return typeof x=="string"&&x!==""?x:hl(x)}):r.type==="multicategory"&&(r.r2d=r.c2d=r.l2d=s,r.d2r=r.d2l_noadd=v,r.r2c=function(x){var _=v(x);return _!==void 0?_:r.fraction2r(.5)},r.r2c_just_indices=c,r.l2r=r.c2r=hl,r.r2l=v,r.d2p=function(x){return r.l2p(r.r2c(x))},r.p2d=function(x){return s(b(x))},r.r2p=r.d2p,r.p2r=b,r.cleanPos=function(x){return Array.isArray(x)||typeof x=="string"&&x!==""?x:hl(x)},r.setupMultiCategory=function(x){var _=r._traceIndices,k,M,S=r._matchGroup;if(S&&r._categories.length===0){for(var C in S)if(C!==a){var E=t[bm.id2name(C)];_=_.concat(E._traceIndices)}}var P=[[0,{}],[0,{}]],R=[];for(k=0;k<_.length;k++){var I=x[_[k]];if(n in I){var B=I[n],N=I._length||Rt.minRowLength(B);if(wz(B[0])&&wz(B[1]))for(M=0;ME[1]&&(M[C?0:1]=k,S[1]=E[1]),S[0]>=S[1])if(_!==void 0){var P=E[0]+1;k!==void 0&&(P=Math.min(P,E[1])),M[C?0:1]=r.l2r(P)}else k!==void 0&&(M[C?1:0]=r.l2r(E[1]-1))}},r.cleanRange=function(x,_){r._cleanRange(x,_),r.limitRange(x)},r._cleanRange=function(x,_){_||(_={}),x||(x="range");var k=Rt.nestedProperty(r,x).get(),M,S;if(r.type==="date"?S=Rt.dfltRange(r.calendar):n==="y"?S=wm.DFLTRANGEY:r._name==="realaxis"?S=[0,1]:S=_.dfltRange||wm.DFLTRANGEX,S=S.slice(),(r.rangemode==="tozero"||r.rangemode==="nonnegative")&&(S[0]=0),!k||k.length!==2){Rt.nestedProperty(r,x).set(S);return}var C=k[0]===null,E=k[1]===null;for(r.type==="date"&&!r.autorange&&(k[0]=Rt.cleanDate(k[0],Io,r.calendar),k[1]=Rt.cleanDate(k[1],Io,r.calendar)),M=0;M<2;M++)if(r.type==="date"){if(!Rt.isDateTime(k[M],r.calendar)){r[x]=S;break}if(r.r2l(k[0])===r.r2l(k[1])){var P=Rt.constrain(r.r2l(k[0]),Rt.MIN_MS+1e3,Rt.MAX_MS-1e3);k[0]=r.l2r(P-1e3),k[1]=r.l2r(P+1e3);break}}else{if(!vl(k[M]))if(!(C||E)&&vl(k[1-M]))k[M]=k[1-M]*(M?10:.1);else{r[x]=S;break}if(k[M]<-mm?k[M]=-mm:k[M]>mm&&(k[M]=mm),k[0]===k[1]){var R=Math.max(1,Math.abs(k[0]*1e-6));k[0]-=R,k[1]+=R}}},r.setScale=function(x){var _=t._size;if(r.overlaying){var k=bm.getFromId({_fullLayout:t},r.overlaying);r.domain=k.domain}var M=x&&r._r?"_r":"range",S=r.calendar;r.cleanRange(M);var C=r.r2l(r[M][0],S),E=r.r2l(r[M][1],S),P=n==="y";if(P?(r._offset=_.t+(1-r.domain[1])*_.h,r._length=_.h*(r.domain[1]-r.domain[0]),r._m=r._length/(C-E),r._b=-r._m*E):(r._offset=_.l+r.domain[0]*_.w,r._length=_.w*(r.domain[1]-r.domain[0]),r._m=r._length/(E-C),r._b=-r._m*C),r._rangebreaks=[],r._lBreaks=0,r._m2=0,r._B=[],r.rangebreaks){var R,I;if(r._rangebreaks=r.locateBreaks(Math.min(C,E),Math.max(C,E)),r._rangebreaks.length){for(R=0;RE&&(B=!B),B&&r._rangebreaks.reverse();var N=B?-1:1;for(r._m2=N*r._length/(Math.abs(E-C)-r._lBreaks),r._B.push(-r._m2*(P?E:C)),R=0;RS&&(S+=7,CS&&(S+=24,C=M&&C=M&&x=$.min&&(J<$.min&&($.min=J),re>$.max&&($.max=re),le=!1)}le&&E.push({min:J,max:re})}};for(k=0;k{"use strict";var kz=Br(),q6=ke(),kxe=(Kt(),Ne(aa)).BADNUM,Tm=q6.isArrayOrTypedArray,Sxe=q6.isDateTime,qxe=q6.cleanNumber,Sz=Math.round;Lz.exports=function(r,t,a){var n=r,i=a.noMultiCategory;if(Tm(n)&&!n.length)return"-";if(!i&&Pxe(n))return"multicategory";if(i&&Array.isArray(n[0])){for(var o=[],l=0;li*2}function qz(e){return Math.max(1,(e-1)/1e3)}function Exe(e,r){for(var t=e.length,a=qz(t),n=0,i=0,o={},l=0;ln*2}function Pxe(e){return Tm(e[0])&&Tm(e[1])}});var Bh=z((sZe,Nz)=>{"use strict";var Rxe=Pr(),Pz=Br(),Us=ke(),Mm=(Kt(),Ne(aa)).FP_SAFE,Fxe=Ar(),zxe=et(),Rz=Ca(),Nxe=Rz.getFromId,Ixe=Rz.isLinked;Nz.exports={applyAutorangeOptions:zz,getAutoRange:L6,makePadFn:C6,doAutoRange:Oxe,findExtremes:Hxe,concatExtremes:P6};function L6(e,r){var t,a,n=[],i=e._fullLayout,o=C6(i,r,0),l=C6(i,r,1),s=P6(e,r),u=s.min,f=s.max;if(u.length===0||f.length===0)return Us.simpleMap(r.range,r.r2l);var c=u[0].val,v=f[0].val;for(t=1;t0&&(E=w-o(k)-l(M),E>x?P/E>_&&(S=k,C=M,_=P/E):P/w>_&&(S={val:k.val,nopad:1},C={val:M.val,nopad:1},_=P/w));function R(G,V){return Math.max(G,l(V))}if(c===v){var I=c-1,B=c+1;if(b)if(c===0)n=[0,1];else{var N=(c>0?f:u).reduce(R,0),U=c/(1-Math.min(.5,N/w));n=c>0?[0,U]:[U,0]}else T?n=[Math.max(0,I),Math.max(1,B)]:n=[I,B]}else b?(S.val>=0&&(S={val:0,nopad:1}),C.val<=0&&(C={val:0,nopad:1})):T&&(S.val-_*o(S)<0&&(S={val:0,nopad:1}),C.val<=0&&(C={val:1,nopad:1})),_=(C.val-S.val-Cz(r,k.val,M.val))/(w-o(S)-l(C)),n=[S.val-_*o(S),C.val+_*l(C)];return n=zz(n,r),r.limitRange&&r.limitRange(),p&&n.reverse(),Us.simpleMap(n,r.l2r||Number)}function Cz(e,r,t){var a=0;if(e.rangebreaks)for(var n=e.locateBreaks(r,t),i=0;i0?t.ppadplus:t.ppadminus)||t.ppad||0),k=x((e._m>0?t.ppadminus:t.ppadplus)||t.ppad||0),M=x(t.vpadplus||t.vpad),S=x(t.vpadminus||t.vpad);if(!u){if(T=1/0,w=-1/0,s)for(c=0;c0&&(T=v),v>w&&v-Mm&&(T=v),v>w&&v=P;c--)E(c);return{min:a,max:n,opts:t}}function D6(e,r,t,a){Fz(e,r,t,a,Uxe)}function E6(e,r,t,a){Fz(e,r,t,a,Gxe)}function Fz(e,r,t,a,n){for(var i=a.tozero,o=a.extrapad,l=!0,s=0;s=t&&(u.extrapad||!o)){l=!1;break}else n(r,u.val)&&u.pad<=t&&(o||!u.extrapad)&&(e.splice(s,1),s--)}if(l){var f=i&&r===0;e.push({val:r,pad:f?0:t,extrapad:f?!1:o})}}function Ez(e){return Pz(e)&&Math.abs(e)=r}function Yxe(e,r){var t=r.autorangeoptions;return t&&t.minallowed!==void 0&&km(r,t.minallowed,t.maxallowed)?t.minallowed:t&&t.clipmin!==void 0&&km(r,t.clipmin,t.clipmax)?Math.max(e,r.d2l(t.clipmin)):e}function Vxe(e,r){var t=r.autorangeoptions;return t&&t.maxallowed!==void 0&&km(r,t.minallowed,t.maxallowed)?t.maxallowed:t&&t.clipmax!==void 0&&km(r,t.clipmin,t.clipmax)?Math.min(e,r.d2l(t.clipmax)):e}function km(e,r,t){return r!==void 0&&t!==void 0?(r=e.d2l(r),t=e.d2l(t),r=s&&(i=s,t=s),o<=s&&(o=s,a=s)}}return t=Yxe(t,r),a=Vxe(a,r),[t,a]}});var jr=z((fZe,iN)=>{"use strict";var Wi=Pr(),wa=Br(),s0=_a(),Hh=Ar(),Sr=ke(),u0=Sr.strTranslate,sf=Da(),jxe=o0(),Uh=qr(),_i=et(),Wxe=ji(),Iz=a6(),uZe=(Ha(),Ne(Oa)),cn=(Kt(),Ne(aa)),Xxe=cn.ONEMAXYEAR,Lm=cn.ONEAVGYEAR,Cm=cn.ONEMINYEAR,Zxe=cn.ONEMAXQUARTER,N6=cn.ONEAVGQUARTER,Dm=cn.ONEMINQUARTER,$xe=cn.ONEMAXMONTH,f0=cn.ONEAVGMONTH,Em=cn.ONEMINMONTH,wi=cn.ONEWEEK,Cn=cn.ONEDAY,Gs=Cn/2,pl=cn.ONEHOUR,Gh=cn.ONEMIN,Pm=cn.ONESEC,Jxe=cn.ONEMILLI,Kxe=cn.ONEMICROSEC,uf=cn.MINUS_SIGN,Fm=cn.BADNUM,I6={K:"zeroline"},B6={K:"gridline",L:"path"},O6={K:"minor-gridline",L:"path"},Zz={K:"tick",L:"path"},Bz={K:"tick",L:"text"},Oz={width:["x","r","l","xl","xr"],height:["y","t","b","yt","yb"],right:["r","xr"],left:["l","xl"],top:["t","yt"],bottom:["b","yb"]},zm=(un(),Ne(sn)),Oh=zm.MID_SHIFT,ff=zm.CAP_SHIFT,Yh=zm.LINE_SPACING,Qxe=zm.OPPOSITE_SIDE,Rm=3,Ye=iN.exports={};Ye.setConvert=l0();var e5e=Am(),ml=Ca(),r5e=ml.idSort,t5e=ml.isLinked;Ye.id2name=ml.id2name;Ye.name2id=ml.name2id;Ye.cleanId=ml.cleanId;Ye.list=ml.list;Ye.listIds=ml.listIds;Ye.getFromId=ml.getFromId;Ye.getFromTrace=ml.getFromTrace;var $z=Bh();Ye.getAutoRange=$z.getAutoRange;Ye.findExtremes=$z.findExtremes;var a5e=1e-4;function Y6(e){var r=(e[1]-e[0])*a5e;return[e[0]-r,e[1]+r]}function n5e(e,r,t){if(![t,e,r].every(wa)||t===0)return e;let a=Math.round((e-r)/t),n=r+a*t;return e!==n&&Math.abs(e-n)v+" domain")),s=s.concat(i||[]),f.length>o?(Sr.warn("Array attribute "+u+" has more entries than expected, truncating to "+o),f=f.slice(0,o)):f.length2e-6||((t-e._forceTick0)/e._minDtick%1+1.000001)%1>2e-6)&&(e._minDtick=0))};Ye.saveRangeInitial=function(e,r){for(var t=Ye.list(e,"",!0),a=!1,n=0;nc*.3||u(a)||u(n))){var v=t.dtick/2;e+=e+vo){var l=Number(t.slice(1));i.exactYears>o&&l%12===0?e=Ye.tickIncrement(e,"M6","reverse")+Cn*1.5:i.exactMonths>o?e=Ye.tickIncrement(e,"M1","reverse")+Cn*15.5:e-=Gs;var s=Ye.tickIncrement(e,t);if(s<=a)return s}return e}Ye.prepMinorTicks=function(e,r,t){var c,v;if(!((c=r.minor)!=null&&c.dtick)){delete e.dtick;var a=r.dtick&&wa(r._tmin),n;if(a){var i=Ye.tickIncrement(r._tmin,r.dtick,!0);n=[r._tmin,i*.99+r._tmin*.01]}else{var o=Sr.simpleMap(r.range,r.r2l);n=[o[0],.8*o[0]+.2*o[1]]}if(e.range=Sr.simpleMap(n,r.l2r),e._isMinor=!0,Ye.prepTicks(e,t),a){var l=wa(r.dtick),s=wa(e.dtick),u=l?r.dtick:+r.dtick.substring(1),f=s?e.dtick:+e.dtick.substring(1);l&&s?R6(u,f)?u===2*wi&&f===2*Cn&&(e.dtick=wi):u===2*wi&&f===3*Cn?e.dtick=wi:u===wi&&!(r._input.minor||{}).nticks?e.dtick=Cn:Gz(u/f,2.5)?e.dtick=u/2:e.dtick=u:String(r.dtick).charAt(0)==="M"?s?e.dtick="M1":R6(u,f)?u>=12&&f===2&&(e.dtick="M3"):e.dtick=r.dtick:String(e.dtick).charAt(0)==="L"?String(r.dtick).charAt(0)==="L"?R6(u,f)||(e.dtick=Gz(u/f,2.5)?r.dtick/2:r.dtick):e.dtick="D1":e.dtick==="D2"&&+r.dtick>1&&(e.dtick=1)}e.range=r.range}((v=r.minor)==null?void 0:v._tick0Init)===void 0&&(e.tick0=r.tick0),r._useTicklabelIndex&&(V6(e),r.minor._tickround=e._tickround)};function R6(e,r){return Math.abs((e/r+.5)%1-.5)<.001}function Gz(e,r){return Math.abs(e/r-1)<.001}Ye.prepTicks=function(e,r){var t=Sr.simpleMap(e.range,e.r2l,void 0,void 0,r);if(e.tickmode==="auto"||!e.dtick){var a=e.nticks,n;a||(e.type==="category"||e.type==="multicategory"?(n=e.tickfont?Sr.bigFont(e.tickfont.size||12):15,a=e._length/n):(n=e._id.charAt(0)==="y"?40:80,a=Sr.constrain(e._length/n,4,9)+1),e._name==="radialaxis"&&(a*=2)),e.minor&&e.minor.tickmode!=="array"||e.tickmode==="array"&&(a*=100),e._roughDTick=Math.abs(t[1]-t[0])/a,Ye.autoTicks(e,e._roughDTick),e._minDtick>0&&e.dtick0?(l=a-1,s=a):(l=a,s=a),i=e[l].value,o=e[s].value}var u=Math.abs(o-i),f=t||u,c=0;e[a].periodEndTick!=null?c=u:f>=Cm?u>=Cm&&u<=Xxe?c=u:c=Lm:t===N6&&f>=Dm?u>=Dm&&u<=Zxe?c=u:c=N6:f>=Em?u>=Em&&u<=$xe?c=u:c=f0:t===wi&&f>=wi?c=wi:f>=Cn?c=Cn:t===Gs&&f>=Gs?c=Gs:t===pl&&f>=pl&&(c=pl);var v;c>=u&&(c=u,v=!0);var d=n+c;if(r.rangebreaks&&c>0){for(var p=84,m=0,y=0;ywi&&(c=u)}(c>0||a===0)&&(e[a].periodX=n+c/2)}}Ye.calcTicks=function(r,t){var a=r.type,n=r.calendar,i=r.ticklabelstep,o=r.ticklabelmode==="period",l=r.range[0]>r.range[1],s=!r.ticklabelindex||Sr.isArrayOrTypedArray(r.ticklabelindex)?r.ticklabelindex:[r.ticklabelindex];r._useTicklabelIndex=s!=null&&s!==0;for(var u=Sr.simpleMap(r.range,r.r2l,void 0,void 0,t),f=u[1]=(x?0:1);_--){var k=!_;_?(r._dtickInit=r.dtick,r._tick0Init=r.tick0):x&&(r.minor._dtickInit=r.minor.dtick,r.minor._tick0Init=r.minor.tick0);var M=_?r:Sr.extendFlat({},r,x?r.minor:{minor:{}});if(k?Ye.prepMinorTicks(M,r,t):Ye.prepTicks(M,t),M.tickmode==="array"){_?(y=[],p=Yz(r,!k)):(b=[],m=Yz(r,!k));continue}if(M.tickmode==="sync"){y=[],p=f5e(r);continue}var S=Y6(u),C=S[0],E=S[1],P=wa(M.dtick),R=a==="log"&&!(P||M.dtick.charAt(0)==="L"),I=Ye.tickFirst(M,t);if(_){if(r._tmin=I,I=E:N<=E;N=Ye.tickIncrement(N,V,f,n)){if(_&&U++,M.rangebreaks&&!f){if(N=v)break}if(y.length>d||N===B)break;B=N;var W={value:n5e(N,j,V)};_?(N===I&&(W.first=!0),R&&N!==(N|0)&&(W.simpleLabel=!0),i>1&&U%i&&(W.skipLabel=!0),y.push(W)):(W.minor=!0,b.push(W))}}function Y(Me,Le){let Se=Le.find(qe=>qe.value===Me.value);if(Se!=null)return Se;let Ee=1e7;for(let qe=0;qeY(Se,y)==null),Le=y.concat(Me).sort((Se,Ee)=>Se.value-Ee.value);o&&y.length&&(y[0].skipLabel=!0),y.forEach(function(Se){Se.skipLabel||(s.forEach(Ee=>{if(Ee<0){let qe=Le.filter(Ke=>Ke.value<=Se.value),Ue=Math.abs(Ee),Je=qe.length-Ue-1;if(UeUe.value>=Se.value);if(EeSe.skipLabel=!1)}if(w){var J=r.minor.ticks==="inside"&&r.ticks==="outside"||r.minor.ticks==="outside"&&r.ticks==="inside";if(!J){for(var re=[],le=0;le-1;ne--){if(y[ne].drop){y.splice(ne,1);continue}y[ne].value=z6(y[ne].value,r);var ge=r.c2p(y[ne].value);($?te>ge-ce:tev||Eev&&(Se.periodX=v),Een&&pn&&yLm)r/=Lm,a=n(10),e.dtick="M"+12*dl(r,a,Sm);else if(i>f0)r/=f0,e.dtick="M"+dl(r,1,Vz);else if(i>Cn){if(e.dtick=dl(r,Cn,e._hasDayOfWeekBreaks?[1,2,7,14]:c5e),!t){var o=Ye.getTickFormat(e),l=e.ticklabelmode==="period";l&&(e._rawTick0=e.tick0),/%[uVW]/.test(o)?e.tick0=Sr.dateTick0(e.calendar,2):e.tick0=Sr.dateTick0(e.calendar,1),l&&(e._dowTick0=e.tick0)}}else i>pl?e.dtick=dl(r,pl,Vz):i>Gh?e.dtick=dl(r,Gh,jz):i>Pm?e.dtick=dl(r,Pm,jz):(a=n(10),e.dtick=dl(r,a,Sm))}else if(e.type==="log"){e.tick0=0;var s=Sr.simpleMap(e.range,e.r2l);if(e._isMinor&&(r*=1.5),r>.7)e.dtick=Math.ceil(r);else if(Math.abs(s[1]-s[0])<1){var u=1.5*Math.abs((s[1]-s[0])/r);r=Math.abs(Math.pow(10,s[1])-Math.pow(10,s[0]))/u,a=n(10),e.dtick="L"+dl(r,a,Sm)}else e.dtick=r>.3?"D2":"D1"}else e.type==="category"||e.type==="multicategory"?(e.tick0=0,e.dtick=Math.ceil(Math.max(r,1))):Z6(e)?(e.tick0=0,a=1,e.dtick=dl(r,a,v5e)):(e.tick0=0,a=n(10),e.dtick=dl(r,a,Sm));if(e.dtick===0&&(e.dtick=1),!wa(e.dtick)&&typeof e.dtick!="string"){var f=e.dtick;throw e.dtick=1,"ax.dtick error: "+String(f)}};function V6(e){var r=e.dtick;if(e._tickexponent=0,!wa(r)&&typeof r!="string"&&(r=1),(e.type==="category"||e.type==="multicategory")&&(e._tickround=null),e.type==="date"){var t=e.r2l(e.tick0),a=e.l2r(t).replace(/(^-|i)/g,""),n=a.length;if(String(r).charAt(0)==="M")n>10||a.slice(5)!=="01-01"?e._tickround="d":e._tickround=+r.slice(1)%12===0?"y":"m";else if(r>=Cn&&n<=10||r>=Cn*15)e._tickround="d";else if(r>=Gh&&n<=16||r>=pl)e._tickround="M";else if(r>=Pm&&n<=19||r>=Gh)e._tickround="S";else{var i=e.l2r(t+r).replace(/^-/,"").length;e._tickround=Math.max(n,i)-20,e._tickround<0&&(e._tickround=4)}}else if(wa(r)||r.charAt(0)==="L"){var o=e.range.map(e.r2d||Number);wa(r)||(r=Number(r.slice(1))),e._tickround=2-Math.floor(Math.log(r)/Math.LN10+.01);var l=Math.max(Math.abs(o[0]),Math.abs(o[1])),s=Math.floor(Math.log(l)/Math.LN10+.01),u=e.minexponent===void 0?3:e.minexponent;Math.abs(s)>u&&(c0(e.exponentformat)&&e.exponentformat!=="SI extended"&&!j6(s)||c0(e.exponentformat)&&e.exponentformat==="SI extended"&&!W6(s)?e._tickexponent=3*Math.round((s-1)/3):e._tickexponent=s)}else e._tickround=null}Ye.tickIncrement=function(e,r,t,a){var n=t?-1:1;if(wa(r))return Sr.increment(e,n*r);var i=r.charAt(0),o=n*Number(r.slice(1));if(i==="M")return Sr.incrementMonth(e,o,a);if(i==="L")return Math.log(Math.pow(10,e)+o)/Math.LN10;if(i==="D"){var l=r==="D2"?Qz:Kz,s=e+n*.01,u=Sr.roundUp(Sr.mod(s,1),l,t);return Math.floor(s)+Math.log(Wi.round(Math.pow(10,u),1))/Math.LN10}throw"unrecognized dtick "+String(r)};Ye.tickFirst=function(e,r){var t=e.r2l||Number,a=Sr.simpleMap(e.range,t,void 0,void 0,r),n=a[1]=0&&x<=e._length?w:null};if(s&&Sr.isArrayOrTypedArray(e.ticktext)){var p=Sr.simpleMap(e.range,e.r2l),m=(Math.abs(p[1]-p[0])-(e._lBreaks||0))/1e4;for(v=0;v"+l;else{var u=jh(e),f=e._trueSide||e.side;(!u&&f==="top"||u&&f==="bottom")&&(o+="
")}r.text=o}function d5e(e,r,t,a,n){var i=e.dtick,o=r.x,l=e.tickformat,s=typeof i=="string"&&i.charAt(0);if(n==="never"&&(n=""),a&&s!=="L"&&(i="L3",s="L"),l||s==="L")r.text=Vh(Math.pow(10,o),e,n,a);else if(wa(i)||s==="D"&&(e.minorloglabels==="complete"||Sr.mod(o+.01,1)<.1)){var u;e.minorloglabels==="complete"&&!(Sr.mod(o+.01,1)<.1)&&(u=!0,r.fontSize*=.75);var f=Math.pow(10,o).toExponential(0),c=f.split("e"),v=+c[1],d=Math.abs(v),p=e.exponentformat;p==="power"||c0(p)&&p!=="SI extended"&&j6(v)||c0(p)&&p==="SI extended"&&W6(v)?(r.text=c[0],d>0&&(r.text+="x10"),r.text==="1x10"&&(r.text="10"),v!==0&&v!==1&&(r.text+=""+(v>0?"":uf)+d+""),r.fontSize*=1.25):(p==="e"||p==="E")&&d>2?r.text=c[0]+p+(v>0?"+":uf)+d:(r.text=Vh(Math.pow(10,o),e,"","fakehover"),i==="D1"&&e._id.charAt(0)==="y"&&(r.dy-=r.fontSize/6))}else if(s==="D")r.text=e.minorloglabels==="none"?"":String(Math.round(Math.pow(10,Sr.mod(o,1)))),r.fontSize*=.75;else throw"unrecognized dtick "+String(i);if(e.dtick==="D1"){var m=String(r.text).charAt(0);(m==="0"||m==="1")&&(e._id.charAt(0)==="y"?r.dx-=r.fontSize/4:(r.dy+=r.fontSize/2,r.dx+=(e.range[1]>e.range[0]?1:-1)*r.fontSize*(o<0?.5:.25)))}}function p5e(e,r){var t=e._categories[Math.round(r.x)];t===void 0&&(t=""),r.text=String(t)}function m5e(e,r,t){var a=Math.round(r.x),n=e._categories[a]||[],i=n[1]===void 0?"":String(n[1]),o=n[0]===void 0?"":String(n[0]);t?r.text=o+" - "+i:(r.text=i,r.text2=o)}function y5e(e,r,t,a,n){n==="never"?n="":e.showexponent==="all"&&Math.abs(r.x/e.dtick)<1e-6&&(n="hide"),r.text=Vh(r.x,e,n,a)}function g5e(e,r,t,a,n){if(e.thetaunit==="radians"&&!t){var i=r.x/180;if(i===0)r.text="0";else{var o=b5e(i);if(o[1]>=100)r.text=Vh(Sr.deg2rad(r.x),e,n,a);else{var l=r.x<0;o[1]===1?o[0]===1?r.text="\u03C0":r.text=o[0]+"\u03C0":r.text=["",o[0],"","\u2044","",o[1],"","\u03C0"].join(""),l&&(r.text=uf+r.text)}}}else r.text=Vh(r.x,e,n,a)}function b5e(e){function r(l,s){return Math.abs(l-s)<=1e-6}function t(l,s){return r(s,0)?l:t(s,l%s)}function a(l){for(var s=1;!r(Math.round(l*s)/s,l);)s*=10;return s}var n=a(e),i=e*n,o=Math.abs(t(i,n));return[Math.round(i/o),Math.round(n/o)]}var rN=["f","p","n","\u03BC","m","","k","M","G","T"],x5e=["q","r","y","z","a",...rN,"P","E","Z","Y","R","Q"],c0=e=>["SI","SI extended","B"].includes(e);function j6(e){return e>14||e<-15}function W6(e){return e>32||e<-30}function _5e(e,r){return c0(r)?!!(r==="SI extended"&&W6(e)||r!=="SI extended"&&j6(e)):!1}function Vh(e,r,t,a){var n=e<0,i=r._tickround,o=t||r.exponentformat||"B",l=r._tickexponent,s=Ye.getTickFormat(r),u=r.separatethousands;if(a){var f={exponentformat:o,minexponent:r.minexponent,dtick:r.showexponent==="none"?r.dtick:wa(e)&&Math.abs(e)||1,range:r.showexponent==="none"?r.range.map(r.r2d):[0,e||1]};V6(f),i=(Number(f._tickround)||0)+4,l=f._tickexponent,r.hoverformat&&(s=r.hoverformat)}if(s)return r._numFormat(s)(e).replace(/-/g,uf);o==="none"&&(l=0),e=Math.abs(e);let c=Math.pow(10,-i)/2;if(e"+v+"":o==="B"&&l===9?e+="B":c0(o)&&(e+=o==="SI extended"?x5e[l/3+10]:rN[l/3+5])}return n?uf+e:e}Ye.getTickFormat=function(e){var r;function t(s){return typeof s!="string"?s:Number(s.replace("M",""))*f0}function a(s,u){var f=["L","D"];if(typeof s==typeof u){if(typeof s=="number")return s-u;var c=f.indexOf(s.charAt(0)),v=f.indexOf(u.charAt(0));return c===v?Number(s.replace(/(L|D)/g,""))-Number(u.replace(/(L|D)/g,"")):c-v}else return typeof s=="number"?1:-1}function n(s,u,f){var c=f||function(p){return p},v=u[0],d=u[1];return(!v&&typeof v!="number"||c(v)<=c(s))&&(!d&&typeof d!="number"||c(d)>=c(s))}function i(s,u){var f=u[0]===null,c=u[1]===null,v=a(s,u[0])>=0,d=a(s,u[1])<=0;return(f||v)&&(c||d)}var o,l;if(e.tickformatstops&&e.tickformatstops.length>0)switch(e.type){case"date":case"linear":{for(r=0;r=0&&n.unshift(n.splice(f,1).shift())}});var l={false:{left:0,right:0}};return Sr.syncOrAsync(n.map(function(s){return function(){if(s){var u=Ye.getFromId(e,s);t||(t={}),t.axShifts=l,t.overlayingShiftedAx=o;var f=Ye.drawOne(e,u,t);return u._shiftPusher&&G6(u,u._fullDepth||0,l,!0),u._r=u.range.slice(),u._rl=Sr.simpleMap(u._r,u.r2l),f}}}))};Ye.drawOne=function(e,r,t){t=t||{};var a=t.axShifts||{},n=t.overlayingShiftedAx||[],i,o,l;r.setScale();var s=e._fullLayout,u=r._id,f=u.charAt(0),c=Ye.counterLetter(u),v=s._plots[r._mainSubplot],d=r.zerolinelayer==="above traces";if(!v)return;if(r._shiftPusher=r.autoshift||n.indexOf(r._id)!==-1||n.indexOf(r.overlaying)!==-1,r._shiftPusher&r.anchor==="free"){var p=r.linewidth/2||0;r.ticks==="inside"&&(p+=r.ticklen),G6(r,p,a,!0),G6(r,r.shift||0,a,!1)}(t.skipTitle!==!0||r._shift===void 0)&&(r._shift=R5e(r,a));var m=v[f+"axislayer"],y=r._mainLinePosition,b=y+=r._shift,T=r._mainMirrorPosition,w=r._vals=Ye.calcTicks(r),x=[r.mirror,b,T].join("_");for(i=0;i0?De.bottom-Je:0,Ke))));var be=0,Ge=0;if(r._shiftPusher&&(be=Math.max(Ke,De.height>0?qe==="l"?Je-De.left:De.right-Je:0),r.title.text!==s._dfltTitle[f]&&(Ge=(r._titleStandoff||0)+(r._titleScoot||0),qe==="l"&&(Ge+=Xz(r))),r._fullDepth=Math.max(be,Ge)),r.automargin){Be={x:0,y:0,r:0,l:0,t:0,b:0};var sr=[0,1],vr=typeof r._shift=="number"?r._shift:0;if(f==="x"){if(qe==="b"?Be[qe]=r._depth:(Be[qe]=r._depth=Math.max(De.width>0?Je-De.top:0,Ke),sr.reverse()),De.width>0){var ue=De.right-(r._offset+r._length);ue>0&&(Be.xr=1,Be.r=ue);var xe=r._offset-De.left;xe>0&&(Be.xl=0,Be.l=xe)}}else if(qe==="l"?(r._depth=Math.max(De.height>0?Je-De.left:0,Ke),Be[qe]=r._depth-vr):(r._depth=Math.max(De.height>0?De.right-Je:0,Ke),Be[qe]=r._depth+vr,sr.reverse()),De.height>0){var Ie=De.bottom-(r._offset+r._length);Ie>0&&(Be.yb=0,Be.b=Ie);var We=r._offset-De.top;We>0&&(Be.yt=1,Be.t=We)}Be[c]=r.anchor==="free"?r.position:r._anchorAxis.domain[sr[0]],r.title.text!==s._dfltTitle[f]&&(Be[qe]+=Xz(r)+(r.title.standoff||0)),r.mirror&&r.anchor!=="free"&&(er={x:0,y:0,r:0,l:0,t:0,b:0},er[Ue]=r.linewidth,r.mirror&&r.mirror!==!0&&(er[Ue]+=Ke),r.mirror===!0||r.mirror==="ticks"?er[c]=r._anchorAxis.domain[sr[1]]:(r.mirror==="all"||r.mirror==="allticks")&&(er[c]=[r._counterDomainMin,r._counterDomainMax][sr[1]]))}Ee&&(ae=Hh.getComponentMethod("rangeslider","autoMarginOpts")(e,r)),typeof r.automargin=="string"&&(Wz(Be,r.automargin),Wz(er,r.automargin)),s0.autoMargin(e,X6(r),Be),s0.autoMargin(e,aN(r),er),s0.autoMargin(e,nN(r),ae)}),Sr.syncOrAsync(Le)}};function Wz(e,r){if(e){var t=Object.keys(Oz).reduce(function(a,n){return r.indexOf(n)!==-1&&Oz[n].forEach(function(i){a[i]=1}),a},{});Object.keys(e).forEach(function(a){t[a]||(a.length===1?e[a]=0:delete e[a])})}}function w5e(e,r){var t=[],a,n=function(i,o){var l=i.xbnd[o];l!==null&&t.push(Sr.extendFlat({},i,{x:l}))};if(r.length){for(a=0;ae.range[1],l=e.ticklabelposition&&e.ticklabelposition.indexOf("inside")!==-1,s=!l;if(t){var u=o?-1:1;t=t*u}if(a){var f=e.side,c=l&&(f==="top"||f==="left")||s&&(f==="bottom"||f==="right")?1:-1;a=a*c}return e._id.charAt(0)==="x"?function(v){return u0(n+e._offset+e.l2p(H6(v))+t,i+a)}:function(v){return u0(i+a,n+e._offset+e.l2p(H6(v))+t)}};function H6(e){return e.periodX!==void 0?e.periodX:e.x}function k5e(e){var r=e.ticklabelposition||"",t=e.tickson||"",a=function(p){return r.indexOf(p)!==-1},n=a("top"),i=a("left"),o=a("right"),l=a("bottom"),s=a("inside"),u=t!=="boundaries"&&(l||i||n||o);if(!u&&!s)return[0,0];var f=e.side,c=u?(e.tickwidth||0)/2:0,v=Rm,d=e.tickfont?e.tickfont.size:12;return(l||n)&&(c+=d*ff,v+=(e.linewidth||0)/2),(i||o)&&(c+=(e.linewidth||0)/2,v+=Rm),s&&f==="top"&&(v-=d*(1-ff)),(i||n)&&(c=-c),(f==="bottom"||f==="right")&&(v=-v),[u?c:0,s?v:0]}Ye.makeTickPath=function(e,r,t,a){a||(a={});var n=a.minor;if(n&&!e.minor)return"";var i=a.len!==void 0?a.len:n?e.minor.ticklen:e.ticklen,o=e._id.charAt(0),l=(e.linewidth||1)/2;return o==="x"?"M0,"+(r+l*t)+"v"+i*t:"M"+(r+l*t)+",0h"+i*t};Ye.makeLabelFns=function(e,r,t){var a=e.ticklabelposition||"",n=e.tickson||"",i=function(I){return a.indexOf(I)!==-1},o=i("top"),l=i("left"),s=i("right"),u=i("bottom"),f=n!=="boundaries"&&(u||l||o||s),c=i("inside"),v=a==="inside"&&e.ticks==="inside"||!c&&e.ticks==="outside"&&n!=="boundaries",d=0,p=0,m=v?e.ticklen:0;if(c?m*=-1:f&&(m=0),v&&(d+=m,t)){var y=Sr.deg2rad(t);d=m*Math.cos(y)+1,p=m*Math.sin(y)}e.showticklabels&&(v||e.showline)&&(d+=.2*e.tickfont.size),d+=(e.linewidth||1)/2*(c?-1:1);var b={labelStandoff:d,labelShift:p},T,w,x,_,k=0,M=e.side,S=e._id.charAt(0),C=e.tickangle,E;if(S==="x")E=!c&&M==="bottom"||c&&M==="top",_=E?1:-1,c&&(_*=-1),T=p*_,w=r+d*_,x=E?1:-.2,Math.abs(C)===90&&(c?x+=Oh:C===-90&&M==="bottom"?x=ff:C===90&&M==="top"?x=Oh:x=.5,k=Oh/2*(C/90)),b.xFn=function(I){return I.dx+T+k*I.fontSize},b.yFn=function(I){return I.dy+w+I.fontSize*x},b.anchorFn=function(I,B){if(f){if(l)return"end";if(s)return"start"}return!wa(B)||B===0||B===180?"middle":B*_<0!==c?"end":"start"},b.heightFn=function(I,B,N){return B<-60||B>60?-.5*N:e.side==="top"!==c?-N:0};else if(S==="y"){if(E=!c&&M==="left"||c&&M==="right",_=E?1:-1,c&&(_*=-1),T=d,w=p*_,x=0,!c&&Math.abs(C)===90&&(C===-90&&M==="left"||C===90&&M==="right"?x=ff:x=.5),c){var P=wa(C)?+C:0;if(P!==0){var R=Sr.deg2rad(P);k=Math.abs(Math.sin(R))*ff*_,x=0}}b.xFn=function(I){return I.dx+r-(T+I.fontSize*x)*_+k*I.fontSize},b.yFn=function(I){return I.dy+w+I.fontSize*Oh},b.anchorFn=function(I,B){return wa(B)&&Math.abs(B)===90?"middle":E?"end":"start"},b.heightFn=function(I,B,N){return e.side==="right"&&(B*=-1),B<-30?-N:B<30?-.5*N:0}}return b};function Nm(e){return[e.text,e.x,e.axInfo,e.font,e.fontSize,e.fontColor].join("_")}Ye.drawTicks=function(e,r,t){t=t||{};var a=r._id+"tick",n=[].concat(r.minor&&r.minor.ticks?t.vals.filter(function(o){return o.minor&&!o.noTick}):[]).concat(r.ticks?t.vals.filter(function(o){return!o.minor&&!o.noTick}):[]),i=t.layer.selectAll("path."+a).data(n,Nm);i.exit().remove(),i.enter().append("path").classed(a,1).classed("ticks",1).classed("crisp",t.crisp!==!1).each(function(o){return Uh.stroke(Wi.select(this),o.minor?r.minor.tickcolor:r.tickcolor)}).style("stroke-width",function(o){return _i.crispRound(e,o.minor?r.minor.tickwidth:r.tickwidth,1)+"px"}).attr("d",t.path).style("display",null),Im(r,[Zz]),i.attr("transform",t.transFn)};Ye.drawGrid=function(e,r,t){if(t=t||{},r.tickmode!=="sync"){var a=r._id+"grid",n=r.minor&&r.minor.showgrid,i=n?t.vals.filter(function(b){return b.minor}):[],o=r.showgrid?t.vals.filter(function(b){return!b.minor}):[],l=t.counterAxis;if(l&&Ye.shouldShowZeroLine(e,r,l))for(var s=r.tickmode==="array",u=0;u=0;p--){var m=p?v:d;if(m){var y=m.selectAll("path."+a).data(p?o:i,Nm);y.exit().remove(),y.enter().append("path").classed(a,1).classed("crisp",t.crisp!==!1),y.attr("transform",t.transFn).attr("d",t.path).each(function(b){return Uh.stroke(Wi.select(this),b.minor?r.minor.gridcolor:r.gridcolor||"#ddd")}).style("stroke-dasharray",function(b){return _i.dashStyle(b.minor?r.minor.griddash:r.griddash,b.minor?r.minor.gridwidth:r.gridwidth)}).style("stroke-width",function(b){return(b.minor?c:r._gw)+"px"}).style("display",null),typeof t.path=="function"&&y.attr("d",t.path)}}Im(r,[B6,O6])}};Ye.drawZeroLine=function(e,r,t){t=t||t;var a=r._id+"zl",n=Ye.shouldShowZeroLine(e,r,t.counterAxis),i=t.layer.selectAll("path."+a).data(n?[{x:0,id:r._id}]:[]);i.exit().remove(),i.enter().append("path").classed(a,1).classed("zl",1).classed("crisp",t.crisp!==!1).each(function(){t.layer.selectAll("path").sort(function(o,l){return r5e(o.id,l.id)})}),i.attr("transform",t.transFn).attr("d",t.path).call(Uh.stroke,r.zerolinecolor||Uh.defaultLine).style("stroke-width",_i.crispRound(e,r.zerolinewidth,r._gw||1)+"px").style("display",null),Im(r,[I6])};Ye.drawLabels=function(e,r,t){t=t||{};var a=e._fullLayout,n=r._id,i=r.zerolinelayer==="above traces",o=t.cls||n+"tick",l=t.vals.filter(function(j){return j.text}),s=t.labelFns,u=t.secondary?0:r.tickangle,f=(r._prevTickAngles||{})[o],c=t.layer.selectAll("g."+o).data(r.showticklabels?l:[],Nm),v=[];c.enter().append("g").classed(o,1).append("text").attr("text-anchor","middle").each(function(j){var W=Wi.select(this),Y=e._promises.length;W.call(sf.positionText,s.xFn(j),s.yFn(j)).call(_i.font,{family:j.font,size:j.fontSize,color:j.fontColor,weight:j.fontWeight,style:j.fontStyle,variant:j.fontVariant,textcase:j.fontTextcase,lineposition:j.fontLineposition,shadow:j.fontShadow}).text(j.text).call(sf.convertToTspans,e),e._promises[Y]?v.push(e._promises.pop().then(function(){d(W,u)})):d(W,u)}),Im(r,[Bz]),c.exit().remove(),t.repositionOnUpdate&&c.each(function(j){Wi.select(this).select("text").call(sf.positionText,s.xFn(j),s.yFn(j))});function d(j,W){j.each(function(Y){var J=Wi.select(this),re=J.select(".text-math-group"),le=s.anchorFn(Y,W),ne=t.transFn.call(J.node(),Y)+(wa(W)&&+W!=0?" rotate("+W+","+s.xFn(Y)+","+(s.yFn(Y)-Y.fontSize/2)+")":""),$=sf.lineCount(J),ce=Yh*Y.fontSize,te=s.heightFn(Y,wa(W)?+W:0,($-1)*ce);if(te&&(ne+=u0(0,te)),re.empty()){var ge=J.select("text");ge.attr({transform:ne,"text-anchor":le}),ge.style("display",null),r._adjustTickLabelsOverflow&&r._adjustTickLabelsOverflow()}else{var se=_i.bBox(re.node()).width,oe=se*{end:-.5,start:.5}[le];re.attr("transform",ne+u0(oe,0))}})}r._adjustTickLabelsOverflow=function(){var j=r.ticklabeloverflow;if(!(!j||j==="allow")){var W=j.indexOf("hide")!==-1,Y=r._id.charAt(0)==="x",J=0,re=Y?e._fullLayout.width:e._fullLayout.height;if(j.indexOf("domain")!==-1){var le=Sr.simpleMap(r.range,r.r2l);J=r.l2p(le[0])+r._offset,re=r.l2p(le[1])+r._offset}var ne=Math.min(J,re),$=Math.max(J,re),ce=r.side,te=1/0,ge=-1/0;c.each(function(Pe){var me=Wi.select(this),Ce=me.select(".text-math-group");if(Ce.empty()){var Me=_i.bBox(me.node()),Le=0;Y?(Me.right>$||Me.left$||Me.top+(r.tickangle?0:Pe.fontSize/4)r["_visibleLabelMin_"+le._id]?me.style("display","none"):$.K==="tick"&&!ne&&me.node().style.display!=="none"&&me.style("display",null)})})})})},d(c,f+1?f:u);function p(){return v.length&&Promise.all(v)}var m=null;function y(){if(d(c,u),l.length&&r.autotickangles&&(r.type!=="log"||String(r.dtick).charAt(0)!=="D")){m=r.autotickangles[0];var j=0,W=[],Y,J=1;c.each(function(Be){j=Math.max(j,Be.fontSize);var er=r.l2p(Be.x),ae=U6(this),be=_i.bBox(ae.node());J=Math.max(J,sf.lineCount(ae)),W.push({top:0,bottom:10,height:10,left:er-be.width/2,right:er+be.width/2+2,width:be.width+2})});var re=(r.tickson==="boundaries"||r.showdividers)&&!t.secondary,le=l.length,ne=Math.abs((l[le-1].x-l[0].x)*r._m)/(le-1),$=re?ne/2:ne,ce=re?r.ticklen:j*1.25*J,te=Math.sqrt(Math.pow($,2)+Math.pow(ce,2)),ge=$/te,se=r.autotickangles.map(function(Be){return Be*Math.PI/180}),oe=se.find(function(Be){return Math.abs(Math.cos(Be))<=ge});oe===void 0&&(oe=se.reduce(function(Be,er){return Math.abs(Math.cos(Be))U*N&&(R=N,C[S]=E[S]=I[S])}var G=Math.abs(R-P);G-_>0?(G-=_,_*=1+_/G):_=0,r._id.charAt(0)!=="y"&&(_=-_),C[M]=w.p2r(w.r2p(E[M])+k*_),w.autorange==="min"||w.autorange==="max reversed"?(C[0]=null,w._rangeInitial0=void 0,w._rangeInitial1=void 0):(w.autorange==="max"||w.autorange==="min reversed")&&(C[1]=null,w._rangeInitial0=void 0,w._rangeInitial1=void 0),a._insideTickLabelsUpdaterange[w._name+".range"]=C}var V=Sr.syncOrAsync(b);return V&&V.then&&e._promises.push(V),V};function S5e(e,r,t){var a=r._id+"divider",n=t.vals,i=t.layer.selectAll("path."+a).data(n,Nm);i.exit().remove(),i.enter().insert("path",":first-child").classed(a,1).classed("crisp",1).call(Uh.stroke,r.dividercolor).style("stroke-width",_i.crispRound(e,r.dividerwidth,1)+"px"),i.attr("transform",t.transFn).attr("d",t.path)}Ye.getPxPosition=function(e,r){var t=e._fullLayout._size,a=r._id.charAt(0),n=r.side,i;if(r.anchor!=="free"?i=r._anchorAxis:a==="x"?i={_offset:t.t+(1-(r.position||0))*t.h,_length:0}:a==="y"&&(i={_offset:t.l+(r.position||0)*t.w+r._shift,_length:0}),n==="top"||n==="left")return i._offset;if(n==="bottom"||n==="right")return i._offset+i._length};function Xz(e){var r=e.title.font.size,t=(e.title.text.match(sf.BR_TAG_ALL)||[]).length;return e.title.hasOwnProperty("standoff")?r*(ff+t*Yh):t?r*(t+1)*Yh:r}function q5e(e,r){var t=e._fullLayout,a=r._id,n=a.charAt(0),i=r.title.font.size,o,l=(r.title.text.match(sf.BR_TAG_ALL)||[]).length;if(r.title.hasOwnProperty("standoff"))r.side==="bottom"||r.side==="right"?o=r._depth+r.title.standoff+i*ff:(r.side==="top"||r.side==="left")&&(o=r._depth+r.title.standoff+i*(Oh+l*Yh));else{var s=jh(r);if(r.type==="multicategory")o=r._depth;else{var u=1.5*i;s&&(u=.5*i,r.ticks==="outside"&&(u+=r.ticklen)),o=10+u+(r.linewidth?r.linewidth-1:0)}s||(n==="x"?o+=r.side==="top"?i*(r.showticklabels?1:0):i*(r.showticklabels?1.5:.5):o+=r.side==="right"?i*(r.showticklabels?1:.5):i*(r.showticklabels?.5:0))}var f=Ye.getPxPosition(e,r),c,v,d;n==="x"?(v=r._offset+r._length/2,d=r.side==="top"?f-o:f+o):(d=r._offset+r._length/2,v=r.side==="right"?f+o:f-o,c={rotate:"-90",offset:0});var p;if(r.type!=="multicategory"){var m=r._selections[r._id+"tick"];if(p={selection:m,side:r.side},m&&m.node()&&m.node().parentNode){var y=_i.getTranslate(m.node().parentNode);p.offsetLeft=y.x,p.offsetTop=y.y}r.title.hasOwnProperty("standoff")&&(p.pad=0)}return r._titleStandoff=o,jxe.draw(e,a+"title",{propContainer:r,propName:r._name+".title.text",placeholder:t._dfltTitle[n],avoid:p,transform:c,attributes:{x:v,y:d,"text-anchor":"middle"}})}Ye.shouldShowZeroLine=function(e,r,t){var a=Sr.simpleMap(r.range,r.r2l);return a[0]*a[1]<=0&&r.zeroline&&(r.type==="linear"||r.type==="-")&&!(r.rangebreaks&&r.maskBreaks(0)===Fm)&&(tN(r,0)||!L5e(e,r,t,a)||C5e(e,r))};Ye.clipEnds=function(e,r){return r.filter(function(t){return tN(e,t.x)})};function tN(e,r){var t=e.l2p(r);return t>1&&t1)for(n=1;n=n.min&&e=Kxe:/%L/.test(r)?e>=Jxe:/%[SX]/.test(r)?e>=Pm:/%M/.test(r)?e>=Gh:/%[HI]/.test(r)?e>=pl:/%p/.test(r)?e>=Gs:/%[Aadejuwx]/.test(r)?e>=Cn:/%[UVW]/.test(r)?e>=wi:/%[Bbm]/.test(r)?e>=Em:/%[q]/.test(r)?e>=Dm:/%[Yy]/.test(r)?e>=Cm:!0}});var lN=z((cZe,oN)=>{"use strict";oN.exports=function(r,t,a){var n,i;if(a){var o=t==="reversed"||t==="min reversed"||t==="max reversed";n=a[o?1:0],i=a[o?0:1]}var l=r("autorangeoptions.minallowed",i===null?n:void 0),s=r("autorangeoptions.maxallowed",n===null?i:void 0);l===void 0&&r("autorangeoptions.clipmin"),s===void 0&&r("autorangeoptions.clipmax"),r("autorangeoptions.include")}});var $6=z((vZe,sN)=>{"use strict";var z5e=lN();sN.exports=function(r,t,a,n){var i=t._template||{},o=t.type||i.type||"-";a("minallowed"),a("maxallowed");var l=a("range");if(!l){var s;!n.noInsiderange&&o!=="log"&&(s=a("insiderange"),s&&(s[0]===null||s[1]===null)&&(t.insiderange=!1,s=void 0),s&&(l=a("range",s)))}var u=t.getAutorangeDflt(l,n),f=a("autorange",u),c;l&&(l[0]===null&&l[1]===null||(l[0]===null||l[1]===null)&&(f==="reversed"||f===!0)||l[0]!==null&&(f==="min"||f==="max reversed")||l[1]!==null&&(f==="max"||f==="min reversed"))&&(l=void 0,delete t.range,t.autorange=!0,c=!0),c||(u=t.getAutorangeDflt(l,n),f=a("autorange",u)),f&&(z5e(a,f,l),(o==="linear"||o==="-")&&a("rangemode")),t.cleanRange()}});var fN=z((hZe,uN)=>{var N5e={left:0,top:0};uN.exports=I5e;function I5e(e,r,t){r=r||e.currentTarget||e.srcElement,Array.isArray(t)||(t=[0,0]);var a=e.clientX||0,n=e.clientY||0,i=B5e(r);return t[0]=a-i.left,t[1]=n-i.top,t}function B5e(e){return e===window||e===document||e===document.body?N5e:e.getBoundingClientRect()}});var J6=z((dZe,cN)=>{"use strict";var O5e=q4();function H5e(){var e=!1;try{var r=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("test",null,r),window.removeEventListener("test",null,r)}catch(t){e=!1}return e}cN.exports=O5e&&H5e()});var hN=z((pZe,vN)=>{"use strict";vN.exports=function(r,t,a,n,i){var o=(r-a)/(n-a),l=o+t/(n-a),s=(o+l)/2;return i==="left"||i==="bottom"?o:i==="center"||i==="middle"?s:i==="right"||i==="top"?l:o<2/3-s?o:l>4/3-s?l:s}});var mN=z((mZe,pN)=>{"use strict";var dN=ke(),U5e=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];pN.exports=function(r,t,a,n){return a==="left"?r=0:a==="center"?r=1:a==="right"?r=2:r=dN.constrain(Math.floor(r*3),0,2),n==="bottom"?t=0:n==="middle"?t=1:n==="top"?t=2:t=dN.constrain(Math.floor(t*3),0,2),U5e[t][r]}});var gN=z((yZe,yN)=>{"use strict";var G5e=Ch(),Y5e=Np(),V5e=wh().getGraphDiv,j5e=(ah(),Ne(th)),K6=yN.exports={};K6.wrapped=function(e,r,t){var i;e=V5e(e),e._fullLayout&&Y5e.clear(e._fullLayout._uid+j5e.HOVERID);let a=e._hoverdata;K6.raw(e,r,t)&&e._hoverAnywhereActive&&(e._hoverAnywhereActive=!1,(i=e._fullLayout)!=null&&i.hoveranywhere&&(r!=null&&r.target)&&!a&&e.emit("plotly_unhover",{event:r,points:[]}))};K6.raw=function(r,t){var a=r._fullLayout,n=r._hoverdata;return t||(t={}),t.target&&!r._dragged&&G5e.triggerHandler(r,"plotly_beforehover",t)===!1?!1:(a._hoverlayer.selectAll("g").remove(),a._hoverlayer.selectAll("line").remove(),a._hoverlayer.selectAll("circle").remove(),r._hoverdata=void 0,t.target&&n&&r.emit("plotly_unhover",{event:t,points:n}),!0)}});var Xi=z((gZe,wN)=>{"use strict";var W5e=fN(),Q6=C4(),X5e=J6(),Z5e=ke().removeElement,$5e=(Ha(),Ne(Oa)),cf=wN.exports={};cf.align=hN();cf.getCursor=mN();var xN=gN();cf.unhover=xN.wrapped;cf.unhoverRaw=xN.raw;cf.init=function(r){var t=r.gd,a=1,n=t._context.doubleClickDelay,i=r.element,o,l,s,u,f,c,v,d;t._mouseDownTime||(t._mouseDownTime=0),i.style.pointerEvents="all",i.onmousedown=y,X5e?(i._ontouchstart&&i.removeEventListener("touchstart",i._ontouchstart),i._ontouchstart=y,i.addEventListener("touchstart",y,{passive:!1})):i.ontouchstart=y;function p(w,x,_){return Math.abs(w)<_&&(w=0),Math.abs(x)<_&&(x=0),[w,x]}var m=r.clampFn||p;function y(w){t._dragged=!1,t._dragging=!0;var x=bN(w);o=x[0],l=x[1],v=w.target,c=w,d=w.buttons===2||w.ctrlKey,typeof w.clientX=="undefined"&&typeof w.clientY=="undefined"&&(w.clientX=o,w.clientY=l),s=new Date().getTime(),s-t._mouseDownTimen&&(a=Math.max(a-1,1)),t._dragged)r.doneFn&&r.doneFn();else{var x;c.target===v?x=c:(x={target:v,srcElement:v,toElement:v},Object.keys(c).concat(Object.keys(c.__proto__)).forEach(_=>{var k=c[_];!x[_]&&typeof k!="function"&&(x[_]=k)})),r.clickFn&&r.clickFn(a,x),d||v.dispatchEvent(new MouseEvent("click",w))}t._dragging=!1,t._dragged=!1}};function _N(){var e=document.createElement("div");e.className="dragcover";var r=e.style;return r.position="fixed",r.left=0,r.right=0,r.top=0,r.bottom=0,r.zIndex=999999999,r.background="none",document.body.appendChild(e),e}cf.coverSlip=_N;function bN(e){return W5e(e.changedTouches?e.changedTouches[0]:e,document.body)}});var Ys=z((bZe,TN)=>{"use strict";TN.exports=function(r,t){(r.attr("class")||"").split(" ").forEach(function(a){a.indexOf("cursor-")===0&&r.classed(a,!1)}),t&&r.classed("cursor-"+t,!0)}});var kN=z((xZe,MN)=>{"use strict";var e7=Ys(),Wh="data-savedcursor",AN="!!";MN.exports=function(r,t){var a=r.attr(Wh);if(t){if(!a){for(var n=(r.attr("class")||"").split(" "),i=0;in_e,itemGap:()=>a_e,itemHeightPad:()=>o_e,itemMinHeight:()=>i_e,scrollBarColor:()=>Q5e,scrollBarEnterAttrs:()=>r_e,scrollBarMargin:()=>e_e,scrollBarMinHeight:()=>K5e,scrollBarWidth:()=>J5e,titlePad:()=>t_e});var J5e,K5e,Q5e,e_e,r_e,t_e,a_e,n_e,i_e,o_e,Om=Ct(()=>{"use strict";J5e=6,K5e=20,Q5e="#808BA4",e_e=4,r_e={rx:20,ry:3,width:0,height:0},t_e=2,a_e=5,n_e=6,i_e=16,o_e=3});var t7=z((_Ze,qN)=>{"use strict";var r7=Ia(),l_e=Hi(),{dfltFillHeight:SN}=(Om(),Ne(Bm));qN.exports={_isSubplotObj:!0,visible:{valType:"boolean",dflt:!0,editType:"legend"},bgcolor:{valType:"color",editType:"legend"},bordercolor:{valType:"color",dflt:l_e.defaultLine,editType:"legend"},maxheight:{valType:"number",min:0,editType:"legend"},borderwidth:{valType:"number",min:0,dflt:0,editType:"legend"},font:r7({editType:"legend"}),grouptitlefont:r7({editType:"legend"}),orientation:{valType:"enumerated",values:["v","h"],dflt:"v",editType:"legend"},traceorder:{valType:"flaglist",flags:["reversed","grouped"],extras:["normal"],editType:"legend"},tracegroupgap:{valType:"number",min:0,dflt:10,editType:"legend"},entrywidth:{valType:"number",min:0,editType:"legend"},entrywidthmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels",editType:"legend"},indentation:{valType:"number",min:-15,dflt:0,editType:"legend"},itemsizing:{valType:"enumerated",values:["trace","constant"],dflt:"trace",editType:"legend"},itemwidth:{valType:"number",min:30,dflt:30,editType:"legend"},itemheight:{valType:"number",min:SN,dflt:SN,editType:"legend"},itemclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggle",editType:"legend"},itemdoubleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggleothers",editType:"legend"},groupclick:{valType:"enumerated",values:["toggleitem","togglegroup"],dflt:"togglegroup",editType:"legend"},groupdoubleclick:{valType:"enumerated",values:["toggleitem","togglegroup"],editType:"legend"},titleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],editType:"legend"},titledoubleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],editType:"legend"},x:{valType:"number",editType:"legend"},xref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"legend"},y:{valType:"number",editType:"legend"},yref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],editType:"legend"},uirevision:{valType:"any",editType:"none"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"legend"},title:{text:{valType:"string",dflt:"",editType:"legend"},font:r7({editType:"legend"}),side:{valType:"enumerated",values:["top","left","top left","top center","top right"],editType:"legend"},editType:"legend"},editType:"legend"}});var Zh=z(Xh=>{"use strict";Xh.isGrouped=function(r){return(r.traceorder||"").indexOf("grouped")!==-1};Xh.isVertical=function(r){return r.orientation!=="h"};Xh.isReversed=function(r){return(r.traceorder||"").indexOf("reversed")!==-1};Xh.getId=function(r){return r._id||"legend"}});var n7=z((TZe,LN)=>{"use strict";var Hm=Ar(),Ti=ke(),s_e=Pt(),u_e=Gn(),f_e=t7(),c_e=Oc(),a7=Zh();function v_e(e,r,t,a,n){var i=r[e]||{},o=s_e.newContainer(t,e);function l(W,Y){return Ti.coerce(i,o,f_e,W,Y)}var s=Ti.coerceFont(l,"font",t.font);l("bgcolor",t.paper_bgcolor),l("bordercolor");var u=l("visible");if(!u)return;var f,c=function(W,Y){var J=f._input,re=f;return Ti.coerce(J,re,u_e,W,Y)},v=t.font||{},d=Ti.coerceFont(l,"grouptitlefont",v,{overrideDflt:{size:Math.round(v.size*1.1)}}),p=0,m=!1,y="normal",b=(t.shapes||[]).filter(function(W){return W.showlegend});function T(W){return Hm.traceIs(W,"pie-like")&&W._length!=null&&(Array.isArray(W.legend)||Array.isArray(W.showlegend))}a.filter(T).forEach(function(W){W.visible&&p++;for(var Y=0;YW.legend.length)for(var re=W.legend.length;re(e==="legend"?1:0));if(k===!1&&(t[e]=void 0),k===!1&&!i.uirevision||(l("uirevision",t.uirevision),k===!1))return;l("borderwidth");var M=l("orientation"),S=l("yref"),C=l("xref"),E=M==="h",P=S==="paper",R=C==="paper",I,B,N,U="left";E?(I=0,Hm.getComponentMethod("rangeslider","isVisible")(r.xaxis)?P?(B=1.1,N="bottom"):(B=1,N="top"):P?(B=-.1,N="top"):(B=0,N="bottom")):(B=1,N="auto",R?I=1.02:(I=1,U="right")),Ti.coerce(i,o,{x:{valType:"number",editType:"legend",min:R?-2:0,max:R?3:1,dflt:I}},"x"),Ti.coerce(i,o,{y:{valType:"number",editType:"legend",min:P?-2:0,max:P?3:1,dflt:B}},"y"),l("traceorder",y),a7.isGrouped(t[e])&&l("tracegroupgap"),l("entrywidth"),l("entrywidthmode"),l("indentation"),l("itemsizing"),l("itemwidth"),l("itemheight"),l("itemclick"),l("itemdoubleclick");let G=l("groupclick");l("groupdoubleclick",G),l("xanchor",U),l("yanchor",N),l("maxheight"),l("valign"),Ti.noneOrAll(i,o,["x","y"]);var V=l("title.text");if(V){l("title.side",E?"left":"top");var j=Ti.extendFlat({},s,{size:Ti.bigFont(s.size)});Ti.coerceFont(l,"title.font",j);let W=n>1;l("titleclick",W?"toggle":!1),l("titledoubleclick",W?"toggleothers":!1)}}LN.exports=function(r,t,a){var n,i=a.slice(),o=t.shapes;if(o)for(n=0;n{"use strict";var Vs=Ar(),i7=ke(),h_e=i7.pushUnique,d_e=Zh(),CN=!0;o7.handleItemClick=function(r,t,a,n,i){var o=t._fullLayout;if(t._dragged||t._editing)return;var l=r.data()[0][0];if(l.groupTitle&&l.noClick)return;let s=i===2?a.groupdoubleclick:a.groupclick;n==="toggle"&&a.itemdoubleclick==="toggleothers"&&CN&&t.data&&t._context.showTips&&(i7.notifier(i7._(t,"Double-click on legend to isolate one trace"),"long",t),CN=!1);var u=s==="togglegroup",f=o.hiddenlabels?o.hiddenlabels.slice():[],c=t._fullData;let v=(o.shapes||[]).filter(Se=>Se.showlegend||Se.legendgroup);var d=c.concat(v),p=l.trace;p._isShape&&(p=o.shapes[p.index]);var m=p.legendgroup,y,b,T,w,x,_,k={},M=[],S=[],C=[];function E(Se,Ee){var qe=M.indexOf(Se),Ue=k.visible;return Ue||(Ue=k.visible=[]),M.indexOf(Se)===-1&&(M.push(Se),qe=M.length-1),Ue[qe]=Ee,qe}var P=(o.shapes||[]).map(function(Se){return Se._input}),R=!1;function I(Se,Ee){P[Se].visible=Ee,R=!0}function B(Se,Ee){if(!(l.groupTitle&&!u)){var qe=Se._isShape,Ue=Se.index;Ue===void 0&&(Ue=Se._index);var Je=Se.visible===!1?!1:Ee;qe?I(Ue,Je):E(Ue,Je)}}var N=p.legend;if(!p._isShape&&Vs.traceIs(p,"pie-like")){var U=l.label,G=f.indexOf(U);if(n==="toggle")G===-1?f.push(U):f.splice(G,1);else if(n==="toggleothers"){var V=G!==-1,j=[];for(y=0;yb.showlegend||b.legendgroup),s=i.concat(l);function u(b){return(b.legend||"legend")===o}var f,c;if(a==="toggle")f=!s.some(function(T){return u(T)&&T.visible===!0}),c=!1;else{let b=s.some(function(T){return!u(T)&&T.visible===!0&&T.showlegend!==!1});f=!0,c=!b}let v={visible:[]},d=[],p=(n.shapes||[]).map(function(b){return b._input});for(var m=!1,y=0;y{"use strict";var{isArrayOrTypedArray:s7}=Qn(),DN=Ar(),u7=Zh();EN.exports=function(r,t,a){var n=t._inHover,i=u7.isGrouped(t),o=u7.isReversed(t),l={},s=[],u=!1,f={},c=0,v=0,d,p;function m(W,Y,J){if(t.visible!==!1&&!(a&&W!==t._id))if(Y===""||!u7.isGrouped(t)){var re="~~i"+c;s.push(re),l[re]=[J],c++}else s.indexOf(Y)===-1?(s.push(Y),u=!0,l[Y]=[J]):l[Y].push(J)}for(d=0;dI&&(P=I)}C[d][0]._groupMinRank=P,C[d][0]._preGroupSort=d}var B=function(W,Y){return W[0]._groupMinRank-Y[0]._groupMinRank||W[0]._preGroupSort-Y[0]._preGroupSort},N=function(W,Y){var J=s7(W.trace.legendrank)?W.trace.legendrank[W.i]:W.trace.legendrank,re=s7(Y.trace.legendrank)?Y.trace.legendrank[Y.i]:Y.trace.legendrank;return J-re||W._preSort-Y._preSort};for(C.forEach(function(W,Y){W[0]._preGroupSort=Y}),C.sort(B),d=0;d{"use strict";var Um=ke();function RN(e){return e.indexOf("e")!==-1?e.replace(/[.]?0+e/,"e"):e.indexOf(".")!==-1?e.replace(/[.]?0+$/,""):e}vf.formatPiePercent=function(r,t){var a=RN((r*100).toPrecision(3));return Um.numSeparate(a,t)+"%"};vf.formatPieValue=function(r,t){var a=RN(r.toPrecision(10));return Um.numSeparate(a,t)};vf.getFirstFilled=function(r,t){if(Um.isArrayOrTypedArray(r))for(var a=0;a{"use strict";var p_e=et(),m_e=qr();FN.exports=function(r,t,a,n){var i=a.marker.pattern;i&&i.shape?p_e.pointStyle(r,a,n,t):m_e.fill(r,t.color)}});var Ym=z((qZe,BN)=>{"use strict";var NN=qr(),IN=Gm().castOption,y_e=zN();BN.exports=function(r,t,a,n){var i=a.marker.line,o=IN(i.color,t.pts)||NN.defaultLine,l=IN(i.width,t.pts)||0;r.call(y_e,t,a,n).style("stroke-width",l).call(NN.stroke,o)}});var d7=z((LZe,YN)=>{"use strict";var Dn=Pr(),f7=Ar(),gn=ke(),c7=gn.strTranslate,Ai=et(),Zi=qr(),v7=xi().extractOpts,jm=ii(),g_e=Ym(),b_e=Gm().castOption,ON=(Om(),Ne(Bm)),HN=12,UN=5,hf=2,x_e=10,v0=5;YN.exports=function(r,t,a){var n=t._fullLayout;a||(a=n.legend);var i=a.itemsizing==="constant",o=a.itemwidth,l=a.itemheight,s=(o+ON.itemGap*2)/2,u=c7(s,0),f=function(S,C,E,P){var R;if(S+1)R=S;else if(C&&C.width>0)R=C.width;else return 0;return i?P:Math.min(R,E)};r.each(function(S){var C=Dn.select(this),E=gn.ensureSingle(C,"g","layers");E.style("opacity",S[0].trace.opacity);var P=a.indentation,R=a.valign,I=S[0].lineHeight,B=S[0].height;if(R==="middle"&&P===0||!I||!B)E.attr("transform",null);else{var N={top:1,bottom:-1}[R],U=N*(.5*(I-B+3))||0,G=a.indentation;E.attr("transform",c7(G,U))}var V=E.selectAll("g.legendfill").data([S]);V.enter().append("g").classed("legendfill",!0);var j=E.selectAll("g.legendlines").data([S]);j.enter().append("g").classed("legendlines",!0);var W=E.selectAll("g.legendsymbols").data([S]);W.enter().append("g").classed("legendsymbols",!0),W.selectAll("g.legendpoints").data([S]).enter().append("g").classed("legendpoints",!0)}).each(M).each(d).each(m).each(p).each(b).each(_).each(x).each(c).each(v).each(T).each(w);function c(S){var C=GN(S),E=C.showFill,P=C.showLine,R=C.showGradientLine,I=C.showGradientFill,B=C.anyFill,N=C.anyLine,U=S[0],G=U.trace,V,j,W=v7(G),Y=W.colorscale,J=W.reversescale,re=function(oe){if(oe.size())if(E)Ai.fillGroupStyle(oe,t,!0);else{var Ae="legendfill-"+G.uid;Ai.gradient(oe,t,Ae,h7(J),Y,"fill")}},le=function(oe){if(oe.size()){var Ae="legendline-"+G.uid;Ai.lineGroupStyle(oe),Ai.gradient(oe,t,Ae,h7(J),Y,"stroke")}},ne=jm.hasMarkers(G)||!B?"M5,0":N?"M5,-2":"M5,-3",$=Dn.select(this),ce=$.select(".legendfill").selectAll("path").data(E||I?[S]:[]);ce.enter().append("path").classed("js-fill",!0),ce.exit().remove(),ce.attr("d",ne+"h"+o+"v"+l+"h-"+o+"z").call(re);let te=E||I?(ON.dfltFillHeight-l)/2:0;if($.selectAll("g.legendfill, g.legendlines, g.legendsymbols").attr("transform",te?c7(0,te):null),P||R){var ge=f(void 0,G.line,x_e,UN);j=gn.minExtend(G,{line:{width:ge}}),V=[gn.minExtend(U,{trace:j})]}var se=$.select(".legendlines").selectAll("path").data(P||R?[V]:[]);se.enter().append("path").classed("js-line",!0),se.exit().remove(),se.attr("d",ne+(R?"l"+o+",0.0001":"h"+o)).call(P?Ai.lineGroupStyle:le)}function v(S){var C=GN(S),E=C.anyFill,P=C.anyLine,R=C.showLine,I=C.showMarker,B=S[0],N=B.trace,U=!I&&!P&&!E&&jm.hasText(N),G,V;function j(te,ge,se,oe){var Ae=gn.nestedProperty(N,te).get(),Pe=gn.isArrayOrTypedArray(Ae)&&ge?ge(Ae):Ae;if(i&&Pe&&oe!==void 0&&(Pe=oe),se){if(Pese[1])return se[1]}return Pe}function W(te){return B._distinct&&B.index&&te[B.index]?te[B.index]:te[0]}if(I||U||R){var Y={},J={};if(I){Y.mc=j("marker.color",W);var re=N.type==="scattermap";Y.mx=re?"circle":j("marker.symbol",W),Y.mo=j("marker.opacity",gn.mean,[.2,1]),Y.mlc=j("marker.line.color",W),Y.mlw=j("marker.line.width",gn.mean,[0,5],hf),Y.mld=j("marker.line.dash",W),J.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var le=j("marker.size",gn.mean,[2,16],HN);Y.ms=le,J.marker.size=le}R&&(J.line={width:j("line.width",W,[0,10],UN)}),U&&(Y.tx="Aa",Y.tp=j("textposition",W),Y.ts=10,Y.tc=j("textfont.color",W),Y.tf=j("textfont.family",W),Y.tw=j("textfont.weight",W),Y.ty=j("textfont.style",W),Y.tv=j("textfont.variant",W),Y.tC=j("textfont.textcase",W),Y.tE=j("textfont.lineposition",W),Y.tS=j("textfont.shadow",W)),G=[gn.minExtend(B,Y)],V=gn.minExtend(N,J),V.selectedpoints=null,V.texttemplate=null}var ne=Dn.select(this).select("g.legendpoints"),$=ne.selectAll("path.scatterpts").data(I?G:[]);$.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",u),$.exit().remove(),$.call(Ai.pointStyle,V,t),I&&(G[0].mrc=3);var ce=ne.selectAll("g.pointtext").data(U?G:[]);ce.enter().append("g").classed("pointtext",!0).append("text").attr("transform",u),ce.exit().remove(),ce.selectAll("text").call(Ai.textPointStyle,V,t)}function d(S){var C=S[0].trace,E=C.type==="waterfall";if(S[0]._distinct&&E){var P=S[0].trace[S[0].dir].marker;return S[0].mc=P.color,S[0].mlw=P.line.width,S[0].mlc=P.line.color,y(S,this,"waterfall")}var R=[];C.visible&&E&&(R=S[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 I=Dn.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data(R);I.enter().append("path").classed("legendwaterfall",!0).attr("transform",u).style("stroke-miterlimit",1),I.exit().remove(),I.each(function(B){var N=Dn.select(this),U=C[B[0]].marker,G=f(void 0,U.line,v0,hf);N.attr("d",B[1]).style("stroke-width",G+"px").call(Zi.fill,U.color),G&&N.call(Zi.stroke,U.line.color)})}function p(S){y(S,this)}function m(S){y(S,this,"funnel")}function y(S,C,E){var P=S[0].trace,R=P.marker||{},I=R.line||{},B=R.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",N=E?P.visible&&P.type===E:f7.traceIs(P,"bar"),U=Dn.select(C).select("g.legendpoints").selectAll("path.legend"+E).data(N?[S]:[]);U.enter().append("path").classed("legend"+E,!0).attr("d",B).attr("transform",u),U.exit().remove(),U.each(function(G){var V=Dn.select(this),j=G[0],W=f(j.mlw,R.line,v0,hf);V.style("stroke-width",W+"px");var Y=j.mcc;if(!a._inHover&&"mc"in j){var J=v7(R),re=J.mid;re===void 0&&(re=(J.max+J.min)/2),Y=Ai.tryColorscale(R,"")(re)}var le=Y||j.mc||R.color,ne=R.pattern,$=Ai.getPatternAttr;let ce=0;a._inHover&&j._distinct&&j.index!=null&&(ce=j.index);let te=ne&&($(ne.shape,ce,"")||$(ne.path,ce,""));if(te){let se=$(ne.bgcolor,ce,null),oe=$(ne.fgcolor,ce,null);var ge=ne.fgopacity;let Ae=a._inHover?Vm($(ne.size,ce,8),8,10):Vm(ne.size,8,10),Pe=a._inHover?Vm($(ne.solidity,ce,.5),.5,1):Vm(ne.solidity,.5,1),me=a._inHover?`hover-${P.uid}-${ce}`:`legend-${P.uid}`;V.call(Ai.pattern,"legend",t,me,te,Ae,Pe,Y,ne.fillmode,se,oe,ge)}else V.call(Zi.fill,le);W&&Zi.stroke(V,j.mlc||I.color)})}function b(S){var C=S[0].trace,E=Dn.select(this).select("g.legendpoints").selectAll("path.legendbox").data(C.visible&&f7.traceIs(C,"box-violin")?[S]:[]);E.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform",u),E.exit().remove(),E.each(function(){var P=Dn.select(this);if((C.boxpoints==="all"||C.points==="all")&&Zi.opacity(C.fillcolor)===0&&Zi.opacity((C.line||{}).color)===0){var R=gn.minExtend(C,{marker:{size:i?HN:gn.constrain(C.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});E.call(Ai.pointStyle,R,t)}else{var I=f(void 0,C.line,v0,hf);P.style("stroke-width",I+"px").call(Zi.fill,C.fillcolor),I&&Zi.stroke(P,C.line.color)}})}function T(S){var C=S[0].trace,E=Dn.select(this).select("g.legendpoints").selectAll("path.legendcandle").data(C.visible&&C.type==="candlestick"?[S,S]:[]);E.enter().append("path").classed("legendcandle",!0).attr("d",function(P,R){return R?"M-15,0H-8M-8,6V-6H8Z":"M15,0H8M8,-6V6H-8Z"}).attr("transform",u).style("stroke-miterlimit",1),E.exit().remove(),E.each(function(P,R){var I=Dn.select(this),B=C[R?"increasing":"decreasing"],N=f(void 0,B.line,v0,hf);I.style("stroke-width",N+"px").call(Zi.fill,B.fillcolor),N&&Zi.stroke(I,B.line.color)})}function w(S){var C=S[0].trace,E=Dn.select(this).select("g.legendpoints").selectAll("path.legendohlc").data(C.visible&&C.type==="ohlc"?[S,S]:[]);E.enter().append("path").classed("legendohlc",!0).attr("d",function(P,R){return R?"M-15,0H0M-8,-6V0":"M15,0H0M8,6V0"}).attr("transform",u).style("stroke-miterlimit",1),E.exit().remove(),E.each(function(P,R){var I=Dn.select(this),B=C[R?"increasing":"decreasing"],N=f(void 0,B.line,v0,hf);I.style("fill","none").call(Ai.dashLine,B.line.dash,N),N&&Zi.stroke(I,B.line.color)})}function x(S){k(S,this,"pie")}function _(S){k(S,this,"funnelarea")}function k(S,C,E){var P=S[0],R=P.trace,I=E?R.visible&&R.type===E:f7.traceIs(R,E),B=Dn.select(C).select("g.legendpoints").selectAll("path.legend"+E).data(I?[S]:[]);if(B.enter().append("path").classed("legend"+E,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",u),B.exit().remove(),B.size()){var N=R.marker||{},U=f(b_e(N.line.width,P.pts),N.line,v0,hf),G="pieLike",V=gn.minExtend(R,{marker:{line:{width:U}}},G),j=gn.minExtend(P,{trace:V},G);g_e(B,j,V,t)}}function M(S){var C=S[0].trace,E,P=[];if(C.visible)switch(C.type){case"histogram2d":case"heatmap":P=[["M-15,-2V4H15V-2Z"]],E=!0;break;case"choropleth":case"choroplethmap":P=[["M-6,-6V6H6V-6Z"]],E=!0;break;case"densitymap":P=[["M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"]],E="radial";break;case"cone":P=[["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"]],E=!1;break;case"streamtube":P=[["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"]],E=!1;break;case"surface":P=[["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"]],E=!0;break;case"mesh3d":P=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],E=!1;break;case"volume":P=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],E=!0;break;case"isosurface":P=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6 A12,24 0 0,0 6,-6 L0,6Z"]],E=!1;break}var R=Dn.select(this).select("g.legendpoints").selectAll("path.legend3dandfriends").data(P);R.enter().append("path").classed("legend3dandfriends",!0).attr("transform",u).style("stroke-miterlimit",1),R.exit().remove(),R.each(function(I,B){var N=Dn.select(this),U=v7(C),G=U.colorscale,V=U.reversescale,j=function(re){if(re.size()){var le="legendfill-"+C.uid;Ai.gradient(re,t,le,h7(V,E==="radial"),G,"fill")}},W;if(G){if(!E){var J=G.length;W=B===0?G[V?J-1:0][1]:B===1?G[V?0:J-1][1]:G[Math.floor((J-1)/2)][1]}}else{var Y=C.vertexcolor||C.facecolor||C.color;W=gn.isArrayOrTypedArray(Y)?Y[B]||Y[0]:Y}N.attr("d",I[0]),W?N.call(Zi.fill,W):N.call(j)})}};function h7(e,r){var t=r?"radial":"horizontal";return t+(e?"":"reversed")}function GN(e){var r=e[0].trace,t=r.contours,a=jm.hasLines(r)||r.visible&&r.type==="quiver",n=jm.hasMarkers(r),i=r.visible&&r.fill&&r.fill!=="none",o=!1,l=!1;if(t){var s=t.coloring;s==="lines"?o=!0:a=s==="none"||s==="heatmap"||t.showlines,t.type==="constraint"?i=t._operation!=="=":(s==="fill"||s==="heatmap")&&(l=!0)}return{showMarker:n,showLine:a,showFill:i,showGradientLine:o,showGradientFill:l,anyLine:a||o,anyFill:i||l}}function Vm(e,r,t){return e&&gn.isArrayOrTypedArray(e)?r:e>t?t:e}});var g7=z((CZe,QN)=>{"use strict";var En=Pr(),Ta=ke(),m7=_a(),df=Ar(),Zm=Ch(),p7=Xi(),Aa=et(),$h=qr(),Zl=Da(),VN=l7().handleItemClick,jN=l7().handleTitleClick,na=(Om(),Ne(Bm)),y7=(un(),Ne(sn)),JN=y7.LINE_SPACING,d0=y7.FROM_TL,WN=y7.FROM_BR,XN=PN(),__e=d7(),p0=Zh(),h0=1,w_e=/^legend[0-9]*$/;QN.exports=function(r,t){if(t)ZN(r,t);else{var a=r._fullLayout,n=a._legends,i=a._infolayer.selectAll('[class^="legend"]');i.each(function(){var u=En.select(this),f=u.attr("class"),c=f.split(" ")[0];c.match(w_e)&&n.indexOf(c)===-1&&u.remove()});for(var o=0;o1)}var p=a.hiddenlabels||[];if(!l&&(!a.showlegend||!s.length))return o.selectAll("."+n).remove(),a._topdefs.select("#"+i).remove(),m7.autoMargin(e,n);var m=Ta.ensureSingle(o,"g",n,function(S){l||S.attr("pointer-events","all")}),y=Ta.ensureSingleById(a._topdefs,"clipPath",i,function(S){S.append("rect")}),b=Ta.ensureSingle(m,"rect","bg",function(S){S.attr("shape-rendering","crispEdges")});b.call($h.stroke,t.bordercolor).call($h.fill,t.bgcolor).style("stroke-width",t.borderwidth+"px");var T=Ta.ensureSingle(m,"g","scrollbox"),w=t.title;t._titleWidth=0,t._titleHeight=0;var x;w.text?(x=Ta.ensureSingle(T,"text",n+"titletext"),x.attr("text-anchor","start").call(Aa.font,w.font).text(w.text),Xm(x,T,e,t,h0),!l&&(t.titleclick||t.titledoubleclick)&&k_e(T,e,t,n)):(T.selectAll("."+n+"titletext").remove(),T.selectAll("."+n+"titletoggle").remove());var _=Ta.ensureSingle(m,"rect","scrollbar",function(S){S.attr(na.scrollBarEnterAttrs).call($h.fill,na.scrollBarColor)}),k=T.selectAll("g.groups").data(s);k.enter().append("g").attr("class","groups"),k.exit().remove();var M=k.selectAll("g.traces").data(Ta.identity);M.enter().append("g").attr("class","traces"),M.exit().remove(),M.style("opacity",function(S){let C=S[0],E=C.trace;if(C.groupTitle){let P=E.legendgroup,R=(a.shapes||[]).filter(function(B){return B.showlegend});return e._fullData.concat(R).some(function(B){return B.legendgroup===P&&(B.legend||"legend")===n&&B.visible===!0})?1:.5}return df.traceIs(E,"pie-like")?p.indexOf(S[0].label)!==-1?.5:1:E.visible==="legendonly"?.5:1}).each(function(){En.select(this).call(A_e,e,t)}).call(__e,e,t).each(function(S){l||S[0].groupTitle&&t.groupclick==="toggleitem"||En.select(this).call(M_e,e,n)}),Ta.syncOrAsync([m7.previousPromises,function(){return L_e(e,k,M,t,T)},function(){var S=a._size,C=t.borderwidth,E=t.xref==="paper",P=t.yref==="paper";if(w.text){let Ce=(a.shapes||[]).filter(function(Le){return Le.showlegend}),Me=e._fullData.concat(Ce).some(function(Le){let Se=Le.legend||"legend";var Ee=Array.isArray(Se)?Se.includes(n):Se===n;return Ee&&Le.visible===!0});x.style("opacity",Me?1:.5)}if(!l){var R,I;E?R=S.l+S.w*t.x-d0[$m(t)]*t._width:R=a.width*t.x-d0[$m(t)]*t._width,P?I=S.t+S.h*(1-t.y)-d0[Jm(t)]*t._effHeight:I=a.height*(1-t.y)-d0[Jm(t)]*t._effHeight;var B=C_e(e,n,R,I);if(B)return;if(a.margin.autoexpand){var N=R,U=I;R=E?Ta.constrain(R,0,a.width-t._width):N,I=P?Ta.constrain(I,0,a.height-t._effHeight):U,R!==N&&Ta.log("Constrain "+n+".x to make legend fit inside graph"),I!==U&&Ta.log("Constrain "+n+".y to make legend fit inside graph")}Aa.setTranslate(m,R,I)}if(_.on(".drag",null),m.on("wheel",null),l||t._height<=t._maxHeight||e._context.staticPlot){var G=t._effHeight;l&&(G=t._height),b.attr({width:t._width-C,height:G-C,x:C/2,y:C/2}),Aa.setTranslate(T,0,0),y.select("rect").attr({width:t._width-2*C,height:G-2*C,x:C,y:C}),Aa.setClipUrl(T,i,e),Aa.setRect(_,0,0,0,0),delete t._scrollY}else{var V=Math.max(na.scrollBarMinHeight,t._effHeight*t._effHeight/t._height),j=t._effHeight-V-2*na.scrollBarMargin,W=t._height-t._effHeight,Y=j/W,J=Math.min(t._scrollY||0,W);b.attr({width:t._width-2*C+na.scrollBarWidth+na.scrollBarMargin,height:t._effHeight-C,x:C/2,y:C/2}),y.select("rect").attr({width:t._width-2*C+na.scrollBarWidth+na.scrollBarMargin,height:t._effHeight-2*C,x:C,y:C+J}),Aa.setClipUrl(T,i,e),se(J,V,Y),m.on("wheel",function(){J=Ta.constrain(t._scrollY+En.event.deltaY/W*j,0,W),se(J,V,Y),J!==0&&J!==W&&En.event.preventDefault()});var re,le,ne,$=function(Ce,Me,Le){var Se=(Le-Me)/Y+Ce;return Ta.constrain(Se,0,W)},ce=function(Ce,Me,Le){var Se=(Me-Le)/Y+Ce;return Ta.constrain(Se,0,W)},te=En.behavior.drag().on("dragstart",function(){var Ce=En.event.sourceEvent;Ce.type==="touchstart"?re=Ce.changedTouches[0].clientY:re=Ce.clientY,ne=J}).on("drag",function(){var Ce=En.event.sourceEvent;Ce.buttons===2||Ce.ctrlKey||(Ce.type==="touchmove"?le=Ce.changedTouches[0].clientY:le=Ce.clientY,J=$(ne,re,le),se(J,V,Y))});_.call(te);var ge=En.behavior.drag().on("dragstart",function(){var Ce=En.event.sourceEvent;Ce.type==="touchstart"&&(re=Ce.changedTouches[0].clientY,ne=J)}).on("drag",function(){var Ce=En.event.sourceEvent;Ce.type==="touchmove"&&(le=Ce.changedTouches[0].clientY,J=ce(ne,re,le),se(J,V,Y))});T.call(ge)}function se(Ce,Me,Le){t._scrollY=e._fullLayout[n]._scrollY=Ce,Aa.setTranslate(T,0,-Ce),Aa.setRect(_,t._width,na.scrollBarMargin+Ce*Le,na.scrollBarWidth,Me),y.select("rect").attr("y",C+Ce)}if(e._context.edits.legendPosition){var oe,Ae,Pe,me;m.classed("cursor-move",!0),p7.init({element:m.node(),gd:e,prepFn:function(Ce){if(Ce.target!==_.node()){var Me=Aa.getTranslate(m);Pe=Me.x,me=Me.y}},moveFn:function(Ce,Me){if(Pe!==void 0&&me!==void 0){var Le=Pe+Ce,Se=me+Me;Aa.setTranslate(m,Le,Se),oe=p7.align(Le,t._width,S.l,S.l+S.w,t.xanchor),Ae=p7.align(Se+t._height,-t._height,S.t+S.h,S.t,t.yanchor)}},doneFn:function(){if(oe!==void 0&&Ae!==void 0){var Ce={};Ce[n+".x"]=oe,Ce[n+".y"]=Ae,df.call("_guiRelayout",e,Ce)}},clickFn:function(Ce,Me){var Le=o.selectAll("g.traces").filter(function(){var Se=this.getBoundingClientRect();return Me.clientX>=Se.left&&Me.clientX<=Se.right&&Me.clientY>=Se.top&&Me.clientY<=Se.bottom});Le.size()>0&&KN(e,t,Le,Ce,Me)}})}}],e)}}function Wm(e,r,t){var a=e[0],n=a.width,i=r.entrywidthmode,o=a.trace.legendwidth||r.entrywidth;return i==="fraction"?r._maxWidth*o:t+(o||n)}function KN(e,r,t,a,n){var i=e._fullLayout,o=t.data()[0][0].trace,l=r.itemclick,s=r.itemdoubleclick,u={event:n,node:t.node(),curveNumber:o.index,expandedIndex:o.index,data:e.data,layout:e.layout,frames:e._transitionData._frames,config:e._context,fullData:e._fullData,fullLayout:i};o._group&&(u.group=o._group),df.traceIs(o,"pie-like")&&(u.label=t.datum()[0].label);var f=Zm.triggerHandler(e,"plotly_legendclick",u);if(a===1){if(f===!1)return;r._clickTimeout=setTimeout(function(){e._fullLayout&&l&&VN(t,e,r,l,a)},e._context.doubleClickDelay)}else if(a===2){r._clickTimeout&&clearTimeout(r._clickTimeout),e._legendMouseDownTime=0;var c=Zm.triggerHandler(e,"plotly_legenddoubleclick",u);c!==!1&&f!==!1&&s&&VN(t,e,r,s,a)}}function A_e(e,r,t){var a=p0.getId(t),n=e.data()[0][0],i=n.trace,o=df.traceIs(i,"pie-like"),l=!t._inHover&&r._context.edits.legendText&&!o,s=t._maxNameLength,u,f;n.groupTitle?(u=n.groupTitle.text,f=n.groupTitle.font):(f=t.font,t.entries?u=n.text:(u=o?n.label:i.name,i._meta&&(u=Ta.templateString(u,i._meta))));var c=Ta.ensureSingle(e,"text",a+"text");c.attr("text-anchor","start").call(Aa.font,f).text(l?$N(u,s):u);var v=t.indentation+t.itemwidth+na.itemGap*2;Zl.positionText(c,v,0),l?c.call(Zl.makeEditable,{gd:r,text:u}).call(Xm,e,r,t).on("edit",function(d){this.text($N(d,s)).call(Xm,e,r,t);var p={};return p.name=d,n.trace._isShape?df.call("_guiRelayout",r,"shapes["+i.index+"].name",p.name):df.call("_guiRestyle",r,p,i.index)}):Xm(c,e,r,t)}function $N(e,r){var t=Math.max(4,r);if(e&&e.trim().length>=t/2)return e;e=e||"";for(var a=t-e.length;a>0;a--)e+=" ";return e}function M_e(e,r,t){var a=r._context.doubleClickDelay,n,i=1,o=Ta.ensureSingle(e,"rect",t+"toggle",function(l){r._context.staticPlot||l.style("cursor","pointer").attr("pointer-events","all"),l.call($h.fill,"rgba(0,0,0,0)")});r._context.staticPlot||(o.on("mousedown",function(){n=new Date().getTime(),n-r._legendMouseDownTimea&&(i=Math.max(i-1,1)),KN(r,l,e,i,En.event)}}))}function k_e(e,r,t,a){if(r._fullData.some(function(u){let f=u.legend||"legend";return(Array.isArray(f)?f.includes(a):f===a)&&df.traceIs(u,"pie-like")}))return;let i=r._context.doubleClickDelay;var o,l=1;let s=Ta.ensureSingle(e,"rect",a+"titletoggle",function(u){r._context.staticPlot||u.style("cursor","pointer").attr("pointer-events","all"),u.call($h.fill,"rgba(0,0,0,0)")});r._context.staticPlot||(s.on("mousedown",function(){o=new Date().getTime(),o-r._legendMouseDownTimei&&(l=Math.max(l-1,1));let u={event:En.event,legendId:a,data:r.data,layout:r.layout,fullData:r._fullData,fullLayout:r._fullLayout};if(l===1&&t.titleclick){if(Zm.triggerHandler(r,"plotly_legendtitleclick",u)===!1)return;t._titleClickTimeout=setTimeout(function(){r._fullLayout&&jN(r,t,t.titleclick)},i)}else l===2&&(t._titleClickTimeout&&clearTimeout(t._titleClickTimeout),r._legendMouseDownTime=0,Zm.triggerHandler(r,"plotly_legendtitledoubleclick",u)!==!1&&t.titledoubleclick&&jN(r,t,t.titledoubleclick))}))}function Xm(e,r,t,a,n){a._inHover&&e.attr("data-notex",Zl.isPureTex(e.text())?null:!0),Zl.convertToTspans(e,t,function(){S_e(r,t,a,n)})}function S_e(e,r,t,a){var n=e.data()[0][0],i=n&&n.trace.showlegend;if(Array.isArray(i)&&(i=i[n.i]!==!1),!t._inHover&&n&&!i){e.remove();return}var o=e.select("g[class*=math-group]"),l=o.node(),s=p0.getId(t);t||(t=r._fullLayout[s]);var u=t.borderwidth,f;a===h0?f=t.title.font:n.groupTitle?f=n.groupTitle.font:f=t.font;var c=f.size*JN,v,d;if(l){var p=Aa.bBox(l);v=p.height,d=p.width,a===h0?Aa.setTranslate(o,u,u+v*.75):Aa.setTranslate(o,0,v*.25)}else{var m="."+s+(a===h0?"title":"")+"text",y=e.select(m),b=Zl.lineCount(y),T=y.node();if(v=c*b,d=T?Aa.bBox(T).width:0,a===h0)t.title.side==="left"&&(d+=na.itemGap*2),Zl.positionText(y,u+na.titlePad,u+c);else{var w=na.itemGap*2+t.indentation+t.itemwidth;n.groupTitle&&(w=na.itemGap,d-=t.indentation+t.itemwidth),Zl.positionText(y,w,-c*((b-1)/2-.3))}}if(a===h0)t._titleWidth=d,t._titleHeight=v;else{n.lineHeight=c;let x=na.itemMinHeight+t.itemheight-na.dfltFillHeight;n.height=Math.max(v,na.itemMinHeight,x)+na.itemHeightPad,n.width=d}}function q_e(e){var r=0,t=0,a=e.title.side;return a&&(a.indexOf("left")!==-1&&(r=e._titleWidth),a.indexOf("top")!==-1&&(t=e._titleHeight)),[r,t]}function L_e(e,r,t,a,n){var i=e._fullLayout,o=p0.getId(a);a||(a=i[o]);var l=i._size,s=p0.isVertical(a),u=p0.isGrouped(a),f=a.entrywidthmode==="fraction",c=a.borderwidth,v=2*c,d=na.itemGap,p=a.indentation+a.itemwidth+d*2,m=2*(c+d),y=Jm(a),b=a.y<0||a.y===0&&y==="top",T=a.y>1||a.y===1&&y==="bottom",w=a.tracegroupgap,x={};let{orientation:_,yref:k}=a,{maxheight:M}=a,S=b||T||_!=="v"||k!=="paper";M||(M=S?.5:1);let C=S?i.height:l.h;a._maxHeight=Math.max(M>1?M:M*C,30);var E=0;a._width=0,a._height=0;var P=q_e(a);if(s)t.each(function(Ce){var Me=Ce[0].height;Aa.setTranslate(this,c+P[0],c+P[1]+a._height+Me/2+d),a._height+=Me,a._width=Math.max(a._width,Ce[0].width)}),E=p+a._width,a._width+=d+p+v,a._height+=m,u&&(r.each(function(Ce,Me){Aa.setTranslate(this,0,Me*a.tracegroupgap)}),a._height+=(a._lgroupsLength-1)*a.tracegroupgap);else{var R=$m(a),I=a.x<0||a.x===0&&R==="right",B=a.x>1||a.x===1&&R==="left",N=T||b,U=i.width/2;a._maxWidth=Math.max(I?N&&R==="left"?l.l+l.w:U:B?N&&R==="right"?l.r+l.w:U:l.w,2*p);var G=0,V=0;t.each(function(Ce){var Me=Wm(Ce,a,p);G=Math.max(G,Me),V+=Me}),E=null;var j=0;if(u){var W=0,Y=0,J=0;r.each(function(){var Ce=0,Me=0;En.select(this).selectAll("g.traces").each(function(Se){var Ee=Wm(Se,a,p),qe=Se[0].height;Aa.setTranslate(this,P[0],P[1]+c+d+qe/2+Me),Me+=qe,Ce=Math.max(Ce,Ee),x[Se[0].trace.legendgroup]=Ce});var Le=Ce+d;Y>0&&Le+c+Y>a._maxWidth?(j=Math.max(j,Y),Y=0,J+=W+w,W=Me):W=Math.max(W,Me),Aa.setTranslate(this,Y,J),Y+=Le}),a._width=Math.max(j,Y)+c,a._height=J+W+m}else{var re=t.size(),le=V+v+(re-1)*d=a._maxWidth&&(j=Math.max(j,te),$=0,ce+=ne,a._height+=ne,ne=0),Aa.setTranslate(this,P[0]+c+$,P[1]+c+ce+Me/2+d),te=$+Le+d,$+=Se,ne=Math.max(ne,Me)}),le?(a._width=$+v,a._height=ne+m):(a._width=Math.max(j,te)+v,a._height+=ne+m)}}a._width=Math.ceil(Math.max(a._width+P[0],a._titleWidth+2*(c+na.titlePad))),a._height=Math.ceil(Math.max(a._height+P[1],a._titleHeight+2*(c+na.itemGap))),a._effHeight=Math.min(a._height,a._maxHeight);var ge=e._context.edits,se=ge.legendText||ge.legendPosition;if(t.each(function(Ce){var Me=En.select(this).select("."+o+"toggle"),Le=Ce[0].height,Se=Ce[0].trace.legendgroup,Ee=Wm(Ce,a,p);u&&Se!==""&&(Ee=x[Se]);var qe=se?p:E||Ee;!s&&!f&&(qe+=d/2),Aa.setRect(Me,0,-Le/2,qe,Le)}),a._inHover){let Ce=a._width-v-d-P[0];t.each(function(Me){Me[0].textAlign==="right"&&En.select(this).select("."+o+"text").attr("text-anchor","end").call(Zl.positionText,Ce)})}var oe=n.select("."+o+"titletext");oe.node()&&T_e(oe,a,c);var Ae=n.select("."+o+"titletoggle");if(Ae.size()&&oe.node()){var Pe=oe.attr("x")||0,me=na.titlePad;Aa.setRect(Ae,Pe-me,c,a._titleWidth+2*me,a._titleHeight+2*me)}}function C_e(e,r,t,a){var n=e._fullLayout,i=n[r],o=$m(i),l=Jm(i),s=i.xref==="paper",u=i.yref==="paper";e._fullLayout._reservedMargin[r]={};var f=i.y<.5?"b":"t",c=i.x<.5?"l":"r",v={r:n.width-t,l:t+i._width,b:n.height-a,t:a+i._effHeight};if(s&&u)return m7.autoMargin(e,r,{x:i.x,y:i.y,l:i._width*d0[o],r:i._width*WN[o],b:i._effHeight*WN[l],t:i._effHeight*d0[l]});s?e._fullLayout._reservedMargin[r][f]=v[f]:u||i.orientation==="v"?e._fullLayout._reservedMargin[r][c]=v[c]:e._fullLayout._reservedMargin[r][f]=v[f]}function $m(e){return Ta.isRightAnchor(e)?"right":Ta.isCenterAnchor(e)?"center":"left"}function Jm(e){return Ta.isBottomAnchor(e)?"bottom":Ta.isMiddleAnchor(e)?"middle":"top"}});var T7=z(w7=>{"use strict";var Jl=Pr(),$l=Br(),ia=ke(),D_e=ia.pushUnique,b7=ia.strTranslate,E_e=ia.strRotate,P_e=Ch(),Qt=Da(),R_e=kN(),yl=et(),Ea=qr(),Km=Xi(),gl=jr(),F_e=(Ha(),Ne(Oa)).zindexSeparator,pf=Ar(),Mi=No(),mf=(ah(),Ne(th)),z_e=n7(),N_e=g7(),sI=mf.YANGLE,_7=Math.PI*sI/180,I_e=1/Math.sin(_7),B_e=Math.cos(_7),O_e=Math.sin(_7),Wt=mf.HOVERARROWSIZE,$r=mf.HOVERTEXTPAD,eI={box:!0,ohlc:!0,violin:!0,candlestick:!0},H_e={scatter:!0,scattergl:!0,splom:!0};function rI(e,r){return e.distance-r.distance}w7.hover=function(r,t,a,n){r=ia.getGraphDiv(r);var i=t.target;ia.throttle(r._fullLayout._uid+mf.HOVERID,mf.HOVERMINTIME,function(){G_e(r,t,a,n,i)})};w7.loneHover=function(r,t){var a=!0;Array.isArray(r)||(a=!1,r=[r]);var n=t.gd,i=vI(n),o=hI(n),l=r.map(function(p){var m=p._x0||p.x0||p.x||0,y=p._x1||p.x1||p.x||0,b=p._y0||p.y0||p.y||0,T=p._y1||p.y1||p.y||0,w=p.eventData;if(w){var x=Math.min(m,y),_=Math.max(m,y),k=Math.min(b,T),M=Math.max(b,T),S=p.trace;if(pf.traceIs(S,"gl3d")){var C=n._fullLayout[S.scene]._scene.container,E=C.offsetLeft,P=C.offsetTop;x+=E,_+=E,k+=P,M+=P}w.bbox={x0:x+o,x1:_+o,y0:k+i,y1:M+i},w.xPixel=(m+y)/2,w.yPixel=(b+T)/2,t.inOut_bbox&&t.inOut_bbox.push(w.bbox)}else w=!1;return{color:p.color||Ea.defaultLine,x0:p.x0||p.x||0,x1:p.x1||p.x||0,y0:p.y0||p.y||0,y1:p.y1||p.y||0,xLabel:p.xLabel,yLabel:p.yLabel,zLabel:p.zLabel,text:p.text,name:p.name,idealAlign:p.idealAlign,borderColor:p.borderColor,fontFamily:p.fontFamily,fontSize:p.fontSize,fontColor:p.fontColor,fontWeight:p.fontWeight,fontStyle:p.fontStyle,fontVariant:p.fontVariant,nameLength:p.nameLength,textAlign:p.textAlign,trace:p.trace||{index:0,hoverinfo:""},xa:{_offset:0},ya:{_offset:0},index:0,hovertemplate:p.hovertemplate||!1,hovertemplateLabels:p.hovertemplateLabels||!1,eventData:w}}),s=!1,u=fI(l,{gd:n,hovermode:"closest",rotateLabels:s,bgColor:t.bgColor||Ea.background,container:Jl.select(t.container),outerContainer:t.outerContainer||t.container}),f=u.hoverLabels;function c(){var p=5,m=0,y=0;f.sort(function(b,T){return b.y0-T.y0}).each(function(b,T){var w=b.y0-b.by/2;w-pS[0]._length||Me<0||Me>C[0]._length)return Km.unhoverRaw(e,r)}if(r.pointerX=Ce+S[0]._offset,r.pointerY=Me+C[0]._offset,"xval"in r?G=Mi.flat(i,r.xval):G=Mi.p2c(S,Ce),"yval"in r?V=Mi.flat(i,r.yval):V=Mi.p2c(C,Me),e._hoverPointerX=r.pointerX,e._hoverPointerY=r.pointerY,!$l(G[0])||!$l(V[0]))return ia.warn("Fx.hover failed",r,e),Km.unhoverRaw(e,r)}l.clickanywhere&&(e._hoverXVals=G,e._hoverYVals=V,e._hoverXAxes=S,e._hoverYAxes=C);var Ee=1/0;function qe(tr,tt){for(W=0;Wge&&(N.splice(0,ge),Ee=N[0].distance),pf.traceIs(J,"ternary")&&B!==0){let Wr=te.subplot;if(["aaxis","baxis","caxis"].some(Ht=>Wr[Ht].showspikes&&Wr[Ht].spikesnap!=="hovered data")){let Ht=ft==null?void 0:ft[0];if(!Number.isFinite(Ht==null?void 0:Ht.spikeDistance)){let On=ia.extendFlat({},te,{distance:B,index:!1}),ta=J._module.hoverPoints(On,$,ce,"closest");Ht=ta&&ta[0]}let $n=oe[re];Ht&&Ht.index!==void 0&&Ht.index!==!1&&Ht.spikeDistance<=B&&(!$n||Ht.spikeDistance<$n.spikeDistance)&&(oe[re]=Ht)}}if(c&&N.length===0&&B!==0&&U_e(te.xa,te.ya)){te.distance=B,te.index=!1;var at=J._module.hoverPoints(te,$,ce,"closest",{hoverLayer:l._hoverlayer});if(at&&(at=at.filter(function(Wr){return Wr.spikeDistance<=B})),at!=null&&at.length){var bt,ma=at.filter(function(Wr){return Wr.xa.showspikes&&Wr.xa.spikesnap!=="hovered data"});if(ma.length){var pi=ma[0];$l(pi.x0)&&$l(pi.y0)&&(bt=Ke(pi),(!se.vLinePoint||se.vLinePoint.spikeDistance>bt.spikeDistance)&&(se.vLinePoint=bt))}var nt=at.filter(function(Wr){return Wr.ya.showspikes&&Wr.ya.spikesnap!=="hovered data"});if(nt.length){var La=nt[0];$l(La.x0)&&$l(La.y0)&&(bt=Ke(La),(!se.hLinePoint||se.hLinePoint.spikeDistance>bt.spikeDistance)&&(se.hLinePoint=bt))}}}}}qe();function Ue(){if(l._hoverlayer.selectAll(".ternary-spikes").remove(),B!==0)for(let tr=0;trFt.trace.subplot===tt&&Ft.index!==void 0&&Ft.index!==!1&&Ft.spikeDistance<=B);Yr.drawSpikelines(ft,oe[tt],G&&G[tr],V&&V[tr])}}}function Je(tr,tt,Yr){for(var ft=null,Ft=1/0,qa,at=0;attr.trace.index===Oe.trace.index):N=[Oe];var Xe=N.length,Qe=lI("x",Oe,l),_r=lI("y",Oe,l);qe(Qe,_r);var gr=[],Re={},Ze=0,ze=function(tr){var tt=eI[tr.trace.type]?uI(tr):tr.trace.index;if(!Re[tt])Ze++,Re[tt]=Ze,gr.push(tr);else{var Yr=Re[tt]-1,ft=gr[Yr];Yr>0&&Math.abs(tr.distance)Xe-1;rr--)ze(N[rr]);N=gr,ae()}var cr=e._hoverdata,pr=[],mr=vI(e),ie=hI(e);for(let tr of N){var ye=Mi.makeEventData(tr,tr.trace,tr.cd);if(tr.hovertemplate!==!1){var Fe=!1;tr.cd[tr.index]&&tr.cd[tr.index].ht&&(Fe=tr.cd[tr.index].ht),tr.hovertemplate=Fe||tr.trace.hovertemplate||!1}if(tr.xa&&tr.ya){var He=tr.x0+tr.xa._offset,Gr=tr.x1+tr.xa._offset,rt=tr.y0+tr.ya._offset,qt=tr.y1+tr.ya._offset,gt=Math.min(He,Gr),Ut=Math.max(He,Gr),Bt=Math.min(rt,qt),Fa=Math.max(rt,qt);ye.bbox={x0:gt+ie,x1:Ut+ie,y0:Bt+mr,y1:Fa+mr},ye.xPixel=(He+Gr)/2,ye.yPixel=(rt+qt)/2}tr.eventData=[ye],pr.push(ye)}e._hoverdata=pr;var kt=d==="y"&&(U.length>1||N.length>1)||d==="closest"&&Ae&&N.length>1,Zt=Ea.combine(l.plot_bgcolor||Ea.background,l.paper_bgcolor),$t=fI(N,{gd:e,hovermode:d,rotateLabels:kt,bgColor:Zt,container:l._hoverlayer,outerContainer:l._paper.node(),commonLabelOpts:l.hoverlabel,hoverdistance:l.hoverdistance}),Lt=$t.hoverLabels;if(Mi.isUnifiedHover(d)||(aI(Lt,kt,l,$t.commonLabelBoundingBox),ey(Lt,kt,l._invScaleX,l._invScaleY),$t.mathjaxPromise&&$t.mathjaxPromise.then(function(){e._hoverdata===pr&&(aI(Lt,kt,l,$t.commonLabelBoundingBox),ey(Lt,kt,l._invScaleX,l._invScaleY),Lt.each(function(){var tr=Jl.select(this);Qt.repositionMathGroup(tr.select("text.nums")),Qt.repositionMathGroup(tr.select("text.name"))}))})),n&&n.tagName){var ra=pf.getComponentMethod("annotations","hasClickToShow")(e,pr);R_e(Jl.select(n),ra?"pointer":"")}var sa=W_e(e,r,cr);if(!n||a||!sa&&!l.hoveranywhere)return;cr&&sa&&e.emit("plotly_unhover",{event:r,points:cr}),Ot(e._hoverdata);function Ot(tr){e.emit("plotly_hover",{event:r,points:tr,xaxes:S,yaxes:C,xvals:Mi.c2dApply(S,G),yvals:Mi.c2dApply(C,V),xPixel:r.pointerX,yPixel:r.pointerY})}}function uI(e){return[e.trace.index,e.index,e.x0,e.y0,e.name,e.attr,e.xa?e.xa._id:"",e.ya?e.ya._id:""].join(",")}var Y_e=/([\s\S]*)<\/extra>/;function x7(e,r){return Qm(e,Qt.getMathOrTextNode(r))}function fI(e,r){var t=r.gd,a=t._fullLayout,n=r.hovermode,i=r.rotateLabels,o=r.bgColor,l=r.container,s=r.outerContainer,u=r.commonLabelOpts||{};if(e.length===0)return[[]];var f=[],c=r.fontFamily||mf.HOVERFONT,v=r.fontSize||mf.HOVERFONTSIZE,d=r.fontWeight||a.font.weight,p=r.fontStyle||a.font.style,m=r.fontVariant||a.font.variant,y=r.fontTextcase||a.font.textcase,b=r.fontLineposition||a.font.lineposition,T=r.fontShadow||a.font.shadow,w=e[0],x=w.xa,_=w.ya,k=n.charAt(0),M=k+"Label",S=w[M];if(S===void 0&&x.type==="multicategory")for(var C=0;Ca.width-mr&&(ie=a.width-mr),xe.attr("d","M"+(rr-ie)+",0L"+(rr-ie+Wt)+","+pr+Wt+"H"+mr+"v"+pr+($r*2+ze.height)+"H"+-mr+"V"+pr+Wt+"H"+(rr-ie-Wt)+"Z"),rr=ie,W.minX=rr-mr,W.maxX=rr+mr,x.side==="top"?(W.minY=cr-($r*2+ze.height),W.maxY=cr-$r):(W.minY=cr+$r,W.maxY=cr+($r*2+ze.height))}else{var ye,Fe,He;_.side==="right"?(ye="start",Fe=1,He="",rr=x._offset+x._length):(ye="end",Fe=-1,He="-",rr=x._offset),cr=_._offset+(w.y0+w.y1)/2,Ie.attr("text-anchor",ye),xe.attr("d","M0,0L"+He+Wt+","+Wt+"V"+($r+ze.height/2)+"h"+He+($r*2+ze.width)+"V-"+($r+ze.height/2)+"H"+He+Wt+"V-"+Wt+"Z"),W.minY=cr-($r+ze.height/2),W.maxY=cr+($r+ze.height/2),_.side==="right"?(W.minX=rr+Wt,W.maxX=rr+Wt+($r*2+ze.width)):(W.minX=rr-Wt-($r*2+ze.width),W.maxX=rr-Wt);var Gr=ze.height/2,rt=P-ze.top-Gr,qt="clip"+a._uid+"commonlabel"+_._id,gt;if(rrxe.hoverinfo!=="none");if(ue.length===0)return[];var Y=a.hoverlabel,J=Y.font,re=ue[0],le=((n==="x unified"?re.xa:re.ya).unifiedhovertitle||{}).text,ne=le?ia.hovertemplateString({data:n==="x unified"?[{xa:re.xa,x:re.xVal}]:[{ya:re.ya,y:re.yVal}],fallback:re.trace.hovertemplatefallback,locale:a._d3locale,template:le}):S,$={showlegend:!0,legend:{title:{text:ne,font:J},font:J,bgcolor:Y.bgcolor,bordercolor:Y.bordercolor,borderwidth:1,tracegroupgap:7,traceorder:a.legend?a.legend.traceorder:void 0,orientation:"v"}},ce={font:J};z_e($,ce,t._fullData);var te=ce.legend;te.entries=[];for(var ge=0;ge=0?Ge=Be:er+Le=0?Ge=er:ae+Le=0?sr=Ke:De+Se=0?sr=De:be+Se=0,(ue.idealAlign==="top"||!$t)&&Lt?(He-=rt/2,ue.anchor="end"):$t?(He+=rt/2,ue.anchor="start"):ue.anchor="middle",ue.crossPos=He;else{if(ue.pos=He,$t=Fe+Gr/2+Zt<=R,Lt=Fe-Gr/2-Zt>=0,(ue.idealAlign==="left"||!$t)&&Lt)Fe-=Gr/2,ue.anchor="end";else if($t)Fe+=Gr/2,ue.anchor="start";else{ue.anchor="middle";var ra=Zt/2,sa=Fe+ra-R,Ot=Fe-ra;sa>0&&(Fe-=sa),Ot<0&&(Fe+=-Ot)}ue.crossPos=Fe}mr.attr("text-anchor",ue.anchor),qt&&ie.attr("text-anchor",ue.anchor),xe.attr("transform",b7(Fe,He)+(i?E_e(sI):""))}}),{hoverLabels:vr,commonLabelBoundingBox:W,mathjaxPromise:f.length?Promise.all(f):null}}function tI(e,r,t,a,n,i){var c,v;var o="",l="";e.nameOverride!==void 0&&(e.name=e.nameOverride),e.name&&(e.trace._meta&&(e.name=ia.templateString(e.name,e.trace._meta)),o=oI(e.name,e.nameLength));var s=t.charAt(0),u=s==="x"?"y":"x";e.zLabel!==void 0?(e.xLabel!==void 0&&(l+="x: "+e.xLabel+"
"),e.yLabel!==void 0&&(l+="y: "+e.yLabel+"
"),e.trace.type!=="choropleth"&&e.trace.type!=="choroplethmap"&&(l+=(l?"z: ":"")+e.zLabel)):r&&e[s+"Label"]===n?l=e[u+"Label"]||"":e.xLabel===void 0?e.yLabel!==void 0&&e.trace.type!=="scattercarpet"&&(l=e.yLabel):e.yLabel===void 0?l=e.xLabel:l="("+e.xLabel+", "+e.yLabel+")",(e.text||e.text===0)&&!Array.isArray(e.text)&&(l+=(l?"
":"")+e.text),e.extraText!==void 0&&(l+=(l?"
":"")+e.extraText),i&&l===""&&!e.hovertemplate&&(o===""&&i.remove(),l=o),(v=(c=e.trace)==null?void 0:c.hoverlabel)!=null&&v.split&&(e.hovertemplate="");let{hovertemplate:f=!1}=e;if(f){let d=e.hovertemplateLabels||e;e[s+"Label"]!==n&&(d[s+"other"]=d[s+"Val"],d[s+"otherLabel"]=d[s+"Label"]),l=ia.hovertemplateString({data:[e.eventData[0]||{},e.trace._meta],fallback:e.trace.hovertemplatefallback,labels:d,locale:a._d3locale,template:f}),l=l.replace(Y_e,(p,m)=>(o=oI(m,e.nameLength),""))}return[l,o]}function aI(e,r,t,a){var n=r?"xa":"ya",i=r?"ya":"xa",o=0,l=1,s=e.size(),u=new Array(s),f=0,c=a.minX,v=a.maxX,d=a.minY,p=a.maxY,m=function(U){return U*t._invScaleX},y=function(U){return U*t._invScaleY};e.each(function(U){var G=U[n],V=U[i],j=G._id.charAt(0)==="x",W=G.range;f===0&&W&&W[0]>W[1]!==j&&(l=-1);var Y=0,J=j?t.width:t.height;if(t.hovermode==="x"||t.hovermode==="y"){var re=cI(U,r),le=U.anchor,ne=le==="end"?-1:1,$,ce;if(le==="middle")$=U.crossPos+(j?y(re.y-U.by/2):m(U.bx/2+U.tx2width/2)),ce=$+(j?y(U.by):m(U.bx));else if(j)$=U.crossPos+y(Wt+re.y)-y(U.by/2-Wt),ce=$+y(U.by);else{var te=m(ne*Wt+re.x),ge=te+m(ne*U.bx);$=U.crossPos+Math.min(te,ge),ce=U.crossPos+Math.max(te,ge)}j?d!==void 0&&p!==void 0&&Math.min(ce,p)-Math.max($,d)>1&&(V.side==="left"?(Y=V._mainLinePosition,J=t.width):J=V._mainLinePosition):c!==void 0&&v!==void 0&&Math.min(ce,v)-Math.max($,c)>1&&(V.side==="top"?(Y=V._mainLinePosition,J=t.height):J=V._mainLinePosition)}u[f++]=[{datum:U,traceIndex:U.trace.index,dp:0,pos:U.pos,posref:U.posref,size:U.by*(j?I_e:1)/2,pmin:Y,pmax:J}]}),u.sort(function(U,G){return U[0].posref-G[0].posref||l*(G[0].traceIndex-U[0].traceIndex)});var b,T,w,x,_,k,M;function S(U){var G=U[0],V=U[U.length-1];if(T=G.pmin-G.pos-G.dp+G.size,w=V.pos+V.dp+V.size-G.pmax,T>.01){for(_=U.length-1;_>=0;_--)U[_].dp+=T;b=!1}if(!(w<.01)){if(T<-.01){for(_=U.length-1;_>=0;_--)U[_].dp-=w;b=!1}if(b){var j=0;for(x=0;xG.pmax&&j++;for(x=U.length-1;x>=0&&!(j<=0);x--)k=U[x],k.pos>G.pmax-1&&(k.del=!0,j--);for(x=0;x=0;_--)U[_].dp-=w;for(x=U.length-1;x>=0&&!(j<=0);x--)k=U[x],k.pos+k.dp+k.size>G.pmax&&(k.del=!0,j--)}}}for(;!b&&o<=s;){for(o++,b=!0,x=0;x.01){for(_=E.length-1;_>=0;_--)E[_].dp+=T;for(C.push.apply(C,E),u.splice(x+1,1),M=0,_=C.length-1;_>=0;_--)M+=C[_].dp;for(w=M/C.length,_=C.length-1;_>=0;_--)C[_].dp-=w;b=!1}else x++}u.forEach(S)}for(x=u.length-1;x>=0;x--){var I=u[x];for(_=I.length-1;_>=0;_--){var B=I[_],N=B.datum;N.offset=B.dp,N.del=B.del}}}function cI(e,r){var t=0,a=e.offset;return r&&(a*=-O_e,t=e.offset*B_e),{x:t,y:a}}function V_e(e){var r={start:1,end:-1,middle:0}[e.anchor],t=r*(Wt+$r),a=t+r*(e.txwidth+$r),n=e.anchor==="middle";return n&&(t-=e.tx2width/2,a+=e.txwidth/2+$r),{alignShift:r,textShiftX:t,text2ShiftX:a}}function ey(e,r,t,a){var n=function(o){return o*t},i=function(o){return o*a};e.each(function(o){var l=Jl.select(this);if(o.del)return l.remove();var s=l.select("text.nums"),u=o.anchor,f=u==="end"?-1:1,c=V_e(o),v=cI(o,r),d=v.x,p=v.y,m=u==="middle",y="hoverlabel"in o.trace?o.trace.hoverlabel.showarrow:!0,b;m?b="M-"+n(o.bx/2+o.tx2width/2)+","+i(p-o.by/2)+"h"+n(o.bx)+"v"+i(o.by)+"h-"+n(o.bx)+"Z":y?b="M0,0L"+n(f*Wt+d)+","+i(Wt+p)+"v"+i(o.by/2-Wt)+"h"+n(f*o.bx)+"v-"+i(o.by)+"H"+n(f*Wt+d)+"V"+i(p-Wt)+"Z":b="M"+n(f*Wt+d)+","+i(p-o.by/2)+"h"+n(f*o.bx)+"v"+i(o.by)+"h"+n(-f*o.bx)+"Z",l.select("path").attr("d",b);var T=d+c.textShiftX,w=p+o.ty0-o.by/2+$r,x=o.textAlign||"auto";x!=="auto"&&(x==="left"&&u!=="start"?(s.attr("text-anchor","start"),T=m?-o.bx/2-o.tx2width/2+$r:-o.bx-$r):x==="right"&&u!=="end"&&(s.attr("text-anchor","end"),T=m?o.bx/2-o.tx2width/2-$r:o.bx+$r)),s.call(Qt.positionText,n(T),i(w)),o.tx2width&&(l.select("text.name").call(Qt.positionText,n(c.text2ShiftX+c.alignShift*$r+d),i(p+o.ty0-o.by/2+$r)),l.select("rect").call(yl.setRect,n(c.text2ShiftX+(c.alignShift-1)*o.tx2width/2+d),i(p-o.by/2-1),n(o.tx2width),i(o.by+2)))})}function j_e(e,r){var t=e.index,a=e.trace||{},n=e.cd[0],i=e.cd[t]||{};function o(v){return v||$l(v)&&v===0}var l=Array.isArray(t)?function(v,d){var p=ia.castOption(n,t,v);return o(p)?p:ia.extractOption({},a,"",d)}:function(v,d){return ia.extractOption(i,a,v,d)};function s(v,d,p){var m=l(d,p);o(m)&&(e[v]=m)}if(s("hoverinfo","hi","hoverinfo"),s("bgcolor","hbg","hoverlabel.bgcolor"),s("borderColor","hbc","hoverlabel.bordercolor"),s("fontFamily","htf","hoverlabel.font.family"),s("fontSize","hts","hoverlabel.font.size"),s("fontColor","htc","hoverlabel.font.color"),s("fontWeight","htw","hoverlabel.font.weight"),s("fontStyle","hty","hoverlabel.font.style"),s("fontVariant","htv","hoverlabel.font.variant"),s("nameLength","hnl","hoverlabel.namelength"),s("textAlign","hta","hoverlabel.align"),e.posref=r==="y"||r==="closest"&&a.orientation==="h"?e.xa._offset+(e.x0+e.x1)/2:e.ya._offset+(e.y0+e.y1)/2,e.x0=ia.constrain(e.x0,0,e.xa._length),e.x1=ia.constrain(e.x1,0,e.xa._length),e.y0=ia.constrain(e.y0,0,e.ya._length),e.y1=ia.constrain(e.y1,0,e.ya._length),e.xLabelVal!==void 0&&(e.xLabel="xLabel"in e?e.xLabel:gl.hoverLabelText(e.xa,e.xLabelVal,a.xhoverformat),e.xVal=e.xa.c2d(e.xLabelVal)),e.yLabelVal!==void 0&&(e.yLabel="yLabel"in e?e.yLabel:gl.hoverLabelText(e.ya,e.yLabelVal,a.yhoverformat),e.yVal=e.ya.c2d(e.yLabelVal)),e.zLabelVal!==void 0&&e.zLabel===void 0&&(e.zLabel=String(e.zLabelVal)),!isNaN(e.xerr)&&!(e.xa.type==="log"&&e.xerr<=0)){var u=gl.tickText(e.xa,e.xa.c2l(e.xerr),"hover").text;e.xerrneg!==void 0?e.xLabel+=" +"+u+" / -"+gl.tickText(e.xa,e.xa.c2l(e.xerrneg),"hover").text:e.xLabel+=" \xB1 "+u,r==="x"&&(e.distance+=1)}if(!isNaN(e.yerr)&&!(e.ya.type==="log"&&e.yerr<=0)){var f=gl.tickText(e.ya,e.ya.c2l(e.yerr),"hover").text;e.yerrneg!==void 0?e.yLabel+=" +"+f+" / -"+gl.tickText(e.ya,e.ya.c2l(e.yerrneg),"hover").text:e.yLabel+=" \xB1 "+f,r==="y"&&(e.distance+=1)}var c=e.hoverinfo||e.trace.hoverinfo;return c&&c!=="all"&&(c=Array.isArray(c)?c:c.split("+"),c.indexOf("x")===-1&&(e.xLabel=void 0),c.indexOf("y")===-1&&(e.yLabel=void 0),c.indexOf("z")===-1&&(e.zLabel=void 0),c.indexOf("text")===-1&&(e.text=void 0),c.indexOf("name")===-1&&(e.name=void 0)),e}function nI(e,r,t){var a=t.container,n=t.fullLayout,i=n._size,o=t.event,l=!!r.hLinePoint,s=!!r.vLinePoint,u,f;if(a.selectAll(".spikeline").remove(),!!(s||l)){var c=Ea.combine(n.plot_bgcolor,n.paper_bgcolor);if(l){var v=r.hLinePoint,d,p;u=v&&v.xa,f=v&&v.ya;var m=f.spikesnap;m==="cursor"?(d=o.pointerX,p=o.pointerY):(d=u._offset+v.x,p=f._offset+v.y);var y=Ea.wcagContrast(v.color,c)<1.5?Ea.contrast(c):v.color,b=f.spikemode,T=f.spikethickness,w=f.spikecolor||y,x=gl.getPxPosition(e,f),_,k;if(b.indexOf("toaxis")!==-1||b.indexOf("across")!==-1){if(b.indexOf("toaxis")!==-1&&(_=x,k=d),b.indexOf("across")!==-1){var M=f._counterDomainMin,S=f._counterDomainMax;f.anchor==="free"&&(M=Math.min(M,f.position),S=Math.max(S,f.position)),_=i.l+M*i.w,k=i.l+S*i.w}a.insert("line",":first-child").attr({x1:_,x2:k,y1:p,y2:p,"stroke-width":T,stroke:w,"stroke-dasharray":yl.dashStyle(f.spikedash,T)}).classed("spikeline",!0).classed("crisp",!0),a.insert("line",":first-child").attr({x1:_,x2:k,y1:p,y2:p,"stroke-width":T+2,stroke:c}).classed("spikeline",!0).classed("crisp",!0)}b.indexOf("marker")!==-1&&a.insert("circle",":first-child").attr({cx:x+(f.side!=="right"?T:-T),cy:p,r:T,fill:w}).classed("spikeline",!0)}if(s){var C=r.vLinePoint,E,P;u=C&&C.xa,f=C&&C.ya;var R=u.spikesnap;R==="cursor"?(E=o.pointerX,P=o.pointerY):(E=u._offset+C.x,P=f._offset+C.y);var I=Ea.wcagContrast(C.color,c)<1.5?Ea.contrast(c):C.color,B=u.spikemode,N=u.spikethickness,U=u.spikecolor||I,G=gl.getPxPosition(e,u),V,j;if(B.indexOf("toaxis")!==-1||B.indexOf("across")!==-1){if(B.indexOf("toaxis")!==-1&&(V=G,j=P),B.indexOf("across")!==-1){var W=u._counterDomainMin,Y=u._counterDomainMax;u.anchor==="free"&&(W=Math.min(W,u.position),Y=Math.max(Y,u.position)),V=i.t+(1-Y)*i.h,j=i.t+(1-W)*i.h}a.insert("line",":first-child").attr({x1:E,x2:E,y1:V,y2:j,"stroke-width":N,stroke:U,"stroke-dasharray":yl.dashStyle(u.spikedash,N)}).classed("spikeline",!0).classed("crisp",!0),a.insert("line",":first-child").attr({x1:E,x2:E,y1:V,y2:j,"stroke-width":N+2,stroke:c}).classed("spikeline",!0).classed("crisp",!0)}B.indexOf("marker")!==-1&&a.insert("circle",":first-child").attr({cx:E,cy:G-(u.side!=="top"?N:-N),r:N,fill:U}).classed("spikeline",!0)}}}function W_e(e,r,t){if(!t||t.length!==e._hoverdata.length)return!0;for(var a=t.length-1;a>=0;a--){var n=t[a],i=e._hoverdata[a];if(n.curveNumber!==i.curveNumber||String(n.pointNumber)!==String(i.pointNumber)||String(n.pointNumbers)!==String(i.pointNumbers)||n.binNumber!==i.binNumber)return!0}return!1}function iI(e,r){return!r||r.vLinePoint!==e._spikepoints.vLinePoint||r.hLinePoint!==e._spikepoints.hLinePoint}function oI(e,r){return Qt.plainText(e||"",{len:r,allowedTags:["br","sub","sup","b","i","em","s","u"]})}function X_e(e,r){for(var t=r.charAt(0),a=[],n=[],i=[],o=0;oe.offsetTop+e.clientTop,hI=e=>e.offsetLeft+e.clientLeft;function Qm(e,r){var t=e._fullLayout,a=r.getBoundingClientRect(),n=a.left,i=a.top,o=n+a.width,l=i+a.height,s=ia.apply3DTransform(t._invTransform)(n,i),u=ia.apply3DTransform(t._invTransform)(o,l),f=s[0],c=s[1],v=u[0],d=u[1];return{x:f,y:c,width:v-f,height:d-c,top:Math.min(c,d),left:Math.min(f,v),right:Math.max(f,v),bottom:Math.max(c,d)}}});var ry=z((EZe,dI)=>{"use strict";var Z_e=ke(),$_e=qr(),J_e=No().isUnifiedHover;dI.exports=function(r,t,a,n){n=n||{};var i=t.legend;function o(l){n.font[l]||(n.font[l]=i?t.legend.font[l]:t.font[l])}t&&J_e(t.hovermode)&&(n.font||(n.font={}),o("size"),o("family"),o("color"),o("weight"),o("style"),o("variant"),i?(n.bgcolor||(n.bgcolor=$_e.combine(t.legend.bgcolor,t.paper_bgcolor)),n.bordercolor||(n.bordercolor=t.legend.bordercolor)):n.bgcolor||(n.bgcolor=t.paper_bgcolor)),a("hoverlabel.bgcolor",n.bgcolor),a("hoverlabel.bordercolor",n.bordercolor),a("hoverlabel.namelength",n.namelength),a("hoverlabel.showarrow",n.showarrow),Z_e.coerceFont(a,"hoverlabel.font",n.font),a("hoverlabel.align",n.align)}});var mI=z((PZe,pI)=>{"use strict";var K_e=ke(),Q_e=ry(),e4e=Sc();pI.exports=function(r,t){function a(n,i){return K_e.coerce(r,t,e4e,n,i)}Q_e(r,t,a)}});var bI=z((RZe,gI)=>{"use strict";var yI=ke(),r4e=W1(),t4e=ry();gI.exports=function(r,t,a,n){function i(l,s){return yI.coerce(r,t,r4e,l,s)}var o=yI.extendFlat({},n.hoverlabel);t.hovertemplate&&(o.namelength=-1),t4e(r,t,i,o)}});var A7=z((FZe,xI)=>{"use strict";var a4e=ke(),n4e=Sc();xI.exports=function(r,t){function a(n,i){return t[n]!==void 0?t[n]:a4e.coerce(r,t,n4e,n,i)}return a("clickmode"),a("hoversubplots"),a("hoveranywhere"),a("clickanywhere"),a("hovermode")}});var TI=z((zZe,wI)=>{"use strict";var _I=ke(),i4e=Sc(),o4e=A7(),l4e=ry();wI.exports=function(r,t){function a(u,f){return _I.coerce(r,t,i4e,u,f)}var n=o4e(r,t);n&&(a("hoverdistance"),a("spikedistance"),n.indexOf("unified")!==-1&&a("hoversort"));var i=a("dragmode");i==="select"&&a("selectdirection");var o=t._has("map"),l=t._has("geo"),s=t._basePlotModules.length;t.dragmode==="zoom"&&((o||l)&&s===1||o&&l&&s===2)&&(t.dragmode="pan"),l4e(r,t,a),_I.coerceFont(a,"hoverlabel.grouptitlefont",t.hoverlabel.font)}});var kI=z((NZe,MI)=>{"use strict";var M7=ke(),AI=Ar();MI.exports=function(r){var t=r.calcdata,a=r._fullLayout;function n(u){return function(f){return M7.coerceHoverinfo({hoverinfo:f},{_module:u._module},a)}}for(var i=0;i{"use strict";var u4e=Ar(),SI=No(),f4e=T7().hover;qI.exports=function(r,t,a){var n=u4e.getComponentMethod("annotations","onClick")(r,r._hoverdata),i=r._fullLayout;a!==void 0&&f4e(r,t,a,!0);function o(){var s,u,f,c,v,d;var l={points:r._hoverdata,event:t};(s=l.xaxes)!=null||(l.xaxes=r._hoverXAxes),(u=l.yaxes)!=null||(l.yaxes=r._hoverYAxes),(f=l.xvals)!=null||(l.xvals=r._hoverXVals&&SI.c2dApply(r._hoverXAxes,r._hoverXVals)),(c=l.yvals)!=null||(l.yvals=r._hoverYVals&&SI.c2dApply(r._hoverYAxes,r._hoverYVals)),(v=l.xPixel)!=null||(l.xPixel=r._hoverPointerX),(d=l.yPixel)!=null||(l.yPixel=r._hoverPointerY),r.emit("plotly_click",l)}(r._hoverdata||i.clickanywhere)&&t&&t.target&&(r._hoverdata||(r._hoverdata=[]),n&&n.then?n.then(o):o(),t.stopImmediatePropagation&&t.stopImmediatePropagation())}});var Yn=z((BZe,EI)=>{"use strict";var c4e=Pr(),ty=ke(),v4e=Xi(),Jh=No(),CI=Sc(),DI=T7();EI.exports={moduleType:"component",name:"fx",constants:(ah(),Ne(th)),schema:{layout:CI},attributes:W1(),layoutAttributes:CI,supplyLayoutGlobalDefaults:mI(),supplyDefaults:bI(),supplyLayoutDefaults:TI(),calc:kI(),getDistanceFunction:Jh.getDistanceFunction,getClosest:Jh.getClosest,inbox:Jh.inbox,quadrature:Jh.quadrature,appendArrayPointValue:Jh.appendArrayPointValue,castHoverOption:d4e,castHoverinfo:p4e,hover:DI.hover,unhover:v4e.unhover,loneHover:DI.loneHover,loneUnhover:h4e,click:LI()};function h4e(e){var r=ty.isD3Selection(e)?e:c4e.select(e);r.selectAll("g.hovertext").remove(),r.selectAll(".spikeline").remove()}function d4e(e,r,t){return ty.castOption(e,r,"hoverlabel."+t)}function p4e(e,r,t){function a(n){return ty.coerceHoverinfo({hoverinfo:n},{_module:e._module},r)}return ty.castOption(e,t,"hoverinfo",a)}});var yf=z(Kl=>{"use strict";Kl.selectMode=function(e){return e==="lasso"||e==="select"};Kl.drawMode=function(e){return e==="drawclosedpath"||e==="drawopenpath"||e==="drawline"||e==="drawrect"||e==="drawcircle"};Kl.openMode=function(e){return e==="drawline"||e==="drawopenpath"};Kl.rectMode=function(e){return e==="select"||e==="drawline"||e==="drawrect"||e==="drawcircle"};Kl.freeMode=function(e){return e==="lasso"||e==="drawclosedpath"||e==="drawopenpath"};Kl.selectingOrDrawing=function(e){return Kl.freeMode(e)||Kl.rectMode(e)}});var ay=z((HZe,PI)=>{"use strict";PI.exports=function(r){var t=r._fullLayout;t._glcanvas&&t._glcanvas.size()&&t._glcanvas.each(function(a){a.regl&&a.regl.clear({color:!0,depth:!0})})}});var ny=z((UZe,RI)=>{"use strict";RI.exports={undo:{width:857.1,height:1e3,path:"m857 350q0-87-34-166t-91-137-137-92-166-34q-96 0-183 41t-147 114q-4 6-4 13t5 11l76 77q6 5 14 5 9-1 13-7 41-53 100-82t126-29q58 0 110 23t92 61 61 91 22 111-22 111-61 91-92 61-110 23q-55 0-105-20t-90-57l77-77q17-16 8-38-10-23-33-23h-250q-15 0-25 11t-11 25v250q0 24 22 33 22 10 39-8l72-72q60 57 137 88t159 31q87 0 166-34t137-92 91-137 34-166z",transform:"matrix(1 0 0 -1 0 850)"},home:{width:928.6,height:1e3,path:"m786 296v-267q0-15-11-26t-25-10h-214v214h-143v-214h-214q-15 0-25 10t-11 26v267q0 1 0 2t0 2l321 264 321-264q1-1 1-4z m124 39l-34-41q-5-5-12-6h-2q-7 0-12 3l-386 322-386-322q-7-4-13-4-7 2-12 7l-35 41q-4 5-3 13t6 12l401 334q18 15 42 15t43-15l136-114v109q0 8 5 13t13 5h107q8 0 13-5t5-13v-227l122-102q5-5 6-12t-4-13z",transform:"matrix(1 0 0 -1 0 850)"},"camera-retro":{width:1e3,height:1e3,path:"m518 386q0 8-5 13t-13 5q-37 0-63-27t-26-63q0-8 5-13t13-5 12 5 5 13q0 23 16 38t38 16q8 0 13 5t5 13z m125-73q0-59-42-101t-101-42-101 42-42 101 42 101 101 42 101-42 42-101z m-572-320h858v71h-858v-71z m643 320q0 89-62 152t-152 62-151-62-63-152 63-151 151-63 152 63 62 151z m-571 358h214v72h-214v-72z m-72-107h858v143h-462l-36-71h-360v-72z m929 143v-714q0-30-21-51t-50-21h-858q-29 0-50 21t-21 51v714q0 30 21 51t50 21h858q29 0 50-21t21-51z",transform:"matrix(1 0 0 -1 0 850)"},curlybraces:{width:18,height:16,path:"M 9,4 C 7.354992,4 6,5.354992 6,7 V 9 C 6,9.2999997 5.8778068,9.8883542 5.5878906,10.291016 5.2979744,10.693677 4.9222213,11 4,11 a 1.0001,1.0001 0 0 0 0,2 c 0.2999997,0 0.8883542,0.122193 1.2910156,0.412109 C 5.693677,13.702026 6,14.077779 6,15 v 2 c 0,1.645008 1.354992,3 3,3 h 0.5 a 1,1 0 0 0 1,-1 1,1 0 0 0 -1,-1 H 9 C 8.4358712,18 8,17.564129 8,17 V 15 C 8,13.625876 7.3766799,12.602305 6.6113281,11.96875 6.8086352,11.794047 7.0679793,11.657537 7.2109375,11.458984 7.8210204,10.611647 8,9.6999993 8,9 V 7 C 8,6.4358712 8.4358712,6 9,6 h 0.5 a 1,1 0 0 0 1,-1 1,1 0 0 0 -1,-1 z m 5.5,0 a 1,1 0 0 0 -1,1 1,1 0 0 0 1,1 H 15 c 0.564129,0 1,0.4358712 1,1 v 2 c 0,0.6999993 0.17898,1.611647 0.789062,2.458984 0.142959,0.198553 0.402303,0.335063 0.59961,0.509766 C 16.62332,12.602305 16,13.625876 16,15 v 2 c 0,0.564129 -0.435871,1 -1,1 h -0.5 a 1,1 0 0 0 -1,1 1,1 0 0 0 1,1 H 15 c 1.645008,0 3,-1.354992 3,-3 v -2 c 0,-0.922221 0.306323,-1.297974 0.708984,-1.587891 C 19.111646,13.122193 19.7,13 20,13 a 1.0001,1.0001 0 0 0 0,-2 C 19.077779,11 18.702026,10.693677 18.412109,10.291016 18.122193,9.8883542 18,9.2999997 18,9 V 7 C 18,5.354992 16.645008,4 15,4 Z",transform:"translate(-3 -4)"},zoombox:{width:1e3,height:1e3,path:"m1000-25l-250 251c40 63 63 138 63 218 0 224-182 406-407 406-224 0-406-182-406-406s183-406 407-406c80 0 155 22 218 62l250-250 125 125z m-812 250l0 438 437 0 0-438-437 0z m62 375l313 0 0-312-313 0 0 312z",transform:"matrix(1 0 0 -1 0 850)"},pan:{width:1e3,height:1e3,path:"m1000 350l-187 188 0-125-250 0 0 250 125 0-188 187-187-187 125 0 0-250-250 0 0 125-188-188 186-187 0 125 252 0 0-250-125 0 187-188 188 188-125 0 0 250 250 0 0-126 187 188z",transform:"matrix(1 0 0 -1 0 850)"},zoom_plus:{width:875,height:1e3,path:"m1 787l0-875 875 0 0 875-875 0z m687-500l-187 0 0-187-125 0 0 187-188 0 0 125 188 0 0 187 125 0 0-187 187 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},zoom_minus:{width:875,height:1e3,path:"m0 788l0-876 875 0 0 876-875 0z m688-500l-500 0 0 125 500 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},autoscale:{width:1e3,height:1e3,path:"m250 850l-187 0-63 0 0-62 0-188 63 0 0 188 187 0 0 62z m688 0l-188 0 0-62 188 0 0-188 62 0 0 188 0 62-62 0z m-875-938l0 188-63 0 0-188 0-62 63 0 187 0 0 62-187 0z m875 188l0-188-188 0 0-62 188 0 62 0 0 62 0 188-62 0z m-125 188l-1 0-93-94-156 156 156 156 92-93 2 0 0 250-250 0 0-2 93-92-156-156-156 156 94 92 0 2-250 0 0-250 0 0 93 93 157-156-157-156-93 94 0 0 0-250 250 0 0 0-94 93 156 157 156-157-93-93 0 0 250 0 0 250z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_basic:{width:1500,height:1e3,path:"m375 725l0 0-375-375 375-374 0-1 1125 0 0 750-1125 0z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_compare:{width:1125,height:1e3,path:"m187 786l0 2-187-188 188-187 0 0 937 0 0 373-938 0z m0-499l0 1-187-188 188-188 0 0 937 0 0 376-938-1z",transform:"matrix(1 0 0 -1 0 850)"},plotlylogo:{width:1542,height:1e3,path:"m0-10h182v-140h-182v140z m228 146h183v-286h-183v286z m225 714h182v-1000h-182v1000z m225-285h182v-715h-182v715z m225 142h183v-857h-183v857z m231-428h182v-429h-182v429z m225-291h183v-138h-183v138z",transform:"matrix(1 0 0 -1 0 850)"},"z-axis":{width:1e3,height:1e3,path:"m833 5l-17 108v41l-130-65 130-66c0 0 0 38 0 39 0-1 36-14 39-25 4-15-6-22-16-30-15-12-39-16-56-20-90-22-187-23-279-23-261 0-341 34-353 59 3 60 228 110 228 110-140-8-351-35-351-116 0-120 293-142 474-142 155 0 477 22 477 142 0 50-74 79-163 96z m-374 94c-58-5-99-21-99-40 0-24 65-43 144-43 79 0 143 19 143 43 0 19-42 34-98 40v216h87l-132 135-133-135h88v-216z m167 515h-136v1c16 16 31 34 46 52l84 109v54h-230v-71h124v-1c-16-17-28-32-44-51l-89-114v-51h245v72z",transform:"matrix(1 0 0 -1 0 850)"},"3d_rotate":{width:1e3,height:1e3,path:"m922 660c-5 4-9 7-14 11-359 263-580-31-580-31l-102 28 58-400c0 1 1 1 2 2 118 108 351 249 351 249s-62 27-100 42c88 83 222 183 347 122 16-8 30-17 44-27-2 1-4 2-6 4z m36-329c0 0 64 229-88 296-62 27-124 14-175-11 157-78 225-208 249-266 8-19 11-31 11-31 2 5 6 15 11 32-5-13-8-20-8-20z m-775-239c70-31 117-50 198-32-121 80-199 346-199 346l-96-15-58-12c0 0 55-226 155-287z m603 133l-317-139c0 0 4-4 19-14 7-5 24-15 24-15s-177-147-389 4c235-287 536-112 536-112l31-22 100 299-4-1z m-298-153c6-4 14-9 24-15 0 0-17 10-24 15z",transform:"matrix(1 0 0 -1 0 850)"},camera:{width:1e3,height:1e3,path:"m500 450c-83 0-150-67-150-150 0-83 67-150 150-150 83 0 150 67 150 150 0 83-67 150-150 150z m400 150h-120c-16 0-34 13-39 29l-31 93c-6 15-23 28-40 28h-340c-16 0-34-13-39-28l-31-94c-6-15-23-28-40-28h-120c-55 0-100-45-100-100v-450c0-55 45-100 100-100h800c55 0 100 45 100 100v450c0 55-45 100-100 100z m-400-550c-138 0-250 112-250 250 0 138 112 250 250 250 138 0 250-112 250-250 0-138-112-250-250-250z m365 380c-19 0-35 16-35 35 0 19 16 35 35 35 19 0 35-16 35-35 0-19-16-35-35-35z",transform:"matrix(1 0 0 -1 0 850)"},movie:{width:1e3,height:1e3,path:"m938 413l-188-125c0 37-17 71-44 94 64 38 107 107 107 187 0 121-98 219-219 219-121 0-219-98-219-219 0-61 25-117 66-156h-115c30 33 49 76 49 125 0 103-84 187-187 187s-188-84-188-187c0-57 26-107 65-141-38-22-65-62-65-109v-250c0-70 56-126 125-126h500c69 0 125 56 125 126l188-126c34 0 62 28 62 63v375c0 35-28 63-62 63z m-750 0c-69 0-125 56-125 125s56 125 125 125 125-56 125-125-56-125-125-125z m406-1c-87 0-157 70-157 157 0 86 70 156 157 156s156-70 156-156-70-157-156-157z",transform:"matrix(1 0 0 -1 0 850)"},question:{width:857.1,height:1e3,path:"m500 82v107q0 8-5 13t-13 5h-107q-8 0-13-5t-5-13v-107q0-8 5-13t13-5h107q8 0 13 5t5 13z m143 375q0 49-31 91t-77 65-95 23q-136 0-207-119-9-14 4-24l74-55q4-4 10-4 9 0 14 7 30 38 48 51 19 14 48 14 27 0 48-15t21-33q0-21-11-34t-38-25q-35-16-65-48t-29-70v-20q0-8 5-13t13-5h107q8 0 13 5t5 13q0 10 12 27t30 28q18 10 28 16t25 19 25 27 16 34 7 45z m214-107q0-117-57-215t-156-156-215-58-216 58-155 156-58 215 58 215 155 156 216 58 215-58 156-156 57-215z",transform:"matrix(1 0 0 -1 0 850)"},disk:{width:857.1,height:1e3,path:"m214-7h429v214h-429v-214z m500 0h72v500q0 8-6 21t-11 20l-157 156q-5 6-19 12t-22 5v-232q0-22-15-38t-38-16h-322q-22 0-37 16t-16 38v232h-72v-714h72v232q0 22 16 38t37 16h465q22 0 38-16t15-38v-232z m-214 518v178q0 8-5 13t-13 5h-107q-7 0-13-5t-5-13v-178q0-8 5-13t13-5h107q7 0 13 5t5 13z m357-18v-518q0-22-15-38t-38-16h-750q-23 0-38 16t-16 38v750q0 22 16 38t38 16h517q23 0 50-12t42-26l156-157q16-15 27-42t11-49z",transform:"matrix(1 0 0 -1 0 850)"},cloudupload:{width:640,height:640,path:"M451.5 160C434.9 160 418.8 164.5 404.7 172.7C388.9 156.7 370.5 143.3 350.2 133.2C378.4 109.2 414.3 96 451.5 96C537.9 96 608 166 608 252.5C608 294 591.5 333.8 562.2 363.1L491.1 434.2C461.8 463.5 422 480 380.5 480C294.1 480 224 410 224 323.5C224 322 224 320.5 224.1 319C224.6 301.3 239.3 287.4 257 287.9C274.7 288.4 288.6 303.1 288.1 320.8C288.1 321.7 288.1 322.6 288.1 323.4C288.1 374.5 329.5 415.9 380.6 415.9C405.1 415.9 428.6 406.2 446 388.8L517.1 317.7C534.4 300.4 544.2 276.8 544.2 252.3C544.2 201.2 502.8 159.8 451.7 159.8zM307.2 237.3C305.3 236.5 303.4 235.4 301.7 234.2C289.1 227.7 274.7 224 259.6 224C235.1 224 211.6 233.7 194.2 251.1L123.1 322.2C105.8 339.5 96 363.1 96 387.6C96 438.7 137.4 480.1 188.5 480.1C205 480.1 221.1 475.7 235.2 467.5C251 483.5 269.4 496.9 289.8 507C261.6 530.9 225.8 544.2 188.5 544.2C102.1 544.2 32 474.2 32 387.7C32 346.2 48.5 306.4 77.8 277.1L148.9 206C178.2 176.7 218 160.2 259.5 160.2C346.1 160.2 416 230.8 416 317.1C416 318.4 416 319.7 416 321C415.6 338.7 400.9 352.6 383.2 352.2C365.5 351.8 351.6 337.1 352 319.4C352 318.6 352 317.9 352 317.1C352 283.4 334 253.8 307.2 237.5z",transform:"matrix(1 0 0 1 -15 -15)"},drawopenpath:{width:70,height:70,path:"M33.21,85.65a7.31,7.31,0,0,1-2.59-.48c-8.16-3.11-9.27-19.8-9.88-41.3-.1-3.58-.19-6.68-.35-9-.15-2.1-.67-3.48-1.43-3.79-2.13-.88-7.91,2.32-12,5.86L3,32.38c1.87-1.64,11.55-9.66,18.27-6.9,2.13.87,4.75,3.14,5.17,9,.17,2.43.26,5.59.36,9.25a224.17,224.17,0,0,0,1.5,23.4c1.54,10.76,4,12.22,4.48,12.4.84.32,2.79-.46,5.76-3.59L43,80.07C41.53,81.57,37.68,85.64,33.21,85.65ZM74.81,69a11.34,11.34,0,0,0,6.09-6.72L87.26,44.5,74.72,32,56.9,38.35c-2.37.86-5.57,3.42-6.61,6L38.65,72.14l8.42,8.43ZM55,46.27a7.91,7.91,0,0,1,3.64-3.17l14.8-5.3,8,8L76.11,60.6l-.06.19a6.37,6.37,0,0,1-3,3.43L48.25,74.59,44.62,71Zm16.57,7.82A6.9,6.9,0,1,0,64.64,61,6.91,6.91,0,0,0,71.54,54.09Zm-4.05,0a2.85,2.85,0,1,1-2.85-2.85A2.86,2.86,0,0,1,67.49,54.09Zm-4.13,5.22L60.5,56.45,44.26,72.7l2.86,2.86ZM97.83,35.67,84.14,22l-8.57,8.57L89.26,44.24Zm-13.69-8,8,8-2.85,2.85-8-8Z",transform:"matrix(1 0 0 1 -15 -15)"},drawclosedpath:{width:90,height:90,path:"M88.41,21.12a26.56,26.56,0,0,0-36.18,0l-2.07,2-2.07-2a26.57,26.57,0,0,0-36.18,0,23.74,23.74,0,0,0,0,34.8L48,90.12a3.22,3.22,0,0,0,4.42,0l36-34.21a23.73,23.73,0,0,0,0-34.79ZM84,51.24,50.16,83.35,16.35,51.25a17.28,17.28,0,0,1,0-25.47,20,20,0,0,1,27.3,0l4.29,4.07a3.23,3.23,0,0,0,4.44,0l4.29-4.07a20,20,0,0,1,27.3,0,17.27,17.27,0,0,1,0,25.46ZM66.76,47.68h-33v6.91h33ZM53.35,35H46.44V68h6.91Z",transform:"matrix(1 0 0 1 -5 -5)"},lasso:{width:1031,height:1e3,path:"m1018 538c-36 207-290 336-568 286-277-48-473-256-436-463 10-57 36-108 76-151-13-66 11-137 68-183 34-28 75-41 114-42l-55-70 0 0c-2-1-3-2-4-3-10-14-8-34 5-45 14-11 34-8 45 4 1 1 2 3 2 5l0 0 113 140c16 11 31 24 45 40 4 3 6 7 8 11 48-3 100 0 151 9 278 48 473 255 436 462z m-624-379c-80 14-149 48-197 96 42 42 109 47 156 9 33-26 47-66 41-105z m-187-74c-19 16-33 37-39 60 50-32 109-55 174-68-42-25-95-24-135 8z m360 75c-34-7-69-9-102-8 8 62-16 128-68 170-73 59-175 54-244-5-9 20-16 40-20 61-28 159 121 317 333 354s407-60 434-217c28-159-121-318-333-355z",transform:"matrix(1 0 0 -1 0 850)"},selectbox:{width:1e3,height:1e3,path:"m0 850l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-285l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z",transform:"matrix(1 0 0 -1 0 850)"},drawline:{width:70,height:70,path:"M60.64,62.3a11.29,11.29,0,0,0,6.09-6.72l6.35-17.72L60.54,25.31l-17.82,6.4c-2.36.86-5.57,3.41-6.6,6L24.48,65.5l8.42,8.42ZM40.79,39.63a7.89,7.89,0,0,1,3.65-3.17l14.79-5.31,8,8L61.94,54l-.06.19a6.44,6.44,0,0,1-3,3.43L34.07,68l-3.62-3.63Zm16.57,7.81a6.9,6.9,0,1,0-6.89,6.9A6.9,6.9,0,0,0,57.36,47.44Zm-4,0a2.86,2.86,0,1,1-2.85-2.85A2.86,2.86,0,0,1,53.32,47.44Zm-4.13,5.22L46.33,49.8,30.08,66.05l2.86,2.86ZM83.65,29,70,15.34,61.4,23.9,75.09,37.59ZM70,21.06l8,8-2.84,2.85-8-8ZM87,80.49H10.67V87H87Z",transform:"matrix(1 0 0 1 -15 -15)"},drawrect:{width:80,height:80,path:"M78,22V79H21V22H78m9-9H12V88H87V13ZM68,46.22H31V54H68ZM53,32H45.22V69H53Z",transform:"matrix(1 0 0 1 -10 -10)"},drawcircle:{width:80,height:80,path:"M50,84.72C26.84,84.72,8,69.28,8,50.3S26.84,15.87,50,15.87,92,31.31,92,50.3,73.16,84.72,50,84.72Zm0-60.59c-18.6,0-33.74,11.74-33.74,26.17S31.4,76.46,50,76.46,83.74,64.72,83.74,50.3,68.6,24.13,50,24.13Zm17.15,22h-34v7.11h34Zm-13.8-13H46.24v34h7.11Z",transform:"matrix(1 0 0 1 -10 -10)"},eraseshape:{width:80,height:80,path:"M82.77,78H31.85L6,49.57,31.85,21.14H82.77a8.72,8.72,0,0,1,8.65,8.77V69.24A8.72,8.72,0,0,1,82.77,78ZM35.46,69.84H82.77a.57.57,0,0,0,.49-.6V29.91a.57.57,0,0,0-.49-.61H35.46L17,49.57Zm32.68-34.7-24,24,5,5,24-24Zm-19,.53-5,5,24,24,5-5Z",transform:"matrix(1 0 0 1 -10 -10)"},spikeline:{width:1e3,height:1e3,path:"M512 409c0-57-46-104-103-104-57 0-104 47-104 104 0 57 47 103 104 103 57 0 103-46 103-103z m-327-39l92 0 0 92-92 0z m-185 0l92 0 0 92-92 0z m370-186l92 0 0 93-92 0z m0-184l92 0 0 92-92 0z",transform:"matrix(1.5 0 0 -1.5 0 850)"},pencil:{width:1792,height:1792,path:"M491 1536l91-91-235-235-91 91v107h128v128h107zm523-928q0-22-22-22-10 0-17 7l-542 542q-7 7-7 17 0 22 22 22 10 0 17-7l542-542q7-7 7-17zm-54-192l416 416-832 832h-416v-416zm683 96q0 53-37 90l-166 166-416-416 166-165q36-38 90-38 53 0 91 38l235 234q37 39 37 91z",transform:"matrix(1 0 0 1 0 1)"},newplotlylogo:{name:"newplotlylogo",svg:[""," plotly-logomark"," "," "," "," "," "," "," "," "," "," "," "," "," ",""].join("")}}});var iy={};Dt(iy,{CIRCLE_SIDES:()=>m4e,SQRT2:()=>T4e,cos45:()=>_4e,i000:()=>y4e,i090:()=>g4e,i180:()=>b4e,i270:()=>x4e,sin45:()=>w4e});var m4e,y4e,g4e,b4e,x4e,_4e,w4e,T4e,oy=Ct(()=>{"use strict";m4e=32,y4e=0,g4e=8,b4e=16,x4e=24,_4e=Math.cos(Math.PI/4),w4e=Math.sin(Math.PI/4),T4e=Math.sqrt(2)});var ly=z((GZe,zI)=>{"use strict";var A4e=ke().strTranslate;function FI(e,r){switch(e.type){case"log":return e.p2d(r);case"date":return e.p2r(r,0,e.calendar);default:return e.p2r(r)}}function M4e(e,r){switch(e.type){case"log":return e.d2p(r);case"date":return e.r2p(r,0,e.calendar);default:return e.r2p(r)}}function k4e(e){var r=e._id.charAt(0)==="y"?1:0;return function(t){return FI(e,t[r])}}function S4e(e){return A4e(e.xaxis._offset,e.yaxis._offset)}zI.exports={p2r:FI,r2p:M4e,axValue:k4e,getTransform:S4e}});var js=z(Ql=>{"use strict";var q4e=v6(),BI=(oy(),Ne(iy)),m0=BI.CIRCLE_SIDES,k7=BI.SQRT2,OI=ly(),NI=OI.p2r,II=OI.r2p,L4e=[0,3,4,5,6,1,2],C4e=[0,3,4,1,2];Ql.writePaths=function(e){var r=e.length;if(!r)return"M0,0Z";for(var t="",a=0;a0&&s{"use strict";var HI=Ca(),jI=yf(),D4e=jI.drawMode,E4e=jI.openMode,y0=(oy(),Ne(iy)),UI=y0.i000,GI=y0.i090,YI=y0.i180,VI=y0.i270,P4e=y0.cos45,R4e=y0.sin45,WI=ly(),uy=WI.p2r,Ws=WI.r2p,F4e=zs(),z4e=F4e.clearOutline,fy=js(),N4e=fy.readPaths,I4e=fy.writePaths,B4e=fy.ellipseOver,O4e=fy.fixDatesForPaths;function H4e(e,r){if(e.length){var t=e[0][0];if(t){var a=r.gd,n=r.isActiveShape,i=r.dragmode,o=(a.layout||{}).shapes||[];if(!D4e(i)&&n!==void 0){var l=a._fullLayout._activeShapeIndex;if(l{"use strict";var U4e=yf(),G4e=U4e.selectMode,Y4e=zs(),V4e=Y4e.clearOutline,S7=js(),j4e=S7.readPaths,W4e=S7.writePaths,X4e=S7.fixDatesForPaths;$I.exports=function(r,t){if(r.length){var a=r[0][0];if(a){var n=a.getAttribute("d"),i=t.gd,o=i._fullLayout.newselection,l=t.plotinfo,s=l.xaxis,u=l.yaxis,f=t.isActiveSelection,c=t.dragmode,v=(i.layout||{}).selections||[];if(!G4e(c)&&f!==void 0){var d=i._fullLayout._activeSelectionIndex;if(dQ4e,paramIsX:()=>J4e,paramIsY:()=>K4e,paramRE:()=>$4e,segmentRE:()=>Z4e});var Z4e,$4e,J4e,K4e,Q4e,ed=Ct(()=>{"use strict";Z4e=/[MLHVQCTSZ][^MLHVQCTSZ]*/g,$4e=/[^\s,]+/g,J4e={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:{}},K4e={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:3},Z:{}},Q4e={M:2,L:2,H:1,V:1,Q:4,C:6,T:2,S:4,Z:0}});var Zs=z(Ka=>{"use strict";var xl=(ed(),Ne(Qh)),JI=ke(),Xs=jr();Ka.rangeToShapePosition=function(e){return e.type==="log"?e.r2d:function(r){return r}};Ka.shapePositionToRange=function(e){return e.type==="log"?e.d2r:function(r){return r}};Ka.decodeDate=function(e){return function(r){return r.replace&&(r=r.replace("_"," ")),e(r)}};Ka.encodeDate=function(e){return function(r){return e(r).replace(" ","_")}};Ka.extractPathCoords=function(e,r,t){var a=[],n=e.match(xl.segmentRE);return n.forEach(function(i){var o=r[i.charAt(0)].drawn;if(o!==void 0){var l=i.slice(1).match(xl.paramRE);if(!(!l||l.length{let l=o.charAt(0),s=n[l].drawn!==void 0;return i+(s?1:0)},0)};Ka.getDataToPixel=function(e,r,t,a,n){var i=e._fullLayout._size,o;if(r)if(n==="domain")o=function(s){return r._length*(a?1-s:s)+r._offset};else{var l=Ka.shapePositionToRange(r);o=function(s){var u=bl(r,t);return r._offset+r.r2p(l(s,!0))+u},r.type==="date"&&(o=Ka.decodeDate(o))}else a?o=function(s){return i.t+i.h*(1-s)}:o=function(s){return i.l+i.w*s};return o};Ka.getPixelToData=function(e,r,t,a){var n=e._fullLayout._size,i;if(r)if(a==="domain")i=function(l){var s=(l-r._offset)/r._length;return t?1-s:s};else{var o=Ka.rangeToShapePosition(r);i=function(l){return o(r.p2r(l-r._offset))}}else t?i=function(l){return 1-(l-n.t)/n.h}:i=function(l){return(l-n.l)/n.w};return i};Ka.roundPositionForSharpStrokeRendering=function(e,r){var t=Math.round(r%2)===1,a=Math.round(e);return t?a+.5:a};Ka.makeShapesOptionsAndPlotinfo=function(e,r){var t=e._fullLayout.shapes[r]||{},a=e._fullLayout._plots[t.xref+t.yref],n=!!a;return n?a._hadPlotinfo=!0:(a={},t.xref&&t.xref!=="paper"&&(a.xaxis=e._fullLayout[t.xref+"axis"]),t.yref&&t.yref!=="paper"&&(a.yaxis=e._fullLayout[t.yref+"axis"])),a.xsizemode=t.xsizemode,a.ysizemode=t.ysizemode,a.xanchor=t.xanchor,a.yanchor=t.yanchor,{options:t,plotinfo:a}};Ka.makeSelectionsOptionsAndPlotinfo=function(e,r){var t=e._fullLayout.selections[r]||{},a=e._fullLayout._plots[t.xref+t.yref],n=!!a;return n?a._hadPlotinfo=!0:(a={},t.xref&&(a.xaxis=e._fullLayout[t.xref+"axis"]),t.yref&&(a.yaxis=e._fullLayout[t.yref+"axis"])),{options:t,plotinfo:a}};Ka.getPathString=function(e,r){let t=r.type,a=Xs.getRefType(r.xref),n=Xs.getRefType(r.yref),i=e._fullLayout._size;var o,l,s,u,f,c,v,d,p,m,y,b;function T(E,P,R,I){var B;if(E)if(P==="domain")I?B=function(N){return E._offset+E._length*(1-N)}:B=function(N){return E._offset+E._length*N};else{let N=Ka.shapePositionToRange(E);B=function(U){return E._offset+E.r2p(N(U,!0))},R==="path"&&E.type==="date"&&(B=Ka.decodeDate(B))}else I?B=function(N){return i.t+i.h*(1-N)}:B=function(N){return i.l+i.w*N};return B}if(a==="array"?(v=[],o=r.xref.map(function(E){return Xs.getFromId(e,E)}),v=r.xref.map(function(E,P){return T(o[P],Xs.getRefType(E),t,!1)})):(o=Xs.getFromId(e,r.xref),v=T(o,a,t,!1)),n==="array"?(d=[],l=r.yref.map(function(E){return Xs.getFromId(e,E)}),d=r.yref.map(function(E,P){return T(l[P],Xs.getRefType(E),t,!0)})):(l=Xs.getFromId(e,r.yref),d=T(l,n,t,!0)),t==="path")return e6e(r,v,d);if(a==="array")s=bl(o[0],r.x0shift),u=bl(o[1],r.x1shift),p=v[0](r.x0)+s,m=v[1](r.x1)+u;else if(s=bl(o,r.x0shift),u=bl(o,r.x1shift),r.xsizemode==="pixel"){let E=v(r.xanchor);p=E+r.x0+s,m=E+r.x1+u}else p=v(r.x0)+s,m=v(r.x1)+u;if(n==="array")f=bl(l[0],r.y0shift),c=bl(l[1],r.y1shift),y=d[0](r.y0)+f,b=d[1](r.y1)+c;else if(f=bl(l,r.y0shift),c=bl(l,r.y1shift),r.ysizemode==="pixel"){let E=d(r.yanchor);y=E-r.y0+f,b=E-r.y1+c}else y=d(r.y0)+f,b=d(r.y1)+c;if(t==="line")return"M"+p+","+y+"L"+m+","+b;if(t==="rect")return"M"+p+","+y+"H"+m+"V"+b+"H"+p+"Z";var w=(p+m)/2,x=(y+b)/2,_=Math.abs(w-p),k=Math.abs(x-y),M="A"+_+","+k,S=w+_+","+x,C=w+","+(x-k);return"M"+S+M+" 0 1,1 "+C+M+" 0 0,1 "+S+"Z"};function e6e(e,r,t){let a=e.path,n=e.xsizemode,i=e.ysizemode,o=e.xanchor,l=e.yanchor,s=Array.isArray(e.xref),u=Array.isArray(e.yref);var f=0,c=0;return a.replace(xl.segmentRE,function(v){var d=0,p=v.charAt(0),m=xl.paramIsX[p],y=xl.paramIsY[p],b=xl.numParams[p];let T=m.drawn!==void 0,w=y.drawn!==void 0,x=s?r[f]:r,_=u?t[c]:t;var k=v.slice(1).replace(xl.paramRE,function(M){return m[d]?n==="pixel"?M=x(o)+Number(M):M=x(M):y[d]&&(i==="pixel"?M=_(l)-Number(M):M=_(M)),d++,d>b&&(M="X"),M});return d>b&&(k=k.replace(/[\s,]*X.*/,""),JI.log("Ignoring extra params in segment "+v)),T&&f++,w&&c++,p+k})}Ka.getPixelShift=bl;function bl(e,r){r=r||0;var t=0;return r&&e&&(e.type==="category"||e.type==="multicategory")&&(t=(e.r2p(1)-e.r2p(0))*r),t}});var L7=z((XZe,eB)=>{"use strict";var r6e=ke(),_l=jr(),KI=Da(),QI=et(),t6e=js().readPaths,gf=Zs(),a6e=gf.getPathString,rd=qp(),n6e=(un(),Ne(sn)).FROM_TL;eB.exports=function(r,t,a,n){if(n.selectAll(".shape-label").remove(),!!(a.label.text||a.label.texttemplate)){var i;if(a.label.texttemplate){var o={};if(a.type!=="path"){var l=_l.getFromId(r,a.xref),s=_l.getFromId(r,a.yref);let Y=Array.isArray(a.xref),J=Array.isArray(a.yref);for(var u in rd){var f=typeof rd[u]=="function",c=!Y||rd.simpleXVariables.includes(u),v=!J||rd.simpleYVariables.includes(u);if(f&&c&&v){var d=rd[u](a,l,s);d!==void 0&&(o[u]=d)}}}i=r6e.texttemplateStringForShapes({data:[o],fallback:a.label.texttemplatefallback,locale:r._fullLayout._d3locale,template:a.label.texttemplate})}else i=a.label.text;var p={"data-index":t},m=a.label.font,y={"data-notex":1},b=n.append("g").attr(p).classed("shape-label",!0),T=b.append("text").attr(y).classed("shape-label-text",!0).text(i),w,x,_,k;if(a.path){var M=a6e(r,a),S=t6e(M,r);w=1/0,_=1/0,x=-1/0,k=-1/0;for(var C=0;Cgf.getDataToPixel(r,Ce,me,!1,Me)(Pe),Ae=(Pe,me,Ce,Me)=>gf.getDataToPixel(r,Ce,me,!0,Me)(Pe);if(a.xsizemode==="pixel"){let Pe=oe(a.xanchor,void 0,re,ce),me=gf.getPixelShift(re,a.x0shift),Ce=gf.getPixelShift(re,a.x1shift);w=Pe+a.x0+me,x=Pe+a.x1+Ce}else w=oe(a.x0,a.x0shift,re,ce),x=oe(a.x1,a.x1shift,le,te);if(a.ysizemode==="pixel"){let Pe=Ae(a.yanchor,void 0,ne,ge),me=gf.getPixelShift(ne,a.y0shift),Ce=gf.getPixelShift(ne,a.y1shift);_=Pe-a.y0+me,k=Pe-a.y1+Ce}else _=Ae(a.y0,a.y0shift,ne,ge),k=Ae(a.y1,a.y1shift,$,se)}var N=a.label.textangle;N==="auto"&&(a.type==="line"?N=i6e(w,_,x,k):N=0),T.call(function(Y){return Y.call(QI.font,m).attr({}),KI.convertToTspans(Y,r),Y});var U=QI.bBox(T.node()),G=o6e(w,_,x,k,a,N,U),V=G.textx,j=G.texty,W=G.xanchor;T.attr({"text-anchor":{left:"start",center:"middle",right:"end"}[W],y:j,x:V,transform:"rotate("+N+","+V+","+j+")"}).call(KI.positionText,V,j)}};function i6e(e,r,t,a){var n,i;return i=Math.abs(t-e),t>=e?n=r-a:n=a-r,-180/Math.PI*Math.atan2(n,i)}function o6e(e,r,t,a,n,i,o){var l=n.label.textposition,s=n.label.textangle,u=n.label.padding,f=n.type,c=Math.PI/180*i,v=Math.sin(c),d=Math.cos(c),p=n.label.xanchor,m=n.label.yanchor,y,b,T,w;if(f==="line"){l==="start"?(y=e,b=r):l==="end"?(y=t,b=a):(y=(e+t)/2,b=(r+a)/2),p==="auto"&&(l==="start"?s==="auto"?t>e?p="left":te?p="right":te?p="right":te?p="left":t{"use strict";var l6e=ke(),s6e=l6e.strTranslate,rB=Xi(),nB=yf(),u6e=nB.drawMode,iB=nB.selectMode,oB=Ar(),tB=qr(),hy=(oy(),Ne(iy)),f6e=hy.i000,c6e=hy.i090,v6e=hy.i180,h6e=hy.i270,d6e=zs(),lB=d6e.clearOutlineControllers,D7=js(),vy=D7.pointsOnRectangle,C7=D7.pointsOnEllipse,p6e=D7.writePaths,m6e=cy().newShapes,y6e=cy().createShapeObj,g6e=q7(),b6e=L7();sB.exports=function e(r,t,a,n){n||(n=0);var i=a.gd;function o(){e(r,t,a,n++),(C7(r[0])||a.hasText)&&l({redrawing:!0})}function l(G){var V={};a.isActiveShape!==void 0&&(a.isActiveShape=!1,V=m6e(t,a)),a.isActiveSelection!==void 0&&(a.isActiveSelection=!1,V=g6e(t,a),i._fullLayout._reselect=!0),Object.keys(V).length&&oB.call((G||{}).redrawing?"relayout":"_guiRelayout",i,V)}var s=i._fullLayout,u=s._zoomlayer,f=a.dragmode,c=u6e(f),v=iB(f);(c||v)&&(i._fullLayout._outlining=!0),lB(i),t.attr("d",p6e(r));var d,p,m,y,b;if(!n&&(a.isActiveShape||a.isActiveSelection)){b=x6e([],r);var T=u.append("g").attr("class","outline-controllers");E(T),U()}if(c&&a.hasText){var w=u.select(".label-temp"),x=y6e(t,a,a.dragmode);b6e(i,"label-temp",x,w)}function _(G){m=+G.srcElement.getAttribute("data-i"),y=+G.srcElement.getAttribute("data-j"),d[m][y].moveFn=k}function k(G,V){if(r.length){var j=b[m][y][1],W=b[m][y][2],Y=r[m],J=Y.length;if(vy(Y)){var re=G,le=V;if(a.isActiveSelection){var ne=aB(Y,y);ne[1]===Y[y][1]?le=0:re=0}for(var $=0;$1&&!(G.length===2&&G[1][0]==="Z")&&(y===0&&(G[0][0]="M"),r[m]=G,o(),l())}}function C(G,V){if(G===2){m=+V.srcElement.getAttribute("data-i"),y=+V.srcElement.getAttribute("data-j");var j=r[m];!vy(j)&&!C7(j)&&S()}}function E(G){d=[];for(var V=0;V{"use strict";var w6e=Pr(),dB=Ar(),P7=ke(),bf=jr(),T6e=js().readPaths,A6e=dy(),my=L7(),pB=zs().clearOutlineControllers,E7=qr(),yy=et(),M6e=Pt().arrayEditor,uB=Xi(),fB=Yn(),cB=Ys(),xf=(ed(),Ne(Qh)),oi=Zs(),R7=oi.getPathString;gB.exports={draw:F7,drawOne:mB,eraseActiveShape:C6e,drawLabel:my};function F7(e){var r=e._fullLayout;r._shapeUpperLayer.selectAll("path").remove(),r._shapeLowerLayer.selectAll("path").remove(),r._shapeUpperLayer.selectAll("text").remove(),r._shapeLowerLayer.selectAll("text").remove();for(var t in r._plots){var a=r._plots[t].shapelayer;a&&(a.selectAll("path").remove(),a.selectAll("text").remove())}for(var n=0;n{if(!e._dragging&&e._fullLayout.hoveranywhere){let o=n(i);o&&fB.hover(e,o,t.id)}}),a.addEventListener("click",i=>{if(!e._dragged&&e._fullLayout.clickanywhere){let o=n(i);o&&fB.click(e,o,t.id)}})}function yB(e,r,t){let a=t.xref,n=t.yref;if(Array.isArray(a)||Array.isArray(n)){let i="clip"+r._fullLayout._uid+"shape"+t._index,o=S6e(r,a,n);P7.ensureSingleById(r._fullLayout._clips,"clipPath",i,function(l){l.append("rect")}).select("rect").attr(o),yy.setClipUrl(e,i,r)}else{let i=(a+n).replace(/paper/g,"").replace(/[xyz][0-9]* *domain/g,"");yy.setClipUrl(e,i?"clip"+r._fullLayout._uid+i:null,r)}}function S6e(e,r,t){let a=e._fullLayout._size;function n(l,s){let u=(Array.isArray(l)?l:[l]).map(v=>bf.getFromId(e,v)).filter(Boolean);if(!u.length)return s?[a.t,a.t+a.h]:[a.l,a.l+a.w];let f=u.map(function(v){return v._offset}),c=u.map(function(v){return v._offset+v._length});return[Math.min(...f),Math.max(...c)]}let i=n(r,!1),o=n(t,!0);return{x:i[0],y:o[0],width:i[1]-i[0],height:o[1]-o[0]}}function q6e(e,r,t,a,n,i){var o=10,l=10,s=t.xsizemode==="pixel",u=t.ysizemode==="pixel",f=t.type==="line",c=t.type==="path",v=i.modifyItem,d,p,m,y,b,T,w,x,_,k,M,S,C,E,P,R=w6e.select(r.node().parentNode),I=bf.getFromId(e,t.xref),B=bf.getRefType(t.xref),N=bf.getFromId(e,t.yref),U=bf.getRefType(t.yref),G=t.x0shift,V=t.x1shift,j=t.y0shift,W=t.y1shift,Y=function(Ee,qe){var Ue=oi.getDataToPixel(e,I,qe,!1,B);return Ue(Ee)},J=function(Ee,qe){var Ue=oi.getDataToPixel(e,N,qe,!0,U);return Ue(Ee)},re=oi.getPixelToData(e,I,!1,B),le=oi.getPixelToData(e,N,!0,U),ne=te(),$={element:ne.node(),gd:e,prepFn:oe,doneFn:Ae,clickFn:Pe},ce;uB.init($),ne.node().onmousemove=se;function te(){return f?ge():r}function ge(){var Ee=10,qe=Math.max(t.line.width,Ee),Ue=n.append("g").attr("data-index",a).attr("drag-helper",!0);Ue.append("path").attr("d",r.attr("d")).style({cursor:"move","stroke-width":qe,"stroke-opacity":"0"});var Je={"fill-opacity":"0"},Ke=Math.max(qe/2,Ee);return Ue.append("circle").attr({"data-line-point":"start-point",cx:s?Y(t.xanchor)+t.x0:Y(t.x0,G),cy:u?J(t.yanchor)-t.y0:J(t.y0,j),r:Ke}).style(Je).classed("cursor-grab",!0),Ue.append("circle").attr({"data-line-point":"end-point",cx:s?Y(t.xanchor)+t.x1:Y(t.x1,V),cy:u?J(t.yanchor)-t.y1:J(t.y1,W),r:Ke}).style(Je).classed("cursor-grab",!0),Ue}function se(Ee){if(py(e)){ce=null;return}if(f)Ee.target.tagName==="path"?ce="move":ce=Ee.target.attributes["data-line-point"].value==="start-point"?"resize-over-start-point":"resize-over-end-point";else{var qe=$.element.getBoundingClientRect(),Ue=qe.right-qe.left,Je=qe.bottom-qe.top,Ke=Ee.clientX-qe.left,De=Ee.clientY-qe.top,Be=!c&&Ue>o&&Je>l&&!Ee.shiftKey?uB.getCursor(Ke/Ue,1-De/Je):"move";cB(r,Be),ce=Be.split("-")[0]}}function oe(Ee){py(e)||(s&&(b=Y(t.xanchor)),u&&(T=J(t.yanchor)),t.type==="path"?P=t.path:(d=s?t.x0:Y(t.x0),p=u?t.y0:J(t.y0),m=s?t.x1:Y(t.x1),y=u?t.y1:J(t.y1)),dy?(w=p,M="y0",x=y,S="y1"):(w=y,M="y1",x=p,S="y0"),se(Ee),Me(n,t),Se(r,t,e),$.moveFn=ce==="move"?me:Ce,$.altKey=Ee.altKey)}function Ae(){py(e)||(cB(r),Le(n),yB(r,e,t),dB.call("_guiRelayout",e,i.getUpdateObj()))}function Pe(){py(e)||Le(n)}function me(Ee,qe){if(t.type==="path"){var Ue=function(De){return De},Je=Ue,Ke=Ue;s?v("xanchor",t.xanchor=re(b+Ee)):(Je=function(Be){return re(Y(Be)+Ee)},I&&I.type==="date"&&(Je=oi.encodeDate(Je))),u?v("yanchor",t.yanchor=le(T+qe)):(Ke=function(Be){return le(J(Be)+qe)},N&&N.type==="date"&&(Ke=oi.encodeDate(Ke))),v("path",t.path=vB(P,Je,Ke))}else s?v("xanchor",t.xanchor=re(b+Ee)):(v("x0",t.x0=re(d+Ee)),v("x1",t.x1=re(m+Ee))),u?v("yanchor",t.yanchor=le(T+qe)):(v("y0",t.y0=le(p+qe)),v("y1",t.y1=le(y+qe)));r.attr("d",R7(e,t)),Me(n,t),my(e,a,t,R)}function Ce(Ee,qe){if(c){var Ue=function(Xe){return Xe},Je=Ue,Ke=Ue;s?v("xanchor",t.xanchor=re(b+Ee)):(Je=function(Qe){return re(Y(Qe)+Ee)},I&&I.type==="date"&&(Je=oi.encodeDate(Je))),u?v("yanchor",t.yanchor=le(T+qe)):(Ke=function(Qe){return le(J(Qe)+qe)},N&&N.type==="date"&&(Ke=oi.encodeDate(Ke))),v("path",t.path=vB(P,Je,Ke))}else if(f){if(ce==="resize-over-start-point"){var De=d+Ee,Be=u?p-qe:p+qe;v("x0",t.x0=s?De:re(De)),v("y0",t.y0=u?Be:le(Be))}else if(ce==="resize-over-end-point"){var er=m+Ee,ae=u?y-qe:y+qe;v("x1",t.x1=s?er:re(er)),v("y1",t.y1=u?ae:le(ae))}}else{var be=function(Xe){return ce.indexOf(Xe)!==-1},Ge=be("n"),sr=be("s"),vr=be("w"),ue=be("e"),xe=Ge?w+qe:w,Ie=sr?x+qe:x,We=vr?_+Ee:_,Oe=ue?k+Ee:k;u&&(Ge&&(xe=w-qe),sr&&(Ie=x-qe)),(!u&&Ie-xe>l||u&&xe-Ie>l)&&(v(M,t[M]=u?xe:le(xe)),v(S,t[S]=u?Ie:le(Ie))),Oe-We>o&&(v(C,t[C]=s?We:re(We)),v(E,t[E]=s?Oe:re(Oe)))}r.attr("d",R7(e,t)),Me(n,t),my(e,a,t,R)}function Me(Ee,qe){(s||u)&&Ue();function Ue(){var Je=qe.type!=="path",Ke=Ee.selectAll(".visual-cue").data([0]),De=1;Ke.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":De}).classed("visual-cue",!0);var Be=Y(s?qe.xanchor:P7.midRange(Je?[qe.x0,qe.x1]:oi.extractPathCoords(qe.path,xf.paramIsX))),er=J(u?qe.yanchor:P7.midRange(Je?[qe.y0,qe.y1]:oi.extractPathCoords(qe.path,xf.paramIsY)));if(Be=oi.roundPositionForSharpStrokeRendering(Be,De),er=oi.roundPositionForSharpStrokeRendering(er,De),s&&u){var ae="M"+(Be-1-De)+","+(er-1-De)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";Ke.attr("d",ae)}else if(s){var be="M"+(Be-1-De)+","+(er-9-De)+"v18 h2 v-18 Z";Ke.attr("d",be)}else{var Ge="M"+(Be-9-De)+","+(er-1-De)+"h18 v2 h-18 Z";Ke.attr("d",Ge)}}}function Le(Ee){Ee.selectAll(".visual-cue").remove()}function Se(Ee,qe,Ue){var Je=qe.xref,Ke=qe.yref,De=bf.getFromId(Ue,Je),Be=bf.getFromId(Ue,Ke),er="";Je!=="paper"&&!De.autorange&&(er+=Je),Ke!=="paper"&&!Be.autorange&&(er+=Ke),yy.setClipUrl(Ee,er?"clip"+Ue._fullLayout._uid+er:null,Ue)}}function vB(e,r,t){return e.replace(xf.segmentRE,function(a){var n=0,i=a.charAt(0),o=xf.paramIsX[i],l=xf.paramIsY[i],s=xf.numParams[i],u=a.slice(1).replace(xf.paramRE,function(f){return n>=s||(o[n]?f=r(f):l[n]&&(f=t(f)),n++),f});return i+u})}function L6e(e,r){if(gy(e)){var t=r.node(),a=+t.getAttribute("data-index");if(a>=0){if(a===e._fullLayout._activeShapeIndex){hB(e);return}e._fullLayout._activeShapeIndex=a,e._fullLayout._deactivateShape=hB,F7(e)}}}function hB(e){if(gy(e)){var r=e._fullLayout._activeShapeIndex;r>=0&&(pB(e),delete e._fullLayout._activeShapeIndex,F7(e))}}function C6e(e){if(gy(e)){pB(e);var r=e._fullLayout._activeShapeIndex,t=(e.layout||{}).shapes||[];if(r{"use strict";var g0=ke()._,D6e=function(e){return{DIALOG_TITLE:g0(e,"Share chart"),DIALOG_MESSAGE_CLOUD:g0(e,"This chart will be uploaded to {Plotly Cloud} to create a sharing link. Only you can see it until you change its visibility."),DIALOG_MESSAGE_CLOUD_ACCOUNT:g0(e,"If you don't have a Plotly Cloud account yet, you'll have a chance to create one."),DIALOG_MESSAGE_OTHER:g0(e,"This chart will be sent to {serverUrl}."),DIALOG_CANCEL:g0(e,"Cancel"),DIALOG_CONFIRM:g0(e,"Share")}};bB.exports=D6e});var TB=z((KZe,wB)=>{"use strict";var _B=Pr(),{dfltConfig:E6e}=As(),P6e=xB(),R6e=(e,r,t,a,n)=>{let i=P6e(e),o=r.append("div").classed("plotly-cloud-dialog-box",!0);if(o.append("div").classed("plotly-cloud-dialog-title",!0).text(i.DIALOG_TITLE),t===E6e.plotlyServerURL){let s=o.append("div").classed("plotly-cloud-dialog-message",!0),u=new URL(t).origin,f=i.DIALOG_MESSAGE_CLOUD.split(/(\{|\})/),c=f[0],v=f[2],d=f[4];s.append("span").text(c),s.append("a").classed("plotly-cloud-dialog-message--hostname",!0).attr("href",u).attr("target","_blank").text(v),s.append("span").text(d),s.append("div").classed("plotly-cloud-dialog-message--account",!0).text(i.DIALOG_MESSAGE_CLOUD_ACCOUNT)}else{let s=new URL(t),u=s.hostname,f=s.origin,c=i.DIALOG_MESSAGE_OTHER.split(/(\{|\})/),v=c[0],d=c[4],p=o.append("div").classed("plotly-cloud-dialog-message",!0);p.append("span").text(v),p.append("a").classed("plotly-cloud-dialog-message--hostname",!0).attr("href",f).attr("target","_blank").text(u),p.append("span").text(d)}let l=o.append("div").classed("plotly-cloud-dialog-buttons",!0);l.append("button").classed("plotly-cloud-dialog-btn",!0).classed("plotly-cloud-dialog-btn--cancel",!0).text(i.DIALOG_CANCEL).on("click",n),l.append("button").classed("plotly-cloud-dialog-btn",!0).classed("plotly-cloud-dialog-btn--confirm",!0).text(i.DIALOG_CONFIRM).on("click",a)},F6e=(e,r,t)=>{let a=_B.select(e._fullLayout._paperdiv.node());a.selectAll(".plotly-cloud-dialog").remove();let n=a.append("div").classed("plotly-cloud-dialog",!0),i=()=>{n.remove(),document.removeEventListener("keydown",o)},o=l=>{(l.key==="Escape"||l.keyCode===27)&&i()};document.addEventListener("keydown",o),n.on("click",()=>{_B.event.target===n.node()&&i()}),R6e(e,n,r,()=>{i(),t()},i)};wB.exports=F6e});var I7=z((QZe,CB)=>{"use strict";var ki=Ar(),z6e=_a(),MB=Ca(),lt=ny(),N6e=by().eraseActiveShape,I6e=TB(),b0=ke(),Jr=b0._,ot={};CB.exports=ot;ot.toImage={name:"toImage",title:function(e){var r=e._context.toImageButtonOptions||{},t=r.format||"png";return t==="png"?Jr(e,"Download plot as a PNG"):Jr(e,"Download plot")},icon:lt.camera,click:function(e){var r=e._context.toImageButtonOptions,t={format:r.format||"png"};b0.notifier(Jr(e,"Preparing image - this may take a few seconds"),"long",e),["filename","width","height","scale"].forEach(function(a){a in r&&(t[a]=r[a])}),ki.call("downloadImage",e,t).then(function(a){b0.notifier(Jr(e,"Image download succeeded")+" - "+a,"long",e)}).catch(function(){b0.notifier(Jr(e,"Sorry, there was a problem downloading your image!"),"long",e)})}};ot.downloadJson={name:"downloadJson",title:function(e){return Jr(e,"Download plot as JSON")},icon:lt.curlybraces,click:function(e){ki.call("downloadImage",e,{format:"full-json"}).then(function(r){b0.notifier(Jr(e,"JSON download succeeded")+" - "+r,"long",e)}).catch(function(){b0.notifier(Jr(e,"Sorry, there was a problem downloading your JSON file!"),"long",e)})}};ot.sendChartToCloud={name:"sendChartToCloud",title:function(e){return Jr(e,"Share chart...")},icon:lt.cloudupload,click:function(e){var r=(window.PLOTLYENV||{}).BASE_URL||e._context.plotlyServerURL;if(!r){console.error("No destination URL provided (plotlyServerURL is empty)");return}var t;try{t=new URL(r)}catch(n){console.error("Invalid plotlyServerURL: "+r);return}let a=["http:","https:"];if(!a.includes(t.protocol)){console.error(`Invalid protocol '${t.protocol}' in plotlyServerURL '${r}'. Must be one of: ${a.join(", ")}`);return}I6e(e,r,function(){z6e.sendDataToCloud(e,r)})}};ot.zoom2d={name:"zoom2d",_cat:"zoom",title:function(e){return Jr(e,"Zoom")},attr:"dragmode",val:"zoom",icon:lt.zoombox,click:Pn};ot.pan2d={name:"pan2d",_cat:"pan",title:function(e){return Jr(e,"Pan")},attr:"dragmode",val:"pan",icon:lt.pan,click:Pn};ot.select2d={name:"select2d",_cat:"select",title:function(e){return Jr(e,"Box Select")},attr:"dragmode",val:"select",icon:lt.selectbox,click:Pn};ot.lasso2d={name:"lasso2d",_cat:"lasso",title:function(e){return Jr(e,"Lasso Select")},attr:"dragmode",val:"lasso",icon:lt.lasso,click:Pn};ot.drawclosedpath={name:"drawclosedpath",title:function(e){return Jr(e,"Draw closed freeform")},attr:"dragmode",val:"drawclosedpath",icon:lt.drawclosedpath,click:Pn};ot.drawopenpath={name:"drawopenpath",title:function(e){return Jr(e,"Draw open freeform")},attr:"dragmode",val:"drawopenpath",icon:lt.drawopenpath,click:Pn};ot.drawline={name:"drawline",title:function(e){return Jr(e,"Draw line")},attr:"dragmode",val:"drawline",icon:lt.drawline,click:Pn};ot.drawrect={name:"drawrect",title:function(e){return Jr(e,"Draw rectangle")},attr:"dragmode",val:"drawrect",icon:lt.drawrect,click:Pn};ot.drawcircle={name:"drawcircle",title:function(e){return Jr(e,"Draw circle")},attr:"dragmode",val:"drawcircle",icon:lt.drawcircle,click:Pn};ot.eraseshape={name:"eraseshape",title:function(e){return Jr(e,"Erase active shape")},icon:lt.eraseshape,click:N6e};ot.zoomIn2d={name:"zoomIn2d",_cat:"zoomin",title:function(e){return Jr(e,"Zoom in")},attr:"zoom",val:"in",icon:lt.zoom_plus,click:Pn};ot.zoomOut2d={name:"zoomOut2d",_cat:"zoomout",title:function(e){return Jr(e,"Zoom out")},attr:"zoom",val:"out",icon:lt.zoom_minus,click:Pn};ot.autoScale2d={name:"autoScale2d",_cat:"autoscale",title:function(e){return Jr(e,"Autoscale")},attr:"zoom",val:"auto",icon:lt.autoscale,click:Pn};ot.resetScale2d={name:"resetScale2d",_cat:"resetscale",title:function(e){return Jr(e,"Reset axes")},attr:"zoom",val:"reset",icon:lt.home,click:Pn};ot.hoverClosestCartesian={name:"hoverClosestCartesian",_cat:"hoverclosest",title:function(e){return Jr(e,"Show closest data on hover")},attr:"hovermode",val:"closest",icon:lt.tooltip_basic,gravity:"ne",click:Pn};ot.hoverCompareCartesian={name:"hoverCompareCartesian",_cat:"hoverCompare",title:function(e){return Jr(e,"Compare data on hover")},attr:"hovermode",val:function(e){return e._fullLayout._isHoriz?"y":"x"},icon:lt.tooltip_compare,gravity:"ne",click:Pn};function Pn(e,r){var t=r.currentTarget,a=t.getAttribute("data-attr"),n=t.getAttribute("data-val")||!0,i=e._fullLayout,o={},l=MB.list(e,null,!0),s=i._cartesianSpikesEnabled,u,f;if(a==="zoom"){var c=n==="in"?.5:2,v=(1+c)/2,d=(1-c)/2,p,m;for(f=0;f-k),[m,y]=c.invert(f.midPt),{minscale:b}=u.projection,T=(l=u.projection.maxscale)!=null?l:1/0,w=Math.min(b,T),x=Math.max(b,T),_=n==="in"?AB*v:1/AB*v;_>x?_=x:_{"use strict";var DB=I7(),U6e=Object.keys(DB),EB=["drawline","drawopenpath","drawclosedpath","drawcircle","drawrect","eraseshape"],PB=["v1hovermode","hoverclosest","hovercompare","togglehover","togglespikelines"].concat(EB,["downloadJson"]),x0=[],G6e=function(e){if(PB.indexOf(e._cat||e.name)===-1){var r=e.name,t=(e._cat||e.name).toLowerCase();x0.indexOf(r)===-1&&x0.push(r),x0.indexOf(t)===-1&&x0.push(t)}};U6e.forEach(function(e){G6e(DB[e])});x0.sort();RB.exports={DRAW_MODES:EB,backButtons:PB,foreButtons:x0}});var H7={};Dt(H7,{default:()=>V6e});var O7,Y6e,V6e,U7=Ct(()=>{"use strict";O7=wc(B7()),Y6e={editType:"modebar",orientation:{valType:"enumerated",values:["v","h"],dflt:"h",editType:"modebar",description:"Sets the orientation of the modebar."},bgcolor:{valType:"color",editType:"modebar",description:"Sets the background color of the modebar."},color:{valType:"color",editType:"modebar",description:"Sets the color of the icons in the modebar."},activecolor:{valType:"color",editType:"modebar",description:"Sets the color of the active or hovered on icons in the modebar."},uirevision:{valType:"any",editType:"none",description:["Controls persistence of user-driven changes related to the modebar,","including `hovermode`, `dragmode`, and `showspikes` at both the","root level and inside subplots. Defaults to `layout.uirevision`."].join(" ")},add:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar",description:["Determines which predefined modebar buttons to add.","Please note that these buttons will only be shown if they are","compatible with all trace types used in a graph.","Similar to `config.modeBarButtonsToAdd` option.",`This may include *${O7.default.backButtons.join("*, *")}*.`].join(" ")},remove:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar",description:["Determines which predefined modebar buttons to remove.","Similar to `config.modeBarButtonsToRemove` option.",`This may include *${O7.default.foreButtons.join("*, *")}*.`].join(" ")}},V6e=Y6e});var zB=z((r$e,FB)=>{"use strict";var j6e=ke(),td=qr(),W6e=Pt(),X6e=(U7(),Ne(H7)).default;FB.exports=function(r,t){var a=r.modebar||{},n=W6e.newContainer(t,"modebar");function i(l,s){return j6e.coerce(a,n,X6e,l,s)}i("orientation"),i("bgcolor",td.addOpacity(t.paper_bgcolor,.5));var o=td.contrast(td.rgb(t.modebar.bgcolor));i("color",td.addOpacity(o,.3)),i("activecolor",td.addOpacity(o,.7)),i("uirevision",t.uirevision),i("add"),i("remove")}});var OB=z((t$e,BB)=>{"use strict";var G7=Pr(),Z6e=Br(),wy=ke(),NB=ny(),$6e=Jv().version,J6e=new DOMParser;function IB(e){this.container=e.container,this.element=document.createElement("div"),this.update(e.graphInfo,e.buttons),this.container.appendChild(this.element)}var wl=IB.prototype;wl.update=function(e,r){this.graphInfo=e;var t=this.graphInfo._context,a=this.graphInfo._fullLayout,n="modebar-"+a._uid;this.element.setAttribute("id",n),this.element.setAttribute("role","toolbar"),this._uid=n,this.element.className="modebar modebar--custom",t.displayModeBar==="hover"&&(this.element.className+=" modebar--hover ease-bg"),a.modebar.orientation==="v"&&(this.element.className+=" vertical",r=r.reverse());var i=a.modebar,o="#"+n+" .modebar-group";document.querySelectorAll(o).forEach(function(c){c.style.backgroundColor=i.bgcolor});var l=!this.hasButtons(r),s=this.hasLogo!==t.displaylogo,u=this.locale!==t.locale;if(this.locale=t.locale,(l||s||u)&&(this.removeAllButtons(),this.updateButtons(r),t.watermark||t.displaylogo)){var f=this.getLogo();t.watermark&&(f.className=f.className+" watermark"),a.modebar.orientation==="v"?this.element.insertBefore(f,this.element.childNodes[0]):this.element.appendChild(f),this.hasLogo=!0}this.updateActiveButton(),wy.setStyleOnHover("#"+n+" .modebar-btn",".active",".icon path","fill: "+i.activecolor,"fill: "+i.color,this.element)};wl.updateButtons=function(e){var r=this;this.buttons=e,this.buttonElements=[],this.buttonsNames=[],this.buttons.forEach(function(t){var a=r.createGroup();t.forEach(function(n){var i=n.name;if(!i)throw new Error("must provide button 'name' in button config");if(r.buttonsNames.indexOf(i)!==-1)throw new Error("button name '"+i+"' is taken");r.buttonsNames.push(i);var o=r.createButton(n);r.buttonElements.push(o),a.appendChild(o)}),r.element.appendChild(a)})};wl.createGroup=function(){var e=document.createElement("div");e.className="modebar-group";var r=this.graphInfo._fullLayout.modebar;return e.style.backgroundColor=r.bgcolor,e};wl.createButton=function(e){var r=this,t=document.createElement("button");t.setAttribute("type","button"),t.setAttribute("rel","tooltip"),t.className="modebar-btn";var a=e.title;a===void 0?a=e.name:typeof a=="function"&&(a=a(this.graphInfo)),(a||a===0)&&(t.setAttribute("data-title",a),t.setAttribute("aria-label",a)),e.attr!==void 0&&t.setAttribute("data-attr",e.attr);var n=e.val;n!==void 0&&(typeof n=="function"&&(n=n(this.graphInfo)),t.setAttribute("data-val",n));var i=e.click;if(typeof i!="function")throw new Error("must provide button 'click' function in button config");t.addEventListener("click",function(l){e.click(r.graphInfo,l),r.updateActiveButton(l.currentTarget)}),t.setAttribute("data-toggle",e.toggle||!1),e.toggle&&G7.select(t).classed("active",!0);var o=e.icon;return typeof o=="function"?t.appendChild(o()):t.appendChild(this.createIcon(o||NB.question)),t.setAttribute("data-gravity",e.gravity||"n"),t};wl.createIcon=function(e){var r=Z6e(e.height)?Number(e.height):e.ascent-e.descent,t="http://www.w3.org/2000/svg",a;if(e.path){a=document.createElementNS(t,"svg"),a.setAttribute("viewBox",[0,0,e.width,r].join(" ")),a.setAttribute("class","icon");var n=document.createElementNS(t,"path");n.setAttribute("d",e.path),e.transform?n.setAttribute("transform",e.transform):e.ascent!==void 0&&n.setAttribute("transform","matrix(1 0 0 -1 0 "+e.ascent+")"),a.appendChild(n)}if(e.svg){var i=J6e.parseFromString(e.svg,"application/xml");a=i.childNodes[0]}return a.setAttribute("height","1em"),a.setAttribute("width","1em"),a};wl.updateActiveButton=function(e){var r=this.graphInfo._fullLayout,t=e!==void 0?e.getAttribute("data-attr"):null;this.buttonElements.forEach(function(a){var n=a.getAttribute("data-val")||!0,i=a.getAttribute("data-attr"),o=a.getAttribute("data-toggle")==="true",l=G7.select(a),s=function(c,v){var d=r.modebar,p=c.querySelector(".icon path");p&&(v||c.matches(":hover")?p.style.fill=d.activecolor:p.style.fill=d.color)};if(o){if(i===t){var u=!l.classed("active");l.classed("active",u),s(a,u)}}else{var f=i===null?i:wy.nestedProperty(r,i).get();l.classed("active",f===n),s(a,f===n)}})};wl.hasButtons=function(e){var r=this.buttons;if(!r||e.length!==r.length)return!1;for(var t=0;t{"use strict";var e7e=Ca(),HB=ii(),Y7=Ar(),r7e=No().isUnifiedHover,t7e=OB(),Ty=I7(),a7e=B7().DRAW_MODES,n7e=ke().extendDeep;UB.exports=function(r){var t=r._fullLayout,a=r._context,n=t._modeBar;if(!a.displayModeBar&&!a.watermark){n&&(n.destroy(),delete t._modeBar);return}if(!Array.isArray(a.modeBarButtonsToRemove))throw new Error(["*modeBarButtonsToRemove* configuration options","must be an array."].join(" "));if(!Array.isArray(a.modeBarButtonsToAdd))throw new Error(["*modeBarButtonsToAdd* configuration options","must be an array."].join(" "));var i=a.modeBarButtons,o;Array.isArray(i)&&i.length?o=f7e(i):!a.displayModeBar&&a.watermark?o=[]:o=i7e(r),n?n.update(r,o):t._modeBar=t7e(r,o)};function i7e(e){var r=e._fullLayout,t=e._fullData,a=e._context;function n(V,j){if(typeof j=="string"){if(j.toLowerCase()===V.toLowerCase())return!0}else{var W=j.name,Y=j._cat||j.name;if(W===V||Y===V.toLowerCase())return!0}return!1}var i=r.modebar.add;typeof i=="string"&&(i=[i]);var o=r.modebar.remove;typeof o=="string"&&(o=[o]);var l=a.modeBarButtonsToAdd.concat(i.filter(function(V){for(var j=0;j1?(C=["toggleHover"],E=["resetViews"]):c?(S=["zoomInGeo","zoomOutGeo"],C=["hoverClosestGeo"],E=["resetGeo"]):f?(C=["hoverClosest3d"],E=["resetCameraDefault3d","resetCameraLastSave3d"]):m?(S=["zoomInMap","zoomOutMap"],C=["toggleHover"],E=["resetViewMap"]):v?C=["hoverClosestPie"]:T?(C=["hoverClosestCartesian","hoverCompareCartesian"],E=["resetViewSankey"]):C=["toggleHover"],u&&C.push("toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"),(s7e(t)||x)&&(C=[]),u&&!w&&(S=["zoomIn2d","zoomOut2d","autoScale2d"],E[0]!=="resetViews"&&(E=["resetScale2d"])),f?P=["zoom3d","pan3d","orbitRotation","tableRotation"]:u&&!w||p?P=["zoom2d","pan2d"]:m||c?P=["pan2d"]:y&&(P=["zoom2d"]),l7e(t)&&P.push("select2d","lasso2d");var R=[],I=function(V){R.indexOf(V)===-1&&C.indexOf(V)!==-1&&R.push(V)};if(Array.isArray(l)){for(var B=[],N=0;N{"use strict";YB.exports={moduleType:"component",name:"modebar",layoutAttributes:(U7(),Ne(H7)).default,supplyLayoutDefaults:zB(),manage:GB()}});var j7=z((i$e,VB)=>{"use strict";var c7e=(un(),Ne(sn)).FROM_BL;VB.exports=function(r,t,a){a===void 0&&(a=c7e[r.constraintoward||"center"]);var n=[r.r2l(r.range[0]),r.r2l(r.range[1])],i=n[0]+(n[1]-n[0])*a;r.range=r._input.range=[r.l2r(i+(n[0]-i)*t),r.l2r(i+(n[1]-i)*t)],r.setScale()}});var wf=z(ad=>{"use strict";var _f=ke(),W7=Bh(),Bo=Ca().id2name,v7e=ji(),jB=j7(),h7e=l0(),d7e=(Kt(),Ne(aa)).ALMOST_EQUAL,p7e=(un(),Ne(sn)).FROM_BL;ad.handleDefaults=function(e,r,t){var a=t.axIds,n=t.axHasImage,i=r._axisConstraintGroups=[],o=r._axisMatchGroups=[],l,s,u,f,c,v,d,p;for(l=0;li?t.slice(i):a.slice(n))+o}function y7e(e,r){for(var t=r._size,a=t.h/t.w,n={},i=Object.keys(e),o=0;od7e*p&&!T)){for(i=0;iR&&WE&&(E=W);var J=(E-C)/(2*P);c/=J,C=s.l2r(C),E=s.l2r(E),s.range=s._input.range=k{"use strict";var My=Pr(),Rn=Ar(),Si=_a(),$i=ke(),$7=Da(),J7=ay(),nd=qr(),_0=et(),$B=o0(),rO=V7(),id=jr(),es=(un(),Ne(sn)),tO=wf(),g7e=tO.enforce,b7e=tO.clean,JB=Bh().doAutoRange,aO="start",x7e="middle",nO="end",_7e=(Ha(),Ne(Oa)).zindexSeparator;Wa.layoutStyles=function(e){return $i.syncOrAsync([Si.doAutoMargin,T7e],e)};function w7e(e,r,t){for(var a=0;a=e[1]||n[1]<=e[0])&&i[0]r[0])return!0}return!1}function T7e(e){var r=e._fullLayout,t=r._size,a=t.p,n=id.list(e,"",!0),i,o,l,s,u,f;if(r._paperdiv.style({width:e._context.responsive&&r.autosize&&!e._context._hasZeroWidth&&!e.layout.width?"100%":r.width+"px",height:e._context.responsive&&r.autosize&&!e._context._hasZeroHeight&&!e.layout.height?"100%":r.height+"px"}).selectAll(".main-svg").call(_0.setSize,r.width,r.height),e._context.setBackground(e,r.paper_bgcolor),Wa.drawMainTitle(e),rO.manage(e),!r._has("cartesian"))return Si.previousPromises(e);function c(oe,Ae,Pe){var me=oe._lw/2;if(oe._id.charAt(0)==="x"){if(Ae){if(Pe==="top")return Ae._offset-a-me}else return t.t+t.h*(1-(oe.position||0))+me%1;return Ae._offset+Ae._length+a+me}if(Ae){if(Pe==="right")return Ae._offset+Ae._length+a+me}else return t.l+t.w*(oe.position||0)+me%1;return Ae._offset-a-me}for(i=0;i0){S7e(e,i,u,s),l.attr({x:o,y:i,"text-anchor":a,dy:eO(r.yanchor)}).call($7.positionText,o,i);var f=(r.text.match($7.BR_TAG_ALL)||[]).length;if(f){var c=es.LINE_SPACING*f+es.MID_SHIFT;r.y===0&&(c=-c),l.selectAll(".line").each(function(){var y=+this.getAttribute("dy").slice(0,-2)-c+"em";this.setAttribute("dy",y)})}var v=My.select(e).selectAll(".gtitle-subtitle");if(v.node()){var d=l.node().getBBox(),p=d.y+d.height,m=p+$B.SUBTITLE_PADDING_EM*r.subtitle.font.size;v.attr({x:o,y:m,"text-anchor":a,dy:eO(r.yanchor)}).call($7.positionText,o,m)}}}};function A7e(e,r,t,a,n){var i=r.yref==="paper"?e._fullLayout._size.h:e._fullLayout.height,o=$i.isTopAnchor(r)?a:a-n,l=t==="b"?i-o:o;return $i.isTopAnchor(r)&&t==="t"||$i.isBottomAnchor(r)&&t==="b"?!1:l.5?"t":"b",o=e._fullLayout.margin[i],l=0;return r.yref==="paper"?l=t+r.pad.t+r.pad.b:r.yref==="container"&&(l=M7e(i,a,n,e._fullLayout.height,t)+r.pad.t+r.pad.b),l>o?l:0}function S7e(e,r,t,a){var n="title.automargin",i=e._fullLayout.title,o=i.y>.5?"t":"b",l={x:i.x,y:i.y,t:0,b:0},s={};i.yref==="paper"&&A7e(e,i,o,r,a)?l[o]=t:i.yref==="container"&&(s[o]=t,e._fullLayout._reservedMargin[n]=s),Si.allowAutoMargin(e,n),Si.autoMargin(e,n,l)}function q7e(e,r){var t=e.title,a=e._size,n=0;return r===aO?n=t.pad.l:r===nO&&(n=-t.pad.r),t.xref==="paper"?a.l+a.w*t.x+n:e.width*t.x+n}function L7e(e,r){var t=e.title,a=e._size,n=0;return r==="0em"||!r?n=-t.pad.b:r===es.CAP_SHIFT+"em"&&(n=t.pad.t),t.y==="auto"?a.t/2:t.yref==="paper"?a.t+a.h-a.h*t.y+n:e.height-e.height*t.y+n}function eO(e){return e==="top"?es.CAP_SHIFT+.3+"em":e==="bottom"?"-0.3em":es.MID_SHIFT+"em"}function C7e(e){var r=e.title,t=x7e;return $i.isRightAnchor(r)?t=nO:$i.isLeftAnchor(r)&&(t=aO),t}function D7e(e){var r=e.title,t="0em";return $i.isTopAnchor(r)?t=es.CAP_SHIFT+"em":$i.isMiddleAnchor(r)&&(t=es.MID_SHIFT+"em"),t}Wa.doTraceStyle=function(e){var r=e.calcdata,t=[],a;for(a=0;a{"use strict";var E7e=js().readPaths,P7e=dy(),iO=zs().clearOutlineControllers,K7=qr(),oO=et(),R7e=Pt().arrayEditor,lO=Zs(),F7e=lO.getPathString;uO.exports={draw:Sy,drawOne:sO,activateLastSelection:I7e};function Sy(e){var r=e._fullLayout;iO(e),r._selectionLayer.selectAll("path").remove();for(var t in r._plots){var a=r._plots[t].selectionLayer;a&&a.selectAll("path").remove()}for(var n=0;n=0;y--){var b=o.append("path").attr(s).style("opacity",y?.1:u).call(K7.stroke,c).call(K7.fill,f).call(oO.dashLine,y?"solid":d,y?4+v:v);if(z7e(b,e,a),p){var T=R7e(e.layout,"selections",a);b.style({cursor:"move"});var w={element:b.node(),plotinfo:n,gd:e,editHelpers:T,isActiveSelection:!0},x=E7e(l,e);P7e(x,b,w)}else b.style("pointer-events",y?"all":"none");m[y]=b}var _=m[0],k=m[1];k.node().addEventListener("click",function(){return N7e(e,_)})}}function z7e(e,r,t){var a=t.xref+t.yref;oO.setClipUrl(e,"clip"+r._fullLayout._uid+a,r)}function N7e(e,r){if(qy(e)){var t=r.node(),a=+t.getAttribute("data-index");if(a>=0){if(a===e._fullLayout._activeSelectionIndex){Q7(e);return}e._fullLayout._activeSelectionIndex=a,e._fullLayout._deactivateSelection=Q7,Sy(e)}}}function I7e(e){if(qy(e)){var r=e._fullLayout.selections.length-1;e._fullLayout._activeSelectionIndex=r,e._fullLayout._deactivateSelection=Q7,Sy(e)}}function Q7(e){if(qy(e)){var r=e._fullLayout._activeSelectionIndex;r>=0&&(iO(e),delete e._fullLayout._activeSelectionIndex,Sy(e))}}});var cO=z((u$e,fO)=>{function B7e(){var e,r=0,t=!1;function a(n,i){return e.list.push({type:n,data:i?JSON.parse(JSON.stringify(i)):void 0}),e}return e={list:[],segmentId:function(){return r++},checkIntersection:function(n,i){return a("check",{seg1:n,seg2:i})},segmentChop:function(n,i){return a("div_seg",{seg:n,pt:i}),a("chop",{seg:n,pt:i})},statusRemove:function(n){return a("pop_seg",{seg:n})},segmentUpdate:function(n){return a("seg_update",{seg:n})},segmentNew:function(n,i){return a("new_seg",{seg:n,primary:i})},segmentRemove:function(n){return a("rem_seg",{seg:n})},tempStatus:function(n,i,o){return a("temp_status",{seg:n,above:i,below:o})},rewind:function(n){return a("rewind",{seg:n})},status:function(n,i,o){return a("status",{seg:n,above:i,below:o})},vert:function(n){return n===t?e:(t=n,a("vert",{x:n}))},log:function(n){return typeof n!="string"&&(n=JSON.stringify(n,!1," ")),a("log",{txt:n})},reset:function(){return a("reset")},selected:function(n){return a("selected",{segs:n})},chainStart:function(n){return a("chain_start",{seg:n})},chainRemoveHead:function(n,i){return a("chain_rem_head",{index:n,pt:i})},chainRemoveTail:function(n,i){return a("chain_rem_tail",{index:n,pt:i})},chainNew:function(n,i){return a("chain_new",{pt1:n,pt2:i})},chainMatch:function(n){return a("chain_match",{index:n})},chainClose:function(n){return a("chain_close",{index:n})},chainAddHead:function(n,i){return a("chain_add_head",{index:n,pt:i})},chainAddTail:function(n,i){return a("chain_add_tail",{index:n,pt:i})},chainConnect:function(n,i){return a("chain_con",{index1:n,index2:i})},chainReverse:function(n){return a("chain_rev",{index:n})},chainJoin:function(n,i){return a("chain_join",{index1:n,index2:i})},done:function(){return a("done")}},e}fO.exports=B7e});var hO=z((f$e,vO)=>{function O7e(e){typeof e!="number"&&(e=1e-10);var r={epsilon:function(t){return typeof t=="number"&&(e=t),e},pointAboveOrOnLine:function(t,a,n){var i=a[0],o=a[1],l=n[0],s=n[1],u=t[0],f=t[1];return(l-i)*(f-o)-(s-o)*(u-i)>=-e},pointBetween:function(t,a,n){var i=t[1]-a[1],o=n[0]-a[0],l=t[0]-a[0],s=n[1]-a[1],u=l*o+i*s;if(u-e)},pointsSameX:function(t,a){return Math.abs(t[0]-a[0])e!=l-i>e&&(o-f)*(i-c)/(l-c)+f-n>e&&(s=!s),o=f,l=c}return s}};return r}vO.exports=O7e});var pO=z((c$e,dO)=>{var H7e={create:function(){var e={root:{root:!0,next:null},exists:function(r){return!(r===null||r===e.root)},isEmpty:function(){return e.root.next===null},getHead:function(){return e.root.next},insertBefore:function(r,t){for(var a=e.root,n=e.root.next;n!==null;){if(t(n)){r.prev=n.prev,r.next=n,n.prev.next=r,n.prev=r;return}a=n,n=n.next}a.next=r,r.prev=a,r.next=null},findTransition:function(r){for(var t=e.root,a=e.root.next;a!==null&&!r(a);)t=a,a=a.next;return{before:t===e.root?null:t,after:a,insert:function(n){return n.prev=t,n.next=a,t.next=n,a!==null&&(a.prev=n),n}}}};return e},node:function(e){return e.prev=null,e.next=null,e.remove=function(){e.prev.next=e.next,e.next&&(e.next.prev=e.prev),e.prev=null,e.next=null},e}};dO.exports=H7e});var yO=z((v$e,mO)=>{var od=pO();function U7e(e,r,t){function a(p,m){return{id:t?t.segmentId():-1,start:p,end:m,myFill:{above:null,below:null},otherFill:null}}function n(p,m,y){return{id:t?t.segmentId():-1,start:p,end:m,myFill:{above:y.myFill.above,below:y.myFill.below},otherFill:null}}var i=od.create();function o(p,m,y,b,T,w){var x=r.pointsCompare(m,T);return x!==0?x:r.pointsSame(y,w)?0:p!==b?p?1:-1:r.pointAboveOrOnLine(y,b?T:w,b?w:T)?1:-1}function l(p,m){i.insertBefore(p,function(y){var b=o(p.isStart,p.pt,m,y.isStart,y.pt,y.other.pt);return b<0})}function s(p,m){var y=od.node({isStart:!0,pt:p.start,seg:p,primary:m,other:null,status:null});return l(y,p.end),y}function u(p,m,y){var b=od.node({isStart:!1,pt:m.end,seg:m,primary:y,other:p,status:null});p.other=b,l(b,p.pt)}function f(p,m){var y=s(p,m);return u(y,p,m),y}function c(p,m){t&&t.segmentChop(p.seg,m),p.other.remove(),p.seg.end=m,p.other.pt=m,l(p.other,p.pt)}function v(p,m){var y=n(m,p.seg.end,p.seg);return c(p,m),f(y,p.primary)}function d(p,m){var y=od.create();function b(N,U){var G=N.seg.start,V=N.seg.end,j=U.seg.start,W=U.seg.end;return r.pointsCollinear(G,j,W)?r.pointsCollinear(V,j,W)||r.pointAboveOrOnLine(V,j,W)?1:-1:r.pointAboveOrOnLine(G,j,W)?1:-1}function T(N){return y.findTransition(function(U){var G=b(N,U.ev);return G>0})}function w(N,U){var G=N.seg,V=U.seg,j=G.start,W=G.end,Y=V.start,J=V.end;t&&t.checkIntersection(G,V);var re=r.linesIntersect(j,W,Y,J);if(re===!1){if(!r.pointsCollinear(j,W,Y)||r.pointsSame(j,J)||r.pointsSame(W,Y))return!1;var le=r.pointsSame(j,Y),ne=r.pointsSame(W,J);if(le&&ne)return U;var $=!le&&r.pointBetween(j,Y,J),ce=!ne&&r.pointBetween(W,Y,J);if(le)return ce?v(U,W):v(N,J),U;$&&(ne||(ce?v(U,W):v(N,J)),v(U,j))}else re.alongA===0&&(re.alongB===-1?v(N,Y):re.alongB===0?v(N,re.pt):re.alongB===1&&v(N,J)),re.alongB===0&&(re.alongA===-1?v(U,j):re.alongA===0?v(U,re.pt):re.alongA===1&&v(U,W));return!1}for(var x=[];!i.isEmpty();){var _=i.getHead();if(t&&t.vert(_.pt[0]),_.isStart){let N=function(){if(M){var U=w(_,M);if(U)return U}return S?w(_,S):!1};var B=N;t&&t.segmentNew(_.seg,_.primary);var k=T(_),M=k.before?k.before.ev:null,S=k.after?k.after.ev:null;t&&t.tempStatus(_.seg,M?M.seg:!1,S?S.seg:!1);var C=N();if(C){if(e){var E;_.seg.myFill.below===null?E=!0:E=_.seg.myFill.above!==_.seg.myFill.below,E&&(C.seg.myFill.above=!C.seg.myFill.above)}else C.seg.otherFill=_.seg.myFill;t&&t.segmentUpdate(C.seg),_.other.remove(),_.remove()}if(i.getHead()!==_){t&&t.rewind(_.seg);continue}if(e){var E;_.seg.myFill.below===null?E=!0:E=_.seg.myFill.above!==_.seg.myFill.below,S?_.seg.myFill.below=S.seg.myFill.above:_.seg.myFill.below=p,E?_.seg.myFill.above=!_.seg.myFill.below:_.seg.myFill.above=_.seg.myFill.below}else if(_.seg.otherFill===null){var P;S?_.primary===S.primary?P=S.seg.otherFill.above:P=S.seg.myFill.above:P=_.primary?m:p,_.seg.otherFill={above:P,below:P}}t&&t.status(_.seg,M?M.seg:!1,S?S.seg:!1),_.other.status=k.insert(od.node({ev:_}))}else{var R=_.status;if(R===null)throw new Error("PolyBool: Zero-length segment detected; your epsilon is probably too small or too large");if(y.exists(R.prev)&&y.exists(R.next)&&w(R.prev.ev,R.next.ev),t&&t.statusRemove(R.ev.seg),R.remove(),!_.primary){var I=_.seg.myFill;_.seg.myFill=_.seg.otherFill,_.seg.otherFill=I}x.push(_.seg)}i.getHead().remove()}return t&&t.done(),x}return e?{addRegion:function(p){for(var m,y=p[p.length-1],b=0;b{function G7e(e,r,t){var a=[],n=[];return e.forEach(function(i){var o=i.start,l=i.end;if(r.pointsSame(o,l)){console.warn("PolyBool: Warning: Zero-length segment detected; your epsilon is probably too small or too large");return}t&&t.chainStart(i);var s={index:0,matches_head:!1,matches_pt1:!1},u={index:0,matches_head:!1,matches_pt1:!1},f=s;function c(B,N,U){return f.index=B,f.matches_head=N,f.matches_pt1=U,f===s?(f=u,!1):(f=null,!0)}for(var v=0;v{function ld(e,r,t){var a=[];return e.forEach(function(n){var i=(n.myFill.above?8:0)+(n.myFill.below?4:0)+(n.otherFill&&n.otherFill.above?2:0)+(n.otherFill&&n.otherFill.below?1:0);r[i]!==0&&a.push({id:t?t.segmentId():-1,start:n.start,end:n.end,myFill:{above:r[i]===1,below:r[i]===2},otherFill:null})}),t&&t.selected(a),a}var Y7e={union:function(e,r){return ld(e,[0,2,1,0,2,2,0,0,1,0,1,0,0,0,0,0],r)},intersect:function(e,r){return ld(e,[0,0,0,0,0,2,0,2,0,0,1,1,0,2,1,0],r)},difference:function(e,r){return ld(e,[0,0,0,0,2,0,2,0,1,1,0,0,0,1,2,0],r)},differenceRev:function(e,r){return ld(e,[0,2,1,0,0,0,1,1,0,2,0,2,0,0,0,0],r)},xor:function(e,r){return ld(e,[0,2,1,0,2,0,0,1,1,0,0,2,0,1,2,0],r)}};xO.exports=Y7e});var TO=z((p$e,wO)=>{var V7e={toPolygon:function(e,r){function t(i){if(i.length<=0)return e.segments({inverted:!1,regions:[]});function o(u){var f=u.slice(0,u.length-1);return e.segments({inverted:!1,regions:[f]})}for(var l=o(i[0]),s=1;s{var j7e=cO(),W7e=hO(),AO=yO(),X7e=bO(),sd=_O(),MO=TO(),Ji=!1,ud=W7e(),li;li={buildLog:function(e){return e===!0?Ji=j7e():e===!1&&(Ji=!1),Ji===!1?!1:Ji.list},epsilon:function(e){return ud.epsilon(e)},segments:function(e){var r=AO(!0,ud,Ji);return e.regions.forEach(r.addRegion),{segments:r.calculate(e.inverted),inverted:e.inverted}},combine:function(e,r){var t=AO(!1,ud,Ji);return{combined:t.calculate(e.segments,e.inverted,r.segments,r.inverted),inverted1:e.inverted,inverted2:r.inverted}},selectUnion:function(e){return{segments:sd.union(e.combined,Ji),inverted:e.inverted1||e.inverted2}},selectIntersect:function(e){return{segments:sd.intersect(e.combined,Ji),inverted:e.inverted1&&e.inverted2}},selectDifference:function(e){return{segments:sd.difference(e.combined,Ji),inverted:e.inverted1&&!e.inverted2}},selectDifferenceRev:function(e){return{segments:sd.differenceRev(e.combined,Ji),inverted:!e.inverted1&&e.inverted2}},selectXor:function(e){return{segments:sd.xor(e.combined,Ji),inverted:e.inverted1!==e.inverted2}},polygon:function(e){return{regions:X7e(e.segments,ud,Ji),inverted:e.inverted}},polygonFromGeoJSON:function(e){return MO.toPolygon(li,e)},polygonToGeoJSON:function(e){return MO.fromPolygon(li,ud,e)},union:function(e,r){return fd(e,r,li.selectUnion)},intersect:function(e,r){return fd(e,r,li.selectIntersect)},difference:function(e,r){return fd(e,r,li.selectDifference)},differenceRev:function(e,r){return fd(e,r,li.selectDifferenceRev)},xor:function(e,r){return fd(e,r,li.selectXor)}};function fd(e,r,t){var a=li.segments(e),n=li.segments(r),i=li.combine(a,n),o=t(i);return li.polygon(o)}typeof window=="object"&&(window.PolyBool=li);kO.exports=li});var LO=z((y$e,qO)=>{qO.exports=function(r,t,a,n){var i=r[0],o=r[1],l=!1;a===void 0&&(a=0),n===void 0&&(n=t.length);for(var s=n-a,u=0,f=s-1;uo!=p>o&&i<(d-c)*(o-v)/(p-v)+c;m&&(l=!l)}return l}});var tw=z((g$e,CO)=>{"use strict";var rw=Mp().dot,Ly=(Kt(),Ne(aa)).BADNUM,Cy=CO.exports={};Cy.tester=function(r){var t=r.slice(),a=t[0][0],n=a,i=t[0][1],o=i,l;for((t[t.length-1][0]!==t[0][0]||t[t.length-1][1]!==t[0][1])&&t.push(t[0]),l=1;ln||b===Ly||bo||m&&u(p))}function c(p,m){var y=p[0],b=p[1];if(y===Ly||yn||b===Ly||bo)return!1;var T=t.length,w=t[0][0],x=t[0][1],_=0,k,M,S,C,E;for(k=1;kMath.max(M,w)||b>Math.max(S,x)))if(bl||Math.abs(rw(c,u))>n)return!0;return!1};Cy.filter=function(r,t){var a=[r[0]],n=0,i=0;function o(s){r.push(s);var u=a.length,f=n;a.splice(i+1);for(var c=f+1;c1){var l=r.pop();o(l)}return{addPt:o,raw:r,filtered:a}}});var DO={};Dt(DO,{BENDPX:()=>Z7e,MINSELECT:()=>$7e,SELECTDELAY:()=>J7e,SELECTID:()=>K7e});var Z7e,$7e,J7e,K7e,EO=Ct(()=>{"use strict";Z7e=1.5,$7e=12,J7e=100,K7e="-select"});var eH=z((b$e,QO)=>{"use strict";var PO=SO(),Q7e=LO(),hd=Ar(),ewe=et().dashStyle,cd=qr(),rwe=Yn(),twe=No().makeEventData,gd=yf(),awe=gd.freeMode,nwe=gd.rectMode,dd=gd.drawMode,ow=gd.openMode,lw=gd.selectMode,RO=Zs(),FO=(ed(),Ne(Qh)),OO=dy(),HO=zs().clearOutline,UO=js(),aw=UO.handleEllipse,iwe=UO.readPaths,owe=cy().newShapes,lwe=q7(),swe=ew().activateLastSelection,Ey=ke(),uwe=Ey.sorterAsc,GO=tw(),vd=Np(),Ki=Ca().getFromId,fwe=ay(),cwe=ky().redrawReglTraces,Py=(EO(),Ne(DO)),Tl=Py.MINSELECT,vwe=GO.filter,sw=GO.tester,uw=ly(),zO=uw.p2r,hwe=uw.axValue,dwe=uw.getTransform;function fw(e){return e.subplot!==void 0}function pwe(e,r,t,a,n){var i=!fw(a),o=awe(n),l=nwe(n),s=ow(n),u=dd(n),f=lw(n),c=n==="drawline",v=n==="drawcircle",d=c||v,p=a.gd,m=p._fullLayout,y=f&&m.newselection.mode==="immediate"&&i,b=m._zoomlayer,T=a.element.getBoundingClientRect(),w=a.plotinfo,x=dwe(w),_=r-T.left,k=t-T.top;m._calcInverseTransform(p);var M=Ey.apply3DTransform(m._invTransform)(_,k);_=M[0],k=M[1];var S=m._invScaleX,C=m._invScaleY,E=_,P=k,R="M"+_+","+k,I=a.xaxes[0],B=a.yaxes[0],N=I._length,U=B._length,G=e.altKey&&!(dd(n)&&s),V,j,W,Y,J,re,le;VO(e,p,a),o&&(V=vwe([[_,k]],Py.BENDPX));var ne=b.selectAll("path.select-outline-"+w.id).data([1]),$=u?m.newshape:m.newselection;u&&(a.hasText=$.label.text||$.label.texttemplate);var ce=u&&!s?$.fillcolor:"rgba(0,0,0,0)",te=$.line.color||(i?cd.contrast(p._fullLayout.plot_bgcolor):"#7f7f7f");ne.enter().append("path").attr("class","select-outline select-outline-"+w.id).style({opacity:u?$.opacity/2:1,"stroke-dasharray":ewe($.line.dash,$.line.width),"stroke-width":$.line.width+"px","shape-rendering":"crispEdges"}).call(cd.stroke,te).call(cd.fill,ce).attr("fill-rule","evenodd").classed("cursor-move",!!u).attr("transform",x).attr("d",R+"Z");var ge=b.append("path").attr("class","zoombox-corners").style({fill:cd.background,stroke:cd.defaultLine,"stroke-width":1}).attr("transform",x).attr("d","M0,0Z");if(u&&a.hasText){var se=b.select(".label-temp");se.empty()&&(se=b.append("g").classed("label-temp",!0).classed("select-outline",!0).style({opacity:.8}))}var oe=m._uid+Py.SELECTID,Ae=[],Pe=Ry(p,a.xaxes,a.yaxes,a.subplot);y&&!e.shiftKey&&(a._clearSubplotSelections=function(){if(i){var Ce=I._id,Me=B._id;$O(p,Ce,Me,Pe);for(var Le=(p.layout||{}).selections||[],Se=[],Ee=!1,qe=0;qe=0){p._fullLayout._deactivateShape(p);return}if(!u){var Le=m.clickmode;vd.done(oe).then(function(){if(vd.clear(oe),Ce===2){for(ne.remove(),J=0;J-1&&YO(Me,p,a.xaxes,a.yaxes,a.subplot,a,ne),Le==="event"&&yd(p,void 0);rwe.click(p,Me,w.id)}).catch(Ey.error)}},a.doneFn=function(){ge.remove(),vd.done(oe).then(function(){vd.clear(oe),!y&&Y&&a.selectionDefs&&(Y.subtract=G,a.selectionDefs.push(Y),a.mergedPolygons.length=0,[].push.apply(a.mergedPolygons,W)),(y||u)&&pd(a,y),a.doneFnCompleted&&a.doneFnCompleted(Ae),f&&yd(p,le)}).catch(Ey.error)}}function YO(e,r,t,a,n,i,o){var l=r._hoverdata,s=r._fullLayout,u=s.clickmode,f=u.indexOf("event")>-1,c=[],v,d,p,m,y,b,T,w,x,_;if(xwe(l)){VO(e,r,i),v=Ry(r,t,a,n);var k=_we(l,v),M=k.pointNumbers.length>0;if(M?wwe(v,k):Twe(v)&&(T=IO(k))){for(o&&o.remove(),_=0;_=0}function bwe(e){return e._fullLayout._activeSelectionIndex>=0}function pd(e,r){var t=e.dragmode,a=e.plotinfo,n=e.gd;gwe(n)&&n._fullLayout._deactivateShape(n),bwe(n)&&n._fullLayout._deactivateSelection(n);var i=n._fullLayout,o=i._zoomlayer,l=dd(t),s=lw(t);if(l||s){var u=o.selectAll(".select-outline-"+a.id);if(u&&n._fullLayout._outlining){var f;l&&(f=owe(u,e)),f&&hd.call("_guiRelayout",n,{shapes:f});var c;s&&!fw(e)&&(c=lwe(u,e)),c&&(n._fullLayout._noEmitSelectedAtStart=!0,hd.call("_guiRelayout",n,{selections:c}).then(function(){r&&swe(n)})),n._fullLayout._outlining=!1}}a.selection={},a.selection.selectionDefs=e.selectionDefs=[],a.selection.mergedPolygons=e.mergedPolygons=[]}function NO(e){return e._id}function Ry(e,r,t,a){if(!e.calcdata)return[];var n=[],i=r.map(NO),o=t.map(NO),l,s,u;for(u=0;u0,i=n?a[0]:t;return r.selectedpoints?r.selectedpoints.indexOf(i)>-1:!1}function wwe(e,r){var t=[],a,n,i,o;for(o=0;o0&&t.push(a);if(t.length===1&&(i=t[0]===r.searchInfo,i&&(n=r.searchInfo.cd[0].trace,n.selectedpoints.length===r.pointNumbers.length))){for(o=0;o1||(r+=a.selectedpoints.length,r>1)))return!1;return r===1}function md(e,r,t){var a,n;for(a=0;a-1&&r;if(!o&&r){var Ce=BO(e,!0);if(Ce.length){var Me=Ce[0].xref,Le=Ce[0].yref;if(Me&&Le){var Se=JO(Ce),Ee=KO([Ki(e,Me,"x"),Ki(e,Le,"y")]);Ee(Ae,Se)}}e._fullLayout._noEmitSelectedAtStart?e._fullLayout._noEmitSelectedAtStart=!1:me&&yd(e,Ae),v._reselect=!1}if(!o&&v._deselect){var qe=v._deselect;l=qe.xref,s=qe.yref,kwe(l,s,f)||$O(e,l,s,a),me&&(Ae.points.length?yd(e,Ae):hw(e)),v._deselect=!1}return{eventData:Ae,selectionTesters:t}}function Mwe(e){var r=e.calcdata;if(r)for(var t=0;t{"use strict";rH.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}]});var bd={};Dt(bd,{axisRefDescription:()=>Dwe});function Dwe(e,r,t){return[`If set to a ${e} axis id (e.g. *${e}* or *${e}2*),`,`the \`${e}\` position refers to a ${e} coordinate.`,`If set to *paper*, the \`${e}\` position refers to the distance from the`,`${r} of the plotting area in normalized coordinates where *0* (*1*) corresponds`,`to the ${r} (${t}). If set to a ${e} 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 ${r} of the domain of that`,`axis: e.g., *${e}2 domain* refers to the domain of the second ${e}`,`axis and a ${e} position of 0.5 refers to the point between the ${r}`,`and the ${t} of the domain of the second ${e} axis.`].join(" ")}var xd=Ct(()=>{"use strict"});var w0=z((w$e,nH)=>{"use strict";var tH=dw(),aH=Ia(),Fy=(Ha(),Ne(Oa)),Ewe=Pt().templatedArray,_$e=(xd(),Ne(bd));nH.exports=Ewe("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:aH({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:tH.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:tH.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",Fy.idRegex.x.toString()],editType:"calc"},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",Fy.idRegex.y.toString()],editType:"calc"},xref:{valType:"enumerated",values:["paper",Fy.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",Fy.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:aH({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc"})});var _d={};Dt(_d,{PTS_LINESONLY:()=>Pwe,eventDataKeys:()=>Nwe,maxScreensAway:()=>zwe,minTolerance:()=>Rwe,toleranceGrowth:()=>Fwe});var Pwe,Rwe,Fwe,zwe,Nwe,wd=Ct(()=>{"use strict";Pwe=20,Rwe=.2,Fwe=10,zwe=20,Nwe=[]});var zy=z((T$e,iH)=>{"use strict";iH.exports=function(r){return{valType:"color",editType:"style",anim:!0}}});var Qi=z((A$e,hH)=>{"use strict";var oH=Fo().axisHoverFormat,{hovertemplateAttrs:Iwe,texttemplateAttrs:Bwe,templatefallbackAttrs:lH}=gi(),sH=fl(),Owe=Ia(),uH=Ui().dash,Hwe=Ui().pattern,Uwe=et(),Gwe=(wd(),Ne(_d)),Td=St().extendFlat,Ywe=zy();function fH(e){return{valType:"any",dflt:0,editType:"calc"}}function cH(e){return{valType:"any",editType:"calc"}}function vH(e){return{valType:"enumerated",values:["start","middle","end"],dflt:"middle",editType:"calc"}}hH.exports={x:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0},x0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",anim:!0},dx:{valType:"number",dflt:1,editType:"calc",anim:!0},y:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0},y0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",anim:!0},dy:{valType:"number",dflt:1,editType:"calc",anim:!0},xperiod:fH("x"),yperiod:fH("y"),xperiod0:cH("x0"),yperiod0:cH("y0"),xperiodalignment:vH("x"),yperiodalignment:vH("y"),xhoverformat:oH("x"),yhoverformat:oH("y"),offsetgroup:{valType:"string",dflt:"",editType:"calc"},alignmentgroup:{valType:"string",dflt:"",editType:"calc"},stackgroup:{valType:"string",dflt:"",editType:"calc"},orientation:{valType:"enumerated",values:["v","h"],editType:"calc"},groupnorm:{valType:"enumerated",values:["","fraction","percent"],dflt:"",editType:"calc"},stackgaps:{valType:"enumerated",values:["infer zero","interpolate"],dflt:"infer zero",editType:"calc"},text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},texttemplate:Bwe(),texttemplatefallback:lH({editType:"calc"}),hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"style"},mode:{valType:"flaglist",flags:["lines","markers","text"],extras:["none"],editType:"calc"},hoveron:{valType:"flaglist",flags:["points","fills"],editType:"style"},hovertemplate:Iwe({},{keys:Gwe.eventDataKeys}),hovertemplatefallback:lH(),line:{color:{valType:"color",editType:"style",anim:!0},width:{valType:"number",min:0,dflt:2,editType:"style",anim:!0},shape:{valType:"enumerated",values:["linear","spline","hv","vh","hvh","vhv"],dflt:"linear",editType:"plot"},smoothing:{valType:"number",min:0,max:1.3,dflt:1,editType:"plot"},dash:Td({},uH,{editType:"style"}),backoff:{valType:"number",min:0,dflt:"auto",arrayOk:!0,editType:"plot"},simplify:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},connectgaps:{valType:"boolean",dflt:!1,editType:"calc"},cliponaxis:{valType:"boolean",dflt:!0,editType:"plot"},fill:{valType:"enumerated",values:["none","tozeroy","tozerox","tonexty","tonextx","toself","tonext"],editType:"calc"},fillcolor:Ywe(!0),fillgradient:Td({type:{valType:"enumerated",values:["radial","horizontal","vertical","none"],dflt:"none",editType:"calc"},start:{valType:"number",editType:"calc"},stop:{valType:"number",editType:"calc"},colorscale:{valType:"colorscale",editType:"style"},editType:"calc"}),fillpattern:Hwe,marker:Td({symbol:{valType:"enumerated",values:Uwe.symbolList,dflt:"circle",arrayOk:!0,editType:"style"},opacity:{valType:"number",min:0,max:1,arrayOk:!0,editType:"style",anim:!0},angle:{valType:"angle",dflt:0,arrayOk:!0,editType:"plot",anim:!1},angleref:{valType:"enumerated",values:["previous","up"],dflt:"up",editType:"plot",anim:!1},standoff:{valType:"number",min:0,dflt:0,arrayOk:!0,editType:"plot",anim:!0},size:{valType:"number",min:0,dflt:6,arrayOk:!0,editType:"calc",anim:!0},maxdisplayed:{valType:"number",min:0,dflt:0,editType:"plot"},sizeref:{valType:"number",dflt:1,editType:"calc"},sizemin:{valType:"number",min:0,dflt:0,editType:"calc"},sizemode:{valType:"enumerated",values:["diameter","area"],dflt:"diameter",editType:"calc"},line:Td({width:{valType:"number",min:0,arrayOk:!0,editType:"style",anim:!0},dash:Td({},uH,{arrayOk:!0}),editType:"calc"},sH("marker.line",{anim:!0})),gradient:{type:{valType:"enumerated",values:["radial","horizontal","vertical","none"],arrayOk:!0,dflt:"none",editType:"calc"},color:{valType:"color",arrayOk:!0,editType:"calc"},editType:"calc"},editType:"calc"},sH("marker",{anim:!0})),selected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style"},color:{valType:"color",editType:"style"},size:{valType:"number",min:0,editType:"style"},editType:"style"},textfont:{color:{valType:"color",editType:"style"},editType:"style"},editType:"style"},unselected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style"},color:{valType:"color",editType:"style"},size:{valType:"number",min:0,editType:"style"},editType:"style"},textfont:{color:{valType:"color",editType:"style"},editType:"style"},editType:"style"},textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right"],dflt:"middle center",arrayOk:!0,editType:"calc"},textfont:Owe({editType:"calc",colorEditType:"style",arrayOk:!0}),zorder:{valType:"integer",dflt:0,editType:"plot"}}});var pw=z((k$e,mH)=>{"use strict";var dH=w0(),pH=Qi().line,Vwe=Ui().dash,Ny=St().extendFlat,jwe=Do().overrideAll,Wwe=Pt().templatedArray,M$e=(xd(),Ne(bd));mH.exports=jwe(Wwe("selection",{type:{valType:"enumerated",values:["rect","path"]},xref:Ny({},dH.xref,{}),yref:Ny({},dH.yref,{}),x0:{valType:"any"},x1:{valType:"any"},y0:{valType:"any"},y1:{valType:"any"},path:{valType:"string",editType:"arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:.7,editType:"arraydraw"},line:{color:pH.color,width:Ny({},pH.width,{min:1,dflt:1}),dash:Ny({},Vwe,{dflt:"dot"})}}),"arraydraw","from-root")});var xH=z((S$e,bH)=>{"use strict";var yH=ke(),Iy=jr(),Xwe=zo(),Zwe=pw(),gH=Zs();bH.exports=function(r,t){Xwe(r,t,{name:"selections",handleItemDefaults:$we});for(var a=t.selections,n=0;n{"use strict";_H.exports=function(r,t,a){a("newselection.mode");var n=a("newselection.line.width");n&&(a("newselection.line.color"),a("newselection.line.dash")),a("activeselection.fillcolor"),a("activeselection.opacity")}});var Ad=z((L$e,MH)=>{"use strict";var Jwe=Ar(),TH=ke(),AH=Ca();MH.exports=function(r){return function(a,n){var i=a[r];if(Array.isArray(i))for(var o=Jwe.subplotsRegistry.cartesian,l=o.idRegex,s=n._subplots,u=s.xaxis,f=s.yaxis,c=s.cartesian,v=n._has("cartesian"),d=0;d{"use strict";var kH=ew(),Md=eH();SH.exports={moduleType:"component",name:"selections",layoutAttributes:pw(),supplyLayoutDefaults:xH(),supplyDrawNewSelectionDefaults:wH(),includeBasePlot:Ad()("selections"),draw:kH.draw,drawOne:kH.drawOne,reselect:Md.reselect,prepSelect:Md.prepSelect,clearOutline:Md.clearOutline,clearSelectionsCache:Md.clearSelectionsCache,selectOnClick:Md.selectOnClick}});var WH=z((D$e,jH)=>{"use strict";var _w=Pr(),eo=ke(),qH=eo.numberFormat,Kwe=J6(),By=Ar(),zH=eo.strTranslate,Qwe=Da(),yw=qr(),Js=et(),e8e=Yn(),LH=jr(),r8e=Ys(),t8e=Xi(),NH=yf(),Oy=NH.selectingOrDrawing,a8e=NH.freeMode,n8e=(un(),Ne(sn)).FROM_TL,i8e=ay(),o8e=ky().redrawReglTraces,l8e=_a(),gw=Ca().getFromId,s8e=Al().prepSelect,u8e=Al().clearOutline,f8e=Al().selectOnClick,mw=j7(),ww=(Ha(),Ne(Oa)),CH=ww.MINDRAG,Vn=ww.MINZOOM,DH=!0;function c8e(e,r,t,a,n,i,o,l){var s=e._fullLayout._zoomlayer,u=o+l==="nsew",f=(o+l).length===1,c,v,d,p,m,y,b,T,w,x,_,k,M,S,C,E,P,R,I,B,N,U,G;t+=r.yaxis._shift;function V(){if(c=r.xaxis,v=r.yaxis,w=c._length,x=v._length,b=c._offset,T=v._offset,d={},d[c._id]=c,p={},p[v._id]=v,o&&l)for(var ue=r.overlays,xe=0;xe=0){Ie._fullLayout._deactivateShape(Ie);return}var We=Ie._fullLayout.clickmode;if(xw(Ie),ue===2&&!f&&er(),u)We.indexOf("select")>-1&&f8e(xe,Ie,m,y,r.id,Y),We.indexOf("event")>-1&&e8e.click(Ie,xe,r.id);else if(ue===1&&f){var Oe=o?v:c,Xe=o==="s"||l==="w"?0:1,Qe=Oe._name+".range["+Xe+"]",_r=v8e(Oe,Xe),gr="left",Re="middle";if(Oe.fixedrange)return;o?(Re=o==="n"?"top":"bottom",Oe.side==="right"&&(gr="right")):l==="e"&&(gr="right"),Ie._context.showAxisRangeEntryBoxes&&_w.select(W).call(Qwe.makeEditable,{gd:Ie,immediate:!0,background:Ie._fullLayout.paper_bgcolor,text:String(_r),fill:Oe.tickfont?Oe.tickfont.color:"#444",horizontalAlign:gr,verticalAlign:Re}).on("edit",function(Ze){var ze=Oe.d2r(Ze);ze!==void 0&&By.call("_guiRelayout",Ie,Qe,ze)})}}t8e.init(Y);var le,ne,$,ce,te,ge,se,oe,Ae,Pe;function me(ue,xe,Ie){var We=W.getBoundingClientRect();le=xe-We.left,ne=Ie-We.top,e._fullLayout._calcInverseTransform(e);var Oe=eo.apply3DTransform(e._fullLayout._invTransform)(le,ne);le=Oe[0],ne=Oe[1],$={l:le,r:le,w:0,t:ne,b:ne,h:0},ce=e._hmpixcount?e._hmlumcount/e._hmpixcount:yw.luminosity(e._fullLayout.plot_bgcolor),te="M0,0H"+w+"V"+x+"H0V0",ge=!1,se="xy",Pe=!1,oe=OH(s,ce,b,T,te),Ae=HH(s,b,T)}function Ce(ue,xe){if(e._transitioningWithDuration)return!1;var Ie=Math.max(0,Math.min(w,U*ue+le)),We=Math.max(0,Math.min(x,G*xe+ne)),Oe=Math.abs(Ie-le),Xe=Math.abs(We-ne);$.l=Math.min(le,Ie),$.r=Math.max(le,Ie),$.t=Math.min(ne,We),$.b=Math.max(ne,We);function Qe(){se="",$.r=$.l,$.t=$.b,Ae.attr("d","M0,0Z")}if(_.isSubplotConstrained)Oe>Vn||Xe>Vn?(se="xy",Oe/w>Xe/x?(Xe=Oe*x/w,ne>We?$.t=ne-Xe:$.b=ne+Xe):(Oe=Xe*w/x,le>Ie?$.l=le-Oe:$.r=le+Oe),Ae.attr("d",Hy($))):Qe();else if(k.isSubplotConstrained)if(Oe>Vn||Xe>Vn){se="xy";var _r=Math.min($.l/w,(x-$.b)/x),gr=Math.max($.r/w,(x-$.t)/x);$.l=_r*w,$.r=gr*w,$.b=(1-_r)*x,$.t=(1-gr)*x,Ae.attr("d",Hy($))}else Qe();else!S||Xe0){var Ze;if(k.isSubplotConstrained||!M&&S.length===1){for(Ze=0;Ze1&&(Qe.maxallowed!==void 0&&E===(Qe.range[0]1&&(_r.maxallowed!==void 0&&P===(_r.range[0]<_r.range[1]?"n":"s")||_r.minallowed!==void 0&&P===(_r.range[0]<_r.range[1]?"s":"n"))&&(mr=1,ye=0),!(!pr&&!mr)){pr||(pr=1),mr||(mr=1);var Fe=Qe._offset-ie/pr,He=_r._offset-ye/mr;Xe.clipRect.call(Js.setTranslate,ie,ye).call(Js.setScale,pr,mr),Xe.plot.call(Js.setTranslate,Fe,He).call(Js.setScale,1/pr,1/mr),(pr!==Xe.xScaleFactor||mr!==Xe.yScaleFactor)&&(Js.setPointGroupScale(Xe.zoomScalePts,pr,mr),Js.setTextPointsScale(Xe.zoomScaleTxt,pr,mr)),Js.hideOutsideRangePoints(Xe.clipOnAxisFalseTraces,Xe),Xe.xScaleFactor=pr,Xe.yScaleFactor=mr}}}}function Ge(ue,xe,Ie){return ue.fixedrange?0:E&&_.xaHash[ue._id]?xe:P&&(_.isSubplotConstrained?_.xaHash:_.yaHash)[ue._id]?Ie:0}function sr(ue,xe){return xe?(ue.range=ue._r.slice(),mw(ue,xe),vr(ue,xe)):0}function vr(ue,xe,Ie){return ue._length*(1-xe)*n8e[Ie||ue.constraintoward||"middle"]}return W}function IH(e,r,t,a){var n=eo.ensureSingle(e.draglayer,r,t,function(i){i.classed("drag",!0).style({fill:"transparent","stroke-width":0}).attr("data-subplot",e.id)});return n.call(r8e,a),n.node()}function BH(e,r,t,a,n,i,o){var l=IH(e,"rect",r,t);return _w.select(l).call(Js.setRect,a,n,i,o),l}function EH(e,r){for(var t=0;t=0?Math.min(e,.9):1/(1/Math.max(e,-.3)+3.222))}function d8e(e,r,t){return e?e==="nsew"?t?"":r==="pan"?"move":"crosshair":e.toLowerCase()+"-resize":"pointer"}function OH(e,r,t,a,n){return e.append("path").attr("class","zoombox").style({fill:r>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("transform",zH(t,a)).attr("d",n+"Z")}function HH(e,r,t){return e.append("path").attr("class","zoombox-corners").style({fill:yw.background,stroke:yw.defaultLine,"stroke-width":1,opacity:0}).attr("transform",zH(r,t)).attr("d","M0,0Z")}function UH(e,r,t,a,n,i){e.attr("d",a+"M"+t.l+","+t.t+"v"+t.h+"h"+t.w+"v-"+t.h+"h-"+t.w+"Z"),GH(e,r,n,i)}function GH(e,r,t,a){t||(e.transition().style("fill",a>.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),r.transition().style("opacity",1).duration(200))}function xw(e){_w.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function YH(e){DH&&e.data&&e._context.showTips&&(eo.notifier(eo._(e,"Double-click to zoom back out"),"long",e),DH=!1)}function p8e(e,r){return"M"+(e.l-.5)+","+(r-Vn-.5)+"h-3v"+(2*Vn+1)+"h3ZM"+(e.r+.5)+","+(r-Vn-.5)+"h3v"+(2*Vn+1)+"h-3Z"}function m8e(e,r){return"M"+(r-Vn-.5)+","+(e.t-.5)+"v-3h"+(2*Vn+1)+"v3ZM"+(r-Vn-.5)+","+(e.b+.5)+"v3h"+(2*Vn+1)+"v-3Z"}function Hy(e){var r=Math.floor(Math.min(e.b-e.t,e.r-e.l,Vn)/2);return"M"+(e.l-3.5)+","+(e.t-.5+r)+"h3v"+-r+"h"+r+"v-3h-"+(r+3)+"ZM"+(e.r+3.5)+","+(e.t-.5+r)+"h-3v"+-r+"h"+-r+"v-3h"+(r+3)+"ZM"+(e.r+3.5)+","+(e.b+.5-r)+"h-3v"+r+"h"+-r+"v3h"+(r+3)+"ZM"+(e.l-3.5)+","+(e.b+.5-r)+"h3v"+r+"h"+r+"v3h-"+(r+3)+"Z"}function RH(e,r,t,a,n){for(var i=!1,o={},l={},s,u,f,c,v=(n||{}).xaHash,d=(n||{}).yaHash,p=0;p{"use strict";var y8e=Pr(),Uy=Yn(),g8e=Xi(),b8e=Ys(),Oo=WH().makeDragBox,Xa=(Ha(),Ne(Oa)).DRAGGERSIZE;Gy.initInteractions=function(r){var t=r._fullLayout;if(r._context.staticPlot){y8e.select(r).selectAll(".drag").remove();return}if(!(!t._has("cartesian")&&!t._has("splom"))){var a=Object.keys(t._plots||{}).sort(function(i,o){if((t._plots[i].mainplot&&!0)===(t._plots[o].mainplot&&!0)){var l=i.split("y"),s=o.split("y");return l[0]===s[0]?Number(l[1]||1)-Number(s[1]||1):Number(l[0]||1)-Number(s[0]||1)}return t._plots[i].mainplot?1:-1});a.forEach(function(i){var o=t._plots[i],l=o.xaxis,s=o.yaxis;if(!o.mainplot){var u=Oo(r,o,l._offset,s._offset,l._length,s._length,"ns","ew");u.onmousemove=function(v){r._fullLayout._rehover=function(){r._fullLayout._hoversubplot===i&&r._fullLayout._plots[i]&&Uy.hover(r,v,i)},Uy.hover(r,v,i),r._fullLayout._lasthover=u,r._fullLayout._hoversubplot=i},u.onmouseout=function(v){r._dragging||(r._fullLayout._hoversubplot=null,g8e.unhover(r,v))},r._context.showAxisDragHandles&&(Oo(r,o,l._offset-Xa,s._offset-Xa,Xa,Xa,"n","w"),Oo(r,o,l._offset+l._length,s._offset-Xa,Xa,Xa,"n","e"),Oo(r,o,l._offset-Xa,s._offset+s._length,Xa,Xa,"s","w"),Oo(r,o,l._offset+l._length,s._offset+s._length,Xa,Xa,"s","e"))}if(r._context.showAxisDragHandles){if(i===l._mainSubplot){var f=l._mainLinePosition;l.side==="top"&&(f-=Xa),Oo(r,o,l._offset+l._length*.1,f,l._length*.8,Xa,"","ew"),Oo(r,o,l._offset,f,l._length*.1,Xa,"","w"),Oo(r,o,l._offset+l._length*.9,f,l._length*.1,Xa,"","e")}if(i===s._mainSubplot){var c=s._mainLinePosition;s.side!=="right"&&(c-=Xa),Oo(r,o,c,s._offset+s._length*.1,Xa,s._length*.8,"ns",""),Oo(r,o,c,s._offset+s._length*.9,Xa,s._length*.1,"s",""),Oo(r,o,c,s._offset,Xa,s._length*.1,"n","")}}});var n=t._hoverlayer.node();n.onmousemove=function(i){i.target=r._fullLayout._lasthover,Uy.hover(r,i,t._hoversubplot)},n.onclick=function(i){i.target=r._fullLayout._lasthover,Uy.click(r,i)},n.onmousedown=function(i){r._fullLayout._lasthover.onmousedown(i)},Gy.updateFx(r)}};Gy.updateFx=function(e){var r=e._fullLayout,t=r.dragmode==="pan"?"move":"crosshair";b8e(r._draggers,t)}});var $H=z((P$e,ZH)=>{"use strict";var XH=Ar();ZH.exports=function(r){for(var t=XH.layoutArrayContainers,a=XH.layoutArrayRegexes,n=r.split("[")[0],i,o,l=0;l{"use strict";var x8e=Fu(),Aw=Ap(),kd=Ms(),_8e=p4().sorterAsc,Mw=Ar();Sd.containerArrayMatch=$H();var w8e=Sd.isAddVal=function(r){return r==="add"||x8e(r)},JH=Sd.isRemoveVal=function(r){return r===null||r==="remove"};Sd.applyContainerArrayChanges=function(r,t,a,n,i){var o=t.astr,l=Mw.getComponentMethod(o,"supplyLayoutDefaults"),s=Mw.getComponentMethod(o,"draw"),u=Mw.getComponentMethod(o,"drawOne"),f=n.replot||n.recalc||l===Aw||s===Aw,c=r.layout,v=r._fullLayout;if(a[""]){Object.keys(a).length>1&&kd.warn("Full array edits are incompatible with other edits",o);var d=a[""][""];if(JH(d))t.set(null);else if(Array.isArray(d))t.set(d);else return kd.warn("Unrecognized full array edit value",o,d),!0;return f?!1:(l(c,v),s(r),!0)}var p=Object.keys(a).map(Number).sort(_8e),m=t.get(),y=m||[],b=i(v,o).get(),T=[],w=-1,x=y.length,_,k,M,S,C,E,P,R;for(_=0;_y.length-(P?0:1)){kd.warn("index out of range",o,M);continue}if(E!==void 0)C.length>1&&kd.warn("Insertion & removal are incompatible with edits to the same index.",o,M),JH(E)?T.push(M):P?(E==="add"&&(E={}),y.splice(M,0,E),b&&b.splice(M,0,{})):kd.warn("Unrecognized full object edit value",o,M,E),w===-1&&(w=M);else for(k=0;k=0;_--)y.splice(T[_],1),b&&b.splice(T[_],1);if(y.length?m||t.set(y):t.set(null),f)return!1;if(l(c,v),u!==Aw){var I;if(w===-1)I=p;else{for(x=Math.max(y.length,x),I=[],_=0;_=w));_++)I.push(M);for(_=w;_{"use strict";var tU=Br(),aU=Ar(),Fn=ke(),qd=_a(),nU=Ca(),Ld=nU.cleanId,T8e=nU.getFromTrace,kw=aU.traceIs,A8e=["x","y","z"];ro.clearPromiseQueue=function(e){Array.isArray(e._promises)&&e._promises.length>0&&Fn.log("Clearing previous rejected promises from queue."),e._promises=[]};ro.cleanLayout=function(e){var r,t;e||(e={}),e.xaxis1&&(e.xaxis||(e.xaxis=e.xaxis1),delete e.xaxis1),e.yaxis1&&(e.yaxis||(e.yaxis=e.yaxis1),delete e.yaxis1),e.scene1&&(e.scene||(e.scene=e.scene1),delete e.scene1);var a=(qd.subplotsRegistry.cartesian||{}).attrRegex,n=(qd.subplotsRegistry.polar||{}).attrRegex,i=(qd.subplotsRegistry.ternary||{}).attrRegex,o=(qd.subplotsRegistry.gl3d||{}).attrRegex,l=Object.keys(e);for(r=0;r3?(y.x=1.02,y.xanchor="left"):y.x<-2&&(y.x=-.02,y.xanchor="right"),y.y>3?(y.y=1.02,y.yanchor="bottom"):y.y<-2&&(y.y=-.02,y.yanchor="top")),e.dragmode==="rotate"&&(e.dragmode="orbit"),e.template&&e.template.layout&&ro.cleanLayout(e.template.layout),e};function T0(e,r,t=!1){var a=e[r],n=r.charAt(0);t&&Array.isArray(a)||a&&a!=="paper"&&(e[r]=Ld(a,n,!0))}ro.cleanData=function(e){for(var r=0;r0)return e.slice(0,r)}ro.hasParent=function(e,r){for(var t=rU(r);t;){if(t in e)return!0;t=rU(t)}return!1};ro.clearAxisTypes=function(e,r,t){for(var a=0;a{let t=(...a)=>a.every(n=>Fn.isPlainObject(n))||a.every(n=>Array.isArray(n));if([e,r].every(a=>Array.isArray(a))){if(e.length!==r.length)return!1;for(let a=0;aFn.isPlainObject(a))){if(Object.keys(e).length!==Object.keys(r).length)return!1;for(let a in e){if(a.startsWith("_"))continue;let n=e[a],i=r[a];if(n!==i&&!(t(n,i)?Sw(n,i):!1))return!1}return!0}return!1};ro.collectionsAreEqual=Sw});var Ew=z(Kr=>{"use strict";var Xy=Pr(),S8e=Br(),q8e=C4(),or=ke(),zt=or.nestedProperty,Lw=Ch(),jn=$P(),to=Ar(),rg=$c(),Cr=_a(),zn=jr(),L8e=$6(),C8e=ji(),jy=et(),D8e=qr(),E8e=Tw().initInteractions,P8e=(Wl(),Ne(jl)),R8e=Al().clearOutline,fU=As().dfltConfig,Vy=KH(),Ma=iU(),wt=ky(),Ks=Do(),F8e=(Ha(),Ne(Oa)).AX_NAME_PATTERN,qw=0,oU=5;function z8e(e,r,t,a){var n;if(e=or.getGraphDiv(e),Lw.init(e),or.isPlainObject(r)){var i=r;r=i.data,t=i.layout,a=i.config,n=i.frames}var o=Lw.triggerHandler(e,"plotly_beforeplot",[r,t,a]);if(o===!1)return Promise.reject();!r&&!t&&!or.isPlotDiv(e)&&or.warn("Calling _doPlot as if redrawing but this container doesn't yet have a plot.",e);function l(){if(n)return Kr.addFrames(e,n)}vU(e,a),t||(t={}),Xy.select(e).classed("js-plotly-plot",!0),jy.makeTester(),Array.isArray(e._promises)||(e._promises=[]);var s=(e.data||[]).length===0&&Array.isArray(r);Array.isArray(r)&&(Ma.cleanData(r),s?e.data=r:e.data.push.apply(e.data,r),e.empty=!1),(!e.layout||s)&&(e.layout=Ma.cleanLayout(t)),Cr.supplyDefaults(e);var u=e._fullLayout,f=u._has("cartesian");u._replotting=!0,(s||u._shouldCreateBgLayer)&&(o9e(e),u._shouldCreateBgLayer&&delete u._shouldCreateBgLayer),jy.initGradients(e),jy.initPatterns(e),s&&zn.saveShowSpikeInitial(e);var c=!e.calcdata||e.calcdata.length!==(e._fullData||[]).length;c&&Cr.doCalcdata(e);for(var v=0;v{or.isHidden(e)||Cr.resize(e)};if(e._context.fillFrame||typeof ResizeObserver=="undefined")window.addEventListener("resize",S),e._clearResponsive=()=>window.removeEventListener("resize",S);else{let C=e.offsetWidth,E=e.offsetHeight,P=new ResizeObserver(()=>{let R=e.offsetWidth,I=e.offsetHeight,B=Math.abs(R-C)>1||Math.abs(I-E)>1;C=R,E=I,B&&R&&I&&S()});P.observe(e),e._clearResponsive=()=>P.disconnect()}}}else or.clearResponsive(e);let d=document.fonts?[...document.fonts].filter(S=>S.status!=="loaded"):[];var p=or.extendFlat({},u._size),m=0;function y(){for(var S=u._basePlotModules,C=0;C["loaded","loading"].includes(n.status));if(!t.length)return;let a={};e._fontLoadToken=a,yield Promise.all(t.map(n=>n.loaded.catch(()=>{}))),e._fontLoadToken===a&&(delete e._fontLoadToken,jy.savedBBoxes={},Kr._doPlot(e))})}function Dd(e){var r=e._fullLayout;r._redrawFromAutoMarginCount?r._redrawFromAutoMarginCount--:e.emit("plotly_afterplot")}function I8e(e){return or.extendFlat(fU,e)}function cU(e,r){try{e._fullLayout._paper.style("background",r)}catch(t){or.error(t)}}function B8e(e,r){var t=D8e.combine(r,"white");cU(e,t)}function vU(e,r){if(!e._context){e._context=or.extendDeep({},fU);var t=Xy.select("base");e._context._baseUrl=t.size()&&t.attr("href")?window.location.href.split("#")[0]:""}var a=e._context,n,i,o;if(r){for(i=Object.keys(r),n=0;n=e.data.length||n<-e.data.length)throw new Error(t+" must be valid indices for gd.data.");if(r.indexOf(n,a+1)>-1||n>=0&&r.indexOf(-e.data.length+n)>-1||n<0&&r.indexOf(e.data.length+n)>-1)throw new Error("each index in "+t+" must be unique.")}}function hU(e,r,t){if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(typeof r=="undefined")throw new Error("currentIndices is a required argument.");if(Array.isArray(r)||(r=[r]),$y(e,r,"currentIndices"),typeof t!="undefined"&&!Array.isArray(t)&&(t=[t]),typeof t!="undefined"&&$y(e,t,"newIndices"),typeof t!="undefined"&&r.length!==t.length)throw new Error("current and new indices must be of equal length.")}function U8e(e,r,t){var a,n;if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(typeof r=="undefined")throw new Error("traces must be defined.");for(Array.isArray(r)||(r=[r]),a=0;a=0&&f=0&&f0&&typeof S.parts[P]!="string";)P--;var R=S.parts[P],I=S.parts[P-1]+"."+R,B=S.parts.slice(0,P).join("."),N=zt(e.layout,B).get(),U=zt(a,B).get(),G=S.get();if(C!==void 0){b[M]=C,T[M]=R==="reverse"?C:rs(G);var V=rg.getLayoutValObject(a,S.parts);if(V&&V.impliedEdits&&C!==null)for(var j in V.impliedEdits)w(or.relativeAttr(M,j),V.impliedEdits[j]);if(["width","height"].indexOf(M)!==-1)if(C){w("autosize",null);var W=M==="height"?"width":"height";w(W,a[W])}else a[M]=e._initialAutoSize[M];else if(M==="autosize")w("width",C?null:a.width),w("height",C?null:a.height);else if(I.match(wU))k(I),zt(a,B+"._inputRange").set(null);else if(I.match(TU)){k(I),zt(a,B+"._inputRange").set(null);var Y=zt(a,B).get();Y._inputDomain&&(Y._input.domain=Y._inputDomain.slice())}else I.match(j8e)&&zt(a,B+"._inputDomain").set(null);if(R==="type"){_=N;var J=U.type==="linear"&&C==="log",re=U.type==="log"&&C==="linear";if(J||re){if(!_||!_.range)w(B+".autorange",!0);else if(U.autorange)J&&(_.range=_.range[1]>_.range[0]?[1,2]:[2,1]);else{var le=_.range[0],ne=_.range[1];J?(le<=0&&ne<=0&&w(B+".autorange",!0),le<=0?le=ne/1e6:ne<=0&&(ne=le/1e6),w(B+".range[0]",Math.log(le)/Math.LN10),w(B+".range[1]",Math.log(ne)/Math.LN10)):(w(B+".range[0]",Math.pow(10,le)),w(B+".range[1]",Math.pow(10,ne)))}Array.isArray(a._subplots.polar)&&a._subplots.polar.length&&a[S.parts[0]]&&S.parts[1]==="radialaxis"&&delete a[S.parts[0]]._subplot.viewInitial["radialaxis.range"],to.getComponentMethod("annotations","convertCoords")(e,U,C,w),to.getComponentMethod("images","convertCoords")(e,U,C,w)}else w(B+".autorange",!0),w(B+".range",null);zt(a,B+"._inputRange").set(null)}else if(R.match(F8e)){var $=zt(a,M).get(),ce=(C||{}).type;(!ce||ce==="-")&&(ce="linear"),to.getComponentMethod("annotations","convertCoords")(e,$,ce,w),to.getComponentMethod("images","convertCoords")(e,$,ce,w)}var te=Vy.containerArrayMatch(M);if(te){f=te.array,c=te.index;var ge=te.property,se=V||{editType:"calc"};c!==""&&ge===""&&(Vy.isAddVal(C)?T[M]=null:Vy.isRemoveVal(C)?T[M]=(zt(t,f).get()||[])[c]:or.warn("unrecognized full object value",r)),Ks.update(y,se),u[f]||(u[f]={});var oe=u[f][c];oe||(oe=u[f][c]={}),oe[ge]=C,delete r[M]}else R==="reverse"?(N.range?N.range.reverse():(w(B+".autorange",!0),N.range=[1,0]),U.autorange?y.calc=!0:y.plot=!0):(M==="dragmode"&&(C===!1&&G!==!1||C!==!1&&G===!1)||a._has("scatter-like")&&a._has("regl")&&M==="dragmode"&&(C==="lasso"||C==="select")&&!(G==="lasso"||G==="select")?y.plot=!0:V?Ks.update(y,V):y.calc=!0,S.set(C))}}for(f in u){var Ae=Vy.applyContainerArrayChanges(e,i(t,f),u[f],y,i);Ae||(y.plot=!0)}for(var Pe in x){_=zn.getFromId(e,Pe);var me=_&&_._constraintGroup;if(me){y.calc=!0;for(var Ce in me)x[Ce]||(zn.getFromId(e,Ce)._constraintShrinkable=!0)}}(MU(e)||r.height||r.width)&&(y.plot=!0);var Me=a.shapes;for(c=0;c1;)if(a.pop(),t=zt(r,a.join(".")+".uirevision").get(),t!==void 0)return t;return r.uirevision}function Z8e(e,r){for(var t=0;t[B,e._ev.listeners(B)]);i=Kr.newPlot(e,r,t,a).then(()=>{for(let[B,N]of I)N.forEach(U=>e.on(B,U));return Kr.react(e,r,t,a)})}else{e.data=r||[],Ma.cleanData(e.data),e.layout=t||{},Ma.cleanLayout(e.layout),J8e(e.data,e.layout,l,s),Cr.supplyDefaults(e,{skipUpdateCalc:!0});var c=e._fullData,v=e._fullLayout,d=v.datarevision===void 0,p=v.transition,m=e9e(e,s,v,d,p),y=m.newDataRevision,b=Q8e(e,l,c,d,p,y);if(MU(e)&&(m.layoutReplot=!0),b.calc||m.calc){e.calcdata=void 0;for(var T=Object.getOwnPropertyNames(v),w=0;w(f||e.emit("plotly_react",{config:a,data:r,layout:t}),e))}function Q8e(e,r,t,a,n,i){var o=r.length===t.length;if(!n&&!o)return{fullReplot:!0,calc:!0};var l=Ks.traceFlags();l.arrays={},l.nChanges=0,l.nChangesAnim=0;var s,u;function f(d){var p=rg.getTraceValObject(u,d);return!u._module.animatable&&p.anim&&(p.anim=!1),p}var c={getValObject:f,flags:l,immutable:a,transition:n,newDataRevision:i,gd:e},v={};for(s=0;s=n.length?n[0]:n[u]:n}function l(u){return Array.isArray(i)?u>=i.length?i[0]:i[u]:i}function s(u,f){var c=0;return function(){if(u&&++c===f)return u()}}return new Promise(function(u,f){function c(){if(a._frameQueue.length!==0){for(;a._frameQueue.length;){var R=a._frameQueue.pop();R.onInterrupt&&R.onInterrupt()}e.emit("plotly_animationinterrupted",[])}}function v(R){if(R.length!==0){for(var I=0;Ia._timeToNext&&p()};R()}var y=0;function b(R){return Array.isArray(n)?y>=n.length?R.transitionOpts=n[y]:R.transitionOpts=n[0]:R.transitionOpts=n,y++,R}var T,w,x=[],_=r==null,k=Array.isArray(r),M=!_&&!k&&or.isPlainObject(r);if(M)x.push({type:"object",data:b(or.extendFlat({},r))});else if(_||["string","number"].indexOf(typeof r)!==-1)for(T=0;T0&&EE)&&P.push(w);x=P}}x.length>0?v(x):(e.emit("plotly_animated"),u())})}function t9e(e,r,t){if(e=or.getGraphDiv(e),r==null)return Promise.resolve();if(!or.isPlotDiv(e))throw new Error("This element is not a Plotly plot: "+e+". It's likely that you've failed to create a plot before adding frames. For more details, see https://plotly.com/javascript/animations/");var a,n,i,o,l=e._transitionData._frames,s=e._transitionData._frameHash;if(!Array.isArray(r))throw new Error("addFrames failure: frameList must be an Array of frame definitions"+r);var u=l.length+r.length*2,f=[],c={};for(a=r.length-1;a>=0;a--)if(or.isPlainObject(r[a])){var v=r[a].name,d=(s[v]||c[v]||{}).name,p=r[a].name,m=s[d]||c[d];d&&p&&typeof p=="number"&&m&&qwS.index?-1:M.index=0;a--){if(n=f[a].frame,typeof n.name=="number"&&or.warn("Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings"),!n.name)for(;s[n.name="frame "+e._transitionData._counter++];);if(s[n.name]){for(i=0;i=0;t--)a=r[t],i.push({type:"delete",index:a}),o.unshift({type:"insert",index:a,value:n[a]});var l=Cr.modifyFrames,s=Cr.modifyFrames,u=[e,o],f=[e,i];return jn&&jn.add(e,l,u,s,f),Cr.modifyFrames(e,i)}function n9e(e){e=or.getGraphDiv(e);var r=e._fullLayout||{},t=e._fullData||[];return Cr.cleanPlot([],{},t,r),Cr.purge(e),Lw.purge(e),r._container&&r._container.remove(),delete e._context,e}function i9e(e){var r=e._fullLayout,t=e.getBoundingClientRect();if(!or.equalDomRects(t,r._lastBBox)){var a=r._invTransform=or.inverseTransformMatrix(or.getFullTransformMatrix(e));r._invScaleX=Math.sqrt(a[0][0]*a[0][0]+a[0][1]*a[0][1]+a[0][2]*a[0][2]),r._invScaleY=Math.sqrt(a[1][0]*a[1][0]+a[1][1]*a[1][1]+a[1][2]*a[1][2]),r._lastBBox=t}}function o9e(e){var r=Xy.select(e),t=e._fullLayout;if(t._calcInverseTransform=i9e,t._calcInverseTransform(e),t._container=r.selectAll(".plot-container").data([0]),t._container.enter().insert("div",":first-child").classed("plot-container",!0).classed("plotly",!0).style({width:"100%",height:"100%"}),t._paperdiv=t._container.selectAll(".svg-container").data([0]),t._paperdiv.enter().append("div").classed("user-select-none",!0).classed("svg-container",!0).style("position","relative"),t._glcontainer=t._paperdiv.selectAll(".gl-container").data([{}]),t._glcontainer.enter().append("div").classed("gl-container",!0),t._paperdiv.selectAll(".main-svg").remove(),t._paperdiv.select(".modebar-container").remove(),t._paper=t._paperdiv.insert("svg",":first-child").classed("main-svg",!0),t._toppaper=t._paperdiv.append("svg").classed("main-svg",!0),t._modebardiv=t._paperdiv.append("div"),delete t._modeBar,t._hoverpaper=t._paperdiv.append("svg").classed("main-svg",!0),!t._uid){var a={};Xy.selectAll("defs").each(function(){this.id&&(a[this.id.split("-")[1]]=1)}),t._uid=or.randstr(a)}t._paperdiv.selectAll(".main-svg").attr(P8e.svgAttrs),t._defs=t._paper.append("defs").attr("id","defs-"+t._uid),t._clips=t._defs.append("g").classed("clips",!0),t._topdefs=t._toppaper.append("defs").attr("id","topdefs-"+t._uid),t._topclips=t._topdefs.append("g").classed("clips",!0),t._bgLayer=t._paper.append("g").classed("bglayer",!0),t._draggers=t._paper.append("g").classed("draglayer",!0);var n=t._paper.append("g").classed("layer-below",!0);t._imageLowerLayer=n.append("g").classed("imagelayer",!0),t._shapeLowerLayer=n.append("g").classed("shapelayer",!0),t._cartesianlayer=t._paper.append("g").classed("cartesianlayer",!0),t._polarlayer=t._paper.append("g").classed("polarlayer",!0),t._smithlayer=t._paper.append("g").classed("smithlayer",!0),t._ternarylayer=t._paper.append("g").classed("ternarylayer",!0),t._geolayer=t._paper.append("g").classed("geolayer",!0),t._funnelarealayer=t._paper.append("g").classed("funnelarealayer",!0),t._pielayer=t._paper.append("g").classed("pielayer",!0),t._iciclelayer=t._paper.append("g").classed("iciclelayer",!0),t._treemaplayer=t._paper.append("g").classed("treemaplayer",!0),t._sunburstlayer=t._paper.append("g").classed("sunburstlayer",!0),t._indicatorlayer=t._toppaper.append("g").classed("indicatorlayer",!0),t._glimages=t._paper.append("g").classed("glimages",!0);var i=t._toppaper.append("g").classed("layer-above",!0);t._imageUpperLayer=i.append("g").classed("imagelayer",!0),t._shapeUpperLayer=i.append("g").classed("shapelayer",!0),t._selectionLayer=t._toppaper.append("g").classed("selectionlayer",!0),t._infolayer=t._toppaper.append("g").classed("infolayer",!0),t._menulayer=t._toppaper.append("g").classed("menulayer",!0),t._zoomlayer=t._toppaper.append("g").classed("zoomlayer",!0),t._hoverlayer=t._hoverpaper.append("g").classed("hoverlayer",!0),t._modebardiv.classed("modebar-container",!0).style("position","absolute").style("top","0px").style("right","0px"),e.emit("plotly_framework")}Kr.animate=r9e;Kr.addFrames=t9e;Kr.deleteFrames=a9e;Kr.addTraces=gU;Kr.deleteTraces=bU;Kr.extendTraces=mU;Kr.moveTraces=Cw;Kr.prependTraces=yU;Kr.newPlot=H8e;Kr._doPlot=z8e;Kr.purge=n9e;Kr.react=K8e;Kr.redraw=O8e;Kr.relayout=Cd;Kr.restyle=Jy;Kr.setPlotConfig=I8e;Kr.update=Qy;Kr._guiRelayout=Dw(Cd);Kr._guiRestyle=Dw(Jy);Kr._guiUpdate=Dw(Qy);Kr._storeDirectGUIEdit=V8e});var ts=z(ao=>{"use strict";var l9e=Ar();ao.getDelay=function(e){return e._has&&(e._has("gl3d")||e._has("map"))?500:0};ao.getRedrawFunc=function(e){return function(){l9e.getComponentMethod("colorbar","draw")(e)}};ao.encodeSVG=function(e){return"data:image/svg+xml,"+encodeURIComponent(e)};ao.encodeJSON=function(e){return"data:application/json,"+encodeURIComponent(e)};var kU=window.URL||window.webkitURL;ao.createObjectURL=function(e){return kU.createObjectURL(e)};ao.revokeObjectURL=function(e){return kU.revokeObjectURL(e)};ao.createBlob=function(e,r){if(r==="svg")return new window.Blob([e],{type:"image/svg+xml;charset=utf-8"});if(r==="full-json")return new window.Blob([e],{type:"application/json;charset=utf-8"});var t=s9e(window.atob(e));return new window.Blob([t],{type:"image/"+r})};ao.octetStream=function(e){document.location.href="data:application/octet-stream"+e};ao.getPlotTitle=function(e){var a,n,i,o;var r=e._fullLayout;if(r){var t=(a=r.title)==null?void 0:a.text;return t===((n=r._dfltTitle)==null?void 0:n.plot)?void 0:t}return(o=(i=e.layout)==null?void 0:i.title)==null?void 0:o.text};ao.getPlotSubtitle=function(e){var a,n,i,o,l,s;var r=e._fullLayout;if(r){var t=(n=(a=r.title)==null?void 0:a.subtitle)==null?void 0:n.text;return t===((i=r._dfltTitle)==null?void 0:i.subtitle)?void 0:t}return(s=(l=(o=e.layout)==null?void 0:o.title)==null?void 0:l.subtitle)==null?void 0:s.text};function s9e(e){for(var r=e.length,t=new ArrayBuffer(r),a=new Uint8Array(t),n=0;n{"use strict";var Rw=Pr(),B$e=ke(),u9e=et(),f9e=qr(),O$e=(Wl(),Ne(jl)),Pw=/"/g,Tf="TOBESTRIPPED",c9e=new RegExp(`("${Tf})|(${Tf}")|("${Tf})|(${Tf}")`,"g"),v9e=["&","&","&",""",""",""","'","'","'"],h9e=["<","<","<"],d9e=[">",">",">"];function p9e(e){let r=Rw.select("body").append("div").style({display:"none"}).html(""),t=e.replace(/(&[^;]*;)/gi,a=>{let n=a.toLowerCase();return v9e.includes(n)?a:h9e.includes(n)?"<":d9e.includes(n)?">":a.includes("<")||a.includes(">")?"":r.html(a).text()});return r.remove(),t}function m9e(e){return e.replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&")}SU.exports=function(r,t,a){var n=r._fullLayout,i=n._paper,o=n._toppaper,l=n.width,s=n.height,u;i.insert("rect",":first-child").call(u9e.setRect,0,0,l,s).call(f9e.fill,n.paper_bgcolor);var f=n._basePlotModules||[];for(u=0;u{"use strict";var y9e=ke(),g9e=Ju().EventEmitter,Ed=ts();function b9e(e){var r=e.emitter||new g9e,t=new Promise(function(a,n){var i=window.Image,o=e.svg,l=e.format||"png",s=e.canvas,u=e.scale||1,f=e.width||300,c=e.height||150,v=u*f,d=u*c,p=s.getContext("2d",{willReadFrequently:!0}),m=new i,y,b;l==="svg"||y9e.isSafari()?b=Ed.encodeSVG(o):(y=Ed.createBlob(o,"svg"),b=Ed.createObjectURL(y)),s.width=v,s.height=d,m.onload=function(){var T;switch(y=null,Ed.revokeObjectURL(b),l!=="svg"&&p.drawImage(m,0,0,v,d),l){case"jpeg":T=s.toDataURL("image/jpeg");break;case"png":T=s.toDataURL("image/png");break;case"webp":T=s.toDataURL("image/webp");break;case"svg":T=b;break;default:var w="Image format is not jpeg, png, svg or webp.";if(n(new Error(w)),!e.promise)return r.emit("error",w)}a(T),e.promise||r.emit("success",T)},m.onerror=function(T){if(y=null,Ed.revokeObjectURL(b),n(T),!e.promise)return r.emit("error",T)},m.src=b});return e.promise?t:r}qU.exports=b9e});var zw=z((G$e,DU)=>{"use strict";var LU=Br(),CU=Ew(),x9e=_a(),Ml=ke(),Pd=ts(),_9e=ag(),w9e=ng(),T9e=Jv().version,Fw=(j_(),Ne(V_)).default;function A9e(e,r){r=r||{};var t,a,n,i;Ml.isPlainObject(e)?(t=e.data||[],a=e.layout||{},n=e.config||{},i={}):(e=Ml.getGraphDiv(e),t=Ml.extendDeep([],e.data),a=Ml.extendDeep({},e.layout),n=e._context,i=e._fullLayout||{});function o(k){return!(k in r)||Ml.validate(r[k],Fw[k])}if(!o("width")&&r.width!==null||!o("height")&&r.height!==null)throw new Error("Height and width should be pixel values.");if(!o("format"))throw new Error("Export format is not "+Ml.join2(Fw.format.values,", "," or ")+".");var l={};function s(k,M){return Ml.coerce(r,l,Fw,k,M)}var u=s("format"),f=s("width"),c=s("height"),v=s("scale"),d=s("setBackground"),p=s("imageDataOnly"),m=document.createElement("div");m.style.position="absolute",m.style.left="-5000px",document.body.appendChild(m);var y=Ml.extendFlat({},a);f?y.width=f:r.width===null&&LU(i.width)&&(y.width=i.width),c?y.height=c:r.height===null&&LU(i.height)&&(y.height=i.height);var b=Ml.extendFlat({},n,{_exportedPlot:!0,staticPlot:!0,setBackground:d}),T=Pd.getRedrawFunc(m);function w(){return new Promise(function(k){setTimeout(k,Pd.getDelay(m._fullLayout))})}function x(){return new Promise(function(k,M){var S=_9e(m,u,v),C=m._fullLayout.width,E=m._fullLayout.height;function P(){CU.purge(m),document.body.removeChild(m)}if(u==="full-json"){var R=x9e.graphJson(m,!1,"object",!0,!0);return R.version=T9e,R=JSON.stringify(R),P(),k(p?R:Pd.encodeJSON(R))}if(P(),u==="svg")return k(p?S:Pd.encodeSVG(S));var I=document.createElement("canvas");I.id=Ml.randstr(),w9e({format:u,width:C,height:E,scale:v,canvas:I,svg:S,promise:!0}).then(k).catch(M)})}function _(k){return p?k.replace(Pd.IMAGE_URL_PREFIX,""):k}return new Promise(function(k,M){CU.newPlot(m,t,y,b).then(T).then(w).then(x).then(function(S){k(_(S))}).catch(function(S){M(S)})})}DU.exports=A9e});var RU=z((Y$e,PU)=>{"use strict";var no=ke(),M9e=_a(),k9e=$c(),S9e=As().dfltConfig,Ho=no.isPlainObject,Mf=Array.isArray,Nw=no.isArrayOrTypedArray;PU.exports=function(r,t){r===void 0&&(r=[]),t===void 0&&(t={});var a=k9e.get(),n=[],i={_context:no.extendFlat({},S9e)},o,l;Mf(r)?(i.data=no.extendDeep([],r),o=r):(i.data=[],o=[],n.push(Za("array","data"))),Ho(t)?(i.layout=no.extendDeep({},t),l=t):(i.layout={},l={},arguments.length>1&&n.push(Za("object","layout"))),M9e.supplyDefaults(i);for(var s=i._fullData,u=o.length,f=0;fc.length&&a.push(Za("unused",n,u.concat(c.length)));var b=c.length,T=Array.isArray(y);T&&(b=Math.min(b,y.length));var w,x,_,k,M;if(v.dimensions===2)for(x=0;xc[x].length&&a.push(Za("unused",n,u.concat(x,c[x].length)));var S=c[x].length;for(w=0;w<(T?Math.min(S,y[x].length):S);w++)_=T?y[x][w]:y,k=f[x][w],M=c[x][w],no.validate(k,_)?M!==k&&M!==+k&&a.push(Za("dynamic",n,u.concat(x,w),k,M)):a.push(Za("value",n,u.concat(x,w),k))}else a.push(Za("array",n,u.concat(x),f[x]));else for(x=0;x{"use strict";var R9e=ke(),og=ts();function F9e(e,r,t){var a=document.createElement("a"),n="download"in a,i=new Promise(function(o,l){var s,u;if(n)return s=og.createBlob(e,t),u=og.createObjectURL(s),a.href=u,a.download=r,document.body.appendChild(a),a.click(),document.body.removeChild(a),og.revokeObjectURL(u),s=null,o(r);if(R9e.isSafari()){var f=t==="svg"?",":";base64,";return og.octetStream(f+encodeURIComponent(e)),o(r)}l(new Error("download error"))});return i}FU.exports=F9e});var Iw=z((j$e,OU)=>{"use strict";var lg=ke(),NU=Da(),z9e=zw(),N9e=zU(),IU=ts(),BU=40;function I9e(e,r){var t;return lg.isPlainObject(e)||(t=lg.getGraphDiv(e)),r=r||{},r.format=r.format||"png",r.width=r.width||null,r.height=r.height||null,r.imageDataOnly=!0,new Promise(function(a,n){t&&t._snapshotInProgress&&n(new Error("Image capture already in progress.")),t&&(t._snapshotInProgress=!0);var i=z9e(e,r),o=r.filename||e.fn;if(!o){let s=IU.getPlotTitle(e);if(s&&!NU.matchTex(s))o=lg.slugify(s,BU);else{let u=IU.getPlotSubtitle(e);u&&!NU.matchTex(u)&&(o=lg.slugify(u,BU))}}var l=o||"plot-image";l+="."+r.format.replace("-","."),i.then(function(s){return t&&(t._snapshotInProgress=!1),N9e(s,l,r.format)}).then(function(s){a(s)}).catch(function(s){t&&(t._snapshotInProgress=!1),n(s)})})}OU.exports=I9e});var VU=z(Bw=>{"use strict";var si=ke(),ui=si.isPlainObject,HU=$c(),UU=_a(),B9e=Gn(),GU=Pt(),YU=As().dfltConfig;Bw.makeTemplate=function(e){e=si.isPlainObject(e)?e:si.getGraphDiv(e),e=si.extendDeep({_context:YU},{data:e.data,layout:e.layout}),UU.supplyDefaults(e);var r=e.data||[],t=e.layout||{};t._basePlotModules=e._fullLayout._basePlotModules,t._modules=e._fullLayout._modules;var a={data:{},layout:{}};r.forEach(function(d){var p={};Rd(d,p,H9e.bind(null,d));var m=si.coerce(d,{},B9e,"type"),y=a.data[m];y||(y=a.data[m]=[]),y.push(p)}),Rd(t,a.layout,O9e.bind(null,t)),delete a.layout.template;var n=t.template;if(ui(n)){var i=n.layout,o,l,s,u,f,c;ui(i)&&sg(i,a.layout);var v=n.data;if(ui(v)){for(l in a.data)if(s=v[l],Array.isArray(s)){for(f=a.data[l],c=f.length,u=s.length,o=0;ob?o.push({code:"unused",traceType:d,templateCount:y,dataCount:b}):b>y&&o.push({code:"reused",traceType:d,templateCount:y,dataCount:b})}}function T(w,x){for(var _ in w)if(_.charAt(0)!=="_"){var k=w[_],M=io(w,_,x);ui(k)?(Array.isArray(w)&&k._template===!1&&k.templateitemname&&o.push({code:"missing",path:M,templateitemname:k.templateitemname}),T(k,M)):Array.isArray(k)&&U9e(k)&&T(k,M)}}if(T({data:s,layout:l},""),o.length)return o.map(G9e)};function U9e(e){for(var r=0;r{"use strict";var Ga=Ew();Xt._doPlot=Ga._doPlot;Xt.newPlot=Ga.newPlot;Xt.restyle=Ga.restyle;Xt.relayout=Ga.relayout;Xt.redraw=Ga.redraw;Xt.update=Ga.update;Xt._guiRestyle=Ga._guiRestyle;Xt._guiRelayout=Ga._guiRelayout;Xt._guiUpdate=Ga._guiUpdate;Xt._storeDirectGUIEdit=Ga._storeDirectGUIEdit;Xt.react=Ga.react;Xt.extendTraces=Ga.extendTraces;Xt.prependTraces=Ga.prependTraces;Xt.addTraces=Ga.addTraces;Xt.deleteTraces=Ga.deleteTraces;Xt.moveTraces=Ga.moveTraces;Xt.purge=Ga.purge;Xt.addFrames=Ga.addFrames;Xt.deleteFrames=Ga.deleteFrames;Xt.animate=Ga.animate;Xt.setPlotConfig=Ga.setPlotConfig;var Y9e=wh().getGraphDiv,V9e=by().eraseActiveShape;Xt.deleteActiveShape=function(e){return V9e(Y9e(e))};Xt.toImage=zw();Xt.validate=RU();Xt.downloadImage=Iw();var jU=VU();Xt.makeTemplate=jU.makeTemplate;Xt.validateTemplate=jU.validateTemplate});var Hw=z((Z$e,XU)=>{"use strict";var Ow=ke(),j9e=Ar();XU.exports=function(r,t,a,n){var i=n("x"),o=n("y"),l,s=j9e.getComponentMethod("calendars","handleTraceDefaults");if(s(r,t,["x","y"],a),i){var u=Ow.minRowLength(i);o?l=Math.min(u,Ow.minRowLength(o)):(l=u,n("y0"),n("dy"))}else{if(!o)return 0;l=Ow.minRowLength(o),n("x0"),n("dx")}return t._length=l,l}});var A0=z(($$e,JU)=>{"use strict";var ZU=ke().dateTick0,W9e=(Kt(),Ne(aa)),X9e=W9e.ONEWEEK;function $U(e,r){return e%X9e===0?ZU(r,1):ZU(r,0)}JU.exports=function(r,t,a,n,i){if(i||(i={x:!0,y:!0}),i.x){var o=n("xperiod");o&&(n("xperiod0",$U(o,t.xcalendar)),n("xperiodalignment"))}if(i.y){var l=n("yperiod");l&&(n("yperiod0",$U(l,t.ycalendar)),n("yperiodalignment"))}}});var eG=z((J$e,QU)=>{"use strict";var KU=["orientation","groupnorm","stackgaps"];QU.exports=function(r,t,a,n){var i=a._scatterStackOpts,o=n("stackgroup");if(o){var l=t.xaxis+t.yaxis,s=i[l];s||(s=i[l]={});var u=s[o],f=!1;u?u.traces.push(t):(u=s[o]={traceIndices:[],traces:[t]},f=!0);for(var c={orientation:t.x&&!t.y?"h":"v"},v=0;v{"use strict";var rG=qr(),tG=xi().hasColorscale,aG=Xl(),Z9e=ii();nG.exports=function(r,t,a,n,i,o={}){var l=Z9e.isBubble(r),s=(r.line||{}).color,u;if(s&&(a=s),i("marker.symbol"),i("marker.opacity",l?.7:1),i("marker.size"),o.noAngle||(i("marker.angle"),o.noAngleRef||i("marker.angleref"),o.noStandOff||i("marker.standoff")),i("marker.color",a),tG(r,"marker")&&aG(r,t,n,i,{prefix:"marker.",cLetter:"c"}),o.noSelect||(i("selected.marker.color"),i("unselected.marker.color"),i("selected.marker.size"),i("unselected.marker.size")),o.noLine||(s&&!Array.isArray(s)&&t.marker.color!==s?u=s:l?u=rG.background:u=rG.defaultLine,i("marker.line.color",u),tG(r,"marker.line")&&aG(r,t,n,i,{prefix:"marker.line.",cLetter:"c"}),i("marker.line.width",l?1:0),o.noLineDash||i("marker.line.dash")),l&&(i("marker.sizeref"),i("marker.sizemin"),i("marker.sizemode")),o.gradient){var f=i("marker.gradient.type");f!=="none"&&i("marker.gradient.color")}}});var Gw=z((Q$e,iG)=>{"use strict";var $9e=ke().isArrayOrTypedArray,J9e=xi().hasColorscale,K9e=Xl();iG.exports=function(r,t,a,n,i,o){o||(o={});var l=(r.marker||{}).color;if(l&&l._inputArray&&(l=l._inputArray),i("line.color",a),J9e(r,"line"))K9e(r,t,n,i,{prefix:"line.",cLetter:"c"});else{var s=($9e(l)?!1:l)||a;i("line.color",s)}i("line.width"),o.noDash||i("line.dash"),o.backoff&&i("line.backoff")}});var Yw=z((eJe,oG)=>{"use strict";oG.exports=function(r,t,a){var n=a("line.shape");n==="spline"&&a("line.smoothing")}});var Vw=z((rJe,lG)=>{"use strict";var Q9e=ke();lG.exports=function(e,r,t,a,n){n=n||{},a("textposition"),Q9e.coerceFont(a,"textfont",n.font||t.font,n),n.noSelect||(a("selected.textfont.color"),a("unselected.textfont.color"))}});var jw=z((tJe,uG)=>{"use strict";var fg=qr(),sG=ke().isArrayOrTypedArray;function eTe(e){for(var r=fg.interpolate(e[0][1],e[1][1],.5),t=2;t{"use strict";var fG=ke(),rTe=Ar(),tTe=Qi(),aTe=(wd(),Ne(_d)),M0=ii(),nTe=Hw(),iTe=A0(),oTe=eG(),lTe=Uw(),sTe=Gw(),cG=Yw(),uTe=Vw(),fTe=jw(),cTe=ke().coercePattern;vG.exports=function(r,t,a,n){function i(d,p){return fG.coerce(r,t,tTe,d,p)}var o=nTe(r,t,n,i);if(o||(t.visible=!1),!!t.visible){iTe(r,t,n,i),i("xhoverformat"),i("yhoverformat"),i("zorder");var l=oTe(r,t,n,i);n.scattermode==="group"&&t.orientation===void 0&&i("orientation","v");var s=!l&&o{"use strict";var vTe=wf().getAxisGroup;dG.exports=function(r,t,a,n,i){var o=t.orientation,l=t[{v:"x",h:"y"}[o]+"axis"],s=vTe(a,l)+o,u=a._alignmentOpts||{},f=n("alignmentgroup"),c=u[s];c||(c=u[s]={});var v=c[f];v?v.traces.push(t):v=c[f]={traces:[t],alignmentIndex:Object.keys(c).length,offsetGroups:{}};var d=n("offsetgroup")||"",p=v.offsetGroups,m=p[d];t._offsetIndex=0,(i!=="group"||d)&&(m||(m=p[d]={offsetIndex:Object.keys(p).length}),t._offsetIndex=m.offsetIndex)}});var mG=z((iJe,pG)=>{"use strict";var hTe=ke(),dTe=Fd(),pTe=Qi();pG.exports=function(r,t){var a,n,i,o=t.scattermode;function l(v){return hTe.coerce(n._input,n,pTe,v)}if(t.scattermode==="group")for(i=0;i=0;f--){var c=r[f];if(c.type==="scatter"&&c.xaxis===s.xaxis&&c.yaxis===s.yaxis){c.opacity=void 0;break}}}}}});var gG=z((oJe,yG)=>{"use strict";var mTe=ke(),yTe=Zp();yG.exports=function(e,r){function t(n,i){return mTe.coerce(e,r,yTe,n,i)}var a=r.barmode==="group";r.scattermode==="group"&&t("scattergap",a?r.bargap:.2)}});var k0=z((lJe,xG)=>{"use strict";var gTe=Br(),bG=ke(),bTe=bG.dateTime2ms,cg=bG.incrementMonth,xTe=(Kt(),Ne(aa)),_Te=xTe.ONEAVGMONTH;xG.exports=function(r,t,a,n){if(t.type!=="date")return{vals:n};var i=r[a+"periodalignment"];if(!i)return{vals:n};var o=r[a+"period"],l;if(gTe(o)){if(o=+o,o<=0)return{vals:n}}else if(typeof o=="string"&&o.charAt(0)==="M"){var s=+o.substring(1);if(s>0&&Math.round(s)===s)l=s;else return{vals:n}}for(var u=t.calendar,f=i==="start",c=i==="end",v=r[a+"period0"],d=bTe(v,u)||0,p=[],m=[],y=[],b=n.length,T=0;Tw;)k=cg(k,-l,u);for(;k<=w;)k=cg(k,l,u);_=cg(k,-l,u)}else{for(x=Math.round((w-d)/o),k=d+x*o;k>w;)k-=o;for(;k<=w;)k+=o;_=k-o}p[T]=f?_:c?k:(_+k)/2,m[T]=_,y[T]=k}return{vals:p,starts:m,ends:y}}});var Zw=z((sJe,wG)=>{"use strict";var Ww=xi().hasColorscale,Xw=e0(),_G=ii();wG.exports=function(r,t){_G.hasLines(t)&&Ww(t,"line")&&Xw(r,t,{vals:t.line.color,containerStr:"line",cLetter:"c"}),_G.hasMarkers(t)&&(Ww(t,"marker")&&Xw(r,t,{vals:t.marker.color,containerStr:"marker",cLetter:"c"}),Ww(t,"marker.line")&&Xw(r,t,{vals:t.marker.line.color,containerStr:"marker.line",cLetter:"c"}))}});var vg=z((uJe,TG)=>{"use strict";var ca=ke();TG.exports=function(r,t){for(var a=0;a{"use strict";var AG=ke();MG.exports=function(r,t){AG.isArrayOrTypedArray(t.selectedpoints)&&AG.tagSelected(r,t)}});var dg=z((cJe,EG)=>{"use strict";var kG=Br(),Jw=ke(),zd=jr(),SG=k0(),$w=(Kt(),Ne(aa)).BADNUM,Kw=ii(),wTe=Zw(),TTe=vg(),ATe=hg();function MTe(e,r){var t=e._fullLayout,a=r._xA=zd.getFromId(e,r.xaxis||"x","x"),n=r._yA=zd.getFromId(e,r.yaxis||"y","y"),i=a.makeCalcdata(r,"x"),o=n.makeCalcdata(r,"y"),l=SG(r,a,"x",i),s=SG(r,n,"y",o),u=l.vals,f=s.vals,c=r._length,v=new Array(c),d=r.ids,p=Qw(r,t,a,n),m=!1,y,b,T,w,x,_;CG(t,r);var k="x",M="y",S;if(p)Jw.pushUnique(p.traceIndices,r.index),y=p.orientation==="v",y?(M="s",S="x"):(k="s",S="y"),x=p.stackgaps==="interpolate";else{var C=LG(r,c);qG(e,r,a,n,u,f,C)}var E=!!r.xperiodalignment,P=!!r.yperiodalignment;for(b=0;bb&&v[w].gap;)w--;for(_=v[w].s,T=v.length-1;T>w;T--)v[T].s=_;for(;b{"use strict";PG.exports=pg;var kTe=ke().distinctVals;function pg(e,r){this.traces=e,this.sepNegVal=r.sepNegVal,this.overlapNoMerge=r.overlapNoMerge;for(var t=1/0,a=r.posAxis._id.charAt(0),n=[],i=0;iSTe,eventDataKeys:()=>qTe});var STe,qTe,Id=Ct(()=>{"use strict";STe=3,qTe=["value","label"]});var yg=z((hJe,IG)=>{"use strict";var oo=Br(),{isArrayOrTypedArray:as}=ke(),{BADNUM:S0}=(Kt(),Ne(aa)),LTe=Ar(),Bd=jr(),{getAxisGroup:CTe}=wf(),mg=RG(),{TEXTPAD:DTe}=(Id(),Ne(Nd)),{LINE_SPACING:ETe}=(un(),Ne(sn)),{BR_TAG_ALL:PTe}=Da();function RTe(e,r){for(var t=r.xaxis,a=r.yaxis,n=e._fullLayout,i=e._fullData,o=e.calcdata,l=[],s=[],u=0;us+o||!oo(l))}for(var f=0;fa(i))):a(e.text);let n=e.outsidetextfont.size*ETe*t+DTe;return{ppadplus:r.some(i=>i.s<0)?n:0,ppadminus:r.some(i=>i.s>=0)?n:0}}return{ppadplus:void 0,ppadminus:void 0}}function YTe(e,r,t,a){for(var n=q0(a),i=0;i{"use strict";var BG=dg(),OG=yg().setGroupPositions;function jTe(e,r){for(var t=r.xaxis,a=r.yaxis,n=e._fullLayout,i=e._fullData,o=e.calcdata,l=[],s=[],u=0;uC[f]&&f{"use strict";var XTe=et(),jG=(Kt(),Ne(aa)),Od=jG.BADNUM,WG=jG.LOG_CLIP,GG=WG+.5,YG=WG-.5,gg=ke(),ZTe=gg.segmentsIntersect,VG=gg.constrain,o8=(wd(),Ne(_d));XG.exports=function(r,t){var a=t.trace||{},n=t.xaxis,i=t.yaxis,o=n.type==="log",l=i.type==="log",s=n._length,u=i._length,f=t.backoff,c=a.marker,v=t.connectGaps,d=t.baseTolerance,p=t.shape,m=p==="linear",y=a.fill&&a.fill!=="none",b=[],T=o8.minTolerance,w=r.length,x=new Array(w),_=0,k,M,S,C,E,P,R,I,B,N,U,G,V,j,W,Y;function J(Re){var Ze=r[Re];if(!Ze)return!1;var ze=t.linearized?n.l2p(Ze.x):n.c2p(Ze.x),rr=t.linearized?i.l2p(Ze.y):i.c2p(Ze.y);if(ze===Od){if(o&&(ze=n.c2p(Ze.x,!0)),ze===Od)return!1;l&&rr===Od&&(ze*=Math.abs(n._m*u*(n._m>0?GG:YG)/(i._m*s*(i._m>0?GG:YG)))),ze*=1e3}if(rr===Od){if(l&&(rr=i.c2p(Ze.y,!0)),rr===Od)return!1;rr*=1e3}return[ze,rr]}function re(Re,Ze,ze,rr){var cr=ze-Re,pr=rr-Ze,mr=.5-Re,ie=.5-Ze,ye=cr*cr+pr*pr,Fe=cr*mr+pr*ie;if(Fe>0&&Fe1||Math.abs(mr.y-ze[0][1])>1)&&(mr=[mr.x,mr.y],rr&&ce(mr,Re)se||Re[1]Ae)return[VG(Re[0],ge,se),VG(Re[1],oe,Ae)]}function Je(Re,Ze){if(Re[0]===Ze[0]&&(Re[0]===ge||Re[0]===se)||Re[1]===Ze[1]&&(Re[1]===oe||Re[1]===Ae))return!0}function Ke(Re,Ze){var ze=[],rr=Ue(Re),cr=Ue(Ze);return rr&&cr&&Je(rr,cr)||(rr&&ze.push(rr),cr&&ze.push(cr)),ze}function De(Re,Ze,ze){return function(rr,cr){var pr=Ue(rr),mr=Ue(cr),ie=[];if(pr&&mr&&Je(pr,mr))return ie;pr&&ie.push(pr),mr&&ie.push(mr);var ye=2*gg.constrain((rr[Re]+cr[Re])/2,Ze,ze)-((pr||rr)[Re]+(mr||cr)[Re]);if(ye){var Fe;pr&&mr?Fe=ye>0==pr[Re]>mr[Re]?pr:mr:Fe=pr||mr,Fe[Re]+=ye}return ie}}var Be;p==="linear"||p==="spline"?Be=qe:p==="hv"||p==="vh"?Be=Ke:p==="hvh"?Be=De(0,ge,se):p==="vhv"&&(Be=De(1,oe,Ae));function er(Re,Ze){var ze=Ze[0]-Re[0],rr=(Ze[1]-Re[1])/ze,cr=(Re[1]*Ze[0]-Ze[1]*Re[0])/ze;return cr>0?[rr>0?ge:se,Ae]:[rr>0?se:ge,oe]}function ae(Re){var Ze=Re[0],ze=Re[1],rr=Ze===x[_-1][0],cr=ze===x[_-1][1];if(!(rr&&cr))if(_>1){var pr=Ze===x[_-2][0],mr=ze===x[_-2][1];rr&&(Ze===ge||Ze===se)&&pr?mr?_--:x[_-1]=Re:cr&&(ze===oe||ze===Ae)&&mr?pr?_--:x[_-1]=Re:x[_++]=Re}else x[_++]=Re}function be(Re){x[_-1][0]!==Re[0]&&x[_-1][1]!==Re[1]&&ae([Me,Le]),ae(Re),Se=null,Me=Le=0}var Ge=gg.isArrayOrTypedArray(c);function sr(Re){if(Re&&f&&(Re.i=k,Re.d=r,Re.trace=a,Re.marker=Ge?c[Re.i]:c,Re.backoff=f),le=Re[0]/s,ne=Re[1]/u,me=Re[0]se?se:0,Ce=Re[1]Ae?Ae:0,me||Ce){if(!_)x[_++]=[me||Re[0],Ce||Re[1]];else if(Se){var Ze=Be(Se,Re);Ze.length>1&&(be(Ze[0]),x[_++]=Ze[1])}else Ee=Be(x[_-1],Re)[0],x[_++]=Ee;var ze=x[_-1];me&&Ce&&(ze[0]!==me||ze[1]!==Ce)?(Se&&(Me!==me&&Le!==Ce?ae(Me&&Le?er(Se,Re):[Me||me,Le||Ce]):Me&&Le&&ae([Me,Le])),ae([me,Ce])):Me-me&&Le-Ce&&ae([me||Me,Ce||Le]),Se=Re,Me=me,Le=Ce}else Se&&be(Be(Se,Re)[0]),x[_++]=Re}for(k=0;k$(P,vr))break;S=P,V=B[0]*I[0]+B[1]*I[1],V>U?(U=V,C=P,R=!1):V=r.length||!P)break;sr(P),M=P}}Se&&ae([Me||Se[0],Le||Se[1]]),b.push(x.slice(0,_))}var ue=p.slice(p.length-1);if(f&&ue!=="h"&&ue!=="v"){for(var xe=!1,Ie=-1,We=[],Oe=0;Oe{"use strict";var ZG={tonextx:1,tonexty:1,tonext:1};$G.exports=function(r,t,a){var n,i,o,l,s,u={},f=!1,c=-1,v=0,d=-1;for(i=0;i=0?s=d:(s=d=v,v++),s{"use strict";var Uo=Pr(),$Te=Ar(),Hd=ke(),L0=Hd.ensureSingle,QG=Hd.identity,da=et(),C0=ii(),JTe=l8(),KTe=JG(),bg=tw().tester;eY.exports=function(r,t,a,n,i,o){var l,s,u=!i,f=!!i&&i.duration>0,c=KTe(r,t,a);if(l=n.selectAll("g.trace").data(c,function(d){return d[0].trace.uid}),l.enter().append("g").attr("class",function(d){return"trace scatter trace"+d[0].trace.uid}).style("stroke-miterlimit",2),l.order(),QTe(r,l,t),f){o&&(s=o());var v=Uo.transition().duration(i.duration).ease(i.easing).each("end",function(){s&&s()}).each("interrupt",function(){s&&s()});v.each(function(){n.selectAll("g.trace").each(function(d,p){KG(r,p,t,d,c,this,i)})})}else l.each(function(d,p){KG(r,p,t,d,c,this,i)});u&&l.exit().remove(),n.selectAll("path:not([d])").remove()};function QTe(e,r,t){r.each(function(a){var n=L0(Uo.select(this),"g","fills");da.setClipUrl(n,t.layerClipId,e);var i=a[0].trace;i._ownFill=null,i._nextFill=null;var o=[];i._ownfill&&o.push("_ownFill"),i._nexttrace&&o.push("_nextFill");var l=n.selectAll("g").data(o,QG);l.enter().append("g"),l.exit().remove(),l.order().each(function(s){i[s]=L0(Uo.select(this),"path","js-fill")})})}function KG(e,r,t,a,n,i,o){var l=e._context.staticPlot,s;eAe(e,r,t,a,n);var u=!!o&&o.duration>0;function f(De){return u?De.transition():De}var c=t.xaxis,v=t.yaxis,d=a[0].trace,p=d.line,m=Uo.select(i),y=L0(m,"g","errorbars"),b=L0(m,"g","lines"),T=L0(m,"g","points"),w=L0(m,"g","text");if($Te.getComponentMethod("errorbars","plot")(e,y,t,o),d.visible!==!0)return;f(m).style("opacity",d.opacity);var x,_,k=d.fill.charAt(d.fill.length-1);k!=="x"&&k!=="y"&&(k="");var M,S;k==="y"?(M=1,S=v.c2p(0,!0)):k==="x"&&(M=0,S=c.c2p(0,!0)),a[0][t.isRangePlot?"nodeRangePlot3":"node3"]=m;var C="",E=[],P=d._prevtrace,R=null,I=null;P&&(C=P._prevRevpath||"",_=P._nextFill,E=P._ownPolygons,R=P._fillsegments,I=P._fillElement);var B,N,U="",G="",V,j,W,Y,J,re,le=[];d._polygons=[];var ne=[],$=[],ce=Hd.noop;if(x=d._ownFill,C0.hasLines(d)||d.fill!=="none"){_&&_.datum(a),["hv","vh","hvh","vhv"].indexOf(p.shape)!==-1?(V=da.steps(p.shape),j=da.steps(p.shape.split("").reverse().join(""))):p.shape==="spline"?V=j=function(De){var Be=De[De.length-1];return De.length>1&&De[0][0]===Be[0]&&De[0][1]===Be[1]?da.smoothclosed(De.slice(1),p.smoothing):da.smoothopen(De,p.smoothing)}:V=j=function(De){return"M"+De.join("L")},W=function(De){return j(De.reverse())},$=JTe(a,{xaxis:c,yaxis:v,trace:d,connectGaps:d.connectgaps,baseTolerance:Math.max(p.width||1,3)/4,shape:p.shape,backoff:p.backoff,simplify:p.simplify,fill:d.fill}),ne=new Array($.length);var te=0;for(s=0;s<$.length;s++){var ge,se=$[s];!ge||!k?(ge=se.slice(),ne[te]=ge,te++):ge.push.apply(ge,se)}d._fillElement=null,d._fillExclusionElement=I,d._fillsegments=ne.slice(0,te),ne=d._fillsegments,$.length&&(Y=$[0][0].slice(),J=$[$.length-1],re=J[J.length-1].slice()),ce=function(De){return function(Be){if(B=V(Be),N=W(Be),U?k?(U+="L"+B.slice(1),G=N+("L"+G.slice(1))):(U+="Z"+B,G=N+"Z"+G):(U=B,G=N),C0.hasLines(d)){var er=Uo.select(this);if(er.datum(a),De)f(er.style("opacity",0).attr("d",B).call(da.lineGroupStyle)).style("opacity",1);else{var ae=f(er);ae.attr("d",B),da.singleLineStyle(a,ae)}}}}}var oe=b.selectAll(".js-line").data($);f(oe.exit()).style("opacity",0).remove(),oe.each(ce(!1)),oe.enter().append("path").classed("js-line",!0).style("vector-effect",l?"none":"non-scaling-stroke").call(da.lineGroupStyle).each(ce(!0)),da.setClipUrl(oe,t.layerClipId,e);function Ae(De){f(De).attr("d","M0,0Z")}var Pe=function(){var De=new Array(ne.length);for(s=0;s=l[0]&&m.x<=l[1]&&m.y>=s[0]&&m.y<=s[1]}),v=Math.ceil(c.length/f),d=0;n.forEach(function(m,y){var b=m[0].trace;C0.hasMarkers(b)&&b.marker.maxdisplayed>0&&y{"use strict";rY.exports={container:"marker",min:"cmin",max:"cmax"}});var u8=z((bJe,tY)=>{"use strict";var xg=jr();tY.exports=function(r,t,a){var n={},i={_fullLayout:a},o=xg.getFromTrace(i,t,"x"),l=xg.getFromTrace(i,t,"y"),s=r.orig_x;s===void 0&&(s=r.x);var u=r.orig_y;return u===void 0&&(u=r.y),n.xLabel=xg.tickText(o,o.c2l(s),!0).text,n.yLabel=xg.tickText(l,l.c2l(u),!0).text,n}});var kf=z((xJe,aY)=>{"use strict";var f8=Pr(),D0=et(),rAe=Ar();function tAe(e){var r=f8.select(e).selectAll("g.trace.scatter");r.style("opacity",function(t){return t[0].trace.opacity}),r.selectAll("g.points").each(function(t){var a=f8.select(this),n=t.trace||t[0].trace;c8(a,n,e)}),r.selectAll("g.text").each(function(t){var a=f8.select(this),n=t.trace||t[0].trace;v8(a,n,e)}),r.selectAll("g.trace path.js-line").call(D0.lineGroupStyle),r.selectAll("g.trace path.js-fill").call(D0.fillGroupStyle,e,!1),rAe.getComponentMethod("errorbars","style")(r)}function c8(e,r,t){D0.pointStyle(e.selectAll("path.point"),r,t)}function v8(e,r,t){D0.textPointStyle(e.selectAll("text"),r,t)}function aAe(e,r,t){var a=r[0].trace;a.selectedpoints?(D0.selectedPointStyle(t.selectAll("path.point"),a),D0.selectedTextStyle(t.selectAll("text"),a)):(c8(t,a,e),v8(t,a,e))}aY.exports={style:tAe,stylePoints:c8,styleText:v8,styleOnSelect:aAe}});var iY=z((_Je,nY)=>{"use strict";var E0=qr(),nAe=ii();nY.exports=function(r,t){var a,n;if(r.mode==="lines")return a=r.line.color,a&&E0.opacity(a)?a:r.fillcolor;if(r.mode==="none")return r.fill?r.fillcolor:"";var i=t.mcc||t.mc||(r.marker||{}).color,o=t.mlcc||((r.marker||{}).line||{}).color;return n=i&&E0.opacity(i)?i:o&&E0.opacity(o)&&(t.mlw||((r.marker||{}).line||{}).width)?o:"",n?E0.opacity(n)<.3?E0.addOpacity(n,.3):n:(a=(r.line||{}).color,a&&E0.opacity(a)&&nAe.hasLines(r)&&r.line.width?a:r.fillcolor)}});var d8=z((wJe,lY)=>{"use strict";var _g=ke(),oY=Yn(),iAe=Ar(),oAe=iY(),h8=qr(),lAe=_g.fillText;lY.exports=function(r,t,a,n){var i=r.cd,o=i[0].trace,l=r.xa,s=r.ya,u=l.c2p(t),f=s.c2p(a),c=[u,f],v=o.hoveron||"",d=o.mode.indexOf("markers")!==-1?3:.5,p=!!o.xperiodalignment,m=!!o.yperiodalignment;if(v.indexOf("points")!==-1){var y=function(G){if(p){var V=l.c2p(G.xStart),j=l.c2p(G.xEnd);return u>=Math.min(V,j)&&u<=Math.max(V,j)?0:1/0}var W=Math.max(3,G.mrc||0),Y=1-1/W,J=Math.abs(l.c2p(G.x)-u);return J=Math.min(V,j)&&f<=Math.max(V,j)?0:1/0}var W=Math.max(3,G.mrc||0),Y=1-1/W,J=Math.abs(s.c2p(G.y)-f);return Jle!=Ae>=le&&(ge=ce[$-1][0],se=ce[$][0],Ae-oe&&(te=ge+(se-ge)*(le-oe)/(Ae-oe),W=Math.min(W,te),Y=Math.max(Y,te)));return W=Math.max(W,0),Y=Math.min(Y,l._length),{x0:W,x1:Y,y0:le,y1:le}}if(v.indexOf("fills")!==-1&&o._fillElement){var B=R(o._fillElement)&&!R(o._fillExclusionElement);if(B){var N=I(o._polygons);N===null&&(N={x0:c[0],x1:c[0],y0:c[1],y1:c[1]});var U=h8.defaultLine;return h8.opacity(o.fillcolor)?U=o.fillcolor:h8.opacity((o.line||{}).color)&&(U=o.line.color),_g.extendFlat(r,{distance:r.maxHoverDistance,x0:N.x0,x1:N.x1,y0:N.y0,y1:N.y1,color:U,hovertemplate:!1}),delete r.index,o.text&&!_g.isArrayOrTypedArray(o.text)?r.text=String(o.text):r.text=o.name,[r]}}}});var p8=z((TJe,uY)=>{"use strict";var sY=ii();uY.exports=function(r,t){var a=r.cd,n=r.xaxis,i=r.yaxis,o=[],l=a[0].trace,s,u,f,c,v=l.mode&&!sY.hasMarkers(l)&&!sY.hasText(l);if(v)return[];if(t===!1)for(s=0;s{"use strict";fY.exports={xaxis:{valType:"subplotid",dflt:"x",editType:"calc+clearAxisTypes"},yaxis:{valType:"subplotid",dflt:"y",editType:"calc+clearAxisTypes"}}});var pY=z((MJe,dY)=>{"use strict";var wg=Ar().traceIs,m8=Am();dY.exports=function(r,t,a,n){a("autotypenumbers",n.autotypenumbersDflt);var i=a("type",(n.splomStash||{}).type);i==="-"&&(sAe(t,n.data),t.type==="-"?t.type="linear":r.type=t.type)};function sAe(e,r){if(e.type==="-"){var t=e._id,a=t.charAt(0),n;t.indexOf("scene")!==-1&&(t=a);var i=uAe(r,t,a);if(i){if(i.type==="histogram"&&a==={v:"y",h:"x"}[i.orientation||"v"]){e.type="linear";return}var o=a+"calendar",l=i[o],s={noMultiCategory:!wg(i,"cartesian")||wg(i,"noMultiCategory")};if(i.type==="box"&&i._hasPreCompStats&&a==={h:"x",v:"y"}[i.orientation||"v"]&&(s.noMultiCategory=!0),s.autotypenumbers=e.autotypenumbers,hY(i,a)){var u=vY(i),f=[];for(n=0;n0&&(n["_"+t+"axes"]||{})[r])return n;if((n[t+"axis"]||t)===r){if(hY(n,t))return n;if((n[t]||[]).length||n[t+"0"])return n}}}function vY(e){return{v:"x",h:"y"}[e.orientation||"v"]}function hY(e,r){var t=vY(e),a=wg(e,"box-violin");return a&&r===t&&e[t]===void 0&&e[t+"0"]===void 0}});var yY=z((kJe,mY)=>{"use strict";var fAe=Qn().isTypedArraySpec;function cAe(e,r){var t=r.dataAttr||e._id.charAt(0),a={},n,i,o;if(r.axData)n=r.axData;else for(n=[],i=0;i0||fAe(i),l;o&&(l="array");var s=a("categoryorder",l),u;s==="array"&&(u=a("categoryarray")),!o&&s==="array"&&(s=t.categoryorder="trace"),s==="trace"?t._initialCategories=[]:s==="array"?t._initialCategories=u.slice():(u=cAe(t,n).sort(),s==="category ascending"?t._initialCategories=u:s==="category descending"&&(t._initialCategories=u.reverse()))}}});var y8=z((SJe,bY)=>{"use strict";var gY=qr(),vAe=Hi(),hAe=ke();bY.exports=function(r,t,a,n){n=n||{};var i=n.dfltColor;function o(S,C){return hAe.coerce2(r,t,n.attributes,S,C)}var l=o("linecolor",i),s=o("linewidth"),u=a("showline",n.showLine||!!l||!!s);u||(delete t.linecolor,delete t.linewidth);var f=gY.mix(i,n.bgColor,n.blend||vAe.lightFraction),c=o("gridcolor",f),v=o("gridwidth"),d=o("griddash"),p=a("showgrid",n.showGrid||!!c||!!v||!!d);if(p||(delete t.gridcolor,delete t.gridwidth,delete t.griddash),n.hasMinor){var m=gY.mix(t.gridcolor,n.bgColor,67),y=o("minor.gridcolor",m),b=o("minor.gridwidth",t.gridwidth||1),T=o("minor.griddash",t.griddash||"solid"),w=a("minor.showgrid",!!y||!!b||!!T);w||(delete t.minor.gridcolor,delete t.minor.gridwidth,delete t.minor.griddash)}if(!n.noZeroLine){var x=o("zerolinelayer"),_=o("zerolinecolor",i),k=o("zerolinewidth"),M=a("zeroline",n.showGrid||!!_||!!k);M||(delete t.zerolinelayer,delete t.zerolinecolor,delete t.zerolinewidth)}}});var b8=z((qJe,MY)=>{"use strict";var xY=Br(),dAe=Ar(),Gd=ke(),pAe=Pt(),mAe=zo(),g8=ji(),_Y=im(),wY=om(),yAe=sm(),gAe=um(),bAe=yY(),xAe=y8(),_Ae=$6(),TY=l0(),Tg=(Ha(),Ne(Oa)).WEEKDAY_PATTERN,wAe=(Ha(),Ne(Oa)).HOUR_PATTERN;MY.exports=function(r,t,a,n,i){var o=n.letter,l=n.font||{},s=n.splomStash||{},u=a("visible",!n.visibleDflt),f=t._template||{},c=t.type||f.type||"-",v;if(c==="date"){var d=dAe.getComponentMethod("calendars","handleDefaults");d(r,t,"calendar",n.calendar),n.noTicklabelmode||(v=a("ticklabelmode"))}!n.noTicklabelindex&&(c==="date"||c==="linear")&&a("ticklabelindex");var p="";(!n.noTicklabelposition||c==="multicategory")&&(p=Gd.coerce(r,t,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:v==="period"?["outside","inside"]:o==="x"?["outside","inside","outside left","inside left","outside right","inside right"]:["outside","inside","outside top","inside top","outside bottom","inside bottom"]}},"ticklabelposition")),n.noTicklabeloverflow||a("ticklabeloverflow",p.indexOf("inside")!==-1?"hide past domain":c==="category"||c==="multicategory"?"allow":"hide past div"),TY(t,i),_Ae(r,t,a,n),bAe(r,t,a,n),n.noHover||(c!=="category"&&a("hoverformat"),n.noUnifiedhovertitle||a("unifiedhovertitle.text"));var m=a("color"),y=m!==g8.color.dflt?m:l.color,b=s.label||i._dfltTitle[o];if(gAe(r,t,a,c,n),!u)return t;a("title.text",b),Gd.coerceFont(a,"title.font",l,{overrideDflt:{size:Gd.bigFont(l.size),color:y}}),_Y(r,t,a,c);var T=n.hasMinor;if(T&&(pAe.newContainer(t,"minor"),_Y(r,t,a,c,{isMinor:!0})),yAe(r,t,a,c,n),wY(r,t,a,n),T){var w=n.isMinor;n.isMinor=!0,wY(r,t,a,n),n.isMinor=w}xAe(r,t,a,{dfltColor:m,bgColor:n.bgColor,showGrid:n.showGrid,hasMinor:T,attributes:g8}),T&&t.ticklabelindex==null&&!t.minor.ticks&&!t.minor.showgrid&&delete t.minor,(t.showline||t.ticks)&&a("mirror");var x=c==="multicategory";if(!n.noTickson&&(c==="category"||x)&&(t.ticks||t.showgrid)&&(x?(a("tickson","boundaries"),delete t.ticklabelposition):a("tickson")),x){var _=a("showdividers");_&&(a("dividercolor"),a("dividerwidth"))}if(c==="date")if(mAe(r,t,{name:"rangebreaks",inclusionAttr:"enabled",handleItemDefaults:TAe}),!t.rangebreaks.length)delete t.rangebreaks;else{for(var k=0;k=2){var o="",l,s;if(i.length===2){for(l=0;l<2;l++)if(s=AY(i[l]),s){o=Tg;break}}var u=a("pattern",o);if(u===Tg)for(l=0;l<2;l++)s=AY(i[l]),s&&(r.bounds[l]=i[l]=s-1);if(u)for(l=0;l<2;l++)switch(s=i[l],u){case Tg:if(!xY(s)){r.enabled=!1;return}if(s=+s,s!==Math.floor(s)||s<0||s>=7){r.enabled=!1;return}r.bounds[l]=i[l]=s;break;case wAe:if(!xY(s)){r.enabled=!1;return}if(s=+s,s<0||s>24){r.enabled=!1;return}r.bounds[l]=i[l]=s;break}if(t.autorange===!1){var f=t.range;if(f[0]f[1]){r.enabled=!1;return}}else if(i[0]>f[0]&&i[1]{"use strict";var MAe=Br(),Ag=ke();kY.exports=function(r,t,a,n){var i=n.counterAxes||[],o=n.overlayableAxes||[],l=n.letter,s=n.grid,u=n.overlayingDomain,f,c,v,d,p,m;s&&(c=s._domains[l][s._axisMap[t._id]],f=s._anchors[t._id],c&&(v=s[l+"side"].split(" ")[0],d=s.domain[l][v==="right"||v==="top"?1:0])),c=c||[0,1],f=f||(MAe(r.position)?"free":i[0]||"free"),v=v||(l==="x"?"bottom":"left"),d=d||0,p=0,m=!1;var y=Ag.coerce(r,t,{anchor:{valType:"enumerated",values:["free"].concat(i),dflt:f}},"anchor"),b=Ag.coerce(r,t,{side:{valType:"enumerated",values:l==="x"?["bottom","top"]:["left","right"],dflt:v}},"side");if(y==="free"){if(l==="y"){var T=a("autoshift");T&&(d=b==="left"?u[0]:u[1],m=t.automargin?t.automargin:!0,p=b==="left"?-3:3),a("shift",p)}a("position",d)}a("automargin",m);var w=!1;if(o.length&&(w=Ag.coerce(r,t,{overlaying:{valType:"enumerated",values:[!1].concat(o),dflt:!1}},"overlaying")),!w){var x=a("domain",c);x[0]>x[1]-1/4096&&(t.domain=c),Ag.noneOrAll(r.domain,t.domain,c),t.tickmode==="sync"&&(t.tickmode="auto")}return a("layer"),t}});var FY=z((CJe,RY)=>{"use strict";var Sf=ke(),SY=qr(),kAe=No().isUnifiedHover,SAe=A7(),qY=Pt(),qAe=Oc(),LY=ji(),LAe=pY(),CY=b8(),CAe=wf(),DY=x8(),w8=Ca(),kl=w8.id2name,EY=w8.name2id,DAe=(Ha(),Ne(Oa)).AX_ID_PATTERN,PY=Ar(),Mg=PY.traceIs,_8=PY.getComponentMethod;function kg(e,r,t){Array.isArray(e[r])?e[r].push(t):e[r]=[t]}RY.exports=function(r,t,a){var n=t.autotypenumbers,i={},o={},l={},s={},u={},f={},c={},v={},d={},p={},m,y;for(m=0;m{"use strict";var EAe=Pr(),zY=Ar(),Sg=ke(),qi=et(),qg=jr();NY.exports=function(r,t,a,n){var i=r._fullLayout;if(t.length===0){qg.redrawComponents(r);return}function o(y){var b=y.xaxis,T=y.yaxis;i._defs.select("#"+y.clipId+"> rect").call(qi.setTranslate,0,0).call(qi.setScale,1,1),y.plot.call(qi.setTranslate,b._offset,T._offset).call(qi.setScale,1,1);var w=y.plot.selectAll(".scatterlayer .trace");w.selectAll(".point").call(qi.setPointGroupScale,1,1),w.selectAll(".textpoint").call(qi.setTextPointsScale,1,1),w.call(qi.hideOutsideRangePoints,y)}function l(y,b){var T=y.plotinfo,w=T.xaxis,x=T.yaxis,_=w._length,k=x._length,M=!!y.xr1,S=!!y.yr1,C=[];if(M){var E=Sg.simpleMap(y.xr0,w.r2l),P=Sg.simpleMap(y.xr1,w.r2l),R=E[1]-E[0],I=P[1]-P[0];C[0]=(E[0]*(1-b)+b*P[0]-E[0])/(E[1]-E[0])*_,C[2]=_*(1-b+b*I/R),w.range[0]=w.l2r(E[0]*(1-b)+b*P[0]),w.range[1]=w.l2r(E[1]*(1-b)+b*P[1])}else C[0]=0,C[2]=_;if(S){var B=Sg.simpleMap(y.yr0,x.r2l),N=Sg.simpleMap(y.yr1,x.r2l),U=B[1]-B[0],G=N[1]-N[0];C[1]=(B[1]*(1-b)+b*N[1]-B[1])/(B[0]-B[1])*k,C[3]=k*(1-b+b*G/U),x.range[0]=w.l2r(B[0]*(1-b)+b*N[0]),x.range[1]=x.l2r(B[1]*(1-b)+b*N[1])}else C[1]=0,C[3]=k;qg.drawOne(r,w,{skipTitle:!0}),qg.drawOne(r,x,{skipTitle:!0}),qg.redrawComponents(r,[w._id,x._id]);var V=M?_/C[2]:1,j=S?k/C[3]:1,W=M?C[0]:0,Y=S?C[1]:0,J=M?C[0]/C[2]*_:0,re=S?C[1]/C[3]*k:0,le=w._offset-J,ne=x._offset-re;T.clipRect.call(qi.setTranslate,W,Y).call(qi.setScale,1/V,1/j),T.plot.call(qi.setTranslate,le,ne).call(qi.setScale,V,j),qi.setPointGroupScale(T.zoomScalePts,1/V,1/j),qi.setTextPointsScale(T.zoomScaleTxt,1/V,1/j)}var s;n&&(s=n());function u(){for(var y={},b=0;ba.duration?(u(),d=window.cancelAnimationFrame(m)):d=window.requestAnimationFrame(m)}return c=Date.now(),d=window.requestAnimationFrame(m),Promise.resolve()}});var lo=z(bn=>{"use strict";var Cg=Pr(),BY=Ar(),qf=ke(),PAe=_a(),RAe=et(),OY=Kp().getModuleCalcData,Qs=Ca(),Go=(Ha(),Ne(Oa)),FAe=(Wl(),Ne(jl)),st=qf.ensureSingle;function Lg(e,r,t){return qf.ensureSingle(e,r,t,function(a){a.datum(t)})}var Lf=Go.zindexSeparator;bn.name="cartesian";bn.attr=["xaxis","yaxis"];bn.idRoot=["x","y"];bn.idRegex=Go.idRegex;bn.attrRegex=Go.attrRegex;bn.attributes=cY();bn.layoutAttributes=ji();bn.supplyLayoutDefaults=FY();bn.transitionAxes=IY();bn.finalizeSubplots=function(e,r){var t=r._subplots,a=t.xaxis,n=t.yaxis,i=t.cartesian,o=i,l={},s={},u,f,c;for(u=0;u0){var d=v.id;if(d.indexOf(Lf)!==-1)continue;d+=Lf+(u+1),v=qf.extendFlat({},v,{id:d,plot:n._cartesianlayer.selectAll(".subplot").select("."+d)})}for(var p=[],m,y=0;y1&&(_+=Lf+x),w.push(l+_),o=0;o1,c=r.mainplotinfo;if(!r.mainplot||f)if(u)r.xlines=st(a,"path","xlines-above"),r.ylines=st(a,"path","ylines-above"),r.xaxislayer=st(a,"g","xaxislayer-above"),r.yaxislayer=st(a,"g","yaxislayer-above");else{if(!o){var v=st(a,"g","layer-subplot");r.shapelayer=st(v,"g","shapelayer"),r.imagelayer=st(v,"g","imagelayer"),c&&f?(r.minorGridlayer=c.minorGridlayer,r.gridlayer=c.gridlayer,r.zerolinelayer=c.zerolinelayer):(r.minorGridlayer=st(a,"g","minor-gridlayer"),r.gridlayer=st(a,"g","gridlayer"),r.zerolinelayer=st(a,"g","zerolinelayer"));var d=st(a,"g","layer-between");r.shapelayerBetween=st(d,"g","shapelayer"),r.imagelayerBetween=st(d,"g","imagelayer"),st(a,"path","xlines-below"),st(a,"path","ylines-below"),r.overlinesBelow=st(a,"g","overlines-below"),st(a,"g","xaxislayer-below"),st(a,"g","yaxislayer-below"),r.overaxesBelow=st(a,"g","overaxes-below")}r.overplot=st(a,"g","overplot"),r.plot=st(r.overplot,"g",n),c&&f?r.zerolinelayerAbove=c.zerolinelayerAbove:r.zerolinelayerAbove=st(a,"g","zerolinelayer-above"),o||(r.xlines=st(a,"path","xlines-above"),r.ylines=st(a,"path","ylines-above"),r.overlinesAbove=st(a,"g","overlines-above"),st(a,"g","xaxislayer-above"),st(a,"g","yaxislayer-above"),r.overaxesAbove=st(a,"g","overaxes-above"),r.xlines=a.select(".xlines-"+l),r.ylines=a.select(".ylines-"+s),r.xaxislayer=a.select(".xaxislayer-"+l),r.yaxislayer=a.select(".yaxislayer-"+s))}else{var p=c.plotgroup,m=n+"-x",y=n+"-y";r.minorGridlayer=c.minorGridlayer,r.gridlayer=c.gridlayer,r.zerolinelayer=c.zerolinelayer,r.zerolinelayerAbove=c.zerolinelayerAbove,st(c.overlinesBelow,"path",m),st(c.overlinesBelow,"path",y),st(c.overaxesBelow,"g",m),st(c.overaxesBelow,"g",y),r.plot=st(c.overplot,"g",n),st(c.overlinesAbove,"path",m),st(c.overlinesAbove,"path",y),st(c.overaxesAbove,"g",m),st(c.overaxesAbove,"g",y),r.xlines=p.select(".overlines-"+l).select("."+m),r.ylines=p.select(".overlines-"+s).select("."+y),r.xaxislayer=p.select(".overaxes-"+l).select("."+m),r.yaxislayer=p.select(".overaxes-"+s).select("."+y)}o||(u||(Lg(r.minorGridlayer,"g",r.xaxis._id),Lg(r.minorGridlayer,"g",r.yaxis._id),r.minorGridlayer.selectAll("g").map(function(b){return b[0]}).sort(Qs.idSort),Lg(r.gridlayer,"g",r.xaxis._id),Lg(r.gridlayer,"g",r.yaxis._id),r.gridlayer.selectAll("g").map(function(b){return b[0]}).sort(Qs.idSort)),r.xlines.style("fill","none").classed("crisp",!0),r.ylines.style("fill","none").classed("crisp",!0))}function GY(e,r){if(e){var t={};e.each(function(s){var u=s[0],f=Cg.select(this);f.remove(),YY(u,r),t[u]=!0});for(var a in r._plots)for(var n=r._plots[a],i=n.overlays||[],o=0;o{"use strict";var Dg=ii();VY.exports={hasLines:Dg.hasLines,hasMarkers:Dg.hasMarkers,hasText:Dg.hasText,isBubble:Dg.isBubble,attributes:Qi(),layoutAttributes:Zp(),supplyDefaults:hG(),crossTraceDefaults:mG(),supplyLayoutDefaults:gG(),calc:dg().calc,crossTraceCalc:UG(),arraysToCalcdata:vg(),plot:s8(),colorbar:Ud(),formatLabels:u8(),style:kf().style,styleOnSelect:kf().styleOnSelect,hoverPoints:d8(),selectPoints:p8(),animatable:!0,moduleType:"trace",name:"scatter",basePlotModule:lo(),categories:["cartesian","svg","symbols","errorBarsOK","showLegend","scatter-like","zoomScale"],meta:{}}});var ZY=z((RJe,XY)=>{"use strict";var NAe=Pr(),IAe=qr(),WY=dw(),T8=ke(),BAe=T8.strScale,OAe=T8.strRotate,HAe=T8.strTranslate;XY.exports=function(r,t,a){var n=r.node(),i=WY[a.arrowhead||0],o=WY[a.startarrowhead||0],l=(a.arrowwidth||1)*(a.arrowsize||1),s=(a.arrowwidth||1)*(a.startarrowsize||1),u=t.indexOf("start")>=0,f=t.indexOf("end")>=0,c=i.backoff*l+a.standoff,v=o.backoff*s+a.startstandoff,d,p,m,y;if(n.nodeName==="line"){d={x:+r.attr("x1"),y:+r.attr("y1")},p={x:+r.attr("x2"),y:+r.attr("y2")};var b=d.x-p.x,T=d.y-p.y;if(m=Math.atan2(T,b),y=m+Math.PI,c&&v&&c+v>Math.sqrt(b*b+T*T)){B();return}if(c){if(c*c>b*b+T*T){B();return}var w=c*Math.cos(m),x=c*Math.sin(m);p.x+=w,p.y+=x,r.attr({x2:p.x,y2:p.y})}if(v){if(v*v>b*b+T*T){B();return}var _=v*Math.cos(m),k=v*Math.sin(m);d.x-=_,d.y-=k,r.attr({x1:d.x,y1:d.y})}}else if(n.nodeName==="path"){var M=n.getTotalLength(),S="";if(M{"use strict";var $Y=Pr(),A8=Ar(),UAe=_a(),ru=ke(),M8=ru.strTranslate,Vd=jr(),Cf=qr(),ns=et(),JY=Yn(),k8=Da(),S8=Ys(),Yd=Xi(),GAe=Pt().arrayEditor,YAe=ZY();eV.exports={draw:VAe,drawOne:KY,drawRaw:QY};function VAe(e){var r=e._fullLayout;r._infolayer.selectAll(".annotation").remove();for(var t=0;t2/3?cr="right":cr="center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[cr]}for(var oe=!1,Ae=["x","y"],Pe=0;Pe1)&&(Me===Ce?(vr=Le.r2fraction(r["a"+me]),(vr<0||vr>1)&&(oe=!0)):oe=!0),Be=Le._offset+Le.r2p(r[me]),be=.5}else{var ue=sr==="domain";me==="x"?(ae=r[me],Be=ue?Le._offset+Le._length*ae:Be=l.l+l.w*ae):(ae=1-r[me],Be=ue?Le._offset+Le._length*ae:Be=l.t+l.h*ae),be=r.showarrow?.5:ae}if(r.showarrow){De.head=Be;var xe=r["a"+me];if(Ge=Ee*se(.5,r.xanchor)-qe*se(.5,r.yanchor),Me===Ce){var Ie=Vd.getRefType(Me);Ie==="domain"?(me==="y"&&(xe=1-xe),De.tail=Le._offset+Le._length*xe):Ie==="paper"?me==="y"?(xe=1-xe,De.tail=l.t+l.h*xe):De.tail=l.l+l.w*xe:De.tail=Le._offset+Le.r2p(xe),er=Ge}else De.tail=Be+xe,er=Ge+xe;De.text=De.tail+Ge;var We=o[me==="x"?"width":"height"];if(Ce==="paper"&&(De.head=ru.constrain(De.head,1,We-1)),Me==="pixel"){var Oe=-Math.max(De.tail-3,De.text),Xe=Math.min(De.tail+3,De.text)-We;Oe>0?(De.tail+=Oe,De.text+=Oe):Xe>0&&(De.tail-=Xe,De.text-=Xe)}De.tail+=Ke,De.head+=Ke}else Ge=Ue*se(be,Je),er=Ge,De.text=Be+Ge;De.text+=Ke,Ge+=Ke,er+=Ke,r["_"+me+"padplus"]=Ue/2+er,r["_"+me+"padminus"]=Ue/2-er,r["_"+me+"size"]=Ue,r["_"+me+"shift"]=Ge}if(oe){M.remove();return}var Qe=0,_r=0;if(r.align!=="left"&&(Qe=($-le)*(r.align==="center"?.5:1)),r.valign!=="top"&&(_r=(ce-ne)*(r.valign==="middle"?.5:1)),J)Y.select("svg").attr({x:E+Qe-1,y:E+_r}).call(ns.setClipUrl,R?m:null,e);else{var gr=E+_r-re.top,Re=E+Qe-re.left;U.call(k8.positionText,Re,gr).call(ns.setClipUrl,R?m:null,e)}I.select("rect").call(ns.setRect,E,E,$,ce),P.call(ns.setRect,S/2,S/2,te-S,ge-S),M.call(ns.setTranslate,Math.round(y.x.text-te/2),Math.round(y.y.text-ge/2)),w.attr({transform:"rotate("+b+","+y.x.text+","+y.y.text+")"});var Ze=function(rr,cr){T.selectAll(".annotation-arrow-g").remove();var pr=y.x.head,mr=y.y.head,ie=y.x.tail+rr,ye=y.y.tail+cr,Fe=y.x.text+rr,He=y.y.text+cr,Gr=ru.rotationXYMatrix(b,Fe,He),rt=ru.apply2DTransform(Gr),qt=ru.apply2DTransform2(Gr),gt=+P.attr("width"),Ut=+P.attr("height"),Bt=Fe-.5*gt,Fa=Bt+gt,kt=He-.5*Ut,Zt=kt+Ut,$t=[[Bt,kt,Bt,Zt],[Bt,Zt,Fa,Zt],[Fa,Zt,Fa,kt],[Fa,kt,Bt,kt]].map(qt);if(!$t.reduce(function(bt,ma){return bt^!!ru.segmentsIntersect(pr,mr,pr+1e6,mr+1e6,ma[0],ma[1],ma[2],ma[3])},!1)){$t.forEach(function(bt){var ma=ru.segmentsIntersect(ie,ye,pr,mr,bt[0],bt[1],bt[2],bt[3]);ma&&(ie=ma.x,ye=ma.y)});var Lt=r.arrowwidth,ra=r.arrowcolor,sa=r.arrowside,Ot=T.append("g").style({opacity:Cf.opacity(ra)}).classed("annotation-arrow-g",!0),tr=Ot.append("path").attr("d","M"+ie+","+ye+"L"+pr+","+mr).style("stroke-width",Lt+"px").call(Cf.stroke,Cf.rgb(ra));if(YAe(tr,sa,r),s.annotationPosition&&tr.node().parentNode&&!a){var tt=pr,Yr=mr;if(r.standoff){var ft=Math.sqrt(Math.pow(pr-ie,2)+Math.pow(mr-ye,2));tt+=r.standoff*(ie-pr)/ft,Yr+=r.standoff*(ye-mr)/ft}var Ft=Ot.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(ie-tt)+","+(ye-Yr),transform:M8(tt,Yr)}).style("stroke-width",Lt+6+"px").call(Cf.stroke,"rgba(0,0,0,0)").call(Cf.fill,"rgba(0,0,0,0)"),qa,at;Yd.init({element:Ft.node(),gd:e,prepFn:function(){var bt=ns.getTranslate(M);qa=bt.x,at=bt.y,n&&n.autorange&&v(n._name+".autorange",!0),i&&i.autorange&&v(i._name+".autorange",!0)},moveFn:function(bt,ma){var pi=rt(qa,at),nt=pi[0]+bt,La=pi[1]+ma;M.call(ns.setTranslate,nt,La),d("x",eu(n,bt,"x",l,r)),d("y",eu(i,ma,"y",l,r)),r.axref===r.xref&&d("ax",eu(n,bt,"ax",l,r)),r.ayref===r.yref&&d("ay",eu(i,ma,"ay",l,r)),Ot.attr("transform",M8(bt,ma)),w.attr({transform:"rotate("+b+","+nt+","+La+")"})},doneFn:function(){A8.call("_guiRelayout",e,p());var bt=document.querySelector(".js-notes-box-panel");bt&&bt.redraw(bt.selectedObj)}})}}};if(r.showarrow&&Ze(0,0),x){var ze;Yd.init({element:M.node(),gd:e,prepFn:function(){ze=w.attr("transform")},moveFn:function(rr,cr){var pr="pointer";if(r.showarrow)r.axref===r.xref?d("ax",eu(n,rr,"ax",l,r)):d("ax",r.ax+rr),r.ayref===r.yref?d("ay",eu(i,cr,"ay",l.w,r)):d("ay",r.ay+cr),Ze(rr,cr);else{if(a)return;var mr,ie;if(n)mr=eu(n,rr,"x",l,r);else{var ye=r._xsize/l.w,Fe=r.x+(r._xshift-r.xshift)/l.w-ye/2;mr=Yd.align(Fe+rr/l.w,ye,0,1,r.xanchor)}if(i)ie=eu(i,cr,"y",l,r);else{var He=r._ysize/l.h,Gr=r.y-(r._yshift+r.yshift)/l.h-He/2;ie=Yd.align(Gr-cr/l.h,He,0,1,r.yanchor)}d("x",mr),d("y",ie),(!n||!i)&&(pr=Yd.getCursor(n?.5:mr,i?.5:ie,r.xanchor,r.yanchor))}w.attr({transform:M8(rr,cr)+ze}),S8(M,pr)},clickFn:function(rr,cr){r.captureevents&&e.emit("plotly_clickannotation",k(cr))},doneFn:function(){S8(M),A8.call("_guiRelayout",e,p());var rr=document.querySelector(".js-notes-box-panel");rr&&rr.redraw(rr.selectedObj)}})}}s.annotationText?U.call(k8.makeEditable,{delegate:M,gd:e}).call(G).on("edit",function(j){r.text=j,this.call(G),d("text",j),n&&n.autorange&&v(n._name+".autorange",!0),i&&i.autorange&&v(i._name+".autorange",!0),A8.call("_guiRelayout",e,p())}):U.call(G)}});var oV=z((zJe,iV)=>{"use strict";var rV=ke(),jAe=Ar(),tV=Pt().arrayEditor;iV.exports={hasClickToShow:WAe,onClick:XAe};function WAe(e,r){var t=nV(e,r);return t.on.length>0||t.explicitOff.length>0}function XAe(e,r){var t=nV(e,r),a=t.on,n=t.off.concat(t.explicitOff),i={},o=e._fullLayout.annotations,l,s;if(a.length||n.length){for(l=0;l{"use strict";var q8=ke(),P0=qr();lV.exports=function(r,t,a,n){n("opacity");var i=n("bgcolor"),o=n("bordercolor"),l=P0.opacity(o);n("borderpad");var s=n("borderwidth"),u=n("showarrow");n("text",u?" ":a._dfltTitle.annotation),n("textangle"),q8.coerceFont(n,"font",a.font),n("width"),n("align");var f=n("height");if(f&&n("valign"),u){var c=n("arrowside"),v,d;c.indexOf("end")!==-1&&(v=n("arrowhead"),d=n("arrowsize")),c.indexOf("start")!==-1&&(n("startarrowhead",v),n("startarrowsize",d)),n("arrowcolor",l?t.bordercolor:P0.defaultLine),n("arrowwidth",(l&&s||1)*2),n("standoff"),n("startstandoff")}var p=n("hovertext"),m=a.hoverlabel||{};if(p){var y=n("hoverlabel.bgcolor",m.bgcolor||(P0.opacity(i)?P0.rgb(i):P0.defaultLine)),b=n("hoverlabel.bordercolor",m.bordercolor||P0.contrast(y)),T=q8.extendFlat({},m.font);T.color||(T.color=b),q8.coerceFont(n,"hoverlabel.font",T)}n("captureevents",!!p)}});var uV=z((IJe,sV)=>{"use strict";var C8=ke(),Df=jr(),ZAe=zo(),$Ae=L8(),JAe=w0();sV.exports=function(r,t){ZAe(r,t,{name:"annotations",handleItemDefaults:KAe})};function KAe(e,r,t){function a(w,x){return C8.coerce(e,r,JAe,w,x)}var n=a("visible"),i=a("clicktoshow");if(n||i){$Ae(e,r,t,a);for(var o=r.showarrow,l=["x","y"],s=[-10,-30],u={_fullLayout:t},f=0;f<2;f++){var c=l[f],v=Df.coerceRef(e,r,u,c,"","paper");if(v!=="paper"){var d=Df.getFromId(u,v);d._annIndices.push(r._index)}if(Df.coercePosition(r,u,a,v,c,.5),o){var p="a"+c,m=Df.coerceRef(e,r,u,p,"pixel",["pixel","paper"]);m!=="pixel"&&m!==v&&(m=r[p]="pixel");var y=m==="pixel"?s[f]:.4;Df.coercePosition(r,u,a,m,p,y)}a(c+"anchor"),a(c+"shift")}if(C8.noneOrAll(e,r,["x","y"]),o&&C8.noneOrAll(e,r,["ax","ay"]),i){var b=a("xclick"),T=a("yclick");r._xclick=b===void 0?r.x:Df.cleanPosition(b,u,r.xref),r._yclick=T===void 0?r.y:Df.cleanPosition(T,u,r.yref)}}}});var vV=z((BJe,cV)=>{"use strict";var D8=ke(),Ef=jr(),QAe=Eg().draw;cV.exports=function(r){var t=r._fullLayout,a=D8.filterVisible(t.annotations);if(a.length&&r._fullData.length)return D8.syncOrAsync([QAe,eMe],r)};function eMe(e){var r=e._fullLayout;D8.filterVisible(r.annotations).forEach(function(t){var a=Ef.getFromId(e,t.xref),n=Ef.getFromId(e,t.yref),i=Ef.getRefType(t.xref),o=Ef.getRefType(t.yref);t._extremes={},i==="range"&&fV(t,a),o==="range"&&fV(t,n)})}function fV(e,r){var t=r._id,a=t.charAt(0),n=e[a],i=e["a"+a],o=e[a+"ref"],l=e["a"+a+"ref"],s=e["_"+a+"padplus"],u=e["_"+a+"padminus"],f={x:1,y:-1}[a]*e[a+"shift"],c=3*e.arrowsize*e.arrowwidth||0,v=c+f,d=c-f,p=3*e.startarrowsize*e.arrowwidth||0,m=p+f,y=p-f,b;if(l===o){var T=Ef.findExtremes(r,[r.r2c(n)],{ppadplus:v,ppadminus:d}),w=Ef.findExtremes(r,[r.r2c(i)],{ppadplus:Math.max(s,m),ppadminus:Math.max(u,y)});b={min:[T.min[0],w.min[0]],max:[T.max[0],w.max[0]]}}else m=i?m+i:m,y=i?y-i:y,b=Ef.findExtremes(r,[r.r2c(n)],{ppadplus:Math.max(s,v,m),ppadminus:Math.max(u,d,y)});e._extremes[t]=b}});var dV=z((OJe,hV)=>{"use strict";var rMe=Br(),tMe=j1();hV.exports=function(r,t,a,n){t=t||{};var i=a==="log"&&t.type==="linear",o=a==="linear"&&t.type==="log";if(!(i||o))return;var l=r._fullLayout.annotations,s=t._id.charAt(0),u,f;function c(d){var p=u[d],m=null;i?m=tMe(p,t.range):m=Math.pow(10,p),rMe(m)||(m=null),n(f+d,m)}for(var v=0;v{"use strict";var E8=Eg(),pV=oV();mV.exports={moduleType:"component",name:"annotations",layoutAttributes:w0(),supplyLayoutDefaults:uV(),includeBasePlot:Ad()("annotations"),calcAutorange:vV(),draw:E8.draw,drawOne:E8.drawOne,drawRaw:E8.drawRaw,hasClickToShow:pV.hasClickToShow,onClick:pV.onClick,convertCoords:dV()}});var Pg=z((UJe,gV)=>{"use strict";var Nt=w0(),aMe=Do().overrideAll,nMe=Pt().templatedArray;gV.exports=aMe(nMe("annotation",{visible:Nt.visible,x:{valType:"any"},y:{valType:"any"},z:{valType:"any"},ax:{valType:"number"},ay:{valType:"number"},xanchor:Nt.xanchor,xshift:Nt.xshift,yanchor:Nt.yanchor,yshift:Nt.yshift,text:Nt.text,textangle:Nt.textangle,font:Nt.font,width:Nt.width,height:Nt.height,opacity:Nt.opacity,align:Nt.align,valign:Nt.valign,bgcolor:Nt.bgcolor,bordercolor:Nt.bordercolor,borderpad:Nt.borderpad,borderwidth:Nt.borderwidth,showarrow:Nt.showarrow,arrowcolor:Nt.arrowcolor,arrowhead:Nt.arrowhead,startarrowhead:Nt.startarrowhead,arrowside:Nt.arrowside,arrowsize:Nt.arrowsize,startarrowsize:Nt.startarrowsize,arrowwidth:Nt.arrowwidth,standoff:Nt.standoff,startstandoff:Nt.startstandoff,hovertext:Nt.hovertext,hoverlabel:Nt.hoverlabel,captureevents:Nt.captureevents}),"calc","from-root")});var xV=z((GJe,bV)=>{"use strict";var P8=ke(),iMe=jr(),oMe=zo(),lMe=L8(),sMe=Pg();bV.exports=function(r,t,a){oMe(r,t,{name:"annotations",handleItemDefaults:uMe,fullLayout:a.fullLayout})};function uMe(e,r,t,a){function n(l,s){return P8.coerce(e,r,sMe,l,s)}function i(l){var s=l+"axis",u={_fullLayout:{}};return u._fullLayout[s]=t[s],iMe.coercePosition(r,u,n,l,l,.5)}var o=n("visible");o&&(lMe(e,r,a.fullLayout,n),i("x"),i("y"),i("z"),P8.noneOrAll(e,r,["x","y","z"]),r.xref="x",r.yref="y",r.zref="z",n("xanchor"),n("yanchor"),n("xshift"),n("yshift"),r.showarrow&&(r.axref="pixel",r.ayref="pixel",n("ax",-10),n("ay",-30),P8.noneOrAll(e,r,["ax","ay"])))}});var AV=z((YJe,TV)=>{"use strict";var _V=ke(),wV=jr();TV.exports=function(r){for(var t=r.fullSceneLayout,a=t.annotations,n=0;n{"use strict";function R8(e,r){var t=[0,0,0,0],a,n;for(a=0;a<4;++a)for(n=0;n<4;++n)t[n]+=e[4*a+n]*r[a];return t}function cMe(e,r){var t=R8(e.projection,R8(e.view,R8(e.model,[r[0],r[1],r[2],1])));return t}MV.exports=cMe});var qV=z((jJe,SV)=>{"use strict";var vMe=Eg().drawRaw,hMe=kV(),dMe=["x","y","z"];SV.exports=function(r){for(var t=r.fullSceneLayout,a=r.dataScale,n=t.annotations,i=0;i1){l=!0;break}}l?r.fullLayout._infolayer.select(".annotation-"+r.id+'[data-index="'+i+'"]').remove():(o._pdata=hMe(r.glplot.cameraParams,[t.xaxis.r2l(o.x)*a[0],t.yaxis.r2l(o.y)*a[1],t.zaxis.r2l(o.z)*a[2]]),vMe(r.graphDiv,o,i,r.id,o._xa,o._ya))}}});var DV=z((WJe,CV)=>{"use strict";var pMe=Ar(),LV=ke();CV.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:Pg()}}},layoutAttributes:Pg(),handleDefaults:xV(),includeBasePlot:mMe,convert:AV(),draw:qV()};function mMe(e,r){var t=pMe.subplotsRegistry.gl3d;if(t)for(var a=t.attrRegex,n=Object.keys(e),i=0;i{"use strict";var XJe=(Ha(),Ne(Oa)),EV=Ia(),PV=Qi().line,yMe=Ui().dash,Yo=St().extendFlat,gMe=Pt().templatedArray,ZJe=(xd(),Ne(bd)),R0=Gn(),RV=w0(),{shapeTexttemplateAttrs:bMe,templatefallbackAttrs:xMe}=gi(),_Me=qp();FV.exports=gMe("shape",{visible:Yo({},R0.visible,{editType:"calc+arraydraw"}),showlegend:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},legend:Yo({},R0.legend,{editType:"calc+arraydraw"}),legendgroup:Yo({},R0.legendgroup,{editType:"calc+arraydraw"}),legendgrouptitle:{text:Yo({},R0.legendgrouptitle.text,{editType:"calc+arraydraw"}),font:EV({editType:"calc+arraydraw"}),editType:"calc+arraydraw"},legendrank:Yo({},R0.legendrank,{editType:"calc+arraydraw"}),legendwidth:Yo({},R0.legendwidth,{editType:"calc+arraydraw"}),type:{valType:"enumerated",values:["circle","rect","path","line"],editType:"calc+arraydraw"},layer:{valType:"enumerated",values:["below","above","between"],dflt:"above",editType:"arraydraw"},xref:Yo({},RV.xref,{arrayOk:!0}),xsizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},xanchor:{valType:"any",editType:"calc+arraydraw"},x0:{valType:"any",editType:"calc+arraydraw"},x1:{valType:"any",editType:"calc+arraydraw"},x0shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},x1shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},yref:Yo({},RV.yref,{arrayOk:!0}),ysizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},yanchor:{valType:"any",editType:"calc+arraydraw"},y0:{valType:"any",editType:"calc+arraydraw"},y1:{valType:"any",editType:"calc+arraydraw"},y0shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},y1shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},path:{valType:"string",editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},line:{color:Yo({},PV.color,{editType:"arraydraw"}),width:Yo({},PV.width,{editType:"calc+arraydraw"}),dash:Yo({},yMe,{editType:"arraydraw"}),editType:"calc+arraydraw"},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd",editType:"arraydraw"},editable:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},label:{text:{valType:"string",dflt:"",editType:"arraydraw"},texttemplate:bMe({},{keys:Object.keys(_Me)}),texttemplatefallback:xMe({editType:"arraydraw"}),font:EV({editType:"calc+arraydraw",colorEditType:"arraydraw"}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"],editType:"arraydraw"},textangle:{valType:"angle",dflt:"auto",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],editType:"calc+arraydraw"},padding:{valType:"number",dflt:3,min:0,editType:"arraydraw"},editType:"arraydraw"},editType:"arraydraw"})});var NV=z((JJe,zV)=>{"use strict";var F0=ke(),Li=jr(),wMe=zo(),TMe=F8(),jd=Zs();zV.exports=function(r,t){wMe(r,t,{name:"shapes",handleItemDefaults:MMe})};function AMe(e,r){return e?"bottom":r.indexOf("top")!==-1?"top":r.indexOf("bottom")!==-1?"bottom":"middle"}function MMe(e,r,t){function a(w,x){return F0.coerce(e,r,TMe,w,x)}r._isShape=!0;var n=a("visible");if(!n)return;var i=a("showlegend");a("legend"),a("legendgroup"),i&&(a("legendwidth"),a("legendgrouptitle.text"),F0.coerceFont(a,"legendgrouptitle.font"),a("legendrank"));var o=a("path"),l=o?"path":"rect",s=a("type",l),u=s!=="path";u&&delete r.path,a("editable"),a("layer"),a("opacity"),a("fillcolor"),a("fillrule");var f=a("line.width");f&&(a("line.color"),a("line.dash"));var c=a("xsizemode"),v=a("ysizemode");let d=[.25,.75],p=[0,10];["x","y"].forEach(w=>{var x=w+"anchor",_=w==="x"?c:v,k={_fullLayout:t},M,S,C,E;let P=w+"ref",R=e[P];if(Array.isArray(R)&&R.length>0){let I=jd.countDefiningCoords(s,o,w);E=Li.coerceRefArray(e,r,k,w,void 0,"paper",I),r["_"+w+"refArray"]=!0}else E=Li.coerceRef(e,r,k,w,void 0,"paper");if(Array.isArray(E))E.forEach(function(I){Li.getRefType(I)==="range"&&(M=Li.getFromId(k,I),M&&M._shapeIndices.indexOf(r._index)===-1&&M._shapeIndices.push(r._index))}),u&&[0,1].forEach(function(I){let B=E[I];Li.getRefType(B)==="range"?(M=Li.getFromId(k,B),S=jd.shapePositionToRange(M),C=jd.rangeToShapePosition(M),(M.type==="category"||M.type==="multicategory")&&a(w+I+"shift")):S=C=F0.identity;let U=w+I,G=e[U];if(e[U]=S(e[U],!0),_==="pixel"?a(U,p[I]):Li.coercePosition(r,k,a,B,U,d[I]),r[U]=C(r[U]),e[U]=G,I===0&&_==="pixel"){let V=e[x];e[x]=S(e[x],!0),Li.coercePosition(r,k,a,B,x,.25),r[x]=C(r[x]),e[x]=V}});else{if(Li.getRefType(E)==="range"?(M=Li.getFromId(k,E),M._shapeIndices.push(r._index),C=jd.rangeToShapePosition(M),S=jd.shapePositionToRange(M),u&&(M.type==="category"||M.type==="multicategory")&&(a(w+"0shift"),a(w+"1shift"))):S=C=F0.identity,u){let B=w+"0",N=w+"1",U=e[B],G=e[N];e[B]=S(e[B],!0),e[N]=S(e[N],!0),_==="pixel"?(a(B,p[0]),a(N,p[1])):(Li.coercePosition(r,k,a,E,B,d[0]),Li.coercePosition(r,k,a,E,N,d[1])),r[B]=C(r[B]),r[N]=C(r[N]),e[B]=U,e[N]=G}if(_==="pixel"){let B=e[x];e[x]=S(e[x],!0),Li.coercePosition(r,k,a,E,x,.25),r[x]=C(r[x]),e[x]=B}}}),u&&F0.noneOrAll(e,r,["x0","x1","y0","y1"]);var m=s==="line",y,b;if(u&&(y=a("label.texttemplate"),a("label.texttemplatefallback")),y||(b=a("label.text")),b||y){a("label.textangle");var T=a("label.textposition",m?"middle":"middle center");a("label.xanchor"),a("label.yanchor",AMe(m,T)),a("label.padding"),F0.coerceFont(a,"label.font",t.font)}}});var OV=z((KJe,BV)=>{"use strict";var kMe=qr(),IV=ke();function SMe(e,r){return e?"bottom":r.indexOf("top")!==-1?"top":r.indexOf("bottom")!==-1?"bottom":"middle"}BV.exports=function(r,t,a){a("newshape.visible"),a("newshape.name"),a("newshape.showlegend"),a("newshape.legend"),a("newshape.legendwidth"),a("newshape.legendgroup"),a("newshape.legendgrouptitle.text"),IV.coerceFont(a,"newshape.legendgrouptitle.font"),a("newshape.legendrank"),a("newshape.drawdirection"),a("newshape.layer"),a("newshape.fillcolor"),a("newshape.fillrule"),a("newshape.opacity");var n=a("newshape.line.width");if(n){var i=(r||{}).plot_bgcolor||"#FFF";a("newshape.line.color",kMe.contrast(i)),a("newshape.line.dash")}var o=r.dragmode==="drawline",l=a("newshape.label.text"),s=a("newshape.label.texttemplate");if(a("newshape.label.texttemplatefallback"),l||s){a("newshape.label.textangle");var u=a("newshape.label.textposition",o?"middle":"middle center");a("newshape.label.xanchor"),a("newshape.label.yanchor",SMe(o,u)),a("newshape.label.padding"),IV.coerceFont(a,"newshape.label.font",t.font)}a("activeshape.fillcolor"),a("activeshape.opacity")}});var WV=z((QJe,jV)=>{"use strict";var z8=ke(),so=jr(),Sl=(ed(),Ne(Qh)),N8=Zs();jV.exports=function(r){var t=r._fullLayout,a=z8.filterVisible(t.shapes);if(!(!a.length||!r._fullData.length))for(var n=0;n{o=so.getFromId(r,c),i._extremes[o._id]=so.findExtremes(o,v,UV(i))})}else i.xref!=="paper"&&s!=="domain"&&(o=so.getFromId(r,i.xref),l=YV(o,i,Sl.paramIsX),l&&(i._extremes[o._id]=so.findExtremes(o,l,UV(i))));if(u==="array"){let f=HV(r,i,"y");Object.entries(f).forEach(([c,v])=>{o=so.getFromId(r,c),i._extremes[o._id]=so.findExtremes(o,v,GV(i))})}else i.yref!=="paper"&&u!=="domain"&&(o=so.getFromId(r,i.yref),l=YV(o,i,Sl.paramIsY),l&&(i._extremes[o._id]=so.findExtremes(o,l,GV(i))))}};function HV(e,r,t){let a=r[t+"ref"],n=t==="x"?Sl.paramIsX:Sl.paramIsY;function i(c,v){c==="paper"||so.getRefType(c)==="domain"||(o[c]||(o[c]=[]),o[c].push(v))}let o={};if(r.type==="path"&&r.path){let c=r.path.match(Sl.segmentRE)||[];for(var l=0,s=0;sp&&(i(a[l],m[p]),l++)}}else i(a[0],r[t+"0"]),i(a[1],r[t+"1"]);let u={};for(let c in o){let v=so.getFromId(e,c);if(v){var f=v.type==="category"||v.type==="multicategory"?v.r2c:v.d2c;v.type==="date"&&(f=N8.decodeDate(f)),u[v._id]=o[c].map(f)}}return u}function UV(e){return VV(e.line.width,e.xsizemode,e.x0,e.x1,e.path,!1)}function GV(e){return VV(e.line.width,e.ysizemode,e.y0,e.y1,e.path,!0)}function VV(e,r,t,a,n,i){var o=e/2,l=i;if(r==="pixel"){var s=n?N8.extractPathCoords(n,i?Sl.paramIsY:Sl.paramIsX):[t,a],u=z8.aggNums(Math.max,null,s),f=z8.aggNums(Math.min,null,s),c=f<0?Math.abs(f)+o:o,v=u>0?u+o:o;return{ppad:o,ppadplus:l?c:v,ppadminus:l?v:c}}else return{ppad:o}}function YV(e,r,t){var a=e._id.charAt(0)==="x"?"x":"y",n=e.type==="category"||e.type==="multicategory",i,o,l=0,s=0,u=n?e.r2c:e.d2c,f=r[a+"sizemode"]==="scaled";if(f?(i=r[a+"0"],o=r[a+"1"],n&&(l=r[a+"0shift"],s=r[a+"1shift"])):(i=r[a+"anchor"],o=r[a+"anchor"]),i!==void 0)return[u(i)+l,u(o)+s];if(r.path){var c=1/0,v=-1/0,d=r.path.match(Sl.segmentRE),p,m,y,b,T;for(e.type==="date"&&(u=N8.decodeDate(u)),p=0;pv&&(v=T)));if(v>=c)return[c,v]}}});var $V=z((eKe,ZV)=>{"use strict";var XV=by();ZV.exports={moduleType:"component",name:"shapes",layoutAttributes:F8(),supplyLayoutDefaults:NV(),supplyDrawNewShapeDefaults:OV(),includeBasePlot:Ad()("shapes"),calcAutorange:WV(),draw:XV.draw,drawOne:XV.drawOne}});var I8=z((tKe,KV)=>{"use strict";var JV=(Ha(),Ne(Oa)),qMe=Pt().templatedArray,rKe=(xd(),Ne(bd));KV.exports=qMe("image",{visible:{valType:"boolean",dflt:!0,editType:"arraydraw"},source:{valType:"string",editType:"arraydraw"},layer:{valType:"enumerated",values:["below","above"],dflt:"above",editType:"arraydraw"},sizex:{valType:"number",dflt:0,editType:"arraydraw"},sizey:{valType:"number",dflt:0,editType:"arraydraw"},sizing:{valType:"enumerated",values:["fill","contain","stretch"],dflt:"contain",editType:"arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},x:{valType:"any",dflt:0,editType:"arraydraw"},y:{valType:"any",dflt:0,editType:"arraydraw"},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left",editType:"arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],dflt:"top",editType:"arraydraw"},xref:{valType:"enumerated",values:["paper",JV.idRegex.x.toString()],dflt:"paper",editType:"arraydraw"},yref:{valType:"enumerated",values:["paper",JV.idRegex.y.toString()],dflt:"paper",editType:"arraydraw"},editType:"arraydraw"})});var ej=z((aKe,QV)=>{"use strict";var LMe=ke(),B8=jr(),CMe=zo(),DMe=I8(),EMe="images";QV.exports=function(r,t){var a={name:EMe,handleItemDefaults:PMe};CMe(r,t,a)};function PMe(e,r,t){function a(v,d){return LMe.coerce(e,r,DMe,v,d)}var n=a("source"),i=a("visible",!!n);if(!i)return r;a("layer"),a("xanchor"),a("yanchor"),a("sizex"),a("sizey"),a("sizing"),a("opacity");for(var o={_fullLayout:t},l=["x","y"],s=0;s<2;s++){var u=l[s],f=B8.coerceRef(e,r,o,u,"paper",void 0);if(f!=="paper"){var c=B8.getFromId(o,f);c._imgIndices.push(r._index)}B8.coercePosition(r,o,a,f,u,0)}return r}});var nj=z((nKe,aj)=>{"use strict";var rj=Pr(),RMe=et(),z0=jr(),tj=Ca(),FMe=(Wl(),Ne(jl));aj.exports=function(r){var t=r._fullLayout,a=[],n={},i=[],o,l;for(l=0;l{"use strict";var ij=Br(),zMe=j1();oj.exports=function(r,t,a,n){t=t||{};var i=a==="log"&&t.type==="linear",o=a==="linear"&&t.type==="log";if(i||o){for(var l=r._fullLayout.images,s=t._id.charAt(0),u,f,c=0;c{"use strict";sj.exports={moduleType:"component",name:"images",layoutAttributes:I8(),supplyLayoutDefaults:ej(),includeBasePlot:Ad()("images"),draw:nj(),convertCoords:lj()}});var Rg={};Dt(Rg,{activeColor:()=>lke,arrowOffsetX:()=>nke,arrowPadX:()=>QMe,arrowSymbol:()=>uke,autoMarginIdRoot:()=>XMe,blankHeaderOpts:()=>ZMe,buttonClassName:()=>YMe,containerClassName:()=>IMe,dropdownButtonClassName:()=>GMe,dropdownButtonGroupClassName:()=>UMe,gapButton:()=>oke,gapButtonHeader:()=>ike,headerArrowClassName:()=>HMe,headerClassName:()=>OMe,headerGroupClassName:()=>BMe,hoverColor:()=>ske,itemRectClassName:()=>VMe,itemTextClassName:()=>jMe,menuIndexAttrName:()=>WMe,minHeight:()=>JMe,minWidth:()=>$Me,name:()=>NMe,rx:()=>eke,ry:()=>rke,textOffsetX:()=>tke,textOffsetY:()=>ake,textPadX:()=>KMe});var NMe,IMe,BMe,OMe,HMe,UMe,GMe,YMe,VMe,jMe,WMe,XMe,ZMe,$Me,JMe,KMe,QMe,eke,rke,tke,ake,nke,ike,oke,lke,ske,uke,Fg=Ct(()=>{"use strict";NMe="updatemenus",IMe="updatemenu-container",BMe="updatemenu-header-group",OMe="updatemenu-header",HMe="updatemenu-header-arrow",UMe="updatemenu-dropdown-button-group",GMe="updatemenu-dropdown-button",YMe="updatemenu-button",VMe="updatemenu-item-rect",jMe="updatemenu-item-text",WMe="updatemenu-active-index",XMe="updatemenu-",ZMe={label:" "},$Me=30,JMe=30,KMe=24,QMe=16,eke=2,rke=2,tke=12,ake=3,nke=4,ike=5,oke=2,lke="#F4FAFF",ske="#F4FAFF",uke={left:"\u25C4",right:"\u25BA",up:"\u25B2",down:"\u25BC"}});var O8=z((lKe,cj)=>{"use strict";var fke=Ia(),cke=Hi(),vke=St().extendFlat,hke=Do().overrideAll,dke=Lp(),fj=Pt().templatedArray,pke=fj("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}});cj.exports=hke(fj("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:pke,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:vke(dke({editType:"arraydraw"}),{}),font:fke({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:cke.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")});var pj=z((sKe,dj)=>{"use strict";var zg=ke(),vj=zo(),hj=O8(),mke=(Fg(),Ne(Rg)),yke=mke.name,gke=hj.buttons;dj.exports=function(r,t){var a={name:yke,handleItemDefaults:bke};vj(r,t,a)};function bke(e,r,t){function a(o,l){return zg.coerce(e,r,hj,o,l)}var n=vj(e,r,{name:"buttons",handleItemDefaults:xke}),i=a("visible",n.length>0);i&&(a("active"),a("direction"),a("type"),a("showactive"),a("x"),a("y"),zg.noneOrAll(e,r,["x","y"]),a("xanchor"),a("yanchor"),a("pad.t"),a("pad.r"),a("pad.b"),a("pad.l"),zg.coerceFont(a,"font",t.font),a("bgcolor",t.paper_bgcolor),a("bordercolor"),a("borderwidth"))}function xke(e,r){function t(n,i){return zg.coerce(e,r,gke,n,i)}var a=t("visible",e.method==="skip"||Array.isArray(e.args));a&&(t("method"),t("args"),t("args2"),t("label"),t("execute"))}});var gj=z((uKe,yj)=>{"use strict";yj.exports=oa;var Vo=Pr(),mj=qr(),N0=et(),Ng=ke();function oa(e,r,t){this.gd=e,this.container=r,this.id=t,this.position=null,this.translateX=null,this.translateY=null,this.hbar=null,this.vbar=null,this.bg=this.container.selectAll("rect.scrollbox-bg").data([0]),this.bg.exit().on(".drag",null).on("wheel",null).remove(),this.bg.enter().append("rect").classed("scrollbox-bg",!0).style("pointer-events","all").attr({opacity:0,x:0,y:0,width:0,height:0})}oa.barWidth=2;oa.barLength=20;oa.barRadius=2;oa.barPad=1;oa.barColor="#808BA4";oa.prototype.enable=function(r,t,a){var n=this.gd._fullLayout,i=n.width,o=n.height;this.position=r;var l=this.position.l,s=this.position.w,u=this.position.t,f=this.position.h,c=this.position.direction,v=c==="down",d=c==="left",p=c==="right",m=c==="up",y=s,b=f,T,w,x,_;!v&&!d&&!p&&!m&&(this.position.direction="down",v=!0);var k=v||m;k?(T=l,w=T+y,v?(x=u,_=Math.min(x+b,o),b=_-x):(_=u+b,x=Math.max(_-b,0),b=_-x)):(x=u,_=x+b,d?(w=l+y,T=Math.max(w-y,0),y=w-T):(T=l,w=Math.min(T+y,i),y=w-T)),this._box={l:T,t:x,w:y,h:b};var M=s>y,S=oa.barLength+2*oa.barPad,C=oa.barWidth+2*oa.barPad,E=l,P=u+f;P+C>o&&(P=o-C);var R=this.container.selectAll("rect.scrollbar-horizontal").data(M?[0]:[]);R.exit().on(".drag",null).remove(),R.enter().append("rect").classed("scrollbar-horizontal",!0).call(mj.fill,oa.barColor),M?(this.hbar=R.attr({rx:oa.barRadius,ry:oa.barRadius,x:E,y:P,width:S,height:C}),this._hbarXMin=E+S/2,this._hbarTranslateMax=y-S):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var I=f>b,B=oa.barWidth+2*oa.barPad,N=oa.barLength+2*oa.barPad,U=l+s,G=u;U+B>i&&(U=i-B);var V=this.container.selectAll("rect.scrollbar-vertical").data(I?[0]:[]);V.exit().on(".drag",null).remove(),V.enter().append("rect").classed("scrollbar-vertical",!0).call(mj.fill,oa.barColor),I?(this.vbar=V.attr({rx:oa.barRadius,ry:oa.barRadius,x:U,y:G,width:B,height:N}),this._vbarYMin=G+N/2,this._vbarTranslateMax=b-N):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var j=this.id,W=T-.5,Y=I?w+B+.5:w+.5,J=x-.5,re=M?_+C+.5:_+.5,le=n._topdefs.selectAll("#"+j).data(M||I?[0]:[]);if(le.exit().remove(),le.enter().append("clipPath").attr("id",j).append("rect"),M||I?(this._clipRect=le.select("rect").attr({x:Math.floor(W),y:Math.floor(J),width:Math.ceil(Y)-Math.floor(W),height:Math.ceil(re)-Math.floor(J)}),this.container.call(N0.setClipUrl,j,this.gd),this.bg.attr({x:l,y:u,width:s,height:f})):(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(N0.setClipUrl,null),delete this._clipRect),M||I){var ne=Vo.behavior.drag().on("dragstart",function(){Vo.event.sourceEvent.preventDefault()}).on("drag",this._onBoxDrag.bind(this));this.container.on("wheel",null).on("wheel",this._onBoxWheel.bind(this)).on(".drag",null).call(ne);var $=Vo.behavior.drag().on("dragstart",function(){Vo.event.sourceEvent.preventDefault(),Vo.event.sourceEvent.stopPropagation()}).on("drag",this._onBarDrag.bind(this));M&&this.hbar.on(".drag",null).call($),I&&this.vbar.on(".drag",null).call($)}this.setTranslate(t,a)};oa.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(N0.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)};oa.prototype._onBoxDrag=function(){var r=this.translateX,t=this.translateY;this.hbar&&(r-=Vo.event.dx),this.vbar&&(t-=Vo.event.dy),this.setTranslate(r,t)};oa.prototype._onBoxWheel=function(){var r=this.translateX,t=this.translateY;this.hbar&&(r+=Vo.event.deltaY),this.vbar&&(t+=Vo.event.deltaY),this.setTranslate(r,t)};oa.prototype._onBarDrag=function(){var r=this.translateX,t=this.translateY;if(this.hbar){var a=r+this._hbarXMin,n=a+this._hbarTranslateMax,i=Ng.constrain(Vo.event.x,a,n),o=(i-a)/(n-a),l=this.position.w-this._box.w;r=o*l}if(this.vbar){var s=t+this._vbarYMin,u=s+this._vbarTranslateMax,f=Ng.constrain(Vo.event.y,s,u),c=(f-s)/(u-s),v=this.position.h-this._box.h;t=c*v}this.setTranslate(r,t)};oa.prototype.setTranslate=function(r,t){var a=this.position.w-this._box.w,n=this.position.h-this._box.h;if(r=Ng.constrain(r||0,0,a),t=Ng.constrain(t||0,0,n),this.translateX=r,this.translateY=t,this.container.call(N0.setTranslate,this._box.l-this.position.l-r,this._box.t-this.position.t-t),this._clipRect&&this._clipRect.attr({x:Math.floor(this.position.l+r-.5),y:Math.floor(this.position.t+t-.5)}),this.hbar){var i=r/a;this.hbar.call(N0.setTranslate,r+i*this._hbarTranslateMax,t)}if(this.vbar){var o=t/n;this.vbar.call(N0.setTranslate,r,t+o*this._vbarTranslateMax)}}});var qj=z((fKe,Sj)=>{"use strict";var I0=Pr(),Wd=_a(),Xd=qr(),B0=et(),Ci=ke(),Ig=Da(),_ke=Pt().arrayEditor,xj=(un(),Ne(sn)).LINE_SPACING,Lr=(Fg(),Ne(Rg)),wke=gj();Sj.exports=function(r){var t=r._fullLayout,a=Ci.filterVisible(t[Lr.name]);function n(v){Wd.autoMargin(r,Mj(v))}var i=t._menulayer.selectAll("g."+Lr.containerClassName).data(a.length>0?[0]:[]);if(i.enter().append("g").classed(Lr.containerClassName,!0).style("cursor","pointer"),i.exit().each(function(){I0.select(this).selectAll("g."+Lr.headerGroupClassName).each(n)}).remove(),a.length!==0){var o=i.selectAll("g."+Lr.headerGroupClassName).data(a,Tke);o.enter().append("g").classed(Lr.headerGroupClassName,!0);for(var l=Ci.ensureSingle(i,"g",Lr.dropdownButtonGroupClassName,function(v){v.style("pointer-events","all")}),s=0;s{"use strict";var Cke=(Fg(),Ne(Rg));Lj.exports={moduleType:"component",name:Cke.name,layoutAttributes:O8(),supplyLayoutDefaults:pj(),draw:qj()}});var $d={};Dt($d,{arrowOffsetX:()=>$ke,autoMarginIdRoot:()=>jke,containerClassName:()=>Eke,currentValueClass:()=>Gke,currentValueInset:()=>TSe,currentValuePadding:()=>wSe,gripBgActiveColor:()=>vSe,gripBgColor:()=>cSe,gripBorder:()=>sSe,gripBorderColor:()=>fSe,gripBorderWidth:()=>uSe,gripHeight:()=>lSe,gripRadius:()=>iSe,gripRectClass:()=>Nke,gripWidth:()=>oSe,groupClassName:()=>Pke,inputAreaClass:()=>Rke,inputProxyClass:()=>Bke,labelClass:()=>Uke,labelGroupClass:()=>Hke,labelOffset:()=>dSe,labelPadding:()=>hSe,labelsClass:()=>Oke,menuIndexAttrName:()=>Vke,minHeight:()=>Xke,minWidth:()=>Wke,minorTickColor:()=>xSe,minorTickLength:()=>_Se,minorTickOffset:()=>bSe,name:()=>Dke,railBgColor:()=>tSe,railBorder:()=>Qke,railBorderColor:()=>rSe,railBorderWidth:()=>eSe,railHeight:()=>Yke,railInset:()=>aSe,railRadius:()=>Jke,railRectClass:()=>Fke,railTouchRectClass:()=>zke,railWidth:()=>Kke,stepInset:()=>nSe,textPadX:()=>Zke,tickColor:()=>mSe,tickLength:()=>gSe,tickOffset:()=>ySe,tickRectClass:()=>Ike,tickWidth:()=>pSe});var Dke,Eke,Pke,Rke,Fke,zke,Nke,Ike,Bke,Oke,Hke,Uke,Gke,Yke,Vke,jke,Wke,Xke,Zke,$ke,Jke,Kke,Qke,eSe,rSe,tSe,aSe,nSe,iSe,oSe,lSe,sSe,uSe,fSe,cSe,vSe,hSe,dSe,pSe,mSe,ySe,gSe,bSe,xSe,_Se,wSe,TSe,Jd=Ct(()=>{"use strict";Dke="sliders",Eke="slider-container",Pke="slider-group",Rke="slider-input-area",Fke="slider-rail-rect",zke="slider-rail-touch-rect",Nke="slider-grip-rect",Ike="slider-tick-rect",Bke="slider-input-proxy",Oke="slider-labels",Hke="slider-label-group",Uke="slider-label",Gke="slider-current-value",Yke=5,Vke="slider-active-index",jke="slider-",Wke=30,Xke=30,Zke=40,$ke=4,Jke=2,Kke=5,Qke=4,eSe=1,rSe="#bec8d9",tSe="#f8fafc",aSe=8,nSe=10,iSe=10,oSe=20,lSe=20,sSe=20,uSe=1,fSe="#bec8d9",cSe="#f6f8fa",vSe="#dbdde0",hSe=8,dSe=0,pSe=1,mSe="#333",ySe=25,gSe=7,bSe=25,xSe="#333",_Se=4,wSe=8,TSe=0});var Y8=z((vKe,Pj)=>{"use strict";var Dj=Ia(),ASe=Lp(),MSe=St().extendDeepAll,kSe=Do().overrideAll,SSe=Th(),Ej=Pt().templatedArray,Pf=(Jd(),Ne($d)),qSe=Ej("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}});Pj.exports=kSe(Ej("slider",{visible:{valType:"boolean",dflt:!0},active:{valType:"number",min:0,dflt:0},steps:qSe,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:MSe(ASe({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:SSe.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:Dj({})},font:Dj({}),activebgcolor:{valType:"color",dflt:Pf.gripBgActiveColor},bgcolor:{valType:"color",dflt:Pf.railBgColor},bordercolor:{valType:"color",dflt:Pf.railBorderColor},borderwidth:{valType:"number",min:0,dflt:Pf.railBorderWidth},ticklen:{valType:"number",min:0,dflt:Pf.tickLength},tickcolor:{valType:"color",dflt:Pf.tickColor},tickwidth:{valType:"number",min:0,dflt:1},minorticklen:{valType:"number",min:0,dflt:Pf.minorTickLength}}),"arraydraw","from-root")});var Nj=z((hKe,zj)=>{"use strict";var O0=ke(),Rj=zo(),Fj=Y8(),LSe=(Jd(),Ne($d)),CSe=LSe.name,DSe=Fj.steps;zj.exports=function(r,t){Rj(r,t,{name:CSe,handleItemDefaults:ESe})};function ESe(e,r,t){function a(c,v){return O0.coerce(e,r,Fj,c,v)}for(var n=Rj(e,r,{name:"steps",handleItemDefaults:PSe}),i=0,o=0;o{"use strict";var jo=Pr(),Bg=_a(),tu=qr(),Wo=et(),Di=ke(),RSe=Di.strTranslate,Kd=Da(),FSe=Pt().arrayEditor,Hr=(Jd(),Ne($d)),W8=(un(),Ne(sn)),Oj=W8.LINE_SPACING,V8=W8.FROM_TL,j8=W8.FROM_BR;jj.exports=function(r){var t=r._context.staticPlot,a=r._fullLayout,n=zSe(a,r),i=a._infolayer.selectAll("g."+Hr.containerClassName).data(n.length>0?[0]:[]);i.enter().append("g").classed(Hr.containerClassName,!0).style("cursor",t?null:"ew-resize");function o(f){f._commandObserver&&(f._commandObserver.remove(),delete f._commandObserver),Bg.autoMargin(r,Hj(f))}if(i.exit().each(function(){jo.select(this).selectAll("g."+Hr.groupClassName).each(o)}).remove(),n.length!==0){var l=i.selectAll("g."+Hr.groupClassName).data(n,NSe);l.enter().append("g").classed(Hr.groupClassName,!0),l.exit().each(o).remove();for(var s=0;s0&&(l=l.transition().duration(r.transition.duration).ease(r.transition.easing)),l.attr("transform",RSe(o-Hr.gripWidth*.5,r._dims.currentValueTotalHeight))}}function X8(e,r){var t=e._dims;return t.inputAreaStart+Hr.stepInset+(t.inputAreaLength-2*Hr.stepInset)*Math.min(1,Math.max(0,r))}function Bj(e,r){var t=e._dims;return Math.min(1,Math.max(0,(r-Hr.stepInset-t.inputAreaStart)/(t.inputAreaLength-2*Hr.stepInset-2*t.inputAreaStart)))}function YSe(e,r,t){var a=t._dims,n=Di.ensureSingle(e,"rect",Hr.railTouchRectClass,function(i){i.call(Yj,r,e,t).style("pointer-events","all")});n.attr({width:a.inputAreaLength,height:Math.max(a.inputAreaWidth,Hr.tickOffset+t.ticklen+a.labelHeight)}).call(tu.fill,t.bgcolor).attr("opacity",0),Wo.setTranslate(n,0,a.currentValueTotalHeight)}function VSe(e,r){var t=r._dims,a=t.inputAreaLength-Hr.railInset*2,n=Di.ensureSingle(e,"rect",Hr.railRectClass);n.attr({width:a,height:Hr.railWidth,rx:Hr.railRadius,ry:Hr.railRadius,"shape-rendering":"crispEdges"}).call(tu.stroke,r.bordercolor).call(tu.fill,r.bgcolor).style("stroke-width",r.borderwidth+"px"),Wo.setTranslate(n,Hr.railInset,(t.inputAreaWidth-Hr.railWidth)*.5+t.currentValueTotalHeight)}});var Zj=z((pKe,Xj)=>{"use strict";var jSe=(Jd(),Ne($d));Xj.exports={moduleType:"component",name:jSe.name,layoutAttributes:Y8(),supplyLayoutDefaults:Nj(),draw:Wj()}});var Hg=z((mKe,Jj)=>{"use strict";var $j=Hi();Jj.exports={bgcolor:{valType:"color",dflt:$j.background,editType:"plot"},bordercolor:{valType:"color",dflt:$j.defaultLine,editType:"plot"},borderwidth:{valType:"integer",dflt:0,min:0,editType:"plot"},autorange:{valType:"boolean",dflt:!0,editType:"calc",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},range:{valType:"info_array",items:[{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}},{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}}],editType:"calc",impliedEdits:{autorange:!1}},thickness:{valType:"number",dflt:.15,min:0,max:1,editType:"plot"},visible:{valType:"boolean",dflt:!0,editType:"calc"},editType:"calc"}});var Z8=z((yKe,Kj)=>{"use strict";Kj.exports={_isSubplotObj:!0,rangemode:{valType:"enumerated",values:["auto","fixed","match"],dflt:"match",editType:"calc"},range:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},editType:"calc"}});var Ug={};Dt(Ug,{bgClassName:()=>ZSe,containerClassName:()=>XSe,extraPad:()=>gqe,grabAreaCursor:()=>hqe,grabAreaFill:()=>vqe,grabAreaMaxClassName:()=>nqe,grabAreaMinClassName:()=>rqe,grabAreaWidth:()=>dqe,grabberMaxClassName:()=>aqe,grabberMinClassName:()=>eqe,handleMaxClassName:()=>iqe,handleMinClassName:()=>tqe,handleRadius:()=>mqe,handleStrokeWidth:()=>yqe,handleWidth:()=>pqe,maskColor:()=>sqe,maskMaxClassName:()=>KSe,maskMaxOppAxisClassName:()=>lqe,maskMinClassName:()=>JSe,maskMinOppAxisClassName:()=>oqe,maskOppAxisColor:()=>uqe,name:()=>WSe,rangePlotClassName:()=>$Se,slideBoxClassName:()=>QSe,slideBoxCursor:()=>cqe,slideBoxFill:()=>fqe});var WSe,XSe,ZSe,$Se,JSe,KSe,QSe,eqe,rqe,tqe,aqe,nqe,iqe,oqe,lqe,sqe,uqe,fqe,cqe,vqe,hqe,dqe,pqe,mqe,yqe,gqe,Gg=Ct(()=>{"use strict";WSe="rangeslider",XSe="rangeslider-container",ZSe="rangeslider-bg",$Se="rangeslider-rangeplot",JSe="rangeslider-mask-min",KSe="rangeslider-mask-max",QSe="rangeslider-slidebox",eqe="rangeslider-grabber-min",rqe="rangeslider-grabarea-min",tqe="rangeslider-handle-min",aqe="rangeslider-grabber-max",nqe="rangeslider-grabarea-max",iqe="rangeslider-handle-max",oqe="rangeslider-mask-min-opp-axis",lqe="rangeslider-mask-max-opp-axis",sqe="rgba(0,0,0,0.4)",uqe="rgba(0,0,0,0.2)",fqe="transparent",cqe="ew-resize",vqe="transparent",hqe="col-resize",dqe=10,pqe=4,mqe=1,yqe=1,gqe=15});var rW=z(Vg=>{"use strict";var bqe=Ca(),xqe=Da(),Qj=(Gg(),Ne(Ug)),_qe=(un(),Ne(sn)).LINE_SPACING,Yg=Qj.name;function eW(e){var r=e&&e[Yg];return r&&r.visible}Vg.isVisible=eW;Vg.makeData=function(e){for(var r=bqe.list({_fullLayout:e},"x",!0),t=e.margin,a=[],n=0;n{"use strict";var jg=ke(),tW=Pt(),aW=Ca(),wqe=Hg(),Tqe=Z8();nW.exports=function(r,t,a){var n=r[a],i=t[a];if(!(n.rangeslider||t._requestRangeslider[i._id]))return;jg.isPlainObject(n.rangeslider)||(n.rangeslider={});var o=n.rangeslider,l=tW.newContainer(i,"rangeslider");function s(_,k){return jg.coerce(o,l,wqe,_,k)}var u,f;function c(_,k){return jg.coerce(u,f,Tqe,_,k)}var v=s("visible");if(v){s("bgcolor",t.plot_bgcolor),s("bordercolor"),s("borderwidth"),s("thickness"),s("autorange",!i.isValidRange(o.range)),s("range");var d=t._subplots;if(d)for(var p=d.cartesian.filter(function(_){return _.slice(0,Math.max(0,_.indexOf("y")))===aW.name2id(a)}).map(function(_){return _.slice(_.indexOf("y"),_.length)}),m=jg.simpleMap(p,aW.id2name),y=0;y{"use strict";var Aqe=Ca().list,Mqe=Bh().getAutoRange,kqe=(Gg(),Ne(Ug));oW.exports=function(r){for(var t=Aqe(r,"x",!0),a=0;a{"use strict";var Wg=Pr(),Sqe=Ar(),qqe=_a(),pa=ke(),Xg=pa.strTranslate,uW=et(),au=qr(),Lqe=o0(),Cqe=lo(),$8=Ca(),Dqe=Xi(),Eqe=Ys(),Zr=(Gg(),Ne(Ug));fW.exports=function(e){for(var r=e._fullLayout,t=r._rangeSliderData,a=0;a=V.max)U=P[G+1];else if(N=V.pmax)U=P[G+1];else if(N0?e.touches[0].clientX:0}function Pqe(e,r,t,a){if(r._context.staticPlot)return;var n=e.select("rect."+Zr.slideBoxClassName).node(),i=e.select("rect."+Zr.grabAreaMinClassName).node(),o=e.select("rect."+Zr.grabAreaMaxClassName).node();function l(){var s=Wg.event,u=s.target,f=sW(s),c=f-e.node().getBoundingClientRect().left,v=a.d2p(t._rl[0]),d=a.d2p(t._rl[1]),p=Dqe.coverSlip();this.addEventListener("touchmove",m),this.addEventListener("touchend",y),p.addEventListener("mousemove",m),p.addEventListener("mouseup",y);function m(b){var T=sW(b),w=+T-f,x,_,k;switch(u){case n:if(k="ew-resize",v+w>t._length||d+w<0)return;x=v+w,_=d+w;break;case i:if(k="col-resize",v+w>t._length)return;x=v+w,_=d;break;case o:if(k="col-resize",d+w<0)return;x=v,_=d+w;break;default:k="ew-resize",x=c,_=c+w;break}if(_{"use strict";var Gqe=ke(),Yqe=Hg(),Vqe=Z8(),J8=rW();vW.exports={moduleType:"component",name:"rangeslider",schema:{subplots:{xaxis:{rangeslider:Gqe.extendFlat({},Yqe,{yaxis:Vqe})}}},layoutAttributes:Hg(),handleDefaults:iW(),calcAutorange:lW(),draw:cW(),isVisible:J8.isVisible,makeData:J8.makeData,autoMarginOpts:J8.autoMarginOpts}});var Zg=z((TKe,pW)=>{"use strict";var jqe=Ia(),dW=Hi(),Wqe=Pt().templatedArray,Xqe=Wqe("button",{visible:{valType:"boolean",dflt:!0,editType:"plot"},step:{valType:"enumerated",values:["month","year","day","hour","minute","second","all"],dflt:"month",editType:"plot"},stepmode:{valType:"enumerated",values:["backward","todate"],dflt:"backward",editType:"plot"},count:{valType:"number",min:0,dflt:1,editType:"plot"},label:{valType:"string",editType:"plot"},editType:"plot"});pW.exports={visible:{valType:"boolean",editType:"plot"},buttons:Xqe,x:{valType:"number",min:-2,max:3,editType:"plot"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"plot"},y:{valType:"number",min:-2,max:3,editType:"plot"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"bottom",editType:"plot"},font:jqe({editType:"plot"}),bgcolor:{valType:"color",dflt:dW.lightLine,editType:"plot"},activecolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:dW.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"}});var K8={};Dt(K8,{darkAmount:()=>eLe,lightAmount:()=>Qqe,minButtonWidth:()=>$qe,rx:()=>Jqe,ry:()=>Kqe,yPad:()=>Zqe});var Zqe,$qe,Jqe,Kqe,Qqe,eLe,Q8=Ct(()=>{"use strict";Zqe=.02,$qe=30,Jqe=3,Kqe=3,Qqe=25,eLe=10});var gW=z((AKe,yW)=>{"use strict";var $g=ke(),rLe=qr(),tLe=Pt(),aLe=zo(),mW=Zg(),e9=(Q8(),Ne(K8));yW.exports=function(r,t,a,n,i){var o=r.rangeselector||{},l=tLe.newContainer(t,"rangeselector");function s(d,p){return $g.coerce(o,l,mW,d,p)}var u=aLe(o,l,{name:"buttons",handleItemDefaults:nLe,calendar:i}),f=s("visible",u.length>0);if(f){var c=iLe(t,a,n);s("x",c[0]),s("y",c[1]),$g.noneOrAll(r,t,["x","y"]),s("xanchor"),s("yanchor"),$g.coerceFont(s,"font",a.font);var v=s("bgcolor");s("activecolor",rLe.contrast(v,e9.lightAmount,e9.darkAmount)),s("bordercolor"),s("borderwidth")}};function nLe(e,r,t,a){var n=a.calendar;function i(s,u){return $g.coerce(e,r,mW.buttons,s,u)}var o=i("visible");if(o){var l=i("step");l!=="all"&&(n&&n!=="gregorian"&&(l==="month"||l==="year")?r.stepmode="backward":i("stepmode"),i("count")),i("label")}}function iLe(e,r,t){for(var a=t.filter(function(l){return r[l].anchor===e._id}),n=0,i=0;i{"use strict";var oLe=d5(),lLe=ke().titleCase;bW.exports=function(r,t){var a=r._name,n={};if(t.step==="all")n[a+".autorange"]=!0;else{var i=sLe(r,t);n[a+".range[0]"]=i[0],n[a+".range[1]"]=i[1]}return n};function sLe(e,r){var t=e.range,a=new Date(e.r2l(t[1])),n=r.step,i=oLe["utc"+lLe(n)],o=r.count,l;switch(r.stepmode){case"backward":l=e.l2r(+i.offset(a,-o));break;case"todate":var s=i.offset(a,-o);l=e.l2r(+i.ceil(s));break}var u=t[1];return[l,u]}});var qW=z((kKe,SW)=>{"use strict";var Kg=Pr(),uLe=Ar(),fLe=_a(),_W=qr(),kW=et(),is=ke(),wW=is.strTranslate,Jg=Da(),cLe=Ca(),a9=(un(),Ne(sn)),TW=a9.LINE_SPACING,AW=a9.FROM_TL,MW=a9.FROM_BR,t9=(Q8(),Ne(K8)),vLe=xW();SW.exports=function(r){var t=r._fullLayout,a=t._infolayer.selectAll(".rangeselector").data(hLe(r),dLe);a.enter().append("g").classed("rangeselector",!0),a.exit().remove(),a.style({cursor:"pointer","pointer-events":"all"}),a.each(function(n){var i=Kg.select(this),o=n,l=o.rangeselector,s=i.selectAll("g.button").data(is.filterVisible(l.buttons));s.enter().append("g").classed("button",!0),s.exit().remove(),s.each(function(u){var f=Kg.select(this),c=vLe(o,u);u._isActive=pLe(o,u,c),f.call(r9,l,u),f.call(yLe,l,u,r),f.on("click",function(){r._dragged||uLe.call("_guiRelayout",r,c)}),f.on("mouseover",function(){u._isHovered=!0,f.call(r9,l,u)}),f.on("mouseout",function(){u._isHovered=!1,f.call(r9,l,u)})}),bLe(r,s,l,o._name,i)})};function hLe(e){for(var r=cLe.list(e,"x",!0),t=[],a=0;a{"use strict";LW.exports={moduleType:"component",name:"rangeselector",schema:{subplots:{xaxis:{rangeselector:Zg()}}},layoutAttributes:Zg(),handleDefaults:gW(),draw:qW()}});var H0=z(n9=>{"use strict";var DW=St().extendFlat;n9.attributes=function(e,r){e=e||{},r=r||{};var t={valType:"info_array",editType:e.editType,items:[{valType:"number",min:0,max:1,editType:e.editType},{valType:"number",min:0,max:1,editType:e.editType}],dflt:[0,1]},a=e.name?e.name+" ":"",n=e.trace?"trace":"subplot",i=r.description?" "+r.description:"",o={x:DW({},t,{}),y:DW({},t,{}),editType:e.editType};return e.noGridCell||(o.row={valType:"integer",min:0,dflt:0,editType:e.editType},o.column={valType:"integer",min:0,dflt:0,editType:e.editType}),o};n9.defaults=function(e,r,t,a){var n=a&&a.x||[0,1],i=a&&a.y||[0,1],o=r.grid;if(o){var l=t("domain.column");l!==void 0&&(l{"use strict";var xLe=ke(),_Le=(Nc(),Ne(_h)).counter,wLe=H0().attributes,EW=(Ha(),Ne(Oa)).idRegex,TLe=Pt(),i9={rows:{valType:"integer",min:1,editType:"plot"},roworder:{valType:"enumerated",values:["top to bottom","bottom to top"],dflt:"top to bottom",editType:"plot"},columns:{valType:"integer",min:1,editType:"plot"},subplots:{valType:"info_array",freeLength:!0,dimensions:2,items:{valType:"enumerated",values:[_Le("xy").toString(),""],editType:"plot"},editType:"plot"},xaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[EW.x.toString(),""],editType:"plot"},editType:"plot"},yaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[EW.y.toString(),""],editType:"plot"},editType:"plot"},pattern:{valType:"enumerated",values:["independent","coupled"],dflt:"coupled",editType:"plot"},xgap:{valType:"number",min:0,max:1,editType:"plot"},ygap:{valType:"number",min:0,max:1,editType:"plot"},domain:wLe({name:"grid",editType:"plot",noGridCell:!0},{}),xside:{valType:"enumerated",values:["bottom","bottom plot","top plot","top"],dflt:"bottom plot",editType:"plot"},yside:{valType:"enumerated",values:["left","left plot","right plot","right"],dflt:"left plot",editType:"plot"},editType:"plot"};function Qg(e,r,t){var a=r[t+"axes"],n=Object.keys((e._splomAxes||{})[t]||{});if(Array.isArray(a))return a;if(n.length)return n}function ALe(e,r){var t=e.grid||{},a=Qg(r,t,"x"),n=Qg(r,t,"y");if(!e.grid&&!a&&!n)return;var i=Array.isArray(t.subplots)&&Array.isArray(t.subplots[0]),o=Array.isArray(a),l=Array.isArray(n),s=o&&a!==t.xaxes&&l&&n!==t.yaxes,u,f;i?(u=t.subplots.length,f=t.subplots[0].length):(l&&(u=n.length),o&&(f=a.length));var c=TLe.newContainer(r,"grid");function v(k,M){return xLe.coerce(t,c,i9,k,M)}var d=v("rows",u),p=v("columns",f);if(!(d*p>1)){delete r.grid;return}if(!i&&!o&&!l){var m=v("pattern")==="independent";m&&(i=!0)}c._hasSubplotGrid=i;var y=v("roworder"),b=y==="top to bottom",T=i?.2:.1,w=i?.3:.1,x,_;s&&r._splomGridDflt&&(x=r._splomGridDflt.xside,_=r._splomGridDflt.yside),c._domains={x:PW("x",v,T,x,p),y:PW("y",v,w,_,d,b)}}function PW(e,r,t,a,n,i){var o=r(e+"gap",t),l=r("domain."+e);r(e+"side",a);for(var s=new Array(n),u=l[0],f=(l[1]-u)/(n-o),c=f*(1-o),v=0;v{"use strict";NW.exports={visible:{valType:"boolean",editType:"calc"},type:{valType:"enumerated",values:["percent","constant","sqrt","data"],editType:"calc"},symmetric:{valType:"boolean",editType:"calc"},array:{valType:"data_array",editType:"calc"},arrayminus:{valType:"data_array",editType:"calc"},value:{valType:"number",min:0,dflt:10,editType:"calc"},valueminus:{valType:"number",min:0,dflt:10,editType:"calc"},traceref:{valType:"integer",min:0,dflt:0,editType:"style"},tracerefminus:{valType:"integer",min:0,dflt:0,editType:"style"},copy_ystyle:{valType:"boolean",editType:"plot"},copy_zstyle:{valType:"boolean",editType:"style"},color:{valType:"color",editType:"style"},thickness:{valType:"number",min:0,dflt:2,editType:"style"},width:{valType:"number",min:0,editType:"plot"},editType:"calc"}});var OW=z((DKe,BW)=>{"use strict";var IW=Br(),kLe=Ar(),SLe=ke(),qLe=Pt(),LLe=o9();BW.exports=function(e,r,t,a){var n="error_"+a.axis,i=qLe.newContainer(r,n),o=e[n]||{};function l(p,m){return SLe.coerce(o,i,LLe,p,m)}var s=o.array!==void 0||o.value!==void 0||o.type==="sqrt",u=l("visible",s);if(u!==!1){var f=l("type","array"in o?"data":"percent"),c=!0;f!=="sqrt"&&(c=l("symmetric",!((f==="data"?"arrayminus":"valueminus")in o))),f==="data"?(l("array"),l("traceref"),c||(l("arrayminus"),l("tracerefminus"))):(f==="percent"||f==="constant")&&(l("value"),c||l("valueminus"));var v="copy_"+a.inherit+"style";if(a.inherit){var d=r["error_"+a.inherit];(d||{}).visible&&l(v,!(o.color||IW(o.thickness)||IW(o.width)))}(!a.inherit||!i[v])&&(l("color",t),l("thickness"),l("width",kLe.traceIs(r,"gl3d")?0:4))}}});var l9=z((EKe,UW)=>{"use strict";UW.exports=function(r){var t=r.type,a=r.symmetric;if(t==="data"){var n=r.array||[];if(a)return function(u,f){var c=+n[f];return[c,c]};var i=r.arrayminus||[];return function(u,f){var c=+n[f],v=+i[f];return!isNaN(c)||!isNaN(v)?[v||0,c||0]:[NaN,NaN]}}else{var o=HW(t,r.value),l=HW(t,r.valueminus);return a||r.valueminus===void 0?function(u){var f=o(u);return[f,f]}:function(u){return[l(u),o(u)]}}};function HW(e,r){if(e==="percent")return function(t){return Math.abs(t*r/100)};if(e==="constant")return function(){return Math.abs(r)};if(e==="sqrt")return function(t){return Math.sqrt(Math.abs(t))}}});var VW=z((PKe,YW)=>{"use strict";var s9=Br(),CLe=Ar(),u9=jr(),DLe=ke(),ELe=l9();YW.exports=function(r){for(var t=r.calcdata,a=0;a{"use strict";var jW=Pr(),nu=Br(),PLe=et(),RLe=ii();WW.exports=function(r,t,a,n){var i,o=a.xaxis,l=a.yaxis,s=n&&n.duration>0,u=r._context.staticPlot;t.each(function(f){var c=f[0].trace,v=c.error_x||{},d=c.error_y||{},p;c.ids&&(p=function(T){return T.id});var m=RLe.hasMarkers(c)&&c.marker.maxdisplayed>0;!d.visible&&!v.visible&&(f=[]);var y=jW.select(this).selectAll("g.errorbar").data(f,p);if(y.exit().remove(),!!f.length){v.visible||y.selectAll("path.xerror").remove(),d.visible||y.selectAll("path.yerror").remove(),y.style("opacity",1);var b=y.enter().append("g").classed("errorbar",!0);s&&b.style("opacity",0).transition().duration(n.duration).style("opacity",1),PLe.setClipUrl(y,a.layerClipId,r),y.each(function(T){var w=jW.select(this),x=FLe(T,o,l);if(!(m&&!T.vis)){var _,k=w.select("path.yerror");if(d.visible&&nu(x.x)&&nu(x.yh)&&nu(x.ys)){var M=d.width;_="M"+(x.x-M)+","+x.yh+"h"+2*M+"m-"+M+",0V"+x.ys,x.noYS||(_+="m-"+M+",0h"+2*M),i=!k.size(),i?k=w.append("path").style("vector-effect",u?"none":"non-scaling-stroke").classed("yerror",!0):s&&(k=k.transition().duration(n.duration).ease(n.easing)),k.attr("d",_)}else k.remove();var S=w.select("path.xerror");if(v.visible&&nu(x.y)&&nu(x.xh)&&nu(x.xs)){var C=(v.copy_ystyle?d:v).width;_="M"+x.xh+","+(x.y-C)+"v"+2*C+"m0,-"+C+"H"+x.xs,x.noXS||(_+="m0,-"+C+"v"+2*C),i=!S.size(),i?S=w.append("path").style("vector-effect",u?"none":"non-scaling-stroke").classed("xerror",!0):s&&(S=S.transition().duration(n.duration).ease(n.easing)),S.attr("d",_)}else S.remove()}})}})};function FLe(e,r,t){var a={x:r.c2p(e.x),y:t.c2p(e.y)};return e.yh!==void 0&&(a.yh=t.c2p(e.yh),a.ys=t.c2p(e.ys),nu(a.ys)||(a.noYS=!0,a.ys=t.c2p(e.ys,!0))),e.xh!==void 0&&(a.xh=r.c2p(e.xh),a.xs=r.c2p(e.xs),nu(a.xs)||(a.noXS=!0,a.xs=r.c2p(e.xs,!0))),a}});var JW=z((FKe,$W)=>{"use strict";var zLe=Pr(),ZW=qr();$W.exports=function(r){r.each(function(t){var a=t[0].trace,n=a.error_y||{},i=a.error_x||{},o=zLe.select(this);o.selectAll("path.yerror").style("stroke-width",n.thickness+"px").call(ZW.stroke,n.color),i.copy_ystyle&&(i=n),o.selectAll("path.xerror").style("stroke-width",i.thickness+"px").call(ZW.stroke,i.color)})}});var eX=z((zKe,QW)=>{"use strict";var Qd=ke(),KW=Do().overrideAll,e2=o9(),Rf={error_x:Qd.extendFlat({},e2),error_y:Qd.extendFlat({},e2)};delete Rf.error_x.copy_zstyle;delete Rf.error_y.copy_zstyle;delete Rf.error_y.copy_ystyle;var r2={error_x:Qd.extendFlat({},e2),error_y:Qd.extendFlat({},e2),error_z:Qd.extendFlat({},e2)};delete r2.error_x.copy_ystyle;delete r2.error_y.copy_ystyle;delete r2.error_z.copy_ystyle;delete r2.error_z.copy_zstyle;QW.exports={moduleType:"component",name:"errorbars",schema:{traces:{scatter:Rf,bar:Rf,histogram:Rf,scatter3d:KW(r2,"calc","nested"),scattergl:KW(Rf,"calc","nested")}},supplyDefaults:OW(),calc:VW(),makeComputeError:l9(),plot:XW(),style:JW(),hoverInfo:NLe};function NLe(e,r,t){(r.error_y||{}).visible&&(t.yerr=e.yh-e.y,r.error_y.symmetric||(t.yerrneg=e.y-e.ys)),(r.error_x||{}).visible&&(t.xerr=e.xh-e.x,r.error_x.symmetric||(t.xerrneg=e.x-e.xs))}});var rX={};Dt(rX,{cn:()=>ILe});var ILe,tX=Ct(()=>{"use strict";ILe={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"}});var fX=z((NKe,uX)=>{"use strict";var iu=Pr(),r3=_a(),aX=Ar(),os=jr(),e3=Xi(),uo=ke(),Zo=uo.strTranslate,sX=St().extendFlat,f9=Ys(),Xo=et(),U0=qr(),BLe=o0(),OLe=Da(),HLe=xi().flipScale,ULe=b8(),GLe=x8(),YLe=ji(),v9=(un(),Ne(sn)),nX=v9.LINE_SPACING,iX=v9.FROM_TL,oX=v9.FROM_BR,ea=(tX(),Ne(rX)).cn;function VLe(e){var r=e._fullLayout,t=r._infolayer.selectAll("g."+ea.colorbar).data(jLe(e),function(a){return a._id});t.enter().append("g").attr("class",function(a){return a._id}).classed(ea.colorbar,!0),t.each(function(a){var n=iu.select(this);uo.ensureSingle(n,"rect",ea.cbbg),uo.ensureSingle(n,"g",ea.cbfills),uo.ensureSingle(n,"g",ea.cblines),uo.ensureSingle(n,"g",ea.cbaxis,function(o){o.classed(ea.crisp,!0)}),uo.ensureSingle(n,"g",ea.cbtitleunshift,function(o){o.append("g").classed(ea.cbtitle,!0)}),uo.ensureSingle(n,"rect",ea.cboutline);var i=WLe(n,a,e);i&&i.then&&(e._promises||[]).push(i),e._context.edits.colorbarPosition&&XLe(n,a,e)}),t.exit().each(function(a){r3.autoMargin(e,a._id)}).remove(),t.order()}function jLe(e){var r=e._fullLayout,t=e.calcdata,a=[],n,i,o,l;function s(w){return sX(w,{_fillcolor:null,_line:{color:null,width:null,dash:null},_levels:{start:null,end:null,size:null},_filllevels:null,_fillgradient:null,_zrange:null})}function u(){typeof l.calc=="function"?l.calc(e,o,n):(n._fillgradient=i.reversescale?HLe(i.colorscale):i.colorscale,n._zrange=[i[l.min],i[l.max]])}for(var f=0;f[Math.min(e[0]+r,e[1]),e[1]],lX=(e,r)=>[e[0],Math.max(e[1]-r,e[0])];function WLe(e,r,t){var a=r.orientation==="v",n=r.len,i=r.lenmode,o=r.thickness,l=r.thicknessmode,s=r.outlinewidth,u=r.borderwidth,f=r.bgcolor,c=r.xanchor,v=r.yanchor,d=r.xpad,p=r.ypad,m=r.x,y=a?r.y:1-r.y,b=r.yref==="paper",T=r.xref==="paper",w=t._fullLayout,x=w._size,_=r._fillcolor,k=r._line,M=r.title,S=M.side,C=r._zrange||iu.extent((typeof _=="function"?_:k.color).domain()),E=typeof k.color=="function"?k.color:function(){return k.color},P=typeof _=="function"?_:function(){return _},R=r._levels,I=ZLe(t,r,C),B=I.fill,N=I.line,U=Math.round(o*(l==="fraction"?a?x.w:x.h:1)),G=U/(a?x.w:x.h),V=Math.round(n*(i==="fraction"?a?x.h:x.w:1)),j=V/(a?x.h:x.w),W=T?x.w:t._fullLayout.width,Y=b?x.h:t._fullLayout.height,J=Math.round(a?m*W+d:y*Y+p),re={center:.5,right:1}[c]||0,le={top:1,middle:.5}[v]||0,ne=a?m-re*G:y-le*G,$=a?y-le*j:m-re*j,ce=Math.round(a?Y*(1-$):W*$);r._lenFrac=j,r._thickFrac=G,r._uFrac=ne,r._vFrac=$;var te=r._axis=$Le(t,r,C);te.position=G+(a?m+d/x.w:y+p/x.h);var ge=["top","bottom"].indexOf(S)!==-1;if(a&&ge&&(te.title.side=S,te.titlex=m+d/x.w,te.titley=$+(M.side==="top"?j-p/x.h:p/x.h)),!a&&!ge&&(te.title.side=S,te.titley=y+p/x.h,te.titlex=$+d/x.w),k.color&&r.tickmode==="auto"){te.tickmode="linear",te.tick0=R.start;var se=R.size,oe=uo.constrain(V/50,4,15)+1,Ae=(C[1]-C[0])/((r.nticks||oe)*se);if(Ae>1){var Pe=Math.pow(10,Math.floor(Math.log(Ae)/Math.LN10));se*=Pe*uo.roundUp(Ae/Pe,[2,5,10]),(Math.abs(R.start)/R.size+1e-6)%1<2e-6&&(te.tick0=0)}te.dtick=se}var me=a?p/x.h:d/x.w;te.domain=lX(c9([$,$+j],me),me),te.setScale(),e.attr("transform",Zo(Math.round(x.l),Math.round(x.t)));var Ce=e.select("."+ea.cbtitleunshift).attr("transform",Zo(-Math.round(x.l),-Math.round(x.t))),Me=te.ticklabelposition,Le=te.title.font.size,Se=e.select("."+ea.cbaxis),Ee,qe=0,Ue=0;function Je(ae,be){var Ge={propContainer:te,propName:r._propPrefix+"title.text",traceIndex:r._traceIndex,_meta:r._meta,placeholder:w._dfltTitle.colorbar,containerGroup:e.select("."+ea.cbtitle)},sr=ae.charAt(0)==="h"?ae.slice(1):"h"+ae;e.selectAll("."+sr+",."+sr+"-math-group").remove(),BLe.draw(t,ae,sX(Ge,be||{}))}function Ke(){if(a&&ge||!a&&!ge){var ae,be;S==="top"&&(ae=d+x.l+W*m,be=p+x.t+Y*(1-$-j)+3+Le*.75),S==="bottom"&&(ae=d+x.l+W*m,be=p+x.t+Y*(1-$)-3-Le*.25),S==="right"&&(be=p+x.t+Y*y+3+Le*.75,ae=d+x.l+W*$),Je(te._id+"title",{attributes:{x:ae,y:be,"text-anchor":a?"start":"middle"}})}}function De(){if(a&&!ge||!a&&ge){var ae=te.position||0,be=te._offset+te._length/2,Ge,sr;if(S==="right")sr=be,Ge=x.l+W*ae+10+Le*(te.showticklabels?1:.5);else if(Ge=be,S==="bottom"&&(sr=x.t+Y*ae+10+(Me.indexOf("inside")===-1?te.tickfont.size:0)+(te.ticks!=="inside"&&r.ticklen||0)),S==="top"){var vr=M.text.split("
").length;sr=x.t+Y*ae+10-U-nX*Le*vr}Je((a?"h":"v")+te._id+"title",{avoid:{selection:iu.select(t).selectAll("g."+te._id+"tick"),side:S,offsetTop:a?0:x.t,offsetLeft:a?x.l:0,maxShift:a?w.width:w.height},attributes:{x:Ge,y:sr,"text-anchor":"middle"},transform:{rotate:a?-90:0,offset:0}})}}function Be(){if(!a&&!ge||a&&ge){var ae=e.select("."+ea.cbtitle),be=ae.select("text"),Ge=[-s/2,s/2],sr=ae.select(".h"+te._id+"title-math-group").node(),vr=15.6;be.node()&&(vr=parseInt(be.node().style.fontSize,10)*nX);var ue;if(sr?(ue=Xo.bBox(sr),Ue=ue.width,qe=ue.height,qe>vr&&(Ge[1]-=(qe-vr)/2)):be.node()&&!be.classed(ea.jsPlaceholder)&&(ue=Xo.bBox(be.node()),Ue=ue.width,qe=ue.height),a){if(qe){if(qe+=5,S==="top")te.domain=lX(te.domain,qe/x.h),Ge[1]*=-1;else{te.domain=c9(te.domain,qe/x.h);var xe=OLe.lineCount(be);Ge[1]+=(1-xe)*vr}ae.attr("transform",Zo(Ge[0],Ge[1])),te.setScale()}}else Ue&&(S==="right"&&(te.domain=c9(te.domain,(Ue+Le/2)/x.w)),ae.attr("transform",Zo(Ge[0],Ge[1])),te.setScale())}e.selectAll("."+ea.cbfills+",."+ea.cblines).attr("transform",a?Zo(0,Math.round(x.h*(1-te.domain[1]))):Zo(Math.round(x.w*te.domain[0]),0)),Se.attr("transform",a?Zo(0,Math.round(-x.t)):Zo(Math.round(-x.l),0));var Ie=e.select("."+ea.cbfills).selectAll("rect."+ea.cbfill).attr("style","").data(B);Ie.enter().append("rect").classed(ea.cbfill,!0).attr("style",""),Ie.exit().remove();var We=C.map(te.c2p).map(Math.round).sort(function(gr,Re){return gr-Re});Ie.each(function(gr,Re){var Ze=[Re===0?C[0]:(B[Re]+B[Re-1])/2,Re===B.length-1?C[1]:(B[Re]+B[Re+1])/2].map(te.c2p).map(Math.round);a&&(Ze[1]=uo.constrain(Ze[1]+(Ze[1]>Ze[0])?1:-1,We[0],We[1]));var ze=iu.select(this).attr(a?"x":"y",J).attr(a?"y":"x",iu.min(Ze)).attr(a?"width":"height",Math.max(U,2)).attr(a?"height":"width",Math.max(iu.max(Ze)-iu.min(Ze),2));if(r._fillgradient)Xo.gradient(ze,t,r._id,a?"vertical":"horizontalreversed",r._fillgradient,"fill");else{var rr=P(gr).replace("e-","");ze.attr("fill",U0.hexString(rr))}});var Oe=e.select("."+ea.cblines).selectAll("path."+ea.cbline).data(k.color&&k.width?N:[]);Oe.enter().append("path").classed(ea.cbline,!0),Oe.exit().remove(),Oe.each(function(gr){var Re=J,Ze=Math.round(te.c2p(gr))+k.width/2%1;iu.select(this).attr("d","M"+(a?Re+","+Ze:Ze+","+Re)+(a?"h":"v")+U).call(Xo.lineGroupStyle,k.width,E(gr),k.dash)}),Se.selectAll("g."+te._id+"tick,path").remove();var Xe=J+U+(s||0)/2-(r.ticks==="outside"?1:0),Qe=os.calcTicks(te),_r=os.getTickSigns(te)[2];return os.drawTicks(t,te,{vals:te.ticks==="inside"?os.clipEnds(te,Qe):Qe,layer:Se,path:os.makeTickPath(te,Xe,_r),transFn:os.makeTransTickFn(te)}),os.drawLabels(t,te,{vals:Qe,layer:Se,transFn:os.makeTransTickLabelFn(te),labelFns:os.makeLabelFns(te,Xe)})}function er(){var ae,be=U+s/2;Me.indexOf("inside")===-1&&(ae=Xo.bBox(Se.node()),be+=a?ae.width:ae.height),Ee=Ce.select("text");var Ge=0,sr=a&&S==="top",vr=!a&&S==="right",ue=0;if(Ee.node()&&!Ee.classed(ea.jsPlaceholder)){var xe,Ie=Ce.select(".h"+te._id+"title-math-group").node();Ie&&(a&&ge||!a&&!ge)?(ae=Xo.bBox(Ie),Ge=ae.width,xe=ae.height):(ae=Xo.bBox(Ce.node()),Ge=ae.right-x.l-(a?J:ce),xe=ae.bottom-x.t-(a?ce:J),!a&&S==="top"&&(be+=ae.height,ue=ae.height)),vr&&(Ee.attr("transform",Zo(Ge/2+Le/2,0)),Ge*=2),be=Math.max(be,a?Ge:xe)}var We=(a?d:p)*2+be+u+s/2,Oe=0;!a&&M.text&&v==="bottom"&&y<=0&&(Oe=We/2,We+=Oe,ue+=Oe),w._hColorbarMoveTitle=Oe,w._hColorbarMoveCBTitle=ue;var Xe=u+s,Qe=(a?J:ce)-Xe/2-(a?d:0),_r=(a?ce:J)-(a?V:p+ue-Oe);e.select("."+ea.cbbg).attr("x",Qe).attr("y",_r).attr(a?"width":"height",Math.max(We-Oe,2)).attr(a?"height":"width",Math.max(V+Xe,2)).call(U0.fill,f).call(U0.stroke,r.bordercolor).style("stroke-width",u);var gr=vr?Math.max(Ge-10,0):0;e.selectAll("."+ea.cboutline).attr("x",(a?J:ce+d)+gr).attr("y",(a?ce+p-V:J)+(sr?qe:0)).attr(a?"width":"height",Math.max(U,2)).attr(a?"height":"width",Math.max(V-(a?2*p+qe:2*d+gr),2)).call(U0.stroke,r.outlinecolor).style({fill:"none","stroke-width":s});var Re=a?re*We:0,Ze=a?0:(1-le)*We-ue;if(Re=T?x.l-Re:-Re,Ze=b?x.t-Ze:-Ze,e.attr("transform",Zo(Re,Ze)),!a&&(u||U0.opacity(f)&&!U0.equals(w.paper_bgcolor,f))){var ze=Se.selectAll("text"),rr=ze[0].length,cr=e.select("."+ea.cbbg).node(),pr=Xo.bBox(cr),mr=Xo.getTranslate(e),ie=2;ze.each(function(Fa,kt){var Zt=0,$t=rr-1;if(kt===Zt||kt===$t){var Lt=Xo.bBox(this),ra=Xo.getTranslate(this),sa;if(kt===$t){var Ot=Lt.right+ra.x,tr=pr.right+mr.x+ce-u-ie+m;sa=tr-Ot,sa>0&&(sa=0)}else if(kt===Zt){var tt=Lt.left+ra.x,Yr=pr.left+mr.x+ce+u+ie;sa=Yr-tt,sa<0&&(sa=0)}sa&&(rr<3?this.setAttribute("transform","translate("+sa+",0) "+this.getAttribute("transform")):this.setAttribute("visibility","hidden"))}})}var ye={},Fe=iX[c],He=oX[c],Gr=iX[v],rt=oX[v],qt=We-U;a?(i==="pixels"?(ye.y=y,ye.t=V*Gr,ye.b=V*rt):(ye.t=ye.b=0,ye.yt=y+n*Gr,ye.yb=y-n*rt),l==="pixels"?(ye.x=m,ye.l=We*Fe,ye.r=We*He):(ye.l=qt*Fe,ye.r=qt*He,ye.xl=m-o*Fe,ye.xr=m+o*He)):(i==="pixels"?(ye.x=m,ye.l=V*Fe,ye.r=V*He):(ye.l=ye.r=0,ye.xl=m+n*Fe,ye.xr=m-n*He),l==="pixels"?(ye.y=1-y,ye.t=We*Gr,ye.b=We*rt):(ye.t=qt*Gr,ye.b=qt*rt,ye.yt=y-o*Gr,ye.yb=y+o*rt));var gt=r.y<.5?"b":"t",Ut=r.x<.5?"l":"r";t._fullLayout._reservedMargin[r._id]={};var Bt={r:w.width-Qe-Re,l:Qe+ye.r,b:w.height-_r-Ze,t:_r+ye.b};T&&b?r3.autoMargin(t,r._id,ye):T?t._fullLayout._reservedMargin[r._id][gt]=Bt[gt]:b||a?t._fullLayout._reservedMargin[r._id][Ut]=Bt[Ut]:t._fullLayout._reservedMargin[r._id][gt]=Bt[gt]}return uo.syncOrAsync([r3.previousPromises,Ke,Be,De,r3.previousPromises,er],t)}function XLe(e,r,t){var a=r.orientation==="v",n=t._fullLayout,i=n._size,o,l,s;e3.init({element:e.node(),gd:t,prepFn:function(){o=e.attr("transform"),f9(e)},moveFn:function(u,f){e.attr("transform",o+Zo(u,f)),l=e3.align((a?r._uFrac:r._vFrac)+u/i.w,a?r._thickFrac:r._lenFrac,0,1,r.xanchor),s=e3.align((a?r._vFrac:1-r._uFrac)-f/i.h,a?r._lenFrac:r._thickFrac,0,1,r.yanchor);var c=e3.getCursor(l,s,r.xanchor,r.yanchor);f9(e,c)},doneFn:function(){if(f9(e),l!==void 0&&s!==void 0){var u={};u[r._propPrefix+"x"]=l,u[r._propPrefix+"y"]=s,r._traceIndex!==void 0?aX.call("_guiRestyle",t,u,r._traceIndex):aX.call("_guiRelayout",t,u)}}})}function ZLe(e,r,t){var a=r._levels,n=[],i=[],o,l,s=a.end+a.size/100,u=a.size,f=1.001*t[0]-.001*t[1],c=1.001*t[1]-.001*t[0];for(l=0;l<1e5&&(o=a.start+l*u,!(u>0?o>=s:o<=s));l++)o>f&&o0?o>=s:o<=s));l++)o>t[0]&&o{"use strict";cX.exports={moduleType:"component",name:"colorbar",attributes:am(),supplyDefaults:l6(),draw:fX().draw,hasColorbar:e6()}});var dX=z((BKe,hX)=>{"use strict";hX.exports={moduleType:"component",name:"legend",layoutAttributes:t7(),supplyLayoutDefaults:n7(),draw:g7(),style:d7()}});var mX=z((OKe,pX)=>{"use strict";pX.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"}}});var gX=z((HKe,yX)=>{"use strict";yX.exports={moduleType:"locale",name:"en-US",dictionary:{"Click to enter Colorscale title":"Click to enter Colorscale title"},format:{date:"%m/%d/%Y"}}});var d9=z((UKe,wX)=>{"use strict";var JLe=Ar(),_X=ke(),h9=_X.extendFlat,bX=_X.extendDeep;function xX(e){var r;switch(e){case"themes__thumb":r={autosize:!0,width:150,height:150,title:{text:""},showlegend:!1,margin:{l:5,r:5,t:5,b:5,pad:0},annotations:[]};break;case"thumbnail":r={title:{text:""},showlegend:!1,borderwidth:0,bordercolor:"",margin:{l:1,r:1,t:1,b:1,pad:0},annotations:[]};break;default:r={}}return r}function KLe(e){var r=["xaxis","yaxis","zaxis"];return r.indexOf(e.slice(0,5))>-1}wX.exports=function(r,t){var a,n=r.data,i=r.layout,o=bX([],n),l=bX({},i,xX(t.tileClass)),s=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 u=Object.keys(l);for(a=0;a{"use strict";var QLe=Ju().EventEmitter,eCe=Ar(),rCe=ke(),TX=ts(),tCe=d9(),aCe=ag(),nCe=ng();function iCe(e,r){var t=new QLe,a=tCe(e,{format:"png"}),n=a.gd;n.style.position="absolute",n.style.left="-5000px",document.body.appendChild(n);function i(){var l=TX.getDelay(n._fullLayout);setTimeout(function(){var s=aCe(n),u=document.createElement("canvas");u.id=rCe.randstr(),t=nCe({format:r.format,width:n._fullLayout.width,height:n._fullLayout.height,canvas:u,emitter:t,svg:s}),t.clean=function(){n&&document.body.removeChild(n)}},l)}var o=TX.getRedrawFunc(n);return eCe.call("_doPlot",n,a.data,a.layout,a.config).then(o).then(i).catch(function(l){t.emit("error",l)}),t}AX.exports=iCe});var qX=z((YKe,SX)=>{"use strict";var kX=ts(),oCe={getDelay:kX.getDelay,getRedrawFunc:kX.getRedrawFunc,clone:d9(),toSVG:ag(),svgToImg:ng(),toImage:MX(),downloadImage:Iw()};SX.exports=oCe});var CX=z(ls=>{"use strict";ls.version=Jv().version;ZS();RP();var lCe=Ar(),t2=ls.register=lCe.register,m9=WU(),LX=Object.keys(m9);for(t3=0;t3{"use strict";DX.exports=CX()});var zf=z((WKe,NX)=>{"use strict";var va=Qi(),PX=Fo().axisHoverFormat,{hovertemplateAttrs:sCe,texttemplateAttrs:uCe,templatefallbackAttrs:RX}=gi(),zX=fl(),fCe=Ia(),FX=(Id(),Ne(Nd)),cCe=Ui().pattern,Ff=St().extendFlat,y9=fCe({editType:"calc",arrayOk:!0,colorEditType:"style"}),vCe=va.marker,hCe=vCe.line,dCe=Ff({},hCe.width,{dflt:0}),pCe=Ff({width:dCe,editType:"calc"},zX("marker.line")),mCe=Ff({line:pCe,editType:"calc"},zX("marker"),{opacity:{valType:"number",arrayOk:!0,dflt:1,min:0,max:1,editType:"style"},pattern:cCe,cornerradius:{valType:"any",editType:"calc"}});NX.exports={x:va.x,x0:va.x0,dx:va.dx,y:va.y,y0:va.y0,dy:va.dy,xperiod:va.xperiod,yperiod:va.yperiod,xperiod0:va.xperiod0,yperiod0:va.yperiod0,xperiodalignment:va.xperiodalignment,yperiodalignment:va.yperiodalignment,xhoverformat:PX("x"),yhoverformat:PX("y"),text:va.text,texttemplate:uCe({editType:"plot"},{keys:FX.eventDataKeys}),texttemplatefallback:RX({editType:"plot"}),hovertext:va.hovertext,hovertemplate:sCe({},{keys:FX.eventDataKeys}),hovertemplatefallback:RX(),textposition:{valType:"enumerated",values:["inside","outside","auto","none"],dflt:"auto",arrayOk:!0,editType:"calc"},insidetextanchor:{valType:"enumerated",values:["end","middle","start"],dflt:"end",editType:"plot"},textangle:{valType:"angle",dflt:"auto",editType:"plot"},textfont:Ff({},y9,{}),insidetextfont:Ff({},y9,{}),outsidetextfont:Ff({},y9,{}),constraintext:{valType:"enumerated",values:["inside","outside","both","none"],dflt:"both",editType:"calc"},cliponaxis:Ff({},va.cliponaxis,{}),orientation:{valType:"enumerated",values:["v","h"],editType:"calc+clearAxisTypes"},base:{valType:"any",dflt:null,arrayOk:!0,editType:"calc"},offset:{valType:"number",dflt:null,arrayOk:!0,editType:"calc"},width:{valType:"number",dflt:null,min:0,arrayOk:!0,editType:"calc"},marker:mCe,offsetgroup:va.offsetgroup,alignmentgroup:va.alignmentgroup,selected:{marker:{opacity:va.selected.marker.opacity,color:va.selected.marker.color,editType:"style"},textfont:va.selected.textfont,editType:"style"},unselected:{marker:{opacity:va.unselected.marker.opacity,color:va.unselected.marker.color,editType:"style"},textfont:va.unselected.textfont,editType:"style"},zorder:va.zorder}});var n3=z((XKe,IX)=>{"use strict";IX.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"}}});var g9=z((ZKe,HX)=>{"use strict";var yCe=qr(),BX=xi().hasColorscale,OX=Xl(),gCe=ke().coercePattern;HX.exports=function(r,t,a,n,i){var o=a("marker.color",n),l=BX(r,"marker");l&&OX(r,t,i,a,{prefix:"marker.",cLetter:"c"}),a("marker.line.color",yCe.defaultLine),BX(r,"marker.line")&&OX(r,t,i,a,{prefix:"marker.line.",cLetter:"c"}),a("marker.line.width"),a("marker.opacity"),gCe(a,"marker.pattern",o,l),a("selected.marker.color"),a("unselected.marker.color")}});var Nf=z(($Ke,WX)=>{"use strict";var UX=Br(),Y0=ke(),GX=qr(),bCe=Ar(),xCe=Hw(),_Ce=A0(),wCe=g9(),TCe=Fd(),YX=zf(),i3=Y0.coerceFont;function ACe(e,r,t,a){function n(u,f){return Y0.coerce(e,r,YX,u,f)}var i=xCe(e,r,a,n);if(!i){r.visible=!1;return}_Ce(e,r,a,n),n("xhoverformat"),n("yhoverformat"),n("zorder"),n("orientation",r.x&&!r.y?"h":"v"),n("base"),n("offset"),n("width"),n("text"),n("hovertext"),n("hovertemplate"),n("hovertemplatefallback");var o=n("textposition");jX(e,r,a,n,o,{moduleHasSelected:!0,moduleHasUnselected:!0,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),wCe(e,r,n,t,a);var l=(r.marker.line||{}).color,s=bCe.getComponentMethod("errorbars","supplyDefaults");s(e,r,l||GX.defaultLine,{axis:"y"}),s(e,r,l||GX.defaultLine,{axis:"x",inherit:"y"}),Y0.coerceSelectionMarkerOpacity(r,n)}function MCe(e,r){var t,a;function n(l,s){return Y0.coerce(a._input,a,YX,l,s)}for(var i=0;i=0)return e}else if(typeof e=="string"&&(e=e.trim(),e.slice(-1)==="%"&&UX(e.slice(0,-1))&&(e=+e.slice(0,-1),e>=0)))return e+"%"}function jX(e,r,t,a,n,i){i=i||{};var o=i.moduleHasSelected!==!1,l=i.moduleHasUnselected!==!1,s=i.moduleHasConstrain!==!1,u=i.moduleHasCliponaxis!==!1,f=i.moduleHasTextangle!==!1,c=i.moduleHasInsideanchor!==!1,v=!!i.hasPathbar,d=Array.isArray(n)||n==="auto",p=d||n==="inside",m=d||n==="outside";if(p||m){var y=i3(a,"textfont",t.font),b=Y0.extendFlat({},y),T=e.textfont&&e.textfont.color,w=!T;if(w&&delete b.color,i3(a,"insidetextfont",b),v){var x=Y0.extendFlat({},y);w&&delete x.color,i3(a,"pathbar.textfont",x)}m&&i3(a,"outsidetextfont",y),o&&a("selected.textfont.color"),l&&a("unselected.textfont.color"),s&&a("constraintext"),u&&a("cliponaxis"),f&&a("textangle"),a("texttemplate"),a("texttemplatefallback")}p&&c&&a("insidetextanchor")}WX.exports={supplyDefaults:ACe,crossTraceDefaults:MCe,handleText:jX,validateCornerradius:VX}});var b9=z((JKe,XX)=>{"use strict";var kCe=Ar(),SCe=jr(),qCe=ke(),LCe=n3(),CCe=Nf().validateCornerradius;XX.exports=function(e,r,t){function a(m,y){return qCe.coerce(e,r,LCe,m,y)}for(var n=!1,i=!1,o=!1,l={},s=a("barmode"),u=s==="group",f=0;f0&&!l[v]&&(o=!0),l[v]=!0),c.visible&&c.type==="histogram"){var d=SCe.getFromId({_fullLayout:r},c[c.orientation==="v"?"xaxis":"yaxis"]);d.type!=="category"&&(i=!0)}}if(!n){delete r.barmode;return}s!=="overlay"&&a("barnorm"),a("bargap",i&&!o?0:.2),a("bargroupgap");var p=a("barcornerradius");r.barcornerradius=CCe(p)}});var o3=z((KKe,ZX)=>{"use strict";var V0=ke();ZX.exports=function(r,t){for(var a=0;a{"use strict";var $X=jr(),JX=k0(),KX=xi().hasColorscale,QX=e0(),DCe=o3(),ECe=hg();eZ.exports=function(r,t){var a=$X.getFromId(r,t.xaxis||"x"),n=$X.getFromId(r,t.yaxis||"y"),i,o,l,s,u,f,c={msUTC:!!(t.base||t.base===0)};t.orientation==="h"?(i=a.makeCalcdata(t,"x",c),l=n.makeCalcdata(t,"y"),s=JX(t,n,"y",l),u=!!t.yperiodalignment,f="y"):(i=n.makeCalcdata(t,"y",c),l=a.makeCalcdata(t,"x"),s=JX(t,a,"x",l),u=!!t.xperiodalignment,f="x"),o=s.vals;for(var v=Math.min(o.length,i.length),d=new Array(v),p=0;p{"use strict";var PCe=Pr(),RCe=ke();function FCe(e,r,t){var a=e._fullLayout,n=a["_"+t+"Text_minsize"];if(n){var i=a.uniformtext.mode==="hide",o;switch(t){case"funnelarea":case"pie":case"sunburst":o="g.slice";break;case"treemap":case"icicle":o="g.slice, g.pathbar";break;default:o="g.points > g.point"}r.selectAll(o).each(function(l){var s=l.transform;if(s){s.scale=i&&s.hide?0:n/s.fontSize;var u=PCe.select(this).select("text");RCe.setTransormAndDisplay(u,s)}})}}function zCe(e,r,t){if(t.uniformtext.mode){var a=tZ(e),n=t.uniformtext.minsize,i=r.scale*r.fontSize;r.hide=i{"use strict";var ICe=qr(),BCe=Br(),nZ=ke().isArrayOrTypedArray;If.coerceString=function(e,r,t){if(typeof r=="string"){if(r||!e.noBlank)return r}else if((typeof r=="number"||r===!0)&&!e.strict)return String(r);return t!==void 0?t:e.dflt};If.coerceNumber=function(e,r,t){if(BCe(r)){r=+r;var a=e.min,n=e.max,i=a!==void 0&&rn;if(!i)return r}return t!==void 0?t:e.dflt};If.coerceColor=function(e,r,t){return ICe.isValid(r)?r:t!==void 0?t:e.dflt};If.coerceEnumerated=function(e,r,t){return e.coerceNumber&&(r=+r),e.values.indexOf(r)!==-1?r:t!==void 0?t:e.dflt};If.getValue=function(e,r){var t;return nZ(e)?r{"use strict";var n2=Pr(),OCe=qr(),i2=et(),iZ=ke(),oZ=Ar(),lZ=a2().resizeText,x9=zf(),HCe=x9.textfont,UCe=x9.insidetextfont,GCe=x9.outsidetextfont,vn=l3();function YCe(e){var r=n2.select(e).selectAll('g[class^="barlayer"]').selectAll("g.trace");lZ(e,r,"bar");var t=r.size(),a=e._fullLayout;r.style("opacity",function(n){return n[0].trace.opacity}).each(function(n){(a.barmode==="stack"&&t>1||a.bargap===0&&a.bargroupgap===0&&!n[0].trace.marker.line.width)&&n2.select(this).attr("shape-rendering","crispEdges")}),r.selectAll("g.points").each(function(n){var i=n2.select(this),o=n[0].trace;sZ(i,o,e)}),oZ.getComponentMethod("errorbars","style")(r)}function sZ(e,r,t){i2.pointStyle(e.selectAll("path"),r,t),uZ(e,r,t)}function uZ(e,r,t){e.selectAll("text").each(function(a){var n=n2.select(this),i=iZ.ensureUniformFontSize(t,fZ(n,a,r,t));i2.font(n,i)})}function VCe(e,r,t){var a=r[0].trace;a.selectedpoints?jCe(t,a,e):(sZ(t,a,e),oZ.getComponentMethod("errorbars","style")(t))}function jCe(e,r,t){i2.selectedPointStyle(e.selectAll("path"),r),WCe(e.selectAll("text"),r,t)}function WCe(e,r,t){e.each(function(a){var n=n2.select(this),i;if(a.selected){i=iZ.ensureUniformFontSize(t,fZ(n,a,r,t));var o=r.selected.textfont&&r.selected.textfont.color;o&&(i.color=o),i2.font(n,i)}else i2.selectedTextStyle(n,r)})}function fZ(e,r,t,a){var n=a._fullLayout.font,i=t.textfont;if(e.classed("bartext-inside")){var o=dZ(r,t);i=vZ(t,r.i,n,o)}else e.classed("bartext-outside")&&(i=hZ(t,r.i,n));return i}function cZ(e,r,t){return _9(HCe,e.textfont,r,t)}function vZ(e,r,t,a){var n=cZ(e,r,t),i=e._input.textfont===void 0||e._input.textfont.color===void 0||Array.isArray(e.textfont.color)&&e.textfont.color[r]===void 0;return i&&(n={color:OCe.contrast(a),family:n.family,size:n.size,weight:n.weight,style:n.style,variant:n.variant,textcase:n.textcase,lineposition:n.lineposition,shadow:n.shadow}),_9(UCe,e.insidetextfont,r,n)}function hZ(e,r,t){var a=cZ(e,r,t);return _9(GCe,e.outsidetextfont,r,a)}function _9(e,r,t,a){r=r||{};var n=vn.getValue(r.family,t),i=vn.getValue(r.size,t),o=vn.getValue(r.color,t),l=vn.getValue(r.weight,t),s=vn.getValue(r.style,t),u=vn.getValue(r.variant,t),f=vn.getValue(r.textcase,t),c=vn.getValue(r.lineposition,t),v=vn.getValue(r.shadow,t);return{family:vn.coerceString(e.family,n,a.family),size:vn.coerceNumber(e.size,i,a.size),color:vn.coerceColor(e.color,o,a.color),weight:vn.coerceString(e.weight,l,a.weight),style:vn.coerceString(e.style,s,a.style),variant:vn.coerceString(e.variant,u,a.variant),textcase:vn.coerceString(e.variant,f,a.textcase),lineposition:vn.coerceString(e.variant,c,a.lineposition),shadow:vn.coerceString(e.variant,v,a.shadow)}}function dZ(e,r){return r.type==="waterfall"?r[e.dir].marker.color:e.mcc||e.mc||r.marker.color}pZ.exports={style:YCe,styleTextPoints:uZ,styleOnSelect:VCe,getInsideTextFont:vZ,getOutsideTextFont:hZ,getBarColor:dZ,resizeText:lZ}});var A9=z((aQe,TZ)=>{"use strict";var s3=Pr(),u3=Br(),Qa=ke(),XCe=Da(),ZCe=qr(),ou=et(),$Ce=Ar(),f3=jr().tickText,mZ=a2(),JCe=mZ.recordMinTextSize,KCe=mZ.clearMinTextSize,w9=j0(),W0=l3(),QCe=(Id(),Ne(Nd)),yZ=zf(),eDe=yZ.text,rDe=yZ.textposition,tDe=No().appendArrayPointValue,Nn=QCe.TEXTPAD;function aDe(e){return e.id}function nDe(e){if(e.ids)return aDe}function T9(e){return(e>0)-(e<0)}function $o(e,r){return e0}function oDe(e,r,t,a,n,i){var o=r.xaxis,l=r.yaxis,s=e._fullLayout,u=e._context.staticPlot;n||(n={mode:s.barmode,norm:s.barmode,gap:s.bargap,groupgap:s.bargroupgap},KCe("bar",s));var f=Qa.makeTraceGroups(a,t,"trace bars").each(function(c){var v=s3.select(this),d=c[0].trace,p=c[0].t,m=d.type==="waterfall",y=d.type==="funnel",b=d.type==="histogram",T=d.type==="bar",w=T||y,x=0;m&&d.connector.visible&&d.connector.mode==="between"&&(x=d.connector.line.width/2);var _=d.orientation==="h",k=bZ(n),M=Qa.ensureSingle(v,"g","points"),S=nDe(d),C=M.selectAll("g.point").data(Qa.identity,S);C.enter().append("g").classed("point",!0),C.exit().remove(),C.each(function(P,R){var I=s3.select(this),B=iDe(P,o,l,_),N=B[0][0],U=B[0][1],G=B[1][0],V=B[1][1],j=(_?U-N:V-G)===0;j&&w&&W0.getLineWidth(d,P)&&(j=!1),j||(j=!u3(N)||!u3(U)||!u3(G)||!u3(V)),P.isBlank=j,j&&(_?U=N:V=G),x&&!j&&(_?(N-=$o(N,U)*x,U+=$o(N,U)*x):(G-=$o(G,V)*x,V+=$o(G,V)*x));var W,Y;if(d.type==="waterfall"){if(!j){var J=d[P.dir].marker;W=J.line.width,Y=J.color}}else W=W0.getLineWidth(d,P),Y=P.mc||d.marker.color;function re(ae){var be=s3.round(W/2%1,2);return n.gap===0&&n.groupgap===0?s3.round(Math.round(ae)-be,2):ae}function le(ae,be,Ge){return Ge&&ae===be?ae:Math.abs(ae-be)>=2?re(ae):ae>be?Math.ceil(ae):Math.floor(ae)}var ne=ZCe.opacity(Y),$=ne<1||W>.01?re:le;e._context.staticPlot||(N=$(N,U,_),U=$(U,N,_),G=$(G,V,!_),V=$(V,G,!_));var ce=_?o.c2p:l.c2p,te;P.s0>0?te=P._sMax:P.s0<0?te=P._sMin:te=P.s1>0?P._sMax:P._sMin;function ge(ae,be){if(!ae)return 0;var Ge=Math.abs(_?V-G:U-N),sr=Math.abs(_?U-N:V-G),vr=$(Math.abs(ce(te,!0)-ce(0,!0))),ue=P.hasB?Math.min(Ge/2,sr/2):Math.min(Ge/2,vr),xe;if(be==="%"){var Ie=Math.min(50,ae);xe=Ge*(Ie/100)}else xe=ae;return $(Math.max(Math.min(xe,ue),0))}var se=T||b?ge(p.cornerradiusvalue,p.cornerradiusform):0,oe,Ae,Pe="M"+N+","+G+"V"+V+"H"+U+"V"+G+"Z",me=0;if(se&&P.s){var Ce=T9(P.s0)===0||T9(P.s)===T9(P.s0)?P.s1:P.s0;if(me=$(P.hasB?0:Math.abs(ce(te,!0)-ce(Ce,!0))),me0?Math.sqrt(me*(2*se-me)):0,Ue=Me>0?Math.max:Math.min;oe="M"+N+","+G+"V"+(V-Ee*Le)+"H"+Ue(U-(se-me)*Me,N)+"A "+se+","+se+" 0 0 "+Se+" "+U+","+(V-se*Le-qe)+"V"+(G+se*Le+qe)+"A "+se+","+se+" 0 0 "+Se+" "+Ue(U-(se-me)*Me,N)+","+(G+Ee*Le)+"Z"}else if(P.hasB)oe="M"+(N+se*Me)+","+G+"A "+se+","+se+" 0 0 "+Se+" "+N+","+(G+se*Le)+"V"+(V-se*Le)+"A "+se+","+se+" 0 0 "+Se+" "+(N+se*Me)+","+V+"H"+(U-se*Me)+"A "+se+","+se+" 0 0 "+Se+" "+U+","+(V-se*Le)+"V"+(G+se*Le)+"A "+se+","+se+" 0 0 "+Se+" "+(U-se*Me)+","+G+"Z";else{Ae=Math.abs(V-G)+me;var Je=Ae0?Math.sqrt(me*(2*se-me)):0,De=Le>0?Math.max:Math.min;oe="M"+(N+Je*Me)+","+G+"V"+De(V-(se-me)*Le,G)+"A "+se+","+se+" 0 0 "+Se+" "+(N+se*Me-Ke)+","+V+"H"+(U-se*Me+Ke)+"A "+se+","+se+" 0 0 "+Se+" "+(U-Je*Me)+","+De(V-(se-me)*Le,G)+"V"+G+"Z"}}else oe=Pe}else oe=Pe;var Be=gZ(Qa.ensureSingle(I,"path"),s,n,i);if(Be.style("vector-effect",u?"none":"non-scaling-stroke").attr("d",isNaN((U-N)*(V-G))||j&&e._context.staticPlot?"M0,0Z":oe).call(ou.setClipUrl,r.layerClipId,e),!s.uniformtext.mode&&k){var er=ou.makePointStyleFns(d);ou.singlePointStyle(P,Be,d,er,e)}lDe(e,r,I,c,R,N,U,G,V,se,me,n,i),r.layerClipId&&ou.hideOutsideRangePoint(P,I.select("text"),o,l,d.xcalendar,d.ycalendar)});var E=d.cliponaxis===!1;ou.setClipUrl(v,E?null:r.layerClipId,e)});$Ce.getComponentMethod("errorbars","plot")(e,f,r,n)}function lDe(e,r,t,a,n,i,o,l,s,u,f,c,v){var d=r.xaxis,p=r.yaxis,m=e._fullLayout,y;function b(Pe,me,Ce){var Me=Qa.ensureSingle(Pe,"text").text(me).attr({class:"bartext bartext-"+y,"text-anchor":"middle","data-notex":1}).call(ou.font,Ce).call(XCe.convertToTspans,e);return Me}var T=a[0].trace,w=T.orientation==="h",x=vDe(a,w,d,p),_=fDe(m,a,n,d,p);y=cDe(T,n);var k=c.mode==="stack"||c.mode==="relative",M=a[n],S=!k||M._outmost,C=M.hasB,E=u&&u-f>Nn;if(!_||y==="none"||(M.isBlank||i===o||l===s)&&(y==="auto"||y==="inside")){t.select("text").remove();return}var P=m.font,R=w9.getBarColor(a[n],T),I=w9.getInsideTextFont(T,n,P,R),B=w9.getOutsideTextFont(T,n,P),N=T.insidetextanchor||"end",U=t.datum();w?d.type==="log"&&U.s0<=0&&(d.range[0]0&&le>0,ce;E?C?ce=Bf(j-2*u,W,re,le,w)||Bf(j,W-2*u,re,le,w):w?ce=Bf(j-(u-f),W,re,le,w)||Bf(j,W-2*(u-f),re,le,w):ce=Bf(j,W-(u-f),re,le,w)||Bf(j-2*(u-f),W,re,le,w):ce=Bf(j,W,re,le,w),$&&ce?y="inside":(y="outside",Y.remove(),Y=null)}else y="inside";if(!Y){ne=Qa.ensureUniformFontSize(e,y==="outside"?B:I),Y=b(t,_,ne);var te=Y.attr("transform");if(Y.attr("transform",""),J=ou.bBox(Y.node()),re=J.width,le=J.height,Y.attr("transform",te),re<=0||le<=0){Y.remove();return}}var ge=T.textangle,se,oe;y==="outside"?(oe=T.constraintext==="both"||T.constraintext==="outside",se=uDe(i,o,l,s,J,{isHorizontal:w,constrained:oe,angle:ge,zeroBarDir:x})):(oe=T.constraintext==="both"||T.constraintext==="inside",se=wZ(i,o,l,s,J,{isHorizontal:w,constrained:oe,angle:ge,anchor:N,hasB:C,r:u,overhead:f})),se.fontSize=ne.size,JCe(T.type==="histogram"?"bar":T.type,se,m),M.transform=se;var Ae=gZ(Y,m,c,v);Qa.setTransormAndDisplay(Ae,se)}function Bf(e,r,t,a,n){if(e<0||r<0)return!1;var i=t<=e&&a<=r,o=t<=r&&a<=e,l=n?e>=t*(r/a):r>=a*(e/t);return i||o||l}function xZ(e){return e==="auto"?0:e}function _Z(e,r){var t=Math.PI/180*r,a=Math.abs(Math.sin(t)),n=Math.abs(Math.cos(t));return{x:e.width*n+e.height*a,y:e.width*a+e.height*n}}function wZ(e,r,t,a,n,i){var o=!!i.isHorizontal,l=!!i.constrained,s=i.angle||0,u=i.anchor,f=u==="end",c=u==="start",v=i.leftToRight||0,d=(v+1)/2,p=1-d,m=i.hasB,y=i.r,b=i.overhead,T=n.width,w=n.height,x=Math.abs(r-e),_=Math.abs(a-t),k=x>2*Nn&&_>2*Nn?Nn:0;x-=2*k,_-=2*k;var M=xZ(s);s==="auto"&&!(T<=x&&w<=_)&&(T>x||w>_)&&(!(T>_||w>x)||TNn){var P=sDe(e,r,t,a,S,y,b,o,m);C=P.scale,E=P.pad}else C=1,l&&(C=Math.min(1,x/S.x,_/S.y)),E=0;var R=n.left*p+n.right*d,I=(n.top+n.bottom)/2,B=(e+Nn)*p+(r-Nn)*d,N=(t+a)/2,U=0,G=0;if(c||f){var V=(o?S.x:S.y)/2;y&&(f||m)&&(k+=E);var j=o?$o(e,r):$o(t,a);o?c?(B=e+j*k,U=-j*V):(B=r-j*k,U=j*V):c?(N=t+j*k,G=-j*V):(N=a-j*k,G=j*V)}return{textX:R,textY:I,targetX:B,targetY:N,anchorX:U,anchorY:G,scale:C,rotate:M}}function sDe(e,r,t,a,n,i,o,l,s){var u=Math.max(0,Math.abs(r-e)-2*Nn),f=Math.max(0,Math.abs(a-t)-2*Nn),c=i-Nn,v=o?c-Math.sqrt(c*c-(c-o)*(c-o)):c,d=s?c*2:l?c-o:2*v,p=s?c*2:l?2*v:c-o,m,y,b,T,w;return n.y/n.x>=f/(u-d)?T=f/n.y:n.y/n.x<=(f-p)/u?T=u/n.x:!s&&l?(m=n.x*n.x+n.y*n.y/4,y=-2*n.x*(u-c)-n.y*(f/2-c),b=(u-c)*(u-c)+(f/2-c)*(f/2-c)-c*c,T=(-y+Math.sqrt(y*y-4*m*b))/(2*m)):s?(m=(n.x*n.x+n.y*n.y)/4,y=-n.x*(u/2-c)-n.y*(f/2-c),b=(u/2-c)*(u/2-c)+(f/2-c)*(f/2-c)-c*c,T=(-y+Math.sqrt(y*y-4*m*b))/(2*m)):(m=n.x*n.x/4+n.y*n.y,y=-n.x*(u/2-c)-2*n.y*(f-c),b=(u/2-c)*(u/2-c)+(f-c)*(f-c)-c*c,T=(-y+Math.sqrt(y*y-4*m*b))/(2*m)),T=Math.min(1,T),l?w=Math.max(0,c-Math.sqrt(Math.max(0,c*c-(c-(f-n.y*T)/2)*(c-(f-n.y*T)/2)))-o):w=Math.max(0,c-Math.sqrt(Math.max(0,c*c-(c-(u-n.x*T)/2)*(c-(u-n.x*T)/2)))-o),{scale:T,pad:w}}function uDe(e,r,t,a,n,i){var o=!!i.isHorizontal,l=!!i.constrained,s=i.angle||0,u=n.width,f=n.height,c=Math.abs(r-e),v=Math.abs(a-t),d;o?d=v>2*Nn?Nn:0:d=c>2*Nn?Nn:0;var p=1;l&&(p=o?Math.min(1,v/f):Math.min(1,c/u));var m=xZ(s),y=_Z(n,m),b=(o?y.x:y.y)/2,T=(n.left+n.right)/2,w=(n.top+n.bottom)/2,x=(e+r)/2,_=(t+a)/2,k=0,M=0,S;return(o?e===r:t===a)&&i.zeroBarDir?S=i.zeroBarDir:S=o?$o(r,e):$o(t,a),o?(x=r-S*d,k=S*b):(_=a+S*d,M=-S*b),{textX:T,textY:w,targetX:x,targetY:_,anchorX:k,anchorY:M,scale:p,rotate:m}}function fDe(e,r,t,a,n){var i=r[0].trace,o=i.texttemplate,l;return o?l=hDe(e,r,t,a,n):i.textinfo?l=dDe(r,t,a,n):l=W0.getValue(i.text,t),W0.coerceString(eDe,l)}function cDe(e,r){var t=W0.getValue(e.textposition,r);return W0.coerceEnumerated(rDe,t)}function vDe(e,r,t,a){for(var n=!1,i=!1,o=0;o0?n=!0:l<0&&(i=!0),n&&i)return 0}var s=r?t:a,u=-$o(s.range[0],s.range[1]);return i?n?0:-u:u}function hDe(e,r,t,a,n){var i=r[0].trace,o=Qa.castOption(i,t,"texttemplate");if(!o)return"";var l=i.type==="histogram",s=i.type==="waterfall",u=i.type==="funnel",f=i.orientation==="h",c,v,d,p;f?(c="y",v=n,d="x",p=a):(c="x",v=a,d="y",p=n);function m(k){return f3(v,v.c2l(k),!0).text}function y(k){return f3(p,p.c2l(k),!0).text}var b=r[t],T={};T.label=b.p,T.labelLabel=T[c+"Label"]=m(b.p);var w=Qa.castOption(i,b.i,"text");(w===0||w)&&(T.text=w),T.value=b.s,T.valueLabel=T[d+"Label"]=y(b.s);var x={};tDe(x,i,b.i),(l||x.x===void 0)&&(x.x=f?T.value:T.label),(l||x.y===void 0)&&(x.y=f?T.label:T.value),(l||x.xLabel===void 0)&&(x.xLabel=f?T.valueLabel:T.labelLabel),(l||x.yLabel===void 0)&&(x.yLabel=f?T.labelLabel:T.valueLabel),s&&(T.delta=+b.rawS||b.s,T.deltaLabel=y(T.delta),T.final=b.v,T.finalLabel=y(T.final),T.initial=T.final-T.delta,T.initialLabel=y(T.initial)),u&&(T.value=b.s,T.valueLabel=y(T.value),T.percentInitial=b.begR,T.percentInitialLabel=Qa.formatPercent(b.begR),T.percentPrevious=b.difR,T.percentPreviousLabel=Qa.formatPercent(b.difR),T.percentTotal=b.sumR,T.percentTotalLabel=Qa.formatPercent(b.sumR));var _=Qa.castOption(i,b.i,"customdata");return _&&(T.customdata=_),Qa.texttemplateString({data:[x,T,i._meta],fallback:i.texttemplatefallback,labels:T,locale:e._d3locale,template:o})}function dDe(e,r,t,a){var n=e[0].trace,i=n.orientation==="h",o=n.type==="waterfall",l=n.type==="funnel";function s(_){var k=i?a:t;return f3(k,_,!0).text}function u(_){var k=i?t:a;return f3(k,+_,!0).text}var f=n.textinfo,c=e[r],v=f.split("+"),d=[],p,m=function(_){return v.indexOf(_)!==-1};if(m("label")&&d.push(s(e[r].p)),m("text")&&(p=Qa.castOption(n,c.i,"text"),(p===0||p)&&d.push(p)),o){var y=+c.rawS||c.s,b=c.v,T=b-y;m("initial")&&d.push(u(T)),m("delta")&&d.push(u(y)),m("final")&&d.push(u(b))}if(l){m("value")&&d.push(u(c.s));var w=0;m("percent initial")&&w++,m("percent previous")&&w++,m("percent total")&&w++;var x=w>1;m("percent initial")&&(p=Qa.formatPercent(c.begR),x&&(p+=" of initial"),d.push(p)),m("percent previous")&&(p=Qa.formatPercent(c.difR),x&&(p+=" of previous"),d.push(p)),m("percent total")&&(p=Qa.formatPercent(c.sumR),x&&(p+=" of total"),d.push(p))}return d.join("
")}TZ.exports={plot:oDe,toMoveInsideBar:wZ}});var k9=z((nQe,SZ)=>{"use strict";var o2=Yn(),pDe=Ar(),AZ=qr(),mDe=ke().fillText,yDe=l3().getLineWidth,M9=jr().hoverLabelText,gDe=(Kt(),Ne(aa)).BADNUM;function bDe(e,r,t,a,n){var i=MZ(e,r,t,a,n);if(i){var o=i.cd,l=o[0].trace,s=o[i.index];return i.color=kZ(l,s),pDe.getComponentMethod("errorbars","hoverInfo")(s,l,i),[i]}}function MZ(e,r,t,a,n){var i=e.cd,o=i[0].trace,l=i[0].t,s=a==="closest",u=o.type==="waterfall",f=e.maxHoverDistance,c=e.maxSpikeDistance,v,d,p,m,y,b,T;o.orientation==="h"?(v=t,d=r,p="y",m="x",y=N,b=R):(v=r,d=t,p="x",m="y",b=N,y=R);var w=o[p+"period"],x=s||w;function _($){return M($,-1)}function k($){return M($,1)}function M($,ce){var te=$.w;return $[p]+ce*te/2}function S($){return $[p+"End"]-$[p+"Start"]}var C=s?_:w?function($){return $.p-S($)/2}:function($){return Math.min(_($),$.p-l.bardelta/2)},E=s?k:w?function($){return $.p+S($)/2}:function($){return Math.max(k($),$.p+l.bardelta/2)};function P($,ce,te){return n.finiteRange&&(te=0),o2.inbox($-v,ce-v,te+Math.min(1,Math.abs(ce-$)/T)-1)}function R($){return P(C($),E($),f)}function I($){return P(_($),k($),c)}function B($){var ce=$[m];if(u){var te=Math.abs($.rawS)||0;d>0?ce+=te:d<0&&(ce-=te)}return ce}function N($){var ce=d,te=$.b,ge=B($);return o2.inbox(te-ce,ge-ce,f+(ge-ce)/(ge-te)-1)}function U($){var ce=d,te=$.b,ge=B($);return o2.inbox(te-ce,ge-ce,c+(ge-ce)/(ge-te)-1)}var G=e[p+"a"],V=e[m+"a"];T=Math.abs(G.r2c(G.range[1])-G.r2c(G.range[0]));function j($){return(y($)+b($))/2}var W=o2.getDistanceFunction(a,y,b,j);if(o2.getClosest(i,W,e),e.index!==!1&&i[e.index].p!==gDe){x||(C=function($){return Math.min(_($),$.p-l.bargroupwidth/2)},E=function($){return Math.max(k($),$.p+l.bargroupwidth/2)});var Y=e.index,J=i[Y],re=o.base?J.b+J.s:J.s;e[m+"0"]=e[m+"1"]=V.c2p(J[m],!0),e[m+"LabelVal"]=re;var le=l.extents[l.extents.round(J.p)];e[p+"0"]=G.c2p(s?C(J):le[0],!0),e[p+"1"]=G.c2p(s?E(J):le[1],!0);var ne=J.orig_p!==void 0;return e[p+"LabelVal"]=ne?J.orig_p:J.p,e.labelLabel=M9(G,e[p+"LabelVal"],o[p+"hoverformat"]),e.valueLabel=M9(V,e[m+"LabelVal"],o[m+"hoverformat"]),e.baseLabel=M9(V,J.b,o[m+"hoverformat"]),e.spikeDistance=(U(J)+I(J))/2,e[p+"Spike"]=G.c2p(J.p,!0),mDe(J,o,e),e.hovertemplate=o.hovertemplate,e}}function kZ(e,r){var t=r.mcc||e.marker.color,a=r.mlcc||e.marker.line.color,n=yDe(e,r);if(AZ.opacity(t))return t;if(AZ.opacity(a)&&n)return a}SZ.exports={hoverPoints:bDe,hoverOnBars:MZ,getTraceColor:kZ}});var LZ=z((iQe,qZ)=>{"use strict";qZ.exports=function(r,t,a){return r.x="xVal"in t?t.xVal:t.x,r.y="yVal"in t?t.yVal:t.y,t.xa&&(r.xaxis=t.xa),t.ya&&(r.yaxis=t.ya),a.orientation==="h"?(r.label=r.y,r.value=r.x):(r.label=r.x,r.value=r.y),r}});var S9=z((oQe,CZ)=>{"use strict";CZ.exports=function(r,t){var a=r.cd,n=r.xaxis,i=r.yaxis,o=a[0].trace,l=o.type==="funnel",s=o.orientation==="h",u=[],f;if(t===!1)for(f=0;f{"use strict";DZ.exports={attributes:zf(),layoutAttributes:n3(),supplyDefaults:Nf().supplyDefaults,crossTraceDefaults:Nf().crossTraceDefaults,supplyLayoutDefaults:b9(),calc:rZ(),crossTraceCalc:yg().crossTraceCalc,colorbar:Ud(),arraysToCalcdata:o3(),plot:A9().plot,style:j0().style,styleOnSelect:j0().styleOnSelect,hoverPoints:k9().hoverPoints,eventData:LZ(),selectPoints:S9(),moduleType:"trace",name:"bar",basePlotModule:lo(),categories:["bar-like","cartesian","svg","bar","oriented","errorBarsOK","showLegend","zoomScale"],animatable:!0,meta:{}}});var RZ=z((sQe,PZ)=>{"use strict";PZ.exports=EZ()});var c3=z((uQe,IZ)=>{"use strict";var _De=zy(),fo=Qi(),FZ=zf(),wDe=Hi(),zZ=Fo().axisHoverFormat,{hovertemplateAttrs:TDe,templatefallbackAttrs:ADe}=gi(),ss=St().extendFlat,X0=fo.marker,NZ=X0.line;IZ.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:fo.xperiod,yperiod:fo.yperiod,xperiod0:fo.xperiod0,yperiod0:fo.yperiod0,xperiodalignment:fo.xperiodalignment,yperiodalignment:fo.yperiodalignment,xhoverformat:zZ("x"),yhoverformat:zZ("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:ss({},X0.symbol,{arrayOk:!1,editType:"plot"}),opacity:ss({},X0.opacity,{arrayOk:!1,dflt:1,editType:"style"}),angle:ss({},X0.angle,{arrayOk:!1,editType:"calc"}),size:ss({},X0.size,{arrayOk:!1,editType:"calc"}),color:ss({},X0.color,{arrayOk:!1,editType:"style"}),line:{color:ss({},NZ.color,{arrayOk:!1,dflt:wDe.defaultLine,editType:"style"}),width:ss({},NZ.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:_De(),whiskerwidth:{valType:"number",min:0,max:1,dflt:.5,editType:"calc"},showwhiskers:{valType:"boolean",editType:"calc"},offsetgroup:FZ.offsetgroup,alignmentgroup:FZ.alignmentgroup,selected:{marker:fo.selected.marker,editType:"style"},unselected:{marker:fo.unselected.marker,editType:"style"},text:ss({},fo.text,{}),hovertext:ss({},fo.hovertext,{}),hovertemplate:TDe({}),hovertemplatefallback:ADe(),hoveron:{valType:"flaglist",flags:["boxes","points"],dflt:"boxes+points",editType:"style"},zorder:fo.zorder}});var v3=z((fQe,BZ)=>{"use strict";BZ.exports={boxmode:{valType:"enumerated",values:["group","overlay"],dflt:"overlay",editType:"calc"},boxgap:{valType:"number",min:0,max:1,dflt:.3,editType:"calc"},boxgroupgap:{valType:"number",min:0,max:1,dflt:.3,editType:"calc"}}});var s2=z((cQe,GZ)=>{"use strict";var co=ke(),MDe=Ar(),kDe=qr(),SDe=A0(),qDe=Fd(),OZ=Am(),l2=c3();function LDe(e,r,t,a){function n(p,m){return co.coerce(e,r,l2,p,m)}if(HZ(e,r,n,a),r.visible!==!1){SDe(e,r,a,n),n("xhoverformat"),n("yhoverformat");var i=r._hasPreCompStats;i&&(n("lowerfence"),n("upperfence")),n("line.color",(e.marker||{}).color||t),n("line.width"),n("fillcolor",kDe.addOpacity(r.line.color,.5));var o=!1;if(i){var l=n("mean"),s=n("sd");l&&l.length&&(o=!0,s&&s.length&&(o="sd"))}n("whiskerwidth");var u=n("sizemode"),f;u==="quartiles"&&(f=n("boxmean",o)),n("showwhiskers",u==="quartiles"),(u==="sd"||f==="sd")&&n("sdmultiple"),n("width"),n("quartilemethod");var c=!1;if(i){var v=n("notchspan");v&&v.length&&(c=!0)}else co.validate(e.notchwidth,l2.notchwidth)&&(c=!0);var d=n("notched",c);d&&n("notchwidth"),UZ(e,r,n,{prefix:"box"}),n("zorder")}}function HZ(e,r,t,a){function n(E){var P=0;return E&&E.length&&(P+=1,co.isArrayOrTypedArray(E[0])&&E[0].length&&(P+=1)),P}function i(E){return co.validate(e[E],l2[E])}var o=t("y"),l=t("x"),s;if(r.type==="box"){var u=t("q1"),f=t("median"),c=t("q3");r._hasPreCompStats=u&&u.length&&f&&f.length&&c&&c.length,s=Math.min(co.minRowLength(u),co.minRowLength(f),co.minRowLength(c))}else r._hasPreCompStats=!1;var v=n(o),d=n(l),p=v&&co.minRowLength(o),m=d&&co.minRowLength(l),y=a.calendar,b={autotypenumbers:a.autotypenumbers},T,w;if(r._hasPreCompStats)switch(String(d)+String(v)){case"00":var x=i("x0")||i("dx"),_=i("y0")||i("dy");_&&!x?T="h":T="v",w=s;break;case"10":T="v",w=Math.min(s,m);break;case"20":T="h",w=Math.min(s,l.length);break;case"01":T="h",w=Math.min(s,p);break;case"02":T="v",w=Math.min(s,o.length);break;case"12":T="v",w=Math.min(s,m,o.length);break;case"21":T="h",w=Math.min(s,l.length,p);break;case"11":w=0;break;case"22":var k=!1,M;for(M=0;M0?(T="v",d>0?w=Math.min(m,p):w=Math.min(p)):d>0?(T="h",w=Math.min(m)):w=0;if(!w){r.visible=!1;return}r._length=w;var S=t("orientation",T);r._hasPreCompStats?S==="v"&&d===0?(t("x0",0),t("dx",1)):S==="h"&&v===0&&(t("y0",0),t("dy",1)):S==="v"&&d===0?t("x0"):S==="h"&&v===0&&t("y0");var C=MDe.getComponentMethod("calendars","handleTraceDefaults");C(e,r,["x","y"],a)}function UZ(e,r,t,a){var n=a.prefix,i=co.coerce2(e,r,l2,"marker.outliercolor"),o=t("marker.line.outliercolor"),l="outliers";r._hasPreCompStats?l="all":(i||o)&&(l="suspectedoutliers");var s=t(n+"points",l);s?(t("jitter",s==="all"?.3:0),t("pointpos",s==="all"?-1.5:0),t("marker.symbol"),t("marker.opacity"),t("marker.size"),t("marker.angle"),t("marker.color",r.line.color),t("marker.line.color"),t("marker.line.width"),s==="suspectedoutliers"&&(t("marker.line.outliercolor",r.marker.color),t("marker.line.outlierwidth")),t("selected.marker.color"),t("unselected.marker.color"),t("selected.marker.size"),t("unselected.marker.size"),t("text"),t("hovertext")):delete r.marker;var u=t("hoveron");(u==="all"||u.indexOf("points")!==-1)&&(t("hovertemplate"),t("hovertemplatefallback")),co.coerceSelectionMarkerOpacity(r,t)}function CDe(e,r){var t,a;function n(s){return co.coerce(a._input,a,l2,s)}for(var i=0;i{"use strict";var DDe=Ar(),EDe=ke(),PDe=v3();function YZ(e,r,t,a,n){for(var i=n+"Layout",o=!1,l=0;l{"use strict";var C9=Br(),h3=jr(),FDe=k0(),ka=ke(),Ei=(Kt(),Ne(aa)).BADNUM,us=ka._;e$.exports=function(r,t){var a=r._fullLayout,n=h3.getFromId(r,t.xaxis||"x"),i=h3.getFromId(r,t.yaxis||"y"),o=[],l=t.type==="violin"?"_numViolins":"_numBoxes",s,u,f,c,v,d,p;t.orientation==="h"?(f=n,c="x",v=i,d="y",p=!!t.yperiodalignment):(f=i,c="y",v=n,d="x",p=!!t.xperiodalignment);var m=zDe(t,d,v,a[l]),y=m[0],b=m[1],T=ka.distinctVals(y,v),w=T.vals,x=T.minDiff/2,_,k,M,S,C,E,P=(t.boxpoints||t.points)==="all"?ka.identity:function(Se){return Se.v<_.lf||Se.v>_.uf};if(t._hasPreCompStats){var R=t[c],I=function(Se){return f.d2c((t[Se]||[])[s])},B=1/0,N=-1/0;for(s=0;s=_.q1&&_.q3>=_.med){var G=I("lowerfence");_.lf=G!==Ei&&G<=_.q1?G:ZZ(_,M,S);var V=I("upperfence");_.uf=V!==Ei&&V>=_.q3?V:$Z(_,M,S);var j=I("mean");_.mean=j!==Ei?j:S?ka.mean(M,S):(_.q1+_.q3)/2;var W=I("sd");_.sd=j!==Ei&&W>=0?W:S?ka.stdev(M,S,_.mean):_.q3-_.q1,_.lo=JZ(_),_.uo=KZ(_);var Y=I("notchspan");Y=Y!==Ei&&Y>0?Y:QZ(_,S),_.ln=_.med-Y,_.un=_.med+Y;var J=_.lf,re=_.uf;t.boxpoints&&M.length&&(J=Math.min(J,M[0]),re=Math.max(re,M[S-1])),t.notched&&(J=Math.min(J,_.ln),re=Math.max(re,_.un)),_.min=J,_.max=re}else{ka.warn(["Invalid input - make sure that q1 <= median <= q3","q1 = "+_.q1,"median = "+_.med,"q3 = "+_.q3].join(` +`));var le;_.med!==Ei?le=_.med:_.q1!==Ei?_.q3!==Ei?le=(_.q1+_.q3)/2:le=_.q1:_.q3!==Ei?le=_.q3:le=0,_.med=le,_.q1=_.q3=le,_.lf=_.uf=le,_.mean=_.sd=le,_.ln=_.un=le,_.min=_.max=le}B=Math.min(B,_.min),N=Math.max(N,_.max),_.pts2=k.filter(P),o.push(_)}}t._extremes[f._id]=h3.findExtremes(f,[B,N],{padded:!0})}else{var ne=f.makeCalcdata(t,c),$=NDe(w,x),ce=w.length,te=IDe(ce);for(s=0;s=0&&ge0){if(_={},_.pos=_[d]=w[s],k=_.pts=te[s].sort(WZ),M=_[c]=k.map(XZ),S=M.length,_.min=M[0],_.max=M[S-1],_.mean=ka.mean(M,S),_.sd=ka.stdev(M,S,_.mean)*t.sdmultiple,_.med=ka.interp(M,.5),S%2&&(Pe||me)){var Ce,Me;Pe?(Ce=M.slice(0,S/2),Me=M.slice(S/2+1)):me&&(Ce=M.slice(0,S/2+1),Me=M.slice(S/2)),_.q1=ka.interp(Ce,.5),_.q3=ka.interp(Me,.5)}else _.q1=ka.interp(M,.25),_.q3=ka.interp(M,.75);_.lf=ZZ(_,M,S),_.uf=$Z(_,M,S),_.lo=JZ(_),_.uo=KZ(_);var Le=QZ(_,S);_.ln=_.med-Le,_.un=_.med+Le,se=Math.min(se,_.ln),oe=Math.max(oe,_.un),_.pts2=k.filter(P),o.push(_)}t.notched&&ka.isTypedArray(ne)&&(ne=Array.from(ne)),t._extremes[f._id]=h3.findExtremes(f,t.notched?ne.concat([se,oe]):ne,{padded:!0})}return BDe(o,t),o.length>0?(o[0].t={num:a[l],dPos:x,posLetter:d,valLetter:c,labels:{med:us(r,"median:"),min:us(r,"min:"),q1:us(r,"q1:"),q3:us(r,"q3:"),max:us(r,"max:"),mean:t.boxmean==="sd"||t.sizemode==="sd"?us(r,"mean \xB1 \u03C3:").replace("\u03C3",t.sdmultiple===1?"\u03C3":t.sdmultiple+"\u03C3"):us(r,"mean:"),lf:us(r,"lower fence:"),uf:us(r,"upper fence:")}},a[l]++,o):[{t:{empty:!0}}]};function zDe(e,r,t,a){var n=r in e,i=r+"0"in e,o="d"+r in e;if(n||i&&o){var l=t.makeCalcdata(e,r),s=FDe(e,t,r,l).vals;return[s,l]}var u;i?u=e[r+"0"]:"name"in e&&(t.type==="category"||C9(e.name)&&["linear","log"].indexOf(t.type)!==-1||ka.isDateTime(e.name)&&t.type==="date")?u=e.name:u=a;for(var f=t.type==="multicategory"?t.r2c_just_indices(u):t.d2c(u,0,e[r+"calendar"]),c=e._length,v=new Array(c),d=0;d{"use strict";var r$=jr(),ODe=ke(),HDe=wf().getAxisGroup,t$=["v","h"];function UDe(e,r){for(var t=e.calcdata,a=r.xaxis,n=r.yaxis,i=0;i1,T=1-i[e+"gap"],w=1-i[e+"groupgap"];for(s=0;s0;if(M==="positive"?(V=S*(k?1:.5),Y=W,j=Y=E):M==="negative"?(V=Y=E,j=S*(k?1:.5),J=W):(V=j=S,Y=J=W),te){var ge=x.pointpos,se=x.jitter,oe=x.marker.size/2,Ae=0;ge+se>=0&&(Ae=W*(ge+se),Ae>V?(ce=!0,ne=oe,re=Ae):Ae>Y&&(ne=oe,re=V)),Ae<=V&&(re=V);var Pe=0;ge-se<=0&&(Pe=-W*(ge-se),Pe>j?(ce=!0,$=oe,le=Pe):Pe>J&&($=oe,le=j)),Pe<=j&&(le=j)}else re=V,le=j;var me=new Array(f.length);for(u=0;u{"use strict";var Z0=Pr(),Of=ke(),GDe=et(),i$=5,YDe=.01;function VDe(e,r,t,a){var n=e._context.staticPlot,i=r.xaxis,o=r.yaxis;Of.makeTraceGroups(a,t,"trace boxes").each(function(l){var s=Z0.select(this),u=l[0],f=u.t,c=u.trace;if(f.wdPos=f.bdPos*c.whiskerwidth,c.visible!==!0||f.empty){s.remove();return}var v,d;c.orientation==="h"?(v=o,d=i):(v=i,d=o),o$(s,{pos:v,val:d},c,f,n),l$(s,{x:i,y:o},c,f),s$(s,{pos:v,val:d},c,f)})}function o$(e,r,t,a,n){var i=t.orientation==="h",o=r.val,l=r.pos,s=!!l.rangebreaks,u=a.bPos,f=a.wdPos||0,c=a.bPosPxOffset||0,v=t.whiskerwidth||0,d=t.showwhiskers!==!1,p=t.notched||!1,m=p?1-2*t.notchwidth:1,y,b;Array.isArray(a.bdPos)?(y=a.bdPos[0],b=a.bdPos[1]):(y=a.bdPos,b=a.bdPos);var T=e.selectAll("path.box").data(t.type!=="violin"||t.box.visible?Of.identity:[]);T.enter().append("path").style("vector-effect",n?"none":"non-scaling-stroke").attr("class","box"),T.exit().remove(),T.each(function(w){if(w.empty)return Z0.select(this).attr("d","M0,0Z");var x=l.c2l(w.pos+u,!0),_=l.l2p(x-y)+c,k=l.l2p(x+b)+c,M=s?(_+k)/2:l.l2p(x)+c,S=t.whiskerwidth,C=s?_*S+(1-S)*M:l.l2p(x-f)+c,E=s?k*S+(1-S)*M:l.l2p(x+f)+c,P=l.l2p(x-y*m)+c,R=l.l2p(x+b*m)+c,I=t.sizemode==="sd",B=o.c2p(I?w.mean-w.sd:w.q1,!0),N=I?o.c2p(w.mean+w.sd,!0):o.c2p(w.q3,!0),U=Of.constrain(I?o.c2p(w.mean,!0):o.c2p(w.med,!0),Math.min(B,N)+1,Math.max(B,N)-1),G=w.lf===void 0||t.boxpoints===!1||I,V=o.c2p(G?w.min:w.lf,!0),j=o.c2p(G?w.max:w.uf,!0),W=o.c2p(w.ln,!0),Y=o.c2p(w.un,!0);i?Z0.select(this).attr("d","M"+U+","+P+"V"+R+"M"+B+","+_+"V"+k+(p?"H"+W+"L"+U+","+R+"L"+Y+","+k:"")+"H"+N+"V"+_+(p?"H"+Y+"L"+U+","+P+"L"+W+","+_:"")+"Z"+(d?"M"+B+","+M+"H"+V+"M"+N+","+M+"H"+j+(v===0?"":"M"+V+","+C+"V"+E+"M"+j+","+C+"V"+E):"")):Z0.select(this).attr("d","M"+P+","+U+"H"+R+"M"+_+","+B+"H"+k+(p?"V"+W+"L"+R+","+U+"L"+k+","+Y:"")+"V"+N+"H"+_+(p?"V"+Y+"L"+P+","+U+"L"+_+","+W:"")+"Z"+(d?"M"+M+","+B+"V"+V+"M"+M+","+N+"V"+j+(v===0?"":"M"+C+","+V+"H"+E+"M"+C+","+j+"H"+E):""))})}function l$(e,r,t,a){var n=r.x,i=r.y,o=a.bdPos,l=a.bPos,s=t.boxpoints||t.points;Of.seedPseudoRandom();var u=function(v){return v.forEach(function(d){d.t=a,d.trace=t}),v},f=e.selectAll("g.points").data(s?u:[]);f.enter().append("g").attr("class","points"),f.exit().remove();var c=f.selectAll("path").data(function(v){var d,p=v.pts2,m=Math.max((v.max-v.min)/10,v.q3-v.q1),y=m*1e-9,b=m*YDe,T=[],w=0,x;if(t.jitter){if(m===0)for(w=1,T=new Array(p.length),d=0;dv.lo&&(E.so=!0)}return p});c.enter().append("path").classed("point",!0),c.exit().remove(),c.call(GDe.translatePoints,n,i)}function s$(e,r,t,a){var n=r.val,i=r.pos,o=!!i.rangebreaks,l=a.bPos,s=a.bPosPxOffset||0,u=t.boxmean||(t.meanline||{}).visible,f,c;Array.isArray(a.bdPos)?(f=a.bdPos[0],c=a.bdPos[1]):(f=a.bdPos,c=a.bdPos);var v=e.selectAll("path.mean").data(t.type==="box"&&t.boxmean||t.type==="violin"&&t.box.visible&&t.meanline.visible?Of.identity:[]);v.enter().append("path").attr("class","mean").style({fill:"none","vector-effect":"non-scaling-stroke"}),v.exit().remove(),v.each(function(d){var p=i.c2l(d.pos+l,!0),m=i.l2p(p-f)+s,y=i.l2p(p+c)+s,b=o?(m+y)/2:i.l2p(p)+s,T=n.c2p(d.mean,!0),w=n.c2p(d.mean-d.sd,!0),x=n.c2p(d.mean+d.sd,!0);t.orientation==="h"?Z0.select(this).attr("d","M"+T+","+m+"V"+y+(u==="sd"?"m0,0L"+w+","+b+"L"+T+","+m+"L"+x+","+b+"Z":"")):Z0.select(this).attr("d","M"+m+","+T+"H"+y+(u==="sd"?"m0,0L"+b+","+w+"L"+m+","+T+"L"+b+","+x+"Z":""))})}u$.exports={plot:VDe,plotBoxAndWhiskers:o$,plotPoints:l$,plotBoxMean:s$}});var N9=z((mQe,f$)=>{"use strict";var R9=Pr(),F9=qr(),z9=et();function jDe(e,r,t){var a=t||R9.select(e).selectAll("g.trace.boxes");a.style("opacity",function(n){return n[0].trace.opacity}),a.each(function(n){var i=R9.select(this),o=n[0].trace,l=o.line.width;function s(c,v,d,p){c.style("stroke-width",v+"px").call(F9.stroke,d).call(F9.fill,p)}var u=i.selectAll("path.box");if(o.type==="candlestick")u.each(function(c){if(!c.empty){var v=R9.select(this),d=o[c.dir];s(v,d.line.width,d.line.color,d.fillcolor),v.style("opacity",o.selectedpoints&&!c.selected?.3:1)}});else{s(u,l,o.line.color,o.fillcolor),i.selectAll("path.mean").style({"stroke-width":l,"stroke-dasharray":2*l+"px,"+l+"px"}).call(F9.stroke,o.line.color);var f=i.selectAll("path.point");z9.pointStyle(f,o,e)}})}function WDe(e,r,t){var a=r[0].trace,n=t.selectAll("path.point");a.selectedpoints?z9.selectedPointStyle(n,a):z9.pointStyle(n,a,e)}f$.exports={style:jDe,styleOnSelect:WDe}});var B9=z((yQe,d$)=>{"use strict";var XDe=jr(),I9=ke(),lu=Yn(),c$=qr(),ZDe=I9.fillText;function $De(e,r,t,a){var n=e.cd,i=n[0].trace,o=i.hoveron,l=[],s;return o.indexOf("boxes")!==-1&&(l=l.concat(v$(e,r,t,a))),o.indexOf("points")!==-1&&(s=h$(e,r,t)),a==="closest"?s?[s]:l:(s&&l.push(s),l)}function v$(e,r,t,a){var n=e.cd,i=e.xa,o=e.ya,l=n[0].trace,s=n[0].t,u=l.type==="violin",f,c,v,d,p,m,y,b,T,w,x,_=s.bdPos,k,M,S=s.wHover,C=function(oe){return v.c2l(oe.pos)+s.bPos-v.c2l(m)};u&&l.side!=="both"?(l.side==="positive"&&(T=function(oe){var Ae=C(oe);return lu.inbox(Ae,Ae+S,w)},k=_,M=0),l.side==="negative"&&(T=function(oe){var Ae=C(oe);return lu.inbox(Ae-S,Ae,w)},k=0,M=_)):(T=function(oe){var Ae=C(oe);return lu.inbox(Ae-S,Ae+S,w)},k=M=_);var E;u?E=function(oe){return lu.inbox(oe.span[0]-p,oe.span[1]-p,w)}:E=function(oe){return lu.inbox(oe.min-p,oe.max-p,w)},l.orientation==="h"?(p=r,m=t,y=E,b=T,f="y",v=o,c="x",d=i):(p=t,m=r,y=T,b=E,f="x",v=i,c="y",d=o);var P=Math.min(1,_/Math.abs(v.r2c(v.range[1])-v.r2c(v.range[0])));w=e.maxHoverDistance-P,x=e.maxSpikeDistance-P;function R(oe){return(y(oe)+b(oe))/2}var I=lu.getDistanceFunction(a,y,b,R);if(lu.getClosest(n,I,e),e.index===!1)return[];var B=n[e.index],N=l.line.color,U=(l.marker||{}).color;c$.opacity(N)&&l.line.width?e.color=N:c$.opacity(U)&&l.boxpoints?e.color=U:e.color=l.fillcolor,e[f+"0"]=v.c2p(B.pos+s.bPos-M,!0),e[f+"1"]=v.c2p(B.pos+s.bPos+k,!0),e[f+"LabelVal"]=B.orig_p!==void 0?B.orig_p:B.pos;var G=f+"Spike";e.spikeDistance=R(B)*x/w,e[G]=v.c2p(B.pos,!0);var V=l.boxmean||l.sizemode==="sd"||(l.meanline||{}).visible,j=l.boxpoints||l.points,W=j&&V?["max","uf","q3","med","mean","q1","lf","min"]:j&&!V?["max","uf","q3","med","q1","lf","min"]:!j&&V?["max","q3","med","mean","q1","min"]:["max","q3","med","q1","min"],Y=d.range[1]{"use strict";p$.exports=function(r,t){return t.hoverOnBox&&(r.hoverOnBox=t.hoverOnBox),"xVal"in t&&(r.x=t.xVal),"yVal"in t&&(r.y=t.yVal),t.xa&&(r.xaxis=t.xa),t.ya&&(r.yaxis=t.ya),r}});var O9=z((bQe,y$)=>{"use strict";y$.exports=function(r,t){var a=r.cd,n=r.xaxis,i=r.yaxis,o=[],l,s;if(t===!1)for(l=0;l{"use strict";g$.exports={attributes:c3(),layoutAttributes:v3(),supplyDefaults:s2().supplyDefaults,crossTraceDefaults:s2().crossTraceDefaults,supplyLayoutDefaults:q9().supplyLayoutDefaults,calc:D9(),crossTraceCalc:E9().crossTraceCalc,plot:P9().plot,style:N9().style,styleOnSelect:N9().styleOnSelect,hoverPoints:B9().hoverPoints,eventData:m$(),selectPoints:O9(),moduleType:"trace",name:"box",basePlotModule:lo(),categories:["cartesian","svg","symbols","oriented","box-violin","showLegend","boxLayout","zoomScale"],meta:{}}});var _$=z((_Qe,x$)=>{"use strict";x$.exports=b$()});var u2=z((wQe,T$)=>{"use strict";var JDe=fl(),{extendFlat:fi}=St(),KDe=Gn(),{axisHoverFormat:H9}=Fo(),QDe=Ia(),{hovertemplateAttrs:eEe,templatefallbackAttrs:w$,texttemplateAttrs:rEe}=gi(),Pi=Qi();T$.exports=fi({z:{valType:"data_array",editType:"calc"},x:fi({},Pi.x,{impliedEdits:{xtype:"array"}}),x0:fi({},Pi.x0,{impliedEdits:{xtype:"scaled"}}),dx:fi({},Pi.dx,{impliedEdits:{xtype:"scaled"}}),y:fi({},Pi.y,{impliedEdits:{ytype:"array"}}),y0:fi({},Pi.y0,{impliedEdits:{ytype:"scaled"}}),dy:fi({},Pi.dy,{impliedEdits:{ytype:"scaled"}}),xperiod:fi({},Pi.xperiod,{impliedEdits:{xtype:"scaled"}}),yperiod:fi({},Pi.yperiod,{impliedEdits:{ytype:"scaled"}}),xperiod0:fi({},Pi.xperiod0,{impliedEdits:{xtype:"scaled"}}),yperiod0:fi({},Pi.yperiod0,{impliedEdits:{ytype:"scaled"}}),xperiodalignment:fi({},Pi.xperiodalignment,{impliedEdits:{xtype:"scaled"}}),yperiodalignment:fi({},Pi.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:H9("x"),yhoverformat:H9("y"),zhoverformat:H9("z",1),hovertemplate:eEe(),hovertemplatefallback:w$(),texttemplate:rEe({arrayOk:!1,editType:"plot"},{keys:["x","y","z","text"]}),texttemplatefallback:w$({editType:"plot"}),textfont:QDe({editType:"plot",autoSize:!0,autoColor:!0,colorEditType:"style"}),showlegend:fi({},KDe.showlegend,{dflt:!1}),zorder:Pi.zorder},JDe("",{cLetter:"z",autoColorDflt:!1}))});var U9=z((TQe,M$)=>{"use strict";var tEe=Br(),d3=ke(),aEe=Ar();M$.exports=function(r,t,a,n,i,o){var l=a("z");i=i||"x",o=o||"y";var s,u;if(l===void 0||!l.length)return 0;if(d3.isArray1D(l)){s=a(i),u=a(o);var f=d3.minRowLength(s),c=d3.minRowLength(u);if(f===0||c===0)return 0;t._length=Math.min(f,c,l.length)}else{if(s=A$(i,a),u=A$(o,a),!nEe(l))return 0;a("transpose"),t._length=null}var v=aEe.getComponentMethod("calendars","handleTraceDefaults");return v(r,t,[i,o],n),!0};function A$(e,r){var t=r(e),a=t?r(e+"type","array"):"scaled";return a==="scaled"&&(r(e+"0"),r("d"+e)),t}function nEe(e){for(var r=!0,t=!1,a=!1,n,i=0;i0&&(t=!0);for(var o=0;o{"use strict";var k$=ke();S$.exports=function(r,t){r("texttemplate"),r("texttemplatefallback");var a=k$.extendFlat({},t.font,{color:"auto",size:"auto"});k$.coerceFont(r,"textfont",a)}});var G9=z((MQe,q$)=>{"use strict";q$.exports=function(r,t,a){var n=a("zsmooth");n===!1&&(a("xgap"),a("ygap")),a("zhoverformat")}});var D$=z((kQe,C$)=>{"use strict";var L$=ke(),iEe=U9(),oEe=f2(),lEe=A0(),sEe=G9(),uEe=Xl(),fEe=u2();C$.exports=function(r,t,a,n){function i(l,s){return L$.coerce(r,t,fEe,l,s)}var o=iEe(r,t,i,n);if(!o){t.visible=!1;return}lEe(r,t,n,i),i("xhoverformat"),i("yhoverformat"),i("text"),i("hovertext"),i("hovertemplate"),i("hovertemplatefallback"),oEe(i,n),sEe(r,t,i,n),i("hoverongaps"),i("connectgaps",L$.isArray1D(t.z)&&t.zsmooth!==!1),uEe(r,t,n,i,{prefix:"",cLetter:"z"}),i("zorder")}});var Y9=z((SQe,E$)=>{"use strict";var $0=Br();E$.exports={count:function(e,r,t){return t[e]++,1},sum:function(e,r,t,a){var n=a[r];return $0(n)?(n=Number(n),t[e]+=n,n):0},avg:function(e,r,t,a,n){var i=a[r];return $0(i)&&(i=Number(i),t[e]+=i,n[e]++),0},min:function(e,r,t,a){var n=a[r];if($0(n))if(n=Number(n),$0(t[e])){if(t[e]>n){var i=n-t[e];return t[e]=n,i}}else return t[e]=n,n;return 0},max:function(e,r,t,a){var n=a[r];if($0(n))if(n=Number(n),$0(t[e])){if(t[e]{"use strict";P$.exports={percent:function(e,r){for(var t=e.length,a=100/r,n=0;n{"use strict";R$.exports=function(r,t){for(var a=r.length,n=0,i=0;i{"use strict";var J0=(Kt(),Ne(aa)),Hf=J0.ONEAVGYEAR,F$=J0.ONEAVGMONTH,m3=J0.ONEDAY,z$=J0.ONEHOUR,N$=J0.ONEMIN,I$=J0.ONESEC,B$=jr().tickIncrement;U$.exports=function(r,t,a,n,i){var o=-1.1*t,l=-.1*t,s=r-l,u=a[0],f=a[1],c=Math.min(p3(u+l,u+s,n,i),p3(f+l,f+s,n,i)),v=Math.min(p3(u+o,u+l,n,i),p3(f+o,f+l,n,i)),d,p;if(c>v&&vm3){var m=d===Hf?1:6,y=d===Hf?"M12":"M1";return function(b,T){var w=n.c2d(b,Hf,i),x=w.indexOf("-",m);x>0&&(w=w.slice(0,x));var _=n.d2c(w,0,i);if(_I$?e>m3?e>Hf*1.1?Hf:e>F$*1.1?F$:m3:e>z$?z$:e>N$?N$:I$:Math.pow(10,Math.floor(Math.log(e)/Math.LN10))}function cEe(e,r,t,a,n,i){if(a&&e>m3){var o=H$(r,n,i),l=H$(t,n,i),s=e===Hf?0:1;return o[s]!==l[s]}return Math.floor(t/e)-Math.floor(r/e)>.1}function H$(e,r,t){var a=r.c2d(e,Hf,t).split("-");return a[0]===""&&(a.unshift(),a[0]="-"+a[0]),a}});var $9=z((DQe,W$)=>{"use strict";var X9=Br(),In=ke(),G$=Ar(),vo=jr(),{hasColorscale:Y$}=xi(),V$=e0(),vEe=o3(),j$=Y9(),hEe=V9(),dEe=j9(),pEe=W9();function mEe(e,r){var t=[],a=[],n=r.orientation==="h",i=vo.getFromId(e,n?r.yaxis:r.xaxis),o=n?"y":"x",l={x:"y",y:"x"}[o],s=r[o+"calendar"],u=r.cumulative,f,c=Z9(e,r,i,o),v=c[0],d=c[1],p=typeof v.size=="string",m=[],y=p?m:v,b=[],T=[],w=[],x=0,_=r.histnorm,k=r.histfunc,M=_.indexOf("density")!==-1,S,C,E;u.enabled&&M&&(_=_.replace(/ ?density$/,""),M=!1);var P=k==="max"||k==="min",R=P?null:0,I=j$.count,B=hEe[_],N=!1,U=function(Ae){return i.r2c(Ae,0,s)},G;for(In.isArrayOrTypedArray(r[l])&&k!=="count"&&(G=r[l],N=k==="avg",I=j$[k]),f=U(v.start),C=U(v.end)+(f-vo.tickIncrement(f,v.size,!1,s))/1e6;f=0&&E=ge;f--)if(a[f]){se=f;break}for(f=ge;f<=se;f++)if(X9(t[f])&&X9(a[f])){var oe={p:t[f],s:a[f],b:0};u.enabled||(oe.pts=w[f],Y?oe.ph0=oe.ph1=w[f].length?d[w[f][0]]:t[f]:(r._computePh=!0,oe.ph0=$(m[f]),oe.ph1=$(m[f+1],!0))),te.push(oe)}return te.length===1&&(te[0].width1=vo.tickIncrement(te[0].p,v.size,!1,s)-te[0].p),Y$(r,"marker")&&V$(e,r,{vals:r.marker.color,containerStr:"marker",cLetter:"c"}),Y$(r,"marker.line")&&V$(e,r,{vals:r.marker.line.color,containerStr:"marker.line",cLetter:"c"}),vEe(te,r),In.isArrayOrTypedArray(r.selectedpoints)&&In.tagSelected(te,r,le),te}function Z9(e,r,t,a,n){var ne;var i=a+"bins",o=e._fullLayout,l=r["_"+a+"bingroup"],s=o._histogramBinOpts[l],u=o.barmode==="overlay",f,c,v,d,p,m,y,b=function($){return t.r2c($,0,d)},T=function($){return t.c2r($,0,d)},w=t.type==="date"?function($){return $||$===0?In.cleanDate($,null,d):null}:function($){return X9($)?Number($):null};function x($,ce,te){ce[$+"Found"]?(ce[$]=w(ce[$]),ce[$]===null&&(ce[$]=te[$])):(m[$]=ce[$]=te[$],In.nestedProperty(c[0],i+"."+$).set(te[$]))}if(r["_"+a+"autoBinFinished"])delete r["_"+a+"autoBinFinished"];else{c=s.traces;var _=[],k=!0,M=!1,S=!1;for(f=0;ft.r2l(G)&&(j=vo.tickIncrement(j,s.size,!0,d)),I.start=t.l2r(j),U||In.nestedProperty(r,i+".start").set(I.start)}var W=s.end,Y=t.r2l(R.end),J=Y!==void 0;if((s.endFound||J)&&Y!==t.r2l(W)){var re=J?Y:In.aggNums(Math.max,null,p);I.end=t.l2r(re),J||In.nestedProperty(r,i+".start").set(I.end)}var le="autobin"+a;return r._input[le]===!1&&(r._input[i]=In.extendFlat({},r[i]||{}),delete r._input[le],delete r[le]),[I,p]}function yEe(e,r,t,a,n){var i=e._fullLayout,o=gEe(e,r),l=!1,s=1/0,u=[r],f,c,v;for(f=0;f=0;a--)l(a);else if(r==="increasing"){for(a=1;a=0;a--)e[a]+=e[a+1];t==="exclude"&&(e.push(0),e.shift())}}W$.exports={calc:mEe,calcAllAutoBins:Z9}});var rJ=z((EQe,eJ)=>{"use strict";var X$=ke(),K0=jr(),Z$=Y9(),xEe=V9(),_Ee=j9(),wEe=W9(),$$=$9().calcAllAutoBins;eJ.exports=function(r,t){var a=K0.getFromId(r,t.xaxis),n=K0.getFromId(r,t.yaxis),i=t.xcalendar,o=t.ycalendar,l=function(ue){return a.r2c(ue,0,i)},s=function(ue){return n.r2c(ue,0,o)},u=function(ue){return a.c2r(ue,0,i)},f=function(ue){return n.c2r(ue,0,o)},c,v,d,p,m=$$(r,t,a,"x"),y=m[0],b=m[1],T=$$(r,t,n,"y"),w=T[0],x=T[1],_=t._length;b.length>_&&b.splice(_,b.length-_),x.length>_&&x.splice(_,x.length-_);var k=[],M=[],S=[],C=typeof y.size=="string",E=typeof w.size=="string",P=[],R=[],I=C?P:y,B=E?R:w,N=0,U=[],G=[],V=t.histnorm,j=t.histfunc,W=V.indexOf("density")!==-1,Y=j==="max"||j==="min",J=Y?null:0,re=Z$.count,le=xEe[V],ne=!1,$=[],ce=[],te="z"in t?t.z:"marker"in t&&Array.isArray(t.marker.color)?t.marker.color:"";te&&j!=="count"&&(ne=j==="avg",re=Z$[j]);var ge=y.size,se=l(y.start),oe=l(y.end)+(se-K0.tickIncrement(se,ge,!1,i))/1e6;for(c=se;c=0&&d=0&&p{"use strict";var ql=ke(),tJ=(Kt(),Ne(aa)).BADNUM,aJ=k0();nJ.exports=function(r,t,a,n,i,o){var l=r._length,s=t.makeCalcdata(r,n),u=a.makeCalcdata(r,i);s=aJ(r,t,n,s).vals,u=aJ(r,a,i,u).vals;var f=r.text,c=f!==void 0&&ql.isArray1D(f),v=r.hovertext,d=v!==void 0&&ql.isArray1D(v),p,m,y=ql.distinctVals(s),b=y.vals,T=ql.distinctVals(u),w=T.vals,x=[],_,k,M=w.length,S=b.length;for(p=0;p{"use strict";var TEe=Br(),AEe=ke(),y3=(Kt(),Ne(aa)).BADNUM;oJ.exports=function(r,t,a,n){var i,o,l,s,u,f;function c(b){if(TEe(b))return+b}if(t&&t.transpose){for(i=0,u=0;u{"use strict";var MEe=ke(),sJ=.01,kEe=[[-1,0],[1,0],[0,-1],[0,1]];function SEe(e){return .5-.25*Math.min(1,e*.5)}fJ.exports=function(r,t){var a=1,n;for(uJ(r,t),n=0;nsJ;n++)a=uJ(r,t,SEe(a));return a>sJ&&MEe.log("interp2d didn't converge quickly",a),r};function uJ(e,r,t){var a=0,n,i,o,l,s,u,f,c,v,d,p,m,y;for(l=0;lm&&(a=Math.max(a,Math.abs(e[i][o]-p)/(y-m))))}return a}});var hJ=z((zQe,vJ)=>{"use strict";var qEe=ke().maxRowLength;vJ.exports=function(r){var t=[],a={},n=[],i=r[0],o=[],l=[0,0,0],s=qEe(r),u,f,c,v,d,p,m,y;for(f=0;f=0;d--)v=n[d],f=v[0],c=v[1],p=((a[[f-1,c]]||l)[2]+(a[[f+1,c]]||l)[2]+(a[[f,c-1]]||l)[2]+(a[[f,c+1]]||l)[2])/20,p&&(m[v]=[f,c,p],n.splice(d,1),y=!0);if(!y)throw"findEmpties iterated with no new neighbors";for(v in m)a[v]=m[v],t.push(m[v])}return t.sort(function(b,T){return T[2]-b[2]})}});var yJ=z((NQe,mJ)=>{"use strict";var dJ=Ar(),pJ=ke().isArrayOrTypedArray;mJ.exports=function(r,t,a,n,i,o){var l=[],s=dJ.traceIs(r,"contour"),u=dJ.traceIs(r,"histogram"),f,c,v,d=pJ(t)&&t.length>1;if(d&&!u&&o.type!=="category"){var p=t.length;if(p<=i){if(s)l=Array.from(t).slice(0,i);else if(i===1)o.type==="log"?l=[.5*t[0],2*t[0]]:l=[t[0]-.5,t[0]+.5];else if(o.type==="log"){for(l=[Math.pow(t[0],1.5)/Math.pow(t[1],.5)],v=1;v{"use strict";var gJ=Ar(),J9=ke(),g3=jr(),bJ=k0(),LEe=rJ(),CEe=e0(),DEe=iJ(),EEe=lJ(),PEe=cJ(),REe=hJ(),b3=yJ(),K9=(Kt(),Ne(aa)).BADNUM;_J.exports=function(r,t){var a=g3.getFromId(r,t.xaxis||"x"),n=g3.getFromId(r,t.yaxis||"y"),i=gJ.traceIs(t,"contour"),o=gJ.traceIs(t,"histogram"),l=i?"best":t.zsmooth,s,u,f,c,v,d,p,m,y,b,T;if(a._minDtick=0,n._minDtick=0,o)T=LEe(r,t),c=T.orig_x,s=T.x,u=T.x0,f=T.dx,m=T.orig_y,v=T.y,d=T.y0,p=T.dy,y=T.z;else{var w=t.z;J9.isArray1D(w)?(DEe(t,a,n,"x","y",["z"]),s=t._x,v=t._y,w=t._z):(c=t.x?a.makeCalcdata(t,"x"):[],m=t.y?n.makeCalcdata(t,"y"):[],s=bJ(t,a,"x",c).vals,v=bJ(t,n,"y",m).vals,t._x=s,t._y=v),u=t.x0,f=t.dx,d=t.y0,p=t.dy,y=EEe(w,t,a,n)}(a.rangebreaks||n.rangebreaks)&&(y=FEe(s,v,y),o||(s=xJ(s),v=xJ(v),t._x=s,t._y=v)),!o&&(i||t.connectgaps)&&(t._emptypoints=REe(y),PEe(y,t._emptypoints));function x(I){l=t._input.zsmooth=t.zsmooth=!1,J9.warn('cannot use zsmooth: "fast": '+I)}function _(I){if(I.length>1){var B=(I[I.length-1]-I[0])/(I.length-1),N=Math.abs(B/100);for(b=0;bN)return!1}return!0}t._islinear=!1,a.type==="log"||n.type==="log"?l==="fast"&&x("log axis found"):_(s)?_(v)?t._islinear=!0:l==="fast"&&x("y scale is not linear"):l==="fast"&&x("x scale is not linear");var k=J9.maxRowLength(y),M=t.xtype==="scaled"?"":s,S=b3(t,M,u,f,k,a),C=t.ytype==="scaled"?"":v,E=b3(t,C,d,p,y.length,n);t._extremes[a._id]=g3.findExtremes(a,S),t._extremes[n._id]=g3.findExtremes(n,E);var P={x:S,y:E,z:y,text:t._text||t.text,hovertext:t._hovertext||t.hovertext};if(t.xperiodalignment&&c&&(P.orig_x=c),t.yperiodalignment&&m&&(P.orig_y=m),M&&M.length===S.length-1&&(P.xCenter=M),C&&C.length===E.length-1&&(P.yCenter=C),o&&(P.xRanges=T.xRanges,P.yRanges=T.yRanges,P.pts=T.pts),i||CEe(r,t,{vals:y,cLetter:"z"}),i&&t.contours&&t.contours.coloring==="heatmap"){var R={type:t.type==="contour"?"heatmap":"histogram2d",xcalendar:t.xcalendar,ycalendar:t.ycalendar};P.xfill=b3(R,M,u,f,k,a),P.yfill=b3(R,C,d,p,y.length,n)}return[P]};function xJ(e){for(var r=[],t=e.length,a=0;awJ,STYLE:()=>zEe});var wJ,zEe,w3=Ct(()=>{"use strict";wJ=[["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"]],zEe=wJ.map(e=>e.join(": ")+"; ").join("")});var eT=z((BQe,AJ)=>{"use strict";var TJ=(w3(),Ne(_3)),NEe=et(),Q9=ke(),Q0=null;function IEe(){if(Q0!==null)return Q0;Q0=!1;var e=Q9.isSafari()||Q9.isMacWKWebView()||Q9.isIOS();if(window.navigator.userAgent&&!e){var r=Array.from(TJ.CSS_DECLARATIONS).reverse(),t=window.CSS&&window.CSS.supports||window.supportsCSS;if(typeof t=="function")Q0=r.some(function(o){return t.apply(null,o)});else{var a=NEe.tester.append("image").attr("style",TJ.STYLE),n=window.getComputedStyle(a.node()),i=n.imageRendering;Q0=r.some(function(o){var l=o[1];return i===l||i===l.toLowerCase()}),a.remove()}}return Q0}AJ.exports=IEe});var T3=z((OQe,RJ)=>{"use strict";var MJ=Pr(),BEe=Ar(),OEe=et(),HEe=jr(),ho=ke(),kJ=Da(),UEe=u8(),SJ=qr(),GEe=cl().extractOpts,YEe=cl().makeColorScaleFuncFromTrace,VEe=(Wl(),Ne(jl)),jEe=(un(),Ne(sn)),rT=jEe.LINE_SPACING,WEe=eT(),XEe=(w3(),Ne(_3)).STYLE,EJ="heatmap-label";function PJ(e){return e.selectAll("g."+EJ)}function qJ(e){PJ(e).remove()}RJ.exports=function(e,r,t,a){var n=r.xaxis,i=r.yaxis;ho.makeTraceGroups(a,t,"hm").each(function(o){var l=MJ.select(this),s=o[0],u=s.trace,f=u.xgap||0,c=u.ygap||0,v=s.z,d=s.x,p=s.y,m=s.xCenter,y=s.yCenter,b=BEe.traceIs(u,"contour"),T=b?"best":u.zsmooth,w=v.length,x=ho.maxRowLength(v),_=!1,k=!1,M,S,C,E,P,R,I,B;for(R=0;M===void 0&&R0;)S=n.c2p(d[R]),R--;for(S0;)P=i.c2p(p[R]),R--;P=n._length||S<=0||E>=i._length||P<=0;if(j){var W=l.selectAll("image").data([]);W.exit().remove(),qJ(l);return}var Y,J;N==="fast"?(Y=x,J=w):(Y=G,J=V);var re=document.createElement("canvas");re.width=Y,re.height=J;var le=re.getContext("2d",{willReadFrequently:!0}),ne=YEe(u,{noNumericCheck:!0,returnArray:!0}),$,ce;N==="fast"?($=_?function(nt){return x-1-nt}:ho.identity,ce=k?function(nt){return w-1-nt}:ho.identity):($=function(nt){return ho.constrain(Math.round(n.c2p(d[nt])-M),0,G)},ce=function(nt){return ho.constrain(Math.round(i.c2p(p[nt])-E),0,V)});var te=ce(0),ge=[te,te],se=_?0:1,oe=k?0:1,Ae=0,Pe=0,me=0,Ce=0,Me,Le,Se,Ee,qe;function Ue(nt,La=0){if(nt===void 0)return[0,0,0,0];var Wr=ne(nt);return Wr[0]=Math.round(Wr[0]),Wr[1]=Math.round(Wr[1]),Wr[2]=Math.round(Wr[2]),Ae+=La,Pe+=Wr[0]*La,me+=Wr[1]*La,Ce+=Wr[2]*La,Wr}function Je(nt,La,Wr,qu){var Ht=nt[Wr.bin0];if(Ht===void 0)return Ue(void 0,1);var $n=nt[Wr.bin1],On=La[Wr.bin0],ta=La[Wr.bin1],dc=$n-Ht||0,gs=On-Ht||0,Hn;return $n===void 0?ta===void 0?Hn=0:On===void 0?Hn=2*(ta-Ht):Hn=(2*ta-On-Ht)*2/3:ta===void 0?On===void 0?Hn=0:Hn=(2*Ht-$n-On)*2/3:On===void 0?Hn=(2*ta-$n-Ht)*2/3:Hn=ta+Ht-$n-On,Ue(Ht+Wr.frac*dc+qu.frac*(gs+Wr.frac*Hn))}if(N!=="default"){var Ke=0,De;try{De=new Uint8Array(Y*J*4)}catch(nt){De=new Array(Y*J*4)}if(N==="smooth"){var Be=m||d,er=y||p,ae=new Array(Be.length),be=new Array(er.length),Ge=new Array(G),sr=m?CJ:LJ,vr=y?CJ:LJ,ue,xe,Ie;for(R=0;RGr||Gr>i._length))for(I=ie;Iqt||qt>n._length)){var gt=UEe({x:rt,y:He},u,e._fullLayout);gt.x=rt,gt.y=He;var Ut=s.z[R][I];Ut===void 0?(gt.z="",gt.zLabel=""):(gt.z=Ut,gt.zLabel=HEe.tickText(ze,Ut,"hover").text);var Bt=s.text&&s.text[R]&&s.text[R][I];(Bt===void 0||Bt===!1)&&(Bt=""),gt.text=Bt;var Fa=ho.texttemplateString({data:[gt,u._meta],fallback:u.texttemplatefallback,labels:gt,locale:e._fullLayout._d3locale,template:Re});if(Fa){var kt=Fa.split("
"),Zt=kt.length,$t=0;for(B=0;B{"use strict";FJ.exports={min:"zmin",max:"zmax"}});var A3=z((UQe,zJ)=>{"use strict";var ZEe=Pr();zJ.exports=function(r){ZEe.select(r).selectAll(".hm image").style("opacity",function(t){return t.trace.opacity})}});var k3=z((GQe,IJ)=>{"use strict";var NJ=Yn(),c2=ke(),M3=c2.isArrayOrTypedArray,$Ee=jr(),JEe=cl().extractOpts;IJ.exports=function(r,t,a,n,i){i||(i={});var o=i.isContour,l=r.cd[0],s=l.trace,u=r.xa,f=r.ya,c=l.x,v=l.y,d=l.z,p=l.xCenter,m=l.yCenter,y=l.zmask,b=s.zhoverformat,T=c,w=v,x,_,k,M;if(r.index!==!1){try{k=Math.round(r.index[1]),M=Math.round(r.index[0])}catch(W){c2.error("Error hovering on heatmap, pointNumber must be [row,col], found:",r.index);return}if(k<0||k>=d[0].length||M<0||M>d.length)return}else{if(NJ.inbox(t-c[0],t-c[c.length-1],0)>0||NJ.inbox(a-v[0],a-v[v.length-1],0)>0)return;if(o){var S;for(T=[2*c[0]-c[1]],S=1;S{"use strict";BJ.exports={attributes:u2(),supplyDefaults:D$(),calc:x3(),plot:T3(),colorbar:tT(),style:A3(),hoverPoints:k3(),moduleType:"trace",name:"heatmap",basePlotModule:lo(),categories:["cartesian","svg","2dMap","showLegend"],meta:{}}});var UJ=z((VQe,HJ)=>{"use strict";HJ.exports=OJ()});var aT=z((jQe,GJ)=>{"use strict";GJ.exports=function(r,t){return{start:{valType:"any",editType:"calc"},end:{valType:"any",editType:"calc"},size:{valType:"any",editType:"calc"},editType:"calc"}}});var YJ={};Dt(YJ,{eventDataKeys:()=>KEe});var KEe,VJ=Ct(()=>{"use strict";KEe=["binNumber"]});var S3=z((WQe,ZJ)=>{"use strict";var ci=zf(),jJ=Fo().axisHoverFormat,{hovertemplateAttrs:QEe,texttemplateAttrs:ePe,templatefallbackAttrs:WJ}=gi(),nT=Ia(),XJ=aT(),rPe=(VJ(),Ne(YJ)),iT=St().extendFlat;ZJ.exports={x:{valType:"data_array",editType:"calc+clearAxisTypes"},y:{valType:"data_array",editType:"calc+clearAxisTypes"},xhoverformat:jJ("x"),yhoverformat:jJ("y"),text:iT({},ci.text,{}),hovertext:iT({},ci.hovertext,{}),orientation:ci.orientation,histfunc:{valType:"enumerated",values:["count","sum","avg","min","max"],dflt:"count",editType:"calc"},histnorm:{valType:"enumerated",values:["","percent","probability","density","probability density"],dflt:"",editType:"calc"},cumulative:{enabled:{valType:"boolean",dflt:!1,editType:"calc"},direction:{valType:"enumerated",values:["increasing","decreasing"],dflt:"increasing",editType:"calc"},currentbin:{valType:"enumerated",values:["include","exclude","half"],dflt:"include",editType:"calc"},editType:"calc"},nbinsx:{valType:"integer",min:0,dflt:0,editType:"calc"},xbins:XJ("x",!0),nbinsy:{valType:"integer",min:0,dflt:0,editType:"calc"},ybins:XJ("y",!0),autobinx:{valType:"boolean",dflt:null,editType:"calc"},autobiny:{valType:"boolean",dflt:null,editType:"calc"},bingroup:{valType:"string",dflt:"",editType:"calc"},hovertemplate:QEe({},{keys:rPe.eventDataKeys}),hovertemplatefallback:WJ(),texttemplate:ePe({arrayOk:!1,editType:"plot"},{keys:["label","value"]}),texttemplatefallback:WJ({editType:"plot"}),textposition:iT({},ci.textposition,{arrayOk:!1}),textfont:nT({arrayOk:!1,editType:"plot",colorEditType:"style"}),outsidetextfont:nT({arrayOk:!1,editType:"plot",colorEditType:"style"}),insidetextfont:nT({arrayOk:!1,editType:"plot",colorEditType:"style"}),insidetextanchor:ci.insidetextanchor,textangle:ci.textangle,cliponaxis:ci.cliponaxis,constraintext:ci.constraintext,marker:ci.marker,offsetgroup:ci.offsetgroup,alignmentgroup:ci.alignmentgroup,selected:ci.selected,unselected:ci.unselected,zorder:ci.zorder}});var QJ=z((XQe,KJ)=>{"use strict";var $J=Ar(),v2=ke(),JJ=qr(),tPe=Nf().handleText,aPe=g9(),nPe=S3();KJ.exports=function(r,t,a,n){function i(T,w){return v2.coerce(r,t,nPe,T,w)}var o=i("x"),l=i("y"),s=i("cumulative.enabled");s&&(i("cumulative.direction"),i("cumulative.currentbin")),i("text");var u=i("textposition");tPe(r,t,n,i,u,{moduleHasSelected:!0,moduleHasUnselected:!0,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),i("hovertext"),i("hovertemplate"),i("hovertemplatefallback"),i("xhoverformat"),i("yhoverformat");var f=i("orientation",l&&!o?"h":"v"),c=f==="v"?"x":"y",v=f==="v"?"y":"x",d=o&&l?Math.min(v2.minRowLength(o)&&v2.minRowLength(l)):v2.minRowLength(t[c]||[]);if(!d){t.visible=!1;return}t._length=d;var p=$J.getComponentMethod("calendars","handleTraceDefaults");p(r,t,["x","y"],n);var m=t[v];m&&i("histfunc"),i("histnorm"),i("autobin"+c),aPe(r,t,i,a,n),v2.coerceSelectionMarkerOpacity(t,i);var y=(t.marker.line||{}).color,b=$J.getComponentMethod("errorbars","supplyDefaults");b(r,t,y||JJ.defaultLine,{axis:"y"}),b(r,t,y||JJ.defaultLine,{axis:"x",inherit:"y"}),i("zorder")}});var L3=z((ZQe,tK)=>{"use strict";var h2=ke(),iPe=Ca(),q3=Ar().traceIs,oPe=Fd(),lPe=Nf().validateCornerradius,eK=h2.nestedProperty,oT=wf().getAxisGroup,rK=[{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"}],sPe=["x","y"];tK.exports=function(r,t){var a=t._histogramBinOpts={},n=[],i={},o=[],l,s,u,f,c,v,d;function p(N,U){return h2.coerce(l._input,l,l._module.attributes,N,U)}function m(N){return N.orientation==="v"?"x":"y"}function y(N,U){var G=iPe.getFromTrace({_fullLayout:t},N,U);return G.type}function b(N,U,G){var V=N.uid+"__"+G;U||(U=V);var j=y(N,G),W=N[G+"calendar"]||"",Y=a[U],J=!0;Y&&(j===Y.axType&&W===Y.calendar?(J=!1,Y.traces.push(N),Y.dirs.push(G)):(U=V,j!==Y.axType&&h2.warn(["Attempted to group the bins of trace",N.index,"set on a","type:"+j,"axis","with bins on","type:"+Y.axType,"axis."].join(" ")),W!==Y.calendar&&h2.warn(["Attempted to group the bins of trace",N.index,"set with a",W,"calendar","with bins",Y.calendar?"on a "+Y.calendar+" calendar":"w/o a set calendar"].join(" ")))),J&&(a[U]={traces:[N],dirs:[G],axType:j,calendar:N[G+"calendar"]||""}),N["_"+G+"bingroup"]=U}for(c=0;c{"use strict";var uPe=k9().hoverPoints,fPe=jr().hoverLabelText;aK.exports=function(r,t,a,n,i){var o=uPe(r,t,a,n,i);if(o){r=o[0];var l=r.cd[r.index],s=r.cd[0].trace;if(!s.cumulative.enabled){var u=s.orientation==="h"?"y":"x";r[u+"Label"]=fPe(r[u+"a"],[l.ph0,l.ph1],s[u+"hoverformat"])}return o}}});var lT=z((JQe,iK)=>{"use strict";iK.exports=function(r,t,a,n,i){if(r.x="xVal"in t?t.xVal:t.x,r.y="yVal"in t?t.yVal:t.y,"zLabelVal"in t&&(r.z=t.zLabelVal),t.xa&&(r.xaxis=t.xa),t.ya&&(r.yaxis=t.ya),!(a.cumulative||{}).enabled){var o=Array.isArray(i)?n[0].pts[i[0]][i[1]]:n[i].pts;r.pointNumbers=o,r.binNumber=r.pointNumber,delete r.pointNumber,delete r.pointIndex,r.pointIndices=o}return r}});var lK=z((KQe,oK)=>{"use strict";oK.exports={attributes:S3(),layoutAttributes:n3(),supplyDefaults:QJ(),crossTraceDefaults:L3(),supplyLayoutDefaults:b9(),calc:$9().calc,crossTraceCalc:yg().crossTraceCalc,plot:A9().plot,layerName:"barlayer",style:j0().style,styleOnSelect:j0().styleOnSelect,colorbar:Ud(),hoverPoints:nK(),selectPoints:S9(),eventData:lT(),moduleType:"trace",name:"histogram",basePlotModule:lo(),categories:["bar-like","cartesian","svg","bar","histogram","oriented","errorBarsOK","showLegend"],meta:{}}});var uK=z((QQe,sK)=>{"use strict";sK.exports=lK()});var D3=z((eer,vK)=>{"use strict";var Jo=S3(),fK=aT(),C3=u2(),cPe=Gn(),sT=Fo().axisHoverFormat,{hovertemplateAttrs:vPe,texttemplateAttrs:hPe,templatefallbackAttrs:cK}=gi(),dPe=fl(),d2=St().extendFlat;vK.exports=d2({x:Jo.x,y:Jo.y,z:{valType:"data_array",editType:"calc"},marker:{color:{valType:"data_array",editType:"calc"},editType:"calc"},histnorm:Jo.histnorm,histfunc:Jo.histfunc,nbinsx:Jo.nbinsx,xbins:fK("x"),nbinsy:Jo.nbinsy,ybins:fK("y"),autobinx:Jo.autobinx,autobiny:Jo.autobiny,bingroup:d2({},Jo.bingroup,{}),xbingroup:d2({},Jo.bingroup,{}),ybingroup:d2({},Jo.bingroup,{}),xgap:C3.xgap,ygap:C3.ygap,zsmooth:C3.zsmooth,xhoverformat:sT("x"),yhoverformat:sT("y"),zhoverformat:sT("z",1),hovertemplate:vPe({},{keys:["z"]}),hovertemplatefallback:cK(),texttemplate:hPe({arrayOk:!1,editType:"plot"},{keys:["z"]}),texttemplatefallback:cK({editType:"plot"}),textfont:C3.textfont,showlegend:d2({},cPe.showlegend,{dflt:!1})},dPe("",{cLetter:"z",autoColorDflt:!1}))});var uT=z((rer,dK)=>{"use strict";var pPe=Ar(),hK=ke();dK.exports=function(r,t,a,n){var i=a("x"),o=a("y"),l=hK.minRowLength(i),s=hK.minRowLength(o);if(!l||!s){t.visible=!1;return}t._length=Math.min(l,s);var u=pPe.getComponentMethod("calendars","handleTraceDefaults");u(r,t,["x","y"],n);var f=a("z")||a("marker.color");f&&a("histfunc"),a("histnorm"),a("autobinx"),a("autobiny")}});var mK=z((ter,pK)=>{"use strict";var mPe=ke(),yPe=uT(),gPe=G9(),bPe=Xl(),xPe=f2(),_Pe=D3();pK.exports=function(r,t,a,n){function i(o,l){return mPe.coerce(r,t,_Pe,o,l)}yPe(r,t,i,n),t.visible!==!1&&(gPe(r,t,i,n),bPe(r,t,n,i,{prefix:"",cLetter:"z"}),i("hovertemplate"),i("hovertemplatefallback"),xPe(i,n),i("xhoverformat"),i("yhoverformat"))}});var bK=z((aer,gK)=>{"use strict";var wPe=k3(),yK=jr().hoverLabelText;gK.exports=function(r,t,a,n,i){var o=wPe(r,t,a,n,i);if(o){r=o[0];var l=r.index,s=l[0],u=l[1],f=r.cd[0],c=f.trace,v=f.xRanges[u],d=f.yRanges[s];return r.xLabel=yK(r.xa,[v[0],v[1]],c.xhoverformat),r.yLabel=yK(r.ya,[d[0],d[1]],c.yhoverformat),o}}});var _K=z((ner,xK)=>{"use strict";xK.exports={attributes:D3(),supplyDefaults:mK(),crossTraceDefaults:L3(),calc:x3(),plot:T3(),layerName:"heatmaplayer",colorbar:tT(),style:A3(),hoverPoints:bK(),eventData:lT(),moduleType:"trace",name:"histogram2d",basePlotModule:lo(),categories:["cartesian","svg","2dMap","histogram","showLegend"],meta:{}}});var TK=z((ier,wK)=>{"use strict";wK.exports=_K()});var E3={};Dt(E3,{COMPARISON_OPS:()=>TPe,COMPARISON_OPS2:()=>APe,CONSTRAINT_REDUCTION:()=>SPe,INTERVAL_OPS:()=>MPe,SET_OPS:()=>kPe});var TPe,APe,MPe,kPe,SPe,P3=Ct(()=>{"use strict";TPe=["=","!=","<",">=",">","<="],APe=["=","<",">=",">","<="],MPe=["[]","()","[)","(]","][",")(","](",")["],kPe=["{}","}{"],SPe={"=":"=","<":"<","<=":"<",">":">",">=":">","[]":"[]","()":"[]","[)":"[]","(]":"[]","][":"][",")(":"][","](":"][",")[":"]["}});var F3=z((oer,SK)=>{"use strict";var Sa=u2(),R3=Qi(),MK=Fo(),fT=MK.axisHoverFormat,qPe=MK.descriptionOnlyNumbers,LPe=fl(),CPe=Ui().dash,DPe=Ia(),ev=St().extendFlat,kK=(P3(),Ne(E3)),EPe=kK.COMPARISON_OPS2,PPe=kK.INTERVAL_OPS,AK=R3.line;SK.exports=ev({z:Sa.z,x:Sa.x,x0:Sa.x0,dx:Sa.dx,y:Sa.y,y0:Sa.y0,dy:Sa.dy,xperiod:Sa.xperiod,yperiod:Sa.yperiod,xperiod0:R3.xperiod0,yperiod0:R3.yperiod0,xperiodalignment:Sa.xperiodalignment,yperiodalignment:Sa.yperiodalignment,text:Sa.text,hovertext:Sa.hovertext,transpose:Sa.transpose,xtype:Sa.xtype,ytype:Sa.ytype,xhoverformat:fT("x"),yhoverformat:fT("y"),zhoverformat:fT("z",1),hovertemplate:Sa.hovertemplate,hovertemplatefallback:Sa.hovertemplatefallback,texttemplate:ev({},Sa.texttemplate,{}),texttemplatefallback:Sa.texttemplatefallback,textfont:ev({},Sa.textfont,{}),hoverongaps:Sa.hoverongaps,connectgaps:ev({},Sa.connectgaps,{}),fillcolor:{valType:"color",editType:"calc"},autocontour:{valType:"boolean",dflt:!0,editType:"calc",impliedEdits:{"contours.start":void 0,"contours.end":void 0,"contours.size":void 0}},ncontours:{valType:"integer",dflt:15,min:1,editType:"calc"},contours:{type:{valType:"enumerated",values:["levels","constraint"],dflt:"levels",editType:"calc"},start:{valType:"number",dflt:null,editType:"plot",impliedEdits:{"^autocontour":!1}},end:{valType:"number",dflt:null,editType:"plot",impliedEdits:{"^autocontour":!1}},size:{valType:"number",dflt:null,min:0,editType:"plot",impliedEdits:{"^autocontour":!1}},coloring:{valType:"enumerated",values:["fill","heatmap","lines","none"],dflt:"fill",editType:"calc"},showlines:{valType:"boolean",dflt:!0,editType:"plot"},showlabels:{valType:"boolean",dflt:!1,editType:"plot"},labelfont:DPe({editType:"plot",colorEditType:"style"}),labelformat:{valType:"string",dflt:"",editType:"plot",description:qPe("contour label")},operation:{valType:"enumerated",values:[].concat(EPe).concat(PPe),dflt:"=",editType:"calc"},value:{valType:"any",dflt:0,editType:"calc"},editType:"calc",impliedEdits:{autocontour:!1}},line:{color:ev({},AK.color,{editType:"style+colorbars"}),width:{valType:"number",min:0,editType:"style+colorbars"},dash:CPe,smoothing:ev({},AK.smoothing,{}),editType:"plot"},zorder:R3.zorder},LPe("",{cLetter:"z",autoColorDflt:!1,editTypeOverride:"calc"}))});var vT=z((ler,LK)=>{"use strict";var xn=D3(),Ll=F3(),RPe=fl(),cT=Fo().axisHoverFormat,qK=St().extendFlat;LK.exports=qK({x:xn.x,y:xn.y,z:xn.z,marker:xn.marker,histnorm:xn.histnorm,histfunc:xn.histfunc,nbinsx:xn.nbinsx,xbins:xn.xbins,nbinsy:xn.nbinsy,ybins:xn.ybins,autobinx:xn.autobinx,autobiny:xn.autobiny,bingroup:xn.bingroup,xbingroup:xn.xbingroup,ybingroup:xn.ybingroup,autocontour:Ll.autocontour,ncontours:Ll.ncontours,contours:Ll.contours,line:{color:Ll.line.color,width:qK({},Ll.line.width,{dflt:.5}),dash:Ll.line.dash,smoothing:Ll.line.smoothing,editType:"plot"},xhoverformat:cT("x"),yhoverformat:cT("y"),zhoverformat:cT("z",1),hovertemplate:xn.hovertemplate,hovertemplatefallback:xn.hovertemplatefallback,texttemplate:Ll.texttemplate,texttemplatefallback:Ll.texttemplatefallback,textfont:Ll.textfont},RPe("",{cLetter:"z",editTypeOverride:"calc"}))});var hT=z((ser,CK)=>{"use strict";CK.exports=function(r,t,a,n){var i=n("contours.start"),o=n("contours.end"),l=i===!1||o===!1,s=a("contours.size"),u;l?u=t.autocontour=!0:u=a("autocontour",!1),(u||!s)&&a("ncontours")}});var dT=z((uer,DK)=>{"use strict";var FPe=ke();DK.exports=function(r,t,a,n){n||(n={});var i=r("contours.showlabels");if(i){var o=t.font;FPe.coerceFont(r,"contours.labelfont",o,{overrideDflt:{color:a}}),r("contours.labelformat")}n.hasHover!==!1&&r("zhoverformat")}});var pT=z((fer,EK)=>{"use strict";var zPe=Xl(),NPe=dT();EK.exports=function(r,t,a,n,i){var o=a("contours.coloring"),l,s="";o==="fill"&&(l=a("contours.showlines")),l!==!1&&(o!=="lines"&&(s=a("line.color","#000")),a("line.width",.5),a("line.dash")),o!=="none"&&(r.showlegend!==!0&&(t.showlegend=!1),t._dfltShowLegend=!1,zPe(r,t,n,a,{prefix:"",cLetter:"z"})),a("line.smoothing"),NPe(a,n,s,i)}});var zK=z((cer,FK)=>{"use strict";var PK=ke(),IPe=uT(),BPe=hT(),OPe=pT(),HPe=f2(),RK=vT();FK.exports=function(r,t,a,n){function i(l,s){return PK.coerce(r,t,RK,l,s)}function o(l){return PK.coerce2(r,t,RK,l)}IPe(r,t,i,n),t.visible!==!1&&(BPe(r,t,i,o),OPe(r,t,i,n),i("xhoverformat"),i("yhoverformat"),i("hovertemplate"),i("hovertemplatefallback"),t.contours&&t.contours.coloring==="heatmap"&&HPe(i,n))}});var BK=z((ver,IK)=>{"use strict";var yT=jr(),mT=ke();IK.exports=function(r,t){var a=r.contours;if(r.autocontour){var n=r.zmin,i=r.zmax;(r.zauto||n===void 0)&&(n=mT.aggNums(Math.min,null,t)),(r.zauto||i===void 0)&&(i=mT.aggNums(Math.max,null,t));var o=NK(n,i,r.ncontours);a.size=o.dtick,a.start=yT.tickFirst(o),o.range.reverse(),a.end=yT.tickFirst(o),a.start===n&&(a.start+=a.size),a.end===i&&(a.end-=a.size),a.start>a.end&&(a.start=a.end=(a.start+a.end)/2),r._input.contours||(r._input.contours={}),mT.extendFlat(r._input.contours,{start:a.start,end:a.end,size:a.size}),r._input.autocontour=!0}else if(a.type!=="constraint"){var l=a.start,s=a.end,u=r._input.contours;if(l>s&&(a.start=u.start=s,s=a.end=u.end=l,l=a.start),!(a.size>0)){var f;l===s?f=1:f=NK(l,s,r.ncontours).dtick,u.size=a.size=f}}};function NK(e,r,t){var a={type:"linear",range:[e,r]};return yT.autoTicks(a,(r-e)/(t||15)),a}});var p2=z((her,OK)=>{"use strict";OK.exports=function(r){return r.end+r.size/1e6}});var gT=z((der,UK)=>{"use strict";var HK=cl(),UPe=x3(),GPe=BK(),YPe=p2();UK.exports=function(r,t){var a=UPe(r,t),n=a[0].z;GPe(t,n);var i=t.contours,o=HK.extractOpts(t),l;if(i.coloring==="heatmap"&&o.auto&&t.autocontour===!1){var s=i.start,u=YPe(i),f=i.size||1,c=Math.floor((u-s)/f)+1;isFinite(f)||(f=1,c=1);var v=s-f/2,d=v+c*f;l=[v,d]}else l=n;return HK.calc(r,t,{vals:l,cLetter:"z"}),a}});var z3={};Dt(z3,{BOTTOMSTART:()=>VPe,CHOOSESADDLE:()=>$Pe,LABELDISTANCE:()=>KPe,LABELINCREASE:()=>QPe,LABELMAX:()=>rRe,LABELMIN:()=>eRe,LABELOPTIMIZER:()=>tRe,LEFTSTART:()=>WPe,NEWDELTA:()=>ZPe,RIGHTSTART:()=>XPe,SADDLEREMAINDER:()=>JPe,TOPSTART:()=>jPe});var VPe,jPe,WPe,XPe,ZPe,$Pe,JPe,KPe,QPe,eRe,rRe,tRe,N3=Ct(()=>{"use strict";VPe=[1,9,13,104,713],jPe=[4,6,7,104,713],WPe=[8,12,14,208,1114],XPe=[2,3,11,208,1114],ZPe=[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]],$Pe={104:[4,1],208:[2,8],713:[7,13],1114:[11,14]},JPe={1:4,2:8,4:1,7:13,8:2,11:14,13:7,14:11},KPe=2,QPe=10,eRe=3,rRe=10,tRe={EDGECOST:1,ANGLECOST:1,NEIGHBORCOST:5,SAMELEVELFACTOR:10,SAMELEVELDISTANCE:5,MAXCOST:100,INITIALSEARCHPOINTS:10,ITERATIONS:5}});var YK=z((per,GK)=>{"use strict";var I3=(N3(),Ne(z3));GK.exports=function(r){var t=r[0].z,a=t.length,n=t[0].length,i=a===2||n===2,o,l,s,u,f,c,v,d,p;for(l=0;le?0:1)+(r[0][1]>e?0:2)+(r[1][1]>e?0:4)+(r[1][0]>e?0:8);if(t===5||t===10){var a=(r[0][0]+r[0][1]+r[1][0]+r[1][1])/4;return e>a?t===5?713:1114:t===5?104:208}return t===15?0:t}});var XK=z((mer,WK)=>{"use strict";var B3=ke(),rv=(N3(),Ne(z3));WK.exports=function(r,t,a){var n,i,o,l,s;for(t=t||.01,a=a||.01,o=0;o20?(o=rv.CHOOSESADDLE[o][(l[0]||l[1])<0?0:1],e.crossings[i]=rv.SADDLEREMAINDER[o]):delete e.crossings[i],l=rv.NEWDELTA[o],!l){B3.log("Found bad marching index:",o,r,e.level);break}s.push(jK(e,r,l)),r[0]+=l[0],r[1]+=l[1],i=r.join(","),m2(s[s.length-1],s[s.length-2],a,n)&&s.pop();var p=l[0]&&(r[0]<0||r[0]>f-2)||l[1]&&(r[1]<0||r[1]>u-2),m=r[0]===c[0]&&r[1]===c[1]&&l[0]===v[0]&&l[1]===v[1];if(m||t&&p)break;o=e.crossings[i]}d===1e4&&B3.log("Infinite loop in contour?");var y=m2(s[0],s[s.length-1],a,n),b=0,T=.2*e.smoothing,w=[],x=0,_,k,M,S,C,E,P,R,I,B,N;for(d=1;d=x;d--)if(_=w[d],_=x&&_+w[k]R&&I--,e.edgepaths[I]=N.concat(s,B));break}j||(e.edgepaths[R]=s.concat(B))}for(R=0;R20&&r?e===208||e===1114?a=t[0]===0?1:-1:n=t[1]===0?1:-1:rv.BOTTOMSTART.indexOf(e)!==-1?n=1:rv.LEFTSTART.indexOf(e)!==-1?a=1:rv.TOPSTART.indexOf(e)!==-1?n=-1:a=-1,[a,n]}function jK(e,r,t){var a=r[0]+Math.max(t[0],0),n=r[1]+Math.max(t[1],0),i=e.z[n][a],o=e.xaxis,l=e.yaxis;if(t[1]){var s=(e.level-i)/(e.z[n][a+1]-i),u=(s!==1?(1-s)*o.c2l(e.x[a]):0)+(s!==0?s*o.c2l(e.x[a+1]):0);return[o.c2p(o.l2c(u),!0),l.c2p(e.y[n],!0),a+s,n]}else{var f=(e.level-i)/(e.z[n+1][a]-i),c=(f!==1?(1-f)*l.c2l(e.y[n]):0)+(f!==0?f*l.c2l(e.y[n+1]):0);return[o.c2p(e.x[a],!0),l.c2p(l.l2c(c),!0),a,n+f]}}});var KK=z((yer,JK)=>{"use strict";var bT=(P3(),Ne(E3)),oRe=Br();JK.exports={"[]":ZK("[]"),"][":ZK("]["),">":xT(">"),"<":xT("<"),"=":xT("=")};function $K(e,r){var t=Array.isArray(r),a;function n(i){return oRe(i)?+i:null}return bT.COMPARISON_OPS2.indexOf(e)!==-1?a=n(t?r[0]:r):bT.INTERVAL_OPS.indexOf(e)!==-1?a=t?[n(r[0]),n(r[1])]:[n(r),n(r)]:bT.SET_OPS.indexOf(e)!==-1&&(a=t?r.map(n):[n(r)]),a}function ZK(e){return function(r){r=$K(e,r);var t=Math.min(r[0],r[1]),a=Math.max(r[0],r[1]);return{start:t,end:a,size:a-t}}}function xT(e){return function(r){return r=$K(e,r),{start:r,end:1/0,size:1/0}}}});var rQ=z((ger,eQ)=>{"use strict";var QK=ke(),lRe=KK(),sRe=p2();eQ.exports=function(r,t,a){for(var n=r.type==="constraint"?lRe[r._operation](r.value):r,i=n.size,o=[],l=sRe(n),s=a.trace._carpetTrace,u=s?{xaxis:s.aaxis,yaxis:s.baxis,x:a.a,y:a.b}:{xaxis:t.xaxis,yaxis:t.yaxis,x:a.x,y:a.y},f=n.start;f1e3){QK.warn("Too many contours, clipping at 1000",r);break}return o}});var nQ=z((ber,aQ)=>{"use strict";var tv=ke();aQ.exports=function(e,r){var t,a,n,i=function(s){return s.reverse()},o=function(s){return s};switch(r){case"=":case"<":return e;case">":for(e.length!==1&&tv.warn("Contour data invalid for the specified inequality operation."),a=e[0],t=0;t{"use strict";iQ.exports=function(e,r){var t=e[0],a=t.z,n;switch(r.type){case"levels":var i=Math.min(a[0][0],a[0][1]);for(n=0;no.level||o.starts.length&&i===o.level)}break;case"constraint":if(t.prefixBoundary=!1,t.edgepaths.length)return;var l=t.x.length,s=t.y.length,u=-1/0,f=1/0;for(n=0;n":c>u&&(t.prefixBoundary=!0);break;case"<":(cu||t.starts.length&&d===f)&&(t.prefixBoundary=!0);break;case"][":v=Math.min(c[0],c[1]),d=Math.max(c[0],c[1]),vu&&(t.prefixBoundary=!0);break}break}}});var _T=z(Bn=>{"use strict";var g2=Pr(),en=ke(),fs=et(),uRe=cl(),uQ=Da(),lQ=jr(),sQ=l0(),fRe=T3(),fQ=YK(),cQ=XK(),cRe=rQ(),vRe=nQ(),vQ=oQ(),y2=(N3(),Ne(z3)),Cl=y2.LABELOPTIMIZER;Bn.plot=function(r,t,a,n){var i=t.xaxis,o=t.yaxis;en.makeTraceGroups(n,a,"contour").each(function(l){var s=g2.select(this),u=l[0],f=u.trace,c=u.x,v=u.y,d=f.contours,p=cRe(d,t,u),m=en.ensureSingle(s,"g","heatmapcoloring"),y=[];d.coloring==="heatmap"&&(y=[l]),fRe(r,t,y,m),fQ(p),cQ(p);var b=i.c2p(c[0],!0),T=i.c2p(c[c.length-1],!0),w=o.c2p(v[0],!0),x=o.c2p(v[v.length-1],!0),_=[[b,x],[T,x],[T,w],[b,w]],k=p;d.type==="constraint"&&(k=vRe(p,d._operation)),hRe(s,_,d),dRe(s,k,_,d),pRe(s,p,r,u,d),yRe(s,t,r,u,_)})};function hRe(e,r,t){var a=en.ensureSingle(e,"g","contourbg"),n=a.selectAll("path").data(t.coloring==="fill"?[0]:[]);n.enter().append("path"),n.exit().remove(),n.attr("d","M"+r.join("L")+"Z").style("stroke","none")}function dRe(e,r,t,a){var n=a.coloring==="fill"||a.type==="constraint"&&a._operation!=="=",i="M"+t.join("L")+"Z";n&&vQ(r,a);var o=en.ensureSingle(e,"g","contourfill"),l=o.selectAll("path").data(n?r:[]);l.enter().append("path"),l.exit().remove(),l.each(function(s){var u=(s.prefixBoundary?i:"")+hQ(s,t);u?g2.select(this).attr("d",u).style("stroke","none"):g2.select(this).remove()})}function hQ(e,r){var t="",a=0,n=e.edgepaths.map(function(b,T){return T}),i=!0,o,l,s,u,f,c;function v(b){return Math.abs(b[1]-r[0][1])<.01}function d(b){return Math.abs(b[1]-r[2][1])<.01}function p(b){return Math.abs(b[0]-r[0][0])<.01}function m(b){return Math.abs(b[0]-r[2][0])<.01}for(;n.length;){for(c=fs.smoothopen(e.edgepaths[a],e.smoothing),t+=i?c:c.replace(/^M/,"L"),n.splice(n.indexOf(a),1),o=e.edgepaths[a][e.edgepaths[a].length-1],u=-1,s=0;s<4;s++){if(!o){en.log("Missing end?",a,e);break}for(v(o)&&!m(o)?l=r[1]:p(o)?l=r[0]:d(o)?l=r[3]:m(o)&&(l=r[2]),f=0;f=0&&(l=y,u=f):Math.abs(o[1]-l[1])<.01?Math.abs(o[1]-y[1])<.01&&(y[0]-o[0])*(l[0]-y[0])>=0&&(l=y,u=f):en.log("endpt to newendpt is not vert. or horz.",o,l,y)}if(o=l,u>=0)break;t+="L"+l}if(u===e.edgepaths.length){en.log("unclosed perimeter path");break}a=u,i=n.indexOf(a)===-1,i&&(a=n[0],t+="Z")}for(a=0;aCl.MAXCOST*2)break;v&&(l/=2),o=u-l/2,s=o+l*1.5}if(c<=Cl.MAXCOST)return f};function mRe(e,r,t,a){var n=r.width/2,i=r.height/2,o=e.x,l=e.y,s=e.theta,u=Math.cos(s)*n,f=Math.sin(s)*n,c=(o>a.center?a.right-o:o-a.left)/(u+Math.abs(Math.sin(s)*i)),v=(l>a.middle?a.bottom-l:l-a.top)/(Math.abs(f)+Math.cos(s)*i);if(c<1||v<1)return 1/0;var d=Cl.EDGECOST*(1/(c-1)+1/(v-1));d+=Cl.ANGLECOST*s*s;for(var p=o-u,m=l-f,y=o+u,b=l+f,T=0;T{"use strict";var bRe=Pr(),wT=cl(),xRe=p2();dQ.exports=function(r){var t=r.contours,a=t.start,n=xRe(t),i=t.size||1,o=Math.floor((n-a)/i)+1,l=t.coloring==="lines"?0:1,s=wT.extractOpts(r);isFinite(i)||(i=1,o=1);var u=s.reversescale?wT.flipScale(s.colorscale):s.colorscale,f=u.length,c=new Array(f),v=new Array(f),d,p,m=s.min,y=s.max;if(t.coloring==="heatmap"){for(p=0;p=y)&&(a<=m&&(a=m),n>=y&&(n=y),o=Math.floor((n-a)/i)+1,l=0),p=0;pm&&(c.unshift(m),v.unshift(v[0])),c[c.length-1]{"use strict";var O3=Pr(),pQ=et(),_Re=A3(),wRe=TT();mQ.exports=function(r){var t=O3.select(r).selectAll("g.contour");t.style("opacity",function(a){return a[0].trace.opacity}),t.each(function(a){var n=O3.select(this),i=a[0].trace,o=i.contours,l=i.line,s=o.size||1,u=o.start,f=o.type==="constraint",c=!f&&o.coloring==="lines",v=!f&&o.coloring==="fill",d=c||v?wRe(i):null;n.selectAll("g.contourlevel").each(function(y){O3.select(this).selectAll("path").call(pQ.lineGroupStyle,l.width,c?d(y.level):l.color,l.dash)});var p=o.labelfont;if(n.selectAll("g.contourlabels text").each(function(y){pQ.font(O3.select(this),{weight:p.weight,style:p.style,variant:p.variant,textcase:p.textcase,lineposition:p.lineposition,shadow:p.shadow,family:p.family,size:p.size,color:p.color||(c?d(y.level):l.color)})}),f)n.selectAll("g.contourfill path").style("fill",i.fillcolor);else if(v){var m;n.selectAll("g.contourfill path").style("fill",function(y){return m===void 0&&(m=y.level),d(y.level+.5*s)}),m===void 0&&(m=u),n.selectAll("g.contourbg path").style("fill",d(m-.5*s))}}),_Re(r)}});var MT=z((Aer,gQ)=>{"use strict";var yQ=cl(),TRe=TT(),ARe=p2();function MRe(e,r,t){var a=r.contours,n=r.line,i=a.size||1,o=a.coloring,l=TRe(r,{isColorbar:!0});if(o==="heatmap"){var s=yQ.extractOpts(r);t._fillgradient=s.reversescale?yQ.flipScale(s.colorscale):s.colorscale,t._zrange=[s.min,s.max]}else o==="fill"&&(t._fillcolor=l);t._line={color:o==="lines"?l:n.color,width:a.showlines!==!1?n.width:0,dash:n.dash},t._levels={start:a.start,end:ARe(a),size:i}}gQ.exports={min:"zmin",max:"zmax",calc:MRe}});var kT=z((Mer,bQ)=>{"use strict";var H3=qr(),kRe=k3();bQ.exports=function(r,t,a,n,i){i||(i={}),i.isContour=!0;var o=kRe(r,t,a,n,i);return o&&o.forEach(function(l){var s=l.trace;s.contours.type==="constraint"&&(s.fillcolor&&H3.opacity(s.fillcolor)?l.color=H3.addOpacity(s.fillcolor,1):s.contours.showlines&&H3.opacity(s.line.color)&&(l.color=H3.addOpacity(s.line.color,1)))}),o}});var _Q=z((ker,xQ)=>{"use strict";xQ.exports={attributes:vT(),supplyDefaults:zK(),crossTraceDefaults:L3(),calc:gT(),plot:_T().plot,layerName:"contourlayer",style:AT(),colorbar:MT(),hoverPoints:kT(),moduleType:"trace",name:"histogram2dcontour",basePlotModule:lo(),categories:["cartesian","svg","2dMap","contour","histogram","showLegend"],meta:{}}});var TQ=z((Ser,wQ)=>{"use strict";wQ.exports=_Q()});var CQ=z((qer,LQ)=>{"use strict";var AQ=Br(),SRe=dT(),SQ=qr(),MQ=SQ.addOpacity,qRe=SQ.opacity,qQ=(P3(),Ne(E3)),kQ=ke().isArrayOrTypedArray,LRe=qQ.CONSTRAINT_REDUCTION,CRe=qQ.COMPARISON_OPS2;LQ.exports=function(r,t,a,n,i,o){var l=t.contours,s,u,f,c=a("contours.operation");if(l._operation=LRe[c],DRe(a,l),c==="="?s=l.showlines=!0:(s=a("contours.showlines"),f=a("fillcolor",MQ((r.line||{}).color||i,.5))),s){var v=f&&qRe(f)?MQ(t.fillcolor,1):i;u=a("line.color",v),a("line.width",2),a("line.dash")}a("line.smoothing"),SRe(a,n,u,o)};function DRe(e,r){var t;CRe.indexOf(r.operation)===-1?(e("contours.value",[0,1]),kQ(r.value)?r.value.length>2?r.value=r.value.slice(2):r.length===0?r.value=[0,1]:r.length<2?(t=parseFloat(r.value[0]),r.value=[t,t+1]):r.value=[parseFloat(r.value[0]),parseFloat(r.value[1])]:AQ(r.value)&&(t=parseFloat(r.value),r.value=[t,t+1])):(e("contours.value",0),AQ(r.value)||(kQ(r.value)?r.value=parseFloat(r.value[0]):r.value=0))}});var PQ=z((Ler,EQ)=>{"use strict";var ST=ke(),ERe=U9(),PRe=A0(),RRe=CQ(),FRe=hT(),zRe=pT(),NRe=f2(),DQ=F3();EQ.exports=function(r,t,a,n){function i(u,f){return ST.coerce(r,t,DQ,u,f)}function o(u){return ST.coerce2(r,t,DQ,u)}var l=ERe(r,t,i,n);if(!l){t.visible=!1;return}PRe(r,t,n,i),i("xhoverformat"),i("yhoverformat"),i("text"),i("hovertext"),i("hoverongaps"),i("hovertemplate"),i("hovertemplatefallback");var s=i("contours.type")==="constraint";i("connectgaps",ST.isArray1D(t.z)),s?RRe(r,t,i,n,a):(FRe(r,t,i,o),zRe(r,t,i,n)),t.contours&&t.contours.coloring==="heatmap"&&NRe(i,n),i("zorder")}});var FQ=z((Cer,RQ)=>{"use strict";RQ.exports={attributes:F3(),supplyDefaults:PQ(),calc:gT(),plot:_T().plot,style:AT(),colorbar:MT(),hoverPoints:kT(),moduleType:"trace",name:"contour",basePlotModule:lo(),categories:["cartesian","svg","2dMap","contour","showLegend"],meta:{}}});var NQ=z((Der,zQ)=>{"use strict";zQ.exports=FQ()});var qT=z((Eer,HQ)=>{"use strict";var{hovertemplateAttrs:IRe,texttemplateAttrs:BRe,templatefallbackAttrs:IQ}=gi(),ORe=zy(),Ri=Qi(),HRe=Gn(),BQ=fl(),URe=Ui().dash,su=St().extendFlat,po=Ri.marker,b2=Ri.line,OQ=po.line;HQ.exports={a:{valType:"data_array",editType:"calc"},b:{valType:"data_array",editType:"calc"},c:{valType:"data_array",editType:"calc"},sum:{valType:"number",dflt:0,min:0,editType:"calc"},mode:su({},Ri.mode,{dflt:"markers"}),text:su({},Ri.text,{}),texttemplate:BRe({editType:"plot"},{keys:["a","b","c","text"]}),texttemplatefallback:IQ({editType:"plot"}),hovertext:su({},Ri.hovertext,{}),line:{color:b2.color,width:b2.width,dash:URe,backoff:b2.backoff,shape:su({},b2.shape,{values:["linear","spline"]}),smoothing:b2.smoothing,editType:"calc"},connectgaps:Ri.connectgaps,cliponaxis:Ri.cliponaxis,fill:su({},Ri.fill,{values:["none","toself","tonext"],dflt:"none"}),fillcolor:ORe(),marker:su({symbol:po.symbol,opacity:po.opacity,angle:po.angle,angleref:po.angleref,standoff:po.standoff,maxdisplayed:po.maxdisplayed,size:po.size,sizeref:po.sizeref,sizemin:po.sizemin,sizemode:po.sizemode,line:su({width:OQ.width,dash:OQ.dash,editType:"calc"},BQ("marker.line")),gradient:po.gradient,editType:"calc"},BQ("marker")),textfont:Ri.textfont,textposition:Ri.textposition,selected:Ri.selected,unselected:Ri.unselected,hoverinfo:su({},HRe.hoverinfo,{flags:["a","b","c","text","name"]}),hoveron:Ri.hoveron,hovertemplate:IRe(),hovertemplatefallback:IQ()}});var VQ=z((Per,YQ)=>{"use strict";var UQ=ke(),GRe=(wd(),Ne(_d)),av=ii(),YRe=Uw(),VRe=Gw(),GQ=Yw(),jRe=Vw(),WRe=jw(),XRe=qT();YQ.exports=function(r,t,a,n){function i(v,d){return UQ.coerce(r,t,XRe,v,d)}var o=i("a"),l=i("b"),s=i("c"),u;if(o?(u=o.length,l?(u=Math.min(u,l.length),s&&(u=Math.min(u,s.length))):s?u=Math.min(u,s.length):u=0):l&&s&&(u=Math.min(l.length,s.length)),!u){t.visible=!1;return}t._length=u,i("sum"),i("text"),i("hovertext"),t.hoveron!=="fills"&&(i("hovertemplate"),i("hovertemplatefallback"));var f=u{"use strict";var LT=jr();jQ.exports=function(r,t,a){var n={},i=a[t.subplot]._subplot;return n.aLabel=LT.tickText(i.aaxis,r.a,!0).text,n.bLabel=LT.tickText(i.baxis,r.b,!0).text,n.cLabel=LT.tickText(i.caxis,r.c,!0).text,n}});var JQ=z((Fer,$Q)=>{"use strict";var CT=Br(),ZRe=Zw(),$Re=vg(),JRe=hg(),KRe=dg().calcMarkerSize,XQ=["a","b","c"],ZQ={a:["b","c"],b:["a","c"],c:["a","b"]};$Q.exports=function(r,t){var a=r._fullLayout[t.subplot],n=a.sum,i=t.sum||n,o={a:t.a,b:t.b,c:t.c},l=t.ids,s,u,f,c,v,d;for(s=0;s{"use strict";var QRe=s8();KQ.exports=function(r,t,a){var n=t.plotContainer;n.select(".scatterlayer").selectAll("*").remove();for(var i=t.xaxis,o=t.yaxis,l={xaxis:i,yaxis:o,plot:n,layerClipId:t._hasClipOnAxisFalse?t.clipIdRelative:null},s=t.layers.frontplot.select("g.scatterlayer"),u=0;u{"use strict";var eFe=d8();eee.exports=function(r,t,a,n){var i=eFe(r,t,a,n);if(!i||i[0].index===!1)return;var o=i[0];if(o.index===void 0){var l=1-o.y0/r.ya._length,s=r.xa._length,u=s*l/2,f=s-u;return o.x0=Math.max(Math.min(o.x0,f),u),o.x1=Math.max(Math.min(o.x1,f),u),i}var c=o.cd[o.index],v=o.trace,d=o.subplot;o.a=c.a,o.b=c.b,o.c=c.c,o.xLabelVal=void 0,o.yLabelVal=void 0;var p={};p[v.subplot]={_subplot:d};var m=v._module.formatLabels(c,v,p);o.aLabel=m.aLabel,o.bLabel=m.bLabel,o.cLabel=m.cLabel;var y=c.hi||v.hoverinfo,b=[];function T(x,_){b.push(x._hovertitle+": "+_)}if(!v.hovertemplate){var w=y.split("+");w.indexOf("all")!==-1&&(w=["a","b","c"]),w.indexOf("a")!==-1&&T(d.aaxis,o.aLabel),w.indexOf("b")!==-1&&T(d.baxis,o.bLabel),w.indexOf("c")!==-1&&T(d.caxis,o.cLabel)}return o.extraText=b.join("
"),o.hovertemplate=v.hovertemplate,i}});var aee=z((Ier,tee)=>{"use strict";tee.exports=function(r,t,a,n,i){if(t.xa&&(r.xaxis=t.xa),t.ya&&(r.yaxis=t.ya),n[i]){var o=n[i];r.a=o.a,r.b=o.b,r.c=o.c}else r.a=t.a,r.b=t.b,r.c=t.c;return r}});var pee=z((Ber,dee)=>{"use strict";var fee=Pr(),DT=Ar(),yo=ke(),mo=yo.strTranslate,U3=yo._,Wn=qr(),Uf=et(),nee=Da(),x2=l0(),ET=St().extendFlat,rFe=_a(),cs=jr(),iee=Xi(),oee=Yn(),cee=yf(),lee=cee.freeMode,tFe=cee.rectMode,PT=o0(),aFe=Al().prepSelect,nFe=Al().selectOnClick,iFe=Al().clearOutline,oFe=Al().clearSelectionsCache,vee=(Ha(),Ne(Oa));function hee(e,r){this.id=e.id,this.graphDiv=e.graphDiv,this.init(r),this.makeFramework(r),this.updateFx(r),this.aTickLayout=null,this.bTickLayout=null,this.cTickLayout=null}dee.exports=hee;var Ko=hee.prototype;Ko.init=function(e){this.container=e._ternarylayer,this.defs=e._defs,this.layoutId=e._uid,this.traceHash={},this.layers={}};Ko.plot=function(e,r){var t=this,a=r[t.id],n=r._size;t._hasClipOnAxisFalse=!1;for(var i=0;iu.showspikes))return;let o=this.sum-i[0].min-i[1].min-i[2].min,l=Wn.combine(n[this.id].bgcolor,n.paper_bgcolor),s;for(let u=0;unv*u?(b=u,y=b*nv):(y=s,b=y/nv),T=o*y/s,w=l*b/u,p=r.l+r.w*n-y/2,m=r.t+r.h*(1-i)-b/2,t.x0=p,t.y0=m,t.w=y,t.h=b,t.sum=f,t.xaxis={type:"linear",range:[c+2*d-f,f-c-2*v],domain:[n-T/2,n+T/2],_id:"x"},x2(t.xaxis,t.graphDiv._fullLayout),t.xaxis.setScale(),t.xaxis.isPtWithinRange=function(B){return B.a>=t.aaxis.range[0]&&B.a<=t.aaxis.range[1]&&B.b>=t.baxis.range[1]&&B.b<=t.baxis.range[0]&&B.c>=t.caxis.range[1]&&B.c<=t.caxis.range[0]},t.yaxis={type:"linear",range:[c,f-v-d],domain:[i-w/2,i+w/2],_id:"y"},x2(t.yaxis,t.graphDiv._fullLayout),t.yaxis.setScale(),t.yaxis.isPtWithinRange=function(){return!0};var x=t.yaxis.domain[0],_=t.aaxis=ET({},e.aaxis,{range:[c,f-v-d],side:"left",tickangle:(+e.aaxis.tickangle||0)-30,domain:[x,x+w*nv],anchor:"free",position:0,_id:"y",_length:y});x2(_,t.graphDiv._fullLayout),_.setScale();var k=t.baxis=ET({},e.baxis,{range:[f-c-d,v],side:"bottom",domain:t.xaxis.domain,anchor:"free",position:0,_id:"x",_length:y});x2(k,t.graphDiv._fullLayout),k.setScale();var M=t.caxis=ET({},e.caxis,{range:[f-c-v,d],side:"right",tickangle:(+e.caxis.tickangle||0)+30,domain:[x,x+w*nv],anchor:"free",position:0,_id:"y",_length:y});x2(M,t.graphDiv._fullLayout),M.setScale();var S="M"+p+","+(m+b)+"h"+y+"l-"+y/2+",-"+b+"Z";t.clipDef.select("path").attr("d",S),t.layers.plotbg.select("path").attr("d",S);var C="M0,"+b+"h"+y+"l-"+y/2+",-"+b+"Z";t.clipDefRelative.select("path").attr("d",C);var E=mo(p,m);t.plotContainer.selectAll(".scatterlayer,.maplayer").attr("transform",E),t.clipDefRelative.select("path").attr("transform",null);var P=mo(p-k._offset,m+b);t.layers.baxis.attr("transform",P),t.layers.bgrid.attr("transform",P);var R=mo(p+y/2,m)+"rotate(30)"+mo(0,-_._offset);t.layers.aaxis.attr("transform",R),t.layers.agrid.attr("transform",R);var I=mo(p+y/2,m)+"rotate(-30)"+mo(0,-M._offset);t.layers.caxis.attr("transform",I),t.layers.cgrid.attr("transform",I),t.drawAxes(!0),t.layers.aline.select("path").attr("d",_.showline?"M"+p+","+(m+b)+"l"+y/2+",-"+b:"M0,0").call(Wn.stroke,_.linecolor||"#000").style("stroke-width",(_.linewidth||0)+"px"),t.layers.bline.select("path").attr("d",k.showline?"M"+p+","+(m+b)+"h"+y:"M0,0").call(Wn.stroke,k.linecolor||"#000").style("stroke-width",(k.linewidth||0)+"px"),t.layers.cline.select("path").attr("d",M.showline?"M"+(p+y/2)+","+m+"l"+y/2+","+b:"M0,0").call(Wn.stroke,M.linecolor||"#000").style("stroke-width",(M.linewidth||0)+"px"),t.graphDiv._context.staticPlot||t.initInteractions(),Uf.setClipUrl(t.layers.frontplot,t._hasClipOnAxisFalse?null:t.clipId,t.graphDiv)};Ko.drawAxes=function(e){var r=this,t=r.graphDiv,a=r.id.slice(7)+"title",n=r.layers,i=r.aaxis,o=r.baxis,l=r.caxis;if(r.drawAx(i),r.drawAx(o),r.drawAx(l),e){var s=Math.max(i.showticklabels?i.tickfont.size/2:0,(l.showticklabels?l.tickfont.size*.75:0)+(l.ticks==="outside"?l.ticklen*.87:0)),u=(o.showticklabels?o.tickfont.size:0)+(o.ticks==="outside"?o.ticklen:0)+3;n["a-title"]=PT.draw(t,"a"+a,{propContainer:i,propName:r.id+".aaxis.title.text",placeholder:U3(t,"Click to enter Component A title"),attributes:{x:r.x0+r.w/2,y:r.y0-i.title.font.size/3-s,"text-anchor":"middle"}}),n["b-title"]=PT.draw(t,"b"+a,{propContainer:o,propName:r.id+".baxis.title.text",placeholder:U3(t,"Click to enter Component B title"),attributes:{x:r.x0-u,y:r.y0+r.h+o.title.font.size*.83+u,"text-anchor":"middle"}}),n["c-title"]=PT.draw(t,"c"+a,{propContainer:l,propName:r.id+".caxis.title.text",placeholder:U3(t,"Click to enter Component C title"),attributes:{x:r.x0+r.w+u,y:r.y0+r.h+l.title.font.size*.83+u,"text-anchor":"middle"}})}};Ko.drawAx=function(e){var r=this,t=r.graphDiv,a=e._name,n=a.charAt(0),i=e._id,o=r.layers[a],l=30,s=n+"tickLayout",u=lFe(e);r[s]!==u&&(o.selectAll("."+i+"tick").remove(),r[s]=u),e.setScale();var f=cs.calcTicks(e),c=cs.clipEnds(e,f),v=cs.makeTransTickFn(e),d=cs.getTickSigns(e)[2],p=yo.deg2rad(l),m=d*(e.linewidth||1)/2,y=d*e.ticklen,b=r.w,T=r.h,w=n==="b"?"M0,"+m+"l"+Math.sin(p)*y+","+Math.cos(p)*y:"M"+m+",0l"+Math.cos(p)*y+","+-Math.sin(p)*y,x={a:"M0,0l"+T+",-"+b/2,b:"M0,0l-"+b/2+",-"+T,c:"M0,0l-"+T+","+b/2}[n];cs.drawTicks(t,e,{vals:e.ticks==="inside"?c:f,layer:o,path:w,transFn:v,crisp:!1}),cs.drawGrid(t,e,{vals:c,layer:r.layers[n+"grid"],path:x,transFn:v,crisp:!1}),cs.drawLabels(t,e,{vals:f,layer:o,transFn:v,labelFns:cs.makeLabelFns(e,0,l)})};function lFe(e){return e.ticks+String(e.ticklen)+String(e.showticklabels)}var $a=vee.MINZOOM/2+.87,sFe="m-0.87,.5h"+$a+"v3h-"+($a+5.2)+"l"+($a/2+2.6)+",-"+($a*.87+4.5)+"l2.6,1.5l-"+$a/2+","+$a*.87+"Z",uFe="m0.87,.5h-"+$a+"v3h"+($a+5.2)+"l-"+($a/2+2.6)+",-"+($a*.87+4.5)+"l-2.6,1.5l"+$a/2+","+$a*.87+"Z",fFe="m0,1l"+$a/2+","+$a*.87+"l2.6,-1.5l-"+($a/2+2.6)+",-"+($a*.87+4.5)+"l-"+($a/2+2.6)+","+($a*.87+4.5)+"l2.6,1.5l"+$a/2+",-"+$a*.87+"Z",cFe="m0.5,0.5h5v-2h-5v-5h-2v5h-5v2h5v5h2Z",see=!0;Ko.clearOutline=function(){oFe(this.dragOptions),iFe(this.dragOptions.gd)};Ko.initInteractions=function(){var e=this,r=e.layers.plotbg.select("path").node(),t=e.graphDiv,a=t._fullLayout._zoomlayer,n,i;this.dragOptions={element:r,gd:t,plotinfo:{id:e.id,domain:t._fullLayout[e.id].domain,xaxis:e.xaxis,yaxis:e.yaxis},subplot:e.id,prepFn:function(P,R,I){e.dragOptions.xaxes=[e.xaxis],e.dragOptions.yaxes=[e.yaxis],n=t._fullLayout._invScaleX,i=t._fullLayout._invScaleY;var B=e.dragOptions.dragmode=t._fullLayout.dragmode;lee(B)?e.dragOptions.minDrag=1:e.dragOptions.minDrag=void 0,B==="zoom"?(e.dragOptions.moveFn=k,e.dragOptions.clickFn=b,e.dragOptions.doneFn=M,T(P,R,I)):B==="pan"?(e.dragOptions.moveFn=C,e.dragOptions.clickFn=b,e.dragOptions.doneFn=E,S(),e.clearOutline(t)):(tFe(B)||lee(B))&&aFe(P,R,I,e.dragOptions,B)}};var o,l,s,u,f,c,v,d,p,m;function y(P){var R={};return R[e.id+".aaxis.min"]=P.a,R[e.id+".baxis.min"]=P.b,R[e.id+".caxis.min"]=P.c,R}function b(P,R){var I=t._fullLayout.clickmode;uee(t),P===2&&(t.emit("plotly_doubleclick",null),DT.call("_guiRelayout",t,y({a:0,b:0,c:0}))),I.indexOf("select")>-1&&P===1&&nFe(R,t,[e.xaxis],[e.yaxis],e.id,e.dragOptions),I.indexOf("event")>-1&&oee.click(t,R,e.id)}function T(P,R,I){var B=r.getBoundingClientRect();o=R-B.left,l=I-B.top,t._fullLayout._calcInverseTransform(t);var N=t._fullLayout._invTransform,U=yo.apply3DTransform(N)(o,l);o=U[0],l=U[1],s={a:e.aaxis.range[0],b:e.baxis.range[1],c:e.caxis.range[1]},f=s,u=e.aaxis.range[1]-s.a,c=Wn.luminosity(e.graphDiv._fullLayout[e.id].bgcolor),v="M0,"+e.h+"L"+e.w/2+", 0L"+e.w+","+e.h+"Z",d=!1,p=a.append("path").attr("class","zoombox").attr("transform",mo(e.x0,e.y0)).style({fill:c>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("d",v),m=a.append("path").attr("class","zoombox-corners").attr("transform",mo(e.x0,e.y0)).style({fill:Wn.background,stroke:Wn.defaultLine,"stroke-width":1,opacity:0}).attr("d","M0,0Z"),e.clearOutline(t)}function w(P,R){return 1-R/e.h}function x(P,R){return 1-(P+(e.h-R)/Math.sqrt(3))/e.w}function _(P,R){return(P-(e.h-R)/Math.sqrt(3))/e.w}function k(P,R){var I=o+P*n,B=l+R*i,N=Math.max(0,Math.min(1,w(o,l),w(I,B))),U=Math.max(0,Math.min(1,x(o,l),x(I,B))),G=Math.max(0,Math.min(1,_(o,l),_(I,B))),V=(N/2+G)*e.w,j=(1-N/2-U)*e.w,W=(V+j)/2,Y=j-V,J=(1-N)*e.h,re=J-Y/nv;Y.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),m.transition().style("opacity",1).duration(200),d=!0),t.emit("plotly_relayouting",y(f))}function M(){uee(t),f!==s&&(DT.call("_guiRelayout",t,y(f)),see&&t.data&&t._context.showTips&&(yo.notifier(U3(t,"Double-click to zoom back out"),"long",t),see=!1))}function S(){s={a:e.aaxis.range[0],b:e.baxis.range[1],c:e.caxis.range[1]},f=s}function C(P,R){var I=P/e.xaxis._m,B=R/e.yaxis._m;f={a:s.a-B,b:s.b+(I+B)/2,c:s.c-(I-B)/2};var N=[f.a,f.b,f.c].sort(yo.sorterAsc),U={a:N.indexOf(f.a),b:N.indexOf(f.b),c:N.indexOf(f.c)};N[0]<0&&(N[1]+N[0]/2<0?(N[2]+=N[0]+N[1],N[0]=N[1]=0):(N[2]+=N[0]/2,N[1]+=N[0]/2,N[0]=0),f={a:N[U.a],b:N[U.b],c:N[U.c]},R=(s.a-f.a)*e.yaxis._m,P=(s.c-f.c-s.b+f.b)*e.xaxis._m);var G=mo(e.x0+P,e.y0+R);e.plotContainer.selectAll(".scatterlayer,.maplayer").attr("transform",G);var V=mo(-P,-R);e.clipDefRelative.select("path").attr("transform",V),e.aaxis.range=[f.a,e.sum-f.b-f.c],e.baxis.range=[e.sum-f.a-f.c,f.b],e.caxis.range=[e.sum-f.a-f.b,f.c],e.drawAxes(!1),e._hasClipOnAxisFalse&&e.plotContainer.select(".scatterlayer").selectAll(".trace").call(Uf.hideOutsideRangePoints,e),t.emit("plotly_relayouting",y(f))}function E(){DT.call("_guiRelayout",t,y(f))}r.onmousemove=function(P){oee.hover(t,P,e.id),t._fullLayout._lasthover=r,t._fullLayout._hoversubplot=e.id},r.onmouseout=function(P){t._dragging||iee.unhover(t,P)},iee.init(this.dragOptions)};function uee(e){fee.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}});var FT=z((Oer,mee)=>{"use strict";var vFe=Hi(),hFe=H0().attributes,Qr=ji(),dFe=Do().overrideAll,G3=St().extendFlat,RT={title:{text:Qr.title.text,font:Qr.title.font},color:Qr.color,tickmode:Qr.minor.tickmode,nticks:G3({},Qr.nticks,{dflt:6,min:1}),tick0:Qr.tick0,dtick:Qr.dtick,tickvals:Qr.tickvals,ticktext:Qr.ticktext,ticks:Qr.ticks,ticklen:Qr.ticklen,tickwidth:Qr.tickwidth,tickcolor:Qr.tickcolor,ticklabelstep:Qr.ticklabelstep,showticklabels:Qr.showticklabels,labelalias:Qr.labelalias,showtickprefix:Qr.showtickprefix,tickprefix:Qr.tickprefix,showticksuffix:Qr.showticksuffix,ticksuffix:Qr.ticksuffix,showexponent:Qr.showexponent,exponentformat:Qr.exponentformat,minexponent:Qr.minexponent,separatethousands:Qr.separatethousands,tickfont:Qr.tickfont,tickangle:Qr.tickangle,tickformat:Qr.tickformat,tickformatstops:Qr.tickformatstops,hoverformat:Qr.hoverformat,showline:G3({},Qr.showline,{dflt:!0}),linecolor:Qr.linecolor,linewidth:Qr.linewidth,showgrid:G3({},Qr.showgrid,{dflt:!0}),gridcolor:Qr.gridcolor,gridwidth:Qr.gridwidth,griddash:Qr.griddash,layer:Qr.layer,min:{valType:"number",dflt:0,min:0},showspikes:G3({},Qr.showspikes,{}),spikecolor:Qr.spikecolor,spikethickness:Qr.spikethickness,spikedash:Qr.spikedash,spikemode:Qr.spikemode,spikesnap:Qr.spikesnap},Y3=mee.exports=dFe({domain:hFe({name:"ternary"}),bgcolor:{valType:"color",dflt:vFe.background},sum:{valType:"number",dflt:1,min:0},aaxis:RT,baxis:RT,caxis:RT},"plot","from-root");Y3.uirevision={valType:"any",editType:"none"};Y3.aaxis.uirevision=Y3.baxis.uirevision=Y3.caxis.uirevision={valType:"any",editType:"none"}});var gee=z((Her,yee)=>{"use strict";var pFe=ke(),mFe=Pt(),yFe=H0().defaults;yee.exports=function(r,t,a,n){var i=n.type,o=n.attributes,l=n.handleDefaults,s=n.partition||"x",u=t._subplots[i],f=u.length,c=f&&u[0].replace(/\d+$/,""),v,d;function p(T,w){return pFe.coerce(v,d,o,T,w)}for(var m=0;m{"use strict";var gFe=qr(),bFe=Pt(),_2=ke(),xFe=gee(),_Fe=sm(),wFe=um(),TFe=om(),AFe=im(),MFe=y8(),xee=FT(),bee=["aaxis","baxis","caxis"];_ee.exports=function(r,t,a){xFe(r,t,a,{type:"ternary",attributes:xee,handleDefaults:kFe,font:t.font,paper_bgcolor:t.paper_bgcolor})};function kFe(e,r,t,a){var n=t("bgcolor"),i=t("sum");a.bgColor=gFe.combine(n,a.paper_bgcolor);for(var o,l,s,u=0;u=i&&(f.min=0,c.min=0,v.min=0,e.aaxis&&delete e.aaxis.min,e.baxis&&delete e.baxis.min,e.caxis&&delete e.caxis.min)}function SFe(e,r,t,a){var n=xee[r._name];function i(x,_){return _2.coerce(e,r,n,x,_)}function o(x,_){return _2.coerce2(e,r,n,x,_)}i("uirevision",a.uirevision),r.type="linear";var l=i("color"),s=l!==n.color.dflt?l:t.font.color,u=r._name,f=u.charAt(0).toUpperCase(),c="Component "+f,v=i("title.text",c);r._hovertitle=v===c?v:f,_2.coerceFont(i,"title.font",t.font,{overrideDflt:{size:_2.bigFont(t.font.size),color:s}}),i("min"),AFe(e,r,i,"linear"),wFe(e,r,i,"linear"),_Fe(e,r,i,"linear",{noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0}),TFe(e,r,i,{outerTicks:!0});var d=i("showticklabels");d&&(_2.coerceFont(i,"tickfont",t.font,{overrideDflt:{color:s}}),i("tickangle"),i("tickformat")),MFe(e,r,i,{dfltColor:l,bgColor:t.bgColor,blend:60,showLine:!0,showGrid:!0,noZeroLine:!0,attributes:n}),i("hoverformat"),i("layer");var p=o("spikecolor"),m=o("spikethickness"),y=o("spikedash"),b=o("spikemode"),T=o("spikesnap"),w=i("showspikes",!!p||!!m||!!y||!!b||!!T);w||(delete r.spikecolor,delete r.spikethickness,delete r.spikedash,delete r.spikemode,delete r.spikesnap)}});var Tee=z(go=>{"use strict";var qFe=pee(),LFe=Kp().getSubplotCalcData,CFe=ke().counterRegex,iv="ternary";go.name=iv;var DFe=go.attr="subplot";go.idRoot=iv;go.idRegex=go.attrRegex=CFe(iv);var EFe=go.attributes={};EFe[DFe]={valType:"subplotid",dflt:"ternary",editType:"calc"};go.layoutAttributes=FT();go.supplyLayoutDefaults=wee();go.plot=function(r){for(var t=r._fullLayout,a=r.calcdata,n=t._subplots[iv],i=0;i{"use strict";Aee.exports={attributes:qT(),supplyDefaults:VQ(),colorbar:Ud(),formatLabels:WQ(),calc:JQ(),plot:QQ(),style:kf().style,styleOnSelect:kf().styleOnSelect,hoverPoints:ree(),selectPoints:p8(),eventData:aee(),moduleType:"trace",name:"scatterternary",basePlotModule:Tee(),categories:["ternary","symbols","showLegend","scatter-like"],meta:{}}});var See=z((Ver,kee)=>{"use strict";kee.exports=Mee()});var zT=z((jer,Lee)=>{"use strict";var Pa=c3(),ov=St().extendFlat,qee=Fo().axisHoverFormat;Lee.exports={y:Pa.y,x:Pa.x,x0:Pa.x0,y0:Pa.y0,xhoverformat:qee("x"),yhoverformat:qee("y"),name:ov({},Pa.name,{}),orientation:ov({},Pa.orientation,{}),bandwidth:{valType:"number",min:0,editType:"calc"},scalegroup:{valType:"string",dflt:"",editType:"calc"},scalemode:{valType:"enumerated",values:["width","count"],dflt:"width",editType:"calc"},spanmode:{valType:"enumerated",values:["soft","hard","manual"],dflt:"soft",editType:"calc"},span:{valType:"info_array",items:[{valType:"any",editType:"calc"},{valType:"any",editType:"calc"}],editType:"calc"},line:{color:{valType:"color",editType:"style"},width:{valType:"number",min:0,dflt:2,editType:"style"},editType:"plot"},fillcolor:Pa.fillcolor,points:ov({},Pa.boxpoints,{}),jitter:ov({},Pa.jitter,{}),pointpos:ov({},Pa.pointpos,{}),width:ov({},Pa.width,{}),marker:Pa.marker,text:Pa.text,hovertext:Pa.hovertext,hovertemplate:Pa.hovertemplate,hovertemplatefallback:Pa.hovertemplatefallback,quartilemethod:Pa.quartilemethod,box:{visible:{valType:"boolean",dflt:!1,editType:"plot"},width:{valType:"number",min:0,max:1,dflt:.25,editType:"plot"},fillcolor:{valType:"color",editType:"style"},line:{color:{valType:"color",editType:"style"},width:{valType:"number",min:0,editType:"style"},editType:"style"},editType:"plot"},meanline:{visible:{valType:"boolean",dflt:!1,editType:"plot"},color:{valType:"color",editType:"style"},width:{valType:"number",min:0,editType:"style"},editType:"plot"},side:{valType:"enumerated",values:["both","positive","negative"],dflt:"both",editType:"calc"},offsetgroup:Pa.offsetgroup,alignmentgroup:Pa.alignmentgroup,selected:Pa.selected,unselected:Pa.unselected,hoveron:{valType:"flaglist",flags:["violins","points","kde"],dflt:"violins+points+kde",extras:["all"],editType:"style"},zorder:Pa.zorder}});var BT=z((Wer,Cee)=>{"use strict";var NT=v3(),IT=ke().extendFlat;Cee.exports={violinmode:IT({},NT.boxmode,{}),violingap:IT({},NT.boxgap,{}),violingroupgap:IT({},NT.boxgroupgap,{})}});var Fee=z((Xer,Ree)=>{"use strict";var Dee=ke(),PFe=qr(),Eee=s2(),Pee=zT();Ree.exports=function(r,t,a,n){function i(_,k){return Dee.coerce(r,t,Pee,_,k)}function o(_,k){return Dee.coerce2(r,t,Pee,_,k)}if(Eee.handleSampleDefaults(r,t,i,n),t.visible!==!1){i("bandwidth"),i("side");var l=i("width");l||(i("scalegroup",t.name),i("scalemode"));var s=i("span"),u;Array.isArray(s)&&(u="manual"),i("spanmode",u);var f=i("line.color",(r.marker||{}).color||a),c=i("line.width"),v=i("fillcolor",PFe.addOpacity(t.line.color,.5));Eee.handlePointsDefaults(r,t,i,{prefix:""});var d=o("box.width"),p=o("box.fillcolor",v),m=o("box.line.color",f),y=o("box.line.width",c),b=i("box.visible",!!(d||p||m||y));b||(t.box={visible:!1});var T=o("meanline.color",f),w=o("meanline.width",c),x=i("meanline.visible",!!(T||w));x||(t.meanline={visible:!1}),i("quartilemethod"),i("zorder")}}});var Nee=z((Zer,zee)=>{"use strict";var RFe=ke(),FFe=BT(),zFe=q9();zee.exports=function(r,t,a){function n(i,o){return RFe.coerce(r,t,FFe,i,o)}zFe._supply(r,t,a,n,"violin")}});var V3=z(Gf=>{"use strict";var NFe=ke(),IFe={gaussian:function(e){return 1/Math.sqrt(2*Math.PI)*Math.exp(-.5*e*e)}};Gf.makeKDE=function(e,r,t){var a=t.length,n=IFe.gaussian,i=e.bandwidth,o=1/(a*i);return function(l){for(var s=0,u=0;u{"use strict";var OT=ke(),HT=jr(),BFe=D9(),Iee=V3(),OFe=(Kt(),Ne(aa)).BADNUM;Bee.exports=function(r,t){var a=BFe(r,t);if(a[0].t.empty)return a;for(var n=r._fullLayout,i=HT.getFromId(r,t[t.orientation==="h"?"xaxis":"yaxis"]),o=1/0,l=-1/0,s=0,u=0,f=0;f{"use strict";var YFe=E9().setPositionOffset,Hee=["v","h"];Uee.exports=function(r,t){for(var a=r.calcdata,n=t.xaxis,i=t.yaxis,o=0;o{"use strict";var UT=Pr(),GT=ke(),VFe=et(),YT=P9(),jFe=l8(),WFe=V3();Yee.exports=function(r,t,a,n){var i=r._context.staticPlot,o=r._fullLayout,l=t.xaxis,s=t.yaxis;function u(f,c){var v=jFe(f,{xaxis:l,yaxis:s,trace:c,connectGaps:!0,baseTolerance:.75,shape:"spline",simplify:!0,linearized:!0});return VFe.smoothopen(v[0],1)}GT.makeTraceGroups(n,a,"trace violins").each(function(f){var c=UT.select(this),v=f[0],d=v.t,p=v.trace;if(p.visible!==!0||d.empty){c.remove();return}var m=d.bPos,y=d.bdPos,b=t[d.valLetter+"axis"],T=t[d.posLetter+"axis"],w=p.side==="both",x=w||p.side==="positive",_=w||p.side==="negative",k=c.selectAll("path.violin").data(GT.identity);k.enter().append("path").style("vector-effect",i?"none":"non-scaling-stroke").attr("class","violin"),k.exit().remove(),k.each(function(B){var N=UT.select(this),U=B.density,G=U.length,V=T.c2l(B.pos+m,!0),j=T.l2p(V),W;if(p.width)W=d.maxKDE/y;else{var Y=o._violinScaleGroupStats[p.scalegroup];W=p.scalemode==="count"?Y.maxKDE/y*(Y.maxCount/B.pts.length):Y.maxKDE/y}var J,re,le,ne,$,ce,te;if(x){for(ce=new Array(G),ne=0;ne{"use strict";var jee=Pr(),lv=qr(),XFe=kf().stylePoints;Wee.exports=function(r){var t=jee.select(r).selectAll("g.trace.violins");t.style("opacity",function(a){return a[0].trace.opacity}),t.each(function(a){var n=a[0].trace,i=jee.select(this),o=n.box||{},l=o.line||{},s=n.meanline||{},u=s.width;i.selectAll("path.violin").style("stroke-width",n.line.width+"px").call(lv.stroke,n.line.color).call(lv.fill,n.fillcolor),i.selectAll("path.box").style("stroke-width",l.width+"px").call(lv.stroke,l.color).call(lv.fill,o.fillcolor);var f={"stroke-width":u+"px","stroke-dasharray":2*u+"px,"+u+"px"};i.selectAll("path.mean").style(f).call(lv.stroke,s.color),i.selectAll("path.meanline").style(f).call(lv.stroke,s.color),XFe(i,n,r)})}});var Kee=z((rrr,Jee)=>{"use strict";var ZFe=qr(),VT=ke(),$Fe=jr(),Zee=B9(),$ee=V3();Jee.exports=function(r,t,a,n,i){i||(i={});var o=i.hoverLayer,l=r.cd,s=l[0].trace,u=s.hoveron,f=u.indexOf("violins")!==-1,c=u.indexOf("kde")!==-1,v=[],d,p;if(f||c){var m=Zee.hoverOnBoxes(r,t,a,n);if(c&&m.length>0){var y=r.xa,b=r.ya,T,w,x,_,k;s.orientation==="h"?(k=t,T="y",x=b,w="x",_=y):(k=a,T="x",x=y,w="y",_=b);var M=l[r.index];if(k>=M.span[0]&&k<=M.span[1]){var S=VT.extendFlat({},r),C=_.c2p(k,!0),E=$ee.getKdeValue(M,s,k),P=$ee.getPositionOnKdePath(M,s,C),R=x._offset,I=x._length;S[T+"0"]=P[0],S[T+"1"]=P[1],S[w+"0"]=S[w+"1"]=C,S[w+"Label"]=w+": "+$Fe.hoverLabelText(_,k,s[w+"hoverformat"])+", "+l[0].t.labels.kde+" "+E.toFixed(3);for(var B=0,N=0;N{"use strict";Qee.exports={attributes:zT(),layoutAttributes:BT(),supplyDefaults:Fee(),crossTraceDefaults:s2().crossTraceDefaults,supplyLayoutDefaults:Nee(),calc:Oee(),crossTraceCalc:Gee(),plot:Vee(),style:Xee(),styleOnSelect:kf().styleOnSelect,hoverPoints:Kee(),selectPoints:O9(),moduleType:"trace",name:"violin",basePlotModule:lo(),categories:["cartesian","svg","symbols","oriented","box-violin","showLegend","violinLayout","zoomScale"],meta:{}}});var tre=z((arr,rre)=>{"use strict";rre.exports=ere()});var w2={};Dt(w2,{colormodel:()=>jT});var jT,sv=Ct(()=>{"use strict";jT={rgb:{min:[0,0,0],max:[255,255,255],fmt:e=>e.slice(0,3),suffix:["","",""]},rgba:{min:[0,0,0,0],max:[255,255,255,1],fmt:e=>e.slice(0,4),suffix:["","","",""]},rgba256:{colormodel:"rgba",zminDflt:[0,0,0,0],zmaxDflt:[255,255,255,255],min:[0,0,0,0],max:[255,255,255,1],fmt:e=>e.slice(0,4),suffix:["","","",""]},hsl:{min:[0,0,0],max:[360,100,100],fmt:e=>{let r=e.slice(0,3);return r[1]=r[1]+"%",r[2]=r[2]+"%",r},suffix:["\xB0","%","%"]},hsla:{min:[0,0,0,0],max:[360,100,100,1],fmt:e=>{let r=e.slice(0,4);return r[1]=r[1]+"%",r[2]=r[2]+"%",r},suffix:["\xB0","%","%",""]}}});var WT={};Dt(WT,{default:()=>KFe});var are,nre,j3,ire,ore,lre,sre,JFe,KFe,XT=Ct(()=>{"use strict";are=wc(St()),nre=wc(Gn()),j3=wc(gi()),ire=wc(Qi());sv();ore=["rgb","rgba","rgba256","hsl","hsla"],lre=[],sre=[];for(let e of ore){let r=jT[e];lre.push(`For the \`${e}\` colormodel, it is [${(r.zminDflt||r.min).join(", ")}].`),sre.push(`For the \`${e}\` colormodel, it is [${(r.zmaxDflt||r.max).join(", ")}].`)}JFe={source:{valType:"string",editType:"calc",description:["Specifies the data URI of the image to be visualized.",'The URI consists of "data:image/[][;base64\\\\],"'].join(" ")},z:{valType:"data_array",editType:"calc",description:["A 2-dimensional array in which each element is an array of 3 or 4 numbers representing a color."].join(" ")},colormodel:{valType:"enumerated",values:ore,editType:"calc",description:["Color model used to map the numerical color components described in `z` into colors.","If `source` is specified, this attribute will be set to `rgba256`","otherwise it defaults to `rgb`."].join(" ")},zsmooth:{valType:"enumerated",values:["fast",!1],dflt:!1,editType:"plot",description:["Picks a smoothing algorithm used to smooth `z` data.","This only applies for image traces that use the `source` attribute."].join(" ")},zmin:{valType:"info_array",items:[{valType:"number",editType:"calc"},{valType:"number",editType:"calc"},{valType:"number",editType:"calc"},{valType:"number",editType:"calc"}],editType:"calc",description:["Array defining the lower bound for each color component.","Note that the default value will depend on the colormodel.",lre.join(" ")].join(" ")},zmax:{valType:"info_array",items:[{valType:"number",editType:"calc"},{valType:"number",editType:"calc"},{valType:"number",editType:"calc"},{valType:"number",editType:"calc"}],editType:"calc",description:["Array defining the higher bound for each color component.","Note that the default value will depend on the colormodel.",sre.join(" ")].join(" ")},x0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",description:["Set the image's x position. The left edge of the image","(or the right edge if the x axis is reversed or dx is negative)","will be found at xmin=x0-dx/2"].join(" ")},y0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",description:["Set the image's y position. The top edge of the image","(or the bottom edge if the y axis is NOT reversed or if dy is negative)","will be found at ymin=y0-dy/2. By default when an image trace is","included, the y axis will be reversed so that the image is right-side-up,","but you can disable this by setting yaxis.autorange=true or by providing","an explicit y axis range."].join(" ")},dx:{valType:"number",dflt:1,editType:"calc",description:"Set the pixel's horizontal size."},dy:{valType:"number",dflt:1,editType:"calc",description:"Set the pixel's vertical size"},text:{valType:"data_array",editType:"plot",description:"Sets the text elements associated with each z value."},hovertext:{valType:"data_array",editType:"plot",description:"Same as `text`."},hoverinfo:(0,are.extendFlat)({},nre.default.hoverinfo,{flags:["x","y","z","color","name","text"],dflt:"x+y+z+text+name"}),hovertemplate:(0,j3.hovertemplateAttrs)({},{keys:["z","color","colormodel"]}),hovertemplatefallback:(0,j3.templatefallbackAttrs)(),zorder:ire.zorder},KFe=JFe});var cre=z((irr,fre)=>{"use strict";var QFe=ke(),eze=(XT(),Ne(WT)).default,ure=(sv(),Ne(w2)),rze=ts().IMAGE_URL_PREFIX;fre.exports=function(r,t){function a(o,l){return QFe.coerce(r,t,eze,o,l)}a("source"),t.source&&!t.source.match(rze)&&delete t.source,t._hasSource=!!t.source;var n=a("z");if(t._hasZ=!(n===void 0||!n.length||!n[0]||!n[0].length),!t._hasZ&&!t._hasSource){t.visible=!1;return}a("x0"),a("y0"),a("dx"),a("dy");var i;t._hasZ?(a("colormodel","rgb"),i=ure.colormodel[t.colormodel],a("zmin",i.zminDflt||i.min),a("zmax",i.zmaxDflt||i.max)):t._hasSource&&(t.colormodel="rgba256",i=ure.colormodel[t.colormodel],t.zmin=i.zminDflt,t.zmax=i.zmaxDflt),a("zsmooth"),a("text"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback"),t._length=null,a("zorder")}});var vs=z((orr,ZT)=>{typeof Object.create=="function"?ZT.exports=function(r,t){t&&(r.super_=t,r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}))}:ZT.exports=function(r,t){if(t){r.super_=t;var a=function(){};a.prototype=t.prototype,r.prototype=new a,r.prototype.constructor=r}}});var $T=z((lrr,vre)=>{vre.exports=Ju().EventEmitter});var pre=z(W3=>{"use strict";W3.byteLength=aze;W3.toByteArray=ize;W3.fromByteArray=sze;var Dl=[],bo=[],tze=typeof Uint8Array!="undefined"?Uint8Array:Array,JT="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(Yf=0,hre=JT.length;Yf0)throw new Error("Invalid string. Length must be a multiple of 4");var t=e.indexOf("=");t===-1&&(t=r);var a=t===r?0:4-t%4;return[t,a]}function aze(e){var r=dre(e),t=r[0],a=r[1];return(t+a)*3/4-a}function nze(e,r,t){return(r+t)*3/4-t}function ize(e){var r,t=dre(e),a=t[0],n=t[1],i=new tze(nze(e,a,n)),o=0,l=n>0?a-4:a,s;for(s=0;s>16&255,i[o++]=r>>8&255,i[o++]=r&255;return n===2&&(r=bo[e.charCodeAt(s)]<<2|bo[e.charCodeAt(s+1)]>>4,i[o++]=r&255),n===1&&(r=bo[e.charCodeAt(s)]<<10|bo[e.charCodeAt(s+1)]<<4|bo[e.charCodeAt(s+2)]>>2,i[o++]=r>>8&255,i[o++]=r&255),i}function oze(e){return Dl[e>>18&63]+Dl[e>>12&63]+Dl[e>>6&63]+Dl[e&63]}function lze(e,r,t){for(var a,n=[],i=r;il?l:o+i));return a===1?(r=e[t-1],n.push(Dl[r>>2]+Dl[r<<4&63]+"==")):a===2&&(r=(e[t-2]<<8)+e[t-1],n.push(Dl[r>>10]+Dl[r>>4&63]+Dl[r<<2&63]+"=")),n.join("")}});var mre=z(KT=>{KT.read=function(e,r,t,a,n){var i,o,l=n*8-a-1,s=(1<>1,f=-7,c=t?n-1:0,v=t?-1:1,d=e[r+c];for(c+=v,i=d&(1<<-f)-1,d>>=-f,f+=l;f>0;i=i*256+e[r+c],c+=v,f-=8);for(o=i&(1<<-f)-1,i>>=-f,f+=a;f>0;o=o*256+e[r+c],c+=v,f-=8);if(i===0)i=1-u;else{if(i===s)return o?NaN:(d?-1:1)*(1/0);o=o+Math.pow(2,a),i=i-u}return(d?-1:1)*o*Math.pow(2,i-a)};KT.write=function(e,r,t,a,n,i){var o,l,s,u=i*8-n-1,f=(1<>1,v=n===23?Math.pow(2,-24)-Math.pow(2,-77):0,d=a?0:i-1,p=a?1:-1,m=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(l=isNaN(r)?1:0,o=f):(o=Math.floor(Math.log(r)/Math.LN2),r*(s=Math.pow(2,-o))<1&&(o--,s*=2),o+c>=1?r+=v/s:r+=v*Math.pow(2,1-c),r*s>=2&&(o++,s/=2),o+c>=f?(l=0,o=f):o+c>=1?(l=(r*s-1)*Math.pow(2,n),o=o+c):(l=r*Math.pow(2,c-1)*Math.pow(2,n),o=0));n>=8;e[t+d]=l&255,d+=p,l/=256,n-=8);for(o=o<0;e[t+d]=o&255,d+=p,o/=256,u-=8);e[t+d-p]|=m*128}});var hv=z(vv=>{"use strict";var QT=pre(),fv=mre(),yre=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;vv.Buffer=je;vv.SlowBuffer=dze;vv.INSPECT_MAX_BYTES=50;var X3=2147483647;vv.kMaxLength=X3;je.TYPED_ARRAY_SUPPORT=uze();!je.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&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 uze(){try{let e=new Uint8Array(1),r={foo:function(){return 42}};return Object.setPrototypeOf(r,Uint8Array.prototype),Object.setPrototypeOf(e,r),e.foo()===42}catch(e){return!1}}Object.defineProperty(je.prototype,"parent",{enumerable:!0,get:function(){if(je.isBuffer(this))return this.buffer}});Object.defineProperty(je.prototype,"offset",{enumerable:!0,get:function(){if(je.isBuffer(this))return this.byteOffset}});function hs(e){if(e>X3)throw new RangeError('The value "'+e+'" is invalid for option "size"');let r=new Uint8Array(e);return Object.setPrototypeOf(r,je.prototype),r}function je(e,r,t){if(typeof e=="number"){if(typeof r=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return aA(e)}return _re(e,r,t)}je.poolSize=8192;function _re(e,r,t){if(typeof e=="string")return cze(e,r);if(ArrayBuffer.isView(e))return vze(e);if(e==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(El(e,ArrayBuffer)||e&&El(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(El(e,SharedArrayBuffer)||e&&El(e.buffer,SharedArrayBuffer)))return rA(e,r,t);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let a=e.valueOf&&e.valueOf();if(a!=null&&a!==e)return je.from(a,r,t);let n=hze(e);if(n)return n;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return je.from(e[Symbol.toPrimitive]("string"),r,t);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}je.from=function(e,r,t){return _re(e,r,t)};Object.setPrototypeOf(je.prototype,Uint8Array.prototype);Object.setPrototypeOf(je,Uint8Array);function wre(e){if(typeof e!="number")throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function fze(e,r,t){return wre(e),e<=0?hs(e):r!==void 0?typeof t=="string"?hs(e).fill(r,t):hs(e).fill(r):hs(e)}je.alloc=function(e,r,t){return fze(e,r,t)};function aA(e){return wre(e),hs(e<0?0:nA(e)|0)}je.allocUnsafe=function(e){return aA(e)};je.allocUnsafeSlow=function(e){return aA(e)};function cze(e,r){if((typeof r!="string"||r==="")&&(r="utf8"),!je.isEncoding(r))throw new TypeError("Unknown encoding: "+r);let t=Tre(e,r)|0,a=hs(t),n=a.write(e,r);return n!==t&&(a=a.slice(0,n)),a}function eA(e){let r=e.length<0?0:nA(e.length)|0,t=hs(r);for(let a=0;a=X3)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+X3.toString(16)+" bytes");return e|0}function dze(e){return+e!=e&&(e=0),je.alloc(+e)}je.isBuffer=function(r){return r!=null&&r._isBuffer===!0&&r!==je.prototype};je.compare=function(r,t){if(El(r,Uint8Array)&&(r=je.from(r,r.offset,r.byteLength)),El(t,Uint8Array)&&(t=je.from(t,t.offset,t.byteLength)),!je.isBuffer(r)||!je.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(r===t)return 0;let a=r.length,n=t.length;for(let i=0,o=Math.min(a,n);in.length?(je.isBuffer(o)||(o=je.from(o)),o.copy(n,i)):Uint8Array.prototype.set.call(n,o,i);else if(je.isBuffer(o))o.copy(n,i);else throw new TypeError('"list" argument must be an Array of Buffers');i+=o.length}return n};function Tre(e,r){if(je.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||El(e,ArrayBuffer))return e.byteLength;if(typeof e!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);let t=e.length,a=arguments.length>2&&arguments[2]===!0;if(!a&&t===0)return 0;let n=!1;for(;;)switch(r){case"ascii":case"latin1":case"binary":return t;case"utf8":case"utf-8":return tA(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return t*2;case"hex":return t>>>1;case"base64":return Ere(e).length;default:if(n)return a?-1:tA(e).length;r=(""+r).toLowerCase(),n=!0}}je.byteLength=Tre;function pze(e,r,t){let a=!1;if((r===void 0||r<0)&&(r=0),r>this.length||((t===void 0||t>this.length)&&(t=this.length),t<=0)||(t>>>=0,r>>>=0,t<=r))return"";for(e||(e="utf8");;)switch(e){case"hex":return Mze(this,r,t);case"utf8":case"utf-8":return Mre(this,r,t);case"ascii":return Tze(this,r,t);case"latin1":case"binary":return Aze(this,r,t);case"base64":return _ze(this,r,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return kze(this,r,t);default:if(a)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),a=!0}}je.prototype._isBuffer=!0;function Vf(e,r,t){let a=e[r];e[r]=e[t],e[t]=a}je.prototype.swap16=function(){let r=this.length;if(r%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;tt&&(r+=" ... "),""};yre&&(je.prototype[yre]=je.prototype.inspect);je.prototype.compare=function(r,t,a,n,i){if(El(r,Uint8Array)&&(r=je.from(r,r.offset,r.byteLength)),!je.isBuffer(r))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof r);if(t===void 0&&(t=0),a===void 0&&(a=r?r.length:0),n===void 0&&(n=0),i===void 0&&(i=this.length),t<0||a>r.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&t>=a)return 0;if(n>=i)return-1;if(t>=a)return 1;if(t>>>=0,a>>>=0,n>>>=0,i>>>=0,this===r)return 0;let o=i-n,l=a-t,s=Math.min(o,l),u=this.slice(n,i),f=r.slice(t,a);for(let c=0;c2147483647?t=2147483647:t<-2147483648&&(t=-2147483648),t=+t,oA(t)&&(t=n?0:e.length-1),t<0&&(t=e.length+t),t>=e.length){if(n)return-1;t=e.length-1}else if(t<0)if(n)t=0;else return-1;if(typeof r=="string"&&(r=je.from(r,a)),je.isBuffer(r))return r.length===0?-1:gre(e,r,t,a,n);if(typeof r=="number")return r=r&255,typeof Uint8Array.prototype.indexOf=="function"?n?Uint8Array.prototype.indexOf.call(e,r,t):Uint8Array.prototype.lastIndexOf.call(e,r,t):gre(e,[r],t,a,n);throw new TypeError("val must be string, number or Buffer")}function gre(e,r,t,a,n){let i=1,o=e.length,l=r.length;if(a!==void 0&&(a=String(a).toLowerCase(),a==="ucs2"||a==="ucs-2"||a==="utf16le"||a==="utf-16le")){if(e.length<2||r.length<2)return-1;i=2,o/=2,l/=2,t/=2}function s(f,c){return i===1?f[c]:f.readUInt16BE(c*i)}let u;if(n){let f=-1;for(u=t;uo&&(t=o-l),u=t;u>=0;u--){let f=!0;for(let c=0;cn&&(a=n)):a=n;let i=r.length;a>i/2&&(a=i/2);let o;for(o=0;o>>0,isFinite(a)?(a=a>>>0,n===void 0&&(n="utf8")):(n=a,a=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let i=this.length-t;if((a===void 0||a>i)&&(a=i),r.length>0&&(a<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");let o=!1;for(;;)switch(n){case"hex":return mze(this,r,t,a);case"utf8":case"utf-8":return yze(this,r,t,a);case"ascii":case"latin1":case"binary":return gze(this,r,t,a);case"base64":return bze(this,r,t,a);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return xze(this,r,t,a);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}};je.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function _ze(e,r,t){return r===0&&t===e.length?QT.fromByteArray(e):QT.fromByteArray(e.slice(r,t))}function Mre(e,r,t){t=Math.min(e.length,t);let a=[],n=r;for(;n239?4:i>223?3:i>191?2:1;if(n+l<=t){let s,u,f,c;switch(l){case 1:i<128&&(o=i);break;case 2:s=e[n+1],(s&192)===128&&(c=(i&31)<<6|s&63,c>127&&(o=c));break;case 3:s=e[n+1],u=e[n+2],(s&192)===128&&(u&192)===128&&(c=(i&15)<<12|(s&63)<<6|u&63,c>2047&&(c<55296||c>57343)&&(o=c));break;case 4:s=e[n+1],u=e[n+2],f=e[n+3],(s&192)===128&&(u&192)===128&&(f&192)===128&&(c=(i&15)<<18|(s&63)<<12|(u&63)<<6|f&63,c>65535&&c<1114112&&(o=c))}}o===null?(o=65533,l=1):o>65535&&(o-=65536,a.push(o>>>10&1023|55296),o=56320|o&1023),a.push(o),n+=l}return wze(a)}var bre=4096;function wze(e){let r=e.length;if(r<=bre)return String.fromCharCode.apply(String,e);let t="",a=0;for(;aa)&&(t=a);let n="";for(let i=r;ia&&(r=a),t<0?(t+=a,t<0&&(t=0)):t>a&&(t=a),tt)throw new RangeError("Trying to access beyond buffer length")}je.prototype.readUintLE=je.prototype.readUIntLE=function(r,t,a){r=r>>>0,t=t>>>0,a||hn(r,t,this.length);let n=this[r],i=1,o=0;for(;++o>>0,t=t>>>0,a||hn(r,t,this.length);let n=this[r+--t],i=1;for(;t>0&&(i*=256);)n+=this[r+--t]*i;return n};je.prototype.readUint8=je.prototype.readUInt8=function(r,t){return r=r>>>0,t||hn(r,1,this.length),this[r]};je.prototype.readUint16LE=je.prototype.readUInt16LE=function(r,t){return r=r>>>0,t||hn(r,2,this.length),this[r]|this[r+1]<<8};je.prototype.readUint16BE=je.prototype.readUInt16BE=function(r,t){return r=r>>>0,t||hn(r,2,this.length),this[r]<<8|this[r+1]};je.prototype.readUint32LE=je.prototype.readUInt32LE=function(r,t){return r=r>>>0,t||hn(r,4,this.length),(this[r]|this[r+1]<<8|this[r+2]<<16)+this[r+3]*16777216};je.prototype.readUint32BE=je.prototype.readUInt32BE=function(r,t){return r=r>>>0,t||hn(r,4,this.length),this[r]*16777216+(this[r+1]<<16|this[r+2]<<8|this[r+3])};je.prototype.readBigUInt64LE=uu(function(r){r=r>>>0,cv(r,"offset");let t=this[r],a=this[r+7];(t===void 0||a===void 0)&&T2(r,this.length-8);let n=t+this[++r]*2**8+this[++r]*2**16+this[++r]*2**24,i=this[++r]+this[++r]*2**8+this[++r]*2**16+a*2**24;return BigInt(n)+(BigInt(i)<>>0,cv(r,"offset");let t=this[r],a=this[r+7];(t===void 0||a===void 0)&&T2(r,this.length-8);let n=t*2**24+this[++r]*2**16+this[++r]*2**8+this[++r],i=this[++r]*2**24+this[++r]*2**16+this[++r]*2**8+a;return(BigInt(n)<>>0,t=t>>>0,a||hn(r,t,this.length);let n=this[r],i=1,o=0;for(;++o=i&&(n-=Math.pow(2,8*t)),n};je.prototype.readIntBE=function(r,t,a){r=r>>>0,t=t>>>0,a||hn(r,t,this.length);let n=t,i=1,o=this[r+--n];for(;n>0&&(i*=256);)o+=this[r+--n]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*t)),o};je.prototype.readInt8=function(r,t){return r=r>>>0,t||hn(r,1,this.length),this[r]&128?(255-this[r]+1)*-1:this[r]};je.prototype.readInt16LE=function(r,t){r=r>>>0,t||hn(r,2,this.length);let a=this[r]|this[r+1]<<8;return a&32768?a|4294901760:a};je.prototype.readInt16BE=function(r,t){r=r>>>0,t||hn(r,2,this.length);let a=this[r+1]|this[r]<<8;return a&32768?a|4294901760:a};je.prototype.readInt32LE=function(r,t){return r=r>>>0,t||hn(r,4,this.length),this[r]|this[r+1]<<8|this[r+2]<<16|this[r+3]<<24};je.prototype.readInt32BE=function(r,t){return r=r>>>0,t||hn(r,4,this.length),this[r]<<24|this[r+1]<<16|this[r+2]<<8|this[r+3]};je.prototype.readBigInt64LE=uu(function(r){r=r>>>0,cv(r,"offset");let t=this[r],a=this[r+7];(t===void 0||a===void 0)&&T2(r,this.length-8);let n=this[r+4]+this[r+5]*2**8+this[r+6]*2**16+(a<<24);return(BigInt(n)<>>0,cv(r,"offset");let t=this[r],a=this[r+7];(t===void 0||a===void 0)&&T2(r,this.length-8);let n=(t<<24)+this[++r]*2**16+this[++r]*2**8+this[++r];return(BigInt(n)<>>0,t||hn(r,4,this.length),fv.read(this,r,!0,23,4)};je.prototype.readFloatBE=function(r,t){return r=r>>>0,t||hn(r,4,this.length),fv.read(this,r,!1,23,4)};je.prototype.readDoubleLE=function(r,t){return r=r>>>0,t||hn(r,8,this.length),fv.read(this,r,!0,52,8)};je.prototype.readDoubleBE=function(r,t){return r=r>>>0,t||hn(r,8,this.length),fv.read(this,r,!1,52,8)};function vi(e,r,t,a,n,i){if(!je.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>n||re.length)throw new RangeError("Index out of range")}je.prototype.writeUintLE=je.prototype.writeUIntLE=function(r,t,a,n){if(r=+r,t=t>>>0,a=a>>>0,!n){let l=Math.pow(2,8*a)-1;vi(this,r,t,a,l,0)}let i=1,o=0;for(this[t]=r&255;++o>>0,a=a>>>0,!n){let l=Math.pow(2,8*a)-1;vi(this,r,t,a,l,0)}let i=a-1,o=1;for(this[t+i]=r&255;--i>=0&&(o*=256);)this[t+i]=r/o&255;return t+a};je.prototype.writeUint8=je.prototype.writeUInt8=function(r,t,a){return r=+r,t=t>>>0,a||vi(this,r,t,1,255,0),this[t]=r&255,t+1};je.prototype.writeUint16LE=je.prototype.writeUInt16LE=function(r,t,a){return r=+r,t=t>>>0,a||vi(this,r,t,2,65535,0),this[t]=r&255,this[t+1]=r>>>8,t+2};je.prototype.writeUint16BE=je.prototype.writeUInt16BE=function(r,t,a){return r=+r,t=t>>>0,a||vi(this,r,t,2,65535,0),this[t]=r>>>8,this[t+1]=r&255,t+2};je.prototype.writeUint32LE=je.prototype.writeUInt32LE=function(r,t,a){return r=+r,t=t>>>0,a||vi(this,r,t,4,4294967295,0),this[t+3]=r>>>24,this[t+2]=r>>>16,this[t+1]=r>>>8,this[t]=r&255,t+4};je.prototype.writeUint32BE=je.prototype.writeUInt32BE=function(r,t,a){return r=+r,t=t>>>0,a||vi(this,r,t,4,4294967295,0),this[t]=r>>>24,this[t+1]=r>>>16,this[t+2]=r>>>8,this[t+3]=r&255,t+4};function kre(e,r,t,a,n){Dre(r,a,n,e,t,7);let i=Number(r&BigInt(4294967295));e[t++]=i,i=i>>8,e[t++]=i,i=i>>8,e[t++]=i,i=i>>8,e[t++]=i;let o=Number(r>>BigInt(32)&BigInt(4294967295));return e[t++]=o,o=o>>8,e[t++]=o,o=o>>8,e[t++]=o,o=o>>8,e[t++]=o,t}function Sre(e,r,t,a,n){Dre(r,a,n,e,t,7);let i=Number(r&BigInt(4294967295));e[t+7]=i,i=i>>8,e[t+6]=i,i=i>>8,e[t+5]=i,i=i>>8,e[t+4]=i;let o=Number(r>>BigInt(32)&BigInt(4294967295));return e[t+3]=o,o=o>>8,e[t+2]=o,o=o>>8,e[t+1]=o,o=o>>8,e[t]=o,t+8}je.prototype.writeBigUInt64LE=uu(function(r,t=0){return kre(this,r,t,BigInt(0),BigInt("0xffffffffffffffff"))});je.prototype.writeBigUInt64BE=uu(function(r,t=0){return Sre(this,r,t,BigInt(0),BigInt("0xffffffffffffffff"))});je.prototype.writeIntLE=function(r,t,a,n){if(r=+r,t=t>>>0,!n){let s=Math.pow(2,8*a-1);vi(this,r,t,a,s-1,-s)}let i=0,o=1,l=0;for(this[t]=r&255;++i>0)-l&255;return t+a};je.prototype.writeIntBE=function(r,t,a,n){if(r=+r,t=t>>>0,!n){let s=Math.pow(2,8*a-1);vi(this,r,t,a,s-1,-s)}let i=a-1,o=1,l=0;for(this[t+i]=r&255;--i>=0&&(o*=256);)r<0&&l===0&&this[t+i+1]!==0&&(l=1),this[t+i]=(r/o>>0)-l&255;return t+a};je.prototype.writeInt8=function(r,t,a){return r=+r,t=t>>>0,a||vi(this,r,t,1,127,-128),r<0&&(r=255+r+1),this[t]=r&255,t+1};je.prototype.writeInt16LE=function(r,t,a){return r=+r,t=t>>>0,a||vi(this,r,t,2,32767,-32768),this[t]=r&255,this[t+1]=r>>>8,t+2};je.prototype.writeInt16BE=function(r,t,a){return r=+r,t=t>>>0,a||vi(this,r,t,2,32767,-32768),this[t]=r>>>8,this[t+1]=r&255,t+2};je.prototype.writeInt32LE=function(r,t,a){return r=+r,t=t>>>0,a||vi(this,r,t,4,2147483647,-2147483648),this[t]=r&255,this[t+1]=r>>>8,this[t+2]=r>>>16,this[t+3]=r>>>24,t+4};je.prototype.writeInt32BE=function(r,t,a){return r=+r,t=t>>>0,a||vi(this,r,t,4,2147483647,-2147483648),r<0&&(r=4294967295+r+1),this[t]=r>>>24,this[t+1]=r>>>16,this[t+2]=r>>>8,this[t+3]=r&255,t+4};je.prototype.writeBigInt64LE=uu(function(r,t=0){return kre(this,r,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});je.prototype.writeBigInt64BE=uu(function(r,t=0){return Sre(this,r,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function qre(e,r,t,a,n,i){if(t+a>e.length)throw new RangeError("Index out of range");if(t<0)throw new RangeError("Index out of range")}function Lre(e,r,t,a,n){return r=+r,t=t>>>0,n||qre(e,r,t,4,34028234663852886e22,-34028234663852886e22),fv.write(e,r,t,a,23,4),t+4}je.prototype.writeFloatLE=function(r,t,a){return Lre(this,r,t,!0,a)};je.prototype.writeFloatBE=function(r,t,a){return Lre(this,r,t,!1,a)};function Cre(e,r,t,a,n){return r=+r,t=t>>>0,n||qre(e,r,t,8,17976931348623157e292,-17976931348623157e292),fv.write(e,r,t,a,52,8),t+8}je.prototype.writeDoubleLE=function(r,t,a){return Cre(this,r,t,!0,a)};je.prototype.writeDoubleBE=function(r,t,a){return Cre(this,r,t,!1,a)};je.prototype.copy=function(r,t,a,n){if(!je.isBuffer(r))throw new TypeError("argument should be a Buffer");if(a||(a=0),!n&&n!==0&&(n=this.length),t>=r.length&&(t=r.length),t||(t=0),n>0&&n=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),r.length-t>>0,a=a===void 0?this.length:a>>>0,r||(r=0);let i;if(typeof r=="number")for(i=t;i2**32?n=xre(String(t)):typeof t=="bigint"&&(n=String(t),(t>BigInt(2)**BigInt(32)||t<-(BigInt(2)**BigInt(32)))&&(n=xre(n)),n+="n"),a+=` It must be ${r}. Received ${n}`,a},RangeError);function xre(e){let r="",t=e.length,a=e[0]==="-"?1:0;for(;t>=a+4;t-=3)r=`_${e.slice(t-3,t)}${r}`;return`${e.slice(0,t)}${r}`}function Sze(e,r,t){cv(r,"offset"),(e[r]===void 0||e[r+t]===void 0)&&T2(r,e.length-(t+1))}function Dre(e,r,t,a,n,i){if(e>t||e3?r===0||r===BigInt(0)?l=`>= 0${o} and < 2${o} ** ${(i+1)*8}${o}`:l=`>= -(2${o} ** ${(i+1)*8-1}${o}) and < 2 ** ${(i+1)*8-1}${o}`:l=`>= ${r}${o} and <= ${t}${o}`,new uv.ERR_OUT_OF_RANGE("value",l,e)}Sze(a,n,i)}function cv(e,r){if(typeof e!="number")throw new uv.ERR_INVALID_ARG_TYPE(r,"number",e)}function T2(e,r,t){throw Math.floor(e)!==e?(cv(e,t),new uv.ERR_OUT_OF_RANGE(t||"offset","an integer",e)):r<0?new uv.ERR_BUFFER_OUT_OF_BOUNDS:new uv.ERR_OUT_OF_RANGE(t||"offset",`>= ${t?1:0} and <= ${r}`,e)}var qze=/[^+/0-9A-Za-z-_]/g;function Lze(e){if(e=e.split("=")[0],e=e.trim().replace(qze,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function tA(e,r){r=r||1/0;let t,a=e.length,n=null,i=[];for(let o=0;o55295&&t<57344){if(!n){if(t>56319){(r-=3)>-1&&i.push(239,191,189);continue}else if(o+1===a){(r-=3)>-1&&i.push(239,191,189);continue}n=t;continue}if(t<56320){(r-=3)>-1&&i.push(239,191,189),n=t;continue}t=(n-55296<<10|t-56320)+65536}else n&&(r-=3)>-1&&i.push(239,191,189);if(n=null,t<128){if((r-=1)<0)break;i.push(t)}else if(t<2048){if((r-=2)<0)break;i.push(t>>6|192,t&63|128)}else if(t<65536){if((r-=3)<0)break;i.push(t>>12|224,t>>6&63|128,t&63|128)}else if(t<1114112){if((r-=4)<0)break;i.push(t>>18|240,t>>12&63|128,t>>6&63|128,t&63|128)}else throw new Error("Invalid code point")}return i}function Cze(e){let r=[];for(let t=0;t>8,n=t%256,i.push(n),i.push(a);return i}function Ere(e){return QT.toByteArray(Lze(e))}function Z3(e,r,t,a){let n;for(n=0;n=r.length||n>=e.length);++n)r[n+t]=e[n];return n}function El(e,r){return e instanceof r||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===r.name}function oA(e){return e!==e}var Eze=(function(){let e="0123456789abcdef",r=new Array(256);for(let t=0;t<16;++t){let a=t*16;for(let n=0;n<16;++n)r[a+n]=e[t]+e[n]}return r})();function uu(e){return typeof BigInt=="undefined"?Pze:e}function Pze(){throw new Error("BigInt not supported")}});var $3=z((vrr,Pre)=>{"use strict";Pre.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var r={},t=Symbol("test"),a=Object(t);if(typeof t=="string"||Object.prototype.toString.call(t)!=="[object Symbol]"||Object.prototype.toString.call(a)!=="[object Symbol]")return!1;var n=42;r[t]=n;for(var i in r)return!1;if(typeof Object.keys=="function"&&Object.keys(r).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(r).length!==0)return!1;var o=Object.getOwnPropertySymbols(r);if(o.length!==1||o[0]!==t||!Object.prototype.propertyIsEnumerable.call(r,t))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var l=Object.getOwnPropertyDescriptor(r,t);if(l.value!==n||l.enumerable!==!0)return!1}return!0}});var A2=z((hrr,Rre)=>{"use strict";var Rze=$3();Rre.exports=function(){return Rze()&&!!Symbol.toStringTag}});var J3=z((drr,Fre)=>{"use strict";Fre.exports=Object});var Nre=z((prr,zre)=>{"use strict";zre.exports=Error});var Bre=z((mrr,Ire)=>{"use strict";Ire.exports=EvalError});var Hre=z((yrr,Ore)=>{"use strict";Ore.exports=RangeError});var Gre=z((grr,Ure)=>{"use strict";Ure.exports=ReferenceError});var lA=z((brr,Yre)=>{"use strict";Yre.exports=SyntaxError});var dv=z((xrr,Vre)=>{"use strict";Vre.exports=TypeError});var Wre=z((_rr,jre)=>{"use strict";jre.exports=URIError});var Zre=z((wrr,Xre)=>{"use strict";Xre.exports=Math.abs});var Jre=z((Trr,$re)=>{"use strict";$re.exports=Math.floor});var Qre=z((Arr,Kre)=>{"use strict";Kre.exports=Math.max});var rte=z((Mrr,ete)=>{"use strict";ete.exports=Math.min});var ate=z((krr,tte)=>{"use strict";tte.exports=Math.pow});var ite=z((Srr,nte)=>{"use strict";nte.exports=Math.round});var lte=z((qrr,ote)=>{"use strict";ote.exports=Number.isNaN||function(r){return r!==r}});var ute=z((Lrr,ste)=>{"use strict";var Fze=lte();ste.exports=function(r){return Fze(r)||r===0?r:r<0?-1:1}});var cte=z((Crr,fte)=>{"use strict";fte.exports=Object.getOwnPropertyDescriptor});var jf=z((Drr,vte)=>{"use strict";var K3=cte();if(K3)try{K3([],"length")}catch(e){K3=null}vte.exports=K3});var M2=z((Err,hte)=>{"use strict";var Q3=Object.defineProperty||!1;if(Q3)try{Q3({},"a",{value:1})}catch(e){Q3=!1}hte.exports=Q3});var mte=z((Prr,pte)=>{"use strict";var dte=typeof Symbol!="undefined"&&Symbol,zze=$3();pte.exports=function(){return typeof dte!="function"||typeof Symbol!="function"||typeof dte("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:zze()}});var sA=z((Rrr,yte)=>{"use strict";yte.exports=typeof Reflect!="undefined"&&Reflect.getPrototypeOf||null});var uA=z((Frr,gte)=>{"use strict";var Nze=J3();gte.exports=Nze.getPrototypeOf||null});var _te=z((zrr,xte)=>{"use strict";var Ize="Function.prototype.bind called on incompatible ",Bze=Object.prototype.toString,Oze=Math.max,Hze="[object Function]",bte=function(r,t){for(var a=[],n=0;n{"use strict";var Yze=_te();wte.exports=Function.prototype.bind||Yze});var eb=z((Irr,Tte)=>{"use strict";Tte.exports=Function.prototype.call});var rb=z((Brr,Ate)=>{"use strict";Ate.exports=Function.prototype.apply});var kte=z((Orr,Mte)=>{"use strict";Mte.exports=typeof Reflect!="undefined"&&Reflect&&Reflect.apply});var fA=z((Hrr,Ste)=>{"use strict";var Vze=pv(),jze=rb(),Wze=eb(),Xze=kte();Ste.exports=Xze||Vze.call(Wze,jze)});var tb=z((Urr,qte)=>{"use strict";var Zze=pv(),$ze=dv(),Jze=eb(),Kze=fA();qte.exports=function(r){if(r.length<1||typeof r[0]!="function")throw new $ze("a function is required");return Kze(Zze,Jze,r)}});var Rte=z((Grr,Pte)=>{"use strict";var Qze=tb(),Lte=jf(),Dte;try{Dte=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!="object"||!("code"in e)||e.code!=="ERR_PROTO_ACCESS")throw e}var cA=!!Dte&&Lte&&Lte(Object.prototype,"__proto__"),Ete=Object,Cte=Ete.getPrototypeOf;Pte.exports=cA&&typeof cA.get=="function"?Qze([cA.get]):typeof Cte=="function"?function(r){return Cte(r==null?r:Ete(r))}:!1});var ab=z((Yrr,Ite)=>{"use strict";var Fte=sA(),zte=uA(),Nte=Rte();Ite.exports=Fte?function(r){return Fte(r)}:zte?function(r){if(!r||typeof r!="object"&&typeof r!="function")throw new TypeError("getProto: not an object");return zte(r)}:Nte?function(r){return Nte(r)}:null});var vA=z((Vrr,Bte)=>{"use strict";var eNe=Function.prototype.call,rNe=Object.prototype.hasOwnProperty,tNe=pv();Bte.exports=tNe.call(eNe,rNe)});var ob=z((jrr,Vte)=>{"use strict";var ht,aNe=J3(),nNe=Nre(),iNe=Bre(),oNe=Hre(),lNe=Gre(),bv=lA(),gv=dv(),sNe=Wre(),uNe=Zre(),fNe=Jre(),cNe=Qre(),vNe=rte(),hNe=ate(),dNe=ite(),pNe=ute(),Gte=Function,hA=function(e){try{return Gte('"use strict"; return ('+e+").constructor;")()}catch(r){}},k2=jf(),mNe=M2(),dA=function(){throw new gv},yNe=k2?(function(){try{return arguments.callee,dA}catch(e){try{return k2(arguments,"callee").get}catch(r){return dA}}})():dA,mv=mte()(),dn=ab(),gNe=uA(),bNe=sA(),Yte=rb(),S2=eb(),yv={},xNe=typeof Uint8Array=="undefined"||!dn?ht:dn(Uint8Array),Wf={__proto__:null,"%AggregateError%":typeof AggregateError=="undefined"?ht:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?ht:ArrayBuffer,"%ArrayIteratorPrototype%":mv&&dn?dn([][Symbol.iterator]()):ht,"%AsyncFromSyncIteratorPrototype%":ht,"%AsyncFunction%":yv,"%AsyncGenerator%":yv,"%AsyncGeneratorFunction%":yv,"%AsyncIteratorPrototype%":yv,"%Atomics%":typeof Atomics=="undefined"?ht:Atomics,"%BigInt%":typeof BigInt=="undefined"?ht:BigInt,"%BigInt64Array%":typeof BigInt64Array=="undefined"?ht:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array=="undefined"?ht:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView=="undefined"?ht:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":nNe,"%eval%":eval,"%EvalError%":iNe,"%Float16Array%":typeof Float16Array=="undefined"?ht:Float16Array,"%Float32Array%":typeof Float32Array=="undefined"?ht:Float32Array,"%Float64Array%":typeof Float64Array=="undefined"?ht:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry=="undefined"?ht:FinalizationRegistry,"%Function%":Gte,"%GeneratorFunction%":yv,"%Int8Array%":typeof Int8Array=="undefined"?ht:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?ht:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?ht:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":mv&&dn?dn(dn([][Symbol.iterator]())):ht,"%JSON%":typeof JSON=="object"?JSON:ht,"%Map%":typeof Map=="undefined"?ht:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!mv||!dn?ht:dn(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":aNe,"%Object.getOwnPropertyDescriptor%":k2,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?ht:Promise,"%Proxy%":typeof Proxy=="undefined"?ht:Proxy,"%RangeError%":oNe,"%ReferenceError%":lNe,"%Reflect%":typeof Reflect=="undefined"?ht:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set=="undefined"?ht:Set,"%SetIteratorPrototype%":typeof Set=="undefined"||!mv||!dn?ht:dn(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?ht:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":mv&&dn?dn(""[Symbol.iterator]()):ht,"%Symbol%":mv?Symbol:ht,"%SyntaxError%":bv,"%ThrowTypeError%":yNe,"%TypedArray%":xNe,"%TypeError%":gv,"%Uint8Array%":typeof Uint8Array=="undefined"?ht:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray=="undefined"?ht:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array=="undefined"?ht:Uint16Array,"%Uint32Array%":typeof Uint32Array=="undefined"?ht:Uint32Array,"%URIError%":sNe,"%WeakMap%":typeof WeakMap=="undefined"?ht:WeakMap,"%WeakRef%":typeof WeakRef=="undefined"?ht:WeakRef,"%WeakSet%":typeof WeakSet=="undefined"?ht:WeakSet,"%Function.prototype.call%":S2,"%Function.prototype.apply%":Yte,"%Object.defineProperty%":mNe,"%Object.getPrototypeOf%":gNe,"%Math.abs%":uNe,"%Math.floor%":fNe,"%Math.max%":cNe,"%Math.min%":vNe,"%Math.pow%":hNe,"%Math.round%":dNe,"%Math.sign%":pNe,"%Reflect.getPrototypeOf%":bNe};if(dn)try{null.error}catch(e){Ote=dn(dn(e)),Wf["%Error.prototype%"]=Ote}var Ote,_Ne=function e(r){var t;if(r==="%AsyncFunction%")t=hA("async function () {}");else if(r==="%GeneratorFunction%")t=hA("function* () {}");else if(r==="%AsyncGeneratorFunction%")t=hA("async function* () {}");else if(r==="%AsyncGenerator%"){var a=e("%AsyncGeneratorFunction%");a&&(t=a.prototype)}else if(r==="%AsyncIteratorPrototype%"){var n=e("%AsyncGenerator%");n&&dn&&(t=dn(n.prototype))}return Wf[r]=t,t},Hte={__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"]},q2=pv(),nb=vA(),wNe=q2.call(S2,Array.prototype.concat),TNe=q2.call(Yte,Array.prototype.splice),Ute=q2.call(S2,String.prototype.replace),ib=q2.call(S2,String.prototype.slice),ANe=q2.call(S2,RegExp.prototype.exec),MNe=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,kNe=/\\(\\)?/g,SNe=function(r){var t=ib(r,0,1),a=ib(r,-1);if(t==="%"&&a!=="%")throw new bv("invalid intrinsic syntax, expected closing `%`");if(a==="%"&&t!=="%")throw new bv("invalid intrinsic syntax, expected opening `%`");var n=[];return Ute(r,MNe,function(i,o,l,s){n[n.length]=l?Ute(s,kNe,"$1"):o||i}),n},qNe=function(r,t){var a=r,n;if(nb(Hte,a)&&(n=Hte[a],a="%"+n[0]+"%"),nb(Wf,a)){var i=Wf[a];if(i===yv&&(i=_Ne(a)),typeof i=="undefined"&&!t)throw new gv("intrinsic "+r+" exists, but is not available. Please file an issue!");return{alias:n,name:a,value:i}}throw new bv("intrinsic "+r+" does not exist!")};Vte.exports=function(r,t){if(typeof r!="string"||r.length===0)throw new gv("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof t!="boolean")throw new gv('"allowMissing" argument must be a boolean');if(ANe(/^%?[^%]*%?$/,r)===null)throw new bv("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var a=SNe(r),n=a.length>0?a[0]:"",i=qNe("%"+n+"%",t),o=i.name,l=i.value,s=!1,u=i.alias;u&&(n=u[0],TNe(a,wNe([0,1],u)));for(var f=1,c=!0;f=a.length){var m=k2(l,v);c=!!m,c&&"get"in m&&!("originalValue"in m.get)?l=m.get:l=l[v]}else c=nb(l,v),l=l[v];c&&!s&&(Wf[o]=l)}}return l}});var Xf=z((Wrr,Xte)=>{"use strict";var jte=ob(),Wte=tb(),LNe=Wte([jte("%String.prototype.indexOf%")]);Xte.exports=function(r,t){var a=jte(r,!!t);return typeof a=="function"&&LNe(r,".prototype.")>-1?Wte([a]):a}});var Jte=z((Xrr,$te)=>{"use strict";var CNe=A2()(),DNe=Xf(),pA=DNe("Object.prototype.toString"),lb=function(r){return CNe&&r&&typeof r=="object"&&Symbol.toStringTag in r?!1:pA(r)==="[object Arguments]"},Zte=function(r){return lb(r)?!0:r!==null&&typeof r=="object"&&"length"in r&&typeof r.length=="number"&&r.length>=0&&pA(r)!=="[object Array]"&&"callee"in r&&pA(r.callee)==="[object Function]"},ENe=(function(){return lb(arguments)})();lb.isLegacyArguments=Zte;$te.exports=ENe?lb:Zte});var aae=z((Zrr,tae)=>{"use strict";var Kte=Xf(),PNe=A2()(),RNe=vA(),FNe=jf(),gA;PNe?(Qte=Kte("RegExp.prototype.exec"),mA={},sb=function(){throw mA},yA={toString:sb,valueOf:sb},typeof Symbol.toPrimitive=="symbol"&&(yA[Symbol.toPrimitive]=sb),gA=function(r){if(!r||typeof r!="object")return!1;var t=FNe(r,"lastIndex"),a=t&&RNe(t,"value");if(!a)return!1;try{Qte(r,yA)}catch(n){return n===mA}}):(eae=Kte("Object.prototype.toString"),rae="[object RegExp]",gA=function(r){return!r||typeof r!="object"&&typeof r!="function"?!1:eae(r)===rae});var Qte,mA,sb,yA,eae,rae;tae.exports=gA});var iae=z(($rr,nae)=>{"use strict";var zNe=Xf(),NNe=aae(),INe=zNe("RegExp.prototype.exec"),BNe=dv();nae.exports=function(r){if(!NNe(r))throw new BNe("`regex` must be a RegExp");return function(a){return INe(r,a)!==null}}});var lae=z((Jrr,oae)=>{"use strict";var ONe=function*(){}.constructor;oae.exports=()=>ONe});var cae=z((Krr,fae)=>{"use strict";var uae=Xf(),HNe=iae(),UNe=HNe(/^\s*(?:function)?\*/),GNe=A2()(),sae=ab(),YNe=uae("Object.prototype.toString"),VNe=uae("Function.prototype.toString"),jNe=lae();fae.exports=function(r){if(typeof r!="function")return!1;if(UNe(VNe(r)))return!0;if(!GNe){var t=YNe(r);return t==="[object GeneratorFunction]"}if(!sae)return!1;var a=jNe();return a&&sae(r)===a.prototype}});var pae=z((Qrr,dae)=>{"use strict";var hae=Function.prototype.toString,xv=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,xA,ub;if(typeof xv=="function"&&typeof Object.defineProperty=="function")try{xA=Object.defineProperty({},"length",{get:function(){throw ub}}),ub={},xv(function(){throw 42},null,xA)}catch(e){e!==ub&&(xv=null)}else xv=null;var WNe=/^\s*class\b/,_A=function(r){try{var t=hae.call(r);return WNe.test(t)}catch(a){return!1}},bA=function(r){try{return _A(r)?!1:(hae.call(r),!0)}catch(t){return!1}},fb=Object.prototype.toString,XNe="[object Object]",ZNe="[object Function]",$Ne="[object GeneratorFunction]",JNe="[object HTMLAllCollection]",KNe="[object HTML document.all class]",QNe="[object HTMLCollection]",eIe=typeof Symbol=="function"&&!!Symbol.toStringTag,rIe=!(0 in[,]),wA=function(){return!1};typeof document=="object"&&(vae=document.all,fb.call(vae)===fb.call(document.all)&&(wA=function(r){if((rIe||!r)&&(typeof r=="undefined"||typeof r=="object"))try{var t=fb.call(r);return(t===JNe||t===KNe||t===QNe||t===XNe)&&r("")==null}catch(a){}return!1}));var vae;dae.exports=xv?function(r){if(wA(r))return!0;if(!r||typeof r!="function"&&typeof r!="object")return!1;try{xv(r,null,xA)}catch(t){if(t!==ub)return!1}return!_A(r)&&bA(r)}:function(r){if(wA(r))return!0;if(!r||typeof r!="function"&&typeof r!="object")return!1;if(eIe)return bA(r);if(_A(r))return!1;var t=fb.call(r);return t!==ZNe&&t!==$Ne&&!/^\[object HTML/.test(t)?!1:bA(r)}});var gae=z((etr,yae)=>{"use strict";var tIe=pae(),aIe=Object.prototype.toString,mae=Object.prototype.hasOwnProperty,nIe=function(r,t,a){for(var n=0,i=r.length;n=3&&(n=a),lIe(r)?nIe(r,t,n):typeof r=="string"?iIe(r,t,n):oIe(r,t,n)}});var xae=z((rtr,bae)=>{"use strict";bae.exports=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]});var wae=z((ttr,_ae)=>{"use strict";var TA=xae(),sIe=typeof globalThis=="undefined"?window:globalThis;_ae.exports=function(){for(var r=[],t=0;t{"use strict";var Tae=M2(),uIe=lA(),_v=dv(),Aae=jf();Mae.exports=function(r,t,a){if(!r||typeof r!="object"&&typeof r!="function")throw new _v("`obj` must be an object or a function`");if(typeof t!="string"&&typeof t!="symbol")throw new _v("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new _v("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new _v("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new _v("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new _v("`loose`, if provided, must be a boolean");var n=arguments.length>3?arguments[3]:null,i=arguments.length>4?arguments[4]:null,o=arguments.length>5?arguments[5]:null,l=arguments.length>6?arguments[6]:!1,s=!!Aae&&Aae(r,t);if(Tae)Tae(r,t,{configurable:o===null&&s?s.configurable:!o,enumerable:n===null&&s?s.enumerable:!n,value:a,writable:i===null&&s?s.writable:!i});else if(l||!n&&!i&&!o)r[t]=a;else throw new uIe("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}});var kA=z((ntr,Sae)=>{"use strict";var MA=M2(),kae=function(){return!!MA};kae.hasArrayLengthDefineBug=function(){if(!MA)return null;try{return MA([],"length",{value:1}).length!==1}catch(r){return!0}};Sae.exports=kae});var Eae=z((itr,Dae)=>{"use strict";var fIe=ob(),qae=AA(),cIe=kA()(),Lae=jf(),Cae=dv(),vIe=fIe("%Math.floor%");Dae.exports=function(r,t){if(typeof r!="function")throw new Cae("`fn` is not a function");if(typeof t!="number"||t<0||t>4294967295||vIe(t)!==t)throw new Cae("`length` must be a positive 32-bit integer");var a=arguments.length>2&&!!arguments[2],n=!0,i=!0;if("length"in r&&Lae){var o=Lae(r,"length");o&&!o.configurable&&(n=!1),o&&!o.writable&&(i=!1)}return(n||i||!a)&&(cIe?qae(r,"length",t,!0,!0):qae(r,"length",t)),r}});var Rae=z((otr,Pae)=>{"use strict";var hIe=pv(),dIe=rb(),pIe=fA();Pae.exports=function(){return pIe(hIe,dIe,arguments)}});var L2=z((ltr,cb)=>{"use strict";var mIe=Eae(),Fae=M2(),yIe=tb(),zae=Rae();cb.exports=function(r){var t=yIe(arguments),a=1+r.length-(arguments.length-1);return mIe(t,a>0?a:0,!0)};Fae?Fae(cb.exports,"apply",{value:zae}):cb.exports.apply=zae});var CA=z((str,Oae)=>{"use strict";var db=gae(),gIe=wae(),Nae=L2(),qA=Xf(),hb=jf(),vb=ab(),bIe=qA("Object.prototype.toString"),Bae=A2()(),Iae=typeof globalThis=="undefined"?window:globalThis,SA=gIe(),LA=qA("String.prototype.slice"),xIe=qA("Array.prototype.indexOf",!0)||function(r,t){for(var a=0;a-1}function AIe(e){if(!e||typeof e!="object")return!1;if(!Bae){var r=LA(bIe(e),8,-1);return TIe(r)?r:r!=="Object"?!1:wIe(e)}return hb?_Ie(e):null}Oae.exports=AIe});var Uae=z((utr,Hae)=>{"use strict";var MIe=CA();Hae.exports=function(r){return!!MIe(r)}});var PA=z(dt=>{"use strict";var kIe=Jte(),SIe=cae(),Qo=CA(),Gae=Uae();function wv(e){return e.call.bind(e)}var Yae=typeof BigInt!="undefined",Vae=typeof Symbol!="undefined",xo=wv(Object.prototype.toString),qIe=wv(Number.prototype.valueOf),LIe=wv(String.prototype.valueOf),CIe=wv(Boolean.prototype.valueOf);Yae&&(jae=wv(BigInt.prototype.valueOf));var jae;Vae&&(Wae=wv(Symbol.prototype.valueOf));var Wae;function D2(e,r){if(typeof e!="object")return!1;try{return r(e),!0}catch(t){return!1}}dt.isArgumentsObject=kIe;dt.isGeneratorFunction=SIe;dt.isTypedArray=Gae;function DIe(e){return typeof Promise!="undefined"&&e instanceof Promise||e!==null&&typeof e=="object"&&typeof e.then=="function"&&typeof e.catch=="function"}dt.isPromise=DIe;function EIe(e){return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?ArrayBuffer.isView(e):Gae(e)||Zae(e)}dt.isArrayBufferView=EIe;function PIe(e){return Qo(e)==="Uint8Array"}dt.isUint8Array=PIe;function RIe(e){return Qo(e)==="Uint8ClampedArray"}dt.isUint8ClampedArray=RIe;function FIe(e){return Qo(e)==="Uint16Array"}dt.isUint16Array=FIe;function zIe(e){return Qo(e)==="Uint32Array"}dt.isUint32Array=zIe;function NIe(e){return Qo(e)==="Int8Array"}dt.isInt8Array=NIe;function IIe(e){return Qo(e)==="Int16Array"}dt.isInt16Array=IIe;function BIe(e){return Qo(e)==="Int32Array"}dt.isInt32Array=BIe;function OIe(e){return Qo(e)==="Float32Array"}dt.isFloat32Array=OIe;function HIe(e){return Qo(e)==="Float64Array"}dt.isFloat64Array=HIe;function UIe(e){return Qo(e)==="BigInt64Array"}dt.isBigInt64Array=UIe;function GIe(e){return Qo(e)==="BigUint64Array"}dt.isBigUint64Array=GIe;function mb(e){return xo(e)==="[object Map]"}mb.working=typeof Map!="undefined"&&mb(new Map);function YIe(e){return typeof Map=="undefined"?!1:mb.working?mb(e):e instanceof Map}dt.isMap=YIe;function yb(e){return xo(e)==="[object Set]"}yb.working=typeof Set!="undefined"&&yb(new Set);function VIe(e){return typeof Set=="undefined"?!1:yb.working?yb(e):e instanceof Set}dt.isSet=VIe;function gb(e){return xo(e)==="[object WeakMap]"}gb.working=typeof WeakMap!="undefined"&&gb(new WeakMap);function jIe(e){return typeof WeakMap=="undefined"?!1:gb.working?gb(e):e instanceof WeakMap}dt.isWeakMap=jIe;function EA(e){return xo(e)==="[object WeakSet]"}EA.working=typeof WeakSet!="undefined"&&EA(new WeakSet);function WIe(e){return EA(e)}dt.isWeakSet=WIe;function bb(e){return xo(e)==="[object ArrayBuffer]"}bb.working=typeof ArrayBuffer!="undefined"&&bb(new ArrayBuffer);function Xae(e){return typeof ArrayBuffer=="undefined"?!1:bb.working?bb(e):e instanceof ArrayBuffer}dt.isArrayBuffer=Xae;function xb(e){return xo(e)==="[object DataView]"}xb.working=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"&&xb(new DataView(new ArrayBuffer(1),0,1));function Zae(e){return typeof DataView=="undefined"?!1:xb.working?xb(e):e instanceof DataView}dt.isDataView=Zae;var DA=typeof SharedArrayBuffer!="undefined"?SharedArrayBuffer:void 0;function C2(e){return xo(e)==="[object SharedArrayBuffer]"}function $ae(e){return typeof DA=="undefined"?!1:(typeof C2.working=="undefined"&&(C2.working=C2(new DA)),C2.working?C2(e):e instanceof DA)}dt.isSharedArrayBuffer=$ae;function XIe(e){return xo(e)==="[object AsyncFunction]"}dt.isAsyncFunction=XIe;function ZIe(e){return xo(e)==="[object Map Iterator]"}dt.isMapIterator=ZIe;function $Ie(e){return xo(e)==="[object Set Iterator]"}dt.isSetIterator=$Ie;function JIe(e){return xo(e)==="[object Generator]"}dt.isGeneratorObject=JIe;function KIe(e){return xo(e)==="[object WebAssembly.Module]"}dt.isWebAssemblyCompiledModule=KIe;function Jae(e){return D2(e,qIe)}dt.isNumberObject=Jae;function Kae(e){return D2(e,LIe)}dt.isStringObject=Kae;function Qae(e){return D2(e,CIe)}dt.isBooleanObject=Qae;function ene(e){return Yae&&D2(e,jae)}dt.isBigIntObject=ene;function rne(e){return Vae&&D2(e,Wae)}dt.isSymbolObject=rne;function QIe(e){return Jae(e)||Kae(e)||Qae(e)||ene(e)||rne(e)}dt.isBoxedPrimitive=QIe;function eBe(e){return typeof Uint8Array!="undefined"&&(Xae(e)||$ae(e))}dt.isAnyArrayBuffer=eBe;["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(e){Object.defineProperty(dt,e,{enumerable:!1,value:function(){throw new Error(e+" is not supported in userland")}})})});var RA=z((ctr,tne)=>{tne.exports=function(r){return r&&typeof r=="object"&&typeof r.copy=="function"&&typeof r.fill=="function"&&typeof r.readUInt8=="function"}});var OA=z(pt=>{var ane=Object.getOwnPropertyDescriptors||function(r){for(var t=Object.keys(r),a={},n=0;n=n)return l;switch(l){case"%s":return String(a[t++]);case"%d":return Number(a[t++]);case"%j":try{return JSON.stringify(a[t++])}catch(s){return"[Circular]"}default:return l}}),o=a[t];t=3&&(t.depth=arguments[2]),arguments.length>=4&&(t.colors=arguments[3]),IA(r)?t.showHidden=r:r&&pt._extend(t,r),$f(t.showHidden)&&(t.showHidden=!1),$f(t.depth)&&(t.depth=2),$f(t.colors)&&(t.colors=!1),$f(t.customInspect)&&(t.customInspect=!0),t.colors&&(t.stylize=tBe),Ab(t,e,t.depth)}pt.inspect=fu;fu.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]};fu.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function tBe(e,r){var t=fu.styles[r];return t?"\x1B["+fu.colors[t][0]+"m"+e+"\x1B["+fu.colors[t][1]+"m":e}function aBe(e,r){return e}function nBe(e){var r={};return e.forEach(function(t,a){r[t]=!0}),r}function Ab(e,r,t){if(e.customInspect&&r&&Tb(r.inspect)&&r.inspect!==pt.inspect&&!(r.constructor&&r.constructor.prototype===r)){var a=r.inspect(t,e);return Sb(a)||(a=Ab(e,a,t)),a}var n=iBe(e,r);if(n)return n;var i=Object.keys(r),o=nBe(i);if(e.showHidden&&(i=Object.getOwnPropertyNames(r)),P2(r)&&(i.indexOf("message")>=0||i.indexOf("description")>=0))return FA(r);if(i.length===0){if(Tb(r)){var l=r.name?": "+r.name:"";return e.stylize("[Function"+l+"]","special")}if(E2(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(Mb(r))return e.stylize(Date.prototype.toString.call(r),"date");if(P2(r))return FA(r)}var s="",u=!1,f=["{","}"];if(ine(r)&&(u=!0,f=["[","]"]),Tb(r)){var c=r.name?": "+r.name:"";s=" [Function"+c+"]"}if(E2(r)&&(s=" "+RegExp.prototype.toString.call(r)),Mb(r)&&(s=" "+Date.prototype.toUTCString.call(r)),P2(r)&&(s=" "+FA(r)),i.length===0&&(!u||r.length==0))return f[0]+s+f[1];if(t<0)return E2(r)?e.stylize(RegExp.prototype.toString.call(r),"regexp"):e.stylize("[Object]","special");e.seen.push(r);var v;return u?v=oBe(e,r,t,o,i):v=i.map(function(d){return NA(e,r,t,o,d,u)}),e.seen.pop(),lBe(v,s,f)}function iBe(e,r){if($f(r))return e.stylize("undefined","undefined");if(Sb(r)){var t="'"+JSON.stringify(r).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(t,"string")}if(one(r))return e.stylize(""+r,"number");if(IA(r))return e.stylize(""+r,"boolean");if(kb(r))return e.stylize("null","null")}function FA(e){return"["+Error.prototype.toString.call(e)+"]"}function oBe(e,r,t,a,n){for(var i=[],o=0,l=r.length;o-1&&(i?l=l.split(` `).map(function(u){return" "+u}).join(` `).slice(2):l=` `+l.split(` `).map(function(u){return" "+u}).join(` -`))):l=e.stylize("[Circular]","special")),Wf(o)){if(i&&n.match(/^\d+$/))return l;o=JSON.stringify(""+n),o.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.slice(1,-1),o=e.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=e.stylize(o,"string"))}return o+": "+l}function JIe(e,r,t){var a=0,n=e.reduce(function(i,o){return a++,o.indexOf(` +`))):l=e.stylize("[Circular]","special")),$f(o)){if(i&&n.match(/^\d+$/))return l;o=JSON.stringify(""+n),o.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.slice(1,-1),o=e.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=e.stylize(o,"string"))}return o+": "+l}function lBe(e,r,t){var a=0,n=e.reduce(function(i,o){return a++,o.indexOf(` `)>=0&&a++,i+o.replace(/\u001b\[\d\d?m/g,"").length+1},0);return n>60?t[0]+(r===""?"":r+` `)+" "+e.join(`, - `)+" "+t[1]:t[0]+r+" "+e.join(", ")+" "+t[1]}ct.types=kT();function Qae(e){return Array.isArray(e)}ct.isArray=Qae;function DT(e){return typeof e=="boolean"}ct.isBoolean=DT;function _b(e){return e===null}ct.isNull=_b;function KIe(e){return e==null}ct.isNullOrUndefined=KIe;function ene(e){return typeof e=="number"}ct.isNumber=ene;function wb(e){return typeof e=="string"}ct.isString=wb;function QIe(e){return typeof e=="symbol"}ct.isSymbol=QIe;function Wf(e){return e===void 0}ct.isUndefined=Wf;function D2(e){return Av(e)&&ET(e)==="[object RegExp]"}ct.isRegExp=D2;ct.types.isRegExp=D2;function Av(e){return typeof e=="object"&&e!==null}ct.isObject=Av;function xb(e){return Av(e)&&ET(e)==="[object Date]"}ct.isDate=xb;ct.types.isDate=xb;function E2(e){return Av(e)&&(ET(e)==="[object Error]"||e instanceof Error)}ct.isError=E2;ct.types.isNativeError=E2;function gb(e){return typeof e=="function"}ct.isFunction=gb;function eBe(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||typeof e=="undefined"}ct.isPrimitive=eBe;ct.isBuffer=ST();function ET(e){return Object.prototype.toString.call(e)}function LT(e){return e<10?"0"+e.toString(10):e.toString(10)}var rBe=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function tBe(){var e=new Date,r=[LT(e.getHours()),LT(e.getMinutes()),LT(e.getSeconds())].join(":");return[e.getDate(),rBe[e.getMonth()],r].join(" ")}ct.log=function(){console.log("%s - %s",tBe(),ct.format.apply(ct,arguments))};ct.inherits=ss();ct._extend=function(e,r){if(!r||!Av(r))return e;for(var t=Object.keys(r),a=t.length;a--;)e[t[a]]=r[t[a]];return e};function rne(e,r){return Object.prototype.hasOwnProperty.call(e,r)}var jf=typeof Symbol!="undefined"?Symbol("util.promisify.custom"):void 0;ct.promisify=function(r){if(typeof r!="function")throw new TypeError('The "original" argument must be of type Function');if(jf&&r[jf]){var t=r[jf];if(typeof t!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,jf,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var a,n,i=new Promise(function(s,u){a=s,n=u}),o=[],l=0;l{"use strict";function tne(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);r&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,a)}return t}function ane(e){for(var r=1;r0?this.tail.next=a:this.head=a,this.tail=a,++this.length}},{key:"unshift",value:function(t){var a={data:t,next:this.head};this.length===0&&(this.tail=a),this.head=a,++this.length}},{key:"shift",value:function(){if(this.length!==0){var t=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,t}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(t){if(this.length===0)return"";for(var a=this.head,n=""+a.data;a=a.next;)n+=t+a.data;return n}},{key:"concat",value:function(t){if(this.length===0)return Ab.alloc(0);for(var a=Ab.allocUnsafe(t>>>0),n=this.head,i=0;n;)vBe(n.data,a,i),i+=n.data.length,n=n.next;return a}},{key:"consume",value:function(t,a){var n;return to.length?o.length:t;if(l===o.length?i+=o:i+=o.slice(0,t),t-=l,t===0){l===o.length?(++n,a.next?this.head=a.next:this.head=this.tail=null):(this.head=a,a.data=o.slice(l));break}++n}return this.length-=n,i}},{key:"_getBuffer",value:function(t){var a=Ab.allocUnsafe(t),n=this.head,i=1;for(n.data.copy(a),t-=n.data.length;n=n.next;){var o=n.data,l=t>o.length?o.length:t;if(o.copy(a,a.length-t,0,l),t-=l,t===0){l===o.length?(++i,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=o.slice(l));break}++i}return this.length-=i,a}},{key:cBe,value:function(t,a){return RT(this,ane(ane({},a),{},{depth:0,customInspect:!1}))}}]),e})()});var zT=z((ntr,une)=>{"use strict";function hBe(e,r){var t=this,a=this._readableState&&this._readableState.destroyed,n=this._writableState&&this._writableState.destroyed;return a||n?(r?r(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(FT,this,e)):process.nextTick(FT,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(i){!r&&i?t._writableState?t._writableState.errorEmitted?process.nextTick(Tb,t):(t._writableState.errorEmitted=!0,process.nextTick(sne,t,i)):process.nextTick(sne,t,i):r?(process.nextTick(Tb,t),r(i)):process.nextTick(Tb,t)}),this)}function sne(e,r){FT(e,r),Tb(e)}function Tb(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function dBe(){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 FT(e,r){e.emit("error",r)}function pBe(e,r){var t=e._readableState,a=e._writableState;t&&t.autoDestroy||a&&a.autoDestroy?e.destroy(r):e.emit("error",r)}une.exports={destroy:hBe,undestroy:dBe,errorOrDestroy:pBe}});var Xf=z((itr,vne)=>{"use strict";function mBe(e,r){e.prototype=Object.create(r.prototype),e.prototype.constructor=e,e.__proto__=r}var cne={};function yo(e,r,t){t||(t=Error);function a(i,o,l){return typeof r=="string"?r:r(i,o,l)}var n=(function(i){mBe(o,i);function o(l,s,u){return i.call(this,a(l,s,u))||this}return o})(t);n.prototype.name=t.name,n.prototype.code=e,cne[e]=n}function fne(e,r){if(Array.isArray(e)){var t=e.length;return e=e.map(function(a){return String(a)}),t>2?"one of ".concat(r," ").concat(e.slice(0,t-1).join(", "),", or ")+e[t-1]:t===2?"one of ".concat(r," ").concat(e[0]," or ").concat(e[1]):"of ".concat(r," ").concat(e[0])}else return"of ".concat(r," ").concat(String(e))}function yBe(e,r,t){return e.substr(!t||t<0?0:+t,r.length)===r}function gBe(e,r,t){return(t===void 0||t>e.length)&&(t=e.length),e.substring(t-r.length,t)===r}function bBe(e,r,t){return typeof t!="number"&&(t=0),t+r.length>e.length?!1:e.indexOf(r,t)!==-1}yo("ERR_INVALID_OPT_VALUE",function(e,r){return'The value "'+r+'" is invalid for option "'+e+'"'},TypeError);yo("ERR_INVALID_ARG_TYPE",function(e,r,t){var a;typeof r=="string"&&yBe(r,"not ")?(a="must not be",r=r.replace(/^not /,"")):a="must be";var n;if(gBe(e," argument"))n="The ".concat(e," ").concat(a," ").concat(fne(r,"type"));else{var i=bBe(e,".")?"property":"argument";n='The "'.concat(e,'" ').concat(i," ").concat(a," ").concat(fne(r,"type"))}return n+=". Received type ".concat(typeof t),n},TypeError);yo("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");yo("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"});yo("ERR_STREAM_PREMATURE_CLOSE","Premature close");yo("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"});yo("ERR_MULTIPLE_CALLBACK","Callback called multiple times");yo("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");yo("ERR_STREAM_WRITE_AFTER_END","write after end");yo("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);yo("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError);yo("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");vne.exports.codes=cne});var NT=z((otr,hne)=>{"use strict";var xBe=Xf().codes.ERR_INVALID_OPT_VALUE;function _Be(e,r,t){return e.highWaterMark!=null?e.highWaterMark:r?e[t]:null}function wBe(e,r,t,a){var n=_Be(r,a,t);if(n!=null){if(!(isFinite(n)&&Math.floor(n)===n)||n<0){var i=a?t:"highWaterMark";throw new xBe(i,n)}return Math.floor(n)}return e.objectMode?16:16*1024}hne.exports={getHighWaterMark:wBe}});var pne=z((ltr,dne)=>{dne.exports=ABe;function ABe(e,r){if(IT("noDeprecation"))return e;var t=!1;function a(){if(!t){if(IT("throwDeprecation"))throw new Error(r);IT("traceDeprecation")?console.trace(r):console.warn(r),t=!0}return e.apply(this,arguments)}return a}function IT(e){try{if(!window.localStorage)return!1}catch(t){return!1}var r=window.localStorage[e];return r==null?!1:String(r).toLowerCase()==="true"}});var HT=z((str,_ne)=>{"use strict";_ne.exports=Sa;function yne(e){var r=this;this.next=null,this.entry=null,this.finish=function(){$Be(r,e)}}var Tv;Sa.WritableState=R2;var TBe={deprecate:pne()},gne=GA(),kb=hv().Buffer,MBe=(typeof window!="undefined"||typeof window!="undefined"?window:typeof self!="undefined"?self:{}).Uint8Array||function(){};function kBe(e){return kb.from(e)}function SBe(e){return kb.isBuffer(e)||e instanceof MBe}var OT=zT(),qBe=NT(),LBe=qBe.getHighWaterMark,su=Xf().codes,CBe=su.ERR_INVALID_ARG_TYPE,DBe=su.ERR_METHOD_NOT_IMPLEMENTED,EBe=su.ERR_MULTIPLE_CALLBACK,PBe=su.ERR_STREAM_CANNOT_PIPE,RBe=su.ERR_STREAM_DESTROYED,FBe=su.ERR_STREAM_NULL_VALUES,zBe=su.ERR_STREAM_WRITE_AFTER_END,NBe=su.ERR_UNKNOWN_ENCODING,Mv=OT.errorOrDestroy;ss()(Sa,gne);function IBe(){}function R2(e,r,t){Tv=Tv||Zf(),e=e||{},typeof t!="boolean"&&(t=r instanceof Tv),this.objectMode=!!e.objectMode,t&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=LBe(this,e,"writableHighWaterMark",t),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var a=e.decodeStrings===!1;this.decodeStrings=!a,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(n){VBe(r,n)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=e.emitClose!==!1,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new yne(this)}R2.prototype.getBuffer=function(){for(var r=this.bufferedRequest,t=[];r;)t.push(r),r=r.next;return t};(function(){try{Object.defineProperty(R2.prototype,"buffer",{get:TBe.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}})();var Mb;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(Mb=Function.prototype[Symbol.hasInstance],Object.defineProperty(Sa,Symbol.hasInstance,{value:function(r){return Mb.call(this,r)?!0:this!==Sa?!1:r&&r._writableState instanceof R2}})):Mb=function(r){return r instanceof this};function Sa(e){Tv=Tv||Zf();var r=this instanceof Tv;if(!r&&!Mb.call(Sa,this))return new Sa(e);this._writableState=new R2(e,this,r),this.writable=!0,e&&(typeof e.write=="function"&&(this._write=e.write),typeof e.writev=="function"&&(this._writev=e.writev),typeof e.destroy=="function"&&(this._destroy=e.destroy),typeof e.final=="function"&&(this._final=e.final)),gne.call(this)}Sa.prototype.pipe=function(){Mv(this,new PBe)};function BBe(e,r){var t=new zBe;Mv(e,t),process.nextTick(r,t)}function OBe(e,r,t,a){var n;return t===null?n=new FBe:typeof t!="string"&&!r.objectMode&&(n=new CBe("chunk",["string","Buffer"],t)),n?(Mv(e,n),process.nextTick(a,n),!1):!0}Sa.prototype.write=function(e,r,t){var a=this._writableState,n=!1,i=!a.objectMode&&SBe(e);return i&&!kb.isBuffer(e)&&(e=kBe(e)),typeof r=="function"&&(t=r,r=null),i?r="buffer":r||(r=a.defaultEncoding),typeof t!="function"&&(t=IBe),a.ending?BBe(this,t):(i||OBe(this,a,e,t))&&(a.pendingcb++,n=UBe(this,a,i,e,r,t)),n};Sa.prototype.cork=function(){this._writableState.corked++};Sa.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,!e.writing&&!e.corked&&!e.bufferProcessing&&e.bufferedRequest&&bne(this,e))};Sa.prototype.setDefaultEncoding=function(r){if(typeof r=="string"&&(r=r.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((r+"").toLowerCase())>-1))throw new NBe(r);return this._writableState.defaultEncoding=r,this};Object.defineProperty(Sa.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function HBe(e,r,t){return!e.objectMode&&e.decodeStrings!==!1&&typeof r=="string"&&(r=kb.from(r,t)),r}Object.defineProperty(Sa.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function UBe(e,r,t,a,n,i){if(!t){var o=HBe(r,a,n);a!==o&&(t=!0,n="buffer",a=o)}var l=r.objectMode?1:a.length;r.length+=l;var s=r.length{"use strict";var JBe=Object.keys||function(e){var r=[];for(var t in e)r.push(t);return r};Ane.exports=Dl;var wne=YT(),GT=HT();ss()(Dl,wne);for(UT=JBe(GT.prototype),Sb=0;Sb{var Lb=hv(),El=Lb.Buffer;function Tne(e,r){for(var t in e)r[t]=e[t]}El.from&&El.alloc&&El.allocUnsafe&&El.allocUnsafeSlow?Mne.exports=Lb:(Tne(Lb,VT),VT.Buffer=$f);function $f(e,r,t){return El(e,r,t)}$f.prototype=Object.create(El.prototype);Tne(El,$f);$f.from=function(e,r,t){if(typeof e=="number")throw new TypeError("Argument must not be a number");return El(e,r,t)};$f.alloc=function(e,r,t){if(typeof e!="number")throw new TypeError("Argument must be a number");var a=El(e);return r!==void 0?typeof t=="string"?a.fill(r,t):a.fill(r):a.fill(0),a};$f.allocUnsafe=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return El(e)};$f.allocUnsafeSlow=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return Lb.SlowBuffer(e)}});var XT=z(qne=>{"use strict";var WT=kne().Buffer,Sne=WT.isEncoding||function(e){switch(e=""+e,e&&e.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 eOe(e){if(!e)return"utf8";for(var r;;)switch(e){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 e;default:if(r)return;e=(""+e).toLowerCase(),r=!0}}function rOe(e){var r=eOe(e);if(typeof r!="string"&&(WT.isEncoding===Sne||!Sne(e)))throw new Error("Unknown encoding: "+e);return r||e}qne.StringDecoder=F2;function F2(e){this.encoding=rOe(e);var r;switch(this.encoding){case"utf16le":this.text=lOe,this.end=sOe,r=4;break;case"utf8":this.fillLast=nOe,r=4;break;case"base64":this.text=uOe,this.end=fOe,r=3;break;default:this.write=cOe,this.end=vOe;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=WT.allocUnsafe(r)}F2.prototype.write=function(e){if(e.length===0)return"";var r,t;if(this.lastNeed){if(r=this.fillLast(e),r===void 0)return"";t=this.lastNeed,this.lastNeed=0}else t=0;return t>5===6?2:e>>4===14?3:e>>3===30?4:e>>6===2?-1:-2}function tOe(e,r,t){var a=r.length-1;if(a=0?(n>0&&(e.lastNeed=n-1),n):--a=0?(n>0&&(e.lastNeed=n-2),n):--a=0?(n>0&&(n===2?n=0:e.lastNeed=n-3),n):0))}function aOe(e,r,t){if((r[0]&192)!==128)return e.lastNeed=0,"\uFFFD";if(e.lastNeed>1&&r.length>1){if((r[1]&192)!==128)return e.lastNeed=1,"\uFFFD";if(e.lastNeed>2&&r.length>2&&(r[2]&192)!==128)return e.lastNeed=2,"\uFFFD"}}function nOe(e){var r=this.lastTotal-this.lastNeed,t=aOe(this,e,r);if(t!==void 0)return t;if(this.lastNeed<=e.length)return e.copy(this.lastChar,r,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,r,0,e.length),this.lastNeed-=e.length}function iOe(e,r){var t=tOe(this,e,r);if(!this.lastNeed)return e.toString("utf8",r);this.lastTotal=t;var a=e.length-(t-this.lastNeed);return e.copy(this.lastChar,0,a),e.toString("utf8",r,a)}function oOe(e){var r=e&&e.length?this.write(e):"";return this.lastNeed?r+"\uFFFD":r}function lOe(e,r){if((e.length-r)%2===0){var t=e.toString("utf16le",r);if(t){var a=t.charCodeAt(t.length-1);if(a>=55296&&a<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],t.slice(0,-1)}return t}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",r,e.length-1)}function sOe(e){var r=e&&e.length?this.write(e):"";if(this.lastNeed){var t=this.lastTotal-this.lastNeed;return r+this.lastChar.toString("utf16le",0,t)}return r}function uOe(e,r){var t=(e.length-r)%3;return t===0?e.toString("base64",r):(this.lastNeed=3-t,this.lastTotal=3,t===1?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",r,e.length-t))}function fOe(e){var r=e&&e.length?this.write(e):"";return this.lastNeed?r+this.lastChar.toString("base64",0,3-this.lastNeed):r}function cOe(e){return e.toString(this.encoding)}function vOe(e){return e&&e.length?this.write(e):""}});var Cb=z((ctr,Dne)=>{"use strict";var Lne=Xf().codes.ERR_STREAM_PREMATURE_CLOSE;function hOe(e){var r=!1;return function(){if(!r){r=!0;for(var t=arguments.length,a=new Array(t),n=0;n{"use strict";var Db;function uu(e,r,t){return r=mOe(r),r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function mOe(e){var r=yOe(e,"string");return typeof r=="symbol"?r:String(r)}function yOe(e,r){if(typeof e!="object"||e===null)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var a=t.call(e,r||"default");if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}var gOe=Cb(),fu=Symbol("lastResolve"),Jf=Symbol("lastReject"),z2=Symbol("error"),Eb=Symbol("ended"),Kf=Symbol("lastPromise"),ZT=Symbol("handlePromise"),Qf=Symbol("stream");function cu(e,r){return{value:e,done:r}}function bOe(e){var r=e[fu];if(r!==null){var t=e[Qf].read();t!==null&&(e[Kf]=null,e[fu]=null,e[Jf]=null,r(cu(t,!1)))}}function xOe(e){process.nextTick(bOe,e)}function _Oe(e,r){return function(t,a){e.then(function(){if(r[Eb]){t(cu(void 0,!0));return}r[ZT](t,a)},a)}}var wOe=Object.getPrototypeOf(function(){}),AOe=Object.setPrototypeOf((Db={get stream(){return this[Qf]},next:function(){var r=this,t=this[z2];if(t!==null)return Promise.reject(t);if(this[Eb])return Promise.resolve(cu(void 0,!0));if(this[Qf].destroyed)return new Promise(function(o,l){process.nextTick(function(){r[z2]?l(r[z2]):o(cu(void 0,!0))})});var a=this[Kf],n;if(a)n=new Promise(_Oe(a,this));else{var i=this[Qf].read();if(i!==null)return Promise.resolve(cu(i,!1));n=new Promise(this[ZT])}return this[Kf]=n,n}},uu(Db,Symbol.asyncIterator,function(){return this}),uu(Db,"return",function(){var r=this;return new Promise(function(t,a){r[Qf].destroy(null,function(n){if(n){a(n);return}t(cu(void 0,!0))})})}),Db),wOe),TOe=function(r){var t,a=Object.create(AOe,(t={},uu(t,Qf,{value:r,writable:!0}),uu(t,fu,{value:null,writable:!0}),uu(t,Jf,{value:null,writable:!0}),uu(t,z2,{value:null,writable:!0}),uu(t,Eb,{value:r._readableState.endEmitted,writable:!0}),uu(t,ZT,{value:function(i,o){var l=a[Qf].read();l?(a[Kf]=null,a[fu]=null,a[Jf]=null,i(cu(l,!1))):(a[fu]=i,a[Jf]=o)},writable:!0}),t));return a[Kf]=null,gOe(r,function(n){if(n&&n.code!=="ERR_STREAM_PREMATURE_CLOSE"){var i=a[Jf];i!==null&&(a[Kf]=null,a[fu]=null,a[Jf]=null,i(n)),a[z2]=n;return}var o=a[fu];o!==null&&(a[Kf]=null,a[fu]=null,a[Jf]=null,o(cu(void 0,!0))),a[Eb]=!0}),r.on("readable",xOe.bind(null,a)),a};Ene.exports=TOe});var Fne=z((htr,Rne)=>{Rne.exports=function(){throw new Error("Readable.from is not available in the browser")}});var YT=z((ptr,Vne)=>{"use strict";Vne.exports=Tt;var kv;Tt.ReadableState=Bne;var dtr=Wu().EventEmitter,Ine=function(r,t){return r.listeners(t).length},I2=GA(),Pb=hv().Buffer,MOe=(typeof window!="undefined"||typeof window!="undefined"?window:typeof self!="undefined"?self:{}).Uint8Array||function(){};function kOe(e){return Pb.from(e)}function SOe(e){return Pb.isBuffer(e)||e instanceof MOe}var $T=PT(),nt;$T&&$T.debuglog?nt=$T.debuglog("stream"):nt=function(){};var qOe=lne(),aM=zT(),LOe=NT(),COe=LOe.getHighWaterMark,Rb=Xf().codes,DOe=Rb.ERR_INVALID_ARG_TYPE,EOe=Rb.ERR_STREAM_PUSH_AFTER_EOF,POe=Rb.ERR_METHOD_NOT_IMPLEMENTED,ROe=Rb.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,Sv,JT,KT;ss()(Tt,I2);var N2=aM.errorOrDestroy,QT=["error","close","destroy","pause","resume"];function FOe(e,r,t){if(typeof e.prependListener=="function")return e.prependListener(r,t);!e._events||!e._events[r]?e.on(r,t):Array.isArray(e._events[r])?e._events[r].unshift(t):e._events[r]=[t,e._events[r]]}function Bne(e,r,t){kv=kv||Zf(),e=e||{},typeof t!="boolean"&&(t=r instanceof kv),this.objectMode=!!e.objectMode,t&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=COe(this,e,"readableHighWaterMark",t),this.buffer=new qOe,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=e.emitClose!==!1,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(Sv||(Sv=XT().StringDecoder),this.decoder=new Sv(e.encoding),this.encoding=e.encoding)}function Tt(e){if(kv=kv||Zf(),!(this instanceof Tt))return new Tt(e);var r=this instanceof kv;this._readableState=new Bne(e,this,r),this.readable=!0,e&&(typeof e.read=="function"&&(this._read=e.read),typeof e.destroy=="function"&&(this._destroy=e.destroy)),I2.call(this)}Object.defineProperty(Tt.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(r){this._readableState&&(this._readableState.destroyed=r)}});Tt.prototype.destroy=aM.destroy;Tt.prototype._undestroy=aM.undestroy;Tt.prototype._destroy=function(e,r){r(e)};Tt.prototype.push=function(e,r){var t=this._readableState,a;return t.objectMode?a=!0:typeof e=="string"&&(r=r||t.defaultEncoding,r!==t.encoding&&(e=Pb.from(e,r),r=""),a=!0),One(this,e,r,!1,a)};Tt.prototype.unshift=function(e){return One(this,e,null,!0,!1)};function One(e,r,t,a,n){nt("readableAddChunk",r);var i=e._readableState;if(r===null)i.reading=!1,IOe(e,i);else{var o;if(n||(o=zOe(i,r)),o)N2(e,o);else if(i.objectMode||r&&r.length>0)if(typeof r!="string"&&!i.objectMode&&Object.getPrototypeOf(r)!==Pb.prototype&&(r=kOe(r)),a)i.endEmitted?N2(e,new ROe):eM(e,i,r,!0);else if(i.ended)N2(e,new EOe);else{if(i.destroyed)return!1;i.reading=!1,i.decoder&&!t?(r=i.decoder.write(r),i.objectMode||r.length!==0?eM(e,i,r,!1):tM(e,i)):eM(e,i,r,!1)}else a||(i.reading=!1,tM(e,i))}return!i.ended&&(i.length=zne?e=zne:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function Nne(e,r){return e<=0||r.length===0&&r.ended?0:r.objectMode?1:e!==e?r.flowing&&r.length?r.buffer.head.data.length:r.length:(e>r.highWaterMark&&(r.highWaterMark=NOe(e)),e<=r.length?e:r.ended?r.length:(r.needReadable=!0,0))}Tt.prototype.read=function(e){nt("read",e),e=parseInt(e,10);var r=this._readableState,t=e;if(e!==0&&(r.emittedReadable=!1),e===0&&r.needReadable&&((r.highWaterMark!==0?r.length>=r.highWaterMark:r.length>0)||r.ended))return nt("read: emitReadable",r.length,r.ended),r.length===0&&r.ended?rM(this):Fb(this),null;if(e=Nne(e,r),e===0&&r.ended)return r.length===0&&rM(this),null;var a=r.needReadable;nt("need readable",a),(r.length===0||r.length-e0?n=Gne(e,r):n=null,n===null?(r.needReadable=r.length<=r.highWaterMark,e=0):(r.length-=e,r.awaitDrain=0),r.length===0&&(r.ended||(r.needReadable=!0),t!==e&&r.ended&&rM(this)),n!==null&&this.emit("data",n),n};function IOe(e,r){if(nt("onEofChunk"),!r.ended){if(r.decoder){var t=r.decoder.end();t&&t.length&&(r.buffer.push(t),r.length+=r.objectMode?1:t.length)}r.ended=!0,r.sync?Fb(e):(r.needReadable=!1,r.emittedReadable||(r.emittedReadable=!0,Hne(e)))}}function Fb(e){var r=e._readableState;nt("emitReadable",r.needReadable,r.emittedReadable),r.needReadable=!1,r.emittedReadable||(nt("emitReadable",r.flowing),r.emittedReadable=!0,process.nextTick(Hne,e))}function Hne(e){var r=e._readableState;nt("emitReadable_",r.destroyed,r.length,r.ended),!r.destroyed&&(r.length||r.ended)&&(e.emit("readable"),r.emittedReadable=!1),r.needReadable=!r.flowing&&!r.ended&&r.length<=r.highWaterMark,nM(e)}function tM(e,r){r.readingMore||(r.readingMore=!0,process.nextTick(BOe,e,r))}function BOe(e,r){for(;!r.reading&&!r.ended&&(r.length1&&Yne(a.pipes,e)!==-1)&&!u&&(nt("false write response, pause",a.awaitDrain),a.awaitDrain++),t.pause())}function v(m){nt("onerror",m),y(),e.removeListener("error",v),Ine(e,"error")===0&&N2(e,m)}FOe(e,"error",v);function d(){e.removeListener("finish",p),y()}e.once("close",d);function p(){nt("onfinish"),e.removeListener("close",d),y()}e.once("finish",p);function y(){nt("unpipe"),t.unpipe(e)}return e.emit("pipe",t),a.flowing||(nt("pipe resume"),t.resume()),e};function OOe(e){return function(){var t=e._readableState;nt("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,t.awaitDrain===0&&Ine(e,"data")&&(t.flowing=!0,nM(e))}}Tt.prototype.unpipe=function(e){var r=this._readableState,t={hasUnpiped:!1};if(r.pipesCount===0)return this;if(r.pipesCount===1)return e&&e!==r.pipes?this:(e||(e=r.pipes),r.pipes=null,r.pipesCount=0,r.flowing=!1,e&&e.emit("unpipe",this,t),this);if(!e){var a=r.pipes,n=r.pipesCount;r.pipes=null,r.pipesCount=0,r.flowing=!1;for(var i=0;i0,a.flowing!==!1&&this.resume()):e==="readable"&&!a.endEmitted&&!a.readableListening&&(a.readableListening=a.needReadable=!0,a.flowing=!1,a.emittedReadable=!1,nt("on readable",a.length,a.reading),a.length?Fb(this):a.reading||process.nextTick(HOe,this)),t};Tt.prototype.addListener=Tt.prototype.on;Tt.prototype.removeListener=function(e,r){var t=I2.prototype.removeListener.call(this,e,r);return e==="readable"&&process.nextTick(Une,this),t};Tt.prototype.removeAllListeners=function(e){var r=I2.prototype.removeAllListeners.apply(this,arguments);return(e==="readable"||e===void 0)&&process.nextTick(Une,this),r};function Une(e){var r=e._readableState;r.readableListening=e.listenerCount("readable")>0,r.resumeScheduled&&!r.paused?r.flowing=!0:e.listenerCount("data")>0&&e.resume()}function HOe(e){nt("readable nexttick read 0"),e.read(0)}Tt.prototype.resume=function(){var e=this._readableState;return e.flowing||(nt("resume"),e.flowing=!e.readableListening,UOe(this,e)),e.paused=!1,this};function UOe(e,r){r.resumeScheduled||(r.resumeScheduled=!0,process.nextTick(GOe,e,r))}function GOe(e,r){nt("resume",r.reading),r.reading||e.read(0),r.resumeScheduled=!1,e.emit("resume"),nM(e),r.flowing&&!r.reading&&e.read(0)}Tt.prototype.pause=function(){return nt("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(nt("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function nM(e){var r=e._readableState;for(nt("flow",r.flowing);r.flowing&&e.read()!==null;);}Tt.prototype.wrap=function(e){var r=this,t=this._readableState,a=!1;e.on("end",function(){if(nt("wrapped end"),t.decoder&&!t.ended){var o=t.decoder.end();o&&o.length&&r.push(o)}r.push(null)}),e.on("data",function(o){if(nt("wrapped data"),t.decoder&&(o=t.decoder.write(o)),!(t.objectMode&&o==null)&&!(!t.objectMode&&(!o||!o.length))){var l=r.push(o);l||(a=!0,e.pause())}});for(var n in e)this[n]===void 0&&typeof e[n]=="function"&&(this[n]=(function(l){return function(){return e[l].apply(e,arguments)}})(n));for(var i=0;i=r.length?(r.decoder?t=r.buffer.join(""):r.buffer.length===1?t=r.buffer.first():t=r.buffer.concat(r.length),r.buffer.clear()):t=r.buffer.consume(e,r.decoder),t}function rM(e){var r=e._readableState;nt("endReadable",r.endEmitted),r.endEmitted||(r.ended=!0,process.nextTick(YOe,r,e))}function YOe(e,r){if(nt("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&e.length===0&&(e.endEmitted=!0,r.readable=!1,r.emit("end"),e.autoDestroy)){var t=r._writableState;(!t||t.autoDestroy&&t.finished)&&r.destroy()}}typeof Symbol=="function"&&(Tt.from=function(e,r){return KT===void 0&&(KT=Fne()),KT(Tt,e,r)});function Yne(e,r){for(var t=0,a=e.length;t{"use strict";Wne.exports=fs;var zb=Xf().codes,VOe=zb.ERR_METHOD_NOT_IMPLEMENTED,jOe=zb.ERR_MULTIPLE_CALLBACK,WOe=zb.ERR_TRANSFORM_ALREADY_TRANSFORMING,XOe=zb.ERR_TRANSFORM_WITH_LENGTH_0,Nb=Zf();ss()(fs,Nb);function ZOe(e,r){var t=this._transformState;t.transforming=!1;var a=t.writecb;if(a===null)return this.emit("error",new jOe);t.writechunk=null,t.writecb=null,r!=null&&this.push(r),a(e);var n=this._readableState;n.reading=!1,(n.needReadable||n.length{"use strict";Zne.exports=B2;var Xne=iM();ss()(B2,Xne);function B2(e){if(!(this instanceof B2))return new B2(e);Xne.call(this,e)}B2.prototype._transform=function(e,r,t){t(null,e)}});var rie=z((gtr,eie)=>{"use strict";var oM;function JOe(e){var r=!1;return function(){r||(r=!0,e.apply(void 0,arguments))}}var Qne=Xf().codes,KOe=Qne.ERR_MISSING_ARGS,QOe=Qne.ERR_STREAM_DESTROYED;function Jne(e){if(e)throw e}function eHe(e){return e.setHeader&&typeof e.abort=="function"}function rHe(e,r,t,a){a=JOe(a);var n=!1;e.on("close",function(){n=!0}),oM===void 0&&(oM=Cb()),oM(e,{readable:r,writable:t},function(o){if(o)return a(o);n=!0,a()});var i=!1;return function(o){if(!n&&!i){if(i=!0,eHe(e))return e.abort();if(typeof e.destroy=="function")return e.destroy();a(o||new QOe("pipe"))}}}function Kne(e){e()}function tHe(e,r){return e.pipe(r)}function aHe(e){return!e.length||typeof e[e.length-1]!="function"?Jne:e.pop()}function nHe(){for(var e=arguments.length,r=new Array(e),t=0;t0;return rHe(o,s,u,function(f){n||(n=f),f&&i.forEach(Kne),!s&&(i.forEach(Kne),a(n))})});return r.reduce(tHe)}eie.exports=nHe});var aie=z((btr,tie)=>{tie.exports=go;var lM=Wu().EventEmitter,iHe=ss();iHe(go,lM);go.Readable=YT();go.Writable=HT();go.Duplex=Zf();go.Transform=iM();go.PassThrough=$ne();go.finished=Cb();go.pipeline=rie();go.Stream=go;function go(){lM.call(this)}go.prototype.pipe=function(e,r){var t=this;function a(f){e.writable&&e.write(f)===!1&&t.pause&&t.pause()}t.on("data",a);function n(){t.readable&&t.resume&&t.resume()}e.on("drain",n),!e._isStdio&&(!r||r.end!==!1)&&(t.on("end",o),t.on("close",l));var i=!1;function o(){i||(i=!0,e.end())}function l(){i||(i=!0,typeof e.destroy=="function"&&e.destroy())}function s(f){if(u(),lM.listenerCount(this,"error")===0)throw f}t.on("error",s),e.on("error",s);function u(){t.removeListener("data",a),e.removeListener("drain",n),t.removeListener("end",o),t.removeListener("close",l),t.removeListener("error",s),e.removeListener("error",s),t.removeListener("end",u),t.removeListener("close",u),e.removeListener("close",u)}return t.on("end",u),t.on("close",u),e.on("close",u),e.emit("pipe",t),e}});var Lv=z(vt=>{var nie=Object.getOwnPropertyDescriptors||function(r){for(var t=Object.keys(r),a={},n=0;n=n)return l;switch(l){case"%s":return String(a[t++]);case"%d":return Number(a[t++]);case"%j":try{return JSON.stringify(a[t++])}catch(s){return"[Circular]"}default:return l}}),o=a[t];t=3&&(t.depth=arguments[2]),arguments.length>=4&&(t.colors=arguments[3]),cM(r)?t.showHidden=r:r&&vt._extend(t,r),rc(t.showHidden)&&(t.showHidden=!1),rc(t.depth)&&(t.depth=2),rc(t.colors)&&(t.colors=!1),rc(t.customInspect)&&(t.customInspect=!0),t.colors&&(t.stylize=lHe),Hb(t,e,t.depth)}vt.inspect=vu;vu.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]};vu.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function lHe(e,r){var t=vu.styles[r];return t?"\x1B["+vu.colors[t][0]+"m"+e+"\x1B["+vu.colors[t][1]+"m":e}function sHe(e,r){return e}function uHe(e){var r={};return e.forEach(function(t,a){r[t]=!0}),r}function Hb(e,r,t){if(e.customInspect&&r&&Ob(r.inspect)&&r.inspect!==vt.inspect&&!(r.constructor&&r.constructor.prototype===r)){var a=r.inspect(t,e);return Yb(a)||(a=Hb(e,a,t)),a}var n=fHe(e,r);if(n)return n;var i=Object.keys(r),o=uHe(i);if(e.showHidden&&(i=Object.getOwnPropertyNames(r)),H2(r)&&(i.indexOf("message")>=0||i.indexOf("description")>=0))return sM(r);if(i.length===0){if(Ob(r)){var l=r.name?": "+r.name:"";return e.stylize("[Function"+l+"]","special")}if(O2(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(Ub(r))return e.stylize(Date.prototype.toString.call(r),"date");if(H2(r))return sM(r)}var s="",u=!1,f=["{","}"];if(oie(r)&&(u=!0,f=["[","]"]),Ob(r)){var c=r.name?": "+r.name:"";s=" [Function"+c+"]"}if(O2(r)&&(s=" "+RegExp.prototype.toString.call(r)),Ub(r)&&(s=" "+Date.prototype.toUTCString.call(r)),H2(r)&&(s=" "+sM(r)),i.length===0&&(!u||r.length==0))return f[0]+s+f[1];if(t<0)return O2(r)?e.stylize(RegExp.prototype.toString.call(r),"regexp"):e.stylize("[Object]","special");e.seen.push(r);var v;return u?v=cHe(e,r,t,o,i):v=i.map(function(d){return fM(e,r,t,o,d,u)}),e.seen.pop(),vHe(v,s,f)}function fHe(e,r){if(rc(r))return e.stylize("undefined","undefined");if(Yb(r)){var t="'"+JSON.stringify(r).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(t,"string")}if(lie(r))return e.stylize(""+r,"number");if(cM(r))return e.stylize(""+r,"boolean");if(Gb(r))return e.stylize("null","null")}function sM(e){return"["+Error.prototype.toString.call(e)+"]"}function cHe(e,r,t,a,n){for(var i=[],o=0,l=r.length;o{"use strict";function sne(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);r&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,a)}return t}function une(e){for(var r=1;r0?this.tail.next=a:this.head=a,this.tail=a,++this.length}},{key:"unshift",value:function(t){var a={data:t,next:this.head};this.length===0&&(this.tail=a),this.head=a,++this.length}},{key:"shift",value:function(){if(this.length!==0){var t=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,t}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(t){if(this.length===0)return"";for(var a=this.head,n=""+a.data;a=a.next;)n+=t+a.data;return n}},{key:"concat",value:function(t){if(this.length===0)return qb.alloc(0);for(var a=qb.allocUnsafe(t>>>0),n=this.head,i=0;n;)wBe(n.data,a,i),i+=n.data.length,n=n.next;return a}},{key:"consume",value:function(t,a){var n;return to.length?o.length:t;if(l===o.length?i+=o:i+=o.slice(0,t),t-=l,t===0){l===o.length?(++n,a.next?this.head=a.next:this.head=this.tail=null):(this.head=a,a.data=o.slice(l));break}++n}return this.length-=n,i}},{key:"_getBuffer",value:function(t){var a=qb.allocUnsafe(t),n=this.head,i=1;for(n.data.copy(a),t-=n.data.length;n=n.next;){var o=n.data,l=t>o.length?o.length:t;if(o.copy(a,a.length-t,0,l),t-=l,t===0){l===o.length?(++i,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=o.slice(l));break}++i}return this.length-=i,a}},{key:_Be,value:function(t,a){return HA(this,une(une({},a),{},{depth:0,customInspect:!1}))}}]),e})()});var GA=z((dtr,pne)=>{"use strict";function TBe(e,r){var t=this,a=this._readableState&&this._readableState.destroyed,n=this._writableState&&this._writableState.destroyed;return a||n?(r?r(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(UA,this,e)):process.nextTick(UA,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(i){!r&&i?t._writableState?t._writableState.errorEmitted?process.nextTick(Lb,t):(t._writableState.errorEmitted=!0,process.nextTick(dne,t,i)):process.nextTick(dne,t,i):r?(process.nextTick(Lb,t),r(i)):process.nextTick(Lb,t)}),this)}function dne(e,r){UA(e,r),Lb(e)}function Lb(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function ABe(){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 UA(e,r){e.emit("error",r)}function MBe(e,r){var t=e._readableState,a=e._writableState;t&&t.autoDestroy||a&&a.autoDestroy?e.destroy(r):e.emit("error",r)}pne.exports={destroy:TBe,undestroy:ABe,errorOrDestroy:MBe}});var Jf=z((ptr,gne)=>{"use strict";function kBe(e,r){e.prototype=Object.create(r.prototype),e.prototype.constructor=e,e.__proto__=r}var yne={};function _o(e,r,t){t||(t=Error);function a(i,o,l){return typeof r=="string"?r:r(i,o,l)}var n=(function(i){kBe(o,i);function o(l,s,u){return i.call(this,a(l,s,u))||this}return o})(t);n.prototype.name=t.name,n.prototype.code=e,yne[e]=n}function mne(e,r){if(Array.isArray(e)){var t=e.length;return e=e.map(function(a){return String(a)}),t>2?"one of ".concat(r," ").concat(e.slice(0,t-1).join(", "),", or ")+e[t-1]:t===2?"one of ".concat(r," ").concat(e[0]," or ").concat(e[1]):"of ".concat(r," ").concat(e[0])}else return"of ".concat(r," ").concat(String(e))}function SBe(e,r,t){return e.substr(!t||t<0?0:+t,r.length)===r}function qBe(e,r,t){return(t===void 0||t>e.length)&&(t=e.length),e.substring(t-r.length,t)===r}function LBe(e,r,t){return typeof t!="number"&&(t=0),t+r.length>e.length?!1:e.indexOf(r,t)!==-1}_o("ERR_INVALID_OPT_VALUE",function(e,r){return'The value "'+r+'" is invalid for option "'+e+'"'},TypeError);_o("ERR_INVALID_ARG_TYPE",function(e,r,t){var a;typeof r=="string"&&SBe(r,"not ")?(a="must not be",r=r.replace(/^not /,"")):a="must be";var n;if(qBe(e," argument"))n="The ".concat(e," ").concat(a," ").concat(mne(r,"type"));else{var i=LBe(e,".")?"property":"argument";n='The "'.concat(e,'" ').concat(i," ").concat(a," ").concat(mne(r,"type"))}return n+=". Received type ".concat(typeof t),n},TypeError);_o("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");_o("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"});_o("ERR_STREAM_PREMATURE_CLOSE","Premature close");_o("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"});_o("ERR_MULTIPLE_CALLBACK","Callback called multiple times");_o("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");_o("ERR_STREAM_WRITE_AFTER_END","write after end");_o("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);_o("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError);_o("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");gne.exports.codes=yne});var YA=z((mtr,bne)=>{"use strict";var CBe=Jf().codes.ERR_INVALID_OPT_VALUE;function DBe(e,r,t){return e.highWaterMark!=null?e.highWaterMark:r?e[t]:null}function EBe(e,r,t,a){var n=DBe(r,a,t);if(n!=null){if(!(isFinite(n)&&Math.floor(n)===n)||n<0){var i=a?t:"highWaterMark";throw new CBe(i,n)}return Math.floor(n)}return e.objectMode?16:16*1024}bne.exports={getHighWaterMark:EBe}});var _ne=z((ytr,xne)=>{xne.exports=PBe;function PBe(e,r){if(VA("noDeprecation"))return e;var t=!1;function a(){if(!t){if(VA("throwDeprecation"))throw new Error(r);VA("traceDeprecation")?console.trace(r):console.warn(r),t=!0}return e.apply(this,arguments)}return a}function VA(e){try{if(!window.localStorage)return!1}catch(t){return!1}var r=window.localStorage[e];return r==null?!1:String(r).toLowerCase()==="true"}});var XA=z((gtr,Sne)=>{"use strict";Sne.exports=Ra;function Tne(e){var r=this;this.next=null,this.entry=null,this.finish=function(){oOe(r,e)}}var Av;Ra.WritableState=F2;var RBe={deprecate:_ne()},Ane=$T(),Db=hv().Buffer,FBe=(typeof window!="undefined"||typeof window!="undefined"?window:typeof self!="undefined"?self:{}).Uint8Array||function(){};function zBe(e){return Db.from(e)}function NBe(e){return Db.isBuffer(e)||e instanceof FBe}var WA=GA(),IBe=YA(),BBe=IBe.getHighWaterMark,cu=Jf().codes,OBe=cu.ERR_INVALID_ARG_TYPE,HBe=cu.ERR_METHOD_NOT_IMPLEMENTED,UBe=cu.ERR_MULTIPLE_CALLBACK,GBe=cu.ERR_STREAM_CANNOT_PIPE,YBe=cu.ERR_STREAM_DESTROYED,VBe=cu.ERR_STREAM_NULL_VALUES,jBe=cu.ERR_STREAM_WRITE_AFTER_END,WBe=cu.ERR_UNKNOWN_ENCODING,Mv=WA.errorOrDestroy;vs()(Ra,Ane);function XBe(){}function F2(e,r,t){Av=Av||Kf(),e=e||{},typeof t!="boolean"&&(t=r instanceof Av),this.objectMode=!!e.objectMode,t&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=BBe(this,e,"writableHighWaterMark",t),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var a=e.decodeStrings===!1;this.decodeStrings=!a,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(n){rOe(r,n)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=e.emitClose!==!1,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new Tne(this)}F2.prototype.getBuffer=function(){for(var r=this.bufferedRequest,t=[];r;)t.push(r),r=r.next;return t};(function(){try{Object.defineProperty(F2.prototype,"buffer",{get:RBe.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}})();var Cb;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(Cb=Function.prototype[Symbol.hasInstance],Object.defineProperty(Ra,Symbol.hasInstance,{value:function(r){return Cb.call(this,r)?!0:this!==Ra?!1:r&&r._writableState instanceof F2}})):Cb=function(r){return r instanceof this};function Ra(e){Av=Av||Kf();var r=this instanceof Av;if(!r&&!Cb.call(Ra,this))return new Ra(e);this._writableState=new F2(e,this,r),this.writable=!0,e&&(typeof e.write=="function"&&(this._write=e.write),typeof e.writev=="function"&&(this._writev=e.writev),typeof e.destroy=="function"&&(this._destroy=e.destroy),typeof e.final=="function"&&(this._final=e.final)),Ane.call(this)}Ra.prototype.pipe=function(){Mv(this,new GBe)};function ZBe(e,r){var t=new jBe;Mv(e,t),process.nextTick(r,t)}function $Be(e,r,t,a){var n;return t===null?n=new VBe:typeof t!="string"&&!r.objectMode&&(n=new OBe("chunk",["string","Buffer"],t)),n?(Mv(e,n),process.nextTick(a,n),!1):!0}Ra.prototype.write=function(e,r,t){var a=this._writableState,n=!1,i=!a.objectMode&&NBe(e);return i&&!Db.isBuffer(e)&&(e=zBe(e)),typeof r=="function"&&(t=r,r=null),i?r="buffer":r||(r=a.defaultEncoding),typeof t!="function"&&(t=XBe),a.ending?ZBe(this,t):(i||$Be(this,a,e,t))&&(a.pendingcb++,n=KBe(this,a,i,e,r,t)),n};Ra.prototype.cork=function(){this._writableState.corked++};Ra.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,!e.writing&&!e.corked&&!e.bufferProcessing&&e.bufferedRequest&&Mne(this,e))};Ra.prototype.setDefaultEncoding=function(r){if(typeof r=="string"&&(r=r.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((r+"").toLowerCase())>-1))throw new WBe(r);return this._writableState.defaultEncoding=r,this};Object.defineProperty(Ra.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function JBe(e,r,t){return!e.objectMode&&e.decodeStrings!==!1&&typeof r=="string"&&(r=Db.from(r,t)),r}Object.defineProperty(Ra.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function KBe(e,r,t,a,n,i){if(!t){var o=JBe(r,a,n);a!==o&&(t=!0,n="buffer",a=o)}var l=r.objectMode?1:a.length;r.length+=l;var s=r.length{"use strict";var lOe=Object.keys||function(e){var r=[];for(var t in e)r.push(t);return r};Lne.exports=Pl;var qne=JA(),$A=XA();vs()(Pl,qne);for(ZA=lOe($A.prototype),Eb=0;Eb{var Rb=hv(),Rl=Rb.Buffer;function Cne(e,r){for(var t in e)r[t]=e[t]}Rl.from&&Rl.alloc&&Rl.allocUnsafe&&Rl.allocUnsafeSlow?Dne.exports=Rb:(Cne(Rb,KA),KA.Buffer=Qf);function Qf(e,r,t){return Rl(e,r,t)}Qf.prototype=Object.create(Rl.prototype);Cne(Rl,Qf);Qf.from=function(e,r,t){if(typeof e=="number")throw new TypeError("Argument must not be a number");return Rl(e,r,t)};Qf.alloc=function(e,r,t){if(typeof e!="number")throw new TypeError("Argument must be a number");var a=Rl(e);return r!==void 0?typeof t=="string"?a.fill(r,t):a.fill(r):a.fill(0),a};Qf.allocUnsafe=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return Rl(e)};Qf.allocUnsafeSlow=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return Rb.SlowBuffer(e)}});var rM=z(Rne=>{"use strict";var eM=Ene().Buffer,Pne=eM.isEncoding||function(e){switch(e=""+e,e&&e.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 fOe(e){if(!e)return"utf8";for(var r;;)switch(e){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 e;default:if(r)return;e=(""+e).toLowerCase(),r=!0}}function cOe(e){var r=fOe(e);if(typeof r!="string"&&(eM.isEncoding===Pne||!Pne(e)))throw new Error("Unknown encoding: "+e);return r||e}Rne.StringDecoder=z2;function z2(e){this.encoding=cOe(e);var r;switch(this.encoding){case"utf16le":this.text=yOe,this.end=gOe,r=4;break;case"utf8":this.fillLast=dOe,r=4;break;case"base64":this.text=bOe,this.end=xOe,r=3;break;default:this.write=_Oe,this.end=wOe;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=eM.allocUnsafe(r)}z2.prototype.write=function(e){if(e.length===0)return"";var r,t;if(this.lastNeed){if(r=this.fillLast(e),r===void 0)return"";t=this.lastNeed,this.lastNeed=0}else t=0;return t>5===6?2:e>>4===14?3:e>>3===30?4:e>>6===2?-1:-2}function vOe(e,r,t){var a=r.length-1;if(a=0?(n>0&&(e.lastNeed=n-1),n):--a=0?(n>0&&(e.lastNeed=n-2),n):--a=0?(n>0&&(n===2?n=0:e.lastNeed=n-3),n):0))}function hOe(e,r,t){if((r[0]&192)!==128)return e.lastNeed=0,"\uFFFD";if(e.lastNeed>1&&r.length>1){if((r[1]&192)!==128)return e.lastNeed=1,"\uFFFD";if(e.lastNeed>2&&r.length>2&&(r[2]&192)!==128)return e.lastNeed=2,"\uFFFD"}}function dOe(e){var r=this.lastTotal-this.lastNeed,t=hOe(this,e,r);if(t!==void 0)return t;if(this.lastNeed<=e.length)return e.copy(this.lastChar,r,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,r,0,e.length),this.lastNeed-=e.length}function pOe(e,r){var t=vOe(this,e,r);if(!this.lastNeed)return e.toString("utf8",r);this.lastTotal=t;var a=e.length-(t-this.lastNeed);return e.copy(this.lastChar,0,a),e.toString("utf8",r,a)}function mOe(e){var r=e&&e.length?this.write(e):"";return this.lastNeed?r+"\uFFFD":r}function yOe(e,r){if((e.length-r)%2===0){var t=e.toString("utf16le",r);if(t){var a=t.charCodeAt(t.length-1);if(a>=55296&&a<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],t.slice(0,-1)}return t}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",r,e.length-1)}function gOe(e){var r=e&&e.length?this.write(e):"";if(this.lastNeed){var t=this.lastTotal-this.lastNeed;return r+this.lastChar.toString("utf16le",0,t)}return r}function bOe(e,r){var t=(e.length-r)%3;return t===0?e.toString("base64",r):(this.lastNeed=3-t,this.lastTotal=3,t===1?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",r,e.length-t))}function xOe(e){var r=e&&e.length?this.write(e):"";return this.lastNeed?r+this.lastChar.toString("base64",0,3-this.lastNeed):r}function _Oe(e){return e.toString(this.encoding)}function wOe(e){return e&&e.length?this.write(e):""}});var Fb=z((_tr,Nne)=>{"use strict";var Fne=Jf().codes.ERR_STREAM_PREMATURE_CLOSE;function TOe(e){var r=!1;return function(){if(!r){r=!0;for(var t=arguments.length,a=new Array(t),n=0;n{"use strict";var zb;function vu(e,r,t){return r=kOe(r),r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function kOe(e){var r=SOe(e,"string");return typeof r=="symbol"?r:String(r)}function SOe(e,r){if(typeof e!="object"||e===null)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var a=t.call(e,r||"default");if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}var qOe=Fb(),hu=Symbol("lastResolve"),ec=Symbol("lastReject"),N2=Symbol("error"),Nb=Symbol("ended"),rc=Symbol("lastPromise"),tM=Symbol("handlePromise"),tc=Symbol("stream");function du(e,r){return{value:e,done:r}}function LOe(e){var r=e[hu];if(r!==null){var t=e[tc].read();t!==null&&(e[rc]=null,e[hu]=null,e[ec]=null,r(du(t,!1)))}}function COe(e){process.nextTick(LOe,e)}function DOe(e,r){return function(t,a){e.then(function(){if(r[Nb]){t(du(void 0,!0));return}r[tM](t,a)},a)}}var EOe=Object.getPrototypeOf(function(){}),POe=Object.setPrototypeOf((zb={get stream(){return this[tc]},next:function(){var r=this,t=this[N2];if(t!==null)return Promise.reject(t);if(this[Nb])return Promise.resolve(du(void 0,!0));if(this[tc].destroyed)return new Promise(function(o,l){process.nextTick(function(){r[N2]?l(r[N2]):o(du(void 0,!0))})});var a=this[rc],n;if(a)n=new Promise(DOe(a,this));else{var i=this[tc].read();if(i!==null)return Promise.resolve(du(i,!1));n=new Promise(this[tM])}return this[rc]=n,n}},vu(zb,Symbol.asyncIterator,function(){return this}),vu(zb,"return",function(){var r=this;return new Promise(function(t,a){r[tc].destroy(null,function(n){if(n){a(n);return}t(du(void 0,!0))})})}),zb),EOe),ROe=function(r){var t,a=Object.create(POe,(t={},vu(t,tc,{value:r,writable:!0}),vu(t,hu,{value:null,writable:!0}),vu(t,ec,{value:null,writable:!0}),vu(t,N2,{value:null,writable:!0}),vu(t,Nb,{value:r._readableState.endEmitted,writable:!0}),vu(t,tM,{value:function(i,o){var l=a[tc].read();l?(a[rc]=null,a[hu]=null,a[ec]=null,i(du(l,!1))):(a[hu]=i,a[ec]=o)},writable:!0}),t));return a[rc]=null,qOe(r,function(n){if(n&&n.code!=="ERR_STREAM_PREMATURE_CLOSE"){var i=a[ec];i!==null&&(a[rc]=null,a[hu]=null,a[ec]=null,i(n)),a[N2]=n;return}var o=a[hu];o!==null&&(a[rc]=null,a[hu]=null,a[ec]=null,o(du(void 0,!0))),a[Nb]=!0}),r.on("readable",COe.bind(null,a)),a};Ine.exports=ROe});var Hne=z((Ttr,One)=>{One.exports=function(){throw new Error("Readable.from is not available in the browser")}});var JA=z((Mtr,Jne)=>{"use strict";Jne.exports=Mt;var kv;Mt.ReadableState=Vne;var Atr=Ju().EventEmitter,Yne=function(r,t){return r.listeners(t).length},B2=$T(),Ib=hv().Buffer,FOe=(typeof window!="undefined"||typeof window!="undefined"?window:typeof self!="undefined"?self:{}).Uint8Array||function(){};function zOe(e){return Ib.from(e)}function NOe(e){return Ib.isBuffer(e)||e instanceof FOe}var aM=OA(),ut;aM&&aM.debuglog?ut=aM.debuglog("stream"):ut=function(){};var IOe=hne(),fM=GA(),BOe=YA(),OOe=BOe.getHighWaterMark,Bb=Jf().codes,HOe=Bb.ERR_INVALID_ARG_TYPE,UOe=Bb.ERR_STREAM_PUSH_AFTER_EOF,GOe=Bb.ERR_METHOD_NOT_IMPLEMENTED,YOe=Bb.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,Sv,nM,iM;vs()(Mt,B2);var I2=fM.errorOrDestroy,oM=["error","close","destroy","pause","resume"];function VOe(e,r,t){if(typeof e.prependListener=="function")return e.prependListener(r,t);!e._events||!e._events[r]?e.on(r,t):Array.isArray(e._events[r])?e._events[r].unshift(t):e._events[r]=[t,e._events[r]]}function Vne(e,r,t){kv=kv||Kf(),e=e||{},typeof t!="boolean"&&(t=r instanceof kv),this.objectMode=!!e.objectMode,t&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=OOe(this,e,"readableHighWaterMark",t),this.buffer=new IOe,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=e.emitClose!==!1,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(Sv||(Sv=rM().StringDecoder),this.decoder=new Sv(e.encoding),this.encoding=e.encoding)}function Mt(e){if(kv=kv||Kf(),!(this instanceof Mt))return new Mt(e);var r=this instanceof kv;this._readableState=new Vne(e,this,r),this.readable=!0,e&&(typeof e.read=="function"&&(this._read=e.read),typeof e.destroy=="function"&&(this._destroy=e.destroy)),B2.call(this)}Object.defineProperty(Mt.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(r){this._readableState&&(this._readableState.destroyed=r)}});Mt.prototype.destroy=fM.destroy;Mt.prototype._undestroy=fM.undestroy;Mt.prototype._destroy=function(e,r){r(e)};Mt.prototype.push=function(e,r){var t=this._readableState,a;return t.objectMode?a=!0:typeof e=="string"&&(r=r||t.defaultEncoding,r!==t.encoding&&(e=Ib.from(e,r),r=""),a=!0),jne(this,e,r,!1,a)};Mt.prototype.unshift=function(e){return jne(this,e,null,!0,!1)};function jne(e,r,t,a,n){ut("readableAddChunk",r);var i=e._readableState;if(r===null)i.reading=!1,XOe(e,i);else{var o;if(n||(o=jOe(i,r)),o)I2(e,o);else if(i.objectMode||r&&r.length>0)if(typeof r!="string"&&!i.objectMode&&Object.getPrototypeOf(r)!==Ib.prototype&&(r=zOe(r)),a)i.endEmitted?I2(e,new YOe):lM(e,i,r,!0);else if(i.ended)I2(e,new UOe);else{if(i.destroyed)return!1;i.reading=!1,i.decoder&&!t?(r=i.decoder.write(r),i.objectMode||r.length!==0?lM(e,i,r,!1):uM(e,i)):lM(e,i,r,!1)}else a||(i.reading=!1,uM(e,i))}return!i.ended&&(i.length=Une?e=Une:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function Gne(e,r){return e<=0||r.length===0&&r.ended?0:r.objectMode?1:e!==e?r.flowing&&r.length?r.buffer.head.data.length:r.length:(e>r.highWaterMark&&(r.highWaterMark=WOe(e)),e<=r.length?e:r.ended?r.length:(r.needReadable=!0,0))}Mt.prototype.read=function(e){ut("read",e),e=parseInt(e,10);var r=this._readableState,t=e;if(e!==0&&(r.emittedReadable=!1),e===0&&r.needReadable&&((r.highWaterMark!==0?r.length>=r.highWaterMark:r.length>0)||r.ended))return ut("read: emitReadable",r.length,r.ended),r.length===0&&r.ended?sM(this):Ob(this),null;if(e=Gne(e,r),e===0&&r.ended)return r.length===0&&sM(this),null;var a=r.needReadable;ut("need readable",a),(r.length===0||r.length-e0?n=Zne(e,r):n=null,n===null?(r.needReadable=r.length<=r.highWaterMark,e=0):(r.length-=e,r.awaitDrain=0),r.length===0&&(r.ended||(r.needReadable=!0),t!==e&&r.ended&&sM(this)),n!==null&&this.emit("data",n),n};function XOe(e,r){if(ut("onEofChunk"),!r.ended){if(r.decoder){var t=r.decoder.end();t&&t.length&&(r.buffer.push(t),r.length+=r.objectMode?1:t.length)}r.ended=!0,r.sync?Ob(e):(r.needReadable=!1,r.emittedReadable||(r.emittedReadable=!0,Wne(e)))}}function Ob(e){var r=e._readableState;ut("emitReadable",r.needReadable,r.emittedReadable),r.needReadable=!1,r.emittedReadable||(ut("emitReadable",r.flowing),r.emittedReadable=!0,process.nextTick(Wne,e))}function Wne(e){var r=e._readableState;ut("emitReadable_",r.destroyed,r.length,r.ended),!r.destroyed&&(r.length||r.ended)&&(e.emit("readable"),r.emittedReadable=!1),r.needReadable=!r.flowing&&!r.ended&&r.length<=r.highWaterMark,cM(e)}function uM(e,r){r.readingMore||(r.readingMore=!0,process.nextTick(ZOe,e,r))}function ZOe(e,r){for(;!r.reading&&!r.ended&&(r.length1&&$ne(a.pipes,e)!==-1)&&!u&&(ut("false write response, pause",a.awaitDrain),a.awaitDrain++),t.pause())}function v(y){ut("onerror",y),m(),e.removeListener("error",v),Yne(e,"error")===0&&I2(e,y)}VOe(e,"error",v);function d(){e.removeListener("finish",p),m()}e.once("close",d);function p(){ut("onfinish"),e.removeListener("close",d),m()}e.once("finish",p);function m(){ut("unpipe"),t.unpipe(e)}return e.emit("pipe",t),a.flowing||(ut("pipe resume"),t.resume()),e};function $Oe(e){return function(){var t=e._readableState;ut("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,t.awaitDrain===0&&Yne(e,"data")&&(t.flowing=!0,cM(e))}}Mt.prototype.unpipe=function(e){var r=this._readableState,t={hasUnpiped:!1};if(r.pipesCount===0)return this;if(r.pipesCount===1)return e&&e!==r.pipes?this:(e||(e=r.pipes),r.pipes=null,r.pipesCount=0,r.flowing=!1,e&&e.emit("unpipe",this,t),this);if(!e){var a=r.pipes,n=r.pipesCount;r.pipes=null,r.pipesCount=0,r.flowing=!1;for(var i=0;i0,a.flowing!==!1&&this.resume()):e==="readable"&&!a.endEmitted&&!a.readableListening&&(a.readableListening=a.needReadable=!0,a.flowing=!1,a.emittedReadable=!1,ut("on readable",a.length,a.reading),a.length?Ob(this):a.reading||process.nextTick(JOe,this)),t};Mt.prototype.addListener=Mt.prototype.on;Mt.prototype.removeListener=function(e,r){var t=B2.prototype.removeListener.call(this,e,r);return e==="readable"&&process.nextTick(Xne,this),t};Mt.prototype.removeAllListeners=function(e){var r=B2.prototype.removeAllListeners.apply(this,arguments);return(e==="readable"||e===void 0)&&process.nextTick(Xne,this),r};function Xne(e){var r=e._readableState;r.readableListening=e.listenerCount("readable")>0,r.resumeScheduled&&!r.paused?r.flowing=!0:e.listenerCount("data")>0&&e.resume()}function JOe(e){ut("readable nexttick read 0"),e.read(0)}Mt.prototype.resume=function(){var e=this._readableState;return e.flowing||(ut("resume"),e.flowing=!e.readableListening,KOe(this,e)),e.paused=!1,this};function KOe(e,r){r.resumeScheduled||(r.resumeScheduled=!0,process.nextTick(QOe,e,r))}function QOe(e,r){ut("resume",r.reading),r.reading||e.read(0),r.resumeScheduled=!1,e.emit("resume"),cM(e),r.flowing&&!r.reading&&e.read(0)}Mt.prototype.pause=function(){return ut("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(ut("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function cM(e){var r=e._readableState;for(ut("flow",r.flowing);r.flowing&&e.read()!==null;);}Mt.prototype.wrap=function(e){var r=this,t=this._readableState,a=!1;e.on("end",function(){if(ut("wrapped end"),t.decoder&&!t.ended){var o=t.decoder.end();o&&o.length&&r.push(o)}r.push(null)}),e.on("data",function(o){if(ut("wrapped data"),t.decoder&&(o=t.decoder.write(o)),!(t.objectMode&&o==null)&&!(!t.objectMode&&(!o||!o.length))){var l=r.push(o);l||(a=!0,e.pause())}});for(var n in e)this[n]===void 0&&typeof e[n]=="function"&&(this[n]=(function(l){return function(){return e[l].apply(e,arguments)}})(n));for(var i=0;i=r.length?(r.decoder?t=r.buffer.join(""):r.buffer.length===1?t=r.buffer.first():t=r.buffer.concat(r.length),r.buffer.clear()):t=r.buffer.consume(e,r.decoder),t}function sM(e){var r=e._readableState;ut("endReadable",r.endEmitted),r.endEmitted||(r.ended=!0,process.nextTick(eHe,r,e))}function eHe(e,r){if(ut("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&e.length===0&&(e.endEmitted=!0,r.readable=!1,r.emit("end"),e.autoDestroy)){var t=r._writableState;(!t||t.autoDestroy&&t.finished)&&r.destroy()}}typeof Symbol=="function"&&(Mt.from=function(e,r){return iM===void 0&&(iM=Hne()),iM(Mt,e,r)});function $ne(e,r){for(var t=0,a=e.length;t{"use strict";Qne.exports=ds;var Hb=Jf().codes,rHe=Hb.ERR_METHOD_NOT_IMPLEMENTED,tHe=Hb.ERR_MULTIPLE_CALLBACK,aHe=Hb.ERR_TRANSFORM_ALREADY_TRANSFORMING,nHe=Hb.ERR_TRANSFORM_WITH_LENGTH_0,Ub=Kf();vs()(ds,Ub);function iHe(e,r){var t=this._transformState;t.transforming=!1;var a=t.writecb;if(a===null)return this.emit("error",new tHe);t.writechunk=null,t.writecb=null,r!=null&&this.push(r),a(e);var n=this._readableState;n.reading=!1,(n.needReadable||n.length{"use strict";rie.exports=O2;var eie=vM();vs()(O2,eie);function O2(e){if(!(this instanceof O2))return new O2(e);eie.call(this,e)}O2.prototype._transform=function(e,r,t){t(null,e)}});var lie=z((qtr,oie)=>{"use strict";var hM;function lHe(e){var r=!1;return function(){r||(r=!0,e.apply(void 0,arguments))}}var iie=Jf().codes,sHe=iie.ERR_MISSING_ARGS,uHe=iie.ERR_STREAM_DESTROYED;function aie(e){if(e)throw e}function fHe(e){return e.setHeader&&typeof e.abort=="function"}function cHe(e,r,t,a){a=lHe(a);var n=!1;e.on("close",function(){n=!0}),hM===void 0&&(hM=Fb()),hM(e,{readable:r,writable:t},function(o){if(o)return a(o);n=!0,a()});var i=!1;return function(o){if(!n&&!i){if(i=!0,fHe(e))return e.abort();if(typeof e.destroy=="function")return e.destroy();a(o||new uHe("pipe"))}}}function nie(e){e()}function vHe(e,r){return e.pipe(r)}function hHe(e){return!e.length||typeof e[e.length-1]!="function"?aie:e.pop()}function dHe(){for(var e=arguments.length,r=new Array(e),t=0;t0;return cHe(o,s,u,function(f){n||(n=f),f&&i.forEach(nie),!s&&(i.forEach(nie),a(n))})});return r.reduce(vHe)}oie.exports=dHe});var uie=z((Ltr,sie)=>{sie.exports=wo;var dM=Ju().EventEmitter,pHe=vs();pHe(wo,dM);wo.Readable=JA();wo.Writable=XA();wo.Duplex=Kf();wo.Transform=vM();wo.PassThrough=tie();wo.finished=Fb();wo.pipeline=lie();wo.Stream=wo;function wo(){dM.call(this)}wo.prototype.pipe=function(e,r){var t=this;function a(f){e.writable&&e.write(f)===!1&&t.pause&&t.pause()}t.on("data",a);function n(){t.readable&&t.resume&&t.resume()}e.on("drain",n),!e._isStdio&&(!r||r.end!==!1)&&(t.on("end",o),t.on("close",l));var i=!1;function o(){i||(i=!0,e.end())}function l(){i||(i=!0,typeof e.destroy=="function"&&e.destroy())}function s(f){if(u(),dM.listenerCount(this,"error")===0)throw f}t.on("error",s),e.on("error",s);function u(){t.removeListener("data",a),e.removeListener("drain",n),t.removeListener("end",o),t.removeListener("close",l),t.removeListener("error",s),e.removeListener("error",s),t.removeListener("end",u),t.removeListener("close",u),e.removeListener("close",u)}return t.on("end",u),t.on("close",u),e.on("close",u),e.emit("pipe",t),e}});var Lv=z(mt=>{var fie=Object.getOwnPropertyDescriptors||function(r){for(var t=Object.keys(r),a={},n=0;n=n)return l;switch(l){case"%s":return String(a[t++]);case"%d":return Number(a[t++]);case"%j":try{return JSON.stringify(a[t++])}catch(s){return"[Circular]"}default:return l}}),o=a[t];t=3&&(t.depth=arguments[2]),arguments.length>=4&&(t.colors=arguments[3]),gM(r)?t.showHidden=r:r&&mt._extend(t,r),nc(t.showHidden)&&(t.showHidden=!1),nc(t.depth)&&(t.depth=2),nc(t.colors)&&(t.colors=!1),nc(t.customInspect)&&(t.customInspect=!0),t.colors&&(t.stylize=yHe),jb(t,e,t.depth)}mt.inspect=pu;pu.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]};pu.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function yHe(e,r){var t=pu.styles[r];return t?"\x1B["+pu.colors[t][0]+"m"+e+"\x1B["+pu.colors[t][1]+"m":e}function gHe(e,r){return e}function bHe(e){var r={};return e.forEach(function(t,a){r[t]=!0}),r}function jb(e,r,t){if(e.customInspect&&r&&Vb(r.inspect)&&r.inspect!==mt.inspect&&!(r.constructor&&r.constructor.prototype===r)){var a=r.inspect(t,e);return Zb(a)||(a=jb(e,a,t)),a}var n=xHe(e,r);if(n)return n;var i=Object.keys(r),o=bHe(i);if(e.showHidden&&(i=Object.getOwnPropertyNames(r)),U2(r)&&(i.indexOf("message")>=0||i.indexOf("description")>=0))return pM(r);if(i.length===0){if(Vb(r)){var l=r.name?": "+r.name:"";return e.stylize("[Function"+l+"]","special")}if(H2(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(Wb(r))return e.stylize(Date.prototype.toString.call(r),"date");if(U2(r))return pM(r)}var s="",u=!1,f=["{","}"];if(vie(r)&&(u=!0,f=["[","]"]),Vb(r)){var c=r.name?": "+r.name:"";s=" [Function"+c+"]"}if(H2(r)&&(s=" "+RegExp.prototype.toString.call(r)),Wb(r)&&(s=" "+Date.prototype.toUTCString.call(r)),U2(r)&&(s=" "+pM(r)),i.length===0&&(!u||r.length==0))return f[0]+s+f[1];if(t<0)return H2(r)?e.stylize(RegExp.prototype.toString.call(r),"regexp"):e.stylize("[Object]","special");e.seen.push(r);var v;return u?v=_He(e,r,t,o,i):v=i.map(function(d){return yM(e,r,t,o,d,u)}),e.seen.pop(),wHe(v,s,f)}function xHe(e,r){if(nc(r))return e.stylize("undefined","undefined");if(Zb(r)){var t="'"+JSON.stringify(r).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(t,"string")}if(hie(r))return e.stylize(""+r,"number");if(gM(r))return e.stylize(""+r,"boolean");if(Xb(r))return e.stylize("null","null")}function pM(e){return"["+Error.prototype.toString.call(e)+"]"}function _He(e,r,t,a,n){for(var i=[],o=0,l=r.length;o-1&&(i?l=l.split(` `).map(function(u){return" "+u}).join(` `).slice(2):l=` `+l.split(` `).map(function(u){return" "+u}).join(` -`))):l=e.stylize("[Circular]","special")),rc(o)){if(i&&n.match(/^\d+$/))return l;o=JSON.stringify(""+n),o.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.slice(1,-1),o=e.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=e.stylize(o,"string"))}return o+": "+l}function vHe(e,r,t){var a=0,n=e.reduce(function(i,o){return a++,o.indexOf(` +`))):l=e.stylize("[Circular]","special")),nc(o)){if(i&&n.match(/^\d+$/))return l;o=JSON.stringify(""+n),o.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.slice(1,-1),o=e.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=e.stylize(o,"string"))}return o+": "+l}function wHe(e,r,t){var a=0,n=e.reduce(function(i,o){return a++,o.indexOf(` `)>=0&&a++,i+o.replace(/\u001b\[\d\d?m/g,"").length+1},0);return n>60?t[0]+(r===""?"":r+` `)+" "+e.join(`, - `)+" "+t[1]:t[0]+r+" "+e.join(", ")+" "+t[1]}vt.types=kT();function oie(e){return Array.isArray(e)}vt.isArray=oie;function cM(e){return typeof e=="boolean"}vt.isBoolean=cM;function Gb(e){return e===null}vt.isNull=Gb;function hHe(e){return e==null}vt.isNullOrUndefined=hHe;function lie(e){return typeof e=="number"}vt.isNumber=lie;function Yb(e){return typeof e=="string"}vt.isString=Yb;function dHe(e){return typeof e=="symbol"}vt.isSymbol=dHe;function rc(e){return e===void 0}vt.isUndefined=rc;function O2(e){return qv(e)&&vM(e)==="[object RegExp]"}vt.isRegExp=O2;vt.types.isRegExp=O2;function qv(e){return typeof e=="object"&&e!==null}vt.isObject=qv;function Ub(e){return qv(e)&&vM(e)==="[object Date]"}vt.isDate=Ub;vt.types.isDate=Ub;function H2(e){return qv(e)&&(vM(e)==="[object Error]"||e instanceof Error)}vt.isError=H2;vt.types.isNativeError=H2;function Ob(e){return typeof e=="function"}vt.isFunction=Ob;function pHe(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||typeof e=="undefined"}vt.isPrimitive=pHe;vt.isBuffer=ST();function vM(e){return Object.prototype.toString.call(e)}function uM(e){return e<10?"0"+e.toString(10):e.toString(10)}var mHe=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function yHe(){var e=new Date,r=[uM(e.getHours()),uM(e.getMinutes()),uM(e.getSeconds())].join(":");return[e.getDate(),mHe[e.getMonth()],r].join(" ")}vt.log=function(){console.log("%s - %s",yHe(),vt.format.apply(vt,arguments))};vt.inherits=ss();vt._extend=function(e,r){if(!r||!qv(r))return e;for(var t=Object.keys(r),a=t.length;a--;)e[t[a]]=r[t[a]];return e};function sie(e,r){return Object.prototype.hasOwnProperty.call(e,r)}var ec=typeof Symbol!="undefined"?Symbol("util.promisify.custom"):void 0;vt.promisify=function(r){if(typeof r!="function")throw new TypeError('The "original" argument must be of type Function');if(ec&&r[ec]){var t=r[ec];if(typeof t!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,ec,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var a,n,i=new Promise(function(s,u){a=s,n=u}),o=[],l=0;l{"use strict";function hu(e){"@babel/helpers - typeof";return hu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},hu(e)}function uie(e,r){for(var t=0;t2?"one of ".concat(r," ").concat(e.slice(0,t-1).join(", "),", or ")+e[t-1]:t===2?"one of ".concat(r," ").concat(e[0]," or ").concat(e[1]):"of ".concat(r," ").concat(e[0])}else return"of ".concat(r," ").concat(String(e))}function LHe(e,r,t){return e.substr(!t||t<0?0:+t,r.length)===r}function CHe(e,r,t){return(t===void 0||t>e.length)&&(t=e.length),e.substring(t-r.length,t)===r}function DHe(e,r,t){return typeof t!="number"&&(t=0),t+r.length>e.length?!1:e.indexOf(r,t)!==-1}U2("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError);U2("ERR_INVALID_ARG_TYPE",function(e,r,t){Cv===void 0&&(Cv=jb()),Cv(typeof e=="string","'name' must be a string");var a;typeof r=="string"&&LHe(r,"not ")?(a="must not be",r=r.replace(/^not /,"")):a="must be";var n;if(CHe(e," argument"))n="The ".concat(e," ").concat(a," ").concat(fie(r,"type"));else{var i=DHe(e,".")?"property":"argument";n='The "'.concat(e,'" ').concat(i," ").concat(a," ").concat(fie(r,"type"))}return n+=". Received type ".concat(hu(t)),n},TypeError);U2("ERR_INVALID_ARG_VALUE",function(e,r){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";hM===void 0&&(hM=Lv());var a=hM.inspect(r);return a.length>128&&(a="".concat(a.slice(0,128),"...")),"The argument '".concat(e,"' ").concat(t,". Received ").concat(a)},TypeError,RangeError);U2("ERR_INVALID_RETURN_VALUE",function(e,r,t){var a;return t&&t.constructor&&t.constructor.name?a="instance of ".concat(t.constructor.name):a="type ".concat(hu(t)),"Expected ".concat(e,' to be returned from the "').concat(r,'"')+" function but got ".concat(a,".")},TypeError);U2("ERR_MISSING_ARGS",function(){for(var e=arguments.length,r=new Array(e),t=0;t0,"At least one arg needs to be specified");var a="The ",n=r.length;switch(r=r.map(function(i){return'"'.concat(i,'"')}),n){case 1:a+="".concat(r[0]," argument");break;case 2:a+="".concat(r[0]," and ").concat(r[1]," arguments");break;default:a+=r.slice(0,n-1).join(", "),a+=", and ".concat(r[n-1]," arguments");break}return"".concat(a," must be specified")},TypeError);vie.exports.codes=cie});var wie=z((wtr,_ie)=>{"use strict";function hie(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);r&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,a)}return t}function die(e){for(var r=1;re.length)&&(t=e.length),e.substring(t-r.length,t)===r}function UHe(e,r){if(r=Math.floor(r),e.length==0||r==0)return"";var t=e.length*r;for(r=Math.floor(Math.log(r)/Math.log(2));r;)e+=e,r--;return e+=e.substring(0,t-e.length),e}var $o="",G2="",Y2="",bn="",tc={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:"},GHe=10;function yie(e){var r=Object.keys(e),t=Object.create(Object.getPrototypeOf(e));return r.forEach(function(a){t[a]=e[a]}),Object.defineProperty(t,"message",{value:e.message}),t}function V2(e){return gM(e,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function YHe(e,r,t){var a="",n="",i=0,o="",l=!1,s=V2(e),u=s.split(` -`),f=V2(r).split(` -`),c=0,v="";if(t==="strictEqual"&&ui(e)==="object"&&ui(r)==="object"&&e!==null&&r!==null&&(t="strictEqualObject"),u.length===1&&f.length===1&&u[0]!==f[0]){var d=u[0].length+f[0].length;if(d<=GHe){if((ui(e)!=="object"||e===null)&&(ui(r)!=="object"||r===null)&&(e!==0||r!==0))return"".concat(tc[t],` + `)+" "+t[1]:t[0]+r+" "+e.join(", ")+" "+t[1]}mt.types=PA();function vie(e){return Array.isArray(e)}mt.isArray=vie;function gM(e){return typeof e=="boolean"}mt.isBoolean=gM;function Xb(e){return e===null}mt.isNull=Xb;function THe(e){return e==null}mt.isNullOrUndefined=THe;function hie(e){return typeof e=="number"}mt.isNumber=hie;function Zb(e){return typeof e=="string"}mt.isString=Zb;function AHe(e){return typeof e=="symbol"}mt.isSymbol=AHe;function nc(e){return e===void 0}mt.isUndefined=nc;function H2(e){return qv(e)&&bM(e)==="[object RegExp]"}mt.isRegExp=H2;mt.types.isRegExp=H2;function qv(e){return typeof e=="object"&&e!==null}mt.isObject=qv;function Wb(e){return qv(e)&&bM(e)==="[object Date]"}mt.isDate=Wb;mt.types.isDate=Wb;function U2(e){return qv(e)&&(bM(e)==="[object Error]"||e instanceof Error)}mt.isError=U2;mt.types.isNativeError=U2;function Vb(e){return typeof e=="function"}mt.isFunction=Vb;function MHe(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||typeof e=="undefined"}mt.isPrimitive=MHe;mt.isBuffer=RA();function bM(e){return Object.prototype.toString.call(e)}function mM(e){return e<10?"0"+e.toString(10):e.toString(10)}var kHe=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function SHe(){var e=new Date,r=[mM(e.getHours()),mM(e.getMinutes()),mM(e.getSeconds())].join(":");return[e.getDate(),kHe[e.getMonth()],r].join(" ")}mt.log=function(){console.log("%s - %s",SHe(),mt.format.apply(mt,arguments))};mt.inherits=vs();mt._extend=function(e,r){if(!r||!qv(r))return e;for(var t=Object.keys(r),a=t.length;a--;)e[t[a]]=r[t[a]];return e};function die(e,r){return Object.prototype.hasOwnProperty.call(e,r)}var ac=typeof Symbol!="undefined"?Symbol("util.promisify.custom"):void 0;mt.promisify=function(r){if(typeof r!="function")throw new TypeError('The "original" argument must be of type Function');if(ac&&r[ac]){var t=r[ac];if(typeof t!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,ac,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var a,n,i=new Promise(function(s,u){a=s,n=u}),o=[],l=0;l{"use strict";function mu(e){"@babel/helpers - typeof";return mu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},mu(e)}function pie(e,r){for(var t=0;t2?"one of ".concat(r," ").concat(e.slice(0,t-1).join(", "),", or ")+e[t-1]:t===2?"one of ".concat(r," ").concat(e[0]," or ").concat(e[1]):"of ".concat(r," ").concat(e[0])}else return"of ".concat(r," ").concat(String(e))}function BHe(e,r,t){return e.substr(!t||t<0?0:+t,r.length)===r}function OHe(e,r,t){return(t===void 0||t>e.length)&&(t=e.length),e.substring(t-r.length,t)===r}function HHe(e,r,t){return typeof t!="number"&&(t=0),t+r.length>e.length?!1:e.indexOf(r,t)!==-1}G2("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError);G2("ERR_INVALID_ARG_TYPE",function(e,r,t){Cv===void 0&&(Cv=Jb()),Cv(typeof e=="string","'name' must be a string");var a;typeof r=="string"&&BHe(r,"not ")?(a="must not be",r=r.replace(/^not /,"")):a="must be";var n;if(OHe(e," argument"))n="The ".concat(e," ").concat(a," ").concat(mie(r,"type"));else{var i=HHe(e,".")?"property":"argument";n='The "'.concat(e,'" ').concat(i," ").concat(a," ").concat(mie(r,"type"))}return n+=". Received type ".concat(mu(t)),n},TypeError);G2("ERR_INVALID_ARG_VALUE",function(e,r){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";xM===void 0&&(xM=Lv());var a=xM.inspect(r);return a.length>128&&(a="".concat(a.slice(0,128),"...")),"The argument '".concat(e,"' ").concat(t,". Received ").concat(a)},TypeError,RangeError);G2("ERR_INVALID_RETURN_VALUE",function(e,r,t){var a;return t&&t.constructor&&t.constructor.name?a="instance of ".concat(t.constructor.name):a="type ".concat(mu(t)),"Expected ".concat(e,' to be returned from the "').concat(r,'"')+" function but got ".concat(a,".")},TypeError);G2("ERR_MISSING_ARGS",function(){for(var e=arguments.length,r=new Array(e),t=0;t0,"At least one arg needs to be specified");var a="The ",n=r.length;switch(r=r.map(function(i){return'"'.concat(i,'"')}),n){case 1:a+="".concat(r[0]," argument");break;case 2:a+="".concat(r[0]," and ").concat(r[1]," arguments");break;default:a+=r.slice(0,n-1).join(", "),a+=", and ".concat(r[n-1]," arguments");break}return"".concat(a," must be specified")},TypeError);gie.exports.codes=yie});var qie=z((Etr,Sie)=>{"use strict";function bie(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);r&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,a)}return t}function xie(e){for(var r=1;re.length)&&(t=e.length),e.substring(t-r.length,t)===r}function KHe(e,r){if(r=Math.floor(r),e.length==0||r==0)return"";var t=e.length*r;for(r=Math.floor(Math.log(r)/Math.log(2));r;)e+=e,r--;return e+=e.substring(0,t-e.length),e}var el="",Y2="",V2="",_n="",ic={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:"},QHe=10;function Tie(e){var r=Object.keys(e),t=Object.create(Object.getPrototypeOf(e));return r.forEach(function(a){t[a]=e[a]}),Object.defineProperty(t,"message",{value:e.message}),t}function j2(e){return MM(e,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function eUe(e,r,t){var a="",n="",i=0,o="",l=!1,s=j2(e),u=s.split(` +`),f=j2(r).split(` +`),c=0,v="";if(t==="strictEqual"&&hi(e)==="object"&&hi(r)==="object"&&e!==null&&r!==null&&(t="strictEqualObject"),u.length===1&&f.length===1&&u[0]!==f[0]){var d=u[0].length+f[0].length;if(d<=QHe){if((hi(e)!=="object"||e===null)&&(hi(r)!=="object"||r===null)&&(e!==0||r!==0))return"".concat(ic[t],` `)+"".concat(u[0]," !== ").concat(f[0],` `)}else if(t!=="strictEqualObject"){var p=process.stderr&&process.stderr.isTTY?process.stderr.columns:80;if(d2&&(v=` - `.concat(UHe(" ",c),"^"),c=0)}}}for(var y=u[u.length-1],m=f[f.length-1];y===m&&(c++<2?o=` - `.concat(y).concat(o):a=y,u.pop(),f.pop(),!(u.length===0||f.length===0));)y=u[u.length-1],m=f[f.length-1];var b=Math.max(u.length,f.length);if(b===0){var A=s.split(` -`);if(A.length>30)for(A[26]="".concat($o,"...").concat(bn);A.length>27;)A.pop();return"".concat(tc.notIdentical,` + `.concat(KHe(" ",c),"^"),c=0)}}}for(var m=u[u.length-1],y=f[f.length-1];m===y&&(c++<2?o=` + `.concat(m).concat(o):a=m,u.pop(),f.pop(),!(u.length===0||f.length===0));)m=u[u.length-1],y=f[f.length-1];var b=Math.max(u.length,f.length);if(b===0){var T=s.split(` +`);if(T.length>30)for(T[26]="".concat(el,"...").concat(_n);T.length>27;)T.pop();return"".concat(ic.notIdentical,` -`).concat(A.join(` +`).concat(T.join(` `),` `)}c>3&&(o=` -`.concat($o,"...").concat(bn).concat(o),l=!0),a!==""&&(o=` - `.concat(a).concat(o),a="");var w=0,x=tc[t]+` -`.concat(G2,"+ actual").concat(bn," ").concat(Y2,"- expected").concat(bn),_=" ".concat($o,"...").concat(bn," Lines skipped");for(c=0;c1&&c>2&&(k>4?(n+=` -`.concat($o,"...").concat(bn),l=!0):k>3&&(n+=` +`.concat(el,"...").concat(_n).concat(o),l=!0),a!==""&&(o=` + `.concat(a).concat(o),a="");var w=0,x=ic[t]+` +`.concat(Y2,"+ actual").concat(_n," ").concat(V2,"- expected").concat(_n),_=" ".concat(el,"...").concat(_n," Lines skipped");for(c=0;c1&&c>2&&(k>4?(n+=` +`.concat(el,"...").concat(_n),l=!0):k>3&&(n+=` `.concat(f[c-2]),w++),n+=` `.concat(f[c-1]),w++),i=c,a+=` -`.concat(Y2,"-").concat(bn," ").concat(f[c]),w++;else if(f.length1&&c>2&&(k>4?(n+=` -`.concat($o,"...").concat(bn),l=!0):k>3&&(n+=` +`.concat(V2,"-").concat(_n," ").concat(f[c]),w++;else if(f.length1&&c>2&&(k>4?(n+=` +`.concat(el,"...").concat(_n),l=!0):k>3&&(n+=` `.concat(u[c-2]),w++),n+=` `.concat(u[c-1]),w++),i=c,n+=` -`.concat(G2,"+").concat(bn," ").concat(u[c]),w++;else{var T=f[c],q=u[c],C=q!==T&&(!mie(q,",")||q.slice(0,-1)!==T);C&&mie(T,",")&&T.slice(0,-1)===q&&(C=!1,q+=","),C?(k>1&&c>2&&(k>4?(n+=` -`.concat($o,"...").concat(bn),l=!0):k>3&&(n+=` +`.concat(Y2,"+").concat(_n," ").concat(u[c]),w++;else{var M=f[c],S=u[c],C=S!==M&&(!wie(S,",")||S.slice(0,-1)!==M);C&&wie(M,",")&&M.slice(0,-1)===S&&(C=!1,S+=","),C?(k>1&&c>2&&(k>4?(n+=` +`.concat(el,"...").concat(_n),l=!0):k>3&&(n+=` `.concat(u[c-2]),w++),n+=` `.concat(u[c-1]),w++),i=c,n+=` -`.concat(G2,"+").concat(bn," ").concat(q),a+=` -`.concat(Y2,"-").concat(bn," ").concat(T),w+=2):(n+=a,a="",(k===1||c===0)&&(n+=` - `.concat(q),w++))}if(w>20&&c20&&c30)for(d[26]="".concat($o,"...").concat(bn);d.length>27;)d.pop();d.length===1?i=t.call(this,"".concat(v," ").concat(d[0])):i=t.call(this,"".concat(v,` +`).concat(el,"...").concat(_n).concat(a,` +`)+"".concat(el,"...").concat(_n)}return"".concat(x).concat(l?_:"",` +`).concat(n).concat(a).concat(o).concat(v)}var rUe=(function(e,r){jHe(a,e);var t=WHe(a);function a(n){var i;if(GHe(this,a),hi(n)!=="object"||n===null)throw new JHe("options","Object",n);var o=n.message,l=n.operator,s=n.stackStartFn,u=n.actual,f=n.expected,c=Error.stackTraceLimit;if(Error.stackTraceLimit=0,o!=null)i=t.call(this,String(o));else if(process.stderr&&process.stderr.isTTY&&(process.stderr&&process.stderr.getColorDepth&&process.stderr.getColorDepth()!==1?(el="\x1B[34m",Y2="\x1B[32m",_n="\x1B[39m",V2="\x1B[31m"):(el="",Y2="",_n="",V2="")),hi(u)==="object"&&u!==null&&hi(f)==="object"&&f!==null&&"stack"in u&&u instanceof Error&&"stack"in f&&f instanceof Error&&(u=Tie(u),f=Tie(f)),l==="deepStrictEqual"||l==="strictEqual")i=t.call(this,eUe(u,f,l));else if(l==="notDeepStrictEqual"||l==="notStrictEqual"){var v=ic[l],d=j2(u).split(` +`);if(l==="notStrictEqual"&&hi(u)==="object"&&u!==null&&(v=ic.notStrictEqualObject),d.length>30)for(d[26]="".concat(el,"...").concat(_n);d.length>27;)d.pop();d.length===1?i=t.call(this,"".concat(v," ").concat(d[0])):i=t.call(this,"".concat(v,` `).concat(d.join(` `),` -`))}else{var p=V2(u),y="",m=tc[l];l==="notDeepEqual"||l==="notEqual"?(p="".concat(tc[l],` +`))}else{var p=j2(u),m="",y=ic[l];l==="notDeepEqual"||l==="notEqual"?(p="".concat(ic[l],` -`).concat(p),p.length>1024&&(p="".concat(p.slice(0,1021),"..."))):(y="".concat(V2(f)),p.length>512&&(p="".concat(p.slice(0,509),"...")),y.length>512&&(y="".concat(y.slice(0,509),"...")),l==="deepEqual"||l==="equal"?p="".concat(m,` +`).concat(p),p.length>1024&&(p="".concat(p.slice(0,1021),"..."))):(m="".concat(j2(f)),p.length>512&&(p="".concat(p.slice(0,509),"...")),m.length>512&&(m="".concat(m.slice(0,509),"...")),l==="deepEqual"||l==="equal"?p="".concat(y,` `).concat(p,` should equal -`):y=" ".concat(l," ").concat(y)),i=t.call(this,"".concat(p).concat(y))}return Error.stackTraceLimit=c,i.generatedMessage=!o,Object.defineProperty(mM(i),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),i.code="ERR_ASSERTION",i.actual=u,i.expected=f,i.operator=l,Error.captureStackTrace&&Error.captureStackTrace(mM(i),s),i.stack,i.name="AssertionError",bie(i)}return RHe(a,[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:r,value:function(i,o){return gM(this,die(die({},o),{},{customInspect:!1,depth:0}))}}]),a})(yM(Error),gM.custom);_ie.exports=VHe});var bM=z((Atr,Tie)=>{"use strict";var Aie=Object.prototype.toString;Tie.exports=function(r){var t=Aie.call(r),a=t==="[object Arguments]";return a||(a=t!=="[object Array]"&&r!==null&&typeof r=="object"&&typeof r.length=="number"&&r.length>=0&&Aie.call(r.callee)==="[object Function]"),a}});var Pie=z((Ttr,Eie)=>{"use strict";var Die;Object.keys||(X2=Object.prototype.hasOwnProperty,xM=Object.prototype.toString,Mie=bM(),_M=Object.prototype.propertyIsEnumerable,kie=!_M.call({toString:null},"toString"),Sie=_M.call(function(){},"prototype"),Z2=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],Xb=function(e){var r=e.constructor;return r&&r.prototype===e},qie={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},Lie=(function(){if(typeof window=="undefined")return!1;for(var e in window)try{if(!qie["$"+e]&&X2.call(window,e)&&window[e]!==null&&typeof window[e]=="object")try{Xb(window[e])}catch(r){return!0}}catch(r){return!0}return!1})(),Cie=function(e){if(typeof window=="undefined"||!Lie)return Xb(e);try{return Xb(e)}catch(r){return!1}},Die=function(r){var t=r!==null&&typeof r=="object",a=xM.call(r)==="[object Function]",n=Mie(r),i=t&&xM.call(r)==="[object String]",o=[];if(!t&&!a&&!n)throw new TypeError("Object.keys called on a non-object");var l=Sie&&a;if(i&&r.length>0&&!X2.call(r,0))for(var s=0;s0)for(var u=0;u{"use strict";var jHe=Array.prototype.slice,WHe=bM(),Rie=Object.keys,Zb=Rie?function(r){return Rie(r)}:Pie(),Fie=Object.keys;Zb.shim=function(){if(Object.keys){var r=(function(){var t=Object.keys(arguments);return t&&t.length===arguments.length})(1,2);r||(Object.keys=function(a){return WHe(a)?Fie(jHe.call(a)):Fie(a)})}else Object.keys=Zb;return Object.keys||Zb};zie.exports=Zb});var Hie=z((ktr,Oie)=>{"use strict";var XHe=wM(),Iie=V3()(),Bie=Vf(),$b=j3(),ZHe=Bie("Array.prototype.push"),Nie=Bie("Object.prototype.propertyIsEnumerable"),$He=Iie?$b.getOwnPropertySymbols:null;Oie.exports=function(r,t){if(r==null)throw new TypeError("target must be an object");var a=$b(r);if(arguments.length===1)return a;for(var n=1;n{"use strict";var AM=Hie(),JHe=function(){if(!Object.assign)return!1;for(var e="abcdefghijklmnopqrst",r=e.split(""),t={},a=0;a{"use strict";var Yie=function(e){return e!==e};Vie.exports=function(r,t){return r===0&&t===0?1/r===1/t:!!(r===t||Yie(r)&&Yie(t))}});var Jb=z((Ltr,jie)=>{"use strict";var QHe=TM();jie.exports=function(){return typeof Object.is=="function"?Object.is:QHe}});var $ie=z((Ctr,Zie)=>{"use strict";var Wie=rb(),Xie=q2(),eUe=Xie(Wie("String.prototype.indexOf"));Zie.exports=function(r,t){var a=Wie(r,!!t);return typeof a=="function"&&eUe(r,".prototype.")>-1?Xie(a):a}});var $2=z((Dtr,eoe)=>{"use strict";var rUe=wM(),tUe=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",aUe=Object.prototype.toString,nUe=Array.prototype.concat,Jie=yT(),iUe=function(e){return typeof e=="function"&&aUe.call(e)==="[object Function]"},Kie=bT()(),oUe=function(e,r,t,a){if(r in e){if(a===!0){if(e[r]===t)return}else if(!iUe(a)||!a())return}Kie?Jie(e,r,t,!0):Jie(e,r,t)},Qie=function(e,r){var t=arguments.length>2?arguments[2]:{},a=rUe(r);tUe&&(a=nUe.call(a,Object.getOwnPropertySymbols(r)));for(var n=0;n{"use strict";var lUe=Jb(),sUe=$2();roe.exports=function(){var r=lUe();return sUe(Object,{is:r},{is:function(){return Object.is!==r}}),r}});var ooe=z((Ptr,ioe)=>{"use strict";var uUe=$2(),fUe=q2(),cUe=TM(),aoe=Jb(),vUe=toe(),noe=fUe(aoe(),Object);uUe(noe,{getPolyfill:aoe,implementation:cUe,shim:vUe});ioe.exports=noe});var MM=z((Rtr,loe)=>{"use strict";loe.exports=function(r){return r!==r}});var kM=z((Ftr,soe)=>{"use strict";var hUe=MM();soe.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:hUe}});var foe=z((ztr,uoe)=>{"use strict";var dUe=$2(),pUe=kM();uoe.exports=function(){var r=pUe();return dUe(Number,{isNaN:r},{isNaN:function(){return Number.isNaN!==r}}),r}});var doe=z((Ntr,hoe)=>{"use strict";var mUe=q2(),yUe=$2(),gUe=MM(),coe=kM(),bUe=foe(),voe=mUe(coe(),Number);yUe(voe,{getPolyfill:coe,implementation:gUe,shim:bUe});hoe.exports=voe});var Roe=z((Itr,Poe)=>{"use strict";function poe(e,r){return AUe(e)||wUe(e,r)||_Ue(e,r)||xUe()}function xUe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _Ue(e,r){if(e){if(typeof e=="string")return moe(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return moe(e,r)}}function moe(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,a=new Array(r);t10)return!0;for(var r=0;r57)return!0}return e.length===10&&e>=Math.pow(2,32)}function ex(e){return Object.keys(e).filter(EUe).concat(tx(e).filter(Object.prototype.propertyIsEnumerable.bind(e)))}function Loe(e,r){if(e===r)return 0;for(var t=e.length,a=r.length,n=0,i=Math.min(t,a);n{"use strict";function Jo(e){"@babel/helpers - typeof";return Jo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Jo(e)}function Foe(e,r){for(var t=0;t1?t-1:0),n=1;n1?t-1:0),n=1;n1?t-1:0),n=1;n1?t-1:0),n=1;n{"use strict";var Lie=Object.prototype.toString;Cie.exports=function(r){var t=Lie.call(r),a=t==="[object Arguments]";return a||(a=t!=="[object Array]"&&r!==null&&typeof r=="object"&&typeof r.length=="number"&&r.length>=0&&Lie.call(r.callee)==="[object Function]"),a}});var Bie=z((Rtr,Iie)=>{"use strict";var Nie;Object.keys||(Z2=Object.prototype.hasOwnProperty,SM=Object.prototype.toString,Die=kM(),qM=Object.prototype.propertyIsEnumerable,Eie=!qM.call({toString:null},"toString"),Pie=qM.call(function(){},"prototype"),$2=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],Qb=function(e){var r=e.constructor;return r&&r.prototype===e},Rie={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},Fie=(function(){if(typeof window=="undefined")return!1;for(var e in window)try{if(!Rie["$"+e]&&Z2.call(window,e)&&window[e]!==null&&typeof window[e]=="object")try{Qb(window[e])}catch(r){return!0}}catch(r){return!0}return!1})(),zie=function(e){if(typeof window=="undefined"||!Fie)return Qb(e);try{return Qb(e)}catch(r){return!1}},Nie=function(r){var t=r!==null&&typeof r=="object",a=SM.call(r)==="[object Function]",n=Die(r),i=t&&SM.call(r)==="[object String]",o=[];if(!t&&!a&&!n)throw new TypeError("Object.keys called on a non-object");var l=Pie&&a;if(i&&r.length>0&&!Z2.call(r,0))for(var s=0;s0)for(var u=0;u{"use strict";var tUe=Array.prototype.slice,aUe=kM(),Oie=Object.keys,ex=Oie?function(r){return Oie(r)}:Bie(),Hie=Object.keys;ex.shim=function(){if(Object.keys){var r=(function(){var t=Object.keys(arguments);return t&&t.length===arguments.length})(1,2);r||(Object.keys=function(a){return aUe(a)?Hie(tUe.call(a)):Hie(a)})}else Object.keys=ex;return Object.keys||ex};Uie.exports=ex});var Wie=z((ztr,jie)=>{"use strict";var nUe=LM(),Yie=$3()(),Vie=Xf(),rx=J3(),iUe=Vie("Array.prototype.push"),Gie=Vie("Object.prototype.propertyIsEnumerable"),oUe=Yie?rx.getOwnPropertySymbols:null;jie.exports=function(r,t){if(r==null)throw new TypeError("target must be an object");var a=rx(r);if(arguments.length===1)return a;for(var n=1;n{"use strict";var CM=Wie(),lUe=function(){if(!Object.assign)return!1;for(var e="abcdefghijklmnopqrst",r=e.split(""),t={},a=0;a{"use strict";var $ie=function(e){return e!==e};Jie.exports=function(r,t){return r===0&&t===0?1/r===1/t:!!(r===t||$ie(r)&&$ie(t))}});var tx=z((Btr,Kie)=>{"use strict";var uUe=DM();Kie.exports=function(){return typeof Object.is=="function"?Object.is:uUe}});var toe=z((Otr,roe)=>{"use strict";var Qie=ob(),eoe=L2(),fUe=eoe(Qie("String.prototype.indexOf"));roe.exports=function(r,t){var a=Qie(r,!!t);return typeof a=="function"&&fUe(r,".prototype.")>-1?eoe(a):a}});var J2=z((Htr,ooe)=>{"use strict";var cUe=LM(),vUe=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",hUe=Object.prototype.toString,dUe=Array.prototype.concat,aoe=AA(),pUe=function(e){return typeof e=="function"&&hUe.call(e)==="[object Function]"},noe=kA()(),mUe=function(e,r,t,a){if(r in e){if(a===!0){if(e[r]===t)return}else if(!pUe(a)||!a())return}noe?aoe(e,r,t,!0):aoe(e,r,t)},ioe=function(e,r){var t=arguments.length>2?arguments[2]:{},a=cUe(r);vUe&&(a=dUe.call(a,Object.getOwnPropertySymbols(r)));for(var n=0;n{"use strict";var yUe=tx(),gUe=J2();loe.exports=function(){var r=yUe();return gUe(Object,{is:r},{is:function(){return Object.is!==r}}),r}});var voe=z((Gtr,coe)=>{"use strict";var bUe=J2(),xUe=L2(),_Ue=DM(),uoe=tx(),wUe=soe(),foe=xUe(uoe(),Object);bUe(foe,{getPolyfill:uoe,implementation:_Ue,shim:wUe});coe.exports=foe});var EM=z((Ytr,hoe)=>{"use strict";hoe.exports=function(r){return r!==r}});var PM=z((Vtr,doe)=>{"use strict";var TUe=EM();doe.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:TUe}});var moe=z((jtr,poe)=>{"use strict";var AUe=J2(),MUe=PM();poe.exports=function(){var r=MUe();return AUe(Number,{isNaN:r},{isNaN:function(){return Number.isNaN!==r}}),r}});var xoe=z((Wtr,boe)=>{"use strict";var kUe=L2(),SUe=J2(),qUe=EM(),yoe=PM(),LUe=moe(),goe=kUe(yoe(),Number);SUe(goe,{getPolyfill:yoe,implementation:qUe,shim:LUe});boe.exports=goe});var Ooe=z((Xtr,Boe)=>{"use strict";function _oe(e,r){return PUe(e)||EUe(e,r)||DUe(e,r)||CUe()}function CUe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function DUe(e,r){if(e){if(typeof e=="string")return woe(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return woe(e,r)}}function woe(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,a=new Array(r);t10)return!0;for(var r=0;r57)return!0}return e.length===10&&e>=Math.pow(2,32)}function ix(e){return Object.keys(e).filter(UUe).concat(lx(e).filter(Object.prototype.propertyIsEnumerable.bind(e)))}function Foe(e,r){if(e===r)return 0;for(var t=e.length,a=r.length,n=0,i=Math.min(t,a);n{"use strict";function rl(e){"@babel/helpers - typeof";return rl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},rl(e)}function Hoe(e,r){for(var t=0;t1?t-1:0),n=1;n1?t-1:0),n=1;n1?t-1:0),n=1;n1?t-1:0),n=1;n{var r1=1e3,t1=r1*60,a1=t1*60,n1=a1*24,nGe=n1*365.25;Qoe.exports=function(e,r){r=r||{};var t=typeof e;if(t==="string"&&e.length>0)return iGe(e);if(t==="number"&&isNaN(e)===!1)return r.long?lGe(e):oGe(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function iGe(e){if(e=String(e),!(e.length>100)){var r=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(r){var t=parseFloat(r[1]),a=(r[2]||"ms").toLowerCase();switch(a){case"years":case"year":case"yrs":case"yr":case"y":return t*nGe;case"days":case"day":case"d":return t*n1;case"hours":case"hour":case"hrs":case"hr":case"h":return t*a1;case"minutes":case"minute":case"mins":case"min":case"m":return t*t1;case"seconds":case"second":case"secs":case"sec":case"s":return t*r1;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return t;default:return}}}}function oGe(e){return e>=n1?Math.round(e/n1)+"d":e>=a1?Math.round(e/a1)+"h":e>=t1?Math.round(e/t1)+"m":e>=r1?Math.round(e/r1)+"s":e+"ms"}function lGe(e){return fx(e,n1,"day")||fx(e,a1,"hour")||fx(e,t1,"minute")||fx(e,r1,"second")||e+" ms"}function fx(e,r,t){if(!(e{zt=rle.exports=PM.debug=PM.default=PM;zt.coerce=vGe;zt.disable=fGe;zt.enable=uGe;zt.enabled=cGe;zt.humanize=ele();zt.names=[];zt.skips=[];zt.formatters={};var EM;function sGe(e){var r=0,t;for(t in e)r=(r<<5)-r+e.charCodeAt(t),r|=0;return zt.colors[Math.abs(r)%zt.colors.length]}function PM(e){function r(){if(r.enabled){var t=r,a=+new Date,n=a-(EM||a);t.diff=n,t.prev=EM,t.curr=a,EM=a;for(var i=new Array(arguments.length),o=0;o{jn=nle.exports=tle();jn.log=pGe;jn.formatArgs=dGe;jn.save=mGe;jn.load=ale;jn.useColors=hGe;jn.storage=typeof chrome!="undefined"&&typeof chrome.storage!="undefined"?chrome.storage.local:yGe();jn.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"];function hGe(){return typeof window!="undefined"&&window.process&&window.process.type==="renderer"?!0:typeof document!="undefined"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window!="undefined"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}jn.formatters.j=function(e){try{return JSON.stringify(e)}catch(r){return"[UnexpectedJSONParseError]: "+r.message}};function dGe(e){var r=this.useColors;if(e[0]=(r?"%c":"")+this.namespace+(r?" %c":" ")+e[0]+(r?"%c ":" ")+"+"+jn.humanize(this.diff),!!r){var t="color: "+this.color;e.splice(1,0,t,"color: inherit");var a=0,n=0;e[0].replace(/%[a-zA-Z%]/g,function(i){i!=="%%"&&(a++,i==="%c"&&(n=a))}),e.splice(n,0,t)}}function pGe(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function mGe(e){try{e==null?jn.storage.removeItem("debug"):jn.storage.debug=e}catch(r){}}function ale(){var e;try{e=jn.storage.debug}catch(r){}return!e&&typeof process!="undefined"&&"env"in process&&(e=process.env.DEBUG),e}jn.enable(ale());function yGe(){try{return window.localStorage}catch(e){}}});var hle=z((Htr,vle)=>{var Ev=jb(),yu=ile()("stream-parser");vle.exports=bGe;var lle=-1,cx=0,gGe=1,sle=2;function bGe(e){var r=e&&typeof e._transform=="function",t=e&&typeof e._write=="function";if(!r&&!t)throw new Error("must pass a Writable or Transform stream in");yu("extending Parser into stream"),e._bytes=xGe,e._skipBytes=_Ge,r&&(e._passthrough=wGe),r?e._transform=TGe:e._write=AGe}function i1(e){yu("initializing parser stream"),e._parserBytesLeft=0,e._parserBuffers=[],e._parserBuffered=0,e._parserState=lle,e._parserCallback=null,typeof e.push=="function"&&(e._parserOutput=e.push.bind(e)),e._parserInit=!0}function xGe(e,r){Ev(!this._parserCallback,'there is already a "callback" set!'),Ev(isFinite(e)&&e>0,'can only buffer a finite number of bytes > 0, got "'+e+'"'),this._parserInit||i1(this),yu("buffering %o bytes",e),this._parserBytesLeft=e,this._parserCallback=r,this._parserState=cx}function _Ge(e,r){Ev(!this._parserCallback,'there is already a "callback" set!'),Ev(e>0,'can only skip > 0 bytes, got "'+e+'"'),this._parserInit||i1(this),yu("skipping %o bytes",e),this._parserBytesLeft=e,this._parserCallback=r,this._parserState=gGe}function wGe(e,r){Ev(!this._parserCallback,'There is already a "callback" set!'),Ev(e>0,'can only pass through > 0 bytes, got "'+e+'"'),this._parserInit||i1(this),yu("passing through %o bytes",e),this._parserBytesLeft=e,this._parserCallback=r,this._parserState=sle}function AGe(e,r,t){this._parserInit||i1(this),yu("write(%o bytes)",e.length),typeof r=="function"&&(t=r),fle(this,e,null,t)}function TGe(e,r,t){this._parserInit||i1(this),yu("transform(%o bytes)",e.length),typeof r!="function"&&(r=this._parserOutput),fle(this,e,r,t)}function ule(e,r,t,a){return e._parserBytesLeft<=0?a(new Error("got data but not currently parsing anything")):r.length<=e._parserBytesLeft?function(){return ole(e,r,t,a)}:function(){var n=r.slice(0,e._parserBytesLeft);return ole(e,n,t,function(i){if(i)return a(i);if(r.length>n.length)return function(){return ule(e,r.slice(n.length),t,a)}})}}function ole(e,r,t,a){if(e._parserBytesLeft-=r.length,yu("%o bytes left for stream piece",e._parserBytesLeft),e._parserState===cx?(e._parserBuffers.push(r),e._parserBuffered+=r.length):e._parserState===sle&&t(r),e._parserBytesLeft===0){var n=e._parserCallback;if(n&&e._parserState===cx&&e._parserBuffers.length>1&&(r=Buffer.concat(e._parserBuffers,e._parserBuffered)),e._parserState!==cx&&(r=null),e._parserCallback=null,e._parserBuffered=0,e._parserState=lle,e._parserBuffers.splice(0),n){var i=[];r&&i.push(r),t&&i.push(t);var o=n.length>i.length;o&&i.push(cle(a));var l=n.apply(e,i);if(!o||a===l)return a}}else return a}var fle=cle(ule);function cle(e){return function(){for(var r=e.apply(this,arguments);typeof r=="function";)r=r();return r}}});var dle=z(Ei=>{"use strict";Ei.readUInt16LE=function(e,r){return e[r]|e[r+1]<<8};Ei.readUInt16BE=function(e,r){return e[r]<<8|e[r+1]};Ei.readInt16LE=function(e,r){return Ei.readUInt16LE(e,r)<<16>>16};Ei.readInt16BE=function(e,r){return Ei.readUInt16BE(e,r)<<16>>16};Ei.readUInt32LE=function(e,r){return(e[r]|e[r+1]<<8|e[r+2]<<16)+e[r+3]*16777216};Ei.readUInt32BE=function(e,r){return e[r]*16777216+(e[r+1]<<16|e[r+2]<<8|e[r+3])};Ei.readInt32LE=function(e,r){return Ei.readUInt32LE(e,r)|0};Ei.readInt32BE=function(e,r){return Ei.readUInt32BE(e,r)|0}});var _t=z(Pi=>{"use strict";var ple=aie().Transform,MGe=hle(),gu=dle();function o1(){ple.call(this,{readableObjectMode:!0})}o1.prototype=Object.create(ple.prototype);o1.prototype.constructor=o1;MGe(o1.prototype);Pi.ParserStream=o1;Pi.sliceEq=function(e,r,t){for(var a=r,n=0;n{"use strict";var Pv=_t().readUInt16BE,FM=_t().readUInt32BE;function l1(e,r){if(e.length<4+r)return null;var t=FM(e,r);return e.length>4&15,a=e[4]&15,n=e[5]>>4&15,i=Pv(e,6),o=8,l=0;li.width||n.width===i.width&&n.height>i.height?n:i}),t=e.reduce(function(n,i){return n.height>i.height||n.height===i.height&&n.width>i.width?n:i}),a;return r.width>t.height||r.width===t.height&&r.height>t.width?a=r:a=t,a}hx.exports.readSizeFromMeta=function(e){var r={sizes:[],transforms:[],item_inf:{},item_loc:{}};if(CGe(e,r),!!r.sizes.length){var t=DGe(r.sizes),a=1;r.transforms.forEach(function(i){var o={1:6,2:5,3:8,4:7,5:4,6:3,7:2,8:1},l={1:4,2:3,3:2,4:1,5:6,6:5,7:8,8:7};if(i.type==="imir"&&(i.value===0?a=l[a]:(a=l[a],a=o[a],a=o[a])),i.type==="irot")for(var s=0;s{"use strict";function dx(e,r){var t=new Error(e);return t.code=r,t}function EGe(e){try{return decodeURIComponent(escape(e))}catch(r){return e}}function cs(e,r,t){this.input=e.subarray(r,t),this.start=r;var a=String.fromCharCode.apply(null,this.input.subarray(0,4));if(a!=="II*\0"&&a!=="MM\0*")throw dx("invalid TIFF signature","EBADDATA");this.big_endian=a[0]==="M"}cs.prototype.each=function(e){this.aborted=!1;var r=this.read_uint32(4);for(this.ifds_to_read=[{id:0,offset:r}];this.ifds_to_read.length>0&&!this.aborted;){var t=this.ifds_to_read.shift();t.offset&&this.scan_ifd(t.id,t.offset,e)}};cs.prototype.read_uint16=function(e){var r=this.input;if(e+2>r.length)throw dx("unexpected EOF","EBADDATA");return this.big_endian?r[e]*256+r[e+1]:r[e]+r[e+1]*256};cs.prototype.read_uint32=function(e){var r=this.input;if(e+4>r.length)throw dx("unexpected EOF","EBADDATA");return this.big_endian?r[e]*16777216+r[e+1]*65536+r[e+2]*256+r[e+3]:r[e]+r[e+1]*256+r[e+2]*65536+r[e+3]*16777216};cs.prototype.is_subifd_link=function(e,r){return e===0&&r===34665||e===0&&r===34853||e===34665&&r===40965};cs.prototype.exif_format_length=function(e){switch(e){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}};cs.prototype.exif_format_read=function(e,r){var t;switch(e){case 1:case 2:return t=this.input[r],t;case 6:return t=this.input[r],t|(t&128)*33554430;case 3:return t=this.read_uint16(r),t;case 8:return t=this.read_uint16(r),t|(t&32768)*131070;case 4:return t=this.read_uint32(r),t;case 9:return t=this.read_uint32(r),t|0;case 5:case 10:case 11:case 12:return null;case 7:return null;default:return null}};cs.prototype.scan_ifd=function(e,r,t){var a=this.read_uint16(r);r+=2;for(var n=0;nthis.input.length)throw dx("unexpected EOF","EBADDATA");for(var v=[],d=f,p=0;p0&&(this.ifds_to_read.push({id:i,offset:v[0]}),c=!0);var m={is_big_endian:this.big_endian,ifd:e,tag:i,format:o,count:l,entry_offset:r+this.start,data_length:u,data_offset:f+this.start,value:v,is_subifd_link:c};if(t(m)===!1){this.aborted=!0;return}r+=12}e===0&&this.ifds_to_read.push({id:1,offset:this.read_uint32(r)})};zM.exports.ExifParser=cs;zM.exports.get_orientation=function(e){var r=0;try{return new cs(e,0,e.length).each(function(t){if(t.ifd===0&&t.tag===274&&Array.isArray(t.value))return r=t.value[0],!1}),r}catch(t){return-1}}});var gle=z((jtr,yle)=>{"use strict";var PGe=_t().str2arr,RGe=_t().sliceEq,FGe=_t().readUInt32BE,mx=mle(),zGe=px(),NGe=PGe("ftyp");yle.exports=function(e){if(RGe(e,4,NGe)){var r=mx.unbox(e,0);if(r){var t=mx.getMimeType(r.data);if(t){for(var a,n=r.end;;){var i=mx.unbox(e,n);if(!i)break;if(n=i.end,i.boxtype==="mdat")return;if(i.boxtype==="meta"){a=i.data;break}}if(a){var o=mx.readSizeFromMeta(a);if(o){var l={width:o.width,height:o.height,type:t.type,mime:t.mime,wUnits:"px",hUnits:"px"};if(o.variants.length>1&&(l.variants=o.variants),o.orientation&&(l.orientation=o.orientation),o.exif_location&&o.exif_location.offset+o.exif_location.length<=e.length){var s=FGe(e,o.exif_location.offset),u=e.slice(o.exif_location.offset+s+4,o.exif_location.offset+o.exif_location.length),f=zGe.get_orientation(u);f>0&&(l.orientation=f)}return l}}}}}}});var wle=z((Wtr,_le)=>{"use strict";var IGe=_t().str2arr,BGe=_t().sliceEq,ble=_t().readInt16LE,xle=_t().readInt32LE,OGe=_t().readUInt32LE,HGe=IGe("BM");_le.exports=function(e){if(!(e.length<26)&&BGe(e,0,HGe)){var r,t,a=OGe(e,14);if(a===12)t=ble(e,18),r=ble(e,20);else if(a>12)t=xle(e,18),r=xle(e,22);else return;return{width:t,height:Math.abs(r),type:"bmp",mime:"image/bmp",wUnits:"px",hUnits:"px"}}}});var Sle=z((Xtr,kle)=>{"use strict";var Mle=_t().str2arr,Ale=_t().sliceEq,Tle=_t().readUInt16LE,UGe=Mle("GIF87a"),GGe=Mle("GIF89a");kle.exports=function(e){if(!(e.length<10)&&!(!Ale(e,0,UGe)&&!Ale(e,0,GGe)))return{width:Tle(e,6),height:Tle(e,8),type:"gif",mime:"image/gif",wUnits:"px",hUnits:"px"}}});var Lle=z((Ztr,qle)=>{"use strict";var NM=_t().readUInt16LE,YGe=0,VGe=1,IM=16;qle.exports=function(e){var r=NM(e,0),t=NM(e,2),a=NM(e,4);if(!(r!==YGe||t!==VGe||!a)&&!(e.length<6+a*IM)){for(var n=[],i={width:0,height:0},o=0;oi.width||s>i.height)&&(i=u)}return{width:i.width,height:i.height,variants:n,type:"ico",mime:"image/x-icon",wUnits:"px",hUnits:"px"}}}});var Dle=z(($tr,Cle)=>{"use strict";var BM=_t().readUInt16BE,jGe=_t().str2arr,WGe=_t().sliceEq,XGe=px(),ZGe=jGe("Exif\0\0");Cle.exports=function(e){if(!(e.length<2)&&!(e[0]!==255||e[1]!==216||e[2]!==255))for(var r=2;;){for(;;){if(e.length-r<2)return;if(e[r++]===255)break}for(var t=e[r++],a;t===255;)t=e[r++];if(t>=208&&t<=217||t===1)a=0;else if(t>=192&&t<=254){if(e.length-r<2)return;a=BM(e,r)-2,r+=2}else return;if(t===217||t===218)return;var n;if(t===225&&a>=10&&WGe(e,r,ZGe)&&(n=XGe.get_orientation(e.slice(r+6,r+a))),a>=5&&t>=192&&t<=207&&t!==196&&t!==200&&t!==204){if(e.length-r0&&(i.orientation=n),i}r+=a}}});var zle=z((Jtr,Fle)=>{"use strict";var Rle=_t().str2arr,Ele=_t().sliceEq,Ple=_t().readUInt32BE,$Ge=Rle(`\x89PNG\r +`).concat(fx(e),` +`));var l=new bu({actual:e,expected:r,message:t,operator:n,stackStartFn:a});throw l.generatedMessage=o,l}}la.match=function e(r,t,a){tle(r,t,a,e,"match")};la.doesNotMatch=function e(r,t,a){tle(r,t,a,e,"doesNotMatch")};function ale(){for(var e=arguments.length,r=new Array(e),t=0;t{var t1=1e3,a1=t1*60,n1=a1*60,i1=n1*24,dGe=i1*365.25;ile.exports=function(e,r){r=r||{};var t=typeof e;if(t==="string"&&e.length>0)return pGe(e);if(t==="number"&&isNaN(e)===!1)return r.long?yGe(e):mGe(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function pGe(e){if(e=String(e),!(e.length>100)){var r=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(r){var t=parseFloat(r[1]),a=(r[2]||"ms").toLowerCase();switch(a){case"years":case"year":case"yrs":case"yr":case"y":return t*dGe;case"days":case"day":case"d":return t*i1;case"hours":case"hour":case"hrs":case"hr":case"h":return t*n1;case"minutes":case"minute":case"mins":case"min":case"m":return t*a1;case"seconds":case"second":case"secs":case"sec":case"s":return t*t1;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return t;default:return}}}}function mGe(e){return e>=i1?Math.round(e/i1)+"d":e>=n1?Math.round(e/n1)+"h":e>=a1?Math.round(e/a1)+"m":e>=t1?Math.round(e/t1)+"s":e+"ms"}function yGe(e){return px(e,i1,"day")||px(e,n1,"hour")||px(e,a1,"minute")||px(e,t1,"second")||e+" ms"}function px(e,r,t){if(!(e{It=lle.exports=OM.debug=OM.default=OM;It.coerce=wGe;It.disable=xGe;It.enable=bGe;It.enabled=_Ge;It.humanize=ole();It.names=[];It.skips=[];It.formatters={};var BM;function gGe(e){var r=0,t;for(t in e)r=(r<<5)-r+e.charCodeAt(t),r|=0;return It.colors[Math.abs(r)%It.colors.length]}function OM(e){function r(){if(r.enabled){var t=r,a=+new Date,n=a-(BM||a);t.diff=n,t.prev=BM,t.curr=a,BM=a;for(var i=new Array(arguments.length),o=0;o{Zn=fle.exports=sle();Zn.log=MGe;Zn.formatArgs=AGe;Zn.save=kGe;Zn.load=ule;Zn.useColors=TGe;Zn.storage=typeof chrome!="undefined"&&typeof chrome.storage!="undefined"?chrome.storage.local:SGe();Zn.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"];function TGe(){return typeof window!="undefined"&&window.process&&window.process.type==="renderer"?!0:typeof document!="undefined"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window!="undefined"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}Zn.formatters.j=function(e){try{return JSON.stringify(e)}catch(r){return"[UnexpectedJSONParseError]: "+r.message}};function AGe(e){var r=this.useColors;if(e[0]=(r?"%c":"")+this.namespace+(r?" %c":" ")+e[0]+(r?"%c ":" ")+"+"+Zn.humanize(this.diff),!!r){var t="color: "+this.color;e.splice(1,0,t,"color: inherit");var a=0,n=0;e[0].replace(/%[a-zA-Z%]/g,function(i){i!=="%%"&&(a++,i==="%c"&&(n=a))}),e.splice(n,0,t)}}function MGe(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function kGe(e){try{e==null?Zn.storage.removeItem("debug"):Zn.storage.debug=e}catch(r){}}function ule(){var e;try{e=Zn.storage.debug}catch(r){}return!e&&typeof process!="undefined"&&"env"in process&&(e=process.env.DEBUG),e}Zn.enable(ule());function SGe(){try{return window.localStorage}catch(e){}}});var ble=z((Jtr,gle)=>{var Ev=Jb(),xu=cle()("stream-parser");gle.exports=LGe;var hle=-1,mx=0,qGe=1,dle=2;function LGe(e){var r=e&&typeof e._transform=="function",t=e&&typeof e._write=="function";if(!r&&!t)throw new Error("must pass a Writable or Transform stream in");xu("extending Parser into stream"),e._bytes=CGe,e._skipBytes=DGe,r&&(e._passthrough=EGe),r?e._transform=RGe:e._write=PGe}function o1(e){xu("initializing parser stream"),e._parserBytesLeft=0,e._parserBuffers=[],e._parserBuffered=0,e._parserState=hle,e._parserCallback=null,typeof e.push=="function"&&(e._parserOutput=e.push.bind(e)),e._parserInit=!0}function CGe(e,r){Ev(!this._parserCallback,'there is already a "callback" set!'),Ev(isFinite(e)&&e>0,'can only buffer a finite number of bytes > 0, got "'+e+'"'),this._parserInit||o1(this),xu("buffering %o bytes",e),this._parserBytesLeft=e,this._parserCallback=r,this._parserState=mx}function DGe(e,r){Ev(!this._parserCallback,'there is already a "callback" set!'),Ev(e>0,'can only skip > 0 bytes, got "'+e+'"'),this._parserInit||o1(this),xu("skipping %o bytes",e),this._parserBytesLeft=e,this._parserCallback=r,this._parserState=qGe}function EGe(e,r){Ev(!this._parserCallback,'There is already a "callback" set!'),Ev(e>0,'can only pass through > 0 bytes, got "'+e+'"'),this._parserInit||o1(this),xu("passing through %o bytes",e),this._parserBytesLeft=e,this._parserCallback=r,this._parserState=dle}function PGe(e,r,t){this._parserInit||o1(this),xu("write(%o bytes)",e.length),typeof r=="function"&&(t=r),mle(this,e,null,t)}function RGe(e,r,t){this._parserInit||o1(this),xu("transform(%o bytes)",e.length),typeof r!="function"&&(r=this._parserOutput),mle(this,e,r,t)}function ple(e,r,t,a){return e._parserBytesLeft<=0?a(new Error("got data but not currently parsing anything")):r.length<=e._parserBytesLeft?function(){return vle(e,r,t,a)}:function(){var n=r.slice(0,e._parserBytesLeft);return vle(e,n,t,function(i){if(i)return a(i);if(r.length>n.length)return function(){return ple(e,r.slice(n.length),t,a)}})}}function vle(e,r,t,a){if(e._parserBytesLeft-=r.length,xu("%o bytes left for stream piece",e._parserBytesLeft),e._parserState===mx?(e._parserBuffers.push(r),e._parserBuffered+=r.length):e._parserState===dle&&t(r),e._parserBytesLeft===0){var n=e._parserCallback;if(n&&e._parserState===mx&&e._parserBuffers.length>1&&(r=Buffer.concat(e._parserBuffers,e._parserBuffered)),e._parserState!==mx&&(r=null),e._parserCallback=null,e._parserBuffered=0,e._parserState=hle,e._parserBuffers.splice(0),n){var i=[];r&&i.push(r),t&&i.push(t);var o=n.length>i.length;o&&i.push(yle(a));var l=n.apply(e,i);if(!o||a===l)return a}}else return a}var mle=yle(ple);function yle(e){return function(){for(var r=e.apply(this,arguments);typeof r=="function";)r=r();return r}}});var xle=z(Fi=>{"use strict";Fi.readUInt16LE=function(e,r){return e[r]|e[r+1]<<8};Fi.readUInt16BE=function(e,r){return e[r]<<8|e[r+1]};Fi.readInt16LE=function(e,r){return Fi.readUInt16LE(e,r)<<16>>16};Fi.readInt16BE=function(e,r){return Fi.readUInt16BE(e,r)<<16>>16};Fi.readUInt32LE=function(e,r){return(e[r]|e[r+1]<<8|e[r+2]<<16)+e[r+3]*16777216};Fi.readUInt32BE=function(e,r){return e[r]*16777216+(e[r+1]<<16|e[r+2]<<8|e[r+3])};Fi.readInt32LE=function(e,r){return Fi.readUInt32LE(e,r)|0};Fi.readInt32BE=function(e,r){return Fi.readUInt32BE(e,r)|0}});var Tt=z(zi=>{"use strict";var _le=uie().Transform,FGe=ble(),_u=xle();function l1(){_le.call(this,{readableObjectMode:!0})}l1.prototype=Object.create(_le.prototype);l1.prototype.constructor=l1;FGe(l1.prototype);zi.ParserStream=l1;zi.sliceEq=function(e,r,t){for(var a=r,n=0;n{"use strict";var Pv=Tt().readUInt16BE,UM=Tt().readUInt32BE;function s1(e,r){if(e.length<4+r)return null;var t=UM(e,r);return e.length>4&15,a=e[4]&15,n=e[5]>>4&15,i=Pv(e,6),o=8,l=0;li.width||n.width===i.width&&n.height>i.height?n:i}),t=e.reduce(function(n,i){return n.height>i.height||n.height===i.height&&n.width>i.width?n:i}),a;return r.width>t.height||r.width===t.height&&r.height>t.width?a=r:a=t,a}gx.exports.readSizeFromMeta=function(e){var r={sizes:[],transforms:[],item_inf:{},item_loc:{}};if(OGe(e,r),!!r.sizes.length){var t=HGe(r.sizes),a=1;r.transforms.forEach(function(i){var o={1:6,2:5,3:8,4:7,5:4,6:3,7:2,8:1},l={1:4,2:3,3:2,4:1,5:6,6:5,7:8,8:7};if(i.type==="imir"&&(i.value===0?a=l[a]:(a=l[a],a=o[a],a=o[a])),i.type==="irot")for(var s=0;s{"use strict";function bx(e,r){var t=new Error(e);return t.code=r,t}function UGe(e){try{return decodeURIComponent(escape(e))}catch(r){return e}}function ps(e,r,t){this.input=e.subarray(r,t),this.start=r;var a=String.fromCharCode.apply(null,this.input.subarray(0,4));if(a!=="II*\0"&&a!=="MM\0*")throw bx("invalid TIFF signature","EBADDATA");this.big_endian=a[0]==="M"}ps.prototype.each=function(e){this.aborted=!1;var r=this.read_uint32(4);for(this.ifds_to_read=[{id:0,offset:r}];this.ifds_to_read.length>0&&!this.aborted;){var t=this.ifds_to_read.shift();t.offset&&this.scan_ifd(t.id,t.offset,e)}};ps.prototype.read_uint16=function(e){var r=this.input;if(e+2>r.length)throw bx("unexpected EOF","EBADDATA");return this.big_endian?r[e]*256+r[e+1]:r[e]+r[e+1]*256};ps.prototype.read_uint32=function(e){var r=this.input;if(e+4>r.length)throw bx("unexpected EOF","EBADDATA");return this.big_endian?r[e]*16777216+r[e+1]*65536+r[e+2]*256+r[e+3]:r[e]+r[e+1]*256+r[e+2]*65536+r[e+3]*16777216};ps.prototype.is_subifd_link=function(e,r){return e===0&&r===34665||e===0&&r===34853||e===34665&&r===40965};ps.prototype.exif_format_length=function(e){switch(e){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}};ps.prototype.exif_format_read=function(e,r){var t;switch(e){case 1:case 2:return t=this.input[r],t;case 6:return t=this.input[r],t|(t&128)*33554430;case 3:return t=this.read_uint16(r),t;case 8:return t=this.read_uint16(r),t|(t&32768)*131070;case 4:return t=this.read_uint32(r),t;case 9:return t=this.read_uint32(r),t|0;case 5:case 10:case 11:case 12:return null;case 7:return null;default:return null}};ps.prototype.scan_ifd=function(e,r,t){var a=this.read_uint16(r);r+=2;for(var n=0;nthis.input.length)throw bx("unexpected EOF","EBADDATA");for(var v=[],d=f,p=0;p0&&(this.ifds_to_read.push({id:i,offset:v[0]}),c=!0);var y={is_big_endian:this.big_endian,ifd:e,tag:i,format:o,count:l,entry_offset:r+this.start,data_length:u,data_offset:f+this.start,value:v,is_subifd_link:c};if(t(y)===!1){this.aborted=!0;return}r+=12}e===0&&this.ifds_to_read.push({id:1,offset:this.read_uint32(r)})};GM.exports.ExifParser=ps;GM.exports.get_orientation=function(e){var r=0;try{return new ps(e,0,e.length).each(function(t){if(t.ifd===0&&t.tag===274&&Array.isArray(t.value))return r=t.value[0],!1}),r}catch(t){return-1}}});var Ale=z((tar,Tle)=>{"use strict";var GGe=Tt().str2arr,YGe=Tt().sliceEq,VGe=Tt().readUInt32BE,_x=wle(),jGe=xx(),WGe=GGe("ftyp");Tle.exports=function(e){if(YGe(e,4,WGe)){var r=_x.unbox(e,0);if(r){var t=_x.getMimeType(r.data);if(t){for(var a,n=r.end;;){var i=_x.unbox(e,n);if(!i)break;if(n=i.end,i.boxtype==="mdat")return;if(i.boxtype==="meta"){a=i.data;break}}if(a){var o=_x.readSizeFromMeta(a);if(o){var l={width:o.width,height:o.height,type:t.type,mime:t.mime,wUnits:"px",hUnits:"px"};if(o.variants.length>1&&(l.variants=o.variants),o.orientation&&(l.orientation=o.orientation),o.exif_location&&o.exif_location.offset+o.exif_location.length<=e.length){var s=VGe(e,o.exif_location.offset),u=e.slice(o.exif_location.offset+s+4,o.exif_location.offset+o.exif_location.length),f=jGe.get_orientation(u);f>0&&(l.orientation=f)}return l}}}}}}});var qle=z((aar,Sle)=>{"use strict";var XGe=Tt().str2arr,ZGe=Tt().sliceEq,Mle=Tt().readInt16LE,kle=Tt().readInt32LE,$Ge=Tt().readUInt32LE,JGe=XGe("BM");Sle.exports=function(e){if(!(e.length<26)&&ZGe(e,0,JGe)){var r,t,a=$Ge(e,14);if(a===12)t=Mle(e,18),r=Mle(e,20);else if(a>12)t=kle(e,18),r=kle(e,22);else return;return{width:t,height:Math.abs(r),type:"bmp",mime:"image/bmp",wUnits:"px",hUnits:"px"}}}});var Ple=z((nar,Ele)=>{"use strict";var Dle=Tt().str2arr,Lle=Tt().sliceEq,Cle=Tt().readUInt16LE,KGe=Dle("GIF87a"),QGe=Dle("GIF89a");Ele.exports=function(e){if(!(e.length<10)&&!(!Lle(e,0,KGe)&&!Lle(e,0,QGe)))return{width:Cle(e,6),height:Cle(e,8),type:"gif",mime:"image/gif",wUnits:"px",hUnits:"px"}}});var Fle=z((iar,Rle)=>{"use strict";var YM=Tt().readUInt16LE,eYe=0,rYe=1,VM=16;Rle.exports=function(e){var r=YM(e,0),t=YM(e,2),a=YM(e,4);if(!(r!==eYe||t!==rYe||!a)&&!(e.length<6+a*VM)){for(var n=[],i={width:0,height:0},o=0;oi.width||s>i.height)&&(i=u)}return{width:i.width,height:i.height,variants:n,type:"ico",mime:"image/x-icon",wUnits:"px",hUnits:"px"}}}});var Nle=z((oar,zle)=>{"use strict";var jM=Tt().readUInt16BE,tYe=Tt().str2arr,aYe=Tt().sliceEq,nYe=xx(),iYe=tYe("Exif\0\0");zle.exports=function(e){if(!(e.length<2)&&!(e[0]!==255||e[1]!==216||e[2]!==255))for(var r=2;;){for(;;){if(e.length-r<2)return;if(e[r++]===255)break}for(var t=e[r++],a;t===255;)t=e[r++];if(t>=208&&t<=217||t===1)a=0;else if(t>=192&&t<=254){if(e.length-r<2)return;a=jM(e,r)-2,r+=2}else return;if(t===217||t===218)return;var n;if(t===225&&a>=10&&aYe(e,r,iYe)&&(n=nYe.get_orientation(e.slice(r+6,r+a))),a>=5&&t>=192&&t<=207&&t!==196&&t!==200&&t!==204){if(e.length-r0&&(i.orientation=n),i}r+=a}}});var Ule=z((lar,Hle)=>{"use strict";var Ole=Tt().str2arr,Ile=Tt().sliceEq,Ble=Tt().readUInt32BE,oYe=Ole(`\x89PNG\r  -`),JGe=Rle("IHDR");Fle.exports=function(e){if(!(e.length<24)&&Ele(e,0,$Ge)&&Ele(e,12,JGe))return{width:Ple(e,16),height:Ple(e,20),type:"png",mime:"image/png",wUnits:"px",hUnits:"px"}}});var Ble=z((Ktr,Ile)=>{"use strict";var KGe=_t().str2arr,QGe=_t().sliceEq,Nle=_t().readUInt32BE,eYe=KGe("8BPS\0");Ile.exports=function(e){if(!(e.length<22)&&QGe(e,0,eYe))return{width:Nle(e,18),height:Nle(e,14),type:"psd",mime:"image/vnd.adobe.photoshop",wUnits:"px",hUnits:"px"}}});var UM=z(HM=>{"use strict";HM.MAX_DATA_LENGTH=1024*10;var OM="[a-zA-Z_:][a-zA-Z0-9:._-]*",Hle="[^\"'=<>`\\x00-\\x20]+",rYe="'[^']*'",tYe='"[^"]*"',aYe="(?:"+Hle+"|"+rYe+"|"+tYe+")",nYe="(?:\\s+"+OM+"(?:\\s*=\\s*"+aYe+")?)",iYe="<[?][\\s\\S]*?[?]>",oYe="",lYe="",sYe="]*(?:\\[[\\s\\S]*?\\][^>]*)?>",uYe=new RegExp("^(?:\\s+|"+iYe+"|"+oYe+"|"+lYe+"|"+sYe+")*"),fYe=new RegExp("^<("+OM+")("+nYe+"*)\\s*/?>"),Ole=new RegExp("\\s+("+OM+")(?:\\s*=\\s*(?:("+Hle+`)|'([^']*)'|"([^"]*)"))?`,"g"),cYe=/in$|mm$|cm$|pt$|pc$|px$|em$|ex$/;function Rv(e){return typeof e=="number"&&isFinite(e)&&e>0}function Pl(e){var r=e.slice(-2),t=r.match(cYe);return t===null?"px":t[0]}HM.parse=function(e){var r=e.match(uYe)[0],t=fYe.exec(r.length?e.slice(r.length):e);if(t){var a=t[1];if(!(a!=="svg"&&a.slice(-4)!==":svg")){var n={},i;for(Ole.lastIndex=0;(i=Ole.exec(t[2]))!==null;)n[i[1]]=i[2]!==void 0?i[2]:i[3]!==void 0?i[3]:i[4];var o=n.width,l=n.height,s=n.viewBox||n.viewbox;o&&o.indexOf("%")!==-1&&(o=void 0),l&&l.indexOf("%")!==-1&&(l=void 0);var u=parseFloat(o),f=parseFloat(l);if(o&&l)return!Rv(u)||!Rv(f)?void 0:{width:u,height:f,type:"svg",mime:"image/svg+xml",wUnits:Pl(o),hUnits:Pl(l)};var c=(s||"").trim().split(/[\s,]+/),v=parseFloat(c[2]),d=parseFloat(c[3]);if(!(!Rv(v)||!Rv(d))&&Pl(c[2])===Pl(c[3])){var p=v/d;return o?Rv(u)?{width:u,height:u/p,type:"svg",mime:"image/svg+xml",wUnits:Pl(o),hUnits:Pl(o)}:void 0:l?Rv(f)?{width:f*p,height:f,type:"svg",mime:"image/svg+xml",wUnits:Pl(l),hUnits:Pl(l)}:void 0:{width:v,height:d,type:"svg",mime:"image/svg+xml",wUnits:Pl(c[2]),hUnits:Pl(c[3])}}}}}});var Gle=z((ear,Ule)=>{"use strict";var vYe=UM().parse,hYe=UM().MAX_DATA_LENGTH;Ule.exports=function(e){var r=0;e[0]===239&&e[1]===187&&e[2]===191&&(r=3);for(var t="",a=Math.min(e.length,r+hYe),n=r;n{"use strict";var jle=_t().str2arr,Yle=_t().sliceEq,dYe=_t().readUInt16LE,pYe=_t().readUInt16BE,mYe=_t().readUInt32LE,yYe=_t().readUInt32BE,gYe=jle("II*\0"),bYe=jle("MM\0*");function yx(e,r,t){return t?pYe(e,r):dYe(e,r)}function GM(e,r,t){return t?yYe(e,r):mYe(e,r)}function Vle(e,r,t){var a=yx(e,r+2,t),n=GM(e,r+4,t);return n!==1||a!==3&&a!==4?null:a===3?yx(e,r+8,t):GM(e,r+8,t)}Wle.exports=function(e){if(!(e.length<8)&&!(!Yle(e,0,gYe)&&!Yle(e,0,bYe))){var r=e[0]===77,t=GM(e,4,r)-8;if(!(t<0)){var a=t+8;if(!(e.length-a<2)){var n=yx(e,a+0,r)*12;if(!(n<=0)&&(a+=2,!(e.length-a{"use strict";var Jle=_t().str2arr,Zle=_t().sliceEq,$le=_t().readUInt16LE,YM=_t().readUInt32LE,xYe=px(),_Ye=Jle("RIFF"),wYe=Jle("WEBP");function AYe(e,r){if(!(e[r+3]!==157||e[r+4]!==1||e[r+5]!==42))return{width:$le(e,r+6)&16383,height:$le(e,r+8)&16383,type:"webp",mime:"image/webp",wUnits:"px",hUnits:"px"}}function TYe(e,r){if(e[r]===47){var t=YM(e,r+1);return{width:(t&16383)+1,height:(t>>14&16383)+1,type:"webp",mime:"image/webp",wUnits:"px",hUnits:"px"}}}function MYe(e,r){return{width:(e[r+6]<<16|e[r+5]<<8|e[r+4])+1,height:(e[r+9]<<16|e[r+8]<<8|e[r+7])+1,type:"webp",mime:"image/webp",wUnits:"px",hUnits:"px"}}Kle.exports=function(e){if(!(e.length<16)&&!(!Zle(e,0,_Ye)||!Zle(e,8,wYe))){var r=12,t=null,a=0,n=YM(e,4)+8;if(!(n>e.length)){for(;r+8=10?t=t||AYe(e,r+8):i==="VP8L"&&o>=5?t=t||TYe(e,r+8):i==="VP8X"&&o>=10?t=t||MYe(e,r+8):i==="EXIF"&&(a=xYe.get_orientation(e.slice(r+8,r+8+o)),r=1/0),r+=8+o}if(t)return a>0&&(t.orientation=a),t}}}});var rse=z((aar,ese)=>{"use strict";ese.exports={avif:gle(),bmp:wle(),gif:Sle(),ico:Lle(),jpeg:Dle(),png:zle(),psd:Ble(),svg:Gle(),tiff:Xle(),webp:Qle()}});var tse=z((nar,jM)=>{"use strict";var VM=rse();function kYe(e){for(var r=Object.keys(VM),t=0;t0&&a.height>0?a:null}return null}jM.exports=function(r){return kYe(r)};jM.exports.parsers=VM});var nse=z(ase=>{"use strict";var SYe=tse(),qYe=Kl().IMAGE_URL_PREFIX,LYe=hv().Buffer;ase.getImageSize=function(e){var r=e.replace(qYe,""),t=new LYe(r,"base64");return SYe(t)}});var lse=z((oar,ose)=>{"use strict";var ise=ke(),CYe=(sv(),ze(_2)),DYe=Br(),gx=Yr(),EYe=ke().maxRowLength,PYe=nse().getImageSize;ose.exports=function(r,t){var a,n;if(t._hasZ)a=t.z.length,n=EYe(t.z);else if(t._hasSource){var i=PYe(t.source);a=i.height,n=i.width}var o=gx.getFromId(r,t.xaxis||"x"),l=gx.getFromId(r,t.yaxis||"y"),s=o.d2c(t.x0)-t.dx/2,u=l.d2c(t.y0)-t.dy/2,f,c=[s,s+n*t.dx],v=[u,u+a*t.dy];if(o&&o.type==="log")for(f=0;f{"use strict";var NYe=Pr(),ac=ke(),sse=ac.strTranslate,IYe=(Vl(),ze(Yl)),BYe=(sv(),ze(_2)),OYe=j9(),HYe=(m3(),ze(p3)).STYLE;use.exports=function(r,t,a,n){var i=t.xaxis,o=t.yaxis,l=!r._context._exportedPlot&&OYe();ac.makeTraceGroups(n,a,"im").each(function(s){var u=NYe.select(this),f=s[0],c=f.trace,v=(c.zsmooth==="fast"||c.zsmooth===!1&&l)&&!c._hasZ&&c._hasSource&&i.type==="linear"&&o.type==="linear";c._realImage=v;var d=f.z,p=f.x0,y=f.y0,m=f.w,b=f.h,A=c.dx,w=c.dy,x,_,k,T,q,C;for(C=0;x===void 0&&C0;)_=i.c2p(p+C*A),C--;for(C=0;T===void 0&&C0;)q=o.c2p(y+C*w),C--;if(_V[0];if(W||j){var J=x+P/2,te=T+R/2;Y+="transform:"+sse(J+"px",te+"px")+"scale("+(W?-1:1)+","+(j?-1:1)+")"+sse(-J+"px",-te+"px")+";"}}U.attr("style",Y);var ae=new Promise(function(se){if(c._hasZ)se();else if(c._hasSource)if(c._canvas&&c._canvas.el.width===m&&c._canvas.el.height===b&&c._canvas.source===c.source)se();else{var $=document.createElement("canvas");$.width=m,$.height=b;var fe=$.getContext("2d",{willReadFrequently:!0});c._image=c._image||new Image;var ie=c._image;ie.onload=function(){fe.drawImage(ie,0,0),c._canvas={el:$,source:c.source},se()},ie.setAttribute("src",c.source)}}).then(function(){var se,$;if(c._hasZ)$=O(function(ue,ce){var oe=d[ce][ue];return ac.isTypedArray(oe)&&(oe=Array.from(oe)),oe}),se=$.toDataURL("image/png");else if(c._hasSource)if(v)se=c.source;else{var fe=c._canvas.el.getContext("2d",{willReadFrequently:!0}),ie=fe.getImageData(0,0,m,b).data;$=O(function(ue,ce){var oe=4*(ce*m+ue);return[ie[oe],ie[oe+1],ie[oe+2],ie[oe+3]]}),se=$.toDataURL("image/png")}U.attr({"xlink:href":se,height:R,width:P,x,y:T})});r._promises.push(ae)})}});var vse=z((sar,cse)=>{"use strict";var UYe=Pr();cse.exports=function(r){UYe.select(r).selectAll(".im image").style("opacity",function(t){return t[0].trace.opacity})}});var mse=z((uar,pse)=>{"use strict";var hse=Un(),dse=ke(),bx=dse.isArrayOrTypedArray,GYe=(sv(),ze(_2));pse.exports=function(r,t,a){var n=r.cd[0],i=n.trace,o=r.xa,l=r.ya;if(!(hse.inbox(t-n.x0,t-(n.x0+n.w*i.dx),0)>0||hse.inbox(a-n.y0,a-(n.y0+n.h*i.dy),0)>0)){var s=Math.floor((t-n.x0)/i.dx),u=Math.floor(Math.abs(a-n.y0)/i.dy),f;if(i._hasZ?f=n.z[u][s]:i._hasSource&&(f=i._canvas.el.getContext("2d",{willReadFrequently:!0}).getImageData(s,u,1,1).data),!!f){var c=n.hi||i.hoverinfo,v;if(c){var d=c.split("+");d.indexOf("all")!==-1&&(d=["color"]),d.indexOf("color")!==-1&&(v=!0)}var p=GYe.colormodel[i.colormodel],y=p.colormodel||i.colormodel,m=y.length,b=i._scaler(f),A=p.suffix,w=[];(i.hovertemplate||v)&&(w.push("["+[b[0]+A[0],b[1]+A[1],b[2]+A[2]].join(", ")),m===4&&w.push(", "+b[3]+A[3]),w.push("]"),w=w.join(""),r.extraText=y.toUpperCase()+": "+w);var x;bx(i.hovertext)&&bx(i.hovertext[u])?x=i.hovertext[u][s]:bx(i.text)&&bx(i.text[u])&&(x=i.text[u][s]);var _=l.c2p(n.y0+(u+.5)*i.dy),k=n.x0+(s+.5)*i.dx,T=n.y0+(u+.5)*i.dy,q="["+f.slice(0,i.colormodel.length).join(", ")+"]";return[dse.extendFlat(r,{index:[u,s],x0:o.c2p(n.x0+s*i.dx),x1:o.c2p(n.x0+(s+1)*i.dx),y0:_,y1:_,color:b,xVal:k,xLabelVal:k,yVal:T,yLabelVal:T,zLabelVal:q,text:x,hovertemplateLabels:{zLabel:q,colorLabel:w,"color[0]Label":b[0]+A[0],"color[1]Label":b[1]+A[1],"color[2]Label":b[2]+A[2],"color[3]Label":b[3]+A[3]}})]}}}});var gse=z((far,yse)=>{"use strict";yse.exports=function(r,t){return"xVal"in t&&(r.x=t.xVal),"yVal"in t&&(r.y=t.yVal),t.xa&&(r.xaxis=t.xa),t.ya&&(r.yaxis=t.ya),r.color=t.color,r.colormodel=t.trace.colormodel,r.z||(r.z=t.color),r}});var xse=z((car,bse)=>{"use strict";bse.exports={attributes:(HA(),ze(OA)).default,supplyDefaults:ire(),calc:lse(),plot:fse(),style:vse(),hoverPoints:mse(),eventData:gse(),moduleType:"trace",name:"image",basePlotModule:io(),categories:["cartesian","svg","2dMap","noSortingByValue"],animatable:!1,meta:{}}});var wse=z((har,_se)=>{"use strict";_se.exports=xse()});var WM=z((dar,Tse)=>{"use strict";var xx=On(),YYe=H0().attributes,VYe=Ca(),jYe=Ii(),{hovertemplateAttrs:WYe,texttemplateAttrs:XYe,templatefallbackAttrs:Ase}=di(),bu=Mt().extendFlat,ZYe=Bi().pattern,_x=VYe({editType:"plot",arrayOk:!0,colorEditType:"plot"});Tse.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:jYe.defaultLine,arrayOk:!0,editType:"style"},width:{valType:"number",min:0,dflt:0,arrayOk:!0,editType:"style"},editType:"calc"},pattern:ZYe,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:bu({},xx.hoverinfo,{flags:["label","text","value","percent","name"]}),hovertemplate:WYe({},{keys:["label","color","value","percent","text"]}),hovertemplatefallback:Ase(),texttemplate:XYe({editType:"plot"},{keys:["label","color","value","percent","text"]}),texttemplatefallback:Ase({editType:"plot"}),textposition:{valType:"enumerated",values:["inside","outside","auto","none"],dflt:"auto",arrayOk:!0,editType:"plot"},textfont:bu({},_x,{}),insidetextorientation:{valType:"enumerated",values:["horizontal","radial","tangential","auto"],dflt:"auto",editType:"plot"},insidetextfont:bu({},_x,{}),outsidetextfont:bu({},_x,{}),automargin:{valType:"boolean",dflt:!1,editType:"plot"},showlegend:bu({},xx.showlegend,{arrayOk:!0}),legend:bu({},xx.legend,{arrayOk:!0}),legendrank:bu({},xx.legendrank,{arrayOk:!0}),title:{text:{valType:"string",dflt:"",editType:"plot"},font:bu({},_x,{}),position:{valType:"enumerated",values:["top left","top center","top right","middle center","bottom left","bottom center","bottom right"],editType:"plot"},editType:"plot"},domain:YYe({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"}}});var qse=z((par,Sse)=>{"use strict";var $Ye=Br(),s1=ke(),JYe=WM(),KYe=H0().defaults,QYe=Rf().handleText,eVe=ke().coercePattern;function Mse(e,r){var t=s1.isArrayOrTypedArray(e),a=s1.isArrayOrTypedArray(r),n=Math.min(t?e.length:1/0,a?r.length:1/0);if(isFinite(n)||(n=0),n&&a){for(var i,o=0;o0){i=!0;break}}i||(n=0)}return{hasLabels:t,hasValues:a,len:n}}function kse(e,r,t,a,n){var i=a("marker.line.width");i&&a("marker.line.color",n?void 0:t.paper_bgcolor);var o=a("marker.colors");eVe(a,"marker.pattern",o),e.marker&&!r.marker.pattern.fgcolor&&(r.marker.pattern.fgcolor=e.marker.colors),r.marker.pattern.bgcolor||(r.marker.pattern.bgcolor=t.paper_bgcolor)}function rVe(e,r,t,a){function n(A,w){return s1.coerce(e,r,JYe,A,w)}var i=n("labels"),o=n("values"),l=Mse(i,o),s=l.len;if(r._hasLabels=l.hasLabels,r._hasValues=l.hasValues,!r._hasLabels&&r._hasValues&&(n("label0"),n("dlabel")),!s){r.visible=!1;return}r._length=s,kse(e,r,a,n,!0),n("scalegroup");var u=n("text"),f=n("texttemplate");n("texttemplatefallback");var c;if(f||(c=n("textinfo",s1.isArrayOrTypedArray(u)?"text+percent":"percent")),n("hovertext"),n("hovertemplate"),n("hovertemplatefallback"),f||c&&c!=="none"){var v=n("textposition");QYe(e,r,a,n,v,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1});var d=Array.isArray(v)||v==="auto",p=d||v==="outside";p&&n("automargin"),(v==="inside"||v==="auto"||Array.isArray(v))&&n("insidetextorientation")}else c==="none"&&n("textposition","none");KYe(r,a,n);var y=n("hole"),m=n("title.text");if(m){var b=n("title.position",y?"middle center":"top center");!y&&b==="middle center"&&(r.title.position="top center"),s1.coerceFont(n,"title.font",a.font)}n("sort"),n("direction"),n("rotation"),n("pull")}Sse.exports={handleLabelsAndValues:Mse,handleMarkerDefaults:kse,supplyDefaults:rVe}});var XM=z((mar,Lse)=>{"use strict";Lse.exports={hiddenlabels:{valType:"data_array",editType:"calc"},piecolorway:{valType:"colorlist",editType:"calc"},extendpiecolors:{valType:"boolean",dflt:!0,editType:"calc"}}});var Dse=z((yar,Cse)=>{"use strict";var tVe=ke(),aVe=XM();Cse.exports=function(r,t){function a(n,i){return tVe.coerce(r,t,aVe,n,i)}a("hiddenlabels"),a("piecolorway",t.colorway),a("extendpiecolors")}});var ZM=z((gar,Rse)=>{"use strict";var nVe=Br(),Fv=qr(),iVe={};function oVe(e,r){var t=[],a=e._fullLayout,n=a.hiddenlabels||[],i=r.labels,o=r.marker.colors||[],l=r.values,s=r._length,u=r._hasValues&&s,f,c;if(r.dlabel)for(i=new Array(s),f=0;f=0});var x=r.type==="funnelarea"?y:r.sort;return x&&t.sort(function(_,k){return k.v-_.v}),t[0]&&(t[0].vTotal=p),t}function Ese(e){return function(t,a){if(!t||!Fv.isValid(t))return!1;let n=Fv.rgbaString(t);return e[a]||(e[a]=n),n}}function lVe(e,r){var t=(r||{}).type;t||(t="pie");var a=e._fullLayout,n=e.calcdata,i=a[t+"colorway"],o=a["_"+t+"colormap"];a["extend"+t+"colors"]&&(i=Pse(i,iVe));for(var l=0,s=0;s{"use strict";var sVe=Ro().appendArrayMultiPointValues;Fse.exports=function(r,t){var a={curveNumber:t.index,pointNumbers:r.pts,data:t._input,fullData:t,label:r.label,color:r.color,value:r.v,percent:r.percent,text:r.text,bbox:r.bbox,v:r.v};return r.pts.length===1&&(a.pointNumber=a.i=r.pts[0]),sVe(a,t,r.pts),t.type==="funnelarea"&&(delete a.v,delete a.i),a}});var nue=z((xar,aue)=>{"use strict";var fi=Pr(),uVe=ma(),wx=Un(),Use=qr(),vs=Jr(),vn=ke(),fVe=vn.strScale,Nse=vn.strTranslate,$M=Fa(),Gse=a2(),cVe=Gse.recordMinTextSize,vVe=Gse.clearMinTextSize,Yse=(Id(),ze(Nd)).TEXTPAD,Dr=Om(),Ax=zse(),Ise=ke().isValidTextValue;function hVe(e,r){var t=e._context.staticPlot,a=e._fullLayout,n=a._size;vVe("pie",a),Wse(r,e),eue(r,n);var i=vn.makeTraceGroups(a._pielayer,r,"trace").each(function(o){var l=fi.select(this),s=o[0],u=s.trace;wVe(o),l.attr("stroke-linejoin","round"),l.each(function(){var f=fi.select(this).selectAll("g.slice").data(o);f.enter().append("g").classed("slice",!0),f.exit().remove();var c=[[[],[]],[[],[]]],v=!1;f.each(function(x,_){if(x.hidden){fi.select(this).selectAll("path,g").remove();return}x.pointNumber=x.i,x.curveNumber=u.index,c[x.pxmid[1]<0?0:1][x.pxmid[0]<0?0:1].push(x);var k=s.cx,T=s.cy,q=fi.select(this),C=q.selectAll("path.surface").data([x]);if(C.enter().append("path").classed("surface",!0).style({"pointer-events":t?"none":"all"}),q.call(Vse,e,o),u.pull){var E=+Dr.castOption(u.pull,x.pts)||0;E>0&&(k+=E*x.pxmid[0],T+=E*x.pxmid[1])}x.cxFinal=k,x.cyFinal=T;function P(G,V,W,j){var J=j*(V[0]-G[0]),te=j*(V[1]-G[1]);return"a"+j*s.r+","+j*s.r+" 0 "+x.largeArc+(W?" 1 ":" 0 ")+J+","+te}var R=u.hole;if(x.v===s.vTotal){var N="M"+(k+x.px0[0])+","+(T+x.px0[1])+P(x.px0,x.pxmid,!0,1)+P(x.pxmid,x.px0,!0,1)+"Z";R?C.attr("d","M"+(k+R*x.px0[0])+","+(T+R*x.px0[1])+P(x.px0,x.pxmid,!1,R)+P(x.pxmid,x.px0,!1,R)+"Z"+N):C.attr("d",N)}else{var I=P(x.px0,x.px1,!0,1);if(R){var O=1-R;C.attr("d","M"+(k+R*x.px1[0])+","+(T+R*x.px1[1])+P(x.px1,x.px0,!1,R)+"l"+O*x.px0[0]+","+O*x.px0[1]+I+"Z")}else C.attr("d","M"+k+","+T+"l"+x.px0[0]+","+x.px0[1]+I+"Z")}rue(e,x,s);var U=Dr.castOption(u.textposition,x.pts),Y=q.selectAll("g.slicetext").data(x.text&&U!=="none"?[0]:[]);Y.enter().append("g").classed("slicetext",!0),Y.exit().remove(),Y.each(function(){var G=vn.ensureSingle(fi.select(this),"text","",function($){$.attr("data-notex",1)}),V=vn.ensureUniformFontSize(e,U==="outside"?pVe(u,x,a.font):jse(u,x,a.font));G.text(x.text).attr({class:"slicetext",transform:"","text-anchor":"middle"}).call(vs.font,V).call($M.convertToTspans,e);var W=vs.bBox(G.node()),j;if(U==="outside")j=Hse(W,x);else if(j=Xse(W,x,s),U==="auto"&&j.scale<1){var J=vn.ensureUniformFontSize(e,u.outsidetextfont);G.call(vs.font,J),W=vs.bBox(G.node()),j=Hse(W,x)}var te=j.textPosAngle,ae=te===void 0?x.pxmid:Tx(s.r,te);if(j.targetX=k+ae[0]*j.rCenter+(j.x||0),j.targetY=T+ae[1]*j.rCenter+(j.y||0),tue(j,W),j.outside){var se=j.targetY;x.yLabelMin=se-W.height/2,x.yLabelMid=se,x.yLabelMax=se+W.height/2,x.labelExtraX=0,x.labelExtraY=0,v=!0}j.fontSize=V.size,cVe(u.type,j,a),o[_].transform=j,vn.setTransormAndDisplay(G,j)})});var d=fi.select(this).selectAll("g.titletext").data(u.title.text?[0]:[]);if(d.enter().append("g").classed("titletext",!0),d.exit().remove(),d.each(function(){var x=vn.ensureSingle(fi.select(this),"text","",function(T){T.attr("data-notex",1)}),_=u.title.text;u._meta&&(_=vn.templateString(_,u._meta)),x.text(_).attr({class:"titletext",transform:"","text-anchor":"middle"}).call(vs.font,u.title.font).call($M.convertToTspans,e);var k;u.title.position==="middle center"?k=gVe(s):k=Kse(s,n),x.attr("transform",Nse(k.x,k.y)+fVe(Math.min(1,k.scale))+Nse(k.tx,k.ty))}),v&&xVe(c,u),dVe(f,u),v&&u.automargin){var p=vs.bBox(l.node()),y=u.domain,m=n.w*(y.x[1]-y.x[0]),b=n.h*(y.y[1]-y.y[0]),A=(.5*m-s.r)/n.w,w=(.5*b-s.r)/n.h;uVe.autoMargin(e,"pie."+u.uid+".automargin",{xl:y.x[0]-A,xr:y.x[1]+A,yb:y.y[0]-w,yt:y.y[1]+w,l:Math.max(s.cx-s.r-p.left,0),r:Math.max(p.right-(s.cx+s.r),0),b:Math.max(p.bottom-(s.cy+s.r),0),t:Math.max(s.cy-s.r-p.top,0),pad:5})}})});setTimeout(function(){i.selectAll("tspan").each(function(){var o=fi.select(this);o.attr("dy")&&o.attr("dy",o.attr("dy"))})},0)}function dVe(e,r){e.each(function(t){var a=fi.select(this);if(!t.labelExtraX&&!t.labelExtraY){a.select("path.textline").remove();return}var n=a.select("g.slicetext text");t.transform.targetX+=t.labelExtraX,t.transform.targetY+=t.labelExtraY,vn.setTransormAndDisplay(n,t.transform);var i=t.cxFinal+t.pxmid[0],o=t.cyFinal+t.pxmid[1],l="M"+i+","+o,s=(t.yLabelMax-t.yLabelMin)*(t.pxmid[0]<0?-1:1)/4;if(t.labelExtraX){var u=t.labelExtraX*t.pxmid[1]/t.pxmid[0],f=t.yLabelMid+t.labelExtraY-(t.cyFinal+t.pxmid[1]);Math.abs(u)>Math.abs(f)?l+="l"+f*t.pxmid[0]/t.pxmid[1]+","+f+"H"+(i+t.labelExtraX+s):l+="l"+t.labelExtraX+","+u+"v"+(f-u)+"h"+s}else l+="V"+(t.yLabelMid+t.labelExtraY)+"h"+s;vn.ensureSingle(a,"path","textline").call(Use.stroke,r.outsidetextfont.color).attr({"stroke-width":Math.min(2,r.outsidetextfont.size/8),d:l,fill:"none"})})}function Vse(e,r,t){var a=t[0],n=a.cx,i=a.cy,o=a.trace,l=o.type==="funnelarea";"_hasHoverLabel"in o||(o._hasHoverLabel=!1),"_hasHoverEvent"in o||(o._hasHoverEvent=!1),e.on("mouseover",function(s){var u=r._fullLayout,f=r._fullData[o.index];if(!(r._dragging||u.hovermode===!1)){var c=f.hoverinfo;if(Array.isArray(c)&&(c=wx.castHoverinfo({hoverinfo:[Dr.castOption(c,s.pts)],_module:o._module},u,0)),c==="all"&&(c="label+text+value+percent+name"),f.hovertemplate||c!=="none"&&c!=="skip"&&c){var v=s.rInscribed||0,d=n+s.pxmid[0]*(1-v),p=i+s.pxmid[1]*(1-v),y=u.separators,m=[];if(c&&c.indexOf("label")!==-1&&m.push(s.label),s.text=Dr.castOption(f.hovertext||f.text,s.pts),c&&c.indexOf("text")!==-1){var b=s.text;vn.isValidTextValue(b)&&m.push(b)}s.value=s.v,s.valueLabel=Dr.formatPieValue(s.v,y),c&&c.indexOf("value")!==-1&&m.push(s.valueLabel),s.percent=s.v/a.vTotal,s.percentLabel=Dr.formatPiePercent(s.percent,y),c&&c.indexOf("percent")!==-1&&m.push(s.percentLabel);var A=f.hoverlabel,w=A.font,x=[];wx.loneHover({trace:o,x0:d-v*a.r,x1:d+v*a.r,y:p,_x0:l?n+s.TL[0]:d-v*a.r,_x1:l?n+s.TR[0]:d+v*a.r,_y0:l?i+s.TL[1]:p-v*a.r,_y1:l?i+s.BL[1]:p+v*a.r,text:m.join("
"),name:f.hovertemplate||c.indexOf("name")!==-1?f.name:void 0,idealAlign:s.pxmid[0]<0?"left":"right",color:Dr.castOption(A.bgcolor,s.pts)||s.color,borderColor:Dr.castOption(A.bordercolor,s.pts),fontFamily:Dr.castOption(w.family,s.pts),fontSize:Dr.castOption(w.size,s.pts),fontColor:Dr.castOption(w.color,s.pts),nameLength:Dr.castOption(A.namelength,s.pts),textAlign:Dr.castOption(A.align,s.pts),hovertemplate:Dr.castOption(f.hovertemplate,s.pts),hovertemplateLabels:s,eventData:[Ax(s,f)]},{container:u._hoverlayer.node(),outerContainer:u._paper.node(),gd:r,inOut_bbox:x}),s.bbox=x[0],o._hasHoverLabel=!0}o._hasHoverEvent=!0,r.emit("plotly_hover",{points:[Ax(s,f)],event:fi.event})}}),e.on("mouseout",function(s){var u=r._fullLayout,f=r._fullData[o.index],c=fi.select(this).datum();o._hasHoverEvent&&(s.originalEvent=fi.event,r.emit("plotly_unhover",{points:[Ax(c,f)],event:fi.event}),o._hasHoverEvent=!1),o._hasHoverLabel&&(wx.loneUnhover(u._hoverlayer.node()),o._hasHoverLabel=!1)}),e.on("click",function(s){var u=r._fullLayout,f=r._fullData[o.index];r._dragging||u.hovermode===!1||(r._hoverdata=[Ax(s,f)],wx.click(r,fi.event))})}function pVe(e,r,t){var a=Dr.castOption(e.outsidetextfont.color,r.pts)||Dr.castOption(e.textfont.color,r.pts)||t.color,n=Dr.castOption(e.outsidetextfont.family,r.pts)||Dr.castOption(e.textfont.family,r.pts)||t.family,i=Dr.castOption(e.outsidetextfont.size,r.pts)||Dr.castOption(e.textfont.size,r.pts)||t.size,o=Dr.castOption(e.outsidetextfont.weight,r.pts)||Dr.castOption(e.textfont.weight,r.pts)||t.weight,l=Dr.castOption(e.outsidetextfont.style,r.pts)||Dr.castOption(e.textfont.style,r.pts)||t.style,s=Dr.castOption(e.outsidetextfont.variant,r.pts)||Dr.castOption(e.textfont.variant,r.pts)||t.variant,u=Dr.castOption(e.outsidetextfont.textcase,r.pts)||Dr.castOption(e.textfont.textcase,r.pts)||t.textcase,f=Dr.castOption(e.outsidetextfont.lineposition,r.pts)||Dr.castOption(e.textfont.lineposition,r.pts)||t.lineposition,c=Dr.castOption(e.outsidetextfont.shadow,r.pts)||Dr.castOption(e.textfont.shadow,r.pts)||t.shadow;return{color:a,family:n,size:i,weight:o,style:l,variant:s,textcase:u,lineposition:f,shadow:c}}function jse(e,r,t){var a=Dr.castOption(e.insidetextfont.color,r.pts);!a&&e._input.textfont&&(a=Dr.castOption(e._input.textfont.color,r.pts));var n=Dr.castOption(e.insidetextfont.family,r.pts)||Dr.castOption(e.textfont.family,r.pts)||t.family,i=Dr.castOption(e.insidetextfont.size,r.pts)||Dr.castOption(e.textfont.size,r.pts)||t.size,o=Dr.castOption(e.insidetextfont.weight,r.pts)||Dr.castOption(e.textfont.weight,r.pts)||t.weight,l=Dr.castOption(e.insidetextfont.style,r.pts)||Dr.castOption(e.textfont.style,r.pts)||t.style,s=Dr.castOption(e.insidetextfont.variant,r.pts)||Dr.castOption(e.textfont.variant,r.pts)||t.variant,u=Dr.castOption(e.insidetextfont.textcase,r.pts)||Dr.castOption(e.textfont.textcase,r.pts)||t.textcase,f=Dr.castOption(e.insidetextfont.lineposition,r.pts)||Dr.castOption(e.textfont.lineposition,r.pts)||t.lineposition,c=Dr.castOption(e.insidetextfont.shadow,r.pts)||Dr.castOption(e.textfont.shadow,r.pts)||t.shadow;return{color:a||Use.contrast(r.color),family:n,size:i,weight:o,style:l,variant:s,textcase:u,lineposition:f,shadow:c}}function Wse(e,r){for(var t,a,n=0;n=-4;A-=2)b(Math.PI*A,"tan");for(A=4;A>=-4;A-=2)b(Math.PI*(A+1),"tan")}if(c||d){for(A=4;A>=-4;A-=2)b(Math.PI*(A+1.5),"rad");for(A=4;A>=-4;A-=2)b(Math.PI*(A+.5),"rad")}}if(l||p||c){var w=Math.sqrt(e.width*e.width+e.height*e.height);if(m={scale:n*a*2/w,rCenter:1-n,rotate:0},m.textPosAngle=(r.startangle+r.stopangle)/2,m.scale>=1)return m;y.push(m)}(p||d)&&(m=Bse(e,a,o,s,u),m.textPosAngle=(r.startangle+r.stopangle)/2,y.push(m)),(p||v)&&(m=Ose(e,a,o,s,u),m.textPosAngle=(r.startangle+r.stopangle)/2,y.push(m));for(var x=0,_=0,k=0;k=1)break}return y[x]}function mVe(e,r){var t=e.startangle,a=e.stopangle;return t>r&&r>a||t0?1:-1)/2,y:i/(1+t*t/(a*a)),outside:!0}}function gVe(e){var r=Math.sqrt(e.titleBox.width*e.titleBox.width+e.titleBox.height*e.titleBox.height);return{x:e.cx,y:e.cy,scale:e.trace.hole*e.r*2/r,tx:0,ty:-e.titleBox.height/2+e.trace.title.font.size}}function Kse(e,r){var t=1,a=1,n,i=e.trace,o={x:e.cx,y:e.cy},l={tx:0,ty:0};l.ty+=i.title.font.size,n=Qse(i),i.title.position.indexOf("top")!==-1?(o.y-=(1+n)*e.r,l.ty-=e.titleBox.height):i.title.position.indexOf("bottom")!==-1&&(o.y+=(1+n)*e.r);var s=bVe(e.r,e.trace.aspectratio),u=r.w*(i.domain.x[1]-i.domain.x[0])/2;return i.title.position.indexOf("left")!==-1?(u=u+s,o.x-=(1+n)*s,l.tx+=e.titleBox.width/2):i.title.position.indexOf("center")!==-1?u*=2:i.title.position.indexOf("right")!==-1&&(u=u+s,o.x+=(1+n)*s,l.tx-=e.titleBox.width/2),t=u/e.titleBox.width,a=JM(e,r)/e.titleBox.height,{x:o.x,y:o.y,scale:Math.min(t,a),tx:l.tx,ty:l.ty}}function bVe(e,r){return e/(r===void 0?1:r)}function JM(e,r){var t=e.trace,a=r.h*(t.domain.y[1]-t.domain.y[0]);return Math.min(e.titleBox.height,a/2)}function Qse(e){var r=e.pull;if(!r)return 0;var t;if(vn.isArrayOrTypedArray(r))for(r=0,t=0;tr&&(r=e.pull[t]);return r}function xVe(e,r){var t,a,n,i,o,l,s,u,f,c,v,d,p;function y(w,x){return w.pxmid[1]-x.pxmid[1]}function m(w,x){return x.pxmid[1]-w.pxmid[1]}function b(w,x){x||(x={});var _=x.labelExtraY+(a?x.yLabelMax:x.yLabelMin),k=a?w.yLabelMin:w.yLabelMax,T=a?w.yLabelMax:w.yLabelMin,q=w.cyFinal+o(w.px0[1],w.px1[1]),C=_-k,E,P,R,N,I,O;if(C*s>0&&(w.labelExtraY=C),!!vn.isArrayOrTypedArray(r.pull))for(P=0;P=(Dr.castOption(r.pull,R.pts)||0))&&((w.pxmid[1]-R.pxmid[1])*s>0?(N=R.cyFinal+o(R.px0[1],R.px1[1]),C=N-k-w.labelExtraY,C*s>0&&(w.labelExtraY+=C)):(T+w.labelExtraY-q)*s>0&&(E=3*l*Math.abs(P-c.indexOf(w)),I=R.cxFinal+i(R.px0[0],R.px1[0]),O=I+E-(w.cxFinal+w.pxmid[0])-w.labelExtraX,O*l>0&&(w.labelExtraX+=O)))}for(a=0;a<2;a++)for(n=a?y:m,o=a?Math.max:Math.min,s=a?1:-1,t=0;t<2;t++){for(i=t?Math.max:Math.min,l=t?1:-1,u=e[a][t],u.sort(n),f=e[1-a][t],c=f.concat(u),d=[],v=0;v1?(u=t.r,f=u/n.aspectratio):(f=t.r,u=f*n.aspectratio),u*=(1+n.baseratio)/2,s=u*f}o=Math.min(o,s/t.vTotal)}for(a=0;ar.vTotal/2?1:0,u.halfangle=Math.PI*Math.min(u.v/r.vTotal,.5),u.ring=1-a.hole,u.rInscribed=yVe(u,r))}function Tx(e,r){return[e*Math.sin(r),-e*Math.cos(r)]}function rue(e,r,t){var a=e._fullLayout,n=t.trace,i=n.texttemplate,o=n.textinfo;if(!i&&o&&o!=="none"){var l=o.split("+"),s=function(x){return l.indexOf(x)!==-1},u=s("label"),f=s("text"),c=s("value"),v=s("percent"),d=a.separators,p;if(p=u?[r.label]:[],f){var y=Dr.getFirstFilled(n.text,r.pts);Ise(y)&&p.push(y)}c&&p.push(Dr.formatPieValue(r.v,d)),v&&p.push(Dr.formatPiePercent(r.v/t.vTotal,d)),r.text=p.join("
")}function m(x){return{label:x.label,value:x.v,valueLabel:Dr.formatPieValue(x.v,a.separators),percent:x.v/t.vTotal,percentLabel:Dr.formatPiePercent(x.v/t.vTotal,a.separators),color:x.color,text:x.text,customdata:vn.castOption(n,x.i,"customdata")}}if(i){var b=vn.castOption(n,r.i,"texttemplate");if(!b)r.text="";else{var A=m(r),w=Dr.getFirstFilled(n.text,r.pts);(Ise(w)||w==="")&&(A.text=w),r.text=vn.texttemplateString({data:[A,n._meta],fallback:n.texttemplatefallback,labels:A,locale:e._fullLayout._d3locale,template:b})}}}function tue(e,r){var t=e.rotate*Math.PI/180,a=Math.cos(t),n=Math.sin(t),i=(r.left+r.right)/2,o=(r.top+r.bottom)/2;e.textX=i*a-o*n,e.textY=i*n+o*a,e.noCenter=!0}aue.exports={plot:hVe,formatSliceLabel:rue,transformInsideText:Xse,determineInsideTextFont:jse,positionTitleOutside:Kse,prerenderTitles:Wse,layoutAreas:eue,attachFxHandlers:Vse,computeTransform:tue}});var lue=z((_ar,oue)=>{"use strict";var iue=Pr(),AVe=Hm(),TVe=a2().resizeText;oue.exports=function(r){var t=r._fullLayout._pielayer.selectAll(".trace");TVe(r,t,"pie"),t.each(function(a){var n=a[0],i=n.trace,o=iue.select(this);o.style({opacity:i.opacity}),o.selectAll("path.surface").each(function(l){iue.select(this).call(AVe,l,i,r)})})}});var uue=z(zv=>{"use strict";var sue=ma();zv.name="pie";zv.plot=function(e,r,t,a){sue.plotBasePlot(zv.name,e,r,t,a)};zv.clean=function(e,r,t,a){sue.cleanBasePlot(zv.name,e,r,t,a)}});var cue=z((Aar,fue)=>{"use strict";fue.exports={attributes:WM(),supplyDefaults:qse().supplyDefaults,supplyLayoutDefaults:Dse(),layoutAttributes:XM(),calc:ZM().calc,crossTraceCalc:ZM().crossTraceCalc,plot:nue().plot,style:lue(),styleOne:Hm(),moduleType:"trace",name:"pie",basePlotModule:uue(),categories:["pie-like","pie","showLegend"],meta:{}}});var hue=z((Tar,vue)=>{"use strict";vue.exports=cue()});var xn=z((Mar,pue)=>{"use strict";var due=Object.getOwnPropertySymbols,MVe=Object.prototype.hasOwnProperty,kVe=Object.prototype.propertyIsEnumerable;function SVe(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function qVe(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var r={},t=0;t<10;t++)r["_"+String.fromCharCode(t)]=t;var a=Object.getOwnPropertyNames(r).map(function(i){return r[i]});if(a.join("")!=="0123456789")return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach(function(i){n[i]=i}),Object.keys(Object.assign({},n)).join("")==="abcdefghijklmnopqrst"}catch(i){return!1}}pue.exports=qVe()?Object.assign:function(e,r){for(var t,a=SVe(e),n,i=1;i{var kx=xn();function mue(){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={}}kx(mue.prototype,{instance:function(e,r){e=(e||"gregorian").toLowerCase(),r=r||"";var t=this._localCals[e+"-"+r];if(!t&&this.calendars[e]&&(t=new this.calendars[e](r),this._localCals[e+"-"+r]=t),!t)throw(this.local.invalidCalendar||this.regionalOptions[""].invalidCalendar).replace(/\{0\}/,e);return t},newDate:function(e,r,t,a,n){return a=(e!=null&&e.year?e.calendar():typeof a=="string"?this.instance(a,n):a)||this.instance(),a.newDate(e,r,t)},substituteDigits:function(e){return function(r){return(r+"").replace(/[0-9]/g,function(t){return e[t]})}},substituteChineseDigits:function(e,r){return function(t){for(var a="",n=0;t>0;){var i=t%10;a=(i===0?"":e[i]+r[n])+a,n++,t=Math.floor(t/10)}return a.indexOf(e[1]+r[1])===0&&(a=a.substr(1)),a||e[0]}}});function KM(e,r,t,a){if(this._calendar=e,this._year=r,this._month=t,this._day=a,this._calendar._validateLevel===0&&!this._calendar.isValid(this._year,this._month,this._day))throw(Gr.local.invalidDate||Gr.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name)}function Mx(e,r){return e=""+e,"000000".substring(0,r-e.length)+e}kx(KM.prototype,{newDate:function(e,r,t){return this._calendar.newDate(e==null?this:e,r,t)},year:function(e){return arguments.length===0?this._year:this.set(e,"y")},month:function(e){return arguments.length===0?this._month:this.set(e,"m")},day:function(e){return arguments.length===0?this._day:this.set(e,"d")},date:function(e,r,t){if(!this._calendar.isValid(e,r,t))throw(Gr.local.invalidDate||Gr.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name);return this._year=e,this._month=r,this._day=t,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(e,r){return this._calendar.add(this,e,r)},set:function(e,r){return this._calendar.set(this,e,r)},compareTo:function(e){if(this._calendar.name!==e._calendar.name)throw(Gr.local.differentCalendars||Gr.regionalOptions[""].differentCalendars).replace(/\{0\}/,this._calendar.local.name).replace(/\{1\}/,e._calendar.local.name);var r=this._year!==e._year?this._year-e._year:this._month!==e._month?this.monthOfYear()-e.monthOfYear():this._day-e._day;return r===0?0:r<0?-1:1},calendar:function(){return this._calendar},toJD:function(){return this._calendar.toJD(this)},fromJD:function(e){return this._calendar.fromJD(e)},toJSDate:function(){return this._calendar.toJSDate(this)},fromJSDate:function(e){return this._calendar.fromJSDate(e)},toString:function(){return(this.year()<0?"-":"")+Mx(Math.abs(this.year()),4)+"-"+Mx(this.month(),2)+"-"+Mx(this.day(),2)}});function QM(){this.shortYearCutoff="+10"}kx(QM.prototype,{_validateLevel:0,newDate:function(e,r,t){return e==null?this.today():(e.year&&(this._validate(e,r,t,Gr.local.invalidDate||Gr.regionalOptions[""].invalidDate),t=e.day(),r=e.month(),e=e.year()),new KM(this,e,r,t))},today:function(){return this.fromJSDate(new Date)},epoch:function(e){var r=this._validate(e,this.minMonth,this.minDay,Gr.local.invalidYear||Gr.regionalOptions[""].invalidYear);return r.year()<0?this.local.epochs[0]:this.local.epochs[1]},formatYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Gr.local.invalidYear||Gr.regionalOptions[""].invalidYear);return(r.year()<0?"-":"")+Mx(Math.abs(r.year()),4)},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Gr.local.invalidYear||Gr.regionalOptions[""].invalidYear),12},monthOfYear:function(e,r){var t=this._validate(e,r,this.minDay,Gr.local.invalidMonth||Gr.regionalOptions[""].invalidMonth);return(t.month()+this.monthsInYear(t)-this.firstMonth)%this.monthsInYear(t)+this.minMonth},fromMonthOfYear:function(e,r){var t=(r+this.firstMonth-2*this.minMonth)%this.monthsInYear(e)+this.minMonth;return this._validate(e,t,this.minDay,Gr.local.invalidMonth||Gr.regionalOptions[""].invalidMonth),t},daysInYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Gr.local.invalidYear||Gr.regionalOptions[""].invalidYear);return this.leapYear(r)?366:365},dayOfYear:function(e,r,t){var a=this._validate(e,r,t,Gr.local.invalidDate||Gr.regionalOptions[""].invalidDate);return a.toJD()-this.newDate(a.year(),this.fromMonthOfYear(a.year(),this.minMonth),this.minDay).toJD()+1},daysInWeek:function(){return 7},dayOfWeek:function(e,r,t){var a=this._validate(e,r,t,Gr.local.invalidDate||Gr.regionalOptions[""].invalidDate);return(Math.floor(this.toJD(a))+2)%this.daysInWeek()},extraInfo:function(e,r,t){return this._validate(e,r,t,Gr.local.invalidDate||Gr.regionalOptions[""].invalidDate),{}},add:function(e,r,t){return this._validate(e,this.minMonth,this.minDay,Gr.local.invalidDate||Gr.regionalOptions[""].invalidDate),this._correctAdd(e,this._add(e,r,t),r,t)},_add:function(e,r,t){if(this._validateLevel++,t==="d"||t==="w"){var a=e.toJD()+r*(t==="w"?this.daysInWeek():1),n=e.calendar().fromJD(a);return this._validateLevel--,[n.year(),n.month(),n.day()]}try{var i=e.year()+(t==="y"?r:0),o=e.monthOfYear()+(t==="m"?r:0),n=e.day(),l=function(f){for(;oc-1+f.minMonth;)i++,o-=c,c=f.monthsInYear(i)};t==="y"?(e.month()!==this.fromMonthOfYear(i,o)&&(o=this.newDate(i,e.month(),this.minDay).monthOfYear()),o=Math.min(o,this.monthsInYear(i)),n=Math.min(n,this.daysInMonth(i,this.fromMonthOfYear(i,o)))):t==="m"&&(l(this),n=Math.min(n,this.daysInMonth(i,this.fromMonthOfYear(i,o))));var s=[i,this.fromMonthOfYear(i,o),n];return this._validateLevel--,s}catch(u){throw this._validateLevel--,u}},_correctAdd:function(e,r,t,a){if(!this.hasYearZero&&(a==="y"||a==="m")&&(r[0]===0||e.year()>0!=r[0]>0)){var n={y:[1,1,"y"],m:[1,this.monthsInYear(-1),"m"],w:[this.daysInWeek(),this.daysInYear(-1),"d"],d:[1,this.daysInYear(-1),"d"]}[a],i=t<0?-1:1;r=this._add(e,t*n[0]+i*n[1],n[2])}return e.date(r[0],r[1],r[2])},set:function(e,r,t){this._validate(e,this.minMonth,this.minDay,Gr.local.invalidDate||Gr.regionalOptions[""].invalidDate);var a=t==="y"?r:e.year(),n=t==="m"?r:e.month(),i=t==="d"?r:e.day();return(t==="y"||t==="m")&&(i=Math.min(i,this.daysInMonth(a,n))),e.date(a,n,i)},isValid:function(e,r,t){this._validateLevel++;var a=this.hasYearZero||e!==0;if(a){var n=this.newDate(e,r,this.minDay);a=r>=this.minMonth&&r-this.minMonth=this.minDay&&t-this.minDay13.5?13:1),u=n-(s>2.5?4716:4715);return u<=0&&u--,this.newDate(u,s,l)},toJSDate:function(e,r,t){var a=this._validate(e,r,t,Gr.local.invalidDate||Gr.regionalOptions[""].invalidDate),n=new Date(a.year(),a.month()-1,a.day());return n.setHours(0),n.setMinutes(0),n.setSeconds(0),n.setMilliseconds(0),n.setHours(n.getHours()>12?n.getHours()+2:0),n},fromJSDate:function(e){return this.newDate(e.getFullYear(),e.getMonth()+1,e.getDate())}});var Gr=yue.exports=new mue;Gr.cdate=KM;Gr.baseCalendar=QM;Gr.calendars.gregorian=ek});var gue=z(()=>{var rk=xn(),Za=_n();rk(Za.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"});Za.local=Za.regionalOptions[""];rk(Za.cdate.prototype,{formatDate:function(e,r){return typeof e!="string"&&(r=e,e=""),this._calendar.formatDate(e||"",this,r)}});rk(Za.baseCalendar.prototype,{UNIX_EPOCH:Za.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:1440*60,TICKS_EPOCH:Za.instance().jdEpoch,TICKS_PER_DAY:1440*60*1e7,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(e,r,t){if(typeof e!="string"&&(t=r,r=e,e=""),!r)return"";if(r.calendar()!==this)throw Za.local.invalidFormat||Za.regionalOptions[""].invalidFormat;e=e||this.local.dateFormat,t=t||{};for(var a=t.dayNamesShort||this.local.dayNamesShort,n=t.dayNames||this.local.dayNames,i=t.monthNumbers||this.local.monthNumbers,o=t.monthNamesShort||this.local.monthNamesShort,l=t.monthNames||this.local.monthNames,s=t.calculateWeek||this.local.calculateWeek,u=function(x,_){for(var k=1;w+k1},f=function(x,_,k,T){var q=""+_;if(u(x,T))for(;q.length1},A=function(R,N){var I=b(R,N),O=[2,3,I?4:2,I?4:2,10,11,20]["oyYJ@!".indexOf(R)+1],U=new RegExp("^-?\\d{1,"+O+"}"),Y=r.substring(q).match(U);if(!Y)throw(Za.local.missingNumberAt||Za.regionalOptions[""].missingNumberAt).replace(/\{0\}/,q);return q+=Y[0].length,parseInt(Y[0],10)},w=this,x=function(){if(typeof l=="function"){b("m");var R=l.call(w,r.substring(q));return q+=R.length,R}return A("m")},_=function(R,N,I,O){for(var U=b(R,O)?I:N,Y=0;Y-1){v=1,d=p;for(var P=this.daysInMonth(c,v);d>P;P=this.daysInMonth(c,v))v++,d-=P}return f>-1?this.fromJD(f):this.newDate(c,v,d)},determineDate:function(e,r,t,a,n){t&&typeof t!="object"&&(n=a,a=t,t=null),typeof a!="string"&&(n=a,a="");var i=this,o=function(l){try{return i.parseDate(a,l,n)}catch(c){}l=l.toLowerCase();for(var s=(l.match(/^c/)&&t?t.newDate():null)||i.today(),u=/([+-]?[0-9]+)\s*(d|w|m|y)?/g,f=u.exec(l);f;)s.add(parseInt(f[1],10),f[2]||"d"),f=u.exec(l);return s};return r=r?r.newDate():null,e=e==null?r:typeof e=="string"?o(e):typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?r:i.today().add(e,"d"):i.newDate(e),e}})});var bue=z(()=>{var xu=_n(),LVe=xn(),tk=xu.instance();function Sx(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}Sx.prototype=new xu.baseCalendar;LVe(Sx.prototype,{name:"Chinese",jdEpoch:17214255e-1,hasYearZero:!1,minMonth:0,firstMonth:0,minDay:1,regionalOptions:{"":{name:"Chinese",epochs:["BEC","EC"],monthNumbers:function(e,r){if(typeof e=="string"){var t=e.match(DVe);return t?t[0]:""}var a=this._validateYear(e),n=e.month(),i=""+this.toChineseMonth(a,n);return r&&i.length<2&&(i="0"+i),this.isIntercalaryMonth(a,n)&&(i+="i"),i},monthNames:function(e){if(typeof e=="string"){var r=e.match(EVe);return r?r[0]:""}var t=this._validateYear(e),a=e.month(),n=this.toChineseMonth(t,a),i=["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"][n-1];return this.isIntercalaryMonth(t,a)&&(i="\u95F0"+i),i},monthNamesShort:function(e){if(typeof e=="string"){var r=e.match(PVe);return r?r[0]:""}var t=this._validateYear(e),a=e.month(),n=this.toChineseMonth(t,a),i=["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"][n-1];return this.isIntercalaryMonth(t,a)&&(i="\u95F0"+i),i},parseMonth:function(e,r){e=this._validateYear(e);var t=parseInt(r),a;if(isNaN(t))r[0]==="\u95F0"&&(a=!0,r=r.substring(1)),r[r.length-1]==="\u6708"&&(r=r.substring(0,r.length-1)),t=1+["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"].indexOf(r);else{var n=r[r.length-1];a=n==="i"||n==="I"}var i=this.toMonthIndex(e,t,a);return i},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(e,r){if(e.year&&(e=e.year()),typeof e!="number"||e<1888||e>2111)throw r.replace(/\{0\}/,this.local.name);return e},toMonthIndex:function(e,r,t){var a=this.intercalaryMonth(e),n=t&&r!==a;if(n||r<1||r>12)throw xu.local.invalidMonth.replace(/\{0\}/,this.local.name);var i;return a?!t&&r<=a?i=r-1:i=r:i=r-1,i},toChineseMonth:function(e,r){e.year&&(e=e.year(),r=e.month());var t=this.intercalaryMonth(e),a=t?12:11;if(r<0||r>a)throw xu.local.invalidMonth.replace(/\{0\}/,this.local.name);var n;return t?r>13;return t},isIntercalaryMonth:function(e,r){e.year&&(e=e.year(),r=e.month());var t=this.intercalaryMonth(e);return!!t&&t===r},leapYear:function(e){return this.intercalaryMonth(e)!==0},weekOfYear:function(e,r,t){var a=this._validateYear(e,xu.local.invalidyear),n=wu[a-wu[0]],i=n>>9&4095,o=n>>5&15,l=n&31,s;s=tk.newDate(i,o,l),s.add(4-(s.dayOfWeek()||7),"d");var u=this.toJD(e,r,t)-s.toJD();return 1+Math.floor(u/7)},monthsInYear:function(e){return this.leapYear(e)?13:12},daysInMonth:function(e,r){e.year&&(r=e.month(),e=e.year()),e=this._validateYear(e);var t=_u[e-_u[0]],a=t>>13,n=a?12:11;if(r>n)throw xu.local.invalidMonth.replace(/\{0\}/,this.local.name);var i=t&1<<12-r?30:29;return i},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var a=this._validate(e,i,t,xu.local.invalidDate);e=this._validateYear(a.year()),r=a.month(),t=a.day();var n=this.isIntercalaryMonth(e,r),i=this.toChineseMonth(e,r),o=FVe(e,i,t,n);return tk.toJD(o.year,o.month,o.day)},fromJD:function(e){var r=tk.fromJD(e),t=RVe(r.year(),r.month(),r.day()),a=this.toMonthIndex(t.year,t.month,t.isIntercalary);return this.newDate(t.year,a,t.day)},fromString:function(e){var r=e.match(CVe),t=this._validateYear(+r[1]),a=+r[2],n=!!r[3],i=this.toMonthIndex(t,a,n),o=+r[4];return this.newDate(t,i,o)},add:function(e,r,t){var a=e.year(),n=e.month(),i=this.isIntercalaryMonth(a,n),o=this.toChineseMonth(a,n),l=Object.getPrototypeOf(Sx.prototype).add.call(this,e,r,t);if(t==="y"){var s=l.year(),u=l.month(),f=this.isIntercalaryMonth(s,o),c=i&&f?this.toMonthIndex(s,o,!0):this.toMonthIndex(s,o,!1);c!==u&&l.month(c)}return l}});var CVe=/^\s*(-?\d\d\d\d|\d\d)[-/](\d?\d)([iI]?)[-/](\d?\d)/m,DVe=/^\d?\d[iI]?/m,EVe=/^闰?十?[一二三四五六七八九]?月/m,PVe=/^闰?十?[一二三四五六七八九]?/m;xu.calendars.chinese=Sx;var _u=[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],wu=[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 RVe(e,r,t,a){var n,i;if(typeof e=="object")n=e,i=r||{};else{var o=typeof e=="number"&&e>=1888&&e<=2111;if(!o)throw new Error("Solar year outside range 1888-2111");var l=typeof r=="number"&&r>=1&&r<=12;if(!l)throw new Error("Solar month outside range 1 - 12");var s=typeof t=="number"&&t>=1&&t<=31;if(!s)throw new Error("Solar day outside range 1 - 31");n={year:e,month:r,day:t},i=a||{}}var u=wu[n.year-wu[0]],f=n.year<<9|n.month<<5|n.day;i.year=f>=u?n.year:n.year-1,u=wu[i.year-wu[0]];var c=u>>9&4095,v=u>>5&15,d=u&31,p,y=new Date(c,v-1,d),m=new Date(n.year,n.month-1,n.day);p=Math.round((m-y)/(24*3600*1e3));var b=_u[i.year-_u[0]],A;for(A=0;A<13;A++){var w=b&1<<12-A?30:29;if(p>13;return!x||A=1888&&e<=2111;if(!l)throw new Error("Lunar year outside range 1888-2111");var s=typeof r=="number"&&r>=1&&r<=12;if(!s)throw new Error("Lunar month outside range 1 - 12");var u=typeof t=="number"&&t>=1&&t<=30;if(!u)throw new Error("Lunar day outside range 1 - 30");var f;typeof a=="object"?(f=!1,i=a):(f=!!a,i=n||{}),o={year:e,month:r,day:t,isIntercalary:f}}var c;c=o.day-1;var v=_u[o.year-_u[0]],d=v>>13,p;d&&(o.month>d||o.isIntercalary)?p=o.month:p=o.month-1;for(var y=0;y>9&4095,w=b>>5&15,x=b&31,_=new Date(A,w-1,x+c);return i.year=_.getFullYear(),i.month=1+_.getMonth(),i.day=_.getDate(),i}});var xue=z(()=>{var nc=_n(),zVe=xn();function ak(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}ak.prototype=new nc.baseCalendar;zVe(ak.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(t){var r=this._validate(t,this.minMonth,this.minDay,nc.local.invalidYear),t=r.year()+(r.year()<0?1:0);return t%4===3||t%4===-1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,nc.local.invalidYear||nc.regionalOptions[""].invalidYear),13},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,nc.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===13&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var a=this._validate(e,r,t,nc.local.invalidDate);return e=a.year(),e<0&&e++,a.day()+(a.month()-1)*30+(e-1)*365+Math.floor(e/4)+this.jdEpoch-1},fromJD:function(e){var r=Math.floor(e)+.5-this.jdEpoch,t=Math.floor((r-Math.floor((r+366)/1461))/365)+1;t<=0&&t--,r=Math.floor(e)+.5-this.newDate(t,1,1).toJD();var a=Math.floor(r/30)+1,n=r-(a-1)*30+1;return this.newDate(t,a,n)}});nc.calendars.coptic=ak});var _ue=z(()=>{var hs=_n(),NVe=xn();function nk(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}nk.prototype=new hs.baseCalendar;NVe(nk.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(e){return this._validate(e,this.minMonth,this.minDay,hs.local.invalidYear),!1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,hs.local.invalidYear),13},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,hs.local.invalidYear),400},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/8)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,hs.local.invalidMonth);return this.daysPerMonth[t.month()-1]},daysInWeek:function(){return 8},dayOfWeek:function(e,r,t){var a=this._validate(e,r,t,hs.local.invalidDate);return(a.day()+1)%8},weekDay:function(e,r,t){var a=this.dayOfWeek(e,r,t);return a>=2&&a<=6},extraInfo:function(e,r,t){var a=this._validate(e,r,t,hs.local.invalidDate);return{century:IVe[Math.floor((a.year()-1)/100)+1]||""}},toJD:function(e,r,t){var a=this._validate(e,r,t,hs.local.invalidDate);return e=a.year()+(a.year()<0?1:0),r=a.month(),t=a.day(),t+(r>1?16:0)+(r>2?(r-2)*32:0)+(e-1)*400+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e+.5)-Math.floor(this.jdEpoch)-1;var r=Math.floor(e/400)+1;e-=(r-1)*400,e+=e>15?16:0;var t=Math.floor(e/32)+1,a=e-(t-1)*32+1;return this.newDate(r<=0?r-1:r,t,a)}});var IVe={20:"Fruitbat",21:"Anchovy"};hs.calendars.discworld=nk});var wue=z(()=>{var ic=_n(),BVe=xn();function ik(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}ik.prototype=new ic.baseCalendar;BVe(ik.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(t){var r=this._validate(t,this.minMonth,this.minDay,ic.local.invalidYear),t=r.year()+(r.year()<0?1:0);return t%4===3||t%4===-1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,ic.local.invalidYear||ic.regionalOptions[""].invalidYear),13},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,ic.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===13&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var a=this._validate(e,r,t,ic.local.invalidDate);return e=a.year(),e<0&&e++,a.day()+(a.month()-1)*30+(e-1)*365+Math.floor(e/4)+this.jdEpoch-1},fromJD:function(e){var r=Math.floor(e)+.5-this.jdEpoch,t=Math.floor((r-Math.floor((r+366)/1461))/365)+1;t<=0&&t--,r=Math.floor(e)+.5-this.newDate(t,1,1).toJD();var a=Math.floor(r/30)+1,n=r-(a-1)*30+1;return this.newDate(t,a,n)}});ic.calendars.ethiopian=ik});var Aue=z(()=>{var Au=_n(),OVe=xn();function ok(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}ok.prototype=new Au.baseCalendar;OVe(ok.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(e){var r=this._validate(e,this.minMonth,this.minDay,Au.local.invalidYear);return this._leapYear(r.year())},_leapYear:function(e){return e=e<0?e+1:e,qx(e*7+1,19)<7},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Au.local.invalidYear),this._leapYear(e.year?e.year():e)?13:12},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Au.local.invalidYear);return e=r.year(),this.toJD(e===-1?1:e+1,7,1)-this.toJD(e,7,1)},daysInMonth:function(e,r){return e.year&&(r=e.month(),e=e.year()),this._validate(e,r,this.minDay,Au.local.invalidMonth),r===12&&this.leapYear(e)||r===8&&qx(this.daysInYear(e),10)===5?30:r===9&&qx(this.daysInYear(e),10)===3?29:this.daysPerMonth[r-1]},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==6},extraInfo:function(e,r,t){var a=this._validate(e,r,t,Au.local.invalidDate);return{yearType:(this.leapYear(a)?"embolismic":"common")+" "+["deficient","regular","complete"][this.daysInYear(a)%10-3]}},toJD:function(e,r,t){var a=this._validate(e,r,t,Au.local.invalidDate);e=a.year(),r=a.month(),t=a.day();var n=e<=0?e+1:e,i=this.jdEpoch+this._delay1(n)+this._delay2(n)+t+1;if(r<7){for(var o=7;o<=this.monthsInYear(e);o++)i+=this.daysInMonth(e,o);for(var o=1;o=this.toJD(r===-1?1:r+1,7,1);)r++;for(var t=ethis.toJD(r,t,this.daysInMonth(r,t));)t++;var a=e-this.toJD(r,t,1)+1;return this.newDate(r,t,a)}});function qx(e,r){return e-r*Math.floor(e/r)}Au.calendars.hebrew=ok});var Tue=z(()=>{var u1=_n(),HVe=xn();function lk(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}lk.prototype=new u1.baseCalendar;HVe(lk.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\u012Bs","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(e){var r=this._validate(e,this.minMonth,this.minDay,u1.local.invalidYear);return(r.year()*11+14)%30<11},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInYear:function(e){return this.leapYear(e)?355:354},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,u1.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===12&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==5},toJD:function(e,r,t){var a=this._validate(e,r,t,u1.local.invalidDate);return e=a.year(),r=a.month(),t=a.day(),e=e<=0?e+1:e,t+Math.ceil(29.5*(r-1))+(e-1)*354+Math.floor((3+11*e)/30)+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e)+.5;var r=Math.floor((30*(e-this.jdEpoch)+10646)/10631);r=r<=0?r-1:r;var t=Math.min(12,Math.ceil((e-29-this.toJD(r,1,1))/29.5)+1),a=e-this.toJD(r,t,1)+1;return this.newDate(r,t,a)}});u1.calendars.islamic=lk});var Mue=z(()=>{var f1=_n(),UVe=xn();function sk(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}sk.prototype=new f1.baseCalendar;UVe(sk.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(t){var r=this._validate(t,this.minMonth,this.minDay,f1.local.invalidYear),t=r.year()<0?r.year()+1:r.year();return t%4===0},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(4-(a.dayOfWeek()||7),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,f1.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===2&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var a=this._validate(e,r,t,f1.local.invalidDate);return e=a.year(),r=a.month(),t=a.day(),e<0&&e++,r<=2&&(e--,r+=12),Math.floor(365.25*(e+4716))+Math.floor(30.6001*(r+1))+t-1524.5},fromJD:function(e){var r=Math.floor(e+.5),t=r+1524,a=Math.floor((t-122.1)/365.25),n=Math.floor(365.25*a),i=Math.floor((t-n)/30.6001),o=i-Math.floor(i<14?1:13),l=a-Math.floor(o>2?4716:4715),s=t-n-Math.floor(30.6001*i);return l<=0&&l--,this.newDate(l,o,s)}});f1.calendars.julian=sk});var Sue=z(()=>{var _o=_n(),GVe=xn();function fk(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}fk.prototype=new _o.baseCalendar;GVe(fk.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(e){return this._validate(e,this.minMonth,this.minDay,_o.local.invalidYear),!1},formatYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,_o.local.invalidYear);e=r.year();var t=Math.floor(e/400);e=e%400,e+=e<0?400:0;var a=Math.floor(e/20);return t+"."+a+"."+e%20},forYear:function(e){if(e=e.split("."),e.length<3)throw"Invalid Mayan year";for(var r=0,t=0;t19||t>0&&a<0)throw"Invalid Mayan year";r=r*20+a}return r},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,_o.local.invalidYear),18},weekOfYear:function(e,r,t){return this._validate(e,r,t,_o.local.invalidDate),0},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,_o.local.invalidYear),360},daysInMonth:function(e,r){return this._validate(e,r,this.minDay,_o.local.invalidMonth),20},daysInWeek:function(){return 5},dayOfWeek:function(e,r,t){var a=this._validate(e,r,t,_o.local.invalidDate);return a.day()},weekDay:function(e,r,t){return this._validate(e,r,t,_o.local.invalidDate),!0},extraInfo:function(e,r,t){var a=this._validate(e,r,t,_o.local.invalidDate),n=a.toJD(),i=this._toHaab(n),o=this._toTzolkin(n);return{haabMonthName:this.local.haabMonths[i[0]-1],haabMonth:i[0],haabDay:i[1],tzolkinDayName:this.local.tzolkinMonths[o[0]-1],tzolkinDay:o[0],tzolkinTrecena:o[1]}},_toHaab:function(e){e-=this.jdEpoch;var r=uk(e+8+340,365);return[Math.floor(r/20)+1,uk(r,20)]},_toTzolkin:function(e){return e-=this.jdEpoch,[kue(e+20,20),kue(e+4,13)]},toJD:function(e,r,t){var a=this._validate(e,r,t,_o.local.invalidDate);return a.day()+a.month()*20+a.year()*360+this.jdEpoch},fromJD:function(e){e=Math.floor(e)+.5-this.jdEpoch;var r=Math.floor(e/360);e=e%360,e+=e<0?360:0;var t=Math.floor(e/20),a=e%20;return this.newDate(r,t,a)}});function uk(e,r){return e-r*Math.floor(e/r)}function kue(e,r){return uk(e-1,r)+1}_o.calendars.mayan=fk});var Lue=z(()=>{var oc=_n(),YVe=xn();function ck(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}ck.prototype=new oc.baseCalendar;var que=oc.instance("gregorian");YVe(ck.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(e){var r=this._validate(e,this.minMonth,this.minDay,oc.local.invalidYear||oc.regionalOptions[""].invalidYear);return que.leapYear(r.year()+(r.year()<1?1:0)+1469)},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(1-(a.dayOfWeek()||7),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,oc.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===12&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(n,r,t){var a=this._validate(n,r,t,oc.local.invalidMonth),n=a.year();n<0&&n++;for(var i=a.day(),o=1;o=this.toJD(r+1,1,1);)r++;for(var t=e-Math.floor(this.toJD(r,1,1)+.5)+1,a=1;t>this.daysInMonth(r,a);)t-=this.daysInMonth(r,a),a++;return this.newDate(r,a,t)}});oc.calendars.nanakshahi=ck});var Cue=z(()=>{var lc=_n(),VVe=xn();function vk(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}vk.prototype=new lc.baseCalendar;VVe(vk.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(e){return this.daysInYear(e)!==this.daysPerYear},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,lc.local.invalidYear);if(e=r.year(),typeof this.NEPALI_CALENDAR_DATA[e]=="undefined")return this.daysPerYear;for(var t=0,a=this.minMonth;a<=12;a++)t+=this.NEPALI_CALENDAR_DATA[e][a];return t},daysInMonth:function(e,r){return e.year&&(r=e.month(),e=e.year()),this._validate(e,r,this.minDay,lc.local.invalidMonth),typeof this.NEPALI_CALENDAR_DATA[e]=="undefined"?this.daysPerMonth[r-1]:this.NEPALI_CALENDAR_DATA[e][r]},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==6},toJD:function(e,r,t){var a=this._validate(e,r,t,lc.local.invalidDate);e=a.year(),r=a.month(),t=a.day();var n=lc.instance(),i=0,o=r,l=e;this._createMissingCalendarData(e);var s=e-(o>9||o===9&&t>=this.NEPALI_CALENDAR_DATA[l][0]?56:57);for(r!==9&&(i=t,o--);o!==9;)o<=0&&(o=12,l--),i+=this.NEPALI_CALENDAR_DATA[l][o],o--;return r===9?(i+=t-this.NEPALI_CALENDAR_DATA[l][0],i<0&&(i+=n.daysInYear(s))):i+=this.NEPALI_CALENDAR_DATA[l][9]-this.NEPALI_CALENDAR_DATA[l][0],n.newDate(s,1,1).add(i,"d").toJD()},fromJD:function(e){var r=lc.instance(),t=r.fromJD(e),a=t.year(),n=t.dayOfYear(),i=a+56;this._createMissingCalendarData(i);for(var o=9,l=this.NEPALI_CALENDAR_DATA[i][0],s=this.NEPALI_CALENDAR_DATA[i][o]-l+1;n>s;)o++,o>12&&(o=1,i++),s+=this.NEPALI_CALENDAR_DATA[i][o];var u=this.NEPALI_CALENDAR_DATA[i][o]-(s-n);return this.newDate(i,o,u)},_createMissingCalendarData:function(e){var r=this.daysPerMonth.slice(0);r.unshift(17);for(var t=e-1;t{var Nv=_n(),jVe=xn();function Cx(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}function Lx(e){var r=e-475;e<0&&r++;var t=.242197,a=t*r,n=t*(r+1),i=a-Math.floor(a),o=n-Math.floor(n);return i>o}Cx.prototype=new Nv.baseCalendar;jVe(Cx.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","Dey","Bahman","Esfand"],monthNamesShort:["Far","Ord","Kho","Tir","Mor","Sha","Meh","Aba","Aza","Dey","Bah","Esf"],dayNames:["Yekshanbeh","Doshanbeh","Seshanbeh","Chah\u0101rshanbeh","Panjshanbeh","Jom'eh","Shanbeh"],dayNamesShort:["Yek","Do","Se","Cha","Panj","Jom","Sha"],dayNamesMin:["Ye","Do","Se","Ch","Pa","Jo","Sh"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Nv.local.invalidYear);return Lx(r.year())},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-((a.dayOfWeek()+1)%7),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Nv.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===12&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==5},toJD:function(e,r,t){var a=this._validate(e,r,t,Nv.local.invalidDate);e=a.year(),r=a.month(),t=a.day();var n=0;if(e>0)for(var i=1;i0?e-1:e)*365+n+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e)+.5;var r=475+(e-this.toJD(475,1,1))/365.242197,t=Math.floor(r);t<=0&&t--,e>this.toJD(t,12,Lx(t)?30:29)&&(t++,t===0&&t++);var a=e-this.toJD(t,1,1)+1,n=a<=186?Math.ceil(a/31):Math.ceil((a-6)/30),i=e-this.toJD(t,n,1)+1;return this.newDate(t,n,i)}});Nv.calendars.persian=Cx;Nv.calendars.jalali=Cx});var Eue=z(()=>{var sc=_n(),WVe=xn(),Dx=sc.instance();function hk(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}hk.prototype=new sc.baseCalendar;WVe(hk.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(t){var r=this._validate(t,this.minMonth,this.minDay,sc.local.invalidYear),t=this._t2gYear(r.year());return Dx.leapYear(t)},weekOfYear:function(n,r,t){var a=this._validate(n,this.minMonth,this.minDay,sc.local.invalidYear),n=this._t2gYear(a.year());return Dx.weekOfYear(n,a.month(),a.day())},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,sc.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===2&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(n,r,t){var a=this._validate(n,r,t,sc.local.invalidDate),n=this._t2gYear(a.year());return Dx.toJD(n,a.month(),a.day())},fromJD:function(e){var r=Dx.fromJD(e),t=this._g2tYear(r.year());return this.newDate(t,r.month(),r.day())},_t2gYear:function(e){return e+this.yearsOffset+(e>=-this.yearsOffset&&e<=-1?1:0)},_g2tYear:function(e){return e-this.yearsOffset-(e>=1&&e<=this.yearsOffset?1:0)}});sc.calendars.taiwan=hk});var Pue=z(()=>{var uc=_n(),XVe=xn(),Ex=uc.instance();function dk(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}dk.prototype=new uc.baseCalendar;XVe(dk.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(t){var r=this._validate(t,this.minMonth,this.minDay,uc.local.invalidYear),t=this._t2gYear(r.year());return Ex.leapYear(t)},weekOfYear:function(n,r,t){var a=this._validate(n,this.minMonth,this.minDay,uc.local.invalidYear),n=this._t2gYear(a.year());return Ex.weekOfYear(n,a.month(),a.day())},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,uc.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===2&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(n,r,t){var a=this._validate(n,r,t,uc.local.invalidDate),n=this._t2gYear(a.year());return Ex.toJD(n,a.month(),a.day())},fromJD:function(e){var r=Ex.fromJD(e),t=this._g2tYear(r.year());return this.newDate(t,r.month(),r.day())},_t2gYear:function(e){return e-this.yearsOffset-(e>=1&&e<=this.yearsOffset?1:0)},_g2tYear:function(e){return e+this.yearsOffset+(e>=-this.yearsOffset&&e<=-1?1:0)}});uc.calendars.thai=dk});var Rue=z(()=>{var fc=_n(),ZVe=xn();function pk(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}pk.prototype=new fc.baseCalendar;ZVe(pk.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\u0101th\u0101\u2019","Yawm al-Arba\u2018\u0101\u2019","Yawm al-Kham\u012Bs","Yawm al-Jum\u2018a","Yawm al-Sabt"],dayNamesMin:["Ah","Ith","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!0}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,fc.local.invalidYear);return this.daysInYear(r.year())===355},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInYear:function(e){for(var r=0,t=1;t<=12;t++)r+=this.daysInMonth(e,t);return r},daysInMonth:function(e,r){for(var t=this._validate(e,r,this.minDay,fc.local.invalidMonth),a=t.toJD()-24e5+.5,n=0,i=0;ia)return Tu[n]-Tu[n-1];n++}return 30},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==5},toJD:function(e,r,t){var a=this._validate(e,r,t,fc.local.invalidDate),n=12*(a.year()-1)+a.month()-15292,i=a.day()+Tu[n-1]-1;return i+24e5-.5},fromJD:function(e){for(var r=e-24e5+.5,t=0,a=0;ar);a++)t++;var n=t+15292,i=Math.floor((n-1)/12),o=i+1,l=n-12*i,s=r-Tu[t-1]+1;return this.newDate(o,l,s)},isValid:function(e,r,t){var a=fc.baseCalendar.prototype.isValid.apply(this,arguments);return a&&(e=e.year!=null?e.year:e,a=e>=1276&&e<=1500),a},_validate:function(e,r,t,a){var n=fc.baseCalendar.prototype._validate.apply(this,arguments);if(n.year<1276||n.year>1500)throw a.replace(/\{0\}/,this.local.name);return n}});fc.calendars.ummalqura=pk;var Tu=[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]});var zue=z((anr,Fue)=>{"use strict";Fue.exports=_n();gue();bue();xue();_ue();wue();Aue();Tue();Mue();Sue();Lue();Cue();Due();Eue();Pue();Rue()});var Gue=z((nnr,Uue)=>{"use strict";var Iue=zue(),c1=ke(),Bue=(jt(),ze(Zt)),$Ve=Bue.EPOCHJD,JVe=Bue.ONEDAY,gk={valType:"enumerated",values:c1.sortObjectKeys(Iue.calendars),editType:"calc",dflt:"gregorian"},Oue=function(e,r,t,a){var n={};return n[t]=gk,c1.coerce(e,r,n,t,a)},KVe=function(e,r,t,a){for(var n=0;n{"use strict";Yue.exports=Gue()});var nje=z((onr,Wue)=>{var jue=SX();jue.register([LZ(),m$(),NJ(),nK(),gK(),gQ(),EQ(),_ee(),$ee(),wse(),hue(),Vue()]);Wue.exports=jue});return nje();})(); +`),lYe=Ole("IHDR");Hle.exports=function(e){if(!(e.length<24)&&Ile(e,0,oYe)&&Ile(e,12,lYe))return{width:Ble(e,16),height:Ble(e,20),type:"png",mime:"image/png",wUnits:"px",hUnits:"px"}}});var Vle=z((sar,Yle)=>{"use strict";var sYe=Tt().str2arr,uYe=Tt().sliceEq,Gle=Tt().readUInt32BE,fYe=sYe("8BPS\0");Yle.exports=function(e){if(!(e.length<22)&&uYe(e,0,fYe))return{width:Gle(e,18),height:Gle(e,14),type:"psd",mime:"image/vnd.adobe.photoshop",wUnits:"px",hUnits:"px"}}});var ZM=z(XM=>{"use strict";XM.MAX_DATA_LENGTH=1024*10;var WM="[a-zA-Z_:][a-zA-Z0-9:._-]*",Wle="[^\"'=<>`\\x00-\\x20]+",cYe="'[^']*'",vYe='"[^"]*"',hYe="(?:"+Wle+"|"+cYe+"|"+vYe+")",dYe="(?:\\s+"+WM+"(?:\\s*=\\s*"+hYe+")?)",pYe="<[?][\\s\\S]*?[?]>",mYe="",yYe="",gYe="]*(?:\\[[\\s\\S]*?\\][^>]*)?>",bYe=new RegExp("^(?:\\s+|"+pYe+"|"+mYe+"|"+yYe+"|"+gYe+")*"),xYe=new RegExp("^<("+WM+")("+dYe+"*)\\s*/?>"),jle=new RegExp("\\s+("+WM+")(?:\\s*=\\s*(?:("+Wle+`)|'([^']*)'|"([^"]*)"))?`,"g"),_Ye=/in$|mm$|cm$|pt$|pc$|px$|em$|ex$/;function Rv(e){return typeof e=="number"&&isFinite(e)&&e>0}function Fl(e){var r=e.slice(-2),t=r.match(_Ye);return t===null?"px":t[0]}XM.parse=function(e){var r=e.match(bYe)[0],t=xYe.exec(r.length?e.slice(r.length):e);if(t){var a=t[1];if(!(a!=="svg"&&a.slice(-4)!==":svg")){var n={},i;for(jle.lastIndex=0;(i=jle.exec(t[2]))!==null;)n[i[1]]=i[2]!==void 0?i[2]:i[3]!==void 0?i[3]:i[4];var o=n.width,l=n.height,s=n.viewBox||n.viewbox;o&&o.indexOf("%")!==-1&&(o=void 0),l&&l.indexOf("%")!==-1&&(l=void 0);var u=parseFloat(o),f=parseFloat(l);if(o&&l)return!Rv(u)||!Rv(f)?void 0:{width:u,height:f,type:"svg",mime:"image/svg+xml",wUnits:Fl(o),hUnits:Fl(l)};var c=(s||"").trim().split(/[\s,]+/),v=parseFloat(c[2]),d=parseFloat(c[3]);if(!(!Rv(v)||!Rv(d))&&Fl(c[2])===Fl(c[3])){var p=v/d;return o?Rv(u)?{width:u,height:u/p,type:"svg",mime:"image/svg+xml",wUnits:Fl(o),hUnits:Fl(o)}:void 0:l?Rv(f)?{width:f*p,height:f,type:"svg",mime:"image/svg+xml",wUnits:Fl(l),hUnits:Fl(l)}:void 0:{width:v,height:d,type:"svg",mime:"image/svg+xml",wUnits:Fl(c[2]),hUnits:Fl(c[3])}}}}}});var Zle=z((far,Xle)=>{"use strict";var wYe=ZM().parse,TYe=ZM().MAX_DATA_LENGTH;Xle.exports=function(e){var r=0;e[0]===239&&e[1]===187&&e[2]===191&&(r=3);for(var t="",a=Math.min(e.length,r+TYe),n=r;n{"use strict";var Kle=Tt().str2arr,$le=Tt().sliceEq,AYe=Tt().readUInt16LE,MYe=Tt().readUInt16BE,kYe=Tt().readUInt32LE,SYe=Tt().readUInt32BE,qYe=Kle("II*\0"),LYe=Kle("MM\0*");function wx(e,r,t){return t?MYe(e,r):AYe(e,r)}function $M(e,r,t){return t?SYe(e,r):kYe(e,r)}function Jle(e,r,t){var a=wx(e,r+2,t),n=$M(e,r+4,t);return n!==1||a!==3&&a!==4?null:a===3?wx(e,r+8,t):$M(e,r+8,t)}Qle.exports=function(e){if(!(e.length<8)&&!(!$le(e,0,qYe)&&!$le(e,0,LYe))){var r=e[0]===77,t=$M(e,4,r)-8;if(!(t<0)){var a=t+8;if(!(e.length-a<2)){var n=wx(e,a+0,r)*12;if(!(n<=0)&&(a+=2,!(e.length-a{"use strict";var ase=Tt().str2arr,rse=Tt().sliceEq,tse=Tt().readUInt16LE,JM=Tt().readUInt32LE,CYe=xx(),DYe=ase("RIFF"),EYe=ase("WEBP");function PYe(e,r){if(!(e[r+3]!==157||e[r+4]!==1||e[r+5]!==42))return{width:tse(e,r+6)&16383,height:tse(e,r+8)&16383,type:"webp",mime:"image/webp",wUnits:"px",hUnits:"px"}}function RYe(e,r){if(e[r]===47){var t=JM(e,r+1);return{width:(t&16383)+1,height:(t>>14&16383)+1,type:"webp",mime:"image/webp",wUnits:"px",hUnits:"px"}}}function FYe(e,r){return{width:(e[r+6]<<16|e[r+5]<<8|e[r+4])+1,height:(e[r+9]<<16|e[r+8]<<8|e[r+7])+1,type:"webp",mime:"image/webp",wUnits:"px",hUnits:"px"}}nse.exports=function(e){if(!(e.length<16)&&!(!rse(e,0,DYe)||!rse(e,8,EYe))){var r=12,t=null,a=0,n=JM(e,4)+8;if(!(n>e.length)){for(;r+8=10?t=t||PYe(e,r+8):i==="VP8L"&&o>=5?t=t||RYe(e,r+8):i==="VP8X"&&o>=10?t=t||FYe(e,r+8):i==="EXIF"&&(a=CYe.get_orientation(e.slice(r+8,r+8+o)),r=1/0),r+=8+o}if(t)return a>0&&(t.orientation=a),t}}}});var lse=z((dar,ose)=>{"use strict";ose.exports={avif:Ale(),bmp:qle(),gif:Ple(),ico:Fle(),jpeg:Nle(),png:Ule(),psd:Vle(),svg:Zle(),tiff:ese(),webp:ise()}});var sse=z((par,QM)=>{"use strict";var KM=lse();function zYe(e){for(var r=Object.keys(KM),t=0;t0&&a.height>0?a:null}return null}QM.exports=function(r){return zYe(r)};QM.exports.parsers=KM});var fse=z(use=>{"use strict";var NYe=sse(),IYe=ts().IMAGE_URL_PREFIX,BYe=hv().Buffer;use.getImageSize=function(e){var r=e.replace(IYe,""),t=new BYe(r,"base64");return NYe(t)}});var hse=z((yar,vse)=>{"use strict";var cse=ke(),OYe=(sv(),Ne(w2)),HYe=Br(),Tx=jr(),UYe=ke().maxRowLength,GYe=fse().getImageSize;vse.exports=function(r,t){var a,n;if(t._hasZ)a=t.z.length,n=UYe(t.z);else if(t._hasSource){var i=GYe(t.source);a=i.height,n=i.width}var o=Tx.getFromId(r,t.xaxis||"x"),l=Tx.getFromId(r,t.yaxis||"y"),s=o.d2c(t.x0)-t.dx/2,u=l.d2c(t.y0)-t.dy/2,f,c=[s,s+n*t.dx],v=[u,u+a*t.dy];if(o&&o.type==="log")for(f=0;f{"use strict";var WYe=Pr(),oc=ke(),dse=oc.strTranslate,XYe=(Wl(),Ne(jl)),ZYe=(sv(),Ne(w2)),$Ye=eT(),JYe=(w3(),Ne(_3)).STYLE;pse.exports=function(r,t,a,n){var i=t.xaxis,o=t.yaxis,l=!r._context._exportedPlot&&$Ye();oc.makeTraceGroups(n,a,"im").each(function(s){var u=WYe.select(this),f=s[0],c=f.trace,v=(c.zsmooth==="fast"||c.zsmooth===!1&&l)&&!c._hasZ&&c._hasSource&&i.type==="linear"&&o.type==="linear";c._realImage=v;var d=f.z,p=f.x0,m=f.y0,y=f.w,b=f.h,T=c.dx,w=c.dy,x,_,k,M,S,C;for(C=0;x===void 0&&C0;)_=i.c2p(p+C*T),C--;for(C=0;M===void 0&&C0;)S=o.c2p(m+C*w),C--;if(_j[0];if(W||Y){var J=x+P/2,re=M+R/2;G+="transform:"+dse(J+"px",re+"px")+"scale("+(W?-1:1)+","+(Y?-1:1)+")"+dse(-J+"px",-re+"px")+";"}}U.attr("style",G);var le=new Promise(function(ne){if(c._hasZ)ne();else if(c._hasSource)if(c._canvas&&c._canvas.el.width===y&&c._canvas.el.height===b&&c._canvas.source===c.source)ne();else{var $=document.createElement("canvas");$.width=y,$.height=b;var ce=$.getContext("2d",{willReadFrequently:!0});c._image=c._image||new Image;var te=c._image;te.onload=function(){ce.drawImage(te,0,0),c._canvas={el:$,source:c.source},ne()},te.setAttribute("src",c.source)}}).then(function(){var ne,$;if(c._hasZ)$=N(function(ge,se){var oe=d[se][ge];return oc.isTypedArray(oe)&&(oe=Array.from(oe)),oe}),ne=$.toDataURL("image/png");else if(c._hasSource)if(v)ne=c.source;else{var ce=c._canvas.el.getContext("2d",{willReadFrequently:!0}),te=ce.getImageData(0,0,y,b).data;$=N(function(ge,se){var oe=4*(se*y+ge);return[te[oe],te[oe+1],te[oe+2],te[oe+3]]}),ne=$.toDataURL("image/png")}U.attr({"xlink:href":ne,height:R,width:P,x,y:M})});r._promises.push(le)})}});var gse=z((bar,yse)=>{"use strict";var KYe=Pr();yse.exports=function(r){KYe.select(r).selectAll(".im image").style("opacity",function(t){return t[0].trace.opacity})}});var wse=z((xar,_se)=>{"use strict";var bse=Yn(),xse=ke(),Ax=xse.isArrayOrTypedArray,QYe=(sv(),Ne(w2));_se.exports=function(r,t,a){var n=r.cd[0],i=n.trace,o=r.xa,l=r.ya;if(!(bse.inbox(t-n.x0,t-(n.x0+n.w*i.dx),0)>0||bse.inbox(a-n.y0,a-(n.y0+n.h*i.dy),0)>0)){var s=Math.floor((t-n.x0)/i.dx),u=Math.floor(Math.abs(a-n.y0)/i.dy),f;if(i._hasZ?f=n.z[u][s]:i._hasSource&&(f=i._canvas.el.getContext("2d",{willReadFrequently:!0}).getImageData(s,u,1,1).data),!!f){var c=n.hi||i.hoverinfo,v;if(c){var d=c.split("+");d.indexOf("all")!==-1&&(d=["color"]),d.indexOf("color")!==-1&&(v=!0)}var p=QYe.colormodel[i.colormodel],m=p.colormodel||i.colormodel,y=m.length,b=i._scaler(f),T=p.suffix,w=[];(i.hovertemplate||v)&&(w.push("["+[b[0]+T[0],b[1]+T[1],b[2]+T[2]].join(", ")),y===4&&w.push(", "+b[3]+T[3]),w.push("]"),w=w.join(""),r.extraText=m.toUpperCase()+": "+w);var x;Ax(i.hovertext)&&Ax(i.hovertext[u])?x=i.hovertext[u][s]:Ax(i.text)&&Ax(i.text[u])&&(x=i.text[u][s]);var _=l.c2p(n.y0+(u+.5)*i.dy),k=n.x0+(s+.5)*i.dx,M=n.y0+(u+.5)*i.dy,S="["+f.slice(0,i.colormodel.length).join(", ")+"]";return[xse.extendFlat(r,{index:[u,s],x0:o.c2p(n.x0+s*i.dx),x1:o.c2p(n.x0+(s+1)*i.dx),y0:_,y1:_,color:b,xVal:k,xLabelVal:k,yVal:M,yLabelVal:M,zLabelVal:S,text:x,hovertemplateLabels:{zLabel:S,colorLabel:w,"color[0]Label":b[0]+T[0],"color[1]Label":b[1]+T[1],"color[2]Label":b[2]+T[2],"color[3]Label":b[3]+T[3]}})]}}}});var Ase=z((_ar,Tse)=>{"use strict";Tse.exports=function(r,t){return"xVal"in t&&(r.x=t.xVal),"yVal"in t&&(r.y=t.yVal),t.xa&&(r.xaxis=t.xa),t.ya&&(r.yaxis=t.ya),r.color=t.color,r.colormodel=t.trace.colormodel,r.z||(r.z=t.color),r}});var kse=z((war,Mse)=>{"use strict";Mse.exports={attributes:(XT(),Ne(WT)).default,supplyDefaults:cre(),calc:hse(),plot:mse(),style:gse(),hoverPoints:wse(),eventData:Ase(),moduleType:"trace",name:"image",basePlotModule:lo(),categories:["cartesian","svg","2dMap","noSortingByValue"],animatable:!1,meta:{}}});var qse=z((Tar,Sse)=>{"use strict";Sse.exports=kse()});var ek=z((Aar,Cse)=>{"use strict";var Mx=Gn(),eVe=H0().attributes,rVe=Ia(),tVe=Hi(),{hovertemplateAttrs:aVe,texttemplateAttrs:nVe,templatefallbackAttrs:Lse}=gi(),wu=St().extendFlat,iVe=Ui().pattern,kx=rVe({editType:"plot",arrayOk:!0,colorEditType:"plot"});Cse.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:tVe.defaultLine,arrayOk:!0,editType:"style"},width:{valType:"number",min:0,dflt:0,arrayOk:!0,editType:"style"},editType:"calc"},pattern:iVe,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:wu({},Mx.hoverinfo,{flags:["label","text","value","percent","name"]}),hovertemplate:aVe({},{keys:["label","color","value","percent","text"]}),hovertemplatefallback:Lse(),texttemplate:nVe({editType:"plot"},{keys:["label","color","value","percent","text"]}),texttemplatefallback:Lse({editType:"plot"}),textposition:{valType:"enumerated",values:["inside","outside","auto","none"],dflt:"auto",arrayOk:!0,editType:"plot"},textfont:wu({},kx,{}),insidetextorientation:{valType:"enumerated",values:["horizontal","radial","tangential","auto"],dflt:"auto",editType:"plot"},insidetextfont:wu({},kx,{}),outsidetextfont:wu({},kx,{}),automargin:{valType:"boolean",dflt:!1,editType:"plot"},showlegend:wu({},Mx.showlegend,{arrayOk:!0}),legend:wu({},Mx.legend,{arrayOk:!0}),legendrank:wu({},Mx.legendrank,{arrayOk:!0}),title:{text:{valType:"string",dflt:"",editType:"plot"},font:wu({},kx,{}),position:{valType:"enumerated",values:["top left","top center","top right","middle center","bottom left","bottom center","bottom right"],editType:"plot"},editType:"plot"},domain:eVe({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"}}});var Rse=z((Mar,Pse)=>{"use strict";var oVe=Br(),u1=ke(),lVe=ek(),sVe=H0().defaults,uVe=Nf().handleText,fVe=ke().coercePattern;function Dse(e,r){var t=u1.isArrayOrTypedArray(e),a=u1.isArrayOrTypedArray(r),n=Math.min(t?e.length:1/0,a?r.length:1/0);if(isFinite(n)||(n=0),n&&a){for(var i,o=0;o0){i=!0;break}}i||(n=0)}return{hasLabels:t,hasValues:a,len:n}}function Ese(e,r,t,a,n){var i=a("marker.line.width");i&&a("marker.line.color",n?void 0:t.paper_bgcolor);var o=a("marker.colors");fVe(a,"marker.pattern",o),e.marker&&!r.marker.pattern.fgcolor&&(r.marker.pattern.fgcolor=e.marker.colors),r.marker.pattern.bgcolor||(r.marker.pattern.bgcolor=t.paper_bgcolor)}function cVe(e,r,t,a){function n(T,w){return u1.coerce(e,r,lVe,T,w)}var i=n("labels"),o=n("values"),l=Dse(i,o),s=l.len;if(r._hasLabels=l.hasLabels,r._hasValues=l.hasValues,!r._hasLabels&&r._hasValues&&(n("label0"),n("dlabel")),!s){r.visible=!1;return}r._length=s,Ese(e,r,a,n,!0),n("scalegroup");var u=n("text"),f=n("texttemplate");n("texttemplatefallback");var c;if(f||(c=n("textinfo",u1.isArrayOrTypedArray(u)?"text+percent":"percent")),n("hovertext"),n("hovertemplate"),n("hovertemplatefallback"),f||c&&c!=="none"){var v=n("textposition");uVe(e,r,a,n,v,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1});var d=Array.isArray(v)||v==="auto",p=d||v==="outside";p&&n("automargin"),(v==="inside"||v==="auto"||Array.isArray(v))&&n("insidetextorientation")}else c==="none"&&n("textposition","none");sVe(r,a,n);var m=n("hole"),y=n("title.text");if(y){var b=n("title.position",m?"middle center":"top center");!m&&b==="middle center"&&(r.title.position="top center"),u1.coerceFont(n,"title.font",a.font)}n("sort"),n("direction"),n("rotation"),n("pull")}Pse.exports={handleLabelsAndValues:Dse,handleMarkerDefaults:Ese,supplyDefaults:cVe}});var rk=z((kar,Fse)=>{"use strict";Fse.exports={hiddenlabels:{valType:"data_array",editType:"calc"},piecolorway:{valType:"colorlist",editType:"calc"},extendpiecolors:{valType:"boolean",dflt:!0,editType:"calc"}}});var Nse=z((Sar,zse)=>{"use strict";var vVe=ke(),hVe=rk();zse.exports=function(r,t){function a(n,i){return vVe.coerce(r,t,hVe,n,i)}a("hiddenlabels"),a("piecolorway",t.colorway),a("extendpiecolors")}});var tk=z((qar,Ose)=>{"use strict";var dVe=Br(),Fv=qr(),pVe={};function mVe(e,r){var t=[],a=e._fullLayout,n=a.hiddenlabels||[],i=r.labels,o=r.marker.colors||[],l=r.values,s=r._length,u=r._hasValues&&s,f,c;if(r.dlabel)for(i=new Array(s),f=0;f=0});var x=r.type==="funnelarea"?m:r.sort;return x&&t.sort(function(_,k){return k.v-_.v}),t[0]&&(t[0].vTotal=p),t}function Ise(e){return function(t,a){if(!t||!Fv.isValid(t))return!1;let n=Fv.rgbaString(t);return e[a]||(e[a]=n),n}}function yVe(e,r){var t=(r||{}).type;t||(t="pie");var a=e._fullLayout,n=e.calcdata,i=a[t+"colorway"],o=a["_"+t+"colormap"];a["extend"+t+"colors"]&&(i=Bse(i,pVe));for(var l=0,s=0;s{"use strict";var gVe=No().appendArrayMultiPointValues;Hse.exports=function(r,t){var a={curveNumber:t.index,pointNumbers:r.pts,data:t._input,fullData:t,label:r.label,color:r.color,value:r.v,percent:r.percent,text:r.text,bbox:r.bbox,v:r.v};return r.pts.length===1&&(a.pointNumber=a.i=r.pts[0]),gVe(a,t,r.pts),t.type==="funnelarea"&&(delete a.v,delete a.i),a}});var fue=z((Car,uue)=>{"use strict";var di=Pr(),bVe=_a(),Sx=Yn(),Xse=qr(),ms=et(),pn=ke(),xVe=pn.strScale,Gse=pn.strTranslate,ak=Da(),Zse=a2(),_Ve=Zse.recordMinTextSize,wVe=Zse.clearMinTextSize,$se=(Id(),Ne(Nd)).TEXTPAD,Dr=Gm(),qx=Use(),Yse=ke().isValidTextValue;function TVe(e,r){var t=e._context.staticPlot,a=e._fullLayout,n=a._size;wVe("pie",a),Qse(r,e),oue(r,n);var i=pn.makeTraceGroups(a._pielayer,r,"trace").each(function(o){var l=di.select(this),s=o[0],u=s.trace;EVe(o),l.attr("stroke-linejoin","round"),l.each(function(){var f=di.select(this).selectAll("g.slice").data(o);f.enter().append("g").classed("slice",!0),f.exit().remove();var c=[[[],[]],[[],[]]],v=!1;f.each(function(x,_){if(x.hidden){di.select(this).selectAll("path,g").remove();return}x.pointNumber=x.i,x.curveNumber=u.index,c[x.pxmid[1]<0?0:1][x.pxmid[0]<0?0:1].push(x);var k=s.cx,M=s.cy,S=di.select(this),C=S.selectAll("path.surface").data([x]);if(C.enter().append("path").classed("surface",!0).style({"pointer-events":t?"none":"all"}),S.call(Jse,e,o),u.pull){var E=+Dr.castOption(u.pull,x.pts)||0;E>0&&(k+=E*x.pxmid[0],M+=E*x.pxmid[1])}x.cxFinal=k,x.cyFinal=M;function P(V,j,W,Y){var J=Y*(j[0]-V[0]),re=Y*(j[1]-V[1]);return"a"+Y*s.r+","+Y*s.r+" 0 "+x.largeArc+(W?" 1 ":" 0 ")+J+","+re}var R=u.hole;if(x.v===s.vTotal){var I="M"+(k+x.px0[0])+","+(M+x.px0[1])+P(x.px0,x.pxmid,!0,1)+P(x.pxmid,x.px0,!0,1)+"Z";R?C.attr("d","M"+(k+R*x.px0[0])+","+(M+R*x.px0[1])+P(x.px0,x.pxmid,!1,R)+P(x.pxmid,x.px0,!1,R)+"Z"+I):C.attr("d",I)}else{var B=P(x.px0,x.px1,!0,1);if(R){var N=1-R;C.attr("d","M"+(k+R*x.px1[0])+","+(M+R*x.px1[1])+P(x.px1,x.px0,!1,R)+"l"+N*x.px0[0]+","+N*x.px0[1]+B+"Z")}else C.attr("d","M"+k+","+M+"l"+x.px0[0]+","+x.px0[1]+B+"Z")}lue(e,x,s);var U=Dr.castOption(u.textposition,x.pts),G=S.selectAll("g.slicetext").data(x.text&&U!=="none"?[0]:[]);G.enter().append("g").classed("slicetext",!0),G.exit().remove(),G.each(function(){var V=pn.ensureSingle(di.select(this),"text","",function($){$.attr("data-notex",1)}),j=pn.ensureUniformFontSize(e,U==="outside"?MVe(u,x,a.font):Kse(u,x,a.font));V.text(x.text).attr({class:"slicetext",transform:"","text-anchor":"middle"}).call(ms.font,j).call(ak.convertToTspans,e);var W=ms.bBox(V.node()),Y;if(U==="outside")Y=Wse(W,x);else if(Y=eue(W,x,s),U==="auto"&&Y.scale<1){var J=pn.ensureUniformFontSize(e,u.outsidetextfont);V.call(ms.font,J),W=ms.bBox(V.node()),Y=Wse(W,x)}var re=Y.textPosAngle,le=re===void 0?x.pxmid:Lx(s.r,re);if(Y.targetX=k+le[0]*Y.rCenter+(Y.x||0),Y.targetY=M+le[1]*Y.rCenter+(Y.y||0),sue(Y,W),Y.outside){var ne=Y.targetY;x.yLabelMin=ne-W.height/2,x.yLabelMid=ne,x.yLabelMax=ne+W.height/2,x.labelExtraX=0,x.labelExtraY=0,v=!0}Y.fontSize=j.size,_Ve(u.type,Y,a),o[_].transform=Y,pn.setTransormAndDisplay(V,Y)})});var d=di.select(this).selectAll("g.titletext").data(u.title.text?[0]:[]);if(d.enter().append("g").classed("titletext",!0),d.exit().remove(),d.each(function(){var x=pn.ensureSingle(di.select(this),"text","",function(M){M.attr("data-notex",1)}),_=u.title.text;u._meta&&(_=pn.templateString(_,u._meta)),x.text(_).attr({class:"titletext",transform:"","text-anchor":"middle"}).call(ms.font,u.title.font).call(ak.convertToTspans,e);var k;u.title.position==="middle center"?k=qVe(s):k=nue(s,n),x.attr("transform",Gse(k.x,k.y)+xVe(Math.min(1,k.scale))+Gse(k.tx,k.ty))}),v&&CVe(c,u),AVe(f,u),v&&u.automargin){var p=ms.bBox(l.node()),m=u.domain,y=n.w*(m.x[1]-m.x[0]),b=n.h*(m.y[1]-m.y[0]),T=(.5*y-s.r)/n.w,w=(.5*b-s.r)/n.h;bVe.autoMargin(e,"pie."+u.uid+".automargin",{xl:m.x[0]-T,xr:m.x[1]+T,yb:m.y[0]-w,yt:m.y[1]+w,l:Math.max(s.cx-s.r-p.left,0),r:Math.max(p.right-(s.cx+s.r),0),b:Math.max(p.bottom-(s.cy+s.r),0),t:Math.max(s.cy-s.r-p.top,0),pad:5})}})});setTimeout(function(){i.selectAll("tspan").each(function(){var o=di.select(this);o.attr("dy")&&o.attr("dy",o.attr("dy"))})},0)}function AVe(e,r){e.each(function(t){var a=di.select(this);if(!t.labelExtraX&&!t.labelExtraY){a.select("path.textline").remove();return}var n=a.select("g.slicetext text");t.transform.targetX+=t.labelExtraX,t.transform.targetY+=t.labelExtraY,pn.setTransormAndDisplay(n,t.transform);var i=t.cxFinal+t.pxmid[0],o=t.cyFinal+t.pxmid[1],l="M"+i+","+o,s=(t.yLabelMax-t.yLabelMin)*(t.pxmid[0]<0?-1:1)/4;if(t.labelExtraX){var u=t.labelExtraX*t.pxmid[1]/t.pxmid[0],f=t.yLabelMid+t.labelExtraY-(t.cyFinal+t.pxmid[1]);Math.abs(u)>Math.abs(f)?l+="l"+f*t.pxmid[0]/t.pxmid[1]+","+f+"H"+(i+t.labelExtraX+s):l+="l"+t.labelExtraX+","+u+"v"+(f-u)+"h"+s}else l+="V"+(t.yLabelMid+t.labelExtraY)+"h"+s;pn.ensureSingle(a,"path","textline").call(Xse.stroke,r.outsidetextfont.color).attr({"stroke-width":Math.min(2,r.outsidetextfont.size/8),d:l,fill:"none"})})}function Jse(e,r,t){var a=t[0],n=a.cx,i=a.cy,o=a.trace,l=o.type==="funnelarea";"_hasHoverLabel"in o||(o._hasHoverLabel=!1),"_hasHoverEvent"in o||(o._hasHoverEvent=!1),e.on("mouseover",function(s){var u=r._fullLayout,f=r._fullData[o.index];if(!(r._dragging||u.hovermode===!1)){var c=f.hoverinfo;if(Array.isArray(c)&&(c=Sx.castHoverinfo({hoverinfo:[Dr.castOption(c,s.pts)],_module:o._module},u,0)),c==="all"&&(c="label+text+value+percent+name"),f.hovertemplate||c!=="none"&&c!=="skip"&&c){var v=s.rInscribed||0,d=n+s.pxmid[0]*(1-v),p=i+s.pxmid[1]*(1-v),m=u.separators,y=[];if(c&&c.indexOf("label")!==-1&&y.push(s.label),s.text=Dr.castOption(f.hovertext||f.text,s.pts),c&&c.indexOf("text")!==-1){var b=s.text;pn.isValidTextValue(b)&&y.push(b)}s.value=s.v,s.valueLabel=Dr.formatPieValue(s.v,m),c&&c.indexOf("value")!==-1&&y.push(s.valueLabel),s.percent=s.v/a.vTotal,s.percentLabel=Dr.formatPiePercent(s.percent,m),c&&c.indexOf("percent")!==-1&&y.push(s.percentLabel);var T=f.hoverlabel,w=T.font,x=[];Sx.loneHover({trace:o,x0:d-v*a.r,x1:d+v*a.r,y:p,_x0:l?n+s.TL[0]:d-v*a.r,_x1:l?n+s.TR[0]:d+v*a.r,_y0:l?i+s.TL[1]:p-v*a.r,_y1:l?i+s.BL[1]:p+v*a.r,text:y.join("
"),name:f.hovertemplate||c.indexOf("name")!==-1?f.name:void 0,idealAlign:s.pxmid[0]<0?"left":"right",color:Dr.castOption(T.bgcolor,s.pts)||s.color,borderColor:Dr.castOption(T.bordercolor,s.pts),fontFamily:Dr.castOption(w.family,s.pts),fontSize:Dr.castOption(w.size,s.pts),fontColor:Dr.castOption(w.color,s.pts),nameLength:Dr.castOption(T.namelength,s.pts),textAlign:Dr.castOption(T.align,s.pts),hovertemplate:Dr.castOption(f.hovertemplate,s.pts),hovertemplateLabels:s,eventData:[qx(s,f)]},{container:u._hoverlayer.node(),outerContainer:u._paper.node(),gd:r,inOut_bbox:x}),s.bbox=x[0],o._hasHoverLabel=!0}o._hasHoverEvent=!0,r.emit("plotly_hover",{points:[qx(s,f)],event:di.event})}}),e.on("mouseout",function(s){var u=r._fullLayout,f=r._fullData[o.index],c=di.select(this).datum();o._hasHoverEvent&&(s.originalEvent=di.event,r.emit("plotly_unhover",{points:[qx(c,f)],event:di.event}),o._hasHoverEvent=!1),o._hasHoverLabel&&(Sx.loneUnhover(u._hoverlayer.node()),o._hasHoverLabel=!1)}),e.on("click",function(s){var u=r._fullLayout,f=r._fullData[o.index];r._dragging||u.hovermode===!1||(r._hoverdata=[qx(s,f)],Sx.click(r,di.event))})}function MVe(e,r,t){var a=Dr.castOption(e.outsidetextfont.color,r.pts)||Dr.castOption(e.textfont.color,r.pts)||t.color,n=Dr.castOption(e.outsidetextfont.family,r.pts)||Dr.castOption(e.textfont.family,r.pts)||t.family,i=Dr.castOption(e.outsidetextfont.size,r.pts)||Dr.castOption(e.textfont.size,r.pts)||t.size,o=Dr.castOption(e.outsidetextfont.weight,r.pts)||Dr.castOption(e.textfont.weight,r.pts)||t.weight,l=Dr.castOption(e.outsidetextfont.style,r.pts)||Dr.castOption(e.textfont.style,r.pts)||t.style,s=Dr.castOption(e.outsidetextfont.variant,r.pts)||Dr.castOption(e.textfont.variant,r.pts)||t.variant,u=Dr.castOption(e.outsidetextfont.textcase,r.pts)||Dr.castOption(e.textfont.textcase,r.pts)||t.textcase,f=Dr.castOption(e.outsidetextfont.lineposition,r.pts)||Dr.castOption(e.textfont.lineposition,r.pts)||t.lineposition,c=Dr.castOption(e.outsidetextfont.shadow,r.pts)||Dr.castOption(e.textfont.shadow,r.pts)||t.shadow;return{color:a,family:n,size:i,weight:o,style:l,variant:s,textcase:u,lineposition:f,shadow:c}}function Kse(e,r,t){var a=Dr.castOption(e.insidetextfont.color,r.pts);!a&&e._input.textfont&&(a=Dr.castOption(e._input.textfont.color,r.pts));var n=Dr.castOption(e.insidetextfont.family,r.pts)||Dr.castOption(e.textfont.family,r.pts)||t.family,i=Dr.castOption(e.insidetextfont.size,r.pts)||Dr.castOption(e.textfont.size,r.pts)||t.size,o=Dr.castOption(e.insidetextfont.weight,r.pts)||Dr.castOption(e.textfont.weight,r.pts)||t.weight,l=Dr.castOption(e.insidetextfont.style,r.pts)||Dr.castOption(e.textfont.style,r.pts)||t.style,s=Dr.castOption(e.insidetextfont.variant,r.pts)||Dr.castOption(e.textfont.variant,r.pts)||t.variant,u=Dr.castOption(e.insidetextfont.textcase,r.pts)||Dr.castOption(e.textfont.textcase,r.pts)||t.textcase,f=Dr.castOption(e.insidetextfont.lineposition,r.pts)||Dr.castOption(e.textfont.lineposition,r.pts)||t.lineposition,c=Dr.castOption(e.insidetextfont.shadow,r.pts)||Dr.castOption(e.textfont.shadow,r.pts)||t.shadow;return{color:a||Xse.contrast(r.color),family:n,size:i,weight:o,style:l,variant:s,textcase:u,lineposition:f,shadow:c}}function Qse(e,r){for(var t,a,n=0;n=-4;T-=2)b(Math.PI*T,"tan");for(T=4;T>=-4;T-=2)b(Math.PI*(T+1),"tan")}if(c||d){for(T=4;T>=-4;T-=2)b(Math.PI*(T+1.5),"rad");for(T=4;T>=-4;T-=2)b(Math.PI*(T+.5),"rad")}}if(l||p||c){var w=Math.sqrt(e.width*e.width+e.height*e.height);if(y={scale:n*a*2/w,rCenter:1-n,rotate:0},y.textPosAngle=(r.startangle+r.stopangle)/2,y.scale>=1)return y;m.push(y)}(p||d)&&(y=Vse(e,a,o,s,u),y.textPosAngle=(r.startangle+r.stopangle)/2,m.push(y)),(p||v)&&(y=jse(e,a,o,s,u),y.textPosAngle=(r.startangle+r.stopangle)/2,m.push(y));for(var x=0,_=0,k=0;k=1)break}return m[x]}function kVe(e,r){var t=e.startangle,a=e.stopangle;return t>r&&r>a||t0?1:-1)/2,y:i/(1+t*t/(a*a)),outside:!0}}function qVe(e){var r=Math.sqrt(e.titleBox.width*e.titleBox.width+e.titleBox.height*e.titleBox.height);return{x:e.cx,y:e.cy,scale:e.trace.hole*e.r*2/r,tx:0,ty:-e.titleBox.height/2+e.trace.title.font.size}}function nue(e,r){var t=1,a=1,n,i=e.trace,o={x:e.cx,y:e.cy},l={tx:0,ty:0};l.ty+=i.title.font.size,n=iue(i),i.title.position.indexOf("top")!==-1?(o.y-=(1+n)*e.r,l.ty-=e.titleBox.height):i.title.position.indexOf("bottom")!==-1&&(o.y+=(1+n)*e.r);var s=LVe(e.r,e.trace.aspectratio),u=r.w*(i.domain.x[1]-i.domain.x[0])/2;return i.title.position.indexOf("left")!==-1?(u=u+s,o.x-=(1+n)*s,l.tx+=e.titleBox.width/2):i.title.position.indexOf("center")!==-1?u*=2:i.title.position.indexOf("right")!==-1&&(u=u+s,o.x+=(1+n)*s,l.tx-=e.titleBox.width/2),t=u/e.titleBox.width,a=nk(e,r)/e.titleBox.height,{x:o.x,y:o.y,scale:Math.min(t,a),tx:l.tx,ty:l.ty}}function LVe(e,r){return e/(r===void 0?1:r)}function nk(e,r){var t=e.trace,a=r.h*(t.domain.y[1]-t.domain.y[0]);return Math.min(e.titleBox.height,a/2)}function iue(e){var r=e.pull;if(!r)return 0;var t;if(pn.isArrayOrTypedArray(r))for(r=0,t=0;tr&&(r=e.pull[t]);return r}function CVe(e,r){var t,a,n,i,o,l,s,u,f,c,v,d,p;function m(w,x){return w.pxmid[1]-x.pxmid[1]}function y(w,x){return x.pxmid[1]-w.pxmid[1]}function b(w,x){x||(x={});var _=x.labelExtraY+(a?x.yLabelMax:x.yLabelMin),k=a?w.yLabelMin:w.yLabelMax,M=a?w.yLabelMax:w.yLabelMin,S=w.cyFinal+o(w.px0[1],w.px1[1]),C=_-k,E,P,R,I,B,N;if(C*s>0&&(w.labelExtraY=C),!!pn.isArrayOrTypedArray(r.pull))for(P=0;P=(Dr.castOption(r.pull,R.pts)||0))&&((w.pxmid[1]-R.pxmid[1])*s>0?(I=R.cyFinal+o(R.px0[1],R.px1[1]),C=I-k-w.labelExtraY,C*s>0&&(w.labelExtraY+=C)):(M+w.labelExtraY-S)*s>0&&(E=3*l*Math.abs(P-c.indexOf(w)),B=R.cxFinal+i(R.px0[0],R.px1[0]),N=B+E-(w.cxFinal+w.pxmid[0])-w.labelExtraX,N*l>0&&(w.labelExtraX+=N)))}for(a=0;a<2;a++)for(n=a?m:y,o=a?Math.max:Math.min,s=a?1:-1,t=0;t<2;t++){for(i=t?Math.max:Math.min,l=t?1:-1,u=e[a][t],u.sort(n),f=e[1-a][t],c=f.concat(u),d=[],v=0;v1?(u=t.r,f=u/n.aspectratio):(f=t.r,u=f*n.aspectratio),u*=(1+n.baseratio)/2,s=u*f}o=Math.min(o,s/t.vTotal)}for(a=0;ar.vTotal/2?1:0,u.halfangle=Math.PI*Math.min(u.v/r.vTotal,.5),u.ring=1-a.hole,u.rInscribed=SVe(u,r))}function Lx(e,r){return[e*Math.sin(r),-e*Math.cos(r)]}function lue(e,r,t){var a=e._fullLayout,n=t.trace,i=n.texttemplate,o=n.textinfo;if(!i&&o&&o!=="none"){var l=o.split("+"),s=function(x){return l.indexOf(x)!==-1},u=s("label"),f=s("text"),c=s("value"),v=s("percent"),d=a.separators,p;if(p=u?[r.label]:[],f){var m=Dr.getFirstFilled(n.text,r.pts);Yse(m)&&p.push(m)}c&&p.push(Dr.formatPieValue(r.v,d)),v&&p.push(Dr.formatPiePercent(r.v/t.vTotal,d)),r.text=p.join("
")}function y(x){return{label:x.label,value:x.v,valueLabel:Dr.formatPieValue(x.v,a.separators),percent:x.v/t.vTotal,percentLabel:Dr.formatPiePercent(x.v/t.vTotal,a.separators),color:x.color,text:x.text,customdata:pn.castOption(n,x.i,"customdata")}}if(i){var b=pn.castOption(n,r.i,"texttemplate");if(!b)r.text="";else{var T=y(r),w=Dr.getFirstFilled(n.text,r.pts);(Yse(w)||w==="")&&(T.text=w),r.text=pn.texttemplateString({data:[T,n._meta],fallback:n.texttemplatefallback,labels:T,locale:e._fullLayout._d3locale,template:b})}}}function sue(e,r){var t=e.rotate*Math.PI/180,a=Math.cos(t),n=Math.sin(t),i=(r.left+r.right)/2,o=(r.top+r.bottom)/2;e.textX=i*a-o*n,e.textY=i*n+o*a,e.noCenter=!0}uue.exports={plot:TVe,formatSliceLabel:lue,transformInsideText:eue,determineInsideTextFont:Kse,positionTitleOutside:nue,prerenderTitles:Qse,layoutAreas:oue,attachFxHandlers:Jse,computeTransform:sue}});var hue=z((Dar,vue)=>{"use strict";var cue=Pr(),PVe=Ym(),RVe=a2().resizeText;vue.exports=function(r){var t=r._fullLayout._pielayer.selectAll(".trace");RVe(r,t,"pie"),t.each(function(a){var n=a[0],i=n.trace,o=cue.select(this);o.style({opacity:i.opacity}),o.selectAll("path.surface").each(function(l){cue.select(this).call(PVe,l,i,r)})})}});var pue=z(zv=>{"use strict";var due=_a();zv.name="pie";zv.plot=function(e,r,t,a){due.plotBasePlot(zv.name,e,r,t,a)};zv.clean=function(e,r,t,a){due.cleanBasePlot(zv.name,e,r,t,a)}});var yue=z((Par,mue)=>{"use strict";mue.exports={attributes:ek(),supplyDefaults:Rse().supplyDefaults,supplyLayoutDefaults:Nse(),layoutAttributes:rk(),calc:tk().calc,crossTraceCalc:tk().crossTraceCalc,plot:fue().plot,style:hue(),styleOne:Ym(),moduleType:"trace",name:"pie",basePlotModule:pue(),categories:["pie-like","pie","showLegend"],meta:{}}});var bue=z((Rar,gue)=>{"use strict";gue.exports=yue()});var wn=z((Far,_ue)=>{"use strict";var xue=Object.getOwnPropertySymbols,FVe=Object.prototype.hasOwnProperty,zVe=Object.prototype.propertyIsEnumerable;function NVe(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function IVe(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var r={},t=0;t<10;t++)r["_"+String.fromCharCode(t)]=t;var a=Object.getOwnPropertyNames(r).map(function(i){return r[i]});if(a.join("")!=="0123456789")return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach(function(i){n[i]=i}),Object.keys(Object.assign({},n)).join("")==="abcdefghijklmnopqrst"}catch(i){return!1}}_ue.exports=IVe()?Object.assign:function(e,r){for(var t,a=NVe(e),n,i=1;i{var Dx=wn();function wue(){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={}}Dx(wue.prototype,{instance:function(e,r){e=(e||"gregorian").toLowerCase(),r=r||"";var t=this._localCals[e+"-"+r];if(!t&&this.calendars[e]&&(t=new this.calendars[e](r),this._localCals[e+"-"+r]=t),!t)throw(this.local.invalidCalendar||this.regionalOptions[""].invalidCalendar).replace(/\{0\}/,e);return t},newDate:function(e,r,t,a,n){return a=(e!=null&&e.year?e.calendar():typeof a=="string"?this.instance(a,n):a)||this.instance(),a.newDate(e,r,t)},substituteDigits:function(e){return function(r){return(r+"").replace(/[0-9]/g,function(t){return e[t]})}},substituteChineseDigits:function(e,r){return function(t){for(var a="",n=0;t>0;){var i=t%10;a=(i===0?"":e[i]+r[n])+a,n++,t=Math.floor(t/10)}return a.indexOf(e[1]+r[1])===0&&(a=a.substr(1)),a||e[0]}}});function ik(e,r,t,a){if(this._calendar=e,this._year=r,this._month=t,this._day=a,this._calendar._validateLevel===0&&!this._calendar.isValid(this._year,this._month,this._day))throw(Vr.local.invalidDate||Vr.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name)}function Cx(e,r){return e=""+e,"000000".substring(0,r-e.length)+e}Dx(ik.prototype,{newDate:function(e,r,t){return this._calendar.newDate(e==null?this:e,r,t)},year:function(e){return arguments.length===0?this._year:this.set(e,"y")},month:function(e){return arguments.length===0?this._month:this.set(e,"m")},day:function(e){return arguments.length===0?this._day:this.set(e,"d")},date:function(e,r,t){if(!this._calendar.isValid(e,r,t))throw(Vr.local.invalidDate||Vr.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name);return this._year=e,this._month=r,this._day=t,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(e,r){return this._calendar.add(this,e,r)},set:function(e,r){return this._calendar.set(this,e,r)},compareTo:function(e){if(this._calendar.name!==e._calendar.name)throw(Vr.local.differentCalendars||Vr.regionalOptions[""].differentCalendars).replace(/\{0\}/,this._calendar.local.name).replace(/\{1\}/,e._calendar.local.name);var r=this._year!==e._year?this._year-e._year:this._month!==e._month?this.monthOfYear()-e.monthOfYear():this._day-e._day;return r===0?0:r<0?-1:1},calendar:function(){return this._calendar},toJD:function(){return this._calendar.toJD(this)},fromJD:function(e){return this._calendar.fromJD(e)},toJSDate:function(){return this._calendar.toJSDate(this)},fromJSDate:function(e){return this._calendar.fromJSDate(e)},toString:function(){return(this.year()<0?"-":"")+Cx(Math.abs(this.year()),4)+"-"+Cx(this.month(),2)+"-"+Cx(this.day(),2)}});function ok(){this.shortYearCutoff="+10"}Dx(ok.prototype,{_validateLevel:0,newDate:function(e,r,t){return e==null?this.today():(e.year&&(this._validate(e,r,t,Vr.local.invalidDate||Vr.regionalOptions[""].invalidDate),t=e.day(),r=e.month(),e=e.year()),new ik(this,e,r,t))},today:function(){return this.fromJSDate(new Date)},epoch:function(e){var r=this._validate(e,this.minMonth,this.minDay,Vr.local.invalidYear||Vr.regionalOptions[""].invalidYear);return r.year()<0?this.local.epochs[0]:this.local.epochs[1]},formatYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Vr.local.invalidYear||Vr.regionalOptions[""].invalidYear);return(r.year()<0?"-":"")+Cx(Math.abs(r.year()),4)},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Vr.local.invalidYear||Vr.regionalOptions[""].invalidYear),12},monthOfYear:function(e,r){var t=this._validate(e,r,this.minDay,Vr.local.invalidMonth||Vr.regionalOptions[""].invalidMonth);return(t.month()+this.monthsInYear(t)-this.firstMonth)%this.monthsInYear(t)+this.minMonth},fromMonthOfYear:function(e,r){var t=(r+this.firstMonth-2*this.minMonth)%this.monthsInYear(e)+this.minMonth;return this._validate(e,t,this.minDay,Vr.local.invalidMonth||Vr.regionalOptions[""].invalidMonth),t},daysInYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Vr.local.invalidYear||Vr.regionalOptions[""].invalidYear);return this.leapYear(r)?366:365},dayOfYear:function(e,r,t){var a=this._validate(e,r,t,Vr.local.invalidDate||Vr.regionalOptions[""].invalidDate);return a.toJD()-this.newDate(a.year(),this.fromMonthOfYear(a.year(),this.minMonth),this.minDay).toJD()+1},daysInWeek:function(){return 7},dayOfWeek:function(e,r,t){var a=this._validate(e,r,t,Vr.local.invalidDate||Vr.regionalOptions[""].invalidDate);return(Math.floor(this.toJD(a))+2)%this.daysInWeek()},extraInfo:function(e,r,t){return this._validate(e,r,t,Vr.local.invalidDate||Vr.regionalOptions[""].invalidDate),{}},add:function(e,r,t){return this._validate(e,this.minMonth,this.minDay,Vr.local.invalidDate||Vr.regionalOptions[""].invalidDate),this._correctAdd(e,this._add(e,r,t),r,t)},_add:function(e,r,t){if(this._validateLevel++,t==="d"||t==="w"){var a=e.toJD()+r*(t==="w"?this.daysInWeek():1),n=e.calendar().fromJD(a);return this._validateLevel--,[n.year(),n.month(),n.day()]}try{var i=e.year()+(t==="y"?r:0),o=e.monthOfYear()+(t==="m"?r:0),n=e.day(),l=function(f){for(;oc-1+f.minMonth;)i++,o-=c,c=f.monthsInYear(i)};t==="y"?(e.month()!==this.fromMonthOfYear(i,o)&&(o=this.newDate(i,e.month(),this.minDay).monthOfYear()),o=Math.min(o,this.monthsInYear(i)),n=Math.min(n,this.daysInMonth(i,this.fromMonthOfYear(i,o)))):t==="m"&&(l(this),n=Math.min(n,this.daysInMonth(i,this.fromMonthOfYear(i,o))));var s=[i,this.fromMonthOfYear(i,o),n];return this._validateLevel--,s}catch(u){throw this._validateLevel--,u}},_correctAdd:function(e,r,t,a){if(!this.hasYearZero&&(a==="y"||a==="m")&&(r[0]===0||e.year()>0!=r[0]>0)){var n={y:[1,1,"y"],m:[1,this.monthsInYear(-1),"m"],w:[this.daysInWeek(),this.daysInYear(-1),"d"],d:[1,this.daysInYear(-1),"d"]}[a],i=t<0?-1:1;r=this._add(e,t*n[0]+i*n[1],n[2])}return e.date(r[0],r[1],r[2])},set:function(e,r,t){this._validate(e,this.minMonth,this.minDay,Vr.local.invalidDate||Vr.regionalOptions[""].invalidDate);var a=t==="y"?r:e.year(),n=t==="m"?r:e.month(),i=t==="d"?r:e.day();return(t==="y"||t==="m")&&(i=Math.min(i,this.daysInMonth(a,n))),e.date(a,n,i)},isValid:function(e,r,t){this._validateLevel++;var a=this.hasYearZero||e!==0;if(a){var n=this.newDate(e,r,this.minDay);a=r>=this.minMonth&&r-this.minMonth=this.minDay&&t-this.minDay13.5?13:1),u=n-(s>2.5?4716:4715);return u<=0&&u--,this.newDate(u,s,l)},toJSDate:function(e,r,t){var a=this._validate(e,r,t,Vr.local.invalidDate||Vr.regionalOptions[""].invalidDate),n=new Date(a.year(),a.month()-1,a.day());return n.setHours(0),n.setMinutes(0),n.setSeconds(0),n.setMilliseconds(0),n.setHours(n.getHours()>12?n.getHours()+2:0),n},fromJSDate:function(e){return this.newDate(e.getFullYear(),e.getMonth()+1,e.getDate())}});var Vr=Tue.exports=new wue;Vr.cdate=ik;Vr.baseCalendar=ok;Vr.calendars.gregorian=lk});var Aue=z(()=>{var sk=wn(),rn=Tn();sk(rn.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"});rn.local=rn.regionalOptions[""];sk(rn.cdate.prototype,{formatDate:function(e,r){return typeof e!="string"&&(r=e,e=""),this._calendar.formatDate(e||"",this,r)}});sk(rn.baseCalendar.prototype,{UNIX_EPOCH:rn.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:1440*60,TICKS_EPOCH:rn.instance().jdEpoch,TICKS_PER_DAY:1440*60*1e7,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(e,r,t){if(typeof e!="string"&&(t=r,r=e,e=""),!r)return"";if(r.calendar()!==this)throw rn.local.invalidFormat||rn.regionalOptions[""].invalidFormat;e=e||this.local.dateFormat,t=t||{};for(var a=t.dayNamesShort||this.local.dayNamesShort,n=t.dayNames||this.local.dayNames,i=t.monthNumbers||this.local.monthNumbers,o=t.monthNamesShort||this.local.monthNamesShort,l=t.monthNames||this.local.monthNames,s=t.calculateWeek||this.local.calculateWeek,u=function(x,_){for(var k=1;w+k1},f=function(x,_,k,M){var S=""+_;if(u(x,M))for(;S.length1},T=function(R,I){var B=b(R,I),N=[2,3,B?4:2,B?4:2,10,11,20]["oyYJ@!".indexOf(R)+1],U=new RegExp("^-?\\d{1,"+N+"}"),G=r.substring(S).match(U);if(!G)throw(rn.local.missingNumberAt||rn.regionalOptions[""].missingNumberAt).replace(/\{0\}/,S);return S+=G[0].length,parseInt(G[0],10)},w=this,x=function(){if(typeof l=="function"){b("m");var R=l.call(w,r.substring(S));return S+=R.length,R}return T("m")},_=function(R,I,B,N){for(var U=b(R,N)?B:I,G=0;G-1){v=1,d=p;for(var P=this.daysInMonth(c,v);d>P;P=this.daysInMonth(c,v))v++,d-=P}return f>-1?this.fromJD(f):this.newDate(c,v,d)},determineDate:function(e,r,t,a,n){t&&typeof t!="object"&&(n=a,a=t,t=null),typeof a!="string"&&(n=a,a="");var i=this,o=function(l){try{return i.parseDate(a,l,n)}catch(c){}l=l.toLowerCase();for(var s=(l.match(/^c/)&&t?t.newDate():null)||i.today(),u=/([+-]?[0-9]+)\s*(d|w|m|y)?/g,f=u.exec(l);f;)s.add(parseInt(f[1],10),f[2]||"d"),f=u.exec(l);return s};return r=r?r.newDate():null,e=e==null?r:typeof e=="string"?o(e):typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?r:i.today().add(e,"d"):i.newDate(e),e}})});var Mue=z(()=>{var Tu=Tn(),BVe=wn(),uk=Tu.instance();function Ex(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}Ex.prototype=new Tu.baseCalendar;BVe(Ex.prototype,{name:"Chinese",jdEpoch:17214255e-1,hasYearZero:!1,minMonth:0,firstMonth:0,minDay:1,regionalOptions:{"":{name:"Chinese",epochs:["BEC","EC"],monthNumbers:function(e,r){if(typeof e=="string"){var t=e.match(HVe);return t?t[0]:""}var a=this._validateYear(e),n=e.month(),i=""+this.toChineseMonth(a,n);return r&&i.length<2&&(i="0"+i),this.isIntercalaryMonth(a,n)&&(i+="i"),i},monthNames:function(e){if(typeof e=="string"){var r=e.match(UVe);return r?r[0]:""}var t=this._validateYear(e),a=e.month(),n=this.toChineseMonth(t,a),i=["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"][n-1];return this.isIntercalaryMonth(t,a)&&(i="\u95F0"+i),i},monthNamesShort:function(e){if(typeof e=="string"){var r=e.match(GVe);return r?r[0]:""}var t=this._validateYear(e),a=e.month(),n=this.toChineseMonth(t,a),i=["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"][n-1];return this.isIntercalaryMonth(t,a)&&(i="\u95F0"+i),i},parseMonth:function(e,r){e=this._validateYear(e);var t=parseInt(r),a;if(isNaN(t))r[0]==="\u95F0"&&(a=!0,r=r.substring(1)),r[r.length-1]==="\u6708"&&(r=r.substring(0,r.length-1)),t=1+["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"].indexOf(r);else{var n=r[r.length-1];a=n==="i"||n==="I"}var i=this.toMonthIndex(e,t,a);return i},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(e,r){if(e.year&&(e=e.year()),typeof e!="number"||e<1888||e>2111)throw r.replace(/\{0\}/,this.local.name);return e},toMonthIndex:function(e,r,t){var a=this.intercalaryMonth(e),n=t&&r!==a;if(n||r<1||r>12)throw Tu.local.invalidMonth.replace(/\{0\}/,this.local.name);var i;return a?!t&&r<=a?i=r-1:i=r:i=r-1,i},toChineseMonth:function(e,r){e.year&&(e=e.year(),r=e.month());var t=this.intercalaryMonth(e),a=t?12:11;if(r<0||r>a)throw Tu.local.invalidMonth.replace(/\{0\}/,this.local.name);var n;return t?r>13;return t},isIntercalaryMonth:function(e,r){e.year&&(e=e.year(),r=e.month());var t=this.intercalaryMonth(e);return!!t&&t===r},leapYear:function(e){return this.intercalaryMonth(e)!==0},weekOfYear:function(e,r,t){var a=this._validateYear(e,Tu.local.invalidyear),n=Mu[a-Mu[0]],i=n>>9&4095,o=n>>5&15,l=n&31,s;s=uk.newDate(i,o,l),s.add(4-(s.dayOfWeek()||7),"d");var u=this.toJD(e,r,t)-s.toJD();return 1+Math.floor(u/7)},monthsInYear:function(e){return this.leapYear(e)?13:12},daysInMonth:function(e,r){e.year&&(r=e.month(),e=e.year()),e=this._validateYear(e);var t=Au[e-Au[0]],a=t>>13,n=a?12:11;if(r>n)throw Tu.local.invalidMonth.replace(/\{0\}/,this.local.name);var i=t&1<<12-r?30:29;return i},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var a=this._validate(e,i,t,Tu.local.invalidDate);e=this._validateYear(a.year()),r=a.month(),t=a.day();var n=this.isIntercalaryMonth(e,r),i=this.toChineseMonth(e,r),o=VVe(e,i,t,n);return uk.toJD(o.year,o.month,o.day)},fromJD:function(e){var r=uk.fromJD(e),t=YVe(r.year(),r.month(),r.day()),a=this.toMonthIndex(t.year,t.month,t.isIntercalary);return this.newDate(t.year,a,t.day)},fromString:function(e){var r=e.match(OVe),t=this._validateYear(+r[1]),a=+r[2],n=!!r[3],i=this.toMonthIndex(t,a,n),o=+r[4];return this.newDate(t,i,o)},add:function(e,r,t){var a=e.year(),n=e.month(),i=this.isIntercalaryMonth(a,n),o=this.toChineseMonth(a,n),l=Object.getPrototypeOf(Ex.prototype).add.call(this,e,r,t);if(t==="y"){var s=l.year(),u=l.month(),f=this.isIntercalaryMonth(s,o),c=i&&f?this.toMonthIndex(s,o,!0):this.toMonthIndex(s,o,!1);c!==u&&l.month(c)}return l}});var OVe=/^\s*(-?\d\d\d\d|\d\d)[-/](\d?\d)([iI]?)[-/](\d?\d)/m,HVe=/^\d?\d[iI]?/m,UVe=/^闰?十?[一二三四五六七八九]?月/m,GVe=/^闰?十?[一二三四五六七八九]?/m;Tu.calendars.chinese=Ex;var Au=[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],Mu=[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 YVe(e,r,t,a){var n,i;if(typeof e=="object")n=e,i=r||{};else{var o=typeof e=="number"&&e>=1888&&e<=2111;if(!o)throw new Error("Solar year outside range 1888-2111");var l=typeof r=="number"&&r>=1&&r<=12;if(!l)throw new Error("Solar month outside range 1 - 12");var s=typeof t=="number"&&t>=1&&t<=31;if(!s)throw new Error("Solar day outside range 1 - 31");n={year:e,month:r,day:t},i=a||{}}var u=Mu[n.year-Mu[0]],f=n.year<<9|n.month<<5|n.day;i.year=f>=u?n.year:n.year-1,u=Mu[i.year-Mu[0]];var c=u>>9&4095,v=u>>5&15,d=u&31,p,m=new Date(c,v-1,d),y=new Date(n.year,n.month-1,n.day);p=Math.round((y-m)/(24*3600*1e3));var b=Au[i.year-Au[0]],T;for(T=0;T<13;T++){var w=b&1<<12-T?30:29;if(p>13;return!x||T=1888&&e<=2111;if(!l)throw new Error("Lunar year outside range 1888-2111");var s=typeof r=="number"&&r>=1&&r<=12;if(!s)throw new Error("Lunar month outside range 1 - 12");var u=typeof t=="number"&&t>=1&&t<=30;if(!u)throw new Error("Lunar day outside range 1 - 30");var f;typeof a=="object"?(f=!1,i=a):(f=!!a,i=n||{}),o={year:e,month:r,day:t,isIntercalary:f}}var c;c=o.day-1;var v=Au[o.year-Au[0]],d=v>>13,p;d&&(o.month>d||o.isIntercalary)?p=o.month:p=o.month-1;for(var m=0;m>9&4095,w=b>>5&15,x=b&31,_=new Date(T,w-1,x+c);return i.year=_.getFullYear(),i.month=1+_.getMonth(),i.day=_.getDate(),i}});var kue=z(()=>{var lc=Tn(),jVe=wn();function fk(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}fk.prototype=new lc.baseCalendar;jVe(fk.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(t){var r=this._validate(t,this.minMonth,this.minDay,lc.local.invalidYear),t=r.year()+(r.year()<0?1:0);return t%4===3||t%4===-1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,lc.local.invalidYear||lc.regionalOptions[""].invalidYear),13},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,lc.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===13&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var a=this._validate(e,r,t,lc.local.invalidDate);return e=a.year(),e<0&&e++,a.day()+(a.month()-1)*30+(e-1)*365+Math.floor(e/4)+this.jdEpoch-1},fromJD:function(e){var r=Math.floor(e)+.5-this.jdEpoch,t=Math.floor((r-Math.floor((r+366)/1461))/365)+1;t<=0&&t--,r=Math.floor(e)+.5-this.newDate(t,1,1).toJD();var a=Math.floor(r/30)+1,n=r-(a-1)*30+1;return this.newDate(t,a,n)}});lc.calendars.coptic=fk});var Sue=z(()=>{var ys=Tn(),WVe=wn();function ck(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}ck.prototype=new ys.baseCalendar;WVe(ck.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(e){return this._validate(e,this.minMonth,this.minDay,ys.local.invalidYear),!1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,ys.local.invalidYear),13},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,ys.local.invalidYear),400},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/8)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,ys.local.invalidMonth);return this.daysPerMonth[t.month()-1]},daysInWeek:function(){return 8},dayOfWeek:function(e,r,t){var a=this._validate(e,r,t,ys.local.invalidDate);return(a.day()+1)%8},weekDay:function(e,r,t){var a=this.dayOfWeek(e,r,t);return a>=2&&a<=6},extraInfo:function(e,r,t){var a=this._validate(e,r,t,ys.local.invalidDate);return{century:XVe[Math.floor((a.year()-1)/100)+1]||""}},toJD:function(e,r,t){var a=this._validate(e,r,t,ys.local.invalidDate);return e=a.year()+(a.year()<0?1:0),r=a.month(),t=a.day(),t+(r>1?16:0)+(r>2?(r-2)*32:0)+(e-1)*400+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e+.5)-Math.floor(this.jdEpoch)-1;var r=Math.floor(e/400)+1;e-=(r-1)*400,e+=e>15?16:0;var t=Math.floor(e/32)+1,a=e-(t-1)*32+1;return this.newDate(r<=0?r-1:r,t,a)}});var XVe={20:"Fruitbat",21:"Anchovy"};ys.calendars.discworld=ck});var que=z(()=>{var sc=Tn(),ZVe=wn();function vk(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}vk.prototype=new sc.baseCalendar;ZVe(vk.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(t){var r=this._validate(t,this.minMonth,this.minDay,sc.local.invalidYear),t=r.year()+(r.year()<0?1:0);return t%4===3||t%4===-1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,sc.local.invalidYear||sc.regionalOptions[""].invalidYear),13},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,sc.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===13&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var a=this._validate(e,r,t,sc.local.invalidDate);return e=a.year(),e<0&&e++,a.day()+(a.month()-1)*30+(e-1)*365+Math.floor(e/4)+this.jdEpoch-1},fromJD:function(e){var r=Math.floor(e)+.5-this.jdEpoch,t=Math.floor((r-Math.floor((r+366)/1461))/365)+1;t<=0&&t--,r=Math.floor(e)+.5-this.newDate(t,1,1).toJD();var a=Math.floor(r/30)+1,n=r-(a-1)*30+1;return this.newDate(t,a,n)}});sc.calendars.ethiopian=vk});var Lue=z(()=>{var ku=Tn(),$Ve=wn();function hk(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}hk.prototype=new ku.baseCalendar;$Ve(hk.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(e){var r=this._validate(e,this.minMonth,this.minDay,ku.local.invalidYear);return this._leapYear(r.year())},_leapYear:function(e){return e=e<0?e+1:e,Px(e*7+1,19)<7},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,ku.local.invalidYear),this._leapYear(e.year?e.year():e)?13:12},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,ku.local.invalidYear);return e=r.year(),this.toJD(e===-1?1:e+1,7,1)-this.toJD(e,7,1)},daysInMonth:function(e,r){return e.year&&(r=e.month(),e=e.year()),this._validate(e,r,this.minDay,ku.local.invalidMonth),r===12&&this.leapYear(e)||r===8&&Px(this.daysInYear(e),10)===5?30:r===9&&Px(this.daysInYear(e),10)===3?29:this.daysPerMonth[r-1]},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==6},extraInfo:function(e,r,t){var a=this._validate(e,r,t,ku.local.invalidDate);return{yearType:(this.leapYear(a)?"embolismic":"common")+" "+["deficient","regular","complete"][this.daysInYear(a)%10-3]}},toJD:function(e,r,t){var a=this._validate(e,r,t,ku.local.invalidDate);e=a.year(),r=a.month(),t=a.day();var n=e<=0?e+1:e,i=this.jdEpoch+this._delay1(n)+this._delay2(n)+t+1;if(r<7){for(var o=7;o<=this.monthsInYear(e);o++)i+=this.daysInMonth(e,o);for(var o=1;o=this.toJD(r===-1?1:r+1,7,1);)r++;for(var t=ethis.toJD(r,t,this.daysInMonth(r,t));)t++;var a=e-this.toJD(r,t,1)+1;return this.newDate(r,t,a)}});function Px(e,r){return e-r*Math.floor(e/r)}ku.calendars.hebrew=hk});var Cue=z(()=>{var f1=Tn(),JVe=wn();function dk(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}dk.prototype=new f1.baseCalendar;JVe(dk.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\u012Bs","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(e){var r=this._validate(e,this.minMonth,this.minDay,f1.local.invalidYear);return(r.year()*11+14)%30<11},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInYear:function(e){return this.leapYear(e)?355:354},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,f1.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===12&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==5},toJD:function(e,r,t){var a=this._validate(e,r,t,f1.local.invalidDate);return e=a.year(),r=a.month(),t=a.day(),e=e<=0?e+1:e,t+Math.ceil(29.5*(r-1))+(e-1)*354+Math.floor((3+11*e)/30)+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e)+.5;var r=Math.floor((30*(e-this.jdEpoch)+10646)/10631);r=r<=0?r-1:r;var t=Math.min(12,Math.ceil((e-29-this.toJD(r,1,1))/29.5)+1),a=e-this.toJD(r,t,1)+1;return this.newDate(r,t,a)}});f1.calendars.islamic=dk});var Due=z(()=>{var c1=Tn(),KVe=wn();function pk(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}pk.prototype=new c1.baseCalendar;KVe(pk.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(t){var r=this._validate(t,this.minMonth,this.minDay,c1.local.invalidYear),t=r.year()<0?r.year()+1:r.year();return t%4===0},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(4-(a.dayOfWeek()||7),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,c1.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===2&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var a=this._validate(e,r,t,c1.local.invalidDate);return e=a.year(),r=a.month(),t=a.day(),e<0&&e++,r<=2&&(e--,r+=12),Math.floor(365.25*(e+4716))+Math.floor(30.6001*(r+1))+t-1524.5},fromJD:function(e){var r=Math.floor(e+.5),t=r+1524,a=Math.floor((t-122.1)/365.25),n=Math.floor(365.25*a),i=Math.floor((t-n)/30.6001),o=i-Math.floor(i<14?1:13),l=a-Math.floor(o>2?4716:4715),s=t-n-Math.floor(30.6001*i);return l<=0&&l--,this.newDate(l,o,s)}});c1.calendars.julian=pk});var Pue=z(()=>{var Mo=Tn(),QVe=wn();function yk(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}yk.prototype=new Mo.baseCalendar;QVe(yk.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(e){return this._validate(e,this.minMonth,this.minDay,Mo.local.invalidYear),!1},formatYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Mo.local.invalidYear);e=r.year();var t=Math.floor(e/400);e=e%400,e+=e<0?400:0;var a=Math.floor(e/20);return t+"."+a+"."+e%20},forYear:function(e){if(e=e.split("."),e.length<3)throw"Invalid Mayan year";for(var r=0,t=0;t19||t>0&&a<0)throw"Invalid Mayan year";r=r*20+a}return r},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Mo.local.invalidYear),18},weekOfYear:function(e,r,t){return this._validate(e,r,t,Mo.local.invalidDate),0},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Mo.local.invalidYear),360},daysInMonth:function(e,r){return this._validate(e,r,this.minDay,Mo.local.invalidMonth),20},daysInWeek:function(){return 5},dayOfWeek:function(e,r,t){var a=this._validate(e,r,t,Mo.local.invalidDate);return a.day()},weekDay:function(e,r,t){return this._validate(e,r,t,Mo.local.invalidDate),!0},extraInfo:function(e,r,t){var a=this._validate(e,r,t,Mo.local.invalidDate),n=a.toJD(),i=this._toHaab(n),o=this._toTzolkin(n);return{haabMonthName:this.local.haabMonths[i[0]-1],haabMonth:i[0],haabDay:i[1],tzolkinDayName:this.local.tzolkinMonths[o[0]-1],tzolkinDay:o[0],tzolkinTrecena:o[1]}},_toHaab:function(e){e-=this.jdEpoch;var r=mk(e+8+340,365);return[Math.floor(r/20)+1,mk(r,20)]},_toTzolkin:function(e){return e-=this.jdEpoch,[Eue(e+20,20),Eue(e+4,13)]},toJD:function(e,r,t){var a=this._validate(e,r,t,Mo.local.invalidDate);return a.day()+a.month()*20+a.year()*360+this.jdEpoch},fromJD:function(e){e=Math.floor(e)+.5-this.jdEpoch;var r=Math.floor(e/360);e=e%360,e+=e<0?360:0;var t=Math.floor(e/20),a=e%20;return this.newDate(r,t,a)}});function mk(e,r){return e-r*Math.floor(e/r)}function Eue(e,r){return mk(e-1,r)+1}Mo.calendars.mayan=yk});var Fue=z(()=>{var uc=Tn(),eje=wn();function gk(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}gk.prototype=new uc.baseCalendar;var Rue=uc.instance("gregorian");eje(gk.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(e){var r=this._validate(e,this.minMonth,this.minDay,uc.local.invalidYear||uc.regionalOptions[""].invalidYear);return Rue.leapYear(r.year()+(r.year()<1?1:0)+1469)},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(1-(a.dayOfWeek()||7),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,uc.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===12&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(n,r,t){var a=this._validate(n,r,t,uc.local.invalidMonth),n=a.year();n<0&&n++;for(var i=a.day(),o=1;o=this.toJD(r+1,1,1);)r++;for(var t=e-Math.floor(this.toJD(r,1,1)+.5)+1,a=1;t>this.daysInMonth(r,a);)t-=this.daysInMonth(r,a),a++;return this.newDate(r,a,t)}});uc.calendars.nanakshahi=gk});var zue=z(()=>{var fc=Tn(),rje=wn();function bk(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}bk.prototype=new fc.baseCalendar;rje(bk.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(e){return this.daysInYear(e)!==this.daysPerYear},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,fc.local.invalidYear);if(e=r.year(),typeof this.NEPALI_CALENDAR_DATA[e]=="undefined")return this.daysPerYear;for(var t=0,a=this.minMonth;a<=12;a++)t+=this.NEPALI_CALENDAR_DATA[e][a];return t},daysInMonth:function(e,r){return e.year&&(r=e.month(),e=e.year()),this._validate(e,r,this.minDay,fc.local.invalidMonth),typeof this.NEPALI_CALENDAR_DATA[e]=="undefined"?this.daysPerMonth[r-1]:this.NEPALI_CALENDAR_DATA[e][r]},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==6},toJD:function(e,r,t){var a=this._validate(e,r,t,fc.local.invalidDate);e=a.year(),r=a.month(),t=a.day();var n=fc.instance(),i=0,o=r,l=e;this._createMissingCalendarData(e);var s=e-(o>9||o===9&&t>=this.NEPALI_CALENDAR_DATA[l][0]?56:57);for(r!==9&&(i=t,o--);o!==9;)o<=0&&(o=12,l--),i+=this.NEPALI_CALENDAR_DATA[l][o],o--;return r===9?(i+=t-this.NEPALI_CALENDAR_DATA[l][0],i<0&&(i+=n.daysInYear(s))):i+=this.NEPALI_CALENDAR_DATA[l][9]-this.NEPALI_CALENDAR_DATA[l][0],n.newDate(s,1,1).add(i,"d").toJD()},fromJD:function(e){var r=fc.instance(),t=r.fromJD(e),a=t.year(),n=t.dayOfYear(),i=a+56;this._createMissingCalendarData(i);for(var o=9,l=this.NEPALI_CALENDAR_DATA[i][0],s=this.NEPALI_CALENDAR_DATA[i][o]-l+1;n>s;)o++,o>12&&(o=1,i++),s+=this.NEPALI_CALENDAR_DATA[i][o];var u=this.NEPALI_CALENDAR_DATA[i][o]-(s-n);return this.newDate(i,o,u)},_createMissingCalendarData:function(e){var r=this.daysPerMonth.slice(0);r.unshift(17);for(var t=e-1;t{var Nv=Tn(),tje=wn();function Fx(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}function Rx(e){var r=e-475;e<0&&r++;var t=.242197,a=t*r,n=t*(r+1),i=a-Math.floor(a),o=n-Math.floor(n);return i>o}Fx.prototype=new Nv.baseCalendar;tje(Fx.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","Dey","Bahman","Esfand"],monthNamesShort:["Far","Ord","Kho","Tir","Mor","Sha","Meh","Aba","Aza","Dey","Bah","Esf"],dayNames:["Yekshanbeh","Doshanbeh","Seshanbeh","Chah\u0101rshanbeh","Panjshanbeh","Jom'eh","Shanbeh"],dayNamesShort:["Yek","Do","Se","Cha","Panj","Jom","Sha"],dayNamesMin:["Ye","Do","Se","Ch","Pa","Jo","Sh"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Nv.local.invalidYear);return Rx(r.year())},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-((a.dayOfWeek()+1)%7),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Nv.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===12&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==5},toJD:function(e,r,t){var a=this._validate(e,r,t,Nv.local.invalidDate);e=a.year(),r=a.month(),t=a.day();var n=0;if(e>0)for(var i=1;i0?e-1:e)*365+n+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e)+.5;var r=475+(e-this.toJD(475,1,1))/365.242197,t=Math.floor(r);t<=0&&t--,e>this.toJD(t,12,Rx(t)?30:29)&&(t++,t===0&&t++);var a=e-this.toJD(t,1,1)+1,n=a<=186?Math.ceil(a/31):Math.ceil((a-6)/30),i=e-this.toJD(t,n,1)+1;return this.newDate(t,n,i)}});Nv.calendars.persian=Fx;Nv.calendars.jalali=Fx});var Iue=z(()=>{var cc=Tn(),aje=wn(),zx=cc.instance();function xk(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}xk.prototype=new cc.baseCalendar;aje(xk.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(t){var r=this._validate(t,this.minMonth,this.minDay,cc.local.invalidYear),t=this._t2gYear(r.year());return zx.leapYear(t)},weekOfYear:function(n,r,t){var a=this._validate(n,this.minMonth,this.minDay,cc.local.invalidYear),n=this._t2gYear(a.year());return zx.weekOfYear(n,a.month(),a.day())},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,cc.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===2&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(n,r,t){var a=this._validate(n,r,t,cc.local.invalidDate),n=this._t2gYear(a.year());return zx.toJD(n,a.month(),a.day())},fromJD:function(e){var r=zx.fromJD(e),t=this._g2tYear(r.year());return this.newDate(t,r.month(),r.day())},_t2gYear:function(e){return e+this.yearsOffset+(e>=-this.yearsOffset&&e<=-1?1:0)},_g2tYear:function(e){return e-this.yearsOffset-(e>=1&&e<=this.yearsOffset?1:0)}});cc.calendars.taiwan=xk});var Bue=z(()=>{var vc=Tn(),nje=wn(),Nx=vc.instance();function _k(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}_k.prototype=new vc.baseCalendar;nje(_k.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(t){var r=this._validate(t,this.minMonth,this.minDay,vc.local.invalidYear),t=this._t2gYear(r.year());return Nx.leapYear(t)},weekOfYear:function(n,r,t){var a=this._validate(n,this.minMonth,this.minDay,vc.local.invalidYear),n=this._t2gYear(a.year());return Nx.weekOfYear(n,a.month(),a.day())},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,vc.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===2&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(n,r,t){var a=this._validate(n,r,t,vc.local.invalidDate),n=this._t2gYear(a.year());return Nx.toJD(n,a.month(),a.day())},fromJD:function(e){var r=Nx.fromJD(e),t=this._g2tYear(r.year());return this.newDate(t,r.month(),r.day())},_t2gYear:function(e){return e-this.yearsOffset-(e>=1&&e<=this.yearsOffset?1:0)},_g2tYear:function(e){return e+this.yearsOffset+(e>=-this.yearsOffset&&e<=-1?1:0)}});vc.calendars.thai=_k});var Oue=z(()=>{var hc=Tn(),ije=wn();function wk(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}wk.prototype=new hc.baseCalendar;ije(wk.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\u0101th\u0101\u2019","Yawm al-Arba\u2018\u0101\u2019","Yawm al-Kham\u012Bs","Yawm al-Jum\u2018a","Yawm al-Sabt"],dayNamesMin:["Ah","Ith","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!0}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,hc.local.invalidYear);return this.daysInYear(r.year())===355},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInYear:function(e){for(var r=0,t=1;t<=12;t++)r+=this.daysInMonth(e,t);return r},daysInMonth:function(e,r){for(var t=this._validate(e,r,this.minDay,hc.local.invalidMonth),a=t.toJD()-24e5+.5,n=0,i=0;ia)return Su[n]-Su[n-1];n++}return 30},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==5},toJD:function(e,r,t){var a=this._validate(e,r,t,hc.local.invalidDate),n=12*(a.year()-1)+a.month()-15292,i=a.day()+Su[n-1]-1;return i+24e5-.5},fromJD:function(e){for(var r=e-24e5+.5,t=0,a=0;ar);a++)t++;var n=t+15292,i=Math.floor((n-1)/12),o=i+1,l=n-12*i,s=r-Su[t-1]+1;return this.newDate(o,l,s)},isValid:function(e,r,t){var a=hc.baseCalendar.prototype.isValid.apply(this,arguments);return a&&(e=e.year!=null?e.year:e,a=e>=1276&&e<=1500),a},_validate:function(e,r,t,a){var n=hc.baseCalendar.prototype._validate.apply(this,arguments);if(n.year<1276||n.year>1500)throw a.replace(/\{0\}/,this.local.name);return n}});hc.calendars.ummalqura=wk;var Su=[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]});var Uue=z((hnr,Hue)=>{"use strict";Hue.exports=Tn();Aue();Mue();kue();Sue();que();Lue();Cue();Due();Pue();Fue();zue();Nue();Iue();Bue();Oue()});var Zue=z((dnr,Xue)=>{"use strict";var Yue=Uue(),v1=ke(),Vue=(Kt(),Ne(aa)),oje=Vue.EPOCHJD,lje=Vue.ONEDAY,Mk={valType:"enumerated",values:v1.sortObjectKeys(Yue.calendars),editType:"calc",dflt:"gregorian"},jue=function(e,r,t,a){var n={};return n[t]=Mk,v1.coerce(e,r,n,t,a)},sje=function(e,r,t,a){for(var n=0;n{"use strict";$ue.exports=Zue()});var dje=z((mnr,Que)=>{var Kue=EX();Kue.register([RZ(),_$(),UJ(),uK(),TK(),TQ(),NQ(),See(),tre(),qse(),bue(),Jue()]);Que.exports=Kue});return dje();})(); /*! Bundled license information: native-promise-only/lib/npo.src.js: diff --git a/dist/plotly-finance.js b/dist/plotly-finance.js index c91d63db610..b39cc6fe001 100644 --- a/dist/plotly-finance.js +++ b/dist/plotly-finance.js @@ -1,5 +1,5 @@ /** -* plotly.js (finance) v4.1.2 +* plotly.js (finance) v4.2.0 * Copyright 2012-2026, Plotly, Inc. * All rights reserved. * Licensed under the MIT license @@ -110,7 +110,7 @@ var Plotly = (() => { var require_version = __commonJS({ "src/version.js"(exports) { "use strict"; - exports.version = "4.1.2"; + exports.version = "4.2.0"; } }); @@ -17760,9 +17760,9 @@ var Plotly = (() => { var require_maplibre_gl = __commonJS({ "node_modules/maplibre-gl/dist/maplibre-gl.css"() { (function() { - if (!document.getElementById("ce8d464691048653ffe3a57c6c18ab566e8366f186677868cf724621a857b4fe")) { + if (!document.getElementById("9f215cf04c5486422605d13261cb87401f4e7763b6296af81e98efbc0130da53")) { var e = document.createElement("style"); - e.id = "ce8d464691048653ffe3a57c6c18ab566e8366f186677868cf724621a857b4fe"; + e.id = "9f215cf04c5486422605d13261cb87401f4e7763b6296af81e98efbc0130da53"; e.textContent = `.maplibregl-map{font:12px/20px Helvetica Neue,Arial,Helvetica,sans-serif;overflow:hidden;position:relative;-webkit-tap-highlight-color:rgb(0 0 0/0);-webkit-touch-callout:none}.maplibregl-canvas{position:absolute;left:0;top:0}.maplibregl-map:fullscreen{width:100%;height:100%}.maplibregl-ctrl-group button.maplibregl-ctrl-compass{touch-action:none}.maplibregl-canvas-container.maplibregl-interactive,.maplibregl-ctrl-group button.maplibregl-ctrl-compass{cursor:grab;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-canvas-container.maplibregl-interactive.maplibregl-track-pointer{cursor:pointer}.maplibregl-canvas-container.maplibregl-interactive:active,.maplibregl-ctrl-group button.maplibregl-ctrl-compass:active{cursor:grabbing}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-canvas-container.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:pinch-zoom}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:none}.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures,.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-ctrl-bottom-left,.maplibregl-ctrl-bottom-right,.maplibregl-ctrl-top-left,.maplibregl-ctrl-top-right{position:absolute;pointer-events:none;z-index:2}.maplibregl-ctrl-top-left{top:0;left:0}.maplibregl-ctrl-top-right{top:0;right:0}.maplibregl-ctrl-bottom-left{bottom:0;left:0}.maplibregl-ctrl-bottom-right{right:0;bottom:0}.maplibregl-ctrl{clear:both;pointer-events:auto;transform:translate(0)}.maplibregl-ctrl-top-left .maplibregl-ctrl{margin:10px 0 0 10px;float:left}.maplibregl-ctrl-top-right .maplibregl-ctrl{margin:10px 10px 0 0;float:right}.maplibregl-ctrl-bottom-left .maplibregl-ctrl{margin:0 0 10px 10px;float:left}.maplibregl-ctrl-bottom-right .maplibregl-ctrl{margin:0 10px 10px 0;float:right}.maplibregl-ctrl-group{border-radius:4px;background:#fff}.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px rgba(0,0,0,.1)}@media (forced-colors:active){.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px ButtonText}}.maplibregl-ctrl-group button{width:29px;height:29px;display:block;padding:0;outline:none;border:0;box-sizing:border-box;background-color:transparent;cursor:pointer}.maplibregl-ctrl button{-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-ctrl-group button+button{border-top:1px solid #ddd}.maplibregl-ctrl button .maplibregl-ctrl-icon{display:block;width:100%;height:100%;background-repeat:no-repeat;background-position:50%}@media (forced-colors:active){.maplibregl-ctrl-icon{background-color:transparent}.maplibregl-ctrl-group button+button{border-top:1px solid ButtonText}}.maplibregl-ctrl button::-moz-focus-inner{border:0;padding:0}.maplibregl-ctrl-attrib-button:focus,.maplibregl-ctrl-group button:focus{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl button:disabled{cursor:not-allowed}.maplibregl-ctrl button:disabled .maplibregl-ctrl-icon{opacity:.25}@media (hover:hover){.maplibregl-ctrl button:not(:disabled):hover{background-color:rgba(0,0,0,.05)}}.maplibregl-ctrl button:not(:disabled):active{background-color:rgba(0,0,0,.05)}.maplibregl-ctrl-group button:focus:focus-visible{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl-group button:focus:not(:focus-visible){box-shadow:none}.maplibregl-ctrl-group button:focus:first-child{border-radius:4px 4px 0 0}.maplibregl-ctrl-group button:focus:last-child{border-radius:0 0 4px 4px}.maplibregl-ctrl-group button:focus:only-child{border-radius:inherit}.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M10%2013c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h9c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M14.5%208.5c-.75%200-1.5.75-1.5%201.5v3h-3c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h3v3c0%20.75.75%201.5%201.5%201.5S16%2019.75%2016%2019v-3h3c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013h-3v-3c0-.75-.75-1.5-1.5-1.5%22%2F%3E%3C%2Fsvg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M10%2013c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h9c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M14.5%208.5c-.75%200-1.5.75-1.5%201.5v3h-3c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h3v3c0%20.75.75%201.5%201.5%201.5S16%2019.75%2016%2019v-3h3c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013h-3v-3c0-.75-.75-1.5-1.5-1.5%22%2F%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M10%2013c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h9c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M14.5%208.5c-.75%200-1.5.75-1.5%201.5v3h-3c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h3v3c0%20.75.75%201.5%201.5%201.5S16%2019.75%2016%2019v-3h3c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013h-3v-3c0-.75-.75-1.5-1.5-1.5%22%2F%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M24%2016v5.5c0%201.75-.75%202.5-2.5%202.5H16v-1l3-1.5-4-5.5%201-1%205.5%204%201.5-3zM6%2016l1.5%203%205.5-4%201%201-4%205.5%203%201.5v1H7.5C5.75%2024%205%2023.25%205%2021.5V16zm7-11v1l-3%201.5%204%205.5-1%201-5.5-4L6%2013H5V7.5C5%205.75%205.75%205%207.5%205zm11%202.5c0-1.75-.75-2.5-2.5-2.5H16v1l3%201.5-4%205.5%201%201%205.5-4%201.5%203h1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M18.5%2016c-1.75%200-2.5.75-2.5%202.5V24h1l1.5-3%205.5%204%201-1-4-5.5%203-1.5v-1zM13%2018.5c0-1.75-.75-2.5-2.5-2.5H5v1l3%201.5L4%2024l1%201%205.5-4%201.5%203h1zm3-8c0%201.75.75%202.5%202.5%202.5H24v-1l-3-1.5L25%205l-1-1-5.5%204L17%205h-1zM10.5%2013c1.75%200%202.5-.75%202.5-2.5V5h-1l-1.5%203L5%204%204%205l4%205.5L5%2012v1z%22%2F%3E%3C%2Fsvg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M24%2016v5.5c0%201.75-.75%202.5-2.5%202.5H16v-1l3-1.5-4-5.5%201-1%205.5%204%201.5-3zM6%2016l1.5%203%205.5-4%201%201-4%205.5%203%201.5v1H7.5C5.75%2024%205%2023.25%205%2021.5V16zm7-11v1l-3%201.5%204%205.5-1%201-5.5-4L6%2013H5V7.5C5%205.75%205.75%205%207.5%205zm11%202.5c0-1.75-.75-2.5-2.5-2.5H16v1l3%201.5-4%205.5%201%201%205.5-4%201.5%203h1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M18.5%2016c-1.75%200-2.5.75-2.5%202.5V24h1l1.5-3%205.5%204%201-1-4-5.5%203-1.5v-1zM13%2018.5c0-1.75-.75-2.5-2.5-2.5H5v1l3%201.5L4%2024l1%201%205.5-4%201.5%203h1zm3-8c0%201.75.75%202.5%202.5%202.5H24v-1l-3-1.5L25%205l-1-1-5.5%204L17%205h-1zM10.5%2013c1.75%200%202.5-.75%202.5-2.5V5h-1l-1.5%203L5%204%204%205l4%205.5L5%2012v1z%22%2F%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M24%2016v5.5c0%201.75-.75%202.5-2.5%202.5H16v-1l3-1.5-4-5.5%201-1%205.5%204%201.5-3zM6%2016l1.5%203%205.5-4%201%201-4%205.5%203%201.5v1H7.5C5.75%2024%205%2023.25%205%2021.5V16zm7-11v1l-3%201.5%204%205.5-1%201-5.5-4L6%2013H5V7.5C5%205.75%205.75%205%207.5%205zm11%202.5c0-1.75-.75-2.5-2.5-2.5H16v1l3%201.5-4%205.5%201%201%205.5-4%201.5%203h1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M18.5%2016c-1.75%200-2.5.75-2.5%202.5V24h1l1.5-3%205.5%204%201-1-4-5.5%203-1.5v-1zM13%2018.5c0-1.75-.75-2.5-2.5-2.5H5v1l3%201.5L4%2024l1%201%205.5-4%201.5%203h1zm3-8c0%201.75.75%202.5%202.5%202.5H24v-1l-3-1.5L25%205l-1-1-5.5%204L17%205h-1zM10.5%2013c1.75%200%202.5-.75%202.5-2.5V5h-1l-1.5%203L5%204%204%205l4%205.5L5%2012v1z%22%2F%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22m10.5%2014%204-8%204%208z%22%2F%3E%3Cpath%20fill%3D%22%23ccc%22%20d%3D%22m10.5%2016%204%208%204-8z%22%2F%3E%3C%2Fsvg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22m10.5%2014%204-8%204%208z%22%2F%3E%3Cpath%20fill%3D%22%23ccc%22%20d%3D%22m10.5%2016%204%208%204-8z%22%2F%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22m10.5%2014%204-8%204%208z%22%2F%3E%3Cpath%20fill%3D%22%23ccc%22%20d%3D%22m10.5%2016%204%208%204-8z%22%2F%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-globe .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2222%22%20height%3D%2222%22%20fill%3D%22none%22%20stroke%3D%22%23333%22%20viewBox%3D%220%200%2022%2022%22%3E%3Ccircle%20cx%3D%2211%22%20cy%3D%2211%22%20r%3D%228.5%22%2F%3E%3Cpath%20d%3D%22M17.5%2011c0%204.819-3.02%208.5-6.5%208.5S4.5%2015.819%204.5%2011%207.52%202.5%2011%202.5s6.5%203.681%206.5%208.5Z%22%2F%3E%3Cpath%20d%3D%22M13.5%2011c0%202.447-.331%204.64-.853%206.206-.262.785-.562%201.384-.872%201.777-.314.399-.58.517-.775.517s-.461-.118-.775-.517c-.31-.393-.61-.992-.872-1.777C8.831%2015.64%208.5%2013.446%208.5%2011s.331-4.64.853-6.206c.262-.785.562-1.384.872-1.777.314-.399.58-.517.775-.517s.461.118.775.517c.31.393.61.992.872%201.777.522%201.565.853%203.76.853%206.206Z%22%2F%3E%3Cpath%20d%3D%22M11%207.5c-1.909%200-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3%201.3%200%200%201-.224-.138q.07-.058.224-.138c.299-.151.763-.302%201.379-.434C7.378%205.666%209.091%205.5%2011%205.5s3.622.166%204.845.428c.616.132%201.08.283%201.379.434.105.053.177.1.224.138q-.07.058-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm0%209c-1.909%200-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3%201.3%200%200%201-.224-.138%201.3%201.3%200%200%201%20.224-.138c.299-.151.763-.302%201.379-.434C7.378%2014.666%209.091%2014.5%2011%2014.5s3.622.166%204.845.428c.616.132%201.08.283%201.379.434.105.053.177.1.224.138a1.3%201.3%200%200%201-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm0-4c-2.46%200-4.672-.222-6.255-.574-.796-.177-1.406-.38-1.805-.59a1.5%201.5%200%200%201-.39-.272.3.3%200%200%201-.047-.064.3.3%200%200%201%20.048-.064c.066-.073.189-.167.389-.272.399-.21%201.009-.413%201.805-.59C6.328%209.722%208.54%209.5%2011%209.5s4.672.222%206.256.574c.795.177%201.405.38%201.804.59.2.105.323.2.39.272a.3.3%200%200%201%20.047.064.3.3%200%200%201-.048.064%201.4%201.4%200%200%201-.389.272c-.399.21-1.009.413-1.804.59-1.584.352-3.796.574-6.256.574Zm-8.501-1.51v.002zm0%20.018v.002zm17.002.002v-.002zm0-.018v-.002z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-globe-enabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2222%22%20height%3D%2222%22%20fill%3D%22none%22%20stroke%3D%22%2333b5e5%22%20viewBox%3D%220%200%2022%2022%22%3E%3Ccircle%20cx%3D%2211%22%20cy%3D%2211%22%20r%3D%228.5%22%2F%3E%3Cpath%20d%3D%22M17.5%2011c0%204.819-3.02%208.5-6.5%208.5S4.5%2015.819%204.5%2011%207.52%202.5%2011%202.5s6.5%203.681%206.5%208.5Z%22%2F%3E%3Cpath%20d%3D%22M13.5%2011c0%202.447-.331%204.64-.853%206.206-.262.785-.562%201.384-.872%201.777-.314.399-.58.517-.775.517s-.461-.118-.775-.517c-.31-.393-.61-.992-.872-1.777C8.831%2015.64%208.5%2013.446%208.5%2011s.331-4.64.853-6.206c.262-.785.562-1.384.872-1.777.314-.399.58-.517.775-.517s.461.118.775.517c.31.393.61.992.872%201.777.522%201.565.853%203.76.853%206.206Z%22%2F%3E%3Cpath%20d%3D%22M11%207.5c-1.909%200-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3%201.3%200%200%201-.224-.138q.07-.058.224-.138c.299-.151.763-.302%201.379-.434C7.378%205.666%209.091%205.5%2011%205.5s3.622.166%204.845.428c.616.132%201.08.283%201.379.434.105.053.177.1.224.138q-.07.058-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm0%209c-1.909%200-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3%201.3%200%200%201-.224-.138%201.3%201.3%200%200%201%20.224-.138c.299-.151.763-.302%201.379-.434C7.378%2014.666%209.091%2014.5%2011%2014.5s3.622.166%204.845.428c.616.132%201.08.283%201.379.434.105.053.177.1.224.138a1.3%201.3%200%200%201-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm0-4c-2.46%200-4.672-.222-6.255-.574-.796-.177-1.406-.38-1.805-.59a1.5%201.5%200%200%201-.39-.272.3.3%200%200%201-.047-.064.3.3%200%200%201%20.048-.064c.066-.073.189-.167.389-.272.399-.21%201.009-.413%201.805-.59C6.328%209.722%208.54%209.5%2011%209.5s4.672.222%206.256.574c.795.177%201.405.38%201.804.59.2.105.323.2.39.272a.3.3%200%200%201%20.047.064.3.3%200%200%201-.048.064%201.4%201.4%200%200%201-.389.272c-.399.21-1.009.413-1.804.59-1.584.352-3.796.574-6.256.574Zm-8.501-1.51v.002zm0%20.018v.002zm17.002.002v-.002zm0-.018v-.002z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-terrain .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2222%22%20height%3D%2222%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2022%2022%22%3E%3Cpath%20d%3D%22m1.754%2013.406%204.453-4.851%203.09%203.09%203.281%203.277.969-.969-3.309-3.312%203.844-4.121%206.148%206.886h1.082v-.855l-7.207-8.07-4.84%205.187L6.169%206.57l-5.48%205.965v.871ZM.688%2016.844h20.625v1.375H.688Zm0%200%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-terrain-enabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2222%22%20height%3D%2222%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2022%2022%22%3E%3Cpath%20d%3D%22m1.754%2013.406%204.453-4.851%203.09%203.09%203.281%203.277.969-.969-3.309-3.312%203.844-4.121%206.148%206.886h1.082v-.855l-7.207-8.07-4.84%205.187L6.169%206.57l-5.48%205.965v.871ZM.688%2016.844h20.625v1.375H.688Zm0%200%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23aaa%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3Cpath%20fill%3D%22red%22%20d%3D%22m14%205%201%201-9%209-1-1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23e58978%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23e54e33%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-waiting .maplibregl-ctrl-icon{animation:maplibregl-spin 2s linear infinite}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23999%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3Cpath%20fill%3D%22red%22%20d%3D%22m14%205%201%201-9%209-1-1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23e58978%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23e54e33%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23666%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3Cpath%20fill%3D%22red%22%20d%3D%22m14%205%201%201-9%209-1-1z%22%2F%3E%3C%2Fsvg%3E")}}@keyframes maplibregl-spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}a.maplibregl-ctrl-logo{width:88px;height:23px;margin:0 0 -4px -4px;display:block;background-repeat:no-repeat;cursor:pointer;overflow:hidden;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2288%22%20height%3D%2223%22%20fill%3D%22none%22%3E%3Cpath%20fill%3D%22%23000%22%20fill-opacity%3D%22.4%22%20fill-rule%3D%22evenodd%22%20d%3D%22M17.408%2016.796h-1.827l2.501-12.095h.198l3.324%206.533.988%202.19.988-2.19%203.258-6.533h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.929%205.644h-.098l-2.914-5.644-.757-1.71-.345%201.71zm1.958-3.42-.726%203.663a1.255%201.255%200%200%201-1.232%201.011h-1.827a1.255%201.255%200%200%201-1.229-1.509l2.501-12.095a1.255%201.255%200%200%201%201.23-1.001h.197a1.25%201.25%200%200%201%201.12.685l3.19%206.273%203.125-6.263a1.25%201.25%200%200%201%201.123-.695h.181a1.255%201.255%200%200%201%201.227.991l1.443%206.71a5%205%200%200%201%20.314-.787l.009-.016a4.6%204.6%200%200%201%201.777-1.887c.782-.46%201.668-.667%202.611-.667a4.6%204.6%200%200%201%201.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255%201.255%200%200%201%201.212.925%201.255%201.255%200%200%201%201.212-.925h1.711c.284%200%20.545.094.755.252.613-.3%201.312-.45%202.075-.45%201.356%200%202.557.445%203.482%201.4q.47.48.763%201.064V4.701a1.255%201.255%200%200%201%201.255-1.255h1.86A1.255%201.255%200%200%201%2054.44%204.7v9.194h2.217c.19%200%20.37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42%202.42%200%200%201-.682-1.71c0-.665.267-1.253.735-1.7a2.45%202.45%200%200%201%201.722-.674%202.43%202.43%200%200%201%201.705.675q.318.302.504.683V4.7a1.255%201.255%200%200%201%201.255-1.255h1.744A1.255%201.255%200%200%201%2065.812%204.7v3.335a4.8%204.8%200%200%201%201.526-.246c.938%200%201.817.214%202.59.69a4.47%204.47%200%200%201%201.67%201.743v-.98a1.255%201.255%200%200%201%201.256-1.256h1.777c.233%200%20.451.064.639.174a3.4%203.4%200%200%201%201.567-.372c.346%200%20.861.02%201.285.232a1.25%201.25%200%200%201%20.689%201.004%204.7%204.7%200%200%201%20.853-.588c.795-.44%201.675-.647%202.61-.647%201.385%200%202.65.39%203.525%201.396.836.938%201.168%202.173%201.168%203.528q-.001.515-.056%201.051a1.255%201.255%200%200%201-.947%201.09l.408.952a1.255%201.255%200%200%201-.477%201.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06%200-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8%205.8%200%200%201-.548-2.512q0-.429.053-.843a1.3%201.3%200%200%201-.333-.086l-.166-.004c-.223%200-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255%201.255%200%200%201-1.256%201.256h-1.777a1.255%201.255%200%200%201-1.256-1.256V15.69l-.032.057a4.8%204.8%200%200%201-1.86%201.833%205.04%205.04%200%200%201-2.484.634%204.5%204.5%200%200%201-1.935-.424%201.25%201.25%200%200%201-.764.258h-1.71a1.255%201.255%200%200%201-1.256-1.255V7.687a2.4%202.4%200%200%201-.428.625c.253.23.412.561.412.93v7.553a1.255%201.255%200%200%201-1.256%201.255h-1.843a1.25%201.25%200%200%201-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255%201.255%200%200%201-1.256-1.255v-1.251l-.061.117a4.7%204.7%200%200%201-1.782%201.884%204.77%204.77%200%200%201-2.485.67%205.6%205.6%200%200%201-1.485-.188l.009%202.764a1.255%201.255%200%200%201-1.255%201.259h-1.729a1.255%201.255%200%200%201-1.255-1.255v-3.537a1.255%201.255%200%200%201-1.167.793h-1.679a1.25%201.25%200%200%201-.77-.263%204.5%204.5%200%200%201-1.945.429c-.885%200-1.724-.21-2.495-.632l-.017-.01a5%205%200%200%201-1.081-.836%201.255%201.255%200%200%201-1.254%201.312h-1.81a1.255%201.255%200%200%201-1.228-.99l-.782-3.625-2.044%203.939a1.25%201.25%200%200%201-1.115.676h-.098a1.25%201.25%200%200%201-1.116-.68l-2.061-3.994zM35.92%2016.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033%201.332h1.678V9.242h-1.694l-.033%201.267q-.133-.329-.526-.658l-.032-.028a3.2%203.2%200%200%200-.668-.428l-.27-.12a3.3%203.3%200%200%200-1.235-.23q-1.136-.001-1.974.493a3.36%203.36%200%200%200-1.3%201.382q-.445.89-.444%202.074%200%201.2.51%202.107a3.8%203.8%200%200%200%201.382%201.381%203.9%203.9%200%200%200%201.893.477q.795%200%201.455-.33zm-2.789-5.38q-.576.675-.575%201.762%200%201.102.559%201.794.576.675%201.645.675a2.25%202.25%200%200%200%20.934-.19%202.2%202.2%200%200%200%20.468-.29l.178-.161a2.2%202.2%200%200%200%20.397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2%202.2%200%200%200-.633-.709l-.13-.086-.047-.028a2.1%202.1%200%200%200-1.073-.285q-1.052%200-1.629.692zm2.316%202.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96%200%200%200-.353-.389.85.85%200%200%200-.464-.127c-.4%200-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945%200%20.506.122.801.27.99.097.11.266.224.68.224.303%200%20.504-.09.687-.269zm7.545%201.705a2.6%202.6%200%200%200%20.331.423q.319.33.755.548l.173.074q.65.255%201.49.255%201.02%200%201.844-.493a3.45%203.45%200%200%200%201.316-1.4q.493-.904.493-2.089%200-1.909-.988-2.913-.988-1.02-2.584-1.02-.898%200-1.575.347a3%203%200%200%200-.415.262l-.199.166a3.4%203.4%200%200%200-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296%201.119.297%201.07%200%201.645-.675.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.435%200-.835.16a2%202%200%200%200-.284.136%202%202%200%200%200-.363.254%202.2%202.2%200%200%200-.46.569l-.082.162a2.6%202.6%200%200%200-.213%201.072v.115q0%20.707.296%201.267l.135.211zm.964-.818a1.1%201.1%200%200%200%20.367.385.94.94%200%200%200%20.476.118c.423%200%20.59-.117.687-.23.159-.194.28-.478.28-.95%200-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1%201%200%200%200-.503.135l-.012.007a.86.86%200%200%200-.335.343c-.073.133-.132.324-.132.614v.115a1.4%201.4%200%200%200%20.14.66zm15.7-6.222q.347-.346.346-.856a1.05%201.05%200%200%200-.345-.79%201.18%201.18%200%200%200-.84-.329q-.51%200-.855.33a1.05%201.05%200%200%200-.346.79q0%20.51.346.855.345.346.856.346.51%200%20.839-.346zm4.337%209.314.033-1.332q.191.403.59.747l.098.081a4%204%200%200%200%20.316.224l.223.122a3.2%203.2%200%200%200%201.44.322%203.8%203.8%200%200%200%201.875-.477%203.5%203.5%200%200%200%201.382-1.366q.527-.89.526-2.09%200-1.184-.444-2.073a3.24%203.24%200%200%200-1.283-1.399q-.823-.51-1.942-.51a3.5%203.5%200%200%200-1.527.344l-.086.043-.165.09a3%203%200%200%200-.33.214q-.432.315-.656.707a2%202%200%200%200-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5%202.5%200%200%200%20.566.7q.117.098.245.18l.144.08a2.1%202.1%200%200%200%20.975.232q1.07%200%201.645-.675.576-.69.576-1.778%200-1.102-.576-1.777-.56-.691-1.645-.692a2.2%202.2%200%200%200-1.015.235q-.22.113-.415.282l-.15.142a2.1%202.1%200%200%200-.42.594q-.223.479-.223%201.1v.115q0%20.705.293%201.26zm2.616-.293c.157-.191.28-.479.28-.967%200-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87%200%200%200-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0%20.285.057.499.144.669a1.1%201.1%200%200%200%20.367.405c.137.082.28.123.455.123.423%200%20.59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493%200%20.642.099l.247-1.794q-.196-.099-.717-.099a2.3%202.3%200%200%200-.545.063%202%202%200%200%200-.411.148%202.2%202.2%200%200%200-.4.249%202.5%202.5%200%200%200-.485.499%202.7%202.7%200%200%200-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5%201.5%200%200%201%20.466-.636%202.5%202.5%200%200%201%20.399-.253%202%202%200%200%201%20.224-.099zm9.784%202.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46%203.46%200%200%200-1.4%201.382q-.493.906-.493%202.106%200%201.07.428%201.975.428.89%201.332%201.432.906.526%202.255.526.973%200%201.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954%200-1.497-.444a1.6%201.6%200%200%201-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1%201%200%200%200-.156-.176q-.46-.428-1.316-.428-.986%200-1.494.604-.379.45-.494%201.234zm-27.053%202.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z%22%2F%3E%3Cpath%20fill%3D%22%23fff%22%20d%3D%22m19.63%2011.151-.757-1.71-.345%201.71-1.12%205.644h-1.827L18.083%204.7h.197l3.325%206.533.988%202.19.988-2.19L26.839%204.7h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.93%205.644h-.098l-2.913-5.644zm14.836%205.81q-1.02%200-1.893-.478a3.8%203.8%200%200%201-1.381-1.382q-.51-.906-.51-2.106%200-1.185.444-2.074a3.36%203.36%200%200%201%201.3-1.382q.839-.494%201.974-.494a3.3%203.3%200%200%201%201.234.231%203.3%203.3%200%200%201%20.97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02%201.053a3.17%203.17%200%200%201-1.662.444zm.296-1.482q.938%200%201.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2%202.2%200%200%200-.807-.872%202.1%202.1%200%200%200-1.119-.313q-1.053%200-1.629.692-.575.675-.575%201.76%200%201.103.559%201.795.577.675%201.645.675zm6.521-6.237h1.711v1.4q.906-1.597%202.83-1.597%201.596%200%202.584%201.02.988%201.005.988%202.914%200%201.185-.493%202.09a3.46%203.46%200%200%201-1.316%201.399%203.5%203.5%200%200%201-1.844.493q-.954%200-1.662-.329a2.67%202.67%200%200%201-1.086-.97l.017%205.134h-1.728zm4.048%206.22q1.07%200%201.645-.674.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.592%200-1.12.296-.51.28-.822.823-.296.527-.296%201.234v.115q0%20.708.296%201.267.313.543.823.855.51.296%201.119.297z%22%2F%3E%3Cpath%20fill%3D%22%23e1e3e9%22%20d%3D%22M51.325%204.7h1.86v10.45h3.473v1.646h-5.333zm7.12%204.542h1.843v7.553h-1.843zm.905-1.415a1.16%201.16%200%200%201-.856-.346%201.17%201.17%200%200%201-.346-.856%201.05%201.05%200%200%201%20.346-.79q.346-.329.856-.329.494%200%20.839.33a1.05%201.05%200%200%201%20.345.79%201.16%201.16%200%200%201-.345.855q-.33.346-.84.346zm7.875%209.133a3.17%203.17%200%200%201-1.662-.444q-.723-.46-1.004-1.053l-.033%201.332h-1.71V4.701h1.743v4.657l-.082%201.283q.279-.658%201.086-1.119a3.5%203.5%200%200%201%201.778-.477q1.119%200%201.942.51a3.24%203.24%200%200%201%201.283%201.4q.445.888.444%202.072%200%201.201-.526%202.09a3.5%203.5%200%200%201-1.382%201.366%203.8%203.8%200%200%201-1.876.477zm-.296-1.481q1.069%200%201.645-.675.577-.69.577-1.778%200-1.102-.577-1.776-.56-.691-1.645-.692a2.12%202.12%200%200%200-1.58.659q-.642.641-.642%201.694v.115q0%20.71.296%201.267a2.4%202.4%200%200%200%20.807.872%202.1%202.1%200%200%200%201.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14%202.14%200%200%201%201.349-.46q.527%200%20.724.098l-.247%201.794q-.149-.099-.642-.099-.774%200-1.416.494-.626.493-.626%201.58v3.883h-1.777V9.242zm9.534%207.718q-1.35%200-2.255-.526-.904-.543-1.332-1.432a4.6%204.6%200%200%201-.428-1.975q0-1.2.493-2.106a3.46%203.46%200%200%201%201.4-1.382q.889-.495%202.007-.494%201.744%200%202.584.97.855.956.856%202.7%200%20.444-.05.92h-5.43q.18%201.005.708%201.45.542.443%201.497.443.79%200%201.3-.131a4%204%200%200%200%20.938-.362l.542%201.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728%200-1.991%201.86z%22%2F%3E%3Cpath%20d%3D%22M5.074%2015.948a.484.657%200%200%200-.486.659v1.84a.484.657%200%200%200%20.486.659h4.101a.484.657%200%200%200%20.486-.659v-1.84a.484.657%200%200%200-.486-.659zm3.56%201.16H5.617v.838h3.017z%22%20style%3D%22fill%3A%23fff%3Bfill-rule%3Aevenodd%3Bstroke-width%3A1.03600001%22%2F%3E%3Cg%20style%3D%22stroke-width%3A1.12603545%22%3E%3Cpath%20d%3D%22M-9.408-1.416c-3.833-.025-7.056%202.912-7.08%206.615-.02%203.08%201.653%204.832%203.107%206.268.903.892%201.721%201.74%202.32%202.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87%201.87%200%200%200-.362%201.121l-.011%201.877c-.003.402.104.787.347%201.125.244.338.688.653%201.23.656l4.142.028c.542.003.99-.306%201.238-.641a1.87%201.87%200%200%200%20.363-1.121l.012-1.875a1.87%201.87%200%200%200-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145%201.425-1.983%202.348-2.87%201.473-1.414%203.18-3.149%203.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006%201.1v.002c3.274.02%205.92%202.532%205.9%205.6-.017%202.706-1.39%204.026-2.863%205.44-1.034.994-2.118%202.033-2.814%203.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34%200%200%201-.226.084.34.34%200%200%201-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067%202.7-5.545%205.975-5.523m-.02%202.826c-1.62-.01-2.944%201.315-2.955%202.96-.01%201.646%201.295%202.988%202.916%202.999h.002c1.621.01%202.943-1.316%202.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005%201.1c1.017.006%201.829.83%201.822%201.89s-.83%201.874-1.848%201.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874%201.848-1.868m-2.155%2011.857%204.14.025c.271.002.49.305.487.676l-.013%201.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668%22%20style%3D%22color%3A%23000%3Bfont-style%3Anormal%3Bfont-variant%3Anormal%3Bfont-weight%3A400%3Bfont-stretch%3Anormal%3Bfont-size%3Amedium%3Bline-height%3Anormal%3Bfont-family%3Asans-serif%3Bfont-variant-ligatures%3Anormal%3Bfont-variant-position%3Anormal%3Bfont-variant-caps%3Anormal%3Bfont-variant-numeric%3Anormal%3Bfont-variant-alternates%3Anormal%3Bfont-feature-settings%3Anormal%3Btext-indent%3A0%3Btext-align%3Astart%3Btext-decoration%3Anone%3Btext-decoration-line%3Anone%3Btext-decoration-style%3Asolid%3Btext-decoration-color%3A%23000%3Bletter-spacing%3Anormal%3Bword-spacing%3Anormal%3Btext-transform%3Anone%3Bwriting-mode%3Alr-tb%3Bdirection%3Altr%3Btext-orientation%3Amixed%3Bdominant-baseline%3Aauto%3Bbaseline-shift%3Abaseline%3Btext-anchor%3Astart%3Bwhite-space%3Anormal%3Bshape-padding%3A0%3Bclip-rule%3Aevenodd%3Bdisplay%3Ainline%3Boverflow%3Avisible%3Bvisibility%3Avisible%3Bopacity%3A1%3Bisolation%3Aauto%3Bmix-blend-mode%3Anormal%3Bcolor-interpolation%3AsRGB%3Bcolor-interpolation-filters%3AlinearRGB%3Bsolid-color%3A%23000%3Bsolid-opacity%3A1%3Bvector-effect%3Anone%3Bfill%3A%23000%3Bfill-opacity%3A.4%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-linecap%3Abutt%3Bstroke-linejoin%3Amiter%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-dashoffset%3A0%3Bstroke-opacity%3A1%3Bcolor-rendering%3Aauto%3Bimage-rendering%3Aauto%3Bshape-rendering%3Aauto%3Btext-rendering%3Aauto%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-9.415-.316C-12.69-.338-15.37%202.14-15.39%205.207c-.017%202.716%201.326%204.041%202.78%205.477%201.013%201%202.081%202.055%202.78%203.67l.092.076a.34.34%200%200%200%20.225.086.34.34%200%200%200%20.227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6%201.78-2.64%202.814-3.634%201.473-1.414%202.847-2.733%202.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057%208.784c1.621.011%202.944-1.315%202.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945%201.315-2.955%202.96s1.295%202.989%202.916%203%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23e1e3e9%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-11.594%2015.465c-.27-.002-.492.297-.494.668l-.012%201.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23fff%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E")}a.maplibregl-ctrl-logo.maplibregl-compact{width:14px}@media (forced-colors:active){a.maplibregl-ctrl-logo{background-color:transparent;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2288%22%20height%3D%2223%22%20fill%3D%22none%22%3E%3Cpath%20fill%3D%22%23000%22%20fill-opacity%3D%22.4%22%20fill-rule%3D%22evenodd%22%20d%3D%22M17.408%2016.796h-1.827l2.501-12.095h.198l3.324%206.533.988%202.19.988-2.19%203.258-6.533h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.929%205.644h-.098l-2.914-5.644-.757-1.71-.345%201.71zm1.958-3.42-.726%203.663a1.255%201.255%200%200%201-1.232%201.011h-1.827a1.255%201.255%200%200%201-1.229-1.509l2.501-12.095a1.255%201.255%200%200%201%201.23-1.001h.197a1.25%201.25%200%200%201%201.12.685l3.19%206.273%203.125-6.263a1.25%201.25%200%200%201%201.123-.695h.181a1.255%201.255%200%200%201%201.227.991l1.443%206.71a5%205%200%200%201%20.314-.787l.009-.016a4.6%204.6%200%200%201%201.777-1.887c.782-.46%201.668-.667%202.611-.667a4.6%204.6%200%200%201%201.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255%201.255%200%200%201%201.212.925%201.255%201.255%200%200%201%201.212-.925h1.711c.284%200%20.545.094.755.252.613-.3%201.312-.45%202.075-.45%201.356%200%202.557.445%203.482%201.4q.47.48.763%201.064V4.701a1.255%201.255%200%200%201%201.255-1.255h1.86A1.255%201.255%200%200%201%2054.44%204.7v9.194h2.217c.19%200%20.37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42%202.42%200%200%201-.682-1.71c0-.665.267-1.253.735-1.7a2.45%202.45%200%200%201%201.722-.674%202.43%202.43%200%200%201%201.705.675q.318.302.504.683V4.7a1.255%201.255%200%200%201%201.255-1.255h1.744A1.255%201.255%200%200%201%2065.812%204.7v3.335a4.8%204.8%200%200%201%201.526-.246c.938%200%201.817.214%202.59.69a4.47%204.47%200%200%201%201.67%201.743v-.98a1.255%201.255%200%200%201%201.256-1.256h1.777c.233%200%20.451.064.639.174a3.4%203.4%200%200%201%201.567-.372c.346%200%20.861.02%201.285.232a1.25%201.25%200%200%201%20.689%201.004%204.7%204.7%200%200%201%20.853-.588c.795-.44%201.675-.647%202.61-.647%201.385%200%202.65.39%203.525%201.396.836.938%201.168%202.173%201.168%203.528q-.001.515-.056%201.051a1.255%201.255%200%200%201-.947%201.09l.408.952a1.255%201.255%200%200%201-.477%201.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06%200-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8%205.8%200%200%201-.548-2.512q0-.429.053-.843a1.3%201.3%200%200%201-.333-.086l-.166-.004c-.223%200-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255%201.255%200%200%201-1.256%201.256h-1.777a1.255%201.255%200%200%201-1.256-1.256V15.69l-.032.057a4.8%204.8%200%200%201-1.86%201.833%205.04%205.04%200%200%201-2.484.634%204.5%204.5%200%200%201-1.935-.424%201.25%201.25%200%200%201-.764.258h-1.71a1.255%201.255%200%200%201-1.256-1.255V7.687a2.4%202.4%200%200%201-.428.625c.253.23.412.561.412.93v7.553a1.255%201.255%200%200%201-1.256%201.255h-1.843a1.25%201.25%200%200%201-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255%201.255%200%200%201-1.256-1.255v-1.251l-.061.117a4.7%204.7%200%200%201-1.782%201.884%204.77%204.77%200%200%201-2.485.67%205.6%205.6%200%200%201-1.485-.188l.009%202.764a1.255%201.255%200%200%201-1.255%201.259h-1.729a1.255%201.255%200%200%201-1.255-1.255v-3.537a1.255%201.255%200%200%201-1.167.793h-1.679a1.25%201.25%200%200%201-.77-.263%204.5%204.5%200%200%201-1.945.429c-.885%200-1.724-.21-2.495-.632l-.017-.01a5%205%200%200%201-1.081-.836%201.255%201.255%200%200%201-1.254%201.312h-1.81a1.255%201.255%200%200%201-1.228-.99l-.782-3.625-2.044%203.939a1.25%201.25%200%200%201-1.115.676h-.098a1.25%201.25%200%200%201-1.116-.68l-2.061-3.994zM35.92%2016.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033%201.332h1.678V9.242h-1.694l-.033%201.267q-.133-.329-.526-.658l-.032-.028a3.2%203.2%200%200%200-.668-.428l-.27-.12a3.3%203.3%200%200%200-1.235-.23q-1.136-.001-1.974.493a3.36%203.36%200%200%200-1.3%201.382q-.445.89-.444%202.074%200%201.2.51%202.107a3.8%203.8%200%200%200%201.382%201.381%203.9%203.9%200%200%200%201.893.477q.795%200%201.455-.33zm-2.789-5.38q-.576.675-.575%201.762%200%201.102.559%201.794.576.675%201.645.675a2.25%202.25%200%200%200%20.934-.19%202.2%202.2%200%200%200%20.468-.29l.178-.161a2.2%202.2%200%200%200%20.397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2%202.2%200%200%200-.633-.709l-.13-.086-.047-.028a2.1%202.1%200%200%200-1.073-.285q-1.052%200-1.629.692zm2.316%202.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96%200%200%200-.353-.389.85.85%200%200%200-.464-.127c-.4%200-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945%200%20.506.122.801.27.99.097.11.266.224.68.224.303%200%20.504-.09.687-.269zm7.545%201.705a2.6%202.6%200%200%200%20.331.423q.319.33.755.548l.173.074q.65.255%201.49.255%201.02%200%201.844-.493a3.45%203.45%200%200%200%201.316-1.4q.493-.904.493-2.089%200-1.909-.988-2.913-.988-1.02-2.584-1.02-.898%200-1.575.347a3%203%200%200%200-.415.262l-.199.166a3.4%203.4%200%200%200-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296%201.119.297%201.07%200%201.645-.675.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.435%200-.835.16a2%202%200%200%200-.284.136%202%202%200%200%200-.363.254%202.2%202.2%200%200%200-.46.569l-.082.162a2.6%202.6%200%200%200-.213%201.072v.115q0%20.707.296%201.267l.135.211zm.964-.818a1.1%201.1%200%200%200%20.367.385.94.94%200%200%200%20.476.118c.423%200%20.59-.117.687-.23.159-.194.28-.478.28-.95%200-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1%201%200%200%200-.503.135l-.012.007a.86.86%200%200%200-.335.343c-.073.133-.132.324-.132.614v.115a1.4%201.4%200%200%200%20.14.66zm15.7-6.222q.347-.346.346-.856a1.05%201.05%200%200%200-.345-.79%201.18%201.18%200%200%200-.84-.329q-.51%200-.855.33a1.05%201.05%200%200%200-.346.79q0%20.51.346.855.345.346.856.346.51%200%20.839-.346zm4.337%209.314.033-1.332q.191.403.59.747l.098.081a4%204%200%200%200%20.316.224l.223.122a3.2%203.2%200%200%200%201.44.322%203.8%203.8%200%200%200%201.875-.477%203.5%203.5%200%200%200%201.382-1.366q.527-.89.526-2.09%200-1.184-.444-2.073a3.24%203.24%200%200%200-1.283-1.399q-.823-.51-1.942-.51a3.5%203.5%200%200%200-1.527.344l-.086.043-.165.09a3%203%200%200%200-.33.214q-.432.315-.656.707a2%202%200%200%200-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5%202.5%200%200%200%20.566.7q.117.098.245.18l.144.08a2.1%202.1%200%200%200%20.975.232q1.07%200%201.645-.675.576-.69.576-1.778%200-1.102-.576-1.777-.56-.691-1.645-.692a2.2%202.2%200%200%200-1.015.235q-.22.113-.415.282l-.15.142a2.1%202.1%200%200%200-.42.594q-.223.479-.223%201.1v.115q0%20.705.293%201.26zm2.616-.293c.157-.191.28-.479.28-.967%200-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87%200%200%200-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0%20.285.057.499.144.669a1.1%201.1%200%200%200%20.367.405c.137.082.28.123.455.123.423%200%20.59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493%200%20.642.099l.247-1.794q-.196-.099-.717-.099a2.3%202.3%200%200%200-.545.063%202%202%200%200%200-.411.148%202.2%202.2%200%200%200-.4.249%202.5%202.5%200%200%200-.485.499%202.7%202.7%200%200%200-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5%201.5%200%200%201%20.466-.636%202.5%202.5%200%200%201%20.399-.253%202%202%200%200%201%20.224-.099zm9.784%202.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46%203.46%200%200%200-1.4%201.382q-.493.906-.493%202.106%200%201.07.428%201.975.428.89%201.332%201.432.906.526%202.255.526.973%200%201.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954%200-1.497-.444a1.6%201.6%200%200%201-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1%201%200%200%200-.156-.176q-.46-.428-1.316-.428-.986%200-1.494.604-.379.45-.494%201.234zm-27.053%202.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z%22%2F%3E%3Cpath%20fill%3D%22%23fff%22%20d%3D%22m19.63%2011.151-.757-1.71-.345%201.71-1.12%205.644h-1.827L18.083%204.7h.197l3.325%206.533.988%202.19.988-2.19L26.839%204.7h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.93%205.644h-.098l-2.913-5.644zm14.836%205.81q-1.02%200-1.893-.478a3.8%203.8%200%200%201-1.381-1.382q-.51-.906-.51-2.106%200-1.185.444-2.074a3.36%203.36%200%200%201%201.3-1.382q.839-.494%201.974-.494a3.3%203.3%200%200%201%201.234.231%203.3%203.3%200%200%201%20.97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02%201.053a3.17%203.17%200%200%201-1.662.444zm.296-1.482q.938%200%201.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2%202.2%200%200%200-.807-.872%202.1%202.1%200%200%200-1.119-.313q-1.053%200-1.629.692-.575.675-.575%201.76%200%201.103.559%201.795.577.675%201.645.675zm6.521-6.237h1.711v1.4q.906-1.597%202.83-1.597%201.596%200%202.584%201.02.988%201.005.988%202.914%200%201.185-.493%202.09a3.46%203.46%200%200%201-1.316%201.399%203.5%203.5%200%200%201-1.844.493q-.954%200-1.662-.329a2.67%202.67%200%200%201-1.086-.97l.017%205.134h-1.728zm4.048%206.22q1.07%200%201.645-.674.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.592%200-1.12.296-.51.28-.822.823-.296.527-.296%201.234v.115q0%20.708.296%201.267.313.543.823.855.51.296%201.119.297z%22%2F%3E%3Cpath%20fill%3D%22%23e1e3e9%22%20d%3D%22M51.325%204.7h1.86v10.45h3.473v1.646h-5.333zm7.12%204.542h1.843v7.553h-1.843zm.905-1.415a1.16%201.16%200%200%201-.856-.346%201.17%201.17%200%200%201-.346-.856%201.05%201.05%200%200%201%20.346-.79q.346-.329.856-.329.494%200%20.839.33a1.05%201.05%200%200%201%20.345.79%201.16%201.16%200%200%201-.345.855q-.33.346-.84.346zm7.875%209.133a3.17%203.17%200%200%201-1.662-.444q-.723-.46-1.004-1.053l-.033%201.332h-1.71V4.701h1.743v4.657l-.082%201.283q.279-.658%201.086-1.119a3.5%203.5%200%200%201%201.778-.477q1.119%200%201.942.51a3.24%203.24%200%200%201%201.283%201.4q.445.888.444%202.072%200%201.201-.526%202.09a3.5%203.5%200%200%201-1.382%201.366%203.8%203.8%200%200%201-1.876.477zm-.296-1.481q1.069%200%201.645-.675.577-.69.577-1.778%200-1.102-.577-1.776-.56-.691-1.645-.692a2.12%202.12%200%200%200-1.58.659q-.642.641-.642%201.694v.115q0%20.71.296%201.267a2.4%202.4%200%200%200%20.807.872%202.1%202.1%200%200%200%201.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14%202.14%200%200%201%201.349-.46q.527%200%20.724.098l-.247%201.794q-.149-.099-.642-.099-.774%200-1.416.494-.626.493-.626%201.58v3.883h-1.777V9.242zm9.534%207.718q-1.35%200-2.255-.526-.904-.543-1.332-1.432a4.6%204.6%200%200%201-.428-1.975q0-1.2.493-2.106a3.46%203.46%200%200%201%201.4-1.382q.889-.495%202.007-.494%201.744%200%202.584.97.855.956.856%202.7%200%20.444-.05.92h-5.43q.18%201.005.708%201.45.542.443%201.497.443.79%200%201.3-.131a4%204%200%200%200%20.938-.362l.542%201.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728%200-1.991%201.86z%22%2F%3E%3Cpath%20d%3D%22M5.074%2015.948a.484.657%200%200%200-.486.659v1.84a.484.657%200%200%200%20.486.659h4.101a.484.657%200%200%200%20.486-.659v-1.84a.484.657%200%200%200-.486-.659zm3.56%201.16H5.617v.838h3.017z%22%20style%3D%22fill%3A%23fff%3Bfill-rule%3Aevenodd%3Bstroke-width%3A1.03600001%22%2F%3E%3Cg%20style%3D%22stroke-width%3A1.12603545%22%3E%3Cpath%20d%3D%22M-9.408-1.416c-3.833-.025-7.056%202.912-7.08%206.615-.02%203.08%201.653%204.832%203.107%206.268.903.892%201.721%201.74%202.32%202.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87%201.87%200%200%200-.362%201.121l-.011%201.877c-.003.402.104.787.347%201.125.244.338.688.653%201.23.656l4.142.028c.542.003.99-.306%201.238-.641a1.87%201.87%200%200%200%20.363-1.121l.012-1.875a1.87%201.87%200%200%200-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145%201.425-1.983%202.348-2.87%201.473-1.414%203.18-3.149%203.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006%201.1v.002c3.274.02%205.92%202.532%205.9%205.6-.017%202.706-1.39%204.026-2.863%205.44-1.034.994-2.118%202.033-2.814%203.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34%200%200%201-.226.084.34.34%200%200%201-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067%202.7-5.545%205.975-5.523m-.02%202.826c-1.62-.01-2.944%201.315-2.955%202.96-.01%201.646%201.295%202.988%202.916%202.999h.002c1.621.01%202.943-1.316%202.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005%201.1c1.017.006%201.829.83%201.822%201.89s-.83%201.874-1.848%201.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874%201.848-1.868m-2.155%2011.857%204.14.025c.271.002.49.305.487.676l-.013%201.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668%22%20style%3D%22color%3A%23000%3Bfont-style%3Anormal%3Bfont-variant%3Anormal%3Bfont-weight%3A400%3Bfont-stretch%3Anormal%3Bfont-size%3Amedium%3Bline-height%3Anormal%3Bfont-family%3Asans-serif%3Bfont-variant-ligatures%3Anormal%3Bfont-variant-position%3Anormal%3Bfont-variant-caps%3Anormal%3Bfont-variant-numeric%3Anormal%3Bfont-variant-alternates%3Anormal%3Bfont-feature-settings%3Anormal%3Btext-indent%3A0%3Btext-align%3Astart%3Btext-decoration%3Anone%3Btext-decoration-line%3Anone%3Btext-decoration-style%3Asolid%3Btext-decoration-color%3A%23000%3Bletter-spacing%3Anormal%3Bword-spacing%3Anormal%3Btext-transform%3Anone%3Bwriting-mode%3Alr-tb%3Bdirection%3Altr%3Btext-orientation%3Amixed%3Bdominant-baseline%3Aauto%3Bbaseline-shift%3Abaseline%3Btext-anchor%3Astart%3Bwhite-space%3Anormal%3Bshape-padding%3A0%3Bclip-rule%3Aevenodd%3Bdisplay%3Ainline%3Boverflow%3Avisible%3Bvisibility%3Avisible%3Bopacity%3A1%3Bisolation%3Aauto%3Bmix-blend-mode%3Anormal%3Bcolor-interpolation%3AsRGB%3Bcolor-interpolation-filters%3AlinearRGB%3Bsolid-color%3A%23000%3Bsolid-opacity%3A1%3Bvector-effect%3Anone%3Bfill%3A%23000%3Bfill-opacity%3A.4%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-linecap%3Abutt%3Bstroke-linejoin%3Amiter%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-dashoffset%3A0%3Bstroke-opacity%3A1%3Bcolor-rendering%3Aauto%3Bimage-rendering%3Aauto%3Bshape-rendering%3Aauto%3Btext-rendering%3Aauto%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-9.415-.316C-12.69-.338-15.37%202.14-15.39%205.207c-.017%202.716%201.326%204.041%202.78%205.477%201.013%201%202.081%202.055%202.78%203.67l.092.076a.34.34%200%200%200%20.225.086.34.34%200%200%200%20.227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6%201.78-2.64%202.814-3.634%201.473-1.414%202.847-2.733%202.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057%208.784c1.621.011%202.944-1.315%202.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945%201.315-2.955%202.96s1.295%202.989%202.916%203%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23e1e3e9%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-11.594%2015.465c-.27-.002-.492.297-.494.668l-.012%201.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23fff%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){a.maplibregl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2288%22%20height%3D%2223%22%20fill%3D%22none%22%3E%3Cpath%20fill%3D%22%23000%22%20fill-opacity%3D%22.4%22%20fill-rule%3D%22evenodd%22%20d%3D%22M17.408%2016.796h-1.827l2.501-12.095h.198l3.324%206.533.988%202.19.988-2.19%203.258-6.533h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.929%205.644h-.098l-2.914-5.644-.757-1.71-.345%201.71zm1.958-3.42-.726%203.663a1.255%201.255%200%200%201-1.232%201.011h-1.827a1.255%201.255%200%200%201-1.229-1.509l2.501-12.095a1.255%201.255%200%200%201%201.23-1.001h.197a1.25%201.25%200%200%201%201.12.685l3.19%206.273%203.125-6.263a1.25%201.25%200%200%201%201.123-.695h.181a1.255%201.255%200%200%201%201.227.991l1.443%206.71a5%205%200%200%201%20.314-.787l.009-.016a4.6%204.6%200%200%201%201.777-1.887c.782-.46%201.668-.667%202.611-.667a4.6%204.6%200%200%201%201.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255%201.255%200%200%201%201.212.925%201.255%201.255%200%200%201%201.212-.925h1.711c.284%200%20.545.094.755.252.613-.3%201.312-.45%202.075-.45%201.356%200%202.557.445%203.482%201.4q.47.48.763%201.064V4.701a1.255%201.255%200%200%201%201.255-1.255h1.86A1.255%201.255%200%200%201%2054.44%204.7v9.194h2.217c.19%200%20.37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42%202.42%200%200%201-.682-1.71c0-.665.267-1.253.735-1.7a2.45%202.45%200%200%201%201.722-.674%202.43%202.43%200%200%201%201.705.675q.318.302.504.683V4.7a1.255%201.255%200%200%201%201.255-1.255h1.744A1.255%201.255%200%200%201%2065.812%204.7v3.335a4.8%204.8%200%200%201%201.526-.246c.938%200%201.817.214%202.59.69a4.47%204.47%200%200%201%201.67%201.743v-.98a1.255%201.255%200%200%201%201.256-1.256h1.777c.233%200%20.451.064.639.174a3.4%203.4%200%200%201%201.567-.372c.346%200%20.861.02%201.285.232a1.25%201.25%200%200%201%20.689%201.004%204.7%204.7%200%200%201%20.853-.588c.795-.44%201.675-.647%202.61-.647%201.385%200%202.65.39%203.525%201.396.836.938%201.168%202.173%201.168%203.528q-.001.515-.056%201.051a1.255%201.255%200%200%201-.947%201.09l.408.952a1.255%201.255%200%200%201-.477%201.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06%200-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8%205.8%200%200%201-.548-2.512q0-.429.053-.843a1.3%201.3%200%200%201-.333-.086l-.166-.004c-.223%200-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255%201.255%200%200%201-1.256%201.256h-1.777a1.255%201.255%200%200%201-1.256-1.256V15.69l-.032.057a4.8%204.8%200%200%201-1.86%201.833%205.04%205.04%200%200%201-2.484.634%204.5%204.5%200%200%201-1.935-.424%201.25%201.25%200%200%201-.764.258h-1.71a1.255%201.255%200%200%201-1.256-1.255V7.687a2.4%202.4%200%200%201-.428.625c.253.23.412.561.412.93v7.553a1.255%201.255%200%200%201-1.256%201.255h-1.843a1.25%201.25%200%200%201-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255%201.255%200%200%201-1.256-1.255v-1.251l-.061.117a4.7%204.7%200%200%201-1.782%201.884%204.77%204.77%200%200%201-2.485.67%205.6%205.6%200%200%201-1.485-.188l.009%202.764a1.255%201.255%200%200%201-1.255%201.259h-1.729a1.255%201.255%200%200%201-1.255-1.255v-3.537a1.255%201.255%200%200%201-1.167.793h-1.679a1.25%201.25%200%200%201-.77-.263%204.5%204.5%200%200%201-1.945.429c-.885%200-1.724-.21-2.495-.632l-.017-.01a5%205%200%200%201-1.081-.836%201.255%201.255%200%200%201-1.254%201.312h-1.81a1.255%201.255%200%200%201-1.228-.99l-.782-3.625-2.044%203.939a1.25%201.25%200%200%201-1.115.676h-.098a1.25%201.25%200%200%201-1.116-.68l-2.061-3.994zM35.92%2016.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033%201.332h1.678V9.242h-1.694l-.033%201.267q-.133-.329-.526-.658l-.032-.028a3.2%203.2%200%200%200-.668-.428l-.27-.12a3.3%203.3%200%200%200-1.235-.23q-1.136-.001-1.974.493a3.36%203.36%200%200%200-1.3%201.382q-.445.89-.444%202.074%200%201.2.51%202.107a3.8%203.8%200%200%200%201.382%201.381%203.9%203.9%200%200%200%201.893.477q.795%200%201.455-.33zm-2.789-5.38q-.576.675-.575%201.762%200%201.102.559%201.794.576.675%201.645.675a2.25%202.25%200%200%200%20.934-.19%202.2%202.2%200%200%200%20.468-.29l.178-.161a2.2%202.2%200%200%200%20.397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2%202.2%200%200%200-.633-.709l-.13-.086-.047-.028a2.1%202.1%200%200%200-1.073-.285q-1.052%200-1.629.692zm2.316%202.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96%200%200%200-.353-.389.85.85%200%200%200-.464-.127c-.4%200-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945%200%20.506.122.801.27.99.097.11.266.224.68.224.303%200%20.504-.09.687-.269zm7.545%201.705a2.6%202.6%200%200%200%20.331.423q.319.33.755.548l.173.074q.65.255%201.49.255%201.02%200%201.844-.493a3.45%203.45%200%200%200%201.316-1.4q.493-.904.493-2.089%200-1.909-.988-2.913-.988-1.02-2.584-1.02-.898%200-1.575.347a3%203%200%200%200-.415.262l-.199.166a3.4%203.4%200%200%200-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296%201.119.297%201.07%200%201.645-.675.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.435%200-.835.16a2%202%200%200%200-.284.136%202%202%200%200%200-.363.254%202.2%202.2%200%200%200-.46.569l-.082.162a2.6%202.6%200%200%200-.213%201.072v.115q0%20.707.296%201.267l.135.211zm.964-.818a1.1%201.1%200%200%200%20.367.385.94.94%200%200%200%20.476.118c.423%200%20.59-.117.687-.23.159-.194.28-.478.28-.95%200-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1%201%200%200%200-.503.135l-.012.007a.86.86%200%200%200-.335.343c-.073.133-.132.324-.132.614v.115a1.4%201.4%200%200%200%20.14.66zm15.7-6.222q.347-.346.346-.856a1.05%201.05%200%200%200-.345-.79%201.18%201.18%200%200%200-.84-.329q-.51%200-.855.33a1.05%201.05%200%200%200-.346.79q0%20.51.346.855.345.346.856.346.51%200%20.839-.346zm4.337%209.314.033-1.332q.191.403.59.747l.098.081a4%204%200%200%200%20.316.224l.223.122a3.2%203.2%200%200%200%201.44.322%203.8%203.8%200%200%200%201.875-.477%203.5%203.5%200%200%200%201.382-1.366q.527-.89.526-2.09%200-1.184-.444-2.073a3.24%203.24%200%200%200-1.283-1.399q-.823-.51-1.942-.51a3.5%203.5%200%200%200-1.527.344l-.086.043-.165.09a3%203%200%200%200-.33.214q-.432.315-.656.707a2%202%200%200%200-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5%202.5%200%200%200%20.566.7q.117.098.245.18l.144.08a2.1%202.1%200%200%200%20.975.232q1.07%200%201.645-.675.576-.69.576-1.778%200-1.102-.576-1.777-.56-.691-1.645-.692a2.2%202.2%200%200%200-1.015.235q-.22.113-.415.282l-.15.142a2.1%202.1%200%200%200-.42.594q-.223.479-.223%201.1v.115q0%20.705.293%201.26zm2.616-.293c.157-.191.28-.479.28-.967%200-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87%200%200%200-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0%20.285.057.499.144.669a1.1%201.1%200%200%200%20.367.405c.137.082.28.123.455.123.423%200%20.59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493%200%20.642.099l.247-1.794q-.196-.099-.717-.099a2.3%202.3%200%200%200-.545.063%202%202%200%200%200-.411.148%202.2%202.2%200%200%200-.4.249%202.5%202.5%200%200%200-.485.499%202.7%202.7%200%200%200-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5%201.5%200%200%201%20.466-.636%202.5%202.5%200%200%201%20.399-.253%202%202%200%200%201%20.224-.099zm9.784%202.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46%203.46%200%200%200-1.4%201.382q-.493.906-.493%202.106%200%201.07.428%201.975.428.89%201.332%201.432.906.526%202.255.526.973%200%201.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954%200-1.497-.444a1.6%201.6%200%200%201-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1%201%200%200%200-.156-.176q-.46-.428-1.316-.428-.986%200-1.494.604-.379.45-.494%201.234zm-27.053%202.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z%22%2F%3E%3Cpath%20fill%3D%22%23fff%22%20d%3D%22m19.63%2011.151-.757-1.71-.345%201.71-1.12%205.644h-1.827L18.083%204.7h.197l3.325%206.533.988%202.19.988-2.19L26.839%204.7h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.93%205.644h-.098l-2.913-5.644zm14.836%205.81q-1.02%200-1.893-.478a3.8%203.8%200%200%201-1.381-1.382q-.51-.906-.51-2.106%200-1.185.444-2.074a3.36%203.36%200%200%201%201.3-1.382q.839-.494%201.974-.494a3.3%203.3%200%200%201%201.234.231%203.3%203.3%200%200%201%20.97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02%201.053a3.17%203.17%200%200%201-1.662.444zm.296-1.482q.938%200%201.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2%202.2%200%200%200-.807-.872%202.1%202.1%200%200%200-1.119-.313q-1.053%200-1.629.692-.575.675-.575%201.76%200%201.103.559%201.795.577.675%201.645.675zm6.521-6.237h1.711v1.4q.906-1.597%202.83-1.597%201.596%200%202.584%201.02.988%201.005.988%202.914%200%201.185-.493%202.09a3.46%203.46%200%200%201-1.316%201.399%203.5%203.5%200%200%201-1.844.493q-.954%200-1.662-.329a2.67%202.67%200%200%201-1.086-.97l.017%205.134h-1.728zm4.048%206.22q1.07%200%201.645-.674.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.592%200-1.12.296-.51.28-.822.823-.296.527-.296%201.234v.115q0%20.708.296%201.267.313.543.823.855.51.296%201.119.297z%22%2F%3E%3Cpath%20fill%3D%22%23e1e3e9%22%20d%3D%22M51.325%204.7h1.86v10.45h3.473v1.646h-5.333zm7.12%204.542h1.843v7.553h-1.843zm.905-1.415a1.16%201.16%200%200%201-.856-.346%201.17%201.17%200%200%201-.346-.856%201.05%201.05%200%200%201%20.346-.79q.346-.329.856-.329.494%200%20.839.33a1.05%201.05%200%200%201%20.345.79%201.16%201.16%200%200%201-.345.855q-.33.346-.84.346zm7.875%209.133a3.17%203.17%200%200%201-1.662-.444q-.723-.46-1.004-1.053l-.033%201.332h-1.71V4.701h1.743v4.657l-.082%201.283q.279-.658%201.086-1.119a3.5%203.5%200%200%201%201.778-.477q1.119%200%201.942.51a3.24%203.24%200%200%201%201.283%201.4q.445.888.444%202.072%200%201.201-.526%202.09a3.5%203.5%200%200%201-1.382%201.366%203.8%203.8%200%200%201-1.876.477zm-.296-1.481q1.069%200%201.645-.675.577-.69.577-1.778%200-1.102-.577-1.776-.56-.691-1.645-.692a2.12%202.12%200%200%200-1.58.659q-.642.641-.642%201.694v.115q0%20.71.296%201.267a2.4%202.4%200%200%200%20.807.872%202.1%202.1%200%200%200%201.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14%202.14%200%200%201%201.349-.46q.527%200%20.724.098l-.247%201.794q-.149-.099-.642-.099-.774%200-1.416.494-.626.493-.626%201.58v3.883h-1.777V9.242zm9.534%207.718q-1.35%200-2.255-.526-.904-.543-1.332-1.432a4.6%204.6%200%200%201-.428-1.975q0-1.2.493-2.106a3.46%203.46%200%200%201%201.4-1.382q.889-.495%202.007-.494%201.744%200%202.584.97.855.956.856%202.7%200%20.444-.05.92h-5.43q.18%201.005.708%201.45.542.443%201.497.443.79%200%201.3-.131a4%204%200%200%200%20.938-.362l.542%201.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728%200-1.991%201.86z%22%2F%3E%3Cpath%20d%3D%22M5.074%2015.948a.484.657%200%200%200-.486.659v1.84a.484.657%200%200%200%20.486.659h4.101a.484.657%200%200%200%20.486-.659v-1.84a.484.657%200%200%200-.486-.659zm3.56%201.16H5.617v.838h3.017z%22%20style%3D%22fill%3A%23fff%3Bfill-rule%3Aevenodd%3Bstroke-width%3A1.03600001%22%2F%3E%3Cg%20style%3D%22stroke-width%3A1.12603545%22%3E%3Cpath%20d%3D%22M-9.408-1.416c-3.833-.025-7.056%202.912-7.08%206.615-.02%203.08%201.653%204.832%203.107%206.268.903.892%201.721%201.74%202.32%202.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87%201.87%200%200%200-.362%201.121l-.011%201.877c-.003.402.104.787.347%201.125.244.338.688.653%201.23.656l4.142.028c.542.003.99-.306%201.238-.641a1.87%201.87%200%200%200%20.363-1.121l.012-1.875a1.87%201.87%200%200%200-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145%201.425-1.983%202.348-2.87%201.473-1.414%203.18-3.149%203.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006%201.1v.002c3.274.02%205.92%202.532%205.9%205.6-.017%202.706-1.39%204.026-2.863%205.44-1.034.994-2.118%202.033-2.814%203.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34%200%200%201-.226.084.34.34%200%200%201-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067%202.7-5.545%205.975-5.523m-.02%202.826c-1.62-.01-2.944%201.315-2.955%202.96-.01%201.646%201.295%202.988%202.916%202.999h.002c1.621.01%202.943-1.316%202.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005%201.1c1.017.006%201.829.83%201.822%201.89s-.83%201.874-1.848%201.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874%201.848-1.868m-2.155%2011.857%204.14.025c.271.002.49.305.487.676l-.013%201.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668%22%20style%3D%22color%3A%23000%3Bfont-style%3Anormal%3Bfont-variant%3Anormal%3Bfont-weight%3A400%3Bfont-stretch%3Anormal%3Bfont-size%3Amedium%3Bline-height%3Anormal%3Bfont-family%3Asans-serif%3Bfont-variant-ligatures%3Anormal%3Bfont-variant-position%3Anormal%3Bfont-variant-caps%3Anormal%3Bfont-variant-numeric%3Anormal%3Bfont-variant-alternates%3Anormal%3Bfont-feature-settings%3Anormal%3Btext-indent%3A0%3Btext-align%3Astart%3Btext-decoration%3Anone%3Btext-decoration-line%3Anone%3Btext-decoration-style%3Asolid%3Btext-decoration-color%3A%23000%3Bletter-spacing%3Anormal%3Bword-spacing%3Anormal%3Btext-transform%3Anone%3Bwriting-mode%3Alr-tb%3Bdirection%3Altr%3Btext-orientation%3Amixed%3Bdominant-baseline%3Aauto%3Bbaseline-shift%3Abaseline%3Btext-anchor%3Astart%3Bwhite-space%3Anormal%3Bshape-padding%3A0%3Bclip-rule%3Aevenodd%3Bdisplay%3Ainline%3Boverflow%3Avisible%3Bvisibility%3Avisible%3Bopacity%3A1%3Bisolation%3Aauto%3Bmix-blend-mode%3Anormal%3Bcolor-interpolation%3AsRGB%3Bcolor-interpolation-filters%3AlinearRGB%3Bsolid-color%3A%23000%3Bsolid-opacity%3A1%3Bvector-effect%3Anone%3Bfill%3A%23000%3Bfill-opacity%3A.4%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-linecap%3Abutt%3Bstroke-linejoin%3Amiter%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-dashoffset%3A0%3Bstroke-opacity%3A1%3Bcolor-rendering%3Aauto%3Bimage-rendering%3Aauto%3Bshape-rendering%3Aauto%3Btext-rendering%3Aauto%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-9.415-.316C-12.69-.338-15.37%202.14-15.39%205.207c-.017%202.716%201.326%204.041%202.78%205.477%201.013%201%202.081%202.055%202.78%203.67l.092.076a.34.34%200%200%200%20.225.086.34.34%200%200%200%20.227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6%201.78-2.64%202.814-3.634%201.473-1.414%202.847-2.733%202.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057%208.784c1.621.011%202.944-1.315%202.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945%201.315-2.955%202.96s1.295%202.989%202.916%203%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23e1e3e9%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-11.594%2015.465c-.27-.002-.492.297-.494.668l-.012%201.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23fff%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl.maplibregl-ctrl-attrib{padding:0 5px;background-color:hsla(0,0%,100%,.5);margin:0}@media screen{.maplibregl-ctrl-attrib.maplibregl-compact{min-height:20px;padding:2px 24px 2px 0;margin:10px;position:relative;background-color:#fff;color:#000;border-radius:12px;box-sizing:content-box}.maplibregl-ctrl-attrib.maplibregl-compact-show{padding:2px 28px 2px 8px;visibility:visible}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact-show,.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact-show{padding:2px 8px 2px 28px;border-radius:12px}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-inner{display:none}.maplibregl-ctrl-attrib-button{display:none;cursor:pointer;position:absolute;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20fill-rule%3D%22evenodd%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M4%2010a6%206%200%201%200%2012%200%206%206%200%201%200-12%200m5-3a1%201%200%201%200%202%200%201%201%200%201%200-2%200m0%203a1%201%200%201%201%202%200v3a1%201%200%201%201-2%200%22%2F%3E%3C%2Fsvg%3E");background-color:hsla(0,0%,100%,.5);width:24px;height:24px;box-sizing:border-box;border-radius:12px;outline:none;top:0;right:0;border:0}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;list-style:none}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button::-webkit-details-marker{display:none}.maplibregl-ctrl-bottom-left .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-top-left .maplibregl-ctrl-attrib-button{left:0}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-inner{display:block}.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-button{background-color:rgba(0,0,0,.05)}.maplibregl-ctrl-bottom-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;right:0}.maplibregl-ctrl-top-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{top:0;right:0}.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{top:0;left:0}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;left:0}}@media screen and (forced-colors:active){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22%23fff%22%20fill-rule%3D%22evenodd%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M4%2010a6%206%200%201%200%2012%200%206%206%200%201%200-12%200m5-3a1%201%200%201%200%202%200%201%201%200%201%200-2%200m0%203a1%201%200%201%201%202%200v3a1%201%200%201%201-2%200%22%2F%3E%3C%2Fsvg%3E")}}@media screen and (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20fill-rule%3D%22evenodd%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M4%2010a6%206%200%201%200%2012%200%206%206%200%201%200-12%200m5-3a1%201%200%201%200%202%200%201%201%200%201%200-2%200m0%203a1%201%200%201%201%202%200v3a1%201%200%201%201-2%200%22%2F%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl-attrib a{color:rgba(0,0,0,.75);text-decoration:none}.maplibregl-ctrl-attrib a:hover{color:inherit;text-decoration:underline}.maplibregl-attrib-empty{display:none}.maplibregl-ctrl-scale{background-color:hsla(0,0%,100%,.75);font-size:10px;white-space:nowrap;border-color:#333;border-style:none solid solid;border-width:medium 2px 2px;padding:0 5px;color:#333;box-sizing:border-box}.maplibregl-popup{position:absolute;top:0;left:0;display:flex;will-change:transform;pointer-events:none}.maplibregl-popup-anchor-top,.maplibregl-popup-anchor-top-left,.maplibregl-popup-anchor-top-right{flex-direction:column}.maplibregl-popup-anchor-bottom,.maplibregl-popup-anchor-bottom-left,.maplibregl-popup-anchor-bottom-right{flex-direction:column-reverse}.maplibregl-popup-anchor-left{flex-direction:row}.maplibregl-popup-anchor-right{flex-direction:row-reverse}.maplibregl-popup-tip{width:0;height:0;border:10px solid transparent;z-index:1}.maplibregl-popup-anchor-top .maplibregl-popup-tip{align-self:center;border-top:none;border-bottom-color:#fff}.maplibregl-popup-anchor-top-left .maplibregl-popup-tip{align-self:flex-start;border-top:none;border-left:none;border-bottom-color:#fff}.maplibregl-popup-anchor-top-right .maplibregl-popup-tip{align-self:flex-end;border-top:none;border-right:none;border-bottom-color:#fff}.maplibregl-popup-anchor-bottom .maplibregl-popup-tip{align-self:center;border-bottom:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip{align-self:flex-start;border-bottom:none;border-left:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip{align-self:flex-end;border-bottom:none;border-right:none;border-top-color:#fff}.maplibregl-popup-anchor-left .maplibregl-popup-tip{align-self:center;border-left:none;border-right-color:#fff}.maplibregl-popup-anchor-right .maplibregl-popup-tip{align-self:center;border-right:none;border-left-color:#fff}[dir=rtl] .maplibregl-popup-anchor-left{flex-direction:row-reverse}[dir=rtl] .maplibregl-popup-anchor-right{flex-direction:row}[dir=rtl] .maplibregl-popup-anchor-top-left .maplibregl-popup-tip{align-self:flex-end}[dir=rtl] .maplibregl-popup-anchor-top-right .maplibregl-popup-tip{align-self:flex-start}[dir=rtl] .maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip{align-self:flex-end}[dir=rtl] .maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip{align-self:flex-start}.maplibregl-popup-close-button{position:absolute;right:0;top:0;border:0;border-radius:0 3px 0 0;cursor:pointer;background-color:transparent}.maplibregl-popup-close-button:hover{background-color:rgba(0,0,0,.05)}.maplibregl-popup-content{position:relative;background:#fff;border-radius:3px;box-shadow:0 1px 2px rgba(0,0,0,.1);padding:15px 10px;pointer-events:auto}.maplibregl-popup-anchor-top-left .maplibregl-popup-content{border-top-left-radius:0}.maplibregl-popup-anchor-top-right .maplibregl-popup-content{border-top-right-radius:0}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-content{border-bottom-left-radius:0}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-content{border-bottom-right-radius:0}.maplibregl-popup-track-pointer{display:none}.maplibregl-popup-track-pointer *{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-map:hover .maplibregl-popup-track-pointer{display:flex}.maplibregl-map:active .maplibregl-popup-track-pointer{display:none}.maplibregl-marker{position:absolute;top:0;left:0;will-change:transform;transition:opacity .2s}.maplibregl-marker-draggable{cursor:grab}.maplibregl-user-location-dot,.maplibregl-user-location-dot:before{background-color:#1da1f2;width:15px;height:15px;border-radius:50%}.maplibregl-user-location-dot:before{content:"";position:absolute;animation:maplibregl-user-location-dot-pulse 2s infinite}.maplibregl-user-location-dot:after{border-radius:50%;border:2px solid #fff;content:"";height:19px;left:-2px;position:absolute;top:-2px;width:19px;box-sizing:border-box;box-shadow:0 0 3px rgba(0,0,0,.35)}@media (prefers-reduced-motion:reduce){.maplibregl-user-location-dot:before{animation:none}}@keyframes maplibregl-user-location-dot-pulse{0%{transform:scale(1);opacity:1}70%{transform:scale(3);opacity:0}to{transform:scale(1);opacity:0}}.maplibregl-user-location-dot-stale{background-color:#aaa}.maplibregl-user-location-dot-stale:after{display:none}.maplibregl-user-location-accuracy-circle{background-color:#1da1f233;width:1px;height:1px;border-radius:100%}.maplibregl-crosshair,.maplibregl-crosshair .maplibregl-interactive,.maplibregl-crosshair .maplibregl-interactive:active{cursor:crosshair}.maplibregl-boxzoom{position:absolute;top:0;left:0;width:0;height:0;background:#fff;border:2px dotted #202020;opacity:.5}.maplibregl-cooperative-gesture-screen{background:rgba(0,0,0,.4);position:absolute;inset:0;display:flex;justify-content:center;align-items:center;color:#fff;padding:1rem;font-size:1.4em;line-height:1.2;opacity:0;pointer-events:none;transition:opacity 1s ease 1s;z-index:99999}.maplibregl-cooperative-gesture-screen.maplibregl-show{opacity:1;transition:opacity .05s}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:none}@media (hover:none),(pointer:coarse){.maplibregl-cooperative-gesture-screen .maplibregl-desktop-message{display:none}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:block}}.maplibregl-pseudo-fullscreen{position:fixed!important;width:100%!important;height:100%!important;top:0!important;left:0!important;z-index:99999}`; document.head.appendChild(e); } @@ -23898,6 +23898,55 @@ var Plotly = (() => { var FIND_TEX = /([^$]*)([$]+[^$]*[$]+)([^$]*)/; var matchTex = (str) => str ? str.match(FIND_TEX) : null; exports.matchTex = matchTex; + var isPureTex = (str) => { + var tex = matchTex(str); + return !!tex && !tex[1] && !tex[3]; + }; + exports.isPureTex = isPureTex; + function positionMathGroup(_context, svgClass, mathjaxGroup, newSvg, textAnchor, fontSize, width0, height0) { + var g = newSvg.select("g"); + var bb = g.node().getBoundingClientRect(); + var w = bb.width; + var h = bb.height; + var w0 = width0 === void 0 ? w : width0; + var h0 = height0 === void 0 ? h : height0; + if (w > w0 || h > h0) { + newSvg.style("overflow", "hidden"); + bb = newSvg.node().getBoundingClientRect(); + w = bb.width; + h = bb.height; + } + var x = +_context.attr("x"); + var y = +_context.attr("y"); + var textHeight = fontSize || _context.node().getBoundingClientRect().height; + var dy = -textHeight / 4; + if (svgClass[0] === "y") { + mathjaxGroup.attr({ + transform: "rotate(" + [-90, x, y] + ")" + strTranslate(-w / 2, dy - h / 2) + }); + } else if (svgClass[0] === "l") { + y = dy - h / 2; + } else if (svgClass[0] === "a" && svgClass.indexOf("atitle") !== 0) { + x = 0; + y = dy; + } else { + x = x - w * (textAnchor === "middle" ? 0.5 : textAnchor === "end" ? 1 : 0); + y = y + dy - h / 2; + } + newSvg.attr({ + x, + y + }); + } + function sanitizeMathJaxLinks(newSvg) { + newSvg.selectAll("a").each(function() { + var a = d3.select(this); + ["href", "xlink:href"].forEach(function(attrName) { + var href = a.attr(attrName); + if (href) a.attr(attrName, sanitizeHref(href) || null); + }); + }); + } exports.convertToTspans = function(_context, gd, _callback) { var str = _context.text(); var tex = !_context.attr("data-notex") && gd && gd._context.typesetMath && matchTex(str); @@ -23951,6 +24000,7 @@ var Plotly = (() => { "data-math": "Y" }); mathjaxGroup.node().appendChild(newSvg.node()); + sanitizeMathJaxLinks(newSvg); if (_glyphDefs && _glyphDefs.node()) { newSvg.node().insertBefore( _glyphDefs.node().cloneNode(true), @@ -23971,36 +24021,7 @@ var Plotly = (() => { var fill = _context.node().style.fill || "black"; var g = newSvg.select("g"); g.attr({ fill, stroke: fill }); - var bb = g.node().getBoundingClientRect(); - var w = bb.width; - var h = bb.height; - if (w > w0 || h > h0) { - newSvg.style("overflow", "hidden"); - bb = newSvg.node().getBoundingClientRect(); - w = bb.width; - h = bb.height; - } - var x = +_context.attr("x"); - var y = +_context.attr("y"); - var textHeight = fontSize || _context.node().getBoundingClientRect().height; - var dy = -textHeight / 4; - if (svgClass[0] === "y") { - mathjaxGroup.attr({ - transform: "rotate(" + [-90, x, y] + ")" + strTranslate(-w / 2, dy - h / 2) - }); - } else if (svgClass[0] === "l") { - y = dy - h / 2; - } else if (svgClass[0] === "a" && svgClass.indexOf("atitle") !== 0) { - x = 0; - y = dy; - } else { - x = x - w * (textAnchor === "middle" ? 0.5 : textAnchor === "end" ? 1 : 0); - y = y + dy - h / 2; - } - newSvg.attr({ - x, - y - }); + positionMathGroup(_context, svgClass, mathjaxGroup, newSvg, textAnchor, fontSize, w0, h0); if (_callback) _callback.call(_context, mathjaxGroup); resolve(mathjaxGroup); }); @@ -24008,6 +24029,24 @@ var Plotly = (() => { } else showText(); return _context; }; + exports.repositionMathGroup = function(_context) { + if (_context.empty()) return; + var svgClass = (_context.attr("class") ? _context.attr("class").split(" ")[0] : "text") + "-math"; + var parent = d3.select(_context.node().parentNode); + var mathjaxGroup = parent.select("g." + svgClass + "-group"); + var newSvg = mathjaxGroup.select("svg." + svgClass); + if (mathjaxGroup.empty() || newSvg.empty()) return; + var textAnchor = _context.attr("text-anchor"); + var fontSize = parseInt(_context.node().style.fontSize, 10); + positionMathGroup(_context, svgClass, mathjaxGroup, newSvg, textAnchor, fontSize); + }; + exports.getMathOrTextNode = function(textSel) { + var node = textSel.node(); + if (!node) return null; + var svgClass = (textSel.attr("class") ? textSel.attr("class").split(" ")[0] : "text") + "-math"; + var mathGroup = d3.select(node.parentNode).select("g." + svgClass + "-group"); + return mathGroup.empty() ? node : mathGroup.node(); + }; var LT_MATCH = /(<|<|<)/g; var GT_MATCH = /(>|>|>)/g; function cleanEscapesForTex(s) { @@ -30773,6 +30812,10 @@ var Plotly = (() => { if (((_b = ax.minor) == null ? void 0 : _b._tick0Init) === void 0) { mockAx.tick0 = ax.tick0; } + if (ax._useTicklabelIndex) { + autoTickRound(mockAx); + ax.minor._tickround = mockAx._tickround; + } }; function isMultiple(bigger, smaller) { return Math.abs((bigger / smaller + 0.5) % 1 - 0.5) < 1e-3; @@ -30860,24 +30903,32 @@ var Plotly = (() => { function positionPeriodTicks(tickVals, ax, definedDelta) { for (var i = 0; i < tickVals.length; i++) { var v = tickVals[i].value; - var a = i; - var b = i + 1; - if (i < tickVals.length - 1) { - a = i; - b = i + 1; - } else if (i > 0) { - a = i - 1; - b = i; + var A2, B2; + if (tickVals[i].periodEndTick != null) { + A2 = tickVals[i].value; + B2 = tickVals[i].periodEndTick.value; } else { - a = i; - b = i; + var a = i; + var b = i + 1; + if (i < tickVals.length - 1) { + a = i; + b = i + 1; + } else if (i > 0) { + a = i - 1; + b = i; + } else { + a = i; + b = i; + } + A2 = tickVals[a].value; + B2 = tickVals[b].value; } - var A2 = tickVals[a].value; - var B2 = tickVals[b].value; var actualDelta = Math.abs(B2 - A2); var delta = definedDelta || actualDelta; var periodLength = 0; - if (delta >= ONEMINYEAR2) { + if (tickVals[i].periodEndTick != null) { + periodLength = actualDelta; + } else if (delta >= ONEMINYEAR2) { if (actualDelta >= ONEMINYEAR2 && actualDelta <= ONEMAXYEAR2) { periodLength = actualDelta; } else { @@ -30936,6 +30987,7 @@ var Plotly = (() => { var isPeriod = ax.ticklabelmode === "period"; var isReversed = ax.range[0] > ax.range[1]; var ticklabelIndex = !ax.ticklabelindex || Lib.isArrayOrTypedArray(ax.ticklabelindex) ? ax.ticklabelindex : [ax.ticklabelindex]; + ax._useTicklabelIndex = ticklabelIndex != null && ticklabelIndex !== 0; var rng = Lib.simpleMap(ax.range, ax.r2l, void 0, void 0, opts); var axrev = rng[1] < rng[0]; var minRange = Math.min(rng[0], rng[1]); @@ -30947,7 +30999,7 @@ var Plotly = (() => { var minorTickVals = []; var allTicklabelVals = []; var hasMinor = ax.minor && (ax.minor.ticks || ax.minor.showgrid); - var calcMinor = hasMinor || ticklabelIndex; + var calcMinor = hasMinor || ax._useTicklabelIndex; for (var major = 1; major >= (calcMinor ? 0 : 1); major--) { var isMinor = !major; if (major) { @@ -31017,7 +31069,7 @@ var Plotly = (() => { x = axes.tickIncrement(x, dtick, !axrev, calendar); } } - if ((major || ticklabelIndex) && isPeriod) { + if ((major || ax._useTicklabelIndex) && isPeriod) { x = axes.tickIncrement(x, dtick, !axrev, calendar); if (major) majorId--; } @@ -31052,72 +31104,82 @@ var Plotly = (() => { } } } + function findOverlappingTick(minorTick, majorTicks) { + const majorTick = majorTicks.find((majorTick2) => majorTick2.value === minorTick.value); + if (majorTick != null) { + return majorTick; + } + const epsilon3 = 1e7; + for (let i2 = 0; i2 < majorTicks.length; i2++) { + if (epsilon3 + majorTicks[i2].value === epsilon3 + minorTick.value) { + return majorTicks[i2]; + } + } + return null; + } + ; if (!minorTickVals || minorTickVals.length < 3) { - ticklabelIndex = false; + ax._useTicklabelIndex = false; } else { - var diff = (minorTickVals[2].value - minorTickVals[1].value) * (isReversed ? -1 : 1); + const diff = (minorTickVals[2].value - minorTickVals[1].value) * (isReversed ? -1 : 1); if (!periodCompatibleWithTickformat(diff, ax.tickformat)) { - ticklabelIndex = false; + ax._useTicklabelIndex = false; minorTickVals = minorTickVals.slice(1); } } - if (!ticklabelIndex) { + if (!ax._useTicklabelIndex) { allTicklabelVals = tickVals; } else { - var allTickVals = tickVals.concat(minorTickVals); + const filteredMinors = minorTickVals.filter((minor) => findOverlappingTick(minor, tickVals) == null); + const labelTickValsAscending = tickVals.concat(filteredMinors).sort((a, b) => a.value - b.value); if (isPeriod && tickVals.length) { - allTickVals = allTickVals.slice(1); - } - allTickVals = allTickVals.sort(function(a, b) { - return a.value - b.value; - }).filter(function(tick, index, self2) { - return index === 0 || tick.value !== self2[index - 1].value; - }); - var majorTickIndices = allTickVals.map(function(item, index) { - return item.minor === void 0 && !item.skipLabel ? index : null; - }).filter(function(index) { - return index !== null; - }); - majorTickIndices.forEach(function(majorIdx) { - ticklabelIndex.map(function(nextLabelIdx) { - var minorIdx = majorIdx + nextLabelIdx; - if (minorIdx >= 0 && minorIdx < allTickVals.length) { - Lib.pushUnique(allTicklabelVals, allTickVals[minorIdx]); - } - }); - }); - tickVals.forEach(function(tick) { - tick.skipLabel = allTicklabelVals.indexOf(tick) === -1; + tickVals[0].skipLabel = true; + } + tickVals.forEach(function(majorTick) { + if (!majorTick.skipLabel) { + ticklabelIndex.forEach((labelIndex) => { + if (labelIndex < 0) { + const smallerTicks = labelTickValsAscending.filter((minorTick) => minorTick.value <= majorTick.value); + const absLabelIndex = Math.abs(labelIndex); + const labeledTickIndex = smallerTicks.length - absLabelIndex - 1; + if (absLabelIndex < smallerTicks.length) { + const tickToLabel = smallerTicks[labeledTickIndex]; + allTicklabelVals.push(tickToLabel); + if (isPeriod) { + tickToLabel.periodEndTick = smallerTicks[labeledTickIndex + 1]; + } + } + } else { + const largerTicks = labelTickValsAscending.filter((minorTick) => minorTick.value >= majorTick.value); + if (labelIndex < largerTicks.length) { + const tickToLabel = largerTicks[labelIndex]; + allTicklabelVals.push(tickToLabel); + if (isPeriod && largerTicks[labelIndex + 1]) { + tickToLabel.periodEndTick = largerTicks[labelIndex + 1]; + } + } + } + }); + majorTick.skipLabel = true; + } }); + allTicklabelVals.forEach((t4) => t4.skipLabel = false); } if (hasMinor) { - var canOverlap = ax.minor.ticks === "inside" && ax.ticks === "outside" || ax.minor.ticks === "outside" && ax.ticks === "inside"; - if (!canOverlap) { - var majorValues = tickVals.map(function(d) { - return d.value; - }); + var allowedToOverlap = ax.minor.ticks === "inside" && ax.ticks === "outside" || ax.minor.ticks === "outside" && ax.ticks === "inside"; + if (!allowedToOverlap) { var list = []; for (var k = 0; k < minorTickVals.length; k++) { - var T = minorTickVals[k]; - var v = T.value; - if (majorValues.indexOf(v) !== -1) { - continue; + if (findOverlappingTick(minorTickVals[k], tickVals) == null) { + list.push(minorTickVals[k]); } - var found = false; - for (var q = 0; !found && q < tickVals.length; q++) { - if ( - // add 10e6 to eliminate problematic digits - 1e7 + tickVals[q].value === 1e7 + v - ) { - found = true; - } - } - if (!found) list.push(T); } minorTickVals = list; } } - if (isPeriod) positionPeriodTicks(allTicklabelVals, ax, ax._definedDelta); + if (isPeriod) { + positionPeriodTicks(allTicklabelVals, ax, ax._definedDelta); + } var i; if (ax.rangebreaks) { var flip = ax._id.charAt(0) === "y"; @@ -31180,7 +31242,7 @@ var Plotly = (() => { var _minor = tickVals[i].minor; var _value = tickVals[i].value; if (_minor) { - if (ticklabelIndex && allTicklabelVals.indexOf(tickVals[i]) !== -1) { + if (ax._useTicklabelIndex && allTicklabelVals.indexOf(tickVals[i]) !== -1) { t = setTickLabel(ax, tickVals[i]); } else { t = { x: _value }; @@ -31196,7 +31258,7 @@ var Plotly = (() => { ticksOut.push(t); } } - if (isPeriod && ticklabelIndex && minorTicks.length) { + if (isPeriod && ax._useTicklabelIndex && minorTicks.length) { minorTicks[0].noTick = true; } ticksOut = ticksOut.concat(minorTicks); @@ -31565,7 +31627,7 @@ var Plotly = (() => { }; } function formatDate(ax, out, hover, extraPrecision) { - var tr = ax._tickround; + var tr = ax._useTicklabelIndex ? ax.minor._tickround : ax._tickround; var fmt = hover && ax.hoverformat || axes.getTickFormat(ax); extraPrecision = !fmt && extraPrecision; if (extraPrecision) { @@ -33900,12 +33962,44 @@ var Plotly = (() => { } }); + // src/components/legend/constants.ts + var constants_exports3 = {}; + __export(constants_exports3, { + dfltFillHeight: () => dfltFillHeight, + itemGap: () => itemGap, + itemHeightPad: () => itemHeightPad, + itemMinHeight: () => itemMinHeight, + scrollBarColor: () => scrollBarColor, + scrollBarEnterAttrs: () => scrollBarEnterAttrs, + scrollBarMargin: () => scrollBarMargin, + scrollBarMinHeight: () => scrollBarMinHeight, + scrollBarWidth: () => scrollBarWidth, + titlePad: () => titlePad + }); + var scrollBarWidth, scrollBarMinHeight, scrollBarColor, scrollBarMargin, scrollBarEnterAttrs, titlePad, itemGap, dfltFillHeight, itemMinHeight, itemHeightPad; + var init_constants3 = __esm({ + "src/components/legend/constants.ts"() { + "use strict"; + scrollBarWidth = 6; + scrollBarMinHeight = 20; + scrollBarColor = "#808BA4"; + scrollBarMargin = 4; + scrollBarEnterAttrs = { rx: 20, ry: 3, width: 0, height: 0 }; + titlePad = 2; + itemGap = 5; + dfltFillHeight = 6; + itemMinHeight = 16; + itemHeightPad = 3; + } + }); + // src/components/legend/attributes.js var require_attributes9 = __commonJS({ "src/components/legend/attributes.js"(exports, module) { "use strict"; var fontAttrs = require_font_attributes(); var colorAttrs = require_attributes3(); + var { dfltFillHeight: dfltFillHeight2 } = (init_constants3(), __toCommonJS(constants_exports3)); module.exports = { // not really a 'subplot' attribute container, // but this is the flag we use to denote attributes that @@ -33989,6 +34083,12 @@ var Plotly = (() => { dflt: 30, editType: "legend" }, + itemheight: { + valType: "number", + min: dfltFillHeight2, + dflt: dfltFillHeight2, + editType: "legend" + }, itemclick: { valType: "enumerated", values: ["toggle", "toggleothers", false], @@ -34266,6 +34366,7 @@ var Plotly = (() => { coerce("indentation"); coerce("itemsizing"); coerce("itemwidth"); + coerce("itemheight"); coerce("itemclick"); coerce("itemdoubleclick"); const groupClick = coerce("groupclick"); @@ -34586,31 +34687,6 @@ var Plotly = (() => { } }); - // src/components/legend/constants.ts - var constants_exports3 = {}; - __export(constants_exports3, { - itemGap: () => itemGap, - scrollBarColor: () => scrollBarColor, - scrollBarEnterAttrs: () => scrollBarEnterAttrs, - scrollBarMargin: () => scrollBarMargin, - scrollBarMinHeight: () => scrollBarMinHeight, - scrollBarWidth: () => scrollBarWidth, - titlePad: () => titlePad - }); - var scrollBarWidth, scrollBarMinHeight, scrollBarColor, scrollBarMargin, scrollBarEnterAttrs, titlePad, itemGap; - var init_constants3 = __esm({ - "src/components/legend/constants.ts"() { - "use strict"; - scrollBarWidth = 6; - scrollBarMinHeight = 20; - scrollBarColor = "#808BA4"; - scrollBarMargin = 4; - scrollBarEnterAttrs = { rx: 20, ry: 3, width: 0, height: 0 }; - titlePad = 2; - itemGap = 5; - } - }); - // src/components/legend/get_legend_data.js var require_get_legend_data = __commonJS({ "src/components/legend/get_legend_data.js"(exports, module) { @@ -34855,6 +34931,7 @@ var Plotly = (() => { if (!legend) legend = fullLayout.legend; var constantItemSizing = legend.itemsizing === "constant"; var itemWidth = legend.itemwidth; + var itemHeight = legend.itemheight; var centerPos = (itemWidth + constants2.itemGap * 2) / 2; var centerTransform = strTranslate(centerPos, 0); var boundLineWidth = function(mlw, cont, max, cst) { @@ -34932,7 +35009,9 @@ var Plotly = (() => { var fill = this3.select(".legendfill").selectAll("path").data(showFill || showGradientFill ? [d] : []); fill.enter().append("path").classed("js-fill", true); fill.exit().remove(); - fill.attr("d", pathStart + "h" + itemWidth + "v6h-" + itemWidth + "z").call(fillStyle); + fill.attr("d", pathStart + "h" + itemWidth + "v" + itemHeight + "h-" + itemWidth + "z").call(fillStyle); + const fillShiftY = showFill || showGradientFill ? (constants2.dfltFillHeight - itemHeight) / 2 : 0; + this3.selectAll("g.legendfill, g.legendlines, g.legendsymbols").attr("transform", fillShiftY ? strTranslate(0, fillShiftY) : null); if (showLine || showGradientLine) { var lw = boundLineWidth(void 0, trace.line, MAX_LINE_WIDTH, CST_LINE_WIDTH); tMod = Lib.minExtend(trace, { line: { width: lw } }); @@ -35092,14 +35171,18 @@ var Plotly = (() => { var fillColor = mcc || d0.mc || marker.color; var markerPattern = marker.pattern; var pAttr = Drawing.getPatternAttr; - var patternShape = markerPattern && (pAttr(markerPattern.shape, 0, "") || pAttr(markerPattern.path, 0, "")); + let patternIndex = 0; + if (legend._inHover && d0._distinct && d0.index != null) { + patternIndex = d0.index; + } + const patternShape = markerPattern && (pAttr(markerPattern.shape, patternIndex, "") || pAttr(markerPattern.path, patternIndex, "")); if (patternShape) { - var patternBGColor = pAttr(markerPattern.bgcolor, 0, null); - var patternFGColor = pAttr(markerPattern.fgcolor, 0, null); + const patternBGColor = pAttr(markerPattern.bgcolor, patternIndex, null); + const patternFGColor = pAttr(markerPattern.fgcolor, patternIndex, null); var patternFGOpacity = markerPattern.fgopacity; - var patternSize = dimAttr(markerPattern.size, 8, 10); - var patternSolidity = dimAttr(markerPattern.solidity, 0.5, 1); - var patternID = "legend-" + trace.uid; + const patternSize = legend._inHover ? dimAttr(pAttr(markerPattern.size, patternIndex, 8), 8, 10) : dimAttr(markerPattern.size, 8, 10); + const patternSolidity = legend._inHover ? dimAttr(pAttr(markerPattern.solidity, patternIndex, 0.5), 0.5, 1) : dimAttr(markerPattern.solidity, 0.5, 1); + const patternID = legend._inHover ? `hover-${trace.uid}-${patternIndex}` : `legend-${trace.uid}`; p.call( Drawing.pattern, "legend", @@ -35921,7 +36004,7 @@ var Plotly = (() => { }); } function textLayout(s, g, gd, legendObj, aTitle) { - if (legendObj._inHover) s.attr("data-notex", true); + if (legendObj._inHover) s.attr("data-notex", svgTextUtils.isPureTex(s.text()) ? null : true); svgTextUtils.convertToTspans(s, gd, function() { computeTextDimensions(g, gd, legendObj, aTitle); }); @@ -35996,7 +36079,8 @@ var Plotly = (() => { legendObj._titleHeight = height; } else { legendItem.lineHeight = lineHeight; - legendItem.height = Math.max(height, 16) + 3; + const fillItemHeight = constants2.itemMinHeight + legendObj.itemheight - constants2.dfltFillHeight; + legendItem.height = Math.max(height, constants2.itemMinHeight, fillItemHeight) + constants2.itemHeightPad; legendItem.width = width; } } @@ -36188,6 +36272,13 @@ var Plotly = (() => { } Drawing.setRect(traceToggle, 0, -h / 2, w, h); }); + if (legendObj._inHover) { + const textRight = legendObj._width - bw2 - itemGap2 - titleSize[0]; + traces.each(function(d) { + if (d[0].textAlign !== "right") return; + d3.select(this).select("." + legendId + "text").attr("text-anchor", "end").call(svgTextUtils.positionText, textRight); + }); + } var titleEl = scrollBox.select("." + legendId + "titletext"); if (titleEl.node()) { horizontalAlignTitle(titleEl, legendObj, bw); @@ -36391,28 +36482,47 @@ var Plotly = (() => { outerContainer: opts.outerContainer || opts.container }); var hoverLabel = hoverText.hoverLabels; - var tooltipSpacing = 5; - var lastBottomY = 0; - var anchor = 0; - hoverLabel.sort(function(a, b) { - return a.y0 - b.y0; - }).each(function(d, i) { - var topY = d.y0 - d.by / 2; - if (topY - tooltipSpacing < lastBottomY) { - d.offset = lastBottomY - topY + tooltipSpacing; - } else { - d.offset = 0; - } - lastBottomY = topY + d.by + d.offset; - if (i === opts.anchorIndex || 0) anchor = d.offset; - }).each(function(d) { - d.offset -= anchor; - }); + function fixVerticalOverlap() { + var tooltipSpacing = 5; + var lastBottomY = 0; + var anchor = 0; + hoverLabel.sort(function(a, b) { + return a.y0 - b.y0; + }).each(function(d, i) { + var topY = d.y0 - d.by / 2; + if (topY - tooltipSpacing < lastBottomY) { + d.offset = lastBottomY - topY + tooltipSpacing; + } else { + d.offset = 0; + } + lastBottomY = topY + d.by + d.offset; + if (i === opts.anchorIndex || 0) anchor = d.offset; + }).each(function(d) { + d.offset -= anchor; + }); + } var scaleX = gd._fullLayout._invScaleX; var scaleY = gd._fullLayout._invScaleY; + fixVerticalOverlap(); alignHoverText(hoverLabel, rotateLabels, scaleX, scaleY); + if (hoverText.mathjaxPromise) { + hoverText.mathjaxPromise.then(function() { + fixVerticalOverlap(); + alignHoverText(hoverLabel, rotateLabels, scaleX, scaleY); + hoverLabel.each(function() { + var g = d3.select(this); + svgTextUtils.repositionMathGroup(g.select("text.nums")); + svgTextUtils.repositionMathGroup(g.select("text.name")); + }); + }); + } return multiHover ? hoverLabel : hoverLabel.node(); }; + function canSpikeToNonHoveredPoint(xa, ya) { + return Boolean( + (xa == null ? void 0 : xa.showspikes) && xa.spikesnap !== "hovered data" || (ya == null ? void 0 : ya.showspikes) && ya.spikesnap !== "hovered data" + ); + } function _hover(gd, evt, subplot, noHoverEvent, eventTarget) { if (!subplot) subplot = "xy"; if (typeof subplot === "string") { @@ -36425,6 +36535,7 @@ var Plotly = (() => { var plots = fullLayout._plots || []; var plotinfo = plots[subplot]; var hasCartesian = fullLayout._has("cartesian"); + var hasTernary = fullLayout._has("ternary"); var hovermode = evt.hovermode || fullLayout.hovermode; var hovermodeHasX = (hovermode || "").charAt(0) === "x"; var hovermodeHasY = (hovermode || "").charAt(0) === "y"; @@ -36487,6 +36598,7 @@ var Plotly = (() => { hLinePoint: null, vLinePoint: null }; + const ternarySpikePoints = {}; var hasOneHorizontalTrace = false; if (Array.isArray(evt)) { hovermode = "array"; @@ -36683,42 +36795,56 @@ var Plotly = (() => { hoverData.splice(0, closedataPreviousLength); distance = hoverData[0].distance; } - if (hasCartesian && spikedistance !== 0) { - if (hoverData.length === 0) { - pointData.distance = spikedistance; - pointData.index = false; - var closestPoints = trace._module.hoverPoints(pointData, xval, yval, "closest", { - hoverLayer: fullLayout._hoverlayer - }); - if (closestPoints) { - closestPoints = closestPoints.filter(function(point) { - return point.spikeDistance <= spikedistance; - }); + if (Registry.traceIs(trace, "ternary") && spikedistance !== 0) { + const ternary = pointData.subplot; + const needsClosestPoint = ["aaxis", "baxis", "caxis"].some((name4) => ternary[name4].showspikes && ternary[name4].spikesnap !== "hovered data"); + if (needsClosestPoint) { + let spikePoint = newPoints == null ? void 0 : newPoints[0]; + if (!Number.isFinite(spikePoint == null ? void 0 : spikePoint.spikeDistance)) { + const spikeData = Lib.extendFlat({}, pointData, { distance: spikedistance, index: false }); + const closestPoints2 = trace._module.hoverPoints(spikeData, xval, yval, "closest"); + spikePoint = closestPoints2 && closestPoints2[0]; } - if (closestPoints && closestPoints.length) { - var tmpPoint; - var closestVPoints = closestPoints.filter(function(point) { - return point.xa.showspikes && point.xa.spikesnap !== "hovered data"; - }); - if (closestVPoints.length) { - var closestVPt = closestVPoints[0]; - if (isNumeric2(closestVPt.x0) && isNumeric2(closestVPt.y0)) { - tmpPoint = fillSpikePoint(closestVPt); - if (!spikePoints.vLinePoint || spikePoints.vLinePoint.spikeDistance > tmpPoint.spikeDistance) { - spikePoints.vLinePoint = tmpPoint; - } + const previousSpikePoint = ternarySpikePoints[subplotId]; + if (spikePoint && spikePoint.index !== void 0 && spikePoint.index !== false && spikePoint.spikeDistance <= spikedistance && (!previousSpikePoint || spikePoint.spikeDistance < previousSpikePoint.spikeDistance)) { + ternarySpikePoints[subplotId] = spikePoint; + } + } + } + if (hasCartesian && hoverData.length === 0 && spikedistance !== 0 && canSpikeToNonHoveredPoint(pointData.xa, pointData.ya)) { + pointData.distance = spikedistance; + pointData.index = false; + var closestPoints = trace._module.hoverPoints(pointData, xval, yval, "closest", { + hoverLayer: fullLayout._hoverlayer + }); + if (closestPoints) { + closestPoints = closestPoints.filter(function(point) { + return point.spikeDistance <= spikedistance; + }); + } + if (closestPoints == null ? void 0 : closestPoints.length) { + var tmpPoint; + var closestVPoints = closestPoints.filter(function(point) { + return point.xa.showspikes && point.xa.spikesnap !== "hovered data"; + }); + if (closestVPoints.length) { + var closestVPt = closestVPoints[0]; + if (isNumeric2(closestVPt.x0) && isNumeric2(closestVPt.y0)) { + tmpPoint = fillSpikePoint(closestVPt); + if (!spikePoints.vLinePoint || spikePoints.vLinePoint.spikeDistance > tmpPoint.spikeDistance) { + spikePoints.vLinePoint = tmpPoint; } } - var closestHPoints = closestPoints.filter(function(point) { - return point.ya.showspikes && point.ya.spikesnap !== "hovered data"; - }); - if (closestHPoints.length) { - var closestHPt = closestHPoints[0]; - if (isNumeric2(closestHPt.x0) && isNumeric2(closestHPt.y0)) { - tmpPoint = fillSpikePoint(closestHPt); - if (!spikePoints.hLinePoint || spikePoints.hLinePoint.spikeDistance > tmpPoint.spikeDistance) { - spikePoints.hLinePoint = tmpPoint; - } + } + var closestHPoints = closestPoints.filter(function(point) { + return point.ya.showspikes && point.ya.spikesnap !== "hovered data"; + }); + if (closestHPoints.length) { + var closestHPt = closestHPoints[0]; + if (isNumeric2(closestHPt.x0) && isNumeric2(closestHPt.y0)) { + tmpPoint = fillSpikePoint(closestHPt); + if (!spikePoints.hLinePoint || spikePoints.hLinePoint.spikeDistance > tmpPoint.spikeDistance) { + spikePoints.hLinePoint = tmpPoint; } } } @@ -36727,6 +36853,18 @@ var Plotly = (() => { } } findHoverPoints(); + function updateTernarySpikelines() { + fullLayout._hoverlayer.selectAll(".ternary-spikes").remove(); + if (spikedistance === 0) return; + for (let i2 = 0; i2 < subplots.length; i2++) { + const id2 = subplots[i2]; + const ternary = fullLayout[id2] && fullLayout[id2]._subplot; + if (ternary && ternary.drawSpikelines) { + const point = hoverData.find((d) => d.trace.subplot === id2 && d.index !== void 0 && d.index !== false && d.spikeDistance <= spikedistance); + ternary.drawSpikelines(point, ternarySpikePoints[id2], xvalArray && xvalArray[i2], yvalArray && yvalArray[i2]); + } + } + } function selectClosestPoint(pointsData, spikedistance2, spikeOnWinning2) { var resultPoint = null; var minDistance = Infinity; @@ -36816,6 +36954,7 @@ var Plotly = (() => { emitHover([]); gd._hoverAnywhereActive = true; } + if (hasTernary) updateTernarySpikelines(); return result; } if (hasCartesian) { @@ -36823,6 +36962,7 @@ var Plotly = (() => { createSpikelines(gd, spikePoints, spikelineOpts); } } + if (hasTernary) updateTernarySpikelines(); if (helpers.isXYhover(_mode) && hoverData[0].length !== 0 && hoverData[0].trace.type !== "splom") { var winningPoint = hoverData[0]; if (multipleHoverPoints[winningPoint.trace.type]) { @@ -36912,6 +37052,18 @@ var Plotly = (() => { if (!helpers.isUnifiedHover(hovermode)) { hoverAvoidOverlaps(hoverLabels, rotateLabels, fullLayout, hoverText.commonLabelBoundingBox); alignHoverText(hoverLabels, rotateLabels, fullLayout._invScaleX, fullLayout._invScaleY); + if (hoverText.mathjaxPromise) { + hoverText.mathjaxPromise.then(function() { + if (gd._hoverdata !== newhoverdata) return; + hoverAvoidOverlaps(hoverLabels, rotateLabels, fullLayout, hoverText.commonLabelBoundingBox); + alignHoverText(hoverLabels, rotateLabels, fullLayout._invScaleX, fullLayout._invScaleY); + hoverLabels.each(function() { + var g = d3.select(this); + svgTextUtils.repositionMathGroup(g.select("text.nums")); + svgTextUtils.repositionMathGroup(g.select("text.name")); + }); + }); + } } if (eventTarget && eventTarget.tagName) { var hasClickToShow = Registry.getComponentMethod("annotations", "hasClickToShow")(gd, newhoverdata); @@ -36945,6 +37097,9 @@ var Plotly = (() => { return [d.trace.index, d.index, d.x0, d.y0, d.name, d.attr, d.xa ? d.xa._id : "", d.ya ? d.ya._id : ""].join(","); } var EXTRA_STRING_REGEX = /([\s\S]*)<\/extra>/; + function getHoverTextBBox(gd, textSel) { + return getBoundingClientRect(gd, svgTextUtils.getMathOrTextNode(textSel)); + } function createHoverText(hoverData, opts) { var gd = opts.gd; var fullLayout = gd._fullLayout; @@ -36955,6 +37110,7 @@ var Plotly = (() => { var outerContainer = opts.outerContainer; var commonLabelOpts = opts.commonLabelOpts || {}; if (hoverData.length === 0) return [[]]; + var mathjaxPromises = []; var fontFamily = opts.fontFamily || constants2.HOVERFONT; var fontSize = opts.fontSize || constants2.HOVERFONTSIZE; var fontWeight = opts.fontWeight || fullLayout.font.weight; @@ -37010,9 +37166,7 @@ var Plotly = (() => { var lpath = Lib.ensureSingle(label, "path", "", function(s) { s.style({ "stroke-width": "1px" }); }); - var ltext = Lib.ensureSingle(label, "text", "", function(s) { - s.attr("data-notex", 1); - }); + var ltext = Lib.ensureSingle(label, "text", ""); var commonBgColor = commonLabelOpts.bgcolor || Color2.defaultLine; var commonStroke = commonLabelOpts.bordercolor || Color2.contrast(commonBgColor); var contrastColor = Color2.contrast(commonBgColor); @@ -37032,100 +37186,122 @@ var Plotly = (() => { fill: commonBgColor, stroke: commonStroke }); - ltext.text(t02).call(Drawing.font, commonLabelFont).call(svgTextUtils.positionText, 0, 0).call(svgTextUtils.convertToTspans, gd); - label.attr("transform", ""); - var tbb2 = getBoundingClientRect(gd, ltext.node()); - var lx2, ly2; - if (hovermode === "x") { - var topsign = xa.side === "top" ? "-" : ""; - ltext.attr("text-anchor", "middle").call( - svgTextUtils.positionText, - 0, - xa.side === "top" ? outerTop - tbb2.bottom - HOVERARROWSIZE2 - HOVERTEXTPAD2 : outerTop - tbb2.top + HOVERARROWSIZE2 + HOVERTEXTPAD2 - ); - lx2 = xa._offset + (c0.x0 + c0.x1) / 2; - ly2 = ya._offset + (xa.side === "top" ? 0 : ya._length); - var halfWidth = tbb2.width / 2 + HOVERTEXTPAD2; - var tooltipMidX = lx2; - if (lx2 < halfWidth) { - tooltipMidX = halfWidth; - } else if (lx2 > fullLayout.width - halfWidth) { - tooltipMidX = fullLayout.width - halfWidth; - } - lpath.attr( - "d", - "M" + (lx2 - tooltipMidX) + ",0L" + (lx2 - tooltipMidX + HOVERARROWSIZE2) + "," + topsign + HOVERARROWSIZE2 + "H" + halfWidth + "v" + topsign + (HOVERTEXTPAD2 * 2 + tbb2.height) + "H" + -halfWidth + "V" + topsign + HOVERARROWSIZE2 + "H" + (lx2 - tooltipMidX - HOVERARROWSIZE2) + "Z" - ); - lx2 = tooltipMidX; - commonLabelRect.minX = lx2 - halfWidth; - commonLabelRect.maxX = lx2 + halfWidth; - if (xa.side === "top") { - commonLabelRect.minY = ly2 - (HOVERTEXTPAD2 * 2 + tbb2.height); - commonLabelRect.maxY = ly2 - HOVERTEXTPAD2; - } else { - commonLabelRect.minY = ly2 + HOVERTEXTPAD2; - commonLabelRect.maxY = ly2 + (HOVERTEXTPAD2 * 2 + tbb2.height); - } - } else { - var anchor; - var sgn; - var leftsign; - if (ya.side === "right") { - anchor = "start"; - sgn = 1; - leftsign = ""; - lx2 = xa._offset + xa._length; - } else { - anchor = "end"; - sgn = -1; - leftsign = "-"; - lx2 = xa._offset; - } - ly2 = ya._offset + (c0.y0 + c0.y1) / 2; - ltext.attr("text-anchor", anchor); - lpath.attr( - "d", - "M0,0L" + leftsign + HOVERARROWSIZE2 + "," + HOVERARROWSIZE2 + "V" + (HOVERTEXTPAD2 + tbb2.height / 2) + "h" + leftsign + (HOVERTEXTPAD2 * 2 + tbb2.width) + "V-" + (HOVERTEXTPAD2 + tbb2.height / 2) + "H" + leftsign + HOVERARROWSIZE2 + "V-" + HOVERARROWSIZE2 + "Z" - ); - commonLabelRect.minY = ly2 - (HOVERTEXTPAD2 + tbb2.height / 2); - commonLabelRect.maxY = ly2 + (HOVERTEXTPAD2 + tbb2.height / 2); - if (ya.side === "right") { - commonLabelRect.minX = lx2 + HOVERARROWSIZE2; - commonLabelRect.maxX = lx2 + HOVERARROWSIZE2 + (HOVERTEXTPAD2 * 2 + tbb2.width); - } else { - commonLabelRect.minX = lx2 - HOVERARROWSIZE2 - (HOVERTEXTPAD2 * 2 + tbb2.width); - commonLabelRect.maxX = lx2 - HOVERARROWSIZE2; - } - var halfHeight = tbb2.height / 2; - var lty = outerTop - tbb2.top - halfHeight; - var clipId = "clip" + fullLayout._uid + "commonlabel" + ya._id; - var clipPath; - if (lx2 < tbb2.width + 2 * HOVERTEXTPAD2 + HOVERARROWSIZE2) { - clipPath = "M-" + (HOVERARROWSIZE2 + HOVERTEXTPAD2) + "-" + halfHeight + "h-" + (tbb2.width - HOVERTEXTPAD2) + "V" + halfHeight + "h" + (tbb2.width - HOVERTEXTPAD2) + "Z"; - var ltx = tbb2.width - lx2 + HOVERTEXTPAD2; - svgTextUtils.positionText(ltext, ltx, lty); - if (anchor === "end") { - ltext.selectAll("tspan").each(function() { - var s = d3.select(this); - var dummy = Drawing.tester.append("text").text(s.text()).call(Drawing.font, commonLabelFont); - var dummyBB = getBoundingClientRect(gd, dummy.node()); - if (Math.round(dummyBB.width) < Math.round(tbb2.width)) { - s.attr("x", ltx - dummyBB.width); + var commonLabelTex = svgTextUtils.isPureTex(String(t02)); + var onCommonLabelReady; + if (commonLabelTex) { + mathjaxPromises.push( + new Promise(function(resolve) { + onCommonLabelReady = function() { + if (!ltext.node().parentNode) { + resolve(); + return; } - dummy.remove(); - }); + positionCommonLabel(); + svgTextUtils.repositionMathGroup(ltext); + resolve(); + }; + }) + ); + } + ltext.text(t02).call(Drawing.font, commonLabelFont).attr("data-notex", commonLabelTex ? null : 1).call(svgTextUtils.positionText, 0, 0).call(svgTextUtils.convertToTspans, gd, onCommonLabelReady); + positionCommonLabel(); + function positionCommonLabel() { + label.attr("transform", ""); + svgTextUtils.positionText(ltext, 0, 0); + svgTextUtils.repositionMathGroup(ltext); + var tbb2 = getHoverTextBBox(gd, ltext); + var lx2, ly2; + if (hovermode === "x") { + var topsign = xa.side === "top" ? "-" : ""; + ltext.attr("text-anchor", "middle").call( + svgTextUtils.positionText, + 0, + xa.side === "top" ? outerTop - tbb2.bottom - HOVERARROWSIZE2 - HOVERTEXTPAD2 : outerTop - tbb2.top + HOVERARROWSIZE2 + HOVERTEXTPAD2 + ); + lx2 = xa._offset + (c0.x0 + c0.x1) / 2; + ly2 = ya._offset + (xa.side === "top" ? 0 : ya._length); + var halfWidth = tbb2.width / 2 + HOVERTEXTPAD2; + var tooltipMidX = lx2; + if (lx2 < halfWidth) { + tooltipMidX = halfWidth; + } else if (lx2 > fullLayout.width - halfWidth) { + tooltipMidX = fullLayout.width - halfWidth; + } + lpath.attr( + "d", + "M" + (lx2 - tooltipMidX) + ",0L" + (lx2 - tooltipMidX + HOVERARROWSIZE2) + "," + topsign + HOVERARROWSIZE2 + "H" + halfWidth + "v" + topsign + (HOVERTEXTPAD2 * 2 + tbb2.height) + "H" + -halfWidth + "V" + topsign + HOVERARROWSIZE2 + "H" + (lx2 - tooltipMidX - HOVERARROWSIZE2) + "Z" + ); + lx2 = tooltipMidX; + commonLabelRect.minX = lx2 - halfWidth; + commonLabelRect.maxX = lx2 + halfWidth; + if (xa.side === "top") { + commonLabelRect.minY = ly2 - (HOVERTEXTPAD2 * 2 + tbb2.height); + commonLabelRect.maxY = ly2 - HOVERTEXTPAD2; + } else { + commonLabelRect.minY = ly2 + HOVERTEXTPAD2; + commonLabelRect.maxY = ly2 + (HOVERTEXTPAD2 * 2 + tbb2.height); } } else { - svgTextUtils.positionText(ltext, sgn * (HOVERTEXTPAD2 + HOVERARROWSIZE2), lty); - clipPath = null; + var anchor; + var sgn; + var leftsign; + if (ya.side === "right") { + anchor = "start"; + sgn = 1; + leftsign = ""; + lx2 = xa._offset + xa._length; + } else { + anchor = "end"; + sgn = -1; + leftsign = "-"; + lx2 = xa._offset; + } + ly2 = ya._offset + (c0.y0 + c0.y1) / 2; + ltext.attr("text-anchor", anchor); + lpath.attr( + "d", + "M0,0L" + leftsign + HOVERARROWSIZE2 + "," + HOVERARROWSIZE2 + "V" + (HOVERTEXTPAD2 + tbb2.height / 2) + "h" + leftsign + (HOVERTEXTPAD2 * 2 + tbb2.width) + "V-" + (HOVERTEXTPAD2 + tbb2.height / 2) + "H" + leftsign + HOVERARROWSIZE2 + "V-" + HOVERARROWSIZE2 + "Z" + ); + commonLabelRect.minY = ly2 - (HOVERTEXTPAD2 + tbb2.height / 2); + commonLabelRect.maxY = ly2 + (HOVERTEXTPAD2 + tbb2.height / 2); + if (ya.side === "right") { + commonLabelRect.minX = lx2 + HOVERARROWSIZE2; + commonLabelRect.maxX = lx2 + HOVERARROWSIZE2 + (HOVERTEXTPAD2 * 2 + tbb2.width); + } else { + commonLabelRect.minX = lx2 - HOVERARROWSIZE2 - (HOVERTEXTPAD2 * 2 + tbb2.width); + commonLabelRect.maxX = lx2 - HOVERARROWSIZE2; + } + var halfHeight = tbb2.height / 2; + var lty = outerTop - tbb2.top - halfHeight; + var clipId = "clip" + fullLayout._uid + "commonlabel" + ya._id; + var clipPath; + if (lx2 < tbb2.width + 2 * HOVERTEXTPAD2 + HOVERARROWSIZE2) { + clipPath = "M-" + (HOVERARROWSIZE2 + HOVERTEXTPAD2) + "-" + halfHeight + "h-" + (tbb2.width - HOVERTEXTPAD2) + "V" + halfHeight + "h" + (tbb2.width - HOVERTEXTPAD2) + "Z"; + var ltx = tbb2.width - lx2 + HOVERTEXTPAD2; + svgTextUtils.positionText(ltext, ltx, lty); + if (anchor === "end") { + ltext.selectAll("tspan").each(function() { + var s = d3.select(this); + var dummy = Drawing.tester.append("text").text(s.text()).call(Drawing.font, commonLabelFont); + var dummyBB = getBoundingClientRect(gd, dummy.node()); + if (Math.round(dummyBB.width) < Math.round(tbb2.width)) { + s.attr("x", ltx - dummyBB.width); + } + dummy.remove(); + }); + } + } else { + svgTextUtils.positionText(ltext, sgn * (HOVERTEXTPAD2 + HOVERARROWSIZE2), lty); + clipPath = null; + } + var textClip = fullLayout._topclips.selectAll("#" + clipId).data(clipPath ? [0] : []); + textClip.enter().append("clipPath").attr("id", clipId).append("path"); + textClip.exit().remove(); + textClip.select("path").attr("d", clipPath); + Drawing.setClipUrl(ltext, clipPath ? clipId : null, gd); } - var textClip = fullLayout._topclips.selectAll("#" + clipId).data(clipPath ? [0] : []); - textClip.enter().append("clipPath").attr("id", clipId).append("path"); - textClip.exit().remove(); - textClip.select("path").attr("d", clipPath); - Drawing.setClipUrl(ltext, clipPath ? clipId : null, gd); + label.attr("transform", strTranslate(lx2, ly2)); } - label.attr("transform", strTranslate(lx2, ly2)); }); if (helpers.isUnifiedHover(hovermode)) { container.selectAll("g.hovertext").remove(); @@ -37332,6 +37508,23 @@ var Plotly = (() => { var texts2 = getHoverLabelText(d, showCommonLabel, hovermode, fullLayout, t02, g); var text2 = texts2[0]; var name5 = texts2[1]; + var hasName = !!(name5 && name5 !== text2); + var numsTex = svgTextUtils.isPureTex(text2); + var nameTex = hasName && svgTextUtils.isPureTex(name5); + var pendingLabelParts = (numsTex ? 1 : 0) + (nameTex ? 1 : 0); + var onLabelPartReady; + if (pendingLabelParts) { + mathjaxPromises.push( + new Promise(function(resolve) { + onLabelPartReady = function() { + if (--pendingLabelParts === 0) { + if (g.node().parentNode) finalizePosition(); + resolve(); + } + }; + }) + ); + } var tx = g.select("text.nums").call(Drawing.font, { family: d.fontFamily || fontFamily, size: d.fontSize || fontSize, @@ -37342,11 +37535,9 @@ var Plotly = (() => { textcase: d.fontTextcase || fontTextcase, lineposition: d.fontLineposition || fontLineposition, shadow: d.fontShadow || fontShadow - }).text(text2).attr("data-notex", 1).call(svgTextUtils.positionText, 0, 0).call(svgTextUtils.convertToTspans, gd); + }).text(text2).attr("data-notex", numsTex ? null : 1).call(svgTextUtils.positionText, 0, 0).call(svgTextUtils.convertToTspans, gd, numsTex ? onLabelPartReady : void 0); var tx2 = g.select("text.name"); - var tx2width = 0; - var tx2height = 0; - if (name5 && name5 !== text2) { + if (hasName) { tx2.call(Drawing.font, { family: d.fontFamily || fontFamily, size: d.fontSize || fontSize, @@ -37357,75 +37548,90 @@ var Plotly = (() => { textcase: d.fontTextcase || fontTextcase, lineposition: d.fontLineposition || fontLineposition, shadow: d.fontShadow || fontShadow - }).text(name5).attr("data-notex", 1).call(svgTextUtils.positionText, 0, 0).call(svgTextUtils.convertToTspans, gd); - var t2bb = getBoundingClientRect(gd, tx2.node()); - tx2width = t2bb.width + 2 * HOVERTEXTPAD2; - tx2height = t2bb.height + 2 * HOVERTEXTPAD2; + }).text(name5).attr("data-notex", nameTex ? null : 1).call(svgTextUtils.positionText, 0, 0).call(svgTextUtils.convertToTspans, gd, nameTex ? onLabelPartReady : void 0); } else { tx2.remove(); g.select("rect").remove(); } - g.select("path").style({ - fill: numsColor, - stroke: contrastColor - }); - var htx = d.xa._offset + (d.x0 + d.x1) / 2; - var hty = d.ya._offset + (d.y0 + d.y1) / 2; - var dx = Math.abs(d.x1 - d.x0); - var dy = Math.abs(d.y1 - d.y0); - var tbb2 = getBoundingClientRect(gd, tx.node()); - var tbbWidth = tbb2.width / fullLayout._invScaleX; - var tbbHeight = tbb2.height / fullLayout._invScaleY; - d.ty0 = (outerTop - tbb2.top) / fullLayout._invScaleY; - d.bx = tbbWidth + 2 * HOVERTEXTPAD2; - d.by = Math.max(tbbHeight + 2 * HOVERTEXTPAD2, tx2height); - d.anchor = "start"; - d.txwidth = tbbWidth; - d.tx2width = tx2width; - d.offset = 0; - var txTotalWidth = (tbbWidth + HOVERARROWSIZE2 + HOVERTEXTPAD2 + tx2width) * fullLayout._invScaleX; - var anchorStartOK, anchorEndOK; - if (rotateLabels) { - d.pos = htx; - anchorStartOK = hty + dy / 2 + txTotalWidth <= outerHeight; - anchorEndOK = hty - dy / 2 - txTotalWidth >= 0; - if ((d.idealAlign === "top" || !anchorStartOK) && anchorEndOK) { - hty -= dy / 2; - d.anchor = "end"; - } else if (anchorStartOK) { - hty += dy / 2; - d.anchor = "start"; + finalizePosition(); + function finalizePosition() { + g.attr("transform", ""); + tx.call(svgTextUtils.positionText, 0, 0); + svgTextUtils.repositionMathGroup(tx); + if (hasName) { + tx2.call(svgTextUtils.positionText, 0, 0); + svgTextUtils.repositionMathGroup(tx2); + } + g.select("path").style({ + fill: numsColor, + stroke: contrastColor + }); + var htx = d.xa._offset + (d.x0 + d.x1) / 2; + var hty = d.ya._offset + (d.y0 + d.y1) / 2; + var dx = Math.abs(d.x1 - d.x0); + var dy = Math.abs(d.y1 - d.y0); + var tx2width = 0; + var tx2height = 0; + if (hasName) { + var t2bb = getHoverTextBBox(gd, tx2); + tx2width = t2bb.width + 2 * HOVERTEXTPAD2; + tx2height = t2bb.height + 2 * HOVERTEXTPAD2; + } + var tbb2 = getHoverTextBBox(gd, tx); + var tbbWidth = tbb2.width / fullLayout._invScaleX; + var tbbHeight = tbb2.height / fullLayout._invScaleY; + d.ty0 = (outerTop - tbb2.top) / fullLayout._invScaleY; + d.bx = tbbWidth + 2 * HOVERTEXTPAD2; + d.by = Math.max(tbbHeight + 2 * HOVERTEXTPAD2, tx2height); + d.anchor = "start"; + d.txwidth = tbbWidth; + d.tx2width = tx2width; + d.offset = 0; + var txTotalWidth = (tbbWidth + HOVERARROWSIZE2 + HOVERTEXTPAD2 + tx2width) * fullLayout._invScaleX; + var anchorStartOK, anchorEndOK; + if (rotateLabels) { + d.pos = htx; + anchorStartOK = hty + dy / 2 + txTotalWidth <= outerHeight; + anchorEndOK = hty - dy / 2 - txTotalWidth >= 0; + if ((d.idealAlign === "top" || !anchorStartOK) && anchorEndOK) { + hty -= dy / 2; + d.anchor = "end"; + } else if (anchorStartOK) { + hty += dy / 2; + d.anchor = "start"; + } else { + d.anchor = "middle"; + } + d.crossPos = hty; } else { - d.anchor = "middle"; + d.pos = hty; + anchorStartOK = htx + dx / 2 + txTotalWidth <= outerWidth; + anchorEndOK = htx - dx / 2 - txTotalWidth >= 0; + if ((d.idealAlign === "left" || !anchorStartOK) && anchorEndOK) { + htx -= dx / 2; + d.anchor = "end"; + } else if (anchorStartOK) { + htx += dx / 2; + d.anchor = "start"; + } else { + d.anchor = "middle"; + var txHalfWidth = txTotalWidth / 2; + var overflowR = htx + txHalfWidth - outerWidth; + var overflowL = htx - txHalfWidth; + if (overflowR > 0) htx -= overflowR; + if (overflowL < 0) htx += -overflowL; + } + d.crossPos = htx; } - d.crossPos = hty; - } else { - d.pos = hty; - anchorStartOK = htx + dx / 2 + txTotalWidth <= outerWidth; - anchorEndOK = htx - dx / 2 - txTotalWidth >= 0; - if ((d.idealAlign === "left" || !anchorStartOK) && anchorEndOK) { - htx -= dx / 2; - d.anchor = "end"; - } else if (anchorStartOK) { - htx += dx / 2; - d.anchor = "start"; - } else { - d.anchor = "middle"; - var txHalfWidth = txTotalWidth / 2; - var overflowR = htx + txHalfWidth - outerWidth; - var overflowL = htx - txHalfWidth; - if (overflowR > 0) htx -= overflowR; - if (overflowL < 0) htx += -overflowL; - } - d.crossPos = htx; - } - tx.attr("text-anchor", d.anchor); - if (tx2width) tx2.attr("text-anchor", d.anchor); - g.attr("transform", strTranslate(htx, hty) + (rotateLabels ? strRotate(YANGLE2) : "")); + tx.attr("text-anchor", d.anchor); + if (tx2width) tx2.attr("text-anchor", d.anchor); + g.attr("transform", strTranslate(htx, hty) + (rotateLabels ? strRotate(YANGLE2) : "")); + } }); return { hoverLabels, - commonLabelBoundingBox: commonLabelRect + commonLabelBoundingBox: commonLabelRect, + mathjaxPromise: mathjaxPromises.length ? Promise.all(mathjaxPromises) : null }; } function getHoverLabelText(d, showCommonLabel, hovermode, fullLayout, t02, g) { @@ -48788,7 +48994,7 @@ var Plotly = (() => { } function marginPushersAgain() { if (!Plots.didMarginChange(oldMargins, fullLayout._size)) return; - return Lib.syncOrAsync([marginPushers, subroutines.layoutStyles], gd); + return marginPushers(); } function positionAndAutorange() { if (!recalc) { @@ -65265,7 +65471,7 @@ var Plotly = (() => { obj.percentPrevious = cdi.difR; obj.percentPreviousLabel = Lib.formatPercent(cdi.difR); obj.percentTotal = cdi.sumR; - obj.percenTotalLabel = Lib.formatPercent(cdi.sumR); + obj.percentTotalLabel = Lib.formatPercent(cdi.sumR); } var customdata = Lib.castOption(trace, cdi.i, "customdata"); if (customdata) obj.customdata = customdata; diff --git a/dist/plotly-finance.min.js b/dist/plotly-finance.min.js index 977f96fd2b5..6ce05f1724f 100644 --- a/dist/plotly-finance.min.js +++ b/dist/plotly-finance.min.js @@ -1,5 +1,5 @@ /** -* plotly.js (finance - minified) v4.1.2 +* plotly.js (finance - minified) v4.2.0 * Copyright 2012-2026, Plotly, Inc. * All rights reserved. * Licensed under the MIT license @@ -12,16 +12,16 @@ root.moduleName = factory(); } } (typeof self !== "undefined" ? self : this, () => { -"use strict";var Plotly=(()=>{var Tj=Object.create;var wc=Object.defineProperty,Mj=Object.defineProperties,Aj=Object.getOwnPropertyDescriptor,kj=Object.getOwnPropertyDescriptors,Cj=Object.getOwnPropertyNames,Dd=Object.getOwnPropertySymbols,Lj=Object.getPrototypeOf,Mg=Object.prototype.hasOwnProperty,C9=Object.prototype.propertyIsEnumerable;var k9=(e,r,t)=>r in e?wc(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,ut=(e,r)=>{for(var t in r||(r={}))Mg.call(r,t)&&k9(e,t,r[t]);if(Dd)for(var t of Dd(r))C9.call(r,t)&&k9(e,t,r[t]);return e},Pt=(e,r)=>Mj(e,kj(r));var L9=(e,r)=>{var t={};for(var a in e)Mg.call(e,a)&&r.indexOf(a)<0&&(t[a]=e[a]);if(e!=null&&Dd)for(var a of Dd(e))r.indexOf(a)<0&&C9.call(e,a)&&(t[a]=e[a]);return t};var Lr=(e,r,t)=>()=>{if(t)throw t[0];try{return e&&(r=e(e=0)),r}catch(a){throw t=[a],a}};var U=(e,r)=>()=>{try{return r||e((r={exports:{}}).exports,r),r.exports}catch(t){throw r=0,t}},vt=(e,r)=>{for(var t in r)wc(e,t,{get:r[t],enumerable:!0})},S9=(e,r,t,a)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of Cj(r))!Mg.call(e,n)&&n!==t&&wc(e,n,{get:()=>r[n],enumerable:!(a=Aj(r,n))||a.enumerable});return e};var q9=(e,r,t)=>(t=e!=null?Tj(Lj(e)):{},S9(r||!e||!e.__esModule?wc(t,"default",{value:e,enumerable:!0}):t,e)),Fe=e=>S9(wc({},"__esModule",{value:!0}),e);var D9=(e,r,t)=>new Promise((a,n)=>{var i=s=>{try{o(t.next(s))}catch(u){n(u)}},l=s=>{try{o(t.throw(s))}catch(u){n(u)}},o=s=>s.done?a(s.value):Promise.resolve(s.value).then(i,l);o((t=t.apply(e,r)).next())});var Tc=U(P9=>{"use strict";P9.version="4.1.2"});var R9=U((E9,Pd)=>{(function(r,t,a){t[r]=t[r]||a(),typeof Pd!="undefined"&&Pd.exports&&(Pd.exports=t[r])})("Promise",typeof window!="undefined"?window:E9,function(){"use strict";var r,t,a,n=Object.prototype.toString,i=typeof setImmediate!="undefined"?function(_){return setImmediate(_)}:setTimeout;try{Object.defineProperty({},"x",{}),r=function(_,w,x,M){return Object.defineProperty(_,w,{value:x,writable:!0,configurable:M!==!1})}}catch(b){r=function(w,x,M){return w[x]=M,w}}a=(function(){var _,w,x;function M(k,A){this.fn=k,this.self=A,this.next=void 0}return{add:function(A,S){x=new M(A,S),w?w.next=x:_=x,w=x,x=void 0},drain:function(){var A=_;for(_=w=t=void 0;A;)A.fn.call(A.self),A=A.next}}})();function l(b,_){a.add(b,_),t||(t=i(a.drain))}function o(b){var _,w=typeof b;return b!=null&&(w=="object"||w=="function")&&(_=b.then),typeof _=="function"?_:!1}function s(){for(var b=0;b0&&l(s,w))}catch(x){c.call(new h(w),x)}}}function c(b){var _=this;_.triggered||(_.triggered=!0,_.def&&(_=_.def),_.msg=b,_.state=2,_.chain.length>0&&l(s,_))}function v(b,_,w,x){for(var M=0;M<_.length;M++)(function(A){b.resolve(_[A]).then(function(D){w(A,D)},x)})(M)}function h(b){this.def=b,this.triggered=!1}function p(b){this.promise=b,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function y(b){if(typeof b!="function")throw TypeError("Not a function");if(this.__NPO__!==0)throw TypeError("Not a promise");this.__NPO__=1;var _=new p(this);this.then=function(x,M){var k={success:typeof x=="function"?x:!0,failure:typeof M=="function"?M:!1};return k.promise=new this.constructor(function(S,D){if(typeof S!="function"||typeof D!="function")throw TypeError("Not a function");k.resolve=S,k.reject=D}),_.chain.push(k),_.state!==0&&l(s,_),k.promise},this.catch=function(x){return this.then(void 0,x)};try{b.call(void 0,function(x){f.call(_,x)},function(x){c.call(_,x)})}catch(w){c.call(_,w)}}var m=r({},"constructor",y,!1);return y.prototype=m,r(m,"__NPO__",0,!1),r(y,"resolve",function(_){var w=this;return _&&typeof _=="object"&&_.__NPO__===1?_:new w(function(M,k){if(typeof M!="function"||typeof k!="function")throw TypeError("Not a function");M(_)})}),r(y,"reject",function(_){return new this(function(x,M){if(typeof x!="function"||typeof M!="function")throw TypeError("Not a function");M(_)})}),r(y,"all",function(_){var w=this;return n.call(_)!="[object Array]"?w.reject(TypeError("Not an array")):_.length===0?w.resolve([]):new w(function(M,k){if(typeof M!="function"||typeof k!="function")throw TypeError("Not a function");var A=_.length,S=Array(A),D=0;v(w,_,function(R,F){S[R]=F,++D===A&&M(S)},k)})}),r(y,"race",function(_){var w=this;return n.call(_)!="[object Array]"?w.reject(TypeError("Not an array")):new w(function(M,k){if(typeof M!="function"||typeof k!="function")throw TypeError("Not a function");v(w,_,function(S,D){M(D)},k)})}),y})});var Er=U((rTe,Ed)=>{(function(){var e={version:"3.8.2"},r=[].slice,t=function(d){return r.call(d)},a=self.document;function n(d){return d&&(d.ownerDocument||d.document||d).documentElement}function i(d){return d&&(d.ownerDocument&&d.ownerDocument.defaultView||d.document&&d||d.defaultView)}if(a)try{t(a.documentElement.childNodes)[0].nodeType}catch(d){t=function(g){for(var T=g.length,C=new Array(T);T--;)C[T]=g[T];return C}}if(Date.now||(Date.now=function(){return+new Date}),a)try{a.createElement("DIV").style.setProperty("opacity",0,"")}catch(d){var l=this.Element.prototype,o=l.setAttribute,s=l.setAttributeNS,u=this.CSSStyleDeclaration.prototype,f=u.setProperty;l.setAttribute=function(g,T){o.call(this,g,T+"")},l.setAttributeNS=function(g,T,C){s.call(this,g,T,C+"")},u.setProperty=function(g,T,C){f.call(this,g,T+"",C)}}e.ascending=c;function c(d,g){return dg?1:d>=g?0:NaN}e.descending=function(d,g){return gd?1:g>=d?0:NaN},e.min=function(d,g){var T=-1,C=d.length,L,q;if(arguments.length===1){for(;++T=q){L=q;break}for(;++Tq&&(L=q)}else{for(;++T=q){L=q;break}for(;++Tq&&(L=q)}return L},e.max=function(d,g){var T=-1,C=d.length,L,q;if(arguments.length===1){for(;++T=q){L=q;break}for(;++TL&&(L=q)}else{for(;++T=q){L=q;break}for(;++TL&&(L=q)}return L},e.extent=function(d,g){var T=-1,C=d.length,L,q,z;if(arguments.length===1){for(;++T=q){L=z=q;break}for(;++Tq&&(L=q),z=q){L=z=q;break}for(;++Tq&&(L=q),z1)return z/(I-1)},e.deviation=function(){var d=e.variance.apply(this,arguments);return d&&Math.sqrt(d)};function p(d){return{left:function(g,T,C,L){for(arguments.length<3&&(C=0),arguments.length<4&&(L=g.length);C>>1;d(g[q],T)<0?C=q+1:L=q}return C},right:function(g,T,C,L){for(arguments.length<3&&(C=0),arguments.length<4&&(L=g.length);C>>1;d(g[q],T)>0?L=q:C=q+1}return C}}}var y=p(c);e.bisectLeft=y.left,e.bisect=e.bisectRight=y.right,e.bisector=function(d){return p(d.length===1?function(g,T){return c(d(g),T)}:d)},e.shuffle=function(d,g,T){(C=arguments.length)<3&&(T=d.length,C<2&&(g=0));for(var C=T-g,L,q;C;)q=Math.random()*C--|0,L=d[C+g],d[C+g]=d[q+g],d[q+g]=L;return d},e.permute=function(d,g){for(var T=g.length,C=new Array(T);T--;)C[T]=d[g[T]];return C},e.pairs=function(d){for(var g=0,T=d.length-1,C,L=d[0],q=new Array(T<0?0:T);g=0;)for(z=d[g],T=z.length;--T>=0;)q[--L]=z[T];return q};var b=Math.abs;e.range=function(d,g,T){if(arguments.length<3&&(T=1,arguments.length<2&&(g=d,d=0)),(g-d)/T===1/0)throw new Error("infinite range");var C=[],L=_(b(T)),q=-1,z;if(d*=L,g*=L,T*=L,T<0)for(;(z=d+T*++q)>g;)C.push(z/L);else for(;(z=d+T*++q)=g.length)return L?L.call(d,I):C?I.sort(C):I;for(var J=-1,j=I.length,Q=g[Z++],fe,be,ee,ne=new x,oe;++J=g.length)return E;var Z=[],J=T[I++];return E.forEach(function(j,Q){Z.push({key:j,values:z(Q,I)})}),J?Z.sort(function(j,Q){return J(j.key,Q.key)}):Z}return d.map=function(E,I){return q(I,E,0)},d.entries=function(E){return z(q(e.map,E,0),0)},d.key=function(E){return g.push(E),d},d.sortKeys=function(E){return T[g.length-1]=E,d},d.sortValues=function(E){return C=E,d},d.rollup=function(E){return L=E,d},d},e.set=function(d){var g=new B;if(d)for(var T=0,C=d.length;T=0&&(C=d.slice(T+1),d=d.slice(0,T)),d)return arguments.length<2?this[d].on(C):this[d].on(C,g);if(arguments.length===2){if(g==null)for(d in this)this.hasOwnProperty(d)&&this[d].on(C,null);return this}};function X(d){var g=[],T=new x;function C(){for(var L=g,q=-1,z=L.length,E;++q=0&&(T=d.slice(0,g))!=="xmlns"&&(d=d.slice(g+1)),Pe.hasOwnProperty(T)?{space:Pe[T],local:d}:d}},ce.attr=function(d,g){if(arguments.length<2){if(typeof d=="string"){var T=this.node();return d=e.ns.qualify(d),d.local?T.getAttributeNS(d.space,d.local):T.getAttribute(d)}for(g in d)this.each(Le(g,d[g]));return this}return this.each(Le(d,g))};function Le(d,g){d=e.ns.qualify(d);function T(){this.removeAttribute(d)}function C(){this.removeAttributeNS(d.space,d.local)}function L(){this.setAttribute(d,g)}function q(){this.setAttributeNS(d.space,d.local,g)}function z(){var I=g.apply(this,arguments);I==null?this.removeAttribute(d):this.setAttribute(d,I)}function E(){var I=g.apply(this,arguments);I==null?this.removeAttributeNS(d.space,d.local):this.setAttributeNS(d.space,d.local,I)}return g==null?d.local?C:T:typeof g=="function"?d.local?E:z:d.local?q:L}function qe(d){return d.trim().replace(/\s+/g," ")}ce.classed=function(d,g){if(arguments.length<2){if(typeof d=="string"){var T=this.node(),C=(d=Ue(d)).length,L=-1;if(g=T.classList){for(;++L=0;)(q=T[C])&&(L&&L!==q.nextSibling&&L.parentNode.insertBefore(q,L),L=q);return this},ce.sort=function(d){d=ye.apply(this,arguments);for(var g=-1,T=this.length;++g=g&&(g=L+1);!(I=z[g])&&++g0&&(d=d.slice(0,L));var z=Oe.get(d);z&&(d=z,q=Be);function E(){var J=this[C];J&&(this.removeEventListener(d,J,J.$),delete this[C])}function I(){var J=q(g,t(arguments));E.call(this),this.addEventListener(d,this[C]=J,J.$=T),J._=g}function Z(){var J=new RegExp("^__on([^.]+)"+e.requote(d)+"$"),j;for(var Q in this)if(j=Q.match(J)){var fe=this[Q];this.removeEventListener(j[1],fe,fe.$),delete this[Q]}}return L?g?I:E:g?V:Z}var Oe=e.map({mouseenter:"mouseover",mouseleave:"mouseout"});a&&Oe.forEach(function(d){"on"+d in a&&Oe.remove(d)});function Je(d,g){return function(T){var C=e.event;e.event=T,g[0]=this.__data__;try{d.apply(this,g)}finally{e.event=C}}}function Be(d,g){var T=Je(d,g);return function(C){var L=this,q=C.relatedTarget;(!q||q!==L&&!(q.compareDocumentPosition(L)&8))&&T.call(L,C)}}var Ve,nr=0;function lr(d){var g=".dragsuppress-"+ ++nr,T="click"+g,C=e.select(i(d)).on("touchmove"+g,$).on("dragstart"+g,$).on("selectstart"+g,$);if(Ve==null&&(Ve="onselectstart"in d?!1:Y(d.style,"userSelect")),Ve){var L=n(d).style,q=L[Ve];L[Ve]="none"}return function(z){if(C.on(g,null),Ve&&(L[Ve]=q),z){var E=function(){C.on(T,null)};C.on(T,function(){$(),E()},!0),setTimeout(E,0)}}}e.mouse=function(d){return Se(d,te())};var fr=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;function Se(d,g){g.changedTouches&&(g=g.changedTouches[0]);var T=d.ownerSVGElement||d;if(T.createSVGPoint){var C=T.createSVGPoint();if(fr<0){var L=i(d);if(L.scrollX||L.scrollY){T=e.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var q=T[0][0].getScreenCTM();fr=!(q.f||q.e),T.remove()}}return fr?(C.x=g.pageX,C.y=g.pageY):(C.x=g.clientX,C.y=g.clientY),C=C.matrixTransform(d.getScreenCTM().inverse()),[C.x,C.y]}var z=d.getBoundingClientRect();return[g.clientX-z.left-d.clientLeft,g.clientY-z.top-d.clientTop]}e.touch=function(d,g,T){if(arguments.length<3&&(T=g,g=te().changedTouches),g){for(var C=0,L=g.length,q;C0?1:d<0?-1:0}function rt(d,g,T){return(g[0]-d[0])*(T[1]-d[1])-(g[1]-d[1])*(T[0]-d[0])}function ft(d){return d>1?0:d<-1?br:Math.acos(d)}function yt(d){return d>1?ae:d<-1?-ae:Math.asin(d)}function Vt(d){return((d=Math.exp(d))-1/d)/2}function Nt(d){return((d=Math.exp(d))+1/d)/2}function Sa(d){return((d=Math.exp(2*d))-1)/(d+1)}function bn(d){return(d=Math.sin(d/2))*d}var fa=Math.SQRT2,hn=2,Nn=4;e.interpolateZoom=function(d,g){var T=d[0],C=d[1],L=d[2],q=g[0],z=g[1],E=g[2],I=q-T,Z=z-C,J=I*I+Z*Z,j,Q;if(J0&&(tr=tr.transition().duration(z)),tr.call(we.event)}function gr(){ne&&ne.domain(ee.range().map(function(tr){return(tr-d.x)/d.k}).map(ee.invert)),ge&&ge.domain(oe.range().map(function(tr){return(tr-d.y)/d.k}).map(oe.invert))}function xr(tr){E++||tr({type:"zoomstart"})}function Nr(tr){gr(),tr({type:"zoom",scale:d.k,translate:[d.x,d.y]})}function wr(tr){--E||(tr({type:"zoomend"}),T=null)}function Pr(){var tr=this,Ir=be.of(tr,arguments),Br=0,nt=e.select(i(tr)).on(Z,Fa).on(J,rn),Bt=ue(e.mouse(tr)),da=lr(tr);Cd.call(tr),xr(Ir);function Fa(){Br=1,cr(e.mouse(tr),Bt),Nr(Ir)}function rn(){nt.on(Z,null).on(J,null),da(Br),wr(Ir)}}function at(){var tr=this,Ir=be.of(tr,arguments),Br={},nt=0,Bt,da=".zoom-"+e.event.changedTouches[0].identifier,Fa="touchmove"+da,rn="touchend"+da,pn=[],tn=e.select(tr),_n=lr(tr);wn(),xr(Ir),tn.on(I,null).on(Q,wn);function Wa(){var Ri=e.touches(tr);return Bt=d.k,Ri.forEach(function(Na){Na.identifier in Br&&(Br[Na.identifier]=ue(Na))}),Ri}function wn(){var Ri=e.event.target;e.select(Ri).on(Fa,ws).on(rn,wj),pn.push(Ri);for(var Na=e.event.changedTouches,oi=0,ul=Na.length;oi1){var Ts=si[0],vo=si[1],qd=Ts[0]-vo[0],A9=Ts[1]-vo[1];nt=qd*qd+A9*A9}}function ws(){var Ri=e.touches(tr),Na,oi,ul,si;Cd.call(tr);for(var i0=0,Ts=Ri.length;i01?1:g,T=T<0?0:T>1?1:T,L=T<=.5?T*(1+g):T+g-T*g,C=2*T-L;function q(E){return E>360?E-=360:E<0&&(E+=360),E<60?C+(L-C)*E/60:E<180?L:E<240?C+(L-C)*(240-E)/60:C}function z(E){return Math.round(q(E)*255)}return new Qa(z(d+120),z(d),z(d-120))}e.hcl=ct;function ct(d,g,T){return this instanceof ct?(this.h=+d,this.c=+g,void(this.l=+T)):arguments.length<2?d instanceof ct?new ct(d.h,d.c,d.l):d instanceof $t?od(d.l,d.a,d.b):od((d=cd((d=e.rgb(d)).r,d.g,d.b)).l,d.a,d.b):new ct(d,g,T)}var ca=ct.prototype=new tt;ca.brighter=function(d){return new ct(this.h,this.c,Math.min(100,this.l+Tt*(arguments.length?d:1)))},ca.darker=function(d){return new ct(this.h,this.c,Math.max(0,this.l-Tt*(arguments.length?d:1)))},ca.rgb=function(){return ni(this.h,this.c,this.l).rgb()};function ni(d,g,T){return isNaN(d)&&(d=0),isNaN(g)&&(g=0),new $t(T,Math.cos(d*=de)*g,Math.sin(d)*g)}e.lab=$t;function $t(d,g,T){return this instanceof $t?(this.l=+d,this.a=+g,void(this.b=+T)):arguments.length<2?d instanceof $t?new $t(d.l,d.a,d.b):d instanceof ct?ni(d.h,d.c,d.l):cd((d=Qa(d)).r,d.g,d.b):new $t(d,g,T)}var Tt=18,ia=.95047,la=1,ys=1.08883,uo=$t.prototype=new tt;uo.brighter=function(d){return new $t(Math.min(100,this.l+Tt*(arguments.length?d:1)),this.a,this.b)},uo.darker=function(d){return new $t(Math.max(0,this.l-Tt*(arguments.length?d:1)),this.a,this.b)},uo.rgb=function(){return ld(this.l,this.a,this.b)};function ld(d,g,T){var C=(d+16)/116,L=C+g/500,q=C-T/200;return L=sc(L)*ia,C=sc(C)*la,q=sc(q)*ys,new Qa(fc(3.2404542*L-1.5371385*C-.4985314*q),fc(-.969266*L+1.8760108*C+.041556*q),fc(.0556434*L-.2040259*C+1.0572252*q))}function od(d,g,T){return d>0?new ct(Math.atan2(T,g)*Ne,Math.sqrt(g*g+T*T),d):new ct(NaN,NaN,d)}function sc(d){return d>.206893034?d*d*d:(d-4/29)/7.787037}function uc(d){return d>.008856?Math.pow(d,1/3):7.787037*d+4/29}function fc(d){return Math.round(255*(d<=.00304?12.92*d:1.055*Math.pow(d,1/2.4)-.055))}e.rgb=Qa;function Qa(d,g,T){return this instanceof Qa?(this.r=~~d,this.g=~~g,void(this.b=~~T)):arguments.length<2?d instanceof Qa?new Qa(d.r,d.g,d.b):ud(""+d,Qa,Dt):new Qa(d,g,T)}function sd(d){return new Qa(d>>16,d>>8&255,d&255)}function Ku(d){return sd(d)+""}var ju=Qa.prototype=new tt;ju.brighter=function(d){d=Math.pow(.7,arguments.length?d:1);var g=this.r,T=this.g,C=this.b,L=30;return!g&&!T&&!C?new Qa(L,L,L):(g&&g>4,C=C>>4|C,L=I&240,L=L>>4|L,q=I&15,q=q<<4|q):d.length===7&&(C=(I&16711680)>>16,L=(I&65280)>>8,q=I&255)),g(C,L,q))}function fd(d,g,T){var C=Math.min(d/=255,g/=255,T/=255),L=Math.max(d,g,T),q=L-C,z,E,I=(L+C)/2;return q?(E=I<.5?q/(L+C):q/(2-L-C),d==L?z=(g-T)/q+(g0&&I<1?0:z),new wt(z,E,I)}function cd(d,g,T){d=cc(d),g=cc(g),T=cc(T);var C=uc((.4124564*d+.3575761*g+.1804375*T)/ia),L=uc((.2126729*d+.7151522*g+.072175*T)/la),q=uc((.0193339*d+.119192*g+.9503041*T)/ys);return $t(116*L-16,500*(C-L),200*(L-q))}function cc(d){return(d/=255)<=.04045?d/12.92:Math.pow((d+.055)/1.055,2.4)}function vc(d){var g=parseFloat(d);return d.charAt(d.length-1)==="%"?Math.round(g*2.55):g}var Mr=e.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});Mr.forEach(function(d,g){Mr.set(d,sd(g))});function Tr(d){return typeof d=="function"?d:function(){return d}}e.functor=Tr,e.xhr=it(H);function it(d){return function(g,T,C){return arguments.length===2&&typeof T=="function"&&(C=T,T=null),or(g,T,d,C)}}function or(d,g,T,C){var L={},q=e.dispatch("beforesend","progress","load","error"),z={},E=new XMLHttpRequest,I=null;self.XDomainRequest&&!("withCredentials"in E)&&/^(http(s)?:)?\/\//.test(d)&&(E=new XDomainRequest),"onload"in E?E.onload=E.onerror=Z:E.onreadystatechange=function(){E.readyState>3&&Z()};function Z(){var J=E.status,j;if(!J&&Mt(E)||J>=200&&J<300||J===304){try{j=T.call(L,E)}catch(Q){q.error.call(L,Q);return}q.load.call(L,j)}else q.error.call(L,E)}return E.onprogress=function(J){var j=e.event;e.event=J;try{q.progress.call(L,E)}finally{e.event=j}},L.header=function(J,j){return J=(J+"").toLowerCase(),arguments.length<2?z[J]:(j==null?delete z[J]:z[J]=j+"",L)},L.mimeType=function(J){return arguments.length?(g=J==null?null:J+"",L):g},L.responseType=function(J){return arguments.length?(I=J,L):I},L.response=function(J){return T=J,L},["get","post"].forEach(function(J){L[J]=function(){return L.send.apply(L,[J].concat(t(arguments)))}}),L.send=function(J,j,Q){if(arguments.length===2&&typeof j=="function"&&(Q=j,j=null),E.open(J,d,!0),g!=null&&!("accept"in z)&&(z.accept=g+",*/*"),E.setRequestHeader)for(var fe in z)E.setRequestHeader(fe,z[fe]);return g!=null&&E.overrideMimeType&&E.overrideMimeType(g),I!=null&&(E.responseType=I),Q!=null&&L.on("error",Q).on("load",function(be){Q(null,be)}),q.beforesend.call(L,E),E.send(j==null?null:j),L},L.abort=function(){return E.abort(),L},e.rebind(L,q,"on"),C==null?L:L.get(en(C))}function en(d){return d.length===1?function(g,T){d(g==null?T:null)}:d}function Mt(d){var g=d.responseType;return g&&g!=="text"?d.response:d.responseText}e.dsv=function(d,g){var T=new RegExp('["'+d+` -]`),C=d.charCodeAt(0);function L(Z,J,j){arguments.length<3&&(j=J,J=null);var Q=or(Z,g,J==null?q:z(J),j);return Q.row=function(fe){return arguments.length?Q.response((J=fe)==null?q:z(fe)):J},Q}function q(Z){return L.parse(Z.responseText)}function z(Z){return function(J){return L.parse(J.responseText,Z)}}L.parse=function(Z,J){var j;return L.parseRows(Z,function(Q,fe){if(j)return j(Q,fe-1);var be=function(ee){for(var ne={},oe=Q.length,ge=0;ge=be)return Q;if(ge)return ge=!1,j;var Ye=ee;if(Z.charCodeAt(Ye)===34){for(var ir=Ye;ir++24?(isFinite(g)&&(clearTimeout(gs),gs=setTimeout($y,g)),ii=0):(ii=1,c8($y))}e.timer.flush=function(){v8(),d8()};function v8(){for(var d=Date.now(),g=Ra;g;)d>=g.t&&g.c(d-g.t)&&(g.c=null),g=g.n;return d}function d8(){for(var d,g=Ra,T=1/0;g;)g.c?(g.t=0;--E)ee.push(L[Z[j[E]][2]]);for(E=+fe;E1&&rt(d[T[C-2]],d[T[C-1]],d[L])<=0;)--C;T[C++]=L}return T.slice(0,C)}function A$(d,g){return d[0]-g[0]||d[1]-g[1]}e.geom.polygon=function(d){return K(d,dd),d};var dd=e.geom.polygon.prototype=[];dd.area=function(){for(var d=-1,g=this.length,T,C=this[g-1],L=0;++dIe)E=E.L;else if(z=g-S$(E,T),z>Ie){if(!E.R){C=E;break}E=E.R}else{q>-Ie?(C=E.P,L=E):z>-Ie?(C=E,L=E.N):C=L=E;break}var I=g8(d);if(r0.insert(C,I),!(!C&&!L)){if(C===L){a0(C),L=g8(C.site),r0.insert(I,L),I.edge=L.edge=pc(C.site,I.site),t0(C),t0(L);return}if(!L){I.edge=pc(C.site,I.site);return}a0(C),a0(L);var Z=C.site,J=Z.x,j=Z.y,Q=d.x-J,fe=d.y-j,be=L.site,ee=be.x-J,ne=be.y-j,oe=2*(Q*ne-fe*ee),ge=Q*Q+fe*fe,we=ee*ee+ne*ne,ue={x:(ne*ge-fe*we)/oe+J,y:(Q*we-ee*ge)/oe+j};hd(L.edge,Z,be,ue),I.edge=pc(Z,d,null,ue),L.edge=pc(d,be,null,ue),t0(C),t0(L)}}function x8(d,g){var T=d.site,C=T.x,L=T.y,q=L-g;if(!q)return C;var z=d.P;if(!z)return-1/0;T=z.site;var E=T.x,I=T.y,Z=I-g;if(!Z)return E;var J=E-C,j=1/q-1/Z,Q=J/Z;return j?(-Q+Math.sqrt(Q*Q-2*j*(J*J/(-2*Z)-I+Z/2+L-q/2)))/j+C:(C+E)/2}function S$(d,g){var T=d.N;if(T)return x8(T,g);var C=d.site;return C.y===g?C.x:1/0}function b8(d){this.site=d,this.edges=[]}b8.prototype.prepare=function(){for(var d=this.edges,g=d.length,T;g--;)T=d[g].edge,(!T.b||!T.a)&&d.splice(g,1);return d.sort(_8),d.length};function q$(d){for(var g=d[0][0],T=d[1][0],C=d[0][1],L=d[1][1],q,z,E,I,Z=xs,J=Z.length,j,Q,fe,be,ee,ne;J--;)if(j=Z[J],!(!j||!j.prepare()))for(fe=j.edges,be=fe.length,Q=0;QIe||b(I-z)>Ie)&&(fe.splice(Q,0,new pd(z$(j.site,ne,b(E-g)Ie?{x:g,y:b(q-g)Ie?{x:b(z-L)Ie?{x:T,y:b(q-T)Ie?{x:b(z-C)=-pr)){var Q=I*I+Z*Z,fe=J*J+ne*ne,be=(ne*Q-Z*fe)/j,ee=(I*fe-J*Q)/j,ne=ee+E,oe=y8.pop()||new D$;oe.arc=d,oe.site=L,oe.x=be+z,oe.y=ne+Math.sqrt(be*be+ee*ee),oe.cy=ne,d.circle=oe;for(var ge=null,we=hc._;we;)if(oe.y0)){if(ee/=fe,fe<0){if(ee0){if(ee>Q)return;ee>j&&(j=ee)}if(ee=T-E,!(!fe&&ee<0)){if(ee/=fe,fe<0){if(ee>Q)return;ee>j&&(j=ee)}else if(fe>0){if(ee0)){if(ee/=be,be<0){if(ee0){if(ee>Q)return;ee>j&&(j=ee)}if(ee=C-I,!(!be&&ee<0)){if(ee/=be,be<0){if(ee>Q)return;ee>j&&(j=ee)}else if(be>0){if(ee0&&(L.a={x:E+j*fe,y:I+j*be}),Q<1&&(L.b={x:E+Q*fe,y:I+Q*be}),L}}}}}}function E$(d){for(var g=e0,T=P$(d[0][0],d[0][1],d[1][0],d[1][1]),C=g.length,L;C--;)L=g[C],(!R$(L,d)||!T(L)||b(L.a.x-L.b.x)=q)return;if(J>Q){if(!C)C={x:be,y:z};else if(C.y>=E)return;T={x:be,y:E}}else{if(!C)C={x:be,y:E};else if(C.y1)if(J>Q){if(!C)C={x:(z-oe)/ne,y:z};else if(C.y>=E)return;T={x:(E-oe)/ne,y:E}}else{if(!C)C={x:(E-oe)/ne,y:E};else if(C.y=q)return;T={x:q,y:ne*q+oe}}else{if(!C)C={x:q,y:ne*q+oe};else if(C.x=J&&oe.x<=Q&&oe.y>=j&&oe.y<=fe?[[J,fe],[Q,fe],[Q,j],[J,j]]:[];ge.point=I[ee]}),Z}function E(I){return I.map(function(Z,J){return{x:Math.round(C(Z,J)/Ie)*Ie,y:Math.round(L(Z,J)/Ie)*Ie,i:J}})}return z.links=function(I){return tg(E(I)).edges.filter(function(Z){return Z.l&&Z.r}).map(function(Z){return{source:I[Z.l.i],target:I[Z.r.i]}})},z.triangles=function(I){var Z=[];return tg(E(I)).cells.forEach(function(J,j){for(var Q=J.site,fe=J.edges.sort(_8),be=-1,ee=fe.length,ne,oe,ge=fe[ee-1].edge,we=ge.l===Q?ge.r:ge.l;++bewe&&(we=J.x),J.y>ue&&(ue=J.y),fe.push(J.x),be.push(J.y);else for(ee=0;eewe&&(we=Ye),ir>ue&&(ue=ir),fe.push(Ye),be.push(ir)}var cr=we-oe,sr=ue-ge;cr>sr?ue=ge+cr:we=oe+sr;function gr(wr,Pr,at,Kt,ot,tr,Ir,Br){if(!(isNaN(at)||isNaN(Kt)))if(wr.leaf){var nt=wr.x,Bt=wr.y;if(nt!=null)if(b(nt-at)+b(Bt-Kt)<.01)xr(wr,Pr,at,Kt,ot,tr,Ir,Br);else{var da=wr.point;wr.x=wr.y=wr.point=null,xr(wr,da,nt,Bt,ot,tr,Ir,Br),xr(wr,Pr,at,Kt,ot,tr,Ir,Br)}else wr.x=at,wr.y=Kt,wr.point=Pr}else xr(wr,Pr,at,Kt,ot,tr,Ir,Br)}function xr(wr,Pr,at,Kt,ot,tr,Ir,Br){var nt=(ot+Ir)*.5,Bt=(tr+Br)*.5,da=at>=nt,Fa=Kt>=Bt,rn=Fa<<1|da;wr.leaf=!1,wr=wr.nodes[rn]||(wr.nodes[rn]=M8()),da?ot=nt:Ir=nt,Fa?tr=Bt:Br=Bt,gr(wr,Pr,at,Kt,ot,tr,Ir,Br)}var Nr=M8();if(Nr.add=function(wr){gr(Nr,wr,+j(wr,++ee),+Q(wr,ee),oe,ge,we,ue)},Nr.visit=function(wr){gc(wr,Nr,oe,ge,we,ue)},Nr.find=function(wr){return H$(Nr,wr[0],wr[1],oe,ge,we,ue)},ee=-1,g==null){for(;++eeq||Q>z||fe=Ye,sr=T>=ir,gr=sr<<1|cr,xr=gr+4;grT&&(q=g.slice(T,q),E[z]?E[z]+=q:E[++z]=q),(C=C[0])===(L=L[0])?E[z]?E[z]+=L:E[++z]=L:(E[++z]=null,I.push({i:z,x:Fl(C,L)})),T=ig.lastIndex;return T=0&&!(C=e.interpolators[T](d,g)););return C}e.interpolators=[function(d,g){var T=typeof g;return(T==="string"?Mr.has(g.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(g)?ag:k8:g instanceof tt?ag:Array.isArray(g)?gd:T==="object"&&isNaN(g)?A8:Fl)(d,g)}],e.interpolateArray=gd;function gd(d,g){var T=[],C=[],L=d.length,q=g.length,z=Math.min(d.length,g.length),E;for(E=0;E=0?d.slice(0,g):d,C=g>=0?d.slice(g+1):"in";return T=O$.get(T)||C8,C=Y$.get(C)||H,G$(C(T.apply(null,r.call(arguments,1))))};function G$(d){return function(g){return g<=0?0:g>=1?1:d(g)}}function L8(d){return function(g){return 1-d(1-g)}}function S8(d){return function(g){return .5*(g<.5?d(2*g):2-d(2-2*g))}}function U$(d){return d*d}function V$(d){return d*d*d}function X$(d){if(d<=0)return 0;if(d>=1)return 1;var g=d*d,T=g*d;return 4*(d<.5?T:3*(d-g)+T-.75)}function W$(d){return function(g){return Math.pow(g,d)}}function Z$(d){return 1-Math.cos(d*ae)}function J$(d){return Math.pow(2,10*(d-1))}function $$(d){return 1-Math.sqrt(1-d*d)}function K$(d,g){var T;return arguments.length<2&&(g=.45),arguments.length?T=g/ur*Math.asin(1/d):(d=1,T=g/4),function(C){return 1+d*Math.pow(2,-10*C)*Math.sin((C-T)*ur/g)}}function j$(d){return d||(d=1.70158),function(g){return g*g*((d+1)*g-d)}}function Q$(d){return d<1/2.75?7.5625*d*d:d<2/2.75?7.5625*(d-=1.5/2.75)*d+.75:d<2.5/2.75?7.5625*(d-=2.25/2.75)*d+.9375:7.5625*(d-=2.625/2.75)*d+.984375}e.interpolateHcl=eK;function eK(d,g){d=e.hcl(d),g=e.hcl(g);var T=d.h,C=d.c,L=d.l,q=g.h-T,z=g.c-C,E=g.l-L;return isNaN(z)&&(z=0,C=isNaN(C)?g.c:C),isNaN(q)?(q=0,T=isNaN(T)?g.h:T):q>180?q-=360:q<-180&&(q+=360),function(I){return ni(T+q*I,C+z*I,L+E*I)+""}}e.interpolateHsl=rK;function rK(d,g){d=e.hsl(d),g=e.hsl(g);var T=d.h,C=d.s,L=d.l,q=g.h-T,z=g.s-C,E=g.l-L;return isNaN(z)&&(z=0,C=isNaN(C)?g.s:C),isNaN(q)?(q=0,T=isNaN(T)?g.h:T):q>180?q-=360:q<-180&&(q+=360),function(I){return Dt(T+q*I,C+z*I,L+E*I)+""}}e.interpolateLab=tK;function tK(d,g){d=e.lab(d),g=e.lab(g);var T=d.l,C=d.a,L=d.b,q=g.l-T,z=g.a-C,E=g.b-L;return function(I){return ld(T+q*I,C+z*I,L+E*I)+""}}e.interpolateRound=q8;function q8(d,g){return g-=d,function(T){return Math.round(d+g*T)}}e.transform=function(d){var g=a.createElementNS(e.ns.prefix.svg,"g");return(e.transform=function(T){if(T!=null){g.setAttribute("transform",T);var C=g.transform.baseVal.consolidate()}return new D8(C?C.matrix:nK)})(d)};function D8(d){var g=[d.a,d.b],T=[d.c,d.d],C=E8(g),L=P8(g,T),q=E8(aK(T,g,-L))||0;g[0]*T[1]180?g+=360:g-d>180&&(d+=360),C.push({i:T.push(n0(T)+"rotate(",null,")")-2,x:Fl(d,g)})):g&&T.push(n0(T)+"rotate("+g+")")}function oK(d,g,T,C){d!==g?C.push({i:T.push(n0(T)+"skewX(",null,")")-2,x:Fl(d,g)}):g&&T.push(n0(T)+"skewX("+g+")")}function sK(d,g,T,C){if(d[0]!==g[0]||d[1]!==g[1]){var L=T.push(n0(T)+"scale(",null,",",null,")");C.push({i:L-4,x:Fl(d[0],g[0])},{i:L-2,x:Fl(d[1],g[1])})}else(g[0]!==1||g[1]!==1)&&T.push(n0(T)+"scale("+g+")")}function R8(d,g){var T=[],C=[];return d=e.transform(d),g=e.transform(g),iK(d.translate,g.translate,T,C),lK(d.rotate,g.rotate,T,C),oK(d.skew,g.skew,T,C),sK(d.scale,g.scale,T,C),d=g=null,function(L){for(var q=-1,z=C.length,E;++q0?q=ue:(T.c=null,T.t=NaN,T=null,g.end({type:"end",alpha:q=0})):ue>0&&(g.start({type:"start",alpha:q=ue}),T=vd(d.tick)),d):q},d.start=function(){var ue,Ye=fe.length,ir=be.length,cr=C[0],sr=C[1],gr,xr;for(ue=0;ue=0;)q.push(J=Z[I]),J.parent=E,J.depth=E.depth+1;T&&(E.value=0),E.children=Z}else T&&(E.value=+T.call(C,E,E.depth)||0),delete E.children;return sl(L,function(j){var Q,fe;d&&(Q=j.children)&&Q.sort(d),T&&(fe=j.parent)&&(fe.value+=j.value)}),z}return C.sort=function(L){return arguments.length?(d=L,C):d},C.children=function(L){return arguments.length?(g=L,C):g},C.value=function(L){return arguments.length?(T=L,C):T},C.revalue=function(L){return T&&(bc(L,function(q){q.children&&(q.value=0)}),sl(L,function(q){var z;q.children||(q.value=+T.call(C,q,q.depth)||0),(z=q.parent)&&(z.value+=q.value)})),L},C};function xc(d,g){return e.rebind(d,g,"sort","children","value"),d.nodes=d,d.links=TK,d}function bc(d,g){for(var T=[d];(d=T.pop())!=null;)if(g(d),(L=d.children)&&(C=L.length))for(var C,L;--C>=0;)T.push(L[C])}function sl(d,g){for(var T=[d],C=[];(d=T.pop())!=null;)if(C.push(d),(z=d.children)&&(q=z.length))for(var L=-1,q,z;++LL&&(L=E),C.push(E)}for(z=0;zC&&(T=g,C=L);return T}function qK(d){return d.reduce(DK,0)}function DK(d,g){return d+g[1]}e.layout.histogram=function(){var d=!0,g=Number,T=EK,C=PK;function L(q,Q){for(var E=[],I=q.map(g,this),Z=T.call(this,I,Q),J=C.call(this,Z,I,Q),j,Q=-1,fe=I.length,be=J.length-1,ee=d?1:1/fe,ne;++Q0)for(Q=-1;++Q=Z[0]&&ne<=Z[1]&&(j=E[e.bisect(J,ne,1,be)-1],j.y+=ee,j.push(q[Q]));return E}return L.value=function(q){return arguments.length?(g=q,L):g},L.range=function(q){return arguments.length?(T=Tr(q),L):T},L.bins=function(q){return arguments.length?(C=typeof q=="number"?function(z){return I8(z,q)}:Tr(q),L):C},L.frequency=function(q){return arguments.length?(d=!!q,L):d},L};function PK(d,g){return I8(d,Math.ceil(Math.log(g.length)/Math.LN2+1))}function I8(d,g){for(var T=-1,C=+d[0],L=(d[1]-C)/g,q=[];++T<=g;)q[T]=L*T+C;return q}function EK(d){return[e.min(d),e.max(d)]}e.layout.pack=function(){var d=e.layout.hierarchy().sort(RK),g=0,T=[1,1],C;function L(q,z){var E=d.call(this,q,z),I=E[0],Z=T[0],J=T[1],j=C==null?Math.sqrt:typeof C=="function"?C:function(){return C};if(I.x=I.y=0,sl(I,function(fe){fe.r=+j(fe.value)}),sl(I,O8),g){var Q=g*(C?1:Math.max(2*I.r/Z,2*I.r/J))/2;sl(I,function(fe){fe.r+=Q}),sl(I,O8),sl(I,function(fe){fe.r-=Q})}return Y8(I,Z/2,J/2,C?1:1/Math.max(2*I.r/Z,2*I.r/J)),E}return L.size=function(q){return arguments.length?(T=q,L):T},L.radius=function(q){return arguments.length?(C=q==null||typeof q=="function"?q:+q,L):C},L.padding=function(q){return arguments.length?(g=+q,L):g},xc(L,d)};function RK(d,g){return d.value-g.value}function sg(d,g){var T=d._pack_next;d._pack_next=g,g._pack_prev=d,g._pack_next=T,T._pack_prev=g}function B8(d,g){d._pack_next=g,g._pack_prev=d}function H8(d,g){var T=g.x-d.x,C=g.y-d.y,L=d.r+g.r;return .999*L*L>T*T+C*C}function O8(d){if(!(g=d.children)||!(Q=g.length))return;var g,T=1/0,C=-1/0,L=1/0,q=-1/0,z,E,I,Z,J,j,Q;function fe(ue){T=Math.min(ue.x-ue.r,T),C=Math.max(ue.x+ue.r,C),L=Math.min(ue.y-ue.r,L),q=Math.max(ue.y+ue.r,q)}if(g.forEach(zK),z=g[0],z.x=-z.r,z.y=0,fe(z),Q>1&&(E=g[1],E.x=E.r,E.y=0,fe(E),Q>2))for(I=g[2],G8(z,E,I),fe(I),sg(z,I),z._pack_prev=I,sg(I,E),E=z._pack_next,Z=3;Zne.x&&(ne=Ye),Ye.depth>oe.depth&&(oe=Ye)});var ge=g(ee,ne)/2-ee.x,we=T[0]/(ne.x+g(ne,ee)/2+ge),ue=T[1]/(oe.depth||1);bc(fe,function(Ye){Ye.x=(Ye.x+ge)*we,Ye.y=Ye.depth*ue})}return Q}function q(J){for(var j={A:null,children:[J]},Q=[j],fe;(fe=Q.pop())!=null;)for(var be=fe.children,ee,ne=0,oe=be.length;ne0&&(NK(BK(ee,J,Q),J,Ye),oe+=Ye,ge+=Ye),we+=ee.m,oe+=fe.m,ue+=ne.m,ge+=be.m;ee&&!fg(be)&&(be.t=ee,be.m+=we-ge),fe&&!ug(ne)&&(ne.t=fe,ne.m+=oe-ue,Q=J)}return Q}function Z(J){J.x*=T[0],J.y=J.depth*T[1]}return L.separation=function(J){return arguments.length?(g=J,L):g},L.size=function(J){return arguments.length?(C=(T=J)==null?Z:null,L):C?null:T},L.nodeSize=function(J){return arguments.length?(C=(T=J)==null?null:Z,L):C?T:null},xc(L,d)};function U8(d,g){return d.parent==g.parent?1:2}function ug(d){var g=d.children;return g.length?g[0]:d.t}function fg(d){var g=d.children,T;return(T=g.length)?g[T-1]:d.t}function NK(d,g,T){var C=T/(g.i-d.i);g.c-=C,g.s+=T,d.c+=C,g.z+=T,g.m+=T}function IK(d){for(var g=0,T=0,C=d.children,L=C.length,q;--L>=0;)q=C[L],q.z+=g,q.m+=g,g+=q.s+(T+=q.c)}function BK(d,g,T){return d.a.parent===g.parent?d.a:T}e.layout.cluster=function(){var d=e.layout.hierarchy().sort(null).value(null),g=U8,T=[1,1],C=!1;function L(q,z){var E=d.call(this,q,z),I=E[0],Z,J=0;sl(I,function(ee){var ne=ee.children;ne&&ne.length?(ee.x=OK(ne),ee.y=HK(ne)):(ee.x=Z?J+=g(ee,Z):0,ee.y=0,Z=ee)});var j=V8(I),Q=X8(I),fe=j.x-g(j,Q)/2,be=Q.x+g(Q,j)/2;return sl(I,C?function(ee){ee.x=(ee.x-I.x)*T[0],ee.y=(I.y-ee.y)*T[1]}:function(ee){ee.x=(ee.x-fe)/(be-fe)*T[0],ee.y=(1-(I.y?ee.y/I.y:1))*T[1]}),E}return L.separation=function(q){return arguments.length?(g=q,L):g},L.size=function(q){return arguments.length?(C=(T=q)==null,L):C?null:T},L.nodeSize=function(q){return arguments.length?(C=(T=q)!=null,L):C?T:null},xc(L,d)};function HK(d){return 1+e.max(d,function(g){return g.y})}function OK(d){return d.reduce(function(g,T){return g+T.x},0)/d.length}function V8(d){var g=d.children;return g&&g.length?V8(g[0]):d}function X8(d){var g=d.children,T;return g&&(T=g.length)?X8(g[T-1]):d}e.layout.treemap=function(){var d=e.layout.hierarchy(),g=Math.round,T=[1,1],C=null,L=cg,q=!1,z,E="squarify",I=.5*(1+Math.sqrt(5));function Z(ee,ne){for(var oe=-1,ge=ee.length,we,ue;++oe0;)ge.push(ue=we[sr-1]),ge.area+=ue.area,E!=="squarify"||(ir=Q(ge,cr))<=Ye?(we.pop(),Ye=ir):(ge.area-=ge.pop().area,fe(ge,cr,oe,!1),cr=Math.min(oe.dx,oe.dy),ge.length=ge.area=0,Ye=1/0);ge.length&&(fe(ge,cr,oe,!0),ge.length=ge.area=0),ne.forEach(J)}}function j(ee){var ne=ee.children;if(ne&&ne.length){var oe=L(ee),ge=ne.slice(),we,ue=[];for(Z(ge,oe.dx*oe.dy/ee.value),ue.area=0;we=ge.pop();)ue.push(we),ue.area+=we.area,we.z!=null&&(fe(ue,we.z?oe.dx:oe.dy,oe,!ge.length),ue.length=ue.area=0);ne.forEach(j)}}function Q(ee,ne){for(var oe=ee.area,ge,we=0,ue=1/0,Ye=-1,ir=ee.length;++Yewe&&(we=ge));return oe*=oe,ne*=ne,oe?Math.max(ne*we*I/oe,oe/(ne*ue*I)):1/0}function fe(ee,ne,oe,ge){var we=-1,ue=ee.length,Ye=oe.x,ir=oe.y,cr=ne?g(ee.area/ne):0,sr;if(ne==oe.dx){for((ge||cr>oe.dy)&&(cr=oe.dy);++weoe.dx)&&(cr=oe.dx);++we1);return d+g*C*Math.sqrt(-2*Math.log(q)/q)}},logNormal:function(){var d=e.random.normal.apply(e,arguments);return function(){return Math.exp(d())}},bates:function(d){var g=e.random.irwinHall(d);return function(){return g()/d}},irwinHall:function(d){return function(){for(var g=0,T=0;T2?UK:YK,Z=C?fK:uK;return L=I(d,g,Z,T),q=I(g,d,Z,bs),E}function E(I){return L(I)}return E.invert=function(I){return q(I)},E.domain=function(I){return arguments.length?(d=I.map(Number),z()):d},E.range=function(I){return arguments.length?(g=I,z()):g},E.rangeRound=function(I){return E.range(I).interpolate(q8)},E.clamp=function(I){return arguments.length?(C=I,z()):C},E.interpolate=function(I){return arguments.length?(T=I,z()):T},E.ticks=function(I){return hg(d,I)},E.tickFormat=function(I,Z){return d3_scale_linearTickFormat(d,I,Z)},E.nice=function(I){return K8(d,I),z()},E.copy=function(){return J8(d,g,T,C)},z()}function $8(d,g){return e.rebind(d,g,"range","rangeRound","interpolate","clamp")}function K8(d,g){return vg(d,Z8(dg(d,g)[2])),vg(d,Z8(dg(d,g)[2])),d}function dg(d,g){g==null&&(g=10);var T=xd(d),C=T[1]-T[0],L=Math.pow(10,Math.floor(Math.log(C/g)/Math.LN10)),q=g/C*L;return q<=.15?L*=10:q<=.35?L*=5:q<=.75&&(L*=2),T[0]=Math.ceil(T[0]/L)*L,T[1]=Math.floor(T[1]/L)*L+L*.5,T[2]=L,T}function hg(d,g){return e.range.apply(e,dg(d,g))}var VK={s:1,g:1,p:1,r:1,e:1};function j8(d){return-Math.floor(Math.log(d)/Math.LN10+.01)}function jwe(d,g){var T=j8(g[2]);return d in VK?Math.abs(T-j8(Math.max(b(g[0]),b(g[1]))))+ +(d!=="e"):T-(d==="%")*2}e.scale.log=function(){return Q8(e.scale.linear().domain([0,1]),10,!0,[1,10])};function Q8(d,g,T,C){function L(E){return(T?Math.log(E<0?0:E):-Math.log(E>0?0:-E))/Math.log(g)}function q(E){return T?Math.pow(g,E):-Math.pow(g,-E)}function z(E){return d(L(E))}return z.invert=function(E){return q(d.invert(E))},z.domain=function(E){return arguments.length?(T=E[0]>=0,d.domain((C=E.map(Number)).map(L)),z):C},z.base=function(E){return arguments.length?(g=+E,d.domain(C.map(L)),z):g},z.nice=function(){var E=vg(C.map(L),T?Math:XK);return d.domain(E),C=E.map(q),z},z.ticks=function(){var E=xd(C),I=[],Z=E[0],J=E[1],j=Math.floor(L(Z)),Q=Math.ceil(L(J)),fe=g%1?2:g;if(isFinite(Q-j)){if(T){for(;j0;be--)I.push(q(j)*be);for(j=0;I[j]J;Q--);I=I.slice(j,Q)}return I},z.copy=function(){return Q8(d.copy(),g,T,C)},$8(z,d)}var XK={floor:function(d){return-Math.ceil(-d)},ceil:function(d){return-Math.floor(-d)}};e.scale.pow=function(){return e9(e.scale.linear(),1,[0,1])};function e9(d,g,T){var C=_d(g),L=_d(1/g);function q(z){return d(C(z))}return q.invert=function(z){return L(d.invert(z))},q.domain=function(z){return arguments.length?(d.domain((T=z.map(Number)).map(C)),q):T},q.ticks=function(z){return hg(T,z)},q.tickFormat=function(z,E){return d3_scale_linearTickFormat(T,z,E)},q.nice=function(z){return q.domain(K8(T,z))},q.exponent=function(z){return arguments.length?(C=_d(g=z),L=_d(1/g),d.domain(T.map(C)),q):g},q.copy=function(){return e9(d.copy(),g,T)},$8(q,d)}function _d(d){return function(g){return g<0?-Math.pow(-g,d):Math.pow(g,d)}}e.scale.sqrt=function(){return e.scale.pow().exponent(.5)},e.scale.ordinal=function(){return r9([],{t:"range",a:[[]]})};function r9(d,g){var T,C,L;function q(E){return C[((T.get(E)||(g.t==="range"?T.set(E,d.push(E)):NaN))-1)%C.length]}function z(E,I){return e.range(d.length).map(function(Z){return E+I*Z})}return q.domain=function(E){if(!arguments.length)return d;d=[],T=new x;for(var I=-1,Z=E.length,J;++I0?T[q-1]:d[0],qQ?0:1;if(J=mr)return I(J,be)+(Z?I(Z,1-be):"")+"Z";var ee,ne,oe,ge,we=0,ue=0,Ye,ir,cr,sr,gr,xr,Nr,wr,Pr=[];if((ge=(+z.apply(this,arguments)||0)/2)&&(oe=C===wd?Math.sqrt(Z*Z+J*J):+C.apply(this,arguments),be||(ue*=-1),J&&(ue=yt(oe/J*Math.sin(ge))),Z&&(we=yt(oe/Z*Math.sin(ge)))),J){Ye=J*Math.cos(j+ue),ir=J*Math.sin(j+ue),cr=J*Math.cos(Q-ue),sr=J*Math.sin(Q-ue);var at=Math.abs(Q-j-2*ue)<=br?0:1;if(ue&&Td(Ye,ir,cr,sr)===be^at){var Kt=(j+Q)/2;Ye=J*Math.cos(Kt),ir=J*Math.sin(Kt),cr=sr=null}}else Ye=ir=0;if(Z){gr=Z*Math.cos(Q-we),xr=Z*Math.sin(Q-we),Nr=Z*Math.cos(j+we),wr=Z*Math.sin(j+we);var ot=Math.abs(j-Q+2*we)<=br?0:1;if(we&&Td(gr,xr,Nr,wr)===1-be^ot){var tr=(j+Q)/2;gr=Z*Math.cos(tr),xr=Z*Math.sin(tr),Nr=wr=null}}else gr=xr=0;if(fe>Ie&&(ee=Math.min(Math.abs(J-Z)/2,+T.apply(this,arguments)))>.001){ne=Z0?0:1}function Md(d,g,T,C,L){var q=d[0]-g[0],z=d[1]-g[1],E=(L?C:-C)/Math.sqrt(q*q+z*z),I=E*z,Z=-E*q,J=d[0]+I,j=d[1]+Z,Q=g[0]+I,fe=g[1]+Z,be=(J+Q)/2,ee=(j+fe)/2,ne=Q-J,oe=fe-j,ge=ne*ne+oe*oe,we=T-C,ue=J*fe-Q*j,Ye=(oe<0?-1:1)*Math.sqrt(Math.max(0,we*we*ge-ue*ue)),ir=(ue*oe-ne*Ye)/ge,cr=(-ue*ne-oe*Ye)/ge,sr=(ue*oe+ne*Ye)/ge,gr=(-ue*ne+oe*Ye)/ge,xr=ir-be,Nr=cr-ee,wr=sr-be,Pr=gr-ee;return xr*xr+Nr*Nr>wr*wr+Pr*Pr&&(ir=sr,cr=gr),[[ir-I,cr-Z],[ir*T/we,cr*T/we]]}function s9(){return!0}function u9(d){var g=Qu,T=dc,C=s9,L=Ei,q=L.key,z=.7;function E(I){var Z=[],J=[],j=-1,Q=I.length,fe,be=Tr(g),ee=Tr(T);function ne(){Z.push("M",L(d(J),z))}for(;++j1?d.join("L"):d+"Z"}function f9(d){return d.join("L")+"Z"}function rj(d){for(var g=0,T=d.length,C=d[0],L=[C[0],",",C[1]];++g1&&L.push("H",C[0]),L.join("")}function mg(d){for(var g=0,T=d.length,C=d[0],L=[C[0],",",C[1]];++g1){E=g[1],q=d[I],I++,C+="C"+(L[0]+z[0])+","+(L[1]+z[1])+","+(q[0]-E[0])+","+(q[1]-E[1])+","+q[0]+","+q[1];for(var Z=2;Z9&&(q=T*3/Math.sqrt(q),z[E]=q*C,z[E+1]=q*L));for(E=-1;++E<=I;)q=(d[Math.min(I,E+1)][0]-d[Math.max(0,E-1)][0])/(6*(1+z[E]*z[E])),g.push([q||0,z[E]*q||0]);return g}function fj(d){return d.length<3?Ei(d):d[0]+Ad(d,uj(d))}e.svg.line.radial=function(){var d=u9(h9);return d.radius=d.x,delete d.x,d.angle=d.y,delete d.y,d};function h9(d){for(var g,T=-1,C=d.length,L,q;++Tbr)+",1 "+j}function Z(J,j,Q,fe){return"Q 0,0 "+fe}return q.radius=function(J){return arguments.length?(T=Tr(J),q):T},q.source=function(J){return arguments.length?(d=Tr(J),q):d},q.target=function(J){return arguments.length?(g=Tr(J),q):g},q.startAngle=function(J){return arguments.length?(C=Tr(J),q):C},q.endAngle=function(J){return arguments.length?(L=Tr(J),q):L},q};function cj(d){return d.radius}e.svg.diagonal=function(){var d=m9,g=y9,T=g9;function C(L,q){var z=d.call(this,L,q),E=g.call(this,L,q),I=(z.y+E.y)/2,Z=[z,{x:z.x,y:I},{x:E.x,y:I},E];return Z=Z.map(T),"M"+Z[0]+"C"+Z[1]+" "+Z[2]+" "+Z[3]}return C.source=function(L){return arguments.length?(d=Tr(L),C):d},C.target=function(L){return arguments.length?(g=Tr(L),C):g},C.projection=function(L){return arguments.length?(T=L,C):T},C};function g9(d){return[d.x,d.y]}e.svg.diagonal.radial=function(){var d=e.svg.diagonal(),g=g9,T=d.projection;return d.projection=function(C){return arguments.length?T(vj(g=C)):g},d};function vj(d){return function(){var g=d.apply(this,arguments),T=g[0],C=g[1]-ae;return[T*Math.cos(C),T*Math.sin(C)]}}e.svg.symbol=function(){var d=hj,g=dj;function T(C,L){return(b9.get(d.call(this,C,L))||x9)(g.call(this,C,L))}return T.type=function(C){return arguments.length?(d=Tr(C),T):d},T.size=function(C){return arguments.length?(g=Tr(C),T):g},T};function dj(){return 64}function hj(){return"circle"}function x9(d){var g=Math.sqrt(d/br);return"M0,"+g+"A"+g+","+g+" 0 1,1 0,"+-g+"A"+g+","+g+" 0 1,1 0,"+g+"Z"}var b9=e.map({circle:x9,cross:function(d){var g=Math.sqrt(d/5)/2;return"M"+-3*g+","+-g+"H"+-g+"V"+-3*g+"H"+g+"V"+-g+"H"+3*g+"V"+g+"H"+g+"V"+3*g+"H"+-g+"V"+g+"H"+-3*g+"Z"},diamond:function(d){var g=Math.sqrt(d/(2*_9)),T=g*_9;return"M0,"+-g+"L"+T+",0 0,"+g+" "+-T+",0Z"},square:function(d){var g=Math.sqrt(d)/2;return"M"+-g+","+-g+"L"+g+","+-g+" "+g+","+g+" "+-g+","+g+"Z"},"triangle-down":function(d){var g=Math.sqrt(d/kd),T=g*kd/2;return"M0,"+T+"L"+g+","+-T+" "+-g+","+-T+"Z"},"triangle-up":function(d){var g=Math.sqrt(d/kd),T=g*kd/2;return"M0,"+-T+"L"+g+","+T+" "+-g+","+T+"Z"}});e.svg.symbolTypes=b9.keys();var kd=Math.sqrt(3),_9=Math.tan(30*de);ce.transition=function(d){for(var g=_s||++T9,T=wg(d),C=[],L,q,z=Ld||{time:Date.now(),ease:X$,delay:0,duration:250},E=-1,I=this.length;++E0;)j[--ge].call(d,oe);if(ne>=1)return z.event&&z.event.end.call(d,d.__data__,g),--q.count?delete q[C]:delete d[T],1}z||(E=L.time,I=vd(Q,0,E),z=q[C]={tween:new x,time:E,timer:I,delay:L.delay,duration:L.duration,ease:L.ease,index:g},L=null,++q.count)}e.svg.axis=function(){var d=e.scale.linear(),g=M9,T=6,C=6,L=3,q=[10],z=null,E;function I(Z){Z.each(function(){var J=e.select(this),j=this.__chart__||d,Q=this.__chart__=d.copy(),fe=z==null?Q.ticks?Q.ticks.apply(Q,q):Q.domain():z,be=E==null?Q.tickFormat?Q.tickFormat.apply(Q,q):H:E,ee=J.selectAll(".tick").data(fe,Q),ne=ee.enter().insert("g",".domain").attr("class","tick").style("opacity",Ie),oe=e.transition(ee.exit()).style("opacity",Ie).remove(),ge=e.transition(ee.order()).style("opacity",1),we=Math.max(T,0)+L,ue,Ye=bd(Q),ir=J.selectAll(".domain").data([0]),cr=(ir.enter().append("path").attr("class","domain"),e.transition(ir));ne.append("line"),ne.append("text");var sr=ne.select("line"),gr=ge.select("line"),xr=ee.select("text").text(be),Nr=ne.select("text"),wr=ge.select("text"),Pr=g==="top"||g==="left"?-1:1,at,Kt,ot,tr;if(g==="bottom"||g==="top"?(ue=yj,at="x",ot="y",Kt="x2",tr="y2",xr.attr("dy",Pr<0?"0em":".71em").style("text-anchor","middle"),cr.attr("d","M"+Ye[0]+","+Pr*C+"V0H"+Ye[1]+"V"+Pr*C)):(ue=gj,at="y",ot="x",Kt="y2",tr="x2",xr.attr("dy",".32em").style("text-anchor",Pr<0?"end":"start"),cr.attr("d","M"+Pr*C+","+Ye[0]+"H0V"+Ye[1]+"H"+Pr*C)),sr.attr(tr,Pr*T),Nr.attr(ot,Pr*we),gr.attr(Kt,0).attr(tr,Pr*T),wr.attr(at,0).attr(ot,Pr*we),Q.rangeBand){var Ir=Q,Br=Ir.rangeBand()/2;j=Q=function(nt){return Ir(nt)+Br}}else j.rangeBand?j=Q:oe.call(ue,Q,j);ne.call(ue,j,Q),ge.call(ue,Q,Q)})}return I.scale=function(Z){return arguments.length?(d=Z,I):d},I.orient=function(Z){return arguments.length?(g=Z in mj?Z+"":M9,I):g},I.ticks=function(){return arguments.length?(q=t(arguments),I):q},I.tickValues=function(Z){return arguments.length?(z=Z,I):z},I.tickFormat=function(Z){return arguments.length?(E=Z,I):E},I.tickSize=function(Z){var J=arguments.length;return J?(T=+Z,C=+arguments[J-1],I):T},I.innerTickSize=function(Z){return arguments.length?(T=+Z,I):T},I.outerTickSize=function(Z){return arguments.length?(C=+Z,I):C},I.tickPadding=function(Z){return arguments.length?(L=+Z,I):L},I.tickSubdivide=function(){return arguments.length&&I},I};var M9="bottom",mj={top:1,right:1,bottom:1,left:1};function yj(d,g,T){d.attr("transform",function(C){var L=g(C);return"translate("+(isFinite(L)?L:T(C))+",0)"})}function gj(d,g,T){d.attr("transform",function(C){var L=g(C);return"translate(0,"+(isFinite(L)?L:T(C))+")"})}e.svg.brush=function(){var d=ie(J,"brushstart","brush","brushend"),g=null,T=null,C=[0,0],L=[0,0],q,z,E=!0,I=!0,Z=Tg[0];function J(ee){ee.each(function(){var ne=e.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",be).on("touchstart.brush",be),oe=ne.selectAll(".background").data([0]);oe.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),ne.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var ge=ne.selectAll(".resize").data(Z,H);ge.exit().remove(),ge.enter().append("g").attr("class",function(ir){return"resize "+ir}).style("cursor",function(ir){return xj[ir]}).append("rect").attr("x",function(ir){return/[ew]$/.test(ir)?-3:null}).attr("y",function(ir){return/^[ns]/.test(ir)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),ge.style("display",J.empty()?"none":null);var we=e.transition(ne),ue=e.transition(oe),Ye;g&&(Ye=bd(g),ue.attr("x",Ye[0]).attr("width",Ye[1]-Ye[0]),Q(we)),T&&(Ye=bd(T),ue.attr("y",Ye[0]).attr("height",Ye[1]-Ye[0]),fe(we)),j(we)})}J.event=function(ee){ee.each(function(){var ne=d.of(this,arguments),oe={x:C,y:L,i:q,j:z},ge=this.__chart__||oe;this.__chart__=oe,_s?e.select(this).transition().each("start.brush",function(){q=ge.i,z=ge.j,C=ge.x,L=ge.y,ne({type:"brushstart"})}).tween("brush:brush",function(){var we=gd(C,oe.x),ue=gd(L,oe.y);return q=z=null,function(Ye){C=oe.x=we(Ye),L=oe.y=ue(Ye),ne({type:"brush",mode:"resize"})}}).each("end.brush",function(){q=oe.i,z=oe.j,ne({type:"brush",mode:"resize"}),ne({type:"brushend"})}):(ne({type:"brushstart"}),ne({type:"brush",mode:"resize"}),ne({type:"brushend"}))})};function j(ee){ee.selectAll(".resize").attr("transform",function(ne){return"translate("+C[+/e$/.test(ne)]+","+L[+/^s/.test(ne)]+")"})}function Q(ee){ee.select(".extent").attr("x",C[0]),ee.selectAll(".extent,.n>rect,.s>rect").attr("width",C[1]-C[0])}function fe(ee){ee.select(".extent").attr("y",L[0]),ee.selectAll(".extent,.e>rect,.w>rect").attr("height",L[1]-L[0])}function be(){var ee=this,ne=e.select(e.event.target),oe=d.of(ee,arguments),ge=e.select(ee),we=ne.datum(),ue=!/^(n|s)$/.test(we)&&g,Ye=!/^(e|w)$/.test(we)&&T,ir=ne.classed("extent"),cr=lr(ee),sr,gr=e.mouse(ee),xr,Nr=e.select(i(ee)).on("keydown.brush",at).on("keyup.brush",Kt);if(e.event.changedTouches?Nr.on("touchmove.brush",ot).on("touchend.brush",Ir):Nr.on("mousemove.brush",ot).on("mouseup.brush",Ir),ge.interrupt().selectAll("*").interrupt(),ir)gr[0]=C[0]-gr[0],gr[1]=L[0]-gr[1];else if(we){var wr=+/w$/.test(we),Pr=+/^n/.test(we);xr=[C[1-wr]-gr[0],L[1-Pr]-gr[1]],gr[0]=C[wr],gr[1]=L[Pr]}else e.event.altKey&&(sr=gr.slice());ge.style("pointer-events","none").selectAll(".resize").style("display",null),e.select("body").style("cursor",ne.style("cursor")),oe({type:"brushstart"}),ot();function at(){e.event.keyCode==32&&(ir||(sr=null,gr[0]-=C[1],gr[1]-=L[1],ir=2),$())}function Kt(){e.event.keyCode==32&&ir==2&&(gr[0]+=C[1],gr[1]+=L[1],ir=0,$())}function ot(){var Br=e.mouse(ee),nt=!1;xr&&(Br[0]+=xr[0],Br[1]+=xr[1]),ir||(e.event.altKey?(sr||(sr=[(C[0]+C[1])/2,(L[0]+L[1])/2]),gr[0]=C[+(Br[0]{(function(e,r){typeof Rd=="object"&&typeof z9!="undefined"?r(Rd):(e=e||self,r(e.d3=e.d3||{}))})(Rd,function(e){"use strict";var r=new Date,t=new Date;function a(re,ye,Xe,hr){function De(pe){return re(pe=arguments.length===0?new Date:new Date(+pe)),pe}return De.floor=function(pe){return re(pe=new Date(+pe)),pe},De.ceil=function(pe){return re(pe=new Date(pe-1)),ye(pe,1),re(pe),pe},De.round=function(pe){var Te=De(pe),Oe=De.ceil(pe);return pe-Te0))return Je;do Je.push(Be=new Date(+pe)),ye(pe,Oe),re(pe);while(Be=Te)for(;re(Te),!pe(Te);)Te.setTime(Te-1)},function(Te,Oe){if(Te>=Te)if(Oe<0)for(;++Oe<=0;)for(;ye(Te,-1),!pe(Te););else for(;--Oe>=0;)for(;ye(Te,1),!pe(Te););})},Xe&&(De.count=function(pe,Te){return r.setTime(+pe),t.setTime(+Te),re(r),re(t),Math.floor(Xe(r,t))},De.every=function(pe){return pe=Math.floor(pe),!isFinite(pe)||!(pe>0)?null:pe>1?De.filter(hr?function(Te){return hr(Te)%pe===0}:function(Te){return De.count(0,Te)%pe===0}):De}),De}var n=a(function(){},function(re,ye){re.setTime(+re+ye)},function(re,ye){return ye-re});n.every=function(re){return re=Math.floor(re),!isFinite(re)||!(re>0)?null:re>1?a(function(ye){ye.setTime(Math.floor(ye/re)*re)},function(ye,Xe){ye.setTime(+ye+Xe*re)},function(ye,Xe){return(Xe-ye)/re}):n};var i=n.range,l=1e3,o=6e4,s=36e5,u=864e5,f=6048e5,c=a(function(re){re.setTime(re-re.getMilliseconds())},function(re,ye){re.setTime(+re+ye*l)},function(re,ye){return(ye-re)/l},function(re){return re.getUTCSeconds()}),v=c.range,h=a(function(re){re.setTime(re-re.getMilliseconds()-re.getSeconds()*l)},function(re,ye){re.setTime(+re+ye*o)},function(re,ye){return(ye-re)/o},function(re){return re.getMinutes()}),p=h.range,y=a(function(re){re.setTime(re-re.getMilliseconds()-re.getSeconds()*l-re.getMinutes()*o)},function(re,ye){re.setTime(+re+ye*s)},function(re,ye){return(ye-re)/s},function(re){return re.getHours()}),m=y.range,b=a(function(re){re.setHours(0,0,0,0)},function(re,ye){re.setDate(re.getDate()+ye)},function(re,ye){return(ye-re-(ye.getTimezoneOffset()-re.getTimezoneOffset())*o)/u},function(re){return re.getDate()-1}),_=b.range;function w(re){return a(function(ye){ye.setDate(ye.getDate()-(ye.getDay()+7-re)%7),ye.setHours(0,0,0,0)},function(ye,Xe){ye.setDate(ye.getDate()+Xe*7)},function(ye,Xe){return(Xe-ye-(Xe.getTimezoneOffset()-ye.getTimezoneOffset())*o)/f})}var x=w(0),M=w(1),k=w(2),A=w(3),S=w(4),D=w(5),P=w(6),R=x.range,F=M.range,N=k.range,B=A.range,H=S.range,O=D.range,Y=P.range,G=a(function(re){re.setDate(1),re.setHours(0,0,0,0)},function(re,ye){re.setMonth(re.getMonth()+ye)},function(re,ye){return ye.getMonth()-re.getMonth()+(ye.getFullYear()-re.getFullYear())*12},function(re){return re.getMonth()}),V=G.range,W=a(function(re){re.setMonth(0,1),re.setHours(0,0,0,0)},function(re,ye){re.setFullYear(re.getFullYear()+ye)},function(re,ye){return ye.getFullYear()-re.getFullYear()},function(re){return re.getFullYear()});W.every=function(re){return!isFinite(re=Math.floor(re))||!(re>0)?null:a(function(ye){ye.setFullYear(Math.floor(ye.getFullYear()/re)*re),ye.setMonth(0,1),ye.setHours(0,0,0,0)},function(ye,Xe){ye.setFullYear(ye.getFullYear()+Xe*re)})};var X=W.range,$=a(function(re){re.setUTCSeconds(0,0)},function(re,ye){re.setTime(+re+ye*o)},function(re,ye){return(ye-re)/o},function(re){return re.getUTCMinutes()}),te=$.range,ie=a(function(re){re.setUTCMinutes(0,0,0)},function(re,ye){re.setTime(+re+ye*s)},function(re,ye){return(ye-re)/s},function(re){return re.getUTCHours()}),ve=ie.range,K=a(function(re){re.setUTCHours(0,0,0,0)},function(re,ye){re.setUTCDate(re.getUTCDate()+ye)},function(re,ye){return(ye-re)/u},function(re){return re.getUTCDate()-1}),he=K.range;function le(re){return a(function(ye){ye.setUTCDate(ye.getUTCDate()-(ye.getUTCDay()+7-re)%7),ye.setUTCHours(0,0,0,0)},function(ye,Xe){ye.setUTCDate(ye.getUTCDate()+Xe*7)},function(ye,Xe){return(Xe-ye)/f})}var _e=le(0),me=le(1),ce=le(2),Me=le(3),Re=le(4),xe=le(5),Pe=le(6),Le=_e.range,qe=me.range,Ee=ce.range,Ue=Me.range,Ce=Re.range,We=xe.range,je=Pe.range,Ze=a(function(re){re.setUTCDate(1),re.setUTCHours(0,0,0,0)},function(re,ye){re.setUTCMonth(re.getUTCMonth()+ye)},function(re,ye){return ye.getUTCMonth()-re.getUTCMonth()+(ye.getUTCFullYear()-re.getUTCFullYear())*12},function(re){return re.getUTCMonth()}),Ae=Ze.range,ze=a(function(re){re.setUTCMonth(0,1),re.setUTCHours(0,0,0,0)},function(re,ye){re.setUTCFullYear(re.getUTCFullYear()+ye)},function(re,ye){return ye.getUTCFullYear()-re.getUTCFullYear()},function(re){return re.getUTCFullYear()});ze.every=function(re){return!isFinite(re=Math.floor(re))||!(re>0)?null:a(function(ye){ye.setUTCFullYear(Math.floor(ye.getUTCFullYear()/re)*re),ye.setUTCMonth(0,1),ye.setUTCHours(0,0,0,0)},function(ye,Xe){ye.setUTCFullYear(ye.getUTCFullYear()+Xe*re)})};var Qe=ze.range;e.timeDay=b,e.timeDays=_,e.timeFriday=D,e.timeFridays=O,e.timeHour=y,e.timeHours=m,e.timeInterval=a,e.timeMillisecond=n,e.timeMilliseconds=i,e.timeMinute=h,e.timeMinutes=p,e.timeMonday=M,e.timeMondays=F,e.timeMonth=G,e.timeMonths=V,e.timeSaturday=P,e.timeSaturdays=Y,e.timeSecond=c,e.timeSeconds=v,e.timeSunday=x,e.timeSundays=R,e.timeThursday=S,e.timeThursdays=H,e.timeTuesday=k,e.timeTuesdays=N,e.timeWednesday=A,e.timeWednesdays=B,e.timeWeek=x,e.timeWeeks=R,e.timeYear=W,e.timeYears=X,e.utcDay=K,e.utcDays=he,e.utcFriday=xe,e.utcFridays=We,e.utcHour=ie,e.utcHours=ve,e.utcMillisecond=n,e.utcMilliseconds=i,e.utcMinute=$,e.utcMinutes=te,e.utcMonday=me,e.utcMondays=qe,e.utcMonth=Ze,e.utcMonths=Ae,e.utcSaturday=Pe,e.utcSaturdays=je,e.utcSecond=c,e.utcSeconds=v,e.utcSunday=_e,e.utcSundays=Le,e.utcThursday=Re,e.utcThursdays=Ce,e.utcTuesday=ce,e.utcTuesdays=Ee,e.utcWednesday=Me,e.utcWednesdays=Ue,e.utcWeek=_e,e.utcWeeks=Le,e.utcYear=ze,e.utcYears=Qe,Object.defineProperty(e,"__esModule",{value:!0})})});var l0=U((zd,F9)=>{(function(e,r){typeof zd=="object"&&typeof F9!="undefined"?r(zd,Ag()):(e=e||self,r(e.d3=e.d3||{},e.d3))})(zd,function(e,r){"use strict";function t(ae){if(0<=ae.y&&ae.y<100){var de=new Date(-1,ae.m,ae.d,ae.H,ae.M,ae.S,ae.L);return de.setFullYear(ae.y),de}return new Date(ae.y,ae.m,ae.d,ae.H,ae.M,ae.S,ae.L)}function a(ae){if(0<=ae.y&&ae.y<100){var de=new Date(Date.UTC(-1,ae.m,ae.d,ae.H,ae.M,ae.S,ae.L));return de.setUTCFullYear(ae.y),de}return new Date(Date.UTC(ae.y,ae.m,ae.d,ae.H,ae.M,ae.S,ae.L))}function n(ae,de,Ne){return{y:ae,m:de,d:Ne,H:0,M:0,S:0,L:0}}function i(ae){var de=ae.dateTime,Ne=ae.date,Ge=ae.time,rt=ae.periods,ft=ae.days,yt=ae.shortDays,Vt=ae.months,Nt=ae.shortMonths,Sa=v(rt),bn=h(rt),fa=v(ft),hn=h(ft),Nn=v(yt),In=h(yt),yr=v(Vt),gt=h(Vt),tt=v(Nt),wt=h(Nt),It={a:uc,A:fc,b:Qa,B:sd,c:null,d:G,e:G,f:te,g:xe,G:Le,H:V,I:W,j:X,L:$,m:ie,M:ve,p:Ku,q:ju,Q:lr,s:fr,S:K,u:he,U:le,V:me,w:ce,W:Me,x:null,X:null,y:Re,Y:Pe,Z:qe,"%":nr},Dt={a:fo,A:ud,b:fd,B:cd,c:null,d:Ee,e:Ee,f:Ze,g:Oe,G:Be,H:Ue,I:Ce,j:We,L:je,m:Ae,M:ze,p:cc,q:vc,Q:lr,s:fr,S:Qe,u:re,U:ye,V:hr,w:De,W:pe,x:null,X:null,y:Te,Y:Je,Z:Ve,"%":nr},ct={a:ia,A:la,b:ys,B:uo,c:ld,d:S,e:S,f:B,g:x,G:w,H:P,I:P,j:D,L:N,m:A,M:R,p:Tt,q:k,Q:O,s:Y,S:F,u:y,U:m,V:b,w:p,W:_,x:od,X:sc,y:x,Y:w,Z:M,"%":H};It.x=ca(Ne,It),It.X=ca(Ge,It),It.c=ca(de,It),Dt.x=ca(Ne,Dt),Dt.X=ca(Ge,Dt),Dt.c=ca(de,Dt);function ca(Mr,Tr){return function(it){var or=[],en=-1,Mt=0,Ra=Mr.length,za,ii,gs;for(it instanceof Date||(it=new Date(+it));++en53)return null;"w"in or||(or.w=1),"Z"in or?(Mt=a(n(or.y,0,1)),Ra=Mt.getUTCDay(),Mt=Ra>4||Ra===0?r.utcMonday.ceil(Mt):r.utcMonday(Mt),Mt=r.utcDay.offset(Mt,(or.V-1)*7),or.y=Mt.getUTCFullYear(),or.m=Mt.getUTCMonth(),or.d=Mt.getUTCDate()+(or.w+6)%7):(Mt=t(n(or.y,0,1)),Ra=Mt.getDay(),Mt=Ra>4||Ra===0?r.timeMonday.ceil(Mt):r.timeMonday(Mt),Mt=r.timeDay.offset(Mt,(or.V-1)*7),or.y=Mt.getFullYear(),or.m=Mt.getMonth(),or.d=Mt.getDate()+(or.w+6)%7)}else("W"in or||"U"in or)&&("w"in or||(or.w="u"in or?or.u%7:"W"in or?1:0),Ra="Z"in or?a(n(or.y,0,1)).getUTCDay():t(n(or.y,0,1)).getDay(),or.m=0,or.d="W"in or?(or.w+6)%7+or.W*7-(Ra+5)%7:or.w+or.U*7-(Ra+6)%7);return"Z"in or?(or.H+=or.Z/100|0,or.M+=or.Z%100,a(or)):t(or)}}function $t(Mr,Tr,it,or){for(var en=0,Mt=Tr.length,Ra=it.length,za,ii;en=Ra)return-1;if(za=Tr.charCodeAt(en++),za===37){if(za=Tr.charAt(en++),ii=ct[za in l?Tr.charAt(en++):za],!ii||(or=ii(Mr,it,or))<0)return-1}else if(za!=it.charCodeAt(or++))return-1}return or}function Tt(Mr,Tr,it){var or=Sa.exec(Tr.slice(it));return or?(Mr.p=bn[or[0].toLowerCase()],it+or[0].length):-1}function ia(Mr,Tr,it){var or=Nn.exec(Tr.slice(it));return or?(Mr.w=In[or[0].toLowerCase()],it+or[0].length):-1}function la(Mr,Tr,it){var or=fa.exec(Tr.slice(it));return or?(Mr.w=hn[or[0].toLowerCase()],it+or[0].length):-1}function ys(Mr,Tr,it){var or=tt.exec(Tr.slice(it));return or?(Mr.m=wt[or[0].toLowerCase()],it+or[0].length):-1}function uo(Mr,Tr,it){var or=yr.exec(Tr.slice(it));return or?(Mr.m=gt[or[0].toLowerCase()],it+or[0].length):-1}function ld(Mr,Tr,it){return $t(Mr,de,Tr,it)}function od(Mr,Tr,it){return $t(Mr,Ne,Tr,it)}function sc(Mr,Tr,it){return $t(Mr,Ge,Tr,it)}function uc(Mr){return yt[Mr.getDay()]}function fc(Mr){return ft[Mr.getDay()]}function Qa(Mr){return Nt[Mr.getMonth()]}function sd(Mr){return Vt[Mr.getMonth()]}function Ku(Mr){return rt[+(Mr.getHours()>=12)]}function ju(Mr){return 1+~~(Mr.getMonth()/3)}function fo(Mr){return yt[Mr.getUTCDay()]}function ud(Mr){return ft[Mr.getUTCDay()]}function fd(Mr){return Nt[Mr.getUTCMonth()]}function cd(Mr){return Vt[Mr.getUTCMonth()]}function cc(Mr){return rt[+(Mr.getUTCHours()>=12)]}function vc(Mr){return 1+~~(Mr.getUTCMonth()/3)}return{format:function(Mr){var Tr=ca(Mr+="",It);return Tr.toString=function(){return Mr},Tr},parse:function(Mr){var Tr=ni(Mr+="",!1);return Tr.toString=function(){return Mr},Tr},utcFormat:function(Mr){var Tr=ca(Mr+="",Dt);return Tr.toString=function(){return Mr},Tr},utcParse:function(Mr){var Tr=ni(Mr+="",!0);return Tr.toString=function(){return Mr},Tr}}}var l={"-":"",_:" ",0:"0"},o=/^\s*\d+/,s=/^%/,u=/[\\^$*+?|[\]().{}]/g;function f(ae,de,Ne){var Ge=ae<0?"-":"",rt=(Ge?-ae:ae)+"",ft=rt.length;return Ge+(ft68?1900:2e3),Ne+Ge[0].length):-1}function M(ae,de,Ne){var Ge=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(de.slice(Ne,Ne+6));return Ge?(ae.Z=Ge[1]?0:-(Ge[2]+(Ge[3]||"00")),Ne+Ge[0].length):-1}function k(ae,de,Ne){var Ge=o.exec(de.slice(Ne,Ne+1));return Ge?(ae.q=Ge[0]*3-3,Ne+Ge[0].length):-1}function A(ae,de,Ne){var Ge=o.exec(de.slice(Ne,Ne+2));return Ge?(ae.m=Ge[0]-1,Ne+Ge[0].length):-1}function S(ae,de,Ne){var Ge=o.exec(de.slice(Ne,Ne+2));return Ge?(ae.d=+Ge[0],Ne+Ge[0].length):-1}function D(ae,de,Ne){var Ge=o.exec(de.slice(Ne,Ne+3));return Ge?(ae.m=0,ae.d=+Ge[0],Ne+Ge[0].length):-1}function P(ae,de,Ne){var Ge=o.exec(de.slice(Ne,Ne+2));return Ge?(ae.H=+Ge[0],Ne+Ge[0].length):-1}function R(ae,de,Ne){var Ge=o.exec(de.slice(Ne,Ne+2));return Ge?(ae.M=+Ge[0],Ne+Ge[0].length):-1}function F(ae,de,Ne){var Ge=o.exec(de.slice(Ne,Ne+2));return Ge?(ae.S=+Ge[0],Ne+Ge[0].length):-1}function N(ae,de,Ne){var Ge=o.exec(de.slice(Ne,Ne+3));return Ge?(ae.L=+Ge[0],Ne+Ge[0].length):-1}function B(ae,de,Ne){var Ge=o.exec(de.slice(Ne,Ne+6));return Ge?(ae.L=Math.floor(Ge[0]/1e3),Ne+Ge[0].length):-1}function H(ae,de,Ne){var Ge=s.exec(de.slice(Ne,Ne+1));return Ge?Ne+Ge[0].length:-1}function O(ae,de,Ne){var Ge=o.exec(de.slice(Ne));return Ge?(ae.Q=+Ge[0],Ne+Ge[0].length):-1}function Y(ae,de,Ne){var Ge=o.exec(de.slice(Ne));return Ge?(ae.s=+Ge[0],Ne+Ge[0].length):-1}function G(ae,de){return f(ae.getDate(),de,2)}function V(ae,de){return f(ae.getHours(),de,2)}function W(ae,de){return f(ae.getHours()%12||12,de,2)}function X(ae,de){return f(1+r.timeDay.count(r.timeYear(ae),ae),de,3)}function $(ae,de){return f(ae.getMilliseconds(),de,3)}function te(ae,de){return $(ae,de)+"000"}function ie(ae,de){return f(ae.getMonth()+1,de,2)}function ve(ae,de){return f(ae.getMinutes(),de,2)}function K(ae,de){return f(ae.getSeconds(),de,2)}function he(ae){var de=ae.getDay();return de===0?7:de}function le(ae,de){return f(r.timeSunday.count(r.timeYear(ae)-1,ae),de,2)}function _e(ae){var de=ae.getDay();return de>=4||de===0?r.timeThursday(ae):r.timeThursday.ceil(ae)}function me(ae,de){return ae=_e(ae),f(r.timeThursday.count(r.timeYear(ae),ae)+(r.timeYear(ae).getDay()===4),de,2)}function ce(ae){return ae.getDay()}function Me(ae,de){return f(r.timeMonday.count(r.timeYear(ae)-1,ae),de,2)}function Re(ae,de){return f(ae.getFullYear()%100,de,2)}function xe(ae,de){return ae=_e(ae),f(ae.getFullYear()%100,de,2)}function Pe(ae,de){return f(ae.getFullYear()%1e4,de,4)}function Le(ae,de){var Ne=ae.getDay();return ae=Ne>=4||Ne===0?r.timeThursday(ae):r.timeThursday.ceil(ae),f(ae.getFullYear()%1e4,de,4)}function qe(ae){var de=ae.getTimezoneOffset();return(de>0?"-":(de*=-1,"+"))+f(de/60|0,"0",2)+f(de%60,"0",2)}function Ee(ae,de){return f(ae.getUTCDate(),de,2)}function Ue(ae,de){return f(ae.getUTCHours(),de,2)}function Ce(ae,de){return f(ae.getUTCHours()%12||12,de,2)}function We(ae,de){return f(1+r.utcDay.count(r.utcYear(ae),ae),de,3)}function je(ae,de){return f(ae.getUTCMilliseconds(),de,3)}function Ze(ae,de){return je(ae,de)+"000"}function Ae(ae,de){return f(ae.getUTCMonth()+1,de,2)}function ze(ae,de){return f(ae.getUTCMinutes(),de,2)}function Qe(ae,de){return f(ae.getUTCSeconds(),de,2)}function re(ae){var de=ae.getUTCDay();return de===0?7:de}function ye(ae,de){return f(r.utcSunday.count(r.utcYear(ae)-1,ae),de,2)}function Xe(ae){var de=ae.getUTCDay();return de>=4||de===0?r.utcThursday(ae):r.utcThursday.ceil(ae)}function hr(ae,de){return ae=Xe(ae),f(r.utcThursday.count(r.utcYear(ae),ae)+(r.utcYear(ae).getUTCDay()===4),de,2)}function De(ae){return ae.getUTCDay()}function pe(ae,de){return f(r.utcMonday.count(r.utcYear(ae)-1,ae),de,2)}function Te(ae,de){return f(ae.getUTCFullYear()%100,de,2)}function Oe(ae,de){return ae=Xe(ae),f(ae.getUTCFullYear()%100,de,2)}function Je(ae,de){return f(ae.getUTCFullYear()%1e4,de,4)}function Be(ae,de){var Ne=ae.getUTCDay();return ae=Ne>=4||Ne===0?r.utcThursday(ae):r.utcThursday.ceil(ae),f(ae.getUTCFullYear()%1e4,de,4)}function Ve(){return"+0000"}function nr(){return"%"}function lr(ae){return+ae}function fr(ae){return Math.floor(+ae/1e3)}var Se;Ke({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 Ke(ae){return Se=i(ae),e.timeFormat=Se.format,e.timeParse=Se.parse,e.utcFormat=Se.utcFormat,e.utcParse=Se.utcParse,Se}var Ie="%Y-%m-%dT%H:%M:%S.%LZ";function pr(ae){return ae.toISOString()}var br=Date.prototype.toISOString?pr:e.utcFormat(Ie);function ur(ae){var de=new Date(ae);return isNaN(de)?null:de}var mr=+new Date("2000-01-01T00:00:00.000Z")?ur:e.utcParse(Ie);e.isoFormat=br,e.isoParse=mr,e.timeFormatDefaultLocale=Ke,e.timeFormatLocale=i,Object.defineProperty(e,"__esModule",{value:!0})})});var kg=U((Fd,N9)=>{(function(e,r){typeof Fd=="object"&&typeof N9!="undefined"?r(Fd):(e=typeof globalThis!="undefined"?globalThis:e||self,r(e.d3=e.d3||{}))})(Fd,(function(e){"use strict";function r(A){return Math.abs(A=Math.round(A))>=1e21?A.toLocaleString("en").replace(/,/g,""):A.toString(10)}function t(A,S){if((D=(A=S?A.toExponential(S-1):A.toExponential()).indexOf("e"))<0)return null;var D,P=A.slice(0,D);return[P.length>1?P[0]+P.slice(2):P,+A.slice(D+1)]}function a(A){return A=t(Math.abs(A)),A?A[1]:NaN}function n(A,S){return function(D,P){for(var R=D.length,F=[],N=0,B=A[0],H=0;R>0&&B>0&&(H+B+1>P&&(B=Math.max(1,P-H)),F.push(D.substring(R-=B,R+B)),!((H+=B+1)>P));)B=A[N=(N+1)%A.length];return F.reverse().join(S)}}function i(A){return function(S){return S.replace(/[0-9]/g,function(D){return A[+D]})}}var l=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function o(A){if(!(S=l.exec(A)))throw new Error("invalid format: "+A);var S;return new s({fill:S[1],align:S[2],sign:S[3],symbol:S[4],zero:S[5],width:S[6],comma:S[7],precision:S[8]&&S[8].slice(1),trim:S[9],type:S[10]})}o.prototype=s.prototype;function s(A){this.fill=A.fill===void 0?" ":A.fill+"",this.align=A.align===void 0?">":A.align+"",this.sign=A.sign===void 0?"-":A.sign+"",this.symbol=A.symbol===void 0?"":A.symbol+"",this.zero=!!A.zero,this.width=A.width===void 0?void 0:+A.width,this.comma=!!A.comma,this.precision=A.precision===void 0?void 0:+A.precision,this.trim=!!A.trim,this.type=A.type===void 0?"":A.type+""}s.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 u(A){e:for(var S=A.length,D=1,P=-1,R;D0&&(P=0);break}return P>0?A.slice(0,P)+A.slice(R+1):A}var f;function c(A,S){var D=t(A,S);if(!D)return A+"";var P=D[0],R=D[1],F=R-(f=Math.max(-8,Math.min(8,Math.floor(R/3)))*3)+1,N=P.length;return F===N?P:F>N?P+new Array(F-N+1).join("0"):F>0?P.slice(0,F)+"."+P.slice(F):"0."+new Array(1-F).join("0")+t(A,Math.max(0,S+F-1))[0]}function v(A,S){var D=t(A,S);if(!D)return A+"";var P=D[0],R=D[1];return R<0?"0."+new Array(-R).join("0")+P:P.length>R+1?P.slice(0,R+1)+"."+P.slice(R+1):P+new Array(R-P.length+2).join("0")}var h={"%":function(A,S){return(A*100).toFixed(S)},b:function(A){return Math.round(A).toString(2)},c:function(A){return A+""},d:r,e:function(A,S){return A.toExponential(S)},f:function(A,S){return A.toFixed(S)},g:function(A,S){return A.toPrecision(S)},o:function(A){return Math.round(A).toString(8)},p:function(A,S){return v(A*100,S)},r:v,s:c,X:function(A){return Math.round(A).toString(16).toUpperCase()},x:function(A){return Math.round(A).toString(16)}};function p(A){return A}var y=Array.prototype.map,m=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function b(A){var S=A.grouping===void 0||A.thousands===void 0?p:n(y.call(A.grouping,Number),A.thousands+""),D=A.currency===void 0?"":A.currency[0]+"",P=A.currency===void 0?"":A.currency[1]+"",R=A.decimal===void 0?".":A.decimal+"",F=A.numerals===void 0?p:i(y.call(A.numerals,String)),N=A.percent===void 0?"%":A.percent+"",B=A.minus===void 0?"-":A.minus+"",H=A.nan===void 0?"NaN":A.nan+"";function O(G){G=o(G);var V=G.fill,W=G.align,X=G.sign,$=G.symbol,te=G.zero,ie=G.width,ve=G.comma,K=G.precision,he=G.trim,le=G.type;le==="n"?(ve=!0,le="g"):h[le]||(K===void 0&&(K=12),he=!0,le="g"),(te||V==="0"&&W==="=")&&(te=!0,V="0",W="=");var _e=$==="$"?D:$==="#"&&/[boxX]/.test(le)?"0"+le.toLowerCase():"",me=$==="$"?P:/[%p]/.test(le)?N:"",ce=h[le],Me=/[defgprs%]/.test(le);K=K===void 0?6:/[gprs]/.test(le)?Math.max(1,Math.min(21,K)):Math.max(0,Math.min(20,K));function Re(xe){var Pe=_e,Le=me,qe,Ee,Ue;if(le==="c")Le=ce(xe)+Le,xe="";else{xe=+xe;var Ce=xe<0||1/xe<0;if(xe=isNaN(xe)?H:ce(Math.abs(xe),K),he&&(xe=u(xe)),Ce&&+xe==0&&X!=="+"&&(Ce=!1),Pe=(Ce?X==="("?X:B:X==="-"||X==="("?"":X)+Pe,Le=(le==="s"?m[8+f/3]:"")+Le+(Ce&&X==="("?")":""),Me){for(qe=-1,Ee=xe.length;++qeUe||Ue>57){Le=(Ue===46?R+xe.slice(qe+1):xe.slice(qe))+Le,xe=xe.slice(0,qe);break}}}ve&&!te&&(xe=S(xe,1/0));var We=Pe.length+xe.length+Le.length,je=We>1)+Pe+xe+Le+je.slice(We);break;default:xe=je+Pe+xe+Le;break}return F(xe)}return Re.toString=function(){return G+""},Re}function Y(G,V){var W=O((G=o(G),G.type="f",G)),X=Math.max(-8,Math.min(8,Math.floor(a(V)/3)))*3,$=Math.pow(10,-X),te=m[8+X/3];return function(ie){return W($*ie)+te}}return{format:O,formatPrefix:Y}}var _;w({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function w(A){return _=b(A),e.format=_.format,e.formatPrefix=_.formatPrefix,_}function x(A){return Math.max(0,-a(Math.abs(A)))}function M(A,S){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(a(S)/3)))*3-a(Math.abs(A)))}function k(A,S){return A=Math.abs(A),S=Math.abs(S)-A,Math.max(0,a(S)-a(A))+1}e.FormatSpecifier=s,e.formatDefaultLocale=w,e.formatLocale=b,e.formatSpecifier=o,e.precisionFixed=x,e.precisionPrefix=M,e.precisionRound=k,Object.defineProperty(e,"__esModule",{value:!0})}))});var B9=U((tTe,I9)=>{"use strict";I9.exports=function(e){for(var r=e.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}});var Gr=U((aTe,H9)=>{"use strict";var Sj=B9();H9.exports=function(e){var r=typeof e;if(r==="string"){var t=e;if(e=+e,e===0&&Sj(t))return!1}else if(r!=="number")return!1;return e-e<1}});var zt={};vt(zt,{ALMOST_EQUAL:()=>Zj,BADNUM:()=>Cg,EPOCHJD:()=>Wj,FP_SAFE:()=>qj,LOG_CLIP:()=>Jj,MINUS_SIGN:()=>$j,ONEAVGMONTH:()=>Ij,ONEAVGQUARTER:()=>zj,ONEAVGYEAR:()=>Pj,ONEDAY:()=>Oj,ONEHOUR:()=>Yj,ONEMAXMONTH:()=>Nj,ONEMAXQUARTER:()=>Rj,ONEMAXYEAR:()=>Dj,ONEMICROSEC:()=>Xj,ONEMILLI:()=>Vj,ONEMIN:()=>Gj,ONEMINMONTH:()=>Bj,ONEMINQUARTER:()=>Fj,ONEMINYEAR:()=>Ej,ONESEC:()=>Uj,ONEWEEK:()=>Hj});var Cg,qj,Dj,Pj,Ej,Rj,zj,Fj,Nj,Ij,Bj,Hj,Oj,Yj,Gj,Uj,Vj,Xj,Wj,Zj,Jj,$j,Et=Lr(()=>{"use strict";Cg=void 0,qj=Number.MAX_VALUE*1e-4,Dj=316224e5,Pj=315576e5,Ej=31536e6,Rj=79488e5,zj=78894e5,Fj=76896e5,Nj=26784e5,Ij=26298e5,Bj=24192e5,Hj=6048e5,Oj=864e5,Yj=36e5,Gj=6e4,Uj=1e3,Vj=1,Xj=.001,Wj=24405875e-1,Zj=1-1e-6,Jj=10,$j="\u2212"});var Lg=U((Nd,O9)=>{(function(e,r){typeof Nd=="object"&&typeof O9!="undefined"?r(Nd):(e=typeof globalThis!="undefined"?globalThis:e||self,r(e["base64-arraybuffer"]={}))})(Nd,(function(e){"use strict";for(var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),a=0;a>2],f+=r[(o[s]&3)<<4|o[s+1]>>4],f+=r[(o[s+1]&15)<<2|o[s+2]>>6],f+=r[o[s+2]&63];return u%3===2?f=f.substring(0,f.length-1)+"=":u%3===1&&(f=f.substring(0,f.length-2)+"=="),f},i=function(l){var o=l.length*.75,s=l.length,u,f=0,c,v,h,p;l[l.length-1]==="="&&(o--,l[l.length-2]==="="&&o--);var y=new ArrayBuffer(o),m=new Uint8Array(y);for(u=0;u>4,m[f++]=(v&15)<<4|h>>2,m[f++]=(h&3)<<6|p&63;return y};e.decode=i,e.encode=n,Object.defineProperty(e,"__esModule",{value:!0})}))});var Ms=U((nTe,Y9)=>{"use strict";Y9.exports=function(r){return window&&window.process&&window.process.versions?Object.prototype.toString.call(r)==="[object Object]":Object.prototype.toString.call(r)==="[object Object]"&&Object.getPrototypeOf(r).hasOwnProperty("hasOwnProperty")}});var Tn=U(zi=>{"use strict";var Kj=Lg().decode,jj=Ms(),Sg=Array.isArray,Qj=ArrayBuffer,eQ=DataView;function G9(e){return Qj.isView(e)&&!(e instanceof eQ)}zi.isTypedArray=G9;function Id(e){return Sg(e)||G9(e)}zi.isArrayOrTypedArray=Id;function rQ(e){return!Id(e[0])}zi.isArray1D=rQ;zi.ensureArray=function(e,r){return Sg(e)||(e=[]),e.length=r,e};var qa={u1c:typeof Uint8ClampedArray=="undefined"?void 0:Uint8ClampedArray,i1:typeof Int8Array=="undefined"?void 0:Int8Array,u1:typeof Uint8Array=="undefined"?void 0:Uint8Array,i2:typeof Int16Array=="undefined"?void 0:Int16Array,u2:typeof Uint16Array=="undefined"?void 0:Uint16Array,i4:typeof Int32Array=="undefined"?void 0:Int32Array,u4:typeof Uint32Array=="undefined"?void 0:Uint32Array,f4:typeof Float32Array=="undefined"?void 0:Float32Array,f8:typeof Float64Array=="undefined"?void 0:Float64Array};qa.uint8c=qa.u1c;qa.uint8=qa.u1;qa.int8=qa.i1;qa.uint16=qa.u2;qa.int16=qa.i2;qa.uint32=qa.u4;qa.int32=qa.i4;qa.float32=qa.f4;qa.float64=qa.f8;function qg(e){return e.constructor===ArrayBuffer}zi.isArrayBuffer=qg;zi.decodeTypedArraySpec=function(e){var r=[],t=tQ(e),a=t.dtype,n=qa[a];if(!n)throw new Error('Error in dtype: "'+a+'"');var i=n.BYTES_PER_ELEMENT,l=t.bdata;qg(l)||(l=Kj(l));var o=t.shape===void 0?[l.byteLength/i]:(""+t.shape).split(",");o.reverse();var s=o.length,u,f,c=+o[0],v=i*c,h=0;if(s===1)r=new n(l);else if(s===2)for(u=+o[1],f=0;f{"use strict";var V9=Gr(),Pg=Tn().isArrayOrTypedArray;J9.exports=function(r,t){if(V9(t))t=String(t);else if(typeof t!="string"||t.slice(-4)==="[-1]")throw"bad property string";var a=t.split("."),n,i,l,o;for(o=0;o{"use strict";var o0=Bd(),oQ=/^\w*$/,sQ=0,$9=1,Hd=2,K9=3,As=4;j9.exports=function(r,t,a,n){a=a||"name",n=n||"value";var i,l,o,s={};t&&t.length?(o=o0(r,t),l=o.get()):l=r,t=t||"";var u={};if(l)for(i=0;i2)return s[h]=s[h]|Hd,c.set(v,null);if(f){for(i=h;i{"use strict";var uQ=/^(.*)(\.[^\.\[\]]+|\[\d\])$/,fQ=/^[^\.\[\]]+$/;ew.exports=function(e,r){for(;r;){var t=e.match(uQ);if(t)e=t[1];else if(e.match(fQ))e="";else throw new Error("bad relativeAttr call:"+[e,r]);if(r.charAt(0)==="^")r=r.slice(1);else break}return e&&r.charAt(0)!=="["?e+"."+r:e+r}});var Od=U((uTe,tw)=>{"use strict";var cQ=Gr();tw.exports=function(r,t){if(r>0)return Math.log(r)/Math.LN10;var a=Math.log(Math.min(t[0],t[1]))/Math.LN10;return cQ(a)||(a=Math.log(Math.max(t[0],t[1]))/Math.LN10-6),a}});var iw=U((fTe,nw)=>{"use strict";var aw=Tn().isArrayOrTypedArray,Mc=Ms();nw.exports=function e(r,t){for(var a in t){var n=t[a],i=r[a];if(i!==n)if(a.charAt(0)==="_"||typeof n=="function"){if(a in r)continue;r[a]=n}else if(aw(n)&&aw(i)&&Mc(n[0])){if(a==="customdata"||a==="ids")continue;for(var l=Math.min(n.length,i.length),o=0;ovQ,modHalf:()=>dQ});function vQ(e,r){let t=e%r;return t<0?t+r:t}function dQ(e,r){return Math.abs(e)>r/2?e-Math.round(e/r)*r:e}var u0=Lr(()=>{"use strict"});var At=U(Cc=>{"use strict";var lw=Ms(),Ac=Array.isArray;function hQ(e,r){var t,a;for(t=0;t{"use strict";ow.exports=function(e){var r=e.variantValues,t=e.editType,a=e.colorEditType;a===void 0&&(a=t);var n={editType:t,valType:"integer",min:1,max:1e3,extras:["normal","bold"],dflt:"normal"};e.noNumericWeightValues&&(n.valType="enumerated",n.values=n.extras,n.extras=void 0,n.min=void 0,n.max=void 0);var i={family:{valType:"string",noBlank:!0,strict:!0,editType:t},size:{valType:"number",min:1,editType:t},color:{valType:"color",editType:a},weight:n,style:{editType:t,valType:"enumerated",values:["normal","italic"],dflt:"normal"},variant:e.noFontVariant?void 0:{editType:t,valType:"enumerated",values:r||["normal","small-caps","all-small-caps","all-petite-caps","petite-caps","unicase"],dflt:"normal"},textcase:e.noFontTextcase?void 0:{editType:t,valType:"enumerated",values:["normal","word caps","upper","lower"],dflt:"normal"},lineposition:e.noFontLineposition?void 0:{editType:t,valType:"flaglist",flags:["under","over","through"],extras:["none"],dflt:"none"},shadow:e.noFontShadow?void 0:{editType:t,valType:"string",dflt:e.autoShadowDflt?"auto":"none"},editType:t};return e.autoSize&&(i.size.dflt="auto"),e.autoColor&&(i.color.dflt="auto"),e.arrayOk&&(i.family.arrayOk=!0,i.weight.arrayOk=!0,i.style.arrayOk=!0,e.noFontVariant||(i.variant.arrayOk=!0),e.noFontTextcase||(i.textcase.arrayOk=!0),e.noFontLineposition||(i.lineposition.arrayOk=!0),e.noFontShadow||(i.shadow.arrayOk=!0),i.size.arrayOk=!0,i.color.arrayOk=!0),i}});var Lc={};vt(Lc,{HOVERARROWSIZE:()=>mQ,HOVERFONT:()=>xQ,HOVERFONTSIZE:()=>gQ,HOVERID:()=>_Q,HOVERMINTIME:()=>bQ,HOVERTEXTPAD:()=>yQ,YANGLE:()=>pQ});var pQ,mQ,yQ,gQ,xQ,bQ,_Q,Sc=Lr(()=>{"use strict";pQ=60,mQ=6,yQ=3,gQ=13,xQ="Arial, sans-serif",bQ=50,_Q="-hover"});var f0=U((dTe,fw)=>{"use strict";var sw=(Sc(),Fe(Lc)),uw=xa(),Eg=uw({editType:"none"});Eg.family.dflt=sw.HOVERFONT;Eg.size.dflt=sw.HOVERFONTSIZE;fw.exports={clickmode:{valType:"flaglist",flags:["event","select"],dflt:"event",editType:"plot",extras:["none"]},dragmode:{valType:"enumerated",values:["zoom","pan","select","lasso","drawclosedpath","drawopenpath","drawline","drawrect","drawcircle","orbit","turntable",!1],dflt:"zoom",editType:"modebar"},hovermode:{valType:"enumerated",values:["x","y","closest",!1,"x unified","y unified"],dflt:"closest",editType:"modebar"},hoversort:{valType:"enumerated",values:["trace","value descending","value ascending"],dflt:"trace",editType:"none"},hoversubplots:{valType:"enumerated",values:["single","overlaying","axis"],dflt:"overlaying",editType:"none"},hoveranywhere:{valType:"boolean",dflt:!1,editType:"none"},clickanywhere:{valType:"boolean",dflt:!1,editType:"none"},hoverdistance:{valType:"integer",min:-1,dflt:20,editType:"none"},spikedistance:{valType:"integer",min:-1,dflt:-1,editType:"none"},hoverlabel:{bgcolor:{valType:"color",editType:"none"},bordercolor:{valType:"color",editType:"none"},font:Eg,grouptitlefont:uw({editType:"none"}),align:{valType:"enumerated",values:["left","right","auto"],dflt:"auto",editType:"none"},namelength:{valType:"integer",min:-1,dflt:15,editType:"none"},showarrow:{valType:"boolean",dflt:!0,editType:"none"},editType:"none"},selectdirection:{valType:"enumerated",values:["h","v","d","any"],dflt:"any",editType:"none"}}});var Pc=U((hTe,cw)=>{"use strict";var wQ=xa(),qc=f0().hoverlabel,Dc=At().extendFlat;cw.exports={hoverlabel:{bgcolor:Dc({},qc.bgcolor,{arrayOk:!0}),bordercolor:Dc({},qc.bordercolor,{arrayOk:!0}),font:wQ({arrayOk:!0,editType:"none"}),align:Dc({},qc.align,{arrayOk:!0}),namelength:Dc({},qc.namelength,{arrayOk:!0}),showarrow:Dc({},qc.showarrow),editType:"none"}}});var Mn=U((pTe,vw)=>{"use strict";var TQ=xa(),MQ=Pc();vw.exports={type:{valType:"enumerated",values:[],dflt:"scatter",editType:"calc+clearAxisTypes",_noTemplating:!0},visible:{valType:"enumerated",values:[!0,!1,"legendonly"],dflt:!0,editType:"calc"},showlegend:{valType:"boolean",dflt:!0,editType:"style"},legend:{valType:"subplotid",dflt:"legend",editType:"style"},legendgroup:{valType:"string",dflt:"",editType:"style"},legendgrouptitle:{text:{valType:"string",dflt:"",editType:"style"},font:TQ({editType:"style"}),editType:"style"},legendrank:{valType:"number",dflt:1e3,editType:"style"},legendwidth:{valType:"number",min:0,editType:"style"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"style"},name:{valType:"string",editType:"style"},uid:{valType:"string",editType:"plot",anim:!0},ids:{valType:"data_array",editType:"calc",anim:!0},customdata:{valType:"data_array",editType:"calc"},meta:{valType:"any",arrayOk:!0,editType:"plot"},selectedpoints:{valType:"any",editType:"calc"},hoverinfo:{valType:"flaglist",flags:["x","y","z","text","name"],extras:["all","none","skip"],arrayOk:!0,dflt:"all",editType:"none"},hoverlabel:MQ.hoverlabel,uirevision:{valType:"any",editType:"none"}}});var nM=U((wTe,aM)=>{var A3=Object.defineProperty,AQ=Object.getOwnPropertyDescriptor,kQ=Object.getOwnPropertyNames,CQ=Object.prototype.hasOwnProperty,LQ=(e,r)=>{for(var t in r)A3(e,t,{get:r[t],enumerable:!0})},SQ=(e,r,t,a)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of kQ(r))!CQ.call(e,n)&&n!==t&&A3(e,n,{get:()=>r[n],enumerable:!(a=AQ(r,n))||a.enumerable});return e},qQ=e=>SQ(A3({},"__esModule",{value:!0}),e),ww={};LQ(ww,{a98:()=>_ae,average:()=>kee,averageAngle:()=>vl,averageNumber:()=>Bw,blend:()=>Ate,blerp:()=>i3,clampChroma:()=>Vte,clampGamut:()=>j3,clampRgb:()=>Ute,colorsNamed:()=>Mw,convertA98ToXyz65:()=>l3,convertCubehelixToRgb:()=>Nw,convertDlchToLab65:()=>$d,convertHsiToRgb:()=>Ww,convertHslToRgb:()=>$w,convertHsvToRgb:()=>D3,convertHwbToRgb:()=>eT,convertItpToXyz65:()=>s3,convertJabToJch:()=>f3,convertJabToRgb:()=>N3,convertJabToXyz65:()=>z3,convertJchToJab:()=>c3,convertLab65ToDlch:()=>Kd,convertLab65ToRgb:()=>Hc,convertLab65ToXyz65:()=>L3,convertLabToLch:()=>Nl,convertLabToRgb:()=>B3,convertLabToXyz50:()=>oh,convertLchToLab:()=>Il,convertLchuvToLuv:()=>Y3,convertLrgbToOklab:()=>G3,convertLrgbToRgb:()=>Ps,convertLuvToLchuv:()=>O3,convertLuvToXyz50:()=>Qd,convertOkhslToOklab:()=>h3,convertOkhsvToOklab:()=>m3,convertOklabToLrgb:()=>g0,convertOklabToOkhsl:()=>d3,convertOklabToOkhsv:()=>p3,convertOklabToRgb:()=>Gc,convertP3ToXyz65:()=>y3,convertProphotoToXyz50:()=>b3,convertRec2020ToXyz65:()=>w3,convertRgbToCubehelix:()=>Fw,convertRgbToHsi:()=>Zw,convertRgbToHsl:()=>Kw,convertRgbToHsv:()=>P3,convertRgbToHwb:()=>rT,convertRgbToJab:()=>F3,convertRgbToLab:()=>H3,convertRgbToLab65:()=>Oc,convertRgbToLrgb:()=>Ds,convertRgbToOklab:()=>Yc,convertRgbToXyb:()=>ST,convertRgbToXyz50:()=>y0,convertRgbToXyz65:()=>ho,convertRgbToYiq:()=>FT,convertXybToRgb:()=>qT,convertXyz50ToLab:()=>sh,convertXyz50ToLuv:()=>jd,convertXyz50ToProphoto:()=>x3,convertXyz50ToRgb:()=>m0,convertXyz50ToXyz65:()=>RT,convertXyz65ToA98:()=>o3,convertXyz65ToItp:()=>u3,convertXyz65ToJab:()=>R3,convertXyz65ToLab65:()=>S3,convertXyz65ToP3:()=>g3,convertXyz65ToRec2020:()=>_3,convertXyz65ToRgb:()=>po,convertXyz65ToXyz50:()=>ET,convertYiqToRgb:()=>NT,converter:()=>kt,cubehelix:()=>wae,differenceCie76:()=>xee,differenceCie94:()=>bee,differenceCiede2000:()=>_ee,differenceCmc:()=>wee,differenceEuclidean:()=>p0,differenceHueChroma:()=>Bc,differenceHueNaive:()=>Iw,differenceHueSaturation:()=>Ic,differenceHyab:()=>Tee,differenceItp:()=>Aee,differenceKotsarenkoRamos:()=>Mee,displayable:()=>K3,dlab:()=>Tae,dlch:()=>Mae,easingGamma:()=>jT,easingInOutSine:()=>xae,easingMidpoint:()=>VT,easingSmootherstep:()=>yae,easingSmoothstep:()=>hae,easingSmoothstepInverse:()=>pae,filterBrightness:()=>eae,filterContrast:()=>rae,filterDeficiencyDeuter:()=>vae,filterDeficiencyProt:()=>cae,filterDeficiencyTrit:()=>dae,filterGrayscale:()=>nae,filterHueRotate:()=>lae,filterInvert:()=>iae,filterSaturate:()=>aae,filterSepia:()=>tae,fixupAlpha:()=>_a,fixupHueDecreasing:()=>hee,fixupHueIncreasing:()=>dee,fixupHueLonger:()=>vee,fixupHueShorter:()=>cl,formatCss:()=>gte,formatHex:()=>xte,formatHex8:()=>bte,formatHsl:()=>wte,formatRgb:()=>_te,getMode:()=>an,hsi:()=>Aae,hsl:()=>kae,hsv:()=>Cae,hwb:()=>Lae,inGamut:()=>ch,interpolate:()=>Rte,interpolateWith:()=>WT,interpolateWithPremultipliedAlpha:()=>zte,interpolatorLinear:()=>_r,interpolatorPiecewise:()=>Rw,interpolatorSplineBasis:()=>JT,interpolatorSplineBasisClosed:()=>$T,interpolatorSplineMonotone:()=>Ite,interpolatorSplineMonotone2:()=>Bte,interpolatorSplineMonotoneClosed:()=>Hte,interpolatorSplineNatural:()=>Fte,interpolatorSplineNaturalClosed:()=>Nte,itp:()=>Sae,jab:()=>qae,jch:()=>Dae,lab:()=>Pae,lab65:()=>Eae,lch:()=>Rae,lch65:()=>zae,lchuv:()=>Fae,lerp:()=>Cs,lrgb:()=>Nae,luv:()=>Iae,mapAlphaDivide:()=>UT,mapAlphaMultiply:()=>GT,mapTransferGamma:()=>qte,mapTransferLinear:()=>Z3,mapper:()=>Uc,modeA98:()=>zw,modeCubehelix:()=>Hw,modeDlab:()=>Vw,modeDlch:()=>Xw,modeHsi:()=>Jw,modeHsl:()=>q3,modeHsv:()=>E3,modeHwb:()=>aT,modeItp:()=>lT,modeJab:()=>oT,modeJch:()=>sT,modeLab:()=>uh,modeLab65:()=>fT,modeLch:()=>fh,modeLch65:()=>vT,modeLchuv:()=>pT,modeLrgb:()=>mT,modeLuv:()=>yT,modeOkhsl:()=>xT,modeOkhsv:()=>bT,modeOklab:()=>wT,modeOklch:()=>MT,modeP3:()=>AT,modeProphoto:()=>kT,modeRec2020:()=>CT,modeRgb:()=>qs,modeXyb:()=>DT,modeXyz50:()=>PT,modeXyz65:()=>zT,modeYiq:()=>IT,nearest:()=>Zte,okhsl:()=>Bae,okhsv:()=>Hae,oklab:()=>Oae,oklch:()=>Yae,p3:()=>Gae,parse:()=>Dw,parseHex:()=>kw,parseHsl:()=>Qw,parseHslLegacy:()=>jw,parseHwb:()=>tT,parseLab:()=>uT,parseLch:()=>cT,parseNamed:()=>Aw,parseOklab:()=>_T,parseOklch:()=>TT,parseRgb:()=>Pw,parseRgbLegacy:()=>Cw,parseTransparent:()=>Ew,prophoto:()=>Uae,random:()=>Ste,rec2020:()=>Vae,removeParser:()=>UQ,rgb:()=>Xae,round:()=>BT,samples:()=>Gte,serializeHex:()=>W3,serializeHex8:()=>HT,serializeHsl:()=>YT,serializeRgb:()=>OT,toGamut:()=>Xte,trilerp:()=>ree,unlerp:()=>eee,useMode:()=>dt,useParser:()=>Sw,wcagContrast:()=>bae,wcagLuminance:()=>M3,xyb:()=>Wae,xyz50:()=>Zae,xyz65:()=>Jae,yiq:()=>$ae});aM.exports=qQ(ww);var DQ=(e,r)=>{if(typeof e=="number"){if(r===3)return{mode:"rgb",r:(e>>8&15|e>>4&240)/255,g:(e>>4&15|e&240)/255,b:(e&15|e<<4&240)/255};if(r===4)return{mode:"rgb",r:(e>>12&15|e>>8&240)/255,g:(e>>8&15|e>>4&240)/255,b:(e>>4&15|e&240)/255,alpha:(e&15|e<<4&240)/255};if(r===6)return{mode:"rgb",r:(e>>16&255)/255,g:(e>>8&255)/255,b:(e&255)/255};if(r===8)return{mode:"rgb",r:(e>>24&255)/255,g:(e>>16&255)/255,b:(e>>8&255)/255,alpha:(e&255)/255}}},Tw=DQ,PQ={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},Mw=PQ,EQ=e=>Tw(Mw[e.toLowerCase()],6),Aw=EQ,RQ=/^#?([0-9a-f]{8}|[0-9a-f]{6}|[0-9a-f]{4}|[0-9a-f]{3})$/i,zQ=e=>{let r;return(r=e.match(RQ))?Tw(parseInt(r[1],16),r[1].length):void 0},kw=zQ,An="([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)",mTe=`(?:${An}|none)`,zc=`${An}%`,yTe=`(?:${An}%|none)`,k3=`(?:${An}%|${An})`,FQ=`(?:${An}%|${An}|none)`,NQ=`(?:${An}(deg|grad|rad|turn)|${An})`,gTe=`(?:${An}(deg|grad|rad|turn)|${An}|none)`,d0="\\s*,\\s*",xTe=new RegExp("^"+FQ+"$"),IQ=new RegExp(`^rgba?\\(\\s*${An}${d0}${An}${d0}${An}\\s*(?:,\\s*${k3}\\s*)?\\)$`),BQ=new RegExp(`^rgba?\\(\\s*${zc}${d0}${zc}${d0}${zc}\\s*(?:,\\s*${k3}\\s*)?\\)$`),HQ=e=>{let r={mode:"rgb"},t;if(t=e.match(IQ))t[1]!==void 0&&(r.r=t[1]/255),t[2]!==void 0&&(r.g=t[2]/255),t[3]!==void 0&&(r.b=t[3]/255);else if(t=e.match(BQ))t[1]!==void 0&&(r.r=t[1]/100),t[2]!==void 0&&(r.g=t[2]/100),t[3]!==void 0&&(r.b=t[3]/100);else return;return t[4]!==void 0?r.alpha=Math.max(0,Math.min(1,t[4]/100)):t[5]!==void 0&&(r.alpha=Math.max(0,Math.min(1,+t[5]))),r},Cw=HQ,OQ=(e,r)=>e===void 0?void 0:typeof e!="object"?Dw(e):e.mode!==void 0?e:r?Pt(ut({},e),{mode:r}):void 0,Fi=OQ,YQ=(e="rgb")=>r=>(r=Fi(r,e))!==void 0?r.mode===e?r:fl[r.mode][e]?fl[r.mode][e](r):e==="rgb"?fl[r.mode].rgb(r):fl.rgb[e](fl[r.mode].rgb(r)):void 0,kt=YQ,fl={},Lw={},h0=[],C3={},GQ=e=>e,dt=e=>(fl[e.mode]=ut(ut({},fl[e.mode]),e.toMode),Object.keys(e.fromMode||{}).forEach(r=>{fl[r]||(fl[r]={}),fl[r][e.mode]=e.fromMode[r]}),e.ranges||(e.ranges={}),e.difference||(e.difference={}),e.channels.forEach(r=>{if(e.ranges[r]===void 0&&(e.ranges[r]=[0,1]),!e.interpolate[r])throw new Error(`Missing interpolator for: ${r}`);typeof e.interpolate[r]=="function"&&(e.interpolate[r]={use:e.interpolate[r]}),e.interpolate[r].fixup||(e.interpolate[r].fixup=GQ)}),Lw[e.mode]=e,(e.parse||[]).forEach(r=>{Sw(r,e.mode)}),kt(e.mode)),an=e=>Lw[e],Sw=(e,r)=>{if(typeof e=="string"){if(!r)throw new Error("'mode' required when 'parser' is a string");C3[e]=r}else typeof e=="function"&&h0.indexOf(e)<0&&h0.push(e)},UQ=e=>{if(typeof e=="string")delete C3[e];else if(typeof e=="function"){let r=h0.indexOf(e);r>0&&h0.splice(r,1)}},a3=/[^\x00-\x7F]|[a-zA-Z_]/,VQ=/[^\x00-\x7F]|[-\w]/,vr={Function:"function",Ident:"ident",Number:"number",Percentage:"percentage",ParenClose:")",None:"none",Hue:"hue",Alpha:"alpha"},Or=0;function Yd(e){let r=e[Or],t=e[Or+1];return r==="-"||r==="+"?/\d/.test(t)||t==="."&&/\d/.test(e[Or+2]):r==="."?/\d/.test(t):/\d/.test(r)}function n3(e){if(Or>=e.length)return!1;let r=e[Or];if(a3.test(r))return!0;if(r==="-"){if(e.length-Or<2)return!1;let t=e[Or+1];return!!(t==="-"||a3.test(t))}return!1}var XQ={deg:1,rad:180/Math.PI,grad:9/10,turn:360};function Ec(e){let r="";if((e[Or]==="-"||e[Or]==="+")&&(r+=e[Or++]),r+=Gd(e),e[Or]==="."&&/\d/.test(e[Or+1])&&(r+=e[Or++]+Gd(e)),(e[Or]==="e"||e[Or]==="E")&&((e[Or+1]==="-"||e[Or+1]==="+")&&/\d/.test(e[Or+2])?r+=e[Or++]+e[Or++]+Gd(e):/\d/.test(e[Or+1])&&(r+=e[Or++]+Gd(e))),n3(e)){let t=Xd(e);return t==="deg"||t==="rad"||t==="turn"||t==="grad"?{type:vr.Hue,value:r*XQ[t]}:void 0}return e[Or]==="%"?(Or++,{type:vr.Percentage,value:+r}):{type:vr.Number,value:+r}}function Gd(e){let r="";for(;/\d/.test(e[Or]);)r+=e[Or++];return r}function Xd(e){let r="";for(;Or{var Cj=Object.create;var Tc=Object.defineProperty,Sj=Object.defineProperties,qj=Object.getOwnPropertyDescriptor,Dj=Object.getOwnPropertyDescriptors,Pj=Object.getOwnPropertyNames,qd=Object.getOwnPropertySymbols,Ej=Object.getPrototypeOf,Cg=Object.prototype.hasOwnProperty,R9=Object.prototype.propertyIsEnumerable;var E9=(e,r,t)=>r in e?Tc(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,ct=(e,r)=>{for(var t in r||(r={}))Cg.call(r,t)&&E9(e,t,r[t]);if(qd)for(var t of qd(r))R9.call(r,t)&&E9(e,t,r[t]);return e},Et=(e,r)=>Sj(e,Dj(r));var z9=(e,r)=>{var t={};for(var a in e)Cg.call(e,a)&&r.indexOf(a)<0&&(t[a]=e[a]);if(e!=null&&qd)for(var a of qd(e))r.indexOf(a)<0&&R9.call(e,a)&&(t[a]=e[a]);return t};var Cr=(e,r,t)=>()=>{if(t)throw t[0];try{return e&&(r=e(e=0)),r}catch(a){throw t=[a],a}};var G=(e,r)=>()=>{try{return r||e((r={exports:{}}).exports,r),r.exports}catch(t){throw r=0,t}},pt=(e,r)=>{for(var t in r)Tc(e,t,{get:r[t],enumerable:!0})},F9=(e,r,t,a)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of Pj(r))!Cg.call(e,n)&&n!==t&&Tc(e,n,{get:()=>r[n],enumerable:!(a=qj(r,n))||a.enumerable});return e};var N9=(e,r,t)=>(t=e!=null?Cj(Ej(e)):{},F9(r||!e||!e.__esModule?Tc(t,"default",{value:e,enumerable:!0}):t,e)),Fe=e=>F9(Tc({},"__esModule",{value:!0}),e);var I9=(e,r,t)=>new Promise((a,n)=>{var i=s=>{try{o(t.next(s))}catch(u){n(u)}},l=s=>{try{o(t.throw(s))}catch(u){n(u)}},o=s=>s.done?a(s.value):Promise.resolve(s.value).then(i,l);o((t=t.apply(e,r)).next())});var Mc=G(B9=>{"use strict";B9.version="4.2.0"});var O9=G((H9,Dd)=>{(function(r,t,a){t[r]=t[r]||a(),typeof Dd!="undefined"&&Dd.exports&&(Dd.exports=t[r])})("Promise",typeof window!="undefined"?window:H9,function(){"use strict";var r,t,a,n=Object.prototype.toString,i=typeof setImmediate!="undefined"?function(_){return setImmediate(_)}:setTimeout;try{Object.defineProperty({},"x",{}),r=function(_,w,b,M){return Object.defineProperty(_,w,{value:b,writable:!0,configurable:M!==!1})}}catch(x){r=function(w,b,M){return w[b]=M,w}}a=(function(){var _,w,b;function M(A,k){this.fn=A,this.self=k,this.next=void 0}return{add:function(k,S){b=new M(k,S),w?w.next=b:_=b,w=b,b=void 0},drain:function(){var k=_;for(_=w=t=void 0;k;)k.fn.call(k.self),k=k.next}}})();function l(x,_){a.add(x,_),t||(t=i(a.drain))}function o(x){var _,w=typeof x;return x!=null&&(w=="object"||w=="function")&&(_=x.then),typeof _=="function"?_:!1}function s(){for(var x=0;x0&&l(s,w))}catch(b){c.call(new h(w),b)}}}function c(x){var _=this;_.triggered||(_.triggered=!0,_.def&&(_=_.def),_.msg=x,_.state=2,_.chain.length>0&&l(s,_))}function v(x,_,w,b){for(var M=0;M<_.length;M++)(function(k){x.resolve(_[k]).then(function(D){w(k,D)},b)})(M)}function h(x){this.def=x,this.triggered=!1}function p(x){this.promise=x,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function m(x){if(typeof x!="function")throw TypeError("Not a function");if(this.__NPO__!==0)throw TypeError("Not a promise");this.__NPO__=1;var _=new p(this);this.then=function(b,M){var A={success:typeof b=="function"?b:!0,failure:typeof M=="function"?M:!1};return A.promise=new this.constructor(function(S,D){if(typeof S!="function"||typeof D!="function")throw TypeError("Not a function");A.resolve=S,A.reject=D}),_.chain.push(A),_.state!==0&&l(s,_),A.promise},this.catch=function(b){return this.then(void 0,b)};try{x.call(void 0,function(b){f.call(_,b)},function(b){c.call(_,b)})}catch(w){c.call(_,w)}}var y=r({},"constructor",m,!1);return m.prototype=y,r(y,"__NPO__",0,!1),r(m,"resolve",function(_){var w=this;return _&&typeof _=="object"&&_.__NPO__===1?_:new w(function(M,A){if(typeof M!="function"||typeof A!="function")throw TypeError("Not a function");M(_)})}),r(m,"reject",function(_){return new this(function(b,M){if(typeof b!="function"||typeof M!="function")throw TypeError("Not a function");M(_)})}),r(m,"all",function(_){var w=this;return n.call(_)!="[object Array]"?w.reject(TypeError("Not an array")):_.length===0?w.resolve([]):new w(function(M,A){if(typeof M!="function"||typeof A!="function")throw TypeError("Not a function");var k=_.length,S=Array(k),D=0;v(w,_,function(R,F){S[R]=F,++D===k&&M(S)},A)})}),r(m,"race",function(_){var w=this;return n.call(_)!="[object Array]"?w.reject(TypeError("Not an array")):new w(function(M,A){if(typeof M!="function"||typeof A!="function")throw TypeError("Not a function");v(w,_,function(S,D){M(D)},A)})}),m})});var Er=G((fTe,Pd)=>{(function(){var e={version:"3.8.2"},r=[].slice,t=function(d){return r.call(d)},a=self.document;function n(d){return d&&(d.ownerDocument||d.document||d).documentElement}function i(d){return d&&(d.ownerDocument&&d.ownerDocument.defaultView||d.document&&d||d.defaultView)}if(a)try{t(a.documentElement.childNodes)[0].nodeType}catch(d){t=function(g){for(var T=g.length,L=new Array(T);T--;)L[T]=g[T];return L}}if(Date.now||(Date.now=function(){return+new Date}),a)try{a.createElement("DIV").style.setProperty("opacity",0,"")}catch(d){var l=this.Element.prototype,o=l.setAttribute,s=l.setAttributeNS,u=this.CSSStyleDeclaration.prototype,f=u.setProperty;l.setAttribute=function(g,T){o.call(this,g,T+"")},l.setAttributeNS=function(g,T,L){s.call(this,g,T,L+"")},u.setProperty=function(g,T,L){f.call(this,g,T+"",L)}}e.ascending=c;function c(d,g){return dg?1:d>=g?0:NaN}e.descending=function(d,g){return gd?1:g>=d?0:NaN},e.min=function(d,g){var T=-1,L=d.length,C,q;if(arguments.length===1){for(;++T=q){C=q;break}for(;++Tq&&(C=q)}else{for(;++T=q){C=q;break}for(;++Tq&&(C=q)}return C},e.max=function(d,g){var T=-1,L=d.length,C,q;if(arguments.length===1){for(;++T=q){C=q;break}for(;++TC&&(C=q)}else{for(;++T=q){C=q;break}for(;++TC&&(C=q)}return C},e.extent=function(d,g){var T=-1,L=d.length,C,q,z;if(arguments.length===1){for(;++T=q){C=z=q;break}for(;++Tq&&(C=q),z=q){C=z=q;break}for(;++Tq&&(C=q),z1)return z/(I-1)},e.deviation=function(){var d=e.variance.apply(this,arguments);return d&&Math.sqrt(d)};function p(d){return{left:function(g,T,L,C){for(arguments.length<3&&(L=0),arguments.length<4&&(C=g.length);L>>1;d(g[q],T)<0?L=q+1:C=q}return L},right:function(g,T,L,C){for(arguments.length<3&&(L=0),arguments.length<4&&(C=g.length);L>>1;d(g[q],T)>0?C=q:L=q+1}return L}}}var m=p(c);e.bisectLeft=m.left,e.bisect=e.bisectRight=m.right,e.bisector=function(d){return p(d.length===1?function(g,T){return c(d(g),T)}:d)},e.shuffle=function(d,g,T){(L=arguments.length)<3&&(T=d.length,L<2&&(g=0));for(var L=T-g,C,q;L;)q=Math.random()*L--|0,C=d[L+g],d[L+g]=d[q+g],d[q+g]=C;return d},e.permute=function(d,g){for(var T=g.length,L=new Array(T);T--;)L[T]=d[g[T]];return L},e.pairs=function(d){for(var g=0,T=d.length-1,L,C=d[0],q=new Array(T<0?0:T);g=0;)for(z=d[g],T=z.length;--T>=0;)q[--C]=z[T];return q};var x=Math.abs;e.range=function(d,g,T){if(arguments.length<3&&(T=1,arguments.length<2&&(g=d,d=0)),(g-d)/T===1/0)throw new Error("infinite range");var L=[],C=_(x(T)),q=-1,z;if(d*=C,g*=C,T*=C,T<0)for(;(z=d+T*++q)>g;)L.push(z/C);else for(;(z=d+T*++q)=g.length)return C?C.call(d,I):L?I.sort(L):I;for(var J=-1,j=I.length,Q=g[Z++],he,_e,ee,ne=new b,fe;++J=g.length)return E;var Z=[],J=T[I++];return E.forEach(function(j,Q){Z.push({key:j,values:z(Q,I)})}),J?Z.sort(function(j,Q){return J(j.key,Q.key)}):Z}return d.map=function(E,I){return q(I,E,0)},d.entries=function(E){return z(q(e.map,E,0),0)},d.key=function(E){return g.push(E),d},d.sortKeys=function(E){return T[g.length-1]=E,d},d.sortValues=function(E){return L=E,d},d.rollup=function(E){return C=E,d},d},e.set=function(d){var g=new H;if(d)for(var T=0,L=d.length;T=0&&(L=d.slice(T+1),d=d.slice(0,T)),d)return arguments.length<2?this[d].on(L):this[d].on(L,g);if(arguments.length===2){if(g==null)for(d in this)this.hasOwnProperty(d)&&this[d].on(L,null);return this}};function U(d){var g=[],T=new b;function L(){for(var C=g,q=-1,z=C.length,E;++q=0&&(T=d.slice(0,g))!=="xmlns"&&(d=d.slice(g+1)),qe.hasOwnProperty(T)?{space:qe[T],local:d}:d}},ce.attr=function(d,g){if(arguments.length<2){if(typeof d=="string"){var T=this.node();return d=e.ns.qualify(d),d.local?T.getAttributeNS(d.space,d.local):T.getAttribute(d)}for(g in d)this.each(ke(g,d[g]));return this}return this.each(ke(d,g))};function ke(d,g){d=e.ns.qualify(d);function T(){this.removeAttribute(d)}function L(){this.removeAttributeNS(d.space,d.local)}function C(){this.setAttribute(d,g)}function q(){this.setAttributeNS(d.space,d.local,g)}function z(){var I=g.apply(this,arguments);I==null?this.removeAttribute(d):this.setAttribute(d,I)}function E(){var I=g.apply(this,arguments);I==null?this.removeAttributeNS(d.space,d.local):this.setAttributeNS(d.space,d.local,I)}return g==null?d.local?L:T:typeof g=="function"?d.local?E:z:d.local?q:C}function Le(d){return d.trim().replace(/\s+/g," ")}ce.classed=function(d,g){if(arguments.length<2){if(typeof d=="string"){var T=this.node(),L=(d=ze(d)).length,C=-1;if(g=T.classList){for(;++C=0;)(q=T[L])&&(C&&C!==q.nextSibling&&C.parentNode.insertBefore(q,C),C=q);return this},ce.sort=function(d){d=xe.apply(this,arguments);for(var g=-1,T=this.length;++g=g&&(g=C+1);!(I=z[g])&&++g0&&(d=d.slice(0,C));var z=Ie.get(d);z&&(d=z,q=Be);function E(){var J=this[L];J&&(this.removeEventListener(d,J,J.$),delete this[L])}function I(){var J=q(g,t(arguments));E.call(this),this.addEventListener(d,this[L]=J,J.$=T),J._=g}function Z(){var J=new RegExp("^__on([^.]+)"+e.requote(d)+"$"),j;for(var Q in this)if(j=Q.match(J)){var he=this[Q];this.removeEventListener(j[1],he,he.$),delete this[Q]}}return C?g?I:E:g?X:Z}var Ie=e.map({mouseenter:"mouseover",mouseleave:"mouseout"});a&&Ie.forEach(function(d){"on"+d in a&&Ie.remove(d)});function Xe(d,g){return function(T){var L=e.event;e.event=T,g[0]=this.__data__;try{d.apply(this,g)}finally{e.event=L}}}function Be(d,g){var T=Xe(d,g);return function(L){var C=this,q=L.relatedTarget;(!q||q!==C&&!(q.compareDocumentPosition(C)&8))&&T.call(C,L)}}var Ze,Ke=0;function _r(d){var g=".dragsuppress-"+ ++Ke,T="click"+g,L=e.select(i(d)).on("touchmove"+g,$).on("dragstart"+g,$).on("selectstart"+g,$);if(Ze==null&&(Ze="onselectstart"in d?!1:O(d.style,"userSelect")),Ze){var C=n(d).style,q=C[Ze];C[Ze]="none"}return function(z){if(L.on(g,null),Ze&&(C[Ze]=q),z){var E=function(){L.on(T,null)};L.on(T,function(){$(),E()},!0),setTimeout(E,0)}}}e.mouse=function(d){return Pe(d,re())};var br=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;function Pe(d,g){g.changedTouches&&(g=g.changedTouches[0]);var T=d.ownerSVGElement||d;if(T.createSVGPoint){var L=T.createSVGPoint();if(br<0){var C=i(d);if(C.scrollX||C.scrollY){T=e.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var q=T[0][0].getScreenCTM();br=!(q.f||q.e),T.remove()}}return br?(L.x=g.pageX,L.y=g.pageY):(L.x=g.clientX,L.y=g.clientY),L=L.matrixTransform(d.getScreenCTM().inverse()),[L.x,L.y]}var z=d.getBoundingClientRect();return[g.clientX-z.left-d.clientLeft,g.clientY-z.top-d.clientTop]}e.touch=function(d,g,T){if(arguments.length<3&&(T=g,g=re().changedTouches),g){for(var L=0,C=g.length,q;L0?1:d<0?-1:0}function Zr(d,g,T){return(g[0]-d[0])*(T[1]-d[1])-(g[1]-d[1])*(T[0]-d[0])}function vt(d){return d>1?0:d<-1?dr:Math.acos(d)}function Dt(d){return d>1?ae:d<-1?-ae:Math.asin(d)}function Ot(d){return((d=Math.exp(d))-1/d)/2}function ea(d){return((d=Math.exp(d))+1/d)/2}function Wt(d){return((d=Math.exp(2*d))-1)/(d+1)}function Qa(d){return(d=Math.sin(d/2))*d}var wt=Math.SQRT2,Zt=2,ra=4;e.interpolateZoom=function(d,g){var T=d[0],L=d[1],C=d[2],q=g[0],z=g[1],E=g[2],I=q-T,Z=z-L,J=I*I+Z*Z,j,Q;if(J0&&(ar=ar.transition().duration(z)),ar.call(we.event)}function yr(){ne&&ne.domain(ee.range().map(function(ar){return(ar-d.x)/d.k}).map(ee.invert)),be&&be.domain(fe.range().map(function(ar){return(ar-d.y)/d.k}).map(fe.invert))}function gr(ar){E++||ar({type:"zoomstart"})}function Nr(ar){yr(),ar({type:"zoom",scale:d.k,translate:[d.x,d.y]})}function wr(ar){--E||(ar({type:"zoomend"}),T=null)}function Pr(){var ar=this,Ir=_e.of(ar,arguments),Br=0,nt=e.select(i(ar)).on(Z,Ya).on(J,un),Yt=de(e.mouse(ar)),ga=_r(ar);kd.call(ar),gr(Ir);function Ya(){Br=1,ur(e.mouse(ar),Yt),Nr(Ir)}function un(){nt.on(Z,null).on(J,null),ga(Br),wr(Ir)}}function at(){var ar=this,Ir=_e.of(ar,arguments),Br={},nt=0,Yt,ga=".zoom-"+e.event.changedTouches[0].identifier,Ya="touchmove"+ga,un="touchend"+ga,Tn=[],fn=e.select(ar),Ln=_r(ar);Cn(),gr(Ir),fn.on(I,null).on(Q,Cn);function rn(){var Ni=e.touches(ar);return Yt=d.k,Ni.forEach(function(Ga){Ga.identifier in Br&&(Br[Ga.identifier]=de(Ga))}),Ni}function Cn(){var Ni=e.event.target;e.select(Ni).on(Ya,Cs).on(un,Lj),Tn.push(Ni);for(var Ga=e.event.changedTouches,fi=0,dl=Ga.length;fi1){var Ss=ci[0],xo=ci[1],Sd=Ss[0]-xo[0],P9=Ss[1]-xo[1];nt=Sd*Sd+P9*P9}}function Cs(){var Ni=e.touches(ar),Ga,fi,dl,ci;kd.call(ar);for(var f0=0,Ss=Ni.length;f01?1:g,T=T<0?0:T>1?1:T,C=T<=.5?T*(1+g):T+g-T*g,L=2*T-C;function q(E){return E>360?E-=360:E<0&&(E+=360),E<60?L+(C-L)*E/60:E<180?C:E<240?L+(C-L)*(240-E)/60:L}function z(E){return Math.round(q(E)*255)}return new za(z(d+120),z(d),z(d-120))}e.hcl=dt;function dt(d,g,T){return this instanceof dt?(this.h=+d,this.c=+g,void(this.l=+T)):arguments.length<2?d instanceof dt?new dt(d.h,d.c,d.l):d instanceof lt?cc(d.l,d.a,d.b):cc((d=fd((d=e.rgb(d)).r,d.g,d.b)).l,d.a,d.b):new dt(d,g,T)}var Pt=dt.prototype=new pa;Pt.brighter=function(d){return new dt(this.h,this.c,Math.min(100,this.l+ht*(arguments.length?d:1)))},Pt.darker=function(d){return new dt(this.h,this.c,Math.max(0,this.l-ht*(arguments.length?d:1)))},Pt.rgb=function(){return Ea(this.h,this.c,this.l).rgb()};function Ea(d,g,T){return isNaN(d)&&(d=0),isNaN(g)&&(g=0),new lt(T,Math.cos(d*=pe)*g,Math.sin(d)*g)}e.lab=lt;function lt(d,g,T){return this instanceof lt?(this.l=+d,this.a=+g,void(this.b=+T)):arguments.length<2?d instanceof lt?new lt(d.l,d.a,d.b):d instanceof dt?Ea(d.h,d.c,d.l):fd((d=za(d)).r,d.g,d.b):new lt(d,g,T)}var ht=18,ma=.95047,zi=1,cl=1.08883,oi=lt.prototype=new pa;oi.brighter=function(d){return new lt(Math.min(100,this.l+ht*(arguments.length?d:1)),this.a,this.b)},oi.darker=function(d){return new lt(Math.max(0,this.l-ht*(arguments.length?d:1)),this.a,this.b)},oi.rgb=function(){return ca(this.l,this.a,this.b)};function ca(d,g,T){var L=(d+16)/116,C=L+g/500,q=L-T/200;return C=Ra(C)*ma,L=Ra(L)*zi,q=Ra(q)*cl,new za(Ts(3.2404542*C-1.5371385*L-.4985314*q),Ts(-.969266*C+1.8760108*L+.041556*q),Ts(.0556434*C-.2040259*L+1.0572252*q))}function cc(d,g,T){return d>0?new dt(Math.atan2(T,g)*Re,Math.sqrt(g*g+T*T),d):new dt(NaN,NaN,d)}function Ra(d){return d>.206893034?d*d*d:(d-4/29)/7.787037}function mo(d){return d>.008856?Math.pow(d,1/3):7.787037*d+4/29}function Ts(d){return Math.round(255*(d<=.00304?12.92*d:1.055*Math.pow(d,1/2.4)-.055))}e.rgb=za;function za(d,g,T){return this instanceof za?(this.r=~~d,this.g=~~g,void(this.b=~~T)):arguments.length<2?d instanceof za?new za(d.r,d.g,d.b):sd(""+d,za,Jr):new za(d,g,T)}function od(d){return new za(d>>16,d>>8&255,d&255)}function t0(d){return od(d)+""}var a0=za.prototype=new pa;a0.brighter=function(d){d=Math.pow(.7,arguments.length?d:1);var g=this.r,T=this.g,L=this.b,C=30;return!g&&!T&&!L?new za(C,C,C):(g&&g>4,L=L>>4|L,C=I&240,C=C>>4|C,q=I&15,q=q<<4|q):d.length===7&&(L=(I&16711680)>>16,C=(I&65280)>>8,q=I&255)),g(L,C,q))}function ud(d,g,T){var L=Math.min(d/=255,g/=255,T/=255),C=Math.max(d,g,T),q=C-L,z,E,I=(C+L)/2;return q?(E=I<.5?q/(C+L):q/(2-C-L),d==C?z=(g-T)/q+(g0&&I<1?0:z),new ir(z,E,I)}function fd(d,g,T){d=vc(d),g=vc(g),T=vc(T);var L=mo((.4124564*d+.3575761*g+.1804375*T)/ma),C=mo((.2126729*d+.7151522*g+.072175*T)/zi),q=mo((.0193339*d+.119192*g+.9503041*T)/cl);return lt(116*C-16,500*(L-C),200*(C-q))}function vc(d){return(d/=255)<=.04045?d/12.92:Math.pow((d+.055)/1.055,2.4)}function dc(d){var g=parseFloat(d);return d.charAt(d.length-1)==="%"?Math.round(g*2.55):g}var Mr=e.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});Mr.forEach(function(d,g){Mr.set(d,od(g))});function Tr(d){return typeof d=="function"?d:function(){return d}}e.functor=Tr,e.xhr=ot(N);function ot(d){return function(g,T,L){return arguments.length===2&&typeof T=="function"&&(L=T,T=null),or(g,T,d,L)}}function or(d,g,T,L){var C={},q=e.dispatch("beforesend","progress","load","error"),z={},E=new XMLHttpRequest,I=null;self.XDomainRequest&&!("withCredentials"in E)&&/^(http(s)?:)?\/\//.test(d)&&(E=new XDomainRequest),"onload"in E?E.onload=E.onerror=Z:E.onreadystatechange=function(){E.readyState>3&&Z()};function Z(){var J=E.status,j;if(!J&&Mt(E)||J>=200&&J<300||J===304){try{j=T.call(C,E)}catch(Q){q.error.call(C,Q);return}q.load.call(C,j)}else q.error.call(C,E)}return E.onprogress=function(J){var j=e.event;e.event=J;try{q.progress.call(C,E)}finally{e.event=j}},C.header=function(J,j){return J=(J+"").toLowerCase(),arguments.length<2?z[J]:(j==null?delete z[J]:z[J]=j+"",C)},C.mimeType=function(J){return arguments.length?(g=J==null?null:J+"",C):g},C.responseType=function(J){return arguments.length?(I=J,C):I},C.response=function(J){return T=J,C},["get","post"].forEach(function(J){C[J]=function(){return C.send.apply(C,[J].concat(t(arguments)))}}),C.send=function(J,j,Q){if(arguments.length===2&&typeof j=="function"&&(Q=j,j=null),E.open(J,d,!0),g!=null&&!("accept"in z)&&(z.accept=g+",*/*"),E.setRequestHeader)for(var he in z)E.setRequestHeader(he,z[he]);return g!=null&&E.overrideMimeType&&E.overrideMimeType(g),I!=null&&(E.responseType=I),Q!=null&&C.on("error",Q).on("load",function(_e){Q(null,_e)}),q.beforesend.call(C,E),E.send(j==null?null:j),C},C.abort=function(){return E.abort(),C},e.rebind(C,q,"on"),L==null?C:C.get(sn(L))}function sn(d){return d.length===1?function(g,T){d(g==null?T:null)}:d}function Mt(d){var g=d.responseType;return g&&g!=="text"?d.response:d.responseText}e.dsv=function(d,g){var T=new RegExp('["'+d+` +]`),L=d.charCodeAt(0);function C(Z,J,j){arguments.length<3&&(j=J,J=null);var Q=or(Z,g,J==null?q:z(J),j);return Q.row=function(he){return arguments.length?Q.response((J=he)==null?q:z(he)):J},Q}function q(Z){return C.parse(Z.responseText)}function z(Z){return function(J){return C.parse(J.responseText,Z)}}C.parse=function(Z,J){var j;return C.parseRows(Z,function(Q,he){if(j)return j(Q,he-1);var _e=function(ee){for(var ne={},fe=Q.length,be=0;be=_e)return Q;if(be)return be=!1,j;var Ge=ee;if(Z.charCodeAt(Ge)===34){for(var lr=Ge;lr++<_e;)if(Z.charCodeAt(lr)===34){if(Z.charCodeAt(lr+1)!==34)break;++lr}ee=lr+2;var ur=Z.charCodeAt(lr+1);return ur===13?(be=!0,Z.charCodeAt(lr+2)===10&&++ee):ur===10&&(be=!0),Z.slice(Ge+1,lr).replace(/""/g,'"')}for(;ee<_e;){var ur=Z.charCodeAt(ee++),sr=1;if(ur===10)be=!0;else if(ur===13)be=!0,Z.charCodeAt(ee)===10&&(++ee,++sr);else if(ur!==L)continue;return Z.slice(Ge,ee-sr)}return Z.slice(Ge)}for(;(fe=we())!==Q;){for(var de=[];fe!==j&&fe!==Q;)de.push(fe),fe=we();J&&(de=J(de,ne++))==null||he.push(de)}return he},C.format=function(Z){if(Array.isArray(Z[0]))return C.formatRows(Z);var J=new H,j=[];return Z.forEach(function(Q){for(var he in Q)J.has(he)||j.push(J.add(he))}),[j.map(I).join(d)].concat(Z.map(function(Q){return j.map(function(he){return I(Q[he])}).join(d)})).join(` +`)},C.formatRows=function(Z){return Z.map(E).join(` +`)};function E(Z){return Z.map(I).join(d)}function I(Z){return T.test(Z)?'"'+Z.replace(/\"/g,'""')+'"':Z}return C},e.csv=e.dsv(",","text/csv"),e.tsv=e.dsv(" ","text/tab-separated-values");var Ha,Oa,si,Ms,g8=this[O(this,"requestAnimationFrame")]||function(d){setTimeout(d,17)};e.timer=function(){cd.apply(this,arguments)};function cd(d,g,T){var L=arguments.length;L<2&&(g=0),L<3&&(T=Date.now());var C=T+g,q={c:d,t:C,n:null};return Oa?Oa.n=q:Ha=q,Oa=q,si||(Ms=clearTimeout(Ms),si=1,g8(eg)),q}function eg(){var d=x8(),g=b8()-d;g>24?(isFinite(g)&&(clearTimeout(Ms),Ms=setTimeout(eg,g)),si=0):(si=1,g8(eg))}e.timer.flush=function(){x8(),b8()};function x8(){for(var d=Date.now(),g=Ha;g;)d>=g.t&&g.c(d-g.t)&&(g.c=null),g=g.n;return d}function b8(){for(var d,g=Ha,T=1/0;g;)g.c?(g.t=0;--E)ee.push(C[Z[j[E]][2]]);for(E=+he;E1&&Zr(d[T[L-2]],d[T[L-1]],d[C])<=0;)--L;T[L++]=C}return T.slice(0,L)}function q$(d,g){return d[0]-g[0]||d[1]-g[1]}e.geom.polygon=function(d){return K(d,vd),d};var vd=e.geom.polygon.prototype=[];vd.area=function(){for(var d=-1,g=this.length,T,L=this[g-1],C=0;++dEe)E=E.L;else if(z=g-R$(E,T),z>Ee){if(!E.R){L=E;break}E=E.R}else{q>-Ee?(L=E.P,C=E):z>-Ee?(L=E,C=E.N):L=C=E;break}var I=A8(d);if(l0.insert(L,I),!(!L&&!C)){if(L===C){s0(L),C=A8(L.site),l0.insert(I,C),I.edge=C.edge=mc(L.site,I.site),o0(L),o0(C);return}if(!C){I.edge=mc(L.site,I.site);return}s0(L),s0(C);var Z=L.site,J=Z.x,j=Z.y,Q=d.x-J,he=d.y-j,_e=C.site,ee=_e.x-J,ne=_e.y-j,fe=2*(Q*ne-he*ee),be=Q*Q+he*he,we=ee*ee+ne*ne,de={x:(ne*be-he*we)/fe+J,y:(Q*we-ee*be)/fe+j};dd(C.edge,Z,_e,de),I.edge=mc(Z,d,null,de),C.edge=mc(d,_e,null,de),o0(L),o0(C)}}function k8(d,g){var T=d.site,L=T.x,C=T.y,q=C-g;if(!q)return L;var z=d.P;if(!z)return-1/0;T=z.site;var E=T.x,I=T.y,Z=I-g;if(!Z)return E;var J=E-L,j=1/q-1/Z,Q=J/Z;return j?(-Q+Math.sqrt(Q*Q-2*j*(J*J/(-2*Z)-I+Z/2+C-q/2)))/j+L:(L+E)/2}function R$(d,g){var T=d.N;if(T)return k8(T,g);var L=d.site;return L.y===g?L.x:1/0}function L8(d){this.site=d,this.edges=[]}L8.prototype.prepare=function(){for(var d=this.edges,g=d.length,T;g--;)T=d[g].edge,(!T.b||!T.a)&&d.splice(g,1);return d.sort(C8),d.length};function z$(d){for(var g=d[0][0],T=d[1][0],L=d[0][1],C=d[1][1],q,z,E,I,Z=As,J=Z.length,j,Q,he,_e,ee,ne;J--;)if(j=Z[J],!(!j||!j.prepare()))for(he=j.edges,_e=he.length,Q=0;Q<_e;)ne=he[Q].end(),E=ne.x,I=ne.y,ee=he[++Q%_e].start(),q=ee.x,z=ee.y,(x(E-q)>Ee||x(I-z)>Ee)&&(he.splice(Q,0,new hd(H$(j.site,ne,x(E-g)Ee?{x:g,y:x(q-g)Ee?{x:x(z-C)Ee?{x:T,y:x(q-T)Ee?{x:x(z-L)=-je)){var Q=I*I+Z*Z,he=J*J+ne*ne,_e=(ne*Q-Z*he)/j,ee=(I*he-J*Q)/j,ne=ee+E,fe=M8.pop()||new F$;fe.arc=d,fe.site=C,fe.x=_e+z,fe.y=ne+Math.sqrt(_e*_e+ee*ee),fe.cy=ne,d.circle=fe;for(var be=null,we=pc._;we;)if(fe.y0)){if(ee/=he,he<0){if(ee0){if(ee>Q)return;ee>j&&(j=ee)}if(ee=T-E,!(!he&&ee<0)){if(ee/=he,he<0){if(ee>Q)return;ee>j&&(j=ee)}else if(he>0){if(ee0)){if(ee/=_e,_e<0){if(ee0){if(ee>Q)return;ee>j&&(j=ee)}if(ee=L-I,!(!_e&&ee<0)){if(ee/=_e,_e<0){if(ee>Q)return;ee>j&&(j=ee)}else if(_e>0){if(ee0&&(C.a={x:E+j*he,y:I+j*_e}),Q<1&&(C.b={x:E+Q*he,y:I+Q*_e}),C}}}}}}function I$(d){for(var g=i0,T=N$(d[0][0],d[0][1],d[1][0],d[1][1]),L=g.length,C;L--;)C=g[L],(!B$(C,d)||!T(C)||x(C.a.x-C.b.x)=q)return;if(J>Q){if(!L)L={x:_e,y:z};else if(L.y>=E)return;T={x:_e,y:E}}else{if(!L)L={x:_e,y:E};else if(L.y1)if(J>Q){if(!L)L={x:(z-fe)/ne,y:z};else if(L.y>=E)return;T={x:(E-fe)/ne,y:E}}else{if(!L)L={x:(E-fe)/ne,y:E};else if(L.y=q)return;T={x:q,y:ne*q+fe}}else{if(!L)L={x:q,y:ne*q+fe};else if(L.x=J&&fe.x<=Q&&fe.y>=j&&fe.y<=he?[[J,he],[Q,he],[Q,j],[J,j]]:[];be.point=I[ee]}),Z}function E(I){return I.map(function(Z,J){return{x:Math.round(L(Z,J)/Ee)*Ee,y:Math.round(C(Z,J)/Ee)*Ee,i:J}})}return z.links=function(I){return lg(E(I)).edges.filter(function(Z){return Z.l&&Z.r}).map(function(Z){return{source:I[Z.l.i],target:I[Z.r.i]}})},z.triangles=function(I){var Z=[];return lg(E(I)).cells.forEach(function(J,j){for(var Q=J.site,he=J.edges.sort(C8),_e=-1,ee=he.length,ne,fe,be=he[ee-1].edge,we=be.l===Q?be.r:be.l;++_ewe&&(we=J.x),J.y>de&&(de=J.y),he.push(J.x),_e.push(J.y);else for(ee=0;eewe&&(we=Ge),lr>de&&(de=lr),he.push(Ge),_e.push(lr)}var ur=we-fe,sr=de-be;ur>sr?de=be+ur:we=fe+sr;function yr(wr,Pr,at,ta,st,ar,Ir,Br){if(!(isNaN(at)||isNaN(ta)))if(wr.leaf){var nt=wr.x,Yt=wr.y;if(nt!=null)if(x(nt-at)+x(Yt-ta)<.01)gr(wr,Pr,at,ta,st,ar,Ir,Br);else{var ga=wr.point;wr.x=wr.y=wr.point=null,gr(wr,ga,nt,Yt,st,ar,Ir,Br),gr(wr,Pr,at,ta,st,ar,Ir,Br)}else wr.x=at,wr.y=ta,wr.point=Pr}else gr(wr,Pr,at,ta,st,ar,Ir,Br)}function gr(wr,Pr,at,ta,st,ar,Ir,Br){var nt=(st+Ir)*.5,Yt=(ar+Br)*.5,ga=at>=nt,Ya=ta>=Yt,un=Ya<<1|ga;wr.leaf=!1,wr=wr.nodes[un]||(wr.nodes[un]=D8()),ga?st=nt:Ir=nt,Ya?ar=Yt:Br=Yt,yr(wr,Pr,at,ta,st,ar,Ir,Br)}var Nr=D8();if(Nr.add=function(wr){yr(Nr,wr,+j(wr,++ee),+Q(wr,ee),fe,be,we,de)},Nr.visit=function(wr){xc(wr,Nr,fe,be,we,de)},Nr.find=function(wr){return V$(Nr,wr[0],wr[1],fe,be,we,de)},ee=-1,g==null){for(;++eeq||Q>z||he=Ge,sr=T>=lr,yr=sr<<1|ur,gr=yr+4;yrT&&(q=g.slice(T,q),E[z]?E[z]+=q:E[++z]=q),(L=L[0])===(C=C[0])?E[z]?E[z]+=C:E[++z]=C:(E[++z]=null,I.push({i:z,x:Hl(L,C)})),T=ug.lastIndex;return T=0&&!(L=e.interpolators[T](d,g)););return L}e.interpolators=[function(d,g){var T=typeof g;return(T==="string"?Mr.has(g.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(g)?og:E8:g instanceof pa?og:Array.isArray(g)?yd:T==="object"&&isNaN(g)?P8:Hl)(d,g)}],e.interpolateArray=yd;function yd(d,g){var T=[],L=[],C=d.length,q=g.length,z=Math.min(d.length,g.length),E;for(E=0;E=0?d.slice(0,g):d,L=g>=0?d.slice(g+1):"in";return T=X$.get(T)||R8,L=W$.get(L)||N,Z$(L(T.apply(null,r.call(arguments,1))))};function Z$(d){return function(g){return g<=0?0:g>=1?1:d(g)}}function z8(d){return function(g){return 1-d(1-g)}}function F8(d){return function(g){return .5*(g<.5?d(2*g):2-d(2-2*g))}}function J$(d){return d*d}function $$(d){return d*d*d}function K$(d){if(d<=0)return 0;if(d>=1)return 1;var g=d*d,T=g*d;return 4*(d<.5?T:3*(d-g)+T-.75)}function j$(d){return function(g){return Math.pow(g,d)}}function Q$(d){return 1-Math.cos(d*ae)}function eK(d){return Math.pow(2,10*(d-1))}function rK(d){return 1-Math.sqrt(1-d*d)}function tK(d,g){var T;return arguments.length<2&&(g=.45),arguments.length?T=g/hr*Math.asin(1/d):(d=1,T=g/4),function(L){return 1+d*Math.pow(2,-10*L)*Math.sin((L-T)*hr/g)}}function aK(d){return d||(d=1.70158),function(g){return g*g*((d+1)*g-d)}}function nK(d){return d<1/2.75?7.5625*d*d:d<2/2.75?7.5625*(d-=1.5/2.75)*d+.75:d<2.5/2.75?7.5625*(d-=2.25/2.75)*d+.9375:7.5625*(d-=2.625/2.75)*d+.984375}e.interpolateHcl=iK;function iK(d,g){d=e.hcl(d),g=e.hcl(g);var T=d.h,L=d.c,C=d.l,q=g.h-T,z=g.c-L,E=g.l-C;return isNaN(z)&&(z=0,L=isNaN(L)?g.c:L),isNaN(q)?(q=0,T=isNaN(T)?g.h:T):q>180?q-=360:q<-180&&(q+=360),function(I){return Ea(T+q*I,L+z*I,C+E*I)+""}}e.interpolateHsl=lK;function lK(d,g){d=e.hsl(d),g=e.hsl(g);var T=d.h,L=d.s,C=d.l,q=g.h-T,z=g.s-L,E=g.l-C;return isNaN(z)&&(z=0,L=isNaN(L)?g.s:L),isNaN(q)?(q=0,T=isNaN(T)?g.h:T):q>180?q-=360:q<-180&&(q+=360),function(I){return Jr(T+q*I,L+z*I,C+E*I)+""}}e.interpolateLab=oK;function oK(d,g){d=e.lab(d),g=e.lab(g);var T=d.l,L=d.a,C=d.b,q=g.l-T,z=g.a-L,E=g.b-C;return function(I){return ca(T+q*I,L+z*I,C+E*I)+""}}e.interpolateRound=N8;function N8(d,g){return g-=d,function(T){return Math.round(d+g*T)}}e.transform=function(d){var g=a.createElementNS(e.ns.prefix.svg,"g");return(e.transform=function(T){if(T!=null){g.setAttribute("transform",T);var L=g.transform.baseVal.consolidate()}return new I8(L?L.matrix:uK)})(d)};function I8(d){var g=[d.a,d.b],T=[d.c,d.d],L=H8(g),C=B8(g,T),q=H8(sK(T,g,-C))||0;g[0]*T[1]180?g+=360:g-d>180&&(d+=360),L.push({i:T.push(u0(T)+"rotate(",null,")")-2,x:Hl(d,g)})):g&&T.push(u0(T)+"rotate("+g+")")}function vK(d,g,T,L){d!==g?L.push({i:T.push(u0(T)+"skewX(",null,")")-2,x:Hl(d,g)}):g&&T.push(u0(T)+"skewX("+g+")")}function dK(d,g,T,L){if(d[0]!==g[0]||d[1]!==g[1]){var C=T.push(u0(T)+"scale(",null,",",null,")");L.push({i:C-4,x:Hl(d[0],g[0])},{i:C-2,x:Hl(d[1],g[1])})}else(g[0]!==1||g[1]!==1)&&T.push(u0(T)+"scale("+g+")")}function O8(d,g){var T=[],L=[];return d=e.transform(d),g=e.transform(g),fK(d.translate,g.translate,T,L),cK(d.rotate,g.rotate,T,L),vK(d.skew,g.skew,T,L),dK(d.scale,g.scale,T,L),d=g=null,function(C){for(var q=-1,z=L.length,E;++q0?q=de:(T.c=null,T.t=NaN,T=null,g.end({type:"end",alpha:q=0})):de>0&&(g.start({type:"start",alpha:q=de}),T=cd(d.tick)),d):q},d.start=function(){var de,Ge=he.length,lr=_e.length,ur=L[0],sr=L[1],yr,gr;for(de=0;de=0;)q.push(J=Z[I]),J.parent=E,J.depth=E.depth+1;T&&(E.value=0),E.children=Z}else T&&(E.value=+T.call(L,E,E.depth)||0),delete E.children;return vl(C,function(j){var Q,he;d&&(Q=j.children)&&Q.sort(d),T&&(he=j.parent)&&(he.value+=j.value)}),z}return L.sort=function(C){return arguments.length?(d=C,L):d},L.children=function(C){return arguments.length?(g=C,L):g},L.value=function(C){return arguments.length?(T=C,L):T},L.revalue=function(C){return T&&(_c(C,function(q){q.children&&(q.value=0)}),vl(C,function(q){var z;q.children||(q.value=+T.call(L,q,q.depth)||0),(z=q.parent)&&(z.value+=q.value)})),C},L};function bc(d,g){return e.rebind(d,g,"sort","children","value"),d.nodes=d,d.links=CK,d}function _c(d,g){for(var T=[d];(d=T.pop())!=null;)if(g(d),(C=d.children)&&(L=C.length))for(var L,C;--L>=0;)T.push(C[L])}function vl(d,g){for(var T=[d],L=[];(d=T.pop())!=null;)if(L.push(d),(z=d.children)&&(q=z.length))for(var C=-1,q,z;++CC&&(C=E),L.push(E)}for(z=0;zL&&(T=g,L=C);return T}function zK(d){return d.reduce(FK,0)}function FK(d,g){return d+g[1]}e.layout.histogram=function(){var d=!0,g=Number,T=IK,L=NK;function C(q,Q){for(var E=[],I=q.map(g,this),Z=T.call(this,I,Q),J=L.call(this,Z,I,Q),j,Q=-1,he=I.length,_e=J.length-1,ee=d?1:1/he,ne;++Q<_e;)j=E[Q]=[],j.dx=J[Q+1]-(j.x=J[Q]),j.y=0;if(_e>0)for(Q=-1;++Q=Z[0]&&ne<=Z[1]&&(j=E[e.bisect(J,ne,1,_e)-1],j.y+=ee,j.push(q[Q]));return E}return C.value=function(q){return arguments.length?(g=q,C):g},C.range=function(q){return arguments.length?(T=Tr(q),C):T},C.bins=function(q){return arguments.length?(L=typeof q=="number"?function(z){return V8(z,q)}:Tr(q),C):L},C.frequency=function(q){return arguments.length?(d=!!q,C):d},C};function NK(d,g){return V8(d,Math.ceil(Math.log(g.length)/Math.LN2+1))}function V8(d,g){for(var T=-1,L=+d[0],C=(d[1]-L)/g,q=[];++T<=g;)q[T]=C*T+L;return q}function IK(d){return[e.min(d),e.max(d)]}e.layout.pack=function(){var d=e.layout.hierarchy().sort(BK),g=0,T=[1,1],L;function C(q,z){var E=d.call(this,q,z),I=E[0],Z=T[0],J=T[1],j=L==null?Math.sqrt:typeof L=="function"?L:function(){return L};if(I.x=I.y=0,vl(I,function(he){he.r=+j(he.value)}),vl(I,Z8),g){var Q=g*(L?1:Math.max(2*I.r/Z,2*I.r/J))/2;vl(I,function(he){he.r+=Q}),vl(I,Z8),vl(I,function(he){he.r-=Q})}return J8(I,Z/2,J/2,L?1:1/Math.max(2*I.r/Z,2*I.r/J)),E}return C.size=function(q){return arguments.length?(T=q,C):T},C.radius=function(q){return arguments.length?(L=q==null||typeof q=="function"?q:+q,C):L},C.padding=function(q){return arguments.length?(g=+q,C):g},bc(C,d)};function BK(d,g){return d.value-g.value}function vg(d,g){var T=d._pack_next;d._pack_next=g,g._pack_prev=d,g._pack_next=T,T._pack_prev=g}function X8(d,g){d._pack_next=g,g._pack_prev=d}function W8(d,g){var T=g.x-d.x,L=g.y-d.y,C=d.r+g.r;return .999*C*C>T*T+L*L}function Z8(d){if(!(g=d.children)||!(Q=g.length))return;var g,T=1/0,L=-1/0,C=1/0,q=-1/0,z,E,I,Z,J,j,Q;function he(de){T=Math.min(de.x-de.r,T),L=Math.max(de.x+de.r,L),C=Math.min(de.y-de.r,C),q=Math.max(de.y+de.r,q)}if(g.forEach(HK),z=g[0],z.x=-z.r,z.y=0,he(z),Q>1&&(E=g[1],E.x=E.r,E.y=0,he(E),Q>2))for(I=g[2],$8(z,E,I),he(I),vg(z,I),z._pack_prev=I,vg(I,E),E=z._pack_next,Z=3;Zne.x&&(ne=Ge),Ge.depth>fe.depth&&(fe=Ge)});var be=g(ee,ne)/2-ee.x,we=T[0]/(ne.x+g(ne,ee)/2+be),de=T[1]/(fe.depth||1);_c(he,function(Ge){Ge.x=(Ge.x+be)*we,Ge.y=Ge.depth*de})}return Q}function q(J){for(var j={A:null,children:[J]},Q=[j],he;(he=Q.pop())!=null;)for(var _e=he.children,ee,ne=0,fe=_e.length;ne0&&(YK(UK(ee,J,Q),J,Ge),fe+=Ge,be+=Ge),we+=ee.m,fe+=he.m,de+=ne.m,be+=_e.m;ee&&!hg(_e)&&(_e.t=ee,_e.m+=we-be),he&&!dg(ne)&&(ne.t=he,ne.m+=fe-de,Q=J)}return Q}function Z(J){J.x*=T[0],J.y=J.depth*T[1]}return C.separation=function(J){return arguments.length?(g=J,C):g},C.size=function(J){return arguments.length?(L=(T=J)==null?Z:null,C):L?null:T},C.nodeSize=function(J){return arguments.length?(L=(T=J)==null?null:Z,C):L?T:null},bc(C,d)};function K8(d,g){return d.parent==g.parent?1:2}function dg(d){var g=d.children;return g.length?g[0]:d.t}function hg(d){var g=d.children,T;return(T=g.length)?g[T-1]:d.t}function YK(d,g,T){var L=T/(g.i-d.i);g.c-=L,g.s+=T,d.c+=L,g.z+=T,g.m+=T}function GK(d){for(var g=0,T=0,L=d.children,C=L.length,q;--C>=0;)q=L[C],q.z+=g,q.m+=g,g+=q.s+(T+=q.c)}function UK(d,g,T){return d.a.parent===g.parent?d.a:T}e.layout.cluster=function(){var d=e.layout.hierarchy().sort(null).value(null),g=K8,T=[1,1],L=!1;function C(q,z){var E=d.call(this,q,z),I=E[0],Z,J=0;vl(I,function(ee){var ne=ee.children;ne&&ne.length?(ee.x=XK(ne),ee.y=VK(ne)):(ee.x=Z?J+=g(ee,Z):0,ee.y=0,Z=ee)});var j=j8(I),Q=Q8(I),he=j.x-g(j,Q)/2,_e=Q.x+g(Q,j)/2;return vl(I,L?function(ee){ee.x=(ee.x-I.x)*T[0],ee.y=(I.y-ee.y)*T[1]}:function(ee){ee.x=(ee.x-he)/(_e-he)*T[0],ee.y=(1-(I.y?ee.y/I.y:1))*T[1]}),E}return C.separation=function(q){return arguments.length?(g=q,C):g},C.size=function(q){return arguments.length?(L=(T=q)==null,C):L?null:T},C.nodeSize=function(q){return arguments.length?(L=(T=q)!=null,C):L?T:null},bc(C,d)};function VK(d){return 1+e.max(d,function(g){return g.y})}function XK(d){return d.reduce(function(g,T){return g+T.x},0)/d.length}function j8(d){var g=d.children;return g&&g.length?j8(g[0]):d}function Q8(d){var g=d.children,T;return g&&(T=g.length)?Q8(g[T-1]):d}e.layout.treemap=function(){var d=e.layout.hierarchy(),g=Math.round,T=[1,1],L=null,C=pg,q=!1,z,E="squarify",I=.5*(1+Math.sqrt(5));function Z(ee,ne){for(var fe=-1,be=ee.length,we,de;++fe0;)be.push(de=we[sr-1]),be.area+=de.area,E!=="squarify"||(lr=Q(be,ur))<=Ge?(we.pop(),Ge=lr):(be.area-=be.pop().area,he(be,ur,fe,!1),ur=Math.min(fe.dx,fe.dy),be.length=be.area=0,Ge=1/0);be.length&&(he(be,ur,fe,!0),be.length=be.area=0),ne.forEach(J)}}function j(ee){var ne=ee.children;if(ne&&ne.length){var fe=C(ee),be=ne.slice(),we,de=[];for(Z(be,fe.dx*fe.dy/ee.value),de.area=0;we=be.pop();)de.push(we),de.area+=we.area,we.z!=null&&(he(de,we.z?fe.dx:fe.dy,fe,!be.length),de.length=de.area=0);ne.forEach(j)}}function Q(ee,ne){for(var fe=ee.area,be,we=0,de=1/0,Ge=-1,lr=ee.length;++Gewe&&(we=be));return fe*=fe,ne*=ne,fe?Math.max(ne*we*I/fe,fe/(ne*de*I)):1/0}function he(ee,ne,fe,be){var we=-1,de=ee.length,Ge=fe.x,lr=fe.y,ur=ne?g(ee.area/ne):0,sr;if(ne==fe.dx){for((be||ur>fe.dy)&&(ur=fe.dy);++wefe.dx)&&(ur=fe.dx);++we1);return d+g*L*Math.sqrt(-2*Math.log(q)/q)}},logNormal:function(){var d=e.random.normal.apply(e,arguments);return function(){return Math.exp(d())}},bates:function(d){var g=e.random.irwinHall(d);return function(){return g()/d}},irwinHall:function(d){return function(){for(var g=0,T=0;T2?JK:WK,Z=L?pK:hK;return C=I(d,g,Z,T),q=I(g,d,Z,ks),E}function E(I){return C(I)}return E.invert=function(I){return q(I)},E.domain=function(I){return arguments.length?(d=I.map(Number),z()):d},E.range=function(I){return arguments.length?(g=I,z()):g},E.rangeRound=function(I){return E.range(I).interpolate(N8)},E.clamp=function(I){return arguments.length?(L=I,z()):L},E.interpolate=function(I){return arguments.length?(T=I,z()):T},E.ticks=function(I){return gg(d,I)},E.tickFormat=function(I,Z){return d3_scale_linearTickFormat(d,I,Z)},E.nice=function(I){return n9(d,I),z()},E.copy=function(){return t9(d,g,T,L)},z()}function a9(d,g){return e.rebind(d,g,"range","rangeRound","interpolate","clamp")}function n9(d,g){return mg(d,r9(yg(d,g)[2])),mg(d,r9(yg(d,g)[2])),d}function yg(d,g){g==null&&(g=10);var T=gd(d),L=T[1]-T[0],C=Math.pow(10,Math.floor(Math.log(L/g)/Math.LN10)),q=g/L*C;return q<=.15?C*=10:q<=.35?C*=5:q<=.75&&(C*=2),T[0]=Math.ceil(T[0]/C)*C,T[1]=Math.floor(T[1]/C)*C+C*.5,T[2]=C,T}function gg(d,g){return e.range.apply(e,yg(d,g))}var $K={s:1,g:1,p:1,r:1,e:1};function i9(d){return-Math.floor(Math.log(d)/Math.LN10+.01)}function oTe(d,g){var T=i9(g[2]);return d in $K?Math.abs(T-i9(Math.max(x(g[0]),x(g[1]))))+ +(d!=="e"):T-(d==="%")*2}e.scale.log=function(){return l9(e.scale.linear().domain([0,1]),10,!0,[1,10])};function l9(d,g,T,L){function C(E){return(T?Math.log(E<0?0:E):-Math.log(E>0?0:-E))/Math.log(g)}function q(E){return T?Math.pow(g,E):-Math.pow(g,-E)}function z(E){return d(C(E))}return z.invert=function(E){return q(d.invert(E))},z.domain=function(E){return arguments.length?(T=E[0]>=0,d.domain((L=E.map(Number)).map(C)),z):L},z.base=function(E){return arguments.length?(g=+E,d.domain(L.map(C)),z):g},z.nice=function(){var E=mg(L.map(C),T?Math:KK);return d.domain(E),L=E.map(q),z},z.ticks=function(){var E=gd(L),I=[],Z=E[0],J=E[1],j=Math.floor(C(Z)),Q=Math.ceil(C(J)),he=g%1?2:g;if(isFinite(Q-j)){if(T){for(;j0;_e--)I.push(q(j)*_e);for(j=0;I[j]J;Q--);I=I.slice(j,Q)}return I},z.copy=function(){return l9(d.copy(),g,T,L)},a9(z,d)}var KK={floor:function(d){return-Math.ceil(-d)},ceil:function(d){return-Math.floor(-d)}};e.scale.pow=function(){return o9(e.scale.linear(),1,[0,1])};function o9(d,g,T){var L=bd(g),C=bd(1/g);function q(z){return d(L(z))}return q.invert=function(z){return C(d.invert(z))},q.domain=function(z){return arguments.length?(d.domain((T=z.map(Number)).map(L)),q):T},q.ticks=function(z){return gg(T,z)},q.tickFormat=function(z,E){return d3_scale_linearTickFormat(T,z,E)},q.nice=function(z){return q.domain(n9(T,z))},q.exponent=function(z){return arguments.length?(L=bd(g=z),C=bd(1/g),d.domain(T.map(L)),q):g},q.copy=function(){return o9(d.copy(),g,T)},a9(q,d)}function bd(d){return function(g){return g<0?-Math.pow(-g,d):Math.pow(g,d)}}e.scale.sqrt=function(){return e.scale.pow().exponent(.5)},e.scale.ordinal=function(){return s9([],{t:"range",a:[[]]})};function s9(d,g){var T,L,C;function q(E){return L[((T.get(E)||(g.t==="range"?T.set(E,d.push(E)):NaN))-1)%L.length]}function z(E,I){return e.range(d.length).map(function(Z){return E+I*Z})}return q.domain=function(E){if(!arguments.length)return d;d=[],T=new b;for(var I=-1,Z=E.length,J;++I0?T[q-1]:d[0],qQ?0:1;if(J=pr)return I(J,_e)+(Z?I(Z,1-_e):"")+"Z";var ee,ne,fe,be,we=0,de=0,Ge,lr,ur,sr,yr,gr,Nr,wr,Pr=[];if((be=(+z.apply(this,arguments)||0)/2)&&(fe=L===_d?Math.sqrt(Z*Z+J*J):+L.apply(this,arguments),_e||(de*=-1),J&&(de=Dt(fe/J*Math.sin(be))),Z&&(we=Dt(fe/Z*Math.sin(be)))),J){Ge=J*Math.cos(j+de),lr=J*Math.sin(j+de),ur=J*Math.cos(Q-de),sr=J*Math.sin(Q-de);var at=Math.abs(Q-j-2*de)<=dr?0:1;if(de&&wd(Ge,lr,ur,sr)===_e^at){var ta=(j+Q)/2;Ge=J*Math.cos(ta),lr=J*Math.sin(ta),ur=sr=null}}else Ge=lr=0;if(Z){yr=Z*Math.cos(Q-we),gr=Z*Math.sin(Q-we),Nr=Z*Math.cos(j+we),wr=Z*Math.sin(j+we);var st=Math.abs(j-Q+2*we)<=dr?0:1;if(we&&wd(yr,gr,Nr,wr)===1-_e^st){var ar=(j+Q)/2;yr=Z*Math.cos(ar),gr=Z*Math.sin(ar),Nr=wr=null}}else yr=gr=0;if(he>Ee&&(ee=Math.min(Math.abs(J-Z)/2,+T.apply(this,arguments)))>.001){ne=Z0?0:1}function Td(d,g,T,L,C){var q=d[0]-g[0],z=d[1]-g[1],E=(C?L:-L)/Math.sqrt(q*q+z*z),I=E*z,Z=-E*q,J=d[0]+I,j=d[1]+Z,Q=g[0]+I,he=g[1]+Z,_e=(J+Q)/2,ee=(j+he)/2,ne=Q-J,fe=he-j,be=ne*ne+fe*fe,we=T-L,de=J*he-Q*j,Ge=(fe<0?-1:1)*Math.sqrt(Math.max(0,we*we*be-de*de)),lr=(de*fe-ne*Ge)/be,ur=(-de*ne-fe*Ge)/be,sr=(de*fe+ne*Ge)/be,yr=(-de*ne+fe*Ge)/be,gr=lr-_e,Nr=ur-ee,wr=sr-_e,Pr=yr-ee;return gr*gr+Nr*Nr>wr*wr+Pr*Pr&&(lr=sr,ur=yr),[[lr-I,ur-Z],[lr*T/we,ur*T/we]]}function p9(){return!0}function m9(d){var g=n0,T=hc,L=p9,C=Fi,q=C.key,z=.7;function E(I){var Z=[],J=[],j=-1,Q=I.length,he,_e=Tr(g),ee=Tr(T);function ne(){Z.push("M",C(d(J),z))}for(;++j1?d.join("L"):d+"Z"}function y9(d){return d.join("L")+"Z"}function lj(d){for(var g=0,T=d.length,L=d[0],C=[L[0],",",L[1]];++g1&&C.push("H",L[0]),C.join("")}function bg(d){for(var g=0,T=d.length,L=d[0],C=[L[0],",",L[1]];++g1){E=g[1],q=d[I],I++,L+="C"+(C[0]+z[0])+","+(C[1]+z[1])+","+(q[0]-E[0])+","+(q[1]-E[1])+","+q[0]+","+q[1];for(var Z=2;Z9&&(q=T*3/Math.sqrt(q),z[E]=q*L,z[E+1]=q*C));for(E=-1;++E<=I;)q=(d[Math.min(I,E+1)][0]-d[Math.max(0,E-1)][0])/(6*(1+z[E]*z[E])),g.push([q||0,z[E]*q||0]);return g}function pj(d){return d.length<3?Fi(d):d[0]+Md(d,hj(d))}e.svg.line.radial=function(){var d=m9(_9);return d.radius=d.x,delete d.x,d.angle=d.y,delete d.y,d};function _9(d){for(var g,T=-1,L=d.length,C,q;++Tdr)+",1 "+j}function Z(J,j,Q,he){return"Q 0,0 "+he}return q.radius=function(J){return arguments.length?(T=Tr(J),q):T},q.source=function(J){return arguments.length?(d=Tr(J),q):d},q.target=function(J){return arguments.length?(g=Tr(J),q):g},q.startAngle=function(J){return arguments.length?(L=Tr(J),q):L},q.endAngle=function(J){return arguments.length?(C=Tr(J),q):C},q};function mj(d){return d.radius}e.svg.diagonal=function(){var d=T9,g=M9,T=A9;function L(C,q){var z=d.call(this,C,q),E=g.call(this,C,q),I=(z.y+E.y)/2,Z=[z,{x:z.x,y:I},{x:E.x,y:I},E];return Z=Z.map(T),"M"+Z[0]+"C"+Z[1]+" "+Z[2]+" "+Z[3]}return L.source=function(C){return arguments.length?(d=Tr(C),L):d},L.target=function(C){return arguments.length?(g=Tr(C),L):g},L.projection=function(C){return arguments.length?(T=C,L):T},L};function A9(d){return[d.x,d.y]}e.svg.diagonal.radial=function(){var d=e.svg.diagonal(),g=A9,T=d.projection;return d.projection=function(L){return arguments.length?T(yj(g=L)):g},d};function yj(d){return function(){var g=d.apply(this,arguments),T=g[0],L=g[1]-ae;return[T*Math.cos(L),T*Math.sin(L)]}}e.svg.symbol=function(){var d=xj,g=gj;function T(L,C){return(L9.get(d.call(this,L,C))||k9)(g.call(this,L,C))}return T.type=function(L){return arguments.length?(d=Tr(L),T):d},T.size=function(L){return arguments.length?(g=Tr(L),T):g},T};function gj(){return 64}function xj(){return"circle"}function k9(d){var g=Math.sqrt(d/dr);return"M0,"+g+"A"+g+","+g+" 0 1,1 0,"+-g+"A"+g+","+g+" 0 1,1 0,"+g+"Z"}var L9=e.map({circle:k9,cross:function(d){var g=Math.sqrt(d/5)/2;return"M"+-3*g+","+-g+"H"+-g+"V"+-3*g+"H"+g+"V"+-g+"H"+3*g+"V"+g+"H"+g+"V"+3*g+"H"+-g+"V"+g+"H"+-3*g+"Z"},diamond:function(d){var g=Math.sqrt(d/(2*C9)),T=g*C9;return"M0,"+-g+"L"+T+",0 0,"+g+" "+-T+",0Z"},square:function(d){var g=Math.sqrt(d)/2;return"M"+-g+","+-g+"L"+g+","+-g+" "+g+","+g+" "+-g+","+g+"Z"},"triangle-down":function(d){var g=Math.sqrt(d/Ad),T=g*Ad/2;return"M0,"+T+"L"+g+","+-T+" "+-g+","+-T+"Z"},"triangle-up":function(d){var g=Math.sqrt(d/Ad),T=g*Ad/2;return"M0,"+-T+"L"+g+","+T+" "+-g+","+T+"Z"}});e.svg.symbolTypes=L9.keys();var Ad=Math.sqrt(3),C9=Math.tan(30*pe);ce.transition=function(d){for(var g=Ls||++q9,T=kg(d),L=[],C,q,z=Ld||{time:Date.now(),ease:K$,delay:0,duration:250},E=-1,I=this.length;++E0;)j[--be].call(d,fe);if(ne>=1)return z.event&&z.event.end.call(d,d.__data__,g),--q.count?delete q[L]:delete d[T],1}z||(E=C.time,I=cd(Q,0,E),z=q[L]={tween:new b,time:E,timer:I,delay:C.delay,duration:C.duration,ease:C.ease,index:g},C=null,++q.count)}e.svg.axis=function(){var d=e.scale.linear(),g=D9,T=6,L=6,C=3,q=[10],z=null,E;function I(Z){Z.each(function(){var J=e.select(this),j=this.__chart__||d,Q=this.__chart__=d.copy(),he=z==null?Q.ticks?Q.ticks.apply(Q,q):Q.domain():z,_e=E==null?Q.tickFormat?Q.tickFormat.apply(Q,q):N:E,ee=J.selectAll(".tick").data(he,Q),ne=ee.enter().insert("g",".domain").attr("class","tick").style("opacity",Ee),fe=e.transition(ee.exit()).style("opacity",Ee).remove(),be=e.transition(ee.order()).style("opacity",1),we=Math.max(T,0)+C,de,Ge=xd(Q),lr=J.selectAll(".domain").data([0]),ur=(lr.enter().append("path").attr("class","domain"),e.transition(lr));ne.append("line"),ne.append("text");var sr=ne.select("line"),yr=be.select("line"),gr=ee.select("text").text(_e),Nr=ne.select("text"),wr=be.select("text"),Pr=g==="top"||g==="left"?-1:1,at,ta,st,ar;if(g==="bottom"||g==="top"?(de=wj,at="x",st="y",ta="x2",ar="y2",gr.attr("dy",Pr<0?"0em":".71em").style("text-anchor","middle"),ur.attr("d","M"+Ge[0]+","+Pr*L+"V0H"+Ge[1]+"V"+Pr*L)):(de=Tj,at="y",st="x",ta="y2",ar="x2",gr.attr("dy",".32em").style("text-anchor",Pr<0?"end":"start"),ur.attr("d","M"+Pr*L+","+Ge[0]+"H0V"+Ge[1]+"H"+Pr*L)),sr.attr(ar,Pr*T),Nr.attr(st,Pr*we),yr.attr(ta,0).attr(ar,Pr*T),wr.attr(at,0).attr(st,Pr*we),Q.rangeBand){var Ir=Q,Br=Ir.rangeBand()/2;j=Q=function(nt){return Ir(nt)+Br}}else j.rangeBand?j=Q:fe.call(de,Q,j);ne.call(de,j,Q),be.call(de,Q,Q)})}return I.scale=function(Z){return arguments.length?(d=Z,I):d},I.orient=function(Z){return arguments.length?(g=Z in _j?Z+"":D9,I):g},I.ticks=function(){return arguments.length?(q=t(arguments),I):q},I.tickValues=function(Z){return arguments.length?(z=Z,I):z},I.tickFormat=function(Z){return arguments.length?(E=Z,I):E},I.tickSize=function(Z){var J=arguments.length;return J?(T=+Z,L=+arguments[J-1],I):T},I.innerTickSize=function(Z){return arguments.length?(T=+Z,I):T},I.outerTickSize=function(Z){return arguments.length?(L=+Z,I):L},I.tickPadding=function(Z){return arguments.length?(C=+Z,I):C},I.tickSubdivide=function(){return arguments.length&&I},I};var D9="bottom",_j={top:1,right:1,bottom:1,left:1};function wj(d,g,T){d.attr("transform",function(L){var C=g(L);return"translate("+(isFinite(C)?C:T(L))+",0)"})}function Tj(d,g,T){d.attr("transform",function(L){var C=g(L);return"translate(0,"+(isFinite(C)?C:T(L))+")"})}e.svg.brush=function(){var d=se(J,"brushstart","brush","brushend"),g=null,T=null,L=[0,0],C=[0,0],q,z,E=!0,I=!0,Z=Lg[0];function J(ee){ee.each(function(){var ne=e.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",_e).on("touchstart.brush",_e),fe=ne.selectAll(".background").data([0]);fe.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),ne.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var be=ne.selectAll(".resize").data(Z,N);be.exit().remove(),be.enter().append("g").attr("class",function(lr){return"resize "+lr}).style("cursor",function(lr){return Mj[lr]}).append("rect").attr("x",function(lr){return/[ew]$/.test(lr)?-3:null}).attr("y",function(lr){return/^[ns]/.test(lr)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),be.style("display",J.empty()?"none":null);var we=e.transition(ne),de=e.transition(fe),Ge;g&&(Ge=xd(g),de.attr("x",Ge[0]).attr("width",Ge[1]-Ge[0]),Q(we)),T&&(Ge=xd(T),de.attr("y",Ge[0]).attr("height",Ge[1]-Ge[0]),he(we)),j(we)})}J.event=function(ee){ee.each(function(){var ne=d.of(this,arguments),fe={x:L,y:C,i:q,j:z},be=this.__chart__||fe;this.__chart__=fe,Ls?e.select(this).transition().each("start.brush",function(){q=be.i,z=be.j,L=be.x,C=be.y,ne({type:"brushstart"})}).tween("brush:brush",function(){var we=yd(L,fe.x),de=yd(C,fe.y);return q=z=null,function(Ge){L=fe.x=we(Ge),C=fe.y=de(Ge),ne({type:"brush",mode:"resize"})}}).each("end.brush",function(){q=fe.i,z=fe.j,ne({type:"brush",mode:"resize"}),ne({type:"brushend"})}):(ne({type:"brushstart"}),ne({type:"brush",mode:"resize"}),ne({type:"brushend"}))})};function j(ee){ee.selectAll(".resize").attr("transform",function(ne){return"translate("+L[+/e$/.test(ne)]+","+C[+/^s/.test(ne)]+")"})}function Q(ee){ee.select(".extent").attr("x",L[0]),ee.selectAll(".extent,.n>rect,.s>rect").attr("width",L[1]-L[0])}function he(ee){ee.select(".extent").attr("y",C[0]),ee.selectAll(".extent,.e>rect,.w>rect").attr("height",C[1]-C[0])}function _e(){var ee=this,ne=e.select(e.event.target),fe=d.of(ee,arguments),be=e.select(ee),we=ne.datum(),de=!/^(n|s)$/.test(we)&&g,Ge=!/^(e|w)$/.test(we)&&T,lr=ne.classed("extent"),ur=_r(ee),sr,yr=e.mouse(ee),gr,Nr=e.select(i(ee)).on("keydown.brush",at).on("keyup.brush",ta);if(e.event.changedTouches?Nr.on("touchmove.brush",st).on("touchend.brush",Ir):Nr.on("mousemove.brush",st).on("mouseup.brush",Ir),be.interrupt().selectAll("*").interrupt(),lr)yr[0]=L[0]-yr[0],yr[1]=C[0]-yr[1];else if(we){var wr=+/w$/.test(we),Pr=+/^n/.test(we);gr=[L[1-wr]-yr[0],C[1-Pr]-yr[1]],yr[0]=L[wr],yr[1]=C[Pr]}else e.event.altKey&&(sr=yr.slice());be.style("pointer-events","none").selectAll(".resize").style("display",null),e.select("body").style("cursor",ne.style("cursor")),fe({type:"brushstart"}),st();function at(){e.event.keyCode==32&&(lr||(sr=null,yr[0]-=L[1],yr[1]-=C[1],lr=2),$())}function ta(){e.event.keyCode==32&&lr==2&&(yr[0]+=L[1],yr[1]+=C[1],lr=0,$())}function st(){var Br=e.mouse(ee),nt=!1;gr&&(Br[0]+=gr[0],Br[1]+=gr[1]),lr||(e.event.altKey?(sr||(sr=[(L[0]+L[1])/2,(C[0]+C[1])/2]),yr[0]=L[+(Br[0]{(function(e,r){typeof Ed=="object"&&typeof Y9!="undefined"?r(Ed):(e=e||self,r(e.d3=e.d3||{}))})(Ed,function(e){"use strict";var r=new Date,t=new Date;function a(te,xe,Ve,cr){function mr(le){return te(le=arguments.length===0?new Date:new Date(+le)),le}return mr.floor=function(le){return te(le=new Date(+le)),le},mr.ceil=function(le){return te(le=new Date(le-1)),xe(le,1),te(le),le},mr.round=function(le){var ye=mr(le),Ie=mr.ceil(le);return le-ye0))return Xe;do Xe.push(Be=new Date(+le)),xe(le,Ie),te(le);while(Be=ye)for(;te(ye),!le(ye);)ye.setTime(ye-1)},function(ye,Ie){if(ye>=ye)if(Ie<0)for(;++Ie<=0;)for(;xe(ye,-1),!le(ye););else for(;--Ie>=0;)for(;xe(ye,1),!le(ye););})},Ve&&(mr.count=function(le,ye){return r.setTime(+le),t.setTime(+ye),te(r),te(t),Math.floor(Ve(r,t))},mr.every=function(le){return le=Math.floor(le),!isFinite(le)||!(le>0)?null:le>1?mr.filter(cr?function(ye){return cr(ye)%le===0}:function(ye){return mr.count(0,ye)%le===0}):mr}),mr}var n=a(function(){},function(te,xe){te.setTime(+te+xe)},function(te,xe){return xe-te});n.every=function(te){return te=Math.floor(te),!isFinite(te)||!(te>0)?null:te>1?a(function(xe){xe.setTime(Math.floor(xe/te)*te)},function(xe,Ve){xe.setTime(+xe+Ve*te)},function(xe,Ve){return(Ve-xe)/te}):n};var i=n.range,l=1e3,o=6e4,s=36e5,u=864e5,f=6048e5,c=a(function(te){te.setTime(te-te.getMilliseconds())},function(te,xe){te.setTime(+te+xe*l)},function(te,xe){return(xe-te)/l},function(te){return te.getUTCSeconds()}),v=c.range,h=a(function(te){te.setTime(te-te.getMilliseconds()-te.getSeconds()*l)},function(te,xe){te.setTime(+te+xe*o)},function(te,xe){return(xe-te)/o},function(te){return te.getMinutes()}),p=h.range,m=a(function(te){te.setTime(te-te.getMilliseconds()-te.getSeconds()*l-te.getMinutes()*o)},function(te,xe){te.setTime(+te+xe*s)},function(te,xe){return(xe-te)/s},function(te){return te.getHours()}),y=m.range,x=a(function(te){te.setHours(0,0,0,0)},function(te,xe){te.setDate(te.getDate()+xe)},function(te,xe){return(xe-te-(xe.getTimezoneOffset()-te.getTimezoneOffset())*o)/u},function(te){return te.getDate()-1}),_=x.range;function w(te){return a(function(xe){xe.setDate(xe.getDate()-(xe.getDay()+7-te)%7),xe.setHours(0,0,0,0)},function(xe,Ve){xe.setDate(xe.getDate()+Ve*7)},function(xe,Ve){return(Ve-xe-(Ve.getTimezoneOffset()-xe.getTimezoneOffset())*o)/f})}var b=w(0),M=w(1),A=w(2),k=w(3),S=w(4),D=w(5),P=w(6),R=b.range,F=M.range,B=A.range,H=k.range,N=S.range,Y=D.range,O=P.range,V=a(function(te){te.setDate(1),te.setHours(0,0,0,0)},function(te,xe){te.setMonth(te.getMonth()+xe)},function(te,xe){return xe.getMonth()-te.getMonth()+(xe.getFullYear()-te.getFullYear())*12},function(te){return te.getMonth()}),X=V.range,W=a(function(te){te.setMonth(0,1),te.setHours(0,0,0,0)},function(te,xe){te.setFullYear(te.getFullYear()+xe)},function(te,xe){return xe.getFullYear()-te.getFullYear()},function(te){return te.getFullYear()});W.every=function(te){return!isFinite(te=Math.floor(te))||!(te>0)?null:a(function(xe){xe.setFullYear(Math.floor(xe.getFullYear()/te)*te),xe.setMonth(0,1),xe.setHours(0,0,0,0)},function(xe,Ve){xe.setFullYear(xe.getFullYear()+Ve*te)})};var U=W.range,$=a(function(te){te.setUTCSeconds(0,0)},function(te,xe){te.setTime(+te+xe*o)},function(te,xe){return(xe-te)/o},function(te){return te.getUTCMinutes()}),re=$.range,se=a(function(te){te.setUTCMinutes(0,0,0)},function(te,xe){te.setTime(+te+xe*s)},function(te,xe){return(xe-te)/s},function(te){return te.getUTCHours()}),oe=se.range,K=a(function(te){te.setUTCHours(0,0,0,0)},function(te,xe){te.setUTCDate(te.getUTCDate()+xe)},function(te,xe){return(xe-te)/u},function(te){return te.getUTCDate()-1}),me=K.range;function ie(te){return a(function(xe){xe.setUTCDate(xe.getUTCDate()-(xe.getUTCDay()+7-te)%7),xe.setUTCHours(0,0,0,0)},function(xe,Ve){xe.setUTCDate(xe.getUTCDate()+Ve*7)},function(xe,Ve){return(Ve-xe)/f})}var Me=ie(0),ue=ie(1),ce=ie(2),Te=ie(3),Ne=ie(4),ge=ie(5),qe=ie(6),ke=Me.range,Le=ue.range,Ce=ce.range,ze=Te.range,Ae=Ne.range,Ue=ge.range,$e=qe.range,Qe=a(function(te){te.setUTCDate(1),te.setUTCHours(0,0,0,0)},function(te,xe){te.setUTCMonth(te.getUTCMonth()+xe)},function(te,xe){return xe.getUTCMonth()-te.getUTCMonth()+(xe.getUTCFullYear()-te.getUTCFullYear())*12},function(te){return te.getUTCMonth()}),De=Qe.range,He=a(function(te){te.setUTCMonth(0,1),te.setUTCHours(0,0,0,0)},function(te,xe){te.setUTCFullYear(te.getUTCFullYear()+xe)},function(te,xe){return xe.getUTCFullYear()-te.getUTCFullYear()},function(te){return te.getUTCFullYear()});He.every=function(te){return!isFinite(te=Math.floor(te))||!(te>0)?null:a(function(xe){xe.setUTCFullYear(Math.floor(xe.getUTCFullYear()/te)*te),xe.setUTCMonth(0,1),xe.setUTCHours(0,0,0,0)},function(xe,Ve){xe.setUTCFullYear(xe.getUTCFullYear()+Ve*te)})};var tr=He.range;e.timeDay=x,e.timeDays=_,e.timeFriday=D,e.timeFridays=Y,e.timeHour=m,e.timeHours=y,e.timeInterval=a,e.timeMillisecond=n,e.timeMilliseconds=i,e.timeMinute=h,e.timeMinutes=p,e.timeMonday=M,e.timeMondays=F,e.timeMonth=V,e.timeMonths=X,e.timeSaturday=P,e.timeSaturdays=O,e.timeSecond=c,e.timeSeconds=v,e.timeSunday=b,e.timeSundays=R,e.timeThursday=S,e.timeThursdays=N,e.timeTuesday=A,e.timeTuesdays=B,e.timeWednesday=k,e.timeWednesdays=H,e.timeWeek=b,e.timeWeeks=R,e.timeYear=W,e.timeYears=U,e.utcDay=K,e.utcDays=me,e.utcFriday=ge,e.utcFridays=Ue,e.utcHour=se,e.utcHours=oe,e.utcMillisecond=n,e.utcMilliseconds=i,e.utcMinute=$,e.utcMinutes=re,e.utcMonday=ue,e.utcMondays=Le,e.utcMonth=Qe,e.utcMonths=De,e.utcSaturday=qe,e.utcSaturdays=$e,e.utcSecond=c,e.utcSeconds=v,e.utcSunday=Me,e.utcSundays=ke,e.utcThursday=Ne,e.utcThursdays=Ae,e.utcTuesday=ce,e.utcTuesdays=Ce,e.utcWednesday=Te,e.utcWednesdays=ze,e.utcWeek=Me,e.utcWeeks=ke,e.utcYear=He,e.utcYears=tr,Object.defineProperty(e,"__esModule",{value:!0})})});var c0=G((Rd,G9)=>{(function(e,r){typeof Rd=="object"&&typeof G9!="undefined"?r(Rd,Sg()):(e=e||self,r(e.d3=e.d3||{},e.d3))})(Rd,function(e,r){"use strict";function t(ae){if(0<=ae.y&&ae.y<100){var pe=new Date(-1,ae.m,ae.d,ae.H,ae.M,ae.S,ae.L);return pe.setFullYear(ae.y),pe}return new Date(ae.y,ae.m,ae.d,ae.H,ae.M,ae.S,ae.L)}function a(ae){if(0<=ae.y&&ae.y<100){var pe=new Date(Date.UTC(-1,ae.m,ae.d,ae.H,ae.M,ae.S,ae.L));return pe.setUTCFullYear(ae.y),pe}return new Date(Date.UTC(ae.y,ae.m,ae.d,ae.H,ae.M,ae.S,ae.L))}function n(ae,pe,Re){return{y:ae,m:pe,d:Re,H:0,M:0,S:0,L:0}}function i(ae){var pe=ae.dateTime,Re=ae.date,Oe=ae.time,Zr=ae.periods,vt=ae.days,Dt=ae.shortDays,Ot=ae.months,ea=ae.shortMonths,Wt=v(Zr),Qa=h(Zr),wt=v(vt),Zt=h(vt),ra=v(Dt),ha=h(Dt),en=v(Ot),fa=h(Ot),pa=v(ea),ir=h(ea),it={a:mo,A:Ts,b:za,B:od,c:null,d:V,e:V,f:re,g:ge,G:ke,H:X,I:W,j:U,L:$,m:se,M:oe,p:t0,q:a0,Q:_r,s:br,S:K,u:me,U:ie,V:ue,w:ce,W:Te,x:null,X:null,y:Ne,Y:qe,Z:Le,"%":Ke},Jr={a:yo,A:sd,b:ud,B:fd,c:null,d:Ce,e:Ce,f:Qe,g:Ie,G:Be,H:ze,I:Ae,j:Ue,L:$e,m:De,M:He,p:vc,q:dc,Q:_r,s:br,S:tr,u:te,U:xe,V:cr,w:mr,W:le,x:null,X:null,y:ye,Y:Xe,Z:Ze,"%":Ke},dt={a:ma,A:zi,b:cl,B:oi,c:ca,d:S,e:S,f:H,g:b,G:w,H:P,I:P,j:D,L:B,m:k,M:R,p:ht,q:A,Q:Y,s:O,S:F,u:m,U:y,V:x,w:p,W:_,x:cc,X:Ra,y:b,Y:w,Z:M,"%":N};it.x=Pt(Re,it),it.X=Pt(Oe,it),it.c=Pt(pe,it),Jr.x=Pt(Re,Jr),Jr.X=Pt(Oe,Jr),Jr.c=Pt(pe,Jr);function Pt(Mr,Tr){return function(ot){var or=[],sn=-1,Mt=0,Ha=Mr.length,Oa,si,Ms;for(ot instanceof Date||(ot=new Date(+ot));++sn53)return null;"w"in or||(or.w=1),"Z"in or?(Mt=a(n(or.y,0,1)),Ha=Mt.getUTCDay(),Mt=Ha>4||Ha===0?r.utcMonday.ceil(Mt):r.utcMonday(Mt),Mt=r.utcDay.offset(Mt,(or.V-1)*7),or.y=Mt.getUTCFullYear(),or.m=Mt.getUTCMonth(),or.d=Mt.getUTCDate()+(or.w+6)%7):(Mt=t(n(or.y,0,1)),Ha=Mt.getDay(),Mt=Ha>4||Ha===0?r.timeMonday.ceil(Mt):r.timeMonday(Mt),Mt=r.timeDay.offset(Mt,(or.V-1)*7),or.y=Mt.getFullYear(),or.m=Mt.getMonth(),or.d=Mt.getDate()+(or.w+6)%7)}else("W"in or||"U"in or)&&("w"in or||(or.w="u"in or?or.u%7:"W"in or?1:0),Ha="Z"in or?a(n(or.y,0,1)).getUTCDay():t(n(or.y,0,1)).getDay(),or.m=0,or.d="W"in or?(or.w+6)%7+or.W*7-(Ha+5)%7:or.w+or.U*7-(Ha+6)%7);return"Z"in or?(or.H+=or.Z/100|0,or.M+=or.Z%100,a(or)):t(or)}}function lt(Mr,Tr,ot,or){for(var sn=0,Mt=Tr.length,Ha=ot.length,Oa,si;sn=Ha)return-1;if(Oa=Tr.charCodeAt(sn++),Oa===37){if(Oa=Tr.charAt(sn++),si=dt[Oa in l?Tr.charAt(sn++):Oa],!si||(or=si(Mr,ot,or))<0)return-1}else if(Oa!=ot.charCodeAt(or++))return-1}return or}function ht(Mr,Tr,ot){var or=Wt.exec(Tr.slice(ot));return or?(Mr.p=Qa[or[0].toLowerCase()],ot+or[0].length):-1}function ma(Mr,Tr,ot){var or=ra.exec(Tr.slice(ot));return or?(Mr.w=ha[or[0].toLowerCase()],ot+or[0].length):-1}function zi(Mr,Tr,ot){var or=wt.exec(Tr.slice(ot));return or?(Mr.w=Zt[or[0].toLowerCase()],ot+or[0].length):-1}function cl(Mr,Tr,ot){var or=pa.exec(Tr.slice(ot));return or?(Mr.m=ir[or[0].toLowerCase()],ot+or[0].length):-1}function oi(Mr,Tr,ot){var or=en.exec(Tr.slice(ot));return or?(Mr.m=fa[or[0].toLowerCase()],ot+or[0].length):-1}function ca(Mr,Tr,ot){return lt(Mr,pe,Tr,ot)}function cc(Mr,Tr,ot){return lt(Mr,Re,Tr,ot)}function Ra(Mr,Tr,ot){return lt(Mr,Oe,Tr,ot)}function mo(Mr){return Dt[Mr.getDay()]}function Ts(Mr){return vt[Mr.getDay()]}function za(Mr){return ea[Mr.getMonth()]}function od(Mr){return Ot[Mr.getMonth()]}function t0(Mr){return Zr[+(Mr.getHours()>=12)]}function a0(Mr){return 1+~~(Mr.getMonth()/3)}function yo(Mr){return Dt[Mr.getUTCDay()]}function sd(Mr){return vt[Mr.getUTCDay()]}function ud(Mr){return ea[Mr.getUTCMonth()]}function fd(Mr){return Ot[Mr.getUTCMonth()]}function vc(Mr){return Zr[+(Mr.getUTCHours()>=12)]}function dc(Mr){return 1+~~(Mr.getUTCMonth()/3)}return{format:function(Mr){var Tr=Pt(Mr+="",it);return Tr.toString=function(){return Mr},Tr},parse:function(Mr){var Tr=Ea(Mr+="",!1);return Tr.toString=function(){return Mr},Tr},utcFormat:function(Mr){var Tr=Pt(Mr+="",Jr);return Tr.toString=function(){return Mr},Tr},utcParse:function(Mr){var Tr=Ea(Mr+="",!0);return Tr.toString=function(){return Mr},Tr}}}var l={"-":"",_:" ",0:"0"},o=/^\s*\d+/,s=/^%/,u=/[\\^$*+?|[\]().{}]/g;function f(ae,pe,Re){var Oe=ae<0?"-":"",Zr=(Oe?-ae:ae)+"",vt=Zr.length;return Oe+(vt68?1900:2e3),Re+Oe[0].length):-1}function M(ae,pe,Re){var Oe=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(pe.slice(Re,Re+6));return Oe?(ae.Z=Oe[1]?0:-(Oe[2]+(Oe[3]||"00")),Re+Oe[0].length):-1}function A(ae,pe,Re){var Oe=o.exec(pe.slice(Re,Re+1));return Oe?(ae.q=Oe[0]*3-3,Re+Oe[0].length):-1}function k(ae,pe,Re){var Oe=o.exec(pe.slice(Re,Re+2));return Oe?(ae.m=Oe[0]-1,Re+Oe[0].length):-1}function S(ae,pe,Re){var Oe=o.exec(pe.slice(Re,Re+2));return Oe?(ae.d=+Oe[0],Re+Oe[0].length):-1}function D(ae,pe,Re){var Oe=o.exec(pe.slice(Re,Re+3));return Oe?(ae.m=0,ae.d=+Oe[0],Re+Oe[0].length):-1}function P(ae,pe,Re){var Oe=o.exec(pe.slice(Re,Re+2));return Oe?(ae.H=+Oe[0],Re+Oe[0].length):-1}function R(ae,pe,Re){var Oe=o.exec(pe.slice(Re,Re+2));return Oe?(ae.M=+Oe[0],Re+Oe[0].length):-1}function F(ae,pe,Re){var Oe=o.exec(pe.slice(Re,Re+2));return Oe?(ae.S=+Oe[0],Re+Oe[0].length):-1}function B(ae,pe,Re){var Oe=o.exec(pe.slice(Re,Re+3));return Oe?(ae.L=+Oe[0],Re+Oe[0].length):-1}function H(ae,pe,Re){var Oe=o.exec(pe.slice(Re,Re+6));return Oe?(ae.L=Math.floor(Oe[0]/1e3),Re+Oe[0].length):-1}function N(ae,pe,Re){var Oe=s.exec(pe.slice(Re,Re+1));return Oe?Re+Oe[0].length:-1}function Y(ae,pe,Re){var Oe=o.exec(pe.slice(Re));return Oe?(ae.Q=+Oe[0],Re+Oe[0].length):-1}function O(ae,pe,Re){var Oe=o.exec(pe.slice(Re));return Oe?(ae.s=+Oe[0],Re+Oe[0].length):-1}function V(ae,pe){return f(ae.getDate(),pe,2)}function X(ae,pe){return f(ae.getHours(),pe,2)}function W(ae,pe){return f(ae.getHours()%12||12,pe,2)}function U(ae,pe){return f(1+r.timeDay.count(r.timeYear(ae),ae),pe,3)}function $(ae,pe){return f(ae.getMilliseconds(),pe,3)}function re(ae,pe){return $(ae,pe)+"000"}function se(ae,pe){return f(ae.getMonth()+1,pe,2)}function oe(ae,pe){return f(ae.getMinutes(),pe,2)}function K(ae,pe){return f(ae.getSeconds(),pe,2)}function me(ae){var pe=ae.getDay();return pe===0?7:pe}function ie(ae,pe){return f(r.timeSunday.count(r.timeYear(ae)-1,ae),pe,2)}function Me(ae){var pe=ae.getDay();return pe>=4||pe===0?r.timeThursday(ae):r.timeThursday.ceil(ae)}function ue(ae,pe){return ae=Me(ae),f(r.timeThursday.count(r.timeYear(ae),ae)+(r.timeYear(ae).getDay()===4),pe,2)}function ce(ae){return ae.getDay()}function Te(ae,pe){return f(r.timeMonday.count(r.timeYear(ae)-1,ae),pe,2)}function Ne(ae,pe){return f(ae.getFullYear()%100,pe,2)}function ge(ae,pe){return ae=Me(ae),f(ae.getFullYear()%100,pe,2)}function qe(ae,pe){return f(ae.getFullYear()%1e4,pe,4)}function ke(ae,pe){var Re=ae.getDay();return ae=Re>=4||Re===0?r.timeThursday(ae):r.timeThursday.ceil(ae),f(ae.getFullYear()%1e4,pe,4)}function Le(ae){var pe=ae.getTimezoneOffset();return(pe>0?"-":(pe*=-1,"+"))+f(pe/60|0,"0",2)+f(pe%60,"0",2)}function Ce(ae,pe){return f(ae.getUTCDate(),pe,2)}function ze(ae,pe){return f(ae.getUTCHours(),pe,2)}function Ae(ae,pe){return f(ae.getUTCHours()%12||12,pe,2)}function Ue(ae,pe){return f(1+r.utcDay.count(r.utcYear(ae),ae),pe,3)}function $e(ae,pe){return f(ae.getUTCMilliseconds(),pe,3)}function Qe(ae,pe){return $e(ae,pe)+"000"}function De(ae,pe){return f(ae.getUTCMonth()+1,pe,2)}function He(ae,pe){return f(ae.getUTCMinutes(),pe,2)}function tr(ae,pe){return f(ae.getUTCSeconds(),pe,2)}function te(ae){var pe=ae.getUTCDay();return pe===0?7:pe}function xe(ae,pe){return f(r.utcSunday.count(r.utcYear(ae)-1,ae),pe,2)}function Ve(ae){var pe=ae.getUTCDay();return pe>=4||pe===0?r.utcThursday(ae):r.utcThursday.ceil(ae)}function cr(ae,pe){return ae=Ve(ae),f(r.utcThursday.count(r.utcYear(ae),ae)+(r.utcYear(ae).getUTCDay()===4),pe,2)}function mr(ae){return ae.getUTCDay()}function le(ae,pe){return f(r.utcMonday.count(r.utcYear(ae)-1,ae),pe,2)}function ye(ae,pe){return f(ae.getUTCFullYear()%100,pe,2)}function Ie(ae,pe){return ae=Ve(ae),f(ae.getUTCFullYear()%100,pe,2)}function Xe(ae,pe){return f(ae.getUTCFullYear()%1e4,pe,4)}function Be(ae,pe){var Re=ae.getUTCDay();return ae=Re>=4||Re===0?r.utcThursday(ae):r.utcThursday.ceil(ae),f(ae.getUTCFullYear()%1e4,pe,4)}function Ze(){return"+0000"}function Ke(){return"%"}function _r(ae){return+ae}function br(ae){return Math.floor(+ae/1e3)}var Pe;Je({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 Je(ae){return Pe=i(ae),e.timeFormat=Pe.format,e.timeParse=Pe.parse,e.utcFormat=Pe.utcFormat,e.utcParse=Pe.utcParse,Pe}var Ee="%Y-%m-%dT%H:%M:%S.%LZ";function je(ae){return ae.toISOString()}var dr=Date.prototype.toISOString?je:e.utcFormat(Ee);function hr(ae){var pe=new Date(ae);return isNaN(pe)?null:pe}var pr=+new Date("2000-01-01T00:00:00.000Z")?hr:e.utcParse(Ee);e.isoFormat=dr,e.isoParse=pr,e.timeFormatDefaultLocale=Je,e.timeFormatLocale=i,Object.defineProperty(e,"__esModule",{value:!0})})});var qg=G((zd,U9)=>{(function(e,r){typeof zd=="object"&&typeof U9!="undefined"?r(zd):(e=typeof globalThis!="undefined"?globalThis:e||self,r(e.d3=e.d3||{}))})(zd,(function(e){"use strict";function r(k){return Math.abs(k=Math.round(k))>=1e21?k.toLocaleString("en").replace(/,/g,""):k.toString(10)}function t(k,S){if((D=(k=S?k.toExponential(S-1):k.toExponential()).indexOf("e"))<0)return null;var D,P=k.slice(0,D);return[P.length>1?P[0]+P.slice(2):P,+k.slice(D+1)]}function a(k){return k=t(Math.abs(k)),k?k[1]:NaN}function n(k,S){return function(D,P){for(var R=D.length,F=[],B=0,H=k[0],N=0;R>0&&H>0&&(N+H+1>P&&(H=Math.max(1,P-N)),F.push(D.substring(R-=H,R+H)),!((N+=H+1)>P));)H=k[B=(B+1)%k.length];return F.reverse().join(S)}}function i(k){return function(S){return S.replace(/[0-9]/g,function(D){return k[+D]})}}var l=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function o(k){if(!(S=l.exec(k)))throw new Error("invalid format: "+k);var S;return new s({fill:S[1],align:S[2],sign:S[3],symbol:S[4],zero:S[5],width:S[6],comma:S[7],precision:S[8]&&S[8].slice(1),trim:S[9],type:S[10]})}o.prototype=s.prototype;function s(k){this.fill=k.fill===void 0?" ":k.fill+"",this.align=k.align===void 0?">":k.align+"",this.sign=k.sign===void 0?"-":k.sign+"",this.symbol=k.symbol===void 0?"":k.symbol+"",this.zero=!!k.zero,this.width=k.width===void 0?void 0:+k.width,this.comma=!!k.comma,this.precision=k.precision===void 0?void 0:+k.precision,this.trim=!!k.trim,this.type=k.type===void 0?"":k.type+""}s.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 u(k){e:for(var S=k.length,D=1,P=-1,R;D0&&(P=0);break}return P>0?k.slice(0,P)+k.slice(R+1):k}var f;function c(k,S){var D=t(k,S);if(!D)return k+"";var P=D[0],R=D[1],F=R-(f=Math.max(-8,Math.min(8,Math.floor(R/3)))*3)+1,B=P.length;return F===B?P:F>B?P+new Array(F-B+1).join("0"):F>0?P.slice(0,F)+"."+P.slice(F):"0."+new Array(1-F).join("0")+t(k,Math.max(0,S+F-1))[0]}function v(k,S){var D=t(k,S);if(!D)return k+"";var P=D[0],R=D[1];return R<0?"0."+new Array(-R).join("0")+P:P.length>R+1?P.slice(0,R+1)+"."+P.slice(R+1):P+new Array(R-P.length+2).join("0")}var h={"%":function(k,S){return(k*100).toFixed(S)},b:function(k){return Math.round(k).toString(2)},c:function(k){return k+""},d:r,e:function(k,S){return k.toExponential(S)},f:function(k,S){return k.toFixed(S)},g:function(k,S){return k.toPrecision(S)},o:function(k){return Math.round(k).toString(8)},p:function(k,S){return v(k*100,S)},r:v,s:c,X:function(k){return Math.round(k).toString(16).toUpperCase()},x:function(k){return Math.round(k).toString(16)}};function p(k){return k}var m=Array.prototype.map,y=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function x(k){var S=k.grouping===void 0||k.thousands===void 0?p:n(m.call(k.grouping,Number),k.thousands+""),D=k.currency===void 0?"":k.currency[0]+"",P=k.currency===void 0?"":k.currency[1]+"",R=k.decimal===void 0?".":k.decimal+"",F=k.numerals===void 0?p:i(m.call(k.numerals,String)),B=k.percent===void 0?"%":k.percent+"",H=k.minus===void 0?"-":k.minus+"",N=k.nan===void 0?"NaN":k.nan+"";function Y(V){V=o(V);var X=V.fill,W=V.align,U=V.sign,$=V.symbol,re=V.zero,se=V.width,oe=V.comma,K=V.precision,me=V.trim,ie=V.type;ie==="n"?(oe=!0,ie="g"):h[ie]||(K===void 0&&(K=12),me=!0,ie="g"),(re||X==="0"&&W==="=")&&(re=!0,X="0",W="=");var Me=$==="$"?D:$==="#"&&/[boxX]/.test(ie)?"0"+ie.toLowerCase():"",ue=$==="$"?P:/[%p]/.test(ie)?B:"",ce=h[ie],Te=/[defgprs%]/.test(ie);K=K===void 0?6:/[gprs]/.test(ie)?Math.max(1,Math.min(21,K)):Math.max(0,Math.min(20,K));function Ne(ge){var qe=Me,ke=ue,Le,Ce,ze;if(ie==="c")ke=ce(ge)+ke,ge="";else{ge=+ge;var Ae=ge<0||1/ge<0;if(ge=isNaN(ge)?N:ce(Math.abs(ge),K),me&&(ge=u(ge)),Ae&&+ge==0&&U!=="+"&&(Ae=!1),qe=(Ae?U==="("?U:H:U==="-"||U==="("?"":U)+qe,ke=(ie==="s"?y[8+f/3]:"")+ke+(Ae&&U==="("?")":""),Te){for(Le=-1,Ce=ge.length;++Leze||ze>57){ke=(ze===46?R+ge.slice(Le+1):ge.slice(Le))+ke,ge=ge.slice(0,Le);break}}}oe&&!re&&(ge=S(ge,1/0));var Ue=qe.length+ge.length+ke.length,$e=Ue>1)+qe+ge+ke+$e.slice(Ue);break;default:ge=$e+qe+ge+ke;break}return F(ge)}return Ne.toString=function(){return V+""},Ne}function O(V,X){var W=Y((V=o(V),V.type="f",V)),U=Math.max(-8,Math.min(8,Math.floor(a(X)/3)))*3,$=Math.pow(10,-U),re=y[8+U/3];return function(se){return W($*se)+re}}return{format:Y,formatPrefix:O}}var _;w({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function w(k){return _=x(k),e.format=_.format,e.formatPrefix=_.formatPrefix,_}function b(k){return Math.max(0,-a(Math.abs(k)))}function M(k,S){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(a(S)/3)))*3-a(Math.abs(k)))}function A(k,S){return k=Math.abs(k),S=Math.abs(S)-k,Math.max(0,a(S)-a(k))+1}e.FormatSpecifier=s,e.formatDefaultLocale=w,e.formatLocale=x,e.formatSpecifier=o,e.precisionFixed=b,e.precisionPrefix=M,e.precisionRound=A,Object.defineProperty(e,"__esModule",{value:!0})}))});var X9=G((cTe,V9)=>{"use strict";V9.exports=function(e){for(var r=e.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}});var Gr=G((vTe,W9)=>{"use strict";var Rj=X9();W9.exports=function(e){var r=typeof e;if(r==="string"){var t=e;if(e=+e,e===0&&Rj(t))return!1}else if(r!=="number")return!1;return e-e<1}});var Nt={};pt(Nt,{ALMOST_EQUAL:()=>Qj,BADNUM:()=>Dg,EPOCHJD:()=>jj,FP_SAFE:()=>zj,LOG_CLIP:()=>eQ,MINUS_SIGN:()=>rQ,ONEAVGMONTH:()=>Gj,ONEAVGQUARTER:()=>Hj,ONEAVGYEAR:()=>Nj,ONEDAY:()=>Xj,ONEHOUR:()=>Wj,ONEMAXMONTH:()=>Yj,ONEMAXQUARTER:()=>Bj,ONEMAXYEAR:()=>Fj,ONEMICROSEC:()=>Kj,ONEMILLI:()=>$j,ONEMIN:()=>Zj,ONEMINMONTH:()=>Uj,ONEMINQUARTER:()=>Oj,ONEMINYEAR:()=>Ij,ONESEC:()=>Jj,ONEWEEK:()=>Vj});var Dg,zj,Fj,Nj,Ij,Bj,Hj,Oj,Yj,Gj,Uj,Vj,Xj,Wj,Zj,Jj,$j,Kj,jj,Qj,eQ,rQ,Rt=Cr(()=>{"use strict";Dg=void 0,zj=Number.MAX_VALUE*1e-4,Fj=316224e5,Nj=315576e5,Ij=31536e6,Bj=79488e5,Hj=78894e5,Oj=76896e5,Yj=26784e5,Gj=26298e5,Uj=24192e5,Vj=6048e5,Xj=864e5,Wj=36e5,Zj=6e4,Jj=1e3,$j=1,Kj=.001,jj=24405875e-1,Qj=1-1e-6,eQ=10,rQ="\u2212"});var Pg=G((Fd,Z9)=>{(function(e,r){typeof Fd=="object"&&typeof Z9!="undefined"?r(Fd):(e=typeof globalThis!="undefined"?globalThis:e||self,r(e["base64-arraybuffer"]={}))})(Fd,(function(e){"use strict";for(var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),a=0;a>2],f+=r[(o[s]&3)<<4|o[s+1]>>4],f+=r[(o[s+1]&15)<<2|o[s+2]>>6],f+=r[o[s+2]&63];return u%3===2?f=f.substring(0,f.length-1)+"=":u%3===1&&(f=f.substring(0,f.length-2)+"=="),f},i=function(l){var o=l.length*.75,s=l.length,u,f=0,c,v,h,p;l[l.length-1]==="="&&(o--,l[l.length-2]==="="&&o--);var m=new ArrayBuffer(o),y=new Uint8Array(m);for(u=0;u>4,y[f++]=(v&15)<<4|h>>2,y[f++]=(h&3)<<6|p&63;return m};e.decode=i,e.encode=n,Object.defineProperty(e,"__esModule",{value:!0})}))});var qs=G((dTe,J9)=>{"use strict";J9.exports=function(r){return window&&window.process&&window.process.versions?Object.prototype.toString.call(r)==="[object Object]":Object.prototype.toString.call(r)==="[object Object]"&&Object.getPrototypeOf(r).hasOwnProperty("hasOwnProperty")}});var Sn=G(Ii=>{"use strict";var tQ=Pg().decode,aQ=qs(),Eg=Array.isArray,nQ=ArrayBuffer,iQ=DataView;function $9(e){return nQ.isView(e)&&!(e instanceof iQ)}Ii.isTypedArray=$9;function Nd(e){return Eg(e)||$9(e)}Ii.isArrayOrTypedArray=Nd;function lQ(e){return!Nd(e[0])}Ii.isArray1D=lQ;Ii.ensureArray=function(e,r){return Eg(e)||(e=[]),e.length=r,e};var Fa={u1c:typeof Uint8ClampedArray=="undefined"?void 0:Uint8ClampedArray,i1:typeof Int8Array=="undefined"?void 0:Int8Array,u1:typeof Uint8Array=="undefined"?void 0:Uint8Array,i2:typeof Int16Array=="undefined"?void 0:Int16Array,u2:typeof Uint16Array=="undefined"?void 0:Uint16Array,i4:typeof Int32Array=="undefined"?void 0:Int32Array,u4:typeof Uint32Array=="undefined"?void 0:Uint32Array,f4:typeof Float32Array=="undefined"?void 0:Float32Array,f8:typeof Float64Array=="undefined"?void 0:Float64Array};Fa.uint8c=Fa.u1c;Fa.uint8=Fa.u1;Fa.int8=Fa.i1;Fa.uint16=Fa.u2;Fa.int16=Fa.i2;Fa.uint32=Fa.u4;Fa.int32=Fa.i4;Fa.float32=Fa.f4;Fa.float64=Fa.f8;function Rg(e){return e.constructor===ArrayBuffer}Ii.isArrayBuffer=Rg;Ii.decodeTypedArraySpec=function(e){var r=[],t=oQ(e),a=t.dtype,n=Fa[a];if(!n)throw new Error('Error in dtype: "'+a+'"');var i=n.BYTES_PER_ELEMENT,l=t.bdata;Rg(l)||(l=tQ(l));var o=t.shape===void 0?[l.byteLength/i]:(""+t.shape).split(",");o.reverse();var s=o.length,u,f,c=+o[0],v=i*c,h=0;if(s===1)r=new n(l);else if(s===2)for(u=+o[1],f=0;f{"use strict";var j9=Gr(),Fg=Sn().isArrayOrTypedArray;tw.exports=function(r,t){if(j9(t))t=String(t);else if(typeof t!="string"||t.slice(-4)==="[-1]")throw"bad property string";var a=t.split("."),n,i,l,o;for(o=0;o{"use strict";var v0=Id(),vQ=/^\w*$/,dQ=0,aw=1,Bd=2,nw=3,Ds=4;iw.exports=function(r,t,a,n){a=a||"name",n=n||"value";var i,l,o,s={};t&&t.length?(o=v0(r,t),l=o.get()):l=r,t=t||"";var u={};if(l)for(i=0;i2)return s[h]=s[h]|Bd,c.set(v,null);if(f){for(i=h;i{"use strict";var hQ=/^(.*)(\.[^\.\[\]]+|\[\d\])$/,pQ=/^[^\.\[\]]+$/;ow.exports=function(e,r){for(;r;){var t=e.match(hQ);if(t)e=t[1];else if(e.match(pQ))e="";else throw new Error("bad relativeAttr call:"+[e,r]);if(r.charAt(0)==="^")r=r.slice(1);else break}return e&&r.charAt(0)!=="["?e+"."+r:e+r}});var Hd=G((gTe,uw)=>{"use strict";var mQ=Gr();uw.exports=function(r,t){if(r>0)return Math.log(r)/Math.LN10;var a=Math.log(Math.min(t[0],t[1]))/Math.LN10;return mQ(a)||(a=Math.log(Math.max(t[0],t[1]))/Math.LN10-6),a}});var vw=G((xTe,cw)=>{"use strict";var fw=Sn().isArrayOrTypedArray,Ac=qs();cw.exports=function e(r,t){for(var a in t){var n=t[a],i=r[a];if(i!==n)if(a.charAt(0)==="_"||typeof n=="function"){if(a in r)continue;r[a]=n}else if(fw(n)&&fw(i)&&Ac(n[0])){if(a==="customdata"||a==="ids")continue;for(var l=Math.min(n.length,i.length),o=0;oyQ,modHalf:()=>gQ});function yQ(e,r){let t=e%r;return t<0?t+r:t}function gQ(e,r){return Math.abs(e)>r/2?e-Math.round(e/r)*r:e}var h0=Cr(()=>{"use strict"});var At=G(Cc=>{"use strict";var dw=qs(),kc=Array.isArray;function xQ(e,r){var t,a;for(t=0;t{"use strict";hw.exports=function(e){var r=e.variantValues,t=e.editType,a=e.colorEditType;a===void 0&&(a=t);var n={editType:t,valType:"integer",min:1,max:1e3,extras:["normal","bold"],dflt:"normal"};e.noNumericWeightValues&&(n.valType="enumerated",n.values=n.extras,n.extras=void 0,n.min=void 0,n.max=void 0);var i={family:{valType:"string",noBlank:!0,strict:!0,editType:t},size:{valType:"number",min:1,editType:t},color:{valType:"color",editType:a},weight:n,style:{editType:t,valType:"enumerated",values:["normal","italic"],dflt:"normal"},variant:e.noFontVariant?void 0:{editType:t,valType:"enumerated",values:r||["normal","small-caps","all-small-caps","all-petite-caps","petite-caps","unicase"],dflt:"normal"},textcase:e.noFontTextcase?void 0:{editType:t,valType:"enumerated",values:["normal","word caps","upper","lower"],dflt:"normal"},lineposition:e.noFontLineposition?void 0:{editType:t,valType:"flaglist",flags:["under","over","through"],extras:["none"],dflt:"none"},shadow:e.noFontShadow?void 0:{editType:t,valType:"string",dflt:e.autoShadowDflt?"auto":"none"},editType:t};return e.autoSize&&(i.size.dflt="auto"),e.autoColor&&(i.color.dflt="auto"),e.arrayOk&&(i.family.arrayOk=!0,i.weight.arrayOk=!0,i.style.arrayOk=!0,e.noFontVariant||(i.variant.arrayOk=!0),e.noFontTextcase||(i.textcase.arrayOk=!0),e.noFontLineposition||(i.lineposition.arrayOk=!0),e.noFontShadow||(i.shadow.arrayOk=!0),i.size.arrayOk=!0,i.color.arrayOk=!0),i}});var Sc={};pt(Sc,{HOVERARROWSIZE:()=>_Q,HOVERFONT:()=>MQ,HOVERFONTSIZE:()=>TQ,HOVERID:()=>kQ,HOVERMINTIME:()=>AQ,HOVERTEXTPAD:()=>wQ,YANGLE:()=>bQ});var bQ,_Q,wQ,TQ,MQ,AQ,kQ,qc=Cr(()=>{"use strict";bQ=60,_Q=6,wQ=3,TQ=13,MQ="Arial, sans-serif",AQ=50,kQ="-hover"});var p0=G((wTe,yw)=>{"use strict";var pw=(qc(),Fe(Sc)),mw=Ta(),Ng=mw({editType:"none"});Ng.family.dflt=pw.HOVERFONT;Ng.size.dflt=pw.HOVERFONTSIZE;yw.exports={clickmode:{valType:"flaglist",flags:["event","select"],dflt:"event",editType:"plot",extras:["none"]},dragmode:{valType:"enumerated",values:["zoom","pan","select","lasso","drawclosedpath","drawopenpath","drawline","drawrect","drawcircle","orbit","turntable",!1],dflt:"zoom",editType:"modebar"},hovermode:{valType:"enumerated",values:["x","y","closest",!1,"x unified","y unified"],dflt:"closest",editType:"modebar"},hoversort:{valType:"enumerated",values:["trace","value descending","value ascending"],dflt:"trace",editType:"none"},hoversubplots:{valType:"enumerated",values:["single","overlaying","axis"],dflt:"overlaying",editType:"none"},hoveranywhere:{valType:"boolean",dflt:!1,editType:"none"},clickanywhere:{valType:"boolean",dflt:!1,editType:"none"},hoverdistance:{valType:"integer",min:-1,dflt:20,editType:"none"},spikedistance:{valType:"integer",min:-1,dflt:-1,editType:"none"},hoverlabel:{bgcolor:{valType:"color",editType:"none"},bordercolor:{valType:"color",editType:"none"},font:Ng,grouptitlefont:mw({editType:"none"}),align:{valType:"enumerated",values:["left","right","auto"],dflt:"auto",editType:"none"},namelength:{valType:"integer",min:-1,dflt:15,editType:"none"},showarrow:{valType:"boolean",dflt:!0,editType:"none"},editType:"none"},selectdirection:{valType:"enumerated",values:["h","v","d","any"],dflt:"any",editType:"none"}}});var Ec=G((TTe,gw)=>{"use strict";var LQ=Ta(),Dc=p0().hoverlabel,Pc=At().extendFlat;gw.exports={hoverlabel:{bgcolor:Pc({},Dc.bgcolor,{arrayOk:!0}),bordercolor:Pc({},Dc.bordercolor,{arrayOk:!0}),font:LQ({arrayOk:!0,editType:"none"}),align:Pc({},Dc.align,{arrayOk:!0}),namelength:Pc({},Dc.namelength,{arrayOk:!0}),showarrow:Pc({},Dc.showarrow),editType:"none"}}});var qn=G((MTe,xw)=>{"use strict";var CQ=Ta(),SQ=Ec();xw.exports={type:{valType:"enumerated",values:[],dflt:"scatter",editType:"calc+clearAxisTypes",_noTemplating:!0},visible:{valType:"enumerated",values:[!0,!1,"legendonly"],dflt:!0,editType:"calc"},showlegend:{valType:"boolean",dflt:!0,editType:"style"},legend:{valType:"subplotid",dflt:"legend",editType:"style"},legendgroup:{valType:"string",dflt:"",editType:"style"},legendgrouptitle:{text:{valType:"string",dflt:"",editType:"style"},font:CQ({editType:"style"}),editType:"style"},legendrank:{valType:"number",dflt:1e3,editType:"style"},legendwidth:{valType:"number",min:0,editType:"style"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"style"},name:{valType:"string",editType:"style"},uid:{valType:"string",editType:"plot",anim:!0},ids:{valType:"data_array",editType:"calc",anim:!0},customdata:{valType:"data_array",editType:"calc"},meta:{valType:"any",arrayOk:!0,editType:"plot"},selectedpoints:{valType:"any",editType:"calc"},hoverinfo:{valType:"flaglist",flags:["x","y","z","text","name"],extras:["all","none","skip"],arrayOk:!0,dflt:"all",editType:"none"},hoverlabel:SQ.hoverlabel,uirevision:{valType:"any",editType:"none"}}});var cM=G((DTe,fM)=>{var S3=Object.defineProperty,qQ=Object.getOwnPropertyDescriptor,DQ=Object.getOwnPropertyNames,PQ=Object.prototype.hasOwnProperty,EQ=(e,r)=>{for(var t in r)S3(e,t,{get:r[t],enumerable:!0})},RQ=(e,r,t,a)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of DQ(r))!PQ.call(e,n)&&n!==t&&S3(e,n,{get:()=>r[n],enumerable:!(a=qQ(r,n))||a.enumerable});return e},zQ=e=>RQ(S3({},"__esModule",{value:!0}),e),Sw={};EQ(Sw,{a98:()=>kae,average:()=>Dee,averageAngle:()=>ml,averageNumber:()=>Xw,blend:()=>qte,blerp:()=>u3,clampChroma:()=>$te,clampGamut:()=>t5,clampRgb:()=>Jte,colorsNamed:()=>Dw,convertA98ToXyz65:()=>f3,convertCubehelixToRgb:()=>Uw,convertDlchToLab65:()=>Jd,convertHsiToRgb:()=>eT,convertHslToRgb:()=>aT,convertHsvToRgb:()=>z3,convertHwbToRgb:()=>oT,convertItpToXyz65:()=>v3,convertJabToJch:()=>h3,convertJabToRgb:()=>O3,convertJabToXyz65:()=>B3,convertJchToJab:()=>p3,convertLab65ToDlch:()=>$d,convertLab65ToRgb:()=>Oc,convertLab65ToXyz65:()=>P3,convertLabToLch:()=>Ol,convertLabToRgb:()=>G3,convertLabToXyz50:()=>lh,convertLchToLab:()=>Yl,convertLchuvToLuv:()=>X3,convertLrgbToOklab:()=>W3,convertLrgbToRgb:()=>Is,convertLuvToLchuv:()=>V3,convertLuvToXyz50:()=>jd,convertOkhslToOklab:()=>g3,convertOkhsvToOklab:()=>b3,convertOklabToLrgb:()=>T0,convertOklabToOkhsl:()=>y3,convertOklabToOkhsv:()=>x3,convertOklabToRgb:()=>Uc,convertP3ToXyz65:()=>_3,convertProphotoToXyz50:()=>M3,convertRec2020ToXyz65:()=>k3,convertRgbToCubehelix:()=>Gw,convertRgbToHsi:()=>rT,convertRgbToHsl:()=>nT,convertRgbToHsv:()=>F3,convertRgbToHwb:()=>sT,convertRgbToJab:()=>H3,convertRgbToLab:()=>U3,convertRgbToLab65:()=>Yc,convertRgbToLrgb:()=>Ns,convertRgbToOklab:()=>Gc,convertRgbToXyb:()=>FT,convertRgbToXyz50:()=>w0,convertRgbToXyz65:()=>bo,convertRgbToYiq:()=>GT,convertXybToRgb:()=>NT,convertXyz50ToLab:()=>oh,convertXyz50ToLuv:()=>Kd,convertXyz50ToProphoto:()=>T3,convertXyz50ToRgb:()=>_0,convertXyz50ToXyz65:()=>OT,convertXyz65ToA98:()=>c3,convertXyz65ToItp:()=>d3,convertXyz65ToJab:()=>I3,convertXyz65ToLab65:()=>E3,convertXyz65ToP3:()=>w3,convertXyz65ToRec2020:()=>A3,convertXyz65ToRgb:()=>_o,convertXyz65ToXyz50:()=>HT,convertYiqToRgb:()=>UT,converter:()=>kt,cubehelix:()=>Lae,differenceCie76:()=>Mee,differenceCie94:()=>Aee,differenceCiede2000:()=>kee,differenceCmc:()=>Lee,differenceEuclidean:()=>b0,differenceHueChroma:()=>Hc,differenceHueNaive:()=>Vw,differenceHueSaturation:()=>Bc,differenceHyab:()=>Cee,differenceItp:()=>qee,differenceKotsarenkoRamos:()=>See,displayable:()=>r5,dlab:()=>Cae,dlch:()=>Sae,easingGamma:()=>iM,easingInOutSine:()=>Mae,easingMidpoint:()=>jT,easingSmootherstep:()=>wae,easingSmoothstep:()=>xae,easingSmoothstepInverse:()=>bae,filterBrightness:()=>iae,filterContrast:()=>lae,filterDeficiencyDeuter:()=>yae,filterDeficiencyProt:()=>mae,filterDeficiencyTrit:()=>gae,filterGrayscale:()=>uae,filterHueRotate:()=>cae,filterInvert:()=>fae,filterSaturate:()=>sae,filterSepia:()=>oae,fixupAlpha:()=>Aa,fixupHueDecreasing:()=>xee,fixupHueIncreasing:()=>gee,fixupHueLonger:()=>yee,fixupHueShorter:()=>pl,formatCss:()=>Tte,formatHex:()=>Mte,formatHex8:()=>Ate,formatHsl:()=>Lte,formatRgb:()=>kte,getMode:()=>cn,hsi:()=>qae,hsl:()=>Dae,hsv:()=>Pae,hwb:()=>Eae,inGamut:()=>fh,interpolate:()=>Bte,interpolateWith:()=>eM,interpolateWithPremultipliedAlpha:()=>Hte,interpolatorLinear:()=>xr,interpolatorPiecewise:()=>Ow,interpolatorSplineBasis:()=>tM,interpolatorSplineBasisClosed:()=>aM,interpolatorSplineMonotone:()=>Gte,interpolatorSplineMonotone2:()=>Ute,interpolatorSplineMonotoneClosed:()=>Vte,interpolatorSplineNatural:()=>Ote,interpolatorSplineNaturalClosed:()=>Yte,itp:()=>Rae,jab:()=>zae,jch:()=>Fae,lab:()=>Nae,lab65:()=>Iae,lch:()=>Bae,lch65:()=>Hae,lchuv:()=>Oae,lerp:()=>Es,lrgb:()=>Yae,luv:()=>Gae,mapAlphaDivide:()=>KT,mapAlphaMultiply:()=>$T,mapTransferGamma:()=>zte,mapTransferLinear:()=>j3,mapper:()=>Vc,modeA98:()=>Yw,modeCubehelix:()=>Ww,modeDlab:()=>jw,modeDlch:()=>Qw,modeHsi:()=>tT,modeHsl:()=>R3,modeHsv:()=>N3,modeHwb:()=>fT,modeItp:()=>dT,modeJab:()=>hT,modeJch:()=>pT,modeLab:()=>sh,modeLab65:()=>yT,modeLch:()=>uh,modeLch65:()=>xT,modeLchuv:()=>wT,modeLrgb:()=>TT,modeLuv:()=>MT,modeOkhsl:()=>kT,modeOkhsv:()=>LT,modeOklab:()=>ST,modeOklch:()=>DT,modeP3:()=>PT,modeProphoto:()=>ET,modeRec2020:()=>RT,modeRgb:()=>Fs,modeXyb:()=>IT,modeXyz50:()=>BT,modeXyz65:()=>YT,modeYiq:()=>VT,nearest:()=>Qte,okhsl:()=>Uae,okhsv:()=>Vae,oklab:()=>Xae,oklch:()=>Wae,p3:()=>Zae,parse:()=>Iw,parseHex:()=>Ew,parseHsl:()=>lT,parseHslLegacy:()=>iT,parseHwb:()=>uT,parseLab:()=>mT,parseLch:()=>gT,parseNamed:()=>Pw,parseOklab:()=>CT,parseOklch:()=>qT,parseRgb:()=>Bw,parseRgbLegacy:()=>Rw,parseTransparent:()=>Hw,prophoto:()=>Jae,random:()=>Rte,rec2020:()=>$ae,removeParser:()=>JQ,rgb:()=>Kae,round:()=>XT,samples:()=>Zte,serializeHex:()=>K3,serializeHex8:()=>WT,serializeHsl:()=>JT,serializeRgb:()=>ZT,toGamut:()=>Kte,trilerp:()=>lee,unlerp:()=>iee,useMode:()=>mt,useParser:()=>Fw,wcagContrast:()=>Aae,wcagLuminance:()=>C3,xyb:()=>jae,xyz50:()=>Qae,xyz65:()=>ene,yiq:()=>rne});fM.exports=zQ(Sw);var FQ=(e,r)=>{if(typeof e=="number"){if(r===3)return{mode:"rgb",r:(e>>8&15|e>>4&240)/255,g:(e>>4&15|e&240)/255,b:(e&15|e<<4&240)/255};if(r===4)return{mode:"rgb",r:(e>>12&15|e>>8&240)/255,g:(e>>8&15|e>>4&240)/255,b:(e>>4&15|e&240)/255,alpha:(e&15|e<<4&240)/255};if(r===6)return{mode:"rgb",r:(e>>16&255)/255,g:(e>>8&255)/255,b:(e&255)/255};if(r===8)return{mode:"rgb",r:(e>>24&255)/255,g:(e>>16&255)/255,b:(e>>8&255)/255,alpha:(e&255)/255}}},qw=FQ,NQ={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},Dw=NQ,IQ=e=>qw(Dw[e.toLowerCase()],6),Pw=IQ,BQ=/^#?([0-9a-f]{8}|[0-9a-f]{6}|[0-9a-f]{4}|[0-9a-f]{3})$/i,HQ=e=>{let r;return(r=e.match(BQ))?qw(parseInt(r[1],16),r[1].length):void 0},Ew=HQ,Dn="([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)",ATe=`(?:${Dn}|none)`,Fc=`${Dn}%`,kTe=`(?:${Dn}%|none)`,q3=`(?:${Dn}%|${Dn})`,OQ=`(?:${Dn}%|${Dn}|none)`,YQ=`(?:${Dn}(deg|grad|rad|turn)|${Dn})`,LTe=`(?:${Dn}(deg|grad|rad|turn)|${Dn}|none)`,g0="\\s*,\\s*",CTe=new RegExp("^"+OQ+"$"),GQ=new RegExp(`^rgba?\\(\\s*${Dn}${g0}${Dn}${g0}${Dn}\\s*(?:,\\s*${q3}\\s*)?\\)$`),UQ=new RegExp(`^rgba?\\(\\s*${Fc}${g0}${Fc}${g0}${Fc}\\s*(?:,\\s*${q3}\\s*)?\\)$`),VQ=e=>{let r={mode:"rgb"},t;if(t=e.match(GQ))t[1]!==void 0&&(r.r=t[1]/255),t[2]!==void 0&&(r.g=t[2]/255),t[3]!==void 0&&(r.b=t[3]/255);else if(t=e.match(UQ))t[1]!==void 0&&(r.r=t[1]/100),t[2]!==void 0&&(r.g=t[2]/100),t[3]!==void 0&&(r.b=t[3]/100);else return;return t[4]!==void 0?r.alpha=Math.max(0,Math.min(1,t[4]/100)):t[5]!==void 0&&(r.alpha=Math.max(0,Math.min(1,+t[5]))),r},Rw=VQ,XQ=(e,r)=>e===void 0?void 0:typeof e!="object"?Iw(e):e.mode!==void 0?e:r?Et(ct({},e),{mode:r}):void 0,Bi=XQ,WQ=(e="rgb")=>r=>(r=Bi(r,e))!==void 0?r.mode===e?r:hl[r.mode][e]?hl[r.mode][e](r):e==="rgb"?hl[r.mode].rgb(r):hl.rgb[e](hl[r.mode].rgb(r)):void 0,kt=WQ,hl={},zw={},x0=[],D3={},ZQ=e=>e,mt=e=>(hl[e.mode]=ct(ct({},hl[e.mode]),e.toMode),Object.keys(e.fromMode||{}).forEach(r=>{hl[r]||(hl[r]={}),hl[r][e.mode]=e.fromMode[r]}),e.ranges||(e.ranges={}),e.difference||(e.difference={}),e.channels.forEach(r=>{if(e.ranges[r]===void 0&&(e.ranges[r]=[0,1]),!e.interpolate[r])throw new Error(`Missing interpolator for: ${r}`);typeof e.interpolate[r]=="function"&&(e.interpolate[r]={use:e.interpolate[r]}),e.interpolate[r].fixup||(e.interpolate[r].fixup=ZQ)}),zw[e.mode]=e,(e.parse||[]).forEach(r=>{Fw(r,e.mode)}),kt(e.mode)),cn=e=>zw[e],Fw=(e,r)=>{if(typeof e=="string"){if(!r)throw new Error("'mode' required when 'parser' is a string");D3[e]=r}else typeof e=="function"&&x0.indexOf(e)<0&&x0.push(e)},JQ=e=>{if(typeof e=="string")delete D3[e];else if(typeof e=="function"){let r=x0.indexOf(e);r>0&&x0.splice(r,1)}},o3=/[^\x00-\x7F]|[a-zA-Z_]/,$Q=/[^\x00-\x7F]|[-\w]/,fr={Function:"function",Ident:"ident",Number:"number",Percentage:"percentage",ParenClose:")",None:"none",Hue:"hue",Alpha:"alpha"},Or=0;function Od(e){let r=e[Or],t=e[Or+1];return r==="-"||r==="+"?/\d/.test(t)||t==="."&&/\d/.test(e[Or+2]):r==="."?/\d/.test(t):/\d/.test(r)}function s3(e){if(Or>=e.length)return!1;let r=e[Or];if(o3.test(r))return!0;if(r==="-"){if(e.length-Or<2)return!1;let t=e[Or+1];return!!(t==="-"||o3.test(t))}return!1}var KQ={deg:1,rad:180/Math.PI,grad:9/10,turn:360};function Rc(e){let r="";if((e[Or]==="-"||e[Or]==="+")&&(r+=e[Or++]),r+=Yd(e),e[Or]==="."&&/\d/.test(e[Or+1])&&(r+=e[Or++]+Yd(e)),(e[Or]==="e"||e[Or]==="E")&&((e[Or+1]==="-"||e[Or+1]==="+")&&/\d/.test(e[Or+2])?r+=e[Or++]+e[Or++]+Yd(e):/\d/.test(e[Or+1])&&(r+=e[Or++]+Yd(e))),s3(e)){let t=Vd(e);return t==="deg"||t==="rad"||t==="turn"||t==="grad"?{type:fr.Hue,value:r*KQ[t]}:void 0}return e[Or]==="%"?(Or++,{type:fr.Percentage,value:+r}):{type:fr.Number,value:+r}}function Yd(e){let r="";for(;/\d/.test(e[Or]);)r+=e[Or++];return r}function Vd(e){let r="";for(;Or4)){if(t.length===4){if(t[3].type!==vr.Alpha)return;t[3]=t[3].value}return t.length===3&&t.push({type:vr.None,value:void 0}),t.every(n=>n.type!==vr.Alpha)?t:void 0}}function $Q(e,r){e._i=0;let t=e[e._i++];if(!t||t.type!==vr.Function)return;let a=qw(e,r);if(a)return a.unshift(t.value),a}var KQ=e=>{if(typeof e!="string")return;let r=ZQ(e),t=r?$Q(r,!0):void 0,a,n=0,i=h0.length;for(;ne==="transparent"?{mode:"rgb",r:0,g:0,b:0,alpha:0}:void 0,Ew=QQ,Cs=(e,r,t)=>e+t*(r-e),eee=(e,r,t)=>(t-e)/(r-e),i3=(e,r,t,a,n,i)=>Cs(Cs(e,r,n),Cs(t,a,n),i),ree=(e,r,t,a,n,i,l,o,s,u,f)=>Cs(i3(e,r,t,a,s,u),i3(n,i,l,o,s,u),f),tee=e=>{let r=[];for(let t=0;tr=>{let t=tee(r);return a=>{let n=a*t.length,i=a>=1?t.length-1:Math.max(Math.floor(n),0),l=t[i];return l===void 0?void 0:e(l[0],l[1],n-i)}},_r=Rw(Cs),_a=e=>{let r=!1,t=e.map(a=>a!==void 0?(r=!0,a):1);return r?t:e},aee={mode:"rgb",channels:["r","g","b","alpha"],parse:[Pw,kw,Cw,Aw,Ew,"srgb"],serialize:"srgb",interpolate:{r:_r,g:_r,b:_r,alpha:{use:_r,fixup:_a}},gamut:!0,white:{r:1,g:1,b:1},black:{r:0,g:0,b:0}},qs=aee,Rg=(e=0)=>Math.pow(Math.abs(e),563/256)*Math.sign(e),nee=e=>{let r=Rg(e.r),t=Rg(e.g),a=Rg(e.b),n={mode:"xyz65",x:.5766690429101305*r+.1855582379065463*t+.1882286462349947*a,y:.297344975250536*r+.6273635662554661*t+.0752914584939979*a,z:.0270313613864123*r+.0706888525358272*t+.9913375368376386*a};return e.alpha!==void 0&&(n.alpha=e.alpha),n},l3=nee,zg=e=>Math.pow(Math.abs(e),256/563)*Math.sign(e),iee=({x:e,y:r,z:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n={mode:"a98",r:zg(e*2.0415879038107465-r*.5650069742788597-.3447313507783297*t),g:zg(e*-.9692436362808798+r*1.8759675015077206+.0415550574071756*t),b:zg(e*.0134442806320312-r*.1183623922310184+1.0151749943912058*t)};return a!==void 0&&(n.alpha=a),n},o3=iee,Fg=(e=0)=>{let r=Math.abs(e);return r<=.04045?e/12.92:(Math.sign(e)||1)*Math.pow((r+.055)/1.055,2.4)},lee=({r:e,g:r,b:t,alpha:a})=>{let n={mode:"lrgb",r:Fg(e),g:Fg(r),b:Fg(t)};return a!==void 0&&(n.alpha=a),n},Ds=lee,oee=e=>{let{r,g:t,b:a,alpha:n}=Ds(e),i={mode:"xyz65",x:.4123907992659593*r+.357584339383878*t+.1804807884018343*a,y:.2126390058715102*r+.715168678767756*t+.0721923153607337*a,z:.0193308187155918*r+.119194779794626*t+.9505321522496607*a};return n!==void 0&&(i.alpha=n),i},ho=oee,Ng=(e=0)=>{let r=Math.abs(e);return r>.0031308?(Math.sign(e)||1)*(1.055*Math.pow(r,1/2.4)-.055):e*12.92},see=({r:e,g:r,b:t,alpha:a},n="rgb")=>{let i={mode:n,r:Ng(e),g:Ng(r),b:Ng(t)};return a!==void 0&&(i.alpha=a),i},Ps=see,uee=({x:e,y:r,z:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=Ps({r:e*3.2409699419045226-r*1.537383177570094-.4986107602930034*t,g:e*-.9692436362808796+r*1.8759675015077204+.0415550574071756*t,b:e*.0556300796969936-r*.2039769588889765+1.0569715142428784*t});return a!==void 0&&(n.alpha=a),n},po=uee,fee=Pt(ut({},qs),{mode:"a98",parse:["a98-rgb"],serialize:"a98-rgb",fromMode:{rgb:e=>o3(ho(e)),xyz65:o3},toMode:{rgb:e=>po(l3(e)),xyz65:l3}}),zw=fee,cee=e=>(e=e%360)<0?e+360:e,Za=cee,rh=(e,r)=>e.map((t,a,n)=>{if(t===void 0)return t;let i=Za(t);return a===0||e[a-1]===void 0?i:r(i-Za(n[a-1]))}).reduce((t,a)=>!t.length||a===void 0||t[t.length-1]===void 0?(t.push(a),t):(t.push(a+t[t.length-1]),t),[]),cl=e=>rh(e,r=>Math.abs(r)<=180?r:r-360*Math.sign(r)),vee=e=>rh(e,r=>Math.abs(r)>=180||r===0?r:r-360*Math.sign(r)),dee=e=>rh(e,r=>r>=0?r:r+360),hee=e=>rh(e,r=>r<=0?r:r-360),Ia=[-.14861,1.78277,-.29227,-.90649,1.97294,0],pee=Math.PI/180,mee=180/Math.PI,dw=Ia[3]*Ia[4],hw=Ia[1]*Ia[4],pw=Ia[1]*Ia[2]-Ia[0]*Ia[3],yee=({r:e,g:r,b:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=(pw*t+e*dw-r*hw)/(pw+dw-hw),i=t-n,l=(Ia[4]*(r-n)-Ia[2]*i)/Ia[3],o={mode:"cubehelix",l:n,s:n===0||n===1?void 0:Math.sqrt(i*i+l*l)/(Ia[4]*n*(1-n))};return o.s&&(o.h=Math.atan2(l,i)*mee-120),a!==void 0&&(o.alpha=a),o},Fw=yee,gee=({h:e,s:r,l:t,alpha:a})=>{let n={mode:"rgb"};e=(e===void 0?0:e+120)*pee,t===void 0&&(t=0);let i=r===void 0?0:r*t*(1-t),l=Math.cos(e),o=Math.sin(e);return n.r=t+i*(Ia[0]*l+Ia[1]*o),n.g=t+i*(Ia[2]*l+Ia[3]*o),n.b=t+i*(Ia[4]*l+Ia[5]*o),a!==void 0&&(n.alpha=a),n},Nw=gee,Ic=(e,r)=>{if(e.h===void 0||r.h===void 0||!e.s||!r.s)return 0;let t=Za(e.h),a=Za(r.h),n=Math.sin((a-t+360)/2*Math.PI/180);return 2*Math.sqrt(e.s*r.s)*n},Iw=(e,r)=>{if(e.h===void 0||r.h===void 0)return 0;let t=Za(e.h),a=Za(r.h);return Math.abs(a-t)>180?t-(a-360*Math.sign(a-t)):a-t},Bc=(e,r)=>{if(e.h===void 0||r.h===void 0||!e.c||!r.c)return 0;let t=Za(e.h),a=Za(r.h),n=Math.sin((a-t+360)/2*Math.PI/180);return 2*Math.sqrt(e.c*r.c)*n},p0=(e="rgb",r=[1,1,1,0])=>{let t=an(e),a=t.channels,n=t.difference,i=kt(e);return(l,o)=>{let s=i(l),u=i(o);return Math.sqrt(a.reduce((f,c,v)=>{let h=n[c]?n[c](s,u):s[c]-u[c];return f+(r[v]||0)*Math.pow(isNaN(h)?0:h,2)},0))}},xee=()=>p0("lab65"),bee=(e=1,r=.045,t=.015)=>{let a=kt("lab65");return(n,i)=>{let l=a(n),o=a(i),s=l.l,u=l.a,f=l.b,c=Math.sqrt(u*u+f*f),v=o.l,h=o.a,p=o.b,y=Math.sqrt(h*h+p*p),m=Math.pow(s-v,2),b=Math.pow(c-y,2),_=Math.pow(u-h,2)+Math.pow(f-p,2)-b;return Math.sqrt(m/Math.pow(e,2)+b/Math.pow(1+r*c,2)+_/Math.pow(1+t*c,2))}},_ee=(e=1,r=1,t=1)=>{let a=kt("lab65");return(n,i)=>{let l=a(n),o=a(i),s=l.l,u=l.a,f=l.b,c=Math.sqrt(u*u+f*f),v=o.l,h=o.a,p=o.b,y=Math.sqrt(h*h+p*p),m=(c+y)/2,b=.5*(1-Math.sqrt(Math.pow(m,7)/(Math.pow(m,7)+Math.pow(25,7)))),_=u*(1+b),w=h*(1+b),x=Math.sqrt(_*_+f*f),M=Math.sqrt(w*w+p*p),k=Math.abs(_)+Math.abs(f)===0?0:Math.atan2(f,_);k+=(k<0)*2*Math.PI;let A=Math.abs(w)+Math.abs(p)===0?0:Math.atan2(p,w);A+=(A<0)*2*Math.PI;let S=v-s,D=M-x,P=x*M===0?0:A-k;P-=(P>Math.PI)*2*Math.PI,P+=(P<-Math.PI)*2*Math.PI;let R=2*Math.sqrt(x*M)*Math.sin(P/2),F=(s+v)/2,N=(x+M)/2,B;x*M===0?B=k+A:(B=(k+A)/2,B-=(Math.abs(k-A)>Math.PI)*Math.PI,B+=(B<0)*2*Math.PI);let H=Math.pow(F-50,2),O=1-.17*Math.cos(B-Math.PI/6)+.24*Math.cos(2*B)+.32*Math.cos(3*B+Math.PI/30)-.2*Math.cos(4*B-63*Math.PI/180),Y=1+.015*H/Math.sqrt(20+H),G=1+.045*N,V=1+.015*N*O,W=30*Math.PI/180*Math.exp(-1*Math.pow((180/Math.PI*B-275)/25,2)),X=2*Math.sqrt(Math.pow(N,7)/(Math.pow(N,7)+Math.pow(25,7))),$=-1*Math.sin(2*W)*X;return Math.sqrt(Math.pow(S/(e*Y),2)+Math.pow(D/(r*G),2)+Math.pow(R/(t*V),2)+$*D/(r*G)*R/(t*V))}},wee=(e=1,r=1)=>{let t=kt("lab65");return(a,n)=>{let i=t(a),l=i.l,o=i.a,s=i.b,u=Math.sqrt(o*o+s*s),f=Math.atan2(s,o);f=f+2*Math.PI*(f<0);let c=t(n),v=c.l,h=c.a,p=c.b,y=Math.sqrt(h*h+p*p),m=Math.pow(l-v,2),b=Math.pow(u-y,2),_=Math.pow(o-h,2)+Math.pow(s-p,2)-b,w=Math.sqrt(Math.pow(u,4)/(Math.pow(u,4)+1900)),x=f>=164/180*Math.PI&&f<=345/180*Math.PI?.56+Math.abs(.2*Math.cos(f+168/180*Math.PI)):.36+Math.abs(.4*Math.cos(f+35/180*Math.PI)),M=l<16?.511:.040975*l/(1+.01765*l),k=.0638*u/(1+.0131*u)+.638,A=k*(w*x+1-w);return Math.sqrt(m/Math.pow(e*M,2)+b/Math.pow(r*k,2)+_/Math.pow(A,2))}},Tee=()=>{let e=kt("lab65");return(r,t)=>{let a=e(r),n=e(t),i=a.l-n.l,l=a.a-n.a,o=a.b-n.b;return Math.abs(i)+Math.sqrt(l*l+o*o)}},Mee=()=>p0("yiq",[.5053,.299,.1957]),Aee=()=>p0("itp",[518400,129600,518400]),vl=e=>{let r=e.reduce((a,n)=>{if(n!==void 0){let i=n*Math.PI/180;a.sin+=Math.sin(i),a.cos+=Math.cos(i)}return a},{sin:0,cos:0}),t=Math.atan2(r.sin,r.cos)*180/Math.PI;return t<0?360+t:t},Bw=e=>{let r=e.filter(t=>t!==void 0);return r.length?r.reduce((t,a)=>t+a,0)/r.length:void 0},Ig=e=>typeof e=="function";function kee(e,r="rgb",t){let a=an(r),n=e.map(kt(r));return a.channels.reduce((i,l)=>{let o=n.map(s=>s[l]).filter(s=>s!==void 0);if(o.length){let s;Ig(t)?s=t:t&&Ig(t[l])?s=t[l]:a.average&&Ig(a.average[l])?s=a.average[l]:s=Bw,i[l]=s(o,l)}return i},{mode:r})}var Cee={mode:"cubehelix",channels:["h","s","l","alpha"],parse:["--cubehelix"],serialize:"--cubehelix",ranges:{h:[0,360],s:[0,4.614],l:[0,1]},fromMode:{rgb:Fw},toMode:{rgb:Nw},interpolate:{h:{use:_r,fixup:cl},s:_r,l:_r,alpha:{use:_r,fixup:_a}},difference:{h:Ic},average:{h:vl}},Hw=Cee,Lee=({l:e,a:r,b:t,alpha:a},n="lch")=>{r===void 0&&(r=0),t===void 0&&(t=0);let i=Math.sqrt(r*r+t*t),l={mode:n,l:e,c:i};return i&&(l.h=Za(Math.atan2(t,r)*180/Math.PI)),a!==void 0&&(l.alpha=a),l},Nl=Lee,See=({l:e,c:r,h:t,alpha:a},n="lab")=>{t===void 0&&(t=0);let i={mode:n,l:e,a:r?r*Math.cos(t/180*Math.PI):0,b:r?r*Math.sin(t/180*Math.PI):0};return a!==void 0&&(i.alpha=a),i},Il=See,Ow=Math.pow(29,3)/Math.pow(3,3),Yw=Math.pow(6,3)/Math.pow(29,3),ba={X:.3457/.3585,Y:1,Z:(1-.3457-.3585)/.3585},v0={X:.3127/.329,Y:1,Z:(1-.3127-.329)/.329},bTe=Math.pow(29,3)/Math.pow(3,3),_Te=Math.pow(6,3)/Math.pow(29,3),Bg=e=>Math.pow(e,3)>Yw?Math.pow(e,3):(116*e-16)/Ow,qee=({l:e,a:r,b:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=(e+16)/116,i=r/500+n,l=n-t/200,o={mode:"xyz65",x:Bg(i)*v0.X,y:Bg(n)*v0.Y,z:Bg(l)*v0.Z};return a!==void 0&&(o.alpha=a),o},L3=qee,Dee=e=>po(L3(e)),Hc=Dee,Hg=e=>e>Yw?Math.cbrt(e):(Ow*e+16)/116,Pee=({x:e,y:r,z:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=Hg(e/v0.X),i=Hg(r/v0.Y),l=Hg(t/v0.Z),o={mode:"lab65",l:116*i-16,a:500*(n-i),b:200*(i-l)};return a!==void 0&&(o.alpha=a),o},S3=Pee,Eee=e=>{let r=S3(ho(e));return e.r===e.b&&e.b===e.g&&(r.a=r.b=0),r},Oc=Eee,Wd=1,Gw=1,Nc=26/180*Math.PI,Zd=Math.cos(Nc),Jd=Math.sin(Nc),Uw=100/Math.log(139/100),Ree=({l:e,c:r,h:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n={mode:"lab65",l:(Math.exp(e*Wd/Uw)-1)/.0039},i=(Math.exp(.0435*r*Gw*Wd)-1)/.075,l=i*Math.cos(t/180*Math.PI-Nc),o=i*Math.sin(t/180*Math.PI-Nc);return n.a=l*Zd-o/.83*Jd,n.b=l*Jd+o/.83*Zd,a!==void 0&&(n.alpha=a),n},$d=Ree,zee=({l:e,a:r,b:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=r*Zd+t*Jd,i=.83*(t*Zd-r*Jd),l=Math.sqrt(n*n+i*i),o={mode:"dlch",l:Uw/Wd*Math.log(1+.0039*e),c:Math.log(1+.075*l)/(.0435*Gw*Wd)};return o.c&&(o.h=Za((Math.atan2(i,n)+Nc)/Math.PI*180)),a!==void 0&&(o.alpha=a),o},Kd=zee,mw=e=>$d(Nl(e,"dlch")),yw=e=>Il(Kd(e),"dlab"),Fee={mode:"dlab",parse:["--din99o-lab"],serialize:"--din99o-lab",toMode:{lab65:mw,rgb:e=>Hc(mw(e))},fromMode:{lab65:yw,rgb:e=>yw(Oc(e))},channels:["l","a","b","alpha"],ranges:{l:[0,100],a:[-40.09,45.501],b:[-40.469,44.344]},interpolate:{l:_r,a:_r,b:_r,alpha:{use:_r,fixup:_a}}},Vw=Fee,Nee={mode:"dlch",parse:["--din99o-lch"],serialize:"--din99o-lch",toMode:{lab65:$d,dlab:e=>Il(e,"dlab"),rgb:e=>Hc($d(e))},fromMode:{lab65:Kd,dlab:e=>Nl(e,"dlch"),rgb:e=>Kd(Oc(e))},channels:["l","c","h","alpha"],ranges:{l:[0,100],c:[0,51.484],h:[0,360]},interpolate:{l:_r,c:_r,h:{use:_r,fixup:cl},alpha:{use:_r,fixup:_a}},difference:{h:Bc},average:{h:vl}},Xw=Nee;function Ww({h:e,s:r,i:t,alpha:a}){e=Za(e!==void 0?e:0),r===void 0&&(r=0),t===void 0&&(t=0);let n=Math.abs(e/60%2-1),i;switch(Math.floor(e/60)){case 0:i={r:t*(1+r*(3/(2-n)-1)),g:t*(1+r*(3*(1-n)/(2-n)-1)),b:t*(1-r)};break;case 1:i={r:t*(1+r*(3*(1-n)/(2-n)-1)),g:t*(1+r*(3/(2-n)-1)),b:t*(1-r)};break;case 2:i={r:t*(1-r),g:t*(1+r*(3/(2-n)-1)),b:t*(1+r*(3*(1-n)/(2-n)-1))};break;case 3:i={r:t*(1-r),g:t*(1+r*(3*(1-n)/(2-n)-1)),b:t*(1+r*(3/(2-n)-1))};break;case 4:i={r:t*(1+r*(3*(1-n)/(2-n)-1)),g:t*(1-r),b:t*(1+r*(3/(2-n)-1))};break;case 5:i={r:t*(1+r*(3/(2-n)-1)),g:t*(1-r),b:t*(1+r*(3*(1-n)/(2-n)-1))};break;default:i={r:t*(1-r),g:t*(1-r),b:t*(1-r)}}return i.mode="rgb",a!==void 0&&(i.alpha=a),i}function Zw({r:e,g:r,b:t,alpha:a}){e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=Math.max(e,r,t),i=Math.min(e,r,t),l={mode:"hsi",s:e+r+t===0?0:1-3*i/(e+r+t),i:(e+r+t)/3};return n-i!==0&&(l.h=(n===e?(r-t)/(n-i)+(r{switch(r){case"deg":return+e;case"rad":return e/Math.PI*180;case"grad":return e/10*9;case"turn":return e*360}},Hee=Bee,Oee=new RegExp(`^hsla?\\(\\s*${NQ}${d0}${zc}${d0}${zc}\\s*(?:,\\s*${k3}\\s*)?\\)$`),Yee=e=>{let r=e.match(Oee);if(!r)return;let t={mode:"hsl"};return r[3]!==void 0?t.h=+r[3]:r[1]!==void 0&&r[2]!==void 0&&(t.h=Hee(r[1],r[2])),r[4]!==void 0&&(t.s=Math.min(Math.max(0,r[4]/100),1)),r[5]!==void 0&&(t.l=Math.min(Math.max(0,r[5]/100),1)),r[6]!==void 0?t.alpha=Math.max(0,Math.min(1,r[6]/100)):r[7]!==void 0&&(t.alpha=Math.max(0,Math.min(1,+r[7]))),t},jw=Yee;function Gee(e,r){if(!r||r[0]!=="hsl"&&r[0]!=="hsla")return;let t={mode:"hsl"},[,a,n,i,l]=r;if(a.type!==vr.None){if(a.type===vr.Percentage)return;t.h=a.value}if(n.type!==vr.None){if(n.type===vr.Hue)return;t.s=n.value/100}if(i.type!==vr.None){if(i.type===vr.Hue)return;t.l=i.value/100}return l.type!==vr.None&&(t.alpha=Math.min(1,Math.max(0,l.type===vr.Number?l.value:l.value/100))),t}var Qw=Gee,Uee={mode:"hsl",toMode:{rgb:$w},fromMode:{rgb:Kw},channels:["h","s","l","alpha"],ranges:{h:[0,360]},gamut:"rgb",parse:[Qw,jw],serialize:e=>`hsl(${e.h!==void 0?e.h:"none"} ${e.s!==void 0?e.s*100+"%":"none"} ${e.l!==void 0?e.l*100+"%":"none"}${e.alpha<1?` / ${e.alpha}`:""})`,interpolate:{h:{use:_r,fixup:cl},s:_r,l:_r,alpha:{use:_r,fixup:_a}},difference:{h:Ic},average:{h:vl}},q3=Uee;function D3({h:e,s:r,v:t,alpha:a}){e=Za(e!==void 0?e:0),r===void 0&&(r=0),t===void 0&&(t=0);let n=Math.abs(e/60%2-1),i;switch(Math.floor(e/60)){case 0:i={r:t,g:t*(1-r*n),b:t*(1-r)};break;case 1:i={r:t*(1-r*n),g:t,b:t*(1-r)};break;case 2:i={r:t*(1-r),g:t,b:t*(1-r*n)};break;case 3:i={r:t*(1-r),g:t*(1-r*n),b:t};break;case 4:i={r:t*(1-r*n),g:t*(1-r),b:t};break;case 5:i={r:t,g:t*(1-r),b:t*(1-r*n)};break;default:i={r:t*(1-r),g:t*(1-r),b:t*(1-r)}}return i.mode="rgb",a!==void 0&&(i.alpha=a),i}function P3({r:e,g:r,b:t,alpha:a}){e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=Math.max(e,r,t),i=Math.min(e,r,t),l={mode:"hsv",s:n===0?0:1-i/n,v:n};return n-i!==0&&(l.h=(n===e?(r-t)/(n-i)+(r1){let n=r+t;r/=n,t/=n}return D3({h:e,s:t===1?1:1-r/(1-t),v:1-t,alpha:a})}function rT(e){let r=P3(e);if(r===void 0)return;let t=r.s!==void 0?r.s:0,a=r.v!==void 0?r.v:0,n={mode:"hwb",w:(1-t)*a,b:1-a};return r.h!==void 0&&(n.h=r.h),r.alpha!==void 0&&(n.alpha=r.alpha),n}function Xee(e,r){if(!r||r[0]!=="hwb")return;let t={mode:"hwb"},[,a,n,i,l]=r;if(a.type!==vr.None){if(a.type===vr.Percentage)return;t.h=a.value}if(n.type!==vr.None){if(n.type===vr.Hue)return;t.w=n.value/100}if(i.type!==vr.None){if(i.type===vr.Hue)return;t.b=i.value/100}return l.type!==vr.None&&(t.alpha=Math.min(1,Math.max(0,l.type===vr.Number?l.value:l.value/100))),t}var tT=Xee,Wee={mode:"hwb",toMode:{rgb:eT},fromMode:{rgb:rT},channels:["h","w","b","alpha"],ranges:{h:[0,360]},gamut:"rgb",parse:[tT],serialize:e=>`hwb(${e.h!==void 0?e.h:"none"} ${e.w!==void 0?e.w*100+"%":"none"} ${e.b!==void 0?e.b*100+"%":"none"}${e.alpha<1?` / ${e.alpha}`:""})`,interpolate:{h:{use:_r,fixup:cl},w:_r,b:_r,alpha:{use:_r,fixup:_a}},difference:{h:Iw},average:{h:vl}},aT=Wee,nT=203,th=.1593017578125,iT=78.84375,ah=.8359375,nh=18.8515625,ih=18.6875;function Og(e){if(e<0)return 0;let r=Math.pow(e,1/iT);return 1e4*Math.pow(Math.max(0,r-ah)/(nh-ih*r),1/th)}function Yg(e){if(e<0)return 0;let r=Math.pow(e/1e4,th);return Math.pow((ah+nh*r)/(1+ih*r),iT)}var Gg=e=>Math.max(e/nT,0),Zee=({i:e,t:r,p:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=Og(e+.008609037037932761*r+.11102962500302593*t),i=Og(e-.00860903703793275*r-.11102962500302599*t),l=Og(e+.5600313357106791*r-.32062717498731885*t),o={mode:"xyz65",x:Gg(2.070152218389422*n-1.3263473389671556*i+.2066510476294051*l),y:Gg(.3647385209748074*n+.680566024947227*i-.0453045459220346*l),z:Gg(-.049747207535812*n-.0492609666966138*i+1.1880659249923042*l)};return a!==void 0&&(o.alpha=a),o},s3=Zee,Ug=(e=0)=>Math.max(e*nT,0),Jee=({x:e,y:r,z:t,alpha:a})=>{let n=Ug(e),i=Ug(r),l=Ug(t),o=Yg(.3592832590121217*n+.6976051147779502*i-.0358915932320289*l),s=Yg(-.1920808463704995*n+1.1004767970374323*i+.0753748658519118*l),u=Yg(.0070797844607477*n+.0748396662186366*i+.8433265453898765*l),f=.5*o+.5*s,c=1.61376953125*o-3.323486328125*s+1.709716796875*u,v=4.378173828125*o-4.24560546875*s-.132568359375*u,h={mode:"itp",i:f,t:c,p:v};return a!==void 0&&(h.alpha=a),h},u3=Jee,$ee={mode:"itp",channels:["i","t","p","alpha"],parse:["--ictcp"],serialize:"--ictcp",toMode:{xyz65:s3,rgb:e=>po(s3(e))},fromMode:{xyz65:u3,rgb:e=>u3(ho(e))},ranges:{i:[0,.581],t:[-.369,.272],p:[-.164,.331]},interpolate:{i:_r,t:_r,p:_r,alpha:{use:_r,fixup:_a}}},lT=$ee,Kee=134.03437499999998,jee=16295499532821565e-27,Vg=e=>{if(e<0)return 0;let r=Math.pow(e/1e4,th);return Math.pow((ah+nh*r)/(1+ih*r),Kee)},Xg=(e=0)=>Math.max(e*203,0),Qee=({x:e,y:r,z:t,alpha:a})=>{e=Xg(e),r=Xg(r),t=Xg(t);let n=1.15*e-.15*t,i=.66*r+.34*e,l=Vg(.41478972*n+.579999*i+.014648*t),o=Vg(-.20151*n+1.120649*i+.0531008*t),s=Vg(-.0166008*n+.2648*i+.6684799*t),u=(l+o)/2,f={mode:"jab",j:.44*u/(1-.56*u)-jee,a:3.524*l-4.066708*o+.542708*s,b:.199076*l+1.096799*o-1.295875*s};return a!==void 0&&(f.alpha=a),f},R3=Qee,ere=134.03437499999998,gw=16295499532821565e-27,Wg=e=>{if(e<0)return 0;let r=Math.pow(e,1/ere);return 1e4*Math.pow((ah-r)/(ih*r-nh),1/th)},Zg=e=>e/203,rre=({j:e,a:r,b:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=(e+gw)/(.44+.56*(e+gw)),i=Wg(n+.13860504*r+.058047316*t),l=Wg(n-.13860504*r-.058047316*t),o=Wg(n-.096019242*r-.8118919*t),s={mode:"xyz65",x:Zg(1.661373024652174*i-.914523081304348*l+.23136208173913045*o),y:Zg(-.3250758611844533*i+1.571847026732543*l-.21825383453227928*o),z:Zg(-.090982811*i-.31272829*l+1.5227666*o)};return a!==void 0&&(s.alpha=a),s},z3=rre,tre=e=>{let r=R3(ho(e));return e.r===e.b&&e.b===e.g&&(r.a=r.b=0),r},F3=tre,are=e=>po(z3(e)),N3=are,nre={mode:"jab",channels:["j","a","b","alpha"],parse:["--jzazbz"],serialize:"--jzazbz",fromMode:{rgb:F3,xyz65:R3},toMode:{rgb:N3,xyz65:z3},ranges:{j:[0,.222],a:[-.109,.129],b:[-.185,.134]},interpolate:{j:_r,a:_r,b:_r,alpha:{use:_r,fixup:_a}}},oT=nre,ire=({j:e,a:r,b:t,alpha:a})=>{r===void 0&&(r=0),t===void 0&&(t=0);let n=Math.sqrt(r*r+t*t),i={mode:"jch",j:e,c:n};return n&&(i.h=Za(Math.atan2(t,r)*180/Math.PI)),a!==void 0&&(i.alpha=a),i},f3=ire,lre=({j:e,c:r,h:t,alpha:a})=>{t===void 0&&(t=0);let n={mode:"jab",j:e,a:r?r*Math.cos(t/180*Math.PI):0,b:r?r*Math.sin(t/180*Math.PI):0};return a!==void 0&&(n.alpha=a),n},c3=lre,ore={mode:"jch",parse:["--jzczhz"],serialize:"--jzczhz",toMode:{jab:c3,rgb:e=>N3(c3(e))},fromMode:{rgb:e=>f3(F3(e)),jab:f3},channels:["j","c","h","alpha"],ranges:{j:[0,.221],c:[0,.19],h:[0,360]},interpolate:{h:{use:_r,fixup:cl},c:_r,j:_r,alpha:{use:_r,fixup:_a}},difference:{h:Bc},average:{h:vl}},sT=ore,lh=Math.pow(29,3)/Math.pow(3,3),I3=Math.pow(6,3)/Math.pow(29,3),Jg=e=>Math.pow(e,3)>I3?Math.pow(e,3):(116*e-16)/lh,sre=({l:e,a:r,b:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=(e+16)/116,i=r/500+n,l=n-t/200,o={mode:"xyz50",x:Jg(i)*ba.X,y:Jg(n)*ba.Y,z:Jg(l)*ba.Z};return a!==void 0&&(o.alpha=a),o},oh=sre,ure=({x:e,y:r,z:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=Ps({r:e*3.1341359569958707-r*1.6173863321612538-.4906619460083532*t,g:e*-.978795502912089+r*1.916254567259524+.03344273116131949*t,b:e*.07195537988411677-r*.2289768264158322+1.405386058324125*t});return a!==void 0&&(n.alpha=a),n},m0=ure,fre=e=>m0(oh(e)),B3=fre,cre=e=>{let{r,g:t,b:a,alpha:n}=Ds(e),i={mode:"xyz50",x:.436065742824811*r+.3851514688337912*t+.14307845442264197*a,y:.22249319175623702*r+.7168870538238823*t+.06061979053616537*a,z:.013923904500943465*r+.09708128566574634*t+.7140993584005155*a};return n!==void 0&&(i.alpha=n),i},y0=cre,$g=e=>e>I3?Math.cbrt(e):(lh*e+16)/116,vre=({x:e,y:r,z:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=$g(e/ba.X),i=$g(r/ba.Y),l=$g(t/ba.Z),o={mode:"lab",l:116*i-16,a:500*(n-i),b:200*(i-l)};return a!==void 0&&(o.alpha=a),o},sh=vre,dre=e=>{let r=sh(y0(e));return e.r===e.b&&e.b===e.g&&(r.a=r.b=0),r},H3=dre;function hre(e,r){if(!r||r[0]!=="lab")return;let t={mode:"lab"},[,a,n,i,l]=r;if(!(a.type===vr.Hue||n.type===vr.Hue||i.type===vr.Hue))return a.type!==vr.None&&(t.l=Math.min(Math.max(0,a.value),100)),n.type!==vr.None&&(t.a=n.type===vr.Number?n.value:n.value*125/100),i.type!==vr.None&&(t.b=i.type===vr.Number?i.value:i.value*125/100),l.type!==vr.None&&(t.alpha=Math.min(1,Math.max(0,l.type===vr.Number?l.value:l.value/100))),t}var uT=hre,pre={mode:"lab",toMode:{xyz50:oh,rgb:B3},fromMode:{xyz50:sh,rgb:H3},channels:["l","a","b","alpha"],ranges:{l:[0,100],a:[-125,125],b:[-125,125]},parse:[uT],serialize:e=>`lab(${e.l!==void 0?e.l:"none"} ${e.a!==void 0?e.a:"none"} ${e.b!==void 0?e.b:"none"}${e.alpha<1?` / ${e.alpha}`:""})`,interpolate:{l:_r,a:_r,b:_r,alpha:{use:_r,fixup:_a}}},uh=pre,mre=Pt(ut({},uh),{mode:"lab65",parse:["--lab-d65"],serialize:"--lab-d65",toMode:{xyz65:L3,rgb:Hc},fromMode:{xyz65:S3,rgb:Oc},ranges:{l:[0,100],a:[-125,125],b:[-125,125]}}),fT=mre;function yre(e,r){if(!r||r[0]!=="lch")return;let t={mode:"lch"},[,a,n,i,l]=r;if(a.type!==vr.None){if(a.type===vr.Hue)return;t.l=Math.min(Math.max(0,a.value),100)}if(n.type!==vr.None&&(t.c=Math.max(0,n.type===vr.Number?n.value:n.value*150/100)),i.type!==vr.None){if(i.type===vr.Percentage)return;t.h=i.value}return l.type!==vr.None&&(t.alpha=Math.min(1,Math.max(0,l.type===vr.Number?l.value:l.value/100))),t}var cT=yre,gre={mode:"lch",toMode:{lab:Il,rgb:e=>B3(Il(e))},fromMode:{rgb:e=>Nl(H3(e)),lab:Nl},channels:["l","c","h","alpha"],ranges:{l:[0,100],c:[0,150],h:[0,360]},parse:[cT],serialize:e=>`lch(${e.l!==void 0?e.l:"none"} ${e.c!==void 0?e.c:"none"} ${e.h!==void 0?e.h:"none"}${e.alpha<1?` / ${e.alpha}`:""})`,interpolate:{h:{use:_r,fixup:cl},c:_r,l:_r,alpha:{use:_r,fixup:_a}},difference:{h:Bc},average:{h:vl}},fh=gre,xre=Pt(ut({},fh),{mode:"lch65",parse:["--lch-d65"],serialize:"--lch-d65",toMode:{lab65:e=>Il(e,"lab65"),rgb:e=>Hc(Il(e,"lab65"))},fromMode:{rgb:e=>Nl(Oc(e),"lch65"),lab65:e=>Nl(e,"lch65")},ranges:{l:[0,100],c:[0,150],h:[0,360]}}),vT=xre,bre=({l:e,u:r,v:t,alpha:a})=>{r===void 0&&(r=0),t===void 0&&(t=0);let n=Math.sqrt(r*r+t*t),i={mode:"lchuv",l:e,c:n};return n&&(i.h=Za(Math.atan2(t,r)*180/Math.PI)),a!==void 0&&(i.alpha=a),i},O3=bre,_re=({l:e,c:r,h:t,alpha:a})=>{t===void 0&&(t=0);let n={mode:"luv",l:e,u:r?r*Math.cos(t/180*Math.PI):0,v:r?r*Math.sin(t/180*Math.PI):0};return a!==void 0&&(n.alpha=a),n},Y3=_re,dT=(e,r,t)=>4*e/(e+15*r+3*t),hT=(e,r,t)=>9*r/(e+15*r+3*t),wre=dT(ba.X,ba.Y,ba.Z),Tre=hT(ba.X,ba.Y,ba.Z),Mre=e=>e<=I3?lh*e:116*Math.cbrt(e)-16,Are=({x:e,y:r,z:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=Mre(r/ba.Y),i=dT(e,r,t),l=hT(e,r,t);!isFinite(i)||!isFinite(l)?n=i=l=0:(i=13*n*(i-wre),l=13*n*(l-Tre));let o={mode:"luv",l:n,u:i,v:l};return a!==void 0&&(o.alpha=a),o},jd=Are,kre=(e,r,t)=>4*e/(e+15*r+3*t),Cre=(e,r,t)=>9*r/(e+15*r+3*t),Lre=kre(ba.X,ba.Y,ba.Z),Sre=Cre(ba.X,ba.Y,ba.Z),qre=({l:e,u:r,v:t,alpha:a})=>{if(e===void 0&&(e=0),e===0)return{mode:"xyz50",x:0,y:0,z:0};r===void 0&&(r=0),t===void 0&&(t=0);let n=r/(13*e)+Lre,i=t/(13*e)+Sre,l=ba.Y*(e<=8?e/lh:Math.pow((e+16)/116,3)),o=l*(9*n)/(4*i),s=l*(12-3*n-20*i)/(4*i),u={mode:"xyz50",x:o,y:l,z:s};return a!==void 0&&(u.alpha=a),u},Qd=qre,Dre=e=>O3(jd(y0(e))),Pre=e=>m0(Qd(Y3(e))),Ere={mode:"lchuv",toMode:{luv:Y3,rgb:Pre},fromMode:{rgb:Dre,luv:O3},channels:["l","c","h","alpha"],parse:["--lchuv"],serialize:"--lchuv",ranges:{l:[0,100],c:[0,176.956],h:[0,360]},interpolate:{h:{use:_r,fixup:cl},c:_r,l:_r,alpha:{use:_r,fixup:_a}},difference:{h:Bc},average:{h:vl}},pT=Ere,Rre=Pt(ut({},qs),{mode:"lrgb",toMode:{rgb:Ps},fromMode:{rgb:Ds},parse:["srgb-linear"],serialize:"srgb-linear"}),mT=Rre,zre={mode:"luv",toMode:{xyz50:Qd,rgb:e=>m0(Qd(e))},fromMode:{xyz50:jd,rgb:e=>jd(y0(e))},channels:["l","u","v","alpha"],parse:["--luv"],serialize:"--luv",ranges:{l:[0,100],u:[-84.936,175.042],v:[-125.882,87.243]},interpolate:{l:_r,u:_r,v:_r,alpha:{use:_r,fixup:_a}}},yT=zre,Fre=({r:e,g:r,b:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=Math.cbrt(.412221469470763*e+.5363325372617348*r+.0514459932675022*t),i=Math.cbrt(.2119034958178252*e+.6806995506452344*r+.1073969535369406*t),l=Math.cbrt(.0883024591900564*e+.2817188391361215*r+.6299787016738222*t),o={mode:"oklab",l:.210454268309314*n+.7936177747023054*i-.0040720430116193*l,a:1.9779985324311684*n-2.42859224204858*i+.450593709617411*l,b:.0259040424655478*n+.7827717124575296*i-.8086757549230774*l};return a!==void 0&&(o.alpha=a),o},G3=Fre,Nre=e=>{let r=G3(Ds(e));return e.r===e.b&&e.b===e.g&&(r.a=r.b=0),r},Yc=Nre,Ire=({l:e,a:r,b:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=Math.pow(e+.3963377773761749*r+.2158037573099136*t,3),i=Math.pow(e-.1055613458156586*r-.0638541728258133*t,3),l=Math.pow(e-.0894841775298119*r-1.2914855480194092*t,3),o={mode:"lrgb",r:4.076741636075957*n-3.3077115392580616*i+.2309699031821044*l,g:-1.2684379732850317*n+2.6097573492876887*i-.3413193760026573*l,b:-.0041960761386756*n-.7034186179359362*i+1.7076146940746117*l};return a!==void 0&&(o.alpha=a),o},g0=Ire,Bre=e=>Ps(g0(e)),Gc=Bre;function v3(e){let a=1.170873786407767;return .5*(a*e-.206+Math.sqrt((a*e-.206)*(a*e-.206)+4*.03*a*e))}function eh(e){return(e*e+.206*e)/(1.170873786407767*(e+.03))}function Hre(e,r){let t,a,n,i,l,o,s,u;-1.88170328*e-.80936493*r>1?(t=1.19086277,a=1.76576728,n=.59662641,i=.75515197,l=.56771245,o=4.0767416621,s=-3.3077115913,u=.2309699292):1.81444104*e-1.19445276*r>1?(t=.73956515,a=-.45954404,n=.08285427,i=.1254107,l=.14503204,o=-1.2684380046,s=2.6097574011,u=-.3413193965):(t=1.35733652,a=-.00915799,n=-1.1513021,i=-.50559606,l=.00692167,o=-.0041960863,s=-.7034186147,u=1.707614701);let f=t+a*e+n*r+i*e*e+l*e*r,c=.3963377774*e+.2158037573*r,v=-.1055613458*e-.0638541728*r,h=-.0894841775*e-1.291485548*r;{let p=1+f*c,y=1+f*v,m=1+f*h,b=p*p*p,_=y*y*y,w=m*m*m,x=3*c*p*p,M=3*v*y*y,k=3*h*m*m,A=6*c*c*p,S=6*v*v*y,D=6*h*h*m,P=o*b+s*_+u*w,R=o*x+s*M+u*k,F=o*A+s*S+u*D;f=f-P*R/(R*R-.5*P*F)}return f}function U3(e,r){let t=Hre(e,r),a=g0({l:1,a:t*e,b:t*r}),n=Math.cbrt(1/Math.max(a.r,a.g,a.b)),i=n*t;return[n,i]}function Ore(e,r,t,a,n,i=null){i||(i=U3(e,r));let l;if((t-n)*i[1]-(i[0]-n)*a<=0)l=i[1]*n/(a*i[0]+i[1]*(n-t));else{l=i[1]*(n-1)/(a*(i[0]-1)+i[1]*(n-t));{let o=t-n,s=a,u=.3963377774*e+.2158037573*r,f=-.1055613458*e-.0638541728*r,c=-.0894841775*e-1.291485548*r,v=o+s*u,h=o+s*f,p=o+s*c;{let y=n*(1-l)+l*t,m=l*a,b=y+m*u,_=y+m*f,w=y+m*c,x=b*b*b,M=_*_*_,k=w*w*w,A=3*v*b*b,S=3*h*_*_,D=3*p*w*w,P=6*v*v*b,R=6*h*h*_,F=6*p*p*w,N=4.0767416621*x-3.3077115913*M+.2309699292*k-1,B=4.0767416621*A-3.3077115913*S+.2309699292*D,H=4.0767416621*P-3.3077115913*R+.2309699292*F,O=B/(B*B-.5*N*H),Y=-N*O,G=-1.2684380046*x+2.6097574011*M-.3413193965*k-1,V=-1.2684380046*A+2.6097574011*S-.3413193965*D,W=-1.2684380046*P+2.6097574011*R-.3413193965*F,X=V/(V*V-.5*G*W),$=-G*X,te=-.0041960863*x-.7034186147*M+1.707614701*k-1,ie=-.0041960863*A-.7034186147*S+1.707614701*D,ve=-.0041960863*P-.7034186147*R+1.707614701*F,K=ie/(ie*ie-.5*te*ve),he=-te*K;Y=O>=0?Y:1e6,$=X>=0?$:1e6,he=K>=0?he:1e6,l+=Math.min(Y,Math.min($,he))}}}return l}function V3(e,r,t=null){t||(t=U3(e,r));let a=t[0],n=t[1];return[n/a,n/(1-a)]}function gT(e,r,t){let a=U3(r,t),n=Ore(r,t,e,1,e,a),i=V3(r,t,a),l=.11516993+1/(7.4477897+4.1590124*t+r*(-2.19557347+1.75198401*t+r*(-2.13704948-10.02301043*t+r*(-4.24894561+5.38770819*t+4.69891013*r)))),o=.11239642+1/(1.6132032-.68124379*t+r*(.40370612+.90148123*t+r*(-.27087943+.6122399*t+r*(.00299215-.45399568*t-.14661872*r)))),s=n/Math.min(e*i[0],(1-e)*i[1]),u=e*l,f=(1-e)*o,c=.9*s*Math.sqrt(Math.sqrt(1/(1/(u*u*u*u)+1/(f*f*f*f))));return u=e*.4,f=(1-e)*.8,[Math.sqrt(1/(1/(u*u)+1/(f*f))),c,n]}function d3(e){let r=e.l!==void 0?e.l:0,t=e.a!==void 0?e.a:0,a=e.b!==void 0?e.b:0,n={mode:"okhsl",l:v3(r)};e.alpha!==void 0&&(n.alpha=e.alpha);let i=Math.sqrt(t*t+a*a);if(!i)return n.s=0,n;let[l,o,s]=gT(r,t/i,a/i),u;if(id3(Yc(e))},toMode:{oklab:h3,rgb:e=>Gc(h3(e))}}),xT=Yre;function p3(e){let r=e.l!==void 0?e.l:0,t=e.a!==void 0?e.a:0,a=e.b!==void 0?e.b:0,n=Math.sqrt(t*t+a*a),i=n?t/n:1,l=n?a/n:1,[o,s]=V3(i,l),u=.5,f=1-u/o,c=s/(n+r*s),v=c*r,h=c*n,p=eh(v),y=h*p/v,m=g0({l:p,a:i*y,b:l*y}),b=Math.cbrt(1/Math.max(m.r,m.g,m.b,0));r=r/b,n=n/b*v3(r)/r,r=v3(r);let _={mode:"okhsv",s:n?(u+s)*h/(s*u+s*f*h):0,v:r?r/v:0};return _.s&&(_.h=Za(Math.atan2(a,t)*180/Math.PI)),e.alpha!==void 0&&(_.alpha=e.alpha),_}function m3(e){let r={mode:"oklab"};e.alpha!==void 0&&(r.alpha=e.alpha);let t=e.h!==void 0?e.h:0,a=e.s!==void 0?e.s:0,n=e.v!==void 0?e.v:0,i=Math.cos(t/180*Math.PI),l=Math.sin(t/180*Math.PI),[o,s]=V3(i,l),u=.5,f=1-u/o,c=1-a*u/(u+s-s*f*a),v=a*s*u/(u+s-s*f*a),h=eh(c),p=v*h/c,y=g0({l:h,a:i*p,b:l*p}),m=Math.cbrt(1/Math.max(y.r,y.g,y.b,0)),b=eh(n*c),_=v*b/c;return r.l=b*m,r.a=_*i*m,r.b=_*l*m,r}var Gre=Pt(ut({},E3),{mode:"okhsv",channels:["h","s","v","alpha"],parse:["--okhsv"],serialize:"--okhsv",fromMode:{oklab:p3,rgb:e=>p3(Yc(e))},toMode:{oklab:m3,rgb:e=>Gc(m3(e))}}),bT=Gre;function Ure(e,r){if(!r||r[0]!=="oklab")return;let t={mode:"oklab"},[,a,n,i,l]=r;if(!(a.type===vr.Hue||n.type===vr.Hue||i.type===vr.Hue))return a.type!==vr.None&&(t.l=Math.min(Math.max(0,a.type===vr.Number?a.value:a.value/100),1)),n.type!==vr.None&&(t.a=n.type===vr.Number?n.value:n.value*.4/100),i.type!==vr.None&&(t.b=i.type===vr.Number?i.value:i.value*.4/100),l.type!==vr.None&&(t.alpha=Math.min(1,Math.max(0,l.type===vr.Number?l.value:l.value/100))),t}var _T=Ure,Vre=Pt(ut({},uh),{mode:"oklab",toMode:{lrgb:g0,rgb:Gc},fromMode:{lrgb:G3,rgb:Yc},ranges:{l:[0,1],a:[-.4,.4],b:[-.4,.4]},parse:[_T],serialize:e=>`oklab(${e.l!==void 0?e.l:"none"} ${e.a!==void 0?e.a:"none"} ${e.b!==void 0?e.b:"none"}${e.alpha<1?` / ${e.alpha}`:""})`}),wT=Vre;function Xre(e,r){if(!r||r[0]!=="oklch")return;let t={mode:"oklch"},[,a,n,i,l]=r;if(a.type!==vr.None){if(a.type===vr.Hue)return;t.l=Math.min(Math.max(0,a.type===vr.Number?a.value:a.value/100),1)}if(n.type!==vr.None&&(t.c=Math.max(0,n.type===vr.Number?n.value:n.value*.4/100)),i.type!==vr.None){if(i.type===vr.Percentage)return;t.h=i.value}return l.type!==vr.None&&(t.alpha=Math.min(1,Math.max(0,l.type===vr.Number?l.value:l.value/100))),t}var TT=Xre,Wre=Pt(ut({},fh),{mode:"oklch",toMode:{oklab:e=>Il(e,"oklab"),rgb:e=>Gc(Il(e,"oklab"))},fromMode:{rgb:e=>Nl(Yc(e),"oklch"),oklab:e=>Nl(e,"oklch")},parse:[TT],serialize:e=>`oklch(${e.l!==void 0?e.l:"none"} ${e.c!==void 0?e.c:"none"} ${e.h!==void 0?e.h:"none"}${e.alpha<1?` / ${e.alpha}`:""})`,ranges:{l:[0,1],c:[0,.4],h:[0,360]}}),MT=Wre,Zre=e=>{let{r,g:t,b:a,alpha:n}=Ds(e),i={mode:"xyz65",x:.486570948648216*r+.265667693169093*t+.1982172852343625*a,y:.2289745640697487*r+.6917385218365062*t+.079286914093745*a,z:0*r+.0451133818589026*t+1.043944368900976*a};return n!==void 0&&(i.alpha=n),i},y3=Zre,Jre=({x:e,y:r,z:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=Ps({r:e*2.4934969119414263-r*.9313836179191242-.402710784450717*t,g:e*-.8294889695615749+r*1.7626640603183465+.0236246858419436*t,b:e*.0358458302437845-r*.0761723892680418+.9568845240076871*t},"p3");return a!==void 0&&(n.alpha=a),n},g3=Jre,$re=Pt(ut({},qs),{mode:"p3",parse:["display-p3"],serialize:"display-p3",fromMode:{rgb:e=>g3(ho(e)),xyz65:g3},toMode:{rgb:e=>po(y3(e)),xyz65:y3}}),AT=$re,Kg=e=>{let r=Math.abs(e);return r>=1/512?Math.sign(e)*Math.pow(r,1/1.8):16*e},Kre=({x:e,y:r,z:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n={mode:"prophoto",r:Kg(e*1.3457868816471585-r*.2555720873797946-.0511018649755453*t),g:Kg(e*-.5446307051249019+r*1.5082477428451466+.0205274474364214*t),b:Kg(e*0+r*0+1.2119675456389452*t)};return a!==void 0&&(n.alpha=a),n},x3=Kre,jg=(e=0)=>{let r=Math.abs(e);return r>=16/512?Math.sign(e)*Math.pow(r,1.8):e/16},jre=e=>{let r=jg(e.r),t=jg(e.g),a=jg(e.b),n={mode:"xyz50",x:.7977666449006423*r+.1351812974005331*t+.0313477341283922*a,y:.2880748288194013*r+.7118352342418731*t+899369387256e-16*a,z:0*r+0*t+.8251046025104602*a};return e.alpha!==void 0&&(n.alpha=e.alpha),n},b3=jre,Qre=Pt(ut({},qs),{mode:"prophoto",parse:["prophoto-rgb"],serialize:"prophoto-rgb",fromMode:{xyz50:x3,rgb:e=>x3(y0(e))},toMode:{xyz50:b3,rgb:e=>m0(b3(e))}}),kT=Qre,xw=1.09929682680944,ete=.018053968510807,Qg=e=>{let r=Math.abs(e);return r>ete?(Math.sign(e)||1)*(xw*Math.pow(r,.45)-(xw-1)):4.5*e},rte=({x:e,y:r,z:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n={mode:"rec2020",r:Qg(e*1.7166511879712683-r*.3556707837763925-.2533662813736599*t),g:Qg(e*-.6666843518324893+r*1.6164812366349395+.0157685458139111*t),b:Qg(e*.0176398574453108-r*.0427706132578085+.9421031212354739*t)};return a!==void 0&&(n.alpha=a),n},_3=rte,bw=1.09929682680944,tte=.018053968510807,e3=(e=0)=>{let r=Math.abs(e);return r{let r=e3(e.r),t=e3(e.g),a=e3(e.b),n={mode:"xyz65",x:.6369580483012911*r+.1446169035862083*t+.1688809751641721*a,y:.262700212011267*r+.6779980715188708*t+.059301716469862*a,z:0*r+.0280726930490874*t+1.0609850577107909*a};return e.alpha!==void 0&&(n.alpha=e.alpha),n},w3=ate,nte=Pt(ut({},qs),{mode:"rec2020",fromMode:{xyz65:_3,rgb:e=>_3(ho(e))},toMode:{xyz65:w3,rgb:e=>po(w3(e))},parse:["rec2020"],serialize:"rec2020"}),CT=nte,Ls=.0037930732552754493,LT=Math.cbrt(Ls),r3=e=>Math.cbrt(e)-LT,ite=e=>{let{r,g:t,b:a,alpha:n}=Ds(e),i=r3(.3*r+.622*t+.078*a+Ls),l=r3(.23*r+.692*t+.078*a+Ls),o=r3(.2434226892454782*r+.2047674442449682*t+.5518098665095535*a+Ls),s={mode:"xyb",x:(i-l)/2,y:(i+l)/2,b:o-(i+l)/2};return n!==void 0&&(s.alpha=n),s},ST=ite,t3=e=>Math.pow(e+LT,3),lte=({x:e,y:r,b:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=t3(e+r)-Ls,i=t3(r-e)-Ls,l=t3(t+r)-Ls,o=Ps({r:11.031566904639861*n-9.866943908131562*i-.16462299650829934*l,g:-3.2541473810744237*n+4.418770377582723*i-.16462299650829934*l,b:-3.6588512867136815*n+2.7129230459360922*i+1.9459282407775895*l});return a!==void 0&&(o.alpha=a),o},qT=lte,ote={mode:"xyb",channels:["x","y","b","alpha"],parse:["--xyb"],serialize:"--xyb",toMode:{rgb:qT},fromMode:{rgb:ST},ranges:{x:[-.0154,.0281],y:[0,.8453],b:[-.2778,.388]},interpolate:{x:_r,y:_r,b:_r,alpha:{use:_r,fixup:_a}}},DT=ote,ste={mode:"xyz50",parse:["xyz-d50"],serialize:"xyz-d50",toMode:{rgb:m0,lab:sh},fromMode:{rgb:y0,lab:oh},channels:["x","y","z","alpha"],ranges:{x:[0,.964],y:[0,.999],z:[0,.825]},interpolate:{x:_r,y:_r,z:_r,alpha:{use:_r,fixup:_a}}},PT=ste,ute=e=>{let{x:r,y:t,z:a,alpha:n}=e;r===void 0&&(r=0),t===void 0&&(t=0),a===void 0&&(a=0);let i={mode:"xyz50",x:1.0479298208405488*r+.0229467933410191*t-.0501922295431356*a,y:.0296278156881593*r+.990434484573249*t-.0170738250293851*a,z:-.0092430581525912*r+.0150551448965779*t+.7518742899580008*a};return n!==void 0&&(i.alpha=n),i},ET=ute,fte=e=>{let{x:r,y:t,z:a,alpha:n}=e;r===void 0&&(r=0),t===void 0&&(t=0),a===void 0&&(a=0);let i={mode:"xyz65",x:.9554734527042182*r-.0230985368742614*t+.0632593086610217*a,y:-.0283697069632081*r+1.0099954580058226*t+.021041398966943*a,z:.0123140016883199*r-.0205076964334779*t+1.3303659366080753*a};return n!==void 0&&(i.alpha=n),i},RT=fte,cte={mode:"xyz65",toMode:{rgb:po,xyz50:ET},fromMode:{rgb:ho,xyz50:RT},ranges:{x:[0,.95],y:[0,1],z:[0,1.088]},channels:["x","y","z","alpha"],parse:["xyz","xyz-d65"],serialize:"xyz-d65",interpolate:{x:_r,y:_r,z:_r,alpha:{use:_r,fixup:_a}}},zT=cte,vte=({r:e,g:r,b:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n={mode:"yiq",y:.29889531*e+.58662247*r+.11448223*t,i:.59597799*e-.2741761*r-.32180189*t,q:.21147017*e-.52261711*r+.31114694*t};return a!==void 0&&(n.alpha=a),n},FT=vte,dte=({y:e,i:r,q:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n={mode:"rgb",r:e+.95608445*r+.6208885*t,g:e-.27137664*r-.6486059*t,b:e-1.10561724*r+1.70250126*t};return a!==void 0&&(n.alpha=a),n},NT=dte,hte={mode:"yiq",toMode:{rgb:NT},fromMode:{rgb:FT},channels:["y","i","q","alpha"],parse:["--yiq"],serialize:"--yiq",ranges:{i:[-.595,.595],q:[-.522,.522]},interpolate:{y:_r,i:_r,q:_r,alpha:{use:_r,fixup:_a}}},IT=hte,pte=(e,r)=>Math.round(e*(r=Math.pow(10,r)))/r,mte=(e=4)=>r=>typeof r=="number"?pte(r,e):r,BT=mte,Rc=BT(2),Fc=e=>Math.max(0,Math.min(1,e||0)),Ss=e=>Math.round(Fc(e)*255),X3=kt("rgb"),yte=kt("hsl"),W3=e=>{if(e===void 0)return;let r=Ss(e.r),t=Ss(e.g),a=Ss(e.b);return"#"+(1<<24|r<<16|t<<8|a).toString(16).slice(1)},HT=e=>{if(e===void 0)return;let r=Ss(e.alpha!==void 0?e.alpha:1);return W3(e)+(256|r).toString(16).slice(1)},OT=e=>{if(e===void 0)return;let r=Ss(e.r),t=Ss(e.g),a=Ss(e.b);return e.alpha===void 0||e.alpha===1?`rgb(${r}, ${t}, ${a})`:`rgba(${r}, ${t}, ${a}, ${Rc(Fc(e.alpha))})`},YT=e=>{if(e===void 0)return;let r=Rc(e.h||0),t=Rc(Fc(e.s)*100)+"%",a=Rc(Fc(e.l)*100)+"%";return e.alpha===void 0||e.alpha===1?`hsl(${r}, ${t}, ${a})`:`hsla(${r}, ${t}, ${a}, ${Rc(Fc(e.alpha))})`},gte=e=>{let r=Fi(e);if(!r)return;let t=an(r.mode);if(!t.serialize||typeof t.serialize=="string"){let a=`color(${t.serialize||`--${r.mode}`} `;return t.channels.forEach((n,i)=>{n!=="alpha"&&(a+=(i?" ":"")+(r[n]!==void 0?r[n]:"none"))}),r.alpha!==void 0&&r.alpha<1&&(a+=` / ${r.alpha}`),a+")"}if(typeof t.serialize=="function")return t.serialize(r)},xte=e=>W3(X3(e)),bte=e=>HT(X3(e)),_te=e=>OT(X3(e)),wte=e=>YT(yte(e)),Tte={normal:(e,r)=>r,multiply:(e,r)=>e*r,screen:(e,r)=>e+r-e*r,"hard-light":(e,r)=>r<.5?e*2*r:2*r*(1-e)-1,overlay:(e,r)=>e<.5?r*2*e:2*e*(1-r)-1,darken:(e,r)=>Math.min(e,r),lighten:(e,r)=>Math.max(e,r),"color-dodge":(e,r)=>e===0?0:r===1?1:Math.min(1,e/(1-r)),"color-burn":(e,r)=>e===1?1:r===0?0:1-Math.min(1,(1-e)/r),"soft-light":(e,r)=>r<.5?e-(1-2*r)*e*(1-e):e+(2*r-1)*((e<.25?((16*e-12)*e+4)*e:Math.sqrt(e))-e),difference:(e,r)=>Math.abs(e-r),exclusion:(e,r)=>e+r-2*e*r},Mte=(e,r="normal",t="rgb")=>{let a=typeof r=="function"?r:Tte[r],n=kt(t),i=an(t).channels;return e.map(o=>{let s=n(o);return s.alpha===void 0&&(s.alpha=1),s}).reduce((o,s)=>{if(o===void 0)return s;let u=s.alpha+o.alpha*(1-s.alpha);return i.reduce((f,c)=>(c!=="alpha"&&(u===0?f[c]=0:(f[c]=s.alpha*(1-o.alpha)*s[c]+s.alpha*o.alpha*a(o[c],s[c])+(1-s.alpha)*o.alpha*o[c],f[c]=Math.max(0,Math.min(1,f[c]/u)))),f),{mode:t,alpha:u})})},Ate=Mte,kte=([e,r])=>e+Math.random()*(r-e),Cte=e=>Object.keys(e).reduce((r,t)=>{let a=e[t];return r[t]=Array.isArray(a)?a:[a,a],r},{}),Lte=(e="rgb",r={})=>{let t=an(e),a=Cte(r);return t.channels.reduce((n,i)=>((a.alpha||i!=="alpha")&&(n[i]=kte(a[i]||t.ranges[i])),n),{mode:e})},Ste=Lte,Uc=(e,r="rgb",t=!1)=>{let a=r?an(r).channels:null,n=r?kt(r):Fi;return i=>{let l=n(i);if(!l)return;let o=(a||an(l.mode).channels).reduce((u,f)=>{let c=e(l[f],f,l,r);return c!==void 0&&!isNaN(c)&&(u[f]=c),u},{mode:l.mode});if(!t)return o;let s=Fi(i);return s&&s.mode!==o.mode?kt(s.mode)(o):o}},GT=(e,r,t)=>r!=="alpha"?(e||0)*(t.alpha!==void 0?t.alpha:1):e,UT=(e,r,t)=>r!=="alpha"&&t.alpha!==0?(e||0)/(t.alpha!==void 0?t.alpha:1):e,Z3=(e=1,r=0)=>(t,a)=>a!=="alpha"?t*e+r:t,qte=(e=1,r=1,t=0)=>(a,n)=>n!=="alpha"?e*Math.pow(a,r)+t:a,Dte=e=>{e[0]===void 0&&(e[0]=0),e[e.length-1]===void 0&&(e[e.length-1]=1);let r=1,t,a,n,i;for(;rr=>e<=0?1:e>=1?0:Math.pow(r,Math.log(.5)/Math.log(e)),VT=Ete,Ud=e=>typeof e=="function",ks=e=>e&&typeof e=="object",_w=e=>typeof e=="number",XT=(e,r="rgb",t,a)=>{let n=an(r),i=kt(r),l=[],o=[],s={};e.forEach(v=>{Array.isArray(v)?(l.push(i(v[0])),o.push(v[1])):_w(v)||Ud(v)?s[o.length]=v:(l.push(i(v)),o.push(void 0))}),Pte(o);let u=n.channels.reduce((v,h)=>{let p;return ks(t)&&ks(t[h])&&t[h].fixup?p=t[h].fixup:ks(n.interpolate[h])&&n.interpolate[h].fixup?p=n.interpolate[h].fixup:p=y=>y,v[h]=p(l.map(y=>y[h])),v},{});if(a){let v=l.map((h,p)=>n.channels.reduce((y,m)=>(y[m]=u[m][p],y),{mode:r}));u=n.channels.reduce((h,p)=>(h[p]=v.map(y=>{let m=a(y[p],p,y,r);return isNaN(m)?void 0:m}),h),{})}let f=n.channels.reduce((v,h)=>{let p;return Ud(t)?p=t:ks(t)&&Ud(t[h])?p=t[h]:ks(t)&&ks(t[h])&&t[h].use?p=t[h].use:Ud(n.interpolate[h])?p=n.interpolate[h]:ks(n.interpolate[h])&&(p=n.interpolate[h].use),v[h]=p(u[h]),v},{}),c=l.length-1;return v=>{if(v=Math.min(Math.max(0,v),1),v<=o[0])return l[0];if(v>o[c])return l[c];let h=0;for(;o[h]{let M=f[x](_);return M!==void 0&&(w[x]=M),w},{mode:r})}},Rte=(e,r="rgb",t)=>XT(e,r,t),WT=(e,r)=>(t,a="rgb",n)=>{let i=r?Uc(r,a):void 0,l=XT(t,a,n,e);return i?o=>i(l(o)):l},zte=WT(GT,UT),Vd=(e,r)=>(e+r)%r,ZT=(e,r,t,a,n)=>{let i=n*n,l=i*n;return((1-3*n+3*i-l)*e+(4-6*i+3*l)*r+(1+3*n+3*i-3*l)*t+l*a)/6},JT=e=>r=>{let t=e.length-1,a=r>=1?t-1:Math.max(0,Math.floor(r*t));return ZT(a>0?e[a-1]:2*e[a]-e[a+1],e[a],e[a+1],ar=>{let t=e.length-1,a=Math.floor(r*t);return ZT(e[Vd(a-1,e.length)],e[Vd(a,e.length)],e[Vd(a+1,e.length)],e[Vd(a+2,e.length)],(r-a/t)*t)},KT=e=>{let r,t=e.length-1,a=new Array(t),n=new Array(t),i=new Array(t);for(a[1]=1/4,n[1]=(6*e[1]-e[0])/4,r=2;r0&&(i[t-1]=n[t-1]),r=t-2;r>0;--r)i[r]=n[r]-a[r]*i[r+1];return i},Fte=e=>JT(KT(e)),Nte=e=>$T(KT(e)),c0=Math.sign,T3=Math.min,Bn=Math.abs,J3=e=>{let r=e.length-1,t=[],a=[],n=[];for(let i=0;i0?.5*(e[i+1]-e[i-1])*r:void 0),n.push(i>0?(c0(t[i-1])+c0(t[i]))*T3(Bn(t[i-1]),Bn(t[i]),.5*Bn(a[i])):void 0);return[t,a,n]},$3=(e,r,t)=>{let a=e.length-1,n=a*a;return i=>{let l;i>=1?l=a-1:l=Math.max(0,Math.floor(i*a));let o=i-l/a,s=o*o,u=s*o;return(r[l]+r[l+1]-2*t[l])*n*u+(3*t[l]-2*r[l]-r[l+1])*a*s+r[l]*o+e[l]}},Ite=e=>{if(e.length<3)return _r(e);let r=e.length-1,[t,,a]=J3(e);return a[0]=t[0],a[r]=t[r-1],$3(e,a,t)},Bte=e=>{if(e.length<3)return _r(e);let r=e.length-1,[t,a,n]=J3(e);return a[0]=(e[1]*2-e[0]*1.5-e[2]*.5)*r,a[r]=(e[r]*1.5-e[r-1]*2+e[r-2]*.5)*r,n[0]=a[0]*t[0]<=0?0:Bn(a[0])>2*Bn(t[0])?2*t[0]:a[0],n[r]=a[r]*t[r-1]<=0?0:Bn(a[r])>2*Bn(t[r-1])?2*t[r-1]:a[r],$3(e,n,t)},Hte=e=>{let r=e.length-1,[t,a,n]=J3(e);a[0]=.5*(e[1]-e[r])*r,a[r]=.5*(e[0]-e[r-1])*r;let i=(e[0]-e[r])*r,l=i;return n[0]=(c0(i)+c0(t[0]))*T3(Bn(i),Bn(t[0]),.5*Bn(a[0])),n[r]=(c0(t[r-1])+c0(l))*T3(Bn(t[r-1]),Bn(l),.5*Bn(a[r])),$3(e,n,t)},Ote=(e=1)=>e===1?r=>r:r=>Math.pow(r,e),jT=Ote,Yte=(e=2,r=1)=>{let t=jT(r);if(e<2)return e<1?[]:[t(.5)];let a=[];for(let n=0;n{let r={mode:e.mode,r:Math.max(0,Math.min(e.r!==void 0?e.r:0,1)),g:Math.max(0,Math.min(e.g!==void 0?e.g:0,1)),b:Math.max(0,Math.min(e.b!==void 0?e.b:0,1))};return e.alpha!==void 0&&(r.alpha=e.alpha),r},rM=e=>eM(QT(e)),tM=e=>e!==void 0&&(e.r===void 0||e.r>=0&&e.r<=1)&&(e.g===void 0||e.g>=0&&e.g<=1)&&(e.b===void 0||e.b>=0&&e.b<=1);function K3(e){return tM(QT(e))}function ch(e="rgb"){let{gamut:r}=an(e);if(!r)return a=>!0;let t=kt(typeof r=="string"?r:e);return a=>tM(t(a))}function Ute(e){return e=Fi(e),e===void 0||K3(e)?e:kt(e.mode)(rM(e))}function j3(e="rgb"){let{gamut:r}=an(e);if(!r)return i=>Fi(i);let t=typeof r=="string"?r:e,a=kt(t),n=ch(t);return i=>{let l=Fi(i);if(!l)return;let o=a(l);if(n(o))return l;let s=eM(o);return l.mode===s.mode?s:kt(l.mode)(s)}}function Vte(e,r="lch",t="rgb"){e=Fi(e);let a=t==="rgb"?K3:ch(t),n=t==="rgb"?rM:j3(t);if(e===void 0||a(e))return e;let i=kt(e.mode);e=kt(r)(e);let l=Pt(ut({},e),{c:0});if(!a(l))return i(n(l));let o=0,s=e.c!==void 0?e.c:0,u=an(r).ranges.c,f=(u[1]-u[0])/Math.pow(2,13),c=l.c;for(;s-o>f;)l.c=o+(s-o)*.5,a(l)?(c=l.c,o=l.c):s=l.c;return i(a(l)?l:Pt(ut({},l),{c}))}function Xte(e="rgb",r="oklch",t=p0("oklch"),a=.02){let n=kt(e),i=an(e);if(!i.gamut)return f=>n(f);let l=ch(e),o=j3(e),s=kt(r),{ranges:u}=an(r);if(!u.l||!u.c)throw new Error("LCH-like space expected");return f=>{if(f=Fi(f),f===void 0)return;let c=ut({},s(f));if(c.l===void 0&&(c.l=0),c.c===void 0&&(c.c=0),c.l>=u.l[1]){let m=Pt(ut({},i.white),{mode:e});return f.alpha!==void 0&&(m.alpha=f.alpha),m}if(c.l<=u.l[0]){let m=Pt(ut({},i.black),{mode:e});return f.alpha!==void 0&&(m.alpha=f.alpha),m}if(l(c))return n(c);let v=0,h=c.c,p=(u.c[1]-u.c[0])/4e3,y=o(c);for(;h-v>p;)c.c=(v+h)*.5,y=o(c),l(c)||t&&a>0&&t(c,y)<=a?v=c.c:h=c.c;return n(l(c)?c:y)}}var Wte=(e,r=p0(),t=a=>a)=>{let a=e.map((n,i)=>({color:t(n),i}));return(n,i=1,l=1/0)=>(isFinite(i)&&(i=Math.max(1,Math.min(i,a.length-1))),a.forEach(o=>{o.d=r(n,o.color)}),a.sort((o,s)=>o.d-s.d).slice(0,i).filter(o=>o.de[o.i]))},Zte=Wte,Q3=e=>Math.max(e,0),e5=e=>Math.max(Math.min(e,1),0),Jte=(e,r,t)=>e===void 0||r===void 0?void 0:e+t*(r-e),$te=e=>{let r=1-e5(e);return[.393+.607*r,.769-.769*r,.189-.189*r,0,.349-.349*r,.686+.314*r,.168-.168*r,0,.272-.272*r,.534-.534*r,.131+.869*r,0,0,0,0,1]},Kte=e=>{let r=Q3(e);return[.213+.787*r,.715-.715*r,.072-.072*r,0,.213-.213*r,.715+.285*r,.072-.072*r,0,.213-.213*r,.715-.715*r,.072+.928*r,0,0,0,0,1]},jte=e=>{let r=1-e5(e);return[.2126+.7874*r,.7152-.7152*r,.0722-.0722*r,0,.2126-.2126*r,.7152+.2848*r,.0722-.0722*r,0,.2126-.2126*r,.7152-.7152*r,.0722+.9278*r,0,0,0,0,1]},Qte=e=>{let r=Math.PI*e/180,t=Math.cos(r),a=Math.sin(r);return[.213+t*.787-a*.213,.715-t*.715-a*.715,.072-t*.072+a*.928,0,.213-t*.213+a*.143,.715+t*.285+a*.14,.072-t*.072-a*.283,0,.213-t*.213-a*.787,.715-t*.715+a*.715,.072+t*.928+a*.072,0,0,0,0,1]},vh=(e,r,t=!1)=>{let a=kt(r),n=an(r).channels;return i=>{let l=a(i);if(!l)return;let o={mode:r},s,u=n.length;for(let c=0;c{let t=Q3(e);return Uc(Z3(t),r,!0)},rae=(e=1,r="rgb")=>{let t=Q3(e);return Uc(Z3(t,(1-t)/2),r,!0)},tae=(e=1,r="rgb")=>vh($te(e),r,!0),aae=(e=1,r="rgb")=>vh(Kte(e),r,!0),nae=(e=1,r="rgb")=>vh(jte(e),r,!0),iae=(e=1,r="rgb")=>{let t=e5(e);return Uc((a,n)=>n==="alpha"?a:Jte(t,1-t,a),r,!0)},lae=(e=0,r="rgb")=>vh(Qte(e),r,!0),oae=kt("rgb"),sae=[[1,0,-0,0,1,0,-0,-0,1],[.856167,.182038,-.038205,.029342,.955115,.015544,-.00288,-.001563,1.004443],[.734766,.334872,-.069637,.05184,.919198,.028963,-.004928,-.004209,1.009137],[.630323,.465641,-.095964,.069181,.890046,.040773,-.006308,-.007724,1.014032],[.539009,.579343,-.118352,.082546,.866121,.051332,-.007136,-.011959,1.019095],[.458064,.679578,-.137642,.092785,.846313,.060902,-.007494,-.016807,1.024301],[.38545,.769005,-.154455,.100526,.829802,.069673,-.007442,-.02219,1.029632],[.319627,.849633,-.169261,.106241,.815969,.07779,-.007025,-.028051,1.035076],[.259411,.923008,-.18242,.110296,.80434,.085364,-.006276,-.034346,1.040622],[.203876,.990338,-.194214,.112975,.794542,.092483,-.005222,-.041043,1.046265],[.152286,1.052583,-.204868,.114503,.786281,.099216,-.003882,-.048116,1.051998]],uae=[[1,0,-0,0,1,0,-0,-0,1],[.866435,.177704,-.044139,.049567,.939063,.01137,-.003453,.007233,.99622],[.760729,.319078,-.079807,.090568,.889315,.020117,-.006027,.013325,.992702],[.675425,.43385,-.109275,.125303,.847755,.026942,-.00795,.018572,.989378],[.605511,.52856,-.134071,.155318,.812366,.032316,-.009376,.023176,.9862],[.547494,.607765,-.155259,.181692,.781742,.036566,-.01041,.027275,.983136],[.498864,.674741,-.173604,.205199,.754872,.039929,-.011131,.030969,.980162],[.457771,.731899,-.18967,.226409,.731012,.042579,-.011595,.034333,.977261],[.422823,.781057,-.203881,.245752,.709602,.044646,-.011843,.037423,.974421],[.392952,.82361,-.216562,.263559,.69021,.046232,-.01191,.040281,.97163],[.367322,.860646,-.227968,.280085,.672501,.047413,-.01182,.04294,.968881]],fae=[[1,0,-0,0,1,0,-0,-0,1],[.92667,.092514,-.019184,.021191,.964503,.014306,.008437,.054813,.93675],[.89572,.13333,-.02905,.029997,.9454,.024603,.013027,.104707,.882266],[.905871,.127791,-.033662,.026856,.941251,.031893,.01341,.148296,.838294],[.948035,.08949,-.037526,.014364,.946792,.038844,.010853,.193991,.795156],[1.017277,.027029,-.044306,-.006113,.958479,.047634,.006379,.248708,.744913],[1.104996,-.046633,-.058363,-.032137,.971635,.060503,.001336,.317922,.680742],[1.193214,-.109812,-.083402,-.058496,.97941,.079086,-.002346,.403492,.598854],[1.257728,-.139648,-.118081,-.078003,.975409,.102594,-.003316,.501214,.502102],[1.278864,-.125333,-.153531,-.084748,.957674,.127074,-989e-6,.601151,.399838],[1.255528,-.076749,-.178779,-.078411,.930809,.147602,.004733,.691367,.3039]],r5=(e,r)=>{let t=Math.max(0,Math.min(1,r)),a=Math.round(t/.1),n=Math.round(t%.1),i=e[a];if(n>0&&aCs(i[s],l[s],n))}return l=>{let o=Fi(l);if(o===void 0)return;let{r:s,g:u,b:f}=oae(o),c={mode:"rgb",r:i[0]*s+i[1]*u+i[2]*f,g:i[3]*s+i[4]*u+i[5]*f,b:i[6]*s+i[7]*u+i[8]*f};return o.alpha!==void 0&&(c.alpha=o.alpha),kt(o.mode)(c)}},cae=(e=1)=>r5(sae,e),vae=(e=1)=>r5(uae,e),dae=(e=1)=>r5(fae,e),hae=e=>e*e*(3-2*e),pae=e=>.5-Math.sin(Math.asin(1-2*e)/3),mae=e=>e*e*e*(e*(e*6-15)+10),yae=mae,gae=e=>(1-Math.cos(e*Math.PI))/2,xae=gae;function M3(e){let r=kt("lrgb")(e);return .2126*r.r+.7152*r.g+.0722*r.b}function bae(e,r){let t=M3(e),a=M3(r);return(Math.max(t,a)+.05)/(Math.min(t,a)+.05)}var _ae=dt(zw),wae=dt(Hw),Tae=dt(Vw),Mae=dt(Xw),Aae=dt(Jw),kae=dt(q3),Cae=dt(E3),Lae=dt(aT),Sae=dt(lT),qae=dt(oT),Dae=dt(sT),Pae=dt(uh),Eae=dt(fT),Rae=dt(fh),zae=dt(vT),Fae=dt(pT),Nae=dt(mT),Iae=dt(yT),Bae=dt(xT),Hae=dt(bT),Oae=dt(wT),Yae=dt(MT),Gae=dt(AT),Uae=dt(kT),Vae=dt(CT),Xae=dt(qs),Wae=dt(DT),Zae=dt(PT),Jae=dt(zT),$ae=dt(IT)});var t5={};vt(t5,{default:()=>jae});var Kae,jae,a5=Lr(()=>{"use strict";Kae={format:{valType:"enumerated",values:["png","jpeg","webp","svg","full-json"],dflt:"png",description:"Sets the format of exported image."},width:{valType:"number",min:1,description:["Sets the exported image width.","Defaults to the value found in `layout.width`","If set to *null*, the exported image width will match the current graph width."].join(" ")},height:{valType:"number",min:1,description:["Sets the exported image height.","Defaults to the value found in `layout.height`","If set to *null*, the exported image height will match the current graph height."].join(" ")},scale:{valType:"number",min:0,dflt:1,description:["Sets a scaling for the generated image.","If set, all features of a graphs (e.g. text, line width)","are scaled, unlike simply setting","a bigger *width* and *height*."].join(" ")},setBackground:{valType:"any",dflt:!1,description:["Sets the image background mode.","By default, the image background is determined by `layout.paper_bgcolor`,","the *transparent* mode.","One might consider setting `setBackground` to *opaque*","when exporting a *jpeg* image as JPEGs do not support opacity."].join(" ")},imageDataOnly:{valType:"boolean",dflt:!1,description:["Determines whether or not the return value is prefixed by","the image format's corresponding 'data:image;' spec."].join(" ")}},jae=Kae});var mo=U((ATe,uM)=>{"use strict";var{format:Qae,width:ene,height:rne,scale:tne}=(a5(),Fe(t5)).default,iM=tne,{dflt:MTe}=iM,ane=L9(iM,["dflt"]),lM={staticPlot:{valType:"boolean",dflt:!1},typesetMath:{valType:"boolean",dflt:!0},plotlyServerURL:{valType:"string",dflt:"https://cloud.plotly.com/newchart"},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","map"],extras:[!0,!1],dflt:"gl3d+geo+map"},doubleClick:{valType:"enumerated",values:[!1,"reset","autosize","reset+autosize"],dflt:"reset+autosize"},doubleClickDelay:{valType:"number",dflt:500,min:0},showAxisDragHandles:{valType:"boolean",dflt:!0},showAxisRangeEntryBoxes:{valType:"boolean",dflt:!0},showTips:{valType:"boolean",dflt:!0},displayNotifier:{valType:"boolean",dflt:!0},displayModeBar:{valType:"enumerated",values:["hover",!0,!1],dflt:"hover"},showSendToCloud:{valType:"boolean",dflt:!0},modeBarButtonsToRemove:{valType:"any",dflt:[]},modeBarButtonsToAdd:{valType:"any",dflt:[]},modeBarButtons:{valType:"any",dflt:!1},toImageButtonOptions:{format:Qae,filename:{valType:"string"},width:ene,height:rne,scale:ane},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/un/"},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},locale:{valType:"string",dflt:"en-US"},locales:{valType:"any",dflt:{}}},oM={};function sM(e,r){for(let t in e){let a=e[t];typeof a!="object"||a===null||(a.valType?"dflt"in a&&(r[t]=a.dflt):(r[t]||(r[t]={}),sM(a,r[t])))}}sM(lM,oM);uM.exports={configAttributes:lM,dfltConfig:oM}});var i5=U((CTe,fM)=>{"use strict";var n5=Er(),nne=Gr(),Vc=[];fM.exports=function(e,r,t){var o;if(((o=t==null?void 0:t._context)==null?void 0:o.displayNotifier)===!1||Vc.indexOf(e)!==-1)return;Vc.push(e);var a=1e3;nne(r)?a=r:r==="long"&&(a=3e3);var n=n5.select("body").selectAll(".plotly-notifier").data([0]);n.enter().append("div").classed("plotly-notifier",!0);var i=n.selectAll(".notifier-note").data(Vc);function l(s){s.duration(700).style("opacity",0).each("end",function(u){var f=Vc.indexOf(u);f!==-1&&Vc.splice(f,1),n5.select(this).remove()})}i.enter().append("div").classed("notifier-note",!0).style("opacity",0).each(function(s){var u=n5.select(this);u.append("button").classed("notifier-close",!0).html("×").on("click",function(){u.transition().call(l)});for(var f=u.append("p"),c=s.split(//g),v=0;v{"use strict";var x0=mo().dfltConfig,l5=i5(),o5=cM.exports={};o5.log=function(){var e;if(x0.logging>1){var r=["LOG:"];for(e=0;e1){var t=[];for(e=0;e"),"long")}};o5.warn=function(){var e;if(x0.logging>0){var r=["WARN:"];for(e=0;e0){var t=[];for(e=0;e"),"stick")}};o5.error=function(){var e;if(x0.logging>0){var r=["ERROR:"];for(e=0;e0){var t=[];for(e=0;e"),"stick")}}});var ui=U(Es=>{"use strict";Es.defaults=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"];Es.defaultLine="#444";Es.lightLine="#eee";Es.background="#fff";Es.borderLine="#BEC8D9";Es.lightFraction=1e3/11});var kr=U((qTe,bM)=>{"use strict";var{converter:vM,formatHex:ine,formatRgb:lne,wcagContrast:one,wcagLuminance:sne}=nM(),{isArrayOrTypedArray:dM}=Tn(),{warn:une}=yo(),{background:Wc,defaultLine:f5,defaults:fne,lightLine:cne}=ui(),hM=vM("rgb"),vne=vM("hsl"),pM=e=>{if(typeof e!="string")return;let r=e.trim().toLowerCase();if(!/^[0-9a-f]+$/.test(r))try{return hM(r)}catch(t){return}},nn=e=>e>0?e>1?1:e:0,dne={mode:"rgb",r:0,g:0,b:0,alpha:1},s5=e=>Math.round(e*255e6)/255e6,mM=e=>Pt(ut({},e),{r:s5(e.r),g:s5(e.g),b:s5(e.b)}),Hn=e=>lne(mM(e)),hne=e=>ine(mM(e)),pne=e=>{var r,t,a,n;return typeof e=="string"?`"${e}"`:dM(e)?`${(t=(r=e.constructor)==null?void 0:r.name)!=null?t:"Array"}(${e.length})`:typeof e=="object"?(n=(a=e.constructor)==null?void 0:a.name)!=null?n:"Object":`${typeof e} ${e}`},Ht=(e,r)=>{var a;let t=pM(e);return t?((a=t.alpha)!=null||(t.alpha=1),t):(!r&&e!=null&&une(`Invalid color specifier: ${pne(e)}. Defaulting to "#000"`),dne)},Xc=e=>Hn(Pt(ut({},Ht(e)),{alpha:1})),mne=e=>e?Ht(e).alpha:0,yM=e=>dM(e)&&e.length>2&&Number.isFinite(e[0])&&Number.isFinite(e[1])&&Number.isFinite(e[2]),yne=e=>{let[r,t,a,n]=e,i=Math.max(r,t,a)>1?1/255:1,l=n!=null?n:1;return{mode:"rgb",r:r*i,g:t*i,b:a*i,alpha:l>1?l/255:l}},gne=(e,r)=>{let t=yM(e)?yne(e):Ht(e,!0),a=[nn(t.r),nn(t.g),nn(t.b),nn(t.alpha)];return r==="uint8"||r==="uint8_clamped"?Uint8Array.from(a,n=>Math.round(n*255)):r==="float32"?Float32Array.from(a):r==="float64"?Float64Array.from(a):a},xne=(e,r)=>Hn(Pt(ut({},Ht(e)),{alpha:nn(r)})),gM=(e,r)=>{let t=Ht(e),a=t.alpha;if(a===1)return Hn(t);let n=Ht(r||Wc),i=n.alpha,l=(o,s)=>(i===1?s:1-i+s*i)*(1-a)+o*a;return Hn({mode:"rgb",r:l(t.r,n.r),g:l(t.g,n.g),b:l(t.b,n.b)})},bne=(e,r,t)=>{let a=Ht(e),n=Ht(r),i=(l,o)=>t*l+(1-t)*o;return Hn({mode:"rgb",r:i(a.r,n.r),g:i(a.g,n.g),b:i(a.b,n.b)})},u5=(e,r)=>{let t=Ht(e),a=vne(t)||{mode:"hsl",h:0,s:0,l:0};return Hn(hM(Pt(ut({},a),{l:nn((a.l*100+r)/100),alpha:t.alpha})))},dh=(e,r)=>one(Ht(e),Ht(r)),xM=e=>dh(e,Wc)>dh(e,f5),_ne=Hn(Ht(Wc)),wne=Hn(Ht(f5)),Tne=(e,r,t)=>(Ht(e).alpha!==1&&(e=gM(e,Wc)),xM(e)?r?u5(e,r):_ne:t?u5(e,-t):wne),Mne=(e,r)=>{e.style({stroke:Xc(r),"stroke-opacity":Ht(r).alpha})},Ane=(e,r)=>{e.style({fill:Xc(r),"fill-opacity":Ht(r).alpha})},kne=(e,r)=>!!(e&&r&&Xc(e)===Xc(r)),Cne=e=>pM(e)!==void 0,Lne=(e,r)=>{r=r===0?0:r||10;let t=Ht(e),a=r/100;return Hn(Pt(ut({},t),{r:nn(t.r+a),g:nn(t.g+a),b:nn(t.b+a)}))},Sne=(e,r,t)=>{let a=Ht(e),n=Ht(r),i=t/100,l=n.alpha-a.alpha,o=2*i-1,s=((o*l===-1?o:(o+l)/(1+o*l))+1)/2,u=1-s,f=(c,v)=>u*c+s*v;return Hn({mode:"rgb",r:f(a.r,n.r),g:f(a.g,n.g),b:f(a.b,n.b),alpha:a.alpha*(1-i)+n.alpha*i})},qne=(e,r=["#000","#fff"])=>{let t,a=-1/0;for(let n of r){let i=dh(e,n);i>a&&(a=i,t=Hn(Ht(n)))}return t},Dne=e=>Hn(Ht(e)),Pne=e=>hne(Ht(e)).toUpperCase(),Ene=e=>{let r=Ht(e);return[nn(r.r)*255,nn(r.g)*255,nn(r.b)*255,nn(r.alpha)]},Rne=([e,r,t,a])=>Hn({mode:"rgb",r:e/255,g:r/255,b:t/255,alpha:a}),zne=e=>{let r=Ht(e);return sne({mode:"rgb",r:nn(r.r),g:nn(r.g),b:nn(r.b)})};bM.exports={addOpacity:xne,adjustLightness:u5,background:Wc,brighten:Lne,combine:gM,contrast:Tne,defaultLine:f5,defaults:fne,equals:kne,fill:Ane,hexString:Pne,interpolate:bne,isChannelArray:yM,isDark:xM,isValid:Cne,lightLine:cne,luminosity:zne,mix:Sne,mostReadable:qne,normalize:gne,opacity:mne,parse:Ht,rgb:Xc,rgbaArray:Ene,rgbaArrayToString:Rne,rgbaString:Dne,stroke:Mne,wcagContrast:dh}});var Rs=U((PTe,TM)=>{"use strict";var Fne=kr(),hh={Greys:[[0,"rgb(0,0,0)"],[1,"rgb(255,255,255)"]],YlGnBu:[[0,"rgb(8,29,88)"],[.125,"rgb(37,52,148)"],[.25,"rgb(34,94,168)"],[.375,"rgb(29,145,192)"],[.5,"rgb(65,182,196)"],[.625,"rgb(127,205,187)"],[.75,"rgb(199,233,180)"],[.875,"rgb(237,248,217)"],[1,"rgb(255,255,217)"]],Greens:[[0,"rgb(0,68,27)"],[.125,"rgb(0,109,44)"],[.25,"rgb(35,139,69)"],[.375,"rgb(65,171,93)"],[.5,"rgb(116,196,118)"],[.625,"rgb(161,217,155)"],[.75,"rgb(199,233,192)"],[.875,"rgb(229,245,224)"],[1,"rgb(247,252,245)"]],YlOrRd:[[0,"rgb(128,0,38)"],[.125,"rgb(189,0,38)"],[.25,"rgb(227,26,28)"],[.375,"rgb(252,78,42)"],[.5,"rgb(253,141,60)"],[.625,"rgb(254,178,76)"],[.75,"rgb(254,217,118)"],[.875,"rgb(255,237,160)"],[1,"rgb(255,255,204)"]],Bluered:[[0,"rgb(0,0,255)"],[1,"rgb(255,0,0)"]],RdBu:[[0,"rgb(5,10,172)"],[.35,"rgb(106,137,247)"],[.5,"rgb(190,190,190)"],[.6,"rgb(220,170,132)"],[.7,"rgb(230,145,90)"],[1,"rgb(178,10,28)"]],Reds:[[0,"rgb(220,220,220)"],[.2,"rgb(245,195,157)"],[.4,"rgb(245,160,105)"],[1,"rgb(178,10,28)"]],Blues:[[0,"rgb(5,10,172)"],[.35,"rgb(40,60,190)"],[.5,"rgb(70,100,245)"],[.6,"rgb(90,120,245)"],[.7,"rgb(106,137,247)"],[1,"rgb(220,220,220)"]],Picnic:[[0,"rgb(0,0,255)"],[.1,"rgb(51,153,255)"],[.2,"rgb(102,204,255)"],[.3,"rgb(153,204,255)"],[.4,"rgb(204,204,255)"],[.5,"rgb(255,255,255)"],[.6,"rgb(255,204,255)"],[.7,"rgb(255,153,255)"],[.8,"rgb(255,102,204)"],[.9,"rgb(255,102,102)"],[1,"rgb(255,0,0)"]],Rainbow:[[0,"rgb(150,0,90)"],[.125,"rgb(0,0,200)"],[.25,"rgb(0,25,255)"],[.375,"rgb(0,152,255)"],[.5,"rgb(44,255,150)"],[.625,"rgb(151,255,0)"],[.75,"rgb(255,234,0)"],[.875,"rgb(255,111,0)"],[1,"rgb(255,0,0)"]],Portland:[[0,"rgb(12,51,131)"],[.25,"rgb(10,136,186)"],[.5,"rgb(242,211,56)"],[.75,"rgb(242,143,56)"],[1,"rgb(217,30,30)"]],Jet:[[0,"rgb(0,0,131)"],[.125,"rgb(0,60,170)"],[.375,"rgb(5,255,255)"],[.625,"rgb(255,255,0)"],[.875,"rgb(250,0,0)"],[1,"rgb(128,0,0)"]],Hot:[[0,"rgb(0,0,0)"],[.3,"rgb(230,0,0)"],[.6,"rgb(255,210,0)"],[1,"rgb(255,255,255)"]],Blackbody:[[0,"rgb(0,0,0)"],[.2,"rgb(230,0,0)"],[.4,"rgb(230,210,0)"],[.7,"rgb(255,255,255)"],[1,"rgb(160,200,255)"]],Earth:[[0,"rgb(0,0,130)"],[.1,"rgb(0,180,180)"],[.2,"rgb(40,210,40)"],[.4,"rgb(230,230,50)"],[.6,"rgb(120,70,20)"],[1,"rgb(255,255,255)"]],Electric:[[0,"rgb(0,0,0)"],[.15,"rgb(30,0,100)"],[.4,"rgb(120,0,100)"],[.6,"rgb(160,90,0)"],[.8,"rgb(230,200,0)"],[1,"rgb(255,250,220)"]],Viridis:[[0,"#440154"],[.06274509803921569,"#48186a"],[.12549019607843137,"#472d7b"],[.18823529411764706,"#424086"],[.25098039215686274,"#3b528b"],[.3137254901960784,"#33638d"],[.3764705882352941,"#2c728e"],[.4392156862745098,"#26828e"],[.5019607843137255,"#21918c"],[.5647058823529412,"#1fa088"],[.6274509803921569,"#28ae80"],[.6901960784313725,"#3fbc73"],[.7529411764705882,"#5ec962"],[.8156862745098039,"#84d44b"],[.8784313725490196,"#addc30"],[.9411764705882353,"#d8e219"],[1,"#fde725"]],Cividis:[[0,"rgb(0,32,76)"],[.058824,"rgb(0,42,102)"],[.117647,"rgb(0,52,110)"],[.176471,"rgb(39,63,108)"],[.235294,"rgb(60,74,107)"],[.294118,"rgb(76,85,107)"],[.352941,"rgb(91,95,109)"],[.411765,"rgb(104,106,112)"],[.470588,"rgb(117,117,117)"],[.529412,"rgb(131,129,120)"],[.588235,"rgb(146,140,120)"],[.647059,"rgb(161,152,118)"],[.705882,"rgb(176,165,114)"],[.764706,"rgb(192,177,109)"],[.823529,"rgb(209,191,102)"],[.882353,"rgb(225,204,92)"],[.941176,"rgb(243,219,79)"],[1,"rgb(255,233,69)"]]},_M=hh.RdBu;function Nne(e,r){if(r||(r=_M),!e)return r;function t(){try{e=hh[e]||JSON.parse(e)}catch(a){e=r}}return typeof e=="string"&&(t(),typeof e=="string"&&t()),wM(e)?e:r}function wM(e){var r=0;if(!Array.isArray(e)||e.length<2||!e[0]||!e[e.length-1]||+e[0][0]!=0||+e[e.length-1][0]!=1)return!1;for(var t=0;tOne,HIDE_PLACEHOLDER:()=>Hne,SHOW_PLACEHOLDER:()=>Bne});var Bne,Hne,One,_0=Lr(()=>{"use strict";Bne=100,Hne=1e3,One=.2});var Zc={};vt(Zc,{counter:()=>zs});function zs(e,r="",t,a){let n=r+(t?"":"$"),i=a===!1?"":"^";return e==="xy"?new RegExp(i+"x"+c5+"y"+c5+n):new RegExp(i+e+c5+n)}var c5,w0=Lr(()=>{"use strict";c5="([2-9]|[1-9][0-9]+)?"});var kM=U(kn=>{"use strict";var v5=Gr(),MM=At().extendFlat,Yne=Mn(),Gne=Rs(),d5=kr(),Une=(_0(),Fe(b0)).DESELECTDIM,T0=Bd(),AM=(w0(),Fe(Zc)).counter,Vne=(u0(),Fe(s0)).modHalf,Ni=Tn().isArrayOrTypedArray,go=Tn().isTypedArraySpec,xo=Tn().decodeTypedArraySpec;kn.valObjectMeta={data_array:{coerceFunction:function(e,r,t){r.set(Ni(e)?e:go(e)?xo(e):t)}},enumerated:{coerceFunction:function(e,r,t,a){a.coerceNumber&&(e=+e),a.values.indexOf(e)===-1?r.set(t):r.set(e)},validateFunction:function(e,r){r.coerceNumber&&(e=+e);for(var t=r.values,a=0;ai===!0||i===!1;n(e)||a.arrayOk&&Array.isArray(e)&&e.length>0&&e.every(n)?r.set(e):r.set(t)}},number:{coerceFunction:function(e,r,t,a){go(e)&&(e=xo(e)),!v5(e)||a.min!==void 0&&ea.max?r.set(t):r.set(+e)}},integer:{coerceFunction:function(e,r,t,a){if((a.extras||[]).indexOf(e)!==-1){r.set(e);return}go(e)&&(e=xo(e)),e%1||!v5(e)||a.min!==void 0&&ea.max?r.set(t):r.set(+e)}},string:{coerceFunction:function(e,r,t,a){if(typeof e!="string"){var n=typeof e=="number";a.strict===!0||!n?r.set(t):r.set(String(e))}else a.noBlank&&!e?r.set(t):r.set(e)}},color:{coerceFunction:function(e,r,t){go(e)&&(e=xo(e)),d5.isValid(e)?r.set(e):r.set(t)}},colorlist:{coerceFunction:function(e,r,t){!Array.isArray(e)||!e.length?r.set(t):e.every(a=>d5.isValid(a))?r.set(e):r.set(t)}},colorscale:{coerceFunction:function(e,r,t){r.set(Gne.get(e,t))}},angle:{coerceFunction:function(e,r,t){go(e)&&(e=xo(e)),e==="auto"?r.set("auto"):v5(e)?r.set(Vne(+e,360)):r.set(t)}},subplotid:{coerceFunction:function(e,r,t,a){var n=a.regex||AM(t);let i=l=>typeof l=="string"&&n.test(l);i(e)||a.arrayOk&&Ni(e)&&e.length>0&&e.every(i)?r.set(e):r.set(t)},validateFunction:function(e,r){var t=r.dflt;return e===t?!0:typeof e!="string"?!1:!!AM(t).test(e)}},flaglist:{coerceFunction:function(e,r,t,a){if((a.extras||[]).indexOf(e)!==-1){r.set(e);return}if(typeof e!="string"){r.set(t);return}for(var n=e.split("+"),i=0;i{"use strict";CM.exports=function(){}});var h5=U((zTe,LM)=>{"use strict";LM.exports=function(r,t){if(t instanceof RegExp){for(var a=t.toString(),n=0;n{SM.exports=Xne;function Xne(){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}});var PM=U((NTe,DM)=>{DM.exports=Wne;function Wne(e){var r=new Float32Array(16);return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4],r[5]=e[5],r[6]=e[6],r[7]=e[7],r[8]=e[8],r[9]=e[9],r[10]=e[10],r[11]=e[11],r[12]=e[12],r[13]=e[13],r[14]=e[14],r[15]=e[15],r}});var RM=U((ITe,EM)=>{EM.exports=Zne;function Zne(e,r){return e[0]=r[0],e[1]=r[1],e[2]=r[2],e[3]=r[3],e[4]=r[4],e[5]=r[5],e[6]=r[6],e[7]=r[7],e[8]=r[8],e[9]=r[9],e[10]=r[10],e[11]=r[11],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15],e}});var p5=U((BTe,zM)=>{zM.exports=Jne;function Jne(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}});var NM=U((HTe,FM)=>{FM.exports=$ne;function $ne(e,r){if(e===r){var t=r[1],a=r[2],n=r[3],i=r[6],l=r[7],o=r[11];e[1]=r[4],e[2]=r[8],e[3]=r[12],e[4]=t,e[6]=r[9],e[7]=r[13],e[8]=a,e[9]=i,e[11]=r[14],e[12]=n,e[13]=l,e[14]=o}else e[0]=r[0],e[1]=r[4],e[2]=r[8],e[3]=r[12],e[4]=r[1],e[5]=r[5],e[6]=r[9],e[7]=r[13],e[8]=r[2],e[9]=r[6],e[10]=r[10],e[11]=r[14],e[12]=r[3],e[13]=r[7],e[14]=r[11],e[15]=r[15];return e}});var BM=U((OTe,IM)=>{IM.exports=Kne;function Kne(e,r){var t=r[0],a=r[1],n=r[2],i=r[3],l=r[4],o=r[5],s=r[6],u=r[7],f=r[8],c=r[9],v=r[10],h=r[11],p=r[12],y=r[13],m=r[14],b=r[15],_=t*o-a*l,w=t*s-n*l,x=t*u-i*l,M=a*s-n*o,k=a*u-i*o,A=n*u-i*s,S=f*y-c*p,D=f*m-v*p,P=f*b-h*p,R=c*m-v*y,F=c*b-h*y,N=v*b-h*m,B=_*N-w*F+x*R+M*P-k*D+A*S;return B?(B=1/B,e[0]=(o*N-s*F+u*R)*B,e[1]=(n*F-a*N-i*R)*B,e[2]=(y*A-m*k+b*M)*B,e[3]=(v*k-c*A-h*M)*B,e[4]=(s*P-l*N-u*D)*B,e[5]=(t*N-n*P+i*D)*B,e[6]=(m*x-p*A-b*w)*B,e[7]=(f*A-v*x+h*w)*B,e[8]=(l*F-o*P+u*S)*B,e[9]=(a*P-t*F-i*S)*B,e[10]=(p*k-y*x+b*_)*B,e[11]=(c*x-f*k-h*_)*B,e[12]=(o*D-l*R-s*S)*B,e[13]=(t*R-a*D+n*S)*B,e[14]=(y*w-p*M-m*_)*B,e[15]=(f*M-c*w+v*_)*B,e):null}});var OM=U((YTe,HM)=>{HM.exports=jne;function jne(e,r){var t=r[0],a=r[1],n=r[2],i=r[3],l=r[4],o=r[5],s=r[6],u=r[7],f=r[8],c=r[9],v=r[10],h=r[11],p=r[12],y=r[13],m=r[14],b=r[15];return e[0]=o*(v*b-h*m)-c*(s*b-u*m)+y*(s*h-u*v),e[1]=-(a*(v*b-h*m)-c*(n*b-i*m)+y*(n*h-i*v)),e[2]=a*(s*b-u*m)-o*(n*b-i*m)+y*(n*u-i*s),e[3]=-(a*(s*h-u*v)-o*(n*h-i*v)+c*(n*u-i*s)),e[4]=-(l*(v*b-h*m)-f*(s*b-u*m)+p*(s*h-u*v)),e[5]=t*(v*b-h*m)-f*(n*b-i*m)+p*(n*h-i*v),e[6]=-(t*(s*b-u*m)-l*(n*b-i*m)+p*(n*u-i*s)),e[7]=t*(s*h-u*v)-l*(n*h-i*v)+f*(n*u-i*s),e[8]=l*(c*b-h*y)-f*(o*b-u*y)+p*(o*h-u*c),e[9]=-(t*(c*b-h*y)-f*(a*b-i*y)+p*(a*h-i*c)),e[10]=t*(o*b-u*y)-l*(a*b-i*y)+p*(a*u-i*o),e[11]=-(t*(o*h-u*c)-l*(a*h-i*c)+f*(a*u-i*o)),e[12]=-(l*(c*m-v*y)-f*(o*m-s*y)+p*(o*v-s*c)),e[13]=t*(c*m-v*y)-f*(a*m-n*y)+p*(a*v-n*c),e[14]=-(t*(o*m-s*y)-l*(a*m-n*y)+p*(a*s-n*o)),e[15]=t*(o*v-s*c)-l*(a*v-n*c)+f*(a*s-n*o),e}});var GM=U((GTe,YM)=>{YM.exports=Qne;function Qne(e){var r=e[0],t=e[1],a=e[2],n=e[3],i=e[4],l=e[5],o=e[6],s=e[7],u=e[8],f=e[9],c=e[10],v=e[11],h=e[12],p=e[13],y=e[14],m=e[15],b=r*l-t*i,_=r*o-a*i,w=r*s-n*i,x=t*o-a*l,M=t*s-n*l,k=a*s-n*o,A=u*p-f*h,S=u*y-c*h,D=u*m-v*h,P=f*y-c*p,R=f*m-v*p,F=c*m-v*y;return b*F-_*R+w*P+x*D-M*S+k*A}});var VM=U((UTe,UM)=>{UM.exports=eie;function eie(e,r,t){var a=r[0],n=r[1],i=r[2],l=r[3],o=r[4],s=r[5],u=r[6],f=r[7],c=r[8],v=r[9],h=r[10],p=r[11],y=r[12],m=r[13],b=r[14],_=r[15],w=t[0],x=t[1],M=t[2],k=t[3];return e[0]=w*a+x*o+M*c+k*y,e[1]=w*n+x*s+M*v+k*m,e[2]=w*i+x*u+M*h+k*b,e[3]=w*l+x*f+M*p+k*_,w=t[4],x=t[5],M=t[6],k=t[7],e[4]=w*a+x*o+M*c+k*y,e[5]=w*n+x*s+M*v+k*m,e[6]=w*i+x*u+M*h+k*b,e[7]=w*l+x*f+M*p+k*_,w=t[8],x=t[9],M=t[10],k=t[11],e[8]=w*a+x*o+M*c+k*y,e[9]=w*n+x*s+M*v+k*m,e[10]=w*i+x*u+M*h+k*b,e[11]=w*l+x*f+M*p+k*_,w=t[12],x=t[13],M=t[14],k=t[15],e[12]=w*a+x*o+M*c+k*y,e[13]=w*n+x*s+M*v+k*m,e[14]=w*i+x*u+M*h+k*b,e[15]=w*l+x*f+M*p+k*_,e}});var WM=U((VTe,XM)=>{XM.exports=rie;function rie(e,r,t){var a=t[0],n=t[1],i=t[2],l,o,s,u,f,c,v,h,p,y,m,b;return r===e?(e[12]=r[0]*a+r[4]*n+r[8]*i+r[12],e[13]=r[1]*a+r[5]*n+r[9]*i+r[13],e[14]=r[2]*a+r[6]*n+r[10]*i+r[14],e[15]=r[3]*a+r[7]*n+r[11]*i+r[15]):(l=r[0],o=r[1],s=r[2],u=r[3],f=r[4],c=r[5],v=r[6],h=r[7],p=r[8],y=r[9],m=r[10],b=r[11],e[0]=l,e[1]=o,e[2]=s,e[3]=u,e[4]=f,e[5]=c,e[6]=v,e[7]=h,e[8]=p,e[9]=y,e[10]=m,e[11]=b,e[12]=l*a+f*n+p*i+r[12],e[13]=o*a+c*n+y*i+r[13],e[14]=s*a+v*n+m*i+r[14],e[15]=u*a+h*n+b*i+r[15]),e}});var JM=U((XTe,ZM)=>{ZM.exports=tie;function tie(e,r,t){var a=t[0],n=t[1],i=t[2];return e[0]=r[0]*a,e[1]=r[1]*a,e[2]=r[2]*a,e[3]=r[3]*a,e[4]=r[4]*n,e[5]=r[5]*n,e[6]=r[6]*n,e[7]=r[7]*n,e[8]=r[8]*i,e[9]=r[9]*i,e[10]=r[10]*i,e[11]=r[11]*i,e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15],e}});var KM=U((WTe,$M)=>{$M.exports=aie;function aie(e,r,t,a){var n=a[0],i=a[1],l=a[2],o=Math.sqrt(n*n+i*i+l*l),s,u,f,c,v,h,p,y,m,b,_,w,x,M,k,A,S,D,P,R,F,N,B,H;return Math.abs(o)<1e-6?null:(o=1/o,n*=o,i*=o,l*=o,s=Math.sin(t),u=Math.cos(t),f=1-u,c=r[0],v=r[1],h=r[2],p=r[3],y=r[4],m=r[5],b=r[6],_=r[7],w=r[8],x=r[9],M=r[10],k=r[11],A=n*n*f+u,S=i*n*f+l*s,D=l*n*f-i*s,P=n*i*f-l*s,R=i*i*f+u,F=l*i*f+n*s,N=n*l*f+i*s,B=i*l*f-n*s,H=l*l*f+u,e[0]=c*A+y*S+w*D,e[1]=v*A+m*S+x*D,e[2]=h*A+b*S+M*D,e[3]=p*A+_*S+k*D,e[4]=c*P+y*R+w*F,e[5]=v*P+m*R+x*F,e[6]=h*P+b*R+M*F,e[7]=p*P+_*R+k*F,e[8]=c*N+y*B+w*H,e[9]=v*N+m*B+x*H,e[10]=h*N+b*B+M*H,e[11]=p*N+_*B+k*H,r!==e&&(e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e)}});var QM=U((ZTe,jM)=>{jM.exports=nie;function nie(e,r,t){var a=Math.sin(t),n=Math.cos(t),i=r[4],l=r[5],o=r[6],s=r[7],u=r[8],f=r[9],c=r[10],v=r[11];return r!==e&&(e[0]=r[0],e[1]=r[1],e[2]=r[2],e[3]=r[3],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e[4]=i*n+u*a,e[5]=l*n+f*a,e[6]=o*n+c*a,e[7]=s*n+v*a,e[8]=u*n-i*a,e[9]=f*n-l*a,e[10]=c*n-o*a,e[11]=v*n-s*a,e}});var rA=U((JTe,eA)=>{eA.exports=iie;function iie(e,r,t){var a=Math.sin(t),n=Math.cos(t),i=r[0],l=r[1],o=r[2],s=r[3],u=r[8],f=r[9],c=r[10],v=r[11];return r!==e&&(e[4]=r[4],e[5]=r[5],e[6]=r[6],e[7]=r[7],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e[0]=i*n-u*a,e[1]=l*n-f*a,e[2]=o*n-c*a,e[3]=s*n-v*a,e[8]=i*a+u*n,e[9]=l*a+f*n,e[10]=o*a+c*n,e[11]=s*a+v*n,e}});var aA=U(($Te,tA)=>{tA.exports=lie;function lie(e,r,t){var a=Math.sin(t),n=Math.cos(t),i=r[0],l=r[1],o=r[2],s=r[3],u=r[4],f=r[5],c=r[6],v=r[7];return r!==e&&(e[8]=r[8],e[9]=r[9],e[10]=r[10],e[11]=r[11],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e[0]=i*n+u*a,e[1]=l*n+f*a,e[2]=o*n+c*a,e[3]=s*n+v*a,e[4]=u*n-i*a,e[5]=f*n-l*a,e[6]=c*n-o*a,e[7]=v*n-s*a,e}});var iA=U((KTe,nA)=>{nA.exports=oie;function oie(e,r,t){var a,n,i,l=t[0],o=t[1],s=t[2],u=Math.sqrt(l*l+o*o+s*s);return Math.abs(u)<1e-6?null:(u=1/u,l*=u,o*=u,s*=u,a=Math.sin(r),n=Math.cos(r),i=1-n,e[0]=l*l*i+n,e[1]=o*l*i+s*a,e[2]=s*l*i-o*a,e[3]=0,e[4]=l*o*i-s*a,e[5]=o*o*i+n,e[6]=s*o*i+l*a,e[7]=0,e[8]=l*s*i+o*a,e[9]=o*s*i-l*a,e[10]=s*s*i+n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e)}});var oA=U((jTe,lA)=>{lA.exports=sie;function sie(e,r,t){var a=r[0],n=r[1],i=r[2],l=r[3],o=a+a,s=n+n,u=i+i,f=a*o,c=a*s,v=a*u,h=n*s,p=n*u,y=i*u,m=l*o,b=l*s,_=l*u;return e[0]=1-(h+y),e[1]=c+_,e[2]=v-b,e[3]=0,e[4]=c-_,e[5]=1-(f+y),e[6]=p+m,e[7]=0,e[8]=v+b,e[9]=p-m,e[10]=1-(f+h),e[11]=0,e[12]=t[0],e[13]=t[1],e[14]=t[2],e[15]=1,e}});var uA=U((QTe,sA)=>{sA.exports=uie;function uie(e,r){return e[0]=r[0],e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=r[1],e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=r[2],e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var cA=U((eMe,fA)=>{fA.exports=fie;function fie(e,r){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]=r[0],e[13]=r[1],e[14]=r[2],e[15]=1,e}});var dA=U((rMe,vA)=>{vA.exports=cie;function cie(e,r){var t=Math.sin(r),a=Math.cos(r);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=a,e[6]=t,e[7]=0,e[8]=0,e[9]=-t,e[10]=a,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var pA=U((tMe,hA)=>{hA.exports=vie;function vie(e,r){var t=Math.sin(r),a=Math.cos(r);return e[0]=a,e[1]=0,e[2]=-t,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=t,e[9]=0,e[10]=a,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var yA=U((aMe,mA)=>{mA.exports=die;function die(e,r){var t=Math.sin(r),a=Math.cos(r);return e[0]=a,e[1]=t,e[2]=0,e[3]=0,e[4]=-t,e[5]=a,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}});var xA=U((nMe,gA)=>{gA.exports=hie;function hie(e,r){var t=r[0],a=r[1],n=r[2],i=r[3],l=t+t,o=a+a,s=n+n,u=t*l,f=a*l,c=a*o,v=n*l,h=n*o,p=n*s,y=i*l,m=i*o,b=i*s;return e[0]=1-c-p,e[1]=f+b,e[2]=v-m,e[3]=0,e[4]=f-b,e[5]=1-u-p,e[6]=h+y,e[7]=0,e[8]=v+m,e[9]=h-y,e[10]=1-u-c,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var _A=U((iMe,bA)=>{bA.exports=pie;function pie(e,r,t,a,n,i,l){var o=1/(t-r),s=1/(n-a),u=1/(i-l);return e[0]=i*2*o,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=i*2*s,e[6]=0,e[7]=0,e[8]=(t+r)*o,e[9]=(n+a)*s,e[10]=(l+i)*u,e[11]=-1,e[12]=0,e[13]=0,e[14]=l*i*2*u,e[15]=0,e}});var TA=U((lMe,wA)=>{wA.exports=mie;function mie(e,r,t,a,n){var i=1/Math.tan(r/2),l=1/(a-n);return e[0]=i/t,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=i,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=(n+a)*l,e[11]=-1,e[12]=0,e[13]=0,e[14]=2*n*a*l,e[15]=0,e}});var AA=U((oMe,MA)=>{MA.exports=yie;function yie(e,r,t,a){var n=Math.tan(r.upDegrees*Math.PI/180),i=Math.tan(r.downDegrees*Math.PI/180),l=Math.tan(r.leftDegrees*Math.PI/180),o=Math.tan(r.rightDegrees*Math.PI/180),s=2/(l+o),u=2/(n+i);return e[0]=s,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=u,e[6]=0,e[7]=0,e[8]=-((l-o)*s*.5),e[9]=(n-i)*u*.5,e[10]=a/(t-a),e[11]=-1,e[12]=0,e[13]=0,e[14]=a*t/(t-a),e[15]=0,e}});var CA=U((sMe,kA)=>{kA.exports=gie;function gie(e,r,t,a,n,i,l){var o=1/(r-t),s=1/(a-n),u=1/(i-l);return e[0]=-2*o,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*s,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*u,e[11]=0,e[12]=(r+t)*o,e[13]=(n+a)*s,e[14]=(l+i)*u,e[15]=1,e}});var SA=U((uMe,LA)=>{var xie=p5();LA.exports=bie;function bie(e,r,t,a){var n,i,l,o,s,u,f,c,v,h,p=r[0],y=r[1],m=r[2],b=a[0],_=a[1],w=a[2],x=t[0],M=t[1],k=t[2];return Math.abs(p-x)<1e-6&&Math.abs(y-M)<1e-6&&Math.abs(m-k)<1e-6?xie(e):(f=p-x,c=y-M,v=m-k,h=1/Math.sqrt(f*f+c*c+v*v),f*=h,c*=h,v*=h,n=_*v-w*c,i=w*f-b*v,l=b*c-_*f,h=Math.sqrt(n*n+i*i+l*l),h?(h=1/h,n*=h,i*=h,l*=h):(n=0,i=0,l=0),o=c*l-v*i,s=v*n-f*l,u=f*i-c*n,h=Math.sqrt(o*o+s*s+u*u),h?(h=1/h,o*=h,s*=h,u*=h):(o=0,s=0,u=0),e[0]=n,e[1]=o,e[2]=f,e[3]=0,e[4]=i,e[5]=s,e[6]=c,e[7]=0,e[8]=l,e[9]=u,e[10]=v,e[11]=0,e[12]=-(n*p+i*y+l*m),e[13]=-(o*p+s*y+u*m),e[14]=-(f*p+c*y+v*m),e[15]=1,e)}});var DA=U((fMe,qA)=>{qA.exports=_ie;function _ie(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]+")"}});var m5=U((cMe,PA)=>{PA.exports={create:qM(),clone:PM(),copy:RM(),identity:p5(),transpose:NM(),invert:BM(),adjoint:OM(),determinant:GM(),multiply:VM(),translate:WM(),scale:JM(),rotate:KM(),rotateX:QM(),rotateY:rA(),rotateZ:aA(),fromRotation:iA(),fromRotationTranslation:oA(),fromScaling:uA(),fromTranslation:cA(),fromXRotation:dA(),fromYRotation:pA(),fromZRotation:yA(),fromQuat:xA(),frustum:_A(),perspective:TA(),perspectiveFromFieldOfView:AA(),ortho:CA(),lookAt:SA(),str:DA()}});var yh=U(jt=>{"use strict";var wie=m5();jt.init2dArray=function(e,r){for(var t=new Array(e),a=0;a{"use strict";var Tie=Er(),EA=yo(),Mie=yh(),Aie=m5();function kie(e){var r;if(typeof e=="string"){if(r=document.getElementById(e),r===null)throw new Error("No DOM element with id '"+e+"' exists on the page.");return r}else if(e==null)throw new Error("DOM element provided is null or undefined");return e}function Cie(e){var r=Tie.select(e);return r.node()instanceof HTMLElement&&r.size()&&r.classed("js-plotly-plot")}function RA(e){var r=e&&e.parentNode;r&&r.removeChild(e)}function Lie(e,r){zA("global",e,r)}function zA(e,r,t){var a="plotly.js-style-"+e,n=document.getElementById(a);if(!(n&&n.matches(".no-inline-styles"))){n||(n=document.createElement("style"),n.setAttribute("id",a),n.appendChild(document.createTextNode("")),document.head.appendChild(n));var i=n.sheet;i?i.insertRule?i.insertRule(r+"{"+t+"}",0):i.addRule?i.addRule(r,t,0):EA.warn("addStyleRule failed"):EA.warn("Cannot addRelatedStyleRule, probably due to strict CSP...")}}function Sie(e){var r="plotly.js-style-"+e,t=document.getElementById(r);t&&RA(t)}function qie(e,r,t,a,n,i){var l=a.split(":"),o=n.split(":"),s="data-btn-style-event-added";i||(i=document),i.querySelectorAll(e).forEach(function(u){u._hoverStyle={activeStyleParts:l,inactiveStyleParts:o},u.getAttribute(s)||(u.addEventListener("mouseenter",function(){var f=this._hoverStyle,c=this.querySelector(t);c&&(c.style[f.activeStyleParts[0]]=f.activeStyleParts[1])}),u.addEventListener("mouseleave",function(){var f=this._hoverStyle,c=this.querySelector(t);c&&(r&&this.matches(r)?c.style[f.activeStyleParts[0]]=f.activeStyleParts[1]:c.style[f.inactiveStyleParts[0]]=f.inactiveStyleParts[1])}),u.setAttribute(s,!0))})}function Die(e){var r=NA(e),t=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];return r.forEach(function(a){var n=FA(a);if(n){var i=Mie.convertCssMatrix(n);t=Aie.multiply(t,t,i)}}),t}function FA(e){var r=window.getComputedStyle(e,null),t=r.getPropertyValue("-webkit-transform")||r.getPropertyValue("-moz-transform")||r.getPropertyValue("-ms-transform")||r.getPropertyValue("-o-transform")||r.getPropertyValue("transform");return t==="none"?null:t.replace("matrix","").replace("3d","").slice(1,-1).split(",").map(function(a){return+a})}function NA(e){for(var r=[];Pie(e);)r.push(e),e=e.parentNode,typeof ShadowRoot=="function"&&e instanceof ShadowRoot&&(e=e.host);return r}function Pie(e){return e&&(e instanceof Element||e instanceof HTMLElement)}function Eie(e,r){return e&&r&&e.top===r.top&&e.left===r.left&&e.right===r.right&&e.bottom===r.bottom}IA.exports={getGraphDiv:kie,isPlotDiv:Cie,removeElement:RA,addStyleRule:Lie,addRelatedStyleRule:zA,deleteRelatedStyleRule:Sie,setStyleOnHover:qie,getFullTransformMatrix:Die,getElementTransformMatrix:FA,getElementAndAncestors:NA,equalDomRects:Eie}});var $c=U((hMe,BA)=>{"use strict";BA.exports={mode:{valType:"enumerated",dflt:"afterall",values:["immediate","next","afterall"]},direction:{valType:"enumerated",values:["forward","reverse"],dflt:"forward"},fromcurrent:{valType:"boolean",dflt:!1},frame:{duration:{valType:"number",min:0,dflt:500},redraw:{valType:"boolean",dflt:!0}},transition:{duration:{valType:"number",min:0,dflt:500,editType:"none"},easing:{valType:"enumerated",dflt:"cubic-in-out",values:["linear","quad","cubic","sin","exp","circle","elastic","back","bounce","linear-in","quad-in","cubic-in","sin-in","exp-in","circle-in","elastic-in","back-in","bounce-in","linear-out","quad-out","cubic-out","sin-out","exp-out","circle-out","elastic-out","back-out","bounce-out","linear-in-out","quad-in-out","cubic-in-out","sin-in-out","exp-in-out","circle-in-out","elastic-in-out","back-in-out","bounce-in-out"],editType:"none"},ordering:{valType:"enumerated",values:["layout first","traces first"],dflt:"layout first",editType:"none"}}}});var Ii=U((pMe,XA)=>{"use strict";var OA=At().extendFlat,Rie=Ms(),YA={valType:"flaglist",extras:["none"],flags:["calc","clearAxisTypes","plot","style","markerSize","colorbars"]},GA={valType:"flaglist",extras:["none"],flags:["calc","plot","legend","ticks","axrange","layoutstyle","modebar","camera","arraydraw","colorbars"]},zie=YA.flags.slice().concat(["fullReplot"]),Fie=GA.flags.slice().concat("layoutReplot");XA.exports={traces:YA,layout:GA,traceFlags:function(){return HA(zie)},layoutFlags:function(){return HA(Fie)},update:function(e,r){var t=r.editType;if(t&&t!=="none")for(var a=t.split("+"),n=0;n{"use strict";y5.dash={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",editType:"style"};y5.pattern={shape:{valType:"enumerated",values:["","/","\\","x","-","|","+","."],dflt:"",arrayOk:!0,editType:"style"},path:{valType:"string",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"}});var g5={};vt(g5,{DATE_FORMAT_LINK:()=>Iie,FORMAT_LINK:()=>Nie});var Nie,Iie,x5=Lr(()=>{"use strict";Nie="https://github.com/d3/d3-format/tree/v1.4.5#d3-format",Iie="https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format"});var On=U(M0=>{"use strict";var{DATE_FORMAT_LINK:Bie,FORMAT_LINK:Hie}=(x5(),Fe(g5)),Oie=["Variables that can't be found will be replaced with the specifier.",'For example, a template of "data: %{x}, %{y}" will result in a value of "data: 1, %{y}" if x is 1 and y is missing.',"Variables with an undefined value will be replaced with the fallback value."].join(" ");function Yie({supportOther:e}={}){return["Variables are inserted using %{variable},",'for example "y: %{y}"'+(e?" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown.":"."),`Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}".`,Hie,"for details on the formatting syntax.",`Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}".`,Bie,"for details on the date formatting syntax.",Oie].join(" ")}M0.templateFormatStringDescription=Yie;M0.hovertemplateAttrs=({editType:e="none",arrayOk:r}={},t={})=>ut({valType:"string",dflt:"",editType:e},r!==!1?{arrayOk:!0}:{});M0.texttemplateAttrs=({editType:e="calc",arrayOk:r}={},t={})=>ut({valType:"string",dflt:"",editType:e},r!==!1?{arrayOk:!0}:{});M0.shapeTexttemplateAttrs=({editType:e="arraydraw",newshape:r}={},t={})=>({valType:"string",dflt:"",editType:e});M0.templatefallbackAttrs=({editType:e="none"}={})=>({valType:"any",dflt:"-",editType:e})});var bh=U((xMe,jA)=>{"use strict";function bo(e,r){return r?r.d2l(e):e}function WA(e,r){return r?r.l2d(e):e}function Gie(e){return e.x0}function Uie(e){return e.x1}function Vie(e){return e.y0}function Xie(e){return e.y1}function ZA(e){return e.x0shift||0}function JA(e){return e.x1shift||0}function $A(e){return e.y0shift||0}function KA(e){return e.y1shift||0}function gh(e,r){return bo(e.x1,r)+JA(e)-bo(e.x0,r)-ZA(e)}function xh(e,r,t){return bo(e.y1,t)+KA(e)-bo(e.y0,t)-$A(e)}function Wie(e,r){return Math.abs(gh(e,r))}function Zie(e,r,t){return Math.abs(xh(e,r,t))}function Jie(e,r,t){return e.type!=="line"?void 0:Math.sqrt(Math.pow(gh(e,r),2)+Math.pow(xh(e,r,t),2))}function $ie(e,r){return WA((bo(e.x1,r)+JA(e)+bo(e.x0,r)+ZA(e))/2,r)}function Kie(e,r,t){return WA((bo(e.y1,t)+KA(e)+bo(e.y0,t)+$A(e))/2,t)}function jie(e,r,t){return e.type!=="line"?void 0:xh(e,r,t)/gh(e,r)}var Qie=["x0","x1","y0","y1","dy","height","ycenter"],ele=["x0","x1","y0","y1","dx","width","xcenter"];jA.exports={x0:Gie,x1:Uie,y0:Vie,y1:Xie,slope:jie,dx:gh,dy:xh,width:Wie,height:Zie,length:Jie,xcenter:$ie,ycenter:Kie,simpleXVariables:Qie,simpleYVariables:ele}});var rk=U((bMe,ek)=>{"use strict";var rle=Ii().overrideAll,Fs=Mn(),QA=xa(),tle=Bi().dash,_o=At().extendFlat,{shapeTexttemplateAttrs:ale,templatefallbackAttrs:nle}=On(),ile=bh();ek.exports=rle({newshape:{visible:_o({},Fs.visible,{}),showlegend:{valType:"boolean",dflt:!1},legend:_o({},Fs.legend,{}),legendgroup:_o({},Fs.legendgroup,{}),legendgrouptitle:{text:_o({},Fs.legendgrouptitle.text,{}),font:QA({})},legendrank:_o({},Fs.legendrank,{}),legendwidth:_o({},Fs.legendwidth,{}),line:{color:{valType:"color"},width:{valType:"number",min:0,dflt:4},dash:_o({},tle,{dflt:"solid"})},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd"},opacity:{valType:"number",min:0,max:1,dflt:1},layer:{valType:"enumerated",values:["below","above","between"],dflt:"above"},drawdirection:{valType:"enumerated",values:["ortho","horizontal","vertical","diagonal"],dflt:"diagonal"},name:_o({},Fs.name,{}),label:{text:{valType:"string",dflt:""},texttemplate:ale({newshape:!0},{keys:Object.keys(ile)}),texttemplatefallback:nle({editType:"arraydraw"}),font:QA({}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"]},textangle:{valType:"angle",dflt:"auto"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto"},yanchor:{valType:"enumerated",values:["top","middle","bottom"]},padding:{valType:"number",dflt:3,min:0}}},activeshape:{fillcolor:{valType:"color",dflt:"rgb(255,0,255)",description:"Sets the color filling the active shape' interior."},opacity:{valType:"number",min:0,max:1,dflt:.5}}},"none","from-root")});var ak=U((_Me,tk)=>{"use strict";var lle=Bi().dash,ole=At().extendFlat;tk.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:ole({},lle,{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"}}});var _h=U((wMe,nk)=>{"use strict";nk.exports=function(e){var r=e.editType;return{t:{valType:"number",dflt:0,editType:r},r:{valType:"number",dflt:0,editType:r},b:{valType:"number",dflt:0,editType:r},l:{valType:"number",dflt:0,editType:r},editType:r}}});var A0=U((TMe,sk)=>{"use strict";var b5=xa(),sle=$c(),wh=ui(),ik=rk(),lk=ak(),ule=_h(),ok=At().extendFlat,Th=b5({editType:"calc"});Th.family.dflt='"Open Sans", verdana, arial, sans-serif';Th.size.dflt=12;Th.color.dflt=wh.defaultLine;sk.exports={font:Th,title:{text:{valType:"string",editType:"layoutstyle"},font:b5({editType:"layoutstyle"}),subtitle:{text:{valType:"string",editType:"layoutstyle"},font:b5({editType:"layoutstyle"}),editType:"layoutstyle"},xref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle"},yref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle"},x:{valType:"number",min:0,max:1,dflt:.5,editType:"layoutstyle"},y:{valType:"number",min:0,max:1,dflt:"auto",editType:"layoutstyle"},xanchor:{valType:"enumerated",dflt:"auto",values:["auto","left","center","right"],editType:"layoutstyle"},yanchor:{valType:"enumerated",dflt:"auto",values:["auto","top","middle","bottom"],editType:"layoutstyle"},pad:ok(ule({editType:"layoutstyle"}),{}),automargin:{valType:"boolean",dflt:!1,editType:"plot"},editType:"layoutstyle"},uniformtext:{mode:{valType:"enumerated",values:[!1,"hide","show"],dflt:!1,editType:"plot"},minsize:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"},autosize:{valType:"boolean",dflt:!1,editType:"none"},width:{valType:"number",min:10,dflt:700,editType:"plot"},height:{valType:"number",min:10,dflt:450,editType:"plot"},minreducedwidth:{valType:"number",min:2,dflt:64,editType:"plot"},minreducedheight:{valType:"number",min:2,dflt:64,editType:"plot"},margin:{l:{valType:"number",min:0,dflt:80,editType:"plot"},r:{valType:"number",min:0,dflt:80,editType:"plot"},t:{valType:"number",min:0,dflt:100,editType:"plot"},b:{valType:"number",min:0,dflt:80,editType:"plot"},pad:{valType:"number",min:0,dflt:0,editType:"plot"},autoexpand:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},computed:{valType:"any",editType:"none"},paper_bgcolor:{valType:"color",dflt:wh.background,editType:"plot"},plot_bgcolor:{valType:"color",dflt:wh.background,editType:"layoutstyle"},autotypenumbers:{valType:"enumerated",values:["convert types","strict"],dflt:"convert types",editType:"calc"},separators:{valType:"string",editType:"plot"},showlegend:{valType:"boolean",editType:"legend"},colorway:{valType:"colorlist",dflt:wh.defaults,editType:"calc"},datarevision:{valType:"any",editType:"calc"},uirevision:{valType:"any",editType:"none"},editrevision:{valType:"any",editType:"none"},selectionrevision:{valType:"any",editType:"none"},template:{valType:"any",editType:"calc"},newshape:ik.newshape,activeshape:ik.activeshape,newselection:lk.newselection,activeselection:lk.activeselection,meta:{valType:"any",arrayOk:!0,editType:"plot"},transition:ok({},sle.transition,{editType:"none"})}});var uk=U(()=>{(function(){if(!document.getElementById("ce8d464691048653ffe3a57c6c18ab566e8366f186677868cf724621a857b4fe")){var e=document.createElement("style");e.id="ce8d464691048653ffe3a57c6c18ab566e8366f186677868cf724621a857b4fe",e.textContent='.maplibregl-map{font:12px/20px Helvetica Neue,Arial,Helvetica,sans-serif;overflow:hidden;position:relative;-webkit-tap-highlight-color:rgb(0 0 0/0);-webkit-touch-callout:none}.maplibregl-canvas{position:absolute;left:0;top:0}.maplibregl-map:fullscreen{width:100%;height:100%}.maplibregl-ctrl-group button.maplibregl-ctrl-compass{touch-action:none}.maplibregl-canvas-container.maplibregl-interactive,.maplibregl-ctrl-group button.maplibregl-ctrl-compass{cursor:grab;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-canvas-container.maplibregl-interactive.maplibregl-track-pointer{cursor:pointer}.maplibregl-canvas-container.maplibregl-interactive:active,.maplibregl-ctrl-group button.maplibregl-ctrl-compass:active{cursor:grabbing}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-canvas-container.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:pinch-zoom}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:none}.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures,.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-ctrl-bottom-left,.maplibregl-ctrl-bottom-right,.maplibregl-ctrl-top-left,.maplibregl-ctrl-top-right{position:absolute;pointer-events:none;z-index:2}.maplibregl-ctrl-top-left{top:0;left:0}.maplibregl-ctrl-top-right{top:0;right:0}.maplibregl-ctrl-bottom-left{bottom:0;left:0}.maplibregl-ctrl-bottom-right{right:0;bottom:0}.maplibregl-ctrl{clear:both;pointer-events:auto;transform:translate(0)}.maplibregl-ctrl-top-left .maplibregl-ctrl{margin:10px 0 0 10px;float:left}.maplibregl-ctrl-top-right .maplibregl-ctrl{margin:10px 10px 0 0;float:right}.maplibregl-ctrl-bottom-left .maplibregl-ctrl{margin:0 0 10px 10px;float:left}.maplibregl-ctrl-bottom-right .maplibregl-ctrl{margin:0 10px 10px 0;float:right}.maplibregl-ctrl-group{border-radius:4px;background:#fff}.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px rgba(0,0,0,.1)}@media (forced-colors:active){.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px ButtonText}}.maplibregl-ctrl-group button{width:29px;height:29px;display:block;padding:0;outline:none;border:0;box-sizing:border-box;background-color:transparent;cursor:pointer}.maplibregl-ctrl button{-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-ctrl-group button+button{border-top:1px solid #ddd}.maplibregl-ctrl button .maplibregl-ctrl-icon{display:block;width:100%;height:100%;background-repeat:no-repeat;background-position:50%}@media (forced-colors:active){.maplibregl-ctrl-icon{background-color:transparent}.maplibregl-ctrl-group button+button{border-top:1px solid ButtonText}}.maplibregl-ctrl button::-moz-focus-inner{border:0;padding:0}.maplibregl-ctrl-attrib-button:focus,.maplibregl-ctrl-group button:focus{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl button:disabled{cursor:not-allowed}.maplibregl-ctrl button:disabled .maplibregl-ctrl-icon{opacity:.25}@media (hover:hover){.maplibregl-ctrl button:not(:disabled):hover{background-color:rgba(0,0,0,.05)}}.maplibregl-ctrl button:not(:disabled):active{background-color:rgba(0,0,0,.05)}.maplibregl-ctrl-group button:focus:focus-visible{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl-group button:focus:not(:focus-visible){box-shadow:none}.maplibregl-ctrl-group button:focus:first-child{border-radius:4px 4px 0 0}.maplibregl-ctrl-group button:focus:last-child{border-radius:0 0 4px 4px}.maplibregl-ctrl-group button:focus:only-child{border-radius:inherit}.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M10%2013c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h9c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M14.5%208.5c-.75%200-1.5.75-1.5%201.5v3h-3c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h3v3c0%20.75.75%201.5%201.5%201.5S16%2019.75%2016%2019v-3h3c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013h-3v-3c0-.75-.75-1.5-1.5-1.5%22%2F%3E%3C%2Fsvg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M10%2013c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h9c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M14.5%208.5c-.75%200-1.5.75-1.5%201.5v3h-3c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h3v3c0%20.75.75%201.5%201.5%201.5S16%2019.75%2016%2019v-3h3c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013h-3v-3c0-.75-.75-1.5-1.5-1.5%22%2F%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M10%2013c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h9c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M14.5%208.5c-.75%200-1.5.75-1.5%201.5v3h-3c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h3v3c0%20.75.75%201.5%201.5%201.5S16%2019.75%2016%2019v-3h3c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013h-3v-3c0-.75-.75-1.5-1.5-1.5%22%2F%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M24%2016v5.5c0%201.75-.75%202.5-2.5%202.5H16v-1l3-1.5-4-5.5%201-1%205.5%204%201.5-3zM6%2016l1.5%203%205.5-4%201%201-4%205.5%203%201.5v1H7.5C5.75%2024%205%2023.25%205%2021.5V16zm7-11v1l-3%201.5%204%205.5-1%201-5.5-4L6%2013H5V7.5C5%205.75%205.75%205%207.5%205zm11%202.5c0-1.75-.75-2.5-2.5-2.5H16v1l3%201.5-4%205.5%201%201%205.5-4%201.5%203h1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M18.5%2016c-1.75%200-2.5.75-2.5%202.5V24h1l1.5-3%205.5%204%201-1-4-5.5%203-1.5v-1zM13%2018.5c0-1.75-.75-2.5-2.5-2.5H5v1l3%201.5L4%2024l1%201%205.5-4%201.5%203h1zm3-8c0%201.75.75%202.5%202.5%202.5H24v-1l-3-1.5L25%205l-1-1-5.5%204L17%205h-1zM10.5%2013c1.75%200%202.5-.75%202.5-2.5V5h-1l-1.5%203L5%204%204%205l4%205.5L5%2012v1z%22%2F%3E%3C%2Fsvg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M24%2016v5.5c0%201.75-.75%202.5-2.5%202.5H16v-1l3-1.5-4-5.5%201-1%205.5%204%201.5-3zM6%2016l1.5%203%205.5-4%201%201-4%205.5%203%201.5v1H7.5C5.75%2024%205%2023.25%205%2021.5V16zm7-11v1l-3%201.5%204%205.5-1%201-5.5-4L6%2013H5V7.5C5%205.75%205.75%205%207.5%205zm11%202.5c0-1.75-.75-2.5-2.5-2.5H16v1l3%201.5-4%205.5%201%201%205.5-4%201.5%203h1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M18.5%2016c-1.75%200-2.5.75-2.5%202.5V24h1l1.5-3%205.5%204%201-1-4-5.5%203-1.5v-1zM13%2018.5c0-1.75-.75-2.5-2.5-2.5H5v1l3%201.5L4%2024l1%201%205.5-4%201.5%203h1zm3-8c0%201.75.75%202.5%202.5%202.5H24v-1l-3-1.5L25%205l-1-1-5.5%204L17%205h-1zM10.5%2013c1.75%200%202.5-.75%202.5-2.5V5h-1l-1.5%203L5%204%204%205l4%205.5L5%2012v1z%22%2F%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M24%2016v5.5c0%201.75-.75%202.5-2.5%202.5H16v-1l3-1.5-4-5.5%201-1%205.5%204%201.5-3zM6%2016l1.5%203%205.5-4%201%201-4%205.5%203%201.5v1H7.5C5.75%2024%205%2023.25%205%2021.5V16zm7-11v1l-3%201.5%204%205.5-1%201-5.5-4L6%2013H5V7.5C5%205.75%205.75%205%207.5%205zm11%202.5c0-1.75-.75-2.5-2.5-2.5H16v1l3%201.5-4%205.5%201%201%205.5-4%201.5%203h1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M18.5%2016c-1.75%200-2.5.75-2.5%202.5V24h1l1.5-3%205.5%204%201-1-4-5.5%203-1.5v-1zM13%2018.5c0-1.75-.75-2.5-2.5-2.5H5v1l3%201.5L4%2024l1%201%205.5-4%201.5%203h1zm3-8c0%201.75.75%202.5%202.5%202.5H24v-1l-3-1.5L25%205l-1-1-5.5%204L17%205h-1zM10.5%2013c1.75%200%202.5-.75%202.5-2.5V5h-1l-1.5%203L5%204%204%205l4%205.5L5%2012v1z%22%2F%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22m10.5%2014%204-8%204%208z%22%2F%3E%3Cpath%20fill%3D%22%23ccc%22%20d%3D%22m10.5%2016%204%208%204-8z%22%2F%3E%3C%2Fsvg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22m10.5%2014%204-8%204%208z%22%2F%3E%3Cpath%20fill%3D%22%23ccc%22%20d%3D%22m10.5%2016%204%208%204-8z%22%2F%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22m10.5%2014%204-8%204%208z%22%2F%3E%3Cpath%20fill%3D%22%23ccc%22%20d%3D%22m10.5%2016%204%208%204-8z%22%2F%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-globe .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2222%22%20height%3D%2222%22%20fill%3D%22none%22%20stroke%3D%22%23333%22%20viewBox%3D%220%200%2022%2022%22%3E%3Ccircle%20cx%3D%2211%22%20cy%3D%2211%22%20r%3D%228.5%22%2F%3E%3Cpath%20d%3D%22M17.5%2011c0%204.819-3.02%208.5-6.5%208.5S4.5%2015.819%204.5%2011%207.52%202.5%2011%202.5s6.5%203.681%206.5%208.5Z%22%2F%3E%3Cpath%20d%3D%22M13.5%2011c0%202.447-.331%204.64-.853%206.206-.262.785-.562%201.384-.872%201.777-.314.399-.58.517-.775.517s-.461-.118-.775-.517c-.31-.393-.61-.992-.872-1.777C8.831%2015.64%208.5%2013.446%208.5%2011s.331-4.64.853-6.206c.262-.785.562-1.384.872-1.777.314-.399.58-.517.775-.517s.461.118.775.517c.31.393.61.992.872%201.777.522%201.565.853%203.76.853%206.206Z%22%2F%3E%3Cpath%20d%3D%22M11%207.5c-1.909%200-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3%201.3%200%200%201-.224-.138q.07-.058.224-.138c.299-.151.763-.302%201.379-.434C7.378%205.666%209.091%205.5%2011%205.5s3.622.166%204.845.428c.616.132%201.08.283%201.379.434.105.053.177.1.224.138q-.07.058-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm0%209c-1.909%200-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3%201.3%200%200%201-.224-.138%201.3%201.3%200%200%201%20.224-.138c.299-.151.763-.302%201.379-.434C7.378%2014.666%209.091%2014.5%2011%2014.5s3.622.166%204.845.428c.616.132%201.08.283%201.379.434.105.053.177.1.224.138a1.3%201.3%200%200%201-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm0-4c-2.46%200-4.672-.222-6.255-.574-.796-.177-1.406-.38-1.805-.59a1.5%201.5%200%200%201-.39-.272.3.3%200%200%201-.047-.064.3.3%200%200%201%20.048-.064c.066-.073.189-.167.389-.272.399-.21%201.009-.413%201.805-.59C6.328%209.722%208.54%209.5%2011%209.5s4.672.222%206.256.574c.795.177%201.405.38%201.804.59.2.105.323.2.39.272a.3.3%200%200%201%20.047.064.3.3%200%200%201-.048.064%201.4%201.4%200%200%201-.389.272c-.399.21-1.009.413-1.804.59-1.584.352-3.796.574-6.256.574Zm-8.501-1.51v.002zm0%20.018v.002zm17.002.002v-.002zm0-.018v-.002z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-globe-enabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2222%22%20height%3D%2222%22%20fill%3D%22none%22%20stroke%3D%22%2333b5e5%22%20viewBox%3D%220%200%2022%2022%22%3E%3Ccircle%20cx%3D%2211%22%20cy%3D%2211%22%20r%3D%228.5%22%2F%3E%3Cpath%20d%3D%22M17.5%2011c0%204.819-3.02%208.5-6.5%208.5S4.5%2015.819%204.5%2011%207.52%202.5%2011%202.5s6.5%203.681%206.5%208.5Z%22%2F%3E%3Cpath%20d%3D%22M13.5%2011c0%202.447-.331%204.64-.853%206.206-.262.785-.562%201.384-.872%201.777-.314.399-.58.517-.775.517s-.461-.118-.775-.517c-.31-.393-.61-.992-.872-1.777C8.831%2015.64%208.5%2013.446%208.5%2011s.331-4.64.853-6.206c.262-.785.562-1.384.872-1.777.314-.399.58-.517.775-.517s.461.118.775.517c.31.393.61.992.872%201.777.522%201.565.853%203.76.853%206.206Z%22%2F%3E%3Cpath%20d%3D%22M11%207.5c-1.909%200-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3%201.3%200%200%201-.224-.138q.07-.058.224-.138c.299-.151.763-.302%201.379-.434C7.378%205.666%209.091%205.5%2011%205.5s3.622.166%204.845.428c.616.132%201.08.283%201.379.434.105.053.177.1.224.138q-.07.058-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm0%209c-1.909%200-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3%201.3%200%200%201-.224-.138%201.3%201.3%200%200%201%20.224-.138c.299-.151.763-.302%201.379-.434C7.378%2014.666%209.091%2014.5%2011%2014.5s3.622.166%204.845.428c.616.132%201.08.283%201.379.434.105.053.177.1.224.138a1.3%201.3%200%200%201-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm0-4c-2.46%200-4.672-.222-6.255-.574-.796-.177-1.406-.38-1.805-.59a1.5%201.5%200%200%201-.39-.272.3.3%200%200%201-.047-.064.3.3%200%200%201%20.048-.064c.066-.073.189-.167.389-.272.399-.21%201.009-.413%201.805-.59C6.328%209.722%208.54%209.5%2011%209.5s4.672.222%206.256.574c.795.177%201.405.38%201.804.59.2.105.323.2.39.272a.3.3%200%200%201%20.047.064.3.3%200%200%201-.048.064%201.4%201.4%200%200%201-.389.272c-.399.21-1.009.413-1.804.59-1.584.352-3.796.574-6.256.574Zm-8.501-1.51v.002zm0%20.018v.002zm17.002.002v-.002zm0-.018v-.002z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-terrain .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2222%22%20height%3D%2222%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2022%2022%22%3E%3Cpath%20d%3D%22m1.754%2013.406%204.453-4.851%203.09%203.09%203.281%203.277.969-.969-3.309-3.312%203.844-4.121%206.148%206.886h1.082v-.855l-7.207-8.07-4.84%205.187L6.169%206.57l-5.48%205.965v.871ZM.688%2016.844h20.625v1.375H.688Zm0%200%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-terrain-enabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2222%22%20height%3D%2222%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2022%2022%22%3E%3Cpath%20d%3D%22m1.754%2013.406%204.453-4.851%203.09%203.09%203.281%203.277.969-.969-3.309-3.312%203.844-4.121%206.148%206.886h1.082v-.855l-7.207-8.07-4.84%205.187L6.169%206.57l-5.48%205.965v.871ZM.688%2016.844h20.625v1.375H.688Zm0%200%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23aaa%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3Cpath%20fill%3D%22red%22%20d%3D%22m14%205%201%201-9%209-1-1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23e58978%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23e54e33%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-waiting .maplibregl-ctrl-icon{animation:maplibregl-spin 2s linear infinite}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23999%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3Cpath%20fill%3D%22red%22%20d%3D%22m14%205%201%201-9%209-1-1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23e58978%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23e54e33%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23666%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3Cpath%20fill%3D%22red%22%20d%3D%22m14%205%201%201-9%209-1-1z%22%2F%3E%3C%2Fsvg%3E")}}@keyframes maplibregl-spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}a.maplibregl-ctrl-logo{width:88px;height:23px;margin:0 0 -4px -4px;display:block;background-repeat:no-repeat;cursor:pointer;overflow:hidden;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2288%22%20height%3D%2223%22%20fill%3D%22none%22%3E%3Cpath%20fill%3D%22%23000%22%20fill-opacity%3D%22.4%22%20fill-rule%3D%22evenodd%22%20d%3D%22M17.408%2016.796h-1.827l2.501-12.095h.198l3.324%206.533.988%202.19.988-2.19%203.258-6.533h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.929%205.644h-.098l-2.914-5.644-.757-1.71-.345%201.71zm1.958-3.42-.726%203.663a1.255%201.255%200%200%201-1.232%201.011h-1.827a1.255%201.255%200%200%201-1.229-1.509l2.501-12.095a1.255%201.255%200%200%201%201.23-1.001h.197a1.25%201.25%200%200%201%201.12.685l3.19%206.273%203.125-6.263a1.25%201.25%200%200%201%201.123-.695h.181a1.255%201.255%200%200%201%201.227.991l1.443%206.71a5%205%200%200%201%20.314-.787l.009-.016a4.6%204.6%200%200%201%201.777-1.887c.782-.46%201.668-.667%202.611-.667a4.6%204.6%200%200%201%201.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255%201.255%200%200%201%201.212.925%201.255%201.255%200%200%201%201.212-.925h1.711c.284%200%20.545.094.755.252.613-.3%201.312-.45%202.075-.45%201.356%200%202.557.445%203.482%201.4q.47.48.763%201.064V4.701a1.255%201.255%200%200%201%201.255-1.255h1.86A1.255%201.255%200%200%201%2054.44%204.7v9.194h2.217c.19%200%20.37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42%202.42%200%200%201-.682-1.71c0-.665.267-1.253.735-1.7a2.45%202.45%200%200%201%201.722-.674%202.43%202.43%200%200%201%201.705.675q.318.302.504.683V4.7a1.255%201.255%200%200%201%201.255-1.255h1.744A1.255%201.255%200%200%201%2065.812%204.7v3.335a4.8%204.8%200%200%201%201.526-.246c.938%200%201.817.214%202.59.69a4.47%204.47%200%200%201%201.67%201.743v-.98a1.255%201.255%200%200%201%201.256-1.256h1.777c.233%200%20.451.064.639.174a3.4%203.4%200%200%201%201.567-.372c.346%200%20.861.02%201.285.232a1.25%201.25%200%200%201%20.689%201.004%204.7%204.7%200%200%201%20.853-.588c.795-.44%201.675-.647%202.61-.647%201.385%200%202.65.39%203.525%201.396.836.938%201.168%202.173%201.168%203.528q-.001.515-.056%201.051a1.255%201.255%200%200%201-.947%201.09l.408.952a1.255%201.255%200%200%201-.477%201.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06%200-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8%205.8%200%200%201-.548-2.512q0-.429.053-.843a1.3%201.3%200%200%201-.333-.086l-.166-.004c-.223%200-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255%201.255%200%200%201-1.256%201.256h-1.777a1.255%201.255%200%200%201-1.256-1.256V15.69l-.032.057a4.8%204.8%200%200%201-1.86%201.833%205.04%205.04%200%200%201-2.484.634%204.5%204.5%200%200%201-1.935-.424%201.25%201.25%200%200%201-.764.258h-1.71a1.255%201.255%200%200%201-1.256-1.255V7.687a2.4%202.4%200%200%201-.428.625c.253.23.412.561.412.93v7.553a1.255%201.255%200%200%201-1.256%201.255h-1.843a1.25%201.25%200%200%201-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255%201.255%200%200%201-1.256-1.255v-1.251l-.061.117a4.7%204.7%200%200%201-1.782%201.884%204.77%204.77%200%200%201-2.485.67%205.6%205.6%200%200%201-1.485-.188l.009%202.764a1.255%201.255%200%200%201-1.255%201.259h-1.729a1.255%201.255%200%200%201-1.255-1.255v-3.537a1.255%201.255%200%200%201-1.167.793h-1.679a1.25%201.25%200%200%201-.77-.263%204.5%204.5%200%200%201-1.945.429c-.885%200-1.724-.21-2.495-.632l-.017-.01a5%205%200%200%201-1.081-.836%201.255%201.255%200%200%201-1.254%201.312h-1.81a1.255%201.255%200%200%201-1.228-.99l-.782-3.625-2.044%203.939a1.25%201.25%200%200%201-1.115.676h-.098a1.25%201.25%200%200%201-1.116-.68l-2.061-3.994zM35.92%2016.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033%201.332h1.678V9.242h-1.694l-.033%201.267q-.133-.329-.526-.658l-.032-.028a3.2%203.2%200%200%200-.668-.428l-.27-.12a3.3%203.3%200%200%200-1.235-.23q-1.136-.001-1.974.493a3.36%203.36%200%200%200-1.3%201.382q-.445.89-.444%202.074%200%201.2.51%202.107a3.8%203.8%200%200%200%201.382%201.381%203.9%203.9%200%200%200%201.893.477q.795%200%201.455-.33zm-2.789-5.38q-.576.675-.575%201.762%200%201.102.559%201.794.576.675%201.645.675a2.25%202.25%200%200%200%20.934-.19%202.2%202.2%200%200%200%20.468-.29l.178-.161a2.2%202.2%200%200%200%20.397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2%202.2%200%200%200-.633-.709l-.13-.086-.047-.028a2.1%202.1%200%200%200-1.073-.285q-1.052%200-1.629.692zm2.316%202.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96%200%200%200-.353-.389.85.85%200%200%200-.464-.127c-.4%200-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945%200%20.506.122.801.27.99.097.11.266.224.68.224.303%200%20.504-.09.687-.269zm7.545%201.705a2.6%202.6%200%200%200%20.331.423q.319.33.755.548l.173.074q.65.255%201.49.255%201.02%200%201.844-.493a3.45%203.45%200%200%200%201.316-1.4q.493-.904.493-2.089%200-1.909-.988-2.913-.988-1.02-2.584-1.02-.898%200-1.575.347a3%203%200%200%200-.415.262l-.199.166a3.4%203.4%200%200%200-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296%201.119.297%201.07%200%201.645-.675.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.435%200-.835.16a2%202%200%200%200-.284.136%202%202%200%200%200-.363.254%202.2%202.2%200%200%200-.46.569l-.082.162a2.6%202.6%200%200%200-.213%201.072v.115q0%20.707.296%201.267l.135.211zm.964-.818a1.1%201.1%200%200%200%20.367.385.94.94%200%200%200%20.476.118c.423%200%20.59-.117.687-.23.159-.194.28-.478.28-.95%200-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1%201%200%200%200-.503.135l-.012.007a.86.86%200%200%200-.335.343c-.073.133-.132.324-.132.614v.115a1.4%201.4%200%200%200%20.14.66zm15.7-6.222q.347-.346.346-.856a1.05%201.05%200%200%200-.345-.79%201.18%201.18%200%200%200-.84-.329q-.51%200-.855.33a1.05%201.05%200%200%200-.346.79q0%20.51.346.855.345.346.856.346.51%200%20.839-.346zm4.337%209.314.033-1.332q.191.403.59.747l.098.081a4%204%200%200%200%20.316.224l.223.122a3.2%203.2%200%200%200%201.44.322%203.8%203.8%200%200%200%201.875-.477%203.5%203.5%200%200%200%201.382-1.366q.527-.89.526-2.09%200-1.184-.444-2.073a3.24%203.24%200%200%200-1.283-1.399q-.823-.51-1.942-.51a3.5%203.5%200%200%200-1.527.344l-.086.043-.165.09a3%203%200%200%200-.33.214q-.432.315-.656.707a2%202%200%200%200-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5%202.5%200%200%200%20.566.7q.117.098.245.18l.144.08a2.1%202.1%200%200%200%20.975.232q1.07%200%201.645-.675.576-.69.576-1.778%200-1.102-.576-1.777-.56-.691-1.645-.692a2.2%202.2%200%200%200-1.015.235q-.22.113-.415.282l-.15.142a2.1%202.1%200%200%200-.42.594q-.223.479-.223%201.1v.115q0%20.705.293%201.26zm2.616-.293c.157-.191.28-.479.28-.967%200-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87%200%200%200-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0%20.285.057.499.144.669a1.1%201.1%200%200%200%20.367.405c.137.082.28.123.455.123.423%200%20.59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493%200%20.642.099l.247-1.794q-.196-.099-.717-.099a2.3%202.3%200%200%200-.545.063%202%202%200%200%200-.411.148%202.2%202.2%200%200%200-.4.249%202.5%202.5%200%200%200-.485.499%202.7%202.7%200%200%200-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5%201.5%200%200%201%20.466-.636%202.5%202.5%200%200%201%20.399-.253%202%202%200%200%201%20.224-.099zm9.784%202.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46%203.46%200%200%200-1.4%201.382q-.493.906-.493%202.106%200%201.07.428%201.975.428.89%201.332%201.432.906.526%202.255.526.973%200%201.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954%200-1.497-.444a1.6%201.6%200%200%201-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1%201%200%200%200-.156-.176q-.46-.428-1.316-.428-.986%200-1.494.604-.379.45-.494%201.234zm-27.053%202.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z%22%2F%3E%3Cpath%20fill%3D%22%23fff%22%20d%3D%22m19.63%2011.151-.757-1.71-.345%201.71-1.12%205.644h-1.827L18.083%204.7h.197l3.325%206.533.988%202.19.988-2.19L26.839%204.7h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.93%205.644h-.098l-2.913-5.644zm14.836%205.81q-1.02%200-1.893-.478a3.8%203.8%200%200%201-1.381-1.382q-.51-.906-.51-2.106%200-1.185.444-2.074a3.36%203.36%200%200%201%201.3-1.382q.839-.494%201.974-.494a3.3%203.3%200%200%201%201.234.231%203.3%203.3%200%200%201%20.97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02%201.053a3.17%203.17%200%200%201-1.662.444zm.296-1.482q.938%200%201.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2%202.2%200%200%200-.807-.872%202.1%202.1%200%200%200-1.119-.313q-1.053%200-1.629.692-.575.675-.575%201.76%200%201.103.559%201.795.577.675%201.645.675zm6.521-6.237h1.711v1.4q.906-1.597%202.83-1.597%201.596%200%202.584%201.02.988%201.005.988%202.914%200%201.185-.493%202.09a3.46%203.46%200%200%201-1.316%201.399%203.5%203.5%200%200%201-1.844.493q-.954%200-1.662-.329a2.67%202.67%200%200%201-1.086-.97l.017%205.134h-1.728zm4.048%206.22q1.07%200%201.645-.674.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.592%200-1.12.296-.51.28-.822.823-.296.527-.296%201.234v.115q0%20.708.296%201.267.313.543.823.855.51.296%201.119.297z%22%2F%3E%3Cpath%20fill%3D%22%23e1e3e9%22%20d%3D%22M51.325%204.7h1.86v10.45h3.473v1.646h-5.333zm7.12%204.542h1.843v7.553h-1.843zm.905-1.415a1.16%201.16%200%200%201-.856-.346%201.17%201.17%200%200%201-.346-.856%201.05%201.05%200%200%201%20.346-.79q.346-.329.856-.329.494%200%20.839.33a1.05%201.05%200%200%201%20.345.79%201.16%201.16%200%200%201-.345.855q-.33.346-.84.346zm7.875%209.133a3.17%203.17%200%200%201-1.662-.444q-.723-.46-1.004-1.053l-.033%201.332h-1.71V4.701h1.743v4.657l-.082%201.283q.279-.658%201.086-1.119a3.5%203.5%200%200%201%201.778-.477q1.119%200%201.942.51a3.24%203.24%200%200%201%201.283%201.4q.445.888.444%202.072%200%201.201-.526%202.09a3.5%203.5%200%200%201-1.382%201.366%203.8%203.8%200%200%201-1.876.477zm-.296-1.481q1.069%200%201.645-.675.577-.69.577-1.778%200-1.102-.577-1.776-.56-.691-1.645-.692a2.12%202.12%200%200%200-1.58.659q-.642.641-.642%201.694v.115q0%20.71.296%201.267a2.4%202.4%200%200%200%20.807.872%202.1%202.1%200%200%200%201.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14%202.14%200%200%201%201.349-.46q.527%200%20.724.098l-.247%201.794q-.149-.099-.642-.099-.774%200-1.416.494-.626.493-.626%201.58v3.883h-1.777V9.242zm9.534%207.718q-1.35%200-2.255-.526-.904-.543-1.332-1.432a4.6%204.6%200%200%201-.428-1.975q0-1.2.493-2.106a3.46%203.46%200%200%201%201.4-1.382q.889-.495%202.007-.494%201.744%200%202.584.97.855.956.856%202.7%200%20.444-.05.92h-5.43q.18%201.005.708%201.45.542.443%201.497.443.79%200%201.3-.131a4%204%200%200%200%20.938-.362l.542%201.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728%200-1.991%201.86z%22%2F%3E%3Cpath%20d%3D%22M5.074%2015.948a.484.657%200%200%200-.486.659v1.84a.484.657%200%200%200%20.486.659h4.101a.484.657%200%200%200%20.486-.659v-1.84a.484.657%200%200%200-.486-.659zm3.56%201.16H5.617v.838h3.017z%22%20style%3D%22fill%3A%23fff%3Bfill-rule%3Aevenodd%3Bstroke-width%3A1.03600001%22%2F%3E%3Cg%20style%3D%22stroke-width%3A1.12603545%22%3E%3Cpath%20d%3D%22M-9.408-1.416c-3.833-.025-7.056%202.912-7.08%206.615-.02%203.08%201.653%204.832%203.107%206.268.903.892%201.721%201.74%202.32%202.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87%201.87%200%200%200-.362%201.121l-.011%201.877c-.003.402.104.787.347%201.125.244.338.688.653%201.23.656l4.142.028c.542.003.99-.306%201.238-.641a1.87%201.87%200%200%200%20.363-1.121l.012-1.875a1.87%201.87%200%200%200-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145%201.425-1.983%202.348-2.87%201.473-1.414%203.18-3.149%203.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006%201.1v.002c3.274.02%205.92%202.532%205.9%205.6-.017%202.706-1.39%204.026-2.863%205.44-1.034.994-2.118%202.033-2.814%203.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34%200%200%201-.226.084.34.34%200%200%201-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067%202.7-5.545%205.975-5.523m-.02%202.826c-1.62-.01-2.944%201.315-2.955%202.96-.01%201.646%201.295%202.988%202.916%202.999h.002c1.621.01%202.943-1.316%202.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005%201.1c1.017.006%201.829.83%201.822%201.89s-.83%201.874-1.848%201.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874%201.848-1.868m-2.155%2011.857%204.14.025c.271.002.49.305.487.676l-.013%201.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668%22%20style%3D%22color%3A%23000%3Bfont-style%3Anormal%3Bfont-variant%3Anormal%3Bfont-weight%3A400%3Bfont-stretch%3Anormal%3Bfont-size%3Amedium%3Bline-height%3Anormal%3Bfont-family%3Asans-serif%3Bfont-variant-ligatures%3Anormal%3Bfont-variant-position%3Anormal%3Bfont-variant-caps%3Anormal%3Bfont-variant-numeric%3Anormal%3Bfont-variant-alternates%3Anormal%3Bfont-feature-settings%3Anormal%3Btext-indent%3A0%3Btext-align%3Astart%3Btext-decoration%3Anone%3Btext-decoration-line%3Anone%3Btext-decoration-style%3Asolid%3Btext-decoration-color%3A%23000%3Bletter-spacing%3Anormal%3Bword-spacing%3Anormal%3Btext-transform%3Anone%3Bwriting-mode%3Alr-tb%3Bdirection%3Altr%3Btext-orientation%3Amixed%3Bdominant-baseline%3Aauto%3Bbaseline-shift%3Abaseline%3Btext-anchor%3Astart%3Bwhite-space%3Anormal%3Bshape-padding%3A0%3Bclip-rule%3Aevenodd%3Bdisplay%3Ainline%3Boverflow%3Avisible%3Bvisibility%3Avisible%3Bopacity%3A1%3Bisolation%3Aauto%3Bmix-blend-mode%3Anormal%3Bcolor-interpolation%3AsRGB%3Bcolor-interpolation-filters%3AlinearRGB%3Bsolid-color%3A%23000%3Bsolid-opacity%3A1%3Bvector-effect%3Anone%3Bfill%3A%23000%3Bfill-opacity%3A.4%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-linecap%3Abutt%3Bstroke-linejoin%3Amiter%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-dashoffset%3A0%3Bstroke-opacity%3A1%3Bcolor-rendering%3Aauto%3Bimage-rendering%3Aauto%3Bshape-rendering%3Aauto%3Btext-rendering%3Aauto%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-9.415-.316C-12.69-.338-15.37%202.14-15.39%205.207c-.017%202.716%201.326%204.041%202.78%205.477%201.013%201%202.081%202.055%202.78%203.67l.092.076a.34.34%200%200%200%20.225.086.34.34%200%200%200%20.227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6%201.78-2.64%202.814-3.634%201.473-1.414%202.847-2.733%202.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057%208.784c1.621.011%202.944-1.315%202.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945%201.315-2.955%202.96s1.295%202.989%202.916%203%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23e1e3e9%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-11.594%2015.465c-.27-.002-.492.297-.494.668l-.012%201.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23fff%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E")}a.maplibregl-ctrl-logo.maplibregl-compact{width:14px}@media (forced-colors:active){a.maplibregl-ctrl-logo{background-color:transparent;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2288%22%20height%3D%2223%22%20fill%3D%22none%22%3E%3Cpath%20fill%3D%22%23000%22%20fill-opacity%3D%22.4%22%20fill-rule%3D%22evenodd%22%20d%3D%22M17.408%2016.796h-1.827l2.501-12.095h.198l3.324%206.533.988%202.19.988-2.19%203.258-6.533h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.929%205.644h-.098l-2.914-5.644-.757-1.71-.345%201.71zm1.958-3.42-.726%203.663a1.255%201.255%200%200%201-1.232%201.011h-1.827a1.255%201.255%200%200%201-1.229-1.509l2.501-12.095a1.255%201.255%200%200%201%201.23-1.001h.197a1.25%201.25%200%200%201%201.12.685l3.19%206.273%203.125-6.263a1.25%201.25%200%200%201%201.123-.695h.181a1.255%201.255%200%200%201%201.227.991l1.443%206.71a5%205%200%200%201%20.314-.787l.009-.016a4.6%204.6%200%200%201%201.777-1.887c.782-.46%201.668-.667%202.611-.667a4.6%204.6%200%200%201%201.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255%201.255%200%200%201%201.212.925%201.255%201.255%200%200%201%201.212-.925h1.711c.284%200%20.545.094.755.252.613-.3%201.312-.45%202.075-.45%201.356%200%202.557.445%203.482%201.4q.47.48.763%201.064V4.701a1.255%201.255%200%200%201%201.255-1.255h1.86A1.255%201.255%200%200%201%2054.44%204.7v9.194h2.217c.19%200%20.37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42%202.42%200%200%201-.682-1.71c0-.665.267-1.253.735-1.7a2.45%202.45%200%200%201%201.722-.674%202.43%202.43%200%200%201%201.705.675q.318.302.504.683V4.7a1.255%201.255%200%200%201%201.255-1.255h1.744A1.255%201.255%200%200%201%2065.812%204.7v3.335a4.8%204.8%200%200%201%201.526-.246c.938%200%201.817.214%202.59.69a4.47%204.47%200%200%201%201.67%201.743v-.98a1.255%201.255%200%200%201%201.256-1.256h1.777c.233%200%20.451.064.639.174a3.4%203.4%200%200%201%201.567-.372c.346%200%20.861.02%201.285.232a1.25%201.25%200%200%201%20.689%201.004%204.7%204.7%200%200%201%20.853-.588c.795-.44%201.675-.647%202.61-.647%201.385%200%202.65.39%203.525%201.396.836.938%201.168%202.173%201.168%203.528q-.001.515-.056%201.051a1.255%201.255%200%200%201-.947%201.09l.408.952a1.255%201.255%200%200%201-.477%201.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06%200-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8%205.8%200%200%201-.548-2.512q0-.429.053-.843a1.3%201.3%200%200%201-.333-.086l-.166-.004c-.223%200-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255%201.255%200%200%201-1.256%201.256h-1.777a1.255%201.255%200%200%201-1.256-1.256V15.69l-.032.057a4.8%204.8%200%200%201-1.86%201.833%205.04%205.04%200%200%201-2.484.634%204.5%204.5%200%200%201-1.935-.424%201.25%201.25%200%200%201-.764.258h-1.71a1.255%201.255%200%200%201-1.256-1.255V7.687a2.4%202.4%200%200%201-.428.625c.253.23.412.561.412.93v7.553a1.255%201.255%200%200%201-1.256%201.255h-1.843a1.25%201.25%200%200%201-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255%201.255%200%200%201-1.256-1.255v-1.251l-.061.117a4.7%204.7%200%200%201-1.782%201.884%204.77%204.77%200%200%201-2.485.67%205.6%205.6%200%200%201-1.485-.188l.009%202.764a1.255%201.255%200%200%201-1.255%201.259h-1.729a1.255%201.255%200%200%201-1.255-1.255v-3.537a1.255%201.255%200%200%201-1.167.793h-1.679a1.25%201.25%200%200%201-.77-.263%204.5%204.5%200%200%201-1.945.429c-.885%200-1.724-.21-2.495-.632l-.017-.01a5%205%200%200%201-1.081-.836%201.255%201.255%200%200%201-1.254%201.312h-1.81a1.255%201.255%200%200%201-1.228-.99l-.782-3.625-2.044%203.939a1.25%201.25%200%200%201-1.115.676h-.098a1.25%201.25%200%200%201-1.116-.68l-2.061-3.994zM35.92%2016.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033%201.332h1.678V9.242h-1.694l-.033%201.267q-.133-.329-.526-.658l-.032-.028a3.2%203.2%200%200%200-.668-.428l-.27-.12a3.3%203.3%200%200%200-1.235-.23q-1.136-.001-1.974.493a3.36%203.36%200%200%200-1.3%201.382q-.445.89-.444%202.074%200%201.2.51%202.107a3.8%203.8%200%200%200%201.382%201.381%203.9%203.9%200%200%200%201.893.477q.795%200%201.455-.33zm-2.789-5.38q-.576.675-.575%201.762%200%201.102.559%201.794.576.675%201.645.675a2.25%202.25%200%200%200%20.934-.19%202.2%202.2%200%200%200%20.468-.29l.178-.161a2.2%202.2%200%200%200%20.397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2%202.2%200%200%200-.633-.709l-.13-.086-.047-.028a2.1%202.1%200%200%200-1.073-.285q-1.052%200-1.629.692zm2.316%202.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96%200%200%200-.353-.389.85.85%200%200%200-.464-.127c-.4%200-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945%200%20.506.122.801.27.99.097.11.266.224.68.224.303%200%20.504-.09.687-.269zm7.545%201.705a2.6%202.6%200%200%200%20.331.423q.319.33.755.548l.173.074q.65.255%201.49.255%201.02%200%201.844-.493a3.45%203.45%200%200%200%201.316-1.4q.493-.904.493-2.089%200-1.909-.988-2.913-.988-1.02-2.584-1.02-.898%200-1.575.347a3%203%200%200%200-.415.262l-.199.166a3.4%203.4%200%200%200-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296%201.119.297%201.07%200%201.645-.675.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.435%200-.835.16a2%202%200%200%200-.284.136%202%202%200%200%200-.363.254%202.2%202.2%200%200%200-.46.569l-.082.162a2.6%202.6%200%200%200-.213%201.072v.115q0%20.707.296%201.267l.135.211zm.964-.818a1.1%201.1%200%200%200%20.367.385.94.94%200%200%200%20.476.118c.423%200%20.59-.117.687-.23.159-.194.28-.478.28-.95%200-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1%201%200%200%200-.503.135l-.012.007a.86.86%200%200%200-.335.343c-.073.133-.132.324-.132.614v.115a1.4%201.4%200%200%200%20.14.66zm15.7-6.222q.347-.346.346-.856a1.05%201.05%200%200%200-.345-.79%201.18%201.18%200%200%200-.84-.329q-.51%200-.855.33a1.05%201.05%200%200%200-.346.79q0%20.51.346.855.345.346.856.346.51%200%20.839-.346zm4.337%209.314.033-1.332q.191.403.59.747l.098.081a4%204%200%200%200%20.316.224l.223.122a3.2%203.2%200%200%200%201.44.322%203.8%203.8%200%200%200%201.875-.477%203.5%203.5%200%200%200%201.382-1.366q.527-.89.526-2.09%200-1.184-.444-2.073a3.24%203.24%200%200%200-1.283-1.399q-.823-.51-1.942-.51a3.5%203.5%200%200%200-1.527.344l-.086.043-.165.09a3%203%200%200%200-.33.214q-.432.315-.656.707a2%202%200%200%200-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5%202.5%200%200%200%20.566.7q.117.098.245.18l.144.08a2.1%202.1%200%200%200%20.975.232q1.07%200%201.645-.675.576-.69.576-1.778%200-1.102-.576-1.777-.56-.691-1.645-.692a2.2%202.2%200%200%200-1.015.235q-.22.113-.415.282l-.15.142a2.1%202.1%200%200%200-.42.594q-.223.479-.223%201.1v.115q0%20.705.293%201.26zm2.616-.293c.157-.191.28-.479.28-.967%200-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87%200%200%200-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0%20.285.057.499.144.669a1.1%201.1%200%200%200%20.367.405c.137.082.28.123.455.123.423%200%20.59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493%200%20.642.099l.247-1.794q-.196-.099-.717-.099a2.3%202.3%200%200%200-.545.063%202%202%200%200%200-.411.148%202.2%202.2%200%200%200-.4.249%202.5%202.5%200%200%200-.485.499%202.7%202.7%200%200%200-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5%201.5%200%200%201%20.466-.636%202.5%202.5%200%200%201%20.399-.253%202%202%200%200%201%20.224-.099zm9.784%202.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46%203.46%200%200%200-1.4%201.382q-.493.906-.493%202.106%200%201.07.428%201.975.428.89%201.332%201.432.906.526%202.255.526.973%200%201.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954%200-1.497-.444a1.6%201.6%200%200%201-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1%201%200%200%200-.156-.176q-.46-.428-1.316-.428-.986%200-1.494.604-.379.45-.494%201.234zm-27.053%202.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z%22%2F%3E%3Cpath%20fill%3D%22%23fff%22%20d%3D%22m19.63%2011.151-.757-1.71-.345%201.71-1.12%205.644h-1.827L18.083%204.7h.197l3.325%206.533.988%202.19.988-2.19L26.839%204.7h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.93%205.644h-.098l-2.913-5.644zm14.836%205.81q-1.02%200-1.893-.478a3.8%203.8%200%200%201-1.381-1.382q-.51-.906-.51-2.106%200-1.185.444-2.074a3.36%203.36%200%200%201%201.3-1.382q.839-.494%201.974-.494a3.3%203.3%200%200%201%201.234.231%203.3%203.3%200%200%201%20.97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02%201.053a3.17%203.17%200%200%201-1.662.444zm.296-1.482q.938%200%201.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2%202.2%200%200%200-.807-.872%202.1%202.1%200%200%200-1.119-.313q-1.053%200-1.629.692-.575.675-.575%201.76%200%201.103.559%201.795.577.675%201.645.675zm6.521-6.237h1.711v1.4q.906-1.597%202.83-1.597%201.596%200%202.584%201.02.988%201.005.988%202.914%200%201.185-.493%202.09a3.46%203.46%200%200%201-1.316%201.399%203.5%203.5%200%200%201-1.844.493q-.954%200-1.662-.329a2.67%202.67%200%200%201-1.086-.97l.017%205.134h-1.728zm4.048%206.22q1.07%200%201.645-.674.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.592%200-1.12.296-.51.28-.822.823-.296.527-.296%201.234v.115q0%20.708.296%201.267.313.543.823.855.51.296%201.119.297z%22%2F%3E%3Cpath%20fill%3D%22%23e1e3e9%22%20d%3D%22M51.325%204.7h1.86v10.45h3.473v1.646h-5.333zm7.12%204.542h1.843v7.553h-1.843zm.905-1.415a1.16%201.16%200%200%201-.856-.346%201.17%201.17%200%200%201-.346-.856%201.05%201.05%200%200%201%20.346-.79q.346-.329.856-.329.494%200%20.839.33a1.05%201.05%200%200%201%20.345.79%201.16%201.16%200%200%201-.345.855q-.33.346-.84.346zm7.875%209.133a3.17%203.17%200%200%201-1.662-.444q-.723-.46-1.004-1.053l-.033%201.332h-1.71V4.701h1.743v4.657l-.082%201.283q.279-.658%201.086-1.119a3.5%203.5%200%200%201%201.778-.477q1.119%200%201.942.51a3.24%203.24%200%200%201%201.283%201.4q.445.888.444%202.072%200%201.201-.526%202.09a3.5%203.5%200%200%201-1.382%201.366%203.8%203.8%200%200%201-1.876.477zm-.296-1.481q1.069%200%201.645-.675.577-.69.577-1.778%200-1.102-.577-1.776-.56-.691-1.645-.692a2.12%202.12%200%200%200-1.58.659q-.642.641-.642%201.694v.115q0%20.71.296%201.267a2.4%202.4%200%200%200%20.807.872%202.1%202.1%200%200%200%201.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14%202.14%200%200%201%201.349-.46q.527%200%20.724.098l-.247%201.794q-.149-.099-.642-.099-.774%200-1.416.494-.626.493-.626%201.58v3.883h-1.777V9.242zm9.534%207.718q-1.35%200-2.255-.526-.904-.543-1.332-1.432a4.6%204.6%200%200%201-.428-1.975q0-1.2.493-2.106a3.46%203.46%200%200%201%201.4-1.382q.889-.495%202.007-.494%201.744%200%202.584.97.855.956.856%202.7%200%20.444-.05.92h-5.43q.18%201.005.708%201.45.542.443%201.497.443.79%200%201.3-.131a4%204%200%200%200%20.938-.362l.542%201.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728%200-1.991%201.86z%22%2F%3E%3Cpath%20d%3D%22M5.074%2015.948a.484.657%200%200%200-.486.659v1.84a.484.657%200%200%200%20.486.659h4.101a.484.657%200%200%200%20.486-.659v-1.84a.484.657%200%200%200-.486-.659zm3.56%201.16H5.617v.838h3.017z%22%20style%3D%22fill%3A%23fff%3Bfill-rule%3Aevenodd%3Bstroke-width%3A1.03600001%22%2F%3E%3Cg%20style%3D%22stroke-width%3A1.12603545%22%3E%3Cpath%20d%3D%22M-9.408-1.416c-3.833-.025-7.056%202.912-7.08%206.615-.02%203.08%201.653%204.832%203.107%206.268.903.892%201.721%201.74%202.32%202.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87%201.87%200%200%200-.362%201.121l-.011%201.877c-.003.402.104.787.347%201.125.244.338.688.653%201.23.656l4.142.028c.542.003.99-.306%201.238-.641a1.87%201.87%200%200%200%20.363-1.121l.012-1.875a1.87%201.87%200%200%200-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145%201.425-1.983%202.348-2.87%201.473-1.414%203.18-3.149%203.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006%201.1v.002c3.274.02%205.92%202.532%205.9%205.6-.017%202.706-1.39%204.026-2.863%205.44-1.034.994-2.118%202.033-2.814%203.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34%200%200%201-.226.084.34.34%200%200%201-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067%202.7-5.545%205.975-5.523m-.02%202.826c-1.62-.01-2.944%201.315-2.955%202.96-.01%201.646%201.295%202.988%202.916%202.999h.002c1.621.01%202.943-1.316%202.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005%201.1c1.017.006%201.829.83%201.822%201.89s-.83%201.874-1.848%201.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874%201.848-1.868m-2.155%2011.857%204.14.025c.271.002.49.305.487.676l-.013%201.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668%22%20style%3D%22color%3A%23000%3Bfont-style%3Anormal%3Bfont-variant%3Anormal%3Bfont-weight%3A400%3Bfont-stretch%3Anormal%3Bfont-size%3Amedium%3Bline-height%3Anormal%3Bfont-family%3Asans-serif%3Bfont-variant-ligatures%3Anormal%3Bfont-variant-position%3Anormal%3Bfont-variant-caps%3Anormal%3Bfont-variant-numeric%3Anormal%3Bfont-variant-alternates%3Anormal%3Bfont-feature-settings%3Anormal%3Btext-indent%3A0%3Btext-align%3Astart%3Btext-decoration%3Anone%3Btext-decoration-line%3Anone%3Btext-decoration-style%3Asolid%3Btext-decoration-color%3A%23000%3Bletter-spacing%3Anormal%3Bword-spacing%3Anormal%3Btext-transform%3Anone%3Bwriting-mode%3Alr-tb%3Bdirection%3Altr%3Btext-orientation%3Amixed%3Bdominant-baseline%3Aauto%3Bbaseline-shift%3Abaseline%3Btext-anchor%3Astart%3Bwhite-space%3Anormal%3Bshape-padding%3A0%3Bclip-rule%3Aevenodd%3Bdisplay%3Ainline%3Boverflow%3Avisible%3Bvisibility%3Avisible%3Bopacity%3A1%3Bisolation%3Aauto%3Bmix-blend-mode%3Anormal%3Bcolor-interpolation%3AsRGB%3Bcolor-interpolation-filters%3AlinearRGB%3Bsolid-color%3A%23000%3Bsolid-opacity%3A1%3Bvector-effect%3Anone%3Bfill%3A%23000%3Bfill-opacity%3A.4%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-linecap%3Abutt%3Bstroke-linejoin%3Amiter%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-dashoffset%3A0%3Bstroke-opacity%3A1%3Bcolor-rendering%3Aauto%3Bimage-rendering%3Aauto%3Bshape-rendering%3Aauto%3Btext-rendering%3Aauto%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-9.415-.316C-12.69-.338-15.37%202.14-15.39%205.207c-.017%202.716%201.326%204.041%202.78%205.477%201.013%201%202.081%202.055%202.78%203.67l.092.076a.34.34%200%200%200%20.225.086.34.34%200%200%200%20.227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6%201.78-2.64%202.814-3.634%201.473-1.414%202.847-2.733%202.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057%208.784c1.621.011%202.944-1.315%202.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945%201.315-2.955%202.96s1.295%202.989%202.916%203%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23e1e3e9%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-11.594%2015.465c-.27-.002-.492.297-.494.668l-.012%201.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23fff%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){a.maplibregl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2288%22%20height%3D%2223%22%20fill%3D%22none%22%3E%3Cpath%20fill%3D%22%23000%22%20fill-opacity%3D%22.4%22%20fill-rule%3D%22evenodd%22%20d%3D%22M17.408%2016.796h-1.827l2.501-12.095h.198l3.324%206.533.988%202.19.988-2.19%203.258-6.533h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.929%205.644h-.098l-2.914-5.644-.757-1.71-.345%201.71zm1.958-3.42-.726%203.663a1.255%201.255%200%200%201-1.232%201.011h-1.827a1.255%201.255%200%200%201-1.229-1.509l2.501-12.095a1.255%201.255%200%200%201%201.23-1.001h.197a1.25%201.25%200%200%201%201.12.685l3.19%206.273%203.125-6.263a1.25%201.25%200%200%201%201.123-.695h.181a1.255%201.255%200%200%201%201.227.991l1.443%206.71a5%205%200%200%201%20.314-.787l.009-.016a4.6%204.6%200%200%201%201.777-1.887c.782-.46%201.668-.667%202.611-.667a4.6%204.6%200%200%201%201.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255%201.255%200%200%201%201.212.925%201.255%201.255%200%200%201%201.212-.925h1.711c.284%200%20.545.094.755.252.613-.3%201.312-.45%202.075-.45%201.356%200%202.557.445%203.482%201.4q.47.48.763%201.064V4.701a1.255%201.255%200%200%201%201.255-1.255h1.86A1.255%201.255%200%200%201%2054.44%204.7v9.194h2.217c.19%200%20.37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42%202.42%200%200%201-.682-1.71c0-.665.267-1.253.735-1.7a2.45%202.45%200%200%201%201.722-.674%202.43%202.43%200%200%201%201.705.675q.318.302.504.683V4.7a1.255%201.255%200%200%201%201.255-1.255h1.744A1.255%201.255%200%200%201%2065.812%204.7v3.335a4.8%204.8%200%200%201%201.526-.246c.938%200%201.817.214%202.59.69a4.47%204.47%200%200%201%201.67%201.743v-.98a1.255%201.255%200%200%201%201.256-1.256h1.777c.233%200%20.451.064.639.174a3.4%203.4%200%200%201%201.567-.372c.346%200%20.861.02%201.285.232a1.25%201.25%200%200%201%20.689%201.004%204.7%204.7%200%200%201%20.853-.588c.795-.44%201.675-.647%202.61-.647%201.385%200%202.65.39%203.525%201.396.836.938%201.168%202.173%201.168%203.528q-.001.515-.056%201.051a1.255%201.255%200%200%201-.947%201.09l.408.952a1.255%201.255%200%200%201-.477%201.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06%200-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8%205.8%200%200%201-.548-2.512q0-.429.053-.843a1.3%201.3%200%200%201-.333-.086l-.166-.004c-.223%200-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255%201.255%200%200%201-1.256%201.256h-1.777a1.255%201.255%200%200%201-1.256-1.256V15.69l-.032.057a4.8%204.8%200%200%201-1.86%201.833%205.04%205.04%200%200%201-2.484.634%204.5%204.5%200%200%201-1.935-.424%201.25%201.25%200%200%201-.764.258h-1.71a1.255%201.255%200%200%201-1.256-1.255V7.687a2.4%202.4%200%200%201-.428.625c.253.23.412.561.412.93v7.553a1.255%201.255%200%200%201-1.256%201.255h-1.843a1.25%201.25%200%200%201-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255%201.255%200%200%201-1.256-1.255v-1.251l-.061.117a4.7%204.7%200%200%201-1.782%201.884%204.77%204.77%200%200%201-2.485.67%205.6%205.6%200%200%201-1.485-.188l.009%202.764a1.255%201.255%200%200%201-1.255%201.259h-1.729a1.255%201.255%200%200%201-1.255-1.255v-3.537a1.255%201.255%200%200%201-1.167.793h-1.679a1.25%201.25%200%200%201-.77-.263%204.5%204.5%200%200%201-1.945.429c-.885%200-1.724-.21-2.495-.632l-.017-.01a5%205%200%200%201-1.081-.836%201.255%201.255%200%200%201-1.254%201.312h-1.81a1.255%201.255%200%200%201-1.228-.99l-.782-3.625-2.044%203.939a1.25%201.25%200%200%201-1.115.676h-.098a1.25%201.25%200%200%201-1.116-.68l-2.061-3.994zM35.92%2016.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033%201.332h1.678V9.242h-1.694l-.033%201.267q-.133-.329-.526-.658l-.032-.028a3.2%203.2%200%200%200-.668-.428l-.27-.12a3.3%203.3%200%200%200-1.235-.23q-1.136-.001-1.974.493a3.36%203.36%200%200%200-1.3%201.382q-.445.89-.444%202.074%200%201.2.51%202.107a3.8%203.8%200%200%200%201.382%201.381%203.9%203.9%200%200%200%201.893.477q.795%200%201.455-.33zm-2.789-5.38q-.576.675-.575%201.762%200%201.102.559%201.794.576.675%201.645.675a2.25%202.25%200%200%200%20.934-.19%202.2%202.2%200%200%200%20.468-.29l.178-.161a2.2%202.2%200%200%200%20.397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2%202.2%200%200%200-.633-.709l-.13-.086-.047-.028a2.1%202.1%200%200%200-1.073-.285q-1.052%200-1.629.692zm2.316%202.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96%200%200%200-.353-.389.85.85%200%200%200-.464-.127c-.4%200-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945%200%20.506.122.801.27.99.097.11.266.224.68.224.303%200%20.504-.09.687-.269zm7.545%201.705a2.6%202.6%200%200%200%20.331.423q.319.33.755.548l.173.074q.65.255%201.49.255%201.02%200%201.844-.493a3.45%203.45%200%200%200%201.316-1.4q.493-.904.493-2.089%200-1.909-.988-2.913-.988-1.02-2.584-1.02-.898%200-1.575.347a3%203%200%200%200-.415.262l-.199.166a3.4%203.4%200%200%200-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296%201.119.297%201.07%200%201.645-.675.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.435%200-.835.16a2%202%200%200%200-.284.136%202%202%200%200%200-.363.254%202.2%202.2%200%200%200-.46.569l-.082.162a2.6%202.6%200%200%200-.213%201.072v.115q0%20.707.296%201.267l.135.211zm.964-.818a1.1%201.1%200%200%200%20.367.385.94.94%200%200%200%20.476.118c.423%200%20.59-.117.687-.23.159-.194.28-.478.28-.95%200-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1%201%200%200%200-.503.135l-.012.007a.86.86%200%200%200-.335.343c-.073.133-.132.324-.132.614v.115a1.4%201.4%200%200%200%20.14.66zm15.7-6.222q.347-.346.346-.856a1.05%201.05%200%200%200-.345-.79%201.18%201.18%200%200%200-.84-.329q-.51%200-.855.33a1.05%201.05%200%200%200-.346.79q0%20.51.346.855.345.346.856.346.51%200%20.839-.346zm4.337%209.314.033-1.332q.191.403.59.747l.098.081a4%204%200%200%200%20.316.224l.223.122a3.2%203.2%200%200%200%201.44.322%203.8%203.8%200%200%200%201.875-.477%203.5%203.5%200%200%200%201.382-1.366q.527-.89.526-2.09%200-1.184-.444-2.073a3.24%203.24%200%200%200-1.283-1.399q-.823-.51-1.942-.51a3.5%203.5%200%200%200-1.527.344l-.086.043-.165.09a3%203%200%200%200-.33.214q-.432.315-.656.707a2%202%200%200%200-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5%202.5%200%200%200%20.566.7q.117.098.245.18l.144.08a2.1%202.1%200%200%200%20.975.232q1.07%200%201.645-.675.576-.69.576-1.778%200-1.102-.576-1.777-.56-.691-1.645-.692a2.2%202.2%200%200%200-1.015.235q-.22.113-.415.282l-.15.142a2.1%202.1%200%200%200-.42.594q-.223.479-.223%201.1v.115q0%20.705.293%201.26zm2.616-.293c.157-.191.28-.479.28-.967%200-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87%200%200%200-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0%20.285.057.499.144.669a1.1%201.1%200%200%200%20.367.405c.137.082.28.123.455.123.423%200%20.59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493%200%20.642.099l.247-1.794q-.196-.099-.717-.099a2.3%202.3%200%200%200-.545.063%202%202%200%200%200-.411.148%202.2%202.2%200%200%200-.4.249%202.5%202.5%200%200%200-.485.499%202.7%202.7%200%200%200-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5%201.5%200%200%201%20.466-.636%202.5%202.5%200%200%201%20.399-.253%202%202%200%200%201%20.224-.099zm9.784%202.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46%203.46%200%200%200-1.4%201.382q-.493.906-.493%202.106%200%201.07.428%201.975.428.89%201.332%201.432.906.526%202.255.526.973%200%201.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954%200-1.497-.444a1.6%201.6%200%200%201-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1%201%200%200%200-.156-.176q-.46-.428-1.316-.428-.986%200-1.494.604-.379.45-.494%201.234zm-27.053%202.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z%22%2F%3E%3Cpath%20fill%3D%22%23fff%22%20d%3D%22m19.63%2011.151-.757-1.71-.345%201.71-1.12%205.644h-1.827L18.083%204.7h.197l3.325%206.533.988%202.19.988-2.19L26.839%204.7h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.93%205.644h-.098l-2.913-5.644zm14.836%205.81q-1.02%200-1.893-.478a3.8%203.8%200%200%201-1.381-1.382q-.51-.906-.51-2.106%200-1.185.444-2.074a3.36%203.36%200%200%201%201.3-1.382q.839-.494%201.974-.494a3.3%203.3%200%200%201%201.234.231%203.3%203.3%200%200%201%20.97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02%201.053a3.17%203.17%200%200%201-1.662.444zm.296-1.482q.938%200%201.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2%202.2%200%200%200-.807-.872%202.1%202.1%200%200%200-1.119-.313q-1.053%200-1.629.692-.575.675-.575%201.76%200%201.103.559%201.795.577.675%201.645.675zm6.521-6.237h1.711v1.4q.906-1.597%202.83-1.597%201.596%200%202.584%201.02.988%201.005.988%202.914%200%201.185-.493%202.09a3.46%203.46%200%200%201-1.316%201.399%203.5%203.5%200%200%201-1.844.493q-.954%200-1.662-.329a2.67%202.67%200%200%201-1.086-.97l.017%205.134h-1.728zm4.048%206.22q1.07%200%201.645-.674.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.592%200-1.12.296-.51.28-.822.823-.296.527-.296%201.234v.115q0%20.708.296%201.267.313.543.823.855.51.296%201.119.297z%22%2F%3E%3Cpath%20fill%3D%22%23e1e3e9%22%20d%3D%22M51.325%204.7h1.86v10.45h3.473v1.646h-5.333zm7.12%204.542h1.843v7.553h-1.843zm.905-1.415a1.16%201.16%200%200%201-.856-.346%201.17%201.17%200%200%201-.346-.856%201.05%201.05%200%200%201%20.346-.79q.346-.329.856-.329.494%200%20.839.33a1.05%201.05%200%200%201%20.345.79%201.16%201.16%200%200%201-.345.855q-.33.346-.84.346zm7.875%209.133a3.17%203.17%200%200%201-1.662-.444q-.723-.46-1.004-1.053l-.033%201.332h-1.71V4.701h1.743v4.657l-.082%201.283q.279-.658%201.086-1.119a3.5%203.5%200%200%201%201.778-.477q1.119%200%201.942.51a3.24%203.24%200%200%201%201.283%201.4q.445.888.444%202.072%200%201.201-.526%202.09a3.5%203.5%200%200%201-1.382%201.366%203.8%203.8%200%200%201-1.876.477zm-.296-1.481q1.069%200%201.645-.675.577-.69.577-1.778%200-1.102-.577-1.776-.56-.691-1.645-.692a2.12%202.12%200%200%200-1.58.659q-.642.641-.642%201.694v.115q0%20.71.296%201.267a2.4%202.4%200%200%200%20.807.872%202.1%202.1%200%200%200%201.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14%202.14%200%200%201%201.349-.46q.527%200%20.724.098l-.247%201.794q-.149-.099-.642-.099-.774%200-1.416.494-.626.493-.626%201.58v3.883h-1.777V9.242zm9.534%207.718q-1.35%200-2.255-.526-.904-.543-1.332-1.432a4.6%204.6%200%200%201-.428-1.975q0-1.2.493-2.106a3.46%203.46%200%200%201%201.4-1.382q.889-.495%202.007-.494%201.744%200%202.584.97.855.956.856%202.7%200%20.444-.05.92h-5.43q.18%201.005.708%201.45.542.443%201.497.443.79%200%201.3-.131a4%204%200%200%200%20.938-.362l.542%201.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728%200-1.991%201.86z%22%2F%3E%3Cpath%20d%3D%22M5.074%2015.948a.484.657%200%200%200-.486.659v1.84a.484.657%200%200%200%20.486.659h4.101a.484.657%200%200%200%20.486-.659v-1.84a.484.657%200%200%200-.486-.659zm3.56%201.16H5.617v.838h3.017z%22%20style%3D%22fill%3A%23fff%3Bfill-rule%3Aevenodd%3Bstroke-width%3A1.03600001%22%2F%3E%3Cg%20style%3D%22stroke-width%3A1.12603545%22%3E%3Cpath%20d%3D%22M-9.408-1.416c-3.833-.025-7.056%202.912-7.08%206.615-.02%203.08%201.653%204.832%203.107%206.268.903.892%201.721%201.74%202.32%202.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87%201.87%200%200%200-.362%201.121l-.011%201.877c-.003.402.104.787.347%201.125.244.338.688.653%201.23.656l4.142.028c.542.003.99-.306%201.238-.641a1.87%201.87%200%200%200%20.363-1.121l.012-1.875a1.87%201.87%200%200%200-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145%201.425-1.983%202.348-2.87%201.473-1.414%203.18-3.149%203.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006%201.1v.002c3.274.02%205.92%202.532%205.9%205.6-.017%202.706-1.39%204.026-2.863%205.44-1.034.994-2.118%202.033-2.814%203.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34%200%200%201-.226.084.34.34%200%200%201-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067%202.7-5.545%205.975-5.523m-.02%202.826c-1.62-.01-2.944%201.315-2.955%202.96-.01%201.646%201.295%202.988%202.916%202.999h.002c1.621.01%202.943-1.316%202.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005%201.1c1.017.006%201.829.83%201.822%201.89s-.83%201.874-1.848%201.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874%201.848-1.868m-2.155%2011.857%204.14.025c.271.002.49.305.487.676l-.013%201.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668%22%20style%3D%22color%3A%23000%3Bfont-style%3Anormal%3Bfont-variant%3Anormal%3Bfont-weight%3A400%3Bfont-stretch%3Anormal%3Bfont-size%3Amedium%3Bline-height%3Anormal%3Bfont-family%3Asans-serif%3Bfont-variant-ligatures%3Anormal%3Bfont-variant-position%3Anormal%3Bfont-variant-caps%3Anormal%3Bfont-variant-numeric%3Anormal%3Bfont-variant-alternates%3Anormal%3Bfont-feature-settings%3Anormal%3Btext-indent%3A0%3Btext-align%3Astart%3Btext-decoration%3Anone%3Btext-decoration-line%3Anone%3Btext-decoration-style%3Asolid%3Btext-decoration-color%3A%23000%3Bletter-spacing%3Anormal%3Bword-spacing%3Anormal%3Btext-transform%3Anone%3Bwriting-mode%3Alr-tb%3Bdirection%3Altr%3Btext-orientation%3Amixed%3Bdominant-baseline%3Aauto%3Bbaseline-shift%3Abaseline%3Btext-anchor%3Astart%3Bwhite-space%3Anormal%3Bshape-padding%3A0%3Bclip-rule%3Aevenodd%3Bdisplay%3Ainline%3Boverflow%3Avisible%3Bvisibility%3Avisible%3Bopacity%3A1%3Bisolation%3Aauto%3Bmix-blend-mode%3Anormal%3Bcolor-interpolation%3AsRGB%3Bcolor-interpolation-filters%3AlinearRGB%3Bsolid-color%3A%23000%3Bsolid-opacity%3A1%3Bvector-effect%3Anone%3Bfill%3A%23000%3Bfill-opacity%3A.4%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-linecap%3Abutt%3Bstroke-linejoin%3Amiter%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-dashoffset%3A0%3Bstroke-opacity%3A1%3Bcolor-rendering%3Aauto%3Bimage-rendering%3Aauto%3Bshape-rendering%3Aauto%3Btext-rendering%3Aauto%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-9.415-.316C-12.69-.338-15.37%202.14-15.39%205.207c-.017%202.716%201.326%204.041%202.78%205.477%201.013%201%202.081%202.055%202.78%203.67l.092.076a.34.34%200%200%200%20.225.086.34.34%200%200%200%20.227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6%201.78-2.64%202.814-3.634%201.473-1.414%202.847-2.733%202.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057%208.784c1.621.011%202.944-1.315%202.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945%201.315-2.955%202.96s1.295%202.989%202.916%203%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23e1e3e9%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-11.594%2015.465c-.27-.002-.492.297-.494.668l-.012%201.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23fff%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl.maplibregl-ctrl-attrib{padding:0 5px;background-color:hsla(0,0%,100%,.5);margin:0}@media screen{.maplibregl-ctrl-attrib.maplibregl-compact{min-height:20px;padding:2px 24px 2px 0;margin:10px;position:relative;background-color:#fff;color:#000;border-radius:12px;box-sizing:content-box}.maplibregl-ctrl-attrib.maplibregl-compact-show{padding:2px 28px 2px 8px;visibility:visible}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact-show,.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact-show{padding:2px 8px 2px 28px;border-radius:12px}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-inner{display:none}.maplibregl-ctrl-attrib-button{display:none;cursor:pointer;position:absolute;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20fill-rule%3D%22evenodd%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M4%2010a6%206%200%201%200%2012%200%206%206%200%201%200-12%200m5-3a1%201%200%201%200%202%200%201%201%200%201%200-2%200m0%203a1%201%200%201%201%202%200v3a1%201%200%201%201-2%200%22%2F%3E%3C%2Fsvg%3E");background-color:hsla(0,0%,100%,.5);width:24px;height:24px;box-sizing:border-box;border-radius:12px;outline:none;top:0;right:0;border:0}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;list-style:none}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button::-webkit-details-marker{display:none}.maplibregl-ctrl-bottom-left .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-top-left .maplibregl-ctrl-attrib-button{left:0}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-inner{display:block}.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-button{background-color:rgba(0,0,0,.05)}.maplibregl-ctrl-bottom-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;right:0}.maplibregl-ctrl-top-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{top:0;right:0}.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{top:0;left:0}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;left:0}}@media screen and (forced-colors:active){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22%23fff%22%20fill-rule%3D%22evenodd%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M4%2010a6%206%200%201%200%2012%200%206%206%200%201%200-12%200m5-3a1%201%200%201%200%202%200%201%201%200%201%200-2%200m0%203a1%201%200%201%201%202%200v3a1%201%200%201%201-2%200%22%2F%3E%3C%2Fsvg%3E")}}@media screen and (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20fill-rule%3D%22evenodd%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M4%2010a6%206%200%201%200%2012%200%206%206%200%201%200-12%200m5-3a1%201%200%201%200%202%200%201%201%200%201%200-2%200m0%203a1%201%200%201%201%202%200v3a1%201%200%201%201-2%200%22%2F%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl-attrib a{color:rgba(0,0,0,.75);text-decoration:none}.maplibregl-ctrl-attrib a:hover{color:inherit;text-decoration:underline}.maplibregl-attrib-empty{display:none}.maplibregl-ctrl-scale{background-color:hsla(0,0%,100%,.75);font-size:10px;white-space:nowrap;border-color:#333;border-style:none solid solid;border-width:medium 2px 2px;padding:0 5px;color:#333;box-sizing:border-box}.maplibregl-popup{position:absolute;top:0;left:0;display:flex;will-change:transform;pointer-events:none}.maplibregl-popup-anchor-top,.maplibregl-popup-anchor-top-left,.maplibregl-popup-anchor-top-right{flex-direction:column}.maplibregl-popup-anchor-bottom,.maplibregl-popup-anchor-bottom-left,.maplibregl-popup-anchor-bottom-right{flex-direction:column-reverse}.maplibregl-popup-anchor-left{flex-direction:row}.maplibregl-popup-anchor-right{flex-direction:row-reverse}.maplibregl-popup-tip{width:0;height:0;border:10px solid transparent;z-index:1}.maplibregl-popup-anchor-top .maplibregl-popup-tip{align-self:center;border-top:none;border-bottom-color:#fff}.maplibregl-popup-anchor-top-left .maplibregl-popup-tip{align-self:flex-start;border-top:none;border-left:none;border-bottom-color:#fff}.maplibregl-popup-anchor-top-right .maplibregl-popup-tip{align-self:flex-end;border-top:none;border-right:none;border-bottom-color:#fff}.maplibregl-popup-anchor-bottom .maplibregl-popup-tip{align-self:center;border-bottom:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip{align-self:flex-start;border-bottom:none;border-left:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip{align-self:flex-end;border-bottom:none;border-right:none;border-top-color:#fff}.maplibregl-popup-anchor-left .maplibregl-popup-tip{align-self:center;border-left:none;border-right-color:#fff}.maplibregl-popup-anchor-right .maplibregl-popup-tip{align-self:center;border-right:none;border-left-color:#fff}[dir=rtl] .maplibregl-popup-anchor-left{flex-direction:row-reverse}[dir=rtl] .maplibregl-popup-anchor-right{flex-direction:row}[dir=rtl] .maplibregl-popup-anchor-top-left .maplibregl-popup-tip{align-self:flex-end}[dir=rtl] .maplibregl-popup-anchor-top-right .maplibregl-popup-tip{align-self:flex-start}[dir=rtl] .maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip{align-self:flex-end}[dir=rtl] .maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip{align-self:flex-start}.maplibregl-popup-close-button{position:absolute;right:0;top:0;border:0;border-radius:0 3px 0 0;cursor:pointer;background-color:transparent}.maplibregl-popup-close-button:hover{background-color:rgba(0,0,0,.05)}.maplibregl-popup-content{position:relative;background:#fff;border-radius:3px;box-shadow:0 1px 2px rgba(0,0,0,.1);padding:15px 10px;pointer-events:auto}.maplibregl-popup-anchor-top-left .maplibregl-popup-content{border-top-left-radius:0}.maplibregl-popup-anchor-top-right .maplibregl-popup-content{border-top-right-radius:0}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-content{border-bottom-left-radius:0}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-content{border-bottom-right-radius:0}.maplibregl-popup-track-pointer{display:none}.maplibregl-popup-track-pointer *{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-map:hover .maplibregl-popup-track-pointer{display:flex}.maplibregl-map:active .maplibregl-popup-track-pointer{display:none}.maplibregl-marker{position:absolute;top:0;left:0;will-change:transform;transition:opacity .2s}.maplibregl-marker-draggable{cursor:grab}.maplibregl-user-location-dot,.maplibregl-user-location-dot:before{background-color:#1da1f2;width:15px;height:15px;border-radius:50%}.maplibregl-user-location-dot:before{content:"";position:absolute;animation:maplibregl-user-location-dot-pulse 2s infinite}.maplibregl-user-location-dot:after{border-radius:50%;border:2px solid #fff;content:"";height:19px;left:-2px;position:absolute;top:-2px;width:19px;box-sizing:border-box;box-shadow:0 0 3px rgba(0,0,0,.35)}@media (prefers-reduced-motion:reduce){.maplibregl-user-location-dot:before{animation:none}}@keyframes maplibregl-user-location-dot-pulse{0%{transform:scale(1);opacity:1}70%{transform:scale(3);opacity:0}to{transform:scale(1);opacity:0}}.maplibregl-user-location-dot-stale{background-color:#aaa}.maplibregl-user-location-dot-stale:after{display:none}.maplibregl-user-location-accuracy-circle{background-color:#1da1f233;width:1px;height:1px;border-radius:100%}.maplibregl-crosshair,.maplibregl-crosshair .maplibregl-interactive,.maplibregl-crosshair .maplibregl-interactive:active{cursor:crosshair}.maplibregl-boxzoom{position:absolute;top:0;left:0;width:0;height:0;background:#fff;border:2px dotted #202020;opacity:.5}.maplibregl-cooperative-gesture-screen{background:rgba(0,0,0,.4);position:absolute;inset:0;display:flex;justify-content:center;align-items:center;color:#fff;padding:1rem;font-size:1.4em;line-height:1.2;opacity:0;pointer-events:none;transition:opacity 1s ease 1s;z-index:99999}.maplibregl-cooperative-gesture-screen.maplibregl-show{opacity:1;transition:opacity .05s}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:none}@media (hover:none),(pointer:coarse){.maplibregl-cooperative-gesture-screen .maplibregl-desktop-message{display:none}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:block}}.maplibregl-pseudo-fullscreen{position:fixed!important;width:100%!important;height:100%!important;top:0!important;left:0!important;z-index:99999}',document.head.appendChild(e)}})()});var Ar=U(Ur=>{"use strict";var _5=yo(),fk=mh(),ck=h5(),kMe=Jc().addStyleRule,vk=At(),fle=Mn(),cle=A0(),vle=vk.extendFlat,w5=vk.extendDeepAll;Ur.modules={};Ur.allCategories={};Ur.allTypes=[];Ur.subplotsRegistry={};Ur.componentsRegistry={};Ur.layoutArrayContainers=[];Ur.layoutArrayRegexes=[];Ur.traceLayoutAttributes={};Ur.localeRegistry={};Ur.apiMethodRegistry={};Ur.collectableSubplotTypes=null;Ur.register=function(r){if(Ur.collectableSubplotTypes=null,r)r&&!Array.isArray(r)&&(r=[r]);else throw new Error("No argument passed to Plotly.register.");for(var t=0;t{"use strict";var yle=l0().timeFormat,Tk=Gr(),T5=yo(),To=(u0(),Fe(s0)).mod,L0=(Et(),Fe(zt)),fi=L0.BADNUM,Cn=L0.ONEDAY,Kc=L0.ONEHOUR,wo=L0.ONEMIN,C0=L0.ONESEC,jc=L0.EPOCHJD,Bl=Ar(),yk=l0().utcFormat,gle=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\d)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d(:?\d\d)?)?)?)?)?)?\s*$/m,xle=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\di?)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d(:?\d\d)?)?)?)?)?)?\s*$/m,gk=new Date().getFullYear()-70;function Hl(e){return e&&Bl.componentsRegistry.calendars&&typeof e=="string"&&e!=="gregorian"}Qt.dateTick0=function(e,r){var t=ble(e,!!r);if(r<2)return t;var a=Qt.dateTime2ms(t,e);return a+=Cn*(r-1),Qt.ms2DateTime(a,0,e)};function ble(e,r){return Hl(e)?r?Bl.getComponentMethod("calendars","CANONICAL_SUNDAY")[e]:Bl.getComponentMethod("calendars","CANONICAL_TICK")[e]:r?"2000-01-02":"2000-01-01"}Qt.dfltRange=function(e){return Hl(e)?Bl.getComponentMethod("calendars","DFLTRANGE")[e]:["2000-01-01","2001-01-01"]};Qt.isJSDate=function(e){return typeof e=="object"&&e!==null&&typeof e.getTime=="function"};var Ah,kh;Qt.dateTime2ms=function(e,r){if(Qt.isJSDate(e)){var t=e.getTimezoneOffset()*wo,a=(e.getUTCMinutes()-e.getMinutes())*wo+(e.getUTCSeconds()-e.getSeconds())*C0+(e.getUTCMilliseconds()-e.getMilliseconds());if(a){var n=3*wo;t=t-n/2+To(a-t+n/2,n)}return e=Number(e)-t,e>=Ah&&e<=kh?e:fi}if(typeof e!="string"&&typeof e!="number")return fi;e=String(e);var i=Hl(r),l=e.charAt(0);i&&(l==="G"||l==="g")&&(e=e.slice(1),r="");var o=i&&r.slice(0,7)==="chinese",s=e.match(o?xle:gle);if(!s)return fi;var u=s[1],f=s[3]||"1",c=Number(s[5]||1),v=Number(s[7]||0),h=Number(s[9]||0),p=Number(s[11]||0);if(i){if(u.length===2)return fi;u=Number(u);var y;try{var m=Bl.getComponentMethod("calendars","getCal")(r);if(o){var b=f.charAt(f.length-1)==="i";f=parseInt(f,10),y=m.newDate(u,m.toMonthIndex(u,f,b),c)}else y=m.newDate(u,Number(f),c)}catch(w){return fi}return y?(y.toJD()-jc)*Cn+v*Kc+h*wo+p*C0:fi}u.length===2?u=(Number(u)+2e3-gk)%100+gk:u=Number(u),f-=1;var _=new Date(Date.UTC(2e3,f,c,v,h));return _.setUTCFullYear(u),_.getUTCMonth()!==f||_.getUTCDate()!==c?fi:_.getTime()+p*C0};Ah=Qt.MIN_MS=Qt.dateTime2ms("-9999");kh=Qt.MAX_MS=Qt.dateTime2ms("9999-12-31 23:59:59.9999");Qt.isDateTime=function(e,r){return Qt.dateTime2ms(e,r)!==fi};function k0(e,r){return String(e+Math.pow(10,r)).slice(1)}var Mh=90*Cn,xk=3*Kc,bk=5*wo;Qt.ms2DateTime=function(e,r,t){if(typeof e!="number"||!(e>=Ah&&e<=kh))return fi;r||(r=0);var a=Math.floor(To(e+.05,1)*10),n=Math.round(e-a/10),i,l,o,s,u,f;if(Hl(t)){var c=Math.floor(n/Cn)+jc,v=Math.floor(To(e,Cn));try{i=Bl.getComponentMethod("calendars","getCal")(t).fromJD(c).formatDate("yyyy-mm-dd")}catch(h){i=yk("G%Y-%m-%d")(new Date(n))}if(i.charAt(0)==="-")for(;i.length<11;)i="-0"+i.slice(1);else for(;i.length<10;)i="0"+i;l=r=Ah+Cn&&e<=kh-Cn))return fi;var r=Math.floor(To(e+.05,1)*10),t=new Date(Math.round(e-r/10)),a=yle("%Y-%m-%d")(t),n=t.getHours(),i=t.getMinutes(),l=t.getSeconds(),o=t.getUTCMilliseconds()*10+r;return Mk(a,n,i,l,o)};function Mk(e,r,t,a,n){if((r||t||a||n)&&(e+=" "+k0(r,2)+":"+k0(t,2),(a||n)&&(e+=":"+k0(a,2),n))){for(var i=4;n%10===0;)i-=1,n/=10;e+="."+k0(n,i)}return e}Qt.cleanDate=function(e,r,t){if(e===fi)return r;if(Qt.isJSDate(e)||typeof e=="number"&&isFinite(e)){if(Hl(t))return T5.error("JS Dates and milliseconds are incompatible with world calendars",e),r;if(e=Qt.ms2DateTimeLocal(+e),!e&&r!==void 0)return r}else if(!Qt.isDateTime(e,t))return T5.error("unrecognized date",e),r;return e};var _le=/%\d?f/g,wle=/%h/g,Tle={1:"1",2:"1",3:"2",4:"2"};function _k(e,r,t,a){e=e.replace(_le,function(i){var l=Math.min(+i.charAt(1)||6,6),o=(r/1e3%1+2).toFixed(l).slice(2).replace(/0+$/,"")||"0";return o});var n=new Date(Math.floor(r+.05));if(e=e.replace(wle,function(){return Tle[t("%q")(n)]}),Hl(a))try{e=Bl.getComponentMethod("calendars","worldCalFmt")(e,r,a)}catch(i){return"Invalid"}return t(e)(n)}var Mle=[59,59.9,59.99,59.999,59.9999];function Ale(e,r){var t=To(e+.05,Cn),a=k0(Math.floor(t/Kc),2)+":"+k0(To(Math.floor(t/wo),60),2);if(r!=="M"){Tk(r)||(r=0);var n=Math.min(To(e/C0,60),Mle[r]),i=(100+n).toFixed(r).slice(1);r>0&&(i=i.replace(/0+$/,"").replace(/[\.]$/,"")),a+=":"+i}return a}Qt.formatDate=function(e,r,t,a,n,i){if(n=Hl(n)&&n,!r)if(t==="y")r=i.year;else if(t==="m")r=i.month;else if(t==="d")r=i.dayMonth+` -`+i.year;else return Ale(e,t)+` -`+_k(i.dayMonthYear,e,a,n);return _k(r,e,a,n)};var wk=3*Cn;Qt.incrementMonth=function(e,r,t){t=Hl(t)&&t;var a=To(e,Cn);if(e=Math.round(e-a),t)try{var n=Math.round(e/Cn)+jc,i=Bl.getComponentMethod("calendars","getCal")(t),l=i.fromJD(n);return r%12?i.add(l,r,"m"):i.add(l,r/12,"y"),(l.toJD()-jc)*Cn+a}catch(s){T5.error("invalid ms "+e+" in calendar "+t)}var o=new Date(e+wk);return o.setUTCMonth(o.getUTCMonth()+r)+a-wk};Qt.findExactDates=function(e,r){for(var t=0,a=0,n=0,i=0,l,o,s=Hl(r)&&Bl.getComponentMethod("calendars","getCal")(r),u=0;u{"use strict";kk.exports=function(r){return r}});var k5=U(Ol=>{"use strict";var kle=Gr(),Cle=yo(),Lle=M5(),Sle=(Et(),Fe(zt)).BADNUM,A5=1e-9;Ol.findBin=function(e,r,t){if(kle(r.start))return t?Math.ceil((e-r.start)/r.size-A5)-1:Math.floor((e-r.start)/r.size+A5);var a=0,n=r.length,i=0,l=n>1?(r[n-1]-r[0])/(n-1):1,o,s;for(l>=0?s=t?qle:Dle:s=t?Ele:Ple,e+=l*A5*(t?-1:1)*(l>=0?1:-1);a90&&Cle.log("Long binary search..."),a-1};function qle(e,r){return er}function Ele(e,r){return e>=r}Ol.sorterAsc=function(e,r){return e-r};Ol.sorterDes=function(e,r){return r-e};Ol.distinctVals=function(e){var r=e.slice();r.sort(Ol.sorterAsc);var t;for(t=r.length-1;t>-1&&r[t]===Sle;t--);for(var a=r[t]-r[0]||1,n=a/(t||1)/1e4,i=[],l,o=0;o<=t;o++){var s=r[o],u=s-l;l===void 0?(i.push(s),l=s):u>n&&(a=Math.min(a,u),i.push(s),l=s)}return{vals:i,minDiff:a}};Ol.roundUp=function(e,r,t){for(var a=0,n=r.length-1,i,l=0,o=t?0:1,s=t?1:0,u=t?Math.ceil:Math.floor;a0&&(a=1),t&&a)return e.sort(r)}return a?e:e.reverse()};Ol.findIndexOfMin=function(e,r){r=r||Lle;for(var t=1/0,a,n=0;nzle});function Rle(e){return Object.keys(e).sort()}var zle,L5=Lr(()=>{"use strict";zle=Rle});var Ck=U(ea=>{"use strict";var Qc=Gr(),Fle=Tn().isArrayOrTypedArray;ea.aggNums=function(e,r,t,a){var n,i;if((!a||a>t.length)&&(a=t.length),Qc(r)||(r=!1),Fle(t[0])){for(i=new Array(a),n=0;ne.length-1)return e[e.length-1];var t=r%1;return t*e[Math.ceil(r)]+(1-t)*e[Math.floor(r)]}});var Pk=U((PMe,Dk)=>{"use strict";var Lk=(u0(),Fe(s0)),S5=Lk.mod,Nle=Lk.modHalf,ev=Math.PI,Mo=2*ev;function Ile(e){return e/180*ev}function Ble(e){return e/ev*180}function q5(e){return Math.abs(e[1]-e[0])>Mo-1e-14}function Sk(e,r){return Nle(r-e,Mo)}function Hle(e,r){return Math.abs(Sk(e,r))}function qk(e,r){if(q5(r))return!0;var t,a;r[0]a&&(a+=Mo);var n=S5(e,Mo),i=n+Mo;return n>=t&&n<=a||i>=t&&i<=a}function Ole(e,r,t,a){if(!qk(r,a))return!1;var n,i;return t[0]=n&&e<=i}function D5(e,r,t,a,n,i,l){n=n||0,i=i||0;var o=q5([t,a]),s,u,f,c,v;o?(s=0,u=ev,f=Mo):t{"use strict";Ns.isLeftAnchor=function(r){return r.xanchor==="left"||r.xanchor==="auto"&&r.x<=1/3};Ns.isCenterAnchor=function(r){return r.xanchor==="center"||r.xanchor==="auto"&&r.x>1/3&&r.x<2/3};Ns.isRightAnchor=function(r){return r.xanchor==="right"||r.xanchor==="auto"&&r.x>=2/3};Ns.isTopAnchor=function(r){return r.yanchor==="top"||r.yanchor==="auto"&&r.y>=2/3};Ns.isMiddleAnchor=function(r){return r.yanchor==="middle"||r.yanchor==="auto"&&r.y>1/3&&r.y<2/3};Ns.isBottomAnchor=function(r){return r.yanchor==="bottom"||r.yanchor==="auto"&&r.y<=1/3}});var Fk=U(Is=>{"use strict";var P5=(u0(),Fe(s0)).mod;Is.segmentsIntersect=zk;function zk(e,r,t,a,n,i,l,o){var s=t-e,u=n-e,f=l-n,c=a-r,v=i-r,h=o-i,p=s*h-f*c;if(p===0)return null;var y=(u*h-f*v)/p,m=(u*c-s*v)/p;return m<0||m>1||y<0||y>1?null:{x:e+s*y,y:r+c*y}}Is.segmentDistance=function(r,t,a,n,i,l,o,s){if(zk(r,t,a,n,i,l,o,s))return 0;var u=a-r,f=n-t,c=o-i,v=s-l,h=u*u+f*f,p=c*c+v*v,y=Math.min(Ch(u,f,h,i-r,l-t),Ch(u,f,h,o-r,s-t),Ch(c,v,p,r-i,t-l),Ch(c,v,p,a-i,n-l));return Math.sqrt(y)};function Ch(e,r,t,a,n){var i=a*e+n*r;if(i<0)return a*a+n*n;if(i>t){var l=a-e,o=n-r;return l*l+o*o}else{var s=a*r-n*e;return s*s/t}}var Lh,E5,Rk;Is.getTextLocation=function(r,t,a,n){if((r!==E5||n!==Rk)&&(Lh={},E5=r,Rk=n),Lh[a])return Lh[a];var i=r.getPointAtLength(P5(a-n/2,t)),l=r.getPointAtLength(P5(a+n/2,t)),o=Math.atan((l.y-i.y)/(l.x-i.x)),s=r.getPointAtLength(P5(a,t)),u=(s.x*4+i.x+l.x)/6,f=(s.y*4+i.y+l.y)/6,c={x:u,y:f,theta:o};return Lh[a]=c,c};Is.clearLocationCache=function(){E5=null};Is.getVisibleSegment=function(r,t,a){var n=t.left,i=t.right,l=t.top,o=t.bottom,s=0,u=r.getTotalLength(),f=u,c,v;function h(y){var m=r.getPointAtLength(y);y===0?c=m:y===u&&(v=m);var b=m.xi?m.x-i:0,_=m.yo?m.y-o:0;return Math.sqrt(b*b+_*_)}for(var p=h(s);p;){if(s+=p+a,s>f)return;p=h(s)}for(p=h(f);p;){if(f-=p+a,s>f)return;p=h(f)}return{min:s,max:f,len:f-s,total:u,isClosed:s===0&&f===u&&Math.abs(c.x-v.x)<.1&&Math.abs(c.y-v.y)<.1}};Is.findPointOnPath=function(r,t,a,n){n=n||{};for(var i=n.pathLength||r.getTotalLength(),l=n.tolerance||.001,o=n.iterationLimit||30,s=r.getPointAtLength(0)[a]>r.getPointAtLength(i)[a]?-1:1,u=0,f=0,c=i,v,h,p;u0?c=v:f=v,u++}return h}});var Sh=U(rv=>{"use strict";var Yl={};rv.throttle=function(r,t,a){var n=Yl[r],i=Date.now();if(!n){for(var l in Yl)Yl[l].tsn.ts+t){o();return}n.timer=setTimeout(function(){o(),n.timer=null},t)};rv.done=function(e){var r=Yl[e];return!r||!r.timer?Promise.resolve():new Promise(function(t){var a=r.onDone;r.onDone=function(){a&&a(),t(),r.onDone=null}})};rv.clear=function(e){if(e)Nk(Yl[e]),delete Yl[e];else for(var r in Yl)rv.clear(r)};function Nk(e){e&&e.timer!==null&&(clearTimeout(e.timer),e.timer=null)}});var Bk=U((FMe,Ik)=>{"use strict";Ik.exports=function(r){r._clearResponsive&&(r._clearResponsive(),delete r._clearResponsive)}});var Hk=U((NMe,qh)=>{"use strict";qh.exports=R5;qh.exports.isMobile=R5;qh.exports.default=R5;var Vle=/(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|redmi|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,Xle=/CrOS/,Wle=/android|ipad|playbook|silk/i;function R5(e){e||(e={});let r=e.ua;if(!r&&typeof navigator!="undefined"&&(r=navigator.userAgent),r&&r.headers&&typeof r.headers["user-agent"]=="string"&&(r=r.headers["user-agent"]),typeof r!="string")return!1;let t=Vle.test(r)&&!Xle.test(r)||!!e.tablet&&Wle.test(r);return!t&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&r.indexOf("Macintosh")!==-1&&r.indexOf("Safari")!==-1&&(t=!0),t}});var Yk=U((IMe,Ok)=>{"use strict";var Zle=Gr(),Jle=Hk();Ok.exports=function(r){var t;if(r&&r.hasOwnProperty("userAgent")?t=r.userAgent:t=$le(),typeof t!="string")return!0;var a=Jle({ua:{headers:{"user-agent":t}},tablet:!0,featureDetect:!1});if(!a)for(var n=t.split(" "),i=1;i-1;o--){var s=n[o];if(s.slice(0,8)==="Version/"){var u=s.slice(8).split(".")[0];if(Zle(u)&&(u=+u),u>=13)return!0}}}return a};function $le(){var e;return typeof navigator!="undefined"&&(e=navigator.userAgent),e&&e.headers&&typeof e.headers["user-agent"]=="string"&&(e=e.headers["user-agent"]),e}});var Uk=U((BMe,Gk)=>{"use strict";var Kle=Er();Gk.exports=function(r,t,a){var n=r.selectAll("g."+a.replace(/\s/g,".")).data(t,function(l){return l[0].trace.uid});n.exit().remove(),n.enter().append("g").attr("class",a),n.order();var i=r.classed("rangeplot")?"nodeRangePlot3":"node3";return n.each(function(l){l[0][i]=Kle.select(this)}),n}});var Xk=U((HMe,Vk)=>{"use strict";var jle=Ar();Vk.exports=function(r,t){for(var a=r._context.locale,n=0;n<2;n++){for(var i=r._context.locales,l=0;l<2;l++){var o=(i[a]||{}).dictionary;if(o){var s=o[t];if(s)return s}i=jle.localeRegistry}var u=a.split("-")[0];if(u===a)break;a=u}return t}});var Zk=U((OMe,Wk)=>{"use strict";Wk.exports=function(r){for(var t={},a=[],n=0,i=0;i{"use strict";Jk.exports=function(r){for(var t=roe(r)?eoe:Qle,a=[],n=0;n{"use strict";Kk.exports=function(r,t){if(!t)return r;var a=1/Math.abs(t),n=a>1?(a*r+a*t)/a:r+t,i=String(n).length;if(i>16){var l=String(t).length,o=String(r).length;if(i>=o+l){var s=parseFloat(n).toPrecision(12);s.indexOf("e+")===-1&&(n=+s)}}return n}});var eC={};vt(eC,{default:()=>noe});function aoe(e){return typeof e=="string"&&(e=e.replace(toe,"")),(0,Qk.default)(e)?Number(e):void 0}var Qk,toe,noe,rC=Lr(()=>{"use strict";Qk=q9(Gr());Et();toe=/^['"%,$#\s']+|[, ]|['"%,$#\s']+$/g;noe=aoe});var nC=U((VMe,aC)=>{"use strict";var ioe=/<[^>]*>/g,loe=/[\p{S}\p{P}]/gu,ooe=/[\p{Cc}\p{Cf}\uFE00-\uFE0F\u20E3]/gu,soe=/�/g,uoe=/\s+/g,Dh="-",tC=Dh.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),foe=new RegExp(tC+"{3,}","g"),coe=new RegExp(tC+"$","g"),voe=60;function doe(e){return typeof e.toWellFormed=="function"?e.toWellFormed():new TextDecoder().decode(new TextEncoder().encode(e))}aC.exports=function(r,t=voe){var a=doe(r!=null?r:"").replace(soe,"").replace(ioe," ").replace(loe,n=>n===Dh?n:"").toLowerCase().trim().replace(uoe,Dh).replace(ooe,"").replace(foe,Dh);return a.length<=t?a:Array.from(a).slice(0,t).join("").replace(coe,"")}});var ke=U((XMe,mC)=>{"use strict";var tv=Er(),hoe=l0().utcFormat,poe=kg().format,fC=Gr(),cC=(Et(),Fe(zt)),vC=cC.FP_SAFE,moe=-vC,iC=cC.BADNUM,se={};mC.exports=se;se.adjustFormat=function(r){if(!r||/^\d[.]\df/.test(r)||/[.]\d%/.test(r))return r;if(r==="0.f")return"~f";if(/^\d%/.test(r))return"~%";if(/^\ds/.test(r))return"~s";var t=(r.match(/^[+\-( ]?/)||[""])[0],a=r.slice(t.length);return!/^[~,.0$#]/.test(a)&&/[&fps]/.test(a)?t+"~"+a:r};var lC={};se.warnBadFormat=function(e){var r=String(e);lC[r]||(lC[r]=1,se.warn('encountered bad format: "'+r+'"'))};se.noFormat=function(e){return String(e)};se.numberFormat=function(e){var r;try{r=poe(se.adjustFormat(e))}catch(t){return se.warnBadFormat(e),se.noFormat}return r};se.nestedProperty=Bd();se.keyedContainer=Q9();se.relativeAttr=rw();se.isPlainObject=Ms();se.toLogRange=Od();se.relinkPrivateKeys=iw();var Ao=Tn();se.isArrayBuffer=Ao.isArrayBuffer;se.isTypedArray=Ao.isTypedArray;se.isArrayOrTypedArray=Ao.isArrayOrTypedArray;se.isArray1D=Ao.isArray1D;se.ensureArray=Ao.ensureArray;se.concat=Ao.concat;se.maxRowLength=Ao.maxRowLength;se.minRowLength=Ao.minRowLength;var dC=(u0(),Fe(s0));se.mod=dC.mod;se.modHalf=dC.modHalf;var ko=kM();se.valObjectMeta=ko.valObjectMeta;se.coerce=ko.coerce;se.coerce2=ko.coerce2;se.coerceFont=ko.coerceFont;se.coercePattern=ko.coercePattern;se.coerceHoverinfo=ko.coerceHoverinfo;se.coerceSelectionMarkerOpacity=ko.coerceSelectionMarkerOpacity;se.validate=ko.validate;var Yn=Ak();se.dateTime2ms=Yn.dateTime2ms;se.isDateTime=Yn.isDateTime;se.ms2DateTime=Yn.ms2DateTime;se.ms2DateTimeLocal=Yn.ms2DateTimeLocal;se.cleanDate=Yn.cleanDate;se.isJSDate=Yn.isJSDate;se.formatDate=Yn.formatDate;se.incrementMonth=Yn.incrementMonth;se.dateTick0=Yn.dateTick0;se.dfltRange=Yn.dfltRange;se.findExactDates=Yn.findExactDates;se.MIN_MS=Yn.MIN_MS;se.MAX_MS=Yn.MAX_MS;var Bs=k5();se.findBin=Bs.findBin;se.sorterAsc=Bs.sorterAsc;se.sorterDes=Bs.sorterDes;se.distinctVals=Bs.distinctVals;se.roundUp=Bs.roundUp;se.sort=Bs.sort;se.findIndexOfMin=Bs.findIndexOfMin;se.sortObjectKeys=(L5(),Fe(C5)).default;var Gl=Ck();se.aggNums=Gl.aggNums;se.len=Gl.len;se.mean=Gl.mean;se.geometricMean=Gl.geometricMean;se.median=Gl.median;se.midRange=Gl.midRange;se.variance=Gl.variance;se.stdev=Gl.stdev;se.interp=Gl.interp;var Hi=yh();se.init2dArray=Hi.init2dArray;se.transposeRagged=Hi.transposeRagged;se.dot=Hi.dot;se.translationMatrix=Hi.translationMatrix;se.rotationMatrix=Hi.rotationMatrix;se.rotationXYMatrix=Hi.rotationXYMatrix;se.apply3DTransform=Hi.apply3DTransform;se.apply2DTransform=Hi.apply2DTransform;se.apply2DTransform2=Hi.apply2DTransform2;se.convertCssMatrix=Hi.convertCssMatrix;se.inverseTransformMatrix=Hi.inverseTransformMatrix;var dl=Pk();se.deg2rad=dl.deg2rad;se.rad2deg=dl.rad2deg;se.angleDelta=dl.angleDelta;se.angleDist=dl.angleDist;se.isFullCircle=dl.isFullCircle;se.isAngleInsideSector=dl.isAngleInsideSector;se.isPtInsideSector=dl.isPtInsideSector;se.pathArc=dl.pathArc;se.pathSector=dl.pathSector;se.pathAnnulus=dl.pathAnnulus;var q0=Ek();se.isLeftAnchor=q0.isLeftAnchor;se.isCenterAnchor=q0.isCenterAnchor;se.isRightAnchor=q0.isRightAnchor;se.isTopAnchor=q0.isTopAnchor;se.isMiddleAnchor=q0.isMiddleAnchor;se.isBottomAnchor=q0.isBottomAnchor;var D0=Fk();se.segmentsIntersect=D0.segmentsIntersect;se.segmentDistance=D0.segmentDistance;se.getTextLocation=D0.getTextLocation;se.clearLocationCache=D0.clearLocationCache;se.getVisibleSegment=D0.getVisibleSegment;se.findPointOnPath=D0.findPointOnPath;var Rh=At();se.extendFlat=Rh.extendFlat;se.extendDeep=Rh.extendDeep;se.extendDeepAll=Rh.extendDeepAll;se.extendDeepNoArrays=Rh.extendDeepNoArrays;var z5=yo();se.log=z5.log;se.warn=z5.warn;se.error=z5.error;var yoe=(w0(),Fe(Zc));se.counterRegex=yoe.counter;var F5=Sh();se.throttle=F5.throttle;se.throttleDone=F5.done;se.clearThrottle=F5.clear;var Oi=Jc();se.getGraphDiv=Oi.getGraphDiv;se.isPlotDiv=Oi.isPlotDiv;se.removeElement=Oi.removeElement;se.addStyleRule=Oi.addStyleRule;se.addRelatedStyleRule=Oi.addRelatedStyleRule;se.deleteRelatedStyleRule=Oi.deleteRelatedStyleRule;se.setStyleOnHover=Oi.setStyleOnHover;se.getFullTransformMatrix=Oi.getFullTransformMatrix;se.getElementTransformMatrix=Oi.getElementTransformMatrix;se.getElementAndAncestors=Oi.getElementAndAncestors;se.equalDomRects=Oi.equalDomRects;se.clearResponsive=Bk();se.preserveDrawingBuffer=Yk();se.makeTraceGroups=Uk();se._=Xk();se.notifier=i5();se.filterUnique=Zk();se.filterVisible=$k();se.pushUnique=h5();se.increment=jk();se.cleanNumber=(rC(),Fe(eC)).default;se.slugify=nC();se.ensureNumber=function(r){return fC(r)?(r=Number(r),r>vC||r=r?!1:fC(e)&&e>=0&&e%1===0};se.noop=mh();se.identity=M5();se.repeat=function(e,r){for(var t=new Array(r),a=0;at?Math.max(t,Math.min(r,e)):Math.max(r,Math.min(t,e))};se.bBoxIntersect=function(e,r,t){return t=t||0,e.left<=r.right+t&&r.left<=e.right+t&&e.top<=r.bottom+t&&r.top<=e.bottom+t};se.simpleMap=function(e,r,t,a,n){for(var i=e.length,l=new Array(i),o=0;o=Math.pow(2,t)?n>10?(se.warn("randstr failed uniqueness"),l):e(r,t,a,(n||0)+1):l};se.OptionControl=function(e,r){e||(e={}),r||(r="opt");var t={};return t.optionList=[],t._newoption=function(a){a[r]=e,t[a.name]=a,t.optionList.push(a)},t["_"+r]=e,t};se.smooth=function(e,r){if(r=Math.round(r)||0,r<2)return e;var t=e.length,a=2*t,n=2*r-1,i=new Array(n),l=new Array(t),o,s,u,f;for(o=0;o=a&&(u-=a*Math.floor(u/a)),u<0?u=-1-u:u>=t&&(u=a-1-u),f+=e[u]*i[s];l[o]=f}return l};se.syncOrAsync=function(e,r,t){var a,n;function i(){return se.syncOrAsync(e,r,t)}for(;e.length;)if(n=e.splice(0,1)[0],a=n(r),a&&a.then)return a.then(i);return t&&t(r)};se.stripTrailingSlash=function(e){return e.slice(-1)==="/"?e.slice(0,-1):e};se.noneOrAll=function(e,r,t){if(e){var a=!1,n=!0,i,l;for(i=0;i0?n:0})};se.fillArray=function(e,r,t,a){if(a=a||se.identity,se.isArrayOrTypedArray(e))for(var n=0;nboe.test(window.navigator.userAgent);var _oe=/Firefox\/(\d+)\.\d+/;se.getFirefoxVersion=function(){var e=_oe.exec(window.navigator.userAgent);if(e&&e.length===2){var r=parseInt(e[1]);if(!isNaN(r))return r}return null};se.isD3Selection=function(e){return e instanceof tv.selection};se.ensureSingle=function(e,r,t,a){var n=e.select(r+(t?"."+t:""));if(n.size())return n;var i=e.append(r);return t&&i.classed(t,!0),a&&i.call(a),i};se.ensureSingleById=function(e,r,t,a){var n=e.select(r+"#"+t);if(n.size())return n;var i=e.append(r).attr("id",t);return a&&i.call(a),i};se.objectFromPath=function(e,r){for(var t=e.split("."),a,n=a={},i=0;i1?n+l[1]:"";if(i&&(l.length>1||o.length>4||t))for(;a.test(o);)o=o.replace(a,"$1"+i+"$2");return o+s};se.TEMPLATE_STRING_REGEX=/%{([^\s%{}:]*)([:|\|][^}]*)?}/g;var pC=/^\w*$/;se.templateString=function(e,r){var t={};return e.replace(se.TEMPLATE_STRING_REGEX,function(a,n){var i;return pC.test(n)?i=r[n]:(t[n]=t[n]||se.nestedProperty(r,n).get,i=t[n](!0)),i!==void 0?i:""})};var Moe={max:10,count:0,name:"hovertemplate"};se.hovertemplateString=e=>N5(Pt(ut({},e),{opts:Moe}));var Aoe={max:10,count:0,name:"texttemplate"};se.texttemplateString=e=>N5(Pt(ut({},e),{opts:Aoe}));var koe=/^(\S+)([\*\/])(-?\d+(\.\d+)?)$/;function Coe(e){var r=e.match(koe);return r?{key:r[1],op:r[2],number:Number(r[3])}:{key:e,op:null,number:null}}var Loe={max:10,count:0,name:"texttemplate",parseMultDiv:!0};se.texttemplateStringForShapes=e=>N5(Pt(ut({},e),{opts:Loe}));var oC=/^[:|\|]/;function N5({data:e=[],locale:r,fallback:t,labels:a={},opts:n,template:i}){return i.replace(se.TEMPLATE_STRING_REGEX,(l,o,s)=>{let u=["xother","yother"].includes(o),f=["_xother","_yother"].includes(o),c=["_xother_","_yother_"].includes(o),v=["xother_","yother_"].includes(o),h=u||f||v||c;(f||c)&&(o=o.substring(1)),(v||c)&&(o=o.substring(0,o.length-1));let p=null,y=null;if(n.parseMultDiv){var m=Coe(o);o=m.key,p=m.op,y=m.number}let b;if(h){if(a[o]===void 0)return"";b=a[o]}else for(let M of e)if(M){if(M.hasOwnProperty(o)){b=M[o];break}if(pC.test(o)||(b=se.nestedProperty(M,o).get(!0)),b!==void 0)break}if(b===void 0){let{count:M,max:k,name:A}=n,S=t===!1?l:t;return M=Eh&&l<=sC,u=o>=Eh&&o<=sC;if(s&&(a=10*a+l-Eh),u&&(n=10*n+o-Eh),!s||!u){if(a!==n)return a-n;if(l!==o)return l-o}}return n-a};var S0=2e9;se.seedPseudoRandom=function(){S0=2e9};se.pseudoRandom=function(){var e=S0;return S0=(69069*S0+1)%4294967296,Math.abs(S0-e)<429496729?se.pseudoRandom():S0/4294967296};se.fillText=function(e,r,t){var a=Array.isArray(t)?function(l){t.push(l)}:function(l){t.text=l},n=se.extractOption(e,r,"htx","hovertext");if(se.isValidTextValue(n))return a(n);var i=se.extractOption(e,r,"tx","text");if(se.isValidTextValue(i))return a(i)};se.isValidTextValue=function(e){return e||e===0};se.formatPercent=function(e,r){r=r||0;for(var t=(Math.round(100*e*Math.pow(10,r))*Math.pow(.1,r)).toFixed(r)+"%",a=0;a1&&(u=1):u=0,se.strTranslate(n-u*(t+l),i-u*(a+o))+se.strScale(u)+(s?"rotate("+s+(r?"":" "+t+" "+a)+")":"")};se.setTransormAndDisplay=function(e,r){e.attr("transform",se.getTextTransform(r)),e.style("display",r.scale?null:"none")};se.ensureUniformFontSize=function(e,r){var t=se.extendFlat({},r);return t.size=Math.max(r.size,e._fullLayout.uniformtext.minsize||0),t};se.join2=function(e,r,t){var a=e.length;return a>1?e.slice(0,-1).join(r)+t+e[a-1]:e.join(r)};se.bigFont=function(e){return Math.round(1.2*e)};var uC=se.getFirefoxVersion(),Soe=uC!==null&&uC<86;se.getPositionFromD3Event=function(){return Soe?[tv.event.layerX,tv.event.layerY]:[tv.event.offsetX,tv.event.offsetY]}});var xC=U(()=>{"use strict";var qoe=ke(),yC={"X,X div":'direction:ltr;font-family:"Open Sans",verdana,arial,sans-serif;margin:0;padding:0;border: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 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:focus-within .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-group a":"display:grid;place-content:center;","X .modebar-btn":"position:relative;font-size:16px;padding:3px 4px;height:22px;cursor:pointer;line-height:normal;box-sizing:border-box;border:none;background:rgba(0,0,0,0);","X .modebar-btn svg":"position:relative;","X .modebar-btn:focus-visible":"outline:1px solid #000;outline-offset:1px;border-radius:3px;","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;","X .plotly-cloud-dialog":'font-family:"Open Sans",verdana,arial,sans-serif;position:absolute;top:0;left:0;width:100%;height:100%;z-index:1001;display:flex;align-items:center;justify-content:center;background-color:rgba(0,0,0,.4);',"X .plotly-cloud-dialog .plotly-cloud-dialog-box":"box-sizing:border-box;min-width:300px;max-width:420px;padding:20px 24px;background-color:#fff;border:1px solid #e0e2e5;border-radius:4px;box-shadow:0 4px 16px rgba(0,0,0,.25);font-size:13px;color:#2a3f5f;","X .plotly-cloud-dialog .plotly-cloud-dialog-title":"font-size:16px;font-weight:bold;margin-bottom:12px;","X .plotly-cloud-dialog .plotly-cloud-dialog-message":"line-height:1.5;overflow-wrap:break-word;word-wrap:break-word;","X .plotly-cloud-dialog .plotly-cloud-dialog-message--hostname":"font-weight:bold;text-decoration:underline;","X .plotly-cloud-dialog .plotly-cloud-dialog-message--account":"margin-top:16px;padding:8px;border-radius:3px;font-size:.9em;background-color:#edf1f8;","X .plotly-cloud-dialog .plotly-cloud-dialog-buttons":"display:flex;justify-content:flex-end;margin-top:20px;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn":"font-family:inherit;font-size:13px;padding:7px 16px;margin-left:8px;border-radius:3px;border:1px solid rgba(0,0,0,0);cursor:pointer;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn:focus-visible":"outline:2px solid #447adb;outline-offset:1px;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn--cancel":"background-color:#f3f3f3;margin-left:auto;color:#777;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn--cancel:hover":"background-color:#e0e2e5;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn--confirm":"background-color:#447adb;color:#fff;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn--confirm:hover":"background-color:#1d3b84;",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(I5 in yC)gC=I5.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier"),qoe.addStyleRule(gC,yC[I5]);var gC,I5});var B5=U(($Me,bC)=>{bC.exports=!0});var O5=U((KMe,_C)=>{"use strict";var Doe=B5(),H5;typeof window.matchMedia=="function"?H5=!window.matchMedia("(hover: none)").matches:H5=Doe;_C.exports=H5});var Nh=U((jMe,Y5)=>{"use strict";var P0=typeof Reflect=="object"?Reflect:null,wC=P0&&typeof P0.apply=="function"?P0.apply:function(r,t,a){return Function.prototype.apply.call(r,t,a)},zh;P0&&typeof P0.ownKeys=="function"?zh=P0.ownKeys:Object.getOwnPropertySymbols?zh=function(r){return Object.getOwnPropertyNames(r).concat(Object.getOwnPropertySymbols(r))}:zh=function(r){return Object.getOwnPropertyNames(r)};function Poe(e){console&&console.warn&&console.warn(e)}var MC=Number.isNaN||function(r){return r!==r};function Ct(){Ct.init.call(this)}Y5.exports=Ct;Y5.exports.once=Foe;Ct.EventEmitter=Ct;Ct.prototype._events=void 0;Ct.prototype._eventsCount=0;Ct.prototype._maxListeners=void 0;var TC=10;function Fh(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(Ct,"defaultMaxListeners",{enumerable:!0,get:function(){return TC},set:function(e){if(typeof e!="number"||e<0||MC(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");TC=e}});Ct.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};Ct.prototype.setMaxListeners=function(r){if(typeof r!="number"||r<0||MC(r))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+r+".");return this._maxListeners=r,this};function AC(e){return e._maxListeners===void 0?Ct.defaultMaxListeners:e._maxListeners}Ct.prototype.getMaxListeners=function(){return AC(this)};Ct.prototype.emit=function(r){for(var t=[],a=1;a0&&(l=t[0]),l instanceof Error)throw l;var o=new Error("Unhandled error."+(l?" ("+l.message+")":""));throw o.context=l,o}var s=i[r];if(s===void 0)return!1;if(typeof s=="function")wC(s,this,t);else for(var u=s.length,f=qC(s,u),a=0;a0&&l.length>n&&!l.warned){l.warned=!0;var o=new Error("Possible EventEmitter memory leak detected. "+l.length+" "+String(r)+" listeners added. Use emitter.setMaxListeners() to increase limit");o.name="MaxListenersExceededWarning",o.emitter=e,o.type=r,o.count=l.length,Poe(o)}return e}Ct.prototype.addListener=function(r,t){return kC(this,r,t,!1)};Ct.prototype.on=Ct.prototype.addListener;Ct.prototype.prependListener=function(r,t){return kC(this,r,t,!0)};function Eoe(){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 CC(e,r,t){var a={fired:!1,wrapFn:void 0,target:e,type:r,listener:t},n=Eoe.bind(a);return n.listener=t,a.wrapFn=n,n}Ct.prototype.once=function(r,t){return Fh(t),this.on(r,CC(this,r,t)),this};Ct.prototype.prependOnceListener=function(r,t){return Fh(t),this.prependListener(r,CC(this,r,t)),this};Ct.prototype.removeListener=function(r,t){var a,n,i,l,o;if(Fh(t),n=this._events,n===void 0)return this;if(a=n[r],a===void 0)return this;if(a===t||a.listener===t)--this._eventsCount===0?this._events=Object.create(null):(delete n[r],n.removeListener&&this.emit("removeListener",r,a.listener||t));else if(typeof a!="function"){for(i=-1,l=a.length-1;l>=0;l--)if(a[l]===t||a[l].listener===t){o=a[l].listener,i=l;break}if(i<0)return this;i===0?a.shift():Roe(a,i),a.length===1&&(n[r]=a[0]),n.removeListener!==void 0&&this.emit("removeListener",r,o||t)}return this};Ct.prototype.off=Ct.prototype.removeListener;Ct.prototype.removeAllListeners=function(r){var t,a,n;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[r]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete a[r]),this;if(arguments.length===0){var i=Object.keys(a),l;for(n=0;n=0;n--)this.removeListener(r,t[n]);return this};function LC(e,r,t){var a=e._events;if(a===void 0)return[];var n=a[r];return n===void 0?[]:typeof n=="function"?t?[n.listener||n]:[n]:t?zoe(n):qC(n,n.length)}Ct.prototype.listeners=function(r){return LC(this,r,!0)};Ct.prototype.rawListeners=function(r){return LC(this,r,!1)};Ct.listenerCount=function(e,r){return typeof e.listenerCount=="function"?e.listenerCount(r):SC.call(e,r)};Ct.prototype.listenerCount=SC;function SC(e){var r=this._events;if(r!==void 0){var t=r[e];if(typeof t=="function")return 1;if(t!==void 0)return t.length}return 0}Ct.prototype.eventNames=function(){return this._eventsCount>0?zh(this._events):[]};function qC(e,r){for(var t=new Array(r),a=0;a{"use strict";var G5=Nh().EventEmitter,Ioe={init:function(e){if(e._ev instanceof G5)return e;var r=new G5,t=new G5;return e._ev=r,e._internalEv=t,e.on=r.on.bind(r),e.once=r.once.bind(r),e.removeListener=r.removeListener.bind(r),e.removeAllListeners=r.removeAllListeners.bind(r),e._internalOn=t.on.bind(t),e._internalOnce=t.once.bind(t),e._removeInternalListener=t.removeListener.bind(t),e._removeAllInternalListeners=t.removeAllListeners.bind(t),e.emit=function(a,n){r.emit(a,n),t.emit(a,n)},typeof e.addEventListener=="function"&&e.addEventListener("wheel",()=>{},{passive:!0}),e},triggerHandler:function(e,r,t){var a,n=e._ev;if(!n)return;var i=n._events[r];if(!i)return;function l(s){if(s.listener){if(n.removeListener(r,s.listener),!s.fired)return s.fired=!0,s.listener.apply(n,[t])}else return s.apply(n,[t])}i=Array.isArray(i)?i:[i];var o;for(o=0;o{"use strict";var EC=ke(),Boe=mo().dfltConfig;function Hoe(e,r){for(var t=[],a,n=0;nBoe.queueLength&&(e.undoQueue.queue.shift(),e.undoQueue.index--)};Ul.startSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!0,e.undoQueue.beginSequence=!0};Ul.stopSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!1,e.undoQueue.beginSequence=!1};Ul.undo=function(r){var t,a;if(!(r.undoQueue===void 0||isNaN(r.undoQueue.index)||r.undoQueue.index<=0)){for(r.undoQueue.index--,t=r.undoQueue.queue[r.undoQueue.index],r.undoQueue.inSequence=!0,a=0;a=r.undoQueue.queue.length)){for(t=r.undoQueue.queue[r.undoQueue.index],r.undoQueue.inSequence=!0,a=0;a{"use strict";FC.exports={_isLinkedToArray:"frames_entry",group:{valType:"string"},name:{valType:"string"},traces:{valType:"any"},baseframe:{valType:"string"},data:{valType:"any"},layout:{valType:"any"}}});var z0=U(ha=>{"use strict";var ci=Ar(),nv=ke(),Bh=Mn(),V5=A0(),Ooe=U5(),Yoe=$c(),Goe=mo().configAttributes,NC=Ii(),Yi=nv.extendDeepAll,E0=nv.isPlainObject,Uoe=nv.isArrayOrTypedArray,Hh=nv.nestedProperty,Voe=nv.valObjectMeta,X5="_isSubplotObj",Oh="_isLinkedToArray",Xoe="_arrayAttrRegexps",BC="_deprecated",W5=[X5,Oh,Xoe,BC];ha.IS_SUBPLOT_OBJ=X5;ha.IS_LINKED_TO_ARRAY=Oh;ha.DEPRECATED=BC;ha.UNDERSCORE_ATTRS=W5;ha.get=function(){var e={};return ci.allTypes.forEach(function(r){e[r]=Zoe(r)}),{defs:{valObjects:Voe,metaKeys:W5.concat(["description","role","editType","impliedEdits"]),editType:{traces:NC.traces,layout:NC.layout},impliedEdits:{}},traces:e,layout:Joe(),frames:$oe(),animation:R0(Yoe),config:R0(Goe)}};ha.crawl=function(e,r,t,a){var n=t||0;a=a||"",Object.keys(e).forEach(function(i){var l=e[i];if(W5.indexOf(i)===-1){var o=(a?a+".":"")+i;r(l,i,e,n,o),!ha.isValObject(l)&&E0(l)&&i!=="impliedEdits"&&ha.crawl(l,r,n+1,o)}})};ha.isValObject=function(e){return e&&e.valType!==void 0};ha.findArrayAttributes=function(e){var r=[],t=[],a=[],n,i;function l(s,u,f,c){t=t.slice(0,c).concat([u]),a=a.slice(0,c).concat([s&&s._isLinkedToArray]);var v=s&&(s.valType==="data_array"||s.arrayOk===!0)&&!(t[c-1]==="colorbar"&&(u==="ticktext"||u==="tickvals"));v&&o(n,0,"")}function o(s,u,f){var c=s[t[u]],v=f+t[u];if(u===t.length-1)Uoe(c)&&r.push(i+v);else if(a[u]){if(Array.isArray(c))for(var h=0;h=i.length)return!1;if(e.dimensions===2){if(t++,r.length===t)return e;var l=r[t];if(!Ih(l))return!1;e=i[n][l]}else e=i[n]}else e=i}}return e}function Ih(e){return e===Math.round(e)&&e>=0}function Zoe(e){var r,t;r=ci.modules[e]._module,t=r.basePlotModule;var a={};a.type=null;var n=Yi({},Bh),i=Yi({},r.attributes);ha.crawl(i,function(s,u,f,c,v){Hh(n,v).set(void 0),s===void 0&&Hh(i,v).set(void 0)}),Yi(a,n),ci.traceIs(e,"noOpacity")&&delete a.opacity,ci.traceIs(e,"showLegend")||(delete a.showlegend,delete a.legendgroup),ci.traceIs(e,"noHover")&&(delete a.hoverinfo,delete a.hoverlabel),r.selectPoints||delete a.selectedpoints,Yi(a,i),t.attributes&&Yi(a,t.attributes),a.type=e;var l={meta:r.meta||{},categories:r.categories||{},animatable:!!r.animatable,type:e,attributes:R0(a)};if(r.layoutAttributes){var o={};Yi(o,r.layoutAttributes),l.layoutAttributes=R0(o)}return r.animatable||ha.crawl(l,function(s){ha.isValObject(s)&&"anim"in s&&delete s.anim}),l}function Joe(){var e={},r,t;Yi(e,V5);for(r in ci.subplotsRegistry)if(t=ci.subplotsRegistry[r],!!t.layoutAttributes)if(Array.isArray(t.attr))for(var a=0;a{"use strict";var F0=ke(),rse=Mn(),Co="templateitemname",Z5={name:{valType:"string",editType:"none"}};Z5[Co]={valType:"string",editType:"calc"};Hs.templatedArray=function(e,r){return r._isLinkedToArray=e,r.name=Z5.name,r[Co]=Z5[Co],r};Hs.traceTemplater=function(e){var r={},t,a;for(t in e)a=e[t],Array.isArray(a)&&a.length&&(r[t]=0);function n(i){t=F0.coerce(i,{},rse,"type");var l={type:t,_template:null};if(t in r){a=e[t];var o=r[t]%a.length;r[t]++,l._template=a[o]}return l}return{newTrace:n}};Hs.newContainer=function(e,r,t){var a=e._template,n=a&&(a[r]||t&&a[t]);F0.isPlainObject(n)||(n=null);var i=e[r]={_template:n};return i};Hs.arrayTemplater=function(e,r,t){var a=e._template,n=a&&a[YC(r)],i=a&&a[r];(!Array.isArray(i)||!i.length)&&(i=[]);var l={};function o(u){var f={name:u.name,_input:u},c=f[Co]=u[Co];if(!OC(c))return f._template=n,f;for(var v=0;v=a&&(t._input||{})._templateitemname;i&&(n=a);var l=r+"["+n+"]",o;function s(){o={},i&&(o[l]={},o[l][Co]=i)}s();function u(h,p){o[h]=p}function f(h,p){i?F0.nestedProperty(o[l],h).set(p):o[l+"."+h]=p}function c(){var h=o;return s(),h}function v(h,p){h&&f(h,p);var y=c();for(var m in y)F0.nestedProperty(e,m).set(y[m])}return{modifyBase:u,modifyItem:f,getUpdateObj:c,applyUpdate:v}}});var wa={};vt(wa,{AX_ID_PATTERN:()=>lse,AX_NAME_PATTERN:()=>ose,DFLTRANGEX:()=>pse,DFLTRANGEY:()=>mse,DRAGGERSIZE:()=>dse,HOUR_PATTERN:()=>use,MINDRAG:()=>cse,MINZOOM:()=>vse,REDRAWDELAY:()=>hse,SUBPLOT_PATTERN:()=>sse,WEEKDAY_PATTERN:()=>fse,attrRegex:()=>ase,clipOnAxisFalseQuery:()=>gse,idRegex:()=>tse,layerValue2layerClass:()=>xse,traceLayerClasses:()=>yse,xAxisMatch:()=>nse,yAxisMatch:()=>ise,zindexSeparator:()=>bse});var tse,ase,nse,ise,lse,ose,sse,use,fse,cse,vse,dse,hse,pse,mse,yse,gse,xse,bse,Ta=Lr(()=>{"use strict";w0();tse={x:zs("x","( domain)?"),y:zs("y","( domain)?")},ase=zs("[xy]axis"),nse=zs("xaxis"),ise=zs("yaxis"),lse=/^[xyz][0-9]*( domain)?$/,ose=/^[xyz]axis[0-9]*$/,sse=/^x([0-9]*)y([0-9]*)$/,use="hour",fse="day of week",cse=8,vse=20,dse=20,hse=50,pse=[-1,6],mse=[-1,4],yse=["imagelayer","heatmaplayer","contourcarpetlayer","contourlayer","funnellayer","waterfalllayer","barlayer","carpetlayer","violinlayer","boxlayer","ohlclayer","scattercarpetlayer","scatterlayer"],gse=[".scatterlayer",".barlayer",".funnellayer",".waterfalllayer"],xse={"above traces":"above","below traces":"below"},bse="z"});var oa=U(Ln=>{"use strict";var _se=Ar(),J5=(Ta(),Fe(wa));Ln.id2name=function(r){if(!(typeof r!="string"||!r.match(J5.AX_ID_PATTERN))){var t=r.split(" ")[0].slice(1);return t==="1"&&(t=""),r.charAt(0)+"axis"+t}};Ln.name2id=function(r){if(r.match(J5.AX_NAME_PATTERN)){var t=r.slice(5);return t==="1"&&(t=""),r.charAt(0)+t}};Ln.cleanId=function(r,t,a){var n=/( domain)$/.test(r);if(!(typeof r!="string"||!r.match(J5.AX_ID_PATTERN))&&!(t&&r.charAt(0)!==t)&&!(n&&!a)){var i=r.split(" ")[0].slice(1).replace(/^0+/,"");return i==="1"&&(i=""),r.charAt(0)+i+(n&&a?" domain":"")}};Ln.list=function(e,r,t){var a=e._fullLayout;if(!a)return[];var n=Ln.listIds(e,r),i=new Array(n.length),l;for(l=0;la?1:-1:+(e.slice(1)||1)-+(r.slice(1)||1)};Ln.ref2id=function(e){return/^[xyz]/.test(e)?e.split(" ")[0]:!1};function GC(e,r){if(r&&r.length){for(var t=0;t{"use strict";function wse(e){var r=e._fullLayout._zoomlayer;r&&r.selectAll(".outline-controllers").remove()}function Tse(e){var r=e._fullLayout._zoomlayer;r&&r.selectAll(".select-outline").remove(),e._fullLayout._outlining=!1}UC.exports={clearOutlineControllers:wse,clearOutline:Tse}});var Yh=U((oAe,VC)=>{"use strict";VC.exports={scattermode:{valType:"enumerated",values:["group","overlay"],dflt:"overlay",editType:"calc"},scattergap:{valType:"number",min:0,max:1,editType:"calc"}}});var $5=U(Uh=>{"use strict";var Gh=Ar(),sAe=(Ta(),Fe(wa)).SUBPLOT_PATTERN;Uh.getSubplotCalcData=function(e,r,t){var a=Gh.subplotsRegistry[r];if(!a)return[];for(var n=a.attr,i=[],l=0;l{"use strict";var Mse=Ar(),N0=ke();Os.manageCommandObserver=function(e,r,t,a){var n={},i=!0;r&&r._commandObserver&&(n=r._commandObserver),n.cache||(n.cache={}),n.lookupTable={};var l=Os.hasSimpleAPICommandBindings(e,t,n.lookupTable);if(r&&r._commandObserver){if(l)return n;if(r._commandObserver.remove)return r._commandObserver.remove(),r._commandObserver=null,n}if(l){XC(e,l,n.cache),n.check=function(){if(i){var f=XC(e,l,n.cache);return f.changed&&a&&n.lookupTable[f.value]!==void 0&&(n.disable(),Promise.resolve(a({value:f.value,type:l.type,prop:l.prop,traces:l.traces,index:n.lookupTable[f.value]})).then(n.enable,n.enable)),f.changed}};for(var o=["plotly_relayout","plotly_redraw","plotly_restyle","plotly_update","plotly_animatingframe","plotly_afterplot"],s=0;s0?".":"")+n;N0.isPlainObject(i)?K5(i,r,l,a+1):r(l,n,i)}})}});var Xt=U((vAe,iL)=>{"use strict";var cAe=Er(),kse=l0().timeFormatLocale,Cse=kg().formatLocale,iv=Gr(),Lse=Lg(),Sse=Tc().version,$r=Ar(),qse=z0(),Dse=ht(),dr=ke(),Pse=kr(),$C=(Et(),Fe(zt)).BADNUM,Sn=oa(),Ese=Lo().clearOutline,Rse=Yh(),j5=$c(),zse=U5(),Fse=$5().getModuleCalcData,KC=dr.relinkPrivateKeys,Ys=dr._,rr=iL.exports={};dr.extendFlat(rr,$r);rr.attributes=Mn();rr.attributes.type.values=rr.allTypes;rr.fontAttrs=xa();rr.layoutAttributes=A0();var Xh=JC();rr.executeAPICommand=Xh.executeAPICommand;rr.computeAPICommandBindings=Xh.computeAPICommandBindings;rr.manageCommandObserver=Xh.manageCommandObserver;rr.hasSimpleAPICommandBindings=Xh.hasSimpleAPICommandBindings;rr.redrawText=function(e){return e=dr.getGraphDiv(e),new Promise(function(r){setTimeout(function(){e._fullLayout&&($r.getComponentMethod("annotations","draw")(e),$r.getComponentMethod("legend","draw")(e),$r.getComponentMethod("colorbar","draw")(e),r(rr.previousPromises(e)))},300)})};rr.resize=function(e){e=dr.getGraphDiv(e);var r,t=new Promise(function(a,n){(!e||dr.isHidden(e))&&n(new Error("Resize must be passed a displayed plot div element.")),e._redrawTimer&&clearTimeout(e._redrawTimer),e._resolveResize&&(r=e._resolveResize),e._resolveResize=a,e._redrawTimer=setTimeout(function(){if(!e.layout||e.layout.width&&e.layout.height||dr.isHidden(e)){a(e);return}delete e.layout.width,delete e.layout.height;var i=e.changed;e.autoplay=!0,$r.call("relayout",e,{autosize:!0}).then(function(){e.changed=i,e._resolveResize===a&&(delete e._resolveResize,a(e))})},100)});return r&&r(t),t};rr.previousPromises=function(e){if((e._promises||[]).length)return Promise.all(e._promises).then(function(){e._promises=[]})};rr.sendDataToCloud=function(e,r){e.emit("plotly_beforeexport");let t=new URL(r).origin;var a=rr.graphJson(e,!1,"object");a.version=Sse;var n=new URL(r);n.searchParams.set("origin",window.location.origin);var i=window.open(n.href,"_blank");if(!i){console.error("Unable to open Plotly Cloud (the popup may have been blocked)"),e.emit("plotly_exportfail");return}var l=function(o){o.origin===t&&o.data&&o.data.type==="CHART_AUTH_SUCCESS"&&(i.postMessage({type:"chart",chart:a},t),window.removeEventListener("message",l),e.emit("plotly_afterexport"))};return window.addEventListener("message",l),!1};var Nse=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],Ise=["year","month","dayMonth","dayMonthYear"];rr.supplyDefaults=function(e,r){var t=r&&r.skipUpdateCalc,a=e._fullLayout||{};if(a._skipDefaults){delete a._skipDefaults;return}var n=e._fullLayout={},i=e.layout||{},l=e._fullData||[],o=e._fullData=[],s=e.data||[],u=e.calcdata||[],f=e._context||{},c;e._transitionData||rr.createTransitionData(e),n._dfltTitle={plot:Ys(e,"Click to enter Plot title"),subtitle:Ys(e,"Click to enter Plot subtitle"),x:Ys(e,"Click to enter X axis title"),y:Ys(e,"Click to enter Y axis title"),colorbar:Ys(e,"Click to enter Colorscale title"),annotation:Ys(e,"new text")},n._traceWord=Ys(e,"trace");var v=jC(e,Nse);if(a._initialAutoSizeIsDone){var h=a.width,p=a.height;rr.supplyLayoutGlobalDefaults(i,n,v),i.width||(n.width=h),i.height||(n.height=p),rr.sanitizeMargins(n)}else{rr.supplyLayoutGlobalDefaults(i,n,v);var y=!i.width||!i.height,m=n.autosize,b=f.autosizable,_=y&&(m||b);_?rr.plotAutoSize(e,i,n):y&&rr.sanitizeMargins(n),!m&&y&&(i.width=n.width,i.height=n.height)}n._d3locale=Ose(v,n.separators),n._extraFormat=jC(e,Ise),n._initialAutoSizeIsDone=!0,n._dataLength=s.length,n._modules=[],n._visibleModules=[],n._basePlotModules=[];var w=n._subplots=Hse(),x=n._splomAxes={x:{},y:{}},M=n._splomSubplots={};n._splomGridDflt={},n._scatterStackOpts={},n._firstScatter={},n._alignmentOpts={},n._colorAxes={},n._requestRangeslider={},n._traceUids=Bse(l,s),rr.supplyDataDefaults(s,o,i,n);var k=Object.keys(x.x),A=Object.keys(x.y);if(k.length>1&&A.length>1){for($r.getComponentMethod("grid","sizeDefaults")(i,n),c=0;c15&&A.length>15&&n.shapes.length===0&&n.images.length===0,rr.linkSubplots(o,n,l,a),rr.cleanPlot(o,n,l,a);var F=!!(a._has&&a._has("cartesian")),N=!!(n._has&&n._has("cartesian")),B=F,H=N;B&&!H?a._bgLayer.remove():H&&!B&&(n._shouldCreateBgLayer=!0),a._zoomlayer&&!e._dragging&&Ese({_fullLayout:a}),Yse(o,n),KC(n,a),$r.getComponentMethod("colorscale","crossTraceDefaults")(o,n),n._preGUI||(n._preGUI={}),n._tracePreGUI||(n._tracePreGUI={});var O=n._tracePreGUI,Y={},G;for(G in O)Y[G]="old";for(c=0;c0){var f=1-2*i;l=Math.round(f*l),o=Math.round(f*o)}}var c=rr.layoutAttributes.width.min,v=rr.layoutAttributes.height.min;l1,p=!t.height&&Math.abs(a.height-o)>1;(p||h)&&(h&&(a.width=l),p&&(a.height=o)),r._initialAutoSize||(r._initialAutoSize={width:l,height:o}),rr.sanitizeMargins(a)};rr.supplyLayoutModuleDefaults=function(e,r,t,a){var n=$r.componentsRegistry,i=r._basePlotModules,l,o,s,u=$r.subplotsRegistry.cartesian;for(l in n)s=n[l],s.includeBasePlot&&s.includeBasePlot(e,r);i.length||i.push(u),r._has("cartesian")&&($r.getComponentMethod("grid","contentDefaults")(e,r),u.finalizeSubplots(e,r));for(var f in r._subplots)r._subplots[f].sort(dr.subplotSort);for(o=0;o1&&(t.l/=m,t.r/=m)}if(v){var b=(t.t+t.b)/v;b>1&&(t.t/=b,t.b/=b)}var _=t.xl!==void 0?t.xl:t.x,w=t.xr!==void 0?t.xr:t.x,x=t.yt!==void 0?t.yt:t.y,M=t.yb!==void 0?t.yb:t.y;h[r]={l:{val:_,size:t.l+y},r:{val:w,size:t.r+y},b:{val:M,size:t.b+y},t:{val:x,size:t.t+y}},p[r]=1}if(!a._replotting)return rr.doAutoMargin(e)}};function Use(e){if("_redrawFromAutoMarginCount"in e._fullLayout)return!1;var r=Sn.list(e,"",!0);for(var t in r)if(r[t].autoshift||r[t].shift)return!0;return!1}rr.doAutoMargin=function(e){var r=e._fullLayout,t=r.width,a=r.height;r._size||(r._size={}),rL(r);var n=r._size,i=r.margin,l={t:0,b:0,l:0,r:0},o=dr.extendFlat({},n),s=i.l,u=i.r,f=i.t,c=i.b,v=r._pushmargin,h=r._pushmarginIds,p=r.minreducedwidth,y=r.minreducedheight;if(i.autoexpand!==!1){for(var m in v)h[m]||delete v[m];var b=e._fullLayout._reservedMargin;for(var _ in b)for(var w in b[_]){var x=b[_][w];l[w]=Math.max(l[w],x)}v.base={l:{val:0,size:s},r:{val:1,size:u},t:{val:1,size:f},b:{val:0,size:c}};for(var M in l){var k=0;for(var A in v)A!=="base"&&iv(v[A][M].size)&&(k=v[A][M].size>k?v[A][M].size:k);var S=Math.max(0,i[M]-k);l[M]=Math.max(0,l[M]-S)}for(var D in v){var P=v[D].l||{},R=v[D].b||{},F=P.val,N=P.size,B=R.val,H=R.size,O=t-l.r-l.l,Y=a-l.t-l.b;for(var G in v){if(iv(N)&&v[G].r){var V=v[G].r.val,W=v[G].r.size;if(V>F){var X=(N*V+(W-O)*F)/(V-F),$=(W*(1-F)+(N-O)*(1-V))/(V-F);X+$>s+u&&(s=X,u=$)}}if(iv(H)&&v[G].t){var te=v[G].t.val,ie=v[G].t.size;if(te>B){var ve=(H*te+(ie-Y)*B)/(te-B),K=(ie*(1-B)+(H-Y)*(1-te))/(te-B);ve+K>c+f&&(c=ve,f=K)}}}}}var he=dr.constrain(t-i.l-i.r,tL,p),le=dr.constrain(a-i.t-i.b,aL,y),_e=Math.max(0,t-he),me=Math.max(0,a-le);if(_e){var ce=(s+u)/_e;ce>1&&(s/=ce,u/=ce)}if(me){var Me=(c+f)/me;Me>1&&(c/=Me,f/=Me)}if(n.l=Math.round(s)+l.l,n.r=Math.round(u)+l.r,n.t=Math.round(f)+l.t,n.b=Math.round(c)+l.b,n.p=Math.round(i.pad),n.w=Math.round(t)-n.l-n.r,n.h=Math.round(a)-n.t-n.b,!r._replotting&&(rr.didMarginChange(o,n)||Use(e))){"_redrawFromAutoMarginCount"in r?r._redrawFromAutoMarginCount++:r._redrawFromAutoMarginCount=1;var Re=3*(1+Object.keys(h).length);if(r._redrawFromAutoMarginCount1)return!0}return!1};rr.graphJson=function(e,r=!1,t="json",a=!1,n=!1){(a&&r&&!e._fullData||a&&!r&&!e._fullLayout)&&rr.supplyDefaults(e);var i=a?e._fullData:e.data,l=a?e._fullLayout:e.layout,o=(e._transitionData||{})._frames;function s(c,v){if(typeof c=="function")return v?"_function_":null;if(dr.isPlainObject(c)){var h={};return Object.keys(c).sort().forEach(function(b){if(["_","["].indexOf(b.charAt(0))===-1){if(typeof c[b]=="function"){v&&(h[b]="_function");return}h[b]=s(c[b],v)}}),h}var p=Array.isArray(c),y=dr.isTypedArray(c);if((p||y)&&c.dtype&&c.shape){var m=c.bdata;return s({dtype:c.dtype,shape:c.shape,bdata:dr.isArrayBuffer(m)?Lse.encode(m):m},v)}return p?c.map(function(b){return s(b,v)}):y?dr.simpleMap(c,dr.identity):dr.isJSDate(c)?dr.ms2DateTimeLocal(+c):c}var u={data:(i||[]).map(function(c){var v=s(c);return r&&delete v.fit,v})};if(!r&&(u.layout=s(l),a)){var f=l._size;u.layout.computed={margin:{b:f.b,l:f.l,r:f.r,t:f.t}}}return o&&(u.frames=s(o)),n&&(u.config=s(e._context,!0)),t==="object"?u:JSON.stringify(u)};rr.modifyFrames=function(e,r){var t,a,n,i=e._transitionData._frames,l=e._transitionData._frameHash;for(t=0;t0&&(e._transitioningWithDuration=!0),e._transitionData._interruptCallbacks.push(function(){a=!0}),t.redraw&&e._transitionData._interruptCallbacks.push(function(){return $r.call("redraw",e)}),e._transitionData._interruptCallbacks.push(function(){e.emit("plotly_transitioninterrupted",[])});var v=0,h=0;function p(){return v++,function(){h++,!a&&h===v&&o(c)}}t.runFn(p),setTimeout(p())})}function o(c){if(e._transitionData)return i(e._transitionData._interruptCallbacks),Promise.resolve().then(function(){if(t.redraw)return $r.call("redraw",e)}).then(function(){e._transitioning=!1,e._transitioningWithDuration=!1,e.emit("plotly_transitioned",[])}).then(c)}function s(){if(e._transitionData)return e._transitioning=!1,n(e._transitionData._interruptCallbacks)}var u=[rr.previousPromises,s,t.prepareFn,rr.rehover,rr.reselect,l],f=dr.syncOrAsync(u,e);return(!f||!f.then)&&(f=Promise.resolve()),f.then(function(){return e})}rr.doCalcdata=function(e,r){var t=Sn.list(e),a=e._fullData,n=e._fullLayout,i,l,o,s=new Array(a.length),u=(e.calcdata||[]).slice();for(e.calcdata=s,n._numBoxes=0,n._numViolins=0,n._violinScaleGroupStats={},e._hmpixcount=0,e._hmlumcount=0,n._piecolormap={},n._sunburstcolormap={},n._treemapcolormap={},n._iciclecolormap={},n._funnelareacolormap={},o=0;olL,svgAttrs:()=>$se,xlink:()=>oL,xmlns:()=>Jse});var Jse,lL,oL,$se,Us=Lr(()=>{"use strict";Jse="http://www.w3.org/2000/xmlns/",lL="http://www.w3.org/2000/svg",oL="http://www.w3.org/1999/xlink",$se={xmlns:lL,"xmlns:xlink":oL}});var Ba={};vt(Ba,{CAP_SHIFT:()=>rue,FROM_BL:()=>Kse,FROM_BR:()=>Qse,FROM_TL:()=>jse,LINE_SPACING:()=>eue,MID_SHIFT:()=>tue,OPPOSITE_SIDE:()=>aue});var Kse,jse,Qse,eue,rue,tue,aue,Ha=Lr(()=>{"use strict";Kse={left:0,center:.5,right:1,bottom:0,middle:.5,top:1},jse={left:0,center:.5,right:1,bottom:1,middle:.5,top:0},Qse={left:1,center:.5,right:0,bottom:0,middle:.5,top:1},eue=1.3,rue=.7,tue=.35,aue={left:"right",right:"left",top:"bottom",bottom:"top"}});var ma=U(Gn=>{"use strict";var pa=Er(),vi=ke(),nue=vi.strTranslate,Q5=(Us(),Fe(Gs)),iue=(Ha(),Fe(Ba)).LINE_SPACING,lue=/([^$]*)([$]+[^$]*[$]+)([^$]*)/,dL=e=>e?e.match(lue):null;Gn.matchTex=dL;Gn.convertToTspans=function(e,r,t){var a=e.text(),n=!e.attr("data-notex")&&r&&r._context.typesetMath&&dL(a);n&&!fue()&&(n=null);var i=pa.select(e.node().parentNode);if(i.empty())return;var l=e.attr("class")?e.attr("class").split(" ")[0]:"text";l+="-math",i.selectAll("svg."+l).remove(),i.selectAll("g."+l+"-group").remove(),e.style("display",null).attr({"data-unformatted":a,"data-math":"N"});function o(){i.empty()||(l=e.attr("class")+"-math",i.select("svg."+l).remove()),e.text("").style("white-space","pre");var s=bue(e.node(),a);s&&e.style("pointer-events","all"),Gn.positionText(e),t&&t.call(e)}return n?(r&&r._promises||[]).push(new Promise(function(s){e.style("display","none");var u=parseInt(e.node().style.fontSize,10),f={fontSize:u},c=e.attr("text-anchor");cue(n[2],f,function(v,h,p){i.selectAll("svg."+l).remove(),i.selectAll("g."+l+"-group").remove();var y=v&&v.select("svg");if(!y||!y.node()){o(),s();return}e.style("display","none");var m=i.append("g").classed(l+"-group",!0).attr({"pointer-events":"none","data-unformatted":a,"data-math":"Y"});m.node().appendChild(y.node()),h&&h.node()&&y.node().insertBefore(h.node().cloneNode(!0),y.node().firstChild);var b=p.width,_=p.height;y.attr({class:l,height:_,preserveAspectRatio:"xMinYMin meet"}).style({overflow:"visible","pointer-events":"none","font-size":f.fontSize+"px"});var w=e.node().style.fill||"black",x=y.select("g");x.attr({fill:w,stroke:w});var M=x.node().getBoundingClientRect(),k=M.width,A=M.height;(k>b||A>_)&&(y.style("overflow","hidden"),M=y.node().getBoundingClientRect(),k=M.width,A=M.height);var S=+e.attr("x"),D=+e.attr("y"),P=u||e.node().getBoundingClientRect().height,R=-P/4;l[0]==="y"?m.attr({transform:"rotate("+[-90,S,D]+")"+nue(-k/2,R-A/2)}):l[0]==="l"?D=R-A/2:l[0]==="a"&&l.indexOf("atitle")!==0?(S=0,D=R):(S=S-k*(c==="middle"?.5:c==="end"?1:0),D=D+R-A/2),y.attr({x:S,y:D}),t&&t.call(e,m),s(m)})})):o(),e};var oue=/(<|<|<)/g,sue=/(>|>|>)/g;function uue(e){return e.replace(oue,"\\lt ").replace(sue,"\\gt ")}var ex=null,hL=()=>typeof MathJax!="undefined"&&MathJax.version?parseInt(MathJax.version.split(".")[0]):null,sL=!1,uL=!1;function fue(){let e=hL();return e===3||e===4?!0:(e===null?sL||(sL=!0,vi.warn("MathJax is not loaded. Math equations will not be rendered.")):uL||(uL=!0,vi.warn("Unsupported MathJax version:",MathJax.version)),!1)}function cue(e,r,t){let a=hL();var n;let i=function(){if(!ex){let u=MathJax._.output.svg_ts.SVG,f=vi.extendFlat({},MathJax.config.svg,{fontCache:"local"});a===4&&(f.linebreaks=vi.extendFlat({},f.linebreaks,{inline:!1})),ex=MathJax._.mathjax.mathjax.document(document,vi.extendFlat({},MathJax.config.options,{InputJax:MathJax.startup.input,OutputJax:new u(f)}))}let o="math-output-"+vi.randstr({},64);n=pa.select("body").append("div").attr({id:o}).style({visibility:"hidden",position:"absolute","font-size":r.fontSize+"px"});let s=uue(e).replace(/^\$+|\$+$/g,"");return MathJax._.mathjax.mathjax.handleRetriesFor(function(){return ex.convert(s,{display:!1})}).then(function(u){n.node().appendChild(u)})},l=function(){let o=n.select(".MathJax"),s=!o.empty()&&n.select("svg").node();if(!s)vi.log("There was an error in the tex syntax.",e),t();else{let u=s.getBoundingClientRect(),f=o.select("defs");t(o,f,u)}n.remove()};Promise.resolve().then(i).then(l).catch(o=>{vi.log("MathJax typesetting failed.",e,o),n&&n.remove(),t()})}var pL={sup:"font-size:70%",sub:"font-size:70%",s:"text-decoration:line-through",u:"text-decoration:underline",b:"font-weight:bold",i:"font-style:italic",a:"cursor:pointer",span:"",em:"font-style:italic;font-weight:bold"},vue={sub:"0.3em",sup:"-0.6em"},due={sub:"-0.21em",sup:"0.42em"},fL="\u200B",cL=["http:","https:","mailto:","",void 0,":"],mL=Gn.NEWLINES=/(\r\n?|\n)/g,tx=/(<[^<>]*>)/,ax=/<(\/?)([^ >]*)(\s+(.*))?>/i,hue=//i;Gn.BR_TAG_ALL=//gi;var yL=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,gL=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,xL=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,pue=/(^|[\s"'])popup\s*=\s*("([\w=,]*)"|'([\w=,]*)')/i;function Vs(e,r){if(!e)return null;var t=e.match(r),a=t&&(t[3]||t[4]);return a&&Wh(a)}var mue=/(^|;)\s*color:/;Gn.plainText=function(e,r){r=r||{};for(var t=r.len!==void 0&&r.len!==-1?r.len:1/0,a=r.allowedTags!==void 0?r.allowedTags:["br"],n="...",i=n.length,l=e.split(tx),o=[],s="",u=0,f=0;fi?o.push(c.slice(0,Math.max(0,y-i))+n):o.push(c.slice(0,y));break}s=""}}return o.join("")};var yue={mu:"\u03BC",amp:"&",lt:"<",gt:">",nbsp:"\xA0",times:"\xD7",plusmn:"\xB1",deg:"\xB0"},gue=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function Wh(e){return e.replace(gue,function(r,t){var a;return t.charAt(0)==="#"?a=xue(t.charAt(1)==="x"?parseInt(t.slice(2),16):parseInt(t.slice(1),10)):a=yue[t],a||r})}Gn.convertEntities=Wh;function xue(e){if(!(e>1114111)){var r=String.fromCodePoint;if(r)return r(e);var t=String.fromCharCode;return e<=65535?t(e):t((e>>10)+55232,e%1024+56320)}}function bue(e,r){r=r.replace(mL," ");var t=!1,a=[],n,i=-1;function l(){i++;var k=document.createElementNS(Q5.svg,"tspan");pa.select(k).attr({class:"line",dy:i*iue+"em"}),e.appendChild(k),n=k;var A=a;if(a=[{node:k}],A.length>1)for(var S=1;S.",r);return}var A=a.pop();k!==A.type&&vi.log("Start tag <"+A.type+"> doesnt match end tag <"+k+">. Pretending it did match.",r),n=a[a.length-1].node}var f=hue.test(r);f?l():(n=e,a=[{node:e}]);for(var c=r.split(tx),v=0;v{"use strict";var _ue=Er(),ov=Gr(),Zh=ke(),Xs=kr(),wue=Rs().isValid;function Tue(e,r,t){var a=r?Zh.nestedProperty(e,r).get()||{}:e,n=a[t||"color"];n&&n._inputArray&&(n=n._inputArray);var i=!1;if(Zh.isArrayOrTypedArray(n)){for(var l=0;l=0;a--,n++){var i=e[a];t[n]=[1-i[0],i[1]]}return t}function AL(e,r){r=r||{};for(var t=e.domain,a=e.range,n=a.length,i=new Array(n),l=0;l{"use strict";var CL=(x5(),Fe(g5)),Aue=CL.FORMAT_LINK,kue=CL.DATE_FORMAT_LINK;function Cue(e,r){return{valType:"string",dflt:"",editType:"none",description:(r?nx:LL)("hover text",e)+["By default the values are formatted using "+(r?"generic number format":"`"+e+"axis.hoverformat`")+"."].join(" ")}}function nx(e,r){return["Sets the "+e+" formatting rule"+(r?" for `"+r+"`":""),"using d3 formatting mini-languages","which are very similar to those in Python. For numbers, see: "+Aue+"."].join(" ")}function LL(e,r){return nx(e,r)+[" And for dates see: "+kue+".","We add two items to d3's date formatter:","*%h* for half of the year as a decimal number as well as","*%{n}f* for fractional seconds","with n digits. For example, *2016-10-13 09:15:23.456* with tickformat","*%H~%M~%S.%2f* would display *09~15~23.46*"].join(" ")}SL.exports={axisHoverFormat:Cue,descriptionOnlyNumbers:nx,descriptionWithDates:LL}});var Vn=U((yAe,XL)=>{"use strict";var qL=xa(),I0=ui(),VL=Bi().dash,lx=At().extendFlat,DL=ht().templatedArray,mAe=On().templateFormatStringDescription,PL=Gi().descriptionWithDates,Lue=(Et(),Fe(zt)).ONEDAY,hl=(Ta(),Fe(wa)),Sue=hl.HOUR_PATTERN,que=hl.WEEKDAY_PATTERN,ix={valType:"enumerated",values:["auto","linear","array"],editType:"ticks",impliedEdits:{tick0:void 0,dtick:void 0}},Due=lx({},ix,{values:ix.values.slice().concat(["sync"])});function EL(e){return{valType:"integer",min:0,dflt:e?5:0,editType:"ticks"}}var RL={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},zL={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},FL={valType:"data_array",editType:"ticks"},NL={valType:"enumerated",values:["outside","inside",""],editType:"ticks"};function IL(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=5),r}function BL(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=1),r}var HL={valType:"color",dflt:I0.defaultLine,editType:"ticks"},OL={valType:"color",dflt:I0.lightLine,editType:"ticks"};function YL(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=1),r}var GL=lx({},VL,{editType:"ticks"}),UL={valType:"boolean",editType:"ticks"};XL.exports={visible:{valType:"boolean",editType:"plot"},color:{valType:"color",dflt:I0.defaultLine,editType:"ticks"},title:{text:{valType:"string",editType:"ticks"},font:qL({editType:"ticks",description:"Sets this axis' title font."}),standoff:{valType:"number",min:0,editType:"ticks"},editType:"ticks"},type:{valType:"enumerated",values:["-","linear","log","date","category","multicategory"],dflt:"-",editType:"calc",_noTemplating:!0},autotypenumbers:{valType:"enumerated",values:["convert types","strict"],dflt:"convert types",editType:"calc"},autorange:{valType:"enumerated",values:[!0,!1,"reversed","min reversed","max reversed","min","max"],dflt:!0,editType:"axrange",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},autorangeoptions:{minallowed:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},maxallowed:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},clipmin:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},clipmax:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},include:{valType:"any",arrayOk:!0,editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},editType:"plot"},rangemode:{valType:"enumerated",values:["normal","tozero","nonnegative"],dflt:"normal",editType:"plot"},range:{valType:"info_array",items:[{valType:"any",editType:"axrange",impliedEdits:{"^autorange":!1},anim:!0},{valType:"any",editType:"axrange",impliedEdits:{"^autorange":!1},anim:!0}],editType:"axrange",impliedEdits:{autorange:!1},anim:!0},minallowed:{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},maxallowed:{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},fixedrange:{valType:"boolean",dflt:!1,editType:"calc"},modebardisable:{valType:"flaglist",flags:["autoscale","zoominout"],extras:["none"],dflt:"none",editType:"modebar"},insiderange:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},scaleanchor:{valType:"enumerated",values:[hl.idRegex.x.toString(),hl.idRegex.y.toString(),!1],editType:"plot"},scaleratio:{valType:"number",min:0,dflt:1,editType:"plot"},constrain:{valType:"enumerated",values:["range","domain"],editType:"plot"},constraintoward:{valType:"enumerated",values:["left","center","right","top","middle","bottom"],editType:"plot"},matches:{valType:"enumerated",values:[hl.idRegex.x.toString(),hl.idRegex.y.toString()],editType:"calc"},rangebreaks:DL("rangebreak",{enabled:{valType:"boolean",dflt:!0,editType:"calc"},bounds:{valType:"info_array",items:[{valType:"any",editType:"calc"},{valType:"any",editType:"calc"}],editType:"calc"},pattern:{valType:"enumerated",values:[que,Sue,""],editType:"calc"},values:{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"any",editType:"calc"}},dvalue:{valType:"number",editType:"calc",min:0,dflt:Lue},editType:"calc"}),tickmode:Due,nticks:EL(),tick0:RL,dtick:zL,ticklabelstep:{valType:"integer",min:1,dflt:1,editType:"ticks"},tickvals:FL,ticktext:{valType:"data_array",editType:"ticks"},ticks:NL,tickson:{valType:"enumerated",values:["labels","boundaries"],dflt:"labels",editType:"ticks"},ticklabelmode:{valType:"enumerated",values:["instant","period"],dflt:"instant",editType:"ticks"},ticklabelposition:{valType:"enumerated",values:["outside","inside","outside top","inside top","outside left","inside left","outside right","inside right","outside bottom","inside bottom"],dflt:"outside",editType:"calc"},ticklabeloverflow:{valType:"enumerated",values:["allow","hide past div","hide past domain"],editType:"calc"},ticklabelshift:{valType:"integer",dflt:0,editType:"ticks"},ticklabelstandoff:{valType:"integer",dflt:0,editType:"ticks"},ticklabelindex:{valType:"integer",arrayOk:!0,editType:"calc"},mirror:{valType:"enumerated",values:[!0,"ticks",!1,"all","allticks"],dflt:!1,editType:"ticks+layoutstyle"},ticklen:IL(),tickwidth:BL(),tickcolor:HL,showticklabels:{valType:"boolean",dflt:!0,editType:"ticks"},labelalias:{valType:"any",dflt:!1,editType:"ticks"},automargin:{valType:"flaglist",flags:["height","width","left","right","top","bottom"],extras:[!0,!1],dflt:!1,editType:"ticks"},showspikes:{valType:"boolean",dflt:!1,editType:"modebar"},spikecolor:{valType:"color",dflt:null,editType:"none"},spikethickness:{valType:"number",dflt:3,editType:"none"},spikedash:lx({},VL,{dflt:"dash",editType:"none"}),spikemode:{valType:"flaglist",flags:["toaxis","across","marker"],dflt:"toaxis",editType:"none"},spikesnap:{valType:"enumerated",values:["data","cursor","hovered data"],dflt:"hovered data",editType:"none"},tickfont:qL({editType:"ticks"}),tickangle:{valType:"angle",dflt:"auto",editType:"ticks"},autotickangles:{valType:"info_array",freeLength:!0,items:{valType:"angle"},dflt:[0,30,90],editType:"ticks"},tickprefix:{valType:"string",dflt:"",editType:"ticks"},showtickprefix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},ticksuffix:{valType:"string",dflt:"",editType:"ticks"},showticksuffix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},showexponent:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},exponentformat:{valType:"enumerated",values:["none","e","E","power","SI","B","SI extended"],dflt:"B",editType:"ticks"},minexponent:{valType:"number",dflt:3,min:0,editType:"ticks"},separatethousands:{valType:"boolean",dflt:!1,editType:"ticks"},tickformat:{valType:"string",dflt:"",editType:"ticks",description:PL("tick label")},tickformatstops:DL("tickformatstop",{enabled:{valType:"boolean",dflt:!0,editType:"ticks"},dtickrange:{valType:"info_array",items:[{valType:"any",editType:"ticks"},{valType:"any",editType:"ticks"}],editType:"ticks"},value:{valType:"string",dflt:"",editType:"ticks"},editType:"ticks"}),hoverformat:{valType:"string",dflt:"",editType:"none",description:PL("hover text")},unifiedhovertitle:{text:{valType:"string",dflt:"",editType:"none"},editType:"none"},showline:{valType:"boolean",dflt:!1,editType:"ticks+layoutstyle"},linecolor:{valType:"color",dflt:I0.defaultLine,editType:"layoutstyle"},linewidth:{valType:"number",min:0,dflt:1,editType:"ticks+layoutstyle"},showgrid:UL,gridcolor:OL,gridwidth:YL(),griddash:GL,zeroline:{valType:"boolean",editType:"ticks"},zerolinecolor:{valType:"color",dflt:I0.defaultLine,editType:"ticks"},zerolinelayer:{valType:"enumerated",values:["above traces","below traces"],dflt:"below traces",editType:"plot"},zerolinewidth:{valType:"number",dflt:1,editType:"ticks"},showdividers:{valType:"boolean",dflt:!0,editType:"ticks"},dividercolor:{valType:"color",dflt:I0.defaultLine,editType:"ticks"},dividerwidth:{valType:"number",dflt:1,editType:"ticks"},anchor:{valType:"enumerated",values:["free",hl.idRegex.x.toString(),hl.idRegex.y.toString()],editType:"plot"},side:{valType:"enumerated",values:["top","bottom","left","right"],editType:"plot"},overlaying:{valType:"enumerated",values:["free",hl.idRegex.x.toString(),hl.idRegex.y.toString()],editType:"plot"},minor:{tickmode:ix,nticks:EL("minor"),tick0:RL,dtick:zL,tickvals:FL,ticks:NL,ticklen:IL("minor"),tickwidth:BL("minor"),tickcolor:HL,gridcolor:OL,gridwidth:YL("minor"),griddash:GL,showgrid:UL,editType:"ticks"},minorloglabels:{valType:"enumerated",values:["small digits","complete","none"],dflt:"small digits",editType:"calc"},layer:{valType:"enumerated",values:["above traces","below traces"],dflt:"above traces",editType:"plot"},domain:{valType:"info_array",items:[{valType:"number",min:0,max:1,editType:"plot"},{valType:"number",min:0,max:1,editType:"plot"}],dflt:[0,1],editType:"plot"},position:{valType:"number",min:0,max:1,dflt:0,editType:"plot"},autoshift:{valType:"boolean",dflt:!1,editType:"plot"},shift:{valType:"number",editType:"plot"},categoryorder:{valType:"enumerated",values:["trace","category ascending","category descending","array","total ascending","total descending","min ascending","min descending","max ascending","max descending","sum ascending","sum descending","mean ascending","mean descending","geometric mean ascending","geometric mean descending","median ascending","median descending"],dflt:"trace",editType:"calc"},categoryarray:{valType:"data_array",editType:"calc"},uirevision:{valType:"any",editType:"none"},editType:"calc"}});var Jh=U((gAe,ZL)=>{"use strict";var Lt=Vn(),WL=xa(),ox=At().extendFlat,Pue=Ii().overrideAll;ZL.exports=Pue({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:Lt.linecolor,outlinewidth:Lt.linewidth,bordercolor:Lt.linecolor,borderwidth:{valType:"number",min:0,dflt:0},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},tickmode:Lt.minor.tickmode,nticks:Lt.nticks,tick0:Lt.tick0,dtick:ox({},Lt.dtick,{}),tickvals:Lt.tickvals,ticktext:Lt.ticktext,ticks:ox({},Lt.ticks,{dflt:""}),ticklabeloverflow:ox({},Lt.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:Lt.ticklen,tickwidth:Lt.tickwidth,tickcolor:Lt.tickcolor,ticklabelstep:Lt.ticklabelstep,showticklabels:Lt.showticklabels,labelalias:Lt.labelalias,tickfont:WL({description:"Sets the color bar's tick label font"}),tickangle:Lt.tickangle,tickformat:Lt.tickformat,tickformatstops:Lt.tickformatstops,tickprefix:Lt.tickprefix,showtickprefix:Lt.showtickprefix,ticksuffix:Lt.ticksuffix,showticksuffix:Lt.showticksuffix,separatethousands:Lt.separatethousands,exponentformat:Lt.exponentformat,minexponent:Lt.minexponent,showexponent:Lt.showexponent,title:{text:{valType:"string"},font:WL({description:"Sets this color bar's title font."}),side:{valType:"enumerated",values:["right","top","bottom"]}}},"colorbars","from-root")});var sv=U((bAe,$L)=>{"use strict";var Eue=Jh(),Rue=(w0(),Fe(Zc)).counter,zue=(L5(),Fe(C5)).default,JL=Rs().scales,xAe=zue(JL);function $h(e){return"`"+e+"`"}$L.exports=function(r,t){r=r||"",t=t||{};var a=t.cLetter||"c",n="onlyIfNumerical"in t?t.onlyIfNumerical:!!r,i="noScale"in t?t.noScale:r==="marker.line",l="showScaleDflt"in t?t.showScaleDflt:a==="z",o=typeof t.colorscaleDflt=="string"?JL[t.colorscaleDflt]:null,s=t.editTypeOverride||"",u=r?r+".":"",f,c;"colorAttr"in t?(f=t.colorAttr,c=t.colorAttr):(f={z:"z",c:"color"}[a],c="in "+$h(u+f));var v=n?" Has an effect only if "+c+" is set to a numerical array.":"",h=a+"auto",p=a+"min",y=a+"max",m=a+"mid",b=$h(u+h),_=$h(u+p),w=$h(u+y),x=_+" and "+w,M={};M[p]=M[y]=void 0;var k={};k[h]=!1;var A={};return f==="color"&&(A.color={valType:"color",arrayOk:!0,editType:s||"style"},t.anim&&(A.color.anim=!0)),A[h]={valType:"boolean",dflt:!0,editType:"calc",impliedEdits:M},A[p]={valType:"number",dflt:null,editType:s||"plot",impliedEdits:k},A[y]={valType:"number",dflt:null,editType:s||"plot",impliedEdits:k},A[m]={valType:"number",dflt:null,editType:"calc",impliedEdits:M},A.colorscale={valType:"colorscale",editType:"calc",dflt:o,impliedEdits:{autocolorscale:!1}},A.autocolorscale={valType:"boolean",dflt:t.autoColorDflt!==!1,editType:"calc",impliedEdits:{colorscale:void 0}},A.reversescale={valType:"boolean",dflt:!1,editType:"plot"},i||(A.showscale={valType:"boolean",dflt:l,editType:"calc"},A.colorbar=Eue),t.noColorAxis||(A.coloraxis={valType:"subplotid",regex:Rue("coloraxis"),dflt:null,editType:"calc"}),A}});var ux=U((_Ae,KL)=>{"use strict";var Fue=At().extendFlat,Nue=sv(),sx=Rs().scales;KL.exports={editType:"calc",colorscale:{editType:"calc",sequential:{valType:"colorscale",dflt:sx.Reds,editType:"calc"},sequentialminus:{valType:"colorscale",dflt:sx.Blues,editType:"calc"},diverging:{valType:"colorscale",dflt:sx.RdBu,editType:"calc"}},coloraxis:Fue({_isSubplotObj:!0,editType:"calc"},Nue("",{colorAttr:"corresponding trace color array(s)",noColorAxis:!0,showScaleDflt:!0}))}});var fx=U((wAe,jL)=>{"use strict";var Iue=ke();jL.exports=function(r){return Iue.isPlainObject(r.colorbar)}});var dx=U(vx=>{"use strict";var cx=Gr(),QL=ke(),eS=(Et(),Fe(zt)),Bue=eS.ONEDAY,Hue=eS.ONEWEEK;vx.dtick=function(e,r){var t=r==="log",a=r==="date",n=r==="category",i=a?Bue:1;if(!e)return i;if(cx(e))return e=Number(e),e<=0?i:n?Math.max(1,Math.round(e)):a?Math.max(.1,e):e;if(typeof e!="string"||!(a||t))return i;var l=e.charAt(0),o=e.slice(1);return o=cx(o)?Number(o):0,o<=0||!(a&&l==="M"&&o===Math.round(o)||t&&l==="L"||t&&l==="D"&&(o===1||o===2))?i:e};vx.tick0=function(e,r,t,a){if(r==="date")return QL.cleanDate(e,QL.dateTick0(t,a%Hue===0?1:0));if(!(a==="D1"||a==="D2"))return cx(e)?Number(e):0}});var Kh=U((MAe,tS)=>{"use strict";var rS=dx(),Oue=ke().isArrayOrTypedArray,Yue=Tn().isTypedArraySpec,Gue=Tn().decodeTypedArraySpec;tS.exports=function(r,t,a,n,i={}){var l=i.isMinor,o=l?r.minor||{}:r,s=l?t.minor:t,u=l?"minor.":"";function f(x){var M=o[x];return Yue(M)&&(M=Gue(M)),M!==void 0?M:(s._template||{})[x]}var c=f("tick0"),v=f("dtick"),h=f("tickvals"),p=f("overlaying"),y=n==="category"||n==="multicategory",m;Oue(h)?m="array":v?m="linear":p&&!y?m="sync":m="auto";var b=a(u+"tickmode",m);if(b==="auto"||b==="sync")a(u+"nticks");else if(b==="linear"){var _=s.dtick=rS.dtick(v,n);s.tick0=rS.tick0(c,n,t.calendar,_)}else if(n!=="multicategory"){var w=a(u+"tickvals");w===void 0?s.tickmode="auto":l||a("ticktext")}}});var jh=U((AAe,nS)=>{"use strict";var hx=ke(),aS=Vn();nS.exports=function(r,t,a,n){var i=n.isMinor,l=i?r.minor||{}:r,o=i?t.minor:t,s=i?aS.minor:aS,u=i?"minor.":"",f=hx.coerce2(l,o,s,"ticklen",i?(t.ticklen||5)*.6:void 0),c=hx.coerce2(l,o,s,"tickwidth",i?t.tickwidth||1:void 0),v=hx.coerce2(l,o,s,"tickcolor",(i?t.tickcolor:void 0)||o.color),h=a(u+"ticks",!i&&n.outerTicks||f||c||v?"outside":"");h||(delete o.ticklen,delete o.tickwidth,delete o.tickcolor)}});var px=U((kAe,iS)=>{"use strict";iS.exports=function(r){var t=["showexponent","showtickprefix","showticksuffix"],a=t.filter(function(i){return r[i]!==void 0}),n=function(i){return r[i]===r[a[0]]};if(a.every(n)||a.length===1)return r[a[0]]}});var di=U((CAe,lS)=>{"use strict";var Qh=ke(),Uue=ht();lS.exports=function(r,t,a){var n=a.name,i=a.inclusionAttr||"visible",l=t[n],o=Qh.isArrayOrTypedArray(r[n])?r[n]:[],s=t[n]=[],u=Uue.arrayTemplater(t,n,i),f,c;for(f=0;f{"use strict";var mx=ke(),Vue=kr().contrast,oS=Vn(),Xue=px(),Wue=di();sS.exports=function(r,t,a,n,i){i||(i={});var l=a("labelalias");mx.isPlainObject(l)||delete t.labelalias;var o=Xue(r),s=a("showticklabels");if(s){i.noTicklabelshift||a("ticklabelshift"),i.noTicklabelstandoff||a("ticklabelstandoff");var u=i.font||{},f=t.color,c=t.ticklabelposition||"",v=c.indexOf("inside")!==-1?Vue(i.bgColor):f&&f!==oS.color.dflt?f:u.color;if(mx.coerceFont(a,"tickfont",u,{overrideDflt:{color:v}}),!i.noTicklabelstep&&n!=="multicategory"&&n!=="log"&&a("ticklabelstep"),!i.noAng){var h=a("tickangle");!i.noAutotickangles&&h==="auto"&&a("autotickangles")}if(n!=="category"){var p=a("tickformat");Wue(r,t,{name:"tickformatstops",inclusionAttr:"enabled",handleItemDefaults:Zue}),t.tickformatstops.length||delete t.tickformatstops,!i.noExp&&!p&&n!=="date"&&(a("showexponent",o),a("exponentformat"),a("minexponent"),a("separatethousands"))}!i.noMinorloglabels&&n==="log"&&a("minorloglabels")}};function Zue(e,r){function t(n,i){return mx.coerce(e,r,oS.tickformatstops,n,i)}var a=t("enabled");a&&(t("dtickrange"),t("value"))}});var r1=U((SAe,uS)=>{"use strict";var Jue=px();uS.exports=function(r,t,a,n,i){i||(i={});var l=i.tickSuffixDflt,o=Jue(r),s=a("tickprefix");s&&a("showtickprefix",o);var u=a("ticksuffix",l);u&&a("showticksuffix",o)}});var yx=U((qAe,fS)=>{"use strict";var So=ke(),$ue=ht(),Kue=Kh(),jue=jh(),Que=e1(),e0e=r1(),r0e=Jh();fS.exports=function(r,t,a){var n=$ue.newContainer(t,"colorbar"),i=r.colorbar||{};function l(R,F){return So.coerce(i,n,r0e,R,F)}var o=a.margin||{t:0,b:0,l:0,r:0},s=a.width-o.l-o.r,u=a.height-o.t-o.b,f=l("orientation"),c=f==="v",v=l("thicknessmode");l("thickness",v==="fraction"?30/(c?s:u):30);var h=l("lenmode");l("len",h==="fraction"?1:c?u:s);var p=l("yref"),y=l("xref"),m=p==="paper",b=y==="paper",_,w,x,M="left";c?(x="middle",M=b?"left":"right",_=b?1.02:1,w=.5):(x=m?"bottom":"top",M="center",_=.5,w=m?1.02:1),So.coerce(i,n,{x:{valType:"number",min:b?-2:0,max:b?3:1,dflt:_}},"x"),So.coerce(i,n,{y:{valType:"number",min:m?-2:0,max:m?3:1,dflt:w}},"y"),l("xanchor",M),l("xpad"),l("yanchor",x),l("ypad"),So.noneOrAll(i,n,["x","y"]),l("outlinecolor"),l("outlinewidth"),l("bordercolor"),l("borderwidth"),l("bgcolor");var k=So.coerce(i,n,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:c?["outside","inside","outside top","inside top","outside bottom","inside bottom"]:["outside","inside","outside left","inside left","outside right","inside right"]}},"ticklabelposition");l("ticklabeloverflow",k.indexOf("inside")!==-1?"hide past domain":"hide past div"),Kue(i,n,l,"linear");var A=a.font,S={noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0,outerTicks:!1,font:A};k.indexOf("inside")!==-1&&(S.bgColor="black"),e0e(i,n,l,"linear",S),Que(i,n,l,"linear",S),jue(i,n,l,"linear",S),l("title.text",a._dfltTitle.colorbar);var D=n.showticklabels?n.tickfont:A,P=So.extendFlat({},A,{family:D.family,size:So.bigFont(D.size)});So.coerceFont(l,"title.font",P),l("title.side",c?"top":"right")}});var B0=U((DAe,dS)=>{"use strict";var cS=Gr(),xx=ke(),t0e=fx(),a0e=yx(),vS=Rs().isValid,n0e=Ar().traceIs;function gx(e,r){var t=r.slice(0,r.length-1);return r?xx.nestedProperty(e,t).get()||{}:e}dS.exports=function e(r,t,a,n,i){var l=i.prefix,o=i.cLetter,s="_module"in t,u=gx(r,l),f=gx(t,l),c=gx(t._template||{},l)||{},v=function(){return delete r.coloraxis,delete t.coloraxis,e(r,t,a,n,i)};if(s){var h=a._colorAxes||{},p=n(l+"coloraxis");if(p){var y=n0e(t,"contour")&&xx.nestedProperty(t,"contours.coloring").get()||"heatmap",m=h[p];m?(m[2].push(v),m[0]!==y&&(m[0]=!1,xx.warn(["Ignoring coloraxis:",p,"setting","as it is linked to incompatible colorscales."].join(" ")))):h[p]=[y,t,[v]];return}}var b=u[o+"min"],_=u[o+"max"],w=cS(b)&&cS(_)&&b<_,x=n(l+o+"auto",!w);x?n(l+o+"mid"):(n(l+o+"min"),n(l+o+"max"));var M=u.colorscale,k=c.colorscale,A;if(M!==void 0&&(A=!vS(M)),k!==void 0&&(A=!vS(k)),n(l+"autocolorscale",A),n(l+"colorscale"),n(l+"reversescale"),l!=="marker.line."){var S;l&&s&&(S=t0e(u));var D=n(l+"showscale",S);D&&(l&&c&&(f._template=c),a0e(u,f,a))}}});var yS=U((PAe,mS)=>{"use strict";var hS=ke(),i0e=ht(),pS=ux(),l0e=B0();mS.exports=function(r,t){function a(c,v){return hS.coerce(r,t,pS,c,v)}a("colorscale.sequential"),a("colorscale.sequentialminus"),a("colorscale.diverging");var n=t._colorAxes,i,l;function o(c,v){return hS.coerce(i,l,pS.coloraxis,c,v)}for(var s in n){var u=n[s];if(u[0])i=r[s]||{},l=i0e.newContainer(t,s,"coloraxis"),l._name=s,l0e(i,l,t,o,{prefix:"",cLetter:"c"});else{for(var f=0;f{"use strict";var o0e=ke(),s0e=Un().hasColorscale,u0e=Un().extractOpts;gS.exports=function(r,t){function a(f,c){var v=f["_"+c];v!==void 0&&(f[c]=v)}function n(f,c){var v=c.container?o0e.nestedProperty(f,c.container).get():f;if(v)if(v.coloraxis)v._colorAx=t[v.coloraxis];else{var h=u0e(v),p=h.auto;(p||h.min===void 0)&&a(v,c.min),(p||h.max===void 0)&&a(v,c.max),h.autocolorscale&&a(v,"colorscale")}}for(var i=0;i{"use strict";var bS=Gr(),bx=ke(),f0e=Un().extractOpts;_S.exports=function(r,t,a){var n=r._fullLayout,i=a.vals,l=a.containerStr,o=l?bx.nestedProperty(t,l).get():t,s=f0e(o),u=s.auto!==!1,f=s.min,c=s.max,v=s.mid,h=function(){return bx.aggNums(Math.min,null,i)},p=function(){return bx.aggNums(Math.max,null,i)};if(f===void 0?f=h():u&&(o._colorAx&&bS(f)?f=Math.min(f,h()):f=h()),c===void 0?c=p():u&&(o._colorAx&&bS(c)?c=Math.max(c,p()):c=p()),u&&v!==void 0&&(c-v>v-f?f=v-(c-v):c-v=0?y=n.colorscale.sequential:y=n.colorscale.sequentialminus,s._sync("colorscale",y)}}});var _x=U((zAe,wS)=>{"use strict";var t1=Rs(),H0=Un();wS.exports={moduleType:"component",name:"colorscale",attributes:sv(),layoutAttributes:ux(),supplyLayoutDefaults:yS(),handleDefaults:B0(),crossTraceDefaults:xS(),calc:uv(),scales:t1.scales,defaultScale:t1.defaultScale,getScale:t1.get,isValidScale:t1.isValid,hasColorscale:H0.hasColorscale,extractOpts:H0.extractOpts,extractScale:H0.extractScale,flipScale:H0.flipScale,makeColorScaleFunc:H0.makeColorScaleFunc,makeColorScaleFuncFromTrace:H0.makeColorScaleFuncFromTrace}});var Xn=U((FAe,MS)=>{"use strict";var TS=ke(),c0e=Tn().isTypedArraySpec;MS.exports={hasLines:function(e){return e.visible&&e.mode&&e.mode.indexOf("lines")!==-1},hasMarkers:function(e){return e.visible&&(e.mode&&e.mode.indexOf("markers")!==-1||e.type==="splom")},hasText:function(e){return e.visible&&e.mode&&e.mode.indexOf("text")!==-1},isBubble:function(e){var r=e.marker;return TS.isPlainObject(r)&&(TS.isArrayOrTypedArray(r.size)||c0e(r.size))}}});var kS=U((NAe,AS)=>{"use strict";var v0e=Gr();AS.exports=function(r,t){t||(t=2);var a=r.marker,n=a.sizeref||1,i=a.sizemin||0,l=a.sizemode==="area"?function(o){return Math.sqrt(o/n)}:function(o){return o/n};return function(o){var s=l(o/t);return v0e(s)&&s>0?Math.max(s,i):0}}});var Ui=U(Oa=>{"use strict";var fv=ke();Oa.getSubplot=function(e){return e.subplot||e.xaxis+e.yaxis||e.geo};Oa.isTraceInSubplots=function(e,r){if(e.type==="splom"){for(var t=e.xaxes||[],a=e.yaxes||[],n=0;n=0&&t.index{var wx={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},m0e=/([astvzqmhlc])([^astvzqmhlc]*)/gi,y0e=/-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/gi;function g0e(e){let r=[];return e.replace(m0e,(t,a,n)=>{let i=a.toLowerCase(),l=a,o=x0e(n);for(i==="m"&&o.length>2&&(r.push([l,...o.splice(0,2)]),i="l",l=l==="m"?"l":"L");;){if(o.length===wx[i])return r.push([l,...o]),"";if(o.length{"use strict";var b0e=Tx(),$e=function(e,r){return r?Math.round(e*(r=Math.pow(10,r)))/r:Math.round(e)},Rr="M0,0Z",qS=Math.sqrt(2),qo=Math.sqrt(3),Mx=Math.PI,Ax=Math.cos,kx=Math.sin;zS.exports={circle:{n:0,f:function(e,r,t){if(zr(r))return Rr;var a=$e(e,2),n="M"+a+",0A"+a+","+a+" 0 1,1 0,-"+a+"A"+a+","+a+" 0 0,1 "+a+",0Z";return t?Fr(r,t,n):n}},square:{n:1,f:function(e,r,t){if(zr(r))return Rr;var a=$e(e,2);return Fr(r,t,"M"+a+","+a+"H-"+a+"V-"+a+"H"+a+"Z")}},diamond:{n:2,f:function(e,r,t){if(zr(r))return Rr;var a=$e(e*1.3,2);return Fr(r,t,"M"+a+",0L0,"+a+"L-"+a+",0L0,-"+a+"Z")}},cross:{n:3,f:function(e,r,t){if(zr(r))return Rr;var a=$e(e*.4,2),n=$e(e*1.2,2);return Fr(r,t,"M"+n+","+a+"H"+a+"V"+n+"H-"+a+"V"+a+"H-"+n+"V-"+a+"H-"+a+"V-"+n+"H"+a+"V-"+a+"H"+n+"Z")}},x:{n:4,f:function(e,r,t){if(zr(r))return Rr;var a=$e(e*.8/qS,2),n="l"+a+","+a,i="l"+a+",-"+a,l="l-"+a+",-"+a,o="l-"+a+","+a;return Fr(r,t,"M0,"+a+n+i+l+i+l+o+l+o+n+o+n+"Z")}},"triangle-up":{n:5,f:function(e,r,t){if(zr(r))return Rr;var a=$e(e*2/qo,2),n=$e(e/2,2),i=$e(e,2);return Fr(r,t,"M-"+a+","+n+"H"+a+"L0,-"+i+"Z")}},"triangle-down":{n:6,f:function(e,r,t){if(zr(r))return Rr;var a=$e(e*2/qo,2),n=$e(e/2,2),i=$e(e,2);return Fr(r,t,"M-"+a+",-"+n+"H"+a+"L0,"+i+"Z")}},"triangle-left":{n:7,f:function(e,r,t){if(zr(r))return Rr;var a=$e(e*2/qo,2),n=$e(e/2,2),i=$e(e,2);return Fr(r,t,"M"+n+",-"+a+"V"+a+"L-"+i+",0Z")}},"triangle-right":{n:8,f:function(e,r,t){if(zr(r))return Rr;var a=$e(e*2/qo,2),n=$e(e/2,2),i=$e(e,2);return Fr(r,t,"M-"+n+",-"+a+"V"+a+"L"+i+",0Z")}},"triangle-ne":{n:9,f:function(e,r,t){if(zr(r))return Rr;var a=$e(e*.6,2),n=$e(e*1.2,2);return Fr(r,t,"M-"+n+",-"+a+"H"+a+"V"+n+"Z")}},"triangle-se":{n:10,f:function(e,r,t){if(zr(r))return Rr;var a=$e(e*.6,2),n=$e(e*1.2,2);return Fr(r,t,"M"+a+",-"+n+"V"+a+"H-"+n+"Z")}},"triangle-sw":{n:11,f:function(e,r,t){if(zr(r))return Rr;var a=$e(e*.6,2),n=$e(e*1.2,2);return Fr(r,t,"M"+n+","+a+"H-"+a+"V-"+n+"Z")}},"triangle-nw":{n:12,f:function(e,r,t){if(zr(r))return Rr;var a=$e(e*.6,2),n=$e(e*1.2,2);return Fr(r,t,"M-"+a+","+n+"V-"+a+"H"+n+"Z")}},pentagon:{n:13,f:function(e,r,t){if(zr(r))return Rr;var a=$e(e*.951,2),n=$e(e*.588,2),i=$e(-e,2),l=$e(e*-.309,2),o=$e(e*.809,2);return Fr(r,t,"M"+a+","+l+"L"+n+","+o+"H-"+n+"L-"+a+","+l+"L0,"+i+"Z")}},hexagon:{n:14,f:function(e,r,t){if(zr(r))return Rr;var a=$e(e,2),n=$e(e/2,2),i=$e(e*qo/2,2);return Fr(r,t,"M"+i+",-"+n+"V"+n+"L0,"+a+"L-"+i+","+n+"V-"+n+"L0,-"+a+"Z")}},hexagon2:{n:15,f:function(e,r,t){if(zr(r))return Rr;var a=$e(e,2),n=$e(e/2,2),i=$e(e*qo/2,2);return Fr(r,t,"M-"+n+","+i+"H"+n+"L"+a+",0L"+n+",-"+i+"H-"+n+"L-"+a+",0Z")}},octagon:{n:16,f:function(e,r,t){if(zr(r))return Rr;var a=$e(e*.924,2),n=$e(e*.383,2);return Fr(r,t,"M-"+n+",-"+a+"H"+n+"L"+a+",-"+n+"V"+n+"L"+n+","+a+"H-"+n+"L-"+a+","+n+"V-"+n+"Z")}},star:{n:17,f:function(e,r,t){if(zr(r))return Rr;var a=e*1.4,n=$e(a*.225,2),i=$e(a*.951,2),l=$e(a*.363,2),o=$e(a*.588,2),s=$e(-a,2),u=$e(a*-.309,2),f=$e(a*.118,2),c=$e(a*.809,2),v=$e(a*.382,2);return Fr(r,t,"M"+n+","+u+"H"+i+"L"+l+","+f+"L"+o+","+c+"L0,"+v+"L-"+o+","+c+"L-"+l+","+f+"L-"+i+","+u+"H-"+n+"L0,"+s+"Z")}},hexagram:{n:18,f:function(e,r,t){if(zr(r))return Rr;var a=$e(e*.66,2),n=$e(e*.38,2),i=$e(e*.76,2);return Fr(r,t,"M-"+i+",0l-"+n+",-"+a+"h"+i+"l"+n+",-"+a+"l"+n+","+a+"h"+i+"l-"+n+","+a+"l"+n+","+a+"h-"+i+"l-"+n+","+a+"l-"+n+",-"+a+"h-"+i+"Z")}},"star-triangle-up":{n:19,f:function(e,r,t){if(zr(r))return Rr;var a=$e(e*qo*.8,2),n=$e(e*.8,2),i=$e(e*1.6,2),l=$e(e*4,2),o="A "+l+","+l+" 0 0 1 ";return Fr(r,t,"M-"+a+","+n+o+a+","+n+o+"0,-"+i+o+"-"+a+","+n+"Z")}},"star-triangle-down":{n:20,f:function(e,r,t){if(zr(r))return Rr;var a=$e(e*qo*.8,2),n=$e(e*.8,2),i=$e(e*1.6,2),l=$e(e*4,2),o="A "+l+","+l+" 0 0 1 ";return Fr(r,t,"M"+a+",-"+n+o+"-"+a+",-"+n+o+"0,"+i+o+a+",-"+n+"Z")}},"star-square":{n:21,f:function(e,r,t){if(zr(r))return Rr;var a=$e(e*1.1,2),n=$e(e*2,2),i="A "+n+","+n+" 0 0 1 ";return Fr(r,t,"M-"+a+",-"+a+i+"-"+a+","+a+i+a+","+a+i+a+",-"+a+i+"-"+a+",-"+a+"Z")}},"star-diamond":{n:22,f:function(e,r,t){if(zr(r))return Rr;var a=$e(e*1.4,2),n=$e(e*1.9,2),i="A "+n+","+n+" 0 0 1 ";return Fr(r,t,"M-"+a+",0"+i+"0,"+a+i+a+",0"+i+"0,-"+a+i+"-"+a+",0Z")}},"diamond-tall":{n:23,f:function(e,r,t){if(zr(r))return Rr;var a=$e(e*.7,2),n=$e(e*1.4,2);return Fr(r,t,"M0,"+n+"L"+a+",0L0,-"+n+"L-"+a+",0Z")}},"diamond-wide":{n:24,f:function(e,r,t){if(zr(r))return Rr;var a=$e(e*1.4,2),n=$e(e*.7,2);return Fr(r,t,"M0,"+n+"L"+a+",0L0,-"+n+"L-"+a+",0Z")}},hourglass:{n:25,f:function(e,r,t){if(zr(r))return Rr;var a=$e(e,2);return Fr(r,t,"M"+a+","+a+"H-"+a+"L"+a+",-"+a+"H-"+a+"Z")},noDot:!0},bowtie:{n:26,f:function(e,r,t){if(zr(r))return Rr;var a=$e(e,2);return Fr(r,t,"M"+a+","+a+"V-"+a+"L-"+a+","+a+"V-"+a+"Z")},noDot:!0},"circle-cross":{n:27,f:function(e,r,t){if(zr(r))return Rr;var a=$e(e,2);return Fr(r,t,"M0,"+a+"V-"+a+"M"+a+",0H-"+a+"M"+a+",0A"+a+","+a+" 0 1,1 0,-"+a+"A"+a+","+a+" 0 0,1 "+a+",0Z")},needLine:!0,noDot:!0},"circle-x":{n:28,f:function(e,r,t){if(zr(r))return Rr;var a=$e(e,2),n=$e(e/qS,2);return Fr(r,t,"M"+n+","+n+"L-"+n+",-"+n+"M"+n+",-"+n+"L-"+n+","+n+"M"+a+",0A"+a+","+a+" 0 1,1 0,-"+a+"A"+a+","+a+" 0 0,1 "+a+",0Z")},needLine:!0,noDot:!0},"square-cross":{n:29,f:function(e,r,t){if(zr(r))return Rr;var a=$e(e,2);return Fr(r,t,"M0,"+a+"V-"+a+"M"+a+",0H-"+a+"M"+a+","+a+"H-"+a+"V-"+a+"H"+a+"Z")},needLine:!0,noDot:!0},"square-x":{n:30,f:function(e,r,t){if(zr(r))return Rr;var a=$e(e,2);return Fr(r,t,"M"+a+","+a+"L-"+a+",-"+a+"M"+a+",-"+a+"L-"+a+","+a+"M"+a+","+a+"H-"+a+"V-"+a+"H"+a+"Z")},needLine:!0,noDot:!0},"diamond-cross":{n:31,f:function(e,r,t){if(zr(r))return Rr;var a=$e(e*1.3,2);return Fr(r,t,"M"+a+",0L0,"+a+"L-"+a+",0L0,-"+a+"ZM0,-"+a+"V"+a+"M-"+a+",0H"+a)},needLine:!0,noDot:!0},"diamond-x":{n:32,f:function(e,r,t){if(zr(r))return Rr;var a=$e(e*1.3,2),n=$e(e*.65,2);return Fr(r,t,"M"+a+",0L0,"+a+"L-"+a+",0L0,-"+a+"ZM-"+n+",-"+n+"L"+n+","+n+"M-"+n+","+n+"L"+n+",-"+n)},needLine:!0,noDot:!0},"cross-thin":{n:33,f:function(e,r,t){if(zr(r))return Rr;var a=$e(e*1.4,2);return Fr(r,t,"M0,"+a+"V-"+a+"M"+a+",0H-"+a)},needLine:!0,noDot:!0,noFill:!0},"x-thin":{n:34,f:function(e,r,t){if(zr(r))return Rr;var a=$e(e,2);return Fr(r,t,"M"+a+","+a+"L-"+a+",-"+a+"M"+a+",-"+a+"L-"+a+","+a)},needLine:!0,noDot:!0,noFill:!0},asterisk:{n:35,f:function(e,r,t){if(zr(r))return Rr;var a=$e(e*1.2,2),n=$e(e*.85,2);return Fr(r,t,"M0,"+a+"V-"+a+"M"+a+",0H-"+a+"M"+n+","+n+"L-"+n+",-"+n+"M"+n+",-"+n+"L-"+n+","+n)},needLine:!0,noDot:!0,noFill:!0},hash:{n:36,f:function(e,r,t){if(zr(r))return Rr;var a=$e(e/2,2),n=$e(e,2);return Fr(r,t,"M"+a+","+n+"V-"+n+"M"+(a-n)+",-"+n+"V"+n+"M"+n+","+a+"H-"+n+"M-"+n+","+(a-n)+"H"+n)},needLine:!0,noFill:!0},"y-up":{n:37,f:function(e,r,t){if(zr(r))return Rr;var a=$e(e*1.2,2),n=$e(e*1.6,2),i=$e(e*.8,2);return Fr(r,t,"M-"+a+","+i+"L0,0M"+a+","+i+"L0,0M0,-"+n+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-down":{n:38,f:function(e,r,t){if(zr(r))return Rr;var a=$e(e*1.2,2),n=$e(e*1.6,2),i=$e(e*.8,2);return Fr(r,t,"M-"+a+",-"+i+"L0,0M"+a+",-"+i+"L0,0M0,"+n+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-left":{n:39,f:function(e,r,t){if(zr(r))return Rr;var a=$e(e*1.2,2),n=$e(e*1.6,2),i=$e(e*.8,2);return Fr(r,t,"M"+i+","+a+"L0,0M"+i+",-"+a+"L0,0M-"+n+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-right":{n:40,f:function(e,r,t){if(zr(r))return Rr;var a=$e(e*1.2,2),n=$e(e*1.6,2),i=$e(e*.8,2);return Fr(r,t,"M-"+i+","+a+"L0,0M-"+i+",-"+a+"L0,0M"+n+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"line-ew":{n:41,f:function(e,r,t){if(zr(r))return Rr;var a=$e(e*1.4,2);return Fr(r,t,"M"+a+",0H-"+a)},needLine:!0,noDot:!0,noFill:!0},"line-ns":{n:42,f:function(e,r,t){if(zr(r))return Rr;var a=$e(e*1.4,2);return Fr(r,t,"M0,"+a+"V-"+a)},needLine:!0,noDot:!0,noFill:!0},"line-ne":{n:43,f:function(e,r,t){if(zr(r))return Rr;var a=$e(e,2);return Fr(r,t,"M"+a+",-"+a+"L-"+a+","+a)},needLine:!0,noDot:!0,noFill:!0},"line-nw":{n:44,f:function(e,r,t){if(zr(r))return Rr;var a=$e(e,2);return Fr(r,t,"M"+a+","+a+"L-"+a+",-"+a)},needLine:!0,noDot:!0,noFill:!0},"arrow-up":{n:45,f:function(e,r,t){if(zr(r))return Rr;var a=$e(e,2),n=$e(e*2,2);return Fr(r,t,"M0,0L-"+a+","+n+"H"+a+"Z")},backoff:1,noDot:!0},"arrow-down":{n:46,f:function(e,r,t){if(zr(r))return Rr;var a=$e(e,2),n=$e(e*2,2);return Fr(r,t,"M0,0L-"+a+",-"+n+"H"+a+"Z")},noDot:!0},"arrow-left":{n:47,f:function(e,r,t){if(zr(r))return Rr;var a=$e(e*2,2),n=$e(e,2);return Fr(r,t,"M0,0L"+a+",-"+n+"V"+n+"Z")},noDot:!0},"arrow-right":{n:48,f:function(e,r,t){if(zr(r))return Rr;var a=$e(e*2,2),n=$e(e,2);return Fr(r,t,"M0,0L-"+a+",-"+n+"V"+n+"Z")},noDot:!0},"arrow-bar-up":{n:49,f:function(e,r,t){if(zr(r))return Rr;var a=$e(e,2),n=$e(e*2,2);return Fr(r,t,"M-"+a+",0H"+a+"M0,0L-"+a+","+n+"H"+a+"Z")},backoff:1,needLine:!0,noDot:!0},"arrow-bar-down":{n:50,f:function(e,r,t){if(zr(r))return Rr;var a=$e(e,2),n=$e(e*2,2);return Fr(r,t,"M-"+a+",0H"+a+"M0,0L-"+a+",-"+n+"H"+a+"Z")},needLine:!0,noDot:!0},"arrow-bar-left":{n:51,f:function(e,r,t){if(zr(r))return Rr;var a=$e(e*2,2),n=$e(e,2);return Fr(r,t,"M0,-"+n+"V"+n+"M0,0L"+a+",-"+n+"V"+n+"Z")},needLine:!0,noDot:!0},"arrow-bar-right":{n:52,f:function(e,r,t){if(zr(r))return Rr;var a=$e(e*2,2),n=$e(e,2);return Fr(r,t,"M0,-"+n+"V"+n+"M0,0L-"+a+",-"+n+"V"+n+"Z")},needLine:!0,noDot:!0},arrow:{n:53,f:function(e,r,t){if(zr(r))return Rr;var a=Mx/2.5,n=2*e*Ax(a),i=2*e*kx(a);return Fr(r,t,"M0,0L"+-n+","+i+"L"+n+","+i+"Z")},backoff:.9,noDot:!0},"arrow-wide":{n:54,f:function(e,r,t){if(zr(r))return Rr;var a=Mx/4,n=2*e*Ax(a),i=2*e*kx(a);return Fr(r,t,"M0,0L"+-n+","+i+"A "+2*e+","+2*e+" 0 0 1 "+n+","+i+"Z")},backoff:.4,noDot:!0}};function zr(e){return e===null}var DS,PS,ES,RS;function Fr(e,r,t){if((!e||e%360===0)&&!r)return t;if(ES===e&&RS===r&&DS===t)return PS;ES=e,RS=r,DS=t;function a(m,b){var _=Ax(m),w=kx(m),x=b[0],M=b[1]+(r||0);return[x*_-M*w,x*w+M*_]}for(var n=e/180*Mx,i=0,l=0,o=b0e(t),s="",u=0;u{"use strict";var Ma=Er(),st=ke(),_0e=st.numberFormat,Do=Gr(),n1=Ar(),ya=kr(),w0e=_x(),vv=st.strTranslate,i1=ma(),T0e=(Us(),Fe(Gs)),M0e=(Ha(),Fe(Ba)),A0e=M0e.LINE_SPACING,XS=(_0(),Fe(b0)).DESELECTDIM,k0e=Xn(),C0e=kS(),L0e=Ui().appendArrayPointValue,er={};tq.exports=er;er.font=function(e,r){var t=r.variant,a=r.style,n=r.weight,i=r.color,l=r.size,o=r.family,s=r.shadow,u=r.lineposition,f=r.textcase;o&&e.style("font-family",o),l+1&&e.style("font-size",l+"px"),i&&e.call(ya.fill,i),n&&e.style("font-weight",n),a&&e.style("font-style",a),t&&e.style("font-variant",t),f&&e.style("text-transform",Cx(q0e(f))),s&&e.style("text-shadow",s==="auto"?i1.makeTextShadow(ya.contrast(i)):Cx(s)),u&&e.style("text-decoration-line",Cx(D0e(u)))};function Cx(e){return e==="none"?void 0:e}var S0e={normal:"none",lower:"lowercase",upper:"uppercase","word caps":"capitalize"};function q0e(e){return S0e[e]}function D0e(e){return e.replace("under","underline").replace("over","overline").replace("through","line-through").split("+").join(" ")}er.setPosition=function(e,r,t){e.attr("x",r).attr("y",t)};er.setSize=function(e,r,t){e.attr("width",r).attr("height",t)};er.setRect=function(e,r,t,a,n){e.call(er.setPosition,r,t).call(er.setSize,a,n)};er.translatePoint=function(e,r,t,a){var n=t.c2p(e.x),i=a.c2p(e.y);if(Do(n)&&Do(i)&&r.node())r.node().nodeName==="text"?r.attr("x",n).attr("y",i):r.attr("transform",vv(n,i));else return!1;return!0};er.translatePoints=function(e,r,t){e.each(function(a){var n=Ma.select(this);er.translatePoint(a,n,r,t)})};er.hideOutsideRangePoint=function(e,r,t,a,n,i){r.attr("display",t.isPtWithinRange(e,n)&&a.isPtWithinRange(e,i)?null:"none")};er.hideOutsideRangePoints=function(e,r){if(r._hasClipOnAxisFalse){var t=r.xaxis,a=r.yaxis;e.each(function(n){var i=n[0].trace,l=i.xcalendar,o=i.ycalendar,s=n1.traceIs(i,"bar-like")?".bartext":".point,.textpoint";e.selectAll(s).each(function(u){er.hideOutsideRangePoint(u,Ma.select(this),t,a,l,o)})})}};er.crispRound=function(e,r,t){return!r||!Do(r)?t||0:e._context.staticPlot?r:r<1?1:Math.round(r)};er.singleLineStyle=function(e,r,t,a,n){r.style("fill","none");var i=(((e||[])[0]||{}).trace||{}).line||{},l=t||i.width||0,o=n||i.dash||"";ya.stroke(r,a||i.color),er.dashLine(r,o,l)};er.lineGroupStyle=function(e,r,t,a){e.style("fill","none").each(function(n){var i=(((n||[])[0]||{}).trace||{}).line||{},l=r||i.width||0,o=a||i.dash||"";Ma.select(this).call(ya.stroke,t||i.color).call(er.dashLine,o,l)})};er.dashLine=function(e,r,t){t=+t||0,r=er.dashStyle(r,t),e.style({"stroke-dasharray":r,"stroke-width":t+"px"})};er.dashStyle=function(e,r){r=+r||1;var t=Math.max(r,3);return e==="solid"?e="":e==="dot"?e=t+"px,"+t+"px":e==="dash"?e=3*t+"px,"+3*t+"px":e==="longdash"?e=5*t+"px,"+5*t+"px":e==="dashdot"?e=3*t+"px,"+t+"px,"+t+"px,"+t+"px":e==="longdashdot"&&(e=5*t+"px,"+2*t+"px,"+t+"px,"+2*t+"px"),e};function WS(e,r,t,a){var n=r.fillpattern,i=r.fillgradient,l=er.getPatternAttr,o=n&&(l(n.shape,0,"")||l(n.path,0,""));if(o){var s=l(n.bgcolor,0,null),u=l(n.fgcolor,0,null),f=n.fgopacity,c=l(n.size,0,8),v=l(n.solidity,0,.3),h=r.uid;er.pattern(e,"point",t,h,o,c,v,void 0,n.fillmode,s,u,f)}else if(i&&i.type!=="none"){var p=i.type,y="scatterfill-"+r.uid;if(a&&(y="legendfill-"+r.uid),!a&&(i.start!==void 0||i.stop!==void 0)){var m,b;p==="horizontal"?(m={x:i.start,y:0},b={x:i.stop,y:0}):p==="vertical"&&(m={x:0,y:i.start},b={x:0,y:i.stop}),m.x=r._xA.c2p(m.x===void 0?r._extremes.x.min[0].val:m.x,!0),m.y=r._yA.c2p(m.y===void 0?r._extremes.y.min[0].val:m.y,!0),b.x=r._xA.c2p(b.x===void 0?r._extremes.x.max[0].val:b.x,!0),b.y=r._yA.c2p(b.y===void 0?r._extremes.y.max[0].val:b.y,!0),e.call($S,t,y,"linear",i.colorscale,"fill",m,b,!0,!1)}else p==="horizontal"&&(p=p+"reversed"),e.call(er.gradient,t,y,p,i.colorscale,"fill")}else r.fillcolor&&e.call(ya.fill,r.fillcolor)}er.singleFillStyle=function(e,r){var t=Ma.select(e.node()),a=t.data(),n=((a[0]||[])[0]||{}).trace||{};WS(e,n,r,!1)};er.fillGroupStyle=function(e,r,t){e.style("stroke-width",0).each(function(a){var n=Ma.select(this);a[0].trace&&WS(n,a[0].trace,r,t)})};var NS=FS();er.symbolNames=[];er.symbolFuncs=[];er.symbolBackOffs=[];er.symbolNeedLines={};er.symbolNoDot={};er.symbolNoFill={};er.symbolList=[];Object.keys(NS).forEach(function(e){var r=NS[e],t=r.n;er.symbolList.push(t,String(t),e,t+100,String(t+100),e+"-open"),er.symbolNames[t]=e,er.symbolFuncs[t]=r.f,er.symbolBackOffs[t]=r.backoff||0,r.needLine&&(er.symbolNeedLines[t]=!0),r.noDot?er.symbolNoDot[t]=!0:er.symbolList.push(t+200,String(t+200),e+"-dot",t+300,String(t+300),e+"-open-dot"),r.noFill&&(er.symbolNoFill[t]=!0)});var P0e=er.symbolNames.length,E0e="M0,0.5L0.5,0L0,-0.5L-0.5,0Z";er.symbolNumber=function(e){if(Do(e))e=+e;else if(typeof e=="string"){var r=0;e.indexOf("-open")>0&&(r=100,e=e.replace("-open","")),e.indexOf("-dot")>0&&(r+=200,e=e.replace("-dot","")),e=er.symbolNames.indexOf(e),e>=0&&(e+=r)}return e%100>=P0e||e>=400?0:Math.floor(Math.max(e,0))};function ZS(e,r,t,a){var n=e%100;return er.symbolFuncs[n](r,t,a)+(e>=200?E0e:"")}var IS=_0e("~f"),JS={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}};er.gradient=function(e,r,t,a,n,i){var l=JS[a];return $S(e,r,t,l.type,n,i,l.start,l.stop,!1,l.reversed)};function $S(e,r,t,a,n,i,l,o,s,u){var f=n.length,c;a==="linear"?c={node:"linearGradient",attrs:{x1:l.x,y1:l.y,x2:o.x,y2:o.y,gradientUnits:s?"userSpaceOnUse":"objectBoundingBox"},reversed:u}:a==="radial"&&(c={node:"radialGradient",reversed:u});for(var v=new Array(f),h=0;h=0&&e.i===void 0&&(e.i=i.i),r.style("opacity",a.selectedOpacityFn?a.selectedOpacityFn(e):e.mo===void 0?l.opacity:e.mo),a.ms2mrc){var s;e.ms==="various"||l.size==="various"?s=3:s=a.ms2mrc(e.ms),e.mrc=s,a.selectedSizeFn&&(s=e.mrc=a.selectedSizeFn(e));var u=er.symbolNumber(e.mx||l.symbol)||0;e.om=u%200>=100;var f=Rx(e,t),c=Ex(e,t);r.attr("d",ZS(u,s,f,c))}var v=!1,h,p,y;if(e.so)y=o.outlierwidth,p=o.outliercolor,h=l.outliercolor;else{var m=(o||{}).width;y=(e.mlw+1||m+1||(e.trace?(e.trace.marker.line||{}).width:0)+1)-1||0,"mlc"in e?p=e.mlcc=a.lineScale(e.mlc):st.isArrayOrTypedArray(o.color)?p=ya.defaultLine:p=o.color,st.isArrayOrTypedArray(l.color)&&(h=ya.defaultLine,v=!0),"mc"in e?h=e.mcc=a.markerScale(e.mc):h=l.color||l.colors||"rgba(0,0,0,0)",a.selectedColorFn&&(h=a.selectedColorFn(e))}let b=e.mld||(o||{}).dash;if(b&&er.dashLine(r,b,y),e.om)r.call(ya.stroke,h).style({"stroke-width":(y||1)+"px",fill:"none"});else{r.style("stroke-width",(e.isBlank?0:y)+"px");var _=l.gradient,w=e.mgt;w?v=!0:w=_&&_.type,st.isArrayOrTypedArray(w)&&(w=w[0],JS[w]||(w=0));var x=l.pattern,M=er.getPatternAttr,k=x&&(M(x.shape,e.i,"")||M(x.path,e.i,""));if(w&&w!=="none"){var A=e.mgc;A?v=!0:A=_.color;var S=t.uid;v&&(S+="-"+e.i),er.gradient(r,n,S,w,[[0,A],[1,h]],"fill")}else if(k){var D=!1,P=x.fgcolor;!P&&i&&i.color&&(P=i.color,D=!0);var R=M(P,e.i,i&&i.color||null),F=M(x.bgcolor,e.i,null),N=x.fgopacity,B=M(x.size,e.i,8),H=M(x.solidity,e.i,.3);D=D||e.mcc||st.isArrayOrTypedArray(x.shape)||st.isArrayOrTypedArray(x.path)||st.isArrayOrTypedArray(x.bgcolor)||st.isArrayOrTypedArray(x.fgcolor)||st.isArrayOrTypedArray(x.size)||st.isArrayOrTypedArray(x.solidity);var O=t.uid;D&&(O+="-"+e.i),er.pattern(r,"point",n,O,k,B,H,e.mcc,x.fillmode,F,R,N)}else st.isArrayOrTypedArray(h)?ya.fill(r,h[e.i]):ya.fill(r,h);y&&ya.stroke(r,p)}};er.makePointStyleFns=function(e){var r={},t=e.marker;return r.markerScale=er.tryColorscale(t,""),r.lineScale=er.tryColorscale(t,"line"),n1.traceIs(e,"symbols")&&(r.ms2mrc=k0e.isBubble(e)?C0e(e):function(){return(t.size||6)/2}),e.selectedpoints&&st.extendFlat(r,er.makeSelectedPointStyleFns(e)),r};er.makeSelectedPointStyleFns=function(e){var r={},t=e.selected||{},a=e.unselected||{},n=e.marker||{},i=t.marker||{},l=a.marker||{},o=n.opacity,s=i.opacity,u=l.opacity,f=s!==void 0,c=u!==void 0;(st.isArrayOrTypedArray(o)||f||c)&&(r.selectedOpacityFn=function(x){var M=x.mo===void 0?n.opacity:x.mo;return x.selected?f?s:M:c?u:XS*M});var v=n.color,h=i.color,p=l.color;(h||p)&&(r.selectedColorFn=function(x){var M=x.mcc||v;return x.selected?h||M:p||M});var y=n.size,m=i.size,b=l.size,_=m!==void 0,w=b!==void 0;return n1.traceIs(e,"symbols")&&(_||w)&&(r.selectedSizeFn=function(x){var M=x.mrc||y/2;return x.selected?_?m/2:M:w?b/2:M}),r};er.makeSelectedTextStyleFns=function(e){var r={},t=e.selected||{},a=e.unselected||{},n=e.textfont||{},i=t.textfont||{},l=a.textfont||{},o=n.color,s=i.color,u=l.color;return r.selectedTextColorFn=function(f){var c=f.tc||o;return f.selected?s||c:u||(s?c:ya.addOpacity(c,XS))},r};er.selectedPointStyle=function(e,r){if(!(!e.size()||!r.selectedpoints)){var t=er.makeSelectedPointStyleFns(r),a=r.marker||{},n=[];t.selectedOpacityFn&&n.push(function(i,l){i.style("opacity",t.selectedOpacityFn(l))}),t.selectedColorFn&&n.push(function(i,l){ya.fill(i,t.selectedColorFn(l))}),t.selectedSizeFn&&n.push(function(i,l){var o=l.mx||a.symbol||0,s=t.selectedSizeFn(l);i.attr("d",ZS(er.symbolNumber(o),s,Rx(l,r),Ex(l,r))),l.mrc2=s}),n.length&&e.each(function(i){for(var l=Ma.select(this),o=0;o0?t:0}er.textPointStyle=function(e,r,t){if(e.size()){var a;if(r.selectedpoints){var n=er.makeSelectedTextStyleFns(r);a=n.selectedTextColorFn}var i=r.texttemplate,l=t._fullLayout;e.each(function(o){var s=Ma.select(this),u=i?st.extractOption(o,r,"txt","texttemplate"):st.extractOption(o,r,"tx","text");if(!u&&u!==0){s.remove();return}if(i){var f=r._module.formatLabels,c=f?f(o,r,l):{},v={};L0e(v,r,o.i),u=st.texttemplateString({data:[v,o,r._meta],fallback:r.texttemplatefallback,labels:c,locale:l._d3locale,template:u})}var h=o.tp||r.textposition,p=jS(o,r),y=a?a(o):o.tc||r.textfont.color;s.call(er.font,{family:o.tf||r.textfont.family,weight:o.tw||r.textfont.weight,style:o.ty||r.textfont.style,variant:o.tv||r.textfont.variant,textcase:o.tC||r.textfont.textcase,lineposition:o.tE||r.textfont.lineposition,shadow:o.tS||r.textfont.shadow,size:p,color:y}).text(u).call(i1.convertToTspans,t).call(KS,h,p,o.mrc)})}};er.selectedTextStyle=function(e,r){if(!(!e.size()||!r.selectedpoints)){var t=er.makeSelectedTextStyleFns(r);e.each(function(a){var n=Ma.select(this),i=t.selectedTextColorFn(a),l=a.tp||r.textposition,o=jS(a,r);ya.fill(n,i);var s=n1.traceIs(r,"bar-like");KS(n,l,o,a.mrc2||a.mrc,s)})}};var BS=.5;er.smoothopen=function(e,r){if(e.length<3)return"M"+e.join("L");var t="M"+e[0],a=[],n;for(n=1;n=s||x>=f&&x<=s)&&(M<=c&&M>=u||M>=c&&M<=u)&&(e=[x,M])}return e}er.applyBackoff=rq;er.makeTester=function(){var e=st.ensureSingleById(Ma.select("body"),"svg","js-plotly-tester",function(t){t.attr(T0e.svgAttrs).style({position:"absolute",left:"-10000px",top:"-10000px",width:"9000px",height:"9000px","z-index":"1"})}),r=st.ensureSingle(e,"path","js-reference-point",function(t){t.attr("d","M0,0H1V1H0Z").style({"stroke-width":0,fill:"black"})});er.tester=e,er.testref=r};er.savedBBoxes={};var Sx=0,F0e=1e4;er.bBox=function(e,r,t){t||(t=HS(e));var a;if(t){if(a=er.savedBBoxes[t],a)return st.extendFlat({},a)}else if(e.childNodes.length===1){var n=e.childNodes[0];if(t=HS(n),t){var i=+n.getAttribute("x")||0,l=+n.getAttribute("y")||0,o=n.getAttribute("transform");if(!o){var s=er.bBox(n,!1,t);return i&&(s.left+=i,s.right+=i),l&&(s.top+=l,s.bottom+=l),s}if(t+="~"+i+"~"+l+"~"+o,a=er.savedBBoxes[t],a)return st.extendFlat({},a)}}var u,f;r?u=e:(f=er.tester.node(),u=e.cloneNode(!0),f.appendChild(u)),Ma.select(u).attr("transform",null).call(i1.positionText,0,0);var c=u.getBoundingClientRect(),v=er.testref.node().getBoundingClientRect();r||f.removeChild(u);var h={height:c.height,width:c.width,left:c.left-v.left,top:c.top-v.top,right:c.right-v.left,bottom:c.bottom-v.top};return Sx>=F0e&&(er.savedBBoxes={},Sx=0),t&&(er.savedBBoxes[t]=h),Sx++,st.extendFlat({},h)};function HS(e){var r=e.getAttribute("data-unformatted");if(r!==null)return r+e.getAttribute("data-math")+e.getAttribute("text-anchor")+e.getAttribute("style")}er.setClipUrl=function(e,r,t){e.attr("clip-path",Px(r,t))};function Px(e,r){if(!e)return null;var t=r._context,a=t._exportedPlot?"":t._baseUrl||"";return a?"url('"+a+"#"+e+"')":"url(#"+e+")"}er.getTranslate=function(e){var r=/.*\btranslate\((-?\d*\.?\d*)[^-\d]*(-?\d*\.?\d*)[^\d].*/,t=e.attr?"attr":"getAttribute",a=e[t]("transform")||"",n=a.replace(r,function(i,l,o){return[l,o].join(" ")}).split(" ");return{x:+n[0]||0,y:+n[1]||0}};er.setTranslate=function(e,r,t){var a=/(\btranslate\(.*?\);?)/,n=e.attr?"attr":"getAttribute",i=e.attr?"attr":"setAttribute",l=e[n]("transform")||"";return r=r||0,t=t||0,l=l.replace(a,"").trim(),l+=vv(r,t),l=l.trim(),e[i]("transform",l),l};er.getScale=function(e){var r=/.*\bscale\((\d*\.?\d*)[^\d]*(\d*\.?\d*)[^\d].*/,t=e.attr?"attr":"getAttribute",a=e[t]("transform")||"",n=a.replace(r,function(i,l,o){return[l,o].join(" ")}).split(" ");return{x:+n[0]||1,y:+n[1]||1}};er.setScale=function(e,r,t){var a=/(\bscale\(.*?\);?)/,n=e.attr?"attr":"getAttribute",i=e.attr?"attr":"setAttribute",l=e[n]("transform")||"";return r=r||1,t=t||1,l=l.replace(a,"").trim(),l+="scale("+r+","+t+")",l=l.trim(),e[i]("transform",l),l};var N0e=/\s*sc.*/;er.setPointGroupScale=function(e,r,t){if(r=r||1,t=t||1,!!e){var a=r===1&&t===1?"":"scale("+r+","+t+")";e.each(function(){var n=(this.getAttribute("transform")||"").replace(N0e,"");n+=a,n=n.trim(),this.setAttribute("transform",n)})}};var I0e=/translate\([^)]*\)\s*$/;er.setTextPointsScale=function(e,r,t){e&&e.each(function(){var a,n=Ma.select(this),i=n.select("text");if(i.node()){var l=parseFloat(i.attr("x")||0),o=parseFloat(i.attr("y")||0),s=(n.attr("transform")||"").match(I0e);r===1&&t===1?a=[]:a=[vv(l,o),"scale("+r+","+t+")",vv(-l,-o)],s&&a.push(s),n.attr("transform",a.join(""))}})};function Ex(e,r){var t;return e&&(t=e.mf),t===void 0&&(t=r.marker&&r.marker.standoff||0),!r._geo&&!r._xA?-t:t}er.getMarkerStandoff=Ex;var cv=Math.atan2,Ws=Math.cos,Y0=Math.sin;function OS(e,r){var t=r[0],a=r[1];return[t*Ws(e)-a*Y0(e),t*Y0(e)+a*Ws(e)]}var YS,GS,US,VS,qx,Dx;function Rx(e,r){var t=e.ma;t===void 0&&(t=r.marker.angle,(!Do(t)||st.isArrayOrTypedArray(t))&&(t=0));var a,n,i=r.marker.angleref;if(i==="previous"||i==="north"){if(r._geo){var l=r._geo.project(e.lonlat);a=l[0],n=l[1]}else{var o=r._xA,s=r._yA;if(o&&s)a=o.c2p(e.x),n=s.c2p(e.y);else return 90}if(r._geo){var u=e.lonlat[0],f=e.lonlat[1],c=r._geo.project([u,f+1e-5]),v=r._geo.project([u+1e-5,f]),h=cv(v[1]-n,v[0]-a),p=cv(c[1]-n,c[0]-a),y;if(i==="north")y=t/180*Math.PI;else if(i==="previous"){var m=u/180*Math.PI,b=f/180*Math.PI,_=YS/180*Math.PI,w=GS/180*Math.PI,x=_-m,M=Ws(w)*Y0(x),k=Y0(w)*Ws(b)-Ws(w)*Y0(b)*Ws(x);y=-cv(M,k)-Math.PI,YS=u,GS=f}var A=OS(h,[Ws(y),0]),S=OS(p,[Y0(y),0]);t=cv(A[1]+S[1],A[0]+S[0])/Math.PI*180,i==="previous"&&!(Dx===r.uid&&e.i===qx+1)&&(t=null)}if(i==="previous"&&!r._geo)if(Dx===r.uid&&e.i===qx+1&&Do(a)&&Do(n)){var D=a-US,P=n-VS,R=r.line&&r.line.shape||"",F=R.slice(R.length-1);F==="h"&&(P=0),F==="v"&&(D=0),t+=cv(P,D)/Math.PI*180+90}else t=null}return US=a,VS=n,qx=e.i,Dx=r.uid,t}er.getMarkerAngle=Rx});var dv=U((YAe,lq)=>{"use strict";var G0=Er(),B0e=Gr(),H0e=Xt(),zx=Ar(),$s=ke(),aq=$s.strTranslate,l1=Zr(),o1=kr(),U0=ma(),nq=(_0(),Fe(b0)),O0e=(Ha(),Fe(Ba)).OPPOSITE_SIDE,iq=/ [XY][0-9]* /,Fx=1.6,Nx=1.6;function Y0e(e,r,t){var a=e._fullLayout,n=t.propContainer,i=t.propName,l=t.placeholder,o=t.traceIndex,s=t.avoid||{},u=t.attributes,f=t.transform,c=t.containerGroup,v=1,h=n.title,p=(h&&h.text?h.text:"").trim(),y=!1,m=h&&h.font?h.font:{},b=m.family,_=m.size,w=m.color,x=m.weight,M=m.style,k=m.variant,A=m.textcase,S=m.lineposition,D=m.shadow,P=t.subtitlePropName,R=!!P,F=t.subtitlePlaceholder,N=(n.title||{}).subtitle||{text:"",font:{}},B=(N.text||"").trim(),H=!1,O=1,Y=N.font,G=Y.family,V=Y.size,W=Y.color,X=Y.weight,$=Y.style,te=Y.variant,ie=Y.textcase,ve=Y.lineposition,K=Y.shadow,he;i==="title.text"?he="titleText":i.indexOf("axis")!==-1?he="axisTitleText":i.indexOf("colorbar")!==-1&&(he="colorbarTitleText");var le=e._context.edits[he];function _e(je,Ze){return je===void 0||Ze===void 0?!1:je.replace(iq," % ")===Ze.replace(iq," % ")}p===""?v=0:_e(p,l)&&(le||(p=""),v=.2,y=!0),R&&(B===""?O=0:_e(B,F)&&(le||(B=""),O=.2,H=!0)),t._meta?p=$s.templateString(p,t._meta):a._meta&&(p=$s.templateString(p,a._meta));var me=p||B||le,ce;c||(c=$s.ensureSingle(a._infolayer,"g","g-"+r),ce=a._hColorbarMoveTitle);var Me=c.selectAll("text."+r).data(me?[0]:[]);Me.enter().append("text"),Me.text(p).attr("class",r),Me.exit().remove();var Re=null,xe=r+"-subtitle",Pe=B||le;if(R&&(Re=c.selectAll("text."+xe).data(Pe?[0]:[]),Re.enter().append("text"),Re.text(B).attr("class",xe),Re.exit().remove()),!me)return c;function Le(je,Ze){$s.syncOrAsync([qe,Ee],{title:je,subtitle:Ze})}function qe(je){var Ze=je.title,Ae=je.subtitle,ze;!f&&ce&&(f={}),f?(ze="",f.rotate&&(ze+="rotate("+[f.rotate,u.x,u.y]+")"),(f.offset||ce)&&(ze+=aq(0,(f.offset||0)-(ce||0)))):ze=null,Ze.attr("transform",ze);function Qe(pe){if(pe){var Te=G0.select(pe.node().parentNode).select("."+xe);if(!Te.empty()){var Oe=pe.node().getBBox();if(Oe.height){var Je=Oe.y+Oe.height+Fx*V;Te.attr("y",Je)}}}}if(Ze.style("opacity",v*o1.opacity(w)).call(l1.font,{color:o1.rgb(w),size:G0.round(_,2),family:b,weight:x,style:M,variant:k,textcase:A,shadow:D,lineposition:S}).attr(u).call(U0.convertToTspans,e,Qe),Ae&&!Ae.empty()){var re=c.select("."+r+"-math-group"),ye=Ze.node().getBBox(),Xe=re.node()?re.node().getBBox():void 0,hr=Xe?Xe.y+Xe.height+Fx*V:ye.y+ye.height+Nx*V,De=$s.extendFlat({},u,{y:hr});Ae.attr("transform",ze),Ae.style("opacity",O*o1.opacity(W)).call(l1.font,{color:o1.rgb(W),size:G0.round(V,2),family:G,weight:X,style:$,variant:te,textcase:ie,shadow:K,lineposition:ve}).attr(De).call(U0.convertToTspans,e)}return H0e.previousPromises(e)}function Ee(je){var Ze=je.title,Ae=G0.select(Ze.node().parentNode);if(s&&s.selection&&s.side&&p){Ae.attr("transform",null);var ze=O0e[s.side],Qe=s.side==="left"||s.side==="top"?-1:1,re=B0e(s.pad)?s.pad:2,ye=l1.bBox(Ae.node()),Xe={t:0,b:0,l:0,r:0},hr=e._fullLayout._reservedMargin;for(var De in hr)for(var pe in hr[De]){var Te=hr[De][pe];Xe[pe]=Math.max(Xe[pe],Te)}var Oe={left:Xe.l,top:Xe.t,right:a.width-Xe.r,bottom:a.height-Xe.b},Je=s.maxShift||Qe*(Oe[s.side]-ye[s.side]),Be=0;if(Je<0)Be=Je;else{var Ve=s.offsetLeft||0,nr=s.offsetTop||0;ye.left-=Ve,ye.right-=Ve,ye.top-=nr,ye.bottom-=nr,s.selection.each(function(){var fr=l1.bBox(this);$s.bBoxIntersect(ye,fr,re)&&(Be=Math.max(Be,Qe*(fr[s.side]-ye[ze])+re))}),Be=Math.min(Je,Be),n._titleScoot=Math.abs(Be)}if(Be>0||Je<0){var lr={left:[-Be,0],right:[Be,0],top:[0,-Be],bottom:[0,Be]}[s.side];Ae.attr("transform",aq(lr[0],lr[1]))}}}Me.call(Le,Re);function Ue(je,Ze){je.text(Ze).on("mouseover.opacity",function(){G0.select(this).transition().duration(nq.SHOW_PLACEHOLDER).style("opacity",1)}).on("mouseout.opacity",function(){G0.select(this).transition().duration(nq.HIDE_PLACEHOLDER).style("opacity",0)})}if(le&&(p?Me.on(".opacity",null):(Ue(Me,l),y=!0),Me.call(U0.makeEditable,{gd:e}).on("edit",function(je){o!==void 0?zx.call("_guiRestyle",e,i,je,o):zx.call("_guiRelayout",e,i,je)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(Le)}).on("input",function(je){this.text(je||" ").call(U0.positionText,u.x,u.y)}),R)){if(R&&!p){var Ce=Me.node().getBBox(),We=Ce.y+Ce.height+Nx*V;Re.attr("y",We)}B?Re.on(".opacity",null):(Ue(Re,F),H=!0),Re.call(U0.makeEditable,{gd:e}).on("edit",function(je){zx.call("_guiRelayout",e,"title.subtitle.text",je)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(Le)}).on("input",function(je){this.text(je||" ").call(U0.positionText,Re.attr("x"),Re.attr("y"))})}return Me.classed("js-placeholder",y),Re&&!Re.empty()&&Re.classed("js-placeholder",H),c}lq.exports={draw:Y0e,SUBTITLE_PADDING_EM:Nx,SUBTITLE_PADDING_MATHJAX_EM:Fx}});var p1=U((GAe,cq)=>{"use strict";var G0e=Er(),U0e=l0().utcFormat,pt=ke(),V0e=pt.numberFormat,pl=Gr(),Po=pt.cleanNumber,X0e=pt.ms2DateTime,oq=pt.dateTime2ms,ml=pt.ensureNumber,sq=pt.isArrayOrTypedArray,Eo=(Et(),Fe(zt)),s1=Eo.FP_SAFE,Vi=Eo.BADNUM,W0e=Eo.LOG_CLIP,Z0e=Eo.ONEWEEK,u1=Eo.ONEDAY,f1=Eo.ONEHOUR,uq=Eo.ONEMIN,fq=Eo.ONESEC,c1=oa(),h1=(Ta(),Fe(wa)),v1=h1.HOUR_PATTERN,d1=h1.WEEKDAY_PATTERN;function hv(e){return Math.pow(10,e)}function Ix(e){return e!=null}cq.exports=function(r,t){t=t||{};var a=r._id||"x",n=a.charAt(0);function i(x,M){if(x>0)return Math.log(x)/Math.LN10;if(x<=0&&M&&r.range&&r.range.length===2){var k=r.range[0],A=r.range[1];return .5*(k+A-2*W0e*Math.abs(k-A))}else return Vi}function l(x,M,k,A){if((A||{}).msUTC&&pl(x))return+x;var S=oq(x,k||r.calendar);if(S===Vi)if(pl(x)){x=+x;var D=Math.floor(pt.mod(x+.05,1)*10),P=Math.round(x-D/10);S=oq(new Date(P))+D/10}else return Vi;return S}function o(x,M,k){return X0e(x,M,k||r.calendar)}function s(x){return r._categories[Math.round(x)]}function u(x){if(Ix(x)){if(r._categoriesMap===void 0&&(r._categoriesMap={}),r._categoriesMap[x]!==void 0)return r._categoriesMap[x];r._categories.push(typeof x=="number"?String(x):x);var M=r._categories.length-1;return r._categoriesMap[x]=M,M}return Vi}function f(x,M){for(var k=new Array(M),A=0;Ar.range[1]&&(k=!k);for(var A=k?-1:1,S=A*x,D=0,P=0;PF)D=P+1;else{D=S<(R+F)/2?P:P+1;break}}var N=r._B[D]||0;return isFinite(N)?p(x,r._m2,N):0},b=function(x){var M=r._rangebreaks.length;if(!M)return y(x,r._m,r._b);for(var k=0,A=0;Ar._rangebreaks[A].pmax&&(k=A+1);return y(x,r._m2,r._B[k])}}r.c2l=r.type==="log"?i:ml,r.l2c=r.type==="log"?hv:ml,r.l2p=m,r.p2l=b,r.c2p=r.type==="log"?function(x,M){return m(i(x,M))}:m,r.p2c=r.type==="log"?function(x){return hv(b(x))}:b,["linear","-"].indexOf(r.type)!==-1?(r.d2r=r.r2d=r.d2c=r.r2c=r.d2l=r.r2l=Po,r.c2d=r.c2r=r.l2d=r.l2r=ml,r.d2p=r.r2p=function(x){return r.l2p(Po(x))},r.p2d=r.p2r=b,r.cleanPos=ml):r.type==="log"?(r.d2r=r.d2l=function(x,M){return i(Po(x),M)},r.r2d=r.r2c=function(x){return hv(Po(x))},r.d2c=r.r2l=Po,r.c2d=r.l2r=ml,r.c2r=i,r.l2d=hv,r.d2p=function(x,M){return r.l2p(r.d2r(x,M))},r.p2d=function(x){return hv(b(x))},r.r2p=function(x){return r.l2p(Po(x))},r.p2r=b,r.cleanPos=ml):r.type==="date"?(r.d2r=r.r2d=pt.identity,r.d2c=r.r2c=r.d2l=r.r2l=l,r.c2d=r.c2r=r.l2d=r.l2r=o,r.d2p=r.r2p=function(x,M,k){return r.l2p(l(x,0,k))},r.p2d=r.p2r=function(x,M,k){return o(b(x),M,k)},r.cleanPos=function(x){return pt.cleanDate(x,Vi,r.calendar)}):r.type==="category"?(r.d2c=r.d2l=u,r.r2d=r.c2d=r.l2d=s,r.d2r=r.d2l_noadd=v,r.r2c=function(x){var M=h(x);return M!==void 0?M:r.fraction2r(.5)},r.l2r=r.c2r=ml,r.r2l=h,r.d2p=function(x){return r.l2p(r.r2c(x))},r.p2d=function(x){return s(b(x))},r.r2p=r.d2p,r.p2r=b,r.cleanPos=function(x){return typeof x=="string"&&x!==""?x:ml(x)}):r.type==="multicategory"&&(r.r2d=r.c2d=r.l2d=s,r.d2r=r.d2l_noadd=v,r.r2c=function(x){var M=v(x);return M!==void 0?M:r.fraction2r(.5)},r.r2c_just_indices=c,r.l2r=r.c2r=ml,r.r2l=v,r.d2p=function(x){return r.l2p(r.r2c(x))},r.p2d=function(x){return s(b(x))},r.r2p=r.d2p,r.p2r=b,r.cleanPos=function(x){return Array.isArray(x)||typeof x=="string"&&x!==""?x:ml(x)},r.setupMultiCategory=function(x){var M=r._traceIndices,k,A,S=r._matchGroup;if(S&&r._categories.length===0){for(var D in S)if(D!==a){var P=t[c1.id2name(D)];M=M.concat(P._traceIndices)}}var R=[[0,{}],[0,{}]],F=[];for(k=0;kP[1]&&(A[D?0:1]=k,S[1]=P[1]),S[0]>=S[1])if(M!==void 0){var R=P[0]+1;k!==void 0&&(R=Math.min(R,P[1])),A[D?0:1]=r.l2r(R)}else k!==void 0&&(A[D?1:0]=r.l2r(P[1]-1))}},r.cleanRange=function(x,M){r._cleanRange(x,M),r.limitRange(x)},r._cleanRange=function(x,M){M||(M={}),x||(x="range");var k=pt.nestedProperty(r,x).get(),A,S;if(r.type==="date"?S=pt.dfltRange(r.calendar):n==="y"?S=h1.DFLTRANGEY:r._name==="realaxis"?S=[0,1]:S=M.dfltRange||h1.DFLTRANGEX,S=S.slice(),(r.rangemode==="tozero"||r.rangemode==="nonnegative")&&(S[0]=0),!k||k.length!==2){pt.nestedProperty(r,x).set(S);return}var D=k[0]===null,P=k[1]===null;for(r.type==="date"&&!r.autorange&&(k[0]=pt.cleanDate(k[0],Vi,r.calendar),k[1]=pt.cleanDate(k[1],Vi,r.calendar)),A=0;A<2;A++)if(r.type==="date"){if(!pt.isDateTime(k[A],r.calendar)){r[x]=S;break}if(r.r2l(k[0])===r.r2l(k[1])){var R=pt.constrain(r.r2l(k[0]),pt.MIN_MS+1e3,pt.MAX_MS-1e3);k[0]=r.l2r(R-1e3),k[1]=r.l2r(R+1e3);break}}else{if(!pl(k[A]))if(!(D||P)&&pl(k[1-A]))k[A]=k[1-A]*(A?10:.1);else{r[x]=S;break}if(k[A]<-s1?k[A]=-s1:k[A]>s1&&(k[A]=s1),k[0]===k[1]){var F=Math.max(1,Math.abs(k[0]*1e-6));k[0]-=F,k[1]+=F}}},r.setScale=function(x){var M=t._size;if(r.overlaying){var k=c1.getFromId({_fullLayout:t},r.overlaying);r.domain=k.domain}var A=x&&r._r?"_r":"range",S=r.calendar;r.cleanRange(A);var D=r.r2l(r[A][0],S),P=r.r2l(r[A][1],S),R=n==="y";if(R?(r._offset=M.t+(1-r.domain[1])*M.h,r._length=M.h*(r.domain[1]-r.domain[0]),r._m=r._length/(D-P),r._b=-r._m*P):(r._offset=M.l+r.domain[0]*M.w,r._length=M.w*(r.domain[1]-r.domain[0]),r._m=r._length/(P-D),r._b=-r._m*D),r._rangebreaks=[],r._lBreaks=0,r._m2=0,r._B=[],r.rangebreaks){var F,N;if(r._rangebreaks=r.locateBreaks(Math.min(D,P),Math.max(D,P)),r._rangebreaks.length){for(F=0;FP&&(B=!B),B&&r._rangebreaks.reverse();var H=B?-1:1;for(r._m2=H*r._length/(Math.abs(P-D)-r._lBreaks),r._B.push(-r._m2*(R?P:D)),F=0;FS&&(S+=7,DS&&(S+=24,D=A&&D=A&&x=K.min&&($K.max&&(K.max=te),ie=!1)}ie&&P.push({min:$,max:te})}};for(k=0;k{"use strict";var vq=Gr(),Bx=ke(),J0e=(Et(),Fe(zt)).BADNUM,m1=Bx.isArrayOrTypedArray,$0e=Bx.isDateTime,K0e=Bx.cleanNumber,dq=Math.round;pq.exports=function(r,t,a){var n=r,i=a.noMultiCategory;if(m1(n)&&!n.length)return"-";if(!i&&tfe(n))return"multicategory";if(i&&Array.isArray(n[0])){for(var l=[],o=0;oi*2}function hq(e){return Math.max(1,(e-1)/1e3)}function rfe(e,r){for(var t=e.length,a=hq(t),n=0,i=0,l={},o=0;on*2}function tfe(e){return m1(e[0])&&m1(e[1])}});var pv=U((VAe,Tq)=>{"use strict";var afe=Er(),xq=Gr(),Ro=ke(),y1=(Et(),Fe(zt)).FP_SAFE,nfe=Ar(),ife=Zr(),bq=oa(),lfe=bq.getFromId,ofe=bq.isLinked;Tq.exports={applyAutorangeOptions:wq,getAutoRange:Ox,makePadFn:Yx,doAutoRange:ufe,findExtremes:ffe,concatExtremes:Vx};function Ox(e,r){var t,a,n=[],i=e._fullLayout,l=Yx(i,r,0),o=Yx(i,r,1),s=Vx(e,r),u=s.min,f=s.max;if(u.length===0||f.length===0)return Ro.simpleMap(r.range,r.r2l);var c=u[0].val,v=f[0].val;for(t=1;t0&&(P=w-l(k)-o(A),P>x?R/P>M&&(S=k,D=A,M=R/P):R/w>M&&(S={val:k.val,nopad:1},D={val:A.val,nopad:1},M=R/w));function F(Y,G){return Math.max(Y,o(G))}if(c===v){var N=c-1,B=c+1;if(b)if(c===0)n=[0,1];else{var H=(c>0?f:u).reduce(F,0),O=c/(1-Math.min(.5,H/w));n=c>0?[0,O]:[O,0]}else _?n=[Math.max(0,N),Math.max(1,B)]:n=[N,B]}else b?(S.val>=0&&(S={val:0,nopad:1}),D.val<=0&&(D={val:0,nopad:1})):_&&(S.val-M*l(S)<0&&(S={val:0,nopad:1}),D.val<=0&&(D={val:1,nopad:1})),M=(D.val-S.val-mq(r,k.val,A.val))/(w-l(S)-o(D)),n=[S.val-M*l(S),D.val+M*o(D)];return n=wq(n,r),r.limitRange&&r.limitRange(),p&&n.reverse(),Ro.simpleMap(n,r.l2r||Number)}function mq(e,r,t){var a=0;if(e.rangebreaks)for(var n=e.locateBreaks(r,t),i=0;i0?t.ppadplus:t.ppadminus)||t.ppad||0),k=x((e._m>0?t.ppadminus:t.ppadplus)||t.ppad||0),A=x(t.vpadplus||t.vpad),S=x(t.vpadminus||t.vpad);if(!u){if(_=1/0,w=-1/0,s)for(c=0;c0&&(_=v),v>w&&v-y1&&(_=v),v>w&&v=R;c--)P(c);return{min:a,max:n,opts:t}}function Gx(e,r,t,a){_q(e,r,t,a,cfe)}function Ux(e,r,t,a){_q(e,r,t,a,vfe)}function _q(e,r,t,a,n){for(var i=a.tozero,l=a.extrapad,o=!0,s=0;s=t&&(u.extrapad||!l)){o=!1;break}else n(r,u.val)&&u.pad<=t&&(l||!u.extrapad)&&(e.splice(s,1),s--)}if(o){var f=i&&r===0;e.push({val:r,pad:f?0:t,extrapad:f?!1:l})}}function gq(e){return xq(e)&&Math.abs(e)=r}function dfe(e,r){var t=r.autorangeoptions;return t&&t.minallowed!==void 0&&g1(r,t.minallowed,t.maxallowed)?t.minallowed:t&&t.clipmin!==void 0&&g1(r,t.clipmin,t.clipmax)?Math.max(e,r.d2l(t.clipmin)):e}function hfe(e,r){var t=r.autorangeoptions;return t&&t.maxallowed!==void 0&&g1(r,t.minallowed,t.maxallowed)?t.maxallowed:t&&t.clipmax!==void 0&&g1(r,t.clipmin,t.clipmax)?Math.min(e,r.d2l(t.clipmax)):e}function g1(e,r,t){return r!==void 0&&t!==void 0?(r=e.d2l(r),t=e.d2l(t),r=s&&(i=s,t=s),l<=s&&(l=s,a=s)}}return t=dfe(t,r),a=hfe(a,r),[t,a]}});var Kr=U((WAe,Xq)=>{"use strict";var hi=Er(),ra=Gr(),V0=Xt(),yv=Ar(),Cr=ke(),X0=Cr.strTranslate,Ks=ma(),pfe=dv(),gv=kr(),Wn=Zr(),mfe=Vn(),Mq=dx(),XAe=(Ta(),Fe(wa)),Ya=(Et(),Fe(zt)),yfe=Ya.ONEMAXYEAR,_1=Ya.ONEAVGYEAR,w1=Ya.ONEMINYEAR,gfe=Ya.ONEMAXQUARTER,Jx=Ya.ONEAVGQUARTER,T1=Ya.ONEMINQUARTER,xfe=Ya.ONEMAXMONTH,W0=Ya.ONEAVGMONTH,M1=Ya.ONEMINMONTH,Zn=Ya.ONEWEEK,ln=Ya.ONEDAY,zo=ln/2,gl=Ya.ONEHOUR,xv=Ya.ONEMIN,A1=Ya.ONESEC,bfe=Ya.ONEMILLI,_fe=Ya.ONEMICROSEC,js=Ya.MINUS_SIGN,C1=Ya.BADNUM,$x={K:"zeroline"},Kx={K:"gridline",L:"path"},jx={K:"minor-gridline",L:"path"},zq={K:"tick",L:"path"},Aq={K:"tick",L:"text"},kq={width:["x","r","l","xl","xr"],height:["y","t","b","yt","yb"],right:["r","xr"],left:["l","xl"],top:["t","yt"],bottom:["b","yb"]},L1=(Ha(),Fe(Ba)),mv=L1.MID_SHIFT,Qs=L1.CAP_SHIFT,bv=L1.LINE_SPACING,wfe=L1.OPPOSITE_SIDE,k1=3,He=Xq.exports={};He.setConvert=p1();var Tfe=Hx(),xl=oa(),Mfe=xl.idSort,Afe=xl.isLinked;He.id2name=xl.id2name;He.name2id=xl.name2id;He.cleanId=xl.cleanId;He.list=xl.list;He.listIds=xl.listIds;He.getFromId=xl.getFromId;He.getFromTrace=xl.getFromTrace;var Fq=pv();He.getAutoRange=Fq.getAutoRange;He.findExtremes=Fq.findExtremes;var kfe=1e-4;function tb(e){var r=(e[1]-e[0])*kfe;return[e[0]-r,e[1]+r]}function Cfe(e,r,t){if(![t,e,r].every(ra)||t===0)return e;let a=Math.round((e-r)/t),n=r+a*t;return e!==n&&Math.abs(e-n)v+" domain")),s=s.concat(i||[]),f.length>l?(Cr.warn("Array attribute "+u+" has more entries than expected, truncating to "+l),f=f.slice(0,l)):f.length2e-6||((t-e._forceTick0)/e._minDtick%1+1.000001)%1>2e-6)&&(e._minDtick=0))};He.saveRangeInitial=function(e,r){for(var t=He.list(e,"",!0),a=!1,n=0;nc*.3||u(a)||u(n))){var v=t.dtick/2;e+=e+vl){var o=Number(t.slice(1));i.exactYears>l&&o%12===0?e=He.tickIncrement(e,"M6","reverse")+ln*1.5:i.exactMonths>l?e=He.tickIncrement(e,"M1","reverse")+ln*15.5:e-=zo;var s=He.tickIncrement(e,t);if(s<=a)return s}return e}He.prepMinorTicks=function(e,r,t){var c,v;if(!((c=r.minor)!=null&&c.dtick)){delete e.dtick;var a=r.dtick&&ra(r._tmin),n;if(a){var i=He.tickIncrement(r._tmin,r.dtick,!0);n=[r._tmin,i*.99+r._tmin*.01]}else{var l=Cr.simpleMap(r.range,r.r2l);n=[l[0],.8*l[0]+.2*l[1]]}if(e.range=Cr.simpleMap(n,r.l2r),e._isMinor=!0,He.prepTicks(e,t),a){var o=ra(r.dtick),s=ra(e.dtick),u=o?r.dtick:+r.dtick.substring(1),f=s?e.dtick:+e.dtick.substring(1);o&&s?Xx(u,f)?u===2*Zn&&f===2*ln&&(e.dtick=Zn):u===2*Zn&&f===3*ln?e.dtick=Zn:u===Zn&&!(r._input.minor||{}).nticks?e.dtick=ln:Sq(u/f,2.5)?e.dtick=u/2:e.dtick=u:String(r.dtick).charAt(0)==="M"?s?e.dtick="M1":Xx(u,f)?u>=12&&f===2&&(e.dtick="M3"):e.dtick=r.dtick:String(e.dtick).charAt(0)==="L"?String(r.dtick).charAt(0)==="L"?Xx(u,f)||(e.dtick=Sq(u/f,2.5)?r.dtick/2:r.dtick):e.dtick="D1":e.dtick==="D2"&&+r.dtick>1&&(e.dtick=1)}e.range=r.range}((v=r.minor)==null?void 0:v._tick0Init)===void 0&&(e.tick0=r.tick0)};function Xx(e,r){return Math.abs((e/r+.5)%1-.5)<.001}function Sq(e,r){return Math.abs(e/r-1)<.001}He.prepTicks=function(e,r){var t=Cr.simpleMap(e.range,e.r2l,void 0,void 0,r);if(e.tickmode==="auto"||!e.dtick){var a=e.nticks,n;a||(e.type==="category"||e.type==="multicategory"?(n=e.tickfont?Cr.bigFont(e.tickfont.size||12):15,a=e._length/n):(n=e._id.charAt(0)==="y"?40:80,a=Cr.constrain(e._length/n,4,9)+1),e._name==="radialaxis"&&(a*=2)),e.minor&&e.minor.tickmode!=="array"||e.tickmode==="array"&&(a*=100),e._roughDTick=Math.abs(t[1]-t[0])/a,He.autoTicks(e,e._roughDTick),e._minDtick>0&&e.dtick0?(i=a-1,l=a):(i=a,l=a);var o=e[i].value,s=e[l].value,u=Math.abs(s-o),f=t||u,c=0;f>=w1?u>=w1&&u<=yfe?c=u:c=_1:t===Jx&&f>=T1?u>=T1&&u<=gfe?c=u:c=Jx:f>=M1?u>=M1&&u<=xfe?c=u:c=W0:t===Zn&&f>=Zn?c=Zn:f>=ln?c=ln:t===zo&&f>=zo?c=zo:t===gl&&f>=gl&&(c=gl);var v;c>=u&&(c=u,v=!0);var h=n+c;if(r.rangebreaks&&c>0){for(var p=84,y=0,m=0;mZn&&(c=u)}(c>0||a===0)&&(e[a].periodX=n+c/2)}}He.calcTicks=function(r,t){for(var a=r.type,n=r.calendar,i=r.ticklabelstep,l=r.ticklabelmode==="period",o=r.range[0]>r.range[1],s=!r.ticklabelindex||Cr.isArrayOrTypedArray(r.ticklabelindex)?r.ticklabelindex:[r.ticklabelindex],u=Cr.simpleMap(r.range,r.r2l,void 0,void 0,t),f=u[1]=(x?0:1);M--){var k=!M;M?(r._dtickInit=r.dtick,r._tick0Init=r.tick0):x&&(r.minor._dtickInit=r.minor.dtick,r.minor._tick0Init=r.minor.tick0);var A=M?r:Cr.extendFlat({},r,x?r.minor:{minor:{}});if(k?He.prepMinorTicks(A,r,t):He.prepTicks(A,t),A.tickmode==="array"){M?(m=[],p=qq(r,!k)):(b=[],y=qq(r,!k));continue}if(A.tickmode==="sync"){m=[],p=Efe(r);continue}var S=tb(u),D=S[0],P=S[1],R=ra(A.dtick),F=a==="log"&&!(R||A.dtick.charAt(0)==="L"),N=He.tickFirst(A,t);if(M){if(r._tmin=N,N=P:H<=P;H=He.tickIncrement(H,G,f,n)){if(M&&O++,A.rangebreaks&&!f){if(H=v)break}if(m.length>h||H===B)break;B=H;var W={value:Cfe(H,V,G)};M?(H===N&&(W.first=!0),F&&H!==(H|0)&&(W.simpleLabel=!0),i>1&&O%i&&(W.skipLabel=!0),m.push(W)):(W.minor=!0,b.push(W))}}if(!b||b.length<3)s=!1;else{var X=(b[2].value-b[1].value)*(o?-1:1);nce(X,r.tickformat)||(s=!1,b=b.slice(1))}if(!s)_=m;else{var $=m.concat(b);l&&m.length&&($=$.slice(1)),$=$.sort(function(Ze,Ae){return Ze.value-Ae.value}).filter(function(Ze,Ae,ze){return Ae===0||Ze.value!==ze[Ae-1].value});var te=$.map(function(Ze,Ae){return Ze.minor===void 0&&!Ze.skipLabel?Ae:null}).filter(function(Ze){return Ze!==null});te.forEach(function(Ze){s.map(function(Ae){var ze=Ze+Ae;ze>=0&&ze<$.length&&Cr.pushUnique(_,$[ze])})}),m.forEach(function(Ze){Ze.skipLabel=_.indexOf(Ze)===-1})}if(w){var ie=r.minor.ticks==="inside"&&r.ticks==="outside"||r.minor.ticks==="outside"&&r.ticks==="inside";if(!ie){for(var ve=m.map(function(Ze){return Ze.value}),K=[],he=0;he-1;Me--){if(m[Me].drop){m.splice(Me,1);continue}m[Me].value=Zx(m[Me].value,r);var Le=r.c2p(m[Me].value);(Re?Pe>Le-xe:Pev||Qev&&(ze.periodX=v),Qen&&pn&&m_1)r/=_1,a=n(10),e.dtick="M"+12*yl(r,a,x1);else if(i>W0)r/=W0,e.dtick="M"+yl(r,1,Dq);else if(i>ln){if(e.dtick=yl(r,ln,e._hasDayOfWeekBreaks?[1,2,7,14]:Rfe),!t){var l=He.getTickFormat(e),o=e.ticklabelmode==="period";o&&(e._rawTick0=e.tick0),/%[uVW]/.test(l)?e.tick0=Cr.dateTick0(e.calendar,2):e.tick0=Cr.dateTick0(e.calendar,1),o&&(e._dowTick0=e.tick0)}}else i>gl?e.dtick=yl(r,gl,Dq):i>xv?e.dtick=yl(r,xv,Pq):i>A1?e.dtick=yl(r,A1,Pq):(a=n(10),e.dtick=yl(r,a,x1))}else if(e.type==="log"){e.tick0=0;var s=Cr.simpleMap(e.range,e.r2l);if(e._isMinor&&(r*=1.5),r>.7)e.dtick=Math.ceil(r);else if(Math.abs(s[1]-s[0])<1){var u=1.5*Math.abs((s[1]-s[0])/r);r=Math.abs(Math.pow(10,s[1])-Math.pow(10,s[0]))/u,a=n(10),e.dtick="L"+yl(r,a,x1)}else e.dtick=r>.3?"D2":"D1"}else e.type==="category"||e.type==="multicategory"?(e.tick0=0,e.dtick=Math.ceil(Math.max(r,1))):lb(e)?(e.tick0=0,a=1,e.dtick=yl(r,a,zfe)):(e.tick0=0,a=n(10),e.dtick=yl(r,a,x1));if(e.dtick===0&&(e.dtick=1),!ra(e.dtick)&&typeof e.dtick!="string"){var f=e.dtick;throw e.dtick=1,"ax.dtick error: "+String(f)}};function Hq(e){var r=e.dtick;if(e._tickexponent=0,!ra(r)&&typeof r!="string"&&(r=1),(e.type==="category"||e.type==="multicategory")&&(e._tickround=null),e.type==="date"){var t=e.r2l(e.tick0),a=e.l2r(t).replace(/(^-|i)/g,""),n=a.length;if(String(r).charAt(0)==="M")n>10||a.slice(5)!=="01-01"?e._tickround="d":e._tickround=+r.slice(1)%12===0?"y":"m";else if(r>=ln&&n<=10||r>=ln*15)e._tickround="d";else if(r>=xv&&n<=16||r>=gl)e._tickround="M";else if(r>=A1&&n<=19||r>=xv)e._tickround="S";else{var i=e.l2r(t+r).replace(/^-/,"").length;e._tickround=Math.max(n,i)-20,e._tickround<0&&(e._tickround=4)}}else if(ra(r)||r.charAt(0)==="L"){var l=e.range.map(e.r2d||Number);ra(r)||(r=Number(r.slice(1))),e._tickround=2-Math.floor(Math.log(r)/Math.LN10+.01);var o=Math.max(Math.abs(l[0]),Math.abs(l[1])),s=Math.floor(Math.log(o)/Math.LN10+.01),u=e.minexponent===void 0?3:e.minexponent;Math.abs(s)>u&&(Z0(e.exponentformat)&&e.exponentformat!=="SI extended"&&!ab(s)||Z0(e.exponentformat)&&e.exponentformat==="SI extended"&&!nb(s)?e._tickexponent=3*Math.round((s-1)/3):e._tickexponent=s)}else e._tickround=null}He.tickIncrement=function(e,r,t,a){var n=t?-1:1;if(ra(r))return Cr.increment(e,n*r);var i=r.charAt(0),l=n*Number(r.slice(1));if(i==="M")return Cr.incrementMonth(e,l,a);if(i==="L")return Math.log(Math.pow(10,e)+l)/Math.LN10;if(i==="D"){var o=r==="D2"?Bq:Iq,s=e+n*.01,u=Cr.roundUp(Cr.mod(s,1),o,t);return Math.floor(s)+Math.log(hi.round(Math.pow(10,u),1))/Math.LN10}throw"unrecognized dtick "+String(r)};He.tickFirst=function(e,r){var t=e.r2l||Number,a=Cr.simpleMap(e.range,t,void 0,void 0,r),n=a[1]=0&&x<=e._length?w:null};if(s&&Cr.isArrayOrTypedArray(e.ticktext)){var p=Cr.simpleMap(e.range,e.r2l),y=(Math.abs(p[1]-p[0])-(e._lBreaks||0))/1e4;for(v=0;v"+o;else{var u=wv(e),f=e._trueSide||e.side;(!u&&f==="top"||u&&f==="bottom")&&(l+="
")}r.text=l}function Nfe(e,r,t,a,n){var i=e.dtick,l=r.x,o=e.tickformat,s=typeof i=="string"&&i.charAt(0);if(n==="never"&&(n=""),a&&s!=="L"&&(i="L3",s="L"),o||s==="L")r.text=_v(Math.pow(10,l),e,n,a);else if(ra(i)||s==="D"&&(e.minorloglabels==="complete"||Cr.mod(l+.01,1)<.1)){var u;e.minorloglabels==="complete"&&!(Cr.mod(l+.01,1)<.1)&&(u=!0,r.fontSize*=.75);var f=Math.pow(10,l).toExponential(0),c=f.split("e"),v=+c[1],h=Math.abs(v),p=e.exponentformat;p==="power"||Z0(p)&&p!=="SI extended"&&ab(v)||Z0(p)&&p==="SI extended"&&nb(v)?(r.text=c[0],h>0&&(r.text+="x10"),r.text==="1x10"&&(r.text="10"),v!==0&&v!==1&&(r.text+=""+(v>0?"":js)+h+""),r.fontSize*=1.25):(p==="e"||p==="E")&&h>2?r.text=c[0]+p+(v>0?"+":js)+h:(r.text=_v(Math.pow(10,l),e,"","fakehover"),i==="D1"&&e._id.charAt(0)==="y"&&(r.dy-=r.fontSize/6))}else if(s==="D")r.text=e.minorloglabels==="none"?"":String(Math.round(Math.pow(10,Cr.mod(l,1)))),r.fontSize*=.75;else throw"unrecognized dtick "+String(i);if(e.dtick==="D1"){var y=String(r.text).charAt(0);(y==="0"||y==="1")&&(e._id.charAt(0)==="y"?r.dx-=r.fontSize/4:(r.dy+=r.fontSize/2,r.dx+=(e.range[1]>e.range[0]?1:-1)*r.fontSize*(l<0?.5:.25)))}}function Ife(e,r){var t=e._categories[Math.round(r.x)];t===void 0&&(t=""),r.text=String(t)}function Bfe(e,r,t){var a=Math.round(r.x),n=e._categories[a]||[],i=n[1]===void 0?"":String(n[1]),l=n[0]===void 0?"":String(n[0]);t?r.text=l+" - "+i:(r.text=i,r.text2=l)}function Hfe(e,r,t,a,n){n==="never"?n="":e.showexponent==="all"&&Math.abs(r.x/e.dtick)<1e-6&&(n="hide"),r.text=_v(r.x,e,n,a)}function Ofe(e,r,t,a,n){if(e.thetaunit==="radians"&&!t){var i=r.x/180;if(i===0)r.text="0";else{var l=Yfe(i);if(l[1]>=100)r.text=_v(Cr.deg2rad(r.x),e,n,a);else{var o=r.x<0;l[1]===1?l[0]===1?r.text="\u03C0":r.text=l[0]+"\u03C0":r.text=["",l[0],"","\u2044","",l[1],"","\u03C0"].join(""),o&&(r.text=js+r.text)}}}else r.text=_v(r.x,e,n,a)}function Yfe(e){function r(o,s){return Math.abs(o-s)<=1e-6}function t(o,s){return r(s,0)?o:t(s,o%s)}function a(o){for(var s=1;!r(Math.round(o*s)/s,o);)s*=10;return s}var n=a(e),i=e*n,l=Math.abs(t(i,n));return[Math.round(i/l),Math.round(n/l)]}var Yq=["f","p","n","\u03BC","m","","k","M","G","T"],Gfe=["q","r","y","z","a",...Yq,"P","E","Z","Y","R","Q"],Z0=e=>["SI","SI extended","B"].includes(e);function ab(e){return e>14||e<-15}function nb(e){return e>32||e<-30}function Ufe(e,r){return Z0(r)?!!(r==="SI extended"&&nb(e)||r!=="SI extended"&&ab(e)):!1}function _v(e,r,t,a){var n=e<0,i=r._tickround,l=t||r.exponentformat||"B",o=r._tickexponent,s=He.getTickFormat(r),u=r.separatethousands;if(a){var f={exponentformat:l,minexponent:r.minexponent,dtick:r.showexponent==="none"?r.dtick:ra(e)&&Math.abs(e)||1,range:r.showexponent==="none"?r.range.map(r.r2d):[0,e||1]};Hq(f),i=(Number(f._tickround)||0)+4,o=f._tickexponent,r.hoverformat&&(s=r.hoverformat)}if(s)return r._numFormat(s)(e).replace(/-/g,js);l==="none"&&(o=0),e=Math.abs(e);let c=Math.pow(10,-i)/2;if(e"+v+"":l==="B"&&o===9?e+="B":Z0(l)&&(e+=l==="SI extended"?Gfe[o/3+10]:Yq[o/3+5])}return n?js+e:e}He.getTickFormat=function(e){var r;function t(s){return typeof s!="string"?s:Number(s.replace("M",""))*W0}function a(s,u){var f=["L","D"];if(typeof s==typeof u){if(typeof s=="number")return s-u;var c=f.indexOf(s.charAt(0)),v=f.indexOf(u.charAt(0));return c===v?Number(s.replace(/(L|D)/g,""))-Number(u.replace(/(L|D)/g,"")):c-v}else return typeof s=="number"?1:-1}function n(s,u,f){var c=f||function(p){return p},v=u[0],h=u[1];return(!v&&typeof v!="number"||c(v)<=c(s))&&(!h&&typeof h!="number"||c(h)>=c(s))}function i(s,u){var f=u[0]===null,c=u[1]===null,v=a(s,u[0])>=0,h=a(s,u[1])<=0;return(f||v)&&(c||h)}var l,o;if(e.tickformatstops&&e.tickformatstops.length>0)switch(e.type){case"date":case"linear":{for(r=0;r=0&&n.unshift(n.splice(f,1).shift())}});var o={false:{left:0,right:0}};return Cr.syncOrAsync(n.map(function(s){return function(){if(s){var u=He.getFromId(e,s);t||(t={}),t.axShifts=o,t.overlayingShiftedAx=l;var f=He.drawOne(e,u,t);return u._shiftPusher&&rb(u,u._fullDepth||0,o,!0),u._r=u.range.slice(),u._rl=Cr.simpleMap(u._r,u.r2l),f}}}))};He.drawOne=function(e,r,t){t=t||{};var a=t.axShifts||{},n=t.overlayingShiftedAx||[],i,l,o;r.setScale();var s=e._fullLayout,u=r._id,f=u.charAt(0),c=He.counterLetter(u),v=s._plots[r._mainSubplot],h=r.zerolinelayer==="above traces";if(!v)return;if(r._shiftPusher=r.autoshift||n.indexOf(r._id)!==-1||n.indexOf(r.overlaying)!==-1,r._shiftPusher&r.anchor==="free"){var p=r.linewidth/2||0;r.ticks==="inside"&&(p+=r.ticklen),rb(r,p,a,!0),rb(r,r.shift||0,a,!1)}(t.skipTitle!==!0||r._shift===void 0)&&(r._shift=ace(r,a));var y=v[f+"axislayer"],m=r._mainLinePosition,b=m+=r._shift,_=r._mainMirrorPosition,w=r._vals=He.calcTicks(r),x=[r.mirror,b,_].join("_");for(i=0;i0?Ae.bottom-je:0,Ze))));var ye=0,Xe=0;if(r._shiftPusher&&(ye=Math.max(Ze,Ae.height>0?Ce==="l"?je-Ae.left:Ae.right-je:0),r.title.text!==s._dfltTitle[f]&&(Xe=(r._titleStandoff||0)+(r._titleScoot||0),Ce==="l"&&(Xe+=Rq(r))),r._fullDepth=Math.max(ye,Xe)),r.automargin){ze={x:0,y:0,r:0,l:0,t:0,b:0};var hr=[0,1],De=typeof r._shift=="number"?r._shift:0;if(f==="x"){if(Ce==="b"?ze[Ce]=r._depth:(ze[Ce]=r._depth=Math.max(Ae.width>0?je-Ae.top:0,Ze),hr.reverse()),Ae.width>0){var pe=Ae.right-(r._offset+r._length);pe>0&&(ze.xr=1,ze.r=pe);var Te=r._offset-Ae.left;Te>0&&(ze.xl=0,ze.l=Te)}}else if(Ce==="l"?(r._depth=Math.max(Ae.height>0?je-Ae.left:0,Ze),ze[Ce]=r._depth-De):(r._depth=Math.max(Ae.height>0?Ae.right-je:0,Ze),ze[Ce]=r._depth+De,hr.reverse()),Ae.height>0){var Oe=Ae.bottom-(r._offset+r._length);Oe>0&&(ze.yb=0,ze.b=Oe);var Je=r._offset-Ae.top;Je>0&&(ze.yt=1,ze.t=Je)}ze[c]=r.anchor==="free"?r.position:r._anchorAxis.domain[hr[0]],r.title.text!==s._dfltTitle[f]&&(ze[Ce]+=Rq(r)+(r.title.standoff||0)),r.mirror&&r.anchor!=="free"&&(Qe={x:0,y:0,r:0,l:0,t:0,b:0},Qe[We]=r.linewidth,r.mirror&&r.mirror!==!0&&(Qe[We]+=Ze),r.mirror===!0||r.mirror==="ticks"?Qe[c]=r._anchorAxis.domain[hr[1]]:(r.mirror==="all"||r.mirror==="allticks")&&(Qe[c]=[r._counterDomainMin,r._counterDomainMax][hr[1]]))}Ue&&(re=yv.getComponentMethod("rangeslider","autoMarginOpts")(e,r)),typeof r.automargin=="string"&&(Eq(ze,r.automargin),Eq(Qe,r.automargin)),V0.autoMargin(e,ib(r),ze),V0.autoMargin(e,Uq(r),Qe),V0.autoMargin(e,Vq(r),re)}),Cr.syncOrAsync(qe)}};function Eq(e,r){if(e){var t=Object.keys(kq).reduce(function(a,n){return r.indexOf(n)!==-1&&kq[n].forEach(function(i){a[i]=1}),a},{});Object.keys(e).forEach(function(a){t[a]||(a.length===1?e[a]=0:delete e[a])})}}function Vfe(e,r){var t=[],a,n=function(i,l){var o=i.xbnd[l];o!==null&&t.push(Cr.extendFlat({},i,{x:o}))};if(r.length){for(a=0;ae.range[1],o=e.ticklabelposition&&e.ticklabelposition.indexOf("inside")!==-1,s=!o;if(t){var u=l?-1:1;t=t*u}if(a){var f=e.side,c=o&&(f==="top"||f==="left")||s&&(f==="bottom"||f==="right")?1:-1;a=a*c}return e._id.charAt(0)==="x"?function(v){return X0(n+e._offset+e.l2p(Qx(v))+t,i+a)}:function(v){return X0(i+a,n+e._offset+e.l2p(Qx(v))+t)}};function Qx(e){return e.periodX!==void 0?e.periodX:e.x}function Jfe(e){var r=e.ticklabelposition||"",t=e.tickson||"",a=function(p){return r.indexOf(p)!==-1},n=a("top"),i=a("left"),l=a("right"),o=a("bottom"),s=a("inside"),u=t!=="boundaries"&&(o||i||n||l);if(!u&&!s)return[0,0];var f=e.side,c=u?(e.tickwidth||0)/2:0,v=k1,h=e.tickfont?e.tickfont.size:12;return(o||n)&&(c+=h*Qs,v+=(e.linewidth||0)/2),(i||l)&&(c+=(e.linewidth||0)/2,v+=k1),s&&f==="top"&&(v-=h*(1-Qs)),(i||n)&&(c=-c),(f==="bottom"||f==="right")&&(v=-v),[u?c:0,s?v:0]}He.makeTickPath=function(e,r,t,a){a||(a={});var n=a.minor;if(n&&!e.minor)return"";var i=a.len!==void 0?a.len:n?e.minor.ticklen:e.ticklen,l=e._id.charAt(0),o=(e.linewidth||1)/2;return l==="x"?"M0,"+(r+o*t)+"v"+i*t:"M"+(r+o*t)+",0h"+i*t};He.makeLabelFns=function(e,r,t){var a=e.ticklabelposition||"",n=e.tickson||"",i=function(N){return a.indexOf(N)!==-1},l=i("top"),o=i("left"),s=i("right"),u=i("bottom"),f=n!=="boundaries"&&(u||o||l||s),c=i("inside"),v=a==="inside"&&e.ticks==="inside"||!c&&e.ticks==="outside"&&n!=="boundaries",h=0,p=0,y=v?e.ticklen:0;if(c?y*=-1:f&&(y=0),v&&(h+=y,t)){var m=Cr.deg2rad(t);h=y*Math.cos(m)+1,p=y*Math.sin(m)}e.showticklabels&&(v||e.showline)&&(h+=.2*e.tickfont.size),h+=(e.linewidth||1)/2*(c?-1:1);var b={labelStandoff:h,labelShift:p},_,w,x,M,k=0,A=e.side,S=e._id.charAt(0),D=e.tickangle,P;if(S==="x")P=!c&&A==="bottom"||c&&A==="top",M=P?1:-1,c&&(M*=-1),_=p*M,w=r+h*M,x=P?1:-.2,Math.abs(D)===90&&(c?x+=mv:D===-90&&A==="bottom"?x=Qs:D===90&&A==="top"?x=mv:x=.5,k=mv/2*(D/90)),b.xFn=function(N){return N.dx+_+k*N.fontSize},b.yFn=function(N){return N.dy+w+N.fontSize*x},b.anchorFn=function(N,B){if(f){if(o)return"end";if(s)return"start"}return!ra(B)||B===0||B===180?"middle":B*M<0!==c?"end":"start"},b.heightFn=function(N,B,H){return B<-60||B>60?-.5*H:e.side==="top"!==c?-H:0};else if(S==="y"){if(P=!c&&A==="left"||c&&A==="right",M=P?1:-1,c&&(M*=-1),_=h,w=p*M,x=0,!c&&Math.abs(D)===90&&(D===-90&&A==="left"||D===90&&A==="right"?x=Qs:x=.5),c){var R=ra(D)?+D:0;if(R!==0){var F=Cr.deg2rad(R);k=Math.abs(Math.sin(F))*Qs*M,x=0}}b.xFn=function(N){return N.dx+r-(_+N.fontSize*x)*M+k*N.fontSize},b.yFn=function(N){return N.dy+w+N.fontSize*mv},b.anchorFn=function(N,B){return ra(B)&&Math.abs(B)===90?"middle":P?"end":"start"},b.heightFn=function(N,B,H){return e.side==="right"&&(B*=-1),B<-30?-H:B<30?-.5*H:0}}return b};function S1(e){return[e.text,e.x,e.axInfo,e.font,e.fontSize,e.fontColor].join("_")}He.drawTicks=function(e,r,t){t=t||{};var a=r._id+"tick",n=[].concat(r.minor&&r.minor.ticks?t.vals.filter(function(l){return l.minor&&!l.noTick}):[]).concat(r.ticks?t.vals.filter(function(l){return!l.minor&&!l.noTick}):[]),i=t.layer.selectAll("path."+a).data(n,S1);i.exit().remove(),i.enter().append("path").classed(a,1).classed("ticks",1).classed("crisp",t.crisp!==!1).each(function(l){return gv.stroke(hi.select(this),l.minor?r.minor.tickcolor:r.tickcolor)}).style("stroke-width",function(l){return Wn.crispRound(e,l.minor?r.minor.tickwidth:r.tickwidth,1)+"px"}).attr("d",t.path).style("display",null),q1(r,[zq]),i.attr("transform",t.transFn)};He.drawGrid=function(e,r,t){if(t=t||{},r.tickmode!=="sync"){var a=r._id+"grid",n=r.minor&&r.minor.showgrid,i=n?t.vals.filter(function(b){return b.minor}):[],l=r.showgrid?t.vals.filter(function(b){return!b.minor}):[],o=t.counterAxis;if(o&&He.shouldShowZeroLine(e,r,o))for(var s=r.tickmode==="array",u=0;u=0;p--){var y=p?v:h;if(y){var m=y.selectAll("path."+a).data(p?l:i,S1);m.exit().remove(),m.enter().append("path").classed(a,1).classed("crisp",t.crisp!==!1),m.attr("transform",t.transFn).attr("d",t.path).each(function(b){return gv.stroke(hi.select(this),b.minor?r.minor.gridcolor:r.gridcolor||"#ddd")}).style("stroke-dasharray",function(b){return Wn.dashStyle(b.minor?r.minor.griddash:r.griddash,b.minor?r.minor.gridwidth:r.gridwidth)}).style("stroke-width",function(b){return(b.minor?c:r._gw)+"px"}).style("display",null),typeof t.path=="function"&&m.attr("d",t.path)}}q1(r,[Kx,jx])}};He.drawZeroLine=function(e,r,t){t=t||t;var a=r._id+"zl",n=He.shouldShowZeroLine(e,r,t.counterAxis),i=t.layer.selectAll("path."+a).data(n?[{x:0,id:r._id}]:[]);i.exit().remove(),i.enter().append("path").classed(a,1).classed("zl",1).classed("crisp",t.crisp!==!1).each(function(){t.layer.selectAll("path").sort(function(l,o){return Mfe(l.id,o.id)})}),i.attr("transform",t.transFn).attr("d",t.path).call(gv.stroke,r.zerolinecolor||gv.defaultLine).style("stroke-width",Wn.crispRound(e,r.zerolinewidth,r._gw||1)+"px").style("display",null),q1(r,[$x])};He.drawLabels=function(e,r,t){t=t||{};var a=e._fullLayout,n=r._id,i=r.zerolinelayer==="above traces",l=t.cls||n+"tick",o=t.vals.filter(function(V){return V.text}),s=t.labelFns,u=t.secondary?0:r.tickangle,f=(r._prevTickAngles||{})[l],c=t.layer.selectAll("g."+l).data(r.showticklabels?o:[],S1),v=[];c.enter().append("g").classed(l,1).append("text").attr("text-anchor","middle").each(function(V){var W=hi.select(this),X=e._promises.length;W.call(Ks.positionText,s.xFn(V),s.yFn(V)).call(Wn.font,{family:V.font,size:V.fontSize,color:V.fontColor,weight:V.fontWeight,style:V.fontStyle,variant:V.fontVariant,textcase:V.fontTextcase,lineposition:V.fontLineposition,shadow:V.fontShadow}).text(V.text).call(Ks.convertToTspans,e),e._promises[X]?v.push(e._promises.pop().then(function(){h(W,u)})):h(W,u)}),q1(r,[Aq]),c.exit().remove(),t.repositionOnUpdate&&c.each(function(V){hi.select(this).select("text").call(Ks.positionText,s.xFn(V),s.yFn(V))});function h(V,W){V.each(function(X){var $=hi.select(this),te=$.select(".text-math-group"),ie=s.anchorFn(X,W),ve=t.transFn.call($.node(),X)+(ra(W)&&+W!=0?" rotate("+W+","+s.xFn(X)+","+(s.yFn(X)-X.fontSize/2)+")":""),K=Ks.lineCount($),he=bv*X.fontSize,le=s.heightFn(X,ra(W)?+W:0,(K-1)*he);if(le&&(ve+=X0(0,le)),te.empty()){var _e=$.select("text");_e.attr({transform:ve,"text-anchor":ie}),_e.style("display",null),r._adjustTickLabelsOverflow&&r._adjustTickLabelsOverflow()}else{var me=Wn.bBox(te.node()).width,ce=me*{end:-.5,start:.5}[ie];te.attr("transform",ve+X0(ce,0))}})}r._adjustTickLabelsOverflow=function(){var V=r.ticklabeloverflow;if(!(!V||V==="allow")){var W=V.indexOf("hide")!==-1,X=r._id.charAt(0)==="x",$=0,te=X?e._fullLayout.width:e._fullLayout.height;if(V.indexOf("domain")!==-1){var ie=Cr.simpleMap(r.range,r.r2l);$=r.l2p(ie[0])+r._offset,te=r.l2p(ie[1])+r._offset}var ve=Math.min($,te),K=Math.max($,te),he=r.side,le=1/0,_e=-1/0;c.each(function(Re){var xe=hi.select(this),Pe=xe.select(".text-math-group");if(Pe.empty()){var Le=Wn.bBox(xe.node()),qe=0;X?(Le.right>K||Le.leftK||Le.top+(r.tickangle?0:Re.fontSize/4)r["_visibleLabelMin_"+ie._id]?xe.style("display","none"):K.K==="tick"&&!ve&&xe.node().style.display!=="none"&&xe.style("display",null)})})})})},h(c,f+1?f:u);function p(){return v.length&&Promise.all(v)}var y=null;function m(){if(h(c,u),o.length&&r.autotickangles&&(r.type!=="log"||String(r.dtick).charAt(0)!=="D")){y=r.autotickangles[0];var V=0,W=[],X,$=1;c.each(function(ze){V=Math.max(V,ze.fontSize);var Qe=r.l2p(ze.x),re=eb(this),ye=Wn.bBox(re.node());$=Math.max($,Ks.lineCount(re)),W.push({top:0,bottom:10,height:10,left:Qe-ye.width/2,right:Qe+ye.width/2+2,width:ye.width+2})});var te=(r.tickson==="boundaries"||r.showdividers)&&!t.secondary,ie=o.length,ve=Math.abs((o[ie-1].x-o[0].x)*r._m)/(ie-1),K=te?ve/2:ve,he=te?r.ticklen:V*1.25*$,le=Math.sqrt(Math.pow(K,2)+Math.pow(he,2)),_e=K/le,me=r.autotickangles.map(function(ze){return ze*Math.PI/180}),ce=me.find(function(ze){return Math.abs(Math.cos(ze))<=_e});ce===void 0&&(ce=me.reduce(function(ze,Qe){return Math.abs(Math.cos(ze))O*H&&(F=H,D[S]=P[S]=N[S])}var Y=Math.abs(F-R);Y-M>0?(Y-=M,M*=1+M/Y):M=0,r._id.charAt(0)!=="y"&&(M=-M),D[A]=w.p2r(w.r2p(P[A])+k*M),w.autorange==="min"||w.autorange==="max reversed"?(D[0]=null,w._rangeInitial0=void 0,w._rangeInitial1=void 0):(w.autorange==="max"||w.autorange==="min reversed")&&(D[1]=null,w._rangeInitial0=void 0,w._rangeInitial1=void 0),a._insideTickLabelsUpdaterange[w._name+".range"]=D}var G=Cr.syncOrAsync(b);return G&&G.then&&e._promises.push(G),G};function $fe(e,r,t){var a=r._id+"divider",n=t.vals,i=t.layer.selectAll("path."+a).data(n,S1);i.exit().remove(),i.enter().insert("path",":first-child").classed(a,1).classed("crisp",1).call(gv.stroke,r.dividercolor).style("stroke-width",Wn.crispRound(e,r.dividerwidth,1)+"px"),i.attr("transform",t.transFn).attr("d",t.path)}He.getPxPosition=function(e,r){var t=e._fullLayout._size,a=r._id.charAt(0),n=r.side,i;if(r.anchor!=="free"?i=r._anchorAxis:a==="x"?i={_offset:t.t+(1-(r.position||0))*t.h,_length:0}:a==="y"&&(i={_offset:t.l+(r.position||0)*t.w+r._shift,_length:0}),n==="top"||n==="left")return i._offset;if(n==="bottom"||n==="right")return i._offset+i._length};function Rq(e){var r=e.title.font.size,t=(e.title.text.match(Ks.BR_TAG_ALL)||[]).length;return e.title.hasOwnProperty("standoff")?r*(Qs+t*bv):t?r*(t+1)*bv:r}function Kfe(e,r){var t=e._fullLayout,a=r._id,n=a.charAt(0),i=r.title.font.size,l,o=(r.title.text.match(Ks.BR_TAG_ALL)||[]).length;if(r.title.hasOwnProperty("standoff"))r.side==="bottom"||r.side==="right"?l=r._depth+r.title.standoff+i*Qs:(r.side==="top"||r.side==="left")&&(l=r._depth+r.title.standoff+i*(mv+o*bv));else{var s=wv(r);if(r.type==="multicategory")l=r._depth;else{var u=1.5*i;s&&(u=.5*i,r.ticks==="outside"&&(u+=r.ticklen)),l=10+u+(r.linewidth?r.linewidth-1:0)}s||(n==="x"?l+=r.side==="top"?i*(r.showticklabels?1:0):i*(r.showticklabels?1.5:.5):l+=r.side==="right"?i*(r.showticklabels?1:.5):i*(r.showticklabels?.5:0))}var f=He.getPxPosition(e,r),c,v,h;n==="x"?(v=r._offset+r._length/2,h=r.side==="top"?f-l:f+l):(h=r._offset+r._length/2,v=r.side==="right"?f+l:f-l,c={rotate:"-90",offset:0});var p;if(r.type!=="multicategory"){var y=r._selections[r._id+"tick"];if(p={selection:y,side:r.side},y&&y.node()&&y.node().parentNode){var m=Wn.getTranslate(y.node().parentNode);p.offsetLeft=m.x,p.offsetTop=m.y}r.title.hasOwnProperty("standoff")&&(p.pad=0)}return r._titleStandoff=l,pfe.draw(e,a+"title",{propContainer:r,propName:r._name+".title.text",placeholder:t._dfltTitle[n],avoid:p,transform:c,attributes:{x:v,y:h,"text-anchor":"middle"}})}He.shouldShowZeroLine=function(e,r,t){var a=Cr.simpleMap(r.range,r.r2l);return a[0]*a[1]<=0&&r.zeroline&&(r.type==="linear"||r.type==="-")&&!(r.rangebreaks&&r.maskBreaks(0)===C1)&&(Gq(r,0)||!jfe(e,r,t,a)||Qfe(e,r))};He.clipEnds=function(e,r){return r.filter(function(t){return Gq(e,t.x)})};function Gq(e,r){var t=e.l2p(r);return t>1&&t1)for(n=1;n=n.min&&e=_fe:/%L/.test(r)?e>=bfe:/%[SX]/.test(r)?e>=A1:/%M/.test(r)?e>=xv:/%[HI]/.test(r)?e>=gl:/%p/.test(r)?e>=zo:/%[Aadejuwx]/.test(r)?e>=ln:/%[UVW]/.test(r)?e>=Zn:/%[Bbm]/.test(r)?e>=M1:/%[q]/.test(r)?e>=T1:/%[Yy]/.test(r)?e>=w1:!0}});var Zq=U((ZAe,Wq)=>{"use strict";Wq.exports=function(r,t,a){var n,i;if(a){var l=t==="reversed"||t==="min reversed"||t==="max reversed";n=a[l?1:0],i=a[l?0:1]}var o=r("autorangeoptions.minallowed",i===null?n:void 0),s=r("autorangeoptions.maxallowed",n===null?i:void 0);o===void 0&&r("autorangeoptions.clipmin"),s===void 0&&r("autorangeoptions.clipmax"),r("autorangeoptions.include")}});var ob=U((JAe,Jq)=>{"use strict";var ice=Zq();Jq.exports=function(r,t,a,n){var i=t._template||{},l=t.type||i.type||"-";a("minallowed"),a("maxallowed");var o=a("range");if(!o){var s;!n.noInsiderange&&l!=="log"&&(s=a("insiderange"),s&&(s[0]===null||s[1]===null)&&(t.insiderange=!1,s=void 0),s&&(o=a("range",s)))}var u=t.getAutorangeDflt(o,n),f=a("autorange",u),c;o&&(o[0]===null&&o[1]===null||(o[0]===null||o[1]===null)&&(f==="reversed"||f===!0)||o[0]!==null&&(f==="min"||f==="max reversed")||o[1]!==null&&(f==="max"||f==="min reversed"))&&(o=void 0,delete t.range,t.autorange=!0,c=!0),c||(u=t.getAutorangeDflt(o,n),f=a("autorange",u)),f&&(ice(a,f,o),(l==="linear"||l==="-")&&a("rangemode")),t.cleanRange()}});var Kq=U(($Ae,$q)=>{var lce={left:0,top:0};$q.exports=oce;function oce(e,r,t){r=r||e.currentTarget||e.srcElement,Array.isArray(t)||(t=[0,0]);var a=e.clientX||0,n=e.clientY||0,i=sce(r);return t[0]=a-i.left,t[1]=n-i.top,t}function sce(e){return e===window||e===document||e===document.body?lce:e.getBoundingClientRect()}});var sb=U((KAe,jq)=>{"use strict";var uce=B5();function fce(){var e=!1;try{var r=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("test",null,r),window.removeEventListener("test",null,r)}catch(t){e=!1}return e}jq.exports=uce&&fce()});var eD=U((jAe,Qq)=>{"use strict";Qq.exports=function(r,t,a,n,i){var l=(r-a)/(n-a),o=l+t/(n-a),s=(l+o)/2;return i==="left"||i==="bottom"?l:i==="center"||i==="middle"?s:i==="right"||i==="top"?o:l<2/3-s?l:o>4/3-s?o:s}});var aD=U((QAe,tD)=>{"use strict";var rD=ke(),cce=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];tD.exports=function(r,t,a,n){return a==="left"?r=0:a==="center"?r=1:a==="right"?r=2:r=rD.constrain(Math.floor(r*3),0,2),n==="bottom"?t=0:n==="middle"?t=1:n==="top"?t=2:t=rD.constrain(Math.floor(t*3),0,2),cce[t][r]}});var iD=U((eke,nD)=>{"use strict";var vce=av(),dce=Sh(),hce=Jc().getGraphDiv,pce=(Sc(),Fe(Lc)),ub=nD.exports={};ub.wrapped=function(e,r,t){var i;e=hce(e),e._fullLayout&&dce.clear(e._fullLayout._uid+pce.HOVERID);let a=e._hoverdata;ub.raw(e,r,t)&&e._hoverAnywhereActive&&(e._hoverAnywhereActive=!1,(i=e._fullLayout)!=null&&i.hoveranywhere&&(r!=null&&r.target)&&!a&&e.emit("plotly_unhover",{event:r,points:[]}))};ub.raw=function(r,t){var a=r._fullLayout,n=r._hoverdata;return t||(t={}),t.target&&!r._dragged&&vce.triggerHandler(r,"plotly_beforehover",t)===!1?!1:(a._hoverlayer.selectAll("g").remove(),a._hoverlayer.selectAll("line").remove(),a._hoverlayer.selectAll("circle").remove(),r._hoverdata=void 0,t.target&&n&&r.emit("plotly_unhover",{event:t,points:n}),!0)}});var Xi=U((rke,uD)=>{"use strict";var mce=Kq(),fb=O5(),yce=sb(),gce=ke().removeElement,xce=(Ta(),Fe(wa)),eu=uD.exports={};eu.align=eD();eu.getCursor=aD();var oD=iD();eu.unhover=oD.wrapped;eu.unhoverRaw=oD.raw;eu.init=function(r){var t=r.gd,a=1,n=t._context.doubleClickDelay,i=r.element,l,o,s,u,f,c,v,h;t._mouseDownTime||(t._mouseDownTime=0),i.style.pointerEvents="all",i.onmousedown=m,yce?(i._ontouchstart&&i.removeEventListener("touchstart",i._ontouchstart),i._ontouchstart=m,i.addEventListener("touchstart",m,{passive:!1})):i.ontouchstart=m;function p(w,x,M){return Math.abs(w)n&&(a=Math.max(a-1,1)),t._dragged)r.doneFn&&r.doneFn();else{var x;c.target===v?x=c:(x={target:v,srcElement:v,toElement:v},Object.keys(c).concat(Object.keys(c.__proto__)).forEach(M=>{var k=c[M];!x[M]&&typeof k!="function"&&(x[M]=k)})),r.clickFn&&r.clickFn(a,x),h||v.dispatchEvent(new MouseEvent("click",w))}t._dragging=!1,t._dragged=!1}};function sD(){var e=document.createElement("div");e.className="dragcover";var r=e.style;return r.position="fixed",r.left=0,r.right=0,r.top=0,r.bottom=0,r.zIndex=999999999,r.background="none",document.body.appendChild(e),e}eu.coverSlip=sD;function lD(e){return mce(e.changedTouches?e.changedTouches[0]:e,document.body)}});var Fo=U((tke,fD)=>{"use strict";fD.exports=function(r,t){(r.attr("class")||"").split(" ").forEach(function(a){a.indexOf("cursor-")===0&&r.classed(a,!1)}),t&&r.classed("cursor-"+t,!0)}});var dD=U((ake,vD)=>{"use strict";var cb=Fo(),Tv="data-savedcursor",cD="!!";vD.exports=function(r,t){var a=r.attr(Tv);if(t){if(!a){for(var n=(r.attr("class")||"").split(" "),i=0;i{"use strict";var vb=xa(),bce=ui();hD.exports={_isSubplotObj:!0,visible:{valType:"boolean",dflt:!0,editType:"legend"},bgcolor:{valType:"color",editType:"legend"},bordercolor:{valType:"color",dflt:bce.defaultLine,editType:"legend"},maxheight:{valType:"number",min:0,editType:"legend"},borderwidth:{valType:"number",min:0,dflt:0,editType:"legend"},font:vb({editType:"legend"}),grouptitlefont:vb({editType:"legend"}),orientation:{valType:"enumerated",values:["v","h"],dflt:"v",editType:"legend"},traceorder:{valType:"flaglist",flags:["reversed","grouped"],extras:["normal"],editType:"legend"},tracegroupgap:{valType:"number",min:0,dflt:10,editType:"legend"},entrywidth:{valType:"number",min:0,editType:"legend"},entrywidthmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels",editType:"legend"},indentation:{valType:"number",min:-15,dflt:0,editType:"legend"},itemsizing:{valType:"enumerated",values:["trace","constant"],dflt:"trace",editType:"legend"},itemwidth:{valType:"number",min:30,dflt:30,editType:"legend"},itemclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggle",editType:"legend"},itemdoubleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggleothers",editType:"legend"},groupclick:{valType:"enumerated",values:["toggleitem","togglegroup"],dflt:"togglegroup",editType:"legend"},groupdoubleclick:{valType:"enumerated",values:["toggleitem","togglegroup"],editType:"legend"},titleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],editType:"legend"},titledoubleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],editType:"legend"},x:{valType:"number",editType:"legend"},xref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"legend"},y:{valType:"number",editType:"legend"},yref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],editType:"legend"},uirevision:{valType:"any",editType:"none"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"legend"},title:{text:{valType:"string",dflt:"",editType:"legend"},font:vb({editType:"legend"}),side:{valType:"enumerated",values:["top","left","top left","top center","top right"],editType:"legend"},editType:"legend"},editType:"legend"}});var Av=U(Mv=>{"use strict";Mv.isGrouped=function(r){return(r.traceorder||"").indexOf("grouped")!==-1};Mv.isVertical=function(r){return r.orientation!=="h"};Mv.isReversed=function(r){return(r.traceorder||"").indexOf("reversed")!==-1};Mv.getId=function(r){return r._id||"legend"}});var pb=U((lke,pD)=>{"use strict";var D1=Ar(),Jn=ke(),_ce=ht(),wce=Mn(),Tce=db(),Mce=A0(),hb=Av();function Ace(e,r,t,a,n){var i=r[e]||{},l=_ce.newContainer(t,e);function o(W,X){return Jn.coerce(i,l,Tce,W,X)}var s=Jn.coerceFont(o,"font",t.font);o("bgcolor",t.paper_bgcolor),o("bordercolor");var u=o("visible");if(!u)return;var f,c=function(W,X){var $=f._input,te=f;return Jn.coerce($,te,wce,W,X)},v=t.font||{},h=Jn.coerceFont(o,"grouptitlefont",v,{overrideDflt:{size:Math.round(v.size*1.1)}}),p=0,y=!1,m="normal",b=(t.shapes||[]).filter(function(W){return W.showlegend});function _(W){return D1.traceIs(W,"pie-like")&&W._length!=null&&(Array.isArray(W.legend)||Array.isArray(W.showlegend))}a.filter(_).forEach(function(W){W.visible&&p++;for(var X=0;XW.legend.length)for(var te=W.legend.length;te(e==="legend"?1:0));if(k===!1&&(t[e]=void 0),k===!1&&!i.uirevision||(o("uirevision",t.uirevision),k===!1))return;o("borderwidth");var A=o("orientation"),S=o("yref"),D=o("xref"),P=A==="h",R=S==="paper",F=D==="paper",N,B,H,O="left";P?(N=0,D1.getComponentMethod("rangeslider","isVisible")(r.xaxis)?R?(B=1.1,H="bottom"):(B=1,H="top"):R?(B=-.1,H="top"):(B=0,H="bottom")):(B=1,H="auto",F?N=1.02:(N=1,O="right")),Jn.coerce(i,l,{x:{valType:"number",editType:"legend",min:F?-2:0,max:F?3:1,dflt:N}},"x"),Jn.coerce(i,l,{y:{valType:"number",editType:"legend",min:R?-2:0,max:R?3:1,dflt:B}},"y"),o("traceorder",m),hb.isGrouped(t[e])&&o("tracegroupgap"),o("entrywidth"),o("entrywidthmode"),o("indentation"),o("itemsizing"),o("itemwidth"),o("itemclick"),o("itemdoubleclick");let Y=o("groupclick");o("groupdoubleclick",Y),o("xanchor",O),o("yanchor",H),o("maxheight"),o("valign"),Jn.noneOrAll(i,l,["x","y"]);var G=o("title.text");if(G){o("title.side",P?"left":"top");var V=Jn.extendFlat({},s,{size:Jn.bigFont(s.size)});Jn.coerceFont(o,"title.font",V);let W=n>1;o("titleclick",W?"toggle":!1),o("titledoubleclick",W?"toggleothers":!1)}}pD.exports=function(r,t,a){var n,i=a.slice(),l=t.shapes;if(l)for(n=0;n{"use strict";var No=Ar(),mb=ke(),kce=mb.pushUnique,Cce=Av(),mD=!0;yb.handleItemClick=function(r,t,a,n,i){var l=t._fullLayout;if(t._dragged||t._editing)return;var o=r.data()[0][0];if(o.groupTitle&&o.noClick)return;let s=i===2?a.groupdoubleclick:a.groupclick;n==="toggle"&&a.itemdoubleclick==="toggleothers"&&mD&&t.data&&t._context.showTips&&(mb.notifier(mb._(t,"Double-click on legend to isolate one trace"),"long",t),mD=!1);var u=s==="togglegroup",f=l.hiddenlabels?l.hiddenlabels.slice():[],c=t._fullData;let v=(l.shapes||[]).filter(Ee=>Ee.showlegend||Ee.legendgroup);var h=c.concat(v),p=o.trace;p._isShape&&(p=l.shapes[p.index]);var y=p.legendgroup,m,b,_,w,x,M,k={},A=[],S=[],D=[];function P(Ee,Ue){var Ce=A.indexOf(Ee),We=k.visible;return We||(We=k.visible=[]),A.indexOf(Ee)===-1&&(A.push(Ee),Ce=A.length-1),We[Ce]=Ue,Ce}var R=(l.shapes||[]).map(function(Ee){return Ee._input}),F=!1;function N(Ee,Ue){R[Ee].visible=Ue,F=!0}function B(Ee,Ue){if(!(o.groupTitle&&!u)){var Ce=Ee._isShape,We=Ee.index;We===void 0&&(We=Ee._index);var je=Ee.visible===!1?!1:Ue;Ce?N(We,je):P(We,je)}}var H=p.legend;if(!p._isShape&&No.traceIs(p,"pie-like")){var O=o.label,Y=f.indexOf(O);if(n==="toggle")Y===-1?f.push(O):f.splice(Y,1);else if(n==="toggleothers"){var G=Y!==-1,V=[];for(m=0;mb.showlegend||b.legendgroup),s=i.concat(o);function u(b){return(b.legend||"legend")===l}var f,c;if(a==="toggle")f=!s.some(function(_){return u(_)&&_.visible===!0}),c=!1;else{let b=s.some(function(_){return!u(_)&&_.visible===!0&&_.showlegend!==!1});f=!0,c=!b}let v={visible:[]},h=[],p=(n.shapes||[]).map(function(b){return b._input});for(var y=!1,m=0;mRce,scrollBarColor:()=>qce,scrollBarEnterAttrs:()=>Pce,scrollBarMargin:()=>Dce,scrollBarMinHeight:()=>Sce,scrollBarWidth:()=>Lce,titlePad:()=>Ece});var Lce,Sce,qce,Dce,Pce,Ece,Rce,bb=Lr(()=>{"use strict";Lce=6,Sce=20,qce="#808BA4",Dce=4,Pce={rx:20,ry:3,width:0,height:0},Ece=2,Rce=5});var xD=U((ske,gD)=>{"use strict";var{isArrayOrTypedArray:_b}=Tn(),yD=Ar(),wb=Av();gD.exports=function(r,t,a){var n=t._inHover,i=wb.isGrouped(t),l=wb.isReversed(t),o={},s=[],u=!1,f={},c=0,v=0,h,p;function y(W,X,$){if(t.visible!==!1&&!(a&&W!==t._id))if(X===""||!wb.isGrouped(t)){var te="~~i"+c;s.push(te),o[te]=[$],c++}else s.indexOf(X)===-1?(s.push(X),u=!0,o[X]=[$]):o[X].push($)}for(h=0;hN&&(R=N)}D[h][0]._groupMinRank=R,D[h][0]._preGroupSort=h}var B=function(W,X){return W[0]._groupMinRank-X[0]._groupMinRank||W[0]._preGroupSort-X[0]._preGroupSort},H=function(W,X){var $=_b(W.trace.legendrank)?W.trace.legendrank[W.i]:W.trace.legendrank,te=_b(X.trace.legendrank)?X.trace.legendrank[X.i]:X.trace.legendrank;return $-te||W._preSort-X._preSort};for(D.forEach(function(W,X){W[0]._preGroupSort=X}),D.sort(B),h=0;h{"use strict";var P1=ke();function bD(e){return e.indexOf("e")!==-1?e.replace(/[.]?0+e/,"e"):e.indexOf(".")!==-1?e.replace(/[.]?0+$/,""):e}ru.formatPiePercent=function(r,t){var a=bD((r*100).toPrecision(3));return P1.numSeparate(a,t)+"%"};ru.formatPieValue=function(r,t){var a=bD(r.toPrecision(10));return P1.numSeparate(a,t)};ru.getFirstFilled=function(r,t){if(P1.isArrayOrTypedArray(r))for(var a=0;a{"use strict";var zce=Zr(),Fce=kr();_D.exports=function(r,t,a,n){var i=a.marker.pattern;i&&i.shape?zce.pointStyle(r,a,n,t):Fce.fill(r,t.color)}});var J0=U((cke,AD)=>{"use strict";var TD=kr(),MD=kv().castOption,Nce=wD();AD.exports=function(r,t,a,n){var i=a.marker.line,l=MD(i.color,t.pts)||TD.defaultLine,o=MD(i.width,t.pts)||0;r.call(Nce,t,a,n).style("stroke-width",o).call(TD.stroke,l)}});var kb=U((vke,DD)=>{"use strict";var on=Er(),Tb=Ar(),Ja=ke(),kD=Ja.strTranslate,$n=Zr(),pi=kr(),Mb=Un().extractOpts,E1=Xn(),Ice=J0(),Bce=kv().castOption,Hce=(bb(),Fe(xb)),CD=12,LD=5,tu=2,Oce=10,$0=5;DD.exports=function(r,t,a){var n=t._fullLayout;a||(a=n.legend);var i=a.itemsizing==="constant",l=a.itemwidth,o=(l+Hce.itemGap*2)/2,s=kD(o,0),u=function(A,S,D,P){var R;if(A+1)R=A;else if(S&&S.width>0)R=S.width;else return 0;return i?P:Math.min(R,D)};r.each(function(A){var S=on.select(this),D=Ja.ensureSingle(S,"g","layers");D.style("opacity",A[0].trace.opacity);var P=a.indentation,R=a.valign,F=A[0].lineHeight,N=A[0].height;if(R==="middle"&&P===0||!F||!N)D.attr("transform",null);else{var B={top:1,bottom:-1}[R],H=B*(.5*(F-N+3))||0,O=a.indentation;D.attr("transform",kD(O,H))}var Y=D.selectAll("g.legendfill").data([A]);Y.enter().append("g").classed("legendfill",!0);var G=D.selectAll("g.legendlines").data([A]);G.enter().append("g").classed("legendlines",!0);var V=D.selectAll("g.legendsymbols").data([A]);V.enter().append("g").classed("legendsymbols",!0),V.selectAll("g.legendpoints").data([A]).enter().append("g").classed("legendpoints",!0)}).each(k).each(v).each(p).each(h).each(m).each(x).each(w).each(f).each(c).each(b).each(_);function f(A){var S=SD(A),D=S.showFill,P=S.showLine,R=S.showGradientLine,F=S.showGradientFill,N=S.anyFill,B=S.anyLine,H=A[0],O=H.trace,Y,G,V=Mb(O),W=V.colorscale,X=V.reversescale,$=function(_e){if(_e.size())if(D)$n.fillGroupStyle(_e,t,!0);else{var me="legendfill-"+O.uid;$n.gradient(_e,t,me,Ab(X),W,"fill")}},te=function(_e){if(_e.size()){var me="legendline-"+O.uid;$n.lineGroupStyle(_e),$n.gradient(_e,t,me,Ab(X),W,"stroke")}},ie=E1.hasMarkers(O)||!N?"M5,0":B?"M5,-2":"M5,-3",ve=on.select(this),K=ve.select(".legendfill").selectAll("path").data(D||F?[A]:[]);if(K.enter().append("path").classed("js-fill",!0),K.exit().remove(),K.attr("d",ie+"h"+l+"v6h-"+l+"z").call($),P||R){var he=u(void 0,O.line,Oce,LD);G=Ja.minExtend(O,{line:{width:he}}),Y=[Ja.minExtend(H,{trace:G})]}var le=ve.select(".legendlines").selectAll("path").data(P||R?[Y]:[]);le.enter().append("path").classed("js-line",!0),le.exit().remove(),le.attr("d",ie+(R?"l"+l+",0.0001":"h"+l)).call(P?$n.lineGroupStyle:te)}function c(A){var S=SD(A),D=S.anyFill,P=S.anyLine,R=S.showLine,F=S.showMarker,N=A[0],B=N.trace,H=!F&&!P&&!D&&E1.hasText(B),O,Y;function G(he,le,_e,me){var ce=Ja.nestedProperty(B,he).get(),Me=Ja.isArrayOrTypedArray(ce)&&le?le(ce):ce;if(i&&Me&&me!==void 0&&(Me=me),_e){if(Me<_e[0])return _e[0];if(Me>_e[1])return _e[1]}return Me}function V(he){return N._distinct&&N.index&&he[N.index]?he[N.index]:he[0]}if(F||H||R){var W={},X={};if(F){W.mc=G("marker.color",V);var $=B.type==="scattermap";W.mx=$?"circle":G("marker.symbol",V),W.mo=G("marker.opacity",Ja.mean,[.2,1]),W.mlc=G("marker.line.color",V),W.mlw=G("marker.line.width",Ja.mean,[0,5],tu),W.mld=G("marker.line.dash",V),X.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var te=G("marker.size",Ja.mean,[2,16],CD);W.ms=te,X.marker.size=te}R&&(X.line={width:G("line.width",V,[0,10],LD)}),H&&(W.tx="Aa",W.tp=G("textposition",V),W.ts=10,W.tc=G("textfont.color",V),W.tf=G("textfont.family",V),W.tw=G("textfont.weight",V),W.ty=G("textfont.style",V),W.tv=G("textfont.variant",V),W.tC=G("textfont.textcase",V),W.tE=G("textfont.lineposition",V),W.tS=G("textfont.shadow",V)),O=[Ja.minExtend(N,W)],Y=Ja.minExtend(B,X),Y.selectedpoints=null,Y.texttemplate=null}var ie=on.select(this).select("g.legendpoints"),ve=ie.selectAll("path.scatterpts").data(F?O:[]);ve.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",s),ve.exit().remove(),ve.call($n.pointStyle,Y,t),F&&(O[0].mrc=3);var K=ie.selectAll("g.pointtext").data(H?O:[]);K.enter().append("g").classed("pointtext",!0).append("text").attr("transform",s),K.exit().remove(),K.selectAll("text").call($n.textPointStyle,Y,t)}function v(A){var S=A[0].trace,D=S.type==="waterfall";if(A[0]._distinct&&D){var P=A[0].trace[A[0].dir].marker;return A[0].mc=P.color,A[0].mlw=P.line.width,A[0].mlc=P.line.color,y(A,this,"waterfall")}var R=[];S.visible&&D&&(R=A[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 F=on.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data(R);F.enter().append("path").classed("legendwaterfall",!0).attr("transform",s).style("stroke-miterlimit",1),F.exit().remove(),F.each(function(N){var B=on.select(this),H=S[N[0]].marker,O=u(void 0,H.line,$0,tu);B.attr("d",N[1]).style("stroke-width",O+"px").call(pi.fill,H.color),O&&B.call(pi.stroke,H.line.color)})}function h(A){y(A,this)}function p(A){y(A,this,"funnel")}function y(A,S,D){var P=A[0].trace,R=P.marker||{},F=R.line||{},N=R.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",B=D?P.visible&&P.type===D:Tb.traceIs(P,"bar"),H=on.select(S).select("g.legendpoints").selectAll("path.legend"+D).data(B?[A]:[]);H.enter().append("path").classed("legend"+D,!0).attr("d",N).attr("transform",s),H.exit().remove(),H.each(function(O){var Y=on.select(this),G=O[0],V=u(G.mlw,R.line,$0,tu);Y.style("stroke-width",V+"px");var W=G.mcc;if(!a._inHover&&"mc"in G){var X=Mb(R),$=X.mid;$===void 0&&($=(X.max+X.min)/2),W=$n.tryColorscale(R,"")($)}var te=W||G.mc||R.color,ie=R.pattern,ve=$n.getPatternAttr,K=ie&&(ve(ie.shape,0,"")||ve(ie.path,0,""));if(K){var he=ve(ie.bgcolor,0,null),le=ve(ie.fgcolor,0,null),_e=ie.fgopacity,me=qD(ie.size,8,10),ce=qD(ie.solidity,.5,1),Me="legend-"+P.uid;Y.call($n.pattern,"legend",t,Me,K,me,ce,W,ie.fillmode,he,le,_e)}else Y.call(pi.fill,te);V&&pi.stroke(Y,G.mlc||F.color)})}function m(A){var S=A[0].trace,D=on.select(this).select("g.legendpoints").selectAll("path.legendbox").data(S.visible&&Tb.traceIs(S,"box-violin")?[A]:[]);D.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform",s),D.exit().remove(),D.each(function(){var P=on.select(this);if((S.boxpoints==="all"||S.points==="all")&&pi.opacity(S.fillcolor)===0&&pi.opacity((S.line||{}).color)===0){var R=Ja.minExtend(S,{marker:{size:i?CD:Ja.constrain(S.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});D.call($n.pointStyle,R,t)}else{var F=u(void 0,S.line,$0,tu);P.style("stroke-width",F+"px").call(pi.fill,S.fillcolor),F&&pi.stroke(P,S.line.color)}})}function b(A){var S=A[0].trace,D=on.select(this).select("g.legendpoints").selectAll("path.legendcandle").data(S.visible&&S.type==="candlestick"?[A,A]:[]);D.enter().append("path").classed("legendcandle",!0).attr("d",function(P,R){return R?"M-15,0H-8M-8,6V-6H8Z":"M15,0H8M8,-6V6H-8Z"}).attr("transform",s).style("stroke-miterlimit",1),D.exit().remove(),D.each(function(P,R){var F=on.select(this),N=S[R?"increasing":"decreasing"],B=u(void 0,N.line,$0,tu);F.style("stroke-width",B+"px").call(pi.fill,N.fillcolor),B&&pi.stroke(F,N.line.color)})}function _(A){var S=A[0].trace,D=on.select(this).select("g.legendpoints").selectAll("path.legendohlc").data(S.visible&&S.type==="ohlc"?[A,A]:[]);D.enter().append("path").classed("legendohlc",!0).attr("d",function(P,R){return R?"M-15,0H0M-8,-6V0":"M15,0H0M8,6V0"}).attr("transform",s).style("stroke-miterlimit",1),D.exit().remove(),D.each(function(P,R){var F=on.select(this),N=S[R?"increasing":"decreasing"],B=u(void 0,N.line,$0,tu);F.style("fill","none").call($n.dashLine,N.line.dash,B),B&&pi.stroke(F,N.line.color)})}function w(A){M(A,this,"pie")}function x(A){M(A,this,"funnelarea")}function M(A,S,D){var P=A[0],R=P.trace,F=D?R.visible&&R.type===D:Tb.traceIs(R,D),N=on.select(S).select("g.legendpoints").selectAll("path.legend"+D).data(F?[A]:[]);if(N.enter().append("path").classed("legend"+D,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",s),N.exit().remove(),N.size()){var B=R.marker||{},H=u(Bce(B.line.width,P.pts),B.line,$0,tu),O="pieLike",Y=Ja.minExtend(R,{marker:{line:{width:H}}},O),G=Ja.minExtend(P,{trace:Y},O);Ice(N,G,Y,t)}}function k(A){var S=A[0].trace,D,P=[];if(S.visible)switch(S.type){case"histogram2d":case"heatmap":P=[["M-15,-2V4H15V-2Z"]],D=!0;break;case"choropleth":case"choroplethmap":P=[["M-6,-6V6H6V-6Z"]],D=!0;break;case"densitymap":P=[["M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"]],D="radial";break;case"cone":P=[["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"]],D=!1;break;case"streamtube":P=[["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"]],D=!1;break;case"surface":P=[["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"]],D=!0;break;case"mesh3d":P=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],D=!1;break;case"volume":P=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],D=!0;break;case"isosurface":P=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6 A12,24 0 0,0 6,-6 L0,6Z"]],D=!1;break}var R=on.select(this).select("g.legendpoints").selectAll("path.legend3dandfriends").data(P);R.enter().append("path").classed("legend3dandfriends",!0).attr("transform",s).style("stroke-miterlimit",1),R.exit().remove(),R.each(function(F,N){var B=on.select(this),H=Mb(S),O=H.colorscale,Y=H.reversescale,G=function($){if($.size()){var te="legendfill-"+S.uid;$n.gradient($,t,te,Ab(Y,D==="radial"),O,"fill")}},V;if(O){if(!D){var X=O.length;V=N===0?O[Y?X-1:0][1]:N===1?O[Y?0:X-1][1]:O[Math.floor((X-1)/2)][1]}}else{var W=S.vertexcolor||S.facecolor||S.color;V=Ja.isArrayOrTypedArray(W)?W[N]||W[0]:W}B.attr("d",F[0]),V?B.call(pi.fill,V):B.call(G)})}};function Ab(e,r){var t=r?"radial":"horizontal";return t+(e?"":"reversed")}function SD(e){var r=e[0].trace,t=r.contours,a=E1.hasLines(r)||r.visible&&r.type==="quiver",n=E1.hasMarkers(r),i=r.visible&&r.fill&&r.fill!=="none",l=!1,o=!1;if(t){var s=t.coloring;s==="lines"?l=!0:a=s==="none"||s==="heatmap"||t.showlines,t.type==="constraint"?i=t._operation!=="=":(s==="fill"||s==="heatmap")&&(o=!0)}return{showMarker:n,showLine:a,showFill:i,showGradientLine:l,showGradientFill:o,anyLine:a||l,anyFill:i||o}}function qD(e,r,t){return e&&Ja.isArrayOrTypedArray(e)?r:e>t?t:e}});var qb=U((dke,HD)=>{"use strict";var mn=Er(),ta=ke(),Lb=Xt(),au=Ar(),F1=av(),Cb=Xi(),aa=Zr(),Cv=kr(),nu=ma(),PD=gb().handleItemClick,ED=gb().handleTitleClick,sa=(bb(),Fe(xb)),Sb=(Ha(),Fe(Ba)),ID=Sb.LINE_SPACING,j0=Sb.FROM_TL,RD=Sb.FROM_BR,zD=xD(),Yce=kb(),Q0=Av(),K0=1,Gce=/^legend[0-9]*$/;HD.exports=function(r,t){if(t)FD(r,t);else{var a=r._fullLayout,n=a._legends,i=a._infolayer.selectAll('[class^="legend"]');i.each(function(){var u=mn.select(this),f=u.attr("class"),c=f.split(" ")[0];c.match(Gce)&&n.indexOf(c)===-1&&u.remove()});for(var l=0;l1)}var p=a.hiddenlabels||[];if(!o&&(!a.showlegend||!s.length))return l.selectAll("."+n).remove(),a._topdefs.select("#"+i).remove(),Lb.autoMargin(e,n);var y=ta.ensureSingle(l,"g",n,function(S){o||S.attr("pointer-events","all")}),m=ta.ensureSingleById(a._topdefs,"clipPath",i,function(S){S.append("rect")}),b=ta.ensureSingle(y,"rect","bg",function(S){S.attr("shape-rendering","crispEdges")});b.call(Cv.stroke,t.bordercolor).call(Cv.fill,t.bgcolor).style("stroke-width",t.borderwidth+"px");var _=ta.ensureSingle(y,"g","scrollbox"),w=t.title;t._titleWidth=0,t._titleHeight=0;var x;w.text?(x=ta.ensureSingle(_,"text",n+"titletext"),x.attr("text-anchor","start").call(aa.font,w.font).text(w.text),z1(x,_,e,t,K0),!o&&(t.titleclick||t.titledoubleclick)&&Wce(_,e,t,n)):(_.selectAll("."+n+"titletext").remove(),_.selectAll("."+n+"titletoggle").remove());var M=ta.ensureSingle(y,"rect","scrollbar",function(S){S.attr(sa.scrollBarEnterAttrs).call(Cv.fill,sa.scrollBarColor)}),k=_.selectAll("g.groups").data(s);k.enter().append("g").attr("class","groups"),k.exit().remove();var A=k.selectAll("g.traces").data(ta.identity);A.enter().append("g").attr("class","traces"),A.exit().remove(),A.style("opacity",function(S){let D=S[0],P=D.trace;if(D.groupTitle){let R=P.legendgroup,F=(a.shapes||[]).filter(function(B){return B.showlegend});return e._fullData.concat(F).some(function(B){return B.legendgroup===R&&(B.legend||"legend")===n&&B.visible===!0})?1:.5}return au.traceIs(P,"pie-like")?p.indexOf(S[0].label)!==-1?.5:1:P.visible==="legendonly"?.5:1}).each(function(){mn.select(this).call(Vce,e,t)}).call(Yce,e,t).each(function(S){o||S[0].groupTitle&&t.groupclick==="toggleitem"||mn.select(this).call(Xce,e,n)}),ta.syncOrAsync([Lb.previousPromises,function(){return $ce(e,k,A,t,_)},function(){var S=a._size,D=t.borderwidth,P=t.xref==="paper",R=t.yref==="paper";if(w.text){let Pe=(a.shapes||[]).filter(function(qe){return qe.showlegend}),Le=e._fullData.concat(Pe).some(function(qe){let Ee=qe.legend||"legend";var Ue=Array.isArray(Ee)?Ee.includes(n):Ee===n;return Ue&&qe.visible===!0});x.style("opacity",Le?1:.5)}if(!o){var F,N;P?F=S.l+S.w*t.x-j0[N1(t)]*t._width:F=a.width*t.x-j0[N1(t)]*t._width,R?N=S.t+S.h*(1-t.y)-j0[I1(t)]*t._effHeight:N=a.height*(1-t.y)-j0[I1(t)]*t._effHeight;var B=Kce(e,n,F,N);if(B)return;if(a.margin.autoexpand){var H=F,O=N;F=P?ta.constrain(F,0,a.width-t._width):H,N=R?ta.constrain(N,0,a.height-t._effHeight):O,F!==H&&ta.log("Constrain "+n+".x to make legend fit inside graph"),N!==O&&ta.log("Constrain "+n+".y to make legend fit inside graph")}aa.setTranslate(y,F,N)}if(M.on(".drag",null),y.on("wheel",null),o||t._height<=t._maxHeight||e._context.staticPlot){var Y=t._effHeight;o&&(Y=t._height),b.attr({width:t._width-D,height:Y-D,x:D/2,y:D/2}),aa.setTranslate(_,0,0),m.select("rect").attr({width:t._width-2*D,height:Y-2*D,x:D,y:D}),aa.setClipUrl(_,i,e),aa.setRect(M,0,0,0,0),delete t._scrollY}else{var G=Math.max(sa.scrollBarMinHeight,t._effHeight*t._effHeight/t._height),V=t._effHeight-G-2*sa.scrollBarMargin,W=t._height-t._effHeight,X=V/W,$=Math.min(t._scrollY||0,W);b.attr({width:t._width-2*D+sa.scrollBarWidth+sa.scrollBarMargin,height:t._effHeight-D,x:D/2,y:D/2}),m.select("rect").attr({width:t._width-2*D+sa.scrollBarWidth+sa.scrollBarMargin,height:t._effHeight-2*D,x:D,y:D+$}),aa.setClipUrl(_,i,e),me($,G,X),y.on("wheel",function(){$=ta.constrain(t._scrollY+mn.event.deltaY/W*V,0,W),me($,G,X),$!==0&&$!==W&&mn.event.preventDefault()});var te,ie,ve,K=function(Pe,Le,qe){var Ee=(qe-Le)/X+Pe;return ta.constrain(Ee,0,W)},he=function(Pe,Le,qe){var Ee=(Le-qe)/X+Pe;return ta.constrain(Ee,0,W)},le=mn.behavior.drag().on("dragstart",function(){var Pe=mn.event.sourceEvent;Pe.type==="touchstart"?te=Pe.changedTouches[0].clientY:te=Pe.clientY,ve=$}).on("drag",function(){var Pe=mn.event.sourceEvent;Pe.buttons===2||Pe.ctrlKey||(Pe.type==="touchmove"?ie=Pe.changedTouches[0].clientY:ie=Pe.clientY,$=K(ve,te,ie),me($,G,X))});M.call(le);var _e=mn.behavior.drag().on("dragstart",function(){var Pe=mn.event.sourceEvent;Pe.type==="touchstart"&&(te=Pe.changedTouches[0].clientY,ve=$)}).on("drag",function(){var Pe=mn.event.sourceEvent;Pe.type==="touchmove"&&(ie=Pe.changedTouches[0].clientY,$=he(ve,te,ie),me($,G,X))});_.call(_e)}function me(Pe,Le,qe){t._scrollY=e._fullLayout[n]._scrollY=Pe,aa.setTranslate(_,0,-Pe),aa.setRect(M,t._width,sa.scrollBarMargin+Pe*qe,sa.scrollBarWidth,Le),m.select("rect").attr("y",D+Pe)}if(e._context.edits.legendPosition){var ce,Me,Re,xe;y.classed("cursor-move",!0),Cb.init({element:y.node(),gd:e,prepFn:function(Pe){if(Pe.target!==M.node()){var Le=aa.getTranslate(y);Re=Le.x,xe=Le.y}},moveFn:function(Pe,Le){if(Re!==void 0&&xe!==void 0){var qe=Re+Pe,Ee=xe+Le;aa.setTranslate(y,qe,Ee),ce=Cb.align(qe,t._width,S.l,S.l+S.w,t.xanchor),Me=Cb.align(Ee+t._height,-t._height,S.t+S.h,S.t,t.yanchor)}},doneFn:function(){if(ce!==void 0&&Me!==void 0){var Pe={};Pe[n+".x"]=ce,Pe[n+".y"]=Me,au.call("_guiRelayout",e,Pe)}},clickFn:function(Pe,Le){var qe=l.selectAll("g.traces").filter(function(){var Ee=this.getBoundingClientRect();return Le.clientX>=Ee.left&&Le.clientX<=Ee.right&&Le.clientY>=Ee.top&&Le.clientY<=Ee.bottom});qe.size()>0&&BD(e,t,qe,Pe,Le)}})}}],e)}}function R1(e,r,t){var a=e[0],n=a.width,i=r.entrywidthmode,l=a.trace.legendwidth||r.entrywidth;return i==="fraction"?r._maxWidth*l:t+(l||n)}function BD(e,r,t,a,n){var i=e._fullLayout,l=t.data()[0][0].trace,o=r.itemclick,s=r.itemdoubleclick,u={event:n,node:t.node(),curveNumber:l.index,expandedIndex:l.index,data:e.data,layout:e.layout,frames:e._transitionData._frames,config:e._context,fullData:e._fullData,fullLayout:i};l._group&&(u.group=l._group),au.traceIs(l,"pie-like")&&(u.label=t.datum()[0].label);var f=F1.triggerHandler(e,"plotly_legendclick",u);if(a===1){if(f===!1)return;r._clickTimeout=setTimeout(function(){e._fullLayout&&o&&PD(t,e,r,o,a)},e._context.doubleClickDelay)}else if(a===2){r._clickTimeout&&clearTimeout(r._clickTimeout),e._legendMouseDownTime=0;var c=F1.triggerHandler(e,"plotly_legenddoubleclick",u);c!==!1&&f!==!1&&s&&PD(t,e,r,s,a)}}function Vce(e,r,t){var a=Q0.getId(t),n=e.data()[0][0],i=n.trace,l=au.traceIs(i,"pie-like"),o=!t._inHover&&r._context.edits.legendText&&!l,s=t._maxNameLength,u,f;n.groupTitle?(u=n.groupTitle.text,f=n.groupTitle.font):(f=t.font,t.entries?u=n.text:(u=l?n.label:i.name,i._meta&&(u=ta.templateString(u,i._meta))));var c=ta.ensureSingle(e,"text",a+"text");c.attr("text-anchor","start").call(aa.font,f).text(o?ND(u,s):u);var v=t.indentation+t.itemwidth+sa.itemGap*2;nu.positionText(c,v,0),o?c.call(nu.makeEditable,{gd:r,text:u}).call(z1,e,r,t).on("edit",function(h){this.text(ND(h,s)).call(z1,e,r,t);var p={};return p.name=h,n.trace._isShape?au.call("_guiRelayout",r,"shapes["+i.index+"].name",p.name):au.call("_guiRestyle",r,p,i.index)}):z1(c,e,r,t)}function ND(e,r){var t=Math.max(4,r);if(e&&e.trim().length>=t/2)return e;e=e||"";for(var a=t-e.length;a>0;a--)e+=" ";return e}function Xce(e,r,t){var a=r._context.doubleClickDelay,n,i=1,l=ta.ensureSingle(e,"rect",t+"toggle",function(o){r._context.staticPlot||o.style("cursor","pointer").attr("pointer-events","all"),o.call(Cv.fill,"rgba(0,0,0,0)")});r._context.staticPlot||(l.on("mousedown",function(){n=new Date().getTime(),n-r._legendMouseDownTimea&&(i=Math.max(i-1,1)),BD(r,o,e,i,mn.event)}}))}function Wce(e,r,t,a){if(r._fullData.some(function(u){let f=u.legend||"legend";return(Array.isArray(f)?f.includes(a):f===a)&&au.traceIs(u,"pie-like")}))return;let i=r._context.doubleClickDelay;var l,o=1;let s=ta.ensureSingle(e,"rect",a+"titletoggle",function(u){r._context.staticPlot||u.style("cursor","pointer").attr("pointer-events","all"),u.call(Cv.fill,"rgba(0,0,0,0)")});r._context.staticPlot||(s.on("mousedown",function(){l=new Date().getTime(),l-r._legendMouseDownTimei&&(o=Math.max(o-1,1));let u={event:mn.event,legendId:a,data:r.data,layout:r.layout,fullData:r._fullData,fullLayout:r._fullLayout};if(o===1&&t.titleclick){if(F1.triggerHandler(r,"plotly_legendtitleclick",u)===!1)return;t._titleClickTimeout=setTimeout(function(){r._fullLayout&&ED(r,t,t.titleclick)},i)}else o===2&&(t._titleClickTimeout&&clearTimeout(t._titleClickTimeout),r._legendMouseDownTime=0,F1.triggerHandler(r,"plotly_legendtitledoubleclick",u)!==!1&&t.titledoubleclick&&ED(r,t,t.titledoubleclick))}))}function z1(e,r,t,a,n){a._inHover&&e.attr("data-notex",!0),nu.convertToTspans(e,t,function(){Zce(r,t,a,n)})}function Zce(e,r,t,a){var n=e.data()[0][0],i=n&&n.trace.showlegend;if(Array.isArray(i)&&(i=i[n.i]!==!1),!t._inHover&&n&&!i){e.remove();return}var l=e.select("g[class*=math-group]"),o=l.node(),s=Q0.getId(t);t||(t=r._fullLayout[s]);var u=t.borderwidth,f;a===K0?f=t.title.font:n.groupTitle?f=n.groupTitle.font:f=t.font;var c=f.size*ID,v,h;if(o){var p=aa.bBox(o);v=p.height,h=p.width,a===K0?aa.setTranslate(l,u,u+v*.75):aa.setTranslate(l,0,v*.25)}else{var y="."+s+(a===K0?"title":"")+"text",m=e.select(y),b=nu.lineCount(m),_=m.node();if(v=c*b,h=_?aa.bBox(_).width:0,a===K0)t.title.side==="left"&&(h+=sa.itemGap*2),nu.positionText(m,u+sa.titlePad,u+c);else{var w=sa.itemGap*2+t.indentation+t.itemwidth;n.groupTitle&&(w=sa.itemGap,h-=t.indentation+t.itemwidth),nu.positionText(m,w,-c*((b-1)/2-.3))}}a===K0?(t._titleWidth=h,t._titleHeight=v):(n.lineHeight=c,n.height=Math.max(v,16)+3,n.width=h)}function Jce(e){var r=0,t=0,a=e.title.side;return a&&(a.indexOf("left")!==-1&&(r=e._titleWidth),a.indexOf("top")!==-1&&(t=e._titleHeight)),[r,t]}function $ce(e,r,t,a,n){var i=e._fullLayout,l=Q0.getId(a);a||(a=i[l]);var o=i._size,s=Q0.isVertical(a),u=Q0.isGrouped(a),f=a.entrywidthmode==="fraction",c=a.borderwidth,v=2*c,h=sa.itemGap,p=a.indentation+a.itemwidth+h*2,y=2*(c+h),m=I1(a),b=a.y<0||a.y===0&&m==="top",_=a.y>1||a.y===1&&m==="bottom",w=a.tracegroupgap,x={};let{orientation:M,yref:k}=a,{maxheight:A}=a,S=b||_||M!=="v"||k!=="paper";A||(A=S?.5:1);let D=S?i.height:o.h;a._maxHeight=Math.max(A>1?A:A*D,30);var P=0;a._width=0,a._height=0;var R=Jce(a);if(s)t.each(function(Pe){var Le=Pe[0].height;aa.setTranslate(this,c+R[0],c+R[1]+a._height+Le/2+h),a._height+=Le,a._width=Math.max(a._width,Pe[0].width)}),P=p+a._width,a._width+=h+p+v,a._height+=y,u&&(r.each(function(Pe,Le){aa.setTranslate(this,0,Le*a.tracegroupgap)}),a._height+=(a._lgroupsLength-1)*a.tracegroupgap);else{var F=N1(a),N=a.x<0||a.x===0&&F==="right",B=a.x>1||a.x===1&&F==="left",H=_||b,O=i.width/2;a._maxWidth=Math.max(N?H&&F==="left"?o.l+o.w:O:B?H&&F==="right"?o.r+o.w:O:o.w,2*p);var Y=0,G=0;t.each(function(Pe){var Le=R1(Pe,a,p);Y=Math.max(Y,Le),G+=Le}),P=null;var V=0;if(u){var W=0,X=0,$=0;r.each(function(){var Pe=0,Le=0;mn.select(this).selectAll("g.traces").each(function(Ee){var Ue=R1(Ee,a,p),Ce=Ee[0].height;aa.setTranslate(this,R[0],R[1]+c+h+Ce/2+Le),Le+=Ce,Pe=Math.max(Pe,Ue),x[Ee[0].trace.legendgroup]=Pe});var qe=Pe+h;X>0&&qe+c+X>a._maxWidth?(V=Math.max(V,X),X=0,$+=W+w,W=Le):W=Math.max(W,Le),aa.setTranslate(this,X,$),X+=qe}),a._width=Math.max(V,X)+c,a._height=$+W+y}else{var te=t.size(),ie=G+v+(te-1)*h=a._maxWidth&&(V=Math.max(V,le),K=0,he+=ve,a._height+=ve,ve=0),aa.setTranslate(this,R[0]+c+K,R[1]+c+he+Le/2+h),le=K+qe+h,K+=Ee,ve=Math.max(ve,Le)}),ie?(a._width=K+v,a._height=ve+y):(a._width=Math.max(V,le)+v,a._height+=ve+y)}}a._width=Math.ceil(Math.max(a._width+R[0],a._titleWidth+2*(c+sa.titlePad))),a._height=Math.ceil(Math.max(a._height+R[1],a._titleHeight+2*(c+sa.itemGap))),a._effHeight=Math.min(a._height,a._maxHeight);var _e=e._context.edits,me=_e.legendText||_e.legendPosition;t.each(function(Pe){var Le=mn.select(this).select("."+l+"toggle"),qe=Pe[0].height,Ee=Pe[0].trace.legendgroup,Ue=R1(Pe,a,p);u&&Ee!==""&&(Ue=x[Ee]);var Ce=me?p:P||Ue;!s&&!f&&(Ce+=h/2),aa.setRect(Le,0,-qe/2,Ce,qe)});var ce=n.select("."+l+"titletext");ce.node()&&Uce(ce,a,c);var Me=n.select("."+l+"titletoggle");if(Me.size()&&ce.node()){var Re=ce.attr("x")||0,xe=sa.titlePad;aa.setRect(Me,Re-xe,c,a._titleWidth+2*xe,a._titleHeight+2*xe)}}function Kce(e,r,t,a){var n=e._fullLayout,i=n[r],l=N1(i),o=I1(i),s=i.xref==="paper",u=i.yref==="paper";e._fullLayout._reservedMargin[r]={};var f=i.y<.5?"b":"t",c=i.x<.5?"l":"r",v={r:n.width-t,l:t+i._width,b:n.height-a,t:a+i._effHeight};if(s&&u)return Lb.autoMargin(e,r,{x:i.x,y:i.y,l:i._width*j0[l],r:i._width*RD[l],b:i._effHeight*RD[o],t:i._effHeight*j0[o]});s?e._fullLayout._reservedMargin[r][f]=v[f]:u||i.orientation==="v"?e._fullLayout._reservedMargin[r][c]=v[c]:e._fullLayout._reservedMargin[r][f]=v[f]}function N1(e){return ta.isRightAnchor(e)?"right":ta.isCenterAnchor(e)?"center":"left"}function I1(e){return ta.isBottomAnchor(e)?"bottom":ta.isMiddleAnchor(e)?"middle":"top"}});var Rb=U(Eb=>{"use strict";var iu=Er(),Vl=Gr(),Ot=ke(),jce=Ot.pushUnique,Db=Ot.strTranslate,Qce=Ot.strRotate,eve=av(),mi=ma(),rve=dD(),bl=Zr(),ua=kr(),B1=Xi(),_l=Kr(),tve=(Ta(),Fe(wa)).zindexSeparator,rf=Ar(),Kn=Ui(),lu=(Sc(),Fe(Lc)),ave=pb(),nve=qb(),ZD=lu.YANGLE,Pb=Math.PI*ZD/180,ive=1/Math.sin(Pb),lve=Math.cos(Pb),ove=Math.sin(Pb),St=lu.HOVERARROWSIZE,Xr=lu.HOVERTEXTPAD,OD={box:!0,ohlc:!0,violin:!0,candlestick:!0},sve={scatter:!0,scattergl:!0,splom:!0};function YD(e,r){return e.distance-r.distance}Eb.hover=function(r,t,a,n){r=Ot.getGraphDiv(r);var i=t.target;Ot.throttle(r._fullLayout._uid+lu.HOVERID,lu.HOVERMINTIME,function(){uve(r,t,a,n,i)})};Eb.loneHover=function(r,t){var a=!0;Array.isArray(r)||(a=!1,r=[r]);var n=t.gd,i=QD(n),l=eP(n),o=r.map(function(m){var b=m._x0||m.x0||m.x||0,_=m._x1||m.x1||m.x||0,w=m._y0||m.y0||m.y||0,x=m._y1||m.y1||m.y||0,M=m.eventData;if(M){var k=Math.min(b,_),A=Math.max(b,_),S=Math.min(w,x),D=Math.max(w,x),P=m.trace;if(rf.traceIs(P,"gl3d")){var R=n._fullLayout[P.scene]._scene.container,F=R.offsetLeft,N=R.offsetTop;k+=F,A+=F,S+=N,D+=N}M.bbox={x0:k+l,x1:A+l,y0:S+i,y1:D+i},M.xPixel=(b+_)/2,M.yPixel=(w+x)/2,t.inOut_bbox&&t.inOut_bbox.push(M.bbox)}else M=!1;return{color:m.color||ua.defaultLine,x0:m.x0||m.x||0,x1:m.x1||m.x||0,y0:m.y0||m.y||0,y1:m.y1||m.y||0,xLabel:m.xLabel,yLabel:m.yLabel,zLabel:m.zLabel,text:m.text,name:m.name,idealAlign:m.idealAlign,borderColor:m.borderColor,fontFamily:m.fontFamily,fontSize:m.fontSize,fontColor:m.fontColor,fontWeight:m.fontWeight,fontStyle:m.fontStyle,fontVariant:m.fontVariant,nameLength:m.nameLength,textAlign:m.textAlign,trace:m.trace||{index:0,hoverinfo:""},xa:{_offset:0},ya:{_offset:0},index:0,hovertemplate:m.hovertemplate||!1,hovertemplateLabels:m.hovertemplateLabels||!1,eventData:M}}),s=!1,u=$D(o,{gd:n,hovermode:"closest",rotateLabels:s,bgColor:t.bgColor||ua.background,container:iu.select(t.container),outerContainer:t.outerContainer||t.container}),f=u.hoverLabels,c=5,v=0,h=0;f.sort(function(m,b){return m.y0-b.y0}).each(function(m,b){var _=m.y0-m.by/2;_-cA[0]._length||xe<0||xe>S[0]._length)return B1.unhoverRaw(e,r)}if(r.pointerX=Re+A[0]._offset,r.pointerY=xe+S[0]._offset,"xval"in r?O=Kn.flat(i,r.xval):O=Kn.p2c(A,Re),"yval"in r?Y=Kn.flat(i,r.yval):Y=Kn.p2c(S,xe),e._hoverPointerX=r.pointerX,e._hoverPointerY=r.pointerY,!Vl(O[0])||!Vl(Y[0]))return Ot.warn("Fx.hover failed",r,e),B1.unhoverRaw(e,r)}o.clickanywhere&&(e._hoverXVals=O,e._hoverYVals=Y,e._hoverXAxes=A,e._hoverYAxes=S);var qe=1/0;function Ee(yr,gt){for(V=0;Vle&&(B.splice(0,le),qe=B[0].distance),c&&N!==0&&B.length===0){he.distance=N,he.index=!1;var ct=X._module.hoverPoints(he,ve,K,"closest",{hoverLayer:o._hoverlayer});if(ct&&(ct=ct.filter(function(la){return la.spikeDistance<=N})),ct&&ct.length){var ca,ni=ct.filter(function(la){return la.xa.showspikes&&la.xa.spikesnap!=="hovered data"});if(ni.length){var $t=ni[0];Vl($t.x0)&&Vl($t.y0)&&(ca=Ce($t),(!_e.vLinePoint||_e.vLinePoint.spikeDistance>ca.spikeDistance)&&(_e.vLinePoint=ca))}var Tt=ct.filter(function(la){return la.ya.showspikes&&la.ya.spikesnap!=="hovered data"});if(Tt.length){var ia=Tt[0];Vl(ia.x0)&&Vl(ia.y0)&&(ca=Ce(ia),(!_e.hLinePoint||_e.hLinePoint.spikeDistance>ca.spikeDistance)&&(_e.hLinePoint=ca))}}}}}Ee();function Ue(yr,gt,tt){for(var wt=null,It=1/0,Dt,ct=0;ctyr.trace.index===Te.trace.index):B=[Te];var Oe=B.length,Je=WD("x",Te,o),Be=WD("y",Te,o);Ee(Je,Be);var Ve=[],nr={},lr=0,fr=function(yr){var gt=OD[yr.trace.type]?JD(yr):yr.trace.index;if(!nr[gt])lr++,nr[gt]=lr,Ve.push(yr);else{var tt=nr[gt]-1,wt=Ve[tt];tt>0&&Math.abs(yr.distance)Oe-1;Se--)fr(B[Se]);B=Ve,Ae()}var Ke=e._hoverdata,Ie=[],pr=QD(e),br=eP(e);for(let yr of B){var ur=Kn.makeEventData(yr,yr.trace,yr.cd);if(yr.hovertemplate!==!1){var mr=!1;yr.cd[yr.index]&&yr.cd[yr.index].ht&&(mr=yr.cd[yr.index].ht),yr.hovertemplate=mr||yr.trace.hovertemplate||!1}if(yr.xa&&yr.ya){var ae=yr.x0+yr.xa._offset,de=yr.x1+yr.xa._offset,Ne=yr.y0+yr.ya._offset,Ge=yr.y1+yr.ya._offset,rt=Math.min(ae,de),ft=Math.max(ae,de),yt=Math.min(Ne,Ge),Vt=Math.max(Ne,Ge);ur.bbox={x0:rt+br,x1:ft+br,y0:yt+pr,y1:Vt+pr},ur.xPixel=(ae+de)/2,ur.yPixel=(Ne+Ge)/2}yr.eventData=[ur],Ie.push(ur)}e._hoverdata=Ie;var Nt=v==="y"&&(H.length>1||B.length>1)||v==="closest"&&me&&B.length>1,Sa=ua.combine(o.plot_bgcolor||ua.background,o.paper_bgcolor),bn=$D(B,{gd:e,hovermode:v,rotateLabels:Nt,bgColor:Sa,container:o._hoverlayer,outerContainer:o._paper.node(),commonLabelOpts:o.hoverlabel,hoverdistance:o.hoverdistance}),fa=bn.hoverLabels;if(Kn.isUnifiedHover(v)||(cve(fa,Nt,o,bn.commonLabelBoundingBox),jD(fa,Nt,o._invScaleX,o._invScaleY)),n&&n.tagName){var hn=rf.getComponentMethod("annotations","hasClickToShow")(e,Ie);rve(iu.select(n),hn?"pointer":"")}var Nn=hve(e,r,Ke);if(!n||a||!Nn&&!o.hoveranywhere)return;Ke&&Nn&&e.emit("plotly_unhover",{event:r,points:Ke}),In(e._hoverdata);function In(yr){e.emit("plotly_hover",{event:r,points:yr,xaxes:A,yaxes:S,xvals:Kn.c2dApply(A,O),yvals:Kn.c2dApply(S,Y),xPixel:r.pointerX,yPixel:r.pointerY})}}function JD(e){return[e.trace.index,e.index,e.x0,e.y0,e.name,e.attr,e.xa?e.xa._id:"",e.ya?e.ya._id:""].join(",")}var fve=/([\s\S]*)<\/extra>/;function $D(e,r){var t=r.gd,a=t._fullLayout,n=r.hovermode,i=r.rotateLabels,l=r.bgColor,o=r.container,s=r.outerContainer,u=r.commonLabelOpts||{};if(e.length===0)return[[]];var f=r.fontFamily||lu.HOVERFONT,c=r.fontSize||lu.HOVERFONTSIZE,v=r.fontWeight||a.font.weight,h=r.fontStyle||a.font.style,p=r.fontVariant||a.font.variant,y=r.fontTextcase||a.font.textcase,m=r.fontLineposition||a.font.lineposition,b=r.fontShadow||a.font.shadow,_=e[0],w=_.xa,x=_.ya,M=n.charAt(0),k=M+"Label",A=_[k];if(A===void 0&&w.type==="multicategory")for(var S=0;Sa.width-Ie&&(pr=a.width-Ie),pe.attr("d","M"+(fr-pr)+",0L"+(fr-pr+St)+","+Ke+St+"H"+Ie+"v"+Ke+(Xr*2+lr.height)+"H"+-Ie+"V"+Ke+St+"H"+(fr-pr-St)+"Z"),fr=pr,V.minX=fr-Ie,V.maxX=fr+Ie,w.side==="top"?(V.minY=Se-(Xr*2+lr.height),V.maxY=Se-Xr):(V.minY=Se+Xr,V.maxY=Se+(Xr*2+lr.height))}else{var br,ur,mr;x.side==="right"?(br="start",ur=1,mr="",fr=w._offset+w._length):(br="end",ur=-1,mr="-",fr=w._offset),Se=x._offset+(_.y0+_.y1)/2,Te.attr("text-anchor",br),pe.attr("d","M0,0L"+mr+St+","+St+"V"+(Xr+lr.height/2)+"h"+mr+(Xr*2+lr.width)+"V-"+(Xr+lr.height/2)+"H"+mr+St+"V-"+St+"Z"),V.minY=Se-(Xr+lr.height/2),V.maxY=Se+(Xr+lr.height/2),x.side==="right"?(V.minX=fr+St,V.maxX=fr+St+(Xr*2+lr.width)):(V.minX=fr-St-(Xr*2+lr.width),V.maxX=fr-St);var ae=lr.height/2,de=P-lr.top-ae,Ne="clip"+a._uid+"commonlabel"+x._id,Ge;if(frpe.hoverinfo!=="none");if(De.length===0)return[];var W=a.hoverlabel,X=W.font,$=De[0],te=((n==="x unified"?$.xa:$.ya).unifiedhovertitle||{}).text,ie=te?Ot.hovertemplateString({data:n==="x unified"?[{xa:$.xa,x:$.xVal}]:[{ya:$.ya,y:$.yVal}],fallback:$.trace.hovertemplatefallback,locale:a._d3locale,template:te}):A,ve={showlegend:!0,legend:{title:{text:ie,font:X},font:X,bgcolor:W.bgcolor,bordercolor:W.bordercolor,borderwidth:1,tracegroupgap:7,traceorder:a.legend?a.legend.traceorder:void 0,orientation:"v"}},K={font:X};ave(ve,K,t._fullData);var he=K.legend;he.entries=[];for(var le=0;le=0?ye=Ae:ze+Le=0?ye=ze:Qe+Le=0?Xe=je:Ze+qe=0?Xe=Ze:re+qe=0,(De.idealAlign==="top"||!yt)&&Vt?(mr-=de/2,De.anchor="end"):yt?(mr+=de/2,De.anchor="start"):De.anchor="middle",De.crossPos=mr;else{if(De.pos=mr,yt=ur+ae/2+ft<=R,Vt=ur-ae/2-ft>=0,(De.idealAlign==="left"||!yt)&&Vt)ur-=ae/2,De.anchor="end";else if(yt)ur+=ae/2,De.anchor="start";else{De.anchor="middle";var Nt=ft/2,Sa=ur+Nt-R,bn=ur-Nt;Sa>0&&(ur-=Sa),bn<0&&(ur+=-bn)}De.crossPos=ur}Se.attr("text-anchor",De.anchor),Ie&&Ke.attr("text-anchor",De.anchor),pe.attr("transform",Db(ur,mr)+(i?Qce(ZD):""))}),{hoverLabels:hr,commonLabelBoundingBox:V}}function GD(e,r,t,a,n,i){var c,v;var l="",o="";e.nameOverride!==void 0&&(e.name=e.nameOverride),e.name&&(e.trace._meta&&(e.name=Ot.templateString(e.name,e.trace._meta)),l=XD(e.name,e.nameLength));var s=t.charAt(0),u=s==="x"?"y":"x";e.zLabel!==void 0?(e.xLabel!==void 0&&(o+="x: "+e.xLabel+"
"),e.yLabel!==void 0&&(o+="y: "+e.yLabel+"
"),e.trace.type!=="choropleth"&&e.trace.type!=="choroplethmap"&&(o+=(o?"z: ":"")+e.zLabel)):r&&e[s+"Label"]===n?o=e[u+"Label"]||"":e.xLabel===void 0?e.yLabel!==void 0&&e.trace.type!=="scattercarpet"&&(o=e.yLabel):e.yLabel===void 0?o=e.xLabel:o="("+e.xLabel+", "+e.yLabel+")",(e.text||e.text===0)&&!Array.isArray(e.text)&&(o+=(o?"
":"")+e.text),e.extraText!==void 0&&(o+=(o?"
":"")+e.extraText),i&&o===""&&!e.hovertemplate&&(l===""&&i.remove(),o=l),(v=(c=e.trace)==null?void 0:c.hoverlabel)!=null&&v.split&&(e.hovertemplate="");let{hovertemplate:f=!1}=e;if(f){let h=e.hovertemplateLabels||e;e[s+"Label"]!==n&&(h[s+"other"]=h[s+"Val"],h[s+"otherLabel"]=h[s+"Label"]),o=Ot.hovertemplateString({data:[e.eventData[0]||{},e.trace._meta],fallback:e.trace.hovertemplatefallback,labels:h,locale:a._d3locale,template:f}),o=o.replace(fve,(p,y)=>(l=XD(y,e.nameLength),""))}return[o,l]}function cve(e,r,t,a){var n=r?"xa":"ya",i=r?"ya":"xa",l=0,o=1,s=e.size(),u=new Array(s),f=0,c=a.minX,v=a.maxX,h=a.minY,p=a.maxY,y=function(O){return O*t._invScaleX},m=function(O){return O*t._invScaleY};e.each(function(O){var Y=O[n],G=O[i],V=Y._id.charAt(0)==="x",W=Y.range;f===0&&W&&W[0]>W[1]!==V&&(o=-1);var X=0,$=V?t.width:t.height;if(t.hovermode==="x"||t.hovermode==="y"){var te=KD(O,r),ie=O.anchor,ve=ie==="end"?-1:1,K,he;if(ie==="middle")K=O.crossPos+(V?m(te.y-O.by/2):y(O.bx/2+O.tx2width/2)),he=K+(V?m(O.by):y(O.bx));else if(V)K=O.crossPos+m(St+te.y)-m(O.by/2-St),he=K+m(O.by);else{var le=y(ve*St+te.x),_e=le+y(ve*O.bx);K=O.crossPos+Math.min(le,_e),he=O.crossPos+Math.max(le,_e)}V?h!==void 0&&p!==void 0&&Math.min(he,p)-Math.max(K,h)>1&&(G.side==="left"?(X=G._mainLinePosition,$=t.width):$=G._mainLinePosition):c!==void 0&&v!==void 0&&Math.min(he,v)-Math.max(K,c)>1&&(G.side==="top"?(X=G._mainLinePosition,$=t.height):$=G._mainLinePosition)}u[f++]=[{datum:O,traceIndex:O.trace.index,dp:0,pos:O.pos,posref:O.posref,size:O.by*(V?ive:1)/2,pmin:X,pmax:$}]}),u.sort(function(O,Y){return O[0].posref-Y[0].posref||o*(Y[0].traceIndex-O[0].traceIndex)});var b,_,w,x,M,k,A;function S(O){var Y=O[0],G=O[O.length-1];if(_=Y.pmin-Y.pos-Y.dp+Y.size,w=G.pos+G.dp+G.size-Y.pmax,_>.01){for(M=O.length-1;M>=0;M--)O[M].dp+=_;b=!1}if(!(w<.01)){if(_<-.01){for(M=O.length-1;M>=0;M--)O[M].dp-=w;b=!1}if(b){var V=0;for(x=0;xY.pmax&&V++;for(x=O.length-1;x>=0&&!(V<=0);x--)k=O[x],k.pos>Y.pmax-1&&(k.del=!0,V--);for(x=0;x=0;M--)O[M].dp-=w;for(x=O.length-1;x>=0&&!(V<=0);x--)k=O[x],k.pos+k.dp+k.size>Y.pmax&&(k.del=!0,V--)}}}for(;!b&&l<=s;){for(l++,b=!0,x=0;x.01){for(M=P.length-1;M>=0;M--)P[M].dp+=_;for(D.push.apply(D,P),u.splice(x+1,1),A=0,M=D.length-1;M>=0;M--)A+=D[M].dp;for(w=A/D.length,M=D.length-1;M>=0;M--)D[M].dp-=w;b=!1}else x++}u.forEach(S)}for(x=u.length-1;x>=0;x--){var N=u[x];for(M=N.length-1;M>=0;M--){var B=N[M],H=B.datum;H.offset=B.dp,H.del=B.del}}}function KD(e,r){var t=0,a=e.offset;return r&&(a*=-ove,t=e.offset*lve),{x:t,y:a}}function vve(e){var r={start:1,end:-1,middle:0}[e.anchor],t=r*(St+Xr),a=t+r*(e.txwidth+Xr),n=e.anchor==="middle";return n&&(t-=e.tx2width/2,a+=e.txwidth/2+Xr),{alignShift:r,textShiftX:t,text2ShiftX:a}}function jD(e,r,t,a){var n=function(l){return l*t},i=function(l){return l*a};e.each(function(l){var o=iu.select(this);if(l.del)return o.remove();var s=o.select("text.nums"),u=l.anchor,f=u==="end"?-1:1,c=vve(l),v=KD(l,r),h=v.x,p=v.y,y=u==="middle",m="hoverlabel"in l.trace?l.trace.hoverlabel.showarrow:!0,b;y?b="M-"+n(l.bx/2+l.tx2width/2)+","+i(p-l.by/2)+"h"+n(l.bx)+"v"+i(l.by)+"h-"+n(l.bx)+"Z":m?b="M0,0L"+n(f*St+h)+","+i(St+p)+"v"+i(l.by/2-St)+"h"+n(f*l.bx)+"v-"+i(l.by)+"H"+n(f*St+h)+"V"+i(p-St)+"Z":b="M"+n(f*St+h)+","+i(p-l.by/2)+"h"+n(f*l.bx)+"v"+i(l.by)+"h"+n(-f*l.bx)+"Z",o.select("path").attr("d",b);var _=h+c.textShiftX,w=p+l.ty0-l.by/2+Xr,x=l.textAlign||"auto";x!=="auto"&&(x==="left"&&u!=="start"?(s.attr("text-anchor","start"),_=y?-l.bx/2-l.tx2width/2+Xr:-l.bx-Xr):x==="right"&&u!=="end"&&(s.attr("text-anchor","end"),_=y?l.bx/2-l.tx2width/2-Xr:l.bx+Xr)),s.call(mi.positionText,n(_),i(w)),l.tx2width&&(o.select("text.name").call(mi.positionText,n(c.text2ShiftX+c.alignShift*Xr+h),i(p+l.ty0-l.by/2+Xr)),o.select("rect").call(bl.setRect,n(c.text2ShiftX+(c.alignShift-1)*l.tx2width/2+h),i(p-l.by/2-1),n(l.tx2width),i(l.by+2)))})}function dve(e,r){var t=e.index,a=e.trace||{},n=e.cd[0],i=e.cd[t]||{};function l(v){return v||Vl(v)&&v===0}var o=Array.isArray(t)?function(v,h){var p=Ot.castOption(n,t,v);return l(p)?p:Ot.extractOption({},a,"",h)}:function(v,h){return Ot.extractOption(i,a,v,h)};function s(v,h,p){var y=o(h,p);l(y)&&(e[v]=y)}if(s("hoverinfo","hi","hoverinfo"),s("bgcolor","hbg","hoverlabel.bgcolor"),s("borderColor","hbc","hoverlabel.bordercolor"),s("fontFamily","htf","hoverlabel.font.family"),s("fontSize","hts","hoverlabel.font.size"),s("fontColor","htc","hoverlabel.font.color"),s("fontWeight","htw","hoverlabel.font.weight"),s("fontStyle","hty","hoverlabel.font.style"),s("fontVariant","htv","hoverlabel.font.variant"),s("nameLength","hnl","hoverlabel.namelength"),s("textAlign","hta","hoverlabel.align"),e.posref=r==="y"||r==="closest"&&a.orientation==="h"?e.xa._offset+(e.x0+e.x1)/2:e.ya._offset+(e.y0+e.y1)/2,e.x0=Ot.constrain(e.x0,0,e.xa._length),e.x1=Ot.constrain(e.x1,0,e.xa._length),e.y0=Ot.constrain(e.y0,0,e.ya._length),e.y1=Ot.constrain(e.y1,0,e.ya._length),e.xLabelVal!==void 0&&(e.xLabel="xLabel"in e?e.xLabel:_l.hoverLabelText(e.xa,e.xLabelVal,a.xhoverformat),e.xVal=e.xa.c2d(e.xLabelVal)),e.yLabelVal!==void 0&&(e.yLabel="yLabel"in e?e.yLabel:_l.hoverLabelText(e.ya,e.yLabelVal,a.yhoverformat),e.yVal=e.ya.c2d(e.yLabelVal)),e.zLabelVal!==void 0&&e.zLabel===void 0&&(e.zLabel=String(e.zLabelVal)),!isNaN(e.xerr)&&!(e.xa.type==="log"&&e.xerr<=0)){var u=_l.tickText(e.xa,e.xa.c2l(e.xerr),"hover").text;e.xerrneg!==void 0?e.xLabel+=" +"+u+" / -"+_l.tickText(e.xa,e.xa.c2l(e.xerrneg),"hover").text:e.xLabel+=" \xB1 "+u,r==="x"&&(e.distance+=1)}if(!isNaN(e.yerr)&&!(e.ya.type==="log"&&e.yerr<=0)){var f=_l.tickText(e.ya,e.ya.c2l(e.yerr),"hover").text;e.yerrneg!==void 0?e.yLabel+=" +"+f+" / -"+_l.tickText(e.ya,e.ya.c2l(e.yerrneg),"hover").text:e.yLabel+=" \xB1 "+f,r==="y"&&(e.distance+=1)}var c=e.hoverinfo||e.trace.hoverinfo;return c&&c!=="all"&&(c=Array.isArray(c)?c:c.split("+"),c.indexOf("x")===-1&&(e.xLabel=void 0),c.indexOf("y")===-1&&(e.yLabel=void 0),c.indexOf("z")===-1&&(e.zLabel=void 0),c.indexOf("text")===-1&&(e.text=void 0),c.indexOf("name")===-1&&(e.name=void 0)),e}function UD(e,r,t){var a=t.container,n=t.fullLayout,i=n._size,l=t.event,o=!!r.hLinePoint,s=!!r.vLinePoint,u,f;if(a.selectAll(".spikeline").remove(),!!(s||o)){var c=ua.combine(n.plot_bgcolor,n.paper_bgcolor);if(o){var v=r.hLinePoint,h,p;u=v&&v.xa,f=v&&v.ya;var y=f.spikesnap;y==="cursor"?(h=l.pointerX,p=l.pointerY):(h=u._offset+v.x,p=f._offset+v.y);var m=ua.wcagContrast(v.color,c)<1.5?ua.contrast(c):v.color,b=f.spikemode,_=f.spikethickness,w=f.spikecolor||m,x=_l.getPxPosition(e,f),M,k;if(b.indexOf("toaxis")!==-1||b.indexOf("across")!==-1){if(b.indexOf("toaxis")!==-1&&(M=x,k=h),b.indexOf("across")!==-1){var A=f._counterDomainMin,S=f._counterDomainMax;f.anchor==="free"&&(A=Math.min(A,f.position),S=Math.max(S,f.position)),M=i.l+A*i.w,k=i.l+S*i.w}a.insert("line",":first-child").attr({x1:M,x2:k,y1:p,y2:p,"stroke-width":_,stroke:w,"stroke-dasharray":bl.dashStyle(f.spikedash,_)}).classed("spikeline",!0).classed("crisp",!0),a.insert("line",":first-child").attr({x1:M,x2:k,y1:p,y2:p,"stroke-width":_+2,stroke:c}).classed("spikeline",!0).classed("crisp",!0)}b.indexOf("marker")!==-1&&a.insert("circle",":first-child").attr({cx:x+(f.side!=="right"?_:-_),cy:p,r:_,fill:w}).classed("spikeline",!0)}if(s){var D=r.vLinePoint,P,R;u=D&&D.xa,f=D&&D.ya;var F=u.spikesnap;F==="cursor"?(P=l.pointerX,R=l.pointerY):(P=u._offset+D.x,R=f._offset+D.y);var N=ua.wcagContrast(D.color,c)<1.5?ua.contrast(c):D.color,B=u.spikemode,H=u.spikethickness,O=u.spikecolor||N,Y=_l.getPxPosition(e,u),G,V;if(B.indexOf("toaxis")!==-1||B.indexOf("across")!==-1){if(B.indexOf("toaxis")!==-1&&(G=Y,V=R),B.indexOf("across")!==-1){var W=u._counterDomainMin,X=u._counterDomainMax;u.anchor==="free"&&(W=Math.min(W,u.position),X=Math.max(X,u.position)),G=i.t+(1-X)*i.h,V=i.t+(1-W)*i.h}a.insert("line",":first-child").attr({x1:P,x2:P,y1:G,y2:V,"stroke-width":H,stroke:O,"stroke-dasharray":bl.dashStyle(u.spikedash,H)}).classed("spikeline",!0).classed("crisp",!0),a.insert("line",":first-child").attr({x1:P,x2:P,y1:G,y2:V,"stroke-width":H+2,stroke:c}).classed("spikeline",!0).classed("crisp",!0)}B.indexOf("marker")!==-1&&a.insert("circle",":first-child").attr({cx:P,cy:Y-(u.side!=="top"?H:-H),r:H,fill:O}).classed("spikeline",!0)}}}function hve(e,r,t){if(!t||t.length!==e._hoverdata.length)return!0;for(var a=t.length-1;a>=0;a--){var n=t[a],i=e._hoverdata[a];if(n.curveNumber!==i.curveNumber||String(n.pointNumber)!==String(i.pointNumber)||String(n.pointNumbers)!==String(i.pointNumbers)||n.binNumber!==i.binNumber)return!0}return!1}function VD(e,r){return!r||r.vLinePoint!==e._spikepoints.vLinePoint||r.hLinePoint!==e._spikepoints.hLinePoint}function XD(e,r){return mi.plainText(e||"",{len:r,allowedTags:["br","sub","sup","b","i","em","s","u"]})}function pve(e,r){for(var t=r.charAt(0),a=[],n=[],i=[],l=0;le.offsetTop+e.clientTop,eP=e=>e.offsetLeft+e.clientLeft;function ef(e,r){var t=e._fullLayout,a=r.getBoundingClientRect(),n=a.left,i=a.top,l=n+a.width,o=i+a.height,s=Ot.apply3DTransform(t._invTransform)(n,i),u=Ot.apply3DTransform(t._invTransform)(l,o),f=s[0],c=s[1],v=u[0],h=u[1];return{x:f,y:c,width:v-f,height:h-c,top:Math.min(c,h),left:Math.min(f,v),right:Math.max(f,v),bottom:Math.max(c,h)}}});var H1=U((pke,rP)=>{"use strict";var mve=ke(),yve=kr(),gve=Ui().isUnifiedHover;rP.exports=function(r,t,a,n){n=n||{};var i=t.legend;function l(o){n.font[o]||(n.font[o]=i?t.legend.font[o]:t.font[o])}t&&gve(t.hovermode)&&(n.font||(n.font={}),l("size"),l("family"),l("color"),l("weight"),l("style"),l("variant"),i?(n.bgcolor||(n.bgcolor=yve.combine(t.legend.bgcolor,t.paper_bgcolor)),n.bordercolor||(n.bordercolor=t.legend.bordercolor)):n.bgcolor||(n.bgcolor=t.paper_bgcolor)),a("hoverlabel.bgcolor",n.bgcolor),a("hoverlabel.bordercolor",n.bordercolor),a("hoverlabel.namelength",n.namelength),a("hoverlabel.showarrow",n.showarrow),mve.coerceFont(a,"hoverlabel.font",n.font),a("hoverlabel.align",n.align)}});var aP=U((mke,tP)=>{"use strict";var xve=ke(),bve=H1(),_ve=f0();tP.exports=function(r,t){function a(n,i){return xve.coerce(r,t,_ve,n,i)}bve(r,t,a)}});var lP=U((yke,iP)=>{"use strict";var nP=ke(),wve=Pc(),Tve=H1();iP.exports=function(r,t,a,n){function i(o,s){return nP.coerce(r,t,wve,o,s)}var l=nP.extendFlat({},n.hoverlabel);t.hovertemplate&&(l.namelength=-1),Tve(r,t,i,l)}});var zb=U((gke,oP)=>{"use strict";var Mve=ke(),Ave=f0();oP.exports=function(r,t){function a(n,i){return t[n]!==void 0?t[n]:Mve.coerce(r,t,Ave,n,i)}return a("clickmode"),a("hoversubplots"),a("hoveranywhere"),a("clickanywhere"),a("hovermode")}});var fP=U((xke,uP)=>{"use strict";var sP=ke(),kve=f0(),Cve=zb(),Lve=H1();uP.exports=function(r,t){function a(u,f){return sP.coerce(r,t,kve,u,f)}var n=Cve(r,t);n&&(a("hoverdistance"),a("spikedistance"),n.indexOf("unified")!==-1&&a("hoversort"));var i=a("dragmode");i==="select"&&a("selectdirection");var l=t._has("map"),o=t._has("geo"),s=t._basePlotModules.length;t.dragmode==="zoom"&&((l||o)&&s===1||l&&o&&s===2)&&(t.dragmode="pan"),Lve(r,t,a),sP.coerceFont(a,"hoverlabel.grouptitlefont",t.hoverlabel.font)}});var dP=U((bke,vP)=>{"use strict";var Fb=ke(),cP=Ar();vP.exports=function(r){var t=r.calcdata,a=r._fullLayout;function n(u){return function(f){return Fb.coerceHoverinfo({hoverinfo:f},{_module:u._module},a)}}for(var i=0;i{"use strict";var qve=Ar(),hP=Ui(),Dve=Rb().hover;pP.exports=function(r,t,a){var n=qve.getComponentMethod("annotations","onClick")(r,r._hoverdata),i=r._fullLayout;a!==void 0&&Dve(r,t,a,!0);function l(){var s,u,f,c,v,h;var o={points:r._hoverdata,event:t};(s=o.xaxes)!=null||(o.xaxes=r._hoverXAxes),(u=o.yaxes)!=null||(o.yaxes=r._hoverYAxes),(f=o.xvals)!=null||(o.xvals=r._hoverXVals&&hP.c2dApply(r._hoverXAxes,r._hoverXVals)),(c=o.yvals)!=null||(o.yvals=r._hoverYVals&&hP.c2dApply(r._hoverYAxes,r._hoverYVals)),(v=o.xPixel)!=null||(o.xPixel=r._hoverPointerX),(h=o.yPixel)!=null||(o.yPixel=r._hoverPointerY),r.emit("plotly_click",o)}(r._hoverdata||i.clickanywhere)&&t&&t.target&&(r._hoverdata||(r._hoverdata=[]),n&&n.then?n.then(l):l(),t.stopImmediatePropagation&&t.stopImmediatePropagation())}});var yi=U((wke,xP)=>{"use strict";var Pve=Er(),O1=ke(),Eve=Xi(),Lv=Ui(),yP=f0(),gP=Rb();xP.exports={moduleType:"component",name:"fx",constants:(Sc(),Fe(Lc)),schema:{layout:yP},attributes:Pc(),layoutAttributes:yP,supplyLayoutGlobalDefaults:aP(),supplyDefaults:lP(),supplyLayoutDefaults:fP(),calc:dP(),getDistanceFunction:Lv.getDistanceFunction,getClosest:Lv.getClosest,inbox:Lv.inbox,quadrature:Lv.quadrature,appendArrayPointValue:Lv.appendArrayPointValue,castHoverOption:zve,castHoverinfo:Fve,hover:gP.hover,unhover:Eve.unhover,loneHover:gP.loneHover,loneUnhover:Rve,click:mP()};function Rve(e){var r=O1.isD3Selection(e)?e:Pve.select(e);r.selectAll("g.hovertext").remove(),r.selectAll(".spikeline").remove()}function zve(e,r,t){return O1.castOption(e,r,"hoverlabel."+t)}function Fve(e,r,t){function a(n){return O1.coerceHoverinfo({hoverinfo:n},{_module:e._module},r)}return O1.castOption(e,t,"hoverinfo",a)}});var tf=U(Xl=>{"use strict";Xl.selectMode=function(e){return e==="lasso"||e==="select"};Xl.drawMode=function(e){return e==="drawclosedpath"||e==="drawopenpath"||e==="drawline"||e==="drawrect"||e==="drawcircle"};Xl.openMode=function(e){return e==="drawline"||e==="drawopenpath"};Xl.rectMode=function(e){return e==="select"||e==="drawline"||e==="drawrect"||e==="drawcircle"};Xl.freeMode=function(e){return e==="lasso"||e==="drawclosedpath"||e==="drawopenpath"};Xl.selectingOrDrawing=function(e){return Xl.freeMode(e)||Xl.rectMode(e)}});var Y1=U((Mke,bP)=>{"use strict";bP.exports=function(r){var t=r._fullLayout;t._glcanvas&&t._glcanvas.size()&&t._glcanvas.each(function(a){a.regl&&a.regl.clear({color:!0,depth:!0})})}});var G1=U((Ake,_P)=>{"use strict";_P.exports={undo:{width:857.1,height:1e3,path:"m857 350q0-87-34-166t-91-137-137-92-166-34q-96 0-183 41t-147 114q-4 6-4 13t5 11l76 77q6 5 14 5 9-1 13-7 41-53 100-82t126-29q58 0 110 23t92 61 61 91 22 111-22 111-61 91-92 61-110 23q-55 0-105-20t-90-57l77-77q17-16 8-38-10-23-33-23h-250q-15 0-25 11t-11 25v250q0 24 22 33 22 10 39-8l72-72q60 57 137 88t159 31q87 0 166-34t137-92 91-137 34-166z",transform:"matrix(1 0 0 -1 0 850)"},home:{width:928.6,height:1e3,path:"m786 296v-267q0-15-11-26t-25-10h-214v214h-143v-214h-214q-15 0-25 10t-11 26v267q0 1 0 2t0 2l321 264 321-264q1-1 1-4z m124 39l-34-41q-5-5-12-6h-2q-7 0-12 3l-386 322-386-322q-7-4-13-4-7 2-12 7l-35 41q-4 5-3 13t6 12l401 334q18 15 42 15t43-15l136-114v109q0 8 5 13t13 5h107q8 0 13-5t5-13v-227l122-102q5-5 6-12t-4-13z",transform:"matrix(1 0 0 -1 0 850)"},"camera-retro":{width:1e3,height:1e3,path:"m518 386q0 8-5 13t-13 5q-37 0-63-27t-26-63q0-8 5-13t13-5 12 5 5 13q0 23 16 38t38 16q8 0 13 5t5 13z m125-73q0-59-42-101t-101-42-101 42-42 101 42 101 101 42 101-42 42-101z m-572-320h858v71h-858v-71z m643 320q0 89-62 152t-152 62-151-62-63-152 63-151 151-63 152 63 62 151z m-571 358h214v72h-214v-72z m-72-107h858v143h-462l-36-71h-360v-72z m929 143v-714q0-30-21-51t-50-21h-858q-29 0-50 21t-21 51v714q0 30 21 51t50 21h858q29 0 50-21t21-51z",transform:"matrix(1 0 0 -1 0 850)"},curlybraces:{width:18,height:16,path:"M 9,4 C 7.354992,4 6,5.354992 6,7 V 9 C 6,9.2999997 5.8778068,9.8883542 5.5878906,10.291016 5.2979744,10.693677 4.9222213,11 4,11 a 1.0001,1.0001 0 0 0 0,2 c 0.2999997,0 0.8883542,0.122193 1.2910156,0.412109 C 5.693677,13.702026 6,14.077779 6,15 v 2 c 0,1.645008 1.354992,3 3,3 h 0.5 a 1,1 0 0 0 1,-1 1,1 0 0 0 -1,-1 H 9 C 8.4358712,18 8,17.564129 8,17 V 15 C 8,13.625876 7.3766799,12.602305 6.6113281,11.96875 6.8086352,11.794047 7.0679793,11.657537 7.2109375,11.458984 7.8210204,10.611647 8,9.6999993 8,9 V 7 C 8,6.4358712 8.4358712,6 9,6 h 0.5 a 1,1 0 0 0 1,-1 1,1 0 0 0 -1,-1 z m 5.5,0 a 1,1 0 0 0 -1,1 1,1 0 0 0 1,1 H 15 c 0.564129,0 1,0.4358712 1,1 v 2 c 0,0.6999993 0.17898,1.611647 0.789062,2.458984 0.142959,0.198553 0.402303,0.335063 0.59961,0.509766 C 16.62332,12.602305 16,13.625876 16,15 v 2 c 0,0.564129 -0.435871,1 -1,1 h -0.5 a 1,1 0 0 0 -1,1 1,1 0 0 0 1,1 H 15 c 1.645008,0 3,-1.354992 3,-3 v -2 c 0,-0.922221 0.306323,-1.297974 0.708984,-1.587891 C 19.111646,13.122193 19.7,13 20,13 a 1.0001,1.0001 0 0 0 0,-2 C 19.077779,11 18.702026,10.693677 18.412109,10.291016 18.122193,9.8883542 18,9.2999997 18,9 V 7 C 18,5.354992 16.645008,4 15,4 Z",transform:"translate(-3 -4)"},zoombox:{width:1e3,height:1e3,path:"m1000-25l-250 251c40 63 63 138 63 218 0 224-182 406-407 406-224 0-406-182-406-406s183-406 407-406c80 0 155 22 218 62l250-250 125 125z m-812 250l0 438 437 0 0-438-437 0z m62 375l313 0 0-312-313 0 0 312z",transform:"matrix(1 0 0 -1 0 850)"},pan:{width:1e3,height:1e3,path:"m1000 350l-187 188 0-125-250 0 0 250 125 0-188 187-187-187 125 0 0-250-250 0 0 125-188-188 186-187 0 125 252 0 0-250-125 0 187-188 188 188-125 0 0 250 250 0 0-126 187 188z",transform:"matrix(1 0 0 -1 0 850)"},zoom_plus:{width:875,height:1e3,path:"m1 787l0-875 875 0 0 875-875 0z m687-500l-187 0 0-187-125 0 0 187-188 0 0 125 188 0 0 187 125 0 0-187 187 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},zoom_minus:{width:875,height:1e3,path:"m0 788l0-876 875 0 0 876-875 0z m688-500l-500 0 0 125 500 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},autoscale:{width:1e3,height:1e3,path:"m250 850l-187 0-63 0 0-62 0-188 63 0 0 188 187 0 0 62z m688 0l-188 0 0-62 188 0 0-188 62 0 0 188 0 62-62 0z m-875-938l0 188-63 0 0-188 0-62 63 0 187 0 0 62-187 0z m875 188l0-188-188 0 0-62 188 0 62 0 0 62 0 188-62 0z m-125 188l-1 0-93-94-156 156 156 156 92-93 2 0 0 250-250 0 0-2 93-92-156-156-156 156 94 92 0 2-250 0 0-250 0 0 93 93 157-156-157-156-93 94 0 0 0-250 250 0 0 0-94 93 156 157 156-157-93-93 0 0 250 0 0 250z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_basic:{width:1500,height:1e3,path:"m375 725l0 0-375-375 375-374 0-1 1125 0 0 750-1125 0z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_compare:{width:1125,height:1e3,path:"m187 786l0 2-187-188 188-187 0 0 937 0 0 373-938 0z m0-499l0 1-187-188 188-188 0 0 937 0 0 376-938-1z",transform:"matrix(1 0 0 -1 0 850)"},plotlylogo:{width:1542,height:1e3,path:"m0-10h182v-140h-182v140z m228 146h183v-286h-183v286z m225 714h182v-1000h-182v1000z m225-285h182v-715h-182v715z m225 142h183v-857h-183v857z m231-428h182v-429h-182v429z m225-291h183v-138h-183v138z",transform:"matrix(1 0 0 -1 0 850)"},"z-axis":{width:1e3,height:1e3,path:"m833 5l-17 108v41l-130-65 130-66c0 0 0 38 0 39 0-1 36-14 39-25 4-15-6-22-16-30-15-12-39-16-56-20-90-22-187-23-279-23-261 0-341 34-353 59 3 60 228 110 228 110-140-8-351-35-351-116 0-120 293-142 474-142 155 0 477 22 477 142 0 50-74 79-163 96z m-374 94c-58-5-99-21-99-40 0-24 65-43 144-43 79 0 143 19 143 43 0 19-42 34-98 40v216h87l-132 135-133-135h88v-216z m167 515h-136v1c16 16 31 34 46 52l84 109v54h-230v-71h124v-1c-16-17-28-32-44-51l-89-114v-51h245v72z",transform:"matrix(1 0 0 -1 0 850)"},"3d_rotate":{width:1e3,height:1e3,path:"m922 660c-5 4-9 7-14 11-359 263-580-31-580-31l-102 28 58-400c0 1 1 1 2 2 118 108 351 249 351 249s-62 27-100 42c88 83 222 183 347 122 16-8 30-17 44-27-2 1-4 2-6 4z m36-329c0 0 64 229-88 296-62 27-124 14-175-11 157-78 225-208 249-266 8-19 11-31 11-31 2 5 6 15 11 32-5-13-8-20-8-20z m-775-239c70-31 117-50 198-32-121 80-199 346-199 346l-96-15-58-12c0 0 55-226 155-287z m603 133l-317-139c0 0 4-4 19-14 7-5 24-15 24-15s-177-147-389 4c235-287 536-112 536-112l31-22 100 299-4-1z m-298-153c6-4 14-9 24-15 0 0-17 10-24 15z",transform:"matrix(1 0 0 -1 0 850)"},camera:{width:1e3,height:1e3,path:"m500 450c-83 0-150-67-150-150 0-83 67-150 150-150 83 0 150 67 150 150 0 83-67 150-150 150z m400 150h-120c-16 0-34 13-39 29l-31 93c-6 15-23 28-40 28h-340c-16 0-34-13-39-28l-31-94c-6-15-23-28-40-28h-120c-55 0-100-45-100-100v-450c0-55 45-100 100-100h800c55 0 100 45 100 100v450c0 55-45 100-100 100z m-400-550c-138 0-250 112-250 250 0 138 112 250 250 250 138 0 250-112 250-250 0-138-112-250-250-250z m365 380c-19 0-35 16-35 35 0 19 16 35 35 35 19 0 35-16 35-35 0-19-16-35-35-35z",transform:"matrix(1 0 0 -1 0 850)"},movie:{width:1e3,height:1e3,path:"m938 413l-188-125c0 37-17 71-44 94 64 38 107 107 107 187 0 121-98 219-219 219-121 0-219-98-219-219 0-61 25-117 66-156h-115c30 33 49 76 49 125 0 103-84 187-187 187s-188-84-188-187c0-57 26-107 65-141-38-22-65-62-65-109v-250c0-70 56-126 125-126h500c69 0 125 56 125 126l188-126c34 0 62 28 62 63v375c0 35-28 63-62 63z m-750 0c-69 0-125 56-125 125s56 125 125 125 125-56 125-125-56-125-125-125z m406-1c-87 0-157 70-157 157 0 86 70 156 157 156s156-70 156-156-70-157-156-157z",transform:"matrix(1 0 0 -1 0 850)"},question:{width:857.1,height:1e3,path:"m500 82v107q0 8-5 13t-13 5h-107q-8 0-13-5t-5-13v-107q0-8 5-13t13-5h107q8 0 13 5t5 13z m143 375q0 49-31 91t-77 65-95 23q-136 0-207-119-9-14 4-24l74-55q4-4 10-4 9 0 14 7 30 38 48 51 19 14 48 14 27 0 48-15t21-33q0-21-11-34t-38-25q-35-16-65-48t-29-70v-20q0-8 5-13t13-5h107q8 0 13 5t5 13q0 10 12 27t30 28q18 10 28 16t25 19 25 27 16 34 7 45z m214-107q0-117-57-215t-156-156-215-58-216 58-155 156-58 215 58 215 155 156 216 58 215-58 156-156 57-215z",transform:"matrix(1 0 0 -1 0 850)"},disk:{width:857.1,height:1e3,path:"m214-7h429v214h-429v-214z m500 0h72v500q0 8-6 21t-11 20l-157 156q-5 6-19 12t-22 5v-232q0-22-15-38t-38-16h-322q-22 0-37 16t-16 38v232h-72v-714h72v232q0 22 16 38t37 16h465q22 0 38-16t15-38v-232z m-214 518v178q0 8-5 13t-13 5h-107q-7 0-13-5t-5-13v-178q0-8 5-13t13-5h107q7 0 13 5t5 13z m357-18v-518q0-22-15-38t-38-16h-750q-23 0-38 16t-16 38v750q0 22 16 38t38 16h517q23 0 50-12t42-26l156-157q16-15 27-42t11-49z",transform:"matrix(1 0 0 -1 0 850)"},cloudupload:{width:640,height:640,path:"M451.5 160C434.9 160 418.8 164.5 404.7 172.7C388.9 156.7 370.5 143.3 350.2 133.2C378.4 109.2 414.3 96 451.5 96C537.9 96 608 166 608 252.5C608 294 591.5 333.8 562.2 363.1L491.1 434.2C461.8 463.5 422 480 380.5 480C294.1 480 224 410 224 323.5C224 322 224 320.5 224.1 319C224.6 301.3 239.3 287.4 257 287.9C274.7 288.4 288.6 303.1 288.1 320.8C288.1 321.7 288.1 322.6 288.1 323.4C288.1 374.5 329.5 415.9 380.6 415.9C405.1 415.9 428.6 406.2 446 388.8L517.1 317.7C534.4 300.4 544.2 276.8 544.2 252.3C544.2 201.2 502.8 159.8 451.7 159.8zM307.2 237.3C305.3 236.5 303.4 235.4 301.7 234.2C289.1 227.7 274.7 224 259.6 224C235.1 224 211.6 233.7 194.2 251.1L123.1 322.2C105.8 339.5 96 363.1 96 387.6C96 438.7 137.4 480.1 188.5 480.1C205 480.1 221.1 475.7 235.2 467.5C251 483.5 269.4 496.9 289.8 507C261.6 530.9 225.8 544.2 188.5 544.2C102.1 544.2 32 474.2 32 387.7C32 346.2 48.5 306.4 77.8 277.1L148.9 206C178.2 176.7 218 160.2 259.5 160.2C346.1 160.2 416 230.8 416 317.1C416 318.4 416 319.7 416 321C415.6 338.7 400.9 352.6 383.2 352.2C365.5 351.8 351.6 337.1 352 319.4C352 318.6 352 317.9 352 317.1C352 283.4 334 253.8 307.2 237.5z",transform:"matrix(1 0 0 1 -15 -15)"},drawopenpath:{width:70,height:70,path:"M33.21,85.65a7.31,7.31,0,0,1-2.59-.48c-8.16-3.11-9.27-19.8-9.88-41.3-.1-3.58-.19-6.68-.35-9-.15-2.1-.67-3.48-1.43-3.79-2.13-.88-7.91,2.32-12,5.86L3,32.38c1.87-1.64,11.55-9.66,18.27-6.9,2.13.87,4.75,3.14,5.17,9,.17,2.43.26,5.59.36,9.25a224.17,224.17,0,0,0,1.5,23.4c1.54,10.76,4,12.22,4.48,12.4.84.32,2.79-.46,5.76-3.59L43,80.07C41.53,81.57,37.68,85.64,33.21,85.65ZM74.81,69a11.34,11.34,0,0,0,6.09-6.72L87.26,44.5,74.72,32,56.9,38.35c-2.37.86-5.57,3.42-6.61,6L38.65,72.14l8.42,8.43ZM55,46.27a7.91,7.91,0,0,1,3.64-3.17l14.8-5.3,8,8L76.11,60.6l-.06.19a6.37,6.37,0,0,1-3,3.43L48.25,74.59,44.62,71Zm16.57,7.82A6.9,6.9,0,1,0,64.64,61,6.91,6.91,0,0,0,71.54,54.09Zm-4.05,0a2.85,2.85,0,1,1-2.85-2.85A2.86,2.86,0,0,1,67.49,54.09Zm-4.13,5.22L60.5,56.45,44.26,72.7l2.86,2.86ZM97.83,35.67,84.14,22l-8.57,8.57L89.26,44.24Zm-13.69-8,8,8-2.85,2.85-8-8Z",transform:"matrix(1 0 0 1 -15 -15)"},drawclosedpath:{width:90,height:90,path:"M88.41,21.12a26.56,26.56,0,0,0-36.18,0l-2.07,2-2.07-2a26.57,26.57,0,0,0-36.18,0,23.74,23.74,0,0,0,0,34.8L48,90.12a3.22,3.22,0,0,0,4.42,0l36-34.21a23.73,23.73,0,0,0,0-34.79ZM84,51.24,50.16,83.35,16.35,51.25a17.28,17.28,0,0,1,0-25.47,20,20,0,0,1,27.3,0l4.29,4.07a3.23,3.23,0,0,0,4.44,0l4.29-4.07a20,20,0,0,1,27.3,0,17.27,17.27,0,0,1,0,25.46ZM66.76,47.68h-33v6.91h33ZM53.35,35H46.44V68h6.91Z",transform:"matrix(1 0 0 1 -5 -5)"},lasso:{width:1031,height:1e3,path:"m1018 538c-36 207-290 336-568 286-277-48-473-256-436-463 10-57 36-108 76-151-13-66 11-137 68-183 34-28 75-41 114-42l-55-70 0 0c-2-1-3-2-4-3-10-14-8-34 5-45 14-11 34-8 45 4 1 1 2 3 2 5l0 0 113 140c16 11 31 24 45 40 4 3 6 7 8 11 48-3 100 0 151 9 278 48 473 255 436 462z m-624-379c-80 14-149 48-197 96 42 42 109 47 156 9 33-26 47-66 41-105z m-187-74c-19 16-33 37-39 60 50-32 109-55 174-68-42-25-95-24-135 8z m360 75c-34-7-69-9-102-8 8 62-16 128-68 170-73 59-175 54-244-5-9 20-16 40-20 61-28 159 121 317 333 354s407-60 434-217c28-159-121-318-333-355z",transform:"matrix(1 0 0 -1 0 850)"},selectbox:{width:1e3,height:1e3,path:"m0 850l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-285l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z",transform:"matrix(1 0 0 -1 0 850)"},drawline:{width:70,height:70,path:"M60.64,62.3a11.29,11.29,0,0,0,6.09-6.72l6.35-17.72L60.54,25.31l-17.82,6.4c-2.36.86-5.57,3.41-6.6,6L24.48,65.5l8.42,8.42ZM40.79,39.63a7.89,7.89,0,0,1,3.65-3.17l14.79-5.31,8,8L61.94,54l-.06.19a6.44,6.44,0,0,1-3,3.43L34.07,68l-3.62-3.63Zm16.57,7.81a6.9,6.9,0,1,0-6.89,6.9A6.9,6.9,0,0,0,57.36,47.44Zm-4,0a2.86,2.86,0,1,1-2.85-2.85A2.86,2.86,0,0,1,53.32,47.44Zm-4.13,5.22L46.33,49.8,30.08,66.05l2.86,2.86ZM83.65,29,70,15.34,61.4,23.9,75.09,37.59ZM70,21.06l8,8-2.84,2.85-8-8ZM87,80.49H10.67V87H87Z",transform:"matrix(1 0 0 1 -15 -15)"},drawrect:{width:80,height:80,path:"M78,22V79H21V22H78m9-9H12V88H87V13ZM68,46.22H31V54H68ZM53,32H45.22V69H53Z",transform:"matrix(1 0 0 1 -10 -10)"},drawcircle:{width:80,height:80,path:"M50,84.72C26.84,84.72,8,69.28,8,50.3S26.84,15.87,50,15.87,92,31.31,92,50.3,73.16,84.72,50,84.72Zm0-60.59c-18.6,0-33.74,11.74-33.74,26.17S31.4,76.46,50,76.46,83.74,64.72,83.74,50.3,68.6,24.13,50,24.13Zm17.15,22h-34v7.11h34Zm-13.8-13H46.24v34h7.11Z",transform:"matrix(1 0 0 1 -10 -10)"},eraseshape:{width:80,height:80,path:"M82.77,78H31.85L6,49.57,31.85,21.14H82.77a8.72,8.72,0,0,1,8.65,8.77V69.24A8.72,8.72,0,0,1,82.77,78ZM35.46,69.84H82.77a.57.57,0,0,0,.49-.6V29.91a.57.57,0,0,0-.49-.61H35.46L17,49.57Zm32.68-34.7-24,24,5,5,24-24Zm-19,.53-5,5,24,24,5-5Z",transform:"matrix(1 0 0 1 -10 -10)"},spikeline:{width:1e3,height:1e3,path:"M512 409c0-57-46-104-103-104-57 0-104 47-104 104 0 57 47 103 104 103 57 0 103-46 103-103z m-327-39l92 0 0 92-92 0z m-185 0l92 0 0 92-92 0z m370-186l92 0 0 93-92 0z m0-184l92 0 0 92-92 0z",transform:"matrix(1.5 0 0 -1.5 0 850)"},pencil:{width:1792,height:1792,path:"M491 1536l91-91-235-235-91 91v107h128v128h107zm523-928q0-22-22-22-10 0-17 7l-542 542q-7 7-7 17 0 22 22 22 10 0 17-7l542-542q7-7 7-17zm-54-192l416 416-832 832h-416v-416zm683 96q0 53-37 90l-166 166-416-416 166-165q36-38 90-38 53 0 91 38l235 234q37 39 37 91z",transform:"matrix(1 0 0 1 0 1)"},newplotlylogo:{name:"newplotlylogo",svg:[""," plotly-logomark"," "," "," "," "," "," "," "," "," "," "," "," "," ",""].join("")}}});var U1={};vt(U1,{CIRCLE_SIDES:()=>Nve,SQRT2:()=>Uve,cos45:()=>Yve,i000:()=>Ive,i090:()=>Bve,i180:()=>Hve,i270:()=>Ove,sin45:()=>Gve});var Nve,Ive,Bve,Hve,Ove,Yve,Gve,Uve,V1=Lr(()=>{"use strict";Nve=32,Ive=0,Bve=8,Hve=16,Ove=24,Yve=Math.cos(Math.PI/4),Gve=Math.sin(Math.PI/4),Uve=Math.sqrt(2)});var X1=U((kke,TP)=>{"use strict";var Vve=ke().strTranslate;function wP(e,r){switch(e.type){case"log":return e.p2d(r);case"date":return e.p2r(r,0,e.calendar);default:return e.p2r(r)}}function Xve(e,r){switch(e.type){case"log":return e.d2p(r);case"date":return e.r2p(r,0,e.calendar);default:return e.r2p(r)}}function Wve(e){var r=e._id.charAt(0)==="y"?1:0;return function(t){return wP(e,t[r])}}function Zve(e){return Vve(e.xaxis._offset,e.yaxis._offset)}TP.exports={p2r:wP,r2p:Xve,axValue:Wve,getTransform:Zve}});var Io=U(Wl=>{"use strict";var Jve=Tx(),kP=(V1(),Fe(U1)),af=kP.CIRCLE_SIDES,Nb=kP.SQRT2,CP=X1(),MP=CP.p2r,AP=CP.r2p,$ve=[0,3,4,5,6,1,2],Kve=[0,3,4,1,2];Wl.writePaths=function(e){var r=e.length;if(!r)return"M0,0Z";for(var t="",a=0;a0&&s{"use strict";var LP=oa(),EP=tf(),jve=EP.drawMode,Qve=EP.openMode,nf=(V1(),Fe(U1)),SP=nf.i000,qP=nf.i090,DP=nf.i180,PP=nf.i270,e2e=nf.cos45,r2e=nf.sin45,RP=X1(),Z1=RP.p2r,Bo=RP.r2p,t2e=Lo(),a2e=t2e.clearOutline,J1=Io(),n2e=J1.readPaths,i2e=J1.writePaths,l2e=J1.ellipseOver,o2e=J1.fixDatesForPaths;function s2e(e,r){if(e.length){var t=e[0][0];if(t){var a=r.gd,n=r.isActiveShape,i=r.dragmode,l=(a.layout||{}).shapes||[];if(!jve(i)&&n!==void 0){var o=a._fullLayout._activeShapeIndex;if(o{"use strict";var u2e=tf(),f2e=u2e.selectMode,c2e=Lo(),v2e=c2e.clearOutline,Ib=Io(),d2e=Ib.readPaths,h2e=Ib.writePaths,p2e=Ib.fixDatesForPaths;NP.exports=function(r,t){if(r.length){var a=r[0][0];if(a){var n=a.getAttribute("d"),i=t.gd,l=i._fullLayout.newselection,o=t.plotinfo,s=o.xaxis,u=o.yaxis,f=t.isActiveSelection,c=t.dragmode,v=(i.layout||{}).selections||[];if(!f2e(c)&&f!==void 0){var h=i._fullLayout._activeSelectionIndex;if(hb2e,paramIsX:()=>g2e,paramIsY:()=>x2e,paramRE:()=>y2e,segmentRE:()=>m2e});var m2e,y2e,g2e,x2e,b2e,Dv=Lr(()=>{"use strict";m2e=/[MLHVQCTSZ][^MLHVQCTSZ]*/g,y2e=/[^\s,]+/g,g2e={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:{}},x2e={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:3},Z:{}},b2e={M:2,L:2,H:1,V:1,Q:4,C:6,T:2,S:4,Z:0}});var Oo=U(Da=>{"use strict";var Tl=(Dv(),Fe(qv)),IP=ke(),Ho=Kr();Da.rangeToShapePosition=function(e){return e.type==="log"?e.r2d:function(r){return r}};Da.shapePositionToRange=function(e){return e.type==="log"?e.d2r:function(r){return r}};Da.decodeDate=function(e){return function(r){return r.replace&&(r=r.replace("_"," ")),e(r)}};Da.encodeDate=function(e){return function(r){return e(r).replace(" ","_")}};Da.extractPathCoords=function(e,r,t){var a=[],n=e.match(Tl.segmentRE);return n.forEach(function(i){var l=r[i.charAt(0)].drawn;if(l!==void 0){var o=i.slice(1).match(Tl.paramRE);if(!(!o||o.length{let o=l.charAt(0),s=n[o].drawn!==void 0;return i+(s?1:0)},0)};Da.getDataToPixel=function(e,r,t,a,n){var i=e._fullLayout._size,l;if(r)if(n==="domain")l=function(s){return r._length*(a?1-s:s)+r._offset};else{var o=Da.shapePositionToRange(r);l=function(s){var u=wl(r,t);return r._offset+r.r2p(o(s,!0))+u},r.type==="date"&&(l=Da.decodeDate(l))}else a?l=function(s){return i.t+i.h*(1-s)}:l=function(s){return i.l+i.w*s};return l};Da.getPixelToData=function(e,r,t,a){var n=e._fullLayout._size,i;if(r)if(a==="domain")i=function(o){var s=(o-r._offset)/r._length;return t?1-s:s};else{var l=Da.rangeToShapePosition(r);i=function(o){return l(r.p2r(o-r._offset))}}else t?i=function(o){return 1-(o-n.t)/n.h}:i=function(o){return(o-n.l)/n.w};return i};Da.roundPositionForSharpStrokeRendering=function(e,r){var t=Math.round(r%2)===1,a=Math.round(e);return t?a+.5:a};Da.makeShapesOptionsAndPlotinfo=function(e,r){var t=e._fullLayout.shapes[r]||{},a=e._fullLayout._plots[t.xref+t.yref],n=!!a;return n?a._hadPlotinfo=!0:(a={},t.xref&&t.xref!=="paper"&&(a.xaxis=e._fullLayout[t.xref+"axis"]),t.yref&&t.yref!=="paper"&&(a.yaxis=e._fullLayout[t.yref+"axis"])),a.xsizemode=t.xsizemode,a.ysizemode=t.ysizemode,a.xanchor=t.xanchor,a.yanchor=t.yanchor,{options:t,plotinfo:a}};Da.makeSelectionsOptionsAndPlotinfo=function(e,r){var t=e._fullLayout.selections[r]||{},a=e._fullLayout._plots[t.xref+t.yref],n=!!a;return n?a._hadPlotinfo=!0:(a={},t.xref&&(a.xaxis=e._fullLayout[t.xref+"axis"]),t.yref&&(a.yaxis=e._fullLayout[t.yref+"axis"])),{options:t,plotinfo:a}};Da.getPathString=function(e,r){let t=r.type,a=Ho.getRefType(r.xref),n=Ho.getRefType(r.yref),i=e._fullLayout._size;var l,o,s,u,f,c,v,h,p,y,m,b;function _(P,R,F,N){var B;if(P)if(R==="domain")N?B=function(H){return P._offset+P._length*(1-H)}:B=function(H){return P._offset+P._length*H};else{let H=Da.shapePositionToRange(P);B=function(O){return P._offset+P.r2p(H(O,!0))},F==="path"&&P.type==="date"&&(B=Da.decodeDate(B))}else N?B=function(H){return i.t+i.h*(1-H)}:B=function(H){return i.l+i.w*H};return B}if(a==="array"?(v=[],l=r.xref.map(function(P){return Ho.getFromId(e,P)}),v=r.xref.map(function(P,R){return _(l[R],Ho.getRefType(P),t,!1)})):(l=Ho.getFromId(e,r.xref),v=_(l,a,t,!1)),n==="array"?(h=[],o=r.yref.map(function(P){return Ho.getFromId(e,P)}),h=r.yref.map(function(P,R){return _(o[R],Ho.getRefType(P),t,!0)})):(o=Ho.getFromId(e,r.yref),h=_(o,n,t,!0)),t==="path")return _2e(r,v,h);if(a==="array")s=wl(l[0],r.x0shift),u=wl(l[1],r.x1shift),p=v[0](r.x0)+s,y=v[1](r.x1)+u;else if(s=wl(l,r.x0shift),u=wl(l,r.x1shift),r.xsizemode==="pixel"){let P=v(r.xanchor);p=P+r.x0+s,y=P+r.x1+u}else p=v(r.x0)+s,y=v(r.x1)+u;if(n==="array")f=wl(o[0],r.y0shift),c=wl(o[1],r.y1shift),m=h[0](r.y0)+f,b=h[1](r.y1)+c;else if(f=wl(o,r.y0shift),c=wl(o,r.y1shift),r.ysizemode==="pixel"){let P=h(r.yanchor);m=P-r.y0+f,b=P-r.y1+c}else m=h(r.y0)+f,b=h(r.y1)+c;if(t==="line")return"M"+p+","+m+"L"+y+","+b;if(t==="rect")return"M"+p+","+m+"H"+y+"V"+b+"H"+p+"Z";var w=(p+y)/2,x=(m+b)/2,M=Math.abs(w-p),k=Math.abs(x-m),A="A"+M+","+k,S=w+M+","+x,D=w+","+(x-k);return"M"+S+A+" 0 1,1 "+D+A+" 0 0,1 "+S+"Z"};function _2e(e,r,t){let a=e.path,n=e.xsizemode,i=e.ysizemode,l=e.xanchor,o=e.yanchor,s=Array.isArray(e.xref),u=Array.isArray(e.yref);var f=0,c=0;return a.replace(Tl.segmentRE,function(v){var h=0,p=v.charAt(0),y=Tl.paramIsX[p],m=Tl.paramIsY[p],b=Tl.numParams[p];let _=y.drawn!==void 0,w=m.drawn!==void 0,x=s?r[f]:r,M=u?t[c]:t;var k=v.slice(1).replace(Tl.paramRE,function(A){return y[h]?n==="pixel"?A=x(l)+Number(A):A=x(A):m[h]&&(i==="pixel"?A=M(o)-Number(A):A=M(A)),h++,h>b&&(A="X"),A});return h>b&&(k=k.replace(/[\s,]*X.*/,""),IP.log("Ignoring extra params in segment "+v)),_&&f++,w&&c++,p+k})}Da.getPixelShift=wl;function wl(e,r){r=r||0;var t=0;return r&&e&&(e.type==="category"||e.type==="multicategory")&&(t=(e.r2p(1)-e.r2p(0))*r),t}});var Hb=U((Dke,OP)=>{"use strict";var w2e=ke(),Ml=Kr(),BP=ma(),HP=Zr(),T2e=Io().readPaths,ou=Oo(),M2e=ou.getPathString,Pv=bh(),A2e=(Ha(),Fe(Ba)).FROM_TL;OP.exports=function(r,t,a,n){if(n.selectAll(".shape-label").remove(),!!(a.label.text||a.label.texttemplate)){var i;if(a.label.texttemplate){var l={};if(a.type!=="path"){var o=Ml.getFromId(r,a.xref),s=Ml.getFromId(r,a.yref);let X=Array.isArray(a.xref),$=Array.isArray(a.yref);for(var u in Pv){var f=typeof Pv[u]=="function",c=!X||Pv.simpleXVariables.includes(u),v=!$||Pv.simpleYVariables.includes(u);if(f&&c&&v){var h=Pv[u](a,o,s);h!==void 0&&(l[u]=h)}}}i=w2e.texttemplateStringForShapes({data:[l],fallback:a.label.texttemplatefallback,locale:r._fullLayout._d3locale,template:a.label.texttemplate})}else i=a.label.text;var p={"data-index":t},y=a.label.font,m={"data-notex":1},b=n.append("g").attr(p).classed("shape-label",!0),_=b.append("text").attr(m).classed("shape-label-text",!0).text(i),w,x,M,k;if(a.path){var A=M2e(r,a),S=T2e(A,r);w=1/0,M=1/0,x=-1/0,k=-1/0;for(var D=0;Dou.getDataToPixel(r,Pe,xe,!1,Le)(Re),Me=(Re,xe,Pe,Le)=>ou.getDataToPixel(r,Pe,xe,!0,Le)(Re);if(a.xsizemode==="pixel"){let Re=ce(a.xanchor,void 0,te,he),xe=ou.getPixelShift(te,a.x0shift),Pe=ou.getPixelShift(te,a.x1shift);w=Re+a.x0+xe,x=Re+a.x1+Pe}else w=ce(a.x0,a.x0shift,te,he),x=ce(a.x1,a.x1shift,ie,le);if(a.ysizemode==="pixel"){let Re=Me(a.yanchor,void 0,ve,_e),xe=ou.getPixelShift(ve,a.y0shift),Pe=ou.getPixelShift(ve,a.y1shift);M=Re-a.y0+xe,k=Re-a.y1+Pe}else M=Me(a.y0,a.y0shift,ve,_e),k=Me(a.y1,a.y1shift,K,me)}var H=a.label.textangle;H==="auto"&&(a.type==="line"?H=k2e(w,M,x,k):H=0),_.call(function(X){return X.call(HP.font,y).attr({}),BP.convertToTspans(X,r),X});var O=HP.bBox(_.node()),Y=C2e(w,M,x,k,a,H,O),G=Y.textx,V=Y.texty,W=Y.xanchor;_.attr({"text-anchor":{left:"start",center:"middle",right:"end"}[W],y:V,x:G,transform:"rotate("+H+","+G+","+V+")"}).call(BP.positionText,G,V)}};function k2e(e,r,t,a){var n,i;return i=Math.abs(t-e),t>=e?n=r-a:n=a-r,-180/Math.PI*Math.atan2(n,i)}function C2e(e,r,t,a,n,i,l){var o=n.label.textposition,s=n.label.textangle,u=n.label.padding,f=n.type,c=Math.PI/180*i,v=Math.sin(c),h=Math.cos(c),p=n.label.xanchor,y=n.label.yanchor,m,b,_,w;if(f==="line"){o==="start"?(m=e,b=r):o==="end"?(m=t,b=a):(m=(e+t)/2,b=(r+a)/2),p==="auto"&&(o==="start"?s==="auto"?t>e?p="left":te?p="right":te?p="right":te?p="left":t{"use strict";var L2e=ke(),S2e=L2e.strTranslate,YP=Xi(),VP=tf(),q2e=VP.drawMode,XP=VP.selectMode,WP=Ar(),GP=kr(),j1=(V1(),Fe(U1)),D2e=j1.i000,P2e=j1.i090,E2e=j1.i180,R2e=j1.i270,z2e=Lo(),ZP=z2e.clearOutlineControllers,Yb=Io(),K1=Yb.pointsOnRectangle,Ob=Yb.pointsOnEllipse,F2e=Yb.writePaths,N2e=$1().newShapes,I2e=$1().createShapeObj,B2e=Bb(),H2e=Hb();JP.exports=function e(r,t,a,n){n||(n=0);var i=a.gd;function l(){e(r,t,a,n++),(Ob(r[0])||a.hasText)&&o({redrawing:!0})}function o(Y){var G={};a.isActiveShape!==void 0&&(a.isActiveShape=!1,G=N2e(t,a)),a.isActiveSelection!==void 0&&(a.isActiveSelection=!1,G=B2e(t,a),i._fullLayout._reselect=!0),Object.keys(G).length&&WP.call((Y||{}).redrawing?"relayout":"_guiRelayout",i,G)}var s=i._fullLayout,u=s._zoomlayer,f=a.dragmode,c=q2e(f),v=XP(f);(c||v)&&(i._fullLayout._outlining=!0),ZP(i),t.attr("d",F2e(r));var h,p,y,m,b;if(!n&&(a.isActiveShape||a.isActiveSelection)){b=O2e([],r);var _=u.append("g").attr("class","outline-controllers");P(_),O()}if(c&&a.hasText){var w=u.select(".label-temp"),x=I2e(t,a,a.dragmode);H2e(i,"label-temp",x,w)}function M(Y){y=+Y.srcElement.getAttribute("data-i"),m=+Y.srcElement.getAttribute("data-j"),h[y][m].moveFn=k}function k(Y,G){if(r.length){var V=b[y][m][1],W=b[y][m][2],X=r[y],$=X.length;if(K1(X)){var te=Y,ie=G;if(a.isActiveSelection){var ve=UP(X,m);ve[1]===X[m][1]?ie=0:te=0}for(var K=0;K<$;K++)if(K!==m){var he=X[K];he[1]===X[m][1]&&(he[1]=V+te),he[2]===X[m][2]&&(he[2]=W+ie)}if(X[m][1]=V+te,X[m][2]=W+ie,!K1(X))for(var le=0;le<$;le++)for(var _e=0;_e1&&!(Y.length===2&&Y[1][0]==="Z")&&(m===0&&(Y[0][0]="M"),r[y]=Y,l(),o())}}function D(Y,G){if(Y===2){y=+G.srcElement.getAttribute("data-i"),m=+G.srcElement.getAttribute("data-j");var V=r[y];!K1(V)&&!Ob(V)&&S()}}function P(Y){h=[];for(var G=0;G{"use strict";var G2e=Er(),rE=Ar(),Ub=ke(),su=Kr(),U2e=Io().readPaths,V2e=Q1(),rp=Hb(),tE=Lo().clearOutlineControllers,Gb=kr(),tp=Zr(),X2e=ht().arrayEditor,$P=Xi(),KP=yi(),jP=Fo(),uu=(Dv(),Fe(qv)),qn=Oo(),Vb=qn.getPathString;iE.exports={draw:Xb,drawOne:aE,eraseActiveShape:K2e,drawLabel:rp};function Xb(e){var r=e._fullLayout;r._shapeUpperLayer.selectAll("path").remove(),r._shapeLowerLayer.selectAll("path").remove(),r._shapeUpperLayer.selectAll("text").remove(),r._shapeLowerLayer.selectAll("text").remove();for(var t in r._plots){var a=r._plots[t].shapelayer;a&&(a.selectAll("path").remove(),a.selectAll("text").remove())}for(var n=0;n{if(!e._dragging&&e._fullLayout.hoveranywhere){let l=n(i);l&&KP.hover(e,l,t.id)}}),a.addEventListener("click",i=>{if(!e._dragged&&e._fullLayout.clickanywhere){let l=n(i);l&&KP.click(e,l,t.id)}})}function nE(e,r,t){let a=t.xref,n=t.yref;if(Array.isArray(a)||Array.isArray(n)){let i="clip"+r._fullLayout._uid+"shape"+t._index,l=Z2e(r,a,n);Ub.ensureSingleById(r._fullLayout._clips,"clipPath",i,function(o){o.append("rect")}).select("rect").attr(l),tp.setClipUrl(e,i,r)}else{let i=(a+n).replace(/paper/g,"").replace(/[xyz][0-9]* *domain/g,"");tp.setClipUrl(e,i?"clip"+r._fullLayout._uid+i:null,r)}}function Z2e(e,r,t){let a=e._fullLayout._size;function n(o,s){let u=(Array.isArray(o)?o:[o]).map(v=>su.getFromId(e,v)).filter(Boolean);if(!u.length)return s?[a.t,a.t+a.h]:[a.l,a.l+a.w];let f=u.map(function(v){return v._offset}),c=u.map(function(v){return v._offset+v._length});return[Math.min(...f),Math.max(...c)]}let i=n(r,!1),l=n(t,!0);return{x:i[0],y:l[0],width:i[1]-i[0],height:l[1]-l[0]}}function J2e(e,r,t,a,n,i){var l=10,o=10,s=t.xsizemode==="pixel",u=t.ysizemode==="pixel",f=t.type==="line",c=t.type==="path",v=i.modifyItem,h,p,y,m,b,_,w,x,M,k,A,S,D,P,R,F=G2e.select(r.node().parentNode),N=su.getFromId(e,t.xref),B=su.getRefType(t.xref),H=su.getFromId(e,t.yref),O=su.getRefType(t.yref),Y=t.x0shift,G=t.x1shift,V=t.y0shift,W=t.y1shift,X=function(Ue,Ce){var We=qn.getDataToPixel(e,N,Ce,!1,B);return We(Ue)},$=function(Ue,Ce){var We=qn.getDataToPixel(e,H,Ce,!0,O);return We(Ue)},te=qn.getPixelToData(e,N,!1,B),ie=qn.getPixelToData(e,H,!0,O),ve=le(),K={element:ve.node(),gd:e,prepFn:ce,doneFn:Me,clickFn:Re},he;$P.init(K),ve.node().onmousemove=me;function le(){return f?_e():r}function _e(){var Ue=10,Ce=Math.max(t.line.width,Ue),We=n.append("g").attr("data-index",a).attr("drag-helper",!0);We.append("path").attr("d",r.attr("d")).style({cursor:"move","stroke-width":Ce,"stroke-opacity":"0"});var je={"fill-opacity":"0"},Ze=Math.max(Ce/2,Ue);return We.append("circle").attr({"data-line-point":"start-point",cx:s?X(t.xanchor)+t.x0:X(t.x0,Y),cy:u?$(t.yanchor)-t.y0:$(t.y0,V),r:Ze}).style(je).classed("cursor-grab",!0),We.append("circle").attr({"data-line-point":"end-point",cx:s?X(t.xanchor)+t.x1:X(t.x1,G),cy:u?$(t.yanchor)-t.y1:$(t.y1,W),r:Ze}).style(je).classed("cursor-grab",!0),We}function me(Ue){if(ep(e)){he=null;return}if(f)Ue.target.tagName==="path"?he="move":he=Ue.target.attributes["data-line-point"].value==="start-point"?"resize-over-start-point":"resize-over-end-point";else{var Ce=K.element.getBoundingClientRect(),We=Ce.right-Ce.left,je=Ce.bottom-Ce.top,Ze=Ue.clientX-Ce.left,Ae=Ue.clientY-Ce.top,ze=!c&&We>l&&je>o&&!Ue.shiftKey?$P.getCursor(Ze/We,1-Ae/je):"move";jP(r,ze),he=ze.split("-")[0]}}function ce(Ue){ep(e)||(s&&(b=X(t.xanchor)),u&&(_=$(t.yanchor)),t.type==="path"?R=t.path:(h=s?t.x0:X(t.x0),p=u?t.y0:$(t.y0),y=s?t.x1:X(t.x1),m=u?t.y1:$(t.y1)),hm?(w=p,A="y0",x=m,S="y1"):(w=m,A="y1",x=p,S="y0"),me(Ue),Le(n,t),Ee(r,t,e),K.moveFn=he==="move"?xe:Pe,K.altKey=Ue.altKey)}function Me(){ep(e)||(jP(r),qe(n),nE(r,e,t),rE.call("_guiRelayout",e,i.getUpdateObj()))}function Re(){ep(e)||qe(n)}function xe(Ue,Ce){if(t.type==="path"){var We=function(Ae){return Ae},je=We,Ze=We;s?v("xanchor",t.xanchor=te(b+Ue)):(je=function(ze){return te(X(ze)+Ue)},N&&N.type==="date"&&(je=qn.encodeDate(je))),u?v("yanchor",t.yanchor=ie(_+Ce)):(Ze=function(ze){return ie($(ze)+Ce)},H&&H.type==="date"&&(Ze=qn.encodeDate(Ze))),v("path",t.path=QP(R,je,Ze))}else s?v("xanchor",t.xanchor=te(b+Ue)):(v("x0",t.x0=te(h+Ue)),v("x1",t.x1=te(y+Ue))),u?v("yanchor",t.yanchor=ie(_+Ce)):(v("y0",t.y0=ie(p+Ce)),v("y1",t.y1=ie(m+Ce)));r.attr("d",Vb(e,t)),Le(n,t),rp(e,a,t,F)}function Pe(Ue,Ce){if(c){var We=function(Ve){return Ve},je=We,Ze=We;s?v("xanchor",t.xanchor=te(b+Ue)):(je=function(nr){return te(X(nr)+Ue)},N&&N.type==="date"&&(je=qn.encodeDate(je))),u?v("yanchor",t.yanchor=ie(_+Ce)):(Ze=function(nr){return ie($(nr)+Ce)},H&&H.type==="date"&&(Ze=qn.encodeDate(Ze))),v("path",t.path=QP(R,je,Ze))}else if(f){if(he==="resize-over-start-point"){var Ae=h+Ue,ze=u?p-Ce:p+Ce;v("x0",t.x0=s?Ae:te(Ae)),v("y0",t.y0=u?ze:ie(ze))}else if(he==="resize-over-end-point"){var Qe=y+Ue,re=u?m-Ce:m+Ce;v("x1",t.x1=s?Qe:te(Qe)),v("y1",t.y1=u?re:ie(re))}}else{var ye=function(Ve){return he.indexOf(Ve)!==-1},Xe=ye("n"),hr=ye("s"),De=ye("w"),pe=ye("e"),Te=Xe?w+Ce:w,Oe=hr?x+Ce:x,Je=De?M+Ue:M,Be=pe?k+Ue:k;u&&(Xe&&(Te=w-Ce),hr&&(Oe=x-Ce)),(!u&&Oe-Te>o||u&&Te-Oe>o)&&(v(A,t[A]=u?Te:ie(Te)),v(S,t[S]=u?Oe:ie(Oe))),Be-Je>l&&(v(D,t[D]=s?Je:te(Je)),v(P,t[P]=s?Be:te(Be)))}r.attr("d",Vb(e,t)),Le(n,t),rp(e,a,t,F)}function Le(Ue,Ce){(s||u)&&We();function We(){var je=Ce.type!=="path",Ze=Ue.selectAll(".visual-cue").data([0]),Ae=1;Ze.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":Ae}).classed("visual-cue",!0);var ze=X(s?Ce.xanchor:Ub.midRange(je?[Ce.x0,Ce.x1]:qn.extractPathCoords(Ce.path,uu.paramIsX))),Qe=$(u?Ce.yanchor:Ub.midRange(je?[Ce.y0,Ce.y1]:qn.extractPathCoords(Ce.path,uu.paramIsY)));if(ze=qn.roundPositionForSharpStrokeRendering(ze,Ae),Qe=qn.roundPositionForSharpStrokeRendering(Qe,Ae),s&&u){var re="M"+(ze-1-Ae)+","+(Qe-1-Ae)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";Ze.attr("d",re)}else if(s){var ye="M"+(ze-1-Ae)+","+(Qe-9-Ae)+"v18 h2 v-18 Z";Ze.attr("d",ye)}else{var Xe="M"+(ze-9-Ae)+","+(Qe-1-Ae)+"h18 v2 h-18 Z";Ze.attr("d",Xe)}}}function qe(Ue){Ue.selectAll(".visual-cue").remove()}function Ee(Ue,Ce,We){var je=Ce.xref,Ze=Ce.yref,Ae=su.getFromId(We,je),ze=su.getFromId(We,Ze),Qe="";je!=="paper"&&!Ae.autorange&&(Qe+=je),Ze!=="paper"&&!ze.autorange&&(Qe+=Ze),tp.setClipUrl(Ue,Qe?"clip"+We._fullLayout._uid+Qe:null,We)}}function QP(e,r,t){return e.replace(uu.segmentRE,function(a){var n=0,i=a.charAt(0),l=uu.paramIsX[i],o=uu.paramIsY[i],s=uu.numParams[i],u=a.slice(1).replace(uu.paramRE,function(f){return n>=s||(l[n]?f=r(f):o[n]&&(f=t(f)),n++),f});return i+u})}function $2e(e,r){if(ap(e)){var t=r.node(),a=+t.getAttribute("data-index");if(a>=0){if(a===e._fullLayout._activeShapeIndex){eE(e);return}e._fullLayout._activeShapeIndex=a,e._fullLayout._deactivateShape=eE,Xb(e)}}}function eE(e){if(ap(e)){var r=e._fullLayout._activeShapeIndex;r>=0&&(tE(e),delete e._fullLayout._activeShapeIndex,Xb(e))}}function K2e(e){if(ap(e)){tE(e);var r=e._fullLayout._activeShapeIndex,t=(e.layout||{}).shapes||[];if(r{"use strict";var lf=ke()._,j2e=function(e){return{DIALOG_TITLE:lf(e,"Share chart"),DIALOG_MESSAGE_CLOUD:lf(e,"This chart will be uploaded to {Plotly Cloud} to create a sharing link. Only you can see it until you change its visibility."),DIALOG_MESSAGE_CLOUD_ACCOUNT:lf(e,"If you don't have a Plotly Cloud account yet, you'll have a chance to create one."),DIALOG_MESSAGE_OTHER:lf(e,"This chart will be sent to {serverUrl}."),DIALOG_CANCEL:lf(e,"Cancel"),DIALOG_CONFIRM:lf(e,"Share")}};lE.exports=j2e});var fE=U((zke,uE)=>{"use strict";var sE=Er(),{dfltConfig:Q2e}=mo(),ede=oE(),rde=(e,r,t,a,n)=>{let i=ede(e),l=r.append("div").classed("plotly-cloud-dialog-box",!0);if(l.append("div").classed("plotly-cloud-dialog-title",!0).text(i.DIALOG_TITLE),t===Q2e.plotlyServerURL){let s=l.append("div").classed("plotly-cloud-dialog-message",!0),u=new URL(t).origin,f=i.DIALOG_MESSAGE_CLOUD.split(/(\{|\})/),c=f[0],v=f[2],h=f[4];s.append("span").text(c),s.append("a").classed("plotly-cloud-dialog-message--hostname",!0).attr("href",u).attr("target","_blank").text(v),s.append("span").text(h),s.append("div").classed("plotly-cloud-dialog-message--account",!0).text(i.DIALOG_MESSAGE_CLOUD_ACCOUNT)}else{let s=new URL(t),u=s.hostname,f=s.origin,c=i.DIALOG_MESSAGE_OTHER.split(/(\{|\})/),v=c[0],h=c[4],p=l.append("div").classed("plotly-cloud-dialog-message",!0);p.append("span").text(v),p.append("a").classed("plotly-cloud-dialog-message--hostname",!0).attr("href",f).attr("target","_blank").text(u),p.append("span").text(h)}let o=l.append("div").classed("plotly-cloud-dialog-buttons",!0);o.append("button").classed("plotly-cloud-dialog-btn",!0).classed("plotly-cloud-dialog-btn--cancel",!0).text(i.DIALOG_CANCEL).on("click",n),o.append("button").classed("plotly-cloud-dialog-btn",!0).classed("plotly-cloud-dialog-btn--confirm",!0).text(i.DIALOG_CONFIRM).on("click",a)},tde=(e,r,t)=>{let a=sE.select(e._fullLayout._paperdiv.node());a.selectAll(".plotly-cloud-dialog").remove();let n=a.append("div").classed("plotly-cloud-dialog",!0),i=()=>{n.remove(),document.removeEventListener("keydown",l)},l=o=>{(o.key==="Escape"||o.keyCode===27)&&i()};document.addEventListener("keydown",l),n.on("click",()=>{sE.event.target===n.node()&&i()}),rde(e,n,r,()=>{i(),t()},i)};uE.exports=tde});var Jb=U((Fke,yE)=>{"use strict";var jn=Ar(),ade=Xt(),vE=oa(),Qr=G1(),nde=np().eraseActiveShape,ide=fE(),of=ke(),Wr=of._,jr={};yE.exports=jr;jr.toImage={name:"toImage",title:function(e){var r=e._context.toImageButtonOptions||{},t=r.format||"png";return t==="png"?Wr(e,"Download plot as a PNG"):Wr(e,"Download plot")},icon:Qr.camera,click:function(e){var r=e._context.toImageButtonOptions,t={format:r.format||"png"};of.notifier(Wr(e,"Preparing image - this may take a few seconds"),"long",e),["filename","width","height","scale"].forEach(function(a){a in r&&(t[a]=r[a])}),jn.call("downloadImage",e,t).then(function(a){of.notifier(Wr(e,"Image download succeeded")+" - "+a,"long",e)}).catch(function(){of.notifier(Wr(e,"Sorry, there was a problem downloading your image!"),"long",e)})}};jr.downloadJson={name:"downloadJson",title:function(e){return Wr(e,"Download plot as JSON")},icon:Qr.curlybraces,click:function(e){jn.call("downloadImage",e,{format:"full-json"}).then(function(r){of.notifier(Wr(e,"JSON download succeeded")+" - "+r,"long",e)}).catch(function(){of.notifier(Wr(e,"Sorry, there was a problem downloading your JSON file!"),"long",e)})}};jr.sendChartToCloud={name:"sendChartToCloud",title:function(e){return Wr(e,"Share chart...")},icon:Qr.cloudupload,click:function(e){var r=(window.PLOTLYENV||{}).BASE_URL||e._context.plotlyServerURL;if(!r){console.error("No destination URL provided (plotlyServerURL is empty)");return}var t;try{t=new URL(r)}catch(n){console.error("Invalid plotlyServerURL: "+r);return}let a=["http:","https:"];if(!a.includes(t.protocol)){console.error(`Invalid protocol '${t.protocol}' in plotlyServerURL '${r}'. Must be one of: ${a.join(", ")}`);return}ide(e,r,function(){ade.sendDataToCloud(e,r)})}};jr.zoom2d={name:"zoom2d",_cat:"zoom",title:function(e){return Wr(e,"Zoom")},attr:"dragmode",val:"zoom",icon:Qr.zoombox,click:sn};jr.pan2d={name:"pan2d",_cat:"pan",title:function(e){return Wr(e,"Pan")},attr:"dragmode",val:"pan",icon:Qr.pan,click:sn};jr.select2d={name:"select2d",_cat:"select",title:function(e){return Wr(e,"Box Select")},attr:"dragmode",val:"select",icon:Qr.selectbox,click:sn};jr.lasso2d={name:"lasso2d",_cat:"lasso",title:function(e){return Wr(e,"Lasso Select")},attr:"dragmode",val:"lasso",icon:Qr.lasso,click:sn};jr.drawclosedpath={name:"drawclosedpath",title:function(e){return Wr(e,"Draw closed freeform")},attr:"dragmode",val:"drawclosedpath",icon:Qr.drawclosedpath,click:sn};jr.drawopenpath={name:"drawopenpath",title:function(e){return Wr(e,"Draw open freeform")},attr:"dragmode",val:"drawopenpath",icon:Qr.drawopenpath,click:sn};jr.drawline={name:"drawline",title:function(e){return Wr(e,"Draw line")},attr:"dragmode",val:"drawline",icon:Qr.drawline,click:sn};jr.drawrect={name:"drawrect",title:function(e){return Wr(e,"Draw rectangle")},attr:"dragmode",val:"drawrect",icon:Qr.drawrect,click:sn};jr.drawcircle={name:"drawcircle",title:function(e){return Wr(e,"Draw circle")},attr:"dragmode",val:"drawcircle",icon:Qr.drawcircle,click:sn};jr.eraseshape={name:"eraseshape",title:function(e){return Wr(e,"Erase active shape")},icon:Qr.eraseshape,click:nde};jr.zoomIn2d={name:"zoomIn2d",_cat:"zoomin",title:function(e){return Wr(e,"Zoom in")},attr:"zoom",val:"in",icon:Qr.zoom_plus,click:sn};jr.zoomOut2d={name:"zoomOut2d",_cat:"zoomout",title:function(e){return Wr(e,"Zoom out")},attr:"zoom",val:"out",icon:Qr.zoom_minus,click:sn};jr.autoScale2d={name:"autoScale2d",_cat:"autoscale",title:function(e){return Wr(e,"Autoscale")},attr:"zoom",val:"auto",icon:Qr.autoscale,click:sn};jr.resetScale2d={name:"resetScale2d",_cat:"resetscale",title:function(e){return Wr(e,"Reset axes")},attr:"zoom",val:"reset",icon:Qr.home,click:sn};jr.hoverClosestCartesian={name:"hoverClosestCartesian",_cat:"hoverclosest",title:function(e){return Wr(e,"Show closest data on hover")},attr:"hovermode",val:"closest",icon:Qr.tooltip_basic,gravity:"ne",click:sn};jr.hoverCompareCartesian={name:"hoverCompareCartesian",_cat:"hoverCompare",title:function(e){return Wr(e,"Compare data on hover")},attr:"hovermode",val:function(e){return e._fullLayout._isHoriz?"y":"x"},icon:Qr.tooltip_compare,gravity:"ne",click:sn};function sn(e,r){var t=r.currentTarget,a=t.getAttribute("data-attr"),n=t.getAttribute("data-val")||!0,i=e._fullLayout,l={},o=vE.list(e,null,!0),s=i._cartesianSpikesEnabled,u,f;if(a==="zoom"){var c=n==="in"?.5:2,v=(1+c)/2,h=(1-c)/2,p,y;for(f=0;f-k),[y,m]=c.invert(f.midPt),{minscale:b}=u.projection,_=(o=u.projection.maxscale)!=null?o:1/0,w=Math.min(b,_),x=Math.max(b,_),M=n==="in"?cE*v:1/cE*v;M>x?M=x:M{"use strict";var gE=Jb(),ude=Object.keys(gE),xE=["drawline","drawopenpath","drawclosedpath","drawcircle","drawrect","eraseshape"],bE=["v1hovermode","hoverclosest","hovercompare","togglehover","togglespikelines"].concat(xE,["downloadJson"]),sf=[],fde=function(e){if(bE.indexOf(e._cat||e.name)===-1){var r=e.name,t=(e._cat||e.name).toLowerCase();sf.indexOf(r)===-1&&sf.push(r),sf.indexOf(t)===-1&&sf.push(t)}};ude.forEach(function(e){fde(gE[e])});sf.sort();_E.exports={DRAW_MODES:xE,backButtons:bE,foreButtons:sf}});var jb={};vt(jb,{default:()=>vde});var Kb,cde,vde,Qb=Lr(()=>{"use strict";Kb=q9($b()),cde={editType:"modebar",orientation:{valType:"enumerated",values:["v","h"],dflt:"h",editType:"modebar",description:"Sets the orientation of the modebar."},bgcolor:{valType:"color",editType:"modebar",description:"Sets the background color of the modebar."},color:{valType:"color",editType:"modebar",description:"Sets the color of the icons in the modebar."},activecolor:{valType:"color",editType:"modebar",description:"Sets the color of the active or hovered on icons in the modebar."},uirevision:{valType:"any",editType:"none",description:["Controls persistence of user-driven changes related to the modebar,","including `hovermode`, `dragmode`, and `showspikes` at both the","root level and inside subplots. Defaults to `layout.uirevision`."].join(" ")},add:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar",description:["Determines which predefined modebar buttons to add.","Please note that these buttons will only be shown if they are","compatible with all trace types used in a graph.","Similar to `config.modeBarButtonsToAdd` option.",`This may include *${Kb.default.backButtons.join("*, *")}*.`].join(" ")},remove:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar",description:["Determines which predefined modebar buttons to remove.","Similar to `config.modeBarButtonsToRemove` option.",`This may include *${Kb.default.foreButtons.join("*, *")}*.`].join(" ")}},vde=cde});var TE=U((Ike,wE)=>{"use strict";var dde=ke(),Ev=kr(),hde=ht(),pde=(Qb(),Fe(jb)).default;wE.exports=function(r,t){var a=r.modebar||{},n=hde.newContainer(t,"modebar");function i(o,s){return dde.coerce(a,n,pde,o,s)}i("orientation"),i("bgcolor",Ev.addOpacity(t.paper_bgcolor,.5));var l=Ev.contrast(Ev.rgb(t.modebar.bgcolor));i("color",Ev.addOpacity(l,.3)),i("activecolor",Ev.addOpacity(l,.7)),i("uirevision",t.uirevision),i("add"),i("remove")}});var CE=U((Bke,kE)=>{"use strict";var e4=Er(),mde=Gr(),op=ke(),ME=G1(),yde=Tc().version,gde=new DOMParser;function AE(e){this.container=e.container,this.element=document.createElement("div"),this.update(e.graphInfo,e.buttons),this.container.appendChild(this.element)}var Al=AE.prototype;Al.update=function(e,r){this.graphInfo=e;var t=this.graphInfo._context,a=this.graphInfo._fullLayout,n="modebar-"+a._uid;this.element.setAttribute("id",n),this.element.setAttribute("role","toolbar"),this._uid=n,this.element.className="modebar modebar--custom",t.displayModeBar==="hover"&&(this.element.className+=" modebar--hover ease-bg"),a.modebar.orientation==="v"&&(this.element.className+=" vertical",r=r.reverse());var i=a.modebar,l="#"+n+" .modebar-group";document.querySelectorAll(l).forEach(function(c){c.style.backgroundColor=i.bgcolor});var o=!this.hasButtons(r),s=this.hasLogo!==t.displaylogo,u=this.locale!==t.locale;if(this.locale=t.locale,(o||s||u)&&(this.removeAllButtons(),this.updateButtons(r),t.watermark||t.displaylogo)){var f=this.getLogo();t.watermark&&(f.className=f.className+" watermark"),a.modebar.orientation==="v"?this.element.insertBefore(f,this.element.childNodes[0]):this.element.appendChild(f),this.hasLogo=!0}this.updateActiveButton(),op.setStyleOnHover("#"+n+" .modebar-btn",".active",".icon path","fill: "+i.activecolor,"fill: "+i.color,this.element)};Al.updateButtons=function(e){var r=this;this.buttons=e,this.buttonElements=[],this.buttonsNames=[],this.buttons.forEach(function(t){var a=r.createGroup();t.forEach(function(n){var i=n.name;if(!i)throw new Error("must provide button 'name' in button config");if(r.buttonsNames.indexOf(i)!==-1)throw new Error("button name '"+i+"' is taken");r.buttonsNames.push(i);var l=r.createButton(n);r.buttonElements.push(l),a.appendChild(l)}),r.element.appendChild(a)})};Al.createGroup=function(){var e=document.createElement("div");e.className="modebar-group";var r=this.graphInfo._fullLayout.modebar;return e.style.backgroundColor=r.bgcolor,e};Al.createButton=function(e){var r=this,t=document.createElement("button");t.setAttribute("type","button"),t.setAttribute("rel","tooltip"),t.className="modebar-btn";var a=e.title;a===void 0?a=e.name:typeof a=="function"&&(a=a(this.graphInfo)),(a||a===0)&&(t.setAttribute("data-title",a),t.setAttribute("aria-label",a)),e.attr!==void 0&&t.setAttribute("data-attr",e.attr);var n=e.val;n!==void 0&&(typeof n=="function"&&(n=n(this.graphInfo)),t.setAttribute("data-val",n));var i=e.click;if(typeof i!="function")throw new Error("must provide button 'click' function in button config");t.addEventListener("click",function(o){e.click(r.graphInfo,o),r.updateActiveButton(o.currentTarget)}),t.setAttribute("data-toggle",e.toggle||!1),e.toggle&&e4.select(t).classed("active",!0);var l=e.icon;return typeof l=="function"?t.appendChild(l()):t.appendChild(this.createIcon(l||ME.question)),t.setAttribute("data-gravity",e.gravity||"n"),t};Al.createIcon=function(e){var r=mde(e.height)?Number(e.height):e.ascent-e.descent,t="http://www.w3.org/2000/svg",a;if(e.path){a=document.createElementNS(t,"svg"),a.setAttribute("viewBox",[0,0,e.width,r].join(" ")),a.setAttribute("class","icon");var n=document.createElementNS(t,"path");n.setAttribute("d",e.path),e.transform?n.setAttribute("transform",e.transform):e.ascent!==void 0&&n.setAttribute("transform","matrix(1 0 0 -1 0 "+e.ascent+")"),a.appendChild(n)}if(e.svg){var i=gde.parseFromString(e.svg,"application/xml");a=i.childNodes[0]}return a.setAttribute("height","1em"),a.setAttribute("width","1em"),a};Al.updateActiveButton=function(e){var r=this.graphInfo._fullLayout,t=e!==void 0?e.getAttribute("data-attr"):null;this.buttonElements.forEach(function(a){var n=a.getAttribute("data-val")||!0,i=a.getAttribute("data-attr"),l=a.getAttribute("data-toggle")==="true",o=e4.select(a),s=function(c,v){var h=r.modebar,p=c.querySelector(".icon path");p&&(v||c.matches(":hover")?p.style.fill=h.activecolor:p.style.fill=h.color)};if(l){if(i===t){var u=!o.classed("active");o.classed("active",u),s(a,u)}}else{var f=i===null?i:op.nestedProperty(r,i).get();o.classed("active",f===n),s(a,f===n)}})};Al.hasButtons=function(e){var r=this.buttons;if(!r||e.length!==r.length)return!1;for(var t=0;t{"use strict";var _de=oa(),LE=Xn(),r4=Ar(),wde=Ui().isUnifiedHover,Tde=CE(),sp=Jb(),Mde=$b().DRAW_MODES,Ade=ke().extendDeep;SE.exports=function(r){var t=r._fullLayout,a=r._context,n=t._modeBar;if(!a.displayModeBar&&!a.watermark){n&&(n.destroy(),delete t._modeBar);return}if(!Array.isArray(a.modeBarButtonsToRemove))throw new Error(["*modeBarButtonsToRemove* configuration options","must be an array."].join(" "));if(!Array.isArray(a.modeBarButtonsToAdd))throw new Error(["*modeBarButtonsToAdd* configuration options","must be an array."].join(" "));var i=a.modeBarButtons,l;Array.isArray(i)&&i.length?l=Dde(i):!a.displayModeBar&&a.watermark?l=[]:l=kde(r),n?n.update(r,l):t._modeBar=Tde(r,l)};function kde(e){var r=e._fullLayout,t=e._fullData,a=e._context;function n(G,V){if(typeof V=="string"){if(V.toLowerCase()===G.toLowerCase())return!0}else{var W=V.name,X=V._cat||V.name;if(W===G||X===G.toLowerCase())return!0}return!1}var i=r.modebar.add;typeof i=="string"&&(i=[i]);var l=r.modebar.remove;typeof l=="string"&&(l=[l]);var o=a.modeBarButtonsToAdd.concat(i.filter(function(G){for(var V=0;V1?(D=["toggleHover"],P=["resetViews"]):c?(S=["zoomInGeo","zoomOutGeo"],D=["hoverClosestGeo"],P=["resetGeo"]):f?(D=["hoverClosest3d"],P=["resetCameraDefault3d","resetCameraLastSave3d"]):y?(S=["zoomInMap","zoomOutMap"],D=["toggleHover"],P=["resetViewMap"]):v?D=["hoverClosestPie"]:_?(D=["hoverClosestCartesian","hoverCompareCartesian"],P=["resetViewSankey"]):D=["toggleHover"],u&&D.push("toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"),(Sde(t)||x)&&(D=[]),u&&!w&&(S=["zoomIn2d","zoomOut2d","autoScale2d"],P[0]!=="resetViews"&&(P=["resetScale2d"])),f?R=["zoom3d","pan3d","orbitRotation","tableRotation"]:u&&!w||p?R=["zoom2d","pan2d"]:y||c?R=["pan2d"]:m&&(R=["zoom2d"]),Lde(t)&&R.push("select2d","lasso2d");var F=[],N=function(G){F.indexOf(G)===-1&&D.indexOf(G)!==-1&&F.push(G)};if(Array.isArray(o)){for(var B=[],H=0;H{"use strict";DE.exports={moduleType:"component",name:"modebar",layoutAttributes:(Qb(),Fe(jb)).default,supplyLayoutDefaults:TE(),manage:qE()}});var a4=U((Yke,PE)=>{"use strict";var Pde=(Ha(),Fe(Ba)).FROM_BL;PE.exports=function(r,t,a){a===void 0&&(a=Pde[r.constraintoward||"center"]);var n=[r.r2l(r.range[0]),r.r2l(r.range[1])],i=n[0]+(n[1]-n[0])*a;r.range=r._input.range=[r.l2r(i+(n[0]-i)*t),r.l2r(i+(n[1]-i)*t)],r.setScale()}});var cu=U(Rv=>{"use strict";var fu=ke(),n4=pv(),Wi=oa().id2name,Ede=Vn(),EE=a4(),Rde=p1(),zde=(Et(),Fe(zt)).ALMOST_EQUAL,Fde=(Ha(),Fe(Ba)).FROM_BL;Rv.handleDefaults=function(e,r,t){var a=t.axIds,n=t.axHasImage,i=r._axisConstraintGroups=[],l=r._axisMatchGroups=[],o,s,u,f,c,v,h,p;for(o=0;oi?t.slice(i):a.slice(n))+l}function Ide(e,r){for(var t=r._size,a=t.h/t.w,n={},i=Object.keys(e),l=0;lzde*p&&!_)){for(i=0;iF&&WP&&(P=W);var $=(P-D)/(2*R);c/=$,D=s.l2r(D),P=s.l2r(P),s.range=s._input.range=k{"use strict";var fp=Er(),un=Ar(),Qn=Xt(),gi=ke(),o4=ma(),s4=Y1(),zv=kr(),uf=Zr(),NE=dv(),YE=t4(),Fv=Kr(),Zl=(Ha(),Fe(Ba)),GE=cu(),Bde=GE.enforce,Hde=GE.clean,IE=pv().doAutoRange,UE="start",Ode="middle",VE="end",Yde=(Ta(),Fe(wa)).zindexSeparator;Aa.layoutStyles=function(e){return gi.syncOrAsync([Qn.doAutoMargin,Ude],e)};function Gde(e,r,t){for(var a=0;a=e[1]||n[1]<=e[0])&&i[0]r[0])return!0}return!1}function Ude(e){var r=e._fullLayout,t=r._size,a=t.p,n=Fv.list(e,"",!0),i,l,o,s,u,f;if(r._paperdiv.style({width:e._context.responsive&&r.autosize&&!e._context._hasZeroWidth&&!e.layout.width?"100%":r.width+"px",height:e._context.responsive&&r.autosize&&!e._context._hasZeroHeight&&!e.layout.height?"100%":r.height+"px"}).selectAll(".main-svg").call(uf.setSize,r.width,r.height),e._context.setBackground(e,r.paper_bgcolor),Aa.drawMainTitle(e),YE.manage(e),!r._has("cartesian"))return Qn.previousPromises(e);function c(ce,Me,Re){var xe=ce._lw/2;if(ce._id.charAt(0)==="x"){if(Me){if(Re==="top")return Me._offset-a-xe}else return t.t+t.h*(1-(ce.position||0))+xe%1;return Me._offset+Me._length+a+xe}if(Me){if(Re==="right")return Me._offset+Me._length+a+xe}else return t.l+t.w*(ce.position||0)+xe%1;return Me._offset-a-xe}for(i=0;i0){Zde(e,i,u,s),o.attr({x:l,y:i,"text-anchor":a,dy:OE(r.yanchor)}).call(o4.positionText,l,i);var f=(r.text.match(o4.BR_TAG_ALL)||[]).length;if(f){var c=Zl.LINE_SPACING*f+Zl.MID_SHIFT;r.y===0&&(c=-c),o.selectAll(".line").each(function(){var m=+this.getAttribute("dy").slice(0,-2)-c+"em";this.setAttribute("dy",m)})}var v=fp.select(e).selectAll(".gtitle-subtitle");if(v.node()){var h=o.node().getBBox(),p=h.y+h.height,y=p+NE.SUBTITLE_PADDING_EM*r.subtitle.font.size;v.attr({x:l,y,"text-anchor":a,dy:OE(r.yanchor)}).call(o4.positionText,l,y)}}}};function Vde(e,r,t,a,n){var i=r.yref==="paper"?e._fullLayout._size.h:e._fullLayout.height,l=gi.isTopAnchor(r)?a:a-n,o=t==="b"?i-l:l;return gi.isTopAnchor(r)&&t==="t"||gi.isBottomAnchor(r)&&t==="b"?!1:o.5?"t":"b",l=e._fullLayout.margin[i],o=0;return r.yref==="paper"?o=t+r.pad.t+r.pad.b:r.yref==="container"&&(o=Xde(i,a,n,e._fullLayout.height,t)+r.pad.t+r.pad.b),o>l?o:0}function Zde(e,r,t,a){var n="title.automargin",i=e._fullLayout.title,l=i.y>.5?"t":"b",o={x:i.x,y:i.y,t:0,b:0},s={};i.yref==="paper"&&Vde(e,i,l,r,a)?o[l]=t:i.yref==="container"&&(s[l]=t,e._fullLayout._reservedMargin[n]=s),Qn.allowAutoMargin(e,n),Qn.autoMargin(e,n,o)}function Jde(e,r){var t=e.title,a=e._size,n=0;return r===UE?n=t.pad.l:r===VE&&(n=-t.pad.r),t.xref==="paper"?a.l+a.w*t.x+n:e.width*t.x+n}function $de(e,r){var t=e.title,a=e._size,n=0;return r==="0em"||!r?n=-t.pad.b:r===Zl.CAP_SHIFT+"em"&&(n=t.pad.t),t.y==="auto"?a.t/2:t.yref==="paper"?a.t+a.h-a.h*t.y+n:e.height-e.height*t.y+n}function OE(e){return e==="top"?Zl.CAP_SHIFT+.3+"em":e==="bottom"?"-0.3em":Zl.MID_SHIFT+"em"}function Kde(e){var r=e.title,t=Ode;return gi.isRightAnchor(r)?t=VE:gi.isLeftAnchor(r)&&(t=UE),t}function jde(e){var r=e.title,t="0em";return gi.isTopAnchor(r)?t=Zl.CAP_SHIFT+"em":gi.isMiddleAnchor(r)&&(t=Zl.MID_SHIFT+"em"),t}Aa.doTraceStyle=function(e){var r=e.calcdata,t=[],a;for(a=0;a{"use strict";var Qde=Io().readPaths,ehe=Q1(),XE=Lo().clearOutlineControllers,u4=kr(),WE=Zr(),rhe=ht().arrayEditor,ZE=Oo(),the=ZE.getPathString;$E.exports={draw:vp,drawOne:JE,activateLastSelection:ihe};function vp(e){var r=e._fullLayout;XE(e),r._selectionLayer.selectAll("path").remove();for(var t in r._plots){var a=r._plots[t].selectionLayer;a&&a.selectAll("path").remove()}for(var n=0;n=0;m--){var b=l.append("path").attr(s).style("opacity",m?.1:u).call(u4.stroke,c).call(u4.fill,f).call(WE.dashLine,m?"solid":h,m?4+v:v);if(ahe(b,e,a),p){var _=rhe(e.layout,"selections",a);b.style({cursor:"move"});var w={element:b.node(),plotinfo:n,gd:e,editHelpers:_,isActiveSelection:!0},x=Qde(o,e);ehe(x,b,w)}else b.style("pointer-events",m?"all":"none");y[m]=b}var M=y[0],k=y[1];k.node().addEventListener("click",function(){return nhe(e,M)})}}function ahe(e,r,t){var a=t.xref+t.yref;WE.setClipUrl(e,"clip"+r._fullLayout._uid+a,r)}function nhe(e,r){if(dp(e)){var t=r.node(),a=+t.getAttribute("data-index");if(a>=0){if(a===e._fullLayout._activeSelectionIndex){f4(e);return}e._fullLayout._activeSelectionIndex=a,e._fullLayout._deactivateSelection=f4,vp(e)}}}function ihe(e){if(dp(e)){var r=e._fullLayout.selections.length-1;e._fullLayout._activeSelectionIndex=r,e._fullLayout._deactivateSelection=f4,vp(e)}}function f4(e){if(dp(e)){var r=e._fullLayout._activeSelectionIndex;r>=0&&(XE(e),delete e._fullLayout._activeSelectionIndex,vp(e))}}});var jE=U((Xke,KE)=>{function lhe(){var e,r=0,t=!1;function a(n,i){return e.list.push({type:n,data:i?JSON.parse(JSON.stringify(i)):void 0}),e}return e={list:[],segmentId:function(){return r++},checkIntersection:function(n,i){return a("check",{seg1:n,seg2:i})},segmentChop:function(n,i){return a("div_seg",{seg:n,pt:i}),a("chop",{seg:n,pt:i})},statusRemove:function(n){return a("pop_seg",{seg:n})},segmentUpdate:function(n){return a("seg_update",{seg:n})},segmentNew:function(n,i){return a("new_seg",{seg:n,primary:i})},segmentRemove:function(n){return a("rem_seg",{seg:n})},tempStatus:function(n,i,l){return a("temp_status",{seg:n,above:i,below:l})},rewind:function(n){return a("rewind",{seg:n})},status:function(n,i,l){return a("status",{seg:n,above:i,below:l})},vert:function(n){return n===t?e:(t=n,a("vert",{x:n}))},log:function(n){return typeof n!="string"&&(n=JSON.stringify(n,!1," ")),a("log",{txt:n})},reset:function(){return a("reset")},selected:function(n){return a("selected",{segs:n})},chainStart:function(n){return a("chain_start",{seg:n})},chainRemoveHead:function(n,i){return a("chain_rem_head",{index:n,pt:i})},chainRemoveTail:function(n,i){return a("chain_rem_tail",{index:n,pt:i})},chainNew:function(n,i){return a("chain_new",{pt1:n,pt2:i})},chainMatch:function(n){return a("chain_match",{index:n})},chainClose:function(n){return a("chain_close",{index:n})},chainAddHead:function(n,i){return a("chain_add_head",{index:n,pt:i})},chainAddTail:function(n,i){return a("chain_add_tail",{index:n,pt:i})},chainConnect:function(n,i){return a("chain_con",{index1:n,index2:i})},chainReverse:function(n){return a("chain_rev",{index:n})},chainJoin:function(n,i){return a("chain_join",{index1:n,index2:i})},done:function(){return a("done")}},e}KE.exports=lhe});var eR=U((Wke,QE)=>{function ohe(e){typeof e!="number"&&(e=1e-10);var r={epsilon:function(t){return typeof t=="number"&&(e=t),e},pointAboveOrOnLine:function(t,a,n){var i=a[0],l=a[1],o=n[0],s=n[1],u=t[0],f=t[1];return(o-i)*(f-l)-(s-l)*(u-i)>=-e},pointBetween:function(t,a,n){var i=t[1]-a[1],l=n[0]-a[0],o=t[0]-a[0],s=n[1]-a[1],u=o*l+i*s;if(u-e)},pointsSameX:function(t,a){return Math.abs(t[0]-a[0])e!=o-i>e&&(l-f)*(i-c)/(o-c)+f-n>e&&(s=!s),l=f,o=c}return s}};return r}QE.exports=ohe});var tR=U((Zke,rR)=>{var she={create:function(){var e={root:{root:!0,next:null},exists:function(r){return!(r===null||r===e.root)},isEmpty:function(){return e.root.next===null},getHead:function(){return e.root.next},insertBefore:function(r,t){for(var a=e.root,n=e.root.next;n!==null;){if(t(n)){r.prev=n.prev,r.next=n,n.prev.next=r,n.prev=r;return}a=n,n=n.next}a.next=r,r.prev=a,r.next=null},findTransition:function(r){for(var t=e.root,a=e.root.next;a!==null&&!r(a);)t=a,a=a.next;return{before:t===e.root?null:t,after:a,insert:function(n){return n.prev=t,n.next=a,t.next=n,a!==null&&(a.prev=n),n}}}};return e},node:function(e){return e.prev=null,e.next=null,e.remove=function(){e.prev.next=e.next,e.next&&(e.next.prev=e.prev),e.prev=null,e.next=null},e}};rR.exports=she});var nR=U((Jke,aR)=>{var Nv=tR();function uhe(e,r,t){function a(p,y){return{id:t?t.segmentId():-1,start:p,end:y,myFill:{above:null,below:null},otherFill:null}}function n(p,y,m){return{id:t?t.segmentId():-1,start:p,end:y,myFill:{above:m.myFill.above,below:m.myFill.below},otherFill:null}}var i=Nv.create();function l(p,y,m,b,_,w){var x=r.pointsCompare(y,_);return x!==0?x:r.pointsSame(m,w)?0:p!==b?p?1:-1:r.pointAboveOrOnLine(m,b?_:w,b?w:_)?1:-1}function o(p,y){i.insertBefore(p,function(m){var b=l(p.isStart,p.pt,y,m.isStart,m.pt,m.other.pt);return b<0})}function s(p,y){var m=Nv.node({isStart:!0,pt:p.start,seg:p,primary:y,other:null,status:null});return o(m,p.end),m}function u(p,y,m){var b=Nv.node({isStart:!1,pt:y.end,seg:y,primary:m,other:p,status:null});p.other=b,o(b,p.pt)}function f(p,y){var m=s(p,y);return u(m,p,y),m}function c(p,y){t&&t.segmentChop(p.seg,y),p.other.remove(),p.seg.end=y,p.other.pt=y,o(p.other,p.pt)}function v(p,y){var m=n(y,p.seg.end,p.seg);return c(p,y),f(m,p.primary)}function h(p,y){var m=Nv.create();function b(H,O){var Y=H.seg.start,G=H.seg.end,V=O.seg.start,W=O.seg.end;return r.pointsCollinear(Y,V,W)?r.pointsCollinear(G,V,W)||r.pointAboveOrOnLine(G,V,W)?1:-1:r.pointAboveOrOnLine(Y,V,W)?1:-1}function _(H){return m.findTransition(function(O){var Y=b(H,O.ev);return Y>0})}function w(H,O){var Y=H.seg,G=O.seg,V=Y.start,W=Y.end,X=G.start,$=G.end;t&&t.checkIntersection(Y,G);var te=r.linesIntersect(V,W,X,$);if(te===!1){if(!r.pointsCollinear(V,W,X)||r.pointsSame(V,$)||r.pointsSame(W,X))return!1;var ie=r.pointsSame(V,X),ve=r.pointsSame(W,$);if(ie&&ve)return O;var K=!ie&&r.pointBetween(V,X,$),he=!ve&&r.pointBetween(W,X,$);if(ie)return he?v(O,W):v(H,$),O;K&&(ve||(he?v(O,W):v(H,$)),v(O,V))}else te.alongA===0&&(te.alongB===-1?v(H,X):te.alongB===0?v(H,te.pt):te.alongB===1&&v(H,$)),te.alongB===0&&(te.alongA===-1?v(O,V):te.alongA===0?v(O,te.pt):te.alongA===1&&v(O,W));return!1}for(var x=[];!i.isEmpty();){var M=i.getHead();if(t&&t.vert(M.pt[0]),M.isStart){let H=function(){if(A){var O=w(M,A);if(O)return O}return S?w(M,S):!1};var B=H;t&&t.segmentNew(M.seg,M.primary);var k=_(M),A=k.before?k.before.ev:null,S=k.after?k.after.ev:null;t&&t.tempStatus(M.seg,A?A.seg:!1,S?S.seg:!1);var D=H();if(D){if(e){var P;M.seg.myFill.below===null?P=!0:P=M.seg.myFill.above!==M.seg.myFill.below,P&&(D.seg.myFill.above=!D.seg.myFill.above)}else D.seg.otherFill=M.seg.myFill;t&&t.segmentUpdate(D.seg),M.other.remove(),M.remove()}if(i.getHead()!==M){t&&t.rewind(M.seg);continue}if(e){var P;M.seg.myFill.below===null?P=!0:P=M.seg.myFill.above!==M.seg.myFill.below,S?M.seg.myFill.below=S.seg.myFill.above:M.seg.myFill.below=p,P?M.seg.myFill.above=!M.seg.myFill.below:M.seg.myFill.above=M.seg.myFill.below}else if(M.seg.otherFill===null){var R;S?M.primary===S.primary?R=S.seg.otherFill.above:R=S.seg.myFill.above:R=M.primary?y:p,M.seg.otherFill={above:R,below:R}}t&&t.status(M.seg,A?A.seg:!1,S?S.seg:!1),M.other.status=k.insert(Nv.node({ev:M}))}else{var F=M.status;if(F===null)throw new Error("PolyBool: Zero-length segment detected; your epsilon is probably too small or too large");if(m.exists(F.prev)&&m.exists(F.next)&&w(F.prev.ev,F.next.ev),t&&t.statusRemove(F.ev.seg),F.remove(),!M.primary){var N=M.seg.myFill;M.seg.myFill=M.seg.otherFill,M.seg.otherFill=N}x.push(M.seg)}i.getHead().remove()}return t&&t.done(),x}return e?{addRegion:function(p){for(var y,m=p[p.length-1],b=0;b{function fhe(e,r,t){var a=[],n=[];return e.forEach(function(i){var l=i.start,o=i.end;if(r.pointsSame(l,o)){console.warn("PolyBool: Warning: Zero-length segment detected; your epsilon is probably too small or too large");return}t&&t.chainStart(i);var s={index:0,matches_head:!1,matches_pt1:!1},u={index:0,matches_head:!1,matches_pt1:!1},f=s;function c(B,H,O){return f.index=B,f.matches_head=H,f.matches_pt1=O,f===s?(f=u,!1):(f=null,!0)}for(var v=0;v{function Iv(e,r,t){var a=[];return e.forEach(function(n){var i=(n.myFill.above?8:0)+(n.myFill.below?4:0)+(n.otherFill&&n.otherFill.above?2:0)+(n.otherFill&&n.otherFill.below?1:0);r[i]!==0&&a.push({id:t?t.segmentId():-1,start:n.start,end:n.end,myFill:{above:r[i]===1,below:r[i]===2},otherFill:null})}),t&&t.selected(a),a}var che={union:function(e,r){return Iv(e,[0,2,1,0,2,2,0,0,1,0,1,0,0,0,0,0],r)},intersect:function(e,r){return Iv(e,[0,0,0,0,0,2,0,2,0,0,1,1,0,2,1,0],r)},difference:function(e,r){return Iv(e,[0,0,0,0,2,0,2,0,1,1,0,0,0,1,2,0],r)},differenceRev:function(e,r){return Iv(e,[0,2,1,0,0,0,1,1,0,2,0,2,0,0,0,0],r)},xor:function(e,r){return Iv(e,[0,2,1,0,2,0,0,1,1,0,0,2,0,1,2,0],r)}};oR.exports=che});var fR=U((jke,uR)=>{var vhe={toPolygon:function(e,r){function t(i){if(i.length<=0)return e.segments({inverted:!1,regions:[]});function l(u){var f=u.slice(0,u.length-1);return e.segments({inverted:!1,regions:[f]})}for(var o=l(i[0]),s=1;s{var dhe=jE(),hhe=eR(),cR=nR(),phe=lR(),Bv=sR(),vR=fR(),xi=!1,Hv=hhe(),Dn;Dn={buildLog:function(e){return e===!0?xi=dhe():e===!1&&(xi=!1),xi===!1?!1:xi.list},epsilon:function(e){return Hv.epsilon(e)},segments:function(e){var r=cR(!0,Hv,xi);return e.regions.forEach(r.addRegion),{segments:r.calculate(e.inverted),inverted:e.inverted}},combine:function(e,r){var t=cR(!1,Hv,xi);return{combined:t.calculate(e.segments,e.inverted,r.segments,r.inverted),inverted1:e.inverted,inverted2:r.inverted}},selectUnion:function(e){return{segments:Bv.union(e.combined,xi),inverted:e.inverted1||e.inverted2}},selectIntersect:function(e){return{segments:Bv.intersect(e.combined,xi),inverted:e.inverted1&&e.inverted2}},selectDifference:function(e){return{segments:Bv.difference(e.combined,xi),inverted:e.inverted1&&!e.inverted2}},selectDifferenceRev:function(e){return{segments:Bv.differenceRev(e.combined,xi),inverted:!e.inverted1&&e.inverted2}},selectXor:function(e){return{segments:Bv.xor(e.combined,xi),inverted:e.inverted1!==e.inverted2}},polygon:function(e){return{regions:phe(e.segments,Hv,xi),inverted:e.inverted}},polygonFromGeoJSON:function(e){return vR.toPolygon(Dn,e)},polygonToGeoJSON:function(e){return vR.fromPolygon(Dn,Hv,e)},union:function(e,r){return Ov(e,r,Dn.selectUnion)},intersect:function(e,r){return Ov(e,r,Dn.selectIntersect)},difference:function(e,r){return Ov(e,r,Dn.selectDifference)},differenceRev:function(e,r){return Ov(e,r,Dn.selectDifferenceRev)},xor:function(e,r){return Ov(e,r,Dn.selectXor)}};function Ov(e,r,t){var a=Dn.segments(e),n=Dn.segments(r),i=Dn.combine(a,n),l=t(i);return Dn.polygon(l)}typeof window=="object"&&(window.PolyBool=Dn);dR.exports=Dn});var mR=U((eCe,pR)=>{pR.exports=function(r,t,a,n){var i=r[0],l=r[1],o=!1;a===void 0&&(a=0),n===void 0&&(n=t.length);for(var s=n-a,u=0,f=s-1;ul!=p>l&&i<(h-c)*(l-v)/(p-v)+c;y&&(o=!o)}return o}});var d4=U((rCe,yR)=>{"use strict";var v4=yh().dot,hp=(Et(),Fe(zt)).BADNUM,pp=yR.exports={};pp.tester=function(r){var t=r.slice(),a=t[0][0],n=a,i=t[0][1],l=i,o;for((t[t.length-1][0]!==t[0][0]||t[t.length-1][1]!==t[0][1])&&t.push(t[0]),o=1;on||b===hp||bl||y&&u(p))}function c(p,y){var m=p[0],b=p[1];if(m===hp||mn||b===hp||bl)return!1;var _=t.length,w=t[0][0],x=t[0][1],M=0,k,A,S,D,P;for(k=1;k<_;k++)if(A=w,S=x,w=t[k][0],x=t[k][1],D=Math.min(A,w),!(mMath.max(A,w)||b>Math.max(S,x)))if(bo||Math.abs(v4(c,u))>n)return!0;return!1};pp.filter=function(r,t){var a=[r[0]],n=0,i=0;function l(s){r.push(s);var u=a.length,f=n;a.splice(i+1);for(var c=f+1;c1){var o=r.pop();l(o)}return{addPt:l,raw:r,filtered:a}}});var gR={};vt(gR,{BENDPX:()=>mhe,MINSELECT:()=>yhe,SELECTDELAY:()=>ghe,SELECTID:()=>xhe});var mhe,yhe,ghe,xhe,xR=Lr(()=>{"use strict";mhe=1.5,yhe=12,ghe=100,xhe="-select"});var OR=U((tCe,HR)=>{"use strict";var bR=hR(),bhe=mR(),Uv=Ar(),_he=Zr().dashStyle,Yv=kr(),whe=yi(),The=Ui().makeEventData,Jv=tf(),Mhe=Jv.freeMode,Ahe=Jv.rectMode,Vv=Jv.drawMode,y4=Jv.openMode,g4=Jv.selectMode,_R=Oo(),wR=(Dv(),Fe(qv)),CR=Q1(),LR=Lo().clearOutline,SR=Io(),h4=SR.handleEllipse,khe=SR.readPaths,Che=$1().newShapes,Lhe=Bb(),She=c4().activateLastSelection,yp=ke(),qhe=yp.sorterAsc,qR=d4(),Gv=Sh(),bi=oa().getFromId,Dhe=Y1(),Phe=cp().redrawReglTraces,gp=(xR(),Fe(gR)),kl=gp.MINSELECT,Ehe=qR.filter,x4=qR.tester,b4=X1(),TR=b4.p2r,Rhe=b4.axValue,zhe=b4.getTransform;function _4(e){return e.subplot!==void 0}function Fhe(e,r,t,a,n){var i=!_4(a),l=Mhe(n),o=Ahe(n),s=y4(n),u=Vv(n),f=g4(n),c=n==="drawline",v=n==="drawcircle",h=c||v,p=a.gd,y=p._fullLayout,m=f&&y.newselection.mode==="immediate"&&i,b=y._zoomlayer,_=a.element.getBoundingClientRect(),w=a.plotinfo,x=zhe(w),M=r-_.left,k=t-_.top;y._calcInverseTransform(p);var A=yp.apply3DTransform(y._invTransform)(M,k);M=A[0],k=A[1];var S=y._invScaleX,D=y._invScaleY,P=M,R=k,F="M"+M+","+k,N=a.xaxes[0],B=a.yaxes[0],H=N._length,O=B._length,Y=e.altKey&&!(Vv(n)&&s),G,V,W,X,$,te,ie;PR(e,p,a),l&&(G=Ehe([[M,k]],gp.BENDPX));var ve=b.selectAll("path.select-outline-"+w.id).data([1]),K=u?y.newshape:y.newselection;u&&(a.hasText=K.label.text||K.label.texttemplate);var he=u&&!s?K.fillcolor:"rgba(0,0,0,0)",le=K.line.color||(i?Yv.contrast(p._fullLayout.plot_bgcolor):"#7f7f7f");ve.enter().append("path").attr("class","select-outline select-outline-"+w.id).style({opacity:u?K.opacity/2:1,"stroke-dasharray":_he(K.line.dash,K.line.width),"stroke-width":K.line.width+"px","shape-rendering":"crispEdges"}).call(Yv.stroke,le).call(Yv.fill,he).attr("fill-rule","evenodd").classed("cursor-move",!!u).attr("transform",x).attr("d",F+"Z");var _e=b.append("path").attr("class","zoombox-corners").style({fill:Yv.background,stroke:Yv.defaultLine,"stroke-width":1}).attr("transform",x).attr("d","M0,0Z");if(u&&a.hasText){var me=b.select(".label-temp");me.empty()&&(me=b.append("g").classed("label-temp",!0).classed("select-outline",!0).style({opacity:.8}))}var ce=y._uid+gp.SELECTID,Me=[],Re=xp(p,a.xaxes,a.yaxes,a.subplot);m&&!e.shiftKey&&(a._clearSubplotSelections=function(){if(i){var Pe=N._id,Le=B._id;NR(p,Pe,Le,Re);for(var qe=(p.layout||{}).selections||[],Ee=[],Ue=!1,Ce=0;Ce=0){p._fullLayout._deactivateShape(p);return}if(!u){var qe=y.clickmode;Gv.done(ce).then(function(){if(Gv.clear(ce),Pe===2){for(ve.remove(),$=0;$-1&&DR(Le,p,a.xaxes,a.yaxes,a.subplot,a,ve),qe==="event"&&Zv(p,void 0);whe.click(p,Le,w.id)}).catch(yp.error)}},a.doneFn=function(){_e.remove(),Gv.done(ce).then(function(){Gv.clear(ce),!m&&X&&a.selectionDefs&&(X.subtract=Y,a.selectionDefs.push(X),a.mergedPolygons.length=0,[].push.apply(a.mergedPolygons,W)),(m||u)&&Xv(a,m),a.doneFnCompleted&&a.doneFnCompleted(Me),f&&Zv(p,ie)}).catch(yp.error)}}function DR(e,r,t,a,n,i,l){var o=r._hoverdata,s=r._fullLayout,u=s.clickmode,f=u.indexOf("event")>-1,c=[],v,h,p,y,m,b,_,w,x,M;if(Ohe(o)){PR(e,r,i),v=xp(r,t,a,n);var k=Yhe(o,v),A=k.pointNumbers.length>0;if(A?Ghe(v,k):Uhe(v)&&(_=AR(k))){for(l&&l.remove(),M=0;M=0}function Hhe(e){return e._fullLayout._activeSelectionIndex>=0}function Xv(e,r){var t=e.dragmode,a=e.plotinfo,n=e.gd;Bhe(n)&&n._fullLayout._deactivateShape(n),Hhe(n)&&n._fullLayout._deactivateSelection(n);var i=n._fullLayout,l=i._zoomlayer,o=Vv(t),s=g4(t);if(o||s){var u=l.selectAll(".select-outline-"+a.id);if(u&&n._fullLayout._outlining){var f;o&&(f=Che(u,e)),f&&Uv.call("_guiRelayout",n,{shapes:f});var c;s&&!_4(e)&&(c=Lhe(u,e)),c&&(n._fullLayout._noEmitSelectedAtStart=!0,Uv.call("_guiRelayout",n,{selections:c}).then(function(){r&&She(n)})),n._fullLayout._outlining=!1}}a.selection={},a.selection.selectionDefs=e.selectionDefs=[],a.selection.mergedPolygons=e.mergedPolygons=[]}function MR(e){return e._id}function xp(e,r,t,a){if(!e.calcdata)return[];var n=[],i=r.map(MR),l=t.map(MR),o,s,u;for(u=0;u0,i=n?a[0]:t;return r.selectedpoints?r.selectedpoints.indexOf(i)>-1:!1}function Ghe(e,r){var t=[],a,n,i,l;for(l=0;l0&&t.push(a);if(t.length===1&&(i=t[0]===r.searchInfo,i&&(n=r.searchInfo.cd[0].trace,n.selectedpoints.length===r.pointNumbers.length))){for(l=0;l1||(r+=a.selectedpoints.length,r>1)))return!1;return r===1}function Wv(e,r,t){var a,n;for(a=0;a-1&&r;if(!l&&r){var Pe=kR(e,!0);if(Pe.length){var Le=Pe[0].xref,qe=Pe[0].yref;if(Le&&qe){var Ee=IR(Pe),Ue=BR([bi(e,Le,"x"),bi(e,qe,"y")]);Ue(Me,Ee)}}e._fullLayout._noEmitSelectedAtStart?e._fullLayout._noEmitSelectedAtStart=!1:xe&&Zv(e,Me),v._reselect=!1}if(!l&&v._deselect){var Ce=v._deselect;o=Ce.xref,s=Ce.yref,Whe(o,s,f)||NR(e,o,s,a),xe&&(Me.points.length?Zv(e,Me):M4(e)),v._deselect=!1}return{eventData:Me,selectionTesters:t}}function Xhe(e){var r=e.calcdata;if(r)for(var t=0;t{"use strict";YR.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}]});var $v={};vt($v,{axisRefDescription:()=>jhe});function jhe(e,r,t){return[`If set to a ${e} axis id (e.g. *${e}* or *${e}2*),`,`the \`${e}\` position refers to a ${e} coordinate.`,`If set to *paper*, the \`${e}\` position refers to the distance from the`,`${r} of the plotting area in normalized coordinates where *0* (*1*) corresponds`,`to the ${r} (${t}). If set to a ${e} 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 ${r} of the domain of that`,`axis: e.g., *${e}2 domain* refers to the domain of the second ${e}`,`axis and a ${e} position of 0.5 refers to the point between the ${r}`,`and the ${t} of the domain of the second ${e} axis.`].join(" ")}var Kv=Lr(()=>{"use strict"});var ff=U((iCe,VR)=>{"use strict";var GR=A4(),UR=xa(),bp=(Ta(),Fe(wa)),Qhe=ht().templatedArray,nCe=(Kv(),Fe($v));VR.exports=Qhe("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:UR({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:GR.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:GR.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",bp.idRegex.x.toString()],editType:"calc"},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",bp.idRegex.y.toString()],editType:"calc"},xref:{valType:"enumerated",values:["paper",bp.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",bp.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:UR({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc"})});var _p={};vt(_p,{PTS_LINESONLY:()=>e1e,eventDataKeys:()=>n1e,maxScreensAway:()=>a1e,minTolerance:()=>r1e,toleranceGrowth:()=>t1e});var e1e,r1e,t1e,a1e,n1e,wp=Lr(()=>{"use strict";e1e=20,r1e=.2,t1e=10,a1e=20,n1e=[]});var k4=U((lCe,XR)=>{"use strict";XR.exports=function(r){return{valType:"color",editType:"style",anim:!0}}});var Zi=U((oCe,ez)=>{"use strict";var WR=Gi().axisHoverFormat,{hovertemplateAttrs:i1e,texttemplateAttrs:l1e,templatefallbackAttrs:ZR}=On(),JR=sv(),o1e=xa(),$R=Bi().dash,s1e=Bi().pattern,u1e=Zr(),f1e=(wp(),Fe(_p)),jv=At().extendFlat,c1e=k4();function KR(e){return{valType:"any",dflt:0,editType:"calc"}}function jR(e){return{valType:"any",editType:"calc"}}function QR(e){return{valType:"enumerated",values:["start","middle","end"],dflt:"middle",editType:"calc"}}ez.exports={x:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0},x0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",anim:!0},dx:{valType:"number",dflt:1,editType:"calc",anim:!0},y:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0},y0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",anim:!0},dy:{valType:"number",dflt:1,editType:"calc",anim:!0},xperiod:KR("x"),yperiod:KR("y"),xperiod0:jR("x0"),yperiod0:jR("y0"),xperiodalignment:QR("x"),yperiodalignment:QR("y"),xhoverformat:WR("x"),yhoverformat:WR("y"),offsetgroup:{valType:"string",dflt:"",editType:"calc"},alignmentgroup:{valType:"string",dflt:"",editType:"calc"},stackgroup:{valType:"string",dflt:"",editType:"calc"},orientation:{valType:"enumerated",values:["v","h"],editType:"calc"},groupnorm:{valType:"enumerated",values:["","fraction","percent"],dflt:"",editType:"calc"},stackgaps:{valType:"enumerated",values:["infer zero","interpolate"],dflt:"infer zero",editType:"calc"},text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},texttemplate:l1e(),texttemplatefallback:ZR({editType:"calc"}),hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"style"},mode:{valType:"flaglist",flags:["lines","markers","text"],extras:["none"],editType:"calc"},hoveron:{valType:"flaglist",flags:["points","fills"],editType:"style"},hovertemplate:i1e({},{keys:f1e.eventDataKeys}),hovertemplatefallback:ZR(),line:{color:{valType:"color",editType:"style",anim:!0},width:{valType:"number",min:0,dflt:2,editType:"style",anim:!0},shape:{valType:"enumerated",values:["linear","spline","hv","vh","hvh","vhv"],dflt:"linear",editType:"plot"},smoothing:{valType:"number",min:0,max:1.3,dflt:1,editType:"plot"},dash:jv({},$R,{editType:"style"}),backoff:{valType:"number",min:0,dflt:"auto",arrayOk:!0,editType:"plot"},simplify:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},connectgaps:{valType:"boolean",dflt:!1,editType:"calc"},cliponaxis:{valType:"boolean",dflt:!0,editType:"plot"},fill:{valType:"enumerated",values:["none","tozeroy","tozerox","tonexty","tonextx","toself","tonext"],editType:"calc"},fillcolor:c1e(!0),fillgradient:jv({type:{valType:"enumerated",values:["radial","horizontal","vertical","none"],dflt:"none",editType:"calc"},start:{valType:"number",editType:"calc"},stop:{valType:"number",editType:"calc"},colorscale:{valType:"colorscale",editType:"style"},editType:"calc"}),fillpattern:s1e,marker:jv({symbol:{valType:"enumerated",values:u1e.symbolList,dflt:"circle",arrayOk:!0,editType:"style"},opacity:{valType:"number",min:0,max:1,arrayOk:!0,editType:"style",anim:!0},angle:{valType:"angle",dflt:0,arrayOk:!0,editType:"plot",anim:!1},angleref:{valType:"enumerated",values:["previous","up"],dflt:"up",editType:"plot",anim:!1},standoff:{valType:"number",min:0,dflt:0,arrayOk:!0,editType:"plot",anim:!0},size:{valType:"number",min:0,dflt:6,arrayOk:!0,editType:"calc",anim:!0},maxdisplayed:{valType:"number",min:0,dflt:0,editType:"plot"},sizeref:{valType:"number",dflt:1,editType:"calc"},sizemin:{valType:"number",min:0,dflt:0,editType:"calc"},sizemode:{valType:"enumerated",values:["diameter","area"],dflt:"diameter",editType:"calc"},line:jv({width:{valType:"number",min:0,arrayOk:!0,editType:"style",anim:!0},dash:jv({},$R,{arrayOk:!0}),editType:"calc"},JR("marker.line",{anim:!0})),gradient:{type:{valType:"enumerated",values:["radial","horizontal","vertical","none"],arrayOk:!0,dflt:"none",editType:"calc"},color:{valType:"color",arrayOk:!0,editType:"calc"},editType:"calc"},editType:"calc"},JR("marker",{anim:!0})),selected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style"},color:{valType:"color",editType:"style"},size:{valType:"number",min:0,editType:"style"},editType:"style"},textfont:{color:{valType:"color",editType:"style"},editType:"style"},editType:"style"},unselected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style"},color:{valType:"color",editType:"style"},size:{valType:"number",min:0,editType:"style"},editType:"style"},textfont:{color:{valType:"color",editType:"style"},editType:"style"},editType:"style"},textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right"],dflt:"middle center",arrayOk:!0,editType:"calc"},textfont:o1e({editType:"calc",colorEditType:"style",arrayOk:!0}),zorder:{valType:"integer",dflt:0,editType:"plot"}}});var C4=U((uCe,az)=>{"use strict";var rz=ff(),tz=Zi().line,v1e=Bi().dash,Tp=At().extendFlat,d1e=Ii().overrideAll,h1e=ht().templatedArray,sCe=(Kv(),Fe($v));az.exports=d1e(h1e("selection",{type:{valType:"enumerated",values:["rect","path"]},xref:Tp({},rz.xref,{}),yref:Tp({},rz.yref,{}),x0:{valType:"any"},x1:{valType:"any"},y0:{valType:"any"},y1:{valType:"any"},path:{valType:"string",editType:"arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:.7,editType:"arraydraw"},line:{color:tz.color,width:Tp({},tz.width,{min:1,dflt:1}),dash:Tp({},v1e,{dflt:"dot"})}}),"arraydraw","from-root")});var oz=U((fCe,lz)=>{"use strict";var nz=ke(),Mp=Kr(),p1e=di(),m1e=C4(),iz=Oo();lz.exports=function(r,t){p1e(r,t,{name:"selections",handleItemDefaults:y1e});for(var a=t.selections,n=0;n{"use strict";sz.exports=function(r,t,a){a("newselection.mode");var n=a("newselection.line.width");n&&(a("newselection.line.color"),a("newselection.line.dash")),a("activeselection.fillcolor"),a("activeselection.opacity")}});var Qv=U((vCe,vz)=>{"use strict";var g1e=Ar(),fz=ke(),cz=oa();vz.exports=function(r){return function(a,n){var i=a[r];if(Array.isArray(i))for(var l=g1e.subplotsRegistry.cartesian,o=l.idRegex,s=n._subplots,u=s.xaxis,f=s.yaxis,c=s.cartesian,v=n._has("cartesian"),h=0;h{"use strict";var dz=c4(),e2=OR();hz.exports={moduleType:"component",name:"selections",layoutAttributes:C4(),supplyLayoutDefaults:oz(),supplyDrawNewSelectionDefaults:uz(),includeBasePlot:Qv()("selections"),draw:dz.draw,drawOne:dz.drawOne,reselect:e2.reselect,prepSelect:e2.prepSelect,clearOutline:e2.clearOutline,clearSelectionsCache:e2.clearSelectionsCache,selectOnClick:e2.selectOnClick}});var Rz=U((hCe,Ez)=>{"use strict";var E4=Er(),_i=ke(),pz=_i.numberFormat,x1e=sb(),Ap=Ar(),Tz=_i.strTranslate,b1e=ma(),S4=kr(),Go=Zr(),_1e=yi(),mz=Kr(),w1e=Fo(),T1e=Xi(),Mz=tf(),kp=Mz.selectingOrDrawing,M1e=Mz.freeMode,A1e=(Ha(),Fe(Ba)).FROM_TL,k1e=Y1(),C1e=cp().redrawReglTraces,L1e=Xt(),q4=oa().getFromId,S1e=cf().prepSelect,q1e=cf().clearOutline,D1e=cf().selectOnClick,L4=a4(),R4=(Ta(),Fe(wa)),yz=R4.MINDRAG,yn=R4.MINZOOM,gz=!0;function P1e(e,r,t,a,n,i,l,o){var s=e._fullLayout._zoomlayer,u=l+o==="nsew",f=(l+o).length===1,c,v,h,p,y,m,b,_,w,x,M,k,A,S,D,P,R,F,N,B,H,O,Y;t+=r.yaxis._shift;function G(){if(c=r.xaxis,v=r.yaxis,w=c._length,x=v._length,b=c._offset,_=v._offset,h={},h[c._id]=c,p={},p[v._id]=v,l&&o)for(var pe=r.overlays,Te=0;Te=0){Oe._fullLayout._deactivateShape(Oe);return}var Je=Oe._fullLayout.clickmode;if(P4(Oe),pe===2&&!f&&Qe(),u)Je.indexOf("select")>-1&&D1e(Te,Oe,y,m,r.id,X),Je.indexOf("event")>-1&&_1e.click(Oe,Te,r.id);else if(pe===1&&f){var Be=l?v:c,Ve=l==="s"||o==="w"?0:1,nr=Be._name+".range["+Ve+"]",lr=E1e(Be,Ve),fr="left",Se="middle";if(Be.fixedrange)return;l?(Se=l==="n"?"top":"bottom",Be.side==="right"&&(fr="right")):o==="e"&&(fr="right"),Oe._context.showAxisRangeEntryBoxes&&E4.select(W).call(b1e.makeEditable,{gd:Oe,immediate:!0,background:Oe._fullLayout.paper_bgcolor,text:String(lr),fill:Be.tickfont?Be.tickfont.color:"#444",horizontalAlign:fr,verticalAlign:Se}).on("edit",function(Ke){var Ie=Be.d2r(Ke);Ie!==void 0&&Ap.call("_guiRelayout",Oe,nr,Ie)})}}T1e.init(X);var ie,ve,K,he,le,_e,me,ce,Me,Re;function xe(pe,Te,Oe){var Je=W.getBoundingClientRect();ie=Te-Je.left,ve=Oe-Je.top,e._fullLayout._calcInverseTransform(e);var Be=_i.apply3DTransform(e._fullLayout._invTransform)(ie,ve);ie=Be[0],ve=Be[1],K={l:ie,r:ie,w:0,t:ve,b:ve,h:0},he=e._hmpixcount?e._hmlumcount/e._hmpixcount:S4.luminosity(e._fullLayout.plot_bgcolor),le="M0,0H"+w+"V"+x+"H0V0",_e=!1,me="xy",Re=!1,ce=Cz(s,he,b,_,le),Me=Lz(s,b,_)}function Pe(pe,Te){if(e._transitioningWithDuration)return!1;var Oe=Math.max(0,Math.min(w,O*pe+ie)),Je=Math.max(0,Math.min(x,Y*Te+ve)),Be=Math.abs(Oe-ie),Ve=Math.abs(Je-ve);K.l=Math.min(ie,Oe),K.r=Math.max(ie,Oe),K.t=Math.min(ve,Je),K.b=Math.max(ve,Je);function nr(){me="",K.r=K.l,K.t=K.b,Me.attr("d","M0,0Z")}if(M.isSubplotConstrained)Be>yn||Ve>yn?(me="xy",Be/w>Ve/x?(Ve=Be*x/w,ve>Je?K.t=ve-Ve:K.b=ve+Ve):(Be=Ve*w/x,ie>Oe?K.l=ie-Be:K.r=ie+Be),Me.attr("d",Cp(K))):nr();else if(k.isSubplotConstrained)if(Be>yn||Ve>yn){me="xy";var lr=Math.min(K.l/w,(x-K.b)/x),fr=Math.max(K.r/w,(x-K.t)/x);K.l=lr*w,K.r=fr*w,K.b=(1-lr)*x,K.t=(1-fr)*x,Me.attr("d",Cp(K))}else nr();else!S||Ve0){var Ke;if(k.isSubplotConstrained||!A&&S.length===1){for(Ke=0;Ke1&&(nr.maxallowed!==void 0&&P===(nr.range[0]1&&(lr.maxallowed!==void 0&&R===(lr.range[0]=0?Math.min(e,.9):1/(1/Math.max(e,-.3)+3.222))}function z1e(e,r,t){return e?e==="nsew"?t?"":r==="pan"?"move":"crosshair":e.toLowerCase()+"-resize":"pointer"}function Cz(e,r,t,a,n){return e.append("path").attr("class","zoombox").style({fill:r>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("transform",Tz(t,a)).attr("d",n+"Z")}function Lz(e,r,t){return e.append("path").attr("class","zoombox-corners").style({fill:S4.background,stroke:S4.defaultLine,"stroke-width":1,opacity:0}).attr("transform",Tz(r,t)).attr("d","M0,0Z")}function Sz(e,r,t,a,n,i){e.attr("d",a+"M"+t.l+","+t.t+"v"+t.h+"h"+t.w+"v-"+t.h+"h-"+t.w+"Z"),qz(e,r,n,i)}function qz(e,r,t,a){t||(e.transition().style("fill",a>.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),r.transition().style("opacity",1).duration(200))}function P4(e){E4.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function Dz(e){gz&&e.data&&e._context.showTips&&(_i.notifier(_i._(e,"Double-click to zoom back out"),"long",e),gz=!1)}function F1e(e,r){return"M"+(e.l-.5)+","+(r-yn-.5)+"h-3v"+(2*yn+1)+"h3ZM"+(e.r+.5)+","+(r-yn-.5)+"h3v"+(2*yn+1)+"h-3Z"}function N1e(e,r){return"M"+(r-yn-.5)+","+(e.t-.5)+"v-3h"+(2*yn+1)+"v3ZM"+(r-yn-.5)+","+(e.b+.5)+"v3h"+(2*yn+1)+"v-3Z"}function Cp(e){var r=Math.floor(Math.min(e.b-e.t,e.r-e.l,yn)/2);return"M"+(e.l-3.5)+","+(e.t-.5+r)+"h3v"+-r+"h"+r+"v-3h-"+(r+3)+"ZM"+(e.r+3.5)+","+(e.t-.5+r)+"h-3v"+-r+"h"+-r+"v-3h"+(r+3)+"ZM"+(e.r+3.5)+","+(e.b+.5-r)+"h-3v"+r+"h"+-r+"v3h"+(r+3)+"ZM"+(e.l-3.5)+","+(e.b+.5-r)+"h3v"+r+"h"+r+"v3h-"+(r+3)+"Z"}function _z(e,r,t,a,n){for(var i=!1,l={},o={},s,u,f,c,v=(n||{}).xaHash,h=(n||{}).yaHash,p=0;p{"use strict";var I1e=Er(),Lp=yi(),B1e=Xi(),H1e=Fo(),Ji=Rz().makeDragBox,ka=(Ta(),Fe(wa)).DRAGGERSIZE;Sp.initInteractions=function(r){var t=r._fullLayout;if(r._context.staticPlot){I1e.select(r).selectAll(".drag").remove();return}if(!(!t._has("cartesian")&&!t._has("splom"))){var a=Object.keys(t._plots||{}).sort(function(i,l){if((t._plots[i].mainplot&&!0)===(t._plots[l].mainplot&&!0)){var o=i.split("y"),s=l.split("y");return o[0]===s[0]?Number(o[1]||1)-Number(s[1]||1):Number(o[0]||1)-Number(s[0]||1)}return t._plots[i].mainplot?1:-1});a.forEach(function(i){var l=t._plots[i],o=l.xaxis,s=l.yaxis;if(!l.mainplot){var u=Ji(r,l,o._offset,s._offset,o._length,s._length,"ns","ew");u.onmousemove=function(v){r._fullLayout._rehover=function(){r._fullLayout._hoversubplot===i&&r._fullLayout._plots[i]&&Lp.hover(r,v,i)},Lp.hover(r,v,i),r._fullLayout._lasthover=u,r._fullLayout._hoversubplot=i},u.onmouseout=function(v){r._dragging||(r._fullLayout._hoversubplot=null,B1e.unhover(r,v))},r._context.showAxisDragHandles&&(Ji(r,l,o._offset-ka,s._offset-ka,ka,ka,"n","w"),Ji(r,l,o._offset+o._length,s._offset-ka,ka,ka,"n","e"),Ji(r,l,o._offset-ka,s._offset+s._length,ka,ka,"s","w"),Ji(r,l,o._offset+o._length,s._offset+s._length,ka,ka,"s","e"))}if(r._context.showAxisDragHandles){if(i===o._mainSubplot){var f=o._mainLinePosition;o.side==="top"&&(f-=ka),Ji(r,l,o._offset+o._length*.1,f,o._length*.8,ka,"","ew"),Ji(r,l,o._offset,f,o._length*.1,ka,"","w"),Ji(r,l,o._offset+o._length*.9,f,o._length*.1,ka,"","e")}if(i===s._mainSubplot){var c=s._mainLinePosition;s.side!=="right"&&(c-=ka),Ji(r,l,c,s._offset+s._length*.1,ka,s._length*.8,"ns",""),Ji(r,l,c,s._offset+s._length*.9,ka,s._length*.1,"s",""),Ji(r,l,c,s._offset,ka,s._length*.1,"n","")}}});var n=t._hoverlayer.node();n.onmousemove=function(i){i.target=r._fullLayout._lasthover,Lp.hover(r,i,t._hoversubplot)},n.onclick=function(i){i.target=r._fullLayout._lasthover,Lp.click(r,i)},n.onmousedown=function(i){r._fullLayout._lasthover.onmousedown(i)},Sp.updateFx(r)}};Sp.updateFx=function(e){var r=e._fullLayout,t=r.dragmode==="pan"?"move":"crosshair";H1e(r._draggers,t)}});var Nz=U((mCe,Fz)=>{"use strict";var zz=Ar();Fz.exports=function(r){for(var t=zz.layoutArrayContainers,a=zz.layoutArrayRegexes,n=r.split("[")[0],i,l,o=0;o{"use strict";var O1e=Ms(),F4=mh(),r2=yo(),Y1e=k5().sorterAsc,N4=Ar();t2.containerArrayMatch=Nz();var G1e=t2.isAddVal=function(r){return r==="add"||O1e(r)},Iz=t2.isRemoveVal=function(r){return r===null||r==="remove"};t2.applyContainerArrayChanges=function(r,t,a,n,i){var l=t.astr,o=N4.getComponentMethod(l,"supplyLayoutDefaults"),s=N4.getComponentMethod(l,"draw"),u=N4.getComponentMethod(l,"drawOne"),f=n.replot||n.recalc||o===F4||s===F4,c=r.layout,v=r._fullLayout;if(a[""]){Object.keys(a).length>1&&r2.warn("Full array edits are incompatible with other edits",l);var h=a[""][""];if(Iz(h))t.set(null);else if(Array.isArray(h))t.set(h);else return r2.warn("Unrecognized full array edit value",l,h),!0;return f?!1:(o(c,v),s(r),!0)}var p=Object.keys(a).map(Number).sort(Y1e),y=t.get(),m=y||[],b=i(v,l).get(),_=[],w=-1,x=m.length,M,k,A,S,D,P,R,F;for(M=0;Mm.length-(R?0:1)){r2.warn("index out of range",l,A);continue}if(P!==void 0)D.length>1&&r2.warn("Insertion & removal are incompatible with edits to the same index.",l,A),Iz(P)?_.push(A):R?(P==="add"&&(P={}),m.splice(A,0,P),b&&b.splice(A,0,{})):r2.warn("Unrecognized full object edit value",l,A,P),w===-1&&(w=A);else for(k=0;k=0;M--)m.splice(_[M],1),b&&b.splice(_[M],1);if(m.length?y||t.set(m):t.set(null),f)return!1;if(o(c,v),u!==F4){var N;if(w===-1)N=p;else{for(x=Math.max(m.length,x),N=[],M=0;M=w));M++)N.push(A);for(M=w;M{"use strict";var Gz=Gr(),Uz=Ar(),fn=ke(),a2=Xt(),Vz=oa(),n2=Vz.cleanId,U1e=Vz.getFromTrace,I4=Uz.traceIs,V1e=["x","y","z"];wi.clearPromiseQueue=function(e){Array.isArray(e._promises)&&e._promises.length>0&&fn.log("Clearing previous rejected promises from queue."),e._promises=[]};wi.cleanLayout=function(e){var r,t;e||(e={}),e.xaxis1&&(e.xaxis||(e.xaxis=e.xaxis1),delete e.xaxis1),e.yaxis1&&(e.yaxis||(e.yaxis=e.yaxis1),delete e.yaxis1),e.scene1&&(e.scene||(e.scene=e.scene1),delete e.scene1);var a=(a2.subplotsRegistry.cartesian||{}).attrRegex,n=(a2.subplotsRegistry.polar||{}).attrRegex,i=(a2.subplotsRegistry.ternary||{}).attrRegex,l=(a2.subplotsRegistry.gl3d||{}).attrRegex,o=Object.keys(e);for(r=0;r3?(m.x=1.02,m.xanchor="left"):m.x<-2&&(m.x=-.02,m.xanchor="right"),m.y>3?(m.y=1.02,m.yanchor="bottom"):m.y<-2&&(m.y=-.02,m.yanchor="top")),e.dragmode==="rotate"&&(e.dragmode="orbit"),e.template&&e.template.layout&&wi.cleanLayout(e.template.layout),e};function vf(e,r,t=!1){var a=e[r],n=r.charAt(0);t&&Array.isArray(a)||a&&a!=="paper"&&(e[r]=n2(a,n,!0))}wi.cleanData=function(e){for(var r=0;r0)return e.slice(0,r)}wi.hasParent=function(e,r){for(var t=Yz(r);t;){if(t in e)return!0;t=Yz(t)}return!1};wi.clearAxisTypes=function(e,r,t){for(var a=0;a{let t=(...a)=>a.every(n=>fn.isPlainObject(n))||a.every(n=>Array.isArray(n));if([e,r].every(a=>Array.isArray(a))){if(e.length!==r.length)return!1;for(let a=0;afn.isPlainObject(a))){if(Object.keys(e).length!==Object.keys(r).length)return!1;for(let a in e){if(a.startsWith("_"))continue;let n=e[a],i=r[a];if(n!==i&&!(t(n,i)?B4(n,i):!1))return!1}return!0}return!1};wi.collectionsAreEqual=B4});var U4=U(Jr=>{"use strict";var Rp=Er(),Z1e=Gr(),J1e=O5(),ar=ke(),xt=ar.nestedProperty,O4=av(),gn=zC(),Ti=Ar(),Op=z0(),qr=Xt(),cn=Kr(),$1e=ob(),K1e=Vn(),Pp=Zr(),j1e=kr(),Q1e=z4().initInteractions,epe=(Us(),Fe(Gs)),rpe=cf().clearOutline,Kz=mo().dfltConfig,Dp=Bz(),na=Xz(),lt=cp(),Uo=Ii(),tpe=(Ta(),Fe(wa)).AX_NAME_PATTERN,H4=0,Wz=5;function ape(e,r,t,a){var n;if(e=ar.getGraphDiv(e),O4.init(e),ar.isPlainObject(r)){var i=r;r=i.data,t=i.layout,a=i.config,n=i.frames}var l=O4.triggerHandler(e,"plotly_beforeplot",[r,t,a]);if(l===!1)return Promise.reject();!r&&!t&&!ar.isPlotDiv(e)&&ar.warn("Calling _doPlot as if redrawing but this container doesn't yet have a plot.",e);function o(){if(n)return Jr.addFrames(e,n)}Qz(e,a),t||(t={}),Rp.select(e).classed("js-plotly-plot",!0),Pp.makeTester(),Array.isArray(e._promises)||(e._promises=[]);var s=(e.data||[]).length===0&&Array.isArray(r);Array.isArray(r)&&(na.cleanData(r),s?e.data=r:e.data.push.apply(e.data,r),e.empty=!1),(!e.layout||s)&&(e.layout=na.cleanLayout(t)),qr.supplyDefaults(e);var u=e._fullLayout,f=u._has("cartesian");u._replotting=!0,(s||u._shouldCreateBgLayer)&&(Cpe(e),u._shouldCreateBgLayer&&delete u._shouldCreateBgLayer),Pp.initGradients(e),Pp.initPatterns(e),s&&cn.saveShowSpikeInitial(e);var c=!e.calcdata||e.calcdata.length!==(e._fullData||[]).length;c&&qr.doCalcdata(e);for(var v=0;v{ar.isHidden(e)||qr.resize(e)};if(e._context.fillFrame||typeof ResizeObserver=="undefined")window.addEventListener("resize",S),e._clearResponsive=()=>window.removeEventListener("resize",S);else{let D=e.offsetWidth,P=e.offsetHeight,R=new ResizeObserver(()=>{let F=e.offsetWidth,N=e.offsetHeight,B=Math.abs(F-D)>1||Math.abs(N-P)>1;D=F,P=N,B&&F&&N&&S()});R.observe(e),e._clearResponsive=()=>R.disconnect()}}}else ar.clearResponsive(e);let h=document.fonts?[...document.fonts].filter(S=>S.status!=="loaded"):[];var p=ar.extendFlat({},u._size),y=0;function m(){for(var S=u._basePlotModules,D=0;D["loaded","loading"].includes(n.status));if(!t.length)return;let a={};e._fontLoadToken=a,yield Promise.all(t.map(n=>n.loaded.catch(()=>{}))),e._fontLoadToken===a&&(delete e._fontLoadToken,Pp.savedBBoxes={},Jr._doPlot(e))})}function l2(e){var r=e._fullLayout;r._redrawFromAutoMarginCount?r._redrawFromAutoMarginCount--:e.emit("plotly_afterplot")}function ipe(e){return ar.extendFlat(Kz,e)}function jz(e,r){try{e._fullLayout._paper.style("background",r)}catch(t){ar.error(t)}}function lpe(e,r){var t=j1e.combine(r,"white");jz(e,t)}function Qz(e,r){if(!e._context){e._context=ar.extendDeep({},Kz);var t=Rp.select("base");e._context._baseUrl=t.size()&&t.attr("href")?window.location.href.split("#")[0]:""}var a=e._context,n,i,l;if(r){for(i=Object.keys(r),n=0;n=e.data.length||n<-e.data.length)throw new Error(t+" must be valid indices for gd.data.");if(r.indexOf(n,a+1)>-1||n>=0&&r.indexOf(-e.data.length+n)>-1||n<0&&r.indexOf(e.data.length+n)>-1)throw new Error("each index in "+t+" must be unique.")}}function eF(e,r,t){if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(typeof r=="undefined")throw new Error("currentIndices is a required argument.");if(Array.isArray(r)||(r=[r]),Fp(e,r,"currentIndices"),typeof t!="undefined"&&!Array.isArray(t)&&(t=[t]),typeof t!="undefined"&&Fp(e,t,"newIndices"),typeof t!="undefined"&&r.length!==t.length)throw new Error("current and new indices must be of equal length.")}function upe(e,r,t){var a,n;if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(typeof r=="undefined")throw new Error("traces must be defined.");for(Array.isArray(r)||(r=[r]),a=0;a=0&&f=0&&f0&&typeof S.parts[R]!="string";)R--;var F=S.parts[R],N=S.parts[R-1]+"."+F,B=S.parts.slice(0,R).join("."),H=xt(e.layout,B).get(),O=xt(a,B).get(),Y=S.get();if(D!==void 0){b[A]=D,_[A]=F==="reverse"?D:Jl(Y);var G=Op.getLayoutValObject(a,S.parts);if(G&&G.impliedEdits&&D!==null)for(var V in G.impliedEdits)w(ar.relativeAttr(A,V),G.impliedEdits[V]);if(["width","height"].indexOf(A)!==-1)if(D){w("autosize",null);var W=A==="height"?"width":"height";w(W,a[W])}else a[A]=e._initialAutoSize[A];else if(A==="autosize")w("width",D?null:a.width),w("height",D?null:a.height);else if(N.match(uF))k(N),xt(a,B+"._inputRange").set(null);else if(N.match(fF)){k(N),xt(a,B+"._inputRange").set(null);var X=xt(a,B).get();X._inputDomain&&(X._input.domain=X._inputDomain.slice())}else N.match(dpe)&&xt(a,B+"._inputDomain").set(null);if(F==="type"){M=H;var $=O.type==="linear"&&D==="log",te=O.type==="log"&&D==="linear";if($||te){if(!M||!M.range)w(B+".autorange",!0);else if(O.autorange)$&&(M.range=M.range[1]>M.range[0]?[1,2]:[2,1]);else{var ie=M.range[0],ve=M.range[1];$?(ie<=0&&ve<=0&&w(B+".autorange",!0),ie<=0?ie=ve/1e6:ve<=0&&(ve=ie/1e6),w(B+".range[0]",Math.log(ie)/Math.LN10),w(B+".range[1]",Math.log(ve)/Math.LN10)):(w(B+".range[0]",Math.pow(10,ie)),w(B+".range[1]",Math.pow(10,ve)))}Array.isArray(a._subplots.polar)&&a._subplots.polar.length&&a[S.parts[0]]&&S.parts[1]==="radialaxis"&&delete a[S.parts[0]]._subplot.viewInitial["radialaxis.range"],Ti.getComponentMethod("annotations","convertCoords")(e,O,D,w),Ti.getComponentMethod("images","convertCoords")(e,O,D,w)}else w(B+".autorange",!0),w(B+".range",null);xt(a,B+"._inputRange").set(null)}else if(F.match(tpe)){var K=xt(a,A).get(),he=(D||{}).type;(!he||he==="-")&&(he="linear"),Ti.getComponentMethod("annotations","convertCoords")(e,K,he,w),Ti.getComponentMethod("images","convertCoords")(e,K,he,w)}var le=Dp.containerArrayMatch(A);if(le){f=le.array,c=le.index;var _e=le.property,me=G||{editType:"calc"};c!==""&&_e===""&&(Dp.isAddVal(D)?_[A]=null:Dp.isRemoveVal(D)?_[A]=(xt(t,f).get()||[])[c]:ar.warn("unrecognized full object value",r)),Uo.update(m,me),u[f]||(u[f]={});var ce=u[f][c];ce||(ce=u[f][c]={}),ce[_e]=D,delete r[A]}else F==="reverse"?(H.range?H.range.reverse():(w(B+".autorange",!0),H.range=[1,0]),O.autorange?m.calc=!0:m.plot=!0):(A==="dragmode"&&(D===!1&&Y!==!1||D!==!1&&Y===!1)||a._has("scatter-like")&&a._has("regl")&&A==="dragmode"&&(D==="lasso"||D==="select")&&!(Y==="lasso"||Y==="select")?m.plot=!0:G?Uo.update(m,G):m.calc=!0,S.set(D))}}for(f in u){var Me=Dp.applyContainerArrayChanges(e,i(t,f),u[f],m,i);Me||(m.plot=!0)}for(var Re in x){M=cn.getFromId(e,Re);var xe=M&&M._constraintGroup;if(xe){m.calc=!0;for(var Pe in xe)x[Pe]||(cn.getFromId(e,Pe)._constraintShrinkable=!0)}}(vF(e)||r.height||r.width)&&(m.plot=!0);var Le=a.shapes;for(c=0;c1;)if(a.pop(),t=xt(r,a.join(".")+".uirevision").get(),t!==void 0)return t;return r.uirevision}function mpe(e,r){for(var t=0;t[B,e._ev.listeners(B)]);i=Jr.newPlot(e,r,t,a).then(()=>{for(let[B,H]of N)H.forEach(O=>e.on(B,O));return Jr.react(e,r,t,a)})}else{e.data=r||[],na.cleanData(e.data),e.layout=t||{},na.cleanLayout(e.layout),gpe(e.data,e.layout,o,s),qr.supplyDefaults(e,{skipUpdateCalc:!0});var c=e._fullData,v=e._fullLayout,h=v.datarevision===void 0,p=v.transition,y=_pe(e,s,v,h,p),m=y.newDataRevision,b=bpe(e,o,c,h,p,m);if(vF(e)&&(y.layoutReplot=!0),b.calc||y.calc){e.calcdata=void 0;for(var _=Object.getOwnPropertyNames(v),w=0;w<_.length;w++){var x=_[w],M=x.substring(0,5);if(M==="xaxis"||M==="yaxis"){var k=v[x]._emptyCategories;k&&k()}}}else qr.supplyDefaultsUpdateCalc(e.calcdata,c);var A=[];if(n&&(e._transitionData={},qr.createTransitionData(e),A.push(l)),v.transition&&(b.anim||y.anim))y.ticks&&A.push(lt.doTicksRelayout),qr.doCalcdata(e),lt.doAutoRangeAndConstraints(e),A.push(function(){return qr.transitionFromReact(e,b,y,s)});else if(b.fullReplot||y.layoutReplot)e._fullLayout._skipDefaults=!0,A.push(Jr._doPlot);else{for(var S in y.arrays){var D=y.arrays[S];if(D.length){var P=Ti.getComponentMethod(S,"drawOne");if(P!==ar.noop)for(var R=0;R(f||e.emit("plotly_react",{config:a,data:r,layout:t}),e))}function bpe(e,r,t,a,n,i){var l=r.length===t.length;if(!n&&!l)return{fullReplot:!0,calc:!0};var o=Uo.traceFlags();o.arrays={},o.nChanges=0,o.nChangesAnim=0;var s,u;function f(h){var p=Op.getTraceValObject(u,h);return!u._module.animatable&&p.anim&&(p.anim=!1),p}var c={getValObject:f,flags:o,immutable:a,transition:n,newDataRevision:i,gd:e},v={};for(s=0;s=n.length?n[0]:n[u]:n}function o(u){return Array.isArray(i)?u>=i.length?i[0]:i[u]:i}function s(u,f){var c=0;return function(){if(u&&++c===f)return u()}}return new Promise(function(u,f){function c(){if(a._frameQueue.length!==0){for(;a._frameQueue.length;){var F=a._frameQueue.pop();F.onInterrupt&&F.onInterrupt()}e.emit("plotly_animationinterrupted",[])}}function v(F){if(F.length!==0){for(var N=0;Na._timeToNext&&p()};F()}var m=0;function b(F){return Array.isArray(n)?m>=n.length?F.transitionOpts=n[m]:F.transitionOpts=n[0]:F.transitionOpts=n,m++,F}var _,w,x=[],M=r==null,k=Array.isArray(r),A=!M&&!k&&ar.isPlainObject(r);if(A)x.push({type:"object",data:b(ar.extendFlat({},r))});else if(M||["string","number"].indexOf(typeof r)!==-1)for(_=0;_0&&PP)&&R.push(w);x=R}}x.length>0?v(x):(e.emit("plotly_animated"),u())})}function Tpe(e,r,t){if(e=ar.getGraphDiv(e),r==null)return Promise.resolve();if(!ar.isPlotDiv(e))throw new Error("This element is not a Plotly plot: "+e+". It's likely that you've failed to create a plot before adding frames. For more details, see https://plotly.com/javascript/animations/");var a,n,i,l,o=e._transitionData._frames,s=e._transitionData._frameHash;if(!Array.isArray(r))throw new Error("addFrames failure: frameList must be an Array of frame definitions"+r);var u=o.length+r.length*2,f=[],c={};for(a=r.length-1;a>=0;a--)if(ar.isPlainObject(r[a])){var v=r[a].name,h=(s[v]||c[v]||{}).name,p=r[a].name,y=s[h]||c[h];h&&p&&typeof p=="number"&&y&&H4S.index?-1:A.index=0;a--){if(n=f[a].frame,typeof n.name=="number"&&ar.warn("Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings"),!n.name)for(;s[n.name="frame "+e._transitionData._counter++];);if(s[n.name]){for(i=0;i=0;t--)a=r[t],i.push({type:"delete",index:a}),l.unshift({type:"insert",index:a,value:n[a]});var o=qr.modifyFrames,s=qr.modifyFrames,u=[e,l],f=[e,i];return gn&&gn.add(e,o,u,s,f),qr.modifyFrames(e,i)}function Ape(e){e=ar.getGraphDiv(e);var r=e._fullLayout||{},t=e._fullData||[];return qr.cleanPlot([],{},t,r),qr.purge(e),O4.purge(e),r._container&&r._container.remove(),delete e._context,e}function kpe(e){var r=e._fullLayout,t=e.getBoundingClientRect();if(!ar.equalDomRects(t,r._lastBBox)){var a=r._invTransform=ar.inverseTransformMatrix(ar.getFullTransformMatrix(e));r._invScaleX=Math.sqrt(a[0][0]*a[0][0]+a[0][1]*a[0][1]+a[0][2]*a[0][2]),r._invScaleY=Math.sqrt(a[1][0]*a[1][0]+a[1][1]*a[1][1]+a[1][2]*a[1][2]),r._lastBBox=t}}function Cpe(e){var r=Rp.select(e),t=e._fullLayout;if(t._calcInverseTransform=kpe,t._calcInverseTransform(e),t._container=r.selectAll(".plot-container").data([0]),t._container.enter().insert("div",":first-child").classed("plot-container",!0).classed("plotly",!0).style({width:"100%",height:"100%"}),t._paperdiv=t._container.selectAll(".svg-container").data([0]),t._paperdiv.enter().append("div").classed("user-select-none",!0).classed("svg-container",!0).style("position","relative"),t._glcontainer=t._paperdiv.selectAll(".gl-container").data([{}]),t._glcontainer.enter().append("div").classed("gl-container",!0),t._paperdiv.selectAll(".main-svg").remove(),t._paperdiv.select(".modebar-container").remove(),t._paper=t._paperdiv.insert("svg",":first-child").classed("main-svg",!0),t._toppaper=t._paperdiv.append("svg").classed("main-svg",!0),t._modebardiv=t._paperdiv.append("div"),delete t._modeBar,t._hoverpaper=t._paperdiv.append("svg").classed("main-svg",!0),!t._uid){var a={};Rp.selectAll("defs").each(function(){this.id&&(a[this.id.split("-")[1]]=1)}),t._uid=ar.randstr(a)}t._paperdiv.selectAll(".main-svg").attr(epe.svgAttrs),t._defs=t._paper.append("defs").attr("id","defs-"+t._uid),t._clips=t._defs.append("g").classed("clips",!0),t._topdefs=t._toppaper.append("defs").attr("id","topdefs-"+t._uid),t._topclips=t._topdefs.append("g").classed("clips",!0),t._bgLayer=t._paper.append("g").classed("bglayer",!0),t._draggers=t._paper.append("g").classed("draglayer",!0);var n=t._paper.append("g").classed("layer-below",!0);t._imageLowerLayer=n.append("g").classed("imagelayer",!0),t._shapeLowerLayer=n.append("g").classed("shapelayer",!0),t._cartesianlayer=t._paper.append("g").classed("cartesianlayer",!0),t._polarlayer=t._paper.append("g").classed("polarlayer",!0),t._smithlayer=t._paper.append("g").classed("smithlayer",!0),t._ternarylayer=t._paper.append("g").classed("ternarylayer",!0),t._geolayer=t._paper.append("g").classed("geolayer",!0),t._funnelarealayer=t._paper.append("g").classed("funnelarealayer",!0),t._pielayer=t._paper.append("g").classed("pielayer",!0),t._iciclelayer=t._paper.append("g").classed("iciclelayer",!0),t._treemaplayer=t._paper.append("g").classed("treemaplayer",!0),t._sunburstlayer=t._paper.append("g").classed("sunburstlayer",!0),t._indicatorlayer=t._toppaper.append("g").classed("indicatorlayer",!0),t._glimages=t._paper.append("g").classed("glimages",!0);var i=t._toppaper.append("g").classed("layer-above",!0);t._imageUpperLayer=i.append("g").classed("imagelayer",!0),t._shapeUpperLayer=i.append("g").classed("shapelayer",!0),t._selectionLayer=t._toppaper.append("g").classed("selectionlayer",!0),t._infolayer=t._toppaper.append("g").classed("infolayer",!0),t._menulayer=t._toppaper.append("g").classed("menulayer",!0),t._zoomlayer=t._toppaper.append("g").classed("zoomlayer",!0),t._hoverlayer=t._hoverpaper.append("g").classed("hoverlayer",!0),t._modebardiv.classed("modebar-container",!0).style("position","absolute").style("top","0px").style("right","0px"),e.emit("plotly_framework")}Jr.animate=wpe;Jr.addFrames=Tpe;Jr.deleteFrames=Mpe;Jr.addTraces=iF;Jr.deleteTraces=lF;Jr.extendTraces=aF;Jr.moveTraces=Y4;Jr.prependTraces=nF;Jr.newPlot=spe;Jr._doPlot=ape;Jr.purge=Ape;Jr.react=xpe;Jr.redraw=ope;Jr.relayout=i2;Jr.restyle=Np;Jr.setPlotConfig=ipe;Jr.update=Bp;Jr._guiRelayout=G4(i2);Jr._guiRestyle=G4(Np);Jr._guiUpdate=G4(Bp);Jr._storeDirectGUIEdit=vpe});var vu=U(Mi=>{"use strict";var Lpe=Ar();Mi.getDelay=function(e){return e._has&&(e._has("gl3d")||e._has("map"))?500:0};Mi.getRedrawFunc=function(e){return function(){Lpe.getComponentMethod("colorbar","draw")(e)}};Mi.encodeSVG=function(e){return"data:image/svg+xml,"+encodeURIComponent(e)};Mi.encodeJSON=function(e){return"data:application/json,"+encodeURIComponent(e)};var dF=window.URL||window.webkitURL;Mi.createObjectURL=function(e){return dF.createObjectURL(e)};Mi.revokeObjectURL=function(e){return dF.revokeObjectURL(e)};Mi.createBlob=function(e,r){if(r==="svg")return new window.Blob([e],{type:"image/svg+xml;charset=utf-8"});if(r==="full-json")return new window.Blob([e],{type:"application/json;charset=utf-8"});var t=Spe(window.atob(e));return new window.Blob([t],{type:"image/"+r})};Mi.octetStream=function(e){document.location.href="data:application/octet-stream"+e};Mi.getPlotTitle=function(e){var a,n,i,l;var r=e._fullLayout;if(r){var t=(a=r.title)==null?void 0:a.text;return t===((n=r._dfltTitle)==null?void 0:n.plot)?void 0:t}return(l=(i=e.layout)==null?void 0:i.title)==null?void 0:l.text};Mi.getPlotSubtitle=function(e){var a,n,i,l,o,s;var r=e._fullLayout;if(r){var t=(n=(a=r.title)==null?void 0:a.subtitle)==null?void 0:n.text;return t===((i=r._dfltTitle)==null?void 0:i.subtitle)?void 0:t}return(s=(o=(l=e.layout)==null?void 0:l.title)==null?void 0:o.subtitle)==null?void 0:s.text};function Spe(e){for(var r=e.length,t=new ArrayBuffer(r),a=new Uint8Array(t),n=0;n{"use strict";var X4=Er(),wCe=ke(),qpe=Zr(),Dpe=kr(),TCe=(Us(),Fe(Gs)),V4=/"/g,du="TOBESTRIPPED",Ppe=new RegExp(`("${du})|(${du}")|("${du})|(${du}")`,"g"),Epe=["&","&","&",""",""",""","'","'","'"],Rpe=["<","<","<"],zpe=[">",">",">"];function Fpe(e){let r=X4.select("body").append("div").style({display:"none"}).html(""),t=e.replace(/(&[^;]*;)/gi,a=>{let n=a.toLowerCase();return Epe.includes(n)?a:Rpe.includes(n)?"<":zpe.includes(n)?">":a.includes("<")||a.includes(">")?"":r.html(a).text()});return r.remove(),t}function Npe(e){return e.replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&")}hF.exports=function(r,t,a){var n=r._fullLayout,i=n._paper,l=n._toppaper,o=n.width,s=n.height,u;i.insert("rect",":first-child").call(qpe.setRect,0,0,o,s).call(Dpe.fill,n.paper_bgcolor);var f=n._basePlotModules||[];for(u=0;u{"use strict";var Ipe=ke(),Bpe=Nh().EventEmitter,o2=vu();function Hpe(e){var r=e.emitter||new Bpe,t=new Promise(function(a,n){var i=window.Image,l=e.svg,o=e.format||"png",s=e.canvas,u=e.scale||1,f=e.width||300,c=e.height||150,v=u*f,h=u*c,p=s.getContext("2d",{willReadFrequently:!0}),y=new i,m,b;o==="svg"||Ipe.isSafari()?b=o2.encodeSVG(l):(m=o2.createBlob(l,"svg"),b=o2.createObjectURL(m)),s.width=v,s.height=h,y.onload=function(){var _;switch(m=null,o2.revokeObjectURL(b),o!=="svg"&&p.drawImage(y,0,0,v,h),o){case"jpeg":_=s.toDataURL("image/jpeg");break;case"png":_=s.toDataURL("image/png");break;case"webp":_=s.toDataURL("image/webp");break;case"svg":_=b;break;default:var w="Image format is not jpeg, png, svg or webp.";if(n(new Error(w)),!e.promise)return r.emit("error",w)}a(_),e.promise||r.emit("success",_)},y.onerror=function(_){if(m=null,o2.revokeObjectURL(b),n(_),!e.promise)return r.emit("error",_)},y.src=b});return e.promise?t:r}pF.exports=Hpe});var Z4=U((kCe,gF)=>{"use strict";var mF=Gr(),yF=U4(),Ope=Xt(),Cl=ke(),s2=vu(),Ype=Gp(),Gpe=Up(),Upe=Tc().version,W4=(a5(),Fe(t5)).default;function Vpe(e,r){r=r||{};var t,a,n,i;Cl.isPlainObject(e)?(t=e.data||[],a=e.layout||{},n=e.config||{},i={}):(e=Cl.getGraphDiv(e),t=Cl.extendDeep([],e.data),a=Cl.extendDeep({},e.layout),n=e._context,i=e._fullLayout||{});function l(k){return!(k in r)||Cl.validate(r[k],W4[k])}if(!l("width")&&r.width!==null||!l("height")&&r.height!==null)throw new Error("Height and width should be pixel values.");if(!l("format"))throw new Error("Export format is not "+Cl.join2(W4.format.values,", "," or ")+".");var o={};function s(k,A){return Cl.coerce(r,o,W4,k,A)}var u=s("format"),f=s("width"),c=s("height"),v=s("scale"),h=s("setBackground"),p=s("imageDataOnly"),y=document.createElement("div");y.style.position="absolute",y.style.left="-5000px",document.body.appendChild(y);var m=Cl.extendFlat({},a);f?m.width=f:r.width===null&&mF(i.width)&&(m.width=i.width),c?m.height=c:r.height===null&&mF(i.height)&&(m.height=i.height);var b=Cl.extendFlat({},n,{_exportedPlot:!0,staticPlot:!0,setBackground:h}),_=s2.getRedrawFunc(y);function w(){return new Promise(function(k){setTimeout(k,s2.getDelay(y._fullLayout))})}function x(){return new Promise(function(k,A){var S=Ype(y,u,v),D=y._fullLayout.width,P=y._fullLayout.height;function R(){yF.purge(y),document.body.removeChild(y)}if(u==="full-json"){var F=Ope.graphJson(y,!1,"object",!0,!0);return F.version=Upe,F=JSON.stringify(F),R(),k(p?F:s2.encodeJSON(F))}if(R(),u==="svg")return k(p?S:s2.encodeSVG(S));var N=document.createElement("canvas");N.id=Cl.randstr(),Gpe({format:u,width:D,height:P,scale:v,canvas:N,svg:S,promise:!0}).then(k).catch(A)})}function M(k){return p?k.replace(s2.IMAGE_URL_PREFIX,""):k}return new Promise(function(k,A){yF.newPlot(y,t,m,b).then(_).then(w).then(x).then(function(S){k(M(S))}).catch(function(S){A(S)})})}gF.exports=Vpe});var _F=U((CCe,bF)=>{"use strict";var Ai=ke(),Xpe=Xt(),Wpe=z0(),Zpe=mo().dfltConfig,$i=Ai.isPlainObject,pu=Array.isArray,J4=Ai.isArrayOrTypedArray;bF.exports=function(r,t){r===void 0&&(r=[]),t===void 0&&(t={});var a=Wpe.get(),n=[],i={_context:Ai.extendFlat({},Zpe)},l,o;pu(r)?(i.data=Ai.extendDeep([],r),l=r):(i.data=[],l=[],n.push(Ca("array","data"))),$i(t)?(i.layout=Ai.extendDeep({},t),o=t):(i.layout={},o={},arguments.length>1&&n.push(Ca("object","layout"))),Xpe.supplyDefaults(i);for(var s=i._fullData,u=l.length,f=0;fc.length&&a.push(Ca("unused",n,u.concat(c.length)));var b=c.length,_=Array.isArray(m);_&&(b=Math.min(b,m.length));var w,x,M,k,A;if(v.dimensions===2)for(x=0;xc[x].length&&a.push(Ca("unused",n,u.concat(x,c[x].length)));var S=c[x].length;for(w=0;w<(_?Math.min(S,m[x].length):S);w++)M=_?m[x][w]:m,k=f[x][w],A=c[x][w],Ai.validate(k,M)?A!==k&&A!==+k&&a.push(Ca("dynamic",n,u.concat(x,w),k,A)):a.push(Ca("value",n,u.concat(x,w),k))}else a.push(Ca("array",n,u.concat(x),f[x]));else for(x=0;x{"use strict";var rme=ke(),Xp=vu();function tme(e,r,t){var a=document.createElement("a"),n="download"in a,i=new Promise(function(l,o){var s,u;if(n)return s=Xp.createBlob(e,t),u=Xp.createObjectURL(s),a.href=u,a.download=r,document.body.appendChild(a),a.click(),document.body.removeChild(a),Xp.revokeObjectURL(u),s=null,l(r);if(rme.isSafari()){var f=t==="svg"?",":";base64,";return Xp.octetStream(f+encodeURIComponent(e)),l(r)}o(new Error("download error"))});return i}wF.exports=tme});var $4=U((SCe,CF)=>{"use strict";var Wp=ke(),MF=ma(),ame=Z4(),nme=TF(),AF=vu(),kF=40;function ime(e,r){var t;return Wp.isPlainObject(e)||(t=Wp.getGraphDiv(e)),r=r||{},r.format=r.format||"png",r.width=r.width||null,r.height=r.height||null,r.imageDataOnly=!0,new Promise(function(a,n){t&&t._snapshotInProgress&&n(new Error("Image capture already in progress.")),t&&(t._snapshotInProgress=!0);var i=ame(e,r),l=r.filename||e.fn;if(!l){let s=AF.getPlotTitle(e);if(s&&!MF.matchTex(s))l=Wp.slugify(s,kF);else{let u=AF.getPlotSubtitle(e);u&&!MF.matchTex(u)&&(l=Wp.slugify(u,kF))}}var o=l||"plot-image";o+="."+r.format.replace("-","."),i.then(function(s){return t&&(t._snapshotInProgress=!1),nme(s,o,r.format)}).then(function(s){a(s)}).catch(function(s){t&&(t._snapshotInProgress=!1),n(s)})})}CF.exports=ime});var PF=U(K4=>{"use strict";var Pn=ke(),En=Pn.isPlainObject,LF=z0(),SF=Xt(),lme=Mn(),qF=ht(),DF=mo().dfltConfig;K4.makeTemplate=function(e){e=Pn.isPlainObject(e)?e:Pn.getGraphDiv(e),e=Pn.extendDeep({_context:DF},{data:e.data,layout:e.layout}),SF.supplyDefaults(e);var r=e.data||[],t=e.layout||{};t._basePlotModules=e._fullLayout._basePlotModules,t._modules=e._fullLayout._modules;var a={data:{},layout:{}};r.forEach(function(h){var p={};u2(h,p,sme.bind(null,h));var y=Pn.coerce(h,{},lme,"type"),m=a.data[y];m||(m=a.data[y]=[]),m.push(p)}),u2(t,a.layout,ome.bind(null,t)),delete a.layout.template;var n=t.template;if(En(n)){var i=n.layout,l,o,s,u,f,c;En(i)&&Zp(i,a.layout);var v=n.data;if(En(v)){for(o in a.data)if(s=v[o],Array.isArray(s)){for(f=a.data[o],c=f.length,u=s.length,l=0;lb?l.push({code:"unused",traceType:h,templateCount:m,dataCount:b}):b>m&&l.push({code:"reused",traceType:h,templateCount:m,dataCount:b})}}function _(w,x){for(var M in w)if(M.charAt(0)!=="_"){var k=w[M],A=ki(w,M,x);En(k)?(Array.isArray(w)&&k._template===!1&&k.templateitemname&&l.push({code:"missing",path:A,templateitemname:k.templateitemname}),_(k,A)):Array.isArray(k)&&ume(k)&&_(k,A)}}if(_({data:s,layout:o},""),l.length)return l.map(fme)};function ume(e){for(var r=0;r{"use strict";var ga=U4();qt._doPlot=ga._doPlot;qt.newPlot=ga.newPlot;qt.restyle=ga.restyle;qt.relayout=ga.relayout;qt.redraw=ga.redraw;qt.update=ga.update;qt._guiRestyle=ga._guiRestyle;qt._guiRelayout=ga._guiRelayout;qt._guiUpdate=ga._guiUpdate;qt._storeDirectGUIEdit=ga._storeDirectGUIEdit;qt.react=ga.react;qt.extendTraces=ga.extendTraces;qt.prependTraces=ga.prependTraces;qt.addTraces=ga.addTraces;qt.deleteTraces=ga.deleteTraces;qt.moveTraces=ga.moveTraces;qt.purge=ga.purge;qt.addFrames=ga.addFrames;qt.deleteFrames=ga.deleteFrames;qt.animate=ga.animate;qt.setPlotConfig=ga.setPlotConfig;var cme=Jc().getGraphDiv,vme=np().eraseActiveShape;qt.deleteActiveShape=function(e){return vme(cme(e))};qt.toImage=Z4();qt.validate=_F();qt.downloadImage=$4();var EF=PF();qt.makeTemplate=EF.makeTemplate;qt.validateTemplate=EF.validateTemplate});var f2=U((PCe,zF)=>{"use strict";var j4=ke(),dme=Ar();zF.exports=function(r,t,a,n){var i=n("x"),l=n("y"),o,s=dme.getComponentMethod("calendars","handleTraceDefaults");if(s(r,t,["x","y"],a),i){var u=j4.minRowLength(i);l?o=Math.min(u,j4.minRowLength(l)):(o=u,n("y0"),n("dy"))}else{if(!l)return 0;o=j4.minRowLength(l),n("x0"),n("dx")}return t._length=o,o}});var mu=U((ECe,IF)=>{"use strict";var FF=ke().dateTick0,hme=(Et(),Fe(zt)),pme=hme.ONEWEEK;function NF(e,r){return e%pme===0?FF(r,1):FF(r,0)}IF.exports=function(r,t,a,n,i){if(i||(i={x:!0,y:!0}),i.x){var l=n("xperiod");l&&(n("xperiod0",NF(l,t.xcalendar)),n("xperiodalignment"))}if(i.y){var o=n("yperiod");o&&(n("yperiod0",NF(o,t.ycalendar)),n("yperiodalignment"))}}});var OF=U((RCe,HF)=>{"use strict";var BF=["orientation","groupnorm","stackgaps"];HF.exports=function(r,t,a,n){var i=a._scatterStackOpts,l=n("stackgroup");if(l){var o=t.xaxis+t.yaxis,s=i[o];s||(s=i[o]={});var u=s[l],f=!1;u?u.traces.push(t):(u=s[l]={traceIndices:[],traces:[t]},f=!0);for(var c={orientation:t.x&&!t.y?"h":"v"},v=0;v{"use strict";var YF=kr(),GF=Un().hasColorscale,UF=B0(),mme=Xn();VF.exports=function(r,t,a,n,i,l={}){var o=mme.isBubble(r),s=(r.line||{}).color,u;if(s&&(a=s),i("marker.symbol"),i("marker.opacity",o?.7:1),i("marker.size"),l.noAngle||(i("marker.angle"),l.noAngleRef||i("marker.angleref"),l.noStandOff||i("marker.standoff")),i("marker.color",a),GF(r,"marker")&&UF(r,t,n,i,{prefix:"marker.",cLetter:"c"}),l.noSelect||(i("selected.marker.color"),i("unselected.marker.color"),i("selected.marker.size"),i("unselected.marker.size")),l.noLine||(s&&!Array.isArray(s)&&t.marker.color!==s?u=s:o?u=YF.background:u=YF.defaultLine,i("marker.line.color",u),GF(r,"marker.line")&&UF(r,t,n,i,{prefix:"marker.line.",cLetter:"c"}),i("marker.line.width",o?1:0),l.noLineDash||i("marker.line.dash")),o&&(i("marker.sizeref"),i("marker.sizemin"),i("marker.sizemode")),l.gradient){var f=i("marker.gradient.type");f!=="none"&&i("marker.gradient.color")}}});var ZF=U((FCe,WF)=>{"use strict";var yme=ke().isArrayOrTypedArray,gme=Un().hasColorscale,xme=B0();WF.exports=function(r,t,a,n,i,l){l||(l={});var o=(r.marker||{}).color;if(o&&o._inputArray&&(o=o._inputArray),i("line.color",a),gme(r,"line"))xme(r,t,n,i,{prefix:"line.",cLetter:"c"});else{var s=(yme(o)?!1:o)||a;i("line.color",s)}i("line.width"),l.noDash||i("line.dash"),l.backoff&&i("line.backoff")}});var $F=U((NCe,JF)=>{"use strict";JF.exports=function(r,t,a){var n=a("line.shape");n==="spline"&&a("line.smoothing")}});var jF=U((ICe,KF)=>{"use strict";var bme=ke();KF.exports=function(e,r,t,a,n){n=n||{},a("textposition"),bme.coerceFont(a,"textfont",n.font||t.font,n),n.noSelect||(a("selected.textfont.color"),a("unselected.textfont.color"))}});var rN=U((BCe,eN)=>{"use strict";var $p=kr(),QF=ke().isArrayOrTypedArray;function _me(e){for(var r=$p.interpolate(e[0][1],e[1][1],.5),t=2;t{"use strict";var tN=ke(),wme=Ar(),Tme=Zi(),Mme=(wp(),Fe(_p)),df=Xn(),Ame=f2(),kme=mu(),Cme=OF(),Lme=XF(),Sme=ZF(),aN=$F(),qme=jF(),Dme=rN(),Pme=ke().coercePattern;nN.exports=function(r,t,a,n){function i(h,p){return tN.coerce(r,t,Tme,h,p)}var l=Ame(r,t,n,i);if(l||(t.visible=!1),!!t.visible){kme(r,t,n,i),i("xhoverformat"),i("yhoverformat"),i("zorder");var o=Cme(r,t,n,i);n.scattermode==="group"&&t.orientation===void 0&&i("orientation","v");var s=!o&&l{"use strict";var Eme=cu().getAxisGroup;lN.exports=function(r,t,a,n,i){var l=t.orientation,o=t[{v:"x",h:"y"}[l]+"axis"],s=Eme(a,o)+l,u=a._alignmentOpts||{},f=n("alignmentgroup"),c=u[s];c||(c=u[s]={});var v=c[f];v?v.traces.push(t):v=c[f]={traces:[t],alignmentIndex:Object.keys(c).length,offsetGroups:{}};var h=n("offsetgroup")||"",p=v.offsetGroups,y=p[h];t._offsetIndex=0,(i!=="group"||h)&&(y||(y=p[h]={offsetIndex:Object.keys(p).length}),t._offsetIndex=y.offsetIndex)}});var sN=U((YCe,oN)=>{"use strict";var Rme=ke(),zme=hf(),Fme=Zi();oN.exports=function(r,t){var a,n,i,l=t.scattermode;function o(v){return Rme.coerce(n._input,n,Fme,v)}if(t.scattermode==="group")for(i=0;i=0;f--){var c=r[f];if(c.type==="scatter"&&c.xaxis===s.xaxis&&c.yaxis===s.yaxis){c.opacity=void 0;break}}}}}});var fN=U((GCe,uN)=>{"use strict";var Nme=ke(),Ime=Yh();uN.exports=function(e,r){function t(n,i){return Nme.coerce(e,r,Ime,n,i)}var a=r.barmode==="group";r.scattermode==="group"&&t("scattergap",a?r.bargap:.2)}});var yu=U((UCe,vN)=>{"use strict";var Bme=Gr(),cN=ke(),Hme=cN.dateTime2ms,Kp=cN.incrementMonth,Ome=(Et(),Fe(zt)),Yme=Ome.ONEAVGMONTH;vN.exports=function(r,t,a,n){if(t.type!=="date")return{vals:n};var i=r[a+"periodalignment"];if(!i)return{vals:n};var l=r[a+"period"],o;if(Bme(l)){if(l=+l,l<=0)return{vals:n}}else if(typeof l=="string"&&l.charAt(0)==="M"){var s=+l.substring(1);if(s>0&&Math.round(s)===s)o=s;else return{vals:n}}for(var u=t.calendar,f=i==="start",c=i==="end",v=r[a+"period0"],h=Hme(v,u)||0,p=[],y=[],m=[],b=n.length,_=0;_w;)k=Kp(k,-o,u);for(;k<=w;)k=Kp(k,o,u);M=Kp(k,-o,u)}else{for(x=Math.round((w-h)/l),k=h+x*l;k>w;)k-=l;for(;k<=w;)k+=l;M=k-l}p[_]=f?M:c?k:(M+k)/2,y[_]=M,m[_]=k}return{vals:p,starts:y,ends:m}}});var pN=U((VCe,hN)=>{"use strict";var Q4=Un().hasColorscale,e6=uv(),dN=Xn();hN.exports=function(r,t){dN.hasLines(t)&&Q4(t,"line")&&e6(r,t,{vals:t.line.color,containerStr:"line",cLetter:"c"}),dN.hasMarkers(t)&&(Q4(t,"marker")&&e6(r,t,{vals:t.marker.color,containerStr:"marker",cLetter:"c"}),Q4(t,"marker.line")&&e6(r,t,{vals:t.marker.line.color,containerStr:"marker.line",cLetter:"c"}))}});var r6=U((XCe,mN)=>{"use strict";var Yt=ke();mN.exports=function(r,t){for(var a=0;a{"use strict";var yN=ke();gN.exports=function(r,t){yN.isArrayOrTypedArray(t.selectedpoints)&&yN.tagSelected(r,t)}});var l6=U((ZCe,AN)=>{"use strict";var xN=Gr(),a6=ke(),v2=Kr(),bN=yu(),t6=(Et(),Fe(zt)).BADNUM,n6=Xn(),Gme=pN(),Ume=r6(),Vme=c2();function Xme(e,r){var t=e._fullLayout,a=r._xA=v2.getFromId(e,r.xaxis||"x","x"),n=r._yA=v2.getFromId(e,r.yaxis||"y","y"),i=a.makeCalcdata(r,"x"),l=n.makeCalcdata(r,"y"),o=bN(r,a,"x",i),s=bN(r,n,"y",l),u=o.vals,f=s.vals,c=r._length,v=new Array(c),h=r.ids,p=i6(r,t,a,n),y=!1,m,b,_,w,x,M;TN(t,r);var k="x",A="y",S;if(p)a6.pushUnique(p.traceIndices,r.index),m=p.orientation==="v",m?(A="s",S="x"):(k="s",S="y"),x=p.stackgaps==="interpolate";else{var D=wN(r,c);_N(e,r,a,n,u,f,D)}var P=!!r.xperiodalignment,R=!!r.yperiodalignment;for(b=0;bb&&v[w].gap;)w--;for(M=v[w].s,_=v.length-1;_>w;_--)v[_].s=M;for(;b{"use strict";kN.exports=jp;var Wme=ke().distinctVals;function jp(e,r){this.traces=e,this.sepNegVal=r.sepNegVal,this.overlapNoMerge=r.overlapNoMerge;for(var t=1/0,a=r.posAxis._id.charAt(0),n=[],i=0;iZme,eventDataKeys:()=>Jme});var Zme,Jme,h2=Lr(()=>{"use strict";Zme=3,Jme=["value","label"]});var yf=U(($Ce,DN)=>{"use strict";var Ci=Gr(),{isArrayOrTypedArray:$l}=ke(),{BADNUM:pf}=(Et(),Fe(zt)),$me=Ar(),p2=Kr(),{getAxisGroup:Kme}=cu(),Qp=CN(),{TEXTPAD:jme}=(h2(),Fe(d2)),{LINE_SPACING:Qme}=(Ha(),Fe(Ba)),{BR_TAG_ALL:eye}=ma();function rye(e,r){for(var t=r.xaxis,a=r.yaxis,n=e._fullLayout,i=e._fullData,l=e.calcdata,o=[],s=[],u=0;us+l||!Ci(o))}for(var f=0;fa(i))):a(e.text);let n=e.outsidetextfont.size*Qme*t+jme;return{ppadplus:r.some(i=>i.s<0)?n:0,ppadminus:r.some(i=>i.s>=0)?n:0}}return{ppadplus:void 0,ppadminus:void 0}}function cye(e,r,t,a){for(var n=mf(a),i=0;i{"use strict";var PN=l6(),EN=yf().setGroupPositions;function dye(e,r){for(var t=r.xaxis,a=r.yaxis,n=e._fullLayout,i=e._fullData,l=e.calcdata,o=[],s=[],u=0;uD[f]&&f{"use strict";var pye=Zr(),BN=(Et(),Fe(zt)),m2=BN.BADNUM,HN=BN.LOG_CLIP,FN=HN+.5,NN=HN-.5,em=ke(),mye=em.segmentsIntersect,IN=em.constrain,d6=(wp(),Fe(_p));ON.exports=function(r,t){var a=t.trace||{},n=t.xaxis,i=t.yaxis,l=n.type==="log",o=i.type==="log",s=n._length,u=i._length,f=t.backoff,c=a.marker,v=t.connectGaps,h=t.baseTolerance,p=t.shape,y=p==="linear",m=a.fill&&a.fill!=="none",b=[],_=d6.minTolerance,w=r.length,x=new Array(w),M=0,k,A,S,D,P,R,F,N,B,H,O,Y,G,V,W,X;function $(Se){var Ke=r[Se];if(!Ke)return!1;var Ie=t.linearized?n.l2p(Ke.x):n.c2p(Ke.x),pr=t.linearized?i.l2p(Ke.y):i.c2p(Ke.y);if(Ie===m2){if(l&&(Ie=n.c2p(Ke.x,!0)),Ie===m2)return!1;o&&pr===m2&&(Ie*=Math.abs(n._m*u*(n._m>0?FN:NN)/(i._m*s*(i._m>0?FN:NN)))),Ie*=1e3}if(pr===m2){if(o&&(pr=i.c2p(Ke.y,!0)),pr===m2)return!1;pr*=1e3}return[Ie,pr]}function te(Se,Ke,Ie,pr){var br=Ie-Se,ur=pr-Ke,mr=.5-Se,ae=.5-Ke,de=br*br+ur*ur,Ne=br*mr+ur*ae;if(Ne>0&&Ne1||Math.abs(mr.y-Ie[0][1])>1)&&(mr=[mr.x,mr.y],pr&&he(mr,Se)me||Se[1]Me)return[IN(Se[0],_e,me),IN(Se[1],ce,Me)]}function je(Se,Ke){if(Se[0]===Ke[0]&&(Se[0]===_e||Se[0]===me)||Se[1]===Ke[1]&&(Se[1]===ce||Se[1]===Me))return!0}function Ze(Se,Ke){var Ie=[],pr=We(Se),br=We(Ke);return pr&&br&&je(pr,br)||(pr&&Ie.push(pr),br&&Ie.push(br)),Ie}function Ae(Se,Ke,Ie){return function(pr,br){var ur=We(pr),mr=We(br),ae=[];if(ur&&mr&&je(ur,mr))return ae;ur&&ae.push(ur),mr&&ae.push(mr);var de=2*em.constrain((pr[Se]+br[Se])/2,Ke,Ie)-((ur||pr)[Se]+(mr||br)[Se]);if(de){var Ne;ur&&mr?Ne=de>0==ur[Se]>mr[Se]?ur:mr:Ne=ur||mr,Ne[Se]+=de}return ae}}var ze;p==="linear"||p==="spline"?ze=Ce:p==="hv"||p==="vh"?ze=Ze:p==="hvh"?ze=Ae(0,_e,me):p==="vhv"&&(ze=Ae(1,ce,Me));function Qe(Se,Ke){var Ie=Ke[0]-Se[0],pr=(Ke[1]-Se[1])/Ie,br=(Se[1]*Ke[0]-Ke[1]*Se[0])/Ie;return br>0?[pr>0?_e:me,Me]:[pr>0?me:_e,ce]}function re(Se){var Ke=Se[0],Ie=Se[1],pr=Ke===x[M-1][0],br=Ie===x[M-1][1];if(!(pr&&br))if(M>1){var ur=Ke===x[M-2][0],mr=Ie===x[M-2][1];pr&&(Ke===_e||Ke===me)&&ur?mr?M--:x[M-1]=Se:br&&(Ie===ce||Ie===Me)&&mr?ur?M--:x[M-1]=Se:x[M++]=Se}else x[M++]=Se}function ye(Se){x[M-1][0]!==Se[0]&&x[M-1][1]!==Se[1]&&re([Le,qe]),re(Se),Ee=null,Le=qe=0}var Xe=em.isArrayOrTypedArray(c);function hr(Se){if(Se&&f&&(Se.i=k,Se.d=r,Se.trace=a,Se.marker=Xe?c[Se.i]:c,Se.backoff=f),ie=Se[0]/s,ve=Se[1]/u,xe=Se[0]<_e?_e:Se[0]>me?me:0,Pe=Se[1]Me?Me:0,xe||Pe){if(!M)x[M++]=[xe||Se[0],Pe||Se[1]];else if(Ee){var Ke=ze(Ee,Se);Ke.length>1&&(ye(Ke[0]),x[M++]=Ke[1])}else Ue=ze(x[M-1],Se)[0],x[M++]=Ue;var Ie=x[M-1];xe&&Pe&&(Ie[0]!==xe||Ie[1]!==Pe)?(Ee&&(Le!==xe&&qe!==Pe?re(Le&&qe?Qe(Ee,Se):[Le||xe,qe||Pe]):Le&&qe&&re([Le,qe])),re([xe,Pe])):Le-xe&&qe-Pe&&re([xe||Le,Pe||qe]),Ee=Se,Le=xe,qe=Pe}else Ee&&ye(ze(Ee,Se)[0]),x[M++]=Se}for(k=0;kK(R,De))break;S=R,G=B[0]*N[0]+B[1]*N[1],G>O?(O=G,D=R,F=!1):G=r.length||!R)break;hr(R),A=R}}Ee&&re([Le||Ee[0],qe||Ee[1]]),b.push(x.slice(0,M))}var pe=p.slice(p.length-1);if(f&&pe!=="h"&&pe!=="v"){for(var Te=!1,Oe=-1,Je=[],Be=0;Be{"use strict";var GN={tonextx:1,tonexty:1,tonext:1};UN.exports=function(r,t,a){var n,i,l,o,s,u={},f=!1,c=-1,v=0,h=-1;for(i=0;i=0?s=h:(s=h=v,v++),s{"use strict";var Ki=Er(),yye=Ar(),y2=ke(),gf=y2.ensureSingle,WN=y2.identity,Wt=Zr(),xf=Xn(),gye=YN(),xye=VN(),rm=d4().tester;ZN.exports=function(r,t,a,n,i,l){var o,s,u=!i,f=!!i&&i.duration>0,c=xye(r,t,a);if(o=n.selectAll("g.trace").data(c,function(h){return h[0].trace.uid}),o.enter().append("g").attr("class",function(h){return"trace scatter trace"+h[0].trace.uid}).style("stroke-miterlimit",2),o.order(),bye(r,o,t),f){l&&(s=l());var v=Ki.transition().duration(i.duration).ease(i.easing).each("end",function(){s&&s()}).each("interrupt",function(){s&&s()});v.each(function(){n.selectAll("g.trace").each(function(h,p){XN(r,p,t,h,c,this,i)})})}else o.each(function(h,p){XN(r,p,t,h,c,this,i)});u&&o.exit().remove(),n.selectAll("path:not([d])").remove()};function bye(e,r,t){r.each(function(a){var n=gf(Ki.select(this),"g","fills");Wt.setClipUrl(n,t.layerClipId,e);var i=a[0].trace;i._ownFill=null,i._nextFill=null;var l=[];i._ownfill&&l.push("_ownFill"),i._nexttrace&&l.push("_nextFill");var o=n.selectAll("g").data(l,WN);o.enter().append("g"),o.exit().remove(),o.order().each(function(s){i[s]=gf(Ki.select(this),"path","js-fill")})})}function XN(e,r,t,a,n,i,l){var o=e._context.staticPlot,s;_ye(e,r,t,a,n);var u=!!l&&l.duration>0;function f(Ae){return u?Ae.transition():Ae}var c=t.xaxis,v=t.yaxis,h=a[0].trace,p=h.line,y=Ki.select(i),m=gf(y,"g","errorbars"),b=gf(y,"g","lines"),_=gf(y,"g","points"),w=gf(y,"g","text");if(yye.getComponentMethod("errorbars","plot")(e,m,t,l),h.visible!==!0)return;f(y).style("opacity",h.opacity);var x,M,k=h.fill.charAt(h.fill.length-1);k!=="x"&&k!=="y"&&(k="");var A,S;k==="y"?(A=1,S=v.c2p(0,!0)):k==="x"&&(A=0,S=c.c2p(0,!0)),a[0][t.isRangePlot?"nodeRangePlot3":"node3"]=y;var D="",P=[],R=h._prevtrace,F=null,N=null;R&&(D=R._prevRevpath||"",M=R._nextFill,P=R._ownPolygons,F=R._fillsegments,N=R._fillElement);var B,H,O="",Y="",G,V,W,X,$,te,ie=[];h._polygons=[];var ve=[],K=[],he=y2.noop;if(x=h._ownFill,xf.hasLines(h)||h.fill!=="none"){M&&M.datum(a),["hv","vh","hvh","vhv"].indexOf(p.shape)!==-1?(G=Wt.steps(p.shape),V=Wt.steps(p.shape.split("").reverse().join(""))):p.shape==="spline"?G=V=function(Ae){var ze=Ae[Ae.length-1];return Ae.length>1&&Ae[0][0]===ze[0]&&Ae[0][1]===ze[1]?Wt.smoothclosed(Ae.slice(1),p.smoothing):Wt.smoothopen(Ae,p.smoothing)}:G=V=function(Ae){return"M"+Ae.join("L")},W=function(Ae){return V(Ae.reverse())},K=gye(a,{xaxis:c,yaxis:v,trace:h,connectGaps:h.connectgaps,baseTolerance:Math.max(p.width||1,3)/4,shape:p.shape,backoff:p.backoff,simplify:p.simplify,fill:h.fill}),ve=new Array(K.length);var le=0;for(s=0;s=o[0]&&y.x<=o[1]&&y.y>=s[0]&&y.y<=s[1]}),v=Math.ceil(c.length/f),h=0;n.forEach(function(y,m){var b=y[0].trace;xf.hasMarkers(b)&&b.marker.maxdisplayed>0&&m{"use strict";$N.exports={container:"marker",min:"cmin",max:"cmax"}});var jN=U((tLe,KN)=>{"use strict";var am=Kr();KN.exports=function(r,t,a){var n={},i={_fullLayout:a},l=am.getFromTrace(i,t,"x"),o=am.getFromTrace(i,t,"y"),s=r.orig_x;s===void 0&&(s=r.x);var u=r.orig_y;return u===void 0&&(u=r.y),n.xLabel=am.tickText(l,l.c2l(s),!0).text,n.yLabel=am.tickText(o,o.c2l(u),!0).text,n}});var y6=U((aLe,QN)=>{"use strict";var h6=Er(),bf=Zr(),wye=Ar();function Tye(e){var r=h6.select(e).selectAll("g.trace.scatter");r.style("opacity",function(t){return t[0].trace.opacity}),r.selectAll("g.points").each(function(t){var a=h6.select(this),n=t.trace||t[0].trace;p6(a,n,e)}),r.selectAll("g.text").each(function(t){var a=h6.select(this),n=t.trace||t[0].trace;m6(a,n,e)}),r.selectAll("g.trace path.js-line").call(bf.lineGroupStyle),r.selectAll("g.trace path.js-fill").call(bf.fillGroupStyle,e,!1),wye.getComponentMethod("errorbars","style")(r)}function p6(e,r,t){bf.pointStyle(e.selectAll("path.point"),r,t)}function m6(e,r,t){bf.textPointStyle(e.selectAll("text"),r,t)}function Mye(e,r,t){var a=r[0].trace;a.selectedpoints?(bf.selectedPointStyle(t.selectAll("path.point"),a),bf.selectedTextStyle(t.selectAll("text"),a)):(p6(t,a,e),m6(t,a,e))}QN.exports={style:Tye,stylePoints:p6,styleText:m6,styleOnSelect:Mye}});var rI=U((nLe,eI)=>{"use strict";var _f=kr(),Aye=Xn();eI.exports=function(r,t){var a,n;if(r.mode==="lines")return a=r.line.color,a&&_f.opacity(a)?a:r.fillcolor;if(r.mode==="none")return r.fill?r.fillcolor:"";var i=t.mcc||t.mc||(r.marker||{}).color,l=t.mlcc||((r.marker||{}).line||{}).color;return n=i&&_f.opacity(i)?i:l&&_f.opacity(l)&&(t.mlw||((r.marker||{}).line||{}).width)?l:"",n?_f.opacity(n)<.3?_f.addOpacity(n,.3):n:(a=(r.line||{}).color,a&&_f.opacity(a)&&Aye.hasLines(r)&&r.line.width?a:r.fillcolor)}});var nI=U((iLe,aI)=>{"use strict";var nm=ke(),tI=yi(),kye=Ar(),Cye=rI(),g6=kr(),Lye=nm.fillText;aI.exports=function(r,t,a,n){var i=r.cd,l=i[0].trace,o=r.xa,s=r.ya,u=o.c2p(t),f=s.c2p(a),c=[u,f],v=l.hoveron||"",h=l.mode.indexOf("markers")!==-1?3:.5,p=!!l.xperiodalignment,y=!!l.yperiodalignment;if(v.indexOf("points")!==-1){var m=function(Y){if(p){var G=o.c2p(Y.xStart),V=o.c2p(Y.xEnd);return u>=Math.min(G,V)&&u<=Math.max(G,V)?0:1/0}var W=Math.max(3,Y.mrc||0),X=1-1/W,$=Math.abs(o.c2p(Y.x)-u);return $=Math.min(G,V)&&f<=Math.max(G,V)?0:1/0}var W=Math.max(3,Y.mrc||0),X=1-1/W,$=Math.abs(s.c2p(Y.y)-f);return $ie!=Me>=ie&&(_e=he[K-1][0],me=he[K][0],Me-ce&&(le=_e+(me-_e)*(ie-ce)/(Me-ce),W=Math.min(W,le),X=Math.max(X,le)));return W=Math.max(W,0),X=Math.min(X,o._length),{x0:W,x1:X,y0:ie,y1:ie}}if(v.indexOf("fills")!==-1&&l._fillElement){var B=F(l._fillElement)&&!F(l._fillExclusionElement);if(B){var H=N(l._polygons);H===null&&(H={x0:c[0],x1:c[0],y0:c[1],y1:c[1]});var O=g6.defaultLine;return g6.opacity(l.fillcolor)?O=l.fillcolor:g6.opacity((l.line||{}).color)&&(O=l.line.color),nm.extendFlat(r,{distance:r.maxHoverDistance,x0:H.x0,x1:H.x1,y0:H.y0,y1:H.y1,color:O,hovertemplate:!1}),delete r.index,l.text&&!nm.isArrayOrTypedArray(l.text)?r.text=String(l.text):r.text=l.name,[r]}}}});var oI=U((lLe,lI)=>{"use strict";var iI=Xn();lI.exports=function(r,t){var a=r.cd,n=r.xaxis,i=r.yaxis,l=[],o=a[0].trace,s,u,f,c,v=o.mode&&!iI.hasMarkers(o)&&!iI.hasText(o);if(v)return[];if(t===!1)for(s=0;s{"use strict";sI.exports={xaxis:{valType:"subplotid",dflt:"x",editType:"calc+clearAxisTypes"},yaxis:{valType:"subplotid",dflt:"y",editType:"calc+clearAxisTypes"}}});var dI=U((sLe,vI)=>{"use strict";var im=Ar().traceIs,x6=Hx();vI.exports=function(r,t,a,n){a("autotypenumbers",n.autotypenumbersDflt);var i=a("type",(n.splomStash||{}).type);i==="-"&&(Sye(t,n.data),t.type==="-"?t.type="linear":r.type=t.type)};function Sye(e,r){if(e.type==="-"){var t=e._id,a=t.charAt(0),n;t.indexOf("scene")!==-1&&(t=a);var i=qye(r,t,a);if(i){if(i.type==="histogram"&&a==={v:"y",h:"x"}[i.orientation||"v"]){e.type="linear";return}var l=a+"calendar",o=i[l],s={noMultiCategory:!im(i,"cartesian")||im(i,"noMultiCategory")};if(i.type==="box"&&i._hasPreCompStats&&a==={h:"x",v:"y"}[i.orientation||"v"]&&(s.noMultiCategory=!0),s.autotypenumbers=e.autotypenumbers,cI(i,a)){var u=fI(i),f=[];for(n=0;n0&&(n["_"+t+"axes"]||{})[r])return n;if((n[t+"axis"]||t)===r){if(cI(n,t))return n;if((n[t]||[]).length||n[t+"0"])return n}}}function fI(e){return{v:"x",h:"y"}[e.orientation||"v"]}function cI(e,r){var t=fI(e),a=im(e,"box-violin");return a&&r===t&&e[t]===void 0&&e[t+"0"]===void 0}});var pI=U((uLe,hI)=>{"use strict";var Dye=Tn().isTypedArraySpec;function Pye(e,r){var t=r.dataAttr||e._id.charAt(0),a={},n,i,l;if(r.axData)n=r.axData;else for(n=[],i=0;i0||Dye(i),o;l&&(o="array");var s=a("categoryorder",o),u;s==="array"&&(u=a("categoryarray")),!l&&s==="array"&&(s=t.categoryorder="trace"),s==="trace"?t._initialCategories=[]:s==="array"?t._initialCategories=u.slice():(u=Pye(t,n).sort(),s==="category ascending"?t._initialCategories=u:s==="category descending"&&(t._initialCategories=u.reverse()))}}});var gI=U((fLe,yI)=>{"use strict";var mI=kr(),Eye=ui(),Rye=ke();yI.exports=function(r,t,a,n){n=n||{};var i=n.dfltColor;function l(S,D){return Rye.coerce2(r,t,n.attributes,S,D)}var o=l("linecolor",i),s=l("linewidth"),u=a("showline",n.showLine||!!o||!!s);u||(delete t.linecolor,delete t.linewidth);var f=mI.mix(i,n.bgColor,n.blend||Eye.lightFraction),c=l("gridcolor",f),v=l("gridwidth"),h=l("griddash"),p=a("showgrid",n.showGrid||!!c||!!v||!!h);if(p||(delete t.gridcolor,delete t.gridwidth,delete t.griddash),n.hasMinor){var y=mI.mix(t.gridcolor,n.bgColor,67),m=l("minor.gridcolor",y),b=l("minor.gridwidth",t.gridwidth||1),_=l("minor.griddash",t.griddash||"solid"),w=a("minor.showgrid",!!m||!!b||!!_);w||(delete t.minor.gridcolor,delete t.minor.gridwidth,delete t.minor.griddash)}if(!n.noZeroLine){var x=l("zerolinelayer"),M=l("zerolinecolor",i),k=l("zerolinewidth"),A=a("zeroline",n.showGrid||!!M||!!k);A||(delete t.zerolinelayer,delete t.zerolinecolor,delete t.zerolinewidth)}}});var om=U((cLe,MI)=>{"use strict";var xI=Gr(),zye=Ar(),g2=ke(),Fye=ht(),Nye=di(),b6=Vn(),bI=Kh(),_I=jh(),Iye=e1(),Bye=r1(),Hye=pI(),Oye=gI(),Yye=ob(),wI=p1(),lm=(Ta(),Fe(wa)).WEEKDAY_PATTERN,Gye=(Ta(),Fe(wa)).HOUR_PATTERN;MI.exports=function(r,t,a,n,i){var l=n.letter,o=n.font||{},s=n.splomStash||{},u=a("visible",!n.visibleDflt),f=t._template||{},c=t.type||f.type||"-",v;if(c==="date"){var h=zye.getComponentMethod("calendars","handleDefaults");h(r,t,"calendar",n.calendar),n.noTicklabelmode||(v=a("ticklabelmode"))}!n.noTicklabelindex&&(c==="date"||c==="linear")&&a("ticklabelindex");var p="";(!n.noTicklabelposition||c==="multicategory")&&(p=g2.coerce(r,t,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:v==="period"?["outside","inside"]:l==="x"?["outside","inside","outside left","inside left","outside right","inside right"]:["outside","inside","outside top","inside top","outside bottom","inside bottom"]}},"ticklabelposition")),n.noTicklabeloverflow||a("ticklabeloverflow",p.indexOf("inside")!==-1?"hide past domain":c==="category"||c==="multicategory"?"allow":"hide past div"),wI(t,i),Yye(r,t,a,n),Hye(r,t,a,n),n.noHover||(c!=="category"&&a("hoverformat"),n.noUnifiedhovertitle||a("unifiedhovertitle.text"));var y=a("color"),m=y!==b6.color.dflt?y:o.color,b=s.label||i._dfltTitle[l];if(Bye(r,t,a,c,n),!u)return t;a("title.text",b),g2.coerceFont(a,"title.font",o,{overrideDflt:{size:g2.bigFont(o.size),color:m}}),bI(r,t,a,c);var _=n.hasMinor;if(_&&(Fye.newContainer(t,"minor"),bI(r,t,a,c,{isMinor:!0})),Iye(r,t,a,c,n),_I(r,t,a,n),_){var w=n.isMinor;n.isMinor=!0,_I(r,t,a,n),n.isMinor=w}Oye(r,t,a,{dfltColor:y,bgColor:n.bgColor,showGrid:n.showGrid,hasMinor:_,attributes:b6}),_&&t.ticklabelindex==null&&!t.minor.ticks&&!t.minor.showgrid&&delete t.minor,(t.showline||t.ticks)&&a("mirror");var x=c==="multicategory";if(!n.noTickson&&(c==="category"||x)&&(t.ticks||t.showgrid)&&(x?(a("tickson","boundaries"),delete t.ticklabelposition):a("tickson")),x){var M=a("showdividers");M&&(a("dividercolor"),a("dividerwidth"))}if(c==="date")if(Nye(r,t,{name:"rangebreaks",inclusionAttr:"enabled",handleItemDefaults:Uye}),!t.rangebreaks.length)delete t.rangebreaks;else{for(var k=0;k=2){var l="",o,s;if(i.length===2){for(o=0;o<2;o++)if(s=TI(i[o]),s){l=lm;break}}var u=a("pattern",l);if(u===lm)for(o=0;o<2;o++)s=TI(i[o]),s&&(r.bounds[o]=i[o]=s-1);if(u)for(o=0;o<2;o++)switch(s=i[o],u){case lm:if(!xI(s)){r.enabled=!1;return}if(s=+s,s!==Math.floor(s)||s<0||s>=7){r.enabled=!1;return}r.bounds[o]=i[o]=s;break;case Gye:if(!xI(s)){r.enabled=!1;return}if(s=+s,s<0||s>24){r.enabled=!1;return}r.bounds[o]=i[o]=s;break}if(t.autorange===!1){var f=t.range;if(f[0]f[1]){r.enabled=!1;return}}else if(i[0]>f[0]&&i[1]{"use strict";var Xye=Gr(),sm=ke();AI.exports=function(r,t,a,n){var i=n.counterAxes||[],l=n.overlayableAxes||[],o=n.letter,s=n.grid,u=n.overlayingDomain,f,c,v,h,p,y;s&&(c=s._domains[o][s._axisMap[t._id]],f=s._anchors[t._id],c&&(v=s[o+"side"].split(" ")[0],h=s.domain[o][v==="right"||v==="top"?1:0])),c=c||[0,1],f=f||(Xye(r.position)?"free":i[0]||"free"),v=v||(o==="x"?"bottom":"left"),h=h||0,p=0,y=!1;var m=sm.coerce(r,t,{anchor:{valType:"enumerated",values:["free"].concat(i),dflt:f}},"anchor"),b=sm.coerce(r,t,{side:{valType:"enumerated",values:o==="x"?["bottom","top"]:["left","right"],dflt:v}},"side");if(m==="free"){if(o==="y"){var _=a("autoshift");_&&(h=b==="left"?u[0]:u[1],y=t.automargin?t.automargin:!0,p=b==="left"?-3:3),a("shift",p)}a("position",h)}a("automargin",y);var w=!1;if(l.length&&(w=sm.coerce(r,t,{overlaying:{valType:"enumerated",values:[!1].concat(l),dflt:!1}},"overlaying")),!w){var x=a("domain",c);x[0]>x[1]-1/4096&&(t.domain=c),sm.noneOrAll(r.domain,t.domain,c),t.tickmode==="sync"&&(t.tickmode="auto")}return a("layer"),t}});var RI=U((dLe,EI)=>{"use strict";var gu=ke(),kI=kr(),Wye=Ui().isUnifiedHover,Zye=zb(),CI=ht(),Jye=A0(),LI=Vn(),$ye=dI(),SI=om(),Kye=cu(),qI=um(),w6=oa(),Ll=w6.id2name,DI=w6.name2id,jye=(Ta(),Fe(wa)).AX_ID_PATTERN,PI=Ar(),fm=PI.traceIs,_6=PI.getComponentMethod;function cm(e,r,t){Array.isArray(e[r])?e[r].push(t):e[r]=[t]}EI.exports=function(r,t,a){var n=t.autotypenumbers,i={},l={},o={},s={},u={},f={},c={},v={},h={},p={},y,m;for(y=0;y{"use strict";var Qye=Er(),zI=Ar(),vm=ke(),ei=Zr(),dm=Kr();FI.exports=function(r,t,a,n){var i=r._fullLayout;if(t.length===0){dm.redrawComponents(r);return}function l(m){var b=m.xaxis,_=m.yaxis;i._defs.select("#"+m.clipId+"> rect").call(ei.setTranslate,0,0).call(ei.setScale,1,1),m.plot.call(ei.setTranslate,b._offset,_._offset).call(ei.setScale,1,1);var w=m.plot.selectAll(".scatterlayer .trace");w.selectAll(".point").call(ei.setPointGroupScale,1,1),w.selectAll(".textpoint").call(ei.setTextPointsScale,1,1),w.call(ei.hideOutsideRangePoints,m)}function o(m,b){var _=m.plotinfo,w=_.xaxis,x=_.yaxis,M=w._length,k=x._length,A=!!m.xr1,S=!!m.yr1,D=[];if(A){var P=vm.simpleMap(m.xr0,w.r2l),R=vm.simpleMap(m.xr1,w.r2l),F=P[1]-P[0],N=R[1]-R[0];D[0]=(P[0]*(1-b)+b*R[0]-P[0])/(P[1]-P[0])*M,D[2]=M*(1-b+b*N/F),w.range[0]=w.l2r(P[0]*(1-b)+b*R[0]),w.range[1]=w.l2r(P[1]*(1-b)+b*R[1])}else D[0]=0,D[2]=M;if(S){var B=vm.simpleMap(m.yr0,x.r2l),H=vm.simpleMap(m.yr1,x.r2l),O=B[1]-B[0],Y=H[1]-H[0];D[1]=(B[1]*(1-b)+b*H[1]-B[1])/(B[0]-B[1])*k,D[3]=k*(1-b+b*Y/O),x.range[0]=w.l2r(B[0]*(1-b)+b*H[0]),x.range[1]=x.l2r(B[1]*(1-b)+b*H[1])}else D[1]=0,D[3]=k;dm.drawOne(r,w,{skipTitle:!0}),dm.drawOne(r,x,{skipTitle:!0}),dm.redrawComponents(r,[w._id,x._id]);var G=A?M/D[2]:1,V=S?k/D[3]:1,W=A?D[0]:0,X=S?D[1]:0,$=A?D[0]/D[2]*M:0,te=S?D[1]/D[3]*k:0,ie=w._offset-$,ve=x._offset-te;_.clipRect.call(ei.setTranslate,W,X).call(ei.setScale,1/G,1/V),_.plot.call(ei.setTranslate,ie,ve).call(ei.setScale,G,V),ei.setPointGroupScale(_.zoomScalePts,1/G,1/V),ei.setTextPointsScale(_.zoomScaleTxt,1/G,1/V)}var s;n&&(s=n());function u(){for(var m={},b=0;ba.duration?(u(),h=window.cancelAnimationFrame(y)):h=window.requestAnimationFrame(y)}return c=Date.now(),h=window.requestAnimationFrame(y),Promise.resolve()}});var Kl=U($a=>{"use strict";var pm=Er(),II=Ar(),xu=ke(),ege=Xt(),rge=Zr(),BI=$5().getModuleCalcData,Vo=oa(),ji=(Ta(),Fe(wa)),tge=(Us(),Fe(Gs)),et=xu.ensureSingle;function hm(e,r,t){return xu.ensureSingle(e,r,t,function(a){a.datum(t)})}var bu=ji.zindexSeparator;$a.name="cartesian";$a.attr=["xaxis","yaxis"];$a.idRoot=["x","y"];$a.idRegex=ji.idRegex;$a.attrRegex=ji.attrRegex;$a.attributes=uI();$a.layoutAttributes=Vn();$a.supplyLayoutDefaults=RI();$a.transitionAxes=NI();$a.finalizeSubplots=function(e,r){var t=r._subplots,a=t.xaxis,n=t.yaxis,i=t.cartesian,l=i,o={},s={},u,f,c;for(u=0;u0){var h=v.id;if(h.indexOf(bu)!==-1)continue;h+=bu+(u+1),v=xu.extendFlat({},v,{id:h,plot:n._cartesianlayer.selectAll(".subplot").select("."+h)})}for(var p=[],y,m=0;m1&&(M+=bu+x),w.push(o+M),l=0;l1,c=r.mainplotinfo;if(!r.mainplot||f)if(u)r.xlines=et(a,"path","xlines-above"),r.ylines=et(a,"path","ylines-above"),r.xaxislayer=et(a,"g","xaxislayer-above"),r.yaxislayer=et(a,"g","yaxislayer-above");else{if(!l){var v=et(a,"g","layer-subplot");r.shapelayer=et(v,"g","shapelayer"),r.imagelayer=et(v,"g","imagelayer"),c&&f?(r.minorGridlayer=c.minorGridlayer,r.gridlayer=c.gridlayer,r.zerolinelayer=c.zerolinelayer):(r.minorGridlayer=et(a,"g","minor-gridlayer"),r.gridlayer=et(a,"g","gridlayer"),r.zerolinelayer=et(a,"g","zerolinelayer"));var h=et(a,"g","layer-between");r.shapelayerBetween=et(h,"g","shapelayer"),r.imagelayerBetween=et(h,"g","imagelayer"),et(a,"path","xlines-below"),et(a,"path","ylines-below"),r.overlinesBelow=et(a,"g","overlines-below"),et(a,"g","xaxislayer-below"),et(a,"g","yaxislayer-below"),r.overaxesBelow=et(a,"g","overaxes-below")}r.overplot=et(a,"g","overplot"),r.plot=et(r.overplot,"g",n),c&&f?r.zerolinelayerAbove=c.zerolinelayerAbove:r.zerolinelayerAbove=et(a,"g","zerolinelayer-above"),l||(r.xlines=et(a,"path","xlines-above"),r.ylines=et(a,"path","ylines-above"),r.overlinesAbove=et(a,"g","overlines-above"),et(a,"g","xaxislayer-above"),et(a,"g","yaxislayer-above"),r.overaxesAbove=et(a,"g","overaxes-above"),r.xlines=a.select(".xlines-"+o),r.ylines=a.select(".ylines-"+s),r.xaxislayer=a.select(".xaxislayer-"+o),r.yaxislayer=a.select(".yaxislayer-"+s))}else{var p=c.plotgroup,y=n+"-x",m=n+"-y";r.minorGridlayer=c.minorGridlayer,r.gridlayer=c.gridlayer,r.zerolinelayer=c.zerolinelayer,r.zerolinelayerAbove=c.zerolinelayerAbove,et(c.overlinesBelow,"path",y),et(c.overlinesBelow,"path",m),et(c.overaxesBelow,"g",y),et(c.overaxesBelow,"g",m),r.plot=et(c.overplot,"g",n),et(c.overlinesAbove,"path",y),et(c.overlinesAbove,"path",m),et(c.overaxesAbove,"g",y),et(c.overaxesAbove,"g",m),r.xlines=p.select(".overlines-"+o).select("."+y),r.ylines=p.select(".overlines-"+s).select("."+m),r.xaxislayer=p.select(".overaxes-"+o).select("."+y),r.yaxislayer=p.select(".overaxes-"+s).select("."+m)}l||(u||(hm(r.minorGridlayer,"g",r.xaxis._id),hm(r.minorGridlayer,"g",r.yaxis._id),r.minorGridlayer.selectAll("g").map(function(b){return b[0]}).sort(Vo.idSort),hm(r.gridlayer,"g",r.xaxis._id),hm(r.gridlayer,"g",r.yaxis._id),r.gridlayer.selectAll("g").map(function(b){return b[0]}).sort(Vo.idSort)),r.xlines.style("fill","none").classed("crisp",!0),r.ylines.style("fill","none").classed("crisp",!0))}function YI(e,r){if(e){var t={};e.each(function(s){var u=s[0],f=pm.select(this);f.remove(),GI(u,r),t[u]=!0});for(var a in r._plots)for(var n=r._plots[a],i=n.overlays||[],l=0;l{"use strict";var mm=Xn();UI.exports={hasLines:mm.hasLines,hasMarkers:mm.hasMarkers,hasText:mm.hasText,isBubble:mm.isBubble,attributes:Zi(),layoutAttributes:Yh(),supplyDefaults:iN(),crossTraceDefaults:sN(),supplyLayoutDefaults:fN(),calc:l6().calc,crossTraceCalc:zN(),arraysToCalcdata:r6(),plot:JN(),colorbar:tm(),formatLabels:jN(),style:y6().style,styleOnSelect:y6().styleOnSelect,hoverPoints:nI(),selectPoints:oI(),animatable:!0,moduleType:"trace",name:"scatter",basePlotModule:Kl(),categories:["cartesian","svg","symbols","errorBarsOK","showLegend","scatter-like","zoomScale"],meta:{}}});var ZI=U((yLe,WI)=>{"use strict";var nge=Er(),ige=kr(),XI=A4(),T6=ke(),lge=T6.strScale,oge=T6.strRotate,sge=T6.strTranslate;WI.exports=function(r,t,a){var n=r.node(),i=XI[a.arrowhead||0],l=XI[a.startarrowhead||0],o=(a.arrowwidth||1)*(a.arrowsize||1),s=(a.arrowwidth||1)*(a.startarrowsize||1),u=t.indexOf("start")>=0,f=t.indexOf("end")>=0,c=i.backoff*o+a.standoff,v=l.backoff*s+a.startstandoff,h,p,y,m;if(n.nodeName==="line"){h={x:+r.attr("x1"),y:+r.attr("y1")},p={x:+r.attr("x2"),y:+r.attr("y2")};var b=h.x-p.x,_=h.y-p.y;if(y=Math.atan2(_,b),m=y+Math.PI,c&&v&&c+v>Math.sqrt(b*b+_*_)){B();return}if(c){if(c*c>b*b+_*_){B();return}var w=c*Math.cos(y),x=c*Math.sin(y);p.x+=w,p.y+=x,r.attr({x2:p.x,y2:p.y})}if(v){if(v*v>b*b+_*_){B();return}var M=v*Math.cos(y),k=v*Math.sin(y);h.x-=M,h.y-=k,r.attr({x1:h.x,y1:h.y})}}else if(n.nodeName==="path"){var A=n.getTotalLength(),S="";if(A{"use strict";var JI=Er(),M6=Ar(),uge=Xt(),Wo=ke(),A6=Wo.strTranslate,b2=Kr(),_u=kr(),jl=Zr(),$I=yi(),k6=ma(),C6=Fo(),x2=Xi(),fge=ht().arrayEditor,cge=ZI();QI.exports={draw:vge,drawOne:KI,drawRaw:jI};function vge(e){var r=e._fullLayout;r._infolayer.selectAll(".annotation").remove();for(var t=0;t2/3?br="right":br="center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[br]}for(var ce=!1,Me=["x","y"],Re=0;Re1)&&(Le===Pe?(De=qe.r2fraction(r["a"+xe]),(De<0||De>1)&&(ce=!0)):ce=!0),ze=qe._offset+qe.r2p(r[xe]),ye=.5}else{var pe=hr==="domain";xe==="x"?(re=r[xe],ze=pe?qe._offset+qe._length*re:ze=o.l+o.w*re):(re=1-r[xe],ze=pe?qe._offset+qe._length*re:ze=o.t+o.h*re),ye=r.showarrow?.5:re}if(r.showarrow){Ae.head=ze;var Te=r["a"+xe];if(Xe=Ue*me(.5,r.xanchor)-Ce*me(.5,r.yanchor),Le===Pe){var Oe=b2.getRefType(Le);Oe==="domain"?(xe==="y"&&(Te=1-Te),Ae.tail=qe._offset+qe._length*Te):Oe==="paper"?xe==="y"?(Te=1-Te,Ae.tail=o.t+o.h*Te):Ae.tail=o.l+o.w*Te:Ae.tail=qe._offset+qe.r2p(Te),Qe=Xe}else Ae.tail=ze+Te,Qe=Xe+Te;Ae.text=Ae.tail+Xe;var Je=l[xe==="x"?"width":"height"];if(Pe==="paper"&&(Ae.head=Wo.constrain(Ae.head,1,Je-1)),Le==="pixel"){var Be=-Math.max(Ae.tail-3,Ae.text),Ve=Math.min(Ae.tail+3,Ae.text)-Je;Be>0?(Ae.tail+=Be,Ae.text+=Be):Ve>0&&(Ae.tail-=Ve,Ae.text-=Ve)}Ae.tail+=Ze,Ae.head+=Ze}else Xe=We*me(ye,je),Qe=Xe,Ae.text=ze+Xe;Ae.text+=Ze,Xe+=Ze,Qe+=Ze,r["_"+xe+"padplus"]=We/2+Qe,r["_"+xe+"padminus"]=We/2-Qe,r["_"+xe+"size"]=We,r["_"+xe+"shift"]=Xe}if(ce){A.remove();return}var nr=0,lr=0;if(r.align!=="left"&&(nr=(K-ie)*(r.align==="center"?.5:1)),r.valign!=="top"&&(lr=(he-ve)*(r.valign==="middle"?.5:1)),$)X.select("svg").attr({x:P+nr-1,y:P+lr}).call(jl.setClipUrl,F?y:null,e);else{var fr=P+lr-te.top,Se=P+nr-te.left;O.call(k6.positionText,Se,fr).call(jl.setClipUrl,F?y:null,e)}N.select("rect").call(jl.setRect,P,P,K,he),R.call(jl.setRect,S/2,S/2,le-S,_e-S),A.call(jl.setTranslate,Math.round(m.x.text-le/2),Math.round(m.y.text-_e/2)),w.attr({transform:"rotate("+b+","+m.x.text+","+m.y.text+")"});var Ke=function(pr,br){_.selectAll(".annotation-arrow-g").remove();var ur=m.x.head,mr=m.y.head,ae=m.x.tail+pr,de=m.y.tail+br,Ne=m.x.text+pr,Ge=m.y.text+br,rt=Wo.rotationXYMatrix(b,Ne,Ge),ft=Wo.apply2DTransform(rt),yt=Wo.apply2DTransform2(rt),Vt=+R.attr("width"),Nt=+R.attr("height"),Sa=Ne-.5*Vt,bn=Sa+Vt,fa=Ge-.5*Nt,hn=fa+Nt,Nn=[[Sa,fa,Sa,hn],[Sa,hn,bn,hn],[bn,hn,bn,fa],[bn,fa,Sa,fa]].map(yt);if(!Nn.reduce(function(Tt,ia){return Tt^!!Wo.segmentsIntersect(ur,mr,ur+1e6,mr+1e6,ia[0],ia[1],ia[2],ia[3])},!1)){Nn.forEach(function(Tt){var ia=Wo.segmentsIntersect(ae,de,ur,mr,Tt[0],Tt[1],Tt[2],Tt[3]);ia&&(ae=ia.x,de=ia.y)});var In=r.arrowwidth,yr=r.arrowcolor,gt=r.arrowside,tt=_.append("g").style({opacity:_u.opacity(yr)}).classed("annotation-arrow-g",!0),wt=tt.append("path").attr("d","M"+ae+","+de+"L"+ur+","+mr).style("stroke-width",In+"px").call(_u.stroke,_u.rgb(yr));if(cge(wt,gt,r),s.annotationPosition&&wt.node().parentNode&&!a){var It=ur,Dt=mr;if(r.standoff){var ct=Math.sqrt(Math.pow(ur-ae,2)+Math.pow(mr-de,2));It+=r.standoff*(ae-ur)/ct,Dt+=r.standoff*(de-mr)/ct}var ca=tt.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(ae-It)+","+(de-Dt),transform:A6(It,Dt)}).style("stroke-width",In+6+"px").call(_u.stroke,"rgba(0,0,0,0)").call(_u.fill,"rgba(0,0,0,0)"),ni,$t;x2.init({element:ca.node(),gd:e,prepFn:function(){var Tt=jl.getTranslate(A);ni=Tt.x,$t=Tt.y,n&&n.autorange&&v(n._name+".autorange",!0),i&&i.autorange&&v(i._name+".autorange",!0)},moveFn:function(Tt,ia){var la=ft(ni,$t),ys=la[0]+Tt,uo=la[1]+ia;A.call(jl.setTranslate,ys,uo),h("x",Xo(n,Tt,"x",o,r)),h("y",Xo(i,ia,"y",o,r)),r.axref===r.xref&&h("ax",Xo(n,Tt,"ax",o,r)),r.ayref===r.yref&&h("ay",Xo(i,ia,"ay",o,r)),tt.attr("transform",A6(Tt,ia)),w.attr({transform:"rotate("+b+","+ys+","+uo+")"})},doneFn:function(){M6.call("_guiRelayout",e,p());var Tt=document.querySelector(".js-notes-box-panel");Tt&&Tt.redraw(Tt.selectedObj)}})}}};if(r.showarrow&&Ke(0,0),x){var Ie;x2.init({element:A.node(),gd:e,prepFn:function(){Ie=w.attr("transform")},moveFn:function(pr,br){var ur="pointer";if(r.showarrow)r.axref===r.xref?h("ax",Xo(n,pr,"ax",o,r)):h("ax",r.ax+pr),r.ayref===r.yref?h("ay",Xo(i,br,"ay",o.w,r)):h("ay",r.ay+br),Ke(pr,br);else{if(a)return;var mr,ae;if(n)mr=Xo(n,pr,"x",o,r);else{var de=r._xsize/o.w,Ne=r.x+(r._xshift-r.xshift)/o.w-de/2;mr=x2.align(Ne+pr/o.w,de,0,1,r.xanchor)}if(i)ae=Xo(i,br,"y",o,r);else{var Ge=r._ysize/o.h,rt=r.y-(r._yshift+r.yshift)/o.h-Ge/2;ae=x2.align(rt-br/o.h,Ge,0,1,r.yanchor)}h("x",mr),h("y",ae),(!n||!i)&&(ur=x2.getCursor(n?.5:mr,i?.5:ae,r.xanchor,r.yanchor))}w.attr({transform:A6(pr,br)+Ie}),C6(A,ur)},clickFn:function(pr,br){r.captureevents&&e.emit("plotly_clickannotation",k(br))},doneFn:function(){C6(A),M6.call("_guiRelayout",e,p());var pr=document.querySelector(".js-notes-box-panel");pr&&pr.redraw(pr.selectedObj)}})}}s.annotationText?O.call(k6.makeEditable,{delegate:A,gd:e}).call(Y).on("edit",function(V){r.text=V,this.call(Y),h("text",V),n&&n.autorange&&v(n._name+".autorange",!0),i&&i.autorange&&v(i._name+".autorange",!0),M6.call("_guiRelayout",e,p())}):O.call(Y)}});var iB=U((xLe,nB)=>{"use strict";var eB=ke(),dge=Ar(),rB=ht().arrayEditor;nB.exports={hasClickToShow:hge,onClick:pge};function hge(e,r){var t=aB(e,r);return t.on.length>0||t.explicitOff.length>0}function pge(e,r){var t=aB(e,r),a=t.on,n=t.off.concat(t.explicitOff),i={},l=e._fullLayout.annotations,o,s;if(a.length||n.length){for(o=0;o{"use strict";var L6=ke(),wf=kr();lB.exports=function(r,t,a,n){n("opacity");var i=n("bgcolor"),l=n("bordercolor"),o=wf.opacity(l);n("borderpad");var s=n("borderwidth"),u=n("showarrow");n("text",u?" ":a._dfltTitle.annotation),n("textangle"),L6.coerceFont(n,"font",a.font),n("width"),n("align");var f=n("height");if(f&&n("valign"),u){var c=n("arrowside"),v,h;c.indexOf("end")!==-1&&(v=n("arrowhead"),h=n("arrowsize")),c.indexOf("start")!==-1&&(n("startarrowhead",v),n("startarrowsize",h)),n("arrowcolor",o?t.bordercolor:wf.defaultLine),n("arrowwidth",(o&&s||1)*2),n("standoff"),n("startstandoff")}var p=n("hovertext"),y=a.hoverlabel||{};if(p){var m=n("hoverlabel.bgcolor",y.bgcolor||(wf.opacity(i)?wf.rgb(i):wf.defaultLine)),b=n("hoverlabel.bordercolor",y.bordercolor||wf.contrast(m)),_=L6.extendFlat({},y.font);_.color||(_.color=b),L6.coerceFont(n,"hoverlabel.font",_)}n("captureevents",!!p)}});var sB=U((_Le,oB)=>{"use strict";var q6=ke(),wu=Kr(),mge=di(),yge=S6(),gge=ff();oB.exports=function(r,t){mge(r,t,{name:"annotations",handleItemDefaults:xge})};function xge(e,r,t){function a(w,x){return q6.coerce(e,r,gge,w,x)}var n=a("visible"),i=a("clicktoshow");if(n||i){yge(e,r,t,a);for(var l=r.showarrow,o=["x","y"],s=[-10,-30],u={_fullLayout:t},f=0;f<2;f++){var c=o[f],v=wu.coerceRef(e,r,u,c,"","paper");if(v!=="paper"){var h=wu.getFromId(u,v);h._annIndices.push(r._index)}if(wu.coercePosition(r,u,a,v,c,.5),l){var p="a"+c,y=wu.coerceRef(e,r,u,p,"pixel",["pixel","paper"]);y!=="pixel"&&y!==v&&(y=r[p]="pixel");var m=y==="pixel"?s[f]:.4;wu.coercePosition(r,u,a,y,p,m)}a(c+"anchor"),a(c+"shift")}if(q6.noneOrAll(e,r,["x","y"]),l&&q6.noneOrAll(e,r,["ax","ay"]),i){var b=a("xclick"),_=a("yclick");r._xclick=b===void 0?r.x:wu.cleanPosition(b,u,r.xref),r._yclick=_===void 0?r.y:wu.cleanPosition(_,u,r.yref)}}}});var cB=U((wLe,fB)=>{"use strict";var D6=ke(),Tu=Kr(),bge=ym().draw;fB.exports=function(r){var t=r._fullLayout,a=D6.filterVisible(t.annotations);if(a.length&&r._fullData.length)return D6.syncOrAsync([bge,_ge],r)};function _ge(e){var r=e._fullLayout;D6.filterVisible(r.annotations).forEach(function(t){var a=Tu.getFromId(e,t.xref),n=Tu.getFromId(e,t.yref),i=Tu.getRefType(t.xref),l=Tu.getRefType(t.yref);t._extremes={},i==="range"&&uB(t,a),l==="range"&&uB(t,n)})}function uB(e,r){var t=r._id,a=t.charAt(0),n=e[a],i=e["a"+a],l=e[a+"ref"],o=e["a"+a+"ref"],s=e["_"+a+"padplus"],u=e["_"+a+"padminus"],f={x:1,y:-1}[a]*e[a+"shift"],c=3*e.arrowsize*e.arrowwidth||0,v=c+f,h=c-f,p=3*e.startarrowsize*e.arrowwidth||0,y=p+f,m=p-f,b;if(o===l){var _=Tu.findExtremes(r,[r.r2c(n)],{ppadplus:v,ppadminus:h}),w=Tu.findExtremes(r,[r.r2c(i)],{ppadplus:Math.max(s,y),ppadminus:Math.max(u,m)});b={min:[_.min[0],w.min[0]],max:[_.max[0],w.max[0]]}}else y=i?y+i:y,m=i?m-i:m,b=Tu.findExtremes(r,[r.r2c(n)],{ppadplus:Math.max(s,v,y),ppadminus:Math.max(u,h,m)});e._extremes[t]=b}});var dB=U((TLe,vB)=>{"use strict";var wge=Gr(),Tge=Od();vB.exports=function(r,t,a,n){t=t||{};var i=a==="log"&&t.type==="linear",l=a==="linear"&&t.type==="log";if(!(i||l))return;var o=r._fullLayout.annotations,s=t._id.charAt(0),u,f;function c(h){var p=u[h],y=null;i?y=Tge(p,t.range):y=Math.pow(10,p),wge(y)||(y=null),n(f+h,y)}for(var v=0;v{"use strict";var P6=ym(),hB=iB();pB.exports={moduleType:"component",name:"annotations",layoutAttributes:ff(),supplyLayoutDefaults:sB(),includeBasePlot:Qv()("annotations"),calcAutorange:cB(),draw:P6.draw,drawOne:P6.drawOne,drawRaw:P6.drawRaw,hasClickToShow:hB.hasClickToShow,onClick:hB.onClick,convertCoords:dB()}});var gm=U((ALe,yB)=>{"use strict";var bt=ff(),Mge=Ii().overrideAll,Age=ht().templatedArray;yB.exports=Mge(Age("annotation",{visible:bt.visible,x:{valType:"any"},y:{valType:"any"},z:{valType:"any"},ax:{valType:"number"},ay:{valType:"number"},xanchor:bt.xanchor,xshift:bt.xshift,yanchor:bt.yanchor,yshift:bt.yshift,text:bt.text,textangle:bt.textangle,font:bt.font,width:bt.width,height:bt.height,opacity:bt.opacity,align:bt.align,valign:bt.valign,bgcolor:bt.bgcolor,bordercolor:bt.bordercolor,borderpad:bt.borderpad,borderwidth:bt.borderwidth,showarrow:bt.showarrow,arrowcolor:bt.arrowcolor,arrowhead:bt.arrowhead,startarrowhead:bt.startarrowhead,arrowside:bt.arrowside,arrowsize:bt.arrowsize,startarrowsize:bt.startarrowsize,arrowwidth:bt.arrowwidth,standoff:bt.standoff,startstandoff:bt.startstandoff,hovertext:bt.hovertext,hoverlabel:bt.hoverlabel,captureevents:bt.captureevents}),"calc","from-root")});var xB=U((kLe,gB)=>{"use strict";var E6=ke(),kge=Kr(),Cge=di(),Lge=S6(),Sge=gm();gB.exports=function(r,t,a){Cge(r,t,{name:"annotations",handleItemDefaults:qge,fullLayout:a.fullLayout})};function qge(e,r,t,a){function n(o,s){return E6.coerce(e,r,Sge,o,s)}function i(o){var s=o+"axis",u={_fullLayout:{}};return u._fullLayout[s]=t[s],kge.coercePosition(r,u,n,o,o,.5)}var l=n("visible");l&&(Lge(e,r,a.fullLayout,n),i("x"),i("y"),i("z"),E6.noneOrAll(e,r,["x","y","z"]),r.xref="x",r.yref="y",r.zref="z",n("xanchor"),n("yanchor"),n("xshift"),n("yshift"),r.showarrow&&(r.axref="pixel",r.ayref="pixel",n("ax",-10),n("ay",-30),E6.noneOrAll(e,r,["ax","ay"])))}});var TB=U((CLe,wB)=>{"use strict";var bB=ke(),_B=Kr();wB.exports=function(r){for(var t=r.fullSceneLayout,a=t.annotations,n=0;n{"use strict";function R6(e,r){var t=[0,0,0,0],a,n;for(a=0;a<4;++a)for(n=0;n<4;++n)t[n]+=e[4*a+n]*r[a];return t}function Pge(e,r){var t=R6(e.projection,R6(e.view,R6(e.model,[r[0],r[1],r[2],1])));return t}MB.exports=Pge});var CB=U((SLe,kB)=>{"use strict";var Ege=ym().drawRaw,Rge=AB(),zge=["x","y","z"];kB.exports=function(r){for(var t=r.fullSceneLayout,a=r.dataScale,n=t.annotations,i=0;i1){o=!0;break}}o?r.fullLayout._infolayer.select(".annotation-"+r.id+'[data-index="'+i+'"]').remove():(l._pdata=Rge(r.glplot.cameraParams,[t.xaxis.r2l(l.x)*a[0],t.yaxis.r2l(l.y)*a[1],t.zaxis.r2l(l.z)*a[2]]),Ege(r.graphDiv,l,i,r.id,l._xa,l._ya))}}});var qB=U((qLe,SB)=>{"use strict";var Fge=Ar(),LB=ke();SB.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:gm()}}},layoutAttributes:gm(),handleDefaults:xB(),includeBasePlot:Nge,convert:TB(),draw:CB()};function Nge(e,r){var t=Fge.subplotsRegistry.gl3d;if(t)for(var a=t.attrRegex,n=Object.keys(e),i=0;i{"use strict";var DLe=(Ta(),Fe(wa)),DB=xa(),PB=Zi().line,Ige=Bi().dash,Qi=At().extendFlat,Bge=ht().templatedArray,PLe=(Kv(),Fe($v)),Tf=Mn(),EB=ff(),{shapeTexttemplateAttrs:Hge,templatefallbackAttrs:Oge}=On(),Yge=bh();RB.exports=Bge("shape",{visible:Qi({},Tf.visible,{editType:"calc+arraydraw"}),showlegend:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},legend:Qi({},Tf.legend,{editType:"calc+arraydraw"}),legendgroup:Qi({},Tf.legendgroup,{editType:"calc+arraydraw"}),legendgrouptitle:{text:Qi({},Tf.legendgrouptitle.text,{editType:"calc+arraydraw"}),font:DB({editType:"calc+arraydraw"}),editType:"calc+arraydraw"},legendrank:Qi({},Tf.legendrank,{editType:"calc+arraydraw"}),legendwidth:Qi({},Tf.legendwidth,{editType:"calc+arraydraw"}),type:{valType:"enumerated",values:["circle","rect","path","line"],editType:"calc+arraydraw"},layer:{valType:"enumerated",values:["below","above","between"],dflt:"above",editType:"arraydraw"},xref:Qi({},EB.xref,{arrayOk:!0}),xsizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},xanchor:{valType:"any",editType:"calc+arraydraw"},x0:{valType:"any",editType:"calc+arraydraw"},x1:{valType:"any",editType:"calc+arraydraw"},x0shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},x1shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},yref:Qi({},EB.yref,{arrayOk:!0}),ysizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},yanchor:{valType:"any",editType:"calc+arraydraw"},y0:{valType:"any",editType:"calc+arraydraw"},y1:{valType:"any",editType:"calc+arraydraw"},y0shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},y1shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},path:{valType:"string",editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},line:{color:Qi({},PB.color,{editType:"arraydraw"}),width:Qi({},PB.width,{editType:"calc+arraydraw"}),dash:Qi({},Ige,{editType:"arraydraw"}),editType:"calc+arraydraw"},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd",editType:"arraydraw"},editable:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},label:{text:{valType:"string",dflt:"",editType:"arraydraw"},texttemplate:Hge({},{keys:Object.keys(Yge)}),texttemplatefallback:Oge({editType:"arraydraw"}),font:DB({editType:"calc+arraydraw",colorEditType:"arraydraw"}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"],editType:"arraydraw"},textangle:{valType:"angle",dflt:"auto",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],editType:"calc+arraydraw"},padding:{valType:"number",dflt:3,min:0,editType:"arraydraw"},editType:"arraydraw"},editType:"arraydraw"})});var FB=U((RLe,zB)=>{"use strict";var Mf=ke(),ri=Kr(),Gge=di(),Uge=z6(),_2=Oo();zB.exports=function(r,t){Gge(r,t,{name:"shapes",handleItemDefaults:Xge})};function Vge(e,r){return e?"bottom":r.indexOf("top")!==-1?"top":r.indexOf("bottom")!==-1?"bottom":"middle"}function Xge(e,r,t){function a(w,x){return Mf.coerce(e,r,Uge,w,x)}r._isShape=!0;var n=a("visible");if(!n)return;var i=a("showlegend");a("legend"),a("legendgroup"),i&&(a("legendwidth"),a("legendgrouptitle.text"),Mf.coerceFont(a,"legendgrouptitle.font"),a("legendrank"));var l=a("path"),o=l?"path":"rect",s=a("type",o),u=s!=="path";u&&delete r.path,a("editable"),a("layer"),a("opacity"),a("fillcolor"),a("fillrule");var f=a("line.width");f&&(a("line.color"),a("line.dash"));var c=a("xsizemode"),v=a("ysizemode");let h=[.25,.75],p=[0,10];["x","y"].forEach(w=>{var x=w+"anchor",M=w==="x"?c:v,k={_fullLayout:t},A,S,D,P;let R=w+"ref",F=e[R];if(Array.isArray(F)&&F.length>0){let N=_2.countDefiningCoords(s,l,w);P=ri.coerceRefArray(e,r,k,w,void 0,"paper",N),r["_"+w+"refArray"]=!0}else P=ri.coerceRef(e,r,k,w,void 0,"paper");if(Array.isArray(P))P.forEach(function(N){ri.getRefType(N)==="range"&&(A=ri.getFromId(k,N),A&&A._shapeIndices.indexOf(r._index)===-1&&A._shapeIndices.push(r._index))}),u&&[0,1].forEach(function(N){let B=P[N];ri.getRefType(B)==="range"?(A=ri.getFromId(k,B),S=_2.shapePositionToRange(A),D=_2.rangeToShapePosition(A),(A.type==="category"||A.type==="multicategory")&&a(w+N+"shift")):S=D=Mf.identity;let O=w+N,Y=e[O];if(e[O]=S(e[O],!0),M==="pixel"?a(O,p[N]):ri.coercePosition(r,k,a,B,O,h[N]),r[O]=D(r[O]),e[O]=Y,N===0&&M==="pixel"){let G=e[x];e[x]=S(e[x],!0),ri.coercePosition(r,k,a,B,x,.25),r[x]=D(r[x]),e[x]=G}});else{if(ri.getRefType(P)==="range"?(A=ri.getFromId(k,P),A._shapeIndices.push(r._index),D=_2.rangeToShapePosition(A),S=_2.shapePositionToRange(A),u&&(A.type==="category"||A.type==="multicategory")&&(a(w+"0shift"),a(w+"1shift"))):S=D=Mf.identity,u){let B=w+"0",H=w+"1",O=e[B],Y=e[H];e[B]=S(e[B],!0),e[H]=S(e[H],!0),M==="pixel"?(a(B,p[0]),a(H,p[1])):(ri.coercePosition(r,k,a,P,B,h[0]),ri.coercePosition(r,k,a,P,H,h[1])),r[B]=D(r[B]),r[H]=D(r[H]),e[B]=O,e[H]=Y}if(M==="pixel"){let B=e[x];e[x]=S(e[x],!0),ri.coercePosition(r,k,a,P,x,.25),r[x]=D(r[x]),e[x]=B}}}),u&&Mf.noneOrAll(e,r,["x0","x1","y0","y1"]);var y=s==="line",m,b;if(u&&(m=a("label.texttemplate"),a("label.texttemplatefallback")),m||(b=a("label.text")),b||m){a("label.textangle");var _=a("label.textposition",y?"middle":"middle center");a("label.xanchor"),a("label.yanchor",Vge(y,_)),a("label.padding"),Mf.coerceFont(a,"label.font",t.font)}}});var BB=U((zLe,IB)=>{"use strict";var Wge=kr(),NB=ke();function Zge(e,r){return e?"bottom":r.indexOf("top")!==-1?"top":r.indexOf("bottom")!==-1?"bottom":"middle"}IB.exports=function(r,t,a){a("newshape.visible"),a("newshape.name"),a("newshape.showlegend"),a("newshape.legend"),a("newshape.legendwidth"),a("newshape.legendgroup"),a("newshape.legendgrouptitle.text"),NB.coerceFont(a,"newshape.legendgrouptitle.font"),a("newshape.legendrank"),a("newshape.drawdirection"),a("newshape.layer"),a("newshape.fillcolor"),a("newshape.fillrule"),a("newshape.opacity");var n=a("newshape.line.width");if(n){var i=(r||{}).plot_bgcolor||"#FFF";a("newshape.line.color",Wge.contrast(i)),a("newshape.line.dash")}var l=r.dragmode==="drawline",o=a("newshape.label.text"),s=a("newshape.label.texttemplate");if(a("newshape.label.texttemplatefallback"),o||s){a("newshape.label.textangle");var u=a("newshape.label.textposition",l?"middle":"middle center");a("newshape.label.xanchor"),a("newshape.label.yanchor",Zge(l,u)),a("newshape.label.padding"),NB.coerceFont(a,"newshape.label.font",t.font)}a("activeshape.fillcolor"),a("activeshape.opacity")}});var XB=U((FLe,VB)=>{"use strict";var F6=ke(),Li=Kr(),Sl=(Dv(),Fe(qv)),N6=Oo();VB.exports=function(r){var t=r._fullLayout,a=F6.filterVisible(t.shapes);if(!(!a.length||!r._fullData.length))for(var n=0;n{l=Li.getFromId(r,c),i._extremes[l._id]=Li.findExtremes(l,v,OB(i))})}else i.xref!=="paper"&&s!=="domain"&&(l=Li.getFromId(r,i.xref),o=GB(l,i,Sl.paramIsX),o&&(i._extremes[l._id]=Li.findExtremes(l,o,OB(i))));if(u==="array"){let f=HB(r,i,"y");Object.entries(f).forEach(([c,v])=>{l=Li.getFromId(r,c),i._extremes[l._id]=Li.findExtremes(l,v,YB(i))})}else i.yref!=="paper"&&u!=="domain"&&(l=Li.getFromId(r,i.yref),o=GB(l,i,Sl.paramIsY),o&&(i._extremes[l._id]=Li.findExtremes(l,o,YB(i))))}};function HB(e,r,t){let a=r[t+"ref"],n=t==="x"?Sl.paramIsX:Sl.paramIsY;function i(c,v){c==="paper"||Li.getRefType(c)==="domain"||(l[c]||(l[c]=[]),l[c].push(v))}let l={};if(r.type==="path"&&r.path){let c=r.path.match(Sl.segmentRE)||[];for(var o=0,s=0;sp&&(i(a[o],y[p]),o++)}}else i(a[0],r[t+"0"]),i(a[1],r[t+"1"]);let u={};for(let c in l){let v=Li.getFromId(e,c);if(v){var f=v.type==="category"||v.type==="multicategory"?v.r2c:v.d2c;v.type==="date"&&(f=N6.decodeDate(f)),u[v._id]=l[c].map(f)}}return u}function OB(e){return UB(e.line.width,e.xsizemode,e.x0,e.x1,e.path,!1)}function YB(e){return UB(e.line.width,e.ysizemode,e.y0,e.y1,e.path,!0)}function UB(e,r,t,a,n,i){var l=e/2,o=i;if(r==="pixel"){var s=n?N6.extractPathCoords(n,i?Sl.paramIsY:Sl.paramIsX):[t,a],u=F6.aggNums(Math.max,null,s),f=F6.aggNums(Math.min,null,s),c=f<0?Math.abs(f)+l:l,v=u>0?u+l:l;return{ppad:l,ppadplus:o?c:v,ppadminus:o?v:c}}else return{ppad:l}}function GB(e,r,t){var a=e._id.charAt(0)==="x"?"x":"y",n=e.type==="category"||e.type==="multicategory",i,l,o=0,s=0,u=n?e.r2c:e.d2c,f=r[a+"sizemode"]==="scaled";if(f?(i=r[a+"0"],l=r[a+"1"],n&&(o=r[a+"0shift"],s=r[a+"1shift"])):(i=r[a+"anchor"],l=r[a+"anchor"]),i!==void 0)return[u(i)+o,u(l)+s];if(r.path){var c=1/0,v=-1/0,h=r.path.match(Sl.segmentRE),p,y,m,b,_;for(e.type==="date"&&(u=N6.decodeDate(u)),p=0;pv&&(v=_)));if(v>=c)return[c,v]}}});var JB=U((NLe,ZB)=>{"use strict";var WB=np();ZB.exports={moduleType:"component",name:"shapes",layoutAttributes:z6(),supplyLayoutDefaults:FB(),supplyDrawNewShapeDefaults:BB(),includeBasePlot:Qv()("shapes"),calcAutorange:XB(),draw:WB.draw,drawOne:WB.drawOne}});var I6=U((BLe,KB)=>{"use strict";var $B=(Ta(),Fe(wa)),Jge=ht().templatedArray,ILe=(Kv(),Fe($v));KB.exports=Jge("image",{visible:{valType:"boolean",dflt:!0,editType:"arraydraw"},source:{valType:"string",editType:"arraydraw"},layer:{valType:"enumerated",values:["below","above"],dflt:"above",editType:"arraydraw"},sizex:{valType:"number",dflt:0,editType:"arraydraw"},sizey:{valType:"number",dflt:0,editType:"arraydraw"},sizing:{valType:"enumerated",values:["fill","contain","stretch"],dflt:"contain",editType:"arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},x:{valType:"any",dflt:0,editType:"arraydraw"},y:{valType:"any",dflt:0,editType:"arraydraw"},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left",editType:"arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],dflt:"top",editType:"arraydraw"},xref:{valType:"enumerated",values:["paper",$B.idRegex.x.toString()],dflt:"paper",editType:"arraydraw"},yref:{valType:"enumerated",values:["paper",$B.idRegex.y.toString()],dflt:"paper",editType:"arraydraw"},editType:"arraydraw"})});var QB=U((HLe,jB)=>{"use strict";var $ge=ke(),B6=Kr(),Kge=di(),jge=I6(),Qge="images";jB.exports=function(r,t){var a={name:Qge,handleItemDefaults:e3e};Kge(r,t,a)};function e3e(e,r,t){function a(v,h){return $ge.coerce(e,r,jge,v,h)}var n=a("source"),i=a("visible",!!n);if(!i)return r;a("layer"),a("xanchor"),a("yanchor"),a("sizex"),a("sizey"),a("sizing"),a("opacity");for(var l={_fullLayout:t},o=["x","y"],s=0;s<2;s++){var u=o[s],f=B6.coerceRef(e,r,l,u,"paper",void 0);if(f!=="paper"){var c=B6.getFromId(l,f);c._imgIndices.push(r._index)}B6.coercePosition(r,l,a,f,u,0)}return r}});var aH=U((OLe,tH)=>{"use strict";var eH=Er(),r3e=Zr(),Af=Kr(),rH=oa(),t3e=(Us(),Fe(Gs));tH.exports=function(r){var t=r._fullLayout,a=[],n={},i=[],l,o;for(o=0;o{"use strict";var nH=Gr(),a3e=Od();iH.exports=function(r,t,a,n){t=t||{};var i=a==="log"&&t.type==="linear",l=a==="linear"&&t.type==="log";if(i||l){for(var o=r._fullLayout.images,s=t._id.charAt(0),u,f,c=0;c{"use strict";oH.exports={moduleType:"component",name:"images",layoutAttributes:I6(),supplyLayoutDefaults:QB(),includeBasePlot:Qv()("images"),draw:aH(),convertCoords:lH()}});var xm={};vt(xm,{activeColor:()=>L3e,arrowOffsetX:()=>A3e,arrowPadX:()=>b3e,arrowSymbol:()=>q3e,autoMarginIdRoot:()=>p3e,blankHeaderOpts:()=>m3e,buttonClassName:()=>c3e,containerClassName:()=>i3e,dropdownButtonClassName:()=>f3e,dropdownButtonGroupClassName:()=>u3e,gapButton:()=>C3e,gapButtonHeader:()=>k3e,headerArrowClassName:()=>s3e,headerClassName:()=>o3e,headerGroupClassName:()=>l3e,hoverColor:()=>S3e,itemRectClassName:()=>v3e,itemTextClassName:()=>d3e,menuIndexAttrName:()=>h3e,minHeight:()=>g3e,minWidth:()=>y3e,name:()=>n3e,rx:()=>_3e,ry:()=>w3e,textOffsetX:()=>T3e,textOffsetY:()=>M3e,textPadX:()=>x3e});var n3e,i3e,l3e,o3e,s3e,u3e,f3e,c3e,v3e,d3e,h3e,p3e,m3e,y3e,g3e,x3e,b3e,_3e,w3e,T3e,M3e,A3e,k3e,C3e,L3e,S3e,q3e,bm=Lr(()=>{"use strict";n3e="updatemenus",i3e="updatemenu-container",l3e="updatemenu-header-group",o3e="updatemenu-header",s3e="updatemenu-header-arrow",u3e="updatemenu-dropdown-button-group",f3e="updatemenu-dropdown-button",c3e="updatemenu-button",v3e="updatemenu-item-rect",d3e="updatemenu-item-text",h3e="updatemenu-active-index",p3e="updatemenu-",m3e={label:" "},y3e=30,g3e=30,x3e=24,b3e=16,_3e=2,w3e=2,T3e=12,M3e=3,A3e=4,k3e=5,C3e=2,L3e="#F4FAFF",S3e="#F4FAFF",q3e={left:"\u25C4",right:"\u25BA",up:"\u25B2",down:"\u25BC"}});var H6=U((ULe,fH)=>{"use strict";var D3e=xa(),P3e=ui(),E3e=At().extendFlat,R3e=Ii().overrideAll,z3e=_h(),uH=ht().templatedArray,F3e=uH("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}});fH.exports=R3e(uH("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:F3e,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:E3e(z3e({editType:"arraydraw"}),{}),font:D3e({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:P3e.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")});var hH=U((VLe,dH)=>{"use strict";var _m=ke(),cH=di(),vH=H6(),N3e=(bm(),Fe(xm)),I3e=N3e.name,B3e=vH.buttons;dH.exports=function(r,t){var a={name:I3e,handleItemDefaults:H3e};cH(r,t,a)};function H3e(e,r,t){function a(l,o){return _m.coerce(e,r,vH,l,o)}var n=cH(e,r,{name:"buttons",handleItemDefaults:O3e}),i=a("visible",n.length>0);i&&(a("active"),a("direction"),a("type"),a("showactive"),a("x"),a("y"),_m.noneOrAll(e,r,["x","y"]),a("xanchor"),a("yanchor"),a("pad.t"),a("pad.r"),a("pad.b"),a("pad.l"),_m.coerceFont(a,"font",t.font),a("bgcolor",t.paper_bgcolor),a("bordercolor"),a("borderwidth"))}function O3e(e,r){function t(n,i){return _m.coerce(e,r,B3e,n,i)}var a=t("visible",e.method==="skip"||Array.isArray(e.args));a&&(t("method"),t("args"),t("args2"),t("label"),t("execute"))}});var yH=U((XLe,mH)=>{"use strict";mH.exports=Ft;var el=Er(),pH=kr(),kf=Zr(),wm=ke();function Ft(e,r,t){this.gd=e,this.container=r,this.id=t,this.position=null,this.translateX=null,this.translateY=null,this.hbar=null,this.vbar=null,this.bg=this.container.selectAll("rect.scrollbox-bg").data([0]),this.bg.exit().on(".drag",null).on("wheel",null).remove(),this.bg.enter().append("rect").classed("scrollbox-bg",!0).style("pointer-events","all").attr({opacity:0,x:0,y:0,width:0,height:0})}Ft.barWidth=2;Ft.barLength=20;Ft.barRadius=2;Ft.barPad=1;Ft.barColor="#808BA4";Ft.prototype.enable=function(r,t,a){var n=this.gd._fullLayout,i=n.width,l=n.height;this.position=r;var o=this.position.l,s=this.position.w,u=this.position.t,f=this.position.h,c=this.position.direction,v=c==="down",h=c==="left",p=c==="right",y=c==="up",m=s,b=f,_,w,x,M;!v&&!h&&!p&&!y&&(this.position.direction="down",v=!0);var k=v||y;k?(_=o,w=_+m,v?(x=u,M=Math.min(x+b,l),b=M-x):(M=u+b,x=Math.max(M-b,0),b=M-x)):(x=u,M=x+b,h?(w=o+m,_=Math.max(w-m,0),m=w-_):(_=o,w=Math.min(_+m,i),m=w-_)),this._box={l:_,t:x,w:m,h:b};var A=s>m,S=Ft.barLength+2*Ft.barPad,D=Ft.barWidth+2*Ft.barPad,P=o,R=u+f;R+D>l&&(R=l-D);var F=this.container.selectAll("rect.scrollbar-horizontal").data(A?[0]:[]);F.exit().on(".drag",null).remove(),F.enter().append("rect").classed("scrollbar-horizontal",!0).call(pH.fill,Ft.barColor),A?(this.hbar=F.attr({rx:Ft.barRadius,ry:Ft.barRadius,x:P,y:R,width:S,height:D}),this._hbarXMin=P+S/2,this._hbarTranslateMax=m-S):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var N=f>b,B=Ft.barWidth+2*Ft.barPad,H=Ft.barLength+2*Ft.barPad,O=o+s,Y=u;O+B>i&&(O=i-B);var G=this.container.selectAll("rect.scrollbar-vertical").data(N?[0]:[]);G.exit().on(".drag",null).remove(),G.enter().append("rect").classed("scrollbar-vertical",!0).call(pH.fill,Ft.barColor),N?(this.vbar=G.attr({rx:Ft.barRadius,ry:Ft.barRadius,x:O,y:Y,width:B,height:H}),this._vbarYMin=Y+H/2,this._vbarTranslateMax=b-H):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var V=this.id,W=_-.5,X=N?w+B+.5:w+.5,$=x-.5,te=A?M+D+.5:M+.5,ie=n._topdefs.selectAll("#"+V).data(A||N?[0]:[]);if(ie.exit().remove(),ie.enter().append("clipPath").attr("id",V).append("rect"),A||N?(this._clipRect=ie.select("rect").attr({x:Math.floor(W),y:Math.floor($),width:Math.ceil(X)-Math.floor(W),height:Math.ceil(te)-Math.floor($)}),this.container.call(kf.setClipUrl,V,this.gd),this.bg.attr({x:o,y:u,width:s,height:f})):(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(kf.setClipUrl,null),delete this._clipRect),A||N){var ve=el.behavior.drag().on("dragstart",function(){el.event.sourceEvent.preventDefault()}).on("drag",this._onBoxDrag.bind(this));this.container.on("wheel",null).on("wheel",this._onBoxWheel.bind(this)).on(".drag",null).call(ve);var K=el.behavior.drag().on("dragstart",function(){el.event.sourceEvent.preventDefault(),el.event.sourceEvent.stopPropagation()}).on("drag",this._onBarDrag.bind(this));A&&this.hbar.on(".drag",null).call(K),N&&this.vbar.on(".drag",null).call(K)}this.setTranslate(t,a)};Ft.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(kf.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)};Ft.prototype._onBoxDrag=function(){var r=this.translateX,t=this.translateY;this.hbar&&(r-=el.event.dx),this.vbar&&(t-=el.event.dy),this.setTranslate(r,t)};Ft.prototype._onBoxWheel=function(){var r=this.translateX,t=this.translateY;this.hbar&&(r+=el.event.deltaY),this.vbar&&(t+=el.event.deltaY),this.setTranslate(r,t)};Ft.prototype._onBarDrag=function(){var r=this.translateX,t=this.translateY;if(this.hbar){var a=r+this._hbarXMin,n=a+this._hbarTranslateMax,i=wm.constrain(el.event.x,a,n),l=(i-a)/(n-a),o=this.position.w-this._box.w;r=l*o}if(this.vbar){var s=t+this._vbarYMin,u=s+this._vbarTranslateMax,f=wm.constrain(el.event.y,s,u),c=(f-s)/(u-s),v=this.position.h-this._box.h;t=c*v}this.setTranslate(r,t)};Ft.prototype.setTranslate=function(r,t){var a=this.position.w-this._box.w,n=this.position.h-this._box.h;if(r=wm.constrain(r||0,0,a),t=wm.constrain(t||0,0,n),this.translateX=r,this.translateY=t,this.container.call(kf.setTranslate,this._box.l-this.position.l-r,this._box.t-this.position.t-t),this._clipRect&&this._clipRect.attr({x:Math.floor(this.position.l+r-.5),y:Math.floor(this.position.t+t-.5)}),this.hbar){var i=r/a;this.hbar.call(kf.setTranslate,r+i*this._hbarTranslateMax,t)}if(this.vbar){var l=t/n;this.vbar.call(kf.setTranslate,r,t+l*this._vbarTranslateMax)}}});var CH=U((WLe,kH)=>{"use strict";var Cf=Er(),w2=Xt(),T2=kr(),Lf=Zr(),ti=ke(),Tm=ma(),Y3e=ht().arrayEditor,xH=(Ha(),Fe(Ba)).LINE_SPACING,Sr=(bm(),Fe(xm)),G3e=yH();kH.exports=function(r){var t=r._fullLayout,a=ti.filterVisible(t[Sr.name]);function n(v){w2.autoMargin(r,MH(v))}var i=t._menulayer.selectAll("g."+Sr.containerClassName).data(a.length>0?[0]:[]);if(i.enter().append("g").classed(Sr.containerClassName,!0).style("cursor","pointer"),i.exit().each(function(){Cf.select(this).selectAll("g."+Sr.headerGroupClassName).each(n)}).remove(),a.length!==0){var l=i.selectAll("g."+Sr.headerGroupClassName).data(a,U3e);l.enter().append("g").classed(Sr.headerGroupClassName,!0);for(var o=ti.ensureSingle(i,"g",Sr.dropdownButtonGroupClassName,function(v){v.style("pointer-events","all")}),s=0;s{"use strict";var K3e=(bm(),Fe(xm));LH.exports={moduleType:"component",name:K3e.name,layoutAttributes:H6(),supplyLayoutDefaults:hH(),draw:CH()}});var A2={};vt(A2,{arrowOffsetX:()=>y5e,autoMarginIdRoot:()=>d5e,containerClassName:()=>Q3e,currentValueClass:()=>f5e,currentValueInset:()=>U5e,currentValuePadding:()=>G5e,gripBgActiveColor:()=>E5e,gripBgColor:()=>P5e,gripBorder:()=>S5e,gripBorderColor:()=>D5e,gripBorderWidth:()=>q5e,gripHeight:()=>L5e,gripRadius:()=>k5e,gripRectClass:()=>n5e,gripWidth:()=>C5e,groupClassName:()=>e5e,inputAreaClass:()=>r5e,inputProxyClass:()=>l5e,labelClass:()=>u5e,labelGroupClass:()=>s5e,labelOffset:()=>z5e,labelPadding:()=>R5e,labelsClass:()=>o5e,menuIndexAttrName:()=>v5e,minHeight:()=>p5e,minWidth:()=>h5e,minorTickColor:()=>O5e,minorTickLength:()=>Y5e,minorTickOffset:()=>H5e,name:()=>j3e,railBgColor:()=>T5e,railBorder:()=>b5e,railBorderColor:()=>w5e,railBorderWidth:()=>_5e,railHeight:()=>c5e,railInset:()=>M5e,railRadius:()=>g5e,railRectClass:()=>t5e,railTouchRectClass:()=>a5e,railWidth:()=>x5e,stepInset:()=>A5e,textPadX:()=>m5e,tickColor:()=>N5e,tickLength:()=>B5e,tickOffset:()=>I5e,tickRectClass:()=>i5e,tickWidth:()=>F5e});var j3e,Q3e,e5e,r5e,t5e,a5e,n5e,i5e,l5e,o5e,s5e,u5e,f5e,c5e,v5e,d5e,h5e,p5e,m5e,y5e,g5e,x5e,b5e,_5e,w5e,T5e,M5e,A5e,k5e,C5e,L5e,S5e,q5e,D5e,P5e,E5e,R5e,z5e,F5e,N5e,I5e,B5e,H5e,O5e,Y5e,G5e,U5e,k2=Lr(()=>{"use strict";j3e="sliders",Q3e="slider-container",e5e="slider-group",r5e="slider-input-area",t5e="slider-rail-rect",a5e="slider-rail-touch-rect",n5e="slider-grip-rect",i5e="slider-tick-rect",l5e="slider-input-proxy",o5e="slider-labels",s5e="slider-label-group",u5e="slider-label",f5e="slider-current-value",c5e=5,v5e="slider-active-index",d5e="slider-",h5e=30,p5e=30,m5e=40,y5e=4,g5e=2,x5e=5,b5e=4,_5e=1,w5e="#bec8d9",T5e="#f8fafc",M5e=8,A5e=10,k5e=10,C5e=20,L5e=20,S5e=20,q5e=1,D5e="#bec8d9",P5e="#f6f8fa",E5e="#dbdde0",R5e=8,z5e=0,F5e=1,N5e="#333",I5e=25,B5e=7,H5e=25,O5e="#333",Y5e=4,G5e=8,U5e=0});var U6=U((JLe,PH)=>{"use strict";var qH=xa(),V5e=_h(),X5e=At().extendDeepAll,W5e=Ii().overrideAll,Z5e=$c(),DH=ht().templatedArray,Mu=(k2(),Fe(A2)),J5e=DH("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}});PH.exports=W5e(DH("slider",{visible:{valType:"boolean",dflt:!0},active:{valType:"number",min:0,dflt:0},steps:J5e,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:X5e(V5e({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:Z5e.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:qH({})},font:qH({}),activebgcolor:{valType:"color",dflt:Mu.gripBgActiveColor},bgcolor:{valType:"color",dflt:Mu.railBgColor},bordercolor:{valType:"color",dflt:Mu.railBorderColor},borderwidth:{valType:"number",min:0,dflt:Mu.railBorderWidth},ticklen:{valType:"number",min:0,dflt:Mu.tickLength},tickcolor:{valType:"color",dflt:Mu.tickColor},tickwidth:{valType:"number",min:0,dflt:1},minorticklen:{valType:"number",min:0,dflt:Mu.minorTickLength}}),"arraydraw","from-root")});var FH=U(($Le,zH)=>{"use strict";var Sf=ke(),EH=di(),RH=U6(),$5e=(k2(),Fe(A2)),K5e=$5e.name,j5e=RH.steps;zH.exports=function(r,t){EH(r,t,{name:K5e,handleItemDefaults:Q5e})};function Q5e(e,r,t){function a(c,v){return Sf.coerce(e,r,RH,c,v)}for(var n=EH(e,r,{name:"steps",handleItemDefaults:exe}),i=0,l=0;l{"use strict";var rl=Er(),Mm=Xt(),Zo=kr(),tl=Zr(),ai=ke(),rxe=ai.strTranslate,C2=ma(),txe=ht().arrayEditor,Hr=(k2(),Fe(A2)),W6=(Ha(),Fe(Ba)),BH=W6.LINE_SPACING,V6=W6.FROM_TL,X6=W6.FROM_BR;VH.exports=function(r){var t=r._context.staticPlot,a=r._fullLayout,n=axe(a,r),i=a._infolayer.selectAll("g."+Hr.containerClassName).data(n.length>0?[0]:[]);i.enter().append("g").classed(Hr.containerClassName,!0).style("cursor",t?null:"ew-resize");function l(f){f._commandObserver&&(f._commandObserver.remove(),delete f._commandObserver),Mm.autoMargin(r,HH(f))}if(i.exit().each(function(){rl.select(this).selectAll("g."+Hr.groupClassName).each(l)}).remove(),n.length!==0){var o=i.selectAll("g."+Hr.groupClassName).data(n,nxe);o.enter().append("g").classed(Hr.groupClassName,!0),o.exit().each(l).remove();for(var s=0;s0&&(o=o.transition().duration(r.transition.duration).ease(r.transition.easing)),o.attr("transform",rxe(l-Hr.gripWidth*.5,r._dims.currentValueTotalHeight))}}function Z6(e,r){var t=e._dims;return t.inputAreaStart+Hr.stepInset+(t.inputAreaLength-2*Hr.stepInset)*Math.min(1,Math.max(0,r))}function IH(e,r){var t=e._dims;return Math.min(1,Math.max(0,(r-Hr.stepInset-t.inputAreaStart)/(t.inputAreaLength-2*Hr.stepInset-2*t.inputAreaStart)))}function cxe(e,r,t){var a=t._dims,n=ai.ensureSingle(e,"rect",Hr.railTouchRectClass,function(i){i.call(GH,r,e,t).style("pointer-events","all")});n.attr({width:a.inputAreaLength,height:Math.max(a.inputAreaWidth,Hr.tickOffset+t.ticklen+a.labelHeight)}).call(Zo.fill,t.bgcolor).attr("opacity",0),tl.setTranslate(n,0,a.currentValueTotalHeight)}function vxe(e,r){var t=r._dims,a=t.inputAreaLength-Hr.railInset*2,n=ai.ensureSingle(e,"rect",Hr.railRectClass);n.attr({width:a,height:Hr.railWidth,rx:Hr.railRadius,ry:Hr.railRadius,"shape-rendering":"crispEdges"}).call(Zo.stroke,r.bordercolor).call(Zo.fill,r.bgcolor).style("stroke-width",r.borderwidth+"px"),tl.setTranslate(n,Hr.railInset,(t.inputAreaWidth-Hr.railWidth)*.5+t.currentValueTotalHeight)}});var ZH=U((jLe,WH)=>{"use strict";var dxe=(k2(),Fe(A2));WH.exports={moduleType:"component",name:dxe.name,layoutAttributes:U6(),supplyLayoutDefaults:FH(),draw:XH()}});var km=U((QLe,$H)=>{"use strict";var JH=ui();$H.exports={bgcolor:{valType:"color",dflt:JH.background,editType:"plot"},bordercolor:{valType:"color",dflt:JH.defaultLine,editType:"plot"},borderwidth:{valType:"integer",dflt:0,min:0,editType:"plot"},autorange:{valType:"boolean",dflt:!0,editType:"calc",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},range:{valType:"info_array",items:[{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}},{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}}],editType:"calc",impliedEdits:{autorange:!1}},thickness:{valType:"number",dflt:.15,min:0,max:1,editType:"plot"},visible:{valType:"boolean",dflt:!0,editType:"calc"},editType:"calc"}});var J6=U((eSe,KH)=>{"use strict";KH.exports={_isSubplotObj:!0,rangemode:{valType:"enumerated",values:["auto","fixed","match"],dflt:"match",editType:"calc"},range:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},editType:"calc"}});var Cm={};vt(Cm,{bgClassName:()=>mxe,containerClassName:()=>pxe,extraPad:()=>Bxe,grabAreaCursor:()=>Rxe,grabAreaFill:()=>Exe,grabAreaMaxClassName:()=>Axe,grabAreaMinClassName:()=>wxe,grabAreaWidth:()=>zxe,grabberMaxClassName:()=>Mxe,grabberMinClassName:()=>_xe,handleMaxClassName:()=>kxe,handleMinClassName:()=>Txe,handleRadius:()=>Nxe,handleStrokeWidth:()=>Ixe,handleWidth:()=>Fxe,maskColor:()=>Sxe,maskMaxClassName:()=>xxe,maskMaxOppAxisClassName:()=>Lxe,maskMinClassName:()=>gxe,maskMinOppAxisClassName:()=>Cxe,maskOppAxisColor:()=>qxe,name:()=>hxe,rangePlotClassName:()=>yxe,slideBoxClassName:()=>bxe,slideBoxCursor:()=>Pxe,slideBoxFill:()=>Dxe});var hxe,pxe,mxe,yxe,gxe,xxe,bxe,_xe,wxe,Txe,Mxe,Axe,kxe,Cxe,Lxe,Sxe,qxe,Dxe,Pxe,Exe,Rxe,zxe,Fxe,Nxe,Ixe,Bxe,Lm=Lr(()=>{"use strict";hxe="rangeslider",pxe="rangeslider-container",mxe="rangeslider-bg",yxe="rangeslider-rangeplot",gxe="rangeslider-mask-min",xxe="rangeslider-mask-max",bxe="rangeslider-slidebox",_xe="rangeslider-grabber-min",wxe="rangeslider-grabarea-min",Txe="rangeslider-handle-min",Mxe="rangeslider-grabber-max",Axe="rangeslider-grabarea-max",kxe="rangeslider-handle-max",Cxe="rangeslider-mask-min-opp-axis",Lxe="rangeslider-mask-max-opp-axis",Sxe="rgba(0,0,0,0.4)",qxe="rgba(0,0,0,0.2)",Dxe="transparent",Pxe="ew-resize",Exe="transparent",Rxe="col-resize",zxe=10,Fxe=4,Nxe=1,Ixe=1,Bxe=15});var eO=U(qm=>{"use strict";var Hxe=oa(),Oxe=ma(),jH=(Lm(),Fe(Cm)),Yxe=(Ha(),Fe(Ba)).LINE_SPACING,Sm=jH.name;function QH(e){var r=e&&e[Sm];return r&&r.visible}qm.isVisible=QH;qm.makeData=function(e){for(var r=Hxe.list({_fullLayout:e},"x",!0),t=e.margin,a=[],n=0;n{"use strict";var Dm=ke(),rO=ht(),tO=oa(),Gxe=km(),Uxe=J6();aO.exports=function(r,t,a){var n=r[a],i=t[a];if(!(n.rangeslider||t._requestRangeslider[i._id]))return;Dm.isPlainObject(n.rangeslider)||(n.rangeslider={});var l=n.rangeslider,o=rO.newContainer(i,"rangeslider");function s(M,k){return Dm.coerce(l,o,Gxe,M,k)}var u,f;function c(M,k){return Dm.coerce(u,f,Uxe,M,k)}var v=s("visible");if(v){s("bgcolor",t.plot_bgcolor),s("bordercolor"),s("borderwidth"),s("thickness"),s("autorange",!i.isValidRange(l.range)),s("range");var h=t._subplots;if(h)for(var p=h.cartesian.filter(function(M){return M.slice(0,Math.max(0,M.indexOf("y")))===tO.name2id(a)}).map(function(M){return M.slice(M.indexOf("y"),M.length)}),y=Dm.simpleMap(p,tO.id2name),m=0;m{"use strict";var Vxe=oa().list,Xxe=pv().getAutoRange,Wxe=(Lm(),Fe(Cm));iO.exports=function(r){for(var t=Vxe(r,"x",!0),a=0;a{"use strict";var Pm=Er(),Zxe=Ar(),Jxe=Xt(),Zt=ke(),Em=Zt.strTranslate,sO=Zr(),Jo=kr(),$xe=dv(),Kxe=Kl(),$6=oa(),jxe=Xi(),Qxe=Fo(),Vr=(Lm(),Fe(Cm));uO.exports=function(e){for(var r=e._fullLayout,t=r._rangeSliderData,a=0;a=G.max)O=R[Y+1];else if(H=G.pmax)O=R[Y+1];else if(H0?e.touches[0].clientX:0}function ebe(e,r,t,a){if(r._context.staticPlot)return;var n=e.select("rect."+Vr.slideBoxClassName).node(),i=e.select("rect."+Vr.grabAreaMinClassName).node(),l=e.select("rect."+Vr.grabAreaMaxClassName).node();function o(){var s=Pm.event,u=s.target,f=oO(s),c=f-e.node().getBoundingClientRect().left,v=a.d2p(t._rl[0]),h=a.d2p(t._rl[1]),p=jxe.coverSlip();this.addEventListener("touchmove",y),this.addEventListener("touchend",m),p.addEventListener("mousemove",y),p.addEventListener("mouseup",m);function y(b){var _=oO(b),w=+_-f,x,M,k;switch(u){case n:if(k="ew-resize",v+w>t._length||h+w<0)return;x=v+w,M=h+w;break;case i:if(k="col-resize",v+w>t._length)return;x=v+w,M=h;break;case l:if(k="col-resize",h+w<0)return;x=v,M=h+w;break;default:k="ew-resize",x=c,M=c+w;break}if(M{"use strict";var fbe=ke(),cbe=km(),vbe=J6(),K6=eO();cO.exports={moduleType:"component",name:"rangeslider",schema:{subplots:{xaxis:{rangeslider:fbe.extendFlat({},cbe,{yaxis:vbe})}}},layoutAttributes:km(),handleDefaults:nO(),calcAutorange:lO(),draw:fO(),isVisible:K6.isVisible,makeData:K6.makeData,autoMarginOpts:K6.autoMarginOpts}});var Rm=U((lSe,hO)=>{"use strict";var dbe=xa(),dO=ui(),hbe=ht().templatedArray,pbe=hbe("button",{visible:{valType:"boolean",dflt:!0,editType:"plot"},step:{valType:"enumerated",values:["month","year","day","hour","minute","second","all"],dflt:"month",editType:"plot"},stepmode:{valType:"enumerated",values:["backward","todate"],dflt:"backward",editType:"plot"},count:{valType:"number",min:0,dflt:1,editType:"plot"},label:{valType:"string",editType:"plot"},editType:"plot"});hO.exports={visible:{valType:"boolean",editType:"plot"},buttons:pbe,x:{valType:"number",min:-2,max:3,editType:"plot"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"plot"},y:{valType:"number",min:-2,max:3,editType:"plot"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"bottom",editType:"plot"},font:dbe({editType:"plot"}),bgcolor:{valType:"color",dflt:dO.lightLine,editType:"plot"},activecolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:dO.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"}});var j6={};vt(j6,{darkAmount:()=>_be,lightAmount:()=>bbe,minButtonWidth:()=>ybe,rx:()=>gbe,ry:()=>xbe,yPad:()=>mbe});var mbe,ybe,gbe,xbe,bbe,_be,Q6=Lr(()=>{"use strict";mbe=.02,ybe=30,gbe=3,xbe=3,bbe=25,_be=10});var yO=U((oSe,mO)=>{"use strict";var zm=ke(),wbe=kr(),Tbe=ht(),Mbe=di(),pO=Rm(),e_=(Q6(),Fe(j6));mO.exports=function(r,t,a,n,i){var l=r.rangeselector||{},o=Tbe.newContainer(t,"rangeselector");function s(h,p){return zm.coerce(l,o,pO,h,p)}var u=Mbe(l,o,{name:"buttons",handleItemDefaults:Abe,calendar:i}),f=s("visible",u.length>0);if(f){var c=kbe(t,a,n);s("x",c[0]),s("y",c[1]),zm.noneOrAll(r,t,["x","y"]),s("xanchor"),s("yanchor"),zm.coerceFont(s,"font",a.font);var v=s("bgcolor");s("activecolor",wbe.contrast(v,e_.lightAmount,e_.darkAmount)),s("bordercolor"),s("borderwidth")}};function Abe(e,r,t,a){var n=a.calendar;function i(s,u){return zm.coerce(e,r,pO.buttons,s,u)}var l=i("visible");if(l){var o=i("step");o!=="all"&&(n&&n!=="gregorian"&&(o==="month"||o==="year")?r.stepmode="backward":i("stepmode"),i("count")),i("label")}}function kbe(e,r,t){for(var a=t.filter(function(o){return r[o].anchor===e._id}),n=0,i=0;i{"use strict";var Cbe=Ag(),Lbe=ke().titleCase;gO.exports=function(r,t){var a=r._name,n={};if(t.step==="all")n[a+".autorange"]=!0;else{var i=Sbe(r,t);n[a+".range[0]"]=i[0],n[a+".range[1]"]=i[1]}return n};function Sbe(e,r){var t=e.range,a=new Date(e.r2l(t[1])),n=r.step,i=Cbe["utc"+Lbe(n)],l=r.count,o;switch(r.stepmode){case"backward":o=e.l2r(+i.offset(a,-l));break;case"todate":var s=i.offset(a,-l);o=e.l2r(+i.ceil(s));break}var u=t[1];return[o,u]}});var CO=U((uSe,kO)=>{"use strict";var Nm=Er(),qbe=Ar(),Dbe=Xt(),bO=kr(),AO=Zr(),Ql=ke(),_O=Ql.strTranslate,Fm=ma(),Pbe=oa(),a_=(Ha(),Fe(Ba)),wO=a_.LINE_SPACING,TO=a_.FROM_TL,MO=a_.FROM_BR,t_=(Q6(),Fe(j6)),Ebe=xO();kO.exports=function(r){var t=r._fullLayout,a=t._infolayer.selectAll(".rangeselector").data(Rbe(r),zbe);a.enter().append("g").classed("rangeselector",!0),a.exit().remove(),a.style({cursor:"pointer","pointer-events":"all"}),a.each(function(n){var i=Nm.select(this),l=n,o=l.rangeselector,s=i.selectAll("g.button").data(Ql.filterVisible(o.buttons));s.enter().append("g").classed("button",!0),s.exit().remove(),s.each(function(u){var f=Nm.select(this),c=Ebe(l,u);u._isActive=Fbe(l,u,c),f.call(r_,o,u),f.call(Ibe,o,u,r),f.on("click",function(){r._dragged||qbe.call("_guiRelayout",r,c)}),f.on("mouseover",function(){u._isHovered=!0,f.call(r_,o,u)}),f.on("mouseout",function(){u._isHovered=!1,f.call(r_,o,u)})}),Hbe(r,s,o,l._name,i)})};function Rbe(e){for(var r=Pbe.list(e,"x",!0),t=[],a=0;a{"use strict";LO.exports={moduleType:"component",name:"rangeselector",schema:{subplots:{xaxis:{rangeselector:Rm()}}},layoutAttributes:Rm(),handleDefaults:yO(),draw:CO()}});var $o=U(n_=>{"use strict";var qO=At().extendFlat;n_.attributes=function(e,r){e=e||{},r=r||{};var t={valType:"info_array",editType:e.editType,items:[{valType:"number",min:0,max:1,editType:e.editType},{valType:"number",min:0,max:1,editType:e.editType}],dflt:[0,1]},a=e.name?e.name+" ":"",n=e.trace?"trace":"subplot",i=r.description?" "+r.description:"",l={x:qO({},t,{}),y:qO({},t,{}),editType:e.editType};return e.noGridCell||(l.row={valType:"integer",min:0,dflt:0,editType:e.editType},l.column={valType:"integer",min:0,dflt:0,editType:e.editType}),l};n_.defaults=function(e,r,t,a){var n=a&&a.x||[0,1],i=a&&a.y||[0,1],l=r.grid;if(l){var o=t("domain.column");o!==void 0&&(o{"use strict";var Obe=ke(),Ybe=(w0(),Fe(Zc)).counter,Gbe=$o().attributes,DO=(Ta(),Fe(wa)).idRegex,Ube=ht(),i_={rows:{valType:"integer",min:1,editType:"plot"},roworder:{valType:"enumerated",values:["top to bottom","bottom to top"],dflt:"top to bottom",editType:"plot"},columns:{valType:"integer",min:1,editType:"plot"},subplots:{valType:"info_array",freeLength:!0,dimensions:2,items:{valType:"enumerated",values:[Ybe("xy").toString(),""],editType:"plot"},editType:"plot"},xaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[DO.x.toString(),""],editType:"plot"},editType:"plot"},yaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[DO.y.toString(),""],editType:"plot"},editType:"plot"},pattern:{valType:"enumerated",values:["independent","coupled"],dflt:"coupled",editType:"plot"},xgap:{valType:"number",min:0,max:1,editType:"plot"},ygap:{valType:"number",min:0,max:1,editType:"plot"},domain:Gbe({name:"grid",editType:"plot",noGridCell:!0},{}),xside:{valType:"enumerated",values:["bottom","bottom plot","top plot","top"],dflt:"bottom plot",editType:"plot"},yside:{valType:"enumerated",values:["left","left plot","right plot","right"],dflt:"left plot",editType:"plot"},editType:"plot"};function Im(e,r,t){var a=r[t+"axes"],n=Object.keys((e._splomAxes||{})[t]||{});if(Array.isArray(a))return a;if(n.length)return n}function Vbe(e,r){var t=e.grid||{},a=Im(r,t,"x"),n=Im(r,t,"y");if(!e.grid&&!a&&!n)return;var i=Array.isArray(t.subplots)&&Array.isArray(t.subplots[0]),l=Array.isArray(a),o=Array.isArray(n),s=l&&a!==t.xaxes&&o&&n!==t.yaxes,u,f;i?(u=t.subplots.length,f=t.subplots[0].length):(o&&(u=n.length),l&&(f=a.length));var c=Ube.newContainer(r,"grid");function v(k,A){return Obe.coerce(t,c,i_,k,A)}var h=v("rows",u),p=v("columns",f);if(!(h*p>1)){delete r.grid;return}if(!i&&!l&&!o){var y=v("pattern")==="independent";y&&(i=!0)}c._hasSubplotGrid=i;var m=v("roworder"),b=m==="top to bottom",_=i?.2:.1,w=i?.3:.1,x,M;s&&r._splomGridDflt&&(x=r._splomGridDflt.xside,M=r._splomGridDflt.yside),c._domains={x:PO("x",v,_,x,p),y:PO("y",v,w,M,h,b)}}function PO(e,r,t,a,n,i){var l=r(e+"gap",t),o=r("domain."+e);r(e+"side",a);for(var s=new Array(n),u=o[0],f=(o[1]-u)/(n-l),c=f*(1-l),v=0;v{"use strict";FO.exports={visible:{valType:"boolean",editType:"calc"},type:{valType:"enumerated",values:["percent","constant","sqrt","data"],editType:"calc"},symmetric:{valType:"boolean",editType:"calc"},array:{valType:"data_array",editType:"calc"},arrayminus:{valType:"data_array",editType:"calc"},value:{valType:"number",min:0,dflt:10,editType:"calc"},valueminus:{valType:"number",min:0,dflt:10,editType:"calc"},traceref:{valType:"integer",min:0,dflt:0,editType:"style"},tracerefminus:{valType:"integer",min:0,dflt:0,editType:"style"},copy_ystyle:{valType:"boolean",editType:"plot"},copy_zstyle:{valType:"boolean",editType:"style"},color:{valType:"color",editType:"style"},thickness:{valType:"number",min:0,dflt:2,editType:"style"},width:{valType:"number",min:0,editType:"plot"},editType:"calc"}});var BO=U((hSe,IO)=>{"use strict";var NO=Gr(),Wbe=Ar(),Zbe=ke(),Jbe=ht(),$be=l_();IO.exports=function(e,r,t,a){var n="error_"+a.axis,i=Jbe.newContainer(r,n),l=e[n]||{};function o(p,y){return Zbe.coerce(l,i,$be,p,y)}var s=l.array!==void 0||l.value!==void 0||l.type==="sqrt",u=o("visible",s);if(u!==!1){var f=o("type","array"in l?"data":"percent"),c=!0;f!=="sqrt"&&(c=o("symmetric",!((f==="data"?"arrayminus":"valueminus")in l))),f==="data"?(o("array"),o("traceref"),c||(o("arrayminus"),o("tracerefminus"))):(f==="percent"||f==="constant")&&(o("value"),c||o("valueminus"));var v="copy_"+a.inherit+"style";if(a.inherit){var h=r["error_"+a.inherit];(h||{}).visible&&o(v,!(l.color||NO(l.thickness)||NO(l.width)))}(!a.inherit||!i[v])&&(o("color",t),o("thickness"),o("width",Wbe.traceIs(r,"gl3d")?0:4))}}});var o_=U((pSe,OO)=>{"use strict";OO.exports=function(r){var t=r.type,a=r.symmetric;if(t==="data"){var n=r.array||[];if(a)return function(u,f){var c=+n[f];return[c,c]};var i=r.arrayminus||[];return function(u,f){var c=+n[f],v=+i[f];return!isNaN(c)||!isNaN(v)?[v||0,c||0]:[NaN,NaN]}}else{var l=HO(t,r.value),o=HO(t,r.valueminus);return a||r.valueminus===void 0?function(u){var f=l(u);return[f,f]}:function(u){return[o(u),l(u)]}}};function HO(e,r){if(e==="percent")return function(t){return Math.abs(t*r/100)};if(e==="constant")return function(){return Math.abs(r)};if(e==="sqrt")return function(t){return Math.sqrt(Math.abs(t))}}});var UO=U((mSe,GO)=>{"use strict";var s_=Gr(),Kbe=Ar(),u_=Kr(),jbe=ke(),Qbe=o_();GO.exports=function(r){for(var t=r.calcdata,a=0;a{"use strict";var VO=Er(),Ko=Gr(),e4e=Zr(),r4e=Xn();XO.exports=function(r,t,a,n){var i,l=a.xaxis,o=a.yaxis,s=n&&n.duration>0,u=r._context.staticPlot;t.each(function(f){var c=f[0].trace,v=c.error_x||{},h=c.error_y||{},p;c.ids&&(p=function(_){return _.id});var y=r4e.hasMarkers(c)&&c.marker.maxdisplayed>0;!h.visible&&!v.visible&&(f=[]);var m=VO.select(this).selectAll("g.errorbar").data(f,p);if(m.exit().remove(),!!f.length){v.visible||m.selectAll("path.xerror").remove(),h.visible||m.selectAll("path.yerror").remove(),m.style("opacity",1);var b=m.enter().append("g").classed("errorbar",!0);s&&b.style("opacity",0).transition().duration(n.duration).style("opacity",1),e4e.setClipUrl(m,a.layerClipId,r),m.each(function(_){var w=VO.select(this),x=t4e(_,l,o);if(!(y&&!_.vis)){var M,k=w.select("path.yerror");if(h.visible&&Ko(x.x)&&Ko(x.yh)&&Ko(x.ys)){var A=h.width;M="M"+(x.x-A)+","+x.yh+"h"+2*A+"m-"+A+",0V"+x.ys,x.noYS||(M+="m-"+A+",0h"+2*A),i=!k.size(),i?k=w.append("path").style("vector-effect",u?"none":"non-scaling-stroke").classed("yerror",!0):s&&(k=k.transition().duration(n.duration).ease(n.easing)),k.attr("d",M)}else k.remove();var S=w.select("path.xerror");if(v.visible&&Ko(x.y)&&Ko(x.xh)&&Ko(x.xs)){var D=(v.copy_ystyle?h:v).width;M="M"+x.xh+","+(x.y-D)+"v"+2*D+"m0,-"+D+"H"+x.xs,x.noXS||(M+="m0,-"+D+"v"+2*D),i=!S.size(),i?S=w.append("path").style("vector-effect",u?"none":"non-scaling-stroke").classed("xerror",!0):s&&(S=S.transition().duration(n.duration).ease(n.easing)),S.attr("d",M)}else S.remove()}})}})};function t4e(e,r,t){var a={x:r.c2p(e.x),y:t.c2p(e.y)};return e.yh!==void 0&&(a.yh=t.c2p(e.yh),a.ys=t.c2p(e.ys),Ko(a.ys)||(a.noYS=!0,a.ys=t.c2p(e.ys,!0))),e.xh!==void 0&&(a.xh=r.c2p(e.xh),a.xs=r.c2p(e.xs),Ko(a.xs)||(a.noXS=!0,a.xs=r.c2p(e.xs,!0))),a}});var $O=U((gSe,JO)=>{"use strict";var a4e=Er(),ZO=kr();JO.exports=function(r){r.each(function(t){var a=t[0].trace,n=a.error_y||{},i=a.error_x||{},l=a4e.select(this);l.selectAll("path.yerror").style("stroke-width",n.thickness+"px").call(ZO.stroke,n.color),i.copy_ystyle&&(i=n),l.selectAll("path.xerror").style("stroke-width",i.thickness+"px").call(ZO.stroke,i.color)})}});var QO=U((xSe,jO)=>{"use strict";var L2=ke(),KO=Ii().overrideAll,S2=l_(),Au={error_x:L2.extendFlat({},S2),error_y:L2.extendFlat({},S2)};delete Au.error_x.copy_zstyle;delete Au.error_y.copy_zstyle;delete Au.error_y.copy_ystyle;var q2={error_x:L2.extendFlat({},S2),error_y:L2.extendFlat({},S2),error_z:L2.extendFlat({},S2)};delete q2.error_x.copy_ystyle;delete q2.error_y.copy_ystyle;delete q2.error_z.copy_ystyle;delete q2.error_z.copy_zstyle;jO.exports={moduleType:"component",name:"errorbars",schema:{traces:{scatter:Au,bar:Au,histogram:Au,scatter3d:KO(q2,"calc","nested"),scattergl:KO(Au,"calc","nested")}},supplyDefaults:BO(),calc:UO(),makeComputeError:o_(),plot:WO(),style:$O(),hoverInfo:n4e};function n4e(e,r,t){(r.error_y||{}).visible&&(t.yerr=e.yh-e.y,r.error_y.symmetric||(t.yerrneg=e.y-e.ys)),(r.error_x||{}).visible&&(t.xerr=e.xh-e.x,r.error_x.symmetric||(t.xerrneg=e.x-e.xs))}});var eY={};vt(eY,{cn:()=>i4e});var i4e,rY=Lr(()=>{"use strict";i4e={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"}});var uY=U((bSe,sY)=>{"use strict";var jo=Er(),Hm=Xt(),tY=Ar(),eo=Kr(),Bm=Xi(),Si=ke(),nl=Si.strTranslate,oY=At().extendFlat,f_=Fo(),al=Zr(),qf=kr(),l4e=dv(),o4e=ma(),s4e=Un().flipScale,u4e=om(),f4e=um(),c4e=Vn(),v_=(Ha(),Fe(Ba)),aY=v_.LINE_SPACING,nY=v_.FROM_TL,iY=v_.FROM_BR,Rt=(rY(),Fe(eY)).cn;function v4e(e){var r=e._fullLayout,t=r._infolayer.selectAll("g."+Rt.colorbar).data(d4e(e),function(a){return a._id});t.enter().append("g").attr("class",function(a){return a._id}).classed(Rt.colorbar,!0),t.each(function(a){var n=jo.select(this);Si.ensureSingle(n,"rect",Rt.cbbg),Si.ensureSingle(n,"g",Rt.cbfills),Si.ensureSingle(n,"g",Rt.cblines),Si.ensureSingle(n,"g",Rt.cbaxis,function(l){l.classed(Rt.crisp,!0)}),Si.ensureSingle(n,"g",Rt.cbtitleunshift,function(l){l.append("g").classed(Rt.cbtitle,!0)}),Si.ensureSingle(n,"rect",Rt.cboutline);var i=h4e(n,a,e);i&&i.then&&(e._promises||[]).push(i),e._context.edits.colorbarPosition&&p4e(n,a,e)}),t.exit().each(function(a){Hm.autoMargin(e,a._id)}).remove(),t.order()}function d4e(e){var r=e._fullLayout,t=e.calcdata,a=[],n,i,l,o;function s(w){return oY(w,{_fillcolor:null,_line:{color:null,width:null,dash:null},_levels:{start:null,end:null,size:null},_filllevels:null,_fillgradient:null,_zrange:null})}function u(){typeof o.calc=="function"?o.calc(e,l,n):(n._fillgradient=i.reversescale?s4e(i.colorscale):i.colorscale,n._zrange=[i[o.min],i[o.max]])}for(var f=0;f[Math.min(e[0]+r,e[1]),e[1]],lY=(e,r)=>[e[0],Math.max(e[1]-r,e[0])];function h4e(e,r,t){var a=r.orientation==="v",n=r.len,i=r.lenmode,l=r.thickness,o=r.thicknessmode,s=r.outlinewidth,u=r.borderwidth,f=r.bgcolor,c=r.xanchor,v=r.yanchor,h=r.xpad,p=r.ypad,y=r.x,m=a?r.y:1-r.y,b=r.yref==="paper",_=r.xref==="paper",w=t._fullLayout,x=w._size,M=r._fillcolor,k=r._line,A=r.title,S=A.side,D=r._zrange||jo.extent((typeof M=="function"?M:k.color).domain()),P=typeof k.color=="function"?k.color:function(){return k.color},R=typeof M=="function"?M:function(){return M},F=r._levels,N=m4e(t,r,D),B=N.fill,H=N.line,O=Math.round(l*(o==="fraction"?a?x.w:x.h:1)),Y=O/(a?x.w:x.h),G=Math.round(n*(i==="fraction"?a?x.h:x.w:1)),V=G/(a?x.h:x.w),W=_?x.w:t._fullLayout.width,X=b?x.h:t._fullLayout.height,$=Math.round(a?y*W+h:m*X+p),te={center:.5,right:1}[c]||0,ie={top:1,middle:.5}[v]||0,ve=a?y-te*Y:m-ie*Y,K=a?m-ie*V:y-te*V,he=Math.round(a?X*(1-K):W*K);r._lenFrac=V,r._thickFrac=Y,r._uFrac=ve,r._vFrac=K;var le=r._axis=y4e(t,r,D);le.position=Y+(a?y+h/x.w:m+p/x.h);var _e=["top","bottom"].indexOf(S)!==-1;if(a&&_e&&(le.title.side=S,le.titlex=y+h/x.w,le.titley=K+(A.side==="top"?V-p/x.h:p/x.h)),!a&&!_e&&(le.title.side=S,le.titley=m+p/x.h,le.titlex=K+h/x.w),k.color&&r.tickmode==="auto"){le.tickmode="linear",le.tick0=F.start;var me=F.size,ce=Si.constrain(G/50,4,15)+1,Me=(D[1]-D[0])/((r.nticks||ce)*me);if(Me>1){var Re=Math.pow(10,Math.floor(Math.log(Me)/Math.LN10));me*=Re*Si.roundUp(Me/Re,[2,5,10]),(Math.abs(F.start)/F.size+1e-6)%1<2e-6&&(le.tick0=0)}le.dtick=me}var xe=a?p/x.h:h/x.w;le.domain=lY(c_([K,K+V],xe),xe),le.setScale(),e.attr("transform",nl(Math.round(x.l),Math.round(x.t)));var Pe=e.select("."+Rt.cbtitleunshift).attr("transform",nl(-Math.round(x.l),-Math.round(x.t))),Le=le.ticklabelposition,qe=le.title.font.size,Ee=e.select("."+Rt.cbaxis),Ue,Ce=0,We=0;function je(re,ye){var Xe={propContainer:le,propName:r._propPrefix+"title.text",traceIndex:r._traceIndex,_meta:r._meta,placeholder:w._dfltTitle.colorbar,containerGroup:e.select("."+Rt.cbtitle)},hr=re.charAt(0)==="h"?re.slice(1):"h"+re;e.selectAll("."+hr+",."+hr+"-math-group").remove(),l4e.draw(t,re,oY(Xe,ye||{}))}function Ze(){if(a&&_e||!a&&!_e){var re,ye;S==="top"&&(re=h+x.l+W*y,ye=p+x.t+X*(1-K-V)+3+qe*.75),S==="bottom"&&(re=h+x.l+W*y,ye=p+x.t+X*(1-K)-3-qe*.25),S==="right"&&(ye=p+x.t+X*m+3+qe*.75,re=h+x.l+W*K),je(le._id+"title",{attributes:{x:re,y:ye,"text-anchor":a?"start":"middle"}})}}function Ae(){if(a&&!_e||!a&&_e){var re=le.position||0,ye=le._offset+le._length/2,Xe,hr;if(S==="right")hr=ye,Xe=x.l+W*re+10+qe*(le.showticklabels?1:.5);else if(Xe=ye,S==="bottom"&&(hr=x.t+X*re+10+(Le.indexOf("inside")===-1?le.tickfont.size:0)+(le.ticks!=="inside"&&r.ticklen||0)),S==="top"){var De=A.text.split("
").length;hr=x.t+X*re+10-O-aY*qe*De}je((a?"h":"v")+le._id+"title",{avoid:{selection:jo.select(t).selectAll("g."+le._id+"tick"),side:S,offsetTop:a?0:x.t,offsetLeft:a?x.l:0,maxShift:a?w.width:w.height},attributes:{x:Xe,y:hr,"text-anchor":"middle"},transform:{rotate:a?-90:0,offset:0}})}}function ze(){if(!a&&!_e||a&&_e){var re=e.select("."+Rt.cbtitle),ye=re.select("text"),Xe=[-s/2,s/2],hr=re.select(".h"+le._id+"title-math-group").node(),De=15.6;ye.node()&&(De=parseInt(ye.node().style.fontSize,10)*aY);var pe;if(hr?(pe=al.bBox(hr),We=pe.width,Ce=pe.height,Ce>De&&(Xe[1]-=(Ce-De)/2)):ye.node()&&!ye.classed(Rt.jsPlaceholder)&&(pe=al.bBox(ye.node()),We=pe.width,Ce=pe.height),a){if(Ce){if(Ce+=5,S==="top")le.domain=lY(le.domain,Ce/x.h),Xe[1]*=-1;else{le.domain=c_(le.domain,Ce/x.h);var Te=o4e.lineCount(ye);Xe[1]+=(1-Te)*De}re.attr("transform",nl(Xe[0],Xe[1])),le.setScale()}}else We&&(S==="right"&&(le.domain=c_(le.domain,(We+qe/2)/x.w)),re.attr("transform",nl(Xe[0],Xe[1])),le.setScale())}e.selectAll("."+Rt.cbfills+",."+Rt.cblines).attr("transform",a?nl(0,Math.round(x.h*(1-le.domain[1]))):nl(Math.round(x.w*le.domain[0]),0)),Ee.attr("transform",a?nl(0,Math.round(-x.t)):nl(Math.round(-x.l),0));var Oe=e.select("."+Rt.cbfills).selectAll("rect."+Rt.cbfill).attr("style","").data(B);Oe.enter().append("rect").classed(Rt.cbfill,!0).attr("style",""),Oe.exit().remove();var Je=D.map(le.c2p).map(Math.round).sort(function(fr,Se){return fr-Se});Oe.each(function(fr,Se){var Ke=[Se===0?D[0]:(B[Se]+B[Se-1])/2,Se===B.length-1?D[1]:(B[Se]+B[Se+1])/2].map(le.c2p).map(Math.round);a&&(Ke[1]=Si.constrain(Ke[1]+(Ke[1]>Ke[0])?1:-1,Je[0],Je[1]));var Ie=jo.select(this).attr(a?"x":"y",$).attr(a?"y":"x",jo.min(Ke)).attr(a?"width":"height",Math.max(O,2)).attr(a?"height":"width",Math.max(jo.max(Ke)-jo.min(Ke),2));if(r._fillgradient)al.gradient(Ie,t,r._id,a?"vertical":"horizontalreversed",r._fillgradient,"fill");else{var pr=R(fr).replace("e-","");Ie.attr("fill",qf.hexString(pr))}});var Be=e.select("."+Rt.cblines).selectAll("path."+Rt.cbline).data(k.color&&k.width?H:[]);Be.enter().append("path").classed(Rt.cbline,!0),Be.exit().remove(),Be.each(function(fr){var Se=$,Ke=Math.round(le.c2p(fr))+k.width/2%1;jo.select(this).attr("d","M"+(a?Se+","+Ke:Ke+","+Se)+(a?"h":"v")+O).call(al.lineGroupStyle,k.width,P(fr),k.dash)}),Ee.selectAll("g."+le._id+"tick,path").remove();var Ve=$+O+(s||0)/2-(r.ticks==="outside"?1:0),nr=eo.calcTicks(le),lr=eo.getTickSigns(le)[2];return eo.drawTicks(t,le,{vals:le.ticks==="inside"?eo.clipEnds(le,nr):nr,layer:Ee,path:eo.makeTickPath(le,Ve,lr),transFn:eo.makeTransTickFn(le)}),eo.drawLabels(t,le,{vals:nr,layer:Ee,transFn:eo.makeTransTickLabelFn(le),labelFns:eo.makeLabelFns(le,Ve)})}function Qe(){var re,ye=O+s/2;Le.indexOf("inside")===-1&&(re=al.bBox(Ee.node()),ye+=a?re.width:re.height),Ue=Pe.select("text");var Xe=0,hr=a&&S==="top",De=!a&&S==="right",pe=0;if(Ue.node()&&!Ue.classed(Rt.jsPlaceholder)){var Te,Oe=Pe.select(".h"+le._id+"title-math-group").node();Oe&&(a&&_e||!a&&!_e)?(re=al.bBox(Oe),Xe=re.width,Te=re.height):(re=al.bBox(Pe.node()),Xe=re.right-x.l-(a?$:he),Te=re.bottom-x.t-(a?he:$),!a&&S==="top"&&(ye+=re.height,pe=re.height)),De&&(Ue.attr("transform",nl(Xe/2+qe/2,0)),Xe*=2),ye=Math.max(ye,a?Xe:Te)}var Je=(a?h:p)*2+ye+u+s/2,Be=0;!a&&A.text&&v==="bottom"&&m<=0&&(Be=Je/2,Je+=Be,pe+=Be),w._hColorbarMoveTitle=Be,w._hColorbarMoveCBTitle=pe;var Ve=u+s,nr=(a?$:he)-Ve/2-(a?h:0),lr=(a?he:$)-(a?G:p+pe-Be);e.select("."+Rt.cbbg).attr("x",nr).attr("y",lr).attr(a?"width":"height",Math.max(Je-Be,2)).attr(a?"height":"width",Math.max(G+Ve,2)).call(qf.fill,f).call(qf.stroke,r.bordercolor).style("stroke-width",u);var fr=De?Math.max(Xe-10,0):0;e.selectAll("."+Rt.cboutline).attr("x",(a?$:he+h)+fr).attr("y",(a?he+p-G:$)+(hr?Ce:0)).attr(a?"width":"height",Math.max(O,2)).attr(a?"height":"width",Math.max(G-(a?2*p+Ce:2*h+fr),2)).call(qf.stroke,r.outlinecolor).style({fill:"none","stroke-width":s});var Se=a?te*Je:0,Ke=a?0:(1-ie)*Je-pe;if(Se=_?x.l-Se:-Se,Ke=b?x.t-Ke:-Ke,e.attr("transform",nl(Se,Ke)),!a&&(u||qf.opacity(f)&&!qf.equals(w.paper_bgcolor,f))){var Ie=Ee.selectAll("text"),pr=Ie[0].length,br=e.select("."+Rt.cbbg).node(),ur=al.bBox(br),mr=al.getTranslate(e),ae=2;Ie.each(function(bn,fa){var hn=0,Nn=pr-1;if(fa===hn||fa===Nn){var In=al.bBox(this),yr=al.getTranslate(this),gt;if(fa===Nn){var tt=In.right+yr.x,wt=ur.right+mr.x+he-u-ae+y;gt=wt-tt,gt>0&&(gt=0)}else if(fa===hn){var It=In.left+yr.x,Dt=ur.left+mr.x+he+u+ae;gt=Dt-It,gt<0&&(gt=0)}gt&&(pr<3?this.setAttribute("transform","translate("+gt+",0) "+this.getAttribute("transform")):this.setAttribute("visibility","hidden"))}})}var de={},Ne=nY[c],Ge=iY[c],rt=nY[v],ft=iY[v],yt=Je-O;a?(i==="pixels"?(de.y=m,de.t=G*rt,de.b=G*ft):(de.t=de.b=0,de.yt=m+n*rt,de.yb=m-n*ft),o==="pixels"?(de.x=y,de.l=Je*Ne,de.r=Je*Ge):(de.l=yt*Ne,de.r=yt*Ge,de.xl=y-l*Ne,de.xr=y+l*Ge)):(i==="pixels"?(de.x=y,de.l=G*Ne,de.r=G*Ge):(de.l=de.r=0,de.xl=y+n*Ne,de.xr=y-n*Ge),o==="pixels"?(de.y=1-m,de.t=Je*rt,de.b=Je*ft):(de.t=yt*rt,de.b=yt*ft,de.yt=m-l*rt,de.yb=m+l*ft));var Vt=r.y<.5?"b":"t",Nt=r.x<.5?"l":"r";t._fullLayout._reservedMargin[r._id]={};var Sa={r:w.width-nr-Se,l:nr+de.r,b:w.height-lr-Ke,t:lr+de.b};_&&b?Hm.autoMargin(t,r._id,de):_?t._fullLayout._reservedMargin[r._id][Vt]=Sa[Vt]:b||a?t._fullLayout._reservedMargin[r._id][Nt]=Sa[Nt]:t._fullLayout._reservedMargin[r._id][Vt]=Sa[Vt]}return Si.syncOrAsync([Hm.previousPromises,Ze,ze,Ae,Hm.previousPromises,Qe],t)}function p4e(e,r,t){var a=r.orientation==="v",n=t._fullLayout,i=n._size,l,o,s;Bm.init({element:e.node(),gd:t,prepFn:function(){l=e.attr("transform"),f_(e)},moveFn:function(u,f){e.attr("transform",l+nl(u,f)),o=Bm.align((a?r._uFrac:r._vFrac)+u/i.w,a?r._thickFrac:r._lenFrac,0,1,r.xanchor),s=Bm.align((a?r._vFrac:1-r._uFrac)-f/i.h,a?r._lenFrac:r._thickFrac,0,1,r.yanchor);var c=Bm.getCursor(o,s,r.xanchor,r.yanchor);f_(e,c)},doneFn:function(){if(f_(e),o!==void 0&&s!==void 0){var u={};u[r._propPrefix+"x"]=o,u[r._propPrefix+"y"]=s,r._traceIndex!==void 0?tY.call("_guiRestyle",t,u,r._traceIndex):tY.call("_guiRelayout",t,u)}}})}function m4e(e,r,t){var a=r._levels,n=[],i=[],l,o,s=a.end+a.size/100,u=a.size,f=1.001*t[0]-.001*t[1],c=1.001*t[1]-.001*t[0];for(o=0;o<1e5&&(l=a.start+o*u,!(u>0?l>=s:l<=s));o++)l>f&&l0?l>=s:l<=s));o++)l>t[0]&&l{"use strict";fY.exports={moduleType:"component",name:"colorbar",attributes:Jh(),supplyDefaults:yx(),draw:uY().draw,hasColorbar:fx()}});var dY=U((wSe,vY)=>{"use strict";vY.exports={moduleType:"component",name:"legend",layoutAttributes:db(),supplyLayoutDefaults:pb(),draw:qb(),style:kb()}});var pY=U((TSe,hY)=>{"use strict";hY.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"}}});var yY=U((MSe,mY)=>{"use strict";mY.exports={moduleType:"locale",name:"en-US",dictionary:{"Click to enter Colorscale title":"Click to enter Colorscale title"},format:{date:"%m/%d/%Y"}}});var h_=U((ASe,_Y)=>{"use strict";var g4e=Ar(),bY=ke(),d_=bY.extendFlat,gY=bY.extendDeep;function xY(e){var r;switch(e){case"themes__thumb":r={autosize:!0,width:150,height:150,title:{text:""},showlegend:!1,margin:{l:5,r:5,t:5,b:5,pad:0},annotations:[]};break;case"thumbnail":r={title:{text:""},showlegend:!1,borderwidth:0,bordercolor:"",margin:{l:1,r:1,t:1,b:1,pad:0},annotations:[]};break;default:r={}}return r}function x4e(e){var r=["xaxis","yaxis","zaxis"];return r.indexOf(e.slice(0,5))>-1}_Y.exports=function(r,t){var a,n=r.data,i=r.layout,l=gY([],n),o=gY({},i,xY(t.tileClass)),s=r._context||{};if(t.width&&(o.width=t.width),t.height&&(o.height=t.height),t.tileClass==="thumbnail"||t.tileClass==="themes__thumb"){o.annotations=[];var u=Object.keys(o);for(a=0;a{"use strict";var b4e=Nh().EventEmitter,_4e=Ar(),w4e=ke(),wY=vu(),T4e=h_(),M4e=Gp(),A4e=Up();function k4e(e,r){var t=new b4e,a=T4e(e,{format:"png"}),n=a.gd;n.style.position="absolute",n.style.left="-5000px",document.body.appendChild(n);function i(){var o=wY.getDelay(n._fullLayout);setTimeout(function(){var s=M4e(n),u=document.createElement("canvas");u.id=w4e.randstr(),t=A4e({format:r.format,width:n._fullLayout.width,height:n._fullLayout.height,canvas:u,emitter:t,svg:s}),t.clean=function(){n&&document.body.removeChild(n)}},o)}var l=wY.getRedrawFunc(n);return _4e.call("_doPlot",n,a.data,a.layout,a.config).then(l).then(i).catch(function(o){t.emit("error",o)}),t}TY.exports=k4e});var CY=U((CSe,kY)=>{"use strict";var AY=vu(),C4e={getDelay:AY.getDelay,getRedrawFunc:AY.getRedrawFunc,clone:h_(),toSVG:Gp(),svgToImg:Up(),toImage:MY(),downloadImage:$4()};kY.exports=C4e});var SY=U(ro=>{"use strict";ro.version=Tc().version;R9();xC();var L4e=Ar(),D2=ro.register=L4e.register,m_=RF(),LY=Object.keys(m_);for(Om=0;Om{"use strict";qY.exports=SY()});var to=U((qSe,FY)=>{"use strict";var Gt=Zi(),PY=Gi().axisHoverFormat,{hovertemplateAttrs:S4e,texttemplateAttrs:q4e,templatefallbackAttrs:EY}=On(),zY=sv(),D4e=xa(),RY=(h2(),Fe(d2)),P4e=Bi().pattern,ku=At().extendFlat,y_=D4e({editType:"calc",arrayOk:!0,colorEditType:"style"}),E4e=Gt.marker,R4e=E4e.line,z4e=ku({},R4e.width,{dflt:0}),F4e=ku({width:z4e,editType:"calc"},zY("marker.line")),N4e=ku({line:F4e,editType:"calc"},zY("marker"),{opacity:{valType:"number",arrayOk:!0,dflt:1,min:0,max:1,editType:"style"},pattern:P4e,cornerradius:{valType:"any",editType:"calc"}});FY.exports={x:Gt.x,x0:Gt.x0,dx:Gt.dx,y:Gt.y,y0:Gt.y0,dy:Gt.dy,xperiod:Gt.xperiod,yperiod:Gt.yperiod,xperiod0:Gt.xperiod0,yperiod0:Gt.yperiod0,xperiodalignment:Gt.xperiodalignment,yperiodalignment:Gt.yperiodalignment,xhoverformat:PY("x"),yhoverformat:PY("y"),text:Gt.text,texttemplate:q4e({editType:"plot"},{keys:RY.eventDataKeys}),texttemplatefallback:EY({editType:"plot"}),hovertext:Gt.hovertext,hovertemplate:S4e({},{keys:RY.eventDataKeys}),hovertemplatefallback:EY(),textposition:{valType:"enumerated",values:["inside","outside","auto","none"],dflt:"auto",arrayOk:!0,editType:"calc"},insidetextanchor:{valType:"enumerated",values:["end","middle","start"],dflt:"end",editType:"plot"},textangle:{valType:"angle",dflt:"auto",editType:"plot"},textfont:ku({},y_,{}),insidetextfont:ku({},y_,{}),outsidetextfont:ku({},y_,{}),constraintext:{valType:"enumerated",values:["inside","outside","both","none"],dflt:"both",editType:"calc"},cliponaxis:ku({},Gt.cliponaxis,{}),orientation:{valType:"enumerated",values:["v","h"],editType:"calc+clearAxisTypes"},base:{valType:"any",dflt:null,arrayOk:!0,editType:"calc"},offset:{valType:"number",dflt:null,arrayOk:!0,editType:"calc"},width:{valType:"number",dflt:null,min:0,arrayOk:!0,editType:"calc"},marker:N4e,offsetgroup:Gt.offsetgroup,alignmentgroup:Gt.alignmentgroup,selected:{marker:{opacity:Gt.selected.marker.opacity,color:Gt.selected.marker.color,editType:"style"},textfont:Gt.selected.textfont,editType:"style"},unselected:{marker:{opacity:Gt.unselected.marker.opacity,color:Gt.unselected.marker.color,editType:"style"},textfont:Gt.unselected.textfont,editType:"style"},zorder:Gt.zorder}});var Gm=U((DSe,NY)=>{"use strict";NY.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"}}});var g_=U((PSe,HY)=>{"use strict";var I4e=kr(),IY=Un().hasColorscale,BY=B0(),B4e=ke().coercePattern;HY.exports=function(r,t,a,n,i){var l=a("marker.color",n),o=IY(r,"marker");o&&BY(r,t,i,a,{prefix:"marker.",cLetter:"c"}),a("marker.line.color",I4e.defaultLine),IY(r,"marker.line")&&BY(r,t,i,a,{prefix:"marker.line.",cLetter:"c"}),a("marker.line.width"),a("marker.opacity"),B4e(a,"marker.pattern",l,o),a("selected.marker.color"),a("unselected.marker.color")}});var ql=U((ESe,XY)=>{"use strict";var OY=Gr(),Pf=ke(),YY=kr(),H4e=Ar(),O4e=f2(),Y4e=mu(),G4e=g_(),U4e=hf(),GY=to(),Um=Pf.coerceFont;function V4e(e,r,t,a){function n(u,f){return Pf.coerce(e,r,GY,u,f)}var i=O4e(e,r,a,n);if(!i){r.visible=!1;return}Y4e(e,r,a,n),n("xhoverformat"),n("yhoverformat"),n("zorder"),n("orientation",r.x&&!r.y?"h":"v"),n("base"),n("offset"),n("width"),n("text"),n("hovertext"),n("hovertemplate"),n("hovertemplatefallback");var l=n("textposition");VY(e,r,a,n,l,{moduleHasSelected:!0,moduleHasUnselected:!0,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),G4e(e,r,n,t,a);var o=(r.marker.line||{}).color,s=H4e.getComponentMethod("errorbars","supplyDefaults");s(e,r,o||YY.defaultLine,{axis:"y"}),s(e,r,o||YY.defaultLine,{axis:"x",inherit:"y"}),Pf.coerceSelectionMarkerOpacity(r,n)}function X4e(e,r){var t,a;function n(o,s){return Pf.coerce(a._input,a,GY,o,s)}for(var i=0;i=0)return e}else if(typeof e=="string"&&(e=e.trim(),e.slice(-1)==="%"&&OY(e.slice(0,-1))&&(e=+e.slice(0,-1),e>=0)))return e+"%"}function VY(e,r,t,a,n,i){i=i||{};var l=i.moduleHasSelected!==!1,o=i.moduleHasUnselected!==!1,s=i.moduleHasConstrain!==!1,u=i.moduleHasCliponaxis!==!1,f=i.moduleHasTextangle!==!1,c=i.moduleHasInsideanchor!==!1,v=!!i.hasPathbar,h=Array.isArray(n)||n==="auto",p=h||n==="inside",y=h||n==="outside";if(p||y){var m=Um(a,"textfont",t.font),b=Pf.extendFlat({},m),_=e.textfont&&e.textfont.color,w=!_;if(w&&delete b.color,Um(a,"insidetextfont",b),v){var x=Pf.extendFlat({},m);w&&delete x.color,Um(a,"pathbar.textfont",x)}y&&Um(a,"outsidetextfont",m),l&&a("selected.textfont.color"),o&&a("unselected.textfont.color"),s&&a("constraintext"),u&&a("cliponaxis"),f&&a("textangle"),a("texttemplate"),a("texttemplatefallback")}p&&c&&a("insidetextanchor")}XY.exports={supplyDefaults:V4e,crossTraceDefaults:X4e,handleText:VY,validateCornerradius:UY}});var x_=U((RSe,WY)=>{"use strict";var W4e=Ar(),Z4e=Kr(),J4e=ke(),$4e=Gm(),K4e=ql().validateCornerradius;WY.exports=function(e,r,t){function a(y,m){return J4e.coerce(e,r,$4e,y,m)}for(var n=!1,i=!1,l=!1,o={},s=a("barmode"),u=s==="group",f=0;f0&&!o[v]&&(l=!0),o[v]=!0),c.visible&&c.type==="histogram"){var h=Z4e.getFromId({_fullLayout:r},c[c.orientation==="v"?"xaxis":"yaxis"]);h.type!=="category"&&(i=!0)}}if(!n){delete r.barmode;return}s!=="overlay"&&a("barnorm"),a("bargap",i&&!l?0:.2),a("bargroupgap");var p=a("barcornerradius");r.barcornerradius=K4e(p)}});var Vm=U((zSe,ZY)=>{"use strict";var Ef=ke();ZY.exports=function(r,t){for(var a=0;a{"use strict";var JY=Kr(),$Y=yu(),KY=Un().hasColorscale,jY=uv(),j4e=Vm(),Q4e=c2();QY.exports=function(r,t){var a=JY.getFromId(r,t.xaxis||"x"),n=JY.getFromId(r,t.yaxis||"y"),i,l,o,s,u,f,c={msUTC:!!(t.base||t.base===0)};t.orientation==="h"?(i=a.makeCalcdata(t,"x",c),o=n.makeCalcdata(t,"y"),s=$Y(t,n,"y",o),u=!!t.yperiodalignment,f="y"):(i=n.makeCalcdata(t,"y",c),o=a.makeCalcdata(t,"x"),s=$Y(t,a,"x",o),u=!!t.xperiodalignment,f="x"),l=s.vals;for(var v=Math.min(l.length,i.length),h=new Array(v),p=0;p{"use strict";var e6e=Er(),r6e=ke();function t6e(e,r,t){var a=e._fullLayout,n=a["_"+t+"Text_minsize"];if(n){var i=a.uniformtext.mode==="hide",l;switch(t){case"funnelarea":case"pie":case"sunburst":l="g.slice";break;case"treemap":case"icicle":l="g.slice, g.pathbar";break;default:l="g.points > g.point"}r.selectAll(l).each(function(o){var s=o.transform;if(s){s.scale=i&&s.hide?0:n/s.fontSize;var u=e6e.select(this).select("text");r6e.setTransormAndDisplay(u,s)}})}}function a6e(e,r,t){if(t.uniformtext.mode){var a=rG(e),n=t.uniformtext.minsize,i=r.scale*r.fontSize;r.hide=i{"use strict";var i6e=kr(),l6e=Gr(),aG=ke().isArrayOrTypedArray;Cu.coerceString=function(e,r,t){if(typeof r=="string"){if(r||!e.noBlank)return r}else if((typeof r=="number"||r===!0)&&!e.strict)return String(r);return t!==void 0?t:e.dflt};Cu.coerceNumber=function(e,r,t){if(l6e(r)){r=+r;var a=e.min,n=e.max,i=a!==void 0&&rn;if(!i)return r}return t!==void 0?t:e.dflt};Cu.coerceColor=function(e,r,t){return i6e.isValid(r)?r:t!==void 0?t:e.dflt};Cu.coerceEnumerated=function(e,r,t){return e.coerceNumber&&(r=+r),e.values.indexOf(r)!==-1?r:t!==void 0?t:e.dflt};Cu.getValue=function(e,r){var t;return aG(e)?r{"use strict";var P2=Er(),o6e=kr(),E2=Zr(),nG=ke(),iG=Ar(),lG=il().resizeText,b_=to(),s6e=b_.textfont,u6e=b_.insidetextfont,f6e=b_.outsidetextfont,Ga=Xm();function c6e(e){var r=P2.select(e).selectAll('g[class^="barlayer"]').selectAll("g.trace");lG(e,r,"bar");var t=r.size(),a=e._fullLayout;r.style("opacity",function(n){return n[0].trace.opacity}).each(function(n){(a.barmode==="stack"&&t>1||a.bargap===0&&a.bargroupgap===0&&!n[0].trace.marker.line.width)&&P2.select(this).attr("shape-rendering","crispEdges")}),r.selectAll("g.points").each(function(n){var i=P2.select(this),l=n[0].trace;oG(i,l,e)}),iG.getComponentMethod("errorbars","style")(r)}function oG(e,r,t){E2.pointStyle(e.selectAll("path"),r,t),sG(e,r,t)}function sG(e,r,t){e.selectAll("text").each(function(a){var n=P2.select(this),i=nG.ensureUniformFontSize(t,uG(n,a,r,t));E2.font(n,i)})}function v6e(e,r,t){var a=r[0].trace;a.selectedpoints?d6e(t,a,e):(oG(t,a,e),iG.getComponentMethod("errorbars","style")(t))}function d6e(e,r,t){E2.selectedPointStyle(e.selectAll("path"),r),h6e(e.selectAll("text"),r,t)}function h6e(e,r,t){e.each(function(a){var n=P2.select(this),i;if(a.selected){i=nG.ensureUniformFontSize(t,uG(n,a,r,t));var l=r.selected.textfont&&r.selected.textfont.color;l&&(i.color=l),E2.font(n,i)}else E2.selectedTextStyle(n,r)})}function uG(e,r,t,a){var n=a._fullLayout.font,i=t.textfont;if(e.classed("bartext-inside")){var l=dG(r,t);i=cG(t,r.i,n,l)}else e.classed("bartext-outside")&&(i=vG(t,r.i,n));return i}function fG(e,r,t){return __(s6e,e.textfont,r,t)}function cG(e,r,t,a){var n=fG(e,r,t),i=e._input.textfont===void 0||e._input.textfont.color===void 0||Array.isArray(e.textfont.color)&&e.textfont.color[r]===void 0;return i&&(n={color:o6e.contrast(a),family:n.family,size:n.size,weight:n.weight,style:n.style,variant:n.variant,textcase:n.textcase,lineposition:n.lineposition,shadow:n.shadow}),__(u6e,e.insidetextfont,r,n)}function vG(e,r,t){var a=fG(e,r,t);return __(f6e,e.outsidetextfont,r,a)}function __(e,r,t,a){r=r||{};var n=Ga.getValue(r.family,t),i=Ga.getValue(r.size,t),l=Ga.getValue(r.color,t),o=Ga.getValue(r.weight,t),s=Ga.getValue(r.style,t),u=Ga.getValue(r.variant,t),f=Ga.getValue(r.textcase,t),c=Ga.getValue(r.lineposition,t),v=Ga.getValue(r.shadow,t);return{family:Ga.coerceString(e.family,n,a.family),size:Ga.coerceNumber(e.size,i,a.size),color:Ga.coerceColor(e.color,l,a.color),weight:Ga.coerceString(e.weight,o,a.weight),style:Ga.coerceString(e.style,s,a.style),variant:Ga.coerceString(e.variant,u,a.variant),textcase:Ga.coerceString(e.variant,f,a.textcase),lineposition:Ga.coerceString(e.variant,c,a.lineposition),shadow:Ga.coerceString(e.variant,v,a.shadow)}}function dG(e,r){return r.type==="waterfall"?r[e.dir].marker.color:e.mcc||e.mc||r.marker.color}hG.exports={style:c6e,styleTextPoints:sG,styleOnSelect:v6e,getInsideTextFont:cG,getOutsideTextFont:vG,getBarColor:dG,resizeText:lG}});var zf=U((HSe,wG)=>{"use strict";var Wm=Er(),Zm=Gr(),Pa=ke(),p6e=ma(),m6e=kr(),es=Zr(),y6e=Ar(),Jm=Kr().tickText,pG=il(),g6e=pG.recordMinTextSize,x6e=pG.clearMinTextSize,w_=Qo(),Rf=Xm(),b6e=(h2(),Fe(d2)),mG=to(),_6e=mG.text,w6e=mG.textposition,T6e=Ui().appendArrayPointValue,vn=b6e.TEXTPAD;function M6e(e){return e.id}function A6e(e){if(e.ids)return M6e}function T_(e){return(e>0)-(e<0)}function ll(e,r){return e0}function C6e(e,r,t,a,n,i){var l=r.xaxis,o=r.yaxis,s=e._fullLayout,u=e._context.staticPlot;n||(n={mode:s.barmode,norm:s.barmode,gap:s.bargap,groupgap:s.bargroupgap},x6e("bar",s));var f=Pa.makeTraceGroups(a,t,"trace bars").each(function(c){var v=Wm.select(this),h=c[0].trace,p=c[0].t,y=h.type==="waterfall",m=h.type==="funnel",b=h.type==="histogram",_=h.type==="bar",w=_||m,x=0;y&&h.connector.visible&&h.connector.mode==="between"&&(x=h.connector.line.width/2);var M=h.orientation==="h",k=gG(n),A=Pa.ensureSingle(v,"g","points"),S=A6e(h),D=A.selectAll("g.point").data(Pa.identity,S);D.enter().append("g").classed("point",!0),D.exit().remove(),D.each(function(R,F){var N=Wm.select(this),B=k6e(R,l,o,M),H=B[0][0],O=B[0][1],Y=B[1][0],G=B[1][1],V=(M?O-H:G-Y)===0;V&&w&&Rf.getLineWidth(h,R)&&(V=!1),V||(V=!Zm(H)||!Zm(O)||!Zm(Y)||!Zm(G)),R.isBlank=V,V&&(M?O=H:G=Y),x&&!V&&(M?(H-=ll(H,O)*x,O+=ll(H,O)*x):(Y-=ll(Y,G)*x,G+=ll(Y,G)*x));var W,X;if(h.type==="waterfall"){if(!V){var $=h[R.dir].marker;W=$.line.width,X=$.color}}else W=Rf.getLineWidth(h,R),X=R.mc||h.marker.color;function te(re){var ye=Wm.round(W/2%1,2);return n.gap===0&&n.groupgap===0?Wm.round(Math.round(re)-ye,2):re}function ie(re,ye,Xe){return Xe&&re===ye?re:Math.abs(re-ye)>=2?te(re):re>ye?Math.ceil(re):Math.floor(re)}var ve=m6e.opacity(X),K=ve<1||W>.01?te:ie;e._context.staticPlot||(H=K(H,O,M),O=K(O,H,M),Y=K(Y,G,!M),G=K(G,Y,!M));var he=M?l.c2p:o.c2p,le;R.s0>0?le=R._sMax:R.s0<0?le=R._sMin:le=R.s1>0?R._sMax:R._sMin;function _e(re,ye){if(!re)return 0;var Xe=Math.abs(M?G-Y:O-H),hr=Math.abs(M?O-H:G-Y),De=K(Math.abs(he(le,!0)-he(0,!0))),pe=R.hasB?Math.min(Xe/2,hr/2):Math.min(Xe/2,De),Te;if(ye==="%"){var Oe=Math.min(50,re);Te=Xe*(Oe/100)}else Te=re;return K(Math.max(Math.min(Te,pe),0))}var me=_||b?_e(p.cornerradiusvalue,p.cornerradiusform):0,ce,Me,Re="M"+H+","+Y+"V"+G+"H"+O+"V"+Y+"Z",xe=0;if(me&&R.s){var Pe=T_(R.s0)===0||T_(R.s)===T_(R.s0)?R.s1:R.s0;if(xe=K(R.hasB?0:Math.abs(he(le,!0)-he(Pe,!0))),xe0?Math.sqrt(xe*(2*me-xe)):0,We=Le>0?Math.max:Math.min;ce="M"+H+","+Y+"V"+(G-Ue*qe)+"H"+We(O-(me-xe)*Le,H)+"A "+me+","+me+" 0 0 "+Ee+" "+O+","+(G-me*qe-Ce)+"V"+(Y+me*qe+Ce)+"A "+me+","+me+" 0 0 "+Ee+" "+We(O-(me-xe)*Le,H)+","+(Y+Ue*qe)+"Z"}else if(R.hasB)ce="M"+(H+me*Le)+","+Y+"A "+me+","+me+" 0 0 "+Ee+" "+H+","+(Y+me*qe)+"V"+(G-me*qe)+"A "+me+","+me+" 0 0 "+Ee+" "+(H+me*Le)+","+G+"H"+(O-me*Le)+"A "+me+","+me+" 0 0 "+Ee+" "+O+","+(G-me*qe)+"V"+(Y+me*qe)+"A "+me+","+me+" 0 0 "+Ee+" "+(O-me*Le)+","+Y+"Z";else{Me=Math.abs(G-Y)+xe;var je=Me0?Math.sqrt(xe*(2*me-xe)):0,Ae=qe>0?Math.max:Math.min;ce="M"+(H+je*Le)+","+Y+"V"+Ae(G-(me-xe)*qe,Y)+"A "+me+","+me+" 0 0 "+Ee+" "+(H+me*Le-Ze)+","+G+"H"+(O-me*Le+Ze)+"A "+me+","+me+" 0 0 "+Ee+" "+(O-je*Le)+","+Ae(G-(me-xe)*qe,Y)+"V"+Y+"Z"}}else ce=Re}else ce=Re;var ze=yG(Pa.ensureSingle(N,"path"),s,n,i);if(ze.style("vector-effect",u?"none":"non-scaling-stroke").attr("d",isNaN((O-H)*(G-Y))||V&&e._context.staticPlot?"M0,0Z":ce).call(es.setClipUrl,r.layerClipId,e),!s.uniformtext.mode&&k){var Qe=es.makePointStyleFns(h);es.singlePointStyle(R,ze,h,Qe,e)}L6e(e,r,N,c,F,H,O,Y,G,me,xe,n,i),r.layerClipId&&es.hideOutsideRangePoint(R,N.select("text"),l,o,h.xcalendar,h.ycalendar)});var P=h.cliponaxis===!1;es.setClipUrl(v,P?null:r.layerClipId,e)});y6e.getComponentMethod("errorbars","plot")(e,f,r,n)}function L6e(e,r,t,a,n,i,l,o,s,u,f,c,v){var h=r.xaxis,p=r.yaxis,y=e._fullLayout,m;function b(Re,xe,Pe){var Le=Pa.ensureSingle(Re,"text").text(xe).attr({class:"bartext bartext-"+m,"text-anchor":"middle","data-notex":1}).call(es.font,Pe).call(p6e.convertToTspans,e);return Le}var _=a[0].trace,w=_.orientation==="h",x=E6e(a,w,h,p),M=D6e(y,a,n,h,p);m=P6e(_,n);var k=c.mode==="stack"||c.mode==="relative",A=a[n],S=!k||A._outmost,D=A.hasB,P=u&&u-f>vn;if(!M||m==="none"||(A.isBlank||i===l||o===s)&&(m==="auto"||m==="inside")){t.select("text").remove();return}var R=y.font,F=w_.getBarColor(a[n],_),N=w_.getInsideTextFont(_,n,R,F),B=w_.getOutsideTextFont(_,n,R),H=_.insidetextanchor||"end",O=t.datum();w?h.type==="log"&&O.s0<=0&&(h.range[0]0&&ie>0,he;P?D?he=Lu(V-2*u,W,te,ie,w)||Lu(V,W-2*u,te,ie,w):w?he=Lu(V-(u-f),W,te,ie,w)||Lu(V,W-2*(u-f),te,ie,w):he=Lu(V,W-(u-f),te,ie,w)||Lu(V-2*(u-f),W,te,ie,w):he=Lu(V,W,te,ie,w),K&&he?m="inside":(m="outside",X.remove(),X=null)}else m="inside";if(!X){ve=Pa.ensureUniformFontSize(e,m==="outside"?B:N),X=b(t,M,ve);var le=X.attr("transform");if(X.attr("transform",""),$=es.bBox(X.node()),te=$.width,ie=$.height,X.attr("transform",le),te<=0||ie<=0){X.remove();return}}var _e=_.textangle,me,ce;m==="outside"?(ce=_.constraintext==="both"||_.constraintext==="outside",me=q6e(i,l,o,s,$,{isHorizontal:w,constrained:ce,angle:_e,zeroBarDir:x})):(ce=_.constraintext==="both"||_.constraintext==="inside",me=_G(i,l,o,s,$,{isHorizontal:w,constrained:ce,angle:_e,anchor:H,hasB:D,r:u,overhead:f})),me.fontSize=ve.size,g6e(_.type==="histogram"?"bar":_.type,me,y),A.transform=me;var Me=yG(X,y,c,v);Pa.setTransormAndDisplay(Me,me)}function Lu(e,r,t,a,n){if(e<0||r<0)return!1;var i=t<=e&&a<=r,l=t<=r&&a<=e,o=n?e>=t*(r/a):r>=a*(e/t);return i||l||o}function xG(e){return e==="auto"?0:e}function bG(e,r){var t=Math.PI/180*r,a=Math.abs(Math.sin(t)),n=Math.abs(Math.cos(t));return{x:e.width*n+e.height*a,y:e.width*a+e.height*n}}function _G(e,r,t,a,n,i){var l=!!i.isHorizontal,o=!!i.constrained,s=i.angle||0,u=i.anchor,f=u==="end",c=u==="start",v=i.leftToRight||0,h=(v+1)/2,p=1-h,y=i.hasB,m=i.r,b=i.overhead,_=n.width,w=n.height,x=Math.abs(r-e),M=Math.abs(a-t),k=x>2*vn&&M>2*vn?vn:0;x-=2*k,M-=2*k;var A=xG(s);s==="auto"&&!(_<=x&&w<=M)&&(_>x||w>M)&&(!(_>M||w>x)||_vn){var R=S6e(e,r,t,a,S,m,b,l,y);D=R.scale,P=R.pad}else D=1,o&&(D=Math.min(1,x/S.x,M/S.y)),P=0;var F=n.left*p+n.right*h,N=(n.top+n.bottom)/2,B=(e+vn)*p+(r-vn)*h,H=(t+a)/2,O=0,Y=0;if(c||f){var G=(l?S.x:S.y)/2;m&&(f||y)&&(k+=P);var V=l?ll(e,r):ll(t,a);l?c?(B=e+V*k,O=-V*G):(B=r-V*k,O=V*G):c?(H=t+V*k,Y=-V*G):(H=a-V*k,Y=V*G)}return{textX:F,textY:N,targetX:B,targetY:H,anchorX:O,anchorY:Y,scale:D,rotate:A}}function S6e(e,r,t,a,n,i,l,o,s){var u=Math.max(0,Math.abs(r-e)-2*vn),f=Math.max(0,Math.abs(a-t)-2*vn),c=i-vn,v=l?c-Math.sqrt(c*c-(c-l)*(c-l)):c,h=s?c*2:o?c-l:2*v,p=s?c*2:o?2*v:c-l,y,m,b,_,w;return n.y/n.x>=f/(u-h)?_=f/n.y:n.y/n.x<=(f-p)/u?_=u/n.x:!s&&o?(y=n.x*n.x+n.y*n.y/4,m=-2*n.x*(u-c)-n.y*(f/2-c),b=(u-c)*(u-c)+(f/2-c)*(f/2-c)-c*c,_=(-m+Math.sqrt(m*m-4*y*b))/(2*y)):s?(y=(n.x*n.x+n.y*n.y)/4,m=-n.x*(u/2-c)-n.y*(f/2-c),b=(u/2-c)*(u/2-c)+(f/2-c)*(f/2-c)-c*c,_=(-m+Math.sqrt(m*m-4*y*b))/(2*y)):(y=n.x*n.x/4+n.y*n.y,m=-n.x*(u/2-c)-2*n.y*(f-c),b=(u/2-c)*(u/2-c)+(f-c)*(f-c)-c*c,_=(-m+Math.sqrt(m*m-4*y*b))/(2*y)),_=Math.min(1,_),o?w=Math.max(0,c-Math.sqrt(Math.max(0,c*c-(c-(f-n.y*_)/2)*(c-(f-n.y*_)/2)))-l):w=Math.max(0,c-Math.sqrt(Math.max(0,c*c-(c-(u-n.x*_)/2)*(c-(u-n.x*_)/2)))-l),{scale:_,pad:w}}function q6e(e,r,t,a,n,i){var l=!!i.isHorizontal,o=!!i.constrained,s=i.angle||0,u=n.width,f=n.height,c=Math.abs(r-e),v=Math.abs(a-t),h;l?h=v>2*vn?vn:0:h=c>2*vn?vn:0;var p=1;o&&(p=l?Math.min(1,v/f):Math.min(1,c/u));var y=xG(s),m=bG(n,y),b=(l?m.x:m.y)/2,_=(n.left+n.right)/2,w=(n.top+n.bottom)/2,x=(e+r)/2,M=(t+a)/2,k=0,A=0,S;return(l?e===r:t===a)&&i.zeroBarDir?S=i.zeroBarDir:S=l?ll(r,e):ll(t,a),l?(x=r-S*h,k=S*b):(M=a+S*h,A=-S*b),{textX:_,textY:w,targetX:x,targetY:M,anchorX:k,anchorY:A,scale:p,rotate:y}}function D6e(e,r,t,a,n){var i=r[0].trace,l=i.texttemplate,o;return l?o=R6e(e,r,t,a,n):i.textinfo?o=z6e(r,t,a,n):o=Rf.getValue(i.text,t),Rf.coerceString(_6e,o)}function P6e(e,r){var t=Rf.getValue(e.textposition,r);return Rf.coerceEnumerated(w6e,t)}function E6e(e,r,t,a){for(var n=!1,i=!1,l=0;l0?n=!0:o<0&&(i=!0),n&&i)return 0}var s=r?t:a,u=-ll(s.range[0],s.range[1]);return i?n?0:-u:u}function R6e(e,r,t,a,n){var i=r[0].trace,l=Pa.castOption(i,t,"texttemplate");if(!l)return"";var o=i.type==="histogram",s=i.type==="waterfall",u=i.type==="funnel",f=i.orientation==="h",c,v,h,p;f?(c="y",v=n,h="x",p=a):(c="x",v=a,h="y",p=n);function y(k){return Jm(v,v.c2l(k),!0).text}function m(k){return Jm(p,p.c2l(k),!0).text}var b=r[t],_={};_.label=b.p,_.labelLabel=_[c+"Label"]=y(b.p);var w=Pa.castOption(i,b.i,"text");(w===0||w)&&(_.text=w),_.value=b.s,_.valueLabel=_[h+"Label"]=m(b.s);var x={};T6e(x,i,b.i),(o||x.x===void 0)&&(x.x=f?_.value:_.label),(o||x.y===void 0)&&(x.y=f?_.label:_.value),(o||x.xLabel===void 0)&&(x.xLabel=f?_.valueLabel:_.labelLabel),(o||x.yLabel===void 0)&&(x.yLabel=f?_.labelLabel:_.valueLabel),s&&(_.delta=+b.rawS||b.s,_.deltaLabel=m(_.delta),_.final=b.v,_.finalLabel=m(_.final),_.initial=_.final-_.delta,_.initialLabel=m(_.initial)),u&&(_.value=b.s,_.valueLabel=m(_.value),_.percentInitial=b.begR,_.percentInitialLabel=Pa.formatPercent(b.begR),_.percentPrevious=b.difR,_.percentPreviousLabel=Pa.formatPercent(b.difR),_.percentTotal=b.sumR,_.percenTotalLabel=Pa.formatPercent(b.sumR));var M=Pa.castOption(i,b.i,"customdata");return M&&(_.customdata=M),Pa.texttemplateString({data:[x,_,i._meta],fallback:i.texttemplatefallback,labels:_,locale:e._d3locale,template:l})}function z6e(e,r,t,a){var n=e[0].trace,i=n.orientation==="h",l=n.type==="waterfall",o=n.type==="funnel";function s(M){var k=i?a:t;return Jm(k,M,!0).text}function u(M){var k=i?t:a;return Jm(k,+M,!0).text}var f=n.textinfo,c=e[r],v=f.split("+"),h=[],p,y=function(M){return v.indexOf(M)!==-1};if(y("label")&&h.push(s(e[r].p)),y("text")&&(p=Pa.castOption(n,c.i,"text"),(p===0||p)&&h.push(p)),l){var m=+c.rawS||c.s,b=c.v,_=b-m;y("initial")&&h.push(u(_)),y("delta")&&h.push(u(m)),y("final")&&h.push(u(b))}if(o){y("value")&&h.push(u(c.s));var w=0;y("percent initial")&&w++,y("percent previous")&&w++,y("percent total")&&w++;var x=w>1;y("percent initial")&&(p=Pa.formatPercent(c.begR),x&&(p+=" of initial"),h.push(p)),y("percent previous")&&(p=Pa.formatPercent(c.difR),x&&(p+=" of previous"),h.push(p)),y("percent total")&&(p=Pa.formatPercent(c.sumR),x&&(p+=" of total"),h.push(p))}return h.join("
")}wG.exports={plot:C6e,toMoveInsideBar:_G}});var z2=U((OSe,kG)=>{"use strict";var R2=yi(),F6e=Ar(),TG=kr(),N6e=ke().fillText,I6e=Xm().getLineWidth,M_=Kr().hoverLabelText,B6e=(Et(),Fe(zt)).BADNUM;function H6e(e,r,t,a,n){var i=MG(e,r,t,a,n);if(i){var l=i.cd,o=l[0].trace,s=l[i.index];return i.color=AG(o,s),F6e.getComponentMethod("errorbars","hoverInfo")(s,o,i),[i]}}function MG(e,r,t,a,n){var i=e.cd,l=i[0].trace,o=i[0].t,s=a==="closest",u=l.type==="waterfall",f=e.maxHoverDistance,c=e.maxSpikeDistance,v,h,p,y,m,b,_;l.orientation==="h"?(v=t,h=r,p="y",y="x",m=H,b=F):(v=r,h=t,p="x",y="y",b=H,m=F);var w=l[p+"period"],x=s||w;function M(K){return A(K,-1)}function k(K){return A(K,1)}function A(K,he){var le=K.w;return K[p]+he*le/2}function S(K){return K[p+"End"]-K[p+"Start"]}var D=s?M:w?function(K){return K.p-S(K)/2}:function(K){return Math.min(M(K),K.p-o.bardelta/2)},P=s?k:w?function(K){return K.p+S(K)/2}:function(K){return Math.max(k(K),K.p+o.bardelta/2)};function R(K,he,le){return n.finiteRange&&(le=0),R2.inbox(K-v,he-v,le+Math.min(1,Math.abs(he-K)/_)-1)}function F(K){return R(D(K),P(K),f)}function N(K){return R(M(K),k(K),c)}function B(K){var he=K[y];if(u){var le=Math.abs(K.rawS)||0;h>0?he+=le:h<0&&(he-=le)}return he}function H(K){var he=h,le=K.b,_e=B(K);return R2.inbox(le-he,_e-he,f+(_e-he)/(_e-le)-1)}function O(K){var he=h,le=K.b,_e=B(K);return R2.inbox(le-he,_e-he,c+(_e-he)/(_e-le)-1)}var Y=e[p+"a"],G=e[y+"a"];_=Math.abs(Y.r2c(Y.range[1])-Y.r2c(Y.range[0]));function V(K){return(m(K)+b(K))/2}var W=R2.getDistanceFunction(a,m,b,V);if(R2.getClosest(i,W,e),e.index!==!1&&i[e.index].p!==B6e){x||(D=function(K){return Math.min(M(K),K.p-o.bargroupwidth/2)},P=function(K){return Math.max(k(K),K.p+o.bargroupwidth/2)});var X=e.index,$=i[X],te=l.base?$.b+$.s:$.s;e[y+"0"]=e[y+"1"]=G.c2p($[y],!0),e[y+"LabelVal"]=te;var ie=o.extents[o.extents.round($.p)];e[p+"0"]=Y.c2p(s?D($):ie[0],!0),e[p+"1"]=Y.c2p(s?P($):ie[1],!0);var ve=$.orig_p!==void 0;return e[p+"LabelVal"]=ve?$.orig_p:$.p,e.labelLabel=M_(Y,e[p+"LabelVal"],l[p+"hoverformat"]),e.valueLabel=M_(G,e[y+"LabelVal"],l[y+"hoverformat"]),e.baseLabel=M_(G,$.b,l[y+"hoverformat"]),e.spikeDistance=(O($)+N($))/2,e[p+"Spike"]=Y.c2p($.p,!0),N6e($,l,e),e.hovertemplate=l.hovertemplate,e}}function AG(e,r){var t=r.mcc||e.marker.color,a=r.mlcc||e.marker.line.color,n=I6e(e,r);if(TG.opacity(t))return t;if(TG.opacity(a)&&n)return a}kG.exports={hoverPoints:H6e,hoverOnBars:MG,getTraceColor:AG}});var LG=U((YSe,CG)=>{"use strict";CG.exports=function(r,t,a){return r.x="xVal"in t?t.xVal:t.x,r.y="yVal"in t?t.yVal:t.y,t.xa&&(r.xaxis=t.xa),t.ya&&(r.yaxis=t.ya),a.orientation==="h"?(r.label=r.y,r.value=r.x):(r.label=r.x,r.value=r.y),r}});var F2=U((GSe,SG)=>{"use strict";SG.exports=function(r,t){var a=r.cd,n=r.xaxis,i=r.yaxis,l=a[0].trace,o=l.type==="funnel",s=l.orientation==="h",u=[],f;if(t===!1)for(f=0;f{"use strict";qG.exports={attributes:to(),layoutAttributes:Gm(),supplyDefaults:ql().supplyDefaults,crossTraceDefaults:ql().crossTraceDefaults,supplyLayoutDefaults:x_(),calc:eG(),crossTraceCalc:yf().crossTraceCalc,colorbar:tm(),arraysToCalcdata:Vm(),plot:zf().plot,style:Qo().style,styleOnSelect:Qo().styleOnSelect,hoverPoints:z2().hoverPoints,eventData:LG(),selectPoints:F2(),moduleType:"trace",name:"bar",basePlotModule:Kl(),categories:["bar-like","cartesian","svg","bar","oriented","errorBarsOK","showLegend","zoomScale"],animatable:!0,meta:{}}});var EG=U((VSe,PG)=>{"use strict";PG.exports=DG()});var zG=U((XSe,RG)=>{"use strict";RG.exports=function(r,t){return{start:{valType:"any",editType:"calc"},end:{valType:"any",editType:"calc"},size:{valType:"any",editType:"calc"},editType:"calc"}}});var FG={};vt(FG,{eventDataKeys:()=>Y6e});var Y6e,NG=Lr(()=>{"use strict";Y6e=["binNumber"]});var C_=U((WSe,OG)=>{"use strict";var Rn=to(),IG=Gi().axisHoverFormat,{hovertemplateAttrs:G6e,texttemplateAttrs:U6e,templatefallbackAttrs:BG}=On(),A_=xa(),HG=zG(),V6e=(NG(),Fe(FG)),k_=At().extendFlat;OG.exports={x:{valType:"data_array",editType:"calc+clearAxisTypes"},y:{valType:"data_array",editType:"calc+clearAxisTypes"},xhoverformat:IG("x"),yhoverformat:IG("y"),text:k_({},Rn.text,{}),hovertext:k_({},Rn.hovertext,{}),orientation:Rn.orientation,histfunc:{valType:"enumerated",values:["count","sum","avg","min","max"],dflt:"count",editType:"calc"},histnorm:{valType:"enumerated",values:["","percent","probability","density","probability density"],dflt:"",editType:"calc"},cumulative:{enabled:{valType:"boolean",dflt:!1,editType:"calc"},direction:{valType:"enumerated",values:["increasing","decreasing"],dflt:"increasing",editType:"calc"},currentbin:{valType:"enumerated",values:["include","exclude","half"],dflt:"include",editType:"calc"},editType:"calc"},nbinsx:{valType:"integer",min:0,dflt:0,editType:"calc"},xbins:HG("x",!0),nbinsy:{valType:"integer",min:0,dflt:0,editType:"calc"},ybins:HG("y",!0),autobinx:{valType:"boolean",dflt:null,editType:"calc"},autobiny:{valType:"boolean",dflt:null,editType:"calc"},bingroup:{valType:"string",dflt:"",editType:"calc"},hovertemplate:G6e({},{keys:V6e.eventDataKeys}),hovertemplatefallback:BG(),texttemplate:U6e({arrayOk:!1,editType:"plot"},{keys:["label","value"]}),texttemplatefallback:BG({editType:"plot"}),textposition:k_({},Rn.textposition,{arrayOk:!1}),textfont:A_({arrayOk:!1,editType:"plot",colorEditType:"style"}),outsidetextfont:A_({arrayOk:!1,editType:"plot",colorEditType:"style"}),insidetextfont:A_({arrayOk:!1,editType:"plot",colorEditType:"style"}),insidetextanchor:Rn.insidetextanchor,textangle:Rn.textangle,cliponaxis:Rn.cliponaxis,constraintext:Rn.constraintext,marker:Rn.marker,offsetgroup:Rn.offsetgroup,alignmentgroup:Rn.alignmentgroup,selected:Rn.selected,unselected:Rn.unselected,zorder:Rn.zorder}});var VG=U((ZSe,UG)=>{"use strict";var YG=Ar(),N2=ke(),GG=kr(),X6e=ql().handleText,W6e=g_(),Z6e=C_();UG.exports=function(r,t,a,n){function i(_,w){return N2.coerce(r,t,Z6e,_,w)}var l=i("x"),o=i("y"),s=i("cumulative.enabled");s&&(i("cumulative.direction"),i("cumulative.currentbin")),i("text");var u=i("textposition");X6e(r,t,n,i,u,{moduleHasSelected:!0,moduleHasUnselected:!0,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),i("hovertext"),i("hovertemplate"),i("hovertemplatefallback"),i("xhoverformat"),i("yhoverformat");var f=i("orientation",o&&!l?"h":"v"),c=f==="v"?"x":"y",v=f==="v"?"y":"x",h=l&&o?Math.min(N2.minRowLength(l)&&N2.minRowLength(o)):N2.minRowLength(t[c]||[]);if(!h){t.visible=!1;return}t._length=h;var p=YG.getComponentMethod("calendars","handleTraceDefaults");p(r,t,["x","y"],n);var y=t[v];y&&i("histfunc"),i("histnorm"),i("autobin"+c),W6e(r,t,i,a,n),N2.coerceSelectionMarkerOpacity(t,i);var m=(t.marker.line||{}).color,b=YG.getComponentMethod("errorbars","supplyDefaults");b(r,t,m||GG.defaultLine,{axis:"y"}),b(r,t,m||GG.defaultLine,{axis:"x",inherit:"y"}),i("zorder")}});var JG=U((JSe,ZG)=>{"use strict";var I2=ke(),J6e=oa(),$m=Ar().traceIs,$6e=hf(),K6e=ql().validateCornerradius,XG=I2.nestedProperty,L_=cu().getAxisGroup,WG=[{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"}],j6e=["x","y"];ZG.exports=function(r,t){var a=t._histogramBinOpts={},n=[],i={},l=[],o,s,u,f,c,v,h;function p(H,O){return I2.coerce(o._input,o,o._module.attributes,H,O)}function y(H){return H.orientation==="v"?"x":"y"}function m(H,O){var Y=J6e.getFromTrace({_fullLayout:t},H,O);return Y.type}function b(H,O,Y){var G=H.uid+"__"+Y;O||(O=G);var V=m(H,Y),W=H[Y+"calendar"]||"",X=a[O],$=!0;X&&(V===X.axType&&W===X.calendar?($=!1,X.traces.push(H),X.dirs.push(Y)):(O=G,V!==X.axType&&I2.warn(["Attempted to group the bins of trace",H.index,"set on a","type:"+V,"axis","with bins on","type:"+X.axType,"axis."].join(" ")),W!==X.calendar&&I2.warn(["Attempted to group the bins of trace",H.index,"set with a",W,"calendar","with bins",X.calendar?"on a "+X.calendar+" calendar":"w/o a set calendar"].join(" ")))),$&&(a[O]={traces:[H],dirs:[Y],axType:V,calendar:H[Y+"calendar"]||""}),H["_"+Y+"bingroup"]=O}for(c=0;c{"use strict";var Ff=Gr();$G.exports={count:function(e,r,t){return t[e]++,1},sum:function(e,r,t,a){var n=a[r];return Ff(n)?(n=Number(n),t[e]+=n,n):0},avg:function(e,r,t,a,n){var i=a[r];return Ff(i)&&(i=Number(i),t[e]+=i,n[e]++),0},min:function(e,r,t,a){var n=a[r];if(Ff(n))if(n=Number(n),Ff(t[e])){if(t[e]>n){var i=n-t[e];return t[e]=n,i}}else return t[e]=n,n;return 0},max:function(e,r,t,a){var n=a[r];if(Ff(n))if(n=Number(n),Ff(t[e])){if(t[e]{"use strict";jG.exports={percent:function(e,r){for(var t=e.length,a=100/r,n=0;n{"use strict";eU.exports=function(r,t){for(var a=r.length,n=0,i=0;i{"use strict";var Nf=(Et(),Fe(zt)),Su=Nf.ONEAVGYEAR,tU=Nf.ONEAVGMONTH,jm=Nf.ONEDAY,aU=Nf.ONEHOUR,nU=Nf.ONEMIN,iU=Nf.ONESEC,lU=Kr().tickIncrement;uU.exports=function(r,t,a,n,i){var l=-1.1*t,o=-.1*t,s=r-o,u=a[0],f=a[1],c=Math.min(Km(u+o,u+s,n,i),Km(f+o,f+s,n,i)),v=Math.min(Km(u+l,u+o,n,i),Km(f+l,f+o,n,i)),h,p;if(c>v&&vjm){var y=h===Su?1:6,m=h===Su?"M12":"M1";return function(b,_){var w=n.c2d(b,Su,i),x=w.indexOf("-",y);x>0&&(w=w.slice(0,x));var M=n.d2c(w,0,i);if(MiU?e>jm?e>Su*1.1?Su:e>tU*1.1?tU:jm:e>aU?aU:e>nU?nU:iU:Math.pow(10,Math.floor(Math.log(e)/Math.LN10))}function Q6e(e,r,t,a,n,i){if(a&&e>jm){var l=sU(r,n,i),o=sU(t,n,i),s=e===Su?0:1;return l[s]!==o[s]}return Math.floor(t/e)-Math.floor(r/e)>.1}function sU(e,r,t){var a=r.c2d(e,Su,t).split("-");return a[0]===""&&(a.unshift(),a[0]="-"+a[0]),a}});var mU=U((eqe,pU)=>{"use strict";var S_=Gr(),dn=ke(),cU=Ar(),qi=Kr(),{hasColorscale:vU}=Un(),dU=uv(),e_e=Vm(),hU=KG(),r_e=QG(),t_e=rU(),a_e=fU();function n_e(e,r){var t=[],a=[],n=r.orientation==="h",i=qi.getFromId(e,n?r.yaxis:r.xaxis),l=n?"y":"x",o={x:"y",y:"x"}[l],s=r[l+"calendar"],u=r.cumulative,f,c=q_(e,r,i,l),v=c[0],h=c[1],p=typeof v.size=="string",y=[],m=p?y:v,b=[],_=[],w=[],x=0,M=r.histnorm,k=r.histfunc,A=M.indexOf("density")!==-1,S,D,P;u.enabled&&A&&(M=M.replace(/ ?density$/,""),A=!1);var R=k==="max"||k==="min",F=R?null:0,N=hU.count,B=r_e[M],H=!1,O=function(Me){return i.r2c(Me,0,s)},Y;for(dn.isArrayOrTypedArray(r[o])&&k!=="count"&&(Y=r[o],H=k==="avg",N=hU[k]),f=O(v.start),D=O(v.end)+(f-qi.tickIncrement(f,v.size,!1,s))/1e6;f=0&&P=_e;f--)if(a[f]){me=f;break}for(f=_e;f<=me;f++)if(S_(t[f])&&S_(a[f])){var ce={p:t[f],s:a[f],b:0};u.enabled||(ce.pts=w[f],X?ce.ph0=ce.ph1=w[f].length?h[w[f][0]]:t[f]:(r._computePh=!0,ce.ph0=K(y[f]),ce.ph1=K(y[f+1],!0))),le.push(ce)}return le.length===1&&(le[0].width1=qi.tickIncrement(le[0].p,v.size,!1,s)-le[0].p),vU(r,"marker")&&dU(e,r,{vals:r.marker.color,containerStr:"marker",cLetter:"c"}),vU(r,"marker.line")&&dU(e,r,{vals:r.marker.line.color,containerStr:"marker.line",cLetter:"c"}),e_e(le,r),dn.isArrayOrTypedArray(r.selectedpoints)&&dn.tagSelected(le,r,ie),le}function q_(e,r,t,a,n){var ve;var i=a+"bins",l=e._fullLayout,o=r["_"+a+"bingroup"],s=l._histogramBinOpts[o],u=l.barmode==="overlay",f,c,v,h,p,y,m,b=function(K){return t.r2c(K,0,h)},_=function(K){return t.c2r(K,0,h)},w=t.type==="date"?function(K){return K||K===0?dn.cleanDate(K,null,h):null}:function(K){return S_(K)?Number(K):null};function x(K,he,le){he[K+"Found"]?(he[K]=w(he[K]),he[K]===null&&(he[K]=le[K])):(y[K]=he[K]=le[K],dn.nestedProperty(c[0],i+"."+K).set(le[K]))}if(r["_"+a+"autoBinFinished"])delete r["_"+a+"autoBinFinished"];else{c=s.traces;var M=[],k=!0,A=!1,S=!1;for(f=0;ft.r2l(Y)&&(V=qi.tickIncrement(V,s.size,!0,h)),N.start=t.l2r(V),O||dn.nestedProperty(r,i+".start").set(N.start)}var W=s.end,X=t.r2l(F.end),$=X!==void 0;if((s.endFound||$)&&X!==t.r2l(W)){var te=$?X:dn.aggNums(Math.max,null,p);N.end=t.l2r(te),$||dn.nestedProperty(r,i+".start").set(N.end)}var ie="autobin"+a;return r._input[ie]===!1&&(r._input[i]=dn.extendFlat({},r[i]||{}),delete r._input[ie],delete r[ie]),[N,p]}function i_e(e,r,t,a,n){var i=e._fullLayout,l=l_e(e,r),o=!1,s=1/0,u=[r],f,c,v;for(f=0;f=0;a--)o(a);else if(r==="increasing"){for(a=1;a=0;a--)e[a]+=e[a+1];t==="exclude"&&(e.push(0),e.shift())}}pU.exports={calc:n_e,calcAllAutoBins:q_}});var gU=U((rqe,yU)=>{"use strict";var s_e=z2().hoverPoints,u_e=Kr().hoverLabelText;yU.exports=function(r,t,a,n,i){var l=s_e(r,t,a,n,i);if(l){r=l[0];var o=r.cd[r.index],s=r.cd[0].trace;if(!s.cumulative.enabled){var u=s.orientation==="h"?"y":"x";r[u+"Label"]=u_e(r[u+"a"],[o.ph0,o.ph1],s[u+"hoverformat"])}return l}}});var bU=U((tqe,xU)=>{"use strict";xU.exports=function(r,t,a,n,i){if(r.x="xVal"in t?t.xVal:t.x,r.y="yVal"in t?t.yVal:t.y,"zLabelVal"in t&&(r.z=t.zLabelVal),t.xa&&(r.xaxis=t.xa),t.ya&&(r.yaxis=t.ya),!(a.cumulative||{}).enabled){var l=Array.isArray(i)?n[0].pts[i[0]][i[1]]:n[i].pts;r.pointNumbers=l,r.binNumber=r.pointNumber,delete r.pointNumber,delete r.pointIndex,r.pointIndices=l}return r}});var wU=U((aqe,_U)=>{"use strict";_U.exports={attributes:C_(),layoutAttributes:Gm(),supplyDefaults:VG(),crossTraceDefaults:JG(),supplyLayoutDefaults:x_(),calc:mU().calc,crossTraceCalc:yf().crossTraceCalc,plot:zf().plot,layerName:"barlayer",style:Qo().style,styleOnSelect:Qo().styleOnSelect,colorbar:tm(),hoverPoints:gU(),selectPoints:F2(),eventData:bU(),moduleType:"trace",name:"histogram",basePlotModule:Kl(),categories:["bar-like","cartesian","svg","bar","histogram","oriented","errorBarsOK","showLegend"],meta:{}}});var MU=U((nqe,TU)=>{"use strict";TU.exports=wU()});var AU={};vt(AU,{eventDataKeys:()=>f_e});var f_e,kU=Lr(()=>{"use strict";f_e=["percentInitial","percentPrevious","percentTotal"]});var P_=U((iqe,qU)=>{"use strict";var _t=to(),D_=Zi().line,c_e=Mn(),CU=Gi().axisHoverFormat,{hovertemplateAttrs:v_e,texttemplateAttrs:d_e,templatefallbackAttrs:LU}=On(),SU=(kU(),Fe(AU)),ao=At().extendFlat,h_e=kr();qU.exports={x:_t.x,x0:_t.x0,dx:_t.dx,y:_t.y,y0:_t.y0,dy:_t.dy,xperiod:_t.xperiod,yperiod:_t.yperiod,xperiod0:_t.xperiod0,yperiod0:_t.yperiod0,xperiodalignment:_t.xperiodalignment,yperiodalignment:_t.yperiodalignment,xhoverformat:CU("x"),yhoverformat:CU("y"),hovertext:_t.hovertext,hovertemplate:v_e({},{keys:SU.eventDataKeys}),hovertemplatefallback:LU(),hoverinfo:ao({},c_e.hoverinfo,{flags:["name","x","y","text","percent initial","percent previous","percent total"]}),textinfo:{valType:"flaglist",flags:["label","text","percent initial","percent previous","percent total","value"],extras:["none"],editType:"plot",arrayOk:!1},texttemplate:d_e({editType:"plot"},{keys:SU.eventDataKeys.concat(["label","value"])}),texttemplatefallback:LU({editType:"plot"}),text:_t.text,textposition:_t.textposition,insidetextanchor:ao({},_t.insidetextanchor,{dflt:"middle"}),textangle:ao({},_t.textangle,{dflt:0}),textfont:_t.textfont,insidetextfont:_t.insidetextfont,outsidetextfont:_t.outsidetextfont,constraintext:_t.constraintext,cliponaxis:_t.cliponaxis,orientation:ao({},_t.orientation,{}),offset:ao({},_t.offset,{arrayOk:!1}),width:ao({},_t.width,{arrayOk:!1}),marker:p_e(),connector:{fillcolor:{valType:"color",editType:"style"},line:{color:ao({},D_.color,{dflt:h_e.defaultLine}),width:ao({},D_.width,{dflt:0,editType:"plot"}),dash:D_.dash,editType:"style"},visible:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},offsetgroup:_t.offsetgroup,alignmentgroup:_t.alignmentgroup,zorder:_t.zorder};function p_e(){var e=ao({},_t.marker);return delete e.pattern,delete e.cornerradius,e}});var E_=U((lqe,DU)=>{"use strict";DU.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"}}});var z_=U((oqe,EU)=>{"use strict";var Qm=ke(),m_e=hf(),y_e=ql().handleText,g_e=f2(),x_e=mu(),PU=P_(),R_=kr();function b_e(e,r,t,a){function n(c,v){return Qm.coerce(e,r,PU,c,v)}var i=g_e(e,r,a,n);if(!i){r.visible=!1;return}x_e(e,r,a,n),n("xhoverformat"),n("yhoverformat"),n("orientation",r.y&&!r.x?"v":"h"),n("offset"),n("width");var l=n("text");n("hovertext"),n("hovertemplate"),n("hovertemplatefallback");var o=n("textposition");y_e(e,r,a,n,o,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),r.textposition!=="none"&&!r.texttemplate&&n("textinfo",Qm.isArrayOrTypedArray(l)?"text+value":"value");var s=n("marker.color",t);n("marker.line.color",R_.defaultLine),n("marker.line.width");var u=n("connector.visible");if(u){n("connector.fillcolor",__e(s));var f=n("connector.line.width");f&&(n("connector.line.color"),n("connector.line.dash"))}n("zorder")}function __e(e){var r=Qm.isArrayOrTypedArray(e)?"#000":e;return R_.addOpacity(r,.5*R_.opacity(r))}function w_e(e,r){var t,a;function n(l){return Qm.coerce(a._input,a,PU,l)}for(var i=0;i{"use strict";var T_e=ke(),M_e=E_();RU.exports=function(e,r,t){var a=!1;function n(o,s){return T_e.coerce(e,r,M_e,o,s)}for(var i=0;i{"use strict";var If=ke();FU.exports=function(r,t){for(var a=0;a{"use strict";var IU=Kr(),BU=yu(),A_e=NU(),k_e=c2(),B2=(Et(),Fe(zt)).BADNUM;HU.exports=function(r,t){var a=IU.getFromId(r,t.xaxis||"x"),n=IU.getFromId(r,t.yaxis||"y"),i,l,o,s,u,f,c,v;t.orientation==="h"?(i=a.makeCalcdata(t,"x"),o=n.makeCalcdata(t,"y"),s=BU(t,n,"y",o),u=!!t.yperiodalignment,f="y"):(i=n.makeCalcdata(t,"y"),o=a.makeCalcdata(t,"x"),s=BU(t,a,"x",o),u=!!t.xperiodalignment,f="x"),l=s.vals;var h=Math.min(l.length,i.length),p=new Array(h);for(t._base=[],c=0;c{"use strict";var YU=yf().setGroupPositions;GU.exports=function(r,t){var a=r._fullLayout,n=r._fullData,i=r.calcdata,l=t.xaxis,o=t.yaxis,s=[],u=[],f=[],c,v;for(v=0;v{"use strict";var ey=Er(),ts=ke(),VU=Zr(),rs=(Et(),Fe(zt)).BADNUM,C_e=zf(),L_e=il().clearMinTextSize;WU.exports=function(r,t,a,n){var i=r._fullLayout;L_e("funnel",i),S_e(r,t,a,n),q_e(r,t,a,n),C_e.plot(r,t,a,n,{mode:i.funnelmode,norm:i.funnelmode,gap:i.funnelgap,groupgap:i.funnelgroupgap})};function S_e(e,r,t,a){var n=r.xaxis,i=r.yaxis;ts.makeTraceGroups(a,t,"trace bars").each(function(l){var o=ey.select(this),s=l[0].trace,u=ts.ensureSingle(o,"g","regions");if(!s.connector||!s.connector.visible){u.remove();return}var f=s.orientation==="h",c=u.selectAll("g.region").data(ts.identity);c.enter().append("g").classed("region",!0),c.exit().remove();var v=c.size();c.each(function(h,p){if(!(p!==v-1&&!h.cNext)){var y=XU(h,n,i,f),m=y[0],b=y[1],_="";m[0]!==rs&&b[0]!==rs&&m[1]!==rs&&b[1]!==rs&&m[2]!==rs&&b[2]!==rs&&m[3]!==rs&&b[3]!==rs&&(f?_+="M"+m[0]+","+b[1]+"L"+m[2]+","+b[2]+"H"+m[3]+"L"+m[1]+","+b[1]+"Z":_+="M"+m[1]+","+b[1]+"L"+m[2]+","+b[3]+"V"+b[2]+"L"+m[1]+","+b[0]+"Z"),_===""&&(_="M0,0Z"),ts.ensureSingle(ey.select(this),"path").attr("d",_).call(VU.setClipUrl,r.layerClipId,e)}})})}function q_e(e,r,t,a){var n=r.xaxis,i=r.yaxis;ts.makeTraceGroups(a,t,"trace bars").each(function(l){var o=ey.select(this),s=l[0].trace,u=ts.ensureSingle(o,"g","lines");if(!s.connector||!s.connector.visible||!s.connector.line.width){u.remove();return}var f=s.orientation==="h",c=u.selectAll("g.line").data(ts.identity);c.enter().append("g").classed("line",!0),c.exit().remove();var v=c.size();c.each(function(h,p){if(!(p!==v-1&&!h.cNext)){var y=XU(h,n,i,f),m=y[0],b=y[1],_="";m[3]!==void 0&&b[3]!==void 0&&(f?(_+="M"+m[0]+","+b[1]+"L"+m[2]+","+b[2],_+="M"+m[1]+","+b[1]+"L"+m[3]+","+b[2]):(_+="M"+m[1]+","+b[1]+"L"+m[2]+","+b[3],_+="M"+m[1]+","+b[0]+"L"+m[2]+","+b[2])),_===""&&(_="M0,0Z"),ts.ensureSingle(ey.select(this),"path").attr("d",_).call(VU.setClipUrl,r.layerClipId,e)}})})}function XU(e,r,t,a){var n=[],i=[],l=a?r:t,o=a?t:r;return n[0]=l.c2p(e.s0,!0),i[0]=o.c2p(e.p0,!0),n[1]=l.c2p(e.s1,!0),i[1]=o.c2p(e.p1,!0),n[2]=l.c2p(e.nextS0,!0),i[2]=o.c2p(e.nextP0,!0),n[3]=l.c2p(e.nextS1,!0),i[3]=o.c2p(e.nextP1,!0),a?[n,i]:[i,n]}});var KU=U((dqe,$U)=>{"use strict";var H2=Er(),JU=Zr(),N_=kr(),D_e=(_0(),Fe(b0)).DESELECTDIM,P_e=Qo(),E_e=il().resizeText,R_e=P_e.styleTextPoints;function z_e(e,r,t){var a=t||H2.select(e).selectAll('g[class^="funnellayer"]').selectAll("g.trace");E_e(e,a,"funnel"),a.style("opacity",function(n){return n[0].trace.opacity}),a.each(function(n){var i=H2.select(this),l=n[0].trace;i.selectAll(".point > path").each(function(o){if(!o.isBlank){var s=l.marker;H2.select(this).call(N_.fill,o.mc||s.color).call(N_.stroke,o.mlc||s.line.color).call(JU.dashLine,s.line.dash,o.mlw||s.line.width).style("opacity",l.selectedpoints&&!o.selected?D_e:1)}}),R_e(i,l,e),i.selectAll(".regions").each(function(){H2.select(this).selectAll("path").style("stroke-width",0).call(N_.fill,l.connector.fillcolor)}),i.selectAll(".lines").each(function(){var o=l.connector.line;JU.lineGroupStyle(H2.select(this).selectAll("path"),o.width,o.color,o.dash)})})}$U.exports={style:z_e}});var eV=U((hqe,QU)=>{"use strict";var jU=kr().opacity,F_e=z2().hoverOnBars,I_=ke().formatPercent;QU.exports=function(r,t,a,n,i){var l=F_e(r,t,a,n,i);if(l){var o=l.cd,s=o[0].trace,u=s.orientation==="h",f=l.index,c=o[f],v=u?"x":"y";l[v+"LabelVal"]=c.s,l.percentInitial=c.begR,l.percentInitialLabel=I_(c.begR,1),l.percentPrevious=c.difR,l.percentPreviousLabel=I_(c.difR,1),l.percentTotal=c.sumR,l.percentTotalLabel=I_(c.sumR,1);var h=c.hi||s.hoverinfo,p=[];if(h&&h!=="none"&&h!=="skip"){var y=h==="all",m=h.split("+"),b=function(_){return y||m.indexOf(_)!==-1};b("percent initial")&&p.push(l.percentInitialLabel+" of initial"),b("percent previous")&&p.push(l.percentPreviousLabel+" of previous"),b("percent total")&&p.push(l.percentTotalLabel+" of total")}return l.extraText=p.join("
"),l.color=N_e(s,c),[l]}};function N_e(e,r){var t=e.marker,a=r.mc||t.color,n=r.mlc||t.line.color,i=r.mlw||t.line.width;if(jU(a))return a;if(jU(n)&&i)return n}});var tV=U((pqe,rV)=>{"use strict";rV.exports=function(r,t){return r.x="xVal"in t?t.xVal:t.x,r.y="yVal"in t?t.yVal:t.y,"percentInitial"in t&&(r.percentInitial=t.percentInitial),"percentPrevious"in t&&(r.percentPrevious=t.percentPrevious),"percentTotal"in t&&(r.percentTotal=t.percentTotal),t.xa&&(r.xaxis=t.xa),t.ya&&(r.yaxis=t.ya),r}});var nV=U((mqe,aV)=>{"use strict";aV.exports={attributes:P_(),layoutAttributes:E_(),supplyDefaults:z_().supplyDefaults,crossTraceDefaults:z_().crossTraceDefaults,supplyLayoutDefaults:zU(),calc:OU(),crossTraceCalc:UU(),plot:ZU(),style:KU().style,hoverPoints:eV(),eventData:tV(),selectPoints:F2(),moduleType:"trace",name:"funnel",basePlotModule:Kl(),categories:["bar-like","cartesian","svg","oriented","showLegend","zoomScale"],meta:{}}});var lV=U((yqe,iV)=>{"use strict";iV.exports=nV()});var oV={};vt(oV,{eventDataKeys:()=>I_e});var I_e,sV=Lr(()=>{"use strict";I_e=["initial","delta","final"]});var O_=U((gqe,vV)=>{"use strict";var mt=to(),B_=Zi().line,B_e=Mn(),uV=Gi().axisHoverFormat,{hovertemplateAttrs:H_e,texttemplateAttrs:O_e,templatefallbackAttrs:fV}=On(),cV=(sV(),Fe(oV)),Bf=At().extendFlat,Y_e=kr();function H_(e){return{marker:{color:Bf({},mt.marker.color,{arrayOk:!1,editType:"style"}),line:{color:Bf({},mt.marker.line.color,{arrayOk:!1,editType:"style"}),width:Bf({},mt.marker.line.width,{arrayOk:!1,editType:"style"}),editType:"style"},editType:"style"},editType:"style"}}vV.exports={measure:{valType:"data_array",dflt:[],editType:"calc"},base:{valType:"number",dflt:null,arrayOk:!1,editType:"calc"},x:mt.x,x0:mt.x0,dx:mt.dx,y:mt.y,y0:mt.y0,dy:mt.dy,xperiod:mt.xperiod,yperiod:mt.yperiod,xperiod0:mt.xperiod0,yperiod0:mt.yperiod0,xperiodalignment:mt.xperiodalignment,yperiodalignment:mt.yperiodalignment,xhoverformat:uV("x"),yhoverformat:uV("y"),hovertext:mt.hovertext,hovertemplate:H_e({},{keys:cV.eventDataKeys}),hovertemplatefallback:fV(),hoverinfo:Bf({},B_e.hoverinfo,{flags:["name","x","y","text","initial","delta","final"]}),textinfo:{valType:"flaglist",flags:["label","text","initial","delta","final"],extras:["none"],editType:"plot",arrayOk:!1},texttemplate:O_e({editType:"plot"},{keys:cV.eventDataKeys.concat(["label"])}),texttemplatefallback:fV({editType:"plot"}),text:mt.text,textposition:mt.textposition,insidetextanchor:mt.insidetextanchor,textangle:mt.textangle,textfont:mt.textfont,insidetextfont:mt.insidetextfont,outsidetextfont:mt.outsidetextfont,constraintext:mt.constraintext,cliponaxis:mt.cliponaxis,orientation:mt.orientation,offset:mt.offset,width:mt.width,increasing:H_("increasing"),decreasing:H_("decreasing"),totals:H_("intermediate sums and total"),connector:{line:{color:Bf({},B_.color,{dflt:Y_e.defaultLine}),width:Bf({},B_.width,{editType:"plot"}),dash:B_.dash,editType:"plot"},mode:{valType:"enumerated",values:["spanning","between"],dflt:"between",editType:"plot"},visible:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},offsetgroup:mt.offsetgroup,alignmentgroup:mt.alignmentgroup,zorder:mt.zorder}});var Y_=U((xqe,dV)=>{"use strict";dV.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"}}});var Hf={};vt(Hf,{DECREASING:()=>U_e,INCREASING:()=>G_e});var G_e,U_e,Of=Lr(()=>{"use strict";G_e={COLOR:"#3D9970",SYMBOL:"\u25B2"},U_e={COLOR:"#FF4136",SYMBOL:"\u25BC"}});var U_=U((bqe,yV)=>{"use strict";var hV=ke(),V_e=hf(),X_e=ql().handleText,W_e=f2(),Z_e=mu(),pV=O_(),J_e=kr(),mV=(Of(),Fe(Hf)),$_e=mV.INCREASING.COLOR,K_e=mV.DECREASING.COLOR,j_e="#4499FF";function G_(e,r,t){e(r+".marker.color",t),e(r+".marker.line.color",J_e.defaultLine),e(r+".marker.line.width")}function Q_e(e,r,t,a){function n(u,f){return hV.coerce(e,r,pV,u,f)}var i=W_e(e,r,a,n);if(!i){r.visible=!1;return}Z_e(e,r,a,n),n("xhoverformat"),n("yhoverformat"),n("measure"),n("orientation",r.x&&!r.y?"h":"v"),n("base"),n("offset"),n("width"),n("text"),n("hovertext"),n("hovertemplate"),n("hovertemplatefallback");var l=n("textposition");X_e(e,r,a,n,l,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),r.textposition!=="none"&&(n("texttemplate"),n("texttemplatefallback"),r.texttemplate||n("textinfo")),G_(n,"increasing",$_e),G_(n,"decreasing",K_e),G_(n,"totals",j_e);var o=n("connector.visible");if(o){n("connector.mode");var s=n("connector.line.width");s&&(n("connector.line.color"),n("connector.line.dash"))}n("zorder")}function e7e(e,r){var t,a;function n(l){return hV.coerce(a._input,a,pV,l)}if(r.waterfallmode==="group")for(var i=0;i{"use strict";var r7e=ke(),t7e=Y_();gV.exports=function(e,r,t){var a=!1;function n(o,s){return r7e.coerce(e,r,t7e,o,s)}for(var i=0;i{"use strict";var bV=Kr(),_V=yu(),wV=ke().mergeArray,a7e=c2(),TV=(Et(),Fe(zt)).BADNUM;function V_(e){return e==="a"||e==="absolute"}function X_(e){return e==="t"||e==="total"}MV.exports=function(r,t){var a=bV.getFromId(r,t.xaxis||"x"),n=bV.getFromId(r,t.yaxis||"y"),i,l,o,s,u,f;t.orientation==="h"?(i=a.makeCalcdata(t,"x"),o=n.makeCalcdata(t,"y"),s=_V(t,n,"y",o),u=!!t.yperiodalignment,f="y"):(i=n.makeCalcdata(t,"y"),o=a.makeCalcdata(t,"x"),s=_V(t,a,"x",o),u=!!t.xperiodalignment,f="x"),l=s.vals;for(var c=Math.min(l.length,i.length),v=new Array(c),h=0,p,y=!1,m=0;m{"use strict";var kV=yf().setGroupPositions;CV.exports=function(r,t){var a=r._fullLayout,n=r._fullData,i=r.calcdata,l=t.xaxis,o=t.yaxis,s=[],u=[],f=[],c,v;for(v=0;v{"use strict";var SV=Er(),ry=ke(),n7e=Zr(),Yf=(Et(),Fe(zt)).BADNUM,i7e=zf(),l7e=il().clearMinTextSize;qV.exports=function(r,t,a,n){var i=r._fullLayout;l7e("waterfall",i),i7e.plot(r,t,a,n,{mode:i.waterfallmode,norm:i.waterfallmode,gap:i.waterfallgap,groupgap:i.waterfallgroupgap}),o7e(r,t,a,n)};function o7e(e,r,t,a){var n=r.xaxis,i=r.yaxis;ry.makeTraceGroups(a,t,"trace bars").each(function(l){var o=SV.select(this),s=l[0].trace,u=ry.ensureSingle(o,"g","lines");if(!s.connector||!s.connector.visible){u.remove();return}var f=s.orientation==="h",c=s.connector.mode,v=u.selectAll("g.line").data(ry.identity);v.enter().append("g").classed("line",!0),v.exit().remove();var h=v.size();v.each(function(p,y){if(!(y!==h-1&&!p.cNext)){var m=s7e(p,n,i,f),b=m[0],_=m[1],w="";b[0]!==Yf&&_[0]!==Yf&&b[1]!==Yf&&_[1]!==Yf&&(c==="spanning"&&!p.isSum&&y>0&&(f?w+="M"+b[0]+","+_[1]+"V"+_[0]:w+="M"+b[1]+","+_[0]+"H"+b[0]),c!=="between"&&(p.isSum||y{"use strict";var ty=Er(),PV=Zr(),EV=kr(),u7e=(_0(),Fe(b0)).DESELECTDIM,f7e=Qo(),c7e=il().resizeText,v7e=f7e.styleTextPoints;function d7e(e,r,t){var a=t||ty.select(e).selectAll('g[class^="waterfalllayer"]').selectAll("g.trace");c7e(e,a,"waterfall"),a.style("opacity",function(n){return n[0].trace.opacity}),a.each(function(n){var i=ty.select(this),l=n[0].trace;i.selectAll(".point > path").each(function(o){if(!o.isBlank){var s=l[o.dir].marker;ty.select(this).call(EV.fill,s.color).call(EV.stroke,s.line.color).call(PV.dashLine,s.line.dash,s.line.width).style("opacity",l.selectedpoints&&!o.selected?u7e:1)}}),v7e(i,l,e),i.selectAll(".lines").each(function(){var o=l.connector.line;PV.lineGroupStyle(ty.select(this).selectAll("path"),o.width,o.color,o.dash)})})}RV.exports={style:d7e}});var HV=U((kqe,BV)=>{"use strict";var h7e=Kr().hoverLabelText,FV=kr().opacity,p7e=z2().hoverOnBars,NV=(Of(),Fe(Hf)),IV={increasing:NV.INCREASING.SYMBOL,decreasing:NV.DECREASING.SYMBOL};BV.exports=function(r,t,a,n,i){var l=p7e(r,t,a,n,i);if(!l)return;var o=l.cd,s=o[0].trace,u=s.orientation==="h",f=u?"x":"y",c=u?r.xa:r.ya;function v(k){return h7e(c,k,s[f+"hoverformat"])}var h=l.index,p=o[h],y=p.isSum?p.b+p.s:p.rawS;l.initial=p.b+p.s-y,l.delta=y,l.final=l.initial+l.delta;var m=v(Math.abs(l.delta));l.deltaLabel=y<0?"("+m+")":m,l.finalLabel=v(l.final),l.initialLabel=v(l.initial);var b=p.hi||s.hoverinfo,_=[];if(b&&b!=="none"&&b!=="skip"){var w=b==="all",x=b.split("+"),M=function(k){return w||x.indexOf(k)!==-1};p.isSum||(M("final")&&(u?!M("x"):!M("y"))&&_.push(l.finalLabel),M("delta")&&(y<0?_.push(l.deltaLabel+" "+IV.decreasing):_.push(l.deltaLabel+" "+IV.increasing)),M("initial")&&_.push("Initial: "+l.initialLabel))}return _.length&&(l.extraText=_.join("
")),l.color=m7e(s,p),[l]};function m7e(e,r){var t=e[r.dir].marker,a=t.color,n=t.line.color,i=t.line.width;if(FV(a))return a;if(FV(n)&&i)return n}});var YV=U((Cqe,OV)=>{"use strict";OV.exports=function(r,t){return r.x="xVal"in t?t.xVal:t.x,r.y="yVal"in t?t.yVal:t.y,"initial"in t&&(r.initial=t.initial),"delta"in t&&(r.delta=t.delta),"final"in t&&(r.final=t.final),t.xa&&(r.xaxis=t.xa),t.ya&&(r.yaxis=t.ya),r}});var UV=U((Lqe,GV)=>{"use strict";GV.exports={attributes:O_(),layoutAttributes:Y_(),supplyDefaults:U_().supplyDefaults,crossTraceDefaults:U_().crossTraceDefaults,supplyLayoutDefaults:xV(),calc:AV(),crossTraceCalc:LV(),plot:DV(),style:zV().style,hoverPoints:HV(),eventData:YV(),selectPoints:F2(),moduleType:"trace",name:"waterfall",basePlotModule:Kl(),categories:["bar-like","cartesian","svg","oriented","showLegend","zoomScale"],meta:{}}});var XV=U((Sqe,VV)=>{"use strict";VV.exports=UV()});var iy=U((qqe,ZV)=>{"use strict";var ay=Mn(),y7e=$o().attributes,g7e=xa(),x7e=ui(),{hovertemplateAttrs:b7e,texttemplateAttrs:_7e,templatefallbackAttrs:WV}=On(),as=At().extendFlat,w7e=Bi().pattern,ny=g7e({editType:"plot",arrayOk:!0,colorEditType:"plot"});ZV.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:x7e.defaultLine,arrayOk:!0,editType:"style"},width:{valType:"number",min:0,dflt:0,arrayOk:!0,editType:"style"},editType:"calc"},pattern:w7e,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:as({},ay.hoverinfo,{flags:["label","text","value","percent","name"]}),hovertemplate:b7e({},{keys:["label","color","value","percent","text"]}),hovertemplatefallback:WV(),texttemplate:_7e({editType:"plot"},{keys:["label","color","value","percent","text"]}),texttemplatefallback:WV({editType:"plot"}),textposition:{valType:"enumerated",values:["inside","outside","auto","none"],dflt:"auto",arrayOk:!0,editType:"plot"},textfont:as({},ny,{}),insidetextorientation:{valType:"enumerated",values:["horizontal","radial","tangential","auto"],dflt:"auto",editType:"plot"},insidetextfont:as({},ny,{}),outsidetextfont:as({},ny,{}),automargin:{valType:"boolean",dflt:!1,editType:"plot"},showlegend:as({},ay.showlegend,{arrayOk:!0}),legend:as({},ay.legend,{arrayOk:!0}),legendrank:as({},ay.legendrank,{arrayOk:!0}),title:{text:{valType:"string",dflt:"",editType:"plot"},font:as({},ny,{}),position:{valType:"enumerated",values:["top left","top center","top right","middle center","bottom left","bottom center","bottom right"],editType:"plot"},editType:"plot"},domain:y7e({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"}}});var ly=U((Dqe,KV)=>{"use strict";var T7e=Gr(),O2=ke(),M7e=iy(),A7e=$o().defaults,k7e=ql().handleText,C7e=ke().coercePattern;function JV(e,r){var t=O2.isArrayOrTypedArray(e),a=O2.isArrayOrTypedArray(r),n=Math.min(t?e.length:1/0,a?r.length:1/0);if(isFinite(n)||(n=0),n&&a){for(var i,l=0;l0){i=!0;break}}i||(n=0)}return{hasLabels:t,hasValues:a,len:n}}function $V(e,r,t,a,n){var i=a("marker.line.width");i&&a("marker.line.color",n?void 0:t.paper_bgcolor);var l=a("marker.colors");C7e(a,"marker.pattern",l),e.marker&&!r.marker.pattern.fgcolor&&(r.marker.pattern.fgcolor=e.marker.colors),r.marker.pattern.bgcolor||(r.marker.pattern.bgcolor=t.paper_bgcolor)}function L7e(e,r,t,a){function n(_,w){return O2.coerce(e,r,M7e,_,w)}var i=n("labels"),l=n("values"),o=JV(i,l),s=o.len;if(r._hasLabels=o.hasLabels,r._hasValues=o.hasValues,!r._hasLabels&&r._hasValues&&(n("label0"),n("dlabel")),!s){r.visible=!1;return}r._length=s,$V(e,r,a,n,!0),n("scalegroup");var u=n("text"),f=n("texttemplate");n("texttemplatefallback");var c;if(f||(c=n("textinfo",O2.isArrayOrTypedArray(u)?"text+percent":"percent")),n("hovertext"),n("hovertemplate"),n("hovertemplatefallback"),f||c&&c!=="none"){var v=n("textposition");k7e(e,r,a,n,v,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1});var h=Array.isArray(v)||v==="auto",p=h||v==="outside";p&&n("automargin"),(v==="inside"||v==="auto"||Array.isArray(v))&&n("insidetextorientation")}else c==="none"&&n("textposition","none");A7e(r,a,n);var y=n("hole"),m=n("title.text");if(m){var b=n("title.position",y?"middle center":"top center");!y&&b==="middle center"&&(r.title.position="top center"),O2.coerceFont(n,"title.font",a.font)}n("sort"),n("direction"),n("rotation"),n("pull")}KV.exports={handleLabelsAndValues:JV,handleMarkerDefaults:$V,supplyDefaults:L7e}});var oy=U((Pqe,jV)=>{"use strict";jV.exports={hiddenlabels:{valType:"data_array",editType:"calc"},piecolorway:{valType:"colorlist",editType:"calc"},extendpiecolors:{valType:"boolean",dflt:!0,editType:"calc"}}});var eX=U((Eqe,QV)=>{"use strict";var S7e=ke(),q7e=oy();QV.exports=function(r,t){function a(n,i){return S7e.coerce(r,t,q7e,n,i)}a("hiddenlabels"),a("piecolorway",t.colorway),a("extendpiecolors")}});var sy=U((Rqe,aX)=>{"use strict";var D7e=Gr(),Gf=kr(),P7e={};function E7e(e,r){var t=[],a=e._fullLayout,n=a.hiddenlabels||[],i=r.labels,l=r.marker.colors||[],o=r.values,s=r._length,u=r._hasValues&&s,f,c;if(r.dlabel)for(i=new Array(s),f=0;f=0});var x=r.type==="funnelarea"?y:r.sort;return x&&t.sort(function(M,k){return k.v-M.v}),t[0]&&(t[0].vTotal=p),t}function rX(e){return function(t,a){if(!t||!Gf.isValid(t))return!1;let n=Gf.rgbaString(t);return e[a]||(e[a]=n),n}}function R7e(e,r){var t=(r||{}).type;t||(t="pie");var a=e._fullLayout,n=e.calcdata,i=a[t+"colorway"],l=a["_"+t+"colormap"];a["extend"+t+"colors"]&&(i=tX(i,P7e));for(var o=0,s=0;s{"use strict";var z7e=Ui().appendArrayMultiPointValues;nX.exports=function(r,t){var a={curveNumber:t.index,pointNumbers:r.pts,data:t._input,fullData:t,label:r.label,color:r.color,value:r.v,percent:r.percent,text:r.text,bbox:r.bbox,v:r.v};return r.pts.length===1&&(a.pointNumber=a.i=r.pts[0]),z7e(a,t,r.pts),t.type==="funnelarea"&&(delete a.v,delete a.i),a}});var J_=U((Fqe,kX)=>{"use strict";var zn=Er(),F7e=Xt(),uy=yi(),cX=kr(),no=Zr(),Ua=ke(),N7e=Ua.strScale,lX=Ua.strTranslate,W_=ma(),vX=il(),I7e=vX.recordMinTextSize,B7e=vX.clearMinTextSize,dX=(h2(),Fe(d2)).TEXTPAD,Dr=kv(),fy=iX(),oX=ke().isValidTextValue;function H7e(e,r){var t=e._context.staticPlot,a=e._fullLayout,n=a._size;B7e("pie",a),mX(r,e),TX(r,n);var i=Ua.makeTraceGroups(a._pielayer,r,"trace").each(function(l){var o=zn.select(this),s=l[0],u=s.trace;J7e(l),o.attr("stroke-linejoin","round"),o.each(function(){var f=zn.select(this).selectAll("g.slice").data(l);f.enter().append("g").classed("slice",!0),f.exit().remove();var c=[[[],[]],[[],[]]],v=!1;f.each(function(x,M){if(x.hidden){zn.select(this).selectAll("path,g").remove();return}x.pointNumber=x.i,x.curveNumber=u.index,c[x.pxmid[1]<0?0:1][x.pxmid[0]<0?0:1].push(x);var k=s.cx,A=s.cy,S=zn.select(this),D=S.selectAll("path.surface").data([x]);if(D.enter().append("path").classed("surface",!0).style({"pointer-events":t?"none":"all"}),S.call(hX,e,l),u.pull){var P=+Dr.castOption(u.pull,x.pts)||0;P>0&&(k+=P*x.pxmid[0],A+=P*x.pxmid[1])}x.cxFinal=k,x.cyFinal=A;function R(G,V,W,X){var $=X*(V[0]-G[0]),te=X*(V[1]-G[1]);return"a"+X*s.r+","+X*s.r+" 0 "+x.largeArc+(W?" 1 ":" 0 ")+$+","+te}var F=u.hole;if(x.v===s.vTotal){var N="M"+(k+x.px0[0])+","+(A+x.px0[1])+R(x.px0,x.pxmid,!0,1)+R(x.pxmid,x.px0,!0,1)+"Z";F?D.attr("d","M"+(k+F*x.px0[0])+","+(A+F*x.px0[1])+R(x.px0,x.pxmid,!1,F)+R(x.pxmid,x.px0,!1,F)+"Z"+N):D.attr("d",N)}else{var B=R(x.px0,x.px1,!0,1);if(F){var H=1-F;D.attr("d","M"+(k+F*x.px1[0])+","+(A+F*x.px1[1])+R(x.px1,x.px0,!1,F)+"l"+H*x.px0[0]+","+H*x.px0[1]+B+"Z")}else D.attr("d","M"+k+","+A+"l"+x.px0[0]+","+x.px0[1]+B+"Z")}MX(e,x,s);var O=Dr.castOption(u.textposition,x.pts),Y=S.selectAll("g.slicetext").data(x.text&&O!=="none"?[0]:[]);Y.enter().append("g").classed("slicetext",!0),Y.exit().remove(),Y.each(function(){var G=Ua.ensureSingle(zn.select(this),"text","",function(K){K.attr("data-notex",1)}),V=Ua.ensureUniformFontSize(e,O==="outside"?Y7e(u,x,a.font):pX(u,x,a.font));G.text(x.text).attr({class:"slicetext",transform:"","text-anchor":"middle"}).call(no.font,V).call(W_.convertToTspans,e);var W=no.bBox(G.node()),X;if(O==="outside")X=fX(W,x);else if(X=yX(W,x,s),O==="auto"&&X.scale<1){var $=Ua.ensureUniformFontSize(e,u.outsidetextfont);G.call(no.font,$),W=no.bBox(G.node()),X=fX(W,x)}var te=X.textPosAngle,ie=te===void 0?x.pxmid:cy(s.r,te);if(X.targetX=k+ie[0]*X.rCenter+(X.x||0),X.targetY=A+ie[1]*X.rCenter+(X.y||0),AX(X,W),X.outside){var ve=X.targetY;x.yLabelMin=ve-W.height/2,x.yLabelMid=ve,x.yLabelMax=ve+W.height/2,x.labelExtraX=0,x.labelExtraY=0,v=!0}X.fontSize=V.size,I7e(u.type,X,a),l[M].transform=X,Ua.setTransormAndDisplay(G,X)})});var h=zn.select(this).selectAll("g.titletext").data(u.title.text?[0]:[]);if(h.enter().append("g").classed("titletext",!0),h.exit().remove(),h.each(function(){var x=Ua.ensureSingle(zn.select(this),"text","",function(A){A.attr("data-notex",1)}),M=u.title.text;u._meta&&(M=Ua.templateString(M,u._meta)),x.text(M).attr({class:"titletext",transform:"","text-anchor":"middle"}).call(no.font,u.title.font).call(W_.convertToTspans,e);var k;u.title.position==="middle center"?k=V7e(s):k=_X(s,n),x.attr("transform",lX(k.x,k.y)+N7e(Math.min(1,k.scale))+lX(k.tx,k.ty))}),v&&W7e(c,u),O7e(f,u),v&&u.automargin){var p=no.bBox(o.node()),y=u.domain,m=n.w*(y.x[1]-y.x[0]),b=n.h*(y.y[1]-y.y[0]),_=(.5*m-s.r)/n.w,w=(.5*b-s.r)/n.h;F7e.autoMargin(e,"pie."+u.uid+".automargin",{xl:y.x[0]-_,xr:y.x[1]+_,yb:y.y[0]-w,yt:y.y[1]+w,l:Math.max(s.cx-s.r-p.left,0),r:Math.max(p.right-(s.cx+s.r),0),b:Math.max(p.bottom-(s.cy+s.r),0),t:Math.max(s.cy-s.r-p.top,0),pad:5})}})});setTimeout(function(){i.selectAll("tspan").each(function(){var l=zn.select(this);l.attr("dy")&&l.attr("dy",l.attr("dy"))})},0)}function O7e(e,r){e.each(function(t){var a=zn.select(this);if(!t.labelExtraX&&!t.labelExtraY){a.select("path.textline").remove();return}var n=a.select("g.slicetext text");t.transform.targetX+=t.labelExtraX,t.transform.targetY+=t.labelExtraY,Ua.setTransormAndDisplay(n,t.transform);var i=t.cxFinal+t.pxmid[0],l=t.cyFinal+t.pxmid[1],o="M"+i+","+l,s=(t.yLabelMax-t.yLabelMin)*(t.pxmid[0]<0?-1:1)/4;if(t.labelExtraX){var u=t.labelExtraX*t.pxmid[1]/t.pxmid[0],f=t.yLabelMid+t.labelExtraY-(t.cyFinal+t.pxmid[1]);Math.abs(u)>Math.abs(f)?o+="l"+f*t.pxmid[0]/t.pxmid[1]+","+f+"H"+(i+t.labelExtraX+s):o+="l"+t.labelExtraX+","+u+"v"+(f-u)+"h"+s}else o+="V"+(t.yLabelMid+t.labelExtraY)+"h"+s;Ua.ensureSingle(a,"path","textline").call(cX.stroke,r.outsidetextfont.color).attr({"stroke-width":Math.min(2,r.outsidetextfont.size/8),d:o,fill:"none"})})}function hX(e,r,t){var a=t[0],n=a.cx,i=a.cy,l=a.trace,o=l.type==="funnelarea";"_hasHoverLabel"in l||(l._hasHoverLabel=!1),"_hasHoverEvent"in l||(l._hasHoverEvent=!1),e.on("mouseover",function(s){var u=r._fullLayout,f=r._fullData[l.index];if(!(r._dragging||u.hovermode===!1)){var c=f.hoverinfo;if(Array.isArray(c)&&(c=uy.castHoverinfo({hoverinfo:[Dr.castOption(c,s.pts)],_module:l._module},u,0)),c==="all"&&(c="label+text+value+percent+name"),f.hovertemplate||c!=="none"&&c!=="skip"&&c){var v=s.rInscribed||0,h=n+s.pxmid[0]*(1-v),p=i+s.pxmid[1]*(1-v),y=u.separators,m=[];if(c&&c.indexOf("label")!==-1&&m.push(s.label),s.text=Dr.castOption(f.hovertext||f.text,s.pts),c&&c.indexOf("text")!==-1){var b=s.text;Ua.isValidTextValue(b)&&m.push(b)}s.value=s.v,s.valueLabel=Dr.formatPieValue(s.v,y),c&&c.indexOf("value")!==-1&&m.push(s.valueLabel),s.percent=s.v/a.vTotal,s.percentLabel=Dr.formatPiePercent(s.percent,y),c&&c.indexOf("percent")!==-1&&m.push(s.percentLabel);var _=f.hoverlabel,w=_.font,x=[];uy.loneHover({trace:l,x0:h-v*a.r,x1:h+v*a.r,y:p,_x0:o?n+s.TL[0]:h-v*a.r,_x1:o?n+s.TR[0]:h+v*a.r,_y0:o?i+s.TL[1]:p-v*a.r,_y1:o?i+s.BL[1]:p+v*a.r,text:m.join("
"),name:f.hovertemplate||c.indexOf("name")!==-1?f.name:void 0,idealAlign:s.pxmid[0]<0?"left":"right",color:Dr.castOption(_.bgcolor,s.pts)||s.color,borderColor:Dr.castOption(_.bordercolor,s.pts),fontFamily:Dr.castOption(w.family,s.pts),fontSize:Dr.castOption(w.size,s.pts),fontColor:Dr.castOption(w.color,s.pts),nameLength:Dr.castOption(_.namelength,s.pts),textAlign:Dr.castOption(_.align,s.pts),hovertemplate:Dr.castOption(f.hovertemplate,s.pts),hovertemplateLabels:s,eventData:[fy(s,f)]},{container:u._hoverlayer.node(),outerContainer:u._paper.node(),gd:r,inOut_bbox:x}),s.bbox=x[0],l._hasHoverLabel=!0}l._hasHoverEvent=!0,r.emit("plotly_hover",{points:[fy(s,f)],event:zn.event})}}),e.on("mouseout",function(s){var u=r._fullLayout,f=r._fullData[l.index],c=zn.select(this).datum();l._hasHoverEvent&&(s.originalEvent=zn.event,r.emit("plotly_unhover",{points:[fy(c,f)],event:zn.event}),l._hasHoverEvent=!1),l._hasHoverLabel&&(uy.loneUnhover(u._hoverlayer.node()),l._hasHoverLabel=!1)}),e.on("click",function(s){var u=r._fullLayout,f=r._fullData[l.index];r._dragging||u.hovermode===!1||(r._hoverdata=[fy(s,f)],uy.click(r,zn.event))})}function Y7e(e,r,t){var a=Dr.castOption(e.outsidetextfont.color,r.pts)||Dr.castOption(e.textfont.color,r.pts)||t.color,n=Dr.castOption(e.outsidetextfont.family,r.pts)||Dr.castOption(e.textfont.family,r.pts)||t.family,i=Dr.castOption(e.outsidetextfont.size,r.pts)||Dr.castOption(e.textfont.size,r.pts)||t.size,l=Dr.castOption(e.outsidetextfont.weight,r.pts)||Dr.castOption(e.textfont.weight,r.pts)||t.weight,o=Dr.castOption(e.outsidetextfont.style,r.pts)||Dr.castOption(e.textfont.style,r.pts)||t.style,s=Dr.castOption(e.outsidetextfont.variant,r.pts)||Dr.castOption(e.textfont.variant,r.pts)||t.variant,u=Dr.castOption(e.outsidetextfont.textcase,r.pts)||Dr.castOption(e.textfont.textcase,r.pts)||t.textcase,f=Dr.castOption(e.outsidetextfont.lineposition,r.pts)||Dr.castOption(e.textfont.lineposition,r.pts)||t.lineposition,c=Dr.castOption(e.outsidetextfont.shadow,r.pts)||Dr.castOption(e.textfont.shadow,r.pts)||t.shadow;return{color:a,family:n,size:i,weight:l,style:o,variant:s,textcase:u,lineposition:f,shadow:c}}function pX(e,r,t){var a=Dr.castOption(e.insidetextfont.color,r.pts);!a&&e._input.textfont&&(a=Dr.castOption(e._input.textfont.color,r.pts));var n=Dr.castOption(e.insidetextfont.family,r.pts)||Dr.castOption(e.textfont.family,r.pts)||t.family,i=Dr.castOption(e.insidetextfont.size,r.pts)||Dr.castOption(e.textfont.size,r.pts)||t.size,l=Dr.castOption(e.insidetextfont.weight,r.pts)||Dr.castOption(e.textfont.weight,r.pts)||t.weight,o=Dr.castOption(e.insidetextfont.style,r.pts)||Dr.castOption(e.textfont.style,r.pts)||t.style,s=Dr.castOption(e.insidetextfont.variant,r.pts)||Dr.castOption(e.textfont.variant,r.pts)||t.variant,u=Dr.castOption(e.insidetextfont.textcase,r.pts)||Dr.castOption(e.textfont.textcase,r.pts)||t.textcase,f=Dr.castOption(e.insidetextfont.lineposition,r.pts)||Dr.castOption(e.textfont.lineposition,r.pts)||t.lineposition,c=Dr.castOption(e.insidetextfont.shadow,r.pts)||Dr.castOption(e.textfont.shadow,r.pts)||t.shadow;return{color:a||cX.contrast(r.color),family:n,size:i,weight:l,style:o,variant:s,textcase:u,lineposition:f,shadow:c}}function mX(e,r){for(var t,a,n=0;n=-4;_-=2)b(Math.PI*_,"tan");for(_=4;_>=-4;_-=2)b(Math.PI*(_+1),"tan")}if(c||h){for(_=4;_>=-4;_-=2)b(Math.PI*(_+1.5),"rad");for(_=4;_>=-4;_-=2)b(Math.PI*(_+.5),"rad")}}if(o||p||c){var w=Math.sqrt(e.width*e.width+e.height*e.height);if(m={scale:n*a*2/w,rCenter:1-n,rotate:0},m.textPosAngle=(r.startangle+r.stopangle)/2,m.scale>=1)return m;y.push(m)}(p||h)&&(m=sX(e,a,l,s,u),m.textPosAngle=(r.startangle+r.stopangle)/2,y.push(m)),(p||v)&&(m=uX(e,a,l,s,u),m.textPosAngle=(r.startangle+r.stopangle)/2,y.push(m));for(var x=0,M=0,k=0;k=1)break}return y[x]}function G7e(e,r){var t=e.startangle,a=e.stopangle;return t>r&&r>a||t0?1:-1)/2,y:i/(1+t*t/(a*a)),outside:!0}}function V7e(e){var r=Math.sqrt(e.titleBox.width*e.titleBox.width+e.titleBox.height*e.titleBox.height);return{x:e.cx,y:e.cy,scale:e.trace.hole*e.r*2/r,tx:0,ty:-e.titleBox.height/2+e.trace.title.font.size}}function _X(e,r){var t=1,a=1,n,i=e.trace,l={x:e.cx,y:e.cy},o={tx:0,ty:0};o.ty+=i.title.font.size,n=wX(i),i.title.position.indexOf("top")!==-1?(l.y-=(1+n)*e.r,o.ty-=e.titleBox.height):i.title.position.indexOf("bottom")!==-1&&(l.y+=(1+n)*e.r);var s=X7e(e.r,e.trace.aspectratio),u=r.w*(i.domain.x[1]-i.domain.x[0])/2;return i.title.position.indexOf("left")!==-1?(u=u+s,l.x-=(1+n)*s,o.tx+=e.titleBox.width/2):i.title.position.indexOf("center")!==-1?u*=2:i.title.position.indexOf("right")!==-1&&(u=u+s,l.x+=(1+n)*s,o.tx-=e.titleBox.width/2),t=u/e.titleBox.width,a=Z_(e,r)/e.titleBox.height,{x:l.x,y:l.y,scale:Math.min(t,a),tx:o.tx,ty:o.ty}}function X7e(e,r){return e/(r===void 0?1:r)}function Z_(e,r){var t=e.trace,a=r.h*(t.domain.y[1]-t.domain.y[0]);return Math.min(e.titleBox.height,a/2)}function wX(e){var r=e.pull;if(!r)return 0;var t;if(Ua.isArrayOrTypedArray(r))for(r=0,t=0;tr&&(r=e.pull[t]);return r}function W7e(e,r){var t,a,n,i,l,o,s,u,f,c,v,h,p;function y(w,x){return w.pxmid[1]-x.pxmid[1]}function m(w,x){return x.pxmid[1]-w.pxmid[1]}function b(w,x){x||(x={});var M=x.labelExtraY+(a?x.yLabelMax:x.yLabelMin),k=a?w.yLabelMin:w.yLabelMax,A=a?w.yLabelMax:w.yLabelMin,S=w.cyFinal+l(w.px0[1],w.px1[1]),D=M-k,P,R,F,N,B,H;if(D*s>0&&(w.labelExtraY=D),!!Ua.isArrayOrTypedArray(r.pull))for(R=0;R=(Dr.castOption(r.pull,F.pts)||0))&&((w.pxmid[1]-F.pxmid[1])*s>0?(N=F.cyFinal+l(F.px0[1],F.px1[1]),D=N-k-w.labelExtraY,D*s>0&&(w.labelExtraY+=D)):(A+w.labelExtraY-S)*s>0&&(P=3*o*Math.abs(R-c.indexOf(w)),B=F.cxFinal+i(F.px0[0],F.px1[0]),H=B+P-(w.cxFinal+w.pxmid[0])-w.labelExtraX,H*o>0&&(w.labelExtraX+=H)))}for(a=0;a<2;a++)for(n=a?y:m,l=a?Math.max:Math.min,s=a?1:-1,t=0;t<2;t++){for(i=t?Math.max:Math.min,o=t?1:-1,u=e[a][t],u.sort(n),f=e[1-a][t],c=f.concat(u),h=[],v=0;v1?(u=t.r,f=u/n.aspectratio):(f=t.r,u=f*n.aspectratio),u*=(1+n.baseratio)/2,s=u*f}l=Math.min(l,s/t.vTotal)}for(a=0;ar.vTotal/2?1:0,u.halfangle=Math.PI*Math.min(u.v/r.vTotal,.5),u.ring=1-a.hole,u.rInscribed=U7e(u,r))}function cy(e,r){return[e*Math.sin(r),-e*Math.cos(r)]}function MX(e,r,t){var a=e._fullLayout,n=t.trace,i=n.texttemplate,l=n.textinfo;if(!i&&l&&l!=="none"){var o=l.split("+"),s=function(x){return o.indexOf(x)!==-1},u=s("label"),f=s("text"),c=s("value"),v=s("percent"),h=a.separators,p;if(p=u?[r.label]:[],f){var y=Dr.getFirstFilled(n.text,r.pts);oX(y)&&p.push(y)}c&&p.push(Dr.formatPieValue(r.v,h)),v&&p.push(Dr.formatPiePercent(r.v/t.vTotal,h)),r.text=p.join("
")}function m(x){return{label:x.label,value:x.v,valueLabel:Dr.formatPieValue(x.v,a.separators),percent:x.v/t.vTotal,percentLabel:Dr.formatPiePercent(x.v/t.vTotal,a.separators),color:x.color,text:x.text,customdata:Ua.castOption(n,x.i,"customdata")}}if(i){var b=Ua.castOption(n,r.i,"texttemplate");if(!b)r.text="";else{var _=m(r),w=Dr.getFirstFilled(n.text,r.pts);(oX(w)||w==="")&&(_.text=w),r.text=Ua.texttemplateString({data:[_,n._meta],fallback:n.texttemplatefallback,labels:_,locale:e._fullLayout._d3locale,template:b})}}}function AX(e,r){var t=e.rotate*Math.PI/180,a=Math.cos(t),n=Math.sin(t),i=(r.left+r.right)/2,l=(r.top+r.bottom)/2;e.textX=i*a-l*n,e.textY=i*n+l*a,e.noCenter=!0}kX.exports={plot:H7e,formatSliceLabel:MX,transformInsideText:yX,determineInsideTextFont:pX,positionTitleOutside:_X,prerenderTitles:mX,layoutAreas:TX,attachFxHandlers:hX,computeTransform:AX}});var SX=U((Nqe,LX)=>{"use strict";var CX=Er(),$7e=J0(),K7e=il().resizeText;LX.exports=function(r){var t=r._fullLayout._pielayer.selectAll(".trace");K7e(r,t,"pie"),t.each(function(a){var n=a[0],i=n.trace,l=CX.select(this);l.style({opacity:i.opacity}),l.selectAll("path.surface").each(function(o){CX.select(this).call($7e,o,i,r)})})}});var DX=U(Uf=>{"use strict";var qX=Xt();Uf.name="pie";Uf.plot=function(e,r,t,a){qX.plotBasePlot(Uf.name,e,r,t,a)};Uf.clean=function(e,r,t,a){qX.cleanBasePlot(Uf.name,e,r,t,a)}});var EX=U((Bqe,PX)=>{"use strict";PX.exports={attributes:iy(),supplyDefaults:ly().supplyDefaults,supplyLayoutDefaults:eX(),layoutAttributes:oy(),calc:sy().calc,crossTraceCalc:sy().crossTraceCalc,plot:J_().plot,style:SX(),styleOne:J0(),moduleType:"trace",name:"pie",basePlotModule:DX(),categories:["pie-like","pie","showLegend"],meta:{}}});var zX=U((Hqe,RX)=>{"use strict";RX.exports=EX()});var NX=U(Vf=>{"use strict";var FX=Xt();Vf.name="funnelarea";Vf.plot=function(e,r,t,a){FX.plotBasePlot(Vf.name,e,r,t,a)};Vf.clean=function(e,r,t,a){FX.cleanBasePlot(Vf.name,e,r,t,a)}});var $_=U((Yqe,BX)=>{"use strict";var Va=iy(),j7e=Mn(),Q7e=$o().attributes,{hovertemplateAttrs:e8e,texttemplateAttrs:r8e,templatefallbackAttrs:IX}=On(),qu=At().extendFlat;BX.exports={labels:Va.labels,label0:Va.label0,dlabel:Va.dlabel,values:Va.values,marker:{colors:Va.marker.colors,line:{color:qu({},Va.marker.line.color,{dflt:null}),width:qu({},Va.marker.line.width,{dflt:1}),editType:"calc"},pattern:Va.marker.pattern,editType:"calc"},text:Va.text,hovertext:Va.hovertext,scalegroup:qu({},Va.scalegroup,{}),textinfo:qu({},Va.textinfo,{flags:["label","text","value","percent"]}),texttemplate:r8e({editType:"plot"},{keys:["label","color","value","text","percent"]}),texttemplatefallback:IX({editType:"plot"}),hoverinfo:qu({},j7e.hoverinfo,{flags:["label","text","value","percent","name"]}),hovertemplate:e8e({},{keys:["label","color","value","text","percent"]}),hovertemplatefallback:IX(),textposition:qu({},Va.textposition,{values:["inside","none"],dflt:"inside"}),textfont:Va.textfont,insidetextfont:Va.insidetextfont,title:{text:Va.title.text,font:Va.title.font,position:qu({},Va.title.position,{values:["top left","top center","top right"],dflt:"top center"}),editType:"plot"},domain:Q7e({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"}}});var K_=U((Gqe,HX)=>{"use strict";var t8e=oy().hiddenlabels;HX.exports={hiddenlabels:t8e,funnelareacolorway:{valType:"colorlist",editType:"calc"},extendfunnelareacolors:{valType:"boolean",dflt:!0,editType:"calc"}}});var GX=U((Uqe,YX)=>{"use strict";var OX=ke(),a8e=$_(),n8e=$o().defaults,i8e=ql().handleText,l8e=ly().handleLabelsAndValues,o8e=ly().handleMarkerDefaults;YX.exports=function(r,t,a,n){function i(y,m){return OX.coerce(r,t,a8e,y,m)}var l=i("labels"),o=i("values"),s=l8e(l,o),u=s.len;if(t._hasLabels=s.hasLabels,t._hasValues=s.hasValues,!t._hasLabels&&t._hasValues&&(i("label0"),i("dlabel")),!u){t.visible=!1;return}t._length=u,o8e(r,t,n,i),i("scalegroup");var f=i("text"),c=i("texttemplate");i("texttemplatefallback");var v;if(c||(v=i("textinfo",Array.isArray(f)?"text+percent":"percent")),i("hovertext"),i("hovertemplate"),i("hovertemplatefallback"),c||v&&v!=="none"){var h=i("textposition");i8e(r,t,n,i,h,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1})}else v==="none"&&i("textposition","none");n8e(t,n,i);var p=i("title.text");p&&(i("title.position"),OX.coerceFont(i,"title.font",n.font)),i("aspectratio"),i("baseratio")}});var VX=U((Vqe,UX)=>{"use strict";var s8e=ke(),u8e=K_();UX.exports=function(r,t){function a(n,i){return s8e.coerce(r,t,u8e,n,i)}a("hiddenlabels"),a("funnelareacolorway",t.colorway),a("extendfunnelareacolors")}});var j_=U((Xqe,WX)=>{"use strict";var XX=sy();function f8e(e,r){return XX.calc(e,r)}function c8e(e){XX.crossTraceCalc(e,{type:"funnelarea"})}WX.exports={calc:f8e,crossTraceCalc:c8e}});var jX=U((Wqe,KX)=>{"use strict";var Du=Er(),Q_=Zr(),ns=ke(),v8e=ns.strScale,ZX=ns.strTranslate,JX=ma(),d8e=zf(),h8e=d8e.toMoveInsideBar,$X=il(),p8e=$X.recordMinTextSize,m8e=$X.clearMinTextSize,y8e=kv(),Xf=J_(),g8e=Xf.attachFxHandlers,x8e=Xf.determineInsideTextFont,b8e=Xf.layoutAreas,_8e=Xf.prerenderTitles,w8e=Xf.positionTitleOutside,T8e=Xf.formatSliceLabel;KX.exports=function(r,t){var a=r._context.staticPlot,n=r._fullLayout;m8e("funnelarea",n),_8e(t,r),b8e(t,n._size),ns.makeTraceGroups(n._funnelarealayer,t,"trace").each(function(i){var l=Du.select(this),o=i[0],s=o.trace;A8e(i),l.each(function(){var u=Du.select(this).selectAll("g.slice").data(i);u.enter().append("g").classed("slice",!0),u.exit().remove(),u.each(function(c,v){if(c.hidden){Du.select(this).selectAll("path,g").remove();return}c.pointNumber=c.i,c.curveNumber=s.index;var h=o.cx,p=o.cy,y=Du.select(this),m=y.selectAll("path.surface").data([c]);m.enter().append("path").classed("surface",!0).style({"pointer-events":a?"none":"all"}),y.call(g8e,r,i);var b="M"+(h+c.TR[0])+","+(p+c.TR[1])+e7(c.TR,c.BR)+e7(c.BR,c.BL)+e7(c.BL,c.TL)+"Z";m.attr("d",b),T8e(r,c,o);var _=y8e.castOption(s.textposition,c.pts),w=y.selectAll("g.slicetext").data(c.text&&_!=="none"?[0]:[]);w.enter().append("g").classed("slicetext",!0),w.exit().remove(),w.each(function(){var x=ns.ensureSingle(Du.select(this),"text","",function(F){F.attr("data-notex",1)}),M=ns.ensureUniformFontSize(r,x8e(s,c,n.font));x.text(c.text).attr({class:"slicetext",transform:"","text-anchor":"middle"}).call(Q_.font,M).call(JX.convertToTspans,r);var k=Q_.bBox(x.node()),A,S,D,P=Math.min(c.BL[1],c.BR[1])+p,R=Math.max(c.TL[1],c.TR[1])+p;S=Math.max(c.TL[0],c.BL[0])+h,D=Math.min(c.TR[0],c.BR[0])+h,A=h8e(S,D,P,R,k,{isHorizontal:!0,constrained:!0,angle:0,anchor:"middle"}),A.fontSize=M.size,p8e(s.type,A,n),i[v].transform=A,ns.setTransormAndDisplay(x,A)})});var f=Du.select(this).selectAll("g.titletext").data(s.title.text?[0]:[]);f.enter().append("g").classed("titletext",!0),f.exit().remove(),f.each(function(){var c=ns.ensureSingle(Du.select(this),"text","",function(p){p.attr("data-notex",1)}),v=s.title.text;s._meta&&(v=ns.templateString(v,s._meta)),c.text(v).attr({class:"titletext",transform:"","text-anchor":"middle"}).call(Q_.font,s.title.font).call(JX.convertToTspans,r);var h=w8e(o,n._size);c.attr("transform",ZX(h.x,h.y)+v8e(Math.min(1,h.scale))+ZX(h.tx,h.ty))})})})};function e7(e,r){var t=r[0]-e[0],a=r[1]-e[1];return"l"+t+","+a}function M8e(e,r){return[.5*(e[0]+r[0]),.5*(e[1]+r[1])]}function A8e(e){if(!e.length)return;var r=e[0],t=r.trace,a=t.aspectratio,n=t.baseratio;n>.999&&(n=.999);var i=Math.pow(n,2),l=r.vTotal,o=l*i/(1-i),s=l,u=o/l;function f(){var N=Math.sqrt(u);return{x:N,y:-N}}function c(){var N=f();return[N.x,N.y]}var v,h=[];h.push(c());var p,y;for(p=e.length-1;p>-1;p--)if(y=e[p],!y.hidden){var m=y.v/s;u+=m,h.push(c())}var b=1/0,_=-1/0;for(p=0;p-1;p--)if(y=e[p],!y.hidden){P+=1;var R=h[P][0],F=h[P][1];y.TL=[-R,F],y.TR=[R,F],y.BL=S,y.BR=D,y.pxmid=M8e(y.TR,y.BR),S=y.TL,D=y.TR}}});var rW=U((Zqe,eW)=>{"use strict";var QX=Er(),k8e=J0(),C8e=il().resizeText;eW.exports=function(r){var t=r._fullLayout._funnelarealayer.selectAll(".trace");C8e(r,t,"funnelarea"),t.each(function(a){var n=a[0],i=n.trace,l=QX.select(this);l.style({opacity:i.opacity}),l.selectAll("path.surface").each(function(o){QX.select(this).call(k8e,o,i,r)})})}});var aW=U((Jqe,tW)=>{"use strict";tW.exports={moduleType:"trace",name:"funnelarea",basePlotModule:NX(),categories:["pie-like","funnelarea","showLegend"],attributes:$_(),layoutAttributes:K_(),supplyDefaults:GX(),supplyLayoutDefaults:VX(),calc:j_().calc,crossTraceCalc:j_().crossTraceCalc,plot:jX(),style:rW(),styleOne:J0(),meta:{}}});var iW=U(($qe,nW)=>{"use strict";nW.exports=aW()});var oW=U(Wf=>{"use strict";var lW=Xt();Wf.name="indicator";Wf.plot=function(e,r,t,a){lW.plotBasePlot(Wf.name,e,r,t,a)};Wf.clean=function(e,r,t,a){lW.cleanBasePlot(Wf.name,e,r,t,a)}});var t7=U((jqe,dW)=>{"use strict";var is=At().extendFlat,uW=At().extendDeep,L8e=Ii().overrideAll,fW=xa(),cW=ui(),S8e=$o().attributes,Ut=Vn(),q8e=ht().templatedArray,vy=(Of(),Fe(Hf)),sW=Gi().descriptionOnlyNumbers,r7=fW({editType:"plot",colorEditType:"plot"}),Y2={color:{valType:"color",editType:"plot"},line:{color:{valType:"color",dflt:cW.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"},vW={valType:"info_array",items:[{valType:"number",editType:"plot"},{valType:"number",editType:"plot"}],editType:"plot"},D8e=q8e("step",uW({},Y2,{range:vW}));dW.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:S8e({name:"indicator",trace:!0,editType:"calc"}),title:{text:{valType:"string",editType:"plot"},align:{valType:"enumerated",values:["left","center","right"],editType:"plot"},font:is({},r7,{}),editType:"plot"},number:{valueformat:{valType:"string",dflt:"",editType:"plot",description:sW("value")},font:is({},r7,{}),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:sW("value")},increasing:{symbol:{valType:"string",dflt:vy.INCREASING.SYMBOL,editType:"plot"},color:{valType:"color",dflt:vy.INCREASING.COLOR,editType:"plot"},editType:"plot"},decreasing:{symbol:{valType:"string",dflt:vy.DECREASING.SYMBOL,editType:"plot"},color:{valType:"color",dflt:vy.DECREASING.COLOR,editType:"plot"},editType:"plot"},font:is({},r7,{}),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:uW({},Y2,{color:{dflt:"green"}}),bgcolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:cW.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:1,editType:"plot"},axis:L8e({range:vW,visible:is({},Ut.visible,{dflt:!0}),tickmode:Ut.minor.tickmode,nticks:Ut.nticks,tick0:Ut.tick0,dtick:Ut.dtick,tickvals:Ut.tickvals,ticktext:Ut.ticktext,ticks:is({},Ut.ticks,{dflt:"outside"}),ticklen:Ut.ticklen,tickwidth:Ut.tickwidth,tickcolor:Ut.tickcolor,ticklabelstep:Ut.ticklabelstep,showticklabels:Ut.showticklabels,labelalias:Ut.labelalias,tickfont:fW({}),tickangle:Ut.tickangle,tickformat:Ut.tickformat,tickformatstops:Ut.tickformatstops,tickprefix:Ut.tickprefix,showtickprefix:Ut.showtickprefix,ticksuffix:Ut.ticksuffix,showticksuffix:Ut.showticksuffix,separatethousands:Ut.separatethousands,exponentformat:Ut.exponentformat,minexponent:Ut.minexponent,showexponent:Ut.showexponent,editType:"plot"},"plot"),steps:D8e,threshold:{line:{color:is({},Y2.line.color,{}),width:is({},Y2.line.width,{dflt:1}),editType:"plot"},thickness:is({},Y2.thickness,{dflt:.85}),value:{valType:"number",editType:"calc",dflt:!1},editType:"plot"},editType:"plot"}}});var a7={};vt(a7,{bulletNumberDomainSize:()=>E8e,bulletPadding:()=>R8e,defaultNumberFontSize:()=>P8e,horizontalPadding:()=>I8e,innerRadius:()=>z8e,titlePadding:()=>N8e,valueThickness:()=>F8e});var P8e,E8e,R8e,z8e,F8e,N8e,I8e,n7=Lr(()=>{"use strict";P8e=80,E8e=.25,R8e=.025,z8e=.75,F8e=.5,N8e=5,I8e=10});var mW=U((Qqe,pW)=>{"use strict";var Dl=ke(),hy=t7(),B8e=$o().defaults,hW=ht(),H8e=di(),dy=(n7(),Fe(a7)),O8e=Kh(),Y8e=jh(),G8e=e1(),U8e=r1();function V8e(e,r,t,a){function n(k,A){return Dl.coerce(e,r,hy,k,A)}B8e(r,a,n),n("mode"),r._hasNumber=r.mode.indexOf("number")!==-1,r._hasDelta=r.mode.indexOf("delta")!==-1,r._hasGauge=r.mode.indexOf("gauge")!==-1;var i=n("value");r._range=[0,typeof i=="number"?1.5*i:1];var l=new Array(2),o;if(r._hasNumber){n("number.valueformat");var s=Dl.extendFlat({},a.font);s.size=void 0,Dl.coerceFont(n,"number.font",s),r.number.font.size===void 0&&(r.number.font.size=dy.defaultNumberFontSize,l[0]=!0),n("number.prefix"),n("number.suffix"),o=r.number.font.size}var u;if(r._hasDelta){var f=Dl.extendFlat({},a.font);f.size=void 0,Dl.coerceFont(n,"delta.font",f),r.delta.font.size===void 0&&(r.delta.font.size=(r._hasNumber?.5:1)*(o||dy.defaultNumberFontSize),l[1]=!0),n("delta.reference",r.value),n("delta.relative"),n("delta.valueformat",r.delta.relative?"2%":""),n("delta.increasing.symbol"),n("delta.increasing.color"),n("delta.decreasing.symbol"),n("delta.decreasing.color"),n("delta.position"),n("delta.prefix"),n("delta.suffix"),u=r.delta.font.size}r._scaleNumbers=(!r._hasNumber||l[0])&&(!r._hasDelta||l[1])||!1;var c=Dl.extendFlat({},a.font);c.size=.25*(o||u||dy.defaultNumberFontSize),Dl.coerceFont(n,"title.font",c),n("title.text");var v,h,p,y;function m(k,A){return Dl.coerce(v,h,hy.gauge,k,A)}function b(k,A){return Dl.coerce(p,y,hy.gauge.axis,k,A)}if(r._hasGauge){v=e.gauge,v||(v={}),h=hW.newContainer(r,"gauge"),m("shape");var _=r._isBullet=r.gauge.shape==="bullet";_||n("title.align","center");var w=r._isAngular=r.gauge.shape==="angular";w||n("align","center"),m("bgcolor",a.paper_bgcolor),m("borderwidth"),m("bordercolor"),m("bar.color"),m("bar.line.color"),m("bar.line.width");var x=dy.valueThickness*(r.gauge.shape==="bullet"?.5:1);m("bar.thickness",x),H8e(v,h,{name:"steps",handleItemDefaults:X8e}),m("threshold.value"),m("threshold.thickness"),m("threshold.line.width"),m("threshold.line.color"),p={},v&&(p=v.axis||{}),y=hW.newContainer(h,"axis"),b("visible"),r._range=b("range",r._range);var M={font:a.font,noAutotickangles:!0,outerTicks:!0,noTicklabelshift:!0,noTicklabelstandoff:!0};O8e(p,y,b,"linear"),U8e(p,y,b,"linear",M),G8e(p,y,b,"linear",M),Y8e(p,y,b,M)}else n("title.align","center"),n("align","center"),r._isAngular=r._isBullet=!1;r._length=null}function X8e(e,r){function t(a,n){return Dl.coerce(e,r,hy.gauge.steps,a,n)}t("color"),t("line.color"),t("line.width"),t("range"),t("thickness")}pW.exports={supplyDefaults:V8e}});var gW=U((eDe,yW)=>{"use strict";function W8e(e,r){var t=[],a=r.value;typeof r._lastValue!="number"&&(r._lastValue=r.value);var n=r._lastValue,i=n;return r._hasDelta&&typeof r.delta.reference=="number"&&(i=r.delta.reference),t[0]={y:a,lastY:n,delta:a-i,relativeDelta:(a-i)/i},t}yW.exports={calc:W8e}});function io(e,r,t){e.prototype=r.prototype=t,t.constructor=e}function ls(e,r){var t=Object.create(e.prototype);for(var a in r)t[a]=r[a];return t}var py=Lr(()=>{});function El(){}function bW(){return this.rgb().formatHex()}function r9e(){return this.rgb().formatHex8()}function t9e(){return CW(this).formatHsl()}function _W(){return this.rgb().formatRgb()}function ss(e){var r,t;return e=(e+"").trim().toLowerCase(),(r=Z8e.exec(e))?(t=r[1].length,r=parseInt(r[1],16),t===6?wW(r):t===3?new La(r>>8&15|r>>4&240,r>>4&15|r&240,(r&15)<<4|r&15,1):t===8?my(r>>24&255,r>>16&255,r>>8&255,(r&255)/255):t===4?my(r>>12&15|r>>8&240,r>>8&15|r>>4&240,r>>4&15|r&240,((r&15)<<4|r&15)/255):null):(r=J8e.exec(e))?new La(r[1],r[2],r[3],1):(r=$8e.exec(e))?new La(r[1]*255/100,r[2]*255/100,r[3]*255/100,1):(r=K8e.exec(e))?my(r[1],r[2],r[3],r[4]):(r=j8e.exec(e))?my(r[1]*255/100,r[2]*255/100,r[3]*255/100,r[4]):(r=Q8e.exec(e))?AW(r[1],r[2]/100,r[3]/100,1):(r=e9e.exec(e))?AW(r[1],r[2]/100,r[3]/100,r[4]):xW.hasOwnProperty(e)?wW(xW[e]):e==="transparent"?new La(NaN,NaN,NaN,0):null}function wW(e){return new La(e>>16&255,e>>8&255,e&255,1)}function my(e,r,t,a){return a<=0&&(e=r=t=NaN),new La(e,r,t,a)}function U2(e){return e instanceof El||(e=ss(e)),e?(e=e.rgb(),new La(e.r,e.g,e.b,e.opacity)):new La}function Jf(e,r,t,a){return arguments.length===1?U2(e):new La(e,r,t,a==null?1:a)}function La(e,r,t,a){this.r=+e,this.g=+r,this.b=+t,this.opacity=+a}function TW(){return`#${Pu(this.r)}${Pu(this.g)}${Pu(this.b)}`}function a9e(){return`#${Pu(this.r)}${Pu(this.g)}${Pu(this.b)}${Pu((isNaN(this.opacity)?1:this.opacity)*255)}`}function MW(){let e=gy(this.opacity);return`${e===1?"rgb(":"rgba("}${Eu(this.r)}, ${Eu(this.g)}, ${Eu(this.b)}${e===1?")":`, ${e})`}`}function gy(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Eu(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Pu(e){return e=Eu(e),(e<16?"0":"")+e.toString(16)}function AW(e,r,t,a){return a<=0?e=r=t=NaN:t<=0||t>=1?e=r=NaN:r<=0&&(e=NaN),new ol(e,r,t,a)}function CW(e){if(e instanceof ol)return new ol(e.h,e.s,e.l,e.opacity);if(e instanceof El||(e=ss(e)),!e)return new ol;if(e instanceof ol)return e;e=e.rgb();var r=e.r/255,t=e.g/255,a=e.b/255,n=Math.min(r,t,a),i=Math.max(r,t,a),l=NaN,o=i-n,s=(i+n)/2;return o?(r===i?l=(t-a)/o+(t0&&s<1?0:l,new ol(l,o,s,e.opacity)}function V2(e,r,t,a){return arguments.length===1?CW(e):new ol(e,r,t,a==null?1:a)}function ol(e,r,t,a){this.h=+e,this.s=+r,this.l=+t,this.opacity=+a}function kW(e){return e=(e||0)%360,e<0?e+360:e}function yy(e){return Math.max(0,Math.min(1,e||0))}function i7(e,r,t){return(e<60?r+(t-r)*e/60:e<180?t:e<240?r+(t-r)*(240-e)/60:r)*255}var os,Ru,Zf,G2,Pl,Z8e,J8e,$8e,K8e,j8e,Q8e,e9e,xW,xy=Lr(()=>{py();os=.7,Ru=1/os,Zf="\\s*([+-]?\\d+)\\s*",G2="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Pl="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Z8e=/^#([0-9a-f]{3,8})$/,J8e=new RegExp(`^rgb\\(${Zf},${Zf},${Zf}\\)$`),$8e=new RegExp(`^rgb\\(${Pl},${Pl},${Pl}\\)$`),K8e=new RegExp(`^rgba\\(${Zf},${Zf},${Zf},${G2}\\)$`),j8e=new RegExp(`^rgba\\(${Pl},${Pl},${Pl},${G2}\\)$`),Q8e=new RegExp(`^hsl\\(${G2},${Pl},${Pl}\\)$`),e9e=new RegExp(`^hsla\\(${G2},${Pl},${Pl},${G2}\\)$`),xW={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};io(El,ss,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:bW,formatHex:bW,formatHex8:r9e,formatHsl:t9e,formatRgb:_W,toString:_W});io(La,Jf,ls(El,{brighter(e){return e=e==null?Ru:Math.pow(Ru,e),new La(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?os:Math.pow(os,e),new La(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new La(Eu(this.r),Eu(this.g),Eu(this.b),gy(this.opacity))},displayable(){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:TW,formatHex:TW,formatHex8:a9e,formatRgb:MW,toString:MW}));io(ol,V2,ls(El,{brighter(e){return e=e==null?Ru:Math.pow(Ru,e),new ol(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?os:Math.pow(os,e),new ol(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,r=isNaN(e)||isNaN(this.s)?0:this.s,t=this.l,a=t+(t<.5?t:1-t)*r,n=2*t-a;return new La(i7(e>=240?e-240:e+120,n,a),i7(e,n,a),i7(e<120?e+240:e-120,n,a),this.opacity)},clamp(){return new ol(kW(this.h),yy(this.s),yy(this.l),gy(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let e=gy(this.opacity);return`${e===1?"hsl(":"hsla("}${kW(this.h)}, ${yy(this.s)*100}%, ${yy(this.l)*100}%${e===1?")":`, ${e})`}`}}))});var by,_y,l7=Lr(()=>{by=Math.PI/180,_y=180/Math.PI});function EW(e){if(e instanceof Rl)return new Rl(e.l,e.a,e.b,e.opacity);if(e instanceof lo)return RW(e);e instanceof La||(e=U2(e));var r=f7(e.r),t=f7(e.g),a=f7(e.b),n=o7((.2225045*r+.7168786*t+.0606169*a)/SW),i,l;return r===t&&t===a?i=l=n:(i=o7((.4360747*r+.3850649*t+.1430804*a)/LW),l=o7((.0139322*r+.0971045*t+.7141733*a)/qW)),new Rl(116*n-16,500*(i-n),200*(n-l),e.opacity)}function Kf(e,r,t,a){return arguments.length===1?EW(e):new Rl(e,r,t,a==null?1:a)}function Rl(e,r,t,a){this.l=+e,this.a=+r,this.b=+t,this.opacity=+a}function o7(e){return e>n9e?Math.pow(e,1/3):e/PW+DW}function s7(e){return e>$f?e*e*e:PW*(e-DW)}function u7(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function f7(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function i9e(e){if(e instanceof lo)return new lo(e.h,e.c,e.l,e.opacity);if(e instanceof Rl||(e=EW(e)),e.a===0&&e.b===0)return new lo(NaN,0{py();xy();l7();wy=18,LW=.96422,SW=1,qW=.82521,DW=4/29,$f=6/29,PW=3*$f*$f,n9e=$f*$f*$f;io(Rl,Kf,ls(El,{brighter(e){return new Rl(this.l+wy*(e==null?1:e),this.a,this.b,this.opacity)},darker(e){return new Rl(this.l-wy*(e==null?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,r=isNaN(this.a)?e:e+this.a/500,t=isNaN(this.b)?e:e-this.b/200;return r=LW*s7(r),e=SW*s7(e),t=qW*s7(t),new La(u7(3.1338561*r-1.6168667*e-.4906146*t),u7(-.9787684*r+1.9161415*e+.033454*t),u7(.0719453*r-.2289914*e+1.4052427*t),this.opacity)}}));io(lo,X2,ls(El,{brighter(e){return new lo(this.h,this.c,this.l+wy*(e==null?1:e),this.opacity)},darker(e){return new lo(this.h,this.c,this.l-wy*(e==null?1:e),this.opacity)},rgb(){return RW(this).rgb()}}))});function l9e(e){if(e instanceof zu)return new zu(e.h,e.s,e.l,e.opacity);e instanceof La||(e=U2(e));var r=e.r/255,t=e.g/255,a=e.b/255,n=(IW*a+FW*r-NW*t)/(IW+FW-NW),i=a-n,l=(W2*(t-n)-v7*i)/Ty,o=Math.sqrt(l*l+i*i)/(W2*n*(1-n)),s=o?Math.atan2(l,i)*_y-120:NaN;return new zu(s<0?s+360:s,o,n,e.opacity)}function jf(e,r,t,a){return arguments.length===1?l9e(e):new zu(e,r,t,a==null?1:a)}function zu(e,r,t,a){this.h=+e,this.s=+r,this.l=+t,this.opacity=+a}var BW,c7,v7,Ty,W2,FW,NW,IW,HW=Lr(()=>{py();xy();l7();BW=-.14861,c7=1.78277,v7=-.29227,Ty=-.90649,W2=1.97294,FW=W2*Ty,NW=W2*c7,IW=c7*v7-Ty*BW;io(zu,jf,ls(El,{brighter(e){return e=e==null?Ru:Math.pow(Ru,e),new zu(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?os:Math.pow(os,e),new zu(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=isNaN(this.h)?0:(this.h+120)*by,r=+this.l,t=isNaN(this.s)?0:this.s*r*(1-r),a=Math.cos(e),n=Math.sin(e);return new La(255*(r+t*(BW*a+c7*n)),255*(r+t*(v7*a+Ty*n)),255*(r+t*(W2*a)),this.opacity)}}))});var Fu=Lr(()=>{xy();zW();HW()});function d7(e,r,t,a,n){var i=e*e,l=i*e;return((1-3*e+3*i-l)*r+(4-6*i+3*l)*t+(1+3*e+3*i-3*l)*a+l*n)/6}function My(e){var r=e.length-1;return function(t){var a=t<=0?t=0:t>=1?(t=1,r-1):Math.floor(t*r),n=e[a],i=e[a+1],l=a>0?e[a-1]:2*n-i,o=a{});function ky(e){var r=e.length;return function(t){var a=Math.floor(((t%=1)<0?++t:t)*r),n=e[(a+r-1)%r],i=e[a%r],l=e[(a+1)%r],o=e[(a+2)%r];return d7((t-a/r)*r,n,i,l,o)}}var h7=Lr(()=>{Ay()});var Qf,p7=Lr(()=>{Qf=e=>()=>e});function OW(e,r){return function(t){return e+t*r}}function o9e(e,r,t){return e=Math.pow(e,t),r=Math.pow(r,t)-e,t=1/t,function(a){return Math.pow(e+a*r,t)}}function us(e,r){var t=r-e;return t?OW(e,t>180||t<-180?t-360*Math.round(t/360):t):Qf(isNaN(e)?r:e)}function YW(e){return(e=+e)==1?Jt:function(r,t){return t-r?o9e(r,t,e):Qf(isNaN(r)?t:r)}}function Jt(e,r){var t=r-e;return t?OW(e,t):Qf(isNaN(e)?r:e)}var Nu=Lr(()=>{p7()});function GW(e){return function(r){var t=r.length,a=new Array(t),n=new Array(t),i=new Array(t),l,o;for(l=0;l{Fu();Ay();h7();Nu();Z2=(function e(r){var t=YW(r);function a(n,i){var l=t((n=Jf(n)).r,(i=Jf(i)).r),o=t(n.g,i.g),s=t(n.b,i.b),u=Jt(n.opacity,i.opacity);return function(f){return n.r=l(f),n.g=o(f),n.b=s(f),n.opacity=u(f),n+""}}return a.gamma=e,a})(1);UW=GW(My),VW=GW(ky)});function ec(e,r){r||(r=[]);var t=e?Math.min(r.length,e.length):0,a=r.slice(),n;return function(i){for(n=0;n{});function XW(e,r){return(Cy(r)?ec:y7)(e,r)}function y7(e,r){var t=r?r.length:0,a=e?Math.min(t,e.length):0,n=new Array(a),i=new Array(t),l;for(l=0;l{J2();Ly()});function Sy(e,r){var t=new Date;return e=+e,r=+r,function(a){return t.setTime(e*(1-a)+r*a),t}}var x7=Lr(()=>{});function Fn(e,r){return e=+e,r=+r,function(t){return e*(1-t)+r*t}}var $2=Lr(()=>{});function qy(e,r){var t={},a={},n;(e===null||typeof e!="object")&&(e={}),(r===null||typeof r!="object")&&(r={});for(n in r)n in e?t[n]=fs(e[n],r[n]):a[n]=r[n];return function(i){for(n in t)a[n]=t[n](i);return a}}var b7=Lr(()=>{J2()});function s9e(e){return function(){return e}}function u9e(e){return function(r){return e(r)+""}}function Dy(e,r){var t=w7.lastIndex=_7.lastIndex=0,a,n,i,l=-1,o=[],s=[];for(e=e+"",r=r+"";(a=w7.exec(e))&&(n=_7.exec(r));)(i=n.index)>t&&(i=r.slice(t,i),o[l]?o[l]+=i:o[++l]=i),(a=a[0])===(n=n[0])?o[l]?o[l]+=n:o[++l]=n:(o[++l]=null,s.push({i:l,x:Fn(a,n)})),t=_7.lastIndex;return t{$2();w7=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,_7=new RegExp(w7.source,"g")});function fs(e,r){var t=typeof r,a;return r==null||t==="boolean"?Qf(r):(t==="number"?Fn:t==="string"?(a=ss(r))?(r=a,Z2):Dy:r instanceof ss?Z2:r instanceof Date?Sy:Cy(r)?ec:Array.isArray(r)?y7:typeof r.valueOf!="function"&&typeof r.toString!="function"||isNaN(r)?qy:Fn)(e,r)}var J2=Lr(()=>{Fu();m7();g7();x7();$2();b7();T7();p7();Ly()});function WW(e){var r=e.length;return function(t){return e[Math.max(0,Math.min(r-1,Math.floor(t*r)))]}}var ZW=Lr(()=>{});function JW(e,r){var t=us(+e,+r);return function(a){var n=t(a);return n-360*Math.floor(n/360)}}var $W=Lr(()=>{Nu()});function KW(e,r){return e=+e,r=+r,function(t){return Math.round(e*(1-t)+r*t)}}var jW=Lr(()=>{});function M7(e,r,t,a,n,i){var l,o,s;return(l=Math.sqrt(e*e+r*r))&&(e/=l,r/=l),(s=e*t+r*a)&&(t-=e*s,a-=r*s),(o=Math.sqrt(t*t+a*a))&&(t/=o,a/=o,s/=o),e*a{QW=180/Math.PI,Py={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1}});function rZ(e){let r=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return r.isIdentity?Py:M7(r.a,r.b,r.c,r.d,r.e,r.f)}function tZ(e){return e==null?Py:(Ey||(Ey=document.createElementNS("http://www.w3.org/2000/svg","g")),Ey.setAttribute("transform",e),(e=Ey.transform.baseVal.consolidate())?(e=e.matrix,M7(e.a,e.b,e.c,e.d,e.e,e.f)):Py)}var Ey,aZ=Lr(()=>{eZ()});function nZ(e,r,t,a){function n(u){return u.length?u.pop()+" ":""}function i(u,f,c,v,h,p){if(u!==c||f!==v){var y=h.push("translate(",null,r,null,t);p.push({i:y-4,x:Fn(u,c)},{i:y-2,x:Fn(f,v)})}else(c||v)&&h.push("translate("+c+r+v+t)}function l(u,f,c,v){u!==f?(u-f>180?f+=360:f-u>180&&(u+=360),v.push({i:c.push(n(c)+"rotate(",null,a)-2,x:Fn(u,f)})):f&&c.push(n(c)+"rotate("+f+a)}function o(u,f,c,v){u!==f?v.push({i:c.push(n(c)+"skewX(",null,a)-2,x:Fn(u,f)}):f&&c.push(n(c)+"skewX("+f+a)}function s(u,f,c,v,h,p){if(u!==c||f!==v){var y=h.push(n(h)+"scale(",null,",",null,")");p.push({i:y-4,x:Fn(u,c)},{i:y-2,x:Fn(f,v)})}else(c!==1||v!==1)&&h.push(n(h)+"scale("+c+","+v+")")}return function(u,f){var c=[],v=[];return u=e(u),f=e(f),i(u.translateX,u.translateY,f.translateX,f.translateY,c,v),l(u.rotate,f.rotate,c,v),o(u.skewX,f.skewX,c,v),s(u.scaleX,u.scaleY,f.scaleX,f.scaleY,c,v),u=f=null,function(h){for(var p=-1,y=v.length,m;++p{$2();aZ();iZ=nZ(rZ,"px, ","px)","deg)"),lZ=nZ(tZ,", ",")",")")});function sZ(e){return((e=Math.exp(e))+1/e)/2}function c9e(e){return((e=Math.exp(e))-1/e)/2}function v9e(e){return((e=Math.exp(2*e))-1)/(e+1)}var f9e,uZ,fZ=Lr(()=>{f9e=1e-12;uZ=(function e(r,t,a){function n(i,l){var o=i[0],s=i[1],u=i[2],f=l[0],c=l[1],v=l[2],h=f-o,p=c-s,y=h*h+p*p,m,b;if(y{Fu();Nu();vZ=cZ(us),dZ=cZ(Jt)});function A7(e,r){var t=Jt((e=Kf(e)).l,(r=Kf(r)).l),a=Jt(e.a,r.a),n=Jt(e.b,r.b),i=Jt(e.opacity,r.opacity);return function(l){return e.l=t(l),e.a=a(l),e.b=n(l),e.opacity=i(l),e+""}}var pZ=Lr(()=>{Fu();Nu()});function mZ(e){return function(r,t){var a=e((r=X2(r)).h,(t=X2(t)).h),n=Jt(r.c,t.c),i=Jt(r.l,t.l),l=Jt(r.opacity,t.opacity);return function(o){return r.h=a(o),r.c=n(o),r.l=i(o),r.opacity=l(o),r+""}}}var yZ,gZ,xZ=Lr(()=>{Fu();Nu();yZ=mZ(us),gZ=mZ(Jt)});function bZ(e){return(function r(t){t=+t;function a(n,i){var l=e((n=jf(n)).h,(i=jf(i)).h),o=Jt(n.s,i.s),s=Jt(n.l,i.l),u=Jt(n.opacity,i.opacity);return function(f){return n.h=l(f),n.s=o(f),n.l=s(Math.pow(f,t)),n.opacity=u(f),n+""}}return a.gamma=r,a})(1)}var _Z,wZ,TZ=Lr(()=>{Fu();Nu();_Z=bZ(us),wZ=bZ(Jt)});function k7(e,r){r===void 0&&(r=e,e=fs);for(var t=0,a=r.length-1,n=r[0],i=new Array(a<0?0:a);t{J2()});function AZ(e,r){for(var t=new Array(r),a=0;a{});var C7={};vt(C7,{interpolate:()=>fs,interpolateArray:()=>XW,interpolateBasis:()=>My,interpolateBasisClosed:()=>ky,interpolateCubehelix:()=>_Z,interpolateCubehelixLong:()=>wZ,interpolateDate:()=>Sy,interpolateDiscrete:()=>WW,interpolateHcl:()=>yZ,interpolateHclLong:()=>gZ,interpolateHsl:()=>vZ,interpolateHslLong:()=>dZ,interpolateHue:()=>JW,interpolateLab:()=>A7,interpolateNumber:()=>Fn,interpolateNumberArray:()=>ec,interpolateObject:()=>qy,interpolateRgb:()=>Z2,interpolateRgbBasis:()=>UW,interpolateRgbBasisClosed:()=>VW,interpolateRound:()=>KW,interpolateString:()=>Dy,interpolateTransformCss:()=>iZ,interpolateTransformSvg:()=>lZ,interpolateZoom:()=>uZ,piecewise:()=>k7,quantize:()=>AZ});var L7=Lr(()=>{J2();g7();Ay();h7();x7();ZW();$W();$2();Ly();b7();jW();T7();oZ();fZ();m7();hZ();pZ();xZ();TZ();MZ();kZ()});var PZ=U((GPe,DZ)=>{"use strict";var Yu=Er(),d9e=(L7(),Fe(C7)).interpolate,CZ=(L7(),Fe(C7)).interpolateNumber,cs=ke(),h9e=cs.strScale,j2=cs.strTranslate,p9e=cs.rad2deg,m9e=(Ha(),Fe(Ba)).MID_SHIFT,Ou=Zr(),Iu=(n7(),Fe(a7)),zy=ma(),Xa=Kr(),y9e=om(),g9e=um(),x9e=Vn(),rc=kr(),S7={left:"start",center:"middle",right:"end"},Bu={left:0,center:.5,right:1},LZ=/[yzafpnµmkMGTPEZY]/;function Q2(e){return e&&e.duration>0}DZ.exports=function(r,t,a,n){var i=r._fullLayout,l;Q2(a)&&n&&(l=n()),cs.makeTraceGroups(i._indicatorlayer,t,"trace").each(function(o){var s=o[0],u=s.trace,f=Yu.select(this),c=u._hasGauge,v=u._isAngular,h=u._isBullet,p=u.domain,y={w:i._size.w*(p.x[1]-p.x[0]),h:i._size.h*(p.y[1]-p.y[0]),l:i._size.l+i._size.w*p.x[0],r:i._size.r+i._size.w*(1-p.x[1]),t:i._size.t+i._size.h*(1-p.y[1]),b:i._size.b+i._size.h*p.y[0]},m=y.l+y.w/2,b=y.t+y.h/2,_=Math.min(y.w/2,y.h),w=Iu.innerRadius*_,x,M,k,A=u.align||"center";if(M=b,!c)x=y.l+Bu[A]*y.w,k=function(Y){return SZ(Y,y.w,y.h)};else if(v&&(x=m,M=b+_/2,k=function(Y){return M9e(Y,.9*w)}),h){var S=Iu.bulletPadding,D=1-Iu.bulletNumberDomainSize+S;x=y.l+(D+(1-D)*Bu[A])*y.w,k=function(Y){return SZ(Y,(Iu.bulletNumberDomainSize-S)*y.w,y.h)}}w9e(r,f,o,{numbersX:x,numbersY:M,numbersScaler:k,transitionOpts:a,onComplete:l});var P,R;c&&(P={range:u.gauge.axis.range,color:u.gauge.bgcolor,line:{color:u.gauge.bordercolor,width:0},thickness:1},R={range:u.gauge.axis.range,color:"rgba(0, 0, 0, 0)",line:{color:u.gauge.bordercolor,width:u.gauge.borderwidth},thickness:1});var F=f.selectAll("g.angular").data(v?o:[]);F.exit().remove();var N=f.selectAll("g.angularaxis").data(v?o:[]);N.exit().remove(),v&&_9e(r,f,o,{radius:_,innerRadius:w,gauge:F,layer:N,size:y,gaugeBg:P,gaugeOutline:R,transitionOpts:a,onComplete:l});var B=f.selectAll("g.bullet").data(h?o:[]);B.exit().remove();var H=f.selectAll("g.bulletaxis").data(h?o:[]);H.exit().remove(),h&&b9e(r,f,o,{gauge:B,layer:H,size:y,gaugeBg:P,gaugeOutline:R,transitionOpts:a,onComplete:l});var O=f.selectAll("text.title").data(o);O.exit().remove(),O.enter().append("text").classed("title",!0),O.attr("text-anchor",function(){return h?S7.right:S7[u.title.align]}).text(u.title.text).call(Ou.font,u.title.font).call(zy.convertToTspans,r),O.attr("transform",function(){var Y=y.l+y.w*Bu[u.title.align],G,V=Iu.titlePadding,W=Ou.bBox(O.node());if(c){if(v)if(u.gauge.axis.visible){var X=Ou.bBox(N.node());G=X.top-V-W.bottom}else G=y.t+y.h/2-_/2-W.bottom-V;h&&(G=M-(W.top+W.bottom)/2,Y=y.l-Iu.bulletPadding*y.w)}else G=u._numbersTop-V-W.bottom;return j2(Y,G)})})};function b9e(e,r,t,a){var n=t[0].trace,i=a.gauge,l=a.layer,o=a.gaugeBg,s=a.gaugeOutline,u=a.size,f=n.domain,c=a.transitionOpts,v=a.onComplete,h,p,y,m,b;i.enter().append("g").classed("bullet",!0),i.attr("transform",j2(u.l,u.t)),l.enter().append("g").classed("bulletaxis",!0).classed("crisp",!0),l.selectAll("g.xbulletaxistick,path,text").remove();var _=u.h,w=n.gauge.bar.thickness*_,x=f.x[0],M=f.x[0]+(f.x[1]-f.x[0])*(n._hasNumber||n._hasDelta?1-Iu.bulletNumberDomainSize:1);h=K2(e,n.gauge.axis),h._id="xbulletaxis",h.domain=[x,M],h.setScale(),p=Xa.calcTicks(h),y=Xa.makeTransTickFn(h),m=Xa.getTickSigns(h)[2],b=u.t+u.h,h.visible&&(Xa.drawTicks(e,h,{vals:h.ticks==="inside"?Xa.clipEnds(h,p):p,layer:l,path:Xa.makeTickPath(h,b,m),transFn:y}),Xa.drawLabels(e,h,{vals:p,layer:l,transFn:y,labelFns:Xa.makeLabelFns(h,b)}));function k(N){N.attr("width",function(B){return Math.max(0,h.c2p(B.range[1])-h.c2p(B.range[0]))}).attr("x",function(B){return h.c2p(B.range[0])}).attr("y",function(B){return .5*(1-B.thickness)*_}).attr("height",function(B){return B.thickness*_})}var A=[o].concat(n.gauge.steps),S=i.selectAll("g.bg-bullet").data(A);S.enter().append("g").classed("bg-bullet",!0).append("rect"),S.select("rect").call(k).call(Hu),S.exit().remove();var D=i.selectAll("g.value-bullet").data([n.gauge.bar]);D.enter().append("g").classed("value-bullet",!0).append("rect"),D.select("rect").attr("height",w).attr("y",(_-w)/2).call(Hu),Q2(c)?D.select("rect").transition().duration(c.duration).ease(c.easing).each("end",function(){v&&v()}).each("interrupt",function(){v&&v()}).attr("width",Math.max(0,h.c2p(Math.min(n.gauge.axis.range[1],t[0].y)))):D.select("rect").attr("width",typeof t[0].y=="number"?Math.max(0,h.c2p(Math.min(n.gauge.axis.range[1],t[0].y))):0),D.exit().remove();var P=t.filter(function(){return n.gauge.threshold.value||n.gauge.threshold.value===0}),R=i.selectAll("g.threshold-bullet").data(P);R.enter().append("g").classed("threshold-bullet",!0).append("line"),R.select("line").attr("x1",h.c2p(n.gauge.threshold.value)).attr("x2",h.c2p(n.gauge.threshold.value)).attr("y1",(1-n.gauge.threshold.thickness)/2*_).attr("y2",(1-(1-n.gauge.threshold.thickness)/2)*_).call(rc.stroke,n.gauge.threshold.line.color).style("stroke-width",n.gauge.threshold.line.width),R.exit().remove();var F=i.selectAll("g.gauge-outline").data([s]);F.enter().append("g").classed("gauge-outline",!0).append("rect"),F.select("rect").call(k).call(Hu),F.exit().remove()}function _9e(e,r,t,a){var n=t[0].trace,i=a.size,l=a.radius,o=a.innerRadius,s=a.gaugeBg,u=a.gaugeOutline,f=[i.l+i.w/2,i.t+i.h/2+l/2],c=a.gauge,v=a.layer,h=a.transitionOpts,p=a.onComplete,y=Math.PI/2;function m($){var te=n.gauge.axis.range[0],ie=n.gauge.axis.range[1],ve=($-te)/(ie-te)*Math.PI-y;return ve<-y?-y:ve>y?y:ve}function b($){return Yu.svg.arc().innerRadius((o+l)/2-$/2*(l-o)).outerRadius((o+l)/2+$/2*(l-o)).startAngle(-y)}function _($){$.attr("d",function(te){return b(te.thickness).startAngle(m(te.range[0])).endAngle(m(te.range[1]))()})}var w,x,M,k;c.enter().append("g").classed("angular",!0),c.attr("transform",j2(f[0],f[1])),v.enter().append("g").classed("angularaxis",!0).classed("crisp",!0),v.selectAll("g.xangularaxistick,path,text").remove(),w=K2(e,n.gauge.axis),w.type="linear",w.range=n.gauge.axis.range,w._id="xangularaxis",w.ticklabeloverflow="allow",w.setScale();var A=function($){return(w.range[0]-$.x)/(w.range[1]-w.range[0])*Math.PI+Math.PI},S={},D=Xa.makeLabelFns(w,0),P=D.labelStandoff;S.xFn=function($){var te=A($);return Math.cos(te)*P},S.yFn=function($){var te=A($),ie=Math.sin(te)>0?.2:1;return-Math.sin(te)*(P+$.fontSize*ie)+Math.abs(Math.cos(te))*($.fontSize*m9e)},S.anchorFn=function($){var te=A($),ie=Math.cos(te);return Math.abs(ie)<.1?"middle":ie>0?"start":"end"},S.heightFn=function($,te,ie){var ve=A($);return-.5*(1+Math.sin(ve))*ie};var R=function($){return j2(f[0]+l*Math.cos($),f[1]-l*Math.sin($))};M=function($){return R(A($))};var F=function($){var te=A($);return R(te)+"rotate("+-p9e(te)+")"};if(x=Xa.calcTicks(w),k=Xa.getTickSigns(w)[2],w.visible){k=w.ticks==="inside"?-1:1;var N=(w.linewidth||1)/2;Xa.drawTicks(e,w,{vals:x,layer:v,path:"M"+k*N+",0h"+k*w.ticklen,transFn:F}),Xa.drawLabels(e,w,{vals:x,layer:v,transFn:M,labelFns:S})}var B=[s].concat(n.gauge.steps),H=c.selectAll("g.bg-arc").data(B);H.enter().append("g").classed("bg-arc",!0).append("path"),H.select("path").call(_).call(Hu),H.exit().remove();var O=b(n.gauge.bar.thickness),Y=c.selectAll("g.value-arc").data([n.gauge.bar]);Y.enter().append("g").classed("value-arc",!0).append("path");var G=Y.select("path");Q2(h)?(G.transition().duration(h.duration).ease(h.easing).each("end",function(){p&&p()}).each("interrupt",function(){p&&p()}).attrTween("d",T9e(O,m(t[0].lastY),m(t[0].y))),n._lastValue=t[0].y):G.attr("d",typeof t[0].y=="number"?O.endAngle(m(t[0].y)):"M0,0Z"),G.call(Hu),Y.exit().remove(),B=[];var V=n.gauge.threshold.value;(V||V===0)&&B.push({range:[V,V],color:n.gauge.threshold.color,line:{color:n.gauge.threshold.line.color,width:n.gauge.threshold.line.width},thickness:n.gauge.threshold.thickness});var W=c.selectAll("g.threshold-arc").data(B);W.enter().append("g").classed("threshold-arc",!0).append("path"),W.select("path").call(_).call(Hu),W.exit().remove();var X=c.selectAll("g.gauge-outline").data([u]);X.enter().append("g").classed("gauge-outline",!0).append("path"),X.select("path").call(_).call(Hu),X.exit().remove()}function w9e(e,r,t,a){var n=t[0].trace,i=a.numbersX,l=a.numbersY,o=n.align||"center",s=S7[o],u=a.transitionOpts,f=a.onComplete,c=cs.ensureSingle(r,"g","numbers"),v,h,p,y=[];n._hasNumber&&y.push("number"),n._hasDelta&&(y.push("delta"),n.delta.position==="left"&&y.reverse());var m=c.selectAll("text").data(y);m.enter().append("text"),m.attr("text-anchor",function(){return s}).attr("class",function(R){return R}).attr("x",null).attr("y",null).attr("dx",null).attr("dy",null),m.exit().remove();function b(R,F,N,B){if(R.match("s")&&N>=0!=B>=0&&!F(N).slice(-1).match(LZ)&&!F(B).slice(-1).match(LZ)){var H=R.slice().replace("s","f").replace(/\d+/,function(Y){return parseInt(Y)-1}),O=K2(e,{tickformat:H});return function(Y){return Math.abs(Y)<1?Xa.tickText(O,Y).text:F(Y)}}else return F}function _(){var R=K2(e,{tickformat:n.number.valueformat},n._range);R.setScale(),Xa.prepTicks(R);var F=function(Y){return Xa.tickText(R,Y).text},N=n.number.suffix,B=n.number.prefix,H=c.select("text.number");function O(){var Y=typeof t[0].y=="number"?B+F(t[0].y)+N:"-";H.text(Y).call(Ou.font,n.number.font).call(zy.convertToTspans,e)}return Q2(u)?H.transition().duration(u.duration).ease(u.easing).each("end",function(){O(),f&&f()}).each("interrupt",function(){O(),f&&f()}).attrTween("text",function(){var Y=Yu.select(this),G=CZ(t[0].lastY,t[0].y);n._lastValue=t[0].y;var V=b(n.number.valueformat,F,t[0].lastY,t[0].y);return function(W){Y.text(B+V(G(W))+N)}}):O(),v=qZ(B+F(t[0].y)+N,n.number.font,s,e),H}function w(){var R=K2(e,{tickformat:n.delta.valueformat},n._range);R.setScale(),Xa.prepTicks(R);var F=function(W){return Xa.tickText(R,W).text},N=n.delta.suffix,B=n.delta.prefix,H=function(W){var X=n.delta.relative?W.relativeDelta:W.delta;return X},O=function(W,X){return W===0||typeof W!="number"||isNaN(W)?"-":(W>0?n.delta.increasing.symbol:n.delta.decreasing.symbol)+B+X(W)+N},Y=function(W){return W.delta>=0?n.delta.increasing.color:n.delta.decreasing.color};n._deltaLastValue===void 0&&(n._deltaLastValue=H(t[0]));var G=c.select("text.delta");G.call(Ou.font,n.delta.font).call(rc.fill,Y({delta:n._deltaLastValue}));function V(){G.text(O(H(t[0]),F)).call(rc.fill,Y(t[0])).call(zy.convertToTspans,e)}return Q2(u)?G.transition().duration(u.duration).ease(u.easing).tween("text",function(){var W=Yu.select(this),X=H(t[0]),$=n._deltaLastValue,te=b(n.delta.valueformat,F,$,X),ie=CZ($,X);return n._deltaLastValue=X,function(ve){W.text(O(ie(ve),te)),W.call(rc.fill,Y({delta:ie(ve)}))}}).each("end",function(){V(),f&&f()}).each("interrupt",function(){V(),f&&f()}):V(),h=qZ(O(H(t[0]),F),n.delta.font,s,e),G}var x=n.mode+n.align,M;if(n._hasDelta&&(M=w(),x+=n.delta.position+n.delta.font.size+n.delta.font.family+n.delta.valueformat,x+=n.delta.increasing.symbol+n.delta.decreasing.symbol,p=h),n._hasNumber&&(_(),x+=n.number.font.size+n.number.font.family+n.number.valueformat+n.number.suffix+n.number.prefix,p=v),n._hasDelta&&n._hasNumber){var k=[(v.left+v.right)/2,(v.top+v.bottom)/2],A=[(h.left+h.right)/2,(h.top+h.bottom)/2],S,D,P=.75*n.delta.font.size;n.delta.position==="left"&&(S=Ry(n,"deltaPos",0,-1*(v.width*Bu[n.align]+h.width*(1-Bu[n.align])+P),x,Math.min),D=k[1]-A[1],p={width:v.width+h.width+P,height:Math.max(v.height,h.height),left:h.left+S,right:v.right,top:Math.min(v.top,h.top+D),bottom:Math.max(v.bottom,h.bottom+D)}),n.delta.position==="right"&&(S=Ry(n,"deltaPos",0,v.width*(1-Bu[n.align])+h.width*Bu[n.align]+P,x,Math.max),D=k[1]-A[1],p={width:v.width+h.width+P,height:Math.max(v.height,h.height),left:v.left,right:h.right+S,top:Math.min(v.top,h.top+D),bottom:Math.max(v.bottom,h.bottom+D)}),n.delta.position==="bottom"&&(S=null,D=h.height,p={width:Math.max(v.width,h.width),height:v.height+h.height,left:Math.min(v.left,h.left),right:Math.max(v.right,h.right),top:v.bottom-v.height,bottom:v.bottom+h.height}),n.delta.position==="top"&&(S=null,D=v.top,p={width:Math.max(v.width,h.width),height:v.height+h.height,left:Math.min(v.left,h.left),right:Math.max(v.right,h.right),top:v.bottom-v.height-h.height,bottom:v.bottom}),M.attr({dx:S,dy:D})}(n._hasNumber||n._hasDelta)&&c.attr("transform",function(){var R=a.numbersScaler(p);x+=R[2];var F=Ry(n,"numbersScale",1,R[0],x,Math.min),N;n._scaleNumbers||(F=1),n._isAngular?N=l-F*p.bottom:N=l-F*(p.top+p.bottom)/2,n._numbersTop=F*p.top+N;var B=p[o];o==="center"&&(B=(p.left+p.right)/2);var H=i-F*B;return H=Ry(n,"numbersTranslate",0,H,x,Math.max),j2(H,N)+h9e(F)})}function Hu(e){e.each(function(r){rc.stroke(Yu.select(this),r.line.color)}).each(function(r){rc.fill(Yu.select(this),r.color)}).style("stroke-width",function(r){return r.line.width})}function T9e(e,r,t){return function(){var a=d9e(r,t);return function(n){return e.endAngle(a(n))()}}}function K2(e,r,t){var a=e._fullLayout,n=cs.extendFlat({type:"linear",ticks:"outside",range:t,showline:!0},r),i={type:"linear",_id:"x"+r._id},l={letter:"x",font:a.font,noAutotickangles:!0,noHover:!0,noTickson:!0};function o(s,u){return cs.coerce(n,i,x9e,s,u)}return y9e(n,i,o,l,a),g9e(n,i,o,l),i}function SZ(e,r,t){var a=Math.min(r/e.width,t/e.height);return[a,e,r+"x"+t]}function M9e(e,r){var t=Math.sqrt(e.width/2*(e.width/2)+e.height*e.height),a=r/t;return[a,e,r]}function qZ(e,r,t,a){var n=document.createElementNS("http://www.w3.org/2000/svg","text"),i=Yu.select(n);return i.text(e).attr("x",0).attr("y",0).attr("text-anchor",t).attr("data-unformatted",e).call(zy.convertToTspans,a).call(Ou.font,r),Ou.bBox(i.node())}function Ry(e,r,t,a,n,i){var l="_cache"+r;e[l]&&e[l].key===n||(e[l]={key:n,value:t});var o=cs.aggNums(i,null,[e[l].value,a],2);return e[l].value=o,o}});var RZ=U((UPe,EZ)=>{"use strict";EZ.exports={moduleType:"trace",name:"indicator",basePlotModule:oW(),categories:["svg","noOpacity","noHover"],animatable:!0,attributes:t7(),supplyDefaults:mW().supplyDefaults,calc:gW().calc,plot:PZ(),meta:{}}});var FZ=U((VPe,zZ)=>{"use strict";zZ.exports=RZ()});var Ny=U((XPe,OZ)=>{"use strict";var Fy=ke().extendFlat,ed=Zi(),NZ=Gi().axisHoverFormat,{hovertemplateAttrs:A9e,templatefallbackAttrs:k9e}=On(),BZ=Bi().dash,C9e=Pc(),HZ=(Of(),Fe(Hf)),L9e=HZ.INCREASING.COLOR,S9e=HZ.DECREASING.COLOR,q7=ed.line;function IZ(e){return{line:{color:Fy({},q7.color,{dflt:e}),width:q7.width,dash:BZ,editType:"style"},editType:"style"}}OZ.exports={xperiod:ed.xperiod,xperiod0:ed.xperiod0,xperiodalignment:ed.xperiodalignment,xhoverformat:NZ("x"),yhoverformat:NZ("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:Fy({},q7.width,{}),dash:Fy({},BZ,{}),editType:"style"},increasing:IZ(L9e),decreasing:IZ(S9e),text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertemplate:A9e({},{keys:["open","high","low","close"]}),hovertemplatefallback:k9e(),tickwidth:{valType:"number",min:0,max:.5,dflt:.3,editType:"calc"},hoverlabel:Fy({},C9e.hoverlabel,{split:{valType:"boolean",dflt:!1,editType:"style"}}),zorder:ed.zorder}});var D7=U((WPe,YZ)=>{"use strict";var q9e=Ar(),D9e=ke();YZ.exports=function(r,t,a,n){var i=a("x"),l=a("open"),o=a("high"),s=a("low"),u=a("close");a("hoverlabel.split");var f=q9e.getComponentMethod("calendars","handleTraceDefaults");if(f(r,t,["x"],n),!!(l&&o&&s&&u)){var c=Math.min(l.length,o.length,s.length,u.length);return i&&(c=Math.min(c,D9e.minRowLength(i))),t._length=c,c}}});var VZ=U((ZPe,UZ)=>{"use strict";var P9e=ke(),E9e=D7(),R9e=mu(),z9e=Ny();UZ.exports=function(r,t,a,n){function i(o,s){return P9e.coerce(r,t,z9e,o,s)}var l=E9e(r,t,i,n);if(!l){t.visible=!1;return}R9e(r,t,n,i,{x:!0}),i("xhoverformat"),i("yhoverformat"),i("line.width"),i("line.dash"),GZ(r,t,i,"increasing"),GZ(r,t,i,"decreasing"),i("text"),i("hovertext"),i("hovertemplate"),i("hovertemplatefallback"),i("tickwidth"),n._requestRangeslider[t.xaxis]=!0,i("zorder")};function GZ(e,r,t,a){t(a+".line.color"),t(a+".line.width",r.line.width),t(a+".line.dash",r.line.dash)}});var P7=U((JPe,WZ)=>{"use strict";var tc=ke(),Iy=tc._,By=Kr(),F9e=yu(),rd=(Et(),Fe(zt)).BADNUM;function N9e(e,r){var t=By.getFromId(e,r.xaxis),a=By.getFromId(e,r.yaxis),n=B9e(e,t,r),i=r._minDiff;r._minDiff=null;var l=r._origX;r._origX=null;var o=r._xcalc;r._xcalc=null;var s=XZ(e,r,l,o,a,I9e);return r._extremes[t._id]=By.findExtremes(t,o,{vpad:i/2}),s.length?(tc.extendFlat(s[0].t,{wHover:i/2,tickLen:n}),s):[{t:{empty:!0}}]}function I9e(e,r,t,a){return{o:e,h:r,l:t,c:a}}function XZ(e,r,t,a,n,i){for(var l=n.makeCalcdata(r,"open"),o=n.makeCalcdata(r,"high"),s=n.makeCalcdata(r,"low"),u=n.makeCalcdata(r,"close"),f=tc.isArrayOrTypedArray(r.text),c=tc.isArrayOrTypedArray(r.hovertext),v=!0,h=null,p=!!r.xperiodalignment,y=[],m=0;mh):v=M>_,h=M;var k=i(_,w,x,M);k.pos=b,k.yc=(_+M)/2,k.i=m,k.dir=v?"increasing":"decreasing",k.x=k.pos,k.y=[x,w],p&&(k.orig_p=t[m]),f&&(k.tx=r.text[m]),c&&(k.htx=r.hovertext[m]),y.push(k)}else y.push({pos:b,empty:!0})}return r._extremes[n._id]=By.findExtremes(n,tc.concat(s,o),{padded:!0}),y.length&&(y[0].t={labels:{open:Iy(e,"open:")+" ",high:Iy(e,"high:")+" ",low:Iy(e,"low:")+" ",close:Iy(e,"close:")+" "}}),y}function B9e(e,r,t){var a=t._minDiff;if(!a){var n=e._fullData,i=[];a=1/0;var l;for(l=0;l{"use strict";var H9e=Er(),ZZ=ke();JZ.exports=function(r,t,a,n){var i=t.yaxis,l=t.xaxis,o=!!l.rangebreaks;ZZ.makeTraceGroups(n,a,"trace ohlc").each(function(s){var u=H9e.select(this),f=s[0],c=f.t,v=f.trace;if(v.visible!==!0||c.empty){u.remove();return}var h=c.tickLen,p=u.selectAll("path").data(ZZ.identity);p.enter().append("path"),p.exit().remove(),p.attr("d",function(y){if(y.empty)return"M0,0Z";var m=l.c2p(y.pos-h,!0),b=l.c2p(y.pos+h,!0),_=o?(m+b)/2:l.c2p(y.pos,!0),w=i.c2p(y.o,!0),x=i.c2p(y.h,!0),M=i.c2p(y.l,!0),k=i.c2p(y.c,!0);return"M"+m+","+w+"H"+_+"M"+_+","+x+"V"+M+"M"+b+","+k+"H"+_})})}});var jZ=U((KPe,KZ)=>{"use strict";var E7=Er(),O9e=Zr(),Y9e=kr();KZ.exports=function(r,t,a){var n=a||E7.select(r).selectAll("g.ohlclayer").selectAll("g.trace");n.style("opacity",function(i){return i[0].trace.opacity}),n.each(function(i){var l=i[0].trace;E7.select(this).selectAll("path").each(function(o){if(!o.empty){var s=l[o.dir].line;E7.select(this).style("fill","none").call(Y9e.stroke,s.color).call(O9e.dashLine,s.dash,s.width).style("opacity",l.selectedpoints&&!o.selected?.3:1)}})})}});var z7=U((jPe,aJ)=>{"use strict";var R7=Kr(),G9e=ke(),Hy=yi(),U9e=kr(),V9e=ke().fillText,QZ=(Of(),Fe(Hf)),X9e={increasing:QZ.INCREASING.SYMBOL,decreasing:QZ.DECREASING.SYMBOL};function W9e(e,r,t,a){var n=e.cd,i=n[0].trace;return i.hoverlabel.split?rJ(e,r,t,a):tJ(e,r,t,a)}function eJ(e,r,t,a){var n=e.cd,i=e.xa,l=n[0].trace,o=n[0].t,s=l.type,u=s==="ohlc"?"l":"min",f=s==="ohlc"?"h":"max",c,v,h=o.bPos||0,p=function(P){return P.pos+h-r},y=o.bdPos||o.tickLen,m=o.wHover,b=Math.min(1,y/Math.abs(i.r2c(i.range[1])-i.r2c(i.range[0])));c=e.maxHoverDistance-b,v=e.maxSpikeDistance-b;function _(P){var R=p(P);return Hy.inbox(R-m,R+m,c)}function w(P){var R=P[u],F=P[f];return R===F||Hy.inbox(R-t,F-t,c)}function x(P){return(_(P)+w(P))/2}var M=Hy.getDistanceFunction(a,_,w,x);if(Hy.getClosest(n,M,e),e.index===!1)return null;var k=n[e.index];if(k.empty)return null;var A=k.dir,S=l[A],D=S.line.color;return U9e.opacity(D)&&S.line.width?e.color=D:e.color=S.fillcolor,e.x0=i.c2p(k.pos+h-y,!0),e.x1=i.c2p(k.pos+h+y,!0),e.xLabelVal=k.orig_p!==void 0?k.orig_p:k.pos,e.spikeDistance=x(k)*v/c,e.xSpike=i.c2p(k.pos,!0),e}function rJ(e,r,t,a){var n=e.cd,i=e.ya,l=n[0].trace,o=n[0].t,s=[],u=eJ(e,r,t,a);if(!u)return[];var f=n[u.index],c=f.hi||l.hoverinfo||"";if(c==="none"||c==="skip")return[];for(var v=["high","open","close","low"],h={},p=0;p"+o.labels[y]+R7.hoverLabelText(i,m,l.yhoverformat)):(_=G9e.extendFlat({},u),_.y0=_.y1=b,_.yLabelVal=m,_.yLabel=o.labels[y]+R7.hoverLabelText(i,m,l.yhoverformat),_.name="",s.push(_),h[m]=_)}return s}function tJ(e,r,t,a){var n=e.cd,i=e.ya,l=n[0].trace,o=n[0].t,s=eJ(e,r,t,a);if(!s)return[];var u=s.index,f=n[u],c=s.index=f.i,v=f.dir;function h(x){return o.labels[x]+R7.hoverLabelText(i,l[x][c],l.yhoverformat)}var p=f.hi||l.hoverinfo||"",y=p.split("+"),m=p==="all",b=m||y.indexOf("y")!==-1,_=m||y.indexOf("text")!==-1,w=b?[h("open"),h("high"),h("low"),h("close")+" "+X9e[v]]:[];return _&&V9e(f,l,w),s.extraText=w.join("
"),s.y0=s.y1=i.c2p(f.yc,!0),[s]}aJ.exports={hoverPoints:W9e,hoverSplit:rJ,hoverOnPoints:tJ}});var F7=U((QPe,nJ)=>{"use strict";nJ.exports=function(r,t){var a=r.cd,n=r.xaxis,i=r.yaxis,l=[],o,s=a[0].t.bPos||0;if(t===!1)for(o=0;o{"use strict";iJ.exports={moduleType:"trace",name:"ohlc",basePlotModule:Kl(),categories:["cartesian","svg","showLegend"],meta:{},attributes:Ny(),supplyDefaults:VZ(),calc:P7().calc,plot:$Z(),style:jZ(),hoverPoints:z7().hoverPoints,selectPoints:F7()}});var sJ=U((rEe,oJ)=>{"use strict";oJ.exports=lJ()});var dJ=U((tEe,vJ)=>{"use strict";var Z9e=k4(),Di=Zi(),uJ=to(),J9e=ui(),fJ=Gi().axisHoverFormat,{hovertemplateAttrs:$9e,templatefallbackAttrs:K9e}=On(),oo=At().extendFlat,ac=Di.marker,cJ=ac.line;vJ.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:Di.xperiod,yperiod:Di.yperiod,xperiod0:Di.xperiod0,yperiod0:Di.yperiod0,xperiodalignment:Di.xperiodalignment,yperiodalignment:Di.yperiodalignment,xhoverformat:fJ("x"),yhoverformat:fJ("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:oo({},ac.symbol,{arrayOk:!1,editType:"plot"}),opacity:oo({},ac.opacity,{arrayOk:!1,dflt:1,editType:"style"}),angle:oo({},ac.angle,{arrayOk:!1,editType:"calc"}),size:oo({},ac.size,{arrayOk:!1,editType:"calc"}),color:oo({},ac.color,{arrayOk:!1,editType:"style"}),line:{color:oo({},cJ.color,{arrayOk:!1,dflt:J9e.defaultLine,editType:"style"}),width:oo({},cJ.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:Z9e(),whiskerwidth:{valType:"number",min:0,max:1,dflt:.5,editType:"calc"},showwhiskers:{valType:"boolean",editType:"calc"},offsetgroup:uJ.offsetgroup,alignmentgroup:uJ.alignmentgroup,selected:{marker:Di.selected.marker,editType:"style"},unselected:{marker:Di.unselected.marker,editType:"style"},text:oo({},Di.text,{}),hovertext:oo({},Di.hovertext,{}),hovertemplate:$9e({}),hovertemplatefallback:K9e(),hoveron:{valType:"flaglist",flags:["boxes","points"],dflt:"boxes+points",editType:"style"},zorder:Di.zorder}});var I7=U((aEe,mJ)=>{"use strict";var N7=ke().extendFlat,hJ=Gi().axisHoverFormat,xn=Ny(),nc=dJ();function pJ(e){return{line:{color:N7({},nc.line.color,{dflt:e}),width:nc.line.width,editType:"style"},fillcolor:nc.fillcolor,editType:"style"}}mJ.exports={xperiod:xn.xperiod,xperiod0:xn.xperiod0,xperiodalignment:xn.xperiodalignment,xhoverformat:hJ("x"),yhoverformat:hJ("y"),x:xn.x,open:xn.open,high:xn.high,low:xn.low,close:xn.close,line:{width:N7({},nc.line.width,{}),editType:"style"},increasing:pJ(xn.increasing.line.color.dflt),decreasing:pJ(xn.decreasing.line.color.dflt),text:xn.text,hovertext:xn.hovertext,hovertemplate:xn.hovertemplate,hovertemplatefallback:xn.hovertemplatefallback,whiskerwidth:N7({},nc.whiskerwidth,{dflt:0}),hoverlabel:xn.hoverlabel,zorder:nc.zorder}});var B7=U((nEe,yJ)=>{"use strict";yJ.exports={boxmode:{valType:"enumerated",values:["group","overlay"],dflt:"overlay",editType:"calc"},boxgap:{valType:"number",min:0,max:1,dflt:.3,editType:"calc"},boxgroupgap:{valType:"number",min:0,max:1,dflt:.3,editType:"calc"}}});var bJ=U((iEe,xJ)=>{"use strict";var j9e=Ar(),Q9e=ke(),ewe=B7();function gJ(e,r,t,a,n){for(var i=n+"Layout",l=!1,o=0;o{"use strict";var _J=Kr(),twe=ke(),awe=cu().getAxisGroup,wJ=["v","h"];function nwe(e,r){for(var t=e.calcdata,a=r.xaxis,n=r.yaxis,i=0;i1,_=1-i[e+"gap"],w=1-i[e+"groupgap"];for(s=0;s0;if(A==="positive"?(G=S*(k?1:.5),X=W,V=X=P):A==="negative"?(G=X=P,V=S*(k?1:.5),$=W):(G=V=S,X=$=W),le){var _e=x.pointpos,me=x.jitter,ce=x.marker.size/2,Me=0;_e+me>=0&&(Me=W*(_e+me),Me>G?(he=!0,ve=ce,te=Me):Me>X&&(ve=ce,te=G)),Me<=G&&(te=G);var Re=0;_e-me<=0&&(Re=-W*(_e-me),Re>V?(he=!0,K=ce,ie=Re):Re>$&&(K=ce,ie=V)),Re<=V&&(ie=V)}else te=G,ie=V;var xe=new Array(f.length);for(u=0;u{"use strict";var iwe=ke(),lwe=kr(),owe=D7(),swe=mu(),uwe=I7();CJ.exports=function(r,t,a,n){function i(o,s){return iwe.coerce(r,t,uwe,o,s)}var l=owe(r,t,i,n);if(!l){t.visible=!1;return}swe(r,t,n,i,{x:!0}),i("xhoverformat"),i("yhoverformat"),i("line.width"),kJ(r,t,i,"increasing"),kJ(r,t,i,"decreasing"),i("text"),i("hovertext"),i("hovertemplate"),i("hovertemplatefallback"),i("whiskerwidth"),n._requestRangeslider[t.xaxis]=!0,i("zorder")};function kJ(e,r,t,a){var n=t(a+".line.color");t(a+".line.width",r.line.width),t(a+".fillcolor",lwe.addOpacity(n,.5))}});var PJ=U((sEe,DJ)=>{"use strict";var SJ=ke(),qJ=Kr(),fwe=yu(),cwe=P7().calcCommon;DJ.exports=function(e,r){var t=e._fullLayout,a=qJ.getFromId(e,r.xaxis),n=qJ.getFromId(e,r.yaxis),i=a.makeCalcdata(r,"x"),l=fwe(r,a,"x",i).vals,o=cwe(e,r,i,l,n,vwe);return o.length?(SJ.extendFlat(o[0].t,{num:t._numBoxes,dPos:SJ.distinctVals(l).minDiff/2,posLetter:"x",valLetter:"y"}),t._numBoxes++,o):[{t:{empty:!0}}]};function vwe(e,r,t,a){return{min:t,q1:Math.min(e,a),med:a,q3:Math.max(e,a),max:r}}});var IJ=U((uEe,NJ)=>{"use strict";var ic=Er(),Gu=ke(),dwe=Zr(),EJ=5,hwe=.01;function pwe(e,r,t,a){var n=e._context.staticPlot,i=r.xaxis,l=r.yaxis;Gu.makeTraceGroups(a,t,"trace boxes").each(function(o){var s=ic.select(this),u=o[0],f=u.t,c=u.trace;if(f.wdPos=f.bdPos*c.whiskerwidth,c.visible!==!0||f.empty){s.remove();return}var v,h;c.orientation==="h"?(v=l,h=i):(v=i,h=l),RJ(s,{pos:v,val:h},c,f,n),zJ(s,{x:i,y:l},c,f),FJ(s,{pos:v,val:h},c,f)})}function RJ(e,r,t,a,n){var i=t.orientation==="h",l=r.val,o=r.pos,s=!!o.rangebreaks,u=a.bPos,f=a.wdPos||0,c=a.bPosPxOffset||0,v=t.whiskerwidth||0,h=t.showwhiskers!==!1,p=t.notched||!1,y=p?1-2*t.notchwidth:1,m,b;Array.isArray(a.bdPos)?(m=a.bdPos[0],b=a.bdPos[1]):(m=a.bdPos,b=a.bdPos);var _=e.selectAll("path.box").data(t.type!=="violin"||t.box.visible?Gu.identity:[]);_.enter().append("path").style("vector-effect",n?"none":"non-scaling-stroke").attr("class","box"),_.exit().remove(),_.each(function(w){if(w.empty)return ic.select(this).attr("d","M0,0Z");var x=o.c2l(w.pos+u,!0),M=o.l2p(x-m)+c,k=o.l2p(x+b)+c,A=s?(M+k)/2:o.l2p(x)+c,S=t.whiskerwidth,D=s?M*S+(1-S)*A:o.l2p(x-f)+c,P=s?k*S+(1-S)*A:o.l2p(x+f)+c,R=o.l2p(x-m*y)+c,F=o.l2p(x+b*y)+c,N=t.sizemode==="sd",B=l.c2p(N?w.mean-w.sd:w.q1,!0),H=N?l.c2p(w.mean+w.sd,!0):l.c2p(w.q3,!0),O=Gu.constrain(N?l.c2p(w.mean,!0):l.c2p(w.med,!0),Math.min(B,H)+1,Math.max(B,H)-1),Y=w.lf===void 0||t.boxpoints===!1||N,G=l.c2p(Y?w.min:w.lf,!0),V=l.c2p(Y?w.max:w.uf,!0),W=l.c2p(w.ln,!0),X=l.c2p(w.un,!0);i?ic.select(this).attr("d","M"+O+","+R+"V"+F+"M"+B+","+M+"V"+k+(p?"H"+W+"L"+O+","+F+"L"+X+","+k:"")+"H"+H+"V"+M+(p?"H"+X+"L"+O+","+R+"L"+W+","+M:"")+"Z"+(h?"M"+B+","+A+"H"+G+"M"+H+","+A+"H"+V+(v===0?"":"M"+G+","+D+"V"+P+"M"+V+","+D+"V"+P):"")):ic.select(this).attr("d","M"+R+","+O+"H"+F+"M"+M+","+B+"H"+k+(p?"V"+W+"L"+F+","+O+"L"+k+","+X:"")+"V"+H+"H"+M+(p?"V"+X+"L"+R+","+O+"L"+M+","+W:"")+"Z"+(h?"M"+A+","+B+"V"+G+"M"+A+","+H+"V"+V+(v===0?"":"M"+D+","+G+"H"+P+"M"+D+","+V+"H"+P):""))})}function zJ(e,r,t,a){var n=r.x,i=r.y,l=a.bdPos,o=a.bPos,s=t.boxpoints||t.points;Gu.seedPseudoRandom();var u=function(v){return v.forEach(function(h){h.t=a,h.trace=t}),v},f=e.selectAll("g.points").data(s?u:[]);f.enter().append("g").attr("class","points"),f.exit().remove();var c=f.selectAll("path").data(function(v){var h,p=v.pts2,y=Math.max((v.max-v.min)/10,v.q3-v.q1),m=y*1e-9,b=y*hwe,_=[],w=0,x;if(t.jitter){if(y===0)for(w=1,_=new Array(p.length),h=0;hv.lo&&(P.so=!0)}return p});c.enter().append("path").classed("point",!0),c.exit().remove(),c.call(dwe.translatePoints,n,i)}function FJ(e,r,t,a){var n=r.val,i=r.pos,l=!!i.rangebreaks,o=a.bPos,s=a.bPosPxOffset||0,u=t.boxmean||(t.meanline||{}).visible,f,c;Array.isArray(a.bdPos)?(f=a.bdPos[0],c=a.bdPos[1]):(f=a.bdPos,c=a.bdPos);var v=e.selectAll("path.mean").data(t.type==="box"&&t.boxmean||t.type==="violin"&&t.box.visible&&t.meanline.visible?Gu.identity:[]);v.enter().append("path").attr("class","mean").style({fill:"none","vector-effect":"non-scaling-stroke"}),v.exit().remove(),v.each(function(h){var p=i.c2l(h.pos+o,!0),y=i.l2p(p-f)+s,m=i.l2p(p+c)+s,b=l?(y+m)/2:i.l2p(p)+s,_=n.c2p(h.mean,!0),w=n.c2p(h.mean-h.sd,!0),x=n.c2p(h.mean+h.sd,!0);t.orientation==="h"?ic.select(this).attr("d","M"+_+","+y+"V"+m+(u==="sd"?"m0,0L"+w+","+b+"L"+_+","+y+"L"+x+","+b+"Z":"")):ic.select(this).attr("d","M"+y+","+_+"H"+m+(u==="sd"?"m0,0L"+b+","+w+"L"+y+","+_+"L"+b+","+x+"Z":""))})}NJ.exports={plot:pwe,plotBoxAndWhiskers:RJ,plotPoints:zJ,plotBoxMean:FJ}});var HJ=U((fEe,BJ)=>{"use strict";var H7=Er(),O7=kr(),Y7=Zr();function mwe(e,r,t){var a=t||H7.select(e).selectAll("g.trace.boxes");a.style("opacity",function(n){return n[0].trace.opacity}),a.each(function(n){var i=H7.select(this),l=n[0].trace,o=l.line.width;function s(c,v,h,p){c.style("stroke-width",v+"px").call(O7.stroke,h).call(O7.fill,p)}var u=i.selectAll("path.box");if(l.type==="candlestick")u.each(function(c){if(!c.empty){var v=H7.select(this),h=l[c.dir];s(v,h.line.width,h.line.color,h.fillcolor),v.style("opacity",l.selectedpoints&&!c.selected?.3:1)}});else{s(u,o,l.line.color,l.fillcolor),i.selectAll("path.mean").style({"stroke-width":o,"stroke-dasharray":2*o+"px,"+o+"px"}).call(O7.stroke,l.line.color);var f=i.selectAll("path.point");Y7.pointStyle(f,l,e)}})}function ywe(e,r,t){var a=r[0].trace,n=t.selectAll("path.point");a.selectedpoints?Y7.selectedPointStyle(n,a):Y7.pointStyle(n,a,e)}BJ.exports={style:mwe,styleOnSelect:ywe}});var YJ=U((cEe,OJ)=>{"use strict";OJ.exports={moduleType:"trace",name:"candlestick",basePlotModule:Kl(),categories:["cartesian","svg","showLegend","candlestick","boxLayout"],meta:{},attributes:I7(),layoutAttributes:B7(),supplyLayoutDefaults:bJ().supplyLayoutDefaults,crossTraceCalc:AJ().crossTraceCalc,supplyDefaults:LJ(),calc:PJ(),plot:IJ().plot,layerName:"boxlayer",style:HJ().style,hoverPoints:z7().hoverPoints,selectPoints:F7()}});var UJ=U((vEe,GJ)=>{"use strict";GJ.exports=YJ()});var Ka=U((dEe,XJ)=>{"use strict";var VJ=Object.getOwnPropertySymbols,gwe=Object.prototype.hasOwnProperty,xwe=Object.prototype.propertyIsEnumerable;function bwe(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function _we(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var r={},t=0;t<10;t++)r["_"+String.fromCharCode(t)]=t;var a=Object.getOwnPropertyNames(r).map(function(i){return r[i]});if(a.join("")!=="0123456789")return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach(function(i){n[i]=i}),Object.keys(Object.assign({},n)).join("")==="abcdefghijklmnopqrst"}catch(i){return!1}}XJ.exports=_we()?Object.assign:function(e,r){for(var t,a=bwe(e),n,i=1;i{var Yy=Ka();function WJ(){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={}}Yy(WJ.prototype,{instance:function(e,r){e=(e||"gregorian").toLowerCase(),r=r||"";var t=this._localCals[e+"-"+r];if(!t&&this.calendars[e]&&(t=new this.calendars[e](r),this._localCals[e+"-"+r]=t),!t)throw(this.local.invalidCalendar||this.regionalOptions[""].invalidCalendar).replace(/\{0\}/,e);return t},newDate:function(e,r,t,a,n){return a=(e!=null&&e.year?e.calendar():typeof a=="string"?this.instance(a,n):a)||this.instance(),a.newDate(e,r,t)},substituteDigits:function(e){return function(r){return(r+"").replace(/[0-9]/g,function(t){return e[t]})}},substituteChineseDigits:function(e,r){return function(t){for(var a="",n=0;t>0;){var i=t%10;a=(i===0?"":e[i]+r[n])+a,n++,t=Math.floor(t/10)}return a.indexOf(e[1]+r[1])===0&&(a=a.substr(1)),a||e[0]}}});function G7(e,r,t,a){if(this._calendar=e,this._year=r,this._month=t,this._day=a,this._calendar._validateLevel===0&&!this._calendar.isValid(this._year,this._month,this._day))throw(Yr.local.invalidDate||Yr.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name)}function Oy(e,r){return e=""+e,"000000".substring(0,r-e.length)+e}Yy(G7.prototype,{newDate:function(e,r,t){return this._calendar.newDate(e==null?this:e,r,t)},year:function(e){return arguments.length===0?this._year:this.set(e,"y")},month:function(e){return arguments.length===0?this._month:this.set(e,"m")},day:function(e){return arguments.length===0?this._day:this.set(e,"d")},date:function(e,r,t){if(!this._calendar.isValid(e,r,t))throw(Yr.local.invalidDate||Yr.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name);return this._year=e,this._month=r,this._day=t,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(e,r){return this._calendar.add(this,e,r)},set:function(e,r){return this._calendar.set(this,e,r)},compareTo:function(e){if(this._calendar.name!==e._calendar.name)throw(Yr.local.differentCalendars||Yr.regionalOptions[""].differentCalendars).replace(/\{0\}/,this._calendar.local.name).replace(/\{1\}/,e._calendar.local.name);var r=this._year!==e._year?this._year-e._year:this._month!==e._month?this.monthOfYear()-e.monthOfYear():this._day-e._day;return r===0?0:r<0?-1:1},calendar:function(){return this._calendar},toJD:function(){return this._calendar.toJD(this)},fromJD:function(e){return this._calendar.fromJD(e)},toJSDate:function(){return this._calendar.toJSDate(this)},fromJSDate:function(e){return this._calendar.fromJSDate(e)},toString:function(){return(this.year()<0?"-":"")+Oy(Math.abs(this.year()),4)+"-"+Oy(this.month(),2)+"-"+Oy(this.day(),2)}});function U7(){this.shortYearCutoff="+10"}Yy(U7.prototype,{_validateLevel:0,newDate:function(e,r,t){return e==null?this.today():(e.year&&(this._validate(e,r,t,Yr.local.invalidDate||Yr.regionalOptions[""].invalidDate),t=e.day(),r=e.month(),e=e.year()),new G7(this,e,r,t))},today:function(){return this.fromJSDate(new Date)},epoch:function(e){var r=this._validate(e,this.minMonth,this.minDay,Yr.local.invalidYear||Yr.regionalOptions[""].invalidYear);return r.year()<0?this.local.epochs[0]:this.local.epochs[1]},formatYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Yr.local.invalidYear||Yr.regionalOptions[""].invalidYear);return(r.year()<0?"-":"")+Oy(Math.abs(r.year()),4)},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Yr.local.invalidYear||Yr.regionalOptions[""].invalidYear),12},monthOfYear:function(e,r){var t=this._validate(e,r,this.minDay,Yr.local.invalidMonth||Yr.regionalOptions[""].invalidMonth);return(t.month()+this.monthsInYear(t)-this.firstMonth)%this.monthsInYear(t)+this.minMonth},fromMonthOfYear:function(e,r){var t=(r+this.firstMonth-2*this.minMonth)%this.monthsInYear(e)+this.minMonth;return this._validate(e,t,this.minDay,Yr.local.invalidMonth||Yr.regionalOptions[""].invalidMonth),t},daysInYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Yr.local.invalidYear||Yr.regionalOptions[""].invalidYear);return this.leapYear(r)?366:365},dayOfYear:function(e,r,t){var a=this._validate(e,r,t,Yr.local.invalidDate||Yr.regionalOptions[""].invalidDate);return a.toJD()-this.newDate(a.year(),this.fromMonthOfYear(a.year(),this.minMonth),this.minDay).toJD()+1},daysInWeek:function(){return 7},dayOfWeek:function(e,r,t){var a=this._validate(e,r,t,Yr.local.invalidDate||Yr.regionalOptions[""].invalidDate);return(Math.floor(this.toJD(a))+2)%this.daysInWeek()},extraInfo:function(e,r,t){return this._validate(e,r,t,Yr.local.invalidDate||Yr.regionalOptions[""].invalidDate),{}},add:function(e,r,t){return this._validate(e,this.minMonth,this.minDay,Yr.local.invalidDate||Yr.regionalOptions[""].invalidDate),this._correctAdd(e,this._add(e,r,t),r,t)},_add:function(e,r,t){if(this._validateLevel++,t==="d"||t==="w"){var a=e.toJD()+r*(t==="w"?this.daysInWeek():1),n=e.calendar().fromJD(a);return this._validateLevel--,[n.year(),n.month(),n.day()]}try{var i=e.year()+(t==="y"?r:0),l=e.monthOfYear()+(t==="m"?r:0),n=e.day(),o=function(f){for(;lc-1+f.minMonth;)i++,l-=c,c=f.monthsInYear(i)};t==="y"?(e.month()!==this.fromMonthOfYear(i,l)&&(l=this.newDate(i,e.month(),this.minDay).monthOfYear()),l=Math.min(l,this.monthsInYear(i)),n=Math.min(n,this.daysInMonth(i,this.fromMonthOfYear(i,l)))):t==="m"&&(o(this),n=Math.min(n,this.daysInMonth(i,this.fromMonthOfYear(i,l))));var s=[i,this.fromMonthOfYear(i,l),n];return this._validateLevel--,s}catch(u){throw this._validateLevel--,u}},_correctAdd:function(e,r,t,a){if(!this.hasYearZero&&(a==="y"||a==="m")&&(r[0]===0||e.year()>0!=r[0]>0)){var n={y:[1,1,"y"],m:[1,this.monthsInYear(-1),"m"],w:[this.daysInWeek(),this.daysInYear(-1),"d"],d:[1,this.daysInYear(-1),"d"]}[a],i=t<0?-1:1;r=this._add(e,t*n[0]+i*n[1],n[2])}return e.date(r[0],r[1],r[2])},set:function(e,r,t){this._validate(e,this.minMonth,this.minDay,Yr.local.invalidDate||Yr.regionalOptions[""].invalidDate);var a=t==="y"?r:e.year(),n=t==="m"?r:e.month(),i=t==="d"?r:e.day();return(t==="y"||t==="m")&&(i=Math.min(i,this.daysInMonth(a,n))),e.date(a,n,i)},isValid:function(e,r,t){this._validateLevel++;var a=this.hasYearZero||e!==0;if(a){var n=this.newDate(e,r,this.minDay);a=r>=this.minMonth&&r-this.minMonth=this.minDay&&t-this.minDay13.5?13:1),u=n-(s>2.5?4716:4715);return u<=0&&u--,this.newDate(u,s,o)},toJSDate:function(e,r,t){var a=this._validate(e,r,t,Yr.local.invalidDate||Yr.regionalOptions[""].invalidDate),n=new Date(a.year(),a.month()-1,a.day());return n.setHours(0),n.setMinutes(0),n.setSeconds(0),n.setMilliseconds(0),n.setHours(n.getHours()>12?n.getHours()+2:0),n},fromJSDate:function(e){return this.newDate(e.getFullYear(),e.getMonth()+1,e.getDate())}});var Yr=ZJ.exports=new WJ;Yr.cdate=G7;Yr.baseCalendar=U7;Yr.calendars.gregorian=V7});var JJ=U(()=>{var X7=Ka(),Ea=ja();X7(Ea.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"});Ea.local=Ea.regionalOptions[""];X7(Ea.cdate.prototype,{formatDate:function(e,r){return typeof e!="string"&&(r=e,e=""),this._calendar.formatDate(e||"",this,r)}});X7(Ea.baseCalendar.prototype,{UNIX_EPOCH:Ea.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:1440*60,TICKS_EPOCH:Ea.instance().jdEpoch,TICKS_PER_DAY:1440*60*1e7,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(e,r,t){if(typeof e!="string"&&(t=r,r=e,e=""),!r)return"";if(r.calendar()!==this)throw Ea.local.invalidFormat||Ea.regionalOptions[""].invalidFormat;e=e||this.local.dateFormat,t=t||{};for(var a=t.dayNamesShort||this.local.dayNamesShort,n=t.dayNames||this.local.dayNames,i=t.monthNumbers||this.local.monthNumbers,l=t.monthNamesShort||this.local.monthNamesShort,o=t.monthNames||this.local.monthNames,s=t.calculateWeek||this.local.calculateWeek,u=function(x,M){for(var k=1;w+k1},f=function(x,M,k,A){var S=""+M;if(u(x,A))for(;S.length1},_=function(F,N){var B=b(F,N),H=[2,3,B?4:2,B?4:2,10,11,20]["oyYJ@!".indexOf(F)+1],O=new RegExp("^-?\\d{1,"+H+"}"),Y=r.substring(S).match(O);if(!Y)throw(Ea.local.missingNumberAt||Ea.regionalOptions[""].missingNumberAt).replace(/\{0\}/,S);return S+=Y[0].length,parseInt(Y[0],10)},w=this,x=function(){if(typeof o=="function"){b("m");var F=o.call(w,r.substring(S));return S+=F.length,F}return _("m")},M=function(F,N,B,H){for(var O=b(F,H)?B:N,Y=0;Y-1){v=1,h=p;for(var R=this.daysInMonth(c,v);h>R;R=this.daysInMonth(c,v))v++,h-=R}return f>-1?this.fromJD(f):this.newDate(c,v,h)},determineDate:function(e,r,t,a,n){t&&typeof t!="object"&&(n=a,a=t,t=null),typeof a!="string"&&(n=a,a="");var i=this,l=function(o){try{return i.parseDate(a,o,n)}catch(c){}o=o.toLowerCase();for(var s=(o.match(/^c/)&&t?t.newDate():null)||i.today(),u=/([+-]?[0-9]+)\s*(d|w|m|y)?/g,f=u.exec(o);f;)s.add(parseInt(f[1],10),f[2]||"d"),f=u.exec(o);return s};return r=r?r.newDate():null,e=e==null?r:typeof e=="string"?l(e):typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?r:i.today().add(e,"d"):i.newDate(e),e}})});var $J=U(()=>{var vs=ja(),wwe=Ka(),W7=vs.instance();function Gy(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}Gy.prototype=new vs.baseCalendar;wwe(Gy.prototype,{name:"Chinese",jdEpoch:17214255e-1,hasYearZero:!1,minMonth:0,firstMonth:0,minDay:1,regionalOptions:{"":{name:"Chinese",epochs:["BEC","EC"],monthNumbers:function(e,r){if(typeof e=="string"){var t=e.match(Mwe);return t?t[0]:""}var a=this._validateYear(e),n=e.month(),i=""+this.toChineseMonth(a,n);return r&&i.length<2&&(i="0"+i),this.isIntercalaryMonth(a,n)&&(i+="i"),i},monthNames:function(e){if(typeof e=="string"){var r=e.match(Awe);return r?r[0]:""}var t=this._validateYear(e),a=e.month(),n=this.toChineseMonth(t,a),i=["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"][n-1];return this.isIntercalaryMonth(t,a)&&(i="\u95F0"+i),i},monthNamesShort:function(e){if(typeof e=="string"){var r=e.match(kwe);return r?r[0]:""}var t=this._validateYear(e),a=e.month(),n=this.toChineseMonth(t,a),i=["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"][n-1];return this.isIntercalaryMonth(t,a)&&(i="\u95F0"+i),i},parseMonth:function(e,r){e=this._validateYear(e);var t=parseInt(r),a;if(isNaN(t))r[0]==="\u95F0"&&(a=!0,r=r.substring(1)),r[r.length-1]==="\u6708"&&(r=r.substring(0,r.length-1)),t=1+["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"].indexOf(r);else{var n=r[r.length-1];a=n==="i"||n==="I"}var i=this.toMonthIndex(e,t,a);return i},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(e,r){if(e.year&&(e=e.year()),typeof e!="number"||e<1888||e>2111)throw r.replace(/\{0\}/,this.local.name);return e},toMonthIndex:function(e,r,t){var a=this.intercalaryMonth(e),n=t&&r!==a;if(n||r<1||r>12)throw vs.local.invalidMonth.replace(/\{0\}/,this.local.name);var i;return a?!t&&r<=a?i=r-1:i=r:i=r-1,i},toChineseMonth:function(e,r){e.year&&(e=e.year(),r=e.month());var t=this.intercalaryMonth(e),a=t?12:11;if(r<0||r>a)throw vs.local.invalidMonth.replace(/\{0\}/,this.local.name);var n;return t?r>13;return t},isIntercalaryMonth:function(e,r){e.year&&(e=e.year(),r=e.month());var t=this.intercalaryMonth(e);return!!t&&t===r},leapYear:function(e){return this.intercalaryMonth(e)!==0},weekOfYear:function(e,r,t){var a=this._validateYear(e,vs.local.invalidyear),n=hs[a-hs[0]],i=n>>9&4095,l=n>>5&15,o=n&31,s;s=W7.newDate(i,l,o),s.add(4-(s.dayOfWeek()||7),"d");var u=this.toJD(e,r,t)-s.toJD();return 1+Math.floor(u/7)},monthsInYear:function(e){return this.leapYear(e)?13:12},daysInMonth:function(e,r){e.year&&(r=e.month(),e=e.year()),e=this._validateYear(e);var t=ds[e-ds[0]],a=t>>13,n=a?12:11;if(r>n)throw vs.local.invalidMonth.replace(/\{0\}/,this.local.name);var i=t&1<<12-r?30:29;return i},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var a=this._validate(e,i,t,vs.local.invalidDate);e=this._validateYear(a.year()),r=a.month(),t=a.day();var n=this.isIntercalaryMonth(e,r),i=this.toChineseMonth(e,r),l=Lwe(e,i,t,n);return W7.toJD(l.year,l.month,l.day)},fromJD:function(e){var r=W7.fromJD(e),t=Cwe(r.year(),r.month(),r.day()),a=this.toMonthIndex(t.year,t.month,t.isIntercalary);return this.newDate(t.year,a,t.day)},fromString:function(e){var r=e.match(Twe),t=this._validateYear(+r[1]),a=+r[2],n=!!r[3],i=this.toMonthIndex(t,a,n),l=+r[4];return this.newDate(t,i,l)},add:function(e,r,t){var a=e.year(),n=e.month(),i=this.isIntercalaryMonth(a,n),l=this.toChineseMonth(a,n),o=Object.getPrototypeOf(Gy.prototype).add.call(this,e,r,t);if(t==="y"){var s=o.year(),u=o.month(),f=this.isIntercalaryMonth(s,l),c=i&&f?this.toMonthIndex(s,l,!0):this.toMonthIndex(s,l,!1);c!==u&&o.month(c)}return o}});var Twe=/^\s*(-?\d\d\d\d|\d\d)[-/](\d?\d)([iI]?)[-/](\d?\d)/m,Mwe=/^\d?\d[iI]?/m,Awe=/^闰?十?[一二三四五六七八九]?月/m,kwe=/^闰?十?[一二三四五六七八九]?/m;vs.calendars.chinese=Gy;var ds=[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],hs=[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 Cwe(e,r,t,a){var n,i;if(typeof e=="object")n=e,i=r||{};else{var l=typeof e=="number"&&e>=1888&&e<=2111;if(!l)throw new Error("Solar year outside range 1888-2111");var o=typeof r=="number"&&r>=1&&r<=12;if(!o)throw new Error("Solar month outside range 1 - 12");var s=typeof t=="number"&&t>=1&&t<=31;if(!s)throw new Error("Solar day outside range 1 - 31");n={year:e,month:r,day:t},i=a||{}}var u=hs[n.year-hs[0]],f=n.year<<9|n.month<<5|n.day;i.year=f>=u?n.year:n.year-1,u=hs[i.year-hs[0]];var c=u>>9&4095,v=u>>5&15,h=u&31,p,y=new Date(c,v-1,h),m=new Date(n.year,n.month-1,n.day);p=Math.round((m-y)/(24*3600*1e3));var b=ds[i.year-ds[0]],_;for(_=0;_<13;_++){var w=b&1<<12-_?30:29;if(p>13;return!x||_=1888&&e<=2111;if(!o)throw new Error("Lunar year outside range 1888-2111");var s=typeof r=="number"&&r>=1&&r<=12;if(!s)throw new Error("Lunar month outside range 1 - 12");var u=typeof t=="number"&&t>=1&&t<=30;if(!u)throw new Error("Lunar day outside range 1 - 30");var f;typeof a=="object"?(f=!1,i=a):(f=!!a,i=n||{}),l={year:e,month:r,day:t,isIntercalary:f}}var c;c=l.day-1;var v=ds[l.year-ds[0]],h=v>>13,p;h&&(l.month>h||l.isIntercalary)?p=l.month:p=l.month-1;for(var y=0;y>9&4095,w=b>>5&15,x=b&31,M=new Date(_,w-1,x+c);return i.year=M.getFullYear(),i.month=1+M.getMonth(),i.day=M.getDate(),i}});var KJ=U(()=>{var Uu=ja(),Swe=Ka();function Z7(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}Z7.prototype=new Uu.baseCalendar;Swe(Z7.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(t){var r=this._validate(t,this.minMonth,this.minDay,Uu.local.invalidYear),t=r.year()+(r.year()<0?1:0);return t%4===3||t%4===-1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Uu.local.invalidYear||Uu.regionalOptions[""].invalidYear),13},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Uu.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===13&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var a=this._validate(e,r,t,Uu.local.invalidDate);return e=a.year(),e<0&&e++,a.day()+(a.month()-1)*30+(e-1)*365+Math.floor(e/4)+this.jdEpoch-1},fromJD:function(e){var r=Math.floor(e)+.5-this.jdEpoch,t=Math.floor((r-Math.floor((r+366)/1461))/365)+1;t<=0&&t--,r=Math.floor(e)+.5-this.newDate(t,1,1).toJD();var a=Math.floor(r/30)+1,n=r-(a-1)*30+1;return this.newDate(t,a,n)}});Uu.calendars.coptic=Z7});var jJ=U(()=>{var so=ja(),qwe=Ka();function J7(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}J7.prototype=new so.baseCalendar;qwe(J7.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(e){return this._validate(e,this.minMonth,this.minDay,so.local.invalidYear),!1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,so.local.invalidYear),13},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,so.local.invalidYear),400},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/8)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,so.local.invalidMonth);return this.daysPerMonth[t.month()-1]},daysInWeek:function(){return 8},dayOfWeek:function(e,r,t){var a=this._validate(e,r,t,so.local.invalidDate);return(a.day()+1)%8},weekDay:function(e,r,t){var a=this.dayOfWeek(e,r,t);return a>=2&&a<=6},extraInfo:function(e,r,t){var a=this._validate(e,r,t,so.local.invalidDate);return{century:Dwe[Math.floor((a.year()-1)/100)+1]||""}},toJD:function(e,r,t){var a=this._validate(e,r,t,so.local.invalidDate);return e=a.year()+(a.year()<0?1:0),r=a.month(),t=a.day(),t+(r>1?16:0)+(r>2?(r-2)*32:0)+(e-1)*400+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e+.5)-Math.floor(this.jdEpoch)-1;var r=Math.floor(e/400)+1;e-=(r-1)*400,e+=e>15?16:0;var t=Math.floor(e/32)+1,a=e-(t-1)*32+1;return this.newDate(r<=0?r-1:r,t,a)}});var Dwe={20:"Fruitbat",21:"Anchovy"};so.calendars.discworld=J7});var QJ=U(()=>{var Vu=ja(),Pwe=Ka();function $7(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}$7.prototype=new Vu.baseCalendar;Pwe($7.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(t){var r=this._validate(t,this.minMonth,this.minDay,Vu.local.invalidYear),t=r.year()+(r.year()<0?1:0);return t%4===3||t%4===-1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Vu.local.invalidYear||Vu.regionalOptions[""].invalidYear),13},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Vu.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===13&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var a=this._validate(e,r,t,Vu.local.invalidDate);return e=a.year(),e<0&&e++,a.day()+(a.month()-1)*30+(e-1)*365+Math.floor(e/4)+this.jdEpoch-1},fromJD:function(e){var r=Math.floor(e)+.5-this.jdEpoch,t=Math.floor((r-Math.floor((r+366)/1461))/365)+1;t<=0&&t--,r=Math.floor(e)+.5-this.newDate(t,1,1).toJD();var a=Math.floor(r/30)+1,n=r-(a-1)*30+1;return this.newDate(t,a,n)}});Vu.calendars.ethiopian=$7});var e$=U(()=>{var ps=ja(),Ewe=Ka();function K7(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}K7.prototype=new ps.baseCalendar;Ewe(K7.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(e){var r=this._validate(e,this.minMonth,this.minDay,ps.local.invalidYear);return this._leapYear(r.year())},_leapYear:function(e){return e=e<0?e+1:e,Uy(e*7+1,19)<7},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,ps.local.invalidYear),this._leapYear(e.year?e.year():e)?13:12},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,ps.local.invalidYear);return e=r.year(),this.toJD(e===-1?1:e+1,7,1)-this.toJD(e,7,1)},daysInMonth:function(e,r){return e.year&&(r=e.month(),e=e.year()),this._validate(e,r,this.minDay,ps.local.invalidMonth),r===12&&this.leapYear(e)||r===8&&Uy(this.daysInYear(e),10)===5?30:r===9&&Uy(this.daysInYear(e),10)===3?29:this.daysPerMonth[r-1]},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==6},extraInfo:function(e,r,t){var a=this._validate(e,r,t,ps.local.invalidDate);return{yearType:(this.leapYear(a)?"embolismic":"common")+" "+["deficient","regular","complete"][this.daysInYear(a)%10-3]}},toJD:function(e,r,t){var a=this._validate(e,r,t,ps.local.invalidDate);e=a.year(),r=a.month(),t=a.day();var n=e<=0?e+1:e,i=this.jdEpoch+this._delay1(n)+this._delay2(n)+t+1;if(r<7){for(var l=7;l<=this.monthsInYear(e);l++)i+=this.daysInMonth(e,l);for(var l=1;l=this.toJD(r===-1?1:r+1,7,1);)r++;for(var t=ethis.toJD(r,t,this.daysInMonth(r,t));)t++;var a=e-this.toJD(r,t,1)+1;return this.newDate(r,t,a)}});function Uy(e,r){return e-r*Math.floor(e/r)}ps.calendars.hebrew=K7});var r$=U(()=>{var td=ja(),Rwe=Ka();function j7(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}j7.prototype=new td.baseCalendar;Rwe(j7.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\u012Bs","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(e){var r=this._validate(e,this.minMonth,this.minDay,td.local.invalidYear);return(r.year()*11+14)%30<11},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInYear:function(e){return this.leapYear(e)?355:354},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,td.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===12&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==5},toJD:function(e,r,t){var a=this._validate(e,r,t,td.local.invalidDate);return e=a.year(),r=a.month(),t=a.day(),e=e<=0?e+1:e,t+Math.ceil(29.5*(r-1))+(e-1)*354+Math.floor((3+11*e)/30)+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e)+.5;var r=Math.floor((30*(e-this.jdEpoch)+10646)/10631);r=r<=0?r-1:r;var t=Math.min(12,Math.ceil((e-29-this.toJD(r,1,1))/29.5)+1),a=e-this.toJD(r,t,1)+1;return this.newDate(r,t,a)}});td.calendars.islamic=j7});var t$=U(()=>{var ad=ja(),zwe=Ka();function Q7(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}Q7.prototype=new ad.baseCalendar;zwe(Q7.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(t){var r=this._validate(t,this.minMonth,this.minDay,ad.local.invalidYear),t=r.year()<0?r.year()+1:r.year();return t%4===0},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(4-(a.dayOfWeek()||7),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,ad.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===2&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var a=this._validate(e,r,t,ad.local.invalidDate);return e=a.year(),r=a.month(),t=a.day(),e<0&&e++,r<=2&&(e--,r+=12),Math.floor(365.25*(e+4716))+Math.floor(30.6001*(r+1))+t-1524.5},fromJD:function(e){var r=Math.floor(e+.5),t=r+1524,a=Math.floor((t-122.1)/365.25),n=Math.floor(365.25*a),i=Math.floor((t-n)/30.6001),l=i-Math.floor(i<14?1:13),o=a-Math.floor(l>2?4716:4715),s=t-n-Math.floor(30.6001*i);return o<=0&&o--,this.newDate(o,l,s)}});ad.calendars.julian=Q7});var n$=U(()=>{var Pi=ja(),Fwe=Ka();function r8(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}r8.prototype=new Pi.baseCalendar;Fwe(r8.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(e){return this._validate(e,this.minMonth,this.minDay,Pi.local.invalidYear),!1},formatYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Pi.local.invalidYear);e=r.year();var t=Math.floor(e/400);e=e%400,e+=e<0?400:0;var a=Math.floor(e/20);return t+"."+a+"."+e%20},forYear:function(e){if(e=e.split("."),e.length<3)throw"Invalid Mayan year";for(var r=0,t=0;t19||t>0&&a<0)throw"Invalid Mayan year";r=r*20+a}return r},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Pi.local.invalidYear),18},weekOfYear:function(e,r,t){return this._validate(e,r,t,Pi.local.invalidDate),0},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Pi.local.invalidYear),360},daysInMonth:function(e,r){return this._validate(e,r,this.minDay,Pi.local.invalidMonth),20},daysInWeek:function(){return 5},dayOfWeek:function(e,r,t){var a=this._validate(e,r,t,Pi.local.invalidDate);return a.day()},weekDay:function(e,r,t){return this._validate(e,r,t,Pi.local.invalidDate),!0},extraInfo:function(e,r,t){var a=this._validate(e,r,t,Pi.local.invalidDate),n=a.toJD(),i=this._toHaab(n),l=this._toTzolkin(n);return{haabMonthName:this.local.haabMonths[i[0]-1],haabMonth:i[0],haabDay:i[1],tzolkinDayName:this.local.tzolkinMonths[l[0]-1],tzolkinDay:l[0],tzolkinTrecena:l[1]}},_toHaab:function(e){e-=this.jdEpoch;var r=e8(e+8+340,365);return[Math.floor(r/20)+1,e8(r,20)]},_toTzolkin:function(e){return e-=this.jdEpoch,[a$(e+20,20),a$(e+4,13)]},toJD:function(e,r,t){var a=this._validate(e,r,t,Pi.local.invalidDate);return a.day()+a.month()*20+a.year()*360+this.jdEpoch},fromJD:function(e){e=Math.floor(e)+.5-this.jdEpoch;var r=Math.floor(e/360);e=e%360,e+=e<0?360:0;var t=Math.floor(e/20),a=e%20;return this.newDate(r,t,a)}});function e8(e,r){return e-r*Math.floor(e/r)}function a$(e,r){return e8(e-1,r)+1}Pi.calendars.mayan=r8});var l$=U(()=>{var Xu=ja(),Nwe=Ka();function t8(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}t8.prototype=new Xu.baseCalendar;var i$=Xu.instance("gregorian");Nwe(t8.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(e){var r=this._validate(e,this.minMonth,this.minDay,Xu.local.invalidYear||Xu.regionalOptions[""].invalidYear);return i$.leapYear(r.year()+(r.year()<1?1:0)+1469)},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(1-(a.dayOfWeek()||7),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Xu.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===12&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(n,r,t){var a=this._validate(n,r,t,Xu.local.invalidMonth),n=a.year();n<0&&n++;for(var i=a.day(),l=1;l=this.toJD(r+1,1,1);)r++;for(var t=e-Math.floor(this.toJD(r,1,1)+.5)+1,a=1;t>this.daysInMonth(r,a);)t-=this.daysInMonth(r,a),a++;return this.newDate(r,a,t)}});Xu.calendars.nanakshahi=t8});var o$=U(()=>{var Wu=ja(),Iwe=Ka();function a8(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}a8.prototype=new Wu.baseCalendar;Iwe(a8.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(e){return this.daysInYear(e)!==this.daysPerYear},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Wu.local.invalidYear);if(e=r.year(),typeof this.NEPALI_CALENDAR_DATA[e]=="undefined")return this.daysPerYear;for(var t=0,a=this.minMonth;a<=12;a++)t+=this.NEPALI_CALENDAR_DATA[e][a];return t},daysInMonth:function(e,r){return e.year&&(r=e.month(),e=e.year()),this._validate(e,r,this.minDay,Wu.local.invalidMonth),typeof this.NEPALI_CALENDAR_DATA[e]=="undefined"?this.daysPerMonth[r-1]:this.NEPALI_CALENDAR_DATA[e][r]},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==6},toJD:function(e,r,t){var a=this._validate(e,r,t,Wu.local.invalidDate);e=a.year(),r=a.month(),t=a.day();var n=Wu.instance(),i=0,l=r,o=e;this._createMissingCalendarData(e);var s=e-(l>9||l===9&&t>=this.NEPALI_CALENDAR_DATA[o][0]?56:57);for(r!==9&&(i=t,l--);l!==9;)l<=0&&(l=12,o--),i+=this.NEPALI_CALENDAR_DATA[o][l],l--;return r===9?(i+=t-this.NEPALI_CALENDAR_DATA[o][0],i<0&&(i+=n.daysInYear(s))):i+=this.NEPALI_CALENDAR_DATA[o][9]-this.NEPALI_CALENDAR_DATA[o][0],n.newDate(s,1,1).add(i,"d").toJD()},fromJD:function(e){var r=Wu.instance(),t=r.fromJD(e),a=t.year(),n=t.dayOfYear(),i=a+56;this._createMissingCalendarData(i);for(var l=9,o=this.NEPALI_CALENDAR_DATA[i][0],s=this.NEPALI_CALENDAR_DATA[i][l]-o+1;n>s;)l++,l>12&&(l=1,i++),s+=this.NEPALI_CALENDAR_DATA[i][l];var u=this.NEPALI_CALENDAR_DATA[i][l]-(s-n);return this.newDate(i,l,u)},_createMissingCalendarData:function(e){var r=this.daysPerMonth.slice(0);r.unshift(17);for(var t=e-1;t{var lc=ja(),Bwe=Ka();function Xy(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}function Vy(e){var r=e-475;e<0&&r++;var t=.242197,a=t*r,n=t*(r+1),i=a-Math.floor(a),l=n-Math.floor(n);return i>l}Xy.prototype=new lc.baseCalendar;Bwe(Xy.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","Dey","Bahman","Esfand"],monthNamesShort:["Far","Ord","Kho","Tir","Mor","Sha","Meh","Aba","Aza","Dey","Bah","Esf"],dayNames:["Yekshanbeh","Doshanbeh","Seshanbeh","Chah\u0101rshanbeh","Panjshanbeh","Jom'eh","Shanbeh"],dayNamesShort:["Yek","Do","Se","Cha","Panj","Jom","Sha"],dayNamesMin:["Ye","Do","Se","Ch","Pa","Jo","Sh"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,lc.local.invalidYear);return Vy(r.year())},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-((a.dayOfWeek()+1)%7),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,lc.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===12&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==5},toJD:function(e,r,t){var a=this._validate(e,r,t,lc.local.invalidDate);e=a.year(),r=a.month(),t=a.day();var n=0;if(e>0)for(var i=1;i0?e-1:e)*365+n+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e)+.5;var r=475+(e-this.toJD(475,1,1))/365.242197,t=Math.floor(r);t<=0&&t--,e>this.toJD(t,12,Vy(t)?30:29)&&(t++,t===0&&t++);var a=e-this.toJD(t,1,1)+1,n=a<=186?Math.ceil(a/31):Math.ceil((a-6)/30),i=e-this.toJD(t,n,1)+1;return this.newDate(t,n,i)}});lc.calendars.persian=Xy;lc.calendars.jalali=Xy});var u$=U(()=>{var Zu=ja(),Hwe=Ka(),Wy=Zu.instance();function n8(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}n8.prototype=new Zu.baseCalendar;Hwe(n8.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(t){var r=this._validate(t,this.minMonth,this.minDay,Zu.local.invalidYear),t=this._t2gYear(r.year());return Wy.leapYear(t)},weekOfYear:function(n,r,t){var a=this._validate(n,this.minMonth,this.minDay,Zu.local.invalidYear),n=this._t2gYear(a.year());return Wy.weekOfYear(n,a.month(),a.day())},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Zu.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===2&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(n,r,t){var a=this._validate(n,r,t,Zu.local.invalidDate),n=this._t2gYear(a.year());return Wy.toJD(n,a.month(),a.day())},fromJD:function(e){var r=Wy.fromJD(e),t=this._g2tYear(r.year());return this.newDate(t,r.month(),r.day())},_t2gYear:function(e){return e+this.yearsOffset+(e>=-this.yearsOffset&&e<=-1?1:0)},_g2tYear:function(e){return e-this.yearsOffset-(e>=1&&e<=this.yearsOffset?1:0)}});Zu.calendars.taiwan=n8});var f$=U(()=>{var Ju=ja(),Owe=Ka(),Zy=Ju.instance();function i8(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}i8.prototype=new Ju.baseCalendar;Owe(i8.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(t){var r=this._validate(t,this.minMonth,this.minDay,Ju.local.invalidYear),t=this._t2gYear(r.year());return Zy.leapYear(t)},weekOfYear:function(n,r,t){var a=this._validate(n,this.minMonth,this.minDay,Ju.local.invalidYear),n=this._t2gYear(a.year());return Zy.weekOfYear(n,a.month(),a.day())},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Ju.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===2&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(n,r,t){var a=this._validate(n,r,t,Ju.local.invalidDate),n=this._t2gYear(a.year());return Zy.toJD(n,a.month(),a.day())},fromJD:function(e){var r=Zy.fromJD(e),t=this._g2tYear(r.year());return this.newDate(t,r.month(),r.day())},_t2gYear:function(e){return e-this.yearsOffset-(e>=1&&e<=this.yearsOffset?1:0)},_g2tYear:function(e){return e+this.yearsOffset+(e>=-this.yearsOffset&&e<=-1?1:0)}});Ju.calendars.thai=i8});var c$=U(()=>{var $u=ja(),Ywe=Ka();function l8(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}l8.prototype=new $u.baseCalendar;Ywe(l8.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\u0101th\u0101\u2019","Yawm al-Arba\u2018\u0101\u2019","Yawm al-Kham\u012Bs","Yawm al-Jum\u2018a","Yawm al-Sabt"],dayNamesMin:["Ah","Ith","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!0}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,$u.local.invalidYear);return this.daysInYear(r.year())===355},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInYear:function(e){for(var r=0,t=1;t<=12;t++)r+=this.daysInMonth(e,t);return r},daysInMonth:function(e,r){for(var t=this._validate(e,r,this.minDay,$u.local.invalidMonth),a=t.toJD()-24e5+.5,n=0,i=0;ia)return ms[n]-ms[n-1];n++}return 30},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==5},toJD:function(e,r,t){var a=this._validate(e,r,t,$u.local.invalidDate),n=12*(a.year()-1)+a.month()-15292,i=a.day()+ms[n-1]-1;return i+24e5-.5},fromJD:function(e){for(var r=e-24e5+.5,t=0,a=0;ar);a++)t++;var n=t+15292,i=Math.floor((n-1)/12),l=i+1,o=n-12*i,s=r-ms[t-1]+1;return this.newDate(l,o,s)},isValid:function(e,r,t){var a=$u.baseCalendar.prototype.isValid.apply(this,arguments);return a&&(e=e.year!=null?e.year:e,a=e>=1276&&e<=1500),a},_validate:function(e,r,t,a){var n=$u.baseCalendar.prototype._validate.apply(this,arguments);if(n.year<1276||n.year>1500)throw a.replace(/\{0\}/,this.local.name);return n}});$u.calendars.ummalqura=l8;var ms=[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]});var d$=U((VEe,v$)=>{"use strict";v$.exports=ja();JJ();$J();KJ();jJ();QJ();e$();r$();t$();n$();l$();o$();s$();u$();f$();c$()});var b$=U((XEe,x$)=>{"use strict";var p$=d$(),nd=ke(),m$=(Et(),Fe(zt)),Gwe=m$.EPOCHJD,Uwe=m$.ONEDAY,u8={valType:"enumerated",values:nd.sortObjectKeys(p$.calendars),editType:"calc",dflt:"gregorian"},y$=function(e,r,t,a){var n={};return n[t]=u8,nd.coerce(e,r,n,t,a)},Vwe=function(e,r,t,a){for(var n=0;n{"use strict";_$.exports=b$()});var Kwe=U((ZEe,M$)=>{var T$=DY();T$.register([EG(),MU(),lV(),XV(),zX(),iW(),FZ(),sJ(),UJ(),w$()]);M$.exports=T$});return Kwe();})(); +`||r[Or]===" "||r[Or]===" ");)Or++;continue}if(a===",")return;if(a===")"){t.push({type:fr.ParenClose});continue}if(a==="+"){if(Or--,Od(r)){t.push(Rc(r));continue}return}if(a==="-"){if(Or--,Od(r)){t.push(Rc(r));continue}if(s3(r)){t.push({type:fr.Ident,value:Vd(r)});continue}return}if(a==="."){if(Or--,Od(r)){t.push(Rc(r));continue}return}if(a==="/"){for(;Or4)){if(t.length===4){if(t[3].type!==fr.Alpha)return;t[3]=t[3].value}return t.length===3&&t.push({type:fr.None,value:void 0}),t.every(n=>n.type!==fr.Alpha)?t:void 0}}function ree(e,r){e._i=0;let t=e[e._i++];if(!t||t.type!==fr.Function)return;let a=Nw(e,r);if(a)return a.unshift(t.value),a}var tee=e=>{if(typeof e!="string")return;let r=QQ(e),t=r?ree(r,!0):void 0,a,n=0,i=x0.length;for(;ne==="transparent"?{mode:"rgb",r:0,g:0,b:0,alpha:0}:void 0,Hw=nee,Es=(e,r,t)=>e+t*(r-e),iee=(e,r,t)=>(t-e)/(r-e),u3=(e,r,t,a,n,i)=>Es(Es(e,r,n),Es(t,a,n),i),lee=(e,r,t,a,n,i,l,o,s,u,f)=>Es(u3(e,r,t,a,s,u),u3(n,i,l,o,s,u),f),oee=e=>{let r=[];for(let t=0;tr=>{let t=oee(r);return a=>{let n=a*t.length,i=a>=1?t.length-1:Math.max(Math.floor(n),0),l=t[i];return l===void 0?void 0:e(l[0],l[1],n-i)}},xr=Ow(Es),Aa=e=>{let r=!1,t=e.map(a=>a!==void 0?(r=!0,a):1);return r?t:e},see={mode:"rgb",channels:["r","g","b","alpha"],parse:[Bw,Ew,Rw,Pw,Hw,"srgb"],serialize:"srgb",interpolate:{r:xr,g:xr,b:xr,alpha:{use:xr,fixup:Aa}},gamut:!0,white:{r:1,g:1,b:1},black:{r:0,g:0,b:0}},Fs=see,Ig=(e=0)=>Math.pow(Math.abs(e),563/256)*Math.sign(e),uee=e=>{let r=Ig(e.r),t=Ig(e.g),a=Ig(e.b),n={mode:"xyz65",x:.5766690429101305*r+.1855582379065463*t+.1882286462349947*a,y:.297344975250536*r+.6273635662554661*t+.0752914584939979*a,z:.0270313613864123*r+.0706888525358272*t+.9913375368376386*a};return e.alpha!==void 0&&(n.alpha=e.alpha),n},f3=uee,Bg=e=>Math.pow(Math.abs(e),256/563)*Math.sign(e),fee=({x:e,y:r,z:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n={mode:"a98",r:Bg(e*2.0415879038107465-r*.5650069742788597-.3447313507783297*t),g:Bg(e*-.9692436362808798+r*1.8759675015077206+.0415550574071756*t),b:Bg(e*.0134442806320312-r*.1183623922310184+1.0151749943912058*t)};return a!==void 0&&(n.alpha=a),n},c3=fee,Hg=(e=0)=>{let r=Math.abs(e);return r<=.04045?e/12.92:(Math.sign(e)||1)*Math.pow((r+.055)/1.055,2.4)},cee=({r:e,g:r,b:t,alpha:a})=>{let n={mode:"lrgb",r:Hg(e),g:Hg(r),b:Hg(t)};return a!==void 0&&(n.alpha=a),n},Ns=cee,vee=e=>{let{r,g:t,b:a,alpha:n}=Ns(e),i={mode:"xyz65",x:.4123907992659593*r+.357584339383878*t+.1804807884018343*a,y:.2126390058715102*r+.715168678767756*t+.0721923153607337*a,z:.0193308187155918*r+.119194779794626*t+.9505321522496607*a};return n!==void 0&&(i.alpha=n),i},bo=vee,Og=(e=0)=>{let r=Math.abs(e);return r>.0031308?(Math.sign(e)||1)*(1.055*Math.pow(r,1/2.4)-.055):e*12.92},dee=({r:e,g:r,b:t,alpha:a},n="rgb")=>{let i={mode:n,r:Og(e),g:Og(r),b:Og(t)};return a!==void 0&&(i.alpha=a),i},Is=dee,hee=({x:e,y:r,z:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=Is({r:e*3.2409699419045226-r*1.537383177570094-.4986107602930034*t,g:e*-.9692436362808796+r*1.8759675015077204+.0415550574071756*t,b:e*.0556300796969936-r*.2039769588889765+1.0569715142428784*t});return a!==void 0&&(n.alpha=a),n},_o=hee,pee=Et(ct({},Fs),{mode:"a98",parse:["a98-rgb"],serialize:"a98-rgb",fromMode:{rgb:e=>c3(bo(e)),xyz65:c3},toMode:{rgb:e=>_o(f3(e)),xyz65:f3}}),Yw=pee,mee=e=>(e=e%360)<0?e+360:e,tn=mee,eh=(e,r)=>e.map((t,a,n)=>{if(t===void 0)return t;let i=tn(t);return a===0||e[a-1]===void 0?i:r(i-tn(n[a-1]))}).reduce((t,a)=>!t.length||a===void 0||t[t.length-1]===void 0?(t.push(a),t):(t.push(a+t[t.length-1]),t),[]),pl=e=>eh(e,r=>Math.abs(r)<=180?r:r-360*Math.sign(r)),yee=e=>eh(e,r=>Math.abs(r)>=180||r===0?r:r-360*Math.sign(r)),gee=e=>eh(e,r=>r>=0?r:r+360),xee=e=>eh(e,r=>r<=0?r:r-360),Ua=[-.14861,1.78277,-.29227,-.90649,1.97294,0],bee=Math.PI/180,_ee=180/Math.PI,bw=Ua[3]*Ua[4],_w=Ua[1]*Ua[4],ww=Ua[1]*Ua[2]-Ua[0]*Ua[3],wee=({r:e,g:r,b:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=(ww*t+e*bw-r*_w)/(ww+bw-_w),i=t-n,l=(Ua[4]*(r-n)-Ua[2]*i)/Ua[3],o={mode:"cubehelix",l:n,s:n===0||n===1?void 0:Math.sqrt(i*i+l*l)/(Ua[4]*n*(1-n))};return o.s&&(o.h=Math.atan2(l,i)*_ee-120),a!==void 0&&(o.alpha=a),o},Gw=wee,Tee=({h:e,s:r,l:t,alpha:a})=>{let n={mode:"rgb"};e=(e===void 0?0:e+120)*bee,t===void 0&&(t=0);let i=r===void 0?0:r*t*(1-t),l=Math.cos(e),o=Math.sin(e);return n.r=t+i*(Ua[0]*l+Ua[1]*o),n.g=t+i*(Ua[2]*l+Ua[3]*o),n.b=t+i*(Ua[4]*l+Ua[5]*o),a!==void 0&&(n.alpha=a),n},Uw=Tee,Bc=(e,r)=>{if(e.h===void 0||r.h===void 0||!e.s||!r.s)return 0;let t=tn(e.h),a=tn(r.h),n=Math.sin((a-t+360)/2*Math.PI/180);return 2*Math.sqrt(e.s*r.s)*n},Vw=(e,r)=>{if(e.h===void 0||r.h===void 0)return 0;let t=tn(e.h),a=tn(r.h);return Math.abs(a-t)>180?t-(a-360*Math.sign(a-t)):a-t},Hc=(e,r)=>{if(e.h===void 0||r.h===void 0||!e.c||!r.c)return 0;let t=tn(e.h),a=tn(r.h),n=Math.sin((a-t+360)/2*Math.PI/180);return 2*Math.sqrt(e.c*r.c)*n},b0=(e="rgb",r=[1,1,1,0])=>{let t=cn(e),a=t.channels,n=t.difference,i=kt(e);return(l,o)=>{let s=i(l),u=i(o);return Math.sqrt(a.reduce((f,c,v)=>{let h=n[c]?n[c](s,u):s[c]-u[c];return f+(r[v]||0)*Math.pow(isNaN(h)?0:h,2)},0))}},Mee=()=>b0("lab65"),Aee=(e=1,r=.045,t=.015)=>{let a=kt("lab65");return(n,i)=>{let l=a(n),o=a(i),s=l.l,u=l.a,f=l.b,c=Math.sqrt(u*u+f*f),v=o.l,h=o.a,p=o.b,m=Math.sqrt(h*h+p*p),y=Math.pow(s-v,2),x=Math.pow(c-m,2),_=Math.pow(u-h,2)+Math.pow(f-p,2)-x;return Math.sqrt(y/Math.pow(e,2)+x/Math.pow(1+r*c,2)+_/Math.pow(1+t*c,2))}},kee=(e=1,r=1,t=1)=>{let a=kt("lab65");return(n,i)=>{let l=a(n),o=a(i),s=l.l,u=l.a,f=l.b,c=Math.sqrt(u*u+f*f),v=o.l,h=o.a,p=o.b,m=Math.sqrt(h*h+p*p),y=(c+m)/2,x=.5*(1-Math.sqrt(Math.pow(y,7)/(Math.pow(y,7)+Math.pow(25,7)))),_=u*(1+x),w=h*(1+x),b=Math.sqrt(_*_+f*f),M=Math.sqrt(w*w+p*p),A=Math.abs(_)+Math.abs(f)===0?0:Math.atan2(f,_);A+=(A<0)*2*Math.PI;let k=Math.abs(w)+Math.abs(p)===0?0:Math.atan2(p,w);k+=(k<0)*2*Math.PI;let S=v-s,D=M-b,P=b*M===0?0:k-A;P-=(P>Math.PI)*2*Math.PI,P+=(P<-Math.PI)*2*Math.PI;let R=2*Math.sqrt(b*M)*Math.sin(P/2),F=(s+v)/2,B=(b+M)/2,H;b*M===0?H=A+k:(H=(A+k)/2,H-=(Math.abs(A-k)>Math.PI)*Math.PI,H+=(H<0)*2*Math.PI);let N=Math.pow(F-50,2),Y=1-.17*Math.cos(H-Math.PI/6)+.24*Math.cos(2*H)+.32*Math.cos(3*H+Math.PI/30)-.2*Math.cos(4*H-63*Math.PI/180),O=1+.015*N/Math.sqrt(20+N),V=1+.045*B,X=1+.015*B*Y,W=30*Math.PI/180*Math.exp(-1*Math.pow((180/Math.PI*H-275)/25,2)),U=2*Math.sqrt(Math.pow(B,7)/(Math.pow(B,7)+Math.pow(25,7))),$=-1*Math.sin(2*W)*U;return Math.sqrt(Math.pow(S/(e*O),2)+Math.pow(D/(r*V),2)+Math.pow(R/(t*X),2)+$*D/(r*V)*R/(t*X))}},Lee=(e=1,r=1)=>{let t=kt("lab65");return(a,n)=>{let i=t(a),l=i.l,o=i.a,s=i.b,u=Math.sqrt(o*o+s*s),f=Math.atan2(s,o);f=f+2*Math.PI*(f<0);let c=t(n),v=c.l,h=c.a,p=c.b,m=Math.sqrt(h*h+p*p),y=Math.pow(l-v,2),x=Math.pow(u-m,2),_=Math.pow(o-h,2)+Math.pow(s-p,2)-x,w=Math.sqrt(Math.pow(u,4)/(Math.pow(u,4)+1900)),b=f>=164/180*Math.PI&&f<=345/180*Math.PI?.56+Math.abs(.2*Math.cos(f+168/180*Math.PI)):.36+Math.abs(.4*Math.cos(f+35/180*Math.PI)),M=l<16?.511:.040975*l/(1+.01765*l),A=.0638*u/(1+.0131*u)+.638,k=A*(w*b+1-w);return Math.sqrt(y/Math.pow(e*M,2)+x/Math.pow(r*A,2)+_/Math.pow(k,2))}},Cee=()=>{let e=kt("lab65");return(r,t)=>{let a=e(r),n=e(t),i=a.l-n.l,l=a.a-n.a,o=a.b-n.b;return Math.abs(i)+Math.sqrt(l*l+o*o)}},See=()=>b0("yiq",[.5053,.299,.1957]),qee=()=>b0("itp",[518400,129600,518400]),ml=e=>{let r=e.reduce((a,n)=>{if(n!==void 0){let i=n*Math.PI/180;a.sin+=Math.sin(i),a.cos+=Math.cos(i)}return a},{sin:0,cos:0}),t=Math.atan2(r.sin,r.cos)*180/Math.PI;return t<0?360+t:t},Xw=e=>{let r=e.filter(t=>t!==void 0);return r.length?r.reduce((t,a)=>t+a,0)/r.length:void 0},Yg=e=>typeof e=="function";function Dee(e,r="rgb",t){let a=cn(r),n=e.map(kt(r));return a.channels.reduce((i,l)=>{let o=n.map(s=>s[l]).filter(s=>s!==void 0);if(o.length){let s;Yg(t)?s=t:t&&Yg(t[l])?s=t[l]:a.average&&Yg(a.average[l])?s=a.average[l]:s=Xw,i[l]=s(o,l)}return i},{mode:r})}var Pee={mode:"cubehelix",channels:["h","s","l","alpha"],parse:["--cubehelix"],serialize:"--cubehelix",ranges:{h:[0,360],s:[0,4.614],l:[0,1]},fromMode:{rgb:Gw},toMode:{rgb:Uw},interpolate:{h:{use:xr,fixup:pl},s:xr,l:xr,alpha:{use:xr,fixup:Aa}},difference:{h:Bc},average:{h:ml}},Ww=Pee,Eee=({l:e,a:r,b:t,alpha:a},n="lch")=>{r===void 0&&(r=0),t===void 0&&(t=0);let i=Math.sqrt(r*r+t*t),l={mode:n,l:e,c:i};return i&&(l.h=tn(Math.atan2(t,r)*180/Math.PI)),a!==void 0&&(l.alpha=a),l},Ol=Eee,Ree=({l:e,c:r,h:t,alpha:a},n="lab")=>{t===void 0&&(t=0);let i={mode:n,l:e,a:r?r*Math.cos(t/180*Math.PI):0,b:r?r*Math.sin(t/180*Math.PI):0};return a!==void 0&&(i.alpha=a),i},Yl=Ree,Zw=Math.pow(29,3)/Math.pow(3,3),Jw=Math.pow(6,3)/Math.pow(29,3),Ma={X:.3457/.3585,Y:1,Z:(1-.3457-.3585)/.3585},y0={X:.3127/.329,Y:1,Z:(1-.3127-.329)/.329},STe=Math.pow(29,3)/Math.pow(3,3),qTe=Math.pow(6,3)/Math.pow(29,3),Gg=e=>Math.pow(e,3)>Jw?Math.pow(e,3):(116*e-16)/Zw,zee=({l:e,a:r,b:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=(e+16)/116,i=r/500+n,l=n-t/200,o={mode:"xyz65",x:Gg(i)*y0.X,y:Gg(n)*y0.Y,z:Gg(l)*y0.Z};return a!==void 0&&(o.alpha=a),o},P3=zee,Fee=e=>_o(P3(e)),Oc=Fee,Ug=e=>e>Jw?Math.cbrt(e):(Zw*e+16)/116,Nee=({x:e,y:r,z:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=Ug(e/y0.X),i=Ug(r/y0.Y),l=Ug(t/y0.Z),o={mode:"lab65",l:116*i-16,a:500*(n-i),b:200*(i-l)};return a!==void 0&&(o.alpha=a),o},E3=Nee,Iee=e=>{let r=E3(bo(e));return e.r===e.b&&e.b===e.g&&(r.a=r.b=0),r},Yc=Iee,Xd=1,$w=1,Ic=26/180*Math.PI,Wd=Math.cos(Ic),Zd=Math.sin(Ic),Kw=100/Math.log(139/100),Bee=({l:e,c:r,h:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n={mode:"lab65",l:(Math.exp(e*Xd/Kw)-1)/.0039},i=(Math.exp(.0435*r*$w*Xd)-1)/.075,l=i*Math.cos(t/180*Math.PI-Ic),o=i*Math.sin(t/180*Math.PI-Ic);return n.a=l*Wd-o/.83*Zd,n.b=l*Zd+o/.83*Wd,a!==void 0&&(n.alpha=a),n},Jd=Bee,Hee=({l:e,a:r,b:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=r*Wd+t*Zd,i=.83*(t*Wd-r*Zd),l=Math.sqrt(n*n+i*i),o={mode:"dlch",l:Kw/Xd*Math.log(1+.0039*e),c:Math.log(1+.075*l)/(.0435*$w*Xd)};return o.c&&(o.h=tn((Math.atan2(i,n)+Ic)/Math.PI*180)),a!==void 0&&(o.alpha=a),o},$d=Hee,Tw=e=>Jd(Ol(e,"dlch")),Mw=e=>Yl($d(e),"dlab"),Oee={mode:"dlab",parse:["--din99o-lab"],serialize:"--din99o-lab",toMode:{lab65:Tw,rgb:e=>Oc(Tw(e))},fromMode:{lab65:Mw,rgb:e=>Mw(Yc(e))},channels:["l","a","b","alpha"],ranges:{l:[0,100],a:[-40.09,45.501],b:[-40.469,44.344]},interpolate:{l:xr,a:xr,b:xr,alpha:{use:xr,fixup:Aa}}},jw=Oee,Yee={mode:"dlch",parse:["--din99o-lch"],serialize:"--din99o-lch",toMode:{lab65:Jd,dlab:e=>Yl(e,"dlab"),rgb:e=>Oc(Jd(e))},fromMode:{lab65:$d,dlab:e=>Ol(e,"dlch"),rgb:e=>$d(Yc(e))},channels:["l","c","h","alpha"],ranges:{l:[0,100],c:[0,51.484],h:[0,360]},interpolate:{l:xr,c:xr,h:{use:xr,fixup:pl},alpha:{use:xr,fixup:Aa}},difference:{h:Hc},average:{h:ml}},Qw=Yee;function eT({h:e,s:r,i:t,alpha:a}){e=tn(e!==void 0?e:0),r===void 0&&(r=0),t===void 0&&(t=0);let n=Math.abs(e/60%2-1),i;switch(Math.floor(e/60)){case 0:i={r:t*(1+r*(3/(2-n)-1)),g:t*(1+r*(3*(1-n)/(2-n)-1)),b:t*(1-r)};break;case 1:i={r:t*(1+r*(3*(1-n)/(2-n)-1)),g:t*(1+r*(3/(2-n)-1)),b:t*(1-r)};break;case 2:i={r:t*(1-r),g:t*(1+r*(3/(2-n)-1)),b:t*(1+r*(3*(1-n)/(2-n)-1))};break;case 3:i={r:t*(1-r),g:t*(1+r*(3*(1-n)/(2-n)-1)),b:t*(1+r*(3/(2-n)-1))};break;case 4:i={r:t*(1+r*(3*(1-n)/(2-n)-1)),g:t*(1-r),b:t*(1+r*(3/(2-n)-1))};break;case 5:i={r:t*(1+r*(3/(2-n)-1)),g:t*(1-r),b:t*(1+r*(3*(1-n)/(2-n)-1))};break;default:i={r:t*(1-r),g:t*(1-r),b:t*(1-r)}}return i.mode="rgb",a!==void 0&&(i.alpha=a),i}function rT({r:e,g:r,b:t,alpha:a}){e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=Math.max(e,r,t),i=Math.min(e,r,t),l={mode:"hsi",s:e+r+t===0?0:1-3*i/(e+r+t),i:(e+r+t)/3};return n-i!==0&&(l.h=(n===e?(r-t)/(n-i)+(r{switch(r){case"deg":return+e;case"rad":return e/Math.PI*180;case"grad":return e/10*9;case"turn":return e*360}},Vee=Uee,Xee=new RegExp(`^hsla?\\(\\s*${YQ}${g0}${Fc}${g0}${Fc}\\s*(?:,\\s*${q3}\\s*)?\\)$`),Wee=e=>{let r=e.match(Xee);if(!r)return;let t={mode:"hsl"};return r[3]!==void 0?t.h=+r[3]:r[1]!==void 0&&r[2]!==void 0&&(t.h=Vee(r[1],r[2])),r[4]!==void 0&&(t.s=Math.min(Math.max(0,r[4]/100),1)),r[5]!==void 0&&(t.l=Math.min(Math.max(0,r[5]/100),1)),r[6]!==void 0?t.alpha=Math.max(0,Math.min(1,r[6]/100)):r[7]!==void 0&&(t.alpha=Math.max(0,Math.min(1,+r[7]))),t},iT=Wee;function Zee(e,r){if(!r||r[0]!=="hsl"&&r[0]!=="hsla")return;let t={mode:"hsl"},[,a,n,i,l]=r;if(a.type!==fr.None){if(a.type===fr.Percentage)return;t.h=a.value}if(n.type!==fr.None){if(n.type===fr.Hue)return;t.s=n.value/100}if(i.type!==fr.None){if(i.type===fr.Hue)return;t.l=i.value/100}return l.type!==fr.None&&(t.alpha=Math.min(1,Math.max(0,l.type===fr.Number?l.value:l.value/100))),t}var lT=Zee,Jee={mode:"hsl",toMode:{rgb:aT},fromMode:{rgb:nT},channels:["h","s","l","alpha"],ranges:{h:[0,360]},gamut:"rgb",parse:[lT,iT],serialize:e=>`hsl(${e.h!==void 0?e.h:"none"} ${e.s!==void 0?e.s*100+"%":"none"} ${e.l!==void 0?e.l*100+"%":"none"}${e.alpha<1?` / ${e.alpha}`:""})`,interpolate:{h:{use:xr,fixup:pl},s:xr,l:xr,alpha:{use:xr,fixup:Aa}},difference:{h:Bc},average:{h:ml}},R3=Jee;function z3({h:e,s:r,v:t,alpha:a}){e=tn(e!==void 0?e:0),r===void 0&&(r=0),t===void 0&&(t=0);let n=Math.abs(e/60%2-1),i;switch(Math.floor(e/60)){case 0:i={r:t,g:t*(1-r*n),b:t*(1-r)};break;case 1:i={r:t*(1-r*n),g:t,b:t*(1-r)};break;case 2:i={r:t*(1-r),g:t,b:t*(1-r*n)};break;case 3:i={r:t*(1-r),g:t*(1-r*n),b:t};break;case 4:i={r:t*(1-r*n),g:t*(1-r),b:t};break;case 5:i={r:t,g:t*(1-r),b:t*(1-r*n)};break;default:i={r:t*(1-r),g:t*(1-r),b:t*(1-r)}}return i.mode="rgb",a!==void 0&&(i.alpha=a),i}function F3({r:e,g:r,b:t,alpha:a}){e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=Math.max(e,r,t),i=Math.min(e,r,t),l={mode:"hsv",s:n===0?0:1-i/n,v:n};return n-i!==0&&(l.h=(n===e?(r-t)/(n-i)+(r1){let n=r+t;r/=n,t/=n}return z3({h:e,s:t===1?1:1-r/(1-t),v:1-t,alpha:a})}function sT(e){let r=F3(e);if(r===void 0)return;let t=r.s!==void 0?r.s:0,a=r.v!==void 0?r.v:0,n={mode:"hwb",w:(1-t)*a,b:1-a};return r.h!==void 0&&(n.h=r.h),r.alpha!==void 0&&(n.alpha=r.alpha),n}function Kee(e,r){if(!r||r[0]!=="hwb")return;let t={mode:"hwb"},[,a,n,i,l]=r;if(a.type!==fr.None){if(a.type===fr.Percentage)return;t.h=a.value}if(n.type!==fr.None){if(n.type===fr.Hue)return;t.w=n.value/100}if(i.type!==fr.None){if(i.type===fr.Hue)return;t.b=i.value/100}return l.type!==fr.None&&(t.alpha=Math.min(1,Math.max(0,l.type===fr.Number?l.value:l.value/100))),t}var uT=Kee,jee={mode:"hwb",toMode:{rgb:oT},fromMode:{rgb:sT},channels:["h","w","b","alpha"],ranges:{h:[0,360]},gamut:"rgb",parse:[uT],serialize:e=>`hwb(${e.h!==void 0?e.h:"none"} ${e.w!==void 0?e.w*100+"%":"none"} ${e.b!==void 0?e.b*100+"%":"none"}${e.alpha<1?` / ${e.alpha}`:""})`,interpolate:{h:{use:xr,fixup:pl},w:xr,b:xr,alpha:{use:xr,fixup:Aa}},difference:{h:Vw},average:{h:ml}},fT=jee,cT=203,rh=.1593017578125,vT=78.84375,th=.8359375,ah=18.8515625,nh=18.6875;function Vg(e){if(e<0)return 0;let r=Math.pow(e,1/vT);return 1e4*Math.pow(Math.max(0,r-th)/(ah-nh*r),1/rh)}function Xg(e){if(e<0)return 0;let r=Math.pow(e/1e4,rh);return Math.pow((th+ah*r)/(1+nh*r),vT)}var Wg=e=>Math.max(e/cT,0),Qee=({i:e,t:r,p:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=Vg(e+.008609037037932761*r+.11102962500302593*t),i=Vg(e-.00860903703793275*r-.11102962500302599*t),l=Vg(e+.5600313357106791*r-.32062717498731885*t),o={mode:"xyz65",x:Wg(2.070152218389422*n-1.3263473389671556*i+.2066510476294051*l),y:Wg(.3647385209748074*n+.680566024947227*i-.0453045459220346*l),z:Wg(-.049747207535812*n-.0492609666966138*i+1.1880659249923042*l)};return a!==void 0&&(o.alpha=a),o},v3=Qee,Zg=(e=0)=>Math.max(e*cT,0),ere=({x:e,y:r,z:t,alpha:a})=>{let n=Zg(e),i=Zg(r),l=Zg(t),o=Xg(.3592832590121217*n+.6976051147779502*i-.0358915932320289*l),s=Xg(-.1920808463704995*n+1.1004767970374323*i+.0753748658519118*l),u=Xg(.0070797844607477*n+.0748396662186366*i+.8433265453898765*l),f=.5*o+.5*s,c=1.61376953125*o-3.323486328125*s+1.709716796875*u,v=4.378173828125*o-4.24560546875*s-.132568359375*u,h={mode:"itp",i:f,t:c,p:v};return a!==void 0&&(h.alpha=a),h},d3=ere,rre={mode:"itp",channels:["i","t","p","alpha"],parse:["--ictcp"],serialize:"--ictcp",toMode:{xyz65:v3,rgb:e=>_o(v3(e))},fromMode:{xyz65:d3,rgb:e=>d3(bo(e))},ranges:{i:[0,.581],t:[-.369,.272],p:[-.164,.331]},interpolate:{i:xr,t:xr,p:xr,alpha:{use:xr,fixup:Aa}}},dT=rre,tre=134.03437499999998,are=16295499532821565e-27,Jg=e=>{if(e<0)return 0;let r=Math.pow(e/1e4,rh);return Math.pow((th+ah*r)/(1+nh*r),tre)},$g=(e=0)=>Math.max(e*203,0),nre=({x:e,y:r,z:t,alpha:a})=>{e=$g(e),r=$g(r),t=$g(t);let n=1.15*e-.15*t,i=.66*r+.34*e,l=Jg(.41478972*n+.579999*i+.014648*t),o=Jg(-.20151*n+1.120649*i+.0531008*t),s=Jg(-.0166008*n+.2648*i+.6684799*t),u=(l+o)/2,f={mode:"jab",j:.44*u/(1-.56*u)-are,a:3.524*l-4.066708*o+.542708*s,b:.199076*l+1.096799*o-1.295875*s};return a!==void 0&&(f.alpha=a),f},I3=nre,ire=134.03437499999998,Aw=16295499532821565e-27,Kg=e=>{if(e<0)return 0;let r=Math.pow(e,1/ire);return 1e4*Math.pow((th-r)/(nh*r-ah),1/rh)},jg=e=>e/203,lre=({j:e,a:r,b:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=(e+Aw)/(.44+.56*(e+Aw)),i=Kg(n+.13860504*r+.058047316*t),l=Kg(n-.13860504*r-.058047316*t),o=Kg(n-.096019242*r-.8118919*t),s={mode:"xyz65",x:jg(1.661373024652174*i-.914523081304348*l+.23136208173913045*o),y:jg(-.3250758611844533*i+1.571847026732543*l-.21825383453227928*o),z:jg(-.090982811*i-.31272829*l+1.5227666*o)};return a!==void 0&&(s.alpha=a),s},B3=lre,ore=e=>{let r=I3(bo(e));return e.r===e.b&&e.b===e.g&&(r.a=r.b=0),r},H3=ore,sre=e=>_o(B3(e)),O3=sre,ure={mode:"jab",channels:["j","a","b","alpha"],parse:["--jzazbz"],serialize:"--jzazbz",fromMode:{rgb:H3,xyz65:I3},toMode:{rgb:O3,xyz65:B3},ranges:{j:[0,.222],a:[-.109,.129],b:[-.185,.134]},interpolate:{j:xr,a:xr,b:xr,alpha:{use:xr,fixup:Aa}}},hT=ure,fre=({j:e,a:r,b:t,alpha:a})=>{r===void 0&&(r=0),t===void 0&&(t=0);let n=Math.sqrt(r*r+t*t),i={mode:"jch",j:e,c:n};return n&&(i.h=tn(Math.atan2(t,r)*180/Math.PI)),a!==void 0&&(i.alpha=a),i},h3=fre,cre=({j:e,c:r,h:t,alpha:a})=>{t===void 0&&(t=0);let n={mode:"jab",j:e,a:r?r*Math.cos(t/180*Math.PI):0,b:r?r*Math.sin(t/180*Math.PI):0};return a!==void 0&&(n.alpha=a),n},p3=cre,vre={mode:"jch",parse:["--jzczhz"],serialize:"--jzczhz",toMode:{jab:p3,rgb:e=>O3(p3(e))},fromMode:{rgb:e=>h3(H3(e)),jab:h3},channels:["j","c","h","alpha"],ranges:{j:[0,.221],c:[0,.19],h:[0,360]},interpolate:{h:{use:xr,fixup:pl},c:xr,j:xr,alpha:{use:xr,fixup:Aa}},difference:{h:Hc},average:{h:ml}},pT=vre,ih=Math.pow(29,3)/Math.pow(3,3),Y3=Math.pow(6,3)/Math.pow(29,3),Qg=e=>Math.pow(e,3)>Y3?Math.pow(e,3):(116*e-16)/ih,dre=({l:e,a:r,b:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=(e+16)/116,i=r/500+n,l=n-t/200,o={mode:"xyz50",x:Qg(i)*Ma.X,y:Qg(n)*Ma.Y,z:Qg(l)*Ma.Z};return a!==void 0&&(o.alpha=a),o},lh=dre,hre=({x:e,y:r,z:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=Is({r:e*3.1341359569958707-r*1.6173863321612538-.4906619460083532*t,g:e*-.978795502912089+r*1.916254567259524+.03344273116131949*t,b:e*.07195537988411677-r*.2289768264158322+1.405386058324125*t});return a!==void 0&&(n.alpha=a),n},_0=hre,pre=e=>_0(lh(e)),G3=pre,mre=e=>{let{r,g:t,b:a,alpha:n}=Ns(e),i={mode:"xyz50",x:.436065742824811*r+.3851514688337912*t+.14307845442264197*a,y:.22249319175623702*r+.7168870538238823*t+.06061979053616537*a,z:.013923904500943465*r+.09708128566574634*t+.7140993584005155*a};return n!==void 0&&(i.alpha=n),i},w0=mre,e3=e=>e>Y3?Math.cbrt(e):(ih*e+16)/116,yre=({x:e,y:r,z:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=e3(e/Ma.X),i=e3(r/Ma.Y),l=e3(t/Ma.Z),o={mode:"lab",l:116*i-16,a:500*(n-i),b:200*(i-l)};return a!==void 0&&(o.alpha=a),o},oh=yre,gre=e=>{let r=oh(w0(e));return e.r===e.b&&e.b===e.g&&(r.a=r.b=0),r},U3=gre;function xre(e,r){if(!r||r[0]!=="lab")return;let t={mode:"lab"},[,a,n,i,l]=r;if(!(a.type===fr.Hue||n.type===fr.Hue||i.type===fr.Hue))return a.type!==fr.None&&(t.l=Math.min(Math.max(0,a.value),100)),n.type!==fr.None&&(t.a=n.type===fr.Number?n.value:n.value*125/100),i.type!==fr.None&&(t.b=i.type===fr.Number?i.value:i.value*125/100),l.type!==fr.None&&(t.alpha=Math.min(1,Math.max(0,l.type===fr.Number?l.value:l.value/100))),t}var mT=xre,bre={mode:"lab",toMode:{xyz50:lh,rgb:G3},fromMode:{xyz50:oh,rgb:U3},channels:["l","a","b","alpha"],ranges:{l:[0,100],a:[-125,125],b:[-125,125]},parse:[mT],serialize:e=>`lab(${e.l!==void 0?e.l:"none"} ${e.a!==void 0?e.a:"none"} ${e.b!==void 0?e.b:"none"}${e.alpha<1?` / ${e.alpha}`:""})`,interpolate:{l:xr,a:xr,b:xr,alpha:{use:xr,fixup:Aa}}},sh=bre,_re=Et(ct({},sh),{mode:"lab65",parse:["--lab-d65"],serialize:"--lab-d65",toMode:{xyz65:P3,rgb:Oc},fromMode:{xyz65:E3,rgb:Yc},ranges:{l:[0,100],a:[-125,125],b:[-125,125]}}),yT=_re;function wre(e,r){if(!r||r[0]!=="lch")return;let t={mode:"lch"},[,a,n,i,l]=r;if(a.type!==fr.None){if(a.type===fr.Hue)return;t.l=Math.min(Math.max(0,a.value),100)}if(n.type!==fr.None&&(t.c=Math.max(0,n.type===fr.Number?n.value:n.value*150/100)),i.type!==fr.None){if(i.type===fr.Percentage)return;t.h=i.value}return l.type!==fr.None&&(t.alpha=Math.min(1,Math.max(0,l.type===fr.Number?l.value:l.value/100))),t}var gT=wre,Tre={mode:"lch",toMode:{lab:Yl,rgb:e=>G3(Yl(e))},fromMode:{rgb:e=>Ol(U3(e)),lab:Ol},channels:["l","c","h","alpha"],ranges:{l:[0,100],c:[0,150],h:[0,360]},parse:[gT],serialize:e=>`lch(${e.l!==void 0?e.l:"none"} ${e.c!==void 0?e.c:"none"} ${e.h!==void 0?e.h:"none"}${e.alpha<1?` / ${e.alpha}`:""})`,interpolate:{h:{use:xr,fixup:pl},c:xr,l:xr,alpha:{use:xr,fixup:Aa}},difference:{h:Hc},average:{h:ml}},uh=Tre,Mre=Et(ct({},uh),{mode:"lch65",parse:["--lch-d65"],serialize:"--lch-d65",toMode:{lab65:e=>Yl(e,"lab65"),rgb:e=>Oc(Yl(e,"lab65"))},fromMode:{rgb:e=>Ol(Yc(e),"lch65"),lab65:e=>Ol(e,"lch65")},ranges:{l:[0,100],c:[0,150],h:[0,360]}}),xT=Mre,Are=({l:e,u:r,v:t,alpha:a})=>{r===void 0&&(r=0),t===void 0&&(t=0);let n=Math.sqrt(r*r+t*t),i={mode:"lchuv",l:e,c:n};return n&&(i.h=tn(Math.atan2(t,r)*180/Math.PI)),a!==void 0&&(i.alpha=a),i},V3=Are,kre=({l:e,c:r,h:t,alpha:a})=>{t===void 0&&(t=0);let n={mode:"luv",l:e,u:r?r*Math.cos(t/180*Math.PI):0,v:r?r*Math.sin(t/180*Math.PI):0};return a!==void 0&&(n.alpha=a),n},X3=kre,bT=(e,r,t)=>4*e/(e+15*r+3*t),_T=(e,r,t)=>9*r/(e+15*r+3*t),Lre=bT(Ma.X,Ma.Y,Ma.Z),Cre=_T(Ma.X,Ma.Y,Ma.Z),Sre=e=>e<=Y3?ih*e:116*Math.cbrt(e)-16,qre=({x:e,y:r,z:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=Sre(r/Ma.Y),i=bT(e,r,t),l=_T(e,r,t);!isFinite(i)||!isFinite(l)?n=i=l=0:(i=13*n*(i-Lre),l=13*n*(l-Cre));let o={mode:"luv",l:n,u:i,v:l};return a!==void 0&&(o.alpha=a),o},Kd=qre,Dre=(e,r,t)=>4*e/(e+15*r+3*t),Pre=(e,r,t)=>9*r/(e+15*r+3*t),Ere=Dre(Ma.X,Ma.Y,Ma.Z),Rre=Pre(Ma.X,Ma.Y,Ma.Z),zre=({l:e,u:r,v:t,alpha:a})=>{if(e===void 0&&(e=0),e===0)return{mode:"xyz50",x:0,y:0,z:0};r===void 0&&(r=0),t===void 0&&(t=0);let n=r/(13*e)+Ere,i=t/(13*e)+Rre,l=Ma.Y*(e<=8?e/ih:Math.pow((e+16)/116,3)),o=l*(9*n)/(4*i),s=l*(12-3*n-20*i)/(4*i),u={mode:"xyz50",x:o,y:l,z:s};return a!==void 0&&(u.alpha=a),u},jd=zre,Fre=e=>V3(Kd(w0(e))),Nre=e=>_0(jd(X3(e))),Ire={mode:"lchuv",toMode:{luv:X3,rgb:Nre},fromMode:{rgb:Fre,luv:V3},channels:["l","c","h","alpha"],parse:["--lchuv"],serialize:"--lchuv",ranges:{l:[0,100],c:[0,176.956],h:[0,360]},interpolate:{h:{use:xr,fixup:pl},c:xr,l:xr,alpha:{use:xr,fixup:Aa}},difference:{h:Hc},average:{h:ml}},wT=Ire,Bre=Et(ct({},Fs),{mode:"lrgb",toMode:{rgb:Is},fromMode:{rgb:Ns},parse:["srgb-linear"],serialize:"srgb-linear"}),TT=Bre,Hre={mode:"luv",toMode:{xyz50:jd,rgb:e=>_0(jd(e))},fromMode:{xyz50:Kd,rgb:e=>Kd(w0(e))},channels:["l","u","v","alpha"],parse:["--luv"],serialize:"--luv",ranges:{l:[0,100],u:[-84.936,175.042],v:[-125.882,87.243]},interpolate:{l:xr,u:xr,v:xr,alpha:{use:xr,fixup:Aa}}},MT=Hre,Ore=({r:e,g:r,b:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=Math.cbrt(.412221469470763*e+.5363325372617348*r+.0514459932675022*t),i=Math.cbrt(.2119034958178252*e+.6806995506452344*r+.1073969535369406*t),l=Math.cbrt(.0883024591900564*e+.2817188391361215*r+.6299787016738222*t),o={mode:"oklab",l:.210454268309314*n+.7936177747023054*i-.0040720430116193*l,a:1.9779985324311684*n-2.42859224204858*i+.450593709617411*l,b:.0259040424655478*n+.7827717124575296*i-.8086757549230774*l};return a!==void 0&&(o.alpha=a),o},W3=Ore,Yre=e=>{let r=W3(Ns(e));return e.r===e.b&&e.b===e.g&&(r.a=r.b=0),r},Gc=Yre,Gre=({l:e,a:r,b:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=Math.pow(e+.3963377773761749*r+.2158037573099136*t,3),i=Math.pow(e-.1055613458156586*r-.0638541728258133*t,3),l=Math.pow(e-.0894841775298119*r-1.2914855480194092*t,3),o={mode:"lrgb",r:4.076741636075957*n-3.3077115392580616*i+.2309699031821044*l,g:-1.2684379732850317*n+2.6097573492876887*i-.3413193760026573*l,b:-.0041960761386756*n-.7034186179359362*i+1.7076146940746117*l};return a!==void 0&&(o.alpha=a),o},T0=Gre,Ure=e=>Is(T0(e)),Uc=Ure;function m3(e){let a=1.170873786407767;return .5*(a*e-.206+Math.sqrt((a*e-.206)*(a*e-.206)+4*.03*a*e))}function Qd(e){return(e*e+.206*e)/(1.170873786407767*(e+.03))}function Vre(e,r){let t,a,n,i,l,o,s,u;-1.88170328*e-.80936493*r>1?(t=1.19086277,a=1.76576728,n=.59662641,i=.75515197,l=.56771245,o=4.0767416621,s=-3.3077115913,u=.2309699292):1.81444104*e-1.19445276*r>1?(t=.73956515,a=-.45954404,n=.08285427,i=.1254107,l=.14503204,o=-1.2684380046,s=2.6097574011,u=-.3413193965):(t=1.35733652,a=-.00915799,n=-1.1513021,i=-.50559606,l=.00692167,o=-.0041960863,s=-.7034186147,u=1.707614701);let f=t+a*e+n*r+i*e*e+l*e*r,c=.3963377774*e+.2158037573*r,v=-.1055613458*e-.0638541728*r,h=-.0894841775*e-1.291485548*r;{let p=1+f*c,m=1+f*v,y=1+f*h,x=p*p*p,_=m*m*m,w=y*y*y,b=3*c*p*p,M=3*v*m*m,A=3*h*y*y,k=6*c*c*p,S=6*v*v*m,D=6*h*h*y,P=o*x+s*_+u*w,R=o*b+s*M+u*A,F=o*k+s*S+u*D;f=f-P*R/(R*R-.5*P*F)}return f}function Z3(e,r){let t=Vre(e,r),a=T0({l:1,a:t*e,b:t*r}),n=Math.cbrt(1/Math.max(a.r,a.g,a.b)),i=n*t;return[n,i]}function Xre(e,r,t,a,n,i=null){i||(i=Z3(e,r));let l;if((t-n)*i[1]-(i[0]-n)*a<=0)l=i[1]*n/(a*i[0]+i[1]*(n-t));else{l=i[1]*(n-1)/(a*(i[0]-1)+i[1]*(n-t));{let o=t-n,s=a,u=.3963377774*e+.2158037573*r,f=-.1055613458*e-.0638541728*r,c=-.0894841775*e-1.291485548*r,v=o+s*u,h=o+s*f,p=o+s*c;{let m=n*(1-l)+l*t,y=l*a,x=m+y*u,_=m+y*f,w=m+y*c,b=x*x*x,M=_*_*_,A=w*w*w,k=3*v*x*x,S=3*h*_*_,D=3*p*w*w,P=6*v*v*x,R=6*h*h*_,F=6*p*p*w,B=4.0767416621*b-3.3077115913*M+.2309699292*A-1,H=4.0767416621*k-3.3077115913*S+.2309699292*D,N=4.0767416621*P-3.3077115913*R+.2309699292*F,Y=H/(H*H-.5*B*N),O=-B*Y,V=-1.2684380046*b+2.6097574011*M-.3413193965*A-1,X=-1.2684380046*k+2.6097574011*S-.3413193965*D,W=-1.2684380046*P+2.6097574011*R-.3413193965*F,U=X/(X*X-.5*V*W),$=-V*U,re=-.0041960863*b-.7034186147*M+1.707614701*A-1,se=-.0041960863*k-.7034186147*S+1.707614701*D,oe=-.0041960863*P-.7034186147*R+1.707614701*F,K=se/(se*se-.5*re*oe),me=-re*K;O=Y>=0?O:1e6,$=U>=0?$:1e6,me=K>=0?me:1e6,l+=Math.min(O,Math.min($,me))}}}return l}function J3(e,r,t=null){t||(t=Z3(e,r));let a=t[0],n=t[1];return[n/a,n/(1-a)]}function AT(e,r,t){let a=Z3(r,t),n=Xre(r,t,e,1,e,a),i=J3(r,t,a),l=.11516993+1/(7.4477897+4.1590124*t+r*(-2.19557347+1.75198401*t+r*(-2.13704948-10.02301043*t+r*(-4.24894561+5.38770819*t+4.69891013*r)))),o=.11239642+1/(1.6132032-.68124379*t+r*(.40370612+.90148123*t+r*(-.27087943+.6122399*t+r*(.00299215-.45399568*t-.14661872*r)))),s=n/Math.min(e*i[0],(1-e)*i[1]),u=e*l,f=(1-e)*o,c=.9*s*Math.sqrt(Math.sqrt(1/(1/(u*u*u*u)+1/(f*f*f*f))));return u=e*.4,f=(1-e)*.8,[Math.sqrt(1/(1/(u*u)+1/(f*f))),c,n]}function y3(e){let r=e.l!==void 0?e.l:0,t=e.a!==void 0?e.a:0,a=e.b!==void 0?e.b:0,n={mode:"okhsl",l:m3(r)};e.alpha!==void 0&&(n.alpha=e.alpha);let i=Math.sqrt(t*t+a*a);if(!i)return n.s=0,n;let[l,o,s]=AT(r,t/i,a/i),u;if(iy3(Gc(e))},toMode:{oklab:g3,rgb:e=>Uc(g3(e))}}),kT=Wre;function x3(e){let r=e.l!==void 0?e.l:0,t=e.a!==void 0?e.a:0,a=e.b!==void 0?e.b:0,n=Math.sqrt(t*t+a*a),i=n?t/n:1,l=n?a/n:1,[o,s]=J3(i,l),u=.5,f=1-u/o,c=s/(n+r*s),v=c*r,h=c*n,p=Qd(v),m=h*p/v,y=T0({l:p,a:i*m,b:l*m}),x=Math.cbrt(1/Math.max(y.r,y.g,y.b,0));r=r/x,n=n/x*m3(r)/r,r=m3(r);let _={mode:"okhsv",s:n?(u+s)*h/(s*u+s*f*h):0,v:r?r/v:0};return _.s&&(_.h=tn(Math.atan2(a,t)*180/Math.PI)),e.alpha!==void 0&&(_.alpha=e.alpha),_}function b3(e){let r={mode:"oklab"};e.alpha!==void 0&&(r.alpha=e.alpha);let t=e.h!==void 0?e.h:0,a=e.s!==void 0?e.s:0,n=e.v!==void 0?e.v:0,i=Math.cos(t/180*Math.PI),l=Math.sin(t/180*Math.PI),[o,s]=J3(i,l),u=.5,f=1-u/o,c=1-a*u/(u+s-s*f*a),v=a*s*u/(u+s-s*f*a),h=Qd(c),p=v*h/c,m=T0({l:h,a:i*p,b:l*p}),y=Math.cbrt(1/Math.max(m.r,m.g,m.b,0)),x=Qd(n*c),_=v*x/c;return r.l=x*y,r.a=_*i*y,r.b=_*l*y,r}var Zre=Et(ct({},N3),{mode:"okhsv",channels:["h","s","v","alpha"],parse:["--okhsv"],serialize:"--okhsv",fromMode:{oklab:x3,rgb:e=>x3(Gc(e))},toMode:{oklab:b3,rgb:e=>Uc(b3(e))}}),LT=Zre;function Jre(e,r){if(!r||r[0]!=="oklab")return;let t={mode:"oklab"},[,a,n,i,l]=r;if(!(a.type===fr.Hue||n.type===fr.Hue||i.type===fr.Hue))return a.type!==fr.None&&(t.l=Math.min(Math.max(0,a.type===fr.Number?a.value:a.value/100),1)),n.type!==fr.None&&(t.a=n.type===fr.Number?n.value:n.value*.4/100),i.type!==fr.None&&(t.b=i.type===fr.Number?i.value:i.value*.4/100),l.type!==fr.None&&(t.alpha=Math.min(1,Math.max(0,l.type===fr.Number?l.value:l.value/100))),t}var CT=Jre,$re=Et(ct({},sh),{mode:"oklab",toMode:{lrgb:T0,rgb:Uc},fromMode:{lrgb:W3,rgb:Gc},ranges:{l:[0,1],a:[-.4,.4],b:[-.4,.4]},parse:[CT],serialize:e=>`oklab(${e.l!==void 0?e.l:"none"} ${e.a!==void 0?e.a:"none"} ${e.b!==void 0?e.b:"none"}${e.alpha<1?` / ${e.alpha}`:""})`}),ST=$re;function Kre(e,r){if(!r||r[0]!=="oklch")return;let t={mode:"oklch"},[,a,n,i,l]=r;if(a.type!==fr.None){if(a.type===fr.Hue)return;t.l=Math.min(Math.max(0,a.type===fr.Number?a.value:a.value/100),1)}if(n.type!==fr.None&&(t.c=Math.max(0,n.type===fr.Number?n.value:n.value*.4/100)),i.type!==fr.None){if(i.type===fr.Percentage)return;t.h=i.value}return l.type!==fr.None&&(t.alpha=Math.min(1,Math.max(0,l.type===fr.Number?l.value:l.value/100))),t}var qT=Kre,jre=Et(ct({},uh),{mode:"oklch",toMode:{oklab:e=>Yl(e,"oklab"),rgb:e=>Uc(Yl(e,"oklab"))},fromMode:{rgb:e=>Ol(Gc(e),"oklch"),oklab:e=>Ol(e,"oklch")},parse:[qT],serialize:e=>`oklch(${e.l!==void 0?e.l:"none"} ${e.c!==void 0?e.c:"none"} ${e.h!==void 0?e.h:"none"}${e.alpha<1?` / ${e.alpha}`:""})`,ranges:{l:[0,1],c:[0,.4],h:[0,360]}}),DT=jre,Qre=e=>{let{r,g:t,b:a,alpha:n}=Ns(e),i={mode:"xyz65",x:.486570948648216*r+.265667693169093*t+.1982172852343625*a,y:.2289745640697487*r+.6917385218365062*t+.079286914093745*a,z:0*r+.0451133818589026*t+1.043944368900976*a};return n!==void 0&&(i.alpha=n),i},_3=Qre,ete=({x:e,y:r,z:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=Is({r:e*2.4934969119414263-r*.9313836179191242-.402710784450717*t,g:e*-.8294889695615749+r*1.7626640603183465+.0236246858419436*t,b:e*.0358458302437845-r*.0761723892680418+.9568845240076871*t},"p3");return a!==void 0&&(n.alpha=a),n},w3=ete,rte=Et(ct({},Fs),{mode:"p3",parse:["display-p3"],serialize:"display-p3",fromMode:{rgb:e=>w3(bo(e)),xyz65:w3},toMode:{rgb:e=>_o(_3(e)),xyz65:_3}}),PT=rte,r3=e=>{let r=Math.abs(e);return r>=1/512?Math.sign(e)*Math.pow(r,1/1.8):16*e},tte=({x:e,y:r,z:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n={mode:"prophoto",r:r3(e*1.3457868816471585-r*.2555720873797946-.0511018649755453*t),g:r3(e*-.5446307051249019+r*1.5082477428451466+.0205274474364214*t),b:r3(e*0+r*0+1.2119675456389452*t)};return a!==void 0&&(n.alpha=a),n},T3=tte,t3=(e=0)=>{let r=Math.abs(e);return r>=16/512?Math.sign(e)*Math.pow(r,1.8):e/16},ate=e=>{let r=t3(e.r),t=t3(e.g),a=t3(e.b),n={mode:"xyz50",x:.7977666449006423*r+.1351812974005331*t+.0313477341283922*a,y:.2880748288194013*r+.7118352342418731*t+899369387256e-16*a,z:0*r+0*t+.8251046025104602*a};return e.alpha!==void 0&&(n.alpha=e.alpha),n},M3=ate,nte=Et(ct({},Fs),{mode:"prophoto",parse:["prophoto-rgb"],serialize:"prophoto-rgb",fromMode:{xyz50:T3,rgb:e=>T3(w0(e))},toMode:{xyz50:M3,rgb:e=>_0(M3(e))}}),ET=nte,kw=1.09929682680944,ite=.018053968510807,a3=e=>{let r=Math.abs(e);return r>ite?(Math.sign(e)||1)*(kw*Math.pow(r,.45)-(kw-1)):4.5*e},lte=({x:e,y:r,z:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n={mode:"rec2020",r:a3(e*1.7166511879712683-r*.3556707837763925-.2533662813736599*t),g:a3(e*-.6666843518324893+r*1.6164812366349395+.0157685458139111*t),b:a3(e*.0176398574453108-r*.0427706132578085+.9421031212354739*t)};return a!==void 0&&(n.alpha=a),n},A3=lte,Lw=1.09929682680944,ote=.018053968510807,n3=(e=0)=>{let r=Math.abs(e);return r{let r=n3(e.r),t=n3(e.g),a=n3(e.b),n={mode:"xyz65",x:.6369580483012911*r+.1446169035862083*t+.1688809751641721*a,y:.262700212011267*r+.6779980715188708*t+.059301716469862*a,z:0*r+.0280726930490874*t+1.0609850577107909*a};return e.alpha!==void 0&&(n.alpha=e.alpha),n},k3=ste,ute=Et(ct({},Fs),{mode:"rec2020",fromMode:{xyz65:A3,rgb:e=>A3(bo(e))},toMode:{xyz65:k3,rgb:e=>_o(k3(e))},parse:["rec2020"],serialize:"rec2020"}),RT=ute,Rs=.0037930732552754493,zT=Math.cbrt(Rs),i3=e=>Math.cbrt(e)-zT,fte=e=>{let{r,g:t,b:a,alpha:n}=Ns(e),i=i3(.3*r+.622*t+.078*a+Rs),l=i3(.23*r+.692*t+.078*a+Rs),o=i3(.2434226892454782*r+.2047674442449682*t+.5518098665095535*a+Rs),s={mode:"xyb",x:(i-l)/2,y:(i+l)/2,b:o-(i+l)/2};return n!==void 0&&(s.alpha=n),s},FT=fte,l3=e=>Math.pow(e+zT,3),cte=({x:e,y:r,b:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=l3(e+r)-Rs,i=l3(r-e)-Rs,l=l3(t+r)-Rs,o=Is({r:11.031566904639861*n-9.866943908131562*i-.16462299650829934*l,g:-3.2541473810744237*n+4.418770377582723*i-.16462299650829934*l,b:-3.6588512867136815*n+2.7129230459360922*i+1.9459282407775895*l});return a!==void 0&&(o.alpha=a),o},NT=cte,vte={mode:"xyb",channels:["x","y","b","alpha"],parse:["--xyb"],serialize:"--xyb",toMode:{rgb:NT},fromMode:{rgb:FT},ranges:{x:[-.0154,.0281],y:[0,.8453],b:[-.2778,.388]},interpolate:{x:xr,y:xr,b:xr,alpha:{use:xr,fixup:Aa}}},IT=vte,dte={mode:"xyz50",parse:["xyz-d50"],serialize:"xyz-d50",toMode:{rgb:_0,lab:oh},fromMode:{rgb:w0,lab:lh},channels:["x","y","z","alpha"],ranges:{x:[0,.964],y:[0,.999],z:[0,.825]},interpolate:{x:xr,y:xr,z:xr,alpha:{use:xr,fixup:Aa}}},BT=dte,hte=e=>{let{x:r,y:t,z:a,alpha:n}=e;r===void 0&&(r=0),t===void 0&&(t=0),a===void 0&&(a=0);let i={mode:"xyz50",x:1.0479298208405488*r+.0229467933410191*t-.0501922295431356*a,y:.0296278156881593*r+.990434484573249*t-.0170738250293851*a,z:-.0092430581525912*r+.0150551448965779*t+.7518742899580008*a};return n!==void 0&&(i.alpha=n),i},HT=hte,pte=e=>{let{x:r,y:t,z:a,alpha:n}=e;r===void 0&&(r=0),t===void 0&&(t=0),a===void 0&&(a=0);let i={mode:"xyz65",x:.9554734527042182*r-.0230985368742614*t+.0632593086610217*a,y:-.0283697069632081*r+1.0099954580058226*t+.021041398966943*a,z:.0123140016883199*r-.0205076964334779*t+1.3303659366080753*a};return n!==void 0&&(i.alpha=n),i},OT=pte,mte={mode:"xyz65",toMode:{rgb:_o,xyz50:HT},fromMode:{rgb:bo,xyz50:OT},ranges:{x:[0,.95],y:[0,1],z:[0,1.088]},channels:["x","y","z","alpha"],parse:["xyz","xyz-d65"],serialize:"xyz-d65",interpolate:{x:xr,y:xr,z:xr,alpha:{use:xr,fixup:Aa}}},YT=mte,yte=({r:e,g:r,b:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n={mode:"yiq",y:.29889531*e+.58662247*r+.11448223*t,i:.59597799*e-.2741761*r-.32180189*t,q:.21147017*e-.52261711*r+.31114694*t};return a!==void 0&&(n.alpha=a),n},GT=yte,gte=({y:e,i:r,q:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n={mode:"rgb",r:e+.95608445*r+.6208885*t,g:e-.27137664*r-.6486059*t,b:e-1.10561724*r+1.70250126*t};return a!==void 0&&(n.alpha=a),n},UT=gte,xte={mode:"yiq",toMode:{rgb:UT},fromMode:{rgb:GT},channels:["y","i","q","alpha"],parse:["--yiq"],serialize:"--yiq",ranges:{i:[-.595,.595],q:[-.522,.522]},interpolate:{y:xr,i:xr,q:xr,alpha:{use:xr,fixup:Aa}}},VT=xte,bte=(e,r)=>Math.round(e*(r=Math.pow(10,r)))/r,_te=(e=4)=>r=>typeof r=="number"?bte(r,e):r,XT=_te,zc=XT(2),Nc=e=>Math.max(0,Math.min(1,e||0)),zs=e=>Math.round(Nc(e)*255),$3=kt("rgb"),wte=kt("hsl"),K3=e=>{if(e===void 0)return;let r=zs(e.r),t=zs(e.g),a=zs(e.b);return"#"+(1<<24|r<<16|t<<8|a).toString(16).slice(1)},WT=e=>{if(e===void 0)return;let r=zs(e.alpha!==void 0?e.alpha:1);return K3(e)+(256|r).toString(16).slice(1)},ZT=e=>{if(e===void 0)return;let r=zs(e.r),t=zs(e.g),a=zs(e.b);return e.alpha===void 0||e.alpha===1?`rgb(${r}, ${t}, ${a})`:`rgba(${r}, ${t}, ${a}, ${zc(Nc(e.alpha))})`},JT=e=>{if(e===void 0)return;let r=zc(e.h||0),t=zc(Nc(e.s)*100)+"%",a=zc(Nc(e.l)*100)+"%";return e.alpha===void 0||e.alpha===1?`hsl(${r}, ${t}, ${a})`:`hsla(${r}, ${t}, ${a}, ${zc(Nc(e.alpha))})`},Tte=e=>{let r=Bi(e);if(!r)return;let t=cn(r.mode);if(!t.serialize||typeof t.serialize=="string"){let a=`color(${t.serialize||`--${r.mode}`} `;return t.channels.forEach((n,i)=>{n!=="alpha"&&(a+=(i?" ":"")+(r[n]!==void 0?r[n]:"none"))}),r.alpha!==void 0&&r.alpha<1&&(a+=` / ${r.alpha}`),a+")"}if(typeof t.serialize=="function")return t.serialize(r)},Mte=e=>K3($3(e)),Ate=e=>WT($3(e)),kte=e=>ZT($3(e)),Lte=e=>JT(wte(e)),Cte={normal:(e,r)=>r,multiply:(e,r)=>e*r,screen:(e,r)=>e+r-e*r,"hard-light":(e,r)=>r<.5?e*2*r:2*r*(1-e)-1,overlay:(e,r)=>e<.5?r*2*e:2*e*(1-r)-1,darken:(e,r)=>Math.min(e,r),lighten:(e,r)=>Math.max(e,r),"color-dodge":(e,r)=>e===0?0:r===1?1:Math.min(1,e/(1-r)),"color-burn":(e,r)=>e===1?1:r===0?0:1-Math.min(1,(1-e)/r),"soft-light":(e,r)=>r<.5?e-(1-2*r)*e*(1-e):e+(2*r-1)*((e<.25?((16*e-12)*e+4)*e:Math.sqrt(e))-e),difference:(e,r)=>Math.abs(e-r),exclusion:(e,r)=>e+r-2*e*r},Ste=(e,r="normal",t="rgb")=>{let a=typeof r=="function"?r:Cte[r],n=kt(t),i=cn(t).channels;return e.map(o=>{let s=n(o);return s.alpha===void 0&&(s.alpha=1),s}).reduce((o,s)=>{if(o===void 0)return s;let u=s.alpha+o.alpha*(1-s.alpha);return i.reduce((f,c)=>(c!=="alpha"&&(u===0?f[c]=0:(f[c]=s.alpha*(1-o.alpha)*s[c]+s.alpha*o.alpha*a(o[c],s[c])+(1-s.alpha)*o.alpha*o[c],f[c]=Math.max(0,Math.min(1,f[c]/u)))),f),{mode:t,alpha:u})})},qte=Ste,Dte=([e,r])=>e+Math.random()*(r-e),Pte=e=>Object.keys(e).reduce((r,t)=>{let a=e[t];return r[t]=Array.isArray(a)?a:[a,a],r},{}),Ete=(e="rgb",r={})=>{let t=cn(e),a=Pte(r);return t.channels.reduce((n,i)=>((a.alpha||i!=="alpha")&&(n[i]=Dte(a[i]||t.ranges[i])),n),{mode:e})},Rte=Ete,Vc=(e,r="rgb",t=!1)=>{let a=r?cn(r).channels:null,n=r?kt(r):Bi;return i=>{let l=n(i);if(!l)return;let o=(a||cn(l.mode).channels).reduce((u,f)=>{let c=e(l[f],f,l,r);return c!==void 0&&!isNaN(c)&&(u[f]=c),u},{mode:l.mode});if(!t)return o;let s=Bi(i);return s&&s.mode!==o.mode?kt(s.mode)(o):o}},$T=(e,r,t)=>r!=="alpha"?(e||0)*(t.alpha!==void 0?t.alpha:1):e,KT=(e,r,t)=>r!=="alpha"&&t.alpha!==0?(e||0)/(t.alpha!==void 0?t.alpha:1):e,j3=(e=1,r=0)=>(t,a)=>a!=="alpha"?t*e+r:t,zte=(e=1,r=1,t=0)=>(a,n)=>n!=="alpha"?e*Math.pow(a,r)+t:a,Fte=e=>{e[0]===void 0&&(e[0]=0),e[e.length-1]===void 0&&(e[e.length-1]=1);let r=1,t,a,n,i;for(;rr=>e<=0?1:e>=1?0:Math.pow(r,Math.log(.5)/Math.log(e)),jT=Ite,Gd=e=>typeof e=="function",Ps=e=>e&&typeof e=="object",Cw=e=>typeof e=="number",QT=(e,r="rgb",t,a)=>{let n=cn(r),i=kt(r),l=[],o=[],s={};e.forEach(v=>{Array.isArray(v)?(l.push(i(v[0])),o.push(v[1])):Cw(v)||Gd(v)?s[o.length]=v:(l.push(i(v)),o.push(void 0))}),Nte(o);let u=n.channels.reduce((v,h)=>{let p;return Ps(t)&&Ps(t[h])&&t[h].fixup?p=t[h].fixup:Ps(n.interpolate[h])&&n.interpolate[h].fixup?p=n.interpolate[h].fixup:p=m=>m,v[h]=p(l.map(m=>m[h])),v},{});if(a){let v=l.map((h,p)=>n.channels.reduce((m,y)=>(m[y]=u[y][p],m),{mode:r}));u=n.channels.reduce((h,p)=>(h[p]=v.map(m=>{let y=a(m[p],p,m,r);return isNaN(y)?void 0:y}),h),{})}let f=n.channels.reduce((v,h)=>{let p;return Gd(t)?p=t:Ps(t)&&Gd(t[h])?p=t[h]:Ps(t)&&Ps(t[h])&&t[h].use?p=t[h].use:Gd(n.interpolate[h])?p=n.interpolate[h]:Ps(n.interpolate[h])&&(p=n.interpolate[h].use),v[h]=p(u[h]),v},{}),c=l.length-1;return v=>{if(v=Math.min(Math.max(0,v),1),v<=o[0])return l[0];if(v>o[c])return l[c];let h=0;for(;o[h]{let M=f[b](_);return M!==void 0&&(w[b]=M),w},{mode:r})}},Bte=(e,r="rgb",t)=>QT(e,r,t),eM=(e,r)=>(t,a="rgb",n)=>{let i=r?Vc(r,a):void 0,l=QT(t,a,n,e);return i?o=>i(l(o)):l},Hte=eM($T,KT),Ud=(e,r)=>(e+r)%r,rM=(e,r,t,a,n)=>{let i=n*n,l=i*n;return((1-3*n+3*i-l)*e+(4-6*i+3*l)*r+(1+3*n+3*i-3*l)*t+l*a)/6},tM=e=>r=>{let t=e.length-1,a=r>=1?t-1:Math.max(0,Math.floor(r*t));return rM(a>0?e[a-1]:2*e[a]-e[a+1],e[a],e[a+1],ar=>{let t=e.length-1,a=Math.floor(r*t);return rM(e[Ud(a-1,e.length)],e[Ud(a,e.length)],e[Ud(a+1,e.length)],e[Ud(a+2,e.length)],(r-a/t)*t)},nM=e=>{let r,t=e.length-1,a=new Array(t),n=new Array(t),i=new Array(t);for(a[1]=1/4,n[1]=(6*e[1]-e[0])/4,r=2;r0&&(i[t-1]=n[t-1]),r=t-2;r>0;--r)i[r]=n[r]-a[r]*i[r+1];return i},Ote=e=>tM(nM(e)),Yte=e=>aM(nM(e)),m0=Math.sign,L3=Math.min,Gn=Math.abs,Q3=e=>{let r=e.length-1,t=[],a=[],n=[];for(let i=0;i0?.5*(e[i+1]-e[i-1])*r:void 0),n.push(i>0?(m0(t[i-1])+m0(t[i]))*L3(Gn(t[i-1]),Gn(t[i]),.5*Gn(a[i])):void 0);return[t,a,n]},e5=(e,r,t)=>{let a=e.length-1,n=a*a;return i=>{let l;i>=1?l=a-1:l=Math.max(0,Math.floor(i*a));let o=i-l/a,s=o*o,u=s*o;return(r[l]+r[l+1]-2*t[l])*n*u+(3*t[l]-2*r[l]-r[l+1])*a*s+r[l]*o+e[l]}},Gte=e=>{if(e.length<3)return xr(e);let r=e.length-1,[t,,a]=Q3(e);return a[0]=t[0],a[r]=t[r-1],e5(e,a,t)},Ute=e=>{if(e.length<3)return xr(e);let r=e.length-1,[t,a,n]=Q3(e);return a[0]=(e[1]*2-e[0]*1.5-e[2]*.5)*r,a[r]=(e[r]*1.5-e[r-1]*2+e[r-2]*.5)*r,n[0]=a[0]*t[0]<=0?0:Gn(a[0])>2*Gn(t[0])?2*t[0]:a[0],n[r]=a[r]*t[r-1]<=0?0:Gn(a[r])>2*Gn(t[r-1])?2*t[r-1]:a[r],e5(e,n,t)},Vte=e=>{let r=e.length-1,[t,a,n]=Q3(e);a[0]=.5*(e[1]-e[r])*r,a[r]=.5*(e[0]-e[r-1])*r;let i=(e[0]-e[r])*r,l=i;return n[0]=(m0(i)+m0(t[0]))*L3(Gn(i),Gn(t[0]),.5*Gn(a[0])),n[r]=(m0(t[r-1])+m0(l))*L3(Gn(t[r-1]),Gn(l),.5*Gn(a[r])),e5(e,n,t)},Xte=(e=1)=>e===1?r=>r:r=>Math.pow(r,e),iM=Xte,Wte=(e=2,r=1)=>{let t=iM(r);if(e<2)return e<1?[]:[t(.5)];let a=[];for(let n=0;n{let r={mode:e.mode,r:Math.max(0,Math.min(e.r!==void 0?e.r:0,1)),g:Math.max(0,Math.min(e.g!==void 0?e.g:0,1)),b:Math.max(0,Math.min(e.b!==void 0?e.b:0,1))};return e.alpha!==void 0&&(r.alpha=e.alpha),r},sM=e=>oM(lM(e)),uM=e=>e!==void 0&&(e.r===void 0||e.r>=0&&e.r<=1)&&(e.g===void 0||e.g>=0&&e.g<=1)&&(e.b===void 0||e.b>=0&&e.b<=1);function r5(e){return uM(lM(e))}function fh(e="rgb"){let{gamut:r}=cn(e);if(!r)return a=>!0;let t=kt(typeof r=="string"?r:e);return a=>uM(t(a))}function Jte(e){return e=Bi(e),e===void 0||r5(e)?e:kt(e.mode)(sM(e))}function t5(e="rgb"){let{gamut:r}=cn(e);if(!r)return i=>Bi(i);let t=typeof r=="string"?r:e,a=kt(t),n=fh(t);return i=>{let l=Bi(i);if(!l)return;let o=a(l);if(n(o))return l;let s=oM(o);return l.mode===s.mode?s:kt(l.mode)(s)}}function $te(e,r="lch",t="rgb"){e=Bi(e);let a=t==="rgb"?r5:fh(t),n=t==="rgb"?sM:t5(t);if(e===void 0||a(e))return e;let i=kt(e.mode);e=kt(r)(e);let l=Et(ct({},e),{c:0});if(!a(l))return i(n(l));let o=0,s=e.c!==void 0?e.c:0,u=cn(r).ranges.c,f=(u[1]-u[0])/Math.pow(2,13),c=l.c;for(;s-o>f;)l.c=o+(s-o)*.5,a(l)?(c=l.c,o=l.c):s=l.c;return i(a(l)?l:Et(ct({},l),{c}))}function Kte(e="rgb",r="oklch",t=b0("oklch"),a=.02){let n=kt(e),i=cn(e);if(!i.gamut)return f=>n(f);let l=fh(e),o=t5(e),s=kt(r),{ranges:u}=cn(r);if(!u.l||!u.c)throw new Error("LCH-like space expected");return f=>{if(f=Bi(f),f===void 0)return;let c=ct({},s(f));if(c.l===void 0&&(c.l=0),c.c===void 0&&(c.c=0),c.l>=u.l[1]){let y=Et(ct({},i.white),{mode:e});return f.alpha!==void 0&&(y.alpha=f.alpha),y}if(c.l<=u.l[0]){let y=Et(ct({},i.black),{mode:e});return f.alpha!==void 0&&(y.alpha=f.alpha),y}if(l(c))return n(c);let v=0,h=c.c,p=(u.c[1]-u.c[0])/4e3,m=o(c);for(;h-v>p;)c.c=(v+h)*.5,m=o(c),l(c)||t&&a>0&&t(c,m)<=a?v=c.c:h=c.c;return n(l(c)?c:m)}}var jte=(e,r=b0(),t=a=>a)=>{let a=e.map((n,i)=>({color:t(n),i}));return(n,i=1,l=1/0)=>(isFinite(i)&&(i=Math.max(1,Math.min(i,a.length-1))),a.forEach(o=>{o.d=r(n,o.color)}),a.sort((o,s)=>o.d-s.d).slice(0,i).filter(o=>o.de[o.i]))},Qte=jte,a5=e=>Math.max(e,0),n5=e=>Math.max(Math.min(e,1),0),eae=(e,r,t)=>e===void 0||r===void 0?void 0:e+t*(r-e),rae=e=>{let r=1-n5(e);return[.393+.607*r,.769-.769*r,.189-.189*r,0,.349-.349*r,.686+.314*r,.168-.168*r,0,.272-.272*r,.534-.534*r,.131+.869*r,0,0,0,0,1]},tae=e=>{let r=a5(e);return[.213+.787*r,.715-.715*r,.072-.072*r,0,.213-.213*r,.715+.285*r,.072-.072*r,0,.213-.213*r,.715-.715*r,.072+.928*r,0,0,0,0,1]},aae=e=>{let r=1-n5(e);return[.2126+.7874*r,.7152-.7152*r,.0722-.0722*r,0,.2126-.2126*r,.7152+.2848*r,.0722-.0722*r,0,.2126-.2126*r,.7152-.7152*r,.0722+.9278*r,0,0,0,0,1]},nae=e=>{let r=Math.PI*e/180,t=Math.cos(r),a=Math.sin(r);return[.213+t*.787-a*.213,.715-t*.715-a*.715,.072-t*.072+a*.928,0,.213-t*.213+a*.143,.715+t*.285+a*.14,.072-t*.072-a*.283,0,.213-t*.213-a*.787,.715-t*.715+a*.715,.072+t*.928+a*.072,0,0,0,0,1]},ch=(e,r,t=!1)=>{let a=kt(r),n=cn(r).channels;return i=>{let l=a(i);if(!l)return;let o={mode:r},s,u=n.length;for(let c=0;c{let t=a5(e);return Vc(j3(t),r,!0)},lae=(e=1,r="rgb")=>{let t=a5(e);return Vc(j3(t,(1-t)/2),r,!0)},oae=(e=1,r="rgb")=>ch(rae(e),r,!0),sae=(e=1,r="rgb")=>ch(tae(e),r,!0),uae=(e=1,r="rgb")=>ch(aae(e),r,!0),fae=(e=1,r="rgb")=>{let t=n5(e);return Vc((a,n)=>n==="alpha"?a:eae(t,1-t,a),r,!0)},cae=(e=0,r="rgb")=>ch(nae(e),r,!0),vae=kt("rgb"),dae=[[1,0,-0,0,1,0,-0,-0,1],[.856167,.182038,-.038205,.029342,.955115,.015544,-.00288,-.001563,1.004443],[.734766,.334872,-.069637,.05184,.919198,.028963,-.004928,-.004209,1.009137],[.630323,.465641,-.095964,.069181,.890046,.040773,-.006308,-.007724,1.014032],[.539009,.579343,-.118352,.082546,.866121,.051332,-.007136,-.011959,1.019095],[.458064,.679578,-.137642,.092785,.846313,.060902,-.007494,-.016807,1.024301],[.38545,.769005,-.154455,.100526,.829802,.069673,-.007442,-.02219,1.029632],[.319627,.849633,-.169261,.106241,.815969,.07779,-.007025,-.028051,1.035076],[.259411,.923008,-.18242,.110296,.80434,.085364,-.006276,-.034346,1.040622],[.203876,.990338,-.194214,.112975,.794542,.092483,-.005222,-.041043,1.046265],[.152286,1.052583,-.204868,.114503,.786281,.099216,-.003882,-.048116,1.051998]],hae=[[1,0,-0,0,1,0,-0,-0,1],[.866435,.177704,-.044139,.049567,.939063,.01137,-.003453,.007233,.99622],[.760729,.319078,-.079807,.090568,.889315,.020117,-.006027,.013325,.992702],[.675425,.43385,-.109275,.125303,.847755,.026942,-.00795,.018572,.989378],[.605511,.52856,-.134071,.155318,.812366,.032316,-.009376,.023176,.9862],[.547494,.607765,-.155259,.181692,.781742,.036566,-.01041,.027275,.983136],[.498864,.674741,-.173604,.205199,.754872,.039929,-.011131,.030969,.980162],[.457771,.731899,-.18967,.226409,.731012,.042579,-.011595,.034333,.977261],[.422823,.781057,-.203881,.245752,.709602,.044646,-.011843,.037423,.974421],[.392952,.82361,-.216562,.263559,.69021,.046232,-.01191,.040281,.97163],[.367322,.860646,-.227968,.280085,.672501,.047413,-.01182,.04294,.968881]],pae=[[1,0,-0,0,1,0,-0,-0,1],[.92667,.092514,-.019184,.021191,.964503,.014306,.008437,.054813,.93675],[.89572,.13333,-.02905,.029997,.9454,.024603,.013027,.104707,.882266],[.905871,.127791,-.033662,.026856,.941251,.031893,.01341,.148296,.838294],[.948035,.08949,-.037526,.014364,.946792,.038844,.010853,.193991,.795156],[1.017277,.027029,-.044306,-.006113,.958479,.047634,.006379,.248708,.744913],[1.104996,-.046633,-.058363,-.032137,.971635,.060503,.001336,.317922,.680742],[1.193214,-.109812,-.083402,-.058496,.97941,.079086,-.002346,.403492,.598854],[1.257728,-.139648,-.118081,-.078003,.975409,.102594,-.003316,.501214,.502102],[1.278864,-.125333,-.153531,-.084748,.957674,.127074,-989e-6,.601151,.399838],[1.255528,-.076749,-.178779,-.078411,.930809,.147602,.004733,.691367,.3039]],i5=(e,r)=>{let t=Math.max(0,Math.min(1,r)),a=Math.round(t/.1),n=Math.round(t%.1),i=e[a];if(n>0&&aEs(i[s],l[s],n))}return l=>{let o=Bi(l);if(o===void 0)return;let{r:s,g:u,b:f}=vae(o),c={mode:"rgb",r:i[0]*s+i[1]*u+i[2]*f,g:i[3]*s+i[4]*u+i[5]*f,b:i[6]*s+i[7]*u+i[8]*f};return o.alpha!==void 0&&(c.alpha=o.alpha),kt(o.mode)(c)}},mae=(e=1)=>i5(dae,e),yae=(e=1)=>i5(hae,e),gae=(e=1)=>i5(pae,e),xae=e=>e*e*(3-2*e),bae=e=>.5-Math.sin(Math.asin(1-2*e)/3),_ae=e=>e*e*e*(e*(e*6-15)+10),wae=_ae,Tae=e=>(1-Math.cos(e*Math.PI))/2,Mae=Tae;function C3(e){let r=kt("lrgb")(e);return .2126*r.r+.7152*r.g+.0722*r.b}function Aae(e,r){let t=C3(e),a=C3(r);return(Math.max(t,a)+.05)/(Math.min(t,a)+.05)}var kae=mt(Yw),Lae=mt(Ww),Cae=mt(jw),Sae=mt(Qw),qae=mt(tT),Dae=mt(R3),Pae=mt(N3),Eae=mt(fT),Rae=mt(dT),zae=mt(hT),Fae=mt(pT),Nae=mt(sh),Iae=mt(yT),Bae=mt(uh),Hae=mt(xT),Oae=mt(wT),Yae=mt(TT),Gae=mt(MT),Uae=mt(kT),Vae=mt(LT),Xae=mt(ST),Wae=mt(DT),Zae=mt(PT),Jae=mt(ET),$ae=mt(RT),Kae=mt(Fs),jae=mt(IT),Qae=mt(BT),ene=mt(YT),rne=mt(VT)});var l5={};pt(l5,{default:()=>ane});var tne,ane,o5=Cr(()=>{"use strict";tne={format:{valType:"enumerated",values:["png","jpeg","webp","svg","full-json"],dflt:"png",description:"Sets the format of exported image."},width:{valType:"number",min:1,description:["Sets the exported image width.","Defaults to the value found in `layout.width`","If set to *null*, the exported image width will match the current graph width."].join(" ")},height:{valType:"number",min:1,description:["Sets the exported image height.","Defaults to the value found in `layout.height`","If set to *null*, the exported image height will match the current graph height."].join(" ")},scale:{valType:"number",min:0,dflt:1,description:["Sets a scaling for the generated image.","If set, all features of a graphs (e.g. text, line width)","are scaled, unlike simply setting","a bigger *width* and *height*."].join(" ")},setBackground:{valType:"any",dflt:!1,description:["Sets the image background mode.","By default, the image background is determined by `layout.paper_bgcolor`,","the *transparent* mode.","One might consider setting `setBackground` to *opaque*","when exporting a *jpeg* image as JPEGs do not support opacity."].join(" ")},imageDataOnly:{valType:"boolean",dflt:!1,description:["Determines whether or not the return value is prefixed by","the image format's corresponding 'data:image;' spec."].join(" ")}},ane=tne});var wo=G((RTe,mM)=>{"use strict";var{format:nne,width:ine,height:lne,scale:one}=(o5(),Fe(l5)).default,vM=one,{dflt:ETe}=vM,sne=z9(vM,["dflt"]),dM={staticPlot:{valType:"boolean",dflt:!1},typesetMath:{valType:"boolean",dflt:!0},plotlyServerURL:{valType:"string",dflt:"https://cloud.plotly.com/newchart"},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","map"],extras:[!0,!1],dflt:"gl3d+geo+map"},doubleClick:{valType:"enumerated",values:[!1,"reset","autosize","reset+autosize"],dflt:"reset+autosize"},doubleClickDelay:{valType:"number",dflt:500,min:0},showAxisDragHandles:{valType:"boolean",dflt:!0},showAxisRangeEntryBoxes:{valType:"boolean",dflt:!0},showTips:{valType:"boolean",dflt:!0},displayNotifier:{valType:"boolean",dflt:!0},displayModeBar:{valType:"enumerated",values:["hover",!0,!1],dflt:"hover"},showSendToCloud:{valType:"boolean",dflt:!0},modeBarButtonsToRemove:{valType:"any",dflt:[]},modeBarButtonsToAdd:{valType:"any",dflt:[]},modeBarButtons:{valType:"any",dflt:!1},toImageButtonOptions:{format:nne,filename:{valType:"string"},width:ine,height:lne,scale:sne},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/un/"},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},locale:{valType:"string",dflt:"en-US"},locales:{valType:"any",dflt:{}}},hM={};function pM(e,r){for(let t in e){let a=e[t];typeof a!="object"||a===null||(a.valType?"dflt"in a&&(r[t]=a.dflt):(r[t]||(r[t]={}),pM(a,r[t])))}}pM(dM,hM);mM.exports={configAttributes:dM,dfltConfig:hM}});var u5=G((FTe,yM)=>{"use strict";var s5=Er(),une=Gr(),Xc=[];yM.exports=function(e,r,t){var o;if(((o=t==null?void 0:t._context)==null?void 0:o.displayNotifier)===!1||Xc.indexOf(e)!==-1)return;Xc.push(e);var a=1e3;une(r)?a=r:r==="long"&&(a=3e3);var n=s5.select("body").selectAll(".plotly-notifier").data([0]);n.enter().append("div").classed("plotly-notifier",!0);var i=n.selectAll(".notifier-note").data(Xc);function l(s){s.duration(700).style("opacity",0).each("end",function(u){var f=Xc.indexOf(u);f!==-1&&Xc.splice(f,1),s5.select(this).remove()})}i.enter().append("div").classed("notifier-note",!0).style("opacity",0).each(function(s){var u=s5.select(this);u.append("button").classed("notifier-close",!0).html("×").on("click",function(){u.transition().call(l)});for(var f=u.append("p"),c=s.split(//g),v=0;v{"use strict";var M0=wo().dfltConfig,f5=u5(),c5=gM.exports={};c5.log=function(){var e;if(M0.logging>1){var r=["LOG:"];for(e=0;e1){var t=[];for(e=0;e"),"long")}};c5.warn=function(){var e;if(M0.logging>0){var r=["WARN:"];for(e=0;e0){var t=[];for(e=0;e"),"stick")}};c5.error=function(){var e;if(M0.logging>0){var r=["ERROR:"];for(e=0;e0){var t=[];for(e=0;e"),"stick")}}});var vi=G(Bs=>{"use strict";Bs.defaults=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"];Bs.defaultLine="#444";Bs.lightLine="#eee";Bs.background="#fff";Bs.borderLine="#BEC8D9";Bs.lightFraction=1e3/11});var kr=G((BTe,LM)=>{"use strict";var{converter:xM,formatHex:fne,formatRgb:cne,wcagContrast:vne,wcagLuminance:dne}=cM(),{isArrayOrTypedArray:bM}=Sn(),{warn:hne}=To(),{background:Zc,defaultLine:h5,defaults:pne,lightLine:mne}=vi(),_M=xM("rgb"),yne=xM("hsl"),wM=e=>{if(typeof e!="string")return;let r=e.trim().toLowerCase();if(!/^[0-9a-f]+$/.test(r))try{return _M(r)}catch(t){return}},vn=e=>e>0?e>1?1:e:0,gne={mode:"rgb",r:0,g:0,b:0,alpha:1},v5=e=>Math.round(e*255e6)/255e6,TM=e=>Et(ct({},e),{r:v5(e.r),g:v5(e.g),b:v5(e.b)}),Un=e=>cne(TM(e)),xne=e=>fne(TM(e)),bne=e=>{var r,t,a,n;return typeof e=="string"?`"${e}"`:bM(e)?`${(t=(r=e.constructor)==null?void 0:r.name)!=null?t:"Array"}(${e.length})`:typeof e=="object"?(n=(a=e.constructor)==null?void 0:a.name)!=null?n:"Object":`${typeof e} ${e}`},Gt=(e,r)=>{var a;let t=wM(e);return t?((a=t.alpha)!=null||(t.alpha=1),t):(!r&&e!=null&&hne(`Invalid color specifier: ${bne(e)}. Defaulting to "#000"`),gne)},Wc=e=>Un(Et(ct({},Gt(e)),{alpha:1})),_ne=e=>e?Gt(e).alpha:0,MM=e=>bM(e)&&e.length>2&&Number.isFinite(e[0])&&Number.isFinite(e[1])&&Number.isFinite(e[2]),wne=e=>{let[r,t,a,n]=e,i=Math.max(r,t,a)>1?1/255:1,l=n!=null?n:1;return{mode:"rgb",r:r*i,g:t*i,b:a*i,alpha:l>1?l/255:l}},Tne=(e,r)=>{let t=MM(e)?wne(e):Gt(e,!0),a=[vn(t.r),vn(t.g),vn(t.b),vn(t.alpha)];return r==="uint8"||r==="uint8_clamped"?Uint8Array.from(a,n=>Math.round(n*255)):r==="float32"?Float32Array.from(a):r==="float64"?Float64Array.from(a):a},Mne=(e,r)=>Un(Et(ct({},Gt(e)),{alpha:vn(r)})),AM=(e,r)=>{let t=Gt(e),a=t.alpha;if(a===1)return Un(t);let n=Gt(r||Zc),i=n.alpha,l=(o,s)=>(i===1?s:1-i+s*i)*(1-a)+o*a;return Un({mode:"rgb",r:l(t.r,n.r),g:l(t.g,n.g),b:l(t.b,n.b)})},Ane=(e,r,t)=>{let a=Gt(e),n=Gt(r),i=(l,o)=>t*l+(1-t)*o;return Un({mode:"rgb",r:i(a.r,n.r),g:i(a.g,n.g),b:i(a.b,n.b)})},d5=(e,r)=>{let t=Gt(e),a=yne(t)||{mode:"hsl",h:0,s:0,l:0};return Un(_M(Et(ct({},a),{l:vn((a.l*100+r)/100),alpha:t.alpha})))},vh=(e,r)=>vne(Gt(e),Gt(r)),kM=e=>vh(e,Zc)>vh(e,h5),kne=Un(Gt(Zc)),Lne=Un(Gt(h5)),Cne=(e,r,t)=>(Gt(e).alpha!==1&&(e=AM(e,Zc)),kM(e)?r?d5(e,r):kne:t?d5(e,-t):Lne),Sne=(e,r)=>{e.style({stroke:Wc(r),"stroke-opacity":Gt(r).alpha})},qne=(e,r)=>{e.style({fill:Wc(r),"fill-opacity":Gt(r).alpha})},Dne=(e,r)=>!!(e&&r&&Wc(e)===Wc(r)),Pne=e=>wM(e)!==void 0,Ene=(e,r)=>{r=r===0?0:r||10;let t=Gt(e),a=r/100;return Un(Et(ct({},t),{r:vn(t.r+a),g:vn(t.g+a),b:vn(t.b+a)}))},Rne=(e,r,t)=>{let a=Gt(e),n=Gt(r),i=t/100,l=n.alpha-a.alpha,o=2*i-1,s=((o*l===-1?o:(o+l)/(1+o*l))+1)/2,u=1-s,f=(c,v)=>u*c+s*v;return Un({mode:"rgb",r:f(a.r,n.r),g:f(a.g,n.g),b:f(a.b,n.b),alpha:a.alpha*(1-i)+n.alpha*i})},zne=(e,r=["#000","#fff"])=>{let t,a=-1/0;for(let n of r){let i=vh(e,n);i>a&&(a=i,t=Un(Gt(n)))}return t},Fne=e=>Un(Gt(e)),Nne=e=>xne(Gt(e)).toUpperCase(),Ine=e=>{let r=Gt(e);return[vn(r.r)*255,vn(r.g)*255,vn(r.b)*255,vn(r.alpha)]},Bne=([e,r,t,a])=>Un({mode:"rgb",r:e/255,g:r/255,b:t/255,alpha:a}),Hne=e=>{let r=Gt(e);return dne({mode:"rgb",r:vn(r.r),g:vn(r.g),b:vn(r.b)})};LM.exports={addOpacity:Mne,adjustLightness:d5,background:Zc,brighten:Ene,combine:AM,contrast:Cne,defaultLine:h5,defaults:pne,equals:Dne,fill:qne,hexString:Nne,interpolate:Ane,isChannelArray:MM,isDark:kM,isValid:Pne,lightLine:mne,luminosity:Hne,mix:Rne,mostReadable:zne,normalize:Tne,opacity:_ne,parse:Gt,rgb:Wc,rgbaArray:Ine,rgbaArrayToString:Bne,rgbaString:Fne,stroke:Sne,wcagContrast:vh}});var Hs=G((OTe,qM)=>{"use strict";var One=kr(),dh={Greys:[[0,"rgb(0,0,0)"],[1,"rgb(255,255,255)"]],YlGnBu:[[0,"rgb(8,29,88)"],[.125,"rgb(37,52,148)"],[.25,"rgb(34,94,168)"],[.375,"rgb(29,145,192)"],[.5,"rgb(65,182,196)"],[.625,"rgb(127,205,187)"],[.75,"rgb(199,233,180)"],[.875,"rgb(237,248,217)"],[1,"rgb(255,255,217)"]],Greens:[[0,"rgb(0,68,27)"],[.125,"rgb(0,109,44)"],[.25,"rgb(35,139,69)"],[.375,"rgb(65,171,93)"],[.5,"rgb(116,196,118)"],[.625,"rgb(161,217,155)"],[.75,"rgb(199,233,192)"],[.875,"rgb(229,245,224)"],[1,"rgb(247,252,245)"]],YlOrRd:[[0,"rgb(128,0,38)"],[.125,"rgb(189,0,38)"],[.25,"rgb(227,26,28)"],[.375,"rgb(252,78,42)"],[.5,"rgb(253,141,60)"],[.625,"rgb(254,178,76)"],[.75,"rgb(254,217,118)"],[.875,"rgb(255,237,160)"],[1,"rgb(255,255,204)"]],Bluered:[[0,"rgb(0,0,255)"],[1,"rgb(255,0,0)"]],RdBu:[[0,"rgb(5,10,172)"],[.35,"rgb(106,137,247)"],[.5,"rgb(190,190,190)"],[.6,"rgb(220,170,132)"],[.7,"rgb(230,145,90)"],[1,"rgb(178,10,28)"]],Reds:[[0,"rgb(220,220,220)"],[.2,"rgb(245,195,157)"],[.4,"rgb(245,160,105)"],[1,"rgb(178,10,28)"]],Blues:[[0,"rgb(5,10,172)"],[.35,"rgb(40,60,190)"],[.5,"rgb(70,100,245)"],[.6,"rgb(90,120,245)"],[.7,"rgb(106,137,247)"],[1,"rgb(220,220,220)"]],Picnic:[[0,"rgb(0,0,255)"],[.1,"rgb(51,153,255)"],[.2,"rgb(102,204,255)"],[.3,"rgb(153,204,255)"],[.4,"rgb(204,204,255)"],[.5,"rgb(255,255,255)"],[.6,"rgb(255,204,255)"],[.7,"rgb(255,153,255)"],[.8,"rgb(255,102,204)"],[.9,"rgb(255,102,102)"],[1,"rgb(255,0,0)"]],Rainbow:[[0,"rgb(150,0,90)"],[.125,"rgb(0,0,200)"],[.25,"rgb(0,25,255)"],[.375,"rgb(0,152,255)"],[.5,"rgb(44,255,150)"],[.625,"rgb(151,255,0)"],[.75,"rgb(255,234,0)"],[.875,"rgb(255,111,0)"],[1,"rgb(255,0,0)"]],Portland:[[0,"rgb(12,51,131)"],[.25,"rgb(10,136,186)"],[.5,"rgb(242,211,56)"],[.75,"rgb(242,143,56)"],[1,"rgb(217,30,30)"]],Jet:[[0,"rgb(0,0,131)"],[.125,"rgb(0,60,170)"],[.375,"rgb(5,255,255)"],[.625,"rgb(255,255,0)"],[.875,"rgb(250,0,0)"],[1,"rgb(128,0,0)"]],Hot:[[0,"rgb(0,0,0)"],[.3,"rgb(230,0,0)"],[.6,"rgb(255,210,0)"],[1,"rgb(255,255,255)"]],Blackbody:[[0,"rgb(0,0,0)"],[.2,"rgb(230,0,0)"],[.4,"rgb(230,210,0)"],[.7,"rgb(255,255,255)"],[1,"rgb(160,200,255)"]],Earth:[[0,"rgb(0,0,130)"],[.1,"rgb(0,180,180)"],[.2,"rgb(40,210,40)"],[.4,"rgb(230,230,50)"],[.6,"rgb(120,70,20)"],[1,"rgb(255,255,255)"]],Electric:[[0,"rgb(0,0,0)"],[.15,"rgb(30,0,100)"],[.4,"rgb(120,0,100)"],[.6,"rgb(160,90,0)"],[.8,"rgb(230,200,0)"],[1,"rgb(255,250,220)"]],Viridis:[[0,"#440154"],[.06274509803921569,"#48186a"],[.12549019607843137,"#472d7b"],[.18823529411764706,"#424086"],[.25098039215686274,"#3b528b"],[.3137254901960784,"#33638d"],[.3764705882352941,"#2c728e"],[.4392156862745098,"#26828e"],[.5019607843137255,"#21918c"],[.5647058823529412,"#1fa088"],[.6274509803921569,"#28ae80"],[.6901960784313725,"#3fbc73"],[.7529411764705882,"#5ec962"],[.8156862745098039,"#84d44b"],[.8784313725490196,"#addc30"],[.9411764705882353,"#d8e219"],[1,"#fde725"]],Cividis:[[0,"rgb(0,32,76)"],[.058824,"rgb(0,42,102)"],[.117647,"rgb(0,52,110)"],[.176471,"rgb(39,63,108)"],[.235294,"rgb(60,74,107)"],[.294118,"rgb(76,85,107)"],[.352941,"rgb(91,95,109)"],[.411765,"rgb(104,106,112)"],[.470588,"rgb(117,117,117)"],[.529412,"rgb(131,129,120)"],[.588235,"rgb(146,140,120)"],[.647059,"rgb(161,152,118)"],[.705882,"rgb(176,165,114)"],[.764706,"rgb(192,177,109)"],[.823529,"rgb(209,191,102)"],[.882353,"rgb(225,204,92)"],[.941176,"rgb(243,219,79)"],[1,"rgb(255,233,69)"]]},CM=dh.RdBu;function Yne(e,r){if(r||(r=CM),!e)return r;function t(){try{e=dh[e]||JSON.parse(e)}catch(a){e=r}}return typeof e=="string"&&(t(),typeof e=="string"&&t()),SM(e)?e:r}function SM(e){var r=0;if(!Array.isArray(e)||e.length<2||!e[0]||!e[e.length-1]||+e[0][0]!=0||+e[e.length-1][0]!=1)return!1;for(var t=0;tXne,HIDE_PLACEHOLDER:()=>Vne,SHOW_PLACEHOLDER:()=>Une});var Une,Vne,Xne,k0=Cr(()=>{"use strict";Une=100,Vne=1e3,Xne=.2});var Jc={};pt(Jc,{counter:()=>Os});function Os(e,r="",t,a){let n=r+(t?"":"$"),i=a===!1?"":"^";return e==="xy"?new RegExp(i+"x"+p5+"y"+p5+n):new RegExp(i+e+p5+n)}var p5,L0=Cr(()=>{"use strict";p5="([2-9]|[1-9][0-9]+)?"});var EM=G(Pn=>{"use strict";var m5=Gr(),DM=At().extendFlat,Wne=qn(),Zne=Hs(),y5=kr(),Jne=(k0(),Fe(A0)).DESELECTDIM,C0=Id(),PM=(L0(),Fe(Jc)).counter,$ne=(h0(),Fe(d0)).modHalf,Hi=Sn().isArrayOrTypedArray,Mo=Sn().isTypedArraySpec,Ao=Sn().decodeTypedArraySpec;Pn.valObjectMeta={data_array:{coerceFunction:function(e,r,t){r.set(Hi(e)?e:Mo(e)?Ao(e):t)}},enumerated:{coerceFunction:function(e,r,t,a){a.coerceNumber&&(e=+e),a.values.indexOf(e)===-1?r.set(t):r.set(e)},validateFunction:function(e,r){r.coerceNumber&&(e=+e);for(var t=r.values,a=0;ai===!0||i===!1;n(e)||a.arrayOk&&Array.isArray(e)&&e.length>0&&e.every(n)?r.set(e):r.set(t)}},number:{coerceFunction:function(e,r,t,a){Mo(e)&&(e=Ao(e)),!m5(e)||a.min!==void 0&&ea.max?r.set(t):r.set(+e)}},integer:{coerceFunction:function(e,r,t,a){if((a.extras||[]).indexOf(e)!==-1){r.set(e);return}Mo(e)&&(e=Ao(e)),e%1||!m5(e)||a.min!==void 0&&ea.max?r.set(t):r.set(+e)}},string:{coerceFunction:function(e,r,t,a){if(typeof e!="string"){var n=typeof e=="number";a.strict===!0||!n?r.set(t):r.set(String(e))}else a.noBlank&&!e?r.set(t):r.set(e)}},color:{coerceFunction:function(e,r,t){Mo(e)&&(e=Ao(e)),y5.isValid(e)?r.set(e):r.set(t)}},colorlist:{coerceFunction:function(e,r,t){!Array.isArray(e)||!e.length?r.set(t):e.every(a=>y5.isValid(a))?r.set(e):r.set(t)}},colorscale:{coerceFunction:function(e,r,t){r.set(Zne.get(e,t))}},angle:{coerceFunction:function(e,r,t){Mo(e)&&(e=Ao(e)),e==="auto"?r.set("auto"):m5(e)?r.set($ne(+e,360)):r.set(t)}},subplotid:{coerceFunction:function(e,r,t,a){var n=a.regex||PM(t);let i=l=>typeof l=="string"&&n.test(l);i(e)||a.arrayOk&&Hi(e)&&e.length>0&&e.every(i)?r.set(e):r.set(t)},validateFunction:function(e,r){var t=r.dflt;return e===t?!0:typeof e!="string"?!1:!!PM(t).test(e)}},flaglist:{coerceFunction:function(e,r,t,a){if((a.extras||[]).indexOf(e)!==-1){r.set(e);return}if(typeof e!="string"){r.set(t);return}for(var n=e.split("+"),i=0;i{"use strict";RM.exports=function(){}});var g5=G((UTe,zM)=>{"use strict";zM.exports=function(r,t){if(t instanceof RegExp){for(var a=t.toString(),n=0;n{FM.exports=Kne;function Kne(){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}});var BM=G((XTe,IM)=>{IM.exports=jne;function jne(e){var r=new Float32Array(16);return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4],r[5]=e[5],r[6]=e[6],r[7]=e[7],r[8]=e[8],r[9]=e[9],r[10]=e[10],r[11]=e[11],r[12]=e[12],r[13]=e[13],r[14]=e[14],r[15]=e[15],r}});var OM=G((WTe,HM)=>{HM.exports=Qne;function Qne(e,r){return e[0]=r[0],e[1]=r[1],e[2]=r[2],e[3]=r[3],e[4]=r[4],e[5]=r[5],e[6]=r[6],e[7]=r[7],e[8]=r[8],e[9]=r[9],e[10]=r[10],e[11]=r[11],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15],e}});var x5=G((ZTe,YM)=>{YM.exports=eie;function eie(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}});var UM=G((JTe,GM)=>{GM.exports=rie;function rie(e,r){if(e===r){var t=r[1],a=r[2],n=r[3],i=r[6],l=r[7],o=r[11];e[1]=r[4],e[2]=r[8],e[3]=r[12],e[4]=t,e[6]=r[9],e[7]=r[13],e[8]=a,e[9]=i,e[11]=r[14],e[12]=n,e[13]=l,e[14]=o}else e[0]=r[0],e[1]=r[4],e[2]=r[8],e[3]=r[12],e[4]=r[1],e[5]=r[5],e[6]=r[9],e[7]=r[13],e[8]=r[2],e[9]=r[6],e[10]=r[10],e[11]=r[14],e[12]=r[3],e[13]=r[7],e[14]=r[11],e[15]=r[15];return e}});var XM=G(($Te,VM)=>{VM.exports=tie;function tie(e,r){var t=r[0],a=r[1],n=r[2],i=r[3],l=r[4],o=r[5],s=r[6],u=r[7],f=r[8],c=r[9],v=r[10],h=r[11],p=r[12],m=r[13],y=r[14],x=r[15],_=t*o-a*l,w=t*s-n*l,b=t*u-i*l,M=a*s-n*o,A=a*u-i*o,k=n*u-i*s,S=f*m-c*p,D=f*y-v*p,P=f*x-h*p,R=c*y-v*m,F=c*x-h*m,B=v*x-h*y,H=_*B-w*F+b*R+M*P-A*D+k*S;return H?(H=1/H,e[0]=(o*B-s*F+u*R)*H,e[1]=(n*F-a*B-i*R)*H,e[2]=(m*k-y*A+x*M)*H,e[3]=(v*A-c*k-h*M)*H,e[4]=(s*P-l*B-u*D)*H,e[5]=(t*B-n*P+i*D)*H,e[6]=(y*b-p*k-x*w)*H,e[7]=(f*k-v*b+h*w)*H,e[8]=(l*F-o*P+u*S)*H,e[9]=(a*P-t*F-i*S)*H,e[10]=(p*A-m*b+x*_)*H,e[11]=(c*b-f*A-h*_)*H,e[12]=(o*D-l*R-s*S)*H,e[13]=(t*R-a*D+n*S)*H,e[14]=(m*w-p*M-y*_)*H,e[15]=(f*M-c*w+v*_)*H,e):null}});var ZM=G((KTe,WM)=>{WM.exports=aie;function aie(e,r){var t=r[0],a=r[1],n=r[2],i=r[3],l=r[4],o=r[5],s=r[6],u=r[7],f=r[8],c=r[9],v=r[10],h=r[11],p=r[12],m=r[13],y=r[14],x=r[15];return e[0]=o*(v*x-h*y)-c*(s*x-u*y)+m*(s*h-u*v),e[1]=-(a*(v*x-h*y)-c*(n*x-i*y)+m*(n*h-i*v)),e[2]=a*(s*x-u*y)-o*(n*x-i*y)+m*(n*u-i*s),e[3]=-(a*(s*h-u*v)-o*(n*h-i*v)+c*(n*u-i*s)),e[4]=-(l*(v*x-h*y)-f*(s*x-u*y)+p*(s*h-u*v)),e[5]=t*(v*x-h*y)-f*(n*x-i*y)+p*(n*h-i*v),e[6]=-(t*(s*x-u*y)-l*(n*x-i*y)+p*(n*u-i*s)),e[7]=t*(s*h-u*v)-l*(n*h-i*v)+f*(n*u-i*s),e[8]=l*(c*x-h*m)-f*(o*x-u*m)+p*(o*h-u*c),e[9]=-(t*(c*x-h*m)-f*(a*x-i*m)+p*(a*h-i*c)),e[10]=t*(o*x-u*m)-l*(a*x-i*m)+p*(a*u-i*o),e[11]=-(t*(o*h-u*c)-l*(a*h-i*c)+f*(a*u-i*o)),e[12]=-(l*(c*y-v*m)-f*(o*y-s*m)+p*(o*v-s*c)),e[13]=t*(c*y-v*m)-f*(a*y-n*m)+p*(a*v-n*c),e[14]=-(t*(o*y-s*m)-l*(a*y-n*m)+p*(a*s-n*o)),e[15]=t*(o*v-s*c)-l*(a*v-n*c)+f*(a*s-n*o),e}});var $M=G((jTe,JM)=>{JM.exports=nie;function nie(e){var r=e[0],t=e[1],a=e[2],n=e[3],i=e[4],l=e[5],o=e[6],s=e[7],u=e[8],f=e[9],c=e[10],v=e[11],h=e[12],p=e[13],m=e[14],y=e[15],x=r*l-t*i,_=r*o-a*i,w=r*s-n*i,b=t*o-a*l,M=t*s-n*l,A=a*s-n*o,k=u*p-f*h,S=u*m-c*h,D=u*y-v*h,P=f*m-c*p,R=f*y-v*p,F=c*y-v*m;return x*F-_*R+w*P+b*D-M*S+A*k}});var jM=G((QTe,KM)=>{KM.exports=iie;function iie(e,r,t){var a=r[0],n=r[1],i=r[2],l=r[3],o=r[4],s=r[5],u=r[6],f=r[7],c=r[8],v=r[9],h=r[10],p=r[11],m=r[12],y=r[13],x=r[14],_=r[15],w=t[0],b=t[1],M=t[2],A=t[3];return e[0]=w*a+b*o+M*c+A*m,e[1]=w*n+b*s+M*v+A*y,e[2]=w*i+b*u+M*h+A*x,e[3]=w*l+b*f+M*p+A*_,w=t[4],b=t[5],M=t[6],A=t[7],e[4]=w*a+b*o+M*c+A*m,e[5]=w*n+b*s+M*v+A*y,e[6]=w*i+b*u+M*h+A*x,e[7]=w*l+b*f+M*p+A*_,w=t[8],b=t[9],M=t[10],A=t[11],e[8]=w*a+b*o+M*c+A*m,e[9]=w*n+b*s+M*v+A*y,e[10]=w*i+b*u+M*h+A*x,e[11]=w*l+b*f+M*p+A*_,w=t[12],b=t[13],M=t[14],A=t[15],e[12]=w*a+b*o+M*c+A*m,e[13]=w*n+b*s+M*v+A*y,e[14]=w*i+b*u+M*h+A*x,e[15]=w*l+b*f+M*p+A*_,e}});var eA=G((eMe,QM)=>{QM.exports=lie;function lie(e,r,t){var a=t[0],n=t[1],i=t[2],l,o,s,u,f,c,v,h,p,m,y,x;return r===e?(e[12]=r[0]*a+r[4]*n+r[8]*i+r[12],e[13]=r[1]*a+r[5]*n+r[9]*i+r[13],e[14]=r[2]*a+r[6]*n+r[10]*i+r[14],e[15]=r[3]*a+r[7]*n+r[11]*i+r[15]):(l=r[0],o=r[1],s=r[2],u=r[3],f=r[4],c=r[5],v=r[6],h=r[7],p=r[8],m=r[9],y=r[10],x=r[11],e[0]=l,e[1]=o,e[2]=s,e[3]=u,e[4]=f,e[5]=c,e[6]=v,e[7]=h,e[8]=p,e[9]=m,e[10]=y,e[11]=x,e[12]=l*a+f*n+p*i+r[12],e[13]=o*a+c*n+m*i+r[13],e[14]=s*a+v*n+y*i+r[14],e[15]=u*a+h*n+x*i+r[15]),e}});var tA=G((rMe,rA)=>{rA.exports=oie;function oie(e,r,t){var a=t[0],n=t[1],i=t[2];return e[0]=r[0]*a,e[1]=r[1]*a,e[2]=r[2]*a,e[3]=r[3]*a,e[4]=r[4]*n,e[5]=r[5]*n,e[6]=r[6]*n,e[7]=r[7]*n,e[8]=r[8]*i,e[9]=r[9]*i,e[10]=r[10]*i,e[11]=r[11]*i,e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15],e}});var nA=G((tMe,aA)=>{aA.exports=sie;function sie(e,r,t,a){var n=a[0],i=a[1],l=a[2],o=Math.sqrt(n*n+i*i+l*l),s,u,f,c,v,h,p,m,y,x,_,w,b,M,A,k,S,D,P,R,F,B,H,N;return Math.abs(o)<1e-6?null:(o=1/o,n*=o,i*=o,l*=o,s=Math.sin(t),u=Math.cos(t),f=1-u,c=r[0],v=r[1],h=r[2],p=r[3],m=r[4],y=r[5],x=r[6],_=r[7],w=r[8],b=r[9],M=r[10],A=r[11],k=n*n*f+u,S=i*n*f+l*s,D=l*n*f-i*s,P=n*i*f-l*s,R=i*i*f+u,F=l*i*f+n*s,B=n*l*f+i*s,H=i*l*f-n*s,N=l*l*f+u,e[0]=c*k+m*S+w*D,e[1]=v*k+y*S+b*D,e[2]=h*k+x*S+M*D,e[3]=p*k+_*S+A*D,e[4]=c*P+m*R+w*F,e[5]=v*P+y*R+b*F,e[6]=h*P+x*R+M*F,e[7]=p*P+_*R+A*F,e[8]=c*B+m*H+w*N,e[9]=v*B+y*H+b*N,e[10]=h*B+x*H+M*N,e[11]=p*B+_*H+A*N,r!==e&&(e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e)}});var lA=G((aMe,iA)=>{iA.exports=uie;function uie(e,r,t){var a=Math.sin(t),n=Math.cos(t),i=r[4],l=r[5],o=r[6],s=r[7],u=r[8],f=r[9],c=r[10],v=r[11];return r!==e&&(e[0]=r[0],e[1]=r[1],e[2]=r[2],e[3]=r[3],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e[4]=i*n+u*a,e[5]=l*n+f*a,e[6]=o*n+c*a,e[7]=s*n+v*a,e[8]=u*n-i*a,e[9]=f*n-l*a,e[10]=c*n-o*a,e[11]=v*n-s*a,e}});var sA=G((nMe,oA)=>{oA.exports=fie;function fie(e,r,t){var a=Math.sin(t),n=Math.cos(t),i=r[0],l=r[1],o=r[2],s=r[3],u=r[8],f=r[9],c=r[10],v=r[11];return r!==e&&(e[4]=r[4],e[5]=r[5],e[6]=r[6],e[7]=r[7],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e[0]=i*n-u*a,e[1]=l*n-f*a,e[2]=o*n-c*a,e[3]=s*n-v*a,e[8]=i*a+u*n,e[9]=l*a+f*n,e[10]=o*a+c*n,e[11]=s*a+v*n,e}});var fA=G((iMe,uA)=>{uA.exports=cie;function cie(e,r,t){var a=Math.sin(t),n=Math.cos(t),i=r[0],l=r[1],o=r[2],s=r[3],u=r[4],f=r[5],c=r[6],v=r[7];return r!==e&&(e[8]=r[8],e[9]=r[9],e[10]=r[10],e[11]=r[11],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e[0]=i*n+u*a,e[1]=l*n+f*a,e[2]=o*n+c*a,e[3]=s*n+v*a,e[4]=u*n-i*a,e[5]=f*n-l*a,e[6]=c*n-o*a,e[7]=v*n-s*a,e}});var vA=G((lMe,cA)=>{cA.exports=vie;function vie(e,r,t){var a,n,i,l=t[0],o=t[1],s=t[2],u=Math.sqrt(l*l+o*o+s*s);return Math.abs(u)<1e-6?null:(u=1/u,l*=u,o*=u,s*=u,a=Math.sin(r),n=Math.cos(r),i=1-n,e[0]=l*l*i+n,e[1]=o*l*i+s*a,e[2]=s*l*i-o*a,e[3]=0,e[4]=l*o*i-s*a,e[5]=o*o*i+n,e[6]=s*o*i+l*a,e[7]=0,e[8]=l*s*i+o*a,e[9]=o*s*i-l*a,e[10]=s*s*i+n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e)}});var hA=G((oMe,dA)=>{dA.exports=die;function die(e,r,t){var a=r[0],n=r[1],i=r[2],l=r[3],o=a+a,s=n+n,u=i+i,f=a*o,c=a*s,v=a*u,h=n*s,p=n*u,m=i*u,y=l*o,x=l*s,_=l*u;return e[0]=1-(h+m),e[1]=c+_,e[2]=v-x,e[3]=0,e[4]=c-_,e[5]=1-(f+m),e[6]=p+y,e[7]=0,e[8]=v+x,e[9]=p-y,e[10]=1-(f+h),e[11]=0,e[12]=t[0],e[13]=t[1],e[14]=t[2],e[15]=1,e}});var mA=G((sMe,pA)=>{pA.exports=hie;function hie(e,r){return e[0]=r[0],e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=r[1],e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=r[2],e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var gA=G((uMe,yA)=>{yA.exports=pie;function pie(e,r){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]=r[0],e[13]=r[1],e[14]=r[2],e[15]=1,e}});var bA=G((fMe,xA)=>{xA.exports=mie;function mie(e,r){var t=Math.sin(r),a=Math.cos(r);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=a,e[6]=t,e[7]=0,e[8]=0,e[9]=-t,e[10]=a,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var wA=G((cMe,_A)=>{_A.exports=yie;function yie(e,r){var t=Math.sin(r),a=Math.cos(r);return e[0]=a,e[1]=0,e[2]=-t,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=t,e[9]=0,e[10]=a,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var MA=G((vMe,TA)=>{TA.exports=gie;function gie(e,r){var t=Math.sin(r),a=Math.cos(r);return e[0]=a,e[1]=t,e[2]=0,e[3]=0,e[4]=-t,e[5]=a,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}});var kA=G((dMe,AA)=>{AA.exports=xie;function xie(e,r){var t=r[0],a=r[1],n=r[2],i=r[3],l=t+t,o=a+a,s=n+n,u=t*l,f=a*l,c=a*o,v=n*l,h=n*o,p=n*s,m=i*l,y=i*o,x=i*s;return e[0]=1-c-p,e[1]=f+x,e[2]=v-y,e[3]=0,e[4]=f-x,e[5]=1-u-p,e[6]=h+m,e[7]=0,e[8]=v+y,e[9]=h-m,e[10]=1-u-c,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var CA=G((hMe,LA)=>{LA.exports=bie;function bie(e,r,t,a,n,i,l){var o=1/(t-r),s=1/(n-a),u=1/(i-l);return e[0]=i*2*o,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=i*2*s,e[6]=0,e[7]=0,e[8]=(t+r)*o,e[9]=(n+a)*s,e[10]=(l+i)*u,e[11]=-1,e[12]=0,e[13]=0,e[14]=l*i*2*u,e[15]=0,e}});var qA=G((pMe,SA)=>{SA.exports=_ie;function _ie(e,r,t,a,n){var i=1/Math.tan(r/2),l=1/(a-n);return e[0]=i/t,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=i,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=(n+a)*l,e[11]=-1,e[12]=0,e[13]=0,e[14]=2*n*a*l,e[15]=0,e}});var PA=G((mMe,DA)=>{DA.exports=wie;function wie(e,r,t,a){var n=Math.tan(r.upDegrees*Math.PI/180),i=Math.tan(r.downDegrees*Math.PI/180),l=Math.tan(r.leftDegrees*Math.PI/180),o=Math.tan(r.rightDegrees*Math.PI/180),s=2/(l+o),u=2/(n+i);return e[0]=s,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=u,e[6]=0,e[7]=0,e[8]=-((l-o)*s*.5),e[9]=(n-i)*u*.5,e[10]=a/(t-a),e[11]=-1,e[12]=0,e[13]=0,e[14]=a*t/(t-a),e[15]=0,e}});var RA=G((yMe,EA)=>{EA.exports=Tie;function Tie(e,r,t,a,n,i,l){var o=1/(r-t),s=1/(a-n),u=1/(i-l);return e[0]=-2*o,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*s,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*u,e[11]=0,e[12]=(r+t)*o,e[13]=(n+a)*s,e[14]=(l+i)*u,e[15]=1,e}});var FA=G((gMe,zA)=>{var Mie=x5();zA.exports=Aie;function Aie(e,r,t,a){var n,i,l,o,s,u,f,c,v,h,p=r[0],m=r[1],y=r[2],x=a[0],_=a[1],w=a[2],b=t[0],M=t[1],A=t[2];return Math.abs(p-b)<1e-6&&Math.abs(m-M)<1e-6&&Math.abs(y-A)<1e-6?Mie(e):(f=p-b,c=m-M,v=y-A,h=1/Math.sqrt(f*f+c*c+v*v),f*=h,c*=h,v*=h,n=_*v-w*c,i=w*f-x*v,l=x*c-_*f,h=Math.sqrt(n*n+i*i+l*l),h?(h=1/h,n*=h,i*=h,l*=h):(n=0,i=0,l=0),o=c*l-v*i,s=v*n-f*l,u=f*i-c*n,h=Math.sqrt(o*o+s*s+u*u),h?(h=1/h,o*=h,s*=h,u*=h):(o=0,s=0,u=0),e[0]=n,e[1]=o,e[2]=f,e[3]=0,e[4]=i,e[5]=s,e[6]=c,e[7]=0,e[8]=l,e[9]=u,e[10]=v,e[11]=0,e[12]=-(n*p+i*m+l*y),e[13]=-(o*p+s*m+u*y),e[14]=-(f*p+c*m+v*y),e[15]=1,e)}});var IA=G((xMe,NA)=>{NA.exports=kie;function kie(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]+")"}});var b5=G((bMe,BA)=>{BA.exports={create:NM(),clone:BM(),copy:OM(),identity:x5(),transpose:UM(),invert:XM(),adjoint:ZM(),determinant:$M(),multiply:jM(),translate:eA(),scale:tA(),rotate:nA(),rotateX:lA(),rotateY:sA(),rotateZ:fA(),fromRotation:vA(),fromRotationTranslation:hA(),fromScaling:mA(),fromTranslation:gA(),fromXRotation:bA(),fromYRotation:wA(),fromZRotation:MA(),fromQuat:kA(),frustum:CA(),perspective:qA(),perspectiveFromFieldOfView:PA(),ortho:RA(),lookAt:FA(),str:IA()}});var mh=G(aa=>{"use strict";var Lie=b5();aa.init2dArray=function(e,r){for(var t=new Array(e),a=0;a{"use strict";var Cie=Er(),HA=To(),Sie=mh(),qie=b5();function Die(e){var r;if(typeof e=="string"){if(r=document.getElementById(e),r===null)throw new Error("No DOM element with id '"+e+"' exists on the page.");return r}else if(e==null)throw new Error("DOM element provided is null or undefined");return e}function Pie(e){var r=Cie.select(e);return r.node()instanceof HTMLElement&&r.size()&&r.classed("js-plotly-plot")}function OA(e){var r=e&&e.parentNode;r&&r.removeChild(e)}function Eie(e,r){YA("global",e,r)}function YA(e,r,t){var a="plotly.js-style-"+e,n=document.getElementById(a);if(!(n&&n.matches(".no-inline-styles"))){n||(n=document.createElement("style"),n.setAttribute("id",a),n.appendChild(document.createTextNode("")),document.head.appendChild(n));var i=n.sheet;i?i.insertRule?i.insertRule(r+"{"+t+"}",0):i.addRule?i.addRule(r,t,0):HA.warn("addStyleRule failed"):HA.warn("Cannot addRelatedStyleRule, probably due to strict CSP...")}}function Rie(e){var r="plotly.js-style-"+e,t=document.getElementById(r);t&&OA(t)}function zie(e,r,t,a,n,i){var l=a.split(":"),o=n.split(":"),s="data-btn-style-event-added";i||(i=document),i.querySelectorAll(e).forEach(function(u){u._hoverStyle={activeStyleParts:l,inactiveStyleParts:o},u.getAttribute(s)||(u.addEventListener("mouseenter",function(){var f=this._hoverStyle,c=this.querySelector(t);c&&(c.style[f.activeStyleParts[0]]=f.activeStyleParts[1])}),u.addEventListener("mouseleave",function(){var f=this._hoverStyle,c=this.querySelector(t);c&&(r&&this.matches(r)?c.style[f.activeStyleParts[0]]=f.activeStyleParts[1]:c.style[f.inactiveStyleParts[0]]=f.inactiveStyleParts[1])}),u.setAttribute(s,!0))})}function Fie(e){var r=UA(e),t=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];return r.forEach(function(a){var n=GA(a);if(n){var i=Sie.convertCssMatrix(n);t=qie.multiply(t,t,i)}}),t}function GA(e){var r=window.getComputedStyle(e,null),t=r.getPropertyValue("-webkit-transform")||r.getPropertyValue("-moz-transform")||r.getPropertyValue("-ms-transform")||r.getPropertyValue("-o-transform")||r.getPropertyValue("transform");return t==="none"?null:t.replace("matrix","").replace("3d","").slice(1,-1).split(",").map(function(a){return+a})}function UA(e){for(var r=[];Nie(e);)r.push(e),e=e.parentNode,typeof ShadowRoot=="function"&&e instanceof ShadowRoot&&(e=e.host);return r}function Nie(e){return e&&(e instanceof Element||e instanceof HTMLElement)}function Iie(e,r){return e&&r&&e.top===r.top&&e.left===r.left&&e.right===r.right&&e.bottom===r.bottom}VA.exports={getGraphDiv:Die,isPlotDiv:Pie,removeElement:OA,addStyleRule:Eie,addRelatedStyleRule:YA,deleteRelatedStyleRule:Rie,setStyleOnHover:zie,getFullTransformMatrix:Fie,getElementTransformMatrix:GA,getElementAndAncestors:UA,equalDomRects:Iie}});var Kc=G((TMe,XA)=>{"use strict";XA.exports={mode:{valType:"enumerated",dflt:"afterall",values:["immediate","next","afterall"]},direction:{valType:"enumerated",values:["forward","reverse"],dflt:"forward"},fromcurrent:{valType:"boolean",dflt:!1},frame:{duration:{valType:"number",min:0,dflt:500},redraw:{valType:"boolean",dflt:!0}},transition:{duration:{valType:"number",min:0,dflt:500,editType:"none"},easing:{valType:"enumerated",dflt:"cubic-in-out",values:["linear","quad","cubic","sin","exp","circle","elastic","back","bounce","linear-in","quad-in","cubic-in","sin-in","exp-in","circle-in","elastic-in","back-in","bounce-in","linear-out","quad-out","cubic-out","sin-out","exp-out","circle-out","elastic-out","back-out","bounce-out","linear-in-out","quad-in-out","cubic-in-out","sin-in-out","exp-in-out","circle-in-out","elastic-in-out","back-in-out","bounce-in-out"],editType:"none"},ordering:{valType:"enumerated",values:["layout first","traces first"],dflt:"layout first",editType:"none"}}}});var Oi=G((MMe,QA)=>{"use strict";var ZA=At().extendFlat,Bie=qs(),JA={valType:"flaglist",extras:["none"],flags:["calc","clearAxisTypes","plot","style","markerSize","colorbars"]},$A={valType:"flaglist",extras:["none"],flags:["calc","plot","legend","ticks","axrange","layoutstyle","modebar","camera","arraydraw","colorbars"]},Hie=JA.flags.slice().concat(["fullReplot"]),Oie=$A.flags.slice().concat("layoutReplot");QA.exports={traces:JA,layout:$A,traceFlags:function(){return WA(Hie)},layoutFlags:function(){return WA(Oie)},update:function(e,r){var t=r.editType;if(t&&t!=="none")for(var a=t.split("+"),n=0;n{"use strict";_5.dash={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",editType:"style"};_5.pattern={shape:{valType:"enumerated",values:["","/","\\","x","-","|","+","."],dflt:"",arrayOk:!0,editType:"style"},path:{valType:"string",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"}});var w5={};pt(w5,{DATE_FORMAT_LINK:()=>Gie,FORMAT_LINK:()=>Yie});var Yie,Gie,T5=Cr(()=>{"use strict";Yie="https://github.com/d3/d3-format/tree/v1.4.5#d3-format",Gie="https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format"});var Vn=G(S0=>{"use strict";var{DATE_FORMAT_LINK:Uie,FORMAT_LINK:Vie}=(T5(),Fe(w5)),Xie=["Variables that can't be found will be replaced with the specifier.",'For example, a template of "data: %{x}, %{y}" will result in a value of "data: 1, %{y}" if x is 1 and y is missing.',"Variables with an undefined value will be replaced with the fallback value."].join(" ");function Wie({supportOther:e}={}){return["Variables are inserted using %{variable},",'for example "y: %{y}"'+(e?" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown.":"."),`Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}".`,Vie,"for details on the formatting syntax.",`Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}".`,Uie,"for details on the date formatting syntax.",Xie].join(" ")}S0.templateFormatStringDescription=Wie;S0.hovertemplateAttrs=({editType:e="none",arrayOk:r}={},t={})=>ct({valType:"string",dflt:"",editType:e},r!==!1?{arrayOk:!0}:{});S0.texttemplateAttrs=({editType:e="calc",arrayOk:r}={},t={})=>ct({valType:"string",dflt:"",editType:e},r!==!1?{arrayOk:!0}:{});S0.shapeTexttemplateAttrs=({editType:e="arraydraw",newshape:r}={},t={})=>({valType:"string",dflt:"",editType:e});S0.templatefallbackAttrs=({editType:e="none"}={})=>({valType:"any",dflt:"-",editType:e})});var xh=G((CMe,ik)=>{"use strict";function ko(e,r){return r?r.d2l(e):e}function ek(e,r){return r?r.l2d(e):e}function Zie(e){return e.x0}function Jie(e){return e.x1}function $ie(e){return e.y0}function Kie(e){return e.y1}function rk(e){return e.x0shift||0}function tk(e){return e.x1shift||0}function ak(e){return e.y0shift||0}function nk(e){return e.y1shift||0}function yh(e,r){return ko(e.x1,r)+tk(e)-ko(e.x0,r)-rk(e)}function gh(e,r,t){return ko(e.y1,t)+nk(e)-ko(e.y0,t)-ak(e)}function jie(e,r){return Math.abs(yh(e,r))}function Qie(e,r,t){return Math.abs(gh(e,r,t))}function ele(e,r,t){return e.type!=="line"?void 0:Math.sqrt(Math.pow(yh(e,r),2)+Math.pow(gh(e,r,t),2))}function rle(e,r){return ek((ko(e.x1,r)+tk(e)+ko(e.x0,r)+rk(e))/2,r)}function tle(e,r,t){return ek((ko(e.y1,t)+nk(e)+ko(e.y0,t)+ak(e))/2,t)}function ale(e,r,t){return e.type!=="line"?void 0:gh(e,r,t)/yh(e,r)}var nle=["x0","x1","y0","y1","dy","height","ycenter"],ile=["x0","x1","y0","y1","dx","width","xcenter"];ik.exports={x0:Zie,x1:Jie,y0:$ie,y1:Kie,slope:ale,dx:yh,dy:gh,width:jie,height:Qie,length:ele,xcenter:rle,ycenter:tle,simpleXVariables:nle,simpleYVariables:ile}});var sk=G((SMe,ok)=>{"use strict";var lle=Oi().overrideAll,Ys=qn(),lk=Ta(),ole=Yi().dash,Lo=At().extendFlat,{shapeTexttemplateAttrs:sle,templatefallbackAttrs:ule}=Vn(),fle=xh();ok.exports=lle({newshape:{visible:Lo({},Ys.visible,{}),showlegend:{valType:"boolean",dflt:!1},legend:Lo({},Ys.legend,{}),legendgroup:Lo({},Ys.legendgroup,{}),legendgrouptitle:{text:Lo({},Ys.legendgrouptitle.text,{}),font:lk({})},legendrank:Lo({},Ys.legendrank,{}),legendwidth:Lo({},Ys.legendwidth,{}),line:{color:{valType:"color"},width:{valType:"number",min:0,dflt:4},dash:Lo({},ole,{dflt:"solid"})},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd"},opacity:{valType:"number",min:0,max:1,dflt:1},layer:{valType:"enumerated",values:["below","above","between"],dflt:"above"},drawdirection:{valType:"enumerated",values:["ortho","horizontal","vertical","diagonal"],dflt:"diagonal"},name:Lo({},Ys.name,{}),label:{text:{valType:"string",dflt:""},texttemplate:sle({newshape:!0},{keys:Object.keys(fle)}),texttemplatefallback:ule({editType:"arraydraw"}),font:lk({}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"]},textangle:{valType:"angle",dflt:"auto"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto"},yanchor:{valType:"enumerated",values:["top","middle","bottom"]},padding:{valType:"number",dflt:3,min:0}}},activeshape:{fillcolor:{valType:"color",dflt:"rgb(255,0,255)",description:"Sets the color filling the active shape' interior."},opacity:{valType:"number",min:0,max:1,dflt:.5}}},"none","from-root")});var fk=G((qMe,uk)=>{"use strict";var cle=Yi().dash,vle=At().extendFlat;uk.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:vle({},cle,{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"}}});var bh=G((DMe,ck)=>{"use strict";ck.exports=function(e){var r=e.editType;return{t:{valType:"number",dflt:0,editType:r},r:{valType:"number",dflt:0,editType:r},b:{valType:"number",dflt:0,editType:r},l:{valType:"number",dflt:0,editType:r},editType:r}}});var q0=G((PMe,pk)=>{"use strict";var M5=Ta(),dle=Kc(),_h=vi(),vk=sk(),dk=fk(),hle=bh(),hk=At().extendFlat,wh=M5({editType:"calc"});wh.family.dflt='"Open Sans", verdana, arial, sans-serif';wh.size.dflt=12;wh.color.dflt=_h.defaultLine;pk.exports={font:wh,title:{text:{valType:"string",editType:"layoutstyle"},font:M5({editType:"layoutstyle"}),subtitle:{text:{valType:"string",editType:"layoutstyle"},font:M5({editType:"layoutstyle"}),editType:"layoutstyle"},xref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle"},yref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle"},x:{valType:"number",min:0,max:1,dflt:.5,editType:"layoutstyle"},y:{valType:"number",min:0,max:1,dflt:"auto",editType:"layoutstyle"},xanchor:{valType:"enumerated",dflt:"auto",values:["auto","left","center","right"],editType:"layoutstyle"},yanchor:{valType:"enumerated",dflt:"auto",values:["auto","top","middle","bottom"],editType:"layoutstyle"},pad:hk(hle({editType:"layoutstyle"}),{}),automargin:{valType:"boolean",dflt:!1,editType:"plot"},editType:"layoutstyle"},uniformtext:{mode:{valType:"enumerated",values:[!1,"hide","show"],dflt:!1,editType:"plot"},minsize:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"},autosize:{valType:"boolean",dflt:!1,editType:"none"},width:{valType:"number",min:10,dflt:700,editType:"plot"},height:{valType:"number",min:10,dflt:450,editType:"plot"},minreducedwidth:{valType:"number",min:2,dflt:64,editType:"plot"},minreducedheight:{valType:"number",min:2,dflt:64,editType:"plot"},margin:{l:{valType:"number",min:0,dflt:80,editType:"plot"},r:{valType:"number",min:0,dflt:80,editType:"plot"},t:{valType:"number",min:0,dflt:100,editType:"plot"},b:{valType:"number",min:0,dflt:80,editType:"plot"},pad:{valType:"number",min:0,dflt:0,editType:"plot"},autoexpand:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},computed:{valType:"any",editType:"none"},paper_bgcolor:{valType:"color",dflt:_h.background,editType:"plot"},plot_bgcolor:{valType:"color",dflt:_h.background,editType:"layoutstyle"},autotypenumbers:{valType:"enumerated",values:["convert types","strict"],dflt:"convert types",editType:"calc"},separators:{valType:"string",editType:"plot"},showlegend:{valType:"boolean",editType:"legend"},colorway:{valType:"colorlist",dflt:_h.defaults,editType:"calc"},datarevision:{valType:"any",editType:"calc"},uirevision:{valType:"any",editType:"none"},editrevision:{valType:"any",editType:"none"},selectionrevision:{valType:"any",editType:"none"},template:{valType:"any",editType:"calc"},newshape:vk.newshape,activeshape:vk.activeshape,newselection:dk.newselection,activeselection:dk.activeselection,meta:{valType:"any",arrayOk:!0,editType:"plot"},transition:hk({},dle.transition,{editType:"none"})}});var mk=G(()=>{(function(){if(!document.getElementById("9f215cf04c5486422605d13261cb87401f4e7763b6296af81e98efbc0130da53")){var e=document.createElement("style");e.id="9f215cf04c5486422605d13261cb87401f4e7763b6296af81e98efbc0130da53",e.textContent='.maplibregl-map{font:12px/20px Helvetica Neue,Arial,Helvetica,sans-serif;overflow:hidden;position:relative;-webkit-tap-highlight-color:rgb(0 0 0/0);-webkit-touch-callout:none}.maplibregl-canvas{position:absolute;left:0;top:0}.maplibregl-map:fullscreen{width:100%;height:100%}.maplibregl-ctrl-group button.maplibregl-ctrl-compass{touch-action:none}.maplibregl-canvas-container.maplibregl-interactive,.maplibregl-ctrl-group button.maplibregl-ctrl-compass{cursor:grab;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-canvas-container.maplibregl-interactive.maplibregl-track-pointer{cursor:pointer}.maplibregl-canvas-container.maplibregl-interactive:active,.maplibregl-ctrl-group button.maplibregl-ctrl-compass:active{cursor:grabbing}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-canvas-container.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:pinch-zoom}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:none}.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures,.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-ctrl-bottom-left,.maplibregl-ctrl-bottom-right,.maplibregl-ctrl-top-left,.maplibregl-ctrl-top-right{position:absolute;pointer-events:none;z-index:2}.maplibregl-ctrl-top-left{top:0;left:0}.maplibregl-ctrl-top-right{top:0;right:0}.maplibregl-ctrl-bottom-left{bottom:0;left:0}.maplibregl-ctrl-bottom-right{right:0;bottom:0}.maplibregl-ctrl{clear:both;pointer-events:auto;transform:translate(0)}.maplibregl-ctrl-top-left .maplibregl-ctrl{margin:10px 0 0 10px;float:left}.maplibregl-ctrl-top-right .maplibregl-ctrl{margin:10px 10px 0 0;float:right}.maplibregl-ctrl-bottom-left .maplibregl-ctrl{margin:0 0 10px 10px;float:left}.maplibregl-ctrl-bottom-right .maplibregl-ctrl{margin:0 10px 10px 0;float:right}.maplibregl-ctrl-group{border-radius:4px;background:#fff}.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px rgba(0,0,0,.1)}@media (forced-colors:active){.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px ButtonText}}.maplibregl-ctrl-group button{width:29px;height:29px;display:block;padding:0;outline:none;border:0;box-sizing:border-box;background-color:transparent;cursor:pointer}.maplibregl-ctrl button{-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-ctrl-group button+button{border-top:1px solid #ddd}.maplibregl-ctrl button .maplibregl-ctrl-icon{display:block;width:100%;height:100%;background-repeat:no-repeat;background-position:50%}@media (forced-colors:active){.maplibregl-ctrl-icon{background-color:transparent}.maplibregl-ctrl-group button+button{border-top:1px solid ButtonText}}.maplibregl-ctrl button::-moz-focus-inner{border:0;padding:0}.maplibregl-ctrl-attrib-button:focus,.maplibregl-ctrl-group button:focus{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl button:disabled{cursor:not-allowed}.maplibregl-ctrl button:disabled .maplibregl-ctrl-icon{opacity:.25}@media (hover:hover){.maplibregl-ctrl button:not(:disabled):hover{background-color:rgba(0,0,0,.05)}}.maplibregl-ctrl button:not(:disabled):active{background-color:rgba(0,0,0,.05)}.maplibregl-ctrl-group button:focus:focus-visible{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl-group button:focus:not(:focus-visible){box-shadow:none}.maplibregl-ctrl-group button:focus:first-child{border-radius:4px 4px 0 0}.maplibregl-ctrl-group button:focus:last-child{border-radius:0 0 4px 4px}.maplibregl-ctrl-group button:focus:only-child{border-radius:inherit}.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M10%2013c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h9c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M14.5%208.5c-.75%200-1.5.75-1.5%201.5v3h-3c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h3v3c0%20.75.75%201.5%201.5%201.5S16%2019.75%2016%2019v-3h3c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013h-3v-3c0-.75-.75-1.5-1.5-1.5%22%2F%3E%3C%2Fsvg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M10%2013c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h9c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M14.5%208.5c-.75%200-1.5.75-1.5%201.5v3h-3c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h3v3c0%20.75.75%201.5%201.5%201.5S16%2019.75%2016%2019v-3h3c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013h-3v-3c0-.75-.75-1.5-1.5-1.5%22%2F%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M10%2013c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h9c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M14.5%208.5c-.75%200-1.5.75-1.5%201.5v3h-3c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h3v3c0%20.75.75%201.5%201.5%201.5S16%2019.75%2016%2019v-3h3c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013h-3v-3c0-.75-.75-1.5-1.5-1.5%22%2F%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M24%2016v5.5c0%201.75-.75%202.5-2.5%202.5H16v-1l3-1.5-4-5.5%201-1%205.5%204%201.5-3zM6%2016l1.5%203%205.5-4%201%201-4%205.5%203%201.5v1H7.5C5.75%2024%205%2023.25%205%2021.5V16zm7-11v1l-3%201.5%204%205.5-1%201-5.5-4L6%2013H5V7.5C5%205.75%205.75%205%207.5%205zm11%202.5c0-1.75-.75-2.5-2.5-2.5H16v1l3%201.5-4%205.5%201%201%205.5-4%201.5%203h1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M18.5%2016c-1.75%200-2.5.75-2.5%202.5V24h1l1.5-3%205.5%204%201-1-4-5.5%203-1.5v-1zM13%2018.5c0-1.75-.75-2.5-2.5-2.5H5v1l3%201.5L4%2024l1%201%205.5-4%201.5%203h1zm3-8c0%201.75.75%202.5%202.5%202.5H24v-1l-3-1.5L25%205l-1-1-5.5%204L17%205h-1zM10.5%2013c1.75%200%202.5-.75%202.5-2.5V5h-1l-1.5%203L5%204%204%205l4%205.5L5%2012v1z%22%2F%3E%3C%2Fsvg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M24%2016v5.5c0%201.75-.75%202.5-2.5%202.5H16v-1l3-1.5-4-5.5%201-1%205.5%204%201.5-3zM6%2016l1.5%203%205.5-4%201%201-4%205.5%203%201.5v1H7.5C5.75%2024%205%2023.25%205%2021.5V16zm7-11v1l-3%201.5%204%205.5-1%201-5.5-4L6%2013H5V7.5C5%205.75%205.75%205%207.5%205zm11%202.5c0-1.75-.75-2.5-2.5-2.5H16v1l3%201.5-4%205.5%201%201%205.5-4%201.5%203h1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M18.5%2016c-1.75%200-2.5.75-2.5%202.5V24h1l1.5-3%205.5%204%201-1-4-5.5%203-1.5v-1zM13%2018.5c0-1.75-.75-2.5-2.5-2.5H5v1l3%201.5L4%2024l1%201%205.5-4%201.5%203h1zm3-8c0%201.75.75%202.5%202.5%202.5H24v-1l-3-1.5L25%205l-1-1-5.5%204L17%205h-1zM10.5%2013c1.75%200%202.5-.75%202.5-2.5V5h-1l-1.5%203L5%204%204%205l4%205.5L5%2012v1z%22%2F%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M24%2016v5.5c0%201.75-.75%202.5-2.5%202.5H16v-1l3-1.5-4-5.5%201-1%205.5%204%201.5-3zM6%2016l1.5%203%205.5-4%201%201-4%205.5%203%201.5v1H7.5C5.75%2024%205%2023.25%205%2021.5V16zm7-11v1l-3%201.5%204%205.5-1%201-5.5-4L6%2013H5V7.5C5%205.75%205.75%205%207.5%205zm11%202.5c0-1.75-.75-2.5-2.5-2.5H16v1l3%201.5-4%205.5%201%201%205.5-4%201.5%203h1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M18.5%2016c-1.75%200-2.5.75-2.5%202.5V24h1l1.5-3%205.5%204%201-1-4-5.5%203-1.5v-1zM13%2018.5c0-1.75-.75-2.5-2.5-2.5H5v1l3%201.5L4%2024l1%201%205.5-4%201.5%203h1zm3-8c0%201.75.75%202.5%202.5%202.5H24v-1l-3-1.5L25%205l-1-1-5.5%204L17%205h-1zM10.5%2013c1.75%200%202.5-.75%202.5-2.5V5h-1l-1.5%203L5%204%204%205l4%205.5L5%2012v1z%22%2F%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22m10.5%2014%204-8%204%208z%22%2F%3E%3Cpath%20fill%3D%22%23ccc%22%20d%3D%22m10.5%2016%204%208%204-8z%22%2F%3E%3C%2Fsvg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22m10.5%2014%204-8%204%208z%22%2F%3E%3Cpath%20fill%3D%22%23ccc%22%20d%3D%22m10.5%2016%204%208%204-8z%22%2F%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22m10.5%2014%204-8%204%208z%22%2F%3E%3Cpath%20fill%3D%22%23ccc%22%20d%3D%22m10.5%2016%204%208%204-8z%22%2F%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-globe .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2222%22%20height%3D%2222%22%20fill%3D%22none%22%20stroke%3D%22%23333%22%20viewBox%3D%220%200%2022%2022%22%3E%3Ccircle%20cx%3D%2211%22%20cy%3D%2211%22%20r%3D%228.5%22%2F%3E%3Cpath%20d%3D%22M17.5%2011c0%204.819-3.02%208.5-6.5%208.5S4.5%2015.819%204.5%2011%207.52%202.5%2011%202.5s6.5%203.681%206.5%208.5Z%22%2F%3E%3Cpath%20d%3D%22M13.5%2011c0%202.447-.331%204.64-.853%206.206-.262.785-.562%201.384-.872%201.777-.314.399-.58.517-.775.517s-.461-.118-.775-.517c-.31-.393-.61-.992-.872-1.777C8.831%2015.64%208.5%2013.446%208.5%2011s.331-4.64.853-6.206c.262-.785.562-1.384.872-1.777.314-.399.58-.517.775-.517s.461.118.775.517c.31.393.61.992.872%201.777.522%201.565.853%203.76.853%206.206Z%22%2F%3E%3Cpath%20d%3D%22M11%207.5c-1.909%200-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3%201.3%200%200%201-.224-.138q.07-.058.224-.138c.299-.151.763-.302%201.379-.434C7.378%205.666%209.091%205.5%2011%205.5s3.622.166%204.845.428c.616.132%201.08.283%201.379.434.105.053.177.1.224.138q-.07.058-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm0%209c-1.909%200-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3%201.3%200%200%201-.224-.138%201.3%201.3%200%200%201%20.224-.138c.299-.151.763-.302%201.379-.434C7.378%2014.666%209.091%2014.5%2011%2014.5s3.622.166%204.845.428c.616.132%201.08.283%201.379.434.105.053.177.1.224.138a1.3%201.3%200%200%201-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm0-4c-2.46%200-4.672-.222-6.255-.574-.796-.177-1.406-.38-1.805-.59a1.5%201.5%200%200%201-.39-.272.3.3%200%200%201-.047-.064.3.3%200%200%201%20.048-.064c.066-.073.189-.167.389-.272.399-.21%201.009-.413%201.805-.59C6.328%209.722%208.54%209.5%2011%209.5s4.672.222%206.256.574c.795.177%201.405.38%201.804.59.2.105.323.2.39.272a.3.3%200%200%201%20.047.064.3.3%200%200%201-.048.064%201.4%201.4%200%200%201-.389.272c-.399.21-1.009.413-1.804.59-1.584.352-3.796.574-6.256.574Zm-8.501-1.51v.002zm0%20.018v.002zm17.002.002v-.002zm0-.018v-.002z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-globe-enabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2222%22%20height%3D%2222%22%20fill%3D%22none%22%20stroke%3D%22%2333b5e5%22%20viewBox%3D%220%200%2022%2022%22%3E%3Ccircle%20cx%3D%2211%22%20cy%3D%2211%22%20r%3D%228.5%22%2F%3E%3Cpath%20d%3D%22M17.5%2011c0%204.819-3.02%208.5-6.5%208.5S4.5%2015.819%204.5%2011%207.52%202.5%2011%202.5s6.5%203.681%206.5%208.5Z%22%2F%3E%3Cpath%20d%3D%22M13.5%2011c0%202.447-.331%204.64-.853%206.206-.262.785-.562%201.384-.872%201.777-.314.399-.58.517-.775.517s-.461-.118-.775-.517c-.31-.393-.61-.992-.872-1.777C8.831%2015.64%208.5%2013.446%208.5%2011s.331-4.64.853-6.206c.262-.785.562-1.384.872-1.777.314-.399.58-.517.775-.517s.461.118.775.517c.31.393.61.992.872%201.777.522%201.565.853%203.76.853%206.206Z%22%2F%3E%3Cpath%20d%3D%22M11%207.5c-1.909%200-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3%201.3%200%200%201-.224-.138q.07-.058.224-.138c.299-.151.763-.302%201.379-.434C7.378%205.666%209.091%205.5%2011%205.5s3.622.166%204.845.428c.616.132%201.08.283%201.379.434.105.053.177.1.224.138q-.07.058-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm0%209c-1.909%200-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3%201.3%200%200%201-.224-.138%201.3%201.3%200%200%201%20.224-.138c.299-.151.763-.302%201.379-.434C7.378%2014.666%209.091%2014.5%2011%2014.5s3.622.166%204.845.428c.616.132%201.08.283%201.379.434.105.053.177.1.224.138a1.3%201.3%200%200%201-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm0-4c-2.46%200-4.672-.222-6.255-.574-.796-.177-1.406-.38-1.805-.59a1.5%201.5%200%200%201-.39-.272.3.3%200%200%201-.047-.064.3.3%200%200%201%20.048-.064c.066-.073.189-.167.389-.272.399-.21%201.009-.413%201.805-.59C6.328%209.722%208.54%209.5%2011%209.5s4.672.222%206.256.574c.795.177%201.405.38%201.804.59.2.105.323.2.39.272a.3.3%200%200%201%20.047.064.3.3%200%200%201-.048.064%201.4%201.4%200%200%201-.389.272c-.399.21-1.009.413-1.804.59-1.584.352-3.796.574-6.256.574Zm-8.501-1.51v.002zm0%20.018v.002zm17.002.002v-.002zm0-.018v-.002z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-terrain .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2222%22%20height%3D%2222%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2022%2022%22%3E%3Cpath%20d%3D%22m1.754%2013.406%204.453-4.851%203.09%203.09%203.281%203.277.969-.969-3.309-3.312%203.844-4.121%206.148%206.886h1.082v-.855l-7.207-8.07-4.84%205.187L6.169%206.57l-5.48%205.965v.871ZM.688%2016.844h20.625v1.375H.688Zm0%200%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-terrain-enabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2222%22%20height%3D%2222%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2022%2022%22%3E%3Cpath%20d%3D%22m1.754%2013.406%204.453-4.851%203.09%203.09%203.281%203.277.969-.969-3.309-3.312%203.844-4.121%206.148%206.886h1.082v-.855l-7.207-8.07-4.84%205.187L6.169%206.57l-5.48%205.965v.871ZM.688%2016.844h20.625v1.375H.688Zm0%200%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23aaa%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3Cpath%20fill%3D%22red%22%20d%3D%22m14%205%201%201-9%209-1-1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23e58978%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23e54e33%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-waiting .maplibregl-ctrl-icon{animation:maplibregl-spin 2s linear infinite}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23999%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3Cpath%20fill%3D%22red%22%20d%3D%22m14%205%201%201-9%209-1-1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23e58978%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23e54e33%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23666%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3Cpath%20fill%3D%22red%22%20d%3D%22m14%205%201%201-9%209-1-1z%22%2F%3E%3C%2Fsvg%3E")}}@keyframes maplibregl-spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}a.maplibregl-ctrl-logo{width:88px;height:23px;margin:0 0 -4px -4px;display:block;background-repeat:no-repeat;cursor:pointer;overflow:hidden;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2288%22%20height%3D%2223%22%20fill%3D%22none%22%3E%3Cpath%20fill%3D%22%23000%22%20fill-opacity%3D%22.4%22%20fill-rule%3D%22evenodd%22%20d%3D%22M17.408%2016.796h-1.827l2.501-12.095h.198l3.324%206.533.988%202.19.988-2.19%203.258-6.533h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.929%205.644h-.098l-2.914-5.644-.757-1.71-.345%201.71zm1.958-3.42-.726%203.663a1.255%201.255%200%200%201-1.232%201.011h-1.827a1.255%201.255%200%200%201-1.229-1.509l2.501-12.095a1.255%201.255%200%200%201%201.23-1.001h.197a1.25%201.25%200%200%201%201.12.685l3.19%206.273%203.125-6.263a1.25%201.25%200%200%201%201.123-.695h.181a1.255%201.255%200%200%201%201.227.991l1.443%206.71a5%205%200%200%201%20.314-.787l.009-.016a4.6%204.6%200%200%201%201.777-1.887c.782-.46%201.668-.667%202.611-.667a4.6%204.6%200%200%201%201.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255%201.255%200%200%201%201.212.925%201.255%201.255%200%200%201%201.212-.925h1.711c.284%200%20.545.094.755.252.613-.3%201.312-.45%202.075-.45%201.356%200%202.557.445%203.482%201.4q.47.48.763%201.064V4.701a1.255%201.255%200%200%201%201.255-1.255h1.86A1.255%201.255%200%200%201%2054.44%204.7v9.194h2.217c.19%200%20.37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42%202.42%200%200%201-.682-1.71c0-.665.267-1.253.735-1.7a2.45%202.45%200%200%201%201.722-.674%202.43%202.43%200%200%201%201.705.675q.318.302.504.683V4.7a1.255%201.255%200%200%201%201.255-1.255h1.744A1.255%201.255%200%200%201%2065.812%204.7v3.335a4.8%204.8%200%200%201%201.526-.246c.938%200%201.817.214%202.59.69a4.47%204.47%200%200%201%201.67%201.743v-.98a1.255%201.255%200%200%201%201.256-1.256h1.777c.233%200%20.451.064.639.174a3.4%203.4%200%200%201%201.567-.372c.346%200%20.861.02%201.285.232a1.25%201.25%200%200%201%20.689%201.004%204.7%204.7%200%200%201%20.853-.588c.795-.44%201.675-.647%202.61-.647%201.385%200%202.65.39%203.525%201.396.836.938%201.168%202.173%201.168%203.528q-.001.515-.056%201.051a1.255%201.255%200%200%201-.947%201.09l.408.952a1.255%201.255%200%200%201-.477%201.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06%200-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8%205.8%200%200%201-.548-2.512q0-.429.053-.843a1.3%201.3%200%200%201-.333-.086l-.166-.004c-.223%200-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255%201.255%200%200%201-1.256%201.256h-1.777a1.255%201.255%200%200%201-1.256-1.256V15.69l-.032.057a4.8%204.8%200%200%201-1.86%201.833%205.04%205.04%200%200%201-2.484.634%204.5%204.5%200%200%201-1.935-.424%201.25%201.25%200%200%201-.764.258h-1.71a1.255%201.255%200%200%201-1.256-1.255V7.687a2.4%202.4%200%200%201-.428.625c.253.23.412.561.412.93v7.553a1.255%201.255%200%200%201-1.256%201.255h-1.843a1.25%201.25%200%200%201-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255%201.255%200%200%201-1.256-1.255v-1.251l-.061.117a4.7%204.7%200%200%201-1.782%201.884%204.77%204.77%200%200%201-2.485.67%205.6%205.6%200%200%201-1.485-.188l.009%202.764a1.255%201.255%200%200%201-1.255%201.259h-1.729a1.255%201.255%200%200%201-1.255-1.255v-3.537a1.255%201.255%200%200%201-1.167.793h-1.679a1.25%201.25%200%200%201-.77-.263%204.5%204.5%200%200%201-1.945.429c-.885%200-1.724-.21-2.495-.632l-.017-.01a5%205%200%200%201-1.081-.836%201.255%201.255%200%200%201-1.254%201.312h-1.81a1.255%201.255%200%200%201-1.228-.99l-.782-3.625-2.044%203.939a1.25%201.25%200%200%201-1.115.676h-.098a1.25%201.25%200%200%201-1.116-.68l-2.061-3.994zM35.92%2016.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033%201.332h1.678V9.242h-1.694l-.033%201.267q-.133-.329-.526-.658l-.032-.028a3.2%203.2%200%200%200-.668-.428l-.27-.12a3.3%203.3%200%200%200-1.235-.23q-1.136-.001-1.974.493a3.36%203.36%200%200%200-1.3%201.382q-.445.89-.444%202.074%200%201.2.51%202.107a3.8%203.8%200%200%200%201.382%201.381%203.9%203.9%200%200%200%201.893.477q.795%200%201.455-.33zm-2.789-5.38q-.576.675-.575%201.762%200%201.102.559%201.794.576.675%201.645.675a2.25%202.25%200%200%200%20.934-.19%202.2%202.2%200%200%200%20.468-.29l.178-.161a2.2%202.2%200%200%200%20.397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2%202.2%200%200%200-.633-.709l-.13-.086-.047-.028a2.1%202.1%200%200%200-1.073-.285q-1.052%200-1.629.692zm2.316%202.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96%200%200%200-.353-.389.85.85%200%200%200-.464-.127c-.4%200-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945%200%20.506.122.801.27.99.097.11.266.224.68.224.303%200%20.504-.09.687-.269zm7.545%201.705a2.6%202.6%200%200%200%20.331.423q.319.33.755.548l.173.074q.65.255%201.49.255%201.02%200%201.844-.493a3.45%203.45%200%200%200%201.316-1.4q.493-.904.493-2.089%200-1.909-.988-2.913-.988-1.02-2.584-1.02-.898%200-1.575.347a3%203%200%200%200-.415.262l-.199.166a3.4%203.4%200%200%200-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296%201.119.297%201.07%200%201.645-.675.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.435%200-.835.16a2%202%200%200%200-.284.136%202%202%200%200%200-.363.254%202.2%202.2%200%200%200-.46.569l-.082.162a2.6%202.6%200%200%200-.213%201.072v.115q0%20.707.296%201.267l.135.211zm.964-.818a1.1%201.1%200%200%200%20.367.385.94.94%200%200%200%20.476.118c.423%200%20.59-.117.687-.23.159-.194.28-.478.28-.95%200-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1%201%200%200%200-.503.135l-.012.007a.86.86%200%200%200-.335.343c-.073.133-.132.324-.132.614v.115a1.4%201.4%200%200%200%20.14.66zm15.7-6.222q.347-.346.346-.856a1.05%201.05%200%200%200-.345-.79%201.18%201.18%200%200%200-.84-.329q-.51%200-.855.33a1.05%201.05%200%200%200-.346.79q0%20.51.346.855.345.346.856.346.51%200%20.839-.346zm4.337%209.314.033-1.332q.191.403.59.747l.098.081a4%204%200%200%200%20.316.224l.223.122a3.2%203.2%200%200%200%201.44.322%203.8%203.8%200%200%200%201.875-.477%203.5%203.5%200%200%200%201.382-1.366q.527-.89.526-2.09%200-1.184-.444-2.073a3.24%203.24%200%200%200-1.283-1.399q-.823-.51-1.942-.51a3.5%203.5%200%200%200-1.527.344l-.086.043-.165.09a3%203%200%200%200-.33.214q-.432.315-.656.707a2%202%200%200%200-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5%202.5%200%200%200%20.566.7q.117.098.245.18l.144.08a2.1%202.1%200%200%200%20.975.232q1.07%200%201.645-.675.576-.69.576-1.778%200-1.102-.576-1.777-.56-.691-1.645-.692a2.2%202.2%200%200%200-1.015.235q-.22.113-.415.282l-.15.142a2.1%202.1%200%200%200-.42.594q-.223.479-.223%201.1v.115q0%20.705.293%201.26zm2.616-.293c.157-.191.28-.479.28-.967%200-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87%200%200%200-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0%20.285.057.499.144.669a1.1%201.1%200%200%200%20.367.405c.137.082.28.123.455.123.423%200%20.59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493%200%20.642.099l.247-1.794q-.196-.099-.717-.099a2.3%202.3%200%200%200-.545.063%202%202%200%200%200-.411.148%202.2%202.2%200%200%200-.4.249%202.5%202.5%200%200%200-.485.499%202.7%202.7%200%200%200-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5%201.5%200%200%201%20.466-.636%202.5%202.5%200%200%201%20.399-.253%202%202%200%200%201%20.224-.099zm9.784%202.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46%203.46%200%200%200-1.4%201.382q-.493.906-.493%202.106%200%201.07.428%201.975.428.89%201.332%201.432.906.526%202.255.526.973%200%201.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954%200-1.497-.444a1.6%201.6%200%200%201-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1%201%200%200%200-.156-.176q-.46-.428-1.316-.428-.986%200-1.494.604-.379.45-.494%201.234zm-27.053%202.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z%22%2F%3E%3Cpath%20fill%3D%22%23fff%22%20d%3D%22m19.63%2011.151-.757-1.71-.345%201.71-1.12%205.644h-1.827L18.083%204.7h.197l3.325%206.533.988%202.19.988-2.19L26.839%204.7h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.93%205.644h-.098l-2.913-5.644zm14.836%205.81q-1.02%200-1.893-.478a3.8%203.8%200%200%201-1.381-1.382q-.51-.906-.51-2.106%200-1.185.444-2.074a3.36%203.36%200%200%201%201.3-1.382q.839-.494%201.974-.494a3.3%203.3%200%200%201%201.234.231%203.3%203.3%200%200%201%20.97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02%201.053a3.17%203.17%200%200%201-1.662.444zm.296-1.482q.938%200%201.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2%202.2%200%200%200-.807-.872%202.1%202.1%200%200%200-1.119-.313q-1.053%200-1.629.692-.575.675-.575%201.76%200%201.103.559%201.795.577.675%201.645.675zm6.521-6.237h1.711v1.4q.906-1.597%202.83-1.597%201.596%200%202.584%201.02.988%201.005.988%202.914%200%201.185-.493%202.09a3.46%203.46%200%200%201-1.316%201.399%203.5%203.5%200%200%201-1.844.493q-.954%200-1.662-.329a2.67%202.67%200%200%201-1.086-.97l.017%205.134h-1.728zm4.048%206.22q1.07%200%201.645-.674.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.592%200-1.12.296-.51.28-.822.823-.296.527-.296%201.234v.115q0%20.708.296%201.267.313.543.823.855.51.296%201.119.297z%22%2F%3E%3Cpath%20fill%3D%22%23e1e3e9%22%20d%3D%22M51.325%204.7h1.86v10.45h3.473v1.646h-5.333zm7.12%204.542h1.843v7.553h-1.843zm.905-1.415a1.16%201.16%200%200%201-.856-.346%201.17%201.17%200%200%201-.346-.856%201.05%201.05%200%200%201%20.346-.79q.346-.329.856-.329.494%200%20.839.33a1.05%201.05%200%200%201%20.345.79%201.16%201.16%200%200%201-.345.855q-.33.346-.84.346zm7.875%209.133a3.17%203.17%200%200%201-1.662-.444q-.723-.46-1.004-1.053l-.033%201.332h-1.71V4.701h1.743v4.657l-.082%201.283q.279-.658%201.086-1.119a3.5%203.5%200%200%201%201.778-.477q1.119%200%201.942.51a3.24%203.24%200%200%201%201.283%201.4q.445.888.444%202.072%200%201.201-.526%202.09a3.5%203.5%200%200%201-1.382%201.366%203.8%203.8%200%200%201-1.876.477zm-.296-1.481q1.069%200%201.645-.675.577-.69.577-1.778%200-1.102-.577-1.776-.56-.691-1.645-.692a2.12%202.12%200%200%200-1.58.659q-.642.641-.642%201.694v.115q0%20.71.296%201.267a2.4%202.4%200%200%200%20.807.872%202.1%202.1%200%200%200%201.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14%202.14%200%200%201%201.349-.46q.527%200%20.724.098l-.247%201.794q-.149-.099-.642-.099-.774%200-1.416.494-.626.493-.626%201.58v3.883h-1.777V9.242zm9.534%207.718q-1.35%200-2.255-.526-.904-.543-1.332-1.432a4.6%204.6%200%200%201-.428-1.975q0-1.2.493-2.106a3.46%203.46%200%200%201%201.4-1.382q.889-.495%202.007-.494%201.744%200%202.584.97.855.956.856%202.7%200%20.444-.05.92h-5.43q.18%201.005.708%201.45.542.443%201.497.443.79%200%201.3-.131a4%204%200%200%200%20.938-.362l.542%201.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728%200-1.991%201.86z%22%2F%3E%3Cpath%20d%3D%22M5.074%2015.948a.484.657%200%200%200-.486.659v1.84a.484.657%200%200%200%20.486.659h4.101a.484.657%200%200%200%20.486-.659v-1.84a.484.657%200%200%200-.486-.659zm3.56%201.16H5.617v.838h3.017z%22%20style%3D%22fill%3A%23fff%3Bfill-rule%3Aevenodd%3Bstroke-width%3A1.03600001%22%2F%3E%3Cg%20style%3D%22stroke-width%3A1.12603545%22%3E%3Cpath%20d%3D%22M-9.408-1.416c-3.833-.025-7.056%202.912-7.08%206.615-.02%203.08%201.653%204.832%203.107%206.268.903.892%201.721%201.74%202.32%202.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87%201.87%200%200%200-.362%201.121l-.011%201.877c-.003.402.104.787.347%201.125.244.338.688.653%201.23.656l4.142.028c.542.003.99-.306%201.238-.641a1.87%201.87%200%200%200%20.363-1.121l.012-1.875a1.87%201.87%200%200%200-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145%201.425-1.983%202.348-2.87%201.473-1.414%203.18-3.149%203.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006%201.1v.002c3.274.02%205.92%202.532%205.9%205.6-.017%202.706-1.39%204.026-2.863%205.44-1.034.994-2.118%202.033-2.814%203.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34%200%200%201-.226.084.34.34%200%200%201-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067%202.7-5.545%205.975-5.523m-.02%202.826c-1.62-.01-2.944%201.315-2.955%202.96-.01%201.646%201.295%202.988%202.916%202.999h.002c1.621.01%202.943-1.316%202.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005%201.1c1.017.006%201.829.83%201.822%201.89s-.83%201.874-1.848%201.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874%201.848-1.868m-2.155%2011.857%204.14.025c.271.002.49.305.487.676l-.013%201.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668%22%20style%3D%22color%3A%23000%3Bfont-style%3Anormal%3Bfont-variant%3Anormal%3Bfont-weight%3A400%3Bfont-stretch%3Anormal%3Bfont-size%3Amedium%3Bline-height%3Anormal%3Bfont-family%3Asans-serif%3Bfont-variant-ligatures%3Anormal%3Bfont-variant-position%3Anormal%3Bfont-variant-caps%3Anormal%3Bfont-variant-numeric%3Anormal%3Bfont-variant-alternates%3Anormal%3Bfont-feature-settings%3Anormal%3Btext-indent%3A0%3Btext-align%3Astart%3Btext-decoration%3Anone%3Btext-decoration-line%3Anone%3Btext-decoration-style%3Asolid%3Btext-decoration-color%3A%23000%3Bletter-spacing%3Anormal%3Bword-spacing%3Anormal%3Btext-transform%3Anone%3Bwriting-mode%3Alr-tb%3Bdirection%3Altr%3Btext-orientation%3Amixed%3Bdominant-baseline%3Aauto%3Bbaseline-shift%3Abaseline%3Btext-anchor%3Astart%3Bwhite-space%3Anormal%3Bshape-padding%3A0%3Bclip-rule%3Aevenodd%3Bdisplay%3Ainline%3Boverflow%3Avisible%3Bvisibility%3Avisible%3Bopacity%3A1%3Bisolation%3Aauto%3Bmix-blend-mode%3Anormal%3Bcolor-interpolation%3AsRGB%3Bcolor-interpolation-filters%3AlinearRGB%3Bsolid-color%3A%23000%3Bsolid-opacity%3A1%3Bvector-effect%3Anone%3Bfill%3A%23000%3Bfill-opacity%3A.4%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-linecap%3Abutt%3Bstroke-linejoin%3Amiter%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-dashoffset%3A0%3Bstroke-opacity%3A1%3Bcolor-rendering%3Aauto%3Bimage-rendering%3Aauto%3Bshape-rendering%3Aauto%3Btext-rendering%3Aauto%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-9.415-.316C-12.69-.338-15.37%202.14-15.39%205.207c-.017%202.716%201.326%204.041%202.78%205.477%201.013%201%202.081%202.055%202.78%203.67l.092.076a.34.34%200%200%200%20.225.086.34.34%200%200%200%20.227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6%201.78-2.64%202.814-3.634%201.473-1.414%202.847-2.733%202.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057%208.784c1.621.011%202.944-1.315%202.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945%201.315-2.955%202.96s1.295%202.989%202.916%203%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23e1e3e9%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-11.594%2015.465c-.27-.002-.492.297-.494.668l-.012%201.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23fff%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E")}a.maplibregl-ctrl-logo.maplibregl-compact{width:14px}@media (forced-colors:active){a.maplibregl-ctrl-logo{background-color:transparent;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2288%22%20height%3D%2223%22%20fill%3D%22none%22%3E%3Cpath%20fill%3D%22%23000%22%20fill-opacity%3D%22.4%22%20fill-rule%3D%22evenodd%22%20d%3D%22M17.408%2016.796h-1.827l2.501-12.095h.198l3.324%206.533.988%202.19.988-2.19%203.258-6.533h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.929%205.644h-.098l-2.914-5.644-.757-1.71-.345%201.71zm1.958-3.42-.726%203.663a1.255%201.255%200%200%201-1.232%201.011h-1.827a1.255%201.255%200%200%201-1.229-1.509l2.501-12.095a1.255%201.255%200%200%201%201.23-1.001h.197a1.25%201.25%200%200%201%201.12.685l3.19%206.273%203.125-6.263a1.25%201.25%200%200%201%201.123-.695h.181a1.255%201.255%200%200%201%201.227.991l1.443%206.71a5%205%200%200%201%20.314-.787l.009-.016a4.6%204.6%200%200%201%201.777-1.887c.782-.46%201.668-.667%202.611-.667a4.6%204.6%200%200%201%201.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255%201.255%200%200%201%201.212.925%201.255%201.255%200%200%201%201.212-.925h1.711c.284%200%20.545.094.755.252.613-.3%201.312-.45%202.075-.45%201.356%200%202.557.445%203.482%201.4q.47.48.763%201.064V4.701a1.255%201.255%200%200%201%201.255-1.255h1.86A1.255%201.255%200%200%201%2054.44%204.7v9.194h2.217c.19%200%20.37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42%202.42%200%200%201-.682-1.71c0-.665.267-1.253.735-1.7a2.45%202.45%200%200%201%201.722-.674%202.43%202.43%200%200%201%201.705.675q.318.302.504.683V4.7a1.255%201.255%200%200%201%201.255-1.255h1.744A1.255%201.255%200%200%201%2065.812%204.7v3.335a4.8%204.8%200%200%201%201.526-.246c.938%200%201.817.214%202.59.69a4.47%204.47%200%200%201%201.67%201.743v-.98a1.255%201.255%200%200%201%201.256-1.256h1.777c.233%200%20.451.064.639.174a3.4%203.4%200%200%201%201.567-.372c.346%200%20.861.02%201.285.232a1.25%201.25%200%200%201%20.689%201.004%204.7%204.7%200%200%201%20.853-.588c.795-.44%201.675-.647%202.61-.647%201.385%200%202.65.39%203.525%201.396.836.938%201.168%202.173%201.168%203.528q-.001.515-.056%201.051a1.255%201.255%200%200%201-.947%201.09l.408.952a1.255%201.255%200%200%201-.477%201.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06%200-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8%205.8%200%200%201-.548-2.512q0-.429.053-.843a1.3%201.3%200%200%201-.333-.086l-.166-.004c-.223%200-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255%201.255%200%200%201-1.256%201.256h-1.777a1.255%201.255%200%200%201-1.256-1.256V15.69l-.032.057a4.8%204.8%200%200%201-1.86%201.833%205.04%205.04%200%200%201-2.484.634%204.5%204.5%200%200%201-1.935-.424%201.25%201.25%200%200%201-.764.258h-1.71a1.255%201.255%200%200%201-1.256-1.255V7.687a2.4%202.4%200%200%201-.428.625c.253.23.412.561.412.93v7.553a1.255%201.255%200%200%201-1.256%201.255h-1.843a1.25%201.25%200%200%201-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255%201.255%200%200%201-1.256-1.255v-1.251l-.061.117a4.7%204.7%200%200%201-1.782%201.884%204.77%204.77%200%200%201-2.485.67%205.6%205.6%200%200%201-1.485-.188l.009%202.764a1.255%201.255%200%200%201-1.255%201.259h-1.729a1.255%201.255%200%200%201-1.255-1.255v-3.537a1.255%201.255%200%200%201-1.167.793h-1.679a1.25%201.25%200%200%201-.77-.263%204.5%204.5%200%200%201-1.945.429c-.885%200-1.724-.21-2.495-.632l-.017-.01a5%205%200%200%201-1.081-.836%201.255%201.255%200%200%201-1.254%201.312h-1.81a1.255%201.255%200%200%201-1.228-.99l-.782-3.625-2.044%203.939a1.25%201.25%200%200%201-1.115.676h-.098a1.25%201.25%200%200%201-1.116-.68l-2.061-3.994zM35.92%2016.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033%201.332h1.678V9.242h-1.694l-.033%201.267q-.133-.329-.526-.658l-.032-.028a3.2%203.2%200%200%200-.668-.428l-.27-.12a3.3%203.3%200%200%200-1.235-.23q-1.136-.001-1.974.493a3.36%203.36%200%200%200-1.3%201.382q-.445.89-.444%202.074%200%201.2.51%202.107a3.8%203.8%200%200%200%201.382%201.381%203.9%203.9%200%200%200%201.893.477q.795%200%201.455-.33zm-2.789-5.38q-.576.675-.575%201.762%200%201.102.559%201.794.576.675%201.645.675a2.25%202.25%200%200%200%20.934-.19%202.2%202.2%200%200%200%20.468-.29l.178-.161a2.2%202.2%200%200%200%20.397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2%202.2%200%200%200-.633-.709l-.13-.086-.047-.028a2.1%202.1%200%200%200-1.073-.285q-1.052%200-1.629.692zm2.316%202.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96%200%200%200-.353-.389.85.85%200%200%200-.464-.127c-.4%200-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945%200%20.506.122.801.27.99.097.11.266.224.68.224.303%200%20.504-.09.687-.269zm7.545%201.705a2.6%202.6%200%200%200%20.331.423q.319.33.755.548l.173.074q.65.255%201.49.255%201.02%200%201.844-.493a3.45%203.45%200%200%200%201.316-1.4q.493-.904.493-2.089%200-1.909-.988-2.913-.988-1.02-2.584-1.02-.898%200-1.575.347a3%203%200%200%200-.415.262l-.199.166a3.4%203.4%200%200%200-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296%201.119.297%201.07%200%201.645-.675.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.435%200-.835.16a2%202%200%200%200-.284.136%202%202%200%200%200-.363.254%202.2%202.2%200%200%200-.46.569l-.082.162a2.6%202.6%200%200%200-.213%201.072v.115q0%20.707.296%201.267l.135.211zm.964-.818a1.1%201.1%200%200%200%20.367.385.94.94%200%200%200%20.476.118c.423%200%20.59-.117.687-.23.159-.194.28-.478.28-.95%200-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1%201%200%200%200-.503.135l-.012.007a.86.86%200%200%200-.335.343c-.073.133-.132.324-.132.614v.115a1.4%201.4%200%200%200%20.14.66zm15.7-6.222q.347-.346.346-.856a1.05%201.05%200%200%200-.345-.79%201.18%201.18%200%200%200-.84-.329q-.51%200-.855.33a1.05%201.05%200%200%200-.346.79q0%20.51.346.855.345.346.856.346.51%200%20.839-.346zm4.337%209.314.033-1.332q.191.403.59.747l.098.081a4%204%200%200%200%20.316.224l.223.122a3.2%203.2%200%200%200%201.44.322%203.8%203.8%200%200%200%201.875-.477%203.5%203.5%200%200%200%201.382-1.366q.527-.89.526-2.09%200-1.184-.444-2.073a3.24%203.24%200%200%200-1.283-1.399q-.823-.51-1.942-.51a3.5%203.5%200%200%200-1.527.344l-.086.043-.165.09a3%203%200%200%200-.33.214q-.432.315-.656.707a2%202%200%200%200-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5%202.5%200%200%200%20.566.7q.117.098.245.18l.144.08a2.1%202.1%200%200%200%20.975.232q1.07%200%201.645-.675.576-.69.576-1.778%200-1.102-.576-1.777-.56-.691-1.645-.692a2.2%202.2%200%200%200-1.015.235q-.22.113-.415.282l-.15.142a2.1%202.1%200%200%200-.42.594q-.223.479-.223%201.1v.115q0%20.705.293%201.26zm2.616-.293c.157-.191.28-.479.28-.967%200-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87%200%200%200-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0%20.285.057.499.144.669a1.1%201.1%200%200%200%20.367.405c.137.082.28.123.455.123.423%200%20.59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493%200%20.642.099l.247-1.794q-.196-.099-.717-.099a2.3%202.3%200%200%200-.545.063%202%202%200%200%200-.411.148%202.2%202.2%200%200%200-.4.249%202.5%202.5%200%200%200-.485.499%202.7%202.7%200%200%200-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5%201.5%200%200%201%20.466-.636%202.5%202.5%200%200%201%20.399-.253%202%202%200%200%201%20.224-.099zm9.784%202.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46%203.46%200%200%200-1.4%201.382q-.493.906-.493%202.106%200%201.07.428%201.975.428.89%201.332%201.432.906.526%202.255.526.973%200%201.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954%200-1.497-.444a1.6%201.6%200%200%201-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1%201%200%200%200-.156-.176q-.46-.428-1.316-.428-.986%200-1.494.604-.379.45-.494%201.234zm-27.053%202.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z%22%2F%3E%3Cpath%20fill%3D%22%23fff%22%20d%3D%22m19.63%2011.151-.757-1.71-.345%201.71-1.12%205.644h-1.827L18.083%204.7h.197l3.325%206.533.988%202.19.988-2.19L26.839%204.7h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.93%205.644h-.098l-2.913-5.644zm14.836%205.81q-1.02%200-1.893-.478a3.8%203.8%200%200%201-1.381-1.382q-.51-.906-.51-2.106%200-1.185.444-2.074a3.36%203.36%200%200%201%201.3-1.382q.839-.494%201.974-.494a3.3%203.3%200%200%201%201.234.231%203.3%203.3%200%200%201%20.97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02%201.053a3.17%203.17%200%200%201-1.662.444zm.296-1.482q.938%200%201.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2%202.2%200%200%200-.807-.872%202.1%202.1%200%200%200-1.119-.313q-1.053%200-1.629.692-.575.675-.575%201.76%200%201.103.559%201.795.577.675%201.645.675zm6.521-6.237h1.711v1.4q.906-1.597%202.83-1.597%201.596%200%202.584%201.02.988%201.005.988%202.914%200%201.185-.493%202.09a3.46%203.46%200%200%201-1.316%201.399%203.5%203.5%200%200%201-1.844.493q-.954%200-1.662-.329a2.67%202.67%200%200%201-1.086-.97l.017%205.134h-1.728zm4.048%206.22q1.07%200%201.645-.674.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.592%200-1.12.296-.51.28-.822.823-.296.527-.296%201.234v.115q0%20.708.296%201.267.313.543.823.855.51.296%201.119.297z%22%2F%3E%3Cpath%20fill%3D%22%23e1e3e9%22%20d%3D%22M51.325%204.7h1.86v10.45h3.473v1.646h-5.333zm7.12%204.542h1.843v7.553h-1.843zm.905-1.415a1.16%201.16%200%200%201-.856-.346%201.17%201.17%200%200%201-.346-.856%201.05%201.05%200%200%201%20.346-.79q.346-.329.856-.329.494%200%20.839.33a1.05%201.05%200%200%201%20.345.79%201.16%201.16%200%200%201-.345.855q-.33.346-.84.346zm7.875%209.133a3.17%203.17%200%200%201-1.662-.444q-.723-.46-1.004-1.053l-.033%201.332h-1.71V4.701h1.743v4.657l-.082%201.283q.279-.658%201.086-1.119a3.5%203.5%200%200%201%201.778-.477q1.119%200%201.942.51a3.24%203.24%200%200%201%201.283%201.4q.445.888.444%202.072%200%201.201-.526%202.09a3.5%203.5%200%200%201-1.382%201.366%203.8%203.8%200%200%201-1.876.477zm-.296-1.481q1.069%200%201.645-.675.577-.69.577-1.778%200-1.102-.577-1.776-.56-.691-1.645-.692a2.12%202.12%200%200%200-1.58.659q-.642.641-.642%201.694v.115q0%20.71.296%201.267a2.4%202.4%200%200%200%20.807.872%202.1%202.1%200%200%200%201.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14%202.14%200%200%201%201.349-.46q.527%200%20.724.098l-.247%201.794q-.149-.099-.642-.099-.774%200-1.416.494-.626.493-.626%201.58v3.883h-1.777V9.242zm9.534%207.718q-1.35%200-2.255-.526-.904-.543-1.332-1.432a4.6%204.6%200%200%201-.428-1.975q0-1.2.493-2.106a3.46%203.46%200%200%201%201.4-1.382q.889-.495%202.007-.494%201.744%200%202.584.97.855.956.856%202.7%200%20.444-.05.92h-5.43q.18%201.005.708%201.45.542.443%201.497.443.79%200%201.3-.131a4%204%200%200%200%20.938-.362l.542%201.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728%200-1.991%201.86z%22%2F%3E%3Cpath%20d%3D%22M5.074%2015.948a.484.657%200%200%200-.486.659v1.84a.484.657%200%200%200%20.486.659h4.101a.484.657%200%200%200%20.486-.659v-1.84a.484.657%200%200%200-.486-.659zm3.56%201.16H5.617v.838h3.017z%22%20style%3D%22fill%3A%23fff%3Bfill-rule%3Aevenodd%3Bstroke-width%3A1.03600001%22%2F%3E%3Cg%20style%3D%22stroke-width%3A1.12603545%22%3E%3Cpath%20d%3D%22M-9.408-1.416c-3.833-.025-7.056%202.912-7.08%206.615-.02%203.08%201.653%204.832%203.107%206.268.903.892%201.721%201.74%202.32%202.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87%201.87%200%200%200-.362%201.121l-.011%201.877c-.003.402.104.787.347%201.125.244.338.688.653%201.23.656l4.142.028c.542.003.99-.306%201.238-.641a1.87%201.87%200%200%200%20.363-1.121l.012-1.875a1.87%201.87%200%200%200-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145%201.425-1.983%202.348-2.87%201.473-1.414%203.18-3.149%203.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006%201.1v.002c3.274.02%205.92%202.532%205.9%205.6-.017%202.706-1.39%204.026-2.863%205.44-1.034.994-2.118%202.033-2.814%203.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34%200%200%201-.226.084.34.34%200%200%201-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067%202.7-5.545%205.975-5.523m-.02%202.826c-1.62-.01-2.944%201.315-2.955%202.96-.01%201.646%201.295%202.988%202.916%202.999h.002c1.621.01%202.943-1.316%202.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005%201.1c1.017.006%201.829.83%201.822%201.89s-.83%201.874-1.848%201.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874%201.848-1.868m-2.155%2011.857%204.14.025c.271.002.49.305.487.676l-.013%201.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668%22%20style%3D%22color%3A%23000%3Bfont-style%3Anormal%3Bfont-variant%3Anormal%3Bfont-weight%3A400%3Bfont-stretch%3Anormal%3Bfont-size%3Amedium%3Bline-height%3Anormal%3Bfont-family%3Asans-serif%3Bfont-variant-ligatures%3Anormal%3Bfont-variant-position%3Anormal%3Bfont-variant-caps%3Anormal%3Bfont-variant-numeric%3Anormal%3Bfont-variant-alternates%3Anormal%3Bfont-feature-settings%3Anormal%3Btext-indent%3A0%3Btext-align%3Astart%3Btext-decoration%3Anone%3Btext-decoration-line%3Anone%3Btext-decoration-style%3Asolid%3Btext-decoration-color%3A%23000%3Bletter-spacing%3Anormal%3Bword-spacing%3Anormal%3Btext-transform%3Anone%3Bwriting-mode%3Alr-tb%3Bdirection%3Altr%3Btext-orientation%3Amixed%3Bdominant-baseline%3Aauto%3Bbaseline-shift%3Abaseline%3Btext-anchor%3Astart%3Bwhite-space%3Anormal%3Bshape-padding%3A0%3Bclip-rule%3Aevenodd%3Bdisplay%3Ainline%3Boverflow%3Avisible%3Bvisibility%3Avisible%3Bopacity%3A1%3Bisolation%3Aauto%3Bmix-blend-mode%3Anormal%3Bcolor-interpolation%3AsRGB%3Bcolor-interpolation-filters%3AlinearRGB%3Bsolid-color%3A%23000%3Bsolid-opacity%3A1%3Bvector-effect%3Anone%3Bfill%3A%23000%3Bfill-opacity%3A.4%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-linecap%3Abutt%3Bstroke-linejoin%3Amiter%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-dashoffset%3A0%3Bstroke-opacity%3A1%3Bcolor-rendering%3Aauto%3Bimage-rendering%3Aauto%3Bshape-rendering%3Aauto%3Btext-rendering%3Aauto%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-9.415-.316C-12.69-.338-15.37%202.14-15.39%205.207c-.017%202.716%201.326%204.041%202.78%205.477%201.013%201%202.081%202.055%202.78%203.67l.092.076a.34.34%200%200%200%20.225.086.34.34%200%200%200%20.227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6%201.78-2.64%202.814-3.634%201.473-1.414%202.847-2.733%202.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057%208.784c1.621.011%202.944-1.315%202.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945%201.315-2.955%202.96s1.295%202.989%202.916%203%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23e1e3e9%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-11.594%2015.465c-.27-.002-.492.297-.494.668l-.012%201.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23fff%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){a.maplibregl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2288%22%20height%3D%2223%22%20fill%3D%22none%22%3E%3Cpath%20fill%3D%22%23000%22%20fill-opacity%3D%22.4%22%20fill-rule%3D%22evenodd%22%20d%3D%22M17.408%2016.796h-1.827l2.501-12.095h.198l3.324%206.533.988%202.19.988-2.19%203.258-6.533h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.929%205.644h-.098l-2.914-5.644-.757-1.71-.345%201.71zm1.958-3.42-.726%203.663a1.255%201.255%200%200%201-1.232%201.011h-1.827a1.255%201.255%200%200%201-1.229-1.509l2.501-12.095a1.255%201.255%200%200%201%201.23-1.001h.197a1.25%201.25%200%200%201%201.12.685l3.19%206.273%203.125-6.263a1.25%201.25%200%200%201%201.123-.695h.181a1.255%201.255%200%200%201%201.227.991l1.443%206.71a5%205%200%200%201%20.314-.787l.009-.016a4.6%204.6%200%200%201%201.777-1.887c.782-.46%201.668-.667%202.611-.667a4.6%204.6%200%200%201%201.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255%201.255%200%200%201%201.212.925%201.255%201.255%200%200%201%201.212-.925h1.711c.284%200%20.545.094.755.252.613-.3%201.312-.45%202.075-.45%201.356%200%202.557.445%203.482%201.4q.47.48.763%201.064V4.701a1.255%201.255%200%200%201%201.255-1.255h1.86A1.255%201.255%200%200%201%2054.44%204.7v9.194h2.217c.19%200%20.37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42%202.42%200%200%201-.682-1.71c0-.665.267-1.253.735-1.7a2.45%202.45%200%200%201%201.722-.674%202.43%202.43%200%200%201%201.705.675q.318.302.504.683V4.7a1.255%201.255%200%200%201%201.255-1.255h1.744A1.255%201.255%200%200%201%2065.812%204.7v3.335a4.8%204.8%200%200%201%201.526-.246c.938%200%201.817.214%202.59.69a4.47%204.47%200%200%201%201.67%201.743v-.98a1.255%201.255%200%200%201%201.256-1.256h1.777c.233%200%20.451.064.639.174a3.4%203.4%200%200%201%201.567-.372c.346%200%20.861.02%201.285.232a1.25%201.25%200%200%201%20.689%201.004%204.7%204.7%200%200%201%20.853-.588c.795-.44%201.675-.647%202.61-.647%201.385%200%202.65.39%203.525%201.396.836.938%201.168%202.173%201.168%203.528q-.001.515-.056%201.051a1.255%201.255%200%200%201-.947%201.09l.408.952a1.255%201.255%200%200%201-.477%201.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06%200-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8%205.8%200%200%201-.548-2.512q0-.429.053-.843a1.3%201.3%200%200%201-.333-.086l-.166-.004c-.223%200-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255%201.255%200%200%201-1.256%201.256h-1.777a1.255%201.255%200%200%201-1.256-1.256V15.69l-.032.057a4.8%204.8%200%200%201-1.86%201.833%205.04%205.04%200%200%201-2.484.634%204.5%204.5%200%200%201-1.935-.424%201.25%201.25%200%200%201-.764.258h-1.71a1.255%201.255%200%200%201-1.256-1.255V7.687a2.4%202.4%200%200%201-.428.625c.253.23.412.561.412.93v7.553a1.255%201.255%200%200%201-1.256%201.255h-1.843a1.25%201.25%200%200%201-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255%201.255%200%200%201-1.256-1.255v-1.251l-.061.117a4.7%204.7%200%200%201-1.782%201.884%204.77%204.77%200%200%201-2.485.67%205.6%205.6%200%200%201-1.485-.188l.009%202.764a1.255%201.255%200%200%201-1.255%201.259h-1.729a1.255%201.255%200%200%201-1.255-1.255v-3.537a1.255%201.255%200%200%201-1.167.793h-1.679a1.25%201.25%200%200%201-.77-.263%204.5%204.5%200%200%201-1.945.429c-.885%200-1.724-.21-2.495-.632l-.017-.01a5%205%200%200%201-1.081-.836%201.255%201.255%200%200%201-1.254%201.312h-1.81a1.255%201.255%200%200%201-1.228-.99l-.782-3.625-2.044%203.939a1.25%201.25%200%200%201-1.115.676h-.098a1.25%201.25%200%200%201-1.116-.68l-2.061-3.994zM35.92%2016.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033%201.332h1.678V9.242h-1.694l-.033%201.267q-.133-.329-.526-.658l-.032-.028a3.2%203.2%200%200%200-.668-.428l-.27-.12a3.3%203.3%200%200%200-1.235-.23q-1.136-.001-1.974.493a3.36%203.36%200%200%200-1.3%201.382q-.445.89-.444%202.074%200%201.2.51%202.107a3.8%203.8%200%200%200%201.382%201.381%203.9%203.9%200%200%200%201.893.477q.795%200%201.455-.33zm-2.789-5.38q-.576.675-.575%201.762%200%201.102.559%201.794.576.675%201.645.675a2.25%202.25%200%200%200%20.934-.19%202.2%202.2%200%200%200%20.468-.29l.178-.161a2.2%202.2%200%200%200%20.397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2%202.2%200%200%200-.633-.709l-.13-.086-.047-.028a2.1%202.1%200%200%200-1.073-.285q-1.052%200-1.629.692zm2.316%202.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96%200%200%200-.353-.389.85.85%200%200%200-.464-.127c-.4%200-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945%200%20.506.122.801.27.99.097.11.266.224.68.224.303%200%20.504-.09.687-.269zm7.545%201.705a2.6%202.6%200%200%200%20.331.423q.319.33.755.548l.173.074q.65.255%201.49.255%201.02%200%201.844-.493a3.45%203.45%200%200%200%201.316-1.4q.493-.904.493-2.089%200-1.909-.988-2.913-.988-1.02-2.584-1.02-.898%200-1.575.347a3%203%200%200%200-.415.262l-.199.166a3.4%203.4%200%200%200-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296%201.119.297%201.07%200%201.645-.675.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.435%200-.835.16a2%202%200%200%200-.284.136%202%202%200%200%200-.363.254%202.2%202.2%200%200%200-.46.569l-.082.162a2.6%202.6%200%200%200-.213%201.072v.115q0%20.707.296%201.267l.135.211zm.964-.818a1.1%201.1%200%200%200%20.367.385.94.94%200%200%200%20.476.118c.423%200%20.59-.117.687-.23.159-.194.28-.478.28-.95%200-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1%201%200%200%200-.503.135l-.012.007a.86.86%200%200%200-.335.343c-.073.133-.132.324-.132.614v.115a1.4%201.4%200%200%200%20.14.66zm15.7-6.222q.347-.346.346-.856a1.05%201.05%200%200%200-.345-.79%201.18%201.18%200%200%200-.84-.329q-.51%200-.855.33a1.05%201.05%200%200%200-.346.79q0%20.51.346.855.345.346.856.346.51%200%20.839-.346zm4.337%209.314.033-1.332q.191.403.59.747l.098.081a4%204%200%200%200%20.316.224l.223.122a3.2%203.2%200%200%200%201.44.322%203.8%203.8%200%200%200%201.875-.477%203.5%203.5%200%200%200%201.382-1.366q.527-.89.526-2.09%200-1.184-.444-2.073a3.24%203.24%200%200%200-1.283-1.399q-.823-.51-1.942-.51a3.5%203.5%200%200%200-1.527.344l-.086.043-.165.09a3%203%200%200%200-.33.214q-.432.315-.656.707a2%202%200%200%200-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5%202.5%200%200%200%20.566.7q.117.098.245.18l.144.08a2.1%202.1%200%200%200%20.975.232q1.07%200%201.645-.675.576-.69.576-1.778%200-1.102-.576-1.777-.56-.691-1.645-.692a2.2%202.2%200%200%200-1.015.235q-.22.113-.415.282l-.15.142a2.1%202.1%200%200%200-.42.594q-.223.479-.223%201.1v.115q0%20.705.293%201.26zm2.616-.293c.157-.191.28-.479.28-.967%200-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87%200%200%200-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0%20.285.057.499.144.669a1.1%201.1%200%200%200%20.367.405c.137.082.28.123.455.123.423%200%20.59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493%200%20.642.099l.247-1.794q-.196-.099-.717-.099a2.3%202.3%200%200%200-.545.063%202%202%200%200%200-.411.148%202.2%202.2%200%200%200-.4.249%202.5%202.5%200%200%200-.485.499%202.7%202.7%200%200%200-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5%201.5%200%200%201%20.466-.636%202.5%202.5%200%200%201%20.399-.253%202%202%200%200%201%20.224-.099zm9.784%202.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46%203.46%200%200%200-1.4%201.382q-.493.906-.493%202.106%200%201.07.428%201.975.428.89%201.332%201.432.906.526%202.255.526.973%200%201.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954%200-1.497-.444a1.6%201.6%200%200%201-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1%201%200%200%200-.156-.176q-.46-.428-1.316-.428-.986%200-1.494.604-.379.45-.494%201.234zm-27.053%202.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z%22%2F%3E%3Cpath%20fill%3D%22%23fff%22%20d%3D%22m19.63%2011.151-.757-1.71-.345%201.71-1.12%205.644h-1.827L18.083%204.7h.197l3.325%206.533.988%202.19.988-2.19L26.839%204.7h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.93%205.644h-.098l-2.913-5.644zm14.836%205.81q-1.02%200-1.893-.478a3.8%203.8%200%200%201-1.381-1.382q-.51-.906-.51-2.106%200-1.185.444-2.074a3.36%203.36%200%200%201%201.3-1.382q.839-.494%201.974-.494a3.3%203.3%200%200%201%201.234.231%203.3%203.3%200%200%201%20.97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02%201.053a3.17%203.17%200%200%201-1.662.444zm.296-1.482q.938%200%201.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2%202.2%200%200%200-.807-.872%202.1%202.1%200%200%200-1.119-.313q-1.053%200-1.629.692-.575.675-.575%201.76%200%201.103.559%201.795.577.675%201.645.675zm6.521-6.237h1.711v1.4q.906-1.597%202.83-1.597%201.596%200%202.584%201.02.988%201.005.988%202.914%200%201.185-.493%202.09a3.46%203.46%200%200%201-1.316%201.399%203.5%203.5%200%200%201-1.844.493q-.954%200-1.662-.329a2.67%202.67%200%200%201-1.086-.97l.017%205.134h-1.728zm4.048%206.22q1.07%200%201.645-.674.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.592%200-1.12.296-.51.28-.822.823-.296.527-.296%201.234v.115q0%20.708.296%201.267.313.543.823.855.51.296%201.119.297z%22%2F%3E%3Cpath%20fill%3D%22%23e1e3e9%22%20d%3D%22M51.325%204.7h1.86v10.45h3.473v1.646h-5.333zm7.12%204.542h1.843v7.553h-1.843zm.905-1.415a1.16%201.16%200%200%201-.856-.346%201.17%201.17%200%200%201-.346-.856%201.05%201.05%200%200%201%20.346-.79q.346-.329.856-.329.494%200%20.839.33a1.05%201.05%200%200%201%20.345.79%201.16%201.16%200%200%201-.345.855q-.33.346-.84.346zm7.875%209.133a3.17%203.17%200%200%201-1.662-.444q-.723-.46-1.004-1.053l-.033%201.332h-1.71V4.701h1.743v4.657l-.082%201.283q.279-.658%201.086-1.119a3.5%203.5%200%200%201%201.778-.477q1.119%200%201.942.51a3.24%203.24%200%200%201%201.283%201.4q.445.888.444%202.072%200%201.201-.526%202.09a3.5%203.5%200%200%201-1.382%201.366%203.8%203.8%200%200%201-1.876.477zm-.296-1.481q1.069%200%201.645-.675.577-.69.577-1.778%200-1.102-.577-1.776-.56-.691-1.645-.692a2.12%202.12%200%200%200-1.58.659q-.642.641-.642%201.694v.115q0%20.71.296%201.267a2.4%202.4%200%200%200%20.807.872%202.1%202.1%200%200%200%201.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14%202.14%200%200%201%201.349-.46q.527%200%20.724.098l-.247%201.794q-.149-.099-.642-.099-.774%200-1.416.494-.626.493-.626%201.58v3.883h-1.777V9.242zm9.534%207.718q-1.35%200-2.255-.526-.904-.543-1.332-1.432a4.6%204.6%200%200%201-.428-1.975q0-1.2.493-2.106a3.46%203.46%200%200%201%201.4-1.382q.889-.495%202.007-.494%201.744%200%202.584.97.855.956.856%202.7%200%20.444-.05.92h-5.43q.18%201.005.708%201.45.542.443%201.497.443.79%200%201.3-.131a4%204%200%200%200%20.938-.362l.542%201.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728%200-1.991%201.86z%22%2F%3E%3Cpath%20d%3D%22M5.074%2015.948a.484.657%200%200%200-.486.659v1.84a.484.657%200%200%200%20.486.659h4.101a.484.657%200%200%200%20.486-.659v-1.84a.484.657%200%200%200-.486-.659zm3.56%201.16H5.617v.838h3.017z%22%20style%3D%22fill%3A%23fff%3Bfill-rule%3Aevenodd%3Bstroke-width%3A1.03600001%22%2F%3E%3Cg%20style%3D%22stroke-width%3A1.12603545%22%3E%3Cpath%20d%3D%22M-9.408-1.416c-3.833-.025-7.056%202.912-7.08%206.615-.02%203.08%201.653%204.832%203.107%206.268.903.892%201.721%201.74%202.32%202.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87%201.87%200%200%200-.362%201.121l-.011%201.877c-.003.402.104.787.347%201.125.244.338.688.653%201.23.656l4.142.028c.542.003.99-.306%201.238-.641a1.87%201.87%200%200%200%20.363-1.121l.012-1.875a1.87%201.87%200%200%200-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145%201.425-1.983%202.348-2.87%201.473-1.414%203.18-3.149%203.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006%201.1v.002c3.274.02%205.92%202.532%205.9%205.6-.017%202.706-1.39%204.026-2.863%205.44-1.034.994-2.118%202.033-2.814%203.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34%200%200%201-.226.084.34.34%200%200%201-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067%202.7-5.545%205.975-5.523m-.02%202.826c-1.62-.01-2.944%201.315-2.955%202.96-.01%201.646%201.295%202.988%202.916%202.999h.002c1.621.01%202.943-1.316%202.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005%201.1c1.017.006%201.829.83%201.822%201.89s-.83%201.874-1.848%201.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874%201.848-1.868m-2.155%2011.857%204.14.025c.271.002.49.305.487.676l-.013%201.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668%22%20style%3D%22color%3A%23000%3Bfont-style%3Anormal%3Bfont-variant%3Anormal%3Bfont-weight%3A400%3Bfont-stretch%3Anormal%3Bfont-size%3Amedium%3Bline-height%3Anormal%3Bfont-family%3Asans-serif%3Bfont-variant-ligatures%3Anormal%3Bfont-variant-position%3Anormal%3Bfont-variant-caps%3Anormal%3Bfont-variant-numeric%3Anormal%3Bfont-variant-alternates%3Anormal%3Bfont-feature-settings%3Anormal%3Btext-indent%3A0%3Btext-align%3Astart%3Btext-decoration%3Anone%3Btext-decoration-line%3Anone%3Btext-decoration-style%3Asolid%3Btext-decoration-color%3A%23000%3Bletter-spacing%3Anormal%3Bword-spacing%3Anormal%3Btext-transform%3Anone%3Bwriting-mode%3Alr-tb%3Bdirection%3Altr%3Btext-orientation%3Amixed%3Bdominant-baseline%3Aauto%3Bbaseline-shift%3Abaseline%3Btext-anchor%3Astart%3Bwhite-space%3Anormal%3Bshape-padding%3A0%3Bclip-rule%3Aevenodd%3Bdisplay%3Ainline%3Boverflow%3Avisible%3Bvisibility%3Avisible%3Bopacity%3A1%3Bisolation%3Aauto%3Bmix-blend-mode%3Anormal%3Bcolor-interpolation%3AsRGB%3Bcolor-interpolation-filters%3AlinearRGB%3Bsolid-color%3A%23000%3Bsolid-opacity%3A1%3Bvector-effect%3Anone%3Bfill%3A%23000%3Bfill-opacity%3A.4%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-linecap%3Abutt%3Bstroke-linejoin%3Amiter%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-dashoffset%3A0%3Bstroke-opacity%3A1%3Bcolor-rendering%3Aauto%3Bimage-rendering%3Aauto%3Bshape-rendering%3Aauto%3Btext-rendering%3Aauto%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-9.415-.316C-12.69-.338-15.37%202.14-15.39%205.207c-.017%202.716%201.326%204.041%202.78%205.477%201.013%201%202.081%202.055%202.78%203.67l.092.076a.34.34%200%200%200%20.225.086.34.34%200%200%200%20.227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6%201.78-2.64%202.814-3.634%201.473-1.414%202.847-2.733%202.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057%208.784c1.621.011%202.944-1.315%202.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945%201.315-2.955%202.96s1.295%202.989%202.916%203%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23e1e3e9%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-11.594%2015.465c-.27-.002-.492.297-.494.668l-.012%201.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23fff%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl.maplibregl-ctrl-attrib{padding:0 5px;background-color:hsla(0,0%,100%,.5);margin:0}@media screen{.maplibregl-ctrl-attrib.maplibregl-compact{min-height:20px;padding:2px 24px 2px 0;margin:10px;position:relative;background-color:#fff;color:#000;border-radius:12px;box-sizing:content-box}.maplibregl-ctrl-attrib.maplibregl-compact-show{padding:2px 28px 2px 8px;visibility:visible}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact-show,.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact-show{padding:2px 8px 2px 28px;border-radius:12px}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-inner{display:none}.maplibregl-ctrl-attrib-button{display:none;cursor:pointer;position:absolute;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20fill-rule%3D%22evenodd%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M4%2010a6%206%200%201%200%2012%200%206%206%200%201%200-12%200m5-3a1%201%200%201%200%202%200%201%201%200%201%200-2%200m0%203a1%201%200%201%201%202%200v3a1%201%200%201%201-2%200%22%2F%3E%3C%2Fsvg%3E");background-color:hsla(0,0%,100%,.5);width:24px;height:24px;box-sizing:border-box;border-radius:12px;outline:none;top:0;right:0;border:0}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;list-style:none}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button::-webkit-details-marker{display:none}.maplibregl-ctrl-bottom-left .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-top-left .maplibregl-ctrl-attrib-button{left:0}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-inner{display:block}.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-button{background-color:rgba(0,0,0,.05)}.maplibregl-ctrl-bottom-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;right:0}.maplibregl-ctrl-top-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{top:0;right:0}.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{top:0;left:0}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;left:0}}@media screen and (forced-colors:active){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22%23fff%22%20fill-rule%3D%22evenodd%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M4%2010a6%206%200%201%200%2012%200%206%206%200%201%200-12%200m5-3a1%201%200%201%200%202%200%201%201%200%201%200-2%200m0%203a1%201%200%201%201%202%200v3a1%201%200%201%201-2%200%22%2F%3E%3C%2Fsvg%3E")}}@media screen and (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20fill-rule%3D%22evenodd%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M4%2010a6%206%200%201%200%2012%200%206%206%200%201%200-12%200m5-3a1%201%200%201%200%202%200%201%201%200%201%200-2%200m0%203a1%201%200%201%201%202%200v3a1%201%200%201%201-2%200%22%2F%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl-attrib a{color:rgba(0,0,0,.75);text-decoration:none}.maplibregl-ctrl-attrib a:hover{color:inherit;text-decoration:underline}.maplibregl-attrib-empty{display:none}.maplibregl-ctrl-scale{background-color:hsla(0,0%,100%,.75);font-size:10px;white-space:nowrap;border-color:#333;border-style:none solid solid;border-width:medium 2px 2px;padding:0 5px;color:#333;box-sizing:border-box}.maplibregl-popup{position:absolute;top:0;left:0;display:flex;will-change:transform;pointer-events:none}.maplibregl-popup-anchor-top,.maplibregl-popup-anchor-top-left,.maplibregl-popup-anchor-top-right{flex-direction:column}.maplibregl-popup-anchor-bottom,.maplibregl-popup-anchor-bottom-left,.maplibregl-popup-anchor-bottom-right{flex-direction:column-reverse}.maplibregl-popup-anchor-left{flex-direction:row}.maplibregl-popup-anchor-right{flex-direction:row-reverse}.maplibregl-popup-tip{width:0;height:0;border:10px solid transparent;z-index:1}.maplibregl-popup-anchor-top .maplibregl-popup-tip{align-self:center;border-top:none;border-bottom-color:#fff}.maplibregl-popup-anchor-top-left .maplibregl-popup-tip{align-self:flex-start;border-top:none;border-left:none;border-bottom-color:#fff}.maplibregl-popup-anchor-top-right .maplibregl-popup-tip{align-self:flex-end;border-top:none;border-right:none;border-bottom-color:#fff}.maplibregl-popup-anchor-bottom .maplibregl-popup-tip{align-self:center;border-bottom:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip{align-self:flex-start;border-bottom:none;border-left:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip{align-self:flex-end;border-bottom:none;border-right:none;border-top-color:#fff}.maplibregl-popup-anchor-left .maplibregl-popup-tip{align-self:center;border-left:none;border-right-color:#fff}.maplibregl-popup-anchor-right .maplibregl-popup-tip{align-self:center;border-right:none;border-left-color:#fff}[dir=rtl] .maplibregl-popup-anchor-left{flex-direction:row-reverse}[dir=rtl] .maplibregl-popup-anchor-right{flex-direction:row}[dir=rtl] .maplibregl-popup-anchor-top-left .maplibregl-popup-tip{align-self:flex-end}[dir=rtl] .maplibregl-popup-anchor-top-right .maplibregl-popup-tip{align-self:flex-start}[dir=rtl] .maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip{align-self:flex-end}[dir=rtl] .maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip{align-self:flex-start}.maplibregl-popup-close-button{position:absolute;right:0;top:0;border:0;border-radius:0 3px 0 0;cursor:pointer;background-color:transparent}.maplibregl-popup-close-button:hover{background-color:rgba(0,0,0,.05)}.maplibregl-popup-content{position:relative;background:#fff;border-radius:3px;box-shadow:0 1px 2px rgba(0,0,0,.1);padding:15px 10px;pointer-events:auto}.maplibregl-popup-anchor-top-left .maplibregl-popup-content{border-top-left-radius:0}.maplibregl-popup-anchor-top-right .maplibregl-popup-content{border-top-right-radius:0}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-content{border-bottom-left-radius:0}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-content{border-bottom-right-radius:0}.maplibregl-popup-track-pointer{display:none}.maplibregl-popup-track-pointer *{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-map:hover .maplibregl-popup-track-pointer{display:flex}.maplibregl-map:active .maplibregl-popup-track-pointer{display:none}.maplibregl-marker{position:absolute;top:0;left:0;will-change:transform;transition:opacity .2s}.maplibregl-marker-draggable{cursor:grab}.maplibregl-user-location-dot,.maplibregl-user-location-dot:before{background-color:#1da1f2;width:15px;height:15px;border-radius:50%}.maplibregl-user-location-dot:before{content:"";position:absolute;animation:maplibregl-user-location-dot-pulse 2s infinite}.maplibregl-user-location-dot:after{border-radius:50%;border:2px solid #fff;content:"";height:19px;left:-2px;position:absolute;top:-2px;width:19px;box-sizing:border-box;box-shadow:0 0 3px rgba(0,0,0,.35)}@media (prefers-reduced-motion:reduce){.maplibregl-user-location-dot:before{animation:none}}@keyframes maplibregl-user-location-dot-pulse{0%{transform:scale(1);opacity:1}70%{transform:scale(3);opacity:0}to{transform:scale(1);opacity:0}}.maplibregl-user-location-dot-stale{background-color:#aaa}.maplibregl-user-location-dot-stale:after{display:none}.maplibregl-user-location-accuracy-circle{background-color:#1da1f233;width:1px;height:1px;border-radius:100%}.maplibregl-crosshair,.maplibregl-crosshair .maplibregl-interactive,.maplibregl-crosshair .maplibregl-interactive:active{cursor:crosshair}.maplibregl-boxzoom{position:absolute;top:0;left:0;width:0;height:0;background:#fff;border:2px dotted #202020;opacity:.5}.maplibregl-cooperative-gesture-screen{background:rgba(0,0,0,.4);position:absolute;inset:0;display:flex;justify-content:center;align-items:center;color:#fff;padding:1rem;font-size:1.4em;line-height:1.2;opacity:0;pointer-events:none;transition:opacity 1s ease 1s;z-index:99999}.maplibregl-cooperative-gesture-screen.maplibregl-show{opacity:1;transition:opacity .05s}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:none}@media (hover:none),(pointer:coarse){.maplibregl-cooperative-gesture-screen .maplibregl-desktop-message{display:none}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:block}}.maplibregl-pseudo-fullscreen{position:fixed!important;width:100%!important;height:100%!important;top:0!important;left:0!important;z-index:99999}',document.head.appendChild(e)}})()});var Ar=G(Ur=>{"use strict";var A5=To(),yk=ph(),gk=g5(),zMe=$c().addStyleRule,xk=At(),ple=qn(),mle=q0(),yle=xk.extendFlat,k5=xk.extendDeepAll;Ur.modules={};Ur.allCategories={};Ur.allTypes=[];Ur.subplotsRegistry={};Ur.componentsRegistry={};Ur.layoutArrayContainers=[];Ur.layoutArrayRegexes=[];Ur.traceLayoutAttributes={};Ur.localeRegistry={};Ur.apiMethodRegistry={};Ur.collectableSubplotTypes=null;Ur.register=function(r){if(Ur.collectableSubplotTypes=null,r)r&&!Array.isArray(r)&&(r=[r]);else throw new Error("No argument passed to Plotly.register.");for(var t=0;t{"use strict";var wle=c0().timeFormat,qk=Gr(),L5=To(),So=(h0(),Fe(d0)).mod,E0=(Rt(),Fe(Nt)),di=E0.BADNUM,En=E0.ONEDAY,jc=E0.ONEHOUR,Co=E0.ONEMIN,P0=E0.ONESEC,Qc=E0.EPOCHJD,Gl=Ar(),Mk=c0().utcFormat,Tle=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\d)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d(:?\d\d)?)?)?)?)?)?\s*$/m,Mle=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\di?)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d(:?\d\d)?)?)?)?)?)?\s*$/m,Ak=new Date().getFullYear()-70;function Ul(e){return e&&Gl.componentsRegistry.calendars&&typeof e=="string"&&e!=="gregorian"}na.dateTick0=function(e,r){var t=Ale(e,!!r);if(r<2)return t;var a=na.dateTime2ms(t,e);return a+=En*(r-1),na.ms2DateTime(a,0,e)};function Ale(e,r){return Ul(e)?r?Gl.getComponentMethod("calendars","CANONICAL_SUNDAY")[e]:Gl.getComponentMethod("calendars","CANONICAL_TICK")[e]:r?"2000-01-02":"2000-01-01"}na.dfltRange=function(e){return Ul(e)?Gl.getComponentMethod("calendars","DFLTRANGE")[e]:["2000-01-01","2001-01-01"]};na.isJSDate=function(e){return typeof e=="object"&&e!==null&&typeof e.getTime=="function"};var Mh,Ah;na.dateTime2ms=function(e,r){if(na.isJSDate(e)){var t=e.getTimezoneOffset()*Co,a=(e.getUTCMinutes()-e.getMinutes())*Co+(e.getUTCSeconds()-e.getSeconds())*P0+(e.getUTCMilliseconds()-e.getMilliseconds());if(a){var n=3*Co;t=t-n/2+So(a-t+n/2,n)}return e=Number(e)-t,e>=Mh&&e<=Ah?e:di}if(typeof e!="string"&&typeof e!="number")return di;e=String(e);var i=Ul(r),l=e.charAt(0);i&&(l==="G"||l==="g")&&(e=e.slice(1),r="");var o=i&&r.slice(0,7)==="chinese",s=e.match(o?Mle:Tle);if(!s)return di;var u=s[1],f=s[3]||"1",c=Number(s[5]||1),v=Number(s[7]||0),h=Number(s[9]||0),p=Number(s[11]||0);if(i){if(u.length===2)return di;u=Number(u);var m;try{var y=Gl.getComponentMethod("calendars","getCal")(r);if(o){var x=f.charAt(f.length-1)==="i";f=parseInt(f,10),m=y.newDate(u,y.toMonthIndex(u,f,x),c)}else m=y.newDate(u,Number(f),c)}catch(w){return di}return m?(m.toJD()-Qc)*En+v*jc+h*Co+p*P0:di}u.length===2?u=(Number(u)+2e3-Ak)%100+Ak:u=Number(u),f-=1;var _=new Date(Date.UTC(2e3,f,c,v,h));return _.setUTCFullYear(u),_.getUTCMonth()!==f||_.getUTCDate()!==c?di:_.getTime()+p*P0};Mh=na.MIN_MS=na.dateTime2ms("-9999");Ah=na.MAX_MS=na.dateTime2ms("9999-12-31 23:59:59.9999");na.isDateTime=function(e,r){return na.dateTime2ms(e,r)!==di};function D0(e,r){return String(e+Math.pow(10,r)).slice(1)}var Th=90*En,kk=3*jc,Lk=5*Co;na.ms2DateTime=function(e,r,t){if(typeof e!="number"||!(e>=Mh&&e<=Ah))return di;r||(r=0);var a=Math.floor(So(e+.05,1)*10),n=Math.round(e-a/10),i,l,o,s,u,f;if(Ul(t)){var c=Math.floor(n/En)+Qc,v=Math.floor(So(e,En));try{i=Gl.getComponentMethod("calendars","getCal")(t).fromJD(c).formatDate("yyyy-mm-dd")}catch(h){i=Mk("G%Y-%m-%d")(new Date(n))}if(i.charAt(0)==="-")for(;i.length<11;)i="-0"+i.slice(1);else for(;i.length<10;)i="0"+i;l=r=Mh+En&&e<=Ah-En))return di;var r=Math.floor(So(e+.05,1)*10),t=new Date(Math.round(e-r/10)),a=wle("%Y-%m-%d")(t),n=t.getHours(),i=t.getMinutes(),l=t.getSeconds(),o=t.getUTCMilliseconds()*10+r;return Dk(a,n,i,l,o)};function Dk(e,r,t,a,n){if((r||t||a||n)&&(e+=" "+D0(r,2)+":"+D0(t,2),(a||n)&&(e+=":"+D0(a,2),n))){for(var i=4;n%10===0;)i-=1,n/=10;e+="."+D0(n,i)}return e}na.cleanDate=function(e,r,t){if(e===di)return r;if(na.isJSDate(e)||typeof e=="number"&&isFinite(e)){if(Ul(t))return L5.error("JS Dates and milliseconds are incompatible with world calendars",e),r;if(e=na.ms2DateTimeLocal(+e),!e&&r!==void 0)return r}else if(!na.isDateTime(e,t))return L5.error("unrecognized date",e),r;return e};var kle=/%\d?f/g,Lle=/%h/g,Cle={1:"1",2:"1",3:"2",4:"2"};function Ck(e,r,t,a){e=e.replace(kle,function(i){var l=Math.min(+i.charAt(1)||6,6),o=(r/1e3%1+2).toFixed(l).slice(2).replace(/0+$/,"")||"0";return o});var n=new Date(Math.floor(r+.05));if(e=e.replace(Lle,function(){return Cle[t("%q")(n)]}),Ul(a))try{e=Gl.getComponentMethod("calendars","worldCalFmt")(e,r,a)}catch(i){return"Invalid"}return t(e)(n)}var Sle=[59,59.9,59.99,59.999,59.9999];function qle(e,r){var t=So(e+.05,En),a=D0(Math.floor(t/jc),2)+":"+D0(So(Math.floor(t/Co),60),2);if(r!=="M"){qk(r)||(r=0);var n=Math.min(So(e/P0,60),Sle[r]),i=(100+n).toFixed(r).slice(1);r>0&&(i=i.replace(/0+$/,"").replace(/[\.]$/,"")),a+=":"+i}return a}na.formatDate=function(e,r,t,a,n,i){if(n=Ul(n)&&n,!r)if(t==="y")r=i.year;else if(t==="m")r=i.month;else if(t==="d")r=i.dayMonth+` +`+i.year;else return qle(e,t)+` +`+Ck(i.dayMonthYear,e,a,n);return Ck(r,e,a,n)};var Sk=3*En;na.incrementMonth=function(e,r,t){t=Ul(t)&&t;var a=So(e,En);if(e=Math.round(e-a),t)try{var n=Math.round(e/En)+Qc,i=Gl.getComponentMethod("calendars","getCal")(t),l=i.fromJD(n);return r%12?i.add(l,r,"m"):i.add(l,r/12,"y"),(l.toJD()-Qc)*En+a}catch(s){L5.error("invalid ms "+e+" in calendar "+t)}var o=new Date(e+Sk);return o.setUTCMonth(o.getUTCMonth()+r)+a-Sk};na.findExactDates=function(e,r){for(var t=0,a=0,n=0,i=0,l,o,s=Ul(r)&&Gl.getComponentMethod("calendars","getCal")(r),u=0;u{"use strict";Ek.exports=function(r){return r}});var q5=G(Vl=>{"use strict";var Dle=Gr(),Ple=To(),Ele=C5(),Rle=(Rt(),Fe(Nt)).BADNUM,S5=1e-9;Vl.findBin=function(e,r,t){if(Dle(r.start))return t?Math.ceil((e-r.start)/r.size-S5)-1:Math.floor((e-r.start)/r.size+S5);var a=0,n=r.length,i=0,l=n>1?(r[n-1]-r[0])/(n-1):1,o,s;for(l>=0?s=t?zle:Fle:s=t?Ile:Nle,e+=l*S5*(t?-1:1)*(l>=0?1:-1);a90&&Ple.log("Long binary search..."),a-1};function zle(e,r){return er}function Ile(e,r){return e>=r}Vl.sorterAsc=function(e,r){return e-r};Vl.sorterDes=function(e,r){return r-e};Vl.distinctVals=function(e){var r=e.slice();r.sort(Vl.sorterAsc);var t;for(t=r.length-1;t>-1&&r[t]===Rle;t--);for(var a=r[t]-r[0]||1,n=a/(t||1)/1e4,i=[],l,o=0;o<=t;o++){var s=r[o],u=s-l;l===void 0?(i.push(s),l=s):u>n&&(a=Math.min(a,u),i.push(s),l=s)}return{vals:i,minDiff:a}};Vl.roundUp=function(e,r,t){for(var a=0,n=r.length-1,i,l=0,o=t?0:1,s=t?1:0,u=t?Math.ceil:Math.floor;a0&&(a=1),t&&a)return e.sort(r)}return a?e:e.reverse()};Vl.findIndexOfMin=function(e,r){r=r||Ele;for(var t=1/0,a,n=0;nHle});function Ble(e){return Object.keys(e).sort()}var Hle,P5=Cr(()=>{"use strict";Hle=Ble});var Rk=G(ia=>{"use strict";var ev=Gr(),Ole=Sn().isArrayOrTypedArray;ia.aggNums=function(e,r,t,a){var n,i;if((!a||a>t.length)&&(a=t.length),ev(r)||(r=!1),Ole(t[0])){for(i=new Array(a),n=0;ne.length-1)return e[e.length-1];var t=r%1;return t*e[Math.ceil(r)]+(1-t)*e[Math.floor(r)]}});var Bk=G((OMe,Ik)=>{"use strict";var zk=(h0(),Fe(d0)),E5=zk.mod,Yle=zk.modHalf,rv=Math.PI,qo=2*rv;function Gle(e){return e/180*rv}function Ule(e){return e/rv*180}function R5(e){return Math.abs(e[1]-e[0])>qo-1e-14}function Fk(e,r){return Yle(r-e,qo)}function Vle(e,r){return Math.abs(Fk(e,r))}function Nk(e,r){if(R5(r))return!0;var t,a;r[0]a&&(a+=qo);var n=E5(e,qo),i=n+qo;return n>=t&&n<=a||i>=t&&i<=a}function Xle(e,r,t,a){if(!Nk(r,a))return!1;var n,i;return t[0]=n&&e<=i}function z5(e,r,t,a,n,i,l){n=n||0,i=i||0;var o=R5([t,a]),s,u,f,c,v;o?(s=0,u=rv,f=qo):t{"use strict";Gs.isLeftAnchor=function(r){return r.xanchor==="left"||r.xanchor==="auto"&&r.x<=1/3};Gs.isCenterAnchor=function(r){return r.xanchor==="center"||r.xanchor==="auto"&&r.x>1/3&&r.x<2/3};Gs.isRightAnchor=function(r){return r.xanchor==="right"||r.xanchor==="auto"&&r.x>=2/3};Gs.isTopAnchor=function(r){return r.yanchor==="top"||r.yanchor==="auto"&&r.y>=2/3};Gs.isMiddleAnchor=function(r){return r.yanchor==="middle"||r.yanchor==="auto"&&r.y>1/3&&r.y<2/3};Gs.isBottomAnchor=function(r){return r.yanchor==="bottom"||r.yanchor==="auto"&&r.y<=1/3}});var Gk=G(Us=>{"use strict";var F5=(h0(),Fe(d0)).mod;Us.segmentsIntersect=Yk;function Yk(e,r,t,a,n,i,l,o){var s=t-e,u=n-e,f=l-n,c=a-r,v=i-r,h=o-i,p=s*h-f*c;if(p===0)return null;var m=(u*h-f*v)/p,y=(u*c-s*v)/p;return y<0||y>1||m<0||m>1?null:{x:e+s*m,y:r+c*m}}Us.segmentDistance=function(r,t,a,n,i,l,o,s){if(Yk(r,t,a,n,i,l,o,s))return 0;var u=a-r,f=n-t,c=o-i,v=s-l,h=u*u+f*f,p=c*c+v*v,m=Math.min(kh(u,f,h,i-r,l-t),kh(u,f,h,o-r,s-t),kh(c,v,p,r-i,t-l),kh(c,v,p,a-i,n-l));return Math.sqrt(m)};function kh(e,r,t,a,n){var i=a*e+n*r;if(i<0)return a*a+n*n;if(i>t){var l=a-e,o=n-r;return l*l+o*o}else{var s=a*r-n*e;return s*s/t}}var Lh,N5,Ok;Us.getTextLocation=function(r,t,a,n){if((r!==N5||n!==Ok)&&(Lh={},N5=r,Ok=n),Lh[a])return Lh[a];var i=r.getPointAtLength(F5(a-n/2,t)),l=r.getPointAtLength(F5(a+n/2,t)),o=Math.atan((l.y-i.y)/(l.x-i.x)),s=r.getPointAtLength(F5(a,t)),u=(s.x*4+i.x+l.x)/6,f=(s.y*4+i.y+l.y)/6,c={x:u,y:f,theta:o};return Lh[a]=c,c};Us.clearLocationCache=function(){N5=null};Us.getVisibleSegment=function(r,t,a){var n=t.left,i=t.right,l=t.top,o=t.bottom,s=0,u=r.getTotalLength(),f=u,c,v;function h(m){var y=r.getPointAtLength(m);m===0?c=y:m===u&&(v=y);var x=y.xi?y.x-i:0,_=y.yo?y.y-o:0;return Math.sqrt(x*x+_*_)}for(var p=h(s);p;){if(s+=p+a,s>f)return;p=h(s)}for(p=h(f);p;){if(f-=p+a,s>f)return;p=h(f)}return{min:s,max:f,len:f-s,total:u,isClosed:s===0&&f===u&&Math.abs(c.x-v.x)<.1&&Math.abs(c.y-v.y)<.1}};Us.findPointOnPath=function(r,t,a,n){n=n||{};for(var i=n.pathLength||r.getTotalLength(),l=n.tolerance||.001,o=n.iterationLimit||30,s=r.getPointAtLength(0)[a]>r.getPointAtLength(i)[a]?-1:1,u=0,f=0,c=i,v,h,p;u0?c=v:f=v,u++}return h}});var Ch=G(tv=>{"use strict";var Xl={};tv.throttle=function(r,t,a){var n=Xl[r],i=Date.now();if(!n){for(var l in Xl)Xl[l].tsn.ts+t){o();return}n.timer=setTimeout(function(){o(),n.timer=null},t)};tv.done=function(e){var r=Xl[e];return!r||!r.timer?Promise.resolve():new Promise(function(t){var a=r.onDone;r.onDone=function(){a&&a(),t(),r.onDone=null}})};tv.clear=function(e){if(e)Uk(Xl[e]),delete Xl[e];else for(var r in Xl)tv.clear(r)};function Uk(e){e&&e.timer!==null&&(clearTimeout(e.timer),e.timer=null)}});var Xk=G((VMe,Vk)=>{"use strict";Vk.exports=function(r){r._clearResponsive&&(r._clearResponsive(),delete r._clearResponsive)}});var Wk=G((XMe,Sh)=>{"use strict";Sh.exports=I5;Sh.exports.isMobile=I5;Sh.exports.default=I5;var $le=/(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|redmi|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,Kle=/CrOS/,jle=/android|ipad|playbook|silk/i;function I5(e){e||(e={});let r=e.ua;if(!r&&typeof navigator!="undefined"&&(r=navigator.userAgent),r&&r.headers&&typeof r.headers["user-agent"]=="string"&&(r=r.headers["user-agent"]),typeof r!="string")return!1;let t=$le.test(r)&&!Kle.test(r)||!!e.tablet&&jle.test(r);return!t&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&r.indexOf("Macintosh")!==-1&&r.indexOf("Safari")!==-1&&(t=!0),t}});var Jk=G((WMe,Zk)=>{"use strict";var Qle=Gr(),eoe=Wk();Zk.exports=function(r){var t;if(r&&r.hasOwnProperty("userAgent")?t=r.userAgent:t=roe(),typeof t!="string")return!0;var a=eoe({ua:{headers:{"user-agent":t}},tablet:!0,featureDetect:!1});if(!a)for(var n=t.split(" "),i=1;i-1;o--){var s=n[o];if(s.slice(0,8)==="Version/"){var u=s.slice(8).split(".")[0];if(Qle(u)&&(u=+u),u>=13)return!0}}}return a};function roe(){var e;return typeof navigator!="undefined"&&(e=navigator.userAgent),e&&e.headers&&typeof e.headers["user-agent"]=="string"&&(e=e.headers["user-agent"]),e}});var Kk=G((ZMe,$k)=>{"use strict";var toe=Er();$k.exports=function(r,t,a){var n=r.selectAll("g."+a.replace(/\s/g,".")).data(t,function(l){return l[0].trace.uid});n.exit().remove(),n.enter().append("g").attr("class",a),n.order();var i=r.classed("rangeplot")?"nodeRangePlot3":"node3";return n.each(function(l){l[0][i]=toe.select(this)}),n}});var Qk=G((JMe,jk)=>{"use strict";var aoe=Ar();jk.exports=function(r,t){for(var a=r._context.locale,n=0;n<2;n++){for(var i=r._context.locales,l=0;l<2;l++){var o=(i[a]||{}).dictionary;if(o){var s=o[t];if(s)return s}i=aoe.localeRegistry}var u=a.split("-")[0];if(u===a)break;a=u}return t}});var rL=G(($Me,eL)=>{"use strict";eL.exports=function(r){for(var t={},a=[],n=0,i=0;i{"use strict";tL.exports=function(r){for(var t=loe(r)?ioe:noe,a=[],n=0;n{"use strict";nL.exports=function(r,t){if(!t)return r;var a=1/Math.abs(t),n=a>1?(a*r+a*t)/a:r+t,i=String(n).length;if(i>16){var l=String(t).length,o=String(r).length;if(i>=o+l){var s=parseFloat(n).toPrecision(12);s.indexOf("e+")===-1&&(n=+s)}}return n}});var oL={};pt(oL,{default:()=>uoe});function soe(e){return typeof e=="string"&&(e=e.replace(ooe,"")),(0,lL.default)(e)?Number(e):void 0}var lL,ooe,uoe,sL=Cr(()=>{"use strict";lL=N9(Gr());Rt();ooe=/^['"%,$#\s']+|[, ]|['"%,$#\s']+$/g;uoe=soe});var cL=G((eAe,fL)=>{"use strict";var foe=/<[^>]*>/g,coe=/[\p{S}\p{P}]/gu,voe=/[\p{Cc}\p{Cf}\uFE00-\uFE0F\u20E3]/gu,doe=/�/g,hoe=/\s+/g,qh="-",uL=qh.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),poe=new RegExp(uL+"{3,}","g"),moe=new RegExp(uL+"$","g"),yoe=60;function goe(e){return typeof e.toWellFormed=="function"?e.toWellFormed():new TextDecoder().decode(new TextEncoder().encode(e))}fL.exports=function(r,t=yoe){var a=goe(r!=null?r:"").replace(doe,"").replace(foe," ").replace(coe,n=>n===qh?n:"").toLowerCase().trim().replace(hoe,qh).replace(voe,"").replace(poe,qh);return a.length<=t?a:Array.from(a).slice(0,t).join("").replace(moe,"")}});var Se=G((rAe,TL)=>{"use strict";var av=Er(),xoe=c0().utcFormat,boe=qg().format,yL=Gr(),gL=(Rt(),Fe(Nt)),xL=gL.FP_SAFE,_oe=-xL,vL=gL.BADNUM,ve={};TL.exports=ve;ve.adjustFormat=function(r){if(!r||/^\d[.]\df/.test(r)||/[.]\d%/.test(r))return r;if(r==="0.f")return"~f";if(/^\d%/.test(r))return"~%";if(/^\ds/.test(r))return"~s";var t=(r.match(/^[+\-( ]?/)||[""])[0],a=r.slice(t.length);return!/^[~,.0$#]/.test(a)&&/[&fps]/.test(a)?t+"~"+a:r};var dL={};ve.warnBadFormat=function(e){var r=String(e);dL[r]||(dL[r]=1,ve.warn('encountered bad format: "'+r+'"'))};ve.noFormat=function(e){return String(e)};ve.numberFormat=function(e){var r;try{r=boe(ve.adjustFormat(e))}catch(t){return ve.warnBadFormat(e),ve.noFormat}return r};ve.nestedProperty=Id();ve.keyedContainer=lw();ve.relativeAttr=sw();ve.isPlainObject=qs();ve.toLogRange=Hd();ve.relinkPrivateKeys=vw();var Do=Sn();ve.isArrayBuffer=Do.isArrayBuffer;ve.isTypedArray=Do.isTypedArray;ve.isArrayOrTypedArray=Do.isArrayOrTypedArray;ve.isArray1D=Do.isArray1D;ve.ensureArray=Do.ensureArray;ve.concat=Do.concat;ve.maxRowLength=Do.maxRowLength;ve.minRowLength=Do.minRowLength;var bL=(h0(),Fe(d0));ve.mod=bL.mod;ve.modHalf=bL.modHalf;var Po=EM();ve.valObjectMeta=Po.valObjectMeta;ve.coerce=Po.coerce;ve.coerce2=Po.coerce2;ve.coerceFont=Po.coerceFont;ve.coercePattern=Po.coercePattern;ve.coerceHoverinfo=Po.coerceHoverinfo;ve.coerceSelectionMarkerOpacity=Po.coerceSelectionMarkerOpacity;ve.validate=Po.validate;var Xn=Pk();ve.dateTime2ms=Xn.dateTime2ms;ve.isDateTime=Xn.isDateTime;ve.ms2DateTime=Xn.ms2DateTime;ve.ms2DateTimeLocal=Xn.ms2DateTimeLocal;ve.cleanDate=Xn.cleanDate;ve.isJSDate=Xn.isJSDate;ve.formatDate=Xn.formatDate;ve.incrementMonth=Xn.incrementMonth;ve.dateTick0=Xn.dateTick0;ve.dfltRange=Xn.dfltRange;ve.findExactDates=Xn.findExactDates;ve.MIN_MS=Xn.MIN_MS;ve.MAX_MS=Xn.MAX_MS;var Vs=q5();ve.findBin=Vs.findBin;ve.sorterAsc=Vs.sorterAsc;ve.sorterDes=Vs.sorterDes;ve.distinctVals=Vs.distinctVals;ve.roundUp=Vs.roundUp;ve.sort=Vs.sort;ve.findIndexOfMin=Vs.findIndexOfMin;ve.sortObjectKeys=(P5(),Fe(D5)).default;var Wl=Rk();ve.aggNums=Wl.aggNums;ve.len=Wl.len;ve.mean=Wl.mean;ve.geometricMean=Wl.geometricMean;ve.median=Wl.median;ve.midRange=Wl.midRange;ve.variance=Wl.variance;ve.stdev=Wl.stdev;ve.interp=Wl.interp;var Gi=mh();ve.init2dArray=Gi.init2dArray;ve.transposeRagged=Gi.transposeRagged;ve.dot=Gi.dot;ve.translationMatrix=Gi.translationMatrix;ve.rotationMatrix=Gi.rotationMatrix;ve.rotationXYMatrix=Gi.rotationXYMatrix;ve.apply3DTransform=Gi.apply3DTransform;ve.apply2DTransform=Gi.apply2DTransform;ve.apply2DTransform2=Gi.apply2DTransform2;ve.convertCssMatrix=Gi.convertCssMatrix;ve.inverseTransformMatrix=Gi.inverseTransformMatrix;var yl=Bk();ve.deg2rad=yl.deg2rad;ve.rad2deg=yl.rad2deg;ve.angleDelta=yl.angleDelta;ve.angleDist=yl.angleDist;ve.isFullCircle=yl.isFullCircle;ve.isAngleInsideSector=yl.isAngleInsideSector;ve.isPtInsideSector=yl.isPtInsideSector;ve.pathArc=yl.pathArc;ve.pathSector=yl.pathSector;ve.pathAnnulus=yl.pathAnnulus;var z0=Hk();ve.isLeftAnchor=z0.isLeftAnchor;ve.isCenterAnchor=z0.isCenterAnchor;ve.isRightAnchor=z0.isRightAnchor;ve.isTopAnchor=z0.isTopAnchor;ve.isMiddleAnchor=z0.isMiddleAnchor;ve.isBottomAnchor=z0.isBottomAnchor;var F0=Gk();ve.segmentsIntersect=F0.segmentsIntersect;ve.segmentDistance=F0.segmentDistance;ve.getTextLocation=F0.getTextLocation;ve.clearLocationCache=F0.clearLocationCache;ve.getVisibleSegment=F0.getVisibleSegment;ve.findPointOnPath=F0.findPointOnPath;var Eh=At();ve.extendFlat=Eh.extendFlat;ve.extendDeep=Eh.extendDeep;ve.extendDeepAll=Eh.extendDeepAll;ve.extendDeepNoArrays=Eh.extendDeepNoArrays;var B5=To();ve.log=B5.log;ve.warn=B5.warn;ve.error=B5.error;var woe=(L0(),Fe(Jc));ve.counterRegex=woe.counter;var H5=Ch();ve.throttle=H5.throttle;ve.throttleDone=H5.done;ve.clearThrottle=H5.clear;var Ui=$c();ve.getGraphDiv=Ui.getGraphDiv;ve.isPlotDiv=Ui.isPlotDiv;ve.removeElement=Ui.removeElement;ve.addStyleRule=Ui.addStyleRule;ve.addRelatedStyleRule=Ui.addRelatedStyleRule;ve.deleteRelatedStyleRule=Ui.deleteRelatedStyleRule;ve.setStyleOnHover=Ui.setStyleOnHover;ve.getFullTransformMatrix=Ui.getFullTransformMatrix;ve.getElementTransformMatrix=Ui.getElementTransformMatrix;ve.getElementAndAncestors=Ui.getElementAndAncestors;ve.equalDomRects=Ui.equalDomRects;ve.clearResponsive=Xk();ve.preserveDrawingBuffer=Jk();ve.makeTraceGroups=Kk();ve._=Qk();ve.notifier=u5();ve.filterUnique=rL();ve.filterVisible=aL();ve.pushUnique=g5();ve.increment=iL();ve.cleanNumber=(sL(),Fe(oL)).default;ve.slugify=cL();ve.ensureNumber=function(r){return yL(r)?(r=Number(r),r>xL||r<_oe?vL:r):vL};ve.isIndex=function(e,r){return r!==void 0&&e>=r?!1:yL(e)&&e>=0&&e%1===0};ve.noop=ph();ve.identity=C5();ve.repeat=function(e,r){for(var t=new Array(r),a=0;at?Math.max(t,Math.min(r,e)):Math.max(r,Math.min(t,e))};ve.bBoxIntersect=function(e,r,t){return t=t||0,e.left<=r.right+t&&r.left<=e.right+t&&e.top<=r.bottom+t&&r.top<=e.bottom+t};ve.simpleMap=function(e,r,t,a,n){for(var i=e.length,l=new Array(i),o=0;o=Math.pow(2,t)?n>10?(ve.warn("randstr failed uniqueness"),l):e(r,t,a,(n||0)+1):l};ve.OptionControl=function(e,r){e||(e={}),r||(r="opt");var t={};return t.optionList=[],t._newoption=function(a){a[r]=e,t[a.name]=a,t.optionList.push(a)},t["_"+r]=e,t};ve.smooth=function(e,r){if(r=Math.round(r)||0,r<2)return e;var t=e.length,a=2*t,n=2*r-1,i=new Array(n),l=new Array(t),o,s,u,f;for(o=0;o=a&&(u-=a*Math.floor(u/a)),u<0?u=-1-u:u>=t&&(u=a-1-u),f+=e[u]*i[s];l[o]=f}return l};ve.syncOrAsync=function(e,r,t){var a,n;function i(){return ve.syncOrAsync(e,r,t)}for(;e.length;)if(n=e.splice(0,1)[0],a=n(r),a&&a.then)return a.then(i);return t&&t(r)};ve.stripTrailingSlash=function(e){return e.slice(-1)==="/"?e.slice(0,-1):e};ve.noneOrAll=function(e,r,t){if(e){var a=!1,n=!0,i,l;for(i=0;i0?n:0})};ve.fillArray=function(e,r,t,a){if(a=a||ve.identity,ve.isArrayOrTypedArray(e))for(var n=0;nAoe.test(window.navigator.userAgent);var koe=/Firefox\/(\d+)\.\d+/;ve.getFirefoxVersion=function(){var e=koe.exec(window.navigator.userAgent);if(e&&e.length===2){var r=parseInt(e[1]);if(!isNaN(r))return r}return null};ve.isD3Selection=function(e){return e instanceof av.selection};ve.ensureSingle=function(e,r,t,a){var n=e.select(r+(t?"."+t:""));if(n.size())return n;var i=e.append(r);return t&&i.classed(t,!0),a&&i.call(a),i};ve.ensureSingleById=function(e,r,t,a){var n=e.select(r+"#"+t);if(n.size())return n;var i=e.append(r).attr("id",t);return a&&i.call(a),i};ve.objectFromPath=function(e,r){for(var t=e.split("."),a,n=a={},i=0;i1?n+l[1]:"";if(i&&(l.length>1||o.length>4||t))for(;a.test(o);)o=o.replace(a,"$1"+i+"$2");return o+s};ve.TEMPLATE_STRING_REGEX=/%{([^\s%{}:]*)([:|\|][^}]*)?}/g;var wL=/^\w*$/;ve.templateString=function(e,r){var t={};return e.replace(ve.TEMPLATE_STRING_REGEX,function(a,n){var i;return wL.test(n)?i=r[n]:(t[n]=t[n]||ve.nestedProperty(r,n).get,i=t[n](!0)),i!==void 0?i:""})};var Soe={max:10,count:0,name:"hovertemplate"};ve.hovertemplateString=e=>O5(Et(ct({},e),{opts:Soe}));var qoe={max:10,count:0,name:"texttemplate"};ve.texttemplateString=e=>O5(Et(ct({},e),{opts:qoe}));var Doe=/^(\S+)([\*\/])(-?\d+(\.\d+)?)$/;function Poe(e){var r=e.match(Doe);return r?{key:r[1],op:r[2],number:Number(r[3])}:{key:e,op:null,number:null}}var Eoe={max:10,count:0,name:"texttemplate",parseMultDiv:!0};ve.texttemplateStringForShapes=e=>O5(Et(ct({},e),{opts:Eoe}));var hL=/^[:|\|]/;function O5({data:e=[],locale:r,fallback:t,labels:a={},opts:n,template:i}){return i.replace(ve.TEMPLATE_STRING_REGEX,(l,o,s)=>{let u=["xother","yother"].includes(o),f=["_xother","_yother"].includes(o),c=["_xother_","_yother_"].includes(o),v=["xother_","yother_"].includes(o),h=u||f||v||c;(f||c)&&(o=o.substring(1)),(v||c)&&(o=o.substring(0,o.length-1));let p=null,m=null;if(n.parseMultDiv){var y=Poe(o);o=y.key,p=y.op,m=y.number}let x;if(h){if(a[o]===void 0)return"";x=a[o]}else for(let M of e)if(M){if(M.hasOwnProperty(o)){x=M[o];break}if(wL.test(o)||(x=ve.nestedProperty(M,o).get(!0)),x!==void 0)break}if(x===void 0){let{count:M,max:A,name:k}=n,S=t===!1?l:t;return M=Ph&&l<=pL,u=o>=Ph&&o<=pL;if(s&&(a=10*a+l-Ph),u&&(n=10*n+o-Ph),!s||!u){if(a!==n)return a-n;if(l!==o)return l-o}}return n-a};var R0=2e9;ve.seedPseudoRandom=function(){R0=2e9};ve.pseudoRandom=function(){var e=R0;return R0=(69069*R0+1)%4294967296,Math.abs(R0-e)<429496729?ve.pseudoRandom():R0/4294967296};ve.fillText=function(e,r,t){var a=Array.isArray(t)?function(l){t.push(l)}:function(l){t.text=l},n=ve.extractOption(e,r,"htx","hovertext");if(ve.isValidTextValue(n))return a(n);var i=ve.extractOption(e,r,"tx","text");if(ve.isValidTextValue(i))return a(i)};ve.isValidTextValue=function(e){return e||e===0};ve.formatPercent=function(e,r){r=r||0;for(var t=(Math.round(100*e*Math.pow(10,r))*Math.pow(.1,r)).toFixed(r)+"%",a=0;a1&&(u=1):u=0,ve.strTranslate(n-u*(t+l),i-u*(a+o))+ve.strScale(u)+(s?"rotate("+s+(r?"":" "+t+" "+a)+")":"")};ve.setTransormAndDisplay=function(e,r){e.attr("transform",ve.getTextTransform(r)),e.style("display",r.scale?null:"none")};ve.ensureUniformFontSize=function(e,r){var t=ve.extendFlat({},r);return t.size=Math.max(r.size,e._fullLayout.uniformtext.minsize||0),t};ve.join2=function(e,r,t){var a=e.length;return a>1?e.slice(0,-1).join(r)+t+e[a-1]:e.join(r)};ve.bigFont=function(e){return Math.round(1.2*e)};var mL=ve.getFirefoxVersion(),Roe=mL!==null&&mL<86;ve.getPositionFromD3Event=function(){return Roe?[av.event.layerX,av.event.layerY]:[av.event.offsetX,av.event.offsetY]}});var kL=G(()=>{"use strict";var zoe=Se(),ML={"X,X div":'direction:ltr;font-family:"Open Sans",verdana,arial,sans-serif;margin:0;padding:0;border: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 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:focus-within .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-group a":"display:grid;place-content:center;","X .modebar-btn":"position:relative;font-size:16px;padding:3px 4px;height:22px;cursor:pointer;line-height:normal;box-sizing:border-box;border:none;background:rgba(0,0,0,0);","X .modebar-btn svg":"position:relative;","X .modebar-btn:focus-visible":"outline:1px solid #000;outline-offset:1px;border-radius:3px;","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;","X .plotly-cloud-dialog":'font-family:"Open Sans",verdana,arial,sans-serif;position:absolute;top:0;left:0;width:100%;height:100%;z-index:1001;display:flex;align-items:center;justify-content:center;background-color:rgba(0,0,0,.4);',"X .plotly-cloud-dialog .plotly-cloud-dialog-box":"box-sizing:border-box;min-width:300px;max-width:420px;padding:20px 24px;background-color:#fff;border:1px solid #e0e2e5;border-radius:4px;box-shadow:0 4px 16px rgba(0,0,0,.25);font-size:13px;color:#2a3f5f;","X .plotly-cloud-dialog .plotly-cloud-dialog-title":"font-size:16px;font-weight:bold;margin-bottom:12px;","X .plotly-cloud-dialog .plotly-cloud-dialog-message":"line-height:1.5;overflow-wrap:break-word;word-wrap:break-word;","X .plotly-cloud-dialog .plotly-cloud-dialog-message--hostname":"font-weight:bold;text-decoration:underline;","X .plotly-cloud-dialog .plotly-cloud-dialog-message--account":"margin-top:16px;padding:8px;border-radius:3px;font-size:.9em;background-color:#edf1f8;","X .plotly-cloud-dialog .plotly-cloud-dialog-buttons":"display:flex;justify-content:flex-end;margin-top:20px;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn":"font-family:inherit;font-size:13px;padding:7px 16px;margin-left:8px;border-radius:3px;border:1px solid rgba(0,0,0,0);cursor:pointer;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn:focus-visible":"outline:2px solid #447adb;outline-offset:1px;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn--cancel":"background-color:#f3f3f3;margin-left:auto;color:#777;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn--cancel:hover":"background-color:#e0e2e5;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn--confirm":"background-color:#447adb;color:#fff;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn--confirm:hover":"background-color:#1d3b84;",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(Y5 in ML)AL=Y5.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier"),zoe.addStyleRule(AL,ML[Y5]);var AL,Y5});var G5=G((iAe,LL)=>{LL.exports=!0});var V5=G((lAe,CL)=>{"use strict";var Foe=G5(),U5;typeof window.matchMedia=="function"?U5=!window.matchMedia("(hover: none)").matches:U5=Foe;CL.exports=U5});var Fh=G((oAe,X5)=>{"use strict";var N0=typeof Reflect=="object"?Reflect:null,SL=N0&&typeof N0.apply=="function"?N0.apply:function(r,t,a){return Function.prototype.apply.call(r,t,a)},Rh;N0&&typeof N0.ownKeys=="function"?Rh=N0.ownKeys:Object.getOwnPropertySymbols?Rh=function(r){return Object.getOwnPropertyNames(r).concat(Object.getOwnPropertySymbols(r))}:Rh=function(r){return Object.getOwnPropertyNames(r)};function Noe(e){console&&console.warn&&console.warn(e)}var DL=Number.isNaN||function(r){return r!==r};function Lt(){Lt.init.call(this)}X5.exports=Lt;X5.exports.once=Ooe;Lt.EventEmitter=Lt;Lt.prototype._events=void 0;Lt.prototype._eventsCount=0;Lt.prototype._maxListeners=void 0;var qL=10;function zh(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(Lt,"defaultMaxListeners",{enumerable:!0,get:function(){return qL},set:function(e){if(typeof e!="number"||e<0||DL(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");qL=e}});Lt.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};Lt.prototype.setMaxListeners=function(r){if(typeof r!="number"||r<0||DL(r))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+r+".");return this._maxListeners=r,this};function PL(e){return e._maxListeners===void 0?Lt.defaultMaxListeners:e._maxListeners}Lt.prototype.getMaxListeners=function(){return PL(this)};Lt.prototype.emit=function(r){for(var t=[],a=1;a0&&(l=t[0]),l instanceof Error)throw l;var o=new Error("Unhandled error."+(l?" ("+l.message+")":""));throw o.context=l,o}var s=i[r];if(s===void 0)return!1;if(typeof s=="function")SL(s,this,t);else for(var u=s.length,f=NL(s,u),a=0;a0&&l.length>n&&!l.warned){l.warned=!0;var o=new Error("Possible EventEmitter memory leak detected. "+l.length+" "+String(r)+" listeners added. Use emitter.setMaxListeners() to increase limit");o.name="MaxListenersExceededWarning",o.emitter=e,o.type=r,o.count=l.length,Noe(o)}return e}Lt.prototype.addListener=function(r,t){return EL(this,r,t,!1)};Lt.prototype.on=Lt.prototype.addListener;Lt.prototype.prependListener=function(r,t){return EL(this,r,t,!0)};function Ioe(){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 RL(e,r,t){var a={fired:!1,wrapFn:void 0,target:e,type:r,listener:t},n=Ioe.bind(a);return n.listener=t,a.wrapFn=n,n}Lt.prototype.once=function(r,t){return zh(t),this.on(r,RL(this,r,t)),this};Lt.prototype.prependOnceListener=function(r,t){return zh(t),this.prependListener(r,RL(this,r,t)),this};Lt.prototype.removeListener=function(r,t){var a,n,i,l,o;if(zh(t),n=this._events,n===void 0)return this;if(a=n[r],a===void 0)return this;if(a===t||a.listener===t)--this._eventsCount===0?this._events=Object.create(null):(delete n[r],n.removeListener&&this.emit("removeListener",r,a.listener||t));else if(typeof a!="function"){for(i=-1,l=a.length-1;l>=0;l--)if(a[l]===t||a[l].listener===t){o=a[l].listener,i=l;break}if(i<0)return this;i===0?a.shift():Boe(a,i),a.length===1&&(n[r]=a[0]),n.removeListener!==void 0&&this.emit("removeListener",r,o||t)}return this};Lt.prototype.off=Lt.prototype.removeListener;Lt.prototype.removeAllListeners=function(r){var t,a,n;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[r]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete a[r]),this;if(arguments.length===0){var i=Object.keys(a),l;for(n=0;n=0;n--)this.removeListener(r,t[n]);return this};function zL(e,r,t){var a=e._events;if(a===void 0)return[];var n=a[r];return n===void 0?[]:typeof n=="function"?t?[n.listener||n]:[n]:t?Hoe(n):NL(n,n.length)}Lt.prototype.listeners=function(r){return zL(this,r,!0)};Lt.prototype.rawListeners=function(r){return zL(this,r,!1)};Lt.listenerCount=function(e,r){return typeof e.listenerCount=="function"?e.listenerCount(r):FL.call(e,r)};Lt.prototype.listenerCount=FL;function FL(e){var r=this._events;if(r!==void 0){var t=r[e];if(typeof t=="function")return 1;if(t!==void 0)return t.length}return 0}Lt.prototype.eventNames=function(){return this._eventsCount>0?Rh(this._events):[]};function NL(e,r){for(var t=new Array(r),a=0;a{"use strict";var W5=Fh().EventEmitter,Goe={init:function(e){if(e._ev instanceof W5)return e;var r=new W5,t=new W5;return e._ev=r,e._internalEv=t,e.on=r.on.bind(r),e.once=r.once.bind(r),e.removeListener=r.removeListener.bind(r),e.removeAllListeners=r.removeAllListeners.bind(r),e._internalOn=t.on.bind(t),e._internalOnce=t.once.bind(t),e._removeInternalListener=t.removeListener.bind(t),e._removeAllInternalListeners=t.removeAllListeners.bind(t),e.emit=function(a,n){r.emit(a,n),t.emit(a,n)},typeof e.addEventListener=="function"&&e.addEventListener("wheel",()=>{},{passive:!0}),e},triggerHandler:function(e,r,t){var a,n=e._ev;if(!n)return;var i=n._events[r];if(!i)return;function l(s){if(s.listener){if(n.removeListener(r,s.listener),!s.fired)return s.fired=!0,s.listener.apply(n,[t])}else return s.apply(n,[t])}i=Array.isArray(i)?i:[i];var o;for(o=0;o{"use strict";var HL=Se(),Uoe=wo().dfltConfig;function Voe(e,r){for(var t=[],a,n=0;nUoe.queueLength&&(e.undoQueue.queue.shift(),e.undoQueue.index--)};Zl.startSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!0,e.undoQueue.beginSequence=!0};Zl.stopSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!1,e.undoQueue.beginSequence=!1};Zl.undo=function(r){var t,a;if(!(r.undoQueue===void 0||isNaN(r.undoQueue.index)||r.undoQueue.index<=0)){for(r.undoQueue.index--,t=r.undoQueue.queue[r.undoQueue.index],r.undoQueue.inSequence=!0,a=0;a=r.undoQueue.queue.length)){for(t=r.undoQueue.queue[r.undoQueue.index],r.undoQueue.inSequence=!0,a=0;a{"use strict";GL.exports={_isLinkedToArray:"frames_entry",group:{valType:"string"},name:{valType:"string"},traces:{valType:"any"},baseframe:{valType:"string"},data:{valType:"any"},layout:{valType:"any"}}});var H0=G(xa=>{"use strict";var hi=Ar(),iv=Se(),Ih=qn(),J5=q0(),Xoe=Z5(),Woe=Kc(),Zoe=wo().configAttributes,UL=Oi(),Vi=iv.extendDeepAll,I0=iv.isPlainObject,Joe=iv.isArrayOrTypedArray,Bh=iv.nestedProperty,$oe=iv.valObjectMeta,$5="_isSubplotObj",Hh="_isLinkedToArray",Koe="_arrayAttrRegexps",XL="_deprecated",K5=[$5,Hh,Koe,XL];xa.IS_SUBPLOT_OBJ=$5;xa.IS_LINKED_TO_ARRAY=Hh;xa.DEPRECATED=XL;xa.UNDERSCORE_ATTRS=K5;xa.get=function(){var e={};return hi.allTypes.forEach(function(r){e[r]=Qoe(r)}),{defs:{valObjects:$oe,metaKeys:K5.concat(["description","role","editType","impliedEdits"]),editType:{traces:UL.traces,layout:UL.layout},impliedEdits:{}},traces:e,layout:ese(),frames:rse(),animation:B0(Woe),config:B0(Zoe)}};xa.crawl=function(e,r,t,a){var n=t||0;a=a||"",Object.keys(e).forEach(function(i){var l=e[i];if(K5.indexOf(i)===-1){var o=(a?a+".":"")+i;r(l,i,e,n,o),!xa.isValObject(l)&&I0(l)&&i!=="impliedEdits"&&xa.crawl(l,r,n+1,o)}})};xa.isValObject=function(e){return e&&e.valType!==void 0};xa.findArrayAttributes=function(e){var r=[],t=[],a=[],n,i;function l(s,u,f,c){t=t.slice(0,c).concat([u]),a=a.slice(0,c).concat([s&&s._isLinkedToArray]);var v=s&&(s.valType==="data_array"||s.arrayOk===!0)&&!(t[c-1]==="colorbar"&&(u==="ticktext"||u==="tickvals"));v&&o(n,0,"")}function o(s,u,f){var c=s[t[u]],v=f+t[u];if(u===t.length-1)Joe(c)&&r.push(i+v);else if(a[u]){if(Array.isArray(c))for(var h=0;h=i.length)return!1;if(e.dimensions===2){if(t++,r.length===t)return e;var l=r[t];if(!Nh(l))return!1;e=i[n][l]}else e=i[n]}else e=i}}return e}function Nh(e){return e===Math.round(e)&&e>=0}function Qoe(e){var r,t;r=hi.modules[e]._module,t=r.basePlotModule;var a={};a.type=null;var n=Vi({},Ih),i=Vi({},r.attributes);xa.crawl(i,function(s,u,f,c,v){Bh(n,v).set(void 0),s===void 0&&Bh(i,v).set(void 0)}),Vi(a,n),hi.traceIs(e,"noOpacity")&&delete a.opacity,hi.traceIs(e,"showLegend")||(delete a.showlegend,delete a.legendgroup),hi.traceIs(e,"noHover")&&(delete a.hoverinfo,delete a.hoverlabel),r.selectPoints||delete a.selectedpoints,Vi(a,i),t.attributes&&Vi(a,t.attributes),a.type=e;var l={meta:r.meta||{},categories:r.categories||{},animatable:!!r.animatable,type:e,attributes:B0(a)};if(r.layoutAttributes){var o={};Vi(o,r.layoutAttributes),l.layoutAttributes=B0(o)}return r.animatable||xa.crawl(l,function(s){xa.isValObject(s)&&"anim"in s&&delete s.anim}),l}function ese(){var e={},r,t;Vi(e,J5);for(r in hi.subplotsRegistry)if(t=hi.subplotsRegistry[r],!!t.layoutAttributes)if(Array.isArray(t.attr))for(var a=0;a{"use strict";var O0=Se(),lse=qn(),Eo="templateitemname",j5={name:{valType:"string",editType:"none"}};j5[Eo]={valType:"string",editType:"calc"};Xs.templatedArray=function(e,r){return r._isLinkedToArray=e,r.name=j5.name,r[Eo]=j5[Eo],r};Xs.traceTemplater=function(e){var r={},t,a;for(t in e)a=e[t],Array.isArray(a)&&a.length&&(r[t]=0);function n(i){t=O0.coerce(i,{},lse,"type");var l={type:t,_template:null};if(t in r){a=e[t];var o=r[t]%a.length;r[t]++,l._template=a[o]}return l}return{newTrace:n}};Xs.newContainer=function(e,r,t){var a=e._template,n=a&&(a[r]||t&&a[t]);O0.isPlainObject(n)||(n=null);var i=e[r]={_template:n};return i};Xs.arrayTemplater=function(e,r,t){var a=e._template,n=a&&a[JL(r)],i=a&&a[r];(!Array.isArray(i)||!i.length)&&(i=[]);var l={};function o(u){var f={name:u.name,_input:u},c=f[Eo]=u[Eo];if(!ZL(c))return f._template=n,f;for(var v=0;v=a&&(t._input||{})._templateitemname;i&&(n=a);var l=r+"["+n+"]",o;function s(){o={},i&&(o[l]={},o[l][Eo]=i)}s();function u(h,p){o[h]=p}function f(h,p){i?O0.nestedProperty(o[l],h).set(p):o[l+"."+h]=p}function c(){var h=o;return s(),h}function v(h,p){h&&f(h,p);var m=c();for(var y in m)O0.nestedProperty(e,y).set(m[y])}return{modifyBase:u,modifyItem:f,getUpdateObj:c,applyUpdate:v}}});var ka={};pt(ka,{AX_ID_PATTERN:()=>cse,AX_NAME_PATTERN:()=>vse,DFLTRANGEX:()=>bse,DFLTRANGEY:()=>_se,DRAGGERSIZE:()=>gse,HOUR_PATTERN:()=>hse,MINDRAG:()=>mse,MINZOOM:()=>yse,REDRAWDELAY:()=>xse,SUBPLOT_PATTERN:()=>dse,WEEKDAY_PATTERN:()=>pse,attrRegex:()=>sse,clipOnAxisFalseQuery:()=>Tse,idRegex:()=>ose,layerValue2layerClass:()=>Mse,traceLayerClasses:()=>wse,xAxisMatch:()=>use,yAxisMatch:()=>fse,zindexSeparator:()=>Ase});var ose,sse,use,fse,cse,vse,dse,hse,pse,mse,yse,gse,xse,bse,_se,wse,Tse,Mse,Ase,La=Cr(()=>{"use strict";L0();ose={x:Os("x","( domain)?"),y:Os("y","( domain)?")},sse=Os("[xy]axis"),use=Os("xaxis"),fse=Os("yaxis"),cse=/^[xyz][0-9]*( domain)?$/,vse=/^[xyz]axis[0-9]*$/,dse=/^x([0-9]*)y([0-9]*)$/,hse="hour",pse="day of week",mse=8,yse=20,gse=20,xse=50,bse=[-1,6],_se=[-1,4],wse=["imagelayer","heatmaplayer","contourcarpetlayer","contourlayer","funnellayer","waterfalllayer","barlayer","carpetlayer","violinlayer","boxlayer","ohlclayer","scattercarpetlayer","scatterlayer"],Tse=[".scatterlayer",".barlayer",".funnellayer",".waterfalllayer"],Mse={"above traces":"above","below traces":"below"},Ase="z"});var va=G(Rn=>{"use strict";var kse=Ar(),Q5=(La(),Fe(ka));Rn.id2name=function(r){if(!(typeof r!="string"||!r.match(Q5.AX_ID_PATTERN))){var t=r.split(" ")[0].slice(1);return t==="1"&&(t=""),r.charAt(0)+"axis"+t}};Rn.name2id=function(r){if(r.match(Q5.AX_NAME_PATTERN)){var t=r.slice(5);return t==="1"&&(t=""),r.charAt(0)+t}};Rn.cleanId=function(r,t,a){var n=/( domain)$/.test(r);if(!(typeof r!="string"||!r.match(Q5.AX_ID_PATTERN))&&!(t&&r.charAt(0)!==t)&&!(n&&!a)){var i=r.split(" ")[0].slice(1).replace(/^0+/,"");return i==="1"&&(i=""),r.charAt(0)+i+(n&&a?" domain":"")}};Rn.list=function(e,r,t){var a=e._fullLayout;if(!a)return[];var n=Rn.listIds(e,r),i=new Array(n.length),l;for(l=0;la?1:-1:+(e.slice(1)||1)-+(r.slice(1)||1)};Rn.ref2id=function(e){return/^[xyz]/.test(e)?e.split(" ")[0]:!1};function $L(e,r){if(r&&r.length){for(var t=0;t{"use strict";function Lse(e){var r=e._fullLayout._zoomlayer;r&&r.selectAll(".outline-controllers").remove()}function Cse(e){var r=e._fullLayout._zoomlayer;r&&r.selectAll(".select-outline").remove(),e._fullLayout._outlining=!1}KL.exports={clearOutlineControllers:Lse,clearOutline:Cse}});var Oh=G((mAe,jL)=>{"use strict";jL.exports={scattermode:{valType:"enumerated",values:["group","overlay"],dflt:"overlay",editType:"calc"},scattergap:{valType:"number",min:0,max:1,editType:"calc"}}});var ex=G(Gh=>{"use strict";var Yh=Ar(),yAe=(La(),Fe(ka)).SUBPLOT_PATTERN;Gh.getSubplotCalcData=function(e,r,t){var a=Yh.subplotsRegistry[r];if(!a)return[];for(var n=a.attr,i=[],l=0;l{"use strict";var Sse=Ar(),Y0=Se();Ws.manageCommandObserver=function(e,r,t,a){var n={},i=!0;r&&r._commandObserver&&(n=r._commandObserver),n.cache||(n.cache={}),n.lookupTable={};var l=Ws.hasSimpleAPICommandBindings(e,t,n.lookupTable);if(r&&r._commandObserver){if(l)return n;if(r._commandObserver.remove)return r._commandObserver.remove(),r._commandObserver=null,n}if(l){QL(e,l,n.cache),n.check=function(){if(i){var f=QL(e,l,n.cache);return f.changed&&a&&n.lookupTable[f.value]!==void 0&&(n.disable(),Promise.resolve(a({value:f.value,type:l.type,prop:l.prop,traces:l.traces,index:n.lookupTable[f.value]})).then(n.enable,n.enable)),f.changed}};for(var o=["plotly_relayout","plotly_redraw","plotly_restyle","plotly_update","plotly_animatingframe","plotly_afterplot"],s=0;s0?".":"")+n;Y0.isPlainObject(i)?rx(i,r,l,a+1):r(l,n,i)}})}});var Jt=G((_Ae,vC)=>{"use strict";var bAe=Er(),Dse=c0().timeFormatLocale,Pse=qg().formatLocale,lv=Gr(),Ese=Pg(),Rse=Mc().version,jr=Ar(),zse=H0(),Fse=yt(),vr=Se(),Nse=kr(),aC=(Rt(),Fe(Nt)).BADNUM,zn=va(),Ise=Ro().clearOutline,Bse=Oh(),tx=Kc(),Hse=Z5(),Ose=ex().getModuleCalcData,nC=vr.relinkPrivateKeys,Zs=vr._,rr=vC.exports={};vr.extendFlat(rr,jr);rr.attributes=qn();rr.attributes.type.values=rr.allTypes;rr.fontAttrs=Ta();rr.layoutAttributes=q0();var Vh=tC();rr.executeAPICommand=Vh.executeAPICommand;rr.computeAPICommandBindings=Vh.computeAPICommandBindings;rr.manageCommandObserver=Vh.manageCommandObserver;rr.hasSimpleAPICommandBindings=Vh.hasSimpleAPICommandBindings;rr.redrawText=function(e){return e=vr.getGraphDiv(e),new Promise(function(r){setTimeout(function(){e._fullLayout&&(jr.getComponentMethod("annotations","draw")(e),jr.getComponentMethod("legend","draw")(e),jr.getComponentMethod("colorbar","draw")(e),r(rr.previousPromises(e)))},300)})};rr.resize=function(e){e=vr.getGraphDiv(e);var r,t=new Promise(function(a,n){(!e||vr.isHidden(e))&&n(new Error("Resize must be passed a displayed plot div element.")),e._redrawTimer&&clearTimeout(e._redrawTimer),e._resolveResize&&(r=e._resolveResize),e._resolveResize=a,e._redrawTimer=setTimeout(function(){if(!e.layout||e.layout.width&&e.layout.height||vr.isHidden(e)){a(e);return}delete e.layout.width,delete e.layout.height;var i=e.changed;e.autoplay=!0,jr.call("relayout",e,{autosize:!0}).then(function(){e.changed=i,e._resolveResize===a&&(delete e._resolveResize,a(e))})},100)});return r&&r(t),t};rr.previousPromises=function(e){if((e._promises||[]).length)return Promise.all(e._promises).then(function(){e._promises=[]})};rr.sendDataToCloud=function(e,r){e.emit("plotly_beforeexport");let t=new URL(r).origin;var a=rr.graphJson(e,!1,"object");a.version=Rse;var n=new URL(r);n.searchParams.set("origin",window.location.origin);var i=window.open(n.href,"_blank");if(!i){console.error("Unable to open Plotly Cloud (the popup may have been blocked)"),e.emit("plotly_exportfail");return}var l=function(o){o.origin===t&&o.data&&o.data.type==="CHART_AUTH_SUCCESS"&&(i.postMessage({type:"chart",chart:a},t),window.removeEventListener("message",l),e.emit("plotly_afterexport"))};return window.addEventListener("message",l),!1};var Yse=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],Gse=["year","month","dayMonth","dayMonthYear"];rr.supplyDefaults=function(e,r){var t=r&&r.skipUpdateCalc,a=e._fullLayout||{};if(a._skipDefaults){delete a._skipDefaults;return}var n=e._fullLayout={},i=e.layout||{},l=e._fullData||[],o=e._fullData=[],s=e.data||[],u=e.calcdata||[],f=e._context||{},c;e._transitionData||rr.createTransitionData(e),n._dfltTitle={plot:Zs(e,"Click to enter Plot title"),subtitle:Zs(e,"Click to enter Plot subtitle"),x:Zs(e,"Click to enter X axis title"),y:Zs(e,"Click to enter Y axis title"),colorbar:Zs(e,"Click to enter Colorscale title"),annotation:Zs(e,"new text")},n._traceWord=Zs(e,"trace");var v=iC(e,Yse);if(a._initialAutoSizeIsDone){var h=a.width,p=a.height;rr.supplyLayoutGlobalDefaults(i,n,v),i.width||(n.width=h),i.height||(n.height=p),rr.sanitizeMargins(n)}else{rr.supplyLayoutGlobalDefaults(i,n,v);var m=!i.width||!i.height,y=n.autosize,x=f.autosizable,_=m&&(y||x);_?rr.plotAutoSize(e,i,n):m&&rr.sanitizeMargins(n),!y&&m&&(i.width=n.width,i.height=n.height)}n._d3locale=Xse(v,n.separators),n._extraFormat=iC(e,Gse),n._initialAutoSizeIsDone=!0,n._dataLength=s.length,n._modules=[],n._visibleModules=[],n._basePlotModules=[];var w=n._subplots=Vse(),b=n._splomAxes={x:{},y:{}},M=n._splomSubplots={};n._splomGridDflt={},n._scatterStackOpts={},n._firstScatter={},n._alignmentOpts={},n._colorAxes={},n._requestRangeslider={},n._traceUids=Use(l,s),rr.supplyDataDefaults(s,o,i,n);var A=Object.keys(b.x),k=Object.keys(b.y);if(A.length>1&&k.length>1){for(jr.getComponentMethod("grid","sizeDefaults")(i,n),c=0;c15&&k.length>15&&n.shapes.length===0&&n.images.length===0,rr.linkSubplots(o,n,l,a),rr.cleanPlot(o,n,l,a);var F=!!(a._has&&a._has("cartesian")),B=!!(n._has&&n._has("cartesian")),H=F,N=B;H&&!N?a._bgLayer.remove():N&&!H&&(n._shouldCreateBgLayer=!0),a._zoomlayer&&!e._dragging&&Ise({_fullLayout:a}),Wse(o,n),nC(n,a),jr.getComponentMethod("colorscale","crossTraceDefaults")(o,n),n._preGUI||(n._preGUI={}),n._tracePreGUI||(n._tracePreGUI={});var Y=n._tracePreGUI,O={},V;for(V in Y)O[V]="old";for(c=0;c0){var f=1-2*i;l=Math.round(f*l),o=Math.round(f*o)}}var c=rr.layoutAttributes.width.min,v=rr.layoutAttributes.height.min;l1,p=!t.height&&Math.abs(a.height-o)>1;(p||h)&&(h&&(a.width=l),p&&(a.height=o)),r._initialAutoSize||(r._initialAutoSize={width:l,height:o}),rr.sanitizeMargins(a)};rr.supplyLayoutModuleDefaults=function(e,r,t,a){var n=jr.componentsRegistry,i=r._basePlotModules,l,o,s,u=jr.subplotsRegistry.cartesian;for(l in n)s=n[l],s.includeBasePlot&&s.includeBasePlot(e,r);i.length||i.push(u),r._has("cartesian")&&(jr.getComponentMethod("grid","contentDefaults")(e,r),u.finalizeSubplots(e,r));for(var f in r._subplots)r._subplots[f].sort(vr.subplotSort);for(o=0;o1&&(t.l/=y,t.r/=y)}if(v){var x=(t.t+t.b)/v;x>1&&(t.t/=x,t.b/=x)}var _=t.xl!==void 0?t.xl:t.x,w=t.xr!==void 0?t.xr:t.x,b=t.yt!==void 0?t.yt:t.y,M=t.yb!==void 0?t.yb:t.y;h[r]={l:{val:_,size:t.l+m},r:{val:w,size:t.r+m},b:{val:M,size:t.b+m},t:{val:b,size:t.t+m}},p[r]=1}if(!a._replotting)return rr.doAutoMargin(e)}};function Jse(e){if("_redrawFromAutoMarginCount"in e._fullLayout)return!1;var r=zn.list(e,"",!0);for(var t in r)if(r[t].autoshift||r[t].shift)return!0;return!1}rr.doAutoMargin=function(e){var r=e._fullLayout,t=r.width,a=r.height;r._size||(r._size={}),sC(r);var n=r._size,i=r.margin,l={t:0,b:0,l:0,r:0},o=vr.extendFlat({},n),s=i.l,u=i.r,f=i.t,c=i.b,v=r._pushmargin,h=r._pushmarginIds,p=r.minreducedwidth,m=r.minreducedheight;if(i.autoexpand!==!1){for(var y in v)h[y]||delete v[y];var x=e._fullLayout._reservedMargin;for(var _ in x)for(var w in x[_]){var b=x[_][w];l[w]=Math.max(l[w],b)}v.base={l:{val:0,size:s},r:{val:1,size:u},t:{val:1,size:f},b:{val:0,size:c}};for(var M in l){var A=0;for(var k in v)k!=="base"&&lv(v[k][M].size)&&(A=v[k][M].size>A?v[k][M].size:A);var S=Math.max(0,i[M]-A);l[M]=Math.max(0,l[M]-S)}for(var D in v){var P=v[D].l||{},R=v[D].b||{},F=P.val,B=P.size,H=R.val,N=R.size,Y=t-l.r-l.l,O=a-l.t-l.b;for(var V in v){if(lv(B)&&v[V].r){var X=v[V].r.val,W=v[V].r.size;if(X>F){var U=(B*X+(W-Y)*F)/(X-F),$=(W*(1-F)+(B-Y)*(1-X))/(X-F);U+$>s+u&&(s=U,u=$)}}if(lv(N)&&v[V].t){var re=v[V].t.val,se=v[V].t.size;if(re>H){var oe=(N*re+(se-O)*H)/(re-H),K=(se*(1-H)+(N-O)*(1-re))/(re-H);oe+K>c+f&&(c=oe,f=K)}}}}}var me=vr.constrain(t-i.l-i.r,uC,p),ie=vr.constrain(a-i.t-i.b,fC,m),Me=Math.max(0,t-me),ue=Math.max(0,a-ie);if(Me){var ce=(s+u)/Me;ce>1&&(s/=ce,u/=ce)}if(ue){var Te=(c+f)/ue;Te>1&&(c/=Te,f/=Te)}if(n.l=Math.round(s)+l.l,n.r=Math.round(u)+l.r,n.t=Math.round(f)+l.t,n.b=Math.round(c)+l.b,n.p=Math.round(i.pad),n.w=Math.round(t)-n.l-n.r,n.h=Math.round(a)-n.t-n.b,!r._replotting&&(rr.didMarginChange(o,n)||Jse(e))){"_redrawFromAutoMarginCount"in r?r._redrawFromAutoMarginCount++:r._redrawFromAutoMarginCount=1;var Ne=3*(1+Object.keys(h).length);if(r._redrawFromAutoMarginCount1)return!0}return!1};rr.graphJson=function(e,r=!1,t="json",a=!1,n=!1){(a&&r&&!e._fullData||a&&!r&&!e._fullLayout)&&rr.supplyDefaults(e);var i=a?e._fullData:e.data,l=a?e._fullLayout:e.layout,o=(e._transitionData||{})._frames;function s(c,v){if(typeof c=="function")return v?"_function_":null;if(vr.isPlainObject(c)){var h={};return Object.keys(c).sort().forEach(function(x){if(["_","["].indexOf(x.charAt(0))===-1){if(typeof c[x]=="function"){v&&(h[x]="_function");return}h[x]=s(c[x],v)}}),h}var p=Array.isArray(c),m=vr.isTypedArray(c);if((p||m)&&c.dtype&&c.shape){var y=c.bdata;return s({dtype:c.dtype,shape:c.shape,bdata:vr.isArrayBuffer(y)?Ese.encode(y):y},v)}return p?c.map(function(x){return s(x,v)}):m?vr.simpleMap(c,vr.identity):vr.isJSDate(c)?vr.ms2DateTimeLocal(+c):c}var u={data:(i||[]).map(function(c){var v=s(c);return r&&delete v.fit,v})};if(!r&&(u.layout=s(l),a)){var f=l._size;u.layout.computed={margin:{b:f.b,l:f.l,r:f.r,t:f.t}}}return o&&(u.frames=s(o)),n&&(u.config=s(e._context,!0)),t==="object"?u:JSON.stringify(u)};rr.modifyFrames=function(e,r){var t,a,n,i=e._transitionData._frames,l=e._transitionData._frameHash;for(t=0;t0&&(e._transitioningWithDuration=!0),e._transitionData._interruptCallbacks.push(function(){a=!0}),t.redraw&&e._transitionData._interruptCallbacks.push(function(){return jr.call("redraw",e)}),e._transitionData._interruptCallbacks.push(function(){e.emit("plotly_transitioninterrupted",[])});var v=0,h=0;function p(){return v++,function(){h++,!a&&h===v&&o(c)}}t.runFn(p),setTimeout(p())})}function o(c){if(e._transitionData)return i(e._transitionData._interruptCallbacks),Promise.resolve().then(function(){if(t.redraw)return jr.call("redraw",e)}).then(function(){e._transitioning=!1,e._transitioningWithDuration=!1,e.emit("plotly_transitioned",[])}).then(c)}function s(){if(e._transitionData)return e._transitioning=!1,n(e._transitionData._interruptCallbacks)}var u=[rr.previousPromises,s,t.prepareFn,rr.rehover,rr.reselect,l],f=vr.syncOrAsync(u,e);return(!f||!f.then)&&(f=Promise.resolve()),f.then(function(){return e})}rr.doCalcdata=function(e,r){var t=zn.list(e),a=e._fullData,n=e._fullLayout,i,l,o,s=new Array(a.length),u=(e.calcdata||[]).slice();for(e.calcdata=s,n._numBoxes=0,n._numViolins=0,n._violinScaleGroupStats={},e._hmpixcount=0,e._hmlumcount=0,n._piecolormap={},n._sunburstcolormap={},n._treemapcolormap={},n._iciclecolormap={},n._funnelareacolormap={},o=0;odC,svgAttrs:()=>rue,xlink:()=>hC,xmlns:()=>eue});var eue,dC,hC,rue,$s=Cr(()=>{"use strict";eue="http://www.w3.org/2000/xmlns/",dC="http://www.w3.org/2000/svg",hC="http://www.w3.org/1999/xlink",rue={xmlns:dC,"xmlns:xlink":hC}});var Va={};pt(Va,{CAP_SHIFT:()=>lue,FROM_BL:()=>tue,FROM_BR:()=>nue,FROM_TL:()=>aue,LINE_SPACING:()=>iue,MID_SHIFT:()=>oue,OPPOSITE_SIDE:()=>sue});var tue,aue,nue,iue,lue,oue,sue,Xa=Cr(()=>{"use strict";tue={left:0,center:.5,right:1,bottom:0,middle:.5,top:1},aue={left:0,center:.5,right:1,bottom:1,middle:.5,top:0},nue={left:1,center:.5,right:0,bottom:0,middle:.5,top:1},iue=1.3,lue=.7,oue=.35,sue={left:"right",right:"left",top:"bottom",bottom:"top"}});var ba=G(dn=>{"use strict";var $t=Er(),pi=Se(),uue=pi.strTranslate,ax=($s(),Fe(Js)),fue=(Xa(),Fe(Va)).LINE_SPACING,cue=/([^$]*)([$]+[^$]*[$]+)([^$]*)/,lx=e=>e?e.match(cue):null;dn.matchTex=lx;var vue=e=>{var r=lx(e);return!!r&&!r[1]&&!r[3]};dn.isPureTex=vue;function bC(e,r,t,a,n,i,l,o){var s=a.select("g"),u=s.node().getBoundingClientRect(),f=u.width,c=u.height,v=l===void 0?f:l,h=o===void 0?c:o;(f>v||c>h)&&(a.style("overflow","hidden"),u=a.node().getBoundingClientRect(),f=u.width,c=u.height);var p=+e.attr("x"),m=+e.attr("y"),y=i||e.node().getBoundingClientRect().height,x=-y/4;r[0]==="y"?t.attr({transform:"rotate("+[-90,p,m]+")"+uue(-f/2,x-c/2)}):r[0]==="l"?m=x-c/2:r[0]==="a"&&r.indexOf("atitle")!==0?(p=0,m=x):(p=p-f*(n==="middle"?.5:n==="end"?1:0),m=m+x-c/2),a.attr({x:p,y:m})}function due(e){e.selectAll("a").each(function(){var r=$t.select(this);["href","xlink:href"].forEach(function(t){var a=r.attr(t);a&&r.attr(t,ux(a)||null)})})}dn.convertToTspans=function(e,r,t){var a=e.text(),n=!e.attr("data-notex")&&r&&r._context.typesetMath&&lx(a);n&&!yue()&&(n=null);var i=$t.select(e.node().parentNode);if(i.empty())return;var l=e.attr("class")?e.attr("class").split(" ")[0]:"text";l+="-math",i.selectAll("svg."+l).remove(),i.selectAll("g."+l+"-group").remove(),e.style("display",null).attr({"data-unformatted":a,"data-math":"N"});function o(){i.empty()||(l=e.attr("class")+"-math",i.select("svg."+l).remove()),e.text("").style("white-space","pre");var s=Lue(e.node(),a);s&&e.style("pointer-events","all"),dn.positionText(e),t&&t.call(e)}return n?(r&&r._promises||[]).push(new Promise(function(s){e.style("display","none");var u=parseInt(e.node().style.fontSize,10),f={fontSize:u},c=e.attr("text-anchor");gue(n[2],f,function(v,h,p){i.selectAll("svg."+l).remove(),i.selectAll("g."+l+"-group").remove();var m=v&&v.select("svg");if(!m||!m.node()){o(),s();return}e.style("display","none");var y=i.append("g").classed(l+"-group",!0).attr({"pointer-events":"none","data-unformatted":a,"data-math":"Y"});y.node().appendChild(m.node()),due(m),h&&h.node()&&m.node().insertBefore(h.node().cloneNode(!0),m.node().firstChild);var x=p.width,_=p.height;m.attr({class:l,height:_,preserveAspectRatio:"xMinYMin meet"}).style({overflow:"visible","pointer-events":"none","font-size":f.fontSize+"px"});var w=e.node().style.fill||"black",b=m.select("g");b.attr({fill:w,stroke:w}),bC(e,l,y,m,c,u,x,_),t&&t.call(e,y),s(y)})})):o(),e};dn.repositionMathGroup=function(e){if(!e.empty()){var r=(e.attr("class")?e.attr("class").split(" ")[0]:"text")+"-math",t=$t.select(e.node().parentNode),a=t.select("g."+r+"-group"),n=a.select("svg."+r);if(!(a.empty()||n.empty())){var i=e.attr("text-anchor"),l=parseInt(e.node().style.fontSize,10);bC(e,r,a,n,i,l)}}};dn.getMathOrTextNode=function(e){var r=e.node();if(!r)return null;var t=(e.attr("class")?e.attr("class").split(" ")[0]:"text")+"-math",a=$t.select(r.parentNode).select("g."+t+"-group");return a.empty()?r:a.node()};var hue=/(<|<|<)/g,pue=/(>|>|>)/g;function mue(e){return e.replace(hue,"\\lt ").replace(pue,"\\gt ")}var nx=null,_C=()=>typeof MathJax!="undefined"&&MathJax.version?parseInt(MathJax.version.split(".")[0]):null,pC=!1,mC=!1;function yue(){let e=_C();return e===3||e===4?!0:(e===null?pC||(pC=!0,pi.warn("MathJax is not loaded. Math equations will not be rendered.")):mC||(mC=!0,pi.warn("Unsupported MathJax version:",MathJax.version)),!1)}function gue(e,r,t){let a=_C();var n;let i=function(){if(!nx){let u=MathJax._.output.svg_ts.SVG,f=pi.extendFlat({},MathJax.config.svg,{fontCache:"local"});a===4&&(f.linebreaks=pi.extendFlat({},f.linebreaks,{inline:!1})),nx=MathJax._.mathjax.mathjax.document(document,pi.extendFlat({},MathJax.config.options,{InputJax:MathJax.startup.input,OutputJax:new u(f)}))}let o="math-output-"+pi.randstr({},64);n=$t.select("body").append("div").attr({id:o}).style({visibility:"hidden",position:"absolute","font-size":r.fontSize+"px"});let s=mue(e).replace(/^\$+|\$+$/g,"");return MathJax._.mathjax.mathjax.handleRetriesFor(function(){return nx.convert(s,{display:!1})}).then(function(u){n.node().appendChild(u)})},l=function(){let o=n.select(".MathJax"),s=!o.empty()&&n.select("svg").node();if(!s)pi.log("There was an error in the tex syntax.",e),t();else{let u=s.getBoundingClientRect(),f=o.select("defs");t(o,f,u)}n.remove()};Promise.resolve().then(i).then(l).catch(o=>{pi.log("MathJax typesetting failed.",e,o),n&&n.remove(),t()})}var wC={sup:"font-size:70%",sub:"font-size:70%",s:"text-decoration:line-through",u:"text-decoration:underline",b:"font-weight:bold",i:"font-style:italic",a:"cursor:pointer",span:"",em:"font-style:italic;font-weight:bold"},xue={sub:"0.3em",sup:"-0.6em"},bue={sub:"-0.21em",sup:"0.42em"},yC="\u200B",gC=["http:","https:","mailto:","",void 0,":"],TC=dn.NEWLINES=/(\r\n?|\n)/g,ox=/(<[^<>]*>)/,sx=/<(\/?)([^ >]*)(\s+(.*))?>/i,_ue=//i;dn.BR_TAG_ALL=//gi;var MC=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,AC=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,kC=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,wue=/(^|[\s"'])popup\s*=\s*("([\w=,]*)"|'([\w=,]*)')/i;function Ks(e,r){if(!e)return null;var t=e.match(r),a=t&&(t[3]||t[4]);return a&&Xh(a)}var Tue=/(^|;)\s*color:/;dn.plainText=function(e,r){r=r||{};for(var t=r.len!==void 0&&r.len!==-1?r.len:1/0,a=r.allowedTags!==void 0?r.allowedTags:["br"],n="...",i=n.length,l=e.split(ox),o=[],s="",u=0,f=0;fi?o.push(c.slice(0,Math.max(0,m-i))+n):o.push(c.slice(0,m));break}s=""}}return o.join("")};var Mue={mu:"\u03BC",amp:"&",lt:"<",gt:">",nbsp:"\xA0",times:"\xD7",plusmn:"\xB1",deg:"\xB0"},Aue=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function Xh(e){return e.replace(Aue,function(r,t){var a;return t.charAt(0)==="#"?a=kue(t.charAt(1)==="x"?parseInt(t.slice(2),16):parseInt(t.slice(1),10)):a=Mue[t],a||r})}dn.convertEntities=Xh;function kue(e){if(!(e>1114111)){var r=String.fromCodePoint;if(r)return r(e);var t=String.fromCharCode;return e<=65535?t(e):t((e>>10)+55232,e%1024+56320)}}function Lue(e,r){r=r.replace(TC," ");var t=!1,a=[],n,i=-1;function l(){i++;var A=document.createElementNS(ax.svg,"tspan");$t.select(A).attr({class:"line",dy:i*fue+"em"}),e.appendChild(A),n=A;var k=a;if(a=[{node:A}],k.length>1)for(var S=1;S.",r);return}var k=a.pop();A!==k.type&&pi.log("Start tag <"+k.type+"> doesnt match end tag <"+A+">. Pretending it did match.",r),n=a[a.length-1].node}var f=_ue.test(r);f?l():(n=e,a=[{node:e}]);for(var c=r.split(ox),v=0;v{"use strict";var Cue=Er(),sv=Gr(),Wh=Se(),js=kr(),Sue=Hs().isValid;function que(e,r,t){var a=r?Wh.nestedProperty(e,r).get()||{}:e,n=a[t||"color"];n&&n._inputArray&&(n=n._inputArray);var i=!1;if(Wh.isArrayOrTypedArray(n)){for(var l=0;l=0;a--,n++){var i=e[a];t[n]=[1-i[0],i[1]]}return t}function DC(e,r){r=r||{};for(var t=e.domain,a=e.range,n=a.length,i=new Array(n),l=0;l{"use strict";var EC=(T5(),Fe(w5)),Pue=EC.FORMAT_LINK,Eue=EC.DATE_FORMAT_LINK;function Rue(e,r){return{valType:"string",dflt:"",editType:"none",description:(r?fx:RC)("hover text",e)+["By default the values are formatted using "+(r?"generic number format":"`"+e+"axis.hoverformat`")+"."].join(" ")}}function fx(e,r){return["Sets the "+e+" formatting rule"+(r?" for `"+r+"`":""),"using d3 formatting mini-languages","which are very similar to those in Python. For numbers, see: "+Pue+"."].join(" ")}function RC(e,r){return fx(e,r)+[" And for dates see: "+Eue+".","We add two items to d3's date formatter:","*%h* for half of the year as a decimal number as well as","*%{n}f* for fractional seconds","with n digits. For example, *2016-10-13 09:15:23.456* with tickformat","*%H~%M~%S.%2f* would display *09~15~23.46*"].join(" ")}zC.exports={axisHoverFormat:Rue,descriptionOnlyNumbers:fx,descriptionWithDates:RC}});var Zn=G((kAe,jC)=>{"use strict";var FC=Ta(),G0=vi(),KC=Yi().dash,vx=At().extendFlat,NC=yt().templatedArray,AAe=Vn().templateFormatStringDescription,IC=Xi().descriptionWithDates,zue=(Rt(),Fe(Nt)).ONEDAY,gl=(La(),Fe(ka)),Fue=gl.HOUR_PATTERN,Nue=gl.WEEKDAY_PATTERN,cx={valType:"enumerated",values:["auto","linear","array"],editType:"ticks",impliedEdits:{tick0:void 0,dtick:void 0}},Iue=vx({},cx,{values:cx.values.slice().concat(["sync"])});function BC(e){return{valType:"integer",min:0,dflt:e?5:0,editType:"ticks"}}var HC={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},OC={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},YC={valType:"data_array",editType:"ticks"},GC={valType:"enumerated",values:["outside","inside",""],editType:"ticks"};function UC(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=5),r}function VC(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=1),r}var XC={valType:"color",dflt:G0.defaultLine,editType:"ticks"},WC={valType:"color",dflt:G0.lightLine,editType:"ticks"};function ZC(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=1),r}var JC=vx({},KC,{editType:"ticks"}),$C={valType:"boolean",editType:"ticks"};jC.exports={visible:{valType:"boolean",editType:"plot"},color:{valType:"color",dflt:G0.defaultLine,editType:"ticks"},title:{text:{valType:"string",editType:"ticks"},font:FC({editType:"ticks",description:"Sets this axis' title font."}),standoff:{valType:"number",min:0,editType:"ticks"},editType:"ticks"},type:{valType:"enumerated",values:["-","linear","log","date","category","multicategory"],dflt:"-",editType:"calc",_noTemplating:!0},autotypenumbers:{valType:"enumerated",values:["convert types","strict"],dflt:"convert types",editType:"calc"},autorange:{valType:"enumerated",values:[!0,!1,"reversed","min reversed","max reversed","min","max"],dflt:!0,editType:"axrange",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},autorangeoptions:{minallowed:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},maxallowed:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},clipmin:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},clipmax:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},include:{valType:"any",arrayOk:!0,editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},editType:"plot"},rangemode:{valType:"enumerated",values:["normal","tozero","nonnegative"],dflt:"normal",editType:"plot"},range:{valType:"info_array",items:[{valType:"any",editType:"axrange",impliedEdits:{"^autorange":!1},anim:!0},{valType:"any",editType:"axrange",impliedEdits:{"^autorange":!1},anim:!0}],editType:"axrange",impliedEdits:{autorange:!1},anim:!0},minallowed:{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},maxallowed:{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},fixedrange:{valType:"boolean",dflt:!1,editType:"calc"},modebardisable:{valType:"flaglist",flags:["autoscale","zoominout"],extras:["none"],dflt:"none",editType:"modebar"},insiderange:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},scaleanchor:{valType:"enumerated",values:[gl.idRegex.x.toString(),gl.idRegex.y.toString(),!1],editType:"plot"},scaleratio:{valType:"number",min:0,dflt:1,editType:"plot"},constrain:{valType:"enumerated",values:["range","domain"],editType:"plot"},constraintoward:{valType:"enumerated",values:["left","center","right","top","middle","bottom"],editType:"plot"},matches:{valType:"enumerated",values:[gl.idRegex.x.toString(),gl.idRegex.y.toString()],editType:"calc"},rangebreaks:NC("rangebreak",{enabled:{valType:"boolean",dflt:!0,editType:"calc"},bounds:{valType:"info_array",items:[{valType:"any",editType:"calc"},{valType:"any",editType:"calc"}],editType:"calc"},pattern:{valType:"enumerated",values:[Nue,Fue,""],editType:"calc"},values:{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"any",editType:"calc"}},dvalue:{valType:"number",editType:"calc",min:0,dflt:zue},editType:"calc"}),tickmode:Iue,nticks:BC(),tick0:HC,dtick:OC,ticklabelstep:{valType:"integer",min:1,dflt:1,editType:"ticks"},tickvals:YC,ticktext:{valType:"data_array",editType:"ticks"},ticks:GC,tickson:{valType:"enumerated",values:["labels","boundaries"],dflt:"labels",editType:"ticks"},ticklabelmode:{valType:"enumerated",values:["instant","period"],dflt:"instant",editType:"ticks"},ticklabelposition:{valType:"enumerated",values:["outside","inside","outside top","inside top","outside left","inside left","outside right","inside right","outside bottom","inside bottom"],dflt:"outside",editType:"calc"},ticklabeloverflow:{valType:"enumerated",values:["allow","hide past div","hide past domain"],editType:"calc"},ticklabelshift:{valType:"integer",dflt:0,editType:"ticks"},ticklabelstandoff:{valType:"integer",dflt:0,editType:"ticks"},ticklabelindex:{valType:"integer",arrayOk:!0,editType:"calc"},mirror:{valType:"enumerated",values:[!0,"ticks",!1,"all","allticks"],dflt:!1,editType:"ticks+layoutstyle"},ticklen:UC(),tickwidth:VC(),tickcolor:XC,showticklabels:{valType:"boolean",dflt:!0,editType:"ticks"},labelalias:{valType:"any",dflt:!1,editType:"ticks"},automargin:{valType:"flaglist",flags:["height","width","left","right","top","bottom"],extras:[!0,!1],dflt:!1,editType:"ticks"},showspikes:{valType:"boolean",dflt:!1,editType:"modebar"},spikecolor:{valType:"color",dflt:null,editType:"none"},spikethickness:{valType:"number",dflt:3,editType:"none"},spikedash:vx({},KC,{dflt:"dash",editType:"none"}),spikemode:{valType:"flaglist",flags:["toaxis","across","marker"],dflt:"toaxis",editType:"none"},spikesnap:{valType:"enumerated",values:["data","cursor","hovered data"],dflt:"hovered data",editType:"none"},tickfont:FC({editType:"ticks"}),tickangle:{valType:"angle",dflt:"auto",editType:"ticks"},autotickangles:{valType:"info_array",freeLength:!0,items:{valType:"angle"},dflt:[0,30,90],editType:"ticks"},tickprefix:{valType:"string",dflt:"",editType:"ticks"},showtickprefix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},ticksuffix:{valType:"string",dflt:"",editType:"ticks"},showticksuffix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},showexponent:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},exponentformat:{valType:"enumerated",values:["none","e","E","power","SI","B","SI extended"],dflt:"B",editType:"ticks"},minexponent:{valType:"number",dflt:3,min:0,editType:"ticks"},separatethousands:{valType:"boolean",dflt:!1,editType:"ticks"},tickformat:{valType:"string",dflt:"",editType:"ticks",description:IC("tick label")},tickformatstops:NC("tickformatstop",{enabled:{valType:"boolean",dflt:!0,editType:"ticks"},dtickrange:{valType:"info_array",items:[{valType:"any",editType:"ticks"},{valType:"any",editType:"ticks"}],editType:"ticks"},value:{valType:"string",dflt:"",editType:"ticks"},editType:"ticks"}),hoverformat:{valType:"string",dflt:"",editType:"none",description:IC("hover text")},unifiedhovertitle:{text:{valType:"string",dflt:"",editType:"none"},editType:"none"},showline:{valType:"boolean",dflt:!1,editType:"ticks+layoutstyle"},linecolor:{valType:"color",dflt:G0.defaultLine,editType:"layoutstyle"},linewidth:{valType:"number",min:0,dflt:1,editType:"ticks+layoutstyle"},showgrid:$C,gridcolor:WC,gridwidth:ZC(),griddash:JC,zeroline:{valType:"boolean",editType:"ticks"},zerolinecolor:{valType:"color",dflt:G0.defaultLine,editType:"ticks"},zerolinelayer:{valType:"enumerated",values:["above traces","below traces"],dflt:"below traces",editType:"plot"},zerolinewidth:{valType:"number",dflt:1,editType:"ticks"},showdividers:{valType:"boolean",dflt:!0,editType:"ticks"},dividercolor:{valType:"color",dflt:G0.defaultLine,editType:"ticks"},dividerwidth:{valType:"number",dflt:1,editType:"ticks"},anchor:{valType:"enumerated",values:["free",gl.idRegex.x.toString(),gl.idRegex.y.toString()],editType:"plot"},side:{valType:"enumerated",values:["top","bottom","left","right"],editType:"plot"},overlaying:{valType:"enumerated",values:["free",gl.idRegex.x.toString(),gl.idRegex.y.toString()],editType:"plot"},minor:{tickmode:cx,nticks:BC("minor"),tick0:HC,dtick:OC,tickvals:YC,ticks:GC,ticklen:UC("minor"),tickwidth:VC("minor"),tickcolor:XC,gridcolor:WC,gridwidth:ZC("minor"),griddash:JC,showgrid:$C,editType:"ticks"},minorloglabels:{valType:"enumerated",values:["small digits","complete","none"],dflt:"small digits",editType:"calc"},layer:{valType:"enumerated",values:["above traces","below traces"],dflt:"above traces",editType:"plot"},domain:{valType:"info_array",items:[{valType:"number",min:0,max:1,editType:"plot"},{valType:"number",min:0,max:1,editType:"plot"}],dflt:[0,1],editType:"plot"},position:{valType:"number",min:0,max:1,dflt:0,editType:"plot"},autoshift:{valType:"boolean",dflt:!1,editType:"plot"},shift:{valType:"number",editType:"plot"},categoryorder:{valType:"enumerated",values:["trace","category ascending","category descending","array","total ascending","total descending","min ascending","min descending","max ascending","max descending","sum ascending","sum descending","mean ascending","mean descending","geometric mean ascending","geometric mean descending","median ascending","median descending"],dflt:"trace",editType:"calc"},categoryarray:{valType:"data_array",editType:"calc"},uirevision:{valType:"any",editType:"none"},editType:"calc"}});var Zh=G((LAe,eS)=>{"use strict";var Ct=Zn(),QC=Ta(),dx=At().extendFlat,Bue=Oi().overrideAll;eS.exports=Bue({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:Ct.linecolor,outlinewidth:Ct.linewidth,bordercolor:Ct.linecolor,borderwidth:{valType:"number",min:0,dflt:0},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},tickmode:Ct.minor.tickmode,nticks:Ct.nticks,tick0:Ct.tick0,dtick:dx({},Ct.dtick,{}),tickvals:Ct.tickvals,ticktext:Ct.ticktext,ticks:dx({},Ct.ticks,{dflt:""}),ticklabeloverflow:dx({},Ct.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:Ct.ticklen,tickwidth:Ct.tickwidth,tickcolor:Ct.tickcolor,ticklabelstep:Ct.ticklabelstep,showticklabels:Ct.showticklabels,labelalias:Ct.labelalias,tickfont:QC({description:"Sets the color bar's tick label font"}),tickangle:Ct.tickangle,tickformat:Ct.tickformat,tickformatstops:Ct.tickformatstops,tickprefix:Ct.tickprefix,showtickprefix:Ct.showtickprefix,ticksuffix:Ct.ticksuffix,showticksuffix:Ct.showticksuffix,separatethousands:Ct.separatethousands,exponentformat:Ct.exponentformat,minexponent:Ct.minexponent,showexponent:Ct.showexponent,title:{text:{valType:"string"},font:QC({description:"Sets this color bar's title font."}),side:{valType:"enumerated",values:["right","top","bottom"]}}},"colorbars","from-root")});var uv=G((SAe,tS)=>{"use strict";var Hue=Zh(),Oue=(L0(),Fe(Jc)).counter,Yue=(P5(),Fe(D5)).default,rS=Hs().scales,CAe=Yue(rS);function Jh(e){return"`"+e+"`"}tS.exports=function(r,t){r=r||"",t=t||{};var a=t.cLetter||"c",n="onlyIfNumerical"in t?t.onlyIfNumerical:!!r,i="noScale"in t?t.noScale:r==="marker.line",l="showScaleDflt"in t?t.showScaleDflt:a==="z",o=typeof t.colorscaleDflt=="string"?rS[t.colorscaleDflt]:null,s=t.editTypeOverride||"",u=r?r+".":"",f,c;"colorAttr"in t?(f=t.colorAttr,c=t.colorAttr):(f={z:"z",c:"color"}[a],c="in "+Jh(u+f));var v=n?" Has an effect only if "+c+" is set to a numerical array.":"",h=a+"auto",p=a+"min",m=a+"max",y=a+"mid",x=Jh(u+h),_=Jh(u+p),w=Jh(u+m),b=_+" and "+w,M={};M[p]=M[m]=void 0;var A={};A[h]=!1;var k={};return f==="color"&&(k.color={valType:"color",arrayOk:!0,editType:s||"style"},t.anim&&(k.color.anim=!0)),k[h]={valType:"boolean",dflt:!0,editType:"calc",impliedEdits:M},k[p]={valType:"number",dflt:null,editType:s||"plot",impliedEdits:A},k[m]={valType:"number",dflt:null,editType:s||"plot",impliedEdits:A},k[y]={valType:"number",dflt:null,editType:"calc",impliedEdits:M},k.colorscale={valType:"colorscale",editType:"calc",dflt:o,impliedEdits:{autocolorscale:!1}},k.autocolorscale={valType:"boolean",dflt:t.autoColorDflt!==!1,editType:"calc",impliedEdits:{colorscale:void 0}},k.reversescale={valType:"boolean",dflt:!1,editType:"plot"},i||(k.showscale={valType:"boolean",dflt:l,editType:"calc"},k.colorbar=Hue),t.noColorAxis||(k.coloraxis={valType:"subplotid",regex:Oue("coloraxis"),dflt:null,editType:"calc"}),k}});var px=G((qAe,aS)=>{"use strict";var Gue=At().extendFlat,Uue=uv(),hx=Hs().scales;aS.exports={editType:"calc",colorscale:{editType:"calc",sequential:{valType:"colorscale",dflt:hx.Reds,editType:"calc"},sequentialminus:{valType:"colorscale",dflt:hx.Blues,editType:"calc"},diverging:{valType:"colorscale",dflt:hx.RdBu,editType:"calc"}},coloraxis:Gue({_isSubplotObj:!0,editType:"calc"},Uue("",{colorAttr:"corresponding trace color array(s)",noColorAxis:!0,showScaleDflt:!0}))}});var mx=G((DAe,nS)=>{"use strict";var Vue=Se();nS.exports=function(r){return Vue.isPlainObject(r.colorbar)}});var xx=G(gx=>{"use strict";var yx=Gr(),iS=Se(),lS=(Rt(),Fe(Nt)),Xue=lS.ONEDAY,Wue=lS.ONEWEEK;gx.dtick=function(e,r){var t=r==="log",a=r==="date",n=r==="category",i=a?Xue:1;if(!e)return i;if(yx(e))return e=Number(e),e<=0?i:n?Math.max(1,Math.round(e)):a?Math.max(.1,e):e;if(typeof e!="string"||!(a||t))return i;var l=e.charAt(0),o=e.slice(1);return o=yx(o)?Number(o):0,o<=0||!(a&&l==="M"&&o===Math.round(o)||t&&l==="L"||t&&l==="D"&&(o===1||o===2))?i:e};gx.tick0=function(e,r,t,a){if(r==="date")return iS.cleanDate(e,iS.dateTick0(t,a%Wue===0?1:0));if(!(a==="D1"||a==="D2"))return yx(e)?Number(e):0}});var $h=G((EAe,sS)=>{"use strict";var oS=xx(),Zue=Se().isArrayOrTypedArray,Jue=Sn().isTypedArraySpec,$ue=Sn().decodeTypedArraySpec;sS.exports=function(r,t,a,n,i={}){var l=i.isMinor,o=l?r.minor||{}:r,s=l?t.minor:t,u=l?"minor.":"";function f(b){var M=o[b];return Jue(M)&&(M=$ue(M)),M!==void 0?M:(s._template||{})[b]}var c=f("tick0"),v=f("dtick"),h=f("tickvals"),p=f("overlaying"),m=n==="category"||n==="multicategory",y;Zue(h)?y="array":v?y="linear":p&&!m?y="sync":y="auto";var x=a(u+"tickmode",y);if(x==="auto"||x==="sync")a(u+"nticks");else if(x==="linear"){var _=s.dtick=oS.dtick(v,n);s.tick0=oS.tick0(c,n,t.calendar,_)}else if(n!=="multicategory"){var w=a(u+"tickvals");w===void 0?s.tickmode="auto":l||a("ticktext")}}});var Kh=G((RAe,fS)=>{"use strict";var bx=Se(),uS=Zn();fS.exports=function(r,t,a,n){var i=n.isMinor,l=i?r.minor||{}:r,o=i?t.minor:t,s=i?uS.minor:uS,u=i?"minor.":"",f=bx.coerce2(l,o,s,"ticklen",i?(t.ticklen||5)*.6:void 0),c=bx.coerce2(l,o,s,"tickwidth",i?t.tickwidth||1:void 0),v=bx.coerce2(l,o,s,"tickcolor",(i?t.tickcolor:void 0)||o.color),h=a(u+"ticks",!i&&n.outerTicks||f||c||v?"outside":"");h||(delete o.ticklen,delete o.tickwidth,delete o.tickcolor)}});var _x=G((zAe,cS)=>{"use strict";cS.exports=function(r){var t=["showexponent","showtickprefix","showticksuffix"],a=t.filter(function(i){return r[i]!==void 0}),n=function(i){return r[i]===r[a[0]]};if(a.every(n)||a.length===1)return r[a[0]]}});var mi=G((FAe,vS)=>{"use strict";var jh=Se(),Kue=yt();vS.exports=function(r,t,a){var n=a.name,i=a.inclusionAttr||"visible",l=t[n],o=jh.isArrayOrTypedArray(r[n])?r[n]:[],s=t[n]=[],u=Kue.arrayTemplater(t,n,i),f,c;for(f=0;f{"use strict";var wx=Se(),jue=kr().contrast,dS=Zn(),Que=_x(),e0e=mi();hS.exports=function(r,t,a,n,i){i||(i={});var l=a("labelalias");wx.isPlainObject(l)||delete t.labelalias;var o=Que(r),s=a("showticklabels");if(s){i.noTicklabelshift||a("ticklabelshift"),i.noTicklabelstandoff||a("ticklabelstandoff");var u=i.font||{},f=t.color,c=t.ticklabelposition||"",v=c.indexOf("inside")!==-1?jue(i.bgColor):f&&f!==dS.color.dflt?f:u.color;if(wx.coerceFont(a,"tickfont",u,{overrideDflt:{color:v}}),!i.noTicklabelstep&&n!=="multicategory"&&n!=="log"&&a("ticklabelstep"),!i.noAng){var h=a("tickangle");!i.noAutotickangles&&h==="auto"&&a("autotickangles")}if(n!=="category"){var p=a("tickformat");e0e(r,t,{name:"tickformatstops",inclusionAttr:"enabled",handleItemDefaults:r0e}),t.tickformatstops.length||delete t.tickformatstops,!i.noExp&&!p&&n!=="date"&&(a("showexponent",o),a("exponentformat"),a("minexponent"),a("separatethousands"))}!i.noMinorloglabels&&n==="log"&&a("minorloglabels")}};function r0e(e,r){function t(n,i){return wx.coerce(e,r,dS.tickformatstops,n,i)}var a=t("enabled");a&&(t("dtickrange"),t("value"))}});var e1=G((IAe,pS)=>{"use strict";var t0e=_x();pS.exports=function(r,t,a,n,i){i||(i={});var l=i.tickSuffixDflt,o=t0e(r),s=a("tickprefix");s&&a("showtickprefix",o);var u=a("ticksuffix",l);u&&a("showticksuffix",o)}});var Tx=G((BAe,mS)=>{"use strict";var zo=Se(),a0e=yt(),n0e=$h(),i0e=Kh(),l0e=Qh(),o0e=e1(),s0e=Zh();mS.exports=function(r,t,a){var n=a0e.newContainer(t,"colorbar"),i=r.colorbar||{};function l(R,F){return zo.coerce(i,n,s0e,R,F)}var o=a.margin||{t:0,b:0,l:0,r:0},s=a.width-o.l-o.r,u=a.height-o.t-o.b,f=l("orientation"),c=f==="v",v=l("thicknessmode");l("thickness",v==="fraction"?30/(c?s:u):30);var h=l("lenmode");l("len",h==="fraction"?1:c?u:s);var p=l("yref"),m=l("xref"),y=p==="paper",x=m==="paper",_,w,b,M="left";c?(b="middle",M=x?"left":"right",_=x?1.02:1,w=.5):(b=y?"bottom":"top",M="center",_=.5,w=y?1.02:1),zo.coerce(i,n,{x:{valType:"number",min:x?-2:0,max:x?3:1,dflt:_}},"x"),zo.coerce(i,n,{y:{valType:"number",min:y?-2:0,max:y?3:1,dflt:w}},"y"),l("xanchor",M),l("xpad"),l("yanchor",b),l("ypad"),zo.noneOrAll(i,n,["x","y"]),l("outlinecolor"),l("outlinewidth"),l("bordercolor"),l("borderwidth"),l("bgcolor");var A=zo.coerce(i,n,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:c?["outside","inside","outside top","inside top","outside bottom","inside bottom"]:["outside","inside","outside left","inside left","outside right","inside right"]}},"ticklabelposition");l("ticklabeloverflow",A.indexOf("inside")!==-1?"hide past domain":"hide past div"),n0e(i,n,l,"linear");var k=a.font,S={noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0,outerTicks:!1,font:k};A.indexOf("inside")!==-1&&(S.bgColor="black"),o0e(i,n,l,"linear",S),l0e(i,n,l,"linear",S),i0e(i,n,l,"linear",S),l("title.text",a._dfltTitle.colorbar);var D=n.showticklabels?n.tickfont:k,P=zo.extendFlat({},k,{family:D.family,size:zo.bigFont(D.size)});zo.coerceFont(l,"title.font",P),l("title.side",c?"top":"right")}});var U0=G((HAe,xS)=>{"use strict";var yS=Gr(),Ax=Se(),u0e=mx(),f0e=Tx(),gS=Hs().isValid,c0e=Ar().traceIs;function Mx(e,r){var t=r.slice(0,r.length-1);return r?Ax.nestedProperty(e,t).get()||{}:e}xS.exports=function e(r,t,a,n,i){var l=i.prefix,o=i.cLetter,s="_module"in t,u=Mx(r,l),f=Mx(t,l),c=Mx(t._template||{},l)||{},v=function(){return delete r.coloraxis,delete t.coloraxis,e(r,t,a,n,i)};if(s){var h=a._colorAxes||{},p=n(l+"coloraxis");if(p){var m=c0e(t,"contour")&&Ax.nestedProperty(t,"contours.coloring").get()||"heatmap",y=h[p];y?(y[2].push(v),y[0]!==m&&(y[0]=!1,Ax.warn(["Ignoring coloraxis:",p,"setting","as it is linked to incompatible colorscales."].join(" ")))):h[p]=[m,t,[v]];return}}var x=u[o+"min"],_=u[o+"max"],w=yS(x)&&yS(_)&&x<_,b=n(l+o+"auto",!w);b?n(l+o+"mid"):(n(l+o+"min"),n(l+o+"max"));var M=u.colorscale,A=c.colorscale,k;if(M!==void 0&&(k=!gS(M)),A!==void 0&&(k=!gS(A)),n(l+"autocolorscale",k),n(l+"colorscale"),n(l+"reversescale"),l!=="marker.line."){var S;l&&s&&(S=u0e(u));var D=n(l+"showscale",S);D&&(l&&c&&(f._template=c),f0e(u,f,a))}}});var TS=G((OAe,wS)=>{"use strict";var bS=Se(),v0e=yt(),_S=px(),d0e=U0();wS.exports=function(r,t){function a(c,v){return bS.coerce(r,t,_S,c,v)}a("colorscale.sequential"),a("colorscale.sequentialminus"),a("colorscale.diverging");var n=t._colorAxes,i,l;function o(c,v){return bS.coerce(i,l,_S.coloraxis,c,v)}for(var s in n){var u=n[s];if(u[0])i=r[s]||{},l=v0e.newContainer(t,s,"coloraxis"),l._name=s,d0e(i,l,t,o,{prefix:"",cLetter:"c"});else{for(var f=0;f{"use strict";var h0e=Se(),p0e=Wn().hasColorscale,m0e=Wn().extractOpts;MS.exports=function(r,t){function a(f,c){var v=f["_"+c];v!==void 0&&(f[c]=v)}function n(f,c){var v=c.container?h0e.nestedProperty(f,c.container).get():f;if(v)if(v.coloraxis)v._colorAx=t[v.coloraxis];else{var h=m0e(v),p=h.auto;(p||h.min===void 0)&&a(v,c.min),(p||h.max===void 0)&&a(v,c.max),h.autocolorscale&&a(v,"colorscale")}}for(var i=0;i{"use strict";var kS=Gr(),kx=Se(),y0e=Wn().extractOpts;LS.exports=function(r,t,a){var n=r._fullLayout,i=a.vals,l=a.containerStr,o=l?kx.nestedProperty(t,l).get():t,s=y0e(o),u=s.auto!==!1,f=s.min,c=s.max,v=s.mid,h=function(){return kx.aggNums(Math.min,null,i)},p=function(){return kx.aggNums(Math.max,null,i)};if(f===void 0?f=h():u&&(o._colorAx&&kS(f)?f=Math.min(f,h()):f=h()),c===void 0?c=p():u&&(o._colorAx&&kS(c)?c=Math.max(c,p()):c=p()),u&&v!==void 0&&(c-v>v-f?f=v-(c-v):c-v=0?m=n.colorscale.sequential:m=n.colorscale.sequentialminus,s._sync("colorscale",m)}}});var Lx=G((UAe,CS)=>{"use strict";var r1=Hs(),V0=Wn();CS.exports={moduleType:"component",name:"colorscale",attributes:uv(),layoutAttributes:px(),supplyLayoutDefaults:TS(),handleDefaults:U0(),crossTraceDefaults:AS(),calc:fv(),scales:r1.scales,defaultScale:r1.defaultScale,getScale:r1.get,isValidScale:r1.isValid,hasColorscale:V0.hasColorscale,extractOpts:V0.extractOpts,extractScale:V0.extractScale,flipScale:V0.flipScale,makeColorScaleFunc:V0.makeColorScaleFunc,makeColorScaleFuncFromTrace:V0.makeColorScaleFuncFromTrace}});var Jn=G((VAe,qS)=>{"use strict";var SS=Se(),g0e=Sn().isTypedArraySpec;qS.exports={hasLines:function(e){return e.visible&&e.mode&&e.mode.indexOf("lines")!==-1},hasMarkers:function(e){return e.visible&&(e.mode&&e.mode.indexOf("markers")!==-1||e.type==="splom")},hasText:function(e){return e.visible&&e.mode&&e.mode.indexOf("text")!==-1},isBubble:function(e){var r=e.marker;return SS.isPlainObject(r)&&(SS.isArrayOrTypedArray(r.size)||g0e(r.size))}}});var PS=G((XAe,DS)=>{"use strict";var x0e=Gr();DS.exports=function(r,t){t||(t=2);var a=r.marker,n=a.sizeref||1,i=a.sizemin||0,l=a.sizemode==="area"?function(o){return Math.sqrt(o/n)}:function(o){return o/n};return function(o){var s=l(o/t);return x0e(s)&&s>0?Math.max(s,i):0}}});var Wi=G(Wa=>{"use strict";var cv=Se();Wa.getSubplot=function(e){return e.subplot||e.xaxis+e.yaxis||e.geo};Wa.isTraceInSubplots=function(e,r){if(e.type==="splom"){for(var t=e.xaxes||[],a=e.yaxes||[],n=0;n=0&&t.index{var Cx={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},T0e=/([astvzqmhlc])([^astvzqmhlc]*)/gi,M0e=/-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/gi;function A0e(e){let r=[];return e.replace(T0e,(t,a,n)=>{let i=a.toLowerCase(),l=a,o=k0e(n);for(i==="m"&&o.length>2&&(r.push([l,...o.splice(0,2)]),i="l",l=l==="m"?"l":"L");;){if(o.length===Cx[i])return r.push([l,...o]),"";if(o.length{"use strict";var L0e=Sx(),We=function(e,r){return r?Math.round(e*(r=Math.pow(10,r)))/r:Math.round(e)},Rr="M0,0Z",FS=Math.sqrt(2),Fo=Math.sqrt(3),qx=Math.PI,Dx=Math.cos,Px=Math.sin;OS.exports={circle:{n:0,f:function(e,r,t){if(zr(r))return Rr;var a=We(e,2),n="M"+a+",0A"+a+","+a+" 0 1,1 0,-"+a+"A"+a+","+a+" 0 0,1 "+a+",0Z";return t?Fr(r,t,n):n}},square:{n:1,f:function(e,r,t){if(zr(r))return Rr;var a=We(e,2);return Fr(r,t,"M"+a+","+a+"H-"+a+"V-"+a+"H"+a+"Z")}},diamond:{n:2,f:function(e,r,t){if(zr(r))return Rr;var a=We(e*1.3,2);return Fr(r,t,"M"+a+",0L0,"+a+"L-"+a+",0L0,-"+a+"Z")}},cross:{n:3,f:function(e,r,t){if(zr(r))return Rr;var a=We(e*.4,2),n=We(e*1.2,2);return Fr(r,t,"M"+n+","+a+"H"+a+"V"+n+"H-"+a+"V"+a+"H-"+n+"V-"+a+"H-"+a+"V-"+n+"H"+a+"V-"+a+"H"+n+"Z")}},x:{n:4,f:function(e,r,t){if(zr(r))return Rr;var a=We(e*.8/FS,2),n="l"+a+","+a,i="l"+a+",-"+a,l="l-"+a+",-"+a,o="l-"+a+","+a;return Fr(r,t,"M0,"+a+n+i+l+i+l+o+l+o+n+o+n+"Z")}},"triangle-up":{n:5,f:function(e,r,t){if(zr(r))return Rr;var a=We(e*2/Fo,2),n=We(e/2,2),i=We(e,2);return Fr(r,t,"M-"+a+","+n+"H"+a+"L0,-"+i+"Z")}},"triangle-down":{n:6,f:function(e,r,t){if(zr(r))return Rr;var a=We(e*2/Fo,2),n=We(e/2,2),i=We(e,2);return Fr(r,t,"M-"+a+",-"+n+"H"+a+"L0,"+i+"Z")}},"triangle-left":{n:7,f:function(e,r,t){if(zr(r))return Rr;var a=We(e*2/Fo,2),n=We(e/2,2),i=We(e,2);return Fr(r,t,"M"+n+",-"+a+"V"+a+"L-"+i+",0Z")}},"triangle-right":{n:8,f:function(e,r,t){if(zr(r))return Rr;var a=We(e*2/Fo,2),n=We(e/2,2),i=We(e,2);return Fr(r,t,"M-"+n+",-"+a+"V"+a+"L"+i+",0Z")}},"triangle-ne":{n:9,f:function(e,r,t){if(zr(r))return Rr;var a=We(e*.6,2),n=We(e*1.2,2);return Fr(r,t,"M-"+n+",-"+a+"H"+a+"V"+n+"Z")}},"triangle-se":{n:10,f:function(e,r,t){if(zr(r))return Rr;var a=We(e*.6,2),n=We(e*1.2,2);return Fr(r,t,"M"+a+",-"+n+"V"+a+"H-"+n+"Z")}},"triangle-sw":{n:11,f:function(e,r,t){if(zr(r))return Rr;var a=We(e*.6,2),n=We(e*1.2,2);return Fr(r,t,"M"+n+","+a+"H-"+a+"V-"+n+"Z")}},"triangle-nw":{n:12,f:function(e,r,t){if(zr(r))return Rr;var a=We(e*.6,2),n=We(e*1.2,2);return Fr(r,t,"M-"+a+","+n+"V-"+a+"H"+n+"Z")}},pentagon:{n:13,f:function(e,r,t){if(zr(r))return Rr;var a=We(e*.951,2),n=We(e*.588,2),i=We(-e,2),l=We(e*-.309,2),o=We(e*.809,2);return Fr(r,t,"M"+a+","+l+"L"+n+","+o+"H-"+n+"L-"+a+","+l+"L0,"+i+"Z")}},hexagon:{n:14,f:function(e,r,t){if(zr(r))return Rr;var a=We(e,2),n=We(e/2,2),i=We(e*Fo/2,2);return Fr(r,t,"M"+i+",-"+n+"V"+n+"L0,"+a+"L-"+i+","+n+"V-"+n+"L0,-"+a+"Z")}},hexagon2:{n:15,f:function(e,r,t){if(zr(r))return Rr;var a=We(e,2),n=We(e/2,2),i=We(e*Fo/2,2);return Fr(r,t,"M-"+n+","+i+"H"+n+"L"+a+",0L"+n+",-"+i+"H-"+n+"L-"+a+",0Z")}},octagon:{n:16,f:function(e,r,t){if(zr(r))return Rr;var a=We(e*.924,2),n=We(e*.383,2);return Fr(r,t,"M-"+n+",-"+a+"H"+n+"L"+a+",-"+n+"V"+n+"L"+n+","+a+"H-"+n+"L-"+a+","+n+"V-"+n+"Z")}},star:{n:17,f:function(e,r,t){if(zr(r))return Rr;var a=e*1.4,n=We(a*.225,2),i=We(a*.951,2),l=We(a*.363,2),o=We(a*.588,2),s=We(-a,2),u=We(a*-.309,2),f=We(a*.118,2),c=We(a*.809,2),v=We(a*.382,2);return Fr(r,t,"M"+n+","+u+"H"+i+"L"+l+","+f+"L"+o+","+c+"L0,"+v+"L-"+o+","+c+"L-"+l+","+f+"L-"+i+","+u+"H-"+n+"L0,"+s+"Z")}},hexagram:{n:18,f:function(e,r,t){if(zr(r))return Rr;var a=We(e*.66,2),n=We(e*.38,2),i=We(e*.76,2);return Fr(r,t,"M-"+i+",0l-"+n+",-"+a+"h"+i+"l"+n+",-"+a+"l"+n+","+a+"h"+i+"l-"+n+","+a+"l"+n+","+a+"h-"+i+"l-"+n+","+a+"l-"+n+",-"+a+"h-"+i+"Z")}},"star-triangle-up":{n:19,f:function(e,r,t){if(zr(r))return Rr;var a=We(e*Fo*.8,2),n=We(e*.8,2),i=We(e*1.6,2),l=We(e*4,2),o="A "+l+","+l+" 0 0 1 ";return Fr(r,t,"M-"+a+","+n+o+a+","+n+o+"0,-"+i+o+"-"+a+","+n+"Z")}},"star-triangle-down":{n:20,f:function(e,r,t){if(zr(r))return Rr;var a=We(e*Fo*.8,2),n=We(e*.8,2),i=We(e*1.6,2),l=We(e*4,2),o="A "+l+","+l+" 0 0 1 ";return Fr(r,t,"M"+a+",-"+n+o+"-"+a+",-"+n+o+"0,"+i+o+a+",-"+n+"Z")}},"star-square":{n:21,f:function(e,r,t){if(zr(r))return Rr;var a=We(e*1.1,2),n=We(e*2,2),i="A "+n+","+n+" 0 0 1 ";return Fr(r,t,"M-"+a+",-"+a+i+"-"+a+","+a+i+a+","+a+i+a+",-"+a+i+"-"+a+",-"+a+"Z")}},"star-diamond":{n:22,f:function(e,r,t){if(zr(r))return Rr;var a=We(e*1.4,2),n=We(e*1.9,2),i="A "+n+","+n+" 0 0 1 ";return Fr(r,t,"M-"+a+",0"+i+"0,"+a+i+a+",0"+i+"0,-"+a+i+"-"+a+",0Z")}},"diamond-tall":{n:23,f:function(e,r,t){if(zr(r))return Rr;var a=We(e*.7,2),n=We(e*1.4,2);return Fr(r,t,"M0,"+n+"L"+a+",0L0,-"+n+"L-"+a+",0Z")}},"diamond-wide":{n:24,f:function(e,r,t){if(zr(r))return Rr;var a=We(e*1.4,2),n=We(e*.7,2);return Fr(r,t,"M0,"+n+"L"+a+",0L0,-"+n+"L-"+a+",0Z")}},hourglass:{n:25,f:function(e,r,t){if(zr(r))return Rr;var a=We(e,2);return Fr(r,t,"M"+a+","+a+"H-"+a+"L"+a+",-"+a+"H-"+a+"Z")},noDot:!0},bowtie:{n:26,f:function(e,r,t){if(zr(r))return Rr;var a=We(e,2);return Fr(r,t,"M"+a+","+a+"V-"+a+"L-"+a+","+a+"V-"+a+"Z")},noDot:!0},"circle-cross":{n:27,f:function(e,r,t){if(zr(r))return Rr;var a=We(e,2);return Fr(r,t,"M0,"+a+"V-"+a+"M"+a+",0H-"+a+"M"+a+",0A"+a+","+a+" 0 1,1 0,-"+a+"A"+a+","+a+" 0 0,1 "+a+",0Z")},needLine:!0,noDot:!0},"circle-x":{n:28,f:function(e,r,t){if(zr(r))return Rr;var a=We(e,2),n=We(e/FS,2);return Fr(r,t,"M"+n+","+n+"L-"+n+",-"+n+"M"+n+",-"+n+"L-"+n+","+n+"M"+a+",0A"+a+","+a+" 0 1,1 0,-"+a+"A"+a+","+a+" 0 0,1 "+a+",0Z")},needLine:!0,noDot:!0},"square-cross":{n:29,f:function(e,r,t){if(zr(r))return Rr;var a=We(e,2);return Fr(r,t,"M0,"+a+"V-"+a+"M"+a+",0H-"+a+"M"+a+","+a+"H-"+a+"V-"+a+"H"+a+"Z")},needLine:!0,noDot:!0},"square-x":{n:30,f:function(e,r,t){if(zr(r))return Rr;var a=We(e,2);return Fr(r,t,"M"+a+","+a+"L-"+a+",-"+a+"M"+a+",-"+a+"L-"+a+","+a+"M"+a+","+a+"H-"+a+"V-"+a+"H"+a+"Z")},needLine:!0,noDot:!0},"diamond-cross":{n:31,f:function(e,r,t){if(zr(r))return Rr;var a=We(e*1.3,2);return Fr(r,t,"M"+a+",0L0,"+a+"L-"+a+",0L0,-"+a+"ZM0,-"+a+"V"+a+"M-"+a+",0H"+a)},needLine:!0,noDot:!0},"diamond-x":{n:32,f:function(e,r,t){if(zr(r))return Rr;var a=We(e*1.3,2),n=We(e*.65,2);return Fr(r,t,"M"+a+",0L0,"+a+"L-"+a+",0L0,-"+a+"ZM-"+n+",-"+n+"L"+n+","+n+"M-"+n+","+n+"L"+n+",-"+n)},needLine:!0,noDot:!0},"cross-thin":{n:33,f:function(e,r,t){if(zr(r))return Rr;var a=We(e*1.4,2);return Fr(r,t,"M0,"+a+"V-"+a+"M"+a+",0H-"+a)},needLine:!0,noDot:!0,noFill:!0},"x-thin":{n:34,f:function(e,r,t){if(zr(r))return Rr;var a=We(e,2);return Fr(r,t,"M"+a+","+a+"L-"+a+",-"+a+"M"+a+",-"+a+"L-"+a+","+a)},needLine:!0,noDot:!0,noFill:!0},asterisk:{n:35,f:function(e,r,t){if(zr(r))return Rr;var a=We(e*1.2,2),n=We(e*.85,2);return Fr(r,t,"M0,"+a+"V-"+a+"M"+a+",0H-"+a+"M"+n+","+n+"L-"+n+",-"+n+"M"+n+",-"+n+"L-"+n+","+n)},needLine:!0,noDot:!0,noFill:!0},hash:{n:36,f:function(e,r,t){if(zr(r))return Rr;var a=We(e/2,2),n=We(e,2);return Fr(r,t,"M"+a+","+n+"V-"+n+"M"+(a-n)+",-"+n+"V"+n+"M"+n+","+a+"H-"+n+"M-"+n+","+(a-n)+"H"+n)},needLine:!0,noFill:!0},"y-up":{n:37,f:function(e,r,t){if(zr(r))return Rr;var a=We(e*1.2,2),n=We(e*1.6,2),i=We(e*.8,2);return Fr(r,t,"M-"+a+","+i+"L0,0M"+a+","+i+"L0,0M0,-"+n+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-down":{n:38,f:function(e,r,t){if(zr(r))return Rr;var a=We(e*1.2,2),n=We(e*1.6,2),i=We(e*.8,2);return Fr(r,t,"M-"+a+",-"+i+"L0,0M"+a+",-"+i+"L0,0M0,"+n+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-left":{n:39,f:function(e,r,t){if(zr(r))return Rr;var a=We(e*1.2,2),n=We(e*1.6,2),i=We(e*.8,2);return Fr(r,t,"M"+i+","+a+"L0,0M"+i+",-"+a+"L0,0M-"+n+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-right":{n:40,f:function(e,r,t){if(zr(r))return Rr;var a=We(e*1.2,2),n=We(e*1.6,2),i=We(e*.8,2);return Fr(r,t,"M-"+i+","+a+"L0,0M-"+i+",-"+a+"L0,0M"+n+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"line-ew":{n:41,f:function(e,r,t){if(zr(r))return Rr;var a=We(e*1.4,2);return Fr(r,t,"M"+a+",0H-"+a)},needLine:!0,noDot:!0,noFill:!0},"line-ns":{n:42,f:function(e,r,t){if(zr(r))return Rr;var a=We(e*1.4,2);return Fr(r,t,"M0,"+a+"V-"+a)},needLine:!0,noDot:!0,noFill:!0},"line-ne":{n:43,f:function(e,r,t){if(zr(r))return Rr;var a=We(e,2);return Fr(r,t,"M"+a+",-"+a+"L-"+a+","+a)},needLine:!0,noDot:!0,noFill:!0},"line-nw":{n:44,f:function(e,r,t){if(zr(r))return Rr;var a=We(e,2);return Fr(r,t,"M"+a+","+a+"L-"+a+",-"+a)},needLine:!0,noDot:!0,noFill:!0},"arrow-up":{n:45,f:function(e,r,t){if(zr(r))return Rr;var a=We(e,2),n=We(e*2,2);return Fr(r,t,"M0,0L-"+a+","+n+"H"+a+"Z")},backoff:1,noDot:!0},"arrow-down":{n:46,f:function(e,r,t){if(zr(r))return Rr;var a=We(e,2),n=We(e*2,2);return Fr(r,t,"M0,0L-"+a+",-"+n+"H"+a+"Z")},noDot:!0},"arrow-left":{n:47,f:function(e,r,t){if(zr(r))return Rr;var a=We(e*2,2),n=We(e,2);return Fr(r,t,"M0,0L"+a+",-"+n+"V"+n+"Z")},noDot:!0},"arrow-right":{n:48,f:function(e,r,t){if(zr(r))return Rr;var a=We(e*2,2),n=We(e,2);return Fr(r,t,"M0,0L-"+a+",-"+n+"V"+n+"Z")},noDot:!0},"arrow-bar-up":{n:49,f:function(e,r,t){if(zr(r))return Rr;var a=We(e,2),n=We(e*2,2);return Fr(r,t,"M-"+a+",0H"+a+"M0,0L-"+a+","+n+"H"+a+"Z")},backoff:1,needLine:!0,noDot:!0},"arrow-bar-down":{n:50,f:function(e,r,t){if(zr(r))return Rr;var a=We(e,2),n=We(e*2,2);return Fr(r,t,"M-"+a+",0H"+a+"M0,0L-"+a+",-"+n+"H"+a+"Z")},needLine:!0,noDot:!0},"arrow-bar-left":{n:51,f:function(e,r,t){if(zr(r))return Rr;var a=We(e*2,2),n=We(e,2);return Fr(r,t,"M0,-"+n+"V"+n+"M0,0L"+a+",-"+n+"V"+n+"Z")},needLine:!0,noDot:!0},"arrow-bar-right":{n:52,f:function(e,r,t){if(zr(r))return Rr;var a=We(e*2,2),n=We(e,2);return Fr(r,t,"M0,-"+n+"V"+n+"M0,0L-"+a+",-"+n+"V"+n+"Z")},needLine:!0,noDot:!0},arrow:{n:53,f:function(e,r,t){if(zr(r))return Rr;var a=qx/2.5,n=2*e*Dx(a),i=2*e*Px(a);return Fr(r,t,"M0,0L"+-n+","+i+"L"+n+","+i+"Z")},backoff:.9,noDot:!0},"arrow-wide":{n:54,f:function(e,r,t){if(zr(r))return Rr;var a=qx/4,n=2*e*Dx(a),i=2*e*Px(a);return Fr(r,t,"M0,0L"+-n+","+i+"A "+2*e+","+2*e+" 0 0 1 "+n+","+i+"Z")},backoff:.4,noDot:!0}};function zr(e){return e===null}var NS,IS,BS,HS;function Fr(e,r,t){if((!e||e%360===0)&&!r)return t;if(BS===e&&HS===r&&NS===t)return IS;BS=e,HS=r,NS=t;function a(y,x){var _=Dx(y),w=Px(y),b=x[0],M=x[1]+(r||0);return[b*_-M*w,b*w+M*_]}for(var n=e/180*qx,i=0,l=0,o=L0e(t),s="",u=0;u{"use strict";var Ca=Er(),ut=Se(),C0e=ut.numberFormat,No=Gr(),a1=Ar(),_a=kr(),S0e=Lx(),dv=ut.strTranslate,n1=ba(),q0e=($s(),Fe(Js)),D0e=(Xa(),Fe(Va)),P0e=D0e.LINE_SPACING,jS=(k0(),Fe(A0)).DESELECTDIM,E0e=Jn(),R0e=PS(),z0e=Wi().appendArrayPointValue,er={};sq.exports=er;er.font=function(e,r){var t=r.variant,a=r.style,n=r.weight,i=r.color,l=r.size,o=r.family,s=r.shadow,u=r.lineposition,f=r.textcase;o&&e.style("font-family",o),l+1&&e.style("font-size",l+"px"),i&&e.call(_a.fill,i),n&&e.style("font-weight",n),a&&e.style("font-style",a),t&&e.style("font-variant",t),f&&e.style("text-transform",Ex(N0e(f))),s&&e.style("text-shadow",s==="auto"?n1.makeTextShadow(_a.contrast(i)):Ex(s)),u&&e.style("text-decoration-line",Ex(I0e(u)))};function Ex(e){return e==="none"?void 0:e}var F0e={normal:"none",lower:"lowercase",upper:"uppercase","word caps":"capitalize"};function N0e(e){return F0e[e]}function I0e(e){return e.replace("under","underline").replace("over","overline").replace("through","line-through").split("+").join(" ")}er.setPosition=function(e,r,t){e.attr("x",r).attr("y",t)};er.setSize=function(e,r,t){e.attr("width",r).attr("height",t)};er.setRect=function(e,r,t,a,n){e.call(er.setPosition,r,t).call(er.setSize,a,n)};er.translatePoint=function(e,r,t,a){var n=t.c2p(e.x),i=a.c2p(e.y);if(No(n)&&No(i)&&r.node())r.node().nodeName==="text"?r.attr("x",n).attr("y",i):r.attr("transform",dv(n,i));else return!1;return!0};er.translatePoints=function(e,r,t){e.each(function(a){var n=Ca.select(this);er.translatePoint(a,n,r,t)})};er.hideOutsideRangePoint=function(e,r,t,a,n,i){r.attr("display",t.isPtWithinRange(e,n)&&a.isPtWithinRange(e,i)?null:"none")};er.hideOutsideRangePoints=function(e,r){if(r._hasClipOnAxisFalse){var t=r.xaxis,a=r.yaxis;e.each(function(n){var i=n[0].trace,l=i.xcalendar,o=i.ycalendar,s=a1.traceIs(i,"bar-like")?".bartext":".point,.textpoint";e.selectAll(s).each(function(u){er.hideOutsideRangePoint(u,Ca.select(this),t,a,l,o)})})}};er.crispRound=function(e,r,t){return!r||!No(r)?t||0:e._context.staticPlot?r:r<1?1:Math.round(r)};er.singleLineStyle=function(e,r,t,a,n){r.style("fill","none");var i=(((e||[])[0]||{}).trace||{}).line||{},l=t||i.width||0,o=n||i.dash||"";_a.stroke(r,a||i.color),er.dashLine(r,o,l)};er.lineGroupStyle=function(e,r,t,a){e.style("fill","none").each(function(n){var i=(((n||[])[0]||{}).trace||{}).line||{},l=r||i.width||0,o=a||i.dash||"";Ca.select(this).call(_a.stroke,t||i.color).call(er.dashLine,o,l)})};er.dashLine=function(e,r,t){t=+t||0,r=er.dashStyle(r,t),e.style({"stroke-dasharray":r,"stroke-width":t+"px"})};er.dashStyle=function(e,r){r=+r||1;var t=Math.max(r,3);return e==="solid"?e="":e==="dot"?e=t+"px,"+t+"px":e==="dash"?e=3*t+"px,"+3*t+"px":e==="longdash"?e=5*t+"px,"+5*t+"px":e==="dashdot"?e=3*t+"px,"+t+"px,"+t+"px,"+t+"px":e==="longdashdot"&&(e=5*t+"px,"+2*t+"px,"+t+"px,"+2*t+"px"),e};function QS(e,r,t,a){var n=r.fillpattern,i=r.fillgradient,l=er.getPatternAttr,o=n&&(l(n.shape,0,"")||l(n.path,0,""));if(o){var s=l(n.bgcolor,0,null),u=l(n.fgcolor,0,null),f=n.fgopacity,c=l(n.size,0,8),v=l(n.solidity,0,.3),h=r.uid;er.pattern(e,"point",t,h,o,c,v,void 0,n.fillmode,s,u,f)}else if(i&&i.type!=="none"){var p=i.type,m="scatterfill-"+r.uid;if(a&&(m="legendfill-"+r.uid),!a&&(i.start!==void 0||i.stop!==void 0)){var y,x;p==="horizontal"?(y={x:i.start,y:0},x={x:i.stop,y:0}):p==="vertical"&&(y={x:0,y:i.start},x={x:0,y:i.stop}),y.x=r._xA.c2p(y.x===void 0?r._extremes.x.min[0].val:y.x,!0),y.y=r._yA.c2p(y.y===void 0?r._extremes.y.min[0].val:y.y,!0),x.x=r._xA.c2p(x.x===void 0?r._extremes.x.max[0].val:x.x,!0),x.y=r._yA.c2p(x.y===void 0?r._extremes.y.max[0].val:x.y,!0),e.call(tq,t,m,"linear",i.colorscale,"fill",y,x,!0,!1)}else p==="horizontal"&&(p=p+"reversed"),e.call(er.gradient,t,m,p,i.colorscale,"fill")}else r.fillcolor&&e.call(_a.fill,r.fillcolor)}er.singleFillStyle=function(e,r){var t=Ca.select(e.node()),a=t.data(),n=((a[0]||[])[0]||{}).trace||{};QS(e,n,r,!1)};er.fillGroupStyle=function(e,r,t){e.style("stroke-width",0).each(function(a){var n=Ca.select(this);a[0].trace&&QS(n,a[0].trace,r,t)})};var GS=YS();er.symbolNames=[];er.symbolFuncs=[];er.symbolBackOffs=[];er.symbolNeedLines={};er.symbolNoDot={};er.symbolNoFill={};er.symbolList=[];Object.keys(GS).forEach(function(e){var r=GS[e],t=r.n;er.symbolList.push(t,String(t),e,t+100,String(t+100),e+"-open"),er.symbolNames[t]=e,er.symbolFuncs[t]=r.f,er.symbolBackOffs[t]=r.backoff||0,r.needLine&&(er.symbolNeedLines[t]=!0),r.noDot?er.symbolNoDot[t]=!0:er.symbolList.push(t+200,String(t+200),e+"-dot",t+300,String(t+300),e+"-open-dot"),r.noFill&&(er.symbolNoFill[t]=!0)});var B0e=er.symbolNames.length,H0e="M0,0.5L0.5,0L0,-0.5L-0.5,0Z";er.symbolNumber=function(e){if(No(e))e=+e;else if(typeof e=="string"){var r=0;e.indexOf("-open")>0&&(r=100,e=e.replace("-open","")),e.indexOf("-dot")>0&&(r+=200,e=e.replace("-dot","")),e=er.symbolNames.indexOf(e),e>=0&&(e+=r)}return e%100>=B0e||e>=400?0:Math.floor(Math.max(e,0))};function eq(e,r,t,a){var n=e%100;return er.symbolFuncs[n](r,t,a)+(e>=200?H0e:"")}var US=C0e("~f"),rq={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}};er.gradient=function(e,r,t,a,n,i){var l=rq[a];return tq(e,r,t,l.type,n,i,l.start,l.stop,!1,l.reversed)};function tq(e,r,t,a,n,i,l,o,s,u){var f=n.length,c;a==="linear"?c={node:"linearGradient",attrs:{x1:l.x,y1:l.y,x2:o.x,y2:o.y,gradientUnits:s?"userSpaceOnUse":"objectBoundingBox"},reversed:u}:a==="radial"&&(c={node:"radialGradient",reversed:u});for(var v=new Array(f),h=0;h=0&&e.i===void 0&&(e.i=i.i),r.style("opacity",a.selectedOpacityFn?a.selectedOpacityFn(e):e.mo===void 0?l.opacity:e.mo),a.ms2mrc){var s;e.ms==="various"||l.size==="various"?s=3:s=a.ms2mrc(e.ms),e.mrc=s,a.selectedSizeFn&&(s=e.mrc=a.selectedSizeFn(e));var u=er.symbolNumber(e.mx||l.symbol)||0;e.om=u%200>=100;var f=Hx(e,t),c=Bx(e,t);r.attr("d",eq(u,s,f,c))}var v=!1,h,p,m;if(e.so)m=o.outlierwidth,p=o.outliercolor,h=l.outliercolor;else{var y=(o||{}).width;m=(e.mlw+1||y+1||(e.trace?(e.trace.marker.line||{}).width:0)+1)-1||0,"mlc"in e?p=e.mlcc=a.lineScale(e.mlc):ut.isArrayOrTypedArray(o.color)?p=_a.defaultLine:p=o.color,ut.isArrayOrTypedArray(l.color)&&(h=_a.defaultLine,v=!0),"mc"in e?h=e.mcc=a.markerScale(e.mc):h=l.color||l.colors||"rgba(0,0,0,0)",a.selectedColorFn&&(h=a.selectedColorFn(e))}let x=e.mld||(o||{}).dash;if(x&&er.dashLine(r,x,m),e.om)r.call(_a.stroke,h).style({"stroke-width":(m||1)+"px",fill:"none"});else{r.style("stroke-width",(e.isBlank?0:m)+"px");var _=l.gradient,w=e.mgt;w?v=!0:w=_&&_.type,ut.isArrayOrTypedArray(w)&&(w=w[0],rq[w]||(w=0));var b=l.pattern,M=er.getPatternAttr,A=b&&(M(b.shape,e.i,"")||M(b.path,e.i,""));if(w&&w!=="none"){var k=e.mgc;k?v=!0:k=_.color;var S=t.uid;v&&(S+="-"+e.i),er.gradient(r,n,S,w,[[0,k],[1,h]],"fill")}else if(A){var D=!1,P=b.fgcolor;!P&&i&&i.color&&(P=i.color,D=!0);var R=M(P,e.i,i&&i.color||null),F=M(b.bgcolor,e.i,null),B=b.fgopacity,H=M(b.size,e.i,8),N=M(b.solidity,e.i,.3);D=D||e.mcc||ut.isArrayOrTypedArray(b.shape)||ut.isArrayOrTypedArray(b.path)||ut.isArrayOrTypedArray(b.bgcolor)||ut.isArrayOrTypedArray(b.fgcolor)||ut.isArrayOrTypedArray(b.size)||ut.isArrayOrTypedArray(b.solidity);var Y=t.uid;D&&(Y+="-"+e.i),er.pattern(r,"point",n,Y,A,H,N,e.mcc,b.fillmode,F,R,B)}else ut.isArrayOrTypedArray(h)?_a.fill(r,h[e.i]):_a.fill(r,h);m&&_a.stroke(r,p)}};er.makePointStyleFns=function(e){var r={},t=e.marker;return r.markerScale=er.tryColorscale(t,""),r.lineScale=er.tryColorscale(t,"line"),a1.traceIs(e,"symbols")&&(r.ms2mrc=E0e.isBubble(e)?R0e(e):function(){return(t.size||6)/2}),e.selectedpoints&&ut.extendFlat(r,er.makeSelectedPointStyleFns(e)),r};er.makeSelectedPointStyleFns=function(e){var r={},t=e.selected||{},a=e.unselected||{},n=e.marker||{},i=t.marker||{},l=a.marker||{},o=n.opacity,s=i.opacity,u=l.opacity,f=s!==void 0,c=u!==void 0;(ut.isArrayOrTypedArray(o)||f||c)&&(r.selectedOpacityFn=function(b){var M=b.mo===void 0?n.opacity:b.mo;return b.selected?f?s:M:c?u:jS*M});var v=n.color,h=i.color,p=l.color;(h||p)&&(r.selectedColorFn=function(b){var M=b.mcc||v;return b.selected?h||M:p||M});var m=n.size,y=i.size,x=l.size,_=y!==void 0,w=x!==void 0;return a1.traceIs(e,"symbols")&&(_||w)&&(r.selectedSizeFn=function(b){var M=b.mrc||m/2;return b.selected?_?y/2:M:w?x/2:M}),r};er.makeSelectedTextStyleFns=function(e){var r={},t=e.selected||{},a=e.unselected||{},n=e.textfont||{},i=t.textfont||{},l=a.textfont||{},o=n.color,s=i.color,u=l.color;return r.selectedTextColorFn=function(f){var c=f.tc||o;return f.selected?s||c:u||(s?c:_a.addOpacity(c,jS))},r};er.selectedPointStyle=function(e,r){if(!(!e.size()||!r.selectedpoints)){var t=er.makeSelectedPointStyleFns(r),a=r.marker||{},n=[];t.selectedOpacityFn&&n.push(function(i,l){i.style("opacity",t.selectedOpacityFn(l))}),t.selectedColorFn&&n.push(function(i,l){_a.fill(i,t.selectedColorFn(l))}),t.selectedSizeFn&&n.push(function(i,l){var o=l.mx||a.symbol||0,s=t.selectedSizeFn(l);i.attr("d",eq(er.symbolNumber(o),s,Hx(l,r),Bx(l,r))),l.mrc2=s}),n.length&&e.each(function(i){for(var l=Ca.select(this),o=0;o0?t:0}er.textPointStyle=function(e,r,t){if(e.size()){var a;if(r.selectedpoints){var n=er.makeSelectedTextStyleFns(r);a=n.selectedTextColorFn}var i=r.texttemplate,l=t._fullLayout;e.each(function(o){var s=Ca.select(this),u=i?ut.extractOption(o,r,"txt","texttemplate"):ut.extractOption(o,r,"tx","text");if(!u&&u!==0){s.remove();return}if(i){var f=r._module.formatLabels,c=f?f(o,r,l):{},v={};z0e(v,r,o.i),u=ut.texttemplateString({data:[v,o,r._meta],fallback:r.texttemplatefallback,labels:c,locale:l._d3locale,template:u})}var h=o.tp||r.textposition,p=nq(o,r),m=a?a(o):o.tc||r.textfont.color;s.call(er.font,{family:o.tf||r.textfont.family,weight:o.tw||r.textfont.weight,style:o.ty||r.textfont.style,variant:o.tv||r.textfont.variant,textcase:o.tC||r.textfont.textcase,lineposition:o.tE||r.textfont.lineposition,shadow:o.tS||r.textfont.shadow,size:p,color:m}).text(u).call(n1.convertToTspans,t).call(aq,h,p,o.mrc)})}};er.selectedTextStyle=function(e,r){if(!(!e.size()||!r.selectedpoints)){var t=er.makeSelectedTextStyleFns(r);e.each(function(a){var n=Ca.select(this),i=t.selectedTextColorFn(a),l=a.tp||r.textposition,o=nq(a,r);_a.fill(n,i);var s=a1.traceIs(r,"bar-like");aq(n,l,o,a.mrc2||a.mrc,s)})}};var VS=.5;er.smoothopen=function(e,r){if(e.length<3)return"M"+e.join("L");var t="M"+e[0],a=[],n;for(n=1;n=s||b>=f&&b<=s)&&(M<=c&&M>=u||M>=c&&M<=u)&&(e=[b,M])}return e}er.applyBackoff=oq;er.makeTester=function(){var e=ut.ensureSingleById(Ca.select("body"),"svg","js-plotly-tester",function(t){t.attr(q0e.svgAttrs).style({position:"absolute",left:"-10000px",top:"-10000px",width:"9000px",height:"9000px","z-index":"1"})}),r=ut.ensureSingle(e,"path","js-reference-point",function(t){t.attr("d","M0,0H1V1H0Z").style({"stroke-width":0,fill:"black"})});er.tester=e,er.testref=r};er.savedBBoxes={};var zx=0,G0e=1e4;er.bBox=function(e,r,t){t||(t=XS(e));var a;if(t){if(a=er.savedBBoxes[t],a)return ut.extendFlat({},a)}else if(e.childNodes.length===1){var n=e.childNodes[0];if(t=XS(n),t){var i=+n.getAttribute("x")||0,l=+n.getAttribute("y")||0,o=n.getAttribute("transform");if(!o){var s=er.bBox(n,!1,t);return i&&(s.left+=i,s.right+=i),l&&(s.top+=l,s.bottom+=l),s}if(t+="~"+i+"~"+l+"~"+o,a=er.savedBBoxes[t],a)return ut.extendFlat({},a)}}var u,f;r?u=e:(f=er.tester.node(),u=e.cloneNode(!0),f.appendChild(u)),Ca.select(u).attr("transform",null).call(n1.positionText,0,0);var c=u.getBoundingClientRect(),v=er.testref.node().getBoundingClientRect();r||f.removeChild(u);var h={height:c.height,width:c.width,left:c.left-v.left,top:c.top-v.top,right:c.right-v.left,bottom:c.bottom-v.top};return zx>=G0e&&(er.savedBBoxes={},zx=0),t&&(er.savedBBoxes[t]=h),zx++,ut.extendFlat({},h)};function XS(e){var r=e.getAttribute("data-unformatted");if(r!==null)return r+e.getAttribute("data-math")+e.getAttribute("text-anchor")+e.getAttribute("style")}er.setClipUrl=function(e,r,t){e.attr("clip-path",Ix(r,t))};function Ix(e,r){if(!e)return null;var t=r._context,a=t._exportedPlot?"":t._baseUrl||"";return a?"url('"+a+"#"+e+"')":"url(#"+e+")"}er.getTranslate=function(e){var r=/.*\btranslate\((-?\d*\.?\d*)[^-\d]*(-?\d*\.?\d*)[^\d].*/,t=e.attr?"attr":"getAttribute",a=e[t]("transform")||"",n=a.replace(r,function(i,l,o){return[l,o].join(" ")}).split(" ");return{x:+n[0]||0,y:+n[1]||0}};er.setTranslate=function(e,r,t){var a=/(\btranslate\(.*?\);?)/,n=e.attr?"attr":"getAttribute",i=e.attr?"attr":"setAttribute",l=e[n]("transform")||"";return r=r||0,t=t||0,l=l.replace(a,"").trim(),l+=dv(r,t),l=l.trim(),e[i]("transform",l),l};er.getScale=function(e){var r=/.*\bscale\((\d*\.?\d*)[^\d]*(\d*\.?\d*)[^\d].*/,t=e.attr?"attr":"getAttribute",a=e[t]("transform")||"",n=a.replace(r,function(i,l,o){return[l,o].join(" ")}).split(" ");return{x:+n[0]||1,y:+n[1]||1}};er.setScale=function(e,r,t){var a=/(\bscale\(.*?\);?)/,n=e.attr?"attr":"getAttribute",i=e.attr?"attr":"setAttribute",l=e[n]("transform")||"";return r=r||1,t=t||1,l=l.replace(a,"").trim(),l+="scale("+r+","+t+")",l=l.trim(),e[i]("transform",l),l};var U0e=/\s*sc.*/;er.setPointGroupScale=function(e,r,t){if(r=r||1,t=t||1,!!e){var a=r===1&&t===1?"":"scale("+r+","+t+")";e.each(function(){var n=(this.getAttribute("transform")||"").replace(U0e,"");n+=a,n=n.trim(),this.setAttribute("transform",n)})}};var V0e=/translate\([^)]*\)\s*$/;er.setTextPointsScale=function(e,r,t){e&&e.each(function(){var a,n=Ca.select(this),i=n.select("text");if(i.node()){var l=parseFloat(i.attr("x")||0),o=parseFloat(i.attr("y")||0),s=(n.attr("transform")||"").match(V0e);r===1&&t===1?a=[]:a=[dv(l,o),"scale("+r+","+t+")",dv(-l,-o)],s&&a.push(s),n.attr("transform",a.join(""))}})};function Bx(e,r){var t;return e&&(t=e.mf),t===void 0&&(t=r.marker&&r.marker.standoff||0),!r._geo&&!r._xA?-t:t}er.getMarkerStandoff=Bx;var vv=Math.atan2,Qs=Math.cos,W0=Math.sin;function WS(e,r){var t=r[0],a=r[1];return[t*Qs(e)-a*W0(e),t*W0(e)+a*Qs(e)]}var ZS,JS,$S,KS,Fx,Nx;function Hx(e,r){var t=e.ma;t===void 0&&(t=r.marker.angle,(!No(t)||ut.isArrayOrTypedArray(t))&&(t=0));var a,n,i=r.marker.angleref;if(i==="previous"||i==="north"){if(r._geo){var l=r._geo.project(e.lonlat);a=l[0],n=l[1]}else{var o=r._xA,s=r._yA;if(o&&s)a=o.c2p(e.x),n=s.c2p(e.y);else return 90}if(r._geo){var u=e.lonlat[0],f=e.lonlat[1],c=r._geo.project([u,f+1e-5]),v=r._geo.project([u+1e-5,f]),h=vv(v[1]-n,v[0]-a),p=vv(c[1]-n,c[0]-a),m;if(i==="north")m=t/180*Math.PI;else if(i==="previous"){var y=u/180*Math.PI,x=f/180*Math.PI,_=ZS/180*Math.PI,w=JS/180*Math.PI,b=_-y,M=Qs(w)*W0(b),A=W0(w)*Qs(x)-Qs(w)*W0(x)*Qs(b);m=-vv(M,A)-Math.PI,ZS=u,JS=f}var k=WS(h,[Qs(m),0]),S=WS(p,[W0(m),0]);t=vv(k[1]+S[1],k[0]+S[0])/Math.PI*180,i==="previous"&&!(Nx===r.uid&&e.i===Fx+1)&&(t=null)}if(i==="previous"&&!r._geo)if(Nx===r.uid&&e.i===Fx+1&&No(a)&&No(n)){var D=a-$S,P=n-KS,R=r.line&&r.line.shape||"",F=R.slice(R.length-1);F==="h"&&(P=0),F==="v"&&(D=0),t+=vv(P,D)/Math.PI*180+90}else t=null}return $S=a,KS=n,Fx=e.i,Nx=r.uid,t}er.getMarkerAngle=Hx});var hv=G((KAe,vq)=>{"use strict";var Z0=Er(),X0e=Gr(),W0e=Jt(),Ox=Ar(),tu=Se(),uq=tu.strTranslate,i1=$r(),l1=kr(),J0=ba(),fq=(k0(),Fe(A0)),Z0e=(Xa(),Fe(Va)).OPPOSITE_SIDE,cq=/ [XY][0-9]* /,Yx=1.6,Gx=1.6;function J0e(e,r,t){var a=e._fullLayout,n=t.propContainer,i=t.propName,l=t.placeholder,o=t.traceIndex,s=t.avoid||{},u=t.attributes,f=t.transform,c=t.containerGroup,v=1,h=n.title,p=(h&&h.text?h.text:"").trim(),m=!1,y=h&&h.font?h.font:{},x=y.family,_=y.size,w=y.color,b=y.weight,M=y.style,A=y.variant,k=y.textcase,S=y.lineposition,D=y.shadow,P=t.subtitlePropName,R=!!P,F=t.subtitlePlaceholder,B=(n.title||{}).subtitle||{text:"",font:{}},H=(B.text||"").trim(),N=!1,Y=1,O=B.font,V=O.family,X=O.size,W=O.color,U=O.weight,$=O.style,re=O.variant,se=O.textcase,oe=O.lineposition,K=O.shadow,me;i==="title.text"?me="titleText":i.indexOf("axis")!==-1?me="axisTitleText":i.indexOf("colorbar")!==-1&&(me="colorbarTitleText");var ie=e._context.edits[me];function Me($e,Qe){return $e===void 0||Qe===void 0?!1:$e.replace(cq," % ")===Qe.replace(cq," % ")}p===""?v=0:Me(p,l)&&(ie||(p=""),v=.2,m=!0),R&&(H===""?Y=0:Me(H,F)&&(ie||(H=""),Y=.2,N=!0)),t._meta?p=tu.templateString(p,t._meta):a._meta&&(p=tu.templateString(p,a._meta));var ue=p||H||ie,ce;c||(c=tu.ensureSingle(a._infolayer,"g","g-"+r),ce=a._hColorbarMoveTitle);var Te=c.selectAll("text."+r).data(ue?[0]:[]);Te.enter().append("text"),Te.text(p).attr("class",r),Te.exit().remove();var Ne=null,ge=r+"-subtitle",qe=H||ie;if(R&&(Ne=c.selectAll("text."+ge).data(qe?[0]:[]),Ne.enter().append("text"),Ne.text(H).attr("class",ge),Ne.exit().remove()),!ue)return c;function ke($e,Qe){tu.syncOrAsync([Le,Ce],{title:$e,subtitle:Qe})}function Le($e){var Qe=$e.title,De=$e.subtitle,He;!f&&ce&&(f={}),f?(He="",f.rotate&&(He+="rotate("+[f.rotate,u.x,u.y]+")"),(f.offset||ce)&&(He+=uq(0,(f.offset||0)-(ce||0)))):He=null,Qe.attr("transform",He);function tr(le){if(le){var ye=Z0.select(le.node().parentNode).select("."+ge);if(!ye.empty()){var Ie=le.node().getBBox();if(Ie.height){var Xe=Ie.y+Ie.height+Yx*X;ye.attr("y",Xe)}}}}if(Qe.style("opacity",v*l1.opacity(w)).call(i1.font,{color:l1.rgb(w),size:Z0.round(_,2),family:x,weight:b,style:M,variant:A,textcase:k,shadow:D,lineposition:S}).attr(u).call(J0.convertToTspans,e,tr),De&&!De.empty()){var te=c.select("."+r+"-math-group"),xe=Qe.node().getBBox(),Ve=te.node()?te.node().getBBox():void 0,cr=Ve?Ve.y+Ve.height+Yx*X:xe.y+xe.height+Gx*X,mr=tu.extendFlat({},u,{y:cr});De.attr("transform",He),De.style("opacity",Y*l1.opacity(W)).call(i1.font,{color:l1.rgb(W),size:Z0.round(X,2),family:V,weight:U,style:$,variant:re,textcase:se,shadow:K,lineposition:oe}).attr(mr).call(J0.convertToTspans,e)}return W0e.previousPromises(e)}function Ce($e){var Qe=$e.title,De=Z0.select(Qe.node().parentNode);if(s&&s.selection&&s.side&&p){De.attr("transform",null);var He=Z0e[s.side],tr=s.side==="left"||s.side==="top"?-1:1,te=X0e(s.pad)?s.pad:2,xe=i1.bBox(De.node()),Ve={t:0,b:0,l:0,r:0},cr=e._fullLayout._reservedMargin;for(var mr in cr)for(var le in cr[mr]){var ye=cr[mr][le];Ve[le]=Math.max(Ve[le],ye)}var Ie={left:Ve.l,top:Ve.t,right:a.width-Ve.r,bottom:a.height-Ve.b},Xe=s.maxShift||tr*(Ie[s.side]-xe[s.side]),Be=0;if(Xe<0)Be=Xe;else{var Ze=s.offsetLeft||0,Ke=s.offsetTop||0;xe.left-=Ze,xe.right-=Ze,xe.top-=Ke,xe.bottom-=Ke,s.selection.each(function(){var br=i1.bBox(this);tu.bBoxIntersect(xe,br,te)&&(Be=Math.max(Be,tr*(br[s.side]-xe[He])+te))}),Be=Math.min(Xe,Be),n._titleScoot=Math.abs(Be)}if(Be>0||Xe<0){var _r={left:[-Be,0],right:[Be,0],top:[0,-Be],bottom:[0,Be]}[s.side];De.attr("transform",uq(_r[0],_r[1]))}}}Te.call(ke,Ne);function ze($e,Qe){$e.text(Qe).on("mouseover.opacity",function(){Z0.select(this).transition().duration(fq.SHOW_PLACEHOLDER).style("opacity",1)}).on("mouseout.opacity",function(){Z0.select(this).transition().duration(fq.HIDE_PLACEHOLDER).style("opacity",0)})}if(ie&&(p?Te.on(".opacity",null):(ze(Te,l),m=!0),Te.call(J0.makeEditable,{gd:e}).on("edit",function($e){o!==void 0?Ox.call("_guiRestyle",e,i,$e,o):Ox.call("_guiRelayout",e,i,$e)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(ke)}).on("input",function($e){this.text($e||" ").call(J0.positionText,u.x,u.y)}),R)){if(R&&!p){var Ae=Te.node().getBBox(),Ue=Ae.y+Ae.height+Gx*X;Ne.attr("y",Ue)}H?Ne.on(".opacity",null):(ze(Ne,F),N=!0),Ne.call(J0.makeEditable,{gd:e}).on("edit",function($e){Ox.call("_guiRelayout",e,"title.subtitle.text",$e)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(ke)}).on("input",function($e){this.text($e||" ").call(J0.positionText,Ne.attr("x"),Ne.attr("y"))})}return Te.classed("js-placeholder",m),Ne&&!Ne.empty()&&Ne.classed("js-placeholder",N),c}vq.exports={draw:J0e,SUBTITLE_PADDING_EM:Gx,SUBTITLE_PADDING_MATHJAX_EM:Yx}});var h1=G((jAe,yq)=>{"use strict";var $0e=Er(),K0e=c0().utcFormat,gt=Se(),j0e=gt.numberFormat,xl=Gr(),Io=gt.cleanNumber,Q0e=gt.ms2DateTime,dq=gt.dateTime2ms,bl=gt.ensureNumber,hq=gt.isArrayOrTypedArray,Bo=(Rt(),Fe(Nt)),o1=Bo.FP_SAFE,Zi=Bo.BADNUM,efe=Bo.LOG_CLIP,rfe=Bo.ONEWEEK,s1=Bo.ONEDAY,u1=Bo.ONEHOUR,pq=Bo.ONEMIN,mq=Bo.ONESEC,f1=va(),d1=(La(),Fe(ka)),c1=d1.HOUR_PATTERN,v1=d1.WEEKDAY_PATTERN;function pv(e){return Math.pow(10,e)}function Ux(e){return e!=null}yq.exports=function(r,t){t=t||{};var a=r._id||"x",n=a.charAt(0);function i(b,M){if(b>0)return Math.log(b)/Math.LN10;if(b<=0&&M&&r.range&&r.range.length===2){var A=r.range[0],k=r.range[1];return .5*(A+k-2*efe*Math.abs(A-k))}else return Zi}function l(b,M,A,k){if((k||{}).msUTC&&xl(b))return+b;var S=dq(b,A||r.calendar);if(S===Zi)if(xl(b)){b=+b;var D=Math.floor(gt.mod(b+.05,1)*10),P=Math.round(b-D/10);S=dq(new Date(P))+D/10}else return Zi;return S}function o(b,M,A){return Q0e(b,M,A||r.calendar)}function s(b){return r._categories[Math.round(b)]}function u(b){if(Ux(b)){if(r._categoriesMap===void 0&&(r._categoriesMap={}),r._categoriesMap[b]!==void 0)return r._categoriesMap[b];r._categories.push(typeof b=="number"?String(b):b);var M=r._categories.length-1;return r._categoriesMap[b]=M,M}return Zi}function f(b,M){for(var A=new Array(M),k=0;kr.range[1]&&(A=!A);for(var k=A?-1:1,S=k*b,D=0,P=0;PF)D=P+1;else{D=S<(R+F)/2?P:P+1;break}}var B=r._B[D]||0;return isFinite(B)?p(b,r._m2,B):0},x=function(b){var M=r._rangebreaks.length;if(!M)return m(b,r._m,r._b);for(var A=0,k=0;kr._rangebreaks[k].pmax&&(A=k+1);return m(b,r._m2,r._B[A])}}r.c2l=r.type==="log"?i:bl,r.l2c=r.type==="log"?pv:bl,r.l2p=y,r.p2l=x,r.c2p=r.type==="log"?function(b,M){return y(i(b,M))}:y,r.p2c=r.type==="log"?function(b){return pv(x(b))}:x,["linear","-"].indexOf(r.type)!==-1?(r.d2r=r.r2d=r.d2c=r.r2c=r.d2l=r.r2l=Io,r.c2d=r.c2r=r.l2d=r.l2r=bl,r.d2p=r.r2p=function(b){return r.l2p(Io(b))},r.p2d=r.p2r=x,r.cleanPos=bl):r.type==="log"?(r.d2r=r.d2l=function(b,M){return i(Io(b),M)},r.r2d=r.r2c=function(b){return pv(Io(b))},r.d2c=r.r2l=Io,r.c2d=r.l2r=bl,r.c2r=i,r.l2d=pv,r.d2p=function(b,M){return r.l2p(r.d2r(b,M))},r.p2d=function(b){return pv(x(b))},r.r2p=function(b){return r.l2p(Io(b))},r.p2r=x,r.cleanPos=bl):r.type==="date"?(r.d2r=r.r2d=gt.identity,r.d2c=r.r2c=r.d2l=r.r2l=l,r.c2d=r.c2r=r.l2d=r.l2r=o,r.d2p=r.r2p=function(b,M,A){return r.l2p(l(b,0,A))},r.p2d=r.p2r=function(b,M,A){return o(x(b),M,A)},r.cleanPos=function(b){return gt.cleanDate(b,Zi,r.calendar)}):r.type==="category"?(r.d2c=r.d2l=u,r.r2d=r.c2d=r.l2d=s,r.d2r=r.d2l_noadd=v,r.r2c=function(b){var M=h(b);return M!==void 0?M:r.fraction2r(.5)},r.l2r=r.c2r=bl,r.r2l=h,r.d2p=function(b){return r.l2p(r.r2c(b))},r.p2d=function(b){return s(x(b))},r.r2p=r.d2p,r.p2r=x,r.cleanPos=function(b){return typeof b=="string"&&b!==""?b:bl(b)}):r.type==="multicategory"&&(r.r2d=r.c2d=r.l2d=s,r.d2r=r.d2l_noadd=v,r.r2c=function(b){var M=v(b);return M!==void 0?M:r.fraction2r(.5)},r.r2c_just_indices=c,r.l2r=r.c2r=bl,r.r2l=v,r.d2p=function(b){return r.l2p(r.r2c(b))},r.p2d=function(b){return s(x(b))},r.r2p=r.d2p,r.p2r=x,r.cleanPos=function(b){return Array.isArray(b)||typeof b=="string"&&b!==""?b:bl(b)},r.setupMultiCategory=function(b){var M=r._traceIndices,A,k,S=r._matchGroup;if(S&&r._categories.length===0){for(var D in S)if(D!==a){var P=t[f1.id2name(D)];M=M.concat(P._traceIndices)}}var R=[[0,{}],[0,{}]],F=[];for(A=0;AP[1]&&(k[D?0:1]=A,S[1]=P[1]),S[0]>=S[1])if(M!==void 0){var R=P[0]+1;A!==void 0&&(R=Math.min(R,P[1])),k[D?0:1]=r.l2r(R)}else A!==void 0&&(k[D?1:0]=r.l2r(P[1]-1))}},r.cleanRange=function(b,M){r._cleanRange(b,M),r.limitRange(b)},r._cleanRange=function(b,M){M||(M={}),b||(b="range");var A=gt.nestedProperty(r,b).get(),k,S;if(r.type==="date"?S=gt.dfltRange(r.calendar):n==="y"?S=d1.DFLTRANGEY:r._name==="realaxis"?S=[0,1]:S=M.dfltRange||d1.DFLTRANGEX,S=S.slice(),(r.rangemode==="tozero"||r.rangemode==="nonnegative")&&(S[0]=0),!A||A.length!==2){gt.nestedProperty(r,b).set(S);return}var D=A[0]===null,P=A[1]===null;for(r.type==="date"&&!r.autorange&&(A[0]=gt.cleanDate(A[0],Zi,r.calendar),A[1]=gt.cleanDate(A[1],Zi,r.calendar)),k=0;k<2;k++)if(r.type==="date"){if(!gt.isDateTime(A[k],r.calendar)){r[b]=S;break}if(r.r2l(A[0])===r.r2l(A[1])){var R=gt.constrain(r.r2l(A[0]),gt.MIN_MS+1e3,gt.MAX_MS-1e3);A[0]=r.l2r(R-1e3),A[1]=r.l2r(R+1e3);break}}else{if(!xl(A[k]))if(!(D||P)&&xl(A[1-k]))A[k]=A[1-k]*(k?10:.1);else{r[b]=S;break}if(A[k]<-o1?A[k]=-o1:A[k]>o1&&(A[k]=o1),A[0]===A[1]){var F=Math.max(1,Math.abs(A[0]*1e-6));A[0]-=F,A[1]+=F}}},r.setScale=function(b){var M=t._size;if(r.overlaying){var A=f1.getFromId({_fullLayout:t},r.overlaying);r.domain=A.domain}var k=b&&r._r?"_r":"range",S=r.calendar;r.cleanRange(k);var D=r.r2l(r[k][0],S),P=r.r2l(r[k][1],S),R=n==="y";if(R?(r._offset=M.t+(1-r.domain[1])*M.h,r._length=M.h*(r.domain[1]-r.domain[0]),r._m=r._length/(D-P),r._b=-r._m*P):(r._offset=M.l+r.domain[0]*M.w,r._length=M.w*(r.domain[1]-r.domain[0]),r._m=r._length/(P-D),r._b=-r._m*D),r._rangebreaks=[],r._lBreaks=0,r._m2=0,r._B=[],r.rangebreaks){var F,B;if(r._rangebreaks=r.locateBreaks(Math.min(D,P),Math.max(D,P)),r._rangebreaks.length){for(F=0;FP&&(H=!H),H&&r._rangebreaks.reverse();var N=H?-1:1;for(r._m2=N*r._length/(Math.abs(P-D)-r._lBreaks),r._B.push(-r._m2*(R?P:D)),F=0;FS&&(S+=7,DS&&(S+=24,D=k&&D=k&&b=K.min&&($K.max&&(K.max=re),se=!1)}se&&P.push({min:$,max:re})}};for(A=0;A{"use strict";var gq=Gr(),Vx=Se(),tfe=(Rt(),Fe(Nt)).BADNUM,p1=Vx.isArrayOrTypedArray,afe=Vx.isDateTime,nfe=Vx.cleanNumber,xq=Math.round;_q.exports=function(r,t,a){var n=r,i=a.noMultiCategory;if(p1(n)&&!n.length)return"-";if(!i&&ufe(n))return"multicategory";if(i&&Array.isArray(n[0])){for(var l=[],o=0;oi*2}function bq(e){return Math.max(1,(e-1)/1e3)}function sfe(e,r){for(var t=e.length,a=bq(t),n=0,i=0,l={},o=0;on*2}function ufe(e){return p1(e[0])&&p1(e[1])}});var mv=G((eke,Sq)=>{"use strict";var ffe=Er(),Aq=Gr(),Ho=Se(),m1=(Rt(),Fe(Nt)).FP_SAFE,cfe=Ar(),vfe=$r(),kq=va(),dfe=kq.getFromId,hfe=kq.isLinked;Sq.exports={applyAutorangeOptions:Cq,getAutoRange:Wx,makePadFn:Zx,doAutoRange:mfe,findExtremes:yfe,concatExtremes:Kx};function Wx(e,r){var t,a,n=[],i=e._fullLayout,l=Zx(i,r,0),o=Zx(i,r,1),s=Kx(e,r),u=s.min,f=s.max;if(u.length===0||f.length===0)return Ho.simpleMap(r.range,r.r2l);var c=u[0].val,v=f[0].val;for(t=1;t0&&(P=w-l(A)-o(k),P>b?R/P>M&&(S=A,D=k,M=R/P):R/w>M&&(S={val:A.val,nopad:1},D={val:k.val,nopad:1},M=R/w));function F(O,V){return Math.max(O,o(V))}if(c===v){var B=c-1,H=c+1;if(x)if(c===0)n=[0,1];else{var N=(c>0?f:u).reduce(F,0),Y=c/(1-Math.min(.5,N/w));n=c>0?[0,Y]:[Y,0]}else _?n=[Math.max(0,B),Math.max(1,H)]:n=[B,H]}else x?(S.val>=0&&(S={val:0,nopad:1}),D.val<=0&&(D={val:0,nopad:1})):_&&(S.val-M*l(S)<0&&(S={val:0,nopad:1}),D.val<=0&&(D={val:1,nopad:1})),M=(D.val-S.val-wq(r,A.val,k.val))/(w-l(S)-o(D)),n=[S.val-M*l(S),D.val+M*o(D)];return n=Cq(n,r),r.limitRange&&r.limitRange(),p&&n.reverse(),Ho.simpleMap(n,r.l2r||Number)}function wq(e,r,t){var a=0;if(e.rangebreaks)for(var n=e.locateBreaks(r,t),i=0;i0?t.ppadplus:t.ppadminus)||t.ppad||0),A=b((e._m>0?t.ppadminus:t.ppadplus)||t.ppad||0),k=b(t.vpadplus||t.vpad),S=b(t.vpadminus||t.vpad);if(!u){if(_=1/0,w=-1/0,s)for(c=0;c0&&(_=v),v>w&&v-m1&&(_=v),v>w&&v=R;c--)P(c);return{min:a,max:n,opts:t}}function Jx(e,r,t,a){Lq(e,r,t,a,gfe)}function $x(e,r,t,a){Lq(e,r,t,a,xfe)}function Lq(e,r,t,a,n){for(var i=a.tozero,l=a.extrapad,o=!0,s=0;s=t&&(u.extrapad||!l)){o=!1;break}else n(r,u.val)&&u.pad<=t&&(l||!u.extrapad)&&(e.splice(s,1),s--)}if(o){var f=i&&r===0;e.push({val:r,pad:f?0:t,extrapad:f?!1:l})}}function Mq(e){return Aq(e)&&Math.abs(e)=r}function bfe(e,r){var t=r.autorangeoptions;return t&&t.minallowed!==void 0&&y1(r,t.minallowed,t.maxallowed)?t.minallowed:t&&t.clipmin!==void 0&&y1(r,t.clipmin,t.clipmax)?Math.max(e,r.d2l(t.clipmin)):e}function _fe(e,r){var t=r.autorangeoptions;return t&&t.maxallowed!==void 0&&y1(r,t.minallowed,t.maxallowed)?t.maxallowed:t&&t.clipmax!==void 0&&y1(r,t.clipmin,t.clipmax)?Math.min(e,r.d2l(t.clipmax)):e}function y1(e,r,t){return r!==void 0&&t!==void 0?(r=e.d2l(r),t=e.d2l(t),r=s&&(i=s,t=s),l<=s&&(l=s,a=s)}}return t=bfe(t,r),a=_fe(a,r),[t,a]}});var Qr=G((tke,Kq)=>{"use strict";var yi=Er(),la=Gr(),$0=Jt(),gv=Ar(),Lr=Se(),K0=Lr.strTranslate,au=ba(),wfe=hv(),xv=kr(),$n=$r(),Tfe=Zn(),qq=xx(),rke=(La(),Fe(ka)),Za=(Rt(),Fe(Nt)),Mfe=Za.ONEMAXYEAR,b1=Za.ONEAVGYEAR,_1=Za.ONEMINYEAR,Afe=Za.ONEMAXQUARTER,rb=Za.ONEAVGQUARTER,w1=Za.ONEMINQUARTER,kfe=Za.ONEMAXMONTH,j0=Za.ONEAVGMONTH,T1=Za.ONEMINMONTH,Kn=Za.ONEWEEK,hn=Za.ONEDAY,Oo=hn/2,wl=Za.ONEHOUR,bv=Za.ONEMIN,M1=Za.ONESEC,Lfe=Za.ONEMILLI,Cfe=Za.ONEMICROSEC,nu=Za.MINUS_SIGN,k1=Za.BADNUM,tb={K:"zeroline"},ab={K:"gridline",L:"path"},nb={K:"minor-gridline",L:"path"},Oq={K:"tick",L:"path"},Dq={K:"tick",L:"text"},Pq={width:["x","r","l","xl","xr"],height:["y","t","b","yt","yb"],right:["r","xr"],left:["l","xl"],top:["t","yt"],bottom:["b","yb"]},L1=(Xa(),Fe(Va)),yv=L1.MID_SHIFT,iu=L1.CAP_SHIFT,_v=L1.LINE_SPACING,Sfe=L1.OPPOSITE_SIDE,A1=3,Ye=Kq.exports={};Ye.setConvert=h1();var qfe=Xx(),Tl=va(),Dfe=Tl.idSort,Pfe=Tl.isLinked;Ye.id2name=Tl.id2name;Ye.name2id=Tl.name2id;Ye.cleanId=Tl.cleanId;Ye.list=Tl.list;Ye.listIds=Tl.listIds;Ye.getFromId=Tl.getFromId;Ye.getFromTrace=Tl.getFromTrace;var Yq=mv();Ye.getAutoRange=Yq.getAutoRange;Ye.findExtremes=Yq.findExtremes;var Efe=1e-4;function sb(e){var r=(e[1]-e[0])*Efe;return[e[0]-r,e[1]+r]}function Rfe(e,r,t){if(![t,e,r].every(la)||t===0)return e;let a=Math.round((e-r)/t),n=r+a*t;return e!==n&&Math.abs(e-n)v+" domain")),s=s.concat(i||[]),f.length>l?(Lr.warn("Array attribute "+u+" has more entries than expected, truncating to "+l),f=f.slice(0,l)):f.length2e-6||((t-e._forceTick0)/e._minDtick%1+1.000001)%1>2e-6)&&(e._minDtick=0))};Ye.saveRangeInitial=function(e,r){for(var t=Ye.list(e,"",!0),a=!1,n=0;nc*.3||u(a)||u(n))){var v=t.dtick/2;e+=e+vl){var o=Number(t.slice(1));i.exactYears>l&&o%12===0?e=Ye.tickIncrement(e,"M6","reverse")+hn*1.5:i.exactMonths>l?e=Ye.tickIncrement(e,"M1","reverse")+hn*15.5:e-=Oo;var s=Ye.tickIncrement(e,t);if(s<=a)return s}return e}Ye.prepMinorTicks=function(e,r,t){var c,v;if(!((c=r.minor)!=null&&c.dtick)){delete e.dtick;var a=r.dtick&&la(r._tmin),n;if(a){var i=Ye.tickIncrement(r._tmin,r.dtick,!0);n=[r._tmin,i*.99+r._tmin*.01]}else{var l=Lr.simpleMap(r.range,r.r2l);n=[l[0],.8*l[0]+.2*l[1]]}if(e.range=Lr.simpleMap(n,r.l2r),e._isMinor=!0,Ye.prepTicks(e,t),a){var o=la(r.dtick),s=la(e.dtick),u=o?r.dtick:+r.dtick.substring(1),f=s?e.dtick:+e.dtick.substring(1);o&&s?jx(u,f)?u===2*Kn&&f===2*hn&&(e.dtick=Kn):u===2*Kn&&f===3*hn?e.dtick=Kn:u===Kn&&!(r._input.minor||{}).nticks?e.dtick=hn:zq(u/f,2.5)?e.dtick=u/2:e.dtick=u:String(r.dtick).charAt(0)==="M"?s?e.dtick="M1":jx(u,f)?u>=12&&f===2&&(e.dtick="M3"):e.dtick=r.dtick:String(e.dtick).charAt(0)==="L"?String(r.dtick).charAt(0)==="L"?jx(u,f)||(e.dtick=zq(u/f,2.5)?r.dtick/2:r.dtick):e.dtick="D1":e.dtick==="D2"&&+r.dtick>1&&(e.dtick=1)}e.range=r.range}((v=r.minor)==null?void 0:v._tick0Init)===void 0&&(e.tick0=r.tick0),r._useTicklabelIndex&&(ub(e),r.minor._tickround=e._tickround)};function jx(e,r){return Math.abs((e/r+.5)%1-.5)<.001}function zq(e,r){return Math.abs(e/r-1)<.001}Ye.prepTicks=function(e,r){var t=Lr.simpleMap(e.range,e.r2l,void 0,void 0,r);if(e.tickmode==="auto"||!e.dtick){var a=e.nticks,n;a||(e.type==="category"||e.type==="multicategory"?(n=e.tickfont?Lr.bigFont(e.tickfont.size||12):15,a=e._length/n):(n=e._id.charAt(0)==="y"?40:80,a=Lr.constrain(e._length/n,4,9)+1),e._name==="radialaxis"&&(a*=2)),e.minor&&e.minor.tickmode!=="array"||e.tickmode==="array"&&(a*=100),e._roughDTick=Math.abs(t[1]-t[0])/a,Ye.autoTicks(e,e._roughDTick),e._minDtick>0&&e.dtick0?(o=a-1,s=a):(o=a,s=a),i=e[o].value,l=e[s].value}var u=Math.abs(l-i),f=t||u,c=0;e[a].periodEndTick!=null?c=u:f>=_1?u>=_1&&u<=Mfe?c=u:c=b1:t===rb&&f>=w1?u>=w1&&u<=Afe?c=u:c=rb:f>=T1?u>=T1&&u<=kfe?c=u:c=j0:t===Kn&&f>=Kn?c=Kn:f>=hn?c=hn:t===Oo&&f>=Oo?c=Oo:t===wl&&f>=wl&&(c=wl);var v;c>=u&&(c=u,v=!0);var h=n+c;if(r.rangebreaks&&c>0){for(var p=84,m=0,y=0;yKn&&(c=u)}(c>0||a===0)&&(e[a].periodX=n+c/2)}}Ye.calcTicks=function(r,t){var a=r.type,n=r.calendar,i=r.ticklabelstep,l=r.ticklabelmode==="period",o=r.range[0]>r.range[1],s=!r.ticklabelindex||Lr.isArrayOrTypedArray(r.ticklabelindex)?r.ticklabelindex:[r.ticklabelindex];r._useTicklabelIndex=s!=null&&s!==0;for(var u=Lr.simpleMap(r.range,r.r2l,void 0,void 0,t),f=u[1]=(b?0:1);M--){var A=!M;M?(r._dtickInit=r.dtick,r._tick0Init=r.tick0):b&&(r.minor._dtickInit=r.minor.dtick,r.minor._tick0Init=r.minor.tick0);var k=M?r:Lr.extendFlat({},r,b?r.minor:{minor:{}});if(A?Ye.prepMinorTicks(k,r,t):Ye.prepTicks(k,t),k.tickmode==="array"){M?(y=[],p=Fq(r,!A)):(x=[],m=Fq(r,!A));continue}if(k.tickmode==="sync"){y=[],p=Hfe(r);continue}var S=sb(u),D=S[0],P=S[1],R=la(k.dtick),F=a==="log"&&!(R||k.dtick.charAt(0)==="L"),B=Ye.tickFirst(k,t);if(M){if(r._tmin=B,B=P:N<=P;N=Ye.tickIncrement(N,V,f,n)){if(M&&Y++,k.rangebreaks&&!f){if(N=v)break}if(y.length>h||N===H)break;H=N;var W={value:Rfe(N,X,V)};M?(N===B&&(W.first=!0),F&&N!==(N|0)&&(W.simpleLabel=!0),i>1&&Y%i&&(W.skipLabel=!0),y.push(W)):(W.minor=!0,x.push(W))}}function U(ke,Le){let Ce=Le.find(Ae=>Ae.value===ke.value);if(Ce!=null)return Ce;let ze=1e7;for(let Ae=0;AeU(Ce,y)==null),Le=y.concat(ke).sort((Ce,ze)=>Ce.value-ze.value);l&&y.length&&(y[0].skipLabel=!0),y.forEach(function(Ce){Ce.skipLabel||(s.forEach(ze=>{if(ze<0){let Ae=Le.filter(Qe=>Qe.value<=Ce.value),Ue=Math.abs(ze),$e=Ae.length-Ue-1;if(UeUe.value>=Ce.value);if(zeCe.skipLabel=!1)}if(w){var $=r.minor.ticks==="inside"&&r.ticks==="outside"||r.minor.ticks==="outside"&&r.ticks==="inside";if(!$){for(var re=[],se=0;se-1;oe--){if(y[oe].drop){y.splice(oe,1);continue}y[oe].value=eb(y[oe].value,r);var Me=r.c2p(y[oe].value);(K?ie>Me-me:iev||zev&&(Ce.periodX=v),zen&&pn&&yb1)r/=b1,a=n(10),e.dtick="M"+12*_l(r,a,g1);else if(i>j0)r/=j0,e.dtick="M"+_l(r,1,Nq);else if(i>hn){if(e.dtick=_l(r,hn,e._hasDayOfWeekBreaks?[1,2,7,14]:Ofe),!t){var l=Ye.getTickFormat(e),o=e.ticklabelmode==="period";o&&(e._rawTick0=e.tick0),/%[uVW]/.test(l)?e.tick0=Lr.dateTick0(e.calendar,2):e.tick0=Lr.dateTick0(e.calendar,1),o&&(e._dowTick0=e.tick0)}}else i>wl?e.dtick=_l(r,wl,Nq):i>bv?e.dtick=_l(r,bv,Iq):i>M1?e.dtick=_l(r,M1,Iq):(a=n(10),e.dtick=_l(r,a,g1))}else if(e.type==="log"){e.tick0=0;var s=Lr.simpleMap(e.range,e.r2l);if(e._isMinor&&(r*=1.5),r>.7)e.dtick=Math.ceil(r);else if(Math.abs(s[1]-s[0])<1){var u=1.5*Math.abs((s[1]-s[0])/r);r=Math.abs(Math.pow(10,s[1])-Math.pow(10,s[0]))/u,a=n(10),e.dtick="L"+_l(r,a,g1)}else e.dtick=r>.3?"D2":"D1"}else e.type==="category"||e.type==="multicategory"?(e.tick0=0,e.dtick=Math.ceil(Math.max(r,1))):db(e)?(e.tick0=0,a=1,e.dtick=_l(r,a,Yfe)):(e.tick0=0,a=n(10),e.dtick=_l(r,a,g1));if(e.dtick===0&&(e.dtick=1),!la(e.dtick)&&typeof e.dtick!="string"){var f=e.dtick;throw e.dtick=1,"ax.dtick error: "+String(f)}};function ub(e){var r=e.dtick;if(e._tickexponent=0,!la(r)&&typeof r!="string"&&(r=1),(e.type==="category"||e.type==="multicategory")&&(e._tickround=null),e.type==="date"){var t=e.r2l(e.tick0),a=e.l2r(t).replace(/(^-|i)/g,""),n=a.length;if(String(r).charAt(0)==="M")n>10||a.slice(5)!=="01-01"?e._tickround="d":e._tickround=+r.slice(1)%12===0?"y":"m";else if(r>=hn&&n<=10||r>=hn*15)e._tickround="d";else if(r>=bv&&n<=16||r>=wl)e._tickround="M";else if(r>=M1&&n<=19||r>=bv)e._tickround="S";else{var i=e.l2r(t+r).replace(/^-/,"").length;e._tickround=Math.max(n,i)-20,e._tickround<0&&(e._tickround=4)}}else if(la(r)||r.charAt(0)==="L"){var l=e.range.map(e.r2d||Number);la(r)||(r=Number(r.slice(1))),e._tickround=2-Math.floor(Math.log(r)/Math.LN10+.01);var o=Math.max(Math.abs(l[0]),Math.abs(l[1])),s=Math.floor(Math.log(o)/Math.LN10+.01),u=e.minexponent===void 0?3:e.minexponent;Math.abs(s)>u&&(Q0(e.exponentformat)&&e.exponentformat!=="SI extended"&&!fb(s)||Q0(e.exponentformat)&&e.exponentformat==="SI extended"&&!cb(s)?e._tickexponent=3*Math.round((s-1)/3):e._tickexponent=s)}else e._tickround=null}Ye.tickIncrement=function(e,r,t,a){var n=t?-1:1;if(la(r))return Lr.increment(e,n*r);var i=r.charAt(0),l=n*Number(r.slice(1));if(i==="M")return Lr.incrementMonth(e,l,a);if(i==="L")return Math.log(Math.pow(10,e)+l)/Math.LN10;if(i==="D"){var o=r==="D2"?Vq:Uq,s=e+n*.01,u=Lr.roundUp(Lr.mod(s,1),o,t);return Math.floor(s)+Math.log(yi.round(Math.pow(10,u),1))/Math.LN10}throw"unrecognized dtick "+String(r)};Ye.tickFirst=function(e,r){var t=e.r2l||Number,a=Lr.simpleMap(e.range,t,void 0,void 0,r),n=a[1]=0&&b<=e._length?w:null};if(s&&Lr.isArrayOrTypedArray(e.ticktext)){var p=Lr.simpleMap(e.range,e.r2l),m=(Math.abs(p[1]-p[0])-(e._lBreaks||0))/1e4;for(v=0;v"+o;else{var u=Tv(e),f=e._trueSide||e.side;(!u&&f==="top"||u&&f==="bottom")&&(l+="
")}r.text=l}function Ufe(e,r,t,a,n){var i=e.dtick,l=r.x,o=e.tickformat,s=typeof i=="string"&&i.charAt(0);if(n==="never"&&(n=""),a&&s!=="L"&&(i="L3",s="L"),o||s==="L")r.text=wv(Math.pow(10,l),e,n,a);else if(la(i)||s==="D"&&(e.minorloglabels==="complete"||Lr.mod(l+.01,1)<.1)){var u;e.minorloglabels==="complete"&&!(Lr.mod(l+.01,1)<.1)&&(u=!0,r.fontSize*=.75);var f=Math.pow(10,l).toExponential(0),c=f.split("e"),v=+c[1],h=Math.abs(v),p=e.exponentformat;p==="power"||Q0(p)&&p!=="SI extended"&&fb(v)||Q0(p)&&p==="SI extended"&&cb(v)?(r.text=c[0],h>0&&(r.text+="x10"),r.text==="1x10"&&(r.text="10"),v!==0&&v!==1&&(r.text+=""+(v>0?"":nu)+h+""),r.fontSize*=1.25):(p==="e"||p==="E")&&h>2?r.text=c[0]+p+(v>0?"+":nu)+h:(r.text=wv(Math.pow(10,l),e,"","fakehover"),i==="D1"&&e._id.charAt(0)==="y"&&(r.dy-=r.fontSize/6))}else if(s==="D")r.text=e.minorloglabels==="none"?"":String(Math.round(Math.pow(10,Lr.mod(l,1)))),r.fontSize*=.75;else throw"unrecognized dtick "+String(i);if(e.dtick==="D1"){var m=String(r.text).charAt(0);(m==="0"||m==="1")&&(e._id.charAt(0)==="y"?r.dx-=r.fontSize/4:(r.dy+=r.fontSize/2,r.dx+=(e.range[1]>e.range[0]?1:-1)*r.fontSize*(l<0?.5:.25)))}}function Vfe(e,r){var t=e._categories[Math.round(r.x)];t===void 0&&(t=""),r.text=String(t)}function Xfe(e,r,t){var a=Math.round(r.x),n=e._categories[a]||[],i=n[1]===void 0?"":String(n[1]),l=n[0]===void 0?"":String(n[0]);t?r.text=l+" - "+i:(r.text=i,r.text2=l)}function Wfe(e,r,t,a,n){n==="never"?n="":e.showexponent==="all"&&Math.abs(r.x/e.dtick)<1e-6&&(n="hide"),r.text=wv(r.x,e,n,a)}function Zfe(e,r,t,a,n){if(e.thetaunit==="radians"&&!t){var i=r.x/180;if(i===0)r.text="0";else{var l=Jfe(i);if(l[1]>=100)r.text=wv(Lr.deg2rad(r.x),e,n,a);else{var o=r.x<0;l[1]===1?l[0]===1?r.text="\u03C0":r.text=l[0]+"\u03C0":r.text=["",l[0],"","\u2044","",l[1],"","\u03C0"].join(""),o&&(r.text=nu+r.text)}}}else r.text=wv(r.x,e,n,a)}function Jfe(e){function r(o,s){return Math.abs(o-s)<=1e-6}function t(o,s){return r(s,0)?o:t(s,o%s)}function a(o){for(var s=1;!r(Math.round(o*s)/s,o);)s*=10;return s}var n=a(e),i=e*n,l=Math.abs(t(i,n));return[Math.round(i/l),Math.round(n/l)]}var Wq=["f","p","n","\u03BC","m","","k","M","G","T"],$fe=["q","r","y","z","a",...Wq,"P","E","Z","Y","R","Q"],Q0=e=>["SI","SI extended","B"].includes(e);function fb(e){return e>14||e<-15}function cb(e){return e>32||e<-30}function Kfe(e,r){return Q0(r)?!!(r==="SI extended"&&cb(e)||r!=="SI extended"&&fb(e)):!1}function wv(e,r,t,a){var n=e<0,i=r._tickround,l=t||r.exponentformat||"B",o=r._tickexponent,s=Ye.getTickFormat(r),u=r.separatethousands;if(a){var f={exponentformat:l,minexponent:r.minexponent,dtick:r.showexponent==="none"?r.dtick:la(e)&&Math.abs(e)||1,range:r.showexponent==="none"?r.range.map(r.r2d):[0,e||1]};ub(f),i=(Number(f._tickround)||0)+4,o=f._tickexponent,r.hoverformat&&(s=r.hoverformat)}if(s)return r._numFormat(s)(e).replace(/-/g,nu);l==="none"&&(o=0),e=Math.abs(e);let c=Math.pow(10,-i)/2;if(e"+v+"":l==="B"&&o===9?e+="B":Q0(l)&&(e+=l==="SI extended"?$fe[o/3+10]:Wq[o/3+5])}return n?nu+e:e}Ye.getTickFormat=function(e){var r;function t(s){return typeof s!="string"?s:Number(s.replace("M",""))*j0}function a(s,u){var f=["L","D"];if(typeof s==typeof u){if(typeof s=="number")return s-u;var c=f.indexOf(s.charAt(0)),v=f.indexOf(u.charAt(0));return c===v?Number(s.replace(/(L|D)/g,""))-Number(u.replace(/(L|D)/g,"")):c-v}else return typeof s=="number"?1:-1}function n(s,u,f){var c=f||function(p){return p},v=u[0],h=u[1];return(!v&&typeof v!="number"||c(v)<=c(s))&&(!h&&typeof h!="number"||c(h)>=c(s))}function i(s,u){var f=u[0]===null,c=u[1]===null,v=a(s,u[0])>=0,h=a(s,u[1])<=0;return(f||v)&&(c||h)}var l,o;if(e.tickformatstops&&e.tickformatstops.length>0)switch(e.type){case"date":case"linear":{for(r=0;r=0&&n.unshift(n.splice(f,1).shift())}});var o={false:{left:0,right:0}};return Lr.syncOrAsync(n.map(function(s){return function(){if(s){var u=Ye.getFromId(e,s);t||(t={}),t.axShifts=o,t.overlayingShiftedAx=l;var f=Ye.drawOne(e,u,t);return u._shiftPusher&&ob(u,u._fullDepth||0,o,!0),u._r=u.range.slice(),u._rl=Lr.simpleMap(u._r,u.r2l),f}}}))};Ye.drawOne=function(e,r,t){t=t||{};var a=t.axShifts||{},n=t.overlayingShiftedAx||[],i,l,o;r.setScale();var s=e._fullLayout,u=r._id,f=u.charAt(0),c=Ye.counterLetter(u),v=s._plots[r._mainSubplot],h=r.zerolinelayer==="above traces";if(!v)return;if(r._shiftPusher=r.autoshift||n.indexOf(r._id)!==-1||n.indexOf(r.overlaying)!==-1,r._shiftPusher&r.anchor==="free"){var p=r.linewidth/2||0;r.ticks==="inside"&&(p+=r.ticklen),ob(r,p,a,!0),ob(r,r.shift||0,a,!1)}(t.skipTitle!==!0||r._shift===void 0)&&(r._shift=fce(r,a));var m=v[f+"axislayer"],y=r._mainLinePosition,x=y+=r._shift,_=r._mainMirrorPosition,w=r._vals=Ye.calcTicks(r),b=[r.mirror,x,_].join("_");for(i=0;i0?De.bottom-$e:0,Qe))));var xe=0,Ve=0;if(r._shiftPusher&&(xe=Math.max(Qe,De.height>0?Ae==="l"?$e-De.left:De.right-$e:0),r.title.text!==s._dfltTitle[f]&&(Ve=(r._titleStandoff||0)+(r._titleScoot||0),Ae==="l"&&(Ve+=Hq(r))),r._fullDepth=Math.max(xe,Ve)),r.automargin){He={x:0,y:0,r:0,l:0,t:0,b:0};var cr=[0,1],mr=typeof r._shift=="number"?r._shift:0;if(f==="x"){if(Ae==="b"?He[Ae]=r._depth:(He[Ae]=r._depth=Math.max(De.width>0?$e-De.top:0,Qe),cr.reverse()),De.width>0){var le=De.right-(r._offset+r._length);le>0&&(He.xr=1,He.r=le);var ye=r._offset-De.left;ye>0&&(He.xl=0,He.l=ye)}}else if(Ae==="l"?(r._depth=Math.max(De.height>0?$e-De.left:0,Qe),He[Ae]=r._depth-mr):(r._depth=Math.max(De.height>0?De.right-$e:0,Qe),He[Ae]=r._depth+mr,cr.reverse()),De.height>0){var Ie=De.bottom-(r._offset+r._length);Ie>0&&(He.yb=0,He.b=Ie);var Xe=r._offset-De.top;Xe>0&&(He.yt=1,He.t=Xe)}He[c]=r.anchor==="free"?r.position:r._anchorAxis.domain[cr[0]],r.title.text!==s._dfltTitle[f]&&(He[Ae]+=Hq(r)+(r.title.standoff||0)),r.mirror&&r.anchor!=="free"&&(tr={x:0,y:0,r:0,l:0,t:0,b:0},tr[Ue]=r.linewidth,r.mirror&&r.mirror!==!0&&(tr[Ue]+=Qe),r.mirror===!0||r.mirror==="ticks"?tr[c]=r._anchorAxis.domain[cr[1]]:(r.mirror==="all"||r.mirror==="allticks")&&(tr[c]=[r._counterDomainMin,r._counterDomainMax][cr[1]]))}ze&&(te=gv.getComponentMethod("rangeslider","autoMarginOpts")(e,r)),typeof r.automargin=="string"&&(Bq(He,r.automargin),Bq(tr,r.automargin)),$0.autoMargin(e,vb(r),He),$0.autoMargin(e,Jq(r),tr),$0.autoMargin(e,$q(r),te)}),Lr.syncOrAsync(Le)}};function Bq(e,r){if(e){var t=Object.keys(Pq).reduce(function(a,n){return r.indexOf(n)!==-1&&Pq[n].forEach(function(i){a[i]=1}),a},{});Object.keys(e).forEach(function(a){t[a]||(a.length===1?e[a]=0:delete e[a])})}}function jfe(e,r){var t=[],a,n=function(i,l){var o=i.xbnd[l];o!==null&&t.push(Lr.extendFlat({},i,{x:o}))};if(r.length){for(a=0;ae.range[1],o=e.ticklabelposition&&e.ticklabelposition.indexOf("inside")!==-1,s=!o;if(t){var u=l?-1:1;t=t*u}if(a){var f=e.side,c=o&&(f==="top"||f==="left")||s&&(f==="bottom"||f==="right")?1:-1;a=a*c}return e._id.charAt(0)==="x"?function(v){return K0(n+e._offset+e.l2p(ib(v))+t,i+a)}:function(v){return K0(i+a,n+e._offset+e.l2p(ib(v))+t)}};function ib(e){return e.periodX!==void 0?e.periodX:e.x}function tce(e){var r=e.ticklabelposition||"",t=e.tickson||"",a=function(p){return r.indexOf(p)!==-1},n=a("top"),i=a("left"),l=a("right"),o=a("bottom"),s=a("inside"),u=t!=="boundaries"&&(o||i||n||l);if(!u&&!s)return[0,0];var f=e.side,c=u?(e.tickwidth||0)/2:0,v=A1,h=e.tickfont?e.tickfont.size:12;return(o||n)&&(c+=h*iu,v+=(e.linewidth||0)/2),(i||l)&&(c+=(e.linewidth||0)/2,v+=A1),s&&f==="top"&&(v-=h*(1-iu)),(i||n)&&(c=-c),(f==="bottom"||f==="right")&&(v=-v),[u?c:0,s?v:0]}Ye.makeTickPath=function(e,r,t,a){a||(a={});var n=a.minor;if(n&&!e.minor)return"";var i=a.len!==void 0?a.len:n?e.minor.ticklen:e.ticklen,l=e._id.charAt(0),o=(e.linewidth||1)/2;return l==="x"?"M0,"+(r+o*t)+"v"+i*t:"M"+(r+o*t)+",0h"+i*t};Ye.makeLabelFns=function(e,r,t){var a=e.ticklabelposition||"",n=e.tickson||"",i=function(B){return a.indexOf(B)!==-1},l=i("top"),o=i("left"),s=i("right"),u=i("bottom"),f=n!=="boundaries"&&(u||o||l||s),c=i("inside"),v=a==="inside"&&e.ticks==="inside"||!c&&e.ticks==="outside"&&n!=="boundaries",h=0,p=0,m=v?e.ticklen:0;if(c?m*=-1:f&&(m=0),v&&(h+=m,t)){var y=Lr.deg2rad(t);h=m*Math.cos(y)+1,p=m*Math.sin(y)}e.showticklabels&&(v||e.showline)&&(h+=.2*e.tickfont.size),h+=(e.linewidth||1)/2*(c?-1:1);var x={labelStandoff:h,labelShift:p},_,w,b,M,A=0,k=e.side,S=e._id.charAt(0),D=e.tickangle,P;if(S==="x")P=!c&&k==="bottom"||c&&k==="top",M=P?1:-1,c&&(M*=-1),_=p*M,w=r+h*M,b=P?1:-.2,Math.abs(D)===90&&(c?b+=yv:D===-90&&k==="bottom"?b=iu:D===90&&k==="top"?b=yv:b=.5,A=yv/2*(D/90)),x.xFn=function(B){return B.dx+_+A*B.fontSize},x.yFn=function(B){return B.dy+w+B.fontSize*b},x.anchorFn=function(B,H){if(f){if(o)return"end";if(s)return"start"}return!la(H)||H===0||H===180?"middle":H*M<0!==c?"end":"start"},x.heightFn=function(B,H,N){return H<-60||H>60?-.5*N:e.side==="top"!==c?-N:0};else if(S==="y"){if(P=!c&&k==="left"||c&&k==="right",M=P?1:-1,c&&(M*=-1),_=h,w=p*M,b=0,!c&&Math.abs(D)===90&&(D===-90&&k==="left"||D===90&&k==="right"?b=iu:b=.5),c){var R=la(D)?+D:0;if(R!==0){var F=Lr.deg2rad(R);A=Math.abs(Math.sin(F))*iu*M,b=0}}x.xFn=function(B){return B.dx+r-(_+B.fontSize*b)*M+A*B.fontSize},x.yFn=function(B){return B.dy+w+B.fontSize*yv},x.anchorFn=function(B,H){return la(H)&&Math.abs(H)===90?"middle":P?"end":"start"},x.heightFn=function(B,H,N){return e.side==="right"&&(H*=-1),H<-30?-N:H<30?-.5*N:0}}return x};function C1(e){return[e.text,e.x,e.axInfo,e.font,e.fontSize,e.fontColor].join("_")}Ye.drawTicks=function(e,r,t){t=t||{};var a=r._id+"tick",n=[].concat(r.minor&&r.minor.ticks?t.vals.filter(function(l){return l.minor&&!l.noTick}):[]).concat(r.ticks?t.vals.filter(function(l){return!l.minor&&!l.noTick}):[]),i=t.layer.selectAll("path."+a).data(n,C1);i.exit().remove(),i.enter().append("path").classed(a,1).classed("ticks",1).classed("crisp",t.crisp!==!1).each(function(l){return xv.stroke(yi.select(this),l.minor?r.minor.tickcolor:r.tickcolor)}).style("stroke-width",function(l){return $n.crispRound(e,l.minor?r.minor.tickwidth:r.tickwidth,1)+"px"}).attr("d",t.path).style("display",null),S1(r,[Oq]),i.attr("transform",t.transFn)};Ye.drawGrid=function(e,r,t){if(t=t||{},r.tickmode!=="sync"){var a=r._id+"grid",n=r.minor&&r.minor.showgrid,i=n?t.vals.filter(function(x){return x.minor}):[],l=r.showgrid?t.vals.filter(function(x){return!x.minor}):[],o=t.counterAxis;if(o&&Ye.shouldShowZeroLine(e,r,o))for(var s=r.tickmode==="array",u=0;u=0;p--){var m=p?v:h;if(m){var y=m.selectAll("path."+a).data(p?l:i,C1);y.exit().remove(),y.enter().append("path").classed(a,1).classed("crisp",t.crisp!==!1),y.attr("transform",t.transFn).attr("d",t.path).each(function(x){return xv.stroke(yi.select(this),x.minor?r.minor.gridcolor:r.gridcolor||"#ddd")}).style("stroke-dasharray",function(x){return $n.dashStyle(x.minor?r.minor.griddash:r.griddash,x.minor?r.minor.gridwidth:r.gridwidth)}).style("stroke-width",function(x){return(x.minor?c:r._gw)+"px"}).style("display",null),typeof t.path=="function"&&y.attr("d",t.path)}}S1(r,[ab,nb])}};Ye.drawZeroLine=function(e,r,t){t=t||t;var a=r._id+"zl",n=Ye.shouldShowZeroLine(e,r,t.counterAxis),i=t.layer.selectAll("path."+a).data(n?[{x:0,id:r._id}]:[]);i.exit().remove(),i.enter().append("path").classed(a,1).classed("zl",1).classed("crisp",t.crisp!==!1).each(function(){t.layer.selectAll("path").sort(function(l,o){return Dfe(l.id,o.id)})}),i.attr("transform",t.transFn).attr("d",t.path).call(xv.stroke,r.zerolinecolor||xv.defaultLine).style("stroke-width",$n.crispRound(e,r.zerolinewidth,r._gw||1)+"px").style("display",null),S1(r,[tb])};Ye.drawLabels=function(e,r,t){t=t||{};var a=e._fullLayout,n=r._id,i=r.zerolinelayer==="above traces",l=t.cls||n+"tick",o=t.vals.filter(function(X){return X.text}),s=t.labelFns,u=t.secondary?0:r.tickangle,f=(r._prevTickAngles||{})[l],c=t.layer.selectAll("g."+l).data(r.showticklabels?o:[],C1),v=[];c.enter().append("g").classed(l,1).append("text").attr("text-anchor","middle").each(function(X){var W=yi.select(this),U=e._promises.length;W.call(au.positionText,s.xFn(X),s.yFn(X)).call($n.font,{family:X.font,size:X.fontSize,color:X.fontColor,weight:X.fontWeight,style:X.fontStyle,variant:X.fontVariant,textcase:X.fontTextcase,lineposition:X.fontLineposition,shadow:X.fontShadow}).text(X.text).call(au.convertToTspans,e),e._promises[U]?v.push(e._promises.pop().then(function(){h(W,u)})):h(W,u)}),S1(r,[Dq]),c.exit().remove(),t.repositionOnUpdate&&c.each(function(X){yi.select(this).select("text").call(au.positionText,s.xFn(X),s.yFn(X))});function h(X,W){X.each(function(U){var $=yi.select(this),re=$.select(".text-math-group"),se=s.anchorFn(U,W),oe=t.transFn.call($.node(),U)+(la(W)&&+W!=0?" rotate("+W+","+s.xFn(U)+","+(s.yFn(U)-U.fontSize/2)+")":""),K=au.lineCount($),me=_v*U.fontSize,ie=s.heightFn(U,la(W)?+W:0,(K-1)*me);if(ie&&(oe+=K0(0,ie)),re.empty()){var Me=$.select("text");Me.attr({transform:oe,"text-anchor":se}),Me.style("display",null),r._adjustTickLabelsOverflow&&r._adjustTickLabelsOverflow()}else{var ue=$n.bBox(re.node()).width,ce=ue*{end:-.5,start:.5}[se];re.attr("transform",oe+K0(ce,0))}})}r._adjustTickLabelsOverflow=function(){var X=r.ticklabeloverflow;if(!(!X||X==="allow")){var W=X.indexOf("hide")!==-1,U=r._id.charAt(0)==="x",$=0,re=U?e._fullLayout.width:e._fullLayout.height;if(X.indexOf("domain")!==-1){var se=Lr.simpleMap(r.range,r.r2l);$=r.l2p(se[0])+r._offset,re=r.l2p(se[1])+r._offset}var oe=Math.min($,re),K=Math.max($,re),me=r.side,ie=1/0,Me=-1/0;c.each(function(Ne){var ge=yi.select(this),qe=ge.select(".text-math-group");if(qe.empty()){var ke=$n.bBox(ge.node()),Le=0;U?(ke.right>K||ke.leftK||ke.top+(r.tickangle?0:Ne.fontSize/4)r["_visibleLabelMin_"+se._id]?ge.style("display","none"):K.K==="tick"&&!oe&&ge.node().style.display!=="none"&&ge.style("display",null)})})})})},h(c,f+1?f:u);function p(){return v.length&&Promise.all(v)}var m=null;function y(){if(h(c,u),o.length&&r.autotickangles&&(r.type!=="log"||String(r.dtick).charAt(0)!=="D")){m=r.autotickangles[0];var X=0,W=[],U,$=1;c.each(function(He){X=Math.max(X,He.fontSize);var tr=r.l2p(He.x),te=lb(this),xe=$n.bBox(te.node());$=Math.max($,au.lineCount(te)),W.push({top:0,bottom:10,height:10,left:tr-xe.width/2,right:tr+xe.width/2+2,width:xe.width+2})});var re=(r.tickson==="boundaries"||r.showdividers)&&!t.secondary,se=o.length,oe=Math.abs((o[se-1].x-o[0].x)*r._m)/(se-1),K=re?oe/2:oe,me=re?r.ticklen:X*1.25*$,ie=Math.sqrt(Math.pow(K,2)+Math.pow(me,2)),Me=K/ie,ue=r.autotickangles.map(function(He){return He*Math.PI/180}),ce=ue.find(function(He){return Math.abs(Math.cos(He))<=Me});ce===void 0&&(ce=ue.reduce(function(He,tr){return Math.abs(Math.cos(He))Y*N&&(F=N,D[S]=P[S]=B[S])}var O=Math.abs(F-R);O-M>0?(O-=M,M*=1+M/O):M=0,r._id.charAt(0)!=="y"&&(M=-M),D[k]=w.p2r(w.r2p(P[k])+A*M),w.autorange==="min"||w.autorange==="max reversed"?(D[0]=null,w._rangeInitial0=void 0,w._rangeInitial1=void 0):(w.autorange==="max"||w.autorange==="min reversed")&&(D[1]=null,w._rangeInitial0=void 0,w._rangeInitial1=void 0),a._insideTickLabelsUpdaterange[w._name+".range"]=D}var V=Lr.syncOrAsync(x);return V&&V.then&&e._promises.push(V),V};function ace(e,r,t){var a=r._id+"divider",n=t.vals,i=t.layer.selectAll("path."+a).data(n,C1);i.exit().remove(),i.enter().insert("path",":first-child").classed(a,1).classed("crisp",1).call(xv.stroke,r.dividercolor).style("stroke-width",$n.crispRound(e,r.dividerwidth,1)+"px"),i.attr("transform",t.transFn).attr("d",t.path)}Ye.getPxPosition=function(e,r){var t=e._fullLayout._size,a=r._id.charAt(0),n=r.side,i;if(r.anchor!=="free"?i=r._anchorAxis:a==="x"?i={_offset:t.t+(1-(r.position||0))*t.h,_length:0}:a==="y"&&(i={_offset:t.l+(r.position||0)*t.w+r._shift,_length:0}),n==="top"||n==="left")return i._offset;if(n==="bottom"||n==="right")return i._offset+i._length};function Hq(e){var r=e.title.font.size,t=(e.title.text.match(au.BR_TAG_ALL)||[]).length;return e.title.hasOwnProperty("standoff")?r*(iu+t*_v):t?r*(t+1)*_v:r}function nce(e,r){var t=e._fullLayout,a=r._id,n=a.charAt(0),i=r.title.font.size,l,o=(r.title.text.match(au.BR_TAG_ALL)||[]).length;if(r.title.hasOwnProperty("standoff"))r.side==="bottom"||r.side==="right"?l=r._depth+r.title.standoff+i*iu:(r.side==="top"||r.side==="left")&&(l=r._depth+r.title.standoff+i*(yv+o*_v));else{var s=Tv(r);if(r.type==="multicategory")l=r._depth;else{var u=1.5*i;s&&(u=.5*i,r.ticks==="outside"&&(u+=r.ticklen)),l=10+u+(r.linewidth?r.linewidth-1:0)}s||(n==="x"?l+=r.side==="top"?i*(r.showticklabels?1:0):i*(r.showticklabels?1.5:.5):l+=r.side==="right"?i*(r.showticklabels?1:.5):i*(r.showticklabels?.5:0))}var f=Ye.getPxPosition(e,r),c,v,h;n==="x"?(v=r._offset+r._length/2,h=r.side==="top"?f-l:f+l):(h=r._offset+r._length/2,v=r.side==="right"?f+l:f-l,c={rotate:"-90",offset:0});var p;if(r.type!=="multicategory"){var m=r._selections[r._id+"tick"];if(p={selection:m,side:r.side},m&&m.node()&&m.node().parentNode){var y=$n.getTranslate(m.node().parentNode);p.offsetLeft=y.x,p.offsetTop=y.y}r.title.hasOwnProperty("standoff")&&(p.pad=0)}return r._titleStandoff=l,wfe.draw(e,a+"title",{propContainer:r,propName:r._name+".title.text",placeholder:t._dfltTitle[n],avoid:p,transform:c,attributes:{x:v,y:h,"text-anchor":"middle"}})}Ye.shouldShowZeroLine=function(e,r,t){var a=Lr.simpleMap(r.range,r.r2l);return a[0]*a[1]<=0&&r.zeroline&&(r.type==="linear"||r.type==="-")&&!(r.rangebreaks&&r.maskBreaks(0)===k1)&&(Zq(r,0)||!ice(e,r,t,a)||lce(e,r))};Ye.clipEnds=function(e,r){return r.filter(function(t){return Zq(e,t.x)})};function Zq(e,r){var t=e.l2p(r);return t>1&&t1)for(n=1;n=n.min&&e=Cfe:/%L/.test(r)?e>=Lfe:/%[SX]/.test(r)?e>=M1:/%M/.test(r)?e>=bv:/%[HI]/.test(r)?e>=wl:/%p/.test(r)?e>=Oo:/%[Aadejuwx]/.test(r)?e>=hn:/%[UVW]/.test(r)?e>=Kn:/%[Bbm]/.test(r)?e>=T1:/%[q]/.test(r)?e>=w1:/%[Yy]/.test(r)?e>=_1:!0}});var Qq=G((ake,jq)=>{"use strict";jq.exports=function(r,t,a){var n,i;if(a){var l=t==="reversed"||t==="min reversed"||t==="max reversed";n=a[l?1:0],i=a[l?0:1]}var o=r("autorangeoptions.minallowed",i===null?n:void 0),s=r("autorangeoptions.maxallowed",n===null?i:void 0);o===void 0&&r("autorangeoptions.clipmin"),s===void 0&&r("autorangeoptions.clipmax"),r("autorangeoptions.include")}});var hb=G((nke,eD)=>{"use strict";var vce=Qq();eD.exports=function(r,t,a,n){var i=t._template||{},l=t.type||i.type||"-";a("minallowed"),a("maxallowed");var o=a("range");if(!o){var s;!n.noInsiderange&&l!=="log"&&(s=a("insiderange"),s&&(s[0]===null||s[1]===null)&&(t.insiderange=!1,s=void 0),s&&(o=a("range",s)))}var u=t.getAutorangeDflt(o,n),f=a("autorange",u),c;o&&(o[0]===null&&o[1]===null||(o[0]===null||o[1]===null)&&(f==="reversed"||f===!0)||o[0]!==null&&(f==="min"||f==="max reversed")||o[1]!==null&&(f==="max"||f==="min reversed"))&&(o=void 0,delete t.range,t.autorange=!0,c=!0),c||(u=t.getAutorangeDflt(o,n),f=a("autorange",u)),f&&(vce(a,f,o),(l==="linear"||l==="-")&&a("rangemode")),t.cleanRange()}});var tD=G((ike,rD)=>{var dce={left:0,top:0};rD.exports=hce;function hce(e,r,t){r=r||e.currentTarget||e.srcElement,Array.isArray(t)||(t=[0,0]);var a=e.clientX||0,n=e.clientY||0,i=pce(r);return t[0]=a-i.left,t[1]=n-i.top,t}function pce(e){return e===window||e===document||e===document.body?dce:e.getBoundingClientRect()}});var pb=G((lke,aD)=>{"use strict";var mce=G5();function yce(){var e=!1;try{var r=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("test",null,r),window.removeEventListener("test",null,r)}catch(t){e=!1}return e}aD.exports=mce&&yce()});var iD=G((oke,nD)=>{"use strict";nD.exports=function(r,t,a,n,i){var l=(r-a)/(n-a),o=l+t/(n-a),s=(l+o)/2;return i==="left"||i==="bottom"?l:i==="center"||i==="middle"?s:i==="right"||i==="top"?o:l<2/3-s?l:o>4/3-s?o:s}});var sD=G((ske,oD)=>{"use strict";var lD=Se(),gce=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];oD.exports=function(r,t,a,n){return a==="left"?r=0:a==="center"?r=1:a==="right"?r=2:r=lD.constrain(Math.floor(r*3),0,2),n==="bottom"?t=0:n==="middle"?t=1:n==="top"?t=2:t=lD.constrain(Math.floor(t*3),0,2),gce[t][r]}});var fD=G((uke,uD)=>{"use strict";var xce=nv(),bce=Ch(),_ce=$c().getGraphDiv,wce=(qc(),Fe(Sc)),mb=uD.exports={};mb.wrapped=function(e,r,t){var i;e=_ce(e),e._fullLayout&&bce.clear(e._fullLayout._uid+wce.HOVERID);let a=e._hoverdata;mb.raw(e,r,t)&&e._hoverAnywhereActive&&(e._hoverAnywhereActive=!1,(i=e._fullLayout)!=null&&i.hoveranywhere&&(r!=null&&r.target)&&!a&&e.emit("plotly_unhover",{event:r,points:[]}))};mb.raw=function(r,t){var a=r._fullLayout,n=r._hoverdata;return t||(t={}),t.target&&!r._dragged&&xce.triggerHandler(r,"plotly_beforehover",t)===!1?!1:(a._hoverlayer.selectAll("g").remove(),a._hoverlayer.selectAll("line").remove(),a._hoverlayer.selectAll("circle").remove(),r._hoverdata=void 0,t.target&&n&&r.emit("plotly_unhover",{event:t,points:n}),!0)}});var Ji=G((fke,hD)=>{"use strict";var Tce=tD(),yb=V5(),Mce=pb(),Ace=Se().removeElement,kce=(La(),Fe(ka)),lu=hD.exports={};lu.align=iD();lu.getCursor=sD();var vD=fD();lu.unhover=vD.wrapped;lu.unhoverRaw=vD.raw;lu.init=function(r){var t=r.gd,a=1,n=t._context.doubleClickDelay,i=r.element,l,o,s,u,f,c,v,h;t._mouseDownTime||(t._mouseDownTime=0),i.style.pointerEvents="all",i.onmousedown=y,Mce?(i._ontouchstart&&i.removeEventListener("touchstart",i._ontouchstart),i._ontouchstart=y,i.addEventListener("touchstart",y,{passive:!1})):i.ontouchstart=y;function p(w,b,M){return Math.abs(w)n&&(a=Math.max(a-1,1)),t._dragged)r.doneFn&&r.doneFn();else{var b;c.target===v?b=c:(b={target:v,srcElement:v,toElement:v},Object.keys(c).concat(Object.keys(c.__proto__)).forEach(M=>{var A=c[M];!b[M]&&typeof A!="function"&&(b[M]=A)})),r.clickFn&&r.clickFn(a,b),h||v.dispatchEvent(new MouseEvent("click",w))}t._dragging=!1,t._dragged=!1}};function dD(){var e=document.createElement("div");e.className="dragcover";var r=e.style;return r.position="fixed",r.left=0,r.right=0,r.top=0,r.bottom=0,r.zIndex=999999999,r.background="none",document.body.appendChild(e),e}lu.coverSlip=dD;function cD(e){return Tce(e.changedTouches?e.changedTouches[0]:e,document.body)}});var Yo=G((cke,pD)=>{"use strict";pD.exports=function(r,t){(r.attr("class")||"").split(" ").forEach(function(a){a.indexOf("cursor-")===0&&r.classed(a,!1)}),t&&r.classed("cursor-"+t,!0)}});var gD=G((vke,yD)=>{"use strict";var gb=Yo(),Mv="data-savedcursor",mD="!!";yD.exports=function(r,t){var a=r.attr(Mv);if(t){if(!a){for(var n=(r.attr("class")||"").split(" "),i=0;iRce,itemGap:()=>Ece,itemHeightPad:()=>Fce,itemMinHeight:()=>zce,scrollBarColor:()=>Sce,scrollBarEnterAttrs:()=>Dce,scrollBarMargin:()=>qce,scrollBarMinHeight:()=>Cce,scrollBarWidth:()=>Lce,titlePad:()=>Pce});var Lce,Cce,Sce,qce,Dce,Pce,Ece,Rce,zce,Fce,D1=Cr(()=>{"use strict";Lce=6,Cce=20,Sce="#808BA4",qce=4,Dce={rx:20,ry:3,width:0,height:0},Pce=2,Ece=5,Rce=6,zce=16,Fce=3});var bb=G((dke,bD)=>{"use strict";var xb=Ta(),Nce=vi(),{dfltFillHeight:xD}=(D1(),Fe(q1));bD.exports={_isSubplotObj:!0,visible:{valType:"boolean",dflt:!0,editType:"legend"},bgcolor:{valType:"color",editType:"legend"},bordercolor:{valType:"color",dflt:Nce.defaultLine,editType:"legend"},maxheight:{valType:"number",min:0,editType:"legend"},borderwidth:{valType:"number",min:0,dflt:0,editType:"legend"},font:xb({editType:"legend"}),grouptitlefont:xb({editType:"legend"}),orientation:{valType:"enumerated",values:["v","h"],dflt:"v",editType:"legend"},traceorder:{valType:"flaglist",flags:["reversed","grouped"],extras:["normal"],editType:"legend"},tracegroupgap:{valType:"number",min:0,dflt:10,editType:"legend"},entrywidth:{valType:"number",min:0,editType:"legend"},entrywidthmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels",editType:"legend"},indentation:{valType:"number",min:-15,dflt:0,editType:"legend"},itemsizing:{valType:"enumerated",values:["trace","constant"],dflt:"trace",editType:"legend"},itemwidth:{valType:"number",min:30,dflt:30,editType:"legend"},itemheight:{valType:"number",min:xD,dflt:xD,editType:"legend"},itemclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggle",editType:"legend"},itemdoubleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggleothers",editType:"legend"},groupclick:{valType:"enumerated",values:["toggleitem","togglegroup"],dflt:"togglegroup",editType:"legend"},groupdoubleclick:{valType:"enumerated",values:["toggleitem","togglegroup"],editType:"legend"},titleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],editType:"legend"},titledoubleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],editType:"legend"},x:{valType:"number",editType:"legend"},xref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"legend"},y:{valType:"number",editType:"legend"},yref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],editType:"legend"},uirevision:{valType:"any",editType:"none"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"legend"},title:{text:{valType:"string",dflt:"",editType:"legend"},font:xb({editType:"legend"}),side:{valType:"enumerated",values:["top","left","top left","top center","top right"],editType:"legend"},editType:"legend"},editType:"legend"}});var kv=G(Av=>{"use strict";Av.isGrouped=function(r){return(r.traceorder||"").indexOf("grouped")!==-1};Av.isVertical=function(r){return r.orientation!=="h"};Av.isReversed=function(r){return(r.traceorder||"").indexOf("reversed")!==-1};Av.getId=function(r){return r._id||"legend"}});var wb=G((pke,_D)=>{"use strict";var P1=Ar(),jn=Se(),Ice=yt(),Bce=qn(),Hce=bb(),Oce=q0(),_b=kv();function Yce(e,r,t,a,n){var i=r[e]||{},l=Ice.newContainer(t,e);function o(W,U){return jn.coerce(i,l,Hce,W,U)}var s=jn.coerceFont(o,"font",t.font);o("bgcolor",t.paper_bgcolor),o("bordercolor");var u=o("visible");if(!u)return;var f,c=function(W,U){var $=f._input,re=f;return jn.coerce($,re,Bce,W,U)},v=t.font||{},h=jn.coerceFont(o,"grouptitlefont",v,{overrideDflt:{size:Math.round(v.size*1.1)}}),p=0,m=!1,y="normal",x=(t.shapes||[]).filter(function(W){return W.showlegend});function _(W){return P1.traceIs(W,"pie-like")&&W._length!=null&&(Array.isArray(W.legend)||Array.isArray(W.showlegend))}a.filter(_).forEach(function(W){W.visible&&p++;for(var U=0;UW.legend.length)for(var re=W.legend.length;re(e==="legend"?1:0));if(A===!1&&(t[e]=void 0),A===!1&&!i.uirevision||(o("uirevision",t.uirevision),A===!1))return;o("borderwidth");var k=o("orientation"),S=o("yref"),D=o("xref"),P=k==="h",R=S==="paper",F=D==="paper",B,H,N,Y="left";P?(B=0,P1.getComponentMethod("rangeslider","isVisible")(r.xaxis)?R?(H=1.1,N="bottom"):(H=1,N="top"):R?(H=-.1,N="top"):(H=0,N="bottom")):(H=1,N="auto",F?B=1.02:(B=1,Y="right")),jn.coerce(i,l,{x:{valType:"number",editType:"legend",min:F?-2:0,max:F?3:1,dflt:B}},"x"),jn.coerce(i,l,{y:{valType:"number",editType:"legend",min:R?-2:0,max:R?3:1,dflt:H}},"y"),o("traceorder",y),_b.isGrouped(t[e])&&o("tracegroupgap"),o("entrywidth"),o("entrywidthmode"),o("indentation"),o("itemsizing"),o("itemwidth"),o("itemheight"),o("itemclick"),o("itemdoubleclick");let O=o("groupclick");o("groupdoubleclick",O),o("xanchor",Y),o("yanchor",N),o("maxheight"),o("valign"),jn.noneOrAll(i,l,["x","y"]);var V=o("title.text");if(V){o("title.side",P?"left":"top");var X=jn.extendFlat({},s,{size:jn.bigFont(s.size)});jn.coerceFont(o,"title.font",X);let W=n>1;o("titleclick",W?"toggle":!1),o("titledoubleclick",W?"toggleothers":!1)}}_D.exports=function(r,t,a){var n,i=a.slice(),l=t.shapes;if(l)for(n=0;n{"use strict";var Go=Ar(),Tb=Se(),Gce=Tb.pushUnique,Uce=kv(),wD=!0;Mb.handleItemClick=function(r,t,a,n,i){var l=t._fullLayout;if(t._dragged||t._editing)return;var o=r.data()[0][0];if(o.groupTitle&&o.noClick)return;let s=i===2?a.groupdoubleclick:a.groupclick;n==="toggle"&&a.itemdoubleclick==="toggleothers"&&wD&&t.data&&t._context.showTips&&(Tb.notifier(Tb._(t,"Double-click on legend to isolate one trace"),"long",t),wD=!1);var u=s==="togglegroup",f=l.hiddenlabels?l.hiddenlabels.slice():[],c=t._fullData;let v=(l.shapes||[]).filter(Ce=>Ce.showlegend||Ce.legendgroup);var h=c.concat(v),p=o.trace;p._isShape&&(p=l.shapes[p.index]);var m=p.legendgroup,y,x,_,w,b,M,A={},k=[],S=[],D=[];function P(Ce,ze){var Ae=k.indexOf(Ce),Ue=A.visible;return Ue||(Ue=A.visible=[]),k.indexOf(Ce)===-1&&(k.push(Ce),Ae=k.length-1),Ue[Ae]=ze,Ae}var R=(l.shapes||[]).map(function(Ce){return Ce._input}),F=!1;function B(Ce,ze){R[Ce].visible=ze,F=!0}function H(Ce,ze){if(!(o.groupTitle&&!u)){var Ae=Ce._isShape,Ue=Ce.index;Ue===void 0&&(Ue=Ce._index);var $e=Ce.visible===!1?!1:ze;Ae?B(Ue,$e):P(Ue,$e)}}var N=p.legend;if(!p._isShape&&Go.traceIs(p,"pie-like")){var Y=o.label,O=f.indexOf(Y);if(n==="toggle")O===-1?f.push(Y):f.splice(O,1);else if(n==="toggleothers"){var V=O!==-1,X=[];for(y=0;yx.showlegend||x.legendgroup),s=i.concat(o);function u(x){return(x.legend||"legend")===l}var f,c;if(a==="toggle")f=!s.some(function(_){return u(_)&&_.visible===!0}),c=!1;else{let x=s.some(function(_){return!u(_)&&_.visible===!0&&_.showlegend!==!1});f=!0,c=!x}let v={visible:[]},h=[],p=(n.shapes||[]).map(function(x){return x._input});for(var m=!1,y=0;y{"use strict";var{isArrayOrTypedArray:kb}=Sn(),TD=Ar(),Lb=kv();MD.exports=function(r,t,a){var n=t._inHover,i=Lb.isGrouped(t),l=Lb.isReversed(t),o={},s=[],u=!1,f={},c=0,v=0,h,p;function m(W,U,$){if(t.visible!==!1&&!(a&&W!==t._id))if(U===""||!Lb.isGrouped(t)){var re="~~i"+c;s.push(re),o[re]=[$],c++}else s.indexOf(U)===-1?(s.push(U),u=!0,o[U]=[$]):o[U].push($)}for(h=0;hB&&(R=B)}D[h][0]._groupMinRank=R,D[h][0]._preGroupSort=h}var H=function(W,U){return W[0]._groupMinRank-U[0]._groupMinRank||W[0]._preGroupSort-U[0]._preGroupSort},N=function(W,U){var $=kb(W.trace.legendrank)?W.trace.legendrank[W.i]:W.trace.legendrank,re=kb(U.trace.legendrank)?U.trace.legendrank[U.i]:U.trace.legendrank;return $-re||W._preSort-U._preSort};for(D.forEach(function(W,U){W[0]._preGroupSort=U}),D.sort(H),h=0;h{"use strict";var E1=Se();function kD(e){return e.indexOf("e")!==-1?e.replace(/[.]?0+e/,"e"):e.indexOf(".")!==-1?e.replace(/[.]?0+$/,""):e}ou.formatPiePercent=function(r,t){var a=kD((r*100).toPrecision(3));return E1.numSeparate(a,t)+"%"};ou.formatPieValue=function(r,t){var a=kD(r.toPrecision(10));return E1.numSeparate(a,t)};ou.getFirstFilled=function(r,t){if(E1.isArrayOrTypedArray(r))for(var a=0;a{"use strict";var Vce=$r(),Xce=kr();LD.exports=function(r,t,a,n){var i=a.marker.pattern;i&&i.shape?Vce.pointStyle(r,a,n,t):Xce.fill(r,t.color)}});var ef=G((bke,DD)=>{"use strict";var SD=kr(),qD=Lv().castOption,Wce=CD();DD.exports=function(r,t,a,n){var i=a.marker.line,l=qD(i.color,t.pts)||SD.defaultLine,o=qD(i.width,t.pts)||0;r.call(Wce,t,a,n).style("stroke-width",o).call(SD.stroke,l)}});var Pb=G((_ke,FD)=>{"use strict";var pn=Er(),Cb=Ar(),an=Se(),Sb=an.strTranslate,Qn=$r(),gi=kr(),qb=Wn().extractOpts,z1=Jn(),Zce=ef(),Jce=Lv().castOption,PD=(D1(),Fe(q1)),ED=12,RD=5,su=2,$ce=10,rf=5;FD.exports=function(r,t,a){var n=t._fullLayout;a||(a=n.legend);var i=a.itemsizing==="constant",l=a.itemwidth,o=a.itemheight,s=(l+PD.itemGap*2)/2,u=Sb(s,0),f=function(S,D,P,R){var F;if(S+1)F=S;else if(D&&D.width>0)F=D.width;else return 0;return i?R:Math.min(F,P)};r.each(function(S){var D=pn.select(this),P=an.ensureSingle(D,"g","layers");P.style("opacity",S[0].trace.opacity);var R=a.indentation,F=a.valign,B=S[0].lineHeight,H=S[0].height;if(F==="middle"&&R===0||!B||!H)P.attr("transform",null);else{var N={top:1,bottom:-1}[F],Y=N*(.5*(B-H+3))||0,O=a.indentation;P.attr("transform",Sb(O,Y))}var V=P.selectAll("g.legendfill").data([S]);V.enter().append("g").classed("legendfill",!0);var X=P.selectAll("g.legendlines").data([S]);X.enter().append("g").classed("legendlines",!0);var W=P.selectAll("g.legendsymbols").data([S]);W.enter().append("g").classed("legendsymbols",!0),W.selectAll("g.legendpoints").data([S]).enter().append("g").classed("legendpoints",!0)}).each(k).each(h).each(m).each(p).each(x).each(M).each(b).each(c).each(v).each(_).each(w);function c(S){var D=zD(S),P=D.showFill,R=D.showLine,F=D.showGradientLine,B=D.showGradientFill,H=D.anyFill,N=D.anyLine,Y=S[0],O=Y.trace,V,X,W=qb(O),U=W.colorscale,$=W.reversescale,re=function(ce){if(ce.size())if(P)Qn.fillGroupStyle(ce,t,!0);else{var Te="legendfill-"+O.uid;Qn.gradient(ce,t,Te,Db($),U,"fill")}},se=function(ce){if(ce.size()){var Te="legendline-"+O.uid;Qn.lineGroupStyle(ce),Qn.gradient(ce,t,Te,Db($),U,"stroke")}},oe=z1.hasMarkers(O)||!H?"M5,0":N?"M5,-2":"M5,-3",K=pn.select(this),me=K.select(".legendfill").selectAll("path").data(P||B?[S]:[]);me.enter().append("path").classed("js-fill",!0),me.exit().remove(),me.attr("d",oe+"h"+l+"v"+o+"h-"+l+"z").call(re);let ie=P||B?(PD.dfltFillHeight-o)/2:0;if(K.selectAll("g.legendfill, g.legendlines, g.legendsymbols").attr("transform",ie?Sb(0,ie):null),R||F){var Me=f(void 0,O.line,$ce,RD);X=an.minExtend(O,{line:{width:Me}}),V=[an.minExtend(Y,{trace:X})]}var ue=K.select(".legendlines").selectAll("path").data(R||F?[V]:[]);ue.enter().append("path").classed("js-line",!0),ue.exit().remove(),ue.attr("d",oe+(F?"l"+l+",0.0001":"h"+l)).call(R?Qn.lineGroupStyle:se)}function v(S){var D=zD(S),P=D.anyFill,R=D.anyLine,F=D.showLine,B=D.showMarker,H=S[0],N=H.trace,Y=!B&&!R&&!P&&z1.hasText(N),O,V;function X(ie,Me,ue,ce){var Te=an.nestedProperty(N,ie).get(),Ne=an.isArrayOrTypedArray(Te)&&Me?Me(Te):Te;if(i&&Ne&&ce!==void 0&&(Ne=ce),ue){if(Neue[1])return ue[1]}return Ne}function W(ie){return H._distinct&&H.index&&ie[H.index]?ie[H.index]:ie[0]}if(B||Y||F){var U={},$={};if(B){U.mc=X("marker.color",W);var re=N.type==="scattermap";U.mx=re?"circle":X("marker.symbol",W),U.mo=X("marker.opacity",an.mean,[.2,1]),U.mlc=X("marker.line.color",W),U.mlw=X("marker.line.width",an.mean,[0,5],su),U.mld=X("marker.line.dash",W),$.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var se=X("marker.size",an.mean,[2,16],ED);U.ms=se,$.marker.size=se}F&&($.line={width:X("line.width",W,[0,10],RD)}),Y&&(U.tx="Aa",U.tp=X("textposition",W),U.ts=10,U.tc=X("textfont.color",W),U.tf=X("textfont.family",W),U.tw=X("textfont.weight",W),U.ty=X("textfont.style",W),U.tv=X("textfont.variant",W),U.tC=X("textfont.textcase",W),U.tE=X("textfont.lineposition",W),U.tS=X("textfont.shadow",W)),O=[an.minExtend(H,U)],V=an.minExtend(N,$),V.selectedpoints=null,V.texttemplate=null}var oe=pn.select(this).select("g.legendpoints"),K=oe.selectAll("path.scatterpts").data(B?O:[]);K.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",u),K.exit().remove(),K.call(Qn.pointStyle,V,t),B&&(O[0].mrc=3);var me=oe.selectAll("g.pointtext").data(Y?O:[]);me.enter().append("g").classed("pointtext",!0).append("text").attr("transform",u),me.exit().remove(),me.selectAll("text").call(Qn.textPointStyle,V,t)}function h(S){var D=S[0].trace,P=D.type==="waterfall";if(S[0]._distinct&&P){var R=S[0].trace[S[0].dir].marker;return S[0].mc=R.color,S[0].mlw=R.line.width,S[0].mlc=R.line.color,y(S,this,"waterfall")}var F=[];D.visible&&P&&(F=S[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 B=pn.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data(F);B.enter().append("path").classed("legendwaterfall",!0).attr("transform",u).style("stroke-miterlimit",1),B.exit().remove(),B.each(function(H){var N=pn.select(this),Y=D[H[0]].marker,O=f(void 0,Y.line,rf,su);N.attr("d",H[1]).style("stroke-width",O+"px").call(gi.fill,Y.color),O&&N.call(gi.stroke,Y.line.color)})}function p(S){y(S,this)}function m(S){y(S,this,"funnel")}function y(S,D,P){var R=S[0].trace,F=R.marker||{},B=F.line||{},H=F.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",N=P?R.visible&&R.type===P:Cb.traceIs(R,"bar"),Y=pn.select(D).select("g.legendpoints").selectAll("path.legend"+P).data(N?[S]:[]);Y.enter().append("path").classed("legend"+P,!0).attr("d",H).attr("transform",u),Y.exit().remove(),Y.each(function(O){var V=pn.select(this),X=O[0],W=f(X.mlw,F.line,rf,su);V.style("stroke-width",W+"px");var U=X.mcc;if(!a._inHover&&"mc"in X){var $=qb(F),re=$.mid;re===void 0&&(re=($.max+$.min)/2),U=Qn.tryColorscale(F,"")(re)}var se=U||X.mc||F.color,oe=F.pattern,K=Qn.getPatternAttr;let me=0;a._inHover&&X._distinct&&X.index!=null&&(me=X.index);let ie=oe&&(K(oe.shape,me,"")||K(oe.path,me,""));if(ie){let ue=K(oe.bgcolor,me,null),ce=K(oe.fgcolor,me,null);var Me=oe.fgopacity;let Te=a._inHover?R1(K(oe.size,me,8),8,10):R1(oe.size,8,10),Ne=a._inHover?R1(K(oe.solidity,me,.5),.5,1):R1(oe.solidity,.5,1),ge=a._inHover?`hover-${R.uid}-${me}`:`legend-${R.uid}`;V.call(Qn.pattern,"legend",t,ge,ie,Te,Ne,U,oe.fillmode,ue,ce,Me)}else V.call(gi.fill,se);W&&gi.stroke(V,X.mlc||B.color)})}function x(S){var D=S[0].trace,P=pn.select(this).select("g.legendpoints").selectAll("path.legendbox").data(D.visible&&Cb.traceIs(D,"box-violin")?[S]:[]);P.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform",u),P.exit().remove(),P.each(function(){var R=pn.select(this);if((D.boxpoints==="all"||D.points==="all")&&gi.opacity(D.fillcolor)===0&&gi.opacity((D.line||{}).color)===0){var F=an.minExtend(D,{marker:{size:i?ED:an.constrain(D.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});P.call(Qn.pointStyle,F,t)}else{var B=f(void 0,D.line,rf,su);R.style("stroke-width",B+"px").call(gi.fill,D.fillcolor),B&&gi.stroke(R,D.line.color)}})}function _(S){var D=S[0].trace,P=pn.select(this).select("g.legendpoints").selectAll("path.legendcandle").data(D.visible&&D.type==="candlestick"?[S,S]:[]);P.enter().append("path").classed("legendcandle",!0).attr("d",function(R,F){return F?"M-15,0H-8M-8,6V-6H8Z":"M15,0H8M8,-6V6H-8Z"}).attr("transform",u).style("stroke-miterlimit",1),P.exit().remove(),P.each(function(R,F){var B=pn.select(this),H=D[F?"increasing":"decreasing"],N=f(void 0,H.line,rf,su);B.style("stroke-width",N+"px").call(gi.fill,H.fillcolor),N&&gi.stroke(B,H.line.color)})}function w(S){var D=S[0].trace,P=pn.select(this).select("g.legendpoints").selectAll("path.legendohlc").data(D.visible&&D.type==="ohlc"?[S,S]:[]);P.enter().append("path").classed("legendohlc",!0).attr("d",function(R,F){return F?"M-15,0H0M-8,-6V0":"M15,0H0M8,6V0"}).attr("transform",u).style("stroke-miterlimit",1),P.exit().remove(),P.each(function(R,F){var B=pn.select(this),H=D[F?"increasing":"decreasing"],N=f(void 0,H.line,rf,su);B.style("fill","none").call(Qn.dashLine,H.line.dash,N),N&&gi.stroke(B,H.line.color)})}function b(S){A(S,this,"pie")}function M(S){A(S,this,"funnelarea")}function A(S,D,P){var R=S[0],F=R.trace,B=P?F.visible&&F.type===P:Cb.traceIs(F,P),H=pn.select(D).select("g.legendpoints").selectAll("path.legend"+P).data(B?[S]:[]);if(H.enter().append("path").classed("legend"+P,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",u),H.exit().remove(),H.size()){var N=F.marker||{},Y=f(Jce(N.line.width,R.pts),N.line,rf,su),O="pieLike",V=an.minExtend(F,{marker:{line:{width:Y}}},O),X=an.minExtend(R,{trace:V},O);Zce(H,X,V,t)}}function k(S){var D=S[0].trace,P,R=[];if(D.visible)switch(D.type){case"histogram2d":case"heatmap":R=[["M-15,-2V4H15V-2Z"]],P=!0;break;case"choropleth":case"choroplethmap":R=[["M-6,-6V6H6V-6Z"]],P=!0;break;case"densitymap":R=[["M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"]],P="radial";break;case"cone":R=[["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"]],P=!1;break;case"streamtube":R=[["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"]],P=!1;break;case"surface":R=[["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"]],P=!0;break;case"mesh3d":R=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],P=!1;break;case"volume":R=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],P=!0;break;case"isosurface":R=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6 A12,24 0 0,0 6,-6 L0,6Z"]],P=!1;break}var F=pn.select(this).select("g.legendpoints").selectAll("path.legend3dandfriends").data(R);F.enter().append("path").classed("legend3dandfriends",!0).attr("transform",u).style("stroke-miterlimit",1),F.exit().remove(),F.each(function(B,H){var N=pn.select(this),Y=qb(D),O=Y.colorscale,V=Y.reversescale,X=function(re){if(re.size()){var se="legendfill-"+D.uid;Qn.gradient(re,t,se,Db(V,P==="radial"),O,"fill")}},W;if(O){if(!P){var $=O.length;W=H===0?O[V?$-1:0][1]:H===1?O[V?0:$-1][1]:O[Math.floor(($-1)/2)][1]}}else{var U=D.vertexcolor||D.facecolor||D.color;W=an.isArrayOrTypedArray(U)?U[H]||U[0]:U}N.attr("d",B[0]),W?N.call(gi.fill,W):N.call(X)})}};function Db(e,r){var t=r?"radial":"horizontal";return t+(e?"":"reversed")}function zD(e){var r=e[0].trace,t=r.contours,a=z1.hasLines(r)||r.visible&&r.type==="quiver",n=z1.hasMarkers(r),i=r.visible&&r.fill&&r.fill!=="none",l=!1,o=!1;if(t){var s=t.coloring;s==="lines"?l=!0:a=s==="none"||s==="heatmap"||t.showlines,t.type==="constraint"?i=t._operation!=="=":(s==="fill"||s==="heatmap")&&(o=!0)}return{showMarker:n,showLine:a,showFill:i,showGradientLine:l,showGradientFill:o,anyLine:a||l,anyFill:i||o}}function R1(e,r,t){return e&&an.isArrayOrTypedArray(e)?r:e>t?t:e}});var Fb=G((wke,VD)=>{"use strict";var mn=Er(),oa=Se(),Rb=Jt(),uu=Ar(),I1=nv(),Eb=Ji(),sa=$r(),Cv=kr(),Jl=ba(),ND=Ab().handleItemClick,ID=Ab().handleTitleClick,It=(D1(),Fe(q1)),zb=(Xa(),Fe(Va)),GD=zb.LINE_SPACING,af=zb.FROM_TL,BD=zb.FROM_BR,HD=AD(),Kce=Pb(),nf=kv(),tf=1,jce=/^legend[0-9]*$/;VD.exports=function(r,t){if(t)OD(r,t);else{var a=r._fullLayout,n=a._legends,i=a._infolayer.selectAll('[class^="legend"]');i.each(function(){var u=mn.select(this),f=u.attr("class"),c=f.split(" ")[0];c.match(jce)&&n.indexOf(c)===-1&&u.remove()});for(var l=0;l1)}var p=a.hiddenlabels||[];if(!o&&(!a.showlegend||!s.length))return l.selectAll("."+n).remove(),a._topdefs.select("#"+i).remove(),Rb.autoMargin(e,n);var m=oa.ensureSingle(l,"g",n,function(S){o||S.attr("pointer-events","all")}),y=oa.ensureSingleById(a._topdefs,"clipPath",i,function(S){S.append("rect")}),x=oa.ensureSingle(m,"rect","bg",function(S){S.attr("shape-rendering","crispEdges")});x.call(Cv.stroke,t.bordercolor).call(Cv.fill,t.bgcolor).style("stroke-width",t.borderwidth+"px");var _=oa.ensureSingle(m,"g","scrollbox"),w=t.title;t._titleWidth=0,t._titleHeight=0;var b;w.text?(b=oa.ensureSingle(_,"text",n+"titletext"),b.attr("text-anchor","start").call(sa.font,w.font).text(w.text),N1(b,_,e,t,tf),!o&&(t.titleclick||t.titledoubleclick)&&tve(_,e,t,n)):(_.selectAll("."+n+"titletext").remove(),_.selectAll("."+n+"titletoggle").remove());var M=oa.ensureSingle(m,"rect","scrollbar",function(S){S.attr(It.scrollBarEnterAttrs).call(Cv.fill,It.scrollBarColor)}),A=_.selectAll("g.groups").data(s);A.enter().append("g").attr("class","groups"),A.exit().remove();var k=A.selectAll("g.traces").data(oa.identity);k.enter().append("g").attr("class","traces"),k.exit().remove(),k.style("opacity",function(S){let D=S[0],P=D.trace;if(D.groupTitle){let R=P.legendgroup,F=(a.shapes||[]).filter(function(H){return H.showlegend});return e._fullData.concat(F).some(function(H){return H.legendgroup===R&&(H.legend||"legend")===n&&H.visible===!0})?1:.5}return uu.traceIs(P,"pie-like")?p.indexOf(S[0].label)!==-1?.5:1:P.visible==="legendonly"?.5:1}).each(function(){mn.select(this).call(eve,e,t)}).call(Kce,e,t).each(function(S){o||S[0].groupTitle&&t.groupclick==="toggleitem"||mn.select(this).call(rve,e,n)}),oa.syncOrAsync([Rb.previousPromises,function(){return ive(e,A,k,t,_)},function(){var S=a._size,D=t.borderwidth,P=t.xref==="paper",R=t.yref==="paper";if(w.text){let qe=(a.shapes||[]).filter(function(Le){return Le.showlegend}),ke=e._fullData.concat(qe).some(function(Le){let Ce=Le.legend||"legend";var ze=Array.isArray(Ce)?Ce.includes(n):Ce===n;return ze&&Le.visible===!0});b.style("opacity",ke?1:.5)}if(!o){var F,B;P?F=S.l+S.w*t.x-af[B1(t)]*t._width:F=a.width*t.x-af[B1(t)]*t._width,R?B=S.t+S.h*(1-t.y)-af[H1(t)]*t._effHeight:B=a.height*(1-t.y)-af[H1(t)]*t._effHeight;var H=lve(e,n,F,B);if(H)return;if(a.margin.autoexpand){var N=F,Y=B;F=P?oa.constrain(F,0,a.width-t._width):N,B=R?oa.constrain(B,0,a.height-t._effHeight):Y,F!==N&&oa.log("Constrain "+n+".x to make legend fit inside graph"),B!==Y&&oa.log("Constrain "+n+".y to make legend fit inside graph")}sa.setTranslate(m,F,B)}if(M.on(".drag",null),m.on("wheel",null),o||t._height<=t._maxHeight||e._context.staticPlot){var O=t._effHeight;o&&(O=t._height),x.attr({width:t._width-D,height:O-D,x:D/2,y:D/2}),sa.setTranslate(_,0,0),y.select("rect").attr({width:t._width-2*D,height:O-2*D,x:D,y:D}),sa.setClipUrl(_,i,e),sa.setRect(M,0,0,0,0),delete t._scrollY}else{var V=Math.max(It.scrollBarMinHeight,t._effHeight*t._effHeight/t._height),X=t._effHeight-V-2*It.scrollBarMargin,W=t._height-t._effHeight,U=X/W,$=Math.min(t._scrollY||0,W);x.attr({width:t._width-2*D+It.scrollBarWidth+It.scrollBarMargin,height:t._effHeight-D,x:D/2,y:D/2}),y.select("rect").attr({width:t._width-2*D+It.scrollBarWidth+It.scrollBarMargin,height:t._effHeight-2*D,x:D,y:D+$}),sa.setClipUrl(_,i,e),ue($,V,U),m.on("wheel",function(){$=oa.constrain(t._scrollY+mn.event.deltaY/W*X,0,W),ue($,V,U),$!==0&&$!==W&&mn.event.preventDefault()});var re,se,oe,K=function(qe,ke,Le){var Ce=(Le-ke)/U+qe;return oa.constrain(Ce,0,W)},me=function(qe,ke,Le){var Ce=(ke-Le)/U+qe;return oa.constrain(Ce,0,W)},ie=mn.behavior.drag().on("dragstart",function(){var qe=mn.event.sourceEvent;qe.type==="touchstart"?re=qe.changedTouches[0].clientY:re=qe.clientY,oe=$}).on("drag",function(){var qe=mn.event.sourceEvent;qe.buttons===2||qe.ctrlKey||(qe.type==="touchmove"?se=qe.changedTouches[0].clientY:se=qe.clientY,$=K(oe,re,se),ue($,V,U))});M.call(ie);var Me=mn.behavior.drag().on("dragstart",function(){var qe=mn.event.sourceEvent;qe.type==="touchstart"&&(re=qe.changedTouches[0].clientY,oe=$)}).on("drag",function(){var qe=mn.event.sourceEvent;qe.type==="touchmove"&&(se=qe.changedTouches[0].clientY,$=me(oe,re,se),ue($,V,U))});_.call(Me)}function ue(qe,ke,Le){t._scrollY=e._fullLayout[n]._scrollY=qe,sa.setTranslate(_,0,-qe),sa.setRect(M,t._width,It.scrollBarMargin+qe*Le,It.scrollBarWidth,ke),y.select("rect").attr("y",D+qe)}if(e._context.edits.legendPosition){var ce,Te,Ne,ge;m.classed("cursor-move",!0),Eb.init({element:m.node(),gd:e,prepFn:function(qe){if(qe.target!==M.node()){var ke=sa.getTranslate(m);Ne=ke.x,ge=ke.y}},moveFn:function(qe,ke){if(Ne!==void 0&&ge!==void 0){var Le=Ne+qe,Ce=ge+ke;sa.setTranslate(m,Le,Ce),ce=Eb.align(Le,t._width,S.l,S.l+S.w,t.xanchor),Te=Eb.align(Ce+t._height,-t._height,S.t+S.h,S.t,t.yanchor)}},doneFn:function(){if(ce!==void 0&&Te!==void 0){var qe={};qe[n+".x"]=ce,qe[n+".y"]=Te,uu.call("_guiRelayout",e,qe)}},clickFn:function(qe,ke){var Le=l.selectAll("g.traces").filter(function(){var Ce=this.getBoundingClientRect();return ke.clientX>=Ce.left&&ke.clientX<=Ce.right&&ke.clientY>=Ce.top&&ke.clientY<=Ce.bottom});Le.size()>0&&UD(e,t,Le,qe,ke)}})}}],e)}}function F1(e,r,t){var a=e[0],n=a.width,i=r.entrywidthmode,l=a.trace.legendwidth||r.entrywidth;return i==="fraction"?r._maxWidth*l:t+(l||n)}function UD(e,r,t,a,n){var i=e._fullLayout,l=t.data()[0][0].trace,o=r.itemclick,s=r.itemdoubleclick,u={event:n,node:t.node(),curveNumber:l.index,expandedIndex:l.index,data:e.data,layout:e.layout,frames:e._transitionData._frames,config:e._context,fullData:e._fullData,fullLayout:i};l._group&&(u.group=l._group),uu.traceIs(l,"pie-like")&&(u.label=t.datum()[0].label);var f=I1.triggerHandler(e,"plotly_legendclick",u);if(a===1){if(f===!1)return;r._clickTimeout=setTimeout(function(){e._fullLayout&&o&&ND(t,e,r,o,a)},e._context.doubleClickDelay)}else if(a===2){r._clickTimeout&&clearTimeout(r._clickTimeout),e._legendMouseDownTime=0;var c=I1.triggerHandler(e,"plotly_legenddoubleclick",u);c!==!1&&f!==!1&&s&&ND(t,e,r,s,a)}}function eve(e,r,t){var a=nf.getId(t),n=e.data()[0][0],i=n.trace,l=uu.traceIs(i,"pie-like"),o=!t._inHover&&r._context.edits.legendText&&!l,s=t._maxNameLength,u,f;n.groupTitle?(u=n.groupTitle.text,f=n.groupTitle.font):(f=t.font,t.entries?u=n.text:(u=l?n.label:i.name,i._meta&&(u=oa.templateString(u,i._meta))));var c=oa.ensureSingle(e,"text",a+"text");c.attr("text-anchor","start").call(sa.font,f).text(o?YD(u,s):u);var v=t.indentation+t.itemwidth+It.itemGap*2;Jl.positionText(c,v,0),o?c.call(Jl.makeEditable,{gd:r,text:u}).call(N1,e,r,t).on("edit",function(h){this.text(YD(h,s)).call(N1,e,r,t);var p={};return p.name=h,n.trace._isShape?uu.call("_guiRelayout",r,"shapes["+i.index+"].name",p.name):uu.call("_guiRestyle",r,p,i.index)}):N1(c,e,r,t)}function YD(e,r){var t=Math.max(4,r);if(e&&e.trim().length>=t/2)return e;e=e||"";for(var a=t-e.length;a>0;a--)e+=" ";return e}function rve(e,r,t){var a=r._context.doubleClickDelay,n,i=1,l=oa.ensureSingle(e,"rect",t+"toggle",function(o){r._context.staticPlot||o.style("cursor","pointer").attr("pointer-events","all"),o.call(Cv.fill,"rgba(0,0,0,0)")});r._context.staticPlot||(l.on("mousedown",function(){n=new Date().getTime(),n-r._legendMouseDownTimea&&(i=Math.max(i-1,1)),UD(r,o,e,i,mn.event)}}))}function tve(e,r,t,a){if(r._fullData.some(function(u){let f=u.legend||"legend";return(Array.isArray(f)?f.includes(a):f===a)&&uu.traceIs(u,"pie-like")}))return;let i=r._context.doubleClickDelay;var l,o=1;let s=oa.ensureSingle(e,"rect",a+"titletoggle",function(u){r._context.staticPlot||u.style("cursor","pointer").attr("pointer-events","all"),u.call(Cv.fill,"rgba(0,0,0,0)")});r._context.staticPlot||(s.on("mousedown",function(){l=new Date().getTime(),l-r._legendMouseDownTimei&&(o=Math.max(o-1,1));let u={event:mn.event,legendId:a,data:r.data,layout:r.layout,fullData:r._fullData,fullLayout:r._fullLayout};if(o===1&&t.titleclick){if(I1.triggerHandler(r,"plotly_legendtitleclick",u)===!1)return;t._titleClickTimeout=setTimeout(function(){r._fullLayout&&ID(r,t,t.titleclick)},i)}else o===2&&(t._titleClickTimeout&&clearTimeout(t._titleClickTimeout),r._legendMouseDownTime=0,I1.triggerHandler(r,"plotly_legendtitledoubleclick",u)!==!1&&t.titledoubleclick&&ID(r,t,t.titledoubleclick))}))}function N1(e,r,t,a,n){a._inHover&&e.attr("data-notex",Jl.isPureTex(e.text())?null:!0),Jl.convertToTspans(e,t,function(){ave(r,t,a,n)})}function ave(e,r,t,a){var n=e.data()[0][0],i=n&&n.trace.showlegend;if(Array.isArray(i)&&(i=i[n.i]!==!1),!t._inHover&&n&&!i){e.remove();return}var l=e.select("g[class*=math-group]"),o=l.node(),s=nf.getId(t);t||(t=r._fullLayout[s]);var u=t.borderwidth,f;a===tf?f=t.title.font:n.groupTitle?f=n.groupTitle.font:f=t.font;var c=f.size*GD,v,h;if(o){var p=sa.bBox(o);v=p.height,h=p.width,a===tf?sa.setTranslate(l,u,u+v*.75):sa.setTranslate(l,0,v*.25)}else{var m="."+s+(a===tf?"title":"")+"text",y=e.select(m),x=Jl.lineCount(y),_=y.node();if(v=c*x,h=_?sa.bBox(_).width:0,a===tf)t.title.side==="left"&&(h+=It.itemGap*2),Jl.positionText(y,u+It.titlePad,u+c);else{var w=It.itemGap*2+t.indentation+t.itemwidth;n.groupTitle&&(w=It.itemGap,h-=t.indentation+t.itemwidth),Jl.positionText(y,w,-c*((x-1)/2-.3))}}if(a===tf)t._titleWidth=h,t._titleHeight=v;else{n.lineHeight=c;let b=It.itemMinHeight+t.itemheight-It.dfltFillHeight;n.height=Math.max(v,It.itemMinHeight,b)+It.itemHeightPad,n.width=h}}function nve(e){var r=0,t=0,a=e.title.side;return a&&(a.indexOf("left")!==-1&&(r=e._titleWidth),a.indexOf("top")!==-1&&(t=e._titleHeight)),[r,t]}function ive(e,r,t,a,n){var i=e._fullLayout,l=nf.getId(a);a||(a=i[l]);var o=i._size,s=nf.isVertical(a),u=nf.isGrouped(a),f=a.entrywidthmode==="fraction",c=a.borderwidth,v=2*c,h=It.itemGap,p=a.indentation+a.itemwidth+h*2,m=2*(c+h),y=H1(a),x=a.y<0||a.y===0&&y==="top",_=a.y>1||a.y===1&&y==="bottom",w=a.tracegroupgap,b={};let{orientation:M,yref:A}=a,{maxheight:k}=a,S=x||_||M!=="v"||A!=="paper";k||(k=S?.5:1);let D=S?i.height:o.h;a._maxHeight=Math.max(k>1?k:k*D,30);var P=0;a._width=0,a._height=0;var R=nve(a);if(s)t.each(function(qe){var ke=qe[0].height;sa.setTranslate(this,c+R[0],c+R[1]+a._height+ke/2+h),a._height+=ke,a._width=Math.max(a._width,qe[0].width)}),P=p+a._width,a._width+=h+p+v,a._height+=m,u&&(r.each(function(qe,ke){sa.setTranslate(this,0,ke*a.tracegroupgap)}),a._height+=(a._lgroupsLength-1)*a.tracegroupgap);else{var F=B1(a),B=a.x<0||a.x===0&&F==="right",H=a.x>1||a.x===1&&F==="left",N=_||x,Y=i.width/2;a._maxWidth=Math.max(B?N&&F==="left"?o.l+o.w:Y:H?N&&F==="right"?o.r+o.w:Y:o.w,2*p);var O=0,V=0;t.each(function(qe){var ke=F1(qe,a,p);O=Math.max(O,ke),V+=ke}),P=null;var X=0;if(u){var W=0,U=0,$=0;r.each(function(){var qe=0,ke=0;mn.select(this).selectAll("g.traces").each(function(Ce){var ze=F1(Ce,a,p),Ae=Ce[0].height;sa.setTranslate(this,R[0],R[1]+c+h+Ae/2+ke),ke+=Ae,qe=Math.max(qe,ze),b[Ce[0].trace.legendgroup]=qe});var Le=qe+h;U>0&&Le+c+U>a._maxWidth?(X=Math.max(X,U),U=0,$+=W+w,W=ke):W=Math.max(W,ke),sa.setTranslate(this,U,$),U+=Le}),a._width=Math.max(X,U)+c,a._height=$+W+m}else{var re=t.size(),se=V+v+(re-1)*h=a._maxWidth&&(X=Math.max(X,ie),K=0,me+=oe,a._height+=oe,oe=0),sa.setTranslate(this,R[0]+c+K,R[1]+c+me+ke/2+h),ie=K+Le+h,K+=Ce,oe=Math.max(oe,ke)}),se?(a._width=K+v,a._height=oe+m):(a._width=Math.max(X,ie)+v,a._height+=oe+m)}}a._width=Math.ceil(Math.max(a._width+R[0],a._titleWidth+2*(c+It.titlePad))),a._height=Math.ceil(Math.max(a._height+R[1],a._titleHeight+2*(c+It.itemGap))),a._effHeight=Math.min(a._height,a._maxHeight);var Me=e._context.edits,ue=Me.legendText||Me.legendPosition;if(t.each(function(qe){var ke=mn.select(this).select("."+l+"toggle"),Le=qe[0].height,Ce=qe[0].trace.legendgroup,ze=F1(qe,a,p);u&&Ce!==""&&(ze=b[Ce]);var Ae=ue?p:P||ze;!s&&!f&&(Ae+=h/2),sa.setRect(ke,0,-Le/2,Ae,Le)}),a._inHover){let qe=a._width-v-h-R[0];t.each(function(ke){ke[0].textAlign==="right"&&mn.select(this).select("."+l+"text").attr("text-anchor","end").call(Jl.positionText,qe)})}var ce=n.select("."+l+"titletext");ce.node()&&Qce(ce,a,c);var Te=n.select("."+l+"titletoggle");if(Te.size()&&ce.node()){var Ne=ce.attr("x")||0,ge=It.titlePad;sa.setRect(Te,Ne-ge,c,a._titleWidth+2*ge,a._titleHeight+2*ge)}}function lve(e,r,t,a){var n=e._fullLayout,i=n[r],l=B1(i),o=H1(i),s=i.xref==="paper",u=i.yref==="paper";e._fullLayout._reservedMargin[r]={};var f=i.y<.5?"b":"t",c=i.x<.5?"l":"r",v={r:n.width-t,l:t+i._width,b:n.height-a,t:a+i._effHeight};if(s&&u)return Rb.autoMargin(e,r,{x:i.x,y:i.y,l:i._width*af[l],r:i._width*BD[l],b:i._effHeight*BD[o],t:i._effHeight*af[o]});s?e._fullLayout._reservedMargin[r][f]=v[f]:u||i.orientation==="v"?e._fullLayout._reservedMargin[r][c]=v[c]:e._fullLayout._reservedMargin[r][f]=v[f]}function B1(e){return oa.isRightAnchor(e)?"right":oa.isCenterAnchor(e)?"center":"left"}function H1(e){return oa.isBottomAnchor(e)?"bottom":oa.isMiddleAnchor(e)?"middle":"top"}});var Ob=G(Hb=>{"use strict";var Kl=Er(),$l=Gr(),Bt=Se(),ove=Bt.pushUnique,Nb=Bt.strTranslate,sve=Bt.strRotate,uve=nv(),zt=ba(),fve=gD(),Ml=$r(),da=kr(),O1=Ji(),Al=Qr(),cve=(La(),Fe(ka)).zindexSeparator,fu=Ar(),ei=Wi(),cu=(qc(),Fe(Sc)),vve=wb(),dve=Fb(),eP=cu.YANGLE,Bb=Math.PI*eP/180,hve=1/Math.sin(Bb),pve=Math.cos(Bb),mve=Math.sin(Bb),St=cu.HOVERARROWSIZE,Xr=cu.HOVERTEXTPAD,XD={box:!0,ohlc:!0,violin:!0,candlestick:!0},yve={scatter:!0,scattergl:!0,splom:!0};function WD(e,r){return e.distance-r.distance}Hb.hover=function(r,t,a,n){r=Bt.getGraphDiv(r);var i=t.target;Bt.throttle(r._fullLayout._uid+cu.HOVERID,cu.HOVERMINTIME,function(){xve(r,t,a,n,i)})};Hb.loneHover=function(r,t){var a=!0;Array.isArray(r)||(a=!1,r=[r]);var n=t.gd,i=nP(n),l=iP(n),o=r.map(function(p){var m=p._x0||p.x0||p.x||0,y=p._x1||p.x1||p.x||0,x=p._y0||p.y0||p.y||0,_=p._y1||p.y1||p.y||0,w=p.eventData;if(w){var b=Math.min(m,y),M=Math.max(m,y),A=Math.min(x,_),k=Math.max(x,_),S=p.trace;if(fu.traceIs(S,"gl3d")){var D=n._fullLayout[S.scene]._scene.container,P=D.offsetLeft,R=D.offsetTop;b+=P,M+=P,A+=R,k+=R}w.bbox={x0:b+l,x1:M+l,y0:A+i,y1:k+i},w.xPixel=(m+y)/2,w.yPixel=(x+_)/2,t.inOut_bbox&&t.inOut_bbox.push(w.bbox)}else w=!1;return{color:p.color||da.defaultLine,x0:p.x0||p.x||0,x1:p.x1||p.x||0,y0:p.y0||p.y||0,y1:p.y1||p.y||0,xLabel:p.xLabel,yLabel:p.yLabel,zLabel:p.zLabel,text:p.text,name:p.name,idealAlign:p.idealAlign,borderColor:p.borderColor,fontFamily:p.fontFamily,fontSize:p.fontSize,fontColor:p.fontColor,fontWeight:p.fontWeight,fontStyle:p.fontStyle,fontVariant:p.fontVariant,nameLength:p.nameLength,textAlign:p.textAlign,trace:p.trace||{index:0,hoverinfo:""},xa:{_offset:0},ya:{_offset:0},index:0,hovertemplate:p.hovertemplate||!1,hovertemplateLabels:p.hovertemplateLabels||!1,eventData:w}}),s=!1,u=tP(o,{gd:n,hovermode:"closest",rotateLabels:s,bgColor:t.bgColor||da.background,container:Kl.select(t.container),outerContainer:t.outerContainer||t.container}),f=u.hoverLabels;function c(){var p=5,m=0,y=0;f.sort(function(x,_){return x.y0-_.y0}).each(function(x,_){var w=x.y0-x.by/2;w-pS[0]._length||ke<0||ke>D[0]._length)return O1.unhoverRaw(e,r)}if(r.pointerX=qe+S[0]._offset,r.pointerY=ke+D[0]._offset,"xval"in r?O=ei.flat(i,r.xval):O=ei.p2c(S,qe),"yval"in r?V=ei.flat(i,r.yval):V=ei.p2c(D,ke),e._hoverPointerX=r.pointerX,e._hoverPointerY=r.pointerY,!$l(O[0])||!$l(V[0]))return Bt.warn("Fx.hover failed",r,e),O1.unhoverRaw(e,r)}o.clickanywhere&&(e._hoverXVals=O,e._hoverYVals=V,e._hoverXAxes=S,e._hoverYAxes=D);var ze=1/0;function Ae(ir,it){for(W=0;WMe&&(N.splice(0,Me),ze=N[0].distance),fu.traceIs($,"ternary")&&H!==0){let ca=ie.subplot;if(["aaxis","baxis","caxis"].some(Ra=>ca[Ra].showspikes&&ca[Ra].spikesnap!=="hovered data")){let Ra=dt==null?void 0:dt[0];if(!Number.isFinite(Ra==null?void 0:Ra.spikeDistance)){let Ts=Bt.extendFlat({},ie,{distance:H,index:!1}),za=$._module.hoverPoints(Ts,K,me,"closest");Ra=za&&za[0]}let mo=ce[re];Ra&&Ra.index!==void 0&&Ra.index!==!1&&Ra.spikeDistance<=H&&(!mo||Ra.spikeDistanceht.spikeDistance)&&(ue.vLinePoint=ht))}var cl=lt.filter(function(ca){return ca.ya.showspikes&&ca.ya.spikesnap!=="hovered data"});if(cl.length){var oi=cl[0];$l(oi.x0)&&$l(oi.y0)&&(ht=Qe(oi),(!ue.hLinePoint||ue.hLinePoint.spikeDistance>ht.spikeDistance)&&(ue.hLinePoint=ht))}}}}}Ae();function Ue(){if(o._hoverlayer.selectAll(".ternary-spikes").remove(),H!==0)for(let ir=0;irPt.trace.subplot===it&&Pt.index!==void 0&&Pt.index!==!1&&Pt.spikeDistance<=H);Jr.drawSpikelines(dt,ce[it],O&&O[ir],V&&V[ir])}}}function $e(ir,it,Jr){for(var dt=null,Pt=1/0,Ea,lt=0;ltir.trace.index===Be.trace.index):N=[Be];var Ze=N.length,Ke=QD("x",Be,o),_r=QD("y",Be,o);Ae(Ke,_r);var br=[],Pe={},Je=0,Ee=function(ir){var it=XD[ir.trace.type]?rP(ir):ir.trace.index;if(!Pe[it])Je++,Pe[it]=Je,br.push(ir);else{var Jr=Pe[it]-1,dt=br[Jr];Jr>0&&Math.abs(ir.distance)Ze-1;je--)Ee(N[je]);N=br,te()}var dr=e._hoverdata,hr=[],pr=nP(e),ae=iP(e);for(let ir of N){var pe=ei.makeEventData(ir,ir.trace,ir.cd);if(ir.hovertemplate!==!1){var Re=!1;ir.cd[ir.index]&&ir.cd[ir.index].ht&&(Re=ir.cd[ir.index].ht),ir.hovertemplate=Re||ir.trace.hovertemplate||!1}if(ir.xa&&ir.ya){var Oe=ir.x0+ir.xa._offset,Zr=ir.x1+ir.xa._offset,vt=ir.y0+ir.ya._offset,Dt=ir.y1+ir.ya._offset,Ot=Math.min(Oe,Zr),ea=Math.max(Oe,Zr),Wt=Math.min(vt,Dt),Qa=Math.max(vt,Dt);pe.bbox={x0:Ot+ae,x1:ea+ae,y0:Wt+pr,y1:Qa+pr},pe.xPixel=(Oe+Zr)/2,pe.yPixel=(vt+Dt)/2}ir.eventData=[pe],hr.push(pe)}e._hoverdata=hr;var wt=h==="y"&&(Y.length>1||N.length>1)||h==="closest"&&Te&&N.length>1,Zt=da.combine(o.plot_bgcolor||da.background,o.paper_bgcolor),ra=tP(N,{gd:e,hovermode:h,rotateLabels:wt,bgColor:Zt,container:o._hoverlayer,outerContainer:o._paper.node(),commonLabelOpts:o.hoverlabel,hoverdistance:o.hoverdistance}),ha=ra.hoverLabels;if(ei.isUnifiedHover(h)||(JD(ha,wt,o,ra.commonLabelBoundingBox),G1(ha,wt,o._invScaleX,o._invScaleY),ra.mathjaxPromise&&ra.mathjaxPromise.then(function(){e._hoverdata===hr&&(JD(ha,wt,o,ra.commonLabelBoundingBox),G1(ha,wt,o._invScaleX,o._invScaleY),ha.each(function(){var ir=Kl.select(this);zt.repositionMathGroup(ir.select("text.nums")),zt.repositionMathGroup(ir.select("text.name"))}))})),n&&n.tagName){var en=fu.getComponentMethod("annotations","hasClickToShow")(e,hr);fve(Kl.select(n),en?"pointer":"")}var fa=Tve(e,r,dr);if(!n||a||!fa&&!o.hoveranywhere)return;dr&&fa&&e.emit("plotly_unhover",{event:r,points:dr}),pa(e._hoverdata);function pa(ir){e.emit("plotly_hover",{event:r,points:ir,xaxes:S,yaxes:D,xvals:ei.c2dApply(S,O),yvals:ei.c2dApply(D,V),xPixel:r.pointerX,yPixel:r.pointerY})}}function rP(e){return[e.trace.index,e.index,e.x0,e.y0,e.name,e.attr,e.xa?e.xa._id:"",e.ya?e.ya._id:""].join(",")}var bve=/([\s\S]*)<\/extra>/;function Ib(e,r){return Y1(e,zt.getMathOrTextNode(r))}function tP(e,r){var t=r.gd,a=t._fullLayout,n=r.hovermode,i=r.rotateLabels,l=r.bgColor,o=r.container,s=r.outerContainer,u=r.commonLabelOpts||{};if(e.length===0)return[[]];var f=[],c=r.fontFamily||cu.HOVERFONT,v=r.fontSize||cu.HOVERFONTSIZE,h=r.fontWeight||a.font.weight,p=r.fontStyle||a.font.style,m=r.fontVariant||a.font.variant,y=r.fontTextcase||a.font.textcase,x=r.fontLineposition||a.font.lineposition,_=r.fontShadow||a.font.shadow,w=e[0],b=w.xa,M=w.ya,A=n.charAt(0),k=A+"Label",S=w[k];if(S===void 0&&b.type==="multicategory")for(var D=0;Da.width-pr&&(ae=a.width-pr),ye.attr("d","M"+(je-ae)+",0L"+(je-ae+St)+","+hr+St+"H"+pr+"v"+hr+(Xr*2+Ee.height)+"H"+-pr+"V"+hr+St+"H"+(je-ae-St)+"Z"),je=ae,W.minX=je-pr,W.maxX=je+pr,b.side==="top"?(W.minY=dr-(Xr*2+Ee.height),W.maxY=dr-Xr):(W.minY=dr+Xr,W.maxY=dr+(Xr*2+Ee.height))}else{var pe,Re,Oe;M.side==="right"?(pe="start",Re=1,Oe="",je=b._offset+b._length):(pe="end",Re=-1,Oe="-",je=b._offset),dr=M._offset+(w.y0+w.y1)/2,Ie.attr("text-anchor",pe),ye.attr("d","M0,0L"+Oe+St+","+St+"V"+(Xr+Ee.height/2)+"h"+Oe+(Xr*2+Ee.width)+"V-"+(Xr+Ee.height/2)+"H"+Oe+St+"V-"+St+"Z"),W.minY=dr-(Xr+Ee.height/2),W.maxY=dr+(Xr+Ee.height/2),M.side==="right"?(W.minX=je+St,W.maxX=je+St+(Xr*2+Ee.width)):(W.minX=je-St-(Xr*2+Ee.width),W.maxX=je-St);var Zr=Ee.height/2,vt=R-Ee.top-Zr,Dt="clip"+a._uid+"commonlabel"+M._id,Ot;if(jeye.hoverinfo!=="none");if(le.length===0)return[];var U=a.hoverlabel,$=U.font,re=le[0],se=((n==="x unified"?re.xa:re.ya).unifiedhovertitle||{}).text,oe=se?Bt.hovertemplateString({data:n==="x unified"?[{xa:re.xa,x:re.xVal}]:[{ya:re.ya,y:re.yVal}],fallback:re.trace.hovertemplatefallback,locale:a._d3locale,template:se}):S,K={showlegend:!0,legend:{title:{text:oe,font:$},font:$,bgcolor:U.bgcolor,bordercolor:U.bordercolor,borderwidth:1,tracegroupgap:7,traceorder:a.legend?a.legend.traceorder:void 0,orientation:"v"}},me={font:$};vve(K,me,t._fullData);var ie=me.legend;ie.entries=[];for(var Me=0;Me=0?Ve=He:tr+Le=0?Ve=tr:te+Le=0?cr=Qe:De+Ce=0?cr=De:xe+Ce=0,(le.idealAlign==="top"||!ra)&&ha?(Oe-=vt/2,le.anchor="end"):ra?(Oe+=vt/2,le.anchor="start"):le.anchor="middle",le.crossPos=Oe;else{if(le.pos=Oe,ra=Re+Zr/2+Zt<=F,ha=Re-Zr/2-Zt>=0,(le.idealAlign==="left"||!ra)&&ha)Re-=Zr/2,le.anchor="end";else if(ra)Re+=Zr/2,le.anchor="start";else{le.anchor="middle";var en=Zt/2,fa=Re+en-F,pa=Re-en;fa>0&&(Re-=fa),pa<0&&(Re+=-pa)}le.crossPos=Re}pr.attr("text-anchor",le.anchor),Dt&&ae.attr("text-anchor",le.anchor),ye.attr("transform",Nb(Re,Oe)+(i?sve(eP):""))}}),{hoverLabels:mr,commonLabelBoundingBox:W,mathjaxPromise:f.length?Promise.all(f):null}}function ZD(e,r,t,a,n,i){var c,v;var l="",o="";e.nameOverride!==void 0&&(e.name=e.nameOverride),e.name&&(e.trace._meta&&(e.name=Bt.templateString(e.name,e.trace._meta)),l=jD(e.name,e.nameLength));var s=t.charAt(0),u=s==="x"?"y":"x";e.zLabel!==void 0?(e.xLabel!==void 0&&(o+="x: "+e.xLabel+"
"),e.yLabel!==void 0&&(o+="y: "+e.yLabel+"
"),e.trace.type!=="choropleth"&&e.trace.type!=="choroplethmap"&&(o+=(o?"z: ":"")+e.zLabel)):r&&e[s+"Label"]===n?o=e[u+"Label"]||"":e.xLabel===void 0?e.yLabel!==void 0&&e.trace.type!=="scattercarpet"&&(o=e.yLabel):e.yLabel===void 0?o=e.xLabel:o="("+e.xLabel+", "+e.yLabel+")",(e.text||e.text===0)&&!Array.isArray(e.text)&&(o+=(o?"
":"")+e.text),e.extraText!==void 0&&(o+=(o?"
":"")+e.extraText),i&&o===""&&!e.hovertemplate&&(l===""&&i.remove(),o=l),(v=(c=e.trace)==null?void 0:c.hoverlabel)!=null&&v.split&&(e.hovertemplate="");let{hovertemplate:f=!1}=e;if(f){let h=e.hovertemplateLabels||e;e[s+"Label"]!==n&&(h[s+"other"]=h[s+"Val"],h[s+"otherLabel"]=h[s+"Label"]),o=Bt.hovertemplateString({data:[e.eventData[0]||{},e.trace._meta],fallback:e.trace.hovertemplatefallback,labels:h,locale:a._d3locale,template:f}),o=o.replace(bve,(p,m)=>(l=jD(m,e.nameLength),""))}return[o,l]}function JD(e,r,t,a){var n=r?"xa":"ya",i=r?"ya":"xa",l=0,o=1,s=e.size(),u=new Array(s),f=0,c=a.minX,v=a.maxX,h=a.minY,p=a.maxY,m=function(Y){return Y*t._invScaleX},y=function(Y){return Y*t._invScaleY};e.each(function(Y){var O=Y[n],V=Y[i],X=O._id.charAt(0)==="x",W=O.range;f===0&&W&&W[0]>W[1]!==X&&(o=-1);var U=0,$=X?t.width:t.height;if(t.hovermode==="x"||t.hovermode==="y"){var re=aP(Y,r),se=Y.anchor,oe=se==="end"?-1:1,K,me;if(se==="middle")K=Y.crossPos+(X?y(re.y-Y.by/2):m(Y.bx/2+Y.tx2width/2)),me=K+(X?y(Y.by):m(Y.bx));else if(X)K=Y.crossPos+y(St+re.y)-y(Y.by/2-St),me=K+y(Y.by);else{var ie=m(oe*St+re.x),Me=ie+m(oe*Y.bx);K=Y.crossPos+Math.min(ie,Me),me=Y.crossPos+Math.max(ie,Me)}X?h!==void 0&&p!==void 0&&Math.min(me,p)-Math.max(K,h)>1&&(V.side==="left"?(U=V._mainLinePosition,$=t.width):$=V._mainLinePosition):c!==void 0&&v!==void 0&&Math.min(me,v)-Math.max(K,c)>1&&(V.side==="top"?(U=V._mainLinePosition,$=t.height):$=V._mainLinePosition)}u[f++]=[{datum:Y,traceIndex:Y.trace.index,dp:0,pos:Y.pos,posref:Y.posref,size:Y.by*(X?hve:1)/2,pmin:U,pmax:$}]}),u.sort(function(Y,O){return Y[0].posref-O[0].posref||o*(O[0].traceIndex-Y[0].traceIndex)});var x,_,w,b,M,A,k;function S(Y){var O=Y[0],V=Y[Y.length-1];if(_=O.pmin-O.pos-O.dp+O.size,w=V.pos+V.dp+V.size-O.pmax,_>.01){for(M=Y.length-1;M>=0;M--)Y[M].dp+=_;x=!1}if(!(w<.01)){if(_<-.01){for(M=Y.length-1;M>=0;M--)Y[M].dp-=w;x=!1}if(x){var X=0;for(b=0;bO.pmax&&X++;for(b=Y.length-1;b>=0&&!(X<=0);b--)A=Y[b],A.pos>O.pmax-1&&(A.del=!0,X--);for(b=0;b=0;M--)Y[M].dp-=w;for(b=Y.length-1;b>=0&&!(X<=0);b--)A=Y[b],A.pos+A.dp+A.size>O.pmax&&(A.del=!0,X--)}}}for(;!x&&l<=s;){for(l++,x=!0,b=0;b.01){for(M=P.length-1;M>=0;M--)P[M].dp+=_;for(D.push.apply(D,P),u.splice(b+1,1),k=0,M=D.length-1;M>=0;M--)k+=D[M].dp;for(w=k/D.length,M=D.length-1;M>=0;M--)D[M].dp-=w;x=!1}else b++}u.forEach(S)}for(b=u.length-1;b>=0;b--){var B=u[b];for(M=B.length-1;M>=0;M--){var H=B[M],N=H.datum;N.offset=H.dp,N.del=H.del}}}function aP(e,r){var t=0,a=e.offset;return r&&(a*=-mve,t=e.offset*pve),{x:t,y:a}}function _ve(e){var r={start:1,end:-1,middle:0}[e.anchor],t=r*(St+Xr),a=t+r*(e.txwidth+Xr),n=e.anchor==="middle";return n&&(t-=e.tx2width/2,a+=e.txwidth/2+Xr),{alignShift:r,textShiftX:t,text2ShiftX:a}}function G1(e,r,t,a){var n=function(l){return l*t},i=function(l){return l*a};e.each(function(l){var o=Kl.select(this);if(l.del)return o.remove();var s=o.select("text.nums"),u=l.anchor,f=u==="end"?-1:1,c=_ve(l),v=aP(l,r),h=v.x,p=v.y,m=u==="middle",y="hoverlabel"in l.trace?l.trace.hoverlabel.showarrow:!0,x;m?x="M-"+n(l.bx/2+l.tx2width/2)+","+i(p-l.by/2)+"h"+n(l.bx)+"v"+i(l.by)+"h-"+n(l.bx)+"Z":y?x="M0,0L"+n(f*St+h)+","+i(St+p)+"v"+i(l.by/2-St)+"h"+n(f*l.bx)+"v-"+i(l.by)+"H"+n(f*St+h)+"V"+i(p-St)+"Z":x="M"+n(f*St+h)+","+i(p-l.by/2)+"h"+n(f*l.bx)+"v"+i(l.by)+"h"+n(-f*l.bx)+"Z",o.select("path").attr("d",x);var _=h+c.textShiftX,w=p+l.ty0-l.by/2+Xr,b=l.textAlign||"auto";b!=="auto"&&(b==="left"&&u!=="start"?(s.attr("text-anchor","start"),_=m?-l.bx/2-l.tx2width/2+Xr:-l.bx-Xr):b==="right"&&u!=="end"&&(s.attr("text-anchor","end"),_=m?l.bx/2-l.tx2width/2-Xr:l.bx+Xr)),s.call(zt.positionText,n(_),i(w)),l.tx2width&&(o.select("text.name").call(zt.positionText,n(c.text2ShiftX+c.alignShift*Xr+h),i(p+l.ty0-l.by/2+Xr)),o.select("rect").call(Ml.setRect,n(c.text2ShiftX+(c.alignShift-1)*l.tx2width/2+h),i(p-l.by/2-1),n(l.tx2width),i(l.by+2)))})}function wve(e,r){var t=e.index,a=e.trace||{},n=e.cd[0],i=e.cd[t]||{};function l(v){return v||$l(v)&&v===0}var o=Array.isArray(t)?function(v,h){var p=Bt.castOption(n,t,v);return l(p)?p:Bt.extractOption({},a,"",h)}:function(v,h){return Bt.extractOption(i,a,v,h)};function s(v,h,p){var m=o(h,p);l(m)&&(e[v]=m)}if(s("hoverinfo","hi","hoverinfo"),s("bgcolor","hbg","hoverlabel.bgcolor"),s("borderColor","hbc","hoverlabel.bordercolor"),s("fontFamily","htf","hoverlabel.font.family"),s("fontSize","hts","hoverlabel.font.size"),s("fontColor","htc","hoverlabel.font.color"),s("fontWeight","htw","hoverlabel.font.weight"),s("fontStyle","hty","hoverlabel.font.style"),s("fontVariant","htv","hoverlabel.font.variant"),s("nameLength","hnl","hoverlabel.namelength"),s("textAlign","hta","hoverlabel.align"),e.posref=r==="y"||r==="closest"&&a.orientation==="h"?e.xa._offset+(e.x0+e.x1)/2:e.ya._offset+(e.y0+e.y1)/2,e.x0=Bt.constrain(e.x0,0,e.xa._length),e.x1=Bt.constrain(e.x1,0,e.xa._length),e.y0=Bt.constrain(e.y0,0,e.ya._length),e.y1=Bt.constrain(e.y1,0,e.ya._length),e.xLabelVal!==void 0&&(e.xLabel="xLabel"in e?e.xLabel:Al.hoverLabelText(e.xa,e.xLabelVal,a.xhoverformat),e.xVal=e.xa.c2d(e.xLabelVal)),e.yLabelVal!==void 0&&(e.yLabel="yLabel"in e?e.yLabel:Al.hoverLabelText(e.ya,e.yLabelVal,a.yhoverformat),e.yVal=e.ya.c2d(e.yLabelVal)),e.zLabelVal!==void 0&&e.zLabel===void 0&&(e.zLabel=String(e.zLabelVal)),!isNaN(e.xerr)&&!(e.xa.type==="log"&&e.xerr<=0)){var u=Al.tickText(e.xa,e.xa.c2l(e.xerr),"hover").text;e.xerrneg!==void 0?e.xLabel+=" +"+u+" / -"+Al.tickText(e.xa,e.xa.c2l(e.xerrneg),"hover").text:e.xLabel+=" \xB1 "+u,r==="x"&&(e.distance+=1)}if(!isNaN(e.yerr)&&!(e.ya.type==="log"&&e.yerr<=0)){var f=Al.tickText(e.ya,e.ya.c2l(e.yerr),"hover").text;e.yerrneg!==void 0?e.yLabel+=" +"+f+" / -"+Al.tickText(e.ya,e.ya.c2l(e.yerrneg),"hover").text:e.yLabel+=" \xB1 "+f,r==="y"&&(e.distance+=1)}var c=e.hoverinfo||e.trace.hoverinfo;return c&&c!=="all"&&(c=Array.isArray(c)?c:c.split("+"),c.indexOf("x")===-1&&(e.xLabel=void 0),c.indexOf("y")===-1&&(e.yLabel=void 0),c.indexOf("z")===-1&&(e.zLabel=void 0),c.indexOf("text")===-1&&(e.text=void 0),c.indexOf("name")===-1&&(e.name=void 0)),e}function $D(e,r,t){var a=t.container,n=t.fullLayout,i=n._size,l=t.event,o=!!r.hLinePoint,s=!!r.vLinePoint,u,f;if(a.selectAll(".spikeline").remove(),!!(s||o)){var c=da.combine(n.plot_bgcolor,n.paper_bgcolor);if(o){var v=r.hLinePoint,h,p;u=v&&v.xa,f=v&&v.ya;var m=f.spikesnap;m==="cursor"?(h=l.pointerX,p=l.pointerY):(h=u._offset+v.x,p=f._offset+v.y);var y=da.wcagContrast(v.color,c)<1.5?da.contrast(c):v.color,x=f.spikemode,_=f.spikethickness,w=f.spikecolor||y,b=Al.getPxPosition(e,f),M,A;if(x.indexOf("toaxis")!==-1||x.indexOf("across")!==-1){if(x.indexOf("toaxis")!==-1&&(M=b,A=h),x.indexOf("across")!==-1){var k=f._counterDomainMin,S=f._counterDomainMax;f.anchor==="free"&&(k=Math.min(k,f.position),S=Math.max(S,f.position)),M=i.l+k*i.w,A=i.l+S*i.w}a.insert("line",":first-child").attr({x1:M,x2:A,y1:p,y2:p,"stroke-width":_,stroke:w,"stroke-dasharray":Ml.dashStyle(f.spikedash,_)}).classed("spikeline",!0).classed("crisp",!0),a.insert("line",":first-child").attr({x1:M,x2:A,y1:p,y2:p,"stroke-width":_+2,stroke:c}).classed("spikeline",!0).classed("crisp",!0)}x.indexOf("marker")!==-1&&a.insert("circle",":first-child").attr({cx:b+(f.side!=="right"?_:-_),cy:p,r:_,fill:w}).classed("spikeline",!0)}if(s){var D=r.vLinePoint,P,R;u=D&&D.xa,f=D&&D.ya;var F=u.spikesnap;F==="cursor"?(P=l.pointerX,R=l.pointerY):(P=u._offset+D.x,R=f._offset+D.y);var B=da.wcagContrast(D.color,c)<1.5?da.contrast(c):D.color,H=u.spikemode,N=u.spikethickness,Y=u.spikecolor||B,O=Al.getPxPosition(e,u),V,X;if(H.indexOf("toaxis")!==-1||H.indexOf("across")!==-1){if(H.indexOf("toaxis")!==-1&&(V=O,X=R),H.indexOf("across")!==-1){var W=u._counterDomainMin,U=u._counterDomainMax;u.anchor==="free"&&(W=Math.min(W,u.position),U=Math.max(U,u.position)),V=i.t+(1-U)*i.h,X=i.t+(1-W)*i.h}a.insert("line",":first-child").attr({x1:P,x2:P,y1:V,y2:X,"stroke-width":N,stroke:Y,"stroke-dasharray":Ml.dashStyle(u.spikedash,N)}).classed("spikeline",!0).classed("crisp",!0),a.insert("line",":first-child").attr({x1:P,x2:P,y1:V,y2:X,"stroke-width":N+2,stroke:c}).classed("spikeline",!0).classed("crisp",!0)}H.indexOf("marker")!==-1&&a.insert("circle",":first-child").attr({cx:P,cy:O-(u.side!=="top"?N:-N),r:N,fill:Y}).classed("spikeline",!0)}}}function Tve(e,r,t){if(!t||t.length!==e._hoverdata.length)return!0;for(var a=t.length-1;a>=0;a--){var n=t[a],i=e._hoverdata[a];if(n.curveNumber!==i.curveNumber||String(n.pointNumber)!==String(i.pointNumber)||String(n.pointNumbers)!==String(i.pointNumbers)||n.binNumber!==i.binNumber)return!0}return!1}function KD(e,r){return!r||r.vLinePoint!==e._spikepoints.vLinePoint||r.hLinePoint!==e._spikepoints.hLinePoint}function jD(e,r){return zt.plainText(e||"",{len:r,allowedTags:["br","sub","sup","b","i","em","s","u"]})}function Mve(e,r){for(var t=r.charAt(0),a=[],n=[],i=[],l=0;le.offsetTop+e.clientTop,iP=e=>e.offsetLeft+e.clientLeft;function Y1(e,r){var t=e._fullLayout,a=r.getBoundingClientRect(),n=a.left,i=a.top,l=n+a.width,o=i+a.height,s=Bt.apply3DTransform(t._invTransform)(n,i),u=Bt.apply3DTransform(t._invTransform)(l,o),f=s[0],c=s[1],v=u[0],h=u[1];return{x:f,y:c,width:v-f,height:h-c,top:Math.min(c,h),left:Math.min(f,v),right:Math.max(f,v),bottom:Math.max(c,h)}}});var U1=G((Mke,lP)=>{"use strict";var Ave=Se(),kve=kr(),Lve=Wi().isUnifiedHover;lP.exports=function(r,t,a,n){n=n||{};var i=t.legend;function l(o){n.font[o]||(n.font[o]=i?t.legend.font[o]:t.font[o])}t&&Lve(t.hovermode)&&(n.font||(n.font={}),l("size"),l("family"),l("color"),l("weight"),l("style"),l("variant"),i?(n.bgcolor||(n.bgcolor=kve.combine(t.legend.bgcolor,t.paper_bgcolor)),n.bordercolor||(n.bordercolor=t.legend.bordercolor)):n.bgcolor||(n.bgcolor=t.paper_bgcolor)),a("hoverlabel.bgcolor",n.bgcolor),a("hoverlabel.bordercolor",n.bordercolor),a("hoverlabel.namelength",n.namelength),a("hoverlabel.showarrow",n.showarrow),Ave.coerceFont(a,"hoverlabel.font",n.font),a("hoverlabel.align",n.align)}});var sP=G((Ake,oP)=>{"use strict";var Cve=Se(),Sve=U1(),qve=p0();oP.exports=function(r,t){function a(n,i){return Cve.coerce(r,t,qve,n,i)}Sve(r,t,a)}});var cP=G((kke,fP)=>{"use strict";var uP=Se(),Dve=Ec(),Pve=U1();fP.exports=function(r,t,a,n){function i(o,s){return uP.coerce(r,t,Dve,o,s)}var l=uP.extendFlat({},n.hoverlabel);t.hovertemplate&&(l.namelength=-1),Pve(r,t,i,l)}});var Yb=G((Lke,vP)=>{"use strict";var Eve=Se(),Rve=p0();vP.exports=function(r,t){function a(n,i){return t[n]!==void 0?t[n]:Eve.coerce(r,t,Rve,n,i)}return a("clickmode"),a("hoversubplots"),a("hoveranywhere"),a("clickanywhere"),a("hovermode")}});var pP=G((Cke,hP)=>{"use strict";var dP=Se(),zve=p0(),Fve=Yb(),Nve=U1();hP.exports=function(r,t){function a(u,f){return dP.coerce(r,t,zve,u,f)}var n=Fve(r,t);n&&(a("hoverdistance"),a("spikedistance"),n.indexOf("unified")!==-1&&a("hoversort"));var i=a("dragmode");i==="select"&&a("selectdirection");var l=t._has("map"),o=t._has("geo"),s=t._basePlotModules.length;t.dragmode==="zoom"&&((l||o)&&s===1||l&&o&&s===2)&&(t.dragmode="pan"),Nve(r,t,a),dP.coerceFont(a,"hoverlabel.grouptitlefont",t.hoverlabel.font)}});var gP=G((Ske,yP)=>{"use strict";var Gb=Se(),mP=Ar();yP.exports=function(r){var t=r.calcdata,a=r._fullLayout;function n(u){return function(f){return Gb.coerceHoverinfo({hoverinfo:f},{_module:u._module},a)}}for(var i=0;i{"use strict";var Bve=Ar(),xP=Wi(),Hve=Ob().hover;bP.exports=function(r,t,a){var n=Bve.getComponentMethod("annotations","onClick")(r,r._hoverdata),i=r._fullLayout;a!==void 0&&Hve(r,t,a,!0);function l(){var s,u,f,c,v,h;var o={points:r._hoverdata,event:t};(s=o.xaxes)!=null||(o.xaxes=r._hoverXAxes),(u=o.yaxes)!=null||(o.yaxes=r._hoverYAxes),(f=o.xvals)!=null||(o.xvals=r._hoverXVals&&xP.c2dApply(r._hoverXAxes,r._hoverXVals)),(c=o.yvals)!=null||(o.yvals=r._hoverYVals&&xP.c2dApply(r._hoverYAxes,r._hoverYVals)),(v=o.xPixel)!=null||(o.xPixel=r._hoverPointerX),(h=o.yPixel)!=null||(o.yPixel=r._hoverPointerY),r.emit("plotly_click",o)}(r._hoverdata||i.clickanywhere)&&t&&t.target&&(r._hoverdata||(r._hoverdata=[]),n&&n.then?n.then(l):l(),t.stopImmediatePropagation&&t.stopImmediatePropagation())}});var xi=G((Dke,MP)=>{"use strict";var Ove=Er(),V1=Se(),Yve=Ji(),Sv=Wi(),wP=p0(),TP=Ob();MP.exports={moduleType:"component",name:"fx",constants:(qc(),Fe(Sc)),schema:{layout:wP},attributes:Ec(),layoutAttributes:wP,supplyLayoutGlobalDefaults:sP(),supplyDefaults:cP(),supplyLayoutDefaults:pP(),calc:gP(),getDistanceFunction:Sv.getDistanceFunction,getClosest:Sv.getClosest,inbox:Sv.inbox,quadrature:Sv.quadrature,appendArrayPointValue:Sv.appendArrayPointValue,castHoverOption:Uve,castHoverinfo:Vve,hover:TP.hover,unhover:Yve.unhover,loneHover:TP.loneHover,loneUnhover:Gve,click:_P()};function Gve(e){var r=V1.isD3Selection(e)?e:Ove.select(e);r.selectAll("g.hovertext").remove(),r.selectAll(".spikeline").remove()}function Uve(e,r,t){return V1.castOption(e,r,"hoverlabel."+t)}function Vve(e,r,t){function a(n){return V1.coerceHoverinfo({hoverinfo:n},{_module:e._module},r)}return V1.castOption(e,t,"hoverinfo",a)}});var lf=G(jl=>{"use strict";jl.selectMode=function(e){return e==="lasso"||e==="select"};jl.drawMode=function(e){return e==="drawclosedpath"||e==="drawopenpath"||e==="drawline"||e==="drawrect"||e==="drawcircle"};jl.openMode=function(e){return e==="drawline"||e==="drawopenpath"};jl.rectMode=function(e){return e==="select"||e==="drawline"||e==="drawrect"||e==="drawcircle"};jl.freeMode=function(e){return e==="lasso"||e==="drawclosedpath"||e==="drawopenpath"};jl.selectingOrDrawing=function(e){return jl.freeMode(e)||jl.rectMode(e)}});var X1=G((Eke,AP)=>{"use strict";AP.exports=function(r){var t=r._fullLayout;t._glcanvas&&t._glcanvas.size()&&t._glcanvas.each(function(a){a.regl&&a.regl.clear({color:!0,depth:!0})})}});var W1=G((Rke,kP)=>{"use strict";kP.exports={undo:{width:857.1,height:1e3,path:"m857 350q0-87-34-166t-91-137-137-92-166-34q-96 0-183 41t-147 114q-4 6-4 13t5 11l76 77q6 5 14 5 9-1 13-7 41-53 100-82t126-29q58 0 110 23t92 61 61 91 22 111-22 111-61 91-92 61-110 23q-55 0-105-20t-90-57l77-77q17-16 8-38-10-23-33-23h-250q-15 0-25 11t-11 25v250q0 24 22 33 22 10 39-8l72-72q60 57 137 88t159 31q87 0 166-34t137-92 91-137 34-166z",transform:"matrix(1 0 0 -1 0 850)"},home:{width:928.6,height:1e3,path:"m786 296v-267q0-15-11-26t-25-10h-214v214h-143v-214h-214q-15 0-25 10t-11 26v267q0 1 0 2t0 2l321 264 321-264q1-1 1-4z m124 39l-34-41q-5-5-12-6h-2q-7 0-12 3l-386 322-386-322q-7-4-13-4-7 2-12 7l-35 41q-4 5-3 13t6 12l401 334q18 15 42 15t43-15l136-114v109q0 8 5 13t13 5h107q8 0 13-5t5-13v-227l122-102q5-5 6-12t-4-13z",transform:"matrix(1 0 0 -1 0 850)"},"camera-retro":{width:1e3,height:1e3,path:"m518 386q0 8-5 13t-13 5q-37 0-63-27t-26-63q0-8 5-13t13-5 12 5 5 13q0 23 16 38t38 16q8 0 13 5t5 13z m125-73q0-59-42-101t-101-42-101 42-42 101 42 101 101 42 101-42 42-101z m-572-320h858v71h-858v-71z m643 320q0 89-62 152t-152 62-151-62-63-152 63-151 151-63 152 63 62 151z m-571 358h214v72h-214v-72z m-72-107h858v143h-462l-36-71h-360v-72z m929 143v-714q0-30-21-51t-50-21h-858q-29 0-50 21t-21 51v714q0 30 21 51t50 21h858q29 0 50-21t21-51z",transform:"matrix(1 0 0 -1 0 850)"},curlybraces:{width:18,height:16,path:"M 9,4 C 7.354992,4 6,5.354992 6,7 V 9 C 6,9.2999997 5.8778068,9.8883542 5.5878906,10.291016 5.2979744,10.693677 4.9222213,11 4,11 a 1.0001,1.0001 0 0 0 0,2 c 0.2999997,0 0.8883542,0.122193 1.2910156,0.412109 C 5.693677,13.702026 6,14.077779 6,15 v 2 c 0,1.645008 1.354992,3 3,3 h 0.5 a 1,1 0 0 0 1,-1 1,1 0 0 0 -1,-1 H 9 C 8.4358712,18 8,17.564129 8,17 V 15 C 8,13.625876 7.3766799,12.602305 6.6113281,11.96875 6.8086352,11.794047 7.0679793,11.657537 7.2109375,11.458984 7.8210204,10.611647 8,9.6999993 8,9 V 7 C 8,6.4358712 8.4358712,6 9,6 h 0.5 a 1,1 0 0 0 1,-1 1,1 0 0 0 -1,-1 z m 5.5,0 a 1,1 0 0 0 -1,1 1,1 0 0 0 1,1 H 15 c 0.564129,0 1,0.4358712 1,1 v 2 c 0,0.6999993 0.17898,1.611647 0.789062,2.458984 0.142959,0.198553 0.402303,0.335063 0.59961,0.509766 C 16.62332,12.602305 16,13.625876 16,15 v 2 c 0,0.564129 -0.435871,1 -1,1 h -0.5 a 1,1 0 0 0 -1,1 1,1 0 0 0 1,1 H 15 c 1.645008,0 3,-1.354992 3,-3 v -2 c 0,-0.922221 0.306323,-1.297974 0.708984,-1.587891 C 19.111646,13.122193 19.7,13 20,13 a 1.0001,1.0001 0 0 0 0,-2 C 19.077779,11 18.702026,10.693677 18.412109,10.291016 18.122193,9.8883542 18,9.2999997 18,9 V 7 C 18,5.354992 16.645008,4 15,4 Z",transform:"translate(-3 -4)"},zoombox:{width:1e3,height:1e3,path:"m1000-25l-250 251c40 63 63 138 63 218 0 224-182 406-407 406-224 0-406-182-406-406s183-406 407-406c80 0 155 22 218 62l250-250 125 125z m-812 250l0 438 437 0 0-438-437 0z m62 375l313 0 0-312-313 0 0 312z",transform:"matrix(1 0 0 -1 0 850)"},pan:{width:1e3,height:1e3,path:"m1000 350l-187 188 0-125-250 0 0 250 125 0-188 187-187-187 125 0 0-250-250 0 0 125-188-188 186-187 0 125 252 0 0-250-125 0 187-188 188 188-125 0 0 250 250 0 0-126 187 188z",transform:"matrix(1 0 0 -1 0 850)"},zoom_plus:{width:875,height:1e3,path:"m1 787l0-875 875 0 0 875-875 0z m687-500l-187 0 0-187-125 0 0 187-188 0 0 125 188 0 0 187 125 0 0-187 187 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},zoom_minus:{width:875,height:1e3,path:"m0 788l0-876 875 0 0 876-875 0z m688-500l-500 0 0 125 500 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},autoscale:{width:1e3,height:1e3,path:"m250 850l-187 0-63 0 0-62 0-188 63 0 0 188 187 0 0 62z m688 0l-188 0 0-62 188 0 0-188 62 0 0 188 0 62-62 0z m-875-938l0 188-63 0 0-188 0-62 63 0 187 0 0 62-187 0z m875 188l0-188-188 0 0-62 188 0 62 0 0 62 0 188-62 0z m-125 188l-1 0-93-94-156 156 156 156 92-93 2 0 0 250-250 0 0-2 93-92-156-156-156 156 94 92 0 2-250 0 0-250 0 0 93 93 157-156-157-156-93 94 0 0 0-250 250 0 0 0-94 93 156 157 156-157-93-93 0 0 250 0 0 250z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_basic:{width:1500,height:1e3,path:"m375 725l0 0-375-375 375-374 0-1 1125 0 0 750-1125 0z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_compare:{width:1125,height:1e3,path:"m187 786l0 2-187-188 188-187 0 0 937 0 0 373-938 0z m0-499l0 1-187-188 188-188 0 0 937 0 0 376-938-1z",transform:"matrix(1 0 0 -1 0 850)"},plotlylogo:{width:1542,height:1e3,path:"m0-10h182v-140h-182v140z m228 146h183v-286h-183v286z m225 714h182v-1000h-182v1000z m225-285h182v-715h-182v715z m225 142h183v-857h-183v857z m231-428h182v-429h-182v429z m225-291h183v-138h-183v138z",transform:"matrix(1 0 0 -1 0 850)"},"z-axis":{width:1e3,height:1e3,path:"m833 5l-17 108v41l-130-65 130-66c0 0 0 38 0 39 0-1 36-14 39-25 4-15-6-22-16-30-15-12-39-16-56-20-90-22-187-23-279-23-261 0-341 34-353 59 3 60 228 110 228 110-140-8-351-35-351-116 0-120 293-142 474-142 155 0 477 22 477 142 0 50-74 79-163 96z m-374 94c-58-5-99-21-99-40 0-24 65-43 144-43 79 0 143 19 143 43 0 19-42 34-98 40v216h87l-132 135-133-135h88v-216z m167 515h-136v1c16 16 31 34 46 52l84 109v54h-230v-71h124v-1c-16-17-28-32-44-51l-89-114v-51h245v72z",transform:"matrix(1 0 0 -1 0 850)"},"3d_rotate":{width:1e3,height:1e3,path:"m922 660c-5 4-9 7-14 11-359 263-580-31-580-31l-102 28 58-400c0 1 1 1 2 2 118 108 351 249 351 249s-62 27-100 42c88 83 222 183 347 122 16-8 30-17 44-27-2 1-4 2-6 4z m36-329c0 0 64 229-88 296-62 27-124 14-175-11 157-78 225-208 249-266 8-19 11-31 11-31 2 5 6 15 11 32-5-13-8-20-8-20z m-775-239c70-31 117-50 198-32-121 80-199 346-199 346l-96-15-58-12c0 0 55-226 155-287z m603 133l-317-139c0 0 4-4 19-14 7-5 24-15 24-15s-177-147-389 4c235-287 536-112 536-112l31-22 100 299-4-1z m-298-153c6-4 14-9 24-15 0 0-17 10-24 15z",transform:"matrix(1 0 0 -1 0 850)"},camera:{width:1e3,height:1e3,path:"m500 450c-83 0-150-67-150-150 0-83 67-150 150-150 83 0 150 67 150 150 0 83-67 150-150 150z m400 150h-120c-16 0-34 13-39 29l-31 93c-6 15-23 28-40 28h-340c-16 0-34-13-39-28l-31-94c-6-15-23-28-40-28h-120c-55 0-100-45-100-100v-450c0-55 45-100 100-100h800c55 0 100 45 100 100v450c0 55-45 100-100 100z m-400-550c-138 0-250 112-250 250 0 138 112 250 250 250 138 0 250-112 250-250 0-138-112-250-250-250z m365 380c-19 0-35 16-35 35 0 19 16 35 35 35 19 0 35-16 35-35 0-19-16-35-35-35z",transform:"matrix(1 0 0 -1 0 850)"},movie:{width:1e3,height:1e3,path:"m938 413l-188-125c0 37-17 71-44 94 64 38 107 107 107 187 0 121-98 219-219 219-121 0-219-98-219-219 0-61 25-117 66-156h-115c30 33 49 76 49 125 0 103-84 187-187 187s-188-84-188-187c0-57 26-107 65-141-38-22-65-62-65-109v-250c0-70 56-126 125-126h500c69 0 125 56 125 126l188-126c34 0 62 28 62 63v375c0 35-28 63-62 63z m-750 0c-69 0-125 56-125 125s56 125 125 125 125-56 125-125-56-125-125-125z m406-1c-87 0-157 70-157 157 0 86 70 156 157 156s156-70 156-156-70-157-156-157z",transform:"matrix(1 0 0 -1 0 850)"},question:{width:857.1,height:1e3,path:"m500 82v107q0 8-5 13t-13 5h-107q-8 0-13-5t-5-13v-107q0-8 5-13t13-5h107q8 0 13 5t5 13z m143 375q0 49-31 91t-77 65-95 23q-136 0-207-119-9-14 4-24l74-55q4-4 10-4 9 0 14 7 30 38 48 51 19 14 48 14 27 0 48-15t21-33q0-21-11-34t-38-25q-35-16-65-48t-29-70v-20q0-8 5-13t13-5h107q8 0 13 5t5 13q0 10 12 27t30 28q18 10 28 16t25 19 25 27 16 34 7 45z m214-107q0-117-57-215t-156-156-215-58-216 58-155 156-58 215 58 215 155 156 216 58 215-58 156-156 57-215z",transform:"matrix(1 0 0 -1 0 850)"},disk:{width:857.1,height:1e3,path:"m214-7h429v214h-429v-214z m500 0h72v500q0 8-6 21t-11 20l-157 156q-5 6-19 12t-22 5v-232q0-22-15-38t-38-16h-322q-22 0-37 16t-16 38v232h-72v-714h72v232q0 22 16 38t37 16h465q22 0 38-16t15-38v-232z m-214 518v178q0 8-5 13t-13 5h-107q-7 0-13-5t-5-13v-178q0-8 5-13t13-5h107q7 0 13 5t5 13z m357-18v-518q0-22-15-38t-38-16h-750q-23 0-38 16t-16 38v750q0 22 16 38t38 16h517q23 0 50-12t42-26l156-157q16-15 27-42t11-49z",transform:"matrix(1 0 0 -1 0 850)"},cloudupload:{width:640,height:640,path:"M451.5 160C434.9 160 418.8 164.5 404.7 172.7C388.9 156.7 370.5 143.3 350.2 133.2C378.4 109.2 414.3 96 451.5 96C537.9 96 608 166 608 252.5C608 294 591.5 333.8 562.2 363.1L491.1 434.2C461.8 463.5 422 480 380.5 480C294.1 480 224 410 224 323.5C224 322 224 320.5 224.1 319C224.6 301.3 239.3 287.4 257 287.9C274.7 288.4 288.6 303.1 288.1 320.8C288.1 321.7 288.1 322.6 288.1 323.4C288.1 374.5 329.5 415.9 380.6 415.9C405.1 415.9 428.6 406.2 446 388.8L517.1 317.7C534.4 300.4 544.2 276.8 544.2 252.3C544.2 201.2 502.8 159.8 451.7 159.8zM307.2 237.3C305.3 236.5 303.4 235.4 301.7 234.2C289.1 227.7 274.7 224 259.6 224C235.1 224 211.6 233.7 194.2 251.1L123.1 322.2C105.8 339.5 96 363.1 96 387.6C96 438.7 137.4 480.1 188.5 480.1C205 480.1 221.1 475.7 235.2 467.5C251 483.5 269.4 496.9 289.8 507C261.6 530.9 225.8 544.2 188.5 544.2C102.1 544.2 32 474.2 32 387.7C32 346.2 48.5 306.4 77.8 277.1L148.9 206C178.2 176.7 218 160.2 259.5 160.2C346.1 160.2 416 230.8 416 317.1C416 318.4 416 319.7 416 321C415.6 338.7 400.9 352.6 383.2 352.2C365.5 351.8 351.6 337.1 352 319.4C352 318.6 352 317.9 352 317.1C352 283.4 334 253.8 307.2 237.5z",transform:"matrix(1 0 0 1 -15 -15)"},drawopenpath:{width:70,height:70,path:"M33.21,85.65a7.31,7.31,0,0,1-2.59-.48c-8.16-3.11-9.27-19.8-9.88-41.3-.1-3.58-.19-6.68-.35-9-.15-2.1-.67-3.48-1.43-3.79-2.13-.88-7.91,2.32-12,5.86L3,32.38c1.87-1.64,11.55-9.66,18.27-6.9,2.13.87,4.75,3.14,5.17,9,.17,2.43.26,5.59.36,9.25a224.17,224.17,0,0,0,1.5,23.4c1.54,10.76,4,12.22,4.48,12.4.84.32,2.79-.46,5.76-3.59L43,80.07C41.53,81.57,37.68,85.64,33.21,85.65ZM74.81,69a11.34,11.34,0,0,0,6.09-6.72L87.26,44.5,74.72,32,56.9,38.35c-2.37.86-5.57,3.42-6.61,6L38.65,72.14l8.42,8.43ZM55,46.27a7.91,7.91,0,0,1,3.64-3.17l14.8-5.3,8,8L76.11,60.6l-.06.19a6.37,6.37,0,0,1-3,3.43L48.25,74.59,44.62,71Zm16.57,7.82A6.9,6.9,0,1,0,64.64,61,6.91,6.91,0,0,0,71.54,54.09Zm-4.05,0a2.85,2.85,0,1,1-2.85-2.85A2.86,2.86,0,0,1,67.49,54.09Zm-4.13,5.22L60.5,56.45,44.26,72.7l2.86,2.86ZM97.83,35.67,84.14,22l-8.57,8.57L89.26,44.24Zm-13.69-8,8,8-2.85,2.85-8-8Z",transform:"matrix(1 0 0 1 -15 -15)"},drawclosedpath:{width:90,height:90,path:"M88.41,21.12a26.56,26.56,0,0,0-36.18,0l-2.07,2-2.07-2a26.57,26.57,0,0,0-36.18,0,23.74,23.74,0,0,0,0,34.8L48,90.12a3.22,3.22,0,0,0,4.42,0l36-34.21a23.73,23.73,0,0,0,0-34.79ZM84,51.24,50.16,83.35,16.35,51.25a17.28,17.28,0,0,1,0-25.47,20,20,0,0,1,27.3,0l4.29,4.07a3.23,3.23,0,0,0,4.44,0l4.29-4.07a20,20,0,0,1,27.3,0,17.27,17.27,0,0,1,0,25.46ZM66.76,47.68h-33v6.91h33ZM53.35,35H46.44V68h6.91Z",transform:"matrix(1 0 0 1 -5 -5)"},lasso:{width:1031,height:1e3,path:"m1018 538c-36 207-290 336-568 286-277-48-473-256-436-463 10-57 36-108 76-151-13-66 11-137 68-183 34-28 75-41 114-42l-55-70 0 0c-2-1-3-2-4-3-10-14-8-34 5-45 14-11 34-8 45 4 1 1 2 3 2 5l0 0 113 140c16 11 31 24 45 40 4 3 6 7 8 11 48-3 100 0 151 9 278 48 473 255 436 462z m-624-379c-80 14-149 48-197 96 42 42 109 47 156 9 33-26 47-66 41-105z m-187-74c-19 16-33 37-39 60 50-32 109-55 174-68-42-25-95-24-135 8z m360 75c-34-7-69-9-102-8 8 62-16 128-68 170-73 59-175 54-244-5-9 20-16 40-20 61-28 159 121 317 333 354s407-60 434-217c28-159-121-318-333-355z",transform:"matrix(1 0 0 -1 0 850)"},selectbox:{width:1e3,height:1e3,path:"m0 850l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-285l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z",transform:"matrix(1 0 0 -1 0 850)"},drawline:{width:70,height:70,path:"M60.64,62.3a11.29,11.29,0,0,0,6.09-6.72l6.35-17.72L60.54,25.31l-17.82,6.4c-2.36.86-5.57,3.41-6.6,6L24.48,65.5l8.42,8.42ZM40.79,39.63a7.89,7.89,0,0,1,3.65-3.17l14.79-5.31,8,8L61.94,54l-.06.19a6.44,6.44,0,0,1-3,3.43L34.07,68l-3.62-3.63Zm16.57,7.81a6.9,6.9,0,1,0-6.89,6.9A6.9,6.9,0,0,0,57.36,47.44Zm-4,0a2.86,2.86,0,1,1-2.85-2.85A2.86,2.86,0,0,1,53.32,47.44Zm-4.13,5.22L46.33,49.8,30.08,66.05l2.86,2.86ZM83.65,29,70,15.34,61.4,23.9,75.09,37.59ZM70,21.06l8,8-2.84,2.85-8-8ZM87,80.49H10.67V87H87Z",transform:"matrix(1 0 0 1 -15 -15)"},drawrect:{width:80,height:80,path:"M78,22V79H21V22H78m9-9H12V88H87V13ZM68,46.22H31V54H68ZM53,32H45.22V69H53Z",transform:"matrix(1 0 0 1 -10 -10)"},drawcircle:{width:80,height:80,path:"M50,84.72C26.84,84.72,8,69.28,8,50.3S26.84,15.87,50,15.87,92,31.31,92,50.3,73.16,84.72,50,84.72Zm0-60.59c-18.6,0-33.74,11.74-33.74,26.17S31.4,76.46,50,76.46,83.74,64.72,83.74,50.3,68.6,24.13,50,24.13Zm17.15,22h-34v7.11h34Zm-13.8-13H46.24v34h7.11Z",transform:"matrix(1 0 0 1 -10 -10)"},eraseshape:{width:80,height:80,path:"M82.77,78H31.85L6,49.57,31.85,21.14H82.77a8.72,8.72,0,0,1,8.65,8.77V69.24A8.72,8.72,0,0,1,82.77,78ZM35.46,69.84H82.77a.57.57,0,0,0,.49-.6V29.91a.57.57,0,0,0-.49-.61H35.46L17,49.57Zm32.68-34.7-24,24,5,5,24-24Zm-19,.53-5,5,24,24,5-5Z",transform:"matrix(1 0 0 1 -10 -10)"},spikeline:{width:1e3,height:1e3,path:"M512 409c0-57-46-104-103-104-57 0-104 47-104 104 0 57 47 103 104 103 57 0 103-46 103-103z m-327-39l92 0 0 92-92 0z m-185 0l92 0 0 92-92 0z m370-186l92 0 0 93-92 0z m0-184l92 0 0 92-92 0z",transform:"matrix(1.5 0 0 -1.5 0 850)"},pencil:{width:1792,height:1792,path:"M491 1536l91-91-235-235-91 91v107h128v128h107zm523-928q0-22-22-22-10 0-17 7l-542 542q-7 7-7 17 0 22 22 22 10 0 17-7l542-542q7-7 7-17zm-54-192l416 416-832 832h-416v-416zm683 96q0 53-37 90l-166 166-416-416 166-165q36-38 90-38 53 0 91 38l235 234q37 39 37 91z",transform:"matrix(1 0 0 1 0 1)"},newplotlylogo:{name:"newplotlylogo",svg:[""," plotly-logomark"," "," "," "," "," "," "," "," "," "," "," "," "," ",""].join("")}}});var Z1={};pt(Z1,{CIRCLE_SIDES:()=>Xve,SQRT2:()=>Qve,cos45:()=>Kve,i000:()=>Wve,i090:()=>Zve,i180:()=>Jve,i270:()=>$ve,sin45:()=>jve});var Xve,Wve,Zve,Jve,$ve,Kve,jve,Qve,J1=Cr(()=>{"use strict";Xve=32,Wve=0,Zve=8,Jve=16,$ve=24,Kve=Math.cos(Math.PI/4),jve=Math.sin(Math.PI/4),Qve=Math.sqrt(2)});var $1=G((zke,CP)=>{"use strict";var e2e=Se().strTranslate;function LP(e,r){switch(e.type){case"log":return e.p2d(r);case"date":return e.p2r(r,0,e.calendar);default:return e.p2r(r)}}function r2e(e,r){switch(e.type){case"log":return e.d2p(r);case"date":return e.r2p(r,0,e.calendar);default:return e.r2p(r)}}function t2e(e){var r=e._id.charAt(0)==="y"?1:0;return function(t){return LP(e,t[r])}}function a2e(e){return e2e(e.xaxis._offset,e.yaxis._offset)}CP.exports={p2r:LP,r2p:r2e,axValue:t2e,getTransform:a2e}});var Uo=G(Ql=>{"use strict";var n2e=Sx(),DP=(J1(),Fe(Z1)),of=DP.CIRCLE_SIDES,Ub=DP.SQRT2,PP=$1(),SP=PP.p2r,qP=PP.r2p,i2e=[0,3,4,5,6,1,2],l2e=[0,3,4,1,2];Ql.writePaths=function(e){var r=e.length;if(!r)return"M0,0Z";for(var t="",a=0;a0&&s{"use strict";var EP=va(),IP=lf(),o2e=IP.drawMode,s2e=IP.openMode,sf=(J1(),Fe(Z1)),RP=sf.i000,zP=sf.i090,FP=sf.i180,NP=sf.i270,u2e=sf.cos45,f2e=sf.sin45,BP=$1(),j1=BP.p2r,Vo=BP.r2p,c2e=Ro(),v2e=c2e.clearOutline,Q1=Uo(),d2e=Q1.readPaths,h2e=Q1.writePaths,p2e=Q1.ellipseOver,m2e=Q1.fixDatesForPaths;function y2e(e,r){if(e.length){var t=e[0][0];if(t){var a=r.gd,n=r.isActiveShape,i=r.dragmode,l=(a.layout||{}).shapes||[];if(!o2e(i)&&n!==void 0){var o=a._fullLayout._activeShapeIndex;if(o{"use strict";var g2e=lf(),x2e=g2e.selectMode,b2e=Ro(),_2e=b2e.clearOutline,Vb=Uo(),w2e=Vb.readPaths,T2e=Vb.writePaths,M2e=Vb.fixDatesForPaths;YP.exports=function(r,t){if(r.length){var a=r[0][0];if(a){var n=a.getAttribute("d"),i=t.gd,l=i._fullLayout.newselection,o=t.plotinfo,s=o.xaxis,u=o.yaxis,f=t.isActiveSelection,c=t.dragmode,v=(i.layout||{}).selections||[];if(!x2e(c)&&f!==void 0){var h=i._fullLayout._activeSelectionIndex;if(hS2e,paramIsX:()=>L2e,paramIsY:()=>C2e,paramRE:()=>k2e,segmentRE:()=>A2e});var A2e,k2e,L2e,C2e,S2e,Pv=Cr(()=>{"use strict";A2e=/[MLHVQCTSZ][^MLHVQCTSZ]*/g,k2e=/[^\s,]+/g,L2e={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:{}},C2e={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:3},Z:{}},S2e={M:2,L:2,H:1,V:1,Q:4,C:6,T:2,S:4,Z:0}});var Wo=G(Na=>{"use strict";var Ll=(Pv(),Fe(Dv)),GP=Se(),Xo=Qr();Na.rangeToShapePosition=function(e){return e.type==="log"?e.r2d:function(r){return r}};Na.shapePositionToRange=function(e){return e.type==="log"?e.d2r:function(r){return r}};Na.decodeDate=function(e){return function(r){return r.replace&&(r=r.replace("_"," ")),e(r)}};Na.encodeDate=function(e){return function(r){return e(r).replace(" ","_")}};Na.extractPathCoords=function(e,r,t){var a=[],n=e.match(Ll.segmentRE);return n.forEach(function(i){var l=r[i.charAt(0)].drawn;if(l!==void 0){var o=i.slice(1).match(Ll.paramRE);if(!(!o||o.length{let o=l.charAt(0),s=n[o].drawn!==void 0;return i+(s?1:0)},0)};Na.getDataToPixel=function(e,r,t,a,n){var i=e._fullLayout._size,l;if(r)if(n==="domain")l=function(s){return r._length*(a?1-s:s)+r._offset};else{var o=Na.shapePositionToRange(r);l=function(s){var u=kl(r,t);return r._offset+r.r2p(o(s,!0))+u},r.type==="date"&&(l=Na.decodeDate(l))}else a?l=function(s){return i.t+i.h*(1-s)}:l=function(s){return i.l+i.w*s};return l};Na.getPixelToData=function(e,r,t,a){var n=e._fullLayout._size,i;if(r)if(a==="domain")i=function(o){var s=(o-r._offset)/r._length;return t?1-s:s};else{var l=Na.rangeToShapePosition(r);i=function(o){return l(r.p2r(o-r._offset))}}else t?i=function(o){return 1-(o-n.t)/n.h}:i=function(o){return(o-n.l)/n.w};return i};Na.roundPositionForSharpStrokeRendering=function(e,r){var t=Math.round(r%2)===1,a=Math.round(e);return t?a+.5:a};Na.makeShapesOptionsAndPlotinfo=function(e,r){var t=e._fullLayout.shapes[r]||{},a=e._fullLayout._plots[t.xref+t.yref],n=!!a;return n?a._hadPlotinfo=!0:(a={},t.xref&&t.xref!=="paper"&&(a.xaxis=e._fullLayout[t.xref+"axis"]),t.yref&&t.yref!=="paper"&&(a.yaxis=e._fullLayout[t.yref+"axis"])),a.xsizemode=t.xsizemode,a.ysizemode=t.ysizemode,a.xanchor=t.xanchor,a.yanchor=t.yanchor,{options:t,plotinfo:a}};Na.makeSelectionsOptionsAndPlotinfo=function(e,r){var t=e._fullLayout.selections[r]||{},a=e._fullLayout._plots[t.xref+t.yref],n=!!a;return n?a._hadPlotinfo=!0:(a={},t.xref&&(a.xaxis=e._fullLayout[t.xref+"axis"]),t.yref&&(a.yaxis=e._fullLayout[t.yref+"axis"])),{options:t,plotinfo:a}};Na.getPathString=function(e,r){let t=r.type,a=Xo.getRefType(r.xref),n=Xo.getRefType(r.yref),i=e._fullLayout._size;var l,o,s,u,f,c,v,h,p,m,y,x;function _(P,R,F,B){var H;if(P)if(R==="domain")B?H=function(N){return P._offset+P._length*(1-N)}:H=function(N){return P._offset+P._length*N};else{let N=Na.shapePositionToRange(P);H=function(Y){return P._offset+P.r2p(N(Y,!0))},F==="path"&&P.type==="date"&&(H=Na.decodeDate(H))}else B?H=function(N){return i.t+i.h*(1-N)}:H=function(N){return i.l+i.w*N};return H}if(a==="array"?(v=[],l=r.xref.map(function(P){return Xo.getFromId(e,P)}),v=r.xref.map(function(P,R){return _(l[R],Xo.getRefType(P),t,!1)})):(l=Xo.getFromId(e,r.xref),v=_(l,a,t,!1)),n==="array"?(h=[],o=r.yref.map(function(P){return Xo.getFromId(e,P)}),h=r.yref.map(function(P,R){return _(o[R],Xo.getRefType(P),t,!0)})):(o=Xo.getFromId(e,r.yref),h=_(o,n,t,!0)),t==="path")return q2e(r,v,h);if(a==="array")s=kl(l[0],r.x0shift),u=kl(l[1],r.x1shift),p=v[0](r.x0)+s,m=v[1](r.x1)+u;else if(s=kl(l,r.x0shift),u=kl(l,r.x1shift),r.xsizemode==="pixel"){let P=v(r.xanchor);p=P+r.x0+s,m=P+r.x1+u}else p=v(r.x0)+s,m=v(r.x1)+u;if(n==="array")f=kl(o[0],r.y0shift),c=kl(o[1],r.y1shift),y=h[0](r.y0)+f,x=h[1](r.y1)+c;else if(f=kl(o,r.y0shift),c=kl(o,r.y1shift),r.ysizemode==="pixel"){let P=h(r.yanchor);y=P-r.y0+f,x=P-r.y1+c}else y=h(r.y0)+f,x=h(r.y1)+c;if(t==="line")return"M"+p+","+y+"L"+m+","+x;if(t==="rect")return"M"+p+","+y+"H"+m+"V"+x+"H"+p+"Z";var w=(p+m)/2,b=(y+x)/2,M=Math.abs(w-p),A=Math.abs(b-y),k="A"+M+","+A,S=w+M+","+b,D=w+","+(b-A);return"M"+S+k+" 0 1,1 "+D+k+" 0 0,1 "+S+"Z"};function q2e(e,r,t){let a=e.path,n=e.xsizemode,i=e.ysizemode,l=e.xanchor,o=e.yanchor,s=Array.isArray(e.xref),u=Array.isArray(e.yref);var f=0,c=0;return a.replace(Ll.segmentRE,function(v){var h=0,p=v.charAt(0),m=Ll.paramIsX[p],y=Ll.paramIsY[p],x=Ll.numParams[p];let _=m.drawn!==void 0,w=y.drawn!==void 0,b=s?r[f]:r,M=u?t[c]:t;var A=v.slice(1).replace(Ll.paramRE,function(k){return m[h]?n==="pixel"?k=b(l)+Number(k):k=b(k):y[h]&&(i==="pixel"?k=M(o)-Number(k):k=M(k)),h++,h>x&&(k="X"),k});return h>x&&(A=A.replace(/[\s,]*X.*/,""),GP.log("Ignoring extra params in segment "+v)),_&&f++,w&&c++,p+A})}Na.getPixelShift=kl;function kl(e,r){r=r||0;var t=0;return r&&e&&(e.type==="category"||e.type==="multicategory")&&(t=(e.r2p(1)-e.r2p(0))*r),t}});var Wb=G((Hke,XP)=>{"use strict";var D2e=Se(),Cl=Qr(),UP=ba(),VP=$r(),P2e=Uo().readPaths,vu=Wo(),E2e=vu.getPathString,Ev=xh(),R2e=(Xa(),Fe(Va)).FROM_TL;XP.exports=function(r,t,a,n){if(n.selectAll(".shape-label").remove(),!!(a.label.text||a.label.texttemplate)){var i;if(a.label.texttemplate){var l={};if(a.type!=="path"){var o=Cl.getFromId(r,a.xref),s=Cl.getFromId(r,a.yref);let U=Array.isArray(a.xref),$=Array.isArray(a.yref);for(var u in Ev){var f=typeof Ev[u]=="function",c=!U||Ev.simpleXVariables.includes(u),v=!$||Ev.simpleYVariables.includes(u);if(f&&c&&v){var h=Ev[u](a,o,s);h!==void 0&&(l[u]=h)}}}i=D2e.texttemplateStringForShapes({data:[l],fallback:a.label.texttemplatefallback,locale:r._fullLayout._d3locale,template:a.label.texttemplate})}else i=a.label.text;var p={"data-index":t},m=a.label.font,y={"data-notex":1},x=n.append("g").attr(p).classed("shape-label",!0),_=x.append("text").attr(y).classed("shape-label-text",!0).text(i),w,b,M,A;if(a.path){var k=E2e(r,a),S=P2e(k,r);w=1/0,M=1/0,b=-1/0,A=-1/0;for(var D=0;Dvu.getDataToPixel(r,qe,ge,!1,ke)(Ne),Te=(Ne,ge,qe,ke)=>vu.getDataToPixel(r,qe,ge,!0,ke)(Ne);if(a.xsizemode==="pixel"){let Ne=ce(a.xanchor,void 0,re,me),ge=vu.getPixelShift(re,a.x0shift),qe=vu.getPixelShift(re,a.x1shift);w=Ne+a.x0+ge,b=Ne+a.x1+qe}else w=ce(a.x0,a.x0shift,re,me),b=ce(a.x1,a.x1shift,se,ie);if(a.ysizemode==="pixel"){let Ne=Te(a.yanchor,void 0,oe,Me),ge=vu.getPixelShift(oe,a.y0shift),qe=vu.getPixelShift(oe,a.y1shift);M=Ne-a.y0+ge,A=Ne-a.y1+qe}else M=Te(a.y0,a.y0shift,oe,Me),A=Te(a.y1,a.y1shift,K,ue)}var N=a.label.textangle;N==="auto"&&(a.type==="line"?N=z2e(w,M,b,A):N=0),_.call(function(U){return U.call(VP.font,m).attr({}),UP.convertToTspans(U,r),U});var Y=VP.bBox(_.node()),O=F2e(w,M,b,A,a,N,Y),V=O.textx,X=O.texty,W=O.xanchor;_.attr({"text-anchor":{left:"start",center:"middle",right:"end"}[W],y:X,x:V,transform:"rotate("+N+","+V+","+X+")"}).call(UP.positionText,V,X)}};function z2e(e,r,t,a){var n,i;return i=Math.abs(t-e),t>=e?n=r-a:n=a-r,-180/Math.PI*Math.atan2(n,i)}function F2e(e,r,t,a,n,i,l){var o=n.label.textposition,s=n.label.textangle,u=n.label.padding,f=n.type,c=Math.PI/180*i,v=Math.sin(c),h=Math.cos(c),p=n.label.xanchor,m=n.label.yanchor,y,x,_,w;if(f==="line"){o==="start"?(y=e,x=r):o==="end"?(y=t,x=a):(y=(e+t)/2,x=(r+a)/2),p==="auto"&&(o==="start"?s==="auto"?t>e?p="left":te?p="right":te?p="right":te?p="left":t{"use strict";var N2e=Se(),I2e=N2e.strTranslate,WP=Ji(),$P=lf(),B2e=$P.drawMode,KP=$P.selectMode,jP=Ar(),ZP=kr(),tp=(J1(),Fe(Z1)),H2e=tp.i000,O2e=tp.i090,Y2e=tp.i180,G2e=tp.i270,U2e=Ro(),QP=U2e.clearOutlineControllers,Jb=Uo(),rp=Jb.pointsOnRectangle,Zb=Jb.pointsOnEllipse,V2e=Jb.writePaths,X2e=ep().newShapes,W2e=ep().createShapeObj,Z2e=Xb(),J2e=Wb();eE.exports=function e(r,t,a,n){n||(n=0);var i=a.gd;function l(){e(r,t,a,n++),(Zb(r[0])||a.hasText)&&o({redrawing:!0})}function o(O){var V={};a.isActiveShape!==void 0&&(a.isActiveShape=!1,V=X2e(t,a)),a.isActiveSelection!==void 0&&(a.isActiveSelection=!1,V=Z2e(t,a),i._fullLayout._reselect=!0),Object.keys(V).length&&jP.call((O||{}).redrawing?"relayout":"_guiRelayout",i,V)}var s=i._fullLayout,u=s._zoomlayer,f=a.dragmode,c=B2e(f),v=KP(f);(c||v)&&(i._fullLayout._outlining=!0),QP(i),t.attr("d",V2e(r));var h,p,m,y,x;if(!n&&(a.isActiveShape||a.isActiveSelection)){x=$2e([],r);var _=u.append("g").attr("class","outline-controllers");P(_),Y()}if(c&&a.hasText){var w=u.select(".label-temp"),b=W2e(t,a,a.dragmode);J2e(i,"label-temp",b,w)}function M(O){m=+O.srcElement.getAttribute("data-i"),y=+O.srcElement.getAttribute("data-j"),h[m][y].moveFn=A}function A(O,V){if(r.length){var X=x[m][y][1],W=x[m][y][2],U=r[m],$=U.length;if(rp(U)){var re=O,se=V;if(a.isActiveSelection){var oe=JP(U,y);oe[1]===U[y][1]?se=0:re=0}for(var K=0;K<$;K++)if(K!==y){var me=U[K];me[1]===U[y][1]&&(me[1]=X+re),me[2]===U[y][2]&&(me[2]=W+se)}if(U[y][1]=X+re,U[y][2]=W+se,!rp(U))for(var ie=0;ie<$;ie++)for(var Me=0;Me1&&!(O.length===2&&O[1][0]==="Z")&&(y===0&&(O[0][0]="M"),r[m]=O,l(),o())}}function D(O,V){if(O===2){m=+V.srcElement.getAttribute("data-i"),y=+V.srcElement.getAttribute("data-j");var X=r[m];!rp(X)&&!Zb(X)&&S()}}function P(O){h=[];for(var V=0;V{"use strict";var j2e=Er(),lE=Ar(),Kb=Se(),du=Qr(),Q2e=Uo().readPaths,ede=ap(),ip=Wb(),oE=Ro().clearOutlineControllers,$b=kr(),lp=$r(),rde=yt().arrayEditor,rE=Ji(),tE=xi(),aE=Yo(),hu=(Pv(),Fe(Dv)),Fn=Wo(),jb=Fn.getPathString;fE.exports={draw:Qb,drawOne:sE,eraseActiveShape:lde,drawLabel:ip};function Qb(e){var r=e._fullLayout;r._shapeUpperLayer.selectAll("path").remove(),r._shapeLowerLayer.selectAll("path").remove(),r._shapeUpperLayer.selectAll("text").remove(),r._shapeLowerLayer.selectAll("text").remove();for(var t in r._plots){var a=r._plots[t].shapelayer;a&&(a.selectAll("path").remove(),a.selectAll("text").remove())}for(var n=0;n{if(!e._dragging&&e._fullLayout.hoveranywhere){let l=n(i);l&&tE.hover(e,l,t.id)}}),a.addEventListener("click",i=>{if(!e._dragged&&e._fullLayout.clickanywhere){let l=n(i);l&&tE.click(e,l,t.id)}})}function uE(e,r,t){let a=t.xref,n=t.yref;if(Array.isArray(a)||Array.isArray(n)){let i="clip"+r._fullLayout._uid+"shape"+t._index,l=ade(r,a,n);Kb.ensureSingleById(r._fullLayout._clips,"clipPath",i,function(o){o.append("rect")}).select("rect").attr(l),lp.setClipUrl(e,i,r)}else{let i=(a+n).replace(/paper/g,"").replace(/[xyz][0-9]* *domain/g,"");lp.setClipUrl(e,i?"clip"+r._fullLayout._uid+i:null,r)}}function ade(e,r,t){let a=e._fullLayout._size;function n(o,s){let u=(Array.isArray(o)?o:[o]).map(v=>du.getFromId(e,v)).filter(Boolean);if(!u.length)return s?[a.t,a.t+a.h]:[a.l,a.l+a.w];let f=u.map(function(v){return v._offset}),c=u.map(function(v){return v._offset+v._length});return[Math.min(...f),Math.max(...c)]}let i=n(r,!1),l=n(t,!0);return{x:i[0],y:l[0],width:i[1]-i[0],height:l[1]-l[0]}}function nde(e,r,t,a,n,i){var l=10,o=10,s=t.xsizemode==="pixel",u=t.ysizemode==="pixel",f=t.type==="line",c=t.type==="path",v=i.modifyItem,h,p,m,y,x,_,w,b,M,A,k,S,D,P,R,F=j2e.select(r.node().parentNode),B=du.getFromId(e,t.xref),H=du.getRefType(t.xref),N=du.getFromId(e,t.yref),Y=du.getRefType(t.yref),O=t.x0shift,V=t.x1shift,X=t.y0shift,W=t.y1shift,U=function(ze,Ae){var Ue=Fn.getDataToPixel(e,B,Ae,!1,H);return Ue(ze)},$=function(ze,Ae){var Ue=Fn.getDataToPixel(e,N,Ae,!0,Y);return Ue(ze)},re=Fn.getPixelToData(e,B,!1,H),se=Fn.getPixelToData(e,N,!0,Y),oe=ie(),K={element:oe.node(),gd:e,prepFn:ce,doneFn:Te,clickFn:Ne},me;rE.init(K),oe.node().onmousemove=ue;function ie(){return f?Me():r}function Me(){var ze=10,Ae=Math.max(t.line.width,ze),Ue=n.append("g").attr("data-index",a).attr("drag-helper",!0);Ue.append("path").attr("d",r.attr("d")).style({cursor:"move","stroke-width":Ae,"stroke-opacity":"0"});var $e={"fill-opacity":"0"},Qe=Math.max(Ae/2,ze);return Ue.append("circle").attr({"data-line-point":"start-point",cx:s?U(t.xanchor)+t.x0:U(t.x0,O),cy:u?$(t.yanchor)-t.y0:$(t.y0,X),r:Qe}).style($e).classed("cursor-grab",!0),Ue.append("circle").attr({"data-line-point":"end-point",cx:s?U(t.xanchor)+t.x1:U(t.x1,V),cy:u?$(t.yanchor)-t.y1:$(t.y1,W),r:Qe}).style($e).classed("cursor-grab",!0),Ue}function ue(ze){if(np(e)){me=null;return}if(f)ze.target.tagName==="path"?me="move":me=ze.target.attributes["data-line-point"].value==="start-point"?"resize-over-start-point":"resize-over-end-point";else{var Ae=K.element.getBoundingClientRect(),Ue=Ae.right-Ae.left,$e=Ae.bottom-Ae.top,Qe=ze.clientX-Ae.left,De=ze.clientY-Ae.top,He=!c&&Ue>l&&$e>o&&!ze.shiftKey?rE.getCursor(Qe/Ue,1-De/$e):"move";aE(r,He),me=He.split("-")[0]}}function ce(ze){np(e)||(s&&(x=U(t.xanchor)),u&&(_=$(t.yanchor)),t.type==="path"?R=t.path:(h=s?t.x0:U(t.x0),p=u?t.y0:$(t.y0),m=s?t.x1:U(t.x1),y=u?t.y1:$(t.y1)),hy?(w=p,k="y0",b=y,S="y1"):(w=y,k="y1",b=p,S="y0"),ue(ze),ke(n,t),Ce(r,t,e),K.moveFn=me==="move"?ge:qe,K.altKey=ze.altKey)}function Te(){np(e)||(aE(r),Le(n),uE(r,e,t),lE.call("_guiRelayout",e,i.getUpdateObj()))}function Ne(){np(e)||Le(n)}function ge(ze,Ae){if(t.type==="path"){var Ue=function(De){return De},$e=Ue,Qe=Ue;s?v("xanchor",t.xanchor=re(x+ze)):($e=function(He){return re(U(He)+ze)},B&&B.type==="date"&&($e=Fn.encodeDate($e))),u?v("yanchor",t.yanchor=se(_+Ae)):(Qe=function(He){return se($(He)+Ae)},N&&N.type==="date"&&(Qe=Fn.encodeDate(Qe))),v("path",t.path=nE(R,$e,Qe))}else s?v("xanchor",t.xanchor=re(x+ze)):(v("x0",t.x0=re(h+ze)),v("x1",t.x1=re(m+ze))),u?v("yanchor",t.yanchor=se(_+Ae)):(v("y0",t.y0=se(p+Ae)),v("y1",t.y1=se(y+Ae)));r.attr("d",jb(e,t)),ke(n,t),ip(e,a,t,F)}function qe(ze,Ae){if(c){var Ue=function(Ze){return Ze},$e=Ue,Qe=Ue;s?v("xanchor",t.xanchor=re(x+ze)):($e=function(Ke){return re(U(Ke)+ze)},B&&B.type==="date"&&($e=Fn.encodeDate($e))),u?v("yanchor",t.yanchor=se(_+Ae)):(Qe=function(Ke){return se($(Ke)+Ae)},N&&N.type==="date"&&(Qe=Fn.encodeDate(Qe))),v("path",t.path=nE(R,$e,Qe))}else if(f){if(me==="resize-over-start-point"){var De=h+ze,He=u?p-Ae:p+Ae;v("x0",t.x0=s?De:re(De)),v("y0",t.y0=u?He:se(He))}else if(me==="resize-over-end-point"){var tr=m+ze,te=u?y-Ae:y+Ae;v("x1",t.x1=s?tr:re(tr)),v("y1",t.y1=u?te:se(te))}}else{var xe=function(Ze){return me.indexOf(Ze)!==-1},Ve=xe("n"),cr=xe("s"),mr=xe("w"),le=xe("e"),ye=Ve?w+Ae:w,Ie=cr?b+Ae:b,Xe=mr?M+ze:M,Be=le?A+ze:A;u&&(Ve&&(ye=w-Ae),cr&&(Ie=b-Ae)),(!u&&Ie-ye>o||u&&ye-Ie>o)&&(v(k,t[k]=u?ye:se(ye)),v(S,t[S]=u?Ie:se(Ie))),Be-Xe>l&&(v(D,t[D]=s?Xe:re(Xe)),v(P,t[P]=s?Be:re(Be)))}r.attr("d",jb(e,t)),ke(n,t),ip(e,a,t,F)}function ke(ze,Ae){(s||u)&&Ue();function Ue(){var $e=Ae.type!=="path",Qe=ze.selectAll(".visual-cue").data([0]),De=1;Qe.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":De}).classed("visual-cue",!0);var He=U(s?Ae.xanchor:Kb.midRange($e?[Ae.x0,Ae.x1]:Fn.extractPathCoords(Ae.path,hu.paramIsX))),tr=$(u?Ae.yanchor:Kb.midRange($e?[Ae.y0,Ae.y1]:Fn.extractPathCoords(Ae.path,hu.paramIsY)));if(He=Fn.roundPositionForSharpStrokeRendering(He,De),tr=Fn.roundPositionForSharpStrokeRendering(tr,De),s&&u){var te="M"+(He-1-De)+","+(tr-1-De)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";Qe.attr("d",te)}else if(s){var xe="M"+(He-1-De)+","+(tr-9-De)+"v18 h2 v-18 Z";Qe.attr("d",xe)}else{var Ve="M"+(He-9-De)+","+(tr-1-De)+"h18 v2 h-18 Z";Qe.attr("d",Ve)}}}function Le(ze){ze.selectAll(".visual-cue").remove()}function Ce(ze,Ae,Ue){var $e=Ae.xref,Qe=Ae.yref,De=du.getFromId(Ue,$e),He=du.getFromId(Ue,Qe),tr="";$e!=="paper"&&!De.autorange&&(tr+=$e),Qe!=="paper"&&!He.autorange&&(tr+=Qe),lp.setClipUrl(ze,tr?"clip"+Ue._fullLayout._uid+tr:null,Ue)}}function nE(e,r,t){return e.replace(hu.segmentRE,function(a){var n=0,i=a.charAt(0),l=hu.paramIsX[i],o=hu.paramIsY[i],s=hu.numParams[i],u=a.slice(1).replace(hu.paramRE,function(f){return n>=s||(l[n]?f=r(f):o[n]&&(f=t(f)),n++),f});return i+u})}function ide(e,r){if(op(e)){var t=r.node(),a=+t.getAttribute("data-index");if(a>=0){if(a===e._fullLayout._activeShapeIndex){iE(e);return}e._fullLayout._activeShapeIndex=a,e._fullLayout._deactivateShape=iE,Qb(e)}}}function iE(e){if(op(e)){var r=e._fullLayout._activeShapeIndex;r>=0&&(oE(e),delete e._fullLayout._activeShapeIndex,Qb(e))}}function lde(e){if(op(e)){oE(e);var r=e._fullLayout._activeShapeIndex,t=(e.layout||{}).shapes||[];if(r{"use strict";var uf=Se()._,ode=function(e){return{DIALOG_TITLE:uf(e,"Share chart"),DIALOG_MESSAGE_CLOUD:uf(e,"This chart will be uploaded to {Plotly Cloud} to create a sharing link. Only you can see it until you change its visibility."),DIALOG_MESSAGE_CLOUD_ACCOUNT:uf(e,"If you don't have a Plotly Cloud account yet, you'll have a chance to create one."),DIALOG_MESSAGE_OTHER:uf(e,"This chart will be sent to {serverUrl}."),DIALOG_CANCEL:uf(e,"Cancel"),DIALOG_CONFIRM:uf(e,"Share")}};cE.exports=ode});var pE=G((Uke,hE)=>{"use strict";var dE=Er(),{dfltConfig:sde}=wo(),ude=vE(),fde=(e,r,t,a,n)=>{let i=ude(e),l=r.append("div").classed("plotly-cloud-dialog-box",!0);if(l.append("div").classed("plotly-cloud-dialog-title",!0).text(i.DIALOG_TITLE),t===sde.plotlyServerURL){let s=l.append("div").classed("plotly-cloud-dialog-message",!0),u=new URL(t).origin,f=i.DIALOG_MESSAGE_CLOUD.split(/(\{|\})/),c=f[0],v=f[2],h=f[4];s.append("span").text(c),s.append("a").classed("plotly-cloud-dialog-message--hostname",!0).attr("href",u).attr("target","_blank").text(v),s.append("span").text(h),s.append("div").classed("plotly-cloud-dialog-message--account",!0).text(i.DIALOG_MESSAGE_CLOUD_ACCOUNT)}else{let s=new URL(t),u=s.hostname,f=s.origin,c=i.DIALOG_MESSAGE_OTHER.split(/(\{|\})/),v=c[0],h=c[4],p=l.append("div").classed("plotly-cloud-dialog-message",!0);p.append("span").text(v),p.append("a").classed("plotly-cloud-dialog-message--hostname",!0).attr("href",f).attr("target","_blank").text(u),p.append("span").text(h)}let o=l.append("div").classed("plotly-cloud-dialog-buttons",!0);o.append("button").classed("plotly-cloud-dialog-btn",!0).classed("plotly-cloud-dialog-btn--cancel",!0).text(i.DIALOG_CANCEL).on("click",n),o.append("button").classed("plotly-cloud-dialog-btn",!0).classed("plotly-cloud-dialog-btn--confirm",!0).text(i.DIALOG_CONFIRM).on("click",a)},cde=(e,r,t)=>{let a=dE.select(e._fullLayout._paperdiv.node());a.selectAll(".plotly-cloud-dialog").remove();let n=a.append("div").classed("plotly-cloud-dialog",!0),i=()=>{n.remove(),document.removeEventListener("keydown",l)},l=o=>{(o.key==="Escape"||o.keyCode===27)&&i()};document.addEventListener("keydown",l),n.on("click",()=>{dE.event.target===n.node()&&i()}),fde(e,n,r,()=>{i(),t()},i)};hE.exports=cde});var t4=G((Vke,wE)=>{"use strict";var ri=Ar(),vde=Jt(),yE=va(),rt=W1(),dde=sp().eraseActiveShape,hde=pE(),ff=Se(),Wr=ff._,et={};wE.exports=et;et.toImage={name:"toImage",title:function(e){var r=e._context.toImageButtonOptions||{},t=r.format||"png";return t==="png"?Wr(e,"Download plot as a PNG"):Wr(e,"Download plot")},icon:rt.camera,click:function(e){var r=e._context.toImageButtonOptions,t={format:r.format||"png"};ff.notifier(Wr(e,"Preparing image - this may take a few seconds"),"long",e),["filename","width","height","scale"].forEach(function(a){a in r&&(t[a]=r[a])}),ri.call("downloadImage",e,t).then(function(a){ff.notifier(Wr(e,"Image download succeeded")+" - "+a,"long",e)}).catch(function(){ff.notifier(Wr(e,"Sorry, there was a problem downloading your image!"),"long",e)})}};et.downloadJson={name:"downloadJson",title:function(e){return Wr(e,"Download plot as JSON")},icon:rt.curlybraces,click:function(e){ri.call("downloadImage",e,{format:"full-json"}).then(function(r){ff.notifier(Wr(e,"JSON download succeeded")+" - "+r,"long",e)}).catch(function(){ff.notifier(Wr(e,"Sorry, there was a problem downloading your JSON file!"),"long",e)})}};et.sendChartToCloud={name:"sendChartToCloud",title:function(e){return Wr(e,"Share chart...")},icon:rt.cloudupload,click:function(e){var r=(window.PLOTLYENV||{}).BASE_URL||e._context.plotlyServerURL;if(!r){console.error("No destination URL provided (plotlyServerURL is empty)");return}var t;try{t=new URL(r)}catch(n){console.error("Invalid plotlyServerURL: "+r);return}let a=["http:","https:"];if(!a.includes(t.protocol)){console.error(`Invalid protocol '${t.protocol}' in plotlyServerURL '${r}'. Must be one of: ${a.join(", ")}`);return}hde(e,r,function(){vde.sendDataToCloud(e,r)})}};et.zoom2d={name:"zoom2d",_cat:"zoom",title:function(e){return Wr(e,"Zoom")},attr:"dragmode",val:"zoom",icon:rt.zoombox,click:yn};et.pan2d={name:"pan2d",_cat:"pan",title:function(e){return Wr(e,"Pan")},attr:"dragmode",val:"pan",icon:rt.pan,click:yn};et.select2d={name:"select2d",_cat:"select",title:function(e){return Wr(e,"Box Select")},attr:"dragmode",val:"select",icon:rt.selectbox,click:yn};et.lasso2d={name:"lasso2d",_cat:"lasso",title:function(e){return Wr(e,"Lasso Select")},attr:"dragmode",val:"lasso",icon:rt.lasso,click:yn};et.drawclosedpath={name:"drawclosedpath",title:function(e){return Wr(e,"Draw closed freeform")},attr:"dragmode",val:"drawclosedpath",icon:rt.drawclosedpath,click:yn};et.drawopenpath={name:"drawopenpath",title:function(e){return Wr(e,"Draw open freeform")},attr:"dragmode",val:"drawopenpath",icon:rt.drawopenpath,click:yn};et.drawline={name:"drawline",title:function(e){return Wr(e,"Draw line")},attr:"dragmode",val:"drawline",icon:rt.drawline,click:yn};et.drawrect={name:"drawrect",title:function(e){return Wr(e,"Draw rectangle")},attr:"dragmode",val:"drawrect",icon:rt.drawrect,click:yn};et.drawcircle={name:"drawcircle",title:function(e){return Wr(e,"Draw circle")},attr:"dragmode",val:"drawcircle",icon:rt.drawcircle,click:yn};et.eraseshape={name:"eraseshape",title:function(e){return Wr(e,"Erase active shape")},icon:rt.eraseshape,click:dde};et.zoomIn2d={name:"zoomIn2d",_cat:"zoomin",title:function(e){return Wr(e,"Zoom in")},attr:"zoom",val:"in",icon:rt.zoom_plus,click:yn};et.zoomOut2d={name:"zoomOut2d",_cat:"zoomout",title:function(e){return Wr(e,"Zoom out")},attr:"zoom",val:"out",icon:rt.zoom_minus,click:yn};et.autoScale2d={name:"autoScale2d",_cat:"autoscale",title:function(e){return Wr(e,"Autoscale")},attr:"zoom",val:"auto",icon:rt.autoscale,click:yn};et.resetScale2d={name:"resetScale2d",_cat:"resetscale",title:function(e){return Wr(e,"Reset axes")},attr:"zoom",val:"reset",icon:rt.home,click:yn};et.hoverClosestCartesian={name:"hoverClosestCartesian",_cat:"hoverclosest",title:function(e){return Wr(e,"Show closest data on hover")},attr:"hovermode",val:"closest",icon:rt.tooltip_basic,gravity:"ne",click:yn};et.hoverCompareCartesian={name:"hoverCompareCartesian",_cat:"hoverCompare",title:function(e){return Wr(e,"Compare data on hover")},attr:"hovermode",val:function(e){return e._fullLayout._isHoriz?"y":"x"},icon:rt.tooltip_compare,gravity:"ne",click:yn};function yn(e,r){var t=r.currentTarget,a=t.getAttribute("data-attr"),n=t.getAttribute("data-val")||!0,i=e._fullLayout,l={},o=yE.list(e,null,!0),s=i._cartesianSpikesEnabled,u,f;if(a==="zoom"){var c=n==="in"?.5:2,v=(1+c)/2,h=(1-c)/2,p,m;for(f=0;f-A),[m,y]=c.invert(f.midPt),{minscale:x}=u.projection,_=(o=u.projection.maxscale)!=null?o:1/0,w=Math.min(x,_),b=Math.max(x,_),M=n==="in"?mE*v:1/mE*v;M>b?M=b:M{"use strict";var TE=t4(),gde=Object.keys(TE),ME=["drawline","drawopenpath","drawclosedpath","drawcircle","drawrect","eraseshape"],AE=["v1hovermode","hoverclosest","hovercompare","togglehover","togglespikelines"].concat(ME,["downloadJson"]),cf=[],xde=function(e){if(AE.indexOf(e._cat||e.name)===-1){var r=e.name,t=(e._cat||e.name).toLowerCase();cf.indexOf(r)===-1&&cf.push(r),cf.indexOf(t)===-1&&cf.push(t)}};gde.forEach(function(e){xde(TE[e])});cf.sort();kE.exports={DRAW_MODES:ME,backButtons:AE,foreButtons:cf}});var i4={};pt(i4,{default:()=>_de});var n4,bde,_de,l4=Cr(()=>{"use strict";n4=N9(a4()),bde={editType:"modebar",orientation:{valType:"enumerated",values:["v","h"],dflt:"h",editType:"modebar",description:"Sets the orientation of the modebar."},bgcolor:{valType:"color",editType:"modebar",description:"Sets the background color of the modebar."},color:{valType:"color",editType:"modebar",description:"Sets the color of the icons in the modebar."},activecolor:{valType:"color",editType:"modebar",description:"Sets the color of the active or hovered on icons in the modebar."},uirevision:{valType:"any",editType:"none",description:["Controls persistence of user-driven changes related to the modebar,","including `hovermode`, `dragmode`, and `showspikes` at both the","root level and inside subplots. Defaults to `layout.uirevision`."].join(" ")},add:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar",description:["Determines which predefined modebar buttons to add.","Please note that these buttons will only be shown if they are","compatible with all trace types used in a graph.","Similar to `config.modeBarButtonsToAdd` option.",`This may include *${n4.default.backButtons.join("*, *")}*.`].join(" ")},remove:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar",description:["Determines which predefined modebar buttons to remove.","Similar to `config.modeBarButtonsToRemove` option.",`This may include *${n4.default.foreButtons.join("*, *")}*.`].join(" ")}},_de=bde});var CE=G((Wke,LE)=>{"use strict";var wde=Se(),Rv=kr(),Tde=yt(),Mde=(l4(),Fe(i4)).default;LE.exports=function(r,t){var a=r.modebar||{},n=Tde.newContainer(t,"modebar");function i(o,s){return wde.coerce(a,n,Mde,o,s)}i("orientation"),i("bgcolor",Rv.addOpacity(t.paper_bgcolor,.5));var l=Rv.contrast(Rv.rgb(t.modebar.bgcolor));i("color",Rv.addOpacity(l,.3)),i("activecolor",Rv.addOpacity(l,.7)),i("uirevision",t.uirevision),i("add"),i("remove")}});var PE=G((Zke,DE)=>{"use strict";var o4=Er(),Ade=Gr(),cp=Se(),SE=W1(),kde=Mc().version,Lde=new DOMParser;function qE(e){this.container=e.container,this.element=document.createElement("div"),this.update(e.graphInfo,e.buttons),this.container.appendChild(this.element)}var Sl=qE.prototype;Sl.update=function(e,r){this.graphInfo=e;var t=this.graphInfo._context,a=this.graphInfo._fullLayout,n="modebar-"+a._uid;this.element.setAttribute("id",n),this.element.setAttribute("role","toolbar"),this._uid=n,this.element.className="modebar modebar--custom",t.displayModeBar==="hover"&&(this.element.className+=" modebar--hover ease-bg"),a.modebar.orientation==="v"&&(this.element.className+=" vertical",r=r.reverse());var i=a.modebar,l="#"+n+" .modebar-group";document.querySelectorAll(l).forEach(function(c){c.style.backgroundColor=i.bgcolor});var o=!this.hasButtons(r),s=this.hasLogo!==t.displaylogo,u=this.locale!==t.locale;if(this.locale=t.locale,(o||s||u)&&(this.removeAllButtons(),this.updateButtons(r),t.watermark||t.displaylogo)){var f=this.getLogo();t.watermark&&(f.className=f.className+" watermark"),a.modebar.orientation==="v"?this.element.insertBefore(f,this.element.childNodes[0]):this.element.appendChild(f),this.hasLogo=!0}this.updateActiveButton(),cp.setStyleOnHover("#"+n+" .modebar-btn",".active",".icon path","fill: "+i.activecolor,"fill: "+i.color,this.element)};Sl.updateButtons=function(e){var r=this;this.buttons=e,this.buttonElements=[],this.buttonsNames=[],this.buttons.forEach(function(t){var a=r.createGroup();t.forEach(function(n){var i=n.name;if(!i)throw new Error("must provide button 'name' in button config");if(r.buttonsNames.indexOf(i)!==-1)throw new Error("button name '"+i+"' is taken");r.buttonsNames.push(i);var l=r.createButton(n);r.buttonElements.push(l),a.appendChild(l)}),r.element.appendChild(a)})};Sl.createGroup=function(){var e=document.createElement("div");e.className="modebar-group";var r=this.graphInfo._fullLayout.modebar;return e.style.backgroundColor=r.bgcolor,e};Sl.createButton=function(e){var r=this,t=document.createElement("button");t.setAttribute("type","button"),t.setAttribute("rel","tooltip"),t.className="modebar-btn";var a=e.title;a===void 0?a=e.name:typeof a=="function"&&(a=a(this.graphInfo)),(a||a===0)&&(t.setAttribute("data-title",a),t.setAttribute("aria-label",a)),e.attr!==void 0&&t.setAttribute("data-attr",e.attr);var n=e.val;n!==void 0&&(typeof n=="function"&&(n=n(this.graphInfo)),t.setAttribute("data-val",n));var i=e.click;if(typeof i!="function")throw new Error("must provide button 'click' function in button config");t.addEventListener("click",function(o){e.click(r.graphInfo,o),r.updateActiveButton(o.currentTarget)}),t.setAttribute("data-toggle",e.toggle||!1),e.toggle&&o4.select(t).classed("active",!0);var l=e.icon;return typeof l=="function"?t.appendChild(l()):t.appendChild(this.createIcon(l||SE.question)),t.setAttribute("data-gravity",e.gravity||"n"),t};Sl.createIcon=function(e){var r=Ade(e.height)?Number(e.height):e.ascent-e.descent,t="http://www.w3.org/2000/svg",a;if(e.path){a=document.createElementNS(t,"svg"),a.setAttribute("viewBox",[0,0,e.width,r].join(" ")),a.setAttribute("class","icon");var n=document.createElementNS(t,"path");n.setAttribute("d",e.path),e.transform?n.setAttribute("transform",e.transform):e.ascent!==void 0&&n.setAttribute("transform","matrix(1 0 0 -1 0 "+e.ascent+")"),a.appendChild(n)}if(e.svg){var i=Lde.parseFromString(e.svg,"application/xml");a=i.childNodes[0]}return a.setAttribute("height","1em"),a.setAttribute("width","1em"),a};Sl.updateActiveButton=function(e){var r=this.graphInfo._fullLayout,t=e!==void 0?e.getAttribute("data-attr"):null;this.buttonElements.forEach(function(a){var n=a.getAttribute("data-val")||!0,i=a.getAttribute("data-attr"),l=a.getAttribute("data-toggle")==="true",o=o4.select(a),s=function(c,v){var h=r.modebar,p=c.querySelector(".icon path");p&&(v||c.matches(":hover")?p.style.fill=h.activecolor:p.style.fill=h.color)};if(l){if(i===t){var u=!o.classed("active");o.classed("active",u),s(a,u)}}else{var f=i===null?i:cp.nestedProperty(r,i).get();o.classed("active",f===n),s(a,f===n)}})};Sl.hasButtons=function(e){var r=this.buttons;if(!r||e.length!==r.length)return!1;for(var t=0;t{"use strict";var qde=va(),EE=Jn(),s4=Ar(),Dde=Wi().isUnifiedHover,Pde=PE(),vp=t4(),Ede=a4().DRAW_MODES,Rde=Se().extendDeep;RE.exports=function(r){var t=r._fullLayout,a=r._context,n=t._modeBar;if(!a.displayModeBar&&!a.watermark){n&&(n.destroy(),delete t._modeBar);return}if(!Array.isArray(a.modeBarButtonsToRemove))throw new Error(["*modeBarButtonsToRemove* configuration options","must be an array."].join(" "));if(!Array.isArray(a.modeBarButtonsToAdd))throw new Error(["*modeBarButtonsToAdd* configuration options","must be an array."].join(" "));var i=a.modeBarButtons,l;Array.isArray(i)&&i.length?l=Hde(i):!a.displayModeBar&&a.watermark?l=[]:l=zde(r),n?n.update(r,l):t._modeBar=Pde(r,l)};function zde(e){var r=e._fullLayout,t=e._fullData,a=e._context;function n(V,X){if(typeof X=="string"){if(X.toLowerCase()===V.toLowerCase())return!0}else{var W=X.name,U=X._cat||X.name;if(W===V||U===V.toLowerCase())return!0}return!1}var i=r.modebar.add;typeof i=="string"&&(i=[i]);var l=r.modebar.remove;typeof l=="string"&&(l=[l]);var o=a.modeBarButtonsToAdd.concat(i.filter(function(V){for(var X=0;X1?(D=["toggleHover"],P=["resetViews"]):c?(S=["zoomInGeo","zoomOutGeo"],D=["hoverClosestGeo"],P=["resetGeo"]):f?(D=["hoverClosest3d"],P=["resetCameraDefault3d","resetCameraLastSave3d"]):m?(S=["zoomInMap","zoomOutMap"],D=["toggleHover"],P=["resetViewMap"]):v?D=["hoverClosestPie"]:_?(D=["hoverClosestCartesian","hoverCompareCartesian"],P=["resetViewSankey"]):D=["toggleHover"],u&&D.push("toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"),(Ide(t)||b)&&(D=[]),u&&!w&&(S=["zoomIn2d","zoomOut2d","autoScale2d"],P[0]!=="resetViews"&&(P=["resetScale2d"])),f?R=["zoom3d","pan3d","orbitRotation","tableRotation"]:u&&!w||p?R=["zoom2d","pan2d"]:m||c?R=["pan2d"]:y&&(R=["zoom2d"]),Nde(t)&&R.push("select2d","lasso2d");var F=[],B=function(V){F.indexOf(V)===-1&&D.indexOf(V)!==-1&&F.push(V)};if(Array.isArray(o)){for(var H=[],N=0;N{"use strict";FE.exports={moduleType:"component",name:"modebar",layoutAttributes:(l4(),Fe(i4)).default,supplyLayoutDefaults:CE(),manage:zE()}});var f4=G((Kke,NE)=>{"use strict";var Ode=(Xa(),Fe(Va)).FROM_BL;NE.exports=function(r,t,a){a===void 0&&(a=Ode[r.constraintoward||"center"]);var n=[r.r2l(r.range[0]),r.r2l(r.range[1])],i=n[0]+(n[1]-n[0])*a;r.range=r._input.range=[r.l2r(i+(n[0]-i)*t),r.l2r(i+(n[1]-i)*t)],r.setScale()}});var mu=G(zv=>{"use strict";var pu=Se(),c4=mv(),$i=va().id2name,Yde=Zn(),IE=f4(),Gde=h1(),Ude=(Rt(),Fe(Nt)).ALMOST_EQUAL,Vde=(Xa(),Fe(Va)).FROM_BL;zv.handleDefaults=function(e,r,t){var a=t.axIds,n=t.axHasImage,i=r._axisConstraintGroups=[],l=r._axisMatchGroups=[],o,s,u,f,c,v,h,p;for(o=0;oi?t.slice(i):a.slice(n))+l}function Wde(e,r){for(var t=r._size,a=t.h/t.w,n={},i=Object.keys(e),l=0;lUde*p&&!_)){for(i=0;iF&&WP&&(P=W);var $=(P-D)/(2*R);c/=$,D=s.l2r(D),P=s.l2r(P),s.range=s._input.range=A{"use strict";var hp=Er(),gn=Ar(),ti=Jt(),bi=Se(),h4=ba(),p4=X1(),Fv=kr(),vf=$r(),YE=hv(),WE=u4(),Nv=Qr(),eo=(Xa(),Fe(Va)),ZE=mu(),Zde=ZE.enforce,Jde=ZE.clean,GE=mv().doAutoRange,JE="start",$de="middle",$E="end",Kde=(La(),Fe(ka)).zindexSeparator;Sa.layoutStyles=function(e){return bi.syncOrAsync([ti.doAutoMargin,Qde],e)};function jde(e,r,t){for(var a=0;a=e[1]||n[1]<=e[0])&&i[0]r[0])return!0}return!1}function Qde(e){var r=e._fullLayout,t=r._size,a=t.p,n=Nv.list(e,"",!0),i,l,o,s,u,f;if(r._paperdiv.style({width:e._context.responsive&&r.autosize&&!e._context._hasZeroWidth&&!e.layout.width?"100%":r.width+"px",height:e._context.responsive&&r.autosize&&!e._context._hasZeroHeight&&!e.layout.height?"100%":r.height+"px"}).selectAll(".main-svg").call(vf.setSize,r.width,r.height),e._context.setBackground(e,r.paper_bgcolor),Sa.drawMainTitle(e),WE.manage(e),!r._has("cartesian"))return ti.previousPromises(e);function c(ce,Te,Ne){var ge=ce._lw/2;if(ce._id.charAt(0)==="x"){if(Te){if(Ne==="top")return Te._offset-a-ge}else return t.t+t.h*(1-(ce.position||0))+ge%1;return Te._offset+Te._length+a+ge}if(Te){if(Ne==="right")return Te._offset+Te._length+a+ge}else return t.l+t.w*(ce.position||0)+ge%1;return Te._offset-a-ge}for(i=0;i0){ahe(e,i,u,s),o.attr({x:l,y:i,"text-anchor":a,dy:XE(r.yanchor)}).call(h4.positionText,l,i);var f=(r.text.match(h4.BR_TAG_ALL)||[]).length;if(f){var c=eo.LINE_SPACING*f+eo.MID_SHIFT;r.y===0&&(c=-c),o.selectAll(".line").each(function(){var y=+this.getAttribute("dy").slice(0,-2)-c+"em";this.setAttribute("dy",y)})}var v=hp.select(e).selectAll(".gtitle-subtitle");if(v.node()){var h=o.node().getBBox(),p=h.y+h.height,m=p+YE.SUBTITLE_PADDING_EM*r.subtitle.font.size;v.attr({x:l,y:m,"text-anchor":a,dy:XE(r.yanchor)}).call(h4.positionText,l,m)}}}};function ehe(e,r,t,a,n){var i=r.yref==="paper"?e._fullLayout._size.h:e._fullLayout.height,l=bi.isTopAnchor(r)?a:a-n,o=t==="b"?i-l:l;return bi.isTopAnchor(r)&&t==="t"||bi.isBottomAnchor(r)&&t==="b"?!1:o.5?"t":"b",l=e._fullLayout.margin[i],o=0;return r.yref==="paper"?o=t+r.pad.t+r.pad.b:r.yref==="container"&&(o=rhe(i,a,n,e._fullLayout.height,t)+r.pad.t+r.pad.b),o>l?o:0}function ahe(e,r,t,a){var n="title.automargin",i=e._fullLayout.title,l=i.y>.5?"t":"b",o={x:i.x,y:i.y,t:0,b:0},s={};i.yref==="paper"&&ehe(e,i,l,r,a)?o[l]=t:i.yref==="container"&&(s[l]=t,e._fullLayout._reservedMargin[n]=s),ti.allowAutoMargin(e,n),ti.autoMargin(e,n,o)}function nhe(e,r){var t=e.title,a=e._size,n=0;return r===JE?n=t.pad.l:r===$E&&(n=-t.pad.r),t.xref==="paper"?a.l+a.w*t.x+n:e.width*t.x+n}function ihe(e,r){var t=e.title,a=e._size,n=0;return r==="0em"||!r?n=-t.pad.b:r===eo.CAP_SHIFT+"em"&&(n=t.pad.t),t.y==="auto"?a.t/2:t.yref==="paper"?a.t+a.h-a.h*t.y+n:e.height-e.height*t.y+n}function XE(e){return e==="top"?eo.CAP_SHIFT+.3+"em":e==="bottom"?"-0.3em":eo.MID_SHIFT+"em"}function lhe(e){var r=e.title,t=$de;return bi.isRightAnchor(r)?t=$E:bi.isLeftAnchor(r)&&(t=JE),t}function ohe(e){var r=e.title,t="0em";return bi.isTopAnchor(r)?t=eo.CAP_SHIFT+"em":bi.isMiddleAnchor(r)&&(t=eo.MID_SHIFT+"em"),t}Sa.doTraceStyle=function(e){var r=e.calcdata,t=[],a;for(a=0;a{"use strict";var she=Uo().readPaths,uhe=ap(),KE=Ro().clearOutlineControllers,m4=kr(),jE=$r(),fhe=yt().arrayEditor,QE=Wo(),che=QE.getPathString;rR.exports={draw:mp,drawOne:eR,activateLastSelection:hhe};function mp(e){var r=e._fullLayout;KE(e),r._selectionLayer.selectAll("path").remove();for(var t in r._plots){var a=r._plots[t].selectionLayer;a&&a.selectAll("path").remove()}for(var n=0;n=0;y--){var x=l.append("path").attr(s).style("opacity",y?.1:u).call(m4.stroke,c).call(m4.fill,f).call(jE.dashLine,y?"solid":h,y?4+v:v);if(vhe(x,e,a),p){var _=fhe(e.layout,"selections",a);x.style({cursor:"move"});var w={element:x.node(),plotinfo:n,gd:e,editHelpers:_,isActiveSelection:!0},b=she(o,e);uhe(b,x,w)}else x.style("pointer-events",y?"all":"none");m[y]=x}var M=m[0],A=m[1];A.node().addEventListener("click",function(){return dhe(e,M)})}}function vhe(e,r,t){var a=t.xref+t.yref;jE.setClipUrl(e,"clip"+r._fullLayout._uid+a,r)}function dhe(e,r){if(yp(e)){var t=r.node(),a=+t.getAttribute("data-index");if(a>=0){if(a===e._fullLayout._activeSelectionIndex){y4(e);return}e._fullLayout._activeSelectionIndex=a,e._fullLayout._deactivateSelection=y4,mp(e)}}}function hhe(e){if(yp(e)){var r=e._fullLayout.selections.length-1;e._fullLayout._activeSelectionIndex=r,e._fullLayout._deactivateSelection=y4,mp(e)}}function y4(e){if(yp(e)){var r=e._fullLayout._activeSelectionIndex;r>=0&&(KE(e),delete e._fullLayout._activeSelectionIndex,mp(e))}}});var aR=G((rLe,tR)=>{function phe(){var e,r=0,t=!1;function a(n,i){return e.list.push({type:n,data:i?JSON.parse(JSON.stringify(i)):void 0}),e}return e={list:[],segmentId:function(){return r++},checkIntersection:function(n,i){return a("check",{seg1:n,seg2:i})},segmentChop:function(n,i){return a("div_seg",{seg:n,pt:i}),a("chop",{seg:n,pt:i})},statusRemove:function(n){return a("pop_seg",{seg:n})},segmentUpdate:function(n){return a("seg_update",{seg:n})},segmentNew:function(n,i){return a("new_seg",{seg:n,primary:i})},segmentRemove:function(n){return a("rem_seg",{seg:n})},tempStatus:function(n,i,l){return a("temp_status",{seg:n,above:i,below:l})},rewind:function(n){return a("rewind",{seg:n})},status:function(n,i,l){return a("status",{seg:n,above:i,below:l})},vert:function(n){return n===t?e:(t=n,a("vert",{x:n}))},log:function(n){return typeof n!="string"&&(n=JSON.stringify(n,!1," ")),a("log",{txt:n})},reset:function(){return a("reset")},selected:function(n){return a("selected",{segs:n})},chainStart:function(n){return a("chain_start",{seg:n})},chainRemoveHead:function(n,i){return a("chain_rem_head",{index:n,pt:i})},chainRemoveTail:function(n,i){return a("chain_rem_tail",{index:n,pt:i})},chainNew:function(n,i){return a("chain_new",{pt1:n,pt2:i})},chainMatch:function(n){return a("chain_match",{index:n})},chainClose:function(n){return a("chain_close",{index:n})},chainAddHead:function(n,i){return a("chain_add_head",{index:n,pt:i})},chainAddTail:function(n,i){return a("chain_add_tail",{index:n,pt:i})},chainConnect:function(n,i){return a("chain_con",{index1:n,index2:i})},chainReverse:function(n){return a("chain_rev",{index:n})},chainJoin:function(n,i){return a("chain_join",{index1:n,index2:i})},done:function(){return a("done")}},e}tR.exports=phe});var iR=G((tLe,nR)=>{function mhe(e){typeof e!="number"&&(e=1e-10);var r={epsilon:function(t){return typeof t=="number"&&(e=t),e},pointAboveOrOnLine:function(t,a,n){var i=a[0],l=a[1],o=n[0],s=n[1],u=t[0],f=t[1];return(o-i)*(f-l)-(s-l)*(u-i)>=-e},pointBetween:function(t,a,n){var i=t[1]-a[1],l=n[0]-a[0],o=t[0]-a[0],s=n[1]-a[1],u=o*l+i*s;if(u-e)},pointsSameX:function(t,a){return Math.abs(t[0]-a[0])e!=o-i>e&&(l-f)*(i-c)/(o-c)+f-n>e&&(s=!s),l=f,o=c}return s}};return r}nR.exports=mhe});var oR=G((aLe,lR)=>{var yhe={create:function(){var e={root:{root:!0,next:null},exists:function(r){return!(r===null||r===e.root)},isEmpty:function(){return e.root.next===null},getHead:function(){return e.root.next},insertBefore:function(r,t){for(var a=e.root,n=e.root.next;n!==null;){if(t(n)){r.prev=n.prev,r.next=n,n.prev.next=r,n.prev=r;return}a=n,n=n.next}a.next=r,r.prev=a,r.next=null},findTransition:function(r){for(var t=e.root,a=e.root.next;a!==null&&!r(a);)t=a,a=a.next;return{before:t===e.root?null:t,after:a,insert:function(n){return n.prev=t,n.next=a,t.next=n,a!==null&&(a.prev=n),n}}}};return e},node:function(e){return e.prev=null,e.next=null,e.remove=function(){e.prev.next=e.next,e.next&&(e.next.prev=e.prev),e.prev=null,e.next=null},e}};lR.exports=yhe});var uR=G((nLe,sR)=>{var Iv=oR();function ghe(e,r,t){function a(p,m){return{id:t?t.segmentId():-1,start:p,end:m,myFill:{above:null,below:null},otherFill:null}}function n(p,m,y){return{id:t?t.segmentId():-1,start:p,end:m,myFill:{above:y.myFill.above,below:y.myFill.below},otherFill:null}}var i=Iv.create();function l(p,m,y,x,_,w){var b=r.pointsCompare(m,_);return b!==0?b:r.pointsSame(y,w)?0:p!==x?p?1:-1:r.pointAboveOrOnLine(y,x?_:w,x?w:_)?1:-1}function o(p,m){i.insertBefore(p,function(y){var x=l(p.isStart,p.pt,m,y.isStart,y.pt,y.other.pt);return x<0})}function s(p,m){var y=Iv.node({isStart:!0,pt:p.start,seg:p,primary:m,other:null,status:null});return o(y,p.end),y}function u(p,m,y){var x=Iv.node({isStart:!1,pt:m.end,seg:m,primary:y,other:p,status:null});p.other=x,o(x,p.pt)}function f(p,m){var y=s(p,m);return u(y,p,m),y}function c(p,m){t&&t.segmentChop(p.seg,m),p.other.remove(),p.seg.end=m,p.other.pt=m,o(p.other,p.pt)}function v(p,m){var y=n(m,p.seg.end,p.seg);return c(p,m),f(y,p.primary)}function h(p,m){var y=Iv.create();function x(N,Y){var O=N.seg.start,V=N.seg.end,X=Y.seg.start,W=Y.seg.end;return r.pointsCollinear(O,X,W)?r.pointsCollinear(V,X,W)||r.pointAboveOrOnLine(V,X,W)?1:-1:r.pointAboveOrOnLine(O,X,W)?1:-1}function _(N){return y.findTransition(function(Y){var O=x(N,Y.ev);return O>0})}function w(N,Y){var O=N.seg,V=Y.seg,X=O.start,W=O.end,U=V.start,$=V.end;t&&t.checkIntersection(O,V);var re=r.linesIntersect(X,W,U,$);if(re===!1){if(!r.pointsCollinear(X,W,U)||r.pointsSame(X,$)||r.pointsSame(W,U))return!1;var se=r.pointsSame(X,U),oe=r.pointsSame(W,$);if(se&&oe)return Y;var K=!se&&r.pointBetween(X,U,$),me=!oe&&r.pointBetween(W,U,$);if(se)return me?v(Y,W):v(N,$),Y;K&&(oe||(me?v(Y,W):v(N,$)),v(Y,X))}else re.alongA===0&&(re.alongB===-1?v(N,U):re.alongB===0?v(N,re.pt):re.alongB===1&&v(N,$)),re.alongB===0&&(re.alongA===-1?v(Y,X):re.alongA===0?v(Y,re.pt):re.alongA===1&&v(Y,W));return!1}for(var b=[];!i.isEmpty();){var M=i.getHead();if(t&&t.vert(M.pt[0]),M.isStart){let N=function(){if(k){var Y=w(M,k);if(Y)return Y}return S?w(M,S):!1};var H=N;t&&t.segmentNew(M.seg,M.primary);var A=_(M),k=A.before?A.before.ev:null,S=A.after?A.after.ev:null;t&&t.tempStatus(M.seg,k?k.seg:!1,S?S.seg:!1);var D=N();if(D){if(e){var P;M.seg.myFill.below===null?P=!0:P=M.seg.myFill.above!==M.seg.myFill.below,P&&(D.seg.myFill.above=!D.seg.myFill.above)}else D.seg.otherFill=M.seg.myFill;t&&t.segmentUpdate(D.seg),M.other.remove(),M.remove()}if(i.getHead()!==M){t&&t.rewind(M.seg);continue}if(e){var P;M.seg.myFill.below===null?P=!0:P=M.seg.myFill.above!==M.seg.myFill.below,S?M.seg.myFill.below=S.seg.myFill.above:M.seg.myFill.below=p,P?M.seg.myFill.above=!M.seg.myFill.below:M.seg.myFill.above=M.seg.myFill.below}else if(M.seg.otherFill===null){var R;S?M.primary===S.primary?R=S.seg.otherFill.above:R=S.seg.myFill.above:R=M.primary?m:p,M.seg.otherFill={above:R,below:R}}t&&t.status(M.seg,k?k.seg:!1,S?S.seg:!1),M.other.status=A.insert(Iv.node({ev:M}))}else{var F=M.status;if(F===null)throw new Error("PolyBool: Zero-length segment detected; your epsilon is probably too small or too large");if(y.exists(F.prev)&&y.exists(F.next)&&w(F.prev.ev,F.next.ev),t&&t.statusRemove(F.ev.seg),F.remove(),!M.primary){var B=M.seg.myFill;M.seg.myFill=M.seg.otherFill,M.seg.otherFill=B}b.push(M.seg)}i.getHead().remove()}return t&&t.done(),b}return e?{addRegion:function(p){for(var m,y=p[p.length-1],x=0;x{function xhe(e,r,t){var a=[],n=[];return e.forEach(function(i){var l=i.start,o=i.end;if(r.pointsSame(l,o)){console.warn("PolyBool: Warning: Zero-length segment detected; your epsilon is probably too small or too large");return}t&&t.chainStart(i);var s={index:0,matches_head:!1,matches_pt1:!1},u={index:0,matches_head:!1,matches_pt1:!1},f=s;function c(H,N,Y){return f.index=H,f.matches_head=N,f.matches_pt1=Y,f===s?(f=u,!1):(f=null,!0)}for(var v=0;v{function Bv(e,r,t){var a=[];return e.forEach(function(n){var i=(n.myFill.above?8:0)+(n.myFill.below?4:0)+(n.otherFill&&n.otherFill.above?2:0)+(n.otherFill&&n.otherFill.below?1:0);r[i]!==0&&a.push({id:t?t.segmentId():-1,start:n.start,end:n.end,myFill:{above:r[i]===1,below:r[i]===2},otherFill:null})}),t&&t.selected(a),a}var bhe={union:function(e,r){return Bv(e,[0,2,1,0,2,2,0,0,1,0,1,0,0,0,0,0],r)},intersect:function(e,r){return Bv(e,[0,0,0,0,0,2,0,2,0,0,1,1,0,2,1,0],r)},difference:function(e,r){return Bv(e,[0,0,0,0,2,0,2,0,1,1,0,0,0,1,2,0],r)},differenceRev:function(e,r){return Bv(e,[0,2,1,0,0,0,1,1,0,2,0,2,0,0,0,0],r)},xor:function(e,r){return Bv(e,[0,2,1,0,2,0,0,1,1,0,0,2,0,1,2,0],r)}};vR.exports=bhe});var pR=G((oLe,hR)=>{var _he={toPolygon:function(e,r){function t(i){if(i.length<=0)return e.segments({inverted:!1,regions:[]});function l(u){var f=u.slice(0,u.length-1);return e.segments({inverted:!1,regions:[f]})}for(var o=l(i[0]),s=1;s{var whe=aR(),The=iR(),mR=uR(),Mhe=cR(),Hv=dR(),yR=pR(),_i=!1,Ov=The(),Nn;Nn={buildLog:function(e){return e===!0?_i=whe():e===!1&&(_i=!1),_i===!1?!1:_i.list},epsilon:function(e){return Ov.epsilon(e)},segments:function(e){var r=mR(!0,Ov,_i);return e.regions.forEach(r.addRegion),{segments:r.calculate(e.inverted),inverted:e.inverted}},combine:function(e,r){var t=mR(!1,Ov,_i);return{combined:t.calculate(e.segments,e.inverted,r.segments,r.inverted),inverted1:e.inverted,inverted2:r.inverted}},selectUnion:function(e){return{segments:Hv.union(e.combined,_i),inverted:e.inverted1||e.inverted2}},selectIntersect:function(e){return{segments:Hv.intersect(e.combined,_i),inverted:e.inverted1&&e.inverted2}},selectDifference:function(e){return{segments:Hv.difference(e.combined,_i),inverted:e.inverted1&&!e.inverted2}},selectDifferenceRev:function(e){return{segments:Hv.differenceRev(e.combined,_i),inverted:!e.inverted1&&e.inverted2}},selectXor:function(e){return{segments:Hv.xor(e.combined,_i),inverted:e.inverted1!==e.inverted2}},polygon:function(e){return{regions:Mhe(e.segments,Ov,_i),inverted:e.inverted}},polygonFromGeoJSON:function(e){return yR.toPolygon(Nn,e)},polygonToGeoJSON:function(e){return yR.fromPolygon(Nn,Ov,e)},union:function(e,r){return Yv(e,r,Nn.selectUnion)},intersect:function(e,r){return Yv(e,r,Nn.selectIntersect)},difference:function(e,r){return Yv(e,r,Nn.selectDifference)},differenceRev:function(e,r){return Yv(e,r,Nn.selectDifferenceRev)},xor:function(e,r){return Yv(e,r,Nn.selectXor)}};function Yv(e,r,t){var a=Nn.segments(e),n=Nn.segments(r),i=Nn.combine(a,n),l=t(i);return Nn.polygon(l)}typeof window=="object"&&(window.PolyBool=Nn);gR.exports=Nn});var _R=G((uLe,bR)=>{bR.exports=function(r,t,a,n){var i=r[0],l=r[1],o=!1;a===void 0&&(a=0),n===void 0&&(n=t.length);for(var s=n-a,u=0,f=s-1;ul!=p>l&&i<(h-c)*(l-v)/(p-v)+c;m&&(o=!o)}return o}});var b4=G((fLe,wR)=>{"use strict";var x4=mh().dot,gp=(Rt(),Fe(Nt)).BADNUM,xp=wR.exports={};xp.tester=function(r){var t=r.slice(),a=t[0][0],n=a,i=t[0][1],l=i,o;for((t[t.length-1][0]!==t[0][0]||t[t.length-1][1]!==t[0][1])&&t.push(t[0]),o=1;on||x===gp||xl||m&&u(p))}function c(p,m){var y=p[0],x=p[1];if(y===gp||yn||x===gp||xl)return!1;var _=t.length,w=t[0][0],b=t[0][1],M=0,A,k,S,D,P;for(A=1;A<_;A++)if(k=w,S=b,w=t[A][0],b=t[A][1],D=Math.min(k,w),!(yMath.max(k,w)||x>Math.max(S,b)))if(xo||Math.abs(x4(c,u))>n)return!0;return!1};xp.filter=function(r,t){var a=[r[0]],n=0,i=0;function l(s){r.push(s);var u=a.length,f=n;a.splice(i+1);for(var c=f+1;c1){var o=r.pop();l(o)}return{addPt:l,raw:r,filtered:a}}});var TR={};pt(TR,{BENDPX:()=>Ahe,MINSELECT:()=>khe,SELECTDELAY:()=>Lhe,SELECTID:()=>Che});var Ahe,khe,Lhe,Che,MR=Cr(()=>{"use strict";Ahe=1.5,khe=12,Lhe=100,Che="-select"});var XR=G((cLe,VR)=>{"use strict";var AR=xR(),She=_R(),Vv=Ar(),qhe=$r().dashStyle,Gv=kr(),Dhe=xi(),Phe=Wi().makeEventData,$v=lf(),Ehe=$v.freeMode,Rhe=$v.rectMode,Xv=$v.drawMode,M4=$v.openMode,A4=$v.selectMode,kR=Wo(),LR=(Pv(),Fe(Dv)),PR=ap(),ER=Ro().clearOutline,RR=Uo(),_4=RR.handleEllipse,zhe=RR.readPaths,Fhe=ep().newShapes,Nhe=Xb(),Ihe=g4().activateLastSelection,_p=Se(),Bhe=_p.sorterAsc,zR=b4(),Uv=Ch(),wi=va().getFromId,Hhe=X1(),Ohe=pp().redrawReglTraces,wp=(MR(),Fe(TR)),ql=wp.MINSELECT,Yhe=zR.filter,k4=zR.tester,L4=$1(),CR=L4.p2r,Ghe=L4.axValue,Uhe=L4.getTransform;function C4(e){return e.subplot!==void 0}function Vhe(e,r,t,a,n){var i=!C4(a),l=Ehe(n),o=Rhe(n),s=M4(n),u=Xv(n),f=A4(n),c=n==="drawline",v=n==="drawcircle",h=c||v,p=a.gd,m=p._fullLayout,y=f&&m.newselection.mode==="immediate"&&i,x=m._zoomlayer,_=a.element.getBoundingClientRect(),w=a.plotinfo,b=Uhe(w),M=r-_.left,A=t-_.top;m._calcInverseTransform(p);var k=_p.apply3DTransform(m._invTransform)(M,A);M=k[0],A=k[1];var S=m._invScaleX,D=m._invScaleY,P=M,R=A,F="M"+M+","+A,B=a.xaxes[0],H=a.yaxes[0],N=B._length,Y=H._length,O=e.altKey&&!(Xv(n)&&s),V,X,W,U,$,re,se;NR(e,p,a),l&&(V=Yhe([[M,A]],wp.BENDPX));var oe=x.selectAll("path.select-outline-"+w.id).data([1]),K=u?m.newshape:m.newselection;u&&(a.hasText=K.label.text||K.label.texttemplate);var me=u&&!s?K.fillcolor:"rgba(0,0,0,0)",ie=K.line.color||(i?Gv.contrast(p._fullLayout.plot_bgcolor):"#7f7f7f");oe.enter().append("path").attr("class","select-outline select-outline-"+w.id).style({opacity:u?K.opacity/2:1,"stroke-dasharray":qhe(K.line.dash,K.line.width),"stroke-width":K.line.width+"px","shape-rendering":"crispEdges"}).call(Gv.stroke,ie).call(Gv.fill,me).attr("fill-rule","evenodd").classed("cursor-move",!!u).attr("transform",b).attr("d",F+"Z");var Me=x.append("path").attr("class","zoombox-corners").style({fill:Gv.background,stroke:Gv.defaultLine,"stroke-width":1}).attr("transform",b).attr("d","M0,0Z");if(u&&a.hasText){var ue=x.select(".label-temp");ue.empty()&&(ue=x.append("g").classed("label-temp",!0).classed("select-outline",!0).style({opacity:.8}))}var ce=m._uid+wp.SELECTID,Te=[],Ne=Tp(p,a.xaxes,a.yaxes,a.subplot);y&&!e.shiftKey&&(a._clearSubplotSelections=function(){if(i){var qe=B._id,ke=H._id;YR(p,qe,ke,Ne);for(var Le=(p.layout||{}).selections||[],Ce=[],ze=!1,Ae=0;Ae=0){p._fullLayout._deactivateShape(p);return}if(!u){var Le=m.clickmode;Uv.done(ce).then(function(){if(Uv.clear(ce),qe===2){for(oe.remove(),$=0;$-1&&FR(ke,p,a.xaxes,a.yaxes,a.subplot,a,oe),Le==="event"&&Jv(p,void 0);Dhe.click(p,ke,w.id)}).catch(_p.error)}},a.doneFn=function(){Me.remove(),Uv.done(ce).then(function(){Uv.clear(ce),!y&&U&&a.selectionDefs&&(U.subtract=O,a.selectionDefs.push(U),a.mergedPolygons.length=0,[].push.apply(a.mergedPolygons,W)),(y||u)&&Wv(a,y),a.doneFnCompleted&&a.doneFnCompleted(Te),f&&Jv(p,se)}).catch(_p.error)}}function FR(e,r,t,a,n,i,l){var o=r._hoverdata,s=r._fullLayout,u=s.clickmode,f=u.indexOf("event")>-1,c=[],v,h,p,m,y,x,_,w,b,M;if($he(o)){NR(e,r,i),v=Tp(r,t,a,n);var A=Khe(o,v),k=A.pointNumbers.length>0;if(k?jhe(v,A):Qhe(v)&&(_=qR(A))){for(l&&l.remove(),M=0;M=0}function Jhe(e){return e._fullLayout._activeSelectionIndex>=0}function Wv(e,r){var t=e.dragmode,a=e.plotinfo,n=e.gd;Zhe(n)&&n._fullLayout._deactivateShape(n),Jhe(n)&&n._fullLayout._deactivateSelection(n);var i=n._fullLayout,l=i._zoomlayer,o=Xv(t),s=A4(t);if(o||s){var u=l.selectAll(".select-outline-"+a.id);if(u&&n._fullLayout._outlining){var f;o&&(f=Fhe(u,e)),f&&Vv.call("_guiRelayout",n,{shapes:f});var c;s&&!C4(e)&&(c=Nhe(u,e)),c&&(n._fullLayout._noEmitSelectedAtStart=!0,Vv.call("_guiRelayout",n,{selections:c}).then(function(){r&&Ihe(n)})),n._fullLayout._outlining=!1}}a.selection={},a.selection.selectionDefs=e.selectionDefs=[],a.selection.mergedPolygons=e.mergedPolygons=[]}function SR(e){return e._id}function Tp(e,r,t,a){if(!e.calcdata)return[];var n=[],i=r.map(SR),l=t.map(SR),o,s,u;for(u=0;u0,i=n?a[0]:t;return r.selectedpoints?r.selectedpoints.indexOf(i)>-1:!1}function jhe(e,r){var t=[],a,n,i,l;for(l=0;l0&&t.push(a);if(t.length===1&&(i=t[0]===r.searchInfo,i&&(n=r.searchInfo.cd[0].trace,n.selectedpoints.length===r.pointNumbers.length))){for(l=0;l1||(r+=a.selectedpoints.length,r>1)))return!1;return r===1}function Zv(e,r,t){var a,n;for(a=0;a-1&&r;if(!l&&r){var qe=DR(e,!0);if(qe.length){var ke=qe[0].xref,Le=qe[0].yref;if(ke&&Le){var Ce=GR(qe),ze=UR([wi(e,ke,"x"),wi(e,Le,"y")]);ze(Te,Ce)}}e._fullLayout._noEmitSelectedAtStart?e._fullLayout._noEmitSelectedAtStart=!1:ge&&Jv(e,Te),v._reselect=!1}if(!l&&v._deselect){var Ae=v._deselect;o=Ae.xref,s=Ae.yref,t1e(o,s,f)||YR(e,o,s,a),ge&&(Te.points.length?Jv(e,Te):D4(e)),v._deselect=!1}return{eventData:Te,selectionTesters:t}}function r1e(e){var r=e.calcdata;if(r)for(var t=0;t{"use strict";WR.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}]});var Kv={};pt(Kv,{axisRefDescription:()=>o1e});function o1e(e,r,t){return[`If set to a ${e} axis id (e.g. *${e}* or *${e}2*),`,`the \`${e}\` position refers to a ${e} coordinate.`,`If set to *paper*, the \`${e}\` position refers to the distance from the`,`${r} of the plotting area in normalized coordinates where *0* (*1*) corresponds`,`to the ${r} (${t}). If set to a ${e} 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 ${r} of the domain of that`,`axis: e.g., *${e}2 domain* refers to the domain of the second ${e}`,`axis and a ${e} position of 0.5 refers to the point between the ${r}`,`and the ${t} of the domain of the second ${e} axis.`].join(" ")}var jv=Cr(()=>{"use strict"});var df=G((hLe,$R)=>{"use strict";var ZR=P4(),JR=Ta(),Mp=(La(),Fe(ka)),s1e=yt().templatedArray,dLe=(jv(),Fe(Kv));$R.exports=s1e("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:JR({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:ZR.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:ZR.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",Mp.idRegex.x.toString()],editType:"calc"},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",Mp.idRegex.y.toString()],editType:"calc"},xref:{valType:"enumerated",values:["paper",Mp.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",Mp.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:JR({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc"})});var Ap={};pt(Ap,{PTS_LINESONLY:()=>u1e,eventDataKeys:()=>d1e,maxScreensAway:()=>v1e,minTolerance:()=>f1e,toleranceGrowth:()=>c1e});var u1e,f1e,c1e,v1e,d1e,kp=Cr(()=>{"use strict";u1e=20,f1e=.2,c1e=10,v1e=20,d1e=[]});var E4=G((pLe,KR)=>{"use strict";KR.exports=function(r){return{valType:"color",editType:"style",anim:!0}}});var Ki=G((mLe,iz)=>{"use strict";var jR=Xi().axisHoverFormat,{hovertemplateAttrs:h1e,texttemplateAttrs:p1e,templatefallbackAttrs:QR}=Vn(),ez=uv(),m1e=Ta(),rz=Yi().dash,y1e=Yi().pattern,g1e=$r(),x1e=(kp(),Fe(Ap)),Qv=At().extendFlat,b1e=E4();function tz(e){return{valType:"any",dflt:0,editType:"calc"}}function az(e){return{valType:"any",editType:"calc"}}function nz(e){return{valType:"enumerated",values:["start","middle","end"],dflt:"middle",editType:"calc"}}iz.exports={x:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0},x0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",anim:!0},dx:{valType:"number",dflt:1,editType:"calc",anim:!0},y:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0},y0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",anim:!0},dy:{valType:"number",dflt:1,editType:"calc",anim:!0},xperiod:tz("x"),yperiod:tz("y"),xperiod0:az("x0"),yperiod0:az("y0"),xperiodalignment:nz("x"),yperiodalignment:nz("y"),xhoverformat:jR("x"),yhoverformat:jR("y"),offsetgroup:{valType:"string",dflt:"",editType:"calc"},alignmentgroup:{valType:"string",dflt:"",editType:"calc"},stackgroup:{valType:"string",dflt:"",editType:"calc"},orientation:{valType:"enumerated",values:["v","h"],editType:"calc"},groupnorm:{valType:"enumerated",values:["","fraction","percent"],dflt:"",editType:"calc"},stackgaps:{valType:"enumerated",values:["infer zero","interpolate"],dflt:"infer zero",editType:"calc"},text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},texttemplate:p1e(),texttemplatefallback:QR({editType:"calc"}),hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"style"},mode:{valType:"flaglist",flags:["lines","markers","text"],extras:["none"],editType:"calc"},hoveron:{valType:"flaglist",flags:["points","fills"],editType:"style"},hovertemplate:h1e({},{keys:x1e.eventDataKeys}),hovertemplatefallback:QR(),line:{color:{valType:"color",editType:"style",anim:!0},width:{valType:"number",min:0,dflt:2,editType:"style",anim:!0},shape:{valType:"enumerated",values:["linear","spline","hv","vh","hvh","vhv"],dflt:"linear",editType:"plot"},smoothing:{valType:"number",min:0,max:1.3,dflt:1,editType:"plot"},dash:Qv({},rz,{editType:"style"}),backoff:{valType:"number",min:0,dflt:"auto",arrayOk:!0,editType:"plot"},simplify:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},connectgaps:{valType:"boolean",dflt:!1,editType:"calc"},cliponaxis:{valType:"boolean",dflt:!0,editType:"plot"},fill:{valType:"enumerated",values:["none","tozeroy","tozerox","tonexty","tonextx","toself","tonext"],editType:"calc"},fillcolor:b1e(!0),fillgradient:Qv({type:{valType:"enumerated",values:["radial","horizontal","vertical","none"],dflt:"none",editType:"calc"},start:{valType:"number",editType:"calc"},stop:{valType:"number",editType:"calc"},colorscale:{valType:"colorscale",editType:"style"},editType:"calc"}),fillpattern:y1e,marker:Qv({symbol:{valType:"enumerated",values:g1e.symbolList,dflt:"circle",arrayOk:!0,editType:"style"},opacity:{valType:"number",min:0,max:1,arrayOk:!0,editType:"style",anim:!0},angle:{valType:"angle",dflt:0,arrayOk:!0,editType:"plot",anim:!1},angleref:{valType:"enumerated",values:["previous","up"],dflt:"up",editType:"plot",anim:!1},standoff:{valType:"number",min:0,dflt:0,arrayOk:!0,editType:"plot",anim:!0},size:{valType:"number",min:0,dflt:6,arrayOk:!0,editType:"calc",anim:!0},maxdisplayed:{valType:"number",min:0,dflt:0,editType:"plot"},sizeref:{valType:"number",dflt:1,editType:"calc"},sizemin:{valType:"number",min:0,dflt:0,editType:"calc"},sizemode:{valType:"enumerated",values:["diameter","area"],dflt:"diameter",editType:"calc"},line:Qv({width:{valType:"number",min:0,arrayOk:!0,editType:"style",anim:!0},dash:Qv({},rz,{arrayOk:!0}),editType:"calc"},ez("marker.line",{anim:!0})),gradient:{type:{valType:"enumerated",values:["radial","horizontal","vertical","none"],arrayOk:!0,dflt:"none",editType:"calc"},color:{valType:"color",arrayOk:!0,editType:"calc"},editType:"calc"},editType:"calc"},ez("marker",{anim:!0})),selected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style"},color:{valType:"color",editType:"style"},size:{valType:"number",min:0,editType:"style"},editType:"style"},textfont:{color:{valType:"color",editType:"style"},editType:"style"},editType:"style"},unselected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style"},color:{valType:"color",editType:"style"},size:{valType:"number",min:0,editType:"style"},editType:"style"},textfont:{color:{valType:"color",editType:"style"},editType:"style"},editType:"style"},textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right"],dflt:"middle center",arrayOk:!0,editType:"calc"},textfont:m1e({editType:"calc",colorEditType:"style",arrayOk:!0}),zorder:{valType:"integer",dflt:0,editType:"plot"}}});var R4=G((gLe,sz)=>{"use strict";var lz=df(),oz=Ki().line,_1e=Yi().dash,Lp=At().extendFlat,w1e=Oi().overrideAll,T1e=yt().templatedArray,yLe=(jv(),Fe(Kv));sz.exports=w1e(T1e("selection",{type:{valType:"enumerated",values:["rect","path"]},xref:Lp({},lz.xref,{}),yref:Lp({},lz.yref,{}),x0:{valType:"any"},x1:{valType:"any"},y0:{valType:"any"},y1:{valType:"any"},path:{valType:"string",editType:"arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:.7,editType:"arraydraw"},line:{color:oz.color,width:Lp({},oz.width,{min:1,dflt:1}),dash:Lp({},_1e,{dflt:"dot"})}}),"arraydraw","from-root")});var vz=G((xLe,cz)=>{"use strict";var uz=Se(),Cp=Qr(),M1e=mi(),A1e=R4(),fz=Wo();cz.exports=function(r,t){M1e(r,t,{name:"selections",handleItemDefaults:k1e});for(var a=t.selections,n=0;n{"use strict";dz.exports=function(r,t,a){a("newselection.mode");var n=a("newselection.line.width");n&&(a("newselection.line.color"),a("newselection.line.dash")),a("activeselection.fillcolor"),a("activeselection.opacity")}});var e2=G((_Le,yz)=>{"use strict";var L1e=Ar(),pz=Se(),mz=va();yz.exports=function(r){return function(a,n){var i=a[r];if(Array.isArray(i))for(var l=L1e.subplotsRegistry.cartesian,o=l.idRegex,s=n._subplots,u=s.xaxis,f=s.yaxis,c=s.cartesian,v=n._has("cartesian"),h=0;h{"use strict";var gz=g4(),r2=XR();xz.exports={moduleType:"component",name:"selections",layoutAttributes:R4(),supplyLayoutDefaults:vz(),supplyDrawNewSelectionDefaults:hz(),includeBasePlot:e2()("selections"),draw:gz.draw,drawOne:gz.drawOne,reselect:r2.reselect,prepSelect:r2.prepSelect,clearOutline:r2.clearOutline,clearSelectionsCache:r2.clearSelectionsCache,selectOnClick:r2.selectOnClick}});var Bz=G((TLe,Iz)=>{"use strict";var H4=Er(),Ti=Se(),bz=Ti.numberFormat,C1e=pb(),Sp=Ar(),Cz=Ti.strTranslate,S1e=ba(),F4=kr(),Jo=$r(),q1e=xi(),_z=Qr(),D1e=Yo(),P1e=Ji(),Sz=lf(),qp=Sz.selectingOrDrawing,E1e=Sz.freeMode,R1e=(Xa(),Fe(Va)).FROM_TL,z1e=X1(),F1e=pp().redrawReglTraces,N1e=Jt(),N4=va().getFromId,I1e=hf().prepSelect,B1e=hf().clearOutline,H1e=hf().selectOnClick,z4=f4(),O4=(La(),Fe(ka)),wz=O4.MINDRAG,Mn=O4.MINZOOM,Tz=!0;function O1e(e,r,t,a,n,i,l,o){var s=e._fullLayout._zoomlayer,u=l+o==="nsew",f=(l+o).length===1,c,v,h,p,m,y,x,_,w,b,M,A,k,S,D,P,R,F,B,H,N,Y,O;t+=r.yaxis._shift;function V(){if(c=r.xaxis,v=r.yaxis,w=c._length,b=v._length,x=c._offset,_=v._offset,h={},h[c._id]=c,p={},p[v._id]=v,l&&o)for(var le=r.overlays,ye=0;ye=0){Ie._fullLayout._deactivateShape(Ie);return}var Xe=Ie._fullLayout.clickmode;if(B4(Ie),le===2&&!f&&tr(),u)Xe.indexOf("select")>-1&&H1e(ye,Ie,m,y,r.id,U),Xe.indexOf("event")>-1&&q1e.click(Ie,ye,r.id);else if(le===1&&f){var Be=l?v:c,Ze=l==="s"||o==="w"?0:1,Ke=Be._name+".range["+Ze+"]",_r=Y1e(Be,Ze),br="left",Pe="middle";if(Be.fixedrange)return;l?(Pe=l==="n"?"top":"bottom",Be.side==="right"&&(br="right")):o==="e"&&(br="right"),Ie._context.showAxisRangeEntryBoxes&&H4.select(W).call(S1e.makeEditable,{gd:Ie,immediate:!0,background:Ie._fullLayout.paper_bgcolor,text:String(_r),fill:Be.tickfont?Be.tickfont.color:"#444",horizontalAlign:br,verticalAlign:Pe}).on("edit",function(Je){var Ee=Be.d2r(Je);Ee!==void 0&&Sp.call("_guiRelayout",Ie,Ke,Ee)})}}P1e.init(U);var se,oe,K,me,ie,Me,ue,ce,Te,Ne;function ge(le,ye,Ie){var Xe=W.getBoundingClientRect();se=ye-Xe.left,oe=Ie-Xe.top,e._fullLayout._calcInverseTransform(e);var Be=Ti.apply3DTransform(e._fullLayout._invTransform)(se,oe);se=Be[0],oe=Be[1],K={l:se,r:se,w:0,t:oe,b:oe,h:0},me=e._hmpixcount?e._hmlumcount/e._hmpixcount:F4.luminosity(e._fullLayout.plot_bgcolor),ie="M0,0H"+w+"V"+b+"H0V0",Me=!1,ue="xy",Ne=!1,ce=Pz(s,me,x,_,ie),Te=Ez(s,x,_)}function qe(le,ye){if(e._transitioningWithDuration)return!1;var Ie=Math.max(0,Math.min(w,Y*le+se)),Xe=Math.max(0,Math.min(b,O*ye+oe)),Be=Math.abs(Ie-se),Ze=Math.abs(Xe-oe);K.l=Math.min(se,Ie),K.r=Math.max(se,Ie),K.t=Math.min(oe,Xe),K.b=Math.max(oe,Xe);function Ke(){ue="",K.r=K.l,K.t=K.b,Te.attr("d","M0,0Z")}if(M.isSubplotConstrained)Be>Mn||Ze>Mn?(ue="xy",Be/w>Ze/b?(Ze=Be*b/w,oe>Xe?K.t=oe-Ze:K.b=oe+Ze):(Be=Ze*w/b,se>Ie?K.l=se-Be:K.r=se+Be),Te.attr("d",Dp(K))):Ke();else if(A.isSubplotConstrained)if(Be>Mn||Ze>Mn){ue="xy";var _r=Math.min(K.l/w,(b-K.b)/b),br=Math.max(K.r/w,(b-K.t)/b);K.l=_r*w,K.r=br*w,K.b=(1-_r)*b,K.t=(1-br)*b,Te.attr("d",Dp(K))}else Ke();else!S||Ze0){var Je;if(A.isSubplotConstrained||!k&&S.length===1){for(Je=0;Je1&&(Ke.maxallowed!==void 0&&P===(Ke.range[0]1&&(_r.maxallowed!==void 0&&R===(_r.range[0]<_r.range[1]?"n":"s")||_r.minallowed!==void 0&&R===(_r.range[0]<_r.range[1]?"s":"n"))&&(pr=1,pe=0),!(!hr&&!pr)){hr||(hr=1),pr||(pr=1);var Re=Ke._offset-ae/hr,Oe=_r._offset-pe/pr;Ze.clipRect.call(Jo.setTranslate,ae,pe).call(Jo.setScale,hr,pr),Ze.plot.call(Jo.setTranslate,Re,Oe).call(Jo.setScale,1/hr,1/pr),(hr!==Ze.xScaleFactor||pr!==Ze.yScaleFactor)&&(Jo.setPointGroupScale(Ze.zoomScalePts,hr,pr),Jo.setTextPointsScale(Ze.zoomScaleTxt,hr,pr)),Jo.hideOutsideRangePoints(Ze.clipOnAxisFalseTraces,Ze),Ze.xScaleFactor=hr,Ze.yScaleFactor=pr}}}}function Ve(le,ye,Ie){return le.fixedrange?0:P&&M.xaHash[le._id]?ye:R&&(M.isSubplotConstrained?M.xaHash:M.yaHash)[le._id]?Ie:0}function cr(le,ye){return ye?(le.range=le._r.slice(),z4(le,ye),mr(le,ye)):0}function mr(le,ye,Ie){return le._length*(1-ye)*R1e[Ie||le.constraintoward||"middle"]}return W}function qz(e,r,t,a){var n=Ti.ensureSingle(e.draglayer,r,t,function(i){i.classed("drag",!0).style({fill:"transparent","stroke-width":0}).attr("data-subplot",e.id)});return n.call(D1e,a),n.node()}function Dz(e,r,t,a,n,i,l){var o=qz(e,"rect",r,t);return H4.select(o).call(Jo.setRect,a,n,i,l),o}function Mz(e,r){for(var t=0;t=0?Math.min(e,.9):1/(1/Math.max(e,-.3)+3.222))}function U1e(e,r,t){return e?e==="nsew"?t?"":r==="pan"?"move":"crosshair":e.toLowerCase()+"-resize":"pointer"}function Pz(e,r,t,a,n){return e.append("path").attr("class","zoombox").style({fill:r>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("transform",Cz(t,a)).attr("d",n+"Z")}function Ez(e,r,t){return e.append("path").attr("class","zoombox-corners").style({fill:F4.background,stroke:F4.defaultLine,"stroke-width":1,opacity:0}).attr("transform",Cz(r,t)).attr("d","M0,0Z")}function Rz(e,r,t,a,n,i){e.attr("d",a+"M"+t.l+","+t.t+"v"+t.h+"h"+t.w+"v-"+t.h+"h-"+t.w+"Z"),zz(e,r,n,i)}function zz(e,r,t,a){t||(e.transition().style("fill",a>.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),r.transition().style("opacity",1).duration(200))}function B4(e){H4.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function Fz(e){Tz&&e.data&&e._context.showTips&&(Ti.notifier(Ti._(e,"Double-click to zoom back out"),"long",e),Tz=!1)}function V1e(e,r){return"M"+(e.l-.5)+","+(r-Mn-.5)+"h-3v"+(2*Mn+1)+"h3ZM"+(e.r+.5)+","+(r-Mn-.5)+"h3v"+(2*Mn+1)+"h-3Z"}function X1e(e,r){return"M"+(r-Mn-.5)+","+(e.t-.5)+"v-3h"+(2*Mn+1)+"v3ZM"+(r-Mn-.5)+","+(e.b+.5)+"v3h"+(2*Mn+1)+"v-3Z"}function Dp(e){var r=Math.floor(Math.min(e.b-e.t,e.r-e.l,Mn)/2);return"M"+(e.l-3.5)+","+(e.t-.5+r)+"h3v"+-r+"h"+r+"v-3h-"+(r+3)+"ZM"+(e.r+3.5)+","+(e.t-.5+r)+"h-3v"+-r+"h"+-r+"v-3h"+(r+3)+"ZM"+(e.r+3.5)+","+(e.b+.5-r)+"h-3v"+r+"h"+-r+"v3h"+(r+3)+"ZM"+(e.l-3.5)+","+(e.b+.5-r)+"h3v"+r+"h"+r+"v3h-"+(r+3)+"Z"}function kz(e,r,t,a,n){for(var i=!1,l={},o={},s,u,f,c,v=(n||{}).xaHash,h=(n||{}).yaHash,p=0;p{"use strict";var W1e=Er(),Pp=xi(),Z1e=Ji(),J1e=Yo(),ji=Bz().makeDragBox,qa=(La(),Fe(ka)).DRAGGERSIZE;Ep.initInteractions=function(r){var t=r._fullLayout;if(r._context.staticPlot){W1e.select(r).selectAll(".drag").remove();return}if(!(!t._has("cartesian")&&!t._has("splom"))){var a=Object.keys(t._plots||{}).sort(function(i,l){if((t._plots[i].mainplot&&!0)===(t._plots[l].mainplot&&!0)){var o=i.split("y"),s=l.split("y");return o[0]===s[0]?Number(o[1]||1)-Number(s[1]||1):Number(o[0]||1)-Number(s[0]||1)}return t._plots[i].mainplot?1:-1});a.forEach(function(i){var l=t._plots[i],o=l.xaxis,s=l.yaxis;if(!l.mainplot){var u=ji(r,l,o._offset,s._offset,o._length,s._length,"ns","ew");u.onmousemove=function(v){r._fullLayout._rehover=function(){r._fullLayout._hoversubplot===i&&r._fullLayout._plots[i]&&Pp.hover(r,v,i)},Pp.hover(r,v,i),r._fullLayout._lasthover=u,r._fullLayout._hoversubplot=i},u.onmouseout=function(v){r._dragging||(r._fullLayout._hoversubplot=null,Z1e.unhover(r,v))},r._context.showAxisDragHandles&&(ji(r,l,o._offset-qa,s._offset-qa,qa,qa,"n","w"),ji(r,l,o._offset+o._length,s._offset-qa,qa,qa,"n","e"),ji(r,l,o._offset-qa,s._offset+s._length,qa,qa,"s","w"),ji(r,l,o._offset+o._length,s._offset+s._length,qa,qa,"s","e"))}if(r._context.showAxisDragHandles){if(i===o._mainSubplot){var f=o._mainLinePosition;o.side==="top"&&(f-=qa),ji(r,l,o._offset+o._length*.1,f,o._length*.8,qa,"","ew"),ji(r,l,o._offset,f,o._length*.1,qa,"","w"),ji(r,l,o._offset+o._length*.9,f,o._length*.1,qa,"","e")}if(i===s._mainSubplot){var c=s._mainLinePosition;s.side!=="right"&&(c-=qa),ji(r,l,c,s._offset+s._length*.1,qa,s._length*.8,"ns",""),ji(r,l,c,s._offset+s._length*.9,qa,s._length*.1,"s",""),ji(r,l,c,s._offset,qa,s._length*.1,"n","")}}});var n=t._hoverlayer.node();n.onmousemove=function(i){i.target=r._fullLayout._lasthover,Pp.hover(r,i,t._hoversubplot)},n.onclick=function(i){i.target=r._fullLayout._lasthover,Pp.click(r,i)},n.onmousedown=function(i){r._fullLayout._lasthover.onmousedown(i)},Ep.updateFx(r)}};Ep.updateFx=function(e){var r=e._fullLayout,t=r.dragmode==="pan"?"move":"crosshair";J1e(r._draggers,t)}});var Yz=G((ALe,Oz)=>{"use strict";var Hz=Ar();Oz.exports=function(r){for(var t=Hz.layoutArrayContainers,a=Hz.layoutArrayRegexes,n=r.split("[")[0],i,l,o=0;o{"use strict";var $1e=qs(),G4=ph(),t2=To(),K1e=q5().sorterAsc,U4=Ar();a2.containerArrayMatch=Yz();var j1e=a2.isAddVal=function(r){return r==="add"||$1e(r)},Gz=a2.isRemoveVal=function(r){return r===null||r==="remove"};a2.applyContainerArrayChanges=function(r,t,a,n,i){var l=t.astr,o=U4.getComponentMethod(l,"supplyLayoutDefaults"),s=U4.getComponentMethod(l,"draw"),u=U4.getComponentMethod(l,"drawOne"),f=n.replot||n.recalc||o===G4||s===G4,c=r.layout,v=r._fullLayout;if(a[""]){Object.keys(a).length>1&&t2.warn("Full array edits are incompatible with other edits",l);var h=a[""][""];if(Gz(h))t.set(null);else if(Array.isArray(h))t.set(h);else return t2.warn("Unrecognized full array edit value",l,h),!0;return f?!1:(o(c,v),s(r),!0)}var p=Object.keys(a).map(Number).sort(K1e),m=t.get(),y=m||[],x=i(v,l).get(),_=[],w=-1,b=y.length,M,A,k,S,D,P,R,F;for(M=0;My.length-(R?0:1)){t2.warn("index out of range",l,k);continue}if(P!==void 0)D.length>1&&t2.warn("Insertion & removal are incompatible with edits to the same index.",l,k),Gz(P)?_.push(k):R?(P==="add"&&(P={}),y.splice(k,0,P),x&&x.splice(k,0,{})):t2.warn("Unrecognized full object edit value",l,k,P),w===-1&&(w=k);else for(A=0;A=0;M--)y.splice(_[M],1),x&&x.splice(_[M],1);if(y.length?m||t.set(y):t.set(null),f)return!1;if(o(c,v),u!==G4){var B;if(w===-1)B=p;else{for(b=Math.max(y.length,b),B=[],M=0;M=w));M++)B.push(k);for(M=w;M{"use strict";var Zz=Gr(),Jz=Ar(),xn=Se(),n2=Jt(),$z=va(),i2=$z.cleanId,Q1e=$z.getFromTrace,V4=Jz.traceIs,epe=["x","y","z"];Mi.clearPromiseQueue=function(e){Array.isArray(e._promises)&&e._promises.length>0&&xn.log("Clearing previous rejected promises from queue."),e._promises=[]};Mi.cleanLayout=function(e){var r,t;e||(e={}),e.xaxis1&&(e.xaxis||(e.xaxis=e.xaxis1),delete e.xaxis1),e.yaxis1&&(e.yaxis||(e.yaxis=e.yaxis1),delete e.yaxis1),e.scene1&&(e.scene||(e.scene=e.scene1),delete e.scene1);var a=(n2.subplotsRegistry.cartesian||{}).attrRegex,n=(n2.subplotsRegistry.polar||{}).attrRegex,i=(n2.subplotsRegistry.ternary||{}).attrRegex,l=(n2.subplotsRegistry.gl3d||{}).attrRegex,o=Object.keys(e);for(r=0;r3?(y.x=1.02,y.xanchor="left"):y.x<-2&&(y.x=-.02,y.xanchor="right"),y.y>3?(y.y=1.02,y.yanchor="bottom"):y.y<-2&&(y.y=-.02,y.yanchor="top")),e.dragmode==="rotate"&&(e.dragmode="orbit"),e.template&&e.template.layout&&Mi.cleanLayout(e.template.layout),e};function pf(e,r,t=!1){var a=e[r],n=r.charAt(0);t&&Array.isArray(a)||a&&a!=="paper"&&(e[r]=i2(a,n,!0))}Mi.cleanData=function(e){for(var r=0;r0)return e.slice(0,r)}Mi.hasParent=function(e,r){for(var t=Wz(r);t;){if(t in e)return!0;t=Wz(t)}return!1};Mi.clearAxisTypes=function(e,r,t){for(var a=0;a{let t=(...a)=>a.every(n=>xn.isPlainObject(n))||a.every(n=>Array.isArray(n));if([e,r].every(a=>Array.isArray(a))){if(e.length!==r.length)return!1;for(let a=0;axn.isPlainObject(a))){if(Object.keys(e).length!==Object.keys(r).length)return!1;for(let a in e){if(a.startsWith("_"))continue;let n=e[a],i=r[a];if(n!==i&&!(t(n,i)?X4(n,i):!1))return!1}return!0}return!1};Mi.collectionsAreEqual=X4});var K4=G(Kr=>{"use strict";var Ip=Er(),ape=Gr(),npe=V5(),nr=Se(),bt=nr.nestedProperty,Z4=nv(),An=YL(),Ai=Ar(),Vp=H0(),qr=Jt(),bn=Qr(),ipe=hb(),lpe=Zn(),Fp=$r(),ope=kr(),spe=Y4().initInteractions,upe=($s(),Fe(Js)),fpe=hf().clearOutline,tF=wo().dfltConfig,zp=Uz(),ua=Kz(),ft=pp(),$o=Oi(),cpe=(La(),Fe(ka)).AX_NAME_PATTERN,W4=0,jz=5;function vpe(e,r,t,a){var n;if(e=nr.getGraphDiv(e),Z4.init(e),nr.isPlainObject(r)){var i=r;r=i.data,t=i.layout,a=i.config,n=i.frames}var l=Z4.triggerHandler(e,"plotly_beforeplot",[r,t,a]);if(l===!1)return Promise.reject();!r&&!t&&!nr.isPlotDiv(e)&&nr.warn("Calling _doPlot as if redrawing but this container doesn't yet have a plot.",e);function o(){if(n)return Kr.addFrames(e,n)}nF(e,a),t||(t={}),Ip.select(e).classed("js-plotly-plot",!0),Fp.makeTester(),Array.isArray(e._promises)||(e._promises=[]);var s=(e.data||[]).length===0&&Array.isArray(r);Array.isArray(r)&&(ua.cleanData(r),s?e.data=r:e.data.push.apply(e.data,r),e.empty=!1),(!e.layout||s)&&(e.layout=ua.cleanLayout(t)),qr.supplyDefaults(e);var u=e._fullLayout,f=u._has("cartesian");u._replotting=!0,(s||u._shouldCreateBgLayer)&&(Fpe(e),u._shouldCreateBgLayer&&delete u._shouldCreateBgLayer),Fp.initGradients(e),Fp.initPatterns(e),s&&bn.saveShowSpikeInitial(e);var c=!e.calcdata||e.calcdata.length!==(e._fullData||[]).length;c&&qr.doCalcdata(e);for(var v=0;v{nr.isHidden(e)||qr.resize(e)};if(e._context.fillFrame||typeof ResizeObserver=="undefined")window.addEventListener("resize",S),e._clearResponsive=()=>window.removeEventListener("resize",S);else{let D=e.offsetWidth,P=e.offsetHeight,R=new ResizeObserver(()=>{let F=e.offsetWidth,B=e.offsetHeight,H=Math.abs(F-D)>1||Math.abs(B-P)>1;D=F,P=B,H&&F&&B&&S()});R.observe(e),e._clearResponsive=()=>R.disconnect()}}}else nr.clearResponsive(e);let h=document.fonts?[...document.fonts].filter(S=>S.status!=="loaded"):[];var p=nr.extendFlat({},u._size),m=0;function y(){for(var S=u._basePlotModules,D=0;D["loaded","loading"].includes(n.status));if(!t.length)return;let a={};e._fontLoadToken=a,yield Promise.all(t.map(n=>n.loaded.catch(()=>{}))),e._fontLoadToken===a&&(delete e._fontLoadToken,Fp.savedBBoxes={},Kr._doPlot(e))})}function o2(e){var r=e._fullLayout;r._redrawFromAutoMarginCount?r._redrawFromAutoMarginCount--:e.emit("plotly_afterplot")}function hpe(e){return nr.extendFlat(tF,e)}function aF(e,r){try{e._fullLayout._paper.style("background",r)}catch(t){nr.error(t)}}function ppe(e,r){var t=ope.combine(r,"white");aF(e,t)}function nF(e,r){if(!e._context){e._context=nr.extendDeep({},tF);var t=Ip.select("base");e._context._baseUrl=t.size()&&t.attr("href")?window.location.href.split("#")[0]:""}var a=e._context,n,i,l;if(r){for(i=Object.keys(r),n=0;n=e.data.length||n<-e.data.length)throw new Error(t+" must be valid indices for gd.data.");if(r.indexOf(n,a+1)>-1||n>=0&&r.indexOf(-e.data.length+n)>-1||n<0&&r.indexOf(e.data.length+n)>-1)throw new Error("each index in "+t+" must be unique.")}}function iF(e,r,t){if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(typeof r=="undefined")throw new Error("currentIndices is a required argument.");if(Array.isArray(r)||(r=[r]),Hp(e,r,"currentIndices"),typeof t!="undefined"&&!Array.isArray(t)&&(t=[t]),typeof t!="undefined"&&Hp(e,t,"newIndices"),typeof t!="undefined"&&r.length!==t.length)throw new Error("current and new indices must be of equal length.")}function gpe(e,r,t){var a,n;if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(typeof r=="undefined")throw new Error("traces must be defined.");for(Array.isArray(r)||(r=[r]),a=0;a=0&&f=0&&f0&&typeof S.parts[R]!="string";)R--;var F=S.parts[R],B=S.parts[R-1]+"."+F,H=S.parts.slice(0,R).join("."),N=bt(e.layout,H).get(),Y=bt(a,H).get(),O=S.get();if(D!==void 0){x[k]=D,_[k]=F==="reverse"?D:ro(O);var V=Vp.getLayoutValObject(a,S.parts);if(V&&V.impliedEdits&&D!==null)for(var X in V.impliedEdits)w(nr.relativeAttr(k,X),V.impliedEdits[X]);if(["width","height"].indexOf(k)!==-1)if(D){w("autosize",null);var W=k==="height"?"width":"height";w(W,a[W])}else a[k]=e._initialAutoSize[k];else if(k==="autosize")w("width",D?null:a.width),w("height",D?null:a.height);else if(B.match(hF))A(B),bt(a,H+"._inputRange").set(null);else if(B.match(pF)){A(B),bt(a,H+"._inputRange").set(null);var U=bt(a,H).get();U._inputDomain&&(U._input.domain=U._inputDomain.slice())}else B.match(wpe)&&bt(a,H+"._inputDomain").set(null);if(F==="type"){M=N;var $=Y.type==="linear"&&D==="log",re=Y.type==="log"&&D==="linear";if($||re){if(!M||!M.range)w(H+".autorange",!0);else if(Y.autorange)$&&(M.range=M.range[1]>M.range[0]?[1,2]:[2,1]);else{var se=M.range[0],oe=M.range[1];$?(se<=0&&oe<=0&&w(H+".autorange",!0),se<=0?se=oe/1e6:oe<=0&&(oe=se/1e6),w(H+".range[0]",Math.log(se)/Math.LN10),w(H+".range[1]",Math.log(oe)/Math.LN10)):(w(H+".range[0]",Math.pow(10,se)),w(H+".range[1]",Math.pow(10,oe)))}Array.isArray(a._subplots.polar)&&a._subplots.polar.length&&a[S.parts[0]]&&S.parts[1]==="radialaxis"&&delete a[S.parts[0]]._subplot.viewInitial["radialaxis.range"],Ai.getComponentMethod("annotations","convertCoords")(e,Y,D,w),Ai.getComponentMethod("images","convertCoords")(e,Y,D,w)}else w(H+".autorange",!0),w(H+".range",null);bt(a,H+"._inputRange").set(null)}else if(F.match(cpe)){var K=bt(a,k).get(),me=(D||{}).type;(!me||me==="-")&&(me="linear"),Ai.getComponentMethod("annotations","convertCoords")(e,K,me,w),Ai.getComponentMethod("images","convertCoords")(e,K,me,w)}var ie=zp.containerArrayMatch(k);if(ie){f=ie.array,c=ie.index;var Me=ie.property,ue=V||{editType:"calc"};c!==""&&Me===""&&(zp.isAddVal(D)?_[k]=null:zp.isRemoveVal(D)?_[k]=(bt(t,f).get()||[])[c]:nr.warn("unrecognized full object value",r)),$o.update(y,ue),u[f]||(u[f]={});var ce=u[f][c];ce||(ce=u[f][c]={}),ce[Me]=D,delete r[k]}else F==="reverse"?(N.range?N.range.reverse():(w(H+".autorange",!0),N.range=[1,0]),Y.autorange?y.calc=!0:y.plot=!0):(k==="dragmode"&&(D===!1&&O!==!1||D!==!1&&O===!1)||a._has("scatter-like")&&a._has("regl")&&k==="dragmode"&&(D==="lasso"||D==="select")&&!(O==="lasso"||O==="select")?y.plot=!0:V?$o.update(y,V):y.calc=!0,S.set(D))}}for(f in u){var Te=zp.applyContainerArrayChanges(e,i(t,f),u[f],y,i);Te||(y.plot=!0)}for(var Ne in b){M=bn.getFromId(e,Ne);var ge=M&&M._constraintGroup;if(ge){y.calc=!0;for(var qe in ge)b[qe]||(bn.getFromId(e,qe)._constraintShrinkable=!0)}}(yF(e)||r.height||r.width)&&(y.plot=!0);var ke=a.shapes;for(c=0;c1;)if(a.pop(),t=bt(r,a.join(".")+".uirevision").get(),t!==void 0)return t;return r.uirevision}function Ape(e,r){for(var t=0;t[H,e._ev.listeners(H)]);i=Kr.newPlot(e,r,t,a).then(()=>{for(let[H,N]of B)N.forEach(Y=>e.on(H,Y));return Kr.react(e,r,t,a)})}else{e.data=r||[],ua.cleanData(e.data),e.layout=t||{},ua.cleanLayout(e.layout),Lpe(e.data,e.layout,o,s),qr.supplyDefaults(e,{skipUpdateCalc:!0});var c=e._fullData,v=e._fullLayout,h=v.datarevision===void 0,p=v.transition,m=qpe(e,s,v,h,p),y=m.newDataRevision,x=Spe(e,o,c,h,p,y);if(yF(e)&&(m.layoutReplot=!0),x.calc||m.calc){e.calcdata=void 0;for(var _=Object.getOwnPropertyNames(v),w=0;w<_.length;w++){var b=_[w],M=b.substring(0,5);if(M==="xaxis"||M==="yaxis"){var A=v[b]._emptyCategories;A&&A()}}}else qr.supplyDefaultsUpdateCalc(e.calcdata,c);var k=[];if(n&&(e._transitionData={},qr.createTransitionData(e),k.push(l)),v.transition&&(x.anim||m.anim))m.ticks&&k.push(ft.doTicksRelayout),qr.doCalcdata(e),ft.doAutoRangeAndConstraints(e),k.push(function(){return qr.transitionFromReact(e,x,m,s)});else if(x.fullReplot||m.layoutReplot)e._fullLayout._skipDefaults=!0,k.push(Kr._doPlot);else{for(var S in m.arrays){var D=m.arrays[S];if(D.length){var P=Ai.getComponentMethod(S,"drawOne");if(P!==nr.noop)for(var R=0;R(f||e.emit("plotly_react",{config:a,data:r,layout:t}),e))}function Spe(e,r,t,a,n,i){var l=r.length===t.length;if(!n&&!l)return{fullReplot:!0,calc:!0};var o=$o.traceFlags();o.arrays={},o.nChanges=0,o.nChangesAnim=0;var s,u;function f(h){var p=Vp.getTraceValObject(u,h);return!u._module.animatable&&p.anim&&(p.anim=!1),p}var c={getValObject:f,flags:o,immutable:a,transition:n,newDataRevision:i,gd:e},v={};for(s=0;s=n.length?n[0]:n[u]:n}function o(u){return Array.isArray(i)?u>=i.length?i[0]:i[u]:i}function s(u,f){var c=0;return function(){if(u&&++c===f)return u()}}return new Promise(function(u,f){function c(){if(a._frameQueue.length!==0){for(;a._frameQueue.length;){var F=a._frameQueue.pop();F.onInterrupt&&F.onInterrupt()}e.emit("plotly_animationinterrupted",[])}}function v(F){if(F.length!==0){for(var B=0;Ba._timeToNext&&p()};F()}var y=0;function x(F){return Array.isArray(n)?y>=n.length?F.transitionOpts=n[y]:F.transitionOpts=n[0]:F.transitionOpts=n,y++,F}var _,w,b=[],M=r==null,A=Array.isArray(r),k=!M&&!A&&nr.isPlainObject(r);if(k)b.push({type:"object",data:x(nr.extendFlat({},r))});else if(M||["string","number"].indexOf(typeof r)!==-1)for(_=0;_0&&PP)&&R.push(w);b=R}}b.length>0?v(b):(e.emit("plotly_animated"),u())})}function Ppe(e,r,t){if(e=nr.getGraphDiv(e),r==null)return Promise.resolve();if(!nr.isPlotDiv(e))throw new Error("This element is not a Plotly plot: "+e+". It's likely that you've failed to create a plot before adding frames. For more details, see https://plotly.com/javascript/animations/");var a,n,i,l,o=e._transitionData._frames,s=e._transitionData._frameHash;if(!Array.isArray(r))throw new Error("addFrames failure: frameList must be an Array of frame definitions"+r);var u=o.length+r.length*2,f=[],c={};for(a=r.length-1;a>=0;a--)if(nr.isPlainObject(r[a])){var v=r[a].name,h=(s[v]||c[v]||{}).name,p=r[a].name,m=s[h]||c[h];h&&p&&typeof p=="number"&&m&&W4S.index?-1:k.index=0;a--){if(n=f[a].frame,typeof n.name=="number"&&nr.warn("Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings"),!n.name)for(;s[n.name="frame "+e._transitionData._counter++];);if(s[n.name]){for(i=0;i=0;t--)a=r[t],i.push({type:"delete",index:a}),l.unshift({type:"insert",index:a,value:n[a]});var o=qr.modifyFrames,s=qr.modifyFrames,u=[e,l],f=[e,i];return An&&An.add(e,o,u,s,f),qr.modifyFrames(e,i)}function Rpe(e){e=nr.getGraphDiv(e);var r=e._fullLayout||{},t=e._fullData||[];return qr.cleanPlot([],{},t,r),qr.purge(e),Z4.purge(e),r._container&&r._container.remove(),delete e._context,e}function zpe(e){var r=e._fullLayout,t=e.getBoundingClientRect();if(!nr.equalDomRects(t,r._lastBBox)){var a=r._invTransform=nr.inverseTransformMatrix(nr.getFullTransformMatrix(e));r._invScaleX=Math.sqrt(a[0][0]*a[0][0]+a[0][1]*a[0][1]+a[0][2]*a[0][2]),r._invScaleY=Math.sqrt(a[1][0]*a[1][0]+a[1][1]*a[1][1]+a[1][2]*a[1][2]),r._lastBBox=t}}function Fpe(e){var r=Ip.select(e),t=e._fullLayout;if(t._calcInverseTransform=zpe,t._calcInverseTransform(e),t._container=r.selectAll(".plot-container").data([0]),t._container.enter().insert("div",":first-child").classed("plot-container",!0).classed("plotly",!0).style({width:"100%",height:"100%"}),t._paperdiv=t._container.selectAll(".svg-container").data([0]),t._paperdiv.enter().append("div").classed("user-select-none",!0).classed("svg-container",!0).style("position","relative"),t._glcontainer=t._paperdiv.selectAll(".gl-container").data([{}]),t._glcontainer.enter().append("div").classed("gl-container",!0),t._paperdiv.selectAll(".main-svg").remove(),t._paperdiv.select(".modebar-container").remove(),t._paper=t._paperdiv.insert("svg",":first-child").classed("main-svg",!0),t._toppaper=t._paperdiv.append("svg").classed("main-svg",!0),t._modebardiv=t._paperdiv.append("div"),delete t._modeBar,t._hoverpaper=t._paperdiv.append("svg").classed("main-svg",!0),!t._uid){var a={};Ip.selectAll("defs").each(function(){this.id&&(a[this.id.split("-")[1]]=1)}),t._uid=nr.randstr(a)}t._paperdiv.selectAll(".main-svg").attr(upe.svgAttrs),t._defs=t._paper.append("defs").attr("id","defs-"+t._uid),t._clips=t._defs.append("g").classed("clips",!0),t._topdefs=t._toppaper.append("defs").attr("id","topdefs-"+t._uid),t._topclips=t._topdefs.append("g").classed("clips",!0),t._bgLayer=t._paper.append("g").classed("bglayer",!0),t._draggers=t._paper.append("g").classed("draglayer",!0);var n=t._paper.append("g").classed("layer-below",!0);t._imageLowerLayer=n.append("g").classed("imagelayer",!0),t._shapeLowerLayer=n.append("g").classed("shapelayer",!0),t._cartesianlayer=t._paper.append("g").classed("cartesianlayer",!0),t._polarlayer=t._paper.append("g").classed("polarlayer",!0),t._smithlayer=t._paper.append("g").classed("smithlayer",!0),t._ternarylayer=t._paper.append("g").classed("ternarylayer",!0),t._geolayer=t._paper.append("g").classed("geolayer",!0),t._funnelarealayer=t._paper.append("g").classed("funnelarealayer",!0),t._pielayer=t._paper.append("g").classed("pielayer",!0),t._iciclelayer=t._paper.append("g").classed("iciclelayer",!0),t._treemaplayer=t._paper.append("g").classed("treemaplayer",!0),t._sunburstlayer=t._paper.append("g").classed("sunburstlayer",!0),t._indicatorlayer=t._toppaper.append("g").classed("indicatorlayer",!0),t._glimages=t._paper.append("g").classed("glimages",!0);var i=t._toppaper.append("g").classed("layer-above",!0);t._imageUpperLayer=i.append("g").classed("imagelayer",!0),t._shapeUpperLayer=i.append("g").classed("shapelayer",!0),t._selectionLayer=t._toppaper.append("g").classed("selectionlayer",!0),t._infolayer=t._toppaper.append("g").classed("infolayer",!0),t._menulayer=t._toppaper.append("g").classed("menulayer",!0),t._zoomlayer=t._toppaper.append("g").classed("zoomlayer",!0),t._hoverlayer=t._hoverpaper.append("g").classed("hoverlayer",!0),t._modebardiv.classed("modebar-container",!0).style("position","absolute").style("top","0px").style("right","0px"),e.emit("plotly_framework")}Kr.animate=Dpe;Kr.addFrames=Ppe;Kr.deleteFrames=Epe;Kr.addTraces=fF;Kr.deleteTraces=cF;Kr.extendTraces=sF;Kr.moveTraces=J4;Kr.prependTraces=uF;Kr.newPlot=ype;Kr._doPlot=vpe;Kr.purge=Rpe;Kr.react=Cpe;Kr.redraw=mpe;Kr.relayout=l2;Kr.restyle=Op;Kr.setPlotConfig=hpe;Kr.update=Gp;Kr._guiRelayout=$4(l2);Kr._guiRestyle=$4(Op);Kr._guiUpdate=$4(Gp);Kr._storeDirectGUIEdit=_pe});var yu=G(ki=>{"use strict";var Npe=Ar();ki.getDelay=function(e){return e._has&&(e._has("gl3d")||e._has("map"))?500:0};ki.getRedrawFunc=function(e){return function(){Npe.getComponentMethod("colorbar","draw")(e)}};ki.encodeSVG=function(e){return"data:image/svg+xml,"+encodeURIComponent(e)};ki.encodeJSON=function(e){return"data:application/json,"+encodeURIComponent(e)};var gF=window.URL||window.webkitURL;ki.createObjectURL=function(e){return gF.createObjectURL(e)};ki.revokeObjectURL=function(e){return gF.revokeObjectURL(e)};ki.createBlob=function(e,r){if(r==="svg")return new window.Blob([e],{type:"image/svg+xml;charset=utf-8"});if(r==="full-json")return new window.Blob([e],{type:"application/json;charset=utf-8"});var t=Ipe(window.atob(e));return new window.Blob([t],{type:"image/"+r})};ki.octetStream=function(e){document.location.href="data:application/octet-stream"+e};ki.getPlotTitle=function(e){var a,n,i,l;var r=e._fullLayout;if(r){var t=(a=r.title)==null?void 0:a.text;return t===((n=r._dfltTitle)==null?void 0:n.plot)?void 0:t}return(l=(i=e.layout)==null?void 0:i.title)==null?void 0:l.text};ki.getPlotSubtitle=function(e){var a,n,i,l,o,s;var r=e._fullLayout;if(r){var t=(n=(a=r.title)==null?void 0:a.subtitle)==null?void 0:n.text;return t===((i=r._dfltTitle)==null?void 0:i.subtitle)?void 0:t}return(s=(o=(l=e.layout)==null?void 0:l.title)==null?void 0:o.subtitle)==null?void 0:s.text};function Ipe(e){for(var r=e.length,t=new ArrayBuffer(r),a=new Uint8Array(t),n=0;n{"use strict";var Q4=Er(),DLe=Se(),Bpe=$r(),Hpe=kr(),PLe=($s(),Fe(Js)),j4=/"/g,gu="TOBESTRIPPED",Ope=new RegExp(`("${gu})|(${gu}")|("${gu})|(${gu}")`,"g"),Ype=["&","&","&",""",""",""","'","'","'"],Gpe=["<","<","<"],Upe=[">",">",">"];function Vpe(e){let r=Q4.select("body").append("div").style({display:"none"}).html(""),t=e.replace(/(&[^;]*;)/gi,a=>{let n=a.toLowerCase();return Ype.includes(n)?a:Gpe.includes(n)?"<":Upe.includes(n)?">":a.includes("<")||a.includes(">")?"":r.html(a).text()});return r.remove(),t}function Xpe(e){return e.replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&")}xF.exports=function(r,t,a){var n=r._fullLayout,i=n._paper,l=n._toppaper,o=n.width,s=n.height,u;i.insert("rect",":first-child").call(Bpe.setRect,0,0,o,s).call(Hpe.fill,n.paper_bgcolor);var f=n._basePlotModules||[];for(u=0;u{"use strict";var Wpe=Se(),Zpe=Fh().EventEmitter,s2=yu();function Jpe(e){var r=e.emitter||new Zpe,t=new Promise(function(a,n){var i=window.Image,l=e.svg,o=e.format||"png",s=e.canvas,u=e.scale||1,f=e.width||300,c=e.height||150,v=u*f,h=u*c,p=s.getContext("2d",{willReadFrequently:!0}),m=new i,y,x;o==="svg"||Wpe.isSafari()?x=s2.encodeSVG(l):(y=s2.createBlob(l,"svg"),x=s2.createObjectURL(y)),s.width=v,s.height=h,m.onload=function(){var _;switch(y=null,s2.revokeObjectURL(x),o!=="svg"&&p.drawImage(m,0,0,v,h),o){case"jpeg":_=s.toDataURL("image/jpeg");break;case"png":_=s.toDataURL("image/png");break;case"webp":_=s.toDataURL("image/webp");break;case"svg":_=x;break;default:var w="Image format is not jpeg, png, svg or webp.";if(n(new Error(w)),!e.promise)return r.emit("error",w)}a(_),e.promise||r.emit("success",_)},m.onerror=function(_){if(y=null,s2.revokeObjectURL(x),n(_),!e.promise)return r.emit("error",_)},m.src=x});return e.promise?t:r}bF.exports=Jpe});var r6=G((zLe,TF)=>{"use strict";var _F=Gr(),wF=K4(),$pe=Jt(),Dl=Se(),u2=yu(),Kpe=Wp(),jpe=Zp(),Qpe=Mc().version,e6=(o5(),Fe(l5)).default;function eme(e,r){r=r||{};var t,a,n,i;Dl.isPlainObject(e)?(t=e.data||[],a=e.layout||{},n=e.config||{},i={}):(e=Dl.getGraphDiv(e),t=Dl.extendDeep([],e.data),a=Dl.extendDeep({},e.layout),n=e._context,i=e._fullLayout||{});function l(A){return!(A in r)||Dl.validate(r[A],e6[A])}if(!l("width")&&r.width!==null||!l("height")&&r.height!==null)throw new Error("Height and width should be pixel values.");if(!l("format"))throw new Error("Export format is not "+Dl.join2(e6.format.values,", "," or ")+".");var o={};function s(A,k){return Dl.coerce(r,o,e6,A,k)}var u=s("format"),f=s("width"),c=s("height"),v=s("scale"),h=s("setBackground"),p=s("imageDataOnly"),m=document.createElement("div");m.style.position="absolute",m.style.left="-5000px",document.body.appendChild(m);var y=Dl.extendFlat({},a);f?y.width=f:r.width===null&&_F(i.width)&&(y.width=i.width),c?y.height=c:r.height===null&&_F(i.height)&&(y.height=i.height);var x=Dl.extendFlat({},n,{_exportedPlot:!0,staticPlot:!0,setBackground:h}),_=u2.getRedrawFunc(m);function w(){return new Promise(function(A){setTimeout(A,u2.getDelay(m._fullLayout))})}function b(){return new Promise(function(A,k){var S=Kpe(m,u,v),D=m._fullLayout.width,P=m._fullLayout.height;function R(){wF.purge(m),document.body.removeChild(m)}if(u==="full-json"){var F=$pe.graphJson(m,!1,"object",!0,!0);return F.version=Qpe,F=JSON.stringify(F),R(),A(p?F:u2.encodeJSON(F))}if(R(),u==="svg")return A(p?S:u2.encodeSVG(S));var B=document.createElement("canvas");B.id=Dl.randstr(),jpe({format:u,width:D,height:P,scale:v,canvas:B,svg:S,promise:!0}).then(A).catch(k)})}function M(A){return p?A.replace(u2.IMAGE_URL_PREFIX,""):A}return new Promise(function(A,k){wF.newPlot(m,t,y,x).then(_).then(w).then(b).then(function(S){A(M(S))}).catch(function(S){k(S)})})}TF.exports=eme});var kF=G((FLe,AF)=>{"use strict";var Li=Se(),rme=Jt(),tme=H0(),ame=wo().dfltConfig,Qi=Li.isPlainObject,bu=Array.isArray,t6=Li.isArrayOrTypedArray;AF.exports=function(r,t){r===void 0&&(r=[]),t===void 0&&(t={});var a=tme.get(),n=[],i={_context:Li.extendFlat({},ame)},l,o;bu(r)?(i.data=Li.extendDeep([],r),l=r):(i.data=[],l=[],n.push(Da("array","data"))),Qi(t)?(i.layout=Li.extendDeep({},t),o=t):(i.layout={},o={},arguments.length>1&&n.push(Da("object","layout"))),rme.supplyDefaults(i);for(var s=i._fullData,u=l.length,f=0;fc.length&&a.push(Da("unused",n,u.concat(c.length)));var x=c.length,_=Array.isArray(y);_&&(x=Math.min(x,y.length));var w,b,M,A,k;if(v.dimensions===2)for(b=0;bc[b].length&&a.push(Da("unused",n,u.concat(b,c[b].length)));var S=c[b].length;for(w=0;w<(_?Math.min(S,y[b].length):S);w++)M=_?y[b][w]:y,A=f[b][w],k=c[b][w],Li.validate(A,M)?k!==A&&k!==+A&&a.push(Da("dynamic",n,u.concat(b,w),A,k)):a.push(Da("value",n,u.concat(b,w),A))}else a.push(Da("array",n,u.concat(b),f[b]));else for(b=0;b{"use strict";var fme=Se(),$p=yu();function cme(e,r,t){var a=document.createElement("a"),n="download"in a,i=new Promise(function(l,o){var s,u;if(n)return s=$p.createBlob(e,t),u=$p.createObjectURL(s),a.href=u,a.download=r,document.body.appendChild(a),a.click(),document.body.removeChild(a),$p.revokeObjectURL(u),s=null,l(r);if(fme.isSafari()){var f=t==="svg"?",":";base64,";return $p.octetStream(f+encodeURIComponent(e)),l(r)}o(new Error("download error"))});return i}LF.exports=cme});var a6=G((ILe,PF)=>{"use strict";var Kp=Se(),SF=ba(),vme=r6(),dme=CF(),qF=yu(),DF=40;function hme(e,r){var t;return Kp.isPlainObject(e)||(t=Kp.getGraphDiv(e)),r=r||{},r.format=r.format||"png",r.width=r.width||null,r.height=r.height||null,r.imageDataOnly=!0,new Promise(function(a,n){t&&t._snapshotInProgress&&n(new Error("Image capture already in progress.")),t&&(t._snapshotInProgress=!0);var i=vme(e,r),l=r.filename||e.fn;if(!l){let s=qF.getPlotTitle(e);if(s&&!SF.matchTex(s))l=Kp.slugify(s,DF);else{let u=qF.getPlotSubtitle(e);u&&!SF.matchTex(u)&&(l=Kp.slugify(u,DF))}}var o=l||"plot-image";o+="."+r.format.replace("-","."),i.then(function(s){return t&&(t._snapshotInProgress=!1),dme(s,o,r.format)}).then(function(s){a(s)}).catch(function(s){t&&(t._snapshotInProgress=!1),n(s)})})}PF.exports=hme});var NF=G(n6=>{"use strict";var In=Se(),Bn=In.isPlainObject,EF=H0(),RF=Jt(),pme=qn(),zF=yt(),FF=wo().dfltConfig;n6.makeTemplate=function(e){e=In.isPlainObject(e)?e:In.getGraphDiv(e),e=In.extendDeep({_context:FF},{data:e.data,layout:e.layout}),RF.supplyDefaults(e);var r=e.data||[],t=e.layout||{};t._basePlotModules=e._fullLayout._basePlotModules,t._modules=e._fullLayout._modules;var a={data:{},layout:{}};r.forEach(function(h){var p={};f2(h,p,yme.bind(null,h));var m=In.coerce(h,{},pme,"type"),y=a.data[m];y||(y=a.data[m]=[]),y.push(p)}),f2(t,a.layout,mme.bind(null,t)),delete a.layout.template;var n=t.template;if(Bn(n)){var i=n.layout,l,o,s,u,f,c;Bn(i)&&jp(i,a.layout);var v=n.data;if(Bn(v)){for(o in a.data)if(s=v[o],Array.isArray(s)){for(f=a.data[o],c=f.length,u=s.length,l=0;lx?l.push({code:"unused",traceType:h,templateCount:y,dataCount:x}):x>y&&l.push({code:"reused",traceType:h,templateCount:y,dataCount:x})}}function _(w,b){for(var M in w)if(M.charAt(0)!=="_"){var A=w[M],k=Ci(w,M,b);Bn(A)?(Array.isArray(w)&&A._template===!1&&A.templateitemname&&l.push({code:"missing",path:k,templateitemname:A.templateitemname}),_(A,k)):Array.isArray(A)&&gme(A)&&_(A,k)}}if(_({data:s,layout:o},""),l.length)return l.map(xme)};function gme(e){for(var r=0;r{"use strict";var wa=K4();qt._doPlot=wa._doPlot;qt.newPlot=wa.newPlot;qt.restyle=wa.restyle;qt.relayout=wa.relayout;qt.redraw=wa.redraw;qt.update=wa.update;qt._guiRestyle=wa._guiRestyle;qt._guiRelayout=wa._guiRelayout;qt._guiUpdate=wa._guiUpdate;qt._storeDirectGUIEdit=wa._storeDirectGUIEdit;qt.react=wa.react;qt.extendTraces=wa.extendTraces;qt.prependTraces=wa.prependTraces;qt.addTraces=wa.addTraces;qt.deleteTraces=wa.deleteTraces;qt.moveTraces=wa.moveTraces;qt.purge=wa.purge;qt.addFrames=wa.addFrames;qt.deleteFrames=wa.deleteFrames;qt.animate=wa.animate;qt.setPlotConfig=wa.setPlotConfig;var bme=$c().getGraphDiv,_me=sp().eraseActiveShape;qt.deleteActiveShape=function(e){return _me(bme(e))};qt.toImage=r6();qt.validate=kF();qt.downloadImage=a6();var IF=NF();qt.makeTemplate=IF.makeTemplate;qt.validateTemplate=IF.validateTemplate});var c2=G((OLe,HF)=>{"use strict";var i6=Se(),wme=Ar();HF.exports=function(r,t,a,n){var i=n("x"),l=n("y"),o,s=wme.getComponentMethod("calendars","handleTraceDefaults");if(s(r,t,["x","y"],a),i){var u=i6.minRowLength(i);l?o=Math.min(u,i6.minRowLength(l)):(o=u,n("y0"),n("dy"))}else{if(!l)return 0;o=i6.minRowLength(l),n("x0"),n("dx")}return t._length=o,o}});var _u=G((YLe,GF)=>{"use strict";var OF=Se().dateTick0,Tme=(Rt(),Fe(Nt)),Mme=Tme.ONEWEEK;function YF(e,r){return e%Mme===0?OF(r,1):OF(r,0)}GF.exports=function(r,t,a,n,i){if(i||(i={x:!0,y:!0}),i.x){var l=n("xperiod");l&&(n("xperiod0",YF(l,t.xcalendar)),n("xperiodalignment"))}if(i.y){var o=n("yperiod");o&&(n("yperiod0",YF(o,t.ycalendar)),n("yperiodalignment"))}}});var XF=G((GLe,VF)=>{"use strict";var UF=["orientation","groupnorm","stackgaps"];VF.exports=function(r,t,a,n){var i=a._scatterStackOpts,l=n("stackgroup");if(l){var o=t.xaxis+t.yaxis,s=i[o];s||(s=i[o]={});var u=s[l],f=!1;u?u.traces.push(t):(u=s[l]={traceIndices:[],traces:[t]},f=!0);for(var c={orientation:t.x&&!t.y?"h":"v"},v=0;v{"use strict";var WF=kr(),ZF=Wn().hasColorscale,JF=U0(),Ame=Jn();$F.exports=function(r,t,a,n,i,l={}){var o=Ame.isBubble(r),s=(r.line||{}).color,u;if(s&&(a=s),i("marker.symbol"),i("marker.opacity",o?.7:1),i("marker.size"),l.noAngle||(i("marker.angle"),l.noAngleRef||i("marker.angleref"),l.noStandOff||i("marker.standoff")),i("marker.color",a),ZF(r,"marker")&&JF(r,t,n,i,{prefix:"marker.",cLetter:"c"}),l.noSelect||(i("selected.marker.color"),i("unselected.marker.color"),i("selected.marker.size"),i("unselected.marker.size")),l.noLine||(s&&!Array.isArray(s)&&t.marker.color!==s?u=s:o?u=WF.background:u=WF.defaultLine,i("marker.line.color",u),ZF(r,"marker.line")&&JF(r,t,n,i,{prefix:"marker.line.",cLetter:"c"}),i("marker.line.width",o?1:0),l.noLineDash||i("marker.line.dash")),o&&(i("marker.sizeref"),i("marker.sizemin"),i("marker.sizemode")),l.gradient){var f=i("marker.gradient.type");f!=="none"&&i("marker.gradient.color")}}});var QF=G((VLe,jF)=>{"use strict";var kme=Se().isArrayOrTypedArray,Lme=Wn().hasColorscale,Cme=U0();jF.exports=function(r,t,a,n,i,l){l||(l={});var o=(r.marker||{}).color;if(o&&o._inputArray&&(o=o._inputArray),i("line.color",a),Lme(r,"line"))Cme(r,t,n,i,{prefix:"line.",cLetter:"c"});else{var s=(kme(o)?!1:o)||a;i("line.color",s)}i("line.width"),l.noDash||i("line.dash"),l.backoff&&i("line.backoff")}});var rN=G((XLe,eN)=>{"use strict";eN.exports=function(r,t,a){var n=a("line.shape");n==="spline"&&a("line.smoothing")}});var aN=G((WLe,tN)=>{"use strict";var Sme=Se();tN.exports=function(e,r,t,a,n){n=n||{},a("textposition"),Sme.coerceFont(a,"textfont",n.font||t.font,n),n.noSelect||(a("selected.textfont.color"),a("unselected.textfont.color"))}});var lN=G((ZLe,iN)=>{"use strict";var em=kr(),nN=Se().isArrayOrTypedArray;function qme(e){for(var r=em.interpolate(e[0][1],e[1][1],.5),t=2;t{"use strict";var oN=Se(),Dme=Ar(),Pme=Ki(),Eme=(kp(),Fe(Ap)),mf=Jn(),Rme=c2(),zme=_u(),Fme=XF(),Nme=KF(),Ime=QF(),sN=rN(),Bme=aN(),Hme=lN(),Ome=Se().coercePattern;uN.exports=function(r,t,a,n){function i(h,p){return oN.coerce(r,t,Pme,h,p)}var l=Rme(r,t,n,i);if(l||(t.visible=!1),!!t.visible){zme(r,t,n,i),i("xhoverformat"),i("yhoverformat"),i("zorder");var o=Fme(r,t,n,i);n.scattermode==="group"&&t.orientation===void 0&&i("orientation","v");var s=!o&&l{"use strict";var Yme=mu().getAxisGroup;cN.exports=function(r,t,a,n,i){var l=t.orientation,o=t[{v:"x",h:"y"}[l]+"axis"],s=Yme(a,o)+l,u=a._alignmentOpts||{},f=n("alignmentgroup"),c=u[s];c||(c=u[s]={});var v=c[f];v?v.traces.push(t):v=c[f]={traces:[t],alignmentIndex:Object.keys(c).length,offsetGroups:{}};var h=n("offsetgroup")||"",p=v.offsetGroups,m=p[h];t._offsetIndex=0,(i!=="group"||h)&&(m||(m=p[h]={offsetIndex:Object.keys(p).length}),t._offsetIndex=m.offsetIndex)}});var dN=G((KLe,vN)=>{"use strict";var Gme=Se(),Ume=yf(),Vme=Ki();vN.exports=function(r,t){var a,n,i,l=t.scattermode;function o(v){return Gme.coerce(n._input,n,Vme,v)}if(t.scattermode==="group")for(i=0;i=0;f--){var c=r[f];if(c.type==="scatter"&&c.xaxis===s.xaxis&&c.yaxis===s.yaxis){c.opacity=void 0;break}}}}}});var pN=G((jLe,hN)=>{"use strict";var Xme=Se(),Wme=Oh();hN.exports=function(e,r){function t(n,i){return Xme.coerce(e,r,Wme,n,i)}var a=r.barmode==="group";r.scattermode==="group"&&t("scattergap",a?r.bargap:.2)}});var wu=G((QLe,yN)=>{"use strict";var Zme=Gr(),mN=Se(),Jme=mN.dateTime2ms,rm=mN.incrementMonth,$me=(Rt(),Fe(Nt)),Kme=$me.ONEAVGMONTH;yN.exports=function(r,t,a,n){if(t.type!=="date")return{vals:n};var i=r[a+"periodalignment"];if(!i)return{vals:n};var l=r[a+"period"],o;if(Zme(l)){if(l=+l,l<=0)return{vals:n}}else if(typeof l=="string"&&l.charAt(0)==="M"){var s=+l.substring(1);if(s>0&&Math.round(s)===s)o=s;else return{vals:n}}for(var u=t.calendar,f=i==="start",c=i==="end",v=r[a+"period0"],h=Jme(v,u)||0,p=[],m=[],y=[],x=n.length,_=0;_w;)A=rm(A,-o,u);for(;A<=w;)A=rm(A,o,u);M=rm(A,-o,u)}else{for(b=Math.round((w-h)/l),A=h+b*l;A>w;)A-=l;for(;A<=w;)A+=l;M=A-l}p[_]=f?M:c?A:(M+A)/2,m[_]=M,y[_]=A}return{vals:p,starts:m,ends:y}}});var bN=G((eCe,xN)=>{"use strict";var l6=Wn().hasColorscale,o6=fv(),gN=Jn();xN.exports=function(r,t){gN.hasLines(t)&&l6(t,"line")&&o6(r,t,{vals:t.line.color,containerStr:"line",cLetter:"c"}),gN.hasMarkers(t)&&(l6(t,"marker")&&o6(r,t,{vals:t.marker.color,containerStr:"marker",cLetter:"c"}),l6(t,"marker.line")&&o6(r,t,{vals:t.marker.line.color,containerStr:"marker.line",cLetter:"c"}))}});var s6=G((rCe,_N)=>{"use strict";var Ut=Se();_N.exports=function(r,t){for(var a=0;a{"use strict";var wN=Se();TN.exports=function(r,t){wN.isArrayOrTypedArray(t.selectedpoints)&&wN.tagSelected(r,t)}});var d6=G((aCe,qN)=>{"use strict";var MN=Gr(),f6=Se(),d2=Qr(),AN=wu(),u6=(Rt(),Fe(Nt)).BADNUM,c6=Jn(),jme=bN(),Qme=s6(),eye=v2();function rye(e,r){var t=e._fullLayout,a=r._xA=d2.getFromId(e,r.xaxis||"x","x"),n=r._yA=d2.getFromId(e,r.yaxis||"y","y"),i=a.makeCalcdata(r,"x"),l=n.makeCalcdata(r,"y"),o=AN(r,a,"x",i),s=AN(r,n,"y",l),u=o.vals,f=s.vals,c=r._length,v=new Array(c),h=r.ids,p=v6(r,t,a,n),m=!1,y,x,_,w,b,M;CN(t,r);var A="x",k="y",S;if(p)f6.pushUnique(p.traceIndices,r.index),y=p.orientation==="v",y?(k="s",S="x"):(A="s",S="y"),b=p.stackgaps==="interpolate";else{var D=LN(r,c);kN(e,r,a,n,u,f,D)}var P=!!r.xperiodalignment,R=!!r.yperiodalignment;for(x=0;xx&&v[w].gap;)w--;for(M=v[w].s,_=v.length-1;_>w;_--)v[_].s=M;for(;x{"use strict";DN.exports=tm;var tye=Se().distinctVals;function tm(e,r){this.traces=e,this.sepNegVal=r.sepNegVal,this.overlapNoMerge=r.overlapNoMerge;for(var t=1/0,a=r.posAxis._id.charAt(0),n=[],i=0;iaye,eventDataKeys:()=>nye});var aye,nye,p2=Cr(()=>{"use strict";aye=3,nye=["value","label"]});var bf=G((iCe,FN)=>{"use strict";var Si=Gr(),{isArrayOrTypedArray:to}=Se(),{BADNUM:gf}=(Rt(),Fe(Nt)),iye=Ar(),m2=Qr(),{getAxisGroup:lye}=mu(),am=PN(),{TEXTPAD:oye}=(p2(),Fe(h2)),{LINE_SPACING:sye}=(Xa(),Fe(Va)),{BR_TAG_ALL:uye}=ba();function fye(e,r){for(var t=r.xaxis,a=r.yaxis,n=e._fullLayout,i=e._fullData,l=e.calcdata,o=[],s=[],u=0;us+l||!Si(o))}for(var f=0;fa(i))):a(e.text);let n=e.outsidetextfont.size*sye*t+oye;return{ppadplus:r.some(i=>i.s<0)?n:0,ppadminus:r.some(i=>i.s>=0)?n:0}}return{ppadplus:void 0,ppadminus:void 0}}function bye(e,r,t,a){for(var n=xf(a),i=0;i{"use strict";var NN=d6(),IN=bf().setGroupPositions;function wye(e,r){for(var t=r.xaxis,a=r.yaxis,n=e._fullLayout,i=e._fullData,l=e.calcdata,o=[],s=[],u=0;uD[f]&&f{"use strict";var Mye=$r(),UN=(Rt(),Fe(Nt)),y2=UN.BADNUM,VN=UN.LOG_CLIP,ON=VN+.5,YN=VN-.5,nm=Se(),Aye=nm.segmentsIntersect,GN=nm.constrain,b6=(kp(),Fe(Ap));XN.exports=function(r,t){var a=t.trace||{},n=t.xaxis,i=t.yaxis,l=n.type==="log",o=i.type==="log",s=n._length,u=i._length,f=t.backoff,c=a.marker,v=t.connectGaps,h=t.baseTolerance,p=t.shape,m=p==="linear",y=a.fill&&a.fill!=="none",x=[],_=b6.minTolerance,w=r.length,b=new Array(w),M=0,A,k,S,D,P,R,F,B,H,N,Y,O,V,X,W,U;function $(Pe){var Je=r[Pe];if(!Je)return!1;var Ee=t.linearized?n.l2p(Je.x):n.c2p(Je.x),je=t.linearized?i.l2p(Je.y):i.c2p(Je.y);if(Ee===y2){if(l&&(Ee=n.c2p(Je.x,!0)),Ee===y2)return!1;o&&je===y2&&(Ee*=Math.abs(n._m*u*(n._m>0?ON:YN)/(i._m*s*(i._m>0?ON:YN)))),Ee*=1e3}if(je===y2){if(o&&(je=i.c2p(Je.y,!0)),je===y2)return!1;je*=1e3}return[Ee,je]}function re(Pe,Je,Ee,je){var dr=Ee-Pe,hr=je-Je,pr=.5-Pe,ae=.5-Je,pe=dr*dr+hr*hr,Re=dr*pr+hr*ae;if(Re>0&&Re1||Math.abs(pr.y-Ee[0][1])>1)&&(pr=[pr.x,pr.y],je&&me(pr,Pe)ue||Pe[1]Te)return[GN(Pe[0],Me,ue),GN(Pe[1],ce,Te)]}function $e(Pe,Je){if(Pe[0]===Je[0]&&(Pe[0]===Me||Pe[0]===ue)||Pe[1]===Je[1]&&(Pe[1]===ce||Pe[1]===Te))return!0}function Qe(Pe,Je){var Ee=[],je=Ue(Pe),dr=Ue(Je);return je&&dr&&$e(je,dr)||(je&&Ee.push(je),dr&&Ee.push(dr)),Ee}function De(Pe,Je,Ee){return function(je,dr){var hr=Ue(je),pr=Ue(dr),ae=[];if(hr&&pr&&$e(hr,pr))return ae;hr&&ae.push(hr),pr&&ae.push(pr);var pe=2*nm.constrain((je[Pe]+dr[Pe])/2,Je,Ee)-((hr||je)[Pe]+(pr||dr)[Pe]);if(pe){var Re;hr&&pr?Re=pe>0==hr[Pe]>pr[Pe]?hr:pr:Re=hr||pr,Re[Pe]+=pe}return ae}}var He;p==="linear"||p==="spline"?He=Ae:p==="hv"||p==="vh"?He=Qe:p==="hvh"?He=De(0,Me,ue):p==="vhv"&&(He=De(1,ce,Te));function tr(Pe,Je){var Ee=Je[0]-Pe[0],je=(Je[1]-Pe[1])/Ee,dr=(Pe[1]*Je[0]-Je[1]*Pe[0])/Ee;return dr>0?[je>0?Me:ue,Te]:[je>0?ue:Me,ce]}function te(Pe){var Je=Pe[0],Ee=Pe[1],je=Je===b[M-1][0],dr=Ee===b[M-1][1];if(!(je&&dr))if(M>1){var hr=Je===b[M-2][0],pr=Ee===b[M-2][1];je&&(Je===Me||Je===ue)&&hr?pr?M--:b[M-1]=Pe:dr&&(Ee===ce||Ee===Te)&&pr?hr?M--:b[M-1]=Pe:b[M++]=Pe}else b[M++]=Pe}function xe(Pe){b[M-1][0]!==Pe[0]&&b[M-1][1]!==Pe[1]&&te([ke,Le]),te(Pe),Ce=null,ke=Le=0}var Ve=nm.isArrayOrTypedArray(c);function cr(Pe){if(Pe&&f&&(Pe.i=A,Pe.d=r,Pe.trace=a,Pe.marker=Ve?c[Pe.i]:c,Pe.backoff=f),se=Pe[0]/s,oe=Pe[1]/u,ge=Pe[0]ue?ue:0,qe=Pe[1]Te?Te:0,ge||qe){if(!M)b[M++]=[ge||Pe[0],qe||Pe[1]];else if(Ce){var Je=He(Ce,Pe);Je.length>1&&(xe(Je[0]),b[M++]=Je[1])}else ze=He(b[M-1],Pe)[0],b[M++]=ze;var Ee=b[M-1];ge&&qe&&(Ee[0]!==ge||Ee[1]!==qe)?(Ce&&(ke!==ge&&Le!==qe?te(ke&&Le?tr(Ce,Pe):[ke||ge,Le||qe]):ke&&Le&&te([ke,Le])),te([ge,qe])):ke-ge&&Le-qe&&te([ge||ke,qe||Le]),Ce=Pe,ke=ge,Le=qe}else Ce&&xe(He(Ce,Pe)[0]),b[M++]=Pe}for(A=0;AK(R,mr))break;S=R,V=H[0]*B[0]+H[1]*B[1],V>Y?(Y=V,D=R,F=!1):V=r.length||!R)break;cr(R),k=R}}Ce&&te([ke||Ce[0],Le||Ce[1]]),x.push(b.slice(0,M))}var le=p.slice(p.length-1);if(f&&le!=="h"&&le!=="v"){for(var ye=!1,Ie=-1,Xe=[],Be=0;Be{"use strict";var ZN={tonextx:1,tonexty:1,tonext:1};JN.exports=function(r,t,a){var n,i,l,o,s,u={},f=!1,c=-1,v=0,h=-1;for(i=0;i=0?s=h:(s=h=v,v++),s{"use strict";var el=Er(),kye=Ar(),g2=Se(),_f=g2.ensureSingle,jN=g2.identity,Kt=$r(),wf=Jn(),Lye=WN(),Cye=$N(),im=b4().tester;QN.exports=function(r,t,a,n,i,l){var o,s,u=!i,f=!!i&&i.duration>0,c=Cye(r,t,a);if(o=n.selectAll("g.trace").data(c,function(h){return h[0].trace.uid}),o.enter().append("g").attr("class",function(h){return"trace scatter trace"+h[0].trace.uid}).style("stroke-miterlimit",2),o.order(),Sye(r,o,t),f){l&&(s=l());var v=el.transition().duration(i.duration).ease(i.easing).each("end",function(){s&&s()}).each("interrupt",function(){s&&s()});v.each(function(){n.selectAll("g.trace").each(function(h,p){KN(r,p,t,h,c,this,i)})})}else o.each(function(h,p){KN(r,p,t,h,c,this,i)});u&&o.exit().remove(),n.selectAll("path:not([d])").remove()};function Sye(e,r,t){r.each(function(a){var n=_f(el.select(this),"g","fills");Kt.setClipUrl(n,t.layerClipId,e);var i=a[0].trace;i._ownFill=null,i._nextFill=null;var l=[];i._ownfill&&l.push("_ownFill"),i._nexttrace&&l.push("_nextFill");var o=n.selectAll("g").data(l,jN);o.enter().append("g"),o.exit().remove(),o.order().each(function(s){i[s]=_f(el.select(this),"path","js-fill")})})}function KN(e,r,t,a,n,i,l){var o=e._context.staticPlot,s;qye(e,r,t,a,n);var u=!!l&&l.duration>0;function f(De){return u?De.transition():De}var c=t.xaxis,v=t.yaxis,h=a[0].trace,p=h.line,m=el.select(i),y=_f(m,"g","errorbars"),x=_f(m,"g","lines"),_=_f(m,"g","points"),w=_f(m,"g","text");if(kye.getComponentMethod("errorbars","plot")(e,y,t,l),h.visible!==!0)return;f(m).style("opacity",h.opacity);var b,M,A=h.fill.charAt(h.fill.length-1);A!=="x"&&A!=="y"&&(A="");var k,S;A==="y"?(k=1,S=v.c2p(0,!0)):A==="x"&&(k=0,S=c.c2p(0,!0)),a[0][t.isRangePlot?"nodeRangePlot3":"node3"]=m;var D="",P=[],R=h._prevtrace,F=null,B=null;R&&(D=R._prevRevpath||"",M=R._nextFill,P=R._ownPolygons,F=R._fillsegments,B=R._fillElement);var H,N,Y="",O="",V,X,W,U,$,re,se=[];h._polygons=[];var oe=[],K=[],me=g2.noop;if(b=h._ownFill,wf.hasLines(h)||h.fill!=="none"){M&&M.datum(a),["hv","vh","hvh","vhv"].indexOf(p.shape)!==-1?(V=Kt.steps(p.shape),X=Kt.steps(p.shape.split("").reverse().join(""))):p.shape==="spline"?V=X=function(De){var He=De[De.length-1];return De.length>1&&De[0][0]===He[0]&&De[0][1]===He[1]?Kt.smoothclosed(De.slice(1),p.smoothing):Kt.smoothopen(De,p.smoothing)}:V=X=function(De){return"M"+De.join("L")},W=function(De){return X(De.reverse())},K=Lye(a,{xaxis:c,yaxis:v,trace:h,connectGaps:h.connectgaps,baseTolerance:Math.max(p.width||1,3)/4,shape:p.shape,backoff:p.backoff,simplify:p.simplify,fill:h.fill}),oe=new Array(K.length);var ie=0;for(s=0;s=o[0]&&m.x<=o[1]&&m.y>=s[0]&&m.y<=s[1]}),v=Math.ceil(c.length/f),h=0;n.forEach(function(m,y){var x=m[0].trace;wf.hasMarkers(x)&&x.marker.maxdisplayed>0&&y{"use strict";rI.exports={container:"marker",min:"cmin",max:"cmax"}});var aI=G((cCe,tI)=>{"use strict";var om=Qr();tI.exports=function(r,t,a){var n={},i={_fullLayout:a},l=om.getFromTrace(i,t,"x"),o=om.getFromTrace(i,t,"y"),s=r.orig_x;s===void 0&&(s=r.x);var u=r.orig_y;return u===void 0&&(u=r.y),n.xLabel=om.tickText(l,l.c2l(s),!0).text,n.yLabel=om.tickText(o,o.c2l(u),!0).text,n}});var M6=G((vCe,nI)=>{"use strict";var _6=Er(),Tf=$r(),Dye=Ar();function Pye(e){var r=_6.select(e).selectAll("g.trace.scatter");r.style("opacity",function(t){return t[0].trace.opacity}),r.selectAll("g.points").each(function(t){var a=_6.select(this),n=t.trace||t[0].trace;w6(a,n,e)}),r.selectAll("g.text").each(function(t){var a=_6.select(this),n=t.trace||t[0].trace;T6(a,n,e)}),r.selectAll("g.trace path.js-line").call(Tf.lineGroupStyle),r.selectAll("g.trace path.js-fill").call(Tf.fillGroupStyle,e,!1),Dye.getComponentMethod("errorbars","style")(r)}function w6(e,r,t){Tf.pointStyle(e.selectAll("path.point"),r,t)}function T6(e,r,t){Tf.textPointStyle(e.selectAll("text"),r,t)}function Eye(e,r,t){var a=r[0].trace;a.selectedpoints?(Tf.selectedPointStyle(t.selectAll("path.point"),a),Tf.selectedTextStyle(t.selectAll("text"),a)):(w6(t,a,e),T6(t,a,e))}nI.exports={style:Pye,stylePoints:w6,styleText:T6,styleOnSelect:Eye}});var lI=G((dCe,iI)=>{"use strict";var Mf=kr(),Rye=Jn();iI.exports=function(r,t){var a,n;if(r.mode==="lines")return a=r.line.color,a&&Mf.opacity(a)?a:r.fillcolor;if(r.mode==="none")return r.fill?r.fillcolor:"";var i=t.mcc||t.mc||(r.marker||{}).color,l=t.mlcc||((r.marker||{}).line||{}).color;return n=i&&Mf.opacity(i)?i:l&&Mf.opacity(l)&&(t.mlw||((r.marker||{}).line||{}).width)?l:"",n?Mf.opacity(n)<.3?Mf.addOpacity(n,.3):n:(a=(r.line||{}).color,a&&Mf.opacity(a)&&Rye.hasLines(r)&&r.line.width?a:r.fillcolor)}});var uI=G((hCe,sI)=>{"use strict";var sm=Se(),oI=xi(),zye=Ar(),Fye=lI(),A6=kr(),Nye=sm.fillText;sI.exports=function(r,t,a,n){var i=r.cd,l=i[0].trace,o=r.xa,s=r.ya,u=o.c2p(t),f=s.c2p(a),c=[u,f],v=l.hoveron||"",h=l.mode.indexOf("markers")!==-1?3:.5,p=!!l.xperiodalignment,m=!!l.yperiodalignment;if(v.indexOf("points")!==-1){var y=function(O){if(p){var V=o.c2p(O.xStart),X=o.c2p(O.xEnd);return u>=Math.min(V,X)&&u<=Math.max(V,X)?0:1/0}var W=Math.max(3,O.mrc||0),U=1-1/W,$=Math.abs(o.c2p(O.x)-u);return $=Math.min(V,X)&&f<=Math.max(V,X)?0:1/0}var W=Math.max(3,O.mrc||0),U=1-1/W,$=Math.abs(s.c2p(O.y)-f);return $se!=Te>=se&&(Me=me[K-1][0],ue=me[K][0],Te-ce&&(ie=Me+(ue-Me)*(se-ce)/(Te-ce),W=Math.min(W,ie),U=Math.max(U,ie)));return W=Math.max(W,0),U=Math.min(U,o._length),{x0:W,x1:U,y0:se,y1:se}}if(v.indexOf("fills")!==-1&&l._fillElement){var H=F(l._fillElement)&&!F(l._fillExclusionElement);if(H){var N=B(l._polygons);N===null&&(N={x0:c[0],x1:c[0],y0:c[1],y1:c[1]});var Y=A6.defaultLine;return A6.opacity(l.fillcolor)?Y=l.fillcolor:A6.opacity((l.line||{}).color)&&(Y=l.line.color),sm.extendFlat(r,{distance:r.maxHoverDistance,x0:N.x0,x1:N.x1,y0:N.y0,y1:N.y1,color:Y,hovertemplate:!1}),delete r.index,l.text&&!sm.isArrayOrTypedArray(l.text)?r.text=String(l.text):r.text=l.name,[r]}}}});var vI=G((pCe,cI)=>{"use strict";var fI=Jn();cI.exports=function(r,t){var a=r.cd,n=r.xaxis,i=r.yaxis,l=[],o=a[0].trace,s,u,f,c,v=o.mode&&!fI.hasMarkers(o)&&!fI.hasText(o);if(v)return[];if(t===!1)for(s=0;s{"use strict";dI.exports={xaxis:{valType:"subplotid",dflt:"x",editType:"calc+clearAxisTypes"},yaxis:{valType:"subplotid",dflt:"y",editType:"calc+clearAxisTypes"}}});var gI=G((yCe,yI)=>{"use strict";var um=Ar().traceIs,k6=Xx();yI.exports=function(r,t,a,n){a("autotypenumbers",n.autotypenumbersDflt);var i=a("type",(n.splomStash||{}).type);i==="-"&&(Iye(t,n.data),t.type==="-"?t.type="linear":r.type=t.type)};function Iye(e,r){if(e.type==="-"){var t=e._id,a=t.charAt(0),n;t.indexOf("scene")!==-1&&(t=a);var i=Bye(r,t,a);if(i){if(i.type==="histogram"&&a==={v:"y",h:"x"}[i.orientation||"v"]){e.type="linear";return}var l=a+"calendar",o=i[l],s={noMultiCategory:!um(i,"cartesian")||um(i,"noMultiCategory")};if(i.type==="box"&&i._hasPreCompStats&&a==={h:"x",v:"y"}[i.orientation||"v"]&&(s.noMultiCategory=!0),s.autotypenumbers=e.autotypenumbers,mI(i,a)){var u=pI(i),f=[];for(n=0;n0&&(n["_"+t+"axes"]||{})[r])return n;if((n[t+"axis"]||t)===r){if(mI(n,t))return n;if((n[t]||[]).length||n[t+"0"])return n}}}function pI(e){return{v:"x",h:"y"}[e.orientation||"v"]}function mI(e,r){var t=pI(e),a=um(e,"box-violin");return a&&r===t&&e[t]===void 0&&e[t+"0"]===void 0}});var bI=G((gCe,xI)=>{"use strict";var Hye=Sn().isTypedArraySpec;function Oye(e,r){var t=r.dataAttr||e._id.charAt(0),a={},n,i,l;if(r.axData)n=r.axData;else for(n=[],i=0;i0||Hye(i),o;l&&(o="array");var s=a("categoryorder",o),u;s==="array"&&(u=a("categoryarray")),!l&&s==="array"&&(s=t.categoryorder="trace"),s==="trace"?t._initialCategories=[]:s==="array"?t._initialCategories=u.slice():(u=Oye(t,n).sort(),s==="category ascending"?t._initialCategories=u:s==="category descending"&&(t._initialCategories=u.reverse()))}}});var TI=G((xCe,wI)=>{"use strict";var _I=kr(),Yye=vi(),Gye=Se();wI.exports=function(r,t,a,n){n=n||{};var i=n.dfltColor;function l(S,D){return Gye.coerce2(r,t,n.attributes,S,D)}var o=l("linecolor",i),s=l("linewidth"),u=a("showline",n.showLine||!!o||!!s);u||(delete t.linecolor,delete t.linewidth);var f=_I.mix(i,n.bgColor,n.blend||Yye.lightFraction),c=l("gridcolor",f),v=l("gridwidth"),h=l("griddash"),p=a("showgrid",n.showGrid||!!c||!!v||!!h);if(p||(delete t.gridcolor,delete t.gridwidth,delete t.griddash),n.hasMinor){var m=_I.mix(t.gridcolor,n.bgColor,67),y=l("minor.gridcolor",m),x=l("minor.gridwidth",t.gridwidth||1),_=l("minor.griddash",t.griddash||"solid"),w=a("minor.showgrid",!!y||!!x||!!_);w||(delete t.minor.gridcolor,delete t.minor.gridwidth,delete t.minor.griddash)}if(!n.noZeroLine){var b=l("zerolinelayer"),M=l("zerolinecolor",i),A=l("zerolinewidth"),k=a("zeroline",n.showGrid||!!M||!!A);k||(delete t.zerolinelayer,delete t.zerolinecolor,delete t.zerolinewidth)}}});var cm=G((bCe,SI)=>{"use strict";var MI=Gr(),Uye=Ar(),x2=Se(),Vye=yt(),Xye=mi(),L6=Zn(),AI=$h(),kI=Kh(),Wye=Qh(),Zye=e1(),Jye=bI(),$ye=TI(),Kye=hb(),LI=h1(),fm=(La(),Fe(ka)).WEEKDAY_PATTERN,jye=(La(),Fe(ka)).HOUR_PATTERN;SI.exports=function(r,t,a,n,i){var l=n.letter,o=n.font||{},s=n.splomStash||{},u=a("visible",!n.visibleDflt),f=t._template||{},c=t.type||f.type||"-",v;if(c==="date"){var h=Uye.getComponentMethod("calendars","handleDefaults");h(r,t,"calendar",n.calendar),n.noTicklabelmode||(v=a("ticklabelmode"))}!n.noTicklabelindex&&(c==="date"||c==="linear")&&a("ticklabelindex");var p="";(!n.noTicklabelposition||c==="multicategory")&&(p=x2.coerce(r,t,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:v==="period"?["outside","inside"]:l==="x"?["outside","inside","outside left","inside left","outside right","inside right"]:["outside","inside","outside top","inside top","outside bottom","inside bottom"]}},"ticklabelposition")),n.noTicklabeloverflow||a("ticklabeloverflow",p.indexOf("inside")!==-1?"hide past domain":c==="category"||c==="multicategory"?"allow":"hide past div"),LI(t,i),Kye(r,t,a,n),Jye(r,t,a,n),n.noHover||(c!=="category"&&a("hoverformat"),n.noUnifiedhovertitle||a("unifiedhovertitle.text"));var m=a("color"),y=m!==L6.color.dflt?m:o.color,x=s.label||i._dfltTitle[l];if(Zye(r,t,a,c,n),!u)return t;a("title.text",x),x2.coerceFont(a,"title.font",o,{overrideDflt:{size:x2.bigFont(o.size),color:y}}),AI(r,t,a,c);var _=n.hasMinor;if(_&&(Vye.newContainer(t,"minor"),AI(r,t,a,c,{isMinor:!0})),Wye(r,t,a,c,n),kI(r,t,a,n),_){var w=n.isMinor;n.isMinor=!0,kI(r,t,a,n),n.isMinor=w}$ye(r,t,a,{dfltColor:m,bgColor:n.bgColor,showGrid:n.showGrid,hasMinor:_,attributes:L6}),_&&t.ticklabelindex==null&&!t.minor.ticks&&!t.minor.showgrid&&delete t.minor,(t.showline||t.ticks)&&a("mirror");var b=c==="multicategory";if(!n.noTickson&&(c==="category"||b)&&(t.ticks||t.showgrid)&&(b?(a("tickson","boundaries"),delete t.ticklabelposition):a("tickson")),b){var M=a("showdividers");M&&(a("dividercolor"),a("dividerwidth"))}if(c==="date")if(Xye(r,t,{name:"rangebreaks",inclusionAttr:"enabled",handleItemDefaults:Qye}),!t.rangebreaks.length)delete t.rangebreaks;else{for(var A=0;A=2){var l="",o,s;if(i.length===2){for(o=0;o<2;o++)if(s=CI(i[o]),s){l=fm;break}}var u=a("pattern",l);if(u===fm)for(o=0;o<2;o++)s=CI(i[o]),s&&(r.bounds[o]=i[o]=s-1);if(u)for(o=0;o<2;o++)switch(s=i[o],u){case fm:if(!MI(s)){r.enabled=!1;return}if(s=+s,s!==Math.floor(s)||s<0||s>=7){r.enabled=!1;return}r.bounds[o]=i[o]=s;break;case jye:if(!MI(s)){r.enabled=!1;return}if(s=+s,s<0||s>24){r.enabled=!1;return}r.bounds[o]=i[o]=s;break}if(t.autorange===!1){var f=t.range;if(f[0]f[1]){r.enabled=!1;return}}else if(i[0]>f[0]&&i[1]{"use strict";var rge=Gr(),vm=Se();qI.exports=function(r,t,a,n){var i=n.counterAxes||[],l=n.overlayableAxes||[],o=n.letter,s=n.grid,u=n.overlayingDomain,f,c,v,h,p,m;s&&(c=s._domains[o][s._axisMap[t._id]],f=s._anchors[t._id],c&&(v=s[o+"side"].split(" ")[0],h=s.domain[o][v==="right"||v==="top"?1:0])),c=c||[0,1],f=f||(rge(r.position)?"free":i[0]||"free"),v=v||(o==="x"?"bottom":"left"),h=h||0,p=0,m=!1;var y=vm.coerce(r,t,{anchor:{valType:"enumerated",values:["free"].concat(i),dflt:f}},"anchor"),x=vm.coerce(r,t,{side:{valType:"enumerated",values:o==="x"?["bottom","top"]:["left","right"],dflt:v}},"side");if(y==="free"){if(o==="y"){var _=a("autoshift");_&&(h=x==="left"?u[0]:u[1],m=t.automargin?t.automargin:!0,p=x==="left"?-3:3),a("shift",p)}a("position",h)}a("automargin",m);var w=!1;if(l.length&&(w=vm.coerce(r,t,{overlaying:{valType:"enumerated",values:[!1].concat(l),dflt:!1}},"overlaying")),!w){var b=a("domain",c);b[0]>b[1]-1/4096&&(t.domain=c),vm.noneOrAll(r.domain,t.domain,c),t.tickmode==="sync"&&(t.tickmode="auto")}return a("layer"),t}});var BI=G((wCe,II)=>{"use strict";var Tu=Se(),DI=kr(),tge=Wi().isUnifiedHover,age=Yb(),PI=yt(),nge=q0(),EI=Zn(),ige=gI(),RI=cm(),lge=mu(),zI=dm(),S6=va(),Pl=S6.id2name,FI=S6.name2id,oge=(La(),Fe(ka)).AX_ID_PATTERN,NI=Ar(),hm=NI.traceIs,C6=NI.getComponentMethod;function pm(e,r,t){Array.isArray(e[r])?e[r].push(t):e[r]=[t]}II.exports=function(r,t,a){var n=t.autotypenumbers,i={},l={},o={},s={},u={},f={},c={},v={},h={},p={},m,y;for(m=0;m{"use strict";var sge=Er(),HI=Ar(),mm=Se(),ai=$r(),ym=Qr();OI.exports=function(r,t,a,n){var i=r._fullLayout;if(t.length===0){ym.redrawComponents(r);return}function l(y){var x=y.xaxis,_=y.yaxis;i._defs.select("#"+y.clipId+"> rect").call(ai.setTranslate,0,0).call(ai.setScale,1,1),y.plot.call(ai.setTranslate,x._offset,_._offset).call(ai.setScale,1,1);var w=y.plot.selectAll(".scatterlayer .trace");w.selectAll(".point").call(ai.setPointGroupScale,1,1),w.selectAll(".textpoint").call(ai.setTextPointsScale,1,1),w.call(ai.hideOutsideRangePoints,y)}function o(y,x){var _=y.plotinfo,w=_.xaxis,b=_.yaxis,M=w._length,A=b._length,k=!!y.xr1,S=!!y.yr1,D=[];if(k){var P=mm.simpleMap(y.xr0,w.r2l),R=mm.simpleMap(y.xr1,w.r2l),F=P[1]-P[0],B=R[1]-R[0];D[0]=(P[0]*(1-x)+x*R[0]-P[0])/(P[1]-P[0])*M,D[2]=M*(1-x+x*B/F),w.range[0]=w.l2r(P[0]*(1-x)+x*R[0]),w.range[1]=w.l2r(P[1]*(1-x)+x*R[1])}else D[0]=0,D[2]=M;if(S){var H=mm.simpleMap(y.yr0,b.r2l),N=mm.simpleMap(y.yr1,b.r2l),Y=H[1]-H[0],O=N[1]-N[0];D[1]=(H[1]*(1-x)+x*N[1]-H[1])/(H[0]-H[1])*A,D[3]=A*(1-x+x*O/Y),b.range[0]=w.l2r(H[0]*(1-x)+x*N[0]),b.range[1]=b.l2r(H[1]*(1-x)+x*N[1])}else D[1]=0,D[3]=A;ym.drawOne(r,w,{skipTitle:!0}),ym.drawOne(r,b,{skipTitle:!0}),ym.redrawComponents(r,[w._id,b._id]);var V=k?M/D[2]:1,X=S?A/D[3]:1,W=k?D[0]:0,U=S?D[1]:0,$=k?D[0]/D[2]*M:0,re=S?D[1]/D[3]*A:0,se=w._offset-$,oe=b._offset-re;_.clipRect.call(ai.setTranslate,W,U).call(ai.setScale,1/V,1/X),_.plot.call(ai.setTranslate,se,oe).call(ai.setScale,V,X),ai.setPointGroupScale(_.zoomScalePts,1/V,1/X),ai.setTextPointsScale(_.zoomScaleTxt,1/V,1/X)}var s;n&&(s=n());function u(){for(var y={},x=0;xa.duration?(u(),h=window.cancelAnimationFrame(m)):h=window.requestAnimationFrame(m)}return c=Date.now(),h=window.requestAnimationFrame(m),Promise.resolve()}});var ao=G(nn=>{"use strict";var xm=Er(),GI=Ar(),Mu=Se(),uge=Jt(),fge=$r(),UI=ex().getModuleCalcData,Ko=va(),rl=(La(),Fe(ka)),cge=($s(),Fe(Js)),tt=Mu.ensureSingle;function gm(e,r,t){return Mu.ensureSingle(e,r,t,function(a){a.datum(t)})}var Au=rl.zindexSeparator;nn.name="cartesian";nn.attr=["xaxis","yaxis"];nn.idRoot=["x","y"];nn.idRegex=rl.idRegex;nn.attrRegex=rl.attrRegex;nn.attributes=hI();nn.layoutAttributes=Zn();nn.supplyLayoutDefaults=BI();nn.transitionAxes=YI();nn.finalizeSubplots=function(e,r){var t=r._subplots,a=t.xaxis,n=t.yaxis,i=t.cartesian,l=i,o={},s={},u,f,c;for(u=0;u0){var h=v.id;if(h.indexOf(Au)!==-1)continue;h+=Au+(u+1),v=Mu.extendFlat({},v,{id:h,plot:n._cartesianlayer.selectAll(".subplot").select("."+h)})}for(var p=[],m,y=0;y1&&(M+=Au+b),w.push(o+M),l=0;l1,c=r.mainplotinfo;if(!r.mainplot||f)if(u)r.xlines=tt(a,"path","xlines-above"),r.ylines=tt(a,"path","ylines-above"),r.xaxislayer=tt(a,"g","xaxislayer-above"),r.yaxislayer=tt(a,"g","yaxislayer-above");else{if(!l){var v=tt(a,"g","layer-subplot");r.shapelayer=tt(v,"g","shapelayer"),r.imagelayer=tt(v,"g","imagelayer"),c&&f?(r.minorGridlayer=c.minorGridlayer,r.gridlayer=c.gridlayer,r.zerolinelayer=c.zerolinelayer):(r.minorGridlayer=tt(a,"g","minor-gridlayer"),r.gridlayer=tt(a,"g","gridlayer"),r.zerolinelayer=tt(a,"g","zerolinelayer"));var h=tt(a,"g","layer-between");r.shapelayerBetween=tt(h,"g","shapelayer"),r.imagelayerBetween=tt(h,"g","imagelayer"),tt(a,"path","xlines-below"),tt(a,"path","ylines-below"),r.overlinesBelow=tt(a,"g","overlines-below"),tt(a,"g","xaxislayer-below"),tt(a,"g","yaxislayer-below"),r.overaxesBelow=tt(a,"g","overaxes-below")}r.overplot=tt(a,"g","overplot"),r.plot=tt(r.overplot,"g",n),c&&f?r.zerolinelayerAbove=c.zerolinelayerAbove:r.zerolinelayerAbove=tt(a,"g","zerolinelayer-above"),l||(r.xlines=tt(a,"path","xlines-above"),r.ylines=tt(a,"path","ylines-above"),r.overlinesAbove=tt(a,"g","overlines-above"),tt(a,"g","xaxislayer-above"),tt(a,"g","yaxislayer-above"),r.overaxesAbove=tt(a,"g","overaxes-above"),r.xlines=a.select(".xlines-"+o),r.ylines=a.select(".ylines-"+s),r.xaxislayer=a.select(".xaxislayer-"+o),r.yaxislayer=a.select(".yaxislayer-"+s))}else{var p=c.plotgroup,m=n+"-x",y=n+"-y";r.minorGridlayer=c.minorGridlayer,r.gridlayer=c.gridlayer,r.zerolinelayer=c.zerolinelayer,r.zerolinelayerAbove=c.zerolinelayerAbove,tt(c.overlinesBelow,"path",m),tt(c.overlinesBelow,"path",y),tt(c.overaxesBelow,"g",m),tt(c.overaxesBelow,"g",y),r.plot=tt(c.overplot,"g",n),tt(c.overlinesAbove,"path",m),tt(c.overlinesAbove,"path",y),tt(c.overaxesAbove,"g",m),tt(c.overaxesAbove,"g",y),r.xlines=p.select(".overlines-"+o).select("."+m),r.ylines=p.select(".overlines-"+s).select("."+y),r.xaxislayer=p.select(".overaxes-"+o).select("."+m),r.yaxislayer=p.select(".overaxes-"+s).select("."+y)}l||(u||(gm(r.minorGridlayer,"g",r.xaxis._id),gm(r.minorGridlayer,"g",r.yaxis._id),r.minorGridlayer.selectAll("g").map(function(x){return x[0]}).sort(Ko.idSort),gm(r.gridlayer,"g",r.xaxis._id),gm(r.gridlayer,"g",r.yaxis._id),r.gridlayer.selectAll("g").map(function(x){return x[0]}).sort(Ko.idSort)),r.xlines.style("fill","none").classed("crisp",!0),r.ylines.style("fill","none").classed("crisp",!0))}function WI(e,r){if(e){var t={};e.each(function(s){var u=s[0],f=xm.select(this);f.remove(),ZI(u,r),t[u]=!0});for(var a in r._plots)for(var n=r._plots[a],i=n.overlays||[],l=0;l{"use strict";var bm=Jn();JI.exports={hasLines:bm.hasLines,hasMarkers:bm.hasMarkers,hasText:bm.hasText,isBubble:bm.isBubble,attributes:Ki(),layoutAttributes:Oh(),supplyDefaults:fN(),crossTraceDefaults:dN(),supplyLayoutDefaults:pN(),calc:d6().calc,crossTraceCalc:HN(),arraysToCalcdata:s6(),plot:eI(),colorbar:lm(),formatLabels:aI(),style:M6().style,styleOnSelect:M6().styleOnSelect,hoverPoints:uI(),selectPoints:vI(),animatable:!0,moduleType:"trace",name:"scatter",basePlotModule:ao(),categories:["cartesian","svg","symbols","errorBarsOK","showLegend","scatter-like","zoomScale"],meta:{}}});var QI=G((kCe,jI)=>{"use strict";var dge=Er(),hge=kr(),KI=P4(),q6=Se(),pge=q6.strScale,mge=q6.strRotate,yge=q6.strTranslate;jI.exports=function(r,t,a){var n=r.node(),i=KI[a.arrowhead||0],l=KI[a.startarrowhead||0],o=(a.arrowwidth||1)*(a.arrowsize||1),s=(a.arrowwidth||1)*(a.startarrowsize||1),u=t.indexOf("start")>=0,f=t.indexOf("end")>=0,c=i.backoff*o+a.standoff,v=l.backoff*s+a.startstandoff,h,p,m,y;if(n.nodeName==="line"){h={x:+r.attr("x1"),y:+r.attr("y1")},p={x:+r.attr("x2"),y:+r.attr("y2")};var x=h.x-p.x,_=h.y-p.y;if(m=Math.atan2(_,x),y=m+Math.PI,c&&v&&c+v>Math.sqrt(x*x+_*_)){H();return}if(c){if(c*c>x*x+_*_){H();return}var w=c*Math.cos(m),b=c*Math.sin(m);p.x+=w,p.y+=b,r.attr({x2:p.x,y2:p.y})}if(v){if(v*v>x*x+_*_){H();return}var M=v*Math.cos(m),A=v*Math.sin(m);h.x-=M,h.y-=A,r.attr({x1:h.x,y1:h.y})}}else if(n.nodeName==="path"){var k=n.getTotalLength(),S="";if(k{"use strict";var eB=Er(),D6=Ar(),gge=Jt(),Qo=Se(),P6=Qo.strTranslate,_2=Qr(),ku=kr(),no=$r(),rB=xi(),E6=ba(),R6=Yo(),b2=Ji(),xge=yt().arrayEditor,bge=QI();nB.exports={draw:_ge,drawOne:tB,drawRaw:aB};function _ge(e){var r=e._fullLayout;r._infolayer.selectAll(".annotation").remove();for(var t=0;t2/3?dr="right":dr="center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[dr]}for(var ce=!1,Te=["x","y"],Ne=0;Ne1)&&(ke===qe?(mr=Le.r2fraction(r["a"+ge]),(mr<0||mr>1)&&(ce=!0)):ce=!0),He=Le._offset+Le.r2p(r[ge]),xe=.5}else{var le=cr==="domain";ge==="x"?(te=r[ge],He=le?Le._offset+Le._length*te:He=o.l+o.w*te):(te=1-r[ge],He=le?Le._offset+Le._length*te:He=o.t+o.h*te),xe=r.showarrow?.5:te}if(r.showarrow){De.head=He;var ye=r["a"+ge];if(Ve=ze*ue(.5,r.xanchor)-Ae*ue(.5,r.yanchor),ke===qe){var Ie=_2.getRefType(ke);Ie==="domain"?(ge==="y"&&(ye=1-ye),De.tail=Le._offset+Le._length*ye):Ie==="paper"?ge==="y"?(ye=1-ye,De.tail=o.t+o.h*ye):De.tail=o.l+o.w*ye:De.tail=Le._offset+Le.r2p(ye),tr=Ve}else De.tail=He+ye,tr=Ve+ye;De.text=De.tail+Ve;var Xe=l[ge==="x"?"width":"height"];if(qe==="paper"&&(De.head=Qo.constrain(De.head,1,Xe-1)),ke==="pixel"){var Be=-Math.max(De.tail-3,De.text),Ze=Math.min(De.tail+3,De.text)-Xe;Be>0?(De.tail+=Be,De.text+=Be):Ze>0&&(De.tail-=Ze,De.text-=Ze)}De.tail+=Qe,De.head+=Qe}else Ve=Ue*ue(xe,$e),tr=Ve,De.text=He+Ve;De.text+=Qe,Ve+=Qe,tr+=Qe,r["_"+ge+"padplus"]=Ue/2+tr,r["_"+ge+"padminus"]=Ue/2-tr,r["_"+ge+"size"]=Ue,r["_"+ge+"shift"]=Ve}if(ce){k.remove();return}var Ke=0,_r=0;if(r.align!=="left"&&(Ke=(K-se)*(r.align==="center"?.5:1)),r.valign!=="top"&&(_r=(me-oe)*(r.valign==="middle"?.5:1)),$)U.select("svg").attr({x:P+Ke-1,y:P+_r}).call(no.setClipUrl,F?m:null,e);else{var br=P+_r-re.top,Pe=P+Ke-re.left;Y.call(E6.positionText,Pe,br).call(no.setClipUrl,F?m:null,e)}B.select("rect").call(no.setRect,P,P,K,me),R.call(no.setRect,S/2,S/2,ie-S,Me-S),k.call(no.setTranslate,Math.round(y.x.text-ie/2),Math.round(y.y.text-Me/2)),w.attr({transform:"rotate("+x+","+y.x.text+","+y.y.text+")"});var Je=function(je,dr){_.selectAll(".annotation-arrow-g").remove();var hr=y.x.head,pr=y.y.head,ae=y.x.tail+je,pe=y.y.tail+dr,Re=y.x.text+je,Oe=y.y.text+dr,Zr=Qo.rotationXYMatrix(x,Re,Oe),vt=Qo.apply2DTransform(Zr),Dt=Qo.apply2DTransform2(Zr),Ot=+R.attr("width"),ea=+R.attr("height"),Wt=Re-.5*Ot,Qa=Wt+Ot,wt=Oe-.5*ea,Zt=wt+ea,ra=[[Wt,wt,Wt,Zt],[Wt,Zt,Qa,Zt],[Qa,Zt,Qa,wt],[Qa,wt,Wt,wt]].map(Dt);if(!ra.reduce(function(ht,ma){return ht^!!Qo.segmentsIntersect(hr,pr,hr+1e6,pr+1e6,ma[0],ma[1],ma[2],ma[3])},!1)){ra.forEach(function(ht){var ma=Qo.segmentsIntersect(ae,pe,hr,pr,ht[0],ht[1],ht[2],ht[3]);ma&&(ae=ma.x,pe=ma.y)});var ha=r.arrowwidth,en=r.arrowcolor,fa=r.arrowside,pa=_.append("g").style({opacity:ku.opacity(en)}).classed("annotation-arrow-g",!0),ir=pa.append("path").attr("d","M"+ae+","+pe+"L"+hr+","+pr).style("stroke-width",ha+"px").call(ku.stroke,ku.rgb(en));if(bge(ir,fa,r),s.annotationPosition&&ir.node().parentNode&&!a){var it=hr,Jr=pr;if(r.standoff){var dt=Math.sqrt(Math.pow(hr-ae,2)+Math.pow(pr-pe,2));it+=r.standoff*(ae-hr)/dt,Jr+=r.standoff*(pe-pr)/dt}var Pt=pa.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(ae-it)+","+(pe-Jr),transform:P6(it,Jr)}).style("stroke-width",ha+6+"px").call(ku.stroke,"rgba(0,0,0,0)").call(ku.fill,"rgba(0,0,0,0)"),Ea,lt;b2.init({element:Pt.node(),gd:e,prepFn:function(){var ht=no.getTranslate(k);Ea=ht.x,lt=ht.y,n&&n.autorange&&v(n._name+".autorange",!0),i&&i.autorange&&v(i._name+".autorange",!0)},moveFn:function(ht,ma){var zi=vt(Ea,lt),cl=zi[0]+ht,oi=zi[1]+ma;k.call(no.setTranslate,cl,oi),h("x",jo(n,ht,"x",o,r)),h("y",jo(i,ma,"y",o,r)),r.axref===r.xref&&h("ax",jo(n,ht,"ax",o,r)),r.ayref===r.yref&&h("ay",jo(i,ma,"ay",o,r)),pa.attr("transform",P6(ht,ma)),w.attr({transform:"rotate("+x+","+cl+","+oi+")"})},doneFn:function(){D6.call("_guiRelayout",e,p());var ht=document.querySelector(".js-notes-box-panel");ht&&ht.redraw(ht.selectedObj)}})}}};if(r.showarrow&&Je(0,0),b){var Ee;b2.init({element:k.node(),gd:e,prepFn:function(){Ee=w.attr("transform")},moveFn:function(je,dr){var hr="pointer";if(r.showarrow)r.axref===r.xref?h("ax",jo(n,je,"ax",o,r)):h("ax",r.ax+je),r.ayref===r.yref?h("ay",jo(i,dr,"ay",o.w,r)):h("ay",r.ay+dr),Je(je,dr);else{if(a)return;var pr,ae;if(n)pr=jo(n,je,"x",o,r);else{var pe=r._xsize/o.w,Re=r.x+(r._xshift-r.xshift)/o.w-pe/2;pr=b2.align(Re+je/o.w,pe,0,1,r.xanchor)}if(i)ae=jo(i,dr,"y",o,r);else{var Oe=r._ysize/o.h,Zr=r.y-(r._yshift+r.yshift)/o.h-Oe/2;ae=b2.align(Zr-dr/o.h,Oe,0,1,r.yanchor)}h("x",pr),h("y",ae),(!n||!i)&&(hr=b2.getCursor(n?.5:pr,i?.5:ae,r.xanchor,r.yanchor))}w.attr({transform:P6(je,dr)+Ee}),R6(k,hr)},clickFn:function(je,dr){r.captureevents&&e.emit("plotly_clickannotation",A(dr))},doneFn:function(){R6(k),D6.call("_guiRelayout",e,p());var je=document.querySelector(".js-notes-box-panel");je&&je.redraw(je.selectedObj)}})}}s.annotationText?Y.call(E6.makeEditable,{delegate:k,gd:e}).call(O).on("edit",function(X){r.text=X,this.call(O),h("text",X),n&&n.autorange&&v(n._name+".autorange",!0),i&&i.autorange&&v(i._name+".autorange",!0),D6.call("_guiRelayout",e,p())}):Y.call(O)}});var fB=G((CCe,uB)=>{"use strict";var iB=Se(),wge=Ar(),lB=yt().arrayEditor;uB.exports={hasClickToShow:Tge,onClick:Mge};function Tge(e,r){var t=sB(e,r);return t.on.length>0||t.explicitOff.length>0}function Mge(e,r){var t=sB(e,r),a=t.on,n=t.off.concat(t.explicitOff),i={},l=e._fullLayout.annotations,o,s;if(a.length||n.length){for(o=0;o{"use strict";var z6=Se(),Af=kr();cB.exports=function(r,t,a,n){n("opacity");var i=n("bgcolor"),l=n("bordercolor"),o=Af.opacity(l);n("borderpad");var s=n("borderwidth"),u=n("showarrow");n("text",u?" ":a._dfltTitle.annotation),n("textangle"),z6.coerceFont(n,"font",a.font),n("width"),n("align");var f=n("height");if(f&&n("valign"),u){var c=n("arrowside"),v,h;c.indexOf("end")!==-1&&(v=n("arrowhead"),h=n("arrowsize")),c.indexOf("start")!==-1&&(n("startarrowhead",v),n("startarrowsize",h)),n("arrowcolor",o?t.bordercolor:Af.defaultLine),n("arrowwidth",(o&&s||1)*2),n("standoff"),n("startstandoff")}var p=n("hovertext"),m=a.hoverlabel||{};if(p){var y=n("hoverlabel.bgcolor",m.bgcolor||(Af.opacity(i)?Af.rgb(i):Af.defaultLine)),x=n("hoverlabel.bordercolor",m.bordercolor||Af.contrast(y)),_=z6.extendFlat({},m.font);_.color||(_.color=x),z6.coerceFont(n,"hoverlabel.font",_)}n("captureevents",!!p)}});var dB=G((qCe,vB)=>{"use strict";var N6=Se(),Lu=Qr(),Age=mi(),kge=F6(),Lge=df();vB.exports=function(r,t){Age(r,t,{name:"annotations",handleItemDefaults:Cge})};function Cge(e,r,t){function a(w,b){return N6.coerce(e,r,Lge,w,b)}var n=a("visible"),i=a("clicktoshow");if(n||i){kge(e,r,t,a);for(var l=r.showarrow,o=["x","y"],s=[-10,-30],u={_fullLayout:t},f=0;f<2;f++){var c=o[f],v=Lu.coerceRef(e,r,u,c,"","paper");if(v!=="paper"){var h=Lu.getFromId(u,v);h._annIndices.push(r._index)}if(Lu.coercePosition(r,u,a,v,c,.5),l){var p="a"+c,m=Lu.coerceRef(e,r,u,p,"pixel",["pixel","paper"]);m!=="pixel"&&m!==v&&(m=r[p]="pixel");var y=m==="pixel"?s[f]:.4;Lu.coercePosition(r,u,a,m,p,y)}a(c+"anchor"),a(c+"shift")}if(N6.noneOrAll(e,r,["x","y"]),l&&N6.noneOrAll(e,r,["ax","ay"]),i){var x=a("xclick"),_=a("yclick");r._xclick=x===void 0?r.x:Lu.cleanPosition(x,u,r.xref),r._yclick=_===void 0?r.y:Lu.cleanPosition(_,u,r.yref)}}}});var mB=G((DCe,pB)=>{"use strict";var I6=Se(),Cu=Qr(),Sge=_m().draw;pB.exports=function(r){var t=r._fullLayout,a=I6.filterVisible(t.annotations);if(a.length&&r._fullData.length)return I6.syncOrAsync([Sge,qge],r)};function qge(e){var r=e._fullLayout;I6.filterVisible(r.annotations).forEach(function(t){var a=Cu.getFromId(e,t.xref),n=Cu.getFromId(e,t.yref),i=Cu.getRefType(t.xref),l=Cu.getRefType(t.yref);t._extremes={},i==="range"&&hB(t,a),l==="range"&&hB(t,n)})}function hB(e,r){var t=r._id,a=t.charAt(0),n=e[a],i=e["a"+a],l=e[a+"ref"],o=e["a"+a+"ref"],s=e["_"+a+"padplus"],u=e["_"+a+"padminus"],f={x:1,y:-1}[a]*e[a+"shift"],c=3*e.arrowsize*e.arrowwidth||0,v=c+f,h=c-f,p=3*e.startarrowsize*e.arrowwidth||0,m=p+f,y=p-f,x;if(o===l){var _=Cu.findExtremes(r,[r.r2c(n)],{ppadplus:v,ppadminus:h}),w=Cu.findExtremes(r,[r.r2c(i)],{ppadplus:Math.max(s,m),ppadminus:Math.max(u,y)});x={min:[_.min[0],w.min[0]],max:[_.max[0],w.max[0]]}}else m=i?m+i:m,y=i?y-i:y,x=Cu.findExtremes(r,[r.r2c(n)],{ppadplus:Math.max(s,v,m),ppadminus:Math.max(u,h,y)});e._extremes[t]=x}});var gB=G((PCe,yB)=>{"use strict";var Dge=Gr(),Pge=Hd();yB.exports=function(r,t,a,n){t=t||{};var i=a==="log"&&t.type==="linear",l=a==="linear"&&t.type==="log";if(!(i||l))return;var o=r._fullLayout.annotations,s=t._id.charAt(0),u,f;function c(h){var p=u[h],m=null;i?m=Pge(p,t.range):m=Math.pow(10,p),Dge(m)||(m=null),n(f+h,m)}for(var v=0;v{"use strict";var B6=_m(),xB=fB();bB.exports={moduleType:"component",name:"annotations",layoutAttributes:df(),supplyLayoutDefaults:dB(),includeBasePlot:e2()("annotations"),calcAutorange:mB(),draw:B6.draw,drawOne:B6.drawOne,drawRaw:B6.drawRaw,hasClickToShow:xB.hasClickToShow,onClick:xB.onClick,convertCoords:gB()}});var wm=G((RCe,wB)=>{"use strict";var _t=df(),Ege=Oi().overrideAll,Rge=yt().templatedArray;wB.exports=Ege(Rge("annotation",{visible:_t.visible,x:{valType:"any"},y:{valType:"any"},z:{valType:"any"},ax:{valType:"number"},ay:{valType:"number"},xanchor:_t.xanchor,xshift:_t.xshift,yanchor:_t.yanchor,yshift:_t.yshift,text:_t.text,textangle:_t.textangle,font:_t.font,width:_t.width,height:_t.height,opacity:_t.opacity,align:_t.align,valign:_t.valign,bgcolor:_t.bgcolor,bordercolor:_t.bordercolor,borderpad:_t.borderpad,borderwidth:_t.borderwidth,showarrow:_t.showarrow,arrowcolor:_t.arrowcolor,arrowhead:_t.arrowhead,startarrowhead:_t.startarrowhead,arrowside:_t.arrowside,arrowsize:_t.arrowsize,startarrowsize:_t.startarrowsize,arrowwidth:_t.arrowwidth,standoff:_t.standoff,startstandoff:_t.startstandoff,hovertext:_t.hovertext,hoverlabel:_t.hoverlabel,captureevents:_t.captureevents}),"calc","from-root")});var MB=G((zCe,TB)=>{"use strict";var H6=Se(),zge=Qr(),Fge=mi(),Nge=F6(),Ige=wm();TB.exports=function(r,t,a){Fge(r,t,{name:"annotations",handleItemDefaults:Bge,fullLayout:a.fullLayout})};function Bge(e,r,t,a){function n(o,s){return H6.coerce(e,r,Ige,o,s)}function i(o){var s=o+"axis",u={_fullLayout:{}};return u._fullLayout[s]=t[s],zge.coercePosition(r,u,n,o,o,.5)}var l=n("visible");l&&(Nge(e,r,a.fullLayout,n),i("x"),i("y"),i("z"),H6.noneOrAll(e,r,["x","y","z"]),r.xref="x",r.yref="y",r.zref="z",n("xanchor"),n("yanchor"),n("xshift"),n("yshift"),r.showarrow&&(r.axref="pixel",r.ayref="pixel",n("ax",-10),n("ay",-30),H6.noneOrAll(e,r,["ax","ay"])))}});var CB=G((FCe,LB)=>{"use strict";var AB=Se(),kB=Qr();LB.exports=function(r){for(var t=r.fullSceneLayout,a=t.annotations,n=0;n{"use strict";function O6(e,r){var t=[0,0,0,0],a,n;for(a=0;a<4;++a)for(n=0;n<4;++n)t[n]+=e[4*a+n]*r[a];return t}function Oge(e,r){var t=O6(e.projection,O6(e.view,O6(e.model,[r[0],r[1],r[2],1])));return t}SB.exports=Oge});var PB=G((ICe,DB)=>{"use strict";var Yge=_m().drawRaw,Gge=qB(),Uge=["x","y","z"];DB.exports=function(r){for(var t=r.fullSceneLayout,a=r.dataScale,n=t.annotations,i=0;i1){o=!0;break}}o?r.fullLayout._infolayer.select(".annotation-"+r.id+'[data-index="'+i+'"]').remove():(l._pdata=Gge(r.glplot.cameraParams,[t.xaxis.r2l(l.x)*a[0],t.yaxis.r2l(l.y)*a[1],t.zaxis.r2l(l.z)*a[2]]),Yge(r.graphDiv,l,i,r.id,l._xa,l._ya))}}});var zB=G((BCe,RB)=>{"use strict";var Vge=Ar(),EB=Se();RB.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:wm()}}},layoutAttributes:wm(),handleDefaults:MB(),includeBasePlot:Xge,convert:CB(),draw:PB()};function Xge(e,r){var t=Vge.subplotsRegistry.gl3d;if(t)for(var a=t.attrRegex,n=Object.keys(e),i=0;i{"use strict";var HCe=(La(),Fe(ka)),FB=Ta(),NB=Ki().line,Wge=Yi().dash,tl=At().extendFlat,Zge=yt().templatedArray,OCe=(jv(),Fe(Kv)),kf=qn(),IB=df(),{shapeTexttemplateAttrs:Jge,templatefallbackAttrs:$ge}=Vn(),Kge=xh();BB.exports=Zge("shape",{visible:tl({},kf.visible,{editType:"calc+arraydraw"}),showlegend:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},legend:tl({},kf.legend,{editType:"calc+arraydraw"}),legendgroup:tl({},kf.legendgroup,{editType:"calc+arraydraw"}),legendgrouptitle:{text:tl({},kf.legendgrouptitle.text,{editType:"calc+arraydraw"}),font:FB({editType:"calc+arraydraw"}),editType:"calc+arraydraw"},legendrank:tl({},kf.legendrank,{editType:"calc+arraydraw"}),legendwidth:tl({},kf.legendwidth,{editType:"calc+arraydraw"}),type:{valType:"enumerated",values:["circle","rect","path","line"],editType:"calc+arraydraw"},layer:{valType:"enumerated",values:["below","above","between"],dflt:"above",editType:"arraydraw"},xref:tl({},IB.xref,{arrayOk:!0}),xsizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},xanchor:{valType:"any",editType:"calc+arraydraw"},x0:{valType:"any",editType:"calc+arraydraw"},x1:{valType:"any",editType:"calc+arraydraw"},x0shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},x1shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},yref:tl({},IB.yref,{arrayOk:!0}),ysizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},yanchor:{valType:"any",editType:"calc+arraydraw"},y0:{valType:"any",editType:"calc+arraydraw"},y1:{valType:"any",editType:"calc+arraydraw"},y0shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},y1shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},path:{valType:"string",editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},line:{color:tl({},NB.color,{editType:"arraydraw"}),width:tl({},NB.width,{editType:"calc+arraydraw"}),dash:tl({},Wge,{editType:"arraydraw"}),editType:"calc+arraydraw"},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd",editType:"arraydraw"},editable:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},label:{text:{valType:"string",dflt:"",editType:"arraydraw"},texttemplate:Jge({},{keys:Object.keys(Kge)}),texttemplatefallback:$ge({editType:"arraydraw"}),font:FB({editType:"calc+arraydraw",colorEditType:"arraydraw"}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"],editType:"arraydraw"},textangle:{valType:"angle",dflt:"auto",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],editType:"calc+arraydraw"},padding:{valType:"number",dflt:3,min:0,editType:"arraydraw"},editType:"arraydraw"},editType:"arraydraw"})});var OB=G((GCe,HB)=>{"use strict";var Lf=Se(),ni=Qr(),jge=mi(),Qge=Y6(),w2=Wo();HB.exports=function(r,t){jge(r,t,{name:"shapes",handleItemDefaults:r3e})};function e3e(e,r){return e?"bottom":r.indexOf("top")!==-1?"top":r.indexOf("bottom")!==-1?"bottom":"middle"}function r3e(e,r,t){function a(w,b){return Lf.coerce(e,r,Qge,w,b)}r._isShape=!0;var n=a("visible");if(!n)return;var i=a("showlegend");a("legend"),a("legendgroup"),i&&(a("legendwidth"),a("legendgrouptitle.text"),Lf.coerceFont(a,"legendgrouptitle.font"),a("legendrank"));var l=a("path"),o=l?"path":"rect",s=a("type",o),u=s!=="path";u&&delete r.path,a("editable"),a("layer"),a("opacity"),a("fillcolor"),a("fillrule");var f=a("line.width");f&&(a("line.color"),a("line.dash"));var c=a("xsizemode"),v=a("ysizemode");let h=[.25,.75],p=[0,10];["x","y"].forEach(w=>{var b=w+"anchor",M=w==="x"?c:v,A={_fullLayout:t},k,S,D,P;let R=w+"ref",F=e[R];if(Array.isArray(F)&&F.length>0){let B=w2.countDefiningCoords(s,l,w);P=ni.coerceRefArray(e,r,A,w,void 0,"paper",B),r["_"+w+"refArray"]=!0}else P=ni.coerceRef(e,r,A,w,void 0,"paper");if(Array.isArray(P))P.forEach(function(B){ni.getRefType(B)==="range"&&(k=ni.getFromId(A,B),k&&k._shapeIndices.indexOf(r._index)===-1&&k._shapeIndices.push(r._index))}),u&&[0,1].forEach(function(B){let H=P[B];ni.getRefType(H)==="range"?(k=ni.getFromId(A,H),S=w2.shapePositionToRange(k),D=w2.rangeToShapePosition(k),(k.type==="category"||k.type==="multicategory")&&a(w+B+"shift")):S=D=Lf.identity;let Y=w+B,O=e[Y];if(e[Y]=S(e[Y],!0),M==="pixel"?a(Y,p[B]):ni.coercePosition(r,A,a,H,Y,h[B]),r[Y]=D(r[Y]),e[Y]=O,B===0&&M==="pixel"){let V=e[b];e[b]=S(e[b],!0),ni.coercePosition(r,A,a,H,b,.25),r[b]=D(r[b]),e[b]=V}});else{if(ni.getRefType(P)==="range"?(k=ni.getFromId(A,P),k._shapeIndices.push(r._index),D=w2.rangeToShapePosition(k),S=w2.shapePositionToRange(k),u&&(k.type==="category"||k.type==="multicategory")&&(a(w+"0shift"),a(w+"1shift"))):S=D=Lf.identity,u){let H=w+"0",N=w+"1",Y=e[H],O=e[N];e[H]=S(e[H],!0),e[N]=S(e[N],!0),M==="pixel"?(a(H,p[0]),a(N,p[1])):(ni.coercePosition(r,A,a,P,H,h[0]),ni.coercePosition(r,A,a,P,N,h[1])),r[H]=D(r[H]),r[N]=D(r[N]),e[H]=Y,e[N]=O}if(M==="pixel"){let H=e[b];e[b]=S(e[b],!0),ni.coercePosition(r,A,a,P,b,.25),r[b]=D(r[b]),e[b]=H}}}),u&&Lf.noneOrAll(e,r,["x0","x1","y0","y1"]);var m=s==="line",y,x;if(u&&(y=a("label.texttemplate"),a("label.texttemplatefallback")),y||(x=a("label.text")),x||y){a("label.textangle");var _=a("label.textposition",m?"middle":"middle center");a("label.xanchor"),a("label.yanchor",e3e(m,_)),a("label.padding"),Lf.coerceFont(a,"label.font",t.font)}}});var UB=G((UCe,GB)=>{"use strict";var t3e=kr(),YB=Se();function a3e(e,r){return e?"bottom":r.indexOf("top")!==-1?"top":r.indexOf("bottom")!==-1?"bottom":"middle"}GB.exports=function(r,t,a){a("newshape.visible"),a("newshape.name"),a("newshape.showlegend"),a("newshape.legend"),a("newshape.legendwidth"),a("newshape.legendgroup"),a("newshape.legendgrouptitle.text"),YB.coerceFont(a,"newshape.legendgrouptitle.font"),a("newshape.legendrank"),a("newshape.drawdirection"),a("newshape.layer"),a("newshape.fillcolor"),a("newshape.fillrule"),a("newshape.opacity");var n=a("newshape.line.width");if(n){var i=(r||{}).plot_bgcolor||"#FFF";a("newshape.line.color",t3e.contrast(i)),a("newshape.line.dash")}var l=r.dragmode==="drawline",o=a("newshape.label.text"),s=a("newshape.label.texttemplate");if(a("newshape.label.texttemplatefallback"),o||s){a("newshape.label.textangle");var u=a("newshape.label.textposition",l?"middle":"middle center");a("newshape.label.xanchor"),a("newshape.label.yanchor",a3e(l,u)),a("newshape.label.padding"),YB.coerceFont(a,"newshape.label.font",t.font)}a("activeshape.fillcolor"),a("activeshape.opacity")}});var KB=G((VCe,$B)=>{"use strict";var G6=Se(),qi=Qr(),El=(Pv(),Fe(Dv)),U6=Wo();$B.exports=function(r){var t=r._fullLayout,a=G6.filterVisible(t.shapes);if(!(!a.length||!r._fullData.length))for(var n=0;n{l=qi.getFromId(r,c),i._extremes[l._id]=qi.findExtremes(l,v,XB(i))})}else i.xref!=="paper"&&s!=="domain"&&(l=qi.getFromId(r,i.xref),o=ZB(l,i,El.paramIsX),o&&(i._extremes[l._id]=qi.findExtremes(l,o,XB(i))));if(u==="array"){let f=VB(r,i,"y");Object.entries(f).forEach(([c,v])=>{l=qi.getFromId(r,c),i._extremes[l._id]=qi.findExtremes(l,v,WB(i))})}else i.yref!=="paper"&&u!=="domain"&&(l=qi.getFromId(r,i.yref),o=ZB(l,i,El.paramIsY),o&&(i._extremes[l._id]=qi.findExtremes(l,o,WB(i))))}};function VB(e,r,t){let a=r[t+"ref"],n=t==="x"?El.paramIsX:El.paramIsY;function i(c,v){c==="paper"||qi.getRefType(c)==="domain"||(l[c]||(l[c]=[]),l[c].push(v))}let l={};if(r.type==="path"&&r.path){let c=r.path.match(El.segmentRE)||[];for(var o=0,s=0;sp&&(i(a[o],m[p]),o++)}}else i(a[0],r[t+"0"]),i(a[1],r[t+"1"]);let u={};for(let c in l){let v=qi.getFromId(e,c);if(v){var f=v.type==="category"||v.type==="multicategory"?v.r2c:v.d2c;v.type==="date"&&(f=U6.decodeDate(f)),u[v._id]=l[c].map(f)}}return u}function XB(e){return JB(e.line.width,e.xsizemode,e.x0,e.x1,e.path,!1)}function WB(e){return JB(e.line.width,e.ysizemode,e.y0,e.y1,e.path,!0)}function JB(e,r,t,a,n,i){var l=e/2,o=i;if(r==="pixel"){var s=n?U6.extractPathCoords(n,i?El.paramIsY:El.paramIsX):[t,a],u=G6.aggNums(Math.max,null,s),f=G6.aggNums(Math.min,null,s),c=f<0?Math.abs(f)+l:l,v=u>0?u+l:l;return{ppad:l,ppadplus:o?c:v,ppadminus:o?v:c}}else return{ppad:l}}function ZB(e,r,t){var a=e._id.charAt(0)==="x"?"x":"y",n=e.type==="category"||e.type==="multicategory",i,l,o=0,s=0,u=n?e.r2c:e.d2c,f=r[a+"sizemode"]==="scaled";if(f?(i=r[a+"0"],l=r[a+"1"],n&&(o=r[a+"0shift"],s=r[a+"1shift"])):(i=r[a+"anchor"],l=r[a+"anchor"]),i!==void 0)return[u(i)+o,u(l)+s];if(r.path){var c=1/0,v=-1/0,h=r.path.match(El.segmentRE),p,m,y,x,_;for(e.type==="date"&&(u=U6.decodeDate(u)),p=0;pv&&(v=_)));if(v>=c)return[c,v]}}});var eH=G((XCe,QB)=>{"use strict";var jB=sp();QB.exports={moduleType:"component",name:"shapes",layoutAttributes:Y6(),supplyLayoutDefaults:OB(),supplyDrawNewShapeDefaults:UB(),includeBasePlot:e2()("shapes"),calcAutorange:KB(),draw:jB.draw,drawOne:jB.drawOne}});var V6=G((ZCe,tH)=>{"use strict";var rH=(La(),Fe(ka)),n3e=yt().templatedArray,WCe=(jv(),Fe(Kv));tH.exports=n3e("image",{visible:{valType:"boolean",dflt:!0,editType:"arraydraw"},source:{valType:"string",editType:"arraydraw"},layer:{valType:"enumerated",values:["below","above"],dflt:"above",editType:"arraydraw"},sizex:{valType:"number",dflt:0,editType:"arraydraw"},sizey:{valType:"number",dflt:0,editType:"arraydraw"},sizing:{valType:"enumerated",values:["fill","contain","stretch"],dflt:"contain",editType:"arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},x:{valType:"any",dflt:0,editType:"arraydraw"},y:{valType:"any",dflt:0,editType:"arraydraw"},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left",editType:"arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],dflt:"top",editType:"arraydraw"},xref:{valType:"enumerated",values:["paper",rH.idRegex.x.toString()],dflt:"paper",editType:"arraydraw"},yref:{valType:"enumerated",values:["paper",rH.idRegex.y.toString()],dflt:"paper",editType:"arraydraw"},editType:"arraydraw"})});var nH=G((JCe,aH)=>{"use strict";var i3e=Se(),X6=Qr(),l3e=mi(),o3e=V6(),s3e="images";aH.exports=function(r,t){var a={name:s3e,handleItemDefaults:u3e};l3e(r,t,a)};function u3e(e,r,t){function a(v,h){return i3e.coerce(e,r,o3e,v,h)}var n=a("source"),i=a("visible",!!n);if(!i)return r;a("layer"),a("xanchor"),a("yanchor"),a("sizex"),a("sizey"),a("sizing"),a("opacity");for(var l={_fullLayout:t},o=["x","y"],s=0;s<2;s++){var u=o[s],f=X6.coerceRef(e,r,l,u,"paper",void 0);if(f!=="paper"){var c=X6.getFromId(l,f);c._imgIndices.push(r._index)}X6.coercePosition(r,l,a,f,u,0)}return r}});var sH=G(($Ce,oH)=>{"use strict";var iH=Er(),f3e=$r(),Cf=Qr(),lH=va(),c3e=($s(),Fe(Js));oH.exports=function(r){var t=r._fullLayout,a=[],n={},i=[],l,o;for(o=0;o{"use strict";var uH=Gr(),v3e=Hd();fH.exports=function(r,t,a,n){t=t||{};var i=a==="log"&&t.type==="linear",l=a==="linear"&&t.type==="log";if(i||l){for(var o=r._fullLayout.images,s=t._id.charAt(0),u,f,c=0;c{"use strict";vH.exports={moduleType:"component",name:"images",layoutAttributes:V6(),supplyLayoutDefaults:nH(),includeBasePlot:e2()("images"),draw:sH(),convertCoords:cH()}});var Tm={};pt(Tm,{activeColor:()=>N3e,arrowOffsetX:()=>R3e,arrowPadX:()=>S3e,arrowSymbol:()=>B3e,autoMarginIdRoot:()=>M3e,blankHeaderOpts:()=>A3e,buttonClassName:()=>b3e,containerClassName:()=>h3e,dropdownButtonClassName:()=>x3e,dropdownButtonGroupClassName:()=>g3e,gapButton:()=>F3e,gapButtonHeader:()=>z3e,headerArrowClassName:()=>y3e,headerClassName:()=>m3e,headerGroupClassName:()=>p3e,hoverColor:()=>I3e,itemRectClassName:()=>_3e,itemTextClassName:()=>w3e,menuIndexAttrName:()=>T3e,minHeight:()=>L3e,minWidth:()=>k3e,name:()=>d3e,rx:()=>q3e,ry:()=>D3e,textOffsetX:()=>P3e,textOffsetY:()=>E3e,textPadX:()=>C3e});var d3e,h3e,p3e,m3e,y3e,g3e,x3e,b3e,_3e,w3e,T3e,M3e,A3e,k3e,L3e,C3e,S3e,q3e,D3e,P3e,E3e,R3e,z3e,F3e,N3e,I3e,B3e,Mm=Cr(()=>{"use strict";d3e="updatemenus",h3e="updatemenu-container",p3e="updatemenu-header-group",m3e="updatemenu-header",y3e="updatemenu-header-arrow",g3e="updatemenu-dropdown-button-group",x3e="updatemenu-dropdown-button",b3e="updatemenu-button",_3e="updatemenu-item-rect",w3e="updatemenu-item-text",T3e="updatemenu-active-index",M3e="updatemenu-",A3e={label:" "},k3e=30,L3e=30,C3e=24,S3e=16,q3e=2,D3e=2,P3e=12,E3e=3,R3e=4,z3e=5,F3e=2,N3e="#F4FAFF",I3e="#F4FAFF",B3e={left:"\u25C4",right:"\u25BA",up:"\u25B2",down:"\u25BC"}});var W6=G((QCe,pH)=>{"use strict";var H3e=Ta(),O3e=vi(),Y3e=At().extendFlat,G3e=Oi().overrideAll,U3e=bh(),hH=yt().templatedArray,V3e=hH("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}});pH.exports=G3e(hH("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:V3e,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:Y3e(U3e({editType:"arraydraw"}),{}),font:H3e({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:O3e.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")});var xH=G((eSe,gH)=>{"use strict";var Am=Se(),mH=mi(),yH=W6(),X3e=(Mm(),Fe(Tm)),W3e=X3e.name,Z3e=yH.buttons;gH.exports=function(r,t){var a={name:W3e,handleItemDefaults:J3e};mH(r,t,a)};function J3e(e,r,t){function a(l,o){return Am.coerce(e,r,yH,l,o)}var n=mH(e,r,{name:"buttons",handleItemDefaults:$3e}),i=a("visible",n.length>0);i&&(a("active"),a("direction"),a("type"),a("showactive"),a("x"),a("y"),Am.noneOrAll(e,r,["x","y"]),a("xanchor"),a("yanchor"),a("pad.t"),a("pad.r"),a("pad.b"),a("pad.l"),Am.coerceFont(a,"font",t.font),a("bgcolor",t.paper_bgcolor),a("bordercolor"),a("borderwidth"))}function $3e(e,r){function t(n,i){return Am.coerce(e,r,Z3e,n,i)}var a=t("visible",e.method==="skip"||Array.isArray(e.args));a&&(t("method"),t("args"),t("args2"),t("label"),t("execute"))}});var wH=G((rSe,_H)=>{"use strict";_H.exports=Ht;var al=Er(),bH=kr(),Sf=$r(),km=Se();function Ht(e,r,t){this.gd=e,this.container=r,this.id=t,this.position=null,this.translateX=null,this.translateY=null,this.hbar=null,this.vbar=null,this.bg=this.container.selectAll("rect.scrollbox-bg").data([0]),this.bg.exit().on(".drag",null).on("wheel",null).remove(),this.bg.enter().append("rect").classed("scrollbox-bg",!0).style("pointer-events","all").attr({opacity:0,x:0,y:0,width:0,height:0})}Ht.barWidth=2;Ht.barLength=20;Ht.barRadius=2;Ht.barPad=1;Ht.barColor="#808BA4";Ht.prototype.enable=function(r,t,a){var n=this.gd._fullLayout,i=n.width,l=n.height;this.position=r;var o=this.position.l,s=this.position.w,u=this.position.t,f=this.position.h,c=this.position.direction,v=c==="down",h=c==="left",p=c==="right",m=c==="up",y=s,x=f,_,w,b,M;!v&&!h&&!p&&!m&&(this.position.direction="down",v=!0);var A=v||m;A?(_=o,w=_+y,v?(b=u,M=Math.min(b+x,l),x=M-b):(M=u+x,b=Math.max(M-x,0),x=M-b)):(b=u,M=b+x,h?(w=o+y,_=Math.max(w-y,0),y=w-_):(_=o,w=Math.min(_+y,i),y=w-_)),this._box={l:_,t:b,w:y,h:x};var k=s>y,S=Ht.barLength+2*Ht.barPad,D=Ht.barWidth+2*Ht.barPad,P=o,R=u+f;R+D>l&&(R=l-D);var F=this.container.selectAll("rect.scrollbar-horizontal").data(k?[0]:[]);F.exit().on(".drag",null).remove(),F.enter().append("rect").classed("scrollbar-horizontal",!0).call(bH.fill,Ht.barColor),k?(this.hbar=F.attr({rx:Ht.barRadius,ry:Ht.barRadius,x:P,y:R,width:S,height:D}),this._hbarXMin=P+S/2,this._hbarTranslateMax=y-S):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var B=f>x,H=Ht.barWidth+2*Ht.barPad,N=Ht.barLength+2*Ht.barPad,Y=o+s,O=u;Y+H>i&&(Y=i-H);var V=this.container.selectAll("rect.scrollbar-vertical").data(B?[0]:[]);V.exit().on(".drag",null).remove(),V.enter().append("rect").classed("scrollbar-vertical",!0).call(bH.fill,Ht.barColor),B?(this.vbar=V.attr({rx:Ht.barRadius,ry:Ht.barRadius,x:Y,y:O,width:H,height:N}),this._vbarYMin=O+N/2,this._vbarTranslateMax=x-N):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var X=this.id,W=_-.5,U=B?w+H+.5:w+.5,$=b-.5,re=k?M+D+.5:M+.5,se=n._topdefs.selectAll("#"+X).data(k||B?[0]:[]);if(se.exit().remove(),se.enter().append("clipPath").attr("id",X).append("rect"),k||B?(this._clipRect=se.select("rect").attr({x:Math.floor(W),y:Math.floor($),width:Math.ceil(U)-Math.floor(W),height:Math.ceil(re)-Math.floor($)}),this.container.call(Sf.setClipUrl,X,this.gd),this.bg.attr({x:o,y:u,width:s,height:f})):(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(Sf.setClipUrl,null),delete this._clipRect),k||B){var oe=al.behavior.drag().on("dragstart",function(){al.event.sourceEvent.preventDefault()}).on("drag",this._onBoxDrag.bind(this));this.container.on("wheel",null).on("wheel",this._onBoxWheel.bind(this)).on(".drag",null).call(oe);var K=al.behavior.drag().on("dragstart",function(){al.event.sourceEvent.preventDefault(),al.event.sourceEvent.stopPropagation()}).on("drag",this._onBarDrag.bind(this));k&&this.hbar.on(".drag",null).call(K),B&&this.vbar.on(".drag",null).call(K)}this.setTranslate(t,a)};Ht.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(Sf.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)};Ht.prototype._onBoxDrag=function(){var r=this.translateX,t=this.translateY;this.hbar&&(r-=al.event.dx),this.vbar&&(t-=al.event.dy),this.setTranslate(r,t)};Ht.prototype._onBoxWheel=function(){var r=this.translateX,t=this.translateY;this.hbar&&(r+=al.event.deltaY),this.vbar&&(t+=al.event.deltaY),this.setTranslate(r,t)};Ht.prototype._onBarDrag=function(){var r=this.translateX,t=this.translateY;if(this.hbar){var a=r+this._hbarXMin,n=a+this._hbarTranslateMax,i=km.constrain(al.event.x,a,n),l=(i-a)/(n-a),o=this.position.w-this._box.w;r=l*o}if(this.vbar){var s=t+this._vbarYMin,u=s+this._vbarTranslateMax,f=km.constrain(al.event.y,s,u),c=(f-s)/(u-s),v=this.position.h-this._box.h;t=c*v}this.setTranslate(r,t)};Ht.prototype.setTranslate=function(r,t){var a=this.position.w-this._box.w,n=this.position.h-this._box.h;if(r=km.constrain(r||0,0,a),t=km.constrain(t||0,0,n),this.translateX=r,this.translateY=t,this.container.call(Sf.setTranslate,this._box.l-this.position.l-r,this._box.t-this.position.t-t),this._clipRect&&this._clipRect.attr({x:Math.floor(this.position.l+r-.5),y:Math.floor(this.position.t+t-.5)}),this.hbar){var i=r/a;this.hbar.call(Sf.setTranslate,r+i*this._hbarTranslateMax,t)}if(this.vbar){var l=t/n;this.vbar.call(Sf.setTranslate,r,t+l*this._vbarTranslateMax)}}});var PH=G((tSe,DH)=>{"use strict";var qf=Er(),T2=Jt(),M2=kr(),Df=$r(),ii=Se(),Lm=ba(),K3e=yt().arrayEditor,MH=(Xa(),Fe(Va)).LINE_SPACING,Sr=(Mm(),Fe(Tm)),j3e=wH();DH.exports=function(r){var t=r._fullLayout,a=ii.filterVisible(t[Sr.name]);function n(v){T2.autoMargin(r,SH(v))}var i=t._menulayer.selectAll("g."+Sr.containerClassName).data(a.length>0?[0]:[]);if(i.enter().append("g").classed(Sr.containerClassName,!0).style("cursor","pointer"),i.exit().each(function(){qf.select(this).selectAll("g."+Sr.headerGroupClassName).each(n)}).remove(),a.length!==0){var l=i.selectAll("g."+Sr.headerGroupClassName).data(a,Q3e);l.enter().append("g").classed(Sr.headerGroupClassName,!0);for(var o=ii.ensureSingle(i,"g",Sr.dropdownButtonGroupClassName,function(v){v.style("pointer-events","all")}),s=0;s{"use strict";var l5e=(Mm(),Fe(Tm));EH.exports={moduleType:"component",name:l5e.name,layoutAttributes:W6(),supplyLayoutDefaults:xH(),draw:PH()}});var k2={};pt(k2,{arrowOffsetX:()=>k5e,autoMarginIdRoot:()=>w5e,containerClassName:()=>s5e,currentValueClass:()=>x5e,currentValueInset:()=>Q5e,currentValuePadding:()=>j5e,gripBgActiveColor:()=>Y5e,gripBgColor:()=>O5e,gripBorder:()=>I5e,gripBorderColor:()=>H5e,gripBorderWidth:()=>B5e,gripHeight:()=>N5e,gripRadius:()=>z5e,gripRectClass:()=>d5e,gripWidth:()=>F5e,groupClassName:()=>u5e,inputAreaClass:()=>f5e,inputProxyClass:()=>p5e,labelClass:()=>g5e,labelGroupClass:()=>y5e,labelOffset:()=>U5e,labelPadding:()=>G5e,labelsClass:()=>m5e,menuIndexAttrName:()=>_5e,minHeight:()=>M5e,minWidth:()=>T5e,minorTickColor:()=>$5e,minorTickLength:()=>K5e,minorTickOffset:()=>J5e,name:()=>o5e,railBgColor:()=>P5e,railBorder:()=>S5e,railBorderColor:()=>D5e,railBorderWidth:()=>q5e,railHeight:()=>b5e,railInset:()=>E5e,railRadius:()=>L5e,railRectClass:()=>c5e,railTouchRectClass:()=>v5e,railWidth:()=>C5e,stepInset:()=>R5e,textPadX:()=>A5e,tickColor:()=>X5e,tickLength:()=>Z5e,tickOffset:()=>W5e,tickRectClass:()=>h5e,tickWidth:()=>V5e});var o5e,s5e,u5e,f5e,c5e,v5e,d5e,h5e,p5e,m5e,y5e,g5e,x5e,b5e,_5e,w5e,T5e,M5e,A5e,k5e,L5e,C5e,S5e,q5e,D5e,P5e,E5e,R5e,z5e,F5e,N5e,I5e,B5e,H5e,O5e,Y5e,G5e,U5e,V5e,X5e,W5e,Z5e,J5e,$5e,K5e,j5e,Q5e,L2=Cr(()=>{"use strict";o5e="sliders",s5e="slider-container",u5e="slider-group",f5e="slider-input-area",c5e="slider-rail-rect",v5e="slider-rail-touch-rect",d5e="slider-grip-rect",h5e="slider-tick-rect",p5e="slider-input-proxy",m5e="slider-labels",y5e="slider-label-group",g5e="slider-label",x5e="slider-current-value",b5e=5,_5e="slider-active-index",w5e="slider-",T5e=30,M5e=30,A5e=40,k5e=4,L5e=2,C5e=5,S5e=4,q5e=1,D5e="#bec8d9",P5e="#f8fafc",E5e=8,R5e=10,z5e=10,F5e=20,N5e=20,I5e=20,B5e=1,H5e="#bec8d9",O5e="#f6f8fa",Y5e="#dbdde0",G5e=8,U5e=0,V5e=1,X5e="#333",W5e=25,Z5e=7,J5e=25,$5e="#333",K5e=4,j5e=8,Q5e=0});var K6=G((nSe,NH)=>{"use strict";var zH=Ta(),exe=bh(),rxe=At().extendDeepAll,txe=Oi().overrideAll,axe=Kc(),FH=yt().templatedArray,Su=(L2(),Fe(k2)),nxe=FH("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}});NH.exports=txe(FH("slider",{visible:{valType:"boolean",dflt:!0},active:{valType:"number",min:0,dflt:0},steps:nxe,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:rxe(exe({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:axe.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:zH({})},font:zH({}),activebgcolor:{valType:"color",dflt:Su.gripBgActiveColor},bgcolor:{valType:"color",dflt:Su.railBgColor},bordercolor:{valType:"color",dflt:Su.railBorderColor},borderwidth:{valType:"number",min:0,dflt:Su.railBorderWidth},ticklen:{valType:"number",min:0,dflt:Su.tickLength},tickcolor:{valType:"color",dflt:Su.tickColor},tickwidth:{valType:"number",min:0,dflt:1},minorticklen:{valType:"number",min:0,dflt:Su.minorTickLength}}),"arraydraw","from-root")});var OH=G((iSe,HH)=>{"use strict";var Pf=Se(),IH=mi(),BH=K6(),ixe=(L2(),Fe(k2)),lxe=ixe.name,oxe=BH.steps;HH.exports=function(r,t){IH(r,t,{name:lxe,handleItemDefaults:sxe})};function sxe(e,r,t){function a(c,v){return Pf.coerce(e,r,BH,c,v)}for(var n=IH(e,r,{name:"steps",handleItemDefaults:uxe}),i=0,l=0;l{"use strict";var nl=Er(),Cm=Jt(),es=kr(),il=$r(),li=Se(),fxe=li.strTranslate,C2=ba(),cxe=yt().arrayEditor,Hr=(L2(),Fe(k2)),e_=(Xa(),Fe(Va)),UH=e_.LINE_SPACING,j6=e_.FROM_TL,Q6=e_.FROM_BR;$H.exports=function(r){var t=r._context.staticPlot,a=r._fullLayout,n=vxe(a,r),i=a._infolayer.selectAll("g."+Hr.containerClassName).data(n.length>0?[0]:[]);i.enter().append("g").classed(Hr.containerClassName,!0).style("cursor",t?null:"ew-resize");function l(f){f._commandObserver&&(f._commandObserver.remove(),delete f._commandObserver),Cm.autoMargin(r,VH(f))}if(i.exit().each(function(){nl.select(this).selectAll("g."+Hr.groupClassName).each(l)}).remove(),n.length!==0){var o=i.selectAll("g."+Hr.groupClassName).data(n,dxe);o.enter().append("g").classed(Hr.groupClassName,!0),o.exit().each(l).remove();for(var s=0;s0&&(o=o.transition().duration(r.transition.duration).ease(r.transition.easing)),o.attr("transform",fxe(l-Hr.gripWidth*.5,r._dims.currentValueTotalHeight))}}function r_(e,r){var t=e._dims;return t.inputAreaStart+Hr.stepInset+(t.inputAreaLength-2*Hr.stepInset)*Math.min(1,Math.max(0,r))}function GH(e,r){var t=e._dims;return Math.min(1,Math.max(0,(r-Hr.stepInset-t.inputAreaStart)/(t.inputAreaLength-2*Hr.stepInset-2*t.inputAreaStart)))}function bxe(e,r,t){var a=t._dims,n=li.ensureSingle(e,"rect",Hr.railTouchRectClass,function(i){i.call(ZH,r,e,t).style("pointer-events","all")});n.attr({width:a.inputAreaLength,height:Math.max(a.inputAreaWidth,Hr.tickOffset+t.ticklen+a.labelHeight)}).call(es.fill,t.bgcolor).attr("opacity",0),il.setTranslate(n,0,a.currentValueTotalHeight)}function _xe(e,r){var t=r._dims,a=t.inputAreaLength-Hr.railInset*2,n=li.ensureSingle(e,"rect",Hr.railRectClass);n.attr({width:a,height:Hr.railWidth,rx:Hr.railRadius,ry:Hr.railRadius,"shape-rendering":"crispEdges"}).call(es.stroke,r.bordercolor).call(es.fill,r.bgcolor).style("stroke-width",r.borderwidth+"px"),il.setTranslate(n,Hr.railInset,(t.inputAreaWidth-Hr.railWidth)*.5+t.currentValueTotalHeight)}});var QH=G((oSe,jH)=>{"use strict";var wxe=(L2(),Fe(k2));jH.exports={moduleType:"component",name:wxe.name,layoutAttributes:K6(),supplyLayoutDefaults:OH(),draw:KH()}});var qm=G((sSe,rO)=>{"use strict";var eO=vi();rO.exports={bgcolor:{valType:"color",dflt:eO.background,editType:"plot"},bordercolor:{valType:"color",dflt:eO.defaultLine,editType:"plot"},borderwidth:{valType:"integer",dflt:0,min:0,editType:"plot"},autorange:{valType:"boolean",dflt:!0,editType:"calc",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},range:{valType:"info_array",items:[{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}},{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}}],editType:"calc",impliedEdits:{autorange:!1}},thickness:{valType:"number",dflt:.15,min:0,max:1,editType:"plot"},visible:{valType:"boolean",dflt:!0,editType:"calc"},editType:"calc"}});var t_=G((uSe,tO)=>{"use strict";tO.exports={_isSubplotObj:!0,rangemode:{valType:"enumerated",values:["auto","fixed","match"],dflt:"match",editType:"calc"},range:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},editType:"calc"}});var Dm={};pt(Dm,{bgClassName:()=>Axe,containerClassName:()=>Mxe,extraPad:()=>Zxe,grabAreaCursor:()=>Gxe,grabAreaFill:()=>Yxe,grabAreaMaxClassName:()=>Rxe,grabAreaMinClassName:()=>Dxe,grabAreaWidth:()=>Uxe,grabberMaxClassName:()=>Exe,grabberMinClassName:()=>qxe,handleMaxClassName:()=>zxe,handleMinClassName:()=>Pxe,handleRadius:()=>Xxe,handleStrokeWidth:()=>Wxe,handleWidth:()=>Vxe,maskColor:()=>Ixe,maskMaxClassName:()=>Cxe,maskMaxOppAxisClassName:()=>Nxe,maskMinClassName:()=>Lxe,maskMinOppAxisClassName:()=>Fxe,maskOppAxisColor:()=>Bxe,name:()=>Txe,rangePlotClassName:()=>kxe,slideBoxClassName:()=>Sxe,slideBoxCursor:()=>Oxe,slideBoxFill:()=>Hxe});var Txe,Mxe,Axe,kxe,Lxe,Cxe,Sxe,qxe,Dxe,Pxe,Exe,Rxe,zxe,Fxe,Nxe,Ixe,Bxe,Hxe,Oxe,Yxe,Gxe,Uxe,Vxe,Xxe,Wxe,Zxe,Pm=Cr(()=>{"use strict";Txe="rangeslider",Mxe="rangeslider-container",Axe="rangeslider-bg",kxe="rangeslider-rangeplot",Lxe="rangeslider-mask-min",Cxe="rangeslider-mask-max",Sxe="rangeslider-slidebox",qxe="rangeslider-grabber-min",Dxe="rangeslider-grabarea-min",Pxe="rangeslider-handle-min",Exe="rangeslider-grabber-max",Rxe="rangeslider-grabarea-max",zxe="rangeslider-handle-max",Fxe="rangeslider-mask-min-opp-axis",Nxe="rangeslider-mask-max-opp-axis",Ixe="rgba(0,0,0,0.4)",Bxe="rgba(0,0,0,0.2)",Hxe="transparent",Oxe="ew-resize",Yxe="transparent",Gxe="col-resize",Uxe=10,Vxe=4,Xxe=1,Wxe=1,Zxe=15});var iO=G(Rm=>{"use strict";var Jxe=va(),$xe=ba(),aO=(Pm(),Fe(Dm)),Kxe=(Xa(),Fe(Va)).LINE_SPACING,Em=aO.name;function nO(e){var r=e&&e[Em];return r&&r.visible}Rm.isVisible=nO;Rm.makeData=function(e){for(var r=Jxe.list({_fullLayout:e},"x",!0),t=e.margin,a=[],n=0;n{"use strict";var zm=Se(),lO=yt(),oO=va(),jxe=qm(),Qxe=t_();sO.exports=function(r,t,a){var n=r[a],i=t[a];if(!(n.rangeslider||t._requestRangeslider[i._id]))return;zm.isPlainObject(n.rangeslider)||(n.rangeslider={});var l=n.rangeslider,o=lO.newContainer(i,"rangeslider");function s(M,A){return zm.coerce(l,o,jxe,M,A)}var u,f;function c(M,A){return zm.coerce(u,f,Qxe,M,A)}var v=s("visible");if(v){s("bgcolor",t.plot_bgcolor),s("bordercolor"),s("borderwidth"),s("thickness"),s("autorange",!i.isValidRange(l.range)),s("range");var h=t._subplots;if(h)for(var p=h.cartesian.filter(function(M){return M.slice(0,Math.max(0,M.indexOf("y")))===oO.name2id(a)}).map(function(M){return M.slice(M.indexOf("y"),M.length)}),m=zm.simpleMap(p,oO.id2name),y=0;y{"use strict";var ebe=va().list,rbe=mv().getAutoRange,tbe=(Pm(),Fe(Dm));fO.exports=function(r){for(var t=ebe(r,"x",!0),a=0;a{"use strict";var Fm=Er(),abe=Ar(),nbe=Jt(),jt=Se(),Nm=jt.strTranslate,dO=$r(),rs=kr(),ibe=hv(),lbe=ao(),a_=va(),obe=Ji(),sbe=Yo(),Vr=(Pm(),Fe(Dm));hO.exports=function(e){for(var r=e._fullLayout,t=r._rangeSliderData,a=0;a=V.max)Y=R[O+1];else if(N=V.pmax)Y=R[O+1];else if(N0?e.touches[0].clientX:0}function ube(e,r,t,a){if(r._context.staticPlot)return;var n=e.select("rect."+Vr.slideBoxClassName).node(),i=e.select("rect."+Vr.grabAreaMinClassName).node(),l=e.select("rect."+Vr.grabAreaMaxClassName).node();function o(){var s=Fm.event,u=s.target,f=vO(s),c=f-e.node().getBoundingClientRect().left,v=a.d2p(t._rl[0]),h=a.d2p(t._rl[1]),p=obe.coverSlip();this.addEventListener("touchmove",m),this.addEventListener("touchend",y),p.addEventListener("mousemove",m),p.addEventListener("mouseup",y);function m(x){var _=vO(x),w=+_-f,b,M,A;switch(u){case n:if(A="ew-resize",v+w>t._length||h+w<0)return;b=v+w,M=h+w;break;case i:if(A="col-resize",v+w>t._length)return;b=v+w,M=h;break;case l:if(A="col-resize",h+w<0)return;b=v,M=h+w;break;default:A="ew-resize",b=c,M=c+w;break}if(M{"use strict";var xbe=Se(),bbe=qm(),_be=t_(),n_=iO();mO.exports={moduleType:"component",name:"rangeslider",schema:{subplots:{xaxis:{rangeslider:xbe.extendFlat({},bbe,{yaxis:_be})}}},layoutAttributes:qm(),handleDefaults:uO(),calcAutorange:cO(),draw:pO(),isVisible:n_.isVisible,makeData:n_.makeData,autoMarginOpts:n_.autoMarginOpts}});var Im=G((pSe,xO)=>{"use strict";var wbe=Ta(),gO=vi(),Tbe=yt().templatedArray,Mbe=Tbe("button",{visible:{valType:"boolean",dflt:!0,editType:"plot"},step:{valType:"enumerated",values:["month","year","day","hour","minute","second","all"],dflt:"month",editType:"plot"},stepmode:{valType:"enumerated",values:["backward","todate"],dflt:"backward",editType:"plot"},count:{valType:"number",min:0,dflt:1,editType:"plot"},label:{valType:"string",editType:"plot"},editType:"plot"});xO.exports={visible:{valType:"boolean",editType:"plot"},buttons:Mbe,x:{valType:"number",min:-2,max:3,editType:"plot"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"plot"},y:{valType:"number",min:-2,max:3,editType:"plot"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"bottom",editType:"plot"},font:wbe({editType:"plot"}),bgcolor:{valType:"color",dflt:gO.lightLine,editType:"plot"},activecolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:gO.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"}});var i_={};pt(i_,{darkAmount:()=>qbe,lightAmount:()=>Sbe,minButtonWidth:()=>kbe,rx:()=>Lbe,ry:()=>Cbe,yPad:()=>Abe});var Abe,kbe,Lbe,Cbe,Sbe,qbe,l_=Cr(()=>{"use strict";Abe=.02,kbe=30,Lbe=3,Cbe=3,Sbe=25,qbe=10});var wO=G((mSe,_O)=>{"use strict";var Bm=Se(),Dbe=kr(),Pbe=yt(),Ebe=mi(),bO=Im(),o_=(l_(),Fe(i_));_O.exports=function(r,t,a,n,i){var l=r.rangeselector||{},o=Pbe.newContainer(t,"rangeselector");function s(h,p){return Bm.coerce(l,o,bO,h,p)}var u=Ebe(l,o,{name:"buttons",handleItemDefaults:Rbe,calendar:i}),f=s("visible",u.length>0);if(f){var c=zbe(t,a,n);s("x",c[0]),s("y",c[1]),Bm.noneOrAll(r,t,["x","y"]),s("xanchor"),s("yanchor"),Bm.coerceFont(s,"font",a.font);var v=s("bgcolor");s("activecolor",Dbe.contrast(v,o_.lightAmount,o_.darkAmount)),s("bordercolor"),s("borderwidth")}};function Rbe(e,r,t,a){var n=a.calendar;function i(s,u){return Bm.coerce(e,r,bO.buttons,s,u)}var l=i("visible");if(l){var o=i("step");o!=="all"&&(n&&n!=="gregorian"&&(o==="month"||o==="year")?r.stepmode="backward":i("stepmode"),i("count")),i("label")}}function zbe(e,r,t){for(var a=t.filter(function(o){return r[o].anchor===e._id}),n=0,i=0;i{"use strict";var Fbe=Sg(),Nbe=Se().titleCase;TO.exports=function(r,t){var a=r._name,n={};if(t.step==="all")n[a+".autorange"]=!0;else{var i=Ibe(r,t);n[a+".range[0]"]=i[0],n[a+".range[1]"]=i[1]}return n};function Ibe(e,r){var t=e.range,a=new Date(e.r2l(t[1])),n=r.step,i=Fbe["utc"+Nbe(n)],l=r.count,o;switch(r.stepmode){case"backward":o=e.l2r(+i.offset(a,-l));break;case"todate":var s=i.offset(a,-l);o=e.l2r(+i.ceil(s));break}var u=t[1];return[o,u]}});var PO=G((gSe,DO)=>{"use strict";var Om=Er(),Bbe=Ar(),Hbe=Jt(),AO=kr(),qO=$r(),io=Se(),kO=io.strTranslate,Hm=ba(),Obe=va(),f_=(Xa(),Fe(Va)),LO=f_.LINE_SPACING,CO=f_.FROM_TL,SO=f_.FROM_BR,u_=(l_(),Fe(i_)),Ybe=MO();DO.exports=function(r){var t=r._fullLayout,a=t._infolayer.selectAll(".rangeselector").data(Gbe(r),Ube);a.enter().append("g").classed("rangeselector",!0),a.exit().remove(),a.style({cursor:"pointer","pointer-events":"all"}),a.each(function(n){var i=Om.select(this),l=n,o=l.rangeselector,s=i.selectAll("g.button").data(io.filterVisible(o.buttons));s.enter().append("g").classed("button",!0),s.exit().remove(),s.each(function(u){var f=Om.select(this),c=Ybe(l,u);u._isActive=Vbe(l,u,c),f.call(s_,o,u),f.call(Wbe,o,u,r),f.on("click",function(){r._dragged||Bbe.call("_guiRelayout",r,c)}),f.on("mouseover",function(){u._isHovered=!0,f.call(s_,o,u)}),f.on("mouseout",function(){u._isHovered=!1,f.call(s_,o,u)})}),Jbe(r,s,o,l._name,i)})};function Gbe(e){for(var r=Obe.list(e,"x",!0),t=[],a=0;a{"use strict";EO.exports={moduleType:"component",name:"rangeselector",schema:{subplots:{xaxis:{rangeselector:Im()}}},layoutAttributes:Im(),handleDefaults:wO(),draw:PO()}});var ts=G(c_=>{"use strict";var zO=At().extendFlat;c_.attributes=function(e,r){e=e||{},r=r||{};var t={valType:"info_array",editType:e.editType,items:[{valType:"number",min:0,max:1,editType:e.editType},{valType:"number",min:0,max:1,editType:e.editType}],dflt:[0,1]},a=e.name?e.name+" ":"",n=e.trace?"trace":"subplot",i=r.description?" "+r.description:"",l={x:zO({},t,{}),y:zO({},t,{}),editType:e.editType};return e.noGridCell||(l.row={valType:"integer",min:0,dflt:0,editType:e.editType},l.column={valType:"integer",min:0,dflt:0,editType:e.editType}),l};c_.defaults=function(e,r,t,a){var n=a&&a.x||[0,1],i=a&&a.y||[0,1],l=r.grid;if(l){var o=t("domain.column");o!==void 0&&(o{"use strict";var $be=Se(),Kbe=(L0(),Fe(Jc)).counter,jbe=ts().attributes,FO=(La(),Fe(ka)).idRegex,Qbe=yt(),v_={rows:{valType:"integer",min:1,editType:"plot"},roworder:{valType:"enumerated",values:["top to bottom","bottom to top"],dflt:"top to bottom",editType:"plot"},columns:{valType:"integer",min:1,editType:"plot"},subplots:{valType:"info_array",freeLength:!0,dimensions:2,items:{valType:"enumerated",values:[Kbe("xy").toString(),""],editType:"plot"},editType:"plot"},xaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[FO.x.toString(),""],editType:"plot"},editType:"plot"},yaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[FO.y.toString(),""],editType:"plot"},editType:"plot"},pattern:{valType:"enumerated",values:["independent","coupled"],dflt:"coupled",editType:"plot"},xgap:{valType:"number",min:0,max:1,editType:"plot"},ygap:{valType:"number",min:0,max:1,editType:"plot"},domain:jbe({name:"grid",editType:"plot",noGridCell:!0},{}),xside:{valType:"enumerated",values:["bottom","bottom plot","top plot","top"],dflt:"bottom plot",editType:"plot"},yside:{valType:"enumerated",values:["left","left plot","right plot","right"],dflt:"left plot",editType:"plot"},editType:"plot"};function Ym(e,r,t){var a=r[t+"axes"],n=Object.keys((e._splomAxes||{})[t]||{});if(Array.isArray(a))return a;if(n.length)return n}function e4e(e,r){var t=e.grid||{},a=Ym(r,t,"x"),n=Ym(r,t,"y");if(!e.grid&&!a&&!n)return;var i=Array.isArray(t.subplots)&&Array.isArray(t.subplots[0]),l=Array.isArray(a),o=Array.isArray(n),s=l&&a!==t.xaxes&&o&&n!==t.yaxes,u,f;i?(u=t.subplots.length,f=t.subplots[0].length):(o&&(u=n.length),l&&(f=a.length));var c=Qbe.newContainer(r,"grid");function v(A,k){return $be.coerce(t,c,v_,A,k)}var h=v("rows",u),p=v("columns",f);if(!(h*p>1)){delete r.grid;return}if(!i&&!l&&!o){var m=v("pattern")==="independent";m&&(i=!0)}c._hasSubplotGrid=i;var y=v("roworder"),x=y==="top to bottom",_=i?.2:.1,w=i?.3:.1,b,M;s&&r._splomGridDflt&&(b=r._splomGridDflt.xside,M=r._splomGridDflt.yside),c._domains={x:NO("x",v,_,b,p),y:NO("y",v,w,M,h,x)}}function NO(e,r,t,a,n,i){var l=r(e+"gap",t),o=r("domain."+e);r(e+"side",a);for(var s=new Array(n),u=o[0],f=(o[1]-u)/(n-l),c=f*(1-l),v=0;v{"use strict";OO.exports={visible:{valType:"boolean",editType:"calc"},type:{valType:"enumerated",values:["percent","constant","sqrt","data"],editType:"calc"},symmetric:{valType:"boolean",editType:"calc"},array:{valType:"data_array",editType:"calc"},arrayminus:{valType:"data_array",editType:"calc"},value:{valType:"number",min:0,dflt:10,editType:"calc"},valueminus:{valType:"number",min:0,dflt:10,editType:"calc"},traceref:{valType:"integer",min:0,dflt:0,editType:"style"},tracerefminus:{valType:"integer",min:0,dflt:0,editType:"style"},copy_ystyle:{valType:"boolean",editType:"plot"},copy_zstyle:{valType:"boolean",editType:"style"},color:{valType:"color",editType:"style"},thickness:{valType:"number",min:0,dflt:2,editType:"style"},width:{valType:"number",min:0,editType:"plot"},editType:"calc"}});var UO=G((TSe,GO)=>{"use strict";var YO=Gr(),t4e=Ar(),a4e=Se(),n4e=yt(),i4e=d_();GO.exports=function(e,r,t,a){var n="error_"+a.axis,i=n4e.newContainer(r,n),l=e[n]||{};function o(p,m){return a4e.coerce(l,i,i4e,p,m)}var s=l.array!==void 0||l.value!==void 0||l.type==="sqrt",u=o("visible",s);if(u!==!1){var f=o("type","array"in l?"data":"percent"),c=!0;f!=="sqrt"&&(c=o("symmetric",!((f==="data"?"arrayminus":"valueminus")in l))),f==="data"?(o("array"),o("traceref"),c||(o("arrayminus"),o("tracerefminus"))):(f==="percent"||f==="constant")&&(o("value"),c||o("valueminus"));var v="copy_"+a.inherit+"style";if(a.inherit){var h=r["error_"+a.inherit];(h||{}).visible&&o(v,!(l.color||YO(l.thickness)||YO(l.width)))}(!a.inherit||!i[v])&&(o("color",t),o("thickness"),o("width",t4e.traceIs(r,"gl3d")?0:4))}}});var h_=G((MSe,XO)=>{"use strict";XO.exports=function(r){var t=r.type,a=r.symmetric;if(t==="data"){var n=r.array||[];if(a)return function(u,f){var c=+n[f];return[c,c]};var i=r.arrayminus||[];return function(u,f){var c=+n[f],v=+i[f];return!isNaN(c)||!isNaN(v)?[v||0,c||0]:[NaN,NaN]}}else{var l=VO(t,r.value),o=VO(t,r.valueminus);return a||r.valueminus===void 0?function(u){var f=l(u);return[f,f]}:function(u){return[o(u),l(u)]}}};function VO(e,r){if(e==="percent")return function(t){return Math.abs(t*r/100)};if(e==="constant")return function(){return Math.abs(r)};if(e==="sqrt")return function(t){return Math.sqrt(Math.abs(t))}}});var JO=G((ASe,ZO)=>{"use strict";var p_=Gr(),l4e=Ar(),m_=Qr(),o4e=Se(),s4e=h_();ZO.exports=function(r){for(var t=r.calcdata,a=0;a{"use strict";var $O=Er(),as=Gr(),u4e=$r(),f4e=Jn();KO.exports=function(r,t,a,n){var i,l=a.xaxis,o=a.yaxis,s=n&&n.duration>0,u=r._context.staticPlot;t.each(function(f){var c=f[0].trace,v=c.error_x||{},h=c.error_y||{},p;c.ids&&(p=function(_){return _.id});var m=f4e.hasMarkers(c)&&c.marker.maxdisplayed>0;!h.visible&&!v.visible&&(f=[]);var y=$O.select(this).selectAll("g.errorbar").data(f,p);if(y.exit().remove(),!!f.length){v.visible||y.selectAll("path.xerror").remove(),h.visible||y.selectAll("path.yerror").remove(),y.style("opacity",1);var x=y.enter().append("g").classed("errorbar",!0);s&&x.style("opacity",0).transition().duration(n.duration).style("opacity",1),u4e.setClipUrl(y,a.layerClipId,r),y.each(function(_){var w=$O.select(this),b=c4e(_,l,o);if(!(m&&!_.vis)){var M,A=w.select("path.yerror");if(h.visible&&as(b.x)&&as(b.yh)&&as(b.ys)){var k=h.width;M="M"+(b.x-k)+","+b.yh+"h"+2*k+"m-"+k+",0V"+b.ys,b.noYS||(M+="m-"+k+",0h"+2*k),i=!A.size(),i?A=w.append("path").style("vector-effect",u?"none":"non-scaling-stroke").classed("yerror",!0):s&&(A=A.transition().duration(n.duration).ease(n.easing)),A.attr("d",M)}else A.remove();var S=w.select("path.xerror");if(v.visible&&as(b.y)&&as(b.xh)&&as(b.xs)){var D=(v.copy_ystyle?h:v).width;M="M"+b.xh+","+(b.y-D)+"v"+2*D+"m0,-"+D+"H"+b.xs,b.noXS||(M+="m0,-"+D+"v"+2*D),i=!S.size(),i?S=w.append("path").style("vector-effect",u?"none":"non-scaling-stroke").classed("xerror",!0):s&&(S=S.transition().duration(n.duration).ease(n.easing)),S.attr("d",M)}else S.remove()}})}})};function c4e(e,r,t){var a={x:r.c2p(e.x),y:t.c2p(e.y)};return e.yh!==void 0&&(a.yh=t.c2p(e.yh),a.ys=t.c2p(e.ys),as(a.ys)||(a.noYS=!0,a.ys=t.c2p(e.ys,!0))),e.xh!==void 0&&(a.xh=r.c2p(e.xh),a.xs=r.c2p(e.xs),as(a.xs)||(a.noXS=!0,a.xs=r.c2p(e.xs,!0))),a}});var rY=G((LSe,eY)=>{"use strict";var v4e=Er(),QO=kr();eY.exports=function(r){r.each(function(t){var a=t[0].trace,n=a.error_y||{},i=a.error_x||{},l=v4e.select(this);l.selectAll("path.yerror").style("stroke-width",n.thickness+"px").call(QO.stroke,n.color),i.copy_ystyle&&(i=n),l.selectAll("path.xerror").style("stroke-width",i.thickness+"px").call(QO.stroke,i.color)})}});var nY=G((CSe,aY)=>{"use strict";var S2=Se(),tY=Oi().overrideAll,q2=d_(),qu={error_x:S2.extendFlat({},q2),error_y:S2.extendFlat({},q2)};delete qu.error_x.copy_zstyle;delete qu.error_y.copy_zstyle;delete qu.error_y.copy_ystyle;var D2={error_x:S2.extendFlat({},q2),error_y:S2.extendFlat({},q2),error_z:S2.extendFlat({},q2)};delete D2.error_x.copy_ystyle;delete D2.error_y.copy_ystyle;delete D2.error_z.copy_ystyle;delete D2.error_z.copy_zstyle;aY.exports={moduleType:"component",name:"errorbars",schema:{traces:{scatter:qu,bar:qu,histogram:qu,scatter3d:tY(D2,"calc","nested"),scattergl:tY(qu,"calc","nested")}},supplyDefaults:UO(),calc:JO(),makeComputeError:h_(),plot:jO(),style:rY(),hoverInfo:d4e};function d4e(e,r,t){(r.error_y||{}).visible&&(t.yerr=e.yh-e.y,r.error_y.symmetric||(t.yerrneg=e.y-e.ys)),(r.error_x||{}).visible&&(t.xerr=e.xh-e.x,r.error_x.symmetric||(t.xerrneg=e.x-e.xs))}});var iY={};pt(iY,{cn:()=>h4e});var h4e,lY=Cr(()=>{"use strict";h4e={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"}});var hY=G((SSe,dY)=>{"use strict";var ns=Er(),Um=Jt(),oY=Ar(),lo=Qr(),Gm=Ji(),Di=Se(),ol=Di.strTranslate,vY=At().extendFlat,y_=Yo(),ll=$r(),Ef=kr(),p4e=hv(),m4e=ba(),y4e=Wn().flipScale,g4e=cm(),x4e=dm(),b4e=Zn(),x_=(Xa(),Fe(Va)),sY=x_.LINE_SPACING,uY=x_.FROM_TL,fY=x_.FROM_BR,Ft=(lY(),Fe(iY)).cn;function _4e(e){var r=e._fullLayout,t=r._infolayer.selectAll("g."+Ft.colorbar).data(w4e(e),function(a){return a._id});t.enter().append("g").attr("class",function(a){return a._id}).classed(Ft.colorbar,!0),t.each(function(a){var n=ns.select(this);Di.ensureSingle(n,"rect",Ft.cbbg),Di.ensureSingle(n,"g",Ft.cbfills),Di.ensureSingle(n,"g",Ft.cblines),Di.ensureSingle(n,"g",Ft.cbaxis,function(l){l.classed(Ft.crisp,!0)}),Di.ensureSingle(n,"g",Ft.cbtitleunshift,function(l){l.append("g").classed(Ft.cbtitle,!0)}),Di.ensureSingle(n,"rect",Ft.cboutline);var i=T4e(n,a,e);i&&i.then&&(e._promises||[]).push(i),e._context.edits.colorbarPosition&&M4e(n,a,e)}),t.exit().each(function(a){Um.autoMargin(e,a._id)}).remove(),t.order()}function w4e(e){var r=e._fullLayout,t=e.calcdata,a=[],n,i,l,o;function s(w){return vY(w,{_fillcolor:null,_line:{color:null,width:null,dash:null},_levels:{start:null,end:null,size:null},_filllevels:null,_fillgradient:null,_zrange:null})}function u(){typeof o.calc=="function"?o.calc(e,l,n):(n._fillgradient=i.reversescale?y4e(i.colorscale):i.colorscale,n._zrange=[i[o.min],i[o.max]])}for(var f=0;f[Math.min(e[0]+r,e[1]),e[1]],cY=(e,r)=>[e[0],Math.max(e[1]-r,e[0])];function T4e(e,r,t){var a=r.orientation==="v",n=r.len,i=r.lenmode,l=r.thickness,o=r.thicknessmode,s=r.outlinewidth,u=r.borderwidth,f=r.bgcolor,c=r.xanchor,v=r.yanchor,h=r.xpad,p=r.ypad,m=r.x,y=a?r.y:1-r.y,x=r.yref==="paper",_=r.xref==="paper",w=t._fullLayout,b=w._size,M=r._fillcolor,A=r._line,k=r.title,S=k.side,D=r._zrange||ns.extent((typeof M=="function"?M:A.color).domain()),P=typeof A.color=="function"?A.color:function(){return A.color},R=typeof M=="function"?M:function(){return M},F=r._levels,B=A4e(t,r,D),H=B.fill,N=B.line,Y=Math.round(l*(o==="fraction"?a?b.w:b.h:1)),O=Y/(a?b.w:b.h),V=Math.round(n*(i==="fraction"?a?b.h:b.w:1)),X=V/(a?b.h:b.w),W=_?b.w:t._fullLayout.width,U=x?b.h:t._fullLayout.height,$=Math.round(a?m*W+h:y*U+p),re={center:.5,right:1}[c]||0,se={top:1,middle:.5}[v]||0,oe=a?m-re*O:y-se*O,K=a?y-se*X:m-re*X,me=Math.round(a?U*(1-K):W*K);r._lenFrac=X,r._thickFrac=O,r._uFrac=oe,r._vFrac=K;var ie=r._axis=k4e(t,r,D);ie.position=O+(a?m+h/b.w:y+p/b.h);var Me=["top","bottom"].indexOf(S)!==-1;if(a&&Me&&(ie.title.side=S,ie.titlex=m+h/b.w,ie.titley=K+(k.side==="top"?X-p/b.h:p/b.h)),!a&&!Me&&(ie.title.side=S,ie.titley=y+p/b.h,ie.titlex=K+h/b.w),A.color&&r.tickmode==="auto"){ie.tickmode="linear",ie.tick0=F.start;var ue=F.size,ce=Di.constrain(V/50,4,15)+1,Te=(D[1]-D[0])/((r.nticks||ce)*ue);if(Te>1){var Ne=Math.pow(10,Math.floor(Math.log(Te)/Math.LN10));ue*=Ne*Di.roundUp(Te/Ne,[2,5,10]),(Math.abs(F.start)/F.size+1e-6)%1<2e-6&&(ie.tick0=0)}ie.dtick=ue}var ge=a?p/b.h:h/b.w;ie.domain=cY(g_([K,K+X],ge),ge),ie.setScale(),e.attr("transform",ol(Math.round(b.l),Math.round(b.t)));var qe=e.select("."+Ft.cbtitleunshift).attr("transform",ol(-Math.round(b.l),-Math.round(b.t))),ke=ie.ticklabelposition,Le=ie.title.font.size,Ce=e.select("."+Ft.cbaxis),ze,Ae=0,Ue=0;function $e(te,xe){var Ve={propContainer:ie,propName:r._propPrefix+"title.text",traceIndex:r._traceIndex,_meta:r._meta,placeholder:w._dfltTitle.colorbar,containerGroup:e.select("."+Ft.cbtitle)},cr=te.charAt(0)==="h"?te.slice(1):"h"+te;e.selectAll("."+cr+",."+cr+"-math-group").remove(),p4e.draw(t,te,vY(Ve,xe||{}))}function Qe(){if(a&&Me||!a&&!Me){var te,xe;S==="top"&&(te=h+b.l+W*m,xe=p+b.t+U*(1-K-X)+3+Le*.75),S==="bottom"&&(te=h+b.l+W*m,xe=p+b.t+U*(1-K)-3-Le*.25),S==="right"&&(xe=p+b.t+U*y+3+Le*.75,te=h+b.l+W*K),$e(ie._id+"title",{attributes:{x:te,y:xe,"text-anchor":a?"start":"middle"}})}}function De(){if(a&&!Me||!a&&Me){var te=ie.position||0,xe=ie._offset+ie._length/2,Ve,cr;if(S==="right")cr=xe,Ve=b.l+W*te+10+Le*(ie.showticklabels?1:.5);else if(Ve=xe,S==="bottom"&&(cr=b.t+U*te+10+(ke.indexOf("inside")===-1?ie.tickfont.size:0)+(ie.ticks!=="inside"&&r.ticklen||0)),S==="top"){var mr=k.text.split("
").length;cr=b.t+U*te+10-Y-sY*Le*mr}$e((a?"h":"v")+ie._id+"title",{avoid:{selection:ns.select(t).selectAll("g."+ie._id+"tick"),side:S,offsetTop:a?0:b.t,offsetLeft:a?b.l:0,maxShift:a?w.width:w.height},attributes:{x:Ve,y:cr,"text-anchor":"middle"},transform:{rotate:a?-90:0,offset:0}})}}function He(){if(!a&&!Me||a&&Me){var te=e.select("."+Ft.cbtitle),xe=te.select("text"),Ve=[-s/2,s/2],cr=te.select(".h"+ie._id+"title-math-group").node(),mr=15.6;xe.node()&&(mr=parseInt(xe.node().style.fontSize,10)*sY);var le;if(cr?(le=ll.bBox(cr),Ue=le.width,Ae=le.height,Ae>mr&&(Ve[1]-=(Ae-mr)/2)):xe.node()&&!xe.classed(Ft.jsPlaceholder)&&(le=ll.bBox(xe.node()),Ue=le.width,Ae=le.height),a){if(Ae){if(Ae+=5,S==="top")ie.domain=cY(ie.domain,Ae/b.h),Ve[1]*=-1;else{ie.domain=g_(ie.domain,Ae/b.h);var ye=m4e.lineCount(xe);Ve[1]+=(1-ye)*mr}te.attr("transform",ol(Ve[0],Ve[1])),ie.setScale()}}else Ue&&(S==="right"&&(ie.domain=g_(ie.domain,(Ue+Le/2)/b.w)),te.attr("transform",ol(Ve[0],Ve[1])),ie.setScale())}e.selectAll("."+Ft.cbfills+",."+Ft.cblines).attr("transform",a?ol(0,Math.round(b.h*(1-ie.domain[1]))):ol(Math.round(b.w*ie.domain[0]),0)),Ce.attr("transform",a?ol(0,Math.round(-b.t)):ol(Math.round(-b.l),0));var Ie=e.select("."+Ft.cbfills).selectAll("rect."+Ft.cbfill).attr("style","").data(H);Ie.enter().append("rect").classed(Ft.cbfill,!0).attr("style",""),Ie.exit().remove();var Xe=D.map(ie.c2p).map(Math.round).sort(function(br,Pe){return br-Pe});Ie.each(function(br,Pe){var Je=[Pe===0?D[0]:(H[Pe]+H[Pe-1])/2,Pe===H.length-1?D[1]:(H[Pe]+H[Pe+1])/2].map(ie.c2p).map(Math.round);a&&(Je[1]=Di.constrain(Je[1]+(Je[1]>Je[0])?1:-1,Xe[0],Xe[1]));var Ee=ns.select(this).attr(a?"x":"y",$).attr(a?"y":"x",ns.min(Je)).attr(a?"width":"height",Math.max(Y,2)).attr(a?"height":"width",Math.max(ns.max(Je)-ns.min(Je),2));if(r._fillgradient)ll.gradient(Ee,t,r._id,a?"vertical":"horizontalreversed",r._fillgradient,"fill");else{var je=R(br).replace("e-","");Ee.attr("fill",Ef.hexString(je))}});var Be=e.select("."+Ft.cblines).selectAll("path."+Ft.cbline).data(A.color&&A.width?N:[]);Be.enter().append("path").classed(Ft.cbline,!0),Be.exit().remove(),Be.each(function(br){var Pe=$,Je=Math.round(ie.c2p(br))+A.width/2%1;ns.select(this).attr("d","M"+(a?Pe+","+Je:Je+","+Pe)+(a?"h":"v")+Y).call(ll.lineGroupStyle,A.width,P(br),A.dash)}),Ce.selectAll("g."+ie._id+"tick,path").remove();var Ze=$+Y+(s||0)/2-(r.ticks==="outside"?1:0),Ke=lo.calcTicks(ie),_r=lo.getTickSigns(ie)[2];return lo.drawTicks(t,ie,{vals:ie.ticks==="inside"?lo.clipEnds(ie,Ke):Ke,layer:Ce,path:lo.makeTickPath(ie,Ze,_r),transFn:lo.makeTransTickFn(ie)}),lo.drawLabels(t,ie,{vals:Ke,layer:Ce,transFn:lo.makeTransTickLabelFn(ie),labelFns:lo.makeLabelFns(ie,Ze)})}function tr(){var te,xe=Y+s/2;ke.indexOf("inside")===-1&&(te=ll.bBox(Ce.node()),xe+=a?te.width:te.height),ze=qe.select("text");var Ve=0,cr=a&&S==="top",mr=!a&&S==="right",le=0;if(ze.node()&&!ze.classed(Ft.jsPlaceholder)){var ye,Ie=qe.select(".h"+ie._id+"title-math-group").node();Ie&&(a&&Me||!a&&!Me)?(te=ll.bBox(Ie),Ve=te.width,ye=te.height):(te=ll.bBox(qe.node()),Ve=te.right-b.l-(a?$:me),ye=te.bottom-b.t-(a?me:$),!a&&S==="top"&&(xe+=te.height,le=te.height)),mr&&(ze.attr("transform",ol(Ve/2+Le/2,0)),Ve*=2),xe=Math.max(xe,a?Ve:ye)}var Xe=(a?h:p)*2+xe+u+s/2,Be=0;!a&&k.text&&v==="bottom"&&y<=0&&(Be=Xe/2,Xe+=Be,le+=Be),w._hColorbarMoveTitle=Be,w._hColorbarMoveCBTitle=le;var Ze=u+s,Ke=(a?$:me)-Ze/2-(a?h:0),_r=(a?me:$)-(a?V:p+le-Be);e.select("."+Ft.cbbg).attr("x",Ke).attr("y",_r).attr(a?"width":"height",Math.max(Xe-Be,2)).attr(a?"height":"width",Math.max(V+Ze,2)).call(Ef.fill,f).call(Ef.stroke,r.bordercolor).style("stroke-width",u);var br=mr?Math.max(Ve-10,0):0;e.selectAll("."+Ft.cboutline).attr("x",(a?$:me+h)+br).attr("y",(a?me+p-V:$)+(cr?Ae:0)).attr(a?"width":"height",Math.max(Y,2)).attr(a?"height":"width",Math.max(V-(a?2*p+Ae:2*h+br),2)).call(Ef.stroke,r.outlinecolor).style({fill:"none","stroke-width":s});var Pe=a?re*Xe:0,Je=a?0:(1-se)*Xe-le;if(Pe=_?b.l-Pe:-Pe,Je=x?b.t-Je:-Je,e.attr("transform",ol(Pe,Je)),!a&&(u||Ef.opacity(f)&&!Ef.equals(w.paper_bgcolor,f))){var Ee=Ce.selectAll("text"),je=Ee[0].length,dr=e.select("."+Ft.cbbg).node(),hr=ll.bBox(dr),pr=ll.getTranslate(e),ae=2;Ee.each(function(Qa,wt){var Zt=0,ra=je-1;if(wt===Zt||wt===ra){var ha=ll.bBox(this),en=ll.getTranslate(this),fa;if(wt===ra){var pa=ha.right+en.x,ir=hr.right+pr.x+me-u-ae+m;fa=ir-pa,fa>0&&(fa=0)}else if(wt===Zt){var it=ha.left+en.x,Jr=hr.left+pr.x+me+u+ae;fa=Jr-it,fa<0&&(fa=0)}fa&&(je<3?this.setAttribute("transform","translate("+fa+",0) "+this.getAttribute("transform")):this.setAttribute("visibility","hidden"))}})}var pe={},Re=uY[c],Oe=fY[c],Zr=uY[v],vt=fY[v],Dt=Xe-Y;a?(i==="pixels"?(pe.y=y,pe.t=V*Zr,pe.b=V*vt):(pe.t=pe.b=0,pe.yt=y+n*Zr,pe.yb=y-n*vt),o==="pixels"?(pe.x=m,pe.l=Xe*Re,pe.r=Xe*Oe):(pe.l=Dt*Re,pe.r=Dt*Oe,pe.xl=m-l*Re,pe.xr=m+l*Oe)):(i==="pixels"?(pe.x=m,pe.l=V*Re,pe.r=V*Oe):(pe.l=pe.r=0,pe.xl=m+n*Re,pe.xr=m-n*Oe),o==="pixels"?(pe.y=1-y,pe.t=Xe*Zr,pe.b=Xe*vt):(pe.t=Dt*Zr,pe.b=Dt*vt,pe.yt=y-l*Zr,pe.yb=y+l*vt));var Ot=r.y<.5?"b":"t",ea=r.x<.5?"l":"r";t._fullLayout._reservedMargin[r._id]={};var Wt={r:w.width-Ke-Pe,l:Ke+pe.r,b:w.height-_r-Je,t:_r+pe.b};_&&x?Um.autoMargin(t,r._id,pe):_?t._fullLayout._reservedMargin[r._id][Ot]=Wt[Ot]:x||a?t._fullLayout._reservedMargin[r._id][ea]=Wt[ea]:t._fullLayout._reservedMargin[r._id][Ot]=Wt[Ot]}return Di.syncOrAsync([Um.previousPromises,Qe,He,De,Um.previousPromises,tr],t)}function M4e(e,r,t){var a=r.orientation==="v",n=t._fullLayout,i=n._size,l,o,s;Gm.init({element:e.node(),gd:t,prepFn:function(){l=e.attr("transform"),y_(e)},moveFn:function(u,f){e.attr("transform",l+ol(u,f)),o=Gm.align((a?r._uFrac:r._vFrac)+u/i.w,a?r._thickFrac:r._lenFrac,0,1,r.xanchor),s=Gm.align((a?r._vFrac:1-r._uFrac)-f/i.h,a?r._lenFrac:r._thickFrac,0,1,r.yanchor);var c=Gm.getCursor(o,s,r.xanchor,r.yanchor);y_(e,c)},doneFn:function(){if(y_(e),o!==void 0&&s!==void 0){var u={};u[r._propPrefix+"x"]=o,u[r._propPrefix+"y"]=s,r._traceIndex!==void 0?oY.call("_guiRestyle",t,u,r._traceIndex):oY.call("_guiRelayout",t,u)}}})}function A4e(e,r,t){var a=r._levels,n=[],i=[],l,o,s=a.end+a.size/100,u=a.size,f=1.001*t[0]-.001*t[1],c=1.001*t[1]-.001*t[0];for(o=0;o<1e5&&(l=a.start+o*u,!(u>0?l>=s:l<=s));o++)l>f&&l0?l>=s:l<=s));o++)l>t[0]&&l{"use strict";pY.exports={moduleType:"component",name:"colorbar",attributes:Zh(),supplyDefaults:Tx(),draw:hY().draw,hasColorbar:mx()}});var gY=G((DSe,yY)=>{"use strict";yY.exports={moduleType:"component",name:"legend",layoutAttributes:bb(),supplyLayoutDefaults:wb(),draw:Fb(),style:Pb()}});var bY=G((PSe,xY)=>{"use strict";xY.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"}}});var wY=G((ESe,_Y)=>{"use strict";_Y.exports={moduleType:"locale",name:"en-US",dictionary:{"Click to enter Colorscale title":"Click to enter Colorscale title"},format:{date:"%m/%d/%Y"}}});var __=G((RSe,kY)=>{"use strict";var L4e=Ar(),AY=Se(),b_=AY.extendFlat,TY=AY.extendDeep;function MY(e){var r;switch(e){case"themes__thumb":r={autosize:!0,width:150,height:150,title:{text:""},showlegend:!1,margin:{l:5,r:5,t:5,b:5,pad:0},annotations:[]};break;case"thumbnail":r={title:{text:""},showlegend:!1,borderwidth:0,bordercolor:"",margin:{l:1,r:1,t:1,b:1,pad:0},annotations:[]};break;default:r={}}return r}function C4e(e){var r=["xaxis","yaxis","zaxis"];return r.indexOf(e.slice(0,5))>-1}kY.exports=function(r,t){var a,n=r.data,i=r.layout,l=TY([],n),o=TY({},i,MY(t.tileClass)),s=r._context||{};if(t.width&&(o.width=t.width),t.height&&(o.height=t.height),t.tileClass==="thumbnail"||t.tileClass==="themes__thumb"){o.annotations=[];var u=Object.keys(o);for(a=0;a{"use strict";var S4e=Fh().EventEmitter,q4e=Ar(),D4e=Se(),LY=yu(),P4e=__(),E4e=Wp(),R4e=Zp();function z4e(e,r){var t=new S4e,a=P4e(e,{format:"png"}),n=a.gd;n.style.position="absolute",n.style.left="-5000px",document.body.appendChild(n);function i(){var o=LY.getDelay(n._fullLayout);setTimeout(function(){var s=E4e(n),u=document.createElement("canvas");u.id=D4e.randstr(),t=R4e({format:r.format,width:n._fullLayout.width,height:n._fullLayout.height,canvas:u,emitter:t,svg:s}),t.clean=function(){n&&document.body.removeChild(n)}},o)}var l=LY.getRedrawFunc(n);return q4e.call("_doPlot",n,a.data,a.layout,a.config).then(l).then(i).catch(function(o){t.emit("error",o)}),t}CY.exports=z4e});var PY=G((FSe,DY)=>{"use strict";var qY=yu(),F4e={getDelay:qY.getDelay,getRedrawFunc:qY.getRedrawFunc,clone:__(),toSVG:Wp(),svgToImg:Zp(),toImage:SY(),downloadImage:a6()};DY.exports=F4e});var RY=G(oo=>{"use strict";oo.version=Mc().version;O9();kL();var N4e=Ar(),P2=oo.register=N4e.register,T_=BF(),EY=Object.keys(T_);for(Vm=0;Vm{"use strict";zY.exports=RY()});var so=G((BSe,OY)=>{"use strict";var Vt=Ki(),NY=Xi().axisHoverFormat,{hovertemplateAttrs:I4e,texttemplateAttrs:B4e,templatefallbackAttrs:IY}=Vn(),HY=uv(),H4e=Ta(),BY=(p2(),Fe(h2)),O4e=Yi().pattern,Du=At().extendFlat,M_=H4e({editType:"calc",arrayOk:!0,colorEditType:"style"}),Y4e=Vt.marker,G4e=Y4e.line,U4e=Du({},G4e.width,{dflt:0}),V4e=Du({width:U4e,editType:"calc"},HY("marker.line")),X4e=Du({line:V4e,editType:"calc"},HY("marker"),{opacity:{valType:"number",arrayOk:!0,dflt:1,min:0,max:1,editType:"style"},pattern:O4e,cornerradius:{valType:"any",editType:"calc"}});OY.exports={x:Vt.x,x0:Vt.x0,dx:Vt.dx,y:Vt.y,y0:Vt.y0,dy:Vt.dy,xperiod:Vt.xperiod,yperiod:Vt.yperiod,xperiod0:Vt.xperiod0,yperiod0:Vt.yperiod0,xperiodalignment:Vt.xperiodalignment,yperiodalignment:Vt.yperiodalignment,xhoverformat:NY("x"),yhoverformat:NY("y"),text:Vt.text,texttemplate:B4e({editType:"plot"},{keys:BY.eventDataKeys}),texttemplatefallback:IY({editType:"plot"}),hovertext:Vt.hovertext,hovertemplate:I4e({},{keys:BY.eventDataKeys}),hovertemplatefallback:IY(),textposition:{valType:"enumerated",values:["inside","outside","auto","none"],dflt:"auto",arrayOk:!0,editType:"calc"},insidetextanchor:{valType:"enumerated",values:["end","middle","start"],dflt:"end",editType:"plot"},textangle:{valType:"angle",dflt:"auto",editType:"plot"},textfont:Du({},M_,{}),insidetextfont:Du({},M_,{}),outsidetextfont:Du({},M_,{}),constraintext:{valType:"enumerated",values:["inside","outside","both","none"],dflt:"both",editType:"calc"},cliponaxis:Du({},Vt.cliponaxis,{}),orientation:{valType:"enumerated",values:["v","h"],editType:"calc+clearAxisTypes"},base:{valType:"any",dflt:null,arrayOk:!0,editType:"calc"},offset:{valType:"number",dflt:null,arrayOk:!0,editType:"calc"},width:{valType:"number",dflt:null,min:0,arrayOk:!0,editType:"calc"},marker:X4e,offsetgroup:Vt.offsetgroup,alignmentgroup:Vt.alignmentgroup,selected:{marker:{opacity:Vt.selected.marker.opacity,color:Vt.selected.marker.color,editType:"style"},textfont:Vt.selected.textfont,editType:"style"},unselected:{marker:{opacity:Vt.unselected.marker.opacity,color:Vt.unselected.marker.color,editType:"style"},textfont:Vt.unselected.textfont,editType:"style"},zorder:Vt.zorder}});var Wm=G((HSe,YY)=>{"use strict";YY.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"}}});var A_=G((OSe,VY)=>{"use strict";var W4e=kr(),GY=Wn().hasColorscale,UY=U0(),Z4e=Se().coercePattern;VY.exports=function(r,t,a,n,i){var l=a("marker.color",n),o=GY(r,"marker");o&&UY(r,t,i,a,{prefix:"marker.",cLetter:"c"}),a("marker.line.color",W4e.defaultLine),GY(r,"marker.line")&&UY(r,t,i,a,{prefix:"marker.line.",cLetter:"c"}),a("marker.line.width"),a("marker.opacity"),Z4e(a,"marker.pattern",l,o),a("selected.marker.color"),a("unselected.marker.color")}});var Rl=G((YSe,KY)=>{"use strict";var XY=Gr(),zf=Se(),WY=kr(),J4e=Ar(),$4e=c2(),K4e=_u(),j4e=A_(),Q4e=yf(),ZY=so(),Zm=zf.coerceFont;function e6e(e,r,t,a){function n(u,f){return zf.coerce(e,r,ZY,u,f)}var i=$4e(e,r,a,n);if(!i){r.visible=!1;return}K4e(e,r,a,n),n("xhoverformat"),n("yhoverformat"),n("zorder"),n("orientation",r.x&&!r.y?"h":"v"),n("base"),n("offset"),n("width"),n("text"),n("hovertext"),n("hovertemplate"),n("hovertemplatefallback");var l=n("textposition");$Y(e,r,a,n,l,{moduleHasSelected:!0,moduleHasUnselected:!0,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),j4e(e,r,n,t,a);var o=(r.marker.line||{}).color,s=J4e.getComponentMethod("errorbars","supplyDefaults");s(e,r,o||WY.defaultLine,{axis:"y"}),s(e,r,o||WY.defaultLine,{axis:"x",inherit:"y"}),zf.coerceSelectionMarkerOpacity(r,n)}function r6e(e,r){var t,a;function n(o,s){return zf.coerce(a._input,a,ZY,o,s)}for(var i=0;i=0)return e}else if(typeof e=="string"&&(e=e.trim(),e.slice(-1)==="%"&&XY(e.slice(0,-1))&&(e=+e.slice(0,-1),e>=0)))return e+"%"}function $Y(e,r,t,a,n,i){i=i||{};var l=i.moduleHasSelected!==!1,o=i.moduleHasUnselected!==!1,s=i.moduleHasConstrain!==!1,u=i.moduleHasCliponaxis!==!1,f=i.moduleHasTextangle!==!1,c=i.moduleHasInsideanchor!==!1,v=!!i.hasPathbar,h=Array.isArray(n)||n==="auto",p=h||n==="inside",m=h||n==="outside";if(p||m){var y=Zm(a,"textfont",t.font),x=zf.extendFlat({},y),_=e.textfont&&e.textfont.color,w=!_;if(w&&delete x.color,Zm(a,"insidetextfont",x),v){var b=zf.extendFlat({},y);w&&delete b.color,Zm(a,"pathbar.textfont",b)}m&&Zm(a,"outsidetextfont",y),l&&a("selected.textfont.color"),o&&a("unselected.textfont.color"),s&&a("constraintext"),u&&a("cliponaxis"),f&&a("textangle"),a("texttemplate"),a("texttemplatefallback")}p&&c&&a("insidetextanchor")}KY.exports={supplyDefaults:e6e,crossTraceDefaults:r6e,handleText:$Y,validateCornerradius:JY}});var k_=G((GSe,jY)=>{"use strict";var t6e=Ar(),a6e=Qr(),n6e=Se(),i6e=Wm(),l6e=Rl().validateCornerradius;jY.exports=function(e,r,t){function a(m,y){return n6e.coerce(e,r,i6e,m,y)}for(var n=!1,i=!1,l=!1,o={},s=a("barmode"),u=s==="group",f=0;f0&&!o[v]&&(l=!0),o[v]=!0),c.visible&&c.type==="histogram"){var h=a6e.getFromId({_fullLayout:r},c[c.orientation==="v"?"xaxis":"yaxis"]);h.type!=="category"&&(i=!0)}}if(!n){delete r.barmode;return}s!=="overlay"&&a("barnorm"),a("bargap",i&&!l?0:.2),a("bargroupgap");var p=a("barcornerradius");r.barcornerradius=l6e(p)}});var Jm=G((USe,QY)=>{"use strict";var Ff=Se();QY.exports=function(r,t){for(var a=0;a{"use strict";var eG=Qr(),rG=wu(),tG=Wn().hasColorscale,aG=fv(),o6e=Jm(),s6e=v2();nG.exports=function(r,t){var a=eG.getFromId(r,t.xaxis||"x"),n=eG.getFromId(r,t.yaxis||"y"),i,l,o,s,u,f,c={msUTC:!!(t.base||t.base===0)};t.orientation==="h"?(i=a.makeCalcdata(t,"x",c),o=n.makeCalcdata(t,"y"),s=rG(t,n,"y",o),u=!!t.yperiodalignment,f="y"):(i=n.makeCalcdata(t,"y",c),o=a.makeCalcdata(t,"x"),s=rG(t,a,"x",o),u=!!t.xperiodalignment,f="x"),l=s.vals;for(var v=Math.min(l.length,i.length),h=new Array(v),p=0;p{"use strict";var u6e=Er(),f6e=Se();function c6e(e,r,t){var a=e._fullLayout,n=a["_"+t+"Text_minsize"];if(n){var i=a.uniformtext.mode==="hide",l;switch(t){case"funnelarea":case"pie":case"sunburst":l="g.slice";break;case"treemap":case"icicle":l="g.slice, g.pathbar";break;default:l="g.points > g.point"}r.selectAll(l).each(function(o){var s=o.transform;if(s){s.scale=i&&s.hide?0:n/s.fontSize;var u=u6e.select(this).select("text");f6e.setTransormAndDisplay(u,s)}})}}function v6e(e,r,t){if(t.uniformtext.mode){var a=lG(e),n=t.uniformtext.minsize,i=r.scale*r.fontSize;r.hide=i{"use strict";var h6e=kr(),p6e=Gr(),sG=Se().isArrayOrTypedArray;Pu.coerceString=function(e,r,t){if(typeof r=="string"){if(r||!e.noBlank)return r}else if((typeof r=="number"||r===!0)&&!e.strict)return String(r);return t!==void 0?t:e.dflt};Pu.coerceNumber=function(e,r,t){if(p6e(r)){r=+r;var a=e.min,n=e.max,i=a!==void 0&&rn;if(!i)return r}return t!==void 0?t:e.dflt};Pu.coerceColor=function(e,r,t){return h6e.isValid(r)?r:t!==void 0?t:e.dflt};Pu.coerceEnumerated=function(e,r,t){return e.coerceNumber&&(r=+r),e.values.indexOf(r)!==-1?r:t!==void 0?t:e.dflt};Pu.getValue=function(e,r){var t;return sG(e)?r{"use strict";var E2=Er(),m6e=kr(),R2=$r(),uG=Se(),fG=Ar(),cG=sl().resizeText,L_=so(),y6e=L_.textfont,g6e=L_.insidetextfont,x6e=L_.outsidetextfont,Ja=$m();function b6e(e){var r=E2.select(e).selectAll('g[class^="barlayer"]').selectAll("g.trace");cG(e,r,"bar");var t=r.size(),a=e._fullLayout;r.style("opacity",function(n){return n[0].trace.opacity}).each(function(n){(a.barmode==="stack"&&t>1||a.bargap===0&&a.bargroupgap===0&&!n[0].trace.marker.line.width)&&E2.select(this).attr("shape-rendering","crispEdges")}),r.selectAll("g.points").each(function(n){var i=E2.select(this),l=n[0].trace;vG(i,l,e)}),fG.getComponentMethod("errorbars","style")(r)}function vG(e,r,t){R2.pointStyle(e.selectAll("path"),r,t),dG(e,r,t)}function dG(e,r,t){e.selectAll("text").each(function(a){var n=E2.select(this),i=uG.ensureUniformFontSize(t,hG(n,a,r,t));R2.font(n,i)})}function _6e(e,r,t){var a=r[0].trace;a.selectedpoints?w6e(t,a,e):(vG(t,a,e),fG.getComponentMethod("errorbars","style")(t))}function w6e(e,r,t){R2.selectedPointStyle(e.selectAll("path"),r),T6e(e.selectAll("text"),r,t)}function T6e(e,r,t){e.each(function(a){var n=E2.select(this),i;if(a.selected){i=uG.ensureUniformFontSize(t,hG(n,a,r,t));var l=r.selected.textfont&&r.selected.textfont.color;l&&(i.color=l),R2.font(n,i)}else R2.selectedTextStyle(n,r)})}function hG(e,r,t,a){var n=a._fullLayout.font,i=t.textfont;if(e.classed("bartext-inside")){var l=gG(r,t);i=mG(t,r.i,n,l)}else e.classed("bartext-outside")&&(i=yG(t,r.i,n));return i}function pG(e,r,t){return C_(y6e,e.textfont,r,t)}function mG(e,r,t,a){var n=pG(e,r,t),i=e._input.textfont===void 0||e._input.textfont.color===void 0||Array.isArray(e.textfont.color)&&e.textfont.color[r]===void 0;return i&&(n={color:m6e.contrast(a),family:n.family,size:n.size,weight:n.weight,style:n.style,variant:n.variant,textcase:n.textcase,lineposition:n.lineposition,shadow:n.shadow}),C_(g6e,e.insidetextfont,r,n)}function yG(e,r,t){var a=pG(e,r,t);return C_(x6e,e.outsidetextfont,r,a)}function C_(e,r,t,a){r=r||{};var n=Ja.getValue(r.family,t),i=Ja.getValue(r.size,t),l=Ja.getValue(r.color,t),o=Ja.getValue(r.weight,t),s=Ja.getValue(r.style,t),u=Ja.getValue(r.variant,t),f=Ja.getValue(r.textcase,t),c=Ja.getValue(r.lineposition,t),v=Ja.getValue(r.shadow,t);return{family:Ja.coerceString(e.family,n,a.family),size:Ja.coerceNumber(e.size,i,a.size),color:Ja.coerceColor(e.color,l,a.color),weight:Ja.coerceString(e.weight,o,a.weight),style:Ja.coerceString(e.style,s,a.style),variant:Ja.coerceString(e.variant,u,a.variant),textcase:Ja.coerceString(e.variant,f,a.textcase),lineposition:Ja.coerceString(e.variant,c,a.lineposition),shadow:Ja.coerceString(e.variant,v,a.shadow)}}function gG(e,r){return r.type==="waterfall"?r[e.dir].marker.color:e.mcc||e.mc||r.marker.color}xG.exports={style:b6e,styleTextPoints:dG,styleOnSelect:_6e,getInsideTextFont:mG,getOutsideTextFont:yG,getBarColor:gG,resizeText:cG}});var If=G((JSe,LG)=>{"use strict";var Km=Er(),jm=Gr(),Ia=Se(),M6e=ba(),A6e=kr(),ls=$r(),k6e=Ar(),Qm=Qr().tickText,bG=sl(),L6e=bG.recordMinTextSize,C6e=bG.clearMinTextSize,S_=is(),Nf=$m(),S6e=(p2(),Fe(h2)),_G=so(),q6e=_G.text,D6e=_G.textposition,P6e=Wi().appendArrayPointValue,_n=S6e.TEXTPAD;function E6e(e){return e.id}function R6e(e){if(e.ids)return E6e}function q_(e){return(e>0)-(e<0)}function ul(e,r){return e0}function F6e(e,r,t,a,n,i){var l=r.xaxis,o=r.yaxis,s=e._fullLayout,u=e._context.staticPlot;n||(n={mode:s.barmode,norm:s.barmode,gap:s.bargap,groupgap:s.bargroupgap},C6e("bar",s));var f=Ia.makeTraceGroups(a,t,"trace bars").each(function(c){var v=Km.select(this),h=c[0].trace,p=c[0].t,m=h.type==="waterfall",y=h.type==="funnel",x=h.type==="histogram",_=h.type==="bar",w=_||y,b=0;m&&h.connector.visible&&h.connector.mode==="between"&&(b=h.connector.line.width/2);var M=h.orientation==="h",A=TG(n),k=Ia.ensureSingle(v,"g","points"),S=R6e(h),D=k.selectAll("g.point").data(Ia.identity,S);D.enter().append("g").classed("point",!0),D.exit().remove(),D.each(function(R,F){var B=Km.select(this),H=z6e(R,l,o,M),N=H[0][0],Y=H[0][1],O=H[1][0],V=H[1][1],X=(M?Y-N:V-O)===0;X&&w&&Nf.getLineWidth(h,R)&&(X=!1),X||(X=!jm(N)||!jm(Y)||!jm(O)||!jm(V)),R.isBlank=X,X&&(M?Y=N:V=O),b&&!X&&(M?(N-=ul(N,Y)*b,Y+=ul(N,Y)*b):(O-=ul(O,V)*b,V+=ul(O,V)*b));var W,U;if(h.type==="waterfall"){if(!X){var $=h[R.dir].marker;W=$.line.width,U=$.color}}else W=Nf.getLineWidth(h,R),U=R.mc||h.marker.color;function re(te){var xe=Km.round(W/2%1,2);return n.gap===0&&n.groupgap===0?Km.round(Math.round(te)-xe,2):te}function se(te,xe,Ve){return Ve&&te===xe?te:Math.abs(te-xe)>=2?re(te):te>xe?Math.ceil(te):Math.floor(te)}var oe=A6e.opacity(U),K=oe<1||W>.01?re:se;e._context.staticPlot||(N=K(N,Y,M),Y=K(Y,N,M),O=K(O,V,!M),V=K(V,O,!M));var me=M?l.c2p:o.c2p,ie;R.s0>0?ie=R._sMax:R.s0<0?ie=R._sMin:ie=R.s1>0?R._sMax:R._sMin;function Me(te,xe){if(!te)return 0;var Ve=Math.abs(M?V-O:Y-N),cr=Math.abs(M?Y-N:V-O),mr=K(Math.abs(me(ie,!0)-me(0,!0))),le=R.hasB?Math.min(Ve/2,cr/2):Math.min(Ve/2,mr),ye;if(xe==="%"){var Ie=Math.min(50,te);ye=Ve*(Ie/100)}else ye=te;return K(Math.max(Math.min(ye,le),0))}var ue=_||x?Me(p.cornerradiusvalue,p.cornerradiusform):0,ce,Te,Ne="M"+N+","+O+"V"+V+"H"+Y+"V"+O+"Z",ge=0;if(ue&&R.s){var qe=q_(R.s0)===0||q_(R.s)===q_(R.s0)?R.s1:R.s0;if(ge=K(R.hasB?0:Math.abs(me(ie,!0)-me(qe,!0))),ge0?Math.sqrt(ge*(2*ue-ge)):0,Ue=ke>0?Math.max:Math.min;ce="M"+N+","+O+"V"+(V-ze*Le)+"H"+Ue(Y-(ue-ge)*ke,N)+"A "+ue+","+ue+" 0 0 "+Ce+" "+Y+","+(V-ue*Le-Ae)+"V"+(O+ue*Le+Ae)+"A "+ue+","+ue+" 0 0 "+Ce+" "+Ue(Y-(ue-ge)*ke,N)+","+(O+ze*Le)+"Z"}else if(R.hasB)ce="M"+(N+ue*ke)+","+O+"A "+ue+","+ue+" 0 0 "+Ce+" "+N+","+(O+ue*Le)+"V"+(V-ue*Le)+"A "+ue+","+ue+" 0 0 "+Ce+" "+(N+ue*ke)+","+V+"H"+(Y-ue*ke)+"A "+ue+","+ue+" 0 0 "+Ce+" "+Y+","+(V-ue*Le)+"V"+(O+ue*Le)+"A "+ue+","+ue+" 0 0 "+Ce+" "+(Y-ue*ke)+","+O+"Z";else{Te=Math.abs(V-O)+ge;var $e=Te0?Math.sqrt(ge*(2*ue-ge)):0,De=Le>0?Math.max:Math.min;ce="M"+(N+$e*ke)+","+O+"V"+De(V-(ue-ge)*Le,O)+"A "+ue+","+ue+" 0 0 "+Ce+" "+(N+ue*ke-Qe)+","+V+"H"+(Y-ue*ke+Qe)+"A "+ue+","+ue+" 0 0 "+Ce+" "+(Y-$e*ke)+","+De(V-(ue-ge)*Le,O)+"V"+O+"Z"}}else ce=Ne}else ce=Ne;var He=wG(Ia.ensureSingle(B,"path"),s,n,i);if(He.style("vector-effect",u?"none":"non-scaling-stroke").attr("d",isNaN((Y-N)*(V-O))||X&&e._context.staticPlot?"M0,0Z":ce).call(ls.setClipUrl,r.layerClipId,e),!s.uniformtext.mode&&A){var tr=ls.makePointStyleFns(h);ls.singlePointStyle(R,He,h,tr,e)}N6e(e,r,B,c,F,N,Y,O,V,ue,ge,n,i),r.layerClipId&&ls.hideOutsideRangePoint(R,B.select("text"),l,o,h.xcalendar,h.ycalendar)});var P=h.cliponaxis===!1;ls.setClipUrl(v,P?null:r.layerClipId,e)});k6e.getComponentMethod("errorbars","plot")(e,f,r,n)}function N6e(e,r,t,a,n,i,l,o,s,u,f,c,v){var h=r.xaxis,p=r.yaxis,m=e._fullLayout,y;function x(Ne,ge,qe){var ke=Ia.ensureSingle(Ne,"text").text(ge).attr({class:"bartext bartext-"+y,"text-anchor":"middle","data-notex":1}).call(ls.font,qe).call(M6e.convertToTspans,e);return ke}var _=a[0].trace,w=_.orientation==="h",b=Y6e(a,w,h,p),M=H6e(m,a,n,h,p);y=O6e(_,n);var A=c.mode==="stack"||c.mode==="relative",k=a[n],S=!A||k._outmost,D=k.hasB,P=u&&u-f>_n;if(!M||y==="none"||(k.isBlank||i===l||o===s)&&(y==="auto"||y==="inside")){t.select("text").remove();return}var R=m.font,F=S_.getBarColor(a[n],_),B=S_.getInsideTextFont(_,n,R,F),H=S_.getOutsideTextFont(_,n,R),N=_.insidetextanchor||"end",Y=t.datum();w?h.type==="log"&&Y.s0<=0&&(h.range[0]0&&se>0,me;P?D?me=Eu(X-2*u,W,re,se,w)||Eu(X,W-2*u,re,se,w):w?me=Eu(X-(u-f),W,re,se,w)||Eu(X,W-2*(u-f),re,se,w):me=Eu(X,W-(u-f),re,se,w)||Eu(X-2*(u-f),W,re,se,w):me=Eu(X,W,re,se,w),K&&me?y="inside":(y="outside",U.remove(),U=null)}else y="inside";if(!U){oe=Ia.ensureUniformFontSize(e,y==="outside"?H:B),U=x(t,M,oe);var ie=U.attr("transform");if(U.attr("transform",""),$=ls.bBox(U.node()),re=$.width,se=$.height,U.attr("transform",ie),re<=0||se<=0){U.remove();return}}var Me=_.textangle,ue,ce;y==="outside"?(ce=_.constraintext==="both"||_.constraintext==="outside",ue=B6e(i,l,o,s,$,{isHorizontal:w,constrained:ce,angle:Me,zeroBarDir:b})):(ce=_.constraintext==="both"||_.constraintext==="inside",ue=kG(i,l,o,s,$,{isHorizontal:w,constrained:ce,angle:Me,anchor:N,hasB:D,r:u,overhead:f})),ue.fontSize=oe.size,L6e(_.type==="histogram"?"bar":_.type,ue,m),k.transform=ue;var Te=wG(U,m,c,v);Ia.setTransormAndDisplay(Te,ue)}function Eu(e,r,t,a,n){if(e<0||r<0)return!1;var i=t<=e&&a<=r,l=t<=r&&a<=e,o=n?e>=t*(r/a):r>=a*(e/t);return i||l||o}function MG(e){return e==="auto"?0:e}function AG(e,r){var t=Math.PI/180*r,a=Math.abs(Math.sin(t)),n=Math.abs(Math.cos(t));return{x:e.width*n+e.height*a,y:e.width*a+e.height*n}}function kG(e,r,t,a,n,i){var l=!!i.isHorizontal,o=!!i.constrained,s=i.angle||0,u=i.anchor,f=u==="end",c=u==="start",v=i.leftToRight||0,h=(v+1)/2,p=1-h,m=i.hasB,y=i.r,x=i.overhead,_=n.width,w=n.height,b=Math.abs(r-e),M=Math.abs(a-t),A=b>2*_n&&M>2*_n?_n:0;b-=2*A,M-=2*A;var k=MG(s);s==="auto"&&!(_<=b&&w<=M)&&(_>b||w>M)&&(!(_>M||w>b)||__n){var R=I6e(e,r,t,a,S,y,x,l,m);D=R.scale,P=R.pad}else D=1,o&&(D=Math.min(1,b/S.x,M/S.y)),P=0;var F=n.left*p+n.right*h,B=(n.top+n.bottom)/2,H=(e+_n)*p+(r-_n)*h,N=(t+a)/2,Y=0,O=0;if(c||f){var V=(l?S.x:S.y)/2;y&&(f||m)&&(A+=P);var X=l?ul(e,r):ul(t,a);l?c?(H=e+X*A,Y=-X*V):(H=r-X*A,Y=X*V):c?(N=t+X*A,O=-X*V):(N=a-X*A,O=X*V)}return{textX:F,textY:B,targetX:H,targetY:N,anchorX:Y,anchorY:O,scale:D,rotate:k}}function I6e(e,r,t,a,n,i,l,o,s){var u=Math.max(0,Math.abs(r-e)-2*_n),f=Math.max(0,Math.abs(a-t)-2*_n),c=i-_n,v=l?c-Math.sqrt(c*c-(c-l)*(c-l)):c,h=s?c*2:o?c-l:2*v,p=s?c*2:o?2*v:c-l,m,y,x,_,w;return n.y/n.x>=f/(u-h)?_=f/n.y:n.y/n.x<=(f-p)/u?_=u/n.x:!s&&o?(m=n.x*n.x+n.y*n.y/4,y=-2*n.x*(u-c)-n.y*(f/2-c),x=(u-c)*(u-c)+(f/2-c)*(f/2-c)-c*c,_=(-y+Math.sqrt(y*y-4*m*x))/(2*m)):s?(m=(n.x*n.x+n.y*n.y)/4,y=-n.x*(u/2-c)-n.y*(f/2-c),x=(u/2-c)*(u/2-c)+(f/2-c)*(f/2-c)-c*c,_=(-y+Math.sqrt(y*y-4*m*x))/(2*m)):(m=n.x*n.x/4+n.y*n.y,y=-n.x*(u/2-c)-2*n.y*(f-c),x=(u/2-c)*(u/2-c)+(f-c)*(f-c)-c*c,_=(-y+Math.sqrt(y*y-4*m*x))/(2*m)),_=Math.min(1,_),o?w=Math.max(0,c-Math.sqrt(Math.max(0,c*c-(c-(f-n.y*_)/2)*(c-(f-n.y*_)/2)))-l):w=Math.max(0,c-Math.sqrt(Math.max(0,c*c-(c-(u-n.x*_)/2)*(c-(u-n.x*_)/2)))-l),{scale:_,pad:w}}function B6e(e,r,t,a,n,i){var l=!!i.isHorizontal,o=!!i.constrained,s=i.angle||0,u=n.width,f=n.height,c=Math.abs(r-e),v=Math.abs(a-t),h;l?h=v>2*_n?_n:0:h=c>2*_n?_n:0;var p=1;o&&(p=l?Math.min(1,v/f):Math.min(1,c/u));var m=MG(s),y=AG(n,m),x=(l?y.x:y.y)/2,_=(n.left+n.right)/2,w=(n.top+n.bottom)/2,b=(e+r)/2,M=(t+a)/2,A=0,k=0,S;return(l?e===r:t===a)&&i.zeroBarDir?S=i.zeroBarDir:S=l?ul(r,e):ul(t,a),l?(b=r-S*h,A=S*x):(M=a+S*h,k=-S*x),{textX:_,textY:w,targetX:b,targetY:M,anchorX:A,anchorY:k,scale:p,rotate:m}}function H6e(e,r,t,a,n){var i=r[0].trace,l=i.texttemplate,o;return l?o=G6e(e,r,t,a,n):i.textinfo?o=U6e(r,t,a,n):o=Nf.getValue(i.text,t),Nf.coerceString(q6e,o)}function O6e(e,r){var t=Nf.getValue(e.textposition,r);return Nf.coerceEnumerated(D6e,t)}function Y6e(e,r,t,a){for(var n=!1,i=!1,l=0;l0?n=!0:o<0&&(i=!0),n&&i)return 0}var s=r?t:a,u=-ul(s.range[0],s.range[1]);return i?n?0:-u:u}function G6e(e,r,t,a,n){var i=r[0].trace,l=Ia.castOption(i,t,"texttemplate");if(!l)return"";var o=i.type==="histogram",s=i.type==="waterfall",u=i.type==="funnel",f=i.orientation==="h",c,v,h,p;f?(c="y",v=n,h="x",p=a):(c="x",v=a,h="y",p=n);function m(A){return Qm(v,v.c2l(A),!0).text}function y(A){return Qm(p,p.c2l(A),!0).text}var x=r[t],_={};_.label=x.p,_.labelLabel=_[c+"Label"]=m(x.p);var w=Ia.castOption(i,x.i,"text");(w===0||w)&&(_.text=w),_.value=x.s,_.valueLabel=_[h+"Label"]=y(x.s);var b={};P6e(b,i,x.i),(o||b.x===void 0)&&(b.x=f?_.value:_.label),(o||b.y===void 0)&&(b.y=f?_.label:_.value),(o||b.xLabel===void 0)&&(b.xLabel=f?_.valueLabel:_.labelLabel),(o||b.yLabel===void 0)&&(b.yLabel=f?_.labelLabel:_.valueLabel),s&&(_.delta=+x.rawS||x.s,_.deltaLabel=y(_.delta),_.final=x.v,_.finalLabel=y(_.final),_.initial=_.final-_.delta,_.initialLabel=y(_.initial)),u&&(_.value=x.s,_.valueLabel=y(_.value),_.percentInitial=x.begR,_.percentInitialLabel=Ia.formatPercent(x.begR),_.percentPrevious=x.difR,_.percentPreviousLabel=Ia.formatPercent(x.difR),_.percentTotal=x.sumR,_.percentTotalLabel=Ia.formatPercent(x.sumR));var M=Ia.castOption(i,x.i,"customdata");return M&&(_.customdata=M),Ia.texttemplateString({data:[b,_,i._meta],fallback:i.texttemplatefallback,labels:_,locale:e._d3locale,template:l})}function U6e(e,r,t,a){var n=e[0].trace,i=n.orientation==="h",l=n.type==="waterfall",o=n.type==="funnel";function s(M){var A=i?a:t;return Qm(A,M,!0).text}function u(M){var A=i?t:a;return Qm(A,+M,!0).text}var f=n.textinfo,c=e[r],v=f.split("+"),h=[],p,m=function(M){return v.indexOf(M)!==-1};if(m("label")&&h.push(s(e[r].p)),m("text")&&(p=Ia.castOption(n,c.i,"text"),(p===0||p)&&h.push(p)),l){var y=+c.rawS||c.s,x=c.v,_=x-y;m("initial")&&h.push(u(_)),m("delta")&&h.push(u(y)),m("final")&&h.push(u(x))}if(o){m("value")&&h.push(u(c.s));var w=0;m("percent initial")&&w++,m("percent previous")&&w++,m("percent total")&&w++;var b=w>1;m("percent initial")&&(p=Ia.formatPercent(c.begR),b&&(p+=" of initial"),h.push(p)),m("percent previous")&&(p=Ia.formatPercent(c.difR),b&&(p+=" of previous"),h.push(p)),m("percent total")&&(p=Ia.formatPercent(c.sumR),b&&(p+=" of total"),h.push(p))}return h.join("
")}LG.exports={plot:F6e,toMoveInsideBar:kG}});var F2=G(($Se,DG)=>{"use strict";var z2=xi(),V6e=Ar(),CG=kr(),X6e=Se().fillText,W6e=$m().getLineWidth,D_=Qr().hoverLabelText,Z6e=(Rt(),Fe(Nt)).BADNUM;function J6e(e,r,t,a,n){var i=SG(e,r,t,a,n);if(i){var l=i.cd,o=l[0].trace,s=l[i.index];return i.color=qG(o,s),V6e.getComponentMethod("errorbars","hoverInfo")(s,o,i),[i]}}function SG(e,r,t,a,n){var i=e.cd,l=i[0].trace,o=i[0].t,s=a==="closest",u=l.type==="waterfall",f=e.maxHoverDistance,c=e.maxSpikeDistance,v,h,p,m,y,x,_;l.orientation==="h"?(v=t,h=r,p="y",m="x",y=N,x=F):(v=r,h=t,p="x",m="y",x=N,y=F);var w=l[p+"period"],b=s||w;function M(K){return k(K,-1)}function A(K){return k(K,1)}function k(K,me){var ie=K.w;return K[p]+me*ie/2}function S(K){return K[p+"End"]-K[p+"Start"]}var D=s?M:w?function(K){return K.p-S(K)/2}:function(K){return Math.min(M(K),K.p-o.bardelta/2)},P=s?A:w?function(K){return K.p+S(K)/2}:function(K){return Math.max(A(K),K.p+o.bardelta/2)};function R(K,me,ie){return n.finiteRange&&(ie=0),z2.inbox(K-v,me-v,ie+Math.min(1,Math.abs(me-K)/_)-1)}function F(K){return R(D(K),P(K),f)}function B(K){return R(M(K),A(K),c)}function H(K){var me=K[m];if(u){var ie=Math.abs(K.rawS)||0;h>0?me+=ie:h<0&&(me-=ie)}return me}function N(K){var me=h,ie=K.b,Me=H(K);return z2.inbox(ie-me,Me-me,f+(Me-me)/(Me-ie)-1)}function Y(K){var me=h,ie=K.b,Me=H(K);return z2.inbox(ie-me,Me-me,c+(Me-me)/(Me-ie)-1)}var O=e[p+"a"],V=e[m+"a"];_=Math.abs(O.r2c(O.range[1])-O.r2c(O.range[0]));function X(K){return(y(K)+x(K))/2}var W=z2.getDistanceFunction(a,y,x,X);if(z2.getClosest(i,W,e),e.index!==!1&&i[e.index].p!==Z6e){b||(D=function(K){return Math.min(M(K),K.p-o.bargroupwidth/2)},P=function(K){return Math.max(A(K),K.p+o.bargroupwidth/2)});var U=e.index,$=i[U],re=l.base?$.b+$.s:$.s;e[m+"0"]=e[m+"1"]=V.c2p($[m],!0),e[m+"LabelVal"]=re;var se=o.extents[o.extents.round($.p)];e[p+"0"]=O.c2p(s?D($):se[0],!0),e[p+"1"]=O.c2p(s?P($):se[1],!0);var oe=$.orig_p!==void 0;return e[p+"LabelVal"]=oe?$.orig_p:$.p,e.labelLabel=D_(O,e[p+"LabelVal"],l[p+"hoverformat"]),e.valueLabel=D_(V,e[m+"LabelVal"],l[m+"hoverformat"]),e.baseLabel=D_(V,$.b,l[m+"hoverformat"]),e.spikeDistance=(Y($)+B($))/2,e[p+"Spike"]=O.c2p($.p,!0),X6e($,l,e),e.hovertemplate=l.hovertemplate,e}}function qG(e,r){var t=r.mcc||e.marker.color,a=r.mlcc||e.marker.line.color,n=W6e(e,r);if(CG.opacity(t))return t;if(CG.opacity(a)&&n)return a}DG.exports={hoverPoints:J6e,hoverOnBars:SG,getTraceColor:qG}});var EG=G((KSe,PG)=>{"use strict";PG.exports=function(r,t,a){return r.x="xVal"in t?t.xVal:t.x,r.y="yVal"in t?t.yVal:t.y,t.xa&&(r.xaxis=t.xa),t.ya&&(r.yaxis=t.ya),a.orientation==="h"?(r.label=r.y,r.value=r.x):(r.label=r.x,r.value=r.y),r}});var N2=G((jSe,RG)=>{"use strict";RG.exports=function(r,t){var a=r.cd,n=r.xaxis,i=r.yaxis,l=a[0].trace,o=l.type==="funnel",s=l.orientation==="h",u=[],f;if(t===!1)for(f=0;f{"use strict";zG.exports={attributes:so(),layoutAttributes:Wm(),supplyDefaults:Rl().supplyDefaults,crossTraceDefaults:Rl().crossTraceDefaults,supplyLayoutDefaults:k_(),calc:iG(),crossTraceCalc:bf().crossTraceCalc,colorbar:lm(),arraysToCalcdata:Jm(),plot:If().plot,style:is().style,styleOnSelect:is().styleOnSelect,hoverPoints:F2().hoverPoints,eventData:EG(),selectPoints:N2(),moduleType:"trace",name:"bar",basePlotModule:ao(),categories:["bar-like","cartesian","svg","bar","oriented","errorBarsOK","showLegend","zoomScale"],animatable:!0,meta:{}}});var IG=G((eqe,NG)=>{"use strict";NG.exports=FG()});var HG=G((rqe,BG)=>{"use strict";BG.exports=function(r,t){return{start:{valType:"any",editType:"calc"},end:{valType:"any",editType:"calc"},size:{valType:"any",editType:"calc"},editType:"calc"}}});var OG={};pt(OG,{eventDataKeys:()=>K6e});var K6e,YG=Cr(()=>{"use strict";K6e=["binNumber"]});var R_=G((tqe,XG)=>{"use strict";var Hn=so(),GG=Xi().axisHoverFormat,{hovertemplateAttrs:j6e,texttemplateAttrs:Q6e,templatefallbackAttrs:UG}=Vn(),P_=Ta(),VG=HG(),e_e=(YG(),Fe(OG)),E_=At().extendFlat;XG.exports={x:{valType:"data_array",editType:"calc+clearAxisTypes"},y:{valType:"data_array",editType:"calc+clearAxisTypes"},xhoverformat:GG("x"),yhoverformat:GG("y"),text:E_({},Hn.text,{}),hovertext:E_({},Hn.hovertext,{}),orientation:Hn.orientation,histfunc:{valType:"enumerated",values:["count","sum","avg","min","max"],dflt:"count",editType:"calc"},histnorm:{valType:"enumerated",values:["","percent","probability","density","probability density"],dflt:"",editType:"calc"},cumulative:{enabled:{valType:"boolean",dflt:!1,editType:"calc"},direction:{valType:"enumerated",values:["increasing","decreasing"],dflt:"increasing",editType:"calc"},currentbin:{valType:"enumerated",values:["include","exclude","half"],dflt:"include",editType:"calc"},editType:"calc"},nbinsx:{valType:"integer",min:0,dflt:0,editType:"calc"},xbins:VG("x",!0),nbinsy:{valType:"integer",min:0,dflt:0,editType:"calc"},ybins:VG("y",!0),autobinx:{valType:"boolean",dflt:null,editType:"calc"},autobiny:{valType:"boolean",dflt:null,editType:"calc"},bingroup:{valType:"string",dflt:"",editType:"calc"},hovertemplate:j6e({},{keys:e_e.eventDataKeys}),hovertemplatefallback:UG(),texttemplate:Q6e({arrayOk:!1,editType:"plot"},{keys:["label","value"]}),texttemplatefallback:UG({editType:"plot"}),textposition:E_({},Hn.textposition,{arrayOk:!1}),textfont:P_({arrayOk:!1,editType:"plot",colorEditType:"style"}),outsidetextfont:P_({arrayOk:!1,editType:"plot",colorEditType:"style"}),insidetextfont:P_({arrayOk:!1,editType:"plot",colorEditType:"style"}),insidetextanchor:Hn.insidetextanchor,textangle:Hn.textangle,cliponaxis:Hn.cliponaxis,constraintext:Hn.constraintext,marker:Hn.marker,offsetgroup:Hn.offsetgroup,alignmentgroup:Hn.alignmentgroup,selected:Hn.selected,unselected:Hn.unselected,zorder:Hn.zorder}});var $G=G((aqe,JG)=>{"use strict";var WG=Ar(),I2=Se(),ZG=kr(),r_e=Rl().handleText,t_e=A_(),a_e=R_();JG.exports=function(r,t,a,n){function i(_,w){return I2.coerce(r,t,a_e,_,w)}var l=i("x"),o=i("y"),s=i("cumulative.enabled");s&&(i("cumulative.direction"),i("cumulative.currentbin")),i("text");var u=i("textposition");r_e(r,t,n,i,u,{moduleHasSelected:!0,moduleHasUnselected:!0,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),i("hovertext"),i("hovertemplate"),i("hovertemplatefallback"),i("xhoverformat"),i("yhoverformat");var f=i("orientation",o&&!l?"h":"v"),c=f==="v"?"x":"y",v=f==="v"?"y":"x",h=l&&o?Math.min(I2.minRowLength(l)&&I2.minRowLength(o)):I2.minRowLength(t[c]||[]);if(!h){t.visible=!1;return}t._length=h;var p=WG.getComponentMethod("calendars","handleTraceDefaults");p(r,t,["x","y"],n);var m=t[v];m&&i("histfunc"),i("histnorm"),i("autobin"+c),t_e(r,t,i,a,n),I2.coerceSelectionMarkerOpacity(t,i);var y=(t.marker.line||{}).color,x=WG.getComponentMethod("errorbars","supplyDefaults");x(r,t,y||ZG.defaultLine,{axis:"y"}),x(r,t,y||ZG.defaultLine,{axis:"x",inherit:"y"}),i("zorder")}});var eU=G((nqe,QG)=>{"use strict";var B2=Se(),n_e=va(),ey=Ar().traceIs,i_e=yf(),l_e=Rl().validateCornerradius,KG=B2.nestedProperty,z_=mu().getAxisGroup,jG=[{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"}],o_e=["x","y"];QG.exports=function(r,t){var a=t._histogramBinOpts={},n=[],i={},l=[],o,s,u,f,c,v,h;function p(N,Y){return B2.coerce(o._input,o,o._module.attributes,N,Y)}function m(N){return N.orientation==="v"?"x":"y"}function y(N,Y){var O=n_e.getFromTrace({_fullLayout:t},N,Y);return O.type}function x(N,Y,O){var V=N.uid+"__"+O;Y||(Y=V);var X=y(N,O),W=N[O+"calendar"]||"",U=a[Y],$=!0;U&&(X===U.axType&&W===U.calendar?($=!1,U.traces.push(N),U.dirs.push(O)):(Y=V,X!==U.axType&&B2.warn(["Attempted to group the bins of trace",N.index,"set on a","type:"+X,"axis","with bins on","type:"+U.axType,"axis."].join(" ")),W!==U.calendar&&B2.warn(["Attempted to group the bins of trace",N.index,"set with a",W,"calendar","with bins",U.calendar?"on a "+U.calendar+" calendar":"w/o a set calendar"].join(" ")))),$&&(a[Y]={traces:[N],dirs:[O],axType:X,calendar:N[O+"calendar"]||""}),N["_"+O+"bingroup"]=Y}for(c=0;c{"use strict";var Bf=Gr();rU.exports={count:function(e,r,t){return t[e]++,1},sum:function(e,r,t,a){var n=a[r];return Bf(n)?(n=Number(n),t[e]+=n,n):0},avg:function(e,r,t,a,n){var i=a[r];return Bf(i)&&(i=Number(i),t[e]+=i,n[e]++),0},min:function(e,r,t,a){var n=a[r];if(Bf(n))if(n=Number(n),Bf(t[e])){if(t[e]>n){var i=n-t[e];return t[e]=n,i}}else return t[e]=n,n;return 0},max:function(e,r,t,a){var n=a[r];if(Bf(n))if(n=Number(n),Bf(t[e])){if(t[e]{"use strict";aU.exports={percent:function(e,r){for(var t=e.length,a=100/r,n=0;n{"use strict";iU.exports=function(r,t){for(var a=r.length,n=0,i=0;i{"use strict";var Hf=(Rt(),Fe(Nt)),Ru=Hf.ONEAVGYEAR,oU=Hf.ONEAVGMONTH,ty=Hf.ONEDAY,sU=Hf.ONEHOUR,uU=Hf.ONEMIN,fU=Hf.ONESEC,cU=Qr().tickIncrement;hU.exports=function(r,t,a,n,i){var l=-1.1*t,o=-.1*t,s=r-o,u=a[0],f=a[1],c=Math.min(ry(u+o,u+s,n,i),ry(f+o,f+s,n,i)),v=Math.min(ry(u+l,u+o,n,i),ry(f+l,f+o,n,i)),h,p;if(c>v&&vty){var m=h===Ru?1:6,y=h===Ru?"M12":"M1";return function(x,_){var w=n.c2d(x,Ru,i),b=w.indexOf("-",m);b>0&&(w=w.slice(0,b));var M=n.d2c(w,0,i);if(MfU?e>ty?e>Ru*1.1?Ru:e>oU*1.1?oU:ty:e>sU?sU:e>uU?uU:fU:Math.pow(10,Math.floor(Math.log(e)/Math.LN10))}function s_e(e,r,t,a,n,i){if(a&&e>ty){var l=dU(r,n,i),o=dU(t,n,i),s=e===Ru?0:1;return l[s]!==o[s]}return Math.floor(t/e)-Math.floor(r/e)>.1}function dU(e,r,t){var a=r.c2d(e,Ru,t).split("-");return a[0]===""&&(a.unshift(),a[0]="-"+a[0]),a}});var _U=G((uqe,bU)=>{"use strict";var F_=Gr(),wn=Se(),mU=Ar(),Pi=Qr(),{hasColorscale:yU}=Wn(),gU=fv(),u_e=Jm(),xU=tU(),f_e=nU(),c_e=lU(),v_e=pU();function d_e(e,r){var t=[],a=[],n=r.orientation==="h",i=Pi.getFromId(e,n?r.yaxis:r.xaxis),l=n?"y":"x",o={x:"y",y:"x"}[l],s=r[l+"calendar"],u=r.cumulative,f,c=N_(e,r,i,l),v=c[0],h=c[1],p=typeof v.size=="string",m=[],y=p?m:v,x=[],_=[],w=[],b=0,M=r.histnorm,A=r.histfunc,k=M.indexOf("density")!==-1,S,D,P;u.enabled&&k&&(M=M.replace(/ ?density$/,""),k=!1);var R=A==="max"||A==="min",F=R?null:0,B=xU.count,H=f_e[M],N=!1,Y=function(Te){return i.r2c(Te,0,s)},O;for(wn.isArrayOrTypedArray(r[o])&&A!=="count"&&(O=r[o],N=A==="avg",B=xU[A]),f=Y(v.start),D=Y(v.end)+(f-Pi.tickIncrement(f,v.size,!1,s))/1e6;f=0&&P=Me;f--)if(a[f]){ue=f;break}for(f=Me;f<=ue;f++)if(F_(t[f])&&F_(a[f])){var ce={p:t[f],s:a[f],b:0};u.enabled||(ce.pts=w[f],U?ce.ph0=ce.ph1=w[f].length?h[w[f][0]]:t[f]:(r._computePh=!0,ce.ph0=K(m[f]),ce.ph1=K(m[f+1],!0))),ie.push(ce)}return ie.length===1&&(ie[0].width1=Pi.tickIncrement(ie[0].p,v.size,!1,s)-ie[0].p),yU(r,"marker")&&gU(e,r,{vals:r.marker.color,containerStr:"marker",cLetter:"c"}),yU(r,"marker.line")&&gU(e,r,{vals:r.marker.line.color,containerStr:"marker.line",cLetter:"c"}),u_e(ie,r),wn.isArrayOrTypedArray(r.selectedpoints)&&wn.tagSelected(ie,r,se),ie}function N_(e,r,t,a,n){var oe;var i=a+"bins",l=e._fullLayout,o=r["_"+a+"bingroup"],s=l._histogramBinOpts[o],u=l.barmode==="overlay",f,c,v,h,p,m,y,x=function(K){return t.r2c(K,0,h)},_=function(K){return t.c2r(K,0,h)},w=t.type==="date"?function(K){return K||K===0?wn.cleanDate(K,null,h):null}:function(K){return F_(K)?Number(K):null};function b(K,me,ie){me[K+"Found"]?(me[K]=w(me[K]),me[K]===null&&(me[K]=ie[K])):(m[K]=me[K]=ie[K],wn.nestedProperty(c[0],i+"."+K).set(ie[K]))}if(r["_"+a+"autoBinFinished"])delete r["_"+a+"autoBinFinished"];else{c=s.traces;var M=[],A=!0,k=!1,S=!1;for(f=0;ft.r2l(O)&&(X=Pi.tickIncrement(X,s.size,!0,h)),B.start=t.l2r(X),Y||wn.nestedProperty(r,i+".start").set(B.start)}var W=s.end,U=t.r2l(F.end),$=U!==void 0;if((s.endFound||$)&&U!==t.r2l(W)){var re=$?U:wn.aggNums(Math.max,null,p);B.end=t.l2r(re),$||wn.nestedProperty(r,i+".start").set(B.end)}var se="autobin"+a;return r._input[se]===!1&&(r._input[i]=wn.extendFlat({},r[i]||{}),delete r._input[se],delete r[se]),[B,p]}function h_e(e,r,t,a,n){var i=e._fullLayout,l=p_e(e,r),o=!1,s=1/0,u=[r],f,c,v;for(f=0;f=0;a--)o(a);else if(r==="increasing"){for(a=1;a=0;a--)e[a]+=e[a+1];t==="exclude"&&(e.push(0),e.shift())}}bU.exports={calc:d_e,calcAllAutoBins:N_}});var TU=G((fqe,wU)=>{"use strict";var y_e=F2().hoverPoints,g_e=Qr().hoverLabelText;wU.exports=function(r,t,a,n,i){var l=y_e(r,t,a,n,i);if(l){r=l[0];var o=r.cd[r.index],s=r.cd[0].trace;if(!s.cumulative.enabled){var u=s.orientation==="h"?"y":"x";r[u+"Label"]=g_e(r[u+"a"],[o.ph0,o.ph1],s[u+"hoverformat"])}return l}}});var AU=G((cqe,MU)=>{"use strict";MU.exports=function(r,t,a,n,i){if(r.x="xVal"in t?t.xVal:t.x,r.y="yVal"in t?t.yVal:t.y,"zLabelVal"in t&&(r.z=t.zLabelVal),t.xa&&(r.xaxis=t.xa),t.ya&&(r.yaxis=t.ya),!(a.cumulative||{}).enabled){var l=Array.isArray(i)?n[0].pts[i[0]][i[1]]:n[i].pts;r.pointNumbers=l,r.binNumber=r.pointNumber,delete r.pointNumber,delete r.pointIndex,r.pointIndices=l}return r}});var LU=G((vqe,kU)=>{"use strict";kU.exports={attributes:R_(),layoutAttributes:Wm(),supplyDefaults:$G(),crossTraceDefaults:eU(),supplyLayoutDefaults:k_(),calc:_U().calc,crossTraceCalc:bf().crossTraceCalc,plot:If().plot,layerName:"barlayer",style:is().style,styleOnSelect:is().styleOnSelect,colorbar:lm(),hoverPoints:TU(),selectPoints:N2(),eventData:AU(),moduleType:"trace",name:"histogram",basePlotModule:ao(),categories:["bar-like","cartesian","svg","bar","histogram","oriented","errorBarsOK","showLegend"],meta:{}}});var SU=G((dqe,CU)=>{"use strict";CU.exports=LU()});var qU={};pt(qU,{eventDataKeys:()=>x_e});var x_e,DU=Cr(()=>{"use strict";x_e=["percentInitial","percentPrevious","percentTotal"]});var B_=G((hqe,zU)=>{"use strict";var Tt=so(),I_=Ki().line,b_e=qn(),PU=Xi().axisHoverFormat,{hovertemplateAttrs:__e,texttemplateAttrs:w_e,templatefallbackAttrs:EU}=Vn(),RU=(DU(),Fe(qU)),uo=At().extendFlat,T_e=kr();zU.exports={x:Tt.x,x0:Tt.x0,dx:Tt.dx,y:Tt.y,y0:Tt.y0,dy:Tt.dy,xperiod:Tt.xperiod,yperiod:Tt.yperiod,xperiod0:Tt.xperiod0,yperiod0:Tt.yperiod0,xperiodalignment:Tt.xperiodalignment,yperiodalignment:Tt.yperiodalignment,xhoverformat:PU("x"),yhoverformat:PU("y"),hovertext:Tt.hovertext,hovertemplate:__e({},{keys:RU.eventDataKeys}),hovertemplatefallback:EU(),hoverinfo:uo({},b_e.hoverinfo,{flags:["name","x","y","text","percent initial","percent previous","percent total"]}),textinfo:{valType:"flaglist",flags:["label","text","percent initial","percent previous","percent total","value"],extras:["none"],editType:"plot",arrayOk:!1},texttemplate:w_e({editType:"plot"},{keys:RU.eventDataKeys.concat(["label","value"])}),texttemplatefallback:EU({editType:"plot"}),text:Tt.text,textposition:Tt.textposition,insidetextanchor:uo({},Tt.insidetextanchor,{dflt:"middle"}),textangle:uo({},Tt.textangle,{dflt:0}),textfont:Tt.textfont,insidetextfont:Tt.insidetextfont,outsidetextfont:Tt.outsidetextfont,constraintext:Tt.constraintext,cliponaxis:Tt.cliponaxis,orientation:uo({},Tt.orientation,{}),offset:uo({},Tt.offset,{arrayOk:!1}),width:uo({},Tt.width,{arrayOk:!1}),marker:M_e(),connector:{fillcolor:{valType:"color",editType:"style"},line:{color:uo({},I_.color,{dflt:T_e.defaultLine}),width:uo({},I_.width,{dflt:0,editType:"plot"}),dash:I_.dash,editType:"style"},visible:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},offsetgroup:Tt.offsetgroup,alignmentgroup:Tt.alignmentgroup,zorder:Tt.zorder};function M_e(){var e=uo({},Tt.marker);return delete e.pattern,delete e.cornerradius,e}});var H_=G((pqe,FU)=>{"use strict";FU.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"}}});var Y_=G((mqe,IU)=>{"use strict";var ay=Se(),A_e=yf(),k_e=Rl().handleText,L_e=c2(),C_e=_u(),NU=B_(),O_=kr();function S_e(e,r,t,a){function n(c,v){return ay.coerce(e,r,NU,c,v)}var i=L_e(e,r,a,n);if(!i){r.visible=!1;return}C_e(e,r,a,n),n("xhoverformat"),n("yhoverformat"),n("orientation",r.y&&!r.x?"v":"h"),n("offset"),n("width");var l=n("text");n("hovertext"),n("hovertemplate"),n("hovertemplatefallback");var o=n("textposition");k_e(e,r,a,n,o,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),r.textposition!=="none"&&!r.texttemplate&&n("textinfo",ay.isArrayOrTypedArray(l)?"text+value":"value");var s=n("marker.color",t);n("marker.line.color",O_.defaultLine),n("marker.line.width");var u=n("connector.visible");if(u){n("connector.fillcolor",q_e(s));var f=n("connector.line.width");f&&(n("connector.line.color"),n("connector.line.dash"))}n("zorder")}function q_e(e){var r=ay.isArrayOrTypedArray(e)?"#000":e;return O_.addOpacity(r,.5*O_.opacity(r))}function D_e(e,r){var t,a;function n(l){return ay.coerce(a._input,a,NU,l)}for(var i=0;i{"use strict";var P_e=Se(),E_e=H_();BU.exports=function(e,r,t){var a=!1;function n(o,s){return P_e.coerce(e,r,E_e,o,s)}for(var i=0;i{"use strict";var Of=Se();OU.exports=function(r,t){for(var a=0;a{"use strict";var GU=Qr(),UU=wu(),R_e=YU(),z_e=v2(),H2=(Rt(),Fe(Nt)).BADNUM;VU.exports=function(r,t){var a=GU.getFromId(r,t.xaxis||"x"),n=GU.getFromId(r,t.yaxis||"y"),i,l,o,s,u,f,c,v;t.orientation==="h"?(i=a.makeCalcdata(t,"x"),o=n.makeCalcdata(t,"y"),s=UU(t,n,"y",o),u=!!t.yperiodalignment,f="y"):(i=n.makeCalcdata(t,"y"),o=a.makeCalcdata(t,"x"),s=UU(t,a,"x",o),u=!!t.xperiodalignment,f="x"),l=s.vals;var h=Math.min(l.length,i.length),p=new Array(h);for(t._base=[],c=0;c{"use strict";var WU=bf().setGroupPositions;ZU.exports=function(r,t){var a=r._fullLayout,n=r._fullData,i=r.calcdata,l=t.xaxis,o=t.yaxis,s=[],u=[],f=[],c,v;for(v=0;v{"use strict";var ny=Er(),ss=Se(),$U=$r(),os=(Rt(),Fe(Nt)).BADNUM,F_e=If(),N_e=sl().clearMinTextSize;jU.exports=function(r,t,a,n){var i=r._fullLayout;N_e("funnel",i),I_e(r,t,a,n),B_e(r,t,a,n),F_e.plot(r,t,a,n,{mode:i.funnelmode,norm:i.funnelmode,gap:i.funnelgap,groupgap:i.funnelgroupgap})};function I_e(e,r,t,a){var n=r.xaxis,i=r.yaxis;ss.makeTraceGroups(a,t,"trace bars").each(function(l){var o=ny.select(this),s=l[0].trace,u=ss.ensureSingle(o,"g","regions");if(!s.connector||!s.connector.visible){u.remove();return}var f=s.orientation==="h",c=u.selectAll("g.region").data(ss.identity);c.enter().append("g").classed("region",!0),c.exit().remove();var v=c.size();c.each(function(h,p){if(!(p!==v-1&&!h.cNext)){var m=KU(h,n,i,f),y=m[0],x=m[1],_="";y[0]!==os&&x[0]!==os&&y[1]!==os&&x[1]!==os&&y[2]!==os&&x[2]!==os&&y[3]!==os&&x[3]!==os&&(f?_+="M"+y[0]+","+x[1]+"L"+y[2]+","+x[2]+"H"+y[3]+"L"+y[1]+","+x[1]+"Z":_+="M"+y[1]+","+x[1]+"L"+y[2]+","+x[3]+"V"+x[2]+"L"+y[1]+","+x[0]+"Z"),_===""&&(_="M0,0Z"),ss.ensureSingle(ny.select(this),"path").attr("d",_).call($U.setClipUrl,r.layerClipId,e)}})})}function B_e(e,r,t,a){var n=r.xaxis,i=r.yaxis;ss.makeTraceGroups(a,t,"trace bars").each(function(l){var o=ny.select(this),s=l[0].trace,u=ss.ensureSingle(o,"g","lines");if(!s.connector||!s.connector.visible||!s.connector.line.width){u.remove();return}var f=s.orientation==="h",c=u.selectAll("g.line").data(ss.identity);c.enter().append("g").classed("line",!0),c.exit().remove();var v=c.size();c.each(function(h,p){if(!(p!==v-1&&!h.cNext)){var m=KU(h,n,i,f),y=m[0],x=m[1],_="";y[3]!==void 0&&x[3]!==void 0&&(f?(_+="M"+y[0]+","+x[1]+"L"+y[2]+","+x[2],_+="M"+y[1]+","+x[1]+"L"+y[3]+","+x[2]):(_+="M"+y[1]+","+x[1]+"L"+y[2]+","+x[3],_+="M"+y[1]+","+x[0]+"L"+y[2]+","+x[2])),_===""&&(_="M0,0Z"),ss.ensureSingle(ny.select(this),"path").attr("d",_).call($U.setClipUrl,r.layerClipId,e)}})})}function KU(e,r,t,a){var n=[],i=[],l=a?r:t,o=a?t:r;return n[0]=l.c2p(e.s0,!0),i[0]=o.c2p(e.p0,!0),n[1]=l.c2p(e.s1,!0),i[1]=o.c2p(e.p1,!0),n[2]=l.c2p(e.nextS0,!0),i[2]=o.c2p(e.nextP0,!0),n[3]=l.c2p(e.nextS1,!0),i[3]=o.c2p(e.nextP1,!0),a?[n,i]:[i,n]}});var tV=G((wqe,rV)=>{"use strict";var O2=Er(),eV=$r(),U_=kr(),H_e=(k0(),Fe(A0)).DESELECTDIM,O_e=is(),Y_e=sl().resizeText,G_e=O_e.styleTextPoints;function U_e(e,r,t){var a=t||O2.select(e).selectAll('g[class^="funnellayer"]').selectAll("g.trace");Y_e(e,a,"funnel"),a.style("opacity",function(n){return n[0].trace.opacity}),a.each(function(n){var i=O2.select(this),l=n[0].trace;i.selectAll(".point > path").each(function(o){if(!o.isBlank){var s=l.marker;O2.select(this).call(U_.fill,o.mc||s.color).call(U_.stroke,o.mlc||s.line.color).call(eV.dashLine,s.line.dash,o.mlw||s.line.width).style("opacity",l.selectedpoints&&!o.selected?H_e:1)}}),G_e(i,l,e),i.selectAll(".regions").each(function(){O2.select(this).selectAll("path").style("stroke-width",0).call(U_.fill,l.connector.fillcolor)}),i.selectAll(".lines").each(function(){var o=l.connector.line;eV.lineGroupStyle(O2.select(this).selectAll("path"),o.width,o.color,o.dash)})})}rV.exports={style:U_e}});var iV=G((Tqe,nV)=>{"use strict";var aV=kr().opacity,V_e=F2().hoverOnBars,V_=Se().formatPercent;nV.exports=function(r,t,a,n,i){var l=V_e(r,t,a,n,i);if(l){var o=l.cd,s=o[0].trace,u=s.orientation==="h",f=l.index,c=o[f],v=u?"x":"y";l[v+"LabelVal"]=c.s,l.percentInitial=c.begR,l.percentInitialLabel=V_(c.begR,1),l.percentPrevious=c.difR,l.percentPreviousLabel=V_(c.difR,1),l.percentTotal=c.sumR,l.percentTotalLabel=V_(c.sumR,1);var h=c.hi||s.hoverinfo,p=[];if(h&&h!=="none"&&h!=="skip"){var m=h==="all",y=h.split("+"),x=function(_){return m||y.indexOf(_)!==-1};x("percent initial")&&p.push(l.percentInitialLabel+" of initial"),x("percent previous")&&p.push(l.percentPreviousLabel+" of previous"),x("percent total")&&p.push(l.percentTotalLabel+" of total")}return l.extraText=p.join("
"),l.color=X_e(s,c),[l]}};function X_e(e,r){var t=e.marker,a=r.mc||t.color,n=r.mlc||t.line.color,i=r.mlw||t.line.width;if(aV(a))return a;if(aV(n)&&i)return n}});var oV=G((Mqe,lV)=>{"use strict";lV.exports=function(r,t){return r.x="xVal"in t?t.xVal:t.x,r.y="yVal"in t?t.yVal:t.y,"percentInitial"in t&&(r.percentInitial=t.percentInitial),"percentPrevious"in t&&(r.percentPrevious=t.percentPrevious),"percentTotal"in t&&(r.percentTotal=t.percentTotal),t.xa&&(r.xaxis=t.xa),t.ya&&(r.yaxis=t.ya),r}});var uV=G((Aqe,sV)=>{"use strict";sV.exports={attributes:B_(),layoutAttributes:H_(),supplyDefaults:Y_().supplyDefaults,crossTraceDefaults:Y_().crossTraceDefaults,supplyLayoutDefaults:HU(),calc:XU(),crossTraceCalc:JU(),plot:QU(),style:tV().style,hoverPoints:iV(),eventData:oV(),selectPoints:N2(),moduleType:"trace",name:"funnel",basePlotModule:ao(),categories:["bar-like","cartesian","svg","oriented","showLegend","zoomScale"],meta:{}}});var cV=G((kqe,fV)=>{"use strict";fV.exports=uV()});var vV={};pt(vV,{eventDataKeys:()=>W_e});var W_e,dV=Cr(()=>{"use strict";W_e=["initial","delta","final"]});var Z_=G((Lqe,yV)=>{"use strict";var xt=so(),X_=Ki().line,Z_e=qn(),hV=Xi().axisHoverFormat,{hovertemplateAttrs:J_e,texttemplateAttrs:$_e,templatefallbackAttrs:pV}=Vn(),mV=(dV(),Fe(vV)),Yf=At().extendFlat,K_e=kr();function W_(e){return{marker:{color:Yf({},xt.marker.color,{arrayOk:!1,editType:"style"}),line:{color:Yf({},xt.marker.line.color,{arrayOk:!1,editType:"style"}),width:Yf({},xt.marker.line.width,{arrayOk:!1,editType:"style"}),editType:"style"},editType:"style"},editType:"style"}}yV.exports={measure:{valType:"data_array",dflt:[],editType:"calc"},base:{valType:"number",dflt:null,arrayOk:!1,editType:"calc"},x:xt.x,x0:xt.x0,dx:xt.dx,y:xt.y,y0:xt.y0,dy:xt.dy,xperiod:xt.xperiod,yperiod:xt.yperiod,xperiod0:xt.xperiod0,yperiod0:xt.yperiod0,xperiodalignment:xt.xperiodalignment,yperiodalignment:xt.yperiodalignment,xhoverformat:hV("x"),yhoverformat:hV("y"),hovertext:xt.hovertext,hovertemplate:J_e({},{keys:mV.eventDataKeys}),hovertemplatefallback:pV(),hoverinfo:Yf({},Z_e.hoverinfo,{flags:["name","x","y","text","initial","delta","final"]}),textinfo:{valType:"flaglist",flags:["label","text","initial","delta","final"],extras:["none"],editType:"plot",arrayOk:!1},texttemplate:$_e({editType:"plot"},{keys:mV.eventDataKeys.concat(["label"])}),texttemplatefallback:pV({editType:"plot"}),text:xt.text,textposition:xt.textposition,insidetextanchor:xt.insidetextanchor,textangle:xt.textangle,textfont:xt.textfont,insidetextfont:xt.insidetextfont,outsidetextfont:xt.outsidetextfont,constraintext:xt.constraintext,cliponaxis:xt.cliponaxis,orientation:xt.orientation,offset:xt.offset,width:xt.width,increasing:W_("increasing"),decreasing:W_("decreasing"),totals:W_("intermediate sums and total"),connector:{line:{color:Yf({},X_.color,{dflt:K_e.defaultLine}),width:Yf({},X_.width,{editType:"plot"}),dash:X_.dash,editType:"plot"},mode:{valType:"enumerated",values:["spanning","between"],dflt:"between",editType:"plot"},visible:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},offsetgroup:xt.offsetgroup,alignmentgroup:xt.alignmentgroup,zorder:xt.zorder}});var J_=G((Cqe,gV)=>{"use strict";gV.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"}}});var Gf={};pt(Gf,{DECREASING:()=>Q_e,INCREASING:()=>j_e});var j_e,Q_e,Uf=Cr(()=>{"use strict";j_e={COLOR:"#3D9970",SYMBOL:"\u25B2"},Q_e={COLOR:"#FF4136",SYMBOL:"\u25BC"}});var K_=G((Sqe,wV)=>{"use strict";var xV=Se(),e7e=yf(),r7e=Rl().handleText,t7e=c2(),a7e=_u(),bV=Z_(),n7e=kr(),_V=(Uf(),Fe(Gf)),i7e=_V.INCREASING.COLOR,l7e=_V.DECREASING.COLOR,o7e="#4499FF";function $_(e,r,t){e(r+".marker.color",t),e(r+".marker.line.color",n7e.defaultLine),e(r+".marker.line.width")}function s7e(e,r,t,a){function n(u,f){return xV.coerce(e,r,bV,u,f)}var i=t7e(e,r,a,n);if(!i){r.visible=!1;return}a7e(e,r,a,n),n("xhoverformat"),n("yhoverformat"),n("measure"),n("orientation",r.x&&!r.y?"h":"v"),n("base"),n("offset"),n("width"),n("text"),n("hovertext"),n("hovertemplate"),n("hovertemplatefallback");var l=n("textposition");r7e(e,r,a,n,l,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),r.textposition!=="none"&&(n("texttemplate"),n("texttemplatefallback"),r.texttemplate||n("textinfo")),$_(n,"increasing",i7e),$_(n,"decreasing",l7e),$_(n,"totals",o7e);var o=n("connector.visible");if(o){n("connector.mode");var s=n("connector.line.width");s&&(n("connector.line.color"),n("connector.line.dash"))}n("zorder")}function u7e(e,r){var t,a;function n(l){return xV.coerce(a._input,a,bV,l)}if(r.waterfallmode==="group")for(var i=0;i{"use strict";var f7e=Se(),c7e=J_();TV.exports=function(e,r,t){var a=!1;function n(o,s){return f7e.coerce(e,r,c7e,o,s)}for(var i=0;i{"use strict";var AV=Qr(),kV=wu(),LV=Se().mergeArray,v7e=v2(),CV=(Rt(),Fe(Nt)).BADNUM;function j_(e){return e==="a"||e==="absolute"}function Q_(e){return e==="t"||e==="total"}SV.exports=function(r,t){var a=AV.getFromId(r,t.xaxis||"x"),n=AV.getFromId(r,t.yaxis||"y"),i,l,o,s,u,f;t.orientation==="h"?(i=a.makeCalcdata(t,"x"),o=n.makeCalcdata(t,"y"),s=kV(t,n,"y",o),u=!!t.yperiodalignment,f="y"):(i=n.makeCalcdata(t,"y"),o=a.makeCalcdata(t,"x"),s=kV(t,a,"x",o),u=!!t.xperiodalignment,f="x"),l=s.vals;for(var c=Math.min(l.length,i.length),v=new Array(c),h=0,p,m=!1,y=0;y{"use strict";var DV=bf().setGroupPositions;PV.exports=function(r,t){var a=r._fullLayout,n=r._fullData,i=r.calcdata,l=t.xaxis,o=t.yaxis,s=[],u=[],f=[],c,v;for(v=0;v{"use strict";var RV=Er(),iy=Se(),d7e=$r(),Vf=(Rt(),Fe(Nt)).BADNUM,h7e=If(),p7e=sl().clearMinTextSize;zV.exports=function(r,t,a,n){var i=r._fullLayout;p7e("waterfall",i),h7e.plot(r,t,a,n,{mode:i.waterfallmode,norm:i.waterfallmode,gap:i.waterfallgap,groupgap:i.waterfallgroupgap}),m7e(r,t,a,n)};function m7e(e,r,t,a){var n=r.xaxis,i=r.yaxis;iy.makeTraceGroups(a,t,"trace bars").each(function(l){var o=RV.select(this),s=l[0].trace,u=iy.ensureSingle(o,"g","lines");if(!s.connector||!s.connector.visible){u.remove();return}var f=s.orientation==="h",c=s.connector.mode,v=u.selectAll("g.line").data(iy.identity);v.enter().append("g").classed("line",!0),v.exit().remove();var h=v.size();v.each(function(p,m){if(!(m!==h-1&&!p.cNext)){var y=y7e(p,n,i,f),x=y[0],_=y[1],w="";x[0]!==Vf&&_[0]!==Vf&&x[1]!==Vf&&_[1]!==Vf&&(c==="spanning"&&!p.isSum&&m>0&&(f?w+="M"+x[0]+","+_[1]+"V"+_[0]:w+="M"+x[1]+","+_[0]+"H"+x[0]),c!=="between"&&(p.isSum||m{"use strict";var ly=Er(),NV=$r(),IV=kr(),g7e=(k0(),Fe(A0)).DESELECTDIM,x7e=is(),b7e=sl().resizeText,_7e=x7e.styleTextPoints;function w7e(e,r,t){var a=t||ly.select(e).selectAll('g[class^="waterfalllayer"]').selectAll("g.trace");b7e(e,a,"waterfall"),a.style("opacity",function(n){return n[0].trace.opacity}),a.each(function(n){var i=ly.select(this),l=n[0].trace;i.selectAll(".point > path").each(function(o){if(!o.isBlank){var s=l[o.dir].marker;ly.select(this).call(IV.fill,s.color).call(IV.stroke,s.line.color).call(NV.dashLine,s.line.dash,s.line.width).style("opacity",l.selectedpoints&&!o.selected?g7e:1)}}),_7e(i,l,e),i.selectAll(".lines").each(function(){var o=l.connector.line;NV.lineGroupStyle(ly.select(this).selectAll("path"),o.width,o.color,o.dash)})})}BV.exports={style:w7e}});var VV=G((zqe,UV)=>{"use strict";var T7e=Qr().hoverLabelText,OV=kr().opacity,M7e=F2().hoverOnBars,YV=(Uf(),Fe(Gf)),GV={increasing:YV.INCREASING.SYMBOL,decreasing:YV.DECREASING.SYMBOL};UV.exports=function(r,t,a,n,i){var l=M7e(r,t,a,n,i);if(!l)return;var o=l.cd,s=o[0].trace,u=s.orientation==="h",f=u?"x":"y",c=u?r.xa:r.ya;function v(A){return T7e(c,A,s[f+"hoverformat"])}var h=l.index,p=o[h],m=p.isSum?p.b+p.s:p.rawS;l.initial=p.b+p.s-m,l.delta=m,l.final=l.initial+l.delta;var y=v(Math.abs(l.delta));l.deltaLabel=m<0?"("+y+")":y,l.finalLabel=v(l.final),l.initialLabel=v(l.initial);var x=p.hi||s.hoverinfo,_=[];if(x&&x!=="none"&&x!=="skip"){var w=x==="all",b=x.split("+"),M=function(A){return w||b.indexOf(A)!==-1};p.isSum||(M("final")&&(u?!M("x"):!M("y"))&&_.push(l.finalLabel),M("delta")&&(m<0?_.push(l.deltaLabel+" "+GV.decreasing):_.push(l.deltaLabel+" "+GV.increasing)),M("initial")&&_.push("Initial: "+l.initialLabel))}return _.length&&(l.extraText=_.join("
")),l.color=A7e(s,p),[l]};function A7e(e,r){var t=e[r.dir].marker,a=t.color,n=t.line.color,i=t.line.width;if(OV(a))return a;if(OV(n)&&i)return n}});var WV=G((Fqe,XV)=>{"use strict";XV.exports=function(r,t){return r.x="xVal"in t?t.xVal:t.x,r.y="yVal"in t?t.yVal:t.y,"initial"in t&&(r.initial=t.initial),"delta"in t&&(r.delta=t.delta),"final"in t&&(r.final=t.final),t.xa&&(r.xaxis=t.xa),t.ya&&(r.yaxis=t.ya),r}});var JV=G((Nqe,ZV)=>{"use strict";ZV.exports={attributes:Z_(),layoutAttributes:J_(),supplyDefaults:K_().supplyDefaults,crossTraceDefaults:K_().crossTraceDefaults,supplyLayoutDefaults:MV(),calc:qV(),crossTraceCalc:EV(),plot:FV(),style:HV().style,hoverPoints:VV(),eventData:WV(),selectPoints:N2(),moduleType:"trace",name:"waterfall",basePlotModule:ao(),categories:["bar-like","cartesian","svg","oriented","showLegend","zoomScale"],meta:{}}});var KV=G((Iqe,$V)=>{"use strict";$V.exports=JV()});var uy=G((Bqe,QV)=>{"use strict";var oy=qn(),k7e=ts().attributes,L7e=Ta(),C7e=vi(),{hovertemplateAttrs:S7e,texttemplateAttrs:q7e,templatefallbackAttrs:jV}=Vn(),us=At().extendFlat,D7e=Yi().pattern,sy=L7e({editType:"plot",arrayOk:!0,colorEditType:"plot"});QV.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:C7e.defaultLine,arrayOk:!0,editType:"style"},width:{valType:"number",min:0,dflt:0,arrayOk:!0,editType:"style"},editType:"calc"},pattern:D7e,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:us({},oy.hoverinfo,{flags:["label","text","value","percent","name"]}),hovertemplate:S7e({},{keys:["label","color","value","percent","text"]}),hovertemplatefallback:jV(),texttemplate:q7e({editType:"plot"},{keys:["label","color","value","percent","text"]}),texttemplatefallback:jV({editType:"plot"}),textposition:{valType:"enumerated",values:["inside","outside","auto","none"],dflt:"auto",arrayOk:!0,editType:"plot"},textfont:us({},sy,{}),insidetextorientation:{valType:"enumerated",values:["horizontal","radial","tangential","auto"],dflt:"auto",editType:"plot"},insidetextfont:us({},sy,{}),outsidetextfont:us({},sy,{}),automargin:{valType:"boolean",dflt:!1,editType:"plot"},showlegend:us({},oy.showlegend,{arrayOk:!0}),legend:us({},oy.legend,{arrayOk:!0}),legendrank:us({},oy.legendrank,{arrayOk:!0}),title:{text:{valType:"string",dflt:"",editType:"plot"},font:us({},sy,{}),position:{valType:"enumerated",values:["top left","top center","top right","middle center","bottom left","bottom center","bottom right"],editType:"plot"},editType:"plot"},domain:k7e({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"}}});var fy=G((Hqe,tX)=>{"use strict";var P7e=Gr(),Y2=Se(),E7e=uy(),R7e=ts().defaults,z7e=Rl().handleText,F7e=Se().coercePattern;function eX(e,r){var t=Y2.isArrayOrTypedArray(e),a=Y2.isArrayOrTypedArray(r),n=Math.min(t?e.length:1/0,a?r.length:1/0);if(isFinite(n)||(n=0),n&&a){for(var i,l=0;l0){i=!0;break}}i||(n=0)}return{hasLabels:t,hasValues:a,len:n}}function rX(e,r,t,a,n){var i=a("marker.line.width");i&&a("marker.line.color",n?void 0:t.paper_bgcolor);var l=a("marker.colors");F7e(a,"marker.pattern",l),e.marker&&!r.marker.pattern.fgcolor&&(r.marker.pattern.fgcolor=e.marker.colors),r.marker.pattern.bgcolor||(r.marker.pattern.bgcolor=t.paper_bgcolor)}function N7e(e,r,t,a){function n(_,w){return Y2.coerce(e,r,E7e,_,w)}var i=n("labels"),l=n("values"),o=eX(i,l),s=o.len;if(r._hasLabels=o.hasLabels,r._hasValues=o.hasValues,!r._hasLabels&&r._hasValues&&(n("label0"),n("dlabel")),!s){r.visible=!1;return}r._length=s,rX(e,r,a,n,!0),n("scalegroup");var u=n("text"),f=n("texttemplate");n("texttemplatefallback");var c;if(f||(c=n("textinfo",Y2.isArrayOrTypedArray(u)?"text+percent":"percent")),n("hovertext"),n("hovertemplate"),n("hovertemplatefallback"),f||c&&c!=="none"){var v=n("textposition");z7e(e,r,a,n,v,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1});var h=Array.isArray(v)||v==="auto",p=h||v==="outside";p&&n("automargin"),(v==="inside"||v==="auto"||Array.isArray(v))&&n("insidetextorientation")}else c==="none"&&n("textposition","none");R7e(r,a,n);var m=n("hole"),y=n("title.text");if(y){var x=n("title.position",m?"middle center":"top center");!m&&x==="middle center"&&(r.title.position="top center"),Y2.coerceFont(n,"title.font",a.font)}n("sort"),n("direction"),n("rotation"),n("pull")}tX.exports={handleLabelsAndValues:eX,handleMarkerDefaults:rX,supplyDefaults:N7e}});var cy=G((Oqe,aX)=>{"use strict";aX.exports={hiddenlabels:{valType:"data_array",editType:"calc"},piecolorway:{valType:"colorlist",editType:"calc"},extendpiecolors:{valType:"boolean",dflt:!0,editType:"calc"}}});var iX=G((Yqe,nX)=>{"use strict";var I7e=Se(),B7e=cy();nX.exports=function(r,t){function a(n,i){return I7e.coerce(r,t,B7e,n,i)}a("hiddenlabels"),a("piecolorway",t.colorway),a("extendpiecolors")}});var vy=G((Gqe,sX)=>{"use strict";var H7e=Gr(),Xf=kr(),O7e={};function Y7e(e,r){var t=[],a=e._fullLayout,n=a.hiddenlabels||[],i=r.labels,l=r.marker.colors||[],o=r.values,s=r._length,u=r._hasValues&&s,f,c;if(r.dlabel)for(i=new Array(s),f=0;f=0});var b=r.type==="funnelarea"?m:r.sort;return b&&t.sort(function(M,A){return A.v-M.v}),t[0]&&(t[0].vTotal=p),t}function lX(e){return function(t,a){if(!t||!Xf.isValid(t))return!1;let n=Xf.rgbaString(t);return e[a]||(e[a]=n),n}}function G7e(e,r){var t=(r||{}).type;t||(t="pie");var a=e._fullLayout,n=e.calcdata,i=a[t+"colorway"],l=a["_"+t+"colormap"];a["extend"+t+"colors"]&&(i=oX(i,O7e));for(var o=0,s=0;s{"use strict";var U7e=Wi().appendArrayMultiPointValues;uX.exports=function(r,t){var a={curveNumber:t.index,pointNumbers:r.pts,data:t._input,fullData:t,label:r.label,color:r.color,value:r.v,percent:r.percent,text:r.text,bbox:r.bbox,v:r.v};return r.pts.length===1&&(a.pointNumber=a.i=r.pts[0]),U7e(a,t,r.pts),t.type==="funnelarea"&&(delete a.v,delete a.i),a}});var t7=G((Vqe,DX)=>{"use strict";var On=Er(),V7e=Jt(),dy=xi(),mX=kr(),fo=$r(),$a=Se(),X7e=$a.strScale,cX=$a.strTranslate,e7=ba(),yX=sl(),W7e=yX.recordMinTextSize,Z7e=yX.clearMinTextSize,gX=(p2(),Fe(h2)).TEXTPAD,Dr=Lv(),hy=fX(),vX=Se().isValidTextValue;function J7e(e,r){var t=e._context.staticPlot,a=e._fullLayout,n=a._size;Z7e("pie",a),_X(r,e),CX(r,n);var i=$a.makeTraceGroups(a._pielayer,r,"trace").each(function(l){var o=On.select(this),s=l[0],u=s.trace;n8e(l),o.attr("stroke-linejoin","round"),o.each(function(){var f=On.select(this).selectAll("g.slice").data(l);f.enter().append("g").classed("slice",!0),f.exit().remove();var c=[[[],[]],[[],[]]],v=!1;f.each(function(b,M){if(b.hidden){On.select(this).selectAll("path,g").remove();return}b.pointNumber=b.i,b.curveNumber=u.index,c[b.pxmid[1]<0?0:1][b.pxmid[0]<0?0:1].push(b);var A=s.cx,k=s.cy,S=On.select(this),D=S.selectAll("path.surface").data([b]);if(D.enter().append("path").classed("surface",!0).style({"pointer-events":t?"none":"all"}),S.call(xX,e,l),u.pull){var P=+Dr.castOption(u.pull,b.pts)||0;P>0&&(A+=P*b.pxmid[0],k+=P*b.pxmid[1])}b.cxFinal=A,b.cyFinal=k;function R(V,X,W,U){var $=U*(X[0]-V[0]),re=U*(X[1]-V[1]);return"a"+U*s.r+","+U*s.r+" 0 "+b.largeArc+(W?" 1 ":" 0 ")+$+","+re}var F=u.hole;if(b.v===s.vTotal){var B="M"+(A+b.px0[0])+","+(k+b.px0[1])+R(b.px0,b.pxmid,!0,1)+R(b.pxmid,b.px0,!0,1)+"Z";F?D.attr("d","M"+(A+F*b.px0[0])+","+(k+F*b.px0[1])+R(b.px0,b.pxmid,!1,F)+R(b.pxmid,b.px0,!1,F)+"Z"+B):D.attr("d",B)}else{var H=R(b.px0,b.px1,!0,1);if(F){var N=1-F;D.attr("d","M"+(A+F*b.px1[0])+","+(k+F*b.px1[1])+R(b.px1,b.px0,!1,F)+"l"+N*b.px0[0]+","+N*b.px0[1]+H+"Z")}else D.attr("d","M"+A+","+k+"l"+b.px0[0]+","+b.px0[1]+H+"Z")}SX(e,b,s);var Y=Dr.castOption(u.textposition,b.pts),O=S.selectAll("g.slicetext").data(b.text&&Y!=="none"?[0]:[]);O.enter().append("g").classed("slicetext",!0),O.exit().remove(),O.each(function(){var V=$a.ensureSingle(On.select(this),"text","",function(K){K.attr("data-notex",1)}),X=$a.ensureUniformFontSize(e,Y==="outside"?K7e(u,b,a.font):bX(u,b,a.font));V.text(b.text).attr({class:"slicetext",transform:"","text-anchor":"middle"}).call(fo.font,X).call(e7.convertToTspans,e);var W=fo.bBox(V.node()),U;if(Y==="outside")U=pX(W,b);else if(U=wX(W,b,s),Y==="auto"&&U.scale<1){var $=$a.ensureUniformFontSize(e,u.outsidetextfont);V.call(fo.font,$),W=fo.bBox(V.node()),U=pX(W,b)}var re=U.textPosAngle,se=re===void 0?b.pxmid:py(s.r,re);if(U.targetX=A+se[0]*U.rCenter+(U.x||0),U.targetY=k+se[1]*U.rCenter+(U.y||0),qX(U,W),U.outside){var oe=U.targetY;b.yLabelMin=oe-W.height/2,b.yLabelMid=oe,b.yLabelMax=oe+W.height/2,b.labelExtraX=0,b.labelExtraY=0,v=!0}U.fontSize=X.size,W7e(u.type,U,a),l[M].transform=U,$a.setTransormAndDisplay(V,U)})});var h=On.select(this).selectAll("g.titletext").data(u.title.text?[0]:[]);if(h.enter().append("g").classed("titletext",!0),h.exit().remove(),h.each(function(){var b=$a.ensureSingle(On.select(this),"text","",function(k){k.attr("data-notex",1)}),M=u.title.text;u._meta&&(M=$a.templateString(M,u._meta)),b.text(M).attr({class:"titletext",transform:"","text-anchor":"middle"}).call(fo.font,u.title.font).call(e7.convertToTspans,e);var A;u.title.position==="middle center"?A=e8e(s):A=kX(s,n),b.attr("transform",cX(A.x,A.y)+X7e(Math.min(1,A.scale))+cX(A.tx,A.ty))}),v&&t8e(c,u),$7e(f,u),v&&u.automargin){var p=fo.bBox(o.node()),m=u.domain,y=n.w*(m.x[1]-m.x[0]),x=n.h*(m.y[1]-m.y[0]),_=(.5*y-s.r)/n.w,w=(.5*x-s.r)/n.h;V7e.autoMargin(e,"pie."+u.uid+".automargin",{xl:m.x[0]-_,xr:m.x[1]+_,yb:m.y[0]-w,yt:m.y[1]+w,l:Math.max(s.cx-s.r-p.left,0),r:Math.max(p.right-(s.cx+s.r),0),b:Math.max(p.bottom-(s.cy+s.r),0),t:Math.max(s.cy-s.r-p.top,0),pad:5})}})});setTimeout(function(){i.selectAll("tspan").each(function(){var l=On.select(this);l.attr("dy")&&l.attr("dy",l.attr("dy"))})},0)}function $7e(e,r){e.each(function(t){var a=On.select(this);if(!t.labelExtraX&&!t.labelExtraY){a.select("path.textline").remove();return}var n=a.select("g.slicetext text");t.transform.targetX+=t.labelExtraX,t.transform.targetY+=t.labelExtraY,$a.setTransormAndDisplay(n,t.transform);var i=t.cxFinal+t.pxmid[0],l=t.cyFinal+t.pxmid[1],o="M"+i+","+l,s=(t.yLabelMax-t.yLabelMin)*(t.pxmid[0]<0?-1:1)/4;if(t.labelExtraX){var u=t.labelExtraX*t.pxmid[1]/t.pxmid[0],f=t.yLabelMid+t.labelExtraY-(t.cyFinal+t.pxmid[1]);Math.abs(u)>Math.abs(f)?o+="l"+f*t.pxmid[0]/t.pxmid[1]+","+f+"H"+(i+t.labelExtraX+s):o+="l"+t.labelExtraX+","+u+"v"+(f-u)+"h"+s}else o+="V"+(t.yLabelMid+t.labelExtraY)+"h"+s;$a.ensureSingle(a,"path","textline").call(mX.stroke,r.outsidetextfont.color).attr({"stroke-width":Math.min(2,r.outsidetextfont.size/8),d:o,fill:"none"})})}function xX(e,r,t){var a=t[0],n=a.cx,i=a.cy,l=a.trace,o=l.type==="funnelarea";"_hasHoverLabel"in l||(l._hasHoverLabel=!1),"_hasHoverEvent"in l||(l._hasHoverEvent=!1),e.on("mouseover",function(s){var u=r._fullLayout,f=r._fullData[l.index];if(!(r._dragging||u.hovermode===!1)){var c=f.hoverinfo;if(Array.isArray(c)&&(c=dy.castHoverinfo({hoverinfo:[Dr.castOption(c,s.pts)],_module:l._module},u,0)),c==="all"&&(c="label+text+value+percent+name"),f.hovertemplate||c!=="none"&&c!=="skip"&&c){var v=s.rInscribed||0,h=n+s.pxmid[0]*(1-v),p=i+s.pxmid[1]*(1-v),m=u.separators,y=[];if(c&&c.indexOf("label")!==-1&&y.push(s.label),s.text=Dr.castOption(f.hovertext||f.text,s.pts),c&&c.indexOf("text")!==-1){var x=s.text;$a.isValidTextValue(x)&&y.push(x)}s.value=s.v,s.valueLabel=Dr.formatPieValue(s.v,m),c&&c.indexOf("value")!==-1&&y.push(s.valueLabel),s.percent=s.v/a.vTotal,s.percentLabel=Dr.formatPiePercent(s.percent,m),c&&c.indexOf("percent")!==-1&&y.push(s.percentLabel);var _=f.hoverlabel,w=_.font,b=[];dy.loneHover({trace:l,x0:h-v*a.r,x1:h+v*a.r,y:p,_x0:o?n+s.TL[0]:h-v*a.r,_x1:o?n+s.TR[0]:h+v*a.r,_y0:o?i+s.TL[1]:p-v*a.r,_y1:o?i+s.BL[1]:p+v*a.r,text:y.join("
"),name:f.hovertemplate||c.indexOf("name")!==-1?f.name:void 0,idealAlign:s.pxmid[0]<0?"left":"right",color:Dr.castOption(_.bgcolor,s.pts)||s.color,borderColor:Dr.castOption(_.bordercolor,s.pts),fontFamily:Dr.castOption(w.family,s.pts),fontSize:Dr.castOption(w.size,s.pts),fontColor:Dr.castOption(w.color,s.pts),nameLength:Dr.castOption(_.namelength,s.pts),textAlign:Dr.castOption(_.align,s.pts),hovertemplate:Dr.castOption(f.hovertemplate,s.pts),hovertemplateLabels:s,eventData:[hy(s,f)]},{container:u._hoverlayer.node(),outerContainer:u._paper.node(),gd:r,inOut_bbox:b}),s.bbox=b[0],l._hasHoverLabel=!0}l._hasHoverEvent=!0,r.emit("plotly_hover",{points:[hy(s,f)],event:On.event})}}),e.on("mouseout",function(s){var u=r._fullLayout,f=r._fullData[l.index],c=On.select(this).datum();l._hasHoverEvent&&(s.originalEvent=On.event,r.emit("plotly_unhover",{points:[hy(c,f)],event:On.event}),l._hasHoverEvent=!1),l._hasHoverLabel&&(dy.loneUnhover(u._hoverlayer.node()),l._hasHoverLabel=!1)}),e.on("click",function(s){var u=r._fullLayout,f=r._fullData[l.index];r._dragging||u.hovermode===!1||(r._hoverdata=[hy(s,f)],dy.click(r,On.event))})}function K7e(e,r,t){var a=Dr.castOption(e.outsidetextfont.color,r.pts)||Dr.castOption(e.textfont.color,r.pts)||t.color,n=Dr.castOption(e.outsidetextfont.family,r.pts)||Dr.castOption(e.textfont.family,r.pts)||t.family,i=Dr.castOption(e.outsidetextfont.size,r.pts)||Dr.castOption(e.textfont.size,r.pts)||t.size,l=Dr.castOption(e.outsidetextfont.weight,r.pts)||Dr.castOption(e.textfont.weight,r.pts)||t.weight,o=Dr.castOption(e.outsidetextfont.style,r.pts)||Dr.castOption(e.textfont.style,r.pts)||t.style,s=Dr.castOption(e.outsidetextfont.variant,r.pts)||Dr.castOption(e.textfont.variant,r.pts)||t.variant,u=Dr.castOption(e.outsidetextfont.textcase,r.pts)||Dr.castOption(e.textfont.textcase,r.pts)||t.textcase,f=Dr.castOption(e.outsidetextfont.lineposition,r.pts)||Dr.castOption(e.textfont.lineposition,r.pts)||t.lineposition,c=Dr.castOption(e.outsidetextfont.shadow,r.pts)||Dr.castOption(e.textfont.shadow,r.pts)||t.shadow;return{color:a,family:n,size:i,weight:l,style:o,variant:s,textcase:u,lineposition:f,shadow:c}}function bX(e,r,t){var a=Dr.castOption(e.insidetextfont.color,r.pts);!a&&e._input.textfont&&(a=Dr.castOption(e._input.textfont.color,r.pts));var n=Dr.castOption(e.insidetextfont.family,r.pts)||Dr.castOption(e.textfont.family,r.pts)||t.family,i=Dr.castOption(e.insidetextfont.size,r.pts)||Dr.castOption(e.textfont.size,r.pts)||t.size,l=Dr.castOption(e.insidetextfont.weight,r.pts)||Dr.castOption(e.textfont.weight,r.pts)||t.weight,o=Dr.castOption(e.insidetextfont.style,r.pts)||Dr.castOption(e.textfont.style,r.pts)||t.style,s=Dr.castOption(e.insidetextfont.variant,r.pts)||Dr.castOption(e.textfont.variant,r.pts)||t.variant,u=Dr.castOption(e.insidetextfont.textcase,r.pts)||Dr.castOption(e.textfont.textcase,r.pts)||t.textcase,f=Dr.castOption(e.insidetextfont.lineposition,r.pts)||Dr.castOption(e.textfont.lineposition,r.pts)||t.lineposition,c=Dr.castOption(e.insidetextfont.shadow,r.pts)||Dr.castOption(e.textfont.shadow,r.pts)||t.shadow;return{color:a||mX.contrast(r.color),family:n,size:i,weight:l,style:o,variant:s,textcase:u,lineposition:f,shadow:c}}function _X(e,r){for(var t,a,n=0;n=-4;_-=2)x(Math.PI*_,"tan");for(_=4;_>=-4;_-=2)x(Math.PI*(_+1),"tan")}if(c||h){for(_=4;_>=-4;_-=2)x(Math.PI*(_+1.5),"rad");for(_=4;_>=-4;_-=2)x(Math.PI*(_+.5),"rad")}}if(o||p||c){var w=Math.sqrt(e.width*e.width+e.height*e.height);if(y={scale:n*a*2/w,rCenter:1-n,rotate:0},y.textPosAngle=(r.startangle+r.stopangle)/2,y.scale>=1)return y;m.push(y)}(p||h)&&(y=dX(e,a,l,s,u),y.textPosAngle=(r.startangle+r.stopangle)/2,m.push(y)),(p||v)&&(y=hX(e,a,l,s,u),y.textPosAngle=(r.startangle+r.stopangle)/2,m.push(y));for(var b=0,M=0,A=0;A=1)break}return m[b]}function j7e(e,r){var t=e.startangle,a=e.stopangle;return t>r&&r>a||t0?1:-1)/2,y:i/(1+t*t/(a*a)),outside:!0}}function e8e(e){var r=Math.sqrt(e.titleBox.width*e.titleBox.width+e.titleBox.height*e.titleBox.height);return{x:e.cx,y:e.cy,scale:e.trace.hole*e.r*2/r,tx:0,ty:-e.titleBox.height/2+e.trace.title.font.size}}function kX(e,r){var t=1,a=1,n,i=e.trace,l={x:e.cx,y:e.cy},o={tx:0,ty:0};o.ty+=i.title.font.size,n=LX(i),i.title.position.indexOf("top")!==-1?(l.y-=(1+n)*e.r,o.ty-=e.titleBox.height):i.title.position.indexOf("bottom")!==-1&&(l.y+=(1+n)*e.r);var s=r8e(e.r,e.trace.aspectratio),u=r.w*(i.domain.x[1]-i.domain.x[0])/2;return i.title.position.indexOf("left")!==-1?(u=u+s,l.x-=(1+n)*s,o.tx+=e.titleBox.width/2):i.title.position.indexOf("center")!==-1?u*=2:i.title.position.indexOf("right")!==-1&&(u=u+s,l.x+=(1+n)*s,o.tx-=e.titleBox.width/2),t=u/e.titleBox.width,a=r7(e,r)/e.titleBox.height,{x:l.x,y:l.y,scale:Math.min(t,a),tx:o.tx,ty:o.ty}}function r8e(e,r){return e/(r===void 0?1:r)}function r7(e,r){var t=e.trace,a=r.h*(t.domain.y[1]-t.domain.y[0]);return Math.min(e.titleBox.height,a/2)}function LX(e){var r=e.pull;if(!r)return 0;var t;if($a.isArrayOrTypedArray(r))for(r=0,t=0;tr&&(r=e.pull[t]);return r}function t8e(e,r){var t,a,n,i,l,o,s,u,f,c,v,h,p;function m(w,b){return w.pxmid[1]-b.pxmid[1]}function y(w,b){return b.pxmid[1]-w.pxmid[1]}function x(w,b){b||(b={});var M=b.labelExtraY+(a?b.yLabelMax:b.yLabelMin),A=a?w.yLabelMin:w.yLabelMax,k=a?w.yLabelMax:w.yLabelMin,S=w.cyFinal+l(w.px0[1],w.px1[1]),D=M-A,P,R,F,B,H,N;if(D*s>0&&(w.labelExtraY=D),!!$a.isArrayOrTypedArray(r.pull))for(R=0;R=(Dr.castOption(r.pull,F.pts)||0))&&((w.pxmid[1]-F.pxmid[1])*s>0?(B=F.cyFinal+l(F.px0[1],F.px1[1]),D=B-A-w.labelExtraY,D*s>0&&(w.labelExtraY+=D)):(k+w.labelExtraY-S)*s>0&&(P=3*o*Math.abs(R-c.indexOf(w)),H=F.cxFinal+i(F.px0[0],F.px1[0]),N=H+P-(w.cxFinal+w.pxmid[0])-w.labelExtraX,N*o>0&&(w.labelExtraX+=N)))}for(a=0;a<2;a++)for(n=a?m:y,l=a?Math.max:Math.min,s=a?1:-1,t=0;t<2;t++){for(i=t?Math.max:Math.min,o=t?1:-1,u=e[a][t],u.sort(n),f=e[1-a][t],c=f.concat(u),h=[],v=0;v1?(u=t.r,f=u/n.aspectratio):(f=t.r,u=f*n.aspectratio),u*=(1+n.baseratio)/2,s=u*f}l=Math.min(l,s/t.vTotal)}for(a=0;ar.vTotal/2?1:0,u.halfangle=Math.PI*Math.min(u.v/r.vTotal,.5),u.ring=1-a.hole,u.rInscribed=Q7e(u,r))}function py(e,r){return[e*Math.sin(r),-e*Math.cos(r)]}function SX(e,r,t){var a=e._fullLayout,n=t.trace,i=n.texttemplate,l=n.textinfo;if(!i&&l&&l!=="none"){var o=l.split("+"),s=function(b){return o.indexOf(b)!==-1},u=s("label"),f=s("text"),c=s("value"),v=s("percent"),h=a.separators,p;if(p=u?[r.label]:[],f){var m=Dr.getFirstFilled(n.text,r.pts);vX(m)&&p.push(m)}c&&p.push(Dr.formatPieValue(r.v,h)),v&&p.push(Dr.formatPiePercent(r.v/t.vTotal,h)),r.text=p.join("
")}function y(b){return{label:b.label,value:b.v,valueLabel:Dr.formatPieValue(b.v,a.separators),percent:b.v/t.vTotal,percentLabel:Dr.formatPiePercent(b.v/t.vTotal,a.separators),color:b.color,text:b.text,customdata:$a.castOption(n,b.i,"customdata")}}if(i){var x=$a.castOption(n,r.i,"texttemplate");if(!x)r.text="";else{var _=y(r),w=Dr.getFirstFilled(n.text,r.pts);(vX(w)||w==="")&&(_.text=w),r.text=$a.texttemplateString({data:[_,n._meta],fallback:n.texttemplatefallback,labels:_,locale:e._fullLayout._d3locale,template:x})}}}function qX(e,r){var t=e.rotate*Math.PI/180,a=Math.cos(t),n=Math.sin(t),i=(r.left+r.right)/2,l=(r.top+r.bottom)/2;e.textX=i*a-l*n,e.textY=i*n+l*a,e.noCenter=!0}DX.exports={plot:J7e,formatSliceLabel:SX,transformInsideText:wX,determineInsideTextFont:bX,positionTitleOutside:kX,prerenderTitles:_X,layoutAreas:CX,attachFxHandlers:xX,computeTransform:qX}});var RX=G((Xqe,EX)=>{"use strict";var PX=Er(),i8e=ef(),l8e=sl().resizeText;EX.exports=function(r){var t=r._fullLayout._pielayer.selectAll(".trace");l8e(r,t,"pie"),t.each(function(a){var n=a[0],i=n.trace,l=PX.select(this);l.style({opacity:i.opacity}),l.selectAll("path.surface").each(function(o){PX.select(this).call(i8e,o,i,r)})})}});var FX=G(Wf=>{"use strict";var zX=Jt();Wf.name="pie";Wf.plot=function(e,r,t,a){zX.plotBasePlot(Wf.name,e,r,t,a)};Wf.clean=function(e,r,t,a){zX.cleanBasePlot(Wf.name,e,r,t,a)}});var IX=G((Zqe,NX)=>{"use strict";NX.exports={attributes:uy(),supplyDefaults:fy().supplyDefaults,supplyLayoutDefaults:iX(),layoutAttributes:cy(),calc:vy().calc,crossTraceCalc:vy().crossTraceCalc,plot:t7().plot,style:RX(),styleOne:ef(),moduleType:"trace",name:"pie",basePlotModule:FX(),categories:["pie-like","pie","showLegend"],meta:{}}});var HX=G((Jqe,BX)=>{"use strict";BX.exports=IX()});var YX=G(Zf=>{"use strict";var OX=Jt();Zf.name="funnelarea";Zf.plot=function(e,r,t,a){OX.plotBasePlot(Zf.name,e,r,t,a)};Zf.clean=function(e,r,t,a){OX.cleanBasePlot(Zf.name,e,r,t,a)}});var a7=G((Kqe,UX)=>{"use strict";var Ka=uy(),o8e=qn(),s8e=ts().attributes,{hovertemplateAttrs:u8e,texttemplateAttrs:f8e,templatefallbackAttrs:GX}=Vn(),zu=At().extendFlat;UX.exports={labels:Ka.labels,label0:Ka.label0,dlabel:Ka.dlabel,values:Ka.values,marker:{colors:Ka.marker.colors,line:{color:zu({},Ka.marker.line.color,{dflt:null}),width:zu({},Ka.marker.line.width,{dflt:1}),editType:"calc"},pattern:Ka.marker.pattern,editType:"calc"},text:Ka.text,hovertext:Ka.hovertext,scalegroup:zu({},Ka.scalegroup,{}),textinfo:zu({},Ka.textinfo,{flags:["label","text","value","percent"]}),texttemplate:f8e({editType:"plot"},{keys:["label","color","value","text","percent"]}),texttemplatefallback:GX({editType:"plot"}),hoverinfo:zu({},o8e.hoverinfo,{flags:["label","text","value","percent","name"]}),hovertemplate:u8e({},{keys:["label","color","value","text","percent"]}),hovertemplatefallback:GX(),textposition:zu({},Ka.textposition,{values:["inside","none"],dflt:"inside"}),textfont:Ka.textfont,insidetextfont:Ka.insidetextfont,title:{text:Ka.title.text,font:Ka.title.font,position:zu({},Ka.title.position,{values:["top left","top center","top right"],dflt:"top center"}),editType:"plot"},domain:s8e({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"}}});var n7=G((jqe,VX)=>{"use strict";var c8e=cy().hiddenlabels;VX.exports={hiddenlabels:c8e,funnelareacolorway:{valType:"colorlist",editType:"calc"},extendfunnelareacolors:{valType:"boolean",dflt:!0,editType:"calc"}}});var ZX=G((Qqe,WX)=>{"use strict";var XX=Se(),v8e=a7(),d8e=ts().defaults,h8e=Rl().handleText,p8e=fy().handleLabelsAndValues,m8e=fy().handleMarkerDefaults;WX.exports=function(r,t,a,n){function i(m,y){return XX.coerce(r,t,v8e,m,y)}var l=i("labels"),o=i("values"),s=p8e(l,o),u=s.len;if(t._hasLabels=s.hasLabels,t._hasValues=s.hasValues,!t._hasLabels&&t._hasValues&&(i("label0"),i("dlabel")),!u){t.visible=!1;return}t._length=u,m8e(r,t,n,i),i("scalegroup");var f=i("text"),c=i("texttemplate");i("texttemplatefallback");var v;if(c||(v=i("textinfo",Array.isArray(f)?"text+percent":"percent")),i("hovertext"),i("hovertemplate"),i("hovertemplatefallback"),c||v&&v!=="none"){var h=i("textposition");h8e(r,t,n,i,h,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1})}else v==="none"&&i("textposition","none");d8e(t,n,i);var p=i("title.text");p&&(i("title.position"),XX.coerceFont(i,"title.font",n.font)),i("aspectratio"),i("baseratio")}});var $X=G((eDe,JX)=>{"use strict";var y8e=Se(),g8e=n7();JX.exports=function(r,t){function a(n,i){return y8e.coerce(r,t,g8e,n,i)}a("hiddenlabels"),a("funnelareacolorway",t.colorway),a("extendfunnelareacolors")}});var i7=G((rDe,jX)=>{"use strict";var KX=vy();function x8e(e,r){return KX.calc(e,r)}function b8e(e){KX.crossTraceCalc(e,{type:"funnelarea"})}jX.exports={calc:x8e,crossTraceCalc:b8e}});var aW=G((tDe,tW)=>{"use strict";var Fu=Er(),l7=$r(),fs=Se(),_8e=fs.strScale,QX=fs.strTranslate,eW=ba(),w8e=If(),T8e=w8e.toMoveInsideBar,rW=sl(),M8e=rW.recordMinTextSize,A8e=rW.clearMinTextSize,k8e=Lv(),Jf=t7(),L8e=Jf.attachFxHandlers,C8e=Jf.determineInsideTextFont,S8e=Jf.layoutAreas,q8e=Jf.prerenderTitles,D8e=Jf.positionTitleOutside,P8e=Jf.formatSliceLabel;tW.exports=function(r,t){var a=r._context.staticPlot,n=r._fullLayout;A8e("funnelarea",n),q8e(t,r),S8e(t,n._size),fs.makeTraceGroups(n._funnelarealayer,t,"trace").each(function(i){var l=Fu.select(this),o=i[0],s=o.trace;R8e(i),l.each(function(){var u=Fu.select(this).selectAll("g.slice").data(i);u.enter().append("g").classed("slice",!0),u.exit().remove(),u.each(function(c,v){if(c.hidden){Fu.select(this).selectAll("path,g").remove();return}c.pointNumber=c.i,c.curveNumber=s.index;var h=o.cx,p=o.cy,m=Fu.select(this),y=m.selectAll("path.surface").data([c]);y.enter().append("path").classed("surface",!0).style({"pointer-events":a?"none":"all"}),m.call(L8e,r,i);var x="M"+(h+c.TR[0])+","+(p+c.TR[1])+o7(c.TR,c.BR)+o7(c.BR,c.BL)+o7(c.BL,c.TL)+"Z";y.attr("d",x),P8e(r,c,o);var _=k8e.castOption(s.textposition,c.pts),w=m.selectAll("g.slicetext").data(c.text&&_!=="none"?[0]:[]);w.enter().append("g").classed("slicetext",!0),w.exit().remove(),w.each(function(){var b=fs.ensureSingle(Fu.select(this),"text","",function(F){F.attr("data-notex",1)}),M=fs.ensureUniformFontSize(r,C8e(s,c,n.font));b.text(c.text).attr({class:"slicetext",transform:"","text-anchor":"middle"}).call(l7.font,M).call(eW.convertToTspans,r);var A=l7.bBox(b.node()),k,S,D,P=Math.min(c.BL[1],c.BR[1])+p,R=Math.max(c.TL[1],c.TR[1])+p;S=Math.max(c.TL[0],c.BL[0])+h,D=Math.min(c.TR[0],c.BR[0])+h,k=T8e(S,D,P,R,A,{isHorizontal:!0,constrained:!0,angle:0,anchor:"middle"}),k.fontSize=M.size,M8e(s.type,k,n),i[v].transform=k,fs.setTransormAndDisplay(b,k)})});var f=Fu.select(this).selectAll("g.titletext").data(s.title.text?[0]:[]);f.enter().append("g").classed("titletext",!0),f.exit().remove(),f.each(function(){var c=fs.ensureSingle(Fu.select(this),"text","",function(p){p.attr("data-notex",1)}),v=s.title.text;s._meta&&(v=fs.templateString(v,s._meta)),c.text(v).attr({class:"titletext",transform:"","text-anchor":"middle"}).call(l7.font,s.title.font).call(eW.convertToTspans,r);var h=D8e(o,n._size);c.attr("transform",QX(h.x,h.y)+_8e(Math.min(1,h.scale))+QX(h.tx,h.ty))})})})};function o7(e,r){var t=r[0]-e[0],a=r[1]-e[1];return"l"+t+","+a}function E8e(e,r){return[.5*(e[0]+r[0]),.5*(e[1]+r[1])]}function R8e(e){if(!e.length)return;var r=e[0],t=r.trace,a=t.aspectratio,n=t.baseratio;n>.999&&(n=.999);var i=Math.pow(n,2),l=r.vTotal,o=l*i/(1-i),s=l,u=o/l;function f(){var B=Math.sqrt(u);return{x:B,y:-B}}function c(){var B=f();return[B.x,B.y]}var v,h=[];h.push(c());var p,m;for(p=e.length-1;p>-1;p--)if(m=e[p],!m.hidden){var y=m.v/s;u+=y,h.push(c())}var x=1/0,_=-1/0;for(p=0;p-1;p--)if(m=e[p],!m.hidden){P+=1;var R=h[P][0],F=h[P][1];m.TL=[-R,F],m.TR=[R,F],m.BL=S,m.BR=D,m.pxmid=E8e(m.TR,m.BR),S=m.TL,D=m.TR}}});var lW=G((aDe,iW)=>{"use strict";var nW=Er(),z8e=ef(),F8e=sl().resizeText;iW.exports=function(r){var t=r._fullLayout._funnelarealayer.selectAll(".trace");F8e(r,t,"funnelarea"),t.each(function(a){var n=a[0],i=n.trace,l=nW.select(this);l.style({opacity:i.opacity}),l.selectAll("path.surface").each(function(o){nW.select(this).call(z8e,o,i,r)})})}});var sW=G((nDe,oW)=>{"use strict";oW.exports={moduleType:"trace",name:"funnelarea",basePlotModule:YX(),categories:["pie-like","funnelarea","showLegend"],attributes:a7(),layoutAttributes:n7(),supplyDefaults:ZX(),supplyLayoutDefaults:$X(),calc:i7().calc,crossTraceCalc:i7().crossTraceCalc,plot:aW(),style:lW(),styleOne:ef(),meta:{}}});var fW=G((iDe,uW)=>{"use strict";uW.exports=sW()});var vW=G($f=>{"use strict";var cW=Jt();$f.name="indicator";$f.plot=function(e,r,t,a){cW.plotBasePlot($f.name,e,r,t,a)};$f.clean=function(e,r,t,a){cW.cleanBasePlot($f.name,e,r,t,a)}});var u7=G((oDe,gW)=>{"use strict";var cs=At().extendFlat,hW=At().extendDeep,N8e=Oi().overrideAll,pW=Ta(),mW=vi(),I8e=ts().attributes,Xt=Zn(),B8e=yt().templatedArray,my=(Uf(),Fe(Gf)),dW=Xi().descriptionOnlyNumbers,s7=pW({editType:"plot",colorEditType:"plot"}),G2={color:{valType:"color",editType:"plot"},line:{color:{valType:"color",dflt:mW.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"},yW={valType:"info_array",items:[{valType:"number",editType:"plot"},{valType:"number",editType:"plot"}],editType:"plot"},H8e=B8e("step",hW({},G2,{range:yW}));gW.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:I8e({name:"indicator",trace:!0,editType:"calc"}),title:{text:{valType:"string",editType:"plot"},align:{valType:"enumerated",values:["left","center","right"],editType:"plot"},font:cs({},s7,{}),editType:"plot"},number:{valueformat:{valType:"string",dflt:"",editType:"plot",description:dW("value")},font:cs({},s7,{}),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:dW("value")},increasing:{symbol:{valType:"string",dflt:my.INCREASING.SYMBOL,editType:"plot"},color:{valType:"color",dflt:my.INCREASING.COLOR,editType:"plot"},editType:"plot"},decreasing:{symbol:{valType:"string",dflt:my.DECREASING.SYMBOL,editType:"plot"},color:{valType:"color",dflt:my.DECREASING.COLOR,editType:"plot"},editType:"plot"},font:cs({},s7,{}),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:hW({},G2,{color:{dflt:"green"}}),bgcolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:mW.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:1,editType:"plot"},axis:N8e({range:yW,visible:cs({},Xt.visible,{dflt:!0}),tickmode:Xt.minor.tickmode,nticks:Xt.nticks,tick0:Xt.tick0,dtick:Xt.dtick,tickvals:Xt.tickvals,ticktext:Xt.ticktext,ticks:cs({},Xt.ticks,{dflt:"outside"}),ticklen:Xt.ticklen,tickwidth:Xt.tickwidth,tickcolor:Xt.tickcolor,ticklabelstep:Xt.ticklabelstep,showticklabels:Xt.showticklabels,labelalias:Xt.labelalias,tickfont:pW({}),tickangle:Xt.tickangle,tickformat:Xt.tickformat,tickformatstops:Xt.tickformatstops,tickprefix:Xt.tickprefix,showtickprefix:Xt.showtickprefix,ticksuffix:Xt.ticksuffix,showticksuffix:Xt.showticksuffix,separatethousands:Xt.separatethousands,exponentformat:Xt.exponentformat,minexponent:Xt.minexponent,showexponent:Xt.showexponent,editType:"plot"},"plot"),steps:H8e,threshold:{line:{color:cs({},G2.line.color,{}),width:cs({},G2.line.width,{dflt:1}),editType:"plot"},thickness:cs({},G2.thickness,{dflt:.85}),value:{valType:"number",editType:"calc",dflt:!1},editType:"plot"},editType:"plot"}}});var f7={};pt(f7,{bulletNumberDomainSize:()=>Y8e,bulletPadding:()=>G8e,defaultNumberFontSize:()=>O8e,horizontalPadding:()=>W8e,innerRadius:()=>U8e,titlePadding:()=>X8e,valueThickness:()=>V8e});var O8e,Y8e,G8e,U8e,V8e,X8e,W8e,c7=Cr(()=>{"use strict";O8e=80,Y8e=.25,G8e=.025,U8e=.75,V8e=.5,X8e=5,W8e=10});var _W=G((sDe,bW)=>{"use strict";var zl=Se(),gy=u7(),Z8e=ts().defaults,xW=yt(),J8e=mi(),yy=(c7(),Fe(f7)),$8e=$h(),K8e=Kh(),j8e=Qh(),Q8e=e1();function e9e(e,r,t,a){function n(A,k){return zl.coerce(e,r,gy,A,k)}Z8e(r,a,n),n("mode"),r._hasNumber=r.mode.indexOf("number")!==-1,r._hasDelta=r.mode.indexOf("delta")!==-1,r._hasGauge=r.mode.indexOf("gauge")!==-1;var i=n("value");r._range=[0,typeof i=="number"?1.5*i:1];var l=new Array(2),o;if(r._hasNumber){n("number.valueformat");var s=zl.extendFlat({},a.font);s.size=void 0,zl.coerceFont(n,"number.font",s),r.number.font.size===void 0&&(r.number.font.size=yy.defaultNumberFontSize,l[0]=!0),n("number.prefix"),n("number.suffix"),o=r.number.font.size}var u;if(r._hasDelta){var f=zl.extendFlat({},a.font);f.size=void 0,zl.coerceFont(n,"delta.font",f),r.delta.font.size===void 0&&(r.delta.font.size=(r._hasNumber?.5:1)*(o||yy.defaultNumberFontSize),l[1]=!0),n("delta.reference",r.value),n("delta.relative"),n("delta.valueformat",r.delta.relative?"2%":""),n("delta.increasing.symbol"),n("delta.increasing.color"),n("delta.decreasing.symbol"),n("delta.decreasing.color"),n("delta.position"),n("delta.prefix"),n("delta.suffix"),u=r.delta.font.size}r._scaleNumbers=(!r._hasNumber||l[0])&&(!r._hasDelta||l[1])||!1;var c=zl.extendFlat({},a.font);c.size=.25*(o||u||yy.defaultNumberFontSize),zl.coerceFont(n,"title.font",c),n("title.text");var v,h,p,m;function y(A,k){return zl.coerce(v,h,gy.gauge,A,k)}function x(A,k){return zl.coerce(p,m,gy.gauge.axis,A,k)}if(r._hasGauge){v=e.gauge,v||(v={}),h=xW.newContainer(r,"gauge"),y("shape");var _=r._isBullet=r.gauge.shape==="bullet";_||n("title.align","center");var w=r._isAngular=r.gauge.shape==="angular";w||n("align","center"),y("bgcolor",a.paper_bgcolor),y("borderwidth"),y("bordercolor"),y("bar.color"),y("bar.line.color"),y("bar.line.width");var b=yy.valueThickness*(r.gauge.shape==="bullet"?.5:1);y("bar.thickness",b),J8e(v,h,{name:"steps",handleItemDefaults:r9e}),y("threshold.value"),y("threshold.thickness"),y("threshold.line.width"),y("threshold.line.color"),p={},v&&(p=v.axis||{}),m=xW.newContainer(h,"axis"),x("visible"),r._range=x("range",r._range);var M={font:a.font,noAutotickangles:!0,outerTicks:!0,noTicklabelshift:!0,noTicklabelstandoff:!0};$8e(p,m,x,"linear"),Q8e(p,m,x,"linear",M),j8e(p,m,x,"linear",M),K8e(p,m,x,M)}else n("title.align","center"),n("align","center"),r._isAngular=r._isBullet=!1;r._length=null}function r9e(e,r){function t(a,n){return zl.coerce(e,r,gy.gauge.steps,a,n)}t("color"),t("line.color"),t("line.width"),t("range"),t("thickness")}bW.exports={supplyDefaults:e9e}});var TW=G((uDe,wW)=>{"use strict";function t9e(e,r){var t=[],a=r.value;typeof r._lastValue!="number"&&(r._lastValue=r.value);var n=r._lastValue,i=n;return r._hasDelta&&typeof r.delta.reference=="number"&&(i=r.delta.reference),t[0]={y:a,lastY:n,delta:a-i,relativeDelta:(a-i)/i},t}wW.exports={calc:t9e}});function co(e,r,t){e.prototype=r.prototype=t,t.constructor=e}function vs(e,r){var t=Object.create(e.prototype);for(var a in r)t[a]=r[a];return t}var xy=Cr(()=>{});function Nl(){}function AW(){return this.rgb().formatHex()}function f9e(){return this.rgb().formatHex8()}function c9e(){return PW(this).formatHsl()}function kW(){return this.rgb().formatRgb()}function hs(e){var r,t;return e=(e+"").trim().toLowerCase(),(r=a9e.exec(e))?(t=r[1].length,r=parseInt(r[1],16),t===6?LW(r):t===3?new Pa(r>>8&15|r>>4&240,r>>4&15|r&240,(r&15)<<4|r&15,1):t===8?by(r>>24&255,r>>16&255,r>>8&255,(r&255)/255):t===4?by(r>>12&15|r>>8&240,r>>8&15|r>>4&240,r>>4&15|r&240,((r&15)<<4|r&15)/255):null):(r=n9e.exec(e))?new Pa(r[1],r[2],r[3],1):(r=i9e.exec(e))?new Pa(r[1]*255/100,r[2]*255/100,r[3]*255/100,1):(r=l9e.exec(e))?by(r[1],r[2],r[3],r[4]):(r=o9e.exec(e))?by(r[1]*255/100,r[2]*255/100,r[3]*255/100,r[4]):(r=s9e.exec(e))?qW(r[1],r[2]/100,r[3]/100,1):(r=u9e.exec(e))?qW(r[1],r[2]/100,r[3]/100,r[4]):MW.hasOwnProperty(e)?LW(MW[e]):e==="transparent"?new Pa(NaN,NaN,NaN,0):null}function LW(e){return new Pa(e>>16&255,e>>8&255,e&255,1)}function by(e,r,t,a){return a<=0&&(e=r=t=NaN),new Pa(e,r,t,a)}function V2(e){return e instanceof Nl||(e=hs(e)),e?(e=e.rgb(),new Pa(e.r,e.g,e.b,e.opacity)):new Pa}function jf(e,r,t,a){return arguments.length===1?V2(e):new Pa(e,r,t,a==null?1:a)}function Pa(e,r,t,a){this.r=+e,this.g=+r,this.b=+t,this.opacity=+a}function CW(){return`#${Nu(this.r)}${Nu(this.g)}${Nu(this.b)}`}function v9e(){return`#${Nu(this.r)}${Nu(this.g)}${Nu(this.b)}${Nu((isNaN(this.opacity)?1:this.opacity)*255)}`}function SW(){let e=wy(this.opacity);return`${e===1?"rgb(":"rgba("}${Iu(this.r)}, ${Iu(this.g)}, ${Iu(this.b)}${e===1?")":`, ${e})`}`}function wy(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Iu(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Nu(e){return e=Iu(e),(e<16?"0":"")+e.toString(16)}function qW(e,r,t,a){return a<=0?e=r=t=NaN:t<=0||t>=1?e=r=NaN:r<=0&&(e=NaN),new fl(e,r,t,a)}function PW(e){if(e instanceof fl)return new fl(e.h,e.s,e.l,e.opacity);if(e instanceof Nl||(e=hs(e)),!e)return new fl;if(e instanceof fl)return e;e=e.rgb();var r=e.r/255,t=e.g/255,a=e.b/255,n=Math.min(r,t,a),i=Math.max(r,t,a),l=NaN,o=i-n,s=(i+n)/2;return o?(r===i?l=(t-a)/o+(t0&&s<1?0:l,new fl(l,o,s,e.opacity)}function X2(e,r,t,a){return arguments.length===1?PW(e):new fl(e,r,t,a==null?1:a)}function fl(e,r,t,a){this.h=+e,this.s=+r,this.l=+t,this.opacity=+a}function DW(e){return e=(e||0)%360,e<0?e+360:e}function _y(e){return Math.max(0,Math.min(1,e||0))}function v7(e,r,t){return(e<60?r+(t-r)*e/60:e<180?t:e<240?r+(t-r)*(240-e)/60:r)*255}var ds,Bu,Kf,U2,Fl,a9e,n9e,i9e,l9e,o9e,s9e,u9e,MW,Ty=Cr(()=>{xy();ds=.7,Bu=1/ds,Kf="\\s*([+-]?\\d+)\\s*",U2="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Fl="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",a9e=/^#([0-9a-f]{3,8})$/,n9e=new RegExp(`^rgb\\(${Kf},${Kf},${Kf}\\)$`),i9e=new RegExp(`^rgb\\(${Fl},${Fl},${Fl}\\)$`),l9e=new RegExp(`^rgba\\(${Kf},${Kf},${Kf},${U2}\\)$`),o9e=new RegExp(`^rgba\\(${Fl},${Fl},${Fl},${U2}\\)$`),s9e=new RegExp(`^hsl\\(${U2},${Fl},${Fl}\\)$`),u9e=new RegExp(`^hsla\\(${U2},${Fl},${Fl},${U2}\\)$`),MW={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};co(Nl,hs,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:AW,formatHex:AW,formatHex8:f9e,formatHsl:c9e,formatRgb:kW,toString:kW});co(Pa,jf,vs(Nl,{brighter(e){return e=e==null?Bu:Math.pow(Bu,e),new Pa(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?ds:Math.pow(ds,e),new Pa(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Pa(Iu(this.r),Iu(this.g),Iu(this.b),wy(this.opacity))},displayable(){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:CW,formatHex:CW,formatHex8:v9e,formatRgb:SW,toString:SW}));co(fl,X2,vs(Nl,{brighter(e){return e=e==null?Bu:Math.pow(Bu,e),new fl(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?ds:Math.pow(ds,e),new fl(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,r=isNaN(e)||isNaN(this.s)?0:this.s,t=this.l,a=t+(t<.5?t:1-t)*r,n=2*t-a;return new Pa(v7(e>=240?e-240:e+120,n,a),v7(e,n,a),v7(e<120?e+240:e-120,n,a),this.opacity)},clamp(){return new fl(DW(this.h),_y(this.s),_y(this.l),wy(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let e=wy(this.opacity);return`${e===1?"hsl(":"hsla("}${DW(this.h)}, ${_y(this.s)*100}%, ${_y(this.l)*100}%${e===1?")":`, ${e})`}`}}))});var My,Ay,d7=Cr(()=>{My=Math.PI/180,Ay=180/Math.PI});function IW(e){if(e instanceof Il)return new Il(e.l,e.a,e.b,e.opacity);if(e instanceof vo)return BW(e);e instanceof Pa||(e=V2(e));var r=y7(e.r),t=y7(e.g),a=y7(e.b),n=h7((.2225045*r+.7168786*t+.0606169*a)/RW),i,l;return r===t&&t===a?i=l=n:(i=h7((.4360747*r+.3850649*t+.1430804*a)/EW),l=h7((.0139322*r+.0971045*t+.7141733*a)/zW)),new Il(116*n-16,500*(i-n),200*(n-l),e.opacity)}function ec(e,r,t,a){return arguments.length===1?IW(e):new Il(e,r,t,a==null?1:a)}function Il(e,r,t,a){this.l=+e,this.a=+r,this.b=+t,this.opacity=+a}function h7(e){return e>d9e?Math.pow(e,1/3):e/NW+FW}function p7(e){return e>Qf?e*e*e:NW*(e-FW)}function m7(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function y7(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function h9e(e){if(e instanceof vo)return new vo(e.h,e.c,e.l,e.opacity);if(e instanceof Il||(e=IW(e)),e.a===0&&e.b===0)return new vo(NaN,0{xy();Ty();d7();ky=18,EW=.96422,RW=1,zW=.82521,FW=4/29,Qf=6/29,NW=3*Qf*Qf,d9e=Qf*Qf*Qf;co(Il,ec,vs(Nl,{brighter(e){return new Il(this.l+ky*(e==null?1:e),this.a,this.b,this.opacity)},darker(e){return new Il(this.l-ky*(e==null?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,r=isNaN(this.a)?e:e+this.a/500,t=isNaN(this.b)?e:e-this.b/200;return r=EW*p7(r),e=RW*p7(e),t=zW*p7(t),new Pa(m7(3.1338561*r-1.6168667*e-.4906146*t),m7(-.9787684*r+1.9161415*e+.033454*t),m7(.0719453*r-.2289914*e+1.4052427*t),this.opacity)}}));co(vo,W2,vs(Nl,{brighter(e){return new vo(this.h,this.c,this.l+ky*(e==null?1:e),this.opacity)},darker(e){return new vo(this.h,this.c,this.l-ky*(e==null?1:e),this.opacity)},rgb(){return BW(this).rgb()}}))});function p9e(e){if(e instanceof Hu)return new Hu(e.h,e.s,e.l,e.opacity);e instanceof Pa||(e=V2(e));var r=e.r/255,t=e.g/255,a=e.b/255,n=(GW*a+OW*r-YW*t)/(GW+OW-YW),i=a-n,l=(Z2*(t-n)-x7*i)/Ly,o=Math.sqrt(l*l+i*i)/(Z2*n*(1-n)),s=o?Math.atan2(l,i)*Ay-120:NaN;return new Hu(s<0?s+360:s,o,n,e.opacity)}function rc(e,r,t,a){return arguments.length===1?p9e(e):new Hu(e,r,t,a==null?1:a)}function Hu(e,r,t,a){this.h=+e,this.s=+r,this.l=+t,this.opacity=+a}var UW,g7,x7,Ly,Z2,OW,YW,GW,VW=Cr(()=>{xy();Ty();d7();UW=-.14861,g7=1.78277,x7=-.29227,Ly=-.90649,Z2=1.97294,OW=Z2*Ly,YW=Z2*g7,GW=g7*x7-Ly*UW;co(Hu,rc,vs(Nl,{brighter(e){return e=e==null?Bu:Math.pow(Bu,e),new Hu(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?ds:Math.pow(ds,e),new Hu(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=isNaN(this.h)?0:(this.h+120)*My,r=+this.l,t=isNaN(this.s)?0:this.s*r*(1-r),a=Math.cos(e),n=Math.sin(e);return new Pa(255*(r+t*(UW*a+g7*n)),255*(r+t*(x7*a+Ly*n)),255*(r+t*(Z2*a)),this.opacity)}}))});var Ou=Cr(()=>{Ty();HW();VW()});function b7(e,r,t,a,n){var i=e*e,l=i*e;return((1-3*e+3*i-l)*r+(4-6*i+3*l)*t+(1+3*e+3*i-3*l)*a+l*n)/6}function Cy(e){var r=e.length-1;return function(t){var a=t<=0?t=0:t>=1?(t=1,r-1):Math.floor(t*r),n=e[a],i=e[a+1],l=a>0?e[a-1]:2*n-i,o=a{});function qy(e){var r=e.length;return function(t){var a=Math.floor(((t%=1)<0?++t:t)*r),n=e[(a+r-1)%r],i=e[a%r],l=e[(a+1)%r],o=e[(a+2)%r];return b7((t-a/r)*r,n,i,l,o)}}var _7=Cr(()=>{Sy()});var tc,w7=Cr(()=>{tc=e=>()=>e});function XW(e,r){return function(t){return e+t*r}}function m9e(e,r,t){return e=Math.pow(e,t),r=Math.pow(r,t)-e,t=1/t,function(a){return Math.pow(e+a*r,t)}}function ps(e,r){var t=r-e;return t?XW(e,t>180||t<-180?t-360*Math.round(t/360):t):tc(isNaN(e)?r:e)}function WW(e){return(e=+e)==1?Qt:function(r,t){return t-r?m9e(r,t,e):tc(isNaN(r)?t:r)}}function Qt(e,r){var t=r-e;return t?XW(e,t):tc(isNaN(e)?r:e)}var Yu=Cr(()=>{w7()});function ZW(e){return function(r){var t=r.length,a=new Array(t),n=new Array(t),i=new Array(t),l,o;for(l=0;l{Ou();Sy();_7();Yu();J2=(function e(r){var t=WW(r);function a(n,i){var l=t((n=jf(n)).r,(i=jf(i)).r),o=t(n.g,i.g),s=t(n.b,i.b),u=Qt(n.opacity,i.opacity);return function(f){return n.r=l(f),n.g=o(f),n.b=s(f),n.opacity=u(f),n+""}}return a.gamma=e,a})(1);JW=ZW(Cy),$W=ZW(qy)});function ac(e,r){r||(r=[]);var t=e?Math.min(r.length,e.length):0,a=r.slice(),n;return function(i){for(n=0;n{});function KW(e,r){return(Dy(r)?ac:M7)(e,r)}function M7(e,r){var t=r?r.length:0,a=e?Math.min(t,e.length):0,n=new Array(a),i=new Array(t),l;for(l=0;l{$2();Py()});function Ey(e,r){var t=new Date;return e=+e,r=+r,function(a){return t.setTime(e*(1-a)+r*a),t}}var k7=Cr(()=>{});function Yn(e,r){return e=+e,r=+r,function(t){return e*(1-t)+r*t}}var K2=Cr(()=>{});function Ry(e,r){var t={},a={},n;(e===null||typeof e!="object")&&(e={}),(r===null||typeof r!="object")&&(r={});for(n in r)n in e?t[n]=ms(e[n],r[n]):a[n]=r[n];return function(i){for(n in t)a[n]=t[n](i);return a}}var L7=Cr(()=>{$2()});function y9e(e){return function(){return e}}function g9e(e){return function(r){return e(r)+""}}function zy(e,r){var t=S7.lastIndex=C7.lastIndex=0,a,n,i,l=-1,o=[],s=[];for(e=e+"",r=r+"";(a=S7.exec(e))&&(n=C7.exec(r));)(i=n.index)>t&&(i=r.slice(t,i),o[l]?o[l]+=i:o[++l]=i),(a=a[0])===(n=n[0])?o[l]?o[l]+=n:o[++l]=n:(o[++l]=null,s.push({i:l,x:Yn(a,n)})),t=C7.lastIndex;return t{K2();S7=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,C7=new RegExp(S7.source,"g")});function ms(e,r){var t=typeof r,a;return r==null||t==="boolean"?tc(r):(t==="number"?Yn:t==="string"?(a=hs(r))?(r=a,J2):zy:r instanceof hs?J2:r instanceof Date?Ey:Dy(r)?ac:Array.isArray(r)?M7:typeof r.valueOf!="function"&&typeof r.toString!="function"||isNaN(r)?Ry:Yn)(e,r)}var $2=Cr(()=>{Ou();T7();A7();k7();K2();L7();q7();w7();Py()});function jW(e){var r=e.length;return function(t){return e[Math.max(0,Math.min(r-1,Math.floor(t*r)))]}}var QW=Cr(()=>{});function eZ(e,r){var t=ps(+e,+r);return function(a){var n=t(a);return n-360*Math.floor(n/360)}}var rZ=Cr(()=>{Yu()});function tZ(e,r){return e=+e,r=+r,function(t){return Math.round(e*(1-t)+r*t)}}var aZ=Cr(()=>{});function D7(e,r,t,a,n,i){var l,o,s;return(l=Math.sqrt(e*e+r*r))&&(e/=l,r/=l),(s=e*t+r*a)&&(t-=e*s,a-=r*s),(o=Math.sqrt(t*t+a*a))&&(t/=o,a/=o,s/=o),e*a{nZ=180/Math.PI,Fy={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1}});function lZ(e){let r=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return r.isIdentity?Fy:D7(r.a,r.b,r.c,r.d,r.e,r.f)}function oZ(e){return e==null?Fy:(Ny||(Ny=document.createElementNS("http://www.w3.org/2000/svg","g")),Ny.setAttribute("transform",e),(e=Ny.transform.baseVal.consolidate())?(e=e.matrix,D7(e.a,e.b,e.c,e.d,e.e,e.f)):Fy)}var Ny,sZ=Cr(()=>{iZ()});function uZ(e,r,t,a){function n(u){return u.length?u.pop()+" ":""}function i(u,f,c,v,h,p){if(u!==c||f!==v){var m=h.push("translate(",null,r,null,t);p.push({i:m-4,x:Yn(u,c)},{i:m-2,x:Yn(f,v)})}else(c||v)&&h.push("translate("+c+r+v+t)}function l(u,f,c,v){u!==f?(u-f>180?f+=360:f-u>180&&(u+=360),v.push({i:c.push(n(c)+"rotate(",null,a)-2,x:Yn(u,f)})):f&&c.push(n(c)+"rotate("+f+a)}function o(u,f,c,v){u!==f?v.push({i:c.push(n(c)+"skewX(",null,a)-2,x:Yn(u,f)}):f&&c.push(n(c)+"skewX("+f+a)}function s(u,f,c,v,h,p){if(u!==c||f!==v){var m=h.push(n(h)+"scale(",null,",",null,")");p.push({i:m-4,x:Yn(u,c)},{i:m-2,x:Yn(f,v)})}else(c!==1||v!==1)&&h.push(n(h)+"scale("+c+","+v+")")}return function(u,f){var c=[],v=[];return u=e(u),f=e(f),i(u.translateX,u.translateY,f.translateX,f.translateY,c,v),l(u.rotate,f.rotate,c,v),o(u.skewX,f.skewX,c,v),s(u.scaleX,u.scaleY,f.scaleX,f.scaleY,c,v),u=f=null,function(h){for(var p=-1,m=v.length,y;++p{K2();sZ();fZ=uZ(lZ,"px, ","px)","deg)"),cZ=uZ(oZ,", ",")",")")});function dZ(e){return((e=Math.exp(e))+1/e)/2}function b9e(e){return((e=Math.exp(e))-1/e)/2}function _9e(e){return((e=Math.exp(2*e))-1)/(e+1)}var x9e,hZ,pZ=Cr(()=>{x9e=1e-12;hZ=(function e(r,t,a){function n(i,l){var o=i[0],s=i[1],u=i[2],f=l[0],c=l[1],v=l[2],h=f-o,p=c-s,m=h*h+p*p,y,x;if(m{Ou();Yu();yZ=mZ(ps),gZ=mZ(Qt)});function P7(e,r){var t=Qt((e=ec(e)).l,(r=ec(r)).l),a=Qt(e.a,r.a),n=Qt(e.b,r.b),i=Qt(e.opacity,r.opacity);return function(l){return e.l=t(l),e.a=a(l),e.b=n(l),e.opacity=i(l),e+""}}var bZ=Cr(()=>{Ou();Yu()});function _Z(e){return function(r,t){var a=e((r=W2(r)).h,(t=W2(t)).h),n=Qt(r.c,t.c),i=Qt(r.l,t.l),l=Qt(r.opacity,t.opacity);return function(o){return r.h=a(o),r.c=n(o),r.l=i(o),r.opacity=l(o),r+""}}}var wZ,TZ,MZ=Cr(()=>{Ou();Yu();wZ=_Z(ps),TZ=_Z(Qt)});function AZ(e){return(function r(t){t=+t;function a(n,i){var l=e((n=rc(n)).h,(i=rc(i)).h),o=Qt(n.s,i.s),s=Qt(n.l,i.l),u=Qt(n.opacity,i.opacity);return function(f){return n.h=l(f),n.s=o(f),n.l=s(Math.pow(f,t)),n.opacity=u(f),n+""}}return a.gamma=r,a})(1)}var kZ,LZ,CZ=Cr(()=>{Ou();Yu();kZ=AZ(ps),LZ=AZ(Qt)});function E7(e,r){r===void 0&&(r=e,e=ms);for(var t=0,a=r.length-1,n=r[0],i=new Array(a<0?0:a);t{$2()});function qZ(e,r){for(var t=new Array(r),a=0;a{});var R7={};pt(R7,{interpolate:()=>ms,interpolateArray:()=>KW,interpolateBasis:()=>Cy,interpolateBasisClosed:()=>qy,interpolateCubehelix:()=>kZ,interpolateCubehelixLong:()=>LZ,interpolateDate:()=>Ey,interpolateDiscrete:()=>jW,interpolateHcl:()=>wZ,interpolateHclLong:()=>TZ,interpolateHsl:()=>yZ,interpolateHslLong:()=>gZ,interpolateHue:()=>eZ,interpolateLab:()=>P7,interpolateNumber:()=>Yn,interpolateNumberArray:()=>ac,interpolateObject:()=>Ry,interpolateRgb:()=>J2,interpolateRgbBasis:()=>JW,interpolateRgbBasisClosed:()=>$W,interpolateRound:()=>tZ,interpolateString:()=>zy,interpolateTransformCss:()=>fZ,interpolateTransformSvg:()=>cZ,interpolateZoom:()=>hZ,piecewise:()=>E7,quantize:()=>qZ});var z7=Cr(()=>{$2();A7();Sy();_7();k7();QW();rZ();K2();Py();L7();aZ();q7();vZ();pZ();T7();xZ();bZ();MZ();CZ();SZ();DZ()});var NZ=G((jPe,FZ)=>{"use strict";var Wu=Er(),w9e=(z7(),Fe(R7)).interpolate,PZ=(z7(),Fe(R7)).interpolateNumber,ys=Se(),T9e=ys.strScale,Q2=ys.strTranslate,M9e=ys.rad2deg,A9e=(Xa(),Fe(Va)).MID_SHIFT,Xu=$r(),Gu=(c7(),Fe(f7)),By=ba(),ja=Qr(),k9e=cm(),L9e=dm(),C9e=Zn(),nc=kr(),F7={left:"start",center:"middle",right:"end"},Uu={left:0,center:.5,right:1},EZ=/[yzafpnµmkMGTPEZY]/;function ed(e){return e&&e.duration>0}FZ.exports=function(r,t,a,n){var i=r._fullLayout,l;ed(a)&&n&&(l=n()),ys.makeTraceGroups(i._indicatorlayer,t,"trace").each(function(o){var s=o[0],u=s.trace,f=Wu.select(this),c=u._hasGauge,v=u._isAngular,h=u._isBullet,p=u.domain,m={w:i._size.w*(p.x[1]-p.x[0]),h:i._size.h*(p.y[1]-p.y[0]),l:i._size.l+i._size.w*p.x[0],r:i._size.r+i._size.w*(1-p.x[1]),t:i._size.t+i._size.h*(1-p.y[1]),b:i._size.b+i._size.h*p.y[0]},y=m.l+m.w/2,x=m.t+m.h/2,_=Math.min(m.w/2,m.h),w=Gu.innerRadius*_,b,M,A,k=u.align||"center";if(M=x,!c)b=m.l+Uu[k]*m.w,A=function(O){return RZ(O,m.w,m.h)};else if(v&&(b=y,M=x+_/2,A=function(O){return E9e(O,.9*w)}),h){var S=Gu.bulletPadding,D=1-Gu.bulletNumberDomainSize+S;b=m.l+(D+(1-D)*Uu[k])*m.w,A=function(O){return RZ(O,(Gu.bulletNumberDomainSize-S)*m.w,m.h)}}D9e(r,f,o,{numbersX:b,numbersY:M,numbersScaler:A,transitionOpts:a,onComplete:l});var P,R;c&&(P={range:u.gauge.axis.range,color:u.gauge.bgcolor,line:{color:u.gauge.bordercolor,width:0},thickness:1},R={range:u.gauge.axis.range,color:"rgba(0, 0, 0, 0)",line:{color:u.gauge.bordercolor,width:u.gauge.borderwidth},thickness:1});var F=f.selectAll("g.angular").data(v?o:[]);F.exit().remove();var B=f.selectAll("g.angularaxis").data(v?o:[]);B.exit().remove(),v&&q9e(r,f,o,{radius:_,innerRadius:w,gauge:F,layer:B,size:m,gaugeBg:P,gaugeOutline:R,transitionOpts:a,onComplete:l});var H=f.selectAll("g.bullet").data(h?o:[]);H.exit().remove();var N=f.selectAll("g.bulletaxis").data(h?o:[]);N.exit().remove(),h&&S9e(r,f,o,{gauge:H,layer:N,size:m,gaugeBg:P,gaugeOutline:R,transitionOpts:a,onComplete:l});var Y=f.selectAll("text.title").data(o);Y.exit().remove(),Y.enter().append("text").classed("title",!0),Y.attr("text-anchor",function(){return h?F7.right:F7[u.title.align]}).text(u.title.text).call(Xu.font,u.title.font).call(By.convertToTspans,r),Y.attr("transform",function(){var O=m.l+m.w*Uu[u.title.align],V,X=Gu.titlePadding,W=Xu.bBox(Y.node());if(c){if(v)if(u.gauge.axis.visible){var U=Xu.bBox(B.node());V=U.top-X-W.bottom}else V=m.t+m.h/2-_/2-W.bottom-X;h&&(V=M-(W.top+W.bottom)/2,O=m.l-Gu.bulletPadding*m.w)}else V=u._numbersTop-X-W.bottom;return Q2(O,V)})})};function S9e(e,r,t,a){var n=t[0].trace,i=a.gauge,l=a.layer,o=a.gaugeBg,s=a.gaugeOutline,u=a.size,f=n.domain,c=a.transitionOpts,v=a.onComplete,h,p,m,y,x;i.enter().append("g").classed("bullet",!0),i.attr("transform",Q2(u.l,u.t)),l.enter().append("g").classed("bulletaxis",!0).classed("crisp",!0),l.selectAll("g.xbulletaxistick,path,text").remove();var _=u.h,w=n.gauge.bar.thickness*_,b=f.x[0],M=f.x[0]+(f.x[1]-f.x[0])*(n._hasNumber||n._hasDelta?1-Gu.bulletNumberDomainSize:1);h=j2(e,n.gauge.axis),h._id="xbulletaxis",h.domain=[b,M],h.setScale(),p=ja.calcTicks(h),m=ja.makeTransTickFn(h),y=ja.getTickSigns(h)[2],x=u.t+u.h,h.visible&&(ja.drawTicks(e,h,{vals:h.ticks==="inside"?ja.clipEnds(h,p):p,layer:l,path:ja.makeTickPath(h,x,y),transFn:m}),ja.drawLabels(e,h,{vals:p,layer:l,transFn:m,labelFns:ja.makeLabelFns(h,x)}));function A(B){B.attr("width",function(H){return Math.max(0,h.c2p(H.range[1])-h.c2p(H.range[0]))}).attr("x",function(H){return h.c2p(H.range[0])}).attr("y",function(H){return .5*(1-H.thickness)*_}).attr("height",function(H){return H.thickness*_})}var k=[o].concat(n.gauge.steps),S=i.selectAll("g.bg-bullet").data(k);S.enter().append("g").classed("bg-bullet",!0).append("rect"),S.select("rect").call(A).call(Vu),S.exit().remove();var D=i.selectAll("g.value-bullet").data([n.gauge.bar]);D.enter().append("g").classed("value-bullet",!0).append("rect"),D.select("rect").attr("height",w).attr("y",(_-w)/2).call(Vu),ed(c)?D.select("rect").transition().duration(c.duration).ease(c.easing).each("end",function(){v&&v()}).each("interrupt",function(){v&&v()}).attr("width",Math.max(0,h.c2p(Math.min(n.gauge.axis.range[1],t[0].y)))):D.select("rect").attr("width",typeof t[0].y=="number"?Math.max(0,h.c2p(Math.min(n.gauge.axis.range[1],t[0].y))):0),D.exit().remove();var P=t.filter(function(){return n.gauge.threshold.value||n.gauge.threshold.value===0}),R=i.selectAll("g.threshold-bullet").data(P);R.enter().append("g").classed("threshold-bullet",!0).append("line"),R.select("line").attr("x1",h.c2p(n.gauge.threshold.value)).attr("x2",h.c2p(n.gauge.threshold.value)).attr("y1",(1-n.gauge.threshold.thickness)/2*_).attr("y2",(1-(1-n.gauge.threshold.thickness)/2)*_).call(nc.stroke,n.gauge.threshold.line.color).style("stroke-width",n.gauge.threshold.line.width),R.exit().remove();var F=i.selectAll("g.gauge-outline").data([s]);F.enter().append("g").classed("gauge-outline",!0).append("rect"),F.select("rect").call(A).call(Vu),F.exit().remove()}function q9e(e,r,t,a){var n=t[0].trace,i=a.size,l=a.radius,o=a.innerRadius,s=a.gaugeBg,u=a.gaugeOutline,f=[i.l+i.w/2,i.t+i.h/2+l/2],c=a.gauge,v=a.layer,h=a.transitionOpts,p=a.onComplete,m=Math.PI/2;function y($){var re=n.gauge.axis.range[0],se=n.gauge.axis.range[1],oe=($-re)/(se-re)*Math.PI-m;return oe<-m?-m:oe>m?m:oe}function x($){return Wu.svg.arc().innerRadius((o+l)/2-$/2*(l-o)).outerRadius((o+l)/2+$/2*(l-o)).startAngle(-m)}function _($){$.attr("d",function(re){return x(re.thickness).startAngle(y(re.range[0])).endAngle(y(re.range[1]))()})}var w,b,M,A;c.enter().append("g").classed("angular",!0),c.attr("transform",Q2(f[0],f[1])),v.enter().append("g").classed("angularaxis",!0).classed("crisp",!0),v.selectAll("g.xangularaxistick,path,text").remove(),w=j2(e,n.gauge.axis),w.type="linear",w.range=n.gauge.axis.range,w._id="xangularaxis",w.ticklabeloverflow="allow",w.setScale();var k=function($){return(w.range[0]-$.x)/(w.range[1]-w.range[0])*Math.PI+Math.PI},S={},D=ja.makeLabelFns(w,0),P=D.labelStandoff;S.xFn=function($){var re=k($);return Math.cos(re)*P},S.yFn=function($){var re=k($),se=Math.sin(re)>0?.2:1;return-Math.sin(re)*(P+$.fontSize*se)+Math.abs(Math.cos(re))*($.fontSize*A9e)},S.anchorFn=function($){var re=k($),se=Math.cos(re);return Math.abs(se)<.1?"middle":se>0?"start":"end"},S.heightFn=function($,re,se){var oe=k($);return-.5*(1+Math.sin(oe))*se};var R=function($){return Q2(f[0]+l*Math.cos($),f[1]-l*Math.sin($))};M=function($){return R(k($))};var F=function($){var re=k($);return R(re)+"rotate("+-M9e(re)+")"};if(b=ja.calcTicks(w),A=ja.getTickSigns(w)[2],w.visible){A=w.ticks==="inside"?-1:1;var B=(w.linewidth||1)/2;ja.drawTicks(e,w,{vals:b,layer:v,path:"M"+A*B+",0h"+A*w.ticklen,transFn:F}),ja.drawLabels(e,w,{vals:b,layer:v,transFn:M,labelFns:S})}var H=[s].concat(n.gauge.steps),N=c.selectAll("g.bg-arc").data(H);N.enter().append("g").classed("bg-arc",!0).append("path"),N.select("path").call(_).call(Vu),N.exit().remove();var Y=x(n.gauge.bar.thickness),O=c.selectAll("g.value-arc").data([n.gauge.bar]);O.enter().append("g").classed("value-arc",!0).append("path");var V=O.select("path");ed(h)?(V.transition().duration(h.duration).ease(h.easing).each("end",function(){p&&p()}).each("interrupt",function(){p&&p()}).attrTween("d",P9e(Y,y(t[0].lastY),y(t[0].y))),n._lastValue=t[0].y):V.attr("d",typeof t[0].y=="number"?Y.endAngle(y(t[0].y)):"M0,0Z"),V.call(Vu),O.exit().remove(),H=[];var X=n.gauge.threshold.value;(X||X===0)&&H.push({range:[X,X],color:n.gauge.threshold.color,line:{color:n.gauge.threshold.line.color,width:n.gauge.threshold.line.width},thickness:n.gauge.threshold.thickness});var W=c.selectAll("g.threshold-arc").data(H);W.enter().append("g").classed("threshold-arc",!0).append("path"),W.select("path").call(_).call(Vu),W.exit().remove();var U=c.selectAll("g.gauge-outline").data([u]);U.enter().append("g").classed("gauge-outline",!0).append("path"),U.select("path").call(_).call(Vu),U.exit().remove()}function D9e(e,r,t,a){var n=t[0].trace,i=a.numbersX,l=a.numbersY,o=n.align||"center",s=F7[o],u=a.transitionOpts,f=a.onComplete,c=ys.ensureSingle(r,"g","numbers"),v,h,p,m=[];n._hasNumber&&m.push("number"),n._hasDelta&&(m.push("delta"),n.delta.position==="left"&&m.reverse());var y=c.selectAll("text").data(m);y.enter().append("text"),y.attr("text-anchor",function(){return s}).attr("class",function(R){return R}).attr("x",null).attr("y",null).attr("dx",null).attr("dy",null),y.exit().remove();function x(R,F,B,H){if(R.match("s")&&B>=0!=H>=0&&!F(B).slice(-1).match(EZ)&&!F(H).slice(-1).match(EZ)){var N=R.slice().replace("s","f").replace(/\d+/,function(O){return parseInt(O)-1}),Y=j2(e,{tickformat:N});return function(O){return Math.abs(O)<1?ja.tickText(Y,O).text:F(O)}}else return F}function _(){var R=j2(e,{tickformat:n.number.valueformat},n._range);R.setScale(),ja.prepTicks(R);var F=function(O){return ja.tickText(R,O).text},B=n.number.suffix,H=n.number.prefix,N=c.select("text.number");function Y(){var O=typeof t[0].y=="number"?H+F(t[0].y)+B:"-";N.text(O).call(Xu.font,n.number.font).call(By.convertToTspans,e)}return ed(u)?N.transition().duration(u.duration).ease(u.easing).each("end",function(){Y(),f&&f()}).each("interrupt",function(){Y(),f&&f()}).attrTween("text",function(){var O=Wu.select(this),V=PZ(t[0].lastY,t[0].y);n._lastValue=t[0].y;var X=x(n.number.valueformat,F,t[0].lastY,t[0].y);return function(W){O.text(H+X(V(W))+B)}}):Y(),v=zZ(H+F(t[0].y)+B,n.number.font,s,e),N}function w(){var R=j2(e,{tickformat:n.delta.valueformat},n._range);R.setScale(),ja.prepTicks(R);var F=function(W){return ja.tickText(R,W).text},B=n.delta.suffix,H=n.delta.prefix,N=function(W){var U=n.delta.relative?W.relativeDelta:W.delta;return U},Y=function(W,U){return W===0||typeof W!="number"||isNaN(W)?"-":(W>0?n.delta.increasing.symbol:n.delta.decreasing.symbol)+H+U(W)+B},O=function(W){return W.delta>=0?n.delta.increasing.color:n.delta.decreasing.color};n._deltaLastValue===void 0&&(n._deltaLastValue=N(t[0]));var V=c.select("text.delta");V.call(Xu.font,n.delta.font).call(nc.fill,O({delta:n._deltaLastValue}));function X(){V.text(Y(N(t[0]),F)).call(nc.fill,O(t[0])).call(By.convertToTspans,e)}return ed(u)?V.transition().duration(u.duration).ease(u.easing).tween("text",function(){var W=Wu.select(this),U=N(t[0]),$=n._deltaLastValue,re=x(n.delta.valueformat,F,$,U),se=PZ($,U);return n._deltaLastValue=U,function(oe){W.text(Y(se(oe),re)),W.call(nc.fill,O({delta:se(oe)}))}}).each("end",function(){X(),f&&f()}).each("interrupt",function(){X(),f&&f()}):X(),h=zZ(Y(N(t[0]),F),n.delta.font,s,e),V}var b=n.mode+n.align,M;if(n._hasDelta&&(M=w(),b+=n.delta.position+n.delta.font.size+n.delta.font.family+n.delta.valueformat,b+=n.delta.increasing.symbol+n.delta.decreasing.symbol,p=h),n._hasNumber&&(_(),b+=n.number.font.size+n.number.font.family+n.number.valueformat+n.number.suffix+n.number.prefix,p=v),n._hasDelta&&n._hasNumber){var A=[(v.left+v.right)/2,(v.top+v.bottom)/2],k=[(h.left+h.right)/2,(h.top+h.bottom)/2],S,D,P=.75*n.delta.font.size;n.delta.position==="left"&&(S=Iy(n,"deltaPos",0,-1*(v.width*Uu[n.align]+h.width*(1-Uu[n.align])+P),b,Math.min),D=A[1]-k[1],p={width:v.width+h.width+P,height:Math.max(v.height,h.height),left:h.left+S,right:v.right,top:Math.min(v.top,h.top+D),bottom:Math.max(v.bottom,h.bottom+D)}),n.delta.position==="right"&&(S=Iy(n,"deltaPos",0,v.width*(1-Uu[n.align])+h.width*Uu[n.align]+P,b,Math.max),D=A[1]-k[1],p={width:v.width+h.width+P,height:Math.max(v.height,h.height),left:v.left,right:h.right+S,top:Math.min(v.top,h.top+D),bottom:Math.max(v.bottom,h.bottom+D)}),n.delta.position==="bottom"&&(S=null,D=h.height,p={width:Math.max(v.width,h.width),height:v.height+h.height,left:Math.min(v.left,h.left),right:Math.max(v.right,h.right),top:v.bottom-v.height,bottom:v.bottom+h.height}),n.delta.position==="top"&&(S=null,D=v.top,p={width:Math.max(v.width,h.width),height:v.height+h.height,left:Math.min(v.left,h.left),right:Math.max(v.right,h.right),top:v.bottom-v.height-h.height,bottom:v.bottom}),M.attr({dx:S,dy:D})}(n._hasNumber||n._hasDelta)&&c.attr("transform",function(){var R=a.numbersScaler(p);b+=R[2];var F=Iy(n,"numbersScale",1,R[0],b,Math.min),B;n._scaleNumbers||(F=1),n._isAngular?B=l-F*p.bottom:B=l-F*(p.top+p.bottom)/2,n._numbersTop=F*p.top+B;var H=p[o];o==="center"&&(H=(p.left+p.right)/2);var N=i-F*H;return N=Iy(n,"numbersTranslate",0,N,b,Math.max),Q2(N,B)+T9e(F)})}function Vu(e){e.each(function(r){nc.stroke(Wu.select(this),r.line.color)}).each(function(r){nc.fill(Wu.select(this),r.color)}).style("stroke-width",function(r){return r.line.width})}function P9e(e,r,t){return function(){var a=w9e(r,t);return function(n){return e.endAngle(a(n))()}}}function j2(e,r,t){var a=e._fullLayout,n=ys.extendFlat({type:"linear",ticks:"outside",range:t,showline:!0},r),i={type:"linear",_id:"x"+r._id},l={letter:"x",font:a.font,noAutotickangles:!0,noHover:!0,noTickson:!0};function o(s,u){return ys.coerce(n,i,C9e,s,u)}return k9e(n,i,o,l,a),L9e(n,i,o,l),i}function RZ(e,r,t){var a=Math.min(r/e.width,t/e.height);return[a,e,r+"x"+t]}function E9e(e,r){var t=Math.sqrt(e.width/2*(e.width/2)+e.height*e.height),a=r/t;return[a,e,r]}function zZ(e,r,t,a){var n=document.createElementNS("http://www.w3.org/2000/svg","text"),i=Wu.select(n);return i.text(e).attr("x",0).attr("y",0).attr("text-anchor",t).attr("data-unformatted",e).call(By.convertToTspans,a).call(Xu.font,r),Xu.bBox(i.node())}function Iy(e,r,t,a,n,i){var l="_cache"+r;e[l]&&e[l].key===n||(e[l]={key:n,value:t});var o=ys.aggNums(i,null,[e[l].value,a],2);return e[l].value=o,o}});var BZ=G((QPe,IZ)=>{"use strict";IZ.exports={moduleType:"trace",name:"indicator",basePlotModule:vW(),categories:["svg","noOpacity","noHover"],animatable:!0,attributes:u7(),supplyDefaults:_W().supplyDefaults,calc:TW().calc,plot:NZ(),meta:{}}});var OZ=G((eEe,HZ)=>{"use strict";HZ.exports=BZ()});var Oy=G((rEe,XZ)=>{"use strict";var Hy=Se().extendFlat,rd=Ki(),YZ=Xi().axisHoverFormat,{hovertemplateAttrs:R9e,templatefallbackAttrs:z9e}=Vn(),UZ=Yi().dash,F9e=Ec(),VZ=(Uf(),Fe(Gf)),N9e=VZ.INCREASING.COLOR,I9e=VZ.DECREASING.COLOR,N7=rd.line;function GZ(e){return{line:{color:Hy({},N7.color,{dflt:e}),width:N7.width,dash:UZ,editType:"style"},editType:"style"}}XZ.exports={xperiod:rd.xperiod,xperiod0:rd.xperiod0,xperiodalignment:rd.xperiodalignment,xhoverformat:YZ("x"),yhoverformat:YZ("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:Hy({},N7.width,{}),dash:Hy({},UZ,{}),editType:"style"},increasing:GZ(N9e),decreasing:GZ(I9e),text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertemplate:R9e({},{keys:["open","high","low","close"]}),hovertemplatefallback:z9e(),tickwidth:{valType:"number",min:0,max:.5,dflt:.3,editType:"calc"},hoverlabel:Hy({},F9e.hoverlabel,{split:{valType:"boolean",dflt:!1,editType:"style"}}),zorder:rd.zorder}});var I7=G((tEe,WZ)=>{"use strict";var B9e=Ar(),H9e=Se();WZ.exports=function(r,t,a,n){var i=a("x"),l=a("open"),o=a("high"),s=a("low"),u=a("close");a("hoverlabel.split");var f=B9e.getComponentMethod("calendars","handleTraceDefaults");if(f(r,t,["x"],n),!!(l&&o&&s&&u)){var c=Math.min(l.length,o.length,s.length,u.length);return i&&(c=Math.min(c,H9e.minRowLength(i))),t._length=c,c}}});var $Z=G((aEe,JZ)=>{"use strict";var O9e=Se(),Y9e=I7(),G9e=_u(),U9e=Oy();JZ.exports=function(r,t,a,n){function i(o,s){return O9e.coerce(r,t,U9e,o,s)}var l=Y9e(r,t,i,n);if(!l){t.visible=!1;return}G9e(r,t,n,i,{x:!0}),i("xhoverformat"),i("yhoverformat"),i("line.width"),i("line.dash"),ZZ(r,t,i,"increasing"),ZZ(r,t,i,"decreasing"),i("text"),i("hovertext"),i("hovertemplate"),i("hovertemplatefallback"),i("tickwidth"),n._requestRangeslider[t.xaxis]=!0,i("zorder")};function ZZ(e,r,t,a){t(a+".line.color"),t(a+".line.width",r.line.width),t(a+".line.dash",r.line.dash)}});var B7=G((nEe,jZ)=>{"use strict";var ic=Se(),Yy=ic._,Gy=Qr(),V9e=wu(),td=(Rt(),Fe(Nt)).BADNUM;function X9e(e,r){var t=Gy.getFromId(e,r.xaxis),a=Gy.getFromId(e,r.yaxis),n=Z9e(e,t,r),i=r._minDiff;r._minDiff=null;var l=r._origX;r._origX=null;var o=r._xcalc;r._xcalc=null;var s=KZ(e,r,l,o,a,W9e);return r._extremes[t._id]=Gy.findExtremes(t,o,{vpad:i/2}),s.length?(ic.extendFlat(s[0].t,{wHover:i/2,tickLen:n}),s):[{t:{empty:!0}}]}function W9e(e,r,t,a){return{o:e,h:r,l:t,c:a}}function KZ(e,r,t,a,n,i){for(var l=n.makeCalcdata(r,"open"),o=n.makeCalcdata(r,"high"),s=n.makeCalcdata(r,"low"),u=n.makeCalcdata(r,"close"),f=ic.isArrayOrTypedArray(r.text),c=ic.isArrayOrTypedArray(r.hovertext),v=!0,h=null,p=!!r.xperiodalignment,m=[],y=0;yh):v=M>_,h=M;var A=i(_,w,b,M);A.pos=x,A.yc=(_+M)/2,A.i=y,A.dir=v?"increasing":"decreasing",A.x=A.pos,A.y=[b,w],p&&(A.orig_p=t[y]),f&&(A.tx=r.text[y]),c&&(A.htx=r.hovertext[y]),m.push(A)}else m.push({pos:x,empty:!0})}return r._extremes[n._id]=Gy.findExtremes(n,ic.concat(s,o),{padded:!0}),m.length&&(m[0].t={labels:{open:Yy(e,"open:")+" ",high:Yy(e,"high:")+" ",low:Yy(e,"low:")+" ",close:Yy(e,"close:")+" "}}),m}function Z9e(e,r,t){var a=t._minDiff;if(!a){var n=e._fullData,i=[];a=1/0;var l;for(l=0;l{"use strict";var J9e=Er(),QZ=Se();eJ.exports=function(r,t,a,n){var i=t.yaxis,l=t.xaxis,o=!!l.rangebreaks;QZ.makeTraceGroups(n,a,"trace ohlc").each(function(s){var u=J9e.select(this),f=s[0],c=f.t,v=f.trace;if(v.visible!==!0||c.empty){u.remove();return}var h=c.tickLen,p=u.selectAll("path").data(QZ.identity);p.enter().append("path"),p.exit().remove(),p.attr("d",function(m){if(m.empty)return"M0,0Z";var y=l.c2p(m.pos-h,!0),x=l.c2p(m.pos+h,!0),_=o?(y+x)/2:l.c2p(m.pos,!0),w=i.c2p(m.o,!0),b=i.c2p(m.h,!0),M=i.c2p(m.l,!0),A=i.c2p(m.c,!0);return"M"+y+","+w+"H"+_+"M"+_+","+b+"V"+M+"M"+x+","+A+"H"+_})})}});var aJ=G((lEe,tJ)=>{"use strict";var H7=Er(),$9e=$r(),K9e=kr();tJ.exports=function(r,t,a){var n=a||H7.select(r).selectAll("g.ohlclayer").selectAll("g.trace");n.style("opacity",function(i){return i[0].trace.opacity}),n.each(function(i){var l=i[0].trace;H7.select(this).selectAll("path").each(function(o){if(!o.empty){var s=l[o.dir].line;H7.select(this).style("fill","none").call(K9e.stroke,s.color).call($9e.dashLine,s.dash,s.width).style("opacity",l.selectedpoints&&!o.selected?.3:1)}})})}});var Y7=G((oEe,sJ)=>{"use strict";var O7=Qr(),j9e=Se(),Uy=xi(),Q9e=kr(),ewe=Se().fillText,nJ=(Uf(),Fe(Gf)),rwe={increasing:nJ.INCREASING.SYMBOL,decreasing:nJ.DECREASING.SYMBOL};function twe(e,r,t,a){var n=e.cd,i=n[0].trace;return i.hoverlabel.split?lJ(e,r,t,a):oJ(e,r,t,a)}function iJ(e,r,t,a){var n=e.cd,i=e.xa,l=n[0].trace,o=n[0].t,s=l.type,u=s==="ohlc"?"l":"min",f=s==="ohlc"?"h":"max",c,v,h=o.bPos||0,p=function(P){return P.pos+h-r},m=o.bdPos||o.tickLen,y=o.wHover,x=Math.min(1,m/Math.abs(i.r2c(i.range[1])-i.r2c(i.range[0])));c=e.maxHoverDistance-x,v=e.maxSpikeDistance-x;function _(P){var R=p(P);return Uy.inbox(R-y,R+y,c)}function w(P){var R=P[u],F=P[f];return R===F||Uy.inbox(R-t,F-t,c)}function b(P){return(_(P)+w(P))/2}var M=Uy.getDistanceFunction(a,_,w,b);if(Uy.getClosest(n,M,e),e.index===!1)return null;var A=n[e.index];if(A.empty)return null;var k=A.dir,S=l[k],D=S.line.color;return Q9e.opacity(D)&&S.line.width?e.color=D:e.color=S.fillcolor,e.x0=i.c2p(A.pos+h-m,!0),e.x1=i.c2p(A.pos+h+m,!0),e.xLabelVal=A.orig_p!==void 0?A.orig_p:A.pos,e.spikeDistance=b(A)*v/c,e.xSpike=i.c2p(A.pos,!0),e}function lJ(e,r,t,a){var n=e.cd,i=e.ya,l=n[0].trace,o=n[0].t,s=[],u=iJ(e,r,t,a);if(!u)return[];var f=n[u.index],c=f.hi||l.hoverinfo||"";if(c==="none"||c==="skip")return[];for(var v=["high","open","close","low"],h={},p=0;p"+o.labels[m]+O7.hoverLabelText(i,y,l.yhoverformat)):(_=j9e.extendFlat({},u),_.y0=_.y1=x,_.yLabelVal=y,_.yLabel=o.labels[m]+O7.hoverLabelText(i,y,l.yhoverformat),_.name="",s.push(_),h[y]=_)}return s}function oJ(e,r,t,a){var n=e.cd,i=e.ya,l=n[0].trace,o=n[0].t,s=iJ(e,r,t,a);if(!s)return[];var u=s.index,f=n[u],c=s.index=f.i,v=f.dir;function h(b){return o.labels[b]+O7.hoverLabelText(i,l[b][c],l.yhoverformat)}var p=f.hi||l.hoverinfo||"",m=p.split("+"),y=p==="all",x=y||m.indexOf("y")!==-1,_=y||m.indexOf("text")!==-1,w=x?[h("open"),h("high"),h("low"),h("close")+" "+rwe[v]]:[];return _&&ewe(f,l,w),s.extraText=w.join("
"),s.y0=s.y1=i.c2p(f.yc,!0),[s]}sJ.exports={hoverPoints:twe,hoverSplit:lJ,hoverOnPoints:oJ}});var G7=G((sEe,uJ)=>{"use strict";uJ.exports=function(r,t){var a=r.cd,n=r.xaxis,i=r.yaxis,l=[],o,s=a[0].t.bPos||0;if(t===!1)for(o=0;o{"use strict";fJ.exports={moduleType:"trace",name:"ohlc",basePlotModule:ao(),categories:["cartesian","svg","showLegend"],meta:{},attributes:Oy(),supplyDefaults:$Z(),calc:B7().calc,plot:rJ(),style:aJ(),hoverPoints:Y7().hoverPoints,selectPoints:G7()}});var dJ=G((fEe,vJ)=>{"use strict";vJ.exports=cJ()});var gJ=G((cEe,yJ)=>{"use strict";var awe=E4(),Ei=Ki(),hJ=so(),nwe=vi(),pJ=Xi().axisHoverFormat,{hovertemplateAttrs:iwe,templatefallbackAttrs:lwe}=Vn(),ho=At().extendFlat,lc=Ei.marker,mJ=lc.line;yJ.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:Ei.xperiod,yperiod:Ei.yperiod,xperiod0:Ei.xperiod0,yperiod0:Ei.yperiod0,xperiodalignment:Ei.xperiodalignment,yperiodalignment:Ei.yperiodalignment,xhoverformat:pJ("x"),yhoverformat:pJ("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:ho({},lc.symbol,{arrayOk:!1,editType:"plot"}),opacity:ho({},lc.opacity,{arrayOk:!1,dflt:1,editType:"style"}),angle:ho({},lc.angle,{arrayOk:!1,editType:"calc"}),size:ho({},lc.size,{arrayOk:!1,editType:"calc"}),color:ho({},lc.color,{arrayOk:!1,editType:"style"}),line:{color:ho({},mJ.color,{arrayOk:!1,dflt:nwe.defaultLine,editType:"style"}),width:ho({},mJ.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:awe(),whiskerwidth:{valType:"number",min:0,max:1,dflt:.5,editType:"calc"},showwhiskers:{valType:"boolean",editType:"calc"},offsetgroup:hJ.offsetgroup,alignmentgroup:hJ.alignmentgroup,selected:{marker:Ei.selected.marker,editType:"style"},unselected:{marker:Ei.unselected.marker,editType:"style"},text:ho({},Ei.text,{}),hovertext:ho({},Ei.hovertext,{}),hovertemplate:iwe({}),hovertemplatefallback:lwe(),hoveron:{valType:"flaglist",flags:["boxes","points"],dflt:"boxes+points",editType:"style"},zorder:Ei.zorder}});var V7=G((vEe,_J)=>{"use strict";var U7=Se().extendFlat,xJ=Xi().axisHoverFormat,kn=Oy(),oc=gJ();function bJ(e){return{line:{color:U7({},oc.line.color,{dflt:e}),width:oc.line.width,editType:"style"},fillcolor:oc.fillcolor,editType:"style"}}_J.exports={xperiod:kn.xperiod,xperiod0:kn.xperiod0,xperiodalignment:kn.xperiodalignment,xhoverformat:xJ("x"),yhoverformat:xJ("y"),x:kn.x,open:kn.open,high:kn.high,low:kn.low,close:kn.close,line:{width:U7({},oc.line.width,{}),editType:"style"},increasing:bJ(kn.increasing.line.color.dflt),decreasing:bJ(kn.decreasing.line.color.dflt),text:kn.text,hovertext:kn.hovertext,hovertemplate:kn.hovertemplate,hovertemplatefallback:kn.hovertemplatefallback,whiskerwidth:U7({},oc.whiskerwidth,{dflt:0}),hoverlabel:kn.hoverlabel,zorder:oc.zorder}});var X7=G((dEe,wJ)=>{"use strict";wJ.exports={boxmode:{valType:"enumerated",values:["group","overlay"],dflt:"overlay",editType:"calc"},boxgap:{valType:"number",min:0,max:1,dflt:.3,editType:"calc"},boxgroupgap:{valType:"number",min:0,max:1,dflt:.3,editType:"calc"}}});var AJ=G((hEe,MJ)=>{"use strict";var owe=Ar(),swe=Se(),uwe=X7();function TJ(e,r,t,a,n){for(var i=n+"Layout",l=!1,o=0;o{"use strict";var kJ=Qr(),cwe=Se(),vwe=mu().getAxisGroup,LJ=["v","h"];function dwe(e,r){for(var t=e.calcdata,a=r.xaxis,n=r.yaxis,i=0;i1,_=1-i[e+"gap"],w=1-i[e+"groupgap"];for(s=0;s0;if(k==="positive"?(V=S*(A?1:.5),U=W,X=U=P):k==="negative"?(V=U=P,X=S*(A?1:.5),$=W):(V=X=S,U=$=W),ie){var Me=b.pointpos,ue=b.jitter,ce=b.marker.size/2,Te=0;Me+ue>=0&&(Te=W*(Me+ue),Te>V?(me=!0,oe=ce,re=Te):Te>U&&(oe=ce,re=V)),Te<=V&&(re=V);var Ne=0;Me-ue<=0&&(Ne=-W*(Me-ue),Ne>X?(me=!0,K=ce,se=Ne):Ne>$&&(K=ce,se=X)),Ne<=X&&(se=X)}else re=V,se=X;var ge=new Array(f.length);for(u=0;u{"use strict";var hwe=Se(),pwe=kr(),mwe=I7(),ywe=_u(),gwe=V7();PJ.exports=function(r,t,a,n){function i(o,s){return hwe.coerce(r,t,gwe,o,s)}var l=mwe(r,t,i,n);if(!l){t.visible=!1;return}ywe(r,t,n,i,{x:!0}),i("xhoverformat"),i("yhoverformat"),i("line.width"),DJ(r,t,i,"increasing"),DJ(r,t,i,"decreasing"),i("text"),i("hovertext"),i("hovertemplate"),i("hovertemplatefallback"),i("whiskerwidth"),n._requestRangeslider[t.xaxis]=!0,i("zorder")};function DJ(e,r,t,a){var n=t(a+".line.color");t(a+".line.width",r.line.width),t(a+".fillcolor",pwe.addOpacity(n,.5))}});var NJ=G((yEe,FJ)=>{"use strict";var RJ=Se(),zJ=Qr(),xwe=wu(),bwe=B7().calcCommon;FJ.exports=function(e,r){var t=e._fullLayout,a=zJ.getFromId(e,r.xaxis),n=zJ.getFromId(e,r.yaxis),i=a.makeCalcdata(r,"x"),l=xwe(r,a,"x",i).vals,o=bwe(e,r,i,l,n,_we);return o.length?(RJ.extendFlat(o[0].t,{num:t._numBoxes,dPos:RJ.distinctVals(l).minDiff/2,posLetter:"x",valLetter:"y"}),t._numBoxes++,o):[{t:{empty:!0}}]};function _we(e,r,t,a){return{min:t,q1:Math.min(e,a),med:a,q3:Math.max(e,a),max:r}}});var GJ=G((gEe,YJ)=>{"use strict";var sc=Er(),Zu=Se(),wwe=$r(),IJ=5,Twe=.01;function Mwe(e,r,t,a){var n=e._context.staticPlot,i=r.xaxis,l=r.yaxis;Zu.makeTraceGroups(a,t,"trace boxes").each(function(o){var s=sc.select(this),u=o[0],f=u.t,c=u.trace;if(f.wdPos=f.bdPos*c.whiskerwidth,c.visible!==!0||f.empty){s.remove();return}var v,h;c.orientation==="h"?(v=l,h=i):(v=i,h=l),BJ(s,{pos:v,val:h},c,f,n),HJ(s,{x:i,y:l},c,f),OJ(s,{pos:v,val:h},c,f)})}function BJ(e,r,t,a,n){var i=t.orientation==="h",l=r.val,o=r.pos,s=!!o.rangebreaks,u=a.bPos,f=a.wdPos||0,c=a.bPosPxOffset||0,v=t.whiskerwidth||0,h=t.showwhiskers!==!1,p=t.notched||!1,m=p?1-2*t.notchwidth:1,y,x;Array.isArray(a.bdPos)?(y=a.bdPos[0],x=a.bdPos[1]):(y=a.bdPos,x=a.bdPos);var _=e.selectAll("path.box").data(t.type!=="violin"||t.box.visible?Zu.identity:[]);_.enter().append("path").style("vector-effect",n?"none":"non-scaling-stroke").attr("class","box"),_.exit().remove(),_.each(function(w){if(w.empty)return sc.select(this).attr("d","M0,0Z");var b=o.c2l(w.pos+u,!0),M=o.l2p(b-y)+c,A=o.l2p(b+x)+c,k=s?(M+A)/2:o.l2p(b)+c,S=t.whiskerwidth,D=s?M*S+(1-S)*k:o.l2p(b-f)+c,P=s?A*S+(1-S)*k:o.l2p(b+f)+c,R=o.l2p(b-y*m)+c,F=o.l2p(b+x*m)+c,B=t.sizemode==="sd",H=l.c2p(B?w.mean-w.sd:w.q1,!0),N=B?l.c2p(w.mean+w.sd,!0):l.c2p(w.q3,!0),Y=Zu.constrain(B?l.c2p(w.mean,!0):l.c2p(w.med,!0),Math.min(H,N)+1,Math.max(H,N)-1),O=w.lf===void 0||t.boxpoints===!1||B,V=l.c2p(O?w.min:w.lf,!0),X=l.c2p(O?w.max:w.uf,!0),W=l.c2p(w.ln,!0),U=l.c2p(w.un,!0);i?sc.select(this).attr("d","M"+Y+","+R+"V"+F+"M"+H+","+M+"V"+A+(p?"H"+W+"L"+Y+","+F+"L"+U+","+A:"")+"H"+N+"V"+M+(p?"H"+U+"L"+Y+","+R+"L"+W+","+M:"")+"Z"+(h?"M"+H+","+k+"H"+V+"M"+N+","+k+"H"+X+(v===0?"":"M"+V+","+D+"V"+P+"M"+X+","+D+"V"+P):"")):sc.select(this).attr("d","M"+R+","+Y+"H"+F+"M"+M+","+H+"H"+A+(p?"V"+W+"L"+F+","+Y+"L"+A+","+U:"")+"V"+N+"H"+M+(p?"V"+U+"L"+R+","+Y+"L"+M+","+W:"")+"Z"+(h?"M"+k+","+H+"V"+V+"M"+k+","+N+"V"+X+(v===0?"":"M"+D+","+V+"H"+P+"M"+D+","+X+"H"+P):""))})}function HJ(e,r,t,a){var n=r.x,i=r.y,l=a.bdPos,o=a.bPos,s=t.boxpoints||t.points;Zu.seedPseudoRandom();var u=function(v){return v.forEach(function(h){h.t=a,h.trace=t}),v},f=e.selectAll("g.points").data(s?u:[]);f.enter().append("g").attr("class","points"),f.exit().remove();var c=f.selectAll("path").data(function(v){var h,p=v.pts2,m=Math.max((v.max-v.min)/10,v.q3-v.q1),y=m*1e-9,x=m*Twe,_=[],w=0,b;if(t.jitter){if(m===0)for(w=1,_=new Array(p.length),h=0;hv.lo&&(P.so=!0)}return p});c.enter().append("path").classed("point",!0),c.exit().remove(),c.call(wwe.translatePoints,n,i)}function OJ(e,r,t,a){var n=r.val,i=r.pos,l=!!i.rangebreaks,o=a.bPos,s=a.bPosPxOffset||0,u=t.boxmean||(t.meanline||{}).visible,f,c;Array.isArray(a.bdPos)?(f=a.bdPos[0],c=a.bdPos[1]):(f=a.bdPos,c=a.bdPos);var v=e.selectAll("path.mean").data(t.type==="box"&&t.boxmean||t.type==="violin"&&t.box.visible&&t.meanline.visible?Zu.identity:[]);v.enter().append("path").attr("class","mean").style({fill:"none","vector-effect":"non-scaling-stroke"}),v.exit().remove(),v.each(function(h){var p=i.c2l(h.pos+o,!0),m=i.l2p(p-f)+s,y=i.l2p(p+c)+s,x=l?(m+y)/2:i.l2p(p)+s,_=n.c2p(h.mean,!0),w=n.c2p(h.mean-h.sd,!0),b=n.c2p(h.mean+h.sd,!0);t.orientation==="h"?sc.select(this).attr("d","M"+_+","+m+"V"+y+(u==="sd"?"m0,0L"+w+","+x+"L"+_+","+m+"L"+b+","+x+"Z":"")):sc.select(this).attr("d","M"+m+","+_+"H"+y+(u==="sd"?"m0,0L"+x+","+w+"L"+m+","+_+"L"+x+","+b+"Z":""))})}YJ.exports={plot:Mwe,plotBoxAndWhiskers:BJ,plotPoints:HJ,plotBoxMean:OJ}});var VJ=G((xEe,UJ)=>{"use strict";var W7=Er(),Z7=kr(),J7=$r();function Awe(e,r,t){var a=t||W7.select(e).selectAll("g.trace.boxes");a.style("opacity",function(n){return n[0].trace.opacity}),a.each(function(n){var i=W7.select(this),l=n[0].trace,o=l.line.width;function s(c,v,h,p){c.style("stroke-width",v+"px").call(Z7.stroke,h).call(Z7.fill,p)}var u=i.selectAll("path.box");if(l.type==="candlestick")u.each(function(c){if(!c.empty){var v=W7.select(this),h=l[c.dir];s(v,h.line.width,h.line.color,h.fillcolor),v.style("opacity",l.selectedpoints&&!c.selected?.3:1)}});else{s(u,o,l.line.color,l.fillcolor),i.selectAll("path.mean").style({"stroke-width":o,"stroke-dasharray":2*o+"px,"+o+"px"}).call(Z7.stroke,l.line.color);var f=i.selectAll("path.point");J7.pointStyle(f,l,e)}})}function kwe(e,r,t){var a=r[0].trace,n=t.selectAll("path.point");a.selectedpoints?J7.selectedPointStyle(n,a):J7.pointStyle(n,a,e)}UJ.exports={style:Awe,styleOnSelect:kwe}});var WJ=G((bEe,XJ)=>{"use strict";XJ.exports={moduleType:"trace",name:"candlestick",basePlotModule:ao(),categories:["cartesian","svg","showLegend","candlestick","boxLayout"],meta:{},attributes:V7(),layoutAttributes:X7(),supplyLayoutDefaults:AJ().supplyLayoutDefaults,crossTraceCalc:qJ().crossTraceCalc,supplyDefaults:EJ(),calc:NJ(),plot:GJ().plot,layerName:"boxlayer",style:VJ().style,hoverPoints:Y7().hoverPoints,selectPoints:G7()}});var JJ=G((_Ee,ZJ)=>{"use strict";ZJ.exports=WJ()});var ln=G((wEe,KJ)=>{"use strict";var $J=Object.getOwnPropertySymbols,Lwe=Object.prototype.hasOwnProperty,Cwe=Object.prototype.propertyIsEnumerable;function Swe(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function qwe(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var r={},t=0;t<10;t++)r["_"+String.fromCharCode(t)]=t;var a=Object.getOwnPropertyNames(r).map(function(i){return r[i]});if(a.join("")!=="0123456789")return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach(function(i){n[i]=i}),Object.keys(Object.assign({},n)).join("")==="abcdefghijklmnopqrst"}catch(i){return!1}}KJ.exports=qwe()?Object.assign:function(e,r){for(var t,a=Swe(e),n,i=1;i{var Xy=ln();function jJ(){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={}}Xy(jJ.prototype,{instance:function(e,r){e=(e||"gregorian").toLowerCase(),r=r||"";var t=this._localCals[e+"-"+r];if(!t&&this.calendars[e]&&(t=new this.calendars[e](r),this._localCals[e+"-"+r]=t),!t)throw(this.local.invalidCalendar||this.regionalOptions[""].invalidCalendar).replace(/\{0\}/,e);return t},newDate:function(e,r,t,a,n){return a=(e!=null&&e.year?e.calendar():typeof a=="string"?this.instance(a,n):a)||this.instance(),a.newDate(e,r,t)},substituteDigits:function(e){return function(r){return(r+"").replace(/[0-9]/g,function(t){return e[t]})}},substituteChineseDigits:function(e,r){return function(t){for(var a="",n=0;t>0;){var i=t%10;a=(i===0?"":e[i]+r[n])+a,n++,t=Math.floor(t/10)}return a.indexOf(e[1]+r[1])===0&&(a=a.substr(1)),a||e[0]}}});function $7(e,r,t,a){if(this._calendar=e,this._year=r,this._month=t,this._day=a,this._calendar._validateLevel===0&&!this._calendar.isValid(this._year,this._month,this._day))throw(Yr.local.invalidDate||Yr.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name)}function Vy(e,r){return e=""+e,"000000".substring(0,r-e.length)+e}Xy($7.prototype,{newDate:function(e,r,t){return this._calendar.newDate(e==null?this:e,r,t)},year:function(e){return arguments.length===0?this._year:this.set(e,"y")},month:function(e){return arguments.length===0?this._month:this.set(e,"m")},day:function(e){return arguments.length===0?this._day:this.set(e,"d")},date:function(e,r,t){if(!this._calendar.isValid(e,r,t))throw(Yr.local.invalidDate||Yr.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name);return this._year=e,this._month=r,this._day=t,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(e,r){return this._calendar.add(this,e,r)},set:function(e,r){return this._calendar.set(this,e,r)},compareTo:function(e){if(this._calendar.name!==e._calendar.name)throw(Yr.local.differentCalendars||Yr.regionalOptions[""].differentCalendars).replace(/\{0\}/,this._calendar.local.name).replace(/\{1\}/,e._calendar.local.name);var r=this._year!==e._year?this._year-e._year:this._month!==e._month?this.monthOfYear()-e.monthOfYear():this._day-e._day;return r===0?0:r<0?-1:1},calendar:function(){return this._calendar},toJD:function(){return this._calendar.toJD(this)},fromJD:function(e){return this._calendar.fromJD(e)},toJSDate:function(){return this._calendar.toJSDate(this)},fromJSDate:function(e){return this._calendar.fromJSDate(e)},toString:function(){return(this.year()<0?"-":"")+Vy(Math.abs(this.year()),4)+"-"+Vy(this.month(),2)+"-"+Vy(this.day(),2)}});function K7(){this.shortYearCutoff="+10"}Xy(K7.prototype,{_validateLevel:0,newDate:function(e,r,t){return e==null?this.today():(e.year&&(this._validate(e,r,t,Yr.local.invalidDate||Yr.regionalOptions[""].invalidDate),t=e.day(),r=e.month(),e=e.year()),new $7(this,e,r,t))},today:function(){return this.fromJSDate(new Date)},epoch:function(e){var r=this._validate(e,this.minMonth,this.minDay,Yr.local.invalidYear||Yr.regionalOptions[""].invalidYear);return r.year()<0?this.local.epochs[0]:this.local.epochs[1]},formatYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Yr.local.invalidYear||Yr.regionalOptions[""].invalidYear);return(r.year()<0?"-":"")+Vy(Math.abs(r.year()),4)},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Yr.local.invalidYear||Yr.regionalOptions[""].invalidYear),12},monthOfYear:function(e,r){var t=this._validate(e,r,this.minDay,Yr.local.invalidMonth||Yr.regionalOptions[""].invalidMonth);return(t.month()+this.monthsInYear(t)-this.firstMonth)%this.monthsInYear(t)+this.minMonth},fromMonthOfYear:function(e,r){var t=(r+this.firstMonth-2*this.minMonth)%this.monthsInYear(e)+this.minMonth;return this._validate(e,t,this.minDay,Yr.local.invalidMonth||Yr.regionalOptions[""].invalidMonth),t},daysInYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Yr.local.invalidYear||Yr.regionalOptions[""].invalidYear);return this.leapYear(r)?366:365},dayOfYear:function(e,r,t){var a=this._validate(e,r,t,Yr.local.invalidDate||Yr.regionalOptions[""].invalidDate);return a.toJD()-this.newDate(a.year(),this.fromMonthOfYear(a.year(),this.minMonth),this.minDay).toJD()+1},daysInWeek:function(){return 7},dayOfWeek:function(e,r,t){var a=this._validate(e,r,t,Yr.local.invalidDate||Yr.regionalOptions[""].invalidDate);return(Math.floor(this.toJD(a))+2)%this.daysInWeek()},extraInfo:function(e,r,t){return this._validate(e,r,t,Yr.local.invalidDate||Yr.regionalOptions[""].invalidDate),{}},add:function(e,r,t){return this._validate(e,this.minMonth,this.minDay,Yr.local.invalidDate||Yr.regionalOptions[""].invalidDate),this._correctAdd(e,this._add(e,r,t),r,t)},_add:function(e,r,t){if(this._validateLevel++,t==="d"||t==="w"){var a=e.toJD()+r*(t==="w"?this.daysInWeek():1),n=e.calendar().fromJD(a);return this._validateLevel--,[n.year(),n.month(),n.day()]}try{var i=e.year()+(t==="y"?r:0),l=e.monthOfYear()+(t==="m"?r:0),n=e.day(),o=function(f){for(;lc-1+f.minMonth;)i++,l-=c,c=f.monthsInYear(i)};t==="y"?(e.month()!==this.fromMonthOfYear(i,l)&&(l=this.newDate(i,e.month(),this.minDay).monthOfYear()),l=Math.min(l,this.monthsInYear(i)),n=Math.min(n,this.daysInMonth(i,this.fromMonthOfYear(i,l)))):t==="m"&&(o(this),n=Math.min(n,this.daysInMonth(i,this.fromMonthOfYear(i,l))));var s=[i,this.fromMonthOfYear(i,l),n];return this._validateLevel--,s}catch(u){throw this._validateLevel--,u}},_correctAdd:function(e,r,t,a){if(!this.hasYearZero&&(a==="y"||a==="m")&&(r[0]===0||e.year()>0!=r[0]>0)){var n={y:[1,1,"y"],m:[1,this.monthsInYear(-1),"m"],w:[this.daysInWeek(),this.daysInYear(-1),"d"],d:[1,this.daysInYear(-1),"d"]}[a],i=t<0?-1:1;r=this._add(e,t*n[0]+i*n[1],n[2])}return e.date(r[0],r[1],r[2])},set:function(e,r,t){this._validate(e,this.minMonth,this.minDay,Yr.local.invalidDate||Yr.regionalOptions[""].invalidDate);var a=t==="y"?r:e.year(),n=t==="m"?r:e.month(),i=t==="d"?r:e.day();return(t==="y"||t==="m")&&(i=Math.min(i,this.daysInMonth(a,n))),e.date(a,n,i)},isValid:function(e,r,t){this._validateLevel++;var a=this.hasYearZero||e!==0;if(a){var n=this.newDate(e,r,this.minDay);a=r>=this.minMonth&&r-this.minMonth=this.minDay&&t-this.minDay13.5?13:1),u=n-(s>2.5?4716:4715);return u<=0&&u--,this.newDate(u,s,o)},toJSDate:function(e,r,t){var a=this._validate(e,r,t,Yr.local.invalidDate||Yr.regionalOptions[""].invalidDate),n=new Date(a.year(),a.month()-1,a.day());return n.setHours(0),n.setMinutes(0),n.setSeconds(0),n.setMilliseconds(0),n.setHours(n.getHours()>12?n.getHours()+2:0),n},fromJSDate:function(e){return this.newDate(e.getFullYear(),e.getMonth()+1,e.getDate())}});var Yr=QJ.exports=new jJ;Yr.cdate=$7;Yr.baseCalendar=K7;Yr.calendars.gregorian=j7});var e$=G(()=>{var Q7=ln(),Ba=on();Q7(Ba.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"});Ba.local=Ba.regionalOptions[""];Q7(Ba.cdate.prototype,{formatDate:function(e,r){return typeof e!="string"&&(r=e,e=""),this._calendar.formatDate(e||"",this,r)}});Q7(Ba.baseCalendar.prototype,{UNIX_EPOCH:Ba.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:1440*60,TICKS_EPOCH:Ba.instance().jdEpoch,TICKS_PER_DAY:1440*60*1e7,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(e,r,t){if(typeof e!="string"&&(t=r,r=e,e=""),!r)return"";if(r.calendar()!==this)throw Ba.local.invalidFormat||Ba.regionalOptions[""].invalidFormat;e=e||this.local.dateFormat,t=t||{};for(var a=t.dayNamesShort||this.local.dayNamesShort,n=t.dayNames||this.local.dayNames,i=t.monthNumbers||this.local.monthNumbers,l=t.monthNamesShort||this.local.monthNamesShort,o=t.monthNames||this.local.monthNames,s=t.calculateWeek||this.local.calculateWeek,u=function(b,M){for(var A=1;w+A1},f=function(b,M,A,k){var S=""+M;if(u(b,k))for(;S.length1},_=function(F,B){var H=x(F,B),N=[2,3,H?4:2,H?4:2,10,11,20]["oyYJ@!".indexOf(F)+1],Y=new RegExp("^-?\\d{1,"+N+"}"),O=r.substring(S).match(Y);if(!O)throw(Ba.local.missingNumberAt||Ba.regionalOptions[""].missingNumberAt).replace(/\{0\}/,S);return S+=O[0].length,parseInt(O[0],10)},w=this,b=function(){if(typeof o=="function"){x("m");var F=o.call(w,r.substring(S));return S+=F.length,F}return _("m")},M=function(F,B,H,N){for(var Y=x(F,N)?H:B,O=0;O-1){v=1,h=p;for(var R=this.daysInMonth(c,v);h>R;R=this.daysInMonth(c,v))v++,h-=R}return f>-1?this.fromJD(f):this.newDate(c,v,h)},determineDate:function(e,r,t,a,n){t&&typeof t!="object"&&(n=a,a=t,t=null),typeof a!="string"&&(n=a,a="");var i=this,l=function(o){try{return i.parseDate(a,o,n)}catch(c){}o=o.toLowerCase();for(var s=(o.match(/^c/)&&t?t.newDate():null)||i.today(),u=/([+-]?[0-9]+)\s*(d|w|m|y)?/g,f=u.exec(o);f;)s.add(parseInt(f[1],10),f[2]||"d"),f=u.exec(o);return s};return r=r?r.newDate():null,e=e==null?r:typeof e=="string"?l(e):typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?r:i.today().add(e,"d"):i.newDate(e),e}})});var r$=G(()=>{var gs=on(),Dwe=ln(),e8=gs.instance();function Wy(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}Wy.prototype=new gs.baseCalendar;Dwe(Wy.prototype,{name:"Chinese",jdEpoch:17214255e-1,hasYearZero:!1,minMonth:0,firstMonth:0,minDay:1,regionalOptions:{"":{name:"Chinese",epochs:["BEC","EC"],monthNumbers:function(e,r){if(typeof e=="string"){var t=e.match(Ewe);return t?t[0]:""}var a=this._validateYear(e),n=e.month(),i=""+this.toChineseMonth(a,n);return r&&i.length<2&&(i="0"+i),this.isIntercalaryMonth(a,n)&&(i+="i"),i},monthNames:function(e){if(typeof e=="string"){var r=e.match(Rwe);return r?r[0]:""}var t=this._validateYear(e),a=e.month(),n=this.toChineseMonth(t,a),i=["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"][n-1];return this.isIntercalaryMonth(t,a)&&(i="\u95F0"+i),i},monthNamesShort:function(e){if(typeof e=="string"){var r=e.match(zwe);return r?r[0]:""}var t=this._validateYear(e),a=e.month(),n=this.toChineseMonth(t,a),i=["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"][n-1];return this.isIntercalaryMonth(t,a)&&(i="\u95F0"+i),i},parseMonth:function(e,r){e=this._validateYear(e);var t=parseInt(r),a;if(isNaN(t))r[0]==="\u95F0"&&(a=!0,r=r.substring(1)),r[r.length-1]==="\u6708"&&(r=r.substring(0,r.length-1)),t=1+["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"].indexOf(r);else{var n=r[r.length-1];a=n==="i"||n==="I"}var i=this.toMonthIndex(e,t,a);return i},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(e,r){if(e.year&&(e=e.year()),typeof e!="number"||e<1888||e>2111)throw r.replace(/\{0\}/,this.local.name);return e},toMonthIndex:function(e,r,t){var a=this.intercalaryMonth(e),n=t&&r!==a;if(n||r<1||r>12)throw gs.local.invalidMonth.replace(/\{0\}/,this.local.name);var i;return a?!t&&r<=a?i=r-1:i=r:i=r-1,i},toChineseMonth:function(e,r){e.year&&(e=e.year(),r=e.month());var t=this.intercalaryMonth(e),a=t?12:11;if(r<0||r>a)throw gs.local.invalidMonth.replace(/\{0\}/,this.local.name);var n;return t?r>13;return t},isIntercalaryMonth:function(e,r){e.year&&(e=e.year(),r=e.month());var t=this.intercalaryMonth(e);return!!t&&t===r},leapYear:function(e){return this.intercalaryMonth(e)!==0},weekOfYear:function(e,r,t){var a=this._validateYear(e,gs.local.invalidyear),n=bs[a-bs[0]],i=n>>9&4095,l=n>>5&15,o=n&31,s;s=e8.newDate(i,l,o),s.add(4-(s.dayOfWeek()||7),"d");var u=this.toJD(e,r,t)-s.toJD();return 1+Math.floor(u/7)},monthsInYear:function(e){return this.leapYear(e)?13:12},daysInMonth:function(e,r){e.year&&(r=e.month(),e=e.year()),e=this._validateYear(e);var t=xs[e-xs[0]],a=t>>13,n=a?12:11;if(r>n)throw gs.local.invalidMonth.replace(/\{0\}/,this.local.name);var i=t&1<<12-r?30:29;return i},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var a=this._validate(e,i,t,gs.local.invalidDate);e=this._validateYear(a.year()),r=a.month(),t=a.day();var n=this.isIntercalaryMonth(e,r),i=this.toChineseMonth(e,r),l=Nwe(e,i,t,n);return e8.toJD(l.year,l.month,l.day)},fromJD:function(e){var r=e8.fromJD(e),t=Fwe(r.year(),r.month(),r.day()),a=this.toMonthIndex(t.year,t.month,t.isIntercalary);return this.newDate(t.year,a,t.day)},fromString:function(e){var r=e.match(Pwe),t=this._validateYear(+r[1]),a=+r[2],n=!!r[3],i=this.toMonthIndex(t,a,n),l=+r[4];return this.newDate(t,i,l)},add:function(e,r,t){var a=e.year(),n=e.month(),i=this.isIntercalaryMonth(a,n),l=this.toChineseMonth(a,n),o=Object.getPrototypeOf(Wy.prototype).add.call(this,e,r,t);if(t==="y"){var s=o.year(),u=o.month(),f=this.isIntercalaryMonth(s,l),c=i&&f?this.toMonthIndex(s,l,!0):this.toMonthIndex(s,l,!1);c!==u&&o.month(c)}return o}});var Pwe=/^\s*(-?\d\d\d\d|\d\d)[-/](\d?\d)([iI]?)[-/](\d?\d)/m,Ewe=/^\d?\d[iI]?/m,Rwe=/^闰?十?[一二三四五六七八九]?月/m,zwe=/^闰?十?[一二三四五六七八九]?/m;gs.calendars.chinese=Wy;var xs=[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],bs=[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 Fwe(e,r,t,a){var n,i;if(typeof e=="object")n=e,i=r||{};else{var l=typeof e=="number"&&e>=1888&&e<=2111;if(!l)throw new Error("Solar year outside range 1888-2111");var o=typeof r=="number"&&r>=1&&r<=12;if(!o)throw new Error("Solar month outside range 1 - 12");var s=typeof t=="number"&&t>=1&&t<=31;if(!s)throw new Error("Solar day outside range 1 - 31");n={year:e,month:r,day:t},i=a||{}}var u=bs[n.year-bs[0]],f=n.year<<9|n.month<<5|n.day;i.year=f>=u?n.year:n.year-1,u=bs[i.year-bs[0]];var c=u>>9&4095,v=u>>5&15,h=u&31,p,m=new Date(c,v-1,h),y=new Date(n.year,n.month-1,n.day);p=Math.round((y-m)/(24*3600*1e3));var x=xs[i.year-xs[0]],_;for(_=0;_<13;_++){var w=x&1<<12-_?30:29;if(p>13;return!b||_=1888&&e<=2111;if(!o)throw new Error("Lunar year outside range 1888-2111");var s=typeof r=="number"&&r>=1&&r<=12;if(!s)throw new Error("Lunar month outside range 1 - 12");var u=typeof t=="number"&&t>=1&&t<=30;if(!u)throw new Error("Lunar day outside range 1 - 30");var f;typeof a=="object"?(f=!1,i=a):(f=!!a,i=n||{}),l={year:e,month:r,day:t,isIntercalary:f}}var c;c=l.day-1;var v=xs[l.year-xs[0]],h=v>>13,p;h&&(l.month>h||l.isIntercalary)?p=l.month:p=l.month-1;for(var m=0;m>9&4095,w=x>>5&15,b=x&31,M=new Date(_,w-1,b+c);return i.year=M.getFullYear(),i.month=1+M.getMonth(),i.day=M.getDate(),i}});var t$=G(()=>{var Ju=on(),Iwe=ln();function r8(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}r8.prototype=new Ju.baseCalendar;Iwe(r8.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(t){var r=this._validate(t,this.minMonth,this.minDay,Ju.local.invalidYear),t=r.year()+(r.year()<0?1:0);return t%4===3||t%4===-1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Ju.local.invalidYear||Ju.regionalOptions[""].invalidYear),13},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Ju.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===13&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var a=this._validate(e,r,t,Ju.local.invalidDate);return e=a.year(),e<0&&e++,a.day()+(a.month()-1)*30+(e-1)*365+Math.floor(e/4)+this.jdEpoch-1},fromJD:function(e){var r=Math.floor(e)+.5-this.jdEpoch,t=Math.floor((r-Math.floor((r+366)/1461))/365)+1;t<=0&&t--,r=Math.floor(e)+.5-this.newDate(t,1,1).toJD();var a=Math.floor(r/30)+1,n=r-(a-1)*30+1;return this.newDate(t,a,n)}});Ju.calendars.coptic=r8});var a$=G(()=>{var po=on(),Bwe=ln();function t8(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}t8.prototype=new po.baseCalendar;Bwe(t8.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(e){return this._validate(e,this.minMonth,this.minDay,po.local.invalidYear),!1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,po.local.invalidYear),13},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,po.local.invalidYear),400},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/8)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,po.local.invalidMonth);return this.daysPerMonth[t.month()-1]},daysInWeek:function(){return 8},dayOfWeek:function(e,r,t){var a=this._validate(e,r,t,po.local.invalidDate);return(a.day()+1)%8},weekDay:function(e,r,t){var a=this.dayOfWeek(e,r,t);return a>=2&&a<=6},extraInfo:function(e,r,t){var a=this._validate(e,r,t,po.local.invalidDate);return{century:Hwe[Math.floor((a.year()-1)/100)+1]||""}},toJD:function(e,r,t){var a=this._validate(e,r,t,po.local.invalidDate);return e=a.year()+(a.year()<0?1:0),r=a.month(),t=a.day(),t+(r>1?16:0)+(r>2?(r-2)*32:0)+(e-1)*400+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e+.5)-Math.floor(this.jdEpoch)-1;var r=Math.floor(e/400)+1;e-=(r-1)*400,e+=e>15?16:0;var t=Math.floor(e/32)+1,a=e-(t-1)*32+1;return this.newDate(r<=0?r-1:r,t,a)}});var Hwe={20:"Fruitbat",21:"Anchovy"};po.calendars.discworld=t8});var n$=G(()=>{var $u=on(),Owe=ln();function a8(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}a8.prototype=new $u.baseCalendar;Owe(a8.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(t){var r=this._validate(t,this.minMonth,this.minDay,$u.local.invalidYear),t=r.year()+(r.year()<0?1:0);return t%4===3||t%4===-1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,$u.local.invalidYear||$u.regionalOptions[""].invalidYear),13},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,$u.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===13&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var a=this._validate(e,r,t,$u.local.invalidDate);return e=a.year(),e<0&&e++,a.day()+(a.month()-1)*30+(e-1)*365+Math.floor(e/4)+this.jdEpoch-1},fromJD:function(e){var r=Math.floor(e)+.5-this.jdEpoch,t=Math.floor((r-Math.floor((r+366)/1461))/365)+1;t<=0&&t--,r=Math.floor(e)+.5-this.newDate(t,1,1).toJD();var a=Math.floor(r/30)+1,n=r-(a-1)*30+1;return this.newDate(t,a,n)}});$u.calendars.ethiopian=a8});var i$=G(()=>{var _s=on(),Ywe=ln();function n8(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}n8.prototype=new _s.baseCalendar;Ywe(n8.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(e){var r=this._validate(e,this.minMonth,this.minDay,_s.local.invalidYear);return this._leapYear(r.year())},_leapYear:function(e){return e=e<0?e+1:e,Zy(e*7+1,19)<7},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,_s.local.invalidYear),this._leapYear(e.year?e.year():e)?13:12},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,_s.local.invalidYear);return e=r.year(),this.toJD(e===-1?1:e+1,7,1)-this.toJD(e,7,1)},daysInMonth:function(e,r){return e.year&&(r=e.month(),e=e.year()),this._validate(e,r,this.minDay,_s.local.invalidMonth),r===12&&this.leapYear(e)||r===8&&Zy(this.daysInYear(e),10)===5?30:r===9&&Zy(this.daysInYear(e),10)===3?29:this.daysPerMonth[r-1]},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==6},extraInfo:function(e,r,t){var a=this._validate(e,r,t,_s.local.invalidDate);return{yearType:(this.leapYear(a)?"embolismic":"common")+" "+["deficient","regular","complete"][this.daysInYear(a)%10-3]}},toJD:function(e,r,t){var a=this._validate(e,r,t,_s.local.invalidDate);e=a.year(),r=a.month(),t=a.day();var n=e<=0?e+1:e,i=this.jdEpoch+this._delay1(n)+this._delay2(n)+t+1;if(r<7){for(var l=7;l<=this.monthsInYear(e);l++)i+=this.daysInMonth(e,l);for(var l=1;l=this.toJD(r===-1?1:r+1,7,1);)r++;for(var t=ethis.toJD(r,t,this.daysInMonth(r,t));)t++;var a=e-this.toJD(r,t,1)+1;return this.newDate(r,t,a)}});function Zy(e,r){return e-r*Math.floor(e/r)}_s.calendars.hebrew=n8});var l$=G(()=>{var ad=on(),Gwe=ln();function i8(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}i8.prototype=new ad.baseCalendar;Gwe(i8.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\u012Bs","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(e){var r=this._validate(e,this.minMonth,this.minDay,ad.local.invalidYear);return(r.year()*11+14)%30<11},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInYear:function(e){return this.leapYear(e)?355:354},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,ad.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===12&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==5},toJD:function(e,r,t){var a=this._validate(e,r,t,ad.local.invalidDate);return e=a.year(),r=a.month(),t=a.day(),e=e<=0?e+1:e,t+Math.ceil(29.5*(r-1))+(e-1)*354+Math.floor((3+11*e)/30)+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e)+.5;var r=Math.floor((30*(e-this.jdEpoch)+10646)/10631);r=r<=0?r-1:r;var t=Math.min(12,Math.ceil((e-29-this.toJD(r,1,1))/29.5)+1),a=e-this.toJD(r,t,1)+1;return this.newDate(r,t,a)}});ad.calendars.islamic=i8});var o$=G(()=>{var nd=on(),Uwe=ln();function l8(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}l8.prototype=new nd.baseCalendar;Uwe(l8.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(t){var r=this._validate(t,this.minMonth,this.minDay,nd.local.invalidYear),t=r.year()<0?r.year()+1:r.year();return t%4===0},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(4-(a.dayOfWeek()||7),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,nd.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===2&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var a=this._validate(e,r,t,nd.local.invalidDate);return e=a.year(),r=a.month(),t=a.day(),e<0&&e++,r<=2&&(e--,r+=12),Math.floor(365.25*(e+4716))+Math.floor(30.6001*(r+1))+t-1524.5},fromJD:function(e){var r=Math.floor(e+.5),t=r+1524,a=Math.floor((t-122.1)/365.25),n=Math.floor(365.25*a),i=Math.floor((t-n)/30.6001),l=i-Math.floor(i<14?1:13),o=a-Math.floor(l>2?4716:4715),s=t-n-Math.floor(30.6001*i);return o<=0&&o--,this.newDate(o,l,s)}});nd.calendars.julian=l8});var u$=G(()=>{var Ri=on(),Vwe=ln();function s8(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}s8.prototype=new Ri.baseCalendar;Vwe(s8.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(e){return this._validate(e,this.minMonth,this.minDay,Ri.local.invalidYear),!1},formatYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Ri.local.invalidYear);e=r.year();var t=Math.floor(e/400);e=e%400,e+=e<0?400:0;var a=Math.floor(e/20);return t+"."+a+"."+e%20},forYear:function(e){if(e=e.split("."),e.length<3)throw"Invalid Mayan year";for(var r=0,t=0;t19||t>0&&a<0)throw"Invalid Mayan year";r=r*20+a}return r},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Ri.local.invalidYear),18},weekOfYear:function(e,r,t){return this._validate(e,r,t,Ri.local.invalidDate),0},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Ri.local.invalidYear),360},daysInMonth:function(e,r){return this._validate(e,r,this.minDay,Ri.local.invalidMonth),20},daysInWeek:function(){return 5},dayOfWeek:function(e,r,t){var a=this._validate(e,r,t,Ri.local.invalidDate);return a.day()},weekDay:function(e,r,t){return this._validate(e,r,t,Ri.local.invalidDate),!0},extraInfo:function(e,r,t){var a=this._validate(e,r,t,Ri.local.invalidDate),n=a.toJD(),i=this._toHaab(n),l=this._toTzolkin(n);return{haabMonthName:this.local.haabMonths[i[0]-1],haabMonth:i[0],haabDay:i[1],tzolkinDayName:this.local.tzolkinMonths[l[0]-1],tzolkinDay:l[0],tzolkinTrecena:l[1]}},_toHaab:function(e){e-=this.jdEpoch;var r=o8(e+8+340,365);return[Math.floor(r/20)+1,o8(r,20)]},_toTzolkin:function(e){return e-=this.jdEpoch,[s$(e+20,20),s$(e+4,13)]},toJD:function(e,r,t){var a=this._validate(e,r,t,Ri.local.invalidDate);return a.day()+a.month()*20+a.year()*360+this.jdEpoch},fromJD:function(e){e=Math.floor(e)+.5-this.jdEpoch;var r=Math.floor(e/360);e=e%360,e+=e<0?360:0;var t=Math.floor(e/20),a=e%20;return this.newDate(r,t,a)}});function o8(e,r){return e-r*Math.floor(e/r)}function s$(e,r){return o8(e-1,r)+1}Ri.calendars.mayan=s8});var c$=G(()=>{var Ku=on(),Xwe=ln();function u8(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}u8.prototype=new Ku.baseCalendar;var f$=Ku.instance("gregorian");Xwe(u8.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(e){var r=this._validate(e,this.minMonth,this.minDay,Ku.local.invalidYear||Ku.regionalOptions[""].invalidYear);return f$.leapYear(r.year()+(r.year()<1?1:0)+1469)},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(1-(a.dayOfWeek()||7),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Ku.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===12&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(n,r,t){var a=this._validate(n,r,t,Ku.local.invalidMonth),n=a.year();n<0&&n++;for(var i=a.day(),l=1;l=this.toJD(r+1,1,1);)r++;for(var t=e-Math.floor(this.toJD(r,1,1)+.5)+1,a=1;t>this.daysInMonth(r,a);)t-=this.daysInMonth(r,a),a++;return this.newDate(r,a,t)}});Ku.calendars.nanakshahi=u8});var v$=G(()=>{var ju=on(),Wwe=ln();function f8(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}f8.prototype=new ju.baseCalendar;Wwe(f8.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(e){return this.daysInYear(e)!==this.daysPerYear},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,ju.local.invalidYear);if(e=r.year(),typeof this.NEPALI_CALENDAR_DATA[e]=="undefined")return this.daysPerYear;for(var t=0,a=this.minMonth;a<=12;a++)t+=this.NEPALI_CALENDAR_DATA[e][a];return t},daysInMonth:function(e,r){return e.year&&(r=e.month(),e=e.year()),this._validate(e,r,this.minDay,ju.local.invalidMonth),typeof this.NEPALI_CALENDAR_DATA[e]=="undefined"?this.daysPerMonth[r-1]:this.NEPALI_CALENDAR_DATA[e][r]},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==6},toJD:function(e,r,t){var a=this._validate(e,r,t,ju.local.invalidDate);e=a.year(),r=a.month(),t=a.day();var n=ju.instance(),i=0,l=r,o=e;this._createMissingCalendarData(e);var s=e-(l>9||l===9&&t>=this.NEPALI_CALENDAR_DATA[o][0]?56:57);for(r!==9&&(i=t,l--);l!==9;)l<=0&&(l=12,o--),i+=this.NEPALI_CALENDAR_DATA[o][l],l--;return r===9?(i+=t-this.NEPALI_CALENDAR_DATA[o][0],i<0&&(i+=n.daysInYear(s))):i+=this.NEPALI_CALENDAR_DATA[o][9]-this.NEPALI_CALENDAR_DATA[o][0],n.newDate(s,1,1).add(i,"d").toJD()},fromJD:function(e){var r=ju.instance(),t=r.fromJD(e),a=t.year(),n=t.dayOfYear(),i=a+56;this._createMissingCalendarData(i);for(var l=9,o=this.NEPALI_CALENDAR_DATA[i][0],s=this.NEPALI_CALENDAR_DATA[i][l]-o+1;n>s;)l++,l>12&&(l=1,i++),s+=this.NEPALI_CALENDAR_DATA[i][l];var u=this.NEPALI_CALENDAR_DATA[i][l]-(s-n);return this.newDate(i,l,u)},_createMissingCalendarData:function(e){var r=this.daysPerMonth.slice(0);r.unshift(17);for(var t=e-1;t{var uc=on(),Zwe=ln();function $y(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}function Jy(e){var r=e-475;e<0&&r++;var t=.242197,a=t*r,n=t*(r+1),i=a-Math.floor(a),l=n-Math.floor(n);return i>l}$y.prototype=new uc.baseCalendar;Zwe($y.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","Dey","Bahman","Esfand"],monthNamesShort:["Far","Ord","Kho","Tir","Mor","Sha","Meh","Aba","Aza","Dey","Bah","Esf"],dayNames:["Yekshanbeh","Doshanbeh","Seshanbeh","Chah\u0101rshanbeh","Panjshanbeh","Jom'eh","Shanbeh"],dayNamesShort:["Yek","Do","Se","Cha","Panj","Jom","Sha"],dayNamesMin:["Ye","Do","Se","Ch","Pa","Jo","Sh"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,uc.local.invalidYear);return Jy(r.year())},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-((a.dayOfWeek()+1)%7),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,uc.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===12&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==5},toJD:function(e,r,t){var a=this._validate(e,r,t,uc.local.invalidDate);e=a.year(),r=a.month(),t=a.day();var n=0;if(e>0)for(var i=1;i0?e-1:e)*365+n+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e)+.5;var r=475+(e-this.toJD(475,1,1))/365.242197,t=Math.floor(r);t<=0&&t--,e>this.toJD(t,12,Jy(t)?30:29)&&(t++,t===0&&t++);var a=e-this.toJD(t,1,1)+1,n=a<=186?Math.ceil(a/31):Math.ceil((a-6)/30),i=e-this.toJD(t,n,1)+1;return this.newDate(t,n,i)}});uc.calendars.persian=$y;uc.calendars.jalali=$y});var h$=G(()=>{var Qu=on(),Jwe=ln(),Ky=Qu.instance();function c8(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}c8.prototype=new Qu.baseCalendar;Jwe(c8.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(t){var r=this._validate(t,this.minMonth,this.minDay,Qu.local.invalidYear),t=this._t2gYear(r.year());return Ky.leapYear(t)},weekOfYear:function(n,r,t){var a=this._validate(n,this.minMonth,this.minDay,Qu.local.invalidYear),n=this._t2gYear(a.year());return Ky.weekOfYear(n,a.month(),a.day())},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Qu.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===2&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(n,r,t){var a=this._validate(n,r,t,Qu.local.invalidDate),n=this._t2gYear(a.year());return Ky.toJD(n,a.month(),a.day())},fromJD:function(e){var r=Ky.fromJD(e),t=this._g2tYear(r.year());return this.newDate(t,r.month(),r.day())},_t2gYear:function(e){return e+this.yearsOffset+(e>=-this.yearsOffset&&e<=-1?1:0)},_g2tYear:function(e){return e-this.yearsOffset-(e>=1&&e<=this.yearsOffset?1:0)}});Qu.calendars.taiwan=c8});var p$=G(()=>{var e0=on(),$we=ln(),jy=e0.instance();function v8(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}v8.prototype=new e0.baseCalendar;$we(v8.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(t){var r=this._validate(t,this.minMonth,this.minDay,e0.local.invalidYear),t=this._t2gYear(r.year());return jy.leapYear(t)},weekOfYear:function(n,r,t){var a=this._validate(n,this.minMonth,this.minDay,e0.local.invalidYear),n=this._t2gYear(a.year());return jy.weekOfYear(n,a.month(),a.day())},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,e0.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===2&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(n,r,t){var a=this._validate(n,r,t,e0.local.invalidDate),n=this._t2gYear(a.year());return jy.toJD(n,a.month(),a.day())},fromJD:function(e){var r=jy.fromJD(e),t=this._g2tYear(r.year());return this.newDate(t,r.month(),r.day())},_t2gYear:function(e){return e-this.yearsOffset-(e>=1&&e<=this.yearsOffset?1:0)},_g2tYear:function(e){return e+this.yearsOffset+(e>=-this.yearsOffset&&e<=-1?1:0)}});e0.calendars.thai=v8});var m$=G(()=>{var r0=on(),Kwe=ln();function d8(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}d8.prototype=new r0.baseCalendar;Kwe(d8.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\u0101th\u0101\u2019","Yawm al-Arba\u2018\u0101\u2019","Yawm al-Kham\u012Bs","Yawm al-Jum\u2018a","Yawm al-Sabt"],dayNamesMin:["Ah","Ith","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!0}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,r0.local.invalidYear);return this.daysInYear(r.year())===355},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInYear:function(e){for(var r=0,t=1;t<=12;t++)r+=this.daysInMonth(e,t);return r},daysInMonth:function(e,r){for(var t=this._validate(e,r,this.minDay,r0.local.invalidMonth),a=t.toJD()-24e5+.5,n=0,i=0;ia)return ws[n]-ws[n-1];n++}return 30},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==5},toJD:function(e,r,t){var a=this._validate(e,r,t,r0.local.invalidDate),n=12*(a.year()-1)+a.month()-15292,i=a.day()+ws[n-1]-1;return i+24e5-.5},fromJD:function(e){for(var r=e-24e5+.5,t=0,a=0;ar);a++)t++;var n=t+15292,i=Math.floor((n-1)/12),l=i+1,o=n-12*i,s=r-ws[t-1]+1;return this.newDate(l,o,s)},isValid:function(e,r,t){var a=r0.baseCalendar.prototype.isValid.apply(this,arguments);return a&&(e=e.year!=null?e.year:e,a=e>=1276&&e<=1500),a},_validate:function(e,r,t,a){var n=r0.baseCalendar.prototype._validate.apply(this,arguments);if(n.year<1276||n.year>1500)throw a.replace(/\{0\}/,this.local.name);return n}});r0.calendars.ummalqura=d8;var ws=[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]});var g$=G((eRe,y$)=>{"use strict";y$.exports=on();e$();r$();t$();a$();n$();i$();l$();o$();u$();c$();v$();d$();h$();p$();m$()});var A$=G((rRe,M$)=>{"use strict";var b$=g$(),id=Se(),_$=(Rt(),Fe(Nt)),jwe=_$.EPOCHJD,Qwe=_$.ONEDAY,m8={valType:"enumerated",values:id.sortObjectKeys(b$.calendars),editType:"calc",dflt:"gregorian"},w$=function(e,r,t,a){var n={};return n[t]=m8,id.coerce(e,r,n,t,a)},eTe=function(e,r,t,a){for(var n=0;n{"use strict";k$.exports=A$()});var lTe=G((aRe,S$)=>{var C$=FY();C$.register([IG(),SU(),cV(),KV(),HX(),fW(),OZ(),dJ(),JJ(),L$()]);S$.exports=C$});return lTe();})(); /*! Bundled license information: native-promise-only/lib/npo.src.js: diff --git a/dist/plotly-geo-assets.js b/dist/plotly-geo-assets.js index 072c0ab7309..73b371027fa 100644 --- a/dist/plotly-geo-assets.js +++ b/dist/plotly-geo-assets.js @@ -1,5 +1,5 @@ /** -* plotly.js v4.1.2 +* plotly.js v4.2.0 * Copyright 2012-2026, Plotly, Inc. * All rights reserved. * Licensed under the MIT license @@ -153,7 +153,7 @@ var Plotly = (() => { var require_version = __commonJS({ "src/version.js"(exports) { "use strict"; - exports.version = "4.1.2"; + exports.version = "4.2.0"; } }); diff --git a/dist/plotly-geo.js b/dist/plotly-geo.js index e9e81939fda..a3b1b226887 100644 --- a/dist/plotly-geo.js +++ b/dist/plotly-geo.js @@ -1,5 +1,5 @@ /** -* plotly.js (geo) v4.1.2 +* plotly.js (geo) v4.2.0 * Copyright 2012-2026, Plotly, Inc. * All rights reserved. * Licensed under the MIT license @@ -110,7 +110,7 @@ var Plotly = (() => { var require_version = __commonJS({ "src/version.js"(exports) { "use strict"; - exports.version = "4.1.2"; + exports.version = "4.2.0"; } }); @@ -17760,9 +17760,9 @@ var Plotly = (() => { var require_maplibre_gl = __commonJS({ "node_modules/maplibre-gl/dist/maplibre-gl.css"() { (function() { - if (!document.getElementById("ce8d464691048653ffe3a57c6c18ab566e8366f186677868cf724621a857b4fe")) { + if (!document.getElementById("9f215cf04c5486422605d13261cb87401f4e7763b6296af81e98efbc0130da53")) { var e = document.createElement("style"); - e.id = "ce8d464691048653ffe3a57c6c18ab566e8366f186677868cf724621a857b4fe"; + e.id = "9f215cf04c5486422605d13261cb87401f4e7763b6296af81e98efbc0130da53"; e.textContent = `.maplibregl-map{font:12px/20px Helvetica Neue,Arial,Helvetica,sans-serif;overflow:hidden;position:relative;-webkit-tap-highlight-color:rgb(0 0 0/0);-webkit-touch-callout:none}.maplibregl-canvas{position:absolute;left:0;top:0}.maplibregl-map:fullscreen{width:100%;height:100%}.maplibregl-ctrl-group button.maplibregl-ctrl-compass{touch-action:none}.maplibregl-canvas-container.maplibregl-interactive,.maplibregl-ctrl-group button.maplibregl-ctrl-compass{cursor:grab;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-canvas-container.maplibregl-interactive.maplibregl-track-pointer{cursor:pointer}.maplibregl-canvas-container.maplibregl-interactive:active,.maplibregl-ctrl-group button.maplibregl-ctrl-compass:active{cursor:grabbing}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-canvas-container.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:pinch-zoom}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:none}.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures,.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-ctrl-bottom-left,.maplibregl-ctrl-bottom-right,.maplibregl-ctrl-top-left,.maplibregl-ctrl-top-right{position:absolute;pointer-events:none;z-index:2}.maplibregl-ctrl-top-left{top:0;left:0}.maplibregl-ctrl-top-right{top:0;right:0}.maplibregl-ctrl-bottom-left{bottom:0;left:0}.maplibregl-ctrl-bottom-right{right:0;bottom:0}.maplibregl-ctrl{clear:both;pointer-events:auto;transform:translate(0)}.maplibregl-ctrl-top-left .maplibregl-ctrl{margin:10px 0 0 10px;float:left}.maplibregl-ctrl-top-right .maplibregl-ctrl{margin:10px 10px 0 0;float:right}.maplibregl-ctrl-bottom-left .maplibregl-ctrl{margin:0 0 10px 10px;float:left}.maplibregl-ctrl-bottom-right .maplibregl-ctrl{margin:0 10px 10px 0;float:right}.maplibregl-ctrl-group{border-radius:4px;background:#fff}.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px rgba(0,0,0,.1)}@media (forced-colors:active){.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px ButtonText}}.maplibregl-ctrl-group button{width:29px;height:29px;display:block;padding:0;outline:none;border:0;box-sizing:border-box;background-color:transparent;cursor:pointer}.maplibregl-ctrl button{-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-ctrl-group button+button{border-top:1px solid #ddd}.maplibregl-ctrl button .maplibregl-ctrl-icon{display:block;width:100%;height:100%;background-repeat:no-repeat;background-position:50%}@media (forced-colors:active){.maplibregl-ctrl-icon{background-color:transparent}.maplibregl-ctrl-group button+button{border-top:1px solid ButtonText}}.maplibregl-ctrl button::-moz-focus-inner{border:0;padding:0}.maplibregl-ctrl-attrib-button:focus,.maplibregl-ctrl-group button:focus{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl button:disabled{cursor:not-allowed}.maplibregl-ctrl button:disabled .maplibregl-ctrl-icon{opacity:.25}@media (hover:hover){.maplibregl-ctrl button:not(:disabled):hover{background-color:rgba(0,0,0,.05)}}.maplibregl-ctrl button:not(:disabled):active{background-color:rgba(0,0,0,.05)}.maplibregl-ctrl-group button:focus:focus-visible{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl-group button:focus:not(:focus-visible){box-shadow:none}.maplibregl-ctrl-group button:focus:first-child{border-radius:4px 4px 0 0}.maplibregl-ctrl-group button:focus:last-child{border-radius:0 0 4px 4px}.maplibregl-ctrl-group button:focus:only-child{border-radius:inherit}.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M10%2013c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h9c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M14.5%208.5c-.75%200-1.5.75-1.5%201.5v3h-3c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h3v3c0%20.75.75%201.5%201.5%201.5S16%2019.75%2016%2019v-3h3c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013h-3v-3c0-.75-.75-1.5-1.5-1.5%22%2F%3E%3C%2Fsvg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M10%2013c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h9c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M14.5%208.5c-.75%200-1.5.75-1.5%201.5v3h-3c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h3v3c0%20.75.75%201.5%201.5%201.5S16%2019.75%2016%2019v-3h3c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013h-3v-3c0-.75-.75-1.5-1.5-1.5%22%2F%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M10%2013c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h9c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M14.5%208.5c-.75%200-1.5.75-1.5%201.5v3h-3c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h3v3c0%20.75.75%201.5%201.5%201.5S16%2019.75%2016%2019v-3h3c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013h-3v-3c0-.75-.75-1.5-1.5-1.5%22%2F%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M24%2016v5.5c0%201.75-.75%202.5-2.5%202.5H16v-1l3-1.5-4-5.5%201-1%205.5%204%201.5-3zM6%2016l1.5%203%205.5-4%201%201-4%205.5%203%201.5v1H7.5C5.75%2024%205%2023.25%205%2021.5V16zm7-11v1l-3%201.5%204%205.5-1%201-5.5-4L6%2013H5V7.5C5%205.75%205.75%205%207.5%205zm11%202.5c0-1.75-.75-2.5-2.5-2.5H16v1l3%201.5-4%205.5%201%201%205.5-4%201.5%203h1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M18.5%2016c-1.75%200-2.5.75-2.5%202.5V24h1l1.5-3%205.5%204%201-1-4-5.5%203-1.5v-1zM13%2018.5c0-1.75-.75-2.5-2.5-2.5H5v1l3%201.5L4%2024l1%201%205.5-4%201.5%203h1zm3-8c0%201.75.75%202.5%202.5%202.5H24v-1l-3-1.5L25%205l-1-1-5.5%204L17%205h-1zM10.5%2013c1.75%200%202.5-.75%202.5-2.5V5h-1l-1.5%203L5%204%204%205l4%205.5L5%2012v1z%22%2F%3E%3C%2Fsvg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M24%2016v5.5c0%201.75-.75%202.5-2.5%202.5H16v-1l3-1.5-4-5.5%201-1%205.5%204%201.5-3zM6%2016l1.5%203%205.5-4%201%201-4%205.5%203%201.5v1H7.5C5.75%2024%205%2023.25%205%2021.5V16zm7-11v1l-3%201.5%204%205.5-1%201-5.5-4L6%2013H5V7.5C5%205.75%205.75%205%207.5%205zm11%202.5c0-1.75-.75-2.5-2.5-2.5H16v1l3%201.5-4%205.5%201%201%205.5-4%201.5%203h1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M18.5%2016c-1.75%200-2.5.75-2.5%202.5V24h1l1.5-3%205.5%204%201-1-4-5.5%203-1.5v-1zM13%2018.5c0-1.75-.75-2.5-2.5-2.5H5v1l3%201.5L4%2024l1%201%205.5-4%201.5%203h1zm3-8c0%201.75.75%202.5%202.5%202.5H24v-1l-3-1.5L25%205l-1-1-5.5%204L17%205h-1zM10.5%2013c1.75%200%202.5-.75%202.5-2.5V5h-1l-1.5%203L5%204%204%205l4%205.5L5%2012v1z%22%2F%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M24%2016v5.5c0%201.75-.75%202.5-2.5%202.5H16v-1l3-1.5-4-5.5%201-1%205.5%204%201.5-3zM6%2016l1.5%203%205.5-4%201%201-4%205.5%203%201.5v1H7.5C5.75%2024%205%2023.25%205%2021.5V16zm7-11v1l-3%201.5%204%205.5-1%201-5.5-4L6%2013H5V7.5C5%205.75%205.75%205%207.5%205zm11%202.5c0-1.75-.75-2.5-2.5-2.5H16v1l3%201.5-4%205.5%201%201%205.5-4%201.5%203h1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M18.5%2016c-1.75%200-2.5.75-2.5%202.5V24h1l1.5-3%205.5%204%201-1-4-5.5%203-1.5v-1zM13%2018.5c0-1.75-.75-2.5-2.5-2.5H5v1l3%201.5L4%2024l1%201%205.5-4%201.5%203h1zm3-8c0%201.75.75%202.5%202.5%202.5H24v-1l-3-1.5L25%205l-1-1-5.5%204L17%205h-1zM10.5%2013c1.75%200%202.5-.75%202.5-2.5V5h-1l-1.5%203L5%204%204%205l4%205.5L5%2012v1z%22%2F%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22m10.5%2014%204-8%204%208z%22%2F%3E%3Cpath%20fill%3D%22%23ccc%22%20d%3D%22m10.5%2016%204%208%204-8z%22%2F%3E%3C%2Fsvg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22m10.5%2014%204-8%204%208z%22%2F%3E%3Cpath%20fill%3D%22%23ccc%22%20d%3D%22m10.5%2016%204%208%204-8z%22%2F%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22m10.5%2014%204-8%204%208z%22%2F%3E%3Cpath%20fill%3D%22%23ccc%22%20d%3D%22m10.5%2016%204%208%204-8z%22%2F%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-globe .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2222%22%20height%3D%2222%22%20fill%3D%22none%22%20stroke%3D%22%23333%22%20viewBox%3D%220%200%2022%2022%22%3E%3Ccircle%20cx%3D%2211%22%20cy%3D%2211%22%20r%3D%228.5%22%2F%3E%3Cpath%20d%3D%22M17.5%2011c0%204.819-3.02%208.5-6.5%208.5S4.5%2015.819%204.5%2011%207.52%202.5%2011%202.5s6.5%203.681%206.5%208.5Z%22%2F%3E%3Cpath%20d%3D%22M13.5%2011c0%202.447-.331%204.64-.853%206.206-.262.785-.562%201.384-.872%201.777-.314.399-.58.517-.775.517s-.461-.118-.775-.517c-.31-.393-.61-.992-.872-1.777C8.831%2015.64%208.5%2013.446%208.5%2011s.331-4.64.853-6.206c.262-.785.562-1.384.872-1.777.314-.399.58-.517.775-.517s.461.118.775.517c.31.393.61.992.872%201.777.522%201.565.853%203.76.853%206.206Z%22%2F%3E%3Cpath%20d%3D%22M11%207.5c-1.909%200-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3%201.3%200%200%201-.224-.138q.07-.058.224-.138c.299-.151.763-.302%201.379-.434C7.378%205.666%209.091%205.5%2011%205.5s3.622.166%204.845.428c.616.132%201.08.283%201.379.434.105.053.177.1.224.138q-.07.058-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm0%209c-1.909%200-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3%201.3%200%200%201-.224-.138%201.3%201.3%200%200%201%20.224-.138c.299-.151.763-.302%201.379-.434C7.378%2014.666%209.091%2014.5%2011%2014.5s3.622.166%204.845.428c.616.132%201.08.283%201.379.434.105.053.177.1.224.138a1.3%201.3%200%200%201-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm0-4c-2.46%200-4.672-.222-6.255-.574-.796-.177-1.406-.38-1.805-.59a1.5%201.5%200%200%201-.39-.272.3.3%200%200%201-.047-.064.3.3%200%200%201%20.048-.064c.066-.073.189-.167.389-.272.399-.21%201.009-.413%201.805-.59C6.328%209.722%208.54%209.5%2011%209.5s4.672.222%206.256.574c.795.177%201.405.38%201.804.59.2.105.323.2.39.272a.3.3%200%200%201%20.047.064.3.3%200%200%201-.048.064%201.4%201.4%200%200%201-.389.272c-.399.21-1.009.413-1.804.59-1.584.352-3.796.574-6.256.574Zm-8.501-1.51v.002zm0%20.018v.002zm17.002.002v-.002zm0-.018v-.002z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-globe-enabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2222%22%20height%3D%2222%22%20fill%3D%22none%22%20stroke%3D%22%2333b5e5%22%20viewBox%3D%220%200%2022%2022%22%3E%3Ccircle%20cx%3D%2211%22%20cy%3D%2211%22%20r%3D%228.5%22%2F%3E%3Cpath%20d%3D%22M17.5%2011c0%204.819-3.02%208.5-6.5%208.5S4.5%2015.819%204.5%2011%207.52%202.5%2011%202.5s6.5%203.681%206.5%208.5Z%22%2F%3E%3Cpath%20d%3D%22M13.5%2011c0%202.447-.331%204.64-.853%206.206-.262.785-.562%201.384-.872%201.777-.314.399-.58.517-.775.517s-.461-.118-.775-.517c-.31-.393-.61-.992-.872-1.777C8.831%2015.64%208.5%2013.446%208.5%2011s.331-4.64.853-6.206c.262-.785.562-1.384.872-1.777.314-.399.58-.517.775-.517s.461.118.775.517c.31.393.61.992.872%201.777.522%201.565.853%203.76.853%206.206Z%22%2F%3E%3Cpath%20d%3D%22M11%207.5c-1.909%200-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3%201.3%200%200%201-.224-.138q.07-.058.224-.138c.299-.151.763-.302%201.379-.434C7.378%205.666%209.091%205.5%2011%205.5s3.622.166%204.845.428c.616.132%201.08.283%201.379.434.105.053.177.1.224.138q-.07.058-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm0%209c-1.909%200-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3%201.3%200%200%201-.224-.138%201.3%201.3%200%200%201%20.224-.138c.299-.151.763-.302%201.379-.434C7.378%2014.666%209.091%2014.5%2011%2014.5s3.622.166%204.845.428c.616.132%201.08.283%201.379.434.105.053.177.1.224.138a1.3%201.3%200%200%201-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm0-4c-2.46%200-4.672-.222-6.255-.574-.796-.177-1.406-.38-1.805-.59a1.5%201.5%200%200%201-.39-.272.3.3%200%200%201-.047-.064.3.3%200%200%201%20.048-.064c.066-.073.189-.167.389-.272.399-.21%201.009-.413%201.805-.59C6.328%209.722%208.54%209.5%2011%209.5s4.672.222%206.256.574c.795.177%201.405.38%201.804.59.2.105.323.2.39.272a.3.3%200%200%201%20.047.064.3.3%200%200%201-.048.064%201.4%201.4%200%200%201-.389.272c-.399.21-1.009.413-1.804.59-1.584.352-3.796.574-6.256.574Zm-8.501-1.51v.002zm0%20.018v.002zm17.002.002v-.002zm0-.018v-.002z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-terrain .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2222%22%20height%3D%2222%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2022%2022%22%3E%3Cpath%20d%3D%22m1.754%2013.406%204.453-4.851%203.09%203.09%203.281%203.277.969-.969-3.309-3.312%203.844-4.121%206.148%206.886h1.082v-.855l-7.207-8.07-4.84%205.187L6.169%206.57l-5.48%205.965v.871ZM.688%2016.844h20.625v1.375H.688Zm0%200%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-terrain-enabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2222%22%20height%3D%2222%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2022%2022%22%3E%3Cpath%20d%3D%22m1.754%2013.406%204.453-4.851%203.09%203.09%203.281%203.277.969-.969-3.309-3.312%203.844-4.121%206.148%206.886h1.082v-.855l-7.207-8.07-4.84%205.187L6.169%206.57l-5.48%205.965v.871ZM.688%2016.844h20.625v1.375H.688Zm0%200%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23aaa%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3Cpath%20fill%3D%22red%22%20d%3D%22m14%205%201%201-9%209-1-1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23e58978%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23e54e33%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-waiting .maplibregl-ctrl-icon{animation:maplibregl-spin 2s linear infinite}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23999%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3Cpath%20fill%3D%22red%22%20d%3D%22m14%205%201%201-9%209-1-1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23e58978%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23e54e33%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23666%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3Cpath%20fill%3D%22red%22%20d%3D%22m14%205%201%201-9%209-1-1z%22%2F%3E%3C%2Fsvg%3E")}}@keyframes maplibregl-spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}a.maplibregl-ctrl-logo{width:88px;height:23px;margin:0 0 -4px -4px;display:block;background-repeat:no-repeat;cursor:pointer;overflow:hidden;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2288%22%20height%3D%2223%22%20fill%3D%22none%22%3E%3Cpath%20fill%3D%22%23000%22%20fill-opacity%3D%22.4%22%20fill-rule%3D%22evenodd%22%20d%3D%22M17.408%2016.796h-1.827l2.501-12.095h.198l3.324%206.533.988%202.19.988-2.19%203.258-6.533h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.929%205.644h-.098l-2.914-5.644-.757-1.71-.345%201.71zm1.958-3.42-.726%203.663a1.255%201.255%200%200%201-1.232%201.011h-1.827a1.255%201.255%200%200%201-1.229-1.509l2.501-12.095a1.255%201.255%200%200%201%201.23-1.001h.197a1.25%201.25%200%200%201%201.12.685l3.19%206.273%203.125-6.263a1.25%201.25%200%200%201%201.123-.695h.181a1.255%201.255%200%200%201%201.227.991l1.443%206.71a5%205%200%200%201%20.314-.787l.009-.016a4.6%204.6%200%200%201%201.777-1.887c.782-.46%201.668-.667%202.611-.667a4.6%204.6%200%200%201%201.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255%201.255%200%200%201%201.212.925%201.255%201.255%200%200%201%201.212-.925h1.711c.284%200%20.545.094.755.252.613-.3%201.312-.45%202.075-.45%201.356%200%202.557.445%203.482%201.4q.47.48.763%201.064V4.701a1.255%201.255%200%200%201%201.255-1.255h1.86A1.255%201.255%200%200%201%2054.44%204.7v9.194h2.217c.19%200%20.37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42%202.42%200%200%201-.682-1.71c0-.665.267-1.253.735-1.7a2.45%202.45%200%200%201%201.722-.674%202.43%202.43%200%200%201%201.705.675q.318.302.504.683V4.7a1.255%201.255%200%200%201%201.255-1.255h1.744A1.255%201.255%200%200%201%2065.812%204.7v3.335a4.8%204.8%200%200%201%201.526-.246c.938%200%201.817.214%202.59.69a4.47%204.47%200%200%201%201.67%201.743v-.98a1.255%201.255%200%200%201%201.256-1.256h1.777c.233%200%20.451.064.639.174a3.4%203.4%200%200%201%201.567-.372c.346%200%20.861.02%201.285.232a1.25%201.25%200%200%201%20.689%201.004%204.7%204.7%200%200%201%20.853-.588c.795-.44%201.675-.647%202.61-.647%201.385%200%202.65.39%203.525%201.396.836.938%201.168%202.173%201.168%203.528q-.001.515-.056%201.051a1.255%201.255%200%200%201-.947%201.09l.408.952a1.255%201.255%200%200%201-.477%201.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06%200-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8%205.8%200%200%201-.548-2.512q0-.429.053-.843a1.3%201.3%200%200%201-.333-.086l-.166-.004c-.223%200-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255%201.255%200%200%201-1.256%201.256h-1.777a1.255%201.255%200%200%201-1.256-1.256V15.69l-.032.057a4.8%204.8%200%200%201-1.86%201.833%205.04%205.04%200%200%201-2.484.634%204.5%204.5%200%200%201-1.935-.424%201.25%201.25%200%200%201-.764.258h-1.71a1.255%201.255%200%200%201-1.256-1.255V7.687a2.4%202.4%200%200%201-.428.625c.253.23.412.561.412.93v7.553a1.255%201.255%200%200%201-1.256%201.255h-1.843a1.25%201.25%200%200%201-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255%201.255%200%200%201-1.256-1.255v-1.251l-.061.117a4.7%204.7%200%200%201-1.782%201.884%204.77%204.77%200%200%201-2.485.67%205.6%205.6%200%200%201-1.485-.188l.009%202.764a1.255%201.255%200%200%201-1.255%201.259h-1.729a1.255%201.255%200%200%201-1.255-1.255v-3.537a1.255%201.255%200%200%201-1.167.793h-1.679a1.25%201.25%200%200%201-.77-.263%204.5%204.5%200%200%201-1.945.429c-.885%200-1.724-.21-2.495-.632l-.017-.01a5%205%200%200%201-1.081-.836%201.255%201.255%200%200%201-1.254%201.312h-1.81a1.255%201.255%200%200%201-1.228-.99l-.782-3.625-2.044%203.939a1.25%201.25%200%200%201-1.115.676h-.098a1.25%201.25%200%200%201-1.116-.68l-2.061-3.994zM35.92%2016.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033%201.332h1.678V9.242h-1.694l-.033%201.267q-.133-.329-.526-.658l-.032-.028a3.2%203.2%200%200%200-.668-.428l-.27-.12a3.3%203.3%200%200%200-1.235-.23q-1.136-.001-1.974.493a3.36%203.36%200%200%200-1.3%201.382q-.445.89-.444%202.074%200%201.2.51%202.107a3.8%203.8%200%200%200%201.382%201.381%203.9%203.9%200%200%200%201.893.477q.795%200%201.455-.33zm-2.789-5.38q-.576.675-.575%201.762%200%201.102.559%201.794.576.675%201.645.675a2.25%202.25%200%200%200%20.934-.19%202.2%202.2%200%200%200%20.468-.29l.178-.161a2.2%202.2%200%200%200%20.397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2%202.2%200%200%200-.633-.709l-.13-.086-.047-.028a2.1%202.1%200%200%200-1.073-.285q-1.052%200-1.629.692zm2.316%202.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96%200%200%200-.353-.389.85.85%200%200%200-.464-.127c-.4%200-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945%200%20.506.122.801.27.99.097.11.266.224.68.224.303%200%20.504-.09.687-.269zm7.545%201.705a2.6%202.6%200%200%200%20.331.423q.319.33.755.548l.173.074q.65.255%201.49.255%201.02%200%201.844-.493a3.45%203.45%200%200%200%201.316-1.4q.493-.904.493-2.089%200-1.909-.988-2.913-.988-1.02-2.584-1.02-.898%200-1.575.347a3%203%200%200%200-.415.262l-.199.166a3.4%203.4%200%200%200-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296%201.119.297%201.07%200%201.645-.675.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.435%200-.835.16a2%202%200%200%200-.284.136%202%202%200%200%200-.363.254%202.2%202.2%200%200%200-.46.569l-.082.162a2.6%202.6%200%200%200-.213%201.072v.115q0%20.707.296%201.267l.135.211zm.964-.818a1.1%201.1%200%200%200%20.367.385.94.94%200%200%200%20.476.118c.423%200%20.59-.117.687-.23.159-.194.28-.478.28-.95%200-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1%201%200%200%200-.503.135l-.012.007a.86.86%200%200%200-.335.343c-.073.133-.132.324-.132.614v.115a1.4%201.4%200%200%200%20.14.66zm15.7-6.222q.347-.346.346-.856a1.05%201.05%200%200%200-.345-.79%201.18%201.18%200%200%200-.84-.329q-.51%200-.855.33a1.05%201.05%200%200%200-.346.79q0%20.51.346.855.345.346.856.346.51%200%20.839-.346zm4.337%209.314.033-1.332q.191.403.59.747l.098.081a4%204%200%200%200%20.316.224l.223.122a3.2%203.2%200%200%200%201.44.322%203.8%203.8%200%200%200%201.875-.477%203.5%203.5%200%200%200%201.382-1.366q.527-.89.526-2.09%200-1.184-.444-2.073a3.24%203.24%200%200%200-1.283-1.399q-.823-.51-1.942-.51a3.5%203.5%200%200%200-1.527.344l-.086.043-.165.09a3%203%200%200%200-.33.214q-.432.315-.656.707a2%202%200%200%200-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5%202.5%200%200%200%20.566.7q.117.098.245.18l.144.08a2.1%202.1%200%200%200%20.975.232q1.07%200%201.645-.675.576-.69.576-1.778%200-1.102-.576-1.777-.56-.691-1.645-.692a2.2%202.2%200%200%200-1.015.235q-.22.113-.415.282l-.15.142a2.1%202.1%200%200%200-.42.594q-.223.479-.223%201.1v.115q0%20.705.293%201.26zm2.616-.293c.157-.191.28-.479.28-.967%200-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87%200%200%200-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0%20.285.057.499.144.669a1.1%201.1%200%200%200%20.367.405c.137.082.28.123.455.123.423%200%20.59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493%200%20.642.099l.247-1.794q-.196-.099-.717-.099a2.3%202.3%200%200%200-.545.063%202%202%200%200%200-.411.148%202.2%202.2%200%200%200-.4.249%202.5%202.5%200%200%200-.485.499%202.7%202.7%200%200%200-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5%201.5%200%200%201%20.466-.636%202.5%202.5%200%200%201%20.399-.253%202%202%200%200%201%20.224-.099zm9.784%202.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46%203.46%200%200%200-1.4%201.382q-.493.906-.493%202.106%200%201.07.428%201.975.428.89%201.332%201.432.906.526%202.255.526.973%200%201.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954%200-1.497-.444a1.6%201.6%200%200%201-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1%201%200%200%200-.156-.176q-.46-.428-1.316-.428-.986%200-1.494.604-.379.45-.494%201.234zm-27.053%202.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z%22%2F%3E%3Cpath%20fill%3D%22%23fff%22%20d%3D%22m19.63%2011.151-.757-1.71-.345%201.71-1.12%205.644h-1.827L18.083%204.7h.197l3.325%206.533.988%202.19.988-2.19L26.839%204.7h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.93%205.644h-.098l-2.913-5.644zm14.836%205.81q-1.02%200-1.893-.478a3.8%203.8%200%200%201-1.381-1.382q-.51-.906-.51-2.106%200-1.185.444-2.074a3.36%203.36%200%200%201%201.3-1.382q.839-.494%201.974-.494a3.3%203.3%200%200%201%201.234.231%203.3%203.3%200%200%201%20.97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02%201.053a3.17%203.17%200%200%201-1.662.444zm.296-1.482q.938%200%201.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2%202.2%200%200%200-.807-.872%202.1%202.1%200%200%200-1.119-.313q-1.053%200-1.629.692-.575.675-.575%201.76%200%201.103.559%201.795.577.675%201.645.675zm6.521-6.237h1.711v1.4q.906-1.597%202.83-1.597%201.596%200%202.584%201.02.988%201.005.988%202.914%200%201.185-.493%202.09a3.46%203.46%200%200%201-1.316%201.399%203.5%203.5%200%200%201-1.844.493q-.954%200-1.662-.329a2.67%202.67%200%200%201-1.086-.97l.017%205.134h-1.728zm4.048%206.22q1.07%200%201.645-.674.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.592%200-1.12.296-.51.28-.822.823-.296.527-.296%201.234v.115q0%20.708.296%201.267.313.543.823.855.51.296%201.119.297z%22%2F%3E%3Cpath%20fill%3D%22%23e1e3e9%22%20d%3D%22M51.325%204.7h1.86v10.45h3.473v1.646h-5.333zm7.12%204.542h1.843v7.553h-1.843zm.905-1.415a1.16%201.16%200%200%201-.856-.346%201.17%201.17%200%200%201-.346-.856%201.05%201.05%200%200%201%20.346-.79q.346-.329.856-.329.494%200%20.839.33a1.05%201.05%200%200%201%20.345.79%201.16%201.16%200%200%201-.345.855q-.33.346-.84.346zm7.875%209.133a3.17%203.17%200%200%201-1.662-.444q-.723-.46-1.004-1.053l-.033%201.332h-1.71V4.701h1.743v4.657l-.082%201.283q.279-.658%201.086-1.119a3.5%203.5%200%200%201%201.778-.477q1.119%200%201.942.51a3.24%203.24%200%200%201%201.283%201.4q.445.888.444%202.072%200%201.201-.526%202.09a3.5%203.5%200%200%201-1.382%201.366%203.8%203.8%200%200%201-1.876.477zm-.296-1.481q1.069%200%201.645-.675.577-.69.577-1.778%200-1.102-.577-1.776-.56-.691-1.645-.692a2.12%202.12%200%200%200-1.58.659q-.642.641-.642%201.694v.115q0%20.71.296%201.267a2.4%202.4%200%200%200%20.807.872%202.1%202.1%200%200%200%201.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14%202.14%200%200%201%201.349-.46q.527%200%20.724.098l-.247%201.794q-.149-.099-.642-.099-.774%200-1.416.494-.626.493-.626%201.58v3.883h-1.777V9.242zm9.534%207.718q-1.35%200-2.255-.526-.904-.543-1.332-1.432a4.6%204.6%200%200%201-.428-1.975q0-1.2.493-2.106a3.46%203.46%200%200%201%201.4-1.382q.889-.495%202.007-.494%201.744%200%202.584.97.855.956.856%202.7%200%20.444-.05.92h-5.43q.18%201.005.708%201.45.542.443%201.497.443.79%200%201.3-.131a4%204%200%200%200%20.938-.362l.542%201.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728%200-1.991%201.86z%22%2F%3E%3Cpath%20d%3D%22M5.074%2015.948a.484.657%200%200%200-.486.659v1.84a.484.657%200%200%200%20.486.659h4.101a.484.657%200%200%200%20.486-.659v-1.84a.484.657%200%200%200-.486-.659zm3.56%201.16H5.617v.838h3.017z%22%20style%3D%22fill%3A%23fff%3Bfill-rule%3Aevenodd%3Bstroke-width%3A1.03600001%22%2F%3E%3Cg%20style%3D%22stroke-width%3A1.12603545%22%3E%3Cpath%20d%3D%22M-9.408-1.416c-3.833-.025-7.056%202.912-7.08%206.615-.02%203.08%201.653%204.832%203.107%206.268.903.892%201.721%201.74%202.32%202.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87%201.87%200%200%200-.362%201.121l-.011%201.877c-.003.402.104.787.347%201.125.244.338.688.653%201.23.656l4.142.028c.542.003.99-.306%201.238-.641a1.87%201.87%200%200%200%20.363-1.121l.012-1.875a1.87%201.87%200%200%200-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145%201.425-1.983%202.348-2.87%201.473-1.414%203.18-3.149%203.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006%201.1v.002c3.274.02%205.92%202.532%205.9%205.6-.017%202.706-1.39%204.026-2.863%205.44-1.034.994-2.118%202.033-2.814%203.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34%200%200%201-.226.084.34.34%200%200%201-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067%202.7-5.545%205.975-5.523m-.02%202.826c-1.62-.01-2.944%201.315-2.955%202.96-.01%201.646%201.295%202.988%202.916%202.999h.002c1.621.01%202.943-1.316%202.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005%201.1c1.017.006%201.829.83%201.822%201.89s-.83%201.874-1.848%201.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874%201.848-1.868m-2.155%2011.857%204.14.025c.271.002.49.305.487.676l-.013%201.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668%22%20style%3D%22color%3A%23000%3Bfont-style%3Anormal%3Bfont-variant%3Anormal%3Bfont-weight%3A400%3Bfont-stretch%3Anormal%3Bfont-size%3Amedium%3Bline-height%3Anormal%3Bfont-family%3Asans-serif%3Bfont-variant-ligatures%3Anormal%3Bfont-variant-position%3Anormal%3Bfont-variant-caps%3Anormal%3Bfont-variant-numeric%3Anormal%3Bfont-variant-alternates%3Anormal%3Bfont-feature-settings%3Anormal%3Btext-indent%3A0%3Btext-align%3Astart%3Btext-decoration%3Anone%3Btext-decoration-line%3Anone%3Btext-decoration-style%3Asolid%3Btext-decoration-color%3A%23000%3Bletter-spacing%3Anormal%3Bword-spacing%3Anormal%3Btext-transform%3Anone%3Bwriting-mode%3Alr-tb%3Bdirection%3Altr%3Btext-orientation%3Amixed%3Bdominant-baseline%3Aauto%3Bbaseline-shift%3Abaseline%3Btext-anchor%3Astart%3Bwhite-space%3Anormal%3Bshape-padding%3A0%3Bclip-rule%3Aevenodd%3Bdisplay%3Ainline%3Boverflow%3Avisible%3Bvisibility%3Avisible%3Bopacity%3A1%3Bisolation%3Aauto%3Bmix-blend-mode%3Anormal%3Bcolor-interpolation%3AsRGB%3Bcolor-interpolation-filters%3AlinearRGB%3Bsolid-color%3A%23000%3Bsolid-opacity%3A1%3Bvector-effect%3Anone%3Bfill%3A%23000%3Bfill-opacity%3A.4%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-linecap%3Abutt%3Bstroke-linejoin%3Amiter%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-dashoffset%3A0%3Bstroke-opacity%3A1%3Bcolor-rendering%3Aauto%3Bimage-rendering%3Aauto%3Bshape-rendering%3Aauto%3Btext-rendering%3Aauto%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-9.415-.316C-12.69-.338-15.37%202.14-15.39%205.207c-.017%202.716%201.326%204.041%202.78%205.477%201.013%201%202.081%202.055%202.78%203.67l.092.076a.34.34%200%200%200%20.225.086.34.34%200%200%200%20.227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6%201.78-2.64%202.814-3.634%201.473-1.414%202.847-2.733%202.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057%208.784c1.621.011%202.944-1.315%202.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945%201.315-2.955%202.96s1.295%202.989%202.916%203%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23e1e3e9%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-11.594%2015.465c-.27-.002-.492.297-.494.668l-.012%201.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23fff%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E")}a.maplibregl-ctrl-logo.maplibregl-compact{width:14px}@media (forced-colors:active){a.maplibregl-ctrl-logo{background-color:transparent;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2288%22%20height%3D%2223%22%20fill%3D%22none%22%3E%3Cpath%20fill%3D%22%23000%22%20fill-opacity%3D%22.4%22%20fill-rule%3D%22evenodd%22%20d%3D%22M17.408%2016.796h-1.827l2.501-12.095h.198l3.324%206.533.988%202.19.988-2.19%203.258-6.533h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.929%205.644h-.098l-2.914-5.644-.757-1.71-.345%201.71zm1.958-3.42-.726%203.663a1.255%201.255%200%200%201-1.232%201.011h-1.827a1.255%201.255%200%200%201-1.229-1.509l2.501-12.095a1.255%201.255%200%200%201%201.23-1.001h.197a1.25%201.25%200%200%201%201.12.685l3.19%206.273%203.125-6.263a1.25%201.25%200%200%201%201.123-.695h.181a1.255%201.255%200%200%201%201.227.991l1.443%206.71a5%205%200%200%201%20.314-.787l.009-.016a4.6%204.6%200%200%201%201.777-1.887c.782-.46%201.668-.667%202.611-.667a4.6%204.6%200%200%201%201.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255%201.255%200%200%201%201.212.925%201.255%201.255%200%200%201%201.212-.925h1.711c.284%200%20.545.094.755.252.613-.3%201.312-.45%202.075-.45%201.356%200%202.557.445%203.482%201.4q.47.48.763%201.064V4.701a1.255%201.255%200%200%201%201.255-1.255h1.86A1.255%201.255%200%200%201%2054.44%204.7v9.194h2.217c.19%200%20.37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42%202.42%200%200%201-.682-1.71c0-.665.267-1.253.735-1.7a2.45%202.45%200%200%201%201.722-.674%202.43%202.43%200%200%201%201.705.675q.318.302.504.683V4.7a1.255%201.255%200%200%201%201.255-1.255h1.744A1.255%201.255%200%200%201%2065.812%204.7v3.335a4.8%204.8%200%200%201%201.526-.246c.938%200%201.817.214%202.59.69a4.47%204.47%200%200%201%201.67%201.743v-.98a1.255%201.255%200%200%201%201.256-1.256h1.777c.233%200%20.451.064.639.174a3.4%203.4%200%200%201%201.567-.372c.346%200%20.861.02%201.285.232a1.25%201.25%200%200%201%20.689%201.004%204.7%204.7%200%200%201%20.853-.588c.795-.44%201.675-.647%202.61-.647%201.385%200%202.65.39%203.525%201.396.836.938%201.168%202.173%201.168%203.528q-.001.515-.056%201.051a1.255%201.255%200%200%201-.947%201.09l.408.952a1.255%201.255%200%200%201-.477%201.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06%200-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8%205.8%200%200%201-.548-2.512q0-.429.053-.843a1.3%201.3%200%200%201-.333-.086l-.166-.004c-.223%200-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255%201.255%200%200%201-1.256%201.256h-1.777a1.255%201.255%200%200%201-1.256-1.256V15.69l-.032.057a4.8%204.8%200%200%201-1.86%201.833%205.04%205.04%200%200%201-2.484.634%204.5%204.5%200%200%201-1.935-.424%201.25%201.25%200%200%201-.764.258h-1.71a1.255%201.255%200%200%201-1.256-1.255V7.687a2.4%202.4%200%200%201-.428.625c.253.23.412.561.412.93v7.553a1.255%201.255%200%200%201-1.256%201.255h-1.843a1.25%201.25%200%200%201-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255%201.255%200%200%201-1.256-1.255v-1.251l-.061.117a4.7%204.7%200%200%201-1.782%201.884%204.77%204.77%200%200%201-2.485.67%205.6%205.6%200%200%201-1.485-.188l.009%202.764a1.255%201.255%200%200%201-1.255%201.259h-1.729a1.255%201.255%200%200%201-1.255-1.255v-3.537a1.255%201.255%200%200%201-1.167.793h-1.679a1.25%201.25%200%200%201-.77-.263%204.5%204.5%200%200%201-1.945.429c-.885%200-1.724-.21-2.495-.632l-.017-.01a5%205%200%200%201-1.081-.836%201.255%201.255%200%200%201-1.254%201.312h-1.81a1.255%201.255%200%200%201-1.228-.99l-.782-3.625-2.044%203.939a1.25%201.25%200%200%201-1.115.676h-.098a1.25%201.25%200%200%201-1.116-.68l-2.061-3.994zM35.92%2016.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033%201.332h1.678V9.242h-1.694l-.033%201.267q-.133-.329-.526-.658l-.032-.028a3.2%203.2%200%200%200-.668-.428l-.27-.12a3.3%203.3%200%200%200-1.235-.23q-1.136-.001-1.974.493a3.36%203.36%200%200%200-1.3%201.382q-.445.89-.444%202.074%200%201.2.51%202.107a3.8%203.8%200%200%200%201.382%201.381%203.9%203.9%200%200%200%201.893.477q.795%200%201.455-.33zm-2.789-5.38q-.576.675-.575%201.762%200%201.102.559%201.794.576.675%201.645.675a2.25%202.25%200%200%200%20.934-.19%202.2%202.2%200%200%200%20.468-.29l.178-.161a2.2%202.2%200%200%200%20.397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2%202.2%200%200%200-.633-.709l-.13-.086-.047-.028a2.1%202.1%200%200%200-1.073-.285q-1.052%200-1.629.692zm2.316%202.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96%200%200%200-.353-.389.85.85%200%200%200-.464-.127c-.4%200-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945%200%20.506.122.801.27.99.097.11.266.224.68.224.303%200%20.504-.09.687-.269zm7.545%201.705a2.6%202.6%200%200%200%20.331.423q.319.33.755.548l.173.074q.65.255%201.49.255%201.02%200%201.844-.493a3.45%203.45%200%200%200%201.316-1.4q.493-.904.493-2.089%200-1.909-.988-2.913-.988-1.02-2.584-1.02-.898%200-1.575.347a3%203%200%200%200-.415.262l-.199.166a3.4%203.4%200%200%200-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296%201.119.297%201.07%200%201.645-.675.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.435%200-.835.16a2%202%200%200%200-.284.136%202%202%200%200%200-.363.254%202.2%202.2%200%200%200-.46.569l-.082.162a2.6%202.6%200%200%200-.213%201.072v.115q0%20.707.296%201.267l.135.211zm.964-.818a1.1%201.1%200%200%200%20.367.385.94.94%200%200%200%20.476.118c.423%200%20.59-.117.687-.23.159-.194.28-.478.28-.95%200-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1%201%200%200%200-.503.135l-.012.007a.86.86%200%200%200-.335.343c-.073.133-.132.324-.132.614v.115a1.4%201.4%200%200%200%20.14.66zm15.7-6.222q.347-.346.346-.856a1.05%201.05%200%200%200-.345-.79%201.18%201.18%200%200%200-.84-.329q-.51%200-.855.33a1.05%201.05%200%200%200-.346.79q0%20.51.346.855.345.346.856.346.51%200%20.839-.346zm4.337%209.314.033-1.332q.191.403.59.747l.098.081a4%204%200%200%200%20.316.224l.223.122a3.2%203.2%200%200%200%201.44.322%203.8%203.8%200%200%200%201.875-.477%203.5%203.5%200%200%200%201.382-1.366q.527-.89.526-2.09%200-1.184-.444-2.073a3.24%203.24%200%200%200-1.283-1.399q-.823-.51-1.942-.51a3.5%203.5%200%200%200-1.527.344l-.086.043-.165.09a3%203%200%200%200-.33.214q-.432.315-.656.707a2%202%200%200%200-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5%202.5%200%200%200%20.566.7q.117.098.245.18l.144.08a2.1%202.1%200%200%200%20.975.232q1.07%200%201.645-.675.576-.69.576-1.778%200-1.102-.576-1.777-.56-.691-1.645-.692a2.2%202.2%200%200%200-1.015.235q-.22.113-.415.282l-.15.142a2.1%202.1%200%200%200-.42.594q-.223.479-.223%201.1v.115q0%20.705.293%201.26zm2.616-.293c.157-.191.28-.479.28-.967%200-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87%200%200%200-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0%20.285.057.499.144.669a1.1%201.1%200%200%200%20.367.405c.137.082.28.123.455.123.423%200%20.59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493%200%20.642.099l.247-1.794q-.196-.099-.717-.099a2.3%202.3%200%200%200-.545.063%202%202%200%200%200-.411.148%202.2%202.2%200%200%200-.4.249%202.5%202.5%200%200%200-.485.499%202.7%202.7%200%200%200-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5%201.5%200%200%201%20.466-.636%202.5%202.5%200%200%201%20.399-.253%202%202%200%200%201%20.224-.099zm9.784%202.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46%203.46%200%200%200-1.4%201.382q-.493.906-.493%202.106%200%201.07.428%201.975.428.89%201.332%201.432.906.526%202.255.526.973%200%201.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954%200-1.497-.444a1.6%201.6%200%200%201-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1%201%200%200%200-.156-.176q-.46-.428-1.316-.428-.986%200-1.494.604-.379.45-.494%201.234zm-27.053%202.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z%22%2F%3E%3Cpath%20fill%3D%22%23fff%22%20d%3D%22m19.63%2011.151-.757-1.71-.345%201.71-1.12%205.644h-1.827L18.083%204.7h.197l3.325%206.533.988%202.19.988-2.19L26.839%204.7h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.93%205.644h-.098l-2.913-5.644zm14.836%205.81q-1.02%200-1.893-.478a3.8%203.8%200%200%201-1.381-1.382q-.51-.906-.51-2.106%200-1.185.444-2.074a3.36%203.36%200%200%201%201.3-1.382q.839-.494%201.974-.494a3.3%203.3%200%200%201%201.234.231%203.3%203.3%200%200%201%20.97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02%201.053a3.17%203.17%200%200%201-1.662.444zm.296-1.482q.938%200%201.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2%202.2%200%200%200-.807-.872%202.1%202.1%200%200%200-1.119-.313q-1.053%200-1.629.692-.575.675-.575%201.76%200%201.103.559%201.795.577.675%201.645.675zm6.521-6.237h1.711v1.4q.906-1.597%202.83-1.597%201.596%200%202.584%201.02.988%201.005.988%202.914%200%201.185-.493%202.09a3.46%203.46%200%200%201-1.316%201.399%203.5%203.5%200%200%201-1.844.493q-.954%200-1.662-.329a2.67%202.67%200%200%201-1.086-.97l.017%205.134h-1.728zm4.048%206.22q1.07%200%201.645-.674.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.592%200-1.12.296-.51.28-.822.823-.296.527-.296%201.234v.115q0%20.708.296%201.267.313.543.823.855.51.296%201.119.297z%22%2F%3E%3Cpath%20fill%3D%22%23e1e3e9%22%20d%3D%22M51.325%204.7h1.86v10.45h3.473v1.646h-5.333zm7.12%204.542h1.843v7.553h-1.843zm.905-1.415a1.16%201.16%200%200%201-.856-.346%201.17%201.17%200%200%201-.346-.856%201.05%201.05%200%200%201%20.346-.79q.346-.329.856-.329.494%200%20.839.33a1.05%201.05%200%200%201%20.345.79%201.16%201.16%200%200%201-.345.855q-.33.346-.84.346zm7.875%209.133a3.17%203.17%200%200%201-1.662-.444q-.723-.46-1.004-1.053l-.033%201.332h-1.71V4.701h1.743v4.657l-.082%201.283q.279-.658%201.086-1.119a3.5%203.5%200%200%201%201.778-.477q1.119%200%201.942.51a3.24%203.24%200%200%201%201.283%201.4q.445.888.444%202.072%200%201.201-.526%202.09a3.5%203.5%200%200%201-1.382%201.366%203.8%203.8%200%200%201-1.876.477zm-.296-1.481q1.069%200%201.645-.675.577-.69.577-1.778%200-1.102-.577-1.776-.56-.691-1.645-.692a2.12%202.12%200%200%200-1.58.659q-.642.641-.642%201.694v.115q0%20.71.296%201.267a2.4%202.4%200%200%200%20.807.872%202.1%202.1%200%200%200%201.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14%202.14%200%200%201%201.349-.46q.527%200%20.724.098l-.247%201.794q-.149-.099-.642-.099-.774%200-1.416.494-.626.493-.626%201.58v3.883h-1.777V9.242zm9.534%207.718q-1.35%200-2.255-.526-.904-.543-1.332-1.432a4.6%204.6%200%200%201-.428-1.975q0-1.2.493-2.106a3.46%203.46%200%200%201%201.4-1.382q.889-.495%202.007-.494%201.744%200%202.584.97.855.956.856%202.7%200%20.444-.05.92h-5.43q.18%201.005.708%201.45.542.443%201.497.443.79%200%201.3-.131a4%204%200%200%200%20.938-.362l.542%201.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728%200-1.991%201.86z%22%2F%3E%3Cpath%20d%3D%22M5.074%2015.948a.484.657%200%200%200-.486.659v1.84a.484.657%200%200%200%20.486.659h4.101a.484.657%200%200%200%20.486-.659v-1.84a.484.657%200%200%200-.486-.659zm3.56%201.16H5.617v.838h3.017z%22%20style%3D%22fill%3A%23fff%3Bfill-rule%3Aevenodd%3Bstroke-width%3A1.03600001%22%2F%3E%3Cg%20style%3D%22stroke-width%3A1.12603545%22%3E%3Cpath%20d%3D%22M-9.408-1.416c-3.833-.025-7.056%202.912-7.08%206.615-.02%203.08%201.653%204.832%203.107%206.268.903.892%201.721%201.74%202.32%202.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87%201.87%200%200%200-.362%201.121l-.011%201.877c-.003.402.104.787.347%201.125.244.338.688.653%201.23.656l4.142.028c.542.003.99-.306%201.238-.641a1.87%201.87%200%200%200%20.363-1.121l.012-1.875a1.87%201.87%200%200%200-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145%201.425-1.983%202.348-2.87%201.473-1.414%203.18-3.149%203.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006%201.1v.002c3.274.02%205.92%202.532%205.9%205.6-.017%202.706-1.39%204.026-2.863%205.44-1.034.994-2.118%202.033-2.814%203.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34%200%200%201-.226.084.34.34%200%200%201-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067%202.7-5.545%205.975-5.523m-.02%202.826c-1.62-.01-2.944%201.315-2.955%202.96-.01%201.646%201.295%202.988%202.916%202.999h.002c1.621.01%202.943-1.316%202.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005%201.1c1.017.006%201.829.83%201.822%201.89s-.83%201.874-1.848%201.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874%201.848-1.868m-2.155%2011.857%204.14.025c.271.002.49.305.487.676l-.013%201.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668%22%20style%3D%22color%3A%23000%3Bfont-style%3Anormal%3Bfont-variant%3Anormal%3Bfont-weight%3A400%3Bfont-stretch%3Anormal%3Bfont-size%3Amedium%3Bline-height%3Anormal%3Bfont-family%3Asans-serif%3Bfont-variant-ligatures%3Anormal%3Bfont-variant-position%3Anormal%3Bfont-variant-caps%3Anormal%3Bfont-variant-numeric%3Anormal%3Bfont-variant-alternates%3Anormal%3Bfont-feature-settings%3Anormal%3Btext-indent%3A0%3Btext-align%3Astart%3Btext-decoration%3Anone%3Btext-decoration-line%3Anone%3Btext-decoration-style%3Asolid%3Btext-decoration-color%3A%23000%3Bletter-spacing%3Anormal%3Bword-spacing%3Anormal%3Btext-transform%3Anone%3Bwriting-mode%3Alr-tb%3Bdirection%3Altr%3Btext-orientation%3Amixed%3Bdominant-baseline%3Aauto%3Bbaseline-shift%3Abaseline%3Btext-anchor%3Astart%3Bwhite-space%3Anormal%3Bshape-padding%3A0%3Bclip-rule%3Aevenodd%3Bdisplay%3Ainline%3Boverflow%3Avisible%3Bvisibility%3Avisible%3Bopacity%3A1%3Bisolation%3Aauto%3Bmix-blend-mode%3Anormal%3Bcolor-interpolation%3AsRGB%3Bcolor-interpolation-filters%3AlinearRGB%3Bsolid-color%3A%23000%3Bsolid-opacity%3A1%3Bvector-effect%3Anone%3Bfill%3A%23000%3Bfill-opacity%3A.4%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-linecap%3Abutt%3Bstroke-linejoin%3Amiter%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-dashoffset%3A0%3Bstroke-opacity%3A1%3Bcolor-rendering%3Aauto%3Bimage-rendering%3Aauto%3Bshape-rendering%3Aauto%3Btext-rendering%3Aauto%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-9.415-.316C-12.69-.338-15.37%202.14-15.39%205.207c-.017%202.716%201.326%204.041%202.78%205.477%201.013%201%202.081%202.055%202.78%203.67l.092.076a.34.34%200%200%200%20.225.086.34.34%200%200%200%20.227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6%201.78-2.64%202.814-3.634%201.473-1.414%202.847-2.733%202.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057%208.784c1.621.011%202.944-1.315%202.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945%201.315-2.955%202.96s1.295%202.989%202.916%203%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23e1e3e9%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-11.594%2015.465c-.27-.002-.492.297-.494.668l-.012%201.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23fff%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){a.maplibregl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2288%22%20height%3D%2223%22%20fill%3D%22none%22%3E%3Cpath%20fill%3D%22%23000%22%20fill-opacity%3D%22.4%22%20fill-rule%3D%22evenodd%22%20d%3D%22M17.408%2016.796h-1.827l2.501-12.095h.198l3.324%206.533.988%202.19.988-2.19%203.258-6.533h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.929%205.644h-.098l-2.914-5.644-.757-1.71-.345%201.71zm1.958-3.42-.726%203.663a1.255%201.255%200%200%201-1.232%201.011h-1.827a1.255%201.255%200%200%201-1.229-1.509l2.501-12.095a1.255%201.255%200%200%201%201.23-1.001h.197a1.25%201.25%200%200%201%201.12.685l3.19%206.273%203.125-6.263a1.25%201.25%200%200%201%201.123-.695h.181a1.255%201.255%200%200%201%201.227.991l1.443%206.71a5%205%200%200%201%20.314-.787l.009-.016a4.6%204.6%200%200%201%201.777-1.887c.782-.46%201.668-.667%202.611-.667a4.6%204.6%200%200%201%201.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255%201.255%200%200%201%201.212.925%201.255%201.255%200%200%201%201.212-.925h1.711c.284%200%20.545.094.755.252.613-.3%201.312-.45%202.075-.45%201.356%200%202.557.445%203.482%201.4q.47.48.763%201.064V4.701a1.255%201.255%200%200%201%201.255-1.255h1.86A1.255%201.255%200%200%201%2054.44%204.7v9.194h2.217c.19%200%20.37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42%202.42%200%200%201-.682-1.71c0-.665.267-1.253.735-1.7a2.45%202.45%200%200%201%201.722-.674%202.43%202.43%200%200%201%201.705.675q.318.302.504.683V4.7a1.255%201.255%200%200%201%201.255-1.255h1.744A1.255%201.255%200%200%201%2065.812%204.7v3.335a4.8%204.8%200%200%201%201.526-.246c.938%200%201.817.214%202.59.69a4.47%204.47%200%200%201%201.67%201.743v-.98a1.255%201.255%200%200%201%201.256-1.256h1.777c.233%200%20.451.064.639.174a3.4%203.4%200%200%201%201.567-.372c.346%200%20.861.02%201.285.232a1.25%201.25%200%200%201%20.689%201.004%204.7%204.7%200%200%201%20.853-.588c.795-.44%201.675-.647%202.61-.647%201.385%200%202.65.39%203.525%201.396.836.938%201.168%202.173%201.168%203.528q-.001.515-.056%201.051a1.255%201.255%200%200%201-.947%201.09l.408.952a1.255%201.255%200%200%201-.477%201.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06%200-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8%205.8%200%200%201-.548-2.512q0-.429.053-.843a1.3%201.3%200%200%201-.333-.086l-.166-.004c-.223%200-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255%201.255%200%200%201-1.256%201.256h-1.777a1.255%201.255%200%200%201-1.256-1.256V15.69l-.032.057a4.8%204.8%200%200%201-1.86%201.833%205.04%205.04%200%200%201-2.484.634%204.5%204.5%200%200%201-1.935-.424%201.25%201.25%200%200%201-.764.258h-1.71a1.255%201.255%200%200%201-1.256-1.255V7.687a2.4%202.4%200%200%201-.428.625c.253.23.412.561.412.93v7.553a1.255%201.255%200%200%201-1.256%201.255h-1.843a1.25%201.25%200%200%201-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255%201.255%200%200%201-1.256-1.255v-1.251l-.061.117a4.7%204.7%200%200%201-1.782%201.884%204.77%204.77%200%200%201-2.485.67%205.6%205.6%200%200%201-1.485-.188l.009%202.764a1.255%201.255%200%200%201-1.255%201.259h-1.729a1.255%201.255%200%200%201-1.255-1.255v-3.537a1.255%201.255%200%200%201-1.167.793h-1.679a1.25%201.25%200%200%201-.77-.263%204.5%204.5%200%200%201-1.945.429c-.885%200-1.724-.21-2.495-.632l-.017-.01a5%205%200%200%201-1.081-.836%201.255%201.255%200%200%201-1.254%201.312h-1.81a1.255%201.255%200%200%201-1.228-.99l-.782-3.625-2.044%203.939a1.25%201.25%200%200%201-1.115.676h-.098a1.25%201.25%200%200%201-1.116-.68l-2.061-3.994zM35.92%2016.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033%201.332h1.678V9.242h-1.694l-.033%201.267q-.133-.329-.526-.658l-.032-.028a3.2%203.2%200%200%200-.668-.428l-.27-.12a3.3%203.3%200%200%200-1.235-.23q-1.136-.001-1.974.493a3.36%203.36%200%200%200-1.3%201.382q-.445.89-.444%202.074%200%201.2.51%202.107a3.8%203.8%200%200%200%201.382%201.381%203.9%203.9%200%200%200%201.893.477q.795%200%201.455-.33zm-2.789-5.38q-.576.675-.575%201.762%200%201.102.559%201.794.576.675%201.645.675a2.25%202.25%200%200%200%20.934-.19%202.2%202.2%200%200%200%20.468-.29l.178-.161a2.2%202.2%200%200%200%20.397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2%202.2%200%200%200-.633-.709l-.13-.086-.047-.028a2.1%202.1%200%200%200-1.073-.285q-1.052%200-1.629.692zm2.316%202.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96%200%200%200-.353-.389.85.85%200%200%200-.464-.127c-.4%200-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945%200%20.506.122.801.27.99.097.11.266.224.68.224.303%200%20.504-.09.687-.269zm7.545%201.705a2.6%202.6%200%200%200%20.331.423q.319.33.755.548l.173.074q.65.255%201.49.255%201.02%200%201.844-.493a3.45%203.45%200%200%200%201.316-1.4q.493-.904.493-2.089%200-1.909-.988-2.913-.988-1.02-2.584-1.02-.898%200-1.575.347a3%203%200%200%200-.415.262l-.199.166a3.4%203.4%200%200%200-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296%201.119.297%201.07%200%201.645-.675.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.435%200-.835.16a2%202%200%200%200-.284.136%202%202%200%200%200-.363.254%202.2%202.2%200%200%200-.46.569l-.082.162a2.6%202.6%200%200%200-.213%201.072v.115q0%20.707.296%201.267l.135.211zm.964-.818a1.1%201.1%200%200%200%20.367.385.94.94%200%200%200%20.476.118c.423%200%20.59-.117.687-.23.159-.194.28-.478.28-.95%200-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1%201%200%200%200-.503.135l-.012.007a.86.86%200%200%200-.335.343c-.073.133-.132.324-.132.614v.115a1.4%201.4%200%200%200%20.14.66zm15.7-6.222q.347-.346.346-.856a1.05%201.05%200%200%200-.345-.79%201.18%201.18%200%200%200-.84-.329q-.51%200-.855.33a1.05%201.05%200%200%200-.346.79q0%20.51.346.855.345.346.856.346.51%200%20.839-.346zm4.337%209.314.033-1.332q.191.403.59.747l.098.081a4%204%200%200%200%20.316.224l.223.122a3.2%203.2%200%200%200%201.44.322%203.8%203.8%200%200%200%201.875-.477%203.5%203.5%200%200%200%201.382-1.366q.527-.89.526-2.09%200-1.184-.444-2.073a3.24%203.24%200%200%200-1.283-1.399q-.823-.51-1.942-.51a3.5%203.5%200%200%200-1.527.344l-.086.043-.165.09a3%203%200%200%200-.33.214q-.432.315-.656.707a2%202%200%200%200-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5%202.5%200%200%200%20.566.7q.117.098.245.18l.144.08a2.1%202.1%200%200%200%20.975.232q1.07%200%201.645-.675.576-.69.576-1.778%200-1.102-.576-1.777-.56-.691-1.645-.692a2.2%202.2%200%200%200-1.015.235q-.22.113-.415.282l-.15.142a2.1%202.1%200%200%200-.42.594q-.223.479-.223%201.1v.115q0%20.705.293%201.26zm2.616-.293c.157-.191.28-.479.28-.967%200-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87%200%200%200-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0%20.285.057.499.144.669a1.1%201.1%200%200%200%20.367.405c.137.082.28.123.455.123.423%200%20.59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493%200%20.642.099l.247-1.794q-.196-.099-.717-.099a2.3%202.3%200%200%200-.545.063%202%202%200%200%200-.411.148%202.2%202.2%200%200%200-.4.249%202.5%202.5%200%200%200-.485.499%202.7%202.7%200%200%200-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5%201.5%200%200%201%20.466-.636%202.5%202.5%200%200%201%20.399-.253%202%202%200%200%201%20.224-.099zm9.784%202.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46%203.46%200%200%200-1.4%201.382q-.493.906-.493%202.106%200%201.07.428%201.975.428.89%201.332%201.432.906.526%202.255.526.973%200%201.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954%200-1.497-.444a1.6%201.6%200%200%201-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1%201%200%200%200-.156-.176q-.46-.428-1.316-.428-.986%200-1.494.604-.379.45-.494%201.234zm-27.053%202.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z%22%2F%3E%3Cpath%20fill%3D%22%23fff%22%20d%3D%22m19.63%2011.151-.757-1.71-.345%201.71-1.12%205.644h-1.827L18.083%204.7h.197l3.325%206.533.988%202.19.988-2.19L26.839%204.7h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.93%205.644h-.098l-2.913-5.644zm14.836%205.81q-1.02%200-1.893-.478a3.8%203.8%200%200%201-1.381-1.382q-.51-.906-.51-2.106%200-1.185.444-2.074a3.36%203.36%200%200%201%201.3-1.382q.839-.494%201.974-.494a3.3%203.3%200%200%201%201.234.231%203.3%203.3%200%200%201%20.97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02%201.053a3.17%203.17%200%200%201-1.662.444zm.296-1.482q.938%200%201.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2%202.2%200%200%200-.807-.872%202.1%202.1%200%200%200-1.119-.313q-1.053%200-1.629.692-.575.675-.575%201.76%200%201.103.559%201.795.577.675%201.645.675zm6.521-6.237h1.711v1.4q.906-1.597%202.83-1.597%201.596%200%202.584%201.02.988%201.005.988%202.914%200%201.185-.493%202.09a3.46%203.46%200%200%201-1.316%201.399%203.5%203.5%200%200%201-1.844.493q-.954%200-1.662-.329a2.67%202.67%200%200%201-1.086-.97l.017%205.134h-1.728zm4.048%206.22q1.07%200%201.645-.674.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.592%200-1.12.296-.51.28-.822.823-.296.527-.296%201.234v.115q0%20.708.296%201.267.313.543.823.855.51.296%201.119.297z%22%2F%3E%3Cpath%20fill%3D%22%23e1e3e9%22%20d%3D%22M51.325%204.7h1.86v10.45h3.473v1.646h-5.333zm7.12%204.542h1.843v7.553h-1.843zm.905-1.415a1.16%201.16%200%200%201-.856-.346%201.17%201.17%200%200%201-.346-.856%201.05%201.05%200%200%201%20.346-.79q.346-.329.856-.329.494%200%20.839.33a1.05%201.05%200%200%201%20.345.79%201.16%201.16%200%200%201-.345.855q-.33.346-.84.346zm7.875%209.133a3.17%203.17%200%200%201-1.662-.444q-.723-.46-1.004-1.053l-.033%201.332h-1.71V4.701h1.743v4.657l-.082%201.283q.279-.658%201.086-1.119a3.5%203.5%200%200%201%201.778-.477q1.119%200%201.942.51a3.24%203.24%200%200%201%201.283%201.4q.445.888.444%202.072%200%201.201-.526%202.09a3.5%203.5%200%200%201-1.382%201.366%203.8%203.8%200%200%201-1.876.477zm-.296-1.481q1.069%200%201.645-.675.577-.69.577-1.778%200-1.102-.577-1.776-.56-.691-1.645-.692a2.12%202.12%200%200%200-1.58.659q-.642.641-.642%201.694v.115q0%20.71.296%201.267a2.4%202.4%200%200%200%20.807.872%202.1%202.1%200%200%200%201.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14%202.14%200%200%201%201.349-.46q.527%200%20.724.098l-.247%201.794q-.149-.099-.642-.099-.774%200-1.416.494-.626.493-.626%201.58v3.883h-1.777V9.242zm9.534%207.718q-1.35%200-2.255-.526-.904-.543-1.332-1.432a4.6%204.6%200%200%201-.428-1.975q0-1.2.493-2.106a3.46%203.46%200%200%201%201.4-1.382q.889-.495%202.007-.494%201.744%200%202.584.97.855.956.856%202.7%200%20.444-.05.92h-5.43q.18%201.005.708%201.45.542.443%201.497.443.79%200%201.3-.131a4%204%200%200%200%20.938-.362l.542%201.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728%200-1.991%201.86z%22%2F%3E%3Cpath%20d%3D%22M5.074%2015.948a.484.657%200%200%200-.486.659v1.84a.484.657%200%200%200%20.486.659h4.101a.484.657%200%200%200%20.486-.659v-1.84a.484.657%200%200%200-.486-.659zm3.56%201.16H5.617v.838h3.017z%22%20style%3D%22fill%3A%23fff%3Bfill-rule%3Aevenodd%3Bstroke-width%3A1.03600001%22%2F%3E%3Cg%20style%3D%22stroke-width%3A1.12603545%22%3E%3Cpath%20d%3D%22M-9.408-1.416c-3.833-.025-7.056%202.912-7.08%206.615-.02%203.08%201.653%204.832%203.107%206.268.903.892%201.721%201.74%202.32%202.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87%201.87%200%200%200-.362%201.121l-.011%201.877c-.003.402.104.787.347%201.125.244.338.688.653%201.23.656l4.142.028c.542.003.99-.306%201.238-.641a1.87%201.87%200%200%200%20.363-1.121l.012-1.875a1.87%201.87%200%200%200-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145%201.425-1.983%202.348-2.87%201.473-1.414%203.18-3.149%203.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006%201.1v.002c3.274.02%205.92%202.532%205.9%205.6-.017%202.706-1.39%204.026-2.863%205.44-1.034.994-2.118%202.033-2.814%203.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34%200%200%201-.226.084.34.34%200%200%201-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067%202.7-5.545%205.975-5.523m-.02%202.826c-1.62-.01-2.944%201.315-2.955%202.96-.01%201.646%201.295%202.988%202.916%202.999h.002c1.621.01%202.943-1.316%202.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005%201.1c1.017.006%201.829.83%201.822%201.89s-.83%201.874-1.848%201.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874%201.848-1.868m-2.155%2011.857%204.14.025c.271.002.49.305.487.676l-.013%201.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668%22%20style%3D%22color%3A%23000%3Bfont-style%3Anormal%3Bfont-variant%3Anormal%3Bfont-weight%3A400%3Bfont-stretch%3Anormal%3Bfont-size%3Amedium%3Bline-height%3Anormal%3Bfont-family%3Asans-serif%3Bfont-variant-ligatures%3Anormal%3Bfont-variant-position%3Anormal%3Bfont-variant-caps%3Anormal%3Bfont-variant-numeric%3Anormal%3Bfont-variant-alternates%3Anormal%3Bfont-feature-settings%3Anormal%3Btext-indent%3A0%3Btext-align%3Astart%3Btext-decoration%3Anone%3Btext-decoration-line%3Anone%3Btext-decoration-style%3Asolid%3Btext-decoration-color%3A%23000%3Bletter-spacing%3Anormal%3Bword-spacing%3Anormal%3Btext-transform%3Anone%3Bwriting-mode%3Alr-tb%3Bdirection%3Altr%3Btext-orientation%3Amixed%3Bdominant-baseline%3Aauto%3Bbaseline-shift%3Abaseline%3Btext-anchor%3Astart%3Bwhite-space%3Anormal%3Bshape-padding%3A0%3Bclip-rule%3Aevenodd%3Bdisplay%3Ainline%3Boverflow%3Avisible%3Bvisibility%3Avisible%3Bopacity%3A1%3Bisolation%3Aauto%3Bmix-blend-mode%3Anormal%3Bcolor-interpolation%3AsRGB%3Bcolor-interpolation-filters%3AlinearRGB%3Bsolid-color%3A%23000%3Bsolid-opacity%3A1%3Bvector-effect%3Anone%3Bfill%3A%23000%3Bfill-opacity%3A.4%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-linecap%3Abutt%3Bstroke-linejoin%3Amiter%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-dashoffset%3A0%3Bstroke-opacity%3A1%3Bcolor-rendering%3Aauto%3Bimage-rendering%3Aauto%3Bshape-rendering%3Aauto%3Btext-rendering%3Aauto%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-9.415-.316C-12.69-.338-15.37%202.14-15.39%205.207c-.017%202.716%201.326%204.041%202.78%205.477%201.013%201%202.081%202.055%202.78%203.67l.092.076a.34.34%200%200%200%20.225.086.34.34%200%200%200%20.227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6%201.78-2.64%202.814-3.634%201.473-1.414%202.847-2.733%202.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057%208.784c1.621.011%202.944-1.315%202.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945%201.315-2.955%202.96s1.295%202.989%202.916%203%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23e1e3e9%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-11.594%2015.465c-.27-.002-.492.297-.494.668l-.012%201.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23fff%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl.maplibregl-ctrl-attrib{padding:0 5px;background-color:hsla(0,0%,100%,.5);margin:0}@media screen{.maplibregl-ctrl-attrib.maplibregl-compact{min-height:20px;padding:2px 24px 2px 0;margin:10px;position:relative;background-color:#fff;color:#000;border-radius:12px;box-sizing:content-box}.maplibregl-ctrl-attrib.maplibregl-compact-show{padding:2px 28px 2px 8px;visibility:visible}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact-show,.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact-show{padding:2px 8px 2px 28px;border-radius:12px}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-inner{display:none}.maplibregl-ctrl-attrib-button{display:none;cursor:pointer;position:absolute;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20fill-rule%3D%22evenodd%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M4%2010a6%206%200%201%200%2012%200%206%206%200%201%200-12%200m5-3a1%201%200%201%200%202%200%201%201%200%201%200-2%200m0%203a1%201%200%201%201%202%200v3a1%201%200%201%201-2%200%22%2F%3E%3C%2Fsvg%3E");background-color:hsla(0,0%,100%,.5);width:24px;height:24px;box-sizing:border-box;border-radius:12px;outline:none;top:0;right:0;border:0}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;list-style:none}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button::-webkit-details-marker{display:none}.maplibregl-ctrl-bottom-left .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-top-left .maplibregl-ctrl-attrib-button{left:0}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-inner{display:block}.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-button{background-color:rgba(0,0,0,.05)}.maplibregl-ctrl-bottom-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;right:0}.maplibregl-ctrl-top-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{top:0;right:0}.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{top:0;left:0}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;left:0}}@media screen and (forced-colors:active){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22%23fff%22%20fill-rule%3D%22evenodd%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M4%2010a6%206%200%201%200%2012%200%206%206%200%201%200-12%200m5-3a1%201%200%201%200%202%200%201%201%200%201%200-2%200m0%203a1%201%200%201%201%202%200v3a1%201%200%201%201-2%200%22%2F%3E%3C%2Fsvg%3E")}}@media screen and (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20fill-rule%3D%22evenodd%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M4%2010a6%206%200%201%200%2012%200%206%206%200%201%200-12%200m5-3a1%201%200%201%200%202%200%201%201%200%201%200-2%200m0%203a1%201%200%201%201%202%200v3a1%201%200%201%201-2%200%22%2F%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl-attrib a{color:rgba(0,0,0,.75);text-decoration:none}.maplibregl-ctrl-attrib a:hover{color:inherit;text-decoration:underline}.maplibregl-attrib-empty{display:none}.maplibregl-ctrl-scale{background-color:hsla(0,0%,100%,.75);font-size:10px;white-space:nowrap;border-color:#333;border-style:none solid solid;border-width:medium 2px 2px;padding:0 5px;color:#333;box-sizing:border-box}.maplibregl-popup{position:absolute;top:0;left:0;display:flex;will-change:transform;pointer-events:none}.maplibregl-popup-anchor-top,.maplibregl-popup-anchor-top-left,.maplibregl-popup-anchor-top-right{flex-direction:column}.maplibregl-popup-anchor-bottom,.maplibregl-popup-anchor-bottom-left,.maplibregl-popup-anchor-bottom-right{flex-direction:column-reverse}.maplibregl-popup-anchor-left{flex-direction:row}.maplibregl-popup-anchor-right{flex-direction:row-reverse}.maplibregl-popup-tip{width:0;height:0;border:10px solid transparent;z-index:1}.maplibregl-popup-anchor-top .maplibregl-popup-tip{align-self:center;border-top:none;border-bottom-color:#fff}.maplibregl-popup-anchor-top-left .maplibregl-popup-tip{align-self:flex-start;border-top:none;border-left:none;border-bottom-color:#fff}.maplibregl-popup-anchor-top-right .maplibregl-popup-tip{align-self:flex-end;border-top:none;border-right:none;border-bottom-color:#fff}.maplibregl-popup-anchor-bottom .maplibregl-popup-tip{align-self:center;border-bottom:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip{align-self:flex-start;border-bottom:none;border-left:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip{align-self:flex-end;border-bottom:none;border-right:none;border-top-color:#fff}.maplibregl-popup-anchor-left .maplibregl-popup-tip{align-self:center;border-left:none;border-right-color:#fff}.maplibregl-popup-anchor-right .maplibregl-popup-tip{align-self:center;border-right:none;border-left-color:#fff}[dir=rtl] .maplibregl-popup-anchor-left{flex-direction:row-reverse}[dir=rtl] .maplibregl-popup-anchor-right{flex-direction:row}[dir=rtl] .maplibregl-popup-anchor-top-left .maplibregl-popup-tip{align-self:flex-end}[dir=rtl] .maplibregl-popup-anchor-top-right .maplibregl-popup-tip{align-self:flex-start}[dir=rtl] .maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip{align-self:flex-end}[dir=rtl] .maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip{align-self:flex-start}.maplibregl-popup-close-button{position:absolute;right:0;top:0;border:0;border-radius:0 3px 0 0;cursor:pointer;background-color:transparent}.maplibregl-popup-close-button:hover{background-color:rgba(0,0,0,.05)}.maplibregl-popup-content{position:relative;background:#fff;border-radius:3px;box-shadow:0 1px 2px rgba(0,0,0,.1);padding:15px 10px;pointer-events:auto}.maplibregl-popup-anchor-top-left .maplibregl-popup-content{border-top-left-radius:0}.maplibregl-popup-anchor-top-right .maplibregl-popup-content{border-top-right-radius:0}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-content{border-bottom-left-radius:0}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-content{border-bottom-right-radius:0}.maplibregl-popup-track-pointer{display:none}.maplibregl-popup-track-pointer *{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-map:hover .maplibregl-popup-track-pointer{display:flex}.maplibregl-map:active .maplibregl-popup-track-pointer{display:none}.maplibregl-marker{position:absolute;top:0;left:0;will-change:transform;transition:opacity .2s}.maplibregl-marker-draggable{cursor:grab}.maplibregl-user-location-dot,.maplibregl-user-location-dot:before{background-color:#1da1f2;width:15px;height:15px;border-radius:50%}.maplibregl-user-location-dot:before{content:"";position:absolute;animation:maplibregl-user-location-dot-pulse 2s infinite}.maplibregl-user-location-dot:after{border-radius:50%;border:2px solid #fff;content:"";height:19px;left:-2px;position:absolute;top:-2px;width:19px;box-sizing:border-box;box-shadow:0 0 3px rgba(0,0,0,.35)}@media (prefers-reduced-motion:reduce){.maplibregl-user-location-dot:before{animation:none}}@keyframes maplibregl-user-location-dot-pulse{0%{transform:scale(1);opacity:1}70%{transform:scale(3);opacity:0}to{transform:scale(1);opacity:0}}.maplibregl-user-location-dot-stale{background-color:#aaa}.maplibregl-user-location-dot-stale:after{display:none}.maplibregl-user-location-accuracy-circle{background-color:#1da1f233;width:1px;height:1px;border-radius:100%}.maplibregl-crosshair,.maplibregl-crosshair .maplibregl-interactive,.maplibregl-crosshair .maplibregl-interactive:active{cursor:crosshair}.maplibregl-boxzoom{position:absolute;top:0;left:0;width:0;height:0;background:#fff;border:2px dotted #202020;opacity:.5}.maplibregl-cooperative-gesture-screen{background:rgba(0,0,0,.4);position:absolute;inset:0;display:flex;justify-content:center;align-items:center;color:#fff;padding:1rem;font-size:1.4em;line-height:1.2;opacity:0;pointer-events:none;transition:opacity 1s ease 1s;z-index:99999}.maplibregl-cooperative-gesture-screen.maplibregl-show{opacity:1;transition:opacity .05s}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:none}@media (hover:none),(pointer:coarse){.maplibregl-cooperative-gesture-screen .maplibregl-desktop-message{display:none}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:block}}.maplibregl-pseudo-fullscreen{position:fixed!important;width:100%!important;height:100%!important;top:0!important;left:0!important;z-index:99999}`; document.head.appendChild(e); } @@ -23898,6 +23898,55 @@ var Plotly = (() => { var FIND_TEX = /([^$]*)([$]+[^$]*[$]+)([^$]*)/; var matchTex = (str) => str ? str.match(FIND_TEX) : null; exports.matchTex = matchTex; + var isPureTex = (str) => { + var tex = matchTex(str); + return !!tex && !tex[1] && !tex[3]; + }; + exports.isPureTex = isPureTex; + function positionMathGroup(_context, svgClass, mathjaxGroup, newSvg, textAnchor, fontSize, width0, height0) { + var g = newSvg.select("g"); + var bb = g.node().getBoundingClientRect(); + var w = bb.width; + var h = bb.height; + var w0 = width0 === void 0 ? w : width0; + var h0 = height0 === void 0 ? h : height0; + if (w > w0 || h > h0) { + newSvg.style("overflow", "hidden"); + bb = newSvg.node().getBoundingClientRect(); + w = bb.width; + h = bb.height; + } + var x = +_context.attr("x"); + var y = +_context.attr("y"); + var textHeight = fontSize || _context.node().getBoundingClientRect().height; + var dy = -textHeight / 4; + if (svgClass[0] === "y") { + mathjaxGroup.attr({ + transform: "rotate(" + [-90, x, y] + ")" + strTranslate(-w / 2, dy - h / 2) + }); + } else if (svgClass[0] === "l") { + y = dy - h / 2; + } else if (svgClass[0] === "a" && svgClass.indexOf("atitle") !== 0) { + x = 0; + y = dy; + } else { + x = x - w * (textAnchor === "middle" ? 0.5 : textAnchor === "end" ? 1 : 0); + y = y + dy - h / 2; + } + newSvg.attr({ + x, + y + }); + } + function sanitizeMathJaxLinks(newSvg) { + newSvg.selectAll("a").each(function() { + var a = d3.select(this); + ["href", "xlink:href"].forEach(function(attrName) { + var href = a.attr(attrName); + if (href) a.attr(attrName, sanitizeHref(href) || null); + }); + }); + } exports.convertToTspans = function(_context, gd, _callback) { var str = _context.text(); var tex = !_context.attr("data-notex") && gd && gd._context.typesetMath && matchTex(str); @@ -23951,6 +24000,7 @@ var Plotly = (() => { "data-math": "Y" }); mathjaxGroup.node().appendChild(newSvg.node()); + sanitizeMathJaxLinks(newSvg); if (_glyphDefs && _glyphDefs.node()) { newSvg.node().insertBefore( _glyphDefs.node().cloneNode(true), @@ -23971,36 +24021,7 @@ var Plotly = (() => { var fill = _context.node().style.fill || "black"; var g = newSvg.select("g"); g.attr({ fill, stroke: fill }); - var bb = g.node().getBoundingClientRect(); - var w = bb.width; - var h = bb.height; - if (w > w0 || h > h0) { - newSvg.style("overflow", "hidden"); - bb = newSvg.node().getBoundingClientRect(); - w = bb.width; - h = bb.height; - } - var x = +_context.attr("x"); - var y = +_context.attr("y"); - var textHeight = fontSize || _context.node().getBoundingClientRect().height; - var dy = -textHeight / 4; - if (svgClass[0] === "y") { - mathjaxGroup.attr({ - transform: "rotate(" + [-90, x, y] + ")" + strTranslate(-w / 2, dy - h / 2) - }); - } else if (svgClass[0] === "l") { - y = dy - h / 2; - } else if (svgClass[0] === "a" && svgClass.indexOf("atitle") !== 0) { - x = 0; - y = dy; - } else { - x = x - w * (textAnchor === "middle" ? 0.5 : textAnchor === "end" ? 1 : 0); - y = y + dy - h / 2; - } - newSvg.attr({ - x, - y - }); + positionMathGroup(_context, svgClass, mathjaxGroup, newSvg, textAnchor, fontSize, w0, h0); if (_callback) _callback.call(_context, mathjaxGroup); resolve(mathjaxGroup); }); @@ -24008,6 +24029,24 @@ var Plotly = (() => { } else showText(); return _context; }; + exports.repositionMathGroup = function(_context) { + if (_context.empty()) return; + var svgClass = (_context.attr("class") ? _context.attr("class").split(" ")[0] : "text") + "-math"; + var parent = d3.select(_context.node().parentNode); + var mathjaxGroup = parent.select("g." + svgClass + "-group"); + var newSvg = mathjaxGroup.select("svg." + svgClass); + if (mathjaxGroup.empty() || newSvg.empty()) return; + var textAnchor = _context.attr("text-anchor"); + var fontSize = parseInt(_context.node().style.fontSize, 10); + positionMathGroup(_context, svgClass, mathjaxGroup, newSvg, textAnchor, fontSize); + }; + exports.getMathOrTextNode = function(textSel) { + var node = textSel.node(); + if (!node) return null; + var svgClass = (textSel.attr("class") ? textSel.attr("class").split(" ")[0] : "text") + "-math"; + var mathGroup = d3.select(node.parentNode).select("g." + svgClass + "-group"); + return mathGroup.empty() ? node : mathGroup.node(); + }; var LT_MATCH = /(<|<|<)/g; var GT_MATCH = /(>|>|>)/g; function cleanEscapesForTex(s) { @@ -30773,6 +30812,10 @@ var Plotly = (() => { if (((_b = ax.minor) == null ? void 0 : _b._tick0Init) === void 0) { mockAx.tick0 = ax.tick0; } + if (ax._useTicklabelIndex) { + autoTickRound(mockAx); + ax.minor._tickround = mockAx._tickround; + } }; function isMultiple(bigger, smaller) { return Math.abs((bigger / smaller + 0.5) % 1 - 0.5) < 1e-3; @@ -30860,24 +30903,32 @@ var Plotly = (() => { function positionPeriodTicks(tickVals, ax, definedDelta) { for (var i = 0; i < tickVals.length; i++) { var v = tickVals[i].value; - var a = i; - var b = i + 1; - if (i < tickVals.length - 1) { - a = i; - b = i + 1; - } else if (i > 0) { - a = i - 1; - b = i; + var A, B; + if (tickVals[i].periodEndTick != null) { + A = tickVals[i].value; + B = tickVals[i].periodEndTick.value; } else { - a = i; - b = i; + var a = i; + var b = i + 1; + if (i < tickVals.length - 1) { + a = i; + b = i + 1; + } else if (i > 0) { + a = i - 1; + b = i; + } else { + a = i; + b = i; + } + A = tickVals[a].value; + B = tickVals[b].value; } - var A = tickVals[a].value; - var B = tickVals[b].value; var actualDelta = Math.abs(B - A); var delta = definedDelta || actualDelta; var periodLength = 0; - if (delta >= ONEMINYEAR2) { + if (tickVals[i].periodEndTick != null) { + periodLength = actualDelta; + } else if (delta >= ONEMINYEAR2) { if (actualDelta >= ONEMINYEAR2 && actualDelta <= ONEMAXYEAR2) { periodLength = actualDelta; } else { @@ -30936,6 +30987,7 @@ var Plotly = (() => { var isPeriod = ax.ticklabelmode === "period"; var isReversed = ax.range[0] > ax.range[1]; var ticklabelIndex = !ax.ticklabelindex || Lib.isArrayOrTypedArray(ax.ticklabelindex) ? ax.ticklabelindex : [ax.ticklabelindex]; + ax._useTicklabelIndex = ticklabelIndex != null && ticklabelIndex !== 0; var rng = Lib.simpleMap(ax.range, ax.r2l, void 0, void 0, opts); var axrev = rng[1] < rng[0]; var minRange = Math.min(rng[0], rng[1]); @@ -30947,7 +30999,7 @@ var Plotly = (() => { var minorTickVals = []; var allTicklabelVals = []; var hasMinor = ax.minor && (ax.minor.ticks || ax.minor.showgrid); - var calcMinor = hasMinor || ticklabelIndex; + var calcMinor = hasMinor || ax._useTicklabelIndex; for (var major = 1; major >= (calcMinor ? 0 : 1); major--) { var isMinor = !major; if (major) { @@ -31017,7 +31069,7 @@ var Plotly = (() => { x = axes.tickIncrement(x, dtick, !axrev, calendar); } } - if ((major || ticklabelIndex) && isPeriod) { + if ((major || ax._useTicklabelIndex) && isPeriod) { x = axes.tickIncrement(x, dtick, !axrev, calendar); if (major) majorId--; } @@ -31052,72 +31104,82 @@ var Plotly = (() => { } } } + function findOverlappingTick(minorTick, majorTicks) { + const majorTick = majorTicks.find((majorTick2) => majorTick2.value === minorTick.value); + if (majorTick != null) { + return majorTick; + } + const epsilon2 = 1e7; + for (let i2 = 0; i2 < majorTicks.length; i2++) { + if (epsilon2 + majorTicks[i2].value === epsilon2 + minorTick.value) { + return majorTicks[i2]; + } + } + return null; + } + ; if (!minorTickVals || minorTickVals.length < 3) { - ticklabelIndex = false; + ax._useTicklabelIndex = false; } else { - var diff = (minorTickVals[2].value - minorTickVals[1].value) * (isReversed ? -1 : 1); + const diff = (minorTickVals[2].value - minorTickVals[1].value) * (isReversed ? -1 : 1); if (!periodCompatibleWithTickformat(diff, ax.tickformat)) { - ticklabelIndex = false; + ax._useTicklabelIndex = false; minorTickVals = minorTickVals.slice(1); } } - if (!ticklabelIndex) { + if (!ax._useTicklabelIndex) { allTicklabelVals = tickVals; } else { - var allTickVals = tickVals.concat(minorTickVals); + const filteredMinors = minorTickVals.filter((minor) => findOverlappingTick(minor, tickVals) == null); + const labelTickValsAscending = tickVals.concat(filteredMinors).sort((a, b) => a.value - b.value); if (isPeriod && tickVals.length) { - allTickVals = allTickVals.slice(1); - } - allTickVals = allTickVals.sort(function(a, b) { - return a.value - b.value; - }).filter(function(tick, index, self2) { - return index === 0 || tick.value !== self2[index - 1].value; - }); - var majorTickIndices = allTickVals.map(function(item, index) { - return item.minor === void 0 && !item.skipLabel ? index : null; - }).filter(function(index) { - return index !== null; - }); - majorTickIndices.forEach(function(majorIdx) { - ticklabelIndex.map(function(nextLabelIdx) { - var minorIdx = majorIdx + nextLabelIdx; - if (minorIdx >= 0 && minorIdx < allTickVals.length) { - Lib.pushUnique(allTicklabelVals, allTickVals[minorIdx]); - } - }); - }); - tickVals.forEach(function(tick) { - tick.skipLabel = allTicklabelVals.indexOf(tick) === -1; + tickVals[0].skipLabel = true; + } + tickVals.forEach(function(majorTick) { + if (!majorTick.skipLabel) { + ticklabelIndex.forEach((labelIndex) => { + if (labelIndex < 0) { + const smallerTicks = labelTickValsAscending.filter((minorTick) => minorTick.value <= majorTick.value); + const absLabelIndex = Math.abs(labelIndex); + const labeledTickIndex = smallerTicks.length - absLabelIndex - 1; + if (absLabelIndex < smallerTicks.length) { + const tickToLabel = smallerTicks[labeledTickIndex]; + allTicklabelVals.push(tickToLabel); + if (isPeriod) { + tickToLabel.periodEndTick = smallerTicks[labeledTickIndex + 1]; + } + } + } else { + const largerTicks = labelTickValsAscending.filter((minorTick) => minorTick.value >= majorTick.value); + if (labelIndex < largerTicks.length) { + const tickToLabel = largerTicks[labelIndex]; + allTicklabelVals.push(tickToLabel); + if (isPeriod && largerTicks[labelIndex + 1]) { + tickToLabel.periodEndTick = largerTicks[labelIndex + 1]; + } + } + } + }); + majorTick.skipLabel = true; + } }); + allTicklabelVals.forEach((t2) => t2.skipLabel = false); } if (hasMinor) { - var canOverlap = ax.minor.ticks === "inside" && ax.ticks === "outside" || ax.minor.ticks === "outside" && ax.ticks === "inside"; - if (!canOverlap) { - var majorValues = tickVals.map(function(d) { - return d.value; - }); + var allowedToOverlap = ax.minor.ticks === "inside" && ax.ticks === "outside" || ax.minor.ticks === "outside" && ax.ticks === "inside"; + if (!allowedToOverlap) { var list = []; for (var k = 0; k < minorTickVals.length; k++) { - var T = minorTickVals[k]; - var v = T.value; - if (majorValues.indexOf(v) !== -1) { - continue; - } - var found = false; - for (var q = 0; !found && q < tickVals.length; q++) { - if ( - // add 10e6 to eliminate problematic digits - 1e7 + tickVals[q].value === 1e7 + v - ) { - found = true; - } + if (findOverlappingTick(minorTickVals[k], tickVals) == null) { + list.push(minorTickVals[k]); } - if (!found) list.push(T); } minorTickVals = list; } } - if (isPeriod) positionPeriodTicks(allTicklabelVals, ax, ax._definedDelta); + if (isPeriod) { + positionPeriodTicks(allTicklabelVals, ax, ax._definedDelta); + } var i; if (ax.rangebreaks) { var flip = ax._id.charAt(0) === "y"; @@ -31180,7 +31242,7 @@ var Plotly = (() => { var _minor = tickVals[i].minor; var _value = tickVals[i].value; if (_minor) { - if (ticklabelIndex && allTicklabelVals.indexOf(tickVals[i]) !== -1) { + if (ax._useTicklabelIndex && allTicklabelVals.indexOf(tickVals[i]) !== -1) { t = setTickLabel(ax, tickVals[i]); } else { t = { x: _value }; @@ -31196,7 +31258,7 @@ var Plotly = (() => { ticksOut.push(t); } } - if (isPeriod && ticklabelIndex && minorTicks.length) { + if (isPeriod && ax._useTicklabelIndex && minorTicks.length) { minorTicks[0].noTick = true; } ticksOut = ticksOut.concat(minorTicks); @@ -31565,7 +31627,7 @@ var Plotly = (() => { }; } function formatDate(ax, out, hover, extraPrecision) { - var tr = ax._tickround; + var tr = ax._useTicklabelIndex ? ax.minor._tickround : ax._tickround; var fmt = hover && ax.hoverformat || axes.getTickFormat(ax); extraPrecision = !fmt && extraPrecision; if (extraPrecision) { @@ -33900,12 +33962,44 @@ var Plotly = (() => { } }); + // src/components/legend/constants.ts + var constants_exports3 = {}; + __export(constants_exports3, { + dfltFillHeight: () => dfltFillHeight, + itemGap: () => itemGap, + itemHeightPad: () => itemHeightPad, + itemMinHeight: () => itemMinHeight, + scrollBarColor: () => scrollBarColor, + scrollBarEnterAttrs: () => scrollBarEnterAttrs, + scrollBarMargin: () => scrollBarMargin, + scrollBarMinHeight: () => scrollBarMinHeight, + scrollBarWidth: () => scrollBarWidth, + titlePad: () => titlePad + }); + var scrollBarWidth, scrollBarMinHeight, scrollBarColor, scrollBarMargin, scrollBarEnterAttrs, titlePad, itemGap, dfltFillHeight, itemMinHeight, itemHeightPad; + var init_constants3 = __esm({ + "src/components/legend/constants.ts"() { + "use strict"; + scrollBarWidth = 6; + scrollBarMinHeight = 20; + scrollBarColor = "#808BA4"; + scrollBarMargin = 4; + scrollBarEnterAttrs = { rx: 20, ry: 3, width: 0, height: 0 }; + titlePad = 2; + itemGap = 5; + dfltFillHeight = 6; + itemMinHeight = 16; + itemHeightPad = 3; + } + }); + // src/components/legend/attributes.js var require_attributes9 = __commonJS({ "src/components/legend/attributes.js"(exports, module) { "use strict"; var fontAttrs = require_font_attributes(); var colorAttrs = require_attributes3(); + var { dfltFillHeight: dfltFillHeight2 } = (init_constants3(), __toCommonJS(constants_exports3)); module.exports = { // not really a 'subplot' attribute container, // but this is the flag we use to denote attributes that @@ -33989,6 +34083,12 @@ var Plotly = (() => { dflt: 30, editType: "legend" }, + itemheight: { + valType: "number", + min: dfltFillHeight2, + dflt: dfltFillHeight2, + editType: "legend" + }, itemclick: { valType: "enumerated", values: ["toggle", "toggleothers", false], @@ -34266,6 +34366,7 @@ var Plotly = (() => { coerce("indentation"); coerce("itemsizing"); coerce("itemwidth"); + coerce("itemheight"); coerce("itemclick"); coerce("itemdoubleclick"); const groupClick = coerce("groupclick"); @@ -34586,31 +34687,6 @@ var Plotly = (() => { } }); - // src/components/legend/constants.ts - var constants_exports3 = {}; - __export(constants_exports3, { - itemGap: () => itemGap, - scrollBarColor: () => scrollBarColor, - scrollBarEnterAttrs: () => scrollBarEnterAttrs, - scrollBarMargin: () => scrollBarMargin, - scrollBarMinHeight: () => scrollBarMinHeight, - scrollBarWidth: () => scrollBarWidth, - titlePad: () => titlePad - }); - var scrollBarWidth, scrollBarMinHeight, scrollBarColor, scrollBarMargin, scrollBarEnterAttrs, titlePad, itemGap; - var init_constants3 = __esm({ - "src/components/legend/constants.ts"() { - "use strict"; - scrollBarWidth = 6; - scrollBarMinHeight = 20; - scrollBarColor = "#808BA4"; - scrollBarMargin = 4; - scrollBarEnterAttrs = { rx: 20, ry: 3, width: 0, height: 0 }; - titlePad = 2; - itemGap = 5; - } - }); - // src/components/legend/get_legend_data.js var require_get_legend_data = __commonJS({ "src/components/legend/get_legend_data.js"(exports, module) { @@ -34855,6 +34931,7 @@ var Plotly = (() => { if (!legend) legend = fullLayout.legend; var constantItemSizing = legend.itemsizing === "constant"; var itemWidth = legend.itemwidth; + var itemHeight = legend.itemheight; var centerPos = (itemWidth + constants2.itemGap * 2) / 2; var centerTransform = strTranslate(centerPos, 0); var boundLineWidth = function(mlw, cont, max, cst) { @@ -34932,7 +35009,9 @@ var Plotly = (() => { var fill = this3.select(".legendfill").selectAll("path").data(showFill || showGradientFill ? [d] : []); fill.enter().append("path").classed("js-fill", true); fill.exit().remove(); - fill.attr("d", pathStart + "h" + itemWidth + "v6h-" + itemWidth + "z").call(fillStyle); + fill.attr("d", pathStart + "h" + itemWidth + "v" + itemHeight + "h-" + itemWidth + "z").call(fillStyle); + const fillShiftY = showFill || showGradientFill ? (constants2.dfltFillHeight - itemHeight) / 2 : 0; + this3.selectAll("g.legendfill, g.legendlines, g.legendsymbols").attr("transform", fillShiftY ? strTranslate(0, fillShiftY) : null); if (showLine || showGradientLine) { var lw = boundLineWidth(void 0, trace.line, MAX_LINE_WIDTH, CST_LINE_WIDTH); tMod = Lib.minExtend(trace, { line: { width: lw } }); @@ -35092,14 +35171,18 @@ var Plotly = (() => { var fillColor = mcc || d0.mc || marker.color; var markerPattern = marker.pattern; var pAttr = Drawing.getPatternAttr; - var patternShape = markerPattern && (pAttr(markerPattern.shape, 0, "") || pAttr(markerPattern.path, 0, "")); + let patternIndex = 0; + if (legend._inHover && d0._distinct && d0.index != null) { + patternIndex = d0.index; + } + const patternShape = markerPattern && (pAttr(markerPattern.shape, patternIndex, "") || pAttr(markerPattern.path, patternIndex, "")); if (patternShape) { - var patternBGColor = pAttr(markerPattern.bgcolor, 0, null); - var patternFGColor = pAttr(markerPattern.fgcolor, 0, null); + const patternBGColor = pAttr(markerPattern.bgcolor, patternIndex, null); + const patternFGColor = pAttr(markerPattern.fgcolor, patternIndex, null); var patternFGOpacity = markerPattern.fgopacity; - var patternSize = dimAttr(markerPattern.size, 8, 10); - var patternSolidity = dimAttr(markerPattern.solidity, 0.5, 1); - var patternID = "legend-" + trace.uid; + const patternSize = legend._inHover ? dimAttr(pAttr(markerPattern.size, patternIndex, 8), 8, 10) : dimAttr(markerPattern.size, 8, 10); + const patternSolidity = legend._inHover ? dimAttr(pAttr(markerPattern.solidity, patternIndex, 0.5), 0.5, 1) : dimAttr(markerPattern.solidity, 0.5, 1); + const patternID = legend._inHover ? `hover-${trace.uid}-${patternIndex}` : `legend-${trace.uid}`; p.call( Drawing.pattern, "legend", @@ -35921,7 +36004,7 @@ var Plotly = (() => { }); } function textLayout(s, g, gd, legendObj, aTitle) { - if (legendObj._inHover) s.attr("data-notex", true); + if (legendObj._inHover) s.attr("data-notex", svgTextUtils.isPureTex(s.text()) ? null : true); svgTextUtils.convertToTspans(s, gd, function() { computeTextDimensions(g, gd, legendObj, aTitle); }); @@ -35996,7 +36079,8 @@ var Plotly = (() => { legendObj._titleHeight = height; } else { legendItem.lineHeight = lineHeight; - legendItem.height = Math.max(height, 16) + 3; + const fillItemHeight = constants2.itemMinHeight + legendObj.itemheight - constants2.dfltFillHeight; + legendItem.height = Math.max(height, constants2.itemMinHeight, fillItemHeight) + constants2.itemHeightPad; legendItem.width = width; } } @@ -36188,6 +36272,13 @@ var Plotly = (() => { } Drawing.setRect(traceToggle, 0, -h / 2, w, h); }); + if (legendObj._inHover) { + const textRight = legendObj._width - bw2 - itemGap2 - titleSize[0]; + traces.each(function(d) { + if (d[0].textAlign !== "right") return; + d3.select(this).select("." + legendId + "text").attr("text-anchor", "end").call(svgTextUtils.positionText, textRight); + }); + } var titleEl = scrollBox.select("." + legendId + "titletext"); if (titleEl.node()) { horizontalAlignTitle(titleEl, legendObj, bw); @@ -36391,28 +36482,47 @@ var Plotly = (() => { outerContainer: opts.outerContainer || opts.container }); var hoverLabel = hoverText.hoverLabels; - var tooltipSpacing = 5; - var lastBottomY = 0; - var anchor = 0; - hoverLabel.sort(function(a, b) { - return a.y0 - b.y0; - }).each(function(d, i) { - var topY = d.y0 - d.by / 2; - if (topY - tooltipSpacing < lastBottomY) { - d.offset = lastBottomY - topY + tooltipSpacing; - } else { - d.offset = 0; - } - lastBottomY = topY + d.by + d.offset; - if (i === opts.anchorIndex || 0) anchor = d.offset; - }).each(function(d) { - d.offset -= anchor; - }); + function fixVerticalOverlap() { + var tooltipSpacing = 5; + var lastBottomY = 0; + var anchor = 0; + hoverLabel.sort(function(a, b) { + return a.y0 - b.y0; + }).each(function(d, i) { + var topY = d.y0 - d.by / 2; + if (topY - tooltipSpacing < lastBottomY) { + d.offset = lastBottomY - topY + tooltipSpacing; + } else { + d.offset = 0; + } + lastBottomY = topY + d.by + d.offset; + if (i === opts.anchorIndex || 0) anchor = d.offset; + }).each(function(d) { + d.offset -= anchor; + }); + } var scaleX = gd._fullLayout._invScaleX; var scaleY = gd._fullLayout._invScaleY; + fixVerticalOverlap(); alignHoverText(hoverLabel, rotateLabels, scaleX, scaleY); + if (hoverText.mathjaxPromise) { + hoverText.mathjaxPromise.then(function() { + fixVerticalOverlap(); + alignHoverText(hoverLabel, rotateLabels, scaleX, scaleY); + hoverLabel.each(function() { + var g = d3.select(this); + svgTextUtils.repositionMathGroup(g.select("text.nums")); + svgTextUtils.repositionMathGroup(g.select("text.name")); + }); + }); + } return multiHover ? hoverLabel : hoverLabel.node(); }; + function canSpikeToNonHoveredPoint(xa, ya) { + return Boolean( + (xa == null ? void 0 : xa.showspikes) && xa.spikesnap !== "hovered data" || (ya == null ? void 0 : ya.showspikes) && ya.spikesnap !== "hovered data" + ); + } function _hover(gd, evt, subplot, noHoverEvent, eventTarget) { if (!subplot) subplot = "xy"; if (typeof subplot === "string") { @@ -36425,6 +36535,7 @@ var Plotly = (() => { var plots = fullLayout._plots || []; var plotinfo = plots[subplot]; var hasCartesian = fullLayout._has("cartesian"); + var hasTernary = fullLayout._has("ternary"); var hovermode = evt.hovermode || fullLayout.hovermode; var hovermodeHasX = (hovermode || "").charAt(0) === "x"; var hovermodeHasY = (hovermode || "").charAt(0) === "y"; @@ -36487,6 +36598,7 @@ var Plotly = (() => { hLinePoint: null, vLinePoint: null }; + const ternarySpikePoints = {}; var hasOneHorizontalTrace = false; if (Array.isArray(evt)) { hovermode = "array"; @@ -36683,42 +36795,56 @@ var Plotly = (() => { hoverData.splice(0, closedataPreviousLength); distance = hoverData[0].distance; } - if (hasCartesian && spikedistance !== 0) { - if (hoverData.length === 0) { - pointData.distance = spikedistance; - pointData.index = false; - var closestPoints = trace._module.hoverPoints(pointData, xval, yval, "closest", { - hoverLayer: fullLayout._hoverlayer - }); - if (closestPoints) { - closestPoints = closestPoints.filter(function(point) { - return point.spikeDistance <= spikedistance; - }); + if (Registry.traceIs(trace, "ternary") && spikedistance !== 0) { + const ternary = pointData.subplot; + const needsClosestPoint = ["aaxis", "baxis", "caxis"].some((name4) => ternary[name4].showspikes && ternary[name4].spikesnap !== "hovered data"); + if (needsClosestPoint) { + let spikePoint = newPoints == null ? void 0 : newPoints[0]; + if (!Number.isFinite(spikePoint == null ? void 0 : spikePoint.spikeDistance)) { + const spikeData = Lib.extendFlat({}, pointData, { distance: spikedistance, index: false }); + const closestPoints2 = trace._module.hoverPoints(spikeData, xval, yval, "closest"); + spikePoint = closestPoints2 && closestPoints2[0]; } - if (closestPoints && closestPoints.length) { - var tmpPoint; - var closestVPoints = closestPoints.filter(function(point) { - return point.xa.showspikes && point.xa.spikesnap !== "hovered data"; - }); - if (closestVPoints.length) { - var closestVPt = closestVPoints[0]; - if (isNumeric2(closestVPt.x0) && isNumeric2(closestVPt.y0)) { - tmpPoint = fillSpikePoint(closestVPt); - if (!spikePoints.vLinePoint || spikePoints.vLinePoint.spikeDistance > tmpPoint.spikeDistance) { - spikePoints.vLinePoint = tmpPoint; - } + const previousSpikePoint = ternarySpikePoints[subplotId]; + if (spikePoint && spikePoint.index !== void 0 && spikePoint.index !== false && spikePoint.spikeDistance <= spikedistance && (!previousSpikePoint || spikePoint.spikeDistance < previousSpikePoint.spikeDistance)) { + ternarySpikePoints[subplotId] = spikePoint; + } + } + } + if (hasCartesian && hoverData.length === 0 && spikedistance !== 0 && canSpikeToNonHoveredPoint(pointData.xa, pointData.ya)) { + pointData.distance = spikedistance; + pointData.index = false; + var closestPoints = trace._module.hoverPoints(pointData, xval, yval, "closest", { + hoverLayer: fullLayout._hoverlayer + }); + if (closestPoints) { + closestPoints = closestPoints.filter(function(point) { + return point.spikeDistance <= spikedistance; + }); + } + if (closestPoints == null ? void 0 : closestPoints.length) { + var tmpPoint; + var closestVPoints = closestPoints.filter(function(point) { + return point.xa.showspikes && point.xa.spikesnap !== "hovered data"; + }); + if (closestVPoints.length) { + var closestVPt = closestVPoints[0]; + if (isNumeric2(closestVPt.x0) && isNumeric2(closestVPt.y0)) { + tmpPoint = fillSpikePoint(closestVPt); + if (!spikePoints.vLinePoint || spikePoints.vLinePoint.spikeDistance > tmpPoint.spikeDistance) { + spikePoints.vLinePoint = tmpPoint; } } - var closestHPoints = closestPoints.filter(function(point) { - return point.ya.showspikes && point.ya.spikesnap !== "hovered data"; - }); - if (closestHPoints.length) { - var closestHPt = closestHPoints[0]; - if (isNumeric2(closestHPt.x0) && isNumeric2(closestHPt.y0)) { - tmpPoint = fillSpikePoint(closestHPt); - if (!spikePoints.hLinePoint || spikePoints.hLinePoint.spikeDistance > tmpPoint.spikeDistance) { - spikePoints.hLinePoint = tmpPoint; - } + } + var closestHPoints = closestPoints.filter(function(point) { + return point.ya.showspikes && point.ya.spikesnap !== "hovered data"; + }); + if (closestHPoints.length) { + var closestHPt = closestHPoints[0]; + if (isNumeric2(closestHPt.x0) && isNumeric2(closestHPt.y0)) { + tmpPoint = fillSpikePoint(closestHPt); + if (!spikePoints.hLinePoint || spikePoints.hLinePoint.spikeDistance > tmpPoint.spikeDistance) { + spikePoints.hLinePoint = tmpPoint; } } } @@ -36727,6 +36853,18 @@ var Plotly = (() => { } } findHoverPoints(); + function updateTernarySpikelines() { + fullLayout._hoverlayer.selectAll(".ternary-spikes").remove(); + if (spikedistance === 0) return; + for (let i2 = 0; i2 < subplots.length; i2++) { + const id2 = subplots[i2]; + const ternary = fullLayout[id2] && fullLayout[id2]._subplot; + if (ternary && ternary.drawSpikelines) { + const point = hoverData.find((d) => d.trace.subplot === id2 && d.index !== void 0 && d.index !== false && d.spikeDistance <= spikedistance); + ternary.drawSpikelines(point, ternarySpikePoints[id2], xvalArray && xvalArray[i2], yvalArray && yvalArray[i2]); + } + } + } function selectClosestPoint(pointsData, spikedistance2, spikeOnWinning2) { var resultPoint = null; var minDistance = Infinity; @@ -36816,6 +36954,7 @@ var Plotly = (() => { emitHover([]); gd._hoverAnywhereActive = true; } + if (hasTernary) updateTernarySpikelines(); return result; } if (hasCartesian) { @@ -36823,6 +36962,7 @@ var Plotly = (() => { createSpikelines(gd, spikePoints, spikelineOpts); } } + if (hasTernary) updateTernarySpikelines(); if (helpers.isXYhover(_mode) && hoverData[0].length !== 0 && hoverData[0].trace.type !== "splom") { var winningPoint = hoverData[0]; if (multipleHoverPoints[winningPoint.trace.type]) { @@ -36912,6 +37052,18 @@ var Plotly = (() => { if (!helpers.isUnifiedHover(hovermode)) { hoverAvoidOverlaps(hoverLabels, rotateLabels, fullLayout, hoverText.commonLabelBoundingBox); alignHoverText(hoverLabels, rotateLabels, fullLayout._invScaleX, fullLayout._invScaleY); + if (hoverText.mathjaxPromise) { + hoverText.mathjaxPromise.then(function() { + if (gd._hoverdata !== newhoverdata) return; + hoverAvoidOverlaps(hoverLabels, rotateLabels, fullLayout, hoverText.commonLabelBoundingBox); + alignHoverText(hoverLabels, rotateLabels, fullLayout._invScaleX, fullLayout._invScaleY); + hoverLabels.each(function() { + var g = d3.select(this); + svgTextUtils.repositionMathGroup(g.select("text.nums")); + svgTextUtils.repositionMathGroup(g.select("text.name")); + }); + }); + } } if (eventTarget && eventTarget.tagName) { var hasClickToShow = Registry.getComponentMethod("annotations", "hasClickToShow")(gd, newhoverdata); @@ -36945,6 +37097,9 @@ var Plotly = (() => { return [d.trace.index, d.index, d.x0, d.y0, d.name, d.attr, d.xa ? d.xa._id : "", d.ya ? d.ya._id : ""].join(","); } var EXTRA_STRING_REGEX = /([\s\S]*)<\/extra>/; + function getHoverTextBBox(gd, textSel) { + return getBoundingClientRect(gd, svgTextUtils.getMathOrTextNode(textSel)); + } function createHoverText(hoverData, opts) { var gd = opts.gd; var fullLayout = gd._fullLayout; @@ -36955,6 +37110,7 @@ var Plotly = (() => { var outerContainer = opts.outerContainer; var commonLabelOpts = opts.commonLabelOpts || {}; if (hoverData.length === 0) return [[]]; + var mathjaxPromises = []; var fontFamily = opts.fontFamily || constants2.HOVERFONT; var fontSize = opts.fontSize || constants2.HOVERFONTSIZE; var fontWeight = opts.fontWeight || fullLayout.font.weight; @@ -37010,9 +37166,7 @@ var Plotly = (() => { var lpath = Lib.ensureSingle(label, "path", "", function(s) { s.style({ "stroke-width": "1px" }); }); - var ltext = Lib.ensureSingle(label, "text", "", function(s) { - s.attr("data-notex", 1); - }); + var ltext = Lib.ensureSingle(label, "text", ""); var commonBgColor = commonLabelOpts.bgcolor || Color.defaultLine; var commonStroke = commonLabelOpts.bordercolor || Color.contrast(commonBgColor); var contrastColor = Color.contrast(commonBgColor); @@ -37032,100 +37186,122 @@ var Plotly = (() => { fill: commonBgColor, stroke: commonStroke }); - ltext.text(t0).call(Drawing.font, commonLabelFont).call(svgTextUtils.positionText, 0, 0).call(svgTextUtils.convertToTspans, gd); - label.attr("transform", ""); - var tbb2 = getBoundingClientRect(gd, ltext.node()); - var lx2, ly2; - if (hovermode === "x") { - var topsign = xa.side === "top" ? "-" : ""; - ltext.attr("text-anchor", "middle").call( - svgTextUtils.positionText, - 0, - xa.side === "top" ? outerTop - tbb2.bottom - HOVERARROWSIZE2 - HOVERTEXTPAD2 : outerTop - tbb2.top + HOVERARROWSIZE2 + HOVERTEXTPAD2 - ); - lx2 = xa._offset + (c0.x0 + c0.x1) / 2; - ly2 = ya._offset + (xa.side === "top" ? 0 : ya._length); - var halfWidth = tbb2.width / 2 + HOVERTEXTPAD2; - var tooltipMidX = lx2; - if (lx2 < halfWidth) { - tooltipMidX = halfWidth; - } else if (lx2 > fullLayout.width - halfWidth) { - tooltipMidX = fullLayout.width - halfWidth; - } - lpath.attr( - "d", - "M" + (lx2 - tooltipMidX) + ",0L" + (lx2 - tooltipMidX + HOVERARROWSIZE2) + "," + topsign + HOVERARROWSIZE2 + "H" + halfWidth + "v" + topsign + (HOVERTEXTPAD2 * 2 + tbb2.height) + "H" + -halfWidth + "V" + topsign + HOVERARROWSIZE2 + "H" + (lx2 - tooltipMidX - HOVERARROWSIZE2) + "Z" - ); - lx2 = tooltipMidX; - commonLabelRect.minX = lx2 - halfWidth; - commonLabelRect.maxX = lx2 + halfWidth; - if (xa.side === "top") { - commonLabelRect.minY = ly2 - (HOVERTEXTPAD2 * 2 + tbb2.height); - commonLabelRect.maxY = ly2 - HOVERTEXTPAD2; - } else { - commonLabelRect.minY = ly2 + HOVERTEXTPAD2; - commonLabelRect.maxY = ly2 + (HOVERTEXTPAD2 * 2 + tbb2.height); - } - } else { - var anchor; - var sgn; - var leftsign; - if (ya.side === "right") { - anchor = "start"; - sgn = 1; - leftsign = ""; - lx2 = xa._offset + xa._length; - } else { - anchor = "end"; - sgn = -1; - leftsign = "-"; - lx2 = xa._offset; - } - ly2 = ya._offset + (c0.y0 + c0.y1) / 2; - ltext.attr("text-anchor", anchor); - lpath.attr( - "d", - "M0,0L" + leftsign + HOVERARROWSIZE2 + "," + HOVERARROWSIZE2 + "V" + (HOVERTEXTPAD2 + tbb2.height / 2) + "h" + leftsign + (HOVERTEXTPAD2 * 2 + tbb2.width) + "V-" + (HOVERTEXTPAD2 + tbb2.height / 2) + "H" + leftsign + HOVERARROWSIZE2 + "V-" + HOVERARROWSIZE2 + "Z" - ); - commonLabelRect.minY = ly2 - (HOVERTEXTPAD2 + tbb2.height / 2); - commonLabelRect.maxY = ly2 + (HOVERTEXTPAD2 + tbb2.height / 2); - if (ya.side === "right") { - commonLabelRect.minX = lx2 + HOVERARROWSIZE2; - commonLabelRect.maxX = lx2 + HOVERARROWSIZE2 + (HOVERTEXTPAD2 * 2 + tbb2.width); - } else { - commonLabelRect.minX = lx2 - HOVERARROWSIZE2 - (HOVERTEXTPAD2 * 2 + tbb2.width); - commonLabelRect.maxX = lx2 - HOVERARROWSIZE2; - } - var halfHeight = tbb2.height / 2; - var lty = outerTop - tbb2.top - halfHeight; - var clipId = "clip" + fullLayout._uid + "commonlabel" + ya._id; - var clipPath; - if (lx2 < tbb2.width + 2 * HOVERTEXTPAD2 + HOVERARROWSIZE2) { - clipPath = "M-" + (HOVERARROWSIZE2 + HOVERTEXTPAD2) + "-" + halfHeight + "h-" + (tbb2.width - HOVERTEXTPAD2) + "V" + halfHeight + "h" + (tbb2.width - HOVERTEXTPAD2) + "Z"; - var ltx = tbb2.width - lx2 + HOVERTEXTPAD2; - svgTextUtils.positionText(ltext, ltx, lty); - if (anchor === "end") { - ltext.selectAll("tspan").each(function() { - var s = d3.select(this); - var dummy = Drawing.tester.append("text").text(s.text()).call(Drawing.font, commonLabelFont); - var dummyBB = getBoundingClientRect(gd, dummy.node()); - if (Math.round(dummyBB.width) < Math.round(tbb2.width)) { - s.attr("x", ltx - dummyBB.width); + var commonLabelTex = svgTextUtils.isPureTex(String(t0)); + var onCommonLabelReady; + if (commonLabelTex) { + mathjaxPromises.push( + new Promise(function(resolve) { + onCommonLabelReady = function() { + if (!ltext.node().parentNode) { + resolve(); + return; } - dummy.remove(); - }); + positionCommonLabel(); + svgTextUtils.repositionMathGroup(ltext); + resolve(); + }; + }) + ); + } + ltext.text(t0).call(Drawing.font, commonLabelFont).attr("data-notex", commonLabelTex ? null : 1).call(svgTextUtils.positionText, 0, 0).call(svgTextUtils.convertToTspans, gd, onCommonLabelReady); + positionCommonLabel(); + function positionCommonLabel() { + label.attr("transform", ""); + svgTextUtils.positionText(ltext, 0, 0); + svgTextUtils.repositionMathGroup(ltext); + var tbb2 = getHoverTextBBox(gd, ltext); + var lx2, ly2; + if (hovermode === "x") { + var topsign = xa.side === "top" ? "-" : ""; + ltext.attr("text-anchor", "middle").call( + svgTextUtils.positionText, + 0, + xa.side === "top" ? outerTop - tbb2.bottom - HOVERARROWSIZE2 - HOVERTEXTPAD2 : outerTop - tbb2.top + HOVERARROWSIZE2 + HOVERTEXTPAD2 + ); + lx2 = xa._offset + (c0.x0 + c0.x1) / 2; + ly2 = ya._offset + (xa.side === "top" ? 0 : ya._length); + var halfWidth = tbb2.width / 2 + HOVERTEXTPAD2; + var tooltipMidX = lx2; + if (lx2 < halfWidth) { + tooltipMidX = halfWidth; + } else if (lx2 > fullLayout.width - halfWidth) { + tooltipMidX = fullLayout.width - halfWidth; + } + lpath.attr( + "d", + "M" + (lx2 - tooltipMidX) + ",0L" + (lx2 - tooltipMidX + HOVERARROWSIZE2) + "," + topsign + HOVERARROWSIZE2 + "H" + halfWidth + "v" + topsign + (HOVERTEXTPAD2 * 2 + tbb2.height) + "H" + -halfWidth + "V" + topsign + HOVERARROWSIZE2 + "H" + (lx2 - tooltipMidX - HOVERARROWSIZE2) + "Z" + ); + lx2 = tooltipMidX; + commonLabelRect.minX = lx2 - halfWidth; + commonLabelRect.maxX = lx2 + halfWidth; + if (xa.side === "top") { + commonLabelRect.minY = ly2 - (HOVERTEXTPAD2 * 2 + tbb2.height); + commonLabelRect.maxY = ly2 - HOVERTEXTPAD2; + } else { + commonLabelRect.minY = ly2 + HOVERTEXTPAD2; + commonLabelRect.maxY = ly2 + (HOVERTEXTPAD2 * 2 + tbb2.height); } } else { - svgTextUtils.positionText(ltext, sgn * (HOVERTEXTPAD2 + HOVERARROWSIZE2), lty); - clipPath = null; + var anchor; + var sgn; + var leftsign; + if (ya.side === "right") { + anchor = "start"; + sgn = 1; + leftsign = ""; + lx2 = xa._offset + xa._length; + } else { + anchor = "end"; + sgn = -1; + leftsign = "-"; + lx2 = xa._offset; + } + ly2 = ya._offset + (c0.y0 + c0.y1) / 2; + ltext.attr("text-anchor", anchor); + lpath.attr( + "d", + "M0,0L" + leftsign + HOVERARROWSIZE2 + "," + HOVERARROWSIZE2 + "V" + (HOVERTEXTPAD2 + tbb2.height / 2) + "h" + leftsign + (HOVERTEXTPAD2 * 2 + tbb2.width) + "V-" + (HOVERTEXTPAD2 + tbb2.height / 2) + "H" + leftsign + HOVERARROWSIZE2 + "V-" + HOVERARROWSIZE2 + "Z" + ); + commonLabelRect.minY = ly2 - (HOVERTEXTPAD2 + tbb2.height / 2); + commonLabelRect.maxY = ly2 + (HOVERTEXTPAD2 + tbb2.height / 2); + if (ya.side === "right") { + commonLabelRect.minX = lx2 + HOVERARROWSIZE2; + commonLabelRect.maxX = lx2 + HOVERARROWSIZE2 + (HOVERTEXTPAD2 * 2 + tbb2.width); + } else { + commonLabelRect.minX = lx2 - HOVERARROWSIZE2 - (HOVERTEXTPAD2 * 2 + tbb2.width); + commonLabelRect.maxX = lx2 - HOVERARROWSIZE2; + } + var halfHeight = tbb2.height / 2; + var lty = outerTop - tbb2.top - halfHeight; + var clipId = "clip" + fullLayout._uid + "commonlabel" + ya._id; + var clipPath; + if (lx2 < tbb2.width + 2 * HOVERTEXTPAD2 + HOVERARROWSIZE2) { + clipPath = "M-" + (HOVERARROWSIZE2 + HOVERTEXTPAD2) + "-" + halfHeight + "h-" + (tbb2.width - HOVERTEXTPAD2) + "V" + halfHeight + "h" + (tbb2.width - HOVERTEXTPAD2) + "Z"; + var ltx = tbb2.width - lx2 + HOVERTEXTPAD2; + svgTextUtils.positionText(ltext, ltx, lty); + if (anchor === "end") { + ltext.selectAll("tspan").each(function() { + var s = d3.select(this); + var dummy = Drawing.tester.append("text").text(s.text()).call(Drawing.font, commonLabelFont); + var dummyBB = getBoundingClientRect(gd, dummy.node()); + if (Math.round(dummyBB.width) < Math.round(tbb2.width)) { + s.attr("x", ltx - dummyBB.width); + } + dummy.remove(); + }); + } + } else { + svgTextUtils.positionText(ltext, sgn * (HOVERTEXTPAD2 + HOVERARROWSIZE2), lty); + clipPath = null; + } + var textClip = fullLayout._topclips.selectAll("#" + clipId).data(clipPath ? [0] : []); + textClip.enter().append("clipPath").attr("id", clipId).append("path"); + textClip.exit().remove(); + textClip.select("path").attr("d", clipPath); + Drawing.setClipUrl(ltext, clipPath ? clipId : null, gd); } - var textClip = fullLayout._topclips.selectAll("#" + clipId).data(clipPath ? [0] : []); - textClip.enter().append("clipPath").attr("id", clipId).append("path"); - textClip.exit().remove(); - textClip.select("path").attr("d", clipPath); - Drawing.setClipUrl(ltext, clipPath ? clipId : null, gd); + label.attr("transform", strTranslate(lx2, ly2)); } - label.attr("transform", strTranslate(lx2, ly2)); }); if (helpers.isUnifiedHover(hovermode)) { container.selectAll("g.hovertext").remove(); @@ -37332,6 +37508,23 @@ var Plotly = (() => { var texts2 = getHoverLabelText(d, showCommonLabel, hovermode, fullLayout, t0, g); var text2 = texts2[0]; var name5 = texts2[1]; + var hasName = !!(name5 && name5 !== text2); + var numsTex = svgTextUtils.isPureTex(text2); + var nameTex = hasName && svgTextUtils.isPureTex(name5); + var pendingLabelParts = (numsTex ? 1 : 0) + (nameTex ? 1 : 0); + var onLabelPartReady; + if (pendingLabelParts) { + mathjaxPromises.push( + new Promise(function(resolve) { + onLabelPartReady = function() { + if (--pendingLabelParts === 0) { + if (g.node().parentNode) finalizePosition(); + resolve(); + } + }; + }) + ); + } var tx = g.select("text.nums").call(Drawing.font, { family: d.fontFamily || fontFamily, size: d.fontSize || fontSize, @@ -37342,11 +37535,9 @@ var Plotly = (() => { textcase: d.fontTextcase || fontTextcase, lineposition: d.fontLineposition || fontLineposition, shadow: d.fontShadow || fontShadow - }).text(text2).attr("data-notex", 1).call(svgTextUtils.positionText, 0, 0).call(svgTextUtils.convertToTspans, gd); + }).text(text2).attr("data-notex", numsTex ? null : 1).call(svgTextUtils.positionText, 0, 0).call(svgTextUtils.convertToTspans, gd, numsTex ? onLabelPartReady : void 0); var tx2 = g.select("text.name"); - var tx2width = 0; - var tx2height = 0; - if (name5 && name5 !== text2) { + if (hasName) { tx2.call(Drawing.font, { family: d.fontFamily || fontFamily, size: d.fontSize || fontSize, @@ -37357,75 +37548,90 @@ var Plotly = (() => { textcase: d.fontTextcase || fontTextcase, lineposition: d.fontLineposition || fontLineposition, shadow: d.fontShadow || fontShadow - }).text(name5).attr("data-notex", 1).call(svgTextUtils.positionText, 0, 0).call(svgTextUtils.convertToTspans, gd); - var t2bb = getBoundingClientRect(gd, tx2.node()); - tx2width = t2bb.width + 2 * HOVERTEXTPAD2; - tx2height = t2bb.height + 2 * HOVERTEXTPAD2; + }).text(name5).attr("data-notex", nameTex ? null : 1).call(svgTextUtils.positionText, 0, 0).call(svgTextUtils.convertToTspans, gd, nameTex ? onLabelPartReady : void 0); } else { tx2.remove(); g.select("rect").remove(); } - g.select("path").style({ - fill: numsColor, - stroke: contrastColor - }); - var htx = d.xa._offset + (d.x0 + d.x1) / 2; - var hty = d.ya._offset + (d.y0 + d.y1) / 2; - var dx = Math.abs(d.x1 - d.x0); - var dy = Math.abs(d.y1 - d.y0); - var tbb2 = getBoundingClientRect(gd, tx.node()); - var tbbWidth = tbb2.width / fullLayout._invScaleX; - var tbbHeight = tbb2.height / fullLayout._invScaleY; - d.ty0 = (outerTop - tbb2.top) / fullLayout._invScaleY; - d.bx = tbbWidth + 2 * HOVERTEXTPAD2; - d.by = Math.max(tbbHeight + 2 * HOVERTEXTPAD2, tx2height); - d.anchor = "start"; - d.txwidth = tbbWidth; - d.tx2width = tx2width; - d.offset = 0; - var txTotalWidth = (tbbWidth + HOVERARROWSIZE2 + HOVERTEXTPAD2 + tx2width) * fullLayout._invScaleX; - var anchorStartOK, anchorEndOK; - if (rotateLabels) { - d.pos = htx; - anchorStartOK = hty + dy / 2 + txTotalWidth <= outerHeight; - anchorEndOK = hty - dy / 2 - txTotalWidth >= 0; - if ((d.idealAlign === "top" || !anchorStartOK) && anchorEndOK) { - hty -= dy / 2; - d.anchor = "end"; - } else if (anchorStartOK) { - hty += dy / 2; - d.anchor = "start"; + finalizePosition(); + function finalizePosition() { + g.attr("transform", ""); + tx.call(svgTextUtils.positionText, 0, 0); + svgTextUtils.repositionMathGroup(tx); + if (hasName) { + tx2.call(svgTextUtils.positionText, 0, 0); + svgTextUtils.repositionMathGroup(tx2); + } + g.select("path").style({ + fill: numsColor, + stroke: contrastColor + }); + var htx = d.xa._offset + (d.x0 + d.x1) / 2; + var hty = d.ya._offset + (d.y0 + d.y1) / 2; + var dx = Math.abs(d.x1 - d.x0); + var dy = Math.abs(d.y1 - d.y0); + var tx2width = 0; + var tx2height = 0; + if (hasName) { + var t2bb = getHoverTextBBox(gd, tx2); + tx2width = t2bb.width + 2 * HOVERTEXTPAD2; + tx2height = t2bb.height + 2 * HOVERTEXTPAD2; + } + var tbb2 = getHoverTextBBox(gd, tx); + var tbbWidth = tbb2.width / fullLayout._invScaleX; + var tbbHeight = tbb2.height / fullLayout._invScaleY; + d.ty0 = (outerTop - tbb2.top) / fullLayout._invScaleY; + d.bx = tbbWidth + 2 * HOVERTEXTPAD2; + d.by = Math.max(tbbHeight + 2 * HOVERTEXTPAD2, tx2height); + d.anchor = "start"; + d.txwidth = tbbWidth; + d.tx2width = tx2width; + d.offset = 0; + var txTotalWidth = (tbbWidth + HOVERARROWSIZE2 + HOVERTEXTPAD2 + tx2width) * fullLayout._invScaleX; + var anchorStartOK, anchorEndOK; + if (rotateLabels) { + d.pos = htx; + anchorStartOK = hty + dy / 2 + txTotalWidth <= outerHeight; + anchorEndOK = hty - dy / 2 - txTotalWidth >= 0; + if ((d.idealAlign === "top" || !anchorStartOK) && anchorEndOK) { + hty -= dy / 2; + d.anchor = "end"; + } else if (anchorStartOK) { + hty += dy / 2; + d.anchor = "start"; + } else { + d.anchor = "middle"; + } + d.crossPos = hty; } else { - d.anchor = "middle"; + d.pos = hty; + anchorStartOK = htx + dx / 2 + txTotalWidth <= outerWidth; + anchorEndOK = htx - dx / 2 - txTotalWidth >= 0; + if ((d.idealAlign === "left" || !anchorStartOK) && anchorEndOK) { + htx -= dx / 2; + d.anchor = "end"; + } else if (anchorStartOK) { + htx += dx / 2; + d.anchor = "start"; + } else { + d.anchor = "middle"; + var txHalfWidth = txTotalWidth / 2; + var overflowR = htx + txHalfWidth - outerWidth; + var overflowL = htx - txHalfWidth; + if (overflowR > 0) htx -= overflowR; + if (overflowL < 0) htx += -overflowL; + } + d.crossPos = htx; } - d.crossPos = hty; - } else { - d.pos = hty; - anchorStartOK = htx + dx / 2 + txTotalWidth <= outerWidth; - anchorEndOK = htx - dx / 2 - txTotalWidth >= 0; - if ((d.idealAlign === "left" || !anchorStartOK) && anchorEndOK) { - htx -= dx / 2; - d.anchor = "end"; - } else if (anchorStartOK) { - htx += dx / 2; - d.anchor = "start"; - } else { - d.anchor = "middle"; - var txHalfWidth = txTotalWidth / 2; - var overflowR = htx + txHalfWidth - outerWidth; - var overflowL = htx - txHalfWidth; - if (overflowR > 0) htx -= overflowR; - if (overflowL < 0) htx += -overflowL; - } - d.crossPos = htx; - } - tx.attr("text-anchor", d.anchor); - if (tx2width) tx2.attr("text-anchor", d.anchor); - g.attr("transform", strTranslate(htx, hty) + (rotateLabels ? strRotate(YANGLE2) : "")); + tx.attr("text-anchor", d.anchor); + if (tx2width) tx2.attr("text-anchor", d.anchor); + g.attr("transform", strTranslate(htx, hty) + (rotateLabels ? strRotate(YANGLE2) : "")); + } }); return { hoverLabels, - commonLabelBoundingBox: commonLabelRect + commonLabelBoundingBox: commonLabelRect, + mathjaxPromise: mathjaxPromises.length ? Promise.all(mathjaxPromises) : null }; } function getHoverLabelText(d, showCommonLabel, hovermode, fullLayout, t0, g) { @@ -48788,7 +48994,7 @@ var Plotly = (() => { } function marginPushersAgain() { if (!Plots.didMarginChange(oldMargins, fullLayout._size)) return; - return Lib.syncOrAsync([marginPushers, subroutines.layoutStyles], gd); + return marginPushers(); } function positionAndAutorange() { if (!recalc) { diff --git a/dist/plotly-geo.min.js b/dist/plotly-geo.min.js index 1438ac39be5..5f84010f4f1 100644 --- a/dist/plotly-geo.min.js +++ b/dist/plotly-geo.min.js @@ -1,5 +1,5 @@ /** -* plotly.js (geo - minified) v4.1.2 +* plotly.js (geo - minified) v4.2.0 * Copyright 2012-2026, Plotly, Inc. * All rights reserved. * Licensed under the MIT license @@ -12,16 +12,16 @@ root.moduleName = factory(); } } (typeof self !== "undefined" ? self : this, () => { -"use strict";var Plotly=(()=>{var EY=Object.create;var K2=Object.defineProperty,LY=Object.defineProperties,qY=Object.getOwnPropertyDescriptor,PY=Object.getOwnPropertyDescriptors,RY=Object.getOwnPropertyNames,Td=Object.getOwnPropertySymbols,zY=Object.getPrototypeOf,My=Object.prototype.hasOwnProperty,F_=Object.prototype.propertyIsEnumerable;var D_=(e,r,t)=>r in e?K2(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,da=(e,r)=>{for(var t in r||(r={}))My.call(r,t)&&D_(e,t,r[t]);if(Td)for(var t of Td(r))F_.call(r,t)&&D_(e,t,r[t]);return e},Ba=(e,r)=>LY(e,PY(r));var E_=(e,r)=>{var t={};for(var a in e)My.call(e,a)&&r.indexOf(a)<0&&(t[a]=e[a]);if(e!=null&&Td)for(var a of Td(e))r.indexOf(a)<0&&F_.call(e,a)&&(t[a]=e[a]);return t};var Ia=(e,r,t)=>()=>{if(t)throw t[0];try{return e&&(r=e(e=0)),r}catch(a){throw t=[a],a}};var le=(e,r)=>()=>{try{return r||e((r={exports:{}}).exports,r),r.exports}catch(t){throw r=0,t}},Ha=(e,r)=>{for(var t in r)K2(e,t,{get:r[t],enumerable:!0})},L_=(e,r,t,a)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of RY(r))!My.call(e,n)&&n!==t&&K2(e,n,{get:()=>r[n],enumerable:!(a=qY(r,n))||a.enumerable});return e};var q_=(e,r,t)=>(t=e!=null?EY(zY(e)):{},L_(r||!e||!e.__esModule?K2(t,"default",{value:e,enumerable:!0}):t,e)),Tr=e=>L_(K2({},"__esModule",{value:!0}),e);var P_=(e,r,t)=>new Promise((a,n)=>{var i=s=>{try{l(t.next(s))}catch(u){n(u)}},o=s=>{try{l(t.throw(s))}catch(u){n(u)}},l=s=>s.done?a(s.value):Promise.resolve(s.value).then(i,o);l((t=t.apply(e,r)).next())});var Q2=le(R_=>{"use strict";R_.version="4.1.2"});var N_=le((z_,kd)=>{(function(r,t,a){t[r]=t[r]||a(),typeof kd!="undefined"&&kd.exports&&(kd.exports=t[r])})("Promise",typeof window!="undefined"?window:z_,function(){"use strict";var r,t,a,n=Object.prototype.toString,i=typeof setImmediate!="undefined"?function(C){return setImmediate(C)}:setTimeout;try{Object.defineProperty({},"x",{}),r=function(C,x,_,M){return Object.defineProperty(C,x,{value:_,writable:!0,configurable:M!==!1})}}catch(b){r=function(x,_,M){return x[_]=M,x}}a=(function(){var C,x,_;function M(T,A){this.fn=T,this.self=A,this.next=void 0}return{add:function(A,E){_=new M(A,E),x?x.next=_:C=_,x=_,_=void 0},drain:function(){var A=C;for(C=x=t=void 0;A;)A.fn.call(A.self),A=A.next}}})();function o(b,C){a.add(b,C),t||(t=i(a.drain))}function l(b){var C,x=typeof b;return b!=null&&(x=="object"||x=="function")&&(C=b.then),typeof C=="function"?C:!1}function s(){for(var b=0;b0&&o(s,x))}catch(_){c.call(new d(x),_)}}}function c(b){var C=this;C.triggered||(C.triggered=!0,C.def&&(C=C.def),C.msg=b,C.state=2,C.chain.length>0&&o(s,C))}function h(b,C,x,_){for(var M=0;M{(function(){var e={version:"3.8.2"},r=[].slice,t=function(v){return r.call(v)},a=self.document;function n(v){return v&&(v.ownerDocument||v.document||v).documentElement}function i(v){return v&&(v.ownerDocument&&v.ownerDocument.defaultView||v.document&&v||v.defaultView)}if(a)try{t(a.documentElement.childNodes)[0].nodeType}catch(v){t=function(g){for(var w=g.length,S=new Array(w);w--;)S[w]=g[w];return S}}if(Date.now||(Date.now=function(){return+new Date}),a)try{a.createElement("DIV").style.setProperty("opacity",0,"")}catch(v){var o=this.Element.prototype,l=o.setAttribute,s=o.setAttributeNS,u=this.CSSStyleDeclaration.prototype,f=u.setProperty;o.setAttribute=function(g,w){l.call(this,g,w+"")},o.setAttributeNS=function(g,w,S){s.call(this,g,w,S+"")},u.setProperty=function(g,w,S){f.call(this,g,w+"",S)}}e.ascending=c;function c(v,g){return vg?1:v>=g?0:NaN}e.descending=function(v,g){return gv?1:g>=v?0:NaN},e.min=function(v,g){var w=-1,S=v.length,F,L;if(arguments.length===1){for(;++w=L){F=L;break}for(;++wL&&(F=L)}else{for(;++w=L){F=L;break}for(;++wL&&(F=L)}return F},e.max=function(v,g){var w=-1,S=v.length,F,L;if(arguments.length===1){for(;++w=L){F=L;break}for(;++wF&&(F=L)}else{for(;++w=L){F=L;break}for(;++wF&&(F=L)}return F},e.extent=function(v,g){var w=-1,S=v.length,F,L,Y;if(arguments.length===1){for(;++w=L){F=Y=L;break}for(;++wL&&(F=L),Y=L){F=Y=L;break}for(;++wL&&(F=L),Y1)return Y/(Z-1)},e.deviation=function(){var v=e.variance.apply(this,arguments);return v&&Math.sqrt(v)};function m(v){return{left:function(g,w,S,F){for(arguments.length<3&&(S=0),arguments.length<4&&(F=g.length);S>>1;v(g[L],w)<0?S=L+1:F=L}return S},right:function(g,w,S,F){for(arguments.length<3&&(S=0),arguments.length<4&&(F=g.length);S>>1;v(g[L],w)>0?F=L:S=L+1}return S}}}var p=m(c);e.bisectLeft=p.left,e.bisect=e.bisectRight=p.right,e.bisector=function(v){return m(v.length===1?function(g,w){return c(v(g),w)}:v)},e.shuffle=function(v,g,w){(S=arguments.length)<3&&(w=v.length,S<2&&(g=0));for(var S=w-g,F,L;S;)L=Math.random()*S--|0,F=v[S+g],v[S+g]=v[L+g],v[L+g]=F;return v},e.permute=function(v,g){for(var w=g.length,S=new Array(w);w--;)S[w]=v[g[w]];return S},e.pairs=function(v){for(var g=0,w=v.length-1,S,F=v[0],L=new Array(w<0?0:w);g=0;)for(Y=v[g],w=Y.length;--w>=0;)L[--F]=Y[w];return L};var b=Math.abs;e.range=function(v,g,w){if(arguments.length<3&&(w=1,arguments.length<2&&(g=v,v=0)),(g-v)/w===1/0)throw new Error("infinite range");var S=[],F=C(b(w)),L=-1,Y;if(v*=F,g*=F,w*=F,w<0)for(;(Y=v+w*++L)>g;)S.push(Y/F);else for(;(Y=v+w*++L)=g.length)return F?F.call(v,Z):S?Z.sort(S):Z;for(var ne=-1,ge=Z.length,ye=g[ae++],qe,Ye,be,Ce=new _,Fe;++ne=g.length)return N;var ae=[],ne=w[Z++];return N.forEach(function(ge,ye){ae.push({key:ge,values:Y(ye,Z)})}),ne?ae.sort(function(ge,ye){return ne(ge.key,ye.key)}):ae}return v.map=function(N,Z){return L(Z,N,0)},v.entries=function(N){return Y(L(e.map,N,0),0)},v.key=function(N){return g.push(N),v},v.sortKeys=function(N){return w[g.length-1]=N,v},v.sortValues=function(N){return S=N,v},v.rollup=function(N){return F=N,v},v},e.set=function(v){var g=new V;if(v)for(var w=0,S=v.length;w=0&&(S=v.slice(w+1),v=v.slice(0,w)),v)return arguments.length<2?this[v].on(S):this[v].on(S,g);if(arguments.length===2){if(g==null)for(v in this)this.hasOwnProperty(v)&&this[v].on(S,null);return this}};function ce(v){var g=[],w=new _;function S(){for(var F=g,L=-1,Y=F.length,N;++L=0&&(w=v.slice(0,g))!=="xmlns"&&(v=v.slice(g+1)),Ne.hasOwnProperty(w)?{space:Ne[w],local:v}:v}},K.attr=function(v,g){if(arguments.length<2){if(typeof v=="string"){var w=this.node();return v=e.ns.qualify(v),v.local?w.getAttributeNS(v.space,v.local):w.getAttribute(v)}for(g in v)this.each(Je(g,v[g]));return this}return this.each(Je(v,g))};function Je(v,g){v=e.ns.qualify(v);function w(){this.removeAttribute(v)}function S(){this.removeAttributeNS(v.space,v.local)}function F(){this.setAttribute(v,g)}function L(){this.setAttributeNS(v.space,v.local,g)}function Y(){var Z=g.apply(this,arguments);Z==null?this.removeAttribute(v):this.setAttribute(v,Z)}function N(){var Z=g.apply(this,arguments);Z==null?this.removeAttributeNS(v.space,v.local):this.setAttributeNS(v.space,v.local,Z)}return g==null?v.local?S:w:typeof g=="function"?v.local?N:Y:v.local?L:F}function ar(v){return v.trim().replace(/\s+/g," ")}K.classed=function(v,g){if(arguments.length<2){if(typeof v=="string"){var w=this.node(),S=(v=fr(v)).length,F=-1;if(g=w.classList){for(;++F=0;)(L=w[S])&&(F&&F!==L.nextSibling&&F.parentNode.insertBefore(L,F),F=L);return this},K.sort=function(v){v=Oe.apply(this,arguments);for(var g=-1,w=this.length;++g=g&&(g=F+1);!(Z=Y[g])&&++g0&&(v=v.slice(0,F));var Y=yr.get(v);Y&&(v=Y,L=pr);function N(){var ne=this[S];ne&&(this.removeEventListener(v,ne,ne.$),delete this[S])}function Z(){var ne=L(g,t(arguments));N.call(this),this.addEventListener(v,this[S]=ne,ne.$=w),ne._=g}function ae(){var ne=new RegExp("^__on([^.]+)"+e.requote(v)+"$"),ge;for(var ye in this)if(ge=ye.match(ne)){var qe=this[ye];this.removeEventListener(ge[1],qe,qe.$),delete this[ye]}}return F?g?Z:N:g?te:ae}var yr=e.map({mouseenter:"mouseover",mouseleave:"mouseout"});a&&yr.forEach(function(v){"on"+v in a&&yr.remove(v)});function Cr(v,g){return function(w){var S=e.event;e.event=w,g[0]=this.__data__;try{v.apply(this,g)}finally{e.event=S}}}function pr(v,g){var w=Cr(v,g);return function(S){var F=this,L=S.relatedTarget;(!L||L!==F&&!(L.compareDocumentPosition(F)&8))&&w.call(F,S)}}var xr,Rr=0;function Er(v){var g=".dragsuppress-"+ ++Rr,w="click"+g,S=e.select(i(v)).on("touchmove"+g,Me).on("dragstart"+g,Me).on("selectstart"+g,Me);if(xr==null&&(xr="onselectstart"in v?!1:oe(v.style,"userSelect")),xr){var F=n(v).style,L=F[xr];F[xr]="none"}return function(Y){if(S.on(g,null),xr&&(F[xr]=L),Y){var N=function(){S.on(w,null)};S.on(w,function(){Me(),N()},!0),setTimeout(N,0)}}}e.mouse=function(v){return rr(v,De())};var Or=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;function rr(v,g){g.changedTouches&&(g=g.changedTouches[0]);var w=v.ownerSVGElement||v;if(w.createSVGPoint){var S=w.createSVGPoint();if(Or<0){var F=i(v);if(F.scrollX||F.scrollY){w=e.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var L=w[0][0].getScreenCTM();Or=!(L.f||L.e),w.remove()}}return Or?(S.x=g.pageX,S.y=g.pageY):(S.x=g.clientX,S.y=g.clientY),S=S.matrixTransform(v.getScreenCTM().inverse()),[S.x,S.y]}var Y=v.getBoundingClientRect();return[g.clientX-Y.left-v.clientLeft,g.clientY-Y.top-v.clientTop]}e.touch=function(v,g,w){if(arguments.length<3&&(w=g,g=De().changedTouches),g){for(var S=0,F=g.length,L;S0?1:v<0?-1:0}function It(v,g,w){return(g[0]-v[0])*(w[1]-v[1])-(g[1]-v[1])*(w[0]-v[0])}function Yt(v){return v>1?0:v<-1?Qr:Math.acos(v)}function ia(v){return v>1?Ae:v<-1?-Ae:Math.asin(v)}function Ta(v){return((v=Math.exp(v))-1/v)/2}function Ht(v){return((v=Math.exp(v))+1/v)/2}function Zt(v){return((v=Math.exp(2*v))-1)/(v+1)}function ma(v){return(v=Math.sin(v/2))*v}var ra=Math.SQRT2,xn=2,on=4;e.interpolateZoom=function(v,g){var w=v[0],S=v[1],F=v[2],L=g[0],Y=g[1],N=g[2],Z=L-w,ae=Y-S,ne=Z*Z+ae*ae,ge,ye;if(ne0&&(Ir=Ir.transition().duration(Y)),Ir.call(Ve.event)}function tt(){Ce&&Ce.domain(be.range().map(function(Ir){return(Ir-v.x)/v.k}).map(be.invert)),Ge&&Ge.domain(Fe.range().map(function(Ir){return(Ir-v.y)/v.k}).map(Fe.invert))}function at(Ir){N++||Ir({type:"zoomstart"})}function Tt(Ir){tt(),Ir({type:"zoom",scale:v.k,translate:[v.x,v.y]})}function it(Ir){--N||(Ir({type:"zoomend"}),w=null)}function bt(){var Ir=this,kt=Ye.of(Ir,arguments),Ct=0,aa=e.select(i(Ir)).on(ae,Jn).on(ne,pi),Za=Le(e.mouse(Ir)),Mn=Er(Ir);yt.call(Ir),at(kt);function Jn(){Ct=1,Zr(e.mouse(Ir),Za),Tt(kt)}function pi(){aa.on(ae,null).on(ne,null),Mn(Ct),it(kt)}}function ta(){var Ir=this,kt=Ye.of(Ir,arguments),Ct={},aa=0,Za,Mn=".zoom-"+e.event.changedTouches[0].identifier,Jn="touchmove"+Mn,pi="touchend"+Mn,qi=[],mi=e.select(Ir),Wi=Er(Ir);Zi(),at(kt),mi.on(Z,null).on(ye,Zi);function ni(){var ql=e.touches(Ir);return Za=v.k,ql.forEach(function(Kn){Kn.identifier in Ct&&(Ct[Kn.identifier]=Le(Kn))}),ql}function Zi(){var ql=e.event.target;e.select(ql).on(Jn,Ff).on(pi,FY),qi.push(ql);for(var Kn=e.event.changedTouches,Oo=0,As=Kn.length;Oo1){var Ef=Uo[0],f0=Uo[1],Md=Ef[0]-f0[0],S_=Ef[1]-f0[1];aa=Md*Md+S_*S_}}function Ff(){var ql=e.touches(Ir),Kn,Oo,As,Uo;yt.call(Ir);for(var c1=0,Ef=ql.length;c11?1:g,w=w<0?0:w>1?1:w,F=w<=.5?w*(1+g):w+g-w*g,S=2*w-F;function L(N){return N>360?N-=360:N<0&&(N+=360),N<60?S+(F-S)*N/60:N<180?F:N<240?S+(F-S)*(240-N)/60:S}function Y(N){return Math.round(L(N)*255)}return new rn(Y(v+120),Y(v),Y(v-120))}e.hcl=Vt;function Vt(v,g,w){return this instanceof Vt?(this.h=+v,this.c=+g,void(this.l=+w)):arguments.length<2?v instanceof Vt?new Vt(v.h,v.c,v.l):v instanceof ya?as(v.l,v.a,v.b):as((v=Ks((v=e.rgb(v)).r,v.g,v.b)).l,v.a,v.b):new Vt(v,g,w)}var Na=Vt.prototype=new zt;Na.brighter=function(v){return new Vt(this.h,this.c,Math.min(100,this.l+na*(arguments.length?v:1)))},Na.darker=function(v){return new Vt(this.h,this.c,Math.max(0,this.l-na*(arguments.length?v:1)))},Na.rgb=function(){return wn(this.h,this.c,this.l).rgb()};function wn(v,g,w){return isNaN(v)&&(v=0),isNaN(g)&&(g=0),new ya(w,Math.cos(v*=Pe)*g,Math.sin(v)*g)}e.lab=ya;function ya(v,g,w){return this instanceof ya?(this.l=+v,this.a=+g,void(this.b=+w)):arguments.length<2?v instanceof ya?new ya(v.l,v.a,v.b):v instanceof Vt?wn(v.h,v.c,v.l):Ks((v=rn(v)).r,v.g,v.b):new ya(v,g,w)}var na=18,Ea=.95047,Da=1,Eo=1.08883,Bi=ya.prototype=new zt;Bi.brighter=function(v){return new ya(Math.min(100,this.l+na*(arguments.length?v:1)),this.a,this.b)},Bi.darker=function(v){return new ya(Math.max(0,this.l-na*(arguments.length?v:1)),this.a,this.b)},Bi.rgb=function(){return $s(this.l,this.a,this.b)};function $s(v,g,w){var S=(v+16)/116,F=S+g/500,L=S-w/200;return F=vl(F)*Ea,S=vl(S)*Da,L=vl(L)*Eo,new rn(hl(3.2404542*F-1.5371385*S-.4985314*L),hl(-.969266*F+1.8760108*S+.041556*L),hl(.0556434*F-.2040259*S+1.0572252*L))}function as(v,g,w){return v>0?new Vt(Math.atan2(w,g)*ur,Math.sqrt(g*g+w*w),v):new Vt(NaN,NaN,v)}function vl(v){return v>.206893034?v*v*v:(v-4/29)/7.787037}function Js(v){return v>.008856?Math.pow(v,1/3):7.787037*v+4/29}function hl(v){return Math.round(255*(v<=.00304?12.92*v:1.055*Math.pow(v,1/2.4)-.055))}e.rgb=rn;function rn(v,g,w){return this instanceof rn?(this.r=~~v,this.g=~~g,void(this.b=~~w)):arguments.length<2?v instanceof rn?new rn(v.r,v.g,v.b):ns(""+v,rn,_a):new rn(v,g,w)}function Ii(v){return new rn(v>>16,v>>8&255,v&255)}function dl(v){return Ii(v)+""}var Hi=rn.prototype=new zt;Hi.brighter=function(v){v=Math.pow(.7,arguments.length?v:1);var g=this.r,w=this.g,S=this.b,F=30;return!g&&!w&&!S?new rn(F,F,F):(g&&g>4,S=S>>4|S,F=Z&240,F=F>>4|F,L=Z&15,L=L<<4|L):v.length===7&&(S=(Z&16711680)>>16,F=(Z&65280)>>8,L=Z&255)),g(S,F,L))}function is(v,g,w){var S=Math.min(v/=255,g/=255,w/=255),F=Math.max(v,g,w),L=F-S,Y,N,Z=(F+S)/2;return L?(N=Z<.5?L/(F+S):L/(2-F-S),v==F?Y=(g-w)/L+(g0&&Z<1?0:Y),new ga(Y,N,Z)}function Ks(v,g,w){v=os(v),g=os(g),w=os(w);var S=Js((.4124564*v+.3575761*g+.1804375*w)/Ea),F=Js((.2126729*v+.7151522*g+.072175*w)/Da),L=Js((.0193339*v+.119192*g+.9503041*w)/Eo);return ya(116*F-16,500*(S-F),200*(F-L))}function os(v){return(v/=255)<=.04045?v/12.92:Math.pow((v+.055)/1.055,2.4)}function Qs(v){var g=parseFloat(v);return v.charAt(v.length-1)==="%"?Math.round(g*2.55):g}var ot=e.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});ot.forEach(function(v,g){ot.set(v,Ii(g))});function st(v){return typeof v=="function"?v:function(){return v}}e.functor=st,e.xhr=Gt(H);function Gt(v){return function(g,w,S){return arguments.length===2&&typeof w=="function"&&(S=w,w=null),Ur(g,w,v,S)}}function Ur(v,g,w,S){var F={},L=e.dispatch("beforesend","progress","load","error"),Y={},N=new XMLHttpRequest,Z=null;self.XDomainRequest&&!("withCredentials"in N)&&/^(http(s)?:)?\/\//.test(v)&&(N=new XDomainRequest),"onload"in N?N.onload=N.onerror=ae:N.onreadystatechange=function(){N.readyState>3&&ae()};function ae(){var ne=N.status,ge;if(!ne&&oa(N)||ne>=200&&ne<300||ne===304){try{ge=w.call(F,N)}catch(ye){L.error.call(F,ye);return}L.load.call(F,ge)}else L.error.call(F,N)}return N.onprogress=function(ne){var ge=e.event;e.event=ne;try{L.progress.call(F,N)}finally{e.event=ge}},F.header=function(ne,ge){return ne=(ne+"").toLowerCase(),arguments.length<2?Y[ne]:(ge==null?delete Y[ne]:Y[ne]=ge+"",F)},F.mimeType=function(ne){return arguments.length?(g=ne==null?null:ne+"",F):g},F.responseType=function(ne){return arguments.length?(Z=ne,F):Z},F.response=function(ne){return w=ne,F},["get","post"].forEach(function(ne){F[ne]=function(){return F.send.apply(F,[ne].concat(t(arguments)))}}),F.send=function(ne,ge,ye){if(arguments.length===2&&typeof ge=="function"&&(ye=ge,ge=null),N.open(ne,v,!0),g!=null&&!("accept"in Y)&&(Y.accept=g+",*/*"),N.setRequestHeader)for(var qe in Y)N.setRequestHeader(qe,Y[qe]);return g!=null&&N.overrideMimeType&&N.overrideMimeType(g),Z!=null&&(N.responseType=Z),ye!=null&&F.on("error",ye).on("load",function(Ye){ye(null,Ye)}),L.beforesend.call(F,N),N.send(ge==null?null:ge),F},F.abort=function(){return N.abort(),F},e.rebind(F,L,"on"),S==null?F:F.get(gn(S))}function gn(v){return v.length===1?function(g,w){v(g==null?w:null)}:v}function oa(v){var g=v.responseType;return g&&g!=="text"?v.response:v.responseText}e.dsv=function(v,g){var w=new RegExp('["'+v+` -]`),S=v.charCodeAt(0);function F(ae,ne,ge){arguments.length<3&&(ge=ne,ne=null);var ye=Ur(ae,g,ne==null?L:Y(ne),ge);return ye.row=function(qe){return arguments.length?ye.response((ne=qe)==null?L:Y(qe)):ne},ye}function L(ae){return F.parse(ae.responseText)}function Y(ae){return function(ne){return F.parse(ne.responseText,ae)}}F.parse=function(ae,ne){var ge;return F.parseRows(ae,function(ye,qe){if(ge)return ge(ye,qe-1);var Ye=function(be){for(var Ce={},Fe=ye.length,Ge=0;Ge=Ye)return ye;if(Ge)return Ge=!1,ge;var wr=be;if(ae.charCodeAt(wr)===34){for(var Yr=wr;Yr++24?(isFinite(g)&&(clearTimeout(pl),pl=setTimeout(Oi,g)),Un=0):(Un=1,ls(Oi))}e.timer.flush=function(){Lo(),ml()};function Lo(){for(var v=Date.now(),g=Ga;g;)v>=g.t&&g.c(v-g.t)&&(g.c=null),g=g.n;return v}function ml(){for(var v,g=Ga,w=1/0;g;)g.c?(g.t=0;--N)be.push(F[ae[ge[N]][2]]);for(N=+qe;N1&&It(v[w[S-2]],v[w[S-1]],v[F])<=0;)--S;w[S++]=F}return w.slice(0,S)}function Uc(v,g){return v[0]-g[0]||v[1]-g[1]}e.geom.polygon=function(v){return ke(v,ru),v};var ru=e.geom.polygon.prototype=[];ru.area=function(){for(var v=-1,g=this.length,w,S=this[g-1],F=0;++vvr)N=N.L;else if(Y=g-B2(N,w),Y>vr){if(!N.R){S=N;break}N=N.R}else{L>-vr?(S=N.P,F=N):Y>-vr?(S=N,F=N.N):S=F=N;break}var Z=nu(v);if(oo.insert(S,Z),!(!S&&!F)){if(S===F){zo(S),F=nu(S.site),oo.insert(Z,F),Z.edge=F.edge=vs(S.site,Z.site),Ro(S),Ro(F);return}if(!F){Z.edge=vs(S.site,Z.site);return}zo(S),zo(F);var ae=S.site,ne=ae.x,ge=ae.y,ye=v.x-ne,qe=v.y-ge,Ye=F.site,be=Ye.x-ne,Ce=Ye.y-ge,Fe=2*(ye*Ce-qe*be),Ge=ye*ye+qe*qe,Ve=be*be+Ce*Ce,Le={x:(Ce*Ge-qe*Ve)/Fe+ne,y:(ye*Ve-be*Ge)/Fe+ge};uo(F.edge,ae,Ye,Le),Z.edge=vs(ae,v,null,Le),F.edge=vs(v,Ye,null,Le),Ro(S),Ro(F)}}function ou(v,g){var w=v.site,S=w.x,F=w.y,L=F-g;if(!L)return S;var Y=v.P;if(!Y)return-1/0;w=Y.site;var N=w.x,Z=w.y,ae=Z-g;if(!ae)return N;var ne=N-S,ge=1/L-1/ae,ye=ne/ae;return ge?(-ye+Math.sqrt(ye*ye-2*ge*(ne*ne/(-2*ae)-Z+ae/2+F-L/2)))/ge+S:(S+N)/2}function B2(v,g){var w=v.N;if(w)return ou(w,g);var S=v.site;return S.y===g?S.x:1/0}function yl(v){this.site=v,this.edges=[]}yl.prototype.prepare=function(){for(var v=this.edges,g=v.length,w;g--;)w=v[g].edge,(!w.b||!w.a)&&v.splice(g,1);return v.sort(cs),v.length};function uf(v){for(var g=v[0][0],w=v[1][0],S=v[0][1],F=v[1][1],L,Y,N,Z,ae=Po,ne=ae.length,ge,ye,qe,Ye,be,Ce;ne--;)if(ge=ae[ne],!(!ge||!ge.prepare()))for(qe=ge.edges,Ye=qe.length,ye=0;yevr||b(Z-Y)>vr)&&(qe.splice(ye,0,new bl(H2(ge.site,Ce,b(N-g)vr?{x:g,y:b(L-g)vr?{x:b(Y-F)vr?{x:w,y:b(L-w)vr?{x:b(Y-S)=-jr)){var ye=Z*Z+ae*ae,qe=ne*ne+Ce*Ce,Ye=(Ce*ye-ae*qe)/ge,be=(Z*qe-ne*ye)/ge,Ce=be+N,Fe=sf.pop()||new Vc;Fe.arc=v,Fe.site=F,Fe.x=Ye+Y,Fe.y=Ce+Math.sqrt(Ye*Ye+be*be),Fe.cy=Ce,v.circle=Fe;for(var Ge=null,Ve=fs._;Ve;)if(Fe.y0)){if(be/=qe,qe<0){if(be0){if(be>ye)return;be>ge&&(ge=be)}if(be=w-N,!(!qe&&be<0)){if(be/=qe,qe<0){if(be>ye)return;be>ge&&(ge=be)}else if(qe>0){if(be0)){if(be/=Ye,Ye<0){if(be0){if(be>ye)return;be>ge&&(ge=be)}if(be=S-Z,!(!Ye&&be<0)){if(be/=Ye,Ye<0){if(be>ye)return;be>ge&&(ge=be)}else if(Ye>0){if(be0&&(F.a={x:N+ge*qe,y:Z+ge*Ye}),ye<1&&(F.b={x:N+ye*qe,y:Z+ye*Ye}),F}}}}}}function Ui(v){for(var g=qo,w=ff(v[0][0],v[0][1],v[1][0],v[1][1]),S=g.length,F;S--;)F=g[S],(!I2(F,v)||!w(F)||b(F.a.x-F.b.x)=L)return;if(ne>ye){if(!S)S={x:Ye,y:Y};else if(S.y>=N)return;w={x:Ye,y:N}}else{if(!S)S={x:Ye,y:N};else if(S.y1)if(ne>ye){if(!S)S={x:(Y-Fe)/Ce,y:Y};else if(S.y>=N)return;w={x:(N-Fe)/Ce,y:N}}else{if(!S)S={x:(N-Fe)/Ce,y:N};else if(S.y=L)return;w={x:L,y:Ce*L+Fe}}else{if(!S)S={x:L,y:Ce*L+Fe};else if(S.x=ne&&Fe.x<=ye&&Fe.y>=ge&&Fe.y<=qe?[[ne,qe],[ye,qe],[ye,ge],[ne,ge]]:[];Ge.point=Z[be]}),ae}function N(Z){return Z.map(function(ae,ne){return{x:Math.round(S(ae,ne)/vr)*vr,y:Math.round(F(ae,ne)/vr)*vr,i:ne}})}return Y.links=function(Z){return su(N(Z)).edges.filter(function(ae){return ae.l&&ae.r}).map(function(ae){return{source:Z[ae.l.i],target:Z[ae.r.i]}})},Y.triangles=function(Z){var ae=[];return su(N(Z)).cells.forEach(function(ne,ge){for(var ye=ne.site,qe=ne.edges.sort(cs),Ye=-1,be=qe.length,Ce,Fe,Ge=qe[be-1].edge,Ve=Ge.l===ye?Ge.r:Ge.l;++YeVe&&(Ve=ne.x),ne.y>Le&&(Le=ne.y),qe.push(ne.x),Ye.push(ne.y);else for(be=0;beVe&&(Ve=wr),Yr>Le&&(Le=Yr),qe.push(wr),Ye.push(Yr)}var Zr=Ve-Fe,Xr=Le-Ge;Zr>Xr?Le=Ge+Zr:Ve=Fe+Xr;function tt(it,bt,ta,sn,ca,Ir,kt,Ct){if(!(isNaN(ta)||isNaN(sn)))if(it.leaf){var aa=it.x,Za=it.y;if(aa!=null)if(b(aa-ta)+b(Za-sn)<.01)at(it,bt,ta,sn,ca,Ir,kt,Ct);else{var Mn=it.point;it.x=it.y=it.point=null,at(it,Mn,aa,Za,ca,Ir,kt,Ct),at(it,bt,ta,sn,ca,Ir,kt,Ct)}else it.x=ta,it.y=sn,it.point=bt}else at(it,bt,ta,sn,ca,Ir,kt,Ct)}function at(it,bt,ta,sn,ca,Ir,kt,Ct){var aa=(ca+kt)*.5,Za=(Ir+Ct)*.5,Mn=ta>=aa,Jn=sn>=Za,pi=Jn<<1|Mn;it.leaf=!1,it=it.nodes[pi]||(it.nodes[pi]=$u()),Mn?ca=aa:kt=aa,Jn?Ir=Za:Ct=Za,tt(it,bt,ta,sn,ca,Ir,kt,Ct)}var Tt=$u();if(Tt.add=function(it){tt(Tt,it,+ge(it,++be),+ye(it,be),Fe,Ge,Ve,Le)},Tt.visit=function(it){Di(it,Tt,Fe,Ge,Ve,Le)},Tt.find=function(it){return Ju(Tt,it[0],it[1],Fe,Ge,Ve,Le)},be=-1,g==null){for(;++beL||ye>Y||qe=wr,Xr=w>=Yr,tt=Xr<<1|Zr,at=tt+4;ttw&&(L=g.slice(w,L),N[Y]?N[Y]+=L:N[++Y]=L),(S=S[0])===(F=F[0])?N[Y]?N[Y]+=F:N[++Y]=F:(N[++Y]=null,Z.push({i:Y,x:yn(S,F)})),w=fu.lastIndex;return w=0&&!(S=e.interpolators[w](v,g)););return S}e.interpolators=[function(v,g){var w=typeof g;return(w==="string"?ot.has(g.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(g)?Ku:Gn:g instanceof zt?Ku:Array.isArray(g)?ps:w==="object"&&isNaN(g)?ti:yn)(v,g)}],e.interpolateArray=ps;function ps(v,g){var w=[],S=[],F=v.length,L=g.length,Y=Math.min(v.length,g.length),N;for(N=0;N=0?v.slice(0,g):v,S=g>=0?v.slice(g+1):"in";return w=Xc.get(w)||cf,S=O2.get(S)||H,U2(S(w.apply(null,r.call(arguments,1))))};function U2(v){return function(g){return g<=0?0:g>=1?1:v(g)}}function vf(v){return function(g){return 1-v(1-g)}}function hf(v){return function(g){return .5*(g<.5?v(2*g):2-v(2-2*g))}}function df(v){return v*v}function pf(v){return v*v*v}function jc(v){if(v<=0)return 0;if(v>=1)return 1;var g=v*v,w=g*v;return 4*(v<.5?w:3*(v-g)+w-.75)}function Wc(v){return function(g){return Math.pow(g,v)}}function cu(v){return 1-Math.cos(v*Ae)}function vu(v){return Math.pow(2,10*(v-1))}function Gi(v){return 1-Math.sqrt(1-v*v)}function Qu(v,g){var w;return arguments.length<2&&(g=.45),arguments.length?w=g/qr*Math.asin(1/v):(v=1,w=g/4),function(S){return 1+v*Math.pow(2,-10*S)*Math.sin((S-w)*qr/g)}}function hu(v){return v||(v=1.70158),function(g){return g*g*((v+1)*g-v)}}function e0(v){return v<1/2.75?7.5625*v*v:v<2/2.75?7.5625*(v-=1.5/2.75)*v+.75:v<2.5/2.75?7.5625*(v-=2.25/2.75)*v+.9375:7.5625*(v-=2.625/2.75)*v+.984375}e.interpolateHcl=Zc;function Zc(v,g){v=e.hcl(v),g=e.hcl(g);var w=v.h,S=v.c,F=v.l,L=g.h-w,Y=g.c-S,N=g.l-F;return isNaN(Y)&&(Y=0,S=isNaN(S)?g.c:S),isNaN(L)?(L=0,w=isNaN(w)?g.h:w):L>180?L-=360:L<-180&&(L+=360),function(Z){return wn(w+L*Z,S+Y*Z,F+N*Z)+""}}e.interpolateHsl=mf;function mf(v,g){v=e.hsl(v),g=e.hsl(g);var w=v.h,S=v.s,F=v.l,L=g.h-w,Y=g.s-S,N=g.l-F;return isNaN(Y)&&(Y=0,S=isNaN(S)?g.s:S),isNaN(L)?(L=0,w=isNaN(w)?g.h:w):L>180?L-=360:L<-180&&(L+=360),function(Z){return _a(w+L*Z,S+Y*Z,F+N*Z)+""}}e.interpolateLab=G2;function G2(v,g){v=e.lab(v),g=e.lab(g);var w=v.l,S=v.a,F=v.b,L=g.l-w,Y=g.a-S,N=g.b-F;return function(Z){return $s(w+L*Z,S+Y*Z,F+N*Z)+""}}e.interpolateRound=Bo;function Bo(v,g){return g-=v,function(w){return Math.round(v+g*w)}}e.transform=function(v){var g=a.createElementNS(e.ns.prefix.svg,"g");return(e.transform=function(w){if(w!=null){g.setAttribute("transform",w);var S=g.transform.baseVal.consolidate()}return new r0(S?S.matrix:gf)})(v)};function r0(v){var g=[v.a,v.b],w=[v.c,v.d],S=du(g),F=ms(g,w),L=du(pu(w,g,-F))||0;g[0]*w[1]180?g+=360:g-v>180&&(v+=360),S.push({i:w.push(Io(w)+"rotate(",null,")")-2,x:yn(v,g)})):g&&w.push(Io(w)+"rotate("+g+")")}function Jc(v,g,w,S){v!==g?S.push({i:w.push(Io(w)+"skewX(",null,")")-2,x:yn(v,g)}):g&&w.push(Io(w)+"skewX("+g+")")}function bf(v,g,w,S){if(v[0]!==g[0]||v[1]!==g[1]){var F=w.push(Io(w)+"scale(",null,",",null,")");S.push({i:F-4,x:yn(v[0],g[0])},{i:F-2,x:yn(v[1],g[1])})}else(g[0]!==1||g[1]!==1)&&w.push(Io(w)+"scale("+g+")")}function t0(v,g){var w=[],S=[];return v=e.transform(v),g=e.transform(g),$c(v.translate,g.translate,w,S),yf(v.rotate,g.rotate,w,S),Jc(v.skew,g.skew,w,S),bf(v.scale,g.scale,w,S),v=g=null,function(F){for(var L=-1,Y=S.length,N;++L0?L=Le:(w.c=null,w.t=NaN,w=null,g.end({type:"end",alpha:L=0})):Le>0&&(g.start({type:"start",alpha:L=Le}),w=ss(v.tick)),v):L},v.start=function(){var Le,wr=qe.length,Yr=Ye.length,Zr=S[0],Xr=S[1],tt,at;for(Le=0;Le=0;)L.push(ne=ae[Z]),ne.parent=N,ne.depth=N.depth+1;w&&(N.value=0),N.children=ae}else w&&(N.value=+w.call(S,N,N.depth)||0),delete N.children;return ai(F,function(ge){var ye,qe;v&&(ye=ge.children)&&ye.sort(v),w&&(qe=ge.parent)&&(qe.value+=ge.value)}),Y}return S.sort=function(F){return arguments.length?(v=F,S):v},S.children=function(F){return arguments.length?(g=F,S):g},S.value=function(F){return arguments.length?(w=F,S):w},S.revalue=function(F){return w&&(Vi(F,function(L){L.children&&(L.value=0)}),ai(F,function(L){var Y;L.children||(L.value=+w.call(S,L,L.depth)||0),(Y=L.parent)&&(Y.value+=L.value)})),F},S};function co(v,g){return e.rebind(v,g,"sort","children","value"),v.nodes=v,v.links=hi,v}function Vi(v,g){for(var w=[v];(v=w.pop())!=null;)if(g(v),(F=v.children)&&(S=F.length))for(var S,F;--S>=0;)w.push(F[S])}function ai(v,g){for(var w=[v],S=[];(v=w.pop())!=null;)if(S.push(v),(Y=v.children)&&(L=Y.length))for(var F=-1,L,Y;++FF&&(F=N),S.push(N)}for(Y=0;YS&&(w=g,S=F);return w}function bu(v){return v.reduce(Tl,0)}function Tl(v,g){return v+g[1]}e.layout.histogram=function(){var v=!0,g=Number,w=bs,S=_u;function F(L,ye){for(var N=[],Z=L.map(g,this),ae=w.call(this,Z,ye),ne=S.call(this,ae,Z,ye),ge,ye=-1,qe=Z.length,Ye=ne.length-1,be=v?1:1/qe,Ce;++ye0)for(ye=-1;++ye=ae[0]&&Ce<=ae[1]&&(ge=N[e.bisect(ne,Ce,1,Ye)-1],ge.y+=be,ge.push(L[ye]));return N}return F.value=function(L){return arguments.length?(g=L,F):g},F.range=function(L){return arguments.length?(w=st(L),F):w},F.bins=function(L){return arguments.length?(S=typeof L=="number"?function(Y){return kl(Y,L)}:st(L),F):S},F.frequency=function(L){return arguments.length?(v=!!L,F):v},F};function _u(v,g){return kl(v,Math.ceil(Math.log(g.length)/Math.LN2+1))}function kl(v,g){for(var w=-1,S=+v[0],F=(v[1]-S)/g,L=[];++w<=g;)L[w]=F*w+S;return L}function bs(v){return[e.min(v),e.max(v)]}e.layout.pack=function(){var v=e.layout.hierarchy().sort(i0),g=0,w=[1,1],S;function F(L,Y){var N=v.call(this,L,Y),Z=N[0],ae=w[0],ne=w[1],ge=S==null?Math.sqrt:typeof S=="function"?S:function(){return S};if(Z.x=Z.y=0,ai(Z,function(qe){qe.r=+ge(qe.value)}),ai(Z,i1),g){var ye=g*(S?1:Math.max(2*Z.r/ae,2*Z.r/ne))/2;ai(Z,function(qe){qe.r+=ye}),ai(Z,i1),ai(Z,function(qe){qe.r-=ye})}return l0(Z,ae/2,ne/2,S?1:1/Math.max(2*Z.r/ae,2*Z.r/ne)),N}return F.size=function(L){return arguments.length?(w=L,F):w},F.radius=function(L){return arguments.length?(S=L==null||typeof L=="function"?L:+L,F):S},F.padding=function(L){return arguments.length?(g=+L,F):g},co(F,v)};function i0(v,g){return v.value-g.value}function xu(v,g){var w=v._pack_next;v._pack_next=g,g._pack_prev=v,g._pack_next=w,w._pack_prev=g}function n1(v,g){v._pack_next=g,g._pack_prev=v}function o0(v,g){var w=g.x-v.x,S=g.y-v.y,F=v.r+g.r;return .999*F*F>w*w+S*S}function i1(v){if(!(g=v.children)||!(ye=g.length))return;var g,w=1/0,S=-1/0,F=1/0,L=-1/0,Y,N,Z,ae,ne,ge,ye;function qe(Le){w=Math.min(Le.x-Le.r,w),S=Math.max(Le.x+Le.r,S),F=Math.min(Le.y-Le.r,F),L=Math.max(Le.y+Le.r,L)}if(g.forEach(o1),Y=g[0],Y.x=-Y.r,Y.y=0,qe(Y),ye>1&&(N=g[1],N.x=N.r,N.y=0,qe(N),ye>2))for(Z=g[2],ln(Y,N,Z),qe(Z),xu(Y,Z),Y._pack_prev=Z,xu(Z,N),N=Y._pack_next,ae=3;aeCe.x&&(Ce=wr),wr.depth>Fe.depth&&(Fe=wr)});var Ge=g(be,Ce)/2-be.x,Ve=w[0]/(Ce.x+g(Ce,be)/2+Ge),Le=w[1]/(Fe.depth||1);Vi(qe,function(wr){wr.x=(wr.x+Ge)*Ve,wr.y=wr.depth*Le})}return ye}function L(ne){for(var ge={A:null,children:[ne]},ye=[ge],qe;(qe=ye.pop())!=null;)for(var Ye=qe.children,be,Ce=0,Fe=Ye.length;Ce0&&(wu(O(be,ne,ye),ne,wr),Fe+=wr,Ge+=wr),Ve+=be.m,Fe+=qe.m,Le+=Ce.m,Ge+=Ye.m;be&&!s0(Ye)&&(Ye.t=be,Ye.m+=Ve-Ge),qe&&!_s(Ce)&&(Ce.t=qe,Ce.m+=Fe-Le,ye=ne)}return ye}function ae(ne){ne.x*=w[0],ne.y=ne.depth*w[1]}return F.separation=function(ne){return arguments.length?(g=ne,F):g},F.size=function(ne){return arguments.length?(S=(w=ne)==null?ae:null,F):S?null:w},F.nodeSize=function(ne){return arguments.length?(S=(w=ne)==null?null:ae,F):S?w:null},co(F,v)};function Fi(v,g){return v.parent==g.parent?1:2}function _s(v){var g=v.children;return g.length?g[0]:v.t}function s0(v){var g=v.children,w;return(w=g.length)?g[w-1]:v.t}function wu(v,g,w){var S=w/(g.i-v.i);g.c-=S,g.s+=w,v.c+=S,g.z+=w,g.m+=w}function kf(v){for(var g=0,w=0,S=v.children,F=S.length,L;--F>=0;)L=S[F],L.z+=g,L.m+=g,g+=L.s+(w+=L.c)}function O(v,g,w){return v.a.parent===g.parent?v.a:w}e.layout.cluster=function(){var v=e.layout.hierarchy().sort(null).value(null),g=Fi,w=[1,1],S=!1;function F(L,Y){var N=v.call(this,L,Y),Z=N[0],ae,ne=0;ai(Z,function(be){var Ce=be.children;Ce&&Ce.length?(be.x=he(Ce),be.y=$(Ce)):(be.x=ae?ne+=g(be,ae):0,be.y=0,ae=be)});var ge=se(Z),ye=we(Z),qe=ge.x-g(ge,ye)/2,Ye=ye.x+g(ye,ge)/2;return ai(Z,S?function(be){be.x=(be.x-Z.x)*w[0],be.y=(Z.y-be.y)*w[1]}:function(be){be.x=(be.x-qe)/(Ye-qe)*w[0],be.y=(1-(Z.y?be.y/Z.y:1))*w[1]}),N}return F.separation=function(L){return arguments.length?(g=L,F):g},F.size=function(L){return arguments.length?(S=(w=L)==null,F):S?null:w},F.nodeSize=function(L){return arguments.length?(S=(w=L)!=null,F):S?w:null},co(F,v)};function $(v){return 1+e.max(v,function(g){return g.y})}function he(v){return v.reduce(function(g,w){return g+w.x},0)/v.length}function se(v){var g=v.children;return g&&g.length?se(g[0]):v}function we(v){var g=v.children,w;return g&&(w=g.length)?we(g[w-1]):v}e.layout.treemap=function(){var v=e.layout.hierarchy(),g=Math.round,w=[1,1],S=null,F=He,L=!1,Y,N="squarify",Z=.5*(1+Math.sqrt(5));function ae(be,Ce){for(var Fe=-1,Ge=be.length,Ve,Le;++Fe0;)Ge.push(Le=Ve[Xr-1]),Ge.area+=Le.area,N!=="squarify"||(Yr=ye(Ge,Zr))<=wr?(Ve.pop(),wr=Yr):(Ge.area-=Ge.pop().area,qe(Ge,Zr,Fe,!1),Zr=Math.min(Fe.dx,Fe.dy),Ge.length=Ge.area=0,wr=1/0);Ge.length&&(qe(Ge,Zr,Fe,!0),Ge.length=Ge.area=0),Ce.forEach(ne)}}function ge(be){var Ce=be.children;if(Ce&&Ce.length){var Fe=F(be),Ge=Ce.slice(),Ve,Le=[];for(ae(Ge,Fe.dx*Fe.dy/be.value),Le.area=0;Ve=Ge.pop();)Le.push(Ve),Le.area+=Ve.area,Ve.z!=null&&(qe(Le,Ve.z?Fe.dx:Fe.dy,Fe,!Ge.length),Le.length=Le.area=0);Ce.forEach(ge)}}function ye(be,Ce){for(var Fe=be.area,Ge,Ve=0,Le=1/0,wr=-1,Yr=be.length;++wrVe&&(Ve=Ge));return Fe*=Fe,Ce*=Ce,Fe?Math.max(Ce*Ve*Z/Fe,Fe/(Ce*Le*Z)):1/0}function qe(be,Ce,Fe,Ge){var Ve=-1,Le=be.length,wr=Fe.x,Yr=Fe.y,Zr=Ce?g(be.area/Ce):0,Xr;if(Ce==Fe.dx){for((Ge||Zr>Fe.dy)&&(Zr=Fe.dy);++VeFe.dx)&&(Zr=Fe.dx);++Ve1);return v+g*S*Math.sqrt(-2*Math.log(L)/L)}},logNormal:function(){var v=e.random.normal.apply(e,arguments);return function(){return Math.exp(v())}},bates:function(v){var g=e.random.irwinHall(v);return function(){return g()/v}},irwinHall:function(v){return function(){for(var g=0,w=0;w2?Mr:br,ae=S?xf:_f;return F=Z(v,g,ae,w),L=Z(g,v,ae,Al),N}function N(Z){return F(Z)}return N.invert=function(Z){return L(Z)},N.domain=function(Z){return arguments.length?(v=Z.map(Number),Y()):v},N.range=function(Z){return arguments.length?(g=Z,Y()):g},N.rangeRound=function(Z){return N.range(Z).interpolate(Bo)},N.clamp=function(Z){return arguments.length?(S=Z,Y()):S},N.interpolate=function(Z){return arguments.length?(w=Z,Y()):w},N.ticks=function(Z){return ft(v,Z)},N.tickFormat=function(Z,ae){return d3_scale_linearTickFormat(v,Z,ae)},N.nice=function(Z){return rt(v,Z),Y()},N.copy=function(){return Fr(v,g,w,S)},Y()}function lt(v,g){return e.rebind(v,g,"range","rangeRound","interpolate","clamp")}function rt(v,g){return $e(v,lr(ut(v,g)[2])),$e(v,lr(ut(v,g)[2])),v}function ut(v,g){g==null&&(g=10);var w=er(v),S=w[1]-w[0],F=Math.pow(10,Math.floor(Math.log(S/g)/Math.LN10)),L=g/S*F;return L<=.15?F*=10:L<=.35?F*=5:L<=.75&&(F*=2),w[0]=Math.ceil(w[0]/F)*F,w[1]=Math.floor(w[1]/F)*F+F*.5,w[2]=F,w}function ft(v,g){return e.range.apply(e,ut(v,g))}var Pr={s:1,g:1,p:1,r:1,e:1};function Gr(v){return-Math.floor(Math.log(v)/Math.LN10+.01)}function vt(v,g){var w=Gr(g[2]);return v in Pr?Math.abs(w-Gr(Math.max(b(g[0]),b(g[1]))))+ +(v!=="e"):w-(v==="%")*2}e.scale.log=function(){return xt(e.scale.linear().domain([0,1]),10,!0,[1,10])};function xt(v,g,w,S){function F(N){return(w?Math.log(N<0?0:N):-Math.log(N>0?0:-N))/Math.log(g)}function L(N){return w?Math.pow(g,N):-Math.pow(g,-N)}function Y(N){return v(F(N))}return Y.invert=function(N){return L(v.invert(N))},Y.domain=function(N){return arguments.length?(w=N[0]>=0,v.domain((S=N.map(Number)).map(F)),Y):S},Y.base=function(N){return arguments.length?(g=+N,v.domain(S.map(F)),Y):g},Y.nice=function(){var N=$e(S.map(F),w?Math:Xt);return v.domain(N),S=N.map(L),Y},Y.ticks=function(){var N=er(S),Z=[],ae=N[0],ne=N[1],ge=Math.floor(F(ae)),ye=Math.ceil(F(ne)),qe=g%1?2:g;if(isFinite(ye-ge)){if(w){for(;ge0;Ye--)Z.push(L(ge)*Ye);for(ge=0;Z[ge]ne;ye--);Z=Z.slice(ge,ye)}return Z},Y.copy=function(){return xt(v.copy(),g,w,S)},lt(Y,v)}var Xt={floor:function(v){return-Math.ceil(-v)},ceil:function(v){return-Math.floor(-v)}};e.scale.pow=function(){return la(e.scale.linear(),1,[0,1])};function la(v,g,w){var S=$t(g),F=$t(1/g);function L(Y){return v(S(Y))}return L.invert=function(Y){return F(v.invert(Y))},L.domain=function(Y){return arguments.length?(v.domain((w=Y.map(Number)).map(S)),L):w},L.ticks=function(Y){return ft(w,Y)},L.tickFormat=function(Y,N){return d3_scale_linearTickFormat(w,Y,N)},L.nice=function(Y){return L.domain(rt(w,Y))},L.exponent=function(Y){return arguments.length?(S=$t(g=Y),F=$t(1/g),v.domain(w.map(S)),L):g},L.copy=function(){return la(v.copy(),g,w)},lt(L,v)}function $t(v){return function(g){return g<0?-Math.pow(-g,v):Math.pow(g,v)}}e.scale.sqrt=function(){return e.scale.pow().exponent(.5)},e.scale.ordinal=function(){return xa([],{t:"range",a:[[]]})};function xa(v,g){var w,S,F;function L(N){return S[((w.get(N)||(g.t==="range"?w.set(N,v.push(N)):NaN))-1)%S.length]}function Y(N,Z){return e.range(v.length).map(function(ae){return N+Z*ae})}return L.domain=function(N){if(!arguments.length)return v;v=[],w=new _;for(var Z=-1,ae=N.length,ne;++Z0?w[L-1]:v[0],Lye?0:1;if(ne=Wr)return Z(ne,Ye)+(ae?Z(ae,1-Ye):"")+"Z";var be,Ce,Fe,Ge,Ve=0,Le=0,wr,Yr,Zr,Xr,tt,at,Tt,it,bt=[];if((Ge=(+Y.apply(this,arguments)||0)/2)&&(Fe=S===vo?Math.sqrt(ae*ae+ne*ne):+S.apply(this,arguments),Ye||(Le*=-1),ne&&(Le=ia(Fe/ne*Math.sin(Ge))),ae&&(Ve=ia(Fe/ae*Math.sin(Ge)))),ne){wr=ne*Math.cos(ge+Le),Yr=ne*Math.sin(ge+Le),Zr=ne*Math.cos(ye-Le),Xr=ne*Math.sin(ye-Le);var ta=Math.abs(ye-ge-2*Le)<=Qr?0:1;if(Le&&u0(wr,Yr,Zr,Xr)===Ye^ta){var sn=(ge+ye)/2;wr=ne*Math.cos(sn),Yr=ne*Math.sin(sn),Zr=Xr=null}}else wr=Yr=0;if(ae){tt=ae*Math.cos(ye-Ve),at=ae*Math.sin(ye-Ve),Tt=ae*Math.cos(ge+Ve),it=ae*Math.sin(ge+Ve);var ca=Math.abs(ge-ye+2*Ve)<=Qr?0:1;if(Ve&&u0(tt,at,Tt,it)===1-Ye^ca){var Ir=(ge+ye)/2;tt=ae*Math.cos(Ir),at=ae*Math.sin(Ir),Tt=it=null}}else tt=at=0;if(qe>vr&&(be=Math.min(Math.abs(ne-ae)/2,+w.apply(this,arguments)))>.001){Ce=ae0?0:1}function l1(v,g,w,S,F){var L=v[0]-g[0],Y=v[1]-g[1],N=(F?S:-S)/Math.sqrt(L*L+Y*Y),Z=N*Y,ae=-N*L,ne=v[0]+Z,ge=v[1]+ae,ye=g[0]+Z,qe=g[1]+ae,Ye=(ne+ye)/2,be=(ge+qe)/2,Ce=ye-ne,Fe=qe-ge,Ge=Ce*Ce+Fe*Fe,Ve=w-S,Le=ne*qe-ye*ge,wr=(Fe<0?-1:1)*Math.sqrt(Math.max(0,Ve*Ve*Ge-Le*Le)),Yr=(Le*Fe-Ce*wr)/Ge,Zr=(-Le*Ce-Fe*wr)/Ge,Xr=(Le*Fe+Ce*wr)/Ge,tt=(-Le*Ce+Fe*wr)/Ge,at=Yr-Ye,Tt=Zr-be,it=Xr-Ye,bt=tt-be;return at*at+Tt*Tt>it*it+bt*bt&&(Yr=Xr,Zr=tt),[[Yr-Z,Zr-ae],[Yr*w/Ve,Zr*w/Ve]]}function s1(){return!0}function gd(v){var g=us,w=eu,S=s1,F=ho,L=F.key,Y=.7;function N(Z){var ae=[],ne=[],ge=-1,ye=Z.length,qe,Ye=st(g),be=st(w);function Ce(){ae.push("M",F(v(ne),Y))}for(;++ge1?v.join("L"):v+"Z"}function yd(v){return v.join("L")+"Z"}function bd(v){for(var g=0,w=v.length,S=v[0],F=[S[0],",",S[1]];++g1&&F.push("H",S[0]),F.join("")}function u1(v){for(var g=0,w=v.length,S=v[0],F=[S[0],",",S[1]];++g1){N=g[1],L=v[Z],Z++,S+="C"+(F[0]+Y[0])+","+(F[1]+Y[1])+","+(L[0]-N[0])+","+(L[1]-N[1])+","+L[0]+","+L[1];for(var ae=2;ae9&&(L=w*3/Math.sqrt(L),Y[N]=L*S,Y[N+1]=L*F));for(N=-1;++N<=Z;)L=(v[Math.min(Z,N+1)][0]-v[Math.max(0,N-1)][0])/(6*(1+Y[N]*Y[N])),g.push([L||0,Y[N]*L||0]);return g}function ve(v){return v.length<3?ho(v):v[0]+f1(v,j(v))}e.svg.line.radial=function(){var v=gd(de);return v.radius=v.x,delete v.x,v.angle=v.y,delete v.y,v};function de(v){for(var g,w=-1,S=v.length,F,L;++wQr)+",1 "+ge}function ae(ne,ge,ye,qe){return"Q 0,0 "+qe}return L.radius=function(ne){return arguments.length?(w=st(ne),L):w},L.source=function(ne){return arguments.length?(v=st(ne),L):v},L.target=function(ne){return arguments.length?(g=st(ne),L):g},L.startAngle=function(ne){return arguments.length?(S=st(ne),L):S},L.endAngle=function(ne){return arguments.length?(F=st(ne),L):F},L};function Se(v){return v.radius}e.svg.diagonal=function(){var v=pe,g=xe,w=ze;function S(F,L){var Y=v.call(this,F,L),N=g.call(this,F,L),Z=(Y.y+N.y)/2,ae=[Y,{x:Y.x,y:Z},{x:N.x,y:Z},N];return ae=ae.map(w),"M"+ae[0]+"C"+ae[1]+" "+ae[2]+" "+ae[3]}return S.source=function(F){return arguments.length?(v=st(F),S):v},S.target=function(F){return arguments.length?(g=st(F),S):g},S.projection=function(F){return arguments.length?(w=F,S):w},S};function ze(v){return[v.x,v.y]}e.svg.diagonal.radial=function(){var v=e.svg.diagonal(),g=ze,w=v.projection;return v.projection=function(S){return arguments.length?w(Ke(g=S)):g},v};function Ke(v){return function(){var g=v.apply(this,arguments),w=g[0],S=g[1]-Ae;return[w*Math.cos(S),w*Math.sin(S)]}}e.svg.symbol=function(){var v=kr,g=or;function w(S,F){return(ct.get(v.call(this,S,F))||Kr)(g.call(this,S,F))}return w.type=function(S){return arguments.length?(v=st(S),w):v},w.size=function(S){return arguments.length?(g=st(S),w):g},w};function or(){return 64}function kr(){return"circle"}function Kr(v){var g=Math.sqrt(v/Qr);return"M0,"+g+"A"+g+","+g+" 0 1,1 0,"+-g+"A"+g+","+g+" 0 1,1 0,"+g+"Z"}var ct=e.map({circle:Kr,cross:function(v){var g=Math.sqrt(v/5)/2;return"M"+-3*g+","+-g+"H"+-g+"V"+-3*g+"H"+g+"V"+-g+"H"+3*g+"V"+g+"H"+g+"V"+3*g+"H"+-g+"V"+g+"H"+-3*g+"Z"},diamond:function(v){var g=Math.sqrt(v/(2*pt)),w=g*pt;return"M0,"+-g+"L"+w+",0 0,"+g+" "+-w+",0Z"},square:function(v){var g=Math.sqrt(v)/2;return"M"+-g+","+-g+"L"+g+","+-g+" "+g+","+g+" "+-g+","+g+"Z"},"triangle-down":function(v){var g=Math.sqrt(v/ht),w=g*ht/2;return"M0,"+w+"L"+g+","+-w+" "+-g+","+-w+"Z"},"triangle-up":function(v){var g=Math.sqrt(v/ht),w=g*ht/2;return"M0,"+-w+"L"+g+","+w+" "+-g+","+w+"Z"}});e.svg.symbolTypes=ct.keys();var ht=Math.sqrt(3),pt=Math.tan(30*Pe);K.transition=function(v){for(var g=qn||++Wa,w=Zn(v),S=[],F,L,Y=Li||{time:Date.now(),ease:jc,delay:0,duration:250},N=-1,Z=this.length;++N0;)ge[--Ge].call(v,Fe);if(Ce>=1)return Y.event&&Y.event.end.call(v,v.__data__,g),--L.count?delete L[S]:delete v[w],1}Y||(N=F.time,Z=ss(ye,0,N),Y=L[S]={tween:new _,time:N,timer:Z,delay:F.delay,duration:F.duration,ease:F.ease,index:g},F=null,++L.count)}e.svg.axis=function(){var v=e.scale.linear(),g=po,w=6,S=6,F=3,L=[10],Y=null,N;function Z(ae){ae.each(function(){var ne=e.select(this),ge=this.__chart__||v,ye=this.__chart__=v.copy(),qe=Y==null?ye.ticks?ye.ticks.apply(ye,L):ye.domain():Y,Ye=N==null?ye.tickFormat?ye.tickFormat.apply(ye,L):H:N,be=ne.selectAll(".tick").data(qe,ye),Ce=be.enter().insert("g",".domain").attr("class","tick").style("opacity",vr),Fe=e.transition(be.exit()).style("opacity",vr).remove(),Ge=e.transition(be.order()).style("opacity",1),Ve=Math.max(w,0)+F,Le,wr=nr(ye),Yr=ne.selectAll(".domain").data([0]),Zr=(Yr.enter().append("path").attr("class","domain"),e.transition(Yr));Ce.append("line"),Ce.append("text");var Xr=Ce.select("line"),tt=Ge.select("line"),at=be.select("text").text(Ye),Tt=Ce.select("text"),it=Ge.select("text"),bt=g==="top"||g==="left"?-1:1,ta,sn,ca,Ir;if(g==="bottom"||g==="top"?(Le=El,ta="x",ca="y",sn="x2",Ir="y2",at.attr("dy",bt<0?"0em":".71em").style("text-anchor","middle"),Zr.attr("d","M"+wr[0]+","+bt*S+"V0H"+wr[1]+"V"+bt*S)):(Le=Ll,ta="y",ca="x",sn="y2",Ir="x2",at.attr("dy",".32em").style("text-anchor",bt<0?"end":"start"),Zr.attr("d","M"+bt*S+","+wr[0]+"H0V"+wr[1]+"H"+bt*S)),Xr.attr(Ir,bt*w),Tt.attr(ca,bt*Ve),tt.attr(sn,0).attr(Ir,bt*w),it.attr(ta,0).attr(ca,bt*Ve),ye.rangeBand){var kt=ye,Ct=kt.rangeBand()/2;ge=ye=function(aa){return kt(aa)+Ct}}else ge.rangeBand?ge=ye:Fe.call(Le,ye,ge);Ce.call(Le,ge,ye),Ge.call(Le,ye,ye)})}return Z.scale=function(ae){return arguments.length?(v=ae,Z):v},Z.orient=function(ae){return arguments.length?(g=ae in Fl?ae+"":po,Z):g},Z.ticks=function(){return arguments.length?(L=t(arguments),Z):L},Z.tickValues=function(ae){return arguments.length?(Y=ae,Z):Y},Z.tickFormat=function(ae){return arguments.length?(N=ae,Z):N},Z.tickSize=function(ae){var ne=arguments.length;return ne?(w=+ae,S=+arguments[ne-1],Z):w},Z.innerTickSize=function(ae){return arguments.length?(w=+ae,Z):w},Z.outerTickSize=function(ae){return arguments.length?(S=+ae,Z):S},Z.tickPadding=function(ae){return arguments.length?(F=+ae,Z):F},Z.tickSubdivide=function(){return arguments.length&&Z},Z};var po="bottom",Fl={top:1,right:1,bottom:1,left:1};function El(v,g,w){v.attr("transform",function(S){var F=g(S);return"translate("+(isFinite(F)?F:w(S))+",0)"})}function Ll(v,g,w){v.attr("transform",function(S){var F=g(S);return"translate(0,"+(isFinite(F)?F:w(S))+")"})}e.svg.brush=function(){var v=Ie(ne,"brushstart","brush","brushend"),g=null,w=null,S=[0,0],F=[0,0],L,Y,N=!0,Z=!0,ae=Ho[0];function ne(be){be.each(function(){var Ce=e.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",Ye).on("touchstart.brush",Ye),Fe=Ce.selectAll(".background").data([0]);Fe.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),Ce.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var Ge=Ce.selectAll(".resize").data(ae,H);Ge.exit().remove(),Ge.enter().append("g").attr("class",function(Yr){return"resize "+Yr}).style("cursor",function(Yr){return ws[Yr]}).append("rect").attr("x",function(Yr){return/[ew]$/.test(Yr)?-3:null}).attr("y",function(Yr){return/^[ns]/.test(Yr)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),Ge.style("display",ne.empty()?"none":null);var Ve=e.transition(Ce),Le=e.transition(Fe),wr;g&&(wr=nr(g),Le.attr("x",wr[0]).attr("width",wr[1]-wr[0]),ye(Ve)),w&&(wr=nr(w),Le.attr("y",wr[0]).attr("height",wr[1]-wr[0]),qe(Ve)),ge(Ve)})}ne.event=function(be){be.each(function(){var Ce=v.of(this,arguments),Fe={x:S,y:F,i:L,j:Y},Ge=this.__chart__||Fe;this.__chart__=Fe,qn?e.select(this).transition().each("start.brush",function(){L=Ge.i,Y=Ge.j,S=Ge.x,F=Ge.y,Ce({type:"brushstart"})}).tween("brush:brush",function(){var Ve=ps(S,Fe.x),Le=ps(F,Fe.y);return L=Y=null,function(wr){S=Fe.x=Ve(wr),F=Fe.y=Le(wr),Ce({type:"brush",mode:"resize"})}}).each("end.brush",function(){L=Fe.i,Y=Fe.j,Ce({type:"brush",mode:"resize"}),Ce({type:"brushend"})}):(Ce({type:"brushstart"}),Ce({type:"brush",mode:"resize"}),Ce({type:"brushend"}))})};function ge(be){be.selectAll(".resize").attr("transform",function(Ce){return"translate("+S[+/e$/.test(Ce)]+","+F[+/^s/.test(Ce)]+")"})}function ye(be){be.select(".extent").attr("x",S[0]),be.selectAll(".extent,.n>rect,.s>rect").attr("width",S[1]-S[0])}function qe(be){be.select(".extent").attr("y",F[0]),be.selectAll(".extent,.e>rect,.w>rect").attr("height",F[1]-F[0])}function Ye(){var be=this,Ce=e.select(e.event.target),Fe=v.of(be,arguments),Ge=e.select(be),Ve=Ce.datum(),Le=!/^(n|s)$/.test(Ve)&&g,wr=!/^(e|w)$/.test(Ve)&&w,Yr=Ce.classed("extent"),Zr=Er(be),Xr,tt=e.mouse(be),at,Tt=e.select(i(be)).on("keydown.brush",ta).on("keyup.brush",sn);if(e.event.changedTouches?Tt.on("touchmove.brush",ca).on("touchend.brush",kt):Tt.on("mousemove.brush",ca).on("mouseup.brush",kt),Ge.interrupt().selectAll("*").interrupt(),Yr)tt[0]=S[0]-tt[0],tt[1]=F[0]-tt[1];else if(Ve){var it=+/w$/.test(Ve),bt=+/^n/.test(Ve);at=[S[1-it]-tt[0],F[1-bt]-tt[1]],tt[0]=S[it],tt[1]=F[bt]}else e.event.altKey&&(Xr=tt.slice());Ge.style("pointer-events","none").selectAll(".resize").style("display",null),e.select("body").style("cursor",Ce.style("cursor")),Fe({type:"brushstart"}),ca();function ta(){e.event.keyCode==32&&(Yr||(Xr=null,tt[0]-=S[1],tt[1]-=F[1],Yr=2),Me())}function sn(){e.event.keyCode==32&&Yr==2&&(tt[0]+=S[1],tt[1]+=F[1],Yr=0,Me())}function ca(){var Ct=e.mouse(be),aa=!1;at&&(Ct[0]+=at[0],Ct[1]+=at[1]),Yr||(e.event.altKey?(Xr||(Xr=[(S[0]+S[1])/2,(F[0]+F[1])/2]),tt[0]=S[+(Ct[0]{(function(e,r){typeof Sd=="object"&&typeof B_!="undefined"?r(Sd):(e=e||self,r(e.d3=e.d3||{}))})(Sd,function(e){"use strict";var r=new Date,t=new Date;function a(Te,Oe,Ar,Br){function Qe(Be){return Te(Be=arguments.length===0?new Date:new Date(+Be)),Be}return Qe.floor=function(Be){return Te(Be=new Date(+Be)),Be},Qe.ceil=function(Be){return Te(Be=new Date(Be-1)),Oe(Be,1),Te(Be),Be},Qe.round=function(Be){var Xe=Qe(Be),yr=Qe.ceil(Be);return Be-Xe0))return Cr;do Cr.push(pr=new Date(+Be)),Oe(Be,yr),Te(Be);while(pr=Xe)for(;Te(Xe),!Be(Xe);)Xe.setTime(Xe-1)},function(Xe,yr){if(Xe>=Xe)if(yr<0)for(;++yr<=0;)for(;Oe(Xe,-1),!Be(Xe););else for(;--yr>=0;)for(;Oe(Xe,1),!Be(Xe););})},Ar&&(Qe.count=function(Be,Xe){return r.setTime(+Be),t.setTime(+Xe),Te(r),Te(t),Math.floor(Ar(r,t))},Qe.every=function(Be){return Be=Math.floor(Be),!isFinite(Be)||!(Be>0)?null:Be>1?Qe.filter(Br?function(Xe){return Br(Xe)%Be===0}:function(Xe){return Qe.count(0,Xe)%Be===0}):Qe}),Qe}var n=a(function(){},function(Te,Oe){Te.setTime(+Te+Oe)},function(Te,Oe){return Oe-Te});n.every=function(Te){return Te=Math.floor(Te),!isFinite(Te)||!(Te>0)?null:Te>1?a(function(Oe){Oe.setTime(Math.floor(Oe/Te)*Te)},function(Oe,Ar){Oe.setTime(+Oe+Ar*Te)},function(Oe,Ar){return(Ar-Oe)/Te}):n};var i=n.range,o=1e3,l=6e4,s=36e5,u=864e5,f=6048e5,c=a(function(Te){Te.setTime(Te-Te.getMilliseconds())},function(Te,Oe){Te.setTime(+Te+Oe*o)},function(Te,Oe){return(Oe-Te)/o},function(Te){return Te.getUTCSeconds()}),h=c.range,d=a(function(Te){Te.setTime(Te-Te.getMilliseconds()-Te.getSeconds()*o)},function(Te,Oe){Te.setTime(+Te+Oe*l)},function(Te,Oe){return(Oe-Te)/l},function(Te){return Te.getMinutes()}),m=d.range,p=a(function(Te){Te.setTime(Te-Te.getMilliseconds()-Te.getSeconds()*o-Te.getMinutes()*l)},function(Te,Oe){Te.setTime(+Te+Oe*s)},function(Te,Oe){return(Oe-Te)/s},function(Te){return Te.getHours()}),y=p.range,b=a(function(Te){Te.setHours(0,0,0,0)},function(Te,Oe){Te.setDate(Te.getDate()+Oe)},function(Te,Oe){return(Oe-Te-(Oe.getTimezoneOffset()-Te.getTimezoneOffset())*l)/u},function(Te){return Te.getDate()-1}),C=b.range;function x(Te){return a(function(Oe){Oe.setDate(Oe.getDate()-(Oe.getDay()+7-Te)%7),Oe.setHours(0,0,0,0)},function(Oe,Ar){Oe.setDate(Oe.getDate()+Ar*7)},function(Oe,Ar){return(Ar-Oe-(Ar.getTimezoneOffset()-Oe.getTimezoneOffset())*l)/f})}var _=x(0),M=x(1),T=x(2),A=x(3),E=x(4),P=x(5),z=x(6),B=_.range,X=M.range,I=T.range,V=A.range,H=E.range,Q=P.range,oe=z.range,re=a(function(Te){Te.setDate(1),Te.setHours(0,0,0,0)},function(Te,Oe){Te.setMonth(Te.getMonth()+Oe)},function(Te,Oe){return Oe.getMonth()-Te.getMonth()+(Oe.getFullYear()-Te.getFullYear())*12},function(Te){return Te.getMonth()}),te=re.range,ie=a(function(Te){Te.setMonth(0,1),Te.setHours(0,0,0,0)},function(Te,Oe){Te.setFullYear(Te.getFullYear()+Oe)},function(Te,Oe){return Oe.getFullYear()-Te.getFullYear()},function(Te){return Te.getFullYear()});ie.every=function(Te){return!isFinite(Te=Math.floor(Te))||!(Te>0)?null:a(function(Oe){Oe.setFullYear(Math.floor(Oe.getFullYear()/Te)*Te),Oe.setMonth(0,1),Oe.setHours(0,0,0,0)},function(Oe,Ar){Oe.setFullYear(Oe.getFullYear()+Ar*Te)})};var ce=ie.range,Me=a(function(Te){Te.setUTCSeconds(0,0)},function(Te,Oe){Te.setTime(+Te+Oe*l)},function(Te,Oe){return(Oe-Te)/l},function(Te){return Te.getUTCMinutes()}),De=Me.range,Ie=a(function(Te){Te.setUTCMinutes(0,0,0)},function(Te,Oe){Te.setTime(+Te+Oe*s)},function(Te,Oe){return(Oe-Te)/s},function(Te){return Te.getUTCHours()}),Ue=Ie.range,ke=a(function(Te){Te.setUTCHours(0,0,0,0)},function(Te,Oe){Te.setUTCDate(Te.getUTCDate()+Oe)},function(Te,Oe){return(Oe-Te)/u},function(Te){return Te.getUTCDate()-1}),je=ke.range;function W(Te){return a(function(Oe){Oe.setUTCDate(Oe.getUTCDate()-(Oe.getUTCDay()+7-Te)%7),Oe.setUTCHours(0,0,0,0)},function(Oe,Ar){Oe.setUTCDate(Oe.getUTCDate()+Ar*7)},function(Oe,Ar){return(Ar-Oe)/f})}var ee=W(0),me=W(1),K=W(2),J=W(3),ue=W(4),_e=W(5),Ne=W(6),Je=ee.range,ar=me.range,tr=K.range,fr=J.range,Re=ue.range,sr=_e.range,hr=Ne.range,dr=a(function(Te){Te.setUTCDate(1),Te.setUTCHours(0,0,0,0)},function(Te,Oe){Te.setUTCMonth(Te.getUTCMonth()+Oe)},function(Te,Oe){return Oe.getUTCMonth()-Te.getUTCMonth()+(Oe.getUTCFullYear()-Te.getUTCFullYear())*12},function(Te){return Te.getUTCMonth()}),Ze=dr.range,cr=a(function(Te){Te.setUTCMonth(0,1),Te.setUTCHours(0,0,0,0)},function(Te,Oe){Te.setUTCFullYear(Te.getUTCFullYear()+Oe)},function(Te,Oe){return Oe.getUTCFullYear()-Te.getUTCFullYear()},function(Te){return Te.getUTCFullYear()});cr.every=function(Te){return!isFinite(Te=Math.floor(Te))||!(Te>0)?null:a(function(Oe){Oe.setUTCFullYear(Math.floor(Oe.getUTCFullYear()/Te)*Te),Oe.setUTCMonth(0,1),Oe.setUTCHours(0,0,0,0)},function(Oe,Ar){Oe.setUTCFullYear(Oe.getUTCFullYear()+Ar*Te)})};var Lr=cr.range;e.timeDay=b,e.timeDays=C,e.timeFriday=P,e.timeFridays=Q,e.timeHour=p,e.timeHours=y,e.timeInterval=a,e.timeMillisecond=n,e.timeMilliseconds=i,e.timeMinute=d,e.timeMinutes=m,e.timeMonday=M,e.timeMondays=X,e.timeMonth=re,e.timeMonths=te,e.timeSaturday=z,e.timeSaturdays=oe,e.timeSecond=c,e.timeSeconds=h,e.timeSunday=_,e.timeSundays=B,e.timeThursday=E,e.timeThursdays=H,e.timeTuesday=T,e.timeTuesdays=I,e.timeWednesday=A,e.timeWednesdays=V,e.timeWeek=_,e.timeWeeks=B,e.timeYear=ie,e.timeYears=ce,e.utcDay=ke,e.utcDays=je,e.utcFriday=_e,e.utcFridays=sr,e.utcHour=Ie,e.utcHours=Ue,e.utcMillisecond=n,e.utcMilliseconds=i,e.utcMinute=Me,e.utcMinutes=De,e.utcMonday=me,e.utcMondays=ar,e.utcMonth=dr,e.utcMonths=Ze,e.utcSaturday=Ne,e.utcSaturdays=hr,e.utcSecond=c,e.utcSeconds=h,e.utcSunday=ee,e.utcSundays=Je,e.utcThursday=ue,e.utcThursdays=Re,e.utcTuesday=K,e.utcTuesdays=tr,e.utcWednesday=J,e.utcWednesdays=fr,e.utcWeek=ee,e.utcWeeks=Je,e.utcYear=cr,e.utcYears=Lr,Object.defineProperty(e,"__esModule",{value:!0})})});var v1=le((Dd,I_)=>{(function(e,r){typeof Dd=="object"&&typeof I_!="undefined"?r(Dd,Ty()):(e=e||self,r(e.d3=e.d3||{},e.d3))})(Dd,function(e,r){"use strict";function t(Ae){if(0<=Ae.y&&Ae.y<100){var Pe=new Date(-1,Ae.m,Ae.d,Ae.H,Ae.M,Ae.S,Ae.L);return Pe.setFullYear(Ae.y),Pe}return new Date(Ae.y,Ae.m,Ae.d,Ae.H,Ae.M,Ae.S,Ae.L)}function a(Ae){if(0<=Ae.y&&Ae.y<100){var Pe=new Date(Date.UTC(-1,Ae.m,Ae.d,Ae.H,Ae.M,Ae.S,Ae.L));return Pe.setUTCFullYear(Ae.y),Pe}return new Date(Date.UTC(Ae.y,Ae.m,Ae.d,Ae.H,Ae.M,Ae.S,Ae.L))}function n(Ae,Pe,ur){return{y:Ae,m:Pe,d:ur,H:0,M:0,S:0,L:0}}function i(Ae){var Pe=Ae.dateTime,ur=Ae.date,gr=Ae.time,It=Ae.periods,Yt=Ae.days,ia=Ae.shortDays,Ta=Ae.months,Ht=Ae.shortMonths,Zt=h(It),ma=d(It),ra=h(Yt),xn=d(Yt),on=h(ia),Wn=d(ia),Jr=h(Ta),ua=d(Ta),zt=h(Ht),ga=d(Ht),ba={a:Js,A:hl,b:rn,B:Ii,c:null,d:re,e:re,f:De,g:_e,G:Je,H:te,I:ie,j:ce,L:Me,m:Ie,M:Ue,p:dl,q:Hi,Q:Er,s:Or,S:ke,u:je,U:W,V:me,w:K,W:J,x:null,X:null,y:ue,Y:Ne,Z:ar,"%":Rr},_a={a:Si,A:ns,b:is,B:Ks,c:null,d:tr,e:tr,f:dr,g:yr,G:pr,H:fr,I:Re,j:sr,L:hr,m:Ze,M:cr,p:os,q:Qs,Q:Er,s:Or,S:Lr,u:Te,U:Oe,V:Br,w:Qe,W:Be,x:null,X:null,y:Xe,Y:Cr,Z:xr,"%":Rr},Vt={a:Ea,A:Da,b:Eo,B:Bi,c:$s,d:E,e:E,f:V,g:_,G:x,H:z,I:z,j:P,L:I,m:A,M:B,p:na,q:T,Q,s:oe,S:X,u:p,U:y,V:b,w:m,W:C,x:as,X:vl,y:_,Y:x,Z:M,"%":H};ba.x=Na(ur,ba),ba.X=Na(gr,ba),ba.c=Na(Pe,ba),_a.x=Na(ur,_a),_a.X=Na(gr,_a),_a.c=Na(Pe,_a);function Na(ot,st){return function(Gt){var Ur=[],gn=-1,oa=0,Ga=ot.length,Xa,Un,pl;for(Gt instanceof Date||(Gt=new Date(+Gt));++gn53)return null;"w"in Ur||(Ur.w=1),"Z"in Ur?(oa=a(n(Ur.y,0,1)),Ga=oa.getUTCDay(),oa=Ga>4||Ga===0?r.utcMonday.ceil(oa):r.utcMonday(oa),oa=r.utcDay.offset(oa,(Ur.V-1)*7),Ur.y=oa.getUTCFullYear(),Ur.m=oa.getUTCMonth(),Ur.d=oa.getUTCDate()+(Ur.w+6)%7):(oa=t(n(Ur.y,0,1)),Ga=oa.getDay(),oa=Ga>4||Ga===0?r.timeMonday.ceil(oa):r.timeMonday(oa),oa=r.timeDay.offset(oa,(Ur.V-1)*7),Ur.y=oa.getFullYear(),Ur.m=oa.getMonth(),Ur.d=oa.getDate()+(Ur.w+6)%7)}else("W"in Ur||"U"in Ur)&&("w"in Ur||(Ur.w="u"in Ur?Ur.u%7:"W"in Ur?1:0),Ga="Z"in Ur?a(n(Ur.y,0,1)).getUTCDay():t(n(Ur.y,0,1)).getDay(),Ur.m=0,Ur.d="W"in Ur?(Ur.w+6)%7+Ur.W*7-(Ga+5)%7:Ur.w+Ur.U*7-(Ga+6)%7);return"Z"in Ur?(Ur.H+=Ur.Z/100|0,Ur.M+=Ur.Z%100,a(Ur)):t(Ur)}}function ya(ot,st,Gt,Ur){for(var gn=0,oa=st.length,Ga=Gt.length,Xa,Un;gn=Ga)return-1;if(Xa=st.charCodeAt(gn++),Xa===37){if(Xa=st.charAt(gn++),Un=Vt[Xa in o?st.charAt(gn++):Xa],!Un||(Ur=Un(ot,Gt,Ur))<0)return-1}else if(Xa!=Gt.charCodeAt(Ur++))return-1}return Ur}function na(ot,st,Gt){var Ur=Zt.exec(st.slice(Gt));return Ur?(ot.p=ma[Ur[0].toLowerCase()],Gt+Ur[0].length):-1}function Ea(ot,st,Gt){var Ur=on.exec(st.slice(Gt));return Ur?(ot.w=Wn[Ur[0].toLowerCase()],Gt+Ur[0].length):-1}function Da(ot,st,Gt){var Ur=ra.exec(st.slice(Gt));return Ur?(ot.w=xn[Ur[0].toLowerCase()],Gt+Ur[0].length):-1}function Eo(ot,st,Gt){var Ur=zt.exec(st.slice(Gt));return Ur?(ot.m=ga[Ur[0].toLowerCase()],Gt+Ur[0].length):-1}function Bi(ot,st,Gt){var Ur=Jr.exec(st.slice(Gt));return Ur?(ot.m=ua[Ur[0].toLowerCase()],Gt+Ur[0].length):-1}function $s(ot,st,Gt){return ya(ot,Pe,st,Gt)}function as(ot,st,Gt){return ya(ot,ur,st,Gt)}function vl(ot,st,Gt){return ya(ot,gr,st,Gt)}function Js(ot){return ia[ot.getDay()]}function hl(ot){return Yt[ot.getDay()]}function rn(ot){return Ht[ot.getMonth()]}function Ii(ot){return Ta[ot.getMonth()]}function dl(ot){return It[+(ot.getHours()>=12)]}function Hi(ot){return 1+~~(ot.getMonth()/3)}function Si(ot){return ia[ot.getUTCDay()]}function ns(ot){return Yt[ot.getUTCDay()]}function is(ot){return Ht[ot.getUTCMonth()]}function Ks(ot){return Ta[ot.getUTCMonth()]}function os(ot){return It[+(ot.getUTCHours()>=12)]}function Qs(ot){return 1+~~(ot.getUTCMonth()/3)}return{format:function(ot){var st=Na(ot+="",ba);return st.toString=function(){return ot},st},parse:function(ot){var st=wn(ot+="",!1);return st.toString=function(){return ot},st},utcFormat:function(ot){var st=Na(ot+="",_a);return st.toString=function(){return ot},st},utcParse:function(ot){var st=wn(ot+="",!0);return st.toString=function(){return ot},st}}}var o={"-":"",_:" ",0:"0"},l=/^\s*\d+/,s=/^%/,u=/[\\^$*+?|[\]().{}]/g;function f(Ae,Pe,ur){var gr=Ae<0?"-":"",It=(gr?-Ae:Ae)+"",Yt=It.length;return gr+(Yt68?1900:2e3),ur+gr[0].length):-1}function M(Ae,Pe,ur){var gr=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(Pe.slice(ur,ur+6));return gr?(Ae.Z=gr[1]?0:-(gr[2]+(gr[3]||"00")),ur+gr[0].length):-1}function T(Ae,Pe,ur){var gr=l.exec(Pe.slice(ur,ur+1));return gr?(Ae.q=gr[0]*3-3,ur+gr[0].length):-1}function A(Ae,Pe,ur){var gr=l.exec(Pe.slice(ur,ur+2));return gr?(Ae.m=gr[0]-1,ur+gr[0].length):-1}function E(Ae,Pe,ur){var gr=l.exec(Pe.slice(ur,ur+2));return gr?(Ae.d=+gr[0],ur+gr[0].length):-1}function P(Ae,Pe,ur){var gr=l.exec(Pe.slice(ur,ur+3));return gr?(Ae.m=0,Ae.d=+gr[0],ur+gr[0].length):-1}function z(Ae,Pe,ur){var gr=l.exec(Pe.slice(ur,ur+2));return gr?(Ae.H=+gr[0],ur+gr[0].length):-1}function B(Ae,Pe,ur){var gr=l.exec(Pe.slice(ur,ur+2));return gr?(Ae.M=+gr[0],ur+gr[0].length):-1}function X(Ae,Pe,ur){var gr=l.exec(Pe.slice(ur,ur+2));return gr?(Ae.S=+gr[0],ur+gr[0].length):-1}function I(Ae,Pe,ur){var gr=l.exec(Pe.slice(ur,ur+3));return gr?(Ae.L=+gr[0],ur+gr[0].length):-1}function V(Ae,Pe,ur){var gr=l.exec(Pe.slice(ur,ur+6));return gr?(Ae.L=Math.floor(gr[0]/1e3),ur+gr[0].length):-1}function H(Ae,Pe,ur){var gr=s.exec(Pe.slice(ur,ur+1));return gr?ur+gr[0].length:-1}function Q(Ae,Pe,ur){var gr=l.exec(Pe.slice(ur));return gr?(Ae.Q=+gr[0],ur+gr[0].length):-1}function oe(Ae,Pe,ur){var gr=l.exec(Pe.slice(ur));return gr?(Ae.s=+gr[0],ur+gr[0].length):-1}function re(Ae,Pe){return f(Ae.getDate(),Pe,2)}function te(Ae,Pe){return f(Ae.getHours(),Pe,2)}function ie(Ae,Pe){return f(Ae.getHours()%12||12,Pe,2)}function ce(Ae,Pe){return f(1+r.timeDay.count(r.timeYear(Ae),Ae),Pe,3)}function Me(Ae,Pe){return f(Ae.getMilliseconds(),Pe,3)}function De(Ae,Pe){return Me(Ae,Pe)+"000"}function Ie(Ae,Pe){return f(Ae.getMonth()+1,Pe,2)}function Ue(Ae,Pe){return f(Ae.getMinutes(),Pe,2)}function ke(Ae,Pe){return f(Ae.getSeconds(),Pe,2)}function je(Ae){var Pe=Ae.getDay();return Pe===0?7:Pe}function W(Ae,Pe){return f(r.timeSunday.count(r.timeYear(Ae)-1,Ae),Pe,2)}function ee(Ae){var Pe=Ae.getDay();return Pe>=4||Pe===0?r.timeThursday(Ae):r.timeThursday.ceil(Ae)}function me(Ae,Pe){return Ae=ee(Ae),f(r.timeThursday.count(r.timeYear(Ae),Ae)+(r.timeYear(Ae).getDay()===4),Pe,2)}function K(Ae){return Ae.getDay()}function J(Ae,Pe){return f(r.timeMonday.count(r.timeYear(Ae)-1,Ae),Pe,2)}function ue(Ae,Pe){return f(Ae.getFullYear()%100,Pe,2)}function _e(Ae,Pe){return Ae=ee(Ae),f(Ae.getFullYear()%100,Pe,2)}function Ne(Ae,Pe){return f(Ae.getFullYear()%1e4,Pe,4)}function Je(Ae,Pe){var ur=Ae.getDay();return Ae=ur>=4||ur===0?r.timeThursday(Ae):r.timeThursday.ceil(Ae),f(Ae.getFullYear()%1e4,Pe,4)}function ar(Ae){var Pe=Ae.getTimezoneOffset();return(Pe>0?"-":(Pe*=-1,"+"))+f(Pe/60|0,"0",2)+f(Pe%60,"0",2)}function tr(Ae,Pe){return f(Ae.getUTCDate(),Pe,2)}function fr(Ae,Pe){return f(Ae.getUTCHours(),Pe,2)}function Re(Ae,Pe){return f(Ae.getUTCHours()%12||12,Pe,2)}function sr(Ae,Pe){return f(1+r.utcDay.count(r.utcYear(Ae),Ae),Pe,3)}function hr(Ae,Pe){return f(Ae.getUTCMilliseconds(),Pe,3)}function dr(Ae,Pe){return hr(Ae,Pe)+"000"}function Ze(Ae,Pe){return f(Ae.getUTCMonth()+1,Pe,2)}function cr(Ae,Pe){return f(Ae.getUTCMinutes(),Pe,2)}function Lr(Ae,Pe){return f(Ae.getUTCSeconds(),Pe,2)}function Te(Ae){var Pe=Ae.getUTCDay();return Pe===0?7:Pe}function Oe(Ae,Pe){return f(r.utcSunday.count(r.utcYear(Ae)-1,Ae),Pe,2)}function Ar(Ae){var Pe=Ae.getUTCDay();return Pe>=4||Pe===0?r.utcThursday(Ae):r.utcThursday.ceil(Ae)}function Br(Ae,Pe){return Ae=Ar(Ae),f(r.utcThursday.count(r.utcYear(Ae),Ae)+(r.utcYear(Ae).getUTCDay()===4),Pe,2)}function Qe(Ae){return Ae.getUTCDay()}function Be(Ae,Pe){return f(r.utcMonday.count(r.utcYear(Ae)-1,Ae),Pe,2)}function Xe(Ae,Pe){return f(Ae.getUTCFullYear()%100,Pe,2)}function yr(Ae,Pe){return Ae=Ar(Ae),f(Ae.getUTCFullYear()%100,Pe,2)}function Cr(Ae,Pe){return f(Ae.getUTCFullYear()%1e4,Pe,4)}function pr(Ae,Pe){var ur=Ae.getUTCDay();return Ae=ur>=4||ur===0?r.utcThursday(Ae):r.utcThursday.ceil(Ae),f(Ae.getUTCFullYear()%1e4,Pe,4)}function xr(){return"+0000"}function Rr(){return"%"}function Er(Ae){return+Ae}function Or(Ae){return Math.floor(+Ae/1e3)}var rr;Sr({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 Sr(Ae){return rr=i(Ae),e.timeFormat=rr.format,e.timeParse=rr.parse,e.utcFormat=rr.utcFormat,e.utcParse=rr.utcParse,rr}var vr="%Y-%m-%dT%H:%M:%S.%LZ";function jr(Ae){return Ae.toISOString()}var Qr=Date.prototype.toISOString?jr:e.utcFormat(vr);function qr(Ae){var Pe=new Date(Ae);return isNaN(Pe)?null:Pe}var Wr=+new Date("2000-01-01T00:00:00.000Z")?qr:e.utcParse(vr);e.isoFormat=Qr,e.isoParse=Wr,e.timeFormatDefaultLocale=Sr,e.timeFormatLocale=i,Object.defineProperty(e,"__esModule",{value:!0})})});var ky=le((Fd,H_)=>{(function(e,r){typeof Fd=="object"&&typeof H_!="undefined"?r(Fd):(e=typeof globalThis!="undefined"?globalThis:e||self,r(e.d3=e.d3||{}))})(Fd,(function(e){"use strict";function r(A){return Math.abs(A=Math.round(A))>=1e21?A.toLocaleString("en").replace(/,/g,""):A.toString(10)}function t(A,E){if((P=(A=E?A.toExponential(E-1):A.toExponential()).indexOf("e"))<0)return null;var P,z=A.slice(0,P);return[z.length>1?z[0]+z.slice(2):z,+A.slice(P+1)]}function a(A){return A=t(Math.abs(A)),A?A[1]:NaN}function n(A,E){return function(P,z){for(var B=P.length,X=[],I=0,V=A[0],H=0;B>0&&V>0&&(H+V+1>z&&(V=Math.max(1,z-H)),X.push(P.substring(B-=V,B+V)),!((H+=V+1)>z));)V=A[I=(I+1)%A.length];return X.reverse().join(E)}}function i(A){return function(E){return E.replace(/[0-9]/g,function(P){return A[+P]})}}var o=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function l(A){if(!(E=o.exec(A)))throw new Error("invalid format: "+A);var E;return new s({fill:E[1],align:E[2],sign:E[3],symbol:E[4],zero:E[5],width:E[6],comma:E[7],precision:E[8]&&E[8].slice(1),trim:E[9],type:E[10]})}l.prototype=s.prototype;function s(A){this.fill=A.fill===void 0?" ":A.fill+"",this.align=A.align===void 0?">":A.align+"",this.sign=A.sign===void 0?"-":A.sign+"",this.symbol=A.symbol===void 0?"":A.symbol+"",this.zero=!!A.zero,this.width=A.width===void 0?void 0:+A.width,this.comma=!!A.comma,this.precision=A.precision===void 0?void 0:+A.precision,this.trim=!!A.trim,this.type=A.type===void 0?"":A.type+""}s.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 u(A){e:for(var E=A.length,P=1,z=-1,B;P0&&(z=0);break}return z>0?A.slice(0,z)+A.slice(B+1):A}var f;function c(A,E){var P=t(A,E);if(!P)return A+"";var z=P[0],B=P[1],X=B-(f=Math.max(-8,Math.min(8,Math.floor(B/3)))*3)+1,I=z.length;return X===I?z:X>I?z+new Array(X-I+1).join("0"):X>0?z.slice(0,X)+"."+z.slice(X):"0."+new Array(1-X).join("0")+t(A,Math.max(0,E+X-1))[0]}function h(A,E){var P=t(A,E);if(!P)return A+"";var z=P[0],B=P[1];return B<0?"0."+new Array(-B).join("0")+z:z.length>B+1?z.slice(0,B+1)+"."+z.slice(B+1):z+new Array(B-z.length+2).join("0")}var d={"%":function(A,E){return(A*100).toFixed(E)},b:function(A){return Math.round(A).toString(2)},c:function(A){return A+""},d:r,e:function(A,E){return A.toExponential(E)},f:function(A,E){return A.toFixed(E)},g:function(A,E){return A.toPrecision(E)},o:function(A){return Math.round(A).toString(8)},p:function(A,E){return h(A*100,E)},r:h,s:c,X:function(A){return Math.round(A).toString(16).toUpperCase()},x:function(A){return Math.round(A).toString(16)}};function m(A){return A}var p=Array.prototype.map,y=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function b(A){var E=A.grouping===void 0||A.thousands===void 0?m:n(p.call(A.grouping,Number),A.thousands+""),P=A.currency===void 0?"":A.currency[0]+"",z=A.currency===void 0?"":A.currency[1]+"",B=A.decimal===void 0?".":A.decimal+"",X=A.numerals===void 0?m:i(p.call(A.numerals,String)),I=A.percent===void 0?"%":A.percent+"",V=A.minus===void 0?"-":A.minus+"",H=A.nan===void 0?"NaN":A.nan+"";function Q(re){re=l(re);var te=re.fill,ie=re.align,ce=re.sign,Me=re.symbol,De=re.zero,Ie=re.width,Ue=re.comma,ke=re.precision,je=re.trim,W=re.type;W==="n"?(Ue=!0,W="g"):d[W]||(ke===void 0&&(ke=12),je=!0,W="g"),(De||te==="0"&&ie==="=")&&(De=!0,te="0",ie="=");var ee=Me==="$"?P:Me==="#"&&/[boxX]/.test(W)?"0"+W.toLowerCase():"",me=Me==="$"?z:/[%p]/.test(W)?I:"",K=d[W],J=/[defgprs%]/.test(W);ke=ke===void 0?6:/[gprs]/.test(W)?Math.max(1,Math.min(21,ke)):Math.max(0,Math.min(20,ke));function ue(_e){var Ne=ee,Je=me,ar,tr,fr;if(W==="c")Je=K(_e)+Je,_e="";else{_e=+_e;var Re=_e<0||1/_e<0;if(_e=isNaN(_e)?H:K(Math.abs(_e),ke),je&&(_e=u(_e)),Re&&+_e==0&&ce!=="+"&&(Re=!1),Ne=(Re?ce==="("?ce:V:ce==="-"||ce==="("?"":ce)+Ne,Je=(W==="s"?y[8+f/3]:"")+Je+(Re&&ce==="("?")":""),J){for(ar=-1,tr=_e.length;++arfr||fr>57){Je=(fr===46?B+_e.slice(ar+1):_e.slice(ar))+Je,_e=_e.slice(0,ar);break}}}Ue&&!De&&(_e=E(_e,1/0));var sr=Ne.length+_e.length+Je.length,hr=sr>1)+Ne+_e+Je+hr.slice(sr);break;default:_e=hr+Ne+_e+Je;break}return X(_e)}return ue.toString=function(){return re+""},ue}function oe(re,te){var ie=Q((re=l(re),re.type="f",re)),ce=Math.max(-8,Math.min(8,Math.floor(a(te)/3)))*3,Me=Math.pow(10,-ce),De=y[8+ce/3];return function(Ie){return ie(Me*Ie)+De}}return{format:Q,formatPrefix:oe}}var C;x({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function x(A){return C=b(A),e.format=C.format,e.formatPrefix=C.formatPrefix,C}function _(A){return Math.max(0,-a(Math.abs(A)))}function M(A,E){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(a(E)/3)))*3-a(Math.abs(A)))}function T(A,E){return A=Math.abs(A),E=Math.abs(E)-A,Math.max(0,a(E)-a(A))+1}e.FormatSpecifier=s,e.formatDefaultLocale=x,e.formatLocale=b,e.formatSpecifier=l,e.precisionFixed=_,e.precisionPrefix=M,e.precisionRound=T,Object.defineProperty(e,"__esModule",{value:!0})}))});var U_=le((Qye,O_)=>{"use strict";O_.exports=function(e){for(var r=e.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}});var Wt=le((e4e,G_)=>{"use strict";var NY=U_();G_.exports=function(e){var r=typeof e;if(r==="string"){var t=e;if(e=+e,e===0&&NY(t))return!1}else if(r!=="number")return!1;return e-e<1}});var $a={};Ha($a,{ALMOST_EQUAL:()=>tV,BADNUM:()=>Cy,EPOCHJD:()=>rV,FP_SAFE:()=>BY,LOG_CLIP:()=>aV,MINUS_SIGN:()=>nV,ONEAVGMONTH:()=>XY,ONEAVGQUARTER:()=>GY,ONEAVGYEAR:()=>HY,ONEDAY:()=>ZY,ONEHOUR:()=>$Y,ONEMAXMONTH:()=>VY,ONEMAXQUARTER:()=>UY,ONEMAXYEAR:()=>IY,ONEMICROSEC:()=>eV,ONEMILLI:()=>QY,ONEMIN:()=>JY,ONEMINMONTH:()=>jY,ONEMINQUARTER:()=>YY,ONEMINYEAR:()=>OY,ONESEC:()=>KY,ONEWEEK:()=>WY});var Cy,BY,IY,HY,OY,UY,GY,YY,VY,XY,jY,WY,ZY,$Y,JY,KY,QY,eV,rV,tV,aV,nV,Ya=Ia(()=>{"use strict";Cy=void 0,BY=Number.MAX_VALUE*1e-4,IY=316224e5,HY=315576e5,OY=31536e6,UY=79488e5,GY=78894e5,YY=76896e5,VY=26784e5,XY=26298e5,jY=24192e5,WY=6048e5,ZY=864e5,$Y=36e5,JY=6e4,KY=1e3,QY=1,eV=.001,rV=24405875e-1,tV=1-1e-6,aV=10,nV="\u2212"});var Sy=le((Ed,Y_)=>{(function(e,r){typeof Ed=="object"&&typeof Y_!="undefined"?r(Ed):(e=typeof globalThis!="undefined"?globalThis:e||self,r(e["base64-arraybuffer"]={}))})(Ed,(function(e){"use strict";for(var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),a=0;a>2],f+=r[(l[s]&3)<<4|l[s+1]>>4],f+=r[(l[s+1]&15)<<2|l[s+2]>>6],f+=r[l[s+2]&63];return u%3===2?f=f.substring(0,f.length-1)+"=":u%3===1&&(f=f.substring(0,f.length-2)+"=="),f},i=function(o){var l=o.length*.75,s=o.length,u,f=0,c,h,d,m;o[o.length-1]==="="&&(l--,o[o.length-2]==="="&&l--);var p=new ArrayBuffer(l),y=new Uint8Array(p);for(u=0;u>4,y[f++]=(h&15)<<4|d>>2,y[f++]=(d&3)<<6|m&63;return p};e.decode=i,e.encode=n,Object.defineProperty(e,"__esModule",{value:!0})}))});var c0=le((r4e,V_)=>{"use strict";V_.exports=function(r){return window&&window.process&&window.process.versions?Object.prototype.toString.call(r)==="[object Object]":Object.prototype.toString.call(r)==="[object Object]"&&Object.getPrototypeOf(r).hasOwnProperty("hasOwnProperty")}});var $i=le(Pl=>{"use strict";var iV=Sy().decode,oV=c0(),Dy=Array.isArray,lV=ArrayBuffer,sV=DataView;function X_(e){return lV.isView(e)&&!(e instanceof sV)}Pl.isTypedArray=X_;function Ld(e){return Dy(e)||X_(e)}Pl.isArrayOrTypedArray=Ld;function uV(e){return!Ld(e[0])}Pl.isArray1D=uV;Pl.ensureArray=function(e,r){return Dy(e)||(e=[]),e.length=r,e};var Yn={u1c:typeof Uint8ClampedArray=="undefined"?void 0:Uint8ClampedArray,i1:typeof Int8Array=="undefined"?void 0:Int8Array,u1:typeof Uint8Array=="undefined"?void 0:Uint8Array,i2:typeof Int16Array=="undefined"?void 0:Int16Array,u2:typeof Uint16Array=="undefined"?void 0:Uint16Array,i4:typeof Int32Array=="undefined"?void 0:Int32Array,u4:typeof Uint32Array=="undefined"?void 0:Uint32Array,f4:typeof Float32Array=="undefined"?void 0:Float32Array,f8:typeof Float64Array=="undefined"?void 0:Float64Array};Yn.uint8c=Yn.u1c;Yn.uint8=Yn.u1;Yn.int8=Yn.i1;Yn.uint16=Yn.u2;Yn.int16=Yn.i2;Yn.uint32=Yn.u4;Yn.int32=Yn.i4;Yn.float32=Yn.f4;Yn.float64=Yn.f8;function Fy(e){return e.constructor===ArrayBuffer}Pl.isArrayBuffer=Fy;Pl.decodeTypedArraySpec=function(e){var r=[],t=fV(e),a=t.dtype,n=Yn[a];if(!n)throw new Error('Error in dtype: "'+a+'"');var i=n.BYTES_PER_ELEMENT,o=t.bdata;Fy(o)||(o=iV(o));var l=t.shape===void 0?[o.byteLength/i]:(""+t.shape).split(",");l.reverse();var s=l.length,u,f,c=+l[0],h=i*c,d=0;if(s===1)r=new n(o);else if(s===2)for(u=+l[1],f=0;f{"use strict";var W_=Wt(),Ly=$i().isArrayOrTypedArray;K_.exports=function(r,t){if(W_(t))t=String(t);else if(typeof t!="string"||t.slice(-4)==="[-1]")throw"bad property string";var a=t.split("."),n,i,o,l;for(l=0;l{"use strict";var h1=ev(),pV=/^\w*$/,mV=0,Q_=1,qd=2,ex=3,Lf=4;rx.exports=function(r,t,a,n){a=a||"name",n=n||"value";var i,o,l,s={};t&&t.length?(l=h1(r,t),o=l.get()):o=r,t=t||"";var u={};if(o)for(i=0;i2)return s[d]=s[d]|qd,c.set(h,null);if(f){for(i=d;i{"use strict";var gV=/^(.*)(\.[^\.\[\]]+|\[\d\])$/,yV=/^[^\.\[\]]+$/;ax.exports=function(e,r){for(;r;){var t=e.match(gV);if(t)e=t[1];else if(e.match(yV))e="";else throw new Error("bad relativeAttr call:"+[e,r]);if(r.charAt(0)==="^")r=r.slice(1);else break}return e&&r.charAt(0)!=="["?e+"."+r:e+r}});var Pd=le((o4e,ix)=>{"use strict";var bV=Wt();ix.exports=function(r,t){if(r>0)return Math.log(r)/Math.LN10;var a=Math.log(Math.min(t[0],t[1]))/Math.LN10;return bV(a)||(a=Math.log(Math.max(t[0],t[1]))/Math.LN10-6),a}});var sx=le((l4e,lx)=>{"use strict";var ox=$i().isArrayOrTypedArray,rv=c0();lx.exports=function e(r,t){for(var a in t){var n=t[a],i=r[a];if(i!==n)if(a.charAt(0)==="_"||typeof n=="function"){if(a in r)continue;r[a]=n}else if(ox(n)&&ox(i)&&rv(n[0])){if(a==="customdata"||a==="ids")continue;for(var o=Math.min(n.length,i.length),l=0;l_V,modHalf:()=>xV});function _V(e,r){let t=e%r;return t<0?t+r:t}function xV(e,r){return Math.abs(e)>r/2?e-Math.round(e/r)*r:e}var p1=Ia(()=>{"use strict"});var Tn=le(nv=>{"use strict";var ux=c0(),tv=Array.isArray;function wV(e,r){var t,a;for(t=0;t{"use strict";fx.exports=function(e){var r=e.variantValues,t=e.editType,a=e.colorEditType;a===void 0&&(a=t);var n={editType:t,valType:"integer",min:1,max:1e3,extras:["normal","bold"],dflt:"normal"};e.noNumericWeightValues&&(n.valType="enumerated",n.values=n.extras,n.extras=void 0,n.min=void 0,n.max=void 0);var i={family:{valType:"string",noBlank:!0,strict:!0,editType:t},size:{valType:"number",min:1,editType:t},color:{valType:"color",editType:a},weight:n,style:{editType:t,valType:"enumerated",values:["normal","italic"],dflt:"normal"},variant:e.noFontVariant?void 0:{editType:t,valType:"enumerated",values:r||["normal","small-caps","all-small-caps","all-petite-caps","petite-caps","unicase"],dflt:"normal"},textcase:e.noFontTextcase?void 0:{editType:t,valType:"enumerated",values:["normal","word caps","upper","lower"],dflt:"normal"},lineposition:e.noFontLineposition?void 0:{editType:t,valType:"flaglist",flags:["under","over","through"],extras:["none"],dflt:"none"},shadow:e.noFontShadow?void 0:{editType:t,valType:"string",dflt:e.autoShadowDflt?"auto":"none"},editType:t};return e.autoSize&&(i.size.dflt="auto"),e.autoColor&&(i.color.dflt="auto"),e.arrayOk&&(i.family.arrayOk=!0,i.weight.arrayOk=!0,i.style.arrayOk=!0,e.noFontVariant||(i.variant.arrayOk=!0),e.noFontTextcase||(i.textcase.arrayOk=!0),e.noFontLineposition||(i.lineposition.arrayOk=!0),e.noFontShadow||(i.shadow.arrayOk=!0),i.size.arrayOk=!0,i.color.arrayOk=!0),i}});var iv={};Ha(iv,{HOVERARROWSIZE:()=>MV,HOVERFONT:()=>CV,HOVERFONTSIZE:()=>kV,HOVERID:()=>DV,HOVERMINTIME:()=>SV,HOVERTEXTPAD:()=>TV,YANGLE:()=>AV});var AV,MV,TV,kV,CV,SV,DV,ov=Ia(()=>{"use strict";AV=60,MV=6,TV=3,kV=13,CV="Arial, sans-serif",SV=50,DV="-hover"});var m1=le((f4e,hx)=>{"use strict";var cx=(ov(),Tr(iv)),vx=gi(),qy=vx({editType:"none"});qy.family.dflt=cx.HOVERFONT;qy.size.dflt=cx.HOVERFONTSIZE;hx.exports={clickmode:{valType:"flaglist",flags:["event","select"],dflt:"event",editType:"plot",extras:["none"]},dragmode:{valType:"enumerated",values:["zoom","pan","select","lasso","drawclosedpath","drawopenpath","drawline","drawrect","drawcircle","orbit","turntable",!1],dflt:"zoom",editType:"modebar"},hovermode:{valType:"enumerated",values:["x","y","closest",!1,"x unified","y unified"],dflt:"closest",editType:"modebar"},hoversort:{valType:"enumerated",values:["trace","value descending","value ascending"],dflt:"trace",editType:"none"},hoversubplots:{valType:"enumerated",values:["single","overlaying","axis"],dflt:"overlaying",editType:"none"},hoveranywhere:{valType:"boolean",dflt:!1,editType:"none"},clickanywhere:{valType:"boolean",dflt:!1,editType:"none"},hoverdistance:{valType:"integer",min:-1,dflt:20,editType:"none"},spikedistance:{valType:"integer",min:-1,dflt:-1,editType:"none"},hoverlabel:{bgcolor:{valType:"color",editType:"none"},bordercolor:{valType:"color",editType:"none"},font:qy,grouptitlefont:vx({editType:"none"}),align:{valType:"enumerated",values:["left","right","auto"],dflt:"auto",editType:"none"},namelength:{valType:"integer",min:-1,dflt:15,editType:"none"},showarrow:{valType:"boolean",dflt:!0,editType:"none"},editType:"none"},selectdirection:{valType:"enumerated",values:["h","v","d","any"],dflt:"any",editType:"none"}}});var Rd=le((c4e,dx)=>{"use strict";var FV=gi(),lv=m1().hoverlabel,sv=Tn().extendFlat;dx.exports={hoverlabel:{bgcolor:sv({},lv.bgcolor,{arrayOk:!0}),bordercolor:sv({},lv.bordercolor,{arrayOk:!0}),font:FV({arrayOk:!0,editType:"none"}),align:sv({},lv.align,{arrayOk:!0}),namelength:sv({},lv.namelength,{arrayOk:!0}),showarrow:sv({},lv.showarrow),editType:"none"}}});var Go=le((v4e,px)=>{"use strict";var EV=gi(),LV=Rd();px.exports={type:{valType:"enumerated",values:[],dflt:"scatter",editType:"calc+clearAxisTypes",_noTemplating:!0},visible:{valType:"enumerated",values:[!0,!1,"legendonly"],dflt:!0,editType:"calc"},showlegend:{valType:"boolean",dflt:!0,editType:"style"},legend:{valType:"subplotid",dflt:"legend",editType:"style"},legendgroup:{valType:"string",dflt:"",editType:"style"},legendgrouptitle:{text:{valType:"string",dflt:"",editType:"style"},font:EV({editType:"style"}),editType:"style"},legendrank:{valType:"number",dflt:1e3,editType:"style"},legendwidth:{valType:"number",min:0,editType:"style"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"style"},name:{valType:"string",editType:"style"},uid:{valType:"string",editType:"plot",anim:!0},ids:{valType:"data_array",editType:"calc",anim:!0},customdata:{valType:"data_array",editType:"calc"},meta:{valType:"any",arrayOk:!0,editType:"plot"},selectedpoints:{valType:"any",editType:"calc"},hoverinfo:{valType:"flaglist",flags:["x","y","z","text","name"],extras:["all","none","skip"],arrayOk:!0,dflt:"all",editType:"none"},hoverlabel:LV.hoverlabel,uirevision:{valType:"any",editType:"none"}}});var lA=le((b4e,oA)=>{var T4=Object.defineProperty,qV=Object.getOwnPropertyDescriptor,PV=Object.getOwnPropertyNames,RV=Object.prototype.hasOwnProperty,zV=(e,r)=>{for(var t in r)T4(e,t,{get:r[t],enumerable:!0})},NV=(e,r,t,a)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of PV(r))!RV.call(e,n)&&n!==t&&T4(e,n,{get:()=>r[n],enumerable:!(a=qV(r,n))||a.enumerable});return e},BV=e=>NV(T4({},"__esModule",{value:!0}),e),Tx={};zV(Tx,{a98:()=>DZ,average:()=>PX,averageAngle:()=>ks,averageNumber:()=>Ux,blend:()=>qW,blerp:()=>i4,clampChroma:()=>QW,clampGamut:()=>K4,clampRgb:()=>KW,colorsNamed:()=>Cx,convertA98ToXyz65:()=>o4,convertCubehelixToRgb:()=>Hx,convertDlchToLab65:()=>Yd,convertHsiToRgb:()=>$x,convertHslToRgb:()=>Qx,convertHsvToRgb:()=>E4,convertHwbToRgb:()=>aw,convertItpToXyz65:()=>s4,convertJabToJch:()=>f4,convertJabToRgb:()=>N4,convertJabToXyz65:()=>R4,convertJchToJab:()=>c4,convertLab65ToDlch:()=>Vd,convertLab65ToRgb:()=>mv,convertLab65ToXyz65:()=>S4,convertLabToLch:()=>Tu,convertLabToRgb:()=>I4,convertLabToXyz50:()=>rp,convertLchToLab:()=>ku,convertLchuvToLuv:()=>U4,convertLrgbToOklab:()=>G4,convertLrgbToRgb:()=>If,convertLuvToLchuv:()=>O4,convertLuvToXyz50:()=>jd,convertOkhslToOklab:()=>d4,convertOkhsvToOklab:()=>m4,convertOklabToLrgb:()=>M1,convertOklabToOkhsl:()=>h4,convertOklabToOkhsv:()=>p4,convertOklabToRgb:()=>bv,convertP3ToXyz65:()=>g4,convertProphotoToXyz50:()=>_4,convertRec2020ToXyz65:()=>w4,convertRgbToCubehelix:()=>Ix,convertRgbToHsi:()=>Jx,convertRgbToHsl:()=>ew,convertRgbToHsv:()=>L4,convertRgbToHwb:()=>nw,convertRgbToJab:()=>z4,convertRgbToLab:()=>H4,convertRgbToLab65:()=>gv,convertRgbToLrgb:()=>Bf,convertRgbToOklab:()=>yv,convertRgbToXyb:()=>Lw,convertRgbToXyz50:()=>A1,convertRgbToXyz65:()=>v0,convertRgbToYiq:()=>Iw,convertXybToRgb:()=>qw,convertXyz50ToLab:()=>tp,convertXyz50ToLuv:()=>Xd,convertXyz50ToProphoto:()=>b4,convertXyz50ToRgb:()=>w1,convertXyz50ToXyz65:()=>Nw,convertXyz65ToA98:()=>l4,convertXyz65ToItp:()=>u4,convertXyz65ToJab:()=>P4,convertXyz65ToLab65:()=>D4,convertXyz65ToP3:()=>y4,convertXyz65ToRec2020:()=>x4,convertXyz65ToRgb:()=>h0,convertXyz65ToXyz50:()=>zw,convertYiqToRgb:()=>Hw,converter:()=>La,cubehelix:()=>FZ,differenceCie76:()=>CX,differenceCie94:()=>SX,differenceCiede2000:()=>DX,differenceCmc:()=>FX,differenceEuclidean:()=>x1,differenceHueChroma:()=>pv,differenceHueNaive:()=>Ox,differenceHueSaturation:()=>dv,differenceHyab:()=>EX,differenceItp:()=>qX,differenceKotsarenkoRamos:()=>LX,displayable:()=>J4,dlab:()=>EZ,dlch:()=>LZ,easingGamma:()=>rA,easingInOutSine:()=>CZ,easingMidpoint:()=>Ww,easingSmootherstep:()=>TZ,easingSmoothstep:()=>wZ,easingSmoothstepInverse:()=>AZ,filterBrightness:()=>sZ,filterContrast:()=>uZ,filterDeficiencyDeuter:()=>_Z,filterDeficiencyProt:()=>bZ,filterDeficiencyTrit:()=>xZ,filterGrayscale:()=>vZ,filterHueRotate:()=>dZ,filterInvert:()=>hZ,filterSaturate:()=>cZ,filterSepia:()=>fZ,fixupAlpha:()=>Rn,fixupHueDecreasing:()=>wX,fixupHueIncreasing:()=>xX,fixupHueLonger:()=>_X,fixupHueShorter:()=>Ts,formatCss:()=>kW,formatHex:()=>CW,formatHex8:()=>SW,formatHsl:()=>FW,formatRgb:()=>DW,getMode:()=>yi,hsi:()=>qZ,hsl:()=>PZ,hsv:()=>RZ,hwb:()=>zZ,inGamut:()=>ip,interpolate:()=>UW,interpolateWith:()=>$w,interpolateWithPremultipliedAlpha:()=>GW,interpolatorLinear:()=>nt,interpolatorPiecewise:()=>Nx,interpolatorSplineBasis:()=>Kw,interpolatorSplineBasisClosed:()=>Qw,interpolatorSplineMonotone:()=>XW,interpolatorSplineMonotone2:()=>jW,interpolatorSplineMonotoneClosed:()=>WW,interpolatorSplineNatural:()=>YW,interpolatorSplineNaturalClosed:()=>VW,itp:()=>NZ,jab:()=>BZ,jch:()=>IZ,lab:()=>HZ,lab65:()=>OZ,lch:()=>UZ,lch65:()=>GZ,lchuv:()=>YZ,lerp:()=>Pf,lrgb:()=>VZ,luv:()=>XZ,mapAlphaDivide:()=>jw,mapAlphaMultiply:()=>Xw,mapTransferGamma:()=>BW,mapTransferLinear:()=>W4,mapper:()=>_v,modeA98:()=>Bx,modeCubehelix:()=>Gx,modeDlab:()=>Wx,modeDlch:()=>Zx,modeHsi:()=>Kx,modeHsl:()=>F4,modeHsv:()=>q4,modeHwb:()=>ow,modeItp:()=>uw,modeJab:()=>fw,modeJch:()=>cw,modeLab:()=>ap,modeLab65:()=>hw,modeLch:()=>np,modeLch65:()=>pw,modeLchuv:()=>yw,modeLrgb:()=>bw,modeLuv:()=>_w,modeOkhsl:()=>ww,modeOkhsv:()=>Aw,modeOklab:()=>Tw,modeOklch:()=>Cw,modeP3:()=>Sw,modeProphoto:()=>Dw,modeRec2020:()=>Fw,modeRgb:()=>Nf,modeXyb:()=>Pw,modeXyz50:()=>Rw,modeXyz65:()=>Bw,modeYiq:()=>Ow,nearest:()=>tZ,okhsl:()=>jZ,okhsv:()=>WZ,oklab:()=>ZZ,oklch:()=>$Z,p3:()=>JZ,parse:()=>Px,parseHex:()=>Dx,parseHsl:()=>tw,parseHslLegacy:()=>rw,parseHwb:()=>iw,parseLab:()=>vw,parseLch:()=>dw,parseNamed:()=>Sx,parseOklab:()=>Mw,parseOklch:()=>kw,parseRgb:()=>Rx,parseRgbLegacy:()=>Fx,parseTransparent:()=>zx,prophoto:()=>KZ,random:()=>NW,rec2020:()=>QZ,removeParser:()=>KV,rgb:()=>e$,round:()=>Uw,samples:()=>JW,serializeHex:()=>j4,serializeHex8:()=>Gw,serializeHsl:()=>Vw,serializeRgb:()=>Yw,toGamut:()=>eZ,trilerp:()=>uX,unlerp:()=>sX,useMode:()=>Aa,useParser:()=>Lx,wcagContrast:()=>SZ,wcagLuminance:()=>M4,xyb:()=>r$,xyz50:()=>t$,xyz65:()=>a$,yiq:()=>n$});oA.exports=BV(Tx);var IV=(e,r)=>{if(typeof e=="number"){if(r===3)return{mode:"rgb",r:(e>>8&15|e>>4&240)/255,g:(e>>4&15|e&240)/255,b:(e&15|e<<4&240)/255};if(r===4)return{mode:"rgb",r:(e>>12&15|e>>8&240)/255,g:(e>>8&15|e>>4&240)/255,b:(e>>4&15|e&240)/255,alpha:(e&15|e<<4&240)/255};if(r===6)return{mode:"rgb",r:(e>>16&255)/255,g:(e>>8&255)/255,b:(e&255)/255};if(r===8)return{mode:"rgb",r:(e>>24&255)/255,g:(e>>16&255)/255,b:(e>>8&255)/255,alpha:(e&255)/255}}},kx=IV,HV={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},Cx=HV,OV=e=>kx(Cx[e.toLowerCase()],6),Sx=OV,UV=/^#?([0-9a-f]{8}|[0-9a-f]{6}|[0-9a-f]{4}|[0-9a-f]{3})$/i,GV=e=>{let r;return(r=e.match(UV))?kx(parseInt(r[1],16),r[1].length):void 0},Dx=GV,Ji="([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)",h4e=`(?:${Ji}|none)`,cv=`${Ji}%`,d4e=`(?:${Ji}%|none)`,k4=`(?:${Ji}%|${Ji})`,YV=`(?:${Ji}%|${Ji}|none)`,VV=`(?:${Ji}(deg|grad|rad|turn)|${Ji})`,p4e=`(?:${Ji}(deg|grad|rad|turn)|${Ji}|none)`,b1="\\s*,\\s*",m4e=new RegExp("^"+YV+"$"),XV=new RegExp(`^rgba?\\(\\s*${Ji}${b1}${Ji}${b1}${Ji}\\s*(?:,\\s*${k4}\\s*)?\\)$`),jV=new RegExp(`^rgba?\\(\\s*${cv}${b1}${cv}${b1}${cv}\\s*(?:,\\s*${k4}\\s*)?\\)$`),WV=e=>{let r={mode:"rgb"},t;if(t=e.match(XV))t[1]!==void 0&&(r.r=t[1]/255),t[2]!==void 0&&(r.g=t[2]/255),t[3]!==void 0&&(r.b=t[3]/255);else if(t=e.match(jV))t[1]!==void 0&&(r.r=t[1]/100),t[2]!==void 0&&(r.g=t[2]/100),t[3]!==void 0&&(r.b=t[3]/100);else return;return t[4]!==void 0?r.alpha=Math.max(0,Math.min(1,t[4]/100)):t[5]!==void 0&&(r.alpha=Math.max(0,Math.min(1,+t[5]))),r},Fx=WV,ZV=(e,r)=>e===void 0?void 0:typeof e!="object"?Px(e):e.mode!==void 0?e:r?Ba(da({},e),{mode:r}):void 0,Rl=ZV,$V=(e="rgb")=>r=>(r=Rl(r,e))!==void 0?r.mode===e?r:Ms[r.mode][e]?Ms[r.mode][e](r):e==="rgb"?Ms[r.mode].rgb(r):Ms.rgb[e](Ms[r.mode].rgb(r)):void 0,La=$V,Ms={},Ex={},_1=[],C4={},JV=e=>e,Aa=e=>(Ms[e.mode]=da(da({},Ms[e.mode]),e.toMode),Object.keys(e.fromMode||{}).forEach(r=>{Ms[r]||(Ms[r]={}),Ms[r][e.mode]=e.fromMode[r]}),e.ranges||(e.ranges={}),e.difference||(e.difference={}),e.channels.forEach(r=>{if(e.ranges[r]===void 0&&(e.ranges[r]=[0,1]),!e.interpolate[r])throw new Error(`Missing interpolator for: ${r}`);typeof e.interpolate[r]=="function"&&(e.interpolate[r]={use:e.interpolate[r]}),e.interpolate[r].fixup||(e.interpolate[r].fixup=JV)}),Ex[e.mode]=e,(e.parse||[]).forEach(r=>{Lx(r,e.mode)}),La(e.mode)),yi=e=>Ex[e],Lx=(e,r)=>{if(typeof e=="string"){if(!r)throw new Error("'mode' required when 'parser' is a string");C4[e]=r}else typeof e=="function"&&_1.indexOf(e)<0&&_1.push(e)},KV=e=>{if(typeof e=="string")delete C4[e];else if(typeof e=="function"){let r=_1.indexOf(e);r>0&&_1.splice(r,1)}},a4=/[^\x00-\x7F]|[a-zA-Z_]/,QV=/[^\x00-\x7F]|[-\w]/,$r={Function:"function",Ident:"ident",Number:"number",Percentage:"percentage",ParenClose:")",None:"none",Hue:"hue",Alpha:"alpha"},Dt=0;function zd(e){let r=e[Dt],t=e[Dt+1];return r==="-"||r==="+"?/\d/.test(t)||t==="."&&/\d/.test(e[Dt+2]):r==="."?/\d/.test(t):/\d/.test(r)}function n4(e){if(Dt>=e.length)return!1;let r=e[Dt];if(a4.test(r))return!0;if(r==="-"){if(e.length-Dt<2)return!1;let t=e[Dt+1];return!!(t==="-"||a4.test(t))}return!1}var eX={deg:1,rad:180/Math.PI,grad:9/10,turn:360};function uv(e){let r="";if((e[Dt]==="-"||e[Dt]==="+")&&(r+=e[Dt++]),r+=Nd(e),e[Dt]==="."&&/\d/.test(e[Dt+1])&&(r+=e[Dt++]+Nd(e)),(e[Dt]==="e"||e[Dt]==="E")&&((e[Dt+1]==="-"||e[Dt+1]==="+")&&/\d/.test(e[Dt+2])?r+=e[Dt++]+e[Dt++]+Nd(e):/\d/.test(e[Dt+1])&&(r+=e[Dt++]+Nd(e))),n4(e)){let t=Hd(e);return t==="deg"||t==="rad"||t==="turn"||t==="grad"?{type:$r.Hue,value:r*eX[t]}:void 0}return e[Dt]==="%"?(Dt++,{type:$r.Percentage,value:+r}):{type:$r.Number,value:+r}}function Nd(e){let r="";for(;/\d/.test(e[Dt]);)r+=e[Dt++];return r}function Hd(e){let r="";for(;Dt4)){if(t.length===4){if(t[3].type!==$r.Alpha)return;t[3]=t[3].value}return t.length===3&&t.push({type:$r.None,value:void 0}),t.every(n=>n.type!==$r.Alpha)?t:void 0}}function nX(e,r){e._i=0;let t=e[e._i++];if(!t||t.type!==$r.Function)return;let a=qx(e,r);if(a)return a.unshift(t.value),a}var iX=e=>{if(typeof e!="string")return;let r=tX(e),t=r?nX(r,!0):void 0,a,n=0,i=_1.length;for(;ne==="transparent"?{mode:"rgb",r:0,g:0,b:0,alpha:0}:void 0,zx=lX,Pf=(e,r,t)=>e+t*(r-e),sX=(e,r,t)=>(t-e)/(r-e),i4=(e,r,t,a,n,i)=>Pf(Pf(e,r,n),Pf(t,a,n),i),uX=(e,r,t,a,n,i,o,l,s,u,f)=>Pf(i4(e,r,t,a,s,u),i4(n,i,o,l,s,u),f),fX=e=>{let r=[];for(let t=0;tr=>{let t=fX(r);return a=>{let n=a*t.length,i=a>=1?t.length-1:Math.max(Math.floor(n),0),o=t[i];return o===void 0?void 0:e(o[0],o[1],n-i)}},nt=Nx(Pf),Rn=e=>{let r=!1,t=e.map(a=>a!==void 0?(r=!0,a):1);return r?t:e},cX={mode:"rgb",channels:["r","g","b","alpha"],parse:[Rx,Dx,Fx,Sx,zx,"srgb"],serialize:"srgb",interpolate:{r:nt,g:nt,b:nt,alpha:{use:nt,fixup:Rn}},gamut:!0,white:{r:1,g:1,b:1},black:{r:0,g:0,b:0}},Nf=cX,Py=(e=0)=>Math.pow(Math.abs(e),563/256)*Math.sign(e),vX=e=>{let r=Py(e.r),t=Py(e.g),a=Py(e.b),n={mode:"xyz65",x:.5766690429101305*r+.1855582379065463*t+.1882286462349947*a,y:.297344975250536*r+.6273635662554661*t+.0752914584939979*a,z:.0270313613864123*r+.0706888525358272*t+.9913375368376386*a};return e.alpha!==void 0&&(n.alpha=e.alpha),n},o4=vX,Ry=e=>Math.pow(Math.abs(e),256/563)*Math.sign(e),hX=({x:e,y:r,z:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n={mode:"a98",r:Ry(e*2.0415879038107465-r*.5650069742788597-.3447313507783297*t),g:Ry(e*-.9692436362808798+r*1.8759675015077206+.0415550574071756*t),b:Ry(e*.0134442806320312-r*.1183623922310184+1.0151749943912058*t)};return a!==void 0&&(n.alpha=a),n},l4=hX,zy=(e=0)=>{let r=Math.abs(e);return r<=.04045?e/12.92:(Math.sign(e)||1)*Math.pow((r+.055)/1.055,2.4)},dX=({r:e,g:r,b:t,alpha:a})=>{let n={mode:"lrgb",r:zy(e),g:zy(r),b:zy(t)};return a!==void 0&&(n.alpha=a),n},Bf=dX,pX=e=>{let{r,g:t,b:a,alpha:n}=Bf(e),i={mode:"xyz65",x:.4123907992659593*r+.357584339383878*t+.1804807884018343*a,y:.2126390058715102*r+.715168678767756*t+.0721923153607337*a,z:.0193308187155918*r+.119194779794626*t+.9505321522496607*a};return n!==void 0&&(i.alpha=n),i},v0=pX,Ny=(e=0)=>{let r=Math.abs(e);return r>.0031308?(Math.sign(e)||1)*(1.055*Math.pow(r,1/2.4)-.055):e*12.92},mX=({r:e,g:r,b:t,alpha:a},n="rgb")=>{let i={mode:n,r:Ny(e),g:Ny(r),b:Ny(t)};return a!==void 0&&(i.alpha=a),i},If=mX,gX=({x:e,y:r,z:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=If({r:e*3.2409699419045226-r*1.537383177570094-.4986107602930034*t,g:e*-.9692436362808796+r*1.8759675015077204+.0415550574071756*t,b:e*.0556300796969936-r*.2039769588889765+1.0569715142428784*t});return a!==void 0&&(n.alpha=a),n},h0=gX,yX=Ba(da({},Nf),{mode:"a98",parse:["a98-rgb"],serialize:"a98-rgb",fromMode:{rgb:e=>l4(v0(e)),xyz65:l4},toMode:{rgb:e=>h0(o4(e)),xyz65:o4}}),Bx=yX,bX=e=>(e=e%360)<0?e+360:e,ii=bX,Zd=(e,r)=>e.map((t,a,n)=>{if(t===void 0)return t;let i=ii(t);return a===0||e[a-1]===void 0?i:r(i-ii(n[a-1]))}).reduce((t,a)=>!t.length||a===void 0||t[t.length-1]===void 0?(t.push(a),t):(t.push(a+t[t.length-1]),t),[]),Ts=e=>Zd(e,r=>Math.abs(r)<=180?r:r-360*Math.sign(r)),_X=e=>Zd(e,r=>Math.abs(r)>=180||r===0?r:r-360*Math.sign(r)),xX=e=>Zd(e,r=>r>=0?r:r+360),wX=e=>Zd(e,r=>r<=0?r:r-360),Qn=[-.14861,1.78277,-.29227,-.90649,1.97294,0],AX=Math.PI/180,MX=180/Math.PI,mx=Qn[3]*Qn[4],gx=Qn[1]*Qn[4],yx=Qn[1]*Qn[2]-Qn[0]*Qn[3],TX=({r:e,g:r,b:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=(yx*t+e*mx-r*gx)/(yx+mx-gx),i=t-n,o=(Qn[4]*(r-n)-Qn[2]*i)/Qn[3],l={mode:"cubehelix",l:n,s:n===0||n===1?void 0:Math.sqrt(i*i+o*o)/(Qn[4]*n*(1-n))};return l.s&&(l.h=Math.atan2(o,i)*MX-120),a!==void 0&&(l.alpha=a),l},Ix=TX,kX=({h:e,s:r,l:t,alpha:a})=>{let n={mode:"rgb"};e=(e===void 0?0:e+120)*AX,t===void 0&&(t=0);let i=r===void 0?0:r*t*(1-t),o=Math.cos(e),l=Math.sin(e);return n.r=t+i*(Qn[0]*o+Qn[1]*l),n.g=t+i*(Qn[2]*o+Qn[3]*l),n.b=t+i*(Qn[4]*o+Qn[5]*l),a!==void 0&&(n.alpha=a),n},Hx=kX,dv=(e,r)=>{if(e.h===void 0||r.h===void 0||!e.s||!r.s)return 0;let t=ii(e.h),a=ii(r.h),n=Math.sin((a-t+360)/2*Math.PI/180);return 2*Math.sqrt(e.s*r.s)*n},Ox=(e,r)=>{if(e.h===void 0||r.h===void 0)return 0;let t=ii(e.h),a=ii(r.h);return Math.abs(a-t)>180?t-(a-360*Math.sign(a-t)):a-t},pv=(e,r)=>{if(e.h===void 0||r.h===void 0||!e.c||!r.c)return 0;let t=ii(e.h),a=ii(r.h),n=Math.sin((a-t+360)/2*Math.PI/180);return 2*Math.sqrt(e.c*r.c)*n},x1=(e="rgb",r=[1,1,1,0])=>{let t=yi(e),a=t.channels,n=t.difference,i=La(e);return(o,l)=>{let s=i(o),u=i(l);return Math.sqrt(a.reduce((f,c,h)=>{let d=n[c]?n[c](s,u):s[c]-u[c];return f+(r[h]||0)*Math.pow(isNaN(d)?0:d,2)},0))}},CX=()=>x1("lab65"),SX=(e=1,r=.045,t=.015)=>{let a=La("lab65");return(n,i)=>{let o=a(n),l=a(i),s=o.l,u=o.a,f=o.b,c=Math.sqrt(u*u+f*f),h=l.l,d=l.a,m=l.b,p=Math.sqrt(d*d+m*m),y=Math.pow(s-h,2),b=Math.pow(c-p,2),C=Math.pow(u-d,2)+Math.pow(f-m,2)-b;return Math.sqrt(y/Math.pow(e,2)+b/Math.pow(1+r*c,2)+C/Math.pow(1+t*c,2))}},DX=(e=1,r=1,t=1)=>{let a=La("lab65");return(n,i)=>{let o=a(n),l=a(i),s=o.l,u=o.a,f=o.b,c=Math.sqrt(u*u+f*f),h=l.l,d=l.a,m=l.b,p=Math.sqrt(d*d+m*m),y=(c+p)/2,b=.5*(1-Math.sqrt(Math.pow(y,7)/(Math.pow(y,7)+Math.pow(25,7)))),C=u*(1+b),x=d*(1+b),_=Math.sqrt(C*C+f*f),M=Math.sqrt(x*x+m*m),T=Math.abs(C)+Math.abs(f)===0?0:Math.atan2(f,C);T+=(T<0)*2*Math.PI;let A=Math.abs(x)+Math.abs(m)===0?0:Math.atan2(m,x);A+=(A<0)*2*Math.PI;let E=h-s,P=M-_,z=_*M===0?0:A-T;z-=(z>Math.PI)*2*Math.PI,z+=(z<-Math.PI)*2*Math.PI;let B=2*Math.sqrt(_*M)*Math.sin(z/2),X=(s+h)/2,I=(_+M)/2,V;_*M===0?V=T+A:(V=(T+A)/2,V-=(Math.abs(T-A)>Math.PI)*Math.PI,V+=(V<0)*2*Math.PI);let H=Math.pow(X-50,2),Q=1-.17*Math.cos(V-Math.PI/6)+.24*Math.cos(2*V)+.32*Math.cos(3*V+Math.PI/30)-.2*Math.cos(4*V-63*Math.PI/180),oe=1+.015*H/Math.sqrt(20+H),re=1+.045*I,te=1+.015*I*Q,ie=30*Math.PI/180*Math.exp(-1*Math.pow((180/Math.PI*V-275)/25,2)),ce=2*Math.sqrt(Math.pow(I,7)/(Math.pow(I,7)+Math.pow(25,7))),Me=-1*Math.sin(2*ie)*ce;return Math.sqrt(Math.pow(E/(e*oe),2)+Math.pow(P/(r*re),2)+Math.pow(B/(t*te),2)+Me*P/(r*re)*B/(t*te))}},FX=(e=1,r=1)=>{let t=La("lab65");return(a,n)=>{let i=t(a),o=i.l,l=i.a,s=i.b,u=Math.sqrt(l*l+s*s),f=Math.atan2(s,l);f=f+2*Math.PI*(f<0);let c=t(n),h=c.l,d=c.a,m=c.b,p=Math.sqrt(d*d+m*m),y=Math.pow(o-h,2),b=Math.pow(u-p,2),C=Math.pow(l-d,2)+Math.pow(s-m,2)-b,x=Math.sqrt(Math.pow(u,4)/(Math.pow(u,4)+1900)),_=f>=164/180*Math.PI&&f<=345/180*Math.PI?.56+Math.abs(.2*Math.cos(f+168/180*Math.PI)):.36+Math.abs(.4*Math.cos(f+35/180*Math.PI)),M=o<16?.511:.040975*o/(1+.01765*o),T=.0638*u/(1+.0131*u)+.638,A=T*(x*_+1-x);return Math.sqrt(y/Math.pow(e*M,2)+b/Math.pow(r*T,2)+C/Math.pow(A,2))}},EX=()=>{let e=La("lab65");return(r,t)=>{let a=e(r),n=e(t),i=a.l-n.l,o=a.a-n.a,l=a.b-n.b;return Math.abs(i)+Math.sqrt(o*o+l*l)}},LX=()=>x1("yiq",[.5053,.299,.1957]),qX=()=>x1("itp",[518400,129600,518400]),ks=e=>{let r=e.reduce((a,n)=>{if(n!==void 0){let i=n*Math.PI/180;a.sin+=Math.sin(i),a.cos+=Math.cos(i)}return a},{sin:0,cos:0}),t=Math.atan2(r.sin,r.cos)*180/Math.PI;return t<0?360+t:t},Ux=e=>{let r=e.filter(t=>t!==void 0);return r.length?r.reduce((t,a)=>t+a,0)/r.length:void 0},By=e=>typeof e=="function";function PX(e,r="rgb",t){let a=yi(r),n=e.map(La(r));return a.channels.reduce((i,o)=>{let l=n.map(s=>s[o]).filter(s=>s!==void 0);if(l.length){let s;By(t)?s=t:t&&By(t[o])?s=t[o]:a.average&&By(a.average[o])?s=a.average[o]:s=Ux,i[o]=s(l,o)}return i},{mode:r})}var RX={mode:"cubehelix",channels:["h","s","l","alpha"],parse:["--cubehelix"],serialize:"--cubehelix",ranges:{h:[0,360],s:[0,4.614],l:[0,1]},fromMode:{rgb:Ix},toMode:{rgb:Hx},interpolate:{h:{use:nt,fixup:Ts},s:nt,l:nt,alpha:{use:nt,fixup:Rn}},difference:{h:dv},average:{h:ks}},Gx=RX,zX=({l:e,a:r,b:t,alpha:a},n="lch")=>{r===void 0&&(r=0),t===void 0&&(t=0);let i=Math.sqrt(r*r+t*t),o={mode:n,l:e,c:i};return i&&(o.h=ii(Math.atan2(t,r)*180/Math.PI)),a!==void 0&&(o.alpha=a),o},Tu=zX,NX=({l:e,c:r,h:t,alpha:a},n="lab")=>{t===void 0&&(t=0);let i={mode:n,l:e,a:r?r*Math.cos(t/180*Math.PI):0,b:r?r*Math.sin(t/180*Math.PI):0};return a!==void 0&&(i.alpha=a),i},ku=NX,Yx=Math.pow(29,3)/Math.pow(3,3),Vx=Math.pow(6,3)/Math.pow(29,3),Pn={X:.3457/.3585,Y:1,Z:(1-.3457-.3585)/.3585},y1={X:.3127/.329,Y:1,Z:(1-.3127-.329)/.329},g4e=Math.pow(29,3)/Math.pow(3,3),y4e=Math.pow(6,3)/Math.pow(29,3),Iy=e=>Math.pow(e,3)>Vx?Math.pow(e,3):(116*e-16)/Yx,BX=({l:e,a:r,b:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=(e+16)/116,i=r/500+n,o=n-t/200,l={mode:"xyz65",x:Iy(i)*y1.X,y:Iy(n)*y1.Y,z:Iy(o)*y1.Z};return a!==void 0&&(l.alpha=a),l},S4=BX,IX=e=>h0(S4(e)),mv=IX,Hy=e=>e>Vx?Math.cbrt(e):(Yx*e+16)/116,HX=({x:e,y:r,z:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=Hy(e/y1.X),i=Hy(r/y1.Y),o=Hy(t/y1.Z),l={mode:"lab65",l:116*i-16,a:500*(n-i),b:200*(i-o)};return a!==void 0&&(l.alpha=a),l},D4=HX,OX=e=>{let r=D4(v0(e));return e.r===e.b&&e.b===e.g&&(r.a=r.b=0),r},gv=OX,Od=1,Xx=1,hv=26/180*Math.PI,Ud=Math.cos(hv),Gd=Math.sin(hv),jx=100/Math.log(139/100),UX=({l:e,c:r,h:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n={mode:"lab65",l:(Math.exp(e*Od/jx)-1)/.0039},i=(Math.exp(.0435*r*Xx*Od)-1)/.075,o=i*Math.cos(t/180*Math.PI-hv),l=i*Math.sin(t/180*Math.PI-hv);return n.a=o*Ud-l/.83*Gd,n.b=o*Gd+l/.83*Ud,a!==void 0&&(n.alpha=a),n},Yd=UX,GX=({l:e,a:r,b:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=r*Ud+t*Gd,i=.83*(t*Ud-r*Gd),o=Math.sqrt(n*n+i*i),l={mode:"dlch",l:jx/Od*Math.log(1+.0039*e),c:Math.log(1+.075*o)/(.0435*Xx*Od)};return l.c&&(l.h=ii((Math.atan2(i,n)+hv)/Math.PI*180)),a!==void 0&&(l.alpha=a),l},Vd=GX,bx=e=>Yd(Tu(e,"dlch")),_x=e=>ku(Vd(e),"dlab"),YX={mode:"dlab",parse:["--din99o-lab"],serialize:"--din99o-lab",toMode:{lab65:bx,rgb:e=>mv(bx(e))},fromMode:{lab65:_x,rgb:e=>_x(gv(e))},channels:["l","a","b","alpha"],ranges:{l:[0,100],a:[-40.09,45.501],b:[-40.469,44.344]},interpolate:{l:nt,a:nt,b:nt,alpha:{use:nt,fixup:Rn}}},Wx=YX,VX={mode:"dlch",parse:["--din99o-lch"],serialize:"--din99o-lch",toMode:{lab65:Yd,dlab:e=>ku(e,"dlab"),rgb:e=>mv(Yd(e))},fromMode:{lab65:Vd,dlab:e=>Tu(e,"dlch"),rgb:e=>Vd(gv(e))},channels:["l","c","h","alpha"],ranges:{l:[0,100],c:[0,51.484],h:[0,360]},interpolate:{l:nt,c:nt,h:{use:nt,fixup:Ts},alpha:{use:nt,fixup:Rn}},difference:{h:pv},average:{h:ks}},Zx=VX;function $x({h:e,s:r,i:t,alpha:a}){e=ii(e!==void 0?e:0),r===void 0&&(r=0),t===void 0&&(t=0);let n=Math.abs(e/60%2-1),i;switch(Math.floor(e/60)){case 0:i={r:t*(1+r*(3/(2-n)-1)),g:t*(1+r*(3*(1-n)/(2-n)-1)),b:t*(1-r)};break;case 1:i={r:t*(1+r*(3*(1-n)/(2-n)-1)),g:t*(1+r*(3/(2-n)-1)),b:t*(1-r)};break;case 2:i={r:t*(1-r),g:t*(1+r*(3/(2-n)-1)),b:t*(1+r*(3*(1-n)/(2-n)-1))};break;case 3:i={r:t*(1-r),g:t*(1+r*(3*(1-n)/(2-n)-1)),b:t*(1+r*(3/(2-n)-1))};break;case 4:i={r:t*(1+r*(3*(1-n)/(2-n)-1)),g:t*(1-r),b:t*(1+r*(3/(2-n)-1))};break;case 5:i={r:t*(1+r*(3/(2-n)-1)),g:t*(1-r),b:t*(1+r*(3*(1-n)/(2-n)-1))};break;default:i={r:t*(1-r),g:t*(1-r),b:t*(1-r)}}return i.mode="rgb",a!==void 0&&(i.alpha=a),i}function Jx({r:e,g:r,b:t,alpha:a}){e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=Math.max(e,r,t),i=Math.min(e,r,t),o={mode:"hsi",s:e+r+t===0?0:1-3*i/(e+r+t),i:(e+r+t)/3};return n-i!==0&&(o.h=(n===e?(r-t)/(n-i)+(r{switch(r){case"deg":return+e;case"rad":return e/Math.PI*180;case"grad":return e/10*9;case"turn":return e*360}},WX=jX,ZX=new RegExp(`^hsla?\\(\\s*${VV}${b1}${cv}${b1}${cv}\\s*(?:,\\s*${k4}\\s*)?\\)$`),$X=e=>{let r=e.match(ZX);if(!r)return;let t={mode:"hsl"};return r[3]!==void 0?t.h=+r[3]:r[1]!==void 0&&r[2]!==void 0&&(t.h=WX(r[1],r[2])),r[4]!==void 0&&(t.s=Math.min(Math.max(0,r[4]/100),1)),r[5]!==void 0&&(t.l=Math.min(Math.max(0,r[5]/100),1)),r[6]!==void 0?t.alpha=Math.max(0,Math.min(1,r[6]/100)):r[7]!==void 0&&(t.alpha=Math.max(0,Math.min(1,+r[7]))),t},rw=$X;function JX(e,r){if(!r||r[0]!=="hsl"&&r[0]!=="hsla")return;let t={mode:"hsl"},[,a,n,i,o]=r;if(a.type!==$r.None){if(a.type===$r.Percentage)return;t.h=a.value}if(n.type!==$r.None){if(n.type===$r.Hue)return;t.s=n.value/100}if(i.type!==$r.None){if(i.type===$r.Hue)return;t.l=i.value/100}return o.type!==$r.None&&(t.alpha=Math.min(1,Math.max(0,o.type===$r.Number?o.value:o.value/100))),t}var tw=JX,KX={mode:"hsl",toMode:{rgb:Qx},fromMode:{rgb:ew},channels:["h","s","l","alpha"],ranges:{h:[0,360]},gamut:"rgb",parse:[tw,rw],serialize:e=>`hsl(${e.h!==void 0?e.h:"none"} ${e.s!==void 0?e.s*100+"%":"none"} ${e.l!==void 0?e.l*100+"%":"none"}${e.alpha<1?` / ${e.alpha}`:""})`,interpolate:{h:{use:nt,fixup:Ts},s:nt,l:nt,alpha:{use:nt,fixup:Rn}},difference:{h:dv},average:{h:ks}},F4=KX;function E4({h:e,s:r,v:t,alpha:a}){e=ii(e!==void 0?e:0),r===void 0&&(r=0),t===void 0&&(t=0);let n=Math.abs(e/60%2-1),i;switch(Math.floor(e/60)){case 0:i={r:t,g:t*(1-r*n),b:t*(1-r)};break;case 1:i={r:t*(1-r*n),g:t,b:t*(1-r)};break;case 2:i={r:t*(1-r),g:t,b:t*(1-r*n)};break;case 3:i={r:t*(1-r),g:t*(1-r*n),b:t};break;case 4:i={r:t*(1-r*n),g:t*(1-r),b:t};break;case 5:i={r:t,g:t*(1-r),b:t*(1-r*n)};break;default:i={r:t*(1-r),g:t*(1-r),b:t*(1-r)}}return i.mode="rgb",a!==void 0&&(i.alpha=a),i}function L4({r:e,g:r,b:t,alpha:a}){e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=Math.max(e,r,t),i=Math.min(e,r,t),o={mode:"hsv",s:n===0?0:1-i/n,v:n};return n-i!==0&&(o.h=(n===e?(r-t)/(n-i)+(r1){let n=r+t;r/=n,t/=n}return E4({h:e,s:t===1?1:1-r/(1-t),v:1-t,alpha:a})}function nw(e){let r=L4(e);if(r===void 0)return;let t=r.s!==void 0?r.s:0,a=r.v!==void 0?r.v:0,n={mode:"hwb",w:(1-t)*a,b:1-a};return r.h!==void 0&&(n.h=r.h),r.alpha!==void 0&&(n.alpha=r.alpha),n}function ej(e,r){if(!r||r[0]!=="hwb")return;let t={mode:"hwb"},[,a,n,i,o]=r;if(a.type!==$r.None){if(a.type===$r.Percentage)return;t.h=a.value}if(n.type!==$r.None){if(n.type===$r.Hue)return;t.w=n.value/100}if(i.type!==$r.None){if(i.type===$r.Hue)return;t.b=i.value/100}return o.type!==$r.None&&(t.alpha=Math.min(1,Math.max(0,o.type===$r.Number?o.value:o.value/100))),t}var iw=ej,rj={mode:"hwb",toMode:{rgb:aw},fromMode:{rgb:nw},channels:["h","w","b","alpha"],ranges:{h:[0,360]},gamut:"rgb",parse:[iw],serialize:e=>`hwb(${e.h!==void 0?e.h:"none"} ${e.w!==void 0?e.w*100+"%":"none"} ${e.b!==void 0?e.b*100+"%":"none"}${e.alpha<1?` / ${e.alpha}`:""})`,interpolate:{h:{use:nt,fixup:Ts},w:nt,b:nt,alpha:{use:nt,fixup:Rn}},difference:{h:Ox},average:{h:ks}},ow=rj,lw=203,$d=.1593017578125,sw=78.84375,Jd=.8359375,Kd=18.8515625,Qd=18.6875;function Oy(e){if(e<0)return 0;let r=Math.pow(e,1/sw);return 1e4*Math.pow(Math.max(0,r-Jd)/(Kd-Qd*r),1/$d)}function Uy(e){if(e<0)return 0;let r=Math.pow(e/1e4,$d);return Math.pow((Jd+Kd*r)/(1+Qd*r),sw)}var Gy=e=>Math.max(e/lw,0),tj=({i:e,t:r,p:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=Oy(e+.008609037037932761*r+.11102962500302593*t),i=Oy(e-.00860903703793275*r-.11102962500302599*t),o=Oy(e+.5600313357106791*r-.32062717498731885*t),l={mode:"xyz65",x:Gy(2.070152218389422*n-1.3263473389671556*i+.2066510476294051*o),y:Gy(.3647385209748074*n+.680566024947227*i-.0453045459220346*o),z:Gy(-.049747207535812*n-.0492609666966138*i+1.1880659249923042*o)};return a!==void 0&&(l.alpha=a),l},s4=tj,Yy=(e=0)=>Math.max(e*lw,0),aj=({x:e,y:r,z:t,alpha:a})=>{let n=Yy(e),i=Yy(r),o=Yy(t),l=Uy(.3592832590121217*n+.6976051147779502*i-.0358915932320289*o),s=Uy(-.1920808463704995*n+1.1004767970374323*i+.0753748658519118*o),u=Uy(.0070797844607477*n+.0748396662186366*i+.8433265453898765*o),f=.5*l+.5*s,c=1.61376953125*l-3.323486328125*s+1.709716796875*u,h=4.378173828125*l-4.24560546875*s-.132568359375*u,d={mode:"itp",i:f,t:c,p:h};return a!==void 0&&(d.alpha=a),d},u4=aj,nj={mode:"itp",channels:["i","t","p","alpha"],parse:["--ictcp"],serialize:"--ictcp",toMode:{xyz65:s4,rgb:e=>h0(s4(e))},fromMode:{xyz65:u4,rgb:e=>u4(v0(e))},ranges:{i:[0,.581],t:[-.369,.272],p:[-.164,.331]},interpolate:{i:nt,t:nt,p:nt,alpha:{use:nt,fixup:Rn}}},uw=nj,ij=134.03437499999998,oj=16295499532821565e-27,Vy=e=>{if(e<0)return 0;let r=Math.pow(e/1e4,$d);return Math.pow((Jd+Kd*r)/(1+Qd*r),ij)},Xy=(e=0)=>Math.max(e*203,0),lj=({x:e,y:r,z:t,alpha:a})=>{e=Xy(e),r=Xy(r),t=Xy(t);let n=1.15*e-.15*t,i=.66*r+.34*e,o=Vy(.41478972*n+.579999*i+.014648*t),l=Vy(-.20151*n+1.120649*i+.0531008*t),s=Vy(-.0166008*n+.2648*i+.6684799*t),u=(o+l)/2,f={mode:"jab",j:.44*u/(1-.56*u)-oj,a:3.524*o-4.066708*l+.542708*s,b:.199076*o+1.096799*l-1.295875*s};return a!==void 0&&(f.alpha=a),f},P4=lj,sj=134.03437499999998,xx=16295499532821565e-27,jy=e=>{if(e<0)return 0;let r=Math.pow(e,1/sj);return 1e4*Math.pow((Jd-r)/(Qd*r-Kd),1/$d)},Wy=e=>e/203,uj=({j:e,a:r,b:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=(e+xx)/(.44+.56*(e+xx)),i=jy(n+.13860504*r+.058047316*t),o=jy(n-.13860504*r-.058047316*t),l=jy(n-.096019242*r-.8118919*t),s={mode:"xyz65",x:Wy(1.661373024652174*i-.914523081304348*o+.23136208173913045*l),y:Wy(-.3250758611844533*i+1.571847026732543*o-.21825383453227928*l),z:Wy(-.090982811*i-.31272829*o+1.5227666*l)};return a!==void 0&&(s.alpha=a),s},R4=uj,fj=e=>{let r=P4(v0(e));return e.r===e.b&&e.b===e.g&&(r.a=r.b=0),r},z4=fj,cj=e=>h0(R4(e)),N4=cj,vj={mode:"jab",channels:["j","a","b","alpha"],parse:["--jzazbz"],serialize:"--jzazbz",fromMode:{rgb:z4,xyz65:P4},toMode:{rgb:N4,xyz65:R4},ranges:{j:[0,.222],a:[-.109,.129],b:[-.185,.134]},interpolate:{j:nt,a:nt,b:nt,alpha:{use:nt,fixup:Rn}}},fw=vj,hj=({j:e,a:r,b:t,alpha:a})=>{r===void 0&&(r=0),t===void 0&&(t=0);let n=Math.sqrt(r*r+t*t),i={mode:"jch",j:e,c:n};return n&&(i.h=ii(Math.atan2(t,r)*180/Math.PI)),a!==void 0&&(i.alpha=a),i},f4=hj,dj=({j:e,c:r,h:t,alpha:a})=>{t===void 0&&(t=0);let n={mode:"jab",j:e,a:r?r*Math.cos(t/180*Math.PI):0,b:r?r*Math.sin(t/180*Math.PI):0};return a!==void 0&&(n.alpha=a),n},c4=dj,pj={mode:"jch",parse:["--jzczhz"],serialize:"--jzczhz",toMode:{jab:c4,rgb:e=>N4(c4(e))},fromMode:{rgb:e=>f4(z4(e)),jab:f4},channels:["j","c","h","alpha"],ranges:{j:[0,.221],c:[0,.19],h:[0,360]},interpolate:{h:{use:nt,fixup:Ts},c:nt,j:nt,alpha:{use:nt,fixup:Rn}},difference:{h:pv},average:{h:ks}},cw=pj,ep=Math.pow(29,3)/Math.pow(3,3),B4=Math.pow(6,3)/Math.pow(29,3),Zy=e=>Math.pow(e,3)>B4?Math.pow(e,3):(116*e-16)/ep,mj=({l:e,a:r,b:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=(e+16)/116,i=r/500+n,o=n-t/200,l={mode:"xyz50",x:Zy(i)*Pn.X,y:Zy(n)*Pn.Y,z:Zy(o)*Pn.Z};return a!==void 0&&(l.alpha=a),l},rp=mj,gj=({x:e,y:r,z:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=If({r:e*3.1341359569958707-r*1.6173863321612538-.4906619460083532*t,g:e*-.978795502912089+r*1.916254567259524+.03344273116131949*t,b:e*.07195537988411677-r*.2289768264158322+1.405386058324125*t});return a!==void 0&&(n.alpha=a),n},w1=gj,yj=e=>w1(rp(e)),I4=yj,bj=e=>{let{r,g:t,b:a,alpha:n}=Bf(e),i={mode:"xyz50",x:.436065742824811*r+.3851514688337912*t+.14307845442264197*a,y:.22249319175623702*r+.7168870538238823*t+.06061979053616537*a,z:.013923904500943465*r+.09708128566574634*t+.7140993584005155*a};return n!==void 0&&(i.alpha=n),i},A1=bj,$y=e=>e>B4?Math.cbrt(e):(ep*e+16)/116,_j=({x:e,y:r,z:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=$y(e/Pn.X),i=$y(r/Pn.Y),o=$y(t/Pn.Z),l={mode:"lab",l:116*i-16,a:500*(n-i),b:200*(i-o)};return a!==void 0&&(l.alpha=a),l},tp=_j,xj=e=>{let r=tp(A1(e));return e.r===e.b&&e.b===e.g&&(r.a=r.b=0),r},H4=xj;function wj(e,r){if(!r||r[0]!=="lab")return;let t={mode:"lab"},[,a,n,i,o]=r;if(!(a.type===$r.Hue||n.type===$r.Hue||i.type===$r.Hue))return a.type!==$r.None&&(t.l=Math.min(Math.max(0,a.value),100)),n.type!==$r.None&&(t.a=n.type===$r.Number?n.value:n.value*125/100),i.type!==$r.None&&(t.b=i.type===$r.Number?i.value:i.value*125/100),o.type!==$r.None&&(t.alpha=Math.min(1,Math.max(0,o.type===$r.Number?o.value:o.value/100))),t}var vw=wj,Aj={mode:"lab",toMode:{xyz50:rp,rgb:I4},fromMode:{xyz50:tp,rgb:H4},channels:["l","a","b","alpha"],ranges:{l:[0,100],a:[-125,125],b:[-125,125]},parse:[vw],serialize:e=>`lab(${e.l!==void 0?e.l:"none"} ${e.a!==void 0?e.a:"none"} ${e.b!==void 0?e.b:"none"}${e.alpha<1?` / ${e.alpha}`:""})`,interpolate:{l:nt,a:nt,b:nt,alpha:{use:nt,fixup:Rn}}},ap=Aj,Mj=Ba(da({},ap),{mode:"lab65",parse:["--lab-d65"],serialize:"--lab-d65",toMode:{xyz65:S4,rgb:mv},fromMode:{xyz65:D4,rgb:gv},ranges:{l:[0,100],a:[-125,125],b:[-125,125]}}),hw=Mj;function Tj(e,r){if(!r||r[0]!=="lch")return;let t={mode:"lch"},[,a,n,i,o]=r;if(a.type!==$r.None){if(a.type===$r.Hue)return;t.l=Math.min(Math.max(0,a.value),100)}if(n.type!==$r.None&&(t.c=Math.max(0,n.type===$r.Number?n.value:n.value*150/100)),i.type!==$r.None){if(i.type===$r.Percentage)return;t.h=i.value}return o.type!==$r.None&&(t.alpha=Math.min(1,Math.max(0,o.type===$r.Number?o.value:o.value/100))),t}var dw=Tj,kj={mode:"lch",toMode:{lab:ku,rgb:e=>I4(ku(e))},fromMode:{rgb:e=>Tu(H4(e)),lab:Tu},channels:["l","c","h","alpha"],ranges:{l:[0,100],c:[0,150],h:[0,360]},parse:[dw],serialize:e=>`lch(${e.l!==void 0?e.l:"none"} ${e.c!==void 0?e.c:"none"} ${e.h!==void 0?e.h:"none"}${e.alpha<1?` / ${e.alpha}`:""})`,interpolate:{h:{use:nt,fixup:Ts},c:nt,l:nt,alpha:{use:nt,fixup:Rn}},difference:{h:pv},average:{h:ks}},np=kj,Cj=Ba(da({},np),{mode:"lch65",parse:["--lch-d65"],serialize:"--lch-d65",toMode:{lab65:e=>ku(e,"lab65"),rgb:e=>mv(ku(e,"lab65"))},fromMode:{rgb:e=>Tu(gv(e),"lch65"),lab65:e=>Tu(e,"lch65")},ranges:{l:[0,100],c:[0,150],h:[0,360]}}),pw=Cj,Sj=({l:e,u:r,v:t,alpha:a})=>{r===void 0&&(r=0),t===void 0&&(t=0);let n=Math.sqrt(r*r+t*t),i={mode:"lchuv",l:e,c:n};return n&&(i.h=ii(Math.atan2(t,r)*180/Math.PI)),a!==void 0&&(i.alpha=a),i},O4=Sj,Dj=({l:e,c:r,h:t,alpha:a})=>{t===void 0&&(t=0);let n={mode:"luv",l:e,u:r?r*Math.cos(t/180*Math.PI):0,v:r?r*Math.sin(t/180*Math.PI):0};return a!==void 0&&(n.alpha=a),n},U4=Dj,mw=(e,r,t)=>4*e/(e+15*r+3*t),gw=(e,r,t)=>9*r/(e+15*r+3*t),Fj=mw(Pn.X,Pn.Y,Pn.Z),Ej=gw(Pn.X,Pn.Y,Pn.Z),Lj=e=>e<=B4?ep*e:116*Math.cbrt(e)-16,qj=({x:e,y:r,z:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=Lj(r/Pn.Y),i=mw(e,r,t),o=gw(e,r,t);!isFinite(i)||!isFinite(o)?n=i=o=0:(i=13*n*(i-Fj),o=13*n*(o-Ej));let l={mode:"luv",l:n,u:i,v:o};return a!==void 0&&(l.alpha=a),l},Xd=qj,Pj=(e,r,t)=>4*e/(e+15*r+3*t),Rj=(e,r,t)=>9*r/(e+15*r+3*t),zj=Pj(Pn.X,Pn.Y,Pn.Z),Nj=Rj(Pn.X,Pn.Y,Pn.Z),Bj=({l:e,u:r,v:t,alpha:a})=>{if(e===void 0&&(e=0),e===0)return{mode:"xyz50",x:0,y:0,z:0};r===void 0&&(r=0),t===void 0&&(t=0);let n=r/(13*e)+zj,i=t/(13*e)+Nj,o=Pn.Y*(e<=8?e/ep:Math.pow((e+16)/116,3)),l=o*(9*n)/(4*i),s=o*(12-3*n-20*i)/(4*i),u={mode:"xyz50",x:l,y:o,z:s};return a!==void 0&&(u.alpha=a),u},jd=Bj,Ij=e=>O4(Xd(A1(e))),Hj=e=>w1(jd(U4(e))),Oj={mode:"lchuv",toMode:{luv:U4,rgb:Hj},fromMode:{rgb:Ij,luv:O4},channels:["l","c","h","alpha"],parse:["--lchuv"],serialize:"--lchuv",ranges:{l:[0,100],c:[0,176.956],h:[0,360]},interpolate:{h:{use:nt,fixup:Ts},c:nt,l:nt,alpha:{use:nt,fixup:Rn}},difference:{h:pv},average:{h:ks}},yw=Oj,Uj=Ba(da({},Nf),{mode:"lrgb",toMode:{rgb:If},fromMode:{rgb:Bf},parse:["srgb-linear"],serialize:"srgb-linear"}),bw=Uj,Gj={mode:"luv",toMode:{xyz50:jd,rgb:e=>w1(jd(e))},fromMode:{xyz50:Xd,rgb:e=>Xd(A1(e))},channels:["l","u","v","alpha"],parse:["--luv"],serialize:"--luv",ranges:{l:[0,100],u:[-84.936,175.042],v:[-125.882,87.243]},interpolate:{l:nt,u:nt,v:nt,alpha:{use:nt,fixup:Rn}}},_w=Gj,Yj=({r:e,g:r,b:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=Math.cbrt(.412221469470763*e+.5363325372617348*r+.0514459932675022*t),i=Math.cbrt(.2119034958178252*e+.6806995506452344*r+.1073969535369406*t),o=Math.cbrt(.0883024591900564*e+.2817188391361215*r+.6299787016738222*t),l={mode:"oklab",l:.210454268309314*n+.7936177747023054*i-.0040720430116193*o,a:1.9779985324311684*n-2.42859224204858*i+.450593709617411*o,b:.0259040424655478*n+.7827717124575296*i-.8086757549230774*o};return a!==void 0&&(l.alpha=a),l},G4=Yj,Vj=e=>{let r=G4(Bf(e));return e.r===e.b&&e.b===e.g&&(r.a=r.b=0),r},yv=Vj,Xj=({l:e,a:r,b:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=Math.pow(e+.3963377773761749*r+.2158037573099136*t,3),i=Math.pow(e-.1055613458156586*r-.0638541728258133*t,3),o=Math.pow(e-.0894841775298119*r-1.2914855480194092*t,3),l={mode:"lrgb",r:4.076741636075957*n-3.3077115392580616*i+.2309699031821044*o,g:-1.2684379732850317*n+2.6097573492876887*i-.3413193760026573*o,b:-.0041960761386756*n-.7034186179359362*i+1.7076146940746117*o};return a!==void 0&&(l.alpha=a),l},M1=Xj,jj=e=>If(M1(e)),bv=jj;function v4(e){let a=1.170873786407767;return .5*(a*e-.206+Math.sqrt((a*e-.206)*(a*e-.206)+4*.03*a*e))}function Wd(e){return(e*e+.206*e)/(1.170873786407767*(e+.03))}function Wj(e,r){let t,a,n,i,o,l,s,u;-1.88170328*e-.80936493*r>1?(t=1.19086277,a=1.76576728,n=.59662641,i=.75515197,o=.56771245,l=4.0767416621,s=-3.3077115913,u=.2309699292):1.81444104*e-1.19445276*r>1?(t=.73956515,a=-.45954404,n=.08285427,i=.1254107,o=.14503204,l=-1.2684380046,s=2.6097574011,u=-.3413193965):(t=1.35733652,a=-.00915799,n=-1.1513021,i=-.50559606,o=.00692167,l=-.0041960863,s=-.7034186147,u=1.707614701);let f=t+a*e+n*r+i*e*e+o*e*r,c=.3963377774*e+.2158037573*r,h=-.1055613458*e-.0638541728*r,d=-.0894841775*e-1.291485548*r;{let m=1+f*c,p=1+f*h,y=1+f*d,b=m*m*m,C=p*p*p,x=y*y*y,_=3*c*m*m,M=3*h*p*p,T=3*d*y*y,A=6*c*c*m,E=6*h*h*p,P=6*d*d*y,z=l*b+s*C+u*x,B=l*_+s*M+u*T,X=l*A+s*E+u*P;f=f-z*B/(B*B-.5*z*X)}return f}function Y4(e,r){let t=Wj(e,r),a=M1({l:1,a:t*e,b:t*r}),n=Math.cbrt(1/Math.max(a.r,a.g,a.b)),i=n*t;return[n,i]}function Zj(e,r,t,a,n,i=null){i||(i=Y4(e,r));let o;if((t-n)*i[1]-(i[0]-n)*a<=0)o=i[1]*n/(a*i[0]+i[1]*(n-t));else{o=i[1]*(n-1)/(a*(i[0]-1)+i[1]*(n-t));{let l=t-n,s=a,u=.3963377774*e+.2158037573*r,f=-.1055613458*e-.0638541728*r,c=-.0894841775*e-1.291485548*r,h=l+s*u,d=l+s*f,m=l+s*c;{let p=n*(1-o)+o*t,y=o*a,b=p+y*u,C=p+y*f,x=p+y*c,_=b*b*b,M=C*C*C,T=x*x*x,A=3*h*b*b,E=3*d*C*C,P=3*m*x*x,z=6*h*h*b,B=6*d*d*C,X=6*m*m*x,I=4.0767416621*_-3.3077115913*M+.2309699292*T-1,V=4.0767416621*A-3.3077115913*E+.2309699292*P,H=4.0767416621*z-3.3077115913*B+.2309699292*X,Q=V/(V*V-.5*I*H),oe=-I*Q,re=-1.2684380046*_+2.6097574011*M-.3413193965*T-1,te=-1.2684380046*A+2.6097574011*E-.3413193965*P,ie=-1.2684380046*z+2.6097574011*B-.3413193965*X,ce=te/(te*te-.5*re*ie),Me=-re*ce,De=-.0041960863*_-.7034186147*M+1.707614701*T-1,Ie=-.0041960863*A-.7034186147*E+1.707614701*P,Ue=-.0041960863*z-.7034186147*B+1.707614701*X,ke=Ie/(Ie*Ie-.5*De*Ue),je=-De*ke;oe=Q>=0?oe:1e6,Me=ce>=0?Me:1e6,je=ke>=0?je:1e6,o+=Math.min(oe,Math.min(Me,je))}}}return o}function V4(e,r,t=null){t||(t=Y4(e,r));let a=t[0],n=t[1];return[n/a,n/(1-a)]}function xw(e,r,t){let a=Y4(r,t),n=Zj(r,t,e,1,e,a),i=V4(r,t,a),o=.11516993+1/(7.4477897+4.1590124*t+r*(-2.19557347+1.75198401*t+r*(-2.13704948-10.02301043*t+r*(-4.24894561+5.38770819*t+4.69891013*r)))),l=.11239642+1/(1.6132032-.68124379*t+r*(.40370612+.90148123*t+r*(-.27087943+.6122399*t+r*(.00299215-.45399568*t-.14661872*r)))),s=n/Math.min(e*i[0],(1-e)*i[1]),u=e*o,f=(1-e)*l,c=.9*s*Math.sqrt(Math.sqrt(1/(1/(u*u*u*u)+1/(f*f*f*f))));return u=e*.4,f=(1-e)*.8,[Math.sqrt(1/(1/(u*u)+1/(f*f))),c,n]}function h4(e){let r=e.l!==void 0?e.l:0,t=e.a!==void 0?e.a:0,a=e.b!==void 0?e.b:0,n={mode:"okhsl",l:v4(r)};e.alpha!==void 0&&(n.alpha=e.alpha);let i=Math.sqrt(t*t+a*a);if(!i)return n.s=0,n;let[o,l,s]=xw(r,t/i,a/i),u;if(ih4(yv(e))},toMode:{oklab:d4,rgb:e=>bv(d4(e))}}),ww=$j;function p4(e){let r=e.l!==void 0?e.l:0,t=e.a!==void 0?e.a:0,a=e.b!==void 0?e.b:0,n=Math.sqrt(t*t+a*a),i=n?t/n:1,o=n?a/n:1,[l,s]=V4(i,o),u=.5,f=1-u/l,c=s/(n+r*s),h=c*r,d=c*n,m=Wd(h),p=d*m/h,y=M1({l:m,a:i*p,b:o*p}),b=Math.cbrt(1/Math.max(y.r,y.g,y.b,0));r=r/b,n=n/b*v4(r)/r,r=v4(r);let C={mode:"okhsv",s:n?(u+s)*d/(s*u+s*f*d):0,v:r?r/h:0};return C.s&&(C.h=ii(Math.atan2(a,t)*180/Math.PI)),e.alpha!==void 0&&(C.alpha=e.alpha),C}function m4(e){let r={mode:"oklab"};e.alpha!==void 0&&(r.alpha=e.alpha);let t=e.h!==void 0?e.h:0,a=e.s!==void 0?e.s:0,n=e.v!==void 0?e.v:0,i=Math.cos(t/180*Math.PI),o=Math.sin(t/180*Math.PI),[l,s]=V4(i,o),u=.5,f=1-u/l,c=1-a*u/(u+s-s*f*a),h=a*s*u/(u+s-s*f*a),d=Wd(c),m=h*d/c,p=M1({l:d,a:i*m,b:o*m}),y=Math.cbrt(1/Math.max(p.r,p.g,p.b,0)),b=Wd(n*c),C=h*b/c;return r.l=b*y,r.a=C*i*y,r.b=C*o*y,r}var Jj=Ba(da({},q4),{mode:"okhsv",channels:["h","s","v","alpha"],parse:["--okhsv"],serialize:"--okhsv",fromMode:{oklab:p4,rgb:e=>p4(yv(e))},toMode:{oklab:m4,rgb:e=>bv(m4(e))}}),Aw=Jj;function Kj(e,r){if(!r||r[0]!=="oklab")return;let t={mode:"oklab"},[,a,n,i,o]=r;if(!(a.type===$r.Hue||n.type===$r.Hue||i.type===$r.Hue))return a.type!==$r.None&&(t.l=Math.min(Math.max(0,a.type===$r.Number?a.value:a.value/100),1)),n.type!==$r.None&&(t.a=n.type===$r.Number?n.value:n.value*.4/100),i.type!==$r.None&&(t.b=i.type===$r.Number?i.value:i.value*.4/100),o.type!==$r.None&&(t.alpha=Math.min(1,Math.max(0,o.type===$r.Number?o.value:o.value/100))),t}var Mw=Kj,Qj=Ba(da({},ap),{mode:"oklab",toMode:{lrgb:M1,rgb:bv},fromMode:{lrgb:G4,rgb:yv},ranges:{l:[0,1],a:[-.4,.4],b:[-.4,.4]},parse:[Mw],serialize:e=>`oklab(${e.l!==void 0?e.l:"none"} ${e.a!==void 0?e.a:"none"} ${e.b!==void 0?e.b:"none"}${e.alpha<1?` / ${e.alpha}`:""})`}),Tw=Qj;function eW(e,r){if(!r||r[0]!=="oklch")return;let t={mode:"oklch"},[,a,n,i,o]=r;if(a.type!==$r.None){if(a.type===$r.Hue)return;t.l=Math.min(Math.max(0,a.type===$r.Number?a.value:a.value/100),1)}if(n.type!==$r.None&&(t.c=Math.max(0,n.type===$r.Number?n.value:n.value*.4/100)),i.type!==$r.None){if(i.type===$r.Percentage)return;t.h=i.value}return o.type!==$r.None&&(t.alpha=Math.min(1,Math.max(0,o.type===$r.Number?o.value:o.value/100))),t}var kw=eW,rW=Ba(da({},np),{mode:"oklch",toMode:{oklab:e=>ku(e,"oklab"),rgb:e=>bv(ku(e,"oklab"))},fromMode:{rgb:e=>Tu(yv(e),"oklch"),oklab:e=>Tu(e,"oklch")},parse:[kw],serialize:e=>`oklch(${e.l!==void 0?e.l:"none"} ${e.c!==void 0?e.c:"none"} ${e.h!==void 0?e.h:"none"}${e.alpha<1?` / ${e.alpha}`:""})`,ranges:{l:[0,1],c:[0,.4],h:[0,360]}}),Cw=rW,tW=e=>{let{r,g:t,b:a,alpha:n}=Bf(e),i={mode:"xyz65",x:.486570948648216*r+.265667693169093*t+.1982172852343625*a,y:.2289745640697487*r+.6917385218365062*t+.079286914093745*a,z:0*r+.0451133818589026*t+1.043944368900976*a};return n!==void 0&&(i.alpha=n),i},g4=tW,aW=({x:e,y:r,z:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=If({r:e*2.4934969119414263-r*.9313836179191242-.402710784450717*t,g:e*-.8294889695615749+r*1.7626640603183465+.0236246858419436*t,b:e*.0358458302437845-r*.0761723892680418+.9568845240076871*t},"p3");return a!==void 0&&(n.alpha=a),n},y4=aW,nW=Ba(da({},Nf),{mode:"p3",parse:["display-p3"],serialize:"display-p3",fromMode:{rgb:e=>y4(v0(e)),xyz65:y4},toMode:{rgb:e=>h0(g4(e)),xyz65:g4}}),Sw=nW,Jy=e=>{let r=Math.abs(e);return r>=1/512?Math.sign(e)*Math.pow(r,1/1.8):16*e},iW=({x:e,y:r,z:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n={mode:"prophoto",r:Jy(e*1.3457868816471585-r*.2555720873797946-.0511018649755453*t),g:Jy(e*-.5446307051249019+r*1.5082477428451466+.0205274474364214*t),b:Jy(e*0+r*0+1.2119675456389452*t)};return a!==void 0&&(n.alpha=a),n},b4=iW,Ky=(e=0)=>{let r=Math.abs(e);return r>=16/512?Math.sign(e)*Math.pow(r,1.8):e/16},oW=e=>{let r=Ky(e.r),t=Ky(e.g),a=Ky(e.b),n={mode:"xyz50",x:.7977666449006423*r+.1351812974005331*t+.0313477341283922*a,y:.2880748288194013*r+.7118352342418731*t+899369387256e-16*a,z:0*r+0*t+.8251046025104602*a};return e.alpha!==void 0&&(n.alpha=e.alpha),n},_4=oW,lW=Ba(da({},Nf),{mode:"prophoto",parse:["prophoto-rgb"],serialize:"prophoto-rgb",fromMode:{xyz50:b4,rgb:e=>b4(A1(e))},toMode:{xyz50:_4,rgb:e=>w1(_4(e))}}),Dw=lW,wx=1.09929682680944,sW=.018053968510807,Qy=e=>{let r=Math.abs(e);return r>sW?(Math.sign(e)||1)*(wx*Math.pow(r,.45)-(wx-1)):4.5*e},uW=({x:e,y:r,z:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n={mode:"rec2020",r:Qy(e*1.7166511879712683-r*.3556707837763925-.2533662813736599*t),g:Qy(e*-.6666843518324893+r*1.6164812366349395+.0157685458139111*t),b:Qy(e*.0176398574453108-r*.0427706132578085+.9421031212354739*t)};return a!==void 0&&(n.alpha=a),n},x4=uW,Ax=1.09929682680944,fW=.018053968510807,e4=(e=0)=>{let r=Math.abs(e);return r{let r=e4(e.r),t=e4(e.g),a=e4(e.b),n={mode:"xyz65",x:.6369580483012911*r+.1446169035862083*t+.1688809751641721*a,y:.262700212011267*r+.6779980715188708*t+.059301716469862*a,z:0*r+.0280726930490874*t+1.0609850577107909*a};return e.alpha!==void 0&&(n.alpha=e.alpha),n},w4=cW,vW=Ba(da({},Nf),{mode:"rec2020",fromMode:{xyz65:x4,rgb:e=>x4(v0(e))},toMode:{xyz65:w4,rgb:e=>h0(w4(e))},parse:["rec2020"],serialize:"rec2020"}),Fw=vW,Rf=.0037930732552754493,Ew=Math.cbrt(Rf),r4=e=>Math.cbrt(e)-Ew,hW=e=>{let{r,g:t,b:a,alpha:n}=Bf(e),i=r4(.3*r+.622*t+.078*a+Rf),o=r4(.23*r+.692*t+.078*a+Rf),l=r4(.2434226892454782*r+.2047674442449682*t+.5518098665095535*a+Rf),s={mode:"xyb",x:(i-o)/2,y:(i+o)/2,b:l-(i+o)/2};return n!==void 0&&(s.alpha=n),s},Lw=hW,t4=e=>Math.pow(e+Ew,3),dW=({x:e,y:r,b:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=t4(e+r)-Rf,i=t4(r-e)-Rf,o=t4(t+r)-Rf,l=If({r:11.031566904639861*n-9.866943908131562*i-.16462299650829934*o,g:-3.2541473810744237*n+4.418770377582723*i-.16462299650829934*o,b:-3.6588512867136815*n+2.7129230459360922*i+1.9459282407775895*o});return a!==void 0&&(l.alpha=a),l},qw=dW,pW={mode:"xyb",channels:["x","y","b","alpha"],parse:["--xyb"],serialize:"--xyb",toMode:{rgb:qw},fromMode:{rgb:Lw},ranges:{x:[-.0154,.0281],y:[0,.8453],b:[-.2778,.388]},interpolate:{x:nt,y:nt,b:nt,alpha:{use:nt,fixup:Rn}}},Pw=pW,mW={mode:"xyz50",parse:["xyz-d50"],serialize:"xyz-d50",toMode:{rgb:w1,lab:tp},fromMode:{rgb:A1,lab:rp},channels:["x","y","z","alpha"],ranges:{x:[0,.964],y:[0,.999],z:[0,.825]},interpolate:{x:nt,y:nt,z:nt,alpha:{use:nt,fixup:Rn}}},Rw=mW,gW=e=>{let{x:r,y:t,z:a,alpha:n}=e;r===void 0&&(r=0),t===void 0&&(t=0),a===void 0&&(a=0);let i={mode:"xyz50",x:1.0479298208405488*r+.0229467933410191*t-.0501922295431356*a,y:.0296278156881593*r+.990434484573249*t-.0170738250293851*a,z:-.0092430581525912*r+.0150551448965779*t+.7518742899580008*a};return n!==void 0&&(i.alpha=n),i},zw=gW,yW=e=>{let{x:r,y:t,z:a,alpha:n}=e;r===void 0&&(r=0),t===void 0&&(t=0),a===void 0&&(a=0);let i={mode:"xyz65",x:.9554734527042182*r-.0230985368742614*t+.0632593086610217*a,y:-.0283697069632081*r+1.0099954580058226*t+.021041398966943*a,z:.0123140016883199*r-.0205076964334779*t+1.3303659366080753*a};return n!==void 0&&(i.alpha=n),i},Nw=yW,bW={mode:"xyz65",toMode:{rgb:h0,xyz50:zw},fromMode:{rgb:v0,xyz50:Nw},ranges:{x:[0,.95],y:[0,1],z:[0,1.088]},channels:["x","y","z","alpha"],parse:["xyz","xyz-d65"],serialize:"xyz-d65",interpolate:{x:nt,y:nt,z:nt,alpha:{use:nt,fixup:Rn}}},Bw=bW,_W=({r:e,g:r,b:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n={mode:"yiq",y:.29889531*e+.58662247*r+.11448223*t,i:.59597799*e-.2741761*r-.32180189*t,q:.21147017*e-.52261711*r+.31114694*t};return a!==void 0&&(n.alpha=a),n},Iw=_W,xW=({y:e,i:r,q:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n={mode:"rgb",r:e+.95608445*r+.6208885*t,g:e-.27137664*r-.6486059*t,b:e-1.10561724*r+1.70250126*t};return a!==void 0&&(n.alpha=a),n},Hw=xW,wW={mode:"yiq",toMode:{rgb:Hw},fromMode:{rgb:Iw},channels:["y","i","q","alpha"],parse:["--yiq"],serialize:"--yiq",ranges:{i:[-.595,.595],q:[-.522,.522]},interpolate:{y:nt,i:nt,q:nt,alpha:{use:nt,fixup:Rn}}},Ow=wW,AW=(e,r)=>Math.round(e*(r=Math.pow(10,r)))/r,MW=(e=4)=>r=>typeof r=="number"?AW(r,e):r,Uw=MW,fv=Uw(2),vv=e=>Math.max(0,Math.min(1,e||0)),zf=e=>Math.round(vv(e)*255),X4=La("rgb"),TW=La("hsl"),j4=e=>{if(e===void 0)return;let r=zf(e.r),t=zf(e.g),a=zf(e.b);return"#"+(1<<24|r<<16|t<<8|a).toString(16).slice(1)},Gw=e=>{if(e===void 0)return;let r=zf(e.alpha!==void 0?e.alpha:1);return j4(e)+(256|r).toString(16).slice(1)},Yw=e=>{if(e===void 0)return;let r=zf(e.r),t=zf(e.g),a=zf(e.b);return e.alpha===void 0||e.alpha===1?`rgb(${r}, ${t}, ${a})`:`rgba(${r}, ${t}, ${a}, ${fv(vv(e.alpha))})`},Vw=e=>{if(e===void 0)return;let r=fv(e.h||0),t=fv(vv(e.s)*100)+"%",a=fv(vv(e.l)*100)+"%";return e.alpha===void 0||e.alpha===1?`hsl(${r}, ${t}, ${a})`:`hsla(${r}, ${t}, ${a}, ${fv(vv(e.alpha))})`},kW=e=>{let r=Rl(e);if(!r)return;let t=yi(r.mode);if(!t.serialize||typeof t.serialize=="string"){let a=`color(${t.serialize||`--${r.mode}`} `;return t.channels.forEach((n,i)=>{n!=="alpha"&&(a+=(i?" ":"")+(r[n]!==void 0?r[n]:"none"))}),r.alpha!==void 0&&r.alpha<1&&(a+=` / ${r.alpha}`),a+")"}if(typeof t.serialize=="function")return t.serialize(r)},CW=e=>j4(X4(e)),SW=e=>Gw(X4(e)),DW=e=>Yw(X4(e)),FW=e=>Vw(TW(e)),EW={normal:(e,r)=>r,multiply:(e,r)=>e*r,screen:(e,r)=>e+r-e*r,"hard-light":(e,r)=>r<.5?e*2*r:2*r*(1-e)-1,overlay:(e,r)=>e<.5?r*2*e:2*e*(1-r)-1,darken:(e,r)=>Math.min(e,r),lighten:(e,r)=>Math.max(e,r),"color-dodge":(e,r)=>e===0?0:r===1?1:Math.min(1,e/(1-r)),"color-burn":(e,r)=>e===1?1:r===0?0:1-Math.min(1,(1-e)/r),"soft-light":(e,r)=>r<.5?e-(1-2*r)*e*(1-e):e+(2*r-1)*((e<.25?((16*e-12)*e+4)*e:Math.sqrt(e))-e),difference:(e,r)=>Math.abs(e-r),exclusion:(e,r)=>e+r-2*e*r},LW=(e,r="normal",t="rgb")=>{let a=typeof r=="function"?r:EW[r],n=La(t),i=yi(t).channels;return e.map(l=>{let s=n(l);return s.alpha===void 0&&(s.alpha=1),s}).reduce((l,s)=>{if(l===void 0)return s;let u=s.alpha+l.alpha*(1-s.alpha);return i.reduce((f,c)=>(c!=="alpha"&&(u===0?f[c]=0:(f[c]=s.alpha*(1-l.alpha)*s[c]+s.alpha*l.alpha*a(l[c],s[c])+(1-s.alpha)*l.alpha*l[c],f[c]=Math.max(0,Math.min(1,f[c]/u)))),f),{mode:t,alpha:u})})},qW=LW,PW=([e,r])=>e+Math.random()*(r-e),RW=e=>Object.keys(e).reduce((r,t)=>{let a=e[t];return r[t]=Array.isArray(a)?a:[a,a],r},{}),zW=(e="rgb",r={})=>{let t=yi(e),a=RW(r);return t.channels.reduce((n,i)=>((a.alpha||i!=="alpha")&&(n[i]=PW(a[i]||t.ranges[i])),n),{mode:e})},NW=zW,_v=(e,r="rgb",t=!1)=>{let a=r?yi(r).channels:null,n=r?La(r):Rl;return i=>{let o=n(i);if(!o)return;let l=(a||yi(o.mode).channels).reduce((u,f)=>{let c=e(o[f],f,o,r);return c!==void 0&&!isNaN(c)&&(u[f]=c),u},{mode:o.mode});if(!t)return l;let s=Rl(i);return s&&s.mode!==l.mode?La(s.mode)(l):l}},Xw=(e,r,t)=>r!=="alpha"?(e||0)*(t.alpha!==void 0?t.alpha:1):e,jw=(e,r,t)=>r!=="alpha"&&t.alpha!==0?(e||0)/(t.alpha!==void 0?t.alpha:1):e,W4=(e=1,r=0)=>(t,a)=>a!=="alpha"?t*e+r:t,BW=(e=1,r=1,t=0)=>(a,n)=>n!=="alpha"?e*Math.pow(a,r)+t:a,IW=e=>{e[0]===void 0&&(e[0]=0),e[e.length-1]===void 0&&(e[e.length-1]=1);let r=1,t,a,n,i;for(;rr=>e<=0?1:e>=1?0:Math.pow(r,Math.log(.5)/Math.log(e)),Ww=OW,Bd=e=>typeof e=="function",qf=e=>e&&typeof e=="object",Mx=e=>typeof e=="number",Zw=(e,r="rgb",t,a)=>{let n=yi(r),i=La(r),o=[],l=[],s={};e.forEach(h=>{Array.isArray(h)?(o.push(i(h[0])),l.push(h[1])):Mx(h)||Bd(h)?s[l.length]=h:(o.push(i(h)),l.push(void 0))}),HW(l);let u=n.channels.reduce((h,d)=>{let m;return qf(t)&&qf(t[d])&&t[d].fixup?m=t[d].fixup:qf(n.interpolate[d])&&n.interpolate[d].fixup?m=n.interpolate[d].fixup:m=p=>p,h[d]=m(o.map(p=>p[d])),h},{});if(a){let h=o.map((d,m)=>n.channels.reduce((p,y)=>(p[y]=u[y][m],p),{mode:r}));u=n.channels.reduce((d,m)=>(d[m]=h.map(p=>{let y=a(p[m],m,p,r);return isNaN(y)?void 0:y}),d),{})}let f=n.channels.reduce((h,d)=>{let m;return Bd(t)?m=t:qf(t)&&Bd(t[d])?m=t[d]:qf(t)&&qf(t[d])&&t[d].use?m=t[d].use:Bd(n.interpolate[d])?m=n.interpolate[d]:qf(n.interpolate[d])&&(m=n.interpolate[d].use),h[d]=m(u[d]),h},{}),c=o.length-1;return h=>{if(h=Math.min(Math.max(0,h),1),h<=l[0])return o[0];if(h>l[c])return o[c];let d=0;for(;l[d]{let M=f[_](C);return M!==void 0&&(x[_]=M),x},{mode:r})}},UW=(e,r="rgb",t)=>Zw(e,r,t),$w=(e,r)=>(t,a="rgb",n)=>{let i=r?_v(r,a):void 0,o=Zw(t,a,n,e);return i?l=>i(o(l)):o},GW=$w(Xw,jw),Id=(e,r)=>(e+r)%r,Jw=(e,r,t,a,n)=>{let i=n*n,o=i*n;return((1-3*n+3*i-o)*e+(4-6*i+3*o)*r+(1+3*n+3*i-3*o)*t+o*a)/6},Kw=e=>r=>{let t=e.length-1,a=r>=1?t-1:Math.max(0,Math.floor(r*t));return Jw(a>0?e[a-1]:2*e[a]-e[a+1],e[a],e[a+1],ar=>{let t=e.length-1,a=Math.floor(r*t);return Jw(e[Id(a-1,e.length)],e[Id(a,e.length)],e[Id(a+1,e.length)],e[Id(a+2,e.length)],(r-a/t)*t)},eA=e=>{let r,t=e.length-1,a=new Array(t),n=new Array(t),i=new Array(t);for(a[1]=1/4,n[1]=(6*e[1]-e[0])/4,r=2;r0&&(i[t-1]=n[t-1]),r=t-2;r>0;--r)i[r]=n[r]-a[r]*i[r+1];return i},YW=e=>Kw(eA(e)),VW=e=>Qw(eA(e)),g1=Math.sign,A4=Math.min,mo=Math.abs,Z4=e=>{let r=e.length-1,t=[],a=[],n=[];for(let i=0;i0?.5*(e[i+1]-e[i-1])*r:void 0),n.push(i>0?(g1(t[i-1])+g1(t[i]))*A4(mo(t[i-1]),mo(t[i]),.5*mo(a[i])):void 0);return[t,a,n]},$4=(e,r,t)=>{let a=e.length-1,n=a*a;return i=>{let o;i>=1?o=a-1:o=Math.max(0,Math.floor(i*a));let l=i-o/a,s=l*l,u=s*l;return(r[o]+r[o+1]-2*t[o])*n*u+(3*t[o]-2*r[o]-r[o+1])*a*s+r[o]*l+e[o]}},XW=e=>{if(e.length<3)return nt(e);let r=e.length-1,[t,,a]=Z4(e);return a[0]=t[0],a[r]=t[r-1],$4(e,a,t)},jW=e=>{if(e.length<3)return nt(e);let r=e.length-1,[t,a,n]=Z4(e);return a[0]=(e[1]*2-e[0]*1.5-e[2]*.5)*r,a[r]=(e[r]*1.5-e[r-1]*2+e[r-2]*.5)*r,n[0]=a[0]*t[0]<=0?0:mo(a[0])>2*mo(t[0])?2*t[0]:a[0],n[r]=a[r]*t[r-1]<=0?0:mo(a[r])>2*mo(t[r-1])?2*t[r-1]:a[r],$4(e,n,t)},WW=e=>{let r=e.length-1,[t,a,n]=Z4(e);a[0]=.5*(e[1]-e[r])*r,a[r]=.5*(e[0]-e[r-1])*r;let i=(e[0]-e[r])*r,o=i;return n[0]=(g1(i)+g1(t[0]))*A4(mo(i),mo(t[0]),.5*mo(a[0])),n[r]=(g1(t[r-1])+g1(o))*A4(mo(t[r-1]),mo(o),.5*mo(a[r])),$4(e,n,t)},ZW=(e=1)=>e===1?r=>r:r=>Math.pow(r,e),rA=ZW,$W=(e=2,r=1)=>{let t=rA(r);if(e<2)return e<1?[]:[t(.5)];let a=[];for(let n=0;n{let r={mode:e.mode,r:Math.max(0,Math.min(e.r!==void 0?e.r:0,1)),g:Math.max(0,Math.min(e.g!==void 0?e.g:0,1)),b:Math.max(0,Math.min(e.b!==void 0?e.b:0,1))};return e.alpha!==void 0&&(r.alpha=e.alpha),r},nA=e=>aA(tA(e)),iA=e=>e!==void 0&&(e.r===void 0||e.r>=0&&e.r<=1)&&(e.g===void 0||e.g>=0&&e.g<=1)&&(e.b===void 0||e.b>=0&&e.b<=1);function J4(e){return iA(tA(e))}function ip(e="rgb"){let{gamut:r}=yi(e);if(!r)return a=>!0;let t=La(typeof r=="string"?r:e);return a=>iA(t(a))}function KW(e){return e=Rl(e),e===void 0||J4(e)?e:La(e.mode)(nA(e))}function K4(e="rgb"){let{gamut:r}=yi(e);if(!r)return i=>Rl(i);let t=typeof r=="string"?r:e,a=La(t),n=ip(t);return i=>{let o=Rl(i);if(!o)return;let l=a(o);if(n(l))return o;let s=aA(l);return o.mode===s.mode?s:La(o.mode)(s)}}function QW(e,r="lch",t="rgb"){e=Rl(e);let a=t==="rgb"?J4:ip(t),n=t==="rgb"?nA:K4(t);if(e===void 0||a(e))return e;let i=La(e.mode);e=La(r)(e);let o=Ba(da({},e),{c:0});if(!a(o))return i(n(o));let l=0,s=e.c!==void 0?e.c:0,u=yi(r).ranges.c,f=(u[1]-u[0])/Math.pow(2,13),c=o.c;for(;s-l>f;)o.c=l+(s-l)*.5,a(o)?(c=o.c,l=o.c):s=o.c;return i(a(o)?o:Ba(da({},o),{c}))}function eZ(e="rgb",r="oklch",t=x1("oklch"),a=.02){let n=La(e),i=yi(e);if(!i.gamut)return f=>n(f);let o=ip(e),l=K4(e),s=La(r),{ranges:u}=yi(r);if(!u.l||!u.c)throw new Error("LCH-like space expected");return f=>{if(f=Rl(f),f===void 0)return;let c=da({},s(f));if(c.l===void 0&&(c.l=0),c.c===void 0&&(c.c=0),c.l>=u.l[1]){let y=Ba(da({},i.white),{mode:e});return f.alpha!==void 0&&(y.alpha=f.alpha),y}if(c.l<=u.l[0]){let y=Ba(da({},i.black),{mode:e});return f.alpha!==void 0&&(y.alpha=f.alpha),y}if(o(c))return n(c);let h=0,d=c.c,m=(u.c[1]-u.c[0])/4e3,p=l(c);for(;d-h>m;)c.c=(h+d)*.5,p=l(c),o(c)||t&&a>0&&t(c,p)<=a?h=c.c:d=c.c;return n(o(c)?c:p)}}var rZ=(e,r=x1(),t=a=>a)=>{let a=e.map((n,i)=>({color:t(n),i}));return(n,i=1,o=1/0)=>(isFinite(i)&&(i=Math.max(1,Math.min(i,a.length-1))),a.forEach(l=>{l.d=r(n,l.color)}),a.sort((l,s)=>l.d-s.d).slice(0,i).filter(l=>l.de[l.i]))},tZ=rZ,Q4=e=>Math.max(e,0),e5=e=>Math.max(Math.min(e,1),0),aZ=(e,r,t)=>e===void 0||r===void 0?void 0:e+t*(r-e),nZ=e=>{let r=1-e5(e);return[.393+.607*r,.769-.769*r,.189-.189*r,0,.349-.349*r,.686+.314*r,.168-.168*r,0,.272-.272*r,.534-.534*r,.131+.869*r,0,0,0,0,1]},iZ=e=>{let r=Q4(e);return[.213+.787*r,.715-.715*r,.072-.072*r,0,.213-.213*r,.715+.285*r,.072-.072*r,0,.213-.213*r,.715-.715*r,.072+.928*r,0,0,0,0,1]},oZ=e=>{let r=1-e5(e);return[.2126+.7874*r,.7152-.7152*r,.0722-.0722*r,0,.2126-.2126*r,.7152+.2848*r,.0722-.0722*r,0,.2126-.2126*r,.7152-.7152*r,.0722+.9278*r,0,0,0,0,1]},lZ=e=>{let r=Math.PI*e/180,t=Math.cos(r),a=Math.sin(r);return[.213+t*.787-a*.213,.715-t*.715-a*.715,.072-t*.072+a*.928,0,.213-t*.213+a*.143,.715+t*.285+a*.14,.072-t*.072-a*.283,0,.213-t*.213-a*.787,.715-t*.715+a*.715,.072+t*.928+a*.072,0,0,0,0,1]},op=(e,r,t=!1)=>{let a=La(r),n=yi(r).channels;return i=>{let o=a(i);if(!o)return;let l={mode:r},s,u=n.length;for(let c=0;c{let t=Q4(e);return _v(W4(t),r,!0)},uZ=(e=1,r="rgb")=>{let t=Q4(e);return _v(W4(t,(1-t)/2),r,!0)},fZ=(e=1,r="rgb")=>op(nZ(e),r,!0),cZ=(e=1,r="rgb")=>op(iZ(e),r,!0),vZ=(e=1,r="rgb")=>op(oZ(e),r,!0),hZ=(e=1,r="rgb")=>{let t=e5(e);return _v((a,n)=>n==="alpha"?a:aZ(t,1-t,a),r,!0)},dZ=(e=0,r="rgb")=>op(lZ(e),r,!0),pZ=La("rgb"),mZ=[[1,0,-0,0,1,0,-0,-0,1],[.856167,.182038,-.038205,.029342,.955115,.015544,-.00288,-.001563,1.004443],[.734766,.334872,-.069637,.05184,.919198,.028963,-.004928,-.004209,1.009137],[.630323,.465641,-.095964,.069181,.890046,.040773,-.006308,-.007724,1.014032],[.539009,.579343,-.118352,.082546,.866121,.051332,-.007136,-.011959,1.019095],[.458064,.679578,-.137642,.092785,.846313,.060902,-.007494,-.016807,1.024301],[.38545,.769005,-.154455,.100526,.829802,.069673,-.007442,-.02219,1.029632],[.319627,.849633,-.169261,.106241,.815969,.07779,-.007025,-.028051,1.035076],[.259411,.923008,-.18242,.110296,.80434,.085364,-.006276,-.034346,1.040622],[.203876,.990338,-.194214,.112975,.794542,.092483,-.005222,-.041043,1.046265],[.152286,1.052583,-.204868,.114503,.786281,.099216,-.003882,-.048116,1.051998]],gZ=[[1,0,-0,0,1,0,-0,-0,1],[.866435,.177704,-.044139,.049567,.939063,.01137,-.003453,.007233,.99622],[.760729,.319078,-.079807,.090568,.889315,.020117,-.006027,.013325,.992702],[.675425,.43385,-.109275,.125303,.847755,.026942,-.00795,.018572,.989378],[.605511,.52856,-.134071,.155318,.812366,.032316,-.009376,.023176,.9862],[.547494,.607765,-.155259,.181692,.781742,.036566,-.01041,.027275,.983136],[.498864,.674741,-.173604,.205199,.754872,.039929,-.011131,.030969,.980162],[.457771,.731899,-.18967,.226409,.731012,.042579,-.011595,.034333,.977261],[.422823,.781057,-.203881,.245752,.709602,.044646,-.011843,.037423,.974421],[.392952,.82361,-.216562,.263559,.69021,.046232,-.01191,.040281,.97163],[.367322,.860646,-.227968,.280085,.672501,.047413,-.01182,.04294,.968881]],yZ=[[1,0,-0,0,1,0,-0,-0,1],[.92667,.092514,-.019184,.021191,.964503,.014306,.008437,.054813,.93675],[.89572,.13333,-.02905,.029997,.9454,.024603,.013027,.104707,.882266],[.905871,.127791,-.033662,.026856,.941251,.031893,.01341,.148296,.838294],[.948035,.08949,-.037526,.014364,.946792,.038844,.010853,.193991,.795156],[1.017277,.027029,-.044306,-.006113,.958479,.047634,.006379,.248708,.744913],[1.104996,-.046633,-.058363,-.032137,.971635,.060503,.001336,.317922,.680742],[1.193214,-.109812,-.083402,-.058496,.97941,.079086,-.002346,.403492,.598854],[1.257728,-.139648,-.118081,-.078003,.975409,.102594,-.003316,.501214,.502102],[1.278864,-.125333,-.153531,-.084748,.957674,.127074,-989e-6,.601151,.399838],[1.255528,-.076749,-.178779,-.078411,.930809,.147602,.004733,.691367,.3039]],r5=(e,r)=>{let t=Math.max(0,Math.min(1,r)),a=Math.round(t/.1),n=Math.round(t%.1),i=e[a];if(n>0&&aPf(i[s],o[s],n))}return o=>{let l=Rl(o);if(l===void 0)return;let{r:s,g:u,b:f}=pZ(l),c={mode:"rgb",r:i[0]*s+i[1]*u+i[2]*f,g:i[3]*s+i[4]*u+i[5]*f,b:i[6]*s+i[7]*u+i[8]*f};return l.alpha!==void 0&&(c.alpha=l.alpha),La(l.mode)(c)}},bZ=(e=1)=>r5(mZ,e),_Z=(e=1)=>r5(gZ,e),xZ=(e=1)=>r5(yZ,e),wZ=e=>e*e*(3-2*e),AZ=e=>.5-Math.sin(Math.asin(1-2*e)/3),MZ=e=>e*e*e*(e*(e*6-15)+10),TZ=MZ,kZ=e=>(1-Math.cos(e*Math.PI))/2,CZ=kZ;function M4(e){let r=La("lrgb")(e);return .2126*r.r+.7152*r.g+.0722*r.b}function SZ(e,r){let t=M4(e),a=M4(r);return(Math.max(t,a)+.05)/(Math.min(t,a)+.05)}var DZ=Aa(Bx),FZ=Aa(Gx),EZ=Aa(Wx),LZ=Aa(Zx),qZ=Aa(Kx),PZ=Aa(F4),RZ=Aa(q4),zZ=Aa(ow),NZ=Aa(uw),BZ=Aa(fw),IZ=Aa(cw),HZ=Aa(ap),OZ=Aa(hw),UZ=Aa(np),GZ=Aa(pw),YZ=Aa(yw),VZ=Aa(bw),XZ=Aa(_w),jZ=Aa(ww),WZ=Aa(Aw),ZZ=Aa(Tw),$Z=Aa(Cw),JZ=Aa(Sw),KZ=Aa(Dw),QZ=Aa(Fw),e$=Aa(Nf),r$=Aa(Pw),t$=Aa(Rw),a$=Aa(Bw),n$=Aa(Ow)});var t5={};Ha(t5,{default:()=>o$});var i$,o$,a5=Ia(()=>{"use strict";i$={format:{valType:"enumerated",values:["png","jpeg","webp","svg","full-json"],dflt:"png",description:"Sets the format of exported image."},width:{valType:"number",min:1,description:["Sets the exported image width.","Defaults to the value found in `layout.width`","If set to *null*, the exported image width will match the current graph width."].join(" ")},height:{valType:"number",min:1,description:["Sets the exported image height.","Defaults to the value found in `layout.height`","If set to *null*, the exported image height will match the current graph height."].join(" ")},scale:{valType:"number",min:0,dflt:1,description:["Sets a scaling for the generated image.","If set, all features of a graphs (e.g. text, line width)","are scaled, unlike simply setting","a bigger *width* and *height*."].join(" ")},setBackground:{valType:"any",dflt:!1,description:["Sets the image background mode.","By default, the image background is determined by `layout.paper_bgcolor`,","the *transparent* mode.","One might consider setting `setBackground` to *opaque*","when exporting a *jpeg* image as JPEGs do not support opacity."].join(" ")},imageDataOnly:{valType:"boolean",dflt:!1,description:["Determines whether or not the return value is prefixed by","the image format's corresponding 'data:image;' spec."].join(" ")}},o$=i$});var d0=le((w4e,vA)=>{"use strict";var{format:l$,width:s$,height:u$,scale:f$}=(a5(),Tr(t5)).default,sA=f$,{dflt:x4e}=sA,c$=E_(sA,["dflt"]),uA={staticPlot:{valType:"boolean",dflt:!1},typesetMath:{valType:"boolean",dflt:!0},plotlyServerURL:{valType:"string",dflt:"https://cloud.plotly.com/newchart"},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","map"],extras:[!0,!1],dflt:"gl3d+geo+map"},doubleClick:{valType:"enumerated",values:[!1,"reset","autosize","reset+autosize"],dflt:"reset+autosize"},doubleClickDelay:{valType:"number",dflt:500,min:0},showAxisDragHandles:{valType:"boolean",dflt:!0},showAxisRangeEntryBoxes:{valType:"boolean",dflt:!0},showTips:{valType:"boolean",dflt:!0},displayNotifier:{valType:"boolean",dflt:!0},displayModeBar:{valType:"enumerated",values:["hover",!0,!1],dflt:"hover"},showSendToCloud:{valType:"boolean",dflt:!0},modeBarButtonsToRemove:{valType:"any",dflt:[]},modeBarButtonsToAdd:{valType:"any",dflt:[]},modeBarButtons:{valType:"any",dflt:!1},toImageButtonOptions:{format:l$,filename:{valType:"string"},width:s$,height:u$,scale:c$},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/un/"},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},locale:{valType:"string",dflt:"en-US"},locales:{valType:"any",dflt:{}}},fA={};function cA(e,r){for(let t in e){let a=e[t];typeof a!="object"||a===null||(a.valType?"dflt"in a&&(r[t]=a.dflt):(r[t]||(r[t]={}),cA(a,r[t])))}}cA(uA,fA);vA.exports={configAttributes:uA,dfltConfig:fA}});var i5=le((M4e,hA)=>{"use strict";var n5=Ft(),v$=Wt(),xv=[];hA.exports=function(e,r,t){var l;if(((l=t==null?void 0:t._context)==null?void 0:l.displayNotifier)===!1||xv.indexOf(e)!==-1)return;xv.push(e);var a=1e3;v$(r)?a=r:r==="long"&&(a=3e3);var n=n5.select("body").selectAll(".plotly-notifier").data([0]);n.enter().append("div").classed("plotly-notifier",!0);var i=n.selectAll(".notifier-note").data(xv);function o(s){s.duration(700).style("opacity",0).each("end",function(u){var f=xv.indexOf(u);f!==-1&&xv.splice(f,1),n5.select(this).remove()})}i.enter().append("div").classed("notifier-note",!0).style("opacity",0).each(function(s){var u=n5.select(this);u.append("button").classed("notifier-close",!0).html("×").on("click",function(){u.transition().call(o)});for(var f=u.append("p"),c=s.split(//g),h=0;h{"use strict";var T1=d0().dfltConfig,o5=i5(),l5=dA.exports={};l5.log=function(){var e;if(T1.logging>1){var r=["LOG:"];for(e=0;e1){var t=[];for(e=0;e"),"long")}};l5.warn=function(){var e;if(T1.logging>0){var r=["WARN:"];for(e=0;e0){var t=[];for(e=0;e"),"stick")}};l5.error=function(){var e;if(T1.logging>0){var r=["ERROR:"];for(e=0;e0){var t=[];for(e=0;e"),"stick")}}});var zl=le(Hf=>{"use strict";Hf.defaults=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"];Hf.defaultLine="#444";Hf.lightLine="#eee";Hf.background="#fff";Hf.borderLine="#BEC8D9";Hf.lightFraction=1e3/11});var qt=le((C4e,AA)=>{"use strict";var{converter:pA,formatHex:h$,formatRgb:d$,wcagContrast:p$,wcagLuminance:m$}=lA(),{isArrayOrTypedArray:mA}=$i(),{warn:g$}=Cu(),{background:Av,defaultLine:f5,defaults:y$,lightLine:b$}=zl(),gA=pA("rgb"),_$=pA("hsl"),yA=e=>{if(typeof e!="string")return;let r=e.trim().toLowerCase();if(!/^[0-9a-f]+$/.test(r))try{return gA(r)}catch(t){return}},bi=e=>e>0?e>1?1:e:0,x$={mode:"rgb",r:0,g:0,b:0,alpha:1},s5=e=>Math.round(e*255e6)/255e6,bA=e=>Ba(da({},e),{r:s5(e.r),g:s5(e.g),b:s5(e.b)}),go=e=>d$(bA(e)),w$=e=>h$(bA(e)),A$=e=>{var r,t,a,n;return typeof e=="string"?`"${e}"`:mA(e)?`${(t=(r=e.constructor)==null?void 0:r.name)!=null?t:"Array"}(${e.length})`:typeof e=="object"?(n=(a=e.constructor)==null?void 0:a.name)!=null?n:"Object":`${typeof e} ${e}`},Ja=(e,r)=>{var a;let t=yA(e);return t?((a=t.alpha)!=null||(t.alpha=1),t):(!r&&e!=null&&g$(`Invalid color specifier: ${A$(e)}. Defaulting to "#000"`),x$)},wv=e=>go(Ba(da({},Ja(e)),{alpha:1})),M$=e=>e?Ja(e).alpha:0,_A=e=>mA(e)&&e.length>2&&Number.isFinite(e[0])&&Number.isFinite(e[1])&&Number.isFinite(e[2]),T$=e=>{let[r,t,a,n]=e,i=Math.max(r,t,a)>1?1/255:1,o=n!=null?n:1;return{mode:"rgb",r:r*i,g:t*i,b:a*i,alpha:o>1?o/255:o}},k$=(e,r)=>{let t=_A(e)?T$(e):Ja(e,!0),a=[bi(t.r),bi(t.g),bi(t.b),bi(t.alpha)];return r==="uint8"||r==="uint8_clamped"?Uint8Array.from(a,n=>Math.round(n*255)):r==="float32"?Float32Array.from(a):r==="float64"?Float64Array.from(a):a},C$=(e,r)=>go(Ba(da({},Ja(e)),{alpha:bi(r)})),xA=(e,r)=>{let t=Ja(e),a=t.alpha;if(a===1)return go(t);let n=Ja(r||Av),i=n.alpha,o=(l,s)=>(i===1?s:1-i+s*i)*(1-a)+l*a;return go({mode:"rgb",r:o(t.r,n.r),g:o(t.g,n.g),b:o(t.b,n.b)})},S$=(e,r,t)=>{let a=Ja(e),n=Ja(r),i=(o,l)=>t*o+(1-t)*l;return go({mode:"rgb",r:i(a.r,n.r),g:i(a.g,n.g),b:i(a.b,n.b)})},u5=(e,r)=>{let t=Ja(e),a=_$(t)||{mode:"hsl",h:0,s:0,l:0};return go(gA(Ba(da({},a),{l:bi((a.l*100+r)/100),alpha:t.alpha})))},lp=(e,r)=>p$(Ja(e),Ja(r)),wA=e=>lp(e,Av)>lp(e,f5),D$=go(Ja(Av)),F$=go(Ja(f5)),E$=(e,r,t)=>(Ja(e).alpha!==1&&(e=xA(e,Av)),wA(e)?r?u5(e,r):D$:t?u5(e,-t):F$),L$=(e,r)=>{e.style({stroke:wv(r),"stroke-opacity":Ja(r).alpha})},q$=(e,r)=>{e.style({fill:wv(r),"fill-opacity":Ja(r).alpha})},P$=(e,r)=>!!(e&&r&&wv(e)===wv(r)),R$=e=>yA(e)!==void 0,z$=(e,r)=>{r=r===0?0:r||10;let t=Ja(e),a=r/100;return go(Ba(da({},t),{r:bi(t.r+a),g:bi(t.g+a),b:bi(t.b+a)}))},N$=(e,r,t)=>{let a=Ja(e),n=Ja(r),i=t/100,o=n.alpha-a.alpha,l=2*i-1,s=((l*o===-1?l:(l+o)/(1+l*o))+1)/2,u=1-s,f=(c,h)=>u*c+s*h;return go({mode:"rgb",r:f(a.r,n.r),g:f(a.g,n.g),b:f(a.b,n.b),alpha:a.alpha*(1-i)+n.alpha*i})},B$=(e,r=["#000","#fff"])=>{let t,a=-1/0;for(let n of r){let i=lp(e,n);i>a&&(a=i,t=go(Ja(n)))}return t},I$=e=>go(Ja(e)),H$=e=>w$(Ja(e)).toUpperCase(),O$=e=>{let r=Ja(e);return[bi(r.r)*255,bi(r.g)*255,bi(r.b)*255,bi(r.alpha)]},U$=([e,r,t,a])=>go({mode:"rgb",r:e/255,g:r/255,b:t/255,alpha:a}),G$=e=>{let r=Ja(e);return m$({mode:"rgb",r:bi(r.r),g:bi(r.g),b:bi(r.b)})};AA.exports={addOpacity:C$,adjustLightness:u5,background:Av,brighten:z$,combine:xA,contrast:E$,defaultLine:f5,defaults:y$,equals:P$,fill:q$,hexString:H$,interpolate:S$,isChannelArray:_A,isDark:wA,isValid:R$,lightLine:b$,luminosity:G$,mix:N$,mostReadable:B$,normalize:k$,opacity:M$,parse:Ja,rgb:wv,rgbaArray:O$,rgbaArrayToString:U$,rgbaString:I$,stroke:L$,wcagContrast:lp}});var Of=le((D4e,kA)=>{"use strict";var Y$=qt(),sp={Greys:[[0,"rgb(0,0,0)"],[1,"rgb(255,255,255)"]],YlGnBu:[[0,"rgb(8,29,88)"],[.125,"rgb(37,52,148)"],[.25,"rgb(34,94,168)"],[.375,"rgb(29,145,192)"],[.5,"rgb(65,182,196)"],[.625,"rgb(127,205,187)"],[.75,"rgb(199,233,180)"],[.875,"rgb(237,248,217)"],[1,"rgb(255,255,217)"]],Greens:[[0,"rgb(0,68,27)"],[.125,"rgb(0,109,44)"],[.25,"rgb(35,139,69)"],[.375,"rgb(65,171,93)"],[.5,"rgb(116,196,118)"],[.625,"rgb(161,217,155)"],[.75,"rgb(199,233,192)"],[.875,"rgb(229,245,224)"],[1,"rgb(247,252,245)"]],YlOrRd:[[0,"rgb(128,0,38)"],[.125,"rgb(189,0,38)"],[.25,"rgb(227,26,28)"],[.375,"rgb(252,78,42)"],[.5,"rgb(253,141,60)"],[.625,"rgb(254,178,76)"],[.75,"rgb(254,217,118)"],[.875,"rgb(255,237,160)"],[1,"rgb(255,255,204)"]],Bluered:[[0,"rgb(0,0,255)"],[1,"rgb(255,0,0)"]],RdBu:[[0,"rgb(5,10,172)"],[.35,"rgb(106,137,247)"],[.5,"rgb(190,190,190)"],[.6,"rgb(220,170,132)"],[.7,"rgb(230,145,90)"],[1,"rgb(178,10,28)"]],Reds:[[0,"rgb(220,220,220)"],[.2,"rgb(245,195,157)"],[.4,"rgb(245,160,105)"],[1,"rgb(178,10,28)"]],Blues:[[0,"rgb(5,10,172)"],[.35,"rgb(40,60,190)"],[.5,"rgb(70,100,245)"],[.6,"rgb(90,120,245)"],[.7,"rgb(106,137,247)"],[1,"rgb(220,220,220)"]],Picnic:[[0,"rgb(0,0,255)"],[.1,"rgb(51,153,255)"],[.2,"rgb(102,204,255)"],[.3,"rgb(153,204,255)"],[.4,"rgb(204,204,255)"],[.5,"rgb(255,255,255)"],[.6,"rgb(255,204,255)"],[.7,"rgb(255,153,255)"],[.8,"rgb(255,102,204)"],[.9,"rgb(255,102,102)"],[1,"rgb(255,0,0)"]],Rainbow:[[0,"rgb(150,0,90)"],[.125,"rgb(0,0,200)"],[.25,"rgb(0,25,255)"],[.375,"rgb(0,152,255)"],[.5,"rgb(44,255,150)"],[.625,"rgb(151,255,0)"],[.75,"rgb(255,234,0)"],[.875,"rgb(255,111,0)"],[1,"rgb(255,0,0)"]],Portland:[[0,"rgb(12,51,131)"],[.25,"rgb(10,136,186)"],[.5,"rgb(242,211,56)"],[.75,"rgb(242,143,56)"],[1,"rgb(217,30,30)"]],Jet:[[0,"rgb(0,0,131)"],[.125,"rgb(0,60,170)"],[.375,"rgb(5,255,255)"],[.625,"rgb(255,255,0)"],[.875,"rgb(250,0,0)"],[1,"rgb(128,0,0)"]],Hot:[[0,"rgb(0,0,0)"],[.3,"rgb(230,0,0)"],[.6,"rgb(255,210,0)"],[1,"rgb(255,255,255)"]],Blackbody:[[0,"rgb(0,0,0)"],[.2,"rgb(230,0,0)"],[.4,"rgb(230,210,0)"],[.7,"rgb(255,255,255)"],[1,"rgb(160,200,255)"]],Earth:[[0,"rgb(0,0,130)"],[.1,"rgb(0,180,180)"],[.2,"rgb(40,210,40)"],[.4,"rgb(230,230,50)"],[.6,"rgb(120,70,20)"],[1,"rgb(255,255,255)"]],Electric:[[0,"rgb(0,0,0)"],[.15,"rgb(30,0,100)"],[.4,"rgb(120,0,100)"],[.6,"rgb(160,90,0)"],[.8,"rgb(230,200,0)"],[1,"rgb(255,250,220)"]],Viridis:[[0,"#440154"],[.06274509803921569,"#48186a"],[.12549019607843137,"#472d7b"],[.18823529411764706,"#424086"],[.25098039215686274,"#3b528b"],[.3137254901960784,"#33638d"],[.3764705882352941,"#2c728e"],[.4392156862745098,"#26828e"],[.5019607843137255,"#21918c"],[.5647058823529412,"#1fa088"],[.6274509803921569,"#28ae80"],[.6901960784313725,"#3fbc73"],[.7529411764705882,"#5ec962"],[.8156862745098039,"#84d44b"],[.8784313725490196,"#addc30"],[.9411764705882353,"#d8e219"],[1,"#fde725"]],Cividis:[[0,"rgb(0,32,76)"],[.058824,"rgb(0,42,102)"],[.117647,"rgb(0,52,110)"],[.176471,"rgb(39,63,108)"],[.235294,"rgb(60,74,107)"],[.294118,"rgb(76,85,107)"],[.352941,"rgb(91,95,109)"],[.411765,"rgb(104,106,112)"],[.470588,"rgb(117,117,117)"],[.529412,"rgb(131,129,120)"],[.588235,"rgb(146,140,120)"],[.647059,"rgb(161,152,118)"],[.705882,"rgb(176,165,114)"],[.764706,"rgb(192,177,109)"],[.823529,"rgb(209,191,102)"],[.882353,"rgb(225,204,92)"],[.941176,"rgb(243,219,79)"],[1,"rgb(255,233,69)"]]},MA=sp.RdBu;function V$(e,r){if(r||(r=MA),!e)return r;function t(){try{e=sp[e]||JSON.parse(e)}catch(a){e=r}}return typeof e=="string"&&(t(),typeof e=="string"&&t()),TA(e)?e:r}function TA(e){var r=0;if(!Array.isArray(e)||e.length<2||!e[0]||!e[e.length-1]||+e[0][0]!=0||+e[e.length-1][0]!=1)return!1;for(var t=0;tZ$,HIDE_PLACEHOLDER:()=>W$,SHOW_PLACEHOLDER:()=>j$});var j$,W$,Z$,fp=Ia(()=>{"use strict";j$=100,W$=1e3,Z$=.2});var Mv={};Ha(Mv,{counter:()=>Uf});function Uf(e,r="",t,a){let n=r+(t?"":"$"),i=a===!1?"":"^";return e==="xy"?new RegExp(i+"x"+c5+"y"+c5+n):new RegExp(i+e+c5+n)}var c5,k1=Ia(()=>{"use strict";c5="([2-9]|[1-9][0-9]+)?"});var DA=le(Ki=>{"use strict";var v5=Wt(),CA=Tn().extendFlat,$$=Go(),J$=Of(),h5=qt(),K$=(fp(),Tr(up)).DESELECTDIM,C1=ev(),SA=(k1(),Tr(Mv)).counter,Q$=(p1(),Tr(d1)).modHalf,Nl=$i().isArrayOrTypedArray,p0=$i().isTypedArraySpec,m0=$i().decodeTypedArraySpec;Ki.valObjectMeta={data_array:{coerceFunction:function(e,r,t){r.set(Nl(e)?e:p0(e)?m0(e):t)}},enumerated:{coerceFunction:function(e,r,t,a){a.coerceNumber&&(e=+e),a.values.indexOf(e)===-1?r.set(t):r.set(e)},validateFunction:function(e,r){r.coerceNumber&&(e=+e);for(var t=r.values,a=0;ai===!0||i===!1;n(e)||a.arrayOk&&Array.isArray(e)&&e.length>0&&e.every(n)?r.set(e):r.set(t)}},number:{coerceFunction:function(e,r,t,a){p0(e)&&(e=m0(e)),!v5(e)||a.min!==void 0&&ea.max?r.set(t):r.set(+e)}},integer:{coerceFunction:function(e,r,t,a){if((a.extras||[]).indexOf(e)!==-1){r.set(e);return}p0(e)&&(e=m0(e)),e%1||!v5(e)||a.min!==void 0&&ea.max?r.set(t):r.set(+e)}},string:{coerceFunction:function(e,r,t,a){if(typeof e!="string"){var n=typeof e=="number";a.strict===!0||!n?r.set(t):r.set(String(e))}else a.noBlank&&!e?r.set(t):r.set(e)}},color:{coerceFunction:function(e,r,t){p0(e)&&(e=m0(e)),h5.isValid(e)?r.set(e):r.set(t)}},colorlist:{coerceFunction:function(e,r,t){!Array.isArray(e)||!e.length?r.set(t):e.every(a=>h5.isValid(a))?r.set(e):r.set(t)}},colorscale:{coerceFunction:function(e,r,t){r.set(J$.get(e,t))}},angle:{coerceFunction:function(e,r,t){p0(e)&&(e=m0(e)),e==="auto"?r.set("auto"):v5(e)?r.set(Q$(+e,360)):r.set(t)}},subplotid:{coerceFunction:function(e,r,t,a){var n=a.regex||SA(t);let i=o=>typeof o=="string"&&n.test(o);i(e)||a.arrayOk&&Nl(e)&&e.length>0&&e.every(i)?r.set(e):r.set(t)},validateFunction:function(e,r){var t=r.dflt;return e===t?!0:typeof e!="string"?!1:!!SA(t).test(e)}},flaglist:{coerceFunction:function(e,r,t,a){if((a.extras||[]).indexOf(e)!==-1){r.set(e);return}if(typeof e!="string"){r.set(t);return}for(var n=e.split("+"),i=0;i{"use strict";FA.exports=function(){}});var d5=le((L4e,EA)=>{"use strict";EA.exports=function(r,t){if(t instanceof RegExp){for(var a=t.toString(),n=0;n{LA.exports=eJ;function eJ(){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}});var RA=le((P4e,PA)=>{PA.exports=rJ;function rJ(e){var r=new Float32Array(16);return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4],r[5]=e[5],r[6]=e[6],r[7]=e[7],r[8]=e[8],r[9]=e[9],r[10]=e[10],r[11]=e[11],r[12]=e[12],r[13]=e[13],r[14]=e[14],r[15]=e[15],r}});var NA=le((R4e,zA)=>{zA.exports=tJ;function tJ(e,r){return e[0]=r[0],e[1]=r[1],e[2]=r[2],e[3]=r[3],e[4]=r[4],e[5]=r[5],e[6]=r[6],e[7]=r[7],e[8]=r[8],e[9]=r[9],e[10]=r[10],e[11]=r[11],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15],e}});var p5=le((z4e,BA)=>{BA.exports=aJ;function aJ(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}});var HA=le((N4e,IA)=>{IA.exports=nJ;function nJ(e,r){if(e===r){var t=r[1],a=r[2],n=r[3],i=r[6],o=r[7],l=r[11];e[1]=r[4],e[2]=r[8],e[3]=r[12],e[4]=t,e[6]=r[9],e[7]=r[13],e[8]=a,e[9]=i,e[11]=r[14],e[12]=n,e[13]=o,e[14]=l}else e[0]=r[0],e[1]=r[4],e[2]=r[8],e[3]=r[12],e[4]=r[1],e[5]=r[5],e[6]=r[9],e[7]=r[13],e[8]=r[2],e[9]=r[6],e[10]=r[10],e[11]=r[14],e[12]=r[3],e[13]=r[7],e[14]=r[11],e[15]=r[15];return e}});var UA=le((B4e,OA)=>{OA.exports=iJ;function iJ(e,r){var t=r[0],a=r[1],n=r[2],i=r[3],o=r[4],l=r[5],s=r[6],u=r[7],f=r[8],c=r[9],h=r[10],d=r[11],m=r[12],p=r[13],y=r[14],b=r[15],C=t*l-a*o,x=t*s-n*o,_=t*u-i*o,M=a*s-n*l,T=a*u-i*l,A=n*u-i*s,E=f*p-c*m,P=f*y-h*m,z=f*b-d*m,B=c*y-h*p,X=c*b-d*p,I=h*b-d*y,V=C*I-x*X+_*B+M*z-T*P+A*E;return V?(V=1/V,e[0]=(l*I-s*X+u*B)*V,e[1]=(n*X-a*I-i*B)*V,e[2]=(p*A-y*T+b*M)*V,e[3]=(h*T-c*A-d*M)*V,e[4]=(s*z-o*I-u*P)*V,e[5]=(t*I-n*z+i*P)*V,e[6]=(y*_-m*A-b*x)*V,e[7]=(f*A-h*_+d*x)*V,e[8]=(o*X-l*z+u*E)*V,e[9]=(a*z-t*X-i*E)*V,e[10]=(m*T-p*_+b*C)*V,e[11]=(c*_-f*T-d*C)*V,e[12]=(l*P-o*B-s*E)*V,e[13]=(t*B-a*P+n*E)*V,e[14]=(p*x-m*M-y*C)*V,e[15]=(f*M-c*x+h*C)*V,e):null}});var YA=le((I4e,GA)=>{GA.exports=oJ;function oJ(e,r){var t=r[0],a=r[1],n=r[2],i=r[3],o=r[4],l=r[5],s=r[6],u=r[7],f=r[8],c=r[9],h=r[10],d=r[11],m=r[12],p=r[13],y=r[14],b=r[15];return e[0]=l*(h*b-d*y)-c*(s*b-u*y)+p*(s*d-u*h),e[1]=-(a*(h*b-d*y)-c*(n*b-i*y)+p*(n*d-i*h)),e[2]=a*(s*b-u*y)-l*(n*b-i*y)+p*(n*u-i*s),e[3]=-(a*(s*d-u*h)-l*(n*d-i*h)+c*(n*u-i*s)),e[4]=-(o*(h*b-d*y)-f*(s*b-u*y)+m*(s*d-u*h)),e[5]=t*(h*b-d*y)-f*(n*b-i*y)+m*(n*d-i*h),e[6]=-(t*(s*b-u*y)-o*(n*b-i*y)+m*(n*u-i*s)),e[7]=t*(s*d-u*h)-o*(n*d-i*h)+f*(n*u-i*s),e[8]=o*(c*b-d*p)-f*(l*b-u*p)+m*(l*d-u*c),e[9]=-(t*(c*b-d*p)-f*(a*b-i*p)+m*(a*d-i*c)),e[10]=t*(l*b-u*p)-o*(a*b-i*p)+m*(a*u-i*l),e[11]=-(t*(l*d-u*c)-o*(a*d-i*c)+f*(a*u-i*l)),e[12]=-(o*(c*y-h*p)-f*(l*y-s*p)+m*(l*h-s*c)),e[13]=t*(c*y-h*p)-f*(a*y-n*p)+m*(a*h-n*c),e[14]=-(t*(l*y-s*p)-o*(a*y-n*p)+m*(a*s-n*l)),e[15]=t*(l*h-s*c)-o*(a*h-n*c)+f*(a*s-n*l),e}});var XA=le((H4e,VA)=>{VA.exports=lJ;function lJ(e){var r=e[0],t=e[1],a=e[2],n=e[3],i=e[4],o=e[5],l=e[6],s=e[7],u=e[8],f=e[9],c=e[10],h=e[11],d=e[12],m=e[13],p=e[14],y=e[15],b=r*o-t*i,C=r*l-a*i,x=r*s-n*i,_=t*l-a*o,M=t*s-n*o,T=a*s-n*l,A=u*m-f*d,E=u*p-c*d,P=u*y-h*d,z=f*p-c*m,B=f*y-h*m,X=c*y-h*p;return b*X-C*B+x*z+_*P-M*E+T*A}});var WA=le((O4e,jA)=>{jA.exports=sJ;function sJ(e,r,t){var a=r[0],n=r[1],i=r[2],o=r[3],l=r[4],s=r[5],u=r[6],f=r[7],c=r[8],h=r[9],d=r[10],m=r[11],p=r[12],y=r[13],b=r[14],C=r[15],x=t[0],_=t[1],M=t[2],T=t[3];return e[0]=x*a+_*l+M*c+T*p,e[1]=x*n+_*s+M*h+T*y,e[2]=x*i+_*u+M*d+T*b,e[3]=x*o+_*f+M*m+T*C,x=t[4],_=t[5],M=t[6],T=t[7],e[4]=x*a+_*l+M*c+T*p,e[5]=x*n+_*s+M*h+T*y,e[6]=x*i+_*u+M*d+T*b,e[7]=x*o+_*f+M*m+T*C,x=t[8],_=t[9],M=t[10],T=t[11],e[8]=x*a+_*l+M*c+T*p,e[9]=x*n+_*s+M*h+T*y,e[10]=x*i+_*u+M*d+T*b,e[11]=x*o+_*f+M*m+T*C,x=t[12],_=t[13],M=t[14],T=t[15],e[12]=x*a+_*l+M*c+T*p,e[13]=x*n+_*s+M*h+T*y,e[14]=x*i+_*u+M*d+T*b,e[15]=x*o+_*f+M*m+T*C,e}});var $A=le((U4e,ZA)=>{ZA.exports=uJ;function uJ(e,r,t){var a=t[0],n=t[1],i=t[2],o,l,s,u,f,c,h,d,m,p,y,b;return r===e?(e[12]=r[0]*a+r[4]*n+r[8]*i+r[12],e[13]=r[1]*a+r[5]*n+r[9]*i+r[13],e[14]=r[2]*a+r[6]*n+r[10]*i+r[14],e[15]=r[3]*a+r[7]*n+r[11]*i+r[15]):(o=r[0],l=r[1],s=r[2],u=r[3],f=r[4],c=r[5],h=r[6],d=r[7],m=r[8],p=r[9],y=r[10],b=r[11],e[0]=o,e[1]=l,e[2]=s,e[3]=u,e[4]=f,e[5]=c,e[6]=h,e[7]=d,e[8]=m,e[9]=p,e[10]=y,e[11]=b,e[12]=o*a+f*n+m*i+r[12],e[13]=l*a+c*n+p*i+r[13],e[14]=s*a+h*n+y*i+r[14],e[15]=u*a+d*n+b*i+r[15]),e}});var KA=le((G4e,JA)=>{JA.exports=fJ;function fJ(e,r,t){var a=t[0],n=t[1],i=t[2];return e[0]=r[0]*a,e[1]=r[1]*a,e[2]=r[2]*a,e[3]=r[3]*a,e[4]=r[4]*n,e[5]=r[5]*n,e[6]=r[6]*n,e[7]=r[7]*n,e[8]=r[8]*i,e[9]=r[9]*i,e[10]=r[10]*i,e[11]=r[11]*i,e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15],e}});var eM=le((Y4e,QA)=>{QA.exports=cJ;function cJ(e,r,t,a){var n=a[0],i=a[1],o=a[2],l=Math.sqrt(n*n+i*i+o*o),s,u,f,c,h,d,m,p,y,b,C,x,_,M,T,A,E,P,z,B,X,I,V,H;return Math.abs(l)<1e-6?null:(l=1/l,n*=l,i*=l,o*=l,s=Math.sin(t),u=Math.cos(t),f=1-u,c=r[0],h=r[1],d=r[2],m=r[3],p=r[4],y=r[5],b=r[6],C=r[7],x=r[8],_=r[9],M=r[10],T=r[11],A=n*n*f+u,E=i*n*f+o*s,P=o*n*f-i*s,z=n*i*f-o*s,B=i*i*f+u,X=o*i*f+n*s,I=n*o*f+i*s,V=i*o*f-n*s,H=o*o*f+u,e[0]=c*A+p*E+x*P,e[1]=h*A+y*E+_*P,e[2]=d*A+b*E+M*P,e[3]=m*A+C*E+T*P,e[4]=c*z+p*B+x*X,e[5]=h*z+y*B+_*X,e[6]=d*z+b*B+M*X,e[7]=m*z+C*B+T*X,e[8]=c*I+p*V+x*H,e[9]=h*I+y*V+_*H,e[10]=d*I+b*V+M*H,e[11]=m*I+C*V+T*H,r!==e&&(e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e)}});var tM=le((V4e,rM)=>{rM.exports=vJ;function vJ(e,r,t){var a=Math.sin(t),n=Math.cos(t),i=r[4],o=r[5],l=r[6],s=r[7],u=r[8],f=r[9],c=r[10],h=r[11];return r!==e&&(e[0]=r[0],e[1]=r[1],e[2]=r[2],e[3]=r[3],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e[4]=i*n+u*a,e[5]=o*n+f*a,e[6]=l*n+c*a,e[7]=s*n+h*a,e[8]=u*n-i*a,e[9]=f*n-o*a,e[10]=c*n-l*a,e[11]=h*n-s*a,e}});var nM=le((X4e,aM)=>{aM.exports=hJ;function hJ(e,r,t){var a=Math.sin(t),n=Math.cos(t),i=r[0],o=r[1],l=r[2],s=r[3],u=r[8],f=r[9],c=r[10],h=r[11];return r!==e&&(e[4]=r[4],e[5]=r[5],e[6]=r[6],e[7]=r[7],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e[0]=i*n-u*a,e[1]=o*n-f*a,e[2]=l*n-c*a,e[3]=s*n-h*a,e[8]=i*a+u*n,e[9]=o*a+f*n,e[10]=l*a+c*n,e[11]=s*a+h*n,e}});var oM=le((j4e,iM)=>{iM.exports=dJ;function dJ(e,r,t){var a=Math.sin(t),n=Math.cos(t),i=r[0],o=r[1],l=r[2],s=r[3],u=r[4],f=r[5],c=r[6],h=r[7];return r!==e&&(e[8]=r[8],e[9]=r[9],e[10]=r[10],e[11]=r[11],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e[0]=i*n+u*a,e[1]=o*n+f*a,e[2]=l*n+c*a,e[3]=s*n+h*a,e[4]=u*n-i*a,e[5]=f*n-o*a,e[6]=c*n-l*a,e[7]=h*n-s*a,e}});var sM=le((W4e,lM)=>{lM.exports=pJ;function pJ(e,r,t){var a,n,i,o=t[0],l=t[1],s=t[2],u=Math.sqrt(o*o+l*l+s*s);return Math.abs(u)<1e-6?null:(u=1/u,o*=u,l*=u,s*=u,a=Math.sin(r),n=Math.cos(r),i=1-n,e[0]=o*o*i+n,e[1]=l*o*i+s*a,e[2]=s*o*i-l*a,e[3]=0,e[4]=o*l*i-s*a,e[5]=l*l*i+n,e[6]=s*l*i+o*a,e[7]=0,e[8]=o*s*i+l*a,e[9]=l*s*i-o*a,e[10]=s*s*i+n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e)}});var fM=le((Z4e,uM)=>{uM.exports=mJ;function mJ(e,r,t){var a=r[0],n=r[1],i=r[2],o=r[3],l=a+a,s=n+n,u=i+i,f=a*l,c=a*s,h=a*u,d=n*s,m=n*u,p=i*u,y=o*l,b=o*s,C=o*u;return e[0]=1-(d+p),e[1]=c+C,e[2]=h-b,e[3]=0,e[4]=c-C,e[5]=1-(f+p),e[6]=m+y,e[7]=0,e[8]=h+b,e[9]=m-y,e[10]=1-(f+d),e[11]=0,e[12]=t[0],e[13]=t[1],e[14]=t[2],e[15]=1,e}});var vM=le(($4e,cM)=>{cM.exports=gJ;function gJ(e,r){return e[0]=r[0],e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=r[1],e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=r[2],e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var dM=le((J4e,hM)=>{hM.exports=yJ;function yJ(e,r){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]=r[0],e[13]=r[1],e[14]=r[2],e[15]=1,e}});var mM=le((K4e,pM)=>{pM.exports=bJ;function bJ(e,r){var t=Math.sin(r),a=Math.cos(r);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=a,e[6]=t,e[7]=0,e[8]=0,e[9]=-t,e[10]=a,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var yM=le((Q4e,gM)=>{gM.exports=_J;function _J(e,r){var t=Math.sin(r),a=Math.cos(r);return e[0]=a,e[1]=0,e[2]=-t,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=t,e[9]=0,e[10]=a,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var _M=le((e5e,bM)=>{bM.exports=xJ;function xJ(e,r){var t=Math.sin(r),a=Math.cos(r);return e[0]=a,e[1]=t,e[2]=0,e[3]=0,e[4]=-t,e[5]=a,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}});var wM=le((r5e,xM)=>{xM.exports=wJ;function wJ(e,r){var t=r[0],a=r[1],n=r[2],i=r[3],o=t+t,l=a+a,s=n+n,u=t*o,f=a*o,c=a*l,h=n*o,d=n*l,m=n*s,p=i*o,y=i*l,b=i*s;return e[0]=1-c-m,e[1]=f+b,e[2]=h-y,e[3]=0,e[4]=f-b,e[5]=1-u-m,e[6]=d+p,e[7]=0,e[8]=h+y,e[9]=d-p,e[10]=1-u-c,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var MM=le((t5e,AM)=>{AM.exports=AJ;function AJ(e,r,t,a,n,i,o){var l=1/(t-r),s=1/(n-a),u=1/(i-o);return e[0]=i*2*l,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=i*2*s,e[6]=0,e[7]=0,e[8]=(t+r)*l,e[9]=(n+a)*s,e[10]=(o+i)*u,e[11]=-1,e[12]=0,e[13]=0,e[14]=o*i*2*u,e[15]=0,e}});var kM=le((a5e,TM)=>{TM.exports=MJ;function MJ(e,r,t,a,n){var i=1/Math.tan(r/2),o=1/(a-n);return e[0]=i/t,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=i,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=(n+a)*o,e[11]=-1,e[12]=0,e[13]=0,e[14]=2*n*a*o,e[15]=0,e}});var SM=le((n5e,CM)=>{CM.exports=TJ;function TJ(e,r,t,a){var n=Math.tan(r.upDegrees*Math.PI/180),i=Math.tan(r.downDegrees*Math.PI/180),o=Math.tan(r.leftDegrees*Math.PI/180),l=Math.tan(r.rightDegrees*Math.PI/180),s=2/(o+l),u=2/(n+i);return e[0]=s,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=u,e[6]=0,e[7]=0,e[8]=-((o-l)*s*.5),e[9]=(n-i)*u*.5,e[10]=a/(t-a),e[11]=-1,e[12]=0,e[13]=0,e[14]=a*t/(t-a),e[15]=0,e}});var FM=le((i5e,DM)=>{DM.exports=kJ;function kJ(e,r,t,a,n,i,o){var l=1/(r-t),s=1/(a-n),u=1/(i-o);return e[0]=-2*l,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*s,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*u,e[11]=0,e[12]=(r+t)*l,e[13]=(n+a)*s,e[14]=(o+i)*u,e[15]=1,e}});var LM=le((o5e,EM)=>{var CJ=p5();EM.exports=SJ;function SJ(e,r,t,a){var n,i,o,l,s,u,f,c,h,d,m=r[0],p=r[1],y=r[2],b=a[0],C=a[1],x=a[2],_=t[0],M=t[1],T=t[2];return Math.abs(m-_)<1e-6&&Math.abs(p-M)<1e-6&&Math.abs(y-T)<1e-6?CJ(e):(f=m-_,c=p-M,h=y-T,d=1/Math.sqrt(f*f+c*c+h*h),f*=d,c*=d,h*=d,n=C*h-x*c,i=x*f-b*h,o=b*c-C*f,d=Math.sqrt(n*n+i*i+o*o),d?(d=1/d,n*=d,i*=d,o*=d):(n=0,i=0,o=0),l=c*o-h*i,s=h*n-f*o,u=f*i-c*n,d=Math.sqrt(l*l+s*s+u*u),d?(d=1/d,l*=d,s*=d,u*=d):(l=0,s=0,u=0),e[0]=n,e[1]=l,e[2]=f,e[3]=0,e[4]=i,e[5]=s,e[6]=c,e[7]=0,e[8]=o,e[9]=u,e[10]=h,e[11]=0,e[12]=-(n*m+i*p+o*y),e[13]=-(l*m+s*p+u*y),e[14]=-(f*m+c*p+h*y),e[15]=1,e)}});var PM=le((l5e,qM)=>{qM.exports=DJ;function DJ(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]+")"}});var m5=le((s5e,RM)=>{RM.exports={create:qA(),clone:RA(),copy:NA(),identity:p5(),transpose:HA(),invert:UA(),adjoint:YA(),determinant:XA(),multiply:WA(),translate:$A(),scale:KA(),rotate:eM(),rotateX:tM(),rotateY:nM(),rotateZ:oM(),fromRotation:sM(),fromRotationTranslation:fM(),fromScaling:vM(),fromTranslation:dM(),fromXRotation:mM(),fromYRotation:yM(),fromZRotation:_M(),fromQuat:wM(),frustum:MM(),perspective:kM(),perspectiveFromFieldOfView:SM(),ortho:FM(),lookAt:LM(),str:PM()}});var hp=le(un=>{"use strict";var FJ=m5();un.init2dArray=function(e,r){for(var t=new Array(e),a=0;a{"use strict";var EJ=Ft(),zM=Cu(),LJ=hp(),qJ=m5();function PJ(e){var r;if(typeof e=="string"){if(r=document.getElementById(e),r===null)throw new Error("No DOM element with id '"+e+"' exists on the page.");return r}else if(e==null)throw new Error("DOM element provided is null or undefined");return e}function RJ(e){var r=EJ.select(e);return r.node()instanceof HTMLElement&&r.size()&&r.classed("js-plotly-plot")}function NM(e){var r=e&&e.parentNode;r&&r.removeChild(e)}function zJ(e,r){BM("global",e,r)}function BM(e,r,t){var a="plotly.js-style-"+e,n=document.getElementById(a);if(!(n&&n.matches(".no-inline-styles"))){n||(n=document.createElement("style"),n.setAttribute("id",a),n.appendChild(document.createTextNode("")),document.head.appendChild(n));var i=n.sheet;i?i.insertRule?i.insertRule(r+"{"+t+"}",0):i.addRule?i.addRule(r,t,0):zM.warn("addStyleRule failed"):zM.warn("Cannot addRelatedStyleRule, probably due to strict CSP...")}}function NJ(e){var r="plotly.js-style-"+e,t=document.getElementById(r);t&&NM(t)}function BJ(e,r,t,a,n,i){var o=a.split(":"),l=n.split(":"),s="data-btn-style-event-added";i||(i=document),i.querySelectorAll(e).forEach(function(u){u._hoverStyle={activeStyleParts:o,inactiveStyleParts:l},u.getAttribute(s)||(u.addEventListener("mouseenter",function(){var f=this._hoverStyle,c=this.querySelector(t);c&&(c.style[f.activeStyleParts[0]]=f.activeStyleParts[1])}),u.addEventListener("mouseleave",function(){var f=this._hoverStyle,c=this.querySelector(t);c&&(r&&this.matches(r)?c.style[f.activeStyleParts[0]]=f.activeStyleParts[1]:c.style[f.inactiveStyleParts[0]]=f.inactiveStyleParts[1])}),u.setAttribute(s,!0))})}function IJ(e){var r=HM(e),t=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];return r.forEach(function(a){var n=IM(a);if(n){var i=LJ.convertCssMatrix(n);t=qJ.multiply(t,t,i)}}),t}function IM(e){var r=window.getComputedStyle(e,null),t=r.getPropertyValue("-webkit-transform")||r.getPropertyValue("-moz-transform")||r.getPropertyValue("-ms-transform")||r.getPropertyValue("-o-transform")||r.getPropertyValue("transform");return t==="none"?null:t.replace("matrix","").replace("3d","").slice(1,-1).split(",").map(function(a){return+a})}function HM(e){for(var r=[];HJ(e);)r.push(e),e=e.parentNode,typeof ShadowRoot=="function"&&e instanceof ShadowRoot&&(e=e.host);return r}function HJ(e){return e&&(e instanceof Element||e instanceof HTMLElement)}function OJ(e,r){return e&&r&&e.top===r.top&&e.left===r.left&&e.right===r.right&&e.bottom===r.bottom}OM.exports={getGraphDiv:PJ,isPlotDiv:RJ,removeElement:NM,addStyleRule:zJ,addRelatedStyleRule:BM,deleteRelatedStyleRule:NJ,setStyleOnHover:BJ,getFullTransformMatrix:IJ,getElementTransformMatrix:IM,getElementAndAncestors:HM,equalDomRects:OJ}});var kv=le((c5e,UM)=>{"use strict";UM.exports={mode:{valType:"enumerated",dflt:"afterall",values:["immediate","next","afterall"]},direction:{valType:"enumerated",values:["forward","reverse"],dflt:"forward"},fromcurrent:{valType:"boolean",dflt:!1},frame:{duration:{valType:"number",min:0,dflt:500},redraw:{valType:"boolean",dflt:!0}},transition:{duration:{valType:"number",min:0,dflt:500,editType:"none"},easing:{valType:"enumerated",dflt:"cubic-in-out",values:["linear","quad","cubic","sin","exp","circle","elastic","back","bounce","linear-in","quad-in","cubic-in","sin-in","exp-in","circle-in","elastic-in","back-in","bounce-in","linear-out","quad-out","cubic-out","sin-out","exp-out","circle-out","elastic-out","back-out","bounce-out","linear-in-out","quad-in-out","cubic-in-out","sin-in-out","exp-in-out","circle-in-out","elastic-in-out","back-in-out","bounce-in-out"],editType:"none"},ordering:{valType:"enumerated",values:["layout first","traces first"],dflt:"layout first",editType:"none"}}}});var Yo=le((v5e,ZM)=>{"use strict";var YM=Tn().extendFlat,UJ=c0(),VM={valType:"flaglist",extras:["none"],flags:["calc","clearAxisTypes","plot","style","markerSize","colorbars"]},XM={valType:"flaglist",extras:["none"],flags:["calc","plot","legend","ticks","axrange","layoutstyle","modebar","camera","arraydraw","colorbars"]},GJ=VM.flags.slice().concat(["fullReplot"]),YJ=XM.flags.slice().concat("layoutReplot");ZM.exports={traces:VM,layout:XM,traceFlags:function(){return GM(GJ)},layoutFlags:function(){return GM(YJ)},update:function(e,r){var t=r.editType;if(t&&t!=="none")for(var a=t.split("+"),n=0;n{"use strict";g5.dash={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",editType:"style"};g5.pattern={shape:{valType:"enumerated",values:["","/","\\","x","-","|","+","."],dflt:"",arrayOk:!0,editType:"style"},path:{valType:"string",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"}});var y5={};Ha(y5,{DATE_FORMAT_LINK:()=>XJ,FORMAT_LINK:()=>VJ});var VJ,XJ,b5=Ia(()=>{"use strict";VJ="https://github.com/d3/d3-format/tree/v1.4.5#d3-format",XJ="https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format"});var Gf=le(S1=>{"use strict";var{DATE_FORMAT_LINK:jJ,FORMAT_LINK:WJ}=(b5(),Tr(y5)),ZJ=["Variables that can't be found will be replaced with the specifier.",'For example, a template of "data: %{x}, %{y}" will result in a value of "data: 1, %{y}" if x is 1 and y is missing.',"Variables with an undefined value will be replaced with the fallback value."].join(" ");function $J({supportOther:e}={}){return["Variables are inserted using %{variable},",'for example "y: %{y}"'+(e?" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown.":"."),`Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}".`,WJ,"for details on the formatting syntax.",`Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}".`,jJ,"for details on the date formatting syntax.",ZJ].join(" ")}S1.templateFormatStringDescription=$J;S1.hovertemplateAttrs=({editType:e="none",arrayOk:r}={},t={})=>da({valType:"string",dflt:"",editType:e},r!==!1?{arrayOk:!0}:{});S1.texttemplateAttrs=({editType:e="calc",arrayOk:r}={},t={})=>da({valType:"string",dflt:"",editType:e},r!==!1?{arrayOk:!0}:{});S1.shapeTexttemplateAttrs=({editType:e="arraydraw",newshape:r}={},t={})=>({valType:"string",dflt:"",editType:e});S1.templatefallbackAttrs=({editType:e="none"}={})=>({valType:"any",dflt:"-",editType:e})});var mp=le((m5e,rT)=>{"use strict";function g0(e,r){return r?r.d2l(e):e}function $M(e,r){return r?r.l2d(e):e}function JJ(e){return e.x0}function KJ(e){return e.x1}function QJ(e){return e.y0}function eK(e){return e.y1}function JM(e){return e.x0shift||0}function KM(e){return e.x1shift||0}function QM(e){return e.y0shift||0}function eT(e){return e.y1shift||0}function dp(e,r){return g0(e.x1,r)+KM(e)-g0(e.x0,r)-JM(e)}function pp(e,r,t){return g0(e.y1,t)+eT(e)-g0(e.y0,t)-QM(e)}function rK(e,r){return Math.abs(dp(e,r))}function tK(e,r,t){return Math.abs(pp(e,r,t))}function aK(e,r,t){return e.type!=="line"?void 0:Math.sqrt(Math.pow(dp(e,r),2)+Math.pow(pp(e,r,t),2))}function nK(e,r){return $M((g0(e.x1,r)+KM(e)+g0(e.x0,r)+JM(e))/2,r)}function iK(e,r,t){return $M((g0(e.y1,t)+eT(e)+g0(e.y0,t)+QM(e))/2,t)}function oK(e,r,t){return e.type!=="line"?void 0:pp(e,r,t)/dp(e,r)}var lK=["x0","x1","y0","y1","dy","height","ycenter"],sK=["x0","x1","y0","y1","dx","width","xcenter"];rT.exports={x0:JJ,x1:KJ,y0:QJ,y1:eK,slope:oK,dx:dp,dy:pp,width:rK,height:tK,length:aK,xcenter:nK,ycenter:iK,simpleXVariables:lK,simpleYVariables:sK}});var nT=le((g5e,aT)=>{"use strict";var uK=Yo().overrideAll,Yf=Go(),tT=gi(),fK=Cs().dash,y0=Tn().extendFlat,{shapeTexttemplateAttrs:cK,templatefallbackAttrs:vK}=Gf(),hK=mp();aT.exports=uK({newshape:{visible:y0({},Yf.visible,{}),showlegend:{valType:"boolean",dflt:!1},legend:y0({},Yf.legend,{}),legendgroup:y0({},Yf.legendgroup,{}),legendgrouptitle:{text:y0({},Yf.legendgrouptitle.text,{}),font:tT({})},legendrank:y0({},Yf.legendrank,{}),legendwidth:y0({},Yf.legendwidth,{}),line:{color:{valType:"color"},width:{valType:"number",min:0,dflt:4},dash:y0({},fK,{dflt:"solid"})},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd"},opacity:{valType:"number",min:0,max:1,dflt:1},layer:{valType:"enumerated",values:["below","above","between"],dflt:"above"},drawdirection:{valType:"enumerated",values:["ortho","horizontal","vertical","diagonal"],dflt:"diagonal"},name:y0({},Yf.name,{}),label:{text:{valType:"string",dflt:""},texttemplate:cK({newshape:!0},{keys:Object.keys(hK)}),texttemplatefallback:vK({editType:"arraydraw"}),font:tT({}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"]},textangle:{valType:"angle",dflt:"auto"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto"},yanchor:{valType:"enumerated",values:["top","middle","bottom"]},padding:{valType:"number",dflt:3,min:0}}},activeshape:{fillcolor:{valType:"color",dflt:"rgb(255,0,255)",description:"Sets the color filling the active shape' interior."},opacity:{valType:"number",min:0,max:1,dflt:.5}}},"none","from-root")});var oT=le((y5e,iT)=>{"use strict";var dK=Cs().dash,pK=Tn().extendFlat;iT.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:pK({},dK,{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"}}});var gp=le((b5e,lT)=>{"use strict";lT.exports=function(e){var r=e.editType;return{t:{valType:"number",dflt:0,editType:r},r:{valType:"number",dflt:0,editType:r},b:{valType:"number",dflt:0,editType:r},l:{valType:"number",dflt:0,editType:r},editType:r}}});var D1=le((_5e,cT)=>{"use strict";var _5=gi(),mK=kv(),yp=zl(),sT=nT(),uT=oT(),gK=gp(),fT=Tn().extendFlat,bp=_5({editType:"calc"});bp.family.dflt='"Open Sans", verdana, arial, sans-serif';bp.size.dflt=12;bp.color.dflt=yp.defaultLine;cT.exports={font:bp,title:{text:{valType:"string",editType:"layoutstyle"},font:_5({editType:"layoutstyle"}),subtitle:{text:{valType:"string",editType:"layoutstyle"},font:_5({editType:"layoutstyle"}),editType:"layoutstyle"},xref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle"},yref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle"},x:{valType:"number",min:0,max:1,dflt:.5,editType:"layoutstyle"},y:{valType:"number",min:0,max:1,dflt:"auto",editType:"layoutstyle"},xanchor:{valType:"enumerated",dflt:"auto",values:["auto","left","center","right"],editType:"layoutstyle"},yanchor:{valType:"enumerated",dflt:"auto",values:["auto","top","middle","bottom"],editType:"layoutstyle"},pad:fT(gK({editType:"layoutstyle"}),{}),automargin:{valType:"boolean",dflt:!1,editType:"plot"},editType:"layoutstyle"},uniformtext:{mode:{valType:"enumerated",values:[!1,"hide","show"],dflt:!1,editType:"plot"},minsize:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"},autosize:{valType:"boolean",dflt:!1,editType:"none"},width:{valType:"number",min:10,dflt:700,editType:"plot"},height:{valType:"number",min:10,dflt:450,editType:"plot"},minreducedwidth:{valType:"number",min:2,dflt:64,editType:"plot"},minreducedheight:{valType:"number",min:2,dflt:64,editType:"plot"},margin:{l:{valType:"number",min:0,dflt:80,editType:"plot"},r:{valType:"number",min:0,dflt:80,editType:"plot"},t:{valType:"number",min:0,dflt:100,editType:"plot"},b:{valType:"number",min:0,dflt:80,editType:"plot"},pad:{valType:"number",min:0,dflt:0,editType:"plot"},autoexpand:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},computed:{valType:"any",editType:"none"},paper_bgcolor:{valType:"color",dflt:yp.background,editType:"plot"},plot_bgcolor:{valType:"color",dflt:yp.background,editType:"layoutstyle"},autotypenumbers:{valType:"enumerated",values:["convert types","strict"],dflt:"convert types",editType:"calc"},separators:{valType:"string",editType:"plot"},showlegend:{valType:"boolean",editType:"legend"},colorway:{valType:"colorlist",dflt:yp.defaults,editType:"calc"},datarevision:{valType:"any",editType:"calc"},uirevision:{valType:"any",editType:"none"},editrevision:{valType:"any",editType:"none"},selectionrevision:{valType:"any",editType:"none"},template:{valType:"any",editType:"calc"},newshape:sT.newshape,activeshape:sT.activeshape,newselection:uT.newselection,activeselection:uT.activeselection,meta:{valType:"any",arrayOk:!0,editType:"plot"},transition:fT({},mK.transition,{editType:"none"})}});var vT=le(()=>{(function(){if(!document.getElementById("ce8d464691048653ffe3a57c6c18ab566e8366f186677868cf724621a857b4fe")){var e=document.createElement("style");e.id="ce8d464691048653ffe3a57c6c18ab566e8366f186677868cf724621a857b4fe",e.textContent='.maplibregl-map{font:12px/20px Helvetica Neue,Arial,Helvetica,sans-serif;overflow:hidden;position:relative;-webkit-tap-highlight-color:rgb(0 0 0/0);-webkit-touch-callout:none}.maplibregl-canvas{position:absolute;left:0;top:0}.maplibregl-map:fullscreen{width:100%;height:100%}.maplibregl-ctrl-group button.maplibregl-ctrl-compass{touch-action:none}.maplibregl-canvas-container.maplibregl-interactive,.maplibregl-ctrl-group button.maplibregl-ctrl-compass{cursor:grab;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-canvas-container.maplibregl-interactive.maplibregl-track-pointer{cursor:pointer}.maplibregl-canvas-container.maplibregl-interactive:active,.maplibregl-ctrl-group button.maplibregl-ctrl-compass:active{cursor:grabbing}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-canvas-container.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:pinch-zoom}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:none}.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures,.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-ctrl-bottom-left,.maplibregl-ctrl-bottom-right,.maplibregl-ctrl-top-left,.maplibregl-ctrl-top-right{position:absolute;pointer-events:none;z-index:2}.maplibregl-ctrl-top-left{top:0;left:0}.maplibregl-ctrl-top-right{top:0;right:0}.maplibregl-ctrl-bottom-left{bottom:0;left:0}.maplibregl-ctrl-bottom-right{right:0;bottom:0}.maplibregl-ctrl{clear:both;pointer-events:auto;transform:translate(0)}.maplibregl-ctrl-top-left .maplibregl-ctrl{margin:10px 0 0 10px;float:left}.maplibregl-ctrl-top-right .maplibregl-ctrl{margin:10px 10px 0 0;float:right}.maplibregl-ctrl-bottom-left .maplibregl-ctrl{margin:0 0 10px 10px;float:left}.maplibregl-ctrl-bottom-right .maplibregl-ctrl{margin:0 10px 10px 0;float:right}.maplibregl-ctrl-group{border-radius:4px;background:#fff}.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px rgba(0,0,0,.1)}@media (forced-colors:active){.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px ButtonText}}.maplibregl-ctrl-group button{width:29px;height:29px;display:block;padding:0;outline:none;border:0;box-sizing:border-box;background-color:transparent;cursor:pointer}.maplibregl-ctrl button{-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-ctrl-group button+button{border-top:1px solid #ddd}.maplibregl-ctrl button .maplibregl-ctrl-icon{display:block;width:100%;height:100%;background-repeat:no-repeat;background-position:50%}@media (forced-colors:active){.maplibregl-ctrl-icon{background-color:transparent}.maplibregl-ctrl-group button+button{border-top:1px solid ButtonText}}.maplibregl-ctrl button::-moz-focus-inner{border:0;padding:0}.maplibregl-ctrl-attrib-button:focus,.maplibregl-ctrl-group button:focus{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl button:disabled{cursor:not-allowed}.maplibregl-ctrl button:disabled .maplibregl-ctrl-icon{opacity:.25}@media (hover:hover){.maplibregl-ctrl button:not(:disabled):hover{background-color:rgba(0,0,0,.05)}}.maplibregl-ctrl button:not(:disabled):active{background-color:rgba(0,0,0,.05)}.maplibregl-ctrl-group button:focus:focus-visible{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl-group button:focus:not(:focus-visible){box-shadow:none}.maplibregl-ctrl-group button:focus:first-child{border-radius:4px 4px 0 0}.maplibregl-ctrl-group button:focus:last-child{border-radius:0 0 4px 4px}.maplibregl-ctrl-group button:focus:only-child{border-radius:inherit}.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M10%2013c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h9c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M14.5%208.5c-.75%200-1.5.75-1.5%201.5v3h-3c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h3v3c0%20.75.75%201.5%201.5%201.5S16%2019.75%2016%2019v-3h3c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013h-3v-3c0-.75-.75-1.5-1.5-1.5%22%2F%3E%3C%2Fsvg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M10%2013c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h9c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M14.5%208.5c-.75%200-1.5.75-1.5%201.5v3h-3c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h3v3c0%20.75.75%201.5%201.5%201.5S16%2019.75%2016%2019v-3h3c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013h-3v-3c0-.75-.75-1.5-1.5-1.5%22%2F%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M10%2013c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h9c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M14.5%208.5c-.75%200-1.5.75-1.5%201.5v3h-3c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h3v3c0%20.75.75%201.5%201.5%201.5S16%2019.75%2016%2019v-3h3c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013h-3v-3c0-.75-.75-1.5-1.5-1.5%22%2F%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M24%2016v5.5c0%201.75-.75%202.5-2.5%202.5H16v-1l3-1.5-4-5.5%201-1%205.5%204%201.5-3zM6%2016l1.5%203%205.5-4%201%201-4%205.5%203%201.5v1H7.5C5.75%2024%205%2023.25%205%2021.5V16zm7-11v1l-3%201.5%204%205.5-1%201-5.5-4L6%2013H5V7.5C5%205.75%205.75%205%207.5%205zm11%202.5c0-1.75-.75-2.5-2.5-2.5H16v1l3%201.5-4%205.5%201%201%205.5-4%201.5%203h1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M18.5%2016c-1.75%200-2.5.75-2.5%202.5V24h1l1.5-3%205.5%204%201-1-4-5.5%203-1.5v-1zM13%2018.5c0-1.75-.75-2.5-2.5-2.5H5v1l3%201.5L4%2024l1%201%205.5-4%201.5%203h1zm3-8c0%201.75.75%202.5%202.5%202.5H24v-1l-3-1.5L25%205l-1-1-5.5%204L17%205h-1zM10.5%2013c1.75%200%202.5-.75%202.5-2.5V5h-1l-1.5%203L5%204%204%205l4%205.5L5%2012v1z%22%2F%3E%3C%2Fsvg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M24%2016v5.5c0%201.75-.75%202.5-2.5%202.5H16v-1l3-1.5-4-5.5%201-1%205.5%204%201.5-3zM6%2016l1.5%203%205.5-4%201%201-4%205.5%203%201.5v1H7.5C5.75%2024%205%2023.25%205%2021.5V16zm7-11v1l-3%201.5%204%205.5-1%201-5.5-4L6%2013H5V7.5C5%205.75%205.75%205%207.5%205zm11%202.5c0-1.75-.75-2.5-2.5-2.5H16v1l3%201.5-4%205.5%201%201%205.5-4%201.5%203h1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M18.5%2016c-1.75%200-2.5.75-2.5%202.5V24h1l1.5-3%205.5%204%201-1-4-5.5%203-1.5v-1zM13%2018.5c0-1.75-.75-2.5-2.5-2.5H5v1l3%201.5L4%2024l1%201%205.5-4%201.5%203h1zm3-8c0%201.75.75%202.5%202.5%202.5H24v-1l-3-1.5L25%205l-1-1-5.5%204L17%205h-1zM10.5%2013c1.75%200%202.5-.75%202.5-2.5V5h-1l-1.5%203L5%204%204%205l4%205.5L5%2012v1z%22%2F%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M24%2016v5.5c0%201.75-.75%202.5-2.5%202.5H16v-1l3-1.5-4-5.5%201-1%205.5%204%201.5-3zM6%2016l1.5%203%205.5-4%201%201-4%205.5%203%201.5v1H7.5C5.75%2024%205%2023.25%205%2021.5V16zm7-11v1l-3%201.5%204%205.5-1%201-5.5-4L6%2013H5V7.5C5%205.75%205.75%205%207.5%205zm11%202.5c0-1.75-.75-2.5-2.5-2.5H16v1l3%201.5-4%205.5%201%201%205.5-4%201.5%203h1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M18.5%2016c-1.75%200-2.5.75-2.5%202.5V24h1l1.5-3%205.5%204%201-1-4-5.5%203-1.5v-1zM13%2018.5c0-1.75-.75-2.5-2.5-2.5H5v1l3%201.5L4%2024l1%201%205.5-4%201.5%203h1zm3-8c0%201.75.75%202.5%202.5%202.5H24v-1l-3-1.5L25%205l-1-1-5.5%204L17%205h-1zM10.5%2013c1.75%200%202.5-.75%202.5-2.5V5h-1l-1.5%203L5%204%204%205l4%205.5L5%2012v1z%22%2F%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22m10.5%2014%204-8%204%208z%22%2F%3E%3Cpath%20fill%3D%22%23ccc%22%20d%3D%22m10.5%2016%204%208%204-8z%22%2F%3E%3C%2Fsvg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22m10.5%2014%204-8%204%208z%22%2F%3E%3Cpath%20fill%3D%22%23ccc%22%20d%3D%22m10.5%2016%204%208%204-8z%22%2F%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22m10.5%2014%204-8%204%208z%22%2F%3E%3Cpath%20fill%3D%22%23ccc%22%20d%3D%22m10.5%2016%204%208%204-8z%22%2F%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-globe .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2222%22%20height%3D%2222%22%20fill%3D%22none%22%20stroke%3D%22%23333%22%20viewBox%3D%220%200%2022%2022%22%3E%3Ccircle%20cx%3D%2211%22%20cy%3D%2211%22%20r%3D%228.5%22%2F%3E%3Cpath%20d%3D%22M17.5%2011c0%204.819-3.02%208.5-6.5%208.5S4.5%2015.819%204.5%2011%207.52%202.5%2011%202.5s6.5%203.681%206.5%208.5Z%22%2F%3E%3Cpath%20d%3D%22M13.5%2011c0%202.447-.331%204.64-.853%206.206-.262.785-.562%201.384-.872%201.777-.314.399-.58.517-.775.517s-.461-.118-.775-.517c-.31-.393-.61-.992-.872-1.777C8.831%2015.64%208.5%2013.446%208.5%2011s.331-4.64.853-6.206c.262-.785.562-1.384.872-1.777.314-.399.58-.517.775-.517s.461.118.775.517c.31.393.61.992.872%201.777.522%201.565.853%203.76.853%206.206Z%22%2F%3E%3Cpath%20d%3D%22M11%207.5c-1.909%200-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3%201.3%200%200%201-.224-.138q.07-.058.224-.138c.299-.151.763-.302%201.379-.434C7.378%205.666%209.091%205.5%2011%205.5s3.622.166%204.845.428c.616.132%201.08.283%201.379.434.105.053.177.1.224.138q-.07.058-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm0%209c-1.909%200-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3%201.3%200%200%201-.224-.138%201.3%201.3%200%200%201%20.224-.138c.299-.151.763-.302%201.379-.434C7.378%2014.666%209.091%2014.5%2011%2014.5s3.622.166%204.845.428c.616.132%201.08.283%201.379.434.105.053.177.1.224.138a1.3%201.3%200%200%201-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm0-4c-2.46%200-4.672-.222-6.255-.574-.796-.177-1.406-.38-1.805-.59a1.5%201.5%200%200%201-.39-.272.3.3%200%200%201-.047-.064.3.3%200%200%201%20.048-.064c.066-.073.189-.167.389-.272.399-.21%201.009-.413%201.805-.59C6.328%209.722%208.54%209.5%2011%209.5s4.672.222%206.256.574c.795.177%201.405.38%201.804.59.2.105.323.2.39.272a.3.3%200%200%201%20.047.064.3.3%200%200%201-.048.064%201.4%201.4%200%200%201-.389.272c-.399.21-1.009.413-1.804.59-1.584.352-3.796.574-6.256.574Zm-8.501-1.51v.002zm0%20.018v.002zm17.002.002v-.002zm0-.018v-.002z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-globe-enabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2222%22%20height%3D%2222%22%20fill%3D%22none%22%20stroke%3D%22%2333b5e5%22%20viewBox%3D%220%200%2022%2022%22%3E%3Ccircle%20cx%3D%2211%22%20cy%3D%2211%22%20r%3D%228.5%22%2F%3E%3Cpath%20d%3D%22M17.5%2011c0%204.819-3.02%208.5-6.5%208.5S4.5%2015.819%204.5%2011%207.52%202.5%2011%202.5s6.5%203.681%206.5%208.5Z%22%2F%3E%3Cpath%20d%3D%22M13.5%2011c0%202.447-.331%204.64-.853%206.206-.262.785-.562%201.384-.872%201.777-.314.399-.58.517-.775.517s-.461-.118-.775-.517c-.31-.393-.61-.992-.872-1.777C8.831%2015.64%208.5%2013.446%208.5%2011s.331-4.64.853-6.206c.262-.785.562-1.384.872-1.777.314-.399.58-.517.775-.517s.461.118.775.517c.31.393.61.992.872%201.777.522%201.565.853%203.76.853%206.206Z%22%2F%3E%3Cpath%20d%3D%22M11%207.5c-1.909%200-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3%201.3%200%200%201-.224-.138q.07-.058.224-.138c.299-.151.763-.302%201.379-.434C7.378%205.666%209.091%205.5%2011%205.5s3.622.166%204.845.428c.616.132%201.08.283%201.379.434.105.053.177.1.224.138q-.07.058-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm0%209c-1.909%200-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3%201.3%200%200%201-.224-.138%201.3%201.3%200%200%201%20.224-.138c.299-.151.763-.302%201.379-.434C7.378%2014.666%209.091%2014.5%2011%2014.5s3.622.166%204.845.428c.616.132%201.08.283%201.379.434.105.053.177.1.224.138a1.3%201.3%200%200%201-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm0-4c-2.46%200-4.672-.222-6.255-.574-.796-.177-1.406-.38-1.805-.59a1.5%201.5%200%200%201-.39-.272.3.3%200%200%201-.047-.064.3.3%200%200%201%20.048-.064c.066-.073.189-.167.389-.272.399-.21%201.009-.413%201.805-.59C6.328%209.722%208.54%209.5%2011%209.5s4.672.222%206.256.574c.795.177%201.405.38%201.804.59.2.105.323.2.39.272a.3.3%200%200%201%20.047.064.3.3%200%200%201-.048.064%201.4%201.4%200%200%201-.389.272c-.399.21-1.009.413-1.804.59-1.584.352-3.796.574-6.256.574Zm-8.501-1.51v.002zm0%20.018v.002zm17.002.002v-.002zm0-.018v-.002z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-terrain .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2222%22%20height%3D%2222%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2022%2022%22%3E%3Cpath%20d%3D%22m1.754%2013.406%204.453-4.851%203.09%203.09%203.281%203.277.969-.969-3.309-3.312%203.844-4.121%206.148%206.886h1.082v-.855l-7.207-8.07-4.84%205.187L6.169%206.57l-5.48%205.965v.871ZM.688%2016.844h20.625v1.375H.688Zm0%200%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-terrain-enabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2222%22%20height%3D%2222%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2022%2022%22%3E%3Cpath%20d%3D%22m1.754%2013.406%204.453-4.851%203.09%203.09%203.281%203.277.969-.969-3.309-3.312%203.844-4.121%206.148%206.886h1.082v-.855l-7.207-8.07-4.84%205.187L6.169%206.57l-5.48%205.965v.871ZM.688%2016.844h20.625v1.375H.688Zm0%200%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23aaa%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3Cpath%20fill%3D%22red%22%20d%3D%22m14%205%201%201-9%209-1-1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23e58978%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23e54e33%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-waiting .maplibregl-ctrl-icon{animation:maplibregl-spin 2s linear infinite}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23999%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3Cpath%20fill%3D%22red%22%20d%3D%22m14%205%201%201-9%209-1-1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23e58978%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23e54e33%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23666%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3Cpath%20fill%3D%22red%22%20d%3D%22m14%205%201%201-9%209-1-1z%22%2F%3E%3C%2Fsvg%3E")}}@keyframes maplibregl-spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}a.maplibregl-ctrl-logo{width:88px;height:23px;margin:0 0 -4px -4px;display:block;background-repeat:no-repeat;cursor:pointer;overflow:hidden;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2288%22%20height%3D%2223%22%20fill%3D%22none%22%3E%3Cpath%20fill%3D%22%23000%22%20fill-opacity%3D%22.4%22%20fill-rule%3D%22evenodd%22%20d%3D%22M17.408%2016.796h-1.827l2.501-12.095h.198l3.324%206.533.988%202.19.988-2.19%203.258-6.533h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.929%205.644h-.098l-2.914-5.644-.757-1.71-.345%201.71zm1.958-3.42-.726%203.663a1.255%201.255%200%200%201-1.232%201.011h-1.827a1.255%201.255%200%200%201-1.229-1.509l2.501-12.095a1.255%201.255%200%200%201%201.23-1.001h.197a1.25%201.25%200%200%201%201.12.685l3.19%206.273%203.125-6.263a1.25%201.25%200%200%201%201.123-.695h.181a1.255%201.255%200%200%201%201.227.991l1.443%206.71a5%205%200%200%201%20.314-.787l.009-.016a4.6%204.6%200%200%201%201.777-1.887c.782-.46%201.668-.667%202.611-.667a4.6%204.6%200%200%201%201.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255%201.255%200%200%201%201.212.925%201.255%201.255%200%200%201%201.212-.925h1.711c.284%200%20.545.094.755.252.613-.3%201.312-.45%202.075-.45%201.356%200%202.557.445%203.482%201.4q.47.48.763%201.064V4.701a1.255%201.255%200%200%201%201.255-1.255h1.86A1.255%201.255%200%200%201%2054.44%204.7v9.194h2.217c.19%200%20.37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42%202.42%200%200%201-.682-1.71c0-.665.267-1.253.735-1.7a2.45%202.45%200%200%201%201.722-.674%202.43%202.43%200%200%201%201.705.675q.318.302.504.683V4.7a1.255%201.255%200%200%201%201.255-1.255h1.744A1.255%201.255%200%200%201%2065.812%204.7v3.335a4.8%204.8%200%200%201%201.526-.246c.938%200%201.817.214%202.59.69a4.47%204.47%200%200%201%201.67%201.743v-.98a1.255%201.255%200%200%201%201.256-1.256h1.777c.233%200%20.451.064.639.174a3.4%203.4%200%200%201%201.567-.372c.346%200%20.861.02%201.285.232a1.25%201.25%200%200%201%20.689%201.004%204.7%204.7%200%200%201%20.853-.588c.795-.44%201.675-.647%202.61-.647%201.385%200%202.65.39%203.525%201.396.836.938%201.168%202.173%201.168%203.528q-.001.515-.056%201.051a1.255%201.255%200%200%201-.947%201.09l.408.952a1.255%201.255%200%200%201-.477%201.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06%200-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8%205.8%200%200%201-.548-2.512q0-.429.053-.843a1.3%201.3%200%200%201-.333-.086l-.166-.004c-.223%200-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255%201.255%200%200%201-1.256%201.256h-1.777a1.255%201.255%200%200%201-1.256-1.256V15.69l-.032.057a4.8%204.8%200%200%201-1.86%201.833%205.04%205.04%200%200%201-2.484.634%204.5%204.5%200%200%201-1.935-.424%201.25%201.25%200%200%201-.764.258h-1.71a1.255%201.255%200%200%201-1.256-1.255V7.687a2.4%202.4%200%200%201-.428.625c.253.23.412.561.412.93v7.553a1.255%201.255%200%200%201-1.256%201.255h-1.843a1.25%201.25%200%200%201-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255%201.255%200%200%201-1.256-1.255v-1.251l-.061.117a4.7%204.7%200%200%201-1.782%201.884%204.77%204.77%200%200%201-2.485.67%205.6%205.6%200%200%201-1.485-.188l.009%202.764a1.255%201.255%200%200%201-1.255%201.259h-1.729a1.255%201.255%200%200%201-1.255-1.255v-3.537a1.255%201.255%200%200%201-1.167.793h-1.679a1.25%201.25%200%200%201-.77-.263%204.5%204.5%200%200%201-1.945.429c-.885%200-1.724-.21-2.495-.632l-.017-.01a5%205%200%200%201-1.081-.836%201.255%201.255%200%200%201-1.254%201.312h-1.81a1.255%201.255%200%200%201-1.228-.99l-.782-3.625-2.044%203.939a1.25%201.25%200%200%201-1.115.676h-.098a1.25%201.25%200%200%201-1.116-.68l-2.061-3.994zM35.92%2016.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033%201.332h1.678V9.242h-1.694l-.033%201.267q-.133-.329-.526-.658l-.032-.028a3.2%203.2%200%200%200-.668-.428l-.27-.12a3.3%203.3%200%200%200-1.235-.23q-1.136-.001-1.974.493a3.36%203.36%200%200%200-1.3%201.382q-.445.89-.444%202.074%200%201.2.51%202.107a3.8%203.8%200%200%200%201.382%201.381%203.9%203.9%200%200%200%201.893.477q.795%200%201.455-.33zm-2.789-5.38q-.576.675-.575%201.762%200%201.102.559%201.794.576.675%201.645.675a2.25%202.25%200%200%200%20.934-.19%202.2%202.2%200%200%200%20.468-.29l.178-.161a2.2%202.2%200%200%200%20.397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2%202.2%200%200%200-.633-.709l-.13-.086-.047-.028a2.1%202.1%200%200%200-1.073-.285q-1.052%200-1.629.692zm2.316%202.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96%200%200%200-.353-.389.85.85%200%200%200-.464-.127c-.4%200-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945%200%20.506.122.801.27.99.097.11.266.224.68.224.303%200%20.504-.09.687-.269zm7.545%201.705a2.6%202.6%200%200%200%20.331.423q.319.33.755.548l.173.074q.65.255%201.49.255%201.02%200%201.844-.493a3.45%203.45%200%200%200%201.316-1.4q.493-.904.493-2.089%200-1.909-.988-2.913-.988-1.02-2.584-1.02-.898%200-1.575.347a3%203%200%200%200-.415.262l-.199.166a3.4%203.4%200%200%200-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296%201.119.297%201.07%200%201.645-.675.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.435%200-.835.16a2%202%200%200%200-.284.136%202%202%200%200%200-.363.254%202.2%202.2%200%200%200-.46.569l-.082.162a2.6%202.6%200%200%200-.213%201.072v.115q0%20.707.296%201.267l.135.211zm.964-.818a1.1%201.1%200%200%200%20.367.385.94.94%200%200%200%20.476.118c.423%200%20.59-.117.687-.23.159-.194.28-.478.28-.95%200-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1%201%200%200%200-.503.135l-.012.007a.86.86%200%200%200-.335.343c-.073.133-.132.324-.132.614v.115a1.4%201.4%200%200%200%20.14.66zm15.7-6.222q.347-.346.346-.856a1.05%201.05%200%200%200-.345-.79%201.18%201.18%200%200%200-.84-.329q-.51%200-.855.33a1.05%201.05%200%200%200-.346.79q0%20.51.346.855.345.346.856.346.51%200%20.839-.346zm4.337%209.314.033-1.332q.191.403.59.747l.098.081a4%204%200%200%200%20.316.224l.223.122a3.2%203.2%200%200%200%201.44.322%203.8%203.8%200%200%200%201.875-.477%203.5%203.5%200%200%200%201.382-1.366q.527-.89.526-2.09%200-1.184-.444-2.073a3.24%203.24%200%200%200-1.283-1.399q-.823-.51-1.942-.51a3.5%203.5%200%200%200-1.527.344l-.086.043-.165.09a3%203%200%200%200-.33.214q-.432.315-.656.707a2%202%200%200%200-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5%202.5%200%200%200%20.566.7q.117.098.245.18l.144.08a2.1%202.1%200%200%200%20.975.232q1.07%200%201.645-.675.576-.69.576-1.778%200-1.102-.576-1.777-.56-.691-1.645-.692a2.2%202.2%200%200%200-1.015.235q-.22.113-.415.282l-.15.142a2.1%202.1%200%200%200-.42.594q-.223.479-.223%201.1v.115q0%20.705.293%201.26zm2.616-.293c.157-.191.28-.479.28-.967%200-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87%200%200%200-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0%20.285.057.499.144.669a1.1%201.1%200%200%200%20.367.405c.137.082.28.123.455.123.423%200%20.59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493%200%20.642.099l.247-1.794q-.196-.099-.717-.099a2.3%202.3%200%200%200-.545.063%202%202%200%200%200-.411.148%202.2%202.2%200%200%200-.4.249%202.5%202.5%200%200%200-.485.499%202.7%202.7%200%200%200-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5%201.5%200%200%201%20.466-.636%202.5%202.5%200%200%201%20.399-.253%202%202%200%200%201%20.224-.099zm9.784%202.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46%203.46%200%200%200-1.4%201.382q-.493.906-.493%202.106%200%201.07.428%201.975.428.89%201.332%201.432.906.526%202.255.526.973%200%201.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954%200-1.497-.444a1.6%201.6%200%200%201-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1%201%200%200%200-.156-.176q-.46-.428-1.316-.428-.986%200-1.494.604-.379.45-.494%201.234zm-27.053%202.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z%22%2F%3E%3Cpath%20fill%3D%22%23fff%22%20d%3D%22m19.63%2011.151-.757-1.71-.345%201.71-1.12%205.644h-1.827L18.083%204.7h.197l3.325%206.533.988%202.19.988-2.19L26.839%204.7h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.93%205.644h-.098l-2.913-5.644zm14.836%205.81q-1.02%200-1.893-.478a3.8%203.8%200%200%201-1.381-1.382q-.51-.906-.51-2.106%200-1.185.444-2.074a3.36%203.36%200%200%201%201.3-1.382q.839-.494%201.974-.494a3.3%203.3%200%200%201%201.234.231%203.3%203.3%200%200%201%20.97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02%201.053a3.17%203.17%200%200%201-1.662.444zm.296-1.482q.938%200%201.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2%202.2%200%200%200-.807-.872%202.1%202.1%200%200%200-1.119-.313q-1.053%200-1.629.692-.575.675-.575%201.76%200%201.103.559%201.795.577.675%201.645.675zm6.521-6.237h1.711v1.4q.906-1.597%202.83-1.597%201.596%200%202.584%201.02.988%201.005.988%202.914%200%201.185-.493%202.09a3.46%203.46%200%200%201-1.316%201.399%203.5%203.5%200%200%201-1.844.493q-.954%200-1.662-.329a2.67%202.67%200%200%201-1.086-.97l.017%205.134h-1.728zm4.048%206.22q1.07%200%201.645-.674.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.592%200-1.12.296-.51.28-.822.823-.296.527-.296%201.234v.115q0%20.708.296%201.267.313.543.823.855.51.296%201.119.297z%22%2F%3E%3Cpath%20fill%3D%22%23e1e3e9%22%20d%3D%22M51.325%204.7h1.86v10.45h3.473v1.646h-5.333zm7.12%204.542h1.843v7.553h-1.843zm.905-1.415a1.16%201.16%200%200%201-.856-.346%201.17%201.17%200%200%201-.346-.856%201.05%201.05%200%200%201%20.346-.79q.346-.329.856-.329.494%200%20.839.33a1.05%201.05%200%200%201%20.345.79%201.16%201.16%200%200%201-.345.855q-.33.346-.84.346zm7.875%209.133a3.17%203.17%200%200%201-1.662-.444q-.723-.46-1.004-1.053l-.033%201.332h-1.71V4.701h1.743v4.657l-.082%201.283q.279-.658%201.086-1.119a3.5%203.5%200%200%201%201.778-.477q1.119%200%201.942.51a3.24%203.24%200%200%201%201.283%201.4q.445.888.444%202.072%200%201.201-.526%202.09a3.5%203.5%200%200%201-1.382%201.366%203.8%203.8%200%200%201-1.876.477zm-.296-1.481q1.069%200%201.645-.675.577-.69.577-1.778%200-1.102-.577-1.776-.56-.691-1.645-.692a2.12%202.12%200%200%200-1.58.659q-.642.641-.642%201.694v.115q0%20.71.296%201.267a2.4%202.4%200%200%200%20.807.872%202.1%202.1%200%200%200%201.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14%202.14%200%200%201%201.349-.46q.527%200%20.724.098l-.247%201.794q-.149-.099-.642-.099-.774%200-1.416.494-.626.493-.626%201.58v3.883h-1.777V9.242zm9.534%207.718q-1.35%200-2.255-.526-.904-.543-1.332-1.432a4.6%204.6%200%200%201-.428-1.975q0-1.2.493-2.106a3.46%203.46%200%200%201%201.4-1.382q.889-.495%202.007-.494%201.744%200%202.584.97.855.956.856%202.7%200%20.444-.05.92h-5.43q.18%201.005.708%201.45.542.443%201.497.443.79%200%201.3-.131a4%204%200%200%200%20.938-.362l.542%201.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728%200-1.991%201.86z%22%2F%3E%3Cpath%20d%3D%22M5.074%2015.948a.484.657%200%200%200-.486.659v1.84a.484.657%200%200%200%20.486.659h4.101a.484.657%200%200%200%20.486-.659v-1.84a.484.657%200%200%200-.486-.659zm3.56%201.16H5.617v.838h3.017z%22%20style%3D%22fill%3A%23fff%3Bfill-rule%3Aevenodd%3Bstroke-width%3A1.03600001%22%2F%3E%3Cg%20style%3D%22stroke-width%3A1.12603545%22%3E%3Cpath%20d%3D%22M-9.408-1.416c-3.833-.025-7.056%202.912-7.08%206.615-.02%203.08%201.653%204.832%203.107%206.268.903.892%201.721%201.74%202.32%202.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87%201.87%200%200%200-.362%201.121l-.011%201.877c-.003.402.104.787.347%201.125.244.338.688.653%201.23.656l4.142.028c.542.003.99-.306%201.238-.641a1.87%201.87%200%200%200%20.363-1.121l.012-1.875a1.87%201.87%200%200%200-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145%201.425-1.983%202.348-2.87%201.473-1.414%203.18-3.149%203.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006%201.1v.002c3.274.02%205.92%202.532%205.9%205.6-.017%202.706-1.39%204.026-2.863%205.44-1.034.994-2.118%202.033-2.814%203.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34%200%200%201-.226.084.34.34%200%200%201-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067%202.7-5.545%205.975-5.523m-.02%202.826c-1.62-.01-2.944%201.315-2.955%202.96-.01%201.646%201.295%202.988%202.916%202.999h.002c1.621.01%202.943-1.316%202.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005%201.1c1.017.006%201.829.83%201.822%201.89s-.83%201.874-1.848%201.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874%201.848-1.868m-2.155%2011.857%204.14.025c.271.002.49.305.487.676l-.013%201.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668%22%20style%3D%22color%3A%23000%3Bfont-style%3Anormal%3Bfont-variant%3Anormal%3Bfont-weight%3A400%3Bfont-stretch%3Anormal%3Bfont-size%3Amedium%3Bline-height%3Anormal%3Bfont-family%3Asans-serif%3Bfont-variant-ligatures%3Anormal%3Bfont-variant-position%3Anormal%3Bfont-variant-caps%3Anormal%3Bfont-variant-numeric%3Anormal%3Bfont-variant-alternates%3Anormal%3Bfont-feature-settings%3Anormal%3Btext-indent%3A0%3Btext-align%3Astart%3Btext-decoration%3Anone%3Btext-decoration-line%3Anone%3Btext-decoration-style%3Asolid%3Btext-decoration-color%3A%23000%3Bletter-spacing%3Anormal%3Bword-spacing%3Anormal%3Btext-transform%3Anone%3Bwriting-mode%3Alr-tb%3Bdirection%3Altr%3Btext-orientation%3Amixed%3Bdominant-baseline%3Aauto%3Bbaseline-shift%3Abaseline%3Btext-anchor%3Astart%3Bwhite-space%3Anormal%3Bshape-padding%3A0%3Bclip-rule%3Aevenodd%3Bdisplay%3Ainline%3Boverflow%3Avisible%3Bvisibility%3Avisible%3Bopacity%3A1%3Bisolation%3Aauto%3Bmix-blend-mode%3Anormal%3Bcolor-interpolation%3AsRGB%3Bcolor-interpolation-filters%3AlinearRGB%3Bsolid-color%3A%23000%3Bsolid-opacity%3A1%3Bvector-effect%3Anone%3Bfill%3A%23000%3Bfill-opacity%3A.4%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-linecap%3Abutt%3Bstroke-linejoin%3Amiter%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-dashoffset%3A0%3Bstroke-opacity%3A1%3Bcolor-rendering%3Aauto%3Bimage-rendering%3Aauto%3Bshape-rendering%3Aauto%3Btext-rendering%3Aauto%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-9.415-.316C-12.69-.338-15.37%202.14-15.39%205.207c-.017%202.716%201.326%204.041%202.78%205.477%201.013%201%202.081%202.055%202.78%203.67l.092.076a.34.34%200%200%200%20.225.086.34.34%200%200%200%20.227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6%201.78-2.64%202.814-3.634%201.473-1.414%202.847-2.733%202.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057%208.784c1.621.011%202.944-1.315%202.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945%201.315-2.955%202.96s1.295%202.989%202.916%203%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23e1e3e9%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-11.594%2015.465c-.27-.002-.492.297-.494.668l-.012%201.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23fff%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E")}a.maplibregl-ctrl-logo.maplibregl-compact{width:14px}@media (forced-colors:active){a.maplibregl-ctrl-logo{background-color:transparent;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2288%22%20height%3D%2223%22%20fill%3D%22none%22%3E%3Cpath%20fill%3D%22%23000%22%20fill-opacity%3D%22.4%22%20fill-rule%3D%22evenodd%22%20d%3D%22M17.408%2016.796h-1.827l2.501-12.095h.198l3.324%206.533.988%202.19.988-2.19%203.258-6.533h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.929%205.644h-.098l-2.914-5.644-.757-1.71-.345%201.71zm1.958-3.42-.726%203.663a1.255%201.255%200%200%201-1.232%201.011h-1.827a1.255%201.255%200%200%201-1.229-1.509l2.501-12.095a1.255%201.255%200%200%201%201.23-1.001h.197a1.25%201.25%200%200%201%201.12.685l3.19%206.273%203.125-6.263a1.25%201.25%200%200%201%201.123-.695h.181a1.255%201.255%200%200%201%201.227.991l1.443%206.71a5%205%200%200%201%20.314-.787l.009-.016a4.6%204.6%200%200%201%201.777-1.887c.782-.46%201.668-.667%202.611-.667a4.6%204.6%200%200%201%201.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255%201.255%200%200%201%201.212.925%201.255%201.255%200%200%201%201.212-.925h1.711c.284%200%20.545.094.755.252.613-.3%201.312-.45%202.075-.45%201.356%200%202.557.445%203.482%201.4q.47.48.763%201.064V4.701a1.255%201.255%200%200%201%201.255-1.255h1.86A1.255%201.255%200%200%201%2054.44%204.7v9.194h2.217c.19%200%20.37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42%202.42%200%200%201-.682-1.71c0-.665.267-1.253.735-1.7a2.45%202.45%200%200%201%201.722-.674%202.43%202.43%200%200%201%201.705.675q.318.302.504.683V4.7a1.255%201.255%200%200%201%201.255-1.255h1.744A1.255%201.255%200%200%201%2065.812%204.7v3.335a4.8%204.8%200%200%201%201.526-.246c.938%200%201.817.214%202.59.69a4.47%204.47%200%200%201%201.67%201.743v-.98a1.255%201.255%200%200%201%201.256-1.256h1.777c.233%200%20.451.064.639.174a3.4%203.4%200%200%201%201.567-.372c.346%200%20.861.02%201.285.232a1.25%201.25%200%200%201%20.689%201.004%204.7%204.7%200%200%201%20.853-.588c.795-.44%201.675-.647%202.61-.647%201.385%200%202.65.39%203.525%201.396.836.938%201.168%202.173%201.168%203.528q-.001.515-.056%201.051a1.255%201.255%200%200%201-.947%201.09l.408.952a1.255%201.255%200%200%201-.477%201.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06%200-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8%205.8%200%200%201-.548-2.512q0-.429.053-.843a1.3%201.3%200%200%201-.333-.086l-.166-.004c-.223%200-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255%201.255%200%200%201-1.256%201.256h-1.777a1.255%201.255%200%200%201-1.256-1.256V15.69l-.032.057a4.8%204.8%200%200%201-1.86%201.833%205.04%205.04%200%200%201-2.484.634%204.5%204.5%200%200%201-1.935-.424%201.25%201.25%200%200%201-.764.258h-1.71a1.255%201.255%200%200%201-1.256-1.255V7.687a2.4%202.4%200%200%201-.428.625c.253.23.412.561.412.93v7.553a1.255%201.255%200%200%201-1.256%201.255h-1.843a1.25%201.25%200%200%201-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255%201.255%200%200%201-1.256-1.255v-1.251l-.061.117a4.7%204.7%200%200%201-1.782%201.884%204.77%204.77%200%200%201-2.485.67%205.6%205.6%200%200%201-1.485-.188l.009%202.764a1.255%201.255%200%200%201-1.255%201.259h-1.729a1.255%201.255%200%200%201-1.255-1.255v-3.537a1.255%201.255%200%200%201-1.167.793h-1.679a1.25%201.25%200%200%201-.77-.263%204.5%204.5%200%200%201-1.945.429c-.885%200-1.724-.21-2.495-.632l-.017-.01a5%205%200%200%201-1.081-.836%201.255%201.255%200%200%201-1.254%201.312h-1.81a1.255%201.255%200%200%201-1.228-.99l-.782-3.625-2.044%203.939a1.25%201.25%200%200%201-1.115.676h-.098a1.25%201.25%200%200%201-1.116-.68l-2.061-3.994zM35.92%2016.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033%201.332h1.678V9.242h-1.694l-.033%201.267q-.133-.329-.526-.658l-.032-.028a3.2%203.2%200%200%200-.668-.428l-.27-.12a3.3%203.3%200%200%200-1.235-.23q-1.136-.001-1.974.493a3.36%203.36%200%200%200-1.3%201.382q-.445.89-.444%202.074%200%201.2.51%202.107a3.8%203.8%200%200%200%201.382%201.381%203.9%203.9%200%200%200%201.893.477q.795%200%201.455-.33zm-2.789-5.38q-.576.675-.575%201.762%200%201.102.559%201.794.576.675%201.645.675a2.25%202.25%200%200%200%20.934-.19%202.2%202.2%200%200%200%20.468-.29l.178-.161a2.2%202.2%200%200%200%20.397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2%202.2%200%200%200-.633-.709l-.13-.086-.047-.028a2.1%202.1%200%200%200-1.073-.285q-1.052%200-1.629.692zm2.316%202.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96%200%200%200-.353-.389.85.85%200%200%200-.464-.127c-.4%200-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945%200%20.506.122.801.27.99.097.11.266.224.68.224.303%200%20.504-.09.687-.269zm7.545%201.705a2.6%202.6%200%200%200%20.331.423q.319.33.755.548l.173.074q.65.255%201.49.255%201.02%200%201.844-.493a3.45%203.45%200%200%200%201.316-1.4q.493-.904.493-2.089%200-1.909-.988-2.913-.988-1.02-2.584-1.02-.898%200-1.575.347a3%203%200%200%200-.415.262l-.199.166a3.4%203.4%200%200%200-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296%201.119.297%201.07%200%201.645-.675.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.435%200-.835.16a2%202%200%200%200-.284.136%202%202%200%200%200-.363.254%202.2%202.2%200%200%200-.46.569l-.082.162a2.6%202.6%200%200%200-.213%201.072v.115q0%20.707.296%201.267l.135.211zm.964-.818a1.1%201.1%200%200%200%20.367.385.94.94%200%200%200%20.476.118c.423%200%20.59-.117.687-.23.159-.194.28-.478.28-.95%200-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1%201%200%200%200-.503.135l-.012.007a.86.86%200%200%200-.335.343c-.073.133-.132.324-.132.614v.115a1.4%201.4%200%200%200%20.14.66zm15.7-6.222q.347-.346.346-.856a1.05%201.05%200%200%200-.345-.79%201.18%201.18%200%200%200-.84-.329q-.51%200-.855.33a1.05%201.05%200%200%200-.346.79q0%20.51.346.855.345.346.856.346.51%200%20.839-.346zm4.337%209.314.033-1.332q.191.403.59.747l.098.081a4%204%200%200%200%20.316.224l.223.122a3.2%203.2%200%200%200%201.44.322%203.8%203.8%200%200%200%201.875-.477%203.5%203.5%200%200%200%201.382-1.366q.527-.89.526-2.09%200-1.184-.444-2.073a3.24%203.24%200%200%200-1.283-1.399q-.823-.51-1.942-.51a3.5%203.5%200%200%200-1.527.344l-.086.043-.165.09a3%203%200%200%200-.33.214q-.432.315-.656.707a2%202%200%200%200-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5%202.5%200%200%200%20.566.7q.117.098.245.18l.144.08a2.1%202.1%200%200%200%20.975.232q1.07%200%201.645-.675.576-.69.576-1.778%200-1.102-.576-1.777-.56-.691-1.645-.692a2.2%202.2%200%200%200-1.015.235q-.22.113-.415.282l-.15.142a2.1%202.1%200%200%200-.42.594q-.223.479-.223%201.1v.115q0%20.705.293%201.26zm2.616-.293c.157-.191.28-.479.28-.967%200-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87%200%200%200-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0%20.285.057.499.144.669a1.1%201.1%200%200%200%20.367.405c.137.082.28.123.455.123.423%200%20.59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493%200%20.642.099l.247-1.794q-.196-.099-.717-.099a2.3%202.3%200%200%200-.545.063%202%202%200%200%200-.411.148%202.2%202.2%200%200%200-.4.249%202.5%202.5%200%200%200-.485.499%202.7%202.7%200%200%200-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5%201.5%200%200%201%20.466-.636%202.5%202.5%200%200%201%20.399-.253%202%202%200%200%201%20.224-.099zm9.784%202.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46%203.46%200%200%200-1.4%201.382q-.493.906-.493%202.106%200%201.07.428%201.975.428.89%201.332%201.432.906.526%202.255.526.973%200%201.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954%200-1.497-.444a1.6%201.6%200%200%201-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1%201%200%200%200-.156-.176q-.46-.428-1.316-.428-.986%200-1.494.604-.379.45-.494%201.234zm-27.053%202.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z%22%2F%3E%3Cpath%20fill%3D%22%23fff%22%20d%3D%22m19.63%2011.151-.757-1.71-.345%201.71-1.12%205.644h-1.827L18.083%204.7h.197l3.325%206.533.988%202.19.988-2.19L26.839%204.7h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.93%205.644h-.098l-2.913-5.644zm14.836%205.81q-1.02%200-1.893-.478a3.8%203.8%200%200%201-1.381-1.382q-.51-.906-.51-2.106%200-1.185.444-2.074a3.36%203.36%200%200%201%201.3-1.382q.839-.494%201.974-.494a3.3%203.3%200%200%201%201.234.231%203.3%203.3%200%200%201%20.97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02%201.053a3.17%203.17%200%200%201-1.662.444zm.296-1.482q.938%200%201.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2%202.2%200%200%200-.807-.872%202.1%202.1%200%200%200-1.119-.313q-1.053%200-1.629.692-.575.675-.575%201.76%200%201.103.559%201.795.577.675%201.645.675zm6.521-6.237h1.711v1.4q.906-1.597%202.83-1.597%201.596%200%202.584%201.02.988%201.005.988%202.914%200%201.185-.493%202.09a3.46%203.46%200%200%201-1.316%201.399%203.5%203.5%200%200%201-1.844.493q-.954%200-1.662-.329a2.67%202.67%200%200%201-1.086-.97l.017%205.134h-1.728zm4.048%206.22q1.07%200%201.645-.674.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.592%200-1.12.296-.51.28-.822.823-.296.527-.296%201.234v.115q0%20.708.296%201.267.313.543.823.855.51.296%201.119.297z%22%2F%3E%3Cpath%20fill%3D%22%23e1e3e9%22%20d%3D%22M51.325%204.7h1.86v10.45h3.473v1.646h-5.333zm7.12%204.542h1.843v7.553h-1.843zm.905-1.415a1.16%201.16%200%200%201-.856-.346%201.17%201.17%200%200%201-.346-.856%201.05%201.05%200%200%201%20.346-.79q.346-.329.856-.329.494%200%20.839.33a1.05%201.05%200%200%201%20.345.79%201.16%201.16%200%200%201-.345.855q-.33.346-.84.346zm7.875%209.133a3.17%203.17%200%200%201-1.662-.444q-.723-.46-1.004-1.053l-.033%201.332h-1.71V4.701h1.743v4.657l-.082%201.283q.279-.658%201.086-1.119a3.5%203.5%200%200%201%201.778-.477q1.119%200%201.942.51a3.24%203.24%200%200%201%201.283%201.4q.445.888.444%202.072%200%201.201-.526%202.09a3.5%203.5%200%200%201-1.382%201.366%203.8%203.8%200%200%201-1.876.477zm-.296-1.481q1.069%200%201.645-.675.577-.69.577-1.778%200-1.102-.577-1.776-.56-.691-1.645-.692a2.12%202.12%200%200%200-1.58.659q-.642.641-.642%201.694v.115q0%20.71.296%201.267a2.4%202.4%200%200%200%20.807.872%202.1%202.1%200%200%200%201.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14%202.14%200%200%201%201.349-.46q.527%200%20.724.098l-.247%201.794q-.149-.099-.642-.099-.774%200-1.416.494-.626.493-.626%201.58v3.883h-1.777V9.242zm9.534%207.718q-1.35%200-2.255-.526-.904-.543-1.332-1.432a4.6%204.6%200%200%201-.428-1.975q0-1.2.493-2.106a3.46%203.46%200%200%201%201.4-1.382q.889-.495%202.007-.494%201.744%200%202.584.97.855.956.856%202.7%200%20.444-.05.92h-5.43q.18%201.005.708%201.45.542.443%201.497.443.79%200%201.3-.131a4%204%200%200%200%20.938-.362l.542%201.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728%200-1.991%201.86z%22%2F%3E%3Cpath%20d%3D%22M5.074%2015.948a.484.657%200%200%200-.486.659v1.84a.484.657%200%200%200%20.486.659h4.101a.484.657%200%200%200%20.486-.659v-1.84a.484.657%200%200%200-.486-.659zm3.56%201.16H5.617v.838h3.017z%22%20style%3D%22fill%3A%23fff%3Bfill-rule%3Aevenodd%3Bstroke-width%3A1.03600001%22%2F%3E%3Cg%20style%3D%22stroke-width%3A1.12603545%22%3E%3Cpath%20d%3D%22M-9.408-1.416c-3.833-.025-7.056%202.912-7.08%206.615-.02%203.08%201.653%204.832%203.107%206.268.903.892%201.721%201.74%202.32%202.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87%201.87%200%200%200-.362%201.121l-.011%201.877c-.003.402.104.787.347%201.125.244.338.688.653%201.23.656l4.142.028c.542.003.99-.306%201.238-.641a1.87%201.87%200%200%200%20.363-1.121l.012-1.875a1.87%201.87%200%200%200-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145%201.425-1.983%202.348-2.87%201.473-1.414%203.18-3.149%203.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006%201.1v.002c3.274.02%205.92%202.532%205.9%205.6-.017%202.706-1.39%204.026-2.863%205.44-1.034.994-2.118%202.033-2.814%203.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34%200%200%201-.226.084.34.34%200%200%201-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067%202.7-5.545%205.975-5.523m-.02%202.826c-1.62-.01-2.944%201.315-2.955%202.96-.01%201.646%201.295%202.988%202.916%202.999h.002c1.621.01%202.943-1.316%202.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005%201.1c1.017.006%201.829.83%201.822%201.89s-.83%201.874-1.848%201.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874%201.848-1.868m-2.155%2011.857%204.14.025c.271.002.49.305.487.676l-.013%201.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668%22%20style%3D%22color%3A%23000%3Bfont-style%3Anormal%3Bfont-variant%3Anormal%3Bfont-weight%3A400%3Bfont-stretch%3Anormal%3Bfont-size%3Amedium%3Bline-height%3Anormal%3Bfont-family%3Asans-serif%3Bfont-variant-ligatures%3Anormal%3Bfont-variant-position%3Anormal%3Bfont-variant-caps%3Anormal%3Bfont-variant-numeric%3Anormal%3Bfont-variant-alternates%3Anormal%3Bfont-feature-settings%3Anormal%3Btext-indent%3A0%3Btext-align%3Astart%3Btext-decoration%3Anone%3Btext-decoration-line%3Anone%3Btext-decoration-style%3Asolid%3Btext-decoration-color%3A%23000%3Bletter-spacing%3Anormal%3Bword-spacing%3Anormal%3Btext-transform%3Anone%3Bwriting-mode%3Alr-tb%3Bdirection%3Altr%3Btext-orientation%3Amixed%3Bdominant-baseline%3Aauto%3Bbaseline-shift%3Abaseline%3Btext-anchor%3Astart%3Bwhite-space%3Anormal%3Bshape-padding%3A0%3Bclip-rule%3Aevenodd%3Bdisplay%3Ainline%3Boverflow%3Avisible%3Bvisibility%3Avisible%3Bopacity%3A1%3Bisolation%3Aauto%3Bmix-blend-mode%3Anormal%3Bcolor-interpolation%3AsRGB%3Bcolor-interpolation-filters%3AlinearRGB%3Bsolid-color%3A%23000%3Bsolid-opacity%3A1%3Bvector-effect%3Anone%3Bfill%3A%23000%3Bfill-opacity%3A.4%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-linecap%3Abutt%3Bstroke-linejoin%3Amiter%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-dashoffset%3A0%3Bstroke-opacity%3A1%3Bcolor-rendering%3Aauto%3Bimage-rendering%3Aauto%3Bshape-rendering%3Aauto%3Btext-rendering%3Aauto%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-9.415-.316C-12.69-.338-15.37%202.14-15.39%205.207c-.017%202.716%201.326%204.041%202.78%205.477%201.013%201%202.081%202.055%202.78%203.67l.092.076a.34.34%200%200%200%20.225.086.34.34%200%200%200%20.227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6%201.78-2.64%202.814-3.634%201.473-1.414%202.847-2.733%202.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057%208.784c1.621.011%202.944-1.315%202.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945%201.315-2.955%202.96s1.295%202.989%202.916%203%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23e1e3e9%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-11.594%2015.465c-.27-.002-.492.297-.494.668l-.012%201.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23fff%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){a.maplibregl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2288%22%20height%3D%2223%22%20fill%3D%22none%22%3E%3Cpath%20fill%3D%22%23000%22%20fill-opacity%3D%22.4%22%20fill-rule%3D%22evenodd%22%20d%3D%22M17.408%2016.796h-1.827l2.501-12.095h.198l3.324%206.533.988%202.19.988-2.19%203.258-6.533h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.929%205.644h-.098l-2.914-5.644-.757-1.71-.345%201.71zm1.958-3.42-.726%203.663a1.255%201.255%200%200%201-1.232%201.011h-1.827a1.255%201.255%200%200%201-1.229-1.509l2.501-12.095a1.255%201.255%200%200%201%201.23-1.001h.197a1.25%201.25%200%200%201%201.12.685l3.19%206.273%203.125-6.263a1.25%201.25%200%200%201%201.123-.695h.181a1.255%201.255%200%200%201%201.227.991l1.443%206.71a5%205%200%200%201%20.314-.787l.009-.016a4.6%204.6%200%200%201%201.777-1.887c.782-.46%201.668-.667%202.611-.667a4.6%204.6%200%200%201%201.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255%201.255%200%200%201%201.212.925%201.255%201.255%200%200%201%201.212-.925h1.711c.284%200%20.545.094.755.252.613-.3%201.312-.45%202.075-.45%201.356%200%202.557.445%203.482%201.4q.47.48.763%201.064V4.701a1.255%201.255%200%200%201%201.255-1.255h1.86A1.255%201.255%200%200%201%2054.44%204.7v9.194h2.217c.19%200%20.37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42%202.42%200%200%201-.682-1.71c0-.665.267-1.253.735-1.7a2.45%202.45%200%200%201%201.722-.674%202.43%202.43%200%200%201%201.705.675q.318.302.504.683V4.7a1.255%201.255%200%200%201%201.255-1.255h1.744A1.255%201.255%200%200%201%2065.812%204.7v3.335a4.8%204.8%200%200%201%201.526-.246c.938%200%201.817.214%202.59.69a4.47%204.47%200%200%201%201.67%201.743v-.98a1.255%201.255%200%200%201%201.256-1.256h1.777c.233%200%20.451.064.639.174a3.4%203.4%200%200%201%201.567-.372c.346%200%20.861.02%201.285.232a1.25%201.25%200%200%201%20.689%201.004%204.7%204.7%200%200%201%20.853-.588c.795-.44%201.675-.647%202.61-.647%201.385%200%202.65.39%203.525%201.396.836.938%201.168%202.173%201.168%203.528q-.001.515-.056%201.051a1.255%201.255%200%200%201-.947%201.09l.408.952a1.255%201.255%200%200%201-.477%201.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06%200-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8%205.8%200%200%201-.548-2.512q0-.429.053-.843a1.3%201.3%200%200%201-.333-.086l-.166-.004c-.223%200-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255%201.255%200%200%201-1.256%201.256h-1.777a1.255%201.255%200%200%201-1.256-1.256V15.69l-.032.057a4.8%204.8%200%200%201-1.86%201.833%205.04%205.04%200%200%201-2.484.634%204.5%204.5%200%200%201-1.935-.424%201.25%201.25%200%200%201-.764.258h-1.71a1.255%201.255%200%200%201-1.256-1.255V7.687a2.4%202.4%200%200%201-.428.625c.253.23.412.561.412.93v7.553a1.255%201.255%200%200%201-1.256%201.255h-1.843a1.25%201.25%200%200%201-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255%201.255%200%200%201-1.256-1.255v-1.251l-.061.117a4.7%204.7%200%200%201-1.782%201.884%204.77%204.77%200%200%201-2.485.67%205.6%205.6%200%200%201-1.485-.188l.009%202.764a1.255%201.255%200%200%201-1.255%201.259h-1.729a1.255%201.255%200%200%201-1.255-1.255v-3.537a1.255%201.255%200%200%201-1.167.793h-1.679a1.25%201.25%200%200%201-.77-.263%204.5%204.5%200%200%201-1.945.429c-.885%200-1.724-.21-2.495-.632l-.017-.01a5%205%200%200%201-1.081-.836%201.255%201.255%200%200%201-1.254%201.312h-1.81a1.255%201.255%200%200%201-1.228-.99l-.782-3.625-2.044%203.939a1.25%201.25%200%200%201-1.115.676h-.098a1.25%201.25%200%200%201-1.116-.68l-2.061-3.994zM35.92%2016.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033%201.332h1.678V9.242h-1.694l-.033%201.267q-.133-.329-.526-.658l-.032-.028a3.2%203.2%200%200%200-.668-.428l-.27-.12a3.3%203.3%200%200%200-1.235-.23q-1.136-.001-1.974.493a3.36%203.36%200%200%200-1.3%201.382q-.445.89-.444%202.074%200%201.2.51%202.107a3.8%203.8%200%200%200%201.382%201.381%203.9%203.9%200%200%200%201.893.477q.795%200%201.455-.33zm-2.789-5.38q-.576.675-.575%201.762%200%201.102.559%201.794.576.675%201.645.675a2.25%202.25%200%200%200%20.934-.19%202.2%202.2%200%200%200%20.468-.29l.178-.161a2.2%202.2%200%200%200%20.397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2%202.2%200%200%200-.633-.709l-.13-.086-.047-.028a2.1%202.1%200%200%200-1.073-.285q-1.052%200-1.629.692zm2.316%202.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96%200%200%200-.353-.389.85.85%200%200%200-.464-.127c-.4%200-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945%200%20.506.122.801.27.99.097.11.266.224.68.224.303%200%20.504-.09.687-.269zm7.545%201.705a2.6%202.6%200%200%200%20.331.423q.319.33.755.548l.173.074q.65.255%201.49.255%201.02%200%201.844-.493a3.45%203.45%200%200%200%201.316-1.4q.493-.904.493-2.089%200-1.909-.988-2.913-.988-1.02-2.584-1.02-.898%200-1.575.347a3%203%200%200%200-.415.262l-.199.166a3.4%203.4%200%200%200-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296%201.119.297%201.07%200%201.645-.675.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.435%200-.835.16a2%202%200%200%200-.284.136%202%202%200%200%200-.363.254%202.2%202.2%200%200%200-.46.569l-.082.162a2.6%202.6%200%200%200-.213%201.072v.115q0%20.707.296%201.267l.135.211zm.964-.818a1.1%201.1%200%200%200%20.367.385.94.94%200%200%200%20.476.118c.423%200%20.59-.117.687-.23.159-.194.28-.478.28-.95%200-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1%201%200%200%200-.503.135l-.012.007a.86.86%200%200%200-.335.343c-.073.133-.132.324-.132.614v.115a1.4%201.4%200%200%200%20.14.66zm15.7-6.222q.347-.346.346-.856a1.05%201.05%200%200%200-.345-.79%201.18%201.18%200%200%200-.84-.329q-.51%200-.855.33a1.05%201.05%200%200%200-.346.79q0%20.51.346.855.345.346.856.346.51%200%20.839-.346zm4.337%209.314.033-1.332q.191.403.59.747l.098.081a4%204%200%200%200%20.316.224l.223.122a3.2%203.2%200%200%200%201.44.322%203.8%203.8%200%200%200%201.875-.477%203.5%203.5%200%200%200%201.382-1.366q.527-.89.526-2.09%200-1.184-.444-2.073a3.24%203.24%200%200%200-1.283-1.399q-.823-.51-1.942-.51a3.5%203.5%200%200%200-1.527.344l-.086.043-.165.09a3%203%200%200%200-.33.214q-.432.315-.656.707a2%202%200%200%200-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5%202.5%200%200%200%20.566.7q.117.098.245.18l.144.08a2.1%202.1%200%200%200%20.975.232q1.07%200%201.645-.675.576-.69.576-1.778%200-1.102-.576-1.777-.56-.691-1.645-.692a2.2%202.2%200%200%200-1.015.235q-.22.113-.415.282l-.15.142a2.1%202.1%200%200%200-.42.594q-.223.479-.223%201.1v.115q0%20.705.293%201.26zm2.616-.293c.157-.191.28-.479.28-.967%200-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87%200%200%200-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0%20.285.057.499.144.669a1.1%201.1%200%200%200%20.367.405c.137.082.28.123.455.123.423%200%20.59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493%200%20.642.099l.247-1.794q-.196-.099-.717-.099a2.3%202.3%200%200%200-.545.063%202%202%200%200%200-.411.148%202.2%202.2%200%200%200-.4.249%202.5%202.5%200%200%200-.485.499%202.7%202.7%200%200%200-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5%201.5%200%200%201%20.466-.636%202.5%202.5%200%200%201%20.399-.253%202%202%200%200%201%20.224-.099zm9.784%202.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46%203.46%200%200%200-1.4%201.382q-.493.906-.493%202.106%200%201.07.428%201.975.428.89%201.332%201.432.906.526%202.255.526.973%200%201.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954%200-1.497-.444a1.6%201.6%200%200%201-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1%201%200%200%200-.156-.176q-.46-.428-1.316-.428-.986%200-1.494.604-.379.45-.494%201.234zm-27.053%202.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z%22%2F%3E%3Cpath%20fill%3D%22%23fff%22%20d%3D%22m19.63%2011.151-.757-1.71-.345%201.71-1.12%205.644h-1.827L18.083%204.7h.197l3.325%206.533.988%202.19.988-2.19L26.839%204.7h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.93%205.644h-.098l-2.913-5.644zm14.836%205.81q-1.02%200-1.893-.478a3.8%203.8%200%200%201-1.381-1.382q-.51-.906-.51-2.106%200-1.185.444-2.074a3.36%203.36%200%200%201%201.3-1.382q.839-.494%201.974-.494a3.3%203.3%200%200%201%201.234.231%203.3%203.3%200%200%201%20.97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02%201.053a3.17%203.17%200%200%201-1.662.444zm.296-1.482q.938%200%201.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2%202.2%200%200%200-.807-.872%202.1%202.1%200%200%200-1.119-.313q-1.053%200-1.629.692-.575.675-.575%201.76%200%201.103.559%201.795.577.675%201.645.675zm6.521-6.237h1.711v1.4q.906-1.597%202.83-1.597%201.596%200%202.584%201.02.988%201.005.988%202.914%200%201.185-.493%202.09a3.46%203.46%200%200%201-1.316%201.399%203.5%203.5%200%200%201-1.844.493q-.954%200-1.662-.329a2.67%202.67%200%200%201-1.086-.97l.017%205.134h-1.728zm4.048%206.22q1.07%200%201.645-.674.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.592%200-1.12.296-.51.28-.822.823-.296.527-.296%201.234v.115q0%20.708.296%201.267.313.543.823.855.51.296%201.119.297z%22%2F%3E%3Cpath%20fill%3D%22%23e1e3e9%22%20d%3D%22M51.325%204.7h1.86v10.45h3.473v1.646h-5.333zm7.12%204.542h1.843v7.553h-1.843zm.905-1.415a1.16%201.16%200%200%201-.856-.346%201.17%201.17%200%200%201-.346-.856%201.05%201.05%200%200%201%20.346-.79q.346-.329.856-.329.494%200%20.839.33a1.05%201.05%200%200%201%20.345.79%201.16%201.16%200%200%201-.345.855q-.33.346-.84.346zm7.875%209.133a3.17%203.17%200%200%201-1.662-.444q-.723-.46-1.004-1.053l-.033%201.332h-1.71V4.701h1.743v4.657l-.082%201.283q.279-.658%201.086-1.119a3.5%203.5%200%200%201%201.778-.477q1.119%200%201.942.51a3.24%203.24%200%200%201%201.283%201.4q.445.888.444%202.072%200%201.201-.526%202.09a3.5%203.5%200%200%201-1.382%201.366%203.8%203.8%200%200%201-1.876.477zm-.296-1.481q1.069%200%201.645-.675.577-.69.577-1.778%200-1.102-.577-1.776-.56-.691-1.645-.692a2.12%202.12%200%200%200-1.58.659q-.642.641-.642%201.694v.115q0%20.71.296%201.267a2.4%202.4%200%200%200%20.807.872%202.1%202.1%200%200%200%201.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14%202.14%200%200%201%201.349-.46q.527%200%20.724.098l-.247%201.794q-.149-.099-.642-.099-.774%200-1.416.494-.626.493-.626%201.58v3.883h-1.777V9.242zm9.534%207.718q-1.35%200-2.255-.526-.904-.543-1.332-1.432a4.6%204.6%200%200%201-.428-1.975q0-1.2.493-2.106a3.46%203.46%200%200%201%201.4-1.382q.889-.495%202.007-.494%201.744%200%202.584.97.855.956.856%202.7%200%20.444-.05.92h-5.43q.18%201.005.708%201.45.542.443%201.497.443.79%200%201.3-.131a4%204%200%200%200%20.938-.362l.542%201.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728%200-1.991%201.86z%22%2F%3E%3Cpath%20d%3D%22M5.074%2015.948a.484.657%200%200%200-.486.659v1.84a.484.657%200%200%200%20.486.659h4.101a.484.657%200%200%200%20.486-.659v-1.84a.484.657%200%200%200-.486-.659zm3.56%201.16H5.617v.838h3.017z%22%20style%3D%22fill%3A%23fff%3Bfill-rule%3Aevenodd%3Bstroke-width%3A1.03600001%22%2F%3E%3Cg%20style%3D%22stroke-width%3A1.12603545%22%3E%3Cpath%20d%3D%22M-9.408-1.416c-3.833-.025-7.056%202.912-7.08%206.615-.02%203.08%201.653%204.832%203.107%206.268.903.892%201.721%201.74%202.32%202.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87%201.87%200%200%200-.362%201.121l-.011%201.877c-.003.402.104.787.347%201.125.244.338.688.653%201.23.656l4.142.028c.542.003.99-.306%201.238-.641a1.87%201.87%200%200%200%20.363-1.121l.012-1.875a1.87%201.87%200%200%200-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145%201.425-1.983%202.348-2.87%201.473-1.414%203.18-3.149%203.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006%201.1v.002c3.274.02%205.92%202.532%205.9%205.6-.017%202.706-1.39%204.026-2.863%205.44-1.034.994-2.118%202.033-2.814%203.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34%200%200%201-.226.084.34.34%200%200%201-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067%202.7-5.545%205.975-5.523m-.02%202.826c-1.62-.01-2.944%201.315-2.955%202.96-.01%201.646%201.295%202.988%202.916%202.999h.002c1.621.01%202.943-1.316%202.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005%201.1c1.017.006%201.829.83%201.822%201.89s-.83%201.874-1.848%201.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874%201.848-1.868m-2.155%2011.857%204.14.025c.271.002.49.305.487.676l-.013%201.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668%22%20style%3D%22color%3A%23000%3Bfont-style%3Anormal%3Bfont-variant%3Anormal%3Bfont-weight%3A400%3Bfont-stretch%3Anormal%3Bfont-size%3Amedium%3Bline-height%3Anormal%3Bfont-family%3Asans-serif%3Bfont-variant-ligatures%3Anormal%3Bfont-variant-position%3Anormal%3Bfont-variant-caps%3Anormal%3Bfont-variant-numeric%3Anormal%3Bfont-variant-alternates%3Anormal%3Bfont-feature-settings%3Anormal%3Btext-indent%3A0%3Btext-align%3Astart%3Btext-decoration%3Anone%3Btext-decoration-line%3Anone%3Btext-decoration-style%3Asolid%3Btext-decoration-color%3A%23000%3Bletter-spacing%3Anormal%3Bword-spacing%3Anormal%3Btext-transform%3Anone%3Bwriting-mode%3Alr-tb%3Bdirection%3Altr%3Btext-orientation%3Amixed%3Bdominant-baseline%3Aauto%3Bbaseline-shift%3Abaseline%3Btext-anchor%3Astart%3Bwhite-space%3Anormal%3Bshape-padding%3A0%3Bclip-rule%3Aevenodd%3Bdisplay%3Ainline%3Boverflow%3Avisible%3Bvisibility%3Avisible%3Bopacity%3A1%3Bisolation%3Aauto%3Bmix-blend-mode%3Anormal%3Bcolor-interpolation%3AsRGB%3Bcolor-interpolation-filters%3AlinearRGB%3Bsolid-color%3A%23000%3Bsolid-opacity%3A1%3Bvector-effect%3Anone%3Bfill%3A%23000%3Bfill-opacity%3A.4%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-linecap%3Abutt%3Bstroke-linejoin%3Amiter%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-dashoffset%3A0%3Bstroke-opacity%3A1%3Bcolor-rendering%3Aauto%3Bimage-rendering%3Aauto%3Bshape-rendering%3Aauto%3Btext-rendering%3Aauto%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-9.415-.316C-12.69-.338-15.37%202.14-15.39%205.207c-.017%202.716%201.326%204.041%202.78%205.477%201.013%201%202.081%202.055%202.78%203.67l.092.076a.34.34%200%200%200%20.225.086.34.34%200%200%200%20.227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6%201.78-2.64%202.814-3.634%201.473-1.414%202.847-2.733%202.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057%208.784c1.621.011%202.944-1.315%202.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945%201.315-2.955%202.96s1.295%202.989%202.916%203%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23e1e3e9%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-11.594%2015.465c-.27-.002-.492.297-.494.668l-.012%201.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23fff%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl.maplibregl-ctrl-attrib{padding:0 5px;background-color:hsla(0,0%,100%,.5);margin:0}@media screen{.maplibregl-ctrl-attrib.maplibregl-compact{min-height:20px;padding:2px 24px 2px 0;margin:10px;position:relative;background-color:#fff;color:#000;border-radius:12px;box-sizing:content-box}.maplibregl-ctrl-attrib.maplibregl-compact-show{padding:2px 28px 2px 8px;visibility:visible}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact-show,.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact-show{padding:2px 8px 2px 28px;border-radius:12px}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-inner{display:none}.maplibregl-ctrl-attrib-button{display:none;cursor:pointer;position:absolute;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20fill-rule%3D%22evenodd%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M4%2010a6%206%200%201%200%2012%200%206%206%200%201%200-12%200m5-3a1%201%200%201%200%202%200%201%201%200%201%200-2%200m0%203a1%201%200%201%201%202%200v3a1%201%200%201%201-2%200%22%2F%3E%3C%2Fsvg%3E");background-color:hsla(0,0%,100%,.5);width:24px;height:24px;box-sizing:border-box;border-radius:12px;outline:none;top:0;right:0;border:0}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;list-style:none}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button::-webkit-details-marker{display:none}.maplibregl-ctrl-bottom-left .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-top-left .maplibregl-ctrl-attrib-button{left:0}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-inner{display:block}.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-button{background-color:rgba(0,0,0,.05)}.maplibregl-ctrl-bottom-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;right:0}.maplibregl-ctrl-top-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{top:0;right:0}.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{top:0;left:0}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;left:0}}@media screen and (forced-colors:active){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22%23fff%22%20fill-rule%3D%22evenodd%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M4%2010a6%206%200%201%200%2012%200%206%206%200%201%200-12%200m5-3a1%201%200%201%200%202%200%201%201%200%201%200-2%200m0%203a1%201%200%201%201%202%200v3a1%201%200%201%201-2%200%22%2F%3E%3C%2Fsvg%3E")}}@media screen and (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20fill-rule%3D%22evenodd%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M4%2010a6%206%200%201%200%2012%200%206%206%200%201%200-12%200m5-3a1%201%200%201%200%202%200%201%201%200%201%200-2%200m0%203a1%201%200%201%201%202%200v3a1%201%200%201%201-2%200%22%2F%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl-attrib a{color:rgba(0,0,0,.75);text-decoration:none}.maplibregl-ctrl-attrib a:hover{color:inherit;text-decoration:underline}.maplibregl-attrib-empty{display:none}.maplibregl-ctrl-scale{background-color:hsla(0,0%,100%,.75);font-size:10px;white-space:nowrap;border-color:#333;border-style:none solid solid;border-width:medium 2px 2px;padding:0 5px;color:#333;box-sizing:border-box}.maplibregl-popup{position:absolute;top:0;left:0;display:flex;will-change:transform;pointer-events:none}.maplibregl-popup-anchor-top,.maplibregl-popup-anchor-top-left,.maplibregl-popup-anchor-top-right{flex-direction:column}.maplibregl-popup-anchor-bottom,.maplibregl-popup-anchor-bottom-left,.maplibregl-popup-anchor-bottom-right{flex-direction:column-reverse}.maplibregl-popup-anchor-left{flex-direction:row}.maplibregl-popup-anchor-right{flex-direction:row-reverse}.maplibregl-popup-tip{width:0;height:0;border:10px solid transparent;z-index:1}.maplibregl-popup-anchor-top .maplibregl-popup-tip{align-self:center;border-top:none;border-bottom-color:#fff}.maplibregl-popup-anchor-top-left .maplibregl-popup-tip{align-self:flex-start;border-top:none;border-left:none;border-bottom-color:#fff}.maplibregl-popup-anchor-top-right .maplibregl-popup-tip{align-self:flex-end;border-top:none;border-right:none;border-bottom-color:#fff}.maplibregl-popup-anchor-bottom .maplibregl-popup-tip{align-self:center;border-bottom:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip{align-self:flex-start;border-bottom:none;border-left:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip{align-self:flex-end;border-bottom:none;border-right:none;border-top-color:#fff}.maplibregl-popup-anchor-left .maplibregl-popup-tip{align-self:center;border-left:none;border-right-color:#fff}.maplibregl-popup-anchor-right .maplibregl-popup-tip{align-self:center;border-right:none;border-left-color:#fff}[dir=rtl] .maplibregl-popup-anchor-left{flex-direction:row-reverse}[dir=rtl] .maplibregl-popup-anchor-right{flex-direction:row}[dir=rtl] .maplibregl-popup-anchor-top-left .maplibregl-popup-tip{align-self:flex-end}[dir=rtl] .maplibregl-popup-anchor-top-right .maplibregl-popup-tip{align-self:flex-start}[dir=rtl] .maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip{align-self:flex-end}[dir=rtl] .maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip{align-self:flex-start}.maplibregl-popup-close-button{position:absolute;right:0;top:0;border:0;border-radius:0 3px 0 0;cursor:pointer;background-color:transparent}.maplibregl-popup-close-button:hover{background-color:rgba(0,0,0,.05)}.maplibregl-popup-content{position:relative;background:#fff;border-radius:3px;box-shadow:0 1px 2px rgba(0,0,0,.1);padding:15px 10px;pointer-events:auto}.maplibregl-popup-anchor-top-left .maplibregl-popup-content{border-top-left-radius:0}.maplibregl-popup-anchor-top-right .maplibregl-popup-content{border-top-right-radius:0}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-content{border-bottom-left-radius:0}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-content{border-bottom-right-radius:0}.maplibregl-popup-track-pointer{display:none}.maplibregl-popup-track-pointer *{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-map:hover .maplibregl-popup-track-pointer{display:flex}.maplibregl-map:active .maplibregl-popup-track-pointer{display:none}.maplibregl-marker{position:absolute;top:0;left:0;will-change:transform;transition:opacity .2s}.maplibregl-marker-draggable{cursor:grab}.maplibregl-user-location-dot,.maplibregl-user-location-dot:before{background-color:#1da1f2;width:15px;height:15px;border-radius:50%}.maplibregl-user-location-dot:before{content:"";position:absolute;animation:maplibregl-user-location-dot-pulse 2s infinite}.maplibregl-user-location-dot:after{border-radius:50%;border:2px solid #fff;content:"";height:19px;left:-2px;position:absolute;top:-2px;width:19px;box-sizing:border-box;box-shadow:0 0 3px rgba(0,0,0,.35)}@media (prefers-reduced-motion:reduce){.maplibregl-user-location-dot:before{animation:none}}@keyframes maplibregl-user-location-dot-pulse{0%{transform:scale(1);opacity:1}70%{transform:scale(3);opacity:0}to{transform:scale(1);opacity:0}}.maplibregl-user-location-dot-stale{background-color:#aaa}.maplibregl-user-location-dot-stale:after{display:none}.maplibregl-user-location-accuracy-circle{background-color:#1da1f233;width:1px;height:1px;border-radius:100%}.maplibregl-crosshair,.maplibregl-crosshair .maplibregl-interactive,.maplibregl-crosshair .maplibregl-interactive:active{cursor:crosshair}.maplibregl-boxzoom{position:absolute;top:0;left:0;width:0;height:0;background:#fff;border:2px dotted #202020;opacity:.5}.maplibregl-cooperative-gesture-screen{background:rgba(0,0,0,.4);position:absolute;inset:0;display:flex;justify-content:center;align-items:center;color:#fff;padding:1rem;font-size:1.4em;line-height:1.2;opacity:0;pointer-events:none;transition:opacity 1s ease 1s;z-index:99999}.maplibregl-cooperative-gesture-screen.maplibregl-show{opacity:1;transition:opacity .05s}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:none}@media (hover:none),(pointer:coarse){.maplibregl-cooperative-gesture-screen .maplibregl-desktop-message{display:none}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:block}}.maplibregl-pseudo-fullscreen{position:fixed!important;width:100%!important;height:100%!important;top:0!important;left:0!important;z-index:99999}',document.head.appendChild(e)}})()});var _t=le(Pt=>{"use strict";var x5=Cu(),hT=vp(),dT=d5(),A5e=Tv().addStyleRule,pT=Tn(),yK=Go(),bK=D1(),_K=pT.extendFlat,w5=pT.extendDeepAll;Pt.modules={};Pt.allCategories={};Pt.allTypes=[];Pt.subplotsRegistry={};Pt.componentsRegistry={};Pt.layoutArrayContainers=[];Pt.layoutArrayRegexes=[];Pt.traceLayoutAttributes={};Pt.localeRegistry={};Pt.apiMethodRegistry={};Pt.collectableSubplotTypes=null;Pt.register=function(r){if(Pt.collectableSubplotTypes=null,r)r&&!Array.isArray(r)&&(r=[r]);else throw new Error("No argument passed to Plotly.register.");for(var t=0;t{"use strict";var TK=v1().timeFormat,kT=Wt(),A5=Cu(),_0=(p1(),Tr(d1)).mod,L1=(Ya(),Tr($a)),Vo=L1.BADNUM,Qi=L1.ONEDAY,Cv=L1.ONEHOUR,b0=L1.ONEMIN,E1=L1.ONESEC,Sv=L1.EPOCHJD,Su=_t(),_T=v1().utcFormat,kK=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\d)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d(:?\d\d)?)?)?)?)?)?\s*$/m,CK=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\di?)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d(:?\d\d)?)?)?)?)?)?\s*$/m,xT=new Date().getFullYear()-70;function Du(e){return e&&Su.componentsRegistry.calendars&&typeof e=="string"&&e!=="gregorian"}fn.dateTick0=function(e,r){var t=SK(e,!!r);if(r<2)return t;var a=fn.dateTime2ms(t,e);return a+=Qi*(r-1),fn.ms2DateTime(a,0,e)};function SK(e,r){return Du(e)?r?Su.getComponentMethod("calendars","CANONICAL_SUNDAY")[e]:Su.getComponentMethod("calendars","CANONICAL_TICK")[e]:r?"2000-01-02":"2000-01-01"}fn.dfltRange=function(e){return Du(e)?Su.getComponentMethod("calendars","DFLTRANGE")[e]:["2000-01-01","2001-01-01"]};fn.isJSDate=function(e){return typeof e=="object"&&e!==null&&typeof e.getTime=="function"};var xp,wp;fn.dateTime2ms=function(e,r){if(fn.isJSDate(e)){var t=e.getTimezoneOffset()*b0,a=(e.getUTCMinutes()-e.getMinutes())*b0+(e.getUTCSeconds()-e.getSeconds())*E1+(e.getUTCMilliseconds()-e.getMilliseconds());if(a){var n=3*b0;t=t-n/2+_0(a-t+n/2,n)}return e=Number(e)-t,e>=xp&&e<=wp?e:Vo}if(typeof e!="string"&&typeof e!="number")return Vo;e=String(e);var i=Du(r),o=e.charAt(0);i&&(o==="G"||o==="g")&&(e=e.slice(1),r="");var l=i&&r.slice(0,7)==="chinese",s=e.match(l?CK:kK);if(!s)return Vo;var u=s[1],f=s[3]||"1",c=Number(s[5]||1),h=Number(s[7]||0),d=Number(s[9]||0),m=Number(s[11]||0);if(i){if(u.length===2)return Vo;u=Number(u);var p;try{var y=Su.getComponentMethod("calendars","getCal")(r);if(l){var b=f.charAt(f.length-1)==="i";f=parseInt(f,10),p=y.newDate(u,y.toMonthIndex(u,f,b),c)}else p=y.newDate(u,Number(f),c)}catch(x){return Vo}return p?(p.toJD()-Sv)*Qi+h*Cv+d*b0+m*E1:Vo}u.length===2?u=(Number(u)+2e3-xT)%100+xT:u=Number(u),f-=1;var C=new Date(Date.UTC(2e3,f,c,h,d));return C.setUTCFullYear(u),C.getUTCMonth()!==f||C.getUTCDate()!==c?Vo:C.getTime()+m*E1};xp=fn.MIN_MS=fn.dateTime2ms("-9999");wp=fn.MAX_MS=fn.dateTime2ms("9999-12-31 23:59:59.9999");fn.isDateTime=function(e,r){return fn.dateTime2ms(e,r)!==Vo};function F1(e,r){return String(e+Math.pow(10,r)).slice(1)}var _p=90*Qi,wT=3*Cv,AT=5*b0;fn.ms2DateTime=function(e,r,t){if(typeof e!="number"||!(e>=xp&&e<=wp))return Vo;r||(r=0);var a=Math.floor(_0(e+.05,1)*10),n=Math.round(e-a/10),i,o,l,s,u,f;if(Du(t)){var c=Math.floor(n/Qi)+Sv,h=Math.floor(_0(e,Qi));try{i=Su.getComponentMethod("calendars","getCal")(t).fromJD(c).formatDate("yyyy-mm-dd")}catch(d){i=_T("G%Y-%m-%d")(new Date(n))}if(i.charAt(0)==="-")for(;i.length<11;)i="-0"+i.slice(1);else for(;i.length<10;)i="0"+i;o=r<_p?Math.floor(h/Cv):0,l=r<_p?Math.floor(h%Cv/b0):0,s=r=xp+Qi&&e<=wp-Qi))return Vo;var r=Math.floor(_0(e+.05,1)*10),t=new Date(Math.round(e-r/10)),a=TK("%Y-%m-%d")(t),n=t.getHours(),i=t.getMinutes(),o=t.getSeconds(),l=t.getUTCMilliseconds()*10+r;return CT(a,n,i,o,l)};function CT(e,r,t,a,n){if((r||t||a||n)&&(e+=" "+F1(r,2)+":"+F1(t,2),(a||n)&&(e+=":"+F1(a,2),n))){for(var i=4;n%10===0;)i-=1,n/=10;e+="."+F1(n,i)}return e}fn.cleanDate=function(e,r,t){if(e===Vo)return r;if(fn.isJSDate(e)||typeof e=="number"&&isFinite(e)){if(Du(t))return A5.error("JS Dates and milliseconds are incompatible with world calendars",e),r;if(e=fn.ms2DateTimeLocal(+e),!e&&r!==void 0)return r}else if(!fn.isDateTime(e,t))return A5.error("unrecognized date",e),r;return e};var DK=/%\d?f/g,FK=/%h/g,EK={1:"1",2:"1",3:"2",4:"2"};function MT(e,r,t,a){e=e.replace(DK,function(i){var o=Math.min(+i.charAt(1)||6,6),l=(r/1e3%1+2).toFixed(o).slice(2).replace(/0+$/,"")||"0";return l});var n=new Date(Math.floor(r+.05));if(e=e.replace(FK,function(){return EK[t("%q")(n)]}),Du(a))try{e=Su.getComponentMethod("calendars","worldCalFmt")(e,r,a)}catch(i){return"Invalid"}return t(e)(n)}var LK=[59,59.9,59.99,59.999,59.9999];function qK(e,r){var t=_0(e+.05,Qi),a=F1(Math.floor(t/Cv),2)+":"+F1(_0(Math.floor(t/b0),60),2);if(r!=="M"){kT(r)||(r=0);var n=Math.min(_0(e/E1,60),LK[r]),i=(100+n).toFixed(r).slice(1);r>0&&(i=i.replace(/0+$/,"").replace(/[\.]$/,"")),a+=":"+i}return a}fn.formatDate=function(e,r,t,a,n,i){if(n=Du(n)&&n,!r)if(t==="y")r=i.year;else if(t==="m")r=i.month;else if(t==="d")r=i.dayMonth+` -`+i.year;else return qK(e,t)+` -`+MT(i.dayMonthYear,e,a,n);return MT(r,e,a,n)};var TT=3*Qi;fn.incrementMonth=function(e,r,t){t=Du(t)&&t;var a=_0(e,Qi);if(e=Math.round(e-a),t)try{var n=Math.round(e/Qi)+Sv,i=Su.getComponentMethod("calendars","getCal")(t),o=i.fromJD(n);return r%12?i.add(o,r,"m"):i.add(o,r/12,"y"),(o.toJD()-Sv)*Qi+a}catch(s){A5.error("invalid ms "+e+" in calendar "+t)}var l=new Date(e+TT);return l.setUTCMonth(l.getUTCMonth()+r)+a-TT};fn.findExactDates=function(e,r){for(var t=0,a=0,n=0,i=0,o,l,s=Du(r)&&Su.getComponentMethod("calendars","getCal")(r),u=0;u{"use strict";DT.exports=function(r){return r}});var T5=le(Fu=>{"use strict";var PK=Wt(),RK=Cu(),zK=Ap(),NK=(Ya(),Tr($a)).BADNUM,M5=1e-9;Fu.findBin=function(e,r,t){if(PK(r.start))return t?Math.ceil((e-r.start)/r.size-M5)-1:Math.floor((e-r.start)/r.size+M5);var a=0,n=r.length,i=0,o=n>1?(r[n-1]-r[0])/(n-1):1,l,s;for(o>=0?s=t?BK:IK:s=t?OK:HK,e+=o*M5*(t?-1:1)*(o>=0?1:-1);a90&&RK.log("Long binary search..."),a-1};function BK(e,r){return er}function OK(e,r){return e>=r}Fu.sorterAsc=function(e,r){return e-r};Fu.sorterDes=function(e,r){return r-e};Fu.distinctVals=function(e){var r=e.slice();r.sort(Fu.sorterAsc);var t;for(t=r.length-1;t>-1&&r[t]===NK;t--);for(var a=r[t]-r[0]||1,n=a/(t||1)/1e4,i=[],o,l=0;l<=t;l++){var s=r[l],u=s-o;o===void 0?(i.push(s),o=s):u>n&&(a=Math.min(a,u),i.push(s),o=s)}return{vals:i,minDiff:a}};Fu.roundUp=function(e,r,t){for(var a=0,n=r.length-1,i,o=0,l=t?0:1,s=t?1:0,u=t?Math.ceil:Math.floor;a0&&(a=1),t&&a)return e.sort(r)}return a?e:e.reverse()};Fu.findIndexOfMin=function(e,r){r=r||zK;for(var t=1/0,a,n=0;nGK});function UK(e){return Object.keys(e).sort()}var GK,Tp=Ia(()=>{"use strict";GK=UK});var FT=le(cn=>{"use strict";var Dv=Wt(),YK=$i().isArrayOrTypedArray;cn.aggNums=function(e,r,t,a){var n,i;if((!a||a>t.length)&&(a=t.length),Dv(r)||(r=!1),YK(t[0])){for(i=new Array(a),n=0;ne.length-1)return e[e.length-1];var t=r%1;return t*e[Math.ceil(r)]+(1-t)*e[Math.floor(r)]}});var RT=le((D5e,PT)=>{"use strict";var ET=(p1(),Tr(d1)),k5=ET.mod,VK=ET.modHalf,Fv=Math.PI,x0=2*Fv;function XK(e){return e/180*Fv}function jK(e){return e/Fv*180}function C5(e){return Math.abs(e[1]-e[0])>x0-1e-14}function LT(e,r){return VK(r-e,x0)}function WK(e,r){return Math.abs(LT(e,r))}function qT(e,r){if(C5(r))return!0;var t,a;r[0]a&&(a+=x0);var n=k5(e,x0),i=n+x0;return n>=t&&n<=a||i>=t&&i<=a}function ZK(e,r,t,a){if(!qT(r,a))return!1;var n,i;return t[0]=n&&e<=i}function S5(e,r,t,a,n,i,o){n=n||0,i=i||0;var l=C5([t,a]),s,u,f,c,h;l?(s=0,u=Fv,f=x0):t{"use strict";Vf.isLeftAnchor=function(r){return r.xanchor==="left"||r.xanchor==="auto"&&r.x<=1/3};Vf.isCenterAnchor=function(r){return r.xanchor==="center"||r.xanchor==="auto"&&r.x>1/3&&r.x<2/3};Vf.isRightAnchor=function(r){return r.xanchor==="right"||r.xanchor==="auto"&&r.x>=2/3};Vf.isTopAnchor=function(r){return r.yanchor==="top"||r.yanchor==="auto"&&r.y>=2/3};Vf.isMiddleAnchor=function(r){return r.yanchor==="middle"||r.yanchor==="auto"&&r.y>1/3&&r.y<2/3};Vf.isBottomAnchor=function(r){return r.yanchor==="bottom"||r.yanchor==="auto"&&r.y<=1/3}});var IT=le(Xf=>{"use strict";var D5=(p1(),Tr(d1)).mod;Xf.segmentsIntersect=BT;function BT(e,r,t,a,n,i,o,l){var s=t-e,u=n-e,f=o-n,c=a-r,h=i-r,d=l-i,m=s*d-f*c;if(m===0)return null;var p=(u*d-f*h)/m,y=(u*c-s*h)/m;return y<0||y>1||p<0||p>1?null:{x:e+s*p,y:r+c*p}}Xf.segmentDistance=function(r,t,a,n,i,o,l,s){if(BT(r,t,a,n,i,o,l,s))return 0;var u=a-r,f=n-t,c=l-i,h=s-o,d=u*u+f*f,m=c*c+h*h,p=Math.min(kp(u,f,d,i-r,o-t),kp(u,f,d,l-r,s-t),kp(c,h,m,r-i,t-o),kp(c,h,m,a-i,n-o));return Math.sqrt(p)};function kp(e,r,t,a,n){var i=a*e+n*r;if(i<0)return a*a+n*n;if(i>t){var o=a-e,l=n-r;return o*o+l*l}else{var s=a*r-n*e;return s*s/t}}var Cp,F5,NT;Xf.getTextLocation=function(r,t,a,n){if((r!==F5||n!==NT)&&(Cp={},F5=r,NT=n),Cp[a])return Cp[a];var i=r.getPointAtLength(D5(a-n/2,t)),o=r.getPointAtLength(D5(a+n/2,t)),l=Math.atan((o.y-i.y)/(o.x-i.x)),s=r.getPointAtLength(D5(a,t)),u=(s.x*4+i.x+o.x)/6,f=(s.y*4+i.y+o.y)/6,c={x:u,y:f,theta:l};return Cp[a]=c,c};Xf.clearLocationCache=function(){F5=null};Xf.getVisibleSegment=function(r,t,a){var n=t.left,i=t.right,o=t.top,l=t.bottom,s=0,u=r.getTotalLength(),f=u,c,h;function d(p){var y=r.getPointAtLength(p);p===0?c=y:p===u&&(h=y);var b=y.xi?y.x-i:0,C=y.yl?y.y-l:0;return Math.sqrt(b*b+C*C)}for(var m=d(s);m;){if(s+=m+a,s>f)return;m=d(s)}for(m=d(f);m;){if(f-=m+a,s>f)return;m=d(f)}return{min:s,max:f,len:f-s,total:u,isClosed:s===0&&f===u&&Math.abs(c.x-h.x)<.1&&Math.abs(c.y-h.y)<.1}};Xf.findPointOnPath=function(r,t,a,n){n=n||{};for(var i=n.pathLength||r.getTotalLength(),o=n.tolerance||.001,l=n.iterationLimit||30,s=r.getPointAtLength(0)[a]>r.getPointAtLength(i)[a]?-1:1,u=0,f=0,c=i,h,d,m;u0?c=h:f=h,u++}return d}});var Sp=le(Ev=>{"use strict";var Eu={};Ev.throttle=function(r,t,a){var n=Eu[r],i=Date.now();if(!n){for(var o in Eu)Eu[o].tsn.ts+t){l();return}n.timer=setTimeout(function(){l(),n.timer=null},t)};Ev.done=function(e){var r=Eu[e];return!r||!r.timer?Promise.resolve():new Promise(function(t){var a=r.onDone;r.onDone=function(){a&&a(),t(),r.onDone=null}})};Ev.clear=function(e){if(e)HT(Eu[e]),delete Eu[e];else for(var r in Eu)Ev.clear(r)};function HT(e){e&&e.timer!==null&&(clearTimeout(e.timer),e.timer=null)}});var UT=le((q5e,OT)=>{"use strict";OT.exports=function(r){r._clearResponsive&&(r._clearResponsive(),delete r._clearResponsive)}});var GT=le((P5e,Dp)=>{"use strict";Dp.exports=E5;Dp.exports.isMobile=E5;Dp.exports.default=E5;var QK=/(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|redmi|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,eQ=/CrOS/,rQ=/android|ipad|playbook|silk/i;function E5(e){e||(e={});let r=e.ua;if(!r&&typeof navigator!="undefined"&&(r=navigator.userAgent),r&&r.headers&&typeof r.headers["user-agent"]=="string"&&(r=r.headers["user-agent"]),typeof r!="string")return!1;let t=QK.test(r)&&!eQ.test(r)||!!e.tablet&&rQ.test(r);return!t&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&r.indexOf("Macintosh")!==-1&&r.indexOf("Safari")!==-1&&(t=!0),t}});var VT=le((R5e,YT)=>{"use strict";var tQ=Wt(),aQ=GT();YT.exports=function(r){var t;if(r&&r.hasOwnProperty("userAgent")?t=r.userAgent:t=nQ(),typeof t!="string")return!0;var a=aQ({ua:{headers:{"user-agent":t}},tablet:!0,featureDetect:!1});if(!a)for(var n=t.split(" "),i=1;i-1;l--){var s=n[l];if(s.slice(0,8)==="Version/"){var u=s.slice(8).split(".")[0];if(tQ(u)&&(u=+u),u>=13)return!0}}}return a};function nQ(){var e;return typeof navigator!="undefined"&&(e=navigator.userAgent),e&&e.headers&&typeof e.headers["user-agent"]=="string"&&(e=e.headers["user-agent"]),e}});var jT=le((z5e,XT)=>{"use strict";var iQ=Ft();XT.exports=function(r,t,a){var n=r.selectAll("g."+a.replace(/\s/g,".")).data(t,function(o){return o[0].trace.uid});n.exit().remove(),n.enter().append("g").attr("class",a),n.order();var i=r.classed("rangeplot")?"nodeRangePlot3":"node3";return n.each(function(o){o[0][i]=iQ.select(this)}),n}});var ZT=le((N5e,WT)=>{"use strict";var oQ=_t();WT.exports=function(r,t){for(var a=r._context.locale,n=0;n<2;n++){for(var i=r._context.locales,o=0;o<2;o++){var l=(i[a]||{}).dictionary;if(l){var s=l[t];if(s)return s}i=oQ.localeRegistry}var u=a.split("-")[0];if(u===a)break;a=u}return t}});var JT=le((B5e,$T)=>{"use strict";$T.exports=function(r){for(var t={},a=[],n=0,i=0;i{"use strict";KT.exports=function(r){for(var t=uQ(r)?sQ:lQ,a=[],n=0;n{"use strict";ek.exports=function(r,t){if(!t)return r;var a=1/Math.abs(t),n=a>1?(a*r+a*t)/a:r+t,i=String(n).length;if(i>16){var o=String(t).length,l=String(r).length;if(i>=l+o){var s=parseFloat(n).toPrecision(12);s.indexOf("e+")===-1&&(n=+s)}}return n}});var ak={};Ha(ak,{default:()=>vQ});function cQ(e){return typeof e=="string"&&(e=e.replace(fQ,"")),(0,tk.default)(e)?Number(e):void 0}var tk,fQ,vQ,nk=Ia(()=>{"use strict";tk=q_(Wt());Ya();fQ=/^['"%,$#\s']+|[, ]|['"%,$#\s']+$/g;vQ=cQ});var lk=le((U5e,ok)=>{"use strict";var hQ=/<[^>]*>/g,dQ=/[\p{S}\p{P}]/gu,pQ=/[\p{Cc}\p{Cf}\uFE00-\uFE0F\u20E3]/gu,mQ=/�/g,gQ=/\s+/g,Fp="-",ik=Fp.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),yQ=new RegExp(ik+"{3,}","g"),bQ=new RegExp(ik+"$","g"),_Q=60;function xQ(e){return typeof e.toWellFormed=="function"?e.toWellFormed():new TextDecoder().decode(new TextEncoder().encode(e))}ok.exports=function(r,t=_Q){var a=xQ(r!=null?r:"").replace(mQ,"").replace(hQ," ").replace(dQ,n=>n===Fp?n:"").toLowerCase().trim().replace(gQ,Fp).replace(pQ,"").replace(yQ,Fp);return a.length<=t?a:Array.from(a).slice(0,t).join("").replace(bQ,"")}});var mr=le((G5e,bk)=>{"use strict";var Lv=Ft(),wQ=v1().utcFormat,AQ=ky().format,hk=Wt(),dk=(Ya(),Tr($a)),pk=dk.FP_SAFE,MQ=-pk,sk=dk.BADNUM,Ee={};bk.exports=Ee;Ee.adjustFormat=function(r){if(!r||/^\d[.]\df/.test(r)||/[.]\d%/.test(r))return r;if(r==="0.f")return"~f";if(/^\d%/.test(r))return"~%";if(/^\ds/.test(r))return"~s";var t=(r.match(/^[+\-( ]?/)||[""])[0],a=r.slice(t.length);return!/^[~,.0$#]/.test(a)&&/[&fps]/.test(a)?t+"~"+a:r};var uk={};Ee.warnBadFormat=function(e){var r=String(e);uk[r]||(uk[r]=1,Ee.warn('encountered bad format: "'+r+'"'))};Ee.noFormat=function(e){return String(e)};Ee.numberFormat=function(e){var r;try{r=AQ(Ee.adjustFormat(e))}catch(t){return Ee.warnBadFormat(e),Ee.noFormat}return r};Ee.nestedProperty=ev();Ee.keyedContainer=tx();Ee.relativeAttr=nx();Ee.isPlainObject=c0();Ee.toLogRange=Pd();Ee.relinkPrivateKeys=sx();var w0=$i();Ee.isArrayBuffer=w0.isArrayBuffer;Ee.isTypedArray=w0.isTypedArray;Ee.isArrayOrTypedArray=w0.isArrayOrTypedArray;Ee.isArray1D=w0.isArray1D;Ee.ensureArray=w0.ensureArray;Ee.concat=w0.concat;Ee.maxRowLength=w0.maxRowLength;Ee.minRowLength=w0.minRowLength;var mk=(p1(),Tr(d1));Ee.mod=mk.mod;Ee.modHalf=mk.modHalf;var A0=DA();Ee.valObjectMeta=A0.valObjectMeta;Ee.coerce=A0.coerce;Ee.coerce2=A0.coerce2;Ee.coerceFont=A0.coerceFont;Ee.coercePattern=A0.coercePattern;Ee.coerceHoverinfo=A0.coerceHoverinfo;Ee.coerceSelectionMarkerOpacity=A0.coerceSelectionMarkerOpacity;Ee.validate=A0.validate;var yo=ST();Ee.dateTime2ms=yo.dateTime2ms;Ee.isDateTime=yo.isDateTime;Ee.ms2DateTime=yo.ms2DateTime;Ee.ms2DateTimeLocal=yo.ms2DateTimeLocal;Ee.cleanDate=yo.cleanDate;Ee.isJSDate=yo.isJSDate;Ee.formatDate=yo.formatDate;Ee.incrementMonth=yo.incrementMonth;Ee.dateTick0=yo.dateTick0;Ee.dfltRange=yo.dfltRange;Ee.findExactDates=yo.findExactDates;Ee.MIN_MS=yo.MIN_MS;Ee.MAX_MS=yo.MAX_MS;var jf=T5();Ee.findBin=jf.findBin;Ee.sorterAsc=jf.sorterAsc;Ee.sorterDes=jf.sorterDes;Ee.distinctVals=jf.distinctVals;Ee.roundUp=jf.roundUp;Ee.sort=jf.sort;Ee.findIndexOfMin=jf.findIndexOfMin;Ee.sortObjectKeys=(Tp(),Tr(Mp)).default;var Lu=FT();Ee.aggNums=Lu.aggNums;Ee.len=Lu.len;Ee.mean=Lu.mean;Ee.geometricMean=Lu.geometricMean;Ee.median=Lu.median;Ee.midRange=Lu.midRange;Ee.variance=Lu.variance;Ee.stdev=Lu.stdev;Ee.interp=Lu.interp;var Bl=hp();Ee.init2dArray=Bl.init2dArray;Ee.transposeRagged=Bl.transposeRagged;Ee.dot=Bl.dot;Ee.translationMatrix=Bl.translationMatrix;Ee.rotationMatrix=Bl.rotationMatrix;Ee.rotationXYMatrix=Bl.rotationXYMatrix;Ee.apply3DTransform=Bl.apply3DTransform;Ee.apply2DTransform=Bl.apply2DTransform;Ee.apply2DTransform2=Bl.apply2DTransform2;Ee.convertCssMatrix=Bl.convertCssMatrix;Ee.inverseTransformMatrix=Bl.inverseTransformMatrix;var Ss=RT();Ee.deg2rad=Ss.deg2rad;Ee.rad2deg=Ss.rad2deg;Ee.angleDelta=Ss.angleDelta;Ee.angleDist=Ss.angleDist;Ee.isFullCircle=Ss.isFullCircle;Ee.isAngleInsideSector=Ss.isAngleInsideSector;Ee.isPtInsideSector=Ss.isPtInsideSector;Ee.pathArc=Ss.pathArc;Ee.pathSector=Ss.pathSector;Ee.pathAnnulus=Ss.pathAnnulus;var P1=zT();Ee.isLeftAnchor=P1.isLeftAnchor;Ee.isCenterAnchor=P1.isCenterAnchor;Ee.isRightAnchor=P1.isRightAnchor;Ee.isTopAnchor=P1.isTopAnchor;Ee.isMiddleAnchor=P1.isMiddleAnchor;Ee.isBottomAnchor=P1.isBottomAnchor;var R1=IT();Ee.segmentsIntersect=R1.segmentsIntersect;Ee.segmentDistance=R1.segmentDistance;Ee.getTextLocation=R1.getTextLocation;Ee.clearLocationCache=R1.clearLocationCache;Ee.getVisibleSegment=R1.getVisibleSegment;Ee.findPointOnPath=R1.findPointOnPath;var qp=Tn();Ee.extendFlat=qp.extendFlat;Ee.extendDeep=qp.extendDeep;Ee.extendDeepAll=qp.extendDeepAll;Ee.extendDeepNoArrays=qp.extendDeepNoArrays;var L5=Cu();Ee.log=L5.log;Ee.warn=L5.warn;Ee.error=L5.error;var TQ=(k1(),Tr(Mv));Ee.counterRegex=TQ.counter;var q5=Sp();Ee.throttle=q5.throttle;Ee.throttleDone=q5.done;Ee.clearThrottle=q5.clear;var Il=Tv();Ee.getGraphDiv=Il.getGraphDiv;Ee.isPlotDiv=Il.isPlotDiv;Ee.removeElement=Il.removeElement;Ee.addStyleRule=Il.addStyleRule;Ee.addRelatedStyleRule=Il.addRelatedStyleRule;Ee.deleteRelatedStyleRule=Il.deleteRelatedStyleRule;Ee.setStyleOnHover=Il.setStyleOnHover;Ee.getFullTransformMatrix=Il.getFullTransformMatrix;Ee.getElementTransformMatrix=Il.getElementTransformMatrix;Ee.getElementAndAncestors=Il.getElementAndAncestors;Ee.equalDomRects=Il.equalDomRects;Ee.clearResponsive=UT();Ee.preserveDrawingBuffer=VT();Ee.makeTraceGroups=jT();Ee._=ZT();Ee.notifier=i5();Ee.filterUnique=JT();Ee.filterVisible=QT();Ee.pushUnique=d5();Ee.increment=rk();Ee.cleanNumber=(nk(),Tr(ak)).default;Ee.slugify=lk();Ee.ensureNumber=function(r){return hk(r)?(r=Number(r),r>pk||r=r?!1:hk(e)&&e>=0&&e%1===0};Ee.noop=vp();Ee.identity=Ap();Ee.repeat=function(e,r){for(var t=new Array(r),a=0;at?Math.max(t,Math.min(r,e)):Math.max(r,Math.min(t,e))};Ee.bBoxIntersect=function(e,r,t){return t=t||0,e.left<=r.right+t&&r.left<=e.right+t&&e.top<=r.bottom+t&&r.top<=e.bottom+t};Ee.simpleMap=function(e,r,t,a,n){for(var i=e.length,o=new Array(i),l=0;l=Math.pow(2,t)?n>10?(Ee.warn("randstr failed uniqueness"),o):e(r,t,a,(n||0)+1):o};Ee.OptionControl=function(e,r){e||(e={}),r||(r="opt");var t={};return t.optionList=[],t._newoption=function(a){a[r]=e,t[a.name]=a,t.optionList.push(a)},t["_"+r]=e,t};Ee.smooth=function(e,r){if(r=Math.round(r)||0,r<2)return e;var t=e.length,a=2*t,n=2*r-1,i=new Array(n),o=new Array(t),l,s,u,f;for(l=0;l=a&&(u-=a*Math.floor(u/a)),u<0?u=-1-u:u>=t&&(u=a-1-u),f+=e[u]*i[s];o[l]=f}return o};Ee.syncOrAsync=function(e,r,t){var a,n;function i(){return Ee.syncOrAsync(e,r,t)}for(;e.length;)if(n=e.splice(0,1)[0],a=n(r),a&&a.then)return a.then(i);return t&&t(r)};Ee.stripTrailingSlash=function(e){return e.slice(-1)==="/"?e.slice(0,-1):e};Ee.noneOrAll=function(e,r,t){if(e){var a=!1,n=!0,i,o;for(i=0;i0?n:0})};Ee.fillArray=function(e,r,t,a){if(a=a||Ee.identity,Ee.isArrayOrTypedArray(e))for(var n=0;nSQ.test(window.navigator.userAgent);var DQ=/Firefox\/(\d+)\.\d+/;Ee.getFirefoxVersion=function(){var e=DQ.exec(window.navigator.userAgent);if(e&&e.length===2){var r=parseInt(e[1]);if(!isNaN(r))return r}return null};Ee.isD3Selection=function(e){return e instanceof Lv.selection};Ee.ensureSingle=function(e,r,t,a){var n=e.select(r+(t?"."+t:""));if(n.size())return n;var i=e.append(r);return t&&i.classed(t,!0),a&&i.call(a),i};Ee.ensureSingleById=function(e,r,t,a){var n=e.select(r+"#"+t);if(n.size())return n;var i=e.append(r).attr("id",t);return a&&i.call(a),i};Ee.objectFromPath=function(e,r){for(var t=e.split("."),a,n=a={},i=0;i1?n+o[1]:"";if(i&&(o.length>1||l.length>4||t))for(;a.test(l);)l=l.replace(a,"$1"+i+"$2");return l+s};Ee.TEMPLATE_STRING_REGEX=/%{([^\s%{}:]*)([:|\|][^}]*)?}/g;var yk=/^\w*$/;Ee.templateString=function(e,r){var t={};return e.replace(Ee.TEMPLATE_STRING_REGEX,function(a,n){var i;return yk.test(n)?i=r[n]:(t[n]=t[n]||Ee.nestedProperty(r,n).get,i=t[n](!0)),i!==void 0?i:""})};var LQ={max:10,count:0,name:"hovertemplate"};Ee.hovertemplateString=e=>P5(Ba(da({},e),{opts:LQ}));var qQ={max:10,count:0,name:"texttemplate"};Ee.texttemplateString=e=>P5(Ba(da({},e),{opts:qQ}));var PQ=/^(\S+)([\*\/])(-?\d+(\.\d+)?)$/;function RQ(e){var r=e.match(PQ);return r?{key:r[1],op:r[2],number:Number(r[3])}:{key:e,op:null,number:null}}var zQ={max:10,count:0,name:"texttemplate",parseMultDiv:!0};Ee.texttemplateStringForShapes=e=>P5(Ba(da({},e),{opts:zQ}));var fk=/^[:|\|]/;function P5({data:e=[],locale:r,fallback:t,labels:a={},opts:n,template:i}){return i.replace(Ee.TEMPLATE_STRING_REGEX,(o,l,s)=>{let u=["xother","yother"].includes(l),f=["_xother","_yother"].includes(l),c=["_xother_","_yother_"].includes(l),h=["xother_","yother_"].includes(l),d=u||f||h||c;(f||c)&&(l=l.substring(1)),(h||c)&&(l=l.substring(0,l.length-1));let m=null,p=null;if(n.parseMultDiv){var y=RQ(l);l=y.key,m=y.op,p=y.number}let b;if(d){if(a[l]===void 0)return"";b=a[l]}else for(let M of e)if(M){if(M.hasOwnProperty(l)){b=M[l];break}if(yk.test(l)||(b=Ee.nestedProperty(M,l).get(!0)),b!==void 0)break}if(b===void 0){let{count:M,max:T,name:A}=n,E=t===!1?o:t;return M=Lp&&o<=ck,u=l>=Lp&&l<=ck;if(s&&(a=10*a+o-Lp),u&&(n=10*n+l-Lp),!s||!u){if(a!==n)return a-n;if(o!==l)return o-l}}return n-a};var q1=2e9;Ee.seedPseudoRandom=function(){q1=2e9};Ee.pseudoRandom=function(){var e=q1;return q1=(69069*q1+1)%4294967296,Math.abs(q1-e)<429496729?Ee.pseudoRandom():q1/4294967296};Ee.fillText=function(e,r,t){var a=Array.isArray(t)?function(o){t.push(o)}:function(o){t.text=o},n=Ee.extractOption(e,r,"htx","hovertext");if(Ee.isValidTextValue(n))return a(n);var i=Ee.extractOption(e,r,"tx","text");if(Ee.isValidTextValue(i))return a(i)};Ee.isValidTextValue=function(e){return e||e===0};Ee.formatPercent=function(e,r){r=r||0;for(var t=(Math.round(100*e*Math.pow(10,r))*Math.pow(.1,r)).toFixed(r)+"%",a=0;a1&&(u=1):u=0,Ee.strTranslate(n-u*(t+o),i-u*(a+l))+Ee.strScale(u)+(s?"rotate("+s+(r?"":" "+t+" "+a)+")":"")};Ee.setTransormAndDisplay=function(e,r){e.attr("transform",Ee.getTextTransform(r)),e.style("display",r.scale?null:"none")};Ee.ensureUniformFontSize=function(e,r){var t=Ee.extendFlat({},r);return t.size=Math.max(r.size,e._fullLayout.uniformtext.minsize||0),t};Ee.join2=function(e,r,t){var a=e.length;return a>1?e.slice(0,-1).join(r)+t+e[a-1]:e.join(r)};Ee.bigFont=function(e){return Math.round(1.2*e)};var vk=Ee.getFirefoxVersion(),NQ=vk!==null&&vk<86;Ee.getPositionFromD3Event=function(){return NQ?[Lv.event.layerX,Lv.event.layerY]:[Lv.event.offsetX,Lv.event.offsetY]}});var wk=le(()=>{"use strict";var BQ=mr(),_k={"X,X div":'direction:ltr;font-family:"Open Sans",verdana,arial,sans-serif;margin:0;padding:0;border: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 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:focus-within .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-group a":"display:grid;place-content:center;","X .modebar-btn":"position:relative;font-size:16px;padding:3px 4px;height:22px;cursor:pointer;line-height:normal;box-sizing:border-box;border:none;background:rgba(0,0,0,0);","X .modebar-btn svg":"position:relative;","X .modebar-btn:focus-visible":"outline:1px solid #000;outline-offset:1px;border-radius:3px;","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;","X .plotly-cloud-dialog":'font-family:"Open Sans",verdana,arial,sans-serif;position:absolute;top:0;left:0;width:100%;height:100%;z-index:1001;display:flex;align-items:center;justify-content:center;background-color:rgba(0,0,0,.4);',"X .plotly-cloud-dialog .plotly-cloud-dialog-box":"box-sizing:border-box;min-width:300px;max-width:420px;padding:20px 24px;background-color:#fff;border:1px solid #e0e2e5;border-radius:4px;box-shadow:0 4px 16px rgba(0,0,0,.25);font-size:13px;color:#2a3f5f;","X .plotly-cloud-dialog .plotly-cloud-dialog-title":"font-size:16px;font-weight:bold;margin-bottom:12px;","X .plotly-cloud-dialog .plotly-cloud-dialog-message":"line-height:1.5;overflow-wrap:break-word;word-wrap:break-word;","X .plotly-cloud-dialog .plotly-cloud-dialog-message--hostname":"font-weight:bold;text-decoration:underline;","X .plotly-cloud-dialog .plotly-cloud-dialog-message--account":"margin-top:16px;padding:8px;border-radius:3px;font-size:.9em;background-color:#edf1f8;","X .plotly-cloud-dialog .plotly-cloud-dialog-buttons":"display:flex;justify-content:flex-end;margin-top:20px;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn":"font-family:inherit;font-size:13px;padding:7px 16px;margin-left:8px;border-radius:3px;border:1px solid rgba(0,0,0,0);cursor:pointer;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn:focus-visible":"outline:2px solid #447adb;outline-offset:1px;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn--cancel":"background-color:#f3f3f3;margin-left:auto;color:#777;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn--cancel:hover":"background-color:#e0e2e5;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn--confirm":"background-color:#447adb;color:#fff;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn--confirm:hover":"background-color:#1d3b84;",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(R5 in _k)xk=R5.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier"),BQ.addStyleRule(xk,_k[R5]);var xk,R5});var z5=le((j5e,Ak)=>{Ak.exports=!0});var B5=le((W5e,Mk)=>{"use strict";var IQ=z5(),N5;typeof window.matchMedia=="function"?N5=!window.matchMedia("(hover: none)").matches:N5=IQ;Mk.exports=N5});var zp=le((Z5e,I5)=>{"use strict";var z1=typeof Reflect=="object"?Reflect:null,Tk=z1&&typeof z1.apply=="function"?z1.apply:function(r,t,a){return Function.prototype.apply.call(r,t,a)},Pp;z1&&typeof z1.ownKeys=="function"?Pp=z1.ownKeys:Object.getOwnPropertySymbols?Pp=function(r){return Object.getOwnPropertyNames(r).concat(Object.getOwnPropertySymbols(r))}:Pp=function(r){return Object.getOwnPropertyNames(r)};function HQ(e){console&&console.warn&&console.warn(e)}var Ck=Number.isNaN||function(r){return r!==r};function qa(){qa.init.call(this)}I5.exports=qa;I5.exports.once=YQ;qa.EventEmitter=qa;qa.prototype._events=void 0;qa.prototype._eventsCount=0;qa.prototype._maxListeners=void 0;var kk=10;function Rp(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(qa,"defaultMaxListeners",{enumerable:!0,get:function(){return kk},set:function(e){if(typeof e!="number"||e<0||Ck(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");kk=e}});qa.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};qa.prototype.setMaxListeners=function(r){if(typeof r!="number"||r<0||Ck(r))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+r+".");return this._maxListeners=r,this};function Sk(e){return e._maxListeners===void 0?qa.defaultMaxListeners:e._maxListeners}qa.prototype.getMaxListeners=function(){return Sk(this)};qa.prototype.emit=function(r){for(var t=[],a=1;a0&&(o=t[0]),o instanceof Error)throw o;var l=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw l.context=o,l}var s=i[r];if(s===void 0)return!1;if(typeof s=="function")Tk(s,this,t);else for(var u=s.length,f=qk(s,u),a=0;a0&&o.length>n&&!o.warned){o.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(r)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=r,l.count=o.length,HQ(l)}return e}qa.prototype.addListener=function(r,t){return Dk(this,r,t,!1)};qa.prototype.on=qa.prototype.addListener;qa.prototype.prependListener=function(r,t){return Dk(this,r,t,!0)};function OQ(){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 Fk(e,r,t){var a={fired:!1,wrapFn:void 0,target:e,type:r,listener:t},n=OQ.bind(a);return n.listener=t,a.wrapFn=n,n}qa.prototype.once=function(r,t){return Rp(t),this.on(r,Fk(this,r,t)),this};qa.prototype.prependOnceListener=function(r,t){return Rp(t),this.prependListener(r,Fk(this,r,t)),this};qa.prototype.removeListener=function(r,t){var a,n,i,o,l;if(Rp(t),n=this._events,n===void 0)return this;if(a=n[r],a===void 0)return this;if(a===t||a.listener===t)--this._eventsCount===0?this._events=Object.create(null):(delete n[r],n.removeListener&&this.emit("removeListener",r,a.listener||t));else if(typeof a!="function"){for(i=-1,o=a.length-1;o>=0;o--)if(a[o]===t||a[o].listener===t){l=a[o].listener,i=o;break}if(i<0)return this;i===0?a.shift():UQ(a,i),a.length===1&&(n[r]=a[0]),n.removeListener!==void 0&&this.emit("removeListener",r,l||t)}return this};qa.prototype.off=qa.prototype.removeListener;qa.prototype.removeAllListeners=function(r){var t,a,n;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[r]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete a[r]),this;if(arguments.length===0){var i=Object.keys(a),o;for(n=0;n=0;n--)this.removeListener(r,t[n]);return this};function Ek(e,r,t){var a=e._events;if(a===void 0)return[];var n=a[r];return n===void 0?[]:typeof n=="function"?t?[n.listener||n]:[n]:t?GQ(n):qk(n,n.length)}qa.prototype.listeners=function(r){return Ek(this,r,!0)};qa.prototype.rawListeners=function(r){return Ek(this,r,!1)};qa.listenerCount=function(e,r){return typeof e.listenerCount=="function"?e.listenerCount(r):Lk.call(e,r)};qa.prototype.listenerCount=Lk;function Lk(e){var r=this._events;if(r!==void 0){var t=r[e];if(typeof t=="function")return 1;if(t!==void 0)return t.length}return 0}qa.prototype.eventNames=function(){return this._eventsCount>0?Pp(this._events):[]};function qk(e,r){for(var t=new Array(r),a=0;a{"use strict";var H5=zp().EventEmitter,XQ={init:function(e){if(e._ev instanceof H5)return e;var r=new H5,t=new H5;return e._ev=r,e._internalEv=t,e.on=r.on.bind(r),e.once=r.once.bind(r),e.removeListener=r.removeListener.bind(r),e.removeAllListeners=r.removeAllListeners.bind(r),e._internalOn=t.on.bind(t),e._internalOnce=t.once.bind(t),e._removeInternalListener=t.removeListener.bind(t),e._removeAllInternalListeners=t.removeAllListeners.bind(t),e.emit=function(a,n){r.emit(a,n),t.emit(a,n)},typeof e.addEventListener=="function"&&e.addEventListener("wheel",()=>{},{passive:!0}),e},triggerHandler:function(e,r,t){var a,n=e._ev;if(!n)return;var i=n._events[r];if(!i)return;function o(s){if(s.listener){if(n.removeListener(r,s.listener),!s.fired)return s.fired=!0,s.listener.apply(n,[t])}else return s.apply(n,[t])}i=Array.isArray(i)?i:[i];var l;for(l=0;l{"use strict";var zk=mr(),jQ=d0().dfltConfig;function WQ(e,r){for(var t=[],a,n=0;njQ.queueLength&&(e.undoQueue.queue.shift(),e.undoQueue.index--)};qu.startSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!0,e.undoQueue.beginSequence=!0};qu.stopSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!1,e.undoQueue.beginSequence=!1};qu.undo=function(r){var t,a;if(!(r.undoQueue===void 0||isNaN(r.undoQueue.index)||r.undoQueue.index<=0)){for(r.undoQueue.index--,t=r.undoQueue.queue[r.undoQueue.index],r.undoQueue.inSequence=!0,a=0;a=r.undoQueue.queue.length)){for(t=r.undoQueue.queue[r.undoQueue.index],r.undoQueue.inSequence=!0,a=0;a{"use strict";Ik.exports={_isLinkedToArray:"frames_entry",group:{valType:"string"},name:{valType:"string"},traces:{valType:"any"},baseframe:{valType:"string"},data:{valType:"any"},layout:{valType:"any"}}});var I1=le(kn=>{"use strict";var Xo=_t(),Pv=mr(),Bp=Go(),U5=D1(),ZQ=O5(),$Q=kv(),JQ=d0().configAttributes,Hk=Yo(),Hl=Pv.extendDeepAll,N1=Pv.isPlainObject,KQ=Pv.isArrayOrTypedArray,Ip=Pv.nestedProperty,QQ=Pv.valObjectMeta,G5="_isSubplotObj",Hp="_isLinkedToArray",eee="_arrayAttrRegexps",Uk="_deprecated",Y5=[G5,Hp,eee,Uk];kn.IS_SUBPLOT_OBJ=G5;kn.IS_LINKED_TO_ARRAY=Hp;kn.DEPRECATED=Uk;kn.UNDERSCORE_ATTRS=Y5;kn.get=function(){var e={};return Xo.allTypes.forEach(function(r){e[r]=tee(r)}),{defs:{valObjects:QQ,metaKeys:Y5.concat(["description","role","editType","impliedEdits"]),editType:{traces:Hk.traces,layout:Hk.layout},impliedEdits:{}},traces:e,layout:aee(),frames:nee(),animation:B1($Q),config:B1(JQ)}};kn.crawl=function(e,r,t,a){var n=t||0;a=a||"",Object.keys(e).forEach(function(i){var o=e[i];if(Y5.indexOf(i)===-1){var l=(a?a+".":"")+i;r(o,i,e,n,l),!kn.isValObject(o)&&N1(o)&&i!=="impliedEdits"&&kn.crawl(o,r,n+1,l)}})};kn.isValObject=function(e){return e&&e.valType!==void 0};kn.findArrayAttributes=function(e){var r=[],t=[],a=[],n,i;function o(s,u,f,c){t=t.slice(0,c).concat([u]),a=a.slice(0,c).concat([s&&s._isLinkedToArray]);var h=s&&(s.valType==="data_array"||s.arrayOk===!0)&&!(t[c-1]==="colorbar"&&(u==="ticktext"||u==="tickvals"));h&&l(n,0,"")}function l(s,u,f){var c=s[t[u]],h=f+t[u];if(u===t.length-1)KQ(c)&&r.push(i+h);else if(a[u]){if(Array.isArray(c))for(var d=0;d=i.length)return!1;if(e.dimensions===2){if(t++,r.length===t)return e;var o=r[t];if(!Np(o))return!1;e=i[n][o]}else e=i[n]}else e=i}}return e}function Np(e){return e===Math.round(e)&&e>=0}function tee(e){var r,t;r=Xo.modules[e]._module,t=r.basePlotModule;var a={};a.type=null;var n=Hl({},Bp),i=Hl({},r.attributes);kn.crawl(i,function(s,u,f,c,h){Ip(n,h).set(void 0),s===void 0&&Ip(i,h).set(void 0)}),Hl(a,n),Xo.traceIs(e,"noOpacity")&&delete a.opacity,Xo.traceIs(e,"showLegend")||(delete a.showlegend,delete a.legendgroup),Xo.traceIs(e,"noHover")&&(delete a.hoverinfo,delete a.hoverlabel),r.selectPoints||delete a.selectedpoints,Hl(a,i),t.attributes&&Hl(a,t.attributes),a.type=e;var o={meta:r.meta||{},categories:r.categories||{},animatable:!!r.animatable,type:e,attributes:B1(a)};if(r.layoutAttributes){var l={};Hl(l,r.layoutAttributes),o.layoutAttributes=B1(l)}return r.animatable||kn.crawl(o,function(s){kn.isValObject(s)&&"anim"in s&&delete s.anim}),o}function aee(){var e={},r,t;Hl(e,U5);for(r in Xo.subplotsRegistry)if(t=Xo.subplotsRegistry[r],!!t.layoutAttributes)if(Array.isArray(t.attr))for(var a=0;a{"use strict";var H1=mr(),uee=Go(),M0="templateitemname",V5={name:{valType:"string",editType:"none"}};V5[M0]={valType:"string",editType:"calc"};Wf.templatedArray=function(e,r){return r._isLinkedToArray=e,r.name=V5.name,r[M0]=V5[M0],r};Wf.traceTemplater=function(e){var r={},t,a;for(t in e)a=e[t],Array.isArray(a)&&a.length&&(r[t]=0);function n(i){t=H1.coerce(i,{},uee,"type");var o={type:t,_template:null};if(t in r){a=e[t];var l=r[t]%a.length;r[t]++,o._template=a[l]}return o}return{newTrace:n}};Wf.newContainer=function(e,r,t){var a=e._template,n=a&&(a[r]||t&&a[t]);H1.isPlainObject(n)||(n=null);var i=e[r]={_template:n};return i};Wf.arrayTemplater=function(e,r,t){var a=e._template,n=a&&a[Vk(r)],i=a&&a[r];(!Array.isArray(i)||!i.length)&&(i=[]);var o={};function l(u){var f={name:u.name,_input:u},c=f[M0]=u[M0];if(!Yk(c))return f._template=n,f;for(var h=0;h=a&&(t._input||{})._templateitemname;i&&(n=a);var o=r+"["+n+"]",l;function s(){l={},i&&(l[o]={},l[o][M0]=i)}s();function u(d,m){l[d]=m}function f(d,m){i?H1.nestedProperty(l[o],d).set(m):l[o+"."+d]=m}function c(){var d=l;return s(),d}function h(d,m){d&&f(d,m);var p=c();for(var y in p)H1.nestedProperty(e,y).set(p[y])}return{modifyBase:u,modifyItem:f,getUpdateObj:c,applyUpdate:h}}});var zn={};Ha(zn,{AX_ID_PATTERN:()=>dee,AX_NAME_PATTERN:()=>pee,DFLTRANGEX:()=>Aee,DFLTRANGEY:()=>Mee,DRAGGERSIZE:()=>xee,HOUR_PATTERN:()=>gee,MINDRAG:()=>bee,MINZOOM:()=>_ee,REDRAWDELAY:()=>wee,SUBPLOT_PATTERN:()=>mee,WEEKDAY_PATTERN:()=>yee,attrRegex:()=>cee,clipOnAxisFalseQuery:()=>kee,idRegex:()=>fee,layerValue2layerClass:()=>Cee,traceLayerClasses:()=>Tee,xAxisMatch:()=>vee,yAxisMatch:()=>hee,zindexSeparator:()=>See});var fee,cee,vee,hee,dee,pee,mee,gee,yee,bee,_ee,xee,wee,Aee,Mee,Tee,kee,Cee,See,Nn=Ia(()=>{"use strict";k1();fee={x:Uf("x","( domain)?"),y:Uf("y","( domain)?")},cee=Uf("[xy]axis"),vee=Uf("xaxis"),hee=Uf("yaxis"),dee=/^[xyz][0-9]*( domain)?$/,pee=/^[xyz]axis[0-9]*$/,mee=/^x([0-9]*)y([0-9]*)$/,gee="hour",yee="day of week",bee=8,_ee=20,xee=20,wee=50,Aee=[-1,6],Mee=[-1,4],Tee=["imagelayer","heatmaplayer","contourcarpetlayer","contourlayer","funnellayer","waterfalllayer","barlayer","carpetlayer","violinlayer","boxlayer","ohlclayer","scattercarpetlayer","scatterlayer"],kee=[".scatterlayer",".barlayer",".funnellayer",".waterfalllayer"],Cee={"above traces":"above","below traces":"below"},See="z"});var Cn=le(eo=>{"use strict";var Dee=_t(),X5=(Nn(),Tr(zn));eo.id2name=function(r){if(!(typeof r!="string"||!r.match(X5.AX_ID_PATTERN))){var t=r.split(" ")[0].slice(1);return t==="1"&&(t=""),r.charAt(0)+"axis"+t}};eo.name2id=function(r){if(r.match(X5.AX_NAME_PATTERN)){var t=r.slice(5);return t==="1"&&(t=""),r.charAt(0)+t}};eo.cleanId=function(r,t,a){var n=/( domain)$/.test(r);if(!(typeof r!="string"||!r.match(X5.AX_ID_PATTERN))&&!(t&&r.charAt(0)!==t)&&!(n&&!a)){var i=r.split(" ")[0].slice(1).replace(/^0+/,"");return i==="1"&&(i=""),r.charAt(0)+i+(n&&a?" domain":"")}};eo.list=function(e,r,t){var a=e._fullLayout;if(!a)return[];var n=eo.listIds(e,r),i=new Array(n.length),o;for(o=0;oa?1:-1:+(e.slice(1)||1)-+(r.slice(1)||1)};eo.ref2id=function(e){return/^[xyz]/.test(e)?e.split(" ")[0]:!1};function Xk(e,r){if(r&&r.length){for(var t=0;t{"use strict";function Fee(e){var r=e._fullLayout._zoomlayer;r&&r.selectAll(".outline-controllers").remove()}function Eee(e){var r=e._fullLayout._zoomlayer;r&&r.selectAll(".select-outline").remove(),e._fullLayout._outlining=!1}jk.exports={clearOutlineControllers:Fee,clearOutline:Eee}});var Op=le((n6e,Wk)=>{"use strict";Wk.exports={scattermode:{valType:"enumerated",values:["group","overlay"],dflt:"overlay",editType:"calc"},scattergap:{valType:"number",min:0,max:1,editType:"calc"}}});var Rv=le(Gp=>{"use strict";var Up=_t(),i6e=(Nn(),Tr(zn)).SUBPLOT_PATTERN;Gp.getSubplotCalcData=function(e,r,t){var a=Up.subplotsRegistry[r];if(!a)return[];for(var n=a.attr,i=[],o=0;o{"use strict";var Lee=_t(),O1=mr();Zf.manageCommandObserver=function(e,r,t,a){var n={},i=!0;r&&r._commandObserver&&(n=r._commandObserver),n.cache||(n.cache={}),n.lookupTable={};var o=Zf.hasSimpleAPICommandBindings(e,t,n.lookupTable);if(r&&r._commandObserver){if(o)return n;if(r._commandObserver.remove)return r._commandObserver.remove(),r._commandObserver=null,n}if(o){Zk(e,o,n.cache),n.check=function(){if(i){var f=Zk(e,o,n.cache);return f.changed&&a&&n.lookupTable[f.value]!==void 0&&(n.disable(),Promise.resolve(a({value:f.value,type:o.type,prop:o.prop,traces:o.traces,index:n.lookupTable[f.value]})).then(n.enable,n.enable)),f.changed}};for(var l=["plotly_relayout","plotly_redraw","plotly_restyle","plotly_update","plotly_animatingframe","plotly_afterplot"],s=0;s0?".":"")+n;O1.isPlainObject(i)?j5(i,r,o,a+1):r(o,n,i)}})}});var Sn=le((u6e,sC)=>{"use strict";var s6e=Ft(),Pee=v1().timeFormatLocale,Ree=ky().formatLocale,zv=Wt(),zee=Sy(),Nee=Q2().version,Jt=_t(),Bee=I1(),Iee=ka(),et=mr(),Hee=qt(),Qk=(Ya(),Tr($a)).BADNUM,ro=Cn(),Oee=T0().clearOutline,Uee=Op(),W5=kv(),Gee=O5(),Yee=Rv().getModuleCalcData,eC=et.relinkPrivateKeys,$f=et._,Nr=sC.exports={};et.extendFlat(Nr,Jt);Nr.attributes=Go();Nr.attributes.type.values=Nr.allTypes;Nr.fontAttrs=gi();Nr.layoutAttributes=D1();var Vp=Kk();Nr.executeAPICommand=Vp.executeAPICommand;Nr.computeAPICommandBindings=Vp.computeAPICommandBindings;Nr.manageCommandObserver=Vp.manageCommandObserver;Nr.hasSimpleAPICommandBindings=Vp.hasSimpleAPICommandBindings;Nr.redrawText=function(e){return e=et.getGraphDiv(e),new Promise(function(r){setTimeout(function(){e._fullLayout&&(Jt.getComponentMethod("annotations","draw")(e),Jt.getComponentMethod("legend","draw")(e),Jt.getComponentMethod("colorbar","draw")(e),r(Nr.previousPromises(e)))},300)})};Nr.resize=function(e){e=et.getGraphDiv(e);var r,t=new Promise(function(a,n){(!e||et.isHidden(e))&&n(new Error("Resize must be passed a displayed plot div element.")),e._redrawTimer&&clearTimeout(e._redrawTimer),e._resolveResize&&(r=e._resolveResize),e._resolveResize=a,e._redrawTimer=setTimeout(function(){if(!e.layout||e.layout.width&&e.layout.height||et.isHidden(e)){a(e);return}delete e.layout.width,delete e.layout.height;var i=e.changed;e.autoplay=!0,Jt.call("relayout",e,{autosize:!0}).then(function(){e.changed=i,e._resolveResize===a&&(delete e._resolveResize,a(e))})},100)});return r&&r(t),t};Nr.previousPromises=function(e){if((e._promises||[]).length)return Promise.all(e._promises).then(function(){e._promises=[]})};Nr.sendDataToCloud=function(e,r){e.emit("plotly_beforeexport");let t=new URL(r).origin;var a=Nr.graphJson(e,!1,"object");a.version=Nee;var n=new URL(r);n.searchParams.set("origin",window.location.origin);var i=window.open(n.href,"_blank");if(!i){console.error("Unable to open Plotly Cloud (the popup may have been blocked)"),e.emit("plotly_exportfail");return}var o=function(l){l.origin===t&&l.data&&l.data.type==="CHART_AUTH_SUCCESS"&&(i.postMessage({type:"chart",chart:a},t),window.removeEventListener("message",o),e.emit("plotly_afterexport"))};return window.addEventListener("message",o),!1};var Vee=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],Xee=["year","month","dayMonth","dayMonthYear"];Nr.supplyDefaults=function(e,r){var t=r&&r.skipUpdateCalc,a=e._fullLayout||{};if(a._skipDefaults){delete a._skipDefaults;return}var n=e._fullLayout={},i=e.layout||{},o=e._fullData||[],l=e._fullData=[],s=e.data||[],u=e.calcdata||[],f=e._context||{},c;e._transitionData||Nr.createTransitionData(e),n._dfltTitle={plot:$f(e,"Click to enter Plot title"),subtitle:$f(e,"Click to enter Plot subtitle"),x:$f(e,"Click to enter X axis title"),y:$f(e,"Click to enter Y axis title"),colorbar:$f(e,"Click to enter Colorscale title"),annotation:$f(e,"new text")},n._traceWord=$f(e,"trace");var h=rC(e,Vee);if(a._initialAutoSizeIsDone){var d=a.width,m=a.height;Nr.supplyLayoutGlobalDefaults(i,n,h),i.width||(n.width=d),i.height||(n.height=m),Nr.sanitizeMargins(n)}else{Nr.supplyLayoutGlobalDefaults(i,n,h);var p=!i.width||!i.height,y=n.autosize,b=f.autosizable,C=p&&(y||b);C?Nr.plotAutoSize(e,i,n):p&&Nr.sanitizeMargins(n),!y&&p&&(i.width=n.width,i.height=n.height)}n._d3locale=Zee(h,n.separators),n._extraFormat=rC(e,Xee),n._initialAutoSizeIsDone=!0,n._dataLength=s.length,n._modules=[],n._visibleModules=[],n._basePlotModules=[];var x=n._subplots=Wee(),_=n._splomAxes={x:{},y:{}},M=n._splomSubplots={};n._splomGridDflt={},n._scatterStackOpts={},n._firstScatter={},n._alignmentOpts={},n._colorAxes={},n._requestRangeslider={},n._traceUids=jee(o,s),Nr.supplyDataDefaults(s,l,i,n);var T=Object.keys(_.x),A=Object.keys(_.y);if(T.length>1&&A.length>1){for(Jt.getComponentMethod("grid","sizeDefaults")(i,n),c=0;c15&&A.length>15&&n.shapes.length===0&&n.images.length===0,Nr.linkSubplots(l,n,o,a),Nr.cleanPlot(l,n,o,a);var X=!!(a._has&&a._has("cartesian")),I=!!(n._has&&n._has("cartesian")),V=X,H=I;V&&!H?a._bgLayer.remove():H&&!V&&(n._shouldCreateBgLayer=!0),a._zoomlayer&&!e._dragging&&Oee({_fullLayout:a}),$ee(l,n),eC(n,a),Jt.getComponentMethod("colorscale","crossTraceDefaults")(l,n),n._preGUI||(n._preGUI={}),n._tracePreGUI||(n._tracePreGUI={});var Q=n._tracePreGUI,oe={},re;for(re in Q)oe[re]="old";for(c=0;c0){var f=1-2*i;o=Math.round(f*o),l=Math.round(f*l)}}var c=Nr.layoutAttributes.width.min,h=Nr.layoutAttributes.height.min;o1,m=!t.height&&Math.abs(a.height-l)>1;(m||d)&&(d&&(a.width=o),m&&(a.height=l)),r._initialAutoSize||(r._initialAutoSize={width:o,height:l}),Nr.sanitizeMargins(a)};Nr.supplyLayoutModuleDefaults=function(e,r,t,a){var n=Jt.componentsRegistry,i=r._basePlotModules,o,l,s,u=Jt.subplotsRegistry.cartesian;for(o in n)s=n[o],s.includeBasePlot&&s.includeBasePlot(e,r);i.length||i.push(u),r._has("cartesian")&&(Jt.getComponentMethod("grid","contentDefaults")(e,r),u.finalizeSubplots(e,r));for(var f in r._subplots)r._subplots[f].sort(et.subplotSort);for(l=0;l1&&(t.l/=y,t.r/=y)}if(h){var b=(t.t+t.b)/h;b>1&&(t.t/=b,t.b/=b)}var C=t.xl!==void 0?t.xl:t.x,x=t.xr!==void 0?t.xr:t.x,_=t.yt!==void 0?t.yt:t.y,M=t.yb!==void 0?t.yb:t.y;d[r]={l:{val:C,size:t.l+p},r:{val:x,size:t.r+p},b:{val:M,size:t.b+p},t:{val:_,size:t.t+p}},m[r]=1}if(!a._replotting)return Nr.doAutoMargin(e)}};function Kee(e){if("_redrawFromAutoMarginCount"in e._fullLayout)return!1;var r=ro.list(e,"",!0);for(var t in r)if(r[t].autoshift||r[t].shift)return!0;return!1}Nr.doAutoMargin=function(e){var r=e._fullLayout,t=r.width,a=r.height;r._size||(r._size={}),nC(r);var n=r._size,i=r.margin,o={t:0,b:0,l:0,r:0},l=et.extendFlat({},n),s=i.l,u=i.r,f=i.t,c=i.b,h=r._pushmargin,d=r._pushmarginIds,m=r.minreducedwidth,p=r.minreducedheight;if(i.autoexpand!==!1){for(var y in h)d[y]||delete h[y];var b=e._fullLayout._reservedMargin;for(var C in b)for(var x in b[C]){var _=b[C][x];o[x]=Math.max(o[x],_)}h.base={l:{val:0,size:s},r:{val:1,size:u},t:{val:1,size:f},b:{val:0,size:c}};for(var M in o){var T=0;for(var A in h)A!=="base"&&zv(h[A][M].size)&&(T=h[A][M].size>T?h[A][M].size:T);var E=Math.max(0,i[M]-T);o[M]=Math.max(0,o[M]-E)}for(var P in h){var z=h[P].l||{},B=h[P].b||{},X=z.val,I=z.size,V=B.val,H=B.size,Q=t-o.r-o.l,oe=a-o.t-o.b;for(var re in h){if(zv(I)&&h[re].r){var te=h[re].r.val,ie=h[re].r.size;if(te>X){var ce=(I*te+(ie-Q)*X)/(te-X),Me=(ie*(1-X)+(I-Q)*(1-te))/(te-X);ce+Me>s+u&&(s=ce,u=Me)}}if(zv(H)&&h[re].t){var De=h[re].t.val,Ie=h[re].t.size;if(De>V){var Ue=(H*De+(Ie-oe)*V)/(De-V),ke=(Ie*(1-V)+(H-oe)*(1-De))/(De-V);Ue+ke>c+f&&(c=Ue,f=ke)}}}}}var je=et.constrain(t-i.l-i.r,iC,m),W=et.constrain(a-i.t-i.b,oC,p),ee=Math.max(0,t-je),me=Math.max(0,a-W);if(ee){var K=(s+u)/ee;K>1&&(s/=K,u/=K)}if(me){var J=(c+f)/me;J>1&&(c/=J,f/=J)}if(n.l=Math.round(s)+o.l,n.r=Math.round(u)+o.r,n.t=Math.round(f)+o.t,n.b=Math.round(c)+o.b,n.p=Math.round(i.pad),n.w=Math.round(t)-n.l-n.r,n.h=Math.round(a)-n.t-n.b,!r._replotting&&(Nr.didMarginChange(l,n)||Kee(e))){"_redrawFromAutoMarginCount"in r?r._redrawFromAutoMarginCount++:r._redrawFromAutoMarginCount=1;var ue=3*(1+Object.keys(d).length);if(r._redrawFromAutoMarginCount1)return!0}return!1};Nr.graphJson=function(e,r=!1,t="json",a=!1,n=!1){(a&&r&&!e._fullData||a&&!r&&!e._fullLayout)&&Nr.supplyDefaults(e);var i=a?e._fullData:e.data,o=a?e._fullLayout:e.layout,l=(e._transitionData||{})._frames;function s(c,h){if(typeof c=="function")return h?"_function_":null;if(et.isPlainObject(c)){var d={};return Object.keys(c).sort().forEach(function(b){if(["_","["].indexOf(b.charAt(0))===-1){if(typeof c[b]=="function"){h&&(d[b]="_function");return}d[b]=s(c[b],h)}}),d}var m=Array.isArray(c),p=et.isTypedArray(c);if((m||p)&&c.dtype&&c.shape){var y=c.bdata;return s({dtype:c.dtype,shape:c.shape,bdata:et.isArrayBuffer(y)?zee.encode(y):y},h)}return m?c.map(function(b){return s(b,h)}):p?et.simpleMap(c,et.identity):et.isJSDate(c)?et.ms2DateTimeLocal(+c):c}var u={data:(i||[]).map(function(c){var h=s(c);return r&&delete h.fit,h})};if(!r&&(u.layout=s(o),a)){var f=o._size;u.layout.computed={margin:{b:f.b,l:f.l,r:f.r,t:f.t}}}return l&&(u.frames=s(l)),n&&(u.config=s(e._context,!0)),t==="object"?u:JSON.stringify(u)};Nr.modifyFrames=function(e,r){var t,a,n,i=e._transitionData._frames,o=e._transitionData._frameHash;for(t=0;t0&&(e._transitioningWithDuration=!0),e._transitionData._interruptCallbacks.push(function(){a=!0}),t.redraw&&e._transitionData._interruptCallbacks.push(function(){return Jt.call("redraw",e)}),e._transitionData._interruptCallbacks.push(function(){e.emit("plotly_transitioninterrupted",[])});var h=0,d=0;function m(){return h++,function(){d++,!a&&d===h&&l(c)}}t.runFn(m),setTimeout(m())})}function l(c){if(e._transitionData)return i(e._transitionData._interruptCallbacks),Promise.resolve().then(function(){if(t.redraw)return Jt.call("redraw",e)}).then(function(){e._transitioning=!1,e._transitioningWithDuration=!1,e.emit("plotly_transitioned",[])}).then(c)}function s(){if(e._transitionData)return e._transitioning=!1,n(e._transitionData._interruptCallbacks)}var u=[Nr.previousPromises,s,t.prepareFn,Nr.rehover,Nr.reselect,o],f=et.syncOrAsync(u,e);return(!f||!f.then)&&(f=Promise.resolve()),f.then(function(){return e})}Nr.doCalcdata=function(e,r){var t=ro.list(e),a=e._fullData,n=e._fullLayout,i,o,l,s=new Array(a.length),u=(e.calcdata||[]).slice();for(e.calcdata=s,n._numBoxes=0,n._numViolins=0,n._violinScaleGroupStats={},e._hmpixcount=0,e._hmlumcount=0,n._piecolormap={},n._sunburstcolormap={},n._treemapcolormap={},n._iciclecolormap={},n._funnelareacolormap={},l=0;luC,svgAttrs:()=>nre,xlink:()=>fC,xmlns:()=>are});var are,uC,fC,nre,Kf=Ia(()=>{"use strict";are="http://www.w3.org/2000/xmlns/",uC="http://www.w3.org/2000/svg",fC="http://www.w3.org/1999/xlink",nre={xmlns:uC,"xmlns:xlink":fC}});var oi={};Ha(oi,{CAP_SHIFT:()=>ure,FROM_BL:()=>ire,FROM_BR:()=>lre,FROM_TL:()=>ore,LINE_SPACING:()=>sre,MID_SHIFT:()=>fre,OPPOSITE_SIDE:()=>cre});var ire,ore,lre,sre,ure,fre,cre,li=Ia(()=>{"use strict";ire={left:0,center:.5,right:1,bottom:0,middle:.5,top:1},ore={left:0,center:.5,right:1,bottom:1,middle:.5,top:0},lre={left:1,center:.5,right:0,bottom:0,middle:.5,top:1},sre=1.3,ure=.7,fre=.35,cre={left:"right",right:"left",top:"bottom",bottom:"top"}});var si=le(bo=>{"use strict";var Dn=Ft(),jo=mr(),vre=jo.strTranslate,Z5=(Kf(),Tr(Jf)),hre=(li(),Tr(oi)).LINE_SPACING,dre=/([^$]*)([$]+[^$]*[$]+)([^$]*)/,mC=e=>e?e.match(dre):null;bo.matchTex=mC;bo.convertToTspans=function(e,r,t){var a=e.text(),n=!e.attr("data-notex")&&r&&r._context.typesetMath&&mC(a);n&&!yre()&&(n=null);var i=Dn.select(e.node().parentNode);if(i.empty())return;var o=e.attr("class")?e.attr("class").split(" ")[0]:"text";o+="-math",i.selectAll("svg."+o).remove(),i.selectAll("g."+o+"-group").remove(),e.style("display",null).attr({"data-unformatted":a,"data-math":"N"});function l(){i.empty()||(o=e.attr("class")+"-math",i.select("svg."+o).remove()),e.text("").style("white-space","pre");var s=Sre(e.node(),a);s&&e.style("pointer-events","all"),bo.positionText(e),t&&t.call(e)}return n?(r&&r._promises||[]).push(new Promise(function(s){e.style("display","none");var u=parseInt(e.node().style.fontSize,10),f={fontSize:u},c=e.attr("text-anchor");bre(n[2],f,function(h,d,m){i.selectAll("svg."+o).remove(),i.selectAll("g."+o+"-group").remove();var p=h&&h.select("svg");if(!p||!p.node()){l(),s();return}e.style("display","none");var y=i.append("g").classed(o+"-group",!0).attr({"pointer-events":"none","data-unformatted":a,"data-math":"Y"});y.node().appendChild(p.node()),d&&d.node()&&p.node().insertBefore(d.node().cloneNode(!0),p.node().firstChild);var b=m.width,C=m.height;p.attr({class:o,height:C,preserveAspectRatio:"xMinYMin meet"}).style({overflow:"visible","pointer-events":"none","font-size":f.fontSize+"px"});var x=e.node().style.fill||"black",_=p.select("g");_.attr({fill:x,stroke:x});var M=_.node().getBoundingClientRect(),T=M.width,A=M.height;(T>b||A>C)&&(p.style("overflow","hidden"),M=p.node().getBoundingClientRect(),T=M.width,A=M.height);var E=+e.attr("x"),P=+e.attr("y"),z=u||e.node().getBoundingClientRect().height,B=-z/4;o[0]==="y"?y.attr({transform:"rotate("+[-90,E,P]+")"+vre(-T/2,B-A/2)}):o[0]==="l"?P=B-A/2:o[0]==="a"&&o.indexOf("atitle")!==0?(E=0,P=B):(E=E-T*(c==="middle"?.5:c==="end"?1:0),P=P+B-A/2),p.attr({x:E,y:P}),t&&t.call(e,y),s(y)})})):l(),e};var pre=/(<|<|<)/g,mre=/(>|>|>)/g;function gre(e){return e.replace(pre,"\\lt ").replace(mre,"\\gt ")}var $5=null,gC=()=>typeof MathJax!="undefined"&&MathJax.version?parseInt(MathJax.version.split(".")[0]):null,cC=!1,vC=!1;function yre(){let e=gC();return e===3||e===4?!0:(e===null?cC||(cC=!0,jo.warn("MathJax is not loaded. Math equations will not be rendered.")):vC||(vC=!0,jo.warn("Unsupported MathJax version:",MathJax.version)),!1)}function bre(e,r,t){let a=gC();var n;let i=function(){if(!$5){let u=MathJax._.output.svg_ts.SVG,f=jo.extendFlat({},MathJax.config.svg,{fontCache:"local"});a===4&&(f.linebreaks=jo.extendFlat({},f.linebreaks,{inline:!1})),$5=MathJax._.mathjax.mathjax.document(document,jo.extendFlat({},MathJax.config.options,{InputJax:MathJax.startup.input,OutputJax:new u(f)}))}let l="math-output-"+jo.randstr({},64);n=Dn.select("body").append("div").attr({id:l}).style({visibility:"hidden",position:"absolute","font-size":r.fontSize+"px"});let s=gre(e).replace(/^\$+|\$+$/g,"");return MathJax._.mathjax.mathjax.handleRetriesFor(function(){return $5.convert(s,{display:!1})}).then(function(u){n.node().appendChild(u)})},o=function(){let l=n.select(".MathJax"),s=!l.empty()&&n.select("svg").node();if(!s)jo.log("There was an error in the tex syntax.",e),t();else{let u=s.getBoundingClientRect(),f=l.select("defs");t(l,f,u)}n.remove()};Promise.resolve().then(i).then(o).catch(l=>{jo.log("MathJax typesetting failed.",e,l),n&&n.remove(),t()})}var yC={sup:"font-size:70%",sub:"font-size:70%",s:"text-decoration:line-through",u:"text-decoration:underline",b:"font-weight:bold",i:"font-style:italic",a:"cursor:pointer",span:"",em:"font-style:italic;font-weight:bold"},_re={sub:"0.3em",sup:"-0.6em"},xre={sub:"-0.21em",sup:"0.42em"},hC="\u200B",dC=["http:","https:","mailto:","",void 0,":"],bC=bo.NEWLINES=/(\r\n?|\n)/g,K5=/(<[^<>]*>)/,Q5=/<(\/?)([^ >]*)(\s+(.*))?>/i,wre=//i;bo.BR_TAG_ALL=//gi;var _C=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,xC=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,wC=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,Are=/(^|[\s"'])popup\s*=\s*("([\w=,]*)"|'([\w=,]*)')/i;function Qf(e,r){if(!e)return null;var t=e.match(r),a=t&&(t[3]||t[4]);return a&&Xp(a)}var Mre=/(^|;)\s*color:/;bo.plainText=function(e,r){r=r||{};for(var t=r.len!==void 0&&r.len!==-1?r.len:1/0,a=r.allowedTags!==void 0?r.allowedTags:["br"],n="...",i=n.length,o=e.split(K5),l=[],s="",u=0,f=0;fi?l.push(c.slice(0,Math.max(0,p-i))+n):l.push(c.slice(0,p));break}s=""}}return l.join("")};var Tre={mu:"\u03BC",amp:"&",lt:"<",gt:">",nbsp:"\xA0",times:"\xD7",plusmn:"\xB1",deg:"\xB0"},kre=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function Xp(e){return e.replace(kre,function(r,t){var a;return t.charAt(0)==="#"?a=Cre(t.charAt(1)==="x"?parseInt(t.slice(2),16):parseInt(t.slice(1),10)):a=Tre[t],a||r})}bo.convertEntities=Xp;function Cre(e){if(!(e>1114111)){var r=String.fromCodePoint;if(r)return r(e);var t=String.fromCharCode;return e<=65535?t(e):t((e>>10)+55232,e%1024+56320)}}function Sre(e,r){r=r.replace(bC," ");var t=!1,a=[],n,i=-1;function o(){i++;var T=document.createElementNS(Z5.svg,"tspan");Dn.select(T).attr({class:"line",dy:i*hre+"em"}),e.appendChild(T),n=T;var A=a;if(a=[{node:T}],A.length>1)for(var E=1;E.",r);return}var A=a.pop();T!==A.type&&jo.log("Start tag <"+A.type+"> doesnt match end tag <"+T+">. Pretending it did match.",r),n=a[a.length-1].node}var f=wre.test(r);f?o():(n=e,a=[{node:e}]);for(var c=r.split(K5),h=0;h{"use strict";var Dre=Ft(),Bv=Wt(),jp=mr(),ec=qt(),Fre=Of().isValid;function Ere(e,r,t){var a=r?jp.nestedProperty(e,r).get()||{}:e,n=a[t||"color"];n&&n._inputArray&&(n=n._inputArray);var i=!1;if(jp.isArrayOrTypedArray(n)){for(var o=0;o=0;a--,n++){var i=e[a];t[n]=[1-i[0],i[1]]}return t}function SC(e,r){r=r||{};for(var t=e.domain,a=e.range,n=a.length,i=new Array(n),o=0;o{"use strict";var FC=(b5(),Tr(y5)),qre=FC.FORMAT_LINK,Pre=FC.DATE_FORMAT_LINK;function Rre(e,r){return{valType:"string",dflt:"",editType:"none",description:(r?e6:EC)("hover text",e)+["By default the values are formatted using "+(r?"generic number format":"`"+e+"axis.hoverformat`")+"."].join(" ")}}function e6(e,r){return["Sets the "+e+" formatting rule"+(r?" for `"+r+"`":""),"using d3 formatting mini-languages","which are very similar to those in Python. For numbers, see: "+qre+"."].join(" ")}function EC(e,r){return e6(e,r)+[" And for dates see: "+Pre+".","We add two items to d3's date formatter:","*%h* for half of the year as a decimal number as well as","*%{n}f* for fractional seconds","with n digits. For example, *2016-10-13 09:15:23.456* with tickformat","*%H~%M~%S.%2f* would display *09~15~23.46*"].join(" ")}LC.exports={axisHoverFormat:Rre,descriptionOnlyNumbers:e6,descriptionWithDates:EC}});var Ol=le((d6e,ZC)=>{"use strict";var qC=gi(),U1=zl(),WC=Cs().dash,a6=Tn().extendFlat,PC=ka().templatedArray,h6e=Gf().templateFormatStringDescription,RC=r6().descriptionWithDates,zre=(Ya(),Tr($a)).ONEDAY,Fs=(Nn(),Tr(zn)),Nre=Fs.HOUR_PATTERN,Bre=Fs.WEEKDAY_PATTERN,t6={valType:"enumerated",values:["auto","linear","array"],editType:"ticks",impliedEdits:{tick0:void 0,dtick:void 0}},Ire=a6({},t6,{values:t6.values.slice().concat(["sync"])});function zC(e){return{valType:"integer",min:0,dflt:e?5:0,editType:"ticks"}}var NC={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},BC={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},IC={valType:"data_array",editType:"ticks"},HC={valType:"enumerated",values:["outside","inside",""],editType:"ticks"};function OC(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=5),r}function UC(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=1),r}var GC={valType:"color",dflt:U1.defaultLine,editType:"ticks"},YC={valType:"color",dflt:U1.lightLine,editType:"ticks"};function VC(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=1),r}var XC=a6({},WC,{editType:"ticks"}),jC={valType:"boolean",editType:"ticks"};ZC.exports={visible:{valType:"boolean",editType:"plot"},color:{valType:"color",dflt:U1.defaultLine,editType:"ticks"},title:{text:{valType:"string",editType:"ticks"},font:qC({editType:"ticks",description:"Sets this axis' title font."}),standoff:{valType:"number",min:0,editType:"ticks"},editType:"ticks"},type:{valType:"enumerated",values:["-","linear","log","date","category","multicategory"],dflt:"-",editType:"calc",_noTemplating:!0},autotypenumbers:{valType:"enumerated",values:["convert types","strict"],dflt:"convert types",editType:"calc"},autorange:{valType:"enumerated",values:[!0,!1,"reversed","min reversed","max reversed","min","max"],dflt:!0,editType:"axrange",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},autorangeoptions:{minallowed:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},maxallowed:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},clipmin:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},clipmax:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},include:{valType:"any",arrayOk:!0,editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},editType:"plot"},rangemode:{valType:"enumerated",values:["normal","tozero","nonnegative"],dflt:"normal",editType:"plot"},range:{valType:"info_array",items:[{valType:"any",editType:"axrange",impliedEdits:{"^autorange":!1},anim:!0},{valType:"any",editType:"axrange",impliedEdits:{"^autorange":!1},anim:!0}],editType:"axrange",impliedEdits:{autorange:!1},anim:!0},minallowed:{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},maxallowed:{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},fixedrange:{valType:"boolean",dflt:!1,editType:"calc"},modebardisable:{valType:"flaglist",flags:["autoscale","zoominout"],extras:["none"],dflt:"none",editType:"modebar"},insiderange:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},scaleanchor:{valType:"enumerated",values:[Fs.idRegex.x.toString(),Fs.idRegex.y.toString(),!1],editType:"plot"},scaleratio:{valType:"number",min:0,dflt:1,editType:"plot"},constrain:{valType:"enumerated",values:["range","domain"],editType:"plot"},constraintoward:{valType:"enumerated",values:["left","center","right","top","middle","bottom"],editType:"plot"},matches:{valType:"enumerated",values:[Fs.idRegex.x.toString(),Fs.idRegex.y.toString()],editType:"calc"},rangebreaks:PC("rangebreak",{enabled:{valType:"boolean",dflt:!0,editType:"calc"},bounds:{valType:"info_array",items:[{valType:"any",editType:"calc"},{valType:"any",editType:"calc"}],editType:"calc"},pattern:{valType:"enumerated",values:[Bre,Nre,""],editType:"calc"},values:{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"any",editType:"calc"}},dvalue:{valType:"number",editType:"calc",min:0,dflt:zre},editType:"calc"}),tickmode:Ire,nticks:zC(),tick0:NC,dtick:BC,ticklabelstep:{valType:"integer",min:1,dflt:1,editType:"ticks"},tickvals:IC,ticktext:{valType:"data_array",editType:"ticks"},ticks:HC,tickson:{valType:"enumerated",values:["labels","boundaries"],dflt:"labels",editType:"ticks"},ticklabelmode:{valType:"enumerated",values:["instant","period"],dflt:"instant",editType:"ticks"},ticklabelposition:{valType:"enumerated",values:["outside","inside","outside top","inside top","outside left","inside left","outside right","inside right","outside bottom","inside bottom"],dflt:"outside",editType:"calc"},ticklabeloverflow:{valType:"enumerated",values:["allow","hide past div","hide past domain"],editType:"calc"},ticklabelshift:{valType:"integer",dflt:0,editType:"ticks"},ticklabelstandoff:{valType:"integer",dflt:0,editType:"ticks"},ticklabelindex:{valType:"integer",arrayOk:!0,editType:"calc"},mirror:{valType:"enumerated",values:[!0,"ticks",!1,"all","allticks"],dflt:!1,editType:"ticks+layoutstyle"},ticklen:OC(),tickwidth:UC(),tickcolor:GC,showticklabels:{valType:"boolean",dflt:!0,editType:"ticks"},labelalias:{valType:"any",dflt:!1,editType:"ticks"},automargin:{valType:"flaglist",flags:["height","width","left","right","top","bottom"],extras:[!0,!1],dflt:!1,editType:"ticks"},showspikes:{valType:"boolean",dflt:!1,editType:"modebar"},spikecolor:{valType:"color",dflt:null,editType:"none"},spikethickness:{valType:"number",dflt:3,editType:"none"},spikedash:a6({},WC,{dflt:"dash",editType:"none"}),spikemode:{valType:"flaglist",flags:["toaxis","across","marker"],dflt:"toaxis",editType:"none"},spikesnap:{valType:"enumerated",values:["data","cursor","hovered data"],dflt:"hovered data",editType:"none"},tickfont:qC({editType:"ticks"}),tickangle:{valType:"angle",dflt:"auto",editType:"ticks"},autotickangles:{valType:"info_array",freeLength:!0,items:{valType:"angle"},dflt:[0,30,90],editType:"ticks"},tickprefix:{valType:"string",dflt:"",editType:"ticks"},showtickprefix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},ticksuffix:{valType:"string",dflt:"",editType:"ticks"},showticksuffix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},showexponent:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},exponentformat:{valType:"enumerated",values:["none","e","E","power","SI","B","SI extended"],dflt:"B",editType:"ticks"},minexponent:{valType:"number",dflt:3,min:0,editType:"ticks"},separatethousands:{valType:"boolean",dflt:!1,editType:"ticks"},tickformat:{valType:"string",dflt:"",editType:"ticks",description:RC("tick label")},tickformatstops:PC("tickformatstop",{enabled:{valType:"boolean",dflt:!0,editType:"ticks"},dtickrange:{valType:"info_array",items:[{valType:"any",editType:"ticks"},{valType:"any",editType:"ticks"}],editType:"ticks"},value:{valType:"string",dflt:"",editType:"ticks"},editType:"ticks"}),hoverformat:{valType:"string",dflt:"",editType:"none",description:RC("hover text")},unifiedhovertitle:{text:{valType:"string",dflt:"",editType:"none"},editType:"none"},showline:{valType:"boolean",dflt:!1,editType:"ticks+layoutstyle"},linecolor:{valType:"color",dflt:U1.defaultLine,editType:"layoutstyle"},linewidth:{valType:"number",min:0,dflt:1,editType:"ticks+layoutstyle"},showgrid:jC,gridcolor:YC,gridwidth:VC(),griddash:XC,zeroline:{valType:"boolean",editType:"ticks"},zerolinecolor:{valType:"color",dflt:U1.defaultLine,editType:"ticks"},zerolinelayer:{valType:"enumerated",values:["above traces","below traces"],dflt:"below traces",editType:"plot"},zerolinewidth:{valType:"number",dflt:1,editType:"ticks"},showdividers:{valType:"boolean",dflt:!0,editType:"ticks"},dividercolor:{valType:"color",dflt:U1.defaultLine,editType:"ticks"},dividerwidth:{valType:"number",dflt:1,editType:"ticks"},anchor:{valType:"enumerated",values:["free",Fs.idRegex.x.toString(),Fs.idRegex.y.toString()],editType:"plot"},side:{valType:"enumerated",values:["top","bottom","left","right"],editType:"plot"},overlaying:{valType:"enumerated",values:["free",Fs.idRegex.x.toString(),Fs.idRegex.y.toString()],editType:"plot"},minor:{tickmode:t6,nticks:zC("minor"),tick0:NC,dtick:BC,tickvals:IC,ticks:HC,ticklen:OC("minor"),tickwidth:UC("minor"),tickcolor:GC,gridcolor:YC,gridwidth:VC("minor"),griddash:XC,showgrid:jC,editType:"ticks"},minorloglabels:{valType:"enumerated",values:["small digits","complete","none"],dflt:"small digits",editType:"calc"},layer:{valType:"enumerated",values:["above traces","below traces"],dflt:"above traces",editType:"plot"},domain:{valType:"info_array",items:[{valType:"number",min:0,max:1,editType:"plot"},{valType:"number",min:0,max:1,editType:"plot"}],dflt:[0,1],editType:"plot"},position:{valType:"number",min:0,max:1,dflt:0,editType:"plot"},autoshift:{valType:"boolean",dflt:!1,editType:"plot"},shift:{valType:"number",editType:"plot"},categoryorder:{valType:"enumerated",values:["trace","category ascending","category descending","array","total ascending","total descending","min ascending","min descending","max ascending","max descending","sum ascending","sum descending","mean ascending","mean descending","geometric mean ascending","geometric mean descending","median ascending","median descending"],dflt:"trace",editType:"calc"},categoryarray:{valType:"data_array",editType:"calc"},uirevision:{valType:"any",editType:"none"},editType:"calc"}});var Wp=le((p6e,JC)=>{"use strict";var Pa=Ol(),$C=gi(),n6=Tn().extendFlat,Hre=Yo().overrideAll;JC.exports=Hre({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:Pa.linecolor,outlinewidth:Pa.linewidth,bordercolor:Pa.linecolor,borderwidth:{valType:"number",min:0,dflt:0},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},tickmode:Pa.minor.tickmode,nticks:Pa.nticks,tick0:Pa.tick0,dtick:n6({},Pa.dtick,{}),tickvals:Pa.tickvals,ticktext:Pa.ticktext,ticks:n6({},Pa.ticks,{dflt:""}),ticklabeloverflow:n6({},Pa.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:Pa.ticklen,tickwidth:Pa.tickwidth,tickcolor:Pa.tickcolor,ticklabelstep:Pa.ticklabelstep,showticklabels:Pa.showticklabels,labelalias:Pa.labelalias,tickfont:$C({description:"Sets the color bar's tick label font"}),tickangle:Pa.tickangle,tickformat:Pa.tickformat,tickformatstops:Pa.tickformatstops,tickprefix:Pa.tickprefix,showtickprefix:Pa.showtickprefix,ticksuffix:Pa.ticksuffix,showticksuffix:Pa.showticksuffix,separatethousands:Pa.separatethousands,exponentformat:Pa.exponentformat,minexponent:Pa.minexponent,showexponent:Pa.showexponent,title:{text:{valType:"string"},font:$C({description:"Sets this color bar's title font."}),side:{valType:"enumerated",values:["right","top","bottom"]}}},"colorbars","from-root")});var G1=le((g6e,QC)=>{"use strict";var Ore=Wp(),Ure=(k1(),Tr(Mv)).counter,Gre=(Tp(),Tr(Mp)).default,KC=Of().scales,m6e=Gre(KC);function Zp(e){return"`"+e+"`"}QC.exports=function(r,t){r=r||"",t=t||{};var a=t.cLetter||"c",n="onlyIfNumerical"in t?t.onlyIfNumerical:!!r,i="noScale"in t?t.noScale:r==="marker.line",o="showScaleDflt"in t?t.showScaleDflt:a==="z",l=typeof t.colorscaleDflt=="string"?KC[t.colorscaleDflt]:null,s=t.editTypeOverride||"",u=r?r+".":"",f,c;"colorAttr"in t?(f=t.colorAttr,c=t.colorAttr):(f={z:"z",c:"color"}[a],c="in "+Zp(u+f));var h=n?" Has an effect only if "+c+" is set to a numerical array.":"",d=a+"auto",m=a+"min",p=a+"max",y=a+"mid",b=Zp(u+d),C=Zp(u+m),x=Zp(u+p),_=C+" and "+x,M={};M[m]=M[p]=void 0;var T={};T[d]=!1;var A={};return f==="color"&&(A.color={valType:"color",arrayOk:!0,editType:s||"style"},t.anim&&(A.color.anim=!0)),A[d]={valType:"boolean",dflt:!0,editType:"calc",impliedEdits:M},A[m]={valType:"number",dflt:null,editType:s||"plot",impliedEdits:T},A[p]={valType:"number",dflt:null,editType:s||"plot",impliedEdits:T},A[y]={valType:"number",dflt:null,editType:"calc",impliedEdits:M},A.colorscale={valType:"colorscale",editType:"calc",dflt:l,impliedEdits:{autocolorscale:!1}},A.autocolorscale={valType:"boolean",dflt:t.autoColorDflt!==!1,editType:"calc",impliedEdits:{colorscale:void 0}},A.reversescale={valType:"boolean",dflt:!1,editType:"plot"},i||(A.showscale={valType:"boolean",dflt:o,editType:"calc"},A.colorbar=Ore),t.noColorAxis||(A.coloraxis={valType:"subplotid",regex:Ure("coloraxis"),dflt:null,editType:"calc"}),A}});var o6=le((y6e,eS)=>{"use strict";var Yre=Tn().extendFlat,Vre=G1(),i6=Of().scales;eS.exports={editType:"calc",colorscale:{editType:"calc",sequential:{valType:"colorscale",dflt:i6.Reds,editType:"calc"},sequentialminus:{valType:"colorscale",dflt:i6.Blues,editType:"calc"},diverging:{valType:"colorscale",dflt:i6.RdBu,editType:"calc"}},coloraxis:Yre({_isSubplotObj:!0,editType:"calc"},Vre("",{colorAttr:"corresponding trace color array(s)",noColorAxis:!0,showScaleDflt:!0}))}});var l6=le((b6e,rS)=>{"use strict";var Xre=mr();rS.exports=function(r){return Xre.isPlainObject(r.colorbar)}});var f6=le(u6=>{"use strict";var s6=Wt(),tS=mr(),aS=(Ya(),Tr($a)),jre=aS.ONEDAY,Wre=aS.ONEWEEK;u6.dtick=function(e,r){var t=r==="log",a=r==="date",n=r==="category",i=a?jre:1;if(!e)return i;if(s6(e))return e=Number(e),e<=0?i:n?Math.max(1,Math.round(e)):a?Math.max(.1,e):e;if(typeof e!="string"||!(a||t))return i;var o=e.charAt(0),l=e.slice(1);return l=s6(l)?Number(l):0,l<=0||!(a&&o==="M"&&l===Math.round(l)||t&&o==="L"||t&&o==="D"&&(l===1||l===2))?i:e};u6.tick0=function(e,r,t,a){if(r==="date")return tS.cleanDate(e,tS.dateTick0(t,a%Wre===0?1:0));if(!(a==="D1"||a==="D2"))return s6(e)?Number(e):0}});var c6=le((x6e,iS)=>{"use strict";var nS=f6(),Zre=mr().isArrayOrTypedArray,$re=$i().isTypedArraySpec,Jre=$i().decodeTypedArraySpec;iS.exports=function(r,t,a,n,i={}){var o=i.isMinor,l=o?r.minor||{}:r,s=o?t.minor:t,u=o?"minor.":"";function f(_){var M=l[_];return $re(M)&&(M=Jre(M)),M!==void 0?M:(s._template||{})[_]}var c=f("tick0"),h=f("dtick"),d=f("tickvals"),m=f("overlaying"),p=n==="category"||n==="multicategory",y;Zre(d)?y="array":h?y="linear":m&&!p?y="sync":y="auto";var b=a(u+"tickmode",y);if(b==="auto"||b==="sync")a(u+"nticks");else if(b==="linear"){var C=s.dtick=nS.dtick(h,n);s.tick0=nS.tick0(c,n,t.calendar,C)}else if(n!=="multicategory"){var x=a(u+"tickvals");x===void 0?s.tickmode="auto":o||a("ticktext")}}});var h6=le((w6e,lS)=>{"use strict";var v6=mr(),oS=Ol();lS.exports=function(r,t,a,n){var i=n.isMinor,o=i?r.minor||{}:r,l=i?t.minor:t,s=i?oS.minor:oS,u=i?"minor.":"",f=v6.coerce2(o,l,s,"ticklen",i?(t.ticklen||5)*.6:void 0),c=v6.coerce2(o,l,s,"tickwidth",i?t.tickwidth||1:void 0),h=v6.coerce2(o,l,s,"tickcolor",(i?t.tickcolor:void 0)||l.color),d=a(u+"ticks",!i&&n.outerTicks||f||c||h?"outside":"");d||(delete l.ticklen,delete l.tickwidth,delete l.tickcolor)}});var d6=le((A6e,sS)=>{"use strict";sS.exports=function(r){var t=["showexponent","showtickprefix","showticksuffix"],a=t.filter(function(i){return r[i]!==void 0}),n=function(i){return r[i]===r[a[0]]};if(a.every(n)||a.length===1)return r[a[0]]}});var Ul=le((M6e,uS)=>{"use strict";var $p=mr(),Kre=ka();uS.exports=function(r,t,a){var n=a.name,i=a.inclusionAttr||"visible",o=t[n],l=$p.isArrayOrTypedArray(r[n])?r[n]:[],s=t[n]=[],u=Kre.arrayTemplater(t,n,i),f,c;for(f=0;f{"use strict";var p6=mr(),Qre=qt().contrast,fS=Ol(),ete=d6(),rte=Ul();cS.exports=function(r,t,a,n,i){i||(i={});var o=a("labelalias");p6.isPlainObject(o)||delete t.labelalias;var l=ete(r),s=a("showticklabels");if(s){i.noTicklabelshift||a("ticklabelshift"),i.noTicklabelstandoff||a("ticklabelstandoff");var u=i.font||{},f=t.color,c=t.ticklabelposition||"",h=c.indexOf("inside")!==-1?Qre(i.bgColor):f&&f!==fS.color.dflt?f:u.color;if(p6.coerceFont(a,"tickfont",u,{overrideDflt:{color:h}}),!i.noTicklabelstep&&n!=="multicategory"&&n!=="log"&&a("ticklabelstep"),!i.noAng){var d=a("tickangle");!i.noAutotickangles&&d==="auto"&&a("autotickangles")}if(n!=="category"){var m=a("tickformat");rte(r,t,{name:"tickformatstops",inclusionAttr:"enabled",handleItemDefaults:tte}),t.tickformatstops.length||delete t.tickformatstops,!i.noExp&&!m&&n!=="date"&&(a("showexponent",l),a("exponentformat"),a("minexponent"),a("separatethousands"))}!i.noMinorloglabels&&n==="log"&&a("minorloglabels")}};function tte(e,r){function t(n,i){return p6.coerce(e,r,fS.tickformatstops,n,i)}var a=t("enabled");a&&(t("dtickrange"),t("value"))}});var g6=le((k6e,vS)=>{"use strict";var ate=d6();vS.exports=function(r,t,a,n,i){i||(i={});var o=i.tickSuffixDflt,l=ate(r),s=a("tickprefix");s&&a("showtickprefix",l);var u=a("ticksuffix",o);u&&a("showticksuffix",l)}});var y6=le((C6e,hS)=>{"use strict";var k0=mr(),nte=ka(),ite=c6(),ote=h6(),lte=m6(),ste=g6(),ute=Wp();hS.exports=function(r,t,a){var n=nte.newContainer(t,"colorbar"),i=r.colorbar||{};function o(B,X){return k0.coerce(i,n,ute,B,X)}var l=a.margin||{t:0,b:0,l:0,r:0},s=a.width-l.l-l.r,u=a.height-l.t-l.b,f=o("orientation"),c=f==="v",h=o("thicknessmode");o("thickness",h==="fraction"?30/(c?s:u):30);var d=o("lenmode");o("len",d==="fraction"?1:c?u:s);var m=o("yref"),p=o("xref"),y=m==="paper",b=p==="paper",C,x,_,M="left";c?(_="middle",M=b?"left":"right",C=b?1.02:1,x=.5):(_=y?"bottom":"top",M="center",C=.5,x=y?1.02:1),k0.coerce(i,n,{x:{valType:"number",min:b?-2:0,max:b?3:1,dflt:C}},"x"),k0.coerce(i,n,{y:{valType:"number",min:y?-2:0,max:y?3:1,dflt:x}},"y"),o("xanchor",M),o("xpad"),o("yanchor",_),o("ypad"),k0.noneOrAll(i,n,["x","y"]),o("outlinecolor"),o("outlinewidth"),o("bordercolor"),o("borderwidth"),o("bgcolor");var T=k0.coerce(i,n,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:c?["outside","inside","outside top","inside top","outside bottom","inside bottom"]:["outside","inside","outside left","inside left","outside right","inside right"]}},"ticklabelposition");o("ticklabeloverflow",T.indexOf("inside")!==-1?"hide past domain":"hide past div"),ite(i,n,o,"linear");var A=a.font,E={noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0,outerTicks:!1,font:A};T.indexOf("inside")!==-1&&(E.bgColor="black"),ste(i,n,o,"linear",E),lte(i,n,o,"linear",E),ote(i,n,o,"linear",E),o("title.text",a._dfltTitle.colorbar);var P=n.showticklabels?n.tickfont:A,z=k0.extendFlat({},A,{family:P.family,size:k0.bigFont(P.size)});k0.coerceFont(o,"title.font",z),o("title.side",c?"top":"right")}});var Y1=le((S6e,mS)=>{"use strict";var dS=Wt(),_6=mr(),fte=l6(),cte=y6(),pS=Of().isValid,vte=_t().traceIs;function b6(e,r){var t=r.slice(0,r.length-1);return r?_6.nestedProperty(e,t).get()||{}:e}mS.exports=function e(r,t,a,n,i){var o=i.prefix,l=i.cLetter,s="_module"in t,u=b6(r,o),f=b6(t,o),c=b6(t._template||{},o)||{},h=function(){return delete r.coloraxis,delete t.coloraxis,e(r,t,a,n,i)};if(s){var d=a._colorAxes||{},m=n(o+"coloraxis");if(m){var p=vte(t,"contour")&&_6.nestedProperty(t,"contours.coloring").get()||"heatmap",y=d[m];y?(y[2].push(h),y[0]!==p&&(y[0]=!1,_6.warn(["Ignoring coloraxis:",m,"setting","as it is linked to incompatible colorscales."].join(" ")))):d[m]=[p,t,[h]];return}}var b=u[l+"min"],C=u[l+"max"],x=dS(b)&&dS(C)&&b{"use strict";var gS=mr(),hte=ka(),yS=o6(),dte=Y1();bS.exports=function(r,t){function a(c,h){return gS.coerce(r,t,yS,c,h)}a("colorscale.sequential"),a("colorscale.sequentialminus"),a("colorscale.diverging");var n=t._colorAxes,i,o;function l(c,h){return gS.coerce(i,o,yS.coloraxis,c,h)}for(var s in n){var u=n[s];if(u[0])i=r[s]||{},o=hte.newContainer(t,s,"coloraxis"),o._name=s,dte(i,o,t,l,{prefix:"",cLetter:"c"});else{for(var f=0;f{"use strict";var pte=mr(),mte=Ds().hasColorscale,gte=Ds().extractOpts;xS.exports=function(r,t){function a(f,c){var h=f["_"+c];h!==void 0&&(f[c]=h)}function n(f,c){var h=c.container?pte.nestedProperty(f,c.container).get():f;if(h)if(h.coloraxis)h._colorAx=t[h.coloraxis];else{var d=gte(h),m=d.auto;(m||d.min===void 0)&&a(h,c.min),(m||d.max===void 0)&&a(h,c.max),d.autocolorscale&&a(h,"colorscale")}}for(var i=0;i{"use strict";var AS=Wt(),x6=mr(),yte=Ds().extractOpts;MS.exports=function(r,t,a){var n=r._fullLayout,i=a.vals,o=a.containerStr,l=o?x6.nestedProperty(t,o).get():t,s=yte(l),u=s.auto!==!1,f=s.min,c=s.max,h=s.mid,d=function(){return x6.aggNums(Math.min,null,i)},m=function(){return x6.aggNums(Math.max,null,i)};if(f===void 0?f=d():u&&(l._colorAx&&AS(f)?f=Math.min(f,d()):f=d()),c===void 0?c=m():u&&(l._colorAx&&AS(c)?c=Math.max(c,m()):c=m()),u&&h!==void 0&&(c-h>h-f?f=h-(c-h):c-h=0?p=n.colorscale.sequential:p=n.colorscale.sequentialminus,s._sync("colorscale",p)}}});var Qp=le((L6e,TS)=>{"use strict";var Kp=Of(),V1=Ds();TS.exports={moduleType:"component",name:"colorscale",attributes:G1(),layoutAttributes:o6(),supplyLayoutDefaults:_S(),handleDefaults:Y1(),crossTraceDefaults:wS(),calc:Jp(),scales:Kp.scales,defaultScale:Kp.defaultScale,getScale:Kp.get,isValidScale:Kp.isValid,hasColorscale:V1.hasColorscale,extractOpts:V1.extractOpts,extractScale:V1.extractScale,flipScale:V1.flipScale,makeColorScaleFunc:V1.makeColorScaleFunc,makeColorScaleFuncFromTrace:V1.makeColorScaleFuncFromTrace}});var _i=le((q6e,CS)=>{"use strict";var kS=mr(),bte=$i().isTypedArraySpec;CS.exports={hasLines:function(e){return e.visible&&e.mode&&e.mode.indexOf("lines")!==-1},hasMarkers:function(e){return e.visible&&(e.mode&&e.mode.indexOf("markers")!==-1||e.type==="splom")},hasText:function(e){return e.visible&&e.mode&&e.mode.indexOf("text")!==-1},isBubble:function(e){var r=e.marker;return kS.isPlainObject(r)&&(kS.isArrayOrTypedArray(r.size)||bte(r.size))}}});var DS=le((P6e,SS)=>{"use strict";var _te=Wt();SS.exports=function(r,t){t||(t=2);var a=r.marker,n=a.sizeref||1,i=a.sizemin||0,o=a.sizemode==="area"?function(l){return Math.sqrt(l/n)}:function(l){return l/n};return function(l){var s=o(l/t);return _te(s)&&s>0?Math.max(s,i):0}}});var Pu=le(ei=>{"use strict";var Iv=mr();ei.getSubplot=function(e){return e.subplot||e.xaxis+e.yaxis||e.geo};ei.isTraceInSubplots=function(e,r){if(e.type==="splom"){for(var t=e.xaxes||[],a=e.yaxes||[],n=0;n=0&&t.index{var w6={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},Mte=/([astvzqmhlc])([^astvzqmhlc]*)/gi,Tte=/-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/gi;function kte(e){let r=[];return e.replace(Mte,(t,a,n)=>{let i=a.toLowerCase(),o=a,l=Cte(n);for(i==="m"&&l.length>2&&(r.push([o,...l.splice(0,2)]),i="l",o=o==="m"?"l":"L");;){if(l.length===w6[i])return r.push([o,...l]),"";if(l.length{"use strict";var Ste=A6(),Dr=function(e,r){return r?Math.round(e*(r=Math.pow(10,r)))/r:Math.round(e)},wt="M0,0Z",qS=Math.sqrt(2),C0=Math.sqrt(3),M6=Math.PI,T6=Math.cos,k6=Math.sin;BS.exports={circle:{n:0,f:function(e,r,t){if(At(r))return wt;var a=Dr(e,2),n="M"+a+",0A"+a+","+a+" 0 1,1 0,-"+a+"A"+a+","+a+" 0 0,1 "+a+",0Z";return t?Mt(r,t,n):n}},square:{n:1,f:function(e,r,t){if(At(r))return wt;var a=Dr(e,2);return Mt(r,t,"M"+a+","+a+"H-"+a+"V-"+a+"H"+a+"Z")}},diamond:{n:2,f:function(e,r,t){if(At(r))return wt;var a=Dr(e*1.3,2);return Mt(r,t,"M"+a+",0L0,"+a+"L-"+a+",0L0,-"+a+"Z")}},cross:{n:3,f:function(e,r,t){if(At(r))return wt;var a=Dr(e*.4,2),n=Dr(e*1.2,2);return Mt(r,t,"M"+n+","+a+"H"+a+"V"+n+"H-"+a+"V"+a+"H-"+n+"V-"+a+"H-"+a+"V-"+n+"H"+a+"V-"+a+"H"+n+"Z")}},x:{n:4,f:function(e,r,t){if(At(r))return wt;var a=Dr(e*.8/qS,2),n="l"+a+","+a,i="l"+a+",-"+a,o="l-"+a+",-"+a,l="l-"+a+","+a;return Mt(r,t,"M0,"+a+n+i+o+i+o+l+o+l+n+l+n+"Z")}},"triangle-up":{n:5,f:function(e,r,t){if(At(r))return wt;var a=Dr(e*2/C0,2),n=Dr(e/2,2),i=Dr(e,2);return Mt(r,t,"M-"+a+","+n+"H"+a+"L0,-"+i+"Z")}},"triangle-down":{n:6,f:function(e,r,t){if(At(r))return wt;var a=Dr(e*2/C0,2),n=Dr(e/2,2),i=Dr(e,2);return Mt(r,t,"M-"+a+",-"+n+"H"+a+"L0,"+i+"Z")}},"triangle-left":{n:7,f:function(e,r,t){if(At(r))return wt;var a=Dr(e*2/C0,2),n=Dr(e/2,2),i=Dr(e,2);return Mt(r,t,"M"+n+",-"+a+"V"+a+"L-"+i+",0Z")}},"triangle-right":{n:8,f:function(e,r,t){if(At(r))return wt;var a=Dr(e*2/C0,2),n=Dr(e/2,2),i=Dr(e,2);return Mt(r,t,"M-"+n+",-"+a+"V"+a+"L"+i+",0Z")}},"triangle-ne":{n:9,f:function(e,r,t){if(At(r))return wt;var a=Dr(e*.6,2),n=Dr(e*1.2,2);return Mt(r,t,"M-"+n+",-"+a+"H"+a+"V"+n+"Z")}},"triangle-se":{n:10,f:function(e,r,t){if(At(r))return wt;var a=Dr(e*.6,2),n=Dr(e*1.2,2);return Mt(r,t,"M"+a+",-"+n+"V"+a+"H-"+n+"Z")}},"triangle-sw":{n:11,f:function(e,r,t){if(At(r))return wt;var a=Dr(e*.6,2),n=Dr(e*1.2,2);return Mt(r,t,"M"+n+","+a+"H-"+a+"V-"+n+"Z")}},"triangle-nw":{n:12,f:function(e,r,t){if(At(r))return wt;var a=Dr(e*.6,2),n=Dr(e*1.2,2);return Mt(r,t,"M-"+a+","+n+"V-"+a+"H"+n+"Z")}},pentagon:{n:13,f:function(e,r,t){if(At(r))return wt;var a=Dr(e*.951,2),n=Dr(e*.588,2),i=Dr(-e,2),o=Dr(e*-.309,2),l=Dr(e*.809,2);return Mt(r,t,"M"+a+","+o+"L"+n+","+l+"H-"+n+"L-"+a+","+o+"L0,"+i+"Z")}},hexagon:{n:14,f:function(e,r,t){if(At(r))return wt;var a=Dr(e,2),n=Dr(e/2,2),i=Dr(e*C0/2,2);return Mt(r,t,"M"+i+",-"+n+"V"+n+"L0,"+a+"L-"+i+","+n+"V-"+n+"L0,-"+a+"Z")}},hexagon2:{n:15,f:function(e,r,t){if(At(r))return wt;var a=Dr(e,2),n=Dr(e/2,2),i=Dr(e*C0/2,2);return Mt(r,t,"M-"+n+","+i+"H"+n+"L"+a+",0L"+n+",-"+i+"H-"+n+"L-"+a+",0Z")}},octagon:{n:16,f:function(e,r,t){if(At(r))return wt;var a=Dr(e*.924,2),n=Dr(e*.383,2);return Mt(r,t,"M-"+n+",-"+a+"H"+n+"L"+a+",-"+n+"V"+n+"L"+n+","+a+"H-"+n+"L-"+a+","+n+"V-"+n+"Z")}},star:{n:17,f:function(e,r,t){if(At(r))return wt;var a=e*1.4,n=Dr(a*.225,2),i=Dr(a*.951,2),o=Dr(a*.363,2),l=Dr(a*.588,2),s=Dr(-a,2),u=Dr(a*-.309,2),f=Dr(a*.118,2),c=Dr(a*.809,2),h=Dr(a*.382,2);return Mt(r,t,"M"+n+","+u+"H"+i+"L"+o+","+f+"L"+l+","+c+"L0,"+h+"L-"+l+","+c+"L-"+o+","+f+"L-"+i+","+u+"H-"+n+"L0,"+s+"Z")}},hexagram:{n:18,f:function(e,r,t){if(At(r))return wt;var a=Dr(e*.66,2),n=Dr(e*.38,2),i=Dr(e*.76,2);return Mt(r,t,"M-"+i+",0l-"+n+",-"+a+"h"+i+"l"+n+",-"+a+"l"+n+","+a+"h"+i+"l-"+n+","+a+"l"+n+","+a+"h-"+i+"l-"+n+","+a+"l-"+n+",-"+a+"h-"+i+"Z")}},"star-triangle-up":{n:19,f:function(e,r,t){if(At(r))return wt;var a=Dr(e*C0*.8,2),n=Dr(e*.8,2),i=Dr(e*1.6,2),o=Dr(e*4,2),l="A "+o+","+o+" 0 0 1 ";return Mt(r,t,"M-"+a+","+n+l+a+","+n+l+"0,-"+i+l+"-"+a+","+n+"Z")}},"star-triangle-down":{n:20,f:function(e,r,t){if(At(r))return wt;var a=Dr(e*C0*.8,2),n=Dr(e*.8,2),i=Dr(e*1.6,2),o=Dr(e*4,2),l="A "+o+","+o+" 0 0 1 ";return Mt(r,t,"M"+a+",-"+n+l+"-"+a+",-"+n+l+"0,"+i+l+a+",-"+n+"Z")}},"star-square":{n:21,f:function(e,r,t){if(At(r))return wt;var a=Dr(e*1.1,2),n=Dr(e*2,2),i="A "+n+","+n+" 0 0 1 ";return Mt(r,t,"M-"+a+",-"+a+i+"-"+a+","+a+i+a+","+a+i+a+",-"+a+i+"-"+a+",-"+a+"Z")}},"star-diamond":{n:22,f:function(e,r,t){if(At(r))return wt;var a=Dr(e*1.4,2),n=Dr(e*1.9,2),i="A "+n+","+n+" 0 0 1 ";return Mt(r,t,"M-"+a+",0"+i+"0,"+a+i+a+",0"+i+"0,-"+a+i+"-"+a+",0Z")}},"diamond-tall":{n:23,f:function(e,r,t){if(At(r))return wt;var a=Dr(e*.7,2),n=Dr(e*1.4,2);return Mt(r,t,"M0,"+n+"L"+a+",0L0,-"+n+"L-"+a+",0Z")}},"diamond-wide":{n:24,f:function(e,r,t){if(At(r))return wt;var a=Dr(e*1.4,2),n=Dr(e*.7,2);return Mt(r,t,"M0,"+n+"L"+a+",0L0,-"+n+"L-"+a+",0Z")}},hourglass:{n:25,f:function(e,r,t){if(At(r))return wt;var a=Dr(e,2);return Mt(r,t,"M"+a+","+a+"H-"+a+"L"+a+",-"+a+"H-"+a+"Z")},noDot:!0},bowtie:{n:26,f:function(e,r,t){if(At(r))return wt;var a=Dr(e,2);return Mt(r,t,"M"+a+","+a+"V-"+a+"L-"+a+","+a+"V-"+a+"Z")},noDot:!0},"circle-cross":{n:27,f:function(e,r,t){if(At(r))return wt;var a=Dr(e,2);return Mt(r,t,"M0,"+a+"V-"+a+"M"+a+",0H-"+a+"M"+a+",0A"+a+","+a+" 0 1,1 0,-"+a+"A"+a+","+a+" 0 0,1 "+a+",0Z")},needLine:!0,noDot:!0},"circle-x":{n:28,f:function(e,r,t){if(At(r))return wt;var a=Dr(e,2),n=Dr(e/qS,2);return Mt(r,t,"M"+n+","+n+"L-"+n+",-"+n+"M"+n+",-"+n+"L-"+n+","+n+"M"+a+",0A"+a+","+a+" 0 1,1 0,-"+a+"A"+a+","+a+" 0 0,1 "+a+",0Z")},needLine:!0,noDot:!0},"square-cross":{n:29,f:function(e,r,t){if(At(r))return wt;var a=Dr(e,2);return Mt(r,t,"M0,"+a+"V-"+a+"M"+a+",0H-"+a+"M"+a+","+a+"H-"+a+"V-"+a+"H"+a+"Z")},needLine:!0,noDot:!0},"square-x":{n:30,f:function(e,r,t){if(At(r))return wt;var a=Dr(e,2);return Mt(r,t,"M"+a+","+a+"L-"+a+",-"+a+"M"+a+",-"+a+"L-"+a+","+a+"M"+a+","+a+"H-"+a+"V-"+a+"H"+a+"Z")},needLine:!0,noDot:!0},"diamond-cross":{n:31,f:function(e,r,t){if(At(r))return wt;var a=Dr(e*1.3,2);return Mt(r,t,"M"+a+",0L0,"+a+"L-"+a+",0L0,-"+a+"ZM0,-"+a+"V"+a+"M-"+a+",0H"+a)},needLine:!0,noDot:!0},"diamond-x":{n:32,f:function(e,r,t){if(At(r))return wt;var a=Dr(e*1.3,2),n=Dr(e*.65,2);return Mt(r,t,"M"+a+",0L0,"+a+"L-"+a+",0L0,-"+a+"ZM-"+n+",-"+n+"L"+n+","+n+"M-"+n+","+n+"L"+n+",-"+n)},needLine:!0,noDot:!0},"cross-thin":{n:33,f:function(e,r,t){if(At(r))return wt;var a=Dr(e*1.4,2);return Mt(r,t,"M0,"+a+"V-"+a+"M"+a+",0H-"+a)},needLine:!0,noDot:!0,noFill:!0},"x-thin":{n:34,f:function(e,r,t){if(At(r))return wt;var a=Dr(e,2);return Mt(r,t,"M"+a+","+a+"L-"+a+",-"+a+"M"+a+",-"+a+"L-"+a+","+a)},needLine:!0,noDot:!0,noFill:!0},asterisk:{n:35,f:function(e,r,t){if(At(r))return wt;var a=Dr(e*1.2,2),n=Dr(e*.85,2);return Mt(r,t,"M0,"+a+"V-"+a+"M"+a+",0H-"+a+"M"+n+","+n+"L-"+n+",-"+n+"M"+n+",-"+n+"L-"+n+","+n)},needLine:!0,noDot:!0,noFill:!0},hash:{n:36,f:function(e,r,t){if(At(r))return wt;var a=Dr(e/2,2),n=Dr(e,2);return Mt(r,t,"M"+a+","+n+"V-"+n+"M"+(a-n)+",-"+n+"V"+n+"M"+n+","+a+"H-"+n+"M-"+n+","+(a-n)+"H"+n)},needLine:!0,noFill:!0},"y-up":{n:37,f:function(e,r,t){if(At(r))return wt;var a=Dr(e*1.2,2),n=Dr(e*1.6,2),i=Dr(e*.8,2);return Mt(r,t,"M-"+a+","+i+"L0,0M"+a+","+i+"L0,0M0,-"+n+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-down":{n:38,f:function(e,r,t){if(At(r))return wt;var a=Dr(e*1.2,2),n=Dr(e*1.6,2),i=Dr(e*.8,2);return Mt(r,t,"M-"+a+",-"+i+"L0,0M"+a+",-"+i+"L0,0M0,"+n+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-left":{n:39,f:function(e,r,t){if(At(r))return wt;var a=Dr(e*1.2,2),n=Dr(e*1.6,2),i=Dr(e*.8,2);return Mt(r,t,"M"+i+","+a+"L0,0M"+i+",-"+a+"L0,0M-"+n+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-right":{n:40,f:function(e,r,t){if(At(r))return wt;var a=Dr(e*1.2,2),n=Dr(e*1.6,2),i=Dr(e*.8,2);return Mt(r,t,"M-"+i+","+a+"L0,0M-"+i+",-"+a+"L0,0M"+n+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"line-ew":{n:41,f:function(e,r,t){if(At(r))return wt;var a=Dr(e*1.4,2);return Mt(r,t,"M"+a+",0H-"+a)},needLine:!0,noDot:!0,noFill:!0},"line-ns":{n:42,f:function(e,r,t){if(At(r))return wt;var a=Dr(e*1.4,2);return Mt(r,t,"M0,"+a+"V-"+a)},needLine:!0,noDot:!0,noFill:!0},"line-ne":{n:43,f:function(e,r,t){if(At(r))return wt;var a=Dr(e,2);return Mt(r,t,"M"+a+",-"+a+"L-"+a+","+a)},needLine:!0,noDot:!0,noFill:!0},"line-nw":{n:44,f:function(e,r,t){if(At(r))return wt;var a=Dr(e,2);return Mt(r,t,"M"+a+","+a+"L-"+a+",-"+a)},needLine:!0,noDot:!0,noFill:!0},"arrow-up":{n:45,f:function(e,r,t){if(At(r))return wt;var a=Dr(e,2),n=Dr(e*2,2);return Mt(r,t,"M0,0L-"+a+","+n+"H"+a+"Z")},backoff:1,noDot:!0},"arrow-down":{n:46,f:function(e,r,t){if(At(r))return wt;var a=Dr(e,2),n=Dr(e*2,2);return Mt(r,t,"M0,0L-"+a+",-"+n+"H"+a+"Z")},noDot:!0},"arrow-left":{n:47,f:function(e,r,t){if(At(r))return wt;var a=Dr(e*2,2),n=Dr(e,2);return Mt(r,t,"M0,0L"+a+",-"+n+"V"+n+"Z")},noDot:!0},"arrow-right":{n:48,f:function(e,r,t){if(At(r))return wt;var a=Dr(e*2,2),n=Dr(e,2);return Mt(r,t,"M0,0L-"+a+",-"+n+"V"+n+"Z")},noDot:!0},"arrow-bar-up":{n:49,f:function(e,r,t){if(At(r))return wt;var a=Dr(e,2),n=Dr(e*2,2);return Mt(r,t,"M-"+a+",0H"+a+"M0,0L-"+a+","+n+"H"+a+"Z")},backoff:1,needLine:!0,noDot:!0},"arrow-bar-down":{n:50,f:function(e,r,t){if(At(r))return wt;var a=Dr(e,2),n=Dr(e*2,2);return Mt(r,t,"M-"+a+",0H"+a+"M0,0L-"+a+",-"+n+"H"+a+"Z")},needLine:!0,noDot:!0},"arrow-bar-left":{n:51,f:function(e,r,t){if(At(r))return wt;var a=Dr(e*2,2),n=Dr(e,2);return Mt(r,t,"M0,-"+n+"V"+n+"M0,0L"+a+",-"+n+"V"+n+"Z")},needLine:!0,noDot:!0},"arrow-bar-right":{n:52,f:function(e,r,t){if(At(r))return wt;var a=Dr(e*2,2),n=Dr(e,2);return Mt(r,t,"M0,-"+n+"V"+n+"M0,0L-"+a+",-"+n+"V"+n+"Z")},needLine:!0,noDot:!0},arrow:{n:53,f:function(e,r,t){if(At(r))return wt;var a=M6/2.5,n=2*e*T6(a),i=2*e*k6(a);return Mt(r,t,"M0,0L"+-n+","+i+"L"+n+","+i+"Z")},backoff:.9,noDot:!0},"arrow-wide":{n:54,f:function(e,r,t){if(At(r))return wt;var a=M6/4,n=2*e*T6(a),i=2*e*k6(a);return Mt(r,t,"M0,0L"+-n+","+i+"A "+2*e+","+2*e+" 0 0 1 "+n+","+i+"Z")},backoff:.4,noDot:!0}};function At(e){return e===null}var PS,RS,zS,NS;function Mt(e,r,t){if((!e||e%360===0)&&!r)return t;if(zS===e&&NS===r&&PS===t)return RS;zS=e,NS=r,PS=t;function a(y,b){var C=T6(y),x=k6(y),_=b[0],M=b[1]+(r||0);return[_*C-M*x,_*x+M*C]}for(var n=e/180*M6,i=0,o=0,l=Ste(t),s="",u=0;u{"use strict";var Bn=Ft(),va=mr(),Dte=va.numberFormat,S0=Wt(),rm=_t(),Fn=qt(),Fte=Qp(),Ov=va.strTranslate,tm=si(),Ete=(Kf(),Tr(Jf)),Lte=(li(),Tr(oi)),qte=Lte.LINE_SPACING,ZS=(fp(),Tr(up)).DESELECTDIM,Pte=_i(),Rte=DS(),zte=Pu().appendArrayPointValue,zr={};iD.exports=zr;zr.font=function(e,r){var t=r.variant,a=r.style,n=r.weight,i=r.color,o=r.size,l=r.family,s=r.shadow,u=r.lineposition,f=r.textcase;l&&e.style("font-family",l),o+1&&e.style("font-size",o+"px"),i&&e.call(Fn.fill,i),n&&e.style("font-weight",n),a&&e.style("font-style",a),t&&e.style("font-variant",t),f&&e.style("text-transform",C6(Bte(f))),s&&e.style("text-shadow",s==="auto"?tm.makeTextShadow(Fn.contrast(i)):C6(s)),u&&e.style("text-decoration-line",C6(Ite(u)))};function C6(e){return e==="none"?void 0:e}var Nte={normal:"none",lower:"lowercase",upper:"uppercase","word caps":"capitalize"};function Bte(e){return Nte[e]}function Ite(e){return e.replace("under","underline").replace("over","overline").replace("through","line-through").split("+").join(" ")}zr.setPosition=function(e,r,t){e.attr("x",r).attr("y",t)};zr.setSize=function(e,r,t){e.attr("width",r).attr("height",t)};zr.setRect=function(e,r,t,a,n){e.call(zr.setPosition,r,t).call(zr.setSize,a,n)};zr.translatePoint=function(e,r,t,a){var n=t.c2p(e.x),i=a.c2p(e.y);if(S0(n)&&S0(i)&&r.node())r.node().nodeName==="text"?r.attr("x",n).attr("y",i):r.attr("transform",Ov(n,i));else return!1;return!0};zr.translatePoints=function(e,r,t){e.each(function(a){var n=Bn.select(this);zr.translatePoint(a,n,r,t)})};zr.hideOutsideRangePoint=function(e,r,t,a,n,i){r.attr("display",t.isPtWithinRange(e,n)&&a.isPtWithinRange(e,i)?null:"none")};zr.hideOutsideRangePoints=function(e,r){if(r._hasClipOnAxisFalse){var t=r.xaxis,a=r.yaxis;e.each(function(n){var i=n[0].trace,o=i.xcalendar,l=i.ycalendar,s=rm.traceIs(i,"bar-like")?".bartext":".point,.textpoint";e.selectAll(s).each(function(u){zr.hideOutsideRangePoint(u,Bn.select(this),t,a,o,l)})})}};zr.crispRound=function(e,r,t){return!r||!S0(r)?t||0:e._context.staticPlot?r:r<1?1:Math.round(r)};zr.singleLineStyle=function(e,r,t,a,n){r.style("fill","none");var i=(((e||[])[0]||{}).trace||{}).line||{},o=t||i.width||0,l=n||i.dash||"";Fn.stroke(r,a||i.color),zr.dashLine(r,l,o)};zr.lineGroupStyle=function(e,r,t,a){e.style("fill","none").each(function(n){var i=(((n||[])[0]||{}).trace||{}).line||{},o=r||i.width||0,l=a||i.dash||"";Bn.select(this).call(Fn.stroke,t||i.color).call(zr.dashLine,l,o)})};zr.dashLine=function(e,r,t){t=+t||0,r=zr.dashStyle(r,t),e.style({"stroke-dasharray":r,"stroke-width":t+"px"})};zr.dashStyle=function(e,r){r=+r||1;var t=Math.max(r,3);return e==="solid"?e="":e==="dot"?e=t+"px,"+t+"px":e==="dash"?e=3*t+"px,"+3*t+"px":e==="longdash"?e=5*t+"px,"+5*t+"px":e==="dashdot"?e=3*t+"px,"+t+"px,"+t+"px,"+t+"px":e==="longdashdot"&&(e=5*t+"px,"+2*t+"px,"+t+"px,"+2*t+"px"),e};function $S(e,r,t,a){var n=r.fillpattern,i=r.fillgradient,o=zr.getPatternAttr,l=n&&(o(n.shape,0,"")||o(n.path,0,""));if(l){var s=o(n.bgcolor,0,null),u=o(n.fgcolor,0,null),f=n.fgopacity,c=o(n.size,0,8),h=o(n.solidity,0,.3),d=r.uid;zr.pattern(e,"point",t,d,l,c,h,void 0,n.fillmode,s,u,f)}else if(i&&i.type!=="none"){var m=i.type,p="scatterfill-"+r.uid;if(a&&(p="legendfill-"+r.uid),!a&&(i.start!==void 0||i.stop!==void 0)){var y,b;m==="horizontal"?(y={x:i.start,y:0},b={x:i.stop,y:0}):m==="vertical"&&(y={x:0,y:i.start},b={x:0,y:i.stop}),y.x=r._xA.c2p(y.x===void 0?r._extremes.x.min[0].val:y.x,!0),y.y=r._yA.c2p(y.y===void 0?r._extremes.y.min[0].val:y.y,!0),b.x=r._xA.c2p(b.x===void 0?r._extremes.x.max[0].val:b.x,!0),b.y=r._yA.c2p(b.y===void 0?r._extremes.y.max[0].val:b.y,!0),e.call(QS,t,p,"linear",i.colorscale,"fill",y,b,!0,!1)}else m==="horizontal"&&(m=m+"reversed"),e.call(zr.gradient,t,p,m,i.colorscale,"fill")}else r.fillcolor&&e.call(Fn.fill,r.fillcolor)}zr.singleFillStyle=function(e,r){var t=Bn.select(e.node()),a=t.data(),n=((a[0]||[])[0]||{}).trace||{};$S(e,n,r,!1)};zr.fillGroupStyle=function(e,r,t){e.style("stroke-width",0).each(function(a){var n=Bn.select(this);a[0].trace&&$S(n,a[0].trace,r,t)})};var HS=IS();zr.symbolNames=[];zr.symbolFuncs=[];zr.symbolBackOffs=[];zr.symbolNeedLines={};zr.symbolNoDot={};zr.symbolNoFill={};zr.symbolList=[];Object.keys(HS).forEach(function(e){var r=HS[e],t=r.n;zr.symbolList.push(t,String(t),e,t+100,String(t+100),e+"-open"),zr.symbolNames[t]=e,zr.symbolFuncs[t]=r.f,zr.symbolBackOffs[t]=r.backoff||0,r.needLine&&(zr.symbolNeedLines[t]=!0),r.noDot?zr.symbolNoDot[t]=!0:zr.symbolList.push(t+200,String(t+200),e+"-dot",t+300,String(t+300),e+"-open-dot"),r.noFill&&(zr.symbolNoFill[t]=!0)});var Hte=zr.symbolNames.length,Ote="M0,0.5L0.5,0L0,-0.5L-0.5,0Z";zr.symbolNumber=function(e){if(S0(e))e=+e;else if(typeof e=="string"){var r=0;e.indexOf("-open")>0&&(r=100,e=e.replace("-open","")),e.indexOf("-dot")>0&&(r+=200,e=e.replace("-dot","")),e=zr.symbolNames.indexOf(e),e>=0&&(e+=r)}return e%100>=Hte||e>=400?0:Math.floor(Math.max(e,0))};function JS(e,r,t,a){var n=e%100;return zr.symbolFuncs[n](r,t,a)+(e>=200?Ote:"")}var OS=Dte("~f"),KS={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}};zr.gradient=function(e,r,t,a,n,i){var o=KS[a];return QS(e,r,t,o.type,n,i,o.start,o.stop,!1,o.reversed)};function QS(e,r,t,a,n,i,o,l,s,u){var f=n.length,c;a==="linear"?c={node:"linearGradient",attrs:{x1:o.x,y1:o.y,x2:l.x,y2:l.y,gradientUnits:s?"userSpaceOnUse":"objectBoundingBox"},reversed:u}:a==="radial"&&(c={node:"radialGradient",reversed:u});for(var h=new Array(f),d=0;d=0&&e.i===void 0&&(e.i=i.i),r.style("opacity",a.selectedOpacityFn?a.selectedOpacityFn(e):e.mo===void 0?o.opacity:e.mo),a.ms2mrc){var s;e.ms==="various"||o.size==="various"?s=3:s=a.ms2mrc(e.ms),e.mrc=s,a.selectedSizeFn&&(s=e.mrc=a.selectedSizeFn(e));var u=zr.symbolNumber(e.mx||o.symbol)||0;e.om=u%200>=100;var f=P6(e,t),c=q6(e,t);r.attr("d",JS(u,s,f,c))}var h=!1,d,m,p;if(e.so)p=l.outlierwidth,m=l.outliercolor,d=o.outliercolor;else{var y=(l||{}).width;p=(e.mlw+1||y+1||(e.trace?(e.trace.marker.line||{}).width:0)+1)-1||0,"mlc"in e?m=e.mlcc=a.lineScale(e.mlc):va.isArrayOrTypedArray(l.color)?m=Fn.defaultLine:m=l.color,va.isArrayOrTypedArray(o.color)&&(d=Fn.defaultLine,h=!0),"mc"in e?d=e.mcc=a.markerScale(e.mc):d=o.color||o.colors||"rgba(0,0,0,0)",a.selectedColorFn&&(d=a.selectedColorFn(e))}let b=e.mld||(l||{}).dash;if(b&&zr.dashLine(r,b,p),e.om)r.call(Fn.stroke,d).style({"stroke-width":(p||1)+"px",fill:"none"});else{r.style("stroke-width",(e.isBlank?0:p)+"px");var C=o.gradient,x=e.mgt;x?h=!0:x=C&&C.type,va.isArrayOrTypedArray(x)&&(x=x[0],KS[x]||(x=0));var _=o.pattern,M=zr.getPatternAttr,T=_&&(M(_.shape,e.i,"")||M(_.path,e.i,""));if(x&&x!=="none"){var A=e.mgc;A?h=!0:A=C.color;var E=t.uid;h&&(E+="-"+e.i),zr.gradient(r,n,E,x,[[0,A],[1,d]],"fill")}else if(T){var P=!1,z=_.fgcolor;!z&&i&&i.color&&(z=i.color,P=!0);var B=M(z,e.i,i&&i.color||null),X=M(_.bgcolor,e.i,null),I=_.fgopacity,V=M(_.size,e.i,8),H=M(_.solidity,e.i,.3);P=P||e.mcc||va.isArrayOrTypedArray(_.shape)||va.isArrayOrTypedArray(_.path)||va.isArrayOrTypedArray(_.bgcolor)||va.isArrayOrTypedArray(_.fgcolor)||va.isArrayOrTypedArray(_.size)||va.isArrayOrTypedArray(_.solidity);var Q=t.uid;P&&(Q+="-"+e.i),zr.pattern(r,"point",n,Q,T,V,H,e.mcc,_.fillmode,X,B,I)}else va.isArrayOrTypedArray(d)?Fn.fill(r,d[e.i]):Fn.fill(r,d);p&&Fn.stroke(r,m)}};zr.makePointStyleFns=function(e){var r={},t=e.marker;return r.markerScale=zr.tryColorscale(t,""),r.lineScale=zr.tryColorscale(t,"line"),rm.traceIs(e,"symbols")&&(r.ms2mrc=Pte.isBubble(e)?Rte(e):function(){return(t.size||6)/2}),e.selectedpoints&&va.extendFlat(r,zr.makeSelectedPointStyleFns(e)),r};zr.makeSelectedPointStyleFns=function(e){var r={},t=e.selected||{},a=e.unselected||{},n=e.marker||{},i=t.marker||{},o=a.marker||{},l=n.opacity,s=i.opacity,u=o.opacity,f=s!==void 0,c=u!==void 0;(va.isArrayOrTypedArray(l)||f||c)&&(r.selectedOpacityFn=function(_){var M=_.mo===void 0?n.opacity:_.mo;return _.selected?f?s:M:c?u:ZS*M});var h=n.color,d=i.color,m=o.color;(d||m)&&(r.selectedColorFn=function(_){var M=_.mcc||h;return _.selected?d||M:m||M});var p=n.size,y=i.size,b=o.size,C=y!==void 0,x=b!==void 0;return rm.traceIs(e,"symbols")&&(C||x)&&(r.selectedSizeFn=function(_){var M=_.mrc||p/2;return _.selected?C?y/2:M:x?b/2:M}),r};zr.makeSelectedTextStyleFns=function(e){var r={},t=e.selected||{},a=e.unselected||{},n=e.textfont||{},i=t.textfont||{},o=a.textfont||{},l=n.color,s=i.color,u=o.color;return r.selectedTextColorFn=function(f){var c=f.tc||l;return f.selected?s||c:u||(s?c:Fn.addOpacity(c,ZS))},r};zr.selectedPointStyle=function(e,r){if(!(!e.size()||!r.selectedpoints)){var t=zr.makeSelectedPointStyleFns(r),a=r.marker||{},n=[];t.selectedOpacityFn&&n.push(function(i,o){i.style("opacity",t.selectedOpacityFn(o))}),t.selectedColorFn&&n.push(function(i,o){Fn.fill(i,t.selectedColorFn(o))}),t.selectedSizeFn&&n.push(function(i,o){var l=o.mx||a.symbol||0,s=t.selectedSizeFn(o);i.attr("d",JS(zr.symbolNumber(l),s,P6(o,r),q6(o,r))),o.mrc2=s}),n.length&&e.each(function(i){for(var o=Bn.select(this),l=0;l0?t:0}zr.textPointStyle=function(e,r,t){if(e.size()){var a;if(r.selectedpoints){var n=zr.makeSelectedTextStyleFns(r);a=n.selectedTextColorFn}var i=r.texttemplate,o=t._fullLayout;e.each(function(l){var s=Bn.select(this),u=i?va.extractOption(l,r,"txt","texttemplate"):va.extractOption(l,r,"tx","text");if(!u&&u!==0){s.remove();return}if(i){var f=r._module.formatLabels,c=f?f(l,r,o):{},h={};zte(h,r,l.i),u=va.texttemplateString({data:[h,l,r._meta],fallback:r.texttemplatefallback,labels:c,locale:o._d3locale,template:u})}var d=l.tp||r.textposition,m=rD(l,r),p=a?a(l):l.tc||r.textfont.color;s.call(zr.font,{family:l.tf||r.textfont.family,weight:l.tw||r.textfont.weight,style:l.ty||r.textfont.style,variant:l.tv||r.textfont.variant,textcase:l.tC||r.textfont.textcase,lineposition:l.tE||r.textfont.lineposition,shadow:l.tS||r.textfont.shadow,size:m,color:p}).text(u).call(tm.convertToTspans,t).call(eD,d,m,l.mrc)})}};zr.selectedTextStyle=function(e,r){if(!(!e.size()||!r.selectedpoints)){var t=zr.makeSelectedTextStyleFns(r);e.each(function(a){var n=Bn.select(this),i=t.selectedTextColorFn(a),o=a.tp||r.textposition,l=rD(a,r);Fn.fill(n,i);var s=rm.traceIs(r,"bar-like");eD(n,o,l,a.mrc2||a.mrc,s)})}};var US=.5;zr.smoothopen=function(e,r){if(e.length<3)return"M"+e.join("L");var t="M"+e[0],a=[],n;for(n=1;n=s||_>=f&&_<=s)&&(M<=c&&M>=u||M>=c&&M<=u)&&(e=[_,M])}return e}zr.applyBackoff=nD;zr.makeTester=function(){var e=va.ensureSingleById(Bn.select("body"),"svg","js-plotly-tester",function(t){t.attr(Ete.svgAttrs).style({position:"absolute",left:"-10000px",top:"-10000px",width:"9000px",height:"9000px","z-index":"1"})}),r=va.ensureSingle(e,"path","js-reference-point",function(t){t.attr("d","M0,0H1V1H0Z").style({"stroke-width":0,fill:"black"})});zr.tester=e,zr.testref=r};zr.savedBBoxes={};var D6=0,Yte=1e4;zr.bBox=function(e,r,t){t||(t=GS(e));var a;if(t){if(a=zr.savedBBoxes[t],a)return va.extendFlat({},a)}else if(e.childNodes.length===1){var n=e.childNodes[0];if(t=GS(n),t){var i=+n.getAttribute("x")||0,o=+n.getAttribute("y")||0,l=n.getAttribute("transform");if(!l){var s=zr.bBox(n,!1,t);return i&&(s.left+=i,s.right+=i),o&&(s.top+=o,s.bottom+=o),s}if(t+="~"+i+"~"+o+"~"+l,a=zr.savedBBoxes[t],a)return va.extendFlat({},a)}}var u,f;r?u=e:(f=zr.tester.node(),u=e.cloneNode(!0),f.appendChild(u)),Bn.select(u).attr("transform",null).call(tm.positionText,0,0);var c=u.getBoundingClientRect(),h=zr.testref.node().getBoundingClientRect();r||f.removeChild(u);var d={height:c.height,width:c.width,left:c.left-h.left,top:c.top-h.top,right:c.right-h.left,bottom:c.bottom-h.top};return D6>=Yte&&(zr.savedBBoxes={},D6=0),t&&(zr.savedBBoxes[t]=d),D6++,va.extendFlat({},d)};function GS(e){var r=e.getAttribute("data-unformatted");if(r!==null)return r+e.getAttribute("data-math")+e.getAttribute("text-anchor")+e.getAttribute("style")}zr.setClipUrl=function(e,r,t){e.attr("clip-path",L6(r,t))};function L6(e,r){if(!e)return null;var t=r._context,a=t._exportedPlot?"":t._baseUrl||"";return a?"url('"+a+"#"+e+"')":"url(#"+e+")"}zr.getTranslate=function(e){var r=/.*\btranslate\((-?\d*\.?\d*)[^-\d]*(-?\d*\.?\d*)[^\d].*/,t=e.attr?"attr":"getAttribute",a=e[t]("transform")||"",n=a.replace(r,function(i,o,l){return[o,l].join(" ")}).split(" ");return{x:+n[0]||0,y:+n[1]||0}};zr.setTranslate=function(e,r,t){var a=/(\btranslate\(.*?\);?)/,n=e.attr?"attr":"getAttribute",i=e.attr?"attr":"setAttribute",o=e[n]("transform")||"";return r=r||0,t=t||0,o=o.replace(a,"").trim(),o+=Ov(r,t),o=o.trim(),e[i]("transform",o),o};zr.getScale=function(e){var r=/.*\bscale\((\d*\.?\d*)[^\d]*(\d*\.?\d*)[^\d].*/,t=e.attr?"attr":"getAttribute",a=e[t]("transform")||"",n=a.replace(r,function(i,o,l){return[o,l].join(" ")}).split(" ");return{x:+n[0]||1,y:+n[1]||1}};zr.setScale=function(e,r,t){var a=/(\bscale\(.*?\);?)/,n=e.attr?"attr":"getAttribute",i=e.attr?"attr":"setAttribute",o=e[n]("transform")||"";return r=r||1,t=t||1,o=o.replace(a,"").trim(),o+="scale("+r+","+t+")",o=o.trim(),e[i]("transform",o),o};var Vte=/\s*sc.*/;zr.setPointGroupScale=function(e,r,t){if(r=r||1,t=t||1,!!e){var a=r===1&&t===1?"":"scale("+r+","+t+")";e.each(function(){var n=(this.getAttribute("transform")||"").replace(Vte,"");n+=a,n=n.trim(),this.setAttribute("transform",n)})}};var Xte=/translate\([^)]*\)\s*$/;zr.setTextPointsScale=function(e,r,t){e&&e.each(function(){var a,n=Bn.select(this),i=n.select("text");if(i.node()){var o=parseFloat(i.attr("x")||0),l=parseFloat(i.attr("y")||0),s=(n.attr("transform")||"").match(Xte);r===1&&t===1?a=[]:a=[Ov(o,l),"scale("+r+","+t+")",Ov(-o,-l)],s&&a.push(s),n.attr("transform",a.join(""))}})};function q6(e,r){var t;return e&&(t=e.mf),t===void 0&&(t=r.marker&&r.marker.standoff||0),!r._geo&&!r._xA?-t:t}zr.getMarkerStandoff=q6;var Hv=Math.atan2,rc=Math.cos,j1=Math.sin;function YS(e,r){var t=r[0],a=r[1];return[t*rc(e)-a*j1(e),t*j1(e)+a*rc(e)]}var VS,XS,jS,WS,F6,E6;function P6(e,r){var t=e.ma;t===void 0&&(t=r.marker.angle,(!S0(t)||va.isArrayOrTypedArray(t))&&(t=0));var a,n,i=r.marker.angleref;if(i==="previous"||i==="north"){if(r._geo){var o=r._geo.project(e.lonlat);a=o[0],n=o[1]}else{var l=r._xA,s=r._yA;if(l&&s)a=l.c2p(e.x),n=s.c2p(e.y);else return 90}if(r._geo){var u=e.lonlat[0],f=e.lonlat[1],c=r._geo.project([u,f+1e-5]),h=r._geo.project([u+1e-5,f]),d=Hv(h[1]-n,h[0]-a),m=Hv(c[1]-n,c[0]-a),p;if(i==="north")p=t/180*Math.PI;else if(i==="previous"){var y=u/180*Math.PI,b=f/180*Math.PI,C=VS/180*Math.PI,x=XS/180*Math.PI,_=C-y,M=rc(x)*j1(_),T=j1(x)*rc(b)-rc(x)*j1(b)*rc(_);p=-Hv(M,T)-Math.PI,VS=u,XS=f}var A=YS(d,[rc(p),0]),E=YS(m,[j1(p),0]);t=Hv(A[1]+E[1],A[0]+E[0])/Math.PI*180,i==="previous"&&!(E6===r.uid&&e.i===F6+1)&&(t=null)}if(i==="previous"&&!r._geo)if(E6===r.uid&&e.i===F6+1&&S0(a)&&S0(n)){var P=a-jS,z=n-WS,B=r.line&&r.line.shape||"",X=B.slice(B.length-1);X==="h"&&(z=0),X==="v"&&(P=0),t+=Hv(z,P)/Math.PI*180+90}else t=null}return jS=a,WS=n,F6=e.i,E6=r.uid,t}zr.getMarkerAngle=P6});var Uv=le((I6e,uD)=>{"use strict";var W1=Ft(),jte=Wt(),Wte=Sn(),R6=_t(),nc=mr(),oD=nc.strTranslate,am=ha(),nm=qt(),Z1=si(),lD=(fp(),Tr(up)),Zte=(li(),Tr(oi)).OPPOSITE_SIDE,sD=/ [XY][0-9]* /,z6=1.6,N6=1.6;function $te(e,r,t){var a=e._fullLayout,n=t.propContainer,i=t.propName,o=t.placeholder,l=t.traceIndex,s=t.avoid||{},u=t.attributes,f=t.transform,c=t.containerGroup,h=1,d=n.title,m=(d&&d.text?d.text:"").trim(),p=!1,y=d&&d.font?d.font:{},b=y.family,C=y.size,x=y.color,_=y.weight,M=y.style,T=y.variant,A=y.textcase,E=y.lineposition,P=y.shadow,z=t.subtitlePropName,B=!!z,X=t.subtitlePlaceholder,I=(n.title||{}).subtitle||{text:"",font:{}},V=(I.text||"").trim(),H=!1,Q=1,oe=I.font,re=oe.family,te=oe.size,ie=oe.color,ce=oe.weight,Me=oe.style,De=oe.variant,Ie=oe.textcase,Ue=oe.lineposition,ke=oe.shadow,je;i==="title.text"?je="titleText":i.indexOf("axis")!==-1?je="axisTitleText":i.indexOf("colorbar")!==-1&&(je="colorbarTitleText");var W=e._context.edits[je];function ee(hr,dr){return hr===void 0||dr===void 0?!1:hr.replace(sD," % ")===dr.replace(sD," % ")}m===""?h=0:ee(m,o)&&(W||(m=""),h=.2,p=!0),B&&(V===""?Q=0:ee(V,X)&&(W||(V=""),Q=.2,H=!0)),t._meta?m=nc.templateString(m,t._meta):a._meta&&(m=nc.templateString(m,a._meta));var me=m||V||W,K;c||(c=nc.ensureSingle(a._infolayer,"g","g-"+r),K=a._hColorbarMoveTitle);var J=c.selectAll("text."+r).data(me?[0]:[]);J.enter().append("text"),J.text(m).attr("class",r),J.exit().remove();var ue=null,_e=r+"-subtitle",Ne=V||W;if(B&&(ue=c.selectAll("text."+_e).data(Ne?[0]:[]),ue.enter().append("text"),ue.text(V).attr("class",_e),ue.exit().remove()),!me)return c;function Je(hr,dr){nc.syncOrAsync([ar,tr],{title:hr,subtitle:dr})}function ar(hr){var dr=hr.title,Ze=hr.subtitle,cr;!f&&K&&(f={}),f?(cr="",f.rotate&&(cr+="rotate("+[f.rotate,u.x,u.y]+")"),(f.offset||K)&&(cr+=oD(0,(f.offset||0)-(K||0)))):cr=null,dr.attr("transform",cr);function Lr(Be){if(Be){var Xe=W1.select(Be.node().parentNode).select("."+_e);if(!Xe.empty()){var yr=Be.node().getBBox();if(yr.height){var Cr=yr.y+yr.height+z6*te;Xe.attr("y",Cr)}}}}if(dr.style("opacity",h*nm.opacity(x)).call(am.font,{color:nm.rgb(x),size:W1.round(C,2),family:b,weight:_,style:M,variant:T,textcase:A,shadow:P,lineposition:E}).attr(u).call(Z1.convertToTspans,e,Lr),Ze&&!Ze.empty()){var Te=c.select("."+r+"-math-group"),Oe=dr.node().getBBox(),Ar=Te.node()?Te.node().getBBox():void 0,Br=Ar?Ar.y+Ar.height+z6*te:Oe.y+Oe.height+N6*te,Qe=nc.extendFlat({},u,{y:Br});Ze.attr("transform",cr),Ze.style("opacity",Q*nm.opacity(ie)).call(am.font,{color:nm.rgb(ie),size:W1.round(te,2),family:re,weight:ce,style:Me,variant:De,textcase:Ie,shadow:ke,lineposition:Ue}).attr(Qe).call(Z1.convertToTspans,e)}return Wte.previousPromises(e)}function tr(hr){var dr=hr.title,Ze=W1.select(dr.node().parentNode);if(s&&s.selection&&s.side&&m){Ze.attr("transform",null);var cr=Zte[s.side],Lr=s.side==="left"||s.side==="top"?-1:1,Te=jte(s.pad)?s.pad:2,Oe=am.bBox(Ze.node()),Ar={t:0,b:0,l:0,r:0},Br=e._fullLayout._reservedMargin;for(var Qe in Br)for(var Be in Br[Qe]){var Xe=Br[Qe][Be];Ar[Be]=Math.max(Ar[Be],Xe)}var yr={left:Ar.l,top:Ar.t,right:a.width-Ar.r,bottom:a.height-Ar.b},Cr=s.maxShift||Lr*(yr[s.side]-Oe[s.side]),pr=0;if(Cr<0)pr=Cr;else{var xr=s.offsetLeft||0,Rr=s.offsetTop||0;Oe.left-=xr,Oe.right-=xr,Oe.top-=Rr,Oe.bottom-=Rr,s.selection.each(function(){var Or=am.bBox(this);nc.bBoxIntersect(Oe,Or,Te)&&(pr=Math.max(pr,Lr*(Or[s.side]-Oe[cr])+Te))}),pr=Math.min(Cr,pr),n._titleScoot=Math.abs(pr)}if(pr>0||Cr<0){var Er={left:[-pr,0],right:[pr,0],top:[0,-pr],bottom:[0,pr]}[s.side];Ze.attr("transform",oD(Er[0],Er[1]))}}}J.call(Je,ue);function fr(hr,dr){hr.text(dr).on("mouseover.opacity",function(){W1.select(this).transition().duration(lD.SHOW_PLACEHOLDER).style("opacity",1)}).on("mouseout.opacity",function(){W1.select(this).transition().duration(lD.HIDE_PLACEHOLDER).style("opacity",0)})}if(W&&(m?J.on(".opacity",null):(fr(J,o),p=!0),J.call(Z1.makeEditable,{gd:e}).on("edit",function(hr){l!==void 0?R6.call("_guiRestyle",e,i,hr,l):R6.call("_guiRelayout",e,i,hr)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(Je)}).on("input",function(hr){this.text(hr||" ").call(Z1.positionText,u.x,u.y)}),B)){if(B&&!m){var Re=J.node().getBBox(),sr=Re.y+Re.height+N6*te;ue.attr("y",sr)}V?ue.on(".opacity",null):(fr(ue,X),H=!0),ue.call(Z1.makeEditable,{gd:e}).on("edit",function(hr){R6.call("_guiRelayout",e,"title.subtitle.text",hr)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(Je)}).on("input",function(hr){this.text(hr||" ").call(Z1.positionText,ue.attr("x"),ue.attr("y"))})}return J.classed("js-placeholder",p),ue&&!ue.empty()&&ue.classed("js-placeholder",H),c}uD.exports={draw:$te,SUBTITLE_PADDING_EM:N6,SUBTITLE_PADDING_MATHJAX_EM:z6}});var vm=le((H6e,dD)=>{"use strict";var Jte=Ft(),Kte=v1().utcFormat,Ma=mr(),Qte=Ma.numberFormat,Es=Wt(),D0=Ma.cleanNumber,eae=Ma.ms2DateTime,fD=Ma.dateTime2ms,Ls=Ma.ensureNumber,cD=Ma.isArrayOrTypedArray,F0=(Ya(),Tr($a)),im=F0.FP_SAFE,Gl=F0.BADNUM,rae=F0.LOG_CLIP,tae=F0.ONEWEEK,om=F0.ONEDAY,lm=F0.ONEHOUR,vD=F0.ONEMIN,hD=F0.ONESEC,sm=Cn(),cm=(Nn(),Tr(zn)),um=cm.HOUR_PATTERN,fm=cm.WEEKDAY_PATTERN;function Gv(e){return Math.pow(10,e)}function B6(e){return e!=null}dD.exports=function(r,t){t=t||{};var a=r._id||"x",n=a.charAt(0);function i(_,M){if(_>0)return Math.log(_)/Math.LN10;if(_<=0&&M&&r.range&&r.range.length===2){var T=r.range[0],A=r.range[1];return .5*(T+A-2*rae*Math.abs(T-A))}else return Gl}function o(_,M,T,A){if((A||{}).msUTC&&Es(_))return+_;var E=fD(_,T||r.calendar);if(E===Gl)if(Es(_)){_=+_;var P=Math.floor(Ma.mod(_+.05,1)*10),z=Math.round(_-P/10);E=fD(new Date(z))+P/10}else return Gl;return E}function l(_,M,T){return eae(_,M,T||r.calendar)}function s(_){return r._categories[Math.round(_)]}function u(_){if(B6(_)){if(r._categoriesMap===void 0&&(r._categoriesMap={}),r._categoriesMap[_]!==void 0)return r._categoriesMap[_];r._categories.push(typeof _=="number"?String(_):_);var M=r._categories.length-1;return r._categoriesMap[_]=M,M}return Gl}function f(_,M){for(var T=new Array(M),A=0;Ar.range[1]&&(T=!T);for(var A=T?-1:1,E=A*_,P=0,z=0;zX)P=z+1;else{P=E<(B+X)/2?z:z+1;break}}var I=r._B[P]||0;return isFinite(I)?m(_,r._m2,I):0},b=function(_){var M=r._rangebreaks.length;if(!M)return p(_,r._m,r._b);for(var T=0,A=0;Ar._rangebreaks[A].pmax&&(T=A+1);return p(_,r._m2,r._B[T])}}r.c2l=r.type==="log"?i:Ls,r.l2c=r.type==="log"?Gv:Ls,r.l2p=y,r.p2l=b,r.c2p=r.type==="log"?function(_,M){return y(i(_,M))}:y,r.p2c=r.type==="log"?function(_){return Gv(b(_))}:b,["linear","-"].indexOf(r.type)!==-1?(r.d2r=r.r2d=r.d2c=r.r2c=r.d2l=r.r2l=D0,r.c2d=r.c2r=r.l2d=r.l2r=Ls,r.d2p=r.r2p=function(_){return r.l2p(D0(_))},r.p2d=r.p2r=b,r.cleanPos=Ls):r.type==="log"?(r.d2r=r.d2l=function(_,M){return i(D0(_),M)},r.r2d=r.r2c=function(_){return Gv(D0(_))},r.d2c=r.r2l=D0,r.c2d=r.l2r=Ls,r.c2r=i,r.l2d=Gv,r.d2p=function(_,M){return r.l2p(r.d2r(_,M))},r.p2d=function(_){return Gv(b(_))},r.r2p=function(_){return r.l2p(D0(_))},r.p2r=b,r.cleanPos=Ls):r.type==="date"?(r.d2r=r.r2d=Ma.identity,r.d2c=r.r2c=r.d2l=r.r2l=o,r.c2d=r.c2r=r.l2d=r.l2r=l,r.d2p=r.r2p=function(_,M,T){return r.l2p(o(_,0,T))},r.p2d=r.p2r=function(_,M,T){return l(b(_),M,T)},r.cleanPos=function(_){return Ma.cleanDate(_,Gl,r.calendar)}):r.type==="category"?(r.d2c=r.d2l=u,r.r2d=r.c2d=r.l2d=s,r.d2r=r.d2l_noadd=h,r.r2c=function(_){var M=d(_);return M!==void 0?M:r.fraction2r(.5)},r.l2r=r.c2r=Ls,r.r2l=d,r.d2p=function(_){return r.l2p(r.r2c(_))},r.p2d=function(_){return s(b(_))},r.r2p=r.d2p,r.p2r=b,r.cleanPos=function(_){return typeof _=="string"&&_!==""?_:Ls(_)}):r.type==="multicategory"&&(r.r2d=r.c2d=r.l2d=s,r.d2r=r.d2l_noadd=h,r.r2c=function(_){var M=h(_);return M!==void 0?M:r.fraction2r(.5)},r.r2c_just_indices=c,r.l2r=r.c2r=Ls,r.r2l=h,r.d2p=function(_){return r.l2p(r.r2c(_))},r.p2d=function(_){return s(b(_))},r.r2p=r.d2p,r.p2r=b,r.cleanPos=function(_){return Array.isArray(_)||typeof _=="string"&&_!==""?_:Ls(_)},r.setupMultiCategory=function(_){var M=r._traceIndices,T,A,E=r._matchGroup;if(E&&r._categories.length===0){for(var P in E)if(P!==a){var z=t[sm.id2name(P)];M=M.concat(z._traceIndices)}}var B=[[0,{}],[0,{}]],X=[];for(T=0;Tz[1]&&(A[P?0:1]=T,E[1]=z[1]),E[0]>=E[1])if(M!==void 0){var B=z[0]+1;T!==void 0&&(B=Math.min(B,z[1])),A[P?0:1]=r.l2r(B)}else T!==void 0&&(A[P?1:0]=r.l2r(z[1]-1))}},r.cleanRange=function(_,M){r._cleanRange(_,M),r.limitRange(_)},r._cleanRange=function(_,M){M||(M={}),_||(_="range");var T=Ma.nestedProperty(r,_).get(),A,E;if(r.type==="date"?E=Ma.dfltRange(r.calendar):n==="y"?E=cm.DFLTRANGEY:r._name==="realaxis"?E=[0,1]:E=M.dfltRange||cm.DFLTRANGEX,E=E.slice(),(r.rangemode==="tozero"||r.rangemode==="nonnegative")&&(E[0]=0),!T||T.length!==2){Ma.nestedProperty(r,_).set(E);return}var P=T[0]===null,z=T[1]===null;for(r.type==="date"&&!r.autorange&&(T[0]=Ma.cleanDate(T[0],Gl,r.calendar),T[1]=Ma.cleanDate(T[1],Gl,r.calendar)),A=0;A<2;A++)if(r.type==="date"){if(!Ma.isDateTime(T[A],r.calendar)){r[_]=E;break}if(r.r2l(T[0])===r.r2l(T[1])){var B=Ma.constrain(r.r2l(T[0]),Ma.MIN_MS+1e3,Ma.MAX_MS-1e3);T[0]=r.l2r(B-1e3),T[1]=r.l2r(B+1e3);break}}else{if(!Es(T[A]))if(!(P||z)&&Es(T[1-A]))T[A]=T[1-A]*(A?10:.1);else{r[_]=E;break}if(T[A]<-im?T[A]=-im:T[A]>im&&(T[A]=im),T[0]===T[1]){var X=Math.max(1,Math.abs(T[0]*1e-6));T[0]-=X,T[1]+=X}}},r.setScale=function(_){var M=t._size;if(r.overlaying){var T=sm.getFromId({_fullLayout:t},r.overlaying);r.domain=T.domain}var A=_&&r._r?"_r":"range",E=r.calendar;r.cleanRange(A);var P=r.r2l(r[A][0],E),z=r.r2l(r[A][1],E),B=n==="y";if(B?(r._offset=M.t+(1-r.domain[1])*M.h,r._length=M.h*(r.domain[1]-r.domain[0]),r._m=r._length/(P-z),r._b=-r._m*z):(r._offset=M.l+r.domain[0]*M.w,r._length=M.w*(r.domain[1]-r.domain[0]),r._m=r._length/(z-P),r._b=-r._m*P),r._rangebreaks=[],r._lBreaks=0,r._m2=0,r._B=[],r.rangebreaks){var X,I;if(r._rangebreaks=r.locateBreaks(Math.min(P,z),Math.max(P,z)),r._rangebreaks.length){for(X=0;Xz&&(V=!V),V&&r._rangebreaks.reverse();var H=V?-1:1;for(r._m2=H*r._length/(Math.abs(z-P)-r._lBreaks),r._B.push(-r._m2*(B?z:P)),X=0;XE&&(E+=7,PE&&(E+=24,P=A&&P=A&&_=ke.min&&(Meke.max&&(ke.max=De),Ie=!1)}Ie&&z.push({min:Me,max:De})}};for(T=0;T{"use strict";var pD=Wt(),I6=mr(),aae=(Ya(),Tr($a)).BADNUM,hm=I6.isArrayOrTypedArray,nae=I6.isDateTime,iae=I6.cleanNumber,mD=Math.round;yD.exports=function(r,t,a){var n=r,i=a.noMultiCategory;if(hm(n)&&!n.length)return"-";if(!i&&fae(n))return"multicategory";if(i&&Array.isArray(n[0])){for(var o=[],l=0;li*2}function gD(e){return Math.max(1,(e-1)/1e3)}function uae(e,r){for(var t=e.length,a=gD(t),n=0,i=0,o={},l=0;ln*2}function fae(e){return hm(e[0])&&hm(e[1])}});var L0=le((U6e,kD)=>{"use strict";var cae=Ft(),wD=Wt(),E0=mr(),dm=(Ya(),Tr($a)).FP_SAFE,vae=_t(),hae=ha(),AD=Cn(),dae=AD.getFromId,pae=AD.isLinked;kD.exports={applyAutorangeOptions:TD,getAutoRange:O6,makePadFn:U6,doAutoRange:gae,findExtremes:yae,concatExtremes:V6};function O6(e,r){var t,a,n=[],i=e._fullLayout,o=U6(i,r,0),l=U6(i,r,1),s=V6(e,r),u=s.min,f=s.max;if(u.length===0||f.length===0)return E0.simpleMap(r.range,r.r2l);var c=u[0].val,h=f[0].val;for(t=1;t0&&(z=x-o(T)-l(A),z>_?B/z>M&&(E=T,P=A,M=B/z):B/x>M&&(E={val:T.val,nopad:1},P={val:A.val,nopad:1},M=B/x));function X(oe,re){return Math.max(oe,l(re))}if(c===h){var I=c-1,V=c+1;if(b)if(c===0)n=[0,1];else{var H=(c>0?f:u).reduce(X,0),Q=c/(1-Math.min(.5,H/x));n=c>0?[0,Q]:[Q,0]}else C?n=[Math.max(0,I),Math.max(1,V)]:n=[I,V]}else b?(E.val>=0&&(E={val:0,nopad:1}),P.val<=0&&(P={val:0,nopad:1})):C&&(E.val-M*o(E)<0&&(E={val:0,nopad:1}),P.val<=0&&(P={val:1,nopad:1})),M=(P.val-E.val-bD(r,T.val,A.val))/(x-o(E)-l(P)),n=[E.val-M*o(E),P.val+M*l(P)];return n=TD(n,r),r.limitRange&&r.limitRange(),m&&n.reverse(),E0.simpleMap(n,r.l2r||Number)}function bD(e,r,t){var a=0;if(e.rangebreaks)for(var n=e.locateBreaks(r,t),i=0;i0?t.ppadplus:t.ppadminus)||t.ppad||0),T=_((e._m>0?t.ppadminus:t.ppadplus)||t.ppad||0),A=_(t.vpadplus||t.vpad),E=_(t.vpadminus||t.vpad);if(!u){if(C=1/0,x=-1/0,s)for(c=0;c0&&(C=h),h>x&&h-dm&&(C=h),h>x&&h=B;c--)z(c);return{min:a,max:n,opts:t}}function G6(e,r,t,a){MD(e,r,t,a,bae)}function Y6(e,r,t,a){MD(e,r,t,a,_ae)}function MD(e,r,t,a,n){for(var i=a.tozero,o=a.extrapad,l=!0,s=0;s=t&&(u.extrapad||!o)){l=!1;break}else n(r,u.val)&&u.pad<=t&&(o||!u.extrapad)&&(e.splice(s,1),s--)}if(l){var f=i&&r===0;e.push({val:r,pad:f?0:t,extrapad:f?!1:o})}}function xD(e){return wD(e)&&Math.abs(e)=r}function xae(e,r){var t=r.autorangeoptions;return t&&t.minallowed!==void 0&&pm(r,t.minallowed,t.maxallowed)?t.minallowed:t&&t.clipmin!==void 0&&pm(r,t.clipmin,t.clipmax)?Math.max(e,r.d2l(t.clipmin)):e}function wae(e,r){var t=r.autorangeoptions;return t&&t.maxallowed!==void 0&&pm(r,t.minallowed,t.maxallowed)?t.maxallowed:t&&t.clipmax!==void 0&&pm(r,t.clipmin,t.clipmax)?Math.min(e,r.d2l(t.clipmax)):e}function pm(e,r,t){return r!==void 0&&t!==void 0?(r=e.d2l(r),t=e.d2l(t),r=s&&(i=s,t=s),o<=s&&(o=s,a=s)}}return t=xae(t,r),a=wae(a,r),[t,a]}});var Oa=le((Y6e,ZD)=>{"use strict";var Wo=Ft(),vn=Wt(),$1=Sn(),Vv=_t(),dt=mr(),J1=dt.strTranslate,ic=si(),Aae=Uv(),Xv=qt(),_o=ha(),Mae=Ol(),CD=f6(),G6e=(Nn(),Tr(zn)),ri=(Ya(),Tr($a)),Tae=ri.ONEMAXYEAR,ym=ri.ONEAVGYEAR,bm=ri.ONEMINYEAR,kae=ri.ONEMAXQUARTER,Z6=ri.ONEAVGQUARTER,_m=ri.ONEMINQUARTER,Cae=ri.ONEMAXMONTH,K1=ri.ONEAVGMONTH,xm=ri.ONEMINMONTH,xo=ri.ONEWEEK,xi=ri.ONEDAY,q0=xi/2,Ps=ri.ONEHOUR,jv=ri.ONEMIN,wm=ri.ONESEC,Sae=ri.ONEMILLI,Dae=ri.ONEMICROSEC,oc=ri.MINUS_SIGN,Mm=ri.BADNUM,$6={K:"zeroline"},J6={K:"gridline",L:"path"},K6={K:"minor-gridline",L:"path"},BD={K:"tick",L:"path"},SD={K:"tick",L:"text"},DD={width:["x","r","l","xl","xr"],height:["y","t","b","yt","yb"],right:["r","xr"],left:["l","xl"],top:["t","yt"],bottom:["b","yb"]},Tm=(li(),Tr(oi)),Yv=Tm.MID_SHIFT,lc=Tm.CAP_SHIFT,Wv=Tm.LINE_SPACING,Fae=Tm.OPPOSITE_SIDE,Am=3,_r=ZD.exports={};_r.setConvert=vm();var Eae=H6(),Rs=Cn(),Lae=Rs.idSort,qae=Rs.isLinked;_r.id2name=Rs.id2name;_r.name2id=Rs.name2id;_r.cleanId=Rs.cleanId;_r.list=Rs.list;_r.listIds=Rs.listIds;_r.getFromId=Rs.getFromId;_r.getFromTrace=Rs.getFromTrace;var ID=L0();_r.getAutoRange=ID.getAutoRange;_r.findExtremes=ID.findExtremes;var Pae=1e-4;function tb(e){var r=(e[1]-e[0])*Pae;return[e[0]-r,e[1]+r]}function Rae(e,r,t){if(![t,e,r].every(vn)||t===0)return e;let a=Math.round((e-r)/t),n=r+a*t;return e!==n&&Math.abs(e-n)h+" domain")),s=s.concat(i||[]),f.length>o?(dt.warn("Array attribute "+u+" has more entries than expected, truncating to "+o),f=f.slice(0,o)):f.length2e-6||((t-e._forceTick0)/e._minDtick%1+1.000001)%1>2e-6)&&(e._minDtick=0))};_r.saveRangeInitial=function(e,r){for(var t=_r.list(e,"",!0),a=!1,n=0;nc*.3||u(a)||u(n))){var h=t.dtick/2;e+=e+ho){var l=Number(t.slice(1));i.exactYears>o&&l%12===0?e=_r.tickIncrement(e,"M6","reverse")+xi*1.5:i.exactMonths>o?e=_r.tickIncrement(e,"M1","reverse")+xi*15.5:e-=q0;var s=_r.tickIncrement(e,t);if(s<=a)return s}return e}_r.prepMinorTicks=function(e,r,t){var c,h;if(!((c=r.minor)!=null&&c.dtick)){delete e.dtick;var a=r.dtick&&vn(r._tmin),n;if(a){var i=_r.tickIncrement(r._tmin,r.dtick,!0);n=[r._tmin,i*.99+r._tmin*.01]}else{var o=dt.simpleMap(r.range,r.r2l);n=[o[0],.8*o[0]+.2*o[1]]}if(e.range=dt.simpleMap(n,r.l2r),e._isMinor=!0,_r.prepTicks(e,t),a){var l=vn(r.dtick),s=vn(e.dtick),u=l?r.dtick:+r.dtick.substring(1),f=s?e.dtick:+e.dtick.substring(1);l&&s?X6(u,f)?u===2*xo&&f===2*xi&&(e.dtick=xo):u===2*xo&&f===3*xi?e.dtick=xo:u===xo&&!(r._input.minor||{}).nticks?e.dtick=xi:LD(u/f,2.5)?e.dtick=u/2:e.dtick=u:String(r.dtick).charAt(0)==="M"?s?e.dtick="M1":X6(u,f)?u>=12&&f===2&&(e.dtick="M3"):e.dtick=r.dtick:String(e.dtick).charAt(0)==="L"?String(r.dtick).charAt(0)==="L"?X6(u,f)||(e.dtick=LD(u/f,2.5)?r.dtick/2:r.dtick):e.dtick="D1":e.dtick==="D2"&&+r.dtick>1&&(e.dtick=1)}e.range=r.range}((h=r.minor)==null?void 0:h._tick0Init)===void 0&&(e.tick0=r.tick0)};function X6(e,r){return Math.abs((e/r+.5)%1-.5)<.001}function LD(e,r){return Math.abs(e/r-1)<.001}_r.prepTicks=function(e,r){var t=dt.simpleMap(e.range,e.r2l,void 0,void 0,r);if(e.tickmode==="auto"||!e.dtick){var a=e.nticks,n;a||(e.type==="category"||e.type==="multicategory"?(n=e.tickfont?dt.bigFont(e.tickfont.size||12):15,a=e._length/n):(n=e._id.charAt(0)==="y"?40:80,a=dt.constrain(e._length/n,4,9)+1),e._name==="radialaxis"&&(a*=2)),e.minor&&e.minor.tickmode!=="array"||e.tickmode==="array"&&(a*=100),e._roughDTick=Math.abs(t[1]-t[0])/a,_r.autoTicks(e,e._roughDTick),e._minDtick>0&&e.dtick0?(i=a-1,o=a):(i=a,o=a);var l=e[i].value,s=e[o].value,u=Math.abs(s-l),f=t||u,c=0;f>=bm?u>=bm&&u<=Tae?c=u:c=ym:t===Z6&&f>=_m?u>=_m&&u<=kae?c=u:c=Z6:f>=xm?u>=xm&&u<=Cae?c=u:c=K1:t===xo&&f>=xo?c=xo:f>=xi?c=xi:t===q0&&f>=q0?c=q0:t===Ps&&f>=Ps&&(c=Ps);var h;c>=u&&(c=u,h=!0);var d=n+c;if(r.rangebreaks&&c>0){for(var m=84,p=0,y=0;yxo&&(c=u)}(c>0||a===0)&&(e[a].periodX=n+c/2)}}_r.calcTicks=function(r,t){for(var a=r.type,n=r.calendar,i=r.ticklabelstep,o=r.ticklabelmode==="period",l=r.range[0]>r.range[1],s=!r.ticklabelindex||dt.isArrayOrTypedArray(r.ticklabelindex)?r.ticklabelindex:[r.ticklabelindex],u=dt.simpleMap(r.range,r.r2l,void 0,void 0,t),f=u[1]=(_?0:1);M--){var T=!M;M?(r._dtickInit=r.dtick,r._tick0Init=r.tick0):_&&(r.minor._dtickInit=r.minor.dtick,r.minor._tick0Init=r.minor.tick0);var A=M?r:dt.extendFlat({},r,_?r.minor:{minor:{}});if(T?_r.prepMinorTicks(A,r,t):_r.prepTicks(A,t),A.tickmode==="array"){M?(y=[],m=qD(r,!T)):(b=[],p=qD(r,!T));continue}if(A.tickmode==="sync"){y=[],m=Oae(r);continue}var E=tb(u),P=E[0],z=E[1],B=vn(A.dtick),X=a==="log"&&!(B||A.dtick.charAt(0)==="L"),I=_r.tickFirst(A,t);if(M){if(r._tmin=I,I=z:H<=z;H=_r.tickIncrement(H,re,f,n)){if(M&&Q++,A.rangebreaks&&!f){if(H=h)break}if(y.length>d||H===V)break;V=H;var ie={value:Rae(H,te,re)};M?(H===I&&(ie.first=!0),X&&H!==(H|0)&&(ie.simpleLabel=!0),i>1&&Q%i&&(ie.skipLabel=!0),y.push(ie)):(ie.minor=!0,b.push(ie))}}if(!b||b.length<3)s=!1;else{var ce=(b[2].value-b[1].value)*(l?-1:1);vne(ce,r.tickformat)||(s=!1,b=b.slice(1))}if(!s)C=y;else{var Me=y.concat(b);o&&y.length&&(Me=Me.slice(1)),Me=Me.sort(function(dr,Ze){return dr.value-Ze.value}).filter(function(dr,Ze,cr){return Ze===0||dr.value!==cr[Ze-1].value});var De=Me.map(function(dr,Ze){return dr.minor===void 0&&!dr.skipLabel?Ze:null}).filter(function(dr){return dr!==null});De.forEach(function(dr){s.map(function(Ze){var cr=dr+Ze;cr>=0&&cr-1;J--){if(y[J].drop){y.splice(J,1);continue}y[J].value=W6(y[J].value,r);var Je=r.c2p(y[J].value);(ue?Ne>Je-_e:Neh||Lrh&&(cr.periodX=h),Lrn&&mn&&yym)r/=ym,a=n(10),e.dtick="M"+12*qs(r,a,mm);else if(i>K1)r/=K1,e.dtick="M"+qs(r,1,PD);else if(i>xi){if(e.dtick=qs(r,xi,e._hasDayOfWeekBreaks?[1,2,7,14]:Uae),!t){var o=_r.getTickFormat(e),l=e.ticklabelmode==="period";l&&(e._rawTick0=e.tick0),/%[uVW]/.test(o)?e.tick0=dt.dateTick0(e.calendar,2):e.tick0=dt.dateTick0(e.calendar,1),l&&(e._dowTick0=e.tick0)}}else i>Ps?e.dtick=qs(r,Ps,PD):i>jv?e.dtick=qs(r,jv,RD):i>wm?e.dtick=qs(r,wm,RD):(a=n(10),e.dtick=qs(r,a,mm))}else if(e.type==="log"){e.tick0=0;var s=dt.simpleMap(e.range,e.r2l);if(e._isMinor&&(r*=1.5),r>.7)e.dtick=Math.ceil(r);else if(Math.abs(s[1]-s[0])<1){var u=1.5*Math.abs((s[1]-s[0])/r);r=Math.abs(Math.pow(10,s[1])-Math.pow(10,s[0]))/u,a=n(10),e.dtick="L"+qs(r,a,mm)}else e.dtick=r>.3?"D2":"D1"}else e.type==="category"||e.type==="multicategory"?(e.tick0=0,e.dtick=Math.ceil(Math.max(r,1))):ob(e)?(e.tick0=0,a=1,e.dtick=qs(r,a,Gae)):(e.tick0=0,a=n(10),e.dtick=qs(r,a,mm));if(e.dtick===0&&(e.dtick=1),!vn(e.dtick)&&typeof e.dtick!="string"){var f=e.dtick;throw e.dtick=1,"ax.dtick error: "+String(f)}};function GD(e){var r=e.dtick;if(e._tickexponent=0,!vn(r)&&typeof r!="string"&&(r=1),(e.type==="category"||e.type==="multicategory")&&(e._tickround=null),e.type==="date"){var t=e.r2l(e.tick0),a=e.l2r(t).replace(/(^-|i)/g,""),n=a.length;if(String(r).charAt(0)==="M")n>10||a.slice(5)!=="01-01"?e._tickround="d":e._tickround=+r.slice(1)%12===0?"y":"m";else if(r>=xi&&n<=10||r>=xi*15)e._tickround="d";else if(r>=jv&&n<=16||r>=Ps)e._tickround="M";else if(r>=wm&&n<=19||r>=jv)e._tickround="S";else{var i=e.l2r(t+r).replace(/^-/,"").length;e._tickround=Math.max(n,i)-20,e._tickround<0&&(e._tickround=4)}}else if(vn(r)||r.charAt(0)==="L"){var o=e.range.map(e.r2d||Number);vn(r)||(r=Number(r.slice(1))),e._tickround=2-Math.floor(Math.log(r)/Math.LN10+.01);var l=Math.max(Math.abs(o[0]),Math.abs(o[1])),s=Math.floor(Math.log(l)/Math.LN10+.01),u=e.minexponent===void 0?3:e.minexponent;Math.abs(s)>u&&(Q1(e.exponentformat)&&e.exponentformat!=="SI extended"&&!ab(s)||Q1(e.exponentformat)&&e.exponentformat==="SI extended"&&!nb(s)?e._tickexponent=3*Math.round((s-1)/3):e._tickexponent=s)}else e._tickround=null}_r.tickIncrement=function(e,r,t,a){var n=t?-1:1;if(vn(r))return dt.increment(e,n*r);var i=r.charAt(0),o=n*Number(r.slice(1));if(i==="M")return dt.incrementMonth(e,o,a);if(i==="L")return Math.log(Math.pow(10,e)+o)/Math.LN10;if(i==="D"){var l=r==="D2"?UD:OD,s=e+n*.01,u=dt.roundUp(dt.mod(s,1),l,t);return Math.floor(s)+Math.log(Wo.round(Math.pow(10,u),1))/Math.LN10}throw"unrecognized dtick "+String(r)};_r.tickFirst=function(e,r){var t=e.r2l||Number,a=dt.simpleMap(e.range,t,void 0,void 0,r),n=a[1]=0&&_<=e._length?x:null};if(s&&dt.isArrayOrTypedArray(e.ticktext)){var m=dt.simpleMap(e.range,e.r2l),p=(Math.abs(m[1]-m[0])-(e._lBreaks||0))/1e4;for(h=0;h"+l;else{var u=$v(e),f=e._trueSide||e.side;(!u&&f==="top"||u&&f==="bottom")&&(o+="
")}r.text=o}function Vae(e,r,t,a,n){var i=e.dtick,o=r.x,l=e.tickformat,s=typeof i=="string"&&i.charAt(0);if(n==="never"&&(n=""),a&&s!=="L"&&(i="L3",s="L"),l||s==="L")r.text=Zv(Math.pow(10,o),e,n,a);else if(vn(i)||s==="D"&&(e.minorloglabels==="complete"||dt.mod(o+.01,1)<.1)){var u;e.minorloglabels==="complete"&&!(dt.mod(o+.01,1)<.1)&&(u=!0,r.fontSize*=.75);var f=Math.pow(10,o).toExponential(0),c=f.split("e"),h=+c[1],d=Math.abs(h),m=e.exponentformat;m==="power"||Q1(m)&&m!=="SI extended"&&ab(h)||Q1(m)&&m==="SI extended"&&nb(h)?(r.text=c[0],d>0&&(r.text+="x10"),r.text==="1x10"&&(r.text="10"),h!==0&&h!==1&&(r.text+=""+(h>0?"":oc)+d+""),r.fontSize*=1.25):(m==="e"||m==="E")&&d>2?r.text=c[0]+m+(h>0?"+":oc)+d:(r.text=Zv(Math.pow(10,o),e,"","fakehover"),i==="D1"&&e._id.charAt(0)==="y"&&(r.dy-=r.fontSize/6))}else if(s==="D")r.text=e.minorloglabels==="none"?"":String(Math.round(Math.pow(10,dt.mod(o,1)))),r.fontSize*=.75;else throw"unrecognized dtick "+String(i);if(e.dtick==="D1"){var p=String(r.text).charAt(0);(p==="0"||p==="1")&&(e._id.charAt(0)==="y"?r.dx-=r.fontSize/4:(r.dy+=r.fontSize/2,r.dx+=(e.range[1]>e.range[0]?1:-1)*r.fontSize*(o<0?.5:.25)))}}function Xae(e,r){var t=e._categories[Math.round(r.x)];t===void 0&&(t=""),r.text=String(t)}function jae(e,r,t){var a=Math.round(r.x),n=e._categories[a]||[],i=n[1]===void 0?"":String(n[1]),o=n[0]===void 0?"":String(n[0]);t?r.text=o+" - "+i:(r.text=i,r.text2=o)}function Wae(e,r,t,a,n){n==="never"?n="":e.showexponent==="all"&&Math.abs(r.x/e.dtick)<1e-6&&(n="hide"),r.text=Zv(r.x,e,n,a)}function Zae(e,r,t,a,n){if(e.thetaunit==="radians"&&!t){var i=r.x/180;if(i===0)r.text="0";else{var o=$ae(i);if(o[1]>=100)r.text=Zv(dt.deg2rad(r.x),e,n,a);else{var l=r.x<0;o[1]===1?o[0]===1?r.text="\u03C0":r.text=o[0]+"\u03C0":r.text=["",o[0],"","\u2044","",o[1],"","\u03C0"].join(""),l&&(r.text=oc+r.text)}}}else r.text=Zv(r.x,e,n,a)}function $ae(e){function r(l,s){return Math.abs(l-s)<=1e-6}function t(l,s){return r(s,0)?l:t(s,l%s)}function a(l){for(var s=1;!r(Math.round(l*s)/s,l);)s*=10;return s}var n=a(e),i=e*n,o=Math.abs(t(i,n));return[Math.round(i/o),Math.round(n/o)]}var VD=["f","p","n","\u03BC","m","","k","M","G","T"],Jae=["q","r","y","z","a",...VD,"P","E","Z","Y","R","Q"],Q1=e=>["SI","SI extended","B"].includes(e);function ab(e){return e>14||e<-15}function nb(e){return e>32||e<-30}function Kae(e,r){return Q1(r)?!!(r==="SI extended"&&nb(e)||r!=="SI extended"&&ab(e)):!1}function Zv(e,r,t,a){var n=e<0,i=r._tickround,o=t||r.exponentformat||"B",l=r._tickexponent,s=_r.getTickFormat(r),u=r.separatethousands;if(a){var f={exponentformat:o,minexponent:r.minexponent,dtick:r.showexponent==="none"?r.dtick:vn(e)&&Math.abs(e)||1,range:r.showexponent==="none"?r.range.map(r.r2d):[0,e||1]};GD(f),i=(Number(f._tickround)||0)+4,l=f._tickexponent,r.hoverformat&&(s=r.hoverformat)}if(s)return r._numFormat(s)(e).replace(/-/g,oc);o==="none"&&(l=0),e=Math.abs(e);let c=Math.pow(10,-i)/2;if(e"+h+"":o==="B"&&l===9?e+="B":Q1(o)&&(e+=o==="SI extended"?Jae[l/3+10]:VD[l/3+5])}return n?oc+e:e}_r.getTickFormat=function(e){var r;function t(s){return typeof s!="string"?s:Number(s.replace("M",""))*K1}function a(s,u){var f=["L","D"];if(typeof s==typeof u){if(typeof s=="number")return s-u;var c=f.indexOf(s.charAt(0)),h=f.indexOf(u.charAt(0));return c===h?Number(s.replace(/(L|D)/g,""))-Number(u.replace(/(L|D)/g,"")):c-h}else return typeof s=="number"?1:-1}function n(s,u,f){var c=f||function(m){return m},h=u[0],d=u[1];return(!h&&typeof h!="number"||c(h)<=c(s))&&(!d&&typeof d!="number"||c(d)>=c(s))}function i(s,u){var f=u[0]===null,c=u[1]===null,h=a(s,u[0])>=0,d=a(s,u[1])<=0;return(f||h)&&(c||d)}var o,l;if(e.tickformatstops&&e.tickformatstops.length>0)switch(e.type){case"date":case"linear":{for(r=0;r=0&&n.unshift(n.splice(f,1).shift())}});var l={false:{left:0,right:0}};return dt.syncOrAsync(n.map(function(s){return function(){if(s){var u=_r.getFromId(e,s);t||(t={}),t.axShifts=l,t.overlayingShiftedAx=o;var f=_r.drawOne(e,u,t);return u._shiftPusher&&rb(u,u._fullDepth||0,l,!0),u._r=u.range.slice(),u._rl=dt.simpleMap(u._r,u.r2l),f}}}))};_r.drawOne=function(e,r,t){t=t||{};var a=t.axShifts||{},n=t.overlayingShiftedAx||[],i,o,l;r.setScale();var s=e._fullLayout,u=r._id,f=u.charAt(0),c=_r.counterLetter(u),h=s._plots[r._mainSubplot],d=r.zerolinelayer==="above traces";if(!h)return;if(r._shiftPusher=r.autoshift||n.indexOf(r._id)!==-1||n.indexOf(r.overlaying)!==-1,r._shiftPusher&r.anchor==="free"){var m=r.linewidth/2||0;r.ticks==="inside"&&(m+=r.ticklen),rb(r,m,a,!0),rb(r,r.shift||0,a,!1)}(t.skipTitle!==!0||r._shift===void 0)&&(r._shift=cne(r,a));var p=h[f+"axislayer"],y=r._mainLinePosition,b=y+=r._shift,C=r._mainMirrorPosition,x=r._vals=_r.calcTicks(r),_=[r.mirror,b,C].join("_");for(i=0;i0?Ze.bottom-hr:0,dr))));var Oe=0,Ar=0;if(r._shiftPusher&&(Oe=Math.max(dr,Ze.height>0?Re==="l"?hr-Ze.left:Ze.right-hr:0),r.title.text!==s._dfltTitle[f]&&(Ar=(r._titleStandoff||0)+(r._titleScoot||0),Re==="l"&&(Ar+=ND(r))),r._fullDepth=Math.max(Oe,Ar)),r.automargin){cr={x:0,y:0,r:0,l:0,t:0,b:0};var Br=[0,1],Qe=typeof r._shift=="number"?r._shift:0;if(f==="x"){if(Re==="b"?cr[Re]=r._depth:(cr[Re]=r._depth=Math.max(Ze.width>0?hr-Ze.top:0,dr),Br.reverse()),Ze.width>0){var Be=Ze.right-(r._offset+r._length);Be>0&&(cr.xr=1,cr.r=Be);var Xe=r._offset-Ze.left;Xe>0&&(cr.xl=0,cr.l=Xe)}}else if(Re==="l"?(r._depth=Math.max(Ze.height>0?hr-Ze.left:0,dr),cr[Re]=r._depth-Qe):(r._depth=Math.max(Ze.height>0?Ze.right-hr:0,dr),cr[Re]=r._depth+Qe,Br.reverse()),Ze.height>0){var yr=Ze.bottom-(r._offset+r._length);yr>0&&(cr.yb=0,cr.b=yr);var Cr=r._offset-Ze.top;Cr>0&&(cr.yt=1,cr.t=Cr)}cr[c]=r.anchor==="free"?r.position:r._anchorAxis.domain[Br[0]],r.title.text!==s._dfltTitle[f]&&(cr[Re]+=ND(r)+(r.title.standoff||0)),r.mirror&&r.anchor!=="free"&&(Lr={x:0,y:0,r:0,l:0,t:0,b:0},Lr[sr]=r.linewidth,r.mirror&&r.mirror!==!0&&(Lr[sr]+=dr),r.mirror===!0||r.mirror==="ticks"?Lr[c]=r._anchorAxis.domain[Br[1]]:(r.mirror==="all"||r.mirror==="allticks")&&(Lr[c]=[r._counterDomainMin,r._counterDomainMax][Br[1]]))}fr&&(Te=Vv.getComponentMethod("rangeslider","autoMarginOpts")(e,r)),typeof r.automargin=="string"&&(zD(cr,r.automargin),zD(Lr,r.automargin)),$1.autoMargin(e,ib(r),cr),$1.autoMargin(e,jD(r),Lr),$1.autoMargin(e,WD(r),Te)}),dt.syncOrAsync(ar)}};function zD(e,r){if(e){var t=Object.keys(DD).reduce(function(a,n){return r.indexOf(n)!==-1&&DD[n].forEach(function(i){a[i]=1}),a},{});Object.keys(e).forEach(function(a){t[a]||(a.length===1?e[a]=0:delete e[a])})}}function Qae(e,r){var t=[],a,n=function(i,o){var l=i.xbnd[o];l!==null&&t.push(dt.extendFlat({},i,{x:l}))};if(r.length){for(a=0;ae.range[1],l=e.ticklabelposition&&e.ticklabelposition.indexOf("inside")!==-1,s=!l;if(t){var u=o?-1:1;t=t*u}if(a){var f=e.side,c=l&&(f==="top"||f==="left")||s&&(f==="bottom"||f==="right")?1:-1;a=a*c}return e._id.charAt(0)==="x"?function(h){return J1(n+e._offset+e.l2p(Q6(h))+t,i+a)}:function(h){return J1(i+a,n+e._offset+e.l2p(Q6(h))+t)}};function Q6(e){return e.periodX!==void 0?e.periodX:e.x}function ane(e){var r=e.ticklabelposition||"",t=e.tickson||"",a=function(m){return r.indexOf(m)!==-1},n=a("top"),i=a("left"),o=a("right"),l=a("bottom"),s=a("inside"),u=t!=="boundaries"&&(l||i||n||o);if(!u&&!s)return[0,0];var f=e.side,c=u?(e.tickwidth||0)/2:0,h=Am,d=e.tickfont?e.tickfont.size:12;return(l||n)&&(c+=d*lc,h+=(e.linewidth||0)/2),(i||o)&&(c+=(e.linewidth||0)/2,h+=Am),s&&f==="top"&&(h-=d*(1-lc)),(i||n)&&(c=-c),(f==="bottom"||f==="right")&&(h=-h),[u?c:0,s?h:0]}_r.makeTickPath=function(e,r,t,a){a||(a={});var n=a.minor;if(n&&!e.minor)return"";var i=a.len!==void 0?a.len:n?e.minor.ticklen:e.ticklen,o=e._id.charAt(0),l=(e.linewidth||1)/2;return o==="x"?"M0,"+(r+l*t)+"v"+i*t:"M"+(r+l*t)+",0h"+i*t};_r.makeLabelFns=function(e,r,t){var a=e.ticklabelposition||"",n=e.tickson||"",i=function(I){return a.indexOf(I)!==-1},o=i("top"),l=i("left"),s=i("right"),u=i("bottom"),f=n!=="boundaries"&&(u||l||o||s),c=i("inside"),h=a==="inside"&&e.ticks==="inside"||!c&&e.ticks==="outside"&&n!=="boundaries",d=0,m=0,p=h?e.ticklen:0;if(c?p*=-1:f&&(p=0),h&&(d+=p,t)){var y=dt.deg2rad(t);d=p*Math.cos(y)+1,m=p*Math.sin(y)}e.showticklabels&&(h||e.showline)&&(d+=.2*e.tickfont.size),d+=(e.linewidth||1)/2*(c?-1:1);var b={labelStandoff:d,labelShift:m},C,x,_,M,T=0,A=e.side,E=e._id.charAt(0),P=e.tickangle,z;if(E==="x")z=!c&&A==="bottom"||c&&A==="top",M=z?1:-1,c&&(M*=-1),C=m*M,x=r+d*M,_=z?1:-.2,Math.abs(P)===90&&(c?_+=Yv:P===-90&&A==="bottom"?_=lc:P===90&&A==="top"?_=Yv:_=.5,T=Yv/2*(P/90)),b.xFn=function(I){return I.dx+C+T*I.fontSize},b.yFn=function(I){return I.dy+x+I.fontSize*_},b.anchorFn=function(I,V){if(f){if(l)return"end";if(s)return"start"}return!vn(V)||V===0||V===180?"middle":V*M<0!==c?"end":"start"},b.heightFn=function(I,V,H){return V<-60||V>60?-.5*H:e.side==="top"!==c?-H:0};else if(E==="y"){if(z=!c&&A==="left"||c&&A==="right",M=z?1:-1,c&&(M*=-1),C=d,x=m*M,_=0,!c&&Math.abs(P)===90&&(P===-90&&A==="left"||P===90&&A==="right"?_=lc:_=.5),c){var B=vn(P)?+P:0;if(B!==0){var X=dt.deg2rad(B);T=Math.abs(Math.sin(X))*lc*M,_=0}}b.xFn=function(I){return I.dx+r-(C+I.fontSize*_)*M+T*I.fontSize},b.yFn=function(I){return I.dy+x+I.fontSize*Yv},b.anchorFn=function(I,V){return vn(V)&&Math.abs(V)===90?"middle":z?"end":"start"},b.heightFn=function(I,V,H){return e.side==="right"&&(V*=-1),V<-30?-H:V<30?-.5*H:0}}return b};function km(e){return[e.text,e.x,e.axInfo,e.font,e.fontSize,e.fontColor].join("_")}_r.drawTicks=function(e,r,t){t=t||{};var a=r._id+"tick",n=[].concat(r.minor&&r.minor.ticks?t.vals.filter(function(o){return o.minor&&!o.noTick}):[]).concat(r.ticks?t.vals.filter(function(o){return!o.minor&&!o.noTick}):[]),i=t.layer.selectAll("path."+a).data(n,km);i.exit().remove(),i.enter().append("path").classed(a,1).classed("ticks",1).classed("crisp",t.crisp!==!1).each(function(o){return Xv.stroke(Wo.select(this),o.minor?r.minor.tickcolor:r.tickcolor)}).style("stroke-width",function(o){return _o.crispRound(e,o.minor?r.minor.tickwidth:r.tickwidth,1)+"px"}).attr("d",t.path).style("display",null),Cm(r,[BD]),i.attr("transform",t.transFn)};_r.drawGrid=function(e,r,t){if(t=t||{},r.tickmode!=="sync"){var a=r._id+"grid",n=r.minor&&r.minor.showgrid,i=n?t.vals.filter(function(b){return b.minor}):[],o=r.showgrid?t.vals.filter(function(b){return!b.minor}):[],l=t.counterAxis;if(l&&_r.shouldShowZeroLine(e,r,l))for(var s=r.tickmode==="array",u=0;u=0;m--){var p=m?h:d;if(p){var y=p.selectAll("path."+a).data(m?o:i,km);y.exit().remove(),y.enter().append("path").classed(a,1).classed("crisp",t.crisp!==!1),y.attr("transform",t.transFn).attr("d",t.path).each(function(b){return Xv.stroke(Wo.select(this),b.minor?r.minor.gridcolor:r.gridcolor||"#ddd")}).style("stroke-dasharray",function(b){return _o.dashStyle(b.minor?r.minor.griddash:r.griddash,b.minor?r.minor.gridwidth:r.gridwidth)}).style("stroke-width",function(b){return(b.minor?c:r._gw)+"px"}).style("display",null),typeof t.path=="function"&&y.attr("d",t.path)}}Cm(r,[J6,K6])}};_r.drawZeroLine=function(e,r,t){t=t||t;var a=r._id+"zl",n=_r.shouldShowZeroLine(e,r,t.counterAxis),i=t.layer.selectAll("path."+a).data(n?[{x:0,id:r._id}]:[]);i.exit().remove(),i.enter().append("path").classed(a,1).classed("zl",1).classed("crisp",t.crisp!==!1).each(function(){t.layer.selectAll("path").sort(function(o,l){return Lae(o.id,l.id)})}),i.attr("transform",t.transFn).attr("d",t.path).call(Xv.stroke,r.zerolinecolor||Xv.defaultLine).style("stroke-width",_o.crispRound(e,r.zerolinewidth,r._gw||1)+"px").style("display",null),Cm(r,[$6])};_r.drawLabels=function(e,r,t){t=t||{};var a=e._fullLayout,n=r._id,i=r.zerolinelayer==="above traces",o=t.cls||n+"tick",l=t.vals.filter(function(te){return te.text}),s=t.labelFns,u=t.secondary?0:r.tickangle,f=(r._prevTickAngles||{})[o],c=t.layer.selectAll("g."+o).data(r.showticklabels?l:[],km),h=[];c.enter().append("g").classed(o,1).append("text").attr("text-anchor","middle").each(function(te){var ie=Wo.select(this),ce=e._promises.length;ie.call(ic.positionText,s.xFn(te),s.yFn(te)).call(_o.font,{family:te.font,size:te.fontSize,color:te.fontColor,weight:te.fontWeight,style:te.fontStyle,variant:te.fontVariant,textcase:te.fontTextcase,lineposition:te.fontLineposition,shadow:te.fontShadow}).text(te.text).call(ic.convertToTspans,e),e._promises[ce]?h.push(e._promises.pop().then(function(){d(ie,u)})):d(ie,u)}),Cm(r,[SD]),c.exit().remove(),t.repositionOnUpdate&&c.each(function(te){Wo.select(this).select("text").call(ic.positionText,s.xFn(te),s.yFn(te))});function d(te,ie){te.each(function(ce){var Me=Wo.select(this),De=Me.select(".text-math-group"),Ie=s.anchorFn(ce,ie),Ue=t.transFn.call(Me.node(),ce)+(vn(ie)&&+ie!=0?" rotate("+ie+","+s.xFn(ce)+","+(s.yFn(ce)-ce.fontSize/2)+")":""),ke=ic.lineCount(Me),je=Wv*ce.fontSize,W=s.heightFn(ce,vn(ie)?+ie:0,(ke-1)*je);if(W&&(Ue+=J1(0,W)),De.empty()){var ee=Me.select("text");ee.attr({transform:Ue,"text-anchor":Ie}),ee.style("display",null),r._adjustTickLabelsOverflow&&r._adjustTickLabelsOverflow()}else{var me=_o.bBox(De.node()).width,K=me*{end:-.5,start:.5}[Ie];De.attr("transform",Ue+J1(K,0))}})}r._adjustTickLabelsOverflow=function(){var te=r.ticklabeloverflow;if(!(!te||te==="allow")){var ie=te.indexOf("hide")!==-1,ce=r._id.charAt(0)==="x",Me=0,De=ce?e._fullLayout.width:e._fullLayout.height;if(te.indexOf("domain")!==-1){var Ie=dt.simpleMap(r.range,r.r2l);Me=r.l2p(Ie[0])+r._offset,De=r.l2p(Ie[1])+r._offset}var Ue=Math.min(Me,De),ke=Math.max(Me,De),je=r.side,W=1/0,ee=-1/0;c.each(function(ue){var _e=Wo.select(this),Ne=_e.select(".text-math-group");if(Ne.empty()){var Je=_o.bBox(_e.node()),ar=0;ce?(Je.right>ke||Je.leftke||Je.top+(r.tickangle?0:ue.fontSize/4)r["_visibleLabelMin_"+Ie._id]?_e.style("display","none"):ke.K==="tick"&&!Ue&&_e.node().style.display!=="none"&&_e.style("display",null)})})})})},d(c,f+1?f:u);function m(){return h.length&&Promise.all(h)}var p=null;function y(){if(d(c,u),l.length&&r.autotickangles&&(r.type!=="log"||String(r.dtick).charAt(0)!=="D")){p=r.autotickangles[0];var te=0,ie=[],ce,Me=1;c.each(function(cr){te=Math.max(te,cr.fontSize);var Lr=r.l2p(cr.x),Te=eb(this),Oe=_o.bBox(Te.node());Me=Math.max(Me,ic.lineCount(Te)),ie.push({top:0,bottom:10,height:10,left:Lr-Oe.width/2,right:Lr+Oe.width/2+2,width:Oe.width+2})});var De=(r.tickson==="boundaries"||r.showdividers)&&!t.secondary,Ie=l.length,Ue=Math.abs((l[Ie-1].x-l[0].x)*r._m)/(Ie-1),ke=De?Ue/2:Ue,je=De?r.ticklen:te*1.25*Me,W=Math.sqrt(Math.pow(ke,2)+Math.pow(je,2)),ee=ke/W,me=r.autotickangles.map(function(cr){return cr*Math.PI/180}),K=me.find(function(cr){return Math.abs(Math.cos(cr))<=ee});K===void 0&&(K=me.reduce(function(cr,Lr){return Math.abs(Math.cos(cr))Q*H&&(X=H,P[E]=z[E]=I[E])}var oe=Math.abs(X-B);oe-M>0?(oe-=M,M*=1+M/oe):M=0,r._id.charAt(0)!=="y"&&(M=-M),P[A]=x.p2r(x.r2p(z[A])+T*M),x.autorange==="min"||x.autorange==="max reversed"?(P[0]=null,x._rangeInitial0=void 0,x._rangeInitial1=void 0):(x.autorange==="max"||x.autorange==="min reversed")&&(P[1]=null,x._rangeInitial0=void 0,x._rangeInitial1=void 0),a._insideTickLabelsUpdaterange[x._name+".range"]=P}var re=dt.syncOrAsync(b);return re&&re.then&&e._promises.push(re),re};function nne(e,r,t){var a=r._id+"divider",n=t.vals,i=t.layer.selectAll("path."+a).data(n,km);i.exit().remove(),i.enter().insert("path",":first-child").classed(a,1).classed("crisp",1).call(Xv.stroke,r.dividercolor).style("stroke-width",_o.crispRound(e,r.dividerwidth,1)+"px"),i.attr("transform",t.transFn).attr("d",t.path)}_r.getPxPosition=function(e,r){var t=e._fullLayout._size,a=r._id.charAt(0),n=r.side,i;if(r.anchor!=="free"?i=r._anchorAxis:a==="x"?i={_offset:t.t+(1-(r.position||0))*t.h,_length:0}:a==="y"&&(i={_offset:t.l+(r.position||0)*t.w+r._shift,_length:0}),n==="top"||n==="left")return i._offset;if(n==="bottom"||n==="right")return i._offset+i._length};function ND(e){var r=e.title.font.size,t=(e.title.text.match(ic.BR_TAG_ALL)||[]).length;return e.title.hasOwnProperty("standoff")?r*(lc+t*Wv):t?r*(t+1)*Wv:r}function ine(e,r){var t=e._fullLayout,a=r._id,n=a.charAt(0),i=r.title.font.size,o,l=(r.title.text.match(ic.BR_TAG_ALL)||[]).length;if(r.title.hasOwnProperty("standoff"))r.side==="bottom"||r.side==="right"?o=r._depth+r.title.standoff+i*lc:(r.side==="top"||r.side==="left")&&(o=r._depth+r.title.standoff+i*(Yv+l*Wv));else{var s=$v(r);if(r.type==="multicategory")o=r._depth;else{var u=1.5*i;s&&(u=.5*i,r.ticks==="outside"&&(u+=r.ticklen)),o=10+u+(r.linewidth?r.linewidth-1:0)}s||(n==="x"?o+=r.side==="top"?i*(r.showticklabels?1:0):i*(r.showticklabels?1.5:.5):o+=r.side==="right"?i*(r.showticklabels?1:.5):i*(r.showticklabels?.5:0))}var f=_r.getPxPosition(e,r),c,h,d;n==="x"?(h=r._offset+r._length/2,d=r.side==="top"?f-o:f+o):(d=r._offset+r._length/2,h=r.side==="right"?f+o:f-o,c={rotate:"-90",offset:0});var m;if(r.type!=="multicategory"){var p=r._selections[r._id+"tick"];if(m={selection:p,side:r.side},p&&p.node()&&p.node().parentNode){var y=_o.getTranslate(p.node().parentNode);m.offsetLeft=y.x,m.offsetTop=y.y}r.title.hasOwnProperty("standoff")&&(m.pad=0)}return r._titleStandoff=o,Aae.draw(e,a+"title",{propContainer:r,propName:r._name+".title.text",placeholder:t._dfltTitle[n],avoid:m,transform:c,attributes:{x:h,y:d,"text-anchor":"middle"}})}_r.shouldShowZeroLine=function(e,r,t){var a=dt.simpleMap(r.range,r.r2l);return a[0]*a[1]<=0&&r.zeroline&&(r.type==="linear"||r.type==="-")&&!(r.rangebreaks&&r.maskBreaks(0)===Mm)&&(XD(r,0)||!one(e,r,t,a)||lne(e,r))};_r.clipEnds=function(e,r){return r.filter(function(t){return XD(e,t.x)})};function XD(e,r){var t=e.l2p(r);return t>1&&t1)for(n=1;n=n.min&&e=Dae:/%L/.test(r)?e>=Sae:/%[SX]/.test(r)?e>=wm:/%M/.test(r)?e>=jv:/%[HI]/.test(r)?e>=Ps:/%p/.test(r)?e>=q0:/%[Aadejuwx]/.test(r)?e>=xi:/%[UVW]/.test(r)?e>=xo:/%[Bbm]/.test(r)?e>=xm:/%[q]/.test(r)?e>=_m:/%[Yy]/.test(r)?e>=bm:!0}});var JD=le((V6e,$D)=>{"use strict";$D.exports=function(r,t,a){var n,i;if(a){var o=t==="reversed"||t==="min reversed"||t==="max reversed";n=a[o?1:0],i=a[o?0:1]}var l=r("autorangeoptions.minallowed",i===null?n:void 0),s=r("autorangeoptions.maxallowed",n===null?i:void 0);l===void 0&&r("autorangeoptions.clipmin"),s===void 0&&r("autorangeoptions.clipmax"),r("autorangeoptions.include")}});var lb=le((X6e,KD)=>{"use strict";var hne=JD();KD.exports=function(r,t,a,n){var i=t._template||{},o=t.type||i.type||"-";a("minallowed"),a("maxallowed");var l=a("range");if(!l){var s;!n.noInsiderange&&o!=="log"&&(s=a("insiderange"),s&&(s[0]===null||s[1]===null)&&(t.insiderange=!1,s=void 0),s&&(l=a("range",s)))}var u=t.getAutorangeDflt(l,n),f=a("autorange",u),c;l&&(l[0]===null&&l[1]===null||(l[0]===null||l[1]===null)&&(f==="reversed"||f===!0)||l[0]!==null&&(f==="min"||f==="max reversed")||l[1]!==null&&(f==="max"||f==="min reversed"))&&(l=void 0,delete t.range,t.autorange=!0,c=!0),c||(u=t.getAutorangeDflt(l,n),f=a("autorange",u)),f&&(hne(a,f,l),(o==="linear"||o==="-")&&a("rangemode")),t.cleanRange()}});var eF=le((j6e,QD)=>{var dne={left:0,top:0};QD.exports=pne;function pne(e,r,t){r=r||e.currentTarget||e.srcElement,Array.isArray(t)||(t=[0,0]);var a=e.clientX||0,n=e.clientY||0,i=mne(r);return t[0]=a-i.left,t[1]=n-i.top,t}function mne(e){return e===window||e===document||e===document.body?dne:e.getBoundingClientRect()}});var sb=le((W6e,rF)=>{"use strict";var gne=z5();function yne(){var e=!1;try{var r=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("test",null,r),window.removeEventListener("test",null,r)}catch(t){e=!1}return e}rF.exports=gne&&yne()});var aF=le((Z6e,tF)=>{"use strict";tF.exports=function(r,t,a,n,i){var o=(r-a)/(n-a),l=o+t/(n-a),s=(o+l)/2;return i==="left"||i==="bottom"?o:i==="center"||i==="middle"?s:i==="right"||i==="top"?l:o<2/3-s?o:l>4/3-s?l:s}});var oF=le(($6e,iF)=>{"use strict";var nF=mr(),bne=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];iF.exports=function(r,t,a,n){return a==="left"?r=0:a==="center"?r=1:a==="right"?r=2:r=nF.constrain(Math.floor(r*3),0,2),n==="bottom"?t=0:n==="middle"?t=1:n==="top"?t=2:t=nF.constrain(Math.floor(t*3),0,2),bne[t][r]}});var sF=le((J6e,lF)=>{"use strict";var _ne=qv(),xne=Sp(),wne=Tv().getGraphDiv,Ane=(ov(),Tr(iv)),ub=lF.exports={};ub.wrapped=function(e,r,t){var i;e=wne(e),e._fullLayout&&xne.clear(e._fullLayout._uid+Ane.HOVERID);let a=e._hoverdata;ub.raw(e,r,t)&&e._hoverAnywhereActive&&(e._hoverAnywhereActive=!1,(i=e._fullLayout)!=null&&i.hoveranywhere&&(r!=null&&r.target)&&!a&&e.emit("plotly_unhover",{event:r,points:[]}))};ub.raw=function(r,t){var a=r._fullLayout,n=r._hoverdata;return t||(t={}),t.target&&!r._dragged&&_ne.triggerHandler(r,"plotly_beforehover",t)===!1?!1:(a._hoverlayer.selectAll("g").remove(),a._hoverlayer.selectAll("line").remove(),a._hoverlayer.selectAll("circle").remove(),r._hoverdata=void 0,t.target&&n&&r.emit("plotly_unhover",{event:t,points:n}),!0)}});var Zo=le((K6e,vF)=>{"use strict";var Mne=eF(),fb=B5(),Tne=sb(),kne=mr().removeElement,Cne=(Nn(),Tr(zn)),sc=vF.exports={};sc.align=aF();sc.getCursor=oF();var fF=sF();sc.unhover=fF.wrapped;sc.unhoverRaw=fF.raw;sc.init=function(r){var t=r.gd,a=1,n=t._context.doubleClickDelay,i=r.element,o,l,s,u,f,c,h,d;t._mouseDownTime||(t._mouseDownTime=0),i.style.pointerEvents="all",i.onmousedown=y,Tne?(i._ontouchstart&&i.removeEventListener("touchstart",i._ontouchstart),i._ontouchstart=y,i.addEventListener("touchstart",y,{passive:!1})):i.ontouchstart=y;function m(x,_,M){return Math.abs(x)n&&(a=Math.max(a-1,1)),t._dragged)r.doneFn&&r.doneFn();else{var _;c.target===h?_=c:(_={target:h,srcElement:h,toElement:h},Object.keys(c).concat(Object.keys(c.__proto__)).forEach(M=>{var T=c[M];!_[M]&&typeof T!="function"&&(_[M]=T)})),r.clickFn&&r.clickFn(a,_),d||h.dispatchEvent(new MouseEvent("click",x))}t._dragging=!1,t._dragged=!1}};function cF(){var e=document.createElement("div");e.className="dragcover";var r=e.style;return r.position="fixed",r.left=0,r.right=0,r.top=0,r.bottom=0,r.zIndex=999999999,r.background="none",document.body.appendChild(e),e}sc.coverSlip=cF;function uF(e){return Mne(e.changedTouches?e.changedTouches[0]:e,document.body)}});var P0=le((Q6e,hF)=>{"use strict";hF.exports=function(r,t){(r.attr("class")||"").split(" ").forEach(function(a){a.indexOf("cursor-")===0&&r.classed(a,!1)}),t&&r.classed("cursor-"+t,!0)}});var mF=le((ebe,pF)=>{"use strict";var cb=P0(),Jv="data-savedcursor",dF="!!";pF.exports=function(r,t){var a=r.attr(Jv);if(t){if(!a){for(var n=(r.attr("class")||"").split(" "),i=0;i{"use strict";var vb=gi(),Sne=zl();gF.exports={_isSubplotObj:!0,visible:{valType:"boolean",dflt:!0,editType:"legend"},bgcolor:{valType:"color",editType:"legend"},bordercolor:{valType:"color",dflt:Sne.defaultLine,editType:"legend"},maxheight:{valType:"number",min:0,editType:"legend"},borderwidth:{valType:"number",min:0,dflt:0,editType:"legend"},font:vb({editType:"legend"}),grouptitlefont:vb({editType:"legend"}),orientation:{valType:"enumerated",values:["v","h"],dflt:"v",editType:"legend"},traceorder:{valType:"flaglist",flags:["reversed","grouped"],extras:["normal"],editType:"legend"},tracegroupgap:{valType:"number",min:0,dflt:10,editType:"legend"},entrywidth:{valType:"number",min:0,editType:"legend"},entrywidthmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels",editType:"legend"},indentation:{valType:"number",min:-15,dflt:0,editType:"legend"},itemsizing:{valType:"enumerated",values:["trace","constant"],dflt:"trace",editType:"legend"},itemwidth:{valType:"number",min:30,dflt:30,editType:"legend"},itemclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggle",editType:"legend"},itemdoubleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggleothers",editType:"legend"},groupclick:{valType:"enumerated",values:["toggleitem","togglegroup"],dflt:"togglegroup",editType:"legend"},groupdoubleclick:{valType:"enumerated",values:["toggleitem","togglegroup"],editType:"legend"},titleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],editType:"legend"},titledoubleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],editType:"legend"},x:{valType:"number",editType:"legend"},xref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"legend"},y:{valType:"number",editType:"legend"},yref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],editType:"legend"},uirevision:{valType:"any",editType:"none"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"legend"},title:{text:{valType:"string",dflt:"",editType:"legend"},font:vb({editType:"legend"}),side:{valType:"enumerated",values:["top","left","top left","top center","top right"],editType:"legend"},editType:"legend"},editType:"legend"}});var Qv=le(Kv=>{"use strict";Kv.isGrouped=function(r){return(r.traceorder||"").indexOf("grouped")!==-1};Kv.isVertical=function(r){return r.orientation!=="h"};Kv.isReversed=function(r){return(r.traceorder||"").indexOf("reversed")!==-1};Kv.getId=function(r){return r._id||"legend"}});var pb=le((abe,yF)=>{"use strict";var Sm=_t(),wo=mr(),Dne=ka(),Fne=Go(),Ene=hb(),Lne=D1(),db=Qv();function qne(e,r,t,a,n){var i=r[e]||{},o=Dne.newContainer(t,e);function l(ie,ce){return wo.coerce(i,o,Ene,ie,ce)}var s=wo.coerceFont(l,"font",t.font);l("bgcolor",t.paper_bgcolor),l("bordercolor");var u=l("visible");if(!u)return;var f,c=function(ie,ce){var Me=f._input,De=f;return wo.coerce(Me,De,Fne,ie,ce)},h=t.font||{},d=wo.coerceFont(l,"grouptitlefont",h,{overrideDflt:{size:Math.round(h.size*1.1)}}),m=0,p=!1,y="normal",b=(t.shapes||[]).filter(function(ie){return ie.showlegend});function C(ie){return Sm.traceIs(ie,"pie-like")&&ie._length!=null&&(Array.isArray(ie.legend)||Array.isArray(ie.showlegend))}a.filter(C).forEach(function(ie){ie.visible&&m++;for(var ce=0;ceie.legend.length)for(var De=ie.legend.length;De(e==="legend"?1:0));if(T===!1&&(t[e]=void 0),T===!1&&!i.uirevision||(l("uirevision",t.uirevision),T===!1))return;l("borderwidth");var A=l("orientation"),E=l("yref"),P=l("xref"),z=A==="h",B=E==="paper",X=P==="paper",I,V,H,Q="left";z?(I=0,Sm.getComponentMethod("rangeslider","isVisible")(r.xaxis)?B?(V=1.1,H="bottom"):(V=1,H="top"):B?(V=-.1,H="top"):(V=0,H="bottom")):(V=1,H="auto",X?I=1.02:(I=1,Q="right")),wo.coerce(i,o,{x:{valType:"number",editType:"legend",min:X?-2:0,max:X?3:1,dflt:I}},"x"),wo.coerce(i,o,{y:{valType:"number",editType:"legend",min:B?-2:0,max:B?3:1,dflt:V}},"y"),l("traceorder",y),db.isGrouped(t[e])&&l("tracegroupgap"),l("entrywidth"),l("entrywidthmode"),l("indentation"),l("itemsizing"),l("itemwidth"),l("itemclick"),l("itemdoubleclick");let oe=l("groupclick");l("groupdoubleclick",oe),l("xanchor",Q),l("yanchor",H),l("maxheight"),l("valign"),wo.noneOrAll(i,o,["x","y"]);var re=l("title.text");if(re){l("title.side",z?"left":"top");var te=wo.extendFlat({},s,{size:wo.bigFont(s.size)});wo.coerceFont(l,"title.font",te);let ie=n>1;l("titleclick",ie?"toggle":!1),l("titledoubleclick",ie?"toggleothers":!1)}}yF.exports=function(r,t,a){var n,i=a.slice(),o=t.shapes;if(o)for(n=0;n{"use strict";var R0=_t(),mb=mr(),Pne=mb.pushUnique,Rne=Qv(),bF=!0;gb.handleItemClick=function(r,t,a,n,i){var o=t._fullLayout;if(t._dragged||t._editing)return;var l=r.data()[0][0];if(l.groupTitle&&l.noClick)return;let s=i===2?a.groupdoubleclick:a.groupclick;n==="toggle"&&a.itemdoubleclick==="toggleothers"&&bF&&t.data&&t._context.showTips&&(mb.notifier(mb._(t,"Double-click on legend to isolate one trace"),"long",t),bF=!1);var u=s==="togglegroup",f=o.hiddenlabels?o.hiddenlabels.slice():[],c=t._fullData;let h=(o.shapes||[]).filter(tr=>tr.showlegend||tr.legendgroup);var d=c.concat(h),m=l.trace;m._isShape&&(m=o.shapes[m.index]);var p=m.legendgroup,y,b,C,x,_,M,T={},A=[],E=[],P=[];function z(tr,fr){var Re=A.indexOf(tr),sr=T.visible;return sr||(sr=T.visible=[]),A.indexOf(tr)===-1&&(A.push(tr),Re=A.length-1),sr[Re]=fr,Re}var B=(o.shapes||[]).map(function(tr){return tr._input}),X=!1;function I(tr,fr){B[tr].visible=fr,X=!0}function V(tr,fr){if(!(l.groupTitle&&!u)){var Re=tr._isShape,sr=tr.index;sr===void 0&&(sr=tr._index);var hr=tr.visible===!1?!1:fr;Re?I(sr,hr):z(sr,hr)}}var H=m.legend;if(!m._isShape&&R0.traceIs(m,"pie-like")){var Q=l.label,oe=f.indexOf(Q);if(n==="toggle")oe===-1?f.push(Q):f.splice(oe,1);else if(n==="toggleothers"){var re=oe!==-1,te=[];for(y=0;yb.showlegend||b.legendgroup),s=i.concat(l);function u(b){return(b.legend||"legend")===o}var f,c;if(a==="toggle")f=!s.some(function(C){return u(C)&&C.visible===!0}),c=!1;else{let b=s.some(function(C){return!u(C)&&C.visible===!0&&C.showlegend!==!1});f=!0,c=!b}let h={visible:[]},d=[],m=(n.shapes||[]).map(function(b){return b._input});for(var p=!1,y=0;yUne,scrollBarColor:()=>Bne,scrollBarEnterAttrs:()=>Hne,scrollBarMargin:()=>Ine,scrollBarMinHeight:()=>Nne,scrollBarWidth:()=>zne,titlePad:()=>One});var zne,Nne,Bne,Ine,Hne,One,Une,_b=Ia(()=>{"use strict";zne=6,Nne=20,Bne="#808BA4",Ine=4,Hne={rx:20,ry:3,width:0,height:0},One=2,Une=5});var wF=le((ibe,xF)=>{"use strict";var{isArrayOrTypedArray:xb}=$i(),_F=_t(),wb=Qv();xF.exports=function(r,t,a){var n=t._inHover,i=wb.isGrouped(t),o=wb.isReversed(t),l={},s=[],u=!1,f={},c=0,h=0,d,m;function p(ie,ce,Me){if(t.visible!==!1&&!(a&&ie!==t._id))if(ce===""||!wb.isGrouped(t)){var De="~~i"+c;s.push(De),l[De]=[Me],c++}else s.indexOf(ce)===-1?(s.push(ce),u=!0,l[ce]=[Me]):l[ce].push(Me)}for(d=0;dI&&(B=I)}P[d][0]._groupMinRank=B,P[d][0]._preGroupSort=d}var V=function(ie,ce){return ie[0]._groupMinRank-ce[0]._groupMinRank||ie[0]._preGroupSort-ce[0]._preGroupSort},H=function(ie,ce){var Me=xb(ie.trace.legendrank)?ie.trace.legendrank[ie.i]:ie.trace.legendrank,De=xb(ce.trace.legendrank)?ce.trace.legendrank[ce.i]:ce.trace.legendrank;return Me-De||ie._preSort-ce._preSort};for(P.forEach(function(ie,ce){ie[0]._preGroupSort=ce}),P.sort(V),d=0;d{"use strict";var Dm=mr();function AF(e){return e.indexOf("e")!==-1?e.replace(/[.]?0+e/,"e"):e.indexOf(".")!==-1?e.replace(/[.]?0+$/,""):e}uc.formatPiePercent=function(r,t){var a=AF((r*100).toPrecision(3));return Dm.numSeparate(a,t)+"%"};uc.formatPieValue=function(r,t){var a=AF(r.toPrecision(10));return Dm.numSeparate(a,t)};uc.getFirstFilled=function(r,t){if(Dm.isArrayOrTypedArray(r))for(var a=0;a{"use strict";var Gne=ha(),Yne=qt();MF.exports=function(r,t,a,n){var i=a.marker.pattern;i&&i.shape?Gne.pointStyle(r,a,n,t):Yne.fill(r,t.color)}});var DF=le((sbe,SF)=>{"use strict";var kF=qt(),CF=Ab().castOption,Vne=TF();SF.exports=function(r,t,a,n){var i=a.marker.line,o=CF(i.color,t.pts)||kF.defaultLine,l=CF(i.width,t.pts)||0;r.call(Vne,t,a,n).style("stroke-width",l).call(kF.stroke,o)}});var Cb=le((ube,RF)=>{"use strict";var wi=Ft(),Mb=_t(),ui=mr(),FF=ui.strTranslate,Ao=ha(),$o=qt(),Tb=Ds().extractOpts,Fm=_i(),Xne=DF(),jne=Ab().castOption,Wne=(_b(),Tr(bb)),EF=12,LF=5,fc=2,Zne=10,e2=5;RF.exports=function(r,t,a){var n=t._fullLayout;a||(a=n.legend);var i=a.itemsizing==="constant",o=a.itemwidth,l=(o+Wne.itemGap*2)/2,s=FF(l,0),u=function(A,E,P,z){var B;if(A+1)B=A;else if(E&&E.width>0)B=E.width;else return 0;return i?z:Math.min(B,P)};r.each(function(A){var E=wi.select(this),P=ui.ensureSingle(E,"g","layers");P.style("opacity",A[0].trace.opacity);var z=a.indentation,B=a.valign,X=A[0].lineHeight,I=A[0].height;if(B==="middle"&&z===0||!X||!I)P.attr("transform",null);else{var V={top:1,bottom:-1}[B],H=V*(.5*(X-I+3))||0,Q=a.indentation;P.attr("transform",FF(Q,H))}var oe=P.selectAll("g.legendfill").data([A]);oe.enter().append("g").classed("legendfill",!0);var re=P.selectAll("g.legendlines").data([A]);re.enter().append("g").classed("legendlines",!0);var te=P.selectAll("g.legendsymbols").data([A]);te.enter().append("g").classed("legendsymbols",!0),te.selectAll("g.legendpoints").data([A]).enter().append("g").classed("legendpoints",!0)}).each(T).each(h).each(m).each(d).each(y).each(_).each(x).each(f).each(c).each(b).each(C);function f(A){var E=qF(A),P=E.showFill,z=E.showLine,B=E.showGradientLine,X=E.showGradientFill,I=E.anyFill,V=E.anyLine,H=A[0],Q=H.trace,oe,re,te=Tb(Q),ie=te.colorscale,ce=te.reversescale,Me=function(ee){if(ee.size())if(P)Ao.fillGroupStyle(ee,t,!0);else{var me="legendfill-"+Q.uid;Ao.gradient(ee,t,me,kb(ce),ie,"fill")}},De=function(ee){if(ee.size()){var me="legendline-"+Q.uid;Ao.lineGroupStyle(ee),Ao.gradient(ee,t,me,kb(ce),ie,"stroke")}},Ie=Fm.hasMarkers(Q)||!I?"M5,0":V?"M5,-2":"M5,-3",Ue=wi.select(this),ke=Ue.select(".legendfill").selectAll("path").data(P||X?[A]:[]);if(ke.enter().append("path").classed("js-fill",!0),ke.exit().remove(),ke.attr("d",Ie+"h"+o+"v6h-"+o+"z").call(Me),z||B){var je=u(void 0,Q.line,Zne,LF);re=ui.minExtend(Q,{line:{width:je}}),oe=[ui.minExtend(H,{trace:re})]}var W=Ue.select(".legendlines").selectAll("path").data(z||B?[oe]:[]);W.enter().append("path").classed("js-line",!0),W.exit().remove(),W.attr("d",Ie+(B?"l"+o+",0.0001":"h"+o)).call(z?Ao.lineGroupStyle:De)}function c(A){var E=qF(A),P=E.anyFill,z=E.anyLine,B=E.showLine,X=E.showMarker,I=A[0],V=I.trace,H=!X&&!z&&!P&&Fm.hasText(V),Q,oe;function re(je,W,ee,me){var K=ui.nestedProperty(V,je).get(),J=ui.isArrayOrTypedArray(K)&&W?W(K):K;if(i&&J&&me!==void 0&&(J=me),ee){if(Jee[1])return ee[1]}return J}function te(je){return I._distinct&&I.index&&je[I.index]?je[I.index]:je[0]}if(X||H||B){var ie={},ce={};if(X){ie.mc=re("marker.color",te);var Me=V.type==="scattermap";ie.mx=Me?"circle":re("marker.symbol",te),ie.mo=re("marker.opacity",ui.mean,[.2,1]),ie.mlc=re("marker.line.color",te),ie.mlw=re("marker.line.width",ui.mean,[0,5],fc),ie.mld=re("marker.line.dash",te),ce.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var De=re("marker.size",ui.mean,[2,16],EF);ie.ms=De,ce.marker.size=De}B&&(ce.line={width:re("line.width",te,[0,10],LF)}),H&&(ie.tx="Aa",ie.tp=re("textposition",te),ie.ts=10,ie.tc=re("textfont.color",te),ie.tf=re("textfont.family",te),ie.tw=re("textfont.weight",te),ie.ty=re("textfont.style",te),ie.tv=re("textfont.variant",te),ie.tC=re("textfont.textcase",te),ie.tE=re("textfont.lineposition",te),ie.tS=re("textfont.shadow",te)),Q=[ui.minExtend(I,ie)],oe=ui.minExtend(V,ce),oe.selectedpoints=null,oe.texttemplate=null}var Ie=wi.select(this).select("g.legendpoints"),Ue=Ie.selectAll("path.scatterpts").data(X?Q:[]);Ue.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",s),Ue.exit().remove(),Ue.call(Ao.pointStyle,oe,t),X&&(Q[0].mrc=3);var ke=Ie.selectAll("g.pointtext").data(H?Q:[]);ke.enter().append("g").classed("pointtext",!0).append("text").attr("transform",s),ke.exit().remove(),ke.selectAll("text").call(Ao.textPointStyle,oe,t)}function h(A){var E=A[0].trace,P=E.type==="waterfall";if(A[0]._distinct&&P){var z=A[0].trace[A[0].dir].marker;return A[0].mc=z.color,A[0].mlw=z.line.width,A[0].mlc=z.line.color,p(A,this,"waterfall")}var B=[];E.visible&&P&&(B=A[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 X=wi.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data(B);X.enter().append("path").classed("legendwaterfall",!0).attr("transform",s).style("stroke-miterlimit",1),X.exit().remove(),X.each(function(I){var V=wi.select(this),H=E[I[0]].marker,Q=u(void 0,H.line,e2,fc);V.attr("d",I[1]).style("stroke-width",Q+"px").call($o.fill,H.color),Q&&V.call($o.stroke,H.line.color)})}function d(A){p(A,this)}function m(A){p(A,this,"funnel")}function p(A,E,P){var z=A[0].trace,B=z.marker||{},X=B.line||{},I=B.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",V=P?z.visible&&z.type===P:Mb.traceIs(z,"bar"),H=wi.select(E).select("g.legendpoints").selectAll("path.legend"+P).data(V?[A]:[]);H.enter().append("path").classed("legend"+P,!0).attr("d",I).attr("transform",s),H.exit().remove(),H.each(function(Q){var oe=wi.select(this),re=Q[0],te=u(re.mlw,B.line,e2,fc);oe.style("stroke-width",te+"px");var ie=re.mcc;if(!a._inHover&&"mc"in re){var ce=Tb(B),Me=ce.mid;Me===void 0&&(Me=(ce.max+ce.min)/2),ie=Ao.tryColorscale(B,"")(Me)}var De=ie||re.mc||B.color,Ie=B.pattern,Ue=Ao.getPatternAttr,ke=Ie&&(Ue(Ie.shape,0,"")||Ue(Ie.path,0,""));if(ke){var je=Ue(Ie.bgcolor,0,null),W=Ue(Ie.fgcolor,0,null),ee=Ie.fgopacity,me=PF(Ie.size,8,10),K=PF(Ie.solidity,.5,1),J="legend-"+z.uid;oe.call(Ao.pattern,"legend",t,J,ke,me,K,ie,Ie.fillmode,je,W,ee)}else oe.call($o.fill,De);te&&$o.stroke(oe,re.mlc||X.color)})}function y(A){var E=A[0].trace,P=wi.select(this).select("g.legendpoints").selectAll("path.legendbox").data(E.visible&&Mb.traceIs(E,"box-violin")?[A]:[]);P.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform",s),P.exit().remove(),P.each(function(){var z=wi.select(this);if((E.boxpoints==="all"||E.points==="all")&&$o.opacity(E.fillcolor)===0&&$o.opacity((E.line||{}).color)===0){var B=ui.minExtend(E,{marker:{size:i?EF:ui.constrain(E.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});P.call(Ao.pointStyle,B,t)}else{var X=u(void 0,E.line,e2,fc);z.style("stroke-width",X+"px").call($o.fill,E.fillcolor),X&&$o.stroke(z,E.line.color)}})}function b(A){var E=A[0].trace,P=wi.select(this).select("g.legendpoints").selectAll("path.legendcandle").data(E.visible&&E.type==="candlestick"?[A,A]:[]);P.enter().append("path").classed("legendcandle",!0).attr("d",function(z,B){return B?"M-15,0H-8M-8,6V-6H8Z":"M15,0H8M8,-6V6H-8Z"}).attr("transform",s).style("stroke-miterlimit",1),P.exit().remove(),P.each(function(z,B){var X=wi.select(this),I=E[B?"increasing":"decreasing"],V=u(void 0,I.line,e2,fc);X.style("stroke-width",V+"px").call($o.fill,I.fillcolor),V&&$o.stroke(X,I.line.color)})}function C(A){var E=A[0].trace,P=wi.select(this).select("g.legendpoints").selectAll("path.legendohlc").data(E.visible&&E.type==="ohlc"?[A,A]:[]);P.enter().append("path").classed("legendohlc",!0).attr("d",function(z,B){return B?"M-15,0H0M-8,-6V0":"M15,0H0M8,6V0"}).attr("transform",s).style("stroke-miterlimit",1),P.exit().remove(),P.each(function(z,B){var X=wi.select(this),I=E[B?"increasing":"decreasing"],V=u(void 0,I.line,e2,fc);X.style("fill","none").call(Ao.dashLine,I.line.dash,V),V&&$o.stroke(X,I.line.color)})}function x(A){M(A,this,"pie")}function _(A){M(A,this,"funnelarea")}function M(A,E,P){var z=A[0],B=z.trace,X=P?B.visible&&B.type===P:Mb.traceIs(B,P),I=wi.select(E).select("g.legendpoints").selectAll("path.legend"+P).data(X?[A]:[]);if(I.enter().append("path").classed("legend"+P,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",s),I.exit().remove(),I.size()){var V=B.marker||{},H=u(jne(V.line.width,z.pts),V.line,e2,fc),Q="pieLike",oe=ui.minExtend(B,{marker:{line:{width:H}}},Q),re=ui.minExtend(z,{trace:oe},Q);Xne(I,re,oe,t)}}function T(A){var E=A[0].trace,P,z=[];if(E.visible)switch(E.type){case"histogram2d":case"heatmap":z=[["M-15,-2V4H15V-2Z"]],P=!0;break;case"choropleth":case"choroplethmap":z=[["M-6,-6V6H6V-6Z"]],P=!0;break;case"densitymap":z=[["M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"]],P="radial";break;case"cone":z=[["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"]],P=!1;break;case"streamtube":z=[["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"]],P=!1;break;case"surface":z=[["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"]],P=!0;break;case"mesh3d":z=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],P=!1;break;case"volume":z=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],P=!0;break;case"isosurface":z=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6 A12,24 0 0,0 6,-6 L0,6Z"]],P=!1;break}var B=wi.select(this).select("g.legendpoints").selectAll("path.legend3dandfriends").data(z);B.enter().append("path").classed("legend3dandfriends",!0).attr("transform",s).style("stroke-miterlimit",1),B.exit().remove(),B.each(function(X,I){var V=wi.select(this),H=Tb(E),Q=H.colorscale,oe=H.reversescale,re=function(Me){if(Me.size()){var De="legendfill-"+E.uid;Ao.gradient(Me,t,De,kb(oe,P==="radial"),Q,"fill")}},te;if(Q){if(!P){var ce=Q.length;te=I===0?Q[oe?ce-1:0][1]:I===1?Q[oe?0:ce-1][1]:Q[Math.floor((ce-1)/2)][1]}}else{var ie=E.vertexcolor||E.facecolor||E.color;te=ui.isArrayOrTypedArray(ie)?ie[I]||ie[0]:ie}V.attr("d",X[0]),te?V.call($o.fill,te):V.call(re)})}};function kb(e,r){var t=r?"radial":"horizontal";return t+(e?"":"reversed")}function qF(e){var r=e[0].trace,t=r.contours,a=Fm.hasLines(r)||r.visible&&r.type==="quiver",n=Fm.hasMarkers(r),i=r.visible&&r.fill&&r.fill!=="none",o=!1,l=!1;if(t){var s=t.coloring;s==="lines"?o=!0:a=s==="none"||s==="heatmap"||t.showlines,t.type==="constraint"?i=t._operation!=="=":(s==="fill"||s==="heatmap")&&(l=!0)}return{showMarker:n,showLine:a,showFill:i,showGradientLine:o,showGradientFill:l,anyLine:a||o,anyFill:i||l}}function PF(e,r,t){return e&&ui.isArrayOrTypedArray(e)?r:e>t?t:e}});var Eb=le((fbe,YF)=>{"use strict";var Pi=Ft(),hn=mr(),Db=Sn(),cc=_t(),qm=qv(),Sb=Zo(),dn=ha(),eh=qt(),vc=si(),zF=yb().handleItemClick,NF=yb().handleTitleClick,bn=(_b(),Tr(bb)),Fb=(li(),Tr(oi)),UF=Fb.LINE_SPACING,t2=Fb.FROM_TL,BF=Fb.FROM_BR,IF=wF(),$ne=Cb(),a2=Qv(),r2=1,Jne=/^legend[0-9]*$/;YF.exports=function(r,t){if(t)HF(r,t);else{var a=r._fullLayout,n=a._legends,i=a._infolayer.selectAll('[class^="legend"]');i.each(function(){var u=Pi.select(this),f=u.attr("class"),c=f.split(" ")[0];c.match(Jne)&&n.indexOf(c)===-1&&u.remove()});for(var o=0;o1)}var m=a.hiddenlabels||[];if(!l&&(!a.showlegend||!s.length))return o.selectAll("."+n).remove(),a._topdefs.select("#"+i).remove(),Db.autoMargin(e,n);var p=hn.ensureSingle(o,"g",n,function(E){l||E.attr("pointer-events","all")}),y=hn.ensureSingleById(a._topdefs,"clipPath",i,function(E){E.append("rect")}),b=hn.ensureSingle(p,"rect","bg",function(E){E.attr("shape-rendering","crispEdges")});b.call(eh.stroke,t.bordercolor).call(eh.fill,t.bgcolor).style("stroke-width",t.borderwidth+"px");var C=hn.ensureSingle(p,"g","scrollbox"),x=t.title;t._titleWidth=0,t._titleHeight=0;var _;x.text?(_=hn.ensureSingle(C,"text",n+"titletext"),_.attr("text-anchor","start").call(dn.font,x.font).text(x.text),Lm(_,C,e,t,r2),!l&&(t.titleclick||t.titledoubleclick)&&rie(C,e,t,n)):(C.selectAll("."+n+"titletext").remove(),C.selectAll("."+n+"titletoggle").remove());var M=hn.ensureSingle(p,"rect","scrollbar",function(E){E.attr(bn.scrollBarEnterAttrs).call(eh.fill,bn.scrollBarColor)}),T=C.selectAll("g.groups").data(s);T.enter().append("g").attr("class","groups"),T.exit().remove();var A=T.selectAll("g.traces").data(hn.identity);A.enter().append("g").attr("class","traces"),A.exit().remove(),A.style("opacity",function(E){let P=E[0],z=P.trace;if(P.groupTitle){let B=z.legendgroup,X=(a.shapes||[]).filter(function(V){return V.showlegend});return e._fullData.concat(X).some(function(V){return V.legendgroup===B&&(V.legend||"legend")===n&&V.visible===!0})?1:.5}return cc.traceIs(z,"pie-like")?m.indexOf(E[0].label)!==-1?.5:1:z.visible==="legendonly"?.5:1}).each(function(){Pi.select(this).call(Qne,e,t)}).call($ne,e,t).each(function(E){l||E[0].groupTitle&&t.groupclick==="toggleitem"||Pi.select(this).call(eie,e,n)}),hn.syncOrAsync([Db.previousPromises,function(){return nie(e,T,A,t,C)},function(){var E=a._size,P=t.borderwidth,z=t.xref==="paper",B=t.yref==="paper";if(x.text){let Ne=(a.shapes||[]).filter(function(ar){return ar.showlegend}),Je=e._fullData.concat(Ne).some(function(ar){let tr=ar.legend||"legend";var fr=Array.isArray(tr)?tr.includes(n):tr===n;return fr&&ar.visible===!0});_.style("opacity",Je?1:.5)}if(!l){var X,I;z?X=E.l+E.w*t.x-t2[Pm(t)]*t._width:X=a.width*t.x-t2[Pm(t)]*t._width,B?I=E.t+E.h*(1-t.y)-t2[Rm(t)]*t._effHeight:I=a.height*(1-t.y)-t2[Rm(t)]*t._effHeight;var V=iie(e,n,X,I);if(V)return;if(a.margin.autoexpand){var H=X,Q=I;X=z?hn.constrain(X,0,a.width-t._width):H,I=B?hn.constrain(I,0,a.height-t._effHeight):Q,X!==H&&hn.log("Constrain "+n+".x to make legend fit inside graph"),I!==Q&&hn.log("Constrain "+n+".y to make legend fit inside graph")}dn.setTranslate(p,X,I)}if(M.on(".drag",null),p.on("wheel",null),l||t._height<=t._maxHeight||e._context.staticPlot){var oe=t._effHeight;l&&(oe=t._height),b.attr({width:t._width-P,height:oe-P,x:P/2,y:P/2}),dn.setTranslate(C,0,0),y.select("rect").attr({width:t._width-2*P,height:oe-2*P,x:P,y:P}),dn.setClipUrl(C,i,e),dn.setRect(M,0,0,0,0),delete t._scrollY}else{var re=Math.max(bn.scrollBarMinHeight,t._effHeight*t._effHeight/t._height),te=t._effHeight-re-2*bn.scrollBarMargin,ie=t._height-t._effHeight,ce=te/ie,Me=Math.min(t._scrollY||0,ie);b.attr({width:t._width-2*P+bn.scrollBarWidth+bn.scrollBarMargin,height:t._effHeight-P,x:P/2,y:P/2}),y.select("rect").attr({width:t._width-2*P+bn.scrollBarWidth+bn.scrollBarMargin,height:t._effHeight-2*P,x:P,y:P+Me}),dn.setClipUrl(C,i,e),me(Me,re,ce),p.on("wheel",function(){Me=hn.constrain(t._scrollY+Pi.event.deltaY/ie*te,0,ie),me(Me,re,ce),Me!==0&&Me!==ie&&Pi.event.preventDefault()});var De,Ie,Ue,ke=function(Ne,Je,ar){var tr=(ar-Je)/ce+Ne;return hn.constrain(tr,0,ie)},je=function(Ne,Je,ar){var tr=(Je-ar)/ce+Ne;return hn.constrain(tr,0,ie)},W=Pi.behavior.drag().on("dragstart",function(){var Ne=Pi.event.sourceEvent;Ne.type==="touchstart"?De=Ne.changedTouches[0].clientY:De=Ne.clientY,Ue=Me}).on("drag",function(){var Ne=Pi.event.sourceEvent;Ne.buttons===2||Ne.ctrlKey||(Ne.type==="touchmove"?Ie=Ne.changedTouches[0].clientY:Ie=Ne.clientY,Me=ke(Ue,De,Ie),me(Me,re,ce))});M.call(W);var ee=Pi.behavior.drag().on("dragstart",function(){var Ne=Pi.event.sourceEvent;Ne.type==="touchstart"&&(De=Ne.changedTouches[0].clientY,Ue=Me)}).on("drag",function(){var Ne=Pi.event.sourceEvent;Ne.type==="touchmove"&&(Ie=Ne.changedTouches[0].clientY,Me=je(Ue,De,Ie),me(Me,re,ce))});C.call(ee)}function me(Ne,Je,ar){t._scrollY=e._fullLayout[n]._scrollY=Ne,dn.setTranslate(C,0,-Ne),dn.setRect(M,t._width,bn.scrollBarMargin+Ne*ar,bn.scrollBarWidth,Je),y.select("rect").attr("y",P+Ne)}if(e._context.edits.legendPosition){var K,J,ue,_e;p.classed("cursor-move",!0),Sb.init({element:p.node(),gd:e,prepFn:function(Ne){if(Ne.target!==M.node()){var Je=dn.getTranslate(p);ue=Je.x,_e=Je.y}},moveFn:function(Ne,Je){if(ue!==void 0&&_e!==void 0){var ar=ue+Ne,tr=_e+Je;dn.setTranslate(p,ar,tr),K=Sb.align(ar,t._width,E.l,E.l+E.w,t.xanchor),J=Sb.align(tr+t._height,-t._height,E.t+E.h,E.t,t.yanchor)}},doneFn:function(){if(K!==void 0&&J!==void 0){var Ne={};Ne[n+".x"]=K,Ne[n+".y"]=J,cc.call("_guiRelayout",e,Ne)}},clickFn:function(Ne,Je){var ar=o.selectAll("g.traces").filter(function(){var tr=this.getBoundingClientRect();return Je.clientX>=tr.left&&Je.clientX<=tr.right&&Je.clientY>=tr.top&&Je.clientY<=tr.bottom});ar.size()>0&&GF(e,t,ar,Ne,Je)}})}}],e)}}function Em(e,r,t){var a=e[0],n=a.width,i=r.entrywidthmode,o=a.trace.legendwidth||r.entrywidth;return i==="fraction"?r._maxWidth*o:t+(o||n)}function GF(e,r,t,a,n){var i=e._fullLayout,o=t.data()[0][0].trace,l=r.itemclick,s=r.itemdoubleclick,u={event:n,node:t.node(),curveNumber:o.index,expandedIndex:o.index,data:e.data,layout:e.layout,frames:e._transitionData._frames,config:e._context,fullData:e._fullData,fullLayout:i};o._group&&(u.group=o._group),cc.traceIs(o,"pie-like")&&(u.label=t.datum()[0].label);var f=qm.triggerHandler(e,"plotly_legendclick",u);if(a===1){if(f===!1)return;r._clickTimeout=setTimeout(function(){e._fullLayout&&l&&zF(t,e,r,l,a)},e._context.doubleClickDelay)}else if(a===2){r._clickTimeout&&clearTimeout(r._clickTimeout),e._legendMouseDownTime=0;var c=qm.triggerHandler(e,"plotly_legenddoubleclick",u);c!==!1&&f!==!1&&s&&zF(t,e,r,s,a)}}function Qne(e,r,t){var a=a2.getId(t),n=e.data()[0][0],i=n.trace,o=cc.traceIs(i,"pie-like"),l=!t._inHover&&r._context.edits.legendText&&!o,s=t._maxNameLength,u,f;n.groupTitle?(u=n.groupTitle.text,f=n.groupTitle.font):(f=t.font,t.entries?u=n.text:(u=o?n.label:i.name,i._meta&&(u=hn.templateString(u,i._meta))));var c=hn.ensureSingle(e,"text",a+"text");c.attr("text-anchor","start").call(dn.font,f).text(l?OF(u,s):u);var h=t.indentation+t.itemwidth+bn.itemGap*2;vc.positionText(c,h,0),l?c.call(vc.makeEditable,{gd:r,text:u}).call(Lm,e,r,t).on("edit",function(d){this.text(OF(d,s)).call(Lm,e,r,t);var m={};return m.name=d,n.trace._isShape?cc.call("_guiRelayout",r,"shapes["+i.index+"].name",m.name):cc.call("_guiRestyle",r,m,i.index)}):Lm(c,e,r,t)}function OF(e,r){var t=Math.max(4,r);if(e&&e.trim().length>=t/2)return e;e=e||"";for(var a=t-e.length;a>0;a--)e+=" ";return e}function eie(e,r,t){var a=r._context.doubleClickDelay,n,i=1,o=hn.ensureSingle(e,"rect",t+"toggle",function(l){r._context.staticPlot||l.style("cursor","pointer").attr("pointer-events","all"),l.call(eh.fill,"rgba(0,0,0,0)")});r._context.staticPlot||(o.on("mousedown",function(){n=new Date().getTime(),n-r._legendMouseDownTimea&&(i=Math.max(i-1,1)),GF(r,l,e,i,Pi.event)}}))}function rie(e,r,t,a){if(r._fullData.some(function(u){let f=u.legend||"legend";return(Array.isArray(f)?f.includes(a):f===a)&&cc.traceIs(u,"pie-like")}))return;let i=r._context.doubleClickDelay;var o,l=1;let s=hn.ensureSingle(e,"rect",a+"titletoggle",function(u){r._context.staticPlot||u.style("cursor","pointer").attr("pointer-events","all"),u.call(eh.fill,"rgba(0,0,0,0)")});r._context.staticPlot||(s.on("mousedown",function(){o=new Date().getTime(),o-r._legendMouseDownTimei&&(l=Math.max(l-1,1));let u={event:Pi.event,legendId:a,data:r.data,layout:r.layout,fullData:r._fullData,fullLayout:r._fullLayout};if(l===1&&t.titleclick){if(qm.triggerHandler(r,"plotly_legendtitleclick",u)===!1)return;t._titleClickTimeout=setTimeout(function(){r._fullLayout&&NF(r,t,t.titleclick)},i)}else l===2&&(t._titleClickTimeout&&clearTimeout(t._titleClickTimeout),r._legendMouseDownTime=0,qm.triggerHandler(r,"plotly_legendtitledoubleclick",u)!==!1&&t.titledoubleclick&&NF(r,t,t.titledoubleclick))}))}function Lm(e,r,t,a,n){a._inHover&&e.attr("data-notex",!0),vc.convertToTspans(e,t,function(){tie(r,t,a,n)})}function tie(e,r,t,a){var n=e.data()[0][0],i=n&&n.trace.showlegend;if(Array.isArray(i)&&(i=i[n.i]!==!1),!t._inHover&&n&&!i){e.remove();return}var o=e.select("g[class*=math-group]"),l=o.node(),s=a2.getId(t);t||(t=r._fullLayout[s]);var u=t.borderwidth,f;a===r2?f=t.title.font:n.groupTitle?f=n.groupTitle.font:f=t.font;var c=f.size*UF,h,d;if(l){var m=dn.bBox(l);h=m.height,d=m.width,a===r2?dn.setTranslate(o,u,u+h*.75):dn.setTranslate(o,0,h*.25)}else{var p="."+s+(a===r2?"title":"")+"text",y=e.select(p),b=vc.lineCount(y),C=y.node();if(h=c*b,d=C?dn.bBox(C).width:0,a===r2)t.title.side==="left"&&(d+=bn.itemGap*2),vc.positionText(y,u+bn.titlePad,u+c);else{var x=bn.itemGap*2+t.indentation+t.itemwidth;n.groupTitle&&(x=bn.itemGap,d-=t.indentation+t.itemwidth),vc.positionText(y,x,-c*((b-1)/2-.3))}}a===r2?(t._titleWidth=d,t._titleHeight=h):(n.lineHeight=c,n.height=Math.max(h,16)+3,n.width=d)}function aie(e){var r=0,t=0,a=e.title.side;return a&&(a.indexOf("left")!==-1&&(r=e._titleWidth),a.indexOf("top")!==-1&&(t=e._titleHeight)),[r,t]}function nie(e,r,t,a,n){var i=e._fullLayout,o=a2.getId(a);a||(a=i[o]);var l=i._size,s=a2.isVertical(a),u=a2.isGrouped(a),f=a.entrywidthmode==="fraction",c=a.borderwidth,h=2*c,d=bn.itemGap,m=a.indentation+a.itemwidth+d*2,p=2*(c+d),y=Rm(a),b=a.y<0||a.y===0&&y==="top",C=a.y>1||a.y===1&&y==="bottom",x=a.tracegroupgap,_={};let{orientation:M,yref:T}=a,{maxheight:A}=a,E=b||C||M!=="v"||T!=="paper";A||(A=E?.5:1);let P=E?i.height:l.h;a._maxHeight=Math.max(A>1?A:A*P,30);var z=0;a._width=0,a._height=0;var B=aie(a);if(s)t.each(function(Ne){var Je=Ne[0].height;dn.setTranslate(this,c+B[0],c+B[1]+a._height+Je/2+d),a._height+=Je,a._width=Math.max(a._width,Ne[0].width)}),z=m+a._width,a._width+=d+m+h,a._height+=p,u&&(r.each(function(Ne,Je){dn.setTranslate(this,0,Je*a.tracegroupgap)}),a._height+=(a._lgroupsLength-1)*a.tracegroupgap);else{var X=Pm(a),I=a.x<0||a.x===0&&X==="right",V=a.x>1||a.x===1&&X==="left",H=C||b,Q=i.width/2;a._maxWidth=Math.max(I?H&&X==="left"?l.l+l.w:Q:V?H&&X==="right"?l.r+l.w:Q:l.w,2*m);var oe=0,re=0;t.each(function(Ne){var Je=Em(Ne,a,m);oe=Math.max(oe,Je),re+=Je}),z=null;var te=0;if(u){var ie=0,ce=0,Me=0;r.each(function(){var Ne=0,Je=0;Pi.select(this).selectAll("g.traces").each(function(tr){var fr=Em(tr,a,m),Re=tr[0].height;dn.setTranslate(this,B[0],B[1]+c+d+Re/2+Je),Je+=Re,Ne=Math.max(Ne,fr),_[tr[0].trace.legendgroup]=Ne});var ar=Ne+d;ce>0&&ar+c+ce>a._maxWidth?(te=Math.max(te,ce),ce=0,Me+=ie+x,ie=Je):ie=Math.max(ie,Je),dn.setTranslate(this,ce,Me),ce+=ar}),a._width=Math.max(te,ce)+c,a._height=Me+ie+p}else{var De=t.size(),Ie=re+h+(De-1)*d=a._maxWidth&&(te=Math.max(te,W),ke=0,je+=Ue,a._height+=Ue,Ue=0),dn.setTranslate(this,B[0]+c+ke,B[1]+c+je+Je/2+d),W=ke+ar+d,ke+=tr,Ue=Math.max(Ue,Je)}),Ie?(a._width=ke+h,a._height=Ue+p):(a._width=Math.max(te,W)+h,a._height+=Ue+p)}}a._width=Math.ceil(Math.max(a._width+B[0],a._titleWidth+2*(c+bn.titlePad))),a._height=Math.ceil(Math.max(a._height+B[1],a._titleHeight+2*(c+bn.itemGap))),a._effHeight=Math.min(a._height,a._maxHeight);var ee=e._context.edits,me=ee.legendText||ee.legendPosition;t.each(function(Ne){var Je=Pi.select(this).select("."+o+"toggle"),ar=Ne[0].height,tr=Ne[0].trace.legendgroup,fr=Em(Ne,a,m);u&&tr!==""&&(fr=_[tr]);var Re=me?m:z||fr;!s&&!f&&(Re+=d/2),dn.setRect(Je,0,-ar/2,Re,ar)});var K=n.select("."+o+"titletext");K.node()&&Kne(K,a,c);var J=n.select("."+o+"titletoggle");if(J.size()&&K.node()){var ue=K.attr("x")||0,_e=bn.titlePad;dn.setRect(J,ue-_e,c,a._titleWidth+2*_e,a._titleHeight+2*_e)}}function iie(e,r,t,a){var n=e._fullLayout,i=n[r],o=Pm(i),l=Rm(i),s=i.xref==="paper",u=i.yref==="paper";e._fullLayout._reservedMargin[r]={};var f=i.y<.5?"b":"t",c=i.x<.5?"l":"r",h={r:n.width-t,l:t+i._width,b:n.height-a,t:a+i._effHeight};if(s&&u)return Db.autoMargin(e,r,{x:i.x,y:i.y,l:i._width*t2[o],r:i._width*BF[o],b:i._effHeight*BF[l],t:i._effHeight*t2[l]});s?e._fullLayout._reservedMargin[r][f]=h[f]:u||i.orientation==="v"?e._fullLayout._reservedMargin[r][c]=h[c]:e._fullLayout._reservedMargin[r][f]=h[f]}function Pm(e){return hn.isRightAnchor(e)?"right":hn.isCenterAnchor(e)?"center":"left"}function Rm(e){return hn.isBottomAnchor(e)?"bottom":hn.isMiddleAnchor(e)?"middle":"top"}});var Rb=le(Pb=>{"use strict";var hc=Ft(),Ru=Wt(),Ka=mr(),oie=Ka.pushUnique,Lb=Ka.strTranslate,lie=Ka.strRotate,sie=qv(),Jo=si(),uie=mF(),zs=ha(),_n=qt(),zm=Zo(),Ns=Oa(),fie=(Nn(),Tr(zn)).zindexSeparator,i2=_t(),Mo=Pu(),dc=(ov(),Tr(iv)),cie=pb(),vie=Eb(),KF=dc.YANGLE,qb=Math.PI*KF/180,hie=1/Math.sin(qb),die=Math.cos(qb),pie=Math.sin(qb),Ra=dc.HOVERARROWSIZE,Nt=dc.HOVERTEXTPAD,VF={box:!0,ohlc:!0,violin:!0,candlestick:!0},mie={scatter:!0,scattergl:!0,splom:!0};function XF(e,r){return e.distance-r.distance}Pb.hover=function(r,t,a,n){r=Ka.getGraphDiv(r);var i=t.target;Ka.throttle(r._fullLayout._uid+dc.HOVERID,dc.HOVERMINTIME,function(){gie(r,t,a,n,i)})};Pb.loneHover=function(r,t){var a=!0;Array.isArray(r)||(a=!1,r=[r]);var n=t.gd,i=aE(n),o=nE(n),l=r.map(function(y){var b=y._x0||y.x0||y.x||0,C=y._x1||y.x1||y.x||0,x=y._y0||y.y0||y.y||0,_=y._y1||y.y1||y.y||0,M=y.eventData;if(M){var T=Math.min(b,C),A=Math.max(b,C),E=Math.min(x,_),P=Math.max(x,_),z=y.trace;if(i2.traceIs(z,"gl3d")){var B=n._fullLayout[z.scene]._scene.container,X=B.offsetLeft,I=B.offsetTop;T+=X,A+=X,E+=I,P+=I}M.bbox={x0:T+o,x1:A+o,y0:E+i,y1:P+i},M.xPixel=(b+C)/2,M.yPixel=(x+_)/2,t.inOut_bbox&&t.inOut_bbox.push(M.bbox)}else M=!1;return{color:y.color||_n.defaultLine,x0:y.x0||y.x||0,x1:y.x1||y.x||0,y0:y.y0||y.y||0,y1:y.y1||y.y||0,xLabel:y.xLabel,yLabel:y.yLabel,zLabel:y.zLabel,text:y.text,name:y.name,idealAlign:y.idealAlign,borderColor:y.borderColor,fontFamily:y.fontFamily,fontSize:y.fontSize,fontColor:y.fontColor,fontWeight:y.fontWeight,fontStyle:y.fontStyle,fontVariant:y.fontVariant,nameLength:y.nameLength,textAlign:y.textAlign,trace:y.trace||{index:0,hoverinfo:""},xa:{_offset:0},ya:{_offset:0},index:0,hovertemplate:y.hovertemplate||!1,hovertemplateLabels:y.hovertemplateLabels||!1,eventData:M}}),s=!1,u=eE(l,{gd:n,hovermode:"closest",rotateLabels:s,bgColor:t.bgColor||_n.background,container:hc.select(t.container),outerContainer:t.outerContainer||t.container}),f=u.hoverLabels,c=5,h=0,d=0;f.sort(function(y,b){return y.y0-b.y0}).each(function(y,b){var C=y.y0-y.by/2;C-cA[0]._length||_e<0||_e>E[0]._length)return zm.unhoverRaw(e,r)}if(r.pointerX=ue+A[0]._offset,r.pointerY=_e+E[0]._offset,"xval"in r?Q=Mo.flat(i,r.xval):Q=Mo.p2c(A,ue),"yval"in r?oe=Mo.flat(i,r.yval):oe=Mo.p2c(E,_e),e._hoverPointerX=r.pointerX,e._hoverPointerY=r.pointerY,!Ru(Q[0])||!Ru(oe[0]))return Ka.warn("Fx.hover failed",r,e),zm.unhoverRaw(e,r)}l.clickanywhere&&(e._hoverXVals=Q,e._hoverYVals=oe,e._hoverXAxes=A,e._hoverYAxes=E);var ar=1/0;function tr(Jr,ua){for(te=0;teW&&(V.splice(0,W),ar=V[0].distance),c&&I!==0&&V.length===0){je.distance=I,je.index=!1;var Vt=ce._module.hoverPoints(je,Ue,ke,"closest",{hoverLayer:l._hoverlayer});if(Vt&&(Vt=Vt.filter(function(Da){return Da.spikeDistance<=I})),Vt&&Vt.length){var Na,wn=Vt.filter(function(Da){return Da.xa.showspikes&&Da.xa.spikesnap!=="hovered data"});if(wn.length){var ya=wn[0];Ru(ya.x0)&&Ru(ya.y0)&&(Na=Re(ya),(!ee.vLinePoint||ee.vLinePoint.spikeDistance>Na.spikeDistance)&&(ee.vLinePoint=Na))}var na=Vt.filter(function(Da){return Da.ya.showspikes&&Da.ya.spikesnap!=="hovered data"});if(na.length){var Ea=na[0];Ru(Ea.x0)&&Ru(Ea.y0)&&(Na=Re(Ea),(!ee.hLinePoint||ee.hLinePoint.spikeDistance>Na.spikeDistance)&&(ee.hLinePoint=Na))}}}}}tr();function fr(Jr,ua,zt){for(var ga=null,ba=1/0,_a,Vt=0;VtJr.trace.index===Xe.trace.index):V=[Xe];var yr=V.length,Cr=JF("x",Xe,l),pr=JF("y",Xe,l);tr(Cr,pr);var xr=[],Rr={},Er=0,Or=function(Jr){var ua=VF[Jr.trace.type]?QF(Jr):Jr.trace.index;if(!Rr[ua])Er++,Rr[ua]=Er,xr.push(Jr);else{var zt=Rr[ua]-1,ga=xr[zt];zt>0&&Math.abs(Jr.distance)yr-1;rr--)Or(V[rr]);V=xr,Ze()}var Sr=e._hoverdata,vr=[],jr=aE(e),Qr=nE(e);for(let Jr of V){var qr=Mo.makeEventData(Jr,Jr.trace,Jr.cd);if(Jr.hovertemplate!==!1){var Wr=!1;Jr.cd[Jr.index]&&Jr.cd[Jr.index].ht&&(Wr=Jr.cd[Jr.index].ht),Jr.hovertemplate=Wr||Jr.trace.hovertemplate||!1}if(Jr.xa&&Jr.ya){var Ae=Jr.x0+Jr.xa._offset,Pe=Jr.x1+Jr.xa._offset,ur=Jr.y0+Jr.ya._offset,gr=Jr.y1+Jr.ya._offset,It=Math.min(Ae,Pe),Yt=Math.max(Ae,Pe),ia=Math.min(ur,gr),Ta=Math.max(ur,gr);qr.bbox={x0:It+Qr,x1:Yt+Qr,y0:ia+jr,y1:Ta+jr},qr.xPixel=(Ae+Pe)/2,qr.yPixel=(ur+gr)/2}Jr.eventData=[qr],vr.push(qr)}e._hoverdata=vr;var Ht=h==="y"&&(H.length>1||V.length>1)||h==="closest"&&me&&V.length>1,Zt=_n.combine(l.plot_bgcolor||_n.background,l.paper_bgcolor),ma=eE(V,{gd:e,hovermode:h,rotateLabels:Ht,bgColor:Zt,container:l._hoverlayer,outerContainer:l._paper.node(),commonLabelOpts:l.hoverlabel,hoverdistance:l.hoverdistance}),ra=ma.hoverLabels;if(Mo.isUnifiedHover(h)||(bie(ra,Ht,l,ma.commonLabelBoundingBox),tE(ra,Ht,l._invScaleX,l._invScaleY)),n&&n.tagName){var xn=i2.getComponentMethod("annotations","hasClickToShow")(e,vr);uie(hc.select(n),xn?"pointer":"")}var on=wie(e,r,Sr);if(!n||a||!on&&!l.hoveranywhere)return;Sr&&on&&e.emit("plotly_unhover",{event:r,points:Sr}),Wn(e._hoverdata);function Wn(Jr){e.emit("plotly_hover",{event:r,points:Jr,xaxes:A,yaxes:E,xvals:Mo.c2dApply(A,Q),yvals:Mo.c2dApply(E,oe),xPixel:r.pointerX,yPixel:r.pointerY})}}function QF(e){return[e.trace.index,e.index,e.x0,e.y0,e.name,e.attr,e.xa?e.xa._id:"",e.ya?e.ya._id:""].join(",")}var yie=/([\s\S]*)<\/extra>/;function eE(e,r){var t=r.gd,a=t._fullLayout,n=r.hovermode,i=r.rotateLabels,o=r.bgColor,l=r.container,s=r.outerContainer,u=r.commonLabelOpts||{};if(e.length===0)return[[]];var f=r.fontFamily||dc.HOVERFONT,c=r.fontSize||dc.HOVERFONTSIZE,h=r.fontWeight||a.font.weight,d=r.fontStyle||a.font.style,m=r.fontVariant||a.font.variant,p=r.fontTextcase||a.font.textcase,y=r.fontLineposition||a.font.lineposition,b=r.fontShadow||a.font.shadow,C=e[0],x=C.xa,_=C.ya,M=n.charAt(0),T=M+"Label",A=C[T];if(A===void 0&&x.type==="multicategory")for(var E=0;Ea.width-vr&&(jr=a.width-vr),Be.attr("d","M"+(Or-jr)+",0L"+(Or-jr+Ra)+","+Sr+Ra+"H"+vr+"v"+Sr+(Nt*2+Er.height)+"H"+-vr+"V"+Sr+Ra+"H"+(Or-jr-Ra)+"Z"),Or=jr,te.minX=Or-vr,te.maxX=Or+vr,x.side==="top"?(te.minY=rr-(Nt*2+Er.height),te.maxY=rr-Nt):(te.minY=rr+Nt,te.maxY=rr+(Nt*2+Er.height))}else{var Qr,qr,Wr;_.side==="right"?(Qr="start",qr=1,Wr="",Or=x._offset+x._length):(Qr="end",qr=-1,Wr="-",Or=x._offset),rr=_._offset+(C.y0+C.y1)/2,Xe.attr("text-anchor",Qr),Be.attr("d","M0,0L"+Wr+Ra+","+Ra+"V"+(Nt+Er.height/2)+"h"+Wr+(Nt*2+Er.width)+"V-"+(Nt+Er.height/2)+"H"+Wr+Ra+"V-"+Ra+"Z"),te.minY=rr-(Nt+Er.height/2),te.maxY=rr+(Nt+Er.height/2),_.side==="right"?(te.minX=Or+Ra,te.maxX=Or+Ra+(Nt*2+Er.width)):(te.minX=Or-Ra-(Nt*2+Er.width),te.maxX=Or-Ra);var Ae=Er.height/2,Pe=z-Er.top-Ae,ur="clip"+a._uid+"commonlabel"+_._id,gr;if(OrBe.hoverinfo!=="none");if(Qe.length===0)return[];var ie=a.hoverlabel,ce=ie.font,Me=Qe[0],De=((n==="x unified"?Me.xa:Me.ya).unifiedhovertitle||{}).text,Ie=De?Ka.hovertemplateString({data:n==="x unified"?[{xa:Me.xa,x:Me.xVal}]:[{ya:Me.ya,y:Me.yVal}],fallback:Me.trace.hovertemplatefallback,locale:a._d3locale,template:De}):A,Ue={showlegend:!0,legend:{title:{text:Ie,font:ce},font:ce,bgcolor:ie.bgcolor,bordercolor:ie.bordercolor,borderwidth:1,tracegroupgap:7,traceorder:a.legend?a.legend.traceorder:void 0,orientation:"v"}},ke={font:ce};cie(Ue,ke,t._fullData);var je=ke.legend;je.entries=[];for(var W=0;W=0?Oe=Ze:cr+Je=0?Oe=cr:Lr+Je=0?Ar=hr:dr+ar=0?Ar=dr:Te+ar=0,(Qe.idealAlign==="top"||!ia)&&Ta?(Wr-=Pe/2,Qe.anchor="end"):ia?(Wr+=Pe/2,Qe.anchor="start"):Qe.anchor="middle",Qe.crossPos=Wr;else{if(Qe.pos=Wr,ia=qr+Ae/2+Yt<=B,Ta=qr-Ae/2-Yt>=0,(Qe.idealAlign==="left"||!ia)&&Ta)qr-=Ae/2,Qe.anchor="end";else if(ia)qr+=Ae/2,Qe.anchor="start";else{Qe.anchor="middle";var Ht=Yt/2,Zt=qr+Ht-B,ma=qr-Ht;Zt>0&&(qr-=Zt),ma<0&&(qr+=-ma)}Qe.crossPos=qr}rr.attr("text-anchor",Qe.anchor),vr&&Sr.attr("text-anchor",Qe.anchor),Be.attr("transform",Lb(qr,Wr)+(i?lie(KF):""))}),{hoverLabels:Br,commonLabelBoundingBox:te}}function jF(e,r,t,a,n,i){var c,h;var o="",l="";e.nameOverride!==void 0&&(e.name=e.nameOverride),e.name&&(e.trace._meta&&(e.name=Ka.templateString(e.name,e.trace._meta)),o=$F(e.name,e.nameLength));var s=t.charAt(0),u=s==="x"?"y":"x";e.zLabel!==void 0?(e.xLabel!==void 0&&(l+="x: "+e.xLabel+"
"),e.yLabel!==void 0&&(l+="y: "+e.yLabel+"
"),e.trace.type!=="choropleth"&&e.trace.type!=="choroplethmap"&&(l+=(l?"z: ":"")+e.zLabel)):r&&e[s+"Label"]===n?l=e[u+"Label"]||"":e.xLabel===void 0?e.yLabel!==void 0&&e.trace.type!=="scattercarpet"&&(l=e.yLabel):e.yLabel===void 0?l=e.xLabel:l="("+e.xLabel+", "+e.yLabel+")",(e.text||e.text===0)&&!Array.isArray(e.text)&&(l+=(l?"
":"")+e.text),e.extraText!==void 0&&(l+=(l?"
":"")+e.extraText),i&&l===""&&!e.hovertemplate&&(o===""&&i.remove(),l=o),(h=(c=e.trace)==null?void 0:c.hoverlabel)!=null&&h.split&&(e.hovertemplate="");let{hovertemplate:f=!1}=e;if(f){let d=e.hovertemplateLabels||e;e[s+"Label"]!==n&&(d[s+"other"]=d[s+"Val"],d[s+"otherLabel"]=d[s+"Label"]),l=Ka.hovertemplateString({data:[e.eventData[0]||{},e.trace._meta],fallback:e.trace.hovertemplatefallback,labels:d,locale:a._d3locale,template:f}),l=l.replace(yie,(m,p)=>(o=$F(p,e.nameLength),""))}return[l,o]}function bie(e,r,t,a){var n=r?"xa":"ya",i=r?"ya":"xa",o=0,l=1,s=e.size(),u=new Array(s),f=0,c=a.minX,h=a.maxX,d=a.minY,m=a.maxY,p=function(Q){return Q*t._invScaleX},y=function(Q){return Q*t._invScaleY};e.each(function(Q){var oe=Q[n],re=Q[i],te=oe._id.charAt(0)==="x",ie=oe.range;f===0&&ie&&ie[0]>ie[1]!==te&&(l=-1);var ce=0,Me=te?t.width:t.height;if(t.hovermode==="x"||t.hovermode==="y"){var De=rE(Q,r),Ie=Q.anchor,Ue=Ie==="end"?-1:1,ke,je;if(Ie==="middle")ke=Q.crossPos+(te?y(De.y-Q.by/2):p(Q.bx/2+Q.tx2width/2)),je=ke+(te?y(Q.by):p(Q.bx));else if(te)ke=Q.crossPos+y(Ra+De.y)-y(Q.by/2-Ra),je=ke+y(Q.by);else{var W=p(Ue*Ra+De.x),ee=W+p(Ue*Q.bx);ke=Q.crossPos+Math.min(W,ee),je=Q.crossPos+Math.max(W,ee)}te?d!==void 0&&m!==void 0&&Math.min(je,m)-Math.max(ke,d)>1&&(re.side==="left"?(ce=re._mainLinePosition,Me=t.width):Me=re._mainLinePosition):c!==void 0&&h!==void 0&&Math.min(je,h)-Math.max(ke,c)>1&&(re.side==="top"?(ce=re._mainLinePosition,Me=t.height):Me=re._mainLinePosition)}u[f++]=[{datum:Q,traceIndex:Q.trace.index,dp:0,pos:Q.pos,posref:Q.posref,size:Q.by*(te?hie:1)/2,pmin:ce,pmax:Me}]}),u.sort(function(Q,oe){return Q[0].posref-oe[0].posref||l*(oe[0].traceIndex-Q[0].traceIndex)});var b,C,x,_,M,T,A;function E(Q){var oe=Q[0],re=Q[Q.length-1];if(C=oe.pmin-oe.pos-oe.dp+oe.size,x=re.pos+re.dp+re.size-oe.pmax,C>.01){for(M=Q.length-1;M>=0;M--)Q[M].dp+=C;b=!1}if(!(x<.01)){if(C<-.01){for(M=Q.length-1;M>=0;M--)Q[M].dp-=x;b=!1}if(b){var te=0;for(_=0;_oe.pmax&&te++;for(_=Q.length-1;_>=0&&!(te<=0);_--)T=Q[_],T.pos>oe.pmax-1&&(T.del=!0,te--);for(_=0;_=0;M--)Q[M].dp-=x;for(_=Q.length-1;_>=0&&!(te<=0);_--)T=Q[_],T.pos+T.dp+T.size>oe.pmax&&(T.del=!0,te--)}}}for(;!b&&o<=s;){for(o++,b=!0,_=0;_.01){for(M=z.length-1;M>=0;M--)z[M].dp+=C;for(P.push.apply(P,z),u.splice(_+1,1),A=0,M=P.length-1;M>=0;M--)A+=P[M].dp;for(x=A/P.length,M=P.length-1;M>=0;M--)P[M].dp-=x;b=!1}else _++}u.forEach(E)}for(_=u.length-1;_>=0;_--){var I=u[_];for(M=I.length-1;M>=0;M--){var V=I[M],H=V.datum;H.offset=V.dp,H.del=V.del}}}function rE(e,r){var t=0,a=e.offset;return r&&(a*=-pie,t=e.offset*die),{x:t,y:a}}function _ie(e){var r={start:1,end:-1,middle:0}[e.anchor],t=r*(Ra+Nt),a=t+r*(e.txwidth+Nt),n=e.anchor==="middle";return n&&(t-=e.tx2width/2,a+=e.txwidth/2+Nt),{alignShift:r,textShiftX:t,text2ShiftX:a}}function tE(e,r,t,a){var n=function(o){return o*t},i=function(o){return o*a};e.each(function(o){var l=hc.select(this);if(o.del)return l.remove();var s=l.select("text.nums"),u=o.anchor,f=u==="end"?-1:1,c=_ie(o),h=rE(o,r),d=h.x,m=h.y,p=u==="middle",y="hoverlabel"in o.trace?o.trace.hoverlabel.showarrow:!0,b;p?b="M-"+n(o.bx/2+o.tx2width/2)+","+i(m-o.by/2)+"h"+n(o.bx)+"v"+i(o.by)+"h-"+n(o.bx)+"Z":y?b="M0,0L"+n(f*Ra+d)+","+i(Ra+m)+"v"+i(o.by/2-Ra)+"h"+n(f*o.bx)+"v-"+i(o.by)+"H"+n(f*Ra+d)+"V"+i(m-Ra)+"Z":b="M"+n(f*Ra+d)+","+i(m-o.by/2)+"h"+n(f*o.bx)+"v"+i(o.by)+"h"+n(-f*o.bx)+"Z",l.select("path").attr("d",b);var C=d+c.textShiftX,x=m+o.ty0-o.by/2+Nt,_=o.textAlign||"auto";_!=="auto"&&(_==="left"&&u!=="start"?(s.attr("text-anchor","start"),C=p?-o.bx/2-o.tx2width/2+Nt:-o.bx-Nt):_==="right"&&u!=="end"&&(s.attr("text-anchor","end"),C=p?o.bx/2-o.tx2width/2-Nt:o.bx+Nt)),s.call(Jo.positionText,n(C),i(x)),o.tx2width&&(l.select("text.name").call(Jo.positionText,n(c.text2ShiftX+c.alignShift*Nt+d),i(m+o.ty0-o.by/2+Nt)),l.select("rect").call(zs.setRect,n(c.text2ShiftX+(c.alignShift-1)*o.tx2width/2+d),i(m-o.by/2-1),n(o.tx2width),i(o.by+2)))})}function xie(e,r){var t=e.index,a=e.trace||{},n=e.cd[0],i=e.cd[t]||{};function o(h){return h||Ru(h)&&h===0}var l=Array.isArray(t)?function(h,d){var m=Ka.castOption(n,t,h);return o(m)?m:Ka.extractOption({},a,"",d)}:function(h,d){return Ka.extractOption(i,a,h,d)};function s(h,d,m){var p=l(d,m);o(p)&&(e[h]=p)}if(s("hoverinfo","hi","hoverinfo"),s("bgcolor","hbg","hoverlabel.bgcolor"),s("borderColor","hbc","hoverlabel.bordercolor"),s("fontFamily","htf","hoverlabel.font.family"),s("fontSize","hts","hoverlabel.font.size"),s("fontColor","htc","hoverlabel.font.color"),s("fontWeight","htw","hoverlabel.font.weight"),s("fontStyle","hty","hoverlabel.font.style"),s("fontVariant","htv","hoverlabel.font.variant"),s("nameLength","hnl","hoverlabel.namelength"),s("textAlign","hta","hoverlabel.align"),e.posref=r==="y"||r==="closest"&&a.orientation==="h"?e.xa._offset+(e.x0+e.x1)/2:e.ya._offset+(e.y0+e.y1)/2,e.x0=Ka.constrain(e.x0,0,e.xa._length),e.x1=Ka.constrain(e.x1,0,e.xa._length),e.y0=Ka.constrain(e.y0,0,e.ya._length),e.y1=Ka.constrain(e.y1,0,e.ya._length),e.xLabelVal!==void 0&&(e.xLabel="xLabel"in e?e.xLabel:Ns.hoverLabelText(e.xa,e.xLabelVal,a.xhoverformat),e.xVal=e.xa.c2d(e.xLabelVal)),e.yLabelVal!==void 0&&(e.yLabel="yLabel"in e?e.yLabel:Ns.hoverLabelText(e.ya,e.yLabelVal,a.yhoverformat),e.yVal=e.ya.c2d(e.yLabelVal)),e.zLabelVal!==void 0&&e.zLabel===void 0&&(e.zLabel=String(e.zLabelVal)),!isNaN(e.xerr)&&!(e.xa.type==="log"&&e.xerr<=0)){var u=Ns.tickText(e.xa,e.xa.c2l(e.xerr),"hover").text;e.xerrneg!==void 0?e.xLabel+=" +"+u+" / -"+Ns.tickText(e.xa,e.xa.c2l(e.xerrneg),"hover").text:e.xLabel+=" \xB1 "+u,r==="x"&&(e.distance+=1)}if(!isNaN(e.yerr)&&!(e.ya.type==="log"&&e.yerr<=0)){var f=Ns.tickText(e.ya,e.ya.c2l(e.yerr),"hover").text;e.yerrneg!==void 0?e.yLabel+=" +"+f+" / -"+Ns.tickText(e.ya,e.ya.c2l(e.yerrneg),"hover").text:e.yLabel+=" \xB1 "+f,r==="y"&&(e.distance+=1)}var c=e.hoverinfo||e.trace.hoverinfo;return c&&c!=="all"&&(c=Array.isArray(c)?c:c.split("+"),c.indexOf("x")===-1&&(e.xLabel=void 0),c.indexOf("y")===-1&&(e.yLabel=void 0),c.indexOf("z")===-1&&(e.zLabel=void 0),c.indexOf("text")===-1&&(e.text=void 0),c.indexOf("name")===-1&&(e.name=void 0)),e}function WF(e,r,t){var a=t.container,n=t.fullLayout,i=n._size,o=t.event,l=!!r.hLinePoint,s=!!r.vLinePoint,u,f;if(a.selectAll(".spikeline").remove(),!!(s||l)){var c=_n.combine(n.plot_bgcolor,n.paper_bgcolor);if(l){var h=r.hLinePoint,d,m;u=h&&h.xa,f=h&&h.ya;var p=f.spikesnap;p==="cursor"?(d=o.pointerX,m=o.pointerY):(d=u._offset+h.x,m=f._offset+h.y);var y=_n.wcagContrast(h.color,c)<1.5?_n.contrast(c):h.color,b=f.spikemode,C=f.spikethickness,x=f.spikecolor||y,_=Ns.getPxPosition(e,f),M,T;if(b.indexOf("toaxis")!==-1||b.indexOf("across")!==-1){if(b.indexOf("toaxis")!==-1&&(M=_,T=d),b.indexOf("across")!==-1){var A=f._counterDomainMin,E=f._counterDomainMax;f.anchor==="free"&&(A=Math.min(A,f.position),E=Math.max(E,f.position)),M=i.l+A*i.w,T=i.l+E*i.w}a.insert("line",":first-child").attr({x1:M,x2:T,y1:m,y2:m,"stroke-width":C,stroke:x,"stroke-dasharray":zs.dashStyle(f.spikedash,C)}).classed("spikeline",!0).classed("crisp",!0),a.insert("line",":first-child").attr({x1:M,x2:T,y1:m,y2:m,"stroke-width":C+2,stroke:c}).classed("spikeline",!0).classed("crisp",!0)}b.indexOf("marker")!==-1&&a.insert("circle",":first-child").attr({cx:_+(f.side!=="right"?C:-C),cy:m,r:C,fill:x}).classed("spikeline",!0)}if(s){var P=r.vLinePoint,z,B;u=P&&P.xa,f=P&&P.ya;var X=u.spikesnap;X==="cursor"?(z=o.pointerX,B=o.pointerY):(z=u._offset+P.x,B=f._offset+P.y);var I=_n.wcagContrast(P.color,c)<1.5?_n.contrast(c):P.color,V=u.spikemode,H=u.spikethickness,Q=u.spikecolor||I,oe=Ns.getPxPosition(e,u),re,te;if(V.indexOf("toaxis")!==-1||V.indexOf("across")!==-1){if(V.indexOf("toaxis")!==-1&&(re=oe,te=B),V.indexOf("across")!==-1){var ie=u._counterDomainMin,ce=u._counterDomainMax;u.anchor==="free"&&(ie=Math.min(ie,u.position),ce=Math.max(ce,u.position)),re=i.t+(1-ce)*i.h,te=i.t+(1-ie)*i.h}a.insert("line",":first-child").attr({x1:z,x2:z,y1:re,y2:te,"stroke-width":H,stroke:Q,"stroke-dasharray":zs.dashStyle(u.spikedash,H)}).classed("spikeline",!0).classed("crisp",!0),a.insert("line",":first-child").attr({x1:z,x2:z,y1:re,y2:te,"stroke-width":H+2,stroke:c}).classed("spikeline",!0).classed("crisp",!0)}V.indexOf("marker")!==-1&&a.insert("circle",":first-child").attr({cx:z,cy:oe-(u.side!=="top"?H:-H),r:H,fill:Q}).classed("spikeline",!0)}}}function wie(e,r,t){if(!t||t.length!==e._hoverdata.length)return!0;for(var a=t.length-1;a>=0;a--){var n=t[a],i=e._hoverdata[a];if(n.curveNumber!==i.curveNumber||String(n.pointNumber)!==String(i.pointNumber)||String(n.pointNumbers)!==String(i.pointNumbers)||n.binNumber!==i.binNumber)return!0}return!1}function ZF(e,r){return!r||r.vLinePoint!==e._spikepoints.vLinePoint||r.hLinePoint!==e._spikepoints.hLinePoint}function $F(e,r){return Jo.plainText(e||"",{len:r,allowedTags:["br","sub","sup","b","i","em","s","u"]})}function Aie(e,r){for(var t=r.charAt(0),a=[],n=[],i=[],o=0;oe.offsetTop+e.clientTop,nE=e=>e.offsetLeft+e.clientLeft;function n2(e,r){var t=e._fullLayout,a=r.getBoundingClientRect(),n=a.left,i=a.top,o=n+a.width,l=i+a.height,s=Ka.apply3DTransform(t._invTransform)(n,i),u=Ka.apply3DTransform(t._invTransform)(o,l),f=s[0],c=s[1],h=u[0],d=u[1];return{x:f,y:c,width:h-f,height:d-c,top:Math.min(c,d),left:Math.min(f,h),right:Math.max(f,h),bottom:Math.max(c,d)}}});var Nm=le((vbe,iE)=>{"use strict";var Mie=mr(),Tie=qt(),kie=Pu().isUnifiedHover;iE.exports=function(r,t,a,n){n=n||{};var i=t.legend;function o(l){n.font[l]||(n.font[l]=i?t.legend.font[l]:t.font[l])}t&&kie(t.hovermode)&&(n.font||(n.font={}),o("size"),o("family"),o("color"),o("weight"),o("style"),o("variant"),i?(n.bgcolor||(n.bgcolor=Tie.combine(t.legend.bgcolor,t.paper_bgcolor)),n.bordercolor||(n.bordercolor=t.legend.bordercolor)):n.bgcolor||(n.bgcolor=t.paper_bgcolor)),a("hoverlabel.bgcolor",n.bgcolor),a("hoverlabel.bordercolor",n.bordercolor),a("hoverlabel.namelength",n.namelength),a("hoverlabel.showarrow",n.showarrow),Mie.coerceFont(a,"hoverlabel.font",n.font),a("hoverlabel.align",n.align)}});var lE=le((hbe,oE)=>{"use strict";var Cie=mr(),Sie=Nm(),Die=m1();oE.exports=function(r,t){function a(n,i){return Cie.coerce(r,t,Die,n,i)}Sie(r,t,a)}});var fE=le((dbe,uE)=>{"use strict";var sE=mr(),Fie=Rd(),Eie=Nm();uE.exports=function(r,t,a,n){function i(l,s){return sE.coerce(r,t,Fie,l,s)}var o=sE.extendFlat({},n.hoverlabel);t.hovertemplate&&(o.namelength=-1),Eie(r,t,i,o)}});var zb=le((pbe,cE)=>{"use strict";var Lie=mr(),qie=m1();cE.exports=function(r,t){function a(n,i){return t[n]!==void 0?t[n]:Lie.coerce(r,t,qie,n,i)}return a("clickmode"),a("hoversubplots"),a("hoveranywhere"),a("clickanywhere"),a("hovermode")}});var dE=le((mbe,hE)=>{"use strict";var vE=mr(),Pie=m1(),Rie=zb(),zie=Nm();hE.exports=function(r,t){function a(u,f){return vE.coerce(r,t,Pie,u,f)}var n=Rie(r,t);n&&(a("hoverdistance"),a("spikedistance"),n.indexOf("unified")!==-1&&a("hoversort"));var i=a("dragmode");i==="select"&&a("selectdirection");var o=t._has("map"),l=t._has("geo"),s=t._basePlotModules.length;t.dragmode==="zoom"&&((o||l)&&s===1||o&&l&&s===2)&&(t.dragmode="pan"),zie(r,t,a),vE.coerceFont(a,"hoverlabel.grouptitlefont",t.hoverlabel.font)}});var gE=le((gbe,mE)=>{"use strict";var Nb=mr(),pE=_t();mE.exports=function(r){var t=r.calcdata,a=r._fullLayout;function n(u){return function(f){return Nb.coerceHoverinfo({hoverinfo:f},{_module:u._module},a)}}for(var i=0;i{"use strict";var Bie=_t(),yE=Pu(),Iie=Rb().hover;bE.exports=function(r,t,a){var n=Bie.getComponentMethod("annotations","onClick")(r,r._hoverdata),i=r._fullLayout;a!==void 0&&Iie(r,t,a,!0);function o(){var s,u,f,c,h,d;var l={points:r._hoverdata,event:t};(s=l.xaxes)!=null||(l.xaxes=r._hoverXAxes),(u=l.yaxes)!=null||(l.yaxes=r._hoverYAxes),(f=l.xvals)!=null||(l.xvals=r._hoverXVals&&yE.c2dApply(r._hoverXAxes,r._hoverXVals)),(c=l.yvals)!=null||(l.yvals=r._hoverYVals&&yE.c2dApply(r._hoverYAxes,r._hoverYVals)),(h=l.xPixel)!=null||(l.xPixel=r._hoverPointerX),(d=l.yPixel)!=null||(l.yPixel=r._hoverPointerY),r.emit("plotly_click",l)}(r._hoverdata||i.clickanywhere)&&t&&t.target&&(r._hoverdata||(r._hoverdata=[]),n&&n.then?n.then(o):o(),t.stopImmediatePropagation&&t.stopImmediatePropagation())}});var Yl=le((bbe,AE)=>{"use strict";var Hie=Ft(),Bm=mr(),Oie=Zo(),rh=Pu(),xE=m1(),wE=Rb();AE.exports={moduleType:"component",name:"fx",constants:(ov(),Tr(iv)),schema:{layout:xE},attributes:Rd(),layoutAttributes:xE,supplyLayoutGlobalDefaults:lE(),supplyDefaults:fE(),supplyLayoutDefaults:dE(),calc:gE(),getDistanceFunction:rh.getDistanceFunction,getClosest:rh.getClosest,inbox:rh.inbox,quadrature:rh.quadrature,appendArrayPointValue:rh.appendArrayPointValue,castHoverOption:Gie,castHoverinfo:Yie,hover:wE.hover,unhover:Oie.unhover,loneHover:wE.loneHover,loneUnhover:Uie,click:_E()};function Uie(e){var r=Bm.isD3Selection(e)?e:Hie.select(e);r.selectAll("g.hovertext").remove(),r.selectAll(".spikeline").remove()}function Gie(e,r,t){return Bm.castOption(e,r,"hoverlabel."+t)}function Yie(e,r,t){function a(n){return Bm.coerceHoverinfo({hoverinfo:n},{_module:e._module},r)}return Bm.castOption(e,t,"hoverinfo",a)}});var o2=le(zu=>{"use strict";zu.selectMode=function(e){return e==="lasso"||e==="select"};zu.drawMode=function(e){return e==="drawclosedpath"||e==="drawopenpath"||e==="drawline"||e==="drawrect"||e==="drawcircle"};zu.openMode=function(e){return e==="drawline"||e==="drawopenpath"};zu.rectMode=function(e){return e==="select"||e==="drawline"||e==="drawrect"||e==="drawcircle"};zu.freeMode=function(e){return e==="lasso"||e==="drawclosedpath"||e==="drawopenpath"};zu.selectingOrDrawing=function(e){return zu.freeMode(e)||zu.rectMode(e)}});var Im=le((xbe,ME)=>{"use strict";ME.exports=function(r){var t=r._fullLayout;t._glcanvas&&t._glcanvas.size()&&t._glcanvas.each(function(a){a.regl&&a.regl.clear({color:!0,depth:!0})})}});var Hm=le((wbe,TE)=>{"use strict";TE.exports={undo:{width:857.1,height:1e3,path:"m857 350q0-87-34-166t-91-137-137-92-166-34q-96 0-183 41t-147 114q-4 6-4 13t5 11l76 77q6 5 14 5 9-1 13-7 41-53 100-82t126-29q58 0 110 23t92 61 61 91 22 111-22 111-61 91-92 61-110 23q-55 0-105-20t-90-57l77-77q17-16 8-38-10-23-33-23h-250q-15 0-25 11t-11 25v250q0 24 22 33 22 10 39-8l72-72q60 57 137 88t159 31q87 0 166-34t137-92 91-137 34-166z",transform:"matrix(1 0 0 -1 0 850)"},home:{width:928.6,height:1e3,path:"m786 296v-267q0-15-11-26t-25-10h-214v214h-143v-214h-214q-15 0-25 10t-11 26v267q0 1 0 2t0 2l321 264 321-264q1-1 1-4z m124 39l-34-41q-5-5-12-6h-2q-7 0-12 3l-386 322-386-322q-7-4-13-4-7 2-12 7l-35 41q-4 5-3 13t6 12l401 334q18 15 42 15t43-15l136-114v109q0 8 5 13t13 5h107q8 0 13-5t5-13v-227l122-102q5-5 6-12t-4-13z",transform:"matrix(1 0 0 -1 0 850)"},"camera-retro":{width:1e3,height:1e3,path:"m518 386q0 8-5 13t-13 5q-37 0-63-27t-26-63q0-8 5-13t13-5 12 5 5 13q0 23 16 38t38 16q8 0 13 5t5 13z m125-73q0-59-42-101t-101-42-101 42-42 101 42 101 101 42 101-42 42-101z m-572-320h858v71h-858v-71z m643 320q0 89-62 152t-152 62-151-62-63-152 63-151 151-63 152 63 62 151z m-571 358h214v72h-214v-72z m-72-107h858v143h-462l-36-71h-360v-72z m929 143v-714q0-30-21-51t-50-21h-858q-29 0-50 21t-21 51v714q0 30 21 51t50 21h858q29 0 50-21t21-51z",transform:"matrix(1 0 0 -1 0 850)"},curlybraces:{width:18,height:16,path:"M 9,4 C 7.354992,4 6,5.354992 6,7 V 9 C 6,9.2999997 5.8778068,9.8883542 5.5878906,10.291016 5.2979744,10.693677 4.9222213,11 4,11 a 1.0001,1.0001 0 0 0 0,2 c 0.2999997,0 0.8883542,0.122193 1.2910156,0.412109 C 5.693677,13.702026 6,14.077779 6,15 v 2 c 0,1.645008 1.354992,3 3,3 h 0.5 a 1,1 0 0 0 1,-1 1,1 0 0 0 -1,-1 H 9 C 8.4358712,18 8,17.564129 8,17 V 15 C 8,13.625876 7.3766799,12.602305 6.6113281,11.96875 6.8086352,11.794047 7.0679793,11.657537 7.2109375,11.458984 7.8210204,10.611647 8,9.6999993 8,9 V 7 C 8,6.4358712 8.4358712,6 9,6 h 0.5 a 1,1 0 0 0 1,-1 1,1 0 0 0 -1,-1 z m 5.5,0 a 1,1 0 0 0 -1,1 1,1 0 0 0 1,1 H 15 c 0.564129,0 1,0.4358712 1,1 v 2 c 0,0.6999993 0.17898,1.611647 0.789062,2.458984 0.142959,0.198553 0.402303,0.335063 0.59961,0.509766 C 16.62332,12.602305 16,13.625876 16,15 v 2 c 0,0.564129 -0.435871,1 -1,1 h -0.5 a 1,1 0 0 0 -1,1 1,1 0 0 0 1,1 H 15 c 1.645008,0 3,-1.354992 3,-3 v -2 c 0,-0.922221 0.306323,-1.297974 0.708984,-1.587891 C 19.111646,13.122193 19.7,13 20,13 a 1.0001,1.0001 0 0 0 0,-2 C 19.077779,11 18.702026,10.693677 18.412109,10.291016 18.122193,9.8883542 18,9.2999997 18,9 V 7 C 18,5.354992 16.645008,4 15,4 Z",transform:"translate(-3 -4)"},zoombox:{width:1e3,height:1e3,path:"m1000-25l-250 251c40 63 63 138 63 218 0 224-182 406-407 406-224 0-406-182-406-406s183-406 407-406c80 0 155 22 218 62l250-250 125 125z m-812 250l0 438 437 0 0-438-437 0z m62 375l313 0 0-312-313 0 0 312z",transform:"matrix(1 0 0 -1 0 850)"},pan:{width:1e3,height:1e3,path:"m1000 350l-187 188 0-125-250 0 0 250 125 0-188 187-187-187 125 0 0-250-250 0 0 125-188-188 186-187 0 125 252 0 0-250-125 0 187-188 188 188-125 0 0 250 250 0 0-126 187 188z",transform:"matrix(1 0 0 -1 0 850)"},zoom_plus:{width:875,height:1e3,path:"m1 787l0-875 875 0 0 875-875 0z m687-500l-187 0 0-187-125 0 0 187-188 0 0 125 188 0 0 187 125 0 0-187 187 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},zoom_minus:{width:875,height:1e3,path:"m0 788l0-876 875 0 0 876-875 0z m688-500l-500 0 0 125 500 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},autoscale:{width:1e3,height:1e3,path:"m250 850l-187 0-63 0 0-62 0-188 63 0 0 188 187 0 0 62z m688 0l-188 0 0-62 188 0 0-188 62 0 0 188 0 62-62 0z m-875-938l0 188-63 0 0-188 0-62 63 0 187 0 0 62-187 0z m875 188l0-188-188 0 0-62 188 0 62 0 0 62 0 188-62 0z m-125 188l-1 0-93-94-156 156 156 156 92-93 2 0 0 250-250 0 0-2 93-92-156-156-156 156 94 92 0 2-250 0 0-250 0 0 93 93 157-156-157-156-93 94 0 0 0-250 250 0 0 0-94 93 156 157 156-157-93-93 0 0 250 0 0 250z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_basic:{width:1500,height:1e3,path:"m375 725l0 0-375-375 375-374 0-1 1125 0 0 750-1125 0z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_compare:{width:1125,height:1e3,path:"m187 786l0 2-187-188 188-187 0 0 937 0 0 373-938 0z m0-499l0 1-187-188 188-188 0 0 937 0 0 376-938-1z",transform:"matrix(1 0 0 -1 0 850)"},plotlylogo:{width:1542,height:1e3,path:"m0-10h182v-140h-182v140z m228 146h183v-286h-183v286z m225 714h182v-1000h-182v1000z m225-285h182v-715h-182v715z m225 142h183v-857h-183v857z m231-428h182v-429h-182v429z m225-291h183v-138h-183v138z",transform:"matrix(1 0 0 -1 0 850)"},"z-axis":{width:1e3,height:1e3,path:"m833 5l-17 108v41l-130-65 130-66c0 0 0 38 0 39 0-1 36-14 39-25 4-15-6-22-16-30-15-12-39-16-56-20-90-22-187-23-279-23-261 0-341 34-353 59 3 60 228 110 228 110-140-8-351-35-351-116 0-120 293-142 474-142 155 0 477 22 477 142 0 50-74 79-163 96z m-374 94c-58-5-99-21-99-40 0-24 65-43 144-43 79 0 143 19 143 43 0 19-42 34-98 40v216h87l-132 135-133-135h88v-216z m167 515h-136v1c16 16 31 34 46 52l84 109v54h-230v-71h124v-1c-16-17-28-32-44-51l-89-114v-51h245v72z",transform:"matrix(1 0 0 -1 0 850)"},"3d_rotate":{width:1e3,height:1e3,path:"m922 660c-5 4-9 7-14 11-359 263-580-31-580-31l-102 28 58-400c0 1 1 1 2 2 118 108 351 249 351 249s-62 27-100 42c88 83 222 183 347 122 16-8 30-17 44-27-2 1-4 2-6 4z m36-329c0 0 64 229-88 296-62 27-124 14-175-11 157-78 225-208 249-266 8-19 11-31 11-31 2 5 6 15 11 32-5-13-8-20-8-20z m-775-239c70-31 117-50 198-32-121 80-199 346-199 346l-96-15-58-12c0 0 55-226 155-287z m603 133l-317-139c0 0 4-4 19-14 7-5 24-15 24-15s-177-147-389 4c235-287 536-112 536-112l31-22 100 299-4-1z m-298-153c6-4 14-9 24-15 0 0-17 10-24 15z",transform:"matrix(1 0 0 -1 0 850)"},camera:{width:1e3,height:1e3,path:"m500 450c-83 0-150-67-150-150 0-83 67-150 150-150 83 0 150 67 150 150 0 83-67 150-150 150z m400 150h-120c-16 0-34 13-39 29l-31 93c-6 15-23 28-40 28h-340c-16 0-34-13-39-28l-31-94c-6-15-23-28-40-28h-120c-55 0-100-45-100-100v-450c0-55 45-100 100-100h800c55 0 100 45 100 100v450c0 55-45 100-100 100z m-400-550c-138 0-250 112-250 250 0 138 112 250 250 250 138 0 250-112 250-250 0-138-112-250-250-250z m365 380c-19 0-35 16-35 35 0 19 16 35 35 35 19 0 35-16 35-35 0-19-16-35-35-35z",transform:"matrix(1 0 0 -1 0 850)"},movie:{width:1e3,height:1e3,path:"m938 413l-188-125c0 37-17 71-44 94 64 38 107 107 107 187 0 121-98 219-219 219-121 0-219-98-219-219 0-61 25-117 66-156h-115c30 33 49 76 49 125 0 103-84 187-187 187s-188-84-188-187c0-57 26-107 65-141-38-22-65-62-65-109v-250c0-70 56-126 125-126h500c69 0 125 56 125 126l188-126c34 0 62 28 62 63v375c0 35-28 63-62 63z m-750 0c-69 0-125 56-125 125s56 125 125 125 125-56 125-125-56-125-125-125z m406-1c-87 0-157 70-157 157 0 86 70 156 157 156s156-70 156-156-70-157-156-157z",transform:"matrix(1 0 0 -1 0 850)"},question:{width:857.1,height:1e3,path:"m500 82v107q0 8-5 13t-13 5h-107q-8 0-13-5t-5-13v-107q0-8 5-13t13-5h107q8 0 13 5t5 13z m143 375q0 49-31 91t-77 65-95 23q-136 0-207-119-9-14 4-24l74-55q4-4 10-4 9 0 14 7 30 38 48 51 19 14 48 14 27 0 48-15t21-33q0-21-11-34t-38-25q-35-16-65-48t-29-70v-20q0-8 5-13t13-5h107q8 0 13 5t5 13q0 10 12 27t30 28q18 10 28 16t25 19 25 27 16 34 7 45z m214-107q0-117-57-215t-156-156-215-58-216 58-155 156-58 215 58 215 155 156 216 58 215-58 156-156 57-215z",transform:"matrix(1 0 0 -1 0 850)"},disk:{width:857.1,height:1e3,path:"m214-7h429v214h-429v-214z m500 0h72v500q0 8-6 21t-11 20l-157 156q-5 6-19 12t-22 5v-232q0-22-15-38t-38-16h-322q-22 0-37 16t-16 38v232h-72v-714h72v232q0 22 16 38t37 16h465q22 0 38-16t15-38v-232z m-214 518v178q0 8-5 13t-13 5h-107q-7 0-13-5t-5-13v-178q0-8 5-13t13-5h107q7 0 13 5t5 13z m357-18v-518q0-22-15-38t-38-16h-750q-23 0-38 16t-16 38v750q0 22 16 38t38 16h517q23 0 50-12t42-26l156-157q16-15 27-42t11-49z",transform:"matrix(1 0 0 -1 0 850)"},cloudupload:{width:640,height:640,path:"M451.5 160C434.9 160 418.8 164.5 404.7 172.7C388.9 156.7 370.5 143.3 350.2 133.2C378.4 109.2 414.3 96 451.5 96C537.9 96 608 166 608 252.5C608 294 591.5 333.8 562.2 363.1L491.1 434.2C461.8 463.5 422 480 380.5 480C294.1 480 224 410 224 323.5C224 322 224 320.5 224.1 319C224.6 301.3 239.3 287.4 257 287.9C274.7 288.4 288.6 303.1 288.1 320.8C288.1 321.7 288.1 322.6 288.1 323.4C288.1 374.5 329.5 415.9 380.6 415.9C405.1 415.9 428.6 406.2 446 388.8L517.1 317.7C534.4 300.4 544.2 276.8 544.2 252.3C544.2 201.2 502.8 159.8 451.7 159.8zM307.2 237.3C305.3 236.5 303.4 235.4 301.7 234.2C289.1 227.7 274.7 224 259.6 224C235.1 224 211.6 233.7 194.2 251.1L123.1 322.2C105.8 339.5 96 363.1 96 387.6C96 438.7 137.4 480.1 188.5 480.1C205 480.1 221.1 475.7 235.2 467.5C251 483.5 269.4 496.9 289.8 507C261.6 530.9 225.8 544.2 188.5 544.2C102.1 544.2 32 474.2 32 387.7C32 346.2 48.5 306.4 77.8 277.1L148.9 206C178.2 176.7 218 160.2 259.5 160.2C346.1 160.2 416 230.8 416 317.1C416 318.4 416 319.7 416 321C415.6 338.7 400.9 352.6 383.2 352.2C365.5 351.8 351.6 337.1 352 319.4C352 318.6 352 317.9 352 317.1C352 283.4 334 253.8 307.2 237.5z",transform:"matrix(1 0 0 1 -15 -15)"},drawopenpath:{width:70,height:70,path:"M33.21,85.65a7.31,7.31,0,0,1-2.59-.48c-8.16-3.11-9.27-19.8-9.88-41.3-.1-3.58-.19-6.68-.35-9-.15-2.1-.67-3.48-1.43-3.79-2.13-.88-7.91,2.32-12,5.86L3,32.38c1.87-1.64,11.55-9.66,18.27-6.9,2.13.87,4.75,3.14,5.17,9,.17,2.43.26,5.59.36,9.25a224.17,224.17,0,0,0,1.5,23.4c1.54,10.76,4,12.22,4.48,12.4.84.32,2.79-.46,5.76-3.59L43,80.07C41.53,81.57,37.68,85.64,33.21,85.65ZM74.81,69a11.34,11.34,0,0,0,6.09-6.72L87.26,44.5,74.72,32,56.9,38.35c-2.37.86-5.57,3.42-6.61,6L38.65,72.14l8.42,8.43ZM55,46.27a7.91,7.91,0,0,1,3.64-3.17l14.8-5.3,8,8L76.11,60.6l-.06.19a6.37,6.37,0,0,1-3,3.43L48.25,74.59,44.62,71Zm16.57,7.82A6.9,6.9,0,1,0,64.64,61,6.91,6.91,0,0,0,71.54,54.09Zm-4.05,0a2.85,2.85,0,1,1-2.85-2.85A2.86,2.86,0,0,1,67.49,54.09Zm-4.13,5.22L60.5,56.45,44.26,72.7l2.86,2.86ZM97.83,35.67,84.14,22l-8.57,8.57L89.26,44.24Zm-13.69-8,8,8-2.85,2.85-8-8Z",transform:"matrix(1 0 0 1 -15 -15)"},drawclosedpath:{width:90,height:90,path:"M88.41,21.12a26.56,26.56,0,0,0-36.18,0l-2.07,2-2.07-2a26.57,26.57,0,0,0-36.18,0,23.74,23.74,0,0,0,0,34.8L48,90.12a3.22,3.22,0,0,0,4.42,0l36-34.21a23.73,23.73,0,0,0,0-34.79ZM84,51.24,50.16,83.35,16.35,51.25a17.28,17.28,0,0,1,0-25.47,20,20,0,0,1,27.3,0l4.29,4.07a3.23,3.23,0,0,0,4.44,0l4.29-4.07a20,20,0,0,1,27.3,0,17.27,17.27,0,0,1,0,25.46ZM66.76,47.68h-33v6.91h33ZM53.35,35H46.44V68h6.91Z",transform:"matrix(1 0 0 1 -5 -5)"},lasso:{width:1031,height:1e3,path:"m1018 538c-36 207-290 336-568 286-277-48-473-256-436-463 10-57 36-108 76-151-13-66 11-137 68-183 34-28 75-41 114-42l-55-70 0 0c-2-1-3-2-4-3-10-14-8-34 5-45 14-11 34-8 45 4 1 1 2 3 2 5l0 0 113 140c16 11 31 24 45 40 4 3 6 7 8 11 48-3 100 0 151 9 278 48 473 255 436 462z m-624-379c-80 14-149 48-197 96 42 42 109 47 156 9 33-26 47-66 41-105z m-187-74c-19 16-33 37-39 60 50-32 109-55 174-68-42-25-95-24-135 8z m360 75c-34-7-69-9-102-8 8 62-16 128-68 170-73 59-175 54-244-5-9 20-16 40-20 61-28 159 121 317 333 354s407-60 434-217c28-159-121-318-333-355z",transform:"matrix(1 0 0 -1 0 850)"},selectbox:{width:1e3,height:1e3,path:"m0 850l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-285l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z",transform:"matrix(1 0 0 -1 0 850)"},drawline:{width:70,height:70,path:"M60.64,62.3a11.29,11.29,0,0,0,6.09-6.72l6.35-17.72L60.54,25.31l-17.82,6.4c-2.36.86-5.57,3.41-6.6,6L24.48,65.5l8.42,8.42ZM40.79,39.63a7.89,7.89,0,0,1,3.65-3.17l14.79-5.31,8,8L61.94,54l-.06.19a6.44,6.44,0,0,1-3,3.43L34.07,68l-3.62-3.63Zm16.57,7.81a6.9,6.9,0,1,0-6.89,6.9A6.9,6.9,0,0,0,57.36,47.44Zm-4,0a2.86,2.86,0,1,1-2.85-2.85A2.86,2.86,0,0,1,53.32,47.44Zm-4.13,5.22L46.33,49.8,30.08,66.05l2.86,2.86ZM83.65,29,70,15.34,61.4,23.9,75.09,37.59ZM70,21.06l8,8-2.84,2.85-8-8ZM87,80.49H10.67V87H87Z",transform:"matrix(1 0 0 1 -15 -15)"},drawrect:{width:80,height:80,path:"M78,22V79H21V22H78m9-9H12V88H87V13ZM68,46.22H31V54H68ZM53,32H45.22V69H53Z",transform:"matrix(1 0 0 1 -10 -10)"},drawcircle:{width:80,height:80,path:"M50,84.72C26.84,84.72,8,69.28,8,50.3S26.84,15.87,50,15.87,92,31.31,92,50.3,73.16,84.72,50,84.72Zm0-60.59c-18.6,0-33.74,11.74-33.74,26.17S31.4,76.46,50,76.46,83.74,64.72,83.74,50.3,68.6,24.13,50,24.13Zm17.15,22h-34v7.11h34Zm-13.8-13H46.24v34h7.11Z",transform:"matrix(1 0 0 1 -10 -10)"},eraseshape:{width:80,height:80,path:"M82.77,78H31.85L6,49.57,31.85,21.14H82.77a8.72,8.72,0,0,1,8.65,8.77V69.24A8.72,8.72,0,0,1,82.77,78ZM35.46,69.84H82.77a.57.57,0,0,0,.49-.6V29.91a.57.57,0,0,0-.49-.61H35.46L17,49.57Zm32.68-34.7-24,24,5,5,24-24Zm-19,.53-5,5,24,24,5-5Z",transform:"matrix(1 0 0 1 -10 -10)"},spikeline:{width:1e3,height:1e3,path:"M512 409c0-57-46-104-103-104-57 0-104 47-104 104 0 57 47 103 104 103 57 0 103-46 103-103z m-327-39l92 0 0 92-92 0z m-185 0l92 0 0 92-92 0z m370-186l92 0 0 93-92 0z m0-184l92 0 0 92-92 0z",transform:"matrix(1.5 0 0 -1.5 0 850)"},pencil:{width:1792,height:1792,path:"M491 1536l91-91-235-235-91 91v107h128v128h107zm523-928q0-22-22-22-10 0-17 7l-542 542q-7 7-7 17 0 22 22 22 10 0 17-7l542-542q7-7 7-17zm-54-192l416 416-832 832h-416v-416zm683 96q0 53-37 90l-166 166-416-416 166-165q36-38 90-38 53 0 91 38l235 234q37 39 37 91z",transform:"matrix(1 0 0 1 0 1)"},newplotlylogo:{name:"newplotlylogo",svg:[""," plotly-logomark"," "," "," "," "," "," "," "," "," "," "," "," "," ",""].join("")}}});var Om={};Ha(Om,{CIRCLE_SIDES:()=>Vie,SQRT2:()=>Kie,cos45:()=>$ie,i000:()=>Xie,i090:()=>jie,i180:()=>Wie,i270:()=>Zie,sin45:()=>Jie});var Vie,Xie,jie,Wie,Zie,$ie,Jie,Kie,Um=Ia(()=>{"use strict";Vie=32,Xie=0,jie=8,Wie=16,Zie=24,$ie=Math.cos(Math.PI/4),Jie=Math.sin(Math.PI/4),Kie=Math.sqrt(2)});var Gm=le((Abe,CE)=>{"use strict";var Qie=mr().strTranslate;function kE(e,r){switch(e.type){case"log":return e.p2d(r);case"date":return e.p2r(r,0,e.calendar);default:return e.p2r(r)}}function eoe(e,r){switch(e.type){case"log":return e.d2p(r);case"date":return e.r2p(r,0,e.calendar);default:return e.r2p(r)}}function roe(e){var r=e._id.charAt(0)==="y"?1:0;return function(t){return kE(e,t[r])}}function toe(e){return Qie(e.xaxis._offset,e.yaxis._offset)}CE.exports={p2r:kE,r2p:eoe,axValue:roe,getTransform:toe}});var z0=le(Nu=>{"use strict";var aoe=A6(),FE=(Um(),Tr(Om)),l2=FE.CIRCLE_SIDES,Bb=FE.SQRT2,EE=Gm(),SE=EE.p2r,DE=EE.r2p,noe=[0,3,4,5,6,1,2],ioe=[0,3,4,1,2];Nu.writePaths=function(e){var r=e.length;if(!r)return"M0,0Z";for(var t="",a=0;a0&&s{"use strict";var LE=Cn(),NE=o2(),ooe=NE.drawMode,loe=NE.openMode,s2=(Um(),Tr(Om)),qE=s2.i000,PE=s2.i090,RE=s2.i180,zE=s2.i270,soe=s2.cos45,uoe=s2.sin45,BE=Gm(),Vm=BE.p2r,N0=BE.r2p,foe=T0(),coe=foe.clearOutline,Xm=z0(),voe=Xm.readPaths,hoe=Xm.writePaths,doe=Xm.ellipseOver,poe=Xm.fixDatesForPaths;function moe(e,r){if(e.length){var t=e[0][0];if(t){var a=r.gd,n=r.isActiveShape,i=r.dragmode,o=(a.layout||{}).shapes||[];if(!ooe(i)&&n!==void 0){var l=a._fullLayout._activeShapeIndex;if(l{"use strict";var goe=o2(),yoe=goe.selectMode,boe=T0(),_oe=boe.clearOutline,Ib=z0(),xoe=Ib.readPaths,woe=Ib.writePaths,Aoe=Ib.fixDatesForPaths;OE.exports=function(r,t){if(r.length){var a=r[0][0];if(a){var n=a.getAttribute("d"),i=t.gd,o=i._fullLayout.newselection,l=t.plotinfo,s=l.xaxis,u=l.yaxis,f=t.isActiveSelection,c=t.dragmode,h=(i.layout||{}).selections||[];if(!yoe(c)&&f!==void 0){var d=i._fullLayout._activeSelectionIndex;if(dSoe,paramIsX:()=>koe,paramIsY:()=>Coe,paramRE:()=>Toe,segmentRE:()=>Moe});var Moe,Toe,koe,Coe,Soe,nh=Ia(()=>{"use strict";Moe=/[MLHVQCTSZ][^MLHVQCTSZ]*/g,Toe=/[^\s,]+/g,koe={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:{}},Coe={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:3},Z:{}},Soe={M:2,L:2,H:1,V:1,Q:4,C:6,T:2,S:4,Z:0}});var I0=le(Vn=>{"use strict";var Is=(nh(),Tr(ah)),UE=mr(),B0=Oa();Vn.rangeToShapePosition=function(e){return e.type==="log"?e.r2d:function(r){return r}};Vn.shapePositionToRange=function(e){return e.type==="log"?e.d2r:function(r){return r}};Vn.decodeDate=function(e){return function(r){return r.replace&&(r=r.replace("_"," ")),e(r)}};Vn.encodeDate=function(e){return function(r){return e(r).replace(" ","_")}};Vn.extractPathCoords=function(e,r,t){var a=[],n=e.match(Is.segmentRE);return n.forEach(function(i){var o=r[i.charAt(0)].drawn;if(o!==void 0){var l=i.slice(1).match(Is.paramRE);if(!(!l||l.length{let l=o.charAt(0),s=n[l].drawn!==void 0;return i+(s?1:0)},0)};Vn.getDataToPixel=function(e,r,t,a,n){var i=e._fullLayout._size,o;if(r)if(n==="domain")o=function(s){return r._length*(a?1-s:s)+r._offset};else{var l=Vn.shapePositionToRange(r);o=function(s){var u=Bs(r,t);return r._offset+r.r2p(l(s,!0))+u},r.type==="date"&&(o=Vn.decodeDate(o))}else a?o=function(s){return i.t+i.h*(1-s)}:o=function(s){return i.l+i.w*s};return o};Vn.getPixelToData=function(e,r,t,a){var n=e._fullLayout._size,i;if(r)if(a==="domain")i=function(l){var s=(l-r._offset)/r._length;return t?1-s:s};else{var o=Vn.rangeToShapePosition(r);i=function(l){return o(r.p2r(l-r._offset))}}else t?i=function(l){return 1-(l-n.t)/n.h}:i=function(l){return(l-n.l)/n.w};return i};Vn.roundPositionForSharpStrokeRendering=function(e,r){var t=Math.round(r%2)===1,a=Math.round(e);return t?a+.5:a};Vn.makeShapesOptionsAndPlotinfo=function(e,r){var t=e._fullLayout.shapes[r]||{},a=e._fullLayout._plots[t.xref+t.yref],n=!!a;return n?a._hadPlotinfo=!0:(a={},t.xref&&t.xref!=="paper"&&(a.xaxis=e._fullLayout[t.xref+"axis"]),t.yref&&t.yref!=="paper"&&(a.yaxis=e._fullLayout[t.yref+"axis"])),a.xsizemode=t.xsizemode,a.ysizemode=t.ysizemode,a.xanchor=t.xanchor,a.yanchor=t.yanchor,{options:t,plotinfo:a}};Vn.makeSelectionsOptionsAndPlotinfo=function(e,r){var t=e._fullLayout.selections[r]||{},a=e._fullLayout._plots[t.xref+t.yref],n=!!a;return n?a._hadPlotinfo=!0:(a={},t.xref&&(a.xaxis=e._fullLayout[t.xref+"axis"]),t.yref&&(a.yaxis=e._fullLayout[t.yref+"axis"])),{options:t,plotinfo:a}};Vn.getPathString=function(e,r){let t=r.type,a=B0.getRefType(r.xref),n=B0.getRefType(r.yref),i=e._fullLayout._size;var o,l,s,u,f,c,h,d,m,p,y,b;function C(z,B,X,I){var V;if(z)if(B==="domain")I?V=function(H){return z._offset+z._length*(1-H)}:V=function(H){return z._offset+z._length*H};else{let H=Vn.shapePositionToRange(z);V=function(Q){return z._offset+z.r2p(H(Q,!0))},X==="path"&&z.type==="date"&&(V=Vn.decodeDate(V))}else I?V=function(H){return i.t+i.h*(1-H)}:V=function(H){return i.l+i.w*H};return V}if(a==="array"?(h=[],o=r.xref.map(function(z){return B0.getFromId(e,z)}),h=r.xref.map(function(z,B){return C(o[B],B0.getRefType(z),t,!1)})):(o=B0.getFromId(e,r.xref),h=C(o,a,t,!1)),n==="array"?(d=[],l=r.yref.map(function(z){return B0.getFromId(e,z)}),d=r.yref.map(function(z,B){return C(l[B],B0.getRefType(z),t,!0)})):(l=B0.getFromId(e,r.yref),d=C(l,n,t,!0)),t==="path")return Doe(r,h,d);if(a==="array")s=Bs(o[0],r.x0shift),u=Bs(o[1],r.x1shift),m=h[0](r.x0)+s,p=h[1](r.x1)+u;else if(s=Bs(o,r.x0shift),u=Bs(o,r.x1shift),r.xsizemode==="pixel"){let z=h(r.xanchor);m=z+r.x0+s,p=z+r.x1+u}else m=h(r.x0)+s,p=h(r.x1)+u;if(n==="array")f=Bs(l[0],r.y0shift),c=Bs(l[1],r.y1shift),y=d[0](r.y0)+f,b=d[1](r.y1)+c;else if(f=Bs(l,r.y0shift),c=Bs(l,r.y1shift),r.ysizemode==="pixel"){let z=d(r.yanchor);y=z-r.y0+f,b=z-r.y1+c}else y=d(r.y0)+f,b=d(r.y1)+c;if(t==="line")return"M"+m+","+y+"L"+p+","+b;if(t==="rect")return"M"+m+","+y+"H"+p+"V"+b+"H"+m+"Z";var x=(m+p)/2,_=(y+b)/2,M=Math.abs(x-m),T=Math.abs(_-y),A="A"+M+","+T,E=x+M+","+_,P=x+","+(_-T);return"M"+E+A+" 0 1,1 "+P+A+" 0 0,1 "+E+"Z"};function Doe(e,r,t){let a=e.path,n=e.xsizemode,i=e.ysizemode,o=e.xanchor,l=e.yanchor,s=Array.isArray(e.xref),u=Array.isArray(e.yref);var f=0,c=0;return a.replace(Is.segmentRE,function(h){var d=0,m=h.charAt(0),p=Is.paramIsX[m],y=Is.paramIsY[m],b=Is.numParams[m];let C=p.drawn!==void 0,x=y.drawn!==void 0,_=s?r[f]:r,M=u?t[c]:t;var T=h.slice(1).replace(Is.paramRE,function(A){return p[d]?n==="pixel"?A=_(o)+Number(A):A=_(A):y[d]&&(i==="pixel"?A=M(l)-Number(A):A=M(A)),d++,d>b&&(A="X"),A});return d>b&&(T=T.replace(/[\s,]*X.*/,""),UE.log("Ignoring extra params in segment "+h)),C&&f++,x&&c++,m+T})}Vn.getPixelShift=Bs;function Bs(e,r){r=r||0;var t=0;return r&&e&&(e.type==="category"||e.type==="multicategory")&&(t=(e.r2p(1)-e.r2p(0))*r),t}});var Ob=le((Sbe,VE)=>{"use strict";var Foe=mr(),Hs=Oa(),GE=si(),YE=ha(),Eoe=z0().readPaths,pc=I0(),Loe=pc.getPathString,ih=mp(),qoe=(li(),Tr(oi)).FROM_TL;VE.exports=function(r,t,a,n){if(n.selectAll(".shape-label").remove(),!!(a.label.text||a.label.texttemplate)){var i;if(a.label.texttemplate){var o={};if(a.type!=="path"){var l=Hs.getFromId(r,a.xref),s=Hs.getFromId(r,a.yref);let ce=Array.isArray(a.xref),Me=Array.isArray(a.yref);for(var u in ih){var f=typeof ih[u]=="function",c=!ce||ih.simpleXVariables.includes(u),h=!Me||ih.simpleYVariables.includes(u);if(f&&c&&h){var d=ih[u](a,l,s);d!==void 0&&(o[u]=d)}}}i=Foe.texttemplateStringForShapes({data:[o],fallback:a.label.texttemplatefallback,locale:r._fullLayout._d3locale,template:a.label.texttemplate})}else i=a.label.text;var m={"data-index":t},p=a.label.font,y={"data-notex":1},b=n.append("g").attr(m).classed("shape-label",!0),C=b.append("text").attr(y).classed("shape-label-text",!0).text(i),x,_,M,T;if(a.path){var A=Loe(r,a),E=Eoe(A,r);x=1/0,M=1/0,_=-1/0,T=-1/0;for(var P=0;Ppc.getDataToPixel(r,Ne,_e,!1,Je)(ue),J=(ue,_e,Ne,Je)=>pc.getDataToPixel(r,Ne,_e,!0,Je)(ue);if(a.xsizemode==="pixel"){let ue=K(a.xanchor,void 0,De,je),_e=pc.getPixelShift(De,a.x0shift),Ne=pc.getPixelShift(De,a.x1shift);x=ue+a.x0+_e,_=ue+a.x1+Ne}else x=K(a.x0,a.x0shift,De,je),_=K(a.x1,a.x1shift,Ie,W);if(a.ysizemode==="pixel"){let ue=J(a.yanchor,void 0,Ue,ee),_e=pc.getPixelShift(Ue,a.y0shift),Ne=pc.getPixelShift(Ue,a.y1shift);M=ue-a.y0+_e,T=ue-a.y1+Ne}else M=J(a.y0,a.y0shift,Ue,ee),T=J(a.y1,a.y1shift,ke,me)}var H=a.label.textangle;H==="auto"&&(a.type==="line"?H=Poe(x,M,_,T):H=0),C.call(function(ce){return ce.call(YE.font,p).attr({}),GE.convertToTspans(ce,r),ce});var Q=YE.bBox(C.node()),oe=Roe(x,M,_,T,a,H,Q),re=oe.textx,te=oe.texty,ie=oe.xanchor;C.attr({"text-anchor":{left:"start",center:"middle",right:"end"}[ie],y:te,x:re,transform:"rotate("+H+","+re+","+te+")"}).call(GE.positionText,re,te)}};function Poe(e,r,t,a){var n,i;return i=Math.abs(t-e),t>=e?n=r-a:n=a-r,-180/Math.PI*Math.atan2(n,i)}function Roe(e,r,t,a,n,i,o){var l=n.label.textposition,s=n.label.textangle,u=n.label.padding,f=n.type,c=Math.PI/180*i,h=Math.sin(c),d=Math.cos(c),m=n.label.xanchor,p=n.label.yanchor,y,b,C,x;if(f==="line"){l==="start"?(y=e,b=r):l==="end"?(y=t,b=a):(y=(e+t)/2,b=(r+a)/2),m==="auto"&&(l==="start"?s==="auto"?t>e?m="left":te?m="right":te?m="right":te?m="left":t{"use strict";var zoe=mr(),Noe=zoe.strTranslate,XE=Zo(),ZE=o2(),Boe=ZE.drawMode,$E=ZE.selectMode,JE=_t(),jE=qt(),Zm=(Um(),Tr(Om)),Ioe=Zm.i000,Hoe=Zm.i090,Ooe=Zm.i180,Uoe=Zm.i270,Goe=T0(),KE=Goe.clearOutlineControllers,Gb=z0(),Wm=Gb.pointsOnRectangle,Ub=Gb.pointsOnEllipse,Yoe=Gb.writePaths,Voe=jm().newShapes,Xoe=jm().createShapeObj,joe=Hb(),Woe=Ob();QE.exports=function e(r,t,a,n){n||(n=0);var i=a.gd;function o(){e(r,t,a,n++),(Ub(r[0])||a.hasText)&&l({redrawing:!0})}function l(oe){var re={};a.isActiveShape!==void 0&&(a.isActiveShape=!1,re=Voe(t,a)),a.isActiveSelection!==void 0&&(a.isActiveSelection=!1,re=joe(t,a),i._fullLayout._reselect=!0),Object.keys(re).length&&JE.call((oe||{}).redrawing?"relayout":"_guiRelayout",i,re)}var s=i._fullLayout,u=s._zoomlayer,f=a.dragmode,c=Boe(f),h=$E(f);(c||h)&&(i._fullLayout._outlining=!0),KE(i),t.attr("d",Yoe(r));var d,m,p,y,b;if(!n&&(a.isActiveShape||a.isActiveSelection)){b=Zoe([],r);var C=u.append("g").attr("class","outline-controllers");z(C),Q()}if(c&&a.hasText){var x=u.select(".label-temp"),_=Xoe(t,a,a.dragmode);Woe(i,"label-temp",_,x)}function M(oe){p=+oe.srcElement.getAttribute("data-i"),y=+oe.srcElement.getAttribute("data-j"),d[p][y].moveFn=T}function T(oe,re){if(r.length){var te=b[p][y][1],ie=b[p][y][2],ce=r[p],Me=ce.length;if(Wm(ce)){var De=oe,Ie=re;if(a.isActiveSelection){var Ue=WE(ce,y);Ue[1]===ce[y][1]?Ie=0:De=0}for(var ke=0;ke1&&!(oe.length===2&&oe[1][0]==="Z")&&(y===0&&(oe[0][0]="M"),r[p]=oe,o(),l())}}function P(oe,re){if(oe===2){p=+re.srcElement.getAttribute("data-i"),y=+re.srcElement.getAttribute("data-j");var te=r[p];!Wm(te)&&!Ub(te)&&E()}}function z(oe){d=[];for(var re=0;re{"use strict";var Joe=Ft(),iL=_t(),Vb=mr(),mc=Oa(),Koe=z0().readPaths,Qoe=$m(),Km=Ob(),oL=T0().clearOutlineControllers,Yb=qt(),Qm=ha(),ele=ka().arrayEditor,eL=Zo(),rL=Yl(),tL=P0(),gc=(nh(),Tr(ah)),to=I0(),Xb=to.getPathString;uL.exports={draw:jb,drawOne:lL,eraseActiveShape:ile,drawLabel:Km};function jb(e){var r=e._fullLayout;r._shapeUpperLayer.selectAll("path").remove(),r._shapeLowerLayer.selectAll("path").remove(),r._shapeUpperLayer.selectAll("text").remove(),r._shapeLowerLayer.selectAll("text").remove();for(var t in r._plots){var a=r._plots[t].shapelayer;a&&(a.selectAll("path").remove(),a.selectAll("text").remove())}for(var n=0;n{if(!e._dragging&&e._fullLayout.hoveranywhere){let o=n(i);o&&rL.hover(e,o,t.id)}}),a.addEventListener("click",i=>{if(!e._dragged&&e._fullLayout.clickanywhere){let o=n(i);o&&rL.click(e,o,t.id)}})}function sL(e,r,t){let a=t.xref,n=t.yref;if(Array.isArray(a)||Array.isArray(n)){let i="clip"+r._fullLayout._uid+"shape"+t._index,o=tle(r,a,n);Vb.ensureSingleById(r._fullLayout._clips,"clipPath",i,function(l){l.append("rect")}).select("rect").attr(o),Qm.setClipUrl(e,i,r)}else{let i=(a+n).replace(/paper/g,"").replace(/[xyz][0-9]* *domain/g,"");Qm.setClipUrl(e,i?"clip"+r._fullLayout._uid+i:null,r)}}function tle(e,r,t){let a=e._fullLayout._size;function n(l,s){let u=(Array.isArray(l)?l:[l]).map(h=>mc.getFromId(e,h)).filter(Boolean);if(!u.length)return s?[a.t,a.t+a.h]:[a.l,a.l+a.w];let f=u.map(function(h){return h._offset}),c=u.map(function(h){return h._offset+h._length});return[Math.min(...f),Math.max(...c)]}let i=n(r,!1),o=n(t,!0);return{x:i[0],y:o[0],width:i[1]-i[0],height:o[1]-o[0]}}function ale(e,r,t,a,n,i){var o=10,l=10,s=t.xsizemode==="pixel",u=t.ysizemode==="pixel",f=t.type==="line",c=t.type==="path",h=i.modifyItem,d,m,p,y,b,C,x,_,M,T,A,E,P,z,B,X=Joe.select(r.node().parentNode),I=mc.getFromId(e,t.xref),V=mc.getRefType(t.xref),H=mc.getFromId(e,t.yref),Q=mc.getRefType(t.yref),oe=t.x0shift,re=t.x1shift,te=t.y0shift,ie=t.y1shift,ce=function(fr,Re){var sr=to.getDataToPixel(e,I,Re,!1,V);return sr(fr)},Me=function(fr,Re){var sr=to.getDataToPixel(e,H,Re,!0,Q);return sr(fr)},De=to.getPixelToData(e,I,!1,V),Ie=to.getPixelToData(e,H,!0,Q),Ue=W(),ke={element:Ue.node(),gd:e,prepFn:K,doneFn:J,clickFn:ue},je;eL.init(ke),Ue.node().onmousemove=me;function W(){return f?ee():r}function ee(){var fr=10,Re=Math.max(t.line.width,fr),sr=n.append("g").attr("data-index",a).attr("drag-helper",!0);sr.append("path").attr("d",r.attr("d")).style({cursor:"move","stroke-width":Re,"stroke-opacity":"0"});var hr={"fill-opacity":"0"},dr=Math.max(Re/2,fr);return sr.append("circle").attr({"data-line-point":"start-point",cx:s?ce(t.xanchor)+t.x0:ce(t.x0,oe),cy:u?Me(t.yanchor)-t.y0:Me(t.y0,te),r:dr}).style(hr).classed("cursor-grab",!0),sr.append("circle").attr({"data-line-point":"end-point",cx:s?ce(t.xanchor)+t.x1:ce(t.x1,re),cy:u?Me(t.yanchor)-t.y1:Me(t.y1,ie),r:dr}).style(hr).classed("cursor-grab",!0),sr}function me(fr){if(Jm(e)){je=null;return}if(f)fr.target.tagName==="path"?je="move":je=fr.target.attributes["data-line-point"].value==="start-point"?"resize-over-start-point":"resize-over-end-point";else{var Re=ke.element.getBoundingClientRect(),sr=Re.right-Re.left,hr=Re.bottom-Re.top,dr=fr.clientX-Re.left,Ze=fr.clientY-Re.top,cr=!c&&sr>o&&hr>l&&!fr.shiftKey?eL.getCursor(dr/sr,1-Ze/hr):"move";tL(r,cr),je=cr.split("-")[0]}}function K(fr){Jm(e)||(s&&(b=ce(t.xanchor)),u&&(C=Me(t.yanchor)),t.type==="path"?B=t.path:(d=s?t.x0:ce(t.x0),m=u?t.y0:Me(t.y0),p=s?t.x1:ce(t.x1),y=u?t.y1:Me(t.y1)),dy?(x=m,A="y0",_=y,E="y1"):(x=y,A="y1",_=m,E="y0"),me(fr),Je(n,t),tr(r,t,e),ke.moveFn=je==="move"?_e:Ne,ke.altKey=fr.altKey)}function J(){Jm(e)||(tL(r),ar(n),sL(r,e,t),iL.call("_guiRelayout",e,i.getUpdateObj()))}function ue(){Jm(e)||ar(n)}function _e(fr,Re){if(t.type==="path"){var sr=function(Ze){return Ze},hr=sr,dr=sr;s?h("xanchor",t.xanchor=De(b+fr)):(hr=function(cr){return De(ce(cr)+fr)},I&&I.type==="date"&&(hr=to.encodeDate(hr))),u?h("yanchor",t.yanchor=Ie(C+Re)):(dr=function(cr){return Ie(Me(cr)+Re)},H&&H.type==="date"&&(dr=to.encodeDate(dr))),h("path",t.path=aL(B,hr,dr))}else s?h("xanchor",t.xanchor=De(b+fr)):(h("x0",t.x0=De(d+fr)),h("x1",t.x1=De(p+fr))),u?h("yanchor",t.yanchor=Ie(C+Re)):(h("y0",t.y0=Ie(m+Re)),h("y1",t.y1=Ie(y+Re)));r.attr("d",Xb(e,t)),Je(n,t),Km(e,a,t,X)}function Ne(fr,Re){if(c){var sr=function(xr){return xr},hr=sr,dr=sr;s?h("xanchor",t.xanchor=De(b+fr)):(hr=function(Rr){return De(ce(Rr)+fr)},I&&I.type==="date"&&(hr=to.encodeDate(hr))),u?h("yanchor",t.yanchor=Ie(C+Re)):(dr=function(Rr){return Ie(Me(Rr)+Re)},H&&H.type==="date"&&(dr=to.encodeDate(dr))),h("path",t.path=aL(B,hr,dr))}else if(f){if(je==="resize-over-start-point"){var Ze=d+fr,cr=u?m-Re:m+Re;h("x0",t.x0=s?Ze:De(Ze)),h("y0",t.y0=u?cr:Ie(cr))}else if(je==="resize-over-end-point"){var Lr=p+fr,Te=u?y-Re:y+Re;h("x1",t.x1=s?Lr:De(Lr)),h("y1",t.y1=u?Te:Ie(Te))}}else{var Oe=function(xr){return je.indexOf(xr)!==-1},Ar=Oe("n"),Br=Oe("s"),Qe=Oe("w"),Be=Oe("e"),Xe=Ar?x+Re:x,yr=Br?_+Re:_,Cr=Qe?M+fr:M,pr=Be?T+fr:T;u&&(Ar&&(Xe=x-Re),Br&&(yr=_-Re)),(!u&&yr-Xe>l||u&&Xe-yr>l)&&(h(A,t[A]=u?Xe:Ie(Xe)),h(E,t[E]=u?yr:Ie(yr))),pr-Cr>o&&(h(P,t[P]=s?Cr:De(Cr)),h(z,t[z]=s?pr:De(pr)))}r.attr("d",Xb(e,t)),Je(n,t),Km(e,a,t,X)}function Je(fr,Re){(s||u)&&sr();function sr(){var hr=Re.type!=="path",dr=fr.selectAll(".visual-cue").data([0]),Ze=1;dr.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":Ze}).classed("visual-cue",!0);var cr=ce(s?Re.xanchor:Vb.midRange(hr?[Re.x0,Re.x1]:to.extractPathCoords(Re.path,gc.paramIsX))),Lr=Me(u?Re.yanchor:Vb.midRange(hr?[Re.y0,Re.y1]:to.extractPathCoords(Re.path,gc.paramIsY)));if(cr=to.roundPositionForSharpStrokeRendering(cr,Ze),Lr=to.roundPositionForSharpStrokeRendering(Lr,Ze),s&&u){var Te="M"+(cr-1-Ze)+","+(Lr-1-Ze)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";dr.attr("d",Te)}else if(s){var Oe="M"+(cr-1-Ze)+","+(Lr-9-Ze)+"v18 h2 v-18 Z";dr.attr("d",Oe)}else{var Ar="M"+(cr-9-Ze)+","+(Lr-1-Ze)+"h18 v2 h-18 Z";dr.attr("d",Ar)}}}function ar(fr){fr.selectAll(".visual-cue").remove()}function tr(fr,Re,sr){var hr=Re.xref,dr=Re.yref,Ze=mc.getFromId(sr,hr),cr=mc.getFromId(sr,dr),Lr="";hr!=="paper"&&!Ze.autorange&&(Lr+=hr),dr!=="paper"&&!cr.autorange&&(Lr+=dr),Qm.setClipUrl(fr,Lr?"clip"+sr._fullLayout._uid+Lr:null,sr)}}function aL(e,r,t){return e.replace(gc.segmentRE,function(a){var n=0,i=a.charAt(0),o=gc.paramIsX[i],l=gc.paramIsY[i],s=gc.numParams[i],u=a.slice(1).replace(gc.paramRE,function(f){return n>=s||(o[n]?f=r(f):l[n]&&(f=t(f)),n++),f});return i+u})}function nle(e,r){if(eg(e)){var t=r.node(),a=+t.getAttribute("data-index");if(a>=0){if(a===e._fullLayout._activeShapeIndex){nL(e);return}e._fullLayout._activeShapeIndex=a,e._fullLayout._deactivateShape=nL,jb(e)}}}function nL(e){if(eg(e)){var r=e._fullLayout._activeShapeIndex;r>=0&&(oL(e),delete e._fullLayout._activeShapeIndex,jb(e))}}function ile(e){if(eg(e)){oL(e);var r=e._fullLayout._activeShapeIndex,t=(e.layout||{}).shapes||[];if(r{"use strict";var u2=mr()._,ole=function(e){return{DIALOG_TITLE:u2(e,"Share chart"),DIALOG_MESSAGE_CLOUD:u2(e,"This chart will be uploaded to {Plotly Cloud} to create a sharing link. Only you can see it until you change its visibility."),DIALOG_MESSAGE_CLOUD_ACCOUNT:u2(e,"If you don't have a Plotly Cloud account yet, you'll have a chance to create one."),DIALOG_MESSAGE_OTHER:u2(e,"This chart will be sent to {serverUrl}."),DIALOG_CANCEL:u2(e,"Cancel"),DIALOG_CONFIRM:u2(e,"Share")}};fL.exports=ole});var dL=le((Lbe,hL)=>{"use strict";var vL=Ft(),{dfltConfig:lle}=d0(),sle=cL(),ule=(e,r,t,a,n)=>{let i=sle(e),o=r.append("div").classed("plotly-cloud-dialog-box",!0);if(o.append("div").classed("plotly-cloud-dialog-title",!0).text(i.DIALOG_TITLE),t===lle.plotlyServerURL){let s=o.append("div").classed("plotly-cloud-dialog-message",!0),u=new URL(t).origin,f=i.DIALOG_MESSAGE_CLOUD.split(/(\{|\})/),c=f[0],h=f[2],d=f[4];s.append("span").text(c),s.append("a").classed("plotly-cloud-dialog-message--hostname",!0).attr("href",u).attr("target","_blank").text(h),s.append("span").text(d),s.append("div").classed("plotly-cloud-dialog-message--account",!0).text(i.DIALOG_MESSAGE_CLOUD_ACCOUNT)}else{let s=new URL(t),u=s.hostname,f=s.origin,c=i.DIALOG_MESSAGE_OTHER.split(/(\{|\})/),h=c[0],d=c[4],m=o.append("div").classed("plotly-cloud-dialog-message",!0);m.append("span").text(h),m.append("a").classed("plotly-cloud-dialog-message--hostname",!0).attr("href",f).attr("target","_blank").text(u),m.append("span").text(d)}let l=o.append("div").classed("plotly-cloud-dialog-buttons",!0);l.append("button").classed("plotly-cloud-dialog-btn",!0).classed("plotly-cloud-dialog-btn--cancel",!0).text(i.DIALOG_CANCEL).on("click",n),l.append("button").classed("plotly-cloud-dialog-btn",!0).classed("plotly-cloud-dialog-btn--confirm",!0).text(i.DIALOG_CONFIRM).on("click",a)},fle=(e,r,t)=>{let a=vL.select(e._fullLayout._paperdiv.node());a.selectAll(".plotly-cloud-dialog").remove();let n=a.append("div").classed("plotly-cloud-dialog",!0),i=()=>{n.remove(),document.removeEventListener("keydown",o)},o=l=>{(l.key==="Escape"||l.keyCode===27)&&i()};document.addEventListener("keydown",o),n.on("click",()=>{vL.event.target===n.node()&&i()}),ule(e,n,r,()=>{i(),t()},i)};hL.exports=fle});var $b=le((qbe,xL)=>{"use strict";var To=_t(),cle=Sn(),mL=Cn(),Qt=Hm(),vle=rg().eraseActiveShape,hle=dL(),f2=mr(),Bt=f2._,Kt={};xL.exports=Kt;Kt.toImage={name:"toImage",title:function(e){var r=e._context.toImageButtonOptions||{},t=r.format||"png";return t==="png"?Bt(e,"Download plot as a PNG"):Bt(e,"Download plot")},icon:Qt.camera,click:function(e){var r=e._context.toImageButtonOptions,t={format:r.format||"png"};f2.notifier(Bt(e,"Preparing image - this may take a few seconds"),"long",e),["filename","width","height","scale"].forEach(function(a){a in r&&(t[a]=r[a])}),To.call("downloadImage",e,t).then(function(a){f2.notifier(Bt(e,"Image download succeeded")+" - "+a,"long",e)}).catch(function(){f2.notifier(Bt(e,"Sorry, there was a problem downloading your image!"),"long",e)})}};Kt.downloadJson={name:"downloadJson",title:function(e){return Bt(e,"Download plot as JSON")},icon:Qt.curlybraces,click:function(e){To.call("downloadImage",e,{format:"full-json"}).then(function(r){f2.notifier(Bt(e,"JSON download succeeded")+" - "+r,"long",e)}).catch(function(){f2.notifier(Bt(e,"Sorry, there was a problem downloading your JSON file!"),"long",e)})}};Kt.sendChartToCloud={name:"sendChartToCloud",title:function(e){return Bt(e,"Share chart...")},icon:Qt.cloudupload,click:function(e){var r=(window.PLOTLYENV||{}).BASE_URL||e._context.plotlyServerURL;if(!r){console.error("No destination URL provided (plotlyServerURL is empty)");return}var t;try{t=new URL(r)}catch(n){console.error("Invalid plotlyServerURL: "+r);return}let a=["http:","https:"];if(!a.includes(t.protocol)){console.error(`Invalid protocol '${t.protocol}' in plotlyServerURL '${r}'. Must be one of: ${a.join(", ")}`);return}hle(e,r,function(){cle.sendDataToCloud(e,r)})}};Kt.zoom2d={name:"zoom2d",_cat:"zoom",title:function(e){return Bt(e,"Zoom")},attr:"dragmode",val:"zoom",icon:Qt.zoombox,click:Ai};Kt.pan2d={name:"pan2d",_cat:"pan",title:function(e){return Bt(e,"Pan")},attr:"dragmode",val:"pan",icon:Qt.pan,click:Ai};Kt.select2d={name:"select2d",_cat:"select",title:function(e){return Bt(e,"Box Select")},attr:"dragmode",val:"select",icon:Qt.selectbox,click:Ai};Kt.lasso2d={name:"lasso2d",_cat:"lasso",title:function(e){return Bt(e,"Lasso Select")},attr:"dragmode",val:"lasso",icon:Qt.lasso,click:Ai};Kt.drawclosedpath={name:"drawclosedpath",title:function(e){return Bt(e,"Draw closed freeform")},attr:"dragmode",val:"drawclosedpath",icon:Qt.drawclosedpath,click:Ai};Kt.drawopenpath={name:"drawopenpath",title:function(e){return Bt(e,"Draw open freeform")},attr:"dragmode",val:"drawopenpath",icon:Qt.drawopenpath,click:Ai};Kt.drawline={name:"drawline",title:function(e){return Bt(e,"Draw line")},attr:"dragmode",val:"drawline",icon:Qt.drawline,click:Ai};Kt.drawrect={name:"drawrect",title:function(e){return Bt(e,"Draw rectangle")},attr:"dragmode",val:"drawrect",icon:Qt.drawrect,click:Ai};Kt.drawcircle={name:"drawcircle",title:function(e){return Bt(e,"Draw circle")},attr:"dragmode",val:"drawcircle",icon:Qt.drawcircle,click:Ai};Kt.eraseshape={name:"eraseshape",title:function(e){return Bt(e,"Erase active shape")},icon:Qt.eraseshape,click:vle};Kt.zoomIn2d={name:"zoomIn2d",_cat:"zoomin",title:function(e){return Bt(e,"Zoom in")},attr:"zoom",val:"in",icon:Qt.zoom_plus,click:Ai};Kt.zoomOut2d={name:"zoomOut2d",_cat:"zoomout",title:function(e){return Bt(e,"Zoom out")},attr:"zoom",val:"out",icon:Qt.zoom_minus,click:Ai};Kt.autoScale2d={name:"autoScale2d",_cat:"autoscale",title:function(e){return Bt(e,"Autoscale")},attr:"zoom",val:"auto",icon:Qt.autoscale,click:Ai};Kt.resetScale2d={name:"resetScale2d",_cat:"resetscale",title:function(e){return Bt(e,"Reset axes")},attr:"zoom",val:"reset",icon:Qt.home,click:Ai};Kt.hoverClosestCartesian={name:"hoverClosestCartesian",_cat:"hoverclosest",title:function(e){return Bt(e,"Show closest data on hover")},attr:"hovermode",val:"closest",icon:Qt.tooltip_basic,gravity:"ne",click:Ai};Kt.hoverCompareCartesian={name:"hoverCompareCartesian",_cat:"hoverCompare",title:function(e){return Bt(e,"Compare data on hover")},attr:"hovermode",val:function(e){return e._fullLayout._isHoriz?"y":"x"},icon:Qt.tooltip_compare,gravity:"ne",click:Ai};function Ai(e,r){var t=r.currentTarget,a=t.getAttribute("data-attr"),n=t.getAttribute("data-val")||!0,i=e._fullLayout,o={},l=mL.list(e,null,!0),s=i._cartesianSpikesEnabled,u,f;if(a==="zoom"){var c=n==="in"?.5:2,h=(1+c)/2,d=(1-c)/2,m,p;for(f=0;f-T),[p,y]=c.invert(f.midPt),{minscale:b}=u.projection,C=(l=u.projection.maxscale)!=null?l:1/0,x=Math.min(b,C),_=Math.max(b,C),M=n==="in"?pL*h:1/pL*h;M>_?M=_:M{"use strict";var wL=$b(),gle=Object.keys(wL),AL=["drawline","drawopenpath","drawclosedpath","drawcircle","drawrect","eraseshape"],ML=["v1hovermode","hoverclosest","hovercompare","togglehover","togglespikelines"].concat(AL,["downloadJson"]),c2=[],yle=function(e){if(ML.indexOf(e._cat||e.name)===-1){var r=e.name,t=(e._cat||e.name).toLowerCase();c2.indexOf(r)===-1&&c2.push(r),c2.indexOf(t)===-1&&c2.push(t)}};gle.forEach(function(e){yle(wL[e])});c2.sort();TL.exports={DRAW_MODES:AL,backButtons:ML,foreButtons:c2}});var Qb={};Ha(Qb,{default:()=>_le});var Kb,ble,_le,e7=Ia(()=>{"use strict";Kb=q_(Jb()),ble={editType:"modebar",orientation:{valType:"enumerated",values:["v","h"],dflt:"h",editType:"modebar",description:"Sets the orientation of the modebar."},bgcolor:{valType:"color",editType:"modebar",description:"Sets the background color of the modebar."},color:{valType:"color",editType:"modebar",description:"Sets the color of the icons in the modebar."},activecolor:{valType:"color",editType:"modebar",description:"Sets the color of the active or hovered on icons in the modebar."},uirevision:{valType:"any",editType:"none",description:["Controls persistence of user-driven changes related to the modebar,","including `hovermode`, `dragmode`, and `showspikes` at both the","root level and inside subplots. Defaults to `layout.uirevision`."].join(" ")},add:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar",description:["Determines which predefined modebar buttons to add.","Please note that these buttons will only be shown if they are","compatible with all trace types used in a graph.","Similar to `config.modeBarButtonsToAdd` option.",`This may include *${Kb.default.backButtons.join("*, *")}*.`].join(" ")},remove:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar",description:["Determines which predefined modebar buttons to remove.","Similar to `config.modeBarButtonsToRemove` option.",`This may include *${Kb.default.foreButtons.join("*, *")}*.`].join(" ")}},_le=ble});var CL=le((Rbe,kL)=>{"use strict";var xle=mr(),oh=qt(),wle=ka(),Ale=(e7(),Tr(Qb)).default;kL.exports=function(r,t){var a=r.modebar||{},n=wle.newContainer(t,"modebar");function i(l,s){return xle.coerce(a,n,Ale,l,s)}i("orientation"),i("bgcolor",oh.addOpacity(t.paper_bgcolor,.5));var o=oh.contrast(oh.rgb(t.modebar.bgcolor));i("color",oh.addOpacity(o,.3)),i("activecolor",oh.addOpacity(o,.7)),i("uirevision",t.uirevision),i("add"),i("remove")}});var EL=le((zbe,FL)=>{"use strict";var r7=Ft(),Mle=Wt(),ng=mr(),SL=Hm(),Tle=Q2().version,kle=new DOMParser;function DL(e){this.container=e.container,this.element=document.createElement("div"),this.update(e.graphInfo,e.buttons),this.container.appendChild(this.element)}var Os=DL.prototype;Os.update=function(e,r){this.graphInfo=e;var t=this.graphInfo._context,a=this.graphInfo._fullLayout,n="modebar-"+a._uid;this.element.setAttribute("id",n),this.element.setAttribute("role","toolbar"),this._uid=n,this.element.className="modebar modebar--custom",t.displayModeBar==="hover"&&(this.element.className+=" modebar--hover ease-bg"),a.modebar.orientation==="v"&&(this.element.className+=" vertical",r=r.reverse());var i=a.modebar,o="#"+n+" .modebar-group";document.querySelectorAll(o).forEach(function(c){c.style.backgroundColor=i.bgcolor});var l=!this.hasButtons(r),s=this.hasLogo!==t.displaylogo,u=this.locale!==t.locale;if(this.locale=t.locale,(l||s||u)&&(this.removeAllButtons(),this.updateButtons(r),t.watermark||t.displaylogo)){var f=this.getLogo();t.watermark&&(f.className=f.className+" watermark"),a.modebar.orientation==="v"?this.element.insertBefore(f,this.element.childNodes[0]):this.element.appendChild(f),this.hasLogo=!0}this.updateActiveButton(),ng.setStyleOnHover("#"+n+" .modebar-btn",".active",".icon path","fill: "+i.activecolor,"fill: "+i.color,this.element)};Os.updateButtons=function(e){var r=this;this.buttons=e,this.buttonElements=[],this.buttonsNames=[],this.buttons.forEach(function(t){var a=r.createGroup();t.forEach(function(n){var i=n.name;if(!i)throw new Error("must provide button 'name' in button config");if(r.buttonsNames.indexOf(i)!==-1)throw new Error("button name '"+i+"' is taken");r.buttonsNames.push(i);var o=r.createButton(n);r.buttonElements.push(o),a.appendChild(o)}),r.element.appendChild(a)})};Os.createGroup=function(){var e=document.createElement("div");e.className="modebar-group";var r=this.graphInfo._fullLayout.modebar;return e.style.backgroundColor=r.bgcolor,e};Os.createButton=function(e){var r=this,t=document.createElement("button");t.setAttribute("type","button"),t.setAttribute("rel","tooltip"),t.className="modebar-btn";var a=e.title;a===void 0?a=e.name:typeof a=="function"&&(a=a(this.graphInfo)),(a||a===0)&&(t.setAttribute("data-title",a),t.setAttribute("aria-label",a)),e.attr!==void 0&&t.setAttribute("data-attr",e.attr);var n=e.val;n!==void 0&&(typeof n=="function"&&(n=n(this.graphInfo)),t.setAttribute("data-val",n));var i=e.click;if(typeof i!="function")throw new Error("must provide button 'click' function in button config");t.addEventListener("click",function(l){e.click(r.graphInfo,l),r.updateActiveButton(l.currentTarget)}),t.setAttribute("data-toggle",e.toggle||!1),e.toggle&&r7.select(t).classed("active",!0);var o=e.icon;return typeof o=="function"?t.appendChild(o()):t.appendChild(this.createIcon(o||SL.question)),t.setAttribute("data-gravity",e.gravity||"n"),t};Os.createIcon=function(e){var r=Mle(e.height)?Number(e.height):e.ascent-e.descent,t="http://www.w3.org/2000/svg",a;if(e.path){a=document.createElementNS(t,"svg"),a.setAttribute("viewBox",[0,0,e.width,r].join(" ")),a.setAttribute("class","icon");var n=document.createElementNS(t,"path");n.setAttribute("d",e.path),e.transform?n.setAttribute("transform",e.transform):e.ascent!==void 0&&n.setAttribute("transform","matrix(1 0 0 -1 0 "+e.ascent+")"),a.appendChild(n)}if(e.svg){var i=kle.parseFromString(e.svg,"application/xml");a=i.childNodes[0]}return a.setAttribute("height","1em"),a.setAttribute("width","1em"),a};Os.updateActiveButton=function(e){var r=this.graphInfo._fullLayout,t=e!==void 0?e.getAttribute("data-attr"):null;this.buttonElements.forEach(function(a){var n=a.getAttribute("data-val")||!0,i=a.getAttribute("data-attr"),o=a.getAttribute("data-toggle")==="true",l=r7.select(a),s=function(c,h){var d=r.modebar,m=c.querySelector(".icon path");m&&(h||c.matches(":hover")?m.style.fill=d.activecolor:m.style.fill=d.color)};if(o){if(i===t){var u=!l.classed("active");l.classed("active",u),s(a,u)}}else{var f=i===null?i:ng.nestedProperty(r,i).get();l.classed("active",f===n),s(a,f===n)}})};Os.hasButtons=function(e){var r=this.buttons;if(!r||e.length!==r.length)return!1;for(var t=0;t{"use strict";var Dle=Cn(),LL=_i(),t7=_t(),Fle=Pu().isUnifiedHover,Ele=EL(),ig=$b(),Lle=Jb().DRAW_MODES,qle=mr().extendDeep;qL.exports=function(r){var t=r._fullLayout,a=r._context,n=t._modeBar;if(!a.displayModeBar&&!a.watermark){n&&(n.destroy(),delete t._modeBar);return}if(!Array.isArray(a.modeBarButtonsToRemove))throw new Error(["*modeBarButtonsToRemove* configuration options","must be an array."].join(" "));if(!Array.isArray(a.modeBarButtonsToAdd))throw new Error(["*modeBarButtonsToAdd* configuration options","must be an array."].join(" "));var i=a.modeBarButtons,o;Array.isArray(i)&&i.length?o=Ile(i):!a.displayModeBar&&a.watermark?o=[]:o=Ple(r),n?n.update(r,o):t._modeBar=Ele(r,o)};function Ple(e){var r=e._fullLayout,t=e._fullData,a=e._context;function n(re,te){if(typeof te=="string"){if(te.toLowerCase()===re.toLowerCase())return!0}else{var ie=te.name,ce=te._cat||te.name;if(ie===re||ce===re.toLowerCase())return!0}return!1}var i=r.modebar.add;typeof i=="string"&&(i=[i]);var o=r.modebar.remove;typeof o=="string"&&(o=[o]);var l=a.modeBarButtonsToAdd.concat(i.filter(function(re){for(var te=0;te1?(P=["toggleHover"],z=["resetViews"]):c?(E=["zoomInGeo","zoomOutGeo"],P=["hoverClosestGeo"],z=["resetGeo"]):f?(P=["hoverClosest3d"],z=["resetCameraDefault3d","resetCameraLastSave3d"]):p?(E=["zoomInMap","zoomOutMap"],P=["toggleHover"],z=["resetViewMap"]):h?P=["hoverClosestPie"]:C?(P=["hoverClosestCartesian","hoverCompareCartesian"],z=["resetViewSankey"]):P=["toggleHover"],u&&P.push("toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"),(Nle(t)||_)&&(P=[]),u&&!x&&(E=["zoomIn2d","zoomOut2d","autoScale2d"],z[0]!=="resetViews"&&(z=["resetScale2d"])),f?B=["zoom3d","pan3d","orbitRotation","tableRotation"]:u&&!x||m?B=["zoom2d","pan2d"]:p||c?B=["pan2d"]:y&&(B=["zoom2d"]),zle(t)&&B.push("select2d","lasso2d");var X=[],I=function(re){X.indexOf(re)===-1&&P.indexOf(re)!==-1&&X.push(re)};if(Array.isArray(l)){for(var V=[],H=0;H{"use strict";RL.exports={moduleType:"component",name:"modebar",layoutAttributes:(e7(),Tr(Qb)).default,supplyLayoutDefaults:CL(),manage:PL()}});var n7=le((Ibe,zL)=>{"use strict";var Hle=(li(),Tr(oi)).FROM_BL;zL.exports=function(r,t,a){a===void 0&&(a=Hle[r.constraintoward||"center"]);var n=[r.r2l(r.range[0]),r.r2l(r.range[1])],i=n[0]+(n[1]-n[0])*a;r.range=r._input.range=[r.l2r(i+(n[0]-i)*t),r.l2r(i+(n[1]-i)*t)],r.setScale()}});var sh=le(lh=>{"use strict";var yc=mr(),i7=L0(),Vl=Cn().id2name,Ole=Ol(),NL=n7(),Ule=vm(),Gle=(Ya(),Tr($a)).ALMOST_EQUAL,Yle=(li(),Tr(oi)).FROM_BL;lh.handleDefaults=function(e,r,t){var a=t.axIds,n=t.axHasImage,i=r._axisConstraintGroups=[],o=r._axisMatchGroups=[],l,s,u,f,c,h,d,m;for(l=0;li?t.slice(i):a.slice(n))+o}function Xle(e,r){for(var t=r._size,a=t.h/t.w,n={},i=Object.keys(e),o=0;oGle*m&&!C)){for(i=0;iX&&iez&&(z=ie);var Me=(z-P)/(2*B);c/=Me,P=s.l2r(P),z=s.l2r(z),s.range=s._input.range=T{"use strict";var lg=Ft(),Mi=_t(),ko=Sn(),Ko=mr(),s7=si(),u7=Im(),uh=qt(),v2=ha(),OL=Uv(),XL=a7(),fh=Oa(),Bu=(li(),Tr(oi)),jL=sh(),jle=jL.enforce,Wle=jL.clean,UL=L0().doAutoRange,WL="start",Zle="middle",ZL="end",$le=(Nn(),Tr(zn)).zindexSeparator;In.layoutStyles=function(e){return Ko.syncOrAsync([ko.doAutoMargin,Kle],e)};function Jle(e,r,t){for(var a=0;a=e[1]||n[1]<=e[0])&&i[0]r[0])return!0}return!1}function Kle(e){var r=e._fullLayout,t=r._size,a=t.p,n=fh.list(e,"",!0),i,o,l,s,u,f;if(r._paperdiv.style({width:e._context.responsive&&r.autosize&&!e._context._hasZeroWidth&&!e.layout.width?"100%":r.width+"px",height:e._context.responsive&&r.autosize&&!e._context._hasZeroHeight&&!e.layout.height?"100%":r.height+"px"}).selectAll(".main-svg").call(v2.setSize,r.width,r.height),e._context.setBackground(e,r.paper_bgcolor),In.drawMainTitle(e),XL.manage(e),!r._has("cartesian"))return ko.previousPromises(e);function c(K,J,ue){var _e=K._lw/2;if(K._id.charAt(0)==="x"){if(J){if(ue==="top")return J._offset-a-_e}else return t.t+t.h*(1-(K.position||0))+_e%1;return J._offset+J._length+a+_e}if(J){if(ue==="right")return J._offset+J._length+a+_e}else return t.l+t.w*(K.position||0)+_e%1;return J._offset-a-_e}for(i=0;i0){tse(e,i,u,s),l.attr({x:o,y:i,"text-anchor":a,dy:VL(r.yanchor)}).call(s7.positionText,o,i);var f=(r.text.match(s7.BR_TAG_ALL)||[]).length;if(f){var c=Bu.LINE_SPACING*f+Bu.MID_SHIFT;r.y===0&&(c=-c),l.selectAll(".line").each(function(){var y=+this.getAttribute("dy").slice(0,-2)-c+"em";this.setAttribute("dy",y)})}var h=lg.select(e).selectAll(".gtitle-subtitle");if(h.node()){var d=l.node().getBBox(),m=d.y+d.height,p=m+OL.SUBTITLE_PADDING_EM*r.subtitle.font.size;h.attr({x:o,y:p,"text-anchor":a,dy:VL(r.yanchor)}).call(s7.positionText,o,p)}}}};function Qle(e,r,t,a,n){var i=r.yref==="paper"?e._fullLayout._size.h:e._fullLayout.height,o=Ko.isTopAnchor(r)?a:a-n,l=t==="b"?i-o:o;return Ko.isTopAnchor(r)&&t==="t"||Ko.isBottomAnchor(r)&&t==="b"?!1:l.5?"t":"b",o=e._fullLayout.margin[i],l=0;return r.yref==="paper"?l=t+r.pad.t+r.pad.b:r.yref==="container"&&(l=ese(i,a,n,e._fullLayout.height,t)+r.pad.t+r.pad.b),l>o?l:0}function tse(e,r,t,a){var n="title.automargin",i=e._fullLayout.title,o=i.y>.5?"t":"b",l={x:i.x,y:i.y,t:0,b:0},s={};i.yref==="paper"&&Qle(e,i,o,r,a)?l[o]=t:i.yref==="container"&&(s[o]=t,e._fullLayout._reservedMargin[n]=s),ko.allowAutoMargin(e,n),ko.autoMargin(e,n,l)}function ase(e,r){var t=e.title,a=e._size,n=0;return r===WL?n=t.pad.l:r===ZL&&(n=-t.pad.r),t.xref==="paper"?a.l+a.w*t.x+n:e.width*t.x+n}function nse(e,r){var t=e.title,a=e._size,n=0;return r==="0em"||!r?n=-t.pad.b:r===Bu.CAP_SHIFT+"em"&&(n=t.pad.t),t.y==="auto"?a.t/2:t.yref==="paper"?a.t+a.h-a.h*t.y+n:e.height-e.height*t.y+n}function VL(e){return e==="top"?Bu.CAP_SHIFT+.3+"em":e==="bottom"?"-0.3em":Bu.MID_SHIFT+"em"}function ise(e){var r=e.title,t=Zle;return Ko.isRightAnchor(r)?t=ZL:Ko.isLeftAnchor(r)&&(t=WL),t}function ose(e){var r=e.title,t="0em";return Ko.isTopAnchor(r)?t=Bu.CAP_SHIFT+"em":Ko.isMiddleAnchor(r)&&(t=Bu.MID_SHIFT+"em"),t}In.doTraceStyle=function(e){var r=e.calcdata,t=[],a;for(a=0;a{"use strict";var lse=z0().readPaths,sse=$m(),$L=T0().clearOutlineControllers,f7=qt(),JL=ha(),use=ka().arrayEditor,KL=I0(),fse=KL.getPathString;eq.exports={draw:ug,drawOne:QL,activateLastSelection:hse};function ug(e){var r=e._fullLayout;$L(e),r._selectionLayer.selectAll("path").remove();for(var t in r._plots){var a=r._plots[t].selectionLayer;a&&a.selectAll("path").remove()}for(var n=0;n=0;y--){var b=o.append("path").attr(s).style("opacity",y?.1:u).call(f7.stroke,c).call(f7.fill,f).call(JL.dashLine,y?"solid":d,y?4+h:h);if(cse(b,e,a),m){var C=use(e.layout,"selections",a);b.style({cursor:"move"});var x={element:b.node(),plotinfo:n,gd:e,editHelpers:C,isActiveSelection:!0},_=lse(l,e);sse(_,b,x)}else b.style("pointer-events",y?"all":"none");p[y]=b}var M=p[0],T=p[1];T.node().addEventListener("click",function(){return vse(e,M)})}}function cse(e,r,t){var a=t.xref+t.yref;JL.setClipUrl(e,"clip"+r._fullLayout._uid+a,r)}function vse(e,r){if(fg(e)){var t=r.node(),a=+t.getAttribute("data-index");if(a>=0){if(a===e._fullLayout._activeSelectionIndex){c7(e);return}e._fullLayout._activeSelectionIndex=a,e._fullLayout._deactivateSelection=c7,ug(e)}}}function hse(e){if(fg(e)){var r=e._fullLayout.selections.length-1;e._fullLayout._activeSelectionIndex=r,e._fullLayout._deactivateSelection=c7,ug(e)}}function c7(e){if(fg(e)){var r=e._fullLayout._activeSelectionIndex;r>=0&&($L(e),delete e._fullLayout._activeSelectionIndex,ug(e))}}});var tq=le((Gbe,rq)=>{function dse(){var e,r=0,t=!1;function a(n,i){return e.list.push({type:n,data:i?JSON.parse(JSON.stringify(i)):void 0}),e}return e={list:[],segmentId:function(){return r++},checkIntersection:function(n,i){return a("check",{seg1:n,seg2:i})},segmentChop:function(n,i){return a("div_seg",{seg:n,pt:i}),a("chop",{seg:n,pt:i})},statusRemove:function(n){return a("pop_seg",{seg:n})},segmentUpdate:function(n){return a("seg_update",{seg:n})},segmentNew:function(n,i){return a("new_seg",{seg:n,primary:i})},segmentRemove:function(n){return a("rem_seg",{seg:n})},tempStatus:function(n,i,o){return a("temp_status",{seg:n,above:i,below:o})},rewind:function(n){return a("rewind",{seg:n})},status:function(n,i,o){return a("status",{seg:n,above:i,below:o})},vert:function(n){return n===t?e:(t=n,a("vert",{x:n}))},log:function(n){return typeof n!="string"&&(n=JSON.stringify(n,!1," ")),a("log",{txt:n})},reset:function(){return a("reset")},selected:function(n){return a("selected",{segs:n})},chainStart:function(n){return a("chain_start",{seg:n})},chainRemoveHead:function(n,i){return a("chain_rem_head",{index:n,pt:i})},chainRemoveTail:function(n,i){return a("chain_rem_tail",{index:n,pt:i})},chainNew:function(n,i){return a("chain_new",{pt1:n,pt2:i})},chainMatch:function(n){return a("chain_match",{index:n})},chainClose:function(n){return a("chain_close",{index:n})},chainAddHead:function(n,i){return a("chain_add_head",{index:n,pt:i})},chainAddTail:function(n,i){return a("chain_add_tail",{index:n,pt:i})},chainConnect:function(n,i){return a("chain_con",{index1:n,index2:i})},chainReverse:function(n){return a("chain_rev",{index:n})},chainJoin:function(n,i){return a("chain_join",{index1:n,index2:i})},done:function(){return a("done")}},e}rq.exports=dse});var nq=le((Ybe,aq)=>{function pse(e){typeof e!="number"&&(e=1e-10);var r={epsilon:function(t){return typeof t=="number"&&(e=t),e},pointAboveOrOnLine:function(t,a,n){var i=a[0],o=a[1],l=n[0],s=n[1],u=t[0],f=t[1];return(l-i)*(f-o)-(s-o)*(u-i)>=-e},pointBetween:function(t,a,n){var i=t[1]-a[1],o=n[0]-a[0],l=t[0]-a[0],s=n[1]-a[1],u=l*o+i*s;if(u-e)},pointsSameX:function(t,a){return Math.abs(t[0]-a[0])e!=l-i>e&&(o-f)*(i-c)/(l-c)+f-n>e&&(s=!s),o=f,l=c}return s}};return r}aq.exports=pse});var oq=le((Vbe,iq)=>{var mse={create:function(){var e={root:{root:!0,next:null},exists:function(r){return!(r===null||r===e.root)},isEmpty:function(){return e.root.next===null},getHead:function(){return e.root.next},insertBefore:function(r,t){for(var a=e.root,n=e.root.next;n!==null;){if(t(n)){r.prev=n.prev,r.next=n,n.prev.next=r,n.prev=r;return}a=n,n=n.next}a.next=r,r.prev=a,r.next=null},findTransition:function(r){for(var t=e.root,a=e.root.next;a!==null&&!r(a);)t=a,a=a.next;return{before:t===e.root?null:t,after:a,insert:function(n){return n.prev=t,n.next=a,t.next=n,a!==null&&(a.prev=n),n}}}};return e},node:function(e){return e.prev=null,e.next=null,e.remove=function(){e.prev.next=e.next,e.next&&(e.next.prev=e.prev),e.prev=null,e.next=null},e}};iq.exports=mse});var sq=le((Xbe,lq)=>{var ch=oq();function gse(e,r,t){function a(m,p){return{id:t?t.segmentId():-1,start:m,end:p,myFill:{above:null,below:null},otherFill:null}}function n(m,p,y){return{id:t?t.segmentId():-1,start:m,end:p,myFill:{above:y.myFill.above,below:y.myFill.below},otherFill:null}}var i=ch.create();function o(m,p,y,b,C,x){var _=r.pointsCompare(p,C);return _!==0?_:r.pointsSame(y,x)?0:m!==b?m?1:-1:r.pointAboveOrOnLine(y,b?C:x,b?x:C)?1:-1}function l(m,p){i.insertBefore(m,function(y){var b=o(m.isStart,m.pt,p,y.isStart,y.pt,y.other.pt);return b<0})}function s(m,p){var y=ch.node({isStart:!0,pt:m.start,seg:m,primary:p,other:null,status:null});return l(y,m.end),y}function u(m,p,y){var b=ch.node({isStart:!1,pt:p.end,seg:p,primary:y,other:m,status:null});m.other=b,l(b,m.pt)}function f(m,p){var y=s(m,p);return u(y,m,p),y}function c(m,p){t&&t.segmentChop(m.seg,p),m.other.remove(),m.seg.end=p,m.other.pt=p,l(m.other,m.pt)}function h(m,p){var y=n(p,m.seg.end,m.seg);return c(m,p),f(y,m.primary)}function d(m,p){var y=ch.create();function b(H,Q){var oe=H.seg.start,re=H.seg.end,te=Q.seg.start,ie=Q.seg.end;return r.pointsCollinear(oe,te,ie)?r.pointsCollinear(re,te,ie)||r.pointAboveOrOnLine(re,te,ie)?1:-1:r.pointAboveOrOnLine(oe,te,ie)?1:-1}function C(H){return y.findTransition(function(Q){var oe=b(H,Q.ev);return oe>0})}function x(H,Q){var oe=H.seg,re=Q.seg,te=oe.start,ie=oe.end,ce=re.start,Me=re.end;t&&t.checkIntersection(oe,re);var De=r.linesIntersect(te,ie,ce,Me);if(De===!1){if(!r.pointsCollinear(te,ie,ce)||r.pointsSame(te,Me)||r.pointsSame(ie,ce))return!1;var Ie=r.pointsSame(te,ce),Ue=r.pointsSame(ie,Me);if(Ie&&Ue)return Q;var ke=!Ie&&r.pointBetween(te,ce,Me),je=!Ue&&r.pointBetween(ie,ce,Me);if(Ie)return je?h(Q,ie):h(H,Me),Q;ke&&(Ue||(je?h(Q,ie):h(H,Me)),h(Q,te))}else De.alongA===0&&(De.alongB===-1?h(H,ce):De.alongB===0?h(H,De.pt):De.alongB===1&&h(H,Me)),De.alongB===0&&(De.alongA===-1?h(Q,te):De.alongA===0?h(Q,De.pt):De.alongA===1&&h(Q,ie));return!1}for(var _=[];!i.isEmpty();){var M=i.getHead();if(t&&t.vert(M.pt[0]),M.isStart){let H=function(){if(A){var Q=x(M,A);if(Q)return Q}return E?x(M,E):!1};var V=H;t&&t.segmentNew(M.seg,M.primary);var T=C(M),A=T.before?T.before.ev:null,E=T.after?T.after.ev:null;t&&t.tempStatus(M.seg,A?A.seg:!1,E?E.seg:!1);var P=H();if(P){if(e){var z;M.seg.myFill.below===null?z=!0:z=M.seg.myFill.above!==M.seg.myFill.below,z&&(P.seg.myFill.above=!P.seg.myFill.above)}else P.seg.otherFill=M.seg.myFill;t&&t.segmentUpdate(P.seg),M.other.remove(),M.remove()}if(i.getHead()!==M){t&&t.rewind(M.seg);continue}if(e){var z;M.seg.myFill.below===null?z=!0:z=M.seg.myFill.above!==M.seg.myFill.below,E?M.seg.myFill.below=E.seg.myFill.above:M.seg.myFill.below=m,z?M.seg.myFill.above=!M.seg.myFill.below:M.seg.myFill.above=M.seg.myFill.below}else if(M.seg.otherFill===null){var B;E?M.primary===E.primary?B=E.seg.otherFill.above:B=E.seg.myFill.above:B=M.primary?p:m,M.seg.otherFill={above:B,below:B}}t&&t.status(M.seg,A?A.seg:!1,E?E.seg:!1),M.other.status=T.insert(ch.node({ev:M}))}else{var X=M.status;if(X===null)throw new Error("PolyBool: Zero-length segment detected; your epsilon is probably too small or too large");if(y.exists(X.prev)&&y.exists(X.next)&&x(X.prev.ev,X.next.ev),t&&t.statusRemove(X.ev.seg),X.remove(),!M.primary){var I=M.seg.myFill;M.seg.myFill=M.seg.otherFill,M.seg.otherFill=I}_.push(M.seg)}i.getHead().remove()}return t&&t.done(),_}return e?{addRegion:function(m){for(var p,y=m[m.length-1],b=0;b{function yse(e,r,t){var a=[],n=[];return e.forEach(function(i){var o=i.start,l=i.end;if(r.pointsSame(o,l)){console.warn("PolyBool: Warning: Zero-length segment detected; your epsilon is probably too small or too large");return}t&&t.chainStart(i);var s={index:0,matches_head:!1,matches_pt1:!1},u={index:0,matches_head:!1,matches_pt1:!1},f=s;function c(V,H,Q){return f.index=V,f.matches_head=H,f.matches_pt1=Q,f===s?(f=u,!1):(f=null,!0)}for(var h=0;h{function vh(e,r,t){var a=[];return e.forEach(function(n){var i=(n.myFill.above?8:0)+(n.myFill.below?4:0)+(n.otherFill&&n.otherFill.above?2:0)+(n.otherFill&&n.otherFill.below?1:0);r[i]!==0&&a.push({id:t?t.segmentId():-1,start:n.start,end:n.end,myFill:{above:r[i]===1,below:r[i]===2},otherFill:null})}),t&&t.selected(a),a}var bse={union:function(e,r){return vh(e,[0,2,1,0,2,2,0,0,1,0,1,0,0,0,0,0],r)},intersect:function(e,r){return vh(e,[0,0,0,0,0,2,0,2,0,0,1,1,0,2,1,0],r)},difference:function(e,r){return vh(e,[0,0,0,0,2,0,2,0,1,1,0,0,0,1,2,0],r)},differenceRev:function(e,r){return vh(e,[0,2,1,0,0,0,1,1,0,2,0,2,0,0,0,0],r)},xor:function(e,r){return vh(e,[0,2,1,0,2,0,0,1,1,0,0,2,0,1,2,0],r)}};cq.exports=bse});var dq=le((Zbe,hq)=>{var _se={toPolygon:function(e,r){function t(i){if(i.length<=0)return e.segments({inverted:!1,regions:[]});function o(u){var f=u.slice(0,u.length-1);return e.segments({inverted:!1,regions:[f]})}for(var l=o(i[0]),s=1;s{var xse=tq(),wse=nq(),pq=sq(),Ase=fq(),hh=vq(),mq=dq(),Qo=!1,dh=wse(),ao;ao={buildLog:function(e){return e===!0?Qo=xse():e===!1&&(Qo=!1),Qo===!1?!1:Qo.list},epsilon:function(e){return dh.epsilon(e)},segments:function(e){var r=pq(!0,dh,Qo);return e.regions.forEach(r.addRegion),{segments:r.calculate(e.inverted),inverted:e.inverted}},combine:function(e,r){var t=pq(!1,dh,Qo);return{combined:t.calculate(e.segments,e.inverted,r.segments,r.inverted),inverted1:e.inverted,inverted2:r.inverted}},selectUnion:function(e){return{segments:hh.union(e.combined,Qo),inverted:e.inverted1||e.inverted2}},selectIntersect:function(e){return{segments:hh.intersect(e.combined,Qo),inverted:e.inverted1&&e.inverted2}},selectDifference:function(e){return{segments:hh.difference(e.combined,Qo),inverted:e.inverted1&&!e.inverted2}},selectDifferenceRev:function(e){return{segments:hh.differenceRev(e.combined,Qo),inverted:!e.inverted1&&e.inverted2}},selectXor:function(e){return{segments:hh.xor(e.combined,Qo),inverted:e.inverted1!==e.inverted2}},polygon:function(e){return{regions:Ase(e.segments,dh,Qo),inverted:e.inverted}},polygonFromGeoJSON:function(e){return mq.toPolygon(ao,e)},polygonToGeoJSON:function(e){return mq.fromPolygon(ao,dh,e)},union:function(e,r){return ph(e,r,ao.selectUnion)},intersect:function(e,r){return ph(e,r,ao.selectIntersect)},difference:function(e,r){return ph(e,r,ao.selectDifference)},differenceRev:function(e,r){return ph(e,r,ao.selectDifferenceRev)},xor:function(e,r){return ph(e,r,ao.selectXor)}};function ph(e,r,t){var a=ao.segments(e),n=ao.segments(r),i=ao.combine(a,n),o=t(i);return ao.polygon(o)}typeof window=="object"&&(window.PolyBool=ao);gq.exports=ao});var _q=le((Jbe,bq)=>{bq.exports=function(r,t,a,n){var i=r[0],o=r[1],l=!1;a===void 0&&(a=0),n===void 0&&(n=t.length);for(var s=n-a,u=0,f=s-1;uo!=m>o&&i<(d-c)*(o-h)/(m-h)+c;p&&(l=!l)}return l}});var hg=le((Kbe,xq)=>{"use strict";var h7=hp().dot,cg=(Ya(),Tr($a)).BADNUM,vg=xq.exports={};vg.tester=function(r){var t=r.slice(),a=t[0][0],n=a,i=t[0][1],o=i,l;for((t[t.length-1][0]!==t[0][0]||t[t.length-1][1]!==t[0][1])&&t.push(t[0]),l=1;ln||b===cg||bo||p&&u(m))}function c(m,p){var y=m[0],b=m[1];if(y===cg||yn||b===cg||bo)return!1;var C=t.length,x=t[0][0],_=t[0][1],M=0,T,A,E,P,z;for(T=1;TMath.max(A,x)||b>Math.max(E,_)))if(bl||Math.abs(h7(c,u))>n)return!0;return!1};vg.filter=function(r,t){var a=[r[0]],n=0,i=0;function o(s){r.push(s);var u=a.length,f=n;a.splice(i+1);for(var c=f+1;c1){var l=r.pop();o(l)}return{addPt:o,raw:r,filtered:a}}});var wq={};Ha(wq,{BENDPX:()=>Mse,MINSELECT:()=>Tse,SELECTDELAY:()=>kse,SELECTID:()=>Cse});var Mse,Tse,kse,Cse,Aq=Ia(()=>{"use strict";Mse=1.5,Tse=12,kse=100,Cse="-select"});var Vq=le((Qbe,Yq)=>{"use strict";var Mq=yq(),Sse=_q(),yh=_t(),Dse=ha().dashStyle,mh=qt(),Fse=Yl(),Ese=Pu().makeEventData,Ah=o2(),Lse=Ah.freeMode,qse=Ah.rectMode,bh=Ah.drawMode,g7=Ah.openMode,y7=Ah.selectMode,Tq=I0(),kq=(nh(),Tr(ah)),Eq=$m(),Lq=T0().clearOutline,qq=z0(),d7=qq.handleEllipse,Pse=qq.readPaths,Rse=jm().newShapes,zse=Hb(),Nse=v7().activateLastSelection,pg=mr(),Bse=pg.sorterAsc,Pq=hg(),gh=Sp(),el=Cn().getFromId,Ise=Im(),Hse=sg().redrawReglTraces,mg=(Aq(),Tr(wq)),Us=mg.MINSELECT,Ose=Pq.filter,b7=Pq.tester,_7=Gm(),Cq=_7.p2r,Use=_7.axValue,Gse=_7.getTransform;function x7(e){return e.subplot!==void 0}function Yse(e,r,t,a,n){var i=!x7(a),o=Lse(n),l=qse(n),s=g7(n),u=bh(n),f=y7(n),c=n==="drawline",h=n==="drawcircle",d=c||h,m=a.gd,p=m._fullLayout,y=f&&p.newselection.mode==="immediate"&&i,b=p._zoomlayer,C=a.element.getBoundingClientRect(),x=a.plotinfo,_=Gse(x),M=r-C.left,T=t-C.top;p._calcInverseTransform(m);var A=pg.apply3DTransform(p._invTransform)(M,T);M=A[0],T=A[1];var E=p._invScaleX,P=p._invScaleY,z=M,B=T,X="M"+M+","+T,I=a.xaxes[0],V=a.yaxes[0],H=I._length,Q=V._length,oe=e.altKey&&!(bh(n)&&s),re,te,ie,ce,Me,De,Ie;zq(e,m,a),o&&(re=Ose([[M,T]],mg.BENDPX));var Ue=b.selectAll("path.select-outline-"+x.id).data([1]),ke=u?p.newshape:p.newselection;u&&(a.hasText=ke.label.text||ke.label.texttemplate);var je=u&&!s?ke.fillcolor:"rgba(0,0,0,0)",W=ke.line.color||(i?mh.contrast(m._fullLayout.plot_bgcolor):"#7f7f7f");Ue.enter().append("path").attr("class","select-outline select-outline-"+x.id).style({opacity:u?ke.opacity/2:1,"stroke-dasharray":Dse(ke.line.dash,ke.line.width),"stroke-width":ke.line.width+"px","shape-rendering":"crispEdges"}).call(mh.stroke,W).call(mh.fill,je).attr("fill-rule","evenodd").classed("cursor-move",!!u).attr("transform",_).attr("d",X+"Z");var ee=b.append("path").attr("class","zoombox-corners").style({fill:mh.background,stroke:mh.defaultLine,"stroke-width":1}).attr("transform",_).attr("d","M0,0Z");if(u&&a.hasText){var me=b.select(".label-temp");me.empty()&&(me=b.append("g").classed("label-temp",!0).classed("select-outline",!0).style({opacity:.8}))}var K=p._uid+mg.SELECTID,J=[],ue=gg(m,a.xaxes,a.yaxes,a.subplot);y&&!e.shiftKey&&(a._clearSubplotSelections=function(){if(i){var Ne=I._id,Je=V._id;Oq(m,Ne,Je,ue);for(var ar=(m.layout||{}).selections||[],tr=[],fr=!1,Re=0;Re=0){m._fullLayout._deactivateShape(m);return}if(!u){var ar=p.clickmode;gh.done(K).then(function(){if(gh.clear(K),Ne===2){for(Ue.remove(),Me=0;Me-1&&Rq(Je,m,a.xaxes,a.yaxes,a.subplot,a,Ue),ar==="event"&&wh(m,void 0);Fse.click(m,Je,x.id)}).catch(pg.error)}},a.doneFn=function(){ee.remove(),gh.done(K).then(function(){gh.clear(K),!y&&ce&&a.selectionDefs&&(ce.subtract=oe,a.selectionDefs.push(ce),a.mergedPolygons.length=0,[].push.apply(a.mergedPolygons,ie)),(y||u)&&_h(a,y),a.doneFnCompleted&&a.doneFnCompleted(J),f&&wh(m,Ie)}).catch(pg.error)}}function Rq(e,r,t,a,n,i,o){var l=r._hoverdata,s=r._fullLayout,u=s.clickmode,f=u.indexOf("event")>-1,c=[],h,d,m,p,y,b,C,x,_,M;if(Zse(l)){zq(e,r,i),h=gg(r,t,a,n);var T=$se(l,h),A=T.pointNumbers.length>0;if(A?Jse(h,T):Kse(h)&&(C=Dq(T))){for(o&&o.remove(),M=0;M=0}function Wse(e){return e._fullLayout._activeSelectionIndex>=0}function _h(e,r){var t=e.dragmode,a=e.plotinfo,n=e.gd;jse(n)&&n._fullLayout._deactivateShape(n),Wse(n)&&n._fullLayout._deactivateSelection(n);var i=n._fullLayout,o=i._zoomlayer,l=bh(t),s=y7(t);if(l||s){var u=o.selectAll(".select-outline-"+a.id);if(u&&n._fullLayout._outlining){var f;l&&(f=Rse(u,e)),f&&yh.call("_guiRelayout",n,{shapes:f});var c;s&&!x7(e)&&(c=zse(u,e)),c&&(n._fullLayout._noEmitSelectedAtStart=!0,yh.call("_guiRelayout",n,{selections:c}).then(function(){r&&Nse(n)})),n._fullLayout._outlining=!1}}a.selection={},a.selection.selectionDefs=e.selectionDefs=[],a.selection.mergedPolygons=e.mergedPolygons=[]}function Sq(e){return e._id}function gg(e,r,t,a){if(!e.calcdata)return[];var n=[],i=r.map(Sq),o=t.map(Sq),l,s,u;for(u=0;u0,i=n?a[0]:t;return r.selectedpoints?r.selectedpoints.indexOf(i)>-1:!1}function Jse(e,r){var t=[],a,n,i,o;for(o=0;o0&&t.push(a);if(t.length===1&&(i=t[0]===r.searchInfo,i&&(n=r.searchInfo.cd[0].trace,n.selectedpoints.length===r.pointNumbers.length))){for(o=0;o1||(r+=a.selectedpoints.length,r>1)))return!1;return r===1}function xh(e,r,t){var a,n;for(a=0;a-1&&r;if(!o&&r){var Ne=Fq(e,!0);if(Ne.length){var Je=Ne[0].xref,ar=Ne[0].yref;if(Je&&ar){var tr=Uq(Ne),fr=Gq([el(e,Je,"x"),el(e,ar,"y")]);fr(J,tr)}}e._fullLayout._noEmitSelectedAtStart?e._fullLayout._noEmitSelectedAtStart=!1:_e&&wh(e,J),h._reselect=!1}if(!o&&h._deselect){var Re=h._deselect;l=Re.xref,s=Re.yref,rue(l,s,f)||Oq(e,l,s,a),_e&&(J.points.length?wh(e,J):M7(e)),h._deselect=!1}return{eventData:J,selectionTesters:t}}function eue(e){var r=e.calcdata;if(r)for(var t=0;t{"use strict";Xq.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}]});var Mh={};Ha(Mh,{axisRefDescription:()=>oue});function oue(e,r,t){return[`If set to a ${e} axis id (e.g. *${e}* or *${e}2*),`,`the \`${e}\` position refers to a ${e} coordinate.`,`If set to *paper*, the \`${e}\` position refers to the distance from the`,`${r} of the plotting area in normalized coordinates where *0* (*1*) corresponds`,`to the ${r} (${t}). If set to a ${e} 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 ${r} of the domain of that`,`axis: e.g., *${e}2 domain* refers to the domain of the second ${e}`,`axis and a ${e} position of 0.5 refers to the point between the ${r}`,`and the ${t} of the domain of the second ${e} axis.`].join(" ")}var Th=Ia(()=>{"use strict"});var h2=le((t7e,Zq)=>{"use strict";var jq=T7(),Wq=gi(),yg=(Nn(),Tr(zn)),lue=ka().templatedArray,r7e=(Th(),Tr(Mh));Zq.exports=lue("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:Wq({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:jq.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:jq.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",yg.idRegex.x.toString()],editType:"calc"},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",yg.idRegex.y.toString()],editType:"calc"},xref:{valType:"enumerated",values:["paper",yg.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",yg.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:Wq({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc"})});var bg={};Ha(bg,{PTS_LINESONLY:()=>sue,eventDataKeys:()=>vue,maxScreensAway:()=>cue,minTolerance:()=>uue,toleranceGrowth:()=>fue});var sue,uue,fue,cue,vue,_g=Ia(()=>{"use strict";sue=20,uue=.2,fue=10,cue=20,vue=[]});var k7=le((a7e,$q)=>{"use strict";$q.exports=function(r){return{valType:"color",editType:"style",anim:!0}}});var bc=le((n7e,nP)=>{"use strict";var Jq=r6().axisHoverFormat,{hovertemplateAttrs:hue,texttemplateAttrs:due,templatefallbackAttrs:Kq}=Gf(),Qq=G1(),pue=gi(),eP=Cs().dash,mue=Cs().pattern,gue=ha(),yue=(_g(),Tr(bg)),kh=Tn().extendFlat,bue=k7();function rP(e){return{valType:"any",dflt:0,editType:"calc"}}function tP(e){return{valType:"any",editType:"calc"}}function aP(e){return{valType:"enumerated",values:["start","middle","end"],dflt:"middle",editType:"calc"}}nP.exports={x:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0},x0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",anim:!0},dx:{valType:"number",dflt:1,editType:"calc",anim:!0},y:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0},y0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",anim:!0},dy:{valType:"number",dflt:1,editType:"calc",anim:!0},xperiod:rP("x"),yperiod:rP("y"),xperiod0:tP("x0"),yperiod0:tP("y0"),xperiodalignment:aP("x"),yperiodalignment:aP("y"),xhoverformat:Jq("x"),yhoverformat:Jq("y"),offsetgroup:{valType:"string",dflt:"",editType:"calc"},alignmentgroup:{valType:"string",dflt:"",editType:"calc"},stackgroup:{valType:"string",dflt:"",editType:"calc"},orientation:{valType:"enumerated",values:["v","h"],editType:"calc"},groupnorm:{valType:"enumerated",values:["","fraction","percent"],dflt:"",editType:"calc"},stackgaps:{valType:"enumerated",values:["infer zero","interpolate"],dflt:"infer zero",editType:"calc"},text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},texttemplate:due(),texttemplatefallback:Kq({editType:"calc"}),hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"style"},mode:{valType:"flaglist",flags:["lines","markers","text"],extras:["none"],editType:"calc"},hoveron:{valType:"flaglist",flags:["points","fills"],editType:"style"},hovertemplate:hue({},{keys:yue.eventDataKeys}),hovertemplatefallback:Kq(),line:{color:{valType:"color",editType:"style",anim:!0},width:{valType:"number",min:0,dflt:2,editType:"style",anim:!0},shape:{valType:"enumerated",values:["linear","spline","hv","vh","hvh","vhv"],dflt:"linear",editType:"plot"},smoothing:{valType:"number",min:0,max:1.3,dflt:1,editType:"plot"},dash:kh({},eP,{editType:"style"}),backoff:{valType:"number",min:0,dflt:"auto",arrayOk:!0,editType:"plot"},simplify:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},connectgaps:{valType:"boolean",dflt:!1,editType:"calc"},cliponaxis:{valType:"boolean",dflt:!0,editType:"plot"},fill:{valType:"enumerated",values:["none","tozeroy","tozerox","tonexty","tonextx","toself","tonext"],editType:"calc"},fillcolor:bue(!0),fillgradient:kh({type:{valType:"enumerated",values:["radial","horizontal","vertical","none"],dflt:"none",editType:"calc"},start:{valType:"number",editType:"calc"},stop:{valType:"number",editType:"calc"},colorscale:{valType:"colorscale",editType:"style"},editType:"calc"}),fillpattern:mue,marker:kh({symbol:{valType:"enumerated",values:gue.symbolList,dflt:"circle",arrayOk:!0,editType:"style"},opacity:{valType:"number",min:0,max:1,arrayOk:!0,editType:"style",anim:!0},angle:{valType:"angle",dflt:0,arrayOk:!0,editType:"plot",anim:!1},angleref:{valType:"enumerated",values:["previous","up"],dflt:"up",editType:"plot",anim:!1},standoff:{valType:"number",min:0,dflt:0,arrayOk:!0,editType:"plot",anim:!0},size:{valType:"number",min:0,dflt:6,arrayOk:!0,editType:"calc",anim:!0},maxdisplayed:{valType:"number",min:0,dflt:0,editType:"plot"},sizeref:{valType:"number",dflt:1,editType:"calc"},sizemin:{valType:"number",min:0,dflt:0,editType:"calc"},sizemode:{valType:"enumerated",values:["diameter","area"],dflt:"diameter",editType:"calc"},line:kh({width:{valType:"number",min:0,arrayOk:!0,editType:"style",anim:!0},dash:kh({},eP,{arrayOk:!0}),editType:"calc"},Qq("marker.line",{anim:!0})),gradient:{type:{valType:"enumerated",values:["radial","horizontal","vertical","none"],arrayOk:!0,dflt:"none",editType:"calc"},color:{valType:"color",arrayOk:!0,editType:"calc"},editType:"calc"},editType:"calc"},Qq("marker",{anim:!0})),selected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style"},color:{valType:"color",editType:"style"},size:{valType:"number",min:0,editType:"style"},editType:"style"},textfont:{color:{valType:"color",editType:"style"},editType:"style"},editType:"style"},unselected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style"},color:{valType:"color",editType:"style"},size:{valType:"number",min:0,editType:"style"},editType:"style"},textfont:{color:{valType:"color",editType:"style"},editType:"style"},editType:"style"},textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right"],dflt:"middle center",arrayOk:!0,editType:"calc"},textfont:pue({editType:"calc",colorEditType:"style",arrayOk:!0}),zorder:{valType:"integer",dflt:0,editType:"plot"}}});var C7=le((o7e,lP)=>{"use strict";var iP=h2(),oP=bc().line,_ue=Cs().dash,xg=Tn().extendFlat,xue=Yo().overrideAll,wue=ka().templatedArray,i7e=(Th(),Tr(Mh));lP.exports=xue(wue("selection",{type:{valType:"enumerated",values:["rect","path"]},xref:xg({},iP.xref,{}),yref:xg({},iP.yref,{}),x0:{valType:"any"},x1:{valType:"any"},y0:{valType:"any"},y1:{valType:"any"},path:{valType:"string",editType:"arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:.7,editType:"arraydraw"},line:{color:oP.color,width:xg({},oP.width,{min:1,dflt:1}),dash:xg({},_ue,{dflt:"dot"})}}),"arraydraw","from-root")});var cP=le((l7e,fP)=>{"use strict";var sP=mr(),wg=Oa(),Aue=Ul(),Mue=C7(),uP=I0();fP.exports=function(r,t){Aue(r,t,{name:"selections",handleItemDefaults:Tue});for(var a=t.selections,n=0;n{"use strict";vP.exports=function(r,t,a){a("newselection.mode");var n=a("newselection.line.width");n&&(a("newselection.line.color"),a("newselection.line.dash")),a("activeselection.fillcolor"),a("activeselection.opacity")}});var Ch=le((u7e,mP)=>{"use strict";var kue=_t(),dP=mr(),pP=Cn();mP.exports=function(r){return function(a,n){var i=a[r];if(Array.isArray(i))for(var o=kue.subplotsRegistry.cartesian,l=o.idRegex,s=n._subplots,u=s.xaxis,f=s.yaxis,c=s.cartesian,h=n._has("cartesian"),d=0;d{"use strict";var gP=v7(),Sh=Vq();yP.exports={moduleType:"component",name:"selections",layoutAttributes:C7(),supplyLayoutDefaults:cP(),supplyDrawNewSelectionDefaults:hP(),includeBasePlot:Ch()("selections"),draw:gP.draw,drawOne:gP.drawOne,reselect:Sh.reselect,prepSelect:Sh.prepSelect,clearOutline:Sh.clearOutline,clearSelectionsCache:Sh.clearSelectionsCache,selectOnClick:Sh.selectOnClick}});var BP=le((c7e,NP)=>{"use strict";var q7=Ft(),rl=mr(),bP=rl.numberFormat,Cue=sb(),Ag=_t(),CP=rl.strTranslate,Sue=si(),D7=qt(),O0=ha(),Due=Yl(),_P=Oa(),Fue=P0(),Eue=Zo(),SP=o2(),Mg=SP.selectingOrDrawing,Lue=SP.freeMode,que=(li(),Tr(oi)).FROM_TL,Pue=Im(),Rue=sg().redrawReglTraces,zue=Sn(),F7=Cn().getFromId,Nue=Iu().prepSelect,Bue=Iu().clearOutline,Iue=Iu().selectOnClick,S7=n7(),P7=(Nn(),Tr(zn)),xP=P7.MINDRAG,Ri=P7.MINZOOM,wP=!0;function Hue(e,r,t,a,n,i,o,l){var s=e._fullLayout._zoomlayer,u=o+l==="nsew",f=(o+l).length===1,c,h,d,m,p,y,b,C,x,_,M,T,A,E,P,z,B,X,I,V,H,Q,oe;t+=r.yaxis._shift;function re(){if(c=r.xaxis,h=r.yaxis,x=c._length,_=h._length,b=c._offset,C=h._offset,d={},d[c._id]=c,m={},m[h._id]=h,o&&l)for(var Be=r.overlays,Xe=0;Xe=0){yr._fullLayout._deactivateShape(yr);return}var Cr=yr._fullLayout.clickmode;if(L7(yr),Be===2&&!f&&Lr(),u)Cr.indexOf("select")>-1&&Iue(Xe,yr,p,y,r.id,ce),Cr.indexOf("event")>-1&&Due.click(yr,Xe,r.id);else if(Be===1&&f){var pr=o?h:c,xr=o==="s"||l==="w"?0:1,Rr=pr._name+".range["+xr+"]",Er=Oue(pr,xr),Or="left",rr="middle";if(pr.fixedrange)return;o?(rr=o==="n"?"top":"bottom",pr.side==="right"&&(Or="right")):l==="e"&&(Or="right"),yr._context.showAxisRangeEntryBoxes&&q7.select(ie).call(Sue.makeEditable,{gd:yr,immediate:!0,background:yr._fullLayout.paper_bgcolor,text:String(Er),fill:pr.tickfont?pr.tickfont.color:"#444",horizontalAlign:Or,verticalAlign:rr}).on("edit",function(Sr){var vr=pr.d2r(Sr);vr!==void 0&&Ag.call("_guiRelayout",yr,Rr,vr)})}}Eue.init(ce);var Ie,Ue,ke,je,W,ee,me,K,J,ue;function _e(Be,Xe,yr){var Cr=ie.getBoundingClientRect();Ie=Xe-Cr.left,Ue=yr-Cr.top,e._fullLayout._calcInverseTransform(e);var pr=rl.apply3DTransform(e._fullLayout._invTransform)(Ie,Ue);Ie=pr[0],Ue=pr[1],ke={l:Ie,r:Ie,w:0,t:Ue,b:Ue,h:0},je=e._hmpixcount?e._hmlumcount/e._hmpixcount:D7.luminosity(e._fullLayout.plot_bgcolor),W="M0,0H"+x+"V"+_+"H0V0",ee=!1,me="xy",ue=!1,K=EP(s,je,b,C,W),J=LP(s,b,C)}function Ne(Be,Xe){if(e._transitioningWithDuration)return!1;var yr=Math.max(0,Math.min(x,Q*Be+Ie)),Cr=Math.max(0,Math.min(_,oe*Xe+Ue)),pr=Math.abs(yr-Ie),xr=Math.abs(Cr-Ue);ke.l=Math.min(Ie,yr),ke.r=Math.max(Ie,yr),ke.t=Math.min(Ue,Cr),ke.b=Math.max(Ue,Cr);function Rr(){me="",ke.r=ke.l,ke.t=ke.b,J.attr("d","M0,0Z")}if(M.isSubplotConstrained)pr>Ri||xr>Ri?(me="xy",pr/x>xr/_?(xr=pr*_/x,Ue>Cr?ke.t=Ue-xr:ke.b=Ue+xr):(pr=xr*x/_,Ie>yr?ke.l=Ie-pr:ke.r=Ie+pr),J.attr("d",Tg(ke))):Rr();else if(T.isSubplotConstrained)if(pr>Ri||xr>Ri){me="xy";var Er=Math.min(ke.l/x,(_-ke.b)/_),Or=Math.max(ke.r/x,(_-ke.t)/_);ke.l=Er*x,ke.r=Or*x,ke.b=(1-Er)*_,ke.t=(1-Or)*_,J.attr("d",Tg(ke))}else Rr();else!E||xr0){var Sr;if(T.isSubplotConstrained||!A&&E.length===1){for(Sr=0;Sr1&&(Rr.maxallowed!==void 0&&z===(Rr.range[0]1&&(Er.maxallowed!==void 0&&B===(Er.range[0]=0?Math.min(e,.9):1/(1/Math.max(e,-.3)+3.222))}function Gue(e,r,t){return e?e==="nsew"?t?"":r==="pan"?"move":"crosshair":e.toLowerCase()+"-resize":"pointer"}function EP(e,r,t,a,n){return e.append("path").attr("class","zoombox").style({fill:r>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("transform",CP(t,a)).attr("d",n+"Z")}function LP(e,r,t){return e.append("path").attr("class","zoombox-corners").style({fill:D7.background,stroke:D7.defaultLine,"stroke-width":1,opacity:0}).attr("transform",CP(r,t)).attr("d","M0,0Z")}function qP(e,r,t,a,n,i){e.attr("d",a+"M"+t.l+","+t.t+"v"+t.h+"h"+t.w+"v-"+t.h+"h-"+t.w+"Z"),PP(e,r,n,i)}function PP(e,r,t,a){t||(e.transition().style("fill",a>.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),r.transition().style("opacity",1).duration(200))}function L7(e){q7.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function RP(e){wP&&e.data&&e._context.showTips&&(rl.notifier(rl._(e,"Double-click to zoom back out"),"long",e),wP=!1)}function Yue(e,r){return"M"+(e.l-.5)+","+(r-Ri-.5)+"h-3v"+(2*Ri+1)+"h3ZM"+(e.r+.5)+","+(r-Ri-.5)+"h3v"+(2*Ri+1)+"h-3Z"}function Vue(e,r){return"M"+(r-Ri-.5)+","+(e.t-.5)+"v-3h"+(2*Ri+1)+"v3ZM"+(r-Ri-.5)+","+(e.b+.5)+"v3h"+(2*Ri+1)+"v-3Z"}function Tg(e){var r=Math.floor(Math.min(e.b-e.t,e.r-e.l,Ri)/2);return"M"+(e.l-3.5)+","+(e.t-.5+r)+"h3v"+-r+"h"+r+"v-3h-"+(r+3)+"ZM"+(e.r+3.5)+","+(e.t-.5+r)+"h-3v"+-r+"h"+-r+"v-3h"+(r+3)+"ZM"+(e.r+3.5)+","+(e.b+.5-r)+"h-3v"+r+"h"+-r+"v3h"+(r+3)+"ZM"+(e.l-3.5)+","+(e.b+.5-r)+"h3v"+r+"h"+r+"v3h-"+(r+3)+"Z"}function TP(e,r,t,a,n){for(var i=!1,o={},l={},s,u,f,c,h=(n||{}).xaHash,d=(n||{}).yaHash,m=0;m{"use strict";var Xue=Ft(),kg=Yl(),jue=Zo(),Wue=P0(),Xl=BP().makeDragBox,Hn=(Nn(),Tr(zn)).DRAGGERSIZE;Cg.initInteractions=function(r){var t=r._fullLayout;if(r._context.staticPlot){Xue.select(r).selectAll(".drag").remove();return}if(!(!t._has("cartesian")&&!t._has("splom"))){var a=Object.keys(t._plots||{}).sort(function(i,o){if((t._plots[i].mainplot&&!0)===(t._plots[o].mainplot&&!0)){var l=i.split("y"),s=o.split("y");return l[0]===s[0]?Number(l[1]||1)-Number(s[1]||1):Number(l[0]||1)-Number(s[0]||1)}return t._plots[i].mainplot?1:-1});a.forEach(function(i){var o=t._plots[i],l=o.xaxis,s=o.yaxis;if(!o.mainplot){var u=Xl(r,o,l._offset,s._offset,l._length,s._length,"ns","ew");u.onmousemove=function(h){r._fullLayout._rehover=function(){r._fullLayout._hoversubplot===i&&r._fullLayout._plots[i]&&kg.hover(r,h,i)},kg.hover(r,h,i),r._fullLayout._lasthover=u,r._fullLayout._hoversubplot=i},u.onmouseout=function(h){r._dragging||(r._fullLayout._hoversubplot=null,jue.unhover(r,h))},r._context.showAxisDragHandles&&(Xl(r,o,l._offset-Hn,s._offset-Hn,Hn,Hn,"n","w"),Xl(r,o,l._offset+l._length,s._offset-Hn,Hn,Hn,"n","e"),Xl(r,o,l._offset-Hn,s._offset+s._length,Hn,Hn,"s","w"),Xl(r,o,l._offset+l._length,s._offset+s._length,Hn,Hn,"s","e"))}if(r._context.showAxisDragHandles){if(i===l._mainSubplot){var f=l._mainLinePosition;l.side==="top"&&(f-=Hn),Xl(r,o,l._offset+l._length*.1,f,l._length*.8,Hn,"","ew"),Xl(r,o,l._offset,f,l._length*.1,Hn,"","w"),Xl(r,o,l._offset+l._length*.9,f,l._length*.1,Hn,"","e")}if(i===s._mainSubplot){var c=s._mainLinePosition;s.side!=="right"&&(c-=Hn),Xl(r,o,c,s._offset+s._length*.1,Hn,s._length*.8,"ns",""),Xl(r,o,c,s._offset+s._length*.9,Hn,s._length*.1,"s",""),Xl(r,o,c,s._offset,Hn,s._length*.1,"n","")}}});var n=t._hoverlayer.node();n.onmousemove=function(i){i.target=r._fullLayout._lasthover,kg.hover(r,i,t._hoversubplot)},n.onclick=function(i){i.target=r._fullLayout._lasthover,kg.click(r,i)},n.onmousedown=function(i){r._fullLayout._lasthover.onmousedown(i)},Cg.updateFx(r)}};Cg.updateFx=function(e){var r=e._fullLayout,t=r.dragmode==="pan"?"move":"crosshair";Wue(r._draggers,t)}});var OP=le((h7e,HP)=>{"use strict";var IP=_t();HP.exports=function(r){for(var t=IP.layoutArrayContainers,a=IP.layoutArrayRegexes,n=r.split("[")[0],i,o,l=0;l{"use strict";var Zue=c0(),z7=vp(),Dh=Cu(),$ue=T5().sorterAsc,N7=_t();Fh.containerArrayMatch=OP();var Jue=Fh.isAddVal=function(r){return r==="add"||Zue(r)},UP=Fh.isRemoveVal=function(r){return r===null||r==="remove"};Fh.applyContainerArrayChanges=function(r,t,a,n,i){var o=t.astr,l=N7.getComponentMethod(o,"supplyLayoutDefaults"),s=N7.getComponentMethod(o,"draw"),u=N7.getComponentMethod(o,"drawOne"),f=n.replot||n.recalc||l===z7||s===z7,c=r.layout,h=r._fullLayout;if(a[""]){Object.keys(a).length>1&&Dh.warn("Full array edits are incompatible with other edits",o);var d=a[""][""];if(UP(d))t.set(null);else if(Array.isArray(d))t.set(d);else return Dh.warn("Unrecognized full array edit value",o,d),!0;return f?!1:(l(c,h),s(r),!0)}var m=Object.keys(a).map(Number).sort($ue),p=t.get(),y=p||[],b=i(h,o).get(),C=[],x=-1,_=y.length,M,T,A,E,P,z,B,X;for(M=0;My.length-(B?0:1)){Dh.warn("index out of range",o,A);continue}if(z!==void 0)P.length>1&&Dh.warn("Insertion & removal are incompatible with edits to the same index.",o,A),UP(z)?C.push(A):B?(z==="add"&&(z={}),y.splice(A,0,z),b&&b.splice(A,0,{})):Dh.warn("Unrecognized full object edit value",o,A,z),x===-1&&(x=A);else for(T=0;T=0;M--)y.splice(C[M],1),b&&b.splice(C[M],1);if(y.length?p||t.set(y):t.set(null),f)return!1;if(l(c,h),u!==z7){var I;if(x===-1)I=m;else{for(_=Math.max(y.length,_),I=[],M=0;M=x));M++)I.push(A);for(M=x;M<_;M++)I.push(M)}for(M=0;M{"use strict";var jP=Wt(),WP=_t(),Ti=mr(),Eh=Sn(),ZP=Cn(),Lh=ZP.cleanId,Kue=ZP.getFromTrace,B7=WP.traceIs,Que=["x","y","z"];tl.clearPromiseQueue=function(e){Array.isArray(e._promises)&&e._promises.length>0&&Ti.log("Clearing previous rejected promises from queue."),e._promises=[]};tl.cleanLayout=function(e){var r,t;e||(e={}),e.xaxis1&&(e.xaxis||(e.xaxis=e.xaxis1),delete e.xaxis1),e.yaxis1&&(e.yaxis||(e.yaxis=e.yaxis1),delete e.yaxis1),e.scene1&&(e.scene||(e.scene=e.scene1),delete e.scene1);var a=(Eh.subplotsRegistry.cartesian||{}).attrRegex,n=(Eh.subplotsRegistry.polar||{}).attrRegex,i=(Eh.subplotsRegistry.ternary||{}).attrRegex,o=(Eh.subplotsRegistry.gl3d||{}).attrRegex,l=Object.keys(e);for(r=0;r3?(y.x=1.02,y.xanchor="left"):y.x<-2&&(y.x=-.02,y.xanchor="right"),y.y>3?(y.y=1.02,y.yanchor="bottom"):y.y<-2&&(y.y=-.02,y.yanchor="top")),e.dragmode==="rotate"&&(e.dragmode="orbit"),e.template&&e.template.layout&&tl.cleanLayout(e.template.layout),e};function d2(e,r,t=!1){var a=e[r],n=r.charAt(0);t&&Array.isArray(a)||a&&a!=="paper"&&(e[r]=Lh(a,n,!0))}tl.cleanData=function(e){for(var r=0;r0)return e.slice(0,r)}tl.hasParent=function(e,r){for(var t=XP(r);t;){if(t in e)return!0;t=XP(t)}return!1};tl.clearAxisTypes=function(e,r,t){for(var a=0;a{let t=(...a)=>a.every(n=>Ti.isPlainObject(n))||a.every(n=>Array.isArray(n));if([e,r].every(a=>Array.isArray(a))){if(e.length!==r.length)return!1;for(let a=0;aTi.isPlainObject(a))){if(Object.keys(e).length!==Object.keys(r).length)return!1;for(let a in e){if(a.startsWith("_"))continue;let n=e[a],i=r[a];if(n!==i&&!(t(n,i)?I7(n,i):!1))return!1}return!0}return!1};tl.collectionsAreEqual=I7});var Y7=le(Ut=>{"use strict";var Lg=Ft(),t0e=Wt(),a0e=B5(),Hr=mr(),Ca=Hr.nestedProperty,O7=qv(),zi=Bk(),al=_t(),Ig=I1(),gt=Sn(),ki=Oa(),n0e=lb(),i0e=Ol(),Fg=ha(),o0e=qt(),l0e=R7().initInteractions,s0e=(Kf(),Tr(Jf)),u0e=Iu().clearOutline,rR=d0().dfltConfig,Dg=GP(),pn=$P(),sa=sg(),U0=Yo(),f0e=(Nn(),Tr(zn)).AX_NAME_PATTERN,H7=0,JP=5;function c0e(e,r,t,a){var n;if(e=Hr.getGraphDiv(e),O7.init(e),Hr.isPlainObject(r)){var i=r;r=i.data,t=i.layout,a=i.config,n=i.frames}var o=O7.triggerHandler(e,"plotly_beforeplot",[r,t,a]);if(o===!1)return Promise.reject();!r&&!t&&!Hr.isPlotDiv(e)&&Hr.warn("Calling _doPlot as if redrawing but this container doesn't yet have a plot.",e);function l(){if(n)return Ut.addFrames(e,n)}aR(e,a),t||(t={}),Lg.select(e).classed("js-plotly-plot",!0),Fg.makeTester(),Array.isArray(e._promises)||(e._promises=[]);var s=(e.data||[]).length===0&&Array.isArray(r);Array.isArray(r)&&(pn.cleanData(r),s?e.data=r:e.data.push.apply(e.data,r),e.empty=!1),(!e.layout||s)&&(e.layout=pn.cleanLayout(t)),gt.supplyDefaults(e);var u=e._fullLayout,f=u._has("cartesian");u._replotting=!0,(s||u._shouldCreateBgLayer)&&(R0e(e),u._shouldCreateBgLayer&&delete u._shouldCreateBgLayer),Fg.initGradients(e),Fg.initPatterns(e),s&&ki.saveShowSpikeInitial(e);var c=!e.calcdata||e.calcdata.length!==(e._fullData||[]).length;c&>.doCalcdata(e);for(var h=0;h{Hr.isHidden(e)||gt.resize(e)};if(e._context.fillFrame||typeof ResizeObserver=="undefined")window.addEventListener("resize",E),e._clearResponsive=()=>window.removeEventListener("resize",E);else{let P=e.offsetWidth,z=e.offsetHeight,B=new ResizeObserver(()=>{let X=e.offsetWidth,I=e.offsetHeight,V=Math.abs(X-P)>1||Math.abs(I-z)>1;P=X,z=I,V&&X&&I&&E()});B.observe(e),e._clearResponsive=()=>B.disconnect()}}}else Hr.clearResponsive(e);let d=document.fonts?[...document.fonts].filter(E=>E.status!=="loaded"):[];var m=Hr.extendFlat({},u._size),p=0;function y(){for(var E=u._basePlotModules,P=0;P["loaded","loading"].includes(n.status));if(!t.length)return;let a={};e._fontLoadToken=a,yield Promise.all(t.map(n=>n.loaded.catch(()=>{}))),e._fontLoadToken===a&&(delete e._fontLoadToken,Fg.savedBBoxes={},Ut._doPlot(e))})}function Ph(e){var r=e._fullLayout;r._redrawFromAutoMarginCount?r._redrawFromAutoMarginCount--:e.emit("plotly_afterplot")}function h0e(e){return Hr.extendFlat(rR,e)}function tR(e,r){try{e._fullLayout._paper.style("background",r)}catch(t){Hr.error(t)}}function d0e(e,r){var t=o0e.combine(r,"white");tR(e,t)}function aR(e,r){if(!e._context){e._context=Hr.extendDeep({},rR);var t=Lg.select("base");e._context._baseUrl=t.size()&&t.attr("href")?window.location.href.split("#")[0]:""}var a=e._context,n,i,o;if(r){for(i=Object.keys(r),n=0;n=e.data.length||n<-e.data.length)throw new Error(t+" must be valid indices for gd.data.");if(r.indexOf(n,a+1)>-1||n>=0&&r.indexOf(-e.data.length+n)>-1||n<0&&r.indexOf(e.data.length+n)>-1)throw new Error("each index in "+t+" must be unique.")}}function nR(e,r,t){if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(typeof r=="undefined")throw new Error("currentIndices is a required argument.");if(Array.isArray(r)||(r=[r]),Pg(e,r,"currentIndices"),typeof t!="undefined"&&!Array.isArray(t)&&(t=[t]),typeof t!="undefined"&&Pg(e,t,"newIndices"),typeof t!="undefined"&&r.length!==t.length)throw new Error("current and new indices must be of equal length.")}function g0e(e,r,t){var a,n;if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(typeof r=="undefined")throw new Error("traces must be defined.");for(Array.isArray(r)||(r=[r]),a=0;a=0&&f=0&&f0&&typeof E.parts[B]!="string";)B--;var X=E.parts[B],I=E.parts[B-1]+"."+X,V=E.parts.slice(0,B).join("."),H=Ca(e.layout,V).get(),Q=Ca(a,V).get(),oe=E.get();if(P!==void 0){b[A]=P,C[A]=X==="reverse"?P:Hu(oe);var re=Ig.getLayoutValObject(a,E.parts);if(re&&re.impliedEdits&&P!==null)for(var te in re.impliedEdits)x(Hr.relativeAttr(A,te),re.impliedEdits[te]);if(["width","height"].indexOf(A)!==-1)if(P){x("autosize",null);var ie=A==="height"?"width":"height";x(ie,a[ie])}else a[A]=e._initialAutoSize[A];else if(A==="autosize")x("width",P?null:a.width),x("height",P?null:a.height);else if(I.match(hR))T(I),Ca(a,V+"._inputRange").set(null);else if(I.match(dR)){T(I),Ca(a,V+"._inputRange").set(null);var ce=Ca(a,V).get();ce._inputDomain&&(ce._input.domain=ce._inputDomain.slice())}else I.match(x0e)&&Ca(a,V+"._inputDomain").set(null);if(X==="type"){M=H;var Me=Q.type==="linear"&&P==="log",De=Q.type==="log"&&P==="linear";if(Me||De){if(!M||!M.range)x(V+".autorange",!0);else if(Q.autorange)Me&&(M.range=M.range[1]>M.range[0]?[1,2]:[2,1]);else{var Ie=M.range[0],Ue=M.range[1];Me?(Ie<=0&&Ue<=0&&x(V+".autorange",!0),Ie<=0?Ie=Ue/1e6:Ue<=0&&(Ue=Ie/1e6),x(V+".range[0]",Math.log(Ie)/Math.LN10),x(V+".range[1]",Math.log(Ue)/Math.LN10)):(x(V+".range[0]",Math.pow(10,Ie)),x(V+".range[1]",Math.pow(10,Ue)))}Array.isArray(a._subplots.polar)&&a._subplots.polar.length&&a[E.parts[0]]&&E.parts[1]==="radialaxis"&&delete a[E.parts[0]]._subplot.viewInitial["radialaxis.range"],al.getComponentMethod("annotations","convertCoords")(e,Q,P,x),al.getComponentMethod("images","convertCoords")(e,Q,P,x)}else x(V+".autorange",!0),x(V+".range",null);Ca(a,V+"._inputRange").set(null)}else if(X.match(f0e)){var ke=Ca(a,A).get(),je=(P||{}).type;(!je||je==="-")&&(je="linear"),al.getComponentMethod("annotations","convertCoords")(e,ke,je,x),al.getComponentMethod("images","convertCoords")(e,ke,je,x)}var W=Dg.containerArrayMatch(A);if(W){f=W.array,c=W.index;var ee=W.property,me=re||{editType:"calc"};c!==""&&ee===""&&(Dg.isAddVal(P)?C[A]=null:Dg.isRemoveVal(P)?C[A]=(Ca(t,f).get()||[])[c]:Hr.warn("unrecognized full object value",r)),U0.update(y,me),u[f]||(u[f]={});var K=u[f][c];K||(K=u[f][c]={}),K[ee]=P,delete r[A]}else X==="reverse"?(H.range?H.range.reverse():(x(V+".autorange",!0),H.range=[1,0]),Q.autorange?y.calc=!0:y.plot=!0):(A==="dragmode"&&(P===!1&&oe!==!1||P!==!1&&oe===!1)||a._has("scatter-like")&&a._has("regl")&&A==="dragmode"&&(P==="lasso"||P==="select")&&!(oe==="lasso"||oe==="select")?y.plot=!0:re?U0.update(y,re):y.calc=!0,E.set(P))}}for(f in u){var J=Dg.applyContainerArrayChanges(e,i(t,f),u[f],y,i);J||(y.plot=!0)}for(var ue in _){M=ki.getFromId(e,ue);var _e=M&&M._constraintGroup;if(_e){y.calc=!0;for(var Ne in _e)_[Ne]||(ki.getFromId(e,Ne)._constraintShrinkable=!0)}}(mR(e)||r.height||r.width)&&(y.plot=!0);var Je=a.shapes;for(c=0;c1;)if(a.pop(),t=Ca(r,a.join(".")+".uirevision").get(),t!==void 0)return t;return r.uirevision}function M0e(e,r){for(var t=0;t[V,e._ev.listeners(V)]);i=Ut.newPlot(e,r,t,a).then(()=>{for(let[V,H]of I)H.forEach(Q=>e.on(V,Q));return Ut.react(e,r,t,a)})}else{e.data=r||[],pn.cleanData(e.data),e.layout=t||{},pn.cleanLayout(e.layout),k0e(e.data,e.layout,l,s),gt.supplyDefaults(e,{skipUpdateCalc:!0});var c=e._fullData,h=e._fullLayout,d=h.datarevision===void 0,m=h.transition,p=D0e(e,s,h,d,m),y=p.newDataRevision,b=S0e(e,l,c,d,m,y);if(mR(e)&&(p.layoutReplot=!0),b.calc||p.calc){e.calcdata=void 0;for(var C=Object.getOwnPropertyNames(h),x=0;x(f||e.emit("plotly_react",{config:a,data:r,layout:t}),e))}function S0e(e,r,t,a,n,i){var o=r.length===t.length;if(!n&&!o)return{fullReplot:!0,calc:!0};var l=U0.traceFlags();l.arrays={},l.nChanges=0,l.nChangesAnim=0;var s,u;function f(d){var m=Ig.getTraceValObject(u,d);return!u._module.animatable&&m.anim&&(m.anim=!1),m}var c={getValObject:f,flags:l,immutable:a,transition:n,newDataRevision:i,gd:e},h={};for(s=0;s=n.length?n[0]:n[u]:n}function l(u){return Array.isArray(i)?u>=i.length?i[0]:i[u]:i}function s(u,f){var c=0;return function(){if(u&&++c===f)return u()}}return new Promise(function(u,f){function c(){if(a._frameQueue.length!==0){for(;a._frameQueue.length;){var X=a._frameQueue.pop();X.onInterrupt&&X.onInterrupt()}e.emit("plotly_animationinterrupted",[])}}function h(X){if(X.length!==0){for(var I=0;Ia._timeToNext&&m()};X()}var y=0;function b(X){return Array.isArray(n)?y>=n.length?X.transitionOpts=n[y]:X.transitionOpts=n[0]:X.transitionOpts=n,y++,X}var C,x,_=[],M=r==null,T=Array.isArray(r),A=!M&&!T&&Hr.isPlainObject(r);if(A)_.push({type:"object",data:b(Hr.extendFlat({},r))});else if(M||["string","number"].indexOf(typeof r)!==-1)for(C=0;C0&&z<_.length-1){var B=[];for(C=0;C<_.length;C++)x=_[C],(_[C].type!=="byname"||C>z)&&B.push(x);_=B}}_.length>0?h(_):(e.emit("plotly_animated"),u())})}function E0e(e,r,t){if(e=Hr.getGraphDiv(e),r==null)return Promise.resolve();if(!Hr.isPlotDiv(e))throw new Error("This element is not a Plotly plot: "+e+". It's likely that you've failed to create a plot before adding frames. For more details, see https://plotly.com/javascript/animations/");var a,n,i,o,l=e._transitionData._frames,s=e._transitionData._frameHash;if(!Array.isArray(r))throw new Error("addFrames failure: frameList must be an Array of frame definitions"+r);var u=l.length+r.length*2,f=[],c={};for(a=r.length-1;a>=0;a--)if(Hr.isPlainObject(r[a])){var h=r[a].name,d=(s[h]||c[h]||{}).name,m=r[a].name,p=s[d]||c[d];d&&m&&typeof m=="number"&&p&&H7E.index?-1:A.index=0;a--){if(n=f[a].frame,typeof n.name=="number"&&Hr.warn("Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings"),!n.name)for(;s[n.name="frame "+e._transitionData._counter++];);if(s[n.name]){for(i=0;i=0;t--)a=r[t],i.push({type:"delete",index:a}),o.unshift({type:"insert",index:a,value:n[a]});var l=gt.modifyFrames,s=gt.modifyFrames,u=[e,o],f=[e,i];return zi&&zi.add(e,l,u,s,f),gt.modifyFrames(e,i)}function q0e(e){e=Hr.getGraphDiv(e);var r=e._fullLayout||{},t=e._fullData||[];return gt.cleanPlot([],{},t,r),gt.purge(e),O7.purge(e),r._container&&r._container.remove(),delete e._context,e}function P0e(e){var r=e._fullLayout,t=e.getBoundingClientRect();if(!Hr.equalDomRects(t,r._lastBBox)){var a=r._invTransform=Hr.inverseTransformMatrix(Hr.getFullTransformMatrix(e));r._invScaleX=Math.sqrt(a[0][0]*a[0][0]+a[0][1]*a[0][1]+a[0][2]*a[0][2]),r._invScaleY=Math.sqrt(a[1][0]*a[1][0]+a[1][1]*a[1][1]+a[1][2]*a[1][2]),r._lastBBox=t}}function R0e(e){var r=Lg.select(e),t=e._fullLayout;if(t._calcInverseTransform=P0e,t._calcInverseTransform(e),t._container=r.selectAll(".plot-container").data([0]),t._container.enter().insert("div",":first-child").classed("plot-container",!0).classed("plotly",!0).style({width:"100%",height:"100%"}),t._paperdiv=t._container.selectAll(".svg-container").data([0]),t._paperdiv.enter().append("div").classed("user-select-none",!0).classed("svg-container",!0).style("position","relative"),t._glcontainer=t._paperdiv.selectAll(".gl-container").data([{}]),t._glcontainer.enter().append("div").classed("gl-container",!0),t._paperdiv.selectAll(".main-svg").remove(),t._paperdiv.select(".modebar-container").remove(),t._paper=t._paperdiv.insert("svg",":first-child").classed("main-svg",!0),t._toppaper=t._paperdiv.append("svg").classed("main-svg",!0),t._modebardiv=t._paperdiv.append("div"),delete t._modeBar,t._hoverpaper=t._paperdiv.append("svg").classed("main-svg",!0),!t._uid){var a={};Lg.selectAll("defs").each(function(){this.id&&(a[this.id.split("-")[1]]=1)}),t._uid=Hr.randstr(a)}t._paperdiv.selectAll(".main-svg").attr(s0e.svgAttrs),t._defs=t._paper.append("defs").attr("id","defs-"+t._uid),t._clips=t._defs.append("g").classed("clips",!0),t._topdefs=t._toppaper.append("defs").attr("id","topdefs-"+t._uid),t._topclips=t._topdefs.append("g").classed("clips",!0),t._bgLayer=t._paper.append("g").classed("bglayer",!0),t._draggers=t._paper.append("g").classed("draglayer",!0);var n=t._paper.append("g").classed("layer-below",!0);t._imageLowerLayer=n.append("g").classed("imagelayer",!0),t._shapeLowerLayer=n.append("g").classed("shapelayer",!0),t._cartesianlayer=t._paper.append("g").classed("cartesianlayer",!0),t._polarlayer=t._paper.append("g").classed("polarlayer",!0),t._smithlayer=t._paper.append("g").classed("smithlayer",!0),t._ternarylayer=t._paper.append("g").classed("ternarylayer",!0),t._geolayer=t._paper.append("g").classed("geolayer",!0),t._funnelarealayer=t._paper.append("g").classed("funnelarealayer",!0),t._pielayer=t._paper.append("g").classed("pielayer",!0),t._iciclelayer=t._paper.append("g").classed("iciclelayer",!0),t._treemaplayer=t._paper.append("g").classed("treemaplayer",!0),t._sunburstlayer=t._paper.append("g").classed("sunburstlayer",!0),t._indicatorlayer=t._toppaper.append("g").classed("indicatorlayer",!0),t._glimages=t._paper.append("g").classed("glimages",!0);var i=t._toppaper.append("g").classed("layer-above",!0);t._imageUpperLayer=i.append("g").classed("imagelayer",!0),t._shapeUpperLayer=i.append("g").classed("shapelayer",!0),t._selectionLayer=t._toppaper.append("g").classed("selectionlayer",!0),t._infolayer=t._toppaper.append("g").classed("infolayer",!0),t._menulayer=t._toppaper.append("g").classed("menulayer",!0),t._zoomlayer=t._toppaper.append("g").classed("zoomlayer",!0),t._hoverlayer=t._hoverpaper.append("g").classed("hoverlayer",!0),t._modebardiv.classed("modebar-container",!0).style("position","absolute").style("top","0px").style("right","0px"),e.emit("plotly_framework")}Ut.animate=F0e;Ut.addFrames=E0e;Ut.deleteFrames=L0e;Ut.addTraces=uR;Ut.deleteTraces=fR;Ut.extendTraces=lR;Ut.moveTraces=U7;Ut.prependTraces=sR;Ut.newPlot=m0e;Ut._doPlot=c0e;Ut.purge=q0e;Ut.react=C0e;Ut.redraw=p0e;Ut.relayout=qh;Ut.restyle=Rg;Ut.setPlotConfig=h0e;Ut.update=Ng;Ut._guiRelayout=G7(qh);Ut._guiRestyle=G7(Rg);Ut._guiUpdate=G7(Ng);Ut._storeDirectGUIEdit=_0e});var _c=le(nl=>{"use strict";var z0e=_t();nl.getDelay=function(e){return e._has&&(e._has("gl3d")||e._has("map"))?500:0};nl.getRedrawFunc=function(e){return function(){z0e.getComponentMethod("colorbar","draw")(e)}};nl.encodeSVG=function(e){return"data:image/svg+xml,"+encodeURIComponent(e)};nl.encodeJSON=function(e){return"data:application/json,"+encodeURIComponent(e)};var gR=window.URL||window.webkitURL;nl.createObjectURL=function(e){return gR.createObjectURL(e)};nl.revokeObjectURL=function(e){return gR.revokeObjectURL(e)};nl.createBlob=function(e,r){if(r==="svg")return new window.Blob([e],{type:"image/svg+xml;charset=utf-8"});if(r==="full-json")return new window.Blob([e],{type:"application/json;charset=utf-8"});var t=N0e(window.atob(e));return new window.Blob([t],{type:"image/"+r})};nl.octetStream=function(e){document.location.href="data:application/octet-stream"+e};nl.getPlotTitle=function(e){var a,n,i,o;var r=e._fullLayout;if(r){var t=(a=r.title)==null?void 0:a.text;return t===((n=r._dfltTitle)==null?void 0:n.plot)?void 0:t}return(o=(i=e.layout)==null?void 0:i.title)==null?void 0:o.text};nl.getPlotSubtitle=function(e){var a,n,i,o,l,s;var r=e._fullLayout;if(r){var t=(n=(a=r.title)==null?void 0:a.subtitle)==null?void 0:n.text;return t===((i=r._dfltTitle)==null?void 0:i.subtitle)?void 0:t}return(s=(l=(o=e.layout)==null?void 0:o.title)==null?void 0:l.subtitle)==null?void 0:s.text};function N0e(e){for(var r=e.length,t=new ArrayBuffer(r),a=new Uint8Array(t),n=0;n{"use strict";var X7=Ft(),b7e=mr(),B0e=ha(),I0e=qt(),_7e=(Kf(),Tr(Jf)),V7=/"/g,xc="TOBESTRIPPED",H0e=new RegExp(`("${xc})|(${xc}")|("${xc})|(${xc}")`,"g"),O0e=["&","&","&",""",""",""","'","'","'"],U0e=["<","<","<"],G0e=[">",">",">"];function Y0e(e){let r=X7.select("body").append("div").style({display:"none"}).html(""),t=e.replace(/(&[^;]*;)/gi,a=>{let n=a.toLowerCase();return O0e.includes(n)?a:U0e.includes(n)?"<":G0e.includes(n)?">":a.includes("<")||a.includes(">")?"":r.html(a).text()});return r.remove(),t}function V0e(e){return e.replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&")}yR.exports=function(r,t,a){var n=r._fullLayout,i=n._paper,o=n._toppaper,l=n.width,s=n.height,u;i.insert("rect",":first-child").call(B0e.setRect,0,0,l,s).call(I0e.fill,n.paper_bgcolor);var f=n._basePlotModules||[];for(u=0;u{"use strict";var X0e=mr(),j0e=zp().EventEmitter,Rh=_c();function W0e(e){var r=e.emitter||new j0e,t=new Promise(function(a,n){var i=window.Image,o=e.svg,l=e.format||"png",s=e.canvas,u=e.scale||1,f=e.width||300,c=e.height||150,h=u*f,d=u*c,m=s.getContext("2d",{willReadFrequently:!0}),p=new i,y,b;l==="svg"||X0e.isSafari()?b=Rh.encodeSVG(o):(y=Rh.createBlob(o,"svg"),b=Rh.createObjectURL(y)),s.width=h,s.height=d,p.onload=function(){var C;switch(y=null,Rh.revokeObjectURL(b),l!=="svg"&&m.drawImage(p,0,0,h,d),l){case"jpeg":C=s.toDataURL("image/jpeg");break;case"png":C=s.toDataURL("image/png");break;case"webp":C=s.toDataURL("image/webp");break;case"svg":C=b;break;default:var x="Image format is not jpeg, png, svg or webp.";if(n(new Error(x)),!e.promise)return r.emit("error",x)}a(C),e.promise||r.emit("success",C)},p.onerror=function(C){if(y=null,Rh.revokeObjectURL(b),n(C),!e.promise)return r.emit("error",C)},p.src=b});return e.promise?t:r}bR.exports=W0e});var W7=le((A7e,wR)=>{"use strict";var _R=Wt(),xR=Y7(),Z0e=Sn(),Gs=mr(),zh=_c(),$0e=Og(),J0e=Ug(),K0e=Q2().version,j7=(a5(),Tr(t5)).default;function Q0e(e,r){r=r||{};var t,a,n,i;Gs.isPlainObject(e)?(t=e.data||[],a=e.layout||{},n=e.config||{},i={}):(e=Gs.getGraphDiv(e),t=Gs.extendDeep([],e.data),a=Gs.extendDeep({},e.layout),n=e._context,i=e._fullLayout||{});function o(T){return!(T in r)||Gs.validate(r[T],j7[T])}if(!o("width")&&r.width!==null||!o("height")&&r.height!==null)throw new Error("Height and width should be pixel values.");if(!o("format"))throw new Error("Export format is not "+Gs.join2(j7.format.values,", "," or ")+".");var l={};function s(T,A){return Gs.coerce(r,l,j7,T,A)}var u=s("format"),f=s("width"),c=s("height"),h=s("scale"),d=s("setBackground"),m=s("imageDataOnly"),p=document.createElement("div");p.style.position="absolute",p.style.left="-5000px",document.body.appendChild(p);var y=Gs.extendFlat({},a);f?y.width=f:r.width===null&&_R(i.width)&&(y.width=i.width),c?y.height=c:r.height===null&&_R(i.height)&&(y.height=i.height);var b=Gs.extendFlat({},n,{_exportedPlot:!0,staticPlot:!0,setBackground:d}),C=zh.getRedrawFunc(p);function x(){return new Promise(function(T){setTimeout(T,zh.getDelay(p._fullLayout))})}function _(){return new Promise(function(T,A){var E=$0e(p,u,h),P=p._fullLayout.width,z=p._fullLayout.height;function B(){xR.purge(p),document.body.removeChild(p)}if(u==="full-json"){var X=Z0e.graphJson(p,!1,"object",!0,!0);return X.version=K0e,X=JSON.stringify(X),B(),T(m?X:zh.encodeJSON(X))}if(B(),u==="svg")return T(m?E:zh.encodeSVG(E));var I=document.createElement("canvas");I.id=Gs.randstr(),J0e({format:u,width:P,height:z,scale:h,canvas:I,svg:E,promise:!0}).then(T).catch(A)})}function M(T){return m?T.replace(zh.IMAGE_URL_PREFIX,""):T}return new Promise(function(T,A){xR.newPlot(p,t,y,b).then(C).then(x).then(_).then(function(E){T(M(E))}).catch(function(E){A(E)})})}wR.exports=Q0e});var TR=le((M7e,MR)=>{"use strict";var il=mr(),efe=Sn(),rfe=I1(),tfe=d0().dfltConfig,jl=il.isPlainObject,Ac=Array.isArray,Z7=il.isArrayOrTypedArray;MR.exports=function(r,t){r===void 0&&(r=[]),t===void 0&&(t={});var a=rfe.get(),n=[],i={_context:il.extendFlat({},tfe)},o,l;Ac(r)?(i.data=il.extendDeep([],r),o=r):(i.data=[],o=[],n.push(On("array","data"))),jl(t)?(i.layout=il.extendDeep({},t),l=t):(i.layout={},l={},arguments.length>1&&n.push(On("object","layout"))),efe.supplyDefaults(i);for(var s=i._fullData,u=o.length,f=0;fc.length&&a.push(On("unused",n,u.concat(c.length)));var b=c.length,C=Array.isArray(y);C&&(b=Math.min(b,y.length));var x,_,M,T,A;if(h.dimensions===2)for(_=0;_c[_].length&&a.push(On("unused",n,u.concat(_,c[_].length)));var E=c[_].length;for(x=0;x<(C?Math.min(E,y[_].length):E);x++)M=C?y[_][x]:y,T=f[_][x],A=c[_][x],il.validate(T,M)?A!==T&&A!==+T&&a.push(On("dynamic",n,u.concat(_,x),T,A)):a.push(On("value",n,u.concat(_,x),T))}else a.push(On("array",n,u.concat(_),f[_]));else for(_=0;_{"use strict";var ufe=mr(),Yg=_c();function ffe(e,r,t){var a=document.createElement("a"),n="download"in a,i=new Promise(function(o,l){var s,u;if(n)return s=Yg.createBlob(e,t),u=Yg.createObjectURL(s),a.href=u,a.download=r,document.body.appendChild(a),a.click(),document.body.removeChild(a),Yg.revokeObjectURL(u),s=null,o(r);if(ufe.isSafari()){var f=t==="svg"?",":";base64,";return Yg.octetStream(f+encodeURIComponent(e)),o(r)}l(new Error("download error"))});return i}kR.exports=ffe});var $7=le((k7e,ER)=>{"use strict";var Vg=mr(),SR=si(),cfe=W7(),vfe=CR(),DR=_c(),FR=40;function hfe(e,r){var t;return Vg.isPlainObject(e)||(t=Vg.getGraphDiv(e)),r=r||{},r.format=r.format||"png",r.width=r.width||null,r.height=r.height||null,r.imageDataOnly=!0,new Promise(function(a,n){t&&t._snapshotInProgress&&n(new Error("Image capture already in progress.")),t&&(t._snapshotInProgress=!0);var i=cfe(e,r),o=r.filename||e.fn;if(!o){let s=DR.getPlotTitle(e);if(s&&!SR.matchTex(s))o=Vg.slugify(s,FR);else{let u=DR.getPlotSubtitle(e);u&&!SR.matchTex(u)&&(o=Vg.slugify(u,FR))}}var l=o||"plot-image";l+="."+r.format.replace("-","."),i.then(function(s){return t&&(t._snapshotInProgress=!1),vfe(s,l,r.format)}).then(function(s){a(s)}).catch(function(s){t&&(t._snapshotInProgress=!1),n(s)})})}ER.exports=hfe});var zR=le(J7=>{"use strict";var no=mr(),io=no.isPlainObject,LR=I1(),qR=Sn(),dfe=Go(),PR=ka(),RR=d0().dfltConfig;J7.makeTemplate=function(e){e=no.isPlainObject(e)?e:no.getGraphDiv(e),e=no.extendDeep({_context:RR},{data:e.data,layout:e.layout}),qR.supplyDefaults(e);var r=e.data||[],t=e.layout||{};t._basePlotModules=e._fullLayout._basePlotModules,t._modules=e._fullLayout._modules;var a={data:{},layout:{}};r.forEach(function(d){var m={};Nh(d,m,mfe.bind(null,d));var p=no.coerce(d,{},dfe,"type"),y=a.data[p];y||(y=a.data[p]=[]),y.push(m)}),Nh(t,a.layout,pfe.bind(null,t)),delete a.layout.template;var n=t.template;if(io(n)){var i=n.layout,o,l,s,u,f,c;io(i)&&Xg(i,a.layout);var h=n.data;if(io(h)){for(l in a.data)if(s=h[l],Array.isArray(s)){for(f=a.data[l],c=f.length,u=s.length,o=0;ob?o.push({code:"unused",traceType:d,templateCount:y,dataCount:b}):b>y&&o.push({code:"reused",traceType:d,templateCount:y,dataCount:b})}}function C(x,_){for(var M in x)if(M.charAt(0)!=="_"){var T=x[M],A=ol(x,M,_);io(T)?(Array.isArray(x)&&T._template===!1&&T.templateitemname&&o.push({code:"missing",path:A,templateitemname:T.templateitemname}),C(T,A)):Array.isArray(T)&&gfe(T)&&C(T,A)}}if(C({data:s,layout:l},""),o.length)return o.map(yfe)};function gfe(e){for(var r=0;r{"use strict";var En=Y7();za._doPlot=En._doPlot;za.newPlot=En.newPlot;za.restyle=En.restyle;za.relayout=En.relayout;za.redraw=En.redraw;za.update=En.update;za._guiRestyle=En._guiRestyle;za._guiRelayout=En._guiRelayout;za._guiUpdate=En._guiUpdate;za._storeDirectGUIEdit=En._storeDirectGUIEdit;za.react=En.react;za.extendTraces=En.extendTraces;za.prependTraces=En.prependTraces;za.addTraces=En.addTraces;za.deleteTraces=En.deleteTraces;za.moveTraces=En.moveTraces;za.purge=En.purge;za.addFrames=En.addFrames;za.deleteFrames=En.deleteFrames;za.animate=En.animate;za.setPlotConfig=En.setPlotConfig;var bfe=Tv().getGraphDiv,_fe=rg().eraseActiveShape;za.deleteActiveShape=function(e){return _fe(bfe(e))};za.toImage=W7();za.validate=TR();za.downloadImage=$7();var NR=zR();za.makeTemplate=NR.makeTemplate;za.validateTemplate=NR.validateTemplate});var HR=le((D7e,IR)=>{"use strict";var K7=mr(),xfe=_t();IR.exports=function(r,t,a,n){var i=n("x"),o=n("y"),l,s=xfe.getComponentMethod("calendars","handleTraceDefaults");if(s(r,t,["x","y"],a),i){var u=K7.minRowLength(i);o?l=Math.min(u,K7.minRowLength(o)):(l=u,n("y0"),n("dy"))}else{if(!o)return 0;l=K7.minRowLength(o),n("x0"),n("dx")}return t._length=l,l}});var YR=le((F7e,GR)=>{"use strict";var OR=mr().dateTick0,wfe=(Ya(),Tr($a)),Afe=wfe.ONEWEEK;function UR(e,r){return e%Afe===0?OR(r,1):OR(r,0)}GR.exports=function(r,t,a,n,i){if(i||(i={x:!0,y:!0}),i.x){var o=n("xperiod");o&&(n("xperiod0",UR(o,t.xcalendar)),n("xperiodalignment"))}if(i.y){var l=n("yperiod");l&&(n("yperiod0",UR(l,t.ycalendar)),n("yperiodalignment"))}}});var jR=le((E7e,XR)=>{"use strict";var VR=["orientation","groupnorm","stackgaps"];XR.exports=function(r,t,a,n){var i=a._scatterStackOpts,o=n("stackgroup");if(o){var l=t.xaxis+t.yaxis,s=i[l];s||(s=i[l]={});var u=s[o],f=!1;u?u.traces.push(t):(u=s[o]={traceIndices:[],traces:[t]},f=!0);for(var c={orientation:t.x&&!t.y?"h":"v"},h=0;h{"use strict";var WR=qt(),ZR=Ds().hasColorscale,$R=Y1(),Mfe=_i();JR.exports=function(r,t,a,n,i,o={}){var l=Mfe.isBubble(r),s=(r.line||{}).color,u;if(s&&(a=s),i("marker.symbol"),i("marker.opacity",l?.7:1),i("marker.size"),o.noAngle||(i("marker.angle"),o.noAngleRef||i("marker.angleref"),o.noStandOff||i("marker.standoff")),i("marker.color",a),ZR(r,"marker")&&$R(r,t,n,i,{prefix:"marker.",cLetter:"c"}),o.noSelect||(i("selected.marker.color"),i("unselected.marker.color"),i("selected.marker.size"),i("unselected.marker.size")),o.noLine||(s&&!Array.isArray(s)&&t.marker.color!==s?u=s:l?u=WR.background:u=WR.defaultLine,i("marker.line.color",u),ZR(r,"marker.line")&&$R(r,t,n,i,{prefix:"marker.line.",cLetter:"c"}),i("marker.line.width",l?1:0),o.noLineDash||i("marker.line.dash")),l&&(i("marker.sizeref"),i("marker.sizemin"),i("marker.sizemode")),o.gradient){var f=i("marker.gradient.type");f!=="none"&&i("marker.gradient.color")}}});var e9=le((q7e,KR)=>{"use strict";var Tfe=mr().isArrayOrTypedArray,kfe=Ds().hasColorscale,Cfe=Y1();KR.exports=function(r,t,a,n,i,o){o||(o={});var l=(r.marker||{}).color;if(l&&l._inputArray&&(l=l._inputArray),i("line.color",a),kfe(r,"line"))Cfe(r,t,n,i,{prefix:"line.",cLetter:"c"});else{var s=(Tfe(l)?!1:l)||a;i("line.color",s)}i("line.width"),o.noDash||i("line.dash"),o.backoff&&i("line.backoff")}});var ez=le((P7e,QR)=>{"use strict";QR.exports=function(r,t,a){var n=a("line.shape");n==="spline"&&a("line.smoothing")}});var r9=le((R7e,rz)=>{"use strict";var Sfe=mr();rz.exports=function(e,r,t,a,n){n=n||{},a("textposition"),Sfe.coerceFont(a,"textfont",n.font||t.font,n),n.noSelect||(a("selected.textfont.color"),a("unselected.textfont.color"))}});var t9=le((z7e,az)=>{"use strict";var Wg=qt(),tz=mr().isArrayOrTypedArray;function Dfe(e){for(var r=Wg.interpolate(e[0][1],e[1][1],.5),t=2;t{"use strict";var nz=mr(),Ffe=_t(),Efe=bc(),Lfe=(_g(),Tr(bg)),p2=_i(),qfe=HR(),Pfe=YR(),Rfe=jR(),zfe=Q7(),Nfe=e9(),iz=ez(),Bfe=r9(),Ife=t9(),Hfe=mr().coercePattern;oz.exports=function(r,t,a,n){function i(d,m){return nz.coerce(r,t,Efe,d,m)}var o=qfe(r,t,n,i);if(o||(t.visible=!1),!!t.visible){Pfe(r,t,n,i),i("xhoverformat"),i("yhoverformat"),i("zorder");var l=Rfe(r,t,n,i);n.scattermode==="group"&&t.orientation===void 0&&i("orientation","v");var s=!l&&o{"use strict";var Ofe=sh().getAxisGroup;sz.exports=function(r,t,a,n,i){var o=t.orientation,l=t[{v:"x",h:"y"}[o]+"axis"],s=Ofe(a,l)+o,u=a._alignmentOpts||{},f=n("alignmentgroup"),c=u[s];c||(c=u[s]={});var h=c[f];h?h.traces.push(t):h=c[f]={traces:[t],alignmentIndex:Object.keys(c).length,offsetGroups:{}};var d=n("offsetgroup")||"",m=h.offsetGroups,p=m[d];t._offsetIndex=0,(i!=="group"||d)&&(p||(p=m[d]={offsetIndex:Object.keys(m).length}),t._offsetIndex=p.offsetIndex)}});var cz=le((I7e,fz)=>{"use strict";var Ufe=mr(),Gfe=uz(),Yfe=bc();fz.exports=function(r,t){var a,n,i,o=t.scattermode;function l(h){return Ufe.coerce(n._input,n,Yfe,h)}if(t.scattermode==="group")for(i=0;i=0;f--){var c=r[f];if(c.type==="scatter"&&c.xaxis===s.xaxis&&c.yaxis===s.yaxis){c.opacity=void 0;break}}}}}});var hz=le((H7e,vz)=>{"use strict";var Vfe=mr(),Xfe=Op();vz.exports=function(e,r){function t(n,i){return Vfe.coerce(e,r,Xfe,n,i)}var a=r.barmode==="group";r.scattermode==="group"&&t("scattergap",a?r.bargap:.2)}});var mz=le((O7e,pz)=>{"use strict";var jfe=Wt(),dz=mr(),Wfe=dz.dateTime2ms,Zg=dz.incrementMonth,Zfe=(Ya(),Tr($a)),$fe=Zfe.ONEAVGMONTH;pz.exports=function(r,t,a,n){if(t.type!=="date")return{vals:n};var i=r[a+"periodalignment"];if(!i)return{vals:n};var o=r[a+"period"],l;if(jfe(o)){if(o=+o,o<=0)return{vals:n}}else if(typeof o=="string"&&o.charAt(0)==="M"){var s=+o.substring(1);if(s>0&&Math.round(s)===s)l=s;else return{vals:n}}for(var u=t.calendar,f=i==="start",c=i==="end",h=r[a+"period0"],d=Wfe(h,u)||0,m=[],p=[],y=[],b=n.length,C=0;Cx;)T=Zg(T,-l,u);for(;T<=x;)T=Zg(T,l,u);M=Zg(T,-l,u)}else{for(_=Math.round((x-d)/o),T=d+_*o;T>x;)T-=o;for(;T<=x;)T+=o;M=T-o}m[C]=f?M:c?T:(M+T)/2,p[C]=M,y[C]=T}return{vals:m,starts:p,ends:y}}});var i9=le((U7e,yz)=>{"use strict";var a9=Ds().hasColorscale,n9=Jp(),gz=_i();yz.exports=function(r,t){gz.hasLines(t)&&a9(t,"line")&&n9(r,t,{vals:t.line.color,containerStr:"line",cLetter:"c"}),gz.hasMarkers(t)&&(a9(t,"marker")&&n9(r,t,{vals:t.marker.color,containerStr:"marker",cLetter:"c"}),a9(t,"marker.line")&&n9(r,t,{vals:t.marker.line.color,containerStr:"marker.line",cLetter:"c"}))}});var Bh=le((G7e,bz)=>{"use strict";var Qa=mr();bz.exports=function(r,t){for(var a=0;a{"use strict";var _z=mr();xz.exports=function(r,t){_z.isArrayOrTypedArray(t.selectedpoints)&&_z.tagSelected(r,t)}});var Jg=le((V7e,Sz)=>{"use strict";var wz=Wt(),l9=mr(),Ih=Oa(),Az=mz(),o9=(Ya(),Tr($a)).BADNUM,s9=_i(),Jfe=i9(),Kfe=Bh(),Qfe=$g();function ece(e,r){var t=e._fullLayout,a=r._xA=Ih.getFromId(e,r.xaxis||"x","x"),n=r._yA=Ih.getFromId(e,r.yaxis||"y","y"),i=a.makeCalcdata(r,"x"),o=n.makeCalcdata(r,"y"),l=Az(r,a,"x",i),s=Az(r,n,"y",o),u=l.vals,f=s.vals,c=r._length,h=new Array(c),d=r.ids,m=u9(r,t,a,n),p=!1,y,b,C,x,_,M;kz(t,r);var T="x",A="y",E;if(m)l9.pushUnique(m.traceIndices,r.index),y=m.orientation==="v",y?(A="s",E="x"):(T="s",E="y"),_=m.stackgaps==="interpolate";else{var P=Tz(r,c);Mz(e,r,a,n,u,f,P)}var z=!!r.xperiodalignment,B=!!r.yperiodalignment;for(b=0;bb&&h[x].gap;)x--;for(M=h[x].s,C=h.length-1;C>x;C--)h[C].s=M;for(;b{"use strict";Dz.exports=Kg;var rce=mr().distinctVals;function Kg(e,r){this.traces=e,this.sepNegVal=r.sepNegVal,this.overlapNoMerge=r.overlapNoMerge;for(var t=1/0,a=r.posAxis._id.charAt(0),n=[],i=0;itce,eventDataKeys:()=>ace});var tce,ace,Lz=Ia(()=>{"use strict";tce=3,ace=["value","label"]});var Nz=le((j7e,zz)=>{"use strict";var ll=Wt(),{isArrayOrTypedArray:Ou}=mr(),{BADNUM:m2}=(Ya(),Tr($a)),nce=_t(),Hh=Oa(),{getAxisGroup:ice}=sh(),Qg=Fz(),{TEXTPAD:oce}=(Lz(),Tr(Ez)),{LINE_SPACING:lce}=(li(),Tr(oi)),{BR_TAG_ALL:sce}=si();function uce(e,r){for(var t=r.xaxis,a=r.yaxis,n=e._fullLayout,i=e._fullData,o=e.calcdata,l=[],s=[],u=0;us+o||!ll(l))}for(var f=0;fa(i))):a(e.text);let n=e.outsidetextfont.size*lce*t+oce;return{ppadplus:r.some(i=>i.s<0)?n:0,ppadminus:r.some(i=>i.s>=0)?n:0}}return{ppadplus:void 0,ppadminus:void 0}}function bce(e,r,t,a){for(var n=g2(a),i=0;i{"use strict";var Bz=Jg(),Iz=Nz().setGroupPositions;function xce(e,r){for(var t=r.xaxis,a=r.yaxis,n=e._fullLayout,i=e._fullData,o=e.calcdata,l=[],s=[],u=0;uP[f]&&f{"use strict";var Ace=ha(),Vz=(Ya(),Tr($a)),Oh=Vz.BADNUM,Xz=Vz.LOG_CLIP,Uz=Xz+.5,Gz=Xz-.5,e3=mr(),Mce=e3.segmentsIntersect,Yz=e3.constrain,m9=(_g(),Tr(bg));jz.exports=function(r,t){var a=t.trace||{},n=t.xaxis,i=t.yaxis,o=n.type==="log",l=i.type==="log",s=n._length,u=i._length,f=t.backoff,c=a.marker,h=t.connectGaps,d=t.baseTolerance,m=t.shape,p=m==="linear",y=a.fill&&a.fill!=="none",b=[],C=m9.minTolerance,x=r.length,_=new Array(x),M=0,T,A,E,P,z,B,X,I,V,H,Q,oe,re,te,ie,ce;function Me(rr){var Sr=r[rr];if(!Sr)return!1;var vr=t.linearized?n.l2p(Sr.x):n.c2p(Sr.x),jr=t.linearized?i.l2p(Sr.y):i.c2p(Sr.y);if(vr===Oh){if(o&&(vr=n.c2p(Sr.x,!0)),vr===Oh)return!1;l&&jr===Oh&&(vr*=Math.abs(n._m*u*(n._m>0?Uz:Gz)/(i._m*s*(i._m>0?Uz:Gz)))),vr*=1e3}if(jr===Oh){if(l&&(jr=i.c2p(Sr.y,!0)),jr===Oh)return!1;jr*=1e3}return[vr,jr]}function De(rr,Sr,vr,jr){var Qr=vr-rr,qr=jr-Sr,Wr=.5-rr,Ae=.5-Sr,Pe=Qr*Qr+qr*qr,ur=Qr*Wr+qr*Ae;if(ur>0&&ur1||Math.abs(Wr.y-vr[0][1])>1)&&(Wr=[Wr.x,Wr.y],jr&&je(Wr,rr)me||rr[1]J)return[Yz(rr[0],ee,me),Yz(rr[1],K,J)]}function hr(rr,Sr){if(rr[0]===Sr[0]&&(rr[0]===ee||rr[0]===me)||rr[1]===Sr[1]&&(rr[1]===K||rr[1]===J))return!0}function dr(rr,Sr){var vr=[],jr=sr(rr),Qr=sr(Sr);return jr&&Qr&&hr(jr,Qr)||(jr&&vr.push(jr),Qr&&vr.push(Qr)),vr}function Ze(rr,Sr,vr){return function(jr,Qr){var qr=sr(jr),Wr=sr(Qr),Ae=[];if(qr&&Wr&&hr(qr,Wr))return Ae;qr&&Ae.push(qr),Wr&&Ae.push(Wr);var Pe=2*e3.constrain((jr[rr]+Qr[rr])/2,Sr,vr)-((qr||jr)[rr]+(Wr||Qr)[rr]);if(Pe){var ur;qr&&Wr?ur=Pe>0==qr[rr]>Wr[rr]?qr:Wr:ur=qr||Wr,ur[rr]+=Pe}return Ae}}var cr;m==="linear"||m==="spline"?cr=Re:m==="hv"||m==="vh"?cr=dr:m==="hvh"?cr=Ze(0,ee,me):m==="vhv"&&(cr=Ze(1,K,J));function Lr(rr,Sr){var vr=Sr[0]-rr[0],jr=(Sr[1]-rr[1])/vr,Qr=(rr[1]*Sr[0]-Sr[1]*rr[0])/vr;return Qr>0?[jr>0?ee:me,J]:[jr>0?me:ee,K]}function Te(rr){var Sr=rr[0],vr=rr[1],jr=Sr===_[M-1][0],Qr=vr===_[M-1][1];if(!(jr&&Qr))if(M>1){var qr=Sr===_[M-2][0],Wr=vr===_[M-2][1];jr&&(Sr===ee||Sr===me)&&qr?Wr?M--:_[M-1]=rr:Qr&&(vr===K||vr===J)&&Wr?qr?M--:_[M-1]=rr:_[M++]=rr}else _[M++]=rr}function Oe(rr){_[M-1][0]!==rr[0]&&_[M-1][1]!==rr[1]&&Te([Je,ar]),Te(rr),tr=null,Je=ar=0}var Ar=e3.isArrayOrTypedArray(c);function Br(rr){if(rr&&f&&(rr.i=T,rr.d=r,rr.trace=a,rr.marker=Ar?c[rr.i]:c,rr.backoff=f),Ie=rr[0]/s,Ue=rr[1]/u,_e=rr[0]me?me:0,Ne=rr[1]J?J:0,_e||Ne){if(!M)_[M++]=[_e||rr[0],Ne||rr[1]];else if(tr){var Sr=cr(tr,rr);Sr.length>1&&(Oe(Sr[0]),_[M++]=Sr[1])}else fr=cr(_[M-1],rr)[0],_[M++]=fr;var vr=_[M-1];_e&&Ne&&(vr[0]!==_e||vr[1]!==Ne)?(tr&&(Je!==_e&&ar!==Ne?Te(Je&&ar?Lr(tr,rr):[Je||_e,ar||Ne]):Je&&ar&&Te([Je,ar])),Te([_e,Ne])):Je-_e&&ar-Ne&&Te([_e||Je,Ne||ar]),tr=rr,Je=_e,ar=Ne}else tr&&Oe(cr(tr,rr)[0]),_[M++]=rr}for(T=0;Tke(B,Qe))break;E=B,re=V[0]*I[0]+V[1]*I[1],re>Q?(Q=re,P=B,X=!1):re=r.length||!B)break;Br(B),A=B}}tr&&Te([Je||tr[0],ar||tr[1]]),b.push(_.slice(0,M))}var Be=m.slice(m.length-1);if(f&&Be!=="h"&&Be!=="v"){for(var Xe=!1,yr=-1,Cr=[],pr=0;pr{"use strict";var Zz={tonextx:1,tonexty:1,tonext:1};$z.exports=function(r,t,a){var n,i,o,l,s,u={},f=!1,c=-1,h=0,d=-1;for(i=0;i=0?s=d:(s=d=h,h++),s{"use strict";var Wl=Ft(),Tce=_t(),Uh=mr(),y2=Uh.ensureSingle,Qz=Uh.identity,an=ha(),b2=_i(),kce=Wz(),Cce=Jz(),r3=hg().tester;eN.exports=function(r,t,a,n,i,o){var l,s,u=!i,f=!!i&&i.duration>0,c=Cce(r,t,a);if(l=n.selectAll("g.trace").data(c,function(d){return d[0].trace.uid}),l.enter().append("g").attr("class",function(d){return"trace scatter trace"+d[0].trace.uid}).style("stroke-miterlimit",2),l.order(),Sce(r,l,t),f){o&&(s=o());var h=Wl.transition().duration(i.duration).ease(i.easing).each("end",function(){s&&s()}).each("interrupt",function(){s&&s()});h.each(function(){n.selectAll("g.trace").each(function(d,m){Kz(r,m,t,d,c,this,i)})})}else l.each(function(d,m){Kz(r,m,t,d,c,this,i)});u&&l.exit().remove(),n.selectAll("path:not([d])").remove()};function Sce(e,r,t){r.each(function(a){var n=y2(Wl.select(this),"g","fills");an.setClipUrl(n,t.layerClipId,e);var i=a[0].trace;i._ownFill=null,i._nextFill=null;var o=[];i._ownfill&&o.push("_ownFill"),i._nexttrace&&o.push("_nextFill");var l=n.selectAll("g").data(o,Qz);l.enter().append("g"),l.exit().remove(),l.order().each(function(s){i[s]=y2(Wl.select(this),"path","js-fill")})})}function Kz(e,r,t,a,n,i,o){var l=e._context.staticPlot,s;Dce(e,r,t,a,n);var u=!!o&&o.duration>0;function f(Ze){return u?Ze.transition():Ze}var c=t.xaxis,h=t.yaxis,d=a[0].trace,m=d.line,p=Wl.select(i),y=y2(p,"g","errorbars"),b=y2(p,"g","lines"),C=y2(p,"g","points"),x=y2(p,"g","text");if(Tce.getComponentMethod("errorbars","plot")(e,y,t,o),d.visible!==!0)return;f(p).style("opacity",d.opacity);var _,M,T=d.fill.charAt(d.fill.length-1);T!=="x"&&T!=="y"&&(T="");var A,E;T==="y"?(A=1,E=h.c2p(0,!0)):T==="x"&&(A=0,E=c.c2p(0,!0)),a[0][t.isRangePlot?"nodeRangePlot3":"node3"]=p;var P="",z=[],B=d._prevtrace,X=null,I=null;B&&(P=B._prevRevpath||"",M=B._nextFill,z=B._ownPolygons,X=B._fillsegments,I=B._fillElement);var V,H,Q="",oe="",re,te,ie,ce,Me,De,Ie=[];d._polygons=[];var Ue=[],ke=[],je=Uh.noop;if(_=d._ownFill,b2.hasLines(d)||d.fill!=="none"){M&&M.datum(a),["hv","vh","hvh","vhv"].indexOf(m.shape)!==-1?(re=an.steps(m.shape),te=an.steps(m.shape.split("").reverse().join(""))):m.shape==="spline"?re=te=function(Ze){var cr=Ze[Ze.length-1];return Ze.length>1&&Ze[0][0]===cr[0]&&Ze[0][1]===cr[1]?an.smoothclosed(Ze.slice(1),m.smoothing):an.smoothopen(Ze,m.smoothing)}:re=te=function(Ze){return"M"+Ze.join("L")},ie=function(Ze){return te(Ze.reverse())},ke=kce(a,{xaxis:c,yaxis:h,trace:d,connectGaps:d.connectgaps,baseTolerance:Math.max(m.width||1,3)/4,shape:m.shape,backoff:m.backoff,simplify:m.simplify,fill:d.fill}),Ue=new Array(ke.length);var W=0;for(s=0;s=l[0]&&p.x<=l[1]&&p.y>=s[0]&&p.y<=s[1]}),h=Math.ceil(c.length/f),d=0;n.forEach(function(p,y){var b=p[0].trace;b2.hasMarkers(b)&&b.marker.maxdisplayed>0&&y{"use strict";tN.exports={container:"marker",min:"cmin",max:"cmax"}});var nN=le((Q7e,aN)=>{"use strict";var t3=Oa();aN.exports=function(r,t,a){var n={},i={_fullLayout:a},o=t3.getFromTrace(i,t,"x"),l=t3.getFromTrace(i,t,"y"),s=r.orig_x;s===void 0&&(s=r.x);var u=r.orig_y;return u===void 0&&(u=r.y),n.xLabel=t3.tickText(o,o.c2l(s),!0).text,n.yLabel=t3.tickText(l,l.c2l(u),!0).text,n}});var Gh=le((e9e,iN)=>{"use strict";var y9=Ft(),_2=ha(),Fce=_t();function Ece(e){var r=y9.select(e).selectAll("g.trace.scatter");r.style("opacity",function(t){return t[0].trace.opacity}),r.selectAll("g.points").each(function(t){var a=y9.select(this),n=t.trace||t[0].trace;b9(a,n,e)}),r.selectAll("g.text").each(function(t){var a=y9.select(this),n=t.trace||t[0].trace;_9(a,n,e)}),r.selectAll("g.trace path.js-line").call(_2.lineGroupStyle),r.selectAll("g.trace path.js-fill").call(_2.fillGroupStyle,e,!1),Fce.getComponentMethod("errorbars","style")(r)}function b9(e,r,t){_2.pointStyle(e.selectAll("path.point"),r,t)}function _9(e,r,t){_2.textPointStyle(e.selectAll("text"),r,t)}function Lce(e,r,t){var a=r[0].trace;a.selectedpoints?(_2.selectedPointStyle(t.selectAll("path.point"),a),_2.selectedTextStyle(t.selectAll("text"),a)):(b9(t,a,e),_9(t,a,e))}iN.exports={style:Ece,stylePoints:b9,styleText:_9,styleOnSelect:Lce}});var x9=le((r9e,oN)=>{"use strict";var x2=qt(),qce=_i();oN.exports=function(r,t){var a,n;if(r.mode==="lines")return a=r.line.color,a&&x2.opacity(a)?a:r.fillcolor;if(r.mode==="none")return r.fill?r.fillcolor:"";var i=t.mcc||t.mc||(r.marker||{}).color,o=t.mlcc||((r.marker||{}).line||{}).color;return n=i&&x2.opacity(i)?i:o&&x2.opacity(o)&&(t.mlw||((r.marker||{}).line||{}).width)?o:"",n?x2.opacity(n)<.3?x2.addOpacity(n,.3):n:(a=(r.line||{}).color,a&&x2.opacity(a)&&qce.hasLines(r)&&r.line.width?a:r.fillcolor)}});var uN=le((t9e,sN)=>{"use strict";var a3=mr(),lN=Yl(),Pce=_t(),Rce=x9(),w9=qt(),zce=a3.fillText;sN.exports=function(r,t,a,n){var i=r.cd,o=i[0].trace,l=r.xa,s=r.ya,u=l.c2p(t),f=s.c2p(a),c=[u,f],h=o.hoveron||"",d=o.mode.indexOf("markers")!==-1?3:.5,m=!!o.xperiodalignment,p=!!o.yperiodalignment;if(h.indexOf("points")!==-1){var y=function(oe){if(m){var re=l.c2p(oe.xStart),te=l.c2p(oe.xEnd);return u>=Math.min(re,te)&&u<=Math.max(re,te)?0:1/0}var ie=Math.max(3,oe.mrc||0),ce=1-1/ie,Me=Math.abs(l.c2p(oe.x)-u);return Me=Math.min(re,te)&&f<=Math.max(re,te)?0:1/0}var ie=Math.max(3,oe.mrc||0),ce=1-1/ie,Me=Math.abs(s.c2p(oe.y)-f);return MeIe!=J>=Ie&&(ee=je[ke-1][0],me=je[ke][0],J-K&&(W=ee+(me-ee)*(Ie-K)/(J-K),ie=Math.min(ie,W),ce=Math.max(ce,W)));return ie=Math.max(ie,0),ce=Math.min(ce,l._length),{x0:ie,x1:ce,y0:Ie,y1:Ie}}if(h.indexOf("fills")!==-1&&o._fillElement){var V=X(o._fillElement)&&!X(o._fillExclusionElement);if(V){var H=I(o._polygons);H===null&&(H={x0:c[0],x1:c[0],y0:c[1],y1:c[1]});var Q=w9.defaultLine;return w9.opacity(o.fillcolor)?Q=o.fillcolor:w9.opacity((o.line||{}).color)&&(Q=o.line.color),a3.extendFlat(r,{distance:r.maxHoverDistance,x0:H.x0,x1:H.x1,y0:H.y0,y1:H.y1,color:Q,hovertemplate:!1}),delete r.index,o.text&&!a3.isArrayOrTypedArray(o.text)?r.text=String(o.text):r.text=o.name,[r]}}}});var vN=le((a9e,cN)=>{"use strict";var fN=_i();cN.exports=function(r,t){var a=r.cd,n=r.xaxis,i=r.yaxis,o=[],l=a[0].trace,s,u,f,c,h=l.mode&&!fN.hasMarkers(l)&&!fN.hasText(l);if(h)return[];if(t===!1)for(s=0;s{"use strict";hN.exports={xaxis:{valType:"subplotid",dflt:"x",editType:"calc+clearAxisTypes"},yaxis:{valType:"subplotid",dflt:"y",editType:"calc+clearAxisTypes"}}});var yN=le((i9e,gN)=>{"use strict";var n3=_t().traceIs,A9=H6();gN.exports=function(r,t,a,n){a("autotypenumbers",n.autotypenumbersDflt);var i=a("type",(n.splomStash||{}).type);i==="-"&&(Nce(t,n.data),t.type==="-"?t.type="linear":r.type=t.type)};function Nce(e,r){if(e.type==="-"){var t=e._id,a=t.charAt(0),n;t.indexOf("scene")!==-1&&(t=a);var i=Bce(r,t,a);if(i){if(i.type==="histogram"&&a==={v:"y",h:"x"}[i.orientation||"v"]){e.type="linear";return}var o=a+"calendar",l=i[o],s={noMultiCategory:!n3(i,"cartesian")||n3(i,"noMultiCategory")};if(i.type==="box"&&i._hasPreCompStats&&a==={h:"x",v:"y"}[i.orientation||"v"]&&(s.noMultiCategory=!0),s.autotypenumbers=e.autotypenumbers,mN(i,a)){var u=pN(i),f=[];for(n=0;n0&&(n["_"+t+"axes"]||{})[r])return n;if((n[t+"axis"]||t)===r){if(mN(n,t))return n;if((n[t]||[]).length||n[t+"0"])return n}}}function pN(e){return{v:"x",h:"y"}[e.orientation||"v"]}function mN(e,r){var t=pN(e),a=n3(e,"box-violin");return a&&r===t&&e[t]===void 0&&e[t+"0"]===void 0}});var _N=le((o9e,bN)=>{"use strict";var Ice=$i().isTypedArraySpec;function Hce(e,r){var t=r.dataAttr||e._id.charAt(0),a={},n,i,o;if(r.axData)n=r.axData;else for(n=[],i=0;i0||Ice(i),l;o&&(l="array");var s=a("categoryorder",l),u;s==="array"&&(u=a("categoryarray")),!o&&s==="array"&&(s=t.categoryorder="trace"),s==="trace"?t._initialCategories=[]:s==="array"?t._initialCategories=u.slice():(u=Hce(t,n).sort(),s==="category ascending"?t._initialCategories=u:s==="category descending"&&(t._initialCategories=u.reverse()))}}});var AN=le((l9e,wN)=>{"use strict";var xN=qt(),Oce=zl(),Uce=mr();wN.exports=function(r,t,a,n){n=n||{};var i=n.dfltColor;function o(E,P){return Uce.coerce2(r,t,n.attributes,E,P)}var l=o("linecolor",i),s=o("linewidth"),u=a("showline",n.showLine||!!l||!!s);u||(delete t.linecolor,delete t.linewidth);var f=xN.mix(i,n.bgColor,n.blend||Oce.lightFraction),c=o("gridcolor",f),h=o("gridwidth"),d=o("griddash"),m=a("showgrid",n.showGrid||!!c||!!h||!!d);if(m||(delete t.gridcolor,delete t.gridwidth,delete t.griddash),n.hasMinor){var p=xN.mix(t.gridcolor,n.bgColor,67),y=o("minor.gridcolor",p),b=o("minor.gridwidth",t.gridwidth||1),C=o("minor.griddash",t.griddash||"solid"),x=a("minor.showgrid",!!y||!!b||!!C);x||(delete t.minor.gridcolor,delete t.minor.gridwidth,delete t.minor.griddash)}if(!n.noZeroLine){var _=o("zerolinelayer"),M=o("zerolinecolor",i),T=o("zerolinewidth"),A=a("zeroline",n.showGrid||!!M||!!T);A||(delete t.zerolinelayer,delete t.zerolinecolor,delete t.zerolinewidth)}}});var T9=le((s9e,DN)=>{"use strict";var MN=Wt(),Gce=_t(),Yh=mr(),Yce=ka(),Vce=Ul(),M9=Ol(),TN=c6(),kN=h6(),Xce=m6(),jce=g6(),Wce=_N(),Zce=AN(),$ce=lb(),CN=vm(),i3=(Nn(),Tr(zn)).WEEKDAY_PATTERN,Jce=(Nn(),Tr(zn)).HOUR_PATTERN;DN.exports=function(r,t,a,n,i){var o=n.letter,l=n.font||{},s=n.splomStash||{},u=a("visible",!n.visibleDflt),f=t._template||{},c=t.type||f.type||"-",h;if(c==="date"){var d=Gce.getComponentMethod("calendars","handleDefaults");d(r,t,"calendar",n.calendar),n.noTicklabelmode||(h=a("ticklabelmode"))}!n.noTicklabelindex&&(c==="date"||c==="linear")&&a("ticklabelindex");var m="";(!n.noTicklabelposition||c==="multicategory")&&(m=Yh.coerce(r,t,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:h==="period"?["outside","inside"]:o==="x"?["outside","inside","outside left","inside left","outside right","inside right"]:["outside","inside","outside top","inside top","outside bottom","inside bottom"]}},"ticklabelposition")),n.noTicklabeloverflow||a("ticklabeloverflow",m.indexOf("inside")!==-1?"hide past domain":c==="category"||c==="multicategory"?"allow":"hide past div"),CN(t,i),$ce(r,t,a,n),Wce(r,t,a,n),n.noHover||(c!=="category"&&a("hoverformat"),n.noUnifiedhovertitle||a("unifiedhovertitle.text"));var p=a("color"),y=p!==M9.color.dflt?p:l.color,b=s.label||i._dfltTitle[o];if(jce(r,t,a,c,n),!u)return t;a("title.text",b),Yh.coerceFont(a,"title.font",l,{overrideDflt:{size:Yh.bigFont(l.size),color:y}}),TN(r,t,a,c);var C=n.hasMinor;if(C&&(Yce.newContainer(t,"minor"),TN(r,t,a,c,{isMinor:!0})),Xce(r,t,a,c,n),kN(r,t,a,n),C){var x=n.isMinor;n.isMinor=!0,kN(r,t,a,n),n.isMinor=x}Zce(r,t,a,{dfltColor:p,bgColor:n.bgColor,showGrid:n.showGrid,hasMinor:C,attributes:M9}),C&&t.ticklabelindex==null&&!t.minor.ticks&&!t.minor.showgrid&&delete t.minor,(t.showline||t.ticks)&&a("mirror");var _=c==="multicategory";if(!n.noTickson&&(c==="category"||_)&&(t.ticks||t.showgrid)&&(_?(a("tickson","boundaries"),delete t.ticklabelposition):a("tickson")),_){var M=a("showdividers");M&&(a("dividercolor"),a("dividerwidth"))}if(c==="date")if(Vce(r,t,{name:"rangebreaks",inclusionAttr:"enabled",handleItemDefaults:Kce}),!t.rangebreaks.length)delete t.rangebreaks;else{for(var T=0;T=2){var o="",l,s;if(i.length===2){for(l=0;l<2;l++)if(s=SN(i[l]),s){o=i3;break}}var u=a("pattern",o);if(u===i3)for(l=0;l<2;l++)s=SN(i[l]),s&&(r.bounds[l]=i[l]=s-1);if(u)for(l=0;l<2;l++)switch(s=i[l],u){case i3:if(!MN(s)){r.enabled=!1;return}if(s=+s,s!==Math.floor(s)||s<0||s>=7){r.enabled=!1;return}r.bounds[l]=i[l]=s;break;case Jce:if(!MN(s)){r.enabled=!1;return}if(s=+s,s<0||s>24){r.enabled=!1;return}r.bounds[l]=i[l]=s;break}if(t.autorange===!1){var f=t.range;if(f[0]f[1]){r.enabled=!1;return}}else if(i[0]>f[0]&&i[1]{"use strict";var e1e=Wt(),o3=mr();FN.exports=function(r,t,a,n){var i=n.counterAxes||[],o=n.overlayableAxes||[],l=n.letter,s=n.grid,u=n.overlayingDomain,f,c,h,d,m,p;s&&(c=s._domains[l][s._axisMap[t._id]],f=s._anchors[t._id],c&&(h=s[l+"side"].split(" ")[0],d=s.domain[l][h==="right"||h==="top"?1:0])),c=c||[0,1],f=f||(e1e(r.position)?"free":i[0]||"free"),h=h||(l==="x"?"bottom":"left"),d=d||0,m=0,p=!1;var y=o3.coerce(r,t,{anchor:{valType:"enumerated",values:["free"].concat(i),dflt:f}},"anchor"),b=o3.coerce(r,t,{side:{valType:"enumerated",values:l==="x"?["bottom","top"]:["left","right"],dflt:h}},"side");if(y==="free"){if(l==="y"){var C=a("autoshift");C&&(d=b==="left"?u[0]:u[1],p=t.automargin?t.automargin:!0,m=b==="left"?-3:3),a("shift",m)}a("position",d)}a("automargin",p);var x=!1;if(o.length&&(x=o3.coerce(r,t,{overlaying:{valType:"enumerated",values:[!1].concat(o),dflt:!1}},"overlaying")),!x){var _=a("domain",c);_[0]>_[1]-1/4096&&(t.domain=c),o3.noneOrAll(r.domain,t.domain,c),t.tickmode==="sync"&&(t.tickmode="auto")}return a("layer"),t}});var IN=le((f9e,BN)=>{"use strict";var Mc=mr(),EN=qt(),r1e=Pu().isUnifiedHover,t1e=zb(),LN=ka(),a1e=D1(),qN=Ol(),n1e=yN(),PN=T9(),i1e=sh(),RN=k9(),S9=Cn(),Ys=S9.id2name,zN=S9.name2id,o1e=(Nn(),Tr(zn)).AX_ID_PATTERN,NN=_t(),l3=NN.traceIs,C9=NN.getComponentMethod;function s3(e,r,t){Array.isArray(e[r])?e[r].push(t):e[r]=[t]}BN.exports=function(r,t,a){var n=t.autotypenumbers,i={},o={},l={},s={},u={},f={},c={},h={},d={},m={},p,y;for(p=0;p{"use strict";var l1e=Ft(),HN=_t(),u3=mr(),Co=ha(),f3=Oa();ON.exports=function(r,t,a,n){var i=r._fullLayout;if(t.length===0){f3.redrawComponents(r);return}function o(y){var b=y.xaxis,C=y.yaxis;i._defs.select("#"+y.clipId+"> rect").call(Co.setTranslate,0,0).call(Co.setScale,1,1),y.plot.call(Co.setTranslate,b._offset,C._offset).call(Co.setScale,1,1);var x=y.plot.selectAll(".scatterlayer .trace");x.selectAll(".point").call(Co.setPointGroupScale,1,1),x.selectAll(".textpoint").call(Co.setTextPointsScale,1,1),x.call(Co.hideOutsideRangePoints,y)}function l(y,b){var C=y.plotinfo,x=C.xaxis,_=C.yaxis,M=x._length,T=_._length,A=!!y.xr1,E=!!y.yr1,P=[];if(A){var z=u3.simpleMap(y.xr0,x.r2l),B=u3.simpleMap(y.xr1,x.r2l),X=z[1]-z[0],I=B[1]-B[0];P[0]=(z[0]*(1-b)+b*B[0]-z[0])/(z[1]-z[0])*M,P[2]=M*(1-b+b*I/X),x.range[0]=x.l2r(z[0]*(1-b)+b*B[0]),x.range[1]=x.l2r(z[1]*(1-b)+b*B[1])}else P[0]=0,P[2]=M;if(E){var V=u3.simpleMap(y.yr0,_.r2l),H=u3.simpleMap(y.yr1,_.r2l),Q=V[1]-V[0],oe=H[1]-H[0];P[1]=(V[1]*(1-b)+b*H[1]-V[1])/(V[0]-V[1])*T,P[3]=T*(1-b+b*oe/Q),_.range[0]=x.l2r(V[0]*(1-b)+b*H[0]),_.range[1]=_.l2r(V[1]*(1-b)+b*H[1])}else P[1]=0,P[3]=T;f3.drawOne(r,x,{skipTitle:!0}),f3.drawOne(r,_,{skipTitle:!0}),f3.redrawComponents(r,[x._id,_._id]);var re=A?M/P[2]:1,te=E?T/P[3]:1,ie=A?P[0]:0,ce=E?P[1]:0,Me=A?P[0]/P[2]*M:0,De=E?P[1]/P[3]*T:0,Ie=x._offset-Me,Ue=_._offset-De;C.clipRect.call(Co.setTranslate,ie,ce).call(Co.setScale,1/re,1/te),C.plot.call(Co.setTranslate,Ie,Ue).call(Co.setScale,re,te),Co.setPointGroupScale(C.zoomScalePts,1/re,1/te),Co.setTextPointsScale(C.zoomScaleTxt,1/re,1/te)}var s;n&&(s=n());function u(){for(var y={},b=0;ba.duration?(u(),d=window.cancelAnimationFrame(p)):d=window.requestAnimationFrame(p)}return c=Date.now(),d=window.requestAnimationFrame(p),Promise.resolve()}});var D9=le(fi=>{"use strict";var v3=Ft(),GN=_t(),Tc=mr(),s1e=Sn(),u1e=ha(),YN=Rv().getModuleCalcData,G0=Cn(),Zl=(Nn(),Tr(zn)),f1e=(Kf(),Tr(Jf)),ea=Tc.ensureSingle;function c3(e,r,t){return Tc.ensureSingle(e,r,t,function(a){a.datum(t)})}var kc=Zl.zindexSeparator;fi.name="cartesian";fi.attr=["xaxis","yaxis"];fi.idRoot=["x","y"];fi.idRegex=Zl.idRegex;fi.attrRegex=Zl.attrRegex;fi.attributes=dN();fi.layoutAttributes=Ol();fi.supplyLayoutDefaults=IN();fi.transitionAxes=UN();fi.finalizeSubplots=function(e,r){var t=r._subplots,a=t.xaxis,n=t.yaxis,i=t.cartesian,o=i,l={},s={},u,f,c;for(u=0;u0){var d=h.id;if(d.indexOf(kc)!==-1)continue;d+=kc+(u+1),h=Tc.extendFlat({},h,{id:d,plot:n._cartesianlayer.selectAll(".subplot").select("."+d)})}for(var m=[],p,y=0;y1&&(M+=kc+_),x.push(l+M),o=0;o1,c=r.mainplotinfo;if(!r.mainplot||f)if(u)r.xlines=ea(a,"path","xlines-above"),r.ylines=ea(a,"path","ylines-above"),r.xaxislayer=ea(a,"g","xaxislayer-above"),r.yaxislayer=ea(a,"g","yaxislayer-above");else{if(!o){var h=ea(a,"g","layer-subplot");r.shapelayer=ea(h,"g","shapelayer"),r.imagelayer=ea(h,"g","imagelayer"),c&&f?(r.minorGridlayer=c.minorGridlayer,r.gridlayer=c.gridlayer,r.zerolinelayer=c.zerolinelayer):(r.minorGridlayer=ea(a,"g","minor-gridlayer"),r.gridlayer=ea(a,"g","gridlayer"),r.zerolinelayer=ea(a,"g","zerolinelayer"));var d=ea(a,"g","layer-between");r.shapelayerBetween=ea(d,"g","shapelayer"),r.imagelayerBetween=ea(d,"g","imagelayer"),ea(a,"path","xlines-below"),ea(a,"path","ylines-below"),r.overlinesBelow=ea(a,"g","overlines-below"),ea(a,"g","xaxislayer-below"),ea(a,"g","yaxislayer-below"),r.overaxesBelow=ea(a,"g","overaxes-below")}r.overplot=ea(a,"g","overplot"),r.plot=ea(r.overplot,"g",n),c&&f?r.zerolinelayerAbove=c.zerolinelayerAbove:r.zerolinelayerAbove=ea(a,"g","zerolinelayer-above"),o||(r.xlines=ea(a,"path","xlines-above"),r.ylines=ea(a,"path","ylines-above"),r.overlinesAbove=ea(a,"g","overlines-above"),ea(a,"g","xaxislayer-above"),ea(a,"g","yaxislayer-above"),r.overaxesAbove=ea(a,"g","overaxes-above"),r.xlines=a.select(".xlines-"+l),r.ylines=a.select(".ylines-"+s),r.xaxislayer=a.select(".xaxislayer-"+l),r.yaxislayer=a.select(".yaxislayer-"+s))}else{var m=c.plotgroup,p=n+"-x",y=n+"-y";r.minorGridlayer=c.minorGridlayer,r.gridlayer=c.gridlayer,r.zerolinelayer=c.zerolinelayer,r.zerolinelayerAbove=c.zerolinelayerAbove,ea(c.overlinesBelow,"path",p),ea(c.overlinesBelow,"path",y),ea(c.overaxesBelow,"g",p),ea(c.overaxesBelow,"g",y),r.plot=ea(c.overplot,"g",n),ea(c.overlinesAbove,"path",p),ea(c.overlinesAbove,"path",y),ea(c.overaxesAbove,"g",p),ea(c.overaxesAbove,"g",y),r.xlines=m.select(".overlines-"+l).select("."+p),r.ylines=m.select(".overlines-"+s).select("."+y),r.xaxislayer=m.select(".overaxes-"+l).select("."+p),r.yaxislayer=m.select(".overaxes-"+s).select("."+y)}o||(u||(c3(r.minorGridlayer,"g",r.xaxis._id),c3(r.minorGridlayer,"g",r.yaxis._id),r.minorGridlayer.selectAll("g").map(function(b){return b[0]}).sort(G0.idSort),c3(r.gridlayer,"g",r.xaxis._id),c3(r.gridlayer,"g",r.yaxis._id),r.gridlayer.selectAll("g").map(function(b){return b[0]}).sort(G0.idSort)),r.xlines.style("fill","none").classed("crisp",!0),r.ylines.style("fill","none").classed("crisp",!0))}function jN(e,r){if(e){var t={};e.each(function(s){var u=s[0],f=v3.select(this);f.remove(),WN(u,r),t[u]=!0});for(var a in r._plots)for(var n=r._plots[a],i=n.overlays||[],o=0;o{"use strict";var h3=_i();ZN.exports={hasLines:h3.hasLines,hasMarkers:h3.hasMarkers,hasText:h3.hasText,isBubble:h3.isBubble,attributes:bc(),layoutAttributes:Op(),supplyDefaults:lz(),crossTraceDefaults:cz(),supplyLayoutDefaults:hz(),calc:Jg().calc,crossTraceCalc:Oz(),arraysToCalcdata:Bh(),plot:rN(),colorbar:g9(),formatLabels:nN(),style:Gh().style,styleOnSelect:Gh().styleOnSelect,hoverPoints:uN(),selectPoints:vN(),animatable:!0,moduleType:"trace",name:"scatter",basePlotModule:D9(),categories:["cartesian","svg","symbols","errorBarsOK","showLegend","scatter-like","zoomScale"],meta:{}}});var QN=le((d9e,KN)=>{"use strict";var v1e=Ft(),h1e=qt(),JN=T7(),F9=mr(),d1e=F9.strScale,p1e=F9.strRotate,m1e=F9.strTranslate;KN.exports=function(r,t,a){var n=r.node(),i=JN[a.arrowhead||0],o=JN[a.startarrowhead||0],l=(a.arrowwidth||1)*(a.arrowsize||1),s=(a.arrowwidth||1)*(a.startarrowsize||1),u=t.indexOf("start")>=0,f=t.indexOf("end")>=0,c=i.backoff*l+a.standoff,h=o.backoff*s+a.startstandoff,d,m,p,y;if(n.nodeName==="line"){d={x:+r.attr("x1"),y:+r.attr("y1")},m={x:+r.attr("x2"),y:+r.attr("y2")};var b=d.x-m.x,C=d.y-m.y;if(p=Math.atan2(C,b),y=p+Math.PI,c&&h&&c+h>Math.sqrt(b*b+C*C)){V();return}if(c){if(c*c>b*b+C*C){V();return}var x=c*Math.cos(p),_=c*Math.sin(p);m.x+=x,m.y+=_,r.attr({x2:m.x,y2:m.y})}if(h){if(h*h>b*b+C*C){V();return}var M=h*Math.cos(p),T=h*Math.sin(p);d.x-=M,d.y-=T,r.attr({x1:d.x,y1:d.y})}}else if(n.nodeName==="path"){var A=n.getTotalLength(),E="";if(A{"use strict";var eB=Ft(),E9=_t(),g1e=Sn(),V0=mr(),L9=V0.strTranslate,Xh=Oa(),Cc=qt(),Uu=ha(),rB=Yl(),q9=si(),P9=P0(),Vh=Zo(),y1e=ka().arrayEditor,b1e=QN();nB.exports={draw:_1e,drawOne:tB,drawRaw:aB};function _1e(e){var r=e._fullLayout;r._infolayer.selectAll(".annotation").remove();for(var t=0;t2/3?Qr="right":Qr="center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[Qr]}for(var K=!1,J=["x","y"],ue=0;ue1)&&(Je===Ne?(Qe=ar.r2fraction(r["a"+_e]),(Qe<0||Qe>1)&&(K=!0)):K=!0),cr=ar._offset+ar.r2p(r[_e]),Oe=.5}else{var Be=Br==="domain";_e==="x"?(Te=r[_e],cr=Be?ar._offset+ar._length*Te:cr=l.l+l.w*Te):(Te=1-r[_e],cr=Be?ar._offset+ar._length*Te:cr=l.t+l.h*Te),Oe=r.showarrow?.5:Te}if(r.showarrow){Ze.head=cr;var Xe=r["a"+_e];if(Ar=fr*me(.5,r.xanchor)-Re*me(.5,r.yanchor),Je===Ne){var yr=Xh.getRefType(Je);yr==="domain"?(_e==="y"&&(Xe=1-Xe),Ze.tail=ar._offset+ar._length*Xe):yr==="paper"?_e==="y"?(Xe=1-Xe,Ze.tail=l.t+l.h*Xe):Ze.tail=l.l+l.w*Xe:Ze.tail=ar._offset+ar.r2p(Xe),Lr=Ar}else Ze.tail=cr+Xe,Lr=Ar+Xe;Ze.text=Ze.tail+Ar;var Cr=o[_e==="x"?"width":"height"];if(Ne==="paper"&&(Ze.head=V0.constrain(Ze.head,1,Cr-1)),Je==="pixel"){var pr=-Math.max(Ze.tail-3,Ze.text),xr=Math.min(Ze.tail+3,Ze.text)-Cr;pr>0?(Ze.tail+=pr,Ze.text+=pr):xr>0&&(Ze.tail-=xr,Ze.text-=xr)}Ze.tail+=dr,Ze.head+=dr}else Ar=sr*me(Oe,hr),Lr=Ar,Ze.text=cr+Ar;Ze.text+=dr,Ar+=dr,Lr+=dr,r["_"+_e+"padplus"]=sr/2+Lr,r["_"+_e+"padminus"]=sr/2-Lr,r["_"+_e+"size"]=sr,r["_"+_e+"shift"]=Ar}if(K){A.remove();return}var Rr=0,Er=0;if(r.align!=="left"&&(Rr=(ke-Ie)*(r.align==="center"?.5:1)),r.valign!=="top"&&(Er=(je-Ue)*(r.valign==="middle"?.5:1)),Me)ce.select("svg").attr({x:z+Rr-1,y:z+Er}).call(Uu.setClipUrl,X?p:null,e);else{var Or=z+Er-De.top,rr=z+Rr-De.left;Q.call(q9.positionText,rr,Or).call(Uu.setClipUrl,X?p:null,e)}I.select("rect").call(Uu.setRect,z,z,ke,je),B.call(Uu.setRect,E/2,E/2,W-E,ee-E),A.call(Uu.setTranslate,Math.round(y.x.text-W/2),Math.round(y.y.text-ee/2)),x.attr({transform:"rotate("+b+","+y.x.text+","+y.y.text+")"});var Sr=function(jr,Qr){C.selectAll(".annotation-arrow-g").remove();var qr=y.x.head,Wr=y.y.head,Ae=y.x.tail+jr,Pe=y.y.tail+Qr,ur=y.x.text+jr,gr=y.y.text+Qr,It=V0.rotationXYMatrix(b,ur,gr),Yt=V0.apply2DTransform(It),ia=V0.apply2DTransform2(It),Ta=+B.attr("width"),Ht=+B.attr("height"),Zt=ur-.5*Ta,ma=Zt+Ta,ra=gr-.5*Ht,xn=ra+Ht,on=[[Zt,ra,Zt,xn],[Zt,xn,ma,xn],[ma,xn,ma,ra],[ma,ra,Zt,ra]].map(ia);if(!on.reduce(function(na,Ea){return na^!!V0.segmentsIntersect(qr,Wr,qr+1e6,Wr+1e6,Ea[0],Ea[1],Ea[2],Ea[3])},!1)){on.forEach(function(na){var Ea=V0.segmentsIntersect(Ae,Pe,qr,Wr,na[0],na[1],na[2],na[3]);Ea&&(Ae=Ea.x,Pe=Ea.y)});var Wn=r.arrowwidth,Jr=r.arrowcolor,ua=r.arrowside,zt=C.append("g").style({opacity:Cc.opacity(Jr)}).classed("annotation-arrow-g",!0),ga=zt.append("path").attr("d","M"+Ae+","+Pe+"L"+qr+","+Wr).style("stroke-width",Wn+"px").call(Cc.stroke,Cc.rgb(Jr));if(b1e(ga,ua,r),s.annotationPosition&&ga.node().parentNode&&!a){var ba=qr,_a=Wr;if(r.standoff){var Vt=Math.sqrt(Math.pow(qr-Ae,2)+Math.pow(Wr-Pe,2));ba+=r.standoff*(Ae-qr)/Vt,_a+=r.standoff*(Pe-Wr)/Vt}var Na=zt.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(Ae-ba)+","+(Pe-_a),transform:L9(ba,_a)}).style("stroke-width",Wn+6+"px").call(Cc.stroke,"rgba(0,0,0,0)").call(Cc.fill,"rgba(0,0,0,0)"),wn,ya;Vh.init({element:Na.node(),gd:e,prepFn:function(){var na=Uu.getTranslate(A);wn=na.x,ya=na.y,n&&n.autorange&&h(n._name+".autorange",!0),i&&i.autorange&&h(i._name+".autorange",!0)},moveFn:function(na,Ea){var Da=Yt(wn,ya),Eo=Da[0]+na,Bi=Da[1]+Ea;A.call(Uu.setTranslate,Eo,Bi),d("x",Y0(n,na,"x",l,r)),d("y",Y0(i,Ea,"y",l,r)),r.axref===r.xref&&d("ax",Y0(n,na,"ax",l,r)),r.ayref===r.yref&&d("ay",Y0(i,Ea,"ay",l,r)),zt.attr("transform",L9(na,Ea)),x.attr({transform:"rotate("+b+","+Eo+","+Bi+")"})},doneFn:function(){E9.call("_guiRelayout",e,m());var na=document.querySelector(".js-notes-box-panel");na&&na.redraw(na.selectedObj)}})}}};if(r.showarrow&&Sr(0,0),_){var vr;Vh.init({element:A.node(),gd:e,prepFn:function(){vr=x.attr("transform")},moveFn:function(jr,Qr){var qr="pointer";if(r.showarrow)r.axref===r.xref?d("ax",Y0(n,jr,"ax",l,r)):d("ax",r.ax+jr),r.ayref===r.yref?d("ay",Y0(i,Qr,"ay",l.w,r)):d("ay",r.ay+Qr),Sr(jr,Qr);else{if(a)return;var Wr,Ae;if(n)Wr=Y0(n,jr,"x",l,r);else{var Pe=r._xsize/l.w,ur=r.x+(r._xshift-r.xshift)/l.w-Pe/2;Wr=Vh.align(ur+jr/l.w,Pe,0,1,r.xanchor)}if(i)Ae=Y0(i,Qr,"y",l,r);else{var gr=r._ysize/l.h,It=r.y-(r._yshift+r.yshift)/l.h-gr/2;Ae=Vh.align(It-Qr/l.h,gr,0,1,r.yanchor)}d("x",Wr),d("y",Ae),(!n||!i)&&(qr=Vh.getCursor(n?.5:Wr,i?.5:Ae,r.xanchor,r.yanchor))}x.attr({transform:L9(jr,Qr)+vr}),P9(A,qr)},clickFn:function(jr,Qr){r.captureevents&&e.emit("plotly_clickannotation",T(Qr))},doneFn:function(){P9(A),E9.call("_guiRelayout",e,m());var jr=document.querySelector(".js-notes-box-panel");jr&&jr.redraw(jr.selectedObj)}})}}s.annotationText?Q.call(q9.makeEditable,{delegate:A,gd:e}).call(oe).on("edit",function(te){r.text=te,this.call(oe),d("text",te),n&&n.autorange&&h(n._name+".autorange",!0),i&&i.autorange&&h(i._name+".autorange",!0),E9.call("_guiRelayout",e,m())}):Q.call(oe)}});var fB=le((m9e,uB)=>{"use strict";var iB=mr(),x1e=_t(),oB=ka().arrayEditor;uB.exports={hasClickToShow:w1e,onClick:A1e};function w1e(e,r){var t=sB(e,r);return t.on.length>0||t.explicitOff.length>0}function A1e(e,r){var t=sB(e,r),a=t.on,n=t.off.concat(t.explicitOff),i={},o=e._fullLayout.annotations,l,s;if(a.length||n.length){for(l=0;l{"use strict";var R9=mr(),w2=qt();cB.exports=function(r,t,a,n){n("opacity");var i=n("bgcolor"),o=n("bordercolor"),l=w2.opacity(o);n("borderpad");var s=n("borderwidth"),u=n("showarrow");n("text",u?" ":a._dfltTitle.annotation),n("textangle"),R9.coerceFont(n,"font",a.font),n("width"),n("align");var f=n("height");if(f&&n("valign"),u){var c=n("arrowside"),h,d;c.indexOf("end")!==-1&&(h=n("arrowhead"),d=n("arrowsize")),c.indexOf("start")!==-1&&(n("startarrowhead",h),n("startarrowsize",d)),n("arrowcolor",l?t.bordercolor:w2.defaultLine),n("arrowwidth",(l&&s||1)*2),n("standoff"),n("startstandoff")}var m=n("hovertext"),p=a.hoverlabel||{};if(m){var y=n("hoverlabel.bgcolor",p.bgcolor||(w2.opacity(i)?w2.rgb(i):w2.defaultLine)),b=n("hoverlabel.bordercolor",p.bordercolor||w2.contrast(y)),C=R9.extendFlat({},p.font);C.color||(C.color=b),R9.coerceFont(n,"hoverlabel.font",C)}n("captureevents",!!m)}});var hB=le((y9e,vB)=>{"use strict";var N9=mr(),Sc=Oa(),M1e=Ul(),T1e=z9(),k1e=h2();vB.exports=function(r,t){M1e(r,t,{name:"annotations",handleItemDefaults:C1e})};function C1e(e,r,t){function a(x,_){return N9.coerce(e,r,k1e,x,_)}var n=a("visible"),i=a("clicktoshow");if(n||i){T1e(e,r,t,a);for(var o=r.showarrow,l=["x","y"],s=[-10,-30],u={_fullLayout:t},f=0;f<2;f++){var c=l[f],h=Sc.coerceRef(e,r,u,c,"","paper");if(h!=="paper"){var d=Sc.getFromId(u,h);d._annIndices.push(r._index)}if(Sc.coercePosition(r,u,a,h,c,.5),o){var m="a"+c,p=Sc.coerceRef(e,r,u,m,"pixel",["pixel","paper"]);p!=="pixel"&&p!==h&&(p=r[m]="pixel");var y=p==="pixel"?s[f]:.4;Sc.coercePosition(r,u,a,p,m,y)}a(c+"anchor"),a(c+"shift")}if(N9.noneOrAll(e,r,["x","y"]),o&&N9.noneOrAll(e,r,["ax","ay"]),i){var b=a("xclick"),C=a("yclick");r._xclick=b===void 0?r.x:Sc.cleanPosition(b,u,r.xref),r._yclick=C===void 0?r.y:Sc.cleanPosition(C,u,r.yref)}}}});var mB=le((b9e,pB)=>{"use strict";var B9=mr(),Dc=Oa(),S1e=d3().draw;pB.exports=function(r){var t=r._fullLayout,a=B9.filterVisible(t.annotations);if(a.length&&r._fullData.length)return B9.syncOrAsync([S1e,D1e],r)};function D1e(e){var r=e._fullLayout;B9.filterVisible(r.annotations).forEach(function(t){var a=Dc.getFromId(e,t.xref),n=Dc.getFromId(e,t.yref),i=Dc.getRefType(t.xref),o=Dc.getRefType(t.yref);t._extremes={},i==="range"&&dB(t,a),o==="range"&&dB(t,n)})}function dB(e,r){var t=r._id,a=t.charAt(0),n=e[a],i=e["a"+a],o=e[a+"ref"],l=e["a"+a+"ref"],s=e["_"+a+"padplus"],u=e["_"+a+"padminus"],f={x:1,y:-1}[a]*e[a+"shift"],c=3*e.arrowsize*e.arrowwidth||0,h=c+f,d=c-f,m=3*e.startarrowsize*e.arrowwidth||0,p=m+f,y=m-f,b;if(l===o){var C=Dc.findExtremes(r,[r.r2c(n)],{ppadplus:h,ppadminus:d}),x=Dc.findExtremes(r,[r.r2c(i)],{ppadplus:Math.max(s,p),ppadminus:Math.max(u,y)});b={min:[C.min[0],x.min[0]],max:[C.max[0],x.max[0]]}}else p=i?p+i:p,y=i?y-i:y,b=Dc.findExtremes(r,[r.r2c(n)],{ppadplus:Math.max(s,h,p),ppadminus:Math.max(u,d,y)});e._extremes[t]=b}});var yB=le((_9e,gB)=>{"use strict";var F1e=Wt(),E1e=Pd();gB.exports=function(r,t,a,n){t=t||{};var i=a==="log"&&t.type==="linear",o=a==="linear"&&t.type==="log";if(!(i||o))return;var l=r._fullLayout.annotations,s=t._id.charAt(0),u,f;function c(d){var m=u[d],p=null;i?p=E1e(m,t.range):p=Math.pow(10,m),F1e(p)||(p=null),n(f+d,p)}for(var h=0;h{"use strict";var I9=d3(),bB=fB();_B.exports={moduleType:"component",name:"annotations",layoutAttributes:h2(),supplyLayoutDefaults:hB(),includeBasePlot:Ch()("annotations"),calcAutorange:mB(),draw:I9.draw,drawOne:I9.drawOne,drawRaw:I9.drawRaw,hasClickToShow:bB.hasClickToShow,onClick:bB.onClick,convertCoords:yB()}});var p3=le((w9e,wB)=>{"use strict";var Sa=h2(),L1e=Yo().overrideAll,q1e=ka().templatedArray;wB.exports=L1e(q1e("annotation",{visible:Sa.visible,x:{valType:"any"},y:{valType:"any"},z:{valType:"any"},ax:{valType:"number"},ay:{valType:"number"},xanchor:Sa.xanchor,xshift:Sa.xshift,yanchor:Sa.yanchor,yshift:Sa.yshift,text:Sa.text,textangle:Sa.textangle,font:Sa.font,width:Sa.width,height:Sa.height,opacity:Sa.opacity,align:Sa.align,valign:Sa.valign,bgcolor:Sa.bgcolor,bordercolor:Sa.bordercolor,borderpad:Sa.borderpad,borderwidth:Sa.borderwidth,showarrow:Sa.showarrow,arrowcolor:Sa.arrowcolor,arrowhead:Sa.arrowhead,startarrowhead:Sa.startarrowhead,arrowside:Sa.arrowside,arrowsize:Sa.arrowsize,startarrowsize:Sa.startarrowsize,arrowwidth:Sa.arrowwidth,standoff:Sa.standoff,startstandoff:Sa.startstandoff,hovertext:Sa.hovertext,hoverlabel:Sa.hoverlabel,captureevents:Sa.captureevents}),"calc","from-root")});var MB=le((A9e,AB)=>{"use strict";var H9=mr(),P1e=Oa(),R1e=Ul(),z1e=z9(),N1e=p3();AB.exports=function(r,t,a){R1e(r,t,{name:"annotations",handleItemDefaults:B1e,fullLayout:a.fullLayout})};function B1e(e,r,t,a){function n(l,s){return H9.coerce(e,r,N1e,l,s)}function i(l){var s=l+"axis",u={_fullLayout:{}};return u._fullLayout[s]=t[s],P1e.coercePosition(r,u,n,l,l,.5)}var o=n("visible");o&&(z1e(e,r,a.fullLayout,n),i("x"),i("y"),i("z"),H9.noneOrAll(e,r,["x","y","z"]),r.xref="x",r.yref="y",r.zref="z",n("xanchor"),n("yanchor"),n("xshift"),n("yshift"),r.showarrow&&(r.axref="pixel",r.ayref="pixel",n("ax",-10),n("ay",-30),H9.noneOrAll(e,r,["ax","ay"])))}});var SB=le((M9e,CB)=>{"use strict";var TB=mr(),kB=Oa();CB.exports=function(r){for(var t=r.fullSceneLayout,a=t.annotations,n=0;n{"use strict";function O9(e,r){var t=[0,0,0,0],a,n;for(a=0;a<4;++a)for(n=0;n<4;++n)t[n]+=e[4*a+n]*r[a];return t}function H1e(e,r){var t=O9(e.projection,O9(e.view,O9(e.model,[r[0],r[1],r[2],1])));return t}DB.exports=H1e});var LB=le((k9e,EB)=>{"use strict";var O1e=d3().drawRaw,U1e=FB(),G1e=["x","y","z"];EB.exports=function(r){for(var t=r.fullSceneLayout,a=r.dataScale,n=t.annotations,i=0;i1){l=!0;break}}l?r.fullLayout._infolayer.select(".annotation-"+r.id+'[data-index="'+i+'"]').remove():(o._pdata=U1e(r.glplot.cameraParams,[t.xaxis.r2l(o.x)*a[0],t.yaxis.r2l(o.y)*a[1],t.zaxis.r2l(o.z)*a[2]]),O1e(r.graphDiv,o,i,r.id,o._xa,o._ya))}}});var RB=le((C9e,PB)=>{"use strict";var Y1e=_t(),qB=mr();PB.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:p3()}}},layoutAttributes:p3(),handleDefaults:MB(),includeBasePlot:V1e,convert:SB(),draw:LB()};function V1e(e,r){var t=Y1e.subplotsRegistry.gl3d;if(t)for(var a=t.attrRegex,n=Object.keys(e),i=0;i{"use strict";var S9e=(Nn(),Tr(zn)),zB=gi(),NB=bc().line,X1e=Cs().dash,$l=Tn().extendFlat,j1e=ka().templatedArray,D9e=(Th(),Tr(Mh)),A2=Go(),BB=h2(),{shapeTexttemplateAttrs:W1e,templatefallbackAttrs:Z1e}=Gf(),$1e=mp();IB.exports=j1e("shape",{visible:$l({},A2.visible,{editType:"calc+arraydraw"}),showlegend:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},legend:$l({},A2.legend,{editType:"calc+arraydraw"}),legendgroup:$l({},A2.legendgroup,{editType:"calc+arraydraw"}),legendgrouptitle:{text:$l({},A2.legendgrouptitle.text,{editType:"calc+arraydraw"}),font:zB({editType:"calc+arraydraw"}),editType:"calc+arraydraw"},legendrank:$l({},A2.legendrank,{editType:"calc+arraydraw"}),legendwidth:$l({},A2.legendwidth,{editType:"calc+arraydraw"}),type:{valType:"enumerated",values:["circle","rect","path","line"],editType:"calc+arraydraw"},layer:{valType:"enumerated",values:["below","above","between"],dflt:"above",editType:"arraydraw"},xref:$l({},BB.xref,{arrayOk:!0}),xsizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},xanchor:{valType:"any",editType:"calc+arraydraw"},x0:{valType:"any",editType:"calc+arraydraw"},x1:{valType:"any",editType:"calc+arraydraw"},x0shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},x1shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},yref:$l({},BB.yref,{arrayOk:!0}),ysizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},yanchor:{valType:"any",editType:"calc+arraydraw"},y0:{valType:"any",editType:"calc+arraydraw"},y1:{valType:"any",editType:"calc+arraydraw"},y0shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},y1shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},path:{valType:"string",editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},line:{color:$l({},NB.color,{editType:"arraydraw"}),width:$l({},NB.width,{editType:"calc+arraydraw"}),dash:$l({},X1e,{editType:"arraydraw"}),editType:"calc+arraydraw"},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd",editType:"arraydraw"},editable:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},label:{text:{valType:"string",dflt:"",editType:"arraydraw"},texttemplate:W1e({},{keys:Object.keys($1e)}),texttemplatefallback:Z1e({editType:"arraydraw"}),font:zB({editType:"calc+arraydraw",colorEditType:"arraydraw"}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"],editType:"arraydraw"},textangle:{valType:"angle",dflt:"auto",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],editType:"calc+arraydraw"},padding:{valType:"number",dflt:3,min:0,editType:"arraydraw"},editType:"arraydraw"},editType:"arraydraw"})});var OB=le((E9e,HB)=>{"use strict";var M2=mr(),So=Oa(),J1e=Ul(),K1e=U9(),jh=I0();HB.exports=function(r,t){J1e(r,t,{name:"shapes",handleItemDefaults:e2e})};function Q1e(e,r){return e?"bottom":r.indexOf("top")!==-1?"top":r.indexOf("bottom")!==-1?"bottom":"middle"}function e2e(e,r,t){function a(x,_){return M2.coerce(e,r,K1e,x,_)}r._isShape=!0;var n=a("visible");if(!n)return;var i=a("showlegend");a("legend"),a("legendgroup"),i&&(a("legendwidth"),a("legendgrouptitle.text"),M2.coerceFont(a,"legendgrouptitle.font"),a("legendrank"));var o=a("path"),l=o?"path":"rect",s=a("type",l),u=s!=="path";u&&delete r.path,a("editable"),a("layer"),a("opacity"),a("fillcolor"),a("fillrule");var f=a("line.width");f&&(a("line.color"),a("line.dash"));var c=a("xsizemode"),h=a("ysizemode");let d=[.25,.75],m=[0,10];["x","y"].forEach(x=>{var _=x+"anchor",M=x==="x"?c:h,T={_fullLayout:t},A,E,P,z;let B=x+"ref",X=e[B];if(Array.isArray(X)&&X.length>0){let I=jh.countDefiningCoords(s,o,x);z=So.coerceRefArray(e,r,T,x,void 0,"paper",I),r["_"+x+"refArray"]=!0}else z=So.coerceRef(e,r,T,x,void 0,"paper");if(Array.isArray(z))z.forEach(function(I){So.getRefType(I)==="range"&&(A=So.getFromId(T,I),A&&A._shapeIndices.indexOf(r._index)===-1&&A._shapeIndices.push(r._index))}),u&&[0,1].forEach(function(I){let V=z[I];So.getRefType(V)==="range"?(A=So.getFromId(T,V),E=jh.shapePositionToRange(A),P=jh.rangeToShapePosition(A),(A.type==="category"||A.type==="multicategory")&&a(x+I+"shift")):E=P=M2.identity;let Q=x+I,oe=e[Q];if(e[Q]=E(e[Q],!0),M==="pixel"?a(Q,m[I]):So.coercePosition(r,T,a,V,Q,d[I]),r[Q]=P(r[Q]),e[Q]=oe,I===0&&M==="pixel"){let re=e[_];e[_]=E(e[_],!0),So.coercePosition(r,T,a,V,_,.25),r[_]=P(r[_]),e[_]=re}});else{if(So.getRefType(z)==="range"?(A=So.getFromId(T,z),A._shapeIndices.push(r._index),P=jh.rangeToShapePosition(A),E=jh.shapePositionToRange(A),u&&(A.type==="category"||A.type==="multicategory")&&(a(x+"0shift"),a(x+"1shift"))):E=P=M2.identity,u){let V=x+"0",H=x+"1",Q=e[V],oe=e[H];e[V]=E(e[V],!0),e[H]=E(e[H],!0),M==="pixel"?(a(V,m[0]),a(H,m[1])):(So.coercePosition(r,T,a,z,V,d[0]),So.coercePosition(r,T,a,z,H,d[1])),r[V]=P(r[V]),r[H]=P(r[H]),e[V]=Q,e[H]=oe}if(M==="pixel"){let V=e[_];e[_]=E(e[_],!0),So.coercePosition(r,T,a,z,_,.25),r[_]=P(r[_]),e[_]=V}}}),u&&M2.noneOrAll(e,r,["x0","x1","y0","y1"]);var p=s==="line",y,b;if(u&&(y=a("label.texttemplate"),a("label.texttemplatefallback")),y||(b=a("label.text")),b||y){a("label.textangle");var C=a("label.textposition",p?"middle":"middle center");a("label.xanchor"),a("label.yanchor",Q1e(p,C)),a("label.padding"),M2.coerceFont(a,"label.font",t.font)}}});var YB=le((L9e,GB)=>{"use strict";var r2e=qt(),UB=mr();function t2e(e,r){return e?"bottom":r.indexOf("top")!==-1?"top":r.indexOf("bottom")!==-1?"bottom":"middle"}GB.exports=function(r,t,a){a("newshape.visible"),a("newshape.name"),a("newshape.showlegend"),a("newshape.legend"),a("newshape.legendwidth"),a("newshape.legendgroup"),a("newshape.legendgrouptitle.text"),UB.coerceFont(a,"newshape.legendgrouptitle.font"),a("newshape.legendrank"),a("newshape.drawdirection"),a("newshape.layer"),a("newshape.fillcolor"),a("newshape.fillrule"),a("newshape.opacity");var n=a("newshape.line.width");if(n){var i=(r||{}).plot_bgcolor||"#FFF";a("newshape.line.color",r2e.contrast(i)),a("newshape.line.dash")}var o=r.dragmode==="drawline",l=a("newshape.label.text"),s=a("newshape.label.texttemplate");if(a("newshape.label.texttemplatefallback"),l||s){a("newshape.label.textangle");var u=a("newshape.label.textposition",o?"middle":"middle center");a("newshape.label.xanchor"),a("newshape.label.yanchor",t2e(o,u)),a("newshape.label.padding"),UB.coerceFont(a,"newshape.label.font",t.font)}a("activeshape.fillcolor"),a("activeshape.opacity")}});var JB=le((q9e,$B)=>{"use strict";var G9=mr(),sl=Oa(),Vs=(nh(),Tr(ah)),Y9=I0();$B.exports=function(r){var t=r._fullLayout,a=G9.filterVisible(t.shapes);if(!(!a.length||!r._fullData.length))for(var n=0;n{o=sl.getFromId(r,c),i._extremes[o._id]=sl.findExtremes(o,h,XB(i))})}else i.xref!=="paper"&&s!=="domain"&&(o=sl.getFromId(r,i.xref),l=WB(o,i,Vs.paramIsX),l&&(i._extremes[o._id]=sl.findExtremes(o,l,XB(i))));if(u==="array"){let f=VB(r,i,"y");Object.entries(f).forEach(([c,h])=>{o=sl.getFromId(r,c),i._extremes[o._id]=sl.findExtremes(o,h,jB(i))})}else i.yref!=="paper"&&u!=="domain"&&(o=sl.getFromId(r,i.yref),l=WB(o,i,Vs.paramIsY),l&&(i._extremes[o._id]=sl.findExtremes(o,l,jB(i))))}};function VB(e,r,t){let a=r[t+"ref"],n=t==="x"?Vs.paramIsX:Vs.paramIsY;function i(c,h){c==="paper"||sl.getRefType(c)==="domain"||(o[c]||(o[c]=[]),o[c].push(h))}let o={};if(r.type==="path"&&r.path){let c=r.path.match(Vs.segmentRE)||[];for(var l=0,s=0;sm&&(i(a[l],p[m]),l++)}}else i(a[0],r[t+"0"]),i(a[1],r[t+"1"]);let u={};for(let c in o){let h=sl.getFromId(e,c);if(h){var f=h.type==="category"||h.type==="multicategory"?h.r2c:h.d2c;h.type==="date"&&(f=Y9.decodeDate(f)),u[h._id]=o[c].map(f)}}return u}function XB(e){return ZB(e.line.width,e.xsizemode,e.x0,e.x1,e.path,!1)}function jB(e){return ZB(e.line.width,e.ysizemode,e.y0,e.y1,e.path,!0)}function ZB(e,r,t,a,n,i){var o=e/2,l=i;if(r==="pixel"){var s=n?Y9.extractPathCoords(n,i?Vs.paramIsY:Vs.paramIsX):[t,a],u=G9.aggNums(Math.max,null,s),f=G9.aggNums(Math.min,null,s),c=f<0?Math.abs(f)+o:o,h=u>0?u+o:o;return{ppad:o,ppadplus:l?c:h,ppadminus:l?h:c}}else return{ppad:o}}function WB(e,r,t){var a=e._id.charAt(0)==="x"?"x":"y",n=e.type==="category"||e.type==="multicategory",i,o,l=0,s=0,u=n?e.r2c:e.d2c,f=r[a+"sizemode"]==="scaled";if(f?(i=r[a+"0"],o=r[a+"1"],n&&(l=r[a+"0shift"],s=r[a+"1shift"])):(i=r[a+"anchor"],o=r[a+"anchor"]),i!==void 0)return[u(i)+l,u(o)+s];if(r.path){var c=1/0,h=-1/0,d=r.path.match(Vs.segmentRE),m,p,y,b,C;for(e.type==="date"&&(u=Y9.decodeDate(u)),m=0;mh&&(h=C)));if(h>=c)return[c,h]}}});var eI=le((P9e,QB)=>{"use strict";var KB=rg();QB.exports={moduleType:"component",name:"shapes",layoutAttributes:U9(),supplyLayoutDefaults:OB(),supplyDrawNewShapeDefaults:YB(),includeBasePlot:Ch()("shapes"),calcAutorange:JB(),draw:KB.draw,drawOne:KB.drawOne}});var V9=le((z9e,tI)=>{"use strict";var rI=(Nn(),Tr(zn)),a2e=ka().templatedArray,R9e=(Th(),Tr(Mh));tI.exports=a2e("image",{visible:{valType:"boolean",dflt:!0,editType:"arraydraw"},source:{valType:"string",editType:"arraydraw"},layer:{valType:"enumerated",values:["below","above"],dflt:"above",editType:"arraydraw"},sizex:{valType:"number",dflt:0,editType:"arraydraw"},sizey:{valType:"number",dflt:0,editType:"arraydraw"},sizing:{valType:"enumerated",values:["fill","contain","stretch"],dflt:"contain",editType:"arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},x:{valType:"any",dflt:0,editType:"arraydraw"},y:{valType:"any",dflt:0,editType:"arraydraw"},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left",editType:"arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],dflt:"top",editType:"arraydraw"},xref:{valType:"enumerated",values:["paper",rI.idRegex.x.toString()],dflt:"paper",editType:"arraydraw"},yref:{valType:"enumerated",values:["paper",rI.idRegex.y.toString()],dflt:"paper",editType:"arraydraw"},editType:"arraydraw"})});var nI=le((N9e,aI)=>{"use strict";var n2e=mr(),X9=Oa(),i2e=Ul(),o2e=V9(),l2e="images";aI.exports=function(r,t){var a={name:l2e,handleItemDefaults:s2e};i2e(r,t,a)};function s2e(e,r,t){function a(h,d){return n2e.coerce(e,r,o2e,h,d)}var n=a("source"),i=a("visible",!!n);if(!i)return r;a("layer"),a("xanchor"),a("yanchor"),a("sizex"),a("sizey"),a("sizing"),a("opacity");for(var o={_fullLayout:t},l=["x","y"],s=0;s<2;s++){var u=l[s],f=X9.coerceRef(e,r,o,u,"paper",void 0);if(f!=="paper"){var c=X9.getFromId(o,f);c._imgIndices.push(r._index)}X9.coercePosition(r,o,a,f,u,0)}return r}});var sI=le((B9e,lI)=>{"use strict";var iI=Ft(),u2e=ha(),T2=Oa(),oI=Cn(),f2e=(Kf(),Tr(Jf));lI.exports=function(r){var t=r._fullLayout,a=[],n={},i=[],o,l;for(l=0;l{"use strict";var uI=Wt(),c2e=Pd();fI.exports=function(r,t,a,n){t=t||{};var i=a==="log"&&t.type==="linear",o=a==="linear"&&t.type==="log";if(i||o){for(var l=r._fullLayout.images,s=t._id.charAt(0),u,f,c=0;c{"use strict";vI.exports={moduleType:"component",name:"images",layoutAttributes:V9(),supplyLayoutDefaults:nI(),includeBasePlot:Ch()("images"),draw:sI(),convertCoords:cI()}});var m3={};Ha(m3,{activeColor:()=>z2e,arrowOffsetX:()=>q2e,arrowPadX:()=>S2e,arrowSymbol:()=>B2e,autoMarginIdRoot:()=>A2e,blankHeaderOpts:()=>M2e,buttonClassName:()=>b2e,containerClassName:()=>h2e,dropdownButtonClassName:()=>y2e,dropdownButtonGroupClassName:()=>g2e,gapButton:()=>R2e,gapButtonHeader:()=>P2e,headerArrowClassName:()=>m2e,headerClassName:()=>p2e,headerGroupClassName:()=>d2e,hoverColor:()=>N2e,itemRectClassName:()=>_2e,itemTextClassName:()=>x2e,menuIndexAttrName:()=>w2e,minHeight:()=>k2e,minWidth:()=>T2e,name:()=>v2e,rx:()=>D2e,ry:()=>F2e,textOffsetX:()=>E2e,textOffsetY:()=>L2e,textPadX:()=>C2e});var v2e,h2e,d2e,p2e,m2e,g2e,y2e,b2e,_2e,x2e,w2e,A2e,M2e,T2e,k2e,C2e,S2e,D2e,F2e,E2e,L2e,q2e,P2e,R2e,z2e,N2e,B2e,g3=Ia(()=>{"use strict";v2e="updatemenus",h2e="updatemenu-container",d2e="updatemenu-header-group",p2e="updatemenu-header",m2e="updatemenu-header-arrow",g2e="updatemenu-dropdown-button-group",y2e="updatemenu-dropdown-button",b2e="updatemenu-button",_2e="updatemenu-item-rect",x2e="updatemenu-item-text",w2e="updatemenu-active-index",A2e="updatemenu-",M2e={label:" "},T2e=30,k2e=30,C2e=24,S2e=16,D2e=2,F2e=2,E2e=12,L2e=3,q2e=4,P2e=5,R2e=2,z2e="#F4FAFF",N2e="#F4FAFF",B2e={left:"\u25C4",right:"\u25BA",up:"\u25B2",down:"\u25BC"}});var j9=le((O9e,pI)=>{"use strict";var I2e=gi(),H2e=zl(),O2e=Tn().extendFlat,U2e=Yo().overrideAll,G2e=gp(),dI=ka().templatedArray,Y2e=dI("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}});pI.exports=U2e(dI("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:Y2e,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:O2e(G2e({editType:"arraydraw"}),{}),font:I2e({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:H2e.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")});var bI=le((U9e,yI)=>{"use strict";var y3=mr(),mI=Ul(),gI=j9(),V2e=(g3(),Tr(m3)),X2e=V2e.name,j2e=gI.buttons;yI.exports=function(r,t){var a={name:X2e,handleItemDefaults:W2e};mI(r,t,a)};function W2e(e,r,t){function a(o,l){return y3.coerce(e,r,gI,o,l)}var n=mI(e,r,{name:"buttons",handleItemDefaults:Z2e}),i=a("visible",n.length>0);i&&(a("active"),a("direction"),a("type"),a("showactive"),a("x"),a("y"),y3.noneOrAll(e,r,["x","y"]),a("xanchor"),a("yanchor"),a("pad.t"),a("pad.r"),a("pad.b"),a("pad.l"),y3.coerceFont(a,"font",t.font),a("bgcolor",t.paper_bgcolor),a("bordercolor"),a("borderwidth"))}function Z2e(e,r){function t(n,i){return y3.coerce(e,r,j2e,n,i)}var a=t("visible",e.method==="skip"||Array.isArray(e.args));a&&(t("method"),t("args"),t("args2"),t("label"),t("execute"))}});var wI=le((G9e,xI)=>{"use strict";xI.exports=Va;var Jl=Ft(),_I=qt(),k2=ha(),b3=mr();function Va(e,r,t){this.gd=e,this.container=r,this.id=t,this.position=null,this.translateX=null,this.translateY=null,this.hbar=null,this.vbar=null,this.bg=this.container.selectAll("rect.scrollbox-bg").data([0]),this.bg.exit().on(".drag",null).on("wheel",null).remove(),this.bg.enter().append("rect").classed("scrollbox-bg",!0).style("pointer-events","all").attr({opacity:0,x:0,y:0,width:0,height:0})}Va.barWidth=2;Va.barLength=20;Va.barRadius=2;Va.barPad=1;Va.barColor="#808BA4";Va.prototype.enable=function(r,t,a){var n=this.gd._fullLayout,i=n.width,o=n.height;this.position=r;var l=this.position.l,s=this.position.w,u=this.position.t,f=this.position.h,c=this.position.direction,h=c==="down",d=c==="left",m=c==="right",p=c==="up",y=s,b=f,C,x,_,M;!h&&!d&&!m&&!p&&(this.position.direction="down",h=!0);var T=h||p;T?(C=l,x=C+y,h?(_=u,M=Math.min(_+b,o),b=M-_):(M=u+b,_=Math.max(M-b,0),b=M-_)):(_=u,M=_+b,d?(x=l+y,C=Math.max(x-y,0),y=x-C):(C=l,x=Math.min(C+y,i),y=x-C)),this._box={l:C,t:_,w:y,h:b};var A=s>y,E=Va.barLength+2*Va.barPad,P=Va.barWidth+2*Va.barPad,z=l,B=u+f;B+P>o&&(B=o-P);var X=this.container.selectAll("rect.scrollbar-horizontal").data(A?[0]:[]);X.exit().on(".drag",null).remove(),X.enter().append("rect").classed("scrollbar-horizontal",!0).call(_I.fill,Va.barColor),A?(this.hbar=X.attr({rx:Va.barRadius,ry:Va.barRadius,x:z,y:B,width:E,height:P}),this._hbarXMin=z+E/2,this._hbarTranslateMax=y-E):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var I=f>b,V=Va.barWidth+2*Va.barPad,H=Va.barLength+2*Va.barPad,Q=l+s,oe=u;Q+V>i&&(Q=i-V);var re=this.container.selectAll("rect.scrollbar-vertical").data(I?[0]:[]);re.exit().on(".drag",null).remove(),re.enter().append("rect").classed("scrollbar-vertical",!0).call(_I.fill,Va.barColor),I?(this.vbar=re.attr({rx:Va.barRadius,ry:Va.barRadius,x:Q,y:oe,width:V,height:H}),this._vbarYMin=oe+H/2,this._vbarTranslateMax=b-H):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var te=this.id,ie=C-.5,ce=I?x+V+.5:x+.5,Me=_-.5,De=A?M+P+.5:M+.5,Ie=n._topdefs.selectAll("#"+te).data(A||I?[0]:[]);if(Ie.exit().remove(),Ie.enter().append("clipPath").attr("id",te).append("rect"),A||I?(this._clipRect=Ie.select("rect").attr({x:Math.floor(ie),y:Math.floor(Me),width:Math.ceil(ce)-Math.floor(ie),height:Math.ceil(De)-Math.floor(Me)}),this.container.call(k2.setClipUrl,te,this.gd),this.bg.attr({x:l,y:u,width:s,height:f})):(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(k2.setClipUrl,null),delete this._clipRect),A||I){var Ue=Jl.behavior.drag().on("dragstart",function(){Jl.event.sourceEvent.preventDefault()}).on("drag",this._onBoxDrag.bind(this));this.container.on("wheel",null).on("wheel",this._onBoxWheel.bind(this)).on(".drag",null).call(Ue);var ke=Jl.behavior.drag().on("dragstart",function(){Jl.event.sourceEvent.preventDefault(),Jl.event.sourceEvent.stopPropagation()}).on("drag",this._onBarDrag.bind(this));A&&this.hbar.on(".drag",null).call(ke),I&&this.vbar.on(".drag",null).call(ke)}this.setTranslate(t,a)};Va.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(k2.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)};Va.prototype._onBoxDrag=function(){var r=this.translateX,t=this.translateY;this.hbar&&(r-=Jl.event.dx),this.vbar&&(t-=Jl.event.dy),this.setTranslate(r,t)};Va.prototype._onBoxWheel=function(){var r=this.translateX,t=this.translateY;this.hbar&&(r+=Jl.event.deltaY),this.vbar&&(t+=Jl.event.deltaY),this.setTranslate(r,t)};Va.prototype._onBarDrag=function(){var r=this.translateX,t=this.translateY;if(this.hbar){var a=r+this._hbarXMin,n=a+this._hbarTranslateMax,i=b3.constrain(Jl.event.x,a,n),o=(i-a)/(n-a),l=this.position.w-this._box.w;r=o*l}if(this.vbar){var s=t+this._vbarYMin,u=s+this._vbarTranslateMax,f=b3.constrain(Jl.event.y,s,u),c=(f-s)/(u-s),h=this.position.h-this._box.h;t=c*h}this.setTranslate(r,t)};Va.prototype.setTranslate=function(r,t){var a=this.position.w-this._box.w,n=this.position.h-this._box.h;if(r=b3.constrain(r||0,0,a),t=b3.constrain(t||0,0,n),this.translateX=r,this.translateY=t,this.container.call(k2.setTranslate,this._box.l-this.position.l-r,this._box.t-this.position.t-t),this._clipRect&&this._clipRect.attr({x:Math.floor(this.position.l+r-.5),y:Math.floor(this.position.t+t-.5)}),this.hbar){var i=r/a;this.hbar.call(k2.setTranslate,r+i*this._hbarTranslateMax,t)}if(this.vbar){var o=t/n;this.vbar.call(k2.setTranslate,r,t+o*this._vbarTranslateMax)}}});var LI=le((Y9e,EI)=>{"use strict";var C2=Ft(),Wh=Sn(),Zh=qt(),S2=ha(),Do=mr(),_3=si(),$2e=ka().arrayEditor,MI=(li(),Tr(oi)).LINE_SPACING,mt=(g3(),Tr(m3)),J2e=wI();EI.exports=function(r){var t=r._fullLayout,a=Do.filterVisible(t[mt.name]);function n(h){Wh.autoMargin(r,DI(h))}var i=t._menulayer.selectAll("g."+mt.containerClassName).data(a.length>0?[0]:[]);if(i.enter().append("g").classed(mt.containerClassName,!0).style("cursor","pointer"),i.exit().each(function(){C2.select(this).selectAll("g."+mt.headerGroupClassName).each(n)}).remove(),a.length!==0){var o=i.selectAll("g."+mt.headerGroupClassName).data(a,K2e);o.enter().append("g").classed(mt.headerGroupClassName,!0);for(var l=Do.ensureSingle(i,"g",mt.dropdownButtonGroupClassName,function(h){h.style("pointer-events","all")}),s=0;s{"use strict";var ive=(g3(),Tr(m3));qI.exports={moduleType:"component",name:ive.name,layoutAttributes:j9(),supplyLayoutDefaults:bI(),draw:LI()}});var Jh={};Ha(Jh,{arrowOffsetX:()=>Tve,autoMarginIdRoot:()=>xve,containerClassName:()=>lve,currentValueClass:()=>yve,currentValueInset:()=>Kve,currentValuePadding:()=>Jve,gripBgActiveColor:()=>Ove,gripBgColor:()=>Hve,gripBorder:()=>Nve,gripBorderColor:()=>Ive,gripBorderWidth:()=>Bve,gripHeight:()=>zve,gripRadius:()=>Pve,gripRectClass:()=>vve,gripWidth:()=>Rve,groupClassName:()=>sve,inputAreaClass:()=>uve,inputProxyClass:()=>dve,labelClass:()=>gve,labelGroupClass:()=>mve,labelOffset:()=>Gve,labelPadding:()=>Uve,labelsClass:()=>pve,menuIndexAttrName:()=>_ve,minHeight:()=>Ave,minWidth:()=>wve,minorTickColor:()=>Zve,minorTickLength:()=>$ve,minorTickOffset:()=>Wve,name:()=>ove,railBgColor:()=>Eve,railBorder:()=>Sve,railBorderColor:()=>Fve,railBorderWidth:()=>Dve,railHeight:()=>bve,railInset:()=>Lve,railRadius:()=>kve,railRectClass:()=>fve,railTouchRectClass:()=>cve,railWidth:()=>Cve,stepInset:()=>qve,textPadX:()=>Mve,tickColor:()=>Vve,tickLength:()=>jve,tickOffset:()=>Xve,tickRectClass:()=>hve,tickWidth:()=>Yve});var ove,lve,sve,uve,fve,cve,vve,hve,dve,pve,mve,gve,yve,bve,_ve,xve,wve,Ave,Mve,Tve,kve,Cve,Sve,Dve,Fve,Eve,Lve,qve,Pve,Rve,zve,Nve,Bve,Ive,Hve,Ove,Uve,Gve,Yve,Vve,Xve,jve,Wve,Zve,$ve,Jve,Kve,Kh=Ia(()=>{"use strict";ove="sliders",lve="slider-container",sve="slider-group",uve="slider-input-area",fve="slider-rail-rect",cve="slider-rail-touch-rect",vve="slider-grip-rect",hve="slider-tick-rect",dve="slider-input-proxy",pve="slider-labels",mve="slider-label-group",gve="slider-label",yve="slider-current-value",bve=5,_ve="slider-active-index",xve="slider-",wve=30,Ave=30,Mve=40,Tve=4,kve=2,Cve=5,Sve=4,Dve=1,Fve="#bec8d9",Eve="#f8fafc",Lve=8,qve=10,Pve=10,Rve=20,zve=20,Nve=20,Bve=1,Ive="#bec8d9",Hve="#f6f8fa",Ove="#dbdde0",Uve=8,Gve=0,Yve=1,Vve="#333",Xve=25,jve=7,Wve=25,Zve="#333",$ve=4,Jve=8,Kve=0});var J9=le((X9e,NI)=>{"use strict";var RI=gi(),Qve=gp(),ehe=Tn().extendDeepAll,rhe=Yo().overrideAll,the=kv(),zI=ka().templatedArray,Fc=(Kh(),Tr(Jh)),ahe=zI("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}});NI.exports=rhe(zI("slider",{visible:{valType:"boolean",dflt:!0},active:{valType:"number",min:0,dflt:0},steps:ahe,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:ehe(Qve({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:the.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:RI({})},font:RI({}),activebgcolor:{valType:"color",dflt:Fc.gripBgActiveColor},bgcolor:{valType:"color",dflt:Fc.railBgColor},bordercolor:{valType:"color",dflt:Fc.railBorderColor},borderwidth:{valType:"number",min:0,dflt:Fc.railBorderWidth},ticklen:{valType:"number",min:0,dflt:Fc.tickLength},tickcolor:{valType:"color",dflt:Fc.tickColor},tickwidth:{valType:"number",min:0,dflt:1},minorticklen:{valType:"number",min:0,dflt:Fc.minorTickLength}}),"arraydraw","from-root")});var OI=le((j9e,HI)=>{"use strict";var D2=mr(),BI=Ul(),II=J9(),nhe=(Kh(),Tr(Jh)),ihe=nhe.name,ohe=II.steps;HI.exports=function(r,t){BI(r,t,{name:ihe,handleItemDefaults:lhe})};function lhe(e,r,t){function a(c,h){return D2.coerce(e,r,II,c,h)}for(var n=BI(e,r,{name:"steps",handleItemDefaults:she}),i=0,o=0;o{"use strict";var Kl=Ft(),x3=Sn(),X0=qt(),Ql=ha(),Fo=mr(),uhe=Fo.strTranslate,Qh=si(),fhe=ka().arrayEditor,St=(Kh(),Tr(Jh)),e8=(li(),Tr(oi)),YI=e8.LINE_SPACING,K9=e8.FROM_TL,Q9=e8.FROM_BR;$I.exports=function(r){var t=r._context.staticPlot,a=r._fullLayout,n=che(a,r),i=a._infolayer.selectAll("g."+St.containerClassName).data(n.length>0?[0]:[]);i.enter().append("g").classed(St.containerClassName,!0).style("cursor",t?null:"ew-resize");function o(f){f._commandObserver&&(f._commandObserver.remove(),delete f._commandObserver),x3.autoMargin(r,VI(f))}if(i.exit().each(function(){Kl.select(this).selectAll("g."+St.groupClassName).each(o)}).remove(),n.length!==0){var l=i.selectAll("g."+St.groupClassName).data(n,vhe);l.enter().append("g").classed(St.groupClassName,!0),l.exit().each(o).remove();for(var s=0;s0&&(l=l.transition().duration(r.transition.duration).ease(r.transition.easing)),l.attr("transform",uhe(o-St.gripWidth*.5,r._dims.currentValueTotalHeight))}}function r8(e,r){var t=e._dims;return t.inputAreaStart+St.stepInset+(t.inputAreaLength-2*St.stepInset)*Math.min(1,Math.max(0,r))}function GI(e,r){var t=e._dims;return Math.min(1,Math.max(0,(r-St.stepInset-t.inputAreaStart)/(t.inputAreaLength-2*St.stepInset-2*t.inputAreaStart)))}function bhe(e,r,t){var a=t._dims,n=Fo.ensureSingle(e,"rect",St.railTouchRectClass,function(i){i.call(WI,r,e,t).style("pointer-events","all")});n.attr({width:a.inputAreaLength,height:Math.max(a.inputAreaWidth,St.tickOffset+t.ticklen+a.labelHeight)}).call(X0.fill,t.bgcolor).attr("opacity",0),Ql.setTranslate(n,0,a.currentValueTotalHeight)}function _he(e,r){var t=r._dims,a=t.inputAreaLength-St.railInset*2,n=Fo.ensureSingle(e,"rect",St.railRectClass);n.attr({width:a,height:St.railWidth,rx:St.railRadius,ry:St.railRadius,"shape-rendering":"crispEdges"}).call(X0.stroke,r.bordercolor).call(X0.fill,r.bgcolor).style("stroke-width",r.borderwidth+"px"),Ql.setTranslate(n,St.railInset,(t.inputAreaWidth-St.railWidth)*.5+t.currentValueTotalHeight)}});var QI=le((Z9e,KI)=>{"use strict";var xhe=(Kh(),Tr(Jh));KI.exports={moduleType:"component",name:xhe.name,layoutAttributes:J9(),supplyLayoutDefaults:OI(),draw:JI()}});var A3=le(($9e,rH)=>{"use strict";var eH=zl();rH.exports={bgcolor:{valType:"color",dflt:eH.background,editType:"plot"},bordercolor:{valType:"color",dflt:eH.defaultLine,editType:"plot"},borderwidth:{valType:"integer",dflt:0,min:0,editType:"plot"},autorange:{valType:"boolean",dflt:!0,editType:"calc",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},range:{valType:"info_array",items:[{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}},{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}}],editType:"calc",impliedEdits:{autorange:!1}},thickness:{valType:"number",dflt:.15,min:0,max:1,editType:"plot"},visible:{valType:"boolean",dflt:!0,editType:"calc"},editType:"calc"}});var t8=le((J9e,tH)=>{"use strict";tH.exports={_isSubplotObj:!0,rangemode:{valType:"enumerated",values:["auto","fixed","match"],dflt:"match",editType:"calc"},range:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},editType:"calc"}});var M3={};Ha(M3,{bgClassName:()=>Mhe,containerClassName:()=>Ahe,extraPad:()=>jhe,grabAreaCursor:()=>Uhe,grabAreaFill:()=>Ohe,grabAreaMaxClassName:()=>qhe,grabAreaMinClassName:()=>Fhe,grabAreaWidth:()=>Ghe,grabberMaxClassName:()=>Lhe,grabberMinClassName:()=>Dhe,handleMaxClassName:()=>Phe,handleMinClassName:()=>Ehe,handleRadius:()=>Vhe,handleStrokeWidth:()=>Xhe,handleWidth:()=>Yhe,maskColor:()=>Nhe,maskMaxClassName:()=>Che,maskMaxOppAxisClassName:()=>zhe,maskMinClassName:()=>khe,maskMinOppAxisClassName:()=>Rhe,maskOppAxisColor:()=>Bhe,name:()=>whe,rangePlotClassName:()=>The,slideBoxClassName:()=>She,slideBoxCursor:()=>Hhe,slideBoxFill:()=>Ihe});var whe,Ahe,Mhe,The,khe,Che,She,Dhe,Fhe,Ehe,Lhe,qhe,Phe,Rhe,zhe,Nhe,Bhe,Ihe,Hhe,Ohe,Uhe,Ghe,Yhe,Vhe,Xhe,jhe,T3=Ia(()=>{"use strict";whe="rangeslider",Ahe="rangeslider-container",Mhe="rangeslider-bg",The="rangeslider-rangeplot",khe="rangeslider-mask-min",Che="rangeslider-mask-max",She="rangeslider-slidebox",Dhe="rangeslider-grabber-min",Fhe="rangeslider-grabarea-min",Ehe="rangeslider-handle-min",Lhe="rangeslider-grabber-max",qhe="rangeslider-grabarea-max",Phe="rangeslider-handle-max",Rhe="rangeslider-mask-min-opp-axis",zhe="rangeslider-mask-max-opp-axis",Nhe="rgba(0,0,0,0.4)",Bhe="rgba(0,0,0,0.2)",Ihe="transparent",Hhe="ew-resize",Ohe="transparent",Uhe="col-resize",Ghe=10,Yhe=4,Vhe=1,Xhe=1,jhe=15});var iH=le(C3=>{"use strict";var Whe=Cn(),Zhe=si(),aH=(T3(),Tr(M3)),$he=(li(),Tr(oi)).LINE_SPACING,k3=aH.name;function nH(e){var r=e&&e[k3];return r&&r.visible}C3.isVisible=nH;C3.makeData=function(e){for(var r=Whe.list({_fullLayout:e},"x",!0),t=e.margin,a=[],n=0;n{"use strict";var S3=mr(),oH=ka(),lH=Cn(),Jhe=A3(),Khe=t8();sH.exports=function(r,t,a){var n=r[a],i=t[a];if(!(n.rangeslider||t._requestRangeslider[i._id]))return;S3.isPlainObject(n.rangeslider)||(n.rangeslider={});var o=n.rangeslider,l=oH.newContainer(i,"rangeslider");function s(M,T){return S3.coerce(o,l,Jhe,M,T)}var u,f;function c(M,T){return S3.coerce(u,f,Khe,M,T)}var h=s("visible");if(h){s("bgcolor",t.plot_bgcolor),s("bordercolor"),s("borderwidth"),s("thickness"),s("autorange",!i.isValidRange(o.range)),s("range");var d=t._subplots;if(d)for(var m=d.cartesian.filter(function(M){return M.slice(0,Math.max(0,M.indexOf("y")))===lH.name2id(a)}).map(function(M){return M.slice(M.indexOf("y"),M.length)}),p=S3.simpleMap(m,lH.id2name),y=0;y{"use strict";var Qhe=Cn().list,ede=L0().getAutoRange,rde=(T3(),Tr(M3));fH.exports=function(r){for(var t=Qhe(r,"x",!0),a=0;a{"use strict";var D3=Ft(),tde=_t(),ade=Sn(),nn=mr(),F3=nn.strTranslate,hH=ha(),j0=qt(),nde=Uv(),ide=D9(),a8=Cn(),ode=Zo(),lde=P0(),Rt=(T3(),Tr(M3));dH.exports=function(e){for(var r=e._fullLayout,t=r._rangeSliderData,a=0;a=re.max)Q=B[oe+1];else if(H=re.pmax)Q=B[oe+1];else if(H0?e.touches[0].clientX:0}function sde(e,r,t,a){if(r._context.staticPlot)return;var n=e.select("rect."+Rt.slideBoxClassName).node(),i=e.select("rect."+Rt.grabAreaMinClassName).node(),o=e.select("rect."+Rt.grabAreaMaxClassName).node();function l(){var s=D3.event,u=s.target,f=vH(s),c=f-e.node().getBoundingClientRect().left,h=a.d2p(t._rl[0]),d=a.d2p(t._rl[1]),m=ode.coverSlip();this.addEventListener("touchmove",p),this.addEventListener("touchend",y),m.addEventListener("mousemove",p),m.addEventListener("mouseup",y);function p(b){var C=vH(b),x=+C-f,_,M,T;switch(u){case n:if(T="ew-resize",h+x>t._length||d+x<0)return;_=h+x,M=d+x;break;case i:if(T="col-resize",h+x>t._length)return;_=h+x,M=d;break;case o:if(T="col-resize",d+x<0)return;_=h,M=d+x;break;default:T="ew-resize",_=c,M=c+x;break}if(M<_){var A=M;M=_,_=A}a._pixelMin=_,a._pixelMax=M,lde(D3.select(m),T),ude(e,r,t,a)}function y(){m.removeEventListener("mousemove",p),m.removeEventListener("mouseup",y),this.removeEventListener("touchmove",p),this.removeEventListener("touchend",y),nn.removeElement(m)}}e.on("mousedown",l),e.on("touchstart",l)}function ude(e,r,t,a){function n(l){return t.l2r(nn.constrain(l,a._rl[0],a._rl[1]))}var i=n(a.p2d(a._pixelMin)),o=n(a.p2d(a._pixelMax));window.requestAnimationFrame(function(){tde.call("_guiRelayout",r,t._name+".range",[i,o])})}function fde(e,r,t,a,n,i){var o=Rt.handleWidth/2;function l(b){return nn.constrain(b,0,a._width)}function s(b){return nn.constrain(b,0,a._height)}function u(b){return nn.constrain(b,-o,a._width+o)}var f=l(a.d2p(t._rl[0])),c=l(a.d2p(t._rl[1]));if(e.select("rect."+Rt.slideBoxClassName).attr("x",f).attr("width",c-f),e.select("rect."+Rt.maskMinClassName).attr("width",f),e.select("rect."+Rt.maskMaxClassName).attr("x",c).attr("width",a._width-c),i.rangemode!=="match"){var h=a._height-s(a.d2pOppAxis(n._rl[1])),d=a._height-s(a.d2pOppAxis(n._rl[0]));e.select("rect."+Rt.maskMinOppAxisClassName).attr("x",f).attr("height",h).attr("width",c-f),e.select("rect."+Rt.maskMaxOppAxisClassName).attr("x",f).attr("y",d).attr("height",a._height-d).attr("width",c-f),e.select("rect."+Rt.slideBoxClassName).attr("y",h).attr("height",d-h)}var m=.5,p=Math.round(u(f-o))-m,y=Math.round(u(c-o))+m;e.select("g."+Rt.grabberMinClassName).attr("transform",F3(p,m)),e.select("g."+Rt.grabberMaxClassName).attr("transform",F3(y,m))}function cde(e,r,t,a){var n=nn.ensureSingle(e,"rect",Rt.bgClassName,function(s){s.attr({x:0,y:0,"shape-rendering":"crispEdges"})}),i=a.borderwidth%2===0?a.borderwidth:a.borderwidth-1,o=-a._offsetShift,l=hH.crispRound(r,a.borderwidth);n.attr({width:a._width+i,height:a._height+i,transform:F3(o,o),"stroke-width":l}).call(j0.stroke,a.bordercolor).call(j0.fill,a.bgcolor)}function vde(e,r,t,a){var n=r._fullLayout,i=nn.ensureSingleById(n._topdefs,"clipPath",a._clipId,function(o){o.append("rect").attr({x:0,y:0})});i.select("rect").attr({width:a._width,height:a._height})}function hde(e,r,t,a){var n=r.calcdata,i=e.selectAll("g."+Rt.rangePlotClassName).data(t._subplotsWith,nn.identity);i.enter().append("g").attr("class",function(l){return Rt.rangePlotClassName+" "+l}).call(hH.setClipUrl,a._clipId,r),i.order(),i.exit().remove();var o;i.each(function(l,s){var u=D3.select(this),f=s===0,c=a8.getFromId(r,l,"y"),h=c._name,d=a[h],m={data:[],layout:{xaxis:{type:t.type,domain:[0,1],range:a.range.slice(),calendar:t.calendar},width:a._width,height:a._height,margin:{t:0,b:0,l:0,r:0}},_context:r._context};t.rangebreaks&&(m.layout.xaxis.rangebreaks=t.rangebreaks),m.layout[h]={type:c.type,domain:[0,1],range:d.rangemode!=="match"?d.range.slice():c.range.slice(),calendar:c.calendar},c.rangebreaks&&(m.layout[h].rangebreaks=c.rangebreaks),ade.supplyDefaults(m);var p=m._fullLayout.xaxis,y=m._fullLayout[h];p.clearCalc(),p.setScale(),y.clearCalc(),y.setScale();var b={id:l,plotgroup:u,xaxis:p,yaxis:y,isRangePlot:!0};f?o=b:(b.mainplot="xy",b.mainplotinfo=o),ide.rangePlot(r,b,dde(n,l))})}function dde(e,r){for(var t=[],a=0;a{"use strict";var yde=mr(),bde=A3(),_de=t8(),n8=iH();mH.exports={moduleType:"component",name:"rangeslider",schema:{subplots:{xaxis:{rangeslider:yde.extendFlat({},bde,{yaxis:_de})}}},layoutAttributes:A3(),handleDefaults:uH(),calcAutorange:cH(),draw:pH(),isVisible:n8.isVisible,makeData:n8.makeData,autoMarginOpts:n8.autoMarginOpts}});var E3=le((a8e,bH)=>{"use strict";var xde=gi(),yH=zl(),wde=ka().templatedArray,Ade=wde("button",{visible:{valType:"boolean",dflt:!0,editType:"plot"},step:{valType:"enumerated",values:["month","year","day","hour","minute","second","all"],dflt:"month",editType:"plot"},stepmode:{valType:"enumerated",values:["backward","todate"],dflt:"backward",editType:"plot"},count:{valType:"number",min:0,dflt:1,editType:"plot"},label:{valType:"string",editType:"plot"},editType:"plot"});bH.exports={visible:{valType:"boolean",editType:"plot"},buttons:Ade,x:{valType:"number",min:-2,max:3,editType:"plot"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"plot"},y:{valType:"number",min:-2,max:3,editType:"plot"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"bottom",editType:"plot"},font:xde({editType:"plot"}),bgcolor:{valType:"color",dflt:yH.lightLine,editType:"plot"},activecolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:yH.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"}});var i8={};Ha(i8,{darkAmount:()=>Dde,lightAmount:()=>Sde,minButtonWidth:()=>Tde,rx:()=>kde,ry:()=>Cde,yPad:()=>Mde});var Mde,Tde,kde,Cde,Sde,Dde,o8=Ia(()=>{"use strict";Mde=.02,Tde=30,kde=3,Cde=3,Sde=25,Dde=10});var wH=le((n8e,xH)=>{"use strict";var L3=mr(),Fde=qt(),Ede=ka(),Lde=Ul(),_H=E3(),l8=(o8(),Tr(i8));xH.exports=function(r,t,a,n,i){var o=r.rangeselector||{},l=Ede.newContainer(t,"rangeselector");function s(d,m){return L3.coerce(o,l,_H,d,m)}var u=Lde(o,l,{name:"buttons",handleItemDefaults:qde,calendar:i}),f=s("visible",u.length>0);if(f){var c=Pde(t,a,n);s("x",c[0]),s("y",c[1]),L3.noneOrAll(r,t,["x","y"]),s("xanchor"),s("yanchor"),L3.coerceFont(s,"font",a.font);var h=s("bgcolor");s("activecolor",Fde.contrast(h,l8.lightAmount,l8.darkAmount)),s("bordercolor"),s("borderwidth")}};function qde(e,r,t,a){var n=a.calendar;function i(s,u){return L3.coerce(e,r,_H.buttons,s,u)}var o=i("visible");if(o){var l=i("step");l!=="all"&&(n&&n!=="gregorian"&&(l==="month"||l==="year")?r.stepmode="backward":i("stepmode"),i("count")),i("label")}}function Pde(e,r,t){for(var a=t.filter(function(l){return r[l].anchor===e._id}),n=0,i=0;i{"use strict";var Rde=Ty(),zde=mr().titleCase;AH.exports=function(r,t){var a=r._name,n={};if(t.step==="all")n[a+".autorange"]=!0;else{var i=Nde(r,t);n[a+".range[0]"]=i[0],n[a+".range[1]"]=i[1]}return n};function Nde(e,r){var t=e.range,a=new Date(e.r2l(t[1])),n=r.step,i=Rde["utc"+zde(n)],o=r.count,l;switch(r.stepmode){case"backward":l=e.l2r(+i.offset(a,-o));break;case"todate":var s=i.offset(a,-o);l=e.l2r(+i.ceil(s));break}var u=t[1];return[l,u]}});var LH=le((o8e,EH)=>{"use strict";var P3=Ft(),Bde=_t(),Ide=Sn(),TH=qt(),FH=ha(),Gu=mr(),kH=Gu.strTranslate,q3=si(),Hde=Cn(),f8=(li(),Tr(oi)),CH=f8.LINE_SPACING,SH=f8.FROM_TL,DH=f8.FROM_BR,u8=(o8(),Tr(i8)),Ode=MH();EH.exports=function(r){var t=r._fullLayout,a=t._infolayer.selectAll(".rangeselector").data(Ude(r),Gde);a.enter().append("g").classed("rangeselector",!0),a.exit().remove(),a.style({cursor:"pointer","pointer-events":"all"}),a.each(function(n){var i=P3.select(this),o=n,l=o.rangeselector,s=i.selectAll("g.button").data(Gu.filterVisible(l.buttons));s.enter().append("g").classed("button",!0),s.exit().remove(),s.each(function(u){var f=P3.select(this),c=Ode(o,u);u._isActive=Yde(o,u,c),f.call(s8,l,u),f.call(Xde,l,u,r),f.on("click",function(){r._dragged||Bde.call("_guiRelayout",r,c)}),f.on("mouseover",function(){u._isHovered=!0,f.call(s8,l,u)}),f.on("mouseout",function(){u._isHovered=!1,f.call(s8,l,u)})}),Wde(r,s,l,o._name,i)})};function Ude(e){for(var r=Hde.list(e,"x",!0),t=[],a=0;a{"use strict";qH.exports={moduleType:"component",name:"rangeselector",schema:{subplots:{xaxis:{rangeselector:E3()}}},layoutAttributes:E3(),handleDefaults:wH(),draw:LH()}});var R3=le(c8=>{"use strict";var RH=Tn().extendFlat;c8.attributes=function(e,r){e=e||{},r=r||{};var t={valType:"info_array",editType:e.editType,items:[{valType:"number",min:0,max:1,editType:e.editType},{valType:"number",min:0,max:1,editType:e.editType}],dflt:[0,1]},a=e.name?e.name+" ":"",n=e.trace?"trace":"subplot",i=r.description?" "+r.description:"",o={x:RH({},t,{}),y:RH({},t,{}),editType:e.editType};return e.noGridCell||(o.row={valType:"integer",min:0,dflt:0,editType:e.editType},o.column={valType:"integer",min:0,dflt:0,editType:e.editType}),o};c8.defaults=function(e,r,t,a){var n=a&&a.x||[0,1],i=a&&a.y||[0,1],o=r.grid;if(o){var l=t("domain.column");l!==void 0&&(l{"use strict";var Zde=mr(),$de=(k1(),Tr(Mv)).counter,Jde=R3().attributes,zH=(Nn(),Tr(zn)).idRegex,Kde=ka(),v8={rows:{valType:"integer",min:1,editType:"plot"},roworder:{valType:"enumerated",values:["top to bottom","bottom to top"],dflt:"top to bottom",editType:"plot"},columns:{valType:"integer",min:1,editType:"plot"},subplots:{valType:"info_array",freeLength:!0,dimensions:2,items:{valType:"enumerated",values:[$de("xy").toString(),""],editType:"plot"},editType:"plot"},xaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[zH.x.toString(),""],editType:"plot"},editType:"plot"},yaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[zH.y.toString(),""],editType:"plot"},editType:"plot"},pattern:{valType:"enumerated",values:["independent","coupled"],dflt:"coupled",editType:"plot"},xgap:{valType:"number",min:0,max:1,editType:"plot"},ygap:{valType:"number",min:0,max:1,editType:"plot"},domain:Jde({name:"grid",editType:"plot",noGridCell:!0},{}),xside:{valType:"enumerated",values:["bottom","bottom plot","top plot","top"],dflt:"bottom plot",editType:"plot"},yside:{valType:"enumerated",values:["left","left plot","right plot","right"],dflt:"left plot",editType:"plot"},editType:"plot"};function z3(e,r,t){var a=r[t+"axes"],n=Object.keys((e._splomAxes||{})[t]||{});if(Array.isArray(a))return a;if(n.length)return n}function Qde(e,r){var t=e.grid||{},a=z3(r,t,"x"),n=z3(r,t,"y");if(!e.grid&&!a&&!n)return;var i=Array.isArray(t.subplots)&&Array.isArray(t.subplots[0]),o=Array.isArray(a),l=Array.isArray(n),s=o&&a!==t.xaxes&&l&&n!==t.yaxes,u,f;i?(u=t.subplots.length,f=t.subplots[0].length):(l&&(u=n.length),o&&(f=a.length));var c=Kde.newContainer(r,"grid");function h(T,A){return Zde.coerce(t,c,v8,T,A)}var d=h("rows",u),m=h("columns",f);if(!(d*m>1)){delete r.grid;return}if(!i&&!o&&!l){var p=h("pattern")==="independent";p&&(i=!0)}c._hasSubplotGrid=i;var y=h("roworder"),b=y==="top to bottom",C=i?.2:.1,x=i?.3:.1,_,M;s&&r._splomGridDflt&&(_=r._splomGridDflt.xside,M=r._splomGridDflt.yside),c._domains={x:NH("x",h,C,_,m),y:NH("y",h,x,M,d,b)}}function NH(e,r,t,a,n,i){var o=r(e+"gap",t),l=r("domain."+e);r(e+"side",a);for(var s=new Array(n),u=l[0],f=(l[1]-u)/(n-o),c=f*(1-o),h=0;h{"use strict";OH.exports={visible:{valType:"boolean",editType:"calc"},type:{valType:"enumerated",values:["percent","constant","sqrt","data"],editType:"calc"},symmetric:{valType:"boolean",editType:"calc"},array:{valType:"data_array",editType:"calc"},arrayminus:{valType:"data_array",editType:"calc"},value:{valType:"number",min:0,dflt:10,editType:"calc"},valueminus:{valType:"number",min:0,dflt:10,editType:"calc"},traceref:{valType:"integer",min:0,dflt:0,editType:"style"},tracerefminus:{valType:"integer",min:0,dflt:0,editType:"style"},copy_ystyle:{valType:"boolean",editType:"plot"},copy_zstyle:{valType:"boolean",editType:"style"},color:{valType:"color",editType:"style"},thickness:{valType:"number",min:0,dflt:2,editType:"style"},width:{valType:"number",min:0,editType:"plot"},editType:"calc"}});var YH=le((c8e,GH)=>{"use strict";var UH=Wt(),rpe=_t(),tpe=mr(),ape=ka(),npe=h8();GH.exports=function(e,r,t,a){var n="error_"+a.axis,i=ape.newContainer(r,n),o=e[n]||{};function l(m,p){return tpe.coerce(o,i,npe,m,p)}var s=o.array!==void 0||o.value!==void 0||o.type==="sqrt",u=l("visible",s);if(u!==!1){var f=l("type","array"in o?"data":"percent"),c=!0;f!=="sqrt"&&(c=l("symmetric",!((f==="data"?"arrayminus":"valueminus")in o))),f==="data"?(l("array"),l("traceref"),c||(l("arrayminus"),l("tracerefminus"))):(f==="percent"||f==="constant")&&(l("value"),c||l("valueminus"));var h="copy_"+a.inherit+"style";if(a.inherit){var d=r["error_"+a.inherit];(d||{}).visible&&l(h,!(o.color||UH(o.thickness)||UH(o.width)))}(!a.inherit||!i[h])&&(l("color",t),l("thickness"),l("width",rpe.traceIs(r,"gl3d")?0:4))}}});var d8=le((v8e,XH)=>{"use strict";XH.exports=function(r){var t=r.type,a=r.symmetric;if(t==="data"){var n=r.array||[];if(a)return function(u,f){var c=+n[f];return[c,c]};var i=r.arrayminus||[];return function(u,f){var c=+n[f],h=+i[f];return!isNaN(c)||!isNaN(h)?[h||0,c||0]:[NaN,NaN]}}else{var o=VH(t,r.value),l=VH(t,r.valueminus);return a||r.valueminus===void 0?function(u){var f=o(u);return[f,f]}:function(u){return[l(u),o(u)]}}};function VH(e,r){if(e==="percent")return function(t){return Math.abs(t*r/100)};if(e==="constant")return function(){return Math.abs(r)};if(e==="sqrt")return function(t){return Math.sqrt(Math.abs(t))}}});var ZH=le((h8e,WH)=>{"use strict";var p8=Wt(),ipe=_t(),m8=Oa(),ope=mr(),lpe=d8();WH.exports=function(r){for(var t=r.calcdata,a=0;a{"use strict";var $H=Ft(),W0=Wt(),spe=ha(),upe=_i();JH.exports=function(r,t,a,n){var i,o=a.xaxis,l=a.yaxis,s=n&&n.duration>0,u=r._context.staticPlot;t.each(function(f){var c=f[0].trace,h=c.error_x||{},d=c.error_y||{},m;c.ids&&(m=function(C){return C.id});var p=upe.hasMarkers(c)&&c.marker.maxdisplayed>0;!d.visible&&!h.visible&&(f=[]);var y=$H.select(this).selectAll("g.errorbar").data(f,m);if(y.exit().remove(),!!f.length){h.visible||y.selectAll("path.xerror").remove(),d.visible||y.selectAll("path.yerror").remove(),y.style("opacity",1);var b=y.enter().append("g").classed("errorbar",!0);s&&b.style("opacity",0).transition().duration(n.duration).style("opacity",1),spe.setClipUrl(y,a.layerClipId,r),y.each(function(C){var x=$H.select(this),_=fpe(C,o,l);if(!(p&&!C.vis)){var M,T=x.select("path.yerror");if(d.visible&&W0(_.x)&&W0(_.yh)&&W0(_.ys)){var A=d.width;M="M"+(_.x-A)+","+_.yh+"h"+2*A+"m-"+A+",0V"+_.ys,_.noYS||(M+="m-"+A+",0h"+2*A),i=!T.size(),i?T=x.append("path").style("vector-effect",u?"none":"non-scaling-stroke").classed("yerror",!0):s&&(T=T.transition().duration(n.duration).ease(n.easing)),T.attr("d",M)}else T.remove();var E=x.select("path.xerror");if(h.visible&&W0(_.y)&&W0(_.xh)&&W0(_.xs)){var P=(h.copy_ystyle?d:h).width;M="M"+_.xh+","+(_.y-P)+"v"+2*P+"m0,-"+P+"H"+_.xs,_.noXS||(M+="m0,-"+P+"v"+2*P),i=!E.size(),i?E=x.append("path").style("vector-effect",u?"none":"non-scaling-stroke").classed("xerror",!0):s&&(E=E.transition().duration(n.duration).ease(n.easing)),E.attr("d",M)}else E.remove()}})}})};function fpe(e,r,t){var a={x:r.c2p(e.x),y:t.c2p(e.y)};return e.yh!==void 0&&(a.yh=t.c2p(e.yh),a.ys=t.c2p(e.ys),W0(a.ys)||(a.noYS=!0,a.ys=t.c2p(e.ys,!0))),e.xh!==void 0&&(a.xh=r.c2p(e.xh),a.xs=r.c2p(e.xs),W0(a.xs)||(a.noXS=!0,a.xs=r.c2p(e.xs,!0))),a}});var rO=le((p8e,eO)=>{"use strict";var cpe=Ft(),QH=qt();eO.exports=function(r){r.each(function(t){var a=t[0].trace,n=a.error_y||{},i=a.error_x||{},o=cpe.select(this);o.selectAll("path.yerror").style("stroke-width",n.thickness+"px").call(QH.stroke,n.color),i.copy_ystyle&&(i=n),o.selectAll("path.xerror").style("stroke-width",i.thickness+"px").call(QH.stroke,i.color)})}});var nO=le((m8e,aO)=>{"use strict";var ed=mr(),tO=Yo().overrideAll,rd=h8(),Ec={error_x:ed.extendFlat({},rd),error_y:ed.extendFlat({},rd)};delete Ec.error_x.copy_zstyle;delete Ec.error_y.copy_zstyle;delete Ec.error_y.copy_ystyle;var td={error_x:ed.extendFlat({},rd),error_y:ed.extendFlat({},rd),error_z:ed.extendFlat({},rd)};delete td.error_x.copy_ystyle;delete td.error_y.copy_ystyle;delete td.error_z.copy_ystyle;delete td.error_z.copy_zstyle;aO.exports={moduleType:"component",name:"errorbars",schema:{traces:{scatter:Ec,bar:Ec,histogram:Ec,scatter3d:tO(td,"calc","nested"),scattergl:tO(Ec,"calc","nested")}},supplyDefaults:YH(),calc:ZH(),makeComputeError:d8(),plot:KH(),style:rO(),hoverInfo:vpe};function vpe(e,r,t){(r.error_y||{}).visible&&(t.yerr=e.yh-e.y,r.error_y.symmetric||(t.yerrneg=e.y-e.ys)),(r.error_x||{}).visible&&(t.xerr=e.xh-e.x,r.error_x.symmetric||(t.xerrneg=e.x-e.xs))}});var iO={};Ha(iO,{cn:()=>hpe});var hpe,oO=Ia(()=>{"use strict";hpe={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"}});var dO=le((g8e,hO)=>{"use strict";var Z0=Ft(),B3=Sn(),lO=_t(),Yu=Oa(),N3=Zo(),ul=mr(),rs=ul.strTranslate,vO=Tn().extendFlat,g8=P0(),es=ha(),F2=qt(),dpe=Uv(),ppe=si(),mpe=Ds().flipScale,gpe=T9(),ype=k9(),bpe=Ol(),b8=(li(),Tr(oi)),sO=b8.LINE_SPACING,uO=b8.FROM_TL,fO=b8.FROM_BR,Ua=(oO(),Tr(iO)).cn;function _pe(e){var r=e._fullLayout,t=r._infolayer.selectAll("g."+Ua.colorbar).data(xpe(e),function(a){return a._id});t.enter().append("g").attr("class",function(a){return a._id}).classed(Ua.colorbar,!0),t.each(function(a){var n=Z0.select(this);ul.ensureSingle(n,"rect",Ua.cbbg),ul.ensureSingle(n,"g",Ua.cbfills),ul.ensureSingle(n,"g",Ua.cblines),ul.ensureSingle(n,"g",Ua.cbaxis,function(o){o.classed(Ua.crisp,!0)}),ul.ensureSingle(n,"g",Ua.cbtitleunshift,function(o){o.append("g").classed(Ua.cbtitle,!0)}),ul.ensureSingle(n,"rect",Ua.cboutline);var i=wpe(n,a,e);i&&i.then&&(e._promises||[]).push(i),e._context.edits.colorbarPosition&&Ape(n,a,e)}),t.exit().each(function(a){B3.autoMargin(e,a._id)}).remove(),t.order()}function xpe(e){var r=e._fullLayout,t=e.calcdata,a=[],n,i,o,l;function s(x){return vO(x,{_fillcolor:null,_line:{color:null,width:null,dash:null},_levels:{start:null,end:null,size:null},_filllevels:null,_fillgradient:null,_zrange:null})}function u(){typeof l.calc=="function"?l.calc(e,o,n):(n._fillgradient=i.reversescale?mpe(i.colorscale):i.colorscale,n._zrange=[i[l.min],i[l.max]])}for(var f=0;f[Math.min(e[0]+r,e[1]),e[1]],cO=(e,r)=>[e[0],Math.max(e[1]-r,e[0])];function wpe(e,r,t){var a=r.orientation==="v",n=r.len,i=r.lenmode,o=r.thickness,l=r.thicknessmode,s=r.outlinewidth,u=r.borderwidth,f=r.bgcolor,c=r.xanchor,h=r.yanchor,d=r.xpad,m=r.ypad,p=r.x,y=a?r.y:1-r.y,b=r.yref==="paper",C=r.xref==="paper",x=t._fullLayout,_=x._size,M=r._fillcolor,T=r._line,A=r.title,E=A.side,P=r._zrange||Z0.extent((typeof M=="function"?M:T.color).domain()),z=typeof T.color=="function"?T.color:function(){return T.color},B=typeof M=="function"?M:function(){return M},X=r._levels,I=Mpe(t,r,P),V=I.fill,H=I.line,Q=Math.round(o*(l==="fraction"?a?_.w:_.h:1)),oe=Q/(a?_.w:_.h),re=Math.round(n*(i==="fraction"?a?_.h:_.w:1)),te=re/(a?_.h:_.w),ie=C?_.w:t._fullLayout.width,ce=b?_.h:t._fullLayout.height,Me=Math.round(a?p*ie+d:y*ce+m),De={center:.5,right:1}[c]||0,Ie={top:1,middle:.5}[h]||0,Ue=a?p-De*oe:y-Ie*oe,ke=a?y-Ie*te:p-De*te,je=Math.round(a?ce*(1-ke):ie*ke);r._lenFrac=te,r._thickFrac=oe,r._uFrac=Ue,r._vFrac=ke;var W=r._axis=Tpe(t,r,P);W.position=oe+(a?p+d/_.w:y+m/_.h);var ee=["top","bottom"].indexOf(E)!==-1;if(a&&ee&&(W.title.side=E,W.titlex=p+d/_.w,W.titley=ke+(A.side==="top"?te-m/_.h:m/_.h)),!a&&!ee&&(W.title.side=E,W.titley=y+m/_.h,W.titlex=ke+d/_.w),T.color&&r.tickmode==="auto"){W.tickmode="linear",W.tick0=X.start;var me=X.size,K=ul.constrain(re/50,4,15)+1,J=(P[1]-P[0])/((r.nticks||K)*me);if(J>1){var ue=Math.pow(10,Math.floor(Math.log(J)/Math.LN10));me*=ue*ul.roundUp(J/ue,[2,5,10]),(Math.abs(X.start)/X.size+1e-6)%1<2e-6&&(W.tick0=0)}W.dtick=me}var _e=a?m/_.h:d/_.w;W.domain=cO(y8([ke,ke+te],_e),_e),W.setScale(),e.attr("transform",rs(Math.round(_.l),Math.round(_.t)));var Ne=e.select("."+Ua.cbtitleunshift).attr("transform",rs(-Math.round(_.l),-Math.round(_.t))),Je=W.ticklabelposition,ar=W.title.font.size,tr=e.select("."+Ua.cbaxis),fr,Re=0,sr=0;function hr(Te,Oe){var Ar={propContainer:W,propName:r._propPrefix+"title.text",traceIndex:r._traceIndex,_meta:r._meta,placeholder:x._dfltTitle.colorbar,containerGroup:e.select("."+Ua.cbtitle)},Br=Te.charAt(0)==="h"?Te.slice(1):"h"+Te;e.selectAll("."+Br+",."+Br+"-math-group").remove(),dpe.draw(t,Te,vO(Ar,Oe||{}))}function dr(){if(a&&ee||!a&&!ee){var Te,Oe;E==="top"&&(Te=d+_.l+ie*p,Oe=m+_.t+ce*(1-ke-te)+3+ar*.75),E==="bottom"&&(Te=d+_.l+ie*p,Oe=m+_.t+ce*(1-ke)-3-ar*.25),E==="right"&&(Oe=m+_.t+ce*y+3+ar*.75,Te=d+_.l+ie*ke),hr(W._id+"title",{attributes:{x:Te,y:Oe,"text-anchor":a?"start":"middle"}})}}function Ze(){if(a&&!ee||!a&&ee){var Te=W.position||0,Oe=W._offset+W._length/2,Ar,Br;if(E==="right")Br=Oe,Ar=_.l+ie*Te+10+ar*(W.showticklabels?1:.5);else if(Ar=Oe,E==="bottom"&&(Br=_.t+ce*Te+10+(Je.indexOf("inside")===-1?W.tickfont.size:0)+(W.ticks!=="inside"&&r.ticklen||0)),E==="top"){var Qe=A.text.split("
").length;Br=_.t+ce*Te+10-Q-sO*ar*Qe}hr((a?"h":"v")+W._id+"title",{avoid:{selection:Z0.select(t).selectAll("g."+W._id+"tick"),side:E,offsetTop:a?0:_.t,offsetLeft:a?_.l:0,maxShift:a?x.width:x.height},attributes:{x:Ar,y:Br,"text-anchor":"middle"},transform:{rotate:a?-90:0,offset:0}})}}function cr(){if(!a&&!ee||a&&ee){var Te=e.select("."+Ua.cbtitle),Oe=Te.select("text"),Ar=[-s/2,s/2],Br=Te.select(".h"+W._id+"title-math-group").node(),Qe=15.6;Oe.node()&&(Qe=parseInt(Oe.node().style.fontSize,10)*sO);var Be;if(Br?(Be=es.bBox(Br),sr=Be.width,Re=Be.height,Re>Qe&&(Ar[1]-=(Re-Qe)/2)):Oe.node()&&!Oe.classed(Ua.jsPlaceholder)&&(Be=es.bBox(Oe.node()),sr=Be.width,Re=Be.height),a){if(Re){if(Re+=5,E==="top")W.domain=cO(W.domain,Re/_.h),Ar[1]*=-1;else{W.domain=y8(W.domain,Re/_.h);var Xe=ppe.lineCount(Oe);Ar[1]+=(1-Xe)*Qe}Te.attr("transform",rs(Ar[0],Ar[1])),W.setScale()}}else sr&&(E==="right"&&(W.domain=y8(W.domain,(sr+ar/2)/_.w)),Te.attr("transform",rs(Ar[0],Ar[1])),W.setScale())}e.selectAll("."+Ua.cbfills+",."+Ua.cblines).attr("transform",a?rs(0,Math.round(_.h*(1-W.domain[1]))):rs(Math.round(_.w*W.domain[0]),0)),tr.attr("transform",a?rs(0,Math.round(-_.t)):rs(Math.round(-_.l),0));var yr=e.select("."+Ua.cbfills).selectAll("rect."+Ua.cbfill).attr("style","").data(V);yr.enter().append("rect").classed(Ua.cbfill,!0).attr("style",""),yr.exit().remove();var Cr=P.map(W.c2p).map(Math.round).sort(function(Or,rr){return Or-rr});yr.each(function(Or,rr){var Sr=[rr===0?P[0]:(V[rr]+V[rr-1])/2,rr===V.length-1?P[1]:(V[rr]+V[rr+1])/2].map(W.c2p).map(Math.round);a&&(Sr[1]=ul.constrain(Sr[1]+(Sr[1]>Sr[0])?1:-1,Cr[0],Cr[1]));var vr=Z0.select(this).attr(a?"x":"y",Me).attr(a?"y":"x",Z0.min(Sr)).attr(a?"width":"height",Math.max(Q,2)).attr(a?"height":"width",Math.max(Z0.max(Sr)-Z0.min(Sr),2));if(r._fillgradient)es.gradient(vr,t,r._id,a?"vertical":"horizontalreversed",r._fillgradient,"fill");else{var jr=B(Or).replace("e-","");vr.attr("fill",F2.hexString(jr))}});var pr=e.select("."+Ua.cblines).selectAll("path."+Ua.cbline).data(T.color&&T.width?H:[]);pr.enter().append("path").classed(Ua.cbline,!0),pr.exit().remove(),pr.each(function(Or){var rr=Me,Sr=Math.round(W.c2p(Or))+T.width/2%1;Z0.select(this).attr("d","M"+(a?rr+","+Sr:Sr+","+rr)+(a?"h":"v")+Q).call(es.lineGroupStyle,T.width,z(Or),T.dash)}),tr.selectAll("g."+W._id+"tick,path").remove();var xr=Me+Q+(s||0)/2-(r.ticks==="outside"?1:0),Rr=Yu.calcTicks(W),Er=Yu.getTickSigns(W)[2];return Yu.drawTicks(t,W,{vals:W.ticks==="inside"?Yu.clipEnds(W,Rr):Rr,layer:tr,path:Yu.makeTickPath(W,xr,Er),transFn:Yu.makeTransTickFn(W)}),Yu.drawLabels(t,W,{vals:Rr,layer:tr,transFn:Yu.makeTransTickLabelFn(W),labelFns:Yu.makeLabelFns(W,xr)})}function Lr(){var Te,Oe=Q+s/2;Je.indexOf("inside")===-1&&(Te=es.bBox(tr.node()),Oe+=a?Te.width:Te.height),fr=Ne.select("text");var Ar=0,Br=a&&E==="top",Qe=!a&&E==="right",Be=0;if(fr.node()&&!fr.classed(Ua.jsPlaceholder)){var Xe,yr=Ne.select(".h"+W._id+"title-math-group").node();yr&&(a&&ee||!a&&!ee)?(Te=es.bBox(yr),Ar=Te.width,Xe=Te.height):(Te=es.bBox(Ne.node()),Ar=Te.right-_.l-(a?Me:je),Xe=Te.bottom-_.t-(a?je:Me),!a&&E==="top"&&(Oe+=Te.height,Be=Te.height)),Qe&&(fr.attr("transform",rs(Ar/2+ar/2,0)),Ar*=2),Oe=Math.max(Oe,a?Ar:Xe)}var Cr=(a?d:m)*2+Oe+u+s/2,pr=0;!a&&A.text&&h==="bottom"&&y<=0&&(pr=Cr/2,Cr+=pr,Be+=pr),x._hColorbarMoveTitle=pr,x._hColorbarMoveCBTitle=Be;var xr=u+s,Rr=(a?Me:je)-xr/2-(a?d:0),Er=(a?je:Me)-(a?re:m+Be-pr);e.select("."+Ua.cbbg).attr("x",Rr).attr("y",Er).attr(a?"width":"height",Math.max(Cr-pr,2)).attr(a?"height":"width",Math.max(re+xr,2)).call(F2.fill,f).call(F2.stroke,r.bordercolor).style("stroke-width",u);var Or=Qe?Math.max(Ar-10,0):0;e.selectAll("."+Ua.cboutline).attr("x",(a?Me:je+d)+Or).attr("y",(a?je+m-re:Me)+(Br?Re:0)).attr(a?"width":"height",Math.max(Q,2)).attr(a?"height":"width",Math.max(re-(a?2*m+Re:2*d+Or),2)).call(F2.stroke,r.outlinecolor).style({fill:"none","stroke-width":s});var rr=a?De*Cr:0,Sr=a?0:(1-Ie)*Cr-Be;if(rr=C?_.l-rr:-rr,Sr=b?_.t-Sr:-Sr,e.attr("transform",rs(rr,Sr)),!a&&(u||F2.opacity(f)&&!F2.equals(x.paper_bgcolor,f))){var vr=tr.selectAll("text"),jr=vr[0].length,Qr=e.select("."+Ua.cbbg).node(),qr=es.bBox(Qr),Wr=es.getTranslate(e),Ae=2;vr.each(function(ma,ra){var xn=0,on=jr-1;if(ra===xn||ra===on){var Wn=es.bBox(this),Jr=es.getTranslate(this),ua;if(ra===on){var zt=Wn.right+Jr.x,ga=qr.right+Wr.x+je-u-Ae+p;ua=ga-zt,ua>0&&(ua=0)}else if(ra===xn){var ba=Wn.left+Jr.x,_a=qr.left+Wr.x+je+u+Ae;ua=_a-ba,ua<0&&(ua=0)}ua&&(jr<3?this.setAttribute("transform","translate("+ua+",0) "+this.getAttribute("transform")):this.setAttribute("visibility","hidden"))}})}var Pe={},ur=uO[c],gr=fO[c],It=uO[h],Yt=fO[h],ia=Cr-Q;a?(i==="pixels"?(Pe.y=y,Pe.t=re*It,Pe.b=re*Yt):(Pe.t=Pe.b=0,Pe.yt=y+n*It,Pe.yb=y-n*Yt),l==="pixels"?(Pe.x=p,Pe.l=Cr*ur,Pe.r=Cr*gr):(Pe.l=ia*ur,Pe.r=ia*gr,Pe.xl=p-o*ur,Pe.xr=p+o*gr)):(i==="pixels"?(Pe.x=p,Pe.l=re*ur,Pe.r=re*gr):(Pe.l=Pe.r=0,Pe.xl=p+n*ur,Pe.xr=p-n*gr),l==="pixels"?(Pe.y=1-y,Pe.t=Cr*It,Pe.b=Cr*Yt):(Pe.t=ia*It,Pe.b=ia*Yt,Pe.yt=y-o*It,Pe.yb=y+o*Yt));var Ta=r.y<.5?"b":"t",Ht=r.x<.5?"l":"r";t._fullLayout._reservedMargin[r._id]={};var Zt={r:x.width-Rr-rr,l:Rr+Pe.r,b:x.height-Er-Sr,t:Er+Pe.b};C&&b?B3.autoMargin(t,r._id,Pe):C?t._fullLayout._reservedMargin[r._id][Ta]=Zt[Ta]:b||a?t._fullLayout._reservedMargin[r._id][Ht]=Zt[Ht]:t._fullLayout._reservedMargin[r._id][Ta]=Zt[Ta]}return ul.syncOrAsync([B3.previousPromises,dr,cr,Ze,B3.previousPromises,Lr],t)}function Ape(e,r,t){var a=r.orientation==="v",n=t._fullLayout,i=n._size,o,l,s;N3.init({element:e.node(),gd:t,prepFn:function(){o=e.attr("transform"),g8(e)},moveFn:function(u,f){e.attr("transform",o+rs(u,f)),l=N3.align((a?r._uFrac:r._vFrac)+u/i.w,a?r._thickFrac:r._lenFrac,0,1,r.xanchor),s=N3.align((a?r._vFrac:1-r._uFrac)-f/i.h,a?r._lenFrac:r._thickFrac,0,1,r.yanchor);var c=N3.getCursor(l,s,r.xanchor,r.yanchor);g8(e,c)},doneFn:function(){if(g8(e),l!==void 0&&s!==void 0){var u={};u[r._propPrefix+"x"]=l,u[r._propPrefix+"y"]=s,r._traceIndex!==void 0?lO.call("_guiRestyle",t,u,r._traceIndex):lO.call("_guiRelayout",t,u)}}})}function Mpe(e,r,t){var a=r._levels,n=[],i=[],o,l,s=a.end+a.size/100,u=a.size,f=1.001*t[0]-.001*t[1],c=1.001*t[1]-.001*t[0];for(l=0;l<1e5&&(o=a.start+l*u,!(u>0?o>=s:o<=s));l++)o>f&&o0?o>=s:o<=s));l++)o>t[0]&&o{"use strict";pO.exports={moduleType:"component",name:"colorbar",attributes:Wp(),supplyDefaults:y6(),draw:dO().draw,hasColorbar:l6()}});var yO=le((b8e,gO)=>{"use strict";gO.exports={moduleType:"component",name:"legend",layoutAttributes:hb(),supplyLayoutDefaults:pb(),draw:Eb(),style:Cb()}});var _O=le((_8e,bO)=>{"use strict";bO.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"}}});var wO=le((x8e,xO)=>{"use strict";xO.exports={moduleType:"locale",name:"en-US",dictionary:{"Click to enter Colorscale title":"Click to enter Colorscale title"},format:{date:"%m/%d/%Y"}}});var x8=le((w8e,kO)=>{"use strict";var kpe=_t(),TO=mr(),_8=TO.extendFlat,AO=TO.extendDeep;function MO(e){var r;switch(e){case"themes__thumb":r={autosize:!0,width:150,height:150,title:{text:""},showlegend:!1,margin:{l:5,r:5,t:5,b:5,pad:0},annotations:[]};break;case"thumbnail":r={title:{text:""},showlegend:!1,borderwidth:0,bordercolor:"",margin:{l:1,r:1,t:1,b:1,pad:0},annotations:[]};break;default:r={}}return r}function Cpe(e){var r=["xaxis","yaxis","zaxis"];return r.indexOf(e.slice(0,5))>-1}kO.exports=function(r,t){var a,n=r.data,i=r.layout,o=AO([],n),l=AO({},i,MO(t.tileClass)),s=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 u=Object.keys(l);for(a=0;a{"use strict";var Spe=zp().EventEmitter,Dpe=_t(),Fpe=mr(),CO=_c(),Epe=x8(),Lpe=Og(),qpe=Ug();function Ppe(e,r){var t=new Spe,a=Epe(e,{format:"png"}),n=a.gd;n.style.position="absolute",n.style.left="-5000px",document.body.appendChild(n);function i(){var l=CO.getDelay(n._fullLayout);setTimeout(function(){var s=Lpe(n),u=document.createElement("canvas");u.id=Fpe.randstr(),t=qpe({format:r.format,width:n._fullLayout.width,height:n._fullLayout.height,canvas:u,emitter:t,svg:s}),t.clean=function(){n&&document.body.removeChild(n)}},l)}var o=CO.getRedrawFunc(n);return Dpe.call("_doPlot",n,a.data,a.layout,a.config).then(o).then(i).catch(function(l){t.emit("error",l)}),t}SO.exports=Ppe});var LO=le((M8e,EO)=>{"use strict";var FO=_c(),Rpe={getDelay:FO.getDelay,getRedrawFunc:FO.getRedrawFunc,clone:x8(),toSVG:Og(),svgToImg:Ug(),toImage:DO(),downloadImage:$7()};EO.exports=Rpe});var PO=le(Vu=>{"use strict";Vu.version=Q2().version;N_();wk();var zpe=_t(),ad=Vu.register=zpe.register,A8=BR(),qO=Object.keys(A8);for(I3=0;I3{"use strict";RO.exports=PO()});var nd=le((C8e,OO)=>{"use strict";var{hovertemplateAttrs:Npe,texttemplateAttrs:Bpe,templatefallbackAttrs:NO}=Gf(),Ipe=k7(),Xs=bc(),Hpe=Go(),BO=G1(),Ope=Cs().dash,Lc=Tn().extendFlat,Upe=Yo().overrideAll,fl=Xs.marker,IO=Xs.line,HO=fl.line;OO.exports=Upe({lon:{valType:"data_array"},lat:{valType:"data_array"},locations:{valType:"data_array"},locationmode:{valType:"enumerated",values:["ISO-3","USA-states","country names","geojson-id"],dflt:"ISO-3"},geojson:{valType:"any",editType:"calc"},featureidkey:{valType:"string",editType:"calc",dflt:"id"},mode:Lc({},Xs.mode,{dflt:"markers"}),text:Lc({},Xs.text,{}),texttemplate:Bpe({editType:"plot"},{keys:["lat","lon","location","text"]}),texttemplatefallback:NO({editType:"plot"}),hovertext:Lc({},Xs.hovertext,{}),textfont:Xs.textfont,textposition:Xs.textposition,line:{color:IO.color,width:IO.width,dash:Ope},connectgaps:Xs.connectgaps,marker:Lc({symbol:fl.symbol,opacity:fl.opacity,angle:fl.angle,angleref:Lc({},fl.angleref,{values:["previous","up","north"]}),standoff:fl.standoff,size:fl.size,sizeref:fl.sizeref,sizemin:fl.sizemin,sizemode:fl.sizemode,colorbar:fl.colorbar,line:Lc({width:HO.width,dash:HO.dash},BO("marker.line")),gradient:fl.gradient},BO("marker")),fill:{valType:"enumerated",values:["none","toself"],dflt:"none"},fillcolor:Ipe(),selected:Xs.selected,unselected:Xs.unselected,hoverinfo:Lc({},Hpe.hoverinfo,{flags:["lon","lat","location","text","name"]}),hovertemplate:Npe(),hovertemplatefallback:NO()},"calc","nested")});var GO=le((S8e,UO)=>{"use strict";var M8=mr(),T8=_i(),Gpe=Q7(),Ype=e9(),Vpe=r9(),Xpe=t9(),jpe=nd();UO.exports=function(r,t,a,n){function i(d,m){return M8.coerce(r,t,jpe,d,m)}var o=i("locations"),l;if(o&&o.length){var s=i("geojson"),u;(typeof s=="string"&&s!==""||M8.isPlainObject(s))&&(u="geojson-id");var f=i("locationmode",u);f==="geojson-id"&&i("featureidkey"),l=o.length}else{var c=i("lon")||[],h=i("lat")||[];l=Math.min(c.length,h.length)}if(!l){t.visible=!1;return}t._length=l,i("text"),i("hovertext"),i("hovertemplate"),i("hovertemplatefallback"),i("mode"),T8.hasMarkers(t)&&Gpe(r,t,a,n,i,{gradient:!0}),T8.hasLines(t)&&(Ype(r,t,a,n,i),i("connectgaps")),T8.hasText(t)&&(i("texttemplate"),i("texttemplatefallback"),Vpe(r,t,n,i)),i("fill"),t.fill!=="none"&&Xpe(r,t,a,i),M8.coerceSelectionMarkerOpacity(t,i)}});var XO=le((D8e,VO)=>{"use strict";var YO=Oa();VO.exports=function(r,t,a){var n={},i=a[t.geo]._subplot,o=i.mockAxis,l=r.lonlat;return n.lonLabel=YO.tickText(o,o.c2l(l[0]),!0).text,n.latLabel=YO.tickText(o,o.c2l(l[1]),!0).text,n}});var JO=le((F8e,$O)=>{"use strict";var k8=Wt(),jO=(Ya(),Tr($a)).BADNUM,Wpe=i9(),Zpe=Bh(),$pe=$g(),Jpe=mr().isArrayOrTypedArray,WO=mr()._;function ZO(e){return e&&typeof e=="string"}$O.exports=function(r,t){var a=Jpe(t.locations),n=a?t.locations.length:t._length,i=new Array(n),o;t.geojson?o=function(h){return ZO(h)||k8(h)}:o=ZO;for(var l=0;lQpe,clipPad:()=>nme,fillLayers:()=>fme,fitboundsIncompatible:()=>tme,landColor:()=>ome,lataxisSpan:()=>rme,layerNameToAdjective:()=>dme,layers:()=>vme,layersForChoropleth:()=>hme,lineLayers:()=>cme,locationmodeToLayer:()=>sme,lonaxisSpan:()=>eme,precision:()=>ime,projNames:()=>Kpe,scopeDefaults:()=>ame,sphereSVG:()=>ume,waterColor:()=>lme});var Kpe,Qpe,eme,rme,tme,ame,nme,ime,ome,lme,sme,ume,fme,cme,vme,hme,dme,od=Ia(()=>{"use strict";Kpe={airy:"airy",aitoff:"aitoff","albers usa":"albersUsa",albers:"albers",august:"august","azimuthal equal area":"azimuthalEqualArea","azimuthal equidistant":"azimuthalEquidistant",baker:"baker",bertin1953:"bertin1953",boggs:"boggs",bonne:"bonne",bottomley:"bottomley",bromley:"bromley",collignon:"collignon","conic conformal":"conicConformal","conic equal area":"conicEqualArea","conic equidistant":"conicEquidistant",craig:"craig",craster:"craster","cylindrical equal area":"cylindricalEqualArea","cylindrical stereographic":"cylindricalStereographic",eckert1:"eckert1",eckert2:"eckert2",eckert3:"eckert3",eckert4:"eckert4",eckert5:"eckert5",eckert6:"eckert6",eisenlohr:"eisenlohr","equal earth":"equalEarth",equirectangular:"equirectangular",fahey:"fahey","foucaut sinusoidal":"foucautSinusoidal",foucaut:"foucaut",ginzburg4:"ginzburg4",ginzburg5:"ginzburg5",ginzburg6:"ginzburg6",ginzburg8:"ginzburg8",ginzburg9:"ginzburg9",gnomonic:"gnomonic","gringorten quincuncial":"gringortenQuincuncial",gringorten:"gringorten",guyou:"guyou",hammer:"hammer",hill:"hill",homolosine:"homolosine",hufnagel:"hufnagel",hyperelliptical:"hyperelliptical",kavrayskiy7:"kavrayskiy7",lagrange:"lagrange",larrivee:"larrivee",laskowski:"laskowski",loximuthal:"loximuthal",mercator:"mercator",miller:"miller",mollweide:"mollweide","mt flat polar parabolic":"mtFlatPolarParabolic","mt flat polar quartic":"mtFlatPolarQuartic","mt flat polar sinusoidal":"mtFlatPolarSinusoidal","natural earth":"naturalEarth","natural earth1":"naturalEarth1","natural earth2":"naturalEarth2","nell hammer":"nellHammer",nicolosi:"nicolosi",orthographic:"orthographic",patterson:"patterson","peirce quincuncial":"peirceQuincuncial",polyconic:"polyconic","rectangular polyconic":"rectangularPolyconic",robinson:"robinson",satellite:"satellite","sinu mollweide":"sinuMollweide",sinusoidal:"sinusoidal",stereographic:"stereographic",times:"times","transverse mercator":"transverseMercator","van der grinten":"vanDerGrinten","van der grinten2":"vanDerGrinten2","van der grinten3":"vanDerGrinten3","van der grinten4":"vanDerGrinten4",wagner4:"wagner4",wagner6:"wagner6",wiechel:"wiechel","winkel tripel":"winkel3",winkel3:"winkel3"},Qpe=["lonaxis","lataxis"],eme={orthographic:180,"azimuthal equal area":360,"azimuthal equidistant":360,"conic conformal":180,gnomonic:160,stereographic:180,"transverse mercator":180,"*":360},rme={"conic conformal":150,stereographic:179.5,"*":180},tme=new Set(["albers usa","craig","peirce quincuncial","satellite"]),ame={world:{lonaxisRange:[-180,180],lataxisRange:[-90,90],projType:"equirectangular",projRotate:[0,0,0]},usa:{lonaxisRange:[-180,-50],lataxisRange:[15,80],projType:"albers usa"},europe:{lonaxisRange:[-30,60],lataxisRange:[30,85],projType:"conic conformal",projRotate:[15,0,0],projParallels:[0,60]},asia:{lonaxisRange:[22,160],lataxisRange:[-15,55],projType:"mercator",projRotate:[0,0,0]},africa:{lonaxisRange:[-30,60],lataxisRange:[-40,40],projType:"mercator",projRotate:[0,0,0]},"north america":{lonaxisRange:[-180,-45],lataxisRange:[5,85],projType:"conic conformal",projRotate:[-100,0,0],projParallels:[29.5,45.5]},"south america":{lonaxisRange:[-100,-30],lataxisRange:[-60,15],projType:"mercator",projRotate:[0,0,0]},antarctica:{lonaxisRange:[-180,180],lataxisRange:[-90,-60],projType:"equirectangular",projRotate:[0,0,0]},oceania:{lonaxisRange:[-180,180],lataxisRange:[-50,25],projType:"equirectangular",projRotate:[0,0,0]}},nme=.001,ime=.1,ome="#F0DC82",lme="#3399FF",sme={"ISO-3":"countries","USA-states":"subunits","country names":"countries"},ume={type:"Sphere"},fme={ocean:1,land:1,lakes:1},cme={subunits:1,countries:1,coastlines:1,rivers:1,frame:1},vme=["bg","ocean","land","lakes","subunits","countries","coastlines","rivers","lataxis","lonaxis","frame","backplot","frontplot"],hme=["bg","ocean","land","subunits","countries","coastlines","lataxis","lonaxis","frame","backplot","lakes","rivers","frontplot"],dme={ocean:"ocean",land:"land",lakes:"lake",subunits:"subunit",countries:"country",coastlines:"coastline",rivers:"river",frame:"frame"}});var C8=le((O3,KO)=>{(function(e,r){typeof O3=="object"&&typeof KO!="undefined"?r(O3):(e=e||self,r(e.topojson=e.topojson||{}))})(O3,function(e){"use strict";function r(x){return x}function t(x){if(x==null)return r;var _,M,T=x.scale[0],A=x.scale[1],E=x.translate[0],P=x.translate[1];return function(z,B){B||(_=M=0);var X=2,I=z.length,V=new Array(I);for(V[0]=(_+=z[0])*T+E,V[1]=(M+=z[1])*A+P;XE&&(E=X[0]),X[1]P&&(P=X[1])}function B(X){switch(X.type){case"GeometryCollection":X.geometries.forEach(B);break;case"Point":z(X.coordinates);break;case"MultiPoint":X.coordinates.forEach(z);break}}x.arcs.forEach(function(X){for(var I=-1,V=X.length,H;++IE&&(E=H[0]),H[1]P&&(P=H[1])});for(M in x.objects)B(x.objects[M]);return[T,A,E,P]}function n(x,_){for(var M,T=x.length,A=T-_;A<--T;)M=x[A],x[A++]=x[T],x[T]=M}function i(x,_){return typeof _=="string"&&(_=x.objects[_]),_.type==="GeometryCollection"?{type:"FeatureCollection",features:_.geometries.map(function(M){return o(x,M)})}:o(x,_)}function o(x,_){var M=_.id,T=_.bbox,A=_.properties==null?{}:_.properties,E=l(x,_);return M==null&&T==null?{type:"Feature",properties:A,geometry:E}:T==null?{type:"Feature",id:M,properties:A,geometry:E}:{type:"Feature",id:M,bbox:T,properties:A,geometry:E}}function l(x,_){var M=t(x.transform),T=x.arcs;function A(I,V){V.length&&V.pop();for(var H=T[I<0?~I:I],Q=0,oe=H.length;Q1)T=c(x,_,M);else for(A=0,T=new Array(E=x.arcs.length);A1)for(var V=1,H=z(X[0]),Q,oe;VH&&(oe=X[0],X[0]=X[V],X[V]=oe,H=Q);return X}).filter(function(B){return B.length>0})}}function p(x,_){for(var M=0,T=x.length;M>>1;x[A]<_?M=A+1:T=A}return M}function y(x){var _={},M=x.map(function(){return[]});function T(re,te){re.forEach(function(ie){ie<0&&(ie=~ie);var ce=_[ie];ce?ce.push(te):_[ie]=[te]})}function A(re,te){re.forEach(function(ie){T(ie,te)})}function E(re,te){re.type==="GeometryCollection"?re.geometries.forEach(function(ie){E(ie,te)}):re.type in P&&P[re.type](re.arcs,te)}var P={LineString:T,MultiLineString:A,Polygon:A,MultiPolygon:function(re,te){re.forEach(function(ie){A(ie,te)})}};x.forEach(E);for(var z in _)for(var B=_[z],X=B.length,I=0;I=2))throw new Error("n must be \u22652");B=x.bbox||a(x);var M=B[0],T=B[1],A=B[2],E=B[3],P;_={scale:[A-M?(A-M)/(P-1):1,E-T?(E-T)/(P-1):1],translate:[M,T]}}else B=x.bbox;var z=b(_),B,X,I=x.objects,V={};function H(re){return z(re)}function Q(re){var te;switch(re.type){case"GeometryCollection":te={type:"GeometryCollection",geometries:re.geometries.map(Q)};break;case"Point":te={type:"Point",coordinates:H(re.coordinates)};break;case"MultiPoint":te={type:"MultiPoint",coordinates:re.coordinates.map(H)};break;default:return re}return re.id!=null&&(te.id=re.id),re.bbox!=null&&(te.bbox=re.bbox),re.properties!=null&&(te.properties=re.properties),te}function oe(re){var te=0,ie=1,ce=re.length,Me,De=new Array(ce);for(De[0]=z(re[0],0);++te{"use strict";var S8=QO.exports={},pme=(od(),Tr(id)).locationmodeToLayer,mme=C8().feature;S8.getTopojsonName=function(e){return[e.scope.replace(/ /g,"-"),"_",e.resolution.toString(),"m"].join("")};S8.getTopojsonPath=function(e,r){return e+=e.endsWith("/")?"":"/",`${e}${r}.json`};S8.getTopojsonFeatures=function(e,r){var t=pme[e.locationmode],a=r.objects[t];return mme(r,a).features}});var eU=le(ld=>{"use strict";var gme=(Ya(),Tr($a)).BADNUM;ld.calcTraceToLineCoords=function(e){for(var r=e[0].trace,t=r.connectgaps,a=[],n=[],i=0;i0&&(a.push(n),n=[])}return n.length>0&&a.push(n),a};ld.makeLine=function(e){return e.length===1?{type:"LineString",coordinates:e[0]}:{type:"MultiLineString",coordinates:e}};ld.makePolygon=function(e){if(e.length===1)return{type:"Polygon",coordinates:e};for(var r=new Array(e.length),t=0;t{"use strict";var F8=Object.defineProperty,yme=Object.getOwnPropertyDescriptor,bme=Object.getOwnPropertyNames,_me=Object.prototype.hasOwnProperty,xme=(e,r)=>{for(var t in r)F8(e,t,{get:r[t],enumerable:!0})},wme=(e,r,t,a)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of bme(r))!_me.call(e,n)&&n!==t&&F8(e,n,{get:()=>r[n],enumerable:!(a=yme(r,n))||a.enumerable});return e},Ame=e=>wme(F8({},"__esModule",{value:!0}),e),rU={};xme(rU,{COUNTRIES:()=>tU,byAlpha2:()=>Cme,byAlpha3:()=>kme,byM49:()=>Sme,createLookup:()=>aU,lookup:()=>Mme,lookupAlpha3:()=>Tme,sanitize:()=>D8});nU.exports=Ame(rU);var tU=[{iso3:"ABW",iso2:"AW",m49:"533",name:"Aruba",aliases:["\u{1F1E6}\u{1F1FC}","country of aruba","land aruba","pais aruba"]},{iso3:"AFG",iso2:"AF",m49:"004",name:"Afghanistan",aliases:["\u{1F1E6}\u{1F1EB}","affghanistan","affghanisthan","affghaunistan","afghania","afghanisthan","afghaunistan","afghaunistaun","afgoniston","de afghanistan islami jumhuriyat","owganystan","\u0430\u0444\u0493\u043E\u043D\u0438\u0441\u0442\u043E\u043D","\u0623\u0641\u063A\u0627\u0646\u0633\u062A\u0627\u0646","\u0627\u0641\u063A\u0627\u0646\u0633\u062A\u0627\u0646","\u062F \u0627\u0641\u063A\u0627\u0646\u0633\u062A\u0627\u0646 \u0627\u0633\u0644\u0627\u0645\u06CC \u062C\u0645\u0647\u0648\u0631\u06CC\u062A"]},{iso3:"AGO",iso2:"AO",m49:"024",name:"Angola",aliases:["\u{1F1E6}\u{1F1F4}","republic of angola","republica de angola"]},{iso3:"AIA",iso2:"AI",m49:"660",name:"Anguilla",aliases:["\u{1F1E6}\u{1F1EE}","malliouhana"]},{iso3:"ALA",iso2:"AX",m49:"248",name:"\xC5land Islands",aliases:["\u{1F1E6}\u{1F1FD}","aaland","aaland islands","ahvenanmaa","aland","aland isles","aland region","alands lan","landskapet aland"]},{iso3:"ALB",iso2:"AL",m49:"008",name:"Albania",aliases:["\u{1F1E6}\u{1F1F1}","peoples republic of albania","peoples socialist republic of albania","republic of albania","republika e shqiperise","shqiperi","shqiperia","shqiperise","socialist republic of albania"]},{iso3:"AND",iso2:"AD",m49:"020",name:"Andorra",aliases:["\u{1F1E6}\u{1F1E9}","el pais dels pirineus","les valls dandorra","principality of andorra","principality of the valleys of andorra","principat dandorra","valls dandorra"]},{iso3:"ARE",iso2:"AE",m49:"784",name:"United Arab Emirates",aliases:["\u{1F1E6}\u{1F1EA}","emirates","uae","\u0627\u0644\u0625\u0645\u0627\u0631\u0627\u062A","\u0627\u0644\u0625\u0645\u0627\u0631\u0627\u062A \u0627\u0644\u0639\u0631\u0628\u064A\u0629 \u0627\u0644\u0645\u062A\u062D\u062F\u0629","\u0627\u0644\u0627\u0645\u0627\u0631\u0627\u062A","\u0627\u0644\u0627\u0645\u0627\u0631\u0627\u062A \u0627\u0644\u0639\u0631\u0628\u064A\u0629 \u0627\u0644\u0645\u062A\u062D\u062F\u0629","\u062F\u0648\u0644\u0629 \u0627\u0644\u0625\u0645\u0627\u0631\u0627\u062A \u0627\u0644\u0639\u0631\u0628\u064A\u0629 \u0627\u0644\u0645\u062A\u062D\u062F\u0629"]},{iso3:"ARG",iso2:"AR",m49:"032",name:"Argentina",aliases:["\u{1F1E6}\u{1F1F7}","argentine republic","nacion argentina","republic of argentina","republica argentina"]},{iso3:"ARM",iso2:"AM",m49:"051",name:"Armenia",aliases:["\u{1F1E6}\u{1F1F2}","hayastan","hayastani hanrapetutyun","republic of armenia","\u0570\u0561\u0575\u0561\u057D\u057F\u0561\u0576","\u0570\u0561\u0575\u0561\u057D\u057F\u0561\u0576\u056B \u0570\u0561\u0576\u0580\u0561\u057A\u0565\u057F\u0578\u0582\u0569\u0575\u0578\u0582\u0576","\u0570\u0561\u0575\u0584","\u0570\u0570"]},{iso3:"ASM",iso2:"AS",m49:"016",name:"American Samoa",aliases:["\u{1F1E6}\u{1F1F8}","amerika samoa","east samoa","samoa american","samoa united states","territory of american samoa","us samoa"]},{iso3:"ATA",iso2:"AQ",m49:"010",name:"Antarctica",aliases:["\u{1F1E6}\u{1F1F6}","antarctica treaty area"]},{iso3:"ATF",iso2:"TF",m49:"260",name:"French Southern Territories",aliases:["\u{1F1F9}\u{1F1EB}","taaf","terres australes et antarctiques francaises","terres australes francaises","terres australes francaises les","territoire des terres australes et antarctiques francaises"]},{iso3:"ATG",iso2:"AG",m49:"028",name:"Antigua and Barbuda",aliases:["\u{1F1E6}\u{1F1EC}","antigua","antigua barbuda","barbuda"]},{iso3:"AUS",iso2:"AU",m49:"036",name:"Australia",aliases:["\u{1F1E6}\u{1F1FA}","commonwealth of australia","new holland","new hollandia","nova hollandia"]},{iso3:"AUT",iso2:"AT",m49:"040",name:"Austria",aliases:["\u{1F1E6}\u{1F1F9}","osterreich","republic of austria","republik osterreich","zweite republik"]},{iso3:"AZE",iso2:"AZ",m49:"031",name:"Azerbaijan",aliases:["\u{1F1E6}\u{1F1FF}","az\u0259rbaycan","az\u0259rbaycan respublikas\u0131","republic of azerbaijan"]},{iso3:"BDI",iso2:"BI",m49:"108",name:"Burundi",aliases:["\u{1F1E7}\u{1F1EE}","gouvernement du burundi","la republique du burundi","republic of burundi","republika yu burundi","republika yuburundi","republique du burundi","repuburika yuburundi","uburundi"]},{iso3:"BEL",iso2:"BE",m49:"056",name:"Belgium",aliases:["\u{1F1E7}\u{1F1EA}","belg","belgie","belgien","belgique","kingdom of belgium","konigreich belgien","koninkrijk belgie","royaume de belgique"]},{iso3:"BEN",iso2:"BJ",m49:"204",name:"Benin",aliases:["\u{1F1E7}\u{1F1EF}","dahomey","la republique du benin","republic of benin","republique du benin"]},{iso3:"BES",iso2:"BQ",m49:"535",name:"Bonaire, Sint Eustatius and Saba",aliases:["\u{1F1E7}\u{1F1F6}","bes eilanden","bes islands","bijzondere gemeente","bonaire","bonaire saint eustatius and saba","bonaire sint eustatius en saba","caraibisch nederland","caribbean netherlands","caribisch nederland","hulanda karibense","islanan bes","netherlands antilles","saba","sint eustatius"]},{iso3:"BFA",iso2:"BF",m49:"854",name:"Burkina Faso",aliases:["\u{1F1E7}\u{1F1EB}","republic of burkina faso","republic of upper volta"]},{iso3:"BGD",iso2:"BD",m49:"050",name:"Bangladesh",aliases:["\u{1F1E7}\u{1F1E9}","bangla desh","east pakistan","gonaoprojatontri bangladesh","peoples republic of bangladesh","\u0997\u09A3\u09AA\u09CD\u09B0\u099C\u09BE\u09A4\u09A8\u09CD\u09A4\u09CD\u09B0\u09C0 \u09AC\u09BE\u0982\u09B2\u09BE\u09A6\u09C7\u09B6","\u09AC\u09BE\u0982\u09B2\u09BE \u09A6\u09C7\u09B6","\u09AC\u09BE\u0982\u09B2\u09BE\u09A6\u09C7\u09B6","\u09AC\u09BF\u09A1\u09BF"]},{iso3:"BGR",iso2:"BG",m49:"100",name:"Bulgaria",aliases:["\u{1F1E7}\u{1F1EC}","bulgarian republic","republic of bulgaria","republika bulgaria","republika bulgariya","\u0431\u0433","\u0431\u044A\u043B\u0433\u0430\u0440\u0438\u044F","\u0440\u0435\u043F\u0443\u0431\u043B\u0438\u043A\u0430 \u0431\u044A\u043B\u0433\u0430\u0440\u0438\u044F"]},{iso3:"BHR",iso2:"BH",m49:"048",name:"Bahrain",aliases:["\u{1F1E7}\u{1F1ED}","bahrein islands","kingdom of bahrain","\u0627\u0644\u0628\u062D\u0631\u064A\u0646","\u062F\u0648\u0644\u0629 \u0627\u0644\u0628\u062D\u0631\u064A\u0646","\u0645\u0645\u0644\u0643\u0629 \u0627\u0644\u0628\u062D\u0631\u064A\u0646"]},{iso3:"BHS",iso2:"BS",m49:"044",name:"Bahamas",aliases:["\u{1F1E7}\u{1F1F8}","bahama islands","bahamas the","commonwealth of the bahamas"]},{iso3:"BIH",iso2:"BA",m49:"070",name:"Bosnia and Herzegovina",aliases:["\u{1F1E7}\u{1F1E6}","bosna","bosna i hercegovina","bosnia","bosnia and hercegovina","bosnia herzegovina","hercegovina","herzegovina","\u0431\u0438\u0445","\u0431\u043E\u0441\u043D\u0430","\u0431\u043E\u0441\u043D\u0430 \u0438 \u0445\u0435\u0440\u0446\u0435\u0433\u043E\u0432\u0438\u043D\u0430","\u0431\u0445"]},{iso3:"BLM",iso2:"BL",m49:"652",name:"Saint Barth\xE9lemy",aliases:["\u{1F1E7}\u{1F1F1}","collectivite doutre mer de saint barthelemy","collectivite territoriale de saint barthelemy","collectivity of saint barthelemy","saint barth","saint barths","saint barts","saint bartz"]},{iso3:"BLR",iso2:"BY",m49:"112",name:"Belarus",aliases:["\u{1F1E7}\u{1F1FE}","republic of belarus","respublika belarus","respublika byelarus","\u0431\u0435\u043B\u0430\u0440\u0443\u0441\u043A\u0430\u044F \u0440\u044D\u0441\u043F\u0443\u0431\u043B\u0456\u043A\u0430","\u0431\u0435\u043B\u0430\u0440\u0443\u0441\u044C","\u0431\u0435\u043B\u0430\u044F \u0440\u0443\u0441\u044C","\u0431\u0435\u043B\u043E\u0440\u0443\u0441\u0441\u0438\u044F","\u0440\u0431","\u0440\u0435\u0441\u043F\u0443\u0431\u043B\u0438\u043A\u0430 \u0431\u0435\u043B\u0430\u0440\u0443\u0441\u044C","\u0440\u044D\u0441\u043F\u0443\u0431\u043B\u0456\u043A\u0430 \u0431\u0435\u043B\u0430\u0440\u0443\u0441\u044C"]},{iso3:"BLZ",iso2:"BZ",m49:"084",name:"Belize",aliases:["\u{1F1E7}\u{1F1FF}"]},{iso3:"BMU",iso2:"BM",m49:"060",name:"Bermuda",aliases:["\u{1F1E7}\u{1F1F2}","barmuda","barmuda i","barmuda isl","barmuda islands","barmudas","bermoothes","bermuda islands","bermudas","bermudian islands","colony of bermuda","devils isles","isle of devils","somers islands","somers isles","summers isles","territory of bermuda","virgineola"]},{iso3:"BOL",iso2:"BO",m49:"068",name:"Bolivia (Plurinational State of)",aliases:["\u{1F1E7}\u{1F1F4}","bolivia","bulibiya","estado plurinacional de bolivia","plurinational state of bolivia","puliwya","republic of bolivia","republica de bolivia","volivia","wuliwiya","wuliwya"]},{iso3:"BRA",iso2:"BR",m49:"076",name:"Brazil",aliases:["\u{1F1E7}\u{1F1F7}","brasil","federative republic of brazil","pindorama","republica federativa do brasil"]},{iso3:"BRB",iso2:"BB",m49:"052",name:"Barbados",aliases:["\u{1F1E7}\u{1F1E7}","barbadoes"]},{iso3:"BRN",iso2:"BN",m49:"096",name:"Brunei Darussalam",aliases:["\u{1F1E7}\u{1F1F3}","brunei","nation of brunei the abode of peace","negara brunei darussalam"]},{iso3:"BTN",iso2:"BT",m49:"064",name:"Bhutan",aliases:["\u{1F1E7}\u{1F1F9}","kingdom of bhutan","\u0F60\u0F56\u0FB2\u0F74\u0F42","\u0F60\u0F56\u0FB2\u0F74\u0F42\u0F0B\u0F61\u0F74\u0F63\u0F0B","\u0F60\u0F56\u0FB2\u0F74\u0F42\u0F61\u0F74\u0F63\u0F0B\u0F0B"]},{iso3:"BVT",iso2:"BV",m49:"074",name:"Bouvet Island",aliases:["\u{1F1E7}\u{1F1FB}"]},{iso3:"BWA",iso2:"BW",m49:"072",name:"Botswana",aliases:["\u{1F1E7}\u{1F1FC}","lefatshe la botswana","republic of botswana"]},{iso3:"CAF",iso2:"CF",m49:"140",name:"Central African Republic",aliases:["\u{1F1E8}\u{1F1EB}","centrafricaine republique","centrafrique","central africa","kodorosese ti beafrika","la republique","rep centrafrique","republique centrafricaine"]},{iso3:"CAN",iso2:"CA",m49:"124",name:"Canada",aliases:["\u{1F1E8}\u{1F1E6}","le canada"]},{iso3:"CCK",iso2:"CC",m49:"166",name:"Cocos (Keeling) Islands",aliases:["\u{1F1E8}\u{1F1E8}","cocos islands","keeling islands","territory of the cocos keeling islands"]},{iso3:"CHE",iso2:"CH",m49:"756",name:"Switzerland",aliases:["\u{1F1E8}\u{1F1ED}","confederation helvetique","confederation suisse","confederazione elvetica","confederazione svizzera","confederaziun svizra","confoederatio helvetica","conf\u0153deratio helvetica","eidgenossenschaft","elvezia","helvetie","la confederation suisse","schweiz","schweizerische eidgenossenschaft","suisse","svizra","svizzera","swiss","swiss confederation"]},{iso3:"CHL",iso2:"CL",m49:"152",name:"Chile",aliases:["\u{1F1E8}\u{1F1F1}","republic of chile","republica de chile"]},{iso3:"CHN",iso2:"CN",m49:"156",name:"China",aliases:["\u{1F1E8}\u{1F1F3}","china pr","peoples republic of china","pr china","prc","\u4E2D\u534E\u4EBA\u6C11\u5171\u548C\u56FD","\u4E2D\u56FD"]},{iso3:"CIV",iso2:"CI",m49:"384",name:"C\xF4te d'Ivoire",aliases:["\u{1F1E8}\u{1F1EE}","cote ivoire","ivory coast","republic of cote divoire","republic of ivory coast","republic of the ivory coast","republique de cote divoire"]},{iso3:"CMR",iso2:"CM",m49:"120",name:"Cameroon",aliases:["\u{1F1E8}\u{1F1F2}","cameroun","la republique du cameroun","republic of cameroon","republique du cameroun"]},{iso3:"COD",iso2:"CD",m49:"180",name:"Democratic Republic of the Congo",aliases:["\u{1F1E8}\u{1F1E9}","congo belge","congo democratic republic of the","congo kinshasa","dem rep congo","dem republic of congo","dem republic of the congo","democratic republic of congo","dr congo","drc","rd congo","rep demcongo","republic of the congo","republique democratique du congo","republique du zaire","zaire"]},{iso3:"COG",iso2:"CG",m49:"178",name:"Congo",aliases:["\u{1F1E8}\u{1F1EC}","congo brazza","congo brazzaville","congo republic","rep congo","republic of congo","republique du congo"]},{iso3:"COK",iso2:"CK",m49:"184",name:"Cook Islands",aliases:["\u{1F1E8}\u{1F1F0}","cook group","hervey islands"]},{iso3:"COL",iso2:"CO",m49:"170",name:"Colombia",aliases:["\u{1F1E8}\u{1F1F4}","republic of colombia","republica de colombia"]},{iso3:"COM",iso2:"KM",m49:"174",name:"Comoros",aliases:["\u{1F1F0}\u{1F1F2}","comores","comores archipel","etat comorien","lunion des comores","republique des comores","republique federale et islamique des comores","republique federale islamique des comores","territoire des comores","union des comores","union of the comoros","\u0625\u062A\u062D\u0627\u062F \u0627\u0644\u0642\u0645\u0631","\u0627\u062A\u062D\u0627\u062F \u062C\u0632\u0631 \u0627\u0644\u0642\u0645\u0631","\u0627\u0644\u0627\u062A\u062D\u0627\u062F \u0627\u0644\u0642\u0645\u0631\u064A","\u0627\u0644\u0642\u0645\u0631","\u062C\u0632\u0631 \u0627\u0644\u0642\u0645\u0631","\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u0627\u0644\u0642\u0645\u0631 \u0627\u0644\u0645\u062A\u062D\u062F\u0629","\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u062C\u0632\u0631 \u0627\u0644\u0642\u0645\u0631 \u0627\u0644\u0627\u062A\u062D\u0627\u062F\u064A\u0629 \u0627\u0644\u0625\u0633\u0644\u0627\u0645\u064A\u0629","\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u062C\u0632\u0631\u0627\u0644\u0642\u0645\u0631 \u0627\u0644\u0645\u062A\u062D\u062F\u0629"]},{iso3:"CPV",iso2:"CV",m49:"132",name:"Cabo Verde",aliases:["\u{1F1E8}\u{1F1FB}","cape verde","cape verde islands","kab verd","kabu verdi","kauberdi","republic of cabo verde","republic of cape verde","republica de cabo verde"]},{iso3:"CRI",iso2:"CR",m49:"188",name:"Costa Rica",aliases:["\u{1F1E8}\u{1F1F7}","republic of costa rica","republica de costa rica"]},{iso3:"CUB",iso2:"CU",m49:"192",name:"Cuba",aliases:["\u{1F1E8}\u{1F1FA}","isla juana","republic of cuba","republica de cuba"]},{iso3:"CUW",iso2:"CW",m49:"531",name:"Cura\xE7ao",aliases:["\u{1F1E8}\u{1F1FC}","corsou","corsouw","corsow","country of curacao","curacau","curacoa","curazao","cura\u03C2ao","curocao","island territory of curacao","korsou","land curacao","pais korsou"]},{iso3:"CXR",iso2:"CX",m49:"162",name:"Christmas Island",aliases:["\u{1F1E8}\u{1F1FD}","christmas island other territories","christmas island other territories australia","territory of christmas island"]},{iso3:"CYM",iso2:"KY",m49:"136",name:"Cayman Islands",aliases:["\u{1F1F0}\u{1F1FE}","caymans"]},{iso3:"CYP",iso2:"CY",m49:"196",name:"Cyprus",aliases:["\u{1F1E8}\u{1F1FE}","greek administration of southern cyprus","greek cypriot state","guney k\u0131br\u0131s","guney k\u0131br\u0131s rum cumhuriyeti","guney k\u0131br\u0131s rum kesimi","guney k\u0131br\u0131s rum yonetimi","kipriaki dhimokratia","k\u0131br\u0131s","k\u0131br\u0131s cumhuriyeti","k\u0131br\u0131s rum kesimi","kypriaki dimokratia","kypros","republic of cyprus","\u03BA\u03C5\u03C0\u03C1\u03B9\u03B1\u03BA\u03B7 \u03B4\u03B7\u03BC\u03BF\u03BA\u03C1\u03B1\u03C4\u03B9\u03B1","\u03BA\u03C5\u03C0\u03C1\u03BF\u03C2"]},{iso3:"CZE",iso2:"CZ",m49:"203",name:"Czechia",aliases:["\u{1F1E8}\u{1F1FF}","ceska republika","ceske kraje","ceske uzemi","ceske zeme","cesko","cr","czech republic"]},{iso3:"DEU",iso2:"DE",m49:"276",name:"Germany",aliases:["\u{1F1E9}\u{1F1EA}","br deutschland","bundesrepublik","bundesrepublik deutschland","deutschland","federal republic of germany"]},{iso3:"DJI",iso2:"DJ",m49:"262",name:"Djibouti",aliases:["\u{1F1E9}\u{1F1EF}","la republique de djibouti","republic of djibouti","republique de djibouti","\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u062C\u064A\u0628\u0648\u062A\u064A","\u062C\u064A\u0628\u0648\u062A\u064A"]},{iso3:"DMA",iso2:"DM",m49:"212",name:"Dominica",aliases:["\u{1F1E9}\u{1F1F2}","commonwealth of dominica","island of dominica","waitu kubuli"]},{iso3:"DNK",iso2:"DK",m49:"208",name:"Denmark",aliases:["\u{1F1E9}\u{1F1F0}","dania","danmark","denmark proper","kongeriget danmark","metropolitan denmark"]},{iso3:"DOM",iso2:"DO",m49:"214",name:"Dominican Republic",aliases:["\u{1F1E9}\u{1F1F4}","dominicana","domrep","haiti espanol","quisqueya","republica de santo domingo","republica dominicana","santo domingo"]},{iso3:"DZA",iso2:"DZ",m49:"012",name:"Algeria",aliases:["\u{1F1E9}\u{1F1FF}","peoples democratic republic of algeria","\u0627\u0644\u062C\u0632\u0627\u0626\u0631","\u0627\u0644\u062C\u0632\u0627\u064A\u0631","\u0627\u0644\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u0627\u0644\u062C\u0632\u0627\u0626\u0631\u064A\u0629 \u0627\u0644\u062F\u064A\u0645\u0642\u0631\u0627\u0637\u064A\u0629 \u0627\u0644\u0634\u0639\u0628\u064A\u0629","\u0627\u0644\u062F\u0632\u0627\u064A\u0631","\u062F\u0632\u0627\u064A\u0631"]},{iso3:"ECU",iso2:"EC",m49:"218",name:"Ecuador",aliases:["\u{1F1EA}\u{1F1E8}","ecuadorian state","el ecuador","estado ecuatoriano","republic of ecuador","republic of equator","republic of the equator","republica del ecuador"]},{iso3:"EGY",iso2:"EG",m49:"818",name:"Egypt",aliases:["\u{1F1EA}\u{1F1EC}","arab rep egypt","arab republic of egypt","rep egypt","republic of egypt","\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u0645\u0635\u0631 \u0627\u0644\u0639\u0631\u0628\u064A\u0629","\u0645\u0635\u0631"]},{iso3:"ERI",iso2:"ER",m49:"232",name:"Eritrea",aliases:["\u{1F1EA}\u{1F1F7}","ertra","hagere ertra","hagere iertra","iertra","iritriya","state of eritrea","\u0625\u0631\u062A\u0631\u064A\u0627","\u0625\u0631\u064A\u062A\u0631\u064A\u0627","\u0627\u0631\u062A\u0631\u064A\u0627","\u0627\u0631\u062A\u064A\u0631\u064A\u0627","\u0627\u0631\u064A\u062A\u0631\u064A\u0627","\u062F\u0648\u0644\u0629 \u0625\u0631\u062A\u0631\u064A\u0627","\u062F\u0648\u0644\u0629 \u0625\u0631\u064A\u062A\u0631\u064A\u0627","\u1203\u1308\u1228 \u12A4\u122D\u1275\u122B","\u12A4\u122D\u1275\u122B"]},{iso3:"ESH",iso2:"EH",m49:"732",name:"Western Sahara",aliases:["\u{1F1EA}\u{1F1ED}","southern provinces","spanish sahara","west sahara"]},{iso3:"ESP",iso2:"ES",m49:"724",name:"Spain",aliases:["\u{1F1EA}\u{1F1F8}","espana","estado espanol","kingdom of spain","reino de espana"]},{iso3:"EST",iso2:"EE",m49:"233",name:"Estonia",aliases:["\u{1F1EA}\u{1F1EA}","eesti","eesti noukogude sotsialistlik vabariik","eesti vabariik","estland","republic of estonia"]},{iso3:"ETH",iso2:"ET",m49:"231",name:"Ethiopia",aliases:["\u{1F1EA}\u{1F1F9}","federal democratic republic of ethiopia","ityopiya","yeityopiya federalawi demokrasiyawi ripeblik","yeityopiya hizbawi dimokrasiyawi ripublik","\u12A2\u1275\u12EE\u1335\u12EB","\u12E8\u12A2\u1275\u12EE\u1335\u12EB \u134C\u12F4\u122B\u120B\u12CA \u12F4\u121E\u12AD\u122B\u1232\u12EB\u12CA \u122A\u1350\u1265\u120A\u12AD"]},{iso3:"FIN",iso2:"FI",m49:"246",name:"Finland",aliases:["\u{1F1EB}\u{1F1EE}","republic of finland","republiken finland","suomen tasavalta","suomi"]},{iso3:"FJI",iso2:"FJ",m49:"242",name:"Fiji",aliases:["\u{1F1EB}\u{1F1EF}","fiji ganarajya","matanitu ko viti","matanitu tugalala o viti","republic of fiji","republic of the fiji islands","viti"]},{iso3:"FLK",iso2:"FK",m49:"238",name:"Falkland Islands (Malvinas)",aliases:["\u{1F1EB}\u{1F1F0}","colony of the falkland islands","falkland islands","falklands","islas malvinas","malvinas","malvinas islands"]},{iso3:"FRA",iso2:"FR",m49:"250",name:"France",aliases:["\u{1F1EB}\u{1F1F7}","fr","french republic","la france","la republique francaise","lhexagone","republique francaise"]},{iso3:"FRO",iso2:"FO",m49:"234",name:"Faroe Islands",aliases:["\u{1F1EB}\u{1F1F4}","faer oer","f\xE6r\xF8","faeroe is","faeroe islands","faeroe isles","f\xE6r\xF8erne","faeroes","far oer","faroe island","faroe isles","faroes","faroese islands","f\xF8roya","f\xF8royar","f\xF8royum"]},{iso3:"FSM",iso2:"FM",m49:"583",name:"Micronesia (Federated States of)",aliases:["\u{1F1EB}\u{1F1F2}","fed sts micronesia","fed sts of micronesia","federated states of micronesia","federated states of micronesia fsm","micronesia"]},{iso3:"GAB",iso2:"GA",m49:"266",name:"Gabon",aliases:["\u{1F1EC}\u{1F1E6}","gabonese republic","la republique gabonaise","le gabon","republique du gabon","republique gabonaise"]},{iso3:"GBR",iso2:"GB",m49:"826",name:"United Kingdom of Great Britain and Northern Ireland",aliases:["\u{1F1EC}\u{1F1E7}","britain","england","great britain","great britain and northern ireland","northern ireland","scotland","uk","united kingdom","wales"]},{iso3:"GEO",iso2:"GE",m49:"268",name:"Georgia",aliases:["\u{1F1EC}\u{1F1EA}","georgia country","republic of georgia","sakartvelo","\u049B\u044B\u0440\u04AD\u0442\u04D9\u044B\u043B\u0430","\u10E1\u10D0\u10E5\u10D0\u10E0\u10D7\u10D5\u10D4\u10DA\u10DD","\u10E1\u10D0\u10E5\u10D0\u10E0\u10D7\u10D5\u10D4\u10DA\u10DD\u10E1 \u10E0\u10D4\u10E1\u10DE\u10E3\u10D1\u10DA\u10D8\u10D9\u10D0"]},{iso3:"GGY",iso2:"GG",m49:"831",name:"Guernsey",aliases:["\u{1F1EC}\u{1F1EC}","bailiwick of guernsey","bailliage de guernesey","bailliage de guernesi","giernesi","great britain guernsey","guernesey","lisia"]},{iso3:"GHA",iso2:"GH",m49:"288",name:"Ghana",aliases:["\u{1F1EC}\u{1F1ED}","republic of ghana"]},{iso3:"GIB",iso2:"GI",m49:"292",name:"Gibraltar",aliases:["\u{1F1EC}\u{1F1EE}","rock of gibraltar"]},{iso3:"GIN",iso2:"GN",m49:"324",name:"Guinea",aliases:["\u{1F1EC}\u{1F1F3}","guinee","guinee conakry","republic of guinea","republique de guinee"]},{iso3:"GLP",iso2:"GP",m49:"312",name:"Guadeloupe",aliases:["\u{1F1EC}\u{1F1F5}"]},{iso3:"GMB",iso2:"GM",m49:"270",name:"Gambia",aliases:["\u{1F1EC}\u{1F1F2}","islamic republic of the gambia","republic of the gambia"]},{iso3:"GNB",iso2:"GW",m49:"624",name:"Guinea-Bissau",aliases:["\u{1F1EC}\u{1F1FC}","guine bissau","republic of guinea bissau","republica da guine bissau"]},{iso3:"GNQ",iso2:"GQ",m49:"226",name:"Equatorial Guinea",aliases:["\u{1F1EC}\u{1F1F6}","guine equatorial","guinea ecuatorial","guinea espanola","guinee equat","guinee equatoriale","la republique de guinee equatoriale","posesiones espanolas del golfo de guinea","provincia de la guinea ecuatorial","republic of equatorial guinea","republica da guine equatorial","republica de guinea ecuatorial","territorios espanoles del golfo de guinea"]},{iso3:"GRC",iso2:"GR",m49:"300",name:"Greece",aliases:["\u{1F1EC}\u{1F1F7}","ellada","ellas","elliniki dhimokratia","elliniki dimokratia","greek republic","hellas","hellas greece","hellenic republic","vasilion tis ellados","\u03B4\u03B7\u03BC\u03BF\u03BA\u03C1\u03B1\u03C4\u03B9\u03B1 \u03C4\u03B7\u03C2 \u03B5\u03BB\u03BB\u03B1\u03B4\u03B1\u03C2","\u03B4\u03B7\u03BC\u03BF\u03BA\u03C1\u03B1\u03C4\u03B9\u03B1 \u03C4\u03B7\u03C2 \u03B5\u03BB\u03BB\u03B1\u03B4\u03BF\u03C2","\u03B5\u03BB\u03BB\u03B1\u03B4\u03B1","\u03B5\u03BB\u03BB\u03B1\u03C2","\u03B5\u03BB\u03BB\u03B1\u03C2 \u03B5\u03BB\u03BB\u03B1\u03B4\u03B1","\u03B5\u03BB\u03BB\u03B7\u03BD\u03B9\u03BA\u03B7 \u03B4\u03B7\u03BC\u03BF\u03BA\u03C1\u03B1\u03C4\u03B9\u03B1"]},{iso3:"GRD",iso2:"GD",m49:"308",name:"Grenada",aliases:["\u{1F1EC}\u{1F1E9}"]},{iso3:"GRL",iso2:"GL",m49:"304",name:"Greenland",aliases:["\u{1F1EC}\u{1F1F1}","kalaallit nunaat"]},{iso3:"GTM",iso2:"GT",m49:"320",name:"Guatemala",aliases:["\u{1F1EC}\u{1F1F9}","republic of guatemala","republica de guatemala"]},{iso3:"GUF",iso2:"GF",m49:"254",name:"French Guiana",aliases:["\u{1F1EC}\u{1F1EB}","fr 973","guiana","guiana france","guyane","guyane francaise","gwiyann","gwiyann franse","lagwiyann"]},{iso3:"GUM",iso2:"GU",m49:"316",name:"Guam",aliases:["\u{1F1EC}\u{1F1FA}","guahan","guam usa","islan guahan","island of guam","territory of guam"]},{iso3:"GUY",iso2:"GY",m49:"328",name:"Guyana",aliases:["\u{1F1EC}\u{1F1FE}","co operative republic of guyana","republic of guyana"]},{iso3:"HKG",iso2:"HK",m49:"344",name:"Hong Kong",aliases:["\u{1F1ED}\u{1F1F0}","hksar","hong kong sar","hong kong special administrative region","hong kong special administrative region of the peoples republic of china","hongkong"]},{iso3:"HMD",iso2:"HM",m49:"334",name:"Heard Island and McDonald Islands",aliases:["\u{1F1ED}\u{1F1F2}","heard","heard & mcdonald islands","heard and macdonald islands","heard island","himi","mcdonald","mcdonald island","territory of heard island and mcdonald islands"]},{iso3:"HND",iso2:"HN",m49:"340",name:"Honduras",aliases:["\u{1F1ED}\u{1F1F3}","guaymuras","higueras","honduran republic","republic of honduras","republica de honduras"]},{iso3:"HRV",iso2:"HR",m49:"191",name:"Croatia",aliases:["\u{1F1ED}\u{1F1F7}","hrvatska","republic of croatia","republika hrvatska"]},{iso3:"HTI",iso2:"HT",m49:"332",name:"Haiti",aliases:["\u{1F1ED}\u{1F1F9}","ayiti","haitian republic","la republique dhaiti","repiblik d ayiti","republic of haiti","republique dhaiti"]},{iso3:"HUN",iso2:"HU",m49:"348",name:"Hungary",aliases:["\u{1F1ED}\u{1F1FA}","a magyar koztarsasag","a magyar nepkoztarsasag","harmadik magyar koztarsasag","magyar koztarsasag","magyar nepkoztarsasag","magyarorszag","mo"]},{iso3:"IDN",iso2:"ID",m49:"360",name:"Indonesia",aliases:["\u{1F1EE}\u{1F1E9}","negara kesatuan republik indonesia","nkri","republic of indonesia","republik indonesia"]},{iso3:"IMN",iso2:"IM",m49:"833",name:"Isle of Man",aliases:["\u{1F1EE}\u{1F1F2}","ellan vannin","i man","i mann","i mannin","isle of mann","mann","mannin","manx"]},{iso3:"IND",iso2:"IN",m49:"356",name:"India",aliases:["\u{1F1EE}\u{1F1F3}","al hind","bharat","bharat ganarajya","bharata","bharatvarsh","hindoostan","hindustan","indostan","republic of india","tenjiku","tianzhu","\u0906\u0930\u094D\u092F\u0935\u0930\u094D\u0924","\u0907\u0902\u0921\u093F\u092F\u093E","\u0907\u0923\u094D\u0921\u093F\u092F\u093E","\u092D\u093E\u0930\u0924","\u092D\u093E\u0930\u0924 \u0917\u0923\u0930\u093E\u091C\u094D\u092F","\u092D\u093E\u0930\u0924\u0935\u0930\u094D\u0937","\u0939\u093F\u0902\u0926\u0941\u0938\u094D\u0924\u093E\u0928","\u0939\u093F\u0928\u094D\u0926\u0941\u0938\u094D\u0924\u093E\u0928","\u0939\u093F\u0928\u094D\u0926\u094B\u0938\u094D\u0924\u093E\u0928"]},{iso3:"IOT",iso2:"IO",m49:"086",name:"British Indian Ocean Territory",aliases:["\u{1F1EE}\u{1F1F4}","biot"]},{iso3:"IRL",iso2:"IE",m49:"372",name:"Ireland",aliases:["\u{1F1EE}\u{1F1EA}","eire","hibernia","irish republic","poblacht na heireann","republic of ireland","southern ireland"]},{iso3:"IRN",iso2:"IR",m49:"364",name:"Iran (Islamic Republic of)",aliases:["\u{1F1EE}\u{1F1F7}","iran","islamic rep iran","islamic republic of iran","persia","\u0627\u06CC\u0631\u0627\u0646","\u0627\u06CC\u0631\u0627\u0646\u0632\u0645\u06CC\u0646","\u067E\u0627\u0631\u0633","\u062C\u0645\u0647\u0648\u0631\u06CC \u0627\u0633\u0644\u0627\u0645\u06CC \u0627\u064A\u0631\u0627\u0646","\u062C\u0645\u0647\u0648\u0631\u06CC \u0627\u0633\u0644\u0627\u0645\u06CC \u0627\u06CC\u0631\u0627\u0646","\u0643\u0634\u0648\u0631 \u0634\u0627\u0647\u0646\u0634\u0627\u0647\u06CC \u0627\u064A\u0631\u0627\u0646"]},{iso3:"IRQ",iso2:"IQ",m49:"368",name:"Iraq",aliases:["\u{1F1EE}\u{1F1F6}","eraq","iraqe","komar i eraq","republic of iraq","\u0627\u0644\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u0627\u0644\u0639\u0631\u0627\u0642\u064A\u0629","\u0627\u0644\u0639\u0631\u0627\u0642","\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u0627\u0644\u0639\u0631\u0627\u0642","\u0639\u0631\u0627\u0642","\u0639\u06CE\u0631\u0627\u0642"]},{iso3:"ISL",iso2:"IS",m49:"352",name:"Iceland",aliases:["\u{1F1EE}\u{1F1F8}","icelandic republic","island","ly\xF0veldi\xF0 island","republic of iceland","ysland"]},{iso3:"ISR",iso2:"IL",m49:"376",name:"Israel",aliases:["\u{1F1EE}\u{1F1F1}","erez yisrael","medinat yisrael","state of israel","yisrael","\u05D9\u05E9\u05E8\u05D0\u05DC","\u05DE\u05D3\u05D9\u05E0\u05EA \u05D9\u05E9\u05E8\u05D0\u05DC"]},{iso3:"ITA",iso2:"IT",m49:"380",name:"Italy",aliases:["\u{1F1EE}\u{1F1F9}","il bel paese","italia","italian republic","repubblica italiana","republic of italy"]},{iso3:"JAM",iso2:"JM",m49:"388",name:"Jamaica",aliases:["\u{1F1EF}\u{1F1F2}","commonwealth of jamaica","jamieka","jomieka","jumieka"]},{iso3:"JEY",iso2:"JE",m49:"832",name:"Jersey",aliases:["\u{1F1EF}\u{1F1EA}","bailliage de jerri","bailliage de jersey","balliwick of jersey","i iersey","i jersey","iersey","iersey i","isle of jersey","jerri","jersey i","jersey island"]},{iso3:"JOR",iso2:"JO",m49:"400",name:"Jordan",aliases:["\u{1F1EF}\u{1F1F4}","giordania","hashemite kingdom of jordan","kingdom of jordan","state of jordan","yarden","\u0627\u0644\u0623\u0631\u062F\u0646","\u0627\u0644\u0627\u0631\u062F\u0646","\u0627\u0644\u0645\u0645\u0644\u0643\u0629 \u0627\u0644\u0623\u0631\u062F\u0646\u064A\u0629 \u0627\u0644\u0647\u0627\u0634\u0645\u064A\u0629","\u0627\u0644\u0645\u0645\u0644\u0643\u0629 \u0627\u0644\u0627\u0631\u062F\u0646\u064A\u0629 \u0627\u0644\u0647\u0627\u0634\u0645\u064A\u0629"]},{iso3:"JPN",iso2:"JP",m49:"392",name:"Japan",aliases:["\u{1F1EF}\u{1F1F5}","state of japan","\u3042\u304D\u3064\u3057\u307E","\u304A\u304A\u3084\u3057\u307E","\u3057\u304D\u3057\u307E","\u30B8\u30E3\u30D1\u30F3","\u3057\u3093\u3057\u3085\u3046","\u306B\u3063\u307D\u3093","\u306B\u3063\u307D\u3093\u3053\u304F","\u306B\u307B\u3093","\u306B\u307B\u3093\u3053\u304F","\u3072\u3044\u305A\u308B\u304F\u306B","\u3075\u305D\u3046","\u5927\u516B\u5DDE","\u6276\u6728\u4E4B\u5730","\u6276\u6851","\u6276\u6851\u56FD","\u6577\u5CF6","\u65E5\u51FA\u308B\u56FD","\u65E5\u672C","\u6991\u6728\u4E4B\u5730","\u745E\u7A42\u56FD","\u795E\u5DDE","\u79CB\u6D25\u5CF6","\u8466\u539F\u4E2D\u56FD"]},{iso3:"KAZ",iso2:"KZ",m49:"398",name:"Kazakhstan",aliases:["\u{1F1F0}\u{1F1FF}","qazaqstan","qazaqstan respublikasy","republic of kazakhstan","\u043A\u0430\u0437\u0430\u0445\u0441\u0442\u0430\u043D","\u049B\u0430\u0437\u0430\u049B\u0441\u0442\u0430\u043D","\u049B\u0430\u0437\u0430\u049B\u0441\u0442\u0430\u043D \u0440\u0435\u0441\u043F\u0443\u0431\u043B\u0438\u043A\u0430\u0441\u044B","\u0440\u0435\u0441\u043F\u0443\u0431\u043B\u0438\u043A\u0430 \u043A\u0430\u0437\u0430\u0445\u0441\u0442\u0430\u043D","\u0440\u043A"]},{iso3:"KEN",iso2:"KE",m49:"404",name:"Kenya",aliases:["\u{1F1F0}\u{1F1EA}","jamhuri ya kenya","republic of kenya"]},{iso3:"KGZ",iso2:"KG",m49:"417",name:"Kyrgyzstan",aliases:["\u{1F1F0}\u{1F1EC}","kyrgyz republic","kyrgyz respublikasy","kyrgyzstan respublikasy","\u043A\u0440","\u043A\u044B\u0440\u0433\u044B\u0437 \u0440\u0435\u0441\u043F\u0443\u0431\u043B\u0438\u043A\u0430\u0441\u044B","\u043A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D"]},{iso3:"KHM",iso2:"KH",m49:"116",name:"Cambodia",aliases:["\u{1F1F0}\u{1F1ED}","camboya","campuchia","kambodzha","kamboja","kampuchea","kingdom of cambodia","\u1780\u1798\u17D2\u1796\u17BB\u1787\u17B6","\u1796\u17D2\u179A\u17C7\u179A\u17B6\u1787\u17B6\u178E\u17B6\u1785\u1780\u17D2\u179A\u1780\u1798\u17D2\u1796\u17BB\u1787\u17B6"]},{iso3:"KIR",iso2:"KI",m49:"296",name:"Kiribati",aliases:["\u{1F1F0}\u{1F1EE}","republic of kiribati"]},{iso3:"KNA",iso2:"KN",m49:"659",name:"Saint Kitts and Nevis",aliases:["\u{1F1F0}\u{1F1F3}","federation of saint christopher and nevis","federation of saint kitts and nevis","kitts & nevis","nevis","saint christopher","saint christopher and nevis","saint kitts"]},{iso3:"KOR",iso2:"KR",m49:"410",name:"Republic of Korea",aliases:["\u{1F1F0}\u{1F1F7}","korea","korea republic","korea republic of","korea south","rep korea","s korea","south korea","taehan minguk","\uB0A8\uC870\uC120","\uB0A8\uD55C","\uB300\uD55C","\uB300\uD55C\uBBFC\uAD6D","\uCF54\uB9AC\uC544","\uD55C\uAD6D"]},{iso3:"KWT",iso2:"KW",m49:"414",name:"Kuwait",aliases:["\u{1F1F0}\u{1F1FC}","state of kuwait","\u0627\u0644\u0643\u0648\u064A\u062A","\u062F\u0648\u0644\u0629 \u0627\u0644\u0643\u0648\u064A\u062A"]},{iso3:"LAO",iso2:"LA",m49:"418",name:"Lao People's Democratic Republic",aliases:["\u{1F1F1}\u{1F1E6}","laos","sathalanalat paxathipatai paxaxon lao","\u0EAA\u0EB2\u0E97\u0EB2\u0EA5\u0EB0\u0E99\u0EB0\u0EA5\u0EB1\u0E94 \u0E9B\u0EB0\u0E8A\u0EB2\u0E97\u0EB4\u0E9B\u0EB0\u0EC4\u0E95 \u0E9B\u0EB0\u0E8A\u0EB2\u0E8A\u0EBB\u0E99\u0EA5\u0EB2\u0EA7","\u0E9B\u0EB0\u0EC0\u0E97\u0E94\u0EA5\u0EB2\u0EA7","\u0EA5\u0EB2\u0EA7"]},{iso3:"LBN",iso2:"LB",m49:"422",name:"Lebanon",aliases:["\u{1F1F1}\u{1F1E7}","lebanese republic","republic of lebanon","state of lebanon","\u0627\u0644\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u0627\u0644\u0644\u0628\u0646\u0627\u0646\u064A\u0629","\u0644\u0628\u0646\u0627\u0646"]},{iso3:"LBR",iso2:"LR",m49:"430",name:"Liberia",aliases:["\u{1F1F1}\u{1F1F7}","liber","republic of liberia"]},{iso3:"LBY",iso2:"LY",m49:"434",name:"Libya",aliases:["\u{1F1F1}\u{1F1FE}","state of libya","\u0627\u0644\u062C\u0645\u0627\u0647\u064A\u0631\u064A\u0629 \u0627\u0644\u0639\u0631\u0628\u064A\u0629 \u0627\u0644\u0644\u064A\u0628\u064A\u0629 \u0627\u0644\u0634\u0639\u0628\u064A\u0629 \u0627\u0644\u0625\u0634\u062A\u0631\u0627\u0643\u064A\u0629","\u0627\u0644\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u0627\u0644\u0644\u064A\u0628\u064A\u0629","\u0627\u0644\u0644\u064A\u0628\u064A","\u0627\u0644\u0644\u064A\u0628\u064A\u0629","\u0627\u0644\u0644\u064A\u0628\u064A\u0646","\u062F\u0648\u0644\u0629 \u0644\u064A\u0628\u064A\u0627","\u0644\u064A\u0628\u0628\u064A\u0627","\u0644\u064A\u0628\u064A","\u0644\u064A\u0628\u064A\u0627","\u0644\u064A\u0628\u064A\u0629"]},{iso3:"LCA",iso2:"LC",m49:"662",name:"Saint Lucia",aliases:["\u{1F1F1}\u{1F1E8}","hewanorra","iyonola"]},{iso3:"LIE",iso2:"LI",m49:"438",name:"Liechtenstein",aliases:["\u{1F1F1}\u{1F1EE}","furstentum lichtenstein","furstentum liechtenstein","principality of liechtenstein"]},{iso3:"LKA",iso2:"LK",m49:"144",name:"Sri Lanka",aliases:["\u{1F1F1}\u{1F1F0}","ceylan","ceylon","democratic socialist republic of sri lanka","ilankaic cananayaka cocalicak kutiyarcu","lankava","prajatantravadi samajavadi janarajaya sri lanka","serendib","srilanka","taprobane","\u0B87\u0BB2\u0B99\u0BCD\u0B95\u0BC8","\u0B87\u0BB2\u0B99\u0BCD\u0B95\u0BC8 \u0B9A\u0BA9\u0BA8\u0BBE\u0BAF\u0B95 \u0B9A\u0BCB\u0B9A\u0BB2\u0BBF\u0B9A\u0B95\u0BCD \u0B95\u0BC1\u0B9F\u0BBF\u0BAF\u0BB0\u0B9A\u0BC1","\u0B87\u0BB2\u0B99\u0BCD\u0B95\u0BC8 \u0B9A\u0BA9\u0BA8\u0BBE\u0BAF\u0B95 \u0B9A\u0BCB\u0BB7\u0BB2\u0BBF\u0B9A\u0B95\u0BCD \u0B95\u0BC1\u0B9F\u0BBF\u0BAF\u0BB0\u0B9A\u0BC1","\u0B88\u0BB4\u0BAE\u0BCD","\u0B9A\u0BBF\u0BB2\u0BCB\u0BA9\u0BCD","\u0DBD\u0D82\u0D9A\u0DCF\u0DC0","\u0DC1\u0DCA\u0DBB\u0DD3 \u0DBD\u0D82\u0D9A\u0DCF \u0DB4\u0DCA\u0DBB\u0DA2\u0DCF\u0DAD\u0DB1\u0DCA\u0DAD\u0DCA\u0DBB\u0DC0\u0DCF\u0DAF\u0DD3 \u0DC3\u0DB8\u0DCF\u0DA2\u0DC0\u0DCF\u0DAF\u0DD3 \u0DA2\u0DB1\u0DBB\u0DA2\u0DBA","\u0DC1\u0DCA\u0DBB\u0DD3 \u0DBD\u0D82\u0D9A\u0DCF\u0DC0","\u0DC1\u0DCA\u200D\u0DBB\u0DD3 \u0DBD\u0D82\u0D9A\u0DCF\u0DC0"]},{iso3:"LSO",iso2:"LS",m49:"426",name:"Lesotho",aliases:["\u{1F1F1}\u{1F1F8}","kingdom of lesotho","mmuso wa lesotho","mountain kingdom"]},{iso3:"LTU",iso2:"LT",m49:"440",name:"Lithuania",aliases:["\u{1F1F1}\u{1F1F9}","lietuva","lietuvos respublika","republic of lithuania"]},{iso3:"LUX",iso2:"LU",m49:"442",name:"Luxembourg",aliases:["\u{1F1F1}\u{1F1FA}","grand duche","grand duche de luxembourg","grand duchy of luxembourg","gro\xDFherzogtum luxemburg","groussherzogtum letzebuerg","le grand duche de luxembourg","letzebuerg","letzebuerger land","lux","luxemburg"]},{iso3:"LVA",iso2:"LV",m49:"428",name:"Latvia",aliases:["\u{1F1F1}\u{1F1FB}","latveja","latvejas republika","latvian republic","latvija","latvijas republika","letm\u043E","letm\u043E vabam\u043E","republic of latvia"]},{iso3:"MAC",iso2:"MO",m49:"446",name:"Macao",aliases:["\u{1F1F2}\u{1F1F4}","aomen","macao sar","macao special administrative region","macao special administrative region of the peoples republic of china","macau","macau rae da china","macau sar","macau special administrative region","macau special administrative region of the peoples republic of china","raem","regiao administrativa especial de macau","regiao administrativa especial de macau da republica popular da china","\u4E2D\u570B\u6FB3\u9580\u7279\u5225\u884C\u653F\u5340","\u6FB3\u9580"]},{iso3:"MAF",iso2:"MF",m49:"663",name:"Saint Martin (French Part)",aliases:["\u{1F1F2}\u{1F1EB}","collectivite de saint martin","collectivity of saint martin","saint martin","saint martin antilles francaises","saint martin france"]},{iso3:"MAR",iso2:"MA",m49:"504",name:"Morocco",aliases:["\u{1F1F2}\u{1F1E6}","kingdom of morocco","\u0627\u0644\u0645\u063A\u0631\u0628","\u0627\u0644\u0645\u0645\u0644\u0643\u0629 \u0627\u0644\u0645\u063A\u0631\u0628\u064A\u0629","\u2D30\u2D4E\u2D53\u2D54 \u2D4F \u2D61\u2D30\u2D3D\u2D53\u2D5B","\u2D30\u2D4E\u2D55\u2D55\u2D53\u2D3D","\u2D4D\u2D4E\u2D55\u2D55\u2D53\u2D3D","\u2D4D\u2D4E\u2D56\u2D54\u2D49\u2D31","\u2D5C\u2D30\u2D33\u2D4D\u2D37\u2D49\u2D5C \u2D4F \u2D4D\u2D4E\u2D56\u2D54\u2D49\u2D31"]},{iso3:"MCO",iso2:"MC",m49:"492",name:"Monaco",aliases:["\u{1F1F2}\u{1F1E8}","fort hercule","la principaute de monaco","monaco rattachee au district de menton en 1793","munegu","principality and diocese of monaco","principality of monaco","principatu de munegu","principaute de monaco"]},{iso3:"MDA",iso2:"MD",m49:"498",name:"Republic of Moldova",aliases:["\u{1F1F2}\u{1F1E9}","moldavia","moldova","moldova republic of","moldova republica","r moldova","rep moldova","republica moldova","\u043C\u043E\u043B\u0434\u043E\u0432\u0430"]},{iso3:"MDG",iso2:"MG",m49:"450",name:"Madagascar",aliases:["\u{1F1F2}\u{1F1EC}","la republique de madagascar","madagasikara","repoblikani madagasikara","republic of madagascar","republique de madagascar"]},{iso3:"MDV",iso2:"MV",m49:"462",name:"Maldives",aliases:["\u{1F1F2}\u{1F1FB}","dhivehi raajjeyge jumhooriyyaa","republic of maldives","\u078B\u07A8\u0788\u07AC\u0780\u07A8 \u0783\u07A7\u0787\u07B0\u0796\u07AC","\u078B\u07A8\u0788\u07AC\u0780\u07A8\u0783\u07A7\u0787\u07B0\u0796\u07AC","\u078B\u07A8\u0788\u07AC\u0780\u07A8\u0783\u07A7\u0787\u07B0\u0796\u07AD\u078E\u07AC \u0796\u07AA\u0789\u07AA\u0780\u07AB\u0783\u07A8\u0787\u07B0\u0794\u07A7","\u078B\u07A8\u0788\u07AC\u0780\u07A8\u0783\u07A7\u0787\u07B0\u0796\u07AD\u078E\u07AC \u0796\u07AA\u0789\u07B0\u0780\u07AB\u0783\u07A8\u0787\u07B0\u0794\u07A7"]},{iso3:"MEX",iso2:"MX",m49:"484",name:"Mexico",aliases:["\u{1F1F2}\u{1F1FD}","estados unidos mejicanos","estados unidos mexicanos","mejico","mexican republic","mexican united states","mexihco","mexihko","mexika sentik wexteyowalko","mexiko","mexko","mexko axkayotl","mexko tlalli","nueva espana","republica mejicana","republica mexicana","united mexican states","united states of mexico"]},{iso3:"MHL",iso2:"MH",m49:"584",name:"Marshall Islands",aliases:["\u{1F1F2}\u{1F1ED}","aelon kein ad","aolepan aorokin majel","jolet jen anij","majel","majol","republic of the marshall islands"]},{iso3:"MKD",iso2:"MK",m49:"807",name:"North Macedonia",aliases:["\u{1F1F2}\u{1F1F0}","former yugoslav republic of macedonia","fyr macedonia","fyrom","irjm","ish republika jugosllave e maqedonise","macedonia","macedonia former yugoslav republic of","macedonia fyr","maqedoni","maqedonia","maqedonia e veriut","republic of macedonia","republic of north macedonia","republika e maqedonise","republika e maqedonise se veriut","\u043C\u0430\u043A\u0435\u0434\u043E\u043D\u0438\u0458\u0430","\u0440\u0435\u043F\u0443\u0431\u043B\u0438\u043A\u0430 \u043C\u0430\u043A\u0435\u0434\u043E\u043D\u0438\u0458\u0430","\u0440\u0435\u043F\u0443\u0431\u043B\u0438\u043A\u0430 \u0441\u0435\u0432\u0435\u0440\u043D\u0430 \u043C\u0430\u043A\u0435\u0434\u043E\u043D\u0438\u0458\u0430","\u0440\u043C","\u0440\u0441\u043C","\u0441\u0435\u0432\u0435\u0440\u043D\u0430 \u043C\u0430\u043A\u0435\u0434\u043E\u043D\u0438\u0458\u0430"]},{iso3:"MLI",iso2:"ML",m49:"466",name:"Mali",aliases:["\u{1F1F2}\u{1F1F1}","maali","republic of mali"]},{iso3:"MLT",iso2:"MT",m49:"470",name:"Malta",aliases:["\u{1F1F2}\u{1F1F9}","malta island","repubblika ta malta","republic of malta"]},{iso3:"MMR",iso2:"MM",m49:"104",name:"Myanmar",aliases:["\u{1F1F2}\u{1F1F2}","burma","pyidaungzu myanma naingngandaw","pyidaungzu thammada myanma naingngandaw","republic of the union of myanmar","union of burma","\u1015\u103C\u100A\u103A\u1011\u1031\u102C\u1004\u103A\u1005\u102F \u1019\u103C\u1014\u103A\u1019\u102C\u1014\u102D\u102F\u1004\u103A\u1004\u1036","\u1015\u103C\u100A\u103A\u1011\u1031\u102C\u1004\u103A\u1005\u102F \u1019\u103C\u1014\u103A\u1019\u102C\u1014\u102D\u102F\u1004\u103A\u1004\u1036\u1010\u1031\u102C\u103A","\u1015\u103C\u100A\u103A\u1011\u1031\u102C\u1004\u103A\u1005\u102F \u101E\u1019\u1039\u1019\u1010 \u1019\u103C\u1014\u103A\u1019\u102C\u1014\u102D\u102F\u1004\u103A\u1004\u1036","\u1015\u103C\u100A\u103A\u1011\u1031\u102C\u1004\u103A\u1005\u102F \u101E\u1019\u1039\u1019\u1010 \u1019\u103C\u1014\u103A\u1019\u102C\u1014\u102D\u102F\u1004\u103A\u1004\u1036\u1010\u1031\u102C\u103A","\u1015\u103C\u100A\u103A\u1011\u1031\u102C\u1004\u103A\u1005\u102F\u1019\u103C\u1014\u103A\u1019\u102C\u1014\u102D\u102F\u1004\u103A\u1004\u1036\u1010\u1031\u102C\u103A","\u1015\u103C\u100A\u103A\u1011\u1031\u102C\u1004\u103A\u1005\u102F\u101E\u1019\u1039\u1019\u1010\u1019\u103C\u1014\u103A\u1019\u102C\u1014\u102D\u102F\u1004\u103A\u1004\u1036","\u1015\u103C\u200C\u100A\u103A\u1011\u1031\u102C\u1004\u103A\u1005\u102F\u101E\u1019\u1039\u1019\u1010\u1019\u103C\u1014\u103A\u1019\u102C\u1014\u102D\u102F\u1004\u103A\u1004\u1036","\u1015\u103C\u100A\u103A\u1011\u1031\u102C\u1004\u103A\u1005\u102F\u101E\u1019\u1039\u1019\u1010\u1019\u103C\u1014\u103A\u1019\u102C\u1014\u102D\u102F\u1004\u103A\u1004\u1036\u1010\u1031\u102C\u103A","\u1017\u1019\u102C\u1015\u103C\u100A\u103A","\u1019\u103C\u1014\u103A\u1019\u102C","\u1019\u103C\u1014\u103A\u1019\u102C\u1014\u102D\u102F\u1004\u103A\u1004\u1036","\u1019\u103C\u1014\u103A\u1019\u102C\u1014\u102D\u102F\u1004\u103A\u1004\u1036\u1010\u1031\u102C\u103A","\u1019\u103C\u1014\u103A\u1019\u102C\u1015\u103C\u100A\u103A"]},{iso3:"MNE",iso2:"ME",m49:"499",name:"Montenegro",aliases:["\u{1F1F2}\u{1F1EA}","crna cora","\u0446\u0440\u043D\u0430 \u0433\u043E\u0440\u0430"]},{iso3:"MNG",iso2:"MN",m49:"496",name:"Mongolia",aliases:["\u{1F1F2}\u{1F1F3}","bugd nayramdah mongol ard uls","mongol uls","state of mongolia","\u043C\u043E\u043D\u0433\u043E\u043B","\u043C\u043E\u043D\u0433\u043E\u043B \u0443\u043B\u0441","\u182E\u1824\u1829\u182D\u1824\u182F \u1824\u182F\u1824\u1830"]},{iso3:"MNP",iso2:"MP",m49:"580",name:"Northern Mariana Islands",aliases:["\u{1F1F2}\u{1F1F5}","cnmi","commonwealth of the northern maria islands","commonwealth of the northern mariana islands","northern marianas","notte marianas","sankattan siha na islas marianas"]},{iso3:"MOZ",iso2:"MZ",m49:"508",name:"Mozambique",aliases:["\u{1F1F2}\u{1F1FF}","mocambique","republic of mozambique","republica de mocambique"]},{iso3:"MRT",iso2:"MR",m49:"478",name:"Mauritania",aliases:["\u{1F1F2}\u{1F1F7}","islamic republic of mauritania","\u0627\u0644\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u0627\u0644\u0625\u0633\u0644\u0627\u0645\u064A\u0629 \u0627\u0644\u0645\u0648\u0631\u064A\u062A\u0627\u0646\u064A\u0629","\u0645\u0648\u0631\u064A\u062A\u0627\u0646\u064A\u0627"]},{iso3:"MSR",iso2:"MS",m49:"500",name:"Montserrat",aliases:["\u{1F1F2}\u{1F1F8}","island of montserrat"]},{iso3:"MTQ",iso2:"MQ",m49:"474",name:"Martinique",aliases:["\u{1F1F2}\u{1F1F6}","territorial collectivity of martinique"]},{iso3:"MUS",iso2:"MU",m49:"480",name:"Mauritius",aliases:["\u{1F1F2}\u{1F1FA}","ile maurice","la republique de maurice","maurice","moris","republic of mauritius","republique de maurice"]},{iso3:"MWI",iso2:"MW",m49:"454",name:"Malawi",aliases:["\u{1F1F2}\u{1F1FC}","republic of malawi"]},{iso3:"MYS",iso2:"MY",m49:"458",name:"Malaysia",aliases:["\u{1F1F2}\u{1F1FE}","federation of malaysia","malaysia federation","negara seberang tambak","persekutuan malaysia"]},{iso3:"MYT",iso2:"YT",m49:"175",name:"Mayotte",aliases:["\u{1F1FE}\u{1F1F9}","departement de mayotte","departement region de mayotte","department of mayotte"]},{iso3:"NAM",iso2:"NA",m49:"516",name:"Namibia",aliases:["\u{1F1F3}\u{1F1E6}","republic of namibia"]},{iso3:"NCL",iso2:"NC",m49:"540",name:"New Caledonia",aliases:["\u{1F1F3}\u{1F1E8}","caledonie","kanaky","kanaky nouvelle caledonie","nouvelle caledonie","territoire de la nouvelle caledonie et dependances","territoire des nouvelle caledonie et dependances","territory of new caledonia and dependencies"]},{iso3:"NER",iso2:"NE",m49:"562",name:"Niger",aliases:["\u{1F1F3}\u{1F1EA}","jamhuriyar nijar","nijar","republic niger","republic of niger","republic of the niger"]},{iso3:"NFK",iso2:"NF",m49:"574",name:"Norfolk Island",aliases:["\u{1F1F3}\u{1F1EB}","norfolk island australia","norfolk island other territories","norfolk island other territories australia","territory of norfolk island"]},{iso3:"NGA",iso2:"NG",m49:"566",name:"Nigeria",aliases:["\u{1F1F3}\u{1F1EC}","federal republic of nigeria","naija"]},{iso3:"NIC",iso2:"NI",m49:"558",name:"Nicaragua",aliases:["\u{1F1F3}\u{1F1EE}","republic of nicaragua","republica de nicaragua"]},{iso3:"NIU",iso2:"NU",m49:"570",name:"Niue",aliases:["\u{1F1F3}\u{1F1FA}"]},{iso3:"NLD",iso2:"NL",m49:"528",name:"Kingdom of the Netherlands",aliases:["\u{1F1F3}\u{1F1F1}","hollandt","kingdom of netherlands","koninkrijk der nederlanden","nederland","nederlanden","nederlandt","netherlands","netherlands kingdom of the"]},{iso3:"NOR",iso2:"NO",m49:"578",name:"Norway",aliases:["\u{1F1F3}\u{1F1F4}","kingdom of norway","kongeriket noreg","kongeriket norge","noreg","norge"]},{iso3:"NPL",iso2:"NP",m49:"524",name:"Nepal",aliases:["\u{1F1F3}\u{1F1F5}","bal bo","bal poi yul","bal yul","balbo","balpo","balpo yul","nipal","sanghiya loktantrik ganatantra nepal","\u0928\u0947\u092A\u093E\u0932","\u0938\u0902\u0918\u093F\u092F \u0932\u094B\u0915\u0924\u093E\u0928\u094D\u0924\u094D\u0930\u093F\u0915 \u0917\u0923\u0924\u0928\u094D\u0924\u094D\u0930 \u0928\u0947\u092A\u093E\u0932","\u0938\u0902\u0918\u093F\u092F \u0932\u094B\u0915\u0924\u093E\u0928\u094D\u0924\u094D\u0930\u093F\u0915 \u0917\u0923\u0924\u0928\u094D\u0924\u094D\u0930\u093E\u0924\u094D\u092E\u0915 \u0928\u0947\u092A\u093E\u0932","\u0938\u0902\u0918\u0940\u092F \u0932\u094B\u0915\u0924\u093E\u0928\u094D\u0924\u094D\u0930\u093F\u0915 \u0917\u0923\u0924\u0928\u094D\u0924\u094D\u0930 \u0928\u0947\u092A\u093E\u0932"]},{iso3:"NRU",iso2:"NR",m49:"520",name:"Naoero",aliases:["\u{1F1F3}\u{1F1F7}","nauru","pleasant island","republic of naoero","republic of nauru"]},{iso3:"NZL",iso2:"NZ",m49:"554",name:"New Zealand",aliases:["\u{1F1F3}\u{1F1FF}","aotearoa","aotearoa new zealand","dominion of new zealand"]},{iso3:"OMN",iso2:"OM",m49:"512",name:"Oman",aliases:["\u{1F1F4}\u{1F1F2}","sultanate of oman","uman","\u0633\u0644\u0637\u0646\u0629 \u0639\u0645\u0627\u0646","\u0639\u0645\u0627\u0646"]},{iso3:"PAK",iso2:"PK",m49:"586",name:"Pakistan",aliases:["\u{1F1F5}\u{1F1F0}","hoi quoc","islamic republic of pakistan","republic of pakistan","tay hoi","\u0627\u0633\u0644\u0627\u0645\u06CC \u062C\u0645\u06C1\u0648\u0631\u06CC\u06C1 \u067E\u0627\u06A9\u0633\u062A\u0627\u0646","\u0628\u0627\u06A9\u0633\u062A\u0627\u0646","\u067E\u0627\u06A9\u0633\u062A\u0627\u0646"]},{iso3:"PAN",iso2:"PA",m49:"591",name:"Panama",aliases:["\u{1F1F5}\u{1F1E6}","republic of panama","republica de panama"]},{iso3:"PCN",iso2:"PN",m49:"612",name:"Pitcairn",aliases:["\u{1F1F5}\u{1F1F3}","occas island","pisskern ali\u0435n","pitcairn henderson ducie and oeno islands","pitcairn island","pitcairn islands","pitkern ailen"]},{iso3:"PER",iso2:"PE",m49:"604",name:"Peru",aliases:["\u{1F1F5}\u{1F1EA}","piruw","piruw ripuwlika","republic of peru","republica del peru"]},{iso3:"PHL",iso2:"PH",m49:"608",name:"Philippines",aliases:["\u{1F1F5}\u{1F1ED}","philippine islands","republic of the philippines"]},{iso3:"PLW",iso2:"PW",m49:"585",name:"Palau",aliases:["\u{1F1F5}\u{1F1FC}","belau","peeloo","pelew","pelew islands","pellew","republic of belau","republic of palau","\u30D1\u30E9\u30AA","\u30D1\u30E9\u30AA\u5171\u548C\u56FD"]},{iso3:"PNG",iso2:"PG",m49:"598",name:"Papua New Guinea",aliases:["\u{1F1F5}\u{1F1EC}","independent state of papua new guinea","papua niugini"]},{iso3:"POL",iso2:"PL",m49:"616",name:"Poland",aliases:["\u{1F1F5}\u{1F1F1}","polska","republic of poland","rzeczpospolita polska"]},{iso3:"PRI",iso2:"PR",m49:"630",name:"Puerto Rico",aliases:["\u{1F1F5}\u{1F1F7}","boriken","borinquen","boriquen","commonwealth of puerto rico","estado libre asociado de puerto rico","free associated state of puerto rico","isla del encanto","island of enchantment","isle of enchantment","mancomunidad de puerto rico","porto rico","territorio de puerto rico","territorio estadounidense de puerto rico","territory of porto rico","territory of puerto rico"]},{iso3:"PRK",iso2:"KP",m49:"408",name:"Democratic People's Republic of Korea",aliases:["\u{1F1F0}\u{1F1F5}","choson minjujuui inmin konghwaguk","dpr korea","dprk","korea democratic peoples republic of","n korea","north korea","\uACF5\uD654\uAD6D","\uBD81\uC870\uC120","\uBD81\uD55C","\uC870\uC120","\uC870\uC120\uBBFC\uC8FC\uC8FC\uC758\uC778\uBBFC\uACF5\uD654\uAD6D"]},{iso3:"PRT",iso2:"PT",m49:"620",name:"Portugal",aliases:["\u{1F1F5}\u{1F1F9}","republica portuguesa"]},{iso3:"PRY",iso2:"PY",m49:"600",name:"Paraguay",aliases:["\u{1F1F5}\u{1F1FE}","paraguai","republic of paraguay","republica del paraguay","teta paraguai"]},{iso3:"PSE",iso2:"PS",m49:"275",name:"State of Palestine",aliases:["\u{1F1F5}\u{1F1F8}","palestine","palestine state of","palestinian authority","palestinian national authority","palestinian territory","west bank and gaza","\u0623\u0631\u0627\u0636\u064A \u0641\u0644\u0633\u0637\u064A\u0646\u064A\u0629","\u0627\u0644\u0623\u0631\u0627\u0636\u064A \u0627\u0644\u0641\u0644\u0633\u0637\u064A\u0646\u064A\u0629","\u0627\u0644\u062F\u0648\u0644\u0629 \u0627\u0644\u0641\u0644\u0633\u0637\u064A\u0646\u064A\u0629","\u0627\u0644\u0633\u0644\u0637\u0629 \u0627\u0644\u0641\u0644\u0633\u0637\u064A\u0646\u064A\u0629","\u0627\u0644\u0633\u0644\u0637\u0629 \u0627\u0644\u0648\u0637\u0646\u064A\u0629 \u0627\u0644\u0641\u0644\u0633\u0637\u064A\u0646\u064A\u0629","\u0627\u0644\u0636\u0641\u0629 \u0627\u0644\u063A\u0631\u0628\u064A\u0629 \u0648\u0642\u0637\u0627\u0639 \u063A\u0632\u0629","\u062F\u0648\u0644\u0629 \u0641\u0644\u0633\u0637\u064A\u0646","\u0641\u0644\u0633\u0637\u064A\u0646"]},{iso3:"PYF",iso2:"PF",m49:"258",name:"French Polynesia",aliases:["\u{1F1F5}\u{1F1EB}","f oh","french establishments in oceania","french oceania","french settlements in oceania","polynesie francaise","territoire de la polynesie francaise","territory of french polynesia"]},{iso3:"QAT",iso2:"QA",m49:"634",name:"Qatar",aliases:["\u{1F1F6}\u{1F1E6}","state of qatar","\u0625\u0645\u0627\u0631\u0629 \u0642\u0637\u0631","\u062F\u0648\u0644\u0629 \u0642\u0637\u0631","\u0642\u0637\u0631"]},{iso3:"REU",iso2:"RE",m49:"638",name:"R\xE9union",aliases:["\u{1F1F7}\u{1F1EA}","ile bourbon","ile de la reunion","la reunion","re","region reunion","reunion island"]},{iso3:"ROU",iso2:"RO",m49:"642",name:"Romania",aliases:["\u{1F1F7}\u{1F1F4}"]},{iso3:"RUS",iso2:"RU",m49:"643",name:"Russian Federation",aliases:["\u{1F1F7}\u{1F1FA}","federation of russia","russia","\u0440\u043E\u0441\u0441\u0438\u0438\u0441\u043A\u0430\u044F \u0444\u0435\u0434\u0435\u0440\u0430\u0446\u0438\u044F","\u0440\u043E\u0441\u0441\u0438\u044F","\u0440\u0444"]},{iso3:"RWA",iso2:"RW",m49:"646",name:"Rwanda",aliases:["\u{1F1F7}\u{1F1FC}","igihugu cyimisozi igihumbi","jamhuri ya rwanda","la republique du rwanda","land of a thousand hills","republic of rwanda","republika yu rwanda","republique du rwanda","republique rwandaise","repubulika yu rwanda","u rwanda"]},{iso3:"SAU",iso2:"SA",m49:"682",name:"Saudi Arabia",aliases:["\u{1F1F8}\u{1F1E6}","kingdom of saudi arabia","\u0627\u0644\u062F\u0648\u0644\u0629 \u0627\u0644\u0633\u0639\u0648\u062F\u064A\u0629","\u0627\u0644\u062F\u0648\u0644\u0647 \u0627\u0644\u0633\u0639\u0648\u062F\u064A\u0647","\u0627\u0644\u0633\u0639\u0648\u062F\u064A\u0629","\u0627\u0644\u0633\u0639\u0648\u062F\u064A\u0647","\u0627\u0644\u0639\u0631\u0628\u064A\u0629 \u0627\u0644\u0633\u0639\u0648\u062F\u064A\u0629","\u0627\u0644\u0645\u0645\u0644\u0643\u0629","\u0627\u0644\u0645\u0645\u0644\u0643\u0629 \u0627\u0644\u0633\u0639\u0648\u062F\u064A\u0629","\u0627\u0644\u0645\u0645\u0644\u0643\u0629 \u0627\u0644\u0639\u0631\u0628\u064A\u0629","\u0627\u0644\u0645\u0645\u0644\u0643\u0629 \u0627\u0644\u0639\u0631\u0628\u064A\u0629 \u0627\u0644\u0633\u0639\u0648\u062F\u064A\u0629","\u0627\u0644\u0645\u0645\u0644\u0643\u0647","\u0627\u0644\u0645\u0645\u0644\u0643\u0647 \u0627\u0644\u0639\u0631\u0628\u064A\u0647 \u0627\u0644\u0633\u0639\u0648\u062F\u064A\u0647","\u0628\u0644\u0627\u062F \u0627\u0644\u062D\u0631\u0645\u064A\u0646 \u0627\u0644\u0634\u0631\u064A\u0641\u064A\u0646","\u062F\u0648\u0644\u0629 \u0622\u0644 \u0633\u0639\u0648\u062F","\u0633\u0639\u0648\u062F\u064A\u0629","\u0633\u0639\u0648\u062F\u064A\u0647","\u0645\u0646\u0628\u0639 \u0627\u0644\u0631\u0633\u0627\u0644\u0629","\u0645\u0647\u0628\u0637 \u0627\u0644\u0648\u062D\u064A"]},{iso3:"SDN",iso2:"SD",m49:"729",name:"Sudan",aliases:["\u{1F1F8}\u{1F1E9}","al sudan","as sudan","north sudan","republic of sudan","republic of the sudan","soudan","\u0627\u0644\u0633\u0648\u062F\u0627\u0646","\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u0627\u0644\u0633\u0648\u062F\u0627\u0646"]},{iso3:"SEN",iso2:"SN",m49:"686",name:"Senegal",aliases:["\u{1F1F8}\u{1F1F3}","la republique du senegal","republic of senegal","republique du senegal","sen","senegaal"]},{iso3:"SGP",iso2:"SG",m49:"702",name:"Singapore",aliases:["\u{1F1F8}\u{1F1EC}","garden city","lion city","republic of singapore","republik singapura","singapore city","singapura","spore","\u0B9A\u0BBF\u0B99\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0BC2\u0BB0\u0BCD","\u0B9A\u0BBF\u0B99\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0BC2\u0BB0\u0BCD \u0B95\u0BC1\u0B9F\u0BBF\u0BAF\u0BB0\u0B9A\u0BC1","\u0B9A\u0BBF\u0B99\u0BCD\u0B95\u0BC8","\u0BB8\u0BBF\u0B99\u0BCD\u0B95\u0BAA\u0BC2\u0BB0\u0BCD"]},{iso3:"SGS",iso2:"GS",m49:"239",name:"South Georgia and the South Sandwich Islands",aliases:["\u{1F1EC}\u{1F1F8}","falkland islands dependencies","sgssi","south georgia","south georgia & south sandwich islands","south sandwich islands"]},{iso3:"SHN",iso2:"SH",m49:"654",name:"Saint Helena",aliases:["\u{1F1F8}\u{1F1ED}","ascension","saint helena and dependencies","saint helena ascension and tristan da cunha","tristan da cunha"]},{iso3:"SJM",iso2:"SJ",m49:"744",name:"Svalbard and Jan Mayen Islands",aliases:["\u{1F1F8}\u{1F1EF}","jan mayen","svalbard","svalbard and jan mayen","svalbard og jan mayen"]},{iso3:"SLB",iso2:"SB",m49:"090",name:"Solomon Islands",aliases:["\u{1F1F8}\u{1F1E7}"]},{iso3:"SLE",iso2:"SL",m49:"694",name:"Sierra Leone",aliases:["\u{1F1F8}\u{1F1F1}","republic of sierra leone"]},{iso3:"SLV",iso2:"SV",m49:"222",name:"El Salvador",aliases:["\u{1F1F8}\u{1F1FB}","republic of el salvador","republica de el salvador","salvador"]},{iso3:"SMR",iso2:"SM",m49:"674",name:"San Marino",aliases:["\u{1F1F8}\u{1F1F2}","most serene republic of san marino","repubblica di san marino","serenissima repubblica di san marino"]},{iso3:"SOM",iso2:"SO",m49:"706",name:"Somalia",aliases:["\u{1F1F8}\u{1F1F4}","as sumal","federal republic of somalia","jamhuuriyadda federaalka soomaaliya","jamhuuriyadda soomaaliyeed","soomaaliya","soomaaliyeey toosoo","\u0627\u0644\u0635\u0648\u0645\u0627\u0644","\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u0627\u0644\u0635\u0648\u0645\u0627\u0644","\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u0627\u0644\u0635\u0648\u0645\u0627\u0644 \u0627\u0644\u062F\u064A\u0645\u0648\u0642\u0631\u0627\u0637\u064A\u0629","\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u0627\u0644\u0635\u0648\u0645\u0627\u0644 \u0627\u0644\u0641\u064A\u062F\u0631\u0627\u0644\u064A\u0629","\u0635\u0648\u0645\u0627\u0644"]},{iso3:"SPM",iso2:"PM",m49:"666",name:"Saint Pierre and Miquelon",aliases:["\u{1F1F5}\u{1F1F2}","collectivite territoriale de saint pierre et miquelon","miquelon","saint pierre","saint pierre et miquelon","territorial collectivity of saint pierre and miquelon"]},{iso3:"SRB",iso2:"RS",m49:"688",name:"Serbia",aliases:["\u{1F1F7}\u{1F1F8}","republic of serbia","republika srbija","\u0440\u0435\u043F\u0443\u0431\u043B\u0438\u043A\u0430 \u0441\u0440\u0431\u0438\u0458\u0430","\u0441\u0440\u0431\u0438\u0458\u0430"]},{iso3:"SSD",iso2:"SS",m49:"728",name:"South Sudan",aliases:["\u{1F1F8}\u{1F1F8}","republic of south sudan","southern sudan"]},{iso3:"STP",iso2:"ST",m49:"678",name:"Sao Tome and Principe",aliases:["\u{1F1F8}\u{1F1F9}","democratic republic of sao tome and principe","principe","republica democratica de sao tome e principe","sao tome","sao tome e principe","sao tome og principe"]},{iso3:"SUR",iso2:"SR",m49:"740",name:"Suriname",aliases:["\u{1F1F8}\u{1F1F7}","dutch guiana","republic of surinam","republic of suriname","republiek suriname","surinam","surrinam"]},{iso3:"SVK",iso2:"SK",m49:"703",name:"Slovakia",aliases:["\u{1F1F8}\u{1F1F0}","slovak republic","slovenska republika","slovensko"]},{iso3:"SVN",iso2:"SI",m49:"705",name:"Slovenia",aliases:["\u{1F1F8}\u{1F1EE}","republic of slovenia","republika slovenija","slovenija"]},{iso3:"SWE",iso2:"SE",m49:"752",name:"Sweden",aliases:["\u{1F1F8}\u{1F1EA}","kingdom of sweden","konungadomet sverige","konungariket sverige","kungadomet sverige","kungariket sverige","sverige","swedish kingdom"]},{iso3:"SWZ",iso2:"SZ",m49:"748",name:"Eswatini",aliases:["\u{1F1F8}\u{1F1FF}","kingdom of eswatini","kingdom of swaziland","swaziland","umbuso weswatini"]},{iso3:"SXM",iso2:"SX",m49:"534",name:"Sint Maarten (Dutch part)",aliases:["\u{1F1F8}\u{1F1FD}","country of sint maarten","eilandgebied sint maarten","land sint maarten","saint maarten","saint martin dutch part","sint maarten","sint martin"]},{iso3:"SYC",iso2:"SC",m49:"690",name:"Seychelles",aliases:["\u{1F1F8}\u{1F1E8}","la republique des seychelles","repiblik sesel","republic of seychelles","republique des seychelles"]},{iso3:"SYR",iso2:"SY",m49:"760",name:"Syrian Arab Republic",aliases:["\u{1F1F8}\u{1F1FE}","surya","syria","\u0627\u0644\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u0627\u0644\u0639\u0631\u0628\u064A\u0629 \u0627\u0644\u0633\u0648\u0631\u064A\u0629","\u0627\u0644\u0634\u0627\u0645","\u0633\u0648\u0631\u064A\u0627","\u0633\u0648\u0631\u064A\u0629"]},{iso3:"TCA",iso2:"TC",m49:"796",name:"Turks and Caicos Islands",aliases:["\u{1F1F9}\u{1F1E8}","caicos","caicos islands","turks","turks & caicos","turks islands"]},{iso3:"TCD",iso2:"TD",m49:"148",name:"Chad",aliases:["\u{1F1F9}\u{1F1E9}","la republique du tchad","republic of chad","republique du tchad","tchad","\u062A\u0634\u0627\u062F","\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u062A\u0634\u0627\u062F"]},{iso3:"TGO",iso2:"TG",m49:"768",name:"Togo",aliases:["\u{1F1F9}\u{1F1EC}","la republique togolaise","republique togolaise","togolese republic"]},{iso3:"THA",iso2:"TH",m49:"764",name:"Thailand",aliases:["\u{1F1F9}\u{1F1ED}","kingdom of siam","kingdom of thailand","siam","thai","\u0E44\u0E17\u0E22","\u0E1B\u0E23\u0E30\u0E40\u0E17\u0E28\u0E44\u0E17\u0E22","\u0E1B\u0E23\u0E30\u0E40\u0E17\u0E28\u0E2A\u0E22\u0E32\u0E21","\u0E40\u0E21\u0E37\u0E2D\u0E07\u0E44\u0E17\u0E22","\u0E23\u0E32\u0E0A\u0E2D\u0E32\u0E13\u0E32\u0E08\u0E31\u0E01\u0E23\u0E44\u0E17\u0E22","\u0E23\u0E32\u0E0A\u0E2D\u0E32\u0E13\u0E32\u0E08\u0E31\u0E01\u0E23\u0E2A\u0E22\u0E32\u0E21","\u0E2A\u0E22\u0E32\u0E21"]},{iso3:"TJK",iso2:"TJ",m49:"762",name:"Tajikistan",aliases:["\u{1F1F9}\u{1F1EF}","jumhurii tojikiston","republic of tajikistan","\u0442\u043E\u04B7\u0438\u043A\u0438\u0441\u0442\u043E\u043D","\u0442\u04B7","\u0442\u04B7\u043A","\u04B7\u0442","\u04B7\u0443\u043C\u04B3\u0443\u0440\u0438\u0438 \u0442\u043E\u04B7\u0438\u043A\u0438\u0441\u0442\u043E\u043D"]},{iso3:"TKL",iso2:"TK",m49:"772",name:"Tokelau",aliases:["\u{1F1F9}\u{1F1F0}","tokelau islands","union islands"]},{iso3:"TKM",iso2:"TM",m49:"795",name:"Turkmenistan",aliases:["\u{1F1F9}\u{1F1F2}"]},{iso3:"TLS",iso2:"TL",m49:"626",name:"Timor-Leste",aliases:["\u{1F1F9}\u{1F1F1}","democratic republic of timor leste","east timor","republica democratica de timor leste","republika demokratika timor lorosae","timor loro sae","timor lorosae"]},{iso3:"TON",iso2:"TO",m49:"776",name:"Tonga",aliases:["\u{1F1F9}\u{1F1F4}","friendly islands","kingdom of tonga","puleanga fakatui o tonga","tonga islands"]},{iso3:"TTO",iso2:"TT",m49:"780",name:"Trinidad and Tobago",aliases:["\u{1F1F9}\u{1F1F9}","republic of trinidad and tobago","tobago","trinidad"]},{iso3:"TUN",iso2:"TN",m49:"788",name:"Tunisia",aliases:["\u{1F1F9}\u{1F1F3}","republic of tunisia","tunisian republic","\u0627\u0644\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u0627\u0644\u062A\u0648\u0646\u0633\u064A\u0629","\u062A\u0648\u0646\u0633","\u062A\u0648\u0646\u0633 \u0627\u0644\u062E\u0636\u0631\u0627\u0621"]},{iso3:"TUR",iso2:"TR",m49:"792",name:"T\xFCrkiye",aliases:["\u{1F1F9}\u{1F1F7}","republic of turkey","republic of turkiye","turkey","turkiye cumhuriyeti"]},{iso3:"TUV",iso2:"TV",m49:"798",name:"Tuvalu",aliases:["\u{1F1F9}\u{1F1FB}","ellice islands"]},{iso3:"TWN",iso2:"TW",m49:"158",name:"Taiwan",aliases:["\u{1F1F9}\u{1F1FC}","chinese republic","chinese taipei","chunghwa minkuo","chunghwa minkwo","conghwaminku","cunghwa minkwo","cyukamingkok","formosa","nanasian","nationalist china","republic of china","republic of china taiwan","roc","taivang","taiwan province of china","taiwan roc","taywan","taywang","teywan","\u4E2D\u83EF\u6C11\u570B","\u4E2D\u83EF\u6C11\u570B\uFF08\u81FA\u7063\uFF09","\u4E2D\u83EF\u81FA\u5317","\u53F0\u7063","\u81FA\u6F8E\u91D1\u99AC","\u81FA\u7063"]},{iso3:"TZA",iso2:"TZ",m49:"834",name:"United Republic of Tanzania",aliases:["\u{1F1F9}\u{1F1FF}","jamhuri ya muungano wa tanganyika na zanzibar","jamhuri ya muungano wa tanzania","tanzania","tanzania jamhuri ya muungano wa","tanzania united republic of","united republic of tanganyika and zanzibar"]},{iso3:"UGA",iso2:"UG",m49:"800",name:"Uganda",aliases:["\u{1F1FA}\u{1F1EC}","jamhuri ya uganda","lulu ya afrika","ouganda","pearl of africa","republic of uganda","ugandah"]},{iso3:"UKR",iso2:"UA",m49:"804",name:"Ukraine",aliases:["\u{1F1FA}\u{1F1E6}","ukr","ukraina","ukrainia","ukrayina","\u0432\u043A\u0440\u0430\u0456\u043D\u0430","\u0443\u043A\u0440\u0430\u0456\u043D\u0430"]},{iso3:"UMI",iso2:"UM",m49:"581",name:"United States Minor Outlying Islands",aliases:["\u{1F1FA}\u{1F1F2}","us minor outlying islands","us outlying islands","usmoi"]},{iso3:"URY",iso2:"UY",m49:"858",name:"Uruguay",aliases:["\u{1F1FA}\u{1F1FE}","eastern republic of uruguay","oriental republic of uruguay"]},{iso3:"USA",iso2:"US",m49:"840",name:"United States of America",aliases:["\u{1F1FA}\u{1F1F8}","amelika","amelika hui pu ia","amelika huipuia","amelika mokuaina hui pu ia","america","eeuu","eeuu de america","estados unidos","estados unidos de america","los estados","los estados unidos","los estados unidos de america","mokuaina hui pu ia","union americana","united states","us","us of a","us of america","usa"]},{iso3:"UZB",iso2:"UZ",m49:"860",name:"Uzbekistan",aliases:["\u{1F1FA}\u{1F1FF}","ozbek","ozbekiston","ozbekiston respublikasi","republic of uzbekistan","uzbekiston respublikasi"]},{iso3:"VAT",iso2:"VA",m49:"336",name:"Holy See",aliases:["\u{1F1FB}\u{1F1E6}","citta del vaticano","civitas vaticana","colle vaticano","papal state","santa sede citta del vaticano","state of vatican city","stato della citta del vaticano","status civitatis vaticanae","status civitatis vatican\xE6","vatican","vatican city","vatican city state","vaticano"]},{iso3:"VCT",iso2:"VC",m49:"670",name:"Saint Vincent and the Grenadines",aliases:["\u{1F1FB}\u{1F1E8}","grenadines","saint vincent","saint vincent and grenadines"]},{iso3:"VEN",iso2:"VE",m49:"862",name:"Venezuela (Bolivarian Republic of)",aliases:["\u{1F1FB}\u{1F1EA}","bolivarian republic of venezuela","br venezuela","estados unidos de venezuela","rb venezuela","republic of venezuela","republica bolivariana de venezuela","republica de venezuela","venezuela"]},{iso3:"VGB",iso2:"VG",m49:"092",name:"British Virgin Islands",aliases:["\u{1F1FB}\u{1F1EC}","bvi","virgin islands british","virgin islands of the united kingdom","virgin islands united kingdom"]},{iso3:"VIR",iso2:"VI",m49:"850",name:"United States Virgin Islands",aliases:["\u{1F1FB}\u{1F1EE}","american virgin islands","us virgin islands","virgin islands of the united states","virgin islands us"]},{iso3:"VNM",iso2:"VN",m49:"704",name:"Viet Nam",aliases:["\u{1F1FB}\u{1F1F3}","chxhcn viet nam","chxhcnvn","cong hoa xa hoi chu nghia viet nam","socialist republic of viet nam","socialist republic of vietnam","vietnam"]},{iso3:"VUT",iso2:"VU",m49:"548",name:"Vanuatu",aliases:["\u{1F1FB}\u{1F1FA}","la republique du vanuatu","republic of vanuatu","republique de vanuatu","ripablik blong vanuatu"]},{iso3:"WLF",iso2:"WF",m49:"876",name:"Wallis and Futuna Islands",aliases:["\u{1F1FC}\u{1F1EB}","collectivite des iles wallis et futuna","emeni simete","futuna","iles wallis et futuna","makape papilio","territoire de wallis et futuna","territoire des iles wallis et futuna","wallis","wallis & futuna","wallis et futuna"]},{iso3:"WSM",iso2:"WS",m49:"882",name:"Samoa",aliases:["\u{1F1FC}\u{1F1F8}","independent state of samoa","malo saoloto tutoatasi o samoa","samoa i sisifo","western samoa"]},{iso3:"YEM",iso2:"YE",m49:"887",name:"Yemen",aliases:["\u{1F1FE}\u{1F1EA}","rep yemen","republic of yemen","\u0627\u0644\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u0627\u0644\u064A\u0645\u0646\u064A\u0629","\u0627\u0644\u064A\u0645\u0646","\u062F\u0648\u0644\u0629 \u0627\u0644\u064A\u0645\u0646"]},{iso3:"ZAF",iso2:"ZA",m49:"710",name:"South Africa",aliases:["\u{1F1FF}\u{1F1E6}","aferika borwa","aforika borwa","afrika boroa","afrika borwa","afrika dzonga","afurika tshipembe","emzantsi afrika","iningizimu afrika","iriphabhulikhi ye ningizimu afrika","iriphabhulikhi yeningizimu afrika","iriphabhuliki yase ningizimu afrika","iriphabliki yasemzantsi afrika","iriphabliki yaseningizimu afrika","iriphabliki yom zantsi afrika","isewula afrika","repabliki ya afrika borwa","rephaboliki ya aforika borwa","rephaboliki ya afrika borwa","republic of south africa","republiek van suid afrika","riphabliki ra afrika dzonga","rsa","suid afrika","umzansi","umzantsi afrika","unie van suid afrika","union of south africa"]},{iso3:"ZMB",iso2:"ZM",m49:"894",name:"Zambia",aliases:["\u{1F1FF}\u{1F1F2}","northern rhodesia","republic of zambia"]},{iso3:"ZWE",iso2:"ZW",m49:"716",name:"Zimbabwe",aliases:["\u{1F1FF}\u{1F1FC}","ezimbabwe","izimbabwe","republic of zimbabwe","rhodesia","southern rhodesia","zimbabwe rhodesia","zimbagwe"]}];function D8(e){return e.normalize("NFD").replace(/[\u0300-\u036F]/g,"").normalize("NFC").toLowerCase().replace(/[\u064B-\u065F]/g,"").replace(/['\u2018\u2019\u02BB\u02BC\u02BD\u02C8\u2032`]/g,"").replace(/&/g," and ").replace(/([,(])\s*the\b/g,"$1").replace(/[.(),[\]]/g,"").replace(/[-\u2013\u2014]/g," ").replace(/\bst\b/g,"saint").trim().replace(/\s+/g," ").replace(/^the\s+/,"")}function aU(e){let r=new Map,t=new Map,a=new Map;for(let l of e)r.set(l.iso3,l),l.iso2&&t.set(l.iso2,l),l.m49&&a.set(l.m49,l);let n=new Map;for(let l of e)for(let s of[l.name,...l.aliases]){let u=D8(s),f=n.get(u);if(f!==void 0&&f!==l.iso3)throw new Error(`Duplicate name/alias "${u}": ${f} vs ${l.iso3}`);n.set(u,l.iso3)}function i(l){if(l==null)return;let s=String(l).trim();if(!s)return;if(/^\d+$/.test(s)){let f=a.get(String(parseInt(s,10)).padStart(3,"0"));if(f)return f}if(/^[A-Za-z]{2}$/.test(s)){let f=t.get(s.toUpperCase());if(f)return f}if(/^[A-Za-z]{3}$/.test(s)){let f=r.get(s.toUpperCase());if(f)return f}let u=n.get(D8(s));return u===void 0?void 0:r.get(u)}function o(l){var s;return(s=i(l))==null?void 0:s.iso3}return{lookup:i,lookupAlpha3:o,byAlpha3:r,byAlpha2:t,byM49:a}}var sd=aU(tU),Mme=sd.lookup,Tme=sd.lookupAlpha3,kme=sd.byAlpha3,Cme=sd.byAlpha2,Sme=sd.byM49});var X3=le(pa=>{"use strict";Object.defineProperty(pa,"__esModule",{value:!0});var mn=63710088e-1,L8={centimeters:mn*100,centimetres:mn*100,cm:mn*100,degrees:360/(2*Math.PI),deg:360/(2*Math.PI),feet:mn*3.28084,ft:mn*3.28084,inches:mn*39.37,in:mn*39.37,kilometers:mn/1e3,kilometres:mn/1e3,km:mn/1e3,meters:mn,metres:mn,m:mn,miles:mn/1609.344,mi:mn/1609.344,millimeters:mn*1e3,millimetres:mn*1e3,mm:mn*1e3,nauticalmiles:mn/1852,nmi:mn/1852,radians:1,rad:1,yards:mn*1.0936,yd:mn*1.0936},E8={acres:247105e-9,ac:247105e-9,centimeters:1e4,centimetres:1e4,cm:1e4,feet:10.763910417,ft:10.763910417,hectares:1e-4,ha:1e-4,inches:1550.003100006,in:1550.003100006,kilometers:1e-6,kilometres:1e-6,km:1e-6,meters:1,metres:1,m:1,miles:386e-9,mi:386e-9,nauticalmiles:29155334959812285e-23,nmi:29155334959812285e-23,millimeters:1e6,millimetres:1e6,mm:1e6,yards:1.195990046,yd:1.195990046};function $0(e,r,t={}){let a={type:"Feature"};return(t.id===0||t.id)&&(a.id=t.id),t.bbox&&(a.bbox=t.bbox),a.properties=r||{},a.geometry=e,a}function Dme(e,r,t={}){switch(e){case"Point":return q8(r).geometry;case"LineString":return R8(r).geometry;case"Polygon":return P8(r).geometry;case"MultiPoint":return lU(r).geometry;case"MultiLineString":return oU(r).geometry;case"MultiPolygon":return sU(r).geometry;default:throw new Error(e+" is invalid")}}function q8(e,r,t={}){if(!e)throw new Error("coordinates is required");if(!Array.isArray(e))throw new Error("coordinates must be an Array");if(e.length<2)throw new Error("coordinates must be at least 2 numbers long");if(!Y3(e[0])||!Y3(e[1]))throw new Error("coordinates must contain numbers");return $0({type:"Point",coordinates:e},r,t)}function Fme(e,r,t={}){return V3(e.map(a=>q8(a,r)),t)}function P8(e,r,t={}){for(let n of e){if(n.length<4)throw new Error("Each LinearRing of a Polygon must have 4 or more Positions.");if(n[n.length-1].length!==n[0].length)throw new Error("First and last Position are not equivalent.");for(let i=0;iP8(a,r)),t)}function R8(e,r,t={}){if(e.length<2)throw new Error("coordinates must be an array of two or more positions");return $0({type:"LineString",coordinates:e},r,t)}function Lme(e,r,t={}){return V3(e.map(a=>R8(a,r)),t)}function V3(e,r={}){let t={type:"FeatureCollection"};return r.id&&(t.id=r.id),r.bbox&&(t.bbox=r.bbox),t.features=e,t}function oU(e,r,t={}){return $0({type:"MultiLineString",coordinates:e},r,t)}function lU(e,r,t={}){return $0({type:"MultiPoint",coordinates:e},r,t)}function sU(e,r,t={}){return $0({type:"MultiPolygon",coordinates:e},r,t)}function qme(e,r,t={}){return $0({type:"GeometryCollection",geometries:e},r,t)}function Pme(e,r=0){if(r&&!(r>=0))throw new Error("precision must be a positive number");let t=Math.pow(10,r||0);return Math.round(e*t)/t}function uU(e,r="kilometers"){let t=L8[r];if(!t)throw new Error(r+" units is invalid");return e*t}function z8(e,r="kilometers"){let t=L8[r];if(!t)throw new Error(r+" units is invalid");return e/t}function Rme(e,r){return fU(z8(e,r))}function zme(e){let r=e%360;return r<0&&(r+=360),r}function Nme(e){return e=e%360,e>180?e-360:e<-180?e+360:e}function fU(e){return e%(2*Math.PI)*180/Math.PI}function Bme(e){return e%360*Math.PI/180}function Ime(e,r="kilometers",t="kilometers"){if(!(e>=0))throw new Error("length must be a positive number");return uU(z8(e,r),t)}function Hme(e,r="meters",t="kilometers"){if(!(e>=0))throw new Error("area must be a positive number");let a=E8[r];if(!a)throw new Error("invalid original units");let n=E8[t];if(!n)throw new Error("invalid final units");return e/a*n}function Y3(e){return!isNaN(e)&&e!==null&&!Array.isArray(e)}function Ome(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function G3(e){delete e.bbox,e.type==="Feature"?e.geometry&&G3(e.geometry):e.type==="FeatureCollection"?e.features.forEach(G3):e.type==="GeometryCollection"&&e.geometries.forEach(G3)}function Ume(e){if(!e)throw new Error("bbox is required");if(!Array.isArray(e))throw new Error("bbox must be an Array");if(e.length!==4&&e.length!==6)throw new Error("bbox must be an Array of 4 or 6 numbers");e.forEach(r=>{if(!Y3(r))throw new Error("bbox must only contain numbers")})}function Gme(e){if(!e)throw new Error("id is required");if(["string","number"].indexOf(typeof e)===-1)throw new Error("id must be a number or a string")}pa.areaFactors=E8;pa.azimuthToBearing=Nme;pa.bearingToAzimuth=zme;pa.convertArea=Hme;pa.convertLength=Ime;pa.degreesToRadians=Bme;pa.earthRadius=mn;pa.factors=L8;pa.feature=$0;pa.featureCollection=V3;pa.geometry=Dme;pa.geometryCollection=qme;pa.isNumber=Y3;pa.isObject=Ome;pa.lengthToDegrees=Rme;pa.lengthToRadians=z8;pa.lineString=R8;pa.lineStrings=Lme;pa.multiLineString=oU;pa.multiPoint=lU;pa.multiPolygon=sU;pa.point=q8;pa.points=Fme;pa.polygon=P8;pa.polygons=Eme;pa.radiansToDegrees=fU;pa.radiansToLength=uU;pa.removeBbox=G3;pa.round=Pme;pa.validateBBox=Ume;pa.validateId=Gme});var W3=le(Xn=>{"use strict";Object.defineProperty(Xn,"__esModule",{value:!0});var Ci=X3();function ud(e,r,t){if(e!==null)for(var a,n,i,o,l,s,u,f=0,c=0,h,d=e.type,m=d==="FeatureCollection",p=d==="Feature",y=m?e.features.length:1,b=0;bs||m>u||p>f){l=c,s=a,u=m,f=p,i=0;return}var y=Ci.lineString.call(void 0,[l,c],t.properties);if(r(y,a,n,p,i)===!1)return!1;i++,l=c})===!1)return!1}}})}function $me(e,r,t){var a=t,n=!1;return hU(e,function(i,o,l,s,u){n===!1&&t===void 0?a=i:a=r(a,i,o,l,s,u),n=!0}),a}function dU(e,r){if(!e)throw new Error("geojson is required");j3(e,function(t,a,n){if(t.geometry!==null){var i=t.geometry.type,o=t.geometry.coordinates;switch(i){case"LineString":if(r(t,a,n,0,0)===!1)return!1;break;case"Polygon":for(var l=0;l{"use strict";Object.defineProperty(Z3,"__esModule",{value:!0});var pU=X3(),ege=W3();function yU(e){return ege.geomReduce.call(void 0,e,(r,t)=>r+rge(t),0)}function rge(e){let r=0,t;switch(e.type){case"Polygon":return mU(e.coordinates);case"MultiPolygon":for(t=0;t0){r+=Math.abs(gU(e[0]));for(let t=1;t=r?(a+2)%r:a+2],l=n[0]*B8,s=i[1]*B8,u=o[0]*B8;t+=(u-l)*Math.sin(s),a++}return t*tge}var age=yU;Z3.area=yU;Z3.default=age});var xU=le($3=>{"use strict";Object.defineProperty($3,"__esModule",{value:!0});var nge=X3(),ige=W3();function _U(e,r={}){let t=0,a=0,n=0;return ige.coordEach.call(void 0,e,function(i){t+=i[0],a+=i[1],n++},!0),nge.point.call(void 0,[t/n,a/n],r.properties)}var oge=_U;$3.centroid=_U;$3.default=oge});var AU=le((J3,wU)=>{(function(e,r){r(typeof J3=="object"&&typeof wU!="undefined"?J3:e.d3=e.d3||{})})(J3,(function(e){"use strict";function r(W,ee){return Wee?1:W>=ee?0:NaN}function t(W){return W.length===1&&(W=a(W)),{left:function(ee,me,K,J){for(K==null&&(K=0),J==null&&(J=ee.length);K>>1;W(ee[ue],me)<0?K=ue+1:J=ue}return K},right:function(ee,me,K,J){for(K==null&&(K=0),J==null&&(J=ee.length);K>>1;W(ee[ue],me)>0?J=ue:K=ue+1}return K}}}function a(W){return function(ee,me){return r(W(ee),me)}}var n=t(r),i=n.right,o=n.left;function l(W,ee){ee==null&&(ee=s);for(var me=0,K=W.length-1,J=W[0],ue=new Array(K<0?0:K);meW?1:ee>=W?0:NaN}function c(W){return W===null?NaN:+W}function h(W,ee){var me=W.length,K=0,J=-1,ue=0,_e,Ne,Je=0;if(ee==null)for(;++J1)return Je/(K-1)}function d(W,ee){var me=h(W,ee);return me&&Math.sqrt(me)}function m(W,ee){var me=W.length,K=-1,J,ue,_e;if(ee==null){for(;++K=J)for(ue=_e=J;++KJ&&(ue=J),_e=J)for(ue=_e=J;++KJ&&(ue=J),_e0)return[W];if((K=ee0)for(W=Math.ceil(W/Ne),ee=Math.floor(ee/Ne),_e=new Array(ue=Math.ceil(ee-W+1));++J=0?(ue>=M?10:ue>=T?5:ue>=A?2:1)*Math.pow(10,J):-Math.pow(10,-J)/(ue>=M?10:ue>=T?5:ue>=A?2:1)}function z(W,ee,me){var K=Math.abs(ee-W)/Math.max(0,me),J=Math.pow(10,Math.floor(Math.log(K)/Math.LN10)),ue=K/J;return ue>=M?J*=10:ue>=T?J*=5:ue>=A&&(J*=2),eefr;)Re.pop(),--sr;var hr=new Array(sr+1),dr;for(ue=0;ue<=sr;++ue)dr=hr[ue]=[],dr.x0=ue>0?Re[ue-1]:tr,dr.x1=ue=1)return+me(W[K-1],K-1,W);var K,J=(K-1)*ee,ue=Math.floor(J),_e=+me(W[ue],ue,W),Ne=+me(W[ue+1],ue+1,W);return _e+(Ne-_e)*(J-ue)}}function V(W,ee,me){return W=b.call(W,c).sort(r),Math.ceil((me-ee)/(2*(I(W,.75)-I(W,.25))*Math.pow(W.length,-1/3)))}function H(W,ee,me){return Math.ceil((me-ee)/(3.5*d(W)*Math.pow(W.length,-1/3)))}function Q(W,ee){var me=W.length,K=-1,J,ue;if(ee==null){for(;++K=J)for(ue=J;++Kue&&(ue=J)}else for(;++K=J)for(ue=J;++Kue&&(ue=J);return ue}function oe(W,ee){var me=W.length,K=me,J=-1,ue,_e=0;if(ee==null)for(;++J=0;)for(_e=W[ee],me=_e.length;--me>=0;)ue[--J]=_e[me];return ue}function ie(W,ee){var me=W.length,K=-1,J,ue;if(ee==null){for(;++K=J)for(ue=J;++KJ&&(ue=J)}else for(;++K=J)for(ue=J;++KJ&&(ue=J);return ue}function ce(W,ee){for(var me=ee.length,K=new Array(me);me--;)K[me]=W[ee[me]];return K}function Me(W,ee){if(me=W.length){var me,K=0,J=0,ue,_e=W[J];for(ee==null&&(ee=r);++K{(function(e,r){typeof K3=="object"&&typeof MU!="undefined"?r(K3,AU()):(e=e||self,r(e.d3=e.d3||{},e.d3))})(K3,(function(e,r){"use strict";function t(){return new a}function a(){this.reset()}a.prototype={constructor:a,reset:function(){this.s=this.t=0},add:function(O){i(n,O,this.t),i(this,n.s,this.s),this.s?this.t+=n.t:this.s=n.t},valueOf:function(){return this.s}};var n=new a;function i(O,$,he){var se=O.s=$+he,we=se-$,He=se-we;O.t=$-He+(he-we)}var o=1e-6,l=1e-12,s=Math.PI,u=s/2,f=s/4,c=s*2,h=180/s,d=s/180,m=Math.abs,p=Math.atan,y=Math.atan2,b=Math.cos,C=Math.ceil,x=Math.exp,_=Math.log,M=Math.pow,T=Math.sin,A=Math.sign||function(O){return O>0?1:O<0?-1:0},E=Math.sqrt,P=Math.tan;function z(O){return O>1?0:O<-1?s:Math.acos(O)}function B(O){return O>1?u:O<-1?-u:Math.asin(O)}function X(O){return(O=T(O/2))*O}function I(){}function V(O,$){O&&Q.hasOwnProperty(O.type)&&Q[O.type](O,$)}var H={Feature:function(O,$){V(O.geometry,$)},FeatureCollection:function(O,$){for(var he=O.features,se=-1,we=he.length;++se=0?1:-1,we=se*he,He=b($),We=T($),er=ke*We,nr=Ue*He+er*b(we),br=er*se*T(we);ie.add(y(br,nr)),Ie=O,Ue=He,ke=We}function J(O){return ce.reset(),te(O,je),ce*2}function ue(O){return[y(O[1],O[0]),B(O[2])]}function _e(O){var $=O[0],he=O[1],se=b(he);return[se*b($),se*T($),T(he)]}function Ne(O,$){return O[0]*$[0]+O[1]*$[1]+O[2]*$[2]}function Je(O,$){return[O[1]*$[2]-O[2]*$[1],O[2]*$[0]-O[0]*$[2],O[0]*$[1]-O[1]*$[0]]}function ar(O,$){O[0]+=$[0],O[1]+=$[1],O[2]+=$[2]}function tr(O,$){return[O[0]*$,O[1]*$,O[2]*$]}function fr(O){var $=E(O[0]*O[0]+O[1]*O[1]+O[2]*O[2]);O[0]/=$,O[1]/=$,O[2]/=$}var Re,sr,hr,dr,Ze,cr,Lr,Te,Oe=t(),Ar,Br,Qe={point:Be,lineStart:yr,lineEnd:Cr,polygonStart:function(){Qe.point=pr,Qe.lineStart=xr,Qe.lineEnd=Rr,Oe.reset(),je.polygonStart()},polygonEnd:function(){je.polygonEnd(),Qe.point=Be,Qe.lineStart=yr,Qe.lineEnd=Cr,ie<0?(Re=-(hr=180),sr=-(dr=90)):Oe>o?dr=90:Oe<-o&&(sr=-90),Br[0]=Re,Br[1]=hr},sphere:function(){Re=-(hr=180),sr=-(dr=90)}};function Be(O,$){Ar.push(Br=[Re=O,hr=O]),$dr&&(dr=$)}function Xe(O,$){var he=_e([O*d,$*d]);if(Te){var se=Je(Te,he),we=[se[1],-se[0],0],He=Je(we,se);fr(He),He=ue(He);var We=O-Ze,er=We>0?1:-1,nr=He[0]*h*er,br,$e=m(We)>180;$e^(er*Zedr&&(dr=br)):(nr=(nr+360)%360-180,$e^(er*Zedr&&(dr=$))),$e?OEr(Re,hr)&&(hr=O):Er(O,hr)>Er(Re,hr)&&(Re=O):hr>=Re?(Ohr&&(hr=O)):O>Ze?Er(Re,O)>Er(Re,hr)&&(hr=O):Er(O,hr)>Er(Re,hr)&&(Re=O)}else Ar.push(Br=[Re=O,hr=O]);$dr&&(dr=$),Te=he,Ze=O}function yr(){Qe.point=Xe}function Cr(){Br[0]=Re,Br[1]=hr,Qe.point=Be,Te=null}function pr(O,$){if(Te){var he=O-Ze;Oe.add(m(he)>180?he+(he>0?360:-360):he)}else cr=O,Lr=$;je.point(O,$),Xe(O,$)}function xr(){je.lineStart()}function Rr(){pr(cr,Lr),je.lineEnd(),m(Oe)>o&&(Re=-(hr=180)),Br[0]=Re,Br[1]=hr,Te=null}function Er(O,$){return($-=O)<0?$+360:$}function Or(O,$){return O[0]-$[0]}function rr(O,$){return O[0]<=O[1]?O[0]<=$&&$<=O[1]:$Er(se[0],se[1])&&(se[1]=we[1]),Er(we[0],se[1])>Er(se[0],se[1])&&(se[0]=we[0])):He.push(se=we);for(We=-1/0,he=He.length-1,$=0,se=He[he];$<=he;se=we,++$)we=He[$],(er=Er(se[1],we[0]))>We&&(We=er,Re=we[0],hr=se[1])}return Ar=Br=null,Re===1/0||sr===1/0?[[NaN,NaN],[NaN,NaN]]:[[Re,sr],[hr,dr]]}var vr,jr,Qr,qr,Wr,Ae,Pe,ur,gr,It,Yt,ia,Ta,Ht,Zt,ma,ra={sphere:I,point:xn,lineStart:Wn,lineEnd:zt,polygonStart:function(){ra.lineStart=ga,ra.lineEnd=ba},polygonEnd:function(){ra.lineStart=Wn,ra.lineEnd=zt}};function xn(O,$){O*=d,$*=d;var he=b($);on(he*b(O),he*T(O),T($))}function on(O,$,he){++vr,Qr+=(O-Qr)/vr,qr+=($-qr)/vr,Wr+=(he-Wr)/vr}function Wn(){ra.point=Jr}function Jr(O,$){O*=d,$*=d;var he=b($);Ht=he*b(O),Zt=he*T(O),ma=T($),ra.point=ua,on(Ht,Zt,ma)}function ua(O,$){O*=d,$*=d;var he=b($),se=he*b(O),we=he*T(O),He=T($),We=y(E((We=Zt*He-ma*we)*We+(We=ma*se-Ht*He)*We+(We=Ht*we-Zt*se)*We),Ht*se+Zt*we+ma*He);jr+=We,Ae+=We*(Ht+(Ht=se)),Pe+=We*(Zt+(Zt=we)),ur+=We*(ma+(ma=He)),on(Ht,Zt,ma)}function zt(){ra.point=xn}function ga(){ra.point=_a}function ba(){Vt(ia,Ta),ra.point=xn}function _a(O,$){ia=O,Ta=$,O*=d,$*=d,ra.point=Vt;var he=b($);Ht=he*b(O),Zt=he*T(O),ma=T($),on(Ht,Zt,ma)}function Vt(O,$){O*=d,$*=d;var he=b($),se=he*b(O),we=he*T(O),He=T($),We=Zt*He-ma*we,er=ma*se-Ht*He,nr=Ht*we-Zt*se,br=E(We*We+er*er+nr*nr),$e=B(br),lr=br&&-$e/br;gr+=lr*We,It+=lr*er,Yt+=lr*nr,jr+=$e,Ae+=$e*(Ht+(Ht=se)),Pe+=$e*(Zt+(Zt=we)),ur+=$e*(ma+(ma=He)),on(Ht,Zt,ma)}function Na(O){vr=jr=Qr=qr=Wr=Ae=Pe=ur=gr=It=Yt=0,te(O,ra);var $=gr,he=It,se=Yt,we=$*$+he*he+se*se;return wes?O+Math.round(-O/c)*c:O,$]}na.invert=na;function Ea(O,$,he){return(O%=c)?$||he?ya(Eo(O),Bi($,he)):Eo(O):$||he?Bi($,he):na}function Da(O){return function($,he){return $+=O,[$>s?$-c:$<-s?$+c:$,he]}}function Eo(O){var $=Da(O);return $.invert=Da(-O),$}function Bi(O,$){var he=b(O),se=T(O),we=b($),He=T($);function We(er,nr){var br=b(nr),$e=b(er)*br,lr=T(er)*br,ir=T(nr),Mr=ir*he+$e*se;return[y(lr*we-Mr*He,$e*he-ir*se),B(Mr*we+lr*He)]}return We.invert=function(er,nr){var br=b(nr),$e=b(er)*br,lr=T(er)*br,ir=T(nr),Mr=ir*we-lr*He;return[y(lr*we+ir*He,$e*he+Mr*se),B(Mr*he-$e*se)]},We}function $s(O){O=Ea(O[0]*d,O[1]*d,O.length>2?O[2]*d:0);function $(he){return he=O(he[0]*d,he[1]*d),he[0]*=h,he[1]*=h,he}return $.invert=function(he){return he=O.invert(he[0]*d,he[1]*d),he[0]*=h,he[1]*=h,he},$}function as(O,$,he,se,we,He){if(he){var We=b($),er=T($),nr=se*he;we==null?(we=$+se*c,He=$-nr/2):(we=vl(We,we),He=vl(We,He),(se>0?weHe)&&(we+=se*c));for(var br,$e=we;se>0?$e>He:$e1&&O.push(O.pop().concat(O.shift()))},result:function(){var he=O;return O=[],$=null,he}}}function rn(O,$){return m(O[0]-$[0])=0;--er)we.point((lr=$e[er])[0],lr[1]);else se(ir.x,ir.p.x,-1,we);ir=ir.p}ir=ir.o,$e=ir.z,Mr=!Mr}while(!ir.v);we.lineEnd()}}}function Hi(O){if($=O.length){for(var $,he=0,se=O[0],we;++he<$;)se.n=we=O[he],we.p=se,se=we;se.n=we=O[0],we.p=se}}var Si=t();function ns(O){return m(O[0])<=s?O[0]:A(O[0])*((m(O[0])+s)%c-s)}function is(O,$){var he=ns($),se=$[1],we=T(se),He=[T(he),-b(he),0],We=0,er=0;Si.reset(),we===1?se=u+o:we===-1&&(se=-u-o);for(var nr=0,br=O.length;nr=0?1:-1,$t=la*Xt,xa=$t>s,Lt=lt*vt;if(Si.add(y(Lt*la*T($t),rt*xt+Lt*b($t))),We+=xa?Xt+la*c:Xt,xa^Mr>=he^Pr>=he){var An=Je(_e(ir),_e(ft));fr(An);var ja=Je(He,An);fr(ja);var wa=(xa^Xt>=0?-1:1)*B(ja[2]);(se>wa||se===wa&&(An[0]||An[1]))&&(er+=xa^Xt>=0?1:-1)}}return(We<-o||We0){for(nr||(we.polygonStart(),nr=!0),we.lineStart(),xt=0;xt1&&Gr&2&&vt.push(vt.pop().concat(vt.shift())),$e.push(vt.filter(os))}}return ir}}function os(O){return O.length>1}function Qs(O,$){return((O=O.x)[0]<0?O[1]-u-o:u-O[1])-(($=$.x)[0]<0?$[1]-u-o:u-$[1])}var ot=Ks(function(){return!0},st,Ur,[-s,-u]);function st(O){var $=NaN,he=NaN,se=NaN,we;return{lineStart:function(){O.lineStart(),we=1},point:function(He,We){var er=He>0?s:-s,nr=m(He-$);m(nr-s)0?u:-u),O.point(se,he),O.lineEnd(),O.lineStart(),O.point(er,he),O.point(He,he),we=0):se!==er&&nr>=s&&(m($-se)o?p((T($)*(He=b(se))*T(he)-T(se)*(we=b($))*T(O))/(we*He*We)):($+se)/2}function Ur(O,$,he,se){var we;if(O==null)we=he*u,se.point(-s,we),se.point(0,we),se.point(s,we),se.point(s,0),se.point(s,-we),se.point(0,-we),se.point(-s,-we),se.point(-s,0),se.point(-s,we);else if(m(O[0]-$[0])>o){var He=O[0]<$[0]?s:-s;we=he*He/2,se.point(-He,we),se.point(0,we),se.point(He,we)}else se.point($[0],$[1])}function gn(O){var $=b(O),he=6*d,se=$>0,we=m($)>o;function He($e,lr,ir,Mr){as(Mr,O,he,ir,$e,lr)}function We($e,lr){return b($e)*b(lr)>$}function er($e){var lr,ir,Mr,Fr,lt;return{lineStart:function(){Fr=Mr=!1,lt=1},point:function(rt,ut){var ft=[rt,ut],Pr,Gr=We(rt,ut),vt=se?Gr?0:br(rt,ut):Gr?br(rt+(rt<0?s:-s),ut):0;if(!lr&&(Fr=Mr=Gr)&&$e.lineStart(),Gr!==Mr&&(Pr=nr(lr,ft),(!Pr||rn(lr,Pr)||rn(ft,Pr))&&(ft[2]=1)),Gr!==Mr)lt=0,Gr?($e.lineStart(),Pr=nr(ft,lr),$e.point(Pr[0],Pr[1])):(Pr=nr(lr,ft),$e.point(Pr[0],Pr[1],2),$e.lineEnd()),lr=Pr;else if(we&&lr&&se^Gr){var xt;!(vt&ir)&&(xt=nr(ft,lr,!0))&&(lt=0,se?($e.lineStart(),$e.point(xt[0][0],xt[0][1]),$e.point(xt[1][0],xt[1][1]),$e.lineEnd()):($e.point(xt[1][0],xt[1][1]),$e.lineEnd(),$e.lineStart(),$e.point(xt[0][0],xt[0][1],3)))}Gr&&(!lr||!rn(lr,ft))&&$e.point(ft[0],ft[1]),lr=ft,Mr=Gr,ir=vt},lineEnd:function(){Mr&&$e.lineEnd(),lr=null},clean:function(){return lt|(Fr&&Mr)<<1}}}function nr($e,lr,ir){var Mr=_e($e),Fr=_e(lr),lt=[1,0,0],rt=Je(Mr,Fr),ut=Ne(rt,rt),ft=rt[0],Pr=ut-ft*ft;if(!Pr)return!ir&&$e;var Gr=$*ut/Pr,vt=-$*ft/Pr,xt=Je(lt,rt),Xt=tr(lt,Gr),la=tr(rt,vt);ar(Xt,la);var $t=xt,xa=Ne(Xt,$t),Lt=Ne($t,$t),An=xa*xa-Lt*(Ne(Xt,Xt)-1);if(!(An<0)){var ja=E(An),wa=tr($t,(-xa-ja)/Lt);if(ar(wa,Xt),wa=ue(wa),!ir)return wa;var Vr=$e[0],jt=lr[0],tn=$e[1],Ln=lr[1],di;jt0^wa[1]<(m(wa[0]-Vr)s^(Vr<=wa[0]&&wa[0]<=jt)){var Ei=tr($t,(-xa+ja)/Lt);return ar(Ei,Xt),[wa,ue(Ei)]}}}function br($e,lr){var ir=se?O:s-O,Mr=0;return $e<-ir?Mr|=1:$e>ir&&(Mr|=2),lr<-ir?Mr|=4:lr>ir&&(Mr|=8),Mr}return Ks(We,er,He,se?[0,-O]:[-s,O-s])}function oa(O,$,he,se,we,He){var We=O[0],er=O[1],nr=$[0],br=$[1],$e=0,lr=1,ir=nr-We,Mr=br-er,Fr;if(Fr=he-We,!(!ir&&Fr>0)){if(Fr/=ir,ir<0){if(Fr<$e)return;Fr0){if(Fr>lr)return;Fr>$e&&($e=Fr)}if(Fr=we-We,!(!ir&&Fr<0)){if(Fr/=ir,ir<0){if(Fr>lr)return;Fr>$e&&($e=Fr)}else if(ir>0){if(Fr<$e)return;Fr0)){if(Fr/=Mr,Mr<0){if(Fr<$e)return;Fr0){if(Fr>lr)return;Fr>$e&&($e=Fr)}if(Fr=He-er,!(!Mr&&Fr<0)){if(Fr/=Mr,Mr<0){if(Fr>lr)return;Fr>$e&&($e=Fr)}else if(Mr>0){if(Fr<$e)return;Fr0&&(O[0]=We+$e*ir,O[1]=er+$e*Mr),lr<1&&($[0]=We+lr*ir,$[1]=er+lr*Mr),!0}}}}}var Ga=1e9,Xa=-Ga;function Un(O,$,he,se){function we(br,$e){return O<=br&&br<=he&&$<=$e&&$e<=se}function He(br,$e,lr,ir){var Mr=0,Fr=0;if(br==null||(Mr=We(br,lr))!==(Fr=We($e,lr))||nr(br,$e)<0^lr>0)do ir.point(Mr===0||Mr===3?O:he,Mr>1?se:$);while((Mr=(Mr+lr+4)%4)!==Fr);else ir.point($e[0],$e[1])}function We(br,$e){return m(br[0]-O)0?0:3:m(br[0]-he)0?2:1:m(br[1]-$)0?1:0:$e>0?3:2}function er(br,$e){return nr(br.x,$e.x)}function nr(br,$e){var lr=We(br,1),ir=We($e,1);return lr!==ir?lr-ir:lr===0?$e[1]-br[1]:lr===1?br[0]-$e[0]:lr===2?br[1]-$e[1]:$e[0]-br[0]}return function(br){var $e=br,lr=hl(),ir,Mr,Fr,lt,rt,ut,ft,Pr,Gr,vt,xt,Xt={point:la,lineStart:An,lineEnd:ja,polygonStart:xa,polygonEnd:Lt};function la(Vr,jt){we(Vr,jt)&&$e.point(Vr,jt)}function $t(){for(var Vr=0,jt=0,tn=Mr.length;jtse&&(Sl-Cl)*(se-Ei)>(xs-Ei)*(O-Cl)&&++Vr:xs<=se&&(Sl-Cl)*(se-Ei)<(xs-Ei)*(O-Cl)&&--Vr;return Vr}function xa(){$e=lr,ir=[],Mr=[],xt=!0}function Lt(){var Vr=$t(),jt=xt&&Vr,tn=(ir=r.merge(ir)).length;(jt||tn)&&(br.polygonStart(),jt&&(br.lineStart(),He(null,null,1,br),br.lineEnd()),tn&&dl(ir,er,Vr,He,br),br.polygonEnd()),$e=br,ir=Mr=Fr=null}function An(){Xt.point=wa,Mr&&Mr.push(Fr=[]),vt=!0,Gr=!1,ft=Pr=NaN}function ja(){ir&&(wa(lt,rt),ut&&Gr&&lr.rejoin(),ir.push(lr.result())),Xt.point=la,Gr&&$e.lineEnd()}function wa(Vr,jt){var tn=we(Vr,jt);if(Mr&&Fr.push([Vr,jt]),vt)lt=Vr,rt=jt,ut=tn,vt=!1,tn&&($e.lineStart(),$e.point(Vr,jt));else if(tn&&Gr)$e.point(Vr,jt);else{var Ln=[ft=Math.max(Xa,Math.min(Ga,ft)),Pr=Math.max(Xa,Math.min(Ga,Pr))],di=[Vr=Math.max(Xa,Math.min(Ga,Vr)),jt=Math.max(Xa,Math.min(Ga,jt))];oa(Ln,di,O,$,he,se)?(Gr||($e.lineStart(),$e.point(Ln[0],Ln[1])),$e.point(di[0],di[1]),tn||$e.lineEnd(),xt=!1):tn&&($e.lineStart(),$e.point(Vr,jt),xt=!1)}ft=Vr,Pr=jt,Gr=tn}return Xt}}function pl(){var O=0,$=0,he=960,se=500,we,He,We;return We={stream:function(er){return we&&He===er?we:we=Un(O,$,he,se)(He=er)},extent:function(er){return arguments.length?(O=+er[0][0],$=+er[0][1],he=+er[1][0],se=+er[1][1],we=He=null,We):[[O,$],[he,se]]}}}var ls=t(),ss,Oi,Lo,ml={sphere:I,point:I,lineStart:us,lineEnd:I,polygonStart:I,polygonEnd:I};function us(){ml.point=of,ml.lineEnd=eu}function eu(){ml.point=ml.lineEnd=I}function of(O,$){O*=d,$*=d,ss=O,Oi=T($),Lo=b($),ml.point=Uc}function Uc(O,$){O*=d,$*=d;var he=T($),se=b($),we=m(O-ss),He=b(we),We=T(we),er=se*We,nr=Lo*he-Oi*se*He,br=Oi*he+Lo*se*He;ls.add(y(E(er*er+nr*nr),br)),ss=O,Oi=he,Lo=se}function ru(O){return ls.reset(),te(O,ml),+ls}var tu=[null,null],au={type:"LineString",coordinates:tu};function gl(O,$){return tu[0]=O,tu[1]=$,ru(au)}var qo={Feature:function(O,$){return oo(O.geometry,$)},FeatureCollection:function(O,$){for(var he=O.features,se=-1,we=he.length;++se0&&(we=gl(O[He],O[He-1]),we>0&&he<=we&&se<=we&&(he+se-we)*(1-Math.pow((he-se)/we,2))o}).map(ir)).concat(r.range(C(He/br)*br,we,br).filter(function(Pr){return m(Pr%lr)>o}).map(Mr))}return ut.lines=function(){return ft().map(function(Pr){return{type:"LineString",coordinates:Pr}})},ut.outline=function(){return{type:"Polygon",coordinates:[Fr(se).concat(lt(We).slice(1),Fr(he).reverse().slice(1),lt(er).reverse().slice(1))]}},ut.extent=function(Pr){return arguments.length?ut.extentMajor(Pr).extentMinor(Pr):ut.extentMinor()},ut.extentMajor=function(Pr){return arguments.length?(se=+Pr[0][0],he=+Pr[1][0],er=+Pr[0][1],We=+Pr[1][1],se>he&&(Pr=se,se=he,he=Pr),er>We&&(Pr=er,er=We,We=Pr),ut.precision(rt)):[[se,er],[he,We]]},ut.extentMinor=function(Pr){return arguments.length?($=+Pr[0][0],O=+Pr[1][0],He=+Pr[0][1],we=+Pr[1][1],$>O&&(Pr=$,$=O,O=Pr),He>we&&(Pr=He,He=we,we=Pr),ut.precision(rt)):[[$,He],[O,we]]},ut.step=function(Pr){return arguments.length?ut.stepMajor(Pr).stepMinor(Pr):ut.stepMinor()},ut.stepMajor=function(Pr){return arguments.length?($e=+Pr[0],lr=+Pr[1],ut):[$e,lr]},ut.stepMinor=function(Pr){return arguments.length?(nr=+Pr[0],br=+Pr[1],ut):[nr,br]},ut.precision=function(Pr){return arguments.length?(rt=+Pr,ir=lo(He,we,90),Mr=iu($,O,rt),Fr=lo(er,We,90),lt=iu(se,he,rt),ut):rt},ut.extentMajor([[-180,-90+o],[180,90-o]]).extentMinor([[-180,-80-o],[180,80+o]])}function ou(){return Yc()()}function B2(O,$){var he=O[0]*d,se=O[1]*d,we=$[0]*d,He=$[1]*d,We=b(se),er=T(se),nr=b(He),br=T(He),$e=We*b(he),lr=We*T(he),ir=nr*b(we),Mr=nr*T(we),Fr=2*B(E(X(He-se)+We*nr*X(we-he))),lt=T(Fr),rt=Fr?function(ut){var ft=T(ut*=Fr)/lt,Pr=T(Fr-ut)/lt,Gr=Pr*$e+ft*ir,vt=Pr*lr+ft*Mr,xt=Pr*er+ft*br;return[y(vt,Gr)*h,y(xt,E(Gr*Gr+vt*vt))*h]}:function(){return[he*h,se*h]};return rt.distance=Fr,rt}function yl(O){return O}var uf=t(),cs=t(),Vc,Ro,zo,ff,Ui={point:I,lineStart:I,lineEnd:I,polygonStart:function(){Ui.lineStart=I2,Ui.lineEnd=H2},polygonEnd:function(){Ui.lineStart=Ui.lineEnd=Ui.point=I,uf.add(m(cs)),cs.reset()},result:function(){var O=uf/2;return uf.reset(),O}};function I2(){Ui.point=so}function so(O,$){Ui.point=vs,Vc=zo=O,Ro=ff=$}function vs(O,$){cs.add(ff*O-zo*$),zo=O,ff=$}function H2(){vs(Vc,Ro)}var uo=1/0,bl=uo,_l=-uo,xl=_l,No={point:lu,lineStart:I,lineEnd:I,polygonStart:I,polygonEnd:I,result:function(){var O=[[uo,bl],[_l,xl]];return _l=xl=-(bl=uo=1/0),O}};function lu(O,$){O_l&&(_l=O),$xl&&(xl=$)}var Wu=0,su=0,uu=0,wl=0,hs=0,ds=0,Zu=0,$u=0,Di=0,Ju,Ku,ti,yn,Gn={point:fo,lineStart:fu,lineEnd:cf,polygonStart:function(){Gn.lineStart=Xc,Gn.lineEnd=O2},polygonEnd:function(){Gn.point=fo,Gn.lineStart=fu,Gn.lineEnd=cf},result:function(){var O=Di?[Zu/Di,$u/Di]:ds?[wl/ds,hs/ds]:uu?[Wu/uu,su/uu]:[NaN,NaN];return Wu=su=uu=wl=hs=ds=Zu=$u=Di=0,O}};function fo(O,$){Wu+=O,su+=$,++uu}function fu(){Gn.point=Al}function Al(O,$){Gn.point=ps,fo(ti=O,yn=$)}function ps(O,$){var he=O-ti,se=$-yn,we=E(he*he+se*se);wl+=we*(ti+O)/2,hs+=we*(yn+$)/2,ds+=we,fo(ti=O,yn=$)}function cf(){Gn.point=fo}function Xc(){Gn.point=U2}function O2(){vf(Ju,Ku)}function U2(O,$){Gn.point=vf,fo(Ju=ti=O,Ku=yn=$)}function vf(O,$){var he=O-ti,se=$-yn,we=E(he*he+se*se);wl+=we*(ti+O)/2,hs+=we*(yn+$)/2,ds+=we,we=yn*O-ti*$,Zu+=we*(ti+O),$u+=we*(yn+$),Di+=we*3,fo(ti=O,yn=$)}function hf(O){this._context=O}hf.prototype={_radius:4.5,pointRadius:function(O){return this._radius=O,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(O,$){switch(this._point){case 0:{this._context.moveTo(O,$),this._point=1;break}case 1:{this._context.lineTo(O,$);break}default:{this._context.moveTo(O+this._radius,$),this._context.arc(O,$,this._radius,0,c);break}}},result:I};var df=t(),pf,jc,Wc,cu,vu,Gi={point:I,lineStart:function(){Gi.point=Qu},lineEnd:function(){pf&&hu(jc,Wc),Gi.point=I},polygonStart:function(){pf=!0},polygonEnd:function(){pf=null},result:function(){var O=+df;return df.reset(),O}};function Qu(O,$){Gi.point=hu,jc=cu=O,Wc=vu=$}function hu(O,$){cu-=O,vu-=$,df.add(E(cu*cu+vu*vu)),cu=O,vu=$}function e0(){this._string=[]}e0.prototype={_radius:4.5,_circle:Zc(4.5),pointRadius:function(O){return(O=+O)!==this._radius&&(this._radius=O,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(O,$){switch(this._point){case 0:{this._string.push("M",O,",",$),this._point=1;break}case 1:{this._string.push("L",O,",",$);break}default:{this._circle==null&&(this._circle=Zc(this._radius)),this._string.push("M",O,",",$,this._circle);break}}},result:function(){if(this._string.length){var O=this._string.join("");return this._string=[],O}else return null}};function Zc(O){return"m0,"+O+"a"+O+","+O+" 0 1,1 0,"+-2*O+"a"+O+","+O+" 0 1,1 0,"+2*O+"z"}function mf(O,$){var he=4.5,se,we;function He(We){return We&&(typeof he=="function"&&we.pointRadius(+he.apply(this,arguments)),te(We,se(we))),we.result()}return He.area=function(We){return te(We,se(Ui)),Ui.result()},He.measure=function(We){return te(We,se(Gi)),Gi.result()},He.bounds=function(We){return te(We,se(No)),No.result()},He.centroid=function(We){return te(We,se(Gn)),Gn.result()},He.projection=function(We){return arguments.length?(se=We==null?(O=null,yl):(O=We).stream,He):O},He.context=function(We){return arguments.length?(we=We==null?($=null,new e0):new hf($=We),typeof he!="function"&&we.pointRadius(he),He):$},He.pointRadius=function(We){return arguments.length?(he=typeof We=="function"?We:(we.pointRadius(+We),+We),He):he},He.projection(O).context($)}function G2(O){return{stream:Bo(O)}}function Bo(O){return function($){var he=new r0;for(var se in O)he[se]=O[se];return he.stream=$,he}}function r0(){}r0.prototype={constructor:r0,point:function(O,$){this.stream.point(O,$)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};function ms(O,$,he){var se=O.clipExtent&&O.clipExtent();return O.scale(150).translate([0,0]),se!=null&&O.clipExtent(null),te(he,O.stream(No)),$(No.result()),se!=null&&O.clipExtent(se),O}function du(O,$,he){return ms(O,function(se){var we=$[1][0]-$[0][0],He=$[1][1]-$[0][1],We=Math.min(we/(se[1][0]-se[0][0]),He/(se[1][1]-se[0][1])),er=+$[0][0]+(we-We*(se[1][0]+se[0][0]))/2,nr=+$[0][1]+(He-We*(se[1][1]+se[0][1]))/2;O.scale(150*We).translate([er,nr])},he)}function pu(O,$,he){return du(O,[[0,0],$],he)}function gf(O,$,he){return ms(O,function(se){var we=+$,He=we/(se[1][0]-se[0][0]),We=(we-He*(se[1][0]+se[0][0]))/2,er=-He*se[0][1];O.scale(150*He).translate([We,er])},he)}function Io(O,$,he){return ms(O,function(se){var we=+$,He=we/(se[1][1]-se[0][1]),We=-He*se[0][0],er=(we-He*(se[1][1]+se[0][1]))/2;O.scale(150*He).translate([We,er])},he)}var $c=16,yf=b(30*d);function Jc(O,$){return+$?t0(O,$):bf(O)}function bf(O){return Bo({point:function($,he){$=O($,he),this.stream.point($[0],$[1])}})}function t0(O,$){function he(se,we,He,We,er,nr,br,$e,lr,ir,Mr,Fr,lt,rt){var ut=br-se,ft=$e-we,Pr=ut*ut+ft*ft;if(Pr>4*$&<--){var Gr=We+ir,vt=er+Mr,xt=nr+Fr,Xt=E(Gr*Gr+vt*vt+xt*xt),la=B(xt/=Xt),$t=m(m(xt)-1)$||m((ut*ja+ft*wa)/Pr-.5)>.3||We*ir+er*Mr+nr*Fr2?Vr[2]%360*d:0,ja()):[er*h,nr*h,br*h]},Lt.angle=function(Vr){return arguments.length?(lr=Vr%360*d,ja()):lr*h},Lt.reflectX=function(Vr){return arguments.length?(ir=Vr?-1:1,ja()):ir<0},Lt.reflectY=function(Vr){return arguments.length?(Mr=Vr?-1:1,ja()):Mr<0},Lt.precision=function(Vr){return arguments.length?(xt=Jc(Xt,vt=Vr*Vr),wa()):E(vt)},Lt.fitExtent=function(Vr,jt){return du(Lt,Vr,jt)},Lt.fitSize=function(Vr,jt){return pu(Lt,Vr,jt)},Lt.fitWidth=function(Vr,jt){return gf(Lt,Vr,jt)},Lt.fitHeight=function(Vr,jt){return Io(Lt,Vr,jt)};function ja(){var Vr=wf(he,0,0,ir,Mr,lr).apply(null,$(He,We)),jt=(lr?wf:Y2)(he,se-Vr[0],we-Vr[1],ir,Mr,lr);return $e=Ea(er,nr,br),Xt=ya($,jt),la=ya($e,Xt),xt=Jc(Xt,vt),wa()}function wa(){return $t=xa=null,Lt}return function(){return $=O.apply(this,arguments),Lt.invert=$.invert&&An,ja()}}function gs(O){var $=0,he=s/3,se=Af(O),we=se($,he);return we.parallels=function(He){return arguments.length?se($=He[0]*d,he=He[1]*d):[$*h,he*h]},we}function Mf(O){var $=b(O);function he(se,we){return[se*$,T(we)/$]}return he.invert=function(se,we){return[se/$,B(we*$)]},he}function Kc(O,$){var he=T(O),se=(he+T($))/2;if(m(se)=.12&&rt<.234&<>=-.425&<<-.214?we:rt>=.166&&rt<.234&<>=-.214&<<-.115?We:he).invert(ir)},$e.stream=function(ir){return O&&$===ir?O:O=V2([he.stream($=ir),we.stream(ir),We.stream(ir)])},$e.precision=function(ir){return arguments.length?(he.precision(ir),we.precision(ir),We.precision(ir),lr()):he.precision()},$e.scale=function(ir){return arguments.length?(he.scale(ir),we.scale(ir*.35),We.scale(ir),$e.translate(he.translate())):he.scale()},$e.translate=function(ir){if(!arguments.length)return he.translate();var Mr=he.scale(),Fr=+ir[0],lt=+ir[1];return se=he.translate(ir).clipExtent([[Fr-.455*Mr,lt-.238*Mr],[Fr+.455*Mr,lt+.238*Mr]]).stream(br),He=we.translate([Fr-.307*Mr,lt+.201*Mr]).clipExtent([[Fr-.425*Mr+o,lt+.12*Mr+o],[Fr-.214*Mr-o,lt+.234*Mr-o]]).stream(br),er=We.translate([Fr-.205*Mr,lt+.212*Mr]).clipExtent([[Fr-.214*Mr+o,lt+.166*Mr+o],[Fr-.115*Mr-o,lt+.234*Mr-o]]).stream(br),lr()},$e.fitExtent=function(ir,Mr){return du($e,ir,Mr)},$e.fitSize=function(ir,Mr){return pu($e,ir,Mr)},$e.fitWidth=function(ir,Mr){return gf($e,ir,Mr)},$e.fitHeight=function(ir,Mr){return Io($e,ir,Mr)};function lr(){return O=$=null,$e}return $e.scale(1070)}function co(O){return function($,he){var se=b($),we=b(he),He=O(se*we);return[He*we*T($),He*T(he)]}}function Vi(O){return function($,he){var se=E($*$+he*he),we=O(se),He=T(we),We=b(we);return[y($*He,se*We),B(se&&he*He/se)]}}var ai=co(function(O){return E(2/(1+O))});ai.invert=Vi(function(O){return 2*B(O/2)});function j2(){return Yi(ai).scale(124.75).clipAngle(180-.001)}var ys=co(function(O){return(O=z(O))&&O/T(O)});ys.invert=Vi(function(O){return O});function e1(){return Yi(ys).scale(79.4188).clipAngle(180-.001)}function hi(O,$){return[O,_(P((u+$)/2))]}hi.invert=function(O,$){return[O,2*p(x($))-u]};function r1(){return t1(hi).scale(961/c)}function t1(O){var $=Yi(O),he=$.center,se=$.scale,we=$.translate,He=$.clipExtent,We=null,er,nr,br;$.scale=function(lr){return arguments.length?(se(lr),$e()):se()},$.translate=function(lr){return arguments.length?(we(lr),$e()):we()},$.center=function(lr){return arguments.length?(he(lr),$e()):he()},$.clipExtent=function(lr){return arguments.length?(lr==null?We=er=nr=br=null:(We=+lr[0][0],er=+lr[0][1],nr=+lr[1][0],br=+lr[1][1]),$e()):We==null?null:[[We,er],[nr,br]]};function $e(){var lr=s*se(),ir=$($s($.rotate()).invert([0,0]));return He(We==null?[[ir[0]-lr,ir[1]-lr],[ir[0]+lr,ir[1]+lr]]:O===hi?[[Math.max(ir[0]-lr,We),er],[Math.min(ir[0]+lr,nr),br]]:[[We,Math.max(ir[1]-lr,er)],[nr,Math.min(ir[1]+lr,br)]])}return $e()}function mu(O){return P((u+O)/2)}function a1(O,$){var he=b(O),se=O===$?T(O):_(he/b($))/_(mu($)/mu(O)),we=he*M(mu(O),se)/se;if(!se)return hi;function He(We,er){we>0?er<-u+o&&(er=-u+o):er>u-o&&(er=u-o);var nr=we/M(mu(er),se);return[nr*T(se*We),we-nr*b(se*We)]}return He.invert=function(We,er){var nr=we-er,br=A(se)*E(We*We+nr*nr),$e=y(We,m(nr))*A(nr);return nr*se<0&&($e-=s*A(We)*A(nr)),[$e/se,2*p(M(we/br,1/se))-u]},He}function a0(){return gs(a1).scale(109.5).parallels([30,30])}function gu(O,$){return[O,$]}gu.invert=gu;function n0(){return Yi(gu).scale(152.63)}function yu(O,$){var he=b(O),se=O===$?T(O):(he-b($))/($-O),we=he/se+O;if(m(se)o&&--se>0);return[O/(.8707+(He=he*he)*(-.131979+He*(-.013791+He*He*He*(.003971-.001529*He)))),he]};function l0(){return Yi(Tf).scale(175.295)}function ln(O,$){return[b($)*T(O),T($)]}ln.invert=Vi(B);function Fi(){return Yi(ln).scale(249.5).clipAngle(90+o)}function _s(O,$){var he=b($),se=1+b(O)*he;return[he*T(O)/se,T($)/se]}_s.invert=Vi(function(O){return 2*p(O)});function s0(){return Yi(_s).scale(250).clipAngle(142)}function wu(O,$){return[_(P((u+$)/2)),-O]}wu.invert=function(O,$){return[-$,2*p(x(O))-u]};function kf(){var O=t1(wu),$=O.center,he=O.rotate;return O.center=function(se){return arguments.length?$([-se[1],se[0]]):(se=$(),[se[1],-se[0]])},O.rotate=function(se){return arguments.length?he([se[0],se[1],se.length>2?se[2]+90:90]):(se=he(),[se[0],se[1],se[2]-90])},he([0,0,90]).scale(159.155)}e.geoAlbers=Qc,e.geoAlbersUsa=X2,e.geoArea=J,e.geoAzimuthalEqualArea=j2,e.geoAzimuthalEqualAreaRaw=ai,e.geoAzimuthalEquidistant=e1,e.geoAzimuthalEquidistantRaw=ys,e.geoBounds=Sr,e.geoCentroid=Na,e.geoCircle=Js,e.geoClipAntimeridian=ot,e.geoClipCircle=gn,e.geoClipExtent=pl,e.geoClipRectangle=Un,e.geoConicConformal=a0,e.geoConicConformalRaw=a1,e.geoConicEqualArea=Ml,e.geoConicEqualAreaRaw=Kc,e.geoConicEquidistant=W2,e.geoConicEquidistantRaw=yu,e.geoContains=nu,e.geoDistance=gl,e.geoEqualEarth=n1,e.geoEqualEarthRaw=xu,e.geoEquirectangular=n0,e.geoEquirectangularRaw=gu,e.geoGnomonic=i1,e.geoGnomonicRaw=o0,e.geoGraticule=Yc,e.geoGraticule10=ou,e.geoIdentity=o1,e.geoInterpolate=B2,e.geoLength=ru,e.geoMercator=r1,e.geoMercatorRaw=hi,e.geoNaturalEarth1=l0,e.geoNaturalEarth1Raw=Tf,e.geoOrthographic=Fi,e.geoOrthographicRaw=ln,e.geoPath=mf,e.geoProjection=Yi,e.geoProjectionMutator=Af,e.geoRotation=$s,e.geoStereographic=s0,e.geoStereographicRaw=_s,e.geoStream=te,e.geoTransform=G2,e.geoTransverseMercator=kf,e.geoTransverseMercatorRaw=wu,Object.defineProperty(e,"__esModule",{value:!0})}))});var CU=le((B8e,kU)=>{"use strict";var TU={alabama:"AL",alaska:"AK",arizona:"AZ",arkansas:"AR",california:"CA",colorado:"CO",connecticut:"CT",delaware:"DE","district of columbia":"DC",florida:"FL",georgia:"GA",hawaii:"HI",idaho:"ID",illinois:"IL",indiana:"IN",iowa:"IA",kansas:"KS",kentucky:"KY",louisiana:"LA",maine:"ME",maryland:"MD",massachusetts:"MA",michigan:"MI",minnesota:"MN",mississippi:"MS",missouri:"MO",montana:"MT",nebraska:"NE",nevada:"NV","new hampshire":"NH","new jersey":"NJ","new mexico":"NM","new york":"NY","north carolina":"NC","north dakota":"ND",ohio:"OH",oklahoma:"OK",oregon:"OR",pennsylvania:"PA","rhode island":"RI","south carolina":"SC","south dakota":"SD",tennessee:"TN",texas:"TX",utah:"UT",vermont:"VT",virginia:"VA",washington:"WA","washington dc":"DC","washington d.c.":"DC","west virginia":"WV",wisconsin:"WI",wyoming:"WY"},lge=new Set(Object.values(TU));kU.exports={usaLocationAbbreviations:lge,usaLocationList:TU}});var SU={};Ha(SU,{COUNTRIES_X:()=>sge});var sge,DU=Ia(()=>{"use strict";sge=[{iso3:"XAC",iso2:"",m49:"",name:"Aksai Chin",aliases:[]},{iso3:"XAP",iso2:"",m49:"",name:"Arunachal Pradesh",aliases:[]},{iso3:"XBT",iso2:"",m49:"",name:"Bir Tawil",aliases:[]},{iso3:"XHT",iso2:"",m49:"",name:"Halaib Triangle",aliases:[]},{iso3:"XIT",iso2:"",m49:"",name:"Ilemi Triangle",aliases:[]},{iso3:"XJK",iso2:"",m49:"",name:"Jammu and Kashmir",aliases:[]}]});var L2=le((I8e,LU)=>{"use strict";var uge=Ft(),{COUNTRIES:fge,createLookup:cge}=iU(),{area:vge}=bU(),{centroid:hge}=xU(),{coordAll:dge}=W3(),{geoBounds:pge}=Q3(),mge=Ap(),J0=Cu(),gge=c0(),yge=ev(),ey=hg(),{usaLocationAbbreviations:bge,usaLocationList:_ge}=CU(),{COUNTRIES_X:xge}=(DU(),Tr(SU)),{lookupAlpha3:wge}=cge([...fge,...xge]),Age={"ISO-3":mge,"USA-states":Tge,"country names":Mge};function Mge(e){let r=wge(e);return r||(J0.log("Unrecognized country name: "+e+"."),!1)}function Tge(e){e=e.trim();let r=bge.has(e.toUpperCase())?e.toUpperCase():_ge[e.toLowerCase()];return r||(J0.log("Unrecognized US location: "+e+"."),!1)}function kge(e,r,t){var n;if(!r||typeof r!="string")return!1;let a=Age[e](r);if(a){let i;if(e==="USA-states"){i=[];for(let o of t)((n=o==null?void 0:o.properties)==null?void 0:n.gu)==="USA"&&i.push(o)}else i=t;for(let o of i)if(o.id===a)return o;J0.log(`Location with id ${a} does not have a matching topojson feature at this resolution.`)}return!1}var ry=360;function I8(e){for(let r=0;r0&&e[r+1][0]<0)return r;return null}function Cge(e){var r=e.geometry,t=r.coordinates,a=e.id,n=[],i,o,l,s;switch(a==="RUS"||a==="FJI"?i=function(u){var f;if(I8(u)===null)f=u;else for(f=new Array(u.length),s=0;sf?c[h++]=[u[s][0]+ry,u[s][1]]:s===f?(c[h++]=u[s],c[h++]=[u[s][0],-90]):c[h++]=u[s];var d=ey.tester(c);d.pts.pop(),n.push(d)}:i=function(u){n.push(ey.tester(u))},r.type){case"MultiPolygon":for(o=0;on&&(n=l,t=o)}else t=r;return!t||!t.coordinates.some(s=>s.length>0)?[NaN,NaN]:hge(t).geometry.coordinates}function Fge(e){var r=window.PlotlyGeoAssets||{},t=[];function a(s){return new Promise(function(u,f){uge.json(s,function(c,h){if(c){delete r[s];var d=c.status===404?'GeoJSON at URL "'+s+'" does not exist.':"Unexpected error while fetching from "+s;return f(new Error(d))}return r[s]=h,u(h)})})}function n(s){return new Promise(function(u,f){var c=0,h=setInterval(function(){if(r[s]&&r[s]!=="pending")return clearInterval(h),u(r[s]);if(c>100)return clearInterval(h),f("Unexpected error while fetching from "+s);c++},50)})}for(var i=0;iU8(O8(e));function O8(e){try{return dge(e)}catch(r){return[]}}function U8(e){if(e.length===0)return null;if(e.length===1){let[i,o]=e[0];return[i,o,i,o]}let[[r,t],[a,n]]=pge({type:"MultiPoint",coordinates:e});return[r,t,EU([r,a])[1],n]}var Lge=(e,r)=>r.fitbounds==="geojson"&&e.locationmode==="geojson-id",FU=(e,r)=>Lge(e,r)?O8(H8(e)):[],qge=(e,r)=>U8(FU(e,r));function EU([e,r]){return[e,e>r?r+ry:r]}LU.exports={locationToFeature:kge,feature2polygons:Cge,getTraceGeojson:H8,extractTraceFeature:Sge,fetchTraceGeoData:Fge,boundsOfCoords:U8,computeBbox:Ege,coordsOf:O8,doesCrossAntiMeridian:I8,fitGeojsonBbox:qge,fitGeojsonCoords:FU,unwrapLonRange:EU,ANTIMERIDIAN_LON_SHIFT:ry}});var G8=le((H8e,RU)=>{"use strict";var Pge=Ft(),Rge=ha(),qU=qt(),PU=Gh(),zge=PU.stylePoints,Nge=PU.styleText;RU.exports=function(r,t){t&&Bge(r,t)};function Bge(e,r){var t=r[0].trace,a=r[0].node3;a.style("opacity",r[0].trace.opacity),zge(a,t,e),Nge(a,t,e),a.selectAll("path.js-line").style("fill","none").each(function(n){var i=Pge.select(this),o=n.trace,l=o.line||{};i.call(qU.stroke,l.color).call(Rge.dashLine,l.dash||"",l.width||0),o.fill!=="none"&&i.call(qU.fill,o.fillcolor)})}});var ny=le((O8e,BU)=>{"use strict";var zU=Ft(),ty=mr(),Ige=U3().getTopojsonFeatures,Y8=eU(),ay=L2(),NU=L0().findExtremes,X8=(Ya(),Tr($a)).BADNUM,Hge=Jg().calcMarkerSize,V8=_i(),Oge=G8();function Uge(e,r,t){var a=r.layers.frontplot.select(".scatterlayer"),n=ty.makeTraceGroups(a,t,"trace scattergeo");function i(o,l){o.lonlat[0]===X8&&zU.select(l).remove()}n.selectAll("*").remove(),n.each(function(o){var l=zU.select(this),s=o[0].trace;if(V8.hasLines(s)||s.fill!=="none"){var u=Y8.calcTraceToLineCoords(o),f=s.fill!=="none"?Y8.makePolygon(u):Y8.makeLine(u);l.selectAll("path.js-line").data([{geojson:f,trace:s}]).enter().append("path").classed("js-line",!0).style("stroke-miterlimit",2)}V8.hasMarkers(s)&&l.selectAll("path.point").data(ty.identity).enter().append("path").classed("point",!0).each(function(c){i(c,this)}),V8.hasText(s)&&l.selectAll("g").data(ty.identity).enter().append("g").append("text").each(function(c){i(c,this)}),Oge(e,o)})}function Gge(e,r){var t=e[0].trace,a=r[t.geo],n=a._subplot,i=t._length,o,l;if(ty.isArrayOrTypedArray(t.locations)){var s=t.locationmode,u=s==="geojson-id"?ay.extractTraceFeature(e):Ige(t,n.topojson);for(o=0;o{"use strict";var Vge=Yl(),Xge=(Ya(),Tr($a)).BADNUM,jge=x9(),Wge=mr().fillText,Zge=nd();IU.exports=function(r,t,a){var n=r.cd,i=n[0].trace,o=r.xa,l=r.ya,s=r.subplot,u=s.projection.isLonLatOverEdges,f=s.project;function c(C){var x=C.lonlat;if(x[0]===Xge||u(x))return 1/0;var _=f(x),M=f([t,a]),T=Math.abs(_[0]-M[0]),A=Math.abs(_[1]-M[1]),E=Math.max(3,C.mrc||0);return Math.max(Math.sqrt(T*T+A*A)-E,1-3/E)}if(Vge.getClosest(n,c,r),r.index!==!1){var h=n[r.index],d=h.lonlat,m=[o.c2p(d),l.c2p(d)],p=h.mrc||1;r.x0=m[0]-p,r.x1=m[0]+p,r.y0=m[1]-p,r.y1=m[1]+p,r.loc=h.loc,r.lon=d[0],r.lat=d[1];var y={};y[i.geo]={_subplot:s};var b=i._module.formatLabels(h,i,y);return r.lonLabel=b.lonLabel,r.latLabel=b.latLabel,r.color=jge(i,h),r.extraText=$ge(i,h,r,n[0].t.labels),r.hovertemplate=i.hovertemplate,[r]}};function $ge(e,r,t,a){if(e.hovertemplate)return;var n=r.hi||e.hoverinfo,i=n==="all"?Zge.hoverinfo.flags:n.split("+"),o=i.indexOf("location")!==-1&&Array.isArray(e.locations),l=i.indexOf("lon")!==-1,s=i.indexOf("lat")!==-1,u=i.indexOf("text")!==-1,f=[];function c(h){return h+"\xB0"}return o?f.push(r.loc):l&&s?f.push("("+c(t.latLabel)+", "+c(t.lonLabel)+")"):l?f.push(a.lon+c(t.lonLabel)):s&&f.push(a.lat+c(t.latLabel)),u&&Wge(r,e,f),f.join("
")}});var UU=le((G8e,OU)=>{"use strict";OU.exports=function(r,t,a,n,i){r.lon=t.lon,r.lat=t.lat,r.location=t.loc?t.loc:null;var o=n[i];return o.fIn&&o.fIn.properties&&(r.properties=o.fIn.properties),r}});var VU=le((Y8e,YU)=>{"use strict";var GU=_i(),Jge=(Ya(),Tr($a)).BADNUM;YU.exports=function(r,t){var a=r.cd,n=r.xaxis,i=r.yaxis,o=[],l=a[0].trace,s,u,f,c,h,d=!GU.hasMarkers(l)&&!GU.hasText(l);if(d)return[];if(t===!1)for(h=0;h{(function(e,r){r(typeof iy=="object"&&typeof XU!="undefined"?iy:e.d3=e.d3||{})})(iy,(function(e){"use strict";function r(W,ee){return Wee?1:W>=ee?0:NaN}function t(W){return W.length===1&&(W=a(W)),{left:function(ee,me,K,J){for(K==null&&(K=0),J==null&&(J=ee.length);K>>1;W(ee[ue],me)<0?K=ue+1:J=ue}return K},right:function(ee,me,K,J){for(K==null&&(K=0),J==null&&(J=ee.length);K>>1;W(ee[ue],me)>0?J=ue:K=ue+1}return K}}}function a(W){return function(ee,me){return r(W(ee),me)}}var n=t(r),i=n.right,o=n.left;function l(W,ee){ee==null&&(ee=s);for(var me=0,K=W.length-1,J=W[0],ue=new Array(K<0?0:K);meW?1:ee>=W?0:NaN}function c(W){return W===null?NaN:+W}function h(W,ee){var me=W.length,K=0,J=-1,ue=0,_e,Ne,Je=0;if(ee==null)for(;++J1)return Je/(K-1)}function d(W,ee){var me=h(W,ee);return me&&Math.sqrt(me)}function m(W,ee){var me=W.length,K=-1,J,ue,_e;if(ee==null){for(;++K=J)for(ue=_e=J;++KJ&&(ue=J),_e=J)for(ue=_e=J;++KJ&&(ue=J),_e0)return[W];if((K=ee0)for(W=Math.ceil(W/Ne),ee=Math.floor(ee/Ne),_e=new Array(ue=Math.ceil(ee-W+1));++J=0?(ue>=M?10:ue>=T?5:ue>=A?2:1)*Math.pow(10,J):-Math.pow(10,-J)/(ue>=M?10:ue>=T?5:ue>=A?2:1)}function z(W,ee,me){var K=Math.abs(ee-W)/Math.max(0,me),J=Math.pow(10,Math.floor(Math.log(K)/Math.LN10)),ue=K/J;return ue>=M?J*=10:ue>=T?J*=5:ue>=A&&(J*=2),eefr;)Re.pop(),--sr;var hr=new Array(sr+1),dr;for(ue=0;ue<=sr;++ue)dr=hr[ue]=[],dr.x0=ue>0?Re[ue-1]:tr,dr.x1=ue=1)return+me(W[K-1],K-1,W);var K,J=(K-1)*ee,ue=Math.floor(J),_e=+me(W[ue],ue,W),Ne=+me(W[ue+1],ue+1,W);return _e+(Ne-_e)*(J-ue)}}function V(W,ee,me){return W=b.call(W,c).sort(r),Math.ceil((me-ee)/(2*(I(W,.75)-I(W,.25))*Math.pow(W.length,-1/3)))}function H(W,ee,me){return Math.ceil((me-ee)/(3.5*d(W)*Math.pow(W.length,-1/3)))}function Q(W,ee){var me=W.length,K=-1,J,ue;if(ee==null){for(;++K=J)for(ue=J;++Kue&&(ue=J)}else for(;++K=J)for(ue=J;++Kue&&(ue=J);return ue}function oe(W,ee){var me=W.length,K=me,J=-1,ue,_e=0;if(ee==null)for(;++J=0;)for(_e=W[ee],me=_e.length;--me>=0;)ue[--J]=_e[me];return ue}function ie(W,ee){var me=W.length,K=-1,J,ue;if(ee==null){for(;++K=J)for(ue=J;++KJ&&(ue=J)}else for(;++K=J)for(ue=J;++KJ&&(ue=J);return ue}function ce(W,ee){for(var me=ee.length,K=new Array(me);me--;)K[me]=W[ee[me]];return K}function Me(W,ee){if(me=W.length){var me,K=0,J=0,ue,_e=W[J];for(ee==null&&(ee=r);++K{(function(e,r){typeof oy=="object"&&typeof WU!="undefined"?r(oy,Q3(),jU()):r(e.d3=e.d3||{},e.d3,e.d3)})(oy,(function(e,r,t){"use strict";var a=Math.abs,n=Math.atan,i=Math.atan2,o=Math.cos,l=Math.exp,s=Math.floor,u=Math.log,f=Math.max,c=Math.min,h=Math.pow,d=Math.round,m=Math.sign||function(k){return k>0?1:k<0?-1:0},p=Math.sin,y=Math.tan,b=1e-6,C=1e-12,x=Math.PI,_=x/2,M=x/4,T=Math.SQRT1_2,A=H(2),E=H(x),P=x*2,z=180/x,B=x/180;function X(k){return k?k/Math.sin(k):1}function I(k){return k>1?_:k<-1?-_:Math.asin(k)}function V(k){return k>1?0:k<-1?x:Math.acos(k)}function H(k){return k>0?Math.sqrt(k):0}function Q(k){return k=l(2*k),(k-1)/(k+1)}function oe(k){return(l(k)-l(-k))/2}function re(k){return(l(k)+l(-k))/2}function te(k){return u(k+H(k*k+1))}function ie(k){return u(k+H(k*k-1))}function ce(k){var D=y(k/2),q=2*u(o(k/2))/(D*D);function R(G,U){var j=o(G),ve=o(U),de=p(U),fe=ve*j,pe=-((1-fe?u((1+fe)/2)/(1-fe):-.5)+q/(1+fe));return[pe*ve*p(G),pe*de]}return R.invert=function(G,U){var j=H(G*G+U*U),ve=-k/2,de=50,fe;if(!j)return[0,0];do{var pe=ve/2,xe=o(pe),Se=p(pe),ze=Se/xe,Ke=-u(a(xe));ve-=fe=(2/ze*Ke-q*ze-j)/(-Ke/(Se*Se)+1-q/(2*xe*xe))*(xe<0?.7:1)}while(a(fe)>b&&--de>0);var or=p(ve);return[i(G*or,j*o(ve)),I(U*or/j)]},R}function Me(){var k=_,D=r.geoProjectionMutator(ce),q=D(k);return q.radius=function(R){return arguments.length?D(k=R*B):k*z},q.scale(179.976).clipAngle(147)}function De(k,D){var q=o(D),R=X(V(q*o(k/=2)));return[2*q*p(k)*R,p(D)*R]}De.invert=function(k,D){if(!(k*k+4*D*D>x*x+b)){var q=k,R=D,G=25;do{var U=p(q),j=p(q/2),ve=o(q/2),de=p(R),fe=o(R),pe=p(2*R),xe=de*de,Se=fe*fe,ze=j*j,Ke=1-Se*ve*ve,or=Ke?V(fe*ve)*H(kr=1/Ke):kr=0,kr,Kr=2*or*fe*j-k,ct=or*de-D,ht=kr*(Se*ze+or*fe*ve*xe),pt=kr*(.5*U*pe-or*2*de*j),yt=kr*.25*(pe*j-or*de*Se*U),fa=kr*(xe*ve+or*ze*fe),Fa=pt*yt-fa*ht;if(!Fa)break;var Ot=(ct*pt-Kr*fa)/Fa,Wa=(Kr*yt-ct*ht)/Fa;q-=Ot,R-=Wa}while((a(Ot)>b||a(Wa)>b)&&--G>0);return[q,R]}};function Ie(){return r.geoProjection(De).scale(152.63)}function Ue(k){var D=p(k),q=o(k),R=k>=0?1:-1,G=y(R*k),U=(1+D-q)/2;function j(ve,de){var fe=o(de),pe=o(ve/=2);return[(1+fe)*p(ve),(R*de>-i(pe,G)-.001?0:-R*10)+U+p(de)*q-(1+fe)*D*pe]}return j.invert=function(ve,de){var fe=0,pe=0,xe=50;do{var Se=o(fe),ze=p(fe),Ke=o(pe),or=p(pe),kr=1+Ke,Kr=kr*ze-ve,ct=U+or*q-kr*D*Se-de,ht=kr*Se/2,pt=-ze*or,yt=D*kr*ze/2,fa=q*Ke+D*Se*or,Fa=pt*yt-fa*ht,Ot=(ct*pt-Kr*fa)/Fa/2,Wa=(Kr*yt-ct*ht)/Fa;a(Wa)>2&&(Wa/=2),fe-=Ot,pe-=Wa}while((a(Ot)>b||a(Wa)>b)&&--xe>0);return R*pe>-i(o(fe),G)-.001?[fe*2,pe]:null},j}function ke(){var k=20*B,D=k>=0?1:-1,q=y(D*k),R=r.geoProjectionMutator(Ue),G=R(k),U=G.stream;return G.parallel=function(j){return arguments.length?(q=y((D=(k=j*B)>=0?1:-1)*k),R(k)):k*z},G.stream=function(j){var ve=G.rotate(),de=U(j),fe=(G.rotate([0,0]),U(j)),pe=G.precision();return G.rotate(ve),de.sphere=function(){fe.polygonStart(),fe.lineStart();for(var xe=D*-180;D*xe<180;xe+=D*90)fe.point(xe,D*90);if(k)for(;D*(xe-=3*D*pe)>=-180;)fe.point(xe,D*-i(o(xe*B/2),q)*z);fe.lineEnd(),fe.polygonEnd()},de},G.scale(218.695).center([0,28.0974])}function je(k,D){var q=y(D/2),R=H(1-q*q),G=1+R*o(k/=2),U=p(k)*R/G,j=q/G,ve=U*U,de=j*j;return[4/3*U*(3+ve-3*de),4/3*j*(3+3*ve-de)]}je.invert=function(k,D){if(k*=3/8,D*=3/8,!k&&a(D)>1)return null;var q=k*k,R=D*D,G=1+q+R,U=H((G-H(G*G-4*D*D))/2),j=I(U)/3,ve=U?ie(a(D/U))/3:te(a(k))/3,de=o(j),fe=re(ve),pe=fe*fe-de*de;return[m(k)*2*i(oe(ve)*de,.25-pe),m(D)*2*i(fe*p(j),.25+pe)]};function W(){return r.geoProjection(je).scale(66.1603)}var ee=H(8),me=u(1+A);function K(k,D){var q=a(D);return qC&&--R>0);return[k/(o(q)*(ee-1/p(q))),m(D)*q]};function J(){return r.geoProjection(K).scale(112.314)}function ue(k){var D=2*x/k;function q(R,G){var U=r.geoAzimuthalEquidistantRaw(R,G);if(a(R)>_){var j=i(U[1],U[0]),ve=H(U[0]*U[0]+U[1]*U[1]),de=D*d((j-_)/D)+_,fe=i(p(j-=de),2-o(j));j=de+I(x/ve*p(fe))-fe,U[0]=ve*o(j),U[1]=ve*p(j)}return U}return q.invert=function(R,G){var U=H(R*R+G*G);if(U>_){var j=i(G,R),ve=D*d((j-_)/D)+_,de=j>ve?-1:1,fe=U*o(ve-j),pe=1/y(de*V((fe-x)/H(x*(x-2*fe)+U*U)));j=ve+2*n((pe+de*H(pe*pe-3))/3),R=U*o(j),G=U*p(j)}return r.geoAzimuthalEquidistantRaw.invert(R,G)},q}function _e(){var k=5,D=r.geoProjectionMutator(ue),q=D(k),R=q.stream,G=.01,U=-o(G*B),j=p(G*B);return q.lobes=function(ve){return arguments.length?D(k=+ve):k},q.stream=function(ve){var de=q.rotate(),fe=R(ve),pe=(q.rotate([0,0]),R(ve));return q.rotate(de),fe.sphere=function(){pe.polygonStart(),pe.lineStart();for(var xe=0,Se=360/k,ze=2*x/k,Ke=90-180/k,or=_;xe0&&a(G)>b);return R<0?NaN:q}function fr(k,D,q){return D===void 0&&(D=40),q===void 0&&(q=C),function(R,G,U,j){var ve,de,fe;U=U===void 0?0:+U,j=j===void 0?0:+j;for(var pe=0;peve){U-=de/=2,j-=fe/=2;continue}ve=Ke;var or=(U>0?-1:1)*q,kr=(j>0?-1:1)*q,Kr=k(U+or,j),ct=k(U,j+kr),ht=(Kr[0]-xe[0])/or,pt=(Kr[1]-xe[1])/or,yt=(ct[0]-xe[0])/kr,fa=(ct[1]-xe[1])/kr,Fa=fa*ht-pt*yt,Ot=(a(Fa)<.5?.5:1)/Fa;if(de=(ze*yt-Se*fa)*Ot,fe=(Se*pt-ze*ht)*Ot,U+=de,j+=fe,a(de)0&&(ve[1]*=1+de/1.5*ve[0]*ve[0]),ve}return R.invert=fr(R),R}function sr(){return r.geoProjection(Re()).rotate([-16.5,-42]).scale(176.57).center([7.93,.09])}function hr(k,D){var q=k*p(D),R=30,G;do D-=G=(D+p(D)-q)/(1+o(D));while(a(G)>b&&--R>0);return D/2}function dr(k,D,q){function R(G,U){return[k*G*o(U=hr(q,U)),D*p(U)]}return R.invert=function(G,U){return U=I(U/D),[G/(k*o(U)),I((2*U+p(2*U))/q)]},R}var Ze=dr(A/_,A,x);function cr(){return r.geoProjection(Ze).scale(169.529)}var Lr=2.00276,Te=1.11072;function Oe(k,D){var q=hr(x,D);return[Lr*k/(1/o(D)+Te/o(q)),(D+A*p(q))/Lr]}Oe.invert=function(k,D){var q=Lr*D,R=D<0?-M:M,G=25,U,j;do j=q-A*p(R),R-=U=(p(2*R)+2*R-x*p(j))/(2*o(2*R)+2+x*o(j)*A*o(R));while(a(U)>b&&--G>0);return j=q-A*p(R),[k*(1/o(j)+Te/o(R))/Lr,j]};function Ar(){return r.geoProjection(Oe).scale(160.857)}function Br(k){var D=0,q=r.geoProjectionMutator(k),R=q(D);return R.parallel=function(G){return arguments.length?q(D=G*B):D*z},R}function Qe(k,D){return[k*o(D),D]}Qe.invert=function(k,D){return[k/o(D),D]};function Be(){return r.geoProjection(Qe).scale(152.63)}function Xe(k){if(!k)return Qe;var D=1/y(k);function q(R,G){var U=D+k-G,j=U&&R*o(G)/U;return[U*p(j),D-U*o(j)]}return q.invert=function(R,G){var U=H(R*R+(G=D-G)*G),j=D+k-U;return[U/o(j)*i(R,G),j]},q}function yr(){return Br(Xe).scale(123.082).center([0,26.1441]).parallel(45)}function Cr(k){function D(q,R){var G=_-R,U=G&&q*k*p(G)/G;return[G*p(U)/k,_-G*o(U)]}return D.invert=function(q,R){var G=q*k,U=_-R,j=H(G*G+U*U),ve=i(G,U);return[(j?j/p(j):1)*ve/k,_-j]},D}function pr(){var k=.5,D=r.geoProjectionMutator(Cr),q=D(k);return q.fraction=function(R){return arguments.length?D(k=+R):k},q.scale(158.837)}var xr=dr(1,4/x,x);function Rr(){return r.geoProjection(xr).scale(152.63)}function Er(k,D,q,R,G,U){var j=o(U),ve;if(a(k)>1||a(U)>1)ve=V(q*G+D*R*j);else{var de=p(k/2),fe=p(U/2);ve=2*I(H(de*de+D*R*fe*fe))}return a(ve)>b?[ve,i(R*p(U),D*G-q*R*j)]:[0,0]}function Or(k,D,q){return V((k*k+D*D-q*q)/(2*k*D))}function rr(k){return k-2*x*s((k+x)/(2*x))}function Sr(k,D,q){for(var R=[[k[0],k[1],p(k[1]),o(k[1])],[D[0],D[1],p(D[1]),o(D[1])],[q[0],q[1],p(q[1]),o(q[1])]],G=R[2],U,j=0;j<3;++j,G=U)U=R[j],G.v=Er(U[1]-G[1],G[3],G[2],U[3],U[2],U[0]-G[0]),G.point=[0,0];var ve=Or(R[0].v[0],R[2].v[0],R[1].v[0]),de=Or(R[0].v[0],R[1].v[0],R[2].v[0]),fe=x-ve;R[2].point[1]=0,R[0].point[0]=-(R[1].point[0]=R[0].v[0]/2);var pe=[R[2].point[0]=R[0].point[0]+R[2].v[0]*o(ve),2*(R[0].point[1]=R[1].point[1]=R[2].v[0]*p(ve))];function xe(Se,ze){var Ke=p(ze),or=o(ze),kr=new Array(3),Kr;for(Kr=0;Kr<3;++Kr){var ct=R[Kr];if(kr[Kr]=Er(ze-ct[1],ct[3],ct[2],or,Ke,Se-ct[0]),!kr[Kr][0])return ct.point;kr[Kr][1]=rr(kr[Kr][1]-ct.v[1])}var ht=pe.slice();for(Kr=0;Kr<3;++Kr){var pt=Kr==2?0:Kr+1,yt=Or(R[Kr].v[0],kr[Kr][0],kr[pt][0]);kr[Kr][1]<0&&(yt=-yt),Kr?Kr==1?(yt=de-yt,ht[0]-=kr[Kr][0]*o(yt),ht[1]-=kr[Kr][0]*p(yt)):(yt=fe-yt,ht[0]+=kr[Kr][0]*o(yt),ht[1]+=kr[Kr][0]*p(yt)):(ht[0]+=kr[Kr][0]*o(yt),ht[1]-=kr[Kr][0]*p(yt))}return ht[0]/=3,ht[1]/=3,ht}return xe}function vr(k){return k[0]*=B,k[1]*=B,k}function jr(){return Qr([0,22],[45,22],[22.5,-22]).scale(380).center([22.5,2])}function Qr(k,D,q){var R=r.geoCentroid({type:"MultiPoint",coordinates:[k,D,q]}),G=[-R[0],-R[1]],U=r.geoRotation(G),j=Sr(vr(U(k)),vr(U(D)),vr(U(q)));j.invert=fr(j);var ve=r.geoProjection(j).rotate(G),de=ve.center;return delete ve.rotate,ve.center=function(fe){return arguments.length?de(U(fe)):U.invert(de())},ve.clipAngle(90)}function qr(k,D){var q=H(1-p(D));return[2/E*k*q,E*(1-q)]}qr.invert=function(k,D){var q=(q=D/E-1)*q;return[q>0?k*H(x/q)/2:0,I(1-q)]};function Wr(){return r.geoProjection(qr).scale(95.6464).center([0,30])}function Ae(k){var D=y(k);function q(R,G){return[R,(R?R/p(R):1)*(p(G)*o(R)-D*o(G))]}return q.invert=D?function(R,G){R&&(G*=p(R)/R);var U=o(R);return[R,2*i(H(U*U+D*D-G*G)-U,D-G)]}:function(R,G){return[R,I(R?G*y(R)/R:G)]},q}function Pe(){return Br(Ae).scale(249.828).clipAngle(90)}var ur=H(3);function gr(k,D){return[ur*k*(2*o(2*D/3)-1)/E,ur*E*p(D/3)]}gr.invert=function(k,D){var q=3*I(D/(ur*E));return[E*k/(ur*(2*o(2*q/3)-1)),q]};function It(){return r.geoProjection(gr).scale(156.19)}function Yt(k){var D=o(k);function q(R,G){return[R*D,p(G)/D]}return q.invert=function(R,G){return[R/D,I(G*D)]},q}function ia(){return Br(Yt).parallel(38.58).scale(195.044)}function Ta(k){var D=o(k);function q(R,G){return[R*D,(1+D)*y(G/2)]}return q.invert=function(R,G){return[R/D,n(G/(1+D))*2]},q}function Ht(){return Br(Ta).scale(124.75)}function Zt(k,D){var q=H(8/(3*x));return[q*k*(1-a(D)/x),q*D]}Zt.invert=function(k,D){var q=H(8/(3*x)),R=D/q;return[k/(q*(1-a(R)/x)),R]};function ma(){return r.geoProjection(Zt).scale(165.664)}function ra(k,D){var q=H(4-3*p(a(D)));return[2/H(6*x)*k*q,m(D)*H(2*x/3)*(2-q)]}ra.invert=function(k,D){var q=2-a(D)/H(2*x/3);return[k*H(6*x)/(2*q),m(D)*I((4-q*q)/3)]};function xn(){return r.geoProjection(ra).scale(165.664)}function on(k,D){var q=H(x*(4+x));return[2/q*k*(1+H(1-4*D*D/(x*x))),4/q*D]}on.invert=function(k,D){var q=H(x*(4+x))/2;return[k*q/(1+H(1-D*D*(4+x)/(4*x))),D*q/2]};function Wn(){return r.geoProjection(on).scale(180.739)}function Jr(k,D){var q=(2+_)*p(D);D/=2;for(var R=0,G=1/0;R<10&&a(G)>b;R++){var U=o(D);D-=G=(D+p(D)*(U+2)-q)/(2*U*(1+U))}return[2/H(x*(4+x))*k*(1+o(D)),2*H(x/(4+x))*p(D)]}Jr.invert=function(k,D){var q=D*H((4+x)/x)/2,R=I(q),G=o(R);return[k/(2/H(x*(4+x))*(1+G)),I((R+q*(G+2))/(2+_))]};function ua(){return r.geoProjection(Jr).scale(180.739)}function zt(k,D){return[k*(1+o(D))/H(2+x),2*D/H(2+x)]}zt.invert=function(k,D){var q=H(2+x),R=D*q/2;return[q*k/(1+o(R)),R]};function ga(){return r.geoProjection(zt).scale(173.044)}function ba(k,D){for(var q=(1+_)*p(D),R=0,G=1/0;R<10&&a(G)>b;R++)D-=G=(D+p(D)-q)/(1+o(D));return q=H(2+x),[k*(1+o(D))/q,2*D/q]}ba.invert=function(k,D){var q=1+_,R=H(q/2);return[k*2*R/(1+o(D*=R)),I((D+p(D))/q)]};function _a(){return r.geoProjection(ba).scale(173.044)}var Vt=3+2*A;function Na(k,D){var q=p(k/=2),R=o(k),G=H(o(D)),U=o(D/=2),j=p(D)/(U+A*R*G),ve=H(2/(1+j*j)),de=H((A*U+(R+q)*G)/(A*U+(R-q)*G));return[Vt*(ve*(de-1/de)-2*u(de)),Vt*(ve*j*(de+1/de)-2*n(j))]}Na.invert=function(k,D){if(!(U=je.invert(k/1.2,D*1.065)))return null;var q=U[0],R=U[1],G=20,U;k/=Vt,D/=Vt;do{var j=q/2,ve=R/2,de=p(j),fe=o(j),pe=p(ve),xe=o(ve),Se=o(R),ze=H(Se),Ke=pe/(xe+A*fe*ze),or=Ke*Ke,kr=H(2/(1+or)),Kr=A*xe+(fe+de)*ze,ct=A*xe+(fe-de)*ze,ht=Kr/ct,pt=H(ht),yt=pt-1/pt,fa=pt+1/pt,Fa=kr*yt-2*u(pt)-k,Ot=kr*Ke*fa-2*n(Ke)-D,Wa=pe&&T*ze*de*or/pe,qn=(A*fe*xe+ze)/(2*(xe+A*fe*ze)*(xe+A*fe*ze)*ze),Li=-.5*Ke*kr*kr*kr,Dl=Li*Wa,Au=Li*qn,Zn=(Zn=2*xe+A*ze*(fe-de))*Zn*pt,$n=(A*fe*xe*ze+Se)/Zn,po=-(A*de*pe)/(ze*Zn),Fl=yt*Dl-2*$n/pt+kr*($n+$n/ht),El=yt*Au-2*po/pt+kr*(po+po/ht),Ll=Ke*fa*Dl-2*Wa/(1+or)+kr*fa*Wa+kr*Ke*($n-$n/ht),ws=Ke*fa*Au-2*qn/(1+or)+kr*fa*qn+kr*Ke*(po-po/ht),Ho=El*Ll-ws*Fl;if(!Ho)break;var Mu=(Ot*El-Fa*ws)/Ho,Df=(Fa*Ll-Ot*Fl)/Ho;q-=Mu,R=f(-_,c(_,R-Df))}while((a(Mu)>b||a(Df)>b)&&--G>0);return a(a(R)-_)R){var xe=H(pe),Se=i(fe,de),ze=q*d(Se/q),Ke=Se-ze,or=k*o(Ke),kr=(k*p(Ke)-Ke*p(or))/(_-or),Kr=rn(Ke,kr),ct=(x-k)/Ii(Kr,or,x);de=xe;var ht=50,pt;do de-=pt=(k+Ii(Kr,or,de)*ct-xe)/(Kr(de)*ct);while(a(pt)>b&&--ht>0);fe=Ke*p(de),de<_&&(fe-=kr*(de-_));var yt=p(ze),fa=o(ze);ve[0]=de*fa-fe*yt,ve[1]=de*yt+fe*fa}return ve}return G.invert=function(U,j){var ve=U*U+j*j;if(ve>R){var de=H(ve),fe=i(j,U),pe=q*d(fe/q),xe=fe-pe;U=de*o(xe),j=de*p(xe);for(var Se=U-_,ze=p(U),Ke=j/ze,or=U<_?1/0:0,kr=10;;){var Kr=k*p(Ke),ct=k*o(Ke),ht=p(ct),pt=_-ct,yt=(Kr-Ke*ht)/pt,fa=rn(Ke,yt);if(a(or)b||a(Ke)>b)&&--or>0);return[xe,Se]},de}var Si=Hi(2.8284,-1.6988,.75432,-.18071,1.76003,-.38914,.042555);function ns(){return r.geoProjection(Si).scale(149.995)}var is=Hi(2.583819,-.835827,.170354,-.038094,1.543313,-.411435,.082742);function Ks(){return r.geoProjection(is).scale(153.93)}var os=Hi(5/6*x,-.62636,-.0344,0,1.3493,-.05524,0,.045);function Qs(){return r.geoProjection(os).scale(130.945)}function ot(k,D){var q=k*k,R=D*D;return[k*(1-.162388*R)*(.87-952426e-9*q*q),D*(1+R/12)]}ot.invert=function(k,D){var q=k,R=D,G=50,U;do{var j=R*R;R-=U=(R*(1+j/12)-D)/(1+j/4)}while(a(U)>b&&--G>0);G=50,k/=1-.162388*j;do{var ve=(ve=q*q)*ve;q-=U=(q*(.87-952426e-9*ve)-k)/(.87-.00476213*ve)}while(a(U)>b&&--G>0);return[q,R]};function st(){return r.geoProjection(ot).scale(131.747)}var Gt=Hi(2.6516,-.76534,.19123,-.047094,1.36289,-.13965,.031762);function Ur(){return r.geoProjection(Gt).scale(131.087)}function gn(k){var D=k(_,0)[0]-k(-_,0)[0];function q(R,G){var U=R>0?-.5:.5,j=k(R+U*x,G);return j[0]-=U*D,j}return k.invert&&(q.invert=function(R,G){var U=R>0?-.5:.5,j=k.invert(R+U*D,G),ve=j[0]-U*x;return ve<-x?ve+=2*x:ve>x&&(ve-=2*x),j[0]=ve,j}),q}function oa(k,D){var q=m(k),R=m(D),G=o(D),U=o(k)*G,j=p(k)*G,ve=p(R*D);k=a(i(j,ve)),D=I(U),a(k-_)>b&&(k%=_);var de=Ga(k>x/4?_-k:k,D);return k>x/4&&(ve=de[0],de[0]=-de[1],de[1]=-ve),de[0]*=q,de[1]*=-R,de}oa.invert=function(k,D){a(k)>1&&(k=m(k)*2-k),a(D)>1&&(D=m(D)*2-D);var q=m(k),R=m(D),G=-q*k,U=-R*D,j=U/G<1,ve=Xa(j?U:G,j?G:U),de=ve[0],fe=ve[1],pe=o(fe);return j&&(de=-_-de),[q*(i(p(de)*pe,-p(fe))+x),R*I(o(de)*pe)]};function Ga(k,D){if(D===_)return[0,0];var q=p(D),R=q*q,G=R*R,U=1+G,j=1+3*G,ve=1-G,de=I(1/H(U)),fe=ve+R*U*de,pe=(1-q)/fe,xe=H(pe),Se=pe*U,ze=H(Se),Ke=xe*ve,or,kr;if(k===0)return[0,-(Ke+R*ze)];var Kr=o(D),ct=1/Kr,ht=2*q*Kr,pt=(-3*R+de*j)*ht,yt=(-fe*Kr-(1-q)*pt)/(fe*fe),fa=.5*yt/xe,Fa=ve*fa-2*R*xe*ht,Ot=R*U*yt+pe*j*ht,Wa=-ct*ht,qn=-ct*Ot,Li=-2*ct*Fa,Dl=4*k/x,Au;if(k>.222*x||D.175*x){if(or=(Ke+R*H(Se*(1+G)-Ke*Ke))/(1+G),k>x/4)return[or,or];var Zn=or,$n=.5*or;or=.5*($n+Zn),kr=50;do{var po=H(Se-or*or),Fl=or*(Li+Wa*po)+qn*I(or/ze)-Dl;if(!Fl)break;Fl<0?$n=or:Zn=or,or=.5*($n+Zn)}while(a(Zn-$n)>b&&--kr>0)}else{or=b,kr=25;do{var El=or*or,Ll=H(Se-El),ws=Li+Wa*Ll,Ho=or*ws+qn*I(or/ze)-Dl,Mu=ws+(qn-Wa*El)/Ll;or-=Au=Ll?Ho/Mu:0}while(a(Au)>b&&--kr>0)}return[or,-Ke-R*H(Se-or*or)]}function Xa(k,D){for(var q=0,R=1,G=.5,U=50;;){var j=G*G,ve=H(G),de=I(1/H(1+j)),fe=1-j+G*(1+j)*de,pe=(1-ve)/fe,xe=H(pe),Se=pe*(1+j),ze=xe*(1-j),Ke=Se-k*k,or=H(Ke),kr=D+ze+G*or;if(a(R-q)0?q=G:R=G,G=.5*(q+R)}if(!U)return null;var Kr=I(ve),ct=o(Kr),ht=1/ct,pt=2*ve*ct,yt=(-3*G+de*(1+3*j))*pt,fa=(-fe*ct-(1-ve)*yt)/(fe*fe),Fa=.5*fa/xe,Ot=(1-j)*Fa-2*G*xe*pt,Wa=-2*ht*Ot,qn=-ht*pt,Li=-ht*(G*(1+j)*fa+pe*(1+3*j)*pt);return[x/4*(k*(Wa+qn*or)+Li*I(k/H(Se))),Kr]}function Un(){return r.geoProjection(gn(oa)).scale(239.75)}function pl(k,D,q){var R,G,U;return k?(R=ls(k,q),D?(G=ls(D,1-q),U=G[1]*G[1]+q*R[0]*R[0]*G[0]*G[0],[[R[0]*G[2]/U,R[1]*R[2]*G[0]*G[1]/U],[R[1]*G[1]/U,-R[0]*R[2]*G[0]*G[2]/U],[R[2]*G[1]*G[2]/U,-q*R[0]*R[1]*G[0]/U]]):[[R[0],0],[R[1],0],[R[2],0]]):(G=ls(D,1-q),[[0,G[0]/G[1]],[1/G[1],0],[G[2]/G[1],0]])}function ls(k,D){var q,R,G,U,j;if(D=1-b)return q=(1-D)/4,R=re(k),U=Q(k),G=1/R,j=R*oe(k),[U+q*(j-k)/(R*R),G-q*U*G*(j-k),G+q*U*G*(j+k),2*n(l(k))-_+q*(j-k)/R];var ve=[1,0,0,0,0,0,0,0,0],de=[H(D),0,0,0,0,0,0,0,0],fe=0;for(R=H(1-D),j=1;a(de[fe]/ve[fe])>b&&fe<8;)q=ve[fe++],de[fe]=(q-R)/2,ve[fe]=(q+R)/2,R=H(q*R),j*=2;G=j*ve[fe]*k;do U=de[fe]*p(R=G)/ve[fe],G=(I(U)+G)/2;while(--fe);return[p(G),U=o(G),U/o(G-R),G]}function ss(k,D,q){var R=a(k),G=a(D),U=oe(G);if(R){var j=1/p(R),ve=1/(y(R)*y(R)),de=-(ve+q*(U*U*j*j)-1+q),fe=(q-1)*ve,pe=(-de+H(de*de-4*fe))/2;return[Oi(n(1/H(pe)),q)*m(k),Oi(n(H((pe/ve-1)/q)),1-q)*m(D)]}return[0,Oi(n(U),1-q)*m(D)]}function Oi(k,D){if(!D)return k;if(D===1)return u(y(k/2+M));for(var q=1,R=H(1-D),G=H(D),U=0;a(G)>b;U++){if(k%x){var j=n(R*y(k)/q);j<0&&(j+=x),k+=j+~~(k/x)*x}else k+=k;G=(q+R)/2,R=H(q*R),G=((q=G)-R)/2}return k/(h(2,U)*q)}function Lo(k,D){var q=(A-1)/(A+1),R=H(1-q*q),G=Oi(_,R*R),U=-1,j=u(y(x/4+a(D)/2)),ve=l(U*j)/H(q),de=ml(ve*o(U*k),ve*p(U*k)),fe=ss(de[0],de[1],R*R);return[-fe[1],(D>=0?1:-1)*(.5*G-fe[0])]}function ml(k,D){var q=k*k,R=D+1,G=1-q-D*D;return[.5*((k>=0?_:-_)-i(G,2*k)),-.25*u(G*G+4*q)+.5*u(R*R+q)]}function us(k,D){var q=D[0]*D[0]+D[1]*D[1];return[(k[0]*D[0]+k[1]*D[1])/q,(k[1]*D[0]-k[0]*D[1])/q]}Lo.invert=function(k,D){var q=(A-1)/(A+1),R=H(1-q*q),G=Oi(_,R*R),U=-1,j=pl(.5*G-D,-k,R*R),ve=us(j[0],j[1]),de=i(ve[1],ve[0])/U;return[de,2*n(l(.5/U*u(q*ve[0]*ve[0]+q*ve[1]*ve[1])))-_]};function eu(){return r.geoProjection(gn(Lo)).scale(151.496)}function of(k){var D=p(k),q=o(k),R=Uc(k);R.invert=Uc(-k);function G(U,j){var ve=R(U,j);U=ve[0],j=ve[1];var de=p(j),fe=o(j),pe=o(U),xe=V(D*de+q*fe*pe),Se=p(xe),ze=a(Se)>b?xe/Se:1;return[ze*q*p(U),(a(U)>_?ze:-ze)*(D*fe-q*de*pe)]}return G.invert=function(U,j){var ve=H(U*U+j*j),de=-p(ve),fe=o(ve),pe=ve*fe,xe=-j*de,Se=ve*D,ze=H(pe*pe+xe*xe-Se*Se),Ke=i(pe*Se+xe*ze,xe*Se-pe*ze),or=(ve>_?-1:1)*i(U*de,ve*o(Ke)*fe+j*p(Ke)*de);return R.invert(or,Ke)},G}function Uc(k){var D=p(k),q=o(k);return function(R,G){var U=o(G),j=o(R)*U,ve=p(R)*U,de=p(G);return[i(ve,j*q-de*D),I(de*q+j*D)]}}function ru(){var k=0,D=r.geoProjectionMutator(of),q=D(k),R=q.rotate,G=q.stream,U=r.geoCircle();return q.parallel=function(j){if(!arguments.length)return k*z;var ve=q.rotate();return D(k=j*B).rotate(ve)},q.rotate=function(j){return arguments.length?(R.call(q,[j[0],j[1]-k*z]),U.center([-j[0],-j[1]]),q):(j=R.call(q),j[1]+=k*z,j)},q.stream=function(j){return j=G(j),j.sphere=function(){j.polygonStart();var ve=.01,de=U.radius(90-ve)().coordinates[0],fe=de.length-1,pe=-1,xe;for(j.lineStart();++pe=0;)j.point((xe=de[pe])[0],xe[1]);j.lineEnd(),j.polygonEnd()},j},q.scale(79.4187).parallel(45).clipAngle(180-.001)}var tu=3,au=I(1-1/tu)*z,gl=Yt(0);function qo(k){var D=au*B,q=qr(x,D)[0]-qr(-x,D)[0],R=gl(0,D)[1],G=qr(0,D)[1],U=E-G,j=P/k,ve=4/P,de=R+U*U*4/P;function fe(pe,xe){var Se,ze=a(xe);if(ze>D){var Ke=c(k-1,f(0,s((pe+x)/j)));pe+=x*(k-1)/k-Ke*j,Se=qr(pe,ze),Se[0]=Se[0]*P/q-P*(k-1)/(2*k)+Ke*P/k,Se[1]=R+(Se[1]-G)*4*U/P,xe<0&&(Se[1]=-Se[1])}else Se=gl(pe,xe);return Se[0]*=ve,Se[1]/=de,Se}return fe.invert=function(pe,xe){pe/=ve,xe*=de;var Se=a(xe);if(Se>R){var ze=c(k-1,f(0,s((pe+x)/j)));pe=(pe+x*(k-1)/k-ze*j)*q/P;var Ke=qr.invert(pe,.25*(Se-R)*P/U+G);return Ke[0]-=x*(k-1)/k-ze*j,xe<0&&(Ke[1]=-Ke[1]),Ke}return gl.invert(pe,xe)},fe}function Po(k,D){return[k,D&1?90-b:au]}function oo(k,D){return[k,D&1?-90+b:-au]}function lf(k){return[k[0]*(1-b),k[1]]}function ju(k){var D=[].concat(t.range(-180,180+k/2,k).map(Po),t.range(180,-180-k/2,-k).map(oo));return{type:"Polygon",coordinates:[k===180?D.map(lf):D]}}function fs(){var k=4,D=r.geoProjectionMutator(qo),q=D(k),R=q.stream;return q.lobes=function(G){return arguments.length?D(k=+G):k},q.stream=function(G){var U=q.rotate(),j=R(G),ve=(q.rotate([0,0]),R(G));return q.rotate(U),j.sphere=function(){r.geoStream(ju(180/k),ve)},j},q.scale(239.75)}function sf(k){var D=1+k,q=p(1/D),R=I(q),G=2*H(x/(U=x+4*R*D)),U,j=.5*G*(D+H(k*(2+k))),ve=k*k,de=D*D;function fe(pe,xe){var Se=1-p(xe),ze,Ke;if(Se&&Se<2){var or=_-xe,kr=25,Kr;do{var ct=p(or),ht=o(or),pt=R+i(ct,D-ht),yt=1+de-2*D*ht;or-=Kr=(or-ve*R-D*ct+yt*pt-.5*Se*U)/(2*D*ct*pt)}while(a(Kr)>C&&--kr>0);ze=G*H(yt),Ke=pe*pt/x}else ze=G*(k+Se),Ke=pe*R/x;return[ze*p(Ke),j-ze*o(Ke)]}return fe.invert=function(pe,xe){var Se=pe*pe+(xe-=j)*xe,ze=(1+de-Se/(G*G))/(2*D),Ke=V(ze),or=p(Ke),kr=R+i(or,D-ze);return[I(pe/H(Se))*x/kr,I(1-2*(Ke-ve*R-D*or+(1+de-2*D*ze)*kr)/U)]},fe}function Gc(){var k=1,D=r.geoProjectionMutator(sf),q=D(k);return q.ratio=function(R){return arguments.length?D(k=+R):k},q.scale(167.774).center([0,18.67])}var nu=.7109889596207567,lo=.0528035274542;function iu(k,D){return D>-nu?(k=Ze(k,D),k[1]+=lo,k):Qe(k,D)}iu.invert=function(k,D){return D>-nu?Ze.invert(k,D-lo):Qe.invert(k,D)};function Yc(){return r.geoProjection(iu).rotate([-20,-55]).scale(164.263).center([0,-5.4036])}function ou(k,D){return a(D)>nu?(k=Ze(k,D),k[1]-=D>0?lo:-lo,k):Qe(k,D)}ou.invert=function(k,D){return a(D)>nu?Ze.invert(k,D+(D>0?lo:-lo)):Qe.invert(k,D)};function B2(){return r.geoProjection(ou).scale(152.63)}function yl(k,D,q,R){var G=H(4*x/(2*q+(1+k-D/2)*p(2*q)+(k+D)/2*p(4*q)+D/2*p(6*q))),U=H(R*p(q)*H((1+k*o(2*q)+D*o(4*q))/(1+k+D))),j=q*de(1);function ve(xe){return H(1+k*o(2*xe)+D*o(4*xe))}function de(xe){var Se=xe*q;return(2*Se+(1+k-D/2)*p(2*Se)+(k+D)/2*p(4*Se)+D/2*p(6*Se))/q}function fe(xe){return ve(xe)*p(xe)}var pe=function(xe,Se){var ze=q*tr(de,j*p(Se)/q,Se/x);isNaN(ze)&&(ze=q*m(Se));var Ke=G*ve(ze);return[Ke*U*xe/x*o(ze),Ke/U*p(ze)]};return pe.invert=function(xe,Se){var ze=tr(fe,Se*U/G);return[xe*x/(o(ze)*G*U*ve(ze)),I(q*de(ze/q)/j)]},q===0&&(G=H(R/x),pe=function(xe,Se){return[xe*G,p(Se)/G]},pe.invert=function(xe,Se){return[xe/G,I(Se*G)]}),pe}function uf(){var k=1,D=0,q=45*B,R=2,G=r.geoProjectionMutator(yl),U=G(k,D,q,R);return U.a=function(j){return arguments.length?G(k=+j,D,q,R):k},U.b=function(j){return arguments.length?G(k,D=+j,q,R):D},U.psiMax=function(j){return arguments.length?G(k,D,q=+j*B,R):q*z},U.ratio=function(j){return arguments.length?G(k,D,q,R=+j):R},U.scale(180.739)}function cs(k,D,q,R,G,U,j,ve,de,fe,pe){if(pe.nanEncountered)return NaN;var xe,Se,ze,Ke,or,kr,Kr,ct,ht,pt;if(xe=q-D,Se=k(D+xe*.25),ze=k(q-xe*.25),isNaN(Se)){pe.nanEncountered=!0;return}if(isNaN(ze)){pe.nanEncountered=!0;return}return Ke=xe*(R+4*Se+G)/12,or=xe*(G+4*ze+U)/12,kr=Ke+or,pt=(kr-j)/15,fe>de?(pe.maxDepthCount++,kr+pt):Math.abs(pt)>1;do de[kr]>ze?or=kr:Ke=kr,kr=Ke+or>>1;while(kr>Ke);var Kr=de[kr+1]-de[kr];return Kr&&(Kr=(ze-de[kr+1])/Kr),(kr+1+Kr)/j}var xe=2*pe(1)/x*U/q,Se=function(ze,Ke){var or=pe(a(p(Ke))),kr=R(or)*ze;return or/=xe,[kr,Ke>=0?or:-or]};return Se.invert=function(ze,Ke){var or;return Ke*=xe,a(Ke)<1&&(or=m(Ke)*I(G(a(Ke))*U)),[ze/R(a(Ke)),or]},Se}function zo(){var k=0,D=2.5,q=1.183136,R=r.geoProjectionMutator(Ro),G=R(k,D,q);return G.alpha=function(U){return arguments.length?R(k=+U,D,q):k},G.k=function(U){return arguments.length?R(k,D=+U,q):D},G.gamma=function(U){return arguments.length?R(k,D,q=+U):q},G.scale(152.63)}function ff(k,D){return a(k[0]-D[0])=0;--de)q=k[1][de],R=q[0][0],G=q[0][1],U=q[1][1],j=q[2][0],ve=q[2][1],D.push(Ui([[j-b,ve-b],[j-b,U+b],[R+b,U+b],[R+b,G-b]],30));return{type:"Polygon",coordinates:[t.merge(D)]}}function so(k,D,q){var R,G;function U(de,fe){for(var pe=fe<0?-1:1,xe=D[+(fe<0)],Se=0,ze=xe.length-1;Sexe[Se][2][0];++Se);var Ke=k(de-xe[Se][1][0],fe);return Ke[0]+=k(xe[Se][1][0],pe*fe>pe*xe[Se][0][1]?xe[Se][0][1]:fe)[0],Ke}q?U.invert=q(U):k.invert&&(U.invert=function(de,fe){for(var pe=G[+(fe<0)],xe=D[+(fe<0)],Se=0,ze=pe.length;SeKe&&(or=ze,ze=Ke,Ke=or),[[xe,ze],[Se,Ke]]})}),j):D.map(function(fe){return fe.map(function(pe){return[[pe[0][0]*z,pe[0][1]*z],[pe[1][0]*z,pe[1][1]*z],[pe[2][0]*z,pe[2][1]*z]]})})},D!=null&&j.lobes(D),j}var vs=[[[[-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 H2(){return so(Oe,vs).scale(160.857)}var uo=[[[[-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 bl(){return so(ou,uo).scale(152.63)}var _l=[[[[-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 xl(){return so(Ze,_l).scale(169.529)}var No=[[[[-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 lu(){return so(Ze,No).scale(169.529).rotate([20,0])}var Wu=[[[[-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 su(){return so(iu,Wu,fr).rotate([-20,-55]).scale(164.263).center([0,-5.4036])}var uu=[[[[-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 wl(){return so(Qe,uu).scale(152.63).rotate([-20,0])}function hs(k,D){return[3/P*k*H(x*x/3-D*D),D]}hs.invert=function(k,D){return[P/3*k/H(x*x/3-D*D),D]};function ds(){return r.geoProjection(hs).scale(158.837)}function Zu(k){function D(q,R){if(a(a(R)-_)2)return null;q/=2,R/=2;var U=q*q,j=R*R,ve=2*R/(1+U+j);return ve=h((1+ve)/(1-ve),1/k),[i(2*q,1-U-j)/k,I((ve-1)/(ve+1))]},D}function $u(){var k=.5,D=r.geoProjectionMutator(Zu),q=D(k);return q.spacing=function(R){return arguments.length?D(k=+R):k},q.scale(124.75)}var Di=x/A;function Ju(k,D){return[k*(1+H(o(D)))/2,D/(o(D/2)*o(k/6))]}Ju.invert=function(k,D){var q=a(k),R=a(D),G=b,U=_;Rb||a(kr)>b)&&--G>0);return G&&[q,R]};function yn(){return r.geoProjection(ti).scale(139.98)}function Gn(k,D){return[p(k)/o(D),y(D)*o(k)]}Gn.invert=function(k,D){var q=k*k,R=D*D,G=R+1,U=q+G,j=k?T*H((U-H(U*U-4*q))/q):1/H(G);return[I(k*j),m(D)*V(j)]};function fo(){return r.geoProjection(Gn).scale(144.049).clipAngle(90-.001)}function fu(k){var D=o(k),q=y(M+k/2);function R(G,U){var j=U-k,ve=a(j)=0;)pe=k[fe],xe=pe[0]+ve*(ze=xe)-de*Se,Se=pe[1]+ve*Se+de*ze;return xe=ve*(ze=xe)-de*Se,Se=ve*Se+de*ze,[xe,Se]}return q.invert=function(R,G){var U=20,j=R,ve=G;do{for(var de=D,fe=k[de],pe=fe[0],xe=fe[1],Se=0,ze=0,Ke;--de>=0;)fe=k[de],Se=pe+j*(Ke=Se)-ve*ze,ze=xe+j*ze+ve*Ke,pe=fe[0]+j*(Ke=pe)-ve*xe,xe=fe[1]+j*xe+ve*Ke;Se=pe+j*(Ke=Se)-ve*ze,ze=xe+j*ze+ve*Ke,pe=j*(Ke=pe)-ve*xe-R,xe=j*xe+ve*Ke-G;var or=Se*Se+ze*ze,kr,Kr;j-=kr=(pe*Se+xe*ze)/or,ve-=Kr=(xe*Se-pe*ze)/or}while(a(kr)+a(Kr)>b*b&&--U>0);if(U){var ct=H(j*j+ve*ve),ht=2*n(ct*.5),pt=p(ht);return[i(j*pt,ct*o(ht)),ct?I(ve*pt/ct):0]}},q}var O2=[[.9972523,0],[.0052513,-.0041175],[.0074606,.0048125],[-.0153783,-.1968253],[.0636871,-.1408027],[.3660976,-.2937382]],U2=[[.98879,0],[0,0],[-.050909,0],[0,0],[.075528,0]],vf=[[.984299,0],[.0211642,.0037608],[-.1036018,-.0575102],[-.0329095,-.0320119],[.0499471,.1223335],[.026046,.0899805],[7388e-7,-.1435792],[.0075848,-.1334108],[-.0216473,.0776645],[-.0225161,.0853673]],hf=[[.9245,0],[0,0],[.01943,0]],df=[[.721316,0],[0,0],[-.00881625,-.00617325]];function pf(){return Gi(O2,[152,-64]).scale(1400).center([-160.908,62.4864]).clipAngle(30).angle(7.8)}function jc(){return Gi(U2,[95,-38]).scale(1e3).clipAngle(55).center([-96.5563,38.8675])}function Wc(){return Gi(vf,[120,-45]).scale(359.513).clipAngle(55).center([-117.474,53.0628])}function cu(){return Gi(hf,[-20,-18]).scale(209.091).center([20,16.7214]).clipAngle(82)}function vu(){return Gi(df,[165,10]).scale(250).clipAngle(130).center([-165,-10])}function Gi(k,D){var q=r.geoProjection(Xc(k)).rotate(D).clipAngle(90),R=r.geoRotation(D),G=q.center;return delete q.rotate,q.center=function(U){return arguments.length?G(R(U)):R.invert(G())},q}var Qu=H(6),hu=H(7);function e0(k,D){var q=I(7*p(D)/(3*Qu));return[Qu*k*(2*o(2*q/3)-1)/hu,9*p(q/3)/hu]}e0.invert=function(k,D){var q=3*I(D*hu/9);return[k*hu/(Qu*(2*o(2*q/3)-1)),I(p(q)*3*Qu/7)]};function Zc(){return r.geoProjection(e0).scale(164.859)}function mf(k,D){for(var q=(1+T)*p(D),R=D,G=0,U;G<25&&(R-=U=(p(R/2)+p(R)-q)/(.5*o(R/2)+o(R)),!(a(U)C&&--R>0);return U=q*q,j=U*U,ve=U*j,[k/(.84719-.13063*U+ve*ve*(-.04515+.05494*U-.02326*j+.00331*ve)),q]};function du(){return r.geoProjection(ms).scale(175.295)}function pu(k,D){return[k*(1+o(D))/2,2*(D-y(D/2))]}pu.invert=function(k,D){for(var q=D/2,R=0,G=1/0;R<10&&a(G)>b;++R){var U=o(D/2);D-=G=(D-y(D/2)-q)/(1-.5/(U*U))}return[2*k/(1+o(D)),D]};function gf(){return r.geoProjection(pu).scale(152.63)}var Io=[[[[-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 $c(){return so(Ne(1/0),Io).rotate([20,0]).scale(152.63)}function yf(k,D){var q=p(D),R=o(D),G=m(k);if(k===0||a(D)===_)return[0,D];if(D===0)return[k,0];if(a(k)===_)return[k*R,_*q];var U=x/(2*k)-2*k/x,j=2*D/x,ve=(1-j*j)/(q-j),de=U*U,fe=ve*ve,pe=1+de/fe,xe=1+fe/de,Se=(U*q/ve-U/2)/pe,ze=(fe*q/de+ve/2)/xe,Ke=Se*Se+R*R/pe,or=ze*ze-(fe*q*q/de+ve*q-1)/xe;return[_*(Se+H(Ke)*G),_*(ze+H(or<0?0:or)*m(-D*U)*G)]}yf.invert=function(k,D){k/=_,D/=_;var q=k*k,R=D*D,G=q+R,U=x*x;return[k?(G-1+H((1-G)*(1-G)+4*q))/(2*k)*_:0,tr(function(j){return G*(x*p(j)-2*j)*x+4*j*j*(D-p(j))+2*x*j-U*D},0)]};function Jc(){return r.geoProjection(yf).scale(127.267)}var bf=1.0148,t0=.23185,_f=-.14499,xf=.02406,Y2=bf,wf=5*t0,Yi=7*_f,Af=9*xf,gs=1.790857183;function Mf(k,D){var q=D*D;return[k,D*(bf+q*q*(t0+q*(_f+xf*q)))]}Mf.invert=function(k,D){D>gs?D=gs:D<-gs&&(D=-gs);var q=D,R;do{var G=q*q;q-=R=(q*(bf+G*G*(t0+G*(_f+xf*G)))-D)/(Y2+G*G*(wf+G*(Yi+Af*G)))}while(a(R)>b);return[k,q]};function Kc(){return r.geoProjection(Mf).scale(139.319)}function Ml(k,D){if(a(D)b&&--G>0);return j=y(R),[(a(D)=0;)if(R=D[ve],q[0]===R[0]&&q[1]===R[1]){if(U)return[U,q];U=q}}}function t1(k){for(var D=k.length,q=[],R=k[D-1],G=0;G0?[-R[0],0]:[180-R[0],180])};var D=a0.map(function(q){return{face:q,project:k(q)}});return[-1,0,0,1,0,1,4,5].forEach(function(q,R){var G=D[q];G&&(G.children||(G.children=[])).push(D[R])}),ys(D[0],function(q,R){return D[q<-x/2?R<0?6:4:q<0?R<0?2:0:qR^ze>R&&q<(Se-fe)*(R-pe)/(ze-pe)+fe&&(G=!G)}return G}function o0(k,D){var q=D.stream,R;if(!q)throw new Error("invalid projection");switch(k&&k.type){case"Feature":R=o1;break;case"FeatureCollection":R=i1;break;default:R=l0;break}return R(k,q)}function i1(k,D){return{type:"FeatureCollection",features:k.features.map(function(q){return o1(q,D)})}}function o1(k,D){return{type:"Feature",id:k.id,properties:k.properties,geometry:l0(k.geometry,D)}}function Tf(k,D){return{type:"GeometryCollection",geometries:k.geometries.map(function(q){return l0(q,D)})}}function l0(k,D){if(!k)return null;if(k.type==="GeometryCollection")return Tf(k,D);var q;switch(k.type){case"Point":q=_s;break;case"MultiPoint":q=_s;break;case"LineString":q=s0;break;case"MultiLineString":q=s0;break;case"Polygon":q=wu;break;case"MultiPolygon":q=wu;break;case"Sphere":q=wu;break;default:return null}return r.geoStream(k,D(q)),q.result()}var ln=[],Fi=[],_s={point:function(k,D){ln.push([k,D])},result:function(){var k=ln.length?ln.length<2?{type:"Point",coordinates:ln[0]}:{type:"MultiPoint",coordinates:ln}:null;return ln=[],k}},s0={lineStart:i0,point:function(k,D){ln.push([k,D])},lineEnd:function(){ln.length&&(Fi.push(ln),ln=[])},result:function(){var k=Fi.length?Fi.length<2?{type:"LineString",coordinates:Fi[0]}:{type:"MultiLineString",coordinates:Fi}:null;return Fi=[],k}},wu={polygonStart:i0,lineStart:i0,point:function(k,D){ln.push([k,D])},lineEnd:function(){var k=ln.length;if(k){do ln.push(ln[0].slice());while(++k<4);Fi.push(ln),ln=[]}},polygonEnd:i0,result:function(){if(!Fi.length)return null;var k=[],D=[];return Fi.forEach(function(q){xu(q)?k.push([q]):D.push(q)}),D.forEach(function(q){var R=q[0];k.some(function(G){if(n1(G[0],R))return G.push(q),!0})||k.push([q])}),Fi=[],k.length?k.length>1?{type:"MultiPolygon",coordinates:k}:{type:"Polygon",coordinates:k[0]}:null}};function kf(k){var D=k(_,0)[0]-k(-_,0)[0];function q(R,G){var U=a(R)<_,j=k(U?R:R>0?R-x:R+x,G),ve=(j[0]-j[1])*T,de=(j[0]+j[1])*T;if(U)return[ve,de];var fe=D*T,pe=ve>0^de>0?-1:1;return[pe*ve-m(de)*fe,pe*de-m(ve)*fe]}return k.invert&&(q.invert=function(R,G){var U=(R+G)*T,j=(G-R)*T,ve=a(U)<.5*D&&a(j)<.5*D;if(!ve){var de=D*T,fe=U>0^j>0?-1:1,pe=-fe*R+(j>0?1:-1)*de,xe=-fe*G+(U>0?1:-1)*de;U=(-pe-xe)*T,j=(pe-xe)*T}var Se=k.invert(U,j);return ve||(Se[0]+=U>0?x:-x),Se}),r.geoProjection(q).rotate([-90,-90,45]).clipAngle(180-.001)}function O(){return kf(oa).scale(176.423)}function $(){return kf(Lo).scale(111.48)}function he(k,D){if(!(0<=(D=+D)&&D<=20))throw new Error("invalid digits");function q(fe){var pe=fe.length,xe=2,Se=new Array(pe);for(Se[0]=+fe[0].toFixed(D),Se[1]=+fe[1].toFixed(D);xe2||ze[0]!=pe[0]||ze[1]!=pe[1])&&(xe.push(ze),pe=ze)}return xe.length===1&&fe.length>1&&xe.push(q(fe[fe.length-1])),xe}function U(fe){return fe.map(G)}function j(fe){if(fe==null)return fe;var pe;switch(fe.type){case"GeometryCollection":pe={type:"GeometryCollection",geometries:fe.geometries.map(j)};break;case"Point":pe={type:"Point",coordinates:q(fe.coordinates)};break;case"MultiPoint":pe={type:fe.type,coordinates:R(fe.coordinates)};break;case"LineString":pe={type:fe.type,coordinates:G(fe.coordinates)};break;case"MultiLineString":case"Polygon":pe={type:fe.type,coordinates:U(fe.coordinates)};break;case"MultiPolygon":pe={type:"MultiPolygon",coordinates:fe.coordinates.map(U)};break;default:return fe}return fe.bbox!=null&&(pe.bbox=fe.bbox),pe}function ve(fe){var pe={type:"Feature",properties:fe.properties,geometry:j(fe.geometry)};return fe.id!=null&&(pe.id=fe.id),fe.bbox!=null&&(pe.bbox=fe.bbox),pe}if(k!=null)switch(k.type){case"Feature":return ve(k);case"FeatureCollection":{var de={type:"FeatureCollection",features:k.features.map(ve)};return k.bbox!=null&&(de.bbox=k.bbox),de}default:return j(k)}return k}function se(k){var D=p(k);function q(R,G){var U=D?y(R*D/2)/D:R/2;if(!G)return[2*U,-k];var j=2*n(U*p(G)),ve=1/y(G);return[p(j)*ve,G+(1-o(j))*ve-k]}return q.invert=function(R,G){if(a(G+=k)b&&--ve>0);var Se=R*(fe=y(j)),ze=y(a(G)0?_:-_)*(de+G*(pe-j)/2+G*G*(pe-2*de+j)/2)]}We.invert=function(k,D){var q=D/_,R=q*90,G=c(18,a(R/5)),U=f(0,s(G));do{var j=He[U][1],ve=He[U+1][1],de=He[c(19,U+2)][1],fe=de-j,pe=de-2*ve+j,xe=2*(a(q)-ve)/fe,Se=pe/fe,ze=xe*(1-Se*xe*(1-2*Se*xe));if(ze>=0||U===1){R=(D>=0?5:-5)*(ze+G);var Ke=50,or;do G=c(18,a(R)/5),U=s(G),ze=G-U,j=He[U][1],ve=He[U+1][1],de=He[c(19,U+2)][1],R-=(or=(D>=0?_:-_)*(ve+ze*(de-j)/2+ze*ze*(de-2*ve+j)/2)-D)*z;while(a(or)>C&&--Ke>0);break}}while(--U>=0);var kr=He[U][0],Kr=He[U+1][0],ct=He[c(19,U+2)][0];return[k/(Kr+ze*(ct-kr)/2+ze*ze*(ct-2*Kr+kr)/2),R*B]};function er(){return r.geoProjection(We).scale(152.63)}function nr(k){function D(q,R){var G=o(R),U=(k-1)/(k-G*o(q));return[U*G*p(q),U*p(R)]}return D.invert=function(q,R){var G=q*q+R*R,U=H(G),j=(k-H(1-G*(k+1)/(k-1)))/((k-1)/U+U/(k-1));return[i(q*j,U*H(1-j*j)),U?I(R*j/U):0]},D}function br(k,D){var q=nr(k);if(!D)return q;var R=o(D),G=p(D);function U(j,ve){var de=q(j,ve),fe=de[1],pe=fe*G/(k-1)+R;return[de[0]*R/pe,fe/pe]}return U.invert=function(j,ve){var de=(k-1)/(k-1-ve*G);return q.invert(de*j,de*ve*R)},U}function $e(){var k=2,D=0,q=r.geoProjectionMutator(br),R=q(k,D);return R.distance=function(G){return arguments.length?q(k=+G,D):k},R.tilt=function(G){return arguments.length?q(k,D=G*B):D*z},R.scale(432.147).clipAngle(V(1/k)*z-1e-6)}var lr=1e-4,ir=1e4,Mr=-180,Fr=Mr+lr,lt=180,rt=lt-lr,ut=-90,ft=ut+lr,Pr=90,Gr=Pr-lr;function vt(k){return k.length>0}function xt(k){return Math.floor(k*ir)/ir}function Xt(k){return k===ut||k===Pr?[0,k]:[Mr,xt(k)]}function la(k){var D=k[0],q=k[1],R=!1;return D<=Fr?(D=Mr,R=!0):D>=rt&&(D=lt,R=!0),q<=ft?(q=ut,R=!0):q>=Gr&&(q=Pr,R=!0),R?[D,q]:k}function $t(k){return k.map(la)}function xa(k,D,q){for(var R=0,G=k.length;R=rt||pe<=ft||pe>=Gr){U[j]=la(de);for(var xe=j+1;xeFr&&zeft&&Ke=ve)break;q.push({index:-1,polygon:D,ring:U=U.slice(xe-1)}),U[0]=Xt(U[0][1]),j=-1,ve=U.length}}}}function Lt(k){var D,q=k.length,R={},G={},U,j,ve,de,fe;for(D=0;D0?x-ve:ve)*z],fe=r.geoProjection(k(j)).rotate(de),pe=r.geoRotation(de),xe=fe.center;return delete fe.rotate,fe.center=function(Se){return arguments.length?xe(pe(Se)):pe.invert(xe())},fe.clipAngle(90)}function Ln(k){var D=o(k);function q(R,G){var U=r.geoGnomonicRaw(R,G);return U[0]*=D,U}return q.invert=function(R,G){return r.geoGnomonicRaw.invert(R/D,G)},q}function di(){return vo([-158,21.5],[-77,39]).clipAngle(60).scale(400)}function vo(k,D){return tn(Ln,k,D)}function Xi(k){if(!(k*=2))return r.geoAzimuthalEquidistantRaw;var D=-k/2,q=-D,R=k*k,G=y(q),U=.5/p(q);function j(ve,de){var fe=V(o(de)*o(ve-D)),pe=V(o(de)*o(ve-q)),xe=de<0?-1:1;return fe*=fe,pe*=pe,[(fe-pe)/(2*k),xe*H(4*R*pe-(R-fe+pe)*(R-fe+pe))/(2*k)]}return j.invert=function(ve,de){var fe=de*de,pe=o(H(fe+(Se=ve+D)*Se)),xe=o(H(fe+(Se=ve+q)*Se)),Se,ze;return[i(ze=pe-xe,Se=(pe+xe)*G),(de<0?-1:1)*V(H(Se*Se+ze*ze)*U)]},j}function Cl(){return Ei([-158,21.5],[-77,39]).clipAngle(130).scale(122.571)}function Ei(k,D){return tn(Xi,k,D)}function Sl(k,D){if(a(D)b&&--ve>0);return[m(k)*(H(G*G+4)+G)*x/4,_*j]};function ho(){return r.geoProjection(Cf).scale(127.16)}function yd(k,D,q,R,G){function U(j,ve){var de=q*p(R*ve),fe=H(1-de*de),pe=H(2/(1+fe*o(j*=G)));return[k*fe*pe*p(j),D*de*pe]}return U.invert=function(j,ve){var de=j/k,fe=ve/D,pe=H(de*de+fe*fe),xe=2*I(pe/2);return[i(j*y(xe),k*pe)/G,pe&&I(ve*p(xe)/(D*q*pe))/R]},U}function bd(k,D,q,R){var G=x/3;k=f(k,b),D=f(D,b),k=c(k,_),D=c(D,x-b),q=f(q,0),q=c(q,100-b),R=f(R,b);var U=q/100+1,j=R/100,ve=V(U*o(G))/G,de=p(k)/p(ve*_),fe=D/x,pe=H(j*p(k/2)/p(D/2)),xe=pe/H(fe*de*ve),Se=1/(pe*H(fe*de*ve));return yd(xe,Se,de,ve,fe)}function u1(){var k=65*B,D=60*B,q=20,R=200,G=r.geoProjectionMutator(bd),U=G(k,D,q,R);return U.poleline=function(j){return arguments.length?G(k=+j*B,D,q,R):k*z},U.parallels=function(j){return arguments.length?G(k,D=+j*B,q,R):D*z},U.inflation=function(j){return arguments.length?G(k,D,q=+j,R):q},U.ratio=function(j){return arguments.length?G(k,D,q,R=+j):R},U.scale(163.775)}function Z2(){return u1().poleline(65).parallels(60).inflation(0).ratio(200).scale(172.633)}var _d=4*x+3*H(3),xd=2*H(2*x*H(3)/_d),wd=dr(xd*H(3)/x,xd,_d/6);function f1(){return r.geoProjection(wd).scale(176.84)}function Sf(k,D){return[k*H(1-3*D*D/(x*x)),D]}Sf.invert=function(k,D){return[k/H(1-3*D*D/(x*x)),D]};function Ad(){return r.geoProjection(Sf).scale(152.63)}function $2(k,D){var q=o(D),R=o(k)*q,G=1-R,U=o(k=i(p(k)*q,-p(D))),j=p(k);return q=H(1-R*R),[j*q-U*G,-U*q-j*G]}$2.invert=function(k,D){var q=(k*k+D*D)/-2,R=H(-q*(2+q)),G=D*q+k*R,U=k*q-D*R,j=H(U*U+G*G);return[i(R*G,j*(1+q)),j?-I(R*U/j):0]};function Ay(){return r.geoProjection($2).rotate([0,-90,45]).scale(124.75).clipAngle(180-.001)}function J2(k,D){var q=De(k,D);return[(q[0]+k/_)/2,(q[1]+D)/2]}J2.invert=function(k,D){var q=k,R=D,G=25;do{var U=o(R),j=p(R),ve=p(2*R),de=j*j,fe=U*U,pe=p(q),xe=o(q/2),Se=p(q/2),ze=Se*Se,Ke=1-fe*xe*xe,or=Ke?V(U*xe)*H(kr=1/Ke):kr=0,kr,Kr=.5*(2*or*U*Se+q/_)-k,ct=.5*(or*j+R)-D,ht=.5*kr*(fe*ze+or*U*xe*de)+.5/_,pt=kr*(pe*ve/4-or*j*Se),yt=.125*kr*(ve*Se-or*j*fe*pe),fa=.5*kr*(de*xe+or*ze*U)+.5,Fa=pt*yt-fa*ht,Ot=(ct*pt-Kr*fa)/Fa,Wa=(Kr*yt-ct*ht)/Fa;q-=Ot,R-=Wa}while((a(Ot)>b||a(Wa)>b)&&--G>0);return[q,R]};function ji(){return r.geoProjection(J2).scale(158.837)}e.geoNaturalEarth=r.geoNaturalEarth1,e.geoNaturalEarthRaw=r.geoNaturalEarth1Raw,e.geoAiry=Me,e.geoAiryRaw=ce,e.geoAitoff=Ie,e.geoAitoffRaw=De,e.geoArmadillo=ke,e.geoArmadilloRaw=Ue,e.geoAugust=W,e.geoAugustRaw=je,e.geoBaker=J,e.geoBakerRaw=K,e.geoBerghaus=_e,e.geoBerghausRaw=ue,e.geoBertin1953=sr,e.geoBertin1953Raw=Re,e.geoBoggs=Ar,e.geoBoggsRaw=Oe,e.geoBonne=yr,e.geoBonneRaw=Xe,e.geoBottomley=pr,e.geoBottomleyRaw=Cr,e.geoBromley=Rr,e.geoBromleyRaw=xr,e.geoChamberlin=Qr,e.geoChamberlinRaw=Sr,e.geoChamberlinAfrica=jr,e.geoCollignon=Wr,e.geoCollignonRaw=qr,e.geoCraig=Pe,e.geoCraigRaw=Ae,e.geoCraster=It,e.geoCrasterRaw=gr,e.geoCylindricalEqualArea=ia,e.geoCylindricalEqualAreaRaw=Yt,e.geoCylindricalStereographic=Ht,e.geoCylindricalStereographicRaw=Ta,e.geoEckert1=ma,e.geoEckert1Raw=Zt,e.geoEckert2=xn,e.geoEckert2Raw=ra,e.geoEckert3=Wn,e.geoEckert3Raw=on,e.geoEckert4=ua,e.geoEckert4Raw=Jr,e.geoEckert5=ga,e.geoEckert5Raw=zt,e.geoEckert6=_a,e.geoEckert6Raw=ba,e.geoEisenlohr=wn,e.geoEisenlohrRaw=Na,e.geoFahey=Ea,e.geoFaheyRaw=na,e.geoFoucaut=Eo,e.geoFoucautRaw=Da,e.geoFoucautSinusoidal=$s,e.geoFoucautSinusoidalRaw=Bi,e.geoGilbert=Js,e.geoGingery=dl,e.geoGingeryRaw=hl,e.geoGinzburg4=ns,e.geoGinzburg4Raw=Si,e.geoGinzburg5=Ks,e.geoGinzburg5Raw=is,e.geoGinzburg6=Qs,e.geoGinzburg6Raw=os,e.geoGinzburg8=st,e.geoGinzburg8Raw=ot,e.geoGinzburg9=Ur,e.geoGinzburg9Raw=Gt,e.geoGringorten=Un,e.geoGringortenRaw=oa,e.geoGuyou=eu,e.geoGuyouRaw=Lo,e.geoHammer=ar,e.geoHammerRaw=Ne,e.geoHammerRetroazimuthal=ru,e.geoHammerRetroazimuthalRaw=of,e.geoHealpix=fs,e.geoHealpixRaw=qo,e.geoHill=Gc,e.geoHillRaw=sf,e.geoHomolosine=B2,e.geoHomolosineRaw=ou,e.geoHufnagel=uf,e.geoHufnagelRaw=yl,e.geoHyperelliptical=zo,e.geoHyperellipticalRaw=Ro,e.geoInterrupt=so,e.geoInterruptedBoggs=H2,e.geoInterruptedHomolosine=bl,e.geoInterruptedMollweide=xl,e.geoInterruptedMollweideHemispheres=lu,e.geoInterruptedSinuMollweide=su,e.geoInterruptedSinusoidal=wl,e.geoKavrayskiy7=ds,e.geoKavrayskiy7Raw=hs,e.geoLagrange=$u,e.geoLagrangeRaw=Zu,e.geoLarrivee=Ku,e.geoLarriveeRaw=Ju,e.geoLaskowski=yn,e.geoLaskowskiRaw=ti,e.geoLittrow=fo,e.geoLittrowRaw=Gn,e.geoLoximuthal=Al,e.geoLoximuthalRaw=fu,e.geoMiller=cf,e.geoMillerRaw=ps,e.geoModifiedStereographic=Gi,e.geoModifiedStereographicRaw=Xc,e.geoModifiedStereographicAlaska=pf,e.geoModifiedStereographicGs48=jc,e.geoModifiedStereographicGs50=Wc,e.geoModifiedStereographicMiller=cu,e.geoModifiedStereographicLee=vu,e.geoMollweide=cr,e.geoMollweideRaw=Ze,e.geoMtFlatPolarParabolic=Zc,e.geoMtFlatPolarParabolicRaw=e0,e.geoMtFlatPolarQuartic=G2,e.geoMtFlatPolarQuarticRaw=mf,e.geoMtFlatPolarSinusoidal=r0,e.geoMtFlatPolarSinusoidalRaw=Bo,e.geoNaturalEarth2=du,e.geoNaturalEarth2Raw=ms,e.geoNellHammer=gf,e.geoNellHammerRaw=pu,e.geoInterruptedQuarticAuthalic=$c,e.geoNicolosi=Jc,e.geoNicolosiRaw=yf,e.geoPatterson=Kc,e.geoPattersonRaw=Mf,e.geoPolyconic=Qc,e.geoPolyconicRaw=Ml,e.geoPolyhedral=ys,e.geoPolyhedralButterfly=gu,e.geoPolyhedralCollignon=W2,e.geoPolyhedralWaterman=bu,e.geoProject=o0,e.geoGringortenQuincuncial=O,e.geoPeirceQuincuncial=$,e.geoPierceQuincuncial=$,e.geoQuantize=he,e.geoQuincuncial=kf,e.geoRectangularPolyconic=we,e.geoRectangularPolyconicRaw=se,e.geoRobinson=er,e.geoRobinsonRaw=We,e.geoSatellite=$e,e.geoSatelliteRaw=br,e.geoSinuMollweide=Yc,e.geoSinuMollweideRaw=iu,e.geoSinusoidal=Be,e.geoSinusoidalRaw=Qe,e.geoStitch=wa,e.geoTimes=jt,e.geoTimesRaw=Vr,e.geoTwoPointAzimuthal=vo,e.geoTwoPointAzimuthalRaw=Ln,e.geoTwoPointAzimuthalUsa=di,e.geoTwoPointEquidistant=Ei,e.geoTwoPointEquidistantRaw=Xi,e.geoTwoPointEquidistantUsa=Cl,e.geoVanDerGrinten=xs,e.geoVanDerGrintenRaw=Sl,e.geoVanDerGrinten2=l1,e.geoVanDerGrinten2Raw=u0,e.geoVanDerGrinten3=gd,e.geoVanDerGrinten3Raw=s1,e.geoVanDerGrinten4=ho,e.geoVanDerGrinten4Raw=Cf,e.geoWagner=u1,e.geoWagner7=Z2,e.geoWagnerRaw=bd,e.geoWagner4=f1,e.geoWagner4Raw=wd,e.geoWagner6=Ad,e.geoWagner6Raw=Sf,e.geoWiechel=Ay,e.geoWiechelRaw=$2,e.geoWinkel3=ji,e.geoWinkel3Raw=J2,Object.defineProperty(e,"__esModule",{value:!0})}))});var eG=le((V8e,QU)=>{"use strict";var en=Ft(),j8=mr(),Kge=_t(),q2=Math.PI/180,qc=180/Math.PI,Z8={cursor:"pointer"},$8={cursor:"auto"};function Qge(e,r){var t=e.projection,a;return r._isScoped?a=e3e:r._isClipped?a=t3e:a=r3e,a(e,t)}QU.exports=Qge;function J8(e,r){return en.behavior.zoom().translate(r.translate()).scaleExtent(r.scaleExtent()).scale(r.scale())}function K8(e,r,t){var a=e.id,n=e.graphDiv,i=n.layout,o=i[a],l=n._fullLayout,s=l[a],u={},f={};function c(h,d){u[a+"."+h]=j8.nestedProperty(o,h).get(),Kge.call("_storeDirectGUIEdit",i,l._preGUI,u);var m=j8.nestedProperty(s,h);m.get()!==d&&(m.set(d),j8.nestedProperty(o,h).set(d),f[a+"."+h]=d)}t(c),c("projection.scale",r.scale()/e.fitScale),c("fitbounds",!1),n.emit("plotly_relayout",f)}function e3e(e,r){var t=J8(e,r);function a(){en.select(this).style(Z8)}function n(){r.scale(en.event.scale).translate(en.event.translate),e.render(!0);var l=r.invert(e.midPt);e.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":r.scale()/e.fitScale,"geo.center.lon":l[0],"geo.center.lat":l[1]})}function i(l){var s=r.invert(e.midPt);l("center.lon",s[0]),l("center.lat",s[1])}function o(){en.select(this).style($8),K8(e,r,i)}return t.on("zoomstart",a).on("zoom",n).on("zoomend",o),t}function r3e(e,r){var t=J8(e,r),a=2,n,i,o,l,s,u,f,c,h;function d(x){return r.invert(x)}function m(x){var _=d(x);if(!_)return!0;var M=r(_);return Math.abs(M[0]-x[0])>a||Math.abs(M[1]-x[1])>a}function p(){en.select(this).style(Z8);let{x,y:_,width:M,height:T}=this.getBBox();n=en.event.sourceEvent?en.mouse(this):[x+M/2,_+T/2],i=r.rotate(),o=r.translate(),l=i,s=d(n)}function y(){let{x,y:_,width:M,height:T}=this.getBBox();if(u=en.event.sourceEvent?en.mouse(this):[x+M/2,_+T/2],m(n)){t.scale(r.scale()),t.translate(r.translate());return}r.scale(en.event.scale),r.translate([o[0],en.event.translate[1]]),s?d(u)&&(c=d(u),f=[l[0]+(c[0]-s[0]),i[1],i[2]],r.rotate(f),l=f):(n=u,s=d(n)),h=!0,e.render(!0);var A=r.rotate(),E=r.invert(e.midPt);e.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":r.scale()/e.fitScale,"geo.center.lon":E[0],"geo.center.lat":E[1],"geo.projection.rotation.lon":-A[0]})}function b(){en.select(this).style($8),h&&K8(e,r,C)}function C(x){var _=r.rotate(),M=r.invert(e.midPt);x("projection.rotation.lon",-_[0]),x("center.lon",M[0]),x("center.lat",M[1])}return t.on("zoomstart",p).on("zoom",y).on("zoomend",b),t}function t3e(e,r){var t={r:r.rotate(),k:r.scale()},a=J8(e,r),n=f3e(a,"zoomstart","zoom","zoomend"),i=0,o=a.on,l;a.on("zoomstart",function(){en.select(this).style(Z8);let{x:h,y:d,width:m,height:p}=this.getBBox(),y=en.event.sourceEvent?en.mouse(this):[h+m/2,d+p/2],b=r.rotate(),C=b,x=r.translate(),_=a3e(b);l=ly(r,y),o.call(a,"zoom",function(){let{x:M,y:T,width:A,height:E}=this.getBBox(),P=en.event.sourceEvent?en.mouse(this):[M+A/2,T+E/2];if(r.scale(t.k=en.event.scale),!l)y=P,l=ly(r,y);else if(ly(r,P)){r.rotate(b).translate(x);var z=ly(r,P),B=i3e(l,z),X=l3e(n3e(_,B)),I=t.r=o3e(X,l,C);(!isFinite(I[0])||!isFinite(I[1])||!isFinite(I[2]))&&(I=C),r.rotate(I),C=I}u(n.of(this,arguments))}),s(n.of(this,arguments))}).on("zoomend",function(){en.select(this).style($8),o.call(a,"zoom",null),f(n.of(this,arguments)),K8(e,r,c)}).on("zoom.redraw",function(){e.render(!0);var h=r.rotate();e.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":r.scale()/e.fitScale,"geo.projection.rotation.lon":-h[0],"geo.projection.rotation.lat":-h[1]})});function s(h){i++||h({type:"zoomstart"})}function u(h){h({type:"zoom"})}function f(h){--i||h({type:"zoomend"})}function c(h){var d=r.rotate();h("projection.rotation.lon",-d[0]),h("projection.rotation.lat",-d[1])}return en.rebind(a,n,"on")}function ly(e,r){var t=e.invert(r);return t&&isFinite(t[0])&&isFinite(t[1])&&s3e(t)}function a3e(e){var r=.5*e[0]*q2,t=.5*e[1]*q2,a=.5*e[2]*q2,n=Math.sin(r),i=Math.cos(r),o=Math.sin(t),l=Math.cos(t),s=Math.sin(a),u=Math.cos(a);return[i*l*u+n*o*s,n*l*u-i*o*s,i*o*u+n*l*s,i*l*s-n*o*u]}function n3e(e,r){var t=e[0],a=e[1],n=e[2],i=e[3],o=r[0],l=r[1],s=r[2],u=r[3];return[t*o-a*l-n*s-i*u,t*l+a*o+n*u-i*s,t*s-a*u+n*o+i*l,t*u+a*s-n*l+i*o]}function i3e(e,r){if(!(!e||!r)){var t=u3e(e,r),a=Math.sqrt(KU(t,t)),n=.5*Math.acos(Math.max(-1,Math.min(1,KU(e,r)))),i=Math.sin(n)/a;return a&&[Math.cos(n),t[2]*i,-t[1]*i,t[0]*i]}}function o3e(e,r,t){var a=W8(r,2,e[0]);a=W8(a,1,e[1]),a=W8(a,0,e[2]-t[2]);var n=r[0],i=r[1],o=r[2],l=a[0],s=a[1],u=a[2],f=Math.atan2(i,n)*qc,c=Math.sqrt(n*n+i*i),h,d;Math.abs(s)>c?(d=(s>0?90:-90)-f,h=0):(d=Math.asin(s/c)*qc-f,h=Math.sqrt(c*c-s*s));var m=180-d-2*f,p=(Math.atan2(u,l)-Math.atan2(o,h))*qc,y=(Math.atan2(u,l)-Math.atan2(o,-h))*qc,b=$U(t[0],t[1],d,p),C=$U(t[0],t[1],m,y);return b<=C?[d,p,t[2]]:[m,y,t[2]]}function $U(e,r,t,a){var n=JU(t-e),i=JU(a-r);return Math.sqrt(n*n+i*i)}function JU(e){return(e%360+540)%360-180}function W8(e,r,t){var a=t*q2,n=e.slice(),i=r===0?1:0,o=r===2?1:2,l=Math.cos(a),s=Math.sin(a);return n[i]=e[i]*l-e[o]*s,n[o]=e[o]*l+e[i]*s,n}function l3e(e){return[Math.atan2(2*(e[0]*e[1]+e[2]*e[3]),1-2*(e[1]*e[1]+e[2]*e[2]))*qc,Math.asin(Math.max(-1,Math.min(1,2*(e[0]*e[2]-e[3]*e[1]))))*qc,Math.atan2(2*(e[0]*e[3]+e[1]*e[2]),1-2*(e[2]*e[2]+e[3]*e[3]))*qc]}function s3e(e){var r=e[0]*q2,t=e[1]*q2,a=Math.cos(t);return[a*Math.cos(r),a*Math.sin(r),Math.sin(t)]}function KU(e,r){for(var t=0,a=0,n=e.length;a{"use strict";var js=Ft(),r_=Q3(),c3e=r_.geoPath,v3e=r_.geoDistance,h3e=ZU(),d3e=_t(),cd=mr(),p3e=cd.strTranslate,sy=qt(),fd=ha(),rG=Yl(),m3e=Sn(),e_=Oa(),{concatExtremes:g3e,getAutoRange:tG,makePadFn:aG}=L0(),Q8=Zo(),y3e=Iu().prepSelect,b3e=Iu().clearOutline,_3e=Iu().selectOnClick,x3e=eG(),Ni=(od(),Tr(id)),t_=L2(),{unwrapLonRange:w3e}=t_,iG=U3(),A3e=C8().feature;function oG(e){this.id=e.id,this.graphDiv=e.graphDiv,this.container=e.container,this.topojsonURL=e.topojsonURL,this.isStatic=e.staticPlot,this.topojsonName=null,this.topojson=null,this.projection=null,this.scope=null,this.viewInitial=null,this.fitScale=null,this.bounds=null,this.midPt=null,this.hasChoropleth=!1,this.traceHash={},this.layers={},this.basePaths={},this.dataPaths={},this.dataPoints={},this.clipDef=null,this.clipRect=null,this.bgRect=null,this.makeFramework()}var ts=oG.prototype;lG.exports=function(r){return new oG(r)};ts.plot=function(e,r,t,a){var n=this;if(a)return n.update(e,r,!0);n._geoCalcData=e,n._fullLayout=r;var i=r[this.id],o=[],l=!1;for(var s in Ni.layerNameToAdjective)if(s!=="frame"&&i["show"+s]){l=!0;break}for(var u=!1,f=0;f0&&o._module.calcGeoJSON(i,r)}if(!t){var l=this.updateProjection(e,r);if(l)return;(!this.viewInitial||this.scope!==a.scope)&&this.saveViewInitial(a)}this.scope=a.scope,this.updateBaseLayers(r,a),this.updateDims(r,a),this.updateFx(r,a),m3e.generalUpdatePerTraceModule(this.graphDiv,this,e,a);var s=this.layers.frontplot.select(".scatterlayer");this.dataPoints.point=s.selectAll(".point"),this.dataPoints.text=s.selectAll("text"),this.dataPaths.line=s.selectAll(".js-line");var u=this.layers.backplot.select(".choroplethlayer");this.dataPaths.choropleth=u.selectAll("path"),this._render()};ts.updateProjection=function(e,r){var t=this.graphDiv,a=r[this.id],n=r._size,i=a.domain,o=a.projection,l=a.lonaxis,s=a.lataxis,u=l._ax,f=s._ax,c=this.projection=M3e(a),h=[[n.l+n.w*i.x[0],n.t+n.h*(1-i.y[1])],[n.l+n.w*i.x[1],n.t+n.h*(1-i.y[0])]],d=a.center||{},m=o.rotation||{},p=l.range||[],y=s.range||[];if(a.fitbounds){u._length=h[1][0]-h[0][0],f._length=h[1][1]-h[0][1],u.range=tG(t,u),f.range=tG(t,f);let H=[];for(let Ue of e){let ke=Ue[0].trace;ke.visible===!0&&ke._module.fitCoords&&H.push(ke._module.fitCoords(Ue,a))}let Q=g3e(t,u),oe=Q.min.reduce((Ue,{val:ke})=>Math.min(Ue,ke),1/0),te=Q.max.reduce((Ue,{val:ke})=>Math.max(Ue,ke),-1/0)-oe,ie=t_.boundsOfCoords(H.flat()),[ce,,Me]=ie||[],De=Me-ce;if(!!ie&&(te>360||te<360&&DeMath.max(J,Ue(ue)),0),W=Q.max.reduce((J,ue)=>Math.max(J,ke(ue)),0),ee=u._length-je-W,me=ee>u._length/10?De*u._length/ee:De,K=(ce+Me)/2;u.range=[K-me/2,K+me/2]}var b=(u.range[0]+u.range[1])/2,C=(f.range[0]+f.range[1])/2;if(a._isScoped)d={lon:b,lat:C};else if(a._isClipped){d={lon:b,lat:C},m={lon:b,lat:C,roll:m.roll};var x=o.type,_=Ni.lonaxisSpan[x]/2||180,M=Ni.lataxisSpan[x]/2||90;p=[b-_,b+_],y=[C-M,C+M]}else d={lon:b,lat:C},m={lon:b,lat:m.lat,roll:m.roll}}c.center([d.lon-m.lon,d.lat-m.lat]).rotate([-m.lon,-m.lat,m.roll]).parallels(o.parallels);var T=nG(p,y);c.fitExtent(h,T);var A=this.bounds=c.getBounds(T),E=this.fitScale=c.scale(),P=c.translate();if(c.scaleExtent=()=>{var oe;let{minscale:H}=o,Q=(oe=o.maxscale)!=null?oe:1/0;return[E*Math.min(H,Q),E*Math.max(H,Q)]},a.fitbounds){var z=c.getBounds(nG(u.range,f.range)),B=Math.min((A[1][0]-A[0][0])/(z[1][0]-z[0][0]),(A[1][1]-A[0][1])/(z[1][1]-z[0][1]));isFinite(B)?c.scale(B*E):cd.warn("Something went wrong during"+this.id+"fitbounds computations.")}else c.scale(o.scale*E);var X=this.midPt=[(A[0][0]+A[1][0])/2,(A[0][1]+A[1][1])/2];if(c.translate([P[0]+(X[0]-P[0]),P[1]+(X[1]-P[1])]).clipExtent(A),a._isAlbersUsa){var I=c([d.lon,d.lat]);if(I){var V=c.translate();c.translate([V[0]-(I[0]-V[0]),V[1]-(I[1]-V[1])])}}};ts.updateBaseLayers=function(e,r){var t=this,a=t.topojson,n=t.layers,i=t.basePaths;function o(h){return h==="lonaxis"||h==="lataxis"}function l(h){return!!Ni.lineLayers[h]}function s(h){return!!Ni.fillLayers[h]}var u=this.hasChoropleth?Ni.layersForChoropleth:Ni.layers,f=u.filter(function(h){return l(h)||s(h)?r["show"+h]:o(h)?r[h].showgrid:!0}),c=t.framework.selectAll(".layer").data(f,String);c.exit().each(function(h){delete n[h],delete i[h],js.select(this).remove()}),c.enter().append("g").attr("class",function(h){return"layer "+h}).each(function(h){var d=n[h]=js.select(this);h==="bg"?t.bgRect=d.append("rect").style("pointer-events","all"):o(h)?i[h]=d.append("path").style("fill","none"):h==="backplot"?d.append("g").classed("choroplethlayer",!0):h==="frontplot"?d.append("g").classed("scatterlayer",!0):l(h)?i[h]=d.append("path").style("fill","none").style("stroke-miterlimit",2):s(h)&&(i[h]=d.append("path").style("stroke","none"))}),c.order(),c.each(function(h){var d=i[h],m=Ni.layerNameToAdjective[h];h==="frame"?d.datum(Ni.sphereSVG):l(h)||s(h)?d.datum(A3e(a,a.objects[h])):o(h)&&d.datum(T3e(h,r,e)).call(sy.stroke,r[h].gridcolor).call(fd.dashLine,r[h].griddash,r[h].gridwidth),l(h)?d.call(sy.stroke,r[m+"color"]).call(fd.dashLine,"",r[m+"width"]):s(h)&&d.call(sy.fill,r[m+"color"])})};ts.updateDims=function(e,r){var t=this.bounds,a=(r.framewidth||0)/2,n=t[0][0]-a,i=t[0][1]-a,o=t[1][0]-n+a,l=t[1][1]-i+a;fd.setRect(this.clipRect,n,i,o,l),this.bgRect.call(fd.setRect,n,i,o,l).call(sy.fill,r.bgcolor),this.xaxis._offset=n,this.xaxis._length=o,this.yaxis._offset=i,this.yaxis._length=l};ts.updateFx=function(e,r){var t=this,a=t.graphDiv,n=t.bgRect,i=e.dragmode,o=e.clickmode;if(t.isStatic)return;function l(){var c=t.viewInitial,h={};for(var d in c)h[t.id+"."+d]=c[d];d3e.call("_guiRelayout",a,h),a.emit("plotly_doubleclick",null)}function s(c){return t.projection.invert([c[0]+t.xaxis._offset,c[1]+t.yaxis._offset])}var u=function(c,h){if(h.isRect){var d=c.range={};d[t.id]=[s([h.xmin,h.ymin]),s([h.xmax,h.ymax])]}else{var m=c.lassoPoints={};m[t.id]=h.map(s)}},f={element:t.bgRect.node(),gd:a,plotinfo:{id:t.id,xaxis:t.xaxis,yaxis:t.yaxis,fillRangeItems:u},xaxes:[t.xaxis],yaxes:[t.yaxis],subplot:t.id,clickFn:function(c){c===2&&b3e(a)}};if(i==="pan"){n.node().onmousedown=null;let c=x3e(t,r);if(n.call(c),!js.event){let h=t.projection.scale(),[d,m]=t.projection.scaleExtent();(hm)&&c.event(n)}n.on("dblclick.zoom",l),a._context._scrollZoom.geo||n.on("wheel.zoom",null)}else(i==="select"||i==="lasso")&&(n.on(".zoom",null),f.prepFn=function(c,h,d){y3e(c,h,d,f,i)},Q8.init(f));n.on("mousemove",function(){var c=t.projection.invert(cd.getPositionFromD3Event());if(!c)return Q8.unhover(a,js.event);t.xaxis.p2c=function(){return c[0]},t.yaxis.p2c=function(){return c[1]},rG.hover(a,js.event,t.id)}),n.on("mouseout",function(){a._dragging||Q8.unhover(a,js.event)}),n.on("click",function(){i!=="select"&&i!=="lasso"&&(o.indexOf("select")>-1&&_3e(js.event,a,[t.xaxis],[t.yaxis],t.id,f),o.indexOf("event")>-1&&rG.click(a,js.event))})};ts.makeFramework=function(){var e=this,r=e.graphDiv,t=r._fullLayout,a="clip"+t._uid+e.id;e.clipDef=t._clips.append("clipPath").attr("id",a),e.clipRect=e.clipDef.append("rect"),e.framework=js.select(e.container).append("g").attr("class","geo "+e.id).call(fd.setClipUrl,a,r),e.project=function(n){var i=e.projection(n);return i?[i[0]-e.xaxis._offset,i[1]-e.yaxis._offset]:[null,null]},e.xaxis={_id:"x",c2p:function(n){return e.project(n)[0]}},e.yaxis={_id:"y",c2p:function(n){return e.project(n)[1]}},e.mockAxis={type:"linear",showexponent:"all",exponentformat:"B"},e_.setConvert(e.mockAxis,t)};ts.saveViewInitial=function(e){var r=e.center||{},t=e.projection,a=t.rotation||{};this.viewInitial={fitbounds:e.fitbounds,"projection.scale":t.scale};var n;e._isScoped?n={"center.lon":r.lon,"center.lat":r.lat}:e._isClipped?n={"projection.rotation.lon":a.lon,"projection.rotation.lat":a.lat,"center.lon":r.lon,"center.lat":r.lat}:n={"center.lon":r.lon,"center.lat":r.lat,"projection.rotation.lon":a.lon},cd.extendFlat(this.viewInitial,n)};ts.render=function(e){this._hasMarkerAngles&&e?this.plot(this._geoCalcData,this._fullLayout,[],!0):this._render()};ts._render=function(){var e=this.projection,r=e.getPath(),t;function a(i){var o=e(i.lonlat);return o?p3e(o[0],o[1]):null}function n(i){return e.isLonLatOverEdges(i.lonlat)?"none":null}for(t in this.basePaths)this.basePaths[t].attr("d",r);for(t in this.dataPaths)this.dataPaths[t].attr("d",function(i){return r(i.geojson)});for(t in this.dataPoints)this.dataPoints[t].attr("display",n).attr("transform",a)};function M3e(e){var r=e.projection,t=r.type,a=Ni.projNames[t];a="geo"+cd.titleCase(a);for(var n=r_[a]||h3e[a],i=n(),o=e._isSatellite?Math.acos(1/r.distance)*180/Math.PI:e._isClipped?Ni.lonaxisSpan[t]/2:null,l=["center","rotate","parallels","clipExtent"],s=function(c){return c?i:[]},u=0;um}else return!1},i.getPath=function(){return c3e().projection(i)},i.getBounds=function(c){return i.getPath().bounds(c)},i.precision(Ni.precision),e._isSatellite&&i.tilt(r.tilt).distance(r.distance),o&&i.clipAngle(o-Ni.clipPad),i}function T3e(e,r,t){var a=1e-6,n=2.5,i=r[e],o=Ni.scopeDefaults[r.scope],l,s,u;e==="lonaxis"?(l=o.lonaxisRange,s=o.lataxisRange,u=function(C,x){return[C,x]}):e==="lataxis"&&(l=o.lataxisRange,s=o.lonaxisRange,u=function(C,x){return[x,C]});var f={type:"linear",range:[l[0],l[1]-a],tick0:i.tick0,dtick:i.dtick};e_.setConvert(f,t);var c=e_.calcTicks(f);!r.isScoped&&e==="lonaxis"&&c.pop();for(var h=c.length,d=new Array(h),m=0;m{"use strict";var R2=zl(),k3e=R3().attributes,C3e=Cs().dash,P2=(od(),Tr(id)),S3e=Yo().overrideAll,uG=(Tp(),Tr(Mp)).default,fG={range:{valType:"info_array",items:[{valType:"number"},{valType:"number"}]},showgrid:{valType:"boolean",dflt:!1},tick0:{valType:"number",dflt:0},dtick:{valType:"number"},gridcolor:{valType:"color",dflt:R2.lightLine},gridwidth:{valType:"number",min:0,dflt:1},griddash:C3e},D3e=cG.exports=S3e({domain:k3e({name:"geo"},{}),fitbounds:{valType:"enumerated",values:[!1,"locations","geojson"],dflt:"locations",editType:"plot"},resolution:{valType:"enumerated",values:[110,50],dflt:110,coerceNumber:!0},scope:{valType:"enumerated",values:uG(P2.scopeDefaults),dflt:"world"},projection:{type:{valType:"enumerated",values:uG(P2.projNames)},rotation:{lon:{valType:"number"},lat:{valType:"number"},roll:{valType:"number"}},tilt:{valType:"number",dflt:0},distance:{valType:"number",min:1.001,dflt:2},parallels:{valType:"info_array",items:[{valType:"number"},{valType:"number"}]},scale:{valType:"number",min:0,dflt:1},minscale:{valType:"number",min:0,dflt:0},maxscale:{valType:"number",min:0,dflt:null}},center:{lon:{valType:"number"},lat:{valType:"number"}},visible:{valType:"boolean",dflt:!0},showcoastlines:{valType:"boolean"},coastlinecolor:{valType:"color",dflt:R2.defaultLine},coastlinewidth:{valType:"number",min:0,dflt:1},showland:{valType:"boolean",dflt:!1},landcolor:{valType:"color",dflt:P2.landColor},showocean:{valType:"boolean",dflt:!1},oceancolor:{valType:"color",dflt:P2.waterColor},showlakes:{valType:"boolean",dflt:!1},lakecolor:{valType:"color",dflt:P2.waterColor},showrivers:{valType:"boolean",dflt:!1},rivercolor:{valType:"color",dflt:P2.waterColor},riverwidth:{valType:"number",min:0,dflt:1},showcountries:{valType:"boolean"},countrycolor:{valType:"color",dflt:R2.defaultLine},countrywidth:{valType:"number",min:0,dflt:1},showsubunits:{valType:"boolean"},subunitcolor:{valType:"color",dflt:R2.defaultLine},subunitwidth:{valType:"number",min:0,dflt:1},showframe:{valType:"boolean"},framecolor:{valType:"color",dflt:R2.defaultLine},framewidth:{valType:"number",min:0,dflt:1},bgcolor:{valType:"color",dflt:R2.background},lonaxis:fG,lataxis:fG},"plot","from-root");D3e.uirevision={valType:"any",editType:"none"}});var hG=le((W8e,vG)=>{"use strict";var F3e=mr(),E3e=ka(),L3e=R3().defaults;vG.exports=function(r,t,a,n){var i=n.type,o=n.attributes,l=n.handleDefaults,s=n.partition||"x",u=t._subplots[i],f=u.length,c=f&&u[0].replace(/\d+$/,""),h,d;function m(C,x){return F3e.coerce(h,d,o,C,x)}for(var p=0;p{"use strict";var uy=mr(),q3e=hG(),P3e=Rv().getSubplotData,{unwrapLonRange:R3e}=L2(),vd=(od(),Tr(id)),z3e=a_(),dG=vd.axesNames;pG.exports=function(r,t,a){q3e(r,t,a,{type:"geo",attributes:z3e,handleDefaults:N3e,fullData:a,partition:"y"})};function N3e(e,r,t,a){var n=P3e(a.fullData,"geo",a.id),i=n.map(function(ie){return ie.index}),o=t("resolution"),l=t("scope"),s=vd.scopeDefaults[l],u=t("projection.type",s.projType),f=r._isAlbersUsa=u==="albers usa";f&&(l=r.scope="usa");var c=r._isScoped=l!=="world",h=r._isSatellite=u==="satellite",d=r._isConic=u.indexOf("conic")!==-1||u==="albers",m=r._isClipped=!!vd.lonaxisSpan[u];if(e.visible===!1){var p=uy.extendDeep({},r._template);p.showcoastlines=!1,p.showcountries=!1,p.showframe=!1,p.showlakes=!1,p.showland=!1,p.showocean=!1,p.showrivers=!1,p.showsubunits=!1,p.lonaxis&&(p.lonaxis.showgrid=!1),p.lataxis&&(p.lataxis.showgrid=!1),r._template=p}for(var y=t("visible"),b,C=0;Cje[W]!=null)||vd.fitboundsIncompatible.has(u)?r.fitbounds=!1:Ue.forEach(({dst:je,key:W})=>je&&(je[W]=null))}}});var n_=le(($8e,bG)=>{"use strict";var B3e=Rv().getSubplotCalcData,I3e=mr().counterRegex,H3e=sG(),Ws="geo",gG=I3e(Ws),yG={};yG[Ws]={valType:"subplotid",dflt:Ws,editType:"calc"};function O3e(e){for(var r=e._fullLayout,t=e.calcdata,a=r._subplots[Ws],n=0;n{"use strict";_G.exports={attributes:nd(),supplyDefaults:GO(),colorbar:g9(),formatLabels:XO(),calc:JO(),calcGeoJSON:ny().calcGeoJSON,fitCoords:ny().fitCoords,plot:ny().plot,style:G8(),styleOnSelect:Gh().styleOnSelect,hoverPoints:HU(),eventData:UU(),selectPoints:VU(),moduleType:"trace",name:"scattergeo",basePlotModule:n_(),categories:["geo","symbols","showLegend","scatter-like"],meta:{}}});var AG=le((K8e,wG)=>{"use strict";wG.exports=xG()});var fy=le((Q8e,kG)=>{"use strict";var{hovertemplateAttrs:Y3e,templatefallbackAttrs:V3e}=Gf(),Q0=nd(),X3e=G1(),MG=Go(),j3e=zl().defaultLine,K0=Tn().extendFlat,TG=Q0.marker.line;kG.exports=K0({locations:{valType:"data_array",editType:"calc"},locationmode:Q0.locationmode,z:{valType:"data_array",editType:"calc"},geojson:K0({},Q0.geojson,{}),featureidkey:Q0.featureidkey,text:K0({},Q0.text,{}),hovertext:K0({},Q0.hovertext,{}),marker:{line:{color:K0({},TG.color,{dflt:j3e}),width:K0({},TG.width,{dflt:1}),editType:"calc"},opacity:{valType:"number",arrayOk:!0,min:0,max:1,dflt:1,editType:"style"},editType:"calc"},selected:{marker:{opacity:Q0.selected.marker.opacity,editType:"plot"},editType:"plot"},unselected:{marker:{opacity:Q0.unselected.marker.opacity,editType:"plot"},editType:"plot"},hoverinfo:K0({},MG.hoverinfo,{editType:"calc",flags:["location","z","text","name"]}),hovertemplate:Y3e(),hovertemplatefallback:V3e(),showlegend:K0({},MG.showlegend,{dflt:!1})},X3e("",{cLetter:"z",editTypeOverride:"calc"}))});var SG=le((e_e,CG)=>{"use strict";var cy=mr(),W3e=Y1(),Z3e=fy();CG.exports=function(r,t,a,n){function i(h,d){return cy.coerce(r,t,Z3e,h,d)}var o=i("locations"),l=i("z");if(!(o&&o.length&&cy.isArrayOrTypedArray(l)&&l.length)){t.visible=!1;return}t._length=Math.min(o.length,l.length);var s=i("geojson"),u;(typeof s=="string"&&s!==""||cy.isPlainObject(s))&&(u="geojson-id");var f=i("locationmode",u);f==="geojson-id"&&i("featureidkey"),i("text"),i("hovertext"),i("hovertemplate"),i("hovertemplatefallback");var c=i("marker.line.width");c&&i("marker.line.color"),i("marker.opacity"),W3e(r,t,n,i,{prefix:"",cLetter:"z"}),cy.coerceSelectionMarkerOpacity(t,i)}});var FG=le((r_e,DG)=>{"use strict";DG.exports={min:"zmin",max:"zmax"}});var PG=le((t_e,qG)=>{"use strict";var EG=Wt(),$3e=(Ya(),Tr($a)).BADNUM,J3e=Jp(),K3e=Bh(),Q3e=$g();function LG(e){return e&&typeof e=="string"}qG.exports=function(r,t){var a=t._length,n=new Array(a),i;t.geojson?i=function(f){return LG(f)||EG(f)}:i=LG;for(var o=0;o{"use strict";var eye=Ft(),rye=qt(),i_=ha(),tye=Qp();function aye(e,r){r&&RG(e,r)}function RG(e,r){var t=r[0].trace,a=r[0].node3,n=a.selectAll(".choroplethlocation"),i=t.marker||{},o=i.line||{},l=tye.makeColorScaleFuncFromTrace(t);n.each(function(s){eye.select(this).attr("fill",l(s.z)).call(rye.stroke,s.mlc||o.color).call(i_.dashLine,"",s.mlw||o.width||0).style("opacity",i.opacity)}),i_.selectedPointStyle(n,t)}function nye(e,r){var t=r[0].node3,a=r[0].trace;a.selectedpoints?i_.selectedPointStyle(t.selectAll(".choroplethlocation"),a):RG(e,r)}zG.exports={style:aye,styleOnSelect:nye}});var hy=le((n_e,IG)=>{"use strict";var iye=Ft(),NG=mr(),Pc=L2(),oye=U3().getTopojsonFeatures,BG=L0().findExtremes,lye=vy().style;function sye(e,r,t){var a=r.layers.backplot.select(".choroplethlayer");NG.makeTraceGroups(a,t,"trace choropleth").each(function(n){var i=iye.select(this),o=i.selectAll("path.choroplethlocation").data(NG.identity);o.enter().append("path").classed("choroplethlocation",!0),o.exit().remove(),lye(e,n)})}function uye(e,r){var t=e[0].trace,a=r[t.geo],n=a._subplot,i=t.locationmode,o=t._length,l=i==="geojson-id"?Pc.extractTraceFeature(e):oye(t,n.topojson);let s=Pc.fitGeojsonBbox(t,a);for(var u=[],f=[],c=0;c{"use strict";var cye=Oa(),vye=fy(),hye=mr().fillText,{ANTIMERIDIAN_LON_SHIFT:dye}=L2();HG.exports=function(r,t,a){var n=r.cd,i=n[0].trace,o=r.subplot,l,s,u,f,c=[t,a];let h=[t+dye,a];for(s=0;s")}}});var GG=le((o_e,UG)=>{"use strict";UG.exports=function(r,t,a,n,i){r.location=t.location,r.z=t.z;var o=n[i];return o.fIn&&o.fIn.properties&&(r.properties=o.fIn.properties),r.ct=o.ct,r}});var VG=le((l_e,YG)=>{"use strict";YG.exports=function(r,t){var a=r.cd,n=r.xaxis,i=r.yaxis,o=[],l,s,u,f,c;if(t===!1)for(l=0;l{"use strict";XG.exports={attributes:fy(),supplyDefaults:SG(),colorbar:FG(),calc:PG(),calcGeoJSON:hy().calcGeoJSON,fitCoords:hy().fitCoords,plot:hy().plot,style:vy().style,styleOnSelect:vy().styleOnSelect,hoverPoints:OG(),eventData:GG(),selectPoints:VG(),moduleType:"trace",name:"choropleth",basePlotModule:n_(),categories:["geo","noOpacity","showLegend"],meta:{}}});var ZG=le((u_e,WG)=>{"use strict";WG.exports=jG()});var ci=le((f_e,JG)=>{"use strict";var $G=Object.getOwnPropertySymbols,mye=Object.prototype.hasOwnProperty,gye=Object.prototype.propertyIsEnumerable;function yye(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function bye(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var r={},t=0;t<10;t++)r["_"+String.fromCharCode(t)]=t;var a=Object.getOwnPropertyNames(r).map(function(i){return r[i]});if(a.join("")!=="0123456789")return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach(function(i){n[i]=i}),Object.keys(Object.assign({},n)).join("")==="abcdefghijklmnopqrst"}catch(i){return!1}}JG.exports=bye()?Object.assign:function(e,r){for(var t,a=yye(e),n,i=1;i{var py=ci();function KG(){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={}}py(KG.prototype,{instance:function(e,r){e=(e||"gregorian").toLowerCase(),r=r||"";var t=this._localCals[e+"-"+r];if(!t&&this.calendars[e]&&(t=new this.calendars[e](r),this._localCals[e+"-"+r]=t),!t)throw(this.local.invalidCalendar||this.regionalOptions[""].invalidCalendar).replace(/\{0\}/,e);return t},newDate:function(e,r,t,a,n){return a=(e!=null&&e.year?e.calendar():typeof a=="string"?this.instance(a,n):a)||this.instance(),a.newDate(e,r,t)},substituteDigits:function(e){return function(r){return(r+"").replace(/[0-9]/g,function(t){return e[t]})}},substituteChineseDigits:function(e,r){return function(t){for(var a="",n=0;t>0;){var i=t%10;a=(i===0?"":e[i]+r[n])+a,n++,t=Math.floor(t/10)}return a.indexOf(e[1]+r[1])===0&&(a=a.substr(1)),a||e[0]}}});function o_(e,r,t,a){if(this._calendar=e,this._year=r,this._month=t,this._day=a,this._calendar._validateLevel===0&&!this._calendar.isValid(this._year,this._month,this._day))throw(Et.local.invalidDate||Et.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name)}function dy(e,r){return e=""+e,"000000".substring(0,r-e.length)+e}py(o_.prototype,{newDate:function(e,r,t){return this._calendar.newDate(e==null?this:e,r,t)},year:function(e){return arguments.length===0?this._year:this.set(e,"y")},month:function(e){return arguments.length===0?this._month:this.set(e,"m")},day:function(e){return arguments.length===0?this._day:this.set(e,"d")},date:function(e,r,t){if(!this._calendar.isValid(e,r,t))throw(Et.local.invalidDate||Et.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name);return this._year=e,this._month=r,this._day=t,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(e,r){return this._calendar.add(this,e,r)},set:function(e,r){return this._calendar.set(this,e,r)},compareTo:function(e){if(this._calendar.name!==e._calendar.name)throw(Et.local.differentCalendars||Et.regionalOptions[""].differentCalendars).replace(/\{0\}/,this._calendar.local.name).replace(/\{1\}/,e._calendar.local.name);var r=this._year!==e._year?this._year-e._year:this._month!==e._month?this.monthOfYear()-e.monthOfYear():this._day-e._day;return r===0?0:r<0?-1:1},calendar:function(){return this._calendar},toJD:function(){return this._calendar.toJD(this)},fromJD:function(e){return this._calendar.fromJD(e)},toJSDate:function(){return this._calendar.toJSDate(this)},fromJSDate:function(e){return this._calendar.fromJSDate(e)},toString:function(){return(this.year()<0?"-":"")+dy(Math.abs(this.year()),4)+"-"+dy(this.month(),2)+"-"+dy(this.day(),2)}});function l_(){this.shortYearCutoff="+10"}py(l_.prototype,{_validateLevel:0,newDate:function(e,r,t){return e==null?this.today():(e.year&&(this._validate(e,r,t,Et.local.invalidDate||Et.regionalOptions[""].invalidDate),t=e.day(),r=e.month(),e=e.year()),new o_(this,e,r,t))},today:function(){return this.fromJSDate(new Date)},epoch:function(e){var r=this._validate(e,this.minMonth,this.minDay,Et.local.invalidYear||Et.regionalOptions[""].invalidYear);return r.year()<0?this.local.epochs[0]:this.local.epochs[1]},formatYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Et.local.invalidYear||Et.regionalOptions[""].invalidYear);return(r.year()<0?"-":"")+dy(Math.abs(r.year()),4)},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Et.local.invalidYear||Et.regionalOptions[""].invalidYear),12},monthOfYear:function(e,r){var t=this._validate(e,r,this.minDay,Et.local.invalidMonth||Et.regionalOptions[""].invalidMonth);return(t.month()+this.monthsInYear(t)-this.firstMonth)%this.monthsInYear(t)+this.minMonth},fromMonthOfYear:function(e,r){var t=(r+this.firstMonth-2*this.minMonth)%this.monthsInYear(e)+this.minMonth;return this._validate(e,t,this.minDay,Et.local.invalidMonth||Et.regionalOptions[""].invalidMonth),t},daysInYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Et.local.invalidYear||Et.regionalOptions[""].invalidYear);return this.leapYear(r)?366:365},dayOfYear:function(e,r,t){var a=this._validate(e,r,t,Et.local.invalidDate||Et.regionalOptions[""].invalidDate);return a.toJD()-this.newDate(a.year(),this.fromMonthOfYear(a.year(),this.minMonth),this.minDay).toJD()+1},daysInWeek:function(){return 7},dayOfWeek:function(e,r,t){var a=this._validate(e,r,t,Et.local.invalidDate||Et.regionalOptions[""].invalidDate);return(Math.floor(this.toJD(a))+2)%this.daysInWeek()},extraInfo:function(e,r,t){return this._validate(e,r,t,Et.local.invalidDate||Et.regionalOptions[""].invalidDate),{}},add:function(e,r,t){return this._validate(e,this.minMonth,this.minDay,Et.local.invalidDate||Et.regionalOptions[""].invalidDate),this._correctAdd(e,this._add(e,r,t),r,t)},_add:function(e,r,t){if(this._validateLevel++,t==="d"||t==="w"){var a=e.toJD()+r*(t==="w"?this.daysInWeek():1),n=e.calendar().fromJD(a);return this._validateLevel--,[n.year(),n.month(),n.day()]}try{var i=e.year()+(t==="y"?r:0),o=e.monthOfYear()+(t==="m"?r:0),n=e.day(),l=function(f){for(;oc-1+f.minMonth;)i++,o-=c,c=f.monthsInYear(i)};t==="y"?(e.month()!==this.fromMonthOfYear(i,o)&&(o=this.newDate(i,e.month(),this.minDay).monthOfYear()),o=Math.min(o,this.monthsInYear(i)),n=Math.min(n,this.daysInMonth(i,this.fromMonthOfYear(i,o)))):t==="m"&&(l(this),n=Math.min(n,this.daysInMonth(i,this.fromMonthOfYear(i,o))));var s=[i,this.fromMonthOfYear(i,o),n];return this._validateLevel--,s}catch(u){throw this._validateLevel--,u}},_correctAdd:function(e,r,t,a){if(!this.hasYearZero&&(a==="y"||a==="m")&&(r[0]===0||e.year()>0!=r[0]>0)){var n={y:[1,1,"y"],m:[1,this.monthsInYear(-1),"m"],w:[this.daysInWeek(),this.daysInYear(-1),"d"],d:[1,this.daysInYear(-1),"d"]}[a],i=t<0?-1:1;r=this._add(e,t*n[0]+i*n[1],n[2])}return e.date(r[0],r[1],r[2])},set:function(e,r,t){this._validate(e,this.minMonth,this.minDay,Et.local.invalidDate||Et.regionalOptions[""].invalidDate);var a=t==="y"?r:e.year(),n=t==="m"?r:e.month(),i=t==="d"?r:e.day();return(t==="y"||t==="m")&&(i=Math.min(i,this.daysInMonth(a,n))),e.date(a,n,i)},isValid:function(e,r,t){this._validateLevel++;var a=this.hasYearZero||e!==0;if(a){var n=this.newDate(e,r,this.minDay);a=r>=this.minMonth&&r-this.minMonth=this.minDay&&t-this.minDay13.5?13:1),u=n-(s>2.5?4716:4715);return u<=0&&u--,this.newDate(u,s,l)},toJSDate:function(e,r,t){var a=this._validate(e,r,t,Et.local.invalidDate||Et.regionalOptions[""].invalidDate),n=new Date(a.year(),a.month()-1,a.day());return n.setHours(0),n.setMinutes(0),n.setSeconds(0),n.setMilliseconds(0),n.setHours(n.getHours()>12?n.getHours()+2:0),n},fromJSDate:function(e){return this.newDate(e.getFullYear(),e.getMonth()+1,e.getDate())}});var Et=QG.exports=new KG;Et.cdate=o_;Et.baseCalendar=l_;Et.calendars.gregorian=s_});var eY=le(()=>{var u_=ci(),jn=vi();u_(jn.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"});jn.local=jn.regionalOptions[""];u_(jn.cdate.prototype,{formatDate:function(e,r){return typeof e!="string"&&(r=e,e=""),this._calendar.formatDate(e||"",this,r)}});u_(jn.baseCalendar.prototype,{UNIX_EPOCH:jn.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:1440*60,TICKS_EPOCH:jn.instance().jdEpoch,TICKS_PER_DAY:1440*60*1e7,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(e,r,t){if(typeof e!="string"&&(t=r,r=e,e=""),!r)return"";if(r.calendar()!==this)throw jn.local.invalidFormat||jn.regionalOptions[""].invalidFormat;e=e||this.local.dateFormat,t=t||{};for(var a=t.dayNamesShort||this.local.dayNamesShort,n=t.dayNames||this.local.dayNames,i=t.monthNumbers||this.local.monthNumbers,o=t.monthNamesShort||this.local.monthNamesShort,l=t.monthNames||this.local.monthNames,s=t.calculateWeek||this.local.calculateWeek,u=function(_,M){for(var T=1;x+T1},f=function(_,M,T,A){var E=""+M;if(u(_,A))for(;E.length1},C=function(X,I){var V=b(X,I),H=[2,3,V?4:2,V?4:2,10,11,20]["oyYJ@!".indexOf(X)+1],Q=new RegExp("^-?\\d{1,"+H+"}"),oe=r.substring(E).match(Q);if(!oe)throw(jn.local.missingNumberAt||jn.regionalOptions[""].missingNumberAt).replace(/\{0\}/,E);return E+=oe[0].length,parseInt(oe[0],10)},x=this,_=function(){if(typeof l=="function"){b("m");var X=l.call(x,r.substring(E));return E+=X.length,X}return C("m")},M=function(X,I,V,H){for(var Q=b(X,H)?V:I,oe=0;oe-1){h=1,d=m;for(var B=this.daysInMonth(c,h);d>B;B=this.daysInMonth(c,h))h++,d-=B}return f>-1?this.fromJD(f):this.newDate(c,h,d)},determineDate:function(e,r,t,a,n){t&&typeof t!="object"&&(n=a,a=t,t=null),typeof a!="string"&&(n=a,a="");var i=this,o=function(l){try{return i.parseDate(a,l,n)}catch(c){}l=l.toLowerCase();for(var s=(l.match(/^c/)&&t?t.newDate():null)||i.today(),u=/([+-]?[0-9]+)\s*(d|w|m|y)?/g,f=u.exec(l);f;)s.add(parseInt(f[1],10),f[2]||"d"),f=u.exec(l);return s};return r=r?r.newDate():null,e=e==null?r:typeof e=="string"?o(e):typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?r:i.today().add(e,"d"):i.newDate(e),e}})});var rY=le(()=>{var ef=vi(),_ye=ci(),f_=ef.instance();function my(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}my.prototype=new ef.baseCalendar;_ye(my.prototype,{name:"Chinese",jdEpoch:17214255e-1,hasYearZero:!1,minMonth:0,firstMonth:0,minDay:1,regionalOptions:{"":{name:"Chinese",epochs:["BEC","EC"],monthNumbers:function(e,r){if(typeof e=="string"){var t=e.match(wye);return t?t[0]:""}var a=this._validateYear(e),n=e.month(),i=""+this.toChineseMonth(a,n);return r&&i.length<2&&(i="0"+i),this.isIntercalaryMonth(a,n)&&(i+="i"),i},monthNames:function(e){if(typeof e=="string"){var r=e.match(Aye);return r?r[0]:""}var t=this._validateYear(e),a=e.month(),n=this.toChineseMonth(t,a),i=["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"][n-1];return this.isIntercalaryMonth(t,a)&&(i="\u95F0"+i),i},monthNamesShort:function(e){if(typeof e=="string"){var r=e.match(Mye);return r?r[0]:""}var t=this._validateYear(e),a=e.month(),n=this.toChineseMonth(t,a),i=["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"][n-1];return this.isIntercalaryMonth(t,a)&&(i="\u95F0"+i),i},parseMonth:function(e,r){e=this._validateYear(e);var t=parseInt(r),a;if(isNaN(t))r[0]==="\u95F0"&&(a=!0,r=r.substring(1)),r[r.length-1]==="\u6708"&&(r=r.substring(0,r.length-1)),t=1+["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"].indexOf(r);else{var n=r[r.length-1];a=n==="i"||n==="I"}var i=this.toMonthIndex(e,t,a);return i},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(e,r){if(e.year&&(e=e.year()),typeof e!="number"||e<1888||e>2111)throw r.replace(/\{0\}/,this.local.name);return e},toMonthIndex:function(e,r,t){var a=this.intercalaryMonth(e),n=t&&r!==a;if(n||r<1||r>12)throw ef.local.invalidMonth.replace(/\{0\}/,this.local.name);var i;return a?!t&&r<=a?i=r-1:i=r:i=r-1,i},toChineseMonth:function(e,r){e.year&&(e=e.year(),r=e.month());var t=this.intercalaryMonth(e),a=t?12:11;if(r<0||r>a)throw ef.local.invalidMonth.replace(/\{0\}/,this.local.name);var n;return t?r>13;return t},isIntercalaryMonth:function(e,r){e.year&&(e=e.year(),r=e.month());var t=this.intercalaryMonth(e);return!!t&&t===r},leapYear:function(e){return this.intercalaryMonth(e)!==0},weekOfYear:function(e,r,t){var a=this._validateYear(e,ef.local.invalidyear),n=tf[a-tf[0]],i=n>>9&4095,o=n>>5&15,l=n&31,s;s=f_.newDate(i,o,l),s.add(4-(s.dayOfWeek()||7),"d");var u=this.toJD(e,r,t)-s.toJD();return 1+Math.floor(u/7)},monthsInYear:function(e){return this.leapYear(e)?13:12},daysInMonth:function(e,r){e.year&&(r=e.month(),e=e.year()),e=this._validateYear(e);var t=rf[e-rf[0]],a=t>>13,n=a?12:11;if(r>n)throw ef.local.invalidMonth.replace(/\{0\}/,this.local.name);var i=t&1<<12-r?30:29;return i},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var a=this._validate(e,i,t,ef.local.invalidDate);e=this._validateYear(a.year()),r=a.month(),t=a.day();var n=this.isIntercalaryMonth(e,r),i=this.toChineseMonth(e,r),o=kye(e,i,t,n);return f_.toJD(o.year,o.month,o.day)},fromJD:function(e){var r=f_.fromJD(e),t=Tye(r.year(),r.month(),r.day()),a=this.toMonthIndex(t.year,t.month,t.isIntercalary);return this.newDate(t.year,a,t.day)},fromString:function(e){var r=e.match(xye),t=this._validateYear(+r[1]),a=+r[2],n=!!r[3],i=this.toMonthIndex(t,a,n),o=+r[4];return this.newDate(t,i,o)},add:function(e,r,t){var a=e.year(),n=e.month(),i=this.isIntercalaryMonth(a,n),o=this.toChineseMonth(a,n),l=Object.getPrototypeOf(my.prototype).add.call(this,e,r,t);if(t==="y"){var s=l.year(),u=l.month(),f=this.isIntercalaryMonth(s,o),c=i&&f?this.toMonthIndex(s,o,!0):this.toMonthIndex(s,o,!1);c!==u&&l.month(c)}return l}});var xye=/^\s*(-?\d\d\d\d|\d\d)[-/](\d?\d)([iI]?)[-/](\d?\d)/m,wye=/^\d?\d[iI]?/m,Aye=/^闰?十?[一二三四五六七八九]?月/m,Mye=/^闰?十?[一二三四五六七八九]?/m;ef.calendars.chinese=my;var rf=[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],tf=[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 Tye(e,r,t,a){var n,i;if(typeof e=="object")n=e,i=r||{};else{var o=typeof e=="number"&&e>=1888&&e<=2111;if(!o)throw new Error("Solar year outside range 1888-2111");var l=typeof r=="number"&&r>=1&&r<=12;if(!l)throw new Error("Solar month outside range 1 - 12");var s=typeof t=="number"&&t>=1&&t<=31;if(!s)throw new Error("Solar day outside range 1 - 31");n={year:e,month:r,day:t},i=a||{}}var u=tf[n.year-tf[0]],f=n.year<<9|n.month<<5|n.day;i.year=f>=u?n.year:n.year-1,u=tf[i.year-tf[0]];var c=u>>9&4095,h=u>>5&15,d=u&31,m,p=new Date(c,h-1,d),y=new Date(n.year,n.month-1,n.day);m=Math.round((y-p)/(24*3600*1e3));var b=rf[i.year-rf[0]],C;for(C=0;C<13;C++){var x=b&1<<12-C?30:29;if(m>13;return!_||C<_?(i.isIntercalary=!1,i.month=1+C):C===_?(i.isIntercalary=!0,i.month=C):(i.isIntercalary=!1,i.month=C),i.day=1+m,i}function kye(e,r,t,a,n){var i,o;if(typeof e=="object")o=e,i=r||{};else{var l=typeof e=="number"&&e>=1888&&e<=2111;if(!l)throw new Error("Lunar year outside range 1888-2111");var s=typeof r=="number"&&r>=1&&r<=12;if(!s)throw new Error("Lunar month outside range 1 - 12");var u=typeof t=="number"&&t>=1&&t<=30;if(!u)throw new Error("Lunar day outside range 1 - 30");var f;typeof a=="object"?(f=!1,i=a):(f=!!a,i=n||{}),o={year:e,month:r,day:t,isIntercalary:f}}var c;c=o.day-1;var h=rf[o.year-rf[0]],d=h>>13,m;d&&(o.month>d||o.isIntercalary)?m=o.month:m=o.month-1;for(var p=0;p>9&4095,x=b>>5&15,_=b&31,M=new Date(C,x-1,_+c);return i.year=M.getFullYear(),i.month=1+M.getMonth(),i.day=M.getDate(),i}});var tY=le(()=>{var Rc=vi(),Cye=ci();function c_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}c_.prototype=new Rc.baseCalendar;Cye(c_.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(t){var r=this._validate(t,this.minMonth,this.minDay,Rc.local.invalidYear),t=r.year()+(r.year()<0?1:0);return t%4===3||t%4===-1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Rc.local.invalidYear||Rc.regionalOptions[""].invalidYear),13},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Rc.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===13&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var a=this._validate(e,r,t,Rc.local.invalidDate);return e=a.year(),e<0&&e++,a.day()+(a.month()-1)*30+(e-1)*365+Math.floor(e/4)+this.jdEpoch-1},fromJD:function(e){var r=Math.floor(e)+.5-this.jdEpoch,t=Math.floor((r-Math.floor((r+366)/1461))/365)+1;t<=0&&t--,r=Math.floor(e)+.5-this.newDate(t,1,1).toJD();var a=Math.floor(r/30)+1,n=r-(a-1)*30+1;return this.newDate(t,a,n)}});Rc.calendars.coptic=c_});var aY=le(()=>{var Xu=vi(),Sye=ci();function v_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}v_.prototype=new Xu.baseCalendar;Sye(v_.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(e){return this._validate(e,this.minMonth,this.minDay,Xu.local.invalidYear),!1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Xu.local.invalidYear),13},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Xu.local.invalidYear),400},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/8)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Xu.local.invalidMonth);return this.daysPerMonth[t.month()-1]},daysInWeek:function(){return 8},dayOfWeek:function(e,r,t){var a=this._validate(e,r,t,Xu.local.invalidDate);return(a.day()+1)%8},weekDay:function(e,r,t){var a=this.dayOfWeek(e,r,t);return a>=2&&a<=6},extraInfo:function(e,r,t){var a=this._validate(e,r,t,Xu.local.invalidDate);return{century:Dye[Math.floor((a.year()-1)/100)+1]||""}},toJD:function(e,r,t){var a=this._validate(e,r,t,Xu.local.invalidDate);return e=a.year()+(a.year()<0?1:0),r=a.month(),t=a.day(),t+(r>1?16:0)+(r>2?(r-2)*32:0)+(e-1)*400+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e+.5)-Math.floor(this.jdEpoch)-1;var r=Math.floor(e/400)+1;e-=(r-1)*400,e+=e>15?16:0;var t=Math.floor(e/32)+1,a=e-(t-1)*32+1;return this.newDate(r<=0?r-1:r,t,a)}});var Dye={20:"Fruitbat",21:"Anchovy"};Xu.calendars.discworld=v_});var nY=le(()=>{var zc=vi(),Fye=ci();function h_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}h_.prototype=new zc.baseCalendar;Fye(h_.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(t){var r=this._validate(t,this.minMonth,this.minDay,zc.local.invalidYear),t=r.year()+(r.year()<0?1:0);return t%4===3||t%4===-1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,zc.local.invalidYear||zc.regionalOptions[""].invalidYear),13},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,zc.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===13&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var a=this._validate(e,r,t,zc.local.invalidDate);return e=a.year(),e<0&&e++,a.day()+(a.month()-1)*30+(e-1)*365+Math.floor(e/4)+this.jdEpoch-1},fromJD:function(e){var r=Math.floor(e)+.5-this.jdEpoch,t=Math.floor((r-Math.floor((r+366)/1461))/365)+1;t<=0&&t--,r=Math.floor(e)+.5-this.newDate(t,1,1).toJD();var a=Math.floor(r/30)+1,n=r-(a-1)*30+1;return this.newDate(t,a,n)}});zc.calendars.ethiopian=h_});var iY=le(()=>{var af=vi(),Eye=ci();function d_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}d_.prototype=new af.baseCalendar;Eye(d_.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(e){var r=this._validate(e,this.minMonth,this.minDay,af.local.invalidYear);return this._leapYear(r.year())},_leapYear:function(e){return e=e<0?e+1:e,gy(e*7+1,19)<7},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,af.local.invalidYear),this._leapYear(e.year?e.year():e)?13:12},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,af.local.invalidYear);return e=r.year(),this.toJD(e===-1?1:e+1,7,1)-this.toJD(e,7,1)},daysInMonth:function(e,r){return e.year&&(r=e.month(),e=e.year()),this._validate(e,r,this.minDay,af.local.invalidMonth),r===12&&this.leapYear(e)||r===8&&gy(this.daysInYear(e),10)===5?30:r===9&&gy(this.daysInYear(e),10)===3?29:this.daysPerMonth[r-1]},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==6},extraInfo:function(e,r,t){var a=this._validate(e,r,t,af.local.invalidDate);return{yearType:(this.leapYear(a)?"embolismic":"common")+" "+["deficient","regular","complete"][this.daysInYear(a)%10-3]}},toJD:function(e,r,t){var a=this._validate(e,r,t,af.local.invalidDate);e=a.year(),r=a.month(),t=a.day();var n=e<=0?e+1:e,i=this.jdEpoch+this._delay1(n)+this._delay2(n)+t+1;if(r<7){for(var o=7;o<=this.monthsInYear(e);o++)i+=this.daysInMonth(e,o);for(var o=1;o=this.toJD(r===-1?1:r+1,7,1);)r++;for(var t=ethis.toJD(r,t,this.daysInMonth(r,t));)t++;var a=e-this.toJD(r,t,1)+1;return this.newDate(r,t,a)}});function gy(e,r){return e-r*Math.floor(e/r)}af.calendars.hebrew=d_});var oY=le(()=>{var hd=vi(),Lye=ci();function p_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}p_.prototype=new hd.baseCalendar;Lye(p_.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\u012Bs","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(e){var r=this._validate(e,this.minMonth,this.minDay,hd.local.invalidYear);return(r.year()*11+14)%30<11},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInYear:function(e){return this.leapYear(e)?355:354},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,hd.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===12&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==5},toJD:function(e,r,t){var a=this._validate(e,r,t,hd.local.invalidDate);return e=a.year(),r=a.month(),t=a.day(),e=e<=0?e+1:e,t+Math.ceil(29.5*(r-1))+(e-1)*354+Math.floor((3+11*e)/30)+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e)+.5;var r=Math.floor((30*(e-this.jdEpoch)+10646)/10631);r=r<=0?r-1:r;var t=Math.min(12,Math.ceil((e-29-this.toJD(r,1,1))/29.5)+1),a=e-this.toJD(r,t,1)+1;return this.newDate(r,t,a)}});hd.calendars.islamic=p_});var lY=le(()=>{var dd=vi(),qye=ci();function m_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}m_.prototype=new dd.baseCalendar;qye(m_.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(t){var r=this._validate(t,this.minMonth,this.minDay,dd.local.invalidYear),t=r.year()<0?r.year()+1:r.year();return t%4===0},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(4-(a.dayOfWeek()||7),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,dd.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===2&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var a=this._validate(e,r,t,dd.local.invalidDate);return e=a.year(),r=a.month(),t=a.day(),e<0&&e++,r<=2&&(e--,r+=12),Math.floor(365.25*(e+4716))+Math.floor(30.6001*(r+1))+t-1524.5},fromJD:function(e){var r=Math.floor(e+.5),t=r+1524,a=Math.floor((t-122.1)/365.25),n=Math.floor(365.25*a),i=Math.floor((t-n)/30.6001),o=i-Math.floor(i<14?1:13),l=a-Math.floor(o>2?4716:4715),s=t-n-Math.floor(30.6001*i);return l<=0&&l--,this.newDate(l,o,s)}});dd.calendars.julian=m_});var uY=le(()=>{var cl=vi(),Pye=ci();function y_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}y_.prototype=new cl.baseCalendar;Pye(y_.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(e){return this._validate(e,this.minMonth,this.minDay,cl.local.invalidYear),!1},formatYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,cl.local.invalidYear);e=r.year();var t=Math.floor(e/400);e=e%400,e+=e<0?400:0;var a=Math.floor(e/20);return t+"."+a+"."+e%20},forYear:function(e){if(e=e.split("."),e.length<3)throw"Invalid Mayan year";for(var r=0,t=0;t19||t>0&&a<0)throw"Invalid Mayan year";r=r*20+a}return r},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,cl.local.invalidYear),18},weekOfYear:function(e,r,t){return this._validate(e,r,t,cl.local.invalidDate),0},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,cl.local.invalidYear),360},daysInMonth:function(e,r){return this._validate(e,r,this.minDay,cl.local.invalidMonth),20},daysInWeek:function(){return 5},dayOfWeek:function(e,r,t){var a=this._validate(e,r,t,cl.local.invalidDate);return a.day()},weekDay:function(e,r,t){return this._validate(e,r,t,cl.local.invalidDate),!0},extraInfo:function(e,r,t){var a=this._validate(e,r,t,cl.local.invalidDate),n=a.toJD(),i=this._toHaab(n),o=this._toTzolkin(n);return{haabMonthName:this.local.haabMonths[i[0]-1],haabMonth:i[0],haabDay:i[1],tzolkinDayName:this.local.tzolkinMonths[o[0]-1],tzolkinDay:o[0],tzolkinTrecena:o[1]}},_toHaab:function(e){e-=this.jdEpoch;var r=g_(e+8+340,365);return[Math.floor(r/20)+1,g_(r,20)]},_toTzolkin:function(e){return e-=this.jdEpoch,[sY(e+20,20),sY(e+4,13)]},toJD:function(e,r,t){var a=this._validate(e,r,t,cl.local.invalidDate);return a.day()+a.month()*20+a.year()*360+this.jdEpoch},fromJD:function(e){e=Math.floor(e)+.5-this.jdEpoch;var r=Math.floor(e/360);e=e%360,e+=e<0?360:0;var t=Math.floor(e/20),a=e%20;return this.newDate(r,t,a)}});function g_(e,r){return e-r*Math.floor(e/r)}function sY(e,r){return g_(e-1,r)+1}cl.calendars.mayan=y_});var cY=le(()=>{var Nc=vi(),Rye=ci();function b_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}b_.prototype=new Nc.baseCalendar;var fY=Nc.instance("gregorian");Rye(b_.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(e){var r=this._validate(e,this.minMonth,this.minDay,Nc.local.invalidYear||Nc.regionalOptions[""].invalidYear);return fY.leapYear(r.year()+(r.year()<1?1:0)+1469)},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(1-(a.dayOfWeek()||7),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Nc.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===12&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(n,r,t){var a=this._validate(n,r,t,Nc.local.invalidMonth),n=a.year();n<0&&n++;for(var i=a.day(),o=1;o=this.toJD(r+1,1,1);)r++;for(var t=e-Math.floor(this.toJD(r,1,1)+.5)+1,a=1;t>this.daysInMonth(r,a);)t-=this.daysInMonth(r,a),a++;return this.newDate(r,a,t)}});Nc.calendars.nanakshahi=b_});var vY=le(()=>{var Bc=vi(),zye=ci();function __(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}__.prototype=new Bc.baseCalendar;zye(__.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(e){return this.daysInYear(e)!==this.daysPerYear},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Bc.local.invalidYear);if(e=r.year(),typeof this.NEPALI_CALENDAR_DATA[e]=="undefined")return this.daysPerYear;for(var t=0,a=this.minMonth;a<=12;a++)t+=this.NEPALI_CALENDAR_DATA[e][a];return t},daysInMonth:function(e,r){return e.year&&(r=e.month(),e=e.year()),this._validate(e,r,this.minDay,Bc.local.invalidMonth),typeof this.NEPALI_CALENDAR_DATA[e]=="undefined"?this.daysPerMonth[r-1]:this.NEPALI_CALENDAR_DATA[e][r]},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==6},toJD:function(e,r,t){var a=this._validate(e,r,t,Bc.local.invalidDate);e=a.year(),r=a.month(),t=a.day();var n=Bc.instance(),i=0,o=r,l=e;this._createMissingCalendarData(e);var s=e-(o>9||o===9&&t>=this.NEPALI_CALENDAR_DATA[l][0]?56:57);for(r!==9&&(i=t,o--);o!==9;)o<=0&&(o=12,l--),i+=this.NEPALI_CALENDAR_DATA[l][o],o--;return r===9?(i+=t-this.NEPALI_CALENDAR_DATA[l][0],i<0&&(i+=n.daysInYear(s))):i+=this.NEPALI_CALENDAR_DATA[l][9]-this.NEPALI_CALENDAR_DATA[l][0],n.newDate(s,1,1).add(i,"d").toJD()},fromJD:function(e){var r=Bc.instance(),t=r.fromJD(e),a=t.year(),n=t.dayOfYear(),i=a+56;this._createMissingCalendarData(i);for(var o=9,l=this.NEPALI_CALENDAR_DATA[i][0],s=this.NEPALI_CALENDAR_DATA[i][o]-l+1;n>s;)o++,o>12&&(o=1,i++),s+=this.NEPALI_CALENDAR_DATA[i][o];var u=this.NEPALI_CALENDAR_DATA[i][o]-(s-n);return this.newDate(i,o,u)},_createMissingCalendarData:function(e){var r=this.daysPerMonth.slice(0);r.unshift(17);for(var t=e-1;t{var z2=vi(),Nye=ci();function by(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}function yy(e){var r=e-475;e<0&&r++;var t=.242197,a=t*r,n=t*(r+1),i=a-Math.floor(a),o=n-Math.floor(n);return i>o}by.prototype=new z2.baseCalendar;Nye(by.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","Dey","Bahman","Esfand"],monthNamesShort:["Far","Ord","Kho","Tir","Mor","Sha","Meh","Aba","Aza","Dey","Bah","Esf"],dayNames:["Yekshanbeh","Doshanbeh","Seshanbeh","Chah\u0101rshanbeh","Panjshanbeh","Jom'eh","Shanbeh"],dayNamesShort:["Yek","Do","Se","Cha","Panj","Jom","Sha"],dayNamesMin:["Ye","Do","Se","Ch","Pa","Jo","Sh"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,z2.local.invalidYear);return yy(r.year())},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-((a.dayOfWeek()+1)%7),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,z2.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===12&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==5},toJD:function(e,r,t){var a=this._validate(e,r,t,z2.local.invalidDate);e=a.year(),r=a.month(),t=a.day();var n=0;if(e>0)for(var i=1;i0?e-1:e)*365+n+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e)+.5;var r=475+(e-this.toJD(475,1,1))/365.242197,t=Math.floor(r);t<=0&&t--,e>this.toJD(t,12,yy(t)?30:29)&&(t++,t===0&&t++);var a=e-this.toJD(t,1,1)+1,n=a<=186?Math.ceil(a/31):Math.ceil((a-6)/30),i=e-this.toJD(t,n,1)+1;return this.newDate(t,n,i)}});z2.calendars.persian=by;z2.calendars.jalali=by});var dY=le(()=>{var Ic=vi(),Bye=ci(),_y=Ic.instance();function x_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}x_.prototype=new Ic.baseCalendar;Bye(x_.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(t){var r=this._validate(t,this.minMonth,this.minDay,Ic.local.invalidYear),t=this._t2gYear(r.year());return _y.leapYear(t)},weekOfYear:function(n,r,t){var a=this._validate(n,this.minMonth,this.minDay,Ic.local.invalidYear),n=this._t2gYear(a.year());return _y.weekOfYear(n,a.month(),a.day())},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Ic.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===2&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(n,r,t){var a=this._validate(n,r,t,Ic.local.invalidDate),n=this._t2gYear(a.year());return _y.toJD(n,a.month(),a.day())},fromJD:function(e){var r=_y.fromJD(e),t=this._g2tYear(r.year());return this.newDate(t,r.month(),r.day())},_t2gYear:function(e){return e+this.yearsOffset+(e>=-this.yearsOffset&&e<=-1?1:0)},_g2tYear:function(e){return e-this.yearsOffset-(e>=1&&e<=this.yearsOffset?1:0)}});Ic.calendars.taiwan=x_});var pY=le(()=>{var Hc=vi(),Iye=ci(),xy=Hc.instance();function w_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}w_.prototype=new Hc.baseCalendar;Iye(w_.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(t){var r=this._validate(t,this.minMonth,this.minDay,Hc.local.invalidYear),t=this._t2gYear(r.year());return xy.leapYear(t)},weekOfYear:function(n,r,t){var a=this._validate(n,this.minMonth,this.minDay,Hc.local.invalidYear),n=this._t2gYear(a.year());return xy.weekOfYear(n,a.month(),a.day())},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Hc.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===2&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(n,r,t){var a=this._validate(n,r,t,Hc.local.invalidDate),n=this._t2gYear(a.year());return xy.toJD(n,a.month(),a.day())},fromJD:function(e){var r=xy.fromJD(e),t=this._g2tYear(r.year());return this.newDate(t,r.month(),r.day())},_t2gYear:function(e){return e-this.yearsOffset-(e>=1&&e<=this.yearsOffset?1:0)},_g2tYear:function(e){return e+this.yearsOffset+(e>=-this.yearsOffset&&e<=-1?1:0)}});Hc.calendars.thai=w_});var mY=le(()=>{var Oc=vi(),Hye=ci();function A_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}A_.prototype=new Oc.baseCalendar;Hye(A_.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\u0101th\u0101\u2019","Yawm al-Arba\u2018\u0101\u2019","Yawm al-Kham\u012Bs","Yawm al-Jum\u2018a","Yawm al-Sabt"],dayNamesMin:["Ah","Ith","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!0}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Oc.local.invalidYear);return this.daysInYear(r.year())===355},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInYear:function(e){for(var r=0,t=1;t<=12;t++)r+=this.daysInMonth(e,t);return r},daysInMonth:function(e,r){for(var t=this._validate(e,r,this.minDay,Oc.local.invalidMonth),a=t.toJD()-24e5+.5,n=0,i=0;ia)return nf[n]-nf[n-1];n++}return 30},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==5},toJD:function(e,r,t){var a=this._validate(e,r,t,Oc.local.invalidDate),n=12*(a.year()-1)+a.month()-15292,i=a.day()+nf[n-1]-1;return i+24e5-.5},fromJD:function(e){for(var r=e-24e5+.5,t=0,a=0;ar);a++)t++;var n=t+15292,i=Math.floor((n-1)/12),o=i+1,l=n-12*i,s=r-nf[t-1]+1;return this.newDate(o,l,s)},isValid:function(e,r,t){var a=Oc.baseCalendar.prototype.isValid.apply(this,arguments);return a&&(e=e.year!=null?e.year:e,a=e>=1276&&e<=1500),a},_validate:function(e,r,t,a){var n=Oc.baseCalendar.prototype._validate.apply(this,arguments);if(n.year<1276||n.year>1500)throw a.replace(/\{0\}/,this.local.name);return n}});Oc.calendars.ummalqura=A_;var nf=[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]});var yY=le((U_e,gY)=>{"use strict";gY.exports=vi();eY();rY();tY();aY();nY();iY();oY();lY();uY();cY();vY();hY();dY();pY();mY()});var TY=le((G_e,MY)=>{"use strict";var _Y=yY(),pd=mr(),xY=(Ya(),Tr($a)),Oye=xY.EPOCHJD,Uye=xY.ONEDAY,k_={valType:"enumerated",values:pd.sortObjectKeys(_Y.calendars),editType:"calc",dflt:"gregorian"},wY=function(e,r,t,a){var n={};return n[t]=k_,pd.coerce(e,r,n,t,a)},Gye=function(e,r,t,a){for(var n=0;n{"use strict";kY.exports=TY()});var Zye=le((V_e,DY)=>{var SY=zO();SY.register([AG(),ZG(),CY()]);DY.exports=SY});return Zye();})(); +"use strict";var Plotly=(()=>{var zY=Object.create;var J2=Object.defineProperty,NY=Object.defineProperties,BY=Object.getOwnPropertyDescriptor,IY=Object.getOwnPropertyDescriptors,HY=Object.getOwnPropertyNames,Md=Object.getOwnPropertySymbols,OY=Object.getPrototypeOf,Sy=Object.prototype.hasOwnProperty,N_=Object.prototype.propertyIsEnumerable;var z_=(e,r,t)=>r in e?J2(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,ga=(e,r)=>{for(var t in r||(r={}))Sy.call(r,t)&&z_(e,t,r[t]);if(Md)for(var t of Md(r))N_.call(r,t)&&z_(e,t,r[t]);return e},Ha=(e,r)=>NY(e,IY(r));var B_=(e,r)=>{var t={};for(var a in e)Sy.call(e,a)&&r.indexOf(a)<0&&(t[a]=e[a]);if(e!=null&&Md)for(var a of Md(e))r.indexOf(a)<0&&N_.call(e,a)&&(t[a]=e[a]);return t};var Oa=(e,r,t)=>()=>{if(t)throw t[0];try{return e&&(r=e(e=0)),r}catch(a){throw t=[a],a}};var oe=(e,r)=>()=>{try{return r||e((r={exports:{}}).exports,r),r.exports}catch(t){throw r=0,t}},Ua=(e,r)=>{for(var t in r)J2(e,t,{get:r[t],enumerable:!0})},I_=(e,r,t,a)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of HY(r))!Sy.call(e,n)&&n!==t&&J2(e,n,{get:()=>r[n],enumerable:!(a=BY(r,n))||a.enumerable});return e};var H_=(e,r,t)=>(t=e!=null?zY(OY(e)):{},I_(r||!e||!e.__esModule?J2(t,"default",{value:e,enumerable:!0}):t,e)),xr=e=>I_(J2({},"__esModule",{value:!0}),e);var O_=(e,r,t)=>new Promise((a,n)=>{var i=s=>{try{l(t.next(s))}catch(u){n(u)}},o=s=>{try{l(t.throw(s))}catch(u){n(u)}},l=s=>s.done?a(s.value):Promise.resolve(s.value).then(i,o);l((t=t.apply(e,r)).next())});var K2=oe(U_=>{"use strict";U_.version="4.2.0"});var Y_=oe((G_,Td)=>{(function(r,t,a){t[r]=t[r]||a(),typeof Td!="undefined"&&Td.exports&&(Td.exports=t[r])})("Promise",typeof window!="undefined"?window:G_,function(){"use strict";var r,t,a,n=Object.prototype.toString,i=typeof setImmediate!="undefined"?function(C){return setImmediate(C)}:setTimeout;try{Object.defineProperty({},"x",{}),r=function(C,x,_,A){return Object.defineProperty(C,x,{value:_,writable:!0,configurable:A!==!1})}}catch(y){r=function(x,_,A){return x[_]=A,x}}a=(function(){var C,x,_;function A(k,M){this.fn=k,this.self=M,this.next=void 0}return{add:function(M,E){_=new A(M,E),x?x.next=_:C=_,x=_,_=void 0},drain:function(){var M=C;for(C=x=t=void 0;M;)M.fn.call(M.self),M=M.next}}})();function o(y,C){a.add(y,C),t||(t=i(a.drain))}function l(y){var C,x=typeof y;return y!=null&&(x=="object"||x=="function")&&(C=y.then),typeof C=="function"?C:!1}function s(){for(var y=0;y0&&o(s,x))}catch(_){c.call(new d(x),_)}}}function c(y){var C=this;C.triggered||(C.triggered=!0,C.def&&(C=C.def),C.msg=y,C.state=2,C.chain.length>0&&o(s,C))}function h(y,C,x,_){for(var A=0;A{(function(){var e={version:"3.8.2"},r=[].slice,t=function(v){return r.call(v)},a=self.document;function n(v){return v&&(v.ownerDocument||v.document||v).documentElement}function i(v){return v&&(v.ownerDocument&&v.ownerDocument.defaultView||v.document&&v||v.defaultView)}if(a)try{t(a.documentElement.childNodes)[0].nodeType}catch(v){t=function(g){for(var w=g.length,S=new Array(w);w--;)S[w]=g[w];return S}}if(Date.now||(Date.now=function(){return+new Date}),a)try{a.createElement("DIV").style.setProperty("opacity",0,"")}catch(v){var o=this.Element.prototype,l=o.setAttribute,s=o.setAttributeNS,u=this.CSSStyleDeclaration.prototype,f=u.setProperty;o.setAttribute=function(g,w){l.call(this,g,w+"")},o.setAttributeNS=function(g,w,S){s.call(this,g,w,S+"")},u.setProperty=function(g,w,S){f.call(this,g,w+"",S)}}e.ascending=c;function c(v,g){return vg?1:v>=g?0:NaN}e.descending=function(v,g){return gv?1:g>=v?0:NaN},e.min=function(v,g){var w=-1,S=v.length,F,L;if(arguments.length===1){for(;++w=L){F=L;break}for(;++wL&&(F=L)}else{for(;++w=L){F=L;break}for(;++wL&&(F=L)}return F},e.max=function(v,g){var w=-1,S=v.length,F,L;if(arguments.length===1){for(;++w=L){F=L;break}for(;++wF&&(F=L)}else{for(;++w=L){F=L;break}for(;++wF&&(F=L)}return F},e.extent=function(v,g){var w=-1,S=v.length,F,L,Y;if(arguments.length===1){for(;++w=L){F=Y=L;break}for(;++wL&&(F=L),Y=L){F=Y=L;break}for(;++wL&&(F=L),Y1)return Y/(Z-1)},e.deviation=function(){var v=e.variance.apply(this,arguments);return v&&Math.sqrt(v)};function p(v){return{left:function(g,w,S,F){for(arguments.length<3&&(S=0),arguments.length<4&&(F=g.length);S>>1;v(g[L],w)<0?S=L+1:F=L}return S},right:function(g,w,S,F){for(arguments.length<3&&(S=0),arguments.length<4&&(F=g.length);S>>1;v(g[L],w)>0?F=L:S=L+1}return S}}}var m=p(c);e.bisectLeft=m.left,e.bisect=e.bisectRight=m.right,e.bisector=function(v){return p(v.length===1?function(g,w){return c(v(g),w)}:v)},e.shuffle=function(v,g,w){(S=arguments.length)<3&&(w=v.length,S<2&&(g=0));for(var S=w-g,F,L;S;)L=Math.random()*S--|0,F=v[S+g],v[S+g]=v[L+g],v[L+g]=F;return v},e.permute=function(v,g){for(var w=g.length,S=new Array(w);w--;)S[w]=v[g[w]];return S},e.pairs=function(v){for(var g=0,w=v.length-1,S,F=v[0],L=new Array(w<0?0:w);g=0;)for(Y=v[g],w=Y.length;--w>=0;)L[--F]=Y[w];return L};var y=Math.abs;e.range=function(v,g,w){if(arguments.length<3&&(w=1,arguments.length<2&&(g=v,v=0)),(g-v)/w===1/0)throw new Error("infinite range");var S=[],F=C(y(w)),L=-1,Y;if(v*=F,g*=F,w*=F,w<0)for(;(Y=v+w*++L)>g;)S.push(Y/F);else for(;(Y=v+w*++L)=g.length)return F?F.call(v,Z):S?Z.sort(S):Z;for(var ne=-1,ge=Z.length,ye=g[te++],Re,Ve,_e,Se=new _,Le;++ne=g.length)return B;var te=[],ne=w[Z++];return B.forEach(function(ge,ye){te.push({key:ge,values:Y(ye,Z)})}),ne?te.sort(function(ge,ye){return ne(ge.key,ye.key)}):te}return v.map=function(B,Z){return L(Z,B,0)},v.entries=function(B){return Y(L(e.map,B,0),0)},v.key=function(B){return g.push(B),v},v.sortKeys=function(B){return w[g.length-1]=B,v},v.sortValues=function(B){return S=B,v},v.rollup=function(B){return F=B,v},v},e.set=function(v){var g=new X;if(v)for(var w=0,S=v.length;w=0&&(S=v.slice(w+1),v=v.slice(0,w)),v)return arguments.length<2?this[v].on(S):this[v].on(S,g);if(arguments.length===2){if(g==null)for(v in this)this.hasOwnProperty(v)&&this[v].on(S,null);return this}};function le(v){var g=[],w=new _;function S(){for(var F=g,L=-1,Y=F.length,B;++L=0&&(w=v.slice(0,g))!=="xmlns"&&(v=v.slice(g+1)),Ne.hasOwnProperty(w)?{space:Ne[w],local:v}:v}},K.attr=function(v,g){if(arguments.length<2){if(typeof v=="string"){var w=this.node();return v=e.ns.qualify(v),v.local?w.getAttributeNS(v.space,v.local):w.getAttribute(v)}for(g in v)this.each(Ze(g,v[g]));return this}return this.each(Ze(v,g))};function Ze(v,g){v=e.ns.qualify(v);function w(){this.removeAttribute(v)}function S(){this.removeAttributeNS(v.space,v.local)}function F(){this.setAttribute(v,g)}function L(){this.setAttributeNS(v.space,v.local,g)}function Y(){var Z=g.apply(this,arguments);Z==null?this.removeAttribute(v):this.setAttribute(v,Z)}function B(){var Z=g.apply(this,arguments);Z==null?this.removeAttributeNS(v.space,v.local):this.setAttributeNS(v.space,v.local,Z)}return g==null?v.local?S:w:typeof g=="function"?v.local?B:Y:v.local?L:F}function er(v){return v.trim().replace(/\s+/g," ")}K.classed=function(v,g){if(arguments.length<2){if(typeof v=="string"){var w=this.node(),S=(v=tr(v)).length,F=-1;if(g=w.classList){for(;++F=0;)(L=w[S])&&(F&&F!==L.nextSibling&&F.parentNode.insertBefore(L,F),F=L);return this},K.sort=function(v){v=Ue.apply(this,arguments);for(var g=-1,w=this.length;++g=g&&(g=F+1);!(Z=Y[g])&&++g0&&(v=v.slice(0,F));var Y=cr.get(v);Y&&(v=Y,L=vr);function B(){var ne=this[S];ne&&(this.removeEventListener(v,ne,ne.$),delete this[S])}function Z(){var ne=L(g,t(arguments));B.call(this),this.addEventListener(v,this[S]=ne,ne.$=w),ne._=g}function te(){var ne=new RegExp("^__on([^.]+)"+e.requote(v)+"$"),ge;for(var ye in this)if(ge=ye.match(ne)){var Re=this[ye];this.removeEventListener(ge[1],Re,Re.$),delete this[ye]}}return F?g?Z:B:g?ae:te}var cr=e.map({mouseenter:"mouseover",mouseleave:"mouseout"});a&&cr.forEach(function(v){"on"+v in a&&cr.remove(v)});function Mr(v,g){return function(w){var S=e.event;e.event=w,g[0]=this.__data__;try{v.apply(this,g)}finally{e.event=S}}}function vr(v,g){var w=Mr(v,g);return function(S){var F=this,L=S.relatedTarget;(!L||L!==F&&!(L.compareDocumentPosition(F)&8))&&w.call(F,S)}}var kr,Er=0;function jr(v){var g=".dragsuppress-"+ ++Er,w="click"+g,S=e.select(i(v)).on("touchmove"+g,xe).on("dragstart"+g,xe).on("selectstart"+g,xe);if(kr==null&&(kr="onselectstart"in v?!1:ee(v.style,"userSelect")),kr){var F=n(v).style,L=F[kr];F[kr]="none"}return function(Y){if(S.on(g,null),kr&&(F[kr]=L),Y){var B=function(){S.on(w,null)};S.on(w,function(){xe(),B()},!0),setTimeout(B,0)}}}e.mouse=function(v){return nr(v,De())};var et=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;function nr(v,g){g.changedTouches&&(g=g.changedTouches[0]);var w=v.ownerSVGElement||v;if(w.createSVGPoint){var S=w.createSVGPoint();if(et<0){var F=i(v);if(F.scrollX||F.scrollY){w=e.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var L=w[0][0].getScreenCTM();et=!(L.f||L.e),w.remove()}}return et?(S.x=g.pageX,S.y=g.pageY):(S.x=g.clientX,S.y=g.clientY),S=S.matrixTransform(v.getScreenCTM().inverse()),[S.x,S.y]}var Y=v.getBoundingClientRect();return[g.clientX-Y.left-v.clientLeft,g.clientY-Y.top-v.clientTop]}e.touch=function(v,g,w){if(arguments.length<3&&(w=g,g=De().changedTouches),g){for(var S=0,F=g.length,L;S0?1:v<0?-1:0}function Dt(v,g,w){return(g[0]-v[0])*(w[1]-v[1])-(g[1]-v[1])*(w[0]-v[0])}function Wt(v){return v>1?0:v<-1?Wr:Math.acos(v)}function ba(v){return v>1?Ae:v<-1?-Ae:Math.asin(v)}function _a(v){return((v=Math.exp(v))-1/v)/2}function Xt(v){return((v=Math.exp(v))+1/v)/2}function Ht(v){return((v=Math.exp(2*v))-1)/(v+1)}function la(v){return(v=Math.sin(v/2))*v}var Pt=Math.SQRT2,Ta=2,pa=4;e.interpolateZoom=function(v,g){var w=v[0],S=v[1],F=v[2],L=g[0],Y=g[1],B=g[2],Z=L-w,te=Y-S,ne=Z*Z+te*te,ge,ye;if(ne0&&(Hr=Hr.transition().duration(Y)),Hr.call(Xe.event)}function tt(){Se&&Se.domain(_e.range().map(function(Hr){return(Hr-v.x)/v.k}).map(_e.invert)),Ge&&Ge.domain(Le.range().map(function(Hr){return(Hr-v.y)/v.k}).map(Le.invert))}function at(Hr){B++||Hr({type:"zoomstart"})}function Tt(Hr){tt(),Hr({type:"zoom",scale:v.k,translate:[v.x,v.y]})}function it(Hr){--B||(Hr({type:"zoomend"}),w=null)}function bt(){var Hr=this,kt=Ve.of(Hr,arguments),Ct=0,oa=e.select(i(Hr)).on(te,ri).on(ne,bi),an=Pe(e.mouse(Hr)),Sn=jr(Hr);yt.call(Hr),at(kt);function ri(){Ct=1,$r(e.mouse(Hr),an),Tt(kt)}function bi(){oa.on(te,null).on(ne,null),Sn(Ct),it(kt)}}function ia(){var Hr=this,kt=Ve.of(Hr,arguments),Ct={},oa=0,an,Sn=".zoom-"+e.event.changedTouches[0].identifier,ri="touchmove"+Sn,bi="touchend"+Sn,Hi=[],_i=e.select(Hr),Qi=jr(Hr);eo(),at(kt),_i.on(Z,null).on(ye,eo);function si(){var zl=e.touches(Hr);return an=v.k,zl.forEach(function(ti){ti.identifier in Ct&&(Ct[ti.identifier]=Pe(ti))}),zl}function eo(){var zl=e.event.target;e.select(zl).on(ri,Lf).on(bi,RY),Hi.push(zl);for(var ti=e.event.changedTouches,Xo=0,Ts=ti.length;Xo1){var qf=jo[0],v0=jo[1],Ad=qf[0]-v0[0],R_=qf[1]-v0[1];oa=Ad*Ad+R_*R_}}function Lf(){var zl=e.touches(Hr),ti,Xo,Ts,jo;yt.call(Hr);for(var v1=0,qf=zl.length;v11?1:g,w=w<0?0:w>1?1:w,F=w<=.5?w*(1+g):w+g-w*g,S=2*w-F;function L(B){return B>360?B-=360:B<0&&(B+=360),B<60?S+(F-S)*B/60:B<180?F:B<240?S+(F-S)*(240-B)/60:S}function Y(B){return Math.round(L(B)*255)}return new Ia(Y(v+120),Y(v),Y(v-120))}e.hcl=Zt;function Zt(v,g,w){return this instanceof Zt?(this.h=+v,this.c=+g,void(this.l=+w)):arguments.length<2?v instanceof Zt?new Zt(v.h,v.c,v.l):v instanceof Rt?ml(v.l,v.a,v.b):ml((v=Ks((v=e.rgb(v)).r,v.g,v.b)).l,v.a,v.b):new Zt(v,g,w)}var ma=Zt.prototype=new Fa;ma.brighter=function(v){return new Zt(this.h,this.c,Math.min(100,this.l+$t*(arguments.length?v:1)))},ma.darker=function(v){return new Zt(this.h,this.c,Math.max(0,this.l-$t*(arguments.length?v:1)))},ma.rgb=function(){return Ea(this.h,this.c,this.l).rgb()};function Ea(v,g,w){return isNaN(v)&&(v=0),isNaN(g)&&(g=0),new Rt(w,Math.cos(v*=Be)*g,Math.sin(v)*g)}e.lab=Rt;function Rt(v,g,w){return this instanceof Rt?(this.l=+v,this.a=+g,void(this.b=+w)):arguments.length<2?v instanceof Rt?new Rt(v.l,v.a,v.b):v instanceof Zt?Ea(v.h,v.c,v.l):Ks((v=Ia(v)).r,v.g,v.b):new Rt(v,g,w)}var $t=18,Na=.95047,Jn=1,Pi=1.08883,Kn=Rt.prototype=new Fa;Kn.brighter=function(v){return new Rt(Math.min(100,this.l+$t*(arguments.length?v:1)),this.a,this.b)},Kn.darker=function(v){return new Rt(Math.max(0,this.l-$t*(arguments.length?v:1)),this.a,this.b)},Kn.rgb=function(){return Ba(this.l,this.a,this.b)};function Ba(v,g,w){var S=(v+16)/116,F=S+g/500,L=S-w/200;return F=Qa(F)*Na,S=Qa(S)*Jn,L=Qa(L)*Pi,new Ia(co(3.2404542*F-1.5371385*S-.4985314*L),co(-.969266*F+1.8760108*S+.041556*L),co(.0556434*F-.2040259*S+1.0572252*L))}function ml(v,g,w){return v>0?new Zt(Math.atan2(w,g)*or,Math.sqrt(g*g+w*w),v):new Zt(NaN,NaN,v)}function Qa(v){return v>.206893034?v*v*v:(v-4/29)/7.787037}function zo(v){return v>.008856?Math.pow(v,1/3):7.787037*v+4/29}function co(v){return Math.round(255*(v<=.00304?12.92*v:1.055*Math.pow(v,1/2.4)-.055))}e.rgb=Ia;function Ia(v,g,w){return this instanceof Ia?(this.r=~~v,this.g=~~g,void(this.b=~~w)):arguments.length<2?v instanceof Ia?new Ia(v.r,v.g,v.b):os(""+v,Ia,Et):new Ia(v,g,w)}function Yi(v){return new Ia(v>>16,v>>8&255,v&255)}function gl(v){return Yi(v)+""}var Vi=Ia.prototype=new Fa;Vi.brighter=function(v){v=Math.pow(.7,arguments.length?v:1);var g=this.r,w=this.g,S=this.b,F=30;return!g&&!w&&!S?new Ia(F,F,F):(g&&g>4,S=S>>4|S,F=Z&240,F=F>>4|F,L=Z&15,L=L<<4|L):v.length===7&&(S=(Z&16711680)>>16,F=(Z&65280)>>8,L=Z&255)),g(S,F,L))}function ls(v,g,w){var S=Math.min(v/=255,g/=255,w/=255),F=Math.max(v,g,w),L=F-S,Y,B,Z=(F+S)/2;return L?(B=Z<.5?L/(F+S):L/(2-F-S),v==F?Y=(g-w)/L+(g0&&Z<1?0:Y),new Rr(Y,B,Z)}function Ks(v,g,w){v=ss(v),g=ss(g),w=ss(w);var S=zo((.4124564*v+.3575761*g+.1804375*w)/Na),F=zo((.2126729*v+.7151522*g+.072175*w)/Jn),L=zo((.0193339*v+.119192*g+.9503041*w)/Pi);return Rt(116*F-16,500*(S-F),200*(F-L))}function ss(v){return(v/=255)<=.04045?v/12.92:Math.pow((v+.055)/1.055,2.4)}function Qs(v){var g=parseFloat(v);return v.charAt(v.length-1)==="%"?Math.round(g*2.55):g}var ot=e.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});ot.forEach(function(v,g){ot.set(v,Yi(g))});function st(v){return typeof v=="function"?v:function(){return v}}e.functor=st,e.xhr=jt(N);function jt(v){return function(g,w,S){return arguments.length===2&&typeof w=="function"&&(S=w,w=null),Or(g,w,v,S)}}function Or(v,g,w,S){var F={},L=e.dispatch("beforesend","progress","load","error"),Y={},B=new XMLHttpRequest,Z=null;self.XDomainRequest&&!("withCredentials"in B)&&/^(http(s)?:)?\/\//.test(v)&&(B=new XDomainRequest),"onload"in B?B.onload=B.onerror=te:B.onreadystatechange=function(){B.readyState>3&&te()};function te(){var ne=B.status,ge;if(!ne&&sa(B)||ne>=200&&ne<300||ne===304){try{ge=w.call(F,B)}catch(ye){L.error.call(F,ye);return}L.load.call(F,ge)}else L.error.call(F,B)}return B.onprogress=function(ne){var ge=e.event;e.event=ne;try{L.progress.call(F,B)}finally{e.event=ge}},F.header=function(ne,ge){return ne=(ne+"").toLowerCase(),arguments.length<2?Y[ne]:(ge==null?delete Y[ne]:Y[ne]=ge+"",F)},F.mimeType=function(ne){return arguments.length?(g=ne==null?null:ne+"",F):g},F.responseType=function(ne){return arguments.length?(Z=ne,F):Z},F.response=function(ne){return w=ne,F},["get","post"].forEach(function(ne){F[ne]=function(){return F.send.apply(F,[ne].concat(t(arguments)))}}),F.send=function(ne,ge,ye){if(arguments.length===2&&typeof ge=="function"&&(ye=ge,ge=null),B.open(ne,v,!0),g!=null&&!("accept"in Y)&&(Y.accept=g+",*/*"),B.setRequestHeader)for(var Re in Y)B.setRequestHeader(Re,Y[Re]);return g!=null&&B.overrideMimeType&&B.overrideMimeType(g),Z!=null&&(B.responseType=Z),ye!=null&&F.on("error",ye).on("load",function(Ve){ye(null,Ve)}),L.beforesend.call(F,B),B.send(ge==null?null:ge),F},F.abort=function(){return B.abort(),F},e.rebind(F,L,"on"),S==null?F:F.get(Mn(S))}function Mn(v){return v.length===1?function(g,w){v(g==null?w:null)}:v}function sa(v){var g=v.responseType;return g&&g!=="text"?v.response:v.responseText}e.dsv=function(v,g){var w=new RegExp('["'+v+` +]`),S=v.charCodeAt(0);function F(te,ne,ge){arguments.length<3&&(ge=ne,ne=null);var ye=Or(te,g,ne==null?L:Y(ne),ge);return ye.row=function(Re){return arguments.length?ye.response((ne=Re)==null?L:Y(Re)):ne},ye}function L(te){return F.parse(te.responseText)}function Y(te){return function(ne){return F.parse(ne.responseText,te)}}F.parse=function(te,ne){var ge;return F.parseRows(te,function(ye,Re){if(ge)return ge(ye,Re-1);var Ve=function(_e){for(var Se={},Le=ye.length,Ge=0;Ge=Ve)return ye;if(Ge)return Ge=!1,ge;var br=_e;if(te.charCodeAt(br)===34){for(var Yr=br;Yr++24?(isFinite(g)&&(clearTimeout(yl),yl=setTimeout(Xi,g)),Vn=0):(Vn=1,us(Xi))}e.timer.flush=function(){No(),bl()};function No(){for(var v=Date.now(),g=Wa;g;)v>=g.t&&g.c(v-g.t)&&(g.c=null),g=g.n;return v}function bl(){for(var v,g=Wa,w=1/0;g;)g.c?(g.t=0;--B)_e.push(F[te[ge[B]][2]]);for(B=+Re;B1&&Dt(v[w[S-2]],v[w[S-1]],v[F])<=0;)--S;w[S++]=F}return w.slice(0,S)}function Gc(v,g){return v[0]-g[0]||v[1]-g[1]}e.geom.polygon=function(v){return ke(v,ru),v};var ru=e.geom.polygon.prototype=[];ru.area=function(){for(var v=-1,g=this.length,w,S=this[g-1],F=0;++var)B=B.L;else if(Y=g-N2(B,w),Y>ar){if(!B.R){S=B;break}B=B.R}else{L>-ar?(S=B.P,F=B):Y>-ar?(S=B,F=B.N):S=F=B;break}var Z=nu(v);if(vo.insert(S,Z),!(!S&&!F)){if(S===F){Oo(S),F=nu(S.site),vo.insert(Z,F),Z.edge=F.edge=ds(S.site,Z.site),Ho(S),Ho(F);return}if(!F){Z.edge=ds(S.site,Z.site);return}Oo(S),Oo(F);var te=S.site,ne=te.x,ge=te.y,ye=v.x-ne,Re=v.y-ge,Ve=F.site,_e=Ve.x-ne,Se=Ve.y-ge,Le=2*(ye*Se-Re*_e),Ge=ye*ye+Re*Re,Xe=_e*_e+Se*Se,Pe={x:(Se*Ge-Re*Xe)/Le+ne,y:(ye*Xe-_e*Ge)/Le+ge};mo(F.edge,te,Ve,Pe),Z.edge=ds(te,v,null,Pe),F.edge=ds(v,Ve,null,Pe),Ho(S),Ho(F)}}function ou(v,g){var w=v.site,S=w.x,F=w.y,L=F-g;if(!L)return S;var Y=v.P;if(!Y)return-1/0;w=Y.site;var B=w.x,Z=w.y,te=Z-g;if(!te)return B;var ne=B-S,ge=1/L-1/te,ye=ne/te;return ge?(-ye+Math.sqrt(ye*ye-2*ge*(ne*ne/(-2*te)-Z+te/2+F-L/2)))/ge+S:(S+B)/2}function N2(v,g){var w=v.N;if(w)return ou(w,g);var S=v.site;return S.y===g?S.x:1/0}function xl(v){this.site=v,this.edges=[]}xl.prototype.prepare=function(){for(var v=this.edges,g=v.length,w;g--;)w=v[g].edge,(!w.b||!w.a)&&v.splice(g,1);return v.sort(hs),v.length};function cf(v){for(var g=v[0][0],w=v[1][0],S=v[0][1],F=v[1][1],L,Y,B,Z,te=Io,ne=te.length,ge,ye,Re,Ve,_e,Se;ne--;)if(ge=te[ne],!(!ge||!ge.prepare()))for(Re=ge.edges,Ve=Re.length,ye=0;year||y(Z-Y)>ar)&&(Re.splice(ye,0,new wl(I2(ge.site,Se,y(B-g)ar?{x:g,y:y(L-g)ar?{x:y(Y-F)ar?{x:w,y:y(L-w)ar?{x:y(Y-S)=-Fr)){var ye=Z*Z+te*te,Re=ne*ne+Se*Se,Ve=(Se*ye-te*Re)/ge,_e=(Z*Re-ne*ye)/ge,Se=_e+B,Le=ff.pop()||new Xc;Le.arc=v,Le.site=F,Le.x=Ve+Y,Le.y=Se+Math.sqrt(Ve*Ve+_e*_e),Le.cy=Se,v.circle=Le;for(var Ge=null,Xe=vs._;Xe;)if(Le.y0)){if(_e/=Re,Re<0){if(_e0){if(_e>ye)return;_e>ge&&(ge=_e)}if(_e=w-B,!(!Re&&_e<0)){if(_e/=Re,Re<0){if(_e>ye)return;_e>ge&&(ge=_e)}else if(Re>0){if(_e0)){if(_e/=Ve,Ve<0){if(_e0){if(_e>ye)return;_e>ge&&(ge=_e)}if(_e=S-Z,!(!Ve&&_e<0)){if(_e/=Ve,Ve<0){if(_e>ye)return;_e>ge&&(ge=_e)}else if(Ve>0){if(_e0&&(F.a={x:B+ge*Re,y:Z+ge*Ve}),ye<1&&(F.b={x:B+ye*Re,y:Z+ye*Ve}),F}}}}}}function ji(v){for(var g=Bo,w=vf(v[0][0],v[0][1],v[1][0],v[1][1]),S=g.length,F;S--;)F=g[S],(!B2(F,v)||!w(F)||y(F.a.x-F.b.x)=L)return;if(ne>ye){if(!S)S={x:Ve,y:Y};else if(S.y>=B)return;w={x:Ve,y:B}}else{if(!S)S={x:Ve,y:B};else if(S.y1)if(ne>ye){if(!S)S={x:(Y-Le)/Se,y:Y};else if(S.y>=B)return;w={x:(B-Le)/Se,y:B}}else{if(!S)S={x:(B-Le)/Se,y:B};else if(S.y=L)return;w={x:L,y:Se*L+Le}}else{if(!S)S={x:L,y:Se*L+Le};else if(S.x=ne&&Le.x<=ye&&Le.y>=ge&&Le.y<=Re?[[ne,Re],[ye,Re],[ye,ge],[ne,ge]]:[];Ge.point=Z[_e]}),te}function B(Z){return Z.map(function(te,ne){return{x:Math.round(S(te,ne)/ar)*ar,y:Math.round(F(te,ne)/ar)*ar,i:ne}})}return Y.links=function(Z){return su(B(Z)).edges.filter(function(te){return te.l&&te.r}).map(function(te){return{source:Z[te.l.i],target:Z[te.r.i]}})},Y.triangles=function(Z){var te=[];return su(B(Z)).cells.forEach(function(ne,ge){for(var ye=ne.site,Re=ne.edges.sort(hs),Ve=-1,_e=Re.length,Se,Le,Ge=Re[_e-1].edge,Xe=Ge.l===ye?Ge.r:Ge.l;++Ve<_e;)Se=Ge,Le=Xe,Ge=Re[Ve].edge,Xe=Ge.l===ye?Ge.r:Ge.l,geXe&&(Xe=ne.x),ne.y>Pe&&(Pe=ne.y),Re.push(ne.x),Ve.push(ne.y);else for(_e=0;_eXe&&(Xe=br),Yr>Pe&&(Pe=Yr),Re.push(br),Ve.push(Yr)}var $r=Xe-Le,Xr=Pe-Ge;$r>Xr?Pe=Ge+$r:Xe=Le+Xr;function tt(it,bt,ia,pn,ca,Hr,kt,Ct){if(!(isNaN(ia)||isNaN(pn)))if(it.leaf){var oa=it.x,an=it.y;if(oa!=null)if(y(oa-ia)+y(an-pn)<.01)at(it,bt,ia,pn,ca,Hr,kt,Ct);else{var Sn=it.point;it.x=it.y=it.point=null,at(it,Sn,oa,an,ca,Hr,kt,Ct),at(it,bt,ia,pn,ca,Hr,kt,Ct)}else it.x=ia,it.y=pn,it.point=bt}else at(it,bt,ia,pn,ca,Hr,kt,Ct)}function at(it,bt,ia,pn,ca,Hr,kt,Ct){var oa=(ca+kt)*.5,an=(Hr+Ct)*.5,Sn=ia>=oa,ri=pn>=an,bi=ri<<1|Sn;it.leaf=!1,it=it.nodes[bi]||(it.nodes[bi]=Ku()),Sn?ca=oa:kt=oa,ri?Hr=an:Ct=an,tt(it,bt,ia,pn,ca,Hr,kt,Ct)}var Tt=Ku();if(Tt.add=function(it){tt(Tt,it,+ge(it,++_e),+ye(it,_e),Le,Ge,Xe,Pe)},Tt.visit=function(it){zi(it,Tt,Le,Ge,Xe,Pe)},Tt.find=function(it){return Qu(Tt,it[0],it[1],Le,Ge,Xe,Pe)},_e=-1,g==null){for(;++_eL||ye>Y||Re=br,Xr=w>=Yr,tt=Xr<<1|$r,at=tt+4;ttw&&(L=g.slice(w,L),B[Y]?B[Y]+=L:B[++Y]=L),(S=S[0])===(F=F[0])?B[Y]?B[Y]+=F:B[++Y]=F:(B[++Y]=null,Z.push({i:Y,x:Tn(S,F)})),w=fu.lastIndex;return w=0&&!(S=e.interpolators[w](v,g)););return S}e.interpolators=[function(v,g){var w=typeof g;return(w==="string"?ot.has(g.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(g)?e0:Xn:g instanceof Fa?e0:Array.isArray(g)?gs:w==="object"&&isNaN(g)?oi:Tn)(v,g)}],e.interpolateArray=gs;function gs(v,g){var w=[],S=[],F=v.length,L=g.length,Y=Math.min(v.length,g.length),B;for(B=0;B=0?v.slice(0,g):v,S=g>=0?v.slice(g+1):"in";return w=jc.get(w)||hf,S=H2.get(S)||N,O2(S(w.apply(null,r.call(arguments,1))))};function O2(v){return function(g){return g<=0?0:g>=1?1:v(g)}}function df(v){return function(g){return 1-v(1-g)}}function pf(v){return function(g){return .5*(g<.5?v(2*g):2-v(2-2*g))}}function mf(v){return v*v}function gf(v){return v*v*v}function Wc(v){if(v<=0)return 0;if(v>=1)return 1;var g=v*v,w=g*v;return 4*(v<.5?w:3*(v-g)+w-.75)}function Zc(v){return function(g){return Math.pow(g,v)}}function cu(v){return 1-Math.cos(v*Ae)}function vu(v){return Math.pow(2,10*(v-1))}function Wi(v){return 1-Math.sqrt(1-v*v)}function r0(v,g){var w;return arguments.length<2&&(g=.45),arguments.length?w=g/Br*Math.asin(1/v):(v=1,w=g/4),function(S){return 1+v*Math.pow(2,-10*S)*Math.sin((S-w)*Br/g)}}function hu(v){return v||(v=1.70158),function(g){return g*g*((v+1)*g-v)}}function t0(v){return v<1/2.75?7.5625*v*v:v<2/2.75?7.5625*(v-=1.5/2.75)*v+.75:v<2.5/2.75?7.5625*(v-=2.25/2.75)*v+.9375:7.5625*(v-=2.625/2.75)*v+.984375}e.interpolateHcl=$c;function $c(v,g){v=e.hcl(v),g=e.hcl(g);var w=v.h,S=v.c,F=v.l,L=g.h-w,Y=g.c-S,B=g.l-F;return isNaN(Y)&&(Y=0,S=isNaN(S)?g.c:S),isNaN(L)?(L=0,w=isNaN(w)?g.h:w):L>180?L-=360:L<-180&&(L+=360),function(Z){return Ea(w+L*Z,S+Y*Z,F+B*Z)+""}}e.interpolateHsl=yf;function yf(v,g){v=e.hsl(v),g=e.hsl(g);var w=v.h,S=v.s,F=v.l,L=g.h-w,Y=g.s-S,B=g.l-F;return isNaN(Y)&&(Y=0,S=isNaN(S)?g.s:S),isNaN(L)?(L=0,w=isNaN(w)?g.h:w):L>180?L-=360:L<-180&&(L+=360),function(Z){return Et(w+L*Z,S+Y*Z,F+B*Z)+""}}e.interpolateLab=U2;function U2(v,g){v=e.lab(v),g=e.lab(g);var w=v.l,S=v.a,F=v.b,L=g.l-w,Y=g.a-S,B=g.b-F;return function(Z){return Ba(w+L*Z,S+Y*Z,F+B*Z)+""}}e.interpolateRound=Go;function Go(v,g){return g-=v,function(w){return Math.round(v+g*w)}}e.transform=function(v){var g=a.createElementNS(e.ns.prefix.svg,"g");return(e.transform=function(w){if(w!=null){g.setAttribute("transform",w);var S=g.transform.baseVal.consolidate()}return new a0(S?S.matrix:bf)})(v)};function a0(v){var g=[v.a,v.b],w=[v.c,v.d],S=du(g),F=ys(g,w),L=du(pu(w,g,-F))||0;g[0]*w[1]180?g+=360:g-v>180&&(v+=360),S.push({i:w.push(Yo(w)+"rotate(",null,")")-2,x:Tn(v,g)})):g&&w.push(Yo(w)+"rotate("+g+")")}function Kc(v,g,w,S){v!==g?S.push({i:w.push(Yo(w)+"skewX(",null,")")-2,x:Tn(v,g)}):g&&w.push(Yo(w)+"skewX("+g+")")}function xf(v,g,w,S){if(v[0]!==g[0]||v[1]!==g[1]){var F=w.push(Yo(w)+"scale(",null,",",null,")");S.push({i:F-4,x:Tn(v[0],g[0])},{i:F-2,x:Tn(v[1],g[1])})}else(g[0]!==1||g[1]!==1)&&w.push(Yo(w)+"scale("+g+")")}function n0(v,g){var w=[],S=[];return v=e.transform(v),g=e.transform(g),Jc(v.translate,g.translate,w,S),_f(v.rotate,g.rotate,w,S),Kc(v.skew,g.skew,w,S),xf(v.scale,g.scale,w,S),v=g=null,function(F){for(var L=-1,Y=S.length,B;++L0?L=Pe:(w.c=null,w.t=NaN,w=null,g.end({type:"end",alpha:L=0})):Pe>0&&(g.start({type:"start",alpha:L=Pe}),w=fs(v.tick)),v):L},v.start=function(){var Pe,br=Re.length,Yr=Ve.length,$r=S[0],Xr=S[1],tt,at;for(Pe=0;Pe=0;)L.push(ne=te[Z]),ne.parent=B,ne.depth=B.depth+1;w&&(B.value=0),B.children=te}else w&&(B.value=+w.call(S,B,B.depth)||0),delete B.children;return li(F,function(ge){var ye,Re;v&&(ye=ge.children)&&ye.sort(v),w&&(Re=ge.parent)&&(Re.value+=ge.value)}),Y}return S.sort=function(F){return arguments.length?(v=F,S):v},S.children=function(F){return arguments.length?(g=F,S):g},S.value=function(F){return arguments.length?(w=F,S):w},S.revalue=function(F){return w&&($i(F,function(L){L.children&&(L.value=0)}),li(F,function(L){var Y;L.children||(L.value=+w.call(S,L,L.depth)||0),(Y=L.parent)&&(Y.value+=L.value)})),F},S};function yo(v,g){return e.rebind(v,g,"sort","children","value"),v.nodes=v,v.links=gi,v}function $i(v,g){for(var w=[v];(v=w.pop())!=null;)if(g(v),(F=v.children)&&(S=F.length))for(var S,F;--S>=0;)w.push(F[S])}function li(v,g){for(var w=[v],S=[];(v=w.pop())!=null;)if(S.push(v),(Y=v.children)&&(L=Y.length))for(var F=-1,L,Y;++FF&&(F=B),S.push(B)}for(Y=0;YS&&(w=g,S=F);return w}function bu(v){return v.reduce(Sl,0)}function Sl(v,g){return v+g[1]}e.layout.histogram=function(){var v=!0,g=Number,w=xs,S=_u;function F(L,ye){for(var B=[],Z=L.map(g,this),te=w.call(this,Z,ye),ne=S.call(this,te,Z,ye),ge,ye=-1,Re=Z.length,Ve=ne.length-1,_e=v?1:1/Re,Se;++ye0)for(ye=-1;++ye=te[0]&&Se<=te[1]&&(ge=B[e.bisect(ne,Se,1,Ve)-1],ge.y+=_e,ge.push(L[ye]));return B}return F.value=function(L){return arguments.length?(g=L,F):g},F.range=function(L){return arguments.length?(w=st(L),F):w},F.bins=function(L){return arguments.length?(S=typeof L=="number"?function(Y){return Dl(Y,L)}:st(L),F):S},F.frequency=function(L){return arguments.length?(v=!!L,F):v},F};function _u(v,g){return Dl(v,Math.ceil(Math.log(g.length)/Math.LN2+1))}function Dl(v,g){for(var w=-1,S=+v[0],F=(v[1]-S)/g,L=[];++w<=g;)L[w]=F*w+S;return L}function xs(v){return[e.min(v),e.max(v)]}e.layout.pack=function(){var v=e.layout.hierarchy().sort(l0),g=0,w=[1,1],S;function F(L,Y){var B=v.call(this,L,Y),Z=B[0],te=w[0],ne=w[1],ge=S==null?Math.sqrt:typeof S=="function"?S:function(){return S};if(Z.x=Z.y=0,li(Z,function(Re){Re.r=+ge(Re.value)}),li(Z,o1),g){var ye=g*(S?1:Math.max(2*Z.r/te,2*Z.r/ne))/2;li(Z,function(Re){Re.r+=ye}),li(Z,o1),li(Z,function(Re){Re.r-=ye})}return u0(Z,te/2,ne/2,S?1:1/Math.max(2*Z.r/te,2*Z.r/ne)),B}return F.size=function(L){return arguments.length?(w=L,F):w},F.radius=function(L){return arguments.length?(S=L==null||typeof L=="function"?L:+L,F):S},F.padding=function(L){return arguments.length?(g=+L,F):g},yo(F,v)};function l0(v,g){return v.value-g.value}function xu(v,g){var w=v._pack_next;v._pack_next=g,g._pack_prev=v,g._pack_next=w,w._pack_prev=g}function i1(v,g){v._pack_next=g,g._pack_prev=v}function s0(v,g){var w=g.x-v.x,S=g.y-v.y,F=v.r+g.r;return .999*F*F>w*w+S*S}function o1(v){if(!(g=v.children)||!(ye=g.length))return;var g,w=1/0,S=-1/0,F=1/0,L=-1/0,Y,B,Z,te,ne,ge,ye;function Re(Pe){w=Math.min(Pe.x-Pe.r,w),S=Math.max(Pe.x+Pe.r,S),F=Math.min(Pe.y-Pe.r,F),L=Math.max(Pe.y+Pe.r,L)}if(g.forEach(l1),Y=g[0],Y.x=-Y.r,Y.y=0,Re(Y),ye>1&&(B=g[1],B.x=B.r,B.y=0,Re(B),ye>2))for(Z=g[2],dn(Y,B,Z),Re(Z),xu(Y,Z),Y._pack_prev=Z,xu(Z,B),B=Y._pack_next,te=3;teSe.x&&(Se=br),br.depth>Le.depth&&(Le=br)});var Ge=g(_e,Se)/2-_e.x,Xe=w[0]/(Se.x+g(Se,_e)/2+Ge),Pe=w[1]/(Le.depth||1);$i(Re,function(br){br.x=(br.x+Ge)*Xe,br.y=br.depth*Pe})}return ye}function L(ne){for(var ge={A:null,children:[ne]},ye=[ge],Re;(Re=ye.pop())!=null;)for(var Ve=Re.children,_e,Se=0,Le=Ve.length;Se0&&(wu(O(_e,ne,ye),ne,br),Le+=br,Ge+=br),Xe+=_e.m,Le+=Re.m,Pe+=Se.m,Ge+=Ve.m;_e&&!f0(Ve)&&(Ve.t=_e,Ve.m+=Xe-Ge),Re&&!ws(Se)&&(Se.t=Re,Se.m+=Le-Pe,ye=ne)}return ye}function te(ne){ne.x*=w[0],ne.y=ne.depth*w[1]}return F.separation=function(ne){return arguments.length?(g=ne,F):g},F.size=function(ne){return arguments.length?(S=(w=ne)==null?te:null,F):S?null:w},F.nodeSize=function(ne){return arguments.length?(S=(w=ne)==null?null:te,F):S?w:null},yo(F,v)};function Ni(v,g){return v.parent==g.parent?1:2}function ws(v){var g=v.children;return g.length?g[0]:v.t}function f0(v){var g=v.children,w;return(w=g.length)?g[w-1]:v.t}function wu(v,g,w){var S=w/(g.i-v.i);g.c-=S,g.s+=w,v.c+=S,g.z+=w,g.m+=w}function Sf(v){for(var g=0,w=0,S=v.children,F=S.length,L;--F>=0;)L=S[F],L.z+=g,L.m+=g,g+=L.s+(w+=L.c)}function O(v,g,w){return v.a.parent===g.parent?v.a:w}e.layout.cluster=function(){var v=e.layout.hierarchy().sort(null).value(null),g=Ni,w=[1,1],S=!1;function F(L,Y){var B=v.call(this,L,Y),Z=B[0],te,ne=0;li(Z,function(_e){var Se=_e.children;Se&&Se.length?(_e.x=de(Se),_e.y=$(Se)):(_e.x=te?ne+=g(_e,te):0,_e.y=0,te=_e)});var ge=ue(Z),ye=Me(Z),Re=ge.x-g(ge,ye)/2,Ve=ye.x+g(ye,ge)/2;return li(Z,S?function(_e){_e.x=(_e.x-Z.x)*w[0],_e.y=(Z.y-_e.y)*w[1]}:function(_e){_e.x=(_e.x-Re)/(Ve-Re)*w[0],_e.y=(1-(Z.y?_e.y/Z.y:1))*w[1]}),B}return F.separation=function(L){return arguments.length?(g=L,F):g},F.size=function(L){return arguments.length?(S=(w=L)==null,F):S?null:w},F.nodeSize=function(L){return arguments.length?(S=(w=L)!=null,F):S?w:null},yo(F,v)};function $(v){return 1+e.max(v,function(g){return g.y})}function de(v){return v.reduce(function(g,w){return g+w.x},0)/v.length}function ue(v){var g=v.children;return g&&g.length?ue(g[0]):v}function Me(v){var g=v.children,w;return g&&(w=g.length)?Me(g[w-1]):v}e.layout.treemap=function(){var v=e.layout.hierarchy(),g=Math.round,w=[1,1],S=null,F=Oe,L=!1,Y,B="squarify",Z=.5*(1+Math.sqrt(5));function te(_e,Se){for(var Le=-1,Ge=_e.length,Xe,Pe;++Le0;)Ge.push(Pe=Xe[Xr-1]),Ge.area+=Pe.area,B!=="squarify"||(Yr=ye(Ge,$r))<=br?(Xe.pop(),br=Yr):(Ge.area-=Ge.pop().area,Re(Ge,$r,Le,!1),$r=Math.min(Le.dx,Le.dy),Ge.length=Ge.area=0,br=1/0);Ge.length&&(Re(Ge,$r,Le,!0),Ge.length=Ge.area=0),Se.forEach(ne)}}function ge(_e){var Se=_e.children;if(Se&&Se.length){var Le=F(_e),Ge=Se.slice(),Xe,Pe=[];for(te(Ge,Le.dx*Le.dy/_e.value),Pe.area=0;Xe=Ge.pop();)Pe.push(Xe),Pe.area+=Xe.area,Xe.z!=null&&(Re(Pe,Xe.z?Le.dx:Le.dy,Le,!Ge.length),Pe.length=Pe.area=0);Se.forEach(ge)}}function ye(_e,Se){for(var Le=_e.area,Ge,Xe=0,Pe=1/0,br=-1,Yr=_e.length;++brXe&&(Xe=Ge));return Le*=Le,Se*=Se,Le?Math.max(Se*Xe*Z/Le,Le/(Se*Pe*Z)):1/0}function Re(_e,Se,Le,Ge){var Xe=-1,Pe=_e.length,br=Le.x,Yr=Le.y,$r=Se?g(_e.area/Se):0,Xr;if(Se==Le.dx){for((Ge||$r>Le.dy)&&($r=Le.dy);++XeLe.dx)&&($r=Le.dx);++Xe1);return v+g*S*Math.sqrt(-2*Math.log(L)/L)}},logNormal:function(){var v=e.random.normal.apply(e,arguments);return function(){return Math.exp(v())}},bates:function(v){var g=e.random.irwinHall(v);return function(){return g()/v}},irwinHall:function(v){return function(){for(var g=0,w=0;w2?wr:gr,te=S?Af:wf;return F=Z(v,g,te,w),L=Z(g,v,te,kl),B}function B(Z){return F(Z)}return B.invert=function(Z){return L(Z)},B.domain=function(Z){return arguments.length?(v=Z.map(Number),Y()):v},B.range=function(Z){return arguments.length?(g=Z,Y()):g},B.rangeRound=function(Z){return B.range(Z).interpolate(Go)},B.clamp=function(Z){return arguments.length?(S=Z,Y()):S},B.interpolate=function(Z){return arguments.length?(w=Z,Y()):w},B.ticks=function(Z){return ft(v,Z)},B.tickFormat=function(Z,te){return d3_scale_linearTickFormat(v,Z,te)},B.nice=function(Z){return rt(v,Z),Y()},B.copy=function(){return Dr(v,g,w,S)},Y()}function lt(v,g){return e.rebind(v,g,"range","rangeRound","interpolate","clamp")}function rt(v,g){return $e(v,fr(ut(v,g)[2])),$e(v,fr(ut(v,g)[2])),v}function ut(v,g){g==null&&(g=10);var w=rr(v),S=w[1]-w[0],F=Math.pow(10,Math.floor(Math.log(S/g)/Math.LN10)),L=g/S*F;return L<=.15?F*=10:L<=.35?F*=5:L<=.75&&(F*=2),w[0]=Math.ceil(w[0]/F)*F,w[1]=Math.floor(w[1]/F)*F+F*.5,w[2]=F,w}function ft(v,g){return e.range.apply(e,ut(v,g))}var Lr={s:1,g:1,p:1,r:1,e:1};function Ur(v){return-Math.floor(Math.log(v)/Math.LN10+.01)}function vt(v,g){var w=Ur(g[2]);return v in Lr?Math.abs(w-Ur(Math.max(y(g[0]),y(g[1]))))+ +(v!=="e"):w-(v==="%")*2}e.scale.log=function(){return xt(e.scale.linear().domain([0,1]),10,!0,[1,10])};function xt(v,g,w,S){function F(B){return(w?Math.log(B<0?0:B):-Math.log(B>0?0:-B))/Math.log(g)}function L(B){return w?Math.pow(g,B):-Math.pow(g,-B)}function Y(B){return v(F(B))}return Y.invert=function(B){return L(v.invert(B))},Y.domain=function(B){return arguments.length?(w=B[0]>=0,v.domain((S=B.map(Number)).map(F)),Y):S},Y.base=function(B){return arguments.length?(g=+B,v.domain(S.map(F)),Y):g},Y.nice=function(){var B=$e(S.map(F),w?Math:Jt);return v.domain(B),S=B.map(L),Y},Y.ticks=function(){var B=rr(S),Z=[],te=B[0],ne=B[1],ge=Math.floor(F(te)),ye=Math.ceil(F(ne)),Re=g%1?2:g;if(isFinite(ye-ge)){if(w){for(;ge0;Ve--)Z.push(L(ge)*Ve);for(ge=0;Z[ge]ne;ye--);Z=Z.slice(ge,ye)}return Z},Y.copy=function(){return xt(v.copy(),g,w,S)},lt(Y,v)}var Jt={floor:function(v){return-Math.ceil(-v)},ceil:function(v){return-Math.floor(-v)}};e.scale.pow=function(){return ua(e.scale.linear(),1,[0,1])};function ua(v,g,w){var S=ea(g),F=ea(1/g);function L(Y){return v(S(Y))}return L.invert=function(Y){return F(v.invert(Y))},L.domain=function(Y){return arguments.length?(v.domain((w=Y.map(Number)).map(S)),L):w},L.ticks=function(Y){return ft(w,Y)},L.tickFormat=function(Y,B){return d3_scale_linearTickFormat(w,Y,B)},L.nice=function(Y){return L.domain(rt(w,Y))},L.exponent=function(Y){return arguments.length?(S=ea(g=Y),F=ea(1/g),v.domain(w.map(S)),L):g},L.copy=function(){return ua(v.copy(),g,w)},lt(L,v)}function ea(v){return function(g){return g<0?-Math.pow(-g,v):Math.pow(g,v)}}e.scale.sqrt=function(){return e.scale.pow().exponent(.5)},e.scale.ordinal=function(){return xa([],{t:"range",a:[[]]})};function xa(v,g){var w,S,F;function L(B){return S[((w.get(B)||(g.t==="range"?w.set(B,v.push(B)):NaN))-1)%S.length]}function Y(B,Z){return e.range(v.length).map(function(te){return B+Z*te})}return L.domain=function(B){if(!arguments.length)return v;v=[],w=new _;for(var Z=-1,te=B.length,ne;++Z0?w[L-1]:v[0],Lye?0:1;if(ne=Zr)return Z(ne,Ve)+(te?Z(te,1-Ve):"")+"Z";var _e,Se,Le,Ge,Xe=0,Pe=0,br,Yr,$r,Xr,tt,at,Tt,it,bt=[];if((Ge=(+Y.apply(this,arguments)||0)/2)&&(Le=S===bo?Math.sqrt(te*te+ne*ne):+S.apply(this,arguments),Ve||(Pe*=-1),ne&&(Pe=ba(Le/ne*Math.sin(Ge))),te&&(Xe=ba(Le/te*Math.sin(Ge)))),ne){br=ne*Math.cos(ge+Pe),Yr=ne*Math.sin(ge+Pe),$r=ne*Math.cos(ye-Pe),Xr=ne*Math.sin(ye-Pe);var ia=Math.abs(ye-ge-2*Pe)<=Wr?0:1;if(Pe&&c0(br,Yr,$r,Xr)===Ve^ia){var pn=(ge+ye)/2;br=ne*Math.cos(pn),Yr=ne*Math.sin(pn),$r=Xr=null}}else br=Yr=0;if(te){tt=te*Math.cos(ye-Xe),at=te*Math.sin(ye-Xe),Tt=te*Math.cos(ge+Xe),it=te*Math.sin(ge+Xe);var ca=Math.abs(ge-ye+2*Xe)<=Wr?0:1;if(Xe&&c0(tt,at,Tt,it)===1-Ve^ca){var Hr=(ge+ye)/2;tt=te*Math.cos(Hr),at=te*Math.sin(Hr),Tt=it=null}}else tt=at=0;if(Re>ar&&(_e=Math.min(Math.abs(ne-te)/2,+w.apply(this,arguments)))>.001){Se=te0?0:1}function s1(v,g,w,S,F){var L=v[0]-g[0],Y=v[1]-g[1],B=(F?S:-S)/Math.sqrt(L*L+Y*Y),Z=B*Y,te=-B*L,ne=v[0]+Z,ge=v[1]+te,ye=g[0]+Z,Re=g[1]+te,Ve=(ne+ye)/2,_e=(ge+Re)/2,Se=ye-ne,Le=Re-ge,Ge=Se*Se+Le*Le,Xe=w-S,Pe=ne*Re-ye*ge,br=(Le<0?-1:1)*Math.sqrt(Math.max(0,Xe*Xe*Ge-Pe*Pe)),Yr=(Pe*Le-Se*br)/Ge,$r=(-Pe*Se-Le*br)/Ge,Xr=(Pe*Le+Se*br)/Ge,tt=(-Pe*Se+Le*br)/Ge,at=Yr-Ve,Tt=$r-_e,it=Xr-Ve,bt=tt-_e;return at*at+Tt*Tt>it*it+bt*bt&&(Yr=Xr,$r=tt),[[Yr-Z,$r-te],[Yr*w/Xe,$r*w/Xe]]}function u1(){return!0}function md(v){var g=cs,w=eu,S=u1,F=_o,L=F.key,Y=.7;function B(Z){var te=[],ne=[],ge=-1,ye=Z.length,Re,Ve=st(g),_e=st(w);function Se(){te.push("M",F(v(ne),Y))}for(;++ge1?v.join("L"):v+"Z"}function gd(v){return v.join("L")+"Z"}function yd(v){for(var g=0,w=v.length,S=v[0],F=[S[0],",",S[1]];++g1&&F.push("H",S[0]),F.join("")}function f1(v){for(var g=0,w=v.length,S=v[0],F=[S[0],",",S[1]];++g1){B=g[1],L=v[Z],Z++,S+="C"+(F[0]+Y[0])+","+(F[1]+Y[1])+","+(L[0]-B[0])+","+(L[1]-B[1])+","+L[0]+","+L[1];for(var te=2;te9&&(L=w*3/Math.sqrt(L),Y[B]=L*S,Y[B+1]=L*F));for(B=-1;++B<=Z;)L=(v[Math.min(Z,B+1)][0]-v[Math.max(0,B-1)][0])/(6*(1+Y[B]*Y[B])),g.push([L||0,Y[B]*L||0]);return g}function ve(v){return v.length<3?_o(v):v[0]+c1(v,j(v))}e.svg.line.radial=function(){var v=md(pe);return v.radius=v.x,delete v.x,v.angle=v.y,delete v.y,v};function pe(v){for(var g,w=-1,S=v.length,F,L;++wWr)+",1 "+ge}function te(ne,ge,ye,Re){return"Q 0,0 "+Re}return L.radius=function(ne){return arguments.length?(w=st(ne),L):w},L.source=function(ne){return arguments.length?(v=st(ne),L):v},L.target=function(ne){return arguments.length?(g=st(ne),L):g},L.startAngle=function(ne){return arguments.length?(S=st(ne),L):S},L.endAngle=function(ne){return arguments.length?(F=st(ne),L):F},L};function Fe(v){return v.radius}e.svg.diagonal=function(){var v=me,g=we,w=Ie;function S(F,L){var Y=v.call(this,F,L),B=g.call(this,F,L),Z=(Y.y+B.y)/2,te=[Y,{x:Y.x,y:Z},{x:B.x,y:Z},B];return te=te.map(w),"M"+te[0]+"C"+te[1]+" "+te[2]+" "+te[3]}return S.source=function(F){return arguments.length?(v=st(F),S):v},S.target=function(F){return arguments.length?(g=st(F),S):g},S.projection=function(F){return arguments.length?(w=F,S):w},S};function Ie(v){return[v.x,v.y]}e.svg.diagonal.radial=function(){var v=e.svg.diagonal(),g=Ie,w=v.projection;return v.projection=function(S){return arguments.length?w(Ke(g=S)):g},v};function Ke(v){return function(){var g=v.apply(this,arguments),w=g[0],S=g[1]-Ae;return[w*Math.cos(S),w*Math.sin(S)]}}e.svg.symbol=function(){var v=Tr,g=ur;function w(S,F){return(ct.get(v.call(this,S,F))||Kr)(g.call(this,S,F))}return w.type=function(S){return arguments.length?(v=st(S),w):v},w.size=function(S){return arguments.length?(g=st(S),w):g},w};function ur(){return 64}function Tr(){return"circle"}function Kr(v){var g=Math.sqrt(v/Wr);return"M0,"+g+"A"+g+","+g+" 0 1,1 0,"+-g+"A"+g+","+g+" 0 1,1 0,"+g+"Z"}var ct=e.map({circle:Kr,cross:function(v){var g=Math.sqrt(v/5)/2;return"M"+-3*g+","+-g+"H"+-g+"V"+-3*g+"H"+g+"V"+-g+"H"+3*g+"V"+g+"H"+g+"V"+3*g+"H"+-g+"V"+g+"H"+-3*g+"Z"},diamond:function(v){var g=Math.sqrt(v/(2*pt)),w=g*pt;return"M0,"+-g+"L"+w+",0 0,"+g+" "+-w+",0Z"},square:function(v){var g=Math.sqrt(v)/2;return"M"+-g+","+-g+"L"+g+","+-g+" "+g+","+g+" "+-g+","+g+"Z"},"triangle-down":function(v){var g=Math.sqrt(v/ht),w=g*ht/2;return"M0,"+w+"L"+g+","+-w+" "+-g+","+-w+"Z"},"triangle-up":function(v){var g=Math.sqrt(v/ht),w=g*ht/2;return"M0,"+-w+"L"+g+","+w+" "+-g+","+w+"Z"}});e.svg.symbolTypes=ct.keys();var ht=Math.sqrt(3),pt=Math.tan(30*Be);K.transition=function(v){for(var g=zn||++tn,w=Qn(v),S=[],F,L,Y=Ii||{time:Date.now(),ease:Wc,delay:0,duration:250},B=-1,Z=this.length;++B0;)ge[--Ge].call(v,Le);if(Se>=1)return Y.event&&Y.event.end.call(v,v.__data__,g),--L.count?delete L[S]:delete v[w],1}Y||(B=F.time,Z=fs(ye,0,B),Y=L[S]={tween:new _,time:B,timer:Z,delay:F.delay,duration:F.duration,ease:F.ease,index:g},F=null,++L.count)}e.svg.axis=function(){var v=e.scale.linear(),g=xo,w=6,S=6,F=3,L=[10],Y=null,B;function Z(te){te.each(function(){var ne=e.select(this),ge=this.__chart__||v,ye=this.__chart__=v.copy(),Re=Y==null?ye.ticks?ye.ticks.apply(ye,L):ye.domain():Y,Ve=B==null?ye.tickFormat?ye.tickFormat.apply(ye,L):N:B,_e=ne.selectAll(".tick").data(Re,ye),Se=_e.enter().insert("g",".domain").attr("class","tick").style("opacity",ar),Le=e.transition(_e.exit()).style("opacity",ar).remove(),Ge=e.transition(_e.order()).style("opacity",1),Xe=Math.max(w,0)+F,Pe,br=ir(ye),Yr=ne.selectAll(".domain").data([0]),$r=(Yr.enter().append("path").attr("class","domain"),e.transition(Yr));Se.append("line"),Se.append("text");var Xr=Se.select("line"),tt=Ge.select("line"),at=_e.select("text").text(Ve),Tt=Se.select("text"),it=Ge.select("text"),bt=g==="top"||g==="left"?-1:1,ia,pn,ca,Hr;if(g==="bottom"||g==="top"?(Pe=Pl,ia="x",ca="y",pn="x2",Hr="y2",at.attr("dy",bt<0?"0em":".71em").style("text-anchor","middle"),$r.attr("d","M"+br[0]+","+bt*S+"V0H"+br[1]+"V"+bt*S)):(Pe=Rl,ia="y",ca="x",pn="y2",Hr="x2",at.attr("dy",".32em").style("text-anchor",bt<0?"end":"start"),$r.attr("d","M"+bt*S+","+br[0]+"H0V"+br[1]+"H"+bt*S)),Xr.attr(Hr,bt*w),Tt.attr(ca,bt*Xe),tt.attr(pn,0).attr(Hr,bt*w),it.attr(ia,0).attr(ca,bt*Xe),ye.rangeBand){var kt=ye,Ct=kt.rangeBand()/2;ge=ye=function(oa){return kt(oa)+Ct}}else ge.rangeBand?ge=ye:Le.call(Pe,ye,ge);Se.call(Pe,ge,ye),Ge.call(Pe,ye,ye)})}return Z.scale=function(te){return arguments.length?(v=te,Z):v},Z.orient=function(te){return arguments.length?(g=te in ql?te+"":xo,Z):g},Z.ticks=function(){return arguments.length?(L=t(arguments),Z):L},Z.tickValues=function(te){return arguments.length?(Y=te,Z):Y},Z.tickFormat=function(te){return arguments.length?(B=te,Z):B},Z.tickSize=function(te){var ne=arguments.length;return ne?(w=+te,S=+arguments[ne-1],Z):w},Z.innerTickSize=function(te){return arguments.length?(w=+te,Z):w},Z.outerTickSize=function(te){return arguments.length?(S=+te,Z):S},Z.tickPadding=function(te){return arguments.length?(F=+te,Z):F},Z.tickSubdivide=function(){return arguments.length&&Z},Z};var xo="bottom",ql={top:1,right:1,bottom:1,left:1};function Pl(v,g,w){v.attr("transform",function(S){var F=g(S);return"translate("+(isFinite(F)?F:w(S))+",0)"})}function Rl(v,g,w){v.attr("transform",function(S){var F=g(S);return"translate(0,"+(isFinite(F)?F:w(S))+")"})}e.svg.brush=function(){var v=Ye(ne,"brushstart","brush","brushend"),g=null,w=null,S=[0,0],F=[0,0],L,Y,B=!0,Z=!0,te=Vo[0];function ne(_e){_e.each(function(){var Se=e.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",Ve).on("touchstart.brush",Ve),Le=Se.selectAll(".background").data([0]);Le.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),Se.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var Ge=Se.selectAll(".resize").data(te,N);Ge.exit().remove(),Ge.enter().append("g").attr("class",function(Yr){return"resize "+Yr}).style("cursor",function(Yr){return Ms[Yr]}).append("rect").attr("x",function(Yr){return/[ew]$/.test(Yr)?-3:null}).attr("y",function(Yr){return/^[ns]/.test(Yr)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),Ge.style("display",ne.empty()?"none":null);var Xe=e.transition(Se),Pe=e.transition(Le),br;g&&(br=ir(g),Pe.attr("x",br[0]).attr("width",br[1]-br[0]),ye(Xe)),w&&(br=ir(w),Pe.attr("y",br[0]).attr("height",br[1]-br[0]),Re(Xe)),ge(Xe)})}ne.event=function(_e){_e.each(function(){var Se=v.of(this,arguments),Le={x:S,y:F,i:L,j:Y},Ge=this.__chart__||Le;this.__chart__=Le,zn?e.select(this).transition().each("start.brush",function(){L=Ge.i,Y=Ge.j,S=Ge.x,F=Ge.y,Se({type:"brushstart"})}).tween("brush:brush",function(){var Xe=gs(S,Le.x),Pe=gs(F,Le.y);return L=Y=null,function(br){S=Le.x=Xe(br),F=Le.y=Pe(br),Se({type:"brush",mode:"resize"})}}).each("end.brush",function(){L=Le.i,Y=Le.j,Se({type:"brush",mode:"resize"}),Se({type:"brushend"})}):(Se({type:"brushstart"}),Se({type:"brush",mode:"resize"}),Se({type:"brushend"}))})};function ge(_e){_e.selectAll(".resize").attr("transform",function(Se){return"translate("+S[+/e$/.test(Se)]+","+F[+/^s/.test(Se)]+")"})}function ye(_e){_e.select(".extent").attr("x",S[0]),_e.selectAll(".extent,.n>rect,.s>rect").attr("width",S[1]-S[0])}function Re(_e){_e.select(".extent").attr("y",F[0]),_e.selectAll(".extent,.e>rect,.w>rect").attr("height",F[1]-F[0])}function Ve(){var _e=this,Se=e.select(e.event.target),Le=v.of(_e,arguments),Ge=e.select(_e),Xe=Se.datum(),Pe=!/^(n|s)$/.test(Xe)&&g,br=!/^(e|w)$/.test(Xe)&&w,Yr=Se.classed("extent"),$r=jr(_e),Xr,tt=e.mouse(_e),at,Tt=e.select(i(_e)).on("keydown.brush",ia).on("keyup.brush",pn);if(e.event.changedTouches?Tt.on("touchmove.brush",ca).on("touchend.brush",kt):Tt.on("mousemove.brush",ca).on("mouseup.brush",kt),Ge.interrupt().selectAll("*").interrupt(),Yr)tt[0]=S[0]-tt[0],tt[1]=F[0]-tt[1];else if(Xe){var it=+/w$/.test(Xe),bt=+/^n/.test(Xe);at=[S[1-it]-tt[0],F[1-bt]-tt[1]],tt[0]=S[it],tt[1]=F[bt]}else e.event.altKey&&(Xr=tt.slice());Ge.style("pointer-events","none").selectAll(".resize").style("display",null),e.select("body").style("cursor",Se.style("cursor")),Le({type:"brushstart"}),ca();function ia(){e.event.keyCode==32&&(Yr||(Xr=null,tt[0]-=S[1],tt[1]-=F[1],Yr=2),xe())}function pn(){e.event.keyCode==32&&Yr==2&&(tt[0]+=S[1],tt[1]+=F[1],Yr=0,xe())}function ca(){var Ct=e.mouse(_e),oa=!1;at&&(Ct[0]+=at[0],Ct[1]+=at[1]),Yr||(e.event.altKey?(Xr||(Xr=[(S[0]+S[1])/2,(F[0]+F[1])/2]),tt[0]=S[+(Ct[0]{(function(e,r){typeof Cd=="object"&&typeof V_!="undefined"?r(Cd):(e=e||self,r(e.d3=e.d3||{}))})(Cd,function(e){"use strict";var r=new Date,t=new Date;function a(Te,Ue,_r,Pr){function Nr(Ce){return Te(Ce=arguments.length===0?new Date:new Date(+Ce)),Ce}return Nr.floor=function(Ce){return Te(Ce=new Date(+Ce)),Ce},Nr.ceil=function(Ce){return Te(Ce=new Date(Ce-1)),Ue(Ce,1),Te(Ce),Ce},Nr.round=function(Ce){var He=Nr(Ce),cr=Nr.ceil(Ce);return Ce-He0))return Mr;do Mr.push(vr=new Date(+Ce)),Ue(Ce,cr),Te(Ce);while(vr=He)for(;Te(He),!Ce(He);)He.setTime(He-1)},function(He,cr){if(He>=He)if(cr<0)for(;++cr<=0;)for(;Ue(He,-1),!Ce(He););else for(;--cr>=0;)for(;Ue(He,1),!Ce(He););})},_r&&(Nr.count=function(Ce,He){return r.setTime(+Ce),t.setTime(+He),Te(r),Te(t),Math.floor(_r(r,t))},Nr.every=function(Ce){return Ce=Math.floor(Ce),!isFinite(Ce)||!(Ce>0)?null:Ce>1?Nr.filter(Pr?function(He){return Pr(He)%Ce===0}:function(He){return Nr.count(0,He)%Ce===0}):Nr}),Nr}var n=a(function(){},function(Te,Ue){Te.setTime(+Te+Ue)},function(Te,Ue){return Ue-Te});n.every=function(Te){return Te=Math.floor(Te),!isFinite(Te)||!(Te>0)?null:Te>1?a(function(Ue){Ue.setTime(Math.floor(Ue/Te)*Te)},function(Ue,_r){Ue.setTime(+Ue+_r*Te)},function(Ue,_r){return(_r-Ue)/Te}):n};var i=n.range,o=1e3,l=6e4,s=36e5,u=864e5,f=6048e5,c=a(function(Te){Te.setTime(Te-Te.getMilliseconds())},function(Te,Ue){Te.setTime(+Te+Ue*o)},function(Te,Ue){return(Ue-Te)/o},function(Te){return Te.getUTCSeconds()}),h=c.range,d=a(function(Te){Te.setTime(Te-Te.getMilliseconds()-Te.getSeconds()*o)},function(Te,Ue){Te.setTime(+Te+Ue*l)},function(Te,Ue){return(Ue-Te)/l},function(Te){return Te.getMinutes()}),p=d.range,m=a(function(Te){Te.setTime(Te-Te.getMilliseconds()-Te.getSeconds()*o-Te.getMinutes()*l)},function(Te,Ue){Te.setTime(+Te+Ue*s)},function(Te,Ue){return(Ue-Te)/s},function(Te){return Te.getHours()}),b=m.range,y=a(function(Te){Te.setHours(0,0,0,0)},function(Te,Ue){Te.setDate(Te.getDate()+Ue)},function(Te,Ue){return(Ue-Te-(Ue.getTimezoneOffset()-Te.getTimezoneOffset())*l)/u},function(Te){return Te.getDate()-1}),C=y.range;function x(Te){return a(function(Ue){Ue.setDate(Ue.getDate()-(Ue.getDay()+7-Te)%7),Ue.setHours(0,0,0,0)},function(Ue,_r){Ue.setDate(Ue.getDate()+_r*7)},function(Ue,_r){return(_r-Ue-(_r.getTimezoneOffset()-Ue.getTimezoneOffset())*l)/f})}var _=x(0),A=x(1),k=x(2),M=x(3),E=x(4),P=x(5),z=x(6),I=_.range,V=A.range,H=k.range,X=M.range,N=E.range,Q=P.range,ee=z.range,re=a(function(Te){Te.setDate(1),Te.setHours(0,0,0,0)},function(Te,Ue){Te.setMonth(Te.getMonth()+Ue)},function(Te,Ue){return Ue.getMonth()-Te.getMonth()+(Ue.getFullYear()-Te.getFullYear())*12},function(Te){return Te.getMonth()}),ae=re.range,ie=a(function(Te){Te.setMonth(0,1),Te.setHours(0,0,0,0)},function(Te,Ue){Te.setFullYear(Te.getFullYear()+Ue)},function(Te,Ue){return Ue.getFullYear()-Te.getFullYear()},function(Te){return Te.getFullYear()});ie.every=function(Te){return!isFinite(Te=Math.floor(Te))||!(Te>0)?null:a(function(Ue){Ue.setFullYear(Math.floor(Ue.getFullYear()/Te)*Te),Ue.setMonth(0,1),Ue.setHours(0,0,0,0)},function(Ue,_r){Ue.setFullYear(Ue.getFullYear()+_r*Te)})};var le=ie.range,xe=a(function(Te){Te.setUTCSeconds(0,0)},function(Te,Ue){Te.setTime(+Te+Ue*l)},function(Te,Ue){return(Ue-Te)/l},function(Te){return Te.getUTCMinutes()}),De=xe.range,Ye=a(function(Te){Te.setUTCMinutes(0,0,0)},function(Te,Ue){Te.setTime(+Te+Ue*s)},function(Te,Ue){return(Ue-Te)/s},function(Te){return Te.getUTCHours()}),Ee=Ye.range,ke=a(function(Te){Te.setUTCHours(0,0,0,0)},function(Te,Ue){Te.setUTCDate(Te.getUTCDate()+Ue)},function(Te,Ue){return(Ue-Te)/u},function(Te){return Te.getUTCDate()-1}),je=ke.range;function W(Te){return a(function(Ue){Ue.setUTCDate(Ue.getUTCDate()-(Ue.getUTCDay()+7-Te)%7),Ue.setUTCHours(0,0,0,0)},function(Ue,_r){Ue.setUTCDate(Ue.getUTCDate()+_r*7)},function(Ue,_r){return(_r-Ue)/f})}var se=W(0),he=W(1),K=W(2),J=W(3),fe=W(4),be=W(5),Ne=W(6),Ze=se.range,er=he.range,Je=K.range,tr=J.range,ze=fe.range,lr=be.range,hr=Ne.range,Ar=a(function(Te){Te.setUTCDate(1),Te.setUTCHours(0,0,0,0)},function(Te,Ue){Te.setUTCMonth(Te.getUTCMonth()+Ue)},function(Te,Ue){return Ue.getUTCMonth()-Te.getUTCMonth()+(Ue.getUTCFullYear()-Te.getUTCFullYear())*12},function(Te){return Te.getUTCMonth()}),Qe=Ar.range,mr=a(function(Te){Te.setUTCMonth(0,1),Te.setUTCHours(0,0,0,0)},function(Te,Ue){Te.setUTCFullYear(Te.getUTCFullYear()+Ue)},function(Te,Ue){return Ue.getUTCFullYear()-Te.getUTCFullYear()},function(Te){return Te.getUTCFullYear()});mr.every=function(Te){return!isFinite(Te=Math.floor(Te))||!(Te>0)?null:a(function(Ue){Ue.setUTCFullYear(Math.floor(Ue.getUTCFullYear()/Te)*Te),Ue.setUTCMonth(0,1),Ue.setUTCHours(0,0,0,0)},function(Ue,_r){Ue.setUTCFullYear(Ue.getUTCFullYear()+_r*Te)})};var qr=mr.range;e.timeDay=y,e.timeDays=C,e.timeFriday=P,e.timeFridays=Q,e.timeHour=m,e.timeHours=b,e.timeInterval=a,e.timeMillisecond=n,e.timeMilliseconds=i,e.timeMinute=d,e.timeMinutes=p,e.timeMonday=A,e.timeMondays=V,e.timeMonth=re,e.timeMonths=ae,e.timeSaturday=z,e.timeSaturdays=ee,e.timeSecond=c,e.timeSeconds=h,e.timeSunday=_,e.timeSundays=I,e.timeThursday=E,e.timeThursdays=N,e.timeTuesday=k,e.timeTuesdays=H,e.timeWednesday=M,e.timeWednesdays=X,e.timeWeek=_,e.timeWeeks=I,e.timeYear=ie,e.timeYears=le,e.utcDay=ke,e.utcDays=je,e.utcFriday=be,e.utcFridays=lr,e.utcHour=Ye,e.utcHours=Ee,e.utcMillisecond=n,e.utcMilliseconds=i,e.utcMinute=xe,e.utcMinutes=De,e.utcMonday=he,e.utcMondays=er,e.utcMonth=Ar,e.utcMonths=Qe,e.utcSaturday=Ne,e.utcSaturdays=hr,e.utcSecond=c,e.utcSeconds=h,e.utcSunday=se,e.utcSundays=Ze,e.utcThursday=fe,e.utcThursdays=ze,e.utcTuesday=K,e.utcTuesdays=Je,e.utcWednesday=J,e.utcWednesdays=tr,e.utcWeek=se,e.utcWeeks=Ze,e.utcYear=mr,e.utcYears=qr,Object.defineProperty(e,"__esModule",{value:!0})})});var h1=oe((Sd,X_)=>{(function(e,r){typeof Sd=="object"&&typeof X_!="undefined"?r(Sd,Dy()):(e=e||self,r(e.d3=e.d3||{},e.d3))})(Sd,function(e,r){"use strict";function t(Ae){if(0<=Ae.y&&Ae.y<100){var Be=new Date(-1,Ae.m,Ae.d,Ae.H,Ae.M,Ae.S,Ae.L);return Be.setFullYear(Ae.y),Be}return new Date(Ae.y,Ae.m,Ae.d,Ae.H,Ae.M,Ae.S,Ae.L)}function a(Ae){if(0<=Ae.y&&Ae.y<100){var Be=new Date(Date.UTC(-1,Ae.m,Ae.d,Ae.H,Ae.M,Ae.S,Ae.L));return Be.setUTCFullYear(Ae.y),Be}return new Date(Date.UTC(Ae.y,Ae.m,Ae.d,Ae.H,Ae.M,Ae.S,Ae.L))}function n(Ae,Be,or){return{y:Ae,m:Be,d:or,H:0,M:0,S:0,L:0}}function i(Ae){var Be=Ae.dateTime,or=Ae.date,dr=Ae.time,Dt=Ae.periods,Wt=Ae.days,ba=Ae.shortDays,_a=Ae.months,Xt=Ae.shortMonths,Ht=h(Dt),la=d(Dt),Pt=h(Wt),Ta=d(Wt),pa=h(ba),Xa=d(ba),hn=h(_a),ja=d(_a),Fa=h(Xt),Rr=d(Xt),Vt={a:zo,A:co,b:Ia,B:Yi,c:null,d:re,e:re,f:De,g:be,G:Ze,H:ae,I:ie,j:le,L:xe,m:Ye,M:Ee,p:gl,q:Vi,Q:jr,s:et,S:ke,u:je,U:W,V:he,w:K,W:J,x:null,X:null,y:fe,Y:Ne,Z:er,"%":Er},Et={a:Ri,A:os,b:ls,B:Ks,c:null,d:Je,e:Je,f:Ar,g:cr,G:vr,H:tr,I:ze,j:lr,L:hr,m:Qe,M:mr,p:ss,q:Qs,Q:jr,s:et,S:qr,u:Te,U:Ue,V:Pr,w:Nr,W:Ce,x:null,X:null,y:He,Y:Mr,Z:kr,"%":Er},Zt={a:Na,A:Jn,b:Pi,B:Kn,c:Ba,d:E,e:E,f:X,g:_,G:x,H:z,I:z,j:P,L:H,m:M,M:I,p:$t,q:k,Q,s:ee,S:V,u:m,U:b,V:y,w:p,W:C,x:ml,X:Qa,y:_,Y:x,Z:A,"%":N};Vt.x=ma(or,Vt),Vt.X=ma(dr,Vt),Vt.c=ma(Be,Vt),Et.x=ma(or,Et),Et.X=ma(dr,Et),Et.c=ma(Be,Et);function ma(ot,st){return function(jt){var Or=[],Mn=-1,sa=0,Wa=ot.length,en,Vn,yl;for(jt instanceof Date||(jt=new Date(+jt));++Mn53)return null;"w"in Or||(Or.w=1),"Z"in Or?(sa=a(n(Or.y,0,1)),Wa=sa.getUTCDay(),sa=Wa>4||Wa===0?r.utcMonday.ceil(sa):r.utcMonday(sa),sa=r.utcDay.offset(sa,(Or.V-1)*7),Or.y=sa.getUTCFullYear(),Or.m=sa.getUTCMonth(),Or.d=sa.getUTCDate()+(Or.w+6)%7):(sa=t(n(Or.y,0,1)),Wa=sa.getDay(),sa=Wa>4||Wa===0?r.timeMonday.ceil(sa):r.timeMonday(sa),sa=r.timeDay.offset(sa,(Or.V-1)*7),Or.y=sa.getFullYear(),Or.m=sa.getMonth(),Or.d=sa.getDate()+(Or.w+6)%7)}else("W"in Or||"U"in Or)&&("w"in Or||(Or.w="u"in Or?Or.u%7:"W"in Or?1:0),Wa="Z"in Or?a(n(Or.y,0,1)).getUTCDay():t(n(Or.y,0,1)).getDay(),Or.m=0,Or.d="W"in Or?(Or.w+6)%7+Or.W*7-(Wa+5)%7:Or.w+Or.U*7-(Wa+6)%7);return"Z"in Or?(Or.H+=Or.Z/100|0,Or.M+=Or.Z%100,a(Or)):t(Or)}}function Rt(ot,st,jt,Or){for(var Mn=0,sa=st.length,Wa=jt.length,en,Vn;Mn=Wa)return-1;if(en=st.charCodeAt(Mn++),en===37){if(en=st.charAt(Mn++),Vn=Zt[en in o?st.charAt(Mn++):en],!Vn||(Or=Vn(ot,jt,Or))<0)return-1}else if(en!=jt.charCodeAt(Or++))return-1}return Or}function $t(ot,st,jt){var Or=Ht.exec(st.slice(jt));return Or?(ot.p=la[Or[0].toLowerCase()],jt+Or[0].length):-1}function Na(ot,st,jt){var Or=pa.exec(st.slice(jt));return Or?(ot.w=Xa[Or[0].toLowerCase()],jt+Or[0].length):-1}function Jn(ot,st,jt){var Or=Pt.exec(st.slice(jt));return Or?(ot.w=Ta[Or[0].toLowerCase()],jt+Or[0].length):-1}function Pi(ot,st,jt){var Or=Fa.exec(st.slice(jt));return Or?(ot.m=Rr[Or[0].toLowerCase()],jt+Or[0].length):-1}function Kn(ot,st,jt){var Or=hn.exec(st.slice(jt));return Or?(ot.m=ja[Or[0].toLowerCase()],jt+Or[0].length):-1}function Ba(ot,st,jt){return Rt(ot,Be,st,jt)}function ml(ot,st,jt){return Rt(ot,or,st,jt)}function Qa(ot,st,jt){return Rt(ot,dr,st,jt)}function zo(ot){return ba[ot.getDay()]}function co(ot){return Wt[ot.getDay()]}function Ia(ot){return Xt[ot.getMonth()]}function Yi(ot){return _a[ot.getMonth()]}function gl(ot){return Dt[+(ot.getHours()>=12)]}function Vi(ot){return 1+~~(ot.getMonth()/3)}function Ri(ot){return ba[ot.getUTCDay()]}function os(ot){return Wt[ot.getUTCDay()]}function ls(ot){return Xt[ot.getUTCMonth()]}function Ks(ot){return _a[ot.getUTCMonth()]}function ss(ot){return Dt[+(ot.getUTCHours()>=12)]}function Qs(ot){return 1+~~(ot.getUTCMonth()/3)}return{format:function(ot){var st=ma(ot+="",Vt);return st.toString=function(){return ot},st},parse:function(ot){var st=Ea(ot+="",!1);return st.toString=function(){return ot},st},utcFormat:function(ot){var st=ma(ot+="",Et);return st.toString=function(){return ot},st},utcParse:function(ot){var st=Ea(ot+="",!0);return st.toString=function(){return ot},st}}}var o={"-":"",_:" ",0:"0"},l=/^\s*\d+/,s=/^%/,u=/[\\^$*+?|[\]().{}]/g;function f(Ae,Be,or){var dr=Ae<0?"-":"",Dt=(dr?-Ae:Ae)+"",Wt=Dt.length;return dr+(Wt68?1900:2e3),or+dr[0].length):-1}function A(Ae,Be,or){var dr=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(Be.slice(or,or+6));return dr?(Ae.Z=dr[1]?0:-(dr[2]+(dr[3]||"00")),or+dr[0].length):-1}function k(Ae,Be,or){var dr=l.exec(Be.slice(or,or+1));return dr?(Ae.q=dr[0]*3-3,or+dr[0].length):-1}function M(Ae,Be,or){var dr=l.exec(Be.slice(or,or+2));return dr?(Ae.m=dr[0]-1,or+dr[0].length):-1}function E(Ae,Be,or){var dr=l.exec(Be.slice(or,or+2));return dr?(Ae.d=+dr[0],or+dr[0].length):-1}function P(Ae,Be,or){var dr=l.exec(Be.slice(or,or+3));return dr?(Ae.m=0,Ae.d=+dr[0],or+dr[0].length):-1}function z(Ae,Be,or){var dr=l.exec(Be.slice(or,or+2));return dr?(Ae.H=+dr[0],or+dr[0].length):-1}function I(Ae,Be,or){var dr=l.exec(Be.slice(or,or+2));return dr?(Ae.M=+dr[0],or+dr[0].length):-1}function V(Ae,Be,or){var dr=l.exec(Be.slice(or,or+2));return dr?(Ae.S=+dr[0],or+dr[0].length):-1}function H(Ae,Be,or){var dr=l.exec(Be.slice(or,or+3));return dr?(Ae.L=+dr[0],or+dr[0].length):-1}function X(Ae,Be,or){var dr=l.exec(Be.slice(or,or+6));return dr?(Ae.L=Math.floor(dr[0]/1e3),or+dr[0].length):-1}function N(Ae,Be,or){var dr=s.exec(Be.slice(or,or+1));return dr?or+dr[0].length:-1}function Q(Ae,Be,or){var dr=l.exec(Be.slice(or));return dr?(Ae.Q=+dr[0],or+dr[0].length):-1}function ee(Ae,Be,or){var dr=l.exec(Be.slice(or));return dr?(Ae.s=+dr[0],or+dr[0].length):-1}function re(Ae,Be){return f(Ae.getDate(),Be,2)}function ae(Ae,Be){return f(Ae.getHours(),Be,2)}function ie(Ae,Be){return f(Ae.getHours()%12||12,Be,2)}function le(Ae,Be){return f(1+r.timeDay.count(r.timeYear(Ae),Ae),Be,3)}function xe(Ae,Be){return f(Ae.getMilliseconds(),Be,3)}function De(Ae,Be){return xe(Ae,Be)+"000"}function Ye(Ae,Be){return f(Ae.getMonth()+1,Be,2)}function Ee(Ae,Be){return f(Ae.getMinutes(),Be,2)}function ke(Ae,Be){return f(Ae.getSeconds(),Be,2)}function je(Ae){var Be=Ae.getDay();return Be===0?7:Be}function W(Ae,Be){return f(r.timeSunday.count(r.timeYear(Ae)-1,Ae),Be,2)}function se(Ae){var Be=Ae.getDay();return Be>=4||Be===0?r.timeThursday(Ae):r.timeThursday.ceil(Ae)}function he(Ae,Be){return Ae=se(Ae),f(r.timeThursday.count(r.timeYear(Ae),Ae)+(r.timeYear(Ae).getDay()===4),Be,2)}function K(Ae){return Ae.getDay()}function J(Ae,Be){return f(r.timeMonday.count(r.timeYear(Ae)-1,Ae),Be,2)}function fe(Ae,Be){return f(Ae.getFullYear()%100,Be,2)}function be(Ae,Be){return Ae=se(Ae),f(Ae.getFullYear()%100,Be,2)}function Ne(Ae,Be){return f(Ae.getFullYear()%1e4,Be,4)}function Ze(Ae,Be){var or=Ae.getDay();return Ae=or>=4||or===0?r.timeThursday(Ae):r.timeThursday.ceil(Ae),f(Ae.getFullYear()%1e4,Be,4)}function er(Ae){var Be=Ae.getTimezoneOffset();return(Be>0?"-":(Be*=-1,"+"))+f(Be/60|0,"0",2)+f(Be%60,"0",2)}function Je(Ae,Be){return f(Ae.getUTCDate(),Be,2)}function tr(Ae,Be){return f(Ae.getUTCHours(),Be,2)}function ze(Ae,Be){return f(Ae.getUTCHours()%12||12,Be,2)}function lr(Ae,Be){return f(1+r.utcDay.count(r.utcYear(Ae),Ae),Be,3)}function hr(Ae,Be){return f(Ae.getUTCMilliseconds(),Be,3)}function Ar(Ae,Be){return hr(Ae,Be)+"000"}function Qe(Ae,Be){return f(Ae.getUTCMonth()+1,Be,2)}function mr(Ae,Be){return f(Ae.getUTCMinutes(),Be,2)}function qr(Ae,Be){return f(Ae.getUTCSeconds(),Be,2)}function Te(Ae){var Be=Ae.getUTCDay();return Be===0?7:Be}function Ue(Ae,Be){return f(r.utcSunday.count(r.utcYear(Ae)-1,Ae),Be,2)}function _r(Ae){var Be=Ae.getUTCDay();return Be>=4||Be===0?r.utcThursday(Ae):r.utcThursday.ceil(Ae)}function Pr(Ae,Be){return Ae=_r(Ae),f(r.utcThursday.count(r.utcYear(Ae),Ae)+(r.utcYear(Ae).getUTCDay()===4),Be,2)}function Nr(Ae){return Ae.getUTCDay()}function Ce(Ae,Be){return f(r.utcMonday.count(r.utcYear(Ae)-1,Ae),Be,2)}function He(Ae,Be){return f(Ae.getUTCFullYear()%100,Be,2)}function cr(Ae,Be){return Ae=_r(Ae),f(Ae.getUTCFullYear()%100,Be,2)}function Mr(Ae,Be){return f(Ae.getUTCFullYear()%1e4,Be,4)}function vr(Ae,Be){var or=Ae.getUTCDay();return Ae=or>=4||or===0?r.utcThursday(Ae):r.utcThursday.ceil(Ae),f(Ae.getUTCFullYear()%1e4,Be,4)}function kr(){return"+0000"}function Er(){return"%"}function jr(Ae){return+Ae}function et(Ae){return Math.floor(+Ae/1e3)}var nr;Cr({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 Cr(Ae){return nr=i(Ae),e.timeFormat=nr.format,e.timeParse=nr.parse,e.utcFormat=nr.utcFormat,e.utcParse=nr.utcParse,nr}var ar="%Y-%m-%dT%H:%M:%S.%LZ";function Fr(Ae){return Ae.toISOString()}var Wr=Date.prototype.toISOString?Fr:e.utcFormat(ar);function Br(Ae){var Be=new Date(Ae);return isNaN(Be)?null:Be}var Zr=+new Date("2000-01-01T00:00:00.000Z")?Br:e.utcParse(ar);e.isoFormat=Wr,e.isoParse=Zr,e.timeFormatDefaultLocale=Cr,e.timeFormatLocale=i,Object.defineProperty(e,"__esModule",{value:!0})})});var Fy=oe((Dd,j_)=>{(function(e,r){typeof Dd=="object"&&typeof j_!="undefined"?r(Dd):(e=typeof globalThis!="undefined"?globalThis:e||self,r(e.d3=e.d3||{}))})(Dd,(function(e){"use strict";function r(M){return Math.abs(M=Math.round(M))>=1e21?M.toLocaleString("en").replace(/,/g,""):M.toString(10)}function t(M,E){if((P=(M=E?M.toExponential(E-1):M.toExponential()).indexOf("e"))<0)return null;var P,z=M.slice(0,P);return[z.length>1?z[0]+z.slice(2):z,+M.slice(P+1)]}function a(M){return M=t(Math.abs(M)),M?M[1]:NaN}function n(M,E){return function(P,z){for(var I=P.length,V=[],H=0,X=M[0],N=0;I>0&&X>0&&(N+X+1>z&&(X=Math.max(1,z-N)),V.push(P.substring(I-=X,I+X)),!((N+=X+1)>z));)X=M[H=(H+1)%M.length];return V.reverse().join(E)}}function i(M){return function(E){return E.replace(/[0-9]/g,function(P){return M[+P]})}}var o=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function l(M){if(!(E=o.exec(M)))throw new Error("invalid format: "+M);var E;return new s({fill:E[1],align:E[2],sign:E[3],symbol:E[4],zero:E[5],width:E[6],comma:E[7],precision:E[8]&&E[8].slice(1),trim:E[9],type:E[10]})}l.prototype=s.prototype;function s(M){this.fill=M.fill===void 0?" ":M.fill+"",this.align=M.align===void 0?">":M.align+"",this.sign=M.sign===void 0?"-":M.sign+"",this.symbol=M.symbol===void 0?"":M.symbol+"",this.zero=!!M.zero,this.width=M.width===void 0?void 0:+M.width,this.comma=!!M.comma,this.precision=M.precision===void 0?void 0:+M.precision,this.trim=!!M.trim,this.type=M.type===void 0?"":M.type+""}s.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 u(M){e:for(var E=M.length,P=1,z=-1,I;P0&&(z=0);break}return z>0?M.slice(0,z)+M.slice(I+1):M}var f;function c(M,E){var P=t(M,E);if(!P)return M+"";var z=P[0],I=P[1],V=I-(f=Math.max(-8,Math.min(8,Math.floor(I/3)))*3)+1,H=z.length;return V===H?z:V>H?z+new Array(V-H+1).join("0"):V>0?z.slice(0,V)+"."+z.slice(V):"0."+new Array(1-V).join("0")+t(M,Math.max(0,E+V-1))[0]}function h(M,E){var P=t(M,E);if(!P)return M+"";var z=P[0],I=P[1];return I<0?"0."+new Array(-I).join("0")+z:z.length>I+1?z.slice(0,I+1)+"."+z.slice(I+1):z+new Array(I-z.length+2).join("0")}var d={"%":function(M,E){return(M*100).toFixed(E)},b:function(M){return Math.round(M).toString(2)},c:function(M){return M+""},d:r,e:function(M,E){return M.toExponential(E)},f:function(M,E){return M.toFixed(E)},g:function(M,E){return M.toPrecision(E)},o:function(M){return Math.round(M).toString(8)},p:function(M,E){return h(M*100,E)},r:h,s:c,X:function(M){return Math.round(M).toString(16).toUpperCase()},x:function(M){return Math.round(M).toString(16)}};function p(M){return M}var m=Array.prototype.map,b=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function y(M){var E=M.grouping===void 0||M.thousands===void 0?p:n(m.call(M.grouping,Number),M.thousands+""),P=M.currency===void 0?"":M.currency[0]+"",z=M.currency===void 0?"":M.currency[1]+"",I=M.decimal===void 0?".":M.decimal+"",V=M.numerals===void 0?p:i(m.call(M.numerals,String)),H=M.percent===void 0?"%":M.percent+"",X=M.minus===void 0?"-":M.minus+"",N=M.nan===void 0?"NaN":M.nan+"";function Q(re){re=l(re);var ae=re.fill,ie=re.align,le=re.sign,xe=re.symbol,De=re.zero,Ye=re.width,Ee=re.comma,ke=re.precision,je=re.trim,W=re.type;W==="n"?(Ee=!0,W="g"):d[W]||(ke===void 0&&(ke=12),je=!0,W="g"),(De||ae==="0"&&ie==="=")&&(De=!0,ae="0",ie="=");var se=xe==="$"?P:xe==="#"&&/[boxX]/.test(W)?"0"+W.toLowerCase():"",he=xe==="$"?z:/[%p]/.test(W)?H:"",K=d[W],J=/[defgprs%]/.test(W);ke=ke===void 0?6:/[gprs]/.test(W)?Math.max(1,Math.min(21,ke)):Math.max(0,Math.min(20,ke));function fe(be){var Ne=se,Ze=he,er,Je,tr;if(W==="c")Ze=K(be)+Ze,be="";else{be=+be;var ze=be<0||1/be<0;if(be=isNaN(be)?N:K(Math.abs(be),ke),je&&(be=u(be)),ze&&+be==0&&le!=="+"&&(ze=!1),Ne=(ze?le==="("?le:X:le==="-"||le==="("?"":le)+Ne,Ze=(W==="s"?b[8+f/3]:"")+Ze+(ze&&le==="("?")":""),J){for(er=-1,Je=be.length;++ertr||tr>57){Ze=(tr===46?I+be.slice(er+1):be.slice(er))+Ze,be=be.slice(0,er);break}}}Ee&&!De&&(be=E(be,1/0));var lr=Ne.length+be.length+Ze.length,hr=lr>1)+Ne+be+Ze+hr.slice(lr);break;default:be=hr+Ne+be+Ze;break}return V(be)}return fe.toString=function(){return re+""},fe}function ee(re,ae){var ie=Q((re=l(re),re.type="f",re)),le=Math.max(-8,Math.min(8,Math.floor(a(ae)/3)))*3,xe=Math.pow(10,-le),De=b[8+le/3];return function(Ye){return ie(xe*Ye)+De}}return{format:Q,formatPrefix:ee}}var C;x({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function x(M){return C=y(M),e.format=C.format,e.formatPrefix=C.formatPrefix,C}function _(M){return Math.max(0,-a(Math.abs(M)))}function A(M,E){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(a(E)/3)))*3-a(Math.abs(M)))}function k(M,E){return M=Math.abs(M),E=Math.abs(E)-M,Math.max(0,a(E)-a(M))+1}e.FormatSpecifier=s,e.formatDefaultLocale=x,e.formatLocale=y,e.formatSpecifier=l,e.precisionFixed=_,e.precisionPrefix=A,e.precisionRound=k,Object.defineProperty(e,"__esModule",{value:!0})}))});var Z_=oe((s4e,W_)=>{"use strict";W_.exports=function(e){for(var r=e.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}});var Qt=oe((u4e,$_)=>{"use strict";var UY=Z_();$_.exports=function(e){var r=typeof e;if(r==="string"){var t=e;if(e=+e,e===0&&UY(t))return!1}else if(r!=="number")return!1;return e-e<1}});var nn={};Ua(nn,{ALMOST_EQUAL:()=>lV,BADNUM:()=>Ey,EPOCHJD:()=>oV,FP_SAFE:()=>GY,LOG_CLIP:()=>sV,MINUS_SIGN:()=>uV,ONEAVGMONTH:()=>JY,ONEAVGQUARTER:()=>WY,ONEAVGYEAR:()=>VY,ONEDAY:()=>eV,ONEHOUR:()=>rV,ONEMAXMONTH:()=>$Y,ONEMAXQUARTER:()=>jY,ONEMAXYEAR:()=>YY,ONEMICROSEC:()=>iV,ONEMILLI:()=>nV,ONEMIN:()=>tV,ONEMINMONTH:()=>KY,ONEMINQUARTER:()=>ZY,ONEMINYEAR:()=>XY,ONESEC:()=>aV,ONEWEEK:()=>QY});var Ey,GY,YY,VY,XY,jY,WY,ZY,$Y,JY,KY,QY,eV,rV,tV,aV,nV,iV,oV,lV,sV,uV,Za=Oa(()=>{"use strict";Ey=void 0,GY=Number.MAX_VALUE*1e-4,YY=316224e5,VY=315576e5,XY=31536e6,jY=79488e5,WY=78894e5,ZY=76896e5,$Y=26784e5,JY=26298e5,KY=24192e5,QY=6048e5,eV=864e5,rV=36e5,tV=6e4,aV=1e3,nV=1,iV=.001,oV=24405875e-1,lV=1-1e-6,sV=10,uV="\u2212"});var Ly=oe((Fd,J_)=>{(function(e,r){typeof Fd=="object"&&typeof J_!="undefined"?r(Fd):(e=typeof globalThis!="undefined"?globalThis:e||self,r(e["base64-arraybuffer"]={}))})(Fd,(function(e){"use strict";for(var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),a=0;a>2],f+=r[(l[s]&3)<<4|l[s+1]>>4],f+=r[(l[s+1]&15)<<2|l[s+2]>>6],f+=r[l[s+2]&63];return u%3===2?f=f.substring(0,f.length-1)+"=":u%3===1&&(f=f.substring(0,f.length-2)+"=="),f},i=function(o){var l=o.length*.75,s=o.length,u,f=0,c,h,d,p;o[o.length-1]==="="&&(l--,o[o.length-2]==="="&&l--);var m=new ArrayBuffer(l),b=new Uint8Array(m);for(u=0;u>4,b[f++]=(h&15)<<4|d>>2,b[f++]=(d&3)<<6|p&63;return m};e.decode=i,e.encode=n,Object.defineProperty(e,"__esModule",{value:!0})}))});var h0=oe((f4e,K_)=>{"use strict";K_.exports=function(r){return window&&window.process&&window.process.versions?Object.prototype.toString.call(r)==="[object Object]":Object.prototype.toString.call(r)==="[object Object]"&&Object.getPrototypeOf(r).hasOwnProperty("hasOwnProperty")}});var ro=oe(Nl=>{"use strict";var fV=Ly().decode,cV=h0(),qy=Array.isArray,vV=ArrayBuffer,hV=DataView;function Q_(e){return vV.isView(e)&&!(e instanceof hV)}Nl.isTypedArray=Q_;function Ed(e){return qy(e)||Q_(e)}Nl.isArrayOrTypedArray=Ed;function dV(e){return!Ed(e[0])}Nl.isArray1D=dV;Nl.ensureArray=function(e,r){return qy(e)||(e=[]),e.length=r,e};var jn={u1c:typeof Uint8ClampedArray=="undefined"?void 0:Uint8ClampedArray,i1:typeof Int8Array=="undefined"?void 0:Int8Array,u1:typeof Uint8Array=="undefined"?void 0:Uint8Array,i2:typeof Int16Array=="undefined"?void 0:Int16Array,u2:typeof Uint16Array=="undefined"?void 0:Uint16Array,i4:typeof Int32Array=="undefined"?void 0:Int32Array,u4:typeof Uint32Array=="undefined"?void 0:Uint32Array,f4:typeof Float32Array=="undefined"?void 0:Float32Array,f8:typeof Float64Array=="undefined"?void 0:Float64Array};jn.uint8c=jn.u1c;jn.uint8=jn.u1;jn.int8=jn.i1;jn.uint16=jn.u2;jn.int16=jn.i2;jn.uint32=jn.u4;jn.int32=jn.i4;jn.float32=jn.f4;jn.float64=jn.f8;function Py(e){return e.constructor===ArrayBuffer}Nl.isArrayBuffer=Py;Nl.decodeTypedArraySpec=function(e){var r=[],t=pV(e),a=t.dtype,n=jn[a];if(!n)throw new Error('Error in dtype: "'+a+'"');var i=n.BYTES_PER_ELEMENT,o=t.bdata;Py(o)||(o=fV(o));var l=t.shape===void 0?[o.byteLength/i]:(""+t.shape).split(",");l.reverse();var s=l.length,u,f,c=+l[0],h=i*c,d=0;if(s===1)r=new n(o);else if(s===2)for(u=+l[1],f=0;f{"use strict";var rx=Qt(),zy=ro().isArrayOrTypedArray;ix.exports=function(r,t){if(rx(t))t=String(t);else if(typeof t!="string"||t.slice(-4)==="[-1]")throw"bad property string";var a=t.split("."),n,i,o,l;for(l=0;l{"use strict";var d1=Q2(),_V=/^\w*$/,xV=0,ox=1,Ld=2,lx=3,Pf=4;sx.exports=function(r,t,a,n){a=a||"name",n=n||"value";var i,o,l,s={};t&&t.length?(l=d1(r,t),o=l.get()):o=r,t=t||"";var u={};if(o)for(i=0;i2)return s[d]=s[d]|Ld,c.set(h,null);if(f){for(i=d;i{"use strict";var wV=/^(.*)(\.[^\.\[\]]+|\[\d\])$/,AV=/^[^\.\[\]]+$/;fx.exports=function(e,r){for(;r;){var t=e.match(wV);if(t)e=t[1];else if(e.match(AV))e="";else throw new Error("bad relativeAttr call:"+[e,r]);if(r.charAt(0)==="^")r=r.slice(1);else break}return e&&r.charAt(0)!=="["?e+"."+r:e+r}});var qd=oe((p4e,vx)=>{"use strict";var MV=Qt();vx.exports=function(r,t){if(r>0)return Math.log(r)/Math.LN10;var a=Math.log(Math.min(t[0],t[1]))/Math.LN10;return MV(a)||(a=Math.log(Math.max(t[0],t[1]))/Math.LN10-6),a}});var px=oe((m4e,dx)=>{"use strict";var hx=ro().isArrayOrTypedArray,ev=h0();dx.exports=function e(r,t){for(var a in t){var n=t[a],i=r[a];if(i!==n)if(a.charAt(0)==="_"||typeof n=="function"){if(a in r)continue;r[a]=n}else if(hx(n)&&hx(i)&&ev(n[0])){if(a==="customdata"||a==="ids")continue;for(var o=Math.min(n.length,i.length),l=0;lTV,modHalf:()=>kV});function TV(e,r){let t=e%r;return t<0?t+r:t}function kV(e,r){return Math.abs(e)>r/2?e-Math.round(e/r)*r:e}var m1=Oa(()=>{"use strict"});var Dn=oe(av=>{"use strict";var mx=h0(),rv=Array.isArray;function CV(e,r){var t,a;for(t=0;t{"use strict";gx.exports=function(e){var r=e.variantValues,t=e.editType,a=e.colorEditType;a===void 0&&(a=t);var n={editType:t,valType:"integer",min:1,max:1e3,extras:["normal","bold"],dflt:"normal"};e.noNumericWeightValues&&(n.valType="enumerated",n.values=n.extras,n.extras=void 0,n.min=void 0,n.max=void 0);var i={family:{valType:"string",noBlank:!0,strict:!0,editType:t},size:{valType:"number",min:1,editType:t},color:{valType:"color",editType:a},weight:n,style:{editType:t,valType:"enumerated",values:["normal","italic"],dflt:"normal"},variant:e.noFontVariant?void 0:{editType:t,valType:"enumerated",values:r||["normal","small-caps","all-small-caps","all-petite-caps","petite-caps","unicase"],dflt:"normal"},textcase:e.noFontTextcase?void 0:{editType:t,valType:"enumerated",values:["normal","word caps","upper","lower"],dflt:"normal"},lineposition:e.noFontLineposition?void 0:{editType:t,valType:"flaglist",flags:["under","over","through"],extras:["none"],dflt:"none"},shadow:e.noFontShadow?void 0:{editType:t,valType:"string",dflt:e.autoShadowDflt?"auto":"none"},editType:t};return e.autoSize&&(i.size.dflt="auto"),e.autoColor&&(i.color.dflt="auto"),e.arrayOk&&(i.family.arrayOk=!0,i.weight.arrayOk=!0,i.style.arrayOk=!0,e.noFontVariant||(i.variant.arrayOk=!0),e.noFontTextcase||(i.textcase.arrayOk=!0),e.noFontLineposition||(i.lineposition.arrayOk=!0),e.noFontShadow||(i.shadow.arrayOk=!0),i.size.arrayOk=!0,i.color.arrayOk=!0),i}});var nv={};Ua(nv,{HOVERARROWSIZE:()=>DV,HOVERFONT:()=>LV,HOVERFONTSIZE:()=>EV,HOVERID:()=>PV,HOVERMINTIME:()=>qV,HOVERTEXTPAD:()=>FV,YANGLE:()=>SV});var SV,DV,FV,EV,LV,qV,PV,iv=Oa(()=>{"use strict";SV=60,DV=6,FV=3,EV=13,LV="Arial, sans-serif",qV=50,PV="-hover"});var g1=oe((b4e,_x)=>{"use strict";var yx=(iv(),xr(nv)),bx=xi(),Ny=bx({editType:"none"});Ny.family.dflt=yx.HOVERFONT;Ny.size.dflt=yx.HOVERFONTSIZE;_x.exports={clickmode:{valType:"flaglist",flags:["event","select"],dflt:"event",editType:"plot",extras:["none"]},dragmode:{valType:"enumerated",values:["zoom","pan","select","lasso","drawclosedpath","drawopenpath","drawline","drawrect","drawcircle","orbit","turntable",!1],dflt:"zoom",editType:"modebar"},hovermode:{valType:"enumerated",values:["x","y","closest",!1,"x unified","y unified"],dflt:"closest",editType:"modebar"},hoversort:{valType:"enumerated",values:["trace","value descending","value ascending"],dflt:"trace",editType:"none"},hoversubplots:{valType:"enumerated",values:["single","overlaying","axis"],dflt:"overlaying",editType:"none"},hoveranywhere:{valType:"boolean",dflt:!1,editType:"none"},clickanywhere:{valType:"boolean",dflt:!1,editType:"none"},hoverdistance:{valType:"integer",min:-1,dflt:20,editType:"none"},spikedistance:{valType:"integer",min:-1,dflt:-1,editType:"none"},hoverlabel:{bgcolor:{valType:"color",editType:"none"},bordercolor:{valType:"color",editType:"none"},font:Ny,grouptitlefont:bx({editType:"none"}),align:{valType:"enumerated",values:["left","right","auto"],dflt:"auto",editType:"none"},namelength:{valType:"integer",min:-1,dflt:15,editType:"none"},showarrow:{valType:"boolean",dflt:!0,editType:"none"},editType:"none"},selectdirection:{valType:"enumerated",values:["h","v","d","any"],dflt:"any",editType:"none"}}});var Pd=oe((_4e,xx)=>{"use strict";var RV=xi(),ov=g1().hoverlabel,lv=Dn().extendFlat;xx.exports={hoverlabel:{bgcolor:lv({},ov.bgcolor,{arrayOk:!0}),bordercolor:lv({},ov.bordercolor,{arrayOk:!0}),font:RV({arrayOk:!0,editType:"none"}),align:lv({},ov.align,{arrayOk:!0}),namelength:lv({},ov.namelength,{arrayOk:!0}),showarrow:lv({},ov.showarrow),editType:"none"}}});var Wo=oe((x4e,wx)=>{"use strict";var zV=xi(),NV=Pd();wx.exports={type:{valType:"enumerated",values:[],dflt:"scatter",editType:"calc+clearAxisTypes",_noTemplating:!0},visible:{valType:"enumerated",values:[!0,!1,"legendonly"],dflt:!0,editType:"calc"},showlegend:{valType:"boolean",dflt:!0,editType:"style"},legend:{valType:"subplotid",dflt:"legend",editType:"style"},legendgroup:{valType:"string",dflt:"",editType:"style"},legendgrouptitle:{text:{valType:"string",dflt:"",editType:"style"},font:zV({editType:"style"}),editType:"style"},legendrank:{valType:"number",dflt:1e3,editType:"style"},legendwidth:{valType:"number",min:0,editType:"style"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"style"},name:{valType:"string",editType:"style"},uid:{valType:"string",editType:"plot",anim:!0},ids:{valType:"data_array",editType:"calc",anim:!0},customdata:{valType:"data_array",editType:"calc"},meta:{valType:"any",arrayOk:!0,editType:"plot"},selectedpoints:{valType:"any",editType:"calc"},hoverinfo:{valType:"flaglist",flags:["x","y","z","text","name"],extras:["all","none","skip"],arrayOk:!0,dflt:"all",editType:"none"},hoverlabel:NV.hoverlabel,uirevision:{valType:"any",editType:"none"}}});var dA=oe((S4e,hA)=>{var D4=Object.defineProperty,BV=Object.getOwnPropertyDescriptor,IV=Object.getOwnPropertyNames,HV=Object.prototype.hasOwnProperty,OV=(e,r)=>{for(var t in r)D4(e,t,{get:r[t],enumerable:!0})},UV=(e,r,t,a)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of IV(r))!HV.call(e,n)&&n!==t&&D4(e,n,{get:()=>r[n],enumerable:!(a=BV(r,n))||a.enumerable});return e},GV=e=>UV(D4({},"__esModule",{value:!0}),e),Lx={};OV(Lx,{a98:()=>PZ,average:()=>IX,averageAngle:()=>Ss,averageNumber:()=>Zx,blend:()=>BW,blerp:()=>u4,clampChroma:()=>nZ,clampGamut:()=>t5,clampRgb:()=>aZ,colorsNamed:()=>Px,convertA98ToXyz65:()=>f4,convertCubehelixToRgb:()=>jx,convertDlchToLab65:()=>Gd,convertHsiToRgb:()=>aw,convertHslToRgb:()=>ow,convertHsvToRgb:()=>R4,convertHwbToRgb:()=>fw,convertItpToXyz65:()=>v4,convertJabToJch:()=>d4,convertJabToRgb:()=>O4,convertJabToXyz65:()=>I4,convertJchToJab:()=>p4,convertLab65ToDlch:()=>Yd,convertLab65ToRgb:()=>pv,convertLab65ToXyz65:()=>L4,convertLabToLch:()=>Tu,convertLabToRgb:()=>G4,convertLabToXyz50:()=>ep,convertLchToLab:()=>ku,convertLchuvToLuv:()=>X4,convertLrgbToOklab:()=>j4,convertLrgbToRgb:()=>Of,convertLuvToLchuv:()=>V4,convertLuvToXyz50:()=>Xd,convertOkhslToOklab:()=>y4,convertOkhsvToOklab:()=>_4,convertOklabToLrgb:()=>T1,convertOklabToOkhsl:()=>g4,convertOklabToOkhsv:()=>b4,convertOklabToRgb:()=>yv,convertP3ToXyz65:()=>x4,convertProphotoToXyz50:()=>M4,convertRec2020ToXyz65:()=>k4,convertRgbToCubehelix:()=>Xx,convertRgbToHsi:()=>nw,convertRgbToHsl:()=>lw,convertRgbToHsv:()=>z4,convertRgbToHwb:()=>cw,convertRgbToJab:()=>H4,convertRgbToLab:()=>Y4,convertRgbToLab65:()=>mv,convertRgbToLrgb:()=>Hf,convertRgbToOklab:()=>gv,convertRgbToXyb:()=>Iw,convertRgbToXyz50:()=>M1,convertRgbToXyz65:()=>d0,convertRgbToYiq:()=>Xw,convertXybToRgb:()=>Hw,convertXyz50ToLab:()=>rp,convertXyz50ToLuv:()=>Vd,convertXyz50ToProphoto:()=>A4,convertXyz50ToRgb:()=>A1,convertXyz50ToXyz65:()=>Yw,convertXyz65ToA98:()=>c4,convertXyz65ToItp:()=>h4,convertXyz65ToJab:()=>B4,convertXyz65ToLab65:()=>q4,convertXyz65ToP3:()=>w4,convertXyz65ToRec2020:()=>T4,convertXyz65ToRgb:()=>p0,convertXyz65ToXyz50:()=>Gw,convertYiqToRgb:()=>jw,converter:()=>La,cubehelix:()=>RZ,differenceCie76:()=>LX,differenceCie94:()=>qX,differenceCiede2000:()=>PX,differenceCmc:()=>RX,differenceEuclidean:()=>w1,differenceHueChroma:()=>dv,differenceHueNaive:()=>Wx,differenceHueSaturation:()=>hv,differenceHyab:()=>zX,differenceItp:()=>BX,differenceKotsarenkoRamos:()=>NX,displayable:()=>r5,dlab:()=>zZ,dlch:()=>NZ,easingGamma:()=>sA,easingInOutSine:()=>LZ,easingMidpoint:()=>rA,easingSmootherstep:()=>FZ,easingSmoothstep:()=>CZ,easingSmoothstepInverse:()=>SZ,filterBrightness:()=>hZ,filterContrast:()=>dZ,filterDeficiencyDeuter:()=>TZ,filterDeficiencyProt:()=>MZ,filterDeficiencyTrit:()=>kZ,filterGrayscale:()=>gZ,filterHueRotate:()=>bZ,filterInvert:()=>yZ,filterSaturate:()=>mZ,filterSepia:()=>pZ,fixupAlpha:()=>Bn,fixupHueDecreasing:()=>CX,fixupHueIncreasing:()=>kX,fixupHueLonger:()=>TX,fixupHueShorter:()=>Cs,formatCss:()=>EW,formatHex:()=>LW,formatHex8:()=>qW,formatHsl:()=>RW,formatRgb:()=>PW,getMode:()=>wi,hsi:()=>BZ,hsl:()=>IZ,hsv:()=>HZ,hwb:()=>OZ,inGamut:()=>np,interpolate:()=>jW,interpolateWith:()=>aA,interpolateWithPremultipliedAlpha:()=>WW,interpolatorLinear:()=>nt,interpolatorPiecewise:()=>Yx,interpolatorSplineBasis:()=>iA,interpolatorSplineBasisClosed:()=>oA,interpolatorSplineMonotone:()=>JW,interpolatorSplineMonotone2:()=>KW,interpolatorSplineMonotoneClosed:()=>QW,interpolatorSplineNatural:()=>ZW,interpolatorSplineNaturalClosed:()=>$W,itp:()=>UZ,jab:()=>GZ,jch:()=>YZ,lab:()=>VZ,lab65:()=>XZ,lch:()=>jZ,lch65:()=>WZ,lchuv:()=>ZZ,lerp:()=>zf,lrgb:()=>$Z,luv:()=>JZ,mapAlphaDivide:()=>eA,mapAlphaMultiply:()=>Qw,mapTransferGamma:()=>GW,mapTransferLinear:()=>K4,mapper:()=>bv,modeA98:()=>Vx,modeCubehelix:()=>$x,modeDlab:()=>rw,modeDlch:()=>tw,modeHsi:()=>iw,modeHsl:()=>P4,modeHsv:()=>N4,modeHwb:()=>hw,modeItp:()=>mw,modeJab:()=>gw,modeJch:()=>yw,modeLab:()=>tp,modeLab65:()=>_w,modeLch:()=>ap,modeLch65:()=>ww,modeLchuv:()=>Tw,modeLrgb:()=>kw,modeLuv:()=>Cw,modeOkhsl:()=>Dw,modeOkhsv:()=>Fw,modeOklab:()=>Lw,modeOklch:()=>Pw,modeP3:()=>Rw,modeProphoto:()=>zw,modeRec2020:()=>Nw,modeRgb:()=>If,modeXyb:()=>Ow,modeXyz50:()=>Uw,modeXyz65:()=>Vw,modeYiq:()=>Ww,nearest:()=>lZ,okhsl:()=>KZ,okhsv:()=>QZ,oklab:()=>e$,oklch:()=>r$,p3:()=>t$,parse:()=>Ox,parseHex:()=>zx,parseHsl:()=>uw,parseHslLegacy:()=>sw,parseHwb:()=>vw,parseLab:()=>bw,parseLch:()=>xw,parseNamed:()=>Rx,parseOklab:()=>Ew,parseOklch:()=>qw,parseRgb:()=>Ux,parseRgbLegacy:()=>Nx,parseTransparent:()=>Gx,prophoto:()=>a$,random:()=>UW,rec2020:()=>n$,removeParser:()=>aX,rgb:()=>i$,round:()=>Zw,samples:()=>tZ,serializeHex:()=>J4,serializeHex8:()=>$w,serializeHsl:()=>Kw,serializeRgb:()=>Jw,toGamut:()=>iZ,trilerp:()=>dX,unlerp:()=>hX,useMode:()=>Aa,useParser:()=>Ix,wcagContrast:()=>qZ,wcagLuminance:()=>S4,xyb:()=>o$,xyz50:()=>l$,xyz65:()=>s$,yiq:()=>u$});hA.exports=GV(Lx);var YV=(e,r)=>{if(typeof e=="number"){if(r===3)return{mode:"rgb",r:(e>>8&15|e>>4&240)/255,g:(e>>4&15|e&240)/255,b:(e&15|e<<4&240)/255};if(r===4)return{mode:"rgb",r:(e>>12&15|e>>8&240)/255,g:(e>>8&15|e>>4&240)/255,b:(e>>4&15|e&240)/255,alpha:(e&15|e<<4&240)/255};if(r===6)return{mode:"rgb",r:(e>>16&255)/255,g:(e>>8&255)/255,b:(e&255)/255};if(r===8)return{mode:"rgb",r:(e>>24&255)/255,g:(e>>16&255)/255,b:(e>>8&255)/255,alpha:(e&255)/255}}},qx=YV,VV={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},Px=VV,XV=e=>qx(Px[e.toLowerCase()],6),Rx=XV,jV=/^#?([0-9a-f]{8}|[0-9a-f]{6}|[0-9a-f]{4}|[0-9a-f]{3})$/i,WV=e=>{let r;return(r=e.match(jV))?qx(parseInt(r[1],16),r[1].length):void 0},zx=WV,to="([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)",w4e=`(?:${to}|none)`,fv=`${to}%`,A4e=`(?:${to}%|none)`,F4=`(?:${to}%|${to})`,ZV=`(?:${to}%|${to}|none)`,$V=`(?:${to}(deg|grad|rad|turn)|${to})`,M4e=`(?:${to}(deg|grad|rad|turn)|${to}|none)`,_1="\\s*,\\s*",T4e=new RegExp("^"+ZV+"$"),JV=new RegExp(`^rgba?\\(\\s*${to}${_1}${to}${_1}${to}\\s*(?:,\\s*${F4}\\s*)?\\)$`),KV=new RegExp(`^rgba?\\(\\s*${fv}${_1}${fv}${_1}${fv}\\s*(?:,\\s*${F4}\\s*)?\\)$`),QV=e=>{let r={mode:"rgb"},t;if(t=e.match(JV))t[1]!==void 0&&(r.r=t[1]/255),t[2]!==void 0&&(r.g=t[2]/255),t[3]!==void 0&&(r.b=t[3]/255);else if(t=e.match(KV))t[1]!==void 0&&(r.r=t[1]/100),t[2]!==void 0&&(r.g=t[2]/100),t[3]!==void 0&&(r.b=t[3]/100);else return;return t[4]!==void 0?r.alpha=Math.max(0,Math.min(1,t[4]/100)):t[5]!==void 0&&(r.alpha=Math.max(0,Math.min(1,+t[5]))),r},Nx=QV,eX=(e,r)=>e===void 0?void 0:typeof e!="object"?Ox(e):e.mode!==void 0?e:r?Ha(ga({},e),{mode:r}):void 0,Bl=eX,rX=(e="rgb")=>r=>(r=Bl(r,e))!==void 0?r.mode===e?r:ks[r.mode][e]?ks[r.mode][e](r):e==="rgb"?ks[r.mode].rgb(r):ks.rgb[e](ks[r.mode].rgb(r)):void 0,La=rX,ks={},Bx={},x1=[],E4={},tX=e=>e,Aa=e=>(ks[e.mode]=ga(ga({},ks[e.mode]),e.toMode),Object.keys(e.fromMode||{}).forEach(r=>{ks[r]||(ks[r]={}),ks[r][e.mode]=e.fromMode[r]}),e.ranges||(e.ranges={}),e.difference||(e.difference={}),e.channels.forEach(r=>{if(e.ranges[r]===void 0&&(e.ranges[r]=[0,1]),!e.interpolate[r])throw new Error(`Missing interpolator for: ${r}`);typeof e.interpolate[r]=="function"&&(e.interpolate[r]={use:e.interpolate[r]}),e.interpolate[r].fixup||(e.interpolate[r].fixup=tX)}),Bx[e.mode]=e,(e.parse||[]).forEach(r=>{Ix(r,e.mode)}),La(e.mode)),wi=e=>Bx[e],Ix=(e,r)=>{if(typeof e=="string"){if(!r)throw new Error("'mode' required when 'parser' is a string");E4[e]=r}else typeof e=="function"&&x1.indexOf(e)<0&&x1.push(e)},aX=e=>{if(typeof e=="string")delete E4[e];else if(typeof e=="function"){let r=x1.indexOf(e);r>0&&x1.splice(r,1)}},l4=/[^\x00-\x7F]|[a-zA-Z_]/,nX=/[^\x00-\x7F]|[-\w]/,Jr={Function:"function",Ident:"ident",Number:"number",Percentage:"percentage",ParenClose:")",None:"none",Hue:"hue",Alpha:"alpha"},Ft=0;function Rd(e){let r=e[Ft],t=e[Ft+1];return r==="-"||r==="+"?/\d/.test(t)||t==="."&&/\d/.test(e[Ft+2]):r==="."?/\d/.test(t):/\d/.test(r)}function s4(e){if(Ft>=e.length)return!1;let r=e[Ft];if(l4.test(r))return!0;if(r==="-"){if(e.length-Ft<2)return!1;let t=e[Ft+1];return!!(t==="-"||l4.test(t))}return!1}var iX={deg:1,rad:180/Math.PI,grad:9/10,turn:360};function sv(e){let r="";if((e[Ft]==="-"||e[Ft]==="+")&&(r+=e[Ft++]),r+=zd(e),e[Ft]==="."&&/\d/.test(e[Ft+1])&&(r+=e[Ft++]+zd(e)),(e[Ft]==="e"||e[Ft]==="E")&&((e[Ft+1]==="-"||e[Ft+1]==="+")&&/\d/.test(e[Ft+2])?r+=e[Ft++]+e[Ft++]+zd(e):/\d/.test(e[Ft+1])&&(r+=e[Ft++]+zd(e))),s4(e)){let t=Id(e);return t==="deg"||t==="rad"||t==="turn"||t==="grad"?{type:Jr.Hue,value:r*iX[t]}:void 0}return e[Ft]==="%"?(Ft++,{type:Jr.Percentage,value:+r}):{type:Jr.Number,value:+r}}function zd(e){let r="";for(;/\d/.test(e[Ft]);)r+=e[Ft++];return r}function Id(e){let r="";for(;Ft4)){if(t.length===4){if(t[3].type!==Jr.Alpha)return;t[3]=t[3].value}return t.length===3&&t.push({type:Jr.None,value:void 0}),t.every(n=>n.type!==Jr.Alpha)?t:void 0}}function uX(e,r){e._i=0;let t=e[e._i++];if(!t||t.type!==Jr.Function)return;let a=Hx(e,r);if(a)return a.unshift(t.value),a}var fX=e=>{if(typeof e!="string")return;let r=lX(e),t=r?uX(r,!0):void 0,a,n=0,i=x1.length;for(;ne==="transparent"?{mode:"rgb",r:0,g:0,b:0,alpha:0}:void 0,Gx=vX,zf=(e,r,t)=>e+t*(r-e),hX=(e,r,t)=>(t-e)/(r-e),u4=(e,r,t,a,n,i)=>zf(zf(e,r,n),zf(t,a,n),i),dX=(e,r,t,a,n,i,o,l,s,u,f)=>zf(u4(e,r,t,a,s,u),u4(n,i,o,l,s,u),f),pX=e=>{let r=[];for(let t=0;tr=>{let t=pX(r);return a=>{let n=a*t.length,i=a>=1?t.length-1:Math.max(Math.floor(n),0),o=t[i];return o===void 0?void 0:e(o[0],o[1],n-i)}},nt=Yx(zf),Bn=e=>{let r=!1,t=e.map(a=>a!==void 0?(r=!0,a):1);return r?t:e},mX={mode:"rgb",channels:["r","g","b","alpha"],parse:[Ux,zx,Nx,Rx,Gx,"srgb"],serialize:"srgb",interpolate:{r:nt,g:nt,b:nt,alpha:{use:nt,fixup:Bn}},gamut:!0,white:{r:1,g:1,b:1},black:{r:0,g:0,b:0}},If=mX,By=(e=0)=>Math.pow(Math.abs(e),563/256)*Math.sign(e),gX=e=>{let r=By(e.r),t=By(e.g),a=By(e.b),n={mode:"xyz65",x:.5766690429101305*r+.1855582379065463*t+.1882286462349947*a,y:.297344975250536*r+.6273635662554661*t+.0752914584939979*a,z:.0270313613864123*r+.0706888525358272*t+.9913375368376386*a};return e.alpha!==void 0&&(n.alpha=e.alpha),n},f4=gX,Iy=e=>Math.pow(Math.abs(e),256/563)*Math.sign(e),yX=({x:e,y:r,z:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n={mode:"a98",r:Iy(e*2.0415879038107465-r*.5650069742788597-.3447313507783297*t),g:Iy(e*-.9692436362808798+r*1.8759675015077206+.0415550574071756*t),b:Iy(e*.0134442806320312-r*.1183623922310184+1.0151749943912058*t)};return a!==void 0&&(n.alpha=a),n},c4=yX,Hy=(e=0)=>{let r=Math.abs(e);return r<=.04045?e/12.92:(Math.sign(e)||1)*Math.pow((r+.055)/1.055,2.4)},bX=({r:e,g:r,b:t,alpha:a})=>{let n={mode:"lrgb",r:Hy(e),g:Hy(r),b:Hy(t)};return a!==void 0&&(n.alpha=a),n},Hf=bX,_X=e=>{let{r,g:t,b:a,alpha:n}=Hf(e),i={mode:"xyz65",x:.4123907992659593*r+.357584339383878*t+.1804807884018343*a,y:.2126390058715102*r+.715168678767756*t+.0721923153607337*a,z:.0193308187155918*r+.119194779794626*t+.9505321522496607*a};return n!==void 0&&(i.alpha=n),i},d0=_X,Oy=(e=0)=>{let r=Math.abs(e);return r>.0031308?(Math.sign(e)||1)*(1.055*Math.pow(r,1/2.4)-.055):e*12.92},xX=({r:e,g:r,b:t,alpha:a},n="rgb")=>{let i={mode:n,r:Oy(e),g:Oy(r),b:Oy(t)};return a!==void 0&&(i.alpha=a),i},Of=xX,wX=({x:e,y:r,z:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=Of({r:e*3.2409699419045226-r*1.537383177570094-.4986107602930034*t,g:e*-.9692436362808796+r*1.8759675015077204+.0415550574071756*t,b:e*.0556300796969936-r*.2039769588889765+1.0569715142428784*t});return a!==void 0&&(n.alpha=a),n},p0=wX,AX=Ha(ga({},If),{mode:"a98",parse:["a98-rgb"],serialize:"a98-rgb",fromMode:{rgb:e=>c4(d0(e)),xyz65:c4},toMode:{rgb:e=>p0(f4(e)),xyz65:f4}}),Vx=AX,MX=e=>(e=e%360)<0?e+360:e,ui=MX,Wd=(e,r)=>e.map((t,a,n)=>{if(t===void 0)return t;let i=ui(t);return a===0||e[a-1]===void 0?i:r(i-ui(n[a-1]))}).reduce((t,a)=>!t.length||a===void 0||t[t.length-1]===void 0?(t.push(a),t):(t.push(a+t[t.length-1]),t),[]),Cs=e=>Wd(e,r=>Math.abs(r)<=180?r:r-360*Math.sign(r)),TX=e=>Wd(e,r=>Math.abs(r)>=180||r===0?r:r-360*Math.sign(r)),kX=e=>Wd(e,r=>r>=0?r:r+360),CX=e=>Wd(e,r=>r<=0?r:r-360),ai=[-.14861,1.78277,-.29227,-.90649,1.97294,0],SX=Math.PI/180,DX=180/Math.PI,Ax=ai[3]*ai[4],Mx=ai[1]*ai[4],Tx=ai[1]*ai[2]-ai[0]*ai[3],FX=({r:e,g:r,b:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=(Tx*t+e*Ax-r*Mx)/(Tx+Ax-Mx),i=t-n,o=(ai[4]*(r-n)-ai[2]*i)/ai[3],l={mode:"cubehelix",l:n,s:n===0||n===1?void 0:Math.sqrt(i*i+o*o)/(ai[4]*n*(1-n))};return l.s&&(l.h=Math.atan2(o,i)*DX-120),a!==void 0&&(l.alpha=a),l},Xx=FX,EX=({h:e,s:r,l:t,alpha:a})=>{let n={mode:"rgb"};e=(e===void 0?0:e+120)*SX,t===void 0&&(t=0);let i=r===void 0?0:r*t*(1-t),o=Math.cos(e),l=Math.sin(e);return n.r=t+i*(ai[0]*o+ai[1]*l),n.g=t+i*(ai[2]*o+ai[3]*l),n.b=t+i*(ai[4]*o+ai[5]*l),a!==void 0&&(n.alpha=a),n},jx=EX,hv=(e,r)=>{if(e.h===void 0||r.h===void 0||!e.s||!r.s)return 0;let t=ui(e.h),a=ui(r.h),n=Math.sin((a-t+360)/2*Math.PI/180);return 2*Math.sqrt(e.s*r.s)*n},Wx=(e,r)=>{if(e.h===void 0||r.h===void 0)return 0;let t=ui(e.h),a=ui(r.h);return Math.abs(a-t)>180?t-(a-360*Math.sign(a-t)):a-t},dv=(e,r)=>{if(e.h===void 0||r.h===void 0||!e.c||!r.c)return 0;let t=ui(e.h),a=ui(r.h),n=Math.sin((a-t+360)/2*Math.PI/180);return 2*Math.sqrt(e.c*r.c)*n},w1=(e="rgb",r=[1,1,1,0])=>{let t=wi(e),a=t.channels,n=t.difference,i=La(e);return(o,l)=>{let s=i(o),u=i(l);return Math.sqrt(a.reduce((f,c,h)=>{let d=n[c]?n[c](s,u):s[c]-u[c];return f+(r[h]||0)*Math.pow(isNaN(d)?0:d,2)},0))}},LX=()=>w1("lab65"),qX=(e=1,r=.045,t=.015)=>{let a=La("lab65");return(n,i)=>{let o=a(n),l=a(i),s=o.l,u=o.a,f=o.b,c=Math.sqrt(u*u+f*f),h=l.l,d=l.a,p=l.b,m=Math.sqrt(d*d+p*p),b=Math.pow(s-h,2),y=Math.pow(c-m,2),C=Math.pow(u-d,2)+Math.pow(f-p,2)-y;return Math.sqrt(b/Math.pow(e,2)+y/Math.pow(1+r*c,2)+C/Math.pow(1+t*c,2))}},PX=(e=1,r=1,t=1)=>{let a=La("lab65");return(n,i)=>{let o=a(n),l=a(i),s=o.l,u=o.a,f=o.b,c=Math.sqrt(u*u+f*f),h=l.l,d=l.a,p=l.b,m=Math.sqrt(d*d+p*p),b=(c+m)/2,y=.5*(1-Math.sqrt(Math.pow(b,7)/(Math.pow(b,7)+Math.pow(25,7)))),C=u*(1+y),x=d*(1+y),_=Math.sqrt(C*C+f*f),A=Math.sqrt(x*x+p*p),k=Math.abs(C)+Math.abs(f)===0?0:Math.atan2(f,C);k+=(k<0)*2*Math.PI;let M=Math.abs(x)+Math.abs(p)===0?0:Math.atan2(p,x);M+=(M<0)*2*Math.PI;let E=h-s,P=A-_,z=_*A===0?0:M-k;z-=(z>Math.PI)*2*Math.PI,z+=(z<-Math.PI)*2*Math.PI;let I=2*Math.sqrt(_*A)*Math.sin(z/2),V=(s+h)/2,H=(_+A)/2,X;_*A===0?X=k+M:(X=(k+M)/2,X-=(Math.abs(k-M)>Math.PI)*Math.PI,X+=(X<0)*2*Math.PI);let N=Math.pow(V-50,2),Q=1-.17*Math.cos(X-Math.PI/6)+.24*Math.cos(2*X)+.32*Math.cos(3*X+Math.PI/30)-.2*Math.cos(4*X-63*Math.PI/180),ee=1+.015*N/Math.sqrt(20+N),re=1+.045*H,ae=1+.015*H*Q,ie=30*Math.PI/180*Math.exp(-1*Math.pow((180/Math.PI*X-275)/25,2)),le=2*Math.sqrt(Math.pow(H,7)/(Math.pow(H,7)+Math.pow(25,7))),xe=-1*Math.sin(2*ie)*le;return Math.sqrt(Math.pow(E/(e*ee),2)+Math.pow(P/(r*re),2)+Math.pow(I/(t*ae),2)+xe*P/(r*re)*I/(t*ae))}},RX=(e=1,r=1)=>{let t=La("lab65");return(a,n)=>{let i=t(a),o=i.l,l=i.a,s=i.b,u=Math.sqrt(l*l+s*s),f=Math.atan2(s,l);f=f+2*Math.PI*(f<0);let c=t(n),h=c.l,d=c.a,p=c.b,m=Math.sqrt(d*d+p*p),b=Math.pow(o-h,2),y=Math.pow(u-m,2),C=Math.pow(l-d,2)+Math.pow(s-p,2)-y,x=Math.sqrt(Math.pow(u,4)/(Math.pow(u,4)+1900)),_=f>=164/180*Math.PI&&f<=345/180*Math.PI?.56+Math.abs(.2*Math.cos(f+168/180*Math.PI)):.36+Math.abs(.4*Math.cos(f+35/180*Math.PI)),A=o<16?.511:.040975*o/(1+.01765*o),k=.0638*u/(1+.0131*u)+.638,M=k*(x*_+1-x);return Math.sqrt(b/Math.pow(e*A,2)+y/Math.pow(r*k,2)+C/Math.pow(M,2))}},zX=()=>{let e=La("lab65");return(r,t)=>{let a=e(r),n=e(t),i=a.l-n.l,o=a.a-n.a,l=a.b-n.b;return Math.abs(i)+Math.sqrt(o*o+l*l)}},NX=()=>w1("yiq",[.5053,.299,.1957]),BX=()=>w1("itp",[518400,129600,518400]),Ss=e=>{let r=e.reduce((a,n)=>{if(n!==void 0){let i=n*Math.PI/180;a.sin+=Math.sin(i),a.cos+=Math.cos(i)}return a},{sin:0,cos:0}),t=Math.atan2(r.sin,r.cos)*180/Math.PI;return t<0?360+t:t},Zx=e=>{let r=e.filter(t=>t!==void 0);return r.length?r.reduce((t,a)=>t+a,0)/r.length:void 0},Uy=e=>typeof e=="function";function IX(e,r="rgb",t){let a=wi(r),n=e.map(La(r));return a.channels.reduce((i,o)=>{let l=n.map(s=>s[o]).filter(s=>s!==void 0);if(l.length){let s;Uy(t)?s=t:t&&Uy(t[o])?s=t[o]:a.average&&Uy(a.average[o])?s=a.average[o]:s=Zx,i[o]=s(l,o)}return i},{mode:r})}var HX={mode:"cubehelix",channels:["h","s","l","alpha"],parse:["--cubehelix"],serialize:"--cubehelix",ranges:{h:[0,360],s:[0,4.614],l:[0,1]},fromMode:{rgb:Xx},toMode:{rgb:jx},interpolate:{h:{use:nt,fixup:Cs},s:nt,l:nt,alpha:{use:nt,fixup:Bn}},difference:{h:hv},average:{h:Ss}},$x=HX,OX=({l:e,a:r,b:t,alpha:a},n="lch")=>{r===void 0&&(r=0),t===void 0&&(t=0);let i=Math.sqrt(r*r+t*t),o={mode:n,l:e,c:i};return i&&(o.h=ui(Math.atan2(t,r)*180/Math.PI)),a!==void 0&&(o.alpha=a),o},Tu=OX,UX=({l:e,c:r,h:t,alpha:a},n="lab")=>{t===void 0&&(t=0);let i={mode:n,l:e,a:r?r*Math.cos(t/180*Math.PI):0,b:r?r*Math.sin(t/180*Math.PI):0};return a!==void 0&&(i.alpha=a),i},ku=UX,Jx=Math.pow(29,3)/Math.pow(3,3),Kx=Math.pow(6,3)/Math.pow(29,3),Nn={X:.3457/.3585,Y:1,Z:(1-.3457-.3585)/.3585},b1={X:.3127/.329,Y:1,Z:(1-.3127-.329)/.329},k4e=Math.pow(29,3)/Math.pow(3,3),C4e=Math.pow(6,3)/Math.pow(29,3),Gy=e=>Math.pow(e,3)>Kx?Math.pow(e,3):(116*e-16)/Jx,GX=({l:e,a:r,b:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=(e+16)/116,i=r/500+n,o=n-t/200,l={mode:"xyz65",x:Gy(i)*b1.X,y:Gy(n)*b1.Y,z:Gy(o)*b1.Z};return a!==void 0&&(l.alpha=a),l},L4=GX,YX=e=>p0(L4(e)),pv=YX,Yy=e=>e>Kx?Math.cbrt(e):(Jx*e+16)/116,VX=({x:e,y:r,z:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=Yy(e/b1.X),i=Yy(r/b1.Y),o=Yy(t/b1.Z),l={mode:"lab65",l:116*i-16,a:500*(n-i),b:200*(i-o)};return a!==void 0&&(l.alpha=a),l},q4=VX,XX=e=>{let r=q4(d0(e));return e.r===e.b&&e.b===e.g&&(r.a=r.b=0),r},mv=XX,Hd=1,Qx=1,vv=26/180*Math.PI,Od=Math.cos(vv),Ud=Math.sin(vv),ew=100/Math.log(139/100),jX=({l:e,c:r,h:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n={mode:"lab65",l:(Math.exp(e*Hd/ew)-1)/.0039},i=(Math.exp(.0435*r*Qx*Hd)-1)/.075,o=i*Math.cos(t/180*Math.PI-vv),l=i*Math.sin(t/180*Math.PI-vv);return n.a=o*Od-l/.83*Ud,n.b=o*Ud+l/.83*Od,a!==void 0&&(n.alpha=a),n},Gd=jX,WX=({l:e,a:r,b:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=r*Od+t*Ud,i=.83*(t*Od-r*Ud),o=Math.sqrt(n*n+i*i),l={mode:"dlch",l:ew/Hd*Math.log(1+.0039*e),c:Math.log(1+.075*o)/(.0435*Qx*Hd)};return l.c&&(l.h=ui((Math.atan2(i,n)+vv)/Math.PI*180)),a!==void 0&&(l.alpha=a),l},Yd=WX,kx=e=>Gd(Tu(e,"dlch")),Cx=e=>ku(Yd(e),"dlab"),ZX={mode:"dlab",parse:["--din99o-lab"],serialize:"--din99o-lab",toMode:{lab65:kx,rgb:e=>pv(kx(e))},fromMode:{lab65:Cx,rgb:e=>Cx(mv(e))},channels:["l","a","b","alpha"],ranges:{l:[0,100],a:[-40.09,45.501],b:[-40.469,44.344]},interpolate:{l:nt,a:nt,b:nt,alpha:{use:nt,fixup:Bn}}},rw=ZX,$X={mode:"dlch",parse:["--din99o-lch"],serialize:"--din99o-lch",toMode:{lab65:Gd,dlab:e=>ku(e,"dlab"),rgb:e=>pv(Gd(e))},fromMode:{lab65:Yd,dlab:e=>Tu(e,"dlch"),rgb:e=>Yd(mv(e))},channels:["l","c","h","alpha"],ranges:{l:[0,100],c:[0,51.484],h:[0,360]},interpolate:{l:nt,c:nt,h:{use:nt,fixup:Cs},alpha:{use:nt,fixup:Bn}},difference:{h:dv},average:{h:Ss}},tw=$X;function aw({h:e,s:r,i:t,alpha:a}){e=ui(e!==void 0?e:0),r===void 0&&(r=0),t===void 0&&(t=0);let n=Math.abs(e/60%2-1),i;switch(Math.floor(e/60)){case 0:i={r:t*(1+r*(3/(2-n)-1)),g:t*(1+r*(3*(1-n)/(2-n)-1)),b:t*(1-r)};break;case 1:i={r:t*(1+r*(3*(1-n)/(2-n)-1)),g:t*(1+r*(3/(2-n)-1)),b:t*(1-r)};break;case 2:i={r:t*(1-r),g:t*(1+r*(3/(2-n)-1)),b:t*(1+r*(3*(1-n)/(2-n)-1))};break;case 3:i={r:t*(1-r),g:t*(1+r*(3*(1-n)/(2-n)-1)),b:t*(1+r*(3/(2-n)-1))};break;case 4:i={r:t*(1+r*(3*(1-n)/(2-n)-1)),g:t*(1-r),b:t*(1+r*(3/(2-n)-1))};break;case 5:i={r:t*(1+r*(3/(2-n)-1)),g:t*(1-r),b:t*(1+r*(3*(1-n)/(2-n)-1))};break;default:i={r:t*(1-r),g:t*(1-r),b:t*(1-r)}}return i.mode="rgb",a!==void 0&&(i.alpha=a),i}function nw({r:e,g:r,b:t,alpha:a}){e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=Math.max(e,r,t),i=Math.min(e,r,t),o={mode:"hsi",s:e+r+t===0?0:1-3*i/(e+r+t),i:(e+r+t)/3};return n-i!==0&&(o.h=(n===e?(r-t)/(n-i)+(r{switch(r){case"deg":return+e;case"rad":return e/Math.PI*180;case"grad":return e/10*9;case"turn":return e*360}},QX=KX,ej=new RegExp(`^hsla?\\(\\s*${$V}${_1}${fv}${_1}${fv}\\s*(?:,\\s*${F4}\\s*)?\\)$`),rj=e=>{let r=e.match(ej);if(!r)return;let t={mode:"hsl"};return r[3]!==void 0?t.h=+r[3]:r[1]!==void 0&&r[2]!==void 0&&(t.h=QX(r[1],r[2])),r[4]!==void 0&&(t.s=Math.min(Math.max(0,r[4]/100),1)),r[5]!==void 0&&(t.l=Math.min(Math.max(0,r[5]/100),1)),r[6]!==void 0?t.alpha=Math.max(0,Math.min(1,r[6]/100)):r[7]!==void 0&&(t.alpha=Math.max(0,Math.min(1,+r[7]))),t},sw=rj;function tj(e,r){if(!r||r[0]!=="hsl"&&r[0]!=="hsla")return;let t={mode:"hsl"},[,a,n,i,o]=r;if(a.type!==Jr.None){if(a.type===Jr.Percentage)return;t.h=a.value}if(n.type!==Jr.None){if(n.type===Jr.Hue)return;t.s=n.value/100}if(i.type!==Jr.None){if(i.type===Jr.Hue)return;t.l=i.value/100}return o.type!==Jr.None&&(t.alpha=Math.min(1,Math.max(0,o.type===Jr.Number?o.value:o.value/100))),t}var uw=tj,aj={mode:"hsl",toMode:{rgb:ow},fromMode:{rgb:lw},channels:["h","s","l","alpha"],ranges:{h:[0,360]},gamut:"rgb",parse:[uw,sw],serialize:e=>`hsl(${e.h!==void 0?e.h:"none"} ${e.s!==void 0?e.s*100+"%":"none"} ${e.l!==void 0?e.l*100+"%":"none"}${e.alpha<1?` / ${e.alpha}`:""})`,interpolate:{h:{use:nt,fixup:Cs},s:nt,l:nt,alpha:{use:nt,fixup:Bn}},difference:{h:hv},average:{h:Ss}},P4=aj;function R4({h:e,s:r,v:t,alpha:a}){e=ui(e!==void 0?e:0),r===void 0&&(r=0),t===void 0&&(t=0);let n=Math.abs(e/60%2-1),i;switch(Math.floor(e/60)){case 0:i={r:t,g:t*(1-r*n),b:t*(1-r)};break;case 1:i={r:t*(1-r*n),g:t,b:t*(1-r)};break;case 2:i={r:t*(1-r),g:t,b:t*(1-r*n)};break;case 3:i={r:t*(1-r),g:t*(1-r*n),b:t};break;case 4:i={r:t*(1-r*n),g:t*(1-r),b:t};break;case 5:i={r:t,g:t*(1-r),b:t*(1-r*n)};break;default:i={r:t*(1-r),g:t*(1-r),b:t*(1-r)}}return i.mode="rgb",a!==void 0&&(i.alpha=a),i}function z4({r:e,g:r,b:t,alpha:a}){e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=Math.max(e,r,t),i=Math.min(e,r,t),o={mode:"hsv",s:n===0?0:1-i/n,v:n};return n-i!==0&&(o.h=(n===e?(r-t)/(n-i)+(r1){let n=r+t;r/=n,t/=n}return R4({h:e,s:t===1?1:1-r/(1-t),v:1-t,alpha:a})}function cw(e){let r=z4(e);if(r===void 0)return;let t=r.s!==void 0?r.s:0,a=r.v!==void 0?r.v:0,n={mode:"hwb",w:(1-t)*a,b:1-a};return r.h!==void 0&&(n.h=r.h),r.alpha!==void 0&&(n.alpha=r.alpha),n}function ij(e,r){if(!r||r[0]!=="hwb")return;let t={mode:"hwb"},[,a,n,i,o]=r;if(a.type!==Jr.None){if(a.type===Jr.Percentage)return;t.h=a.value}if(n.type!==Jr.None){if(n.type===Jr.Hue)return;t.w=n.value/100}if(i.type!==Jr.None){if(i.type===Jr.Hue)return;t.b=i.value/100}return o.type!==Jr.None&&(t.alpha=Math.min(1,Math.max(0,o.type===Jr.Number?o.value:o.value/100))),t}var vw=ij,oj={mode:"hwb",toMode:{rgb:fw},fromMode:{rgb:cw},channels:["h","w","b","alpha"],ranges:{h:[0,360]},gamut:"rgb",parse:[vw],serialize:e=>`hwb(${e.h!==void 0?e.h:"none"} ${e.w!==void 0?e.w*100+"%":"none"} ${e.b!==void 0?e.b*100+"%":"none"}${e.alpha<1?` / ${e.alpha}`:""})`,interpolate:{h:{use:nt,fixup:Cs},w:nt,b:nt,alpha:{use:nt,fixup:Bn}},difference:{h:Wx},average:{h:Ss}},hw=oj,dw=203,Zd=.1593017578125,pw=78.84375,$d=.8359375,Jd=18.8515625,Kd=18.6875;function Vy(e){if(e<0)return 0;let r=Math.pow(e,1/pw);return 1e4*Math.pow(Math.max(0,r-$d)/(Jd-Kd*r),1/Zd)}function Xy(e){if(e<0)return 0;let r=Math.pow(e/1e4,Zd);return Math.pow(($d+Jd*r)/(1+Kd*r),pw)}var jy=e=>Math.max(e/dw,0),lj=({i:e,t:r,p:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=Vy(e+.008609037037932761*r+.11102962500302593*t),i=Vy(e-.00860903703793275*r-.11102962500302599*t),o=Vy(e+.5600313357106791*r-.32062717498731885*t),l={mode:"xyz65",x:jy(2.070152218389422*n-1.3263473389671556*i+.2066510476294051*o),y:jy(.3647385209748074*n+.680566024947227*i-.0453045459220346*o),z:jy(-.049747207535812*n-.0492609666966138*i+1.1880659249923042*o)};return a!==void 0&&(l.alpha=a),l},v4=lj,Wy=(e=0)=>Math.max(e*dw,0),sj=({x:e,y:r,z:t,alpha:a})=>{let n=Wy(e),i=Wy(r),o=Wy(t),l=Xy(.3592832590121217*n+.6976051147779502*i-.0358915932320289*o),s=Xy(-.1920808463704995*n+1.1004767970374323*i+.0753748658519118*o),u=Xy(.0070797844607477*n+.0748396662186366*i+.8433265453898765*o),f=.5*l+.5*s,c=1.61376953125*l-3.323486328125*s+1.709716796875*u,h=4.378173828125*l-4.24560546875*s-.132568359375*u,d={mode:"itp",i:f,t:c,p:h};return a!==void 0&&(d.alpha=a),d},h4=sj,uj={mode:"itp",channels:["i","t","p","alpha"],parse:["--ictcp"],serialize:"--ictcp",toMode:{xyz65:v4,rgb:e=>p0(v4(e))},fromMode:{xyz65:h4,rgb:e=>h4(d0(e))},ranges:{i:[0,.581],t:[-.369,.272],p:[-.164,.331]},interpolate:{i:nt,t:nt,p:nt,alpha:{use:nt,fixup:Bn}}},mw=uj,fj=134.03437499999998,cj=16295499532821565e-27,Zy=e=>{if(e<0)return 0;let r=Math.pow(e/1e4,Zd);return Math.pow(($d+Jd*r)/(1+Kd*r),fj)},$y=(e=0)=>Math.max(e*203,0),vj=({x:e,y:r,z:t,alpha:a})=>{e=$y(e),r=$y(r),t=$y(t);let n=1.15*e-.15*t,i=.66*r+.34*e,o=Zy(.41478972*n+.579999*i+.014648*t),l=Zy(-.20151*n+1.120649*i+.0531008*t),s=Zy(-.0166008*n+.2648*i+.6684799*t),u=(o+l)/2,f={mode:"jab",j:.44*u/(1-.56*u)-cj,a:3.524*o-4.066708*l+.542708*s,b:.199076*o+1.096799*l-1.295875*s};return a!==void 0&&(f.alpha=a),f},B4=vj,hj=134.03437499999998,Sx=16295499532821565e-27,Jy=e=>{if(e<0)return 0;let r=Math.pow(e,1/hj);return 1e4*Math.pow(($d-r)/(Kd*r-Jd),1/Zd)},Ky=e=>e/203,dj=({j:e,a:r,b:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=(e+Sx)/(.44+.56*(e+Sx)),i=Jy(n+.13860504*r+.058047316*t),o=Jy(n-.13860504*r-.058047316*t),l=Jy(n-.096019242*r-.8118919*t),s={mode:"xyz65",x:Ky(1.661373024652174*i-.914523081304348*o+.23136208173913045*l),y:Ky(-.3250758611844533*i+1.571847026732543*o-.21825383453227928*l),z:Ky(-.090982811*i-.31272829*o+1.5227666*l)};return a!==void 0&&(s.alpha=a),s},I4=dj,pj=e=>{let r=B4(d0(e));return e.r===e.b&&e.b===e.g&&(r.a=r.b=0),r},H4=pj,mj=e=>p0(I4(e)),O4=mj,gj={mode:"jab",channels:["j","a","b","alpha"],parse:["--jzazbz"],serialize:"--jzazbz",fromMode:{rgb:H4,xyz65:B4},toMode:{rgb:O4,xyz65:I4},ranges:{j:[0,.222],a:[-.109,.129],b:[-.185,.134]},interpolate:{j:nt,a:nt,b:nt,alpha:{use:nt,fixup:Bn}}},gw=gj,yj=({j:e,a:r,b:t,alpha:a})=>{r===void 0&&(r=0),t===void 0&&(t=0);let n=Math.sqrt(r*r+t*t),i={mode:"jch",j:e,c:n};return n&&(i.h=ui(Math.atan2(t,r)*180/Math.PI)),a!==void 0&&(i.alpha=a),i},d4=yj,bj=({j:e,c:r,h:t,alpha:a})=>{t===void 0&&(t=0);let n={mode:"jab",j:e,a:r?r*Math.cos(t/180*Math.PI):0,b:r?r*Math.sin(t/180*Math.PI):0};return a!==void 0&&(n.alpha=a),n},p4=bj,_j={mode:"jch",parse:["--jzczhz"],serialize:"--jzczhz",toMode:{jab:p4,rgb:e=>O4(p4(e))},fromMode:{rgb:e=>d4(H4(e)),jab:d4},channels:["j","c","h","alpha"],ranges:{j:[0,.221],c:[0,.19],h:[0,360]},interpolate:{h:{use:nt,fixup:Cs},c:nt,j:nt,alpha:{use:nt,fixup:Bn}},difference:{h:dv},average:{h:Ss}},yw=_j,Qd=Math.pow(29,3)/Math.pow(3,3),U4=Math.pow(6,3)/Math.pow(29,3),Qy=e=>Math.pow(e,3)>U4?Math.pow(e,3):(116*e-16)/Qd,xj=({l:e,a:r,b:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=(e+16)/116,i=r/500+n,o=n-t/200,l={mode:"xyz50",x:Qy(i)*Nn.X,y:Qy(n)*Nn.Y,z:Qy(o)*Nn.Z};return a!==void 0&&(l.alpha=a),l},ep=xj,wj=({x:e,y:r,z:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=Of({r:e*3.1341359569958707-r*1.6173863321612538-.4906619460083532*t,g:e*-.978795502912089+r*1.916254567259524+.03344273116131949*t,b:e*.07195537988411677-r*.2289768264158322+1.405386058324125*t});return a!==void 0&&(n.alpha=a),n},A1=wj,Aj=e=>A1(ep(e)),G4=Aj,Mj=e=>{let{r,g:t,b:a,alpha:n}=Hf(e),i={mode:"xyz50",x:.436065742824811*r+.3851514688337912*t+.14307845442264197*a,y:.22249319175623702*r+.7168870538238823*t+.06061979053616537*a,z:.013923904500943465*r+.09708128566574634*t+.7140993584005155*a};return n!==void 0&&(i.alpha=n),i},M1=Mj,e4=e=>e>U4?Math.cbrt(e):(Qd*e+16)/116,Tj=({x:e,y:r,z:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=e4(e/Nn.X),i=e4(r/Nn.Y),o=e4(t/Nn.Z),l={mode:"lab",l:116*i-16,a:500*(n-i),b:200*(i-o)};return a!==void 0&&(l.alpha=a),l},rp=Tj,kj=e=>{let r=rp(M1(e));return e.r===e.b&&e.b===e.g&&(r.a=r.b=0),r},Y4=kj;function Cj(e,r){if(!r||r[0]!=="lab")return;let t={mode:"lab"},[,a,n,i,o]=r;if(!(a.type===Jr.Hue||n.type===Jr.Hue||i.type===Jr.Hue))return a.type!==Jr.None&&(t.l=Math.min(Math.max(0,a.value),100)),n.type!==Jr.None&&(t.a=n.type===Jr.Number?n.value:n.value*125/100),i.type!==Jr.None&&(t.b=i.type===Jr.Number?i.value:i.value*125/100),o.type!==Jr.None&&(t.alpha=Math.min(1,Math.max(0,o.type===Jr.Number?o.value:o.value/100))),t}var bw=Cj,Sj={mode:"lab",toMode:{xyz50:ep,rgb:G4},fromMode:{xyz50:rp,rgb:Y4},channels:["l","a","b","alpha"],ranges:{l:[0,100],a:[-125,125],b:[-125,125]},parse:[bw],serialize:e=>`lab(${e.l!==void 0?e.l:"none"} ${e.a!==void 0?e.a:"none"} ${e.b!==void 0?e.b:"none"}${e.alpha<1?` / ${e.alpha}`:""})`,interpolate:{l:nt,a:nt,b:nt,alpha:{use:nt,fixup:Bn}}},tp=Sj,Dj=Ha(ga({},tp),{mode:"lab65",parse:["--lab-d65"],serialize:"--lab-d65",toMode:{xyz65:L4,rgb:pv},fromMode:{xyz65:q4,rgb:mv},ranges:{l:[0,100],a:[-125,125],b:[-125,125]}}),_w=Dj;function Fj(e,r){if(!r||r[0]!=="lch")return;let t={mode:"lch"},[,a,n,i,o]=r;if(a.type!==Jr.None){if(a.type===Jr.Hue)return;t.l=Math.min(Math.max(0,a.value),100)}if(n.type!==Jr.None&&(t.c=Math.max(0,n.type===Jr.Number?n.value:n.value*150/100)),i.type!==Jr.None){if(i.type===Jr.Percentage)return;t.h=i.value}return o.type!==Jr.None&&(t.alpha=Math.min(1,Math.max(0,o.type===Jr.Number?o.value:o.value/100))),t}var xw=Fj,Ej={mode:"lch",toMode:{lab:ku,rgb:e=>G4(ku(e))},fromMode:{rgb:e=>Tu(Y4(e)),lab:Tu},channels:["l","c","h","alpha"],ranges:{l:[0,100],c:[0,150],h:[0,360]},parse:[xw],serialize:e=>`lch(${e.l!==void 0?e.l:"none"} ${e.c!==void 0?e.c:"none"} ${e.h!==void 0?e.h:"none"}${e.alpha<1?` / ${e.alpha}`:""})`,interpolate:{h:{use:nt,fixup:Cs},c:nt,l:nt,alpha:{use:nt,fixup:Bn}},difference:{h:dv},average:{h:Ss}},ap=Ej,Lj=Ha(ga({},ap),{mode:"lch65",parse:["--lch-d65"],serialize:"--lch-d65",toMode:{lab65:e=>ku(e,"lab65"),rgb:e=>pv(ku(e,"lab65"))},fromMode:{rgb:e=>Tu(mv(e),"lch65"),lab65:e=>Tu(e,"lch65")},ranges:{l:[0,100],c:[0,150],h:[0,360]}}),ww=Lj,qj=({l:e,u:r,v:t,alpha:a})=>{r===void 0&&(r=0),t===void 0&&(t=0);let n=Math.sqrt(r*r+t*t),i={mode:"lchuv",l:e,c:n};return n&&(i.h=ui(Math.atan2(t,r)*180/Math.PI)),a!==void 0&&(i.alpha=a),i},V4=qj,Pj=({l:e,c:r,h:t,alpha:a})=>{t===void 0&&(t=0);let n={mode:"luv",l:e,u:r?r*Math.cos(t/180*Math.PI):0,v:r?r*Math.sin(t/180*Math.PI):0};return a!==void 0&&(n.alpha=a),n},X4=Pj,Aw=(e,r,t)=>4*e/(e+15*r+3*t),Mw=(e,r,t)=>9*r/(e+15*r+3*t),Rj=Aw(Nn.X,Nn.Y,Nn.Z),zj=Mw(Nn.X,Nn.Y,Nn.Z),Nj=e=>e<=U4?Qd*e:116*Math.cbrt(e)-16,Bj=({x:e,y:r,z:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=Nj(r/Nn.Y),i=Aw(e,r,t),o=Mw(e,r,t);!isFinite(i)||!isFinite(o)?n=i=o=0:(i=13*n*(i-Rj),o=13*n*(o-zj));let l={mode:"luv",l:n,u:i,v:o};return a!==void 0&&(l.alpha=a),l},Vd=Bj,Ij=(e,r,t)=>4*e/(e+15*r+3*t),Hj=(e,r,t)=>9*r/(e+15*r+3*t),Oj=Ij(Nn.X,Nn.Y,Nn.Z),Uj=Hj(Nn.X,Nn.Y,Nn.Z),Gj=({l:e,u:r,v:t,alpha:a})=>{if(e===void 0&&(e=0),e===0)return{mode:"xyz50",x:0,y:0,z:0};r===void 0&&(r=0),t===void 0&&(t=0);let n=r/(13*e)+Oj,i=t/(13*e)+Uj,o=Nn.Y*(e<=8?e/Qd:Math.pow((e+16)/116,3)),l=o*(9*n)/(4*i),s=o*(12-3*n-20*i)/(4*i),u={mode:"xyz50",x:l,y:o,z:s};return a!==void 0&&(u.alpha=a),u},Xd=Gj,Yj=e=>V4(Vd(M1(e))),Vj=e=>A1(Xd(X4(e))),Xj={mode:"lchuv",toMode:{luv:X4,rgb:Vj},fromMode:{rgb:Yj,luv:V4},channels:["l","c","h","alpha"],parse:["--lchuv"],serialize:"--lchuv",ranges:{l:[0,100],c:[0,176.956],h:[0,360]},interpolate:{h:{use:nt,fixup:Cs},c:nt,l:nt,alpha:{use:nt,fixup:Bn}},difference:{h:dv},average:{h:Ss}},Tw=Xj,jj=Ha(ga({},If),{mode:"lrgb",toMode:{rgb:Of},fromMode:{rgb:Hf},parse:["srgb-linear"],serialize:"srgb-linear"}),kw=jj,Wj={mode:"luv",toMode:{xyz50:Xd,rgb:e=>A1(Xd(e))},fromMode:{xyz50:Vd,rgb:e=>Vd(M1(e))},channels:["l","u","v","alpha"],parse:["--luv"],serialize:"--luv",ranges:{l:[0,100],u:[-84.936,175.042],v:[-125.882,87.243]},interpolate:{l:nt,u:nt,v:nt,alpha:{use:nt,fixup:Bn}}},Cw=Wj,Zj=({r:e,g:r,b:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=Math.cbrt(.412221469470763*e+.5363325372617348*r+.0514459932675022*t),i=Math.cbrt(.2119034958178252*e+.6806995506452344*r+.1073969535369406*t),o=Math.cbrt(.0883024591900564*e+.2817188391361215*r+.6299787016738222*t),l={mode:"oklab",l:.210454268309314*n+.7936177747023054*i-.0040720430116193*o,a:1.9779985324311684*n-2.42859224204858*i+.450593709617411*o,b:.0259040424655478*n+.7827717124575296*i-.8086757549230774*o};return a!==void 0&&(l.alpha=a),l},j4=Zj,$j=e=>{let r=j4(Hf(e));return e.r===e.b&&e.b===e.g&&(r.a=r.b=0),r},gv=$j,Jj=({l:e,a:r,b:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=Math.pow(e+.3963377773761749*r+.2158037573099136*t,3),i=Math.pow(e-.1055613458156586*r-.0638541728258133*t,3),o=Math.pow(e-.0894841775298119*r-1.2914855480194092*t,3),l={mode:"lrgb",r:4.076741636075957*n-3.3077115392580616*i+.2309699031821044*o,g:-1.2684379732850317*n+2.6097573492876887*i-.3413193760026573*o,b:-.0041960761386756*n-.7034186179359362*i+1.7076146940746117*o};return a!==void 0&&(l.alpha=a),l},T1=Jj,Kj=e=>Of(T1(e)),yv=Kj;function m4(e){let a=1.170873786407767;return .5*(a*e-.206+Math.sqrt((a*e-.206)*(a*e-.206)+4*.03*a*e))}function jd(e){return(e*e+.206*e)/(1.170873786407767*(e+.03))}function Qj(e,r){let t,a,n,i,o,l,s,u;-1.88170328*e-.80936493*r>1?(t=1.19086277,a=1.76576728,n=.59662641,i=.75515197,o=.56771245,l=4.0767416621,s=-3.3077115913,u=.2309699292):1.81444104*e-1.19445276*r>1?(t=.73956515,a=-.45954404,n=.08285427,i=.1254107,o=.14503204,l=-1.2684380046,s=2.6097574011,u=-.3413193965):(t=1.35733652,a=-.00915799,n=-1.1513021,i=-.50559606,o=.00692167,l=-.0041960863,s=-.7034186147,u=1.707614701);let f=t+a*e+n*r+i*e*e+o*e*r,c=.3963377774*e+.2158037573*r,h=-.1055613458*e-.0638541728*r,d=-.0894841775*e-1.291485548*r;{let p=1+f*c,m=1+f*h,b=1+f*d,y=p*p*p,C=m*m*m,x=b*b*b,_=3*c*p*p,A=3*h*m*m,k=3*d*b*b,M=6*c*c*p,E=6*h*h*m,P=6*d*d*b,z=l*y+s*C+u*x,I=l*_+s*A+u*k,V=l*M+s*E+u*P;f=f-z*I/(I*I-.5*z*V)}return f}function W4(e,r){let t=Qj(e,r),a=T1({l:1,a:t*e,b:t*r}),n=Math.cbrt(1/Math.max(a.r,a.g,a.b)),i=n*t;return[n,i]}function eW(e,r,t,a,n,i=null){i||(i=W4(e,r));let o;if((t-n)*i[1]-(i[0]-n)*a<=0)o=i[1]*n/(a*i[0]+i[1]*(n-t));else{o=i[1]*(n-1)/(a*(i[0]-1)+i[1]*(n-t));{let l=t-n,s=a,u=.3963377774*e+.2158037573*r,f=-.1055613458*e-.0638541728*r,c=-.0894841775*e-1.291485548*r,h=l+s*u,d=l+s*f,p=l+s*c;{let m=n*(1-o)+o*t,b=o*a,y=m+b*u,C=m+b*f,x=m+b*c,_=y*y*y,A=C*C*C,k=x*x*x,M=3*h*y*y,E=3*d*C*C,P=3*p*x*x,z=6*h*h*y,I=6*d*d*C,V=6*p*p*x,H=4.0767416621*_-3.3077115913*A+.2309699292*k-1,X=4.0767416621*M-3.3077115913*E+.2309699292*P,N=4.0767416621*z-3.3077115913*I+.2309699292*V,Q=X/(X*X-.5*H*N),ee=-H*Q,re=-1.2684380046*_+2.6097574011*A-.3413193965*k-1,ae=-1.2684380046*M+2.6097574011*E-.3413193965*P,ie=-1.2684380046*z+2.6097574011*I-.3413193965*V,le=ae/(ae*ae-.5*re*ie),xe=-re*le,De=-.0041960863*_-.7034186147*A+1.707614701*k-1,Ye=-.0041960863*M-.7034186147*E+1.707614701*P,Ee=-.0041960863*z-.7034186147*I+1.707614701*V,ke=Ye/(Ye*Ye-.5*De*Ee),je=-De*ke;ee=Q>=0?ee:1e6,xe=le>=0?xe:1e6,je=ke>=0?je:1e6,o+=Math.min(ee,Math.min(xe,je))}}}return o}function Z4(e,r,t=null){t||(t=W4(e,r));let a=t[0],n=t[1];return[n/a,n/(1-a)]}function Sw(e,r,t){let a=W4(r,t),n=eW(r,t,e,1,e,a),i=Z4(r,t,a),o=.11516993+1/(7.4477897+4.1590124*t+r*(-2.19557347+1.75198401*t+r*(-2.13704948-10.02301043*t+r*(-4.24894561+5.38770819*t+4.69891013*r)))),l=.11239642+1/(1.6132032-.68124379*t+r*(.40370612+.90148123*t+r*(-.27087943+.6122399*t+r*(.00299215-.45399568*t-.14661872*r)))),s=n/Math.min(e*i[0],(1-e)*i[1]),u=e*o,f=(1-e)*l,c=.9*s*Math.sqrt(Math.sqrt(1/(1/(u*u*u*u)+1/(f*f*f*f))));return u=e*.4,f=(1-e)*.8,[Math.sqrt(1/(1/(u*u)+1/(f*f))),c,n]}function g4(e){let r=e.l!==void 0?e.l:0,t=e.a!==void 0?e.a:0,a=e.b!==void 0?e.b:0,n={mode:"okhsl",l:m4(r)};e.alpha!==void 0&&(n.alpha=e.alpha);let i=Math.sqrt(t*t+a*a);if(!i)return n.s=0,n;let[o,l,s]=Sw(r,t/i,a/i),u;if(ig4(gv(e))},toMode:{oklab:y4,rgb:e=>yv(y4(e))}}),Dw=rW;function b4(e){let r=e.l!==void 0?e.l:0,t=e.a!==void 0?e.a:0,a=e.b!==void 0?e.b:0,n=Math.sqrt(t*t+a*a),i=n?t/n:1,o=n?a/n:1,[l,s]=Z4(i,o),u=.5,f=1-u/l,c=s/(n+r*s),h=c*r,d=c*n,p=jd(h),m=d*p/h,b=T1({l:p,a:i*m,b:o*m}),y=Math.cbrt(1/Math.max(b.r,b.g,b.b,0));r=r/y,n=n/y*m4(r)/r,r=m4(r);let C={mode:"okhsv",s:n?(u+s)*d/(s*u+s*f*d):0,v:r?r/h:0};return C.s&&(C.h=ui(Math.atan2(a,t)*180/Math.PI)),e.alpha!==void 0&&(C.alpha=e.alpha),C}function _4(e){let r={mode:"oklab"};e.alpha!==void 0&&(r.alpha=e.alpha);let t=e.h!==void 0?e.h:0,a=e.s!==void 0?e.s:0,n=e.v!==void 0?e.v:0,i=Math.cos(t/180*Math.PI),o=Math.sin(t/180*Math.PI),[l,s]=Z4(i,o),u=.5,f=1-u/l,c=1-a*u/(u+s-s*f*a),h=a*s*u/(u+s-s*f*a),d=jd(c),p=h*d/c,m=T1({l:d,a:i*p,b:o*p}),b=Math.cbrt(1/Math.max(m.r,m.g,m.b,0)),y=jd(n*c),C=h*y/c;return r.l=y*b,r.a=C*i*b,r.b=C*o*b,r}var tW=Ha(ga({},N4),{mode:"okhsv",channels:["h","s","v","alpha"],parse:["--okhsv"],serialize:"--okhsv",fromMode:{oklab:b4,rgb:e=>b4(gv(e))},toMode:{oklab:_4,rgb:e=>yv(_4(e))}}),Fw=tW;function aW(e,r){if(!r||r[0]!=="oklab")return;let t={mode:"oklab"},[,a,n,i,o]=r;if(!(a.type===Jr.Hue||n.type===Jr.Hue||i.type===Jr.Hue))return a.type!==Jr.None&&(t.l=Math.min(Math.max(0,a.type===Jr.Number?a.value:a.value/100),1)),n.type!==Jr.None&&(t.a=n.type===Jr.Number?n.value:n.value*.4/100),i.type!==Jr.None&&(t.b=i.type===Jr.Number?i.value:i.value*.4/100),o.type!==Jr.None&&(t.alpha=Math.min(1,Math.max(0,o.type===Jr.Number?o.value:o.value/100))),t}var Ew=aW,nW=Ha(ga({},tp),{mode:"oklab",toMode:{lrgb:T1,rgb:yv},fromMode:{lrgb:j4,rgb:gv},ranges:{l:[0,1],a:[-.4,.4],b:[-.4,.4]},parse:[Ew],serialize:e=>`oklab(${e.l!==void 0?e.l:"none"} ${e.a!==void 0?e.a:"none"} ${e.b!==void 0?e.b:"none"}${e.alpha<1?` / ${e.alpha}`:""})`}),Lw=nW;function iW(e,r){if(!r||r[0]!=="oklch")return;let t={mode:"oklch"},[,a,n,i,o]=r;if(a.type!==Jr.None){if(a.type===Jr.Hue)return;t.l=Math.min(Math.max(0,a.type===Jr.Number?a.value:a.value/100),1)}if(n.type!==Jr.None&&(t.c=Math.max(0,n.type===Jr.Number?n.value:n.value*.4/100)),i.type!==Jr.None){if(i.type===Jr.Percentage)return;t.h=i.value}return o.type!==Jr.None&&(t.alpha=Math.min(1,Math.max(0,o.type===Jr.Number?o.value:o.value/100))),t}var qw=iW,oW=Ha(ga({},ap),{mode:"oklch",toMode:{oklab:e=>ku(e,"oklab"),rgb:e=>yv(ku(e,"oklab"))},fromMode:{rgb:e=>Tu(gv(e),"oklch"),oklab:e=>Tu(e,"oklch")},parse:[qw],serialize:e=>`oklch(${e.l!==void 0?e.l:"none"} ${e.c!==void 0?e.c:"none"} ${e.h!==void 0?e.h:"none"}${e.alpha<1?` / ${e.alpha}`:""})`,ranges:{l:[0,1],c:[0,.4],h:[0,360]}}),Pw=oW,lW=e=>{let{r,g:t,b:a,alpha:n}=Hf(e),i={mode:"xyz65",x:.486570948648216*r+.265667693169093*t+.1982172852343625*a,y:.2289745640697487*r+.6917385218365062*t+.079286914093745*a,z:0*r+.0451133818589026*t+1.043944368900976*a};return n!==void 0&&(i.alpha=n),i},x4=lW,sW=({x:e,y:r,z:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=Of({r:e*2.4934969119414263-r*.9313836179191242-.402710784450717*t,g:e*-.8294889695615749+r*1.7626640603183465+.0236246858419436*t,b:e*.0358458302437845-r*.0761723892680418+.9568845240076871*t},"p3");return a!==void 0&&(n.alpha=a),n},w4=sW,uW=Ha(ga({},If),{mode:"p3",parse:["display-p3"],serialize:"display-p3",fromMode:{rgb:e=>w4(d0(e)),xyz65:w4},toMode:{rgb:e=>p0(x4(e)),xyz65:x4}}),Rw=uW,r4=e=>{let r=Math.abs(e);return r>=1/512?Math.sign(e)*Math.pow(r,1/1.8):16*e},fW=({x:e,y:r,z:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n={mode:"prophoto",r:r4(e*1.3457868816471585-r*.2555720873797946-.0511018649755453*t),g:r4(e*-.5446307051249019+r*1.5082477428451466+.0205274474364214*t),b:r4(e*0+r*0+1.2119675456389452*t)};return a!==void 0&&(n.alpha=a),n},A4=fW,t4=(e=0)=>{let r=Math.abs(e);return r>=16/512?Math.sign(e)*Math.pow(r,1.8):e/16},cW=e=>{let r=t4(e.r),t=t4(e.g),a=t4(e.b),n={mode:"xyz50",x:.7977666449006423*r+.1351812974005331*t+.0313477341283922*a,y:.2880748288194013*r+.7118352342418731*t+899369387256e-16*a,z:0*r+0*t+.8251046025104602*a};return e.alpha!==void 0&&(n.alpha=e.alpha),n},M4=cW,vW=Ha(ga({},If),{mode:"prophoto",parse:["prophoto-rgb"],serialize:"prophoto-rgb",fromMode:{xyz50:A4,rgb:e=>A4(M1(e))},toMode:{xyz50:M4,rgb:e=>A1(M4(e))}}),zw=vW,Dx=1.09929682680944,hW=.018053968510807,a4=e=>{let r=Math.abs(e);return r>hW?(Math.sign(e)||1)*(Dx*Math.pow(r,.45)-(Dx-1)):4.5*e},dW=({x:e,y:r,z:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n={mode:"rec2020",r:a4(e*1.7166511879712683-r*.3556707837763925-.2533662813736599*t),g:a4(e*-.6666843518324893+r*1.6164812366349395+.0157685458139111*t),b:a4(e*.0176398574453108-r*.0427706132578085+.9421031212354739*t)};return a!==void 0&&(n.alpha=a),n},T4=dW,Fx=1.09929682680944,pW=.018053968510807,n4=(e=0)=>{let r=Math.abs(e);return r{let r=n4(e.r),t=n4(e.g),a=n4(e.b),n={mode:"xyz65",x:.6369580483012911*r+.1446169035862083*t+.1688809751641721*a,y:.262700212011267*r+.6779980715188708*t+.059301716469862*a,z:0*r+.0280726930490874*t+1.0609850577107909*a};return e.alpha!==void 0&&(n.alpha=e.alpha),n},k4=mW,gW=Ha(ga({},If),{mode:"rec2020",fromMode:{xyz65:T4,rgb:e=>T4(d0(e))},toMode:{xyz65:k4,rgb:e=>p0(k4(e))},parse:["rec2020"],serialize:"rec2020"}),Nw=gW,Nf=.0037930732552754493,Bw=Math.cbrt(Nf),i4=e=>Math.cbrt(e)-Bw,yW=e=>{let{r,g:t,b:a,alpha:n}=Hf(e),i=i4(.3*r+.622*t+.078*a+Nf),o=i4(.23*r+.692*t+.078*a+Nf),l=i4(.2434226892454782*r+.2047674442449682*t+.5518098665095535*a+Nf),s={mode:"xyb",x:(i-o)/2,y:(i+o)/2,b:l-(i+o)/2};return n!==void 0&&(s.alpha=n),s},Iw=yW,o4=e=>Math.pow(e+Bw,3),bW=({x:e,y:r,b:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=o4(e+r)-Nf,i=o4(r-e)-Nf,o=o4(t+r)-Nf,l=Of({r:11.031566904639861*n-9.866943908131562*i-.16462299650829934*o,g:-3.2541473810744237*n+4.418770377582723*i-.16462299650829934*o,b:-3.6588512867136815*n+2.7129230459360922*i+1.9459282407775895*o});return a!==void 0&&(l.alpha=a),l},Hw=bW,_W={mode:"xyb",channels:["x","y","b","alpha"],parse:["--xyb"],serialize:"--xyb",toMode:{rgb:Hw},fromMode:{rgb:Iw},ranges:{x:[-.0154,.0281],y:[0,.8453],b:[-.2778,.388]},interpolate:{x:nt,y:nt,b:nt,alpha:{use:nt,fixup:Bn}}},Ow=_W,xW={mode:"xyz50",parse:["xyz-d50"],serialize:"xyz-d50",toMode:{rgb:A1,lab:rp},fromMode:{rgb:M1,lab:ep},channels:["x","y","z","alpha"],ranges:{x:[0,.964],y:[0,.999],z:[0,.825]},interpolate:{x:nt,y:nt,z:nt,alpha:{use:nt,fixup:Bn}}},Uw=xW,wW=e=>{let{x:r,y:t,z:a,alpha:n}=e;r===void 0&&(r=0),t===void 0&&(t=0),a===void 0&&(a=0);let i={mode:"xyz50",x:1.0479298208405488*r+.0229467933410191*t-.0501922295431356*a,y:.0296278156881593*r+.990434484573249*t-.0170738250293851*a,z:-.0092430581525912*r+.0150551448965779*t+.7518742899580008*a};return n!==void 0&&(i.alpha=n),i},Gw=wW,AW=e=>{let{x:r,y:t,z:a,alpha:n}=e;r===void 0&&(r=0),t===void 0&&(t=0),a===void 0&&(a=0);let i={mode:"xyz65",x:.9554734527042182*r-.0230985368742614*t+.0632593086610217*a,y:-.0283697069632081*r+1.0099954580058226*t+.021041398966943*a,z:.0123140016883199*r-.0205076964334779*t+1.3303659366080753*a};return n!==void 0&&(i.alpha=n),i},Yw=AW,MW={mode:"xyz65",toMode:{rgb:p0,xyz50:Gw},fromMode:{rgb:d0,xyz50:Yw},ranges:{x:[0,.95],y:[0,1],z:[0,1.088]},channels:["x","y","z","alpha"],parse:["xyz","xyz-d65"],serialize:"xyz-d65",interpolate:{x:nt,y:nt,z:nt,alpha:{use:nt,fixup:Bn}}},Vw=MW,TW=({r:e,g:r,b:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n={mode:"yiq",y:.29889531*e+.58662247*r+.11448223*t,i:.59597799*e-.2741761*r-.32180189*t,q:.21147017*e-.52261711*r+.31114694*t};return a!==void 0&&(n.alpha=a),n},Xw=TW,kW=({y:e,i:r,q:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n={mode:"rgb",r:e+.95608445*r+.6208885*t,g:e-.27137664*r-.6486059*t,b:e-1.10561724*r+1.70250126*t};return a!==void 0&&(n.alpha=a),n},jw=kW,CW={mode:"yiq",toMode:{rgb:jw},fromMode:{rgb:Xw},channels:["y","i","q","alpha"],parse:["--yiq"],serialize:"--yiq",ranges:{i:[-.595,.595],q:[-.522,.522]},interpolate:{y:nt,i:nt,q:nt,alpha:{use:nt,fixup:Bn}}},Ww=CW,SW=(e,r)=>Math.round(e*(r=Math.pow(10,r)))/r,DW=(e=4)=>r=>typeof r=="number"?SW(r,e):r,Zw=DW,uv=Zw(2),cv=e=>Math.max(0,Math.min(1,e||0)),Bf=e=>Math.round(cv(e)*255),$4=La("rgb"),FW=La("hsl"),J4=e=>{if(e===void 0)return;let r=Bf(e.r),t=Bf(e.g),a=Bf(e.b);return"#"+(1<<24|r<<16|t<<8|a).toString(16).slice(1)},$w=e=>{if(e===void 0)return;let r=Bf(e.alpha!==void 0?e.alpha:1);return J4(e)+(256|r).toString(16).slice(1)},Jw=e=>{if(e===void 0)return;let r=Bf(e.r),t=Bf(e.g),a=Bf(e.b);return e.alpha===void 0||e.alpha===1?`rgb(${r}, ${t}, ${a})`:`rgba(${r}, ${t}, ${a}, ${uv(cv(e.alpha))})`},Kw=e=>{if(e===void 0)return;let r=uv(e.h||0),t=uv(cv(e.s)*100)+"%",a=uv(cv(e.l)*100)+"%";return e.alpha===void 0||e.alpha===1?`hsl(${r}, ${t}, ${a})`:`hsla(${r}, ${t}, ${a}, ${uv(cv(e.alpha))})`},EW=e=>{let r=Bl(e);if(!r)return;let t=wi(r.mode);if(!t.serialize||typeof t.serialize=="string"){let a=`color(${t.serialize||`--${r.mode}`} `;return t.channels.forEach((n,i)=>{n!=="alpha"&&(a+=(i?" ":"")+(r[n]!==void 0?r[n]:"none"))}),r.alpha!==void 0&&r.alpha<1&&(a+=` / ${r.alpha}`),a+")"}if(typeof t.serialize=="function")return t.serialize(r)},LW=e=>J4($4(e)),qW=e=>$w($4(e)),PW=e=>Jw($4(e)),RW=e=>Kw(FW(e)),zW={normal:(e,r)=>r,multiply:(e,r)=>e*r,screen:(e,r)=>e+r-e*r,"hard-light":(e,r)=>r<.5?e*2*r:2*r*(1-e)-1,overlay:(e,r)=>e<.5?r*2*e:2*e*(1-r)-1,darken:(e,r)=>Math.min(e,r),lighten:(e,r)=>Math.max(e,r),"color-dodge":(e,r)=>e===0?0:r===1?1:Math.min(1,e/(1-r)),"color-burn":(e,r)=>e===1?1:r===0?0:1-Math.min(1,(1-e)/r),"soft-light":(e,r)=>r<.5?e-(1-2*r)*e*(1-e):e+(2*r-1)*((e<.25?((16*e-12)*e+4)*e:Math.sqrt(e))-e),difference:(e,r)=>Math.abs(e-r),exclusion:(e,r)=>e+r-2*e*r},NW=(e,r="normal",t="rgb")=>{let a=typeof r=="function"?r:zW[r],n=La(t),i=wi(t).channels;return e.map(l=>{let s=n(l);return s.alpha===void 0&&(s.alpha=1),s}).reduce((l,s)=>{if(l===void 0)return s;let u=s.alpha+l.alpha*(1-s.alpha);return i.reduce((f,c)=>(c!=="alpha"&&(u===0?f[c]=0:(f[c]=s.alpha*(1-l.alpha)*s[c]+s.alpha*l.alpha*a(l[c],s[c])+(1-s.alpha)*l.alpha*l[c],f[c]=Math.max(0,Math.min(1,f[c]/u)))),f),{mode:t,alpha:u})})},BW=NW,IW=([e,r])=>e+Math.random()*(r-e),HW=e=>Object.keys(e).reduce((r,t)=>{let a=e[t];return r[t]=Array.isArray(a)?a:[a,a],r},{}),OW=(e="rgb",r={})=>{let t=wi(e),a=HW(r);return t.channels.reduce((n,i)=>((a.alpha||i!=="alpha")&&(n[i]=IW(a[i]||t.ranges[i])),n),{mode:e})},UW=OW,bv=(e,r="rgb",t=!1)=>{let a=r?wi(r).channels:null,n=r?La(r):Bl;return i=>{let o=n(i);if(!o)return;let l=(a||wi(o.mode).channels).reduce((u,f)=>{let c=e(o[f],f,o,r);return c!==void 0&&!isNaN(c)&&(u[f]=c),u},{mode:o.mode});if(!t)return l;let s=Bl(i);return s&&s.mode!==l.mode?La(s.mode)(l):l}},Qw=(e,r,t)=>r!=="alpha"?(e||0)*(t.alpha!==void 0?t.alpha:1):e,eA=(e,r,t)=>r!=="alpha"&&t.alpha!==0?(e||0)/(t.alpha!==void 0?t.alpha:1):e,K4=(e=1,r=0)=>(t,a)=>a!=="alpha"?t*e+r:t,GW=(e=1,r=1,t=0)=>(a,n)=>n!=="alpha"?e*Math.pow(a,r)+t:a,YW=e=>{e[0]===void 0&&(e[0]=0),e[e.length-1]===void 0&&(e[e.length-1]=1);let r=1,t,a,n,i;for(;rr=>e<=0?1:e>=1?0:Math.pow(r,Math.log(.5)/Math.log(e)),rA=XW,Nd=e=>typeof e=="function",Rf=e=>e&&typeof e=="object",Ex=e=>typeof e=="number",tA=(e,r="rgb",t,a)=>{let n=wi(r),i=La(r),o=[],l=[],s={};e.forEach(h=>{Array.isArray(h)?(o.push(i(h[0])),l.push(h[1])):Ex(h)||Nd(h)?s[l.length]=h:(o.push(i(h)),l.push(void 0))}),VW(l);let u=n.channels.reduce((h,d)=>{let p;return Rf(t)&&Rf(t[d])&&t[d].fixup?p=t[d].fixup:Rf(n.interpolate[d])&&n.interpolate[d].fixup?p=n.interpolate[d].fixup:p=m=>m,h[d]=p(o.map(m=>m[d])),h},{});if(a){let h=o.map((d,p)=>n.channels.reduce((m,b)=>(m[b]=u[b][p],m),{mode:r}));u=n.channels.reduce((d,p)=>(d[p]=h.map(m=>{let b=a(m[p],p,m,r);return isNaN(b)?void 0:b}),d),{})}let f=n.channels.reduce((h,d)=>{let p;return Nd(t)?p=t:Rf(t)&&Nd(t[d])?p=t[d]:Rf(t)&&Rf(t[d])&&t[d].use?p=t[d].use:Nd(n.interpolate[d])?p=n.interpolate[d]:Rf(n.interpolate[d])&&(p=n.interpolate[d].use),h[d]=p(u[d]),h},{}),c=o.length-1;return h=>{if(h=Math.min(Math.max(0,h),1),h<=l[0])return o[0];if(h>l[c])return o[c];let d=0;for(;l[d]{let A=f[_](C);return A!==void 0&&(x[_]=A),x},{mode:r})}},jW=(e,r="rgb",t)=>tA(e,r,t),aA=(e,r)=>(t,a="rgb",n)=>{let i=r?bv(r,a):void 0,o=tA(t,a,n,e);return i?l=>i(o(l)):o},WW=aA(Qw,eA),Bd=(e,r)=>(e+r)%r,nA=(e,r,t,a,n)=>{let i=n*n,o=i*n;return((1-3*n+3*i-o)*e+(4-6*i+3*o)*r+(1+3*n+3*i-3*o)*t+o*a)/6},iA=e=>r=>{let t=e.length-1,a=r>=1?t-1:Math.max(0,Math.floor(r*t));return nA(a>0?e[a-1]:2*e[a]-e[a+1],e[a],e[a+1],ar=>{let t=e.length-1,a=Math.floor(r*t);return nA(e[Bd(a-1,e.length)],e[Bd(a,e.length)],e[Bd(a+1,e.length)],e[Bd(a+2,e.length)],(r-a/t)*t)},lA=e=>{let r,t=e.length-1,a=new Array(t),n=new Array(t),i=new Array(t);for(a[1]=1/4,n[1]=(6*e[1]-e[0])/4,r=2;r0&&(i[t-1]=n[t-1]),r=t-2;r>0;--r)i[r]=n[r]-a[r]*i[r+1];return i},ZW=e=>iA(lA(e)),$W=e=>oA(lA(e)),y1=Math.sign,C4=Math.min,wo=Math.abs,Q4=e=>{let r=e.length-1,t=[],a=[],n=[];for(let i=0;i0?.5*(e[i+1]-e[i-1])*r:void 0),n.push(i>0?(y1(t[i-1])+y1(t[i]))*C4(wo(t[i-1]),wo(t[i]),.5*wo(a[i])):void 0);return[t,a,n]},e5=(e,r,t)=>{let a=e.length-1,n=a*a;return i=>{let o;i>=1?o=a-1:o=Math.max(0,Math.floor(i*a));let l=i-o/a,s=l*l,u=s*l;return(r[o]+r[o+1]-2*t[o])*n*u+(3*t[o]-2*r[o]-r[o+1])*a*s+r[o]*l+e[o]}},JW=e=>{if(e.length<3)return nt(e);let r=e.length-1,[t,,a]=Q4(e);return a[0]=t[0],a[r]=t[r-1],e5(e,a,t)},KW=e=>{if(e.length<3)return nt(e);let r=e.length-1,[t,a,n]=Q4(e);return a[0]=(e[1]*2-e[0]*1.5-e[2]*.5)*r,a[r]=(e[r]*1.5-e[r-1]*2+e[r-2]*.5)*r,n[0]=a[0]*t[0]<=0?0:wo(a[0])>2*wo(t[0])?2*t[0]:a[0],n[r]=a[r]*t[r-1]<=0?0:wo(a[r])>2*wo(t[r-1])?2*t[r-1]:a[r],e5(e,n,t)},QW=e=>{let r=e.length-1,[t,a,n]=Q4(e);a[0]=.5*(e[1]-e[r])*r,a[r]=.5*(e[0]-e[r-1])*r;let i=(e[0]-e[r])*r,o=i;return n[0]=(y1(i)+y1(t[0]))*C4(wo(i),wo(t[0]),.5*wo(a[0])),n[r]=(y1(t[r-1])+y1(o))*C4(wo(t[r-1]),wo(o),.5*wo(a[r])),e5(e,n,t)},eZ=(e=1)=>e===1?r=>r:r=>Math.pow(r,e),sA=eZ,rZ=(e=2,r=1)=>{let t=sA(r);if(e<2)return e<1?[]:[t(.5)];let a=[];for(let n=0;n{let r={mode:e.mode,r:Math.max(0,Math.min(e.r!==void 0?e.r:0,1)),g:Math.max(0,Math.min(e.g!==void 0?e.g:0,1)),b:Math.max(0,Math.min(e.b!==void 0?e.b:0,1))};return e.alpha!==void 0&&(r.alpha=e.alpha),r},cA=e=>fA(uA(e)),vA=e=>e!==void 0&&(e.r===void 0||e.r>=0&&e.r<=1)&&(e.g===void 0||e.g>=0&&e.g<=1)&&(e.b===void 0||e.b>=0&&e.b<=1);function r5(e){return vA(uA(e))}function np(e="rgb"){let{gamut:r}=wi(e);if(!r)return a=>!0;let t=La(typeof r=="string"?r:e);return a=>vA(t(a))}function aZ(e){return e=Bl(e),e===void 0||r5(e)?e:La(e.mode)(cA(e))}function t5(e="rgb"){let{gamut:r}=wi(e);if(!r)return i=>Bl(i);let t=typeof r=="string"?r:e,a=La(t),n=np(t);return i=>{let o=Bl(i);if(!o)return;let l=a(o);if(n(l))return o;let s=fA(l);return o.mode===s.mode?s:La(o.mode)(s)}}function nZ(e,r="lch",t="rgb"){e=Bl(e);let a=t==="rgb"?r5:np(t),n=t==="rgb"?cA:t5(t);if(e===void 0||a(e))return e;let i=La(e.mode);e=La(r)(e);let o=Ha(ga({},e),{c:0});if(!a(o))return i(n(o));let l=0,s=e.c!==void 0?e.c:0,u=wi(r).ranges.c,f=(u[1]-u[0])/Math.pow(2,13),c=o.c;for(;s-l>f;)o.c=l+(s-l)*.5,a(o)?(c=o.c,l=o.c):s=o.c;return i(a(o)?o:Ha(ga({},o),{c}))}function iZ(e="rgb",r="oklch",t=w1("oklch"),a=.02){let n=La(e),i=wi(e);if(!i.gamut)return f=>n(f);let o=np(e),l=t5(e),s=La(r),{ranges:u}=wi(r);if(!u.l||!u.c)throw new Error("LCH-like space expected");return f=>{if(f=Bl(f),f===void 0)return;let c=ga({},s(f));if(c.l===void 0&&(c.l=0),c.c===void 0&&(c.c=0),c.l>=u.l[1]){let b=Ha(ga({},i.white),{mode:e});return f.alpha!==void 0&&(b.alpha=f.alpha),b}if(c.l<=u.l[0]){let b=Ha(ga({},i.black),{mode:e});return f.alpha!==void 0&&(b.alpha=f.alpha),b}if(o(c))return n(c);let h=0,d=c.c,p=(u.c[1]-u.c[0])/4e3,m=l(c);for(;d-h>p;)c.c=(h+d)*.5,m=l(c),o(c)||t&&a>0&&t(c,m)<=a?h=c.c:d=c.c;return n(o(c)?c:m)}}var oZ=(e,r=w1(),t=a=>a)=>{let a=e.map((n,i)=>({color:t(n),i}));return(n,i=1,o=1/0)=>(isFinite(i)&&(i=Math.max(1,Math.min(i,a.length-1))),a.forEach(l=>{l.d=r(n,l.color)}),a.sort((l,s)=>l.d-s.d).slice(0,i).filter(l=>l.de[l.i]))},lZ=oZ,a5=e=>Math.max(e,0),n5=e=>Math.max(Math.min(e,1),0),sZ=(e,r,t)=>e===void 0||r===void 0?void 0:e+t*(r-e),uZ=e=>{let r=1-n5(e);return[.393+.607*r,.769-.769*r,.189-.189*r,0,.349-.349*r,.686+.314*r,.168-.168*r,0,.272-.272*r,.534-.534*r,.131+.869*r,0,0,0,0,1]},fZ=e=>{let r=a5(e);return[.213+.787*r,.715-.715*r,.072-.072*r,0,.213-.213*r,.715+.285*r,.072-.072*r,0,.213-.213*r,.715-.715*r,.072+.928*r,0,0,0,0,1]},cZ=e=>{let r=1-n5(e);return[.2126+.7874*r,.7152-.7152*r,.0722-.0722*r,0,.2126-.2126*r,.7152+.2848*r,.0722-.0722*r,0,.2126-.2126*r,.7152-.7152*r,.0722+.9278*r,0,0,0,0,1]},vZ=e=>{let r=Math.PI*e/180,t=Math.cos(r),a=Math.sin(r);return[.213+t*.787-a*.213,.715-t*.715-a*.715,.072-t*.072+a*.928,0,.213-t*.213+a*.143,.715+t*.285+a*.14,.072-t*.072-a*.283,0,.213-t*.213-a*.787,.715-t*.715+a*.715,.072+t*.928+a*.072,0,0,0,0,1]},ip=(e,r,t=!1)=>{let a=La(r),n=wi(r).channels;return i=>{let o=a(i);if(!o)return;let l={mode:r},s,u=n.length;for(let c=0;c{let t=a5(e);return bv(K4(t),r,!0)},dZ=(e=1,r="rgb")=>{let t=a5(e);return bv(K4(t,(1-t)/2),r,!0)},pZ=(e=1,r="rgb")=>ip(uZ(e),r,!0),mZ=(e=1,r="rgb")=>ip(fZ(e),r,!0),gZ=(e=1,r="rgb")=>ip(cZ(e),r,!0),yZ=(e=1,r="rgb")=>{let t=n5(e);return bv((a,n)=>n==="alpha"?a:sZ(t,1-t,a),r,!0)},bZ=(e=0,r="rgb")=>ip(vZ(e),r,!0),_Z=La("rgb"),xZ=[[1,0,-0,0,1,0,-0,-0,1],[.856167,.182038,-.038205,.029342,.955115,.015544,-.00288,-.001563,1.004443],[.734766,.334872,-.069637,.05184,.919198,.028963,-.004928,-.004209,1.009137],[.630323,.465641,-.095964,.069181,.890046,.040773,-.006308,-.007724,1.014032],[.539009,.579343,-.118352,.082546,.866121,.051332,-.007136,-.011959,1.019095],[.458064,.679578,-.137642,.092785,.846313,.060902,-.007494,-.016807,1.024301],[.38545,.769005,-.154455,.100526,.829802,.069673,-.007442,-.02219,1.029632],[.319627,.849633,-.169261,.106241,.815969,.07779,-.007025,-.028051,1.035076],[.259411,.923008,-.18242,.110296,.80434,.085364,-.006276,-.034346,1.040622],[.203876,.990338,-.194214,.112975,.794542,.092483,-.005222,-.041043,1.046265],[.152286,1.052583,-.204868,.114503,.786281,.099216,-.003882,-.048116,1.051998]],wZ=[[1,0,-0,0,1,0,-0,-0,1],[.866435,.177704,-.044139,.049567,.939063,.01137,-.003453,.007233,.99622],[.760729,.319078,-.079807,.090568,.889315,.020117,-.006027,.013325,.992702],[.675425,.43385,-.109275,.125303,.847755,.026942,-.00795,.018572,.989378],[.605511,.52856,-.134071,.155318,.812366,.032316,-.009376,.023176,.9862],[.547494,.607765,-.155259,.181692,.781742,.036566,-.01041,.027275,.983136],[.498864,.674741,-.173604,.205199,.754872,.039929,-.011131,.030969,.980162],[.457771,.731899,-.18967,.226409,.731012,.042579,-.011595,.034333,.977261],[.422823,.781057,-.203881,.245752,.709602,.044646,-.011843,.037423,.974421],[.392952,.82361,-.216562,.263559,.69021,.046232,-.01191,.040281,.97163],[.367322,.860646,-.227968,.280085,.672501,.047413,-.01182,.04294,.968881]],AZ=[[1,0,-0,0,1,0,-0,-0,1],[.92667,.092514,-.019184,.021191,.964503,.014306,.008437,.054813,.93675],[.89572,.13333,-.02905,.029997,.9454,.024603,.013027,.104707,.882266],[.905871,.127791,-.033662,.026856,.941251,.031893,.01341,.148296,.838294],[.948035,.08949,-.037526,.014364,.946792,.038844,.010853,.193991,.795156],[1.017277,.027029,-.044306,-.006113,.958479,.047634,.006379,.248708,.744913],[1.104996,-.046633,-.058363,-.032137,.971635,.060503,.001336,.317922,.680742],[1.193214,-.109812,-.083402,-.058496,.97941,.079086,-.002346,.403492,.598854],[1.257728,-.139648,-.118081,-.078003,.975409,.102594,-.003316,.501214,.502102],[1.278864,-.125333,-.153531,-.084748,.957674,.127074,-989e-6,.601151,.399838],[1.255528,-.076749,-.178779,-.078411,.930809,.147602,.004733,.691367,.3039]],i5=(e,r)=>{let t=Math.max(0,Math.min(1,r)),a=Math.round(t/.1),n=Math.round(t%.1),i=e[a];if(n>0&&azf(i[s],o[s],n))}return o=>{let l=Bl(o);if(l===void 0)return;let{r:s,g:u,b:f}=_Z(l),c={mode:"rgb",r:i[0]*s+i[1]*u+i[2]*f,g:i[3]*s+i[4]*u+i[5]*f,b:i[6]*s+i[7]*u+i[8]*f};return l.alpha!==void 0&&(c.alpha=l.alpha),La(l.mode)(c)}},MZ=(e=1)=>i5(xZ,e),TZ=(e=1)=>i5(wZ,e),kZ=(e=1)=>i5(AZ,e),CZ=e=>e*e*(3-2*e),SZ=e=>.5-Math.sin(Math.asin(1-2*e)/3),DZ=e=>e*e*e*(e*(e*6-15)+10),FZ=DZ,EZ=e=>(1-Math.cos(e*Math.PI))/2,LZ=EZ;function S4(e){let r=La("lrgb")(e);return .2126*r.r+.7152*r.g+.0722*r.b}function qZ(e,r){let t=S4(e),a=S4(r);return(Math.max(t,a)+.05)/(Math.min(t,a)+.05)}var PZ=Aa(Vx),RZ=Aa($x),zZ=Aa(rw),NZ=Aa(tw),BZ=Aa(iw),IZ=Aa(P4),HZ=Aa(N4),OZ=Aa(hw),UZ=Aa(mw),GZ=Aa(gw),YZ=Aa(yw),VZ=Aa(tp),XZ=Aa(_w),jZ=Aa(ap),WZ=Aa(ww),ZZ=Aa(Tw),$Z=Aa(kw),JZ=Aa(Cw),KZ=Aa(Dw),QZ=Aa(Fw),e$=Aa(Lw),r$=Aa(Pw),t$=Aa(Rw),a$=Aa(zw),n$=Aa(Nw),i$=Aa(If),o$=Aa(Ow),l$=Aa(Uw),s$=Aa(Vw),u$=Aa(Ww)});var o5={};Ua(o5,{default:()=>c$});var f$,c$,l5=Oa(()=>{"use strict";f$={format:{valType:"enumerated",values:["png","jpeg","webp","svg","full-json"],dflt:"png",description:"Sets the format of exported image."},width:{valType:"number",min:1,description:["Sets the exported image width.","Defaults to the value found in `layout.width`","If set to *null*, the exported image width will match the current graph width."].join(" ")},height:{valType:"number",min:1,description:["Sets the exported image height.","Defaults to the value found in `layout.height`","If set to *null*, the exported image height will match the current graph height."].join(" ")},scale:{valType:"number",min:0,dflt:1,description:["Sets a scaling for the generated image.","If set, all features of a graphs (e.g. text, line width)","are scaled, unlike simply setting","a bigger *width* and *height*."].join(" ")},setBackground:{valType:"any",dflt:!1,description:["Sets the image background mode.","By default, the image background is determined by `layout.paper_bgcolor`,","the *transparent* mode.","One might consider setting `setBackground` to *opaque*","when exporting a *jpeg* image as JPEGs do not support opacity."].join(" ")},imageDataOnly:{valType:"boolean",dflt:!1,description:["Determines whether or not the return value is prefixed by","the image format's corresponding 'data:image;' spec."].join(" ")}},c$=f$});var m0=oe((E4e,bA)=>{"use strict";var{format:v$,width:h$,height:d$,scale:p$}=(l5(),xr(o5)).default,pA=p$,{dflt:F4e}=pA,m$=B_(pA,["dflt"]),mA={staticPlot:{valType:"boolean",dflt:!1},typesetMath:{valType:"boolean",dflt:!0},plotlyServerURL:{valType:"string",dflt:"https://cloud.plotly.com/newchart"},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","map"],extras:[!0,!1],dflt:"gl3d+geo+map"},doubleClick:{valType:"enumerated",values:[!1,"reset","autosize","reset+autosize"],dflt:"reset+autosize"},doubleClickDelay:{valType:"number",dflt:500,min:0},showAxisDragHandles:{valType:"boolean",dflt:!0},showAxisRangeEntryBoxes:{valType:"boolean",dflt:!0},showTips:{valType:"boolean",dflt:!0},displayNotifier:{valType:"boolean",dflt:!0},displayModeBar:{valType:"enumerated",values:["hover",!0,!1],dflt:"hover"},showSendToCloud:{valType:"boolean",dflt:!0},modeBarButtonsToRemove:{valType:"any",dflt:[]},modeBarButtonsToAdd:{valType:"any",dflt:[]},modeBarButtons:{valType:"any",dflt:!1},toImageButtonOptions:{format:v$,filename:{valType:"string"},width:h$,height:d$,scale:m$},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/un/"},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},locale:{valType:"string",dflt:"en-US"},locales:{valType:"any",dflt:{}}},gA={};function yA(e,r){for(let t in e){let a=e[t];typeof a!="object"||a===null||(a.valType?"dflt"in a&&(r[t]=a.dflt):(r[t]||(r[t]={}),yA(a,r[t])))}}yA(mA,gA);bA.exports={configAttributes:mA,dfltConfig:gA}});var u5=oe((q4e,_A)=>{"use strict";var s5=Lt(),g$=Qt(),_v=[];_A.exports=function(e,r,t){var l;if(((l=t==null?void 0:t._context)==null?void 0:l.displayNotifier)===!1||_v.indexOf(e)!==-1)return;_v.push(e);var a=1e3;g$(r)?a=r:r==="long"&&(a=3e3);var n=s5.select("body").selectAll(".plotly-notifier").data([0]);n.enter().append("div").classed("plotly-notifier",!0);var i=n.selectAll(".notifier-note").data(_v);function o(s){s.duration(700).style("opacity",0).each("end",function(u){var f=_v.indexOf(u);f!==-1&&_v.splice(f,1),s5.select(this).remove()})}i.enter().append("div").classed("notifier-note",!0).style("opacity",0).each(function(s){var u=s5.select(this);u.append("button").classed("notifier-close",!0).html("×").on("click",function(){u.transition().call(o)});for(var f=u.append("p"),c=s.split(//g),h=0;h{"use strict";var k1=m0().dfltConfig,f5=u5(),c5=xA.exports={};c5.log=function(){var e;if(k1.logging>1){var r=["LOG:"];for(e=0;e1){var t=[];for(e=0;e"),"long")}};c5.warn=function(){var e;if(k1.logging>0){var r=["WARN:"];for(e=0;e0){var t=[];for(e=0;e"),"stick")}};c5.error=function(){var e;if(k1.logging>0){var r=["ERROR:"];for(e=0;e0){var t=[];for(e=0;e"),"stick")}}});var Il=oe(Uf=>{"use strict";Uf.defaults=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"];Uf.defaultLine="#444";Uf.lightLine="#eee";Uf.background="#fff";Uf.borderLine="#BEC8D9";Uf.lightFraction=1e3/11});var Nt=oe((z4e,FA)=>{"use strict";var{converter:wA,formatHex:y$,formatRgb:b$,wcagContrast:_$,wcagLuminance:x$}=dA(),{isArrayOrTypedArray:AA}=ro(),{warn:w$}=Cu(),{background:wv,defaultLine:d5,defaults:A$,lightLine:M$}=Il(),MA=wA("rgb"),T$=wA("hsl"),TA=e=>{if(typeof e!="string")return;let r=e.trim().toLowerCase();if(!/^[0-9a-f]+$/.test(r))try{return MA(r)}catch(t){return}},Ai=e=>e>0?e>1?1:e:0,k$={mode:"rgb",r:0,g:0,b:0,alpha:1},v5=e=>Math.round(e*255e6)/255e6,kA=e=>Ha(ga({},e),{r:v5(e.r),g:v5(e.g),b:v5(e.b)}),Ao=e=>b$(kA(e)),C$=e=>y$(kA(e)),S$=e=>{var r,t,a,n;return typeof e=="string"?`"${e}"`:AA(e)?`${(t=(r=e.constructor)==null?void 0:r.name)!=null?t:"Array"}(${e.length})`:typeof e=="object"?(n=(a=e.constructor)==null?void 0:a.name)!=null?n:"Object":`${typeof e} ${e}`},on=(e,r)=>{var a;let t=TA(e);return t?((a=t.alpha)!=null||(t.alpha=1),t):(!r&&e!=null&&w$(`Invalid color specifier: ${S$(e)}. Defaulting to "#000"`),k$)},xv=e=>Ao(Ha(ga({},on(e)),{alpha:1})),D$=e=>e?on(e).alpha:0,CA=e=>AA(e)&&e.length>2&&Number.isFinite(e[0])&&Number.isFinite(e[1])&&Number.isFinite(e[2]),F$=e=>{let[r,t,a,n]=e,i=Math.max(r,t,a)>1?1/255:1,o=n!=null?n:1;return{mode:"rgb",r:r*i,g:t*i,b:a*i,alpha:o>1?o/255:o}},E$=(e,r)=>{let t=CA(e)?F$(e):on(e,!0),a=[Ai(t.r),Ai(t.g),Ai(t.b),Ai(t.alpha)];return r==="uint8"||r==="uint8_clamped"?Uint8Array.from(a,n=>Math.round(n*255)):r==="float32"?Float32Array.from(a):r==="float64"?Float64Array.from(a):a},L$=(e,r)=>Ao(Ha(ga({},on(e)),{alpha:Ai(r)})),SA=(e,r)=>{let t=on(e),a=t.alpha;if(a===1)return Ao(t);let n=on(r||wv),i=n.alpha,o=(l,s)=>(i===1?s:1-i+s*i)*(1-a)+l*a;return Ao({mode:"rgb",r:o(t.r,n.r),g:o(t.g,n.g),b:o(t.b,n.b)})},q$=(e,r,t)=>{let a=on(e),n=on(r),i=(o,l)=>t*o+(1-t)*l;return Ao({mode:"rgb",r:i(a.r,n.r),g:i(a.g,n.g),b:i(a.b,n.b)})},h5=(e,r)=>{let t=on(e),a=T$(t)||{mode:"hsl",h:0,s:0,l:0};return Ao(MA(Ha(ga({},a),{l:Ai((a.l*100+r)/100),alpha:t.alpha})))},op=(e,r)=>_$(on(e),on(r)),DA=e=>op(e,wv)>op(e,d5),P$=Ao(on(wv)),R$=Ao(on(d5)),z$=(e,r,t)=>(on(e).alpha!==1&&(e=SA(e,wv)),DA(e)?r?h5(e,r):P$:t?h5(e,-t):R$),N$=(e,r)=>{e.style({stroke:xv(r),"stroke-opacity":on(r).alpha})},B$=(e,r)=>{e.style({fill:xv(r),"fill-opacity":on(r).alpha})},I$=(e,r)=>!!(e&&r&&xv(e)===xv(r)),H$=e=>TA(e)!==void 0,O$=(e,r)=>{r=r===0?0:r||10;let t=on(e),a=r/100;return Ao(Ha(ga({},t),{r:Ai(t.r+a),g:Ai(t.g+a),b:Ai(t.b+a)}))},U$=(e,r,t)=>{let a=on(e),n=on(r),i=t/100,o=n.alpha-a.alpha,l=2*i-1,s=((l*o===-1?l:(l+o)/(1+l*o))+1)/2,u=1-s,f=(c,h)=>u*c+s*h;return Ao({mode:"rgb",r:f(a.r,n.r),g:f(a.g,n.g),b:f(a.b,n.b),alpha:a.alpha*(1-i)+n.alpha*i})},G$=(e,r=["#000","#fff"])=>{let t,a=-1/0;for(let n of r){let i=op(e,n);i>a&&(a=i,t=Ao(on(n)))}return t},Y$=e=>Ao(on(e)),V$=e=>C$(on(e)).toUpperCase(),X$=e=>{let r=on(e);return[Ai(r.r)*255,Ai(r.g)*255,Ai(r.b)*255,Ai(r.alpha)]},j$=([e,r,t,a])=>Ao({mode:"rgb",r:e/255,g:r/255,b:t/255,alpha:a}),W$=e=>{let r=on(e);return x$({mode:"rgb",r:Ai(r.r),g:Ai(r.g),b:Ai(r.b)})};FA.exports={addOpacity:L$,adjustLightness:h5,background:wv,brighten:O$,combine:SA,contrast:z$,defaultLine:d5,defaults:A$,equals:I$,fill:B$,hexString:V$,interpolate:q$,isChannelArray:CA,isDark:DA,isValid:H$,lightLine:M$,luminosity:W$,mix:U$,mostReadable:G$,normalize:E$,opacity:D$,parse:on,rgb:xv,rgbaArray:X$,rgbaArrayToString:j$,rgbaString:Y$,stroke:N$,wcagContrast:op}});var Gf=oe((B4e,qA)=>{"use strict";var Z$=Nt(),lp={Greys:[[0,"rgb(0,0,0)"],[1,"rgb(255,255,255)"]],YlGnBu:[[0,"rgb(8,29,88)"],[.125,"rgb(37,52,148)"],[.25,"rgb(34,94,168)"],[.375,"rgb(29,145,192)"],[.5,"rgb(65,182,196)"],[.625,"rgb(127,205,187)"],[.75,"rgb(199,233,180)"],[.875,"rgb(237,248,217)"],[1,"rgb(255,255,217)"]],Greens:[[0,"rgb(0,68,27)"],[.125,"rgb(0,109,44)"],[.25,"rgb(35,139,69)"],[.375,"rgb(65,171,93)"],[.5,"rgb(116,196,118)"],[.625,"rgb(161,217,155)"],[.75,"rgb(199,233,192)"],[.875,"rgb(229,245,224)"],[1,"rgb(247,252,245)"]],YlOrRd:[[0,"rgb(128,0,38)"],[.125,"rgb(189,0,38)"],[.25,"rgb(227,26,28)"],[.375,"rgb(252,78,42)"],[.5,"rgb(253,141,60)"],[.625,"rgb(254,178,76)"],[.75,"rgb(254,217,118)"],[.875,"rgb(255,237,160)"],[1,"rgb(255,255,204)"]],Bluered:[[0,"rgb(0,0,255)"],[1,"rgb(255,0,0)"]],RdBu:[[0,"rgb(5,10,172)"],[.35,"rgb(106,137,247)"],[.5,"rgb(190,190,190)"],[.6,"rgb(220,170,132)"],[.7,"rgb(230,145,90)"],[1,"rgb(178,10,28)"]],Reds:[[0,"rgb(220,220,220)"],[.2,"rgb(245,195,157)"],[.4,"rgb(245,160,105)"],[1,"rgb(178,10,28)"]],Blues:[[0,"rgb(5,10,172)"],[.35,"rgb(40,60,190)"],[.5,"rgb(70,100,245)"],[.6,"rgb(90,120,245)"],[.7,"rgb(106,137,247)"],[1,"rgb(220,220,220)"]],Picnic:[[0,"rgb(0,0,255)"],[.1,"rgb(51,153,255)"],[.2,"rgb(102,204,255)"],[.3,"rgb(153,204,255)"],[.4,"rgb(204,204,255)"],[.5,"rgb(255,255,255)"],[.6,"rgb(255,204,255)"],[.7,"rgb(255,153,255)"],[.8,"rgb(255,102,204)"],[.9,"rgb(255,102,102)"],[1,"rgb(255,0,0)"]],Rainbow:[[0,"rgb(150,0,90)"],[.125,"rgb(0,0,200)"],[.25,"rgb(0,25,255)"],[.375,"rgb(0,152,255)"],[.5,"rgb(44,255,150)"],[.625,"rgb(151,255,0)"],[.75,"rgb(255,234,0)"],[.875,"rgb(255,111,0)"],[1,"rgb(255,0,0)"]],Portland:[[0,"rgb(12,51,131)"],[.25,"rgb(10,136,186)"],[.5,"rgb(242,211,56)"],[.75,"rgb(242,143,56)"],[1,"rgb(217,30,30)"]],Jet:[[0,"rgb(0,0,131)"],[.125,"rgb(0,60,170)"],[.375,"rgb(5,255,255)"],[.625,"rgb(255,255,0)"],[.875,"rgb(250,0,0)"],[1,"rgb(128,0,0)"]],Hot:[[0,"rgb(0,0,0)"],[.3,"rgb(230,0,0)"],[.6,"rgb(255,210,0)"],[1,"rgb(255,255,255)"]],Blackbody:[[0,"rgb(0,0,0)"],[.2,"rgb(230,0,0)"],[.4,"rgb(230,210,0)"],[.7,"rgb(255,255,255)"],[1,"rgb(160,200,255)"]],Earth:[[0,"rgb(0,0,130)"],[.1,"rgb(0,180,180)"],[.2,"rgb(40,210,40)"],[.4,"rgb(230,230,50)"],[.6,"rgb(120,70,20)"],[1,"rgb(255,255,255)"]],Electric:[[0,"rgb(0,0,0)"],[.15,"rgb(30,0,100)"],[.4,"rgb(120,0,100)"],[.6,"rgb(160,90,0)"],[.8,"rgb(230,200,0)"],[1,"rgb(255,250,220)"]],Viridis:[[0,"#440154"],[.06274509803921569,"#48186a"],[.12549019607843137,"#472d7b"],[.18823529411764706,"#424086"],[.25098039215686274,"#3b528b"],[.3137254901960784,"#33638d"],[.3764705882352941,"#2c728e"],[.4392156862745098,"#26828e"],[.5019607843137255,"#21918c"],[.5647058823529412,"#1fa088"],[.6274509803921569,"#28ae80"],[.6901960784313725,"#3fbc73"],[.7529411764705882,"#5ec962"],[.8156862745098039,"#84d44b"],[.8784313725490196,"#addc30"],[.9411764705882353,"#d8e219"],[1,"#fde725"]],Cividis:[[0,"rgb(0,32,76)"],[.058824,"rgb(0,42,102)"],[.117647,"rgb(0,52,110)"],[.176471,"rgb(39,63,108)"],[.235294,"rgb(60,74,107)"],[.294118,"rgb(76,85,107)"],[.352941,"rgb(91,95,109)"],[.411765,"rgb(104,106,112)"],[.470588,"rgb(117,117,117)"],[.529412,"rgb(131,129,120)"],[.588235,"rgb(146,140,120)"],[.647059,"rgb(161,152,118)"],[.705882,"rgb(176,165,114)"],[.764706,"rgb(192,177,109)"],[.823529,"rgb(209,191,102)"],[.882353,"rgb(225,204,92)"],[.941176,"rgb(243,219,79)"],[1,"rgb(255,233,69)"]]},EA=lp.RdBu;function $$(e,r){if(r||(r=EA),!e)return r;function t(){try{e=lp[e]||JSON.parse(e)}catch(a){e=r}}return typeof e=="string"&&(t(),typeof e=="string"&&t()),LA(e)?e:r}function LA(e){var r=0;if(!Array.isArray(e)||e.length<2||!e[0]||!e[e.length-1]||+e[0][0]!=0||+e[e.length-1][0]!=1)return!1;for(var t=0;teJ,HIDE_PLACEHOLDER:()=>Q$,SHOW_PLACEHOLDER:()=>K$});var K$,Q$,eJ,up=Oa(()=>{"use strict";K$=100,Q$=1e3,eJ=.2});var Av={};Ua(Av,{counter:()=>Yf});function Yf(e,r="",t,a){let n=r+(t?"":"$"),i=a===!1?"":"^";return e==="xy"?new RegExp(i+"x"+p5+"y"+p5+n):new RegExp(i+e+p5+n)}var p5,C1=Oa(()=>{"use strict";p5="([2-9]|[1-9][0-9]+)?"});var zA=oe(ao=>{"use strict";var m5=Qt(),PA=Dn().extendFlat,rJ=Wo(),tJ=Gf(),g5=Nt(),aJ=(up(),xr(sp)).DESELECTDIM,S1=Q2(),RA=(C1(),xr(Av)).counter,nJ=(m1(),xr(p1)).modHalf,Hl=ro().isArrayOrTypedArray,g0=ro().isTypedArraySpec,y0=ro().decodeTypedArraySpec;ao.valObjectMeta={data_array:{coerceFunction:function(e,r,t){r.set(Hl(e)?e:g0(e)?y0(e):t)}},enumerated:{coerceFunction:function(e,r,t,a){a.coerceNumber&&(e=+e),a.values.indexOf(e)===-1?r.set(t):r.set(e)},validateFunction:function(e,r){r.coerceNumber&&(e=+e);for(var t=r.values,a=0;ai===!0||i===!1;n(e)||a.arrayOk&&Array.isArray(e)&&e.length>0&&e.every(n)?r.set(e):r.set(t)}},number:{coerceFunction:function(e,r,t,a){g0(e)&&(e=y0(e)),!m5(e)||a.min!==void 0&&ea.max?r.set(t):r.set(+e)}},integer:{coerceFunction:function(e,r,t,a){if((a.extras||[]).indexOf(e)!==-1){r.set(e);return}g0(e)&&(e=y0(e)),e%1||!m5(e)||a.min!==void 0&&ea.max?r.set(t):r.set(+e)}},string:{coerceFunction:function(e,r,t,a){if(typeof e!="string"){var n=typeof e=="number";a.strict===!0||!n?r.set(t):r.set(String(e))}else a.noBlank&&!e?r.set(t):r.set(e)}},color:{coerceFunction:function(e,r,t){g0(e)&&(e=y0(e)),g5.isValid(e)?r.set(e):r.set(t)}},colorlist:{coerceFunction:function(e,r,t){!Array.isArray(e)||!e.length?r.set(t):e.every(a=>g5.isValid(a))?r.set(e):r.set(t)}},colorscale:{coerceFunction:function(e,r,t){r.set(tJ.get(e,t))}},angle:{coerceFunction:function(e,r,t){g0(e)&&(e=y0(e)),e==="auto"?r.set("auto"):m5(e)?r.set(nJ(+e,360)):r.set(t)}},subplotid:{coerceFunction:function(e,r,t,a){var n=a.regex||RA(t);let i=o=>typeof o=="string"&&n.test(o);i(e)||a.arrayOk&&Hl(e)&&e.length>0&&e.every(i)?r.set(e):r.set(t)},validateFunction:function(e,r){var t=r.dflt;return e===t?!0:typeof e!="string"?!1:!!RA(t).test(e)}},flaglist:{coerceFunction:function(e,r,t,a){if((a.extras||[]).indexOf(e)!==-1){r.set(e);return}if(typeof e!="string"){r.set(t);return}for(var n=e.split("+"),i=0;i{"use strict";NA.exports=function(){}});var y5=oe((O4e,BA)=>{"use strict";BA.exports=function(r,t){if(t instanceof RegExp){for(var a=t.toString(),n=0;n{IA.exports=iJ;function iJ(){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}});var UA=oe((G4e,OA)=>{OA.exports=oJ;function oJ(e){var r=new Float32Array(16);return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4],r[5]=e[5],r[6]=e[6],r[7]=e[7],r[8]=e[8],r[9]=e[9],r[10]=e[10],r[11]=e[11],r[12]=e[12],r[13]=e[13],r[14]=e[14],r[15]=e[15],r}});var YA=oe((Y4e,GA)=>{GA.exports=lJ;function lJ(e,r){return e[0]=r[0],e[1]=r[1],e[2]=r[2],e[3]=r[3],e[4]=r[4],e[5]=r[5],e[6]=r[6],e[7]=r[7],e[8]=r[8],e[9]=r[9],e[10]=r[10],e[11]=r[11],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15],e}});var b5=oe((V4e,VA)=>{VA.exports=sJ;function sJ(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}});var jA=oe((X4e,XA)=>{XA.exports=uJ;function uJ(e,r){if(e===r){var t=r[1],a=r[2],n=r[3],i=r[6],o=r[7],l=r[11];e[1]=r[4],e[2]=r[8],e[3]=r[12],e[4]=t,e[6]=r[9],e[7]=r[13],e[8]=a,e[9]=i,e[11]=r[14],e[12]=n,e[13]=o,e[14]=l}else e[0]=r[0],e[1]=r[4],e[2]=r[8],e[3]=r[12],e[4]=r[1],e[5]=r[5],e[6]=r[9],e[7]=r[13],e[8]=r[2],e[9]=r[6],e[10]=r[10],e[11]=r[14],e[12]=r[3],e[13]=r[7],e[14]=r[11],e[15]=r[15];return e}});var ZA=oe((j4e,WA)=>{WA.exports=fJ;function fJ(e,r){var t=r[0],a=r[1],n=r[2],i=r[3],o=r[4],l=r[5],s=r[6],u=r[7],f=r[8],c=r[9],h=r[10],d=r[11],p=r[12],m=r[13],b=r[14],y=r[15],C=t*l-a*o,x=t*s-n*o,_=t*u-i*o,A=a*s-n*l,k=a*u-i*l,M=n*u-i*s,E=f*m-c*p,P=f*b-h*p,z=f*y-d*p,I=c*b-h*m,V=c*y-d*m,H=h*y-d*b,X=C*H-x*V+_*I+A*z-k*P+M*E;return X?(X=1/X,e[0]=(l*H-s*V+u*I)*X,e[1]=(n*V-a*H-i*I)*X,e[2]=(m*M-b*k+y*A)*X,e[3]=(h*k-c*M-d*A)*X,e[4]=(s*z-o*H-u*P)*X,e[5]=(t*H-n*z+i*P)*X,e[6]=(b*_-p*M-y*x)*X,e[7]=(f*M-h*_+d*x)*X,e[8]=(o*V-l*z+u*E)*X,e[9]=(a*z-t*V-i*E)*X,e[10]=(p*k-m*_+y*C)*X,e[11]=(c*_-f*k-d*C)*X,e[12]=(l*P-o*I-s*E)*X,e[13]=(t*I-a*P+n*E)*X,e[14]=(m*x-p*A-b*C)*X,e[15]=(f*A-c*x+h*C)*X,e):null}});var JA=oe((W4e,$A)=>{$A.exports=cJ;function cJ(e,r){var t=r[0],a=r[1],n=r[2],i=r[3],o=r[4],l=r[5],s=r[6],u=r[7],f=r[8],c=r[9],h=r[10],d=r[11],p=r[12],m=r[13],b=r[14],y=r[15];return e[0]=l*(h*y-d*b)-c*(s*y-u*b)+m*(s*d-u*h),e[1]=-(a*(h*y-d*b)-c*(n*y-i*b)+m*(n*d-i*h)),e[2]=a*(s*y-u*b)-l*(n*y-i*b)+m*(n*u-i*s),e[3]=-(a*(s*d-u*h)-l*(n*d-i*h)+c*(n*u-i*s)),e[4]=-(o*(h*y-d*b)-f*(s*y-u*b)+p*(s*d-u*h)),e[5]=t*(h*y-d*b)-f*(n*y-i*b)+p*(n*d-i*h),e[6]=-(t*(s*y-u*b)-o*(n*y-i*b)+p*(n*u-i*s)),e[7]=t*(s*d-u*h)-o*(n*d-i*h)+f*(n*u-i*s),e[8]=o*(c*y-d*m)-f*(l*y-u*m)+p*(l*d-u*c),e[9]=-(t*(c*y-d*m)-f*(a*y-i*m)+p*(a*d-i*c)),e[10]=t*(l*y-u*m)-o*(a*y-i*m)+p*(a*u-i*l),e[11]=-(t*(l*d-u*c)-o*(a*d-i*c)+f*(a*u-i*l)),e[12]=-(o*(c*b-h*m)-f*(l*b-s*m)+p*(l*h-s*c)),e[13]=t*(c*b-h*m)-f*(a*b-n*m)+p*(a*h-n*c),e[14]=-(t*(l*b-s*m)-o*(a*b-n*m)+p*(a*s-n*l)),e[15]=t*(l*h-s*c)-o*(a*h-n*c)+f*(a*s-n*l),e}});var QA=oe((Z4e,KA)=>{KA.exports=vJ;function vJ(e){var r=e[0],t=e[1],a=e[2],n=e[3],i=e[4],o=e[5],l=e[6],s=e[7],u=e[8],f=e[9],c=e[10],h=e[11],d=e[12],p=e[13],m=e[14],b=e[15],y=r*o-t*i,C=r*l-a*i,x=r*s-n*i,_=t*l-a*o,A=t*s-n*o,k=a*s-n*l,M=u*p-f*d,E=u*m-c*d,P=u*b-h*d,z=f*m-c*p,I=f*b-h*p,V=c*b-h*m;return y*V-C*I+x*z+_*P-A*E+k*M}});var rM=oe(($4e,eM)=>{eM.exports=hJ;function hJ(e,r,t){var a=r[0],n=r[1],i=r[2],o=r[3],l=r[4],s=r[5],u=r[6],f=r[7],c=r[8],h=r[9],d=r[10],p=r[11],m=r[12],b=r[13],y=r[14],C=r[15],x=t[0],_=t[1],A=t[2],k=t[3];return e[0]=x*a+_*l+A*c+k*m,e[1]=x*n+_*s+A*h+k*b,e[2]=x*i+_*u+A*d+k*y,e[3]=x*o+_*f+A*p+k*C,x=t[4],_=t[5],A=t[6],k=t[7],e[4]=x*a+_*l+A*c+k*m,e[5]=x*n+_*s+A*h+k*b,e[6]=x*i+_*u+A*d+k*y,e[7]=x*o+_*f+A*p+k*C,x=t[8],_=t[9],A=t[10],k=t[11],e[8]=x*a+_*l+A*c+k*m,e[9]=x*n+_*s+A*h+k*b,e[10]=x*i+_*u+A*d+k*y,e[11]=x*o+_*f+A*p+k*C,x=t[12],_=t[13],A=t[14],k=t[15],e[12]=x*a+_*l+A*c+k*m,e[13]=x*n+_*s+A*h+k*b,e[14]=x*i+_*u+A*d+k*y,e[15]=x*o+_*f+A*p+k*C,e}});var aM=oe((J4e,tM)=>{tM.exports=dJ;function dJ(e,r,t){var a=t[0],n=t[1],i=t[2],o,l,s,u,f,c,h,d,p,m,b,y;return r===e?(e[12]=r[0]*a+r[4]*n+r[8]*i+r[12],e[13]=r[1]*a+r[5]*n+r[9]*i+r[13],e[14]=r[2]*a+r[6]*n+r[10]*i+r[14],e[15]=r[3]*a+r[7]*n+r[11]*i+r[15]):(o=r[0],l=r[1],s=r[2],u=r[3],f=r[4],c=r[5],h=r[6],d=r[7],p=r[8],m=r[9],b=r[10],y=r[11],e[0]=o,e[1]=l,e[2]=s,e[3]=u,e[4]=f,e[5]=c,e[6]=h,e[7]=d,e[8]=p,e[9]=m,e[10]=b,e[11]=y,e[12]=o*a+f*n+p*i+r[12],e[13]=l*a+c*n+m*i+r[13],e[14]=s*a+h*n+b*i+r[14],e[15]=u*a+d*n+y*i+r[15]),e}});var iM=oe((K4e,nM)=>{nM.exports=pJ;function pJ(e,r,t){var a=t[0],n=t[1],i=t[2];return e[0]=r[0]*a,e[1]=r[1]*a,e[2]=r[2]*a,e[3]=r[3]*a,e[4]=r[4]*n,e[5]=r[5]*n,e[6]=r[6]*n,e[7]=r[7]*n,e[8]=r[8]*i,e[9]=r[9]*i,e[10]=r[10]*i,e[11]=r[11]*i,e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15],e}});var lM=oe((Q4e,oM)=>{oM.exports=mJ;function mJ(e,r,t,a){var n=a[0],i=a[1],o=a[2],l=Math.sqrt(n*n+i*i+o*o),s,u,f,c,h,d,p,m,b,y,C,x,_,A,k,M,E,P,z,I,V,H,X,N;return Math.abs(l)<1e-6?null:(l=1/l,n*=l,i*=l,o*=l,s=Math.sin(t),u=Math.cos(t),f=1-u,c=r[0],h=r[1],d=r[2],p=r[3],m=r[4],b=r[5],y=r[6],C=r[7],x=r[8],_=r[9],A=r[10],k=r[11],M=n*n*f+u,E=i*n*f+o*s,P=o*n*f-i*s,z=n*i*f-o*s,I=i*i*f+u,V=o*i*f+n*s,H=n*o*f+i*s,X=i*o*f-n*s,N=o*o*f+u,e[0]=c*M+m*E+x*P,e[1]=h*M+b*E+_*P,e[2]=d*M+y*E+A*P,e[3]=p*M+C*E+k*P,e[4]=c*z+m*I+x*V,e[5]=h*z+b*I+_*V,e[6]=d*z+y*I+A*V,e[7]=p*z+C*I+k*V,e[8]=c*H+m*X+x*N,e[9]=h*H+b*X+_*N,e[10]=d*H+y*X+A*N,e[11]=p*H+C*X+k*N,r!==e&&(e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e)}});var uM=oe((e5e,sM)=>{sM.exports=gJ;function gJ(e,r,t){var a=Math.sin(t),n=Math.cos(t),i=r[4],o=r[5],l=r[6],s=r[7],u=r[8],f=r[9],c=r[10],h=r[11];return r!==e&&(e[0]=r[0],e[1]=r[1],e[2]=r[2],e[3]=r[3],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e[4]=i*n+u*a,e[5]=o*n+f*a,e[6]=l*n+c*a,e[7]=s*n+h*a,e[8]=u*n-i*a,e[9]=f*n-o*a,e[10]=c*n-l*a,e[11]=h*n-s*a,e}});var cM=oe((r5e,fM)=>{fM.exports=yJ;function yJ(e,r,t){var a=Math.sin(t),n=Math.cos(t),i=r[0],o=r[1],l=r[2],s=r[3],u=r[8],f=r[9],c=r[10],h=r[11];return r!==e&&(e[4]=r[4],e[5]=r[5],e[6]=r[6],e[7]=r[7],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e[0]=i*n-u*a,e[1]=o*n-f*a,e[2]=l*n-c*a,e[3]=s*n-h*a,e[8]=i*a+u*n,e[9]=o*a+f*n,e[10]=l*a+c*n,e[11]=s*a+h*n,e}});var hM=oe((t5e,vM)=>{vM.exports=bJ;function bJ(e,r,t){var a=Math.sin(t),n=Math.cos(t),i=r[0],o=r[1],l=r[2],s=r[3],u=r[4],f=r[5],c=r[6],h=r[7];return r!==e&&(e[8]=r[8],e[9]=r[9],e[10]=r[10],e[11]=r[11],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e[0]=i*n+u*a,e[1]=o*n+f*a,e[2]=l*n+c*a,e[3]=s*n+h*a,e[4]=u*n-i*a,e[5]=f*n-o*a,e[6]=c*n-l*a,e[7]=h*n-s*a,e}});var pM=oe((a5e,dM)=>{dM.exports=_J;function _J(e,r,t){var a,n,i,o=t[0],l=t[1],s=t[2],u=Math.sqrt(o*o+l*l+s*s);return Math.abs(u)<1e-6?null:(u=1/u,o*=u,l*=u,s*=u,a=Math.sin(r),n=Math.cos(r),i=1-n,e[0]=o*o*i+n,e[1]=l*o*i+s*a,e[2]=s*o*i-l*a,e[3]=0,e[4]=o*l*i-s*a,e[5]=l*l*i+n,e[6]=s*l*i+o*a,e[7]=0,e[8]=o*s*i+l*a,e[9]=l*s*i-o*a,e[10]=s*s*i+n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e)}});var gM=oe((n5e,mM)=>{mM.exports=xJ;function xJ(e,r,t){var a=r[0],n=r[1],i=r[2],o=r[3],l=a+a,s=n+n,u=i+i,f=a*l,c=a*s,h=a*u,d=n*s,p=n*u,m=i*u,b=o*l,y=o*s,C=o*u;return e[0]=1-(d+m),e[1]=c+C,e[2]=h-y,e[3]=0,e[4]=c-C,e[5]=1-(f+m),e[6]=p+b,e[7]=0,e[8]=h+y,e[9]=p-b,e[10]=1-(f+d),e[11]=0,e[12]=t[0],e[13]=t[1],e[14]=t[2],e[15]=1,e}});var bM=oe((i5e,yM)=>{yM.exports=wJ;function wJ(e,r){return e[0]=r[0],e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=r[1],e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=r[2],e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var xM=oe((o5e,_M)=>{_M.exports=AJ;function AJ(e,r){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]=r[0],e[13]=r[1],e[14]=r[2],e[15]=1,e}});var AM=oe((l5e,wM)=>{wM.exports=MJ;function MJ(e,r){var t=Math.sin(r),a=Math.cos(r);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=a,e[6]=t,e[7]=0,e[8]=0,e[9]=-t,e[10]=a,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var TM=oe((s5e,MM)=>{MM.exports=TJ;function TJ(e,r){var t=Math.sin(r),a=Math.cos(r);return e[0]=a,e[1]=0,e[2]=-t,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=t,e[9]=0,e[10]=a,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var CM=oe((u5e,kM)=>{kM.exports=kJ;function kJ(e,r){var t=Math.sin(r),a=Math.cos(r);return e[0]=a,e[1]=t,e[2]=0,e[3]=0,e[4]=-t,e[5]=a,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}});var DM=oe((f5e,SM)=>{SM.exports=CJ;function CJ(e,r){var t=r[0],a=r[1],n=r[2],i=r[3],o=t+t,l=a+a,s=n+n,u=t*o,f=a*o,c=a*l,h=n*o,d=n*l,p=n*s,m=i*o,b=i*l,y=i*s;return e[0]=1-c-p,e[1]=f+y,e[2]=h-b,e[3]=0,e[4]=f-y,e[5]=1-u-p,e[6]=d+m,e[7]=0,e[8]=h+b,e[9]=d-m,e[10]=1-u-c,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var EM=oe((c5e,FM)=>{FM.exports=SJ;function SJ(e,r,t,a,n,i,o){var l=1/(t-r),s=1/(n-a),u=1/(i-o);return e[0]=i*2*l,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=i*2*s,e[6]=0,e[7]=0,e[8]=(t+r)*l,e[9]=(n+a)*s,e[10]=(o+i)*u,e[11]=-1,e[12]=0,e[13]=0,e[14]=o*i*2*u,e[15]=0,e}});var qM=oe((v5e,LM)=>{LM.exports=DJ;function DJ(e,r,t,a,n){var i=1/Math.tan(r/2),o=1/(a-n);return e[0]=i/t,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=i,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=(n+a)*o,e[11]=-1,e[12]=0,e[13]=0,e[14]=2*n*a*o,e[15]=0,e}});var RM=oe((h5e,PM)=>{PM.exports=FJ;function FJ(e,r,t,a){var n=Math.tan(r.upDegrees*Math.PI/180),i=Math.tan(r.downDegrees*Math.PI/180),o=Math.tan(r.leftDegrees*Math.PI/180),l=Math.tan(r.rightDegrees*Math.PI/180),s=2/(o+l),u=2/(n+i);return e[0]=s,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=u,e[6]=0,e[7]=0,e[8]=-((o-l)*s*.5),e[9]=(n-i)*u*.5,e[10]=a/(t-a),e[11]=-1,e[12]=0,e[13]=0,e[14]=a*t/(t-a),e[15]=0,e}});var NM=oe((d5e,zM)=>{zM.exports=EJ;function EJ(e,r,t,a,n,i,o){var l=1/(r-t),s=1/(a-n),u=1/(i-o);return e[0]=-2*l,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*s,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*u,e[11]=0,e[12]=(r+t)*l,e[13]=(n+a)*s,e[14]=(o+i)*u,e[15]=1,e}});var IM=oe((p5e,BM)=>{var LJ=b5();BM.exports=qJ;function qJ(e,r,t,a){var n,i,o,l,s,u,f,c,h,d,p=r[0],m=r[1],b=r[2],y=a[0],C=a[1],x=a[2],_=t[0],A=t[1],k=t[2];return Math.abs(p-_)<1e-6&&Math.abs(m-A)<1e-6&&Math.abs(b-k)<1e-6?LJ(e):(f=p-_,c=m-A,h=b-k,d=1/Math.sqrt(f*f+c*c+h*h),f*=d,c*=d,h*=d,n=C*h-x*c,i=x*f-y*h,o=y*c-C*f,d=Math.sqrt(n*n+i*i+o*o),d?(d=1/d,n*=d,i*=d,o*=d):(n=0,i=0,o=0),l=c*o-h*i,s=h*n-f*o,u=f*i-c*n,d=Math.sqrt(l*l+s*s+u*u),d?(d=1/d,l*=d,s*=d,u*=d):(l=0,s=0,u=0),e[0]=n,e[1]=l,e[2]=f,e[3]=0,e[4]=i,e[5]=s,e[6]=c,e[7]=0,e[8]=o,e[9]=u,e[10]=h,e[11]=0,e[12]=-(n*p+i*m+o*b),e[13]=-(l*p+s*m+u*b),e[14]=-(f*p+c*m+h*b),e[15]=1,e)}});var OM=oe((m5e,HM)=>{HM.exports=PJ;function PJ(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]+")"}});var _5=oe((g5e,UM)=>{UM.exports={create:HA(),clone:UA(),copy:YA(),identity:b5(),transpose:jA(),invert:ZA(),adjoint:JA(),determinant:QA(),multiply:rM(),translate:aM(),scale:iM(),rotate:lM(),rotateX:uM(),rotateY:cM(),rotateZ:hM(),fromRotation:pM(),fromRotationTranslation:gM(),fromScaling:bM(),fromTranslation:xM(),fromXRotation:AM(),fromYRotation:TM(),fromZRotation:CM(),fromQuat:DM(),frustum:EM(),perspective:qM(),perspectiveFromFieldOfView:RM(),ortho:NM(),lookAt:IM(),str:OM()}});var vp=oe(mn=>{"use strict";var RJ=_5();mn.init2dArray=function(e,r){for(var t=new Array(e),a=0;a{"use strict";var zJ=Lt(),GM=Cu(),NJ=vp(),BJ=_5();function IJ(e){var r;if(typeof e=="string"){if(r=document.getElementById(e),r===null)throw new Error("No DOM element with id '"+e+"' exists on the page.");return r}else if(e==null)throw new Error("DOM element provided is null or undefined");return e}function HJ(e){var r=zJ.select(e);return r.node()instanceof HTMLElement&&r.size()&&r.classed("js-plotly-plot")}function YM(e){var r=e&&e.parentNode;r&&r.removeChild(e)}function OJ(e,r){VM("global",e,r)}function VM(e,r,t){var a="plotly.js-style-"+e,n=document.getElementById(a);if(!(n&&n.matches(".no-inline-styles"))){n||(n=document.createElement("style"),n.setAttribute("id",a),n.appendChild(document.createTextNode("")),document.head.appendChild(n));var i=n.sheet;i?i.insertRule?i.insertRule(r+"{"+t+"}",0):i.addRule?i.addRule(r,t,0):GM.warn("addStyleRule failed"):GM.warn("Cannot addRelatedStyleRule, probably due to strict CSP...")}}function UJ(e){var r="plotly.js-style-"+e,t=document.getElementById(r);t&&YM(t)}function GJ(e,r,t,a,n,i){var o=a.split(":"),l=n.split(":"),s="data-btn-style-event-added";i||(i=document),i.querySelectorAll(e).forEach(function(u){u._hoverStyle={activeStyleParts:o,inactiveStyleParts:l},u.getAttribute(s)||(u.addEventListener("mouseenter",function(){var f=this._hoverStyle,c=this.querySelector(t);c&&(c.style[f.activeStyleParts[0]]=f.activeStyleParts[1])}),u.addEventListener("mouseleave",function(){var f=this._hoverStyle,c=this.querySelector(t);c&&(r&&this.matches(r)?c.style[f.activeStyleParts[0]]=f.activeStyleParts[1]:c.style[f.inactiveStyleParts[0]]=f.inactiveStyleParts[1])}),u.setAttribute(s,!0))})}function YJ(e){var r=jM(e),t=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];return r.forEach(function(a){var n=XM(a);if(n){var i=NJ.convertCssMatrix(n);t=BJ.multiply(t,t,i)}}),t}function XM(e){var r=window.getComputedStyle(e,null),t=r.getPropertyValue("-webkit-transform")||r.getPropertyValue("-moz-transform")||r.getPropertyValue("-ms-transform")||r.getPropertyValue("-o-transform")||r.getPropertyValue("transform");return t==="none"?null:t.replace("matrix","").replace("3d","").slice(1,-1).split(",").map(function(a){return+a})}function jM(e){for(var r=[];VJ(e);)r.push(e),e=e.parentNode,typeof ShadowRoot=="function"&&e instanceof ShadowRoot&&(e=e.host);return r}function VJ(e){return e&&(e instanceof Element||e instanceof HTMLElement)}function XJ(e,r){return e&&r&&e.top===r.top&&e.left===r.left&&e.right===r.right&&e.bottom===r.bottom}WM.exports={getGraphDiv:IJ,isPlotDiv:HJ,removeElement:YM,addStyleRule:OJ,addRelatedStyleRule:VM,deleteRelatedStyleRule:UJ,setStyleOnHover:GJ,getFullTransformMatrix:YJ,getElementTransformMatrix:XM,getElementAndAncestors:jM,equalDomRects:XJ}});var Tv=oe((_5e,ZM)=>{"use strict";ZM.exports={mode:{valType:"enumerated",dflt:"afterall",values:["immediate","next","afterall"]},direction:{valType:"enumerated",values:["forward","reverse"],dflt:"forward"},fromcurrent:{valType:"boolean",dflt:!1},frame:{duration:{valType:"number",min:0,dflt:500},redraw:{valType:"boolean",dflt:!0}},transition:{duration:{valType:"number",min:0,dflt:500,editType:"none"},easing:{valType:"enumerated",dflt:"cubic-in-out",values:["linear","quad","cubic","sin","exp","circle","elastic","back","bounce","linear-in","quad-in","cubic-in","sin-in","exp-in","circle-in","elastic-in","back-in","bounce-in","linear-out","quad-out","cubic-out","sin-out","exp-out","circle-out","elastic-out","back-out","bounce-out","linear-in-out","quad-in-out","cubic-in-out","sin-in-out","exp-in-out","circle-in-out","elastic-in-out","back-in-out","bounce-in-out"],editType:"none"},ordering:{valType:"enumerated",values:["layout first","traces first"],dflt:"layout first",editType:"none"}}}});var Zo=oe((x5e,tT)=>{"use strict";var JM=Dn().extendFlat,jJ=h0(),KM={valType:"flaglist",extras:["none"],flags:["calc","clearAxisTypes","plot","style","markerSize","colorbars"]},QM={valType:"flaglist",extras:["none"],flags:["calc","plot","legend","ticks","axrange","layoutstyle","modebar","camera","arraydraw","colorbars"]},WJ=KM.flags.slice().concat(["fullReplot"]),ZJ=QM.flags.slice().concat("layoutReplot");tT.exports={traces:KM,layout:QM,traceFlags:function(){return $M(WJ)},layoutFlags:function(){return $M(ZJ)},update:function(e,r){var t=r.editType;if(t&&t!=="none")for(var a=t.split("+"),n=0;n{"use strict";x5.dash={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",editType:"style"};x5.pattern={shape:{valType:"enumerated",values:["","/","\\","x","-","|","+","."],dflt:"",arrayOk:!0,editType:"style"},path:{valType:"string",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"}});var w5={};Ua(w5,{DATE_FORMAT_LINK:()=>JJ,FORMAT_LINK:()=>$J});var $J,JJ,A5=Oa(()=>{"use strict";$J="https://github.com/d3/d3-format/tree/v1.4.5#d3-format",JJ="https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format"});var Vf=oe(D1=>{"use strict";var{DATE_FORMAT_LINK:KJ,FORMAT_LINK:QJ}=(A5(),xr(w5)),eK=["Variables that can't be found will be replaced with the specifier.",'For example, a template of "data: %{x}, %{y}" will result in a value of "data: 1, %{y}" if x is 1 and y is missing.',"Variables with an undefined value will be replaced with the fallback value."].join(" ");function rK({supportOther:e}={}){return["Variables are inserted using %{variable},",'for example "y: %{y}"'+(e?" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown.":"."),`Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}".`,QJ,"for details on the formatting syntax.",`Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}".`,KJ,"for details on the date formatting syntax.",eK].join(" ")}D1.templateFormatStringDescription=rK;D1.hovertemplateAttrs=({editType:e="none",arrayOk:r}={},t={})=>ga({valType:"string",dflt:"",editType:e},r!==!1?{arrayOk:!0}:{});D1.texttemplateAttrs=({editType:e="calc",arrayOk:r}={},t={})=>ga({valType:"string",dflt:"",editType:e},r!==!1?{arrayOk:!0}:{});D1.shapeTexttemplateAttrs=({editType:e="arraydraw",newshape:r}={},t={})=>({valType:"string",dflt:"",editType:e});D1.templatefallbackAttrs=({editType:e="none"}={})=>({valType:"any",dflt:"-",editType:e})});var pp=oe((T5e,sT)=>{"use strict";function b0(e,r){return r?r.d2l(e):e}function aT(e,r){return r?r.l2d(e):e}function tK(e){return e.x0}function aK(e){return e.x1}function nK(e){return e.y0}function iK(e){return e.y1}function nT(e){return e.x0shift||0}function iT(e){return e.x1shift||0}function oT(e){return e.y0shift||0}function lT(e){return e.y1shift||0}function hp(e,r){return b0(e.x1,r)+iT(e)-b0(e.x0,r)-nT(e)}function dp(e,r,t){return b0(e.y1,t)+lT(e)-b0(e.y0,t)-oT(e)}function oK(e,r){return Math.abs(hp(e,r))}function lK(e,r,t){return Math.abs(dp(e,r,t))}function sK(e,r,t){return e.type!=="line"?void 0:Math.sqrt(Math.pow(hp(e,r),2)+Math.pow(dp(e,r,t),2))}function uK(e,r){return aT((b0(e.x1,r)+iT(e)+b0(e.x0,r)+nT(e))/2,r)}function fK(e,r,t){return aT((b0(e.y1,t)+lT(e)+b0(e.y0,t)+oT(e))/2,t)}function cK(e,r,t){return e.type!=="line"?void 0:dp(e,r,t)/hp(e,r)}var vK=["x0","x1","y0","y1","dy","height","ycenter"],hK=["x0","x1","y0","y1","dx","width","xcenter"];sT.exports={x0:tK,x1:aK,y0:nK,y1:iK,slope:cK,dx:hp,dy:dp,width:oK,height:lK,length:sK,xcenter:uK,ycenter:fK,simpleXVariables:vK,simpleYVariables:hK}});var cT=oe((k5e,fT)=>{"use strict";var dK=Zo().overrideAll,Xf=Wo(),uT=xi(),pK=Ds().dash,_0=Dn().extendFlat,{shapeTexttemplateAttrs:mK,templatefallbackAttrs:gK}=Vf(),yK=pp();fT.exports=dK({newshape:{visible:_0({},Xf.visible,{}),showlegend:{valType:"boolean",dflt:!1},legend:_0({},Xf.legend,{}),legendgroup:_0({},Xf.legendgroup,{}),legendgrouptitle:{text:_0({},Xf.legendgrouptitle.text,{}),font:uT({})},legendrank:_0({},Xf.legendrank,{}),legendwidth:_0({},Xf.legendwidth,{}),line:{color:{valType:"color"},width:{valType:"number",min:0,dflt:4},dash:_0({},pK,{dflt:"solid"})},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd"},opacity:{valType:"number",min:0,max:1,dflt:1},layer:{valType:"enumerated",values:["below","above","between"],dflt:"above"},drawdirection:{valType:"enumerated",values:["ortho","horizontal","vertical","diagonal"],dflt:"diagonal"},name:_0({},Xf.name,{}),label:{text:{valType:"string",dflt:""},texttemplate:mK({newshape:!0},{keys:Object.keys(yK)}),texttemplatefallback:gK({editType:"arraydraw"}),font:uT({}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"]},textangle:{valType:"angle",dflt:"auto"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto"},yanchor:{valType:"enumerated",values:["top","middle","bottom"]},padding:{valType:"number",dflt:3,min:0}}},activeshape:{fillcolor:{valType:"color",dflt:"rgb(255,0,255)",description:"Sets the color filling the active shape' interior."},opacity:{valType:"number",min:0,max:1,dflt:.5}}},"none","from-root")});var hT=oe((C5e,vT)=>{"use strict";var bK=Ds().dash,_K=Dn().extendFlat;vT.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:_K({},bK,{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"}}});var mp=oe((S5e,dT)=>{"use strict";dT.exports=function(e){var r=e.editType;return{t:{valType:"number",dflt:0,editType:r},r:{valType:"number",dflt:0,editType:r},b:{valType:"number",dflt:0,editType:r},l:{valType:"number",dflt:0,editType:r},editType:r}}});var F1=oe((D5e,yT)=>{"use strict";var M5=xi(),xK=Tv(),gp=Il(),pT=cT(),mT=hT(),wK=mp(),gT=Dn().extendFlat,yp=M5({editType:"calc"});yp.family.dflt='"Open Sans", verdana, arial, sans-serif';yp.size.dflt=12;yp.color.dflt=gp.defaultLine;yT.exports={font:yp,title:{text:{valType:"string",editType:"layoutstyle"},font:M5({editType:"layoutstyle"}),subtitle:{text:{valType:"string",editType:"layoutstyle"},font:M5({editType:"layoutstyle"}),editType:"layoutstyle"},xref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle"},yref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle"},x:{valType:"number",min:0,max:1,dflt:.5,editType:"layoutstyle"},y:{valType:"number",min:0,max:1,dflt:"auto",editType:"layoutstyle"},xanchor:{valType:"enumerated",dflt:"auto",values:["auto","left","center","right"],editType:"layoutstyle"},yanchor:{valType:"enumerated",dflt:"auto",values:["auto","top","middle","bottom"],editType:"layoutstyle"},pad:gT(wK({editType:"layoutstyle"}),{}),automargin:{valType:"boolean",dflt:!1,editType:"plot"},editType:"layoutstyle"},uniformtext:{mode:{valType:"enumerated",values:[!1,"hide","show"],dflt:!1,editType:"plot"},minsize:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"},autosize:{valType:"boolean",dflt:!1,editType:"none"},width:{valType:"number",min:10,dflt:700,editType:"plot"},height:{valType:"number",min:10,dflt:450,editType:"plot"},minreducedwidth:{valType:"number",min:2,dflt:64,editType:"plot"},minreducedheight:{valType:"number",min:2,dflt:64,editType:"plot"},margin:{l:{valType:"number",min:0,dflt:80,editType:"plot"},r:{valType:"number",min:0,dflt:80,editType:"plot"},t:{valType:"number",min:0,dflt:100,editType:"plot"},b:{valType:"number",min:0,dflt:80,editType:"plot"},pad:{valType:"number",min:0,dflt:0,editType:"plot"},autoexpand:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},computed:{valType:"any",editType:"none"},paper_bgcolor:{valType:"color",dflt:gp.background,editType:"plot"},plot_bgcolor:{valType:"color",dflt:gp.background,editType:"layoutstyle"},autotypenumbers:{valType:"enumerated",values:["convert types","strict"],dflt:"convert types",editType:"calc"},separators:{valType:"string",editType:"plot"},showlegend:{valType:"boolean",editType:"legend"},colorway:{valType:"colorlist",dflt:gp.defaults,editType:"calc"},datarevision:{valType:"any",editType:"calc"},uirevision:{valType:"any",editType:"none"},editrevision:{valType:"any",editType:"none"},selectionrevision:{valType:"any",editType:"none"},template:{valType:"any",editType:"calc"},newshape:pT.newshape,activeshape:pT.activeshape,newselection:mT.newselection,activeselection:mT.activeselection,meta:{valType:"any",arrayOk:!0,editType:"plot"},transition:gT({},xK.transition,{editType:"none"})}});var bT=oe(()=>{(function(){if(!document.getElementById("9f215cf04c5486422605d13261cb87401f4e7763b6296af81e98efbc0130da53")){var e=document.createElement("style");e.id="9f215cf04c5486422605d13261cb87401f4e7763b6296af81e98efbc0130da53",e.textContent='.maplibregl-map{font:12px/20px Helvetica Neue,Arial,Helvetica,sans-serif;overflow:hidden;position:relative;-webkit-tap-highlight-color:rgb(0 0 0/0);-webkit-touch-callout:none}.maplibregl-canvas{position:absolute;left:0;top:0}.maplibregl-map:fullscreen{width:100%;height:100%}.maplibregl-ctrl-group button.maplibregl-ctrl-compass{touch-action:none}.maplibregl-canvas-container.maplibregl-interactive,.maplibregl-ctrl-group button.maplibregl-ctrl-compass{cursor:grab;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-canvas-container.maplibregl-interactive.maplibregl-track-pointer{cursor:pointer}.maplibregl-canvas-container.maplibregl-interactive:active,.maplibregl-ctrl-group button.maplibregl-ctrl-compass:active{cursor:grabbing}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-canvas-container.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:pinch-zoom}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:none}.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures,.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-ctrl-bottom-left,.maplibregl-ctrl-bottom-right,.maplibregl-ctrl-top-left,.maplibregl-ctrl-top-right{position:absolute;pointer-events:none;z-index:2}.maplibregl-ctrl-top-left{top:0;left:0}.maplibregl-ctrl-top-right{top:0;right:0}.maplibregl-ctrl-bottom-left{bottom:0;left:0}.maplibregl-ctrl-bottom-right{right:0;bottom:0}.maplibregl-ctrl{clear:both;pointer-events:auto;transform:translate(0)}.maplibregl-ctrl-top-left .maplibregl-ctrl{margin:10px 0 0 10px;float:left}.maplibregl-ctrl-top-right .maplibregl-ctrl{margin:10px 10px 0 0;float:right}.maplibregl-ctrl-bottom-left .maplibregl-ctrl{margin:0 0 10px 10px;float:left}.maplibregl-ctrl-bottom-right .maplibregl-ctrl{margin:0 10px 10px 0;float:right}.maplibregl-ctrl-group{border-radius:4px;background:#fff}.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px rgba(0,0,0,.1)}@media (forced-colors:active){.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px ButtonText}}.maplibregl-ctrl-group button{width:29px;height:29px;display:block;padding:0;outline:none;border:0;box-sizing:border-box;background-color:transparent;cursor:pointer}.maplibregl-ctrl button{-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-ctrl-group button+button{border-top:1px solid #ddd}.maplibregl-ctrl button .maplibregl-ctrl-icon{display:block;width:100%;height:100%;background-repeat:no-repeat;background-position:50%}@media (forced-colors:active){.maplibregl-ctrl-icon{background-color:transparent}.maplibregl-ctrl-group button+button{border-top:1px solid ButtonText}}.maplibregl-ctrl button::-moz-focus-inner{border:0;padding:0}.maplibregl-ctrl-attrib-button:focus,.maplibregl-ctrl-group button:focus{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl button:disabled{cursor:not-allowed}.maplibregl-ctrl button:disabled .maplibregl-ctrl-icon{opacity:.25}@media (hover:hover){.maplibregl-ctrl button:not(:disabled):hover{background-color:rgba(0,0,0,.05)}}.maplibregl-ctrl button:not(:disabled):active{background-color:rgba(0,0,0,.05)}.maplibregl-ctrl-group button:focus:focus-visible{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl-group button:focus:not(:focus-visible){box-shadow:none}.maplibregl-ctrl-group button:focus:first-child{border-radius:4px 4px 0 0}.maplibregl-ctrl-group button:focus:last-child{border-radius:0 0 4px 4px}.maplibregl-ctrl-group button:focus:only-child{border-radius:inherit}.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M10%2013c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h9c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M14.5%208.5c-.75%200-1.5.75-1.5%201.5v3h-3c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h3v3c0%20.75.75%201.5%201.5%201.5S16%2019.75%2016%2019v-3h3c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013h-3v-3c0-.75-.75-1.5-1.5-1.5%22%2F%3E%3C%2Fsvg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M10%2013c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h9c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M14.5%208.5c-.75%200-1.5.75-1.5%201.5v3h-3c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h3v3c0%20.75.75%201.5%201.5%201.5S16%2019.75%2016%2019v-3h3c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013h-3v-3c0-.75-.75-1.5-1.5-1.5%22%2F%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M10%2013c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h9c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M14.5%208.5c-.75%200-1.5.75-1.5%201.5v3h-3c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h3v3c0%20.75.75%201.5%201.5%201.5S16%2019.75%2016%2019v-3h3c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013h-3v-3c0-.75-.75-1.5-1.5-1.5%22%2F%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M24%2016v5.5c0%201.75-.75%202.5-2.5%202.5H16v-1l3-1.5-4-5.5%201-1%205.5%204%201.5-3zM6%2016l1.5%203%205.5-4%201%201-4%205.5%203%201.5v1H7.5C5.75%2024%205%2023.25%205%2021.5V16zm7-11v1l-3%201.5%204%205.5-1%201-5.5-4L6%2013H5V7.5C5%205.75%205.75%205%207.5%205zm11%202.5c0-1.75-.75-2.5-2.5-2.5H16v1l3%201.5-4%205.5%201%201%205.5-4%201.5%203h1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M18.5%2016c-1.75%200-2.5.75-2.5%202.5V24h1l1.5-3%205.5%204%201-1-4-5.5%203-1.5v-1zM13%2018.5c0-1.75-.75-2.5-2.5-2.5H5v1l3%201.5L4%2024l1%201%205.5-4%201.5%203h1zm3-8c0%201.75.75%202.5%202.5%202.5H24v-1l-3-1.5L25%205l-1-1-5.5%204L17%205h-1zM10.5%2013c1.75%200%202.5-.75%202.5-2.5V5h-1l-1.5%203L5%204%204%205l4%205.5L5%2012v1z%22%2F%3E%3C%2Fsvg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M24%2016v5.5c0%201.75-.75%202.5-2.5%202.5H16v-1l3-1.5-4-5.5%201-1%205.5%204%201.5-3zM6%2016l1.5%203%205.5-4%201%201-4%205.5%203%201.5v1H7.5C5.75%2024%205%2023.25%205%2021.5V16zm7-11v1l-3%201.5%204%205.5-1%201-5.5-4L6%2013H5V7.5C5%205.75%205.75%205%207.5%205zm11%202.5c0-1.75-.75-2.5-2.5-2.5H16v1l3%201.5-4%205.5%201%201%205.5-4%201.5%203h1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M18.5%2016c-1.75%200-2.5.75-2.5%202.5V24h1l1.5-3%205.5%204%201-1-4-5.5%203-1.5v-1zM13%2018.5c0-1.75-.75-2.5-2.5-2.5H5v1l3%201.5L4%2024l1%201%205.5-4%201.5%203h1zm3-8c0%201.75.75%202.5%202.5%202.5H24v-1l-3-1.5L25%205l-1-1-5.5%204L17%205h-1zM10.5%2013c1.75%200%202.5-.75%202.5-2.5V5h-1l-1.5%203L5%204%204%205l4%205.5L5%2012v1z%22%2F%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M24%2016v5.5c0%201.75-.75%202.5-2.5%202.5H16v-1l3-1.5-4-5.5%201-1%205.5%204%201.5-3zM6%2016l1.5%203%205.5-4%201%201-4%205.5%203%201.5v1H7.5C5.75%2024%205%2023.25%205%2021.5V16zm7-11v1l-3%201.5%204%205.5-1%201-5.5-4L6%2013H5V7.5C5%205.75%205.75%205%207.5%205zm11%202.5c0-1.75-.75-2.5-2.5-2.5H16v1l3%201.5-4%205.5%201%201%205.5-4%201.5%203h1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M18.5%2016c-1.75%200-2.5.75-2.5%202.5V24h1l1.5-3%205.5%204%201-1-4-5.5%203-1.5v-1zM13%2018.5c0-1.75-.75-2.5-2.5-2.5H5v1l3%201.5L4%2024l1%201%205.5-4%201.5%203h1zm3-8c0%201.75.75%202.5%202.5%202.5H24v-1l-3-1.5L25%205l-1-1-5.5%204L17%205h-1zM10.5%2013c1.75%200%202.5-.75%202.5-2.5V5h-1l-1.5%203L5%204%204%205l4%205.5L5%2012v1z%22%2F%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22m10.5%2014%204-8%204%208z%22%2F%3E%3Cpath%20fill%3D%22%23ccc%22%20d%3D%22m10.5%2016%204%208%204-8z%22%2F%3E%3C%2Fsvg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22m10.5%2014%204-8%204%208z%22%2F%3E%3Cpath%20fill%3D%22%23ccc%22%20d%3D%22m10.5%2016%204%208%204-8z%22%2F%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22m10.5%2014%204-8%204%208z%22%2F%3E%3Cpath%20fill%3D%22%23ccc%22%20d%3D%22m10.5%2016%204%208%204-8z%22%2F%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-globe .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2222%22%20height%3D%2222%22%20fill%3D%22none%22%20stroke%3D%22%23333%22%20viewBox%3D%220%200%2022%2022%22%3E%3Ccircle%20cx%3D%2211%22%20cy%3D%2211%22%20r%3D%228.5%22%2F%3E%3Cpath%20d%3D%22M17.5%2011c0%204.819-3.02%208.5-6.5%208.5S4.5%2015.819%204.5%2011%207.52%202.5%2011%202.5s6.5%203.681%206.5%208.5Z%22%2F%3E%3Cpath%20d%3D%22M13.5%2011c0%202.447-.331%204.64-.853%206.206-.262.785-.562%201.384-.872%201.777-.314.399-.58.517-.775.517s-.461-.118-.775-.517c-.31-.393-.61-.992-.872-1.777C8.831%2015.64%208.5%2013.446%208.5%2011s.331-4.64.853-6.206c.262-.785.562-1.384.872-1.777.314-.399.58-.517.775-.517s.461.118.775.517c.31.393.61.992.872%201.777.522%201.565.853%203.76.853%206.206Z%22%2F%3E%3Cpath%20d%3D%22M11%207.5c-1.909%200-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3%201.3%200%200%201-.224-.138q.07-.058.224-.138c.299-.151.763-.302%201.379-.434C7.378%205.666%209.091%205.5%2011%205.5s3.622.166%204.845.428c.616.132%201.08.283%201.379.434.105.053.177.1.224.138q-.07.058-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm0%209c-1.909%200-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3%201.3%200%200%201-.224-.138%201.3%201.3%200%200%201%20.224-.138c.299-.151.763-.302%201.379-.434C7.378%2014.666%209.091%2014.5%2011%2014.5s3.622.166%204.845.428c.616.132%201.08.283%201.379.434.105.053.177.1.224.138a1.3%201.3%200%200%201-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm0-4c-2.46%200-4.672-.222-6.255-.574-.796-.177-1.406-.38-1.805-.59a1.5%201.5%200%200%201-.39-.272.3.3%200%200%201-.047-.064.3.3%200%200%201%20.048-.064c.066-.073.189-.167.389-.272.399-.21%201.009-.413%201.805-.59C6.328%209.722%208.54%209.5%2011%209.5s4.672.222%206.256.574c.795.177%201.405.38%201.804.59.2.105.323.2.39.272a.3.3%200%200%201%20.047.064.3.3%200%200%201-.048.064%201.4%201.4%200%200%201-.389.272c-.399.21-1.009.413-1.804.59-1.584.352-3.796.574-6.256.574Zm-8.501-1.51v.002zm0%20.018v.002zm17.002.002v-.002zm0-.018v-.002z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-globe-enabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2222%22%20height%3D%2222%22%20fill%3D%22none%22%20stroke%3D%22%2333b5e5%22%20viewBox%3D%220%200%2022%2022%22%3E%3Ccircle%20cx%3D%2211%22%20cy%3D%2211%22%20r%3D%228.5%22%2F%3E%3Cpath%20d%3D%22M17.5%2011c0%204.819-3.02%208.5-6.5%208.5S4.5%2015.819%204.5%2011%207.52%202.5%2011%202.5s6.5%203.681%206.5%208.5Z%22%2F%3E%3Cpath%20d%3D%22M13.5%2011c0%202.447-.331%204.64-.853%206.206-.262.785-.562%201.384-.872%201.777-.314.399-.58.517-.775.517s-.461-.118-.775-.517c-.31-.393-.61-.992-.872-1.777C8.831%2015.64%208.5%2013.446%208.5%2011s.331-4.64.853-6.206c.262-.785.562-1.384.872-1.777.314-.399.58-.517.775-.517s.461.118.775.517c.31.393.61.992.872%201.777.522%201.565.853%203.76.853%206.206Z%22%2F%3E%3Cpath%20d%3D%22M11%207.5c-1.909%200-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3%201.3%200%200%201-.224-.138q.07-.058.224-.138c.299-.151.763-.302%201.379-.434C7.378%205.666%209.091%205.5%2011%205.5s3.622.166%204.845.428c.616.132%201.08.283%201.379.434.105.053.177.1.224.138q-.07.058-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm0%209c-1.909%200-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3%201.3%200%200%201-.224-.138%201.3%201.3%200%200%201%20.224-.138c.299-.151.763-.302%201.379-.434C7.378%2014.666%209.091%2014.5%2011%2014.5s3.622.166%204.845.428c.616.132%201.08.283%201.379.434.105.053.177.1.224.138a1.3%201.3%200%200%201-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm0-4c-2.46%200-4.672-.222-6.255-.574-.796-.177-1.406-.38-1.805-.59a1.5%201.5%200%200%201-.39-.272.3.3%200%200%201-.047-.064.3.3%200%200%201%20.048-.064c.066-.073.189-.167.389-.272.399-.21%201.009-.413%201.805-.59C6.328%209.722%208.54%209.5%2011%209.5s4.672.222%206.256.574c.795.177%201.405.38%201.804.59.2.105.323.2.39.272a.3.3%200%200%201%20.047.064.3.3%200%200%201-.048.064%201.4%201.4%200%200%201-.389.272c-.399.21-1.009.413-1.804.59-1.584.352-3.796.574-6.256.574Zm-8.501-1.51v.002zm0%20.018v.002zm17.002.002v-.002zm0-.018v-.002z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-terrain .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2222%22%20height%3D%2222%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2022%2022%22%3E%3Cpath%20d%3D%22m1.754%2013.406%204.453-4.851%203.09%203.09%203.281%203.277.969-.969-3.309-3.312%203.844-4.121%206.148%206.886h1.082v-.855l-7.207-8.07-4.84%205.187L6.169%206.57l-5.48%205.965v.871ZM.688%2016.844h20.625v1.375H.688Zm0%200%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-terrain-enabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2222%22%20height%3D%2222%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2022%2022%22%3E%3Cpath%20d%3D%22m1.754%2013.406%204.453-4.851%203.09%203.09%203.281%203.277.969-.969-3.309-3.312%203.844-4.121%206.148%206.886h1.082v-.855l-7.207-8.07-4.84%205.187L6.169%206.57l-5.48%205.965v.871ZM.688%2016.844h20.625v1.375H.688Zm0%200%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23aaa%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3Cpath%20fill%3D%22red%22%20d%3D%22m14%205%201%201-9%209-1-1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23e58978%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23e54e33%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-waiting .maplibregl-ctrl-icon{animation:maplibregl-spin 2s linear infinite}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23999%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3Cpath%20fill%3D%22red%22%20d%3D%22m14%205%201%201-9%209-1-1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23e58978%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23e54e33%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23666%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3Cpath%20fill%3D%22red%22%20d%3D%22m14%205%201%201-9%209-1-1z%22%2F%3E%3C%2Fsvg%3E")}}@keyframes maplibregl-spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}a.maplibregl-ctrl-logo{width:88px;height:23px;margin:0 0 -4px -4px;display:block;background-repeat:no-repeat;cursor:pointer;overflow:hidden;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2288%22%20height%3D%2223%22%20fill%3D%22none%22%3E%3Cpath%20fill%3D%22%23000%22%20fill-opacity%3D%22.4%22%20fill-rule%3D%22evenodd%22%20d%3D%22M17.408%2016.796h-1.827l2.501-12.095h.198l3.324%206.533.988%202.19.988-2.19%203.258-6.533h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.929%205.644h-.098l-2.914-5.644-.757-1.71-.345%201.71zm1.958-3.42-.726%203.663a1.255%201.255%200%200%201-1.232%201.011h-1.827a1.255%201.255%200%200%201-1.229-1.509l2.501-12.095a1.255%201.255%200%200%201%201.23-1.001h.197a1.25%201.25%200%200%201%201.12.685l3.19%206.273%203.125-6.263a1.25%201.25%200%200%201%201.123-.695h.181a1.255%201.255%200%200%201%201.227.991l1.443%206.71a5%205%200%200%201%20.314-.787l.009-.016a4.6%204.6%200%200%201%201.777-1.887c.782-.46%201.668-.667%202.611-.667a4.6%204.6%200%200%201%201.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255%201.255%200%200%201%201.212.925%201.255%201.255%200%200%201%201.212-.925h1.711c.284%200%20.545.094.755.252.613-.3%201.312-.45%202.075-.45%201.356%200%202.557.445%203.482%201.4q.47.48.763%201.064V4.701a1.255%201.255%200%200%201%201.255-1.255h1.86A1.255%201.255%200%200%201%2054.44%204.7v9.194h2.217c.19%200%20.37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42%202.42%200%200%201-.682-1.71c0-.665.267-1.253.735-1.7a2.45%202.45%200%200%201%201.722-.674%202.43%202.43%200%200%201%201.705.675q.318.302.504.683V4.7a1.255%201.255%200%200%201%201.255-1.255h1.744A1.255%201.255%200%200%201%2065.812%204.7v3.335a4.8%204.8%200%200%201%201.526-.246c.938%200%201.817.214%202.59.69a4.47%204.47%200%200%201%201.67%201.743v-.98a1.255%201.255%200%200%201%201.256-1.256h1.777c.233%200%20.451.064.639.174a3.4%203.4%200%200%201%201.567-.372c.346%200%20.861.02%201.285.232a1.25%201.25%200%200%201%20.689%201.004%204.7%204.7%200%200%201%20.853-.588c.795-.44%201.675-.647%202.61-.647%201.385%200%202.65.39%203.525%201.396.836.938%201.168%202.173%201.168%203.528q-.001.515-.056%201.051a1.255%201.255%200%200%201-.947%201.09l.408.952a1.255%201.255%200%200%201-.477%201.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06%200-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8%205.8%200%200%201-.548-2.512q0-.429.053-.843a1.3%201.3%200%200%201-.333-.086l-.166-.004c-.223%200-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255%201.255%200%200%201-1.256%201.256h-1.777a1.255%201.255%200%200%201-1.256-1.256V15.69l-.032.057a4.8%204.8%200%200%201-1.86%201.833%205.04%205.04%200%200%201-2.484.634%204.5%204.5%200%200%201-1.935-.424%201.25%201.25%200%200%201-.764.258h-1.71a1.255%201.255%200%200%201-1.256-1.255V7.687a2.4%202.4%200%200%201-.428.625c.253.23.412.561.412.93v7.553a1.255%201.255%200%200%201-1.256%201.255h-1.843a1.25%201.25%200%200%201-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255%201.255%200%200%201-1.256-1.255v-1.251l-.061.117a4.7%204.7%200%200%201-1.782%201.884%204.77%204.77%200%200%201-2.485.67%205.6%205.6%200%200%201-1.485-.188l.009%202.764a1.255%201.255%200%200%201-1.255%201.259h-1.729a1.255%201.255%200%200%201-1.255-1.255v-3.537a1.255%201.255%200%200%201-1.167.793h-1.679a1.25%201.25%200%200%201-.77-.263%204.5%204.5%200%200%201-1.945.429c-.885%200-1.724-.21-2.495-.632l-.017-.01a5%205%200%200%201-1.081-.836%201.255%201.255%200%200%201-1.254%201.312h-1.81a1.255%201.255%200%200%201-1.228-.99l-.782-3.625-2.044%203.939a1.25%201.25%200%200%201-1.115.676h-.098a1.25%201.25%200%200%201-1.116-.68l-2.061-3.994zM35.92%2016.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033%201.332h1.678V9.242h-1.694l-.033%201.267q-.133-.329-.526-.658l-.032-.028a3.2%203.2%200%200%200-.668-.428l-.27-.12a3.3%203.3%200%200%200-1.235-.23q-1.136-.001-1.974.493a3.36%203.36%200%200%200-1.3%201.382q-.445.89-.444%202.074%200%201.2.51%202.107a3.8%203.8%200%200%200%201.382%201.381%203.9%203.9%200%200%200%201.893.477q.795%200%201.455-.33zm-2.789-5.38q-.576.675-.575%201.762%200%201.102.559%201.794.576.675%201.645.675a2.25%202.25%200%200%200%20.934-.19%202.2%202.2%200%200%200%20.468-.29l.178-.161a2.2%202.2%200%200%200%20.397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2%202.2%200%200%200-.633-.709l-.13-.086-.047-.028a2.1%202.1%200%200%200-1.073-.285q-1.052%200-1.629.692zm2.316%202.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96%200%200%200-.353-.389.85.85%200%200%200-.464-.127c-.4%200-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945%200%20.506.122.801.27.99.097.11.266.224.68.224.303%200%20.504-.09.687-.269zm7.545%201.705a2.6%202.6%200%200%200%20.331.423q.319.33.755.548l.173.074q.65.255%201.49.255%201.02%200%201.844-.493a3.45%203.45%200%200%200%201.316-1.4q.493-.904.493-2.089%200-1.909-.988-2.913-.988-1.02-2.584-1.02-.898%200-1.575.347a3%203%200%200%200-.415.262l-.199.166a3.4%203.4%200%200%200-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296%201.119.297%201.07%200%201.645-.675.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.435%200-.835.16a2%202%200%200%200-.284.136%202%202%200%200%200-.363.254%202.2%202.2%200%200%200-.46.569l-.082.162a2.6%202.6%200%200%200-.213%201.072v.115q0%20.707.296%201.267l.135.211zm.964-.818a1.1%201.1%200%200%200%20.367.385.94.94%200%200%200%20.476.118c.423%200%20.59-.117.687-.23.159-.194.28-.478.28-.95%200-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1%201%200%200%200-.503.135l-.012.007a.86.86%200%200%200-.335.343c-.073.133-.132.324-.132.614v.115a1.4%201.4%200%200%200%20.14.66zm15.7-6.222q.347-.346.346-.856a1.05%201.05%200%200%200-.345-.79%201.18%201.18%200%200%200-.84-.329q-.51%200-.855.33a1.05%201.05%200%200%200-.346.79q0%20.51.346.855.345.346.856.346.51%200%20.839-.346zm4.337%209.314.033-1.332q.191.403.59.747l.098.081a4%204%200%200%200%20.316.224l.223.122a3.2%203.2%200%200%200%201.44.322%203.8%203.8%200%200%200%201.875-.477%203.5%203.5%200%200%200%201.382-1.366q.527-.89.526-2.09%200-1.184-.444-2.073a3.24%203.24%200%200%200-1.283-1.399q-.823-.51-1.942-.51a3.5%203.5%200%200%200-1.527.344l-.086.043-.165.09a3%203%200%200%200-.33.214q-.432.315-.656.707a2%202%200%200%200-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5%202.5%200%200%200%20.566.7q.117.098.245.18l.144.08a2.1%202.1%200%200%200%20.975.232q1.07%200%201.645-.675.576-.69.576-1.778%200-1.102-.576-1.777-.56-.691-1.645-.692a2.2%202.2%200%200%200-1.015.235q-.22.113-.415.282l-.15.142a2.1%202.1%200%200%200-.42.594q-.223.479-.223%201.1v.115q0%20.705.293%201.26zm2.616-.293c.157-.191.28-.479.28-.967%200-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87%200%200%200-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0%20.285.057.499.144.669a1.1%201.1%200%200%200%20.367.405c.137.082.28.123.455.123.423%200%20.59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493%200%20.642.099l.247-1.794q-.196-.099-.717-.099a2.3%202.3%200%200%200-.545.063%202%202%200%200%200-.411.148%202.2%202.2%200%200%200-.4.249%202.5%202.5%200%200%200-.485.499%202.7%202.7%200%200%200-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5%201.5%200%200%201%20.466-.636%202.5%202.5%200%200%201%20.399-.253%202%202%200%200%201%20.224-.099zm9.784%202.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46%203.46%200%200%200-1.4%201.382q-.493.906-.493%202.106%200%201.07.428%201.975.428.89%201.332%201.432.906.526%202.255.526.973%200%201.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954%200-1.497-.444a1.6%201.6%200%200%201-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1%201%200%200%200-.156-.176q-.46-.428-1.316-.428-.986%200-1.494.604-.379.45-.494%201.234zm-27.053%202.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z%22%2F%3E%3Cpath%20fill%3D%22%23fff%22%20d%3D%22m19.63%2011.151-.757-1.71-.345%201.71-1.12%205.644h-1.827L18.083%204.7h.197l3.325%206.533.988%202.19.988-2.19L26.839%204.7h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.93%205.644h-.098l-2.913-5.644zm14.836%205.81q-1.02%200-1.893-.478a3.8%203.8%200%200%201-1.381-1.382q-.51-.906-.51-2.106%200-1.185.444-2.074a3.36%203.36%200%200%201%201.3-1.382q.839-.494%201.974-.494a3.3%203.3%200%200%201%201.234.231%203.3%203.3%200%200%201%20.97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02%201.053a3.17%203.17%200%200%201-1.662.444zm.296-1.482q.938%200%201.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2%202.2%200%200%200-.807-.872%202.1%202.1%200%200%200-1.119-.313q-1.053%200-1.629.692-.575.675-.575%201.76%200%201.103.559%201.795.577.675%201.645.675zm6.521-6.237h1.711v1.4q.906-1.597%202.83-1.597%201.596%200%202.584%201.02.988%201.005.988%202.914%200%201.185-.493%202.09a3.46%203.46%200%200%201-1.316%201.399%203.5%203.5%200%200%201-1.844.493q-.954%200-1.662-.329a2.67%202.67%200%200%201-1.086-.97l.017%205.134h-1.728zm4.048%206.22q1.07%200%201.645-.674.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.592%200-1.12.296-.51.28-.822.823-.296.527-.296%201.234v.115q0%20.708.296%201.267.313.543.823.855.51.296%201.119.297z%22%2F%3E%3Cpath%20fill%3D%22%23e1e3e9%22%20d%3D%22M51.325%204.7h1.86v10.45h3.473v1.646h-5.333zm7.12%204.542h1.843v7.553h-1.843zm.905-1.415a1.16%201.16%200%200%201-.856-.346%201.17%201.17%200%200%201-.346-.856%201.05%201.05%200%200%201%20.346-.79q.346-.329.856-.329.494%200%20.839.33a1.05%201.05%200%200%201%20.345.79%201.16%201.16%200%200%201-.345.855q-.33.346-.84.346zm7.875%209.133a3.17%203.17%200%200%201-1.662-.444q-.723-.46-1.004-1.053l-.033%201.332h-1.71V4.701h1.743v4.657l-.082%201.283q.279-.658%201.086-1.119a3.5%203.5%200%200%201%201.778-.477q1.119%200%201.942.51a3.24%203.24%200%200%201%201.283%201.4q.445.888.444%202.072%200%201.201-.526%202.09a3.5%203.5%200%200%201-1.382%201.366%203.8%203.8%200%200%201-1.876.477zm-.296-1.481q1.069%200%201.645-.675.577-.69.577-1.778%200-1.102-.577-1.776-.56-.691-1.645-.692a2.12%202.12%200%200%200-1.58.659q-.642.641-.642%201.694v.115q0%20.71.296%201.267a2.4%202.4%200%200%200%20.807.872%202.1%202.1%200%200%200%201.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14%202.14%200%200%201%201.349-.46q.527%200%20.724.098l-.247%201.794q-.149-.099-.642-.099-.774%200-1.416.494-.626.493-.626%201.58v3.883h-1.777V9.242zm9.534%207.718q-1.35%200-2.255-.526-.904-.543-1.332-1.432a4.6%204.6%200%200%201-.428-1.975q0-1.2.493-2.106a3.46%203.46%200%200%201%201.4-1.382q.889-.495%202.007-.494%201.744%200%202.584.97.855.956.856%202.7%200%20.444-.05.92h-5.43q.18%201.005.708%201.45.542.443%201.497.443.79%200%201.3-.131a4%204%200%200%200%20.938-.362l.542%201.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728%200-1.991%201.86z%22%2F%3E%3Cpath%20d%3D%22M5.074%2015.948a.484.657%200%200%200-.486.659v1.84a.484.657%200%200%200%20.486.659h4.101a.484.657%200%200%200%20.486-.659v-1.84a.484.657%200%200%200-.486-.659zm3.56%201.16H5.617v.838h3.017z%22%20style%3D%22fill%3A%23fff%3Bfill-rule%3Aevenodd%3Bstroke-width%3A1.03600001%22%2F%3E%3Cg%20style%3D%22stroke-width%3A1.12603545%22%3E%3Cpath%20d%3D%22M-9.408-1.416c-3.833-.025-7.056%202.912-7.08%206.615-.02%203.08%201.653%204.832%203.107%206.268.903.892%201.721%201.74%202.32%202.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87%201.87%200%200%200-.362%201.121l-.011%201.877c-.003.402.104.787.347%201.125.244.338.688.653%201.23.656l4.142.028c.542.003.99-.306%201.238-.641a1.87%201.87%200%200%200%20.363-1.121l.012-1.875a1.87%201.87%200%200%200-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145%201.425-1.983%202.348-2.87%201.473-1.414%203.18-3.149%203.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006%201.1v.002c3.274.02%205.92%202.532%205.9%205.6-.017%202.706-1.39%204.026-2.863%205.44-1.034.994-2.118%202.033-2.814%203.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34%200%200%201-.226.084.34.34%200%200%201-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067%202.7-5.545%205.975-5.523m-.02%202.826c-1.62-.01-2.944%201.315-2.955%202.96-.01%201.646%201.295%202.988%202.916%202.999h.002c1.621.01%202.943-1.316%202.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005%201.1c1.017.006%201.829.83%201.822%201.89s-.83%201.874-1.848%201.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874%201.848-1.868m-2.155%2011.857%204.14.025c.271.002.49.305.487.676l-.013%201.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668%22%20style%3D%22color%3A%23000%3Bfont-style%3Anormal%3Bfont-variant%3Anormal%3Bfont-weight%3A400%3Bfont-stretch%3Anormal%3Bfont-size%3Amedium%3Bline-height%3Anormal%3Bfont-family%3Asans-serif%3Bfont-variant-ligatures%3Anormal%3Bfont-variant-position%3Anormal%3Bfont-variant-caps%3Anormal%3Bfont-variant-numeric%3Anormal%3Bfont-variant-alternates%3Anormal%3Bfont-feature-settings%3Anormal%3Btext-indent%3A0%3Btext-align%3Astart%3Btext-decoration%3Anone%3Btext-decoration-line%3Anone%3Btext-decoration-style%3Asolid%3Btext-decoration-color%3A%23000%3Bletter-spacing%3Anormal%3Bword-spacing%3Anormal%3Btext-transform%3Anone%3Bwriting-mode%3Alr-tb%3Bdirection%3Altr%3Btext-orientation%3Amixed%3Bdominant-baseline%3Aauto%3Bbaseline-shift%3Abaseline%3Btext-anchor%3Astart%3Bwhite-space%3Anormal%3Bshape-padding%3A0%3Bclip-rule%3Aevenodd%3Bdisplay%3Ainline%3Boverflow%3Avisible%3Bvisibility%3Avisible%3Bopacity%3A1%3Bisolation%3Aauto%3Bmix-blend-mode%3Anormal%3Bcolor-interpolation%3AsRGB%3Bcolor-interpolation-filters%3AlinearRGB%3Bsolid-color%3A%23000%3Bsolid-opacity%3A1%3Bvector-effect%3Anone%3Bfill%3A%23000%3Bfill-opacity%3A.4%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-linecap%3Abutt%3Bstroke-linejoin%3Amiter%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-dashoffset%3A0%3Bstroke-opacity%3A1%3Bcolor-rendering%3Aauto%3Bimage-rendering%3Aauto%3Bshape-rendering%3Aauto%3Btext-rendering%3Aauto%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-9.415-.316C-12.69-.338-15.37%202.14-15.39%205.207c-.017%202.716%201.326%204.041%202.78%205.477%201.013%201%202.081%202.055%202.78%203.67l.092.076a.34.34%200%200%200%20.225.086.34.34%200%200%200%20.227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6%201.78-2.64%202.814-3.634%201.473-1.414%202.847-2.733%202.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057%208.784c1.621.011%202.944-1.315%202.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945%201.315-2.955%202.96s1.295%202.989%202.916%203%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23e1e3e9%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-11.594%2015.465c-.27-.002-.492.297-.494.668l-.012%201.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23fff%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E")}a.maplibregl-ctrl-logo.maplibregl-compact{width:14px}@media (forced-colors:active){a.maplibregl-ctrl-logo{background-color:transparent;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2288%22%20height%3D%2223%22%20fill%3D%22none%22%3E%3Cpath%20fill%3D%22%23000%22%20fill-opacity%3D%22.4%22%20fill-rule%3D%22evenodd%22%20d%3D%22M17.408%2016.796h-1.827l2.501-12.095h.198l3.324%206.533.988%202.19.988-2.19%203.258-6.533h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.929%205.644h-.098l-2.914-5.644-.757-1.71-.345%201.71zm1.958-3.42-.726%203.663a1.255%201.255%200%200%201-1.232%201.011h-1.827a1.255%201.255%200%200%201-1.229-1.509l2.501-12.095a1.255%201.255%200%200%201%201.23-1.001h.197a1.25%201.25%200%200%201%201.12.685l3.19%206.273%203.125-6.263a1.25%201.25%200%200%201%201.123-.695h.181a1.255%201.255%200%200%201%201.227.991l1.443%206.71a5%205%200%200%201%20.314-.787l.009-.016a4.6%204.6%200%200%201%201.777-1.887c.782-.46%201.668-.667%202.611-.667a4.6%204.6%200%200%201%201.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255%201.255%200%200%201%201.212.925%201.255%201.255%200%200%201%201.212-.925h1.711c.284%200%20.545.094.755.252.613-.3%201.312-.45%202.075-.45%201.356%200%202.557.445%203.482%201.4q.47.48.763%201.064V4.701a1.255%201.255%200%200%201%201.255-1.255h1.86A1.255%201.255%200%200%201%2054.44%204.7v9.194h2.217c.19%200%20.37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42%202.42%200%200%201-.682-1.71c0-.665.267-1.253.735-1.7a2.45%202.45%200%200%201%201.722-.674%202.43%202.43%200%200%201%201.705.675q.318.302.504.683V4.7a1.255%201.255%200%200%201%201.255-1.255h1.744A1.255%201.255%200%200%201%2065.812%204.7v3.335a4.8%204.8%200%200%201%201.526-.246c.938%200%201.817.214%202.59.69a4.47%204.47%200%200%201%201.67%201.743v-.98a1.255%201.255%200%200%201%201.256-1.256h1.777c.233%200%20.451.064.639.174a3.4%203.4%200%200%201%201.567-.372c.346%200%20.861.02%201.285.232a1.25%201.25%200%200%201%20.689%201.004%204.7%204.7%200%200%201%20.853-.588c.795-.44%201.675-.647%202.61-.647%201.385%200%202.65.39%203.525%201.396.836.938%201.168%202.173%201.168%203.528q-.001.515-.056%201.051a1.255%201.255%200%200%201-.947%201.09l.408.952a1.255%201.255%200%200%201-.477%201.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06%200-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8%205.8%200%200%201-.548-2.512q0-.429.053-.843a1.3%201.3%200%200%201-.333-.086l-.166-.004c-.223%200-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255%201.255%200%200%201-1.256%201.256h-1.777a1.255%201.255%200%200%201-1.256-1.256V15.69l-.032.057a4.8%204.8%200%200%201-1.86%201.833%205.04%205.04%200%200%201-2.484.634%204.5%204.5%200%200%201-1.935-.424%201.25%201.25%200%200%201-.764.258h-1.71a1.255%201.255%200%200%201-1.256-1.255V7.687a2.4%202.4%200%200%201-.428.625c.253.23.412.561.412.93v7.553a1.255%201.255%200%200%201-1.256%201.255h-1.843a1.25%201.25%200%200%201-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255%201.255%200%200%201-1.256-1.255v-1.251l-.061.117a4.7%204.7%200%200%201-1.782%201.884%204.77%204.77%200%200%201-2.485.67%205.6%205.6%200%200%201-1.485-.188l.009%202.764a1.255%201.255%200%200%201-1.255%201.259h-1.729a1.255%201.255%200%200%201-1.255-1.255v-3.537a1.255%201.255%200%200%201-1.167.793h-1.679a1.25%201.25%200%200%201-.77-.263%204.5%204.5%200%200%201-1.945.429c-.885%200-1.724-.21-2.495-.632l-.017-.01a5%205%200%200%201-1.081-.836%201.255%201.255%200%200%201-1.254%201.312h-1.81a1.255%201.255%200%200%201-1.228-.99l-.782-3.625-2.044%203.939a1.25%201.25%200%200%201-1.115.676h-.098a1.25%201.25%200%200%201-1.116-.68l-2.061-3.994zM35.92%2016.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033%201.332h1.678V9.242h-1.694l-.033%201.267q-.133-.329-.526-.658l-.032-.028a3.2%203.2%200%200%200-.668-.428l-.27-.12a3.3%203.3%200%200%200-1.235-.23q-1.136-.001-1.974.493a3.36%203.36%200%200%200-1.3%201.382q-.445.89-.444%202.074%200%201.2.51%202.107a3.8%203.8%200%200%200%201.382%201.381%203.9%203.9%200%200%200%201.893.477q.795%200%201.455-.33zm-2.789-5.38q-.576.675-.575%201.762%200%201.102.559%201.794.576.675%201.645.675a2.25%202.25%200%200%200%20.934-.19%202.2%202.2%200%200%200%20.468-.29l.178-.161a2.2%202.2%200%200%200%20.397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2%202.2%200%200%200-.633-.709l-.13-.086-.047-.028a2.1%202.1%200%200%200-1.073-.285q-1.052%200-1.629.692zm2.316%202.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96%200%200%200-.353-.389.85.85%200%200%200-.464-.127c-.4%200-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945%200%20.506.122.801.27.99.097.11.266.224.68.224.303%200%20.504-.09.687-.269zm7.545%201.705a2.6%202.6%200%200%200%20.331.423q.319.33.755.548l.173.074q.65.255%201.49.255%201.02%200%201.844-.493a3.45%203.45%200%200%200%201.316-1.4q.493-.904.493-2.089%200-1.909-.988-2.913-.988-1.02-2.584-1.02-.898%200-1.575.347a3%203%200%200%200-.415.262l-.199.166a3.4%203.4%200%200%200-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296%201.119.297%201.07%200%201.645-.675.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.435%200-.835.16a2%202%200%200%200-.284.136%202%202%200%200%200-.363.254%202.2%202.2%200%200%200-.46.569l-.082.162a2.6%202.6%200%200%200-.213%201.072v.115q0%20.707.296%201.267l.135.211zm.964-.818a1.1%201.1%200%200%200%20.367.385.94.94%200%200%200%20.476.118c.423%200%20.59-.117.687-.23.159-.194.28-.478.28-.95%200-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1%201%200%200%200-.503.135l-.012.007a.86.86%200%200%200-.335.343c-.073.133-.132.324-.132.614v.115a1.4%201.4%200%200%200%20.14.66zm15.7-6.222q.347-.346.346-.856a1.05%201.05%200%200%200-.345-.79%201.18%201.18%200%200%200-.84-.329q-.51%200-.855.33a1.05%201.05%200%200%200-.346.79q0%20.51.346.855.345.346.856.346.51%200%20.839-.346zm4.337%209.314.033-1.332q.191.403.59.747l.098.081a4%204%200%200%200%20.316.224l.223.122a3.2%203.2%200%200%200%201.44.322%203.8%203.8%200%200%200%201.875-.477%203.5%203.5%200%200%200%201.382-1.366q.527-.89.526-2.09%200-1.184-.444-2.073a3.24%203.24%200%200%200-1.283-1.399q-.823-.51-1.942-.51a3.5%203.5%200%200%200-1.527.344l-.086.043-.165.09a3%203%200%200%200-.33.214q-.432.315-.656.707a2%202%200%200%200-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5%202.5%200%200%200%20.566.7q.117.098.245.18l.144.08a2.1%202.1%200%200%200%20.975.232q1.07%200%201.645-.675.576-.69.576-1.778%200-1.102-.576-1.777-.56-.691-1.645-.692a2.2%202.2%200%200%200-1.015.235q-.22.113-.415.282l-.15.142a2.1%202.1%200%200%200-.42.594q-.223.479-.223%201.1v.115q0%20.705.293%201.26zm2.616-.293c.157-.191.28-.479.28-.967%200-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87%200%200%200-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0%20.285.057.499.144.669a1.1%201.1%200%200%200%20.367.405c.137.082.28.123.455.123.423%200%20.59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493%200%20.642.099l.247-1.794q-.196-.099-.717-.099a2.3%202.3%200%200%200-.545.063%202%202%200%200%200-.411.148%202.2%202.2%200%200%200-.4.249%202.5%202.5%200%200%200-.485.499%202.7%202.7%200%200%200-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5%201.5%200%200%201%20.466-.636%202.5%202.5%200%200%201%20.399-.253%202%202%200%200%201%20.224-.099zm9.784%202.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46%203.46%200%200%200-1.4%201.382q-.493.906-.493%202.106%200%201.07.428%201.975.428.89%201.332%201.432.906.526%202.255.526.973%200%201.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954%200-1.497-.444a1.6%201.6%200%200%201-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1%201%200%200%200-.156-.176q-.46-.428-1.316-.428-.986%200-1.494.604-.379.45-.494%201.234zm-27.053%202.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z%22%2F%3E%3Cpath%20fill%3D%22%23fff%22%20d%3D%22m19.63%2011.151-.757-1.71-.345%201.71-1.12%205.644h-1.827L18.083%204.7h.197l3.325%206.533.988%202.19.988-2.19L26.839%204.7h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.93%205.644h-.098l-2.913-5.644zm14.836%205.81q-1.02%200-1.893-.478a3.8%203.8%200%200%201-1.381-1.382q-.51-.906-.51-2.106%200-1.185.444-2.074a3.36%203.36%200%200%201%201.3-1.382q.839-.494%201.974-.494a3.3%203.3%200%200%201%201.234.231%203.3%203.3%200%200%201%20.97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02%201.053a3.17%203.17%200%200%201-1.662.444zm.296-1.482q.938%200%201.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2%202.2%200%200%200-.807-.872%202.1%202.1%200%200%200-1.119-.313q-1.053%200-1.629.692-.575.675-.575%201.76%200%201.103.559%201.795.577.675%201.645.675zm6.521-6.237h1.711v1.4q.906-1.597%202.83-1.597%201.596%200%202.584%201.02.988%201.005.988%202.914%200%201.185-.493%202.09a3.46%203.46%200%200%201-1.316%201.399%203.5%203.5%200%200%201-1.844.493q-.954%200-1.662-.329a2.67%202.67%200%200%201-1.086-.97l.017%205.134h-1.728zm4.048%206.22q1.07%200%201.645-.674.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.592%200-1.12.296-.51.28-.822.823-.296.527-.296%201.234v.115q0%20.708.296%201.267.313.543.823.855.51.296%201.119.297z%22%2F%3E%3Cpath%20fill%3D%22%23e1e3e9%22%20d%3D%22M51.325%204.7h1.86v10.45h3.473v1.646h-5.333zm7.12%204.542h1.843v7.553h-1.843zm.905-1.415a1.16%201.16%200%200%201-.856-.346%201.17%201.17%200%200%201-.346-.856%201.05%201.05%200%200%201%20.346-.79q.346-.329.856-.329.494%200%20.839.33a1.05%201.05%200%200%201%20.345.79%201.16%201.16%200%200%201-.345.855q-.33.346-.84.346zm7.875%209.133a3.17%203.17%200%200%201-1.662-.444q-.723-.46-1.004-1.053l-.033%201.332h-1.71V4.701h1.743v4.657l-.082%201.283q.279-.658%201.086-1.119a3.5%203.5%200%200%201%201.778-.477q1.119%200%201.942.51a3.24%203.24%200%200%201%201.283%201.4q.445.888.444%202.072%200%201.201-.526%202.09a3.5%203.5%200%200%201-1.382%201.366%203.8%203.8%200%200%201-1.876.477zm-.296-1.481q1.069%200%201.645-.675.577-.69.577-1.778%200-1.102-.577-1.776-.56-.691-1.645-.692a2.12%202.12%200%200%200-1.58.659q-.642.641-.642%201.694v.115q0%20.71.296%201.267a2.4%202.4%200%200%200%20.807.872%202.1%202.1%200%200%200%201.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14%202.14%200%200%201%201.349-.46q.527%200%20.724.098l-.247%201.794q-.149-.099-.642-.099-.774%200-1.416.494-.626.493-.626%201.58v3.883h-1.777V9.242zm9.534%207.718q-1.35%200-2.255-.526-.904-.543-1.332-1.432a4.6%204.6%200%200%201-.428-1.975q0-1.2.493-2.106a3.46%203.46%200%200%201%201.4-1.382q.889-.495%202.007-.494%201.744%200%202.584.97.855.956.856%202.7%200%20.444-.05.92h-5.43q.18%201.005.708%201.45.542.443%201.497.443.79%200%201.3-.131a4%204%200%200%200%20.938-.362l.542%201.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728%200-1.991%201.86z%22%2F%3E%3Cpath%20d%3D%22M5.074%2015.948a.484.657%200%200%200-.486.659v1.84a.484.657%200%200%200%20.486.659h4.101a.484.657%200%200%200%20.486-.659v-1.84a.484.657%200%200%200-.486-.659zm3.56%201.16H5.617v.838h3.017z%22%20style%3D%22fill%3A%23fff%3Bfill-rule%3Aevenodd%3Bstroke-width%3A1.03600001%22%2F%3E%3Cg%20style%3D%22stroke-width%3A1.12603545%22%3E%3Cpath%20d%3D%22M-9.408-1.416c-3.833-.025-7.056%202.912-7.08%206.615-.02%203.08%201.653%204.832%203.107%206.268.903.892%201.721%201.74%202.32%202.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87%201.87%200%200%200-.362%201.121l-.011%201.877c-.003.402.104.787.347%201.125.244.338.688.653%201.23.656l4.142.028c.542.003.99-.306%201.238-.641a1.87%201.87%200%200%200%20.363-1.121l.012-1.875a1.87%201.87%200%200%200-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145%201.425-1.983%202.348-2.87%201.473-1.414%203.18-3.149%203.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006%201.1v.002c3.274.02%205.92%202.532%205.9%205.6-.017%202.706-1.39%204.026-2.863%205.44-1.034.994-2.118%202.033-2.814%203.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34%200%200%201-.226.084.34.34%200%200%201-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067%202.7-5.545%205.975-5.523m-.02%202.826c-1.62-.01-2.944%201.315-2.955%202.96-.01%201.646%201.295%202.988%202.916%202.999h.002c1.621.01%202.943-1.316%202.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005%201.1c1.017.006%201.829.83%201.822%201.89s-.83%201.874-1.848%201.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874%201.848-1.868m-2.155%2011.857%204.14.025c.271.002.49.305.487.676l-.013%201.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668%22%20style%3D%22color%3A%23000%3Bfont-style%3Anormal%3Bfont-variant%3Anormal%3Bfont-weight%3A400%3Bfont-stretch%3Anormal%3Bfont-size%3Amedium%3Bline-height%3Anormal%3Bfont-family%3Asans-serif%3Bfont-variant-ligatures%3Anormal%3Bfont-variant-position%3Anormal%3Bfont-variant-caps%3Anormal%3Bfont-variant-numeric%3Anormal%3Bfont-variant-alternates%3Anormal%3Bfont-feature-settings%3Anormal%3Btext-indent%3A0%3Btext-align%3Astart%3Btext-decoration%3Anone%3Btext-decoration-line%3Anone%3Btext-decoration-style%3Asolid%3Btext-decoration-color%3A%23000%3Bletter-spacing%3Anormal%3Bword-spacing%3Anormal%3Btext-transform%3Anone%3Bwriting-mode%3Alr-tb%3Bdirection%3Altr%3Btext-orientation%3Amixed%3Bdominant-baseline%3Aauto%3Bbaseline-shift%3Abaseline%3Btext-anchor%3Astart%3Bwhite-space%3Anormal%3Bshape-padding%3A0%3Bclip-rule%3Aevenodd%3Bdisplay%3Ainline%3Boverflow%3Avisible%3Bvisibility%3Avisible%3Bopacity%3A1%3Bisolation%3Aauto%3Bmix-blend-mode%3Anormal%3Bcolor-interpolation%3AsRGB%3Bcolor-interpolation-filters%3AlinearRGB%3Bsolid-color%3A%23000%3Bsolid-opacity%3A1%3Bvector-effect%3Anone%3Bfill%3A%23000%3Bfill-opacity%3A.4%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-linecap%3Abutt%3Bstroke-linejoin%3Amiter%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-dashoffset%3A0%3Bstroke-opacity%3A1%3Bcolor-rendering%3Aauto%3Bimage-rendering%3Aauto%3Bshape-rendering%3Aauto%3Btext-rendering%3Aauto%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-9.415-.316C-12.69-.338-15.37%202.14-15.39%205.207c-.017%202.716%201.326%204.041%202.78%205.477%201.013%201%202.081%202.055%202.78%203.67l.092.076a.34.34%200%200%200%20.225.086.34.34%200%200%200%20.227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6%201.78-2.64%202.814-3.634%201.473-1.414%202.847-2.733%202.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057%208.784c1.621.011%202.944-1.315%202.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945%201.315-2.955%202.96s1.295%202.989%202.916%203%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23e1e3e9%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-11.594%2015.465c-.27-.002-.492.297-.494.668l-.012%201.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23fff%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){a.maplibregl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2288%22%20height%3D%2223%22%20fill%3D%22none%22%3E%3Cpath%20fill%3D%22%23000%22%20fill-opacity%3D%22.4%22%20fill-rule%3D%22evenodd%22%20d%3D%22M17.408%2016.796h-1.827l2.501-12.095h.198l3.324%206.533.988%202.19.988-2.19%203.258-6.533h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.929%205.644h-.098l-2.914-5.644-.757-1.71-.345%201.71zm1.958-3.42-.726%203.663a1.255%201.255%200%200%201-1.232%201.011h-1.827a1.255%201.255%200%200%201-1.229-1.509l2.501-12.095a1.255%201.255%200%200%201%201.23-1.001h.197a1.25%201.25%200%200%201%201.12.685l3.19%206.273%203.125-6.263a1.25%201.25%200%200%201%201.123-.695h.181a1.255%201.255%200%200%201%201.227.991l1.443%206.71a5%205%200%200%201%20.314-.787l.009-.016a4.6%204.6%200%200%201%201.777-1.887c.782-.46%201.668-.667%202.611-.667a4.6%204.6%200%200%201%201.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255%201.255%200%200%201%201.212.925%201.255%201.255%200%200%201%201.212-.925h1.711c.284%200%20.545.094.755.252.613-.3%201.312-.45%202.075-.45%201.356%200%202.557.445%203.482%201.4q.47.48.763%201.064V4.701a1.255%201.255%200%200%201%201.255-1.255h1.86A1.255%201.255%200%200%201%2054.44%204.7v9.194h2.217c.19%200%20.37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42%202.42%200%200%201-.682-1.71c0-.665.267-1.253.735-1.7a2.45%202.45%200%200%201%201.722-.674%202.43%202.43%200%200%201%201.705.675q.318.302.504.683V4.7a1.255%201.255%200%200%201%201.255-1.255h1.744A1.255%201.255%200%200%201%2065.812%204.7v3.335a4.8%204.8%200%200%201%201.526-.246c.938%200%201.817.214%202.59.69a4.47%204.47%200%200%201%201.67%201.743v-.98a1.255%201.255%200%200%201%201.256-1.256h1.777c.233%200%20.451.064.639.174a3.4%203.4%200%200%201%201.567-.372c.346%200%20.861.02%201.285.232a1.25%201.25%200%200%201%20.689%201.004%204.7%204.7%200%200%201%20.853-.588c.795-.44%201.675-.647%202.61-.647%201.385%200%202.65.39%203.525%201.396.836.938%201.168%202.173%201.168%203.528q-.001.515-.056%201.051a1.255%201.255%200%200%201-.947%201.09l.408.952a1.255%201.255%200%200%201-.477%201.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06%200-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8%205.8%200%200%201-.548-2.512q0-.429.053-.843a1.3%201.3%200%200%201-.333-.086l-.166-.004c-.223%200-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255%201.255%200%200%201-1.256%201.256h-1.777a1.255%201.255%200%200%201-1.256-1.256V15.69l-.032.057a4.8%204.8%200%200%201-1.86%201.833%205.04%205.04%200%200%201-2.484.634%204.5%204.5%200%200%201-1.935-.424%201.25%201.25%200%200%201-.764.258h-1.71a1.255%201.255%200%200%201-1.256-1.255V7.687a2.4%202.4%200%200%201-.428.625c.253.23.412.561.412.93v7.553a1.255%201.255%200%200%201-1.256%201.255h-1.843a1.25%201.25%200%200%201-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255%201.255%200%200%201-1.256-1.255v-1.251l-.061.117a4.7%204.7%200%200%201-1.782%201.884%204.77%204.77%200%200%201-2.485.67%205.6%205.6%200%200%201-1.485-.188l.009%202.764a1.255%201.255%200%200%201-1.255%201.259h-1.729a1.255%201.255%200%200%201-1.255-1.255v-3.537a1.255%201.255%200%200%201-1.167.793h-1.679a1.25%201.25%200%200%201-.77-.263%204.5%204.5%200%200%201-1.945.429c-.885%200-1.724-.21-2.495-.632l-.017-.01a5%205%200%200%201-1.081-.836%201.255%201.255%200%200%201-1.254%201.312h-1.81a1.255%201.255%200%200%201-1.228-.99l-.782-3.625-2.044%203.939a1.25%201.25%200%200%201-1.115.676h-.098a1.25%201.25%200%200%201-1.116-.68l-2.061-3.994zM35.92%2016.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033%201.332h1.678V9.242h-1.694l-.033%201.267q-.133-.329-.526-.658l-.032-.028a3.2%203.2%200%200%200-.668-.428l-.27-.12a3.3%203.3%200%200%200-1.235-.23q-1.136-.001-1.974.493a3.36%203.36%200%200%200-1.3%201.382q-.445.89-.444%202.074%200%201.2.51%202.107a3.8%203.8%200%200%200%201.382%201.381%203.9%203.9%200%200%200%201.893.477q.795%200%201.455-.33zm-2.789-5.38q-.576.675-.575%201.762%200%201.102.559%201.794.576.675%201.645.675a2.25%202.25%200%200%200%20.934-.19%202.2%202.2%200%200%200%20.468-.29l.178-.161a2.2%202.2%200%200%200%20.397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2%202.2%200%200%200-.633-.709l-.13-.086-.047-.028a2.1%202.1%200%200%200-1.073-.285q-1.052%200-1.629.692zm2.316%202.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96%200%200%200-.353-.389.85.85%200%200%200-.464-.127c-.4%200-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945%200%20.506.122.801.27.99.097.11.266.224.68.224.303%200%20.504-.09.687-.269zm7.545%201.705a2.6%202.6%200%200%200%20.331.423q.319.33.755.548l.173.074q.65.255%201.49.255%201.02%200%201.844-.493a3.45%203.45%200%200%200%201.316-1.4q.493-.904.493-2.089%200-1.909-.988-2.913-.988-1.02-2.584-1.02-.898%200-1.575.347a3%203%200%200%200-.415.262l-.199.166a3.4%203.4%200%200%200-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296%201.119.297%201.07%200%201.645-.675.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.435%200-.835.16a2%202%200%200%200-.284.136%202%202%200%200%200-.363.254%202.2%202.2%200%200%200-.46.569l-.082.162a2.6%202.6%200%200%200-.213%201.072v.115q0%20.707.296%201.267l.135.211zm.964-.818a1.1%201.1%200%200%200%20.367.385.94.94%200%200%200%20.476.118c.423%200%20.59-.117.687-.23.159-.194.28-.478.28-.95%200-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1%201%200%200%200-.503.135l-.012.007a.86.86%200%200%200-.335.343c-.073.133-.132.324-.132.614v.115a1.4%201.4%200%200%200%20.14.66zm15.7-6.222q.347-.346.346-.856a1.05%201.05%200%200%200-.345-.79%201.18%201.18%200%200%200-.84-.329q-.51%200-.855.33a1.05%201.05%200%200%200-.346.79q0%20.51.346.855.345.346.856.346.51%200%20.839-.346zm4.337%209.314.033-1.332q.191.403.59.747l.098.081a4%204%200%200%200%20.316.224l.223.122a3.2%203.2%200%200%200%201.44.322%203.8%203.8%200%200%200%201.875-.477%203.5%203.5%200%200%200%201.382-1.366q.527-.89.526-2.09%200-1.184-.444-2.073a3.24%203.24%200%200%200-1.283-1.399q-.823-.51-1.942-.51a3.5%203.5%200%200%200-1.527.344l-.086.043-.165.09a3%203%200%200%200-.33.214q-.432.315-.656.707a2%202%200%200%200-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5%202.5%200%200%200%20.566.7q.117.098.245.18l.144.08a2.1%202.1%200%200%200%20.975.232q1.07%200%201.645-.675.576-.69.576-1.778%200-1.102-.576-1.777-.56-.691-1.645-.692a2.2%202.2%200%200%200-1.015.235q-.22.113-.415.282l-.15.142a2.1%202.1%200%200%200-.42.594q-.223.479-.223%201.1v.115q0%20.705.293%201.26zm2.616-.293c.157-.191.28-.479.28-.967%200-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87%200%200%200-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0%20.285.057.499.144.669a1.1%201.1%200%200%200%20.367.405c.137.082.28.123.455.123.423%200%20.59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493%200%20.642.099l.247-1.794q-.196-.099-.717-.099a2.3%202.3%200%200%200-.545.063%202%202%200%200%200-.411.148%202.2%202.2%200%200%200-.4.249%202.5%202.5%200%200%200-.485.499%202.7%202.7%200%200%200-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5%201.5%200%200%201%20.466-.636%202.5%202.5%200%200%201%20.399-.253%202%202%200%200%201%20.224-.099zm9.784%202.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46%203.46%200%200%200-1.4%201.382q-.493.906-.493%202.106%200%201.07.428%201.975.428.89%201.332%201.432.906.526%202.255.526.973%200%201.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954%200-1.497-.444a1.6%201.6%200%200%201-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1%201%200%200%200-.156-.176q-.46-.428-1.316-.428-.986%200-1.494.604-.379.45-.494%201.234zm-27.053%202.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z%22%2F%3E%3Cpath%20fill%3D%22%23fff%22%20d%3D%22m19.63%2011.151-.757-1.71-.345%201.71-1.12%205.644h-1.827L18.083%204.7h.197l3.325%206.533.988%202.19.988-2.19L26.839%204.7h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.93%205.644h-.098l-2.913-5.644zm14.836%205.81q-1.02%200-1.893-.478a3.8%203.8%200%200%201-1.381-1.382q-.51-.906-.51-2.106%200-1.185.444-2.074a3.36%203.36%200%200%201%201.3-1.382q.839-.494%201.974-.494a3.3%203.3%200%200%201%201.234.231%203.3%203.3%200%200%201%20.97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02%201.053a3.17%203.17%200%200%201-1.662.444zm.296-1.482q.938%200%201.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2%202.2%200%200%200-.807-.872%202.1%202.1%200%200%200-1.119-.313q-1.053%200-1.629.692-.575.675-.575%201.76%200%201.103.559%201.795.577.675%201.645.675zm6.521-6.237h1.711v1.4q.906-1.597%202.83-1.597%201.596%200%202.584%201.02.988%201.005.988%202.914%200%201.185-.493%202.09a3.46%203.46%200%200%201-1.316%201.399%203.5%203.5%200%200%201-1.844.493q-.954%200-1.662-.329a2.67%202.67%200%200%201-1.086-.97l.017%205.134h-1.728zm4.048%206.22q1.07%200%201.645-.674.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.592%200-1.12.296-.51.28-.822.823-.296.527-.296%201.234v.115q0%20.708.296%201.267.313.543.823.855.51.296%201.119.297z%22%2F%3E%3Cpath%20fill%3D%22%23e1e3e9%22%20d%3D%22M51.325%204.7h1.86v10.45h3.473v1.646h-5.333zm7.12%204.542h1.843v7.553h-1.843zm.905-1.415a1.16%201.16%200%200%201-.856-.346%201.17%201.17%200%200%201-.346-.856%201.05%201.05%200%200%201%20.346-.79q.346-.329.856-.329.494%200%20.839.33a1.05%201.05%200%200%201%20.345.79%201.16%201.16%200%200%201-.345.855q-.33.346-.84.346zm7.875%209.133a3.17%203.17%200%200%201-1.662-.444q-.723-.46-1.004-1.053l-.033%201.332h-1.71V4.701h1.743v4.657l-.082%201.283q.279-.658%201.086-1.119a3.5%203.5%200%200%201%201.778-.477q1.119%200%201.942.51a3.24%203.24%200%200%201%201.283%201.4q.445.888.444%202.072%200%201.201-.526%202.09a3.5%203.5%200%200%201-1.382%201.366%203.8%203.8%200%200%201-1.876.477zm-.296-1.481q1.069%200%201.645-.675.577-.69.577-1.778%200-1.102-.577-1.776-.56-.691-1.645-.692a2.12%202.12%200%200%200-1.58.659q-.642.641-.642%201.694v.115q0%20.71.296%201.267a2.4%202.4%200%200%200%20.807.872%202.1%202.1%200%200%200%201.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14%202.14%200%200%201%201.349-.46q.527%200%20.724.098l-.247%201.794q-.149-.099-.642-.099-.774%200-1.416.494-.626.493-.626%201.58v3.883h-1.777V9.242zm9.534%207.718q-1.35%200-2.255-.526-.904-.543-1.332-1.432a4.6%204.6%200%200%201-.428-1.975q0-1.2.493-2.106a3.46%203.46%200%200%201%201.4-1.382q.889-.495%202.007-.494%201.744%200%202.584.97.855.956.856%202.7%200%20.444-.05.92h-5.43q.18%201.005.708%201.45.542.443%201.497.443.79%200%201.3-.131a4%204%200%200%200%20.938-.362l.542%201.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728%200-1.991%201.86z%22%2F%3E%3Cpath%20d%3D%22M5.074%2015.948a.484.657%200%200%200-.486.659v1.84a.484.657%200%200%200%20.486.659h4.101a.484.657%200%200%200%20.486-.659v-1.84a.484.657%200%200%200-.486-.659zm3.56%201.16H5.617v.838h3.017z%22%20style%3D%22fill%3A%23fff%3Bfill-rule%3Aevenodd%3Bstroke-width%3A1.03600001%22%2F%3E%3Cg%20style%3D%22stroke-width%3A1.12603545%22%3E%3Cpath%20d%3D%22M-9.408-1.416c-3.833-.025-7.056%202.912-7.08%206.615-.02%203.08%201.653%204.832%203.107%206.268.903.892%201.721%201.74%202.32%202.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87%201.87%200%200%200-.362%201.121l-.011%201.877c-.003.402.104.787.347%201.125.244.338.688.653%201.23.656l4.142.028c.542.003.99-.306%201.238-.641a1.87%201.87%200%200%200%20.363-1.121l.012-1.875a1.87%201.87%200%200%200-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145%201.425-1.983%202.348-2.87%201.473-1.414%203.18-3.149%203.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006%201.1v.002c3.274.02%205.92%202.532%205.9%205.6-.017%202.706-1.39%204.026-2.863%205.44-1.034.994-2.118%202.033-2.814%203.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34%200%200%201-.226.084.34.34%200%200%201-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067%202.7-5.545%205.975-5.523m-.02%202.826c-1.62-.01-2.944%201.315-2.955%202.96-.01%201.646%201.295%202.988%202.916%202.999h.002c1.621.01%202.943-1.316%202.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005%201.1c1.017.006%201.829.83%201.822%201.89s-.83%201.874-1.848%201.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874%201.848-1.868m-2.155%2011.857%204.14.025c.271.002.49.305.487.676l-.013%201.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668%22%20style%3D%22color%3A%23000%3Bfont-style%3Anormal%3Bfont-variant%3Anormal%3Bfont-weight%3A400%3Bfont-stretch%3Anormal%3Bfont-size%3Amedium%3Bline-height%3Anormal%3Bfont-family%3Asans-serif%3Bfont-variant-ligatures%3Anormal%3Bfont-variant-position%3Anormal%3Bfont-variant-caps%3Anormal%3Bfont-variant-numeric%3Anormal%3Bfont-variant-alternates%3Anormal%3Bfont-feature-settings%3Anormal%3Btext-indent%3A0%3Btext-align%3Astart%3Btext-decoration%3Anone%3Btext-decoration-line%3Anone%3Btext-decoration-style%3Asolid%3Btext-decoration-color%3A%23000%3Bletter-spacing%3Anormal%3Bword-spacing%3Anormal%3Btext-transform%3Anone%3Bwriting-mode%3Alr-tb%3Bdirection%3Altr%3Btext-orientation%3Amixed%3Bdominant-baseline%3Aauto%3Bbaseline-shift%3Abaseline%3Btext-anchor%3Astart%3Bwhite-space%3Anormal%3Bshape-padding%3A0%3Bclip-rule%3Aevenodd%3Bdisplay%3Ainline%3Boverflow%3Avisible%3Bvisibility%3Avisible%3Bopacity%3A1%3Bisolation%3Aauto%3Bmix-blend-mode%3Anormal%3Bcolor-interpolation%3AsRGB%3Bcolor-interpolation-filters%3AlinearRGB%3Bsolid-color%3A%23000%3Bsolid-opacity%3A1%3Bvector-effect%3Anone%3Bfill%3A%23000%3Bfill-opacity%3A.4%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-linecap%3Abutt%3Bstroke-linejoin%3Amiter%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-dashoffset%3A0%3Bstroke-opacity%3A1%3Bcolor-rendering%3Aauto%3Bimage-rendering%3Aauto%3Bshape-rendering%3Aauto%3Btext-rendering%3Aauto%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-9.415-.316C-12.69-.338-15.37%202.14-15.39%205.207c-.017%202.716%201.326%204.041%202.78%205.477%201.013%201%202.081%202.055%202.78%203.67l.092.076a.34.34%200%200%200%20.225.086.34.34%200%200%200%20.227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6%201.78-2.64%202.814-3.634%201.473-1.414%202.847-2.733%202.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057%208.784c1.621.011%202.944-1.315%202.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945%201.315-2.955%202.96s1.295%202.989%202.916%203%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23e1e3e9%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-11.594%2015.465c-.27-.002-.492.297-.494.668l-.012%201.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23fff%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl.maplibregl-ctrl-attrib{padding:0 5px;background-color:hsla(0,0%,100%,.5);margin:0}@media screen{.maplibregl-ctrl-attrib.maplibregl-compact{min-height:20px;padding:2px 24px 2px 0;margin:10px;position:relative;background-color:#fff;color:#000;border-radius:12px;box-sizing:content-box}.maplibregl-ctrl-attrib.maplibregl-compact-show{padding:2px 28px 2px 8px;visibility:visible}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact-show,.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact-show{padding:2px 8px 2px 28px;border-radius:12px}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-inner{display:none}.maplibregl-ctrl-attrib-button{display:none;cursor:pointer;position:absolute;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20fill-rule%3D%22evenodd%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M4%2010a6%206%200%201%200%2012%200%206%206%200%201%200-12%200m5-3a1%201%200%201%200%202%200%201%201%200%201%200-2%200m0%203a1%201%200%201%201%202%200v3a1%201%200%201%201-2%200%22%2F%3E%3C%2Fsvg%3E");background-color:hsla(0,0%,100%,.5);width:24px;height:24px;box-sizing:border-box;border-radius:12px;outline:none;top:0;right:0;border:0}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;list-style:none}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button::-webkit-details-marker{display:none}.maplibregl-ctrl-bottom-left .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-top-left .maplibregl-ctrl-attrib-button{left:0}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-inner{display:block}.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-button{background-color:rgba(0,0,0,.05)}.maplibregl-ctrl-bottom-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;right:0}.maplibregl-ctrl-top-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{top:0;right:0}.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{top:0;left:0}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;left:0}}@media screen and (forced-colors:active){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22%23fff%22%20fill-rule%3D%22evenodd%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M4%2010a6%206%200%201%200%2012%200%206%206%200%201%200-12%200m5-3a1%201%200%201%200%202%200%201%201%200%201%200-2%200m0%203a1%201%200%201%201%202%200v3a1%201%200%201%201-2%200%22%2F%3E%3C%2Fsvg%3E")}}@media screen and (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20fill-rule%3D%22evenodd%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M4%2010a6%206%200%201%200%2012%200%206%206%200%201%200-12%200m5-3a1%201%200%201%200%202%200%201%201%200%201%200-2%200m0%203a1%201%200%201%201%202%200v3a1%201%200%201%201-2%200%22%2F%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl-attrib a{color:rgba(0,0,0,.75);text-decoration:none}.maplibregl-ctrl-attrib a:hover{color:inherit;text-decoration:underline}.maplibregl-attrib-empty{display:none}.maplibregl-ctrl-scale{background-color:hsla(0,0%,100%,.75);font-size:10px;white-space:nowrap;border-color:#333;border-style:none solid solid;border-width:medium 2px 2px;padding:0 5px;color:#333;box-sizing:border-box}.maplibregl-popup{position:absolute;top:0;left:0;display:flex;will-change:transform;pointer-events:none}.maplibregl-popup-anchor-top,.maplibregl-popup-anchor-top-left,.maplibregl-popup-anchor-top-right{flex-direction:column}.maplibregl-popup-anchor-bottom,.maplibregl-popup-anchor-bottom-left,.maplibregl-popup-anchor-bottom-right{flex-direction:column-reverse}.maplibregl-popup-anchor-left{flex-direction:row}.maplibregl-popup-anchor-right{flex-direction:row-reverse}.maplibregl-popup-tip{width:0;height:0;border:10px solid transparent;z-index:1}.maplibregl-popup-anchor-top .maplibregl-popup-tip{align-self:center;border-top:none;border-bottom-color:#fff}.maplibregl-popup-anchor-top-left .maplibregl-popup-tip{align-self:flex-start;border-top:none;border-left:none;border-bottom-color:#fff}.maplibregl-popup-anchor-top-right .maplibregl-popup-tip{align-self:flex-end;border-top:none;border-right:none;border-bottom-color:#fff}.maplibregl-popup-anchor-bottom .maplibregl-popup-tip{align-self:center;border-bottom:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip{align-self:flex-start;border-bottom:none;border-left:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip{align-self:flex-end;border-bottom:none;border-right:none;border-top-color:#fff}.maplibregl-popup-anchor-left .maplibregl-popup-tip{align-self:center;border-left:none;border-right-color:#fff}.maplibregl-popup-anchor-right .maplibregl-popup-tip{align-self:center;border-right:none;border-left-color:#fff}[dir=rtl] .maplibregl-popup-anchor-left{flex-direction:row-reverse}[dir=rtl] .maplibregl-popup-anchor-right{flex-direction:row}[dir=rtl] .maplibregl-popup-anchor-top-left .maplibregl-popup-tip{align-self:flex-end}[dir=rtl] .maplibregl-popup-anchor-top-right .maplibregl-popup-tip{align-self:flex-start}[dir=rtl] .maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip{align-self:flex-end}[dir=rtl] .maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip{align-self:flex-start}.maplibregl-popup-close-button{position:absolute;right:0;top:0;border:0;border-radius:0 3px 0 0;cursor:pointer;background-color:transparent}.maplibregl-popup-close-button:hover{background-color:rgba(0,0,0,.05)}.maplibregl-popup-content{position:relative;background:#fff;border-radius:3px;box-shadow:0 1px 2px rgba(0,0,0,.1);padding:15px 10px;pointer-events:auto}.maplibregl-popup-anchor-top-left .maplibregl-popup-content{border-top-left-radius:0}.maplibregl-popup-anchor-top-right .maplibregl-popup-content{border-top-right-radius:0}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-content{border-bottom-left-radius:0}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-content{border-bottom-right-radius:0}.maplibregl-popup-track-pointer{display:none}.maplibregl-popup-track-pointer *{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-map:hover .maplibregl-popup-track-pointer{display:flex}.maplibregl-map:active .maplibregl-popup-track-pointer{display:none}.maplibregl-marker{position:absolute;top:0;left:0;will-change:transform;transition:opacity .2s}.maplibregl-marker-draggable{cursor:grab}.maplibregl-user-location-dot,.maplibregl-user-location-dot:before{background-color:#1da1f2;width:15px;height:15px;border-radius:50%}.maplibregl-user-location-dot:before{content:"";position:absolute;animation:maplibregl-user-location-dot-pulse 2s infinite}.maplibregl-user-location-dot:after{border-radius:50%;border:2px solid #fff;content:"";height:19px;left:-2px;position:absolute;top:-2px;width:19px;box-sizing:border-box;box-shadow:0 0 3px rgba(0,0,0,.35)}@media (prefers-reduced-motion:reduce){.maplibregl-user-location-dot:before{animation:none}}@keyframes maplibregl-user-location-dot-pulse{0%{transform:scale(1);opacity:1}70%{transform:scale(3);opacity:0}to{transform:scale(1);opacity:0}}.maplibregl-user-location-dot-stale{background-color:#aaa}.maplibregl-user-location-dot-stale:after{display:none}.maplibregl-user-location-accuracy-circle{background-color:#1da1f233;width:1px;height:1px;border-radius:100%}.maplibregl-crosshair,.maplibregl-crosshair .maplibregl-interactive,.maplibregl-crosshair .maplibregl-interactive:active{cursor:crosshair}.maplibregl-boxzoom{position:absolute;top:0;left:0;width:0;height:0;background:#fff;border:2px dotted #202020;opacity:.5}.maplibregl-cooperative-gesture-screen{background:rgba(0,0,0,.4);position:absolute;inset:0;display:flex;justify-content:center;align-items:center;color:#fff;padding:1rem;font-size:1.4em;line-height:1.2;opacity:0;pointer-events:none;transition:opacity 1s ease 1s;z-index:99999}.maplibregl-cooperative-gesture-screen.maplibregl-show{opacity:1;transition:opacity .05s}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:none}@media (hover:none),(pointer:coarse){.maplibregl-cooperative-gesture-screen .maplibregl-desktop-message{display:none}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:block}}.maplibregl-pseudo-fullscreen{position:fixed!important;width:100%!important;height:100%!important;top:0!important;left:0!important;z-index:99999}',document.head.appendChild(e)}})()});var _t=oe(Bt=>{"use strict";var T5=Cu(),_T=cp(),xT=y5(),L5e=Mv().addStyleRule,wT=Dn(),AK=Wo(),MK=F1(),TK=wT.extendFlat,k5=wT.extendDeepAll;Bt.modules={};Bt.allCategories={};Bt.allTypes=[];Bt.subplotsRegistry={};Bt.componentsRegistry={};Bt.layoutArrayContainers=[];Bt.layoutArrayRegexes=[];Bt.traceLayoutAttributes={};Bt.localeRegistry={};Bt.apiMethodRegistry={};Bt.collectableSubplotTypes=null;Bt.register=function(r){if(Bt.collectableSubplotTypes=null,r)r&&!Array.isArray(r)&&(r=[r]);else throw new Error("No argument passed to Plotly.register.");for(var t=0;t{"use strict";var FK=h1().timeFormat,qT=Qt(),C5=Cu(),w0=(m1(),xr(p1)).mod,q1=(Za(),xr(nn)),$o=q1.BADNUM,no=q1.ONEDAY,kv=q1.ONEHOUR,x0=q1.ONEMIN,L1=q1.ONESEC,Cv=q1.EPOCHJD,Su=_t(),CT=h1().utcFormat,EK=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\d)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d(:?\d\d)?)?)?)?)?)?\s*$/m,LK=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\di?)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d(:?\d\d)?)?)?)?)?)?\s*$/m,ST=new Date().getFullYear()-70;function Du(e){return e&&Su.componentsRegistry.calendars&&typeof e=="string"&&e!=="gregorian"}gn.dateTick0=function(e,r){var t=qK(e,!!r);if(r<2)return t;var a=gn.dateTime2ms(t,e);return a+=no*(r-1),gn.ms2DateTime(a,0,e)};function qK(e,r){return Du(e)?r?Su.getComponentMethod("calendars","CANONICAL_SUNDAY")[e]:Su.getComponentMethod("calendars","CANONICAL_TICK")[e]:r?"2000-01-02":"2000-01-01"}gn.dfltRange=function(e){return Du(e)?Su.getComponentMethod("calendars","DFLTRANGE")[e]:["2000-01-01","2001-01-01"]};gn.isJSDate=function(e){return typeof e=="object"&&e!==null&&typeof e.getTime=="function"};var _p,xp;gn.dateTime2ms=function(e,r){if(gn.isJSDate(e)){var t=e.getTimezoneOffset()*x0,a=(e.getUTCMinutes()-e.getMinutes())*x0+(e.getUTCSeconds()-e.getSeconds())*L1+(e.getUTCMilliseconds()-e.getMilliseconds());if(a){var n=3*x0;t=t-n/2+w0(a-t+n/2,n)}return e=Number(e)-t,e>=_p&&e<=xp?e:$o}if(typeof e!="string"&&typeof e!="number")return $o;e=String(e);var i=Du(r),o=e.charAt(0);i&&(o==="G"||o==="g")&&(e=e.slice(1),r="");var l=i&&r.slice(0,7)==="chinese",s=e.match(l?LK:EK);if(!s)return $o;var u=s[1],f=s[3]||"1",c=Number(s[5]||1),h=Number(s[7]||0),d=Number(s[9]||0),p=Number(s[11]||0);if(i){if(u.length===2)return $o;u=Number(u);var m;try{var b=Su.getComponentMethod("calendars","getCal")(r);if(l){var y=f.charAt(f.length-1)==="i";f=parseInt(f,10),m=b.newDate(u,b.toMonthIndex(u,f,y),c)}else m=b.newDate(u,Number(f),c)}catch(x){return $o}return m?(m.toJD()-Cv)*no+h*kv+d*x0+p*L1:$o}u.length===2?u=(Number(u)+2e3-ST)%100+ST:u=Number(u),f-=1;var C=new Date(Date.UTC(2e3,f,c,h,d));return C.setUTCFullYear(u),C.getUTCMonth()!==f||C.getUTCDate()!==c?$o:C.getTime()+p*L1};_p=gn.MIN_MS=gn.dateTime2ms("-9999");xp=gn.MAX_MS=gn.dateTime2ms("9999-12-31 23:59:59.9999");gn.isDateTime=function(e,r){return gn.dateTime2ms(e,r)!==$o};function E1(e,r){return String(e+Math.pow(10,r)).slice(1)}var bp=90*no,DT=3*kv,FT=5*x0;gn.ms2DateTime=function(e,r,t){if(typeof e!="number"||!(e>=_p&&e<=xp))return $o;r||(r=0);var a=Math.floor(w0(e+.05,1)*10),n=Math.round(e-a/10),i,o,l,s,u,f;if(Du(t)){var c=Math.floor(n/no)+Cv,h=Math.floor(w0(e,no));try{i=Su.getComponentMethod("calendars","getCal")(t).fromJD(c).formatDate("yyyy-mm-dd")}catch(d){i=CT("G%Y-%m-%d")(new Date(n))}if(i.charAt(0)==="-")for(;i.length<11;)i="-0"+i.slice(1);else for(;i.length<10;)i="0"+i;o=r=_p+no&&e<=xp-no))return $o;var r=Math.floor(w0(e+.05,1)*10),t=new Date(Math.round(e-r/10)),a=FK("%Y-%m-%d")(t),n=t.getHours(),i=t.getMinutes(),o=t.getSeconds(),l=t.getUTCMilliseconds()*10+r;return PT(a,n,i,o,l)};function PT(e,r,t,a,n){if((r||t||a||n)&&(e+=" "+E1(r,2)+":"+E1(t,2),(a||n)&&(e+=":"+E1(a,2),n))){for(var i=4;n%10===0;)i-=1,n/=10;e+="."+E1(n,i)}return e}gn.cleanDate=function(e,r,t){if(e===$o)return r;if(gn.isJSDate(e)||typeof e=="number"&&isFinite(e)){if(Du(t))return C5.error("JS Dates and milliseconds are incompatible with world calendars",e),r;if(e=gn.ms2DateTimeLocal(+e),!e&&r!==void 0)return r}else if(!gn.isDateTime(e,t))return C5.error("unrecognized date",e),r;return e};var PK=/%\d?f/g,RK=/%h/g,zK={1:"1",2:"1",3:"2",4:"2"};function ET(e,r,t,a){e=e.replace(PK,function(i){var o=Math.min(+i.charAt(1)||6,6),l=(r/1e3%1+2).toFixed(o).slice(2).replace(/0+$/,"")||"0";return l});var n=new Date(Math.floor(r+.05));if(e=e.replace(RK,function(){return zK[t("%q")(n)]}),Du(a))try{e=Su.getComponentMethod("calendars","worldCalFmt")(e,r,a)}catch(i){return"Invalid"}return t(e)(n)}var NK=[59,59.9,59.99,59.999,59.9999];function BK(e,r){var t=w0(e+.05,no),a=E1(Math.floor(t/kv),2)+":"+E1(w0(Math.floor(t/x0),60),2);if(r!=="M"){qT(r)||(r=0);var n=Math.min(w0(e/L1,60),NK[r]),i=(100+n).toFixed(r).slice(1);r>0&&(i=i.replace(/0+$/,"").replace(/[\.]$/,"")),a+=":"+i}return a}gn.formatDate=function(e,r,t,a,n,i){if(n=Du(n)&&n,!r)if(t==="y")r=i.year;else if(t==="m")r=i.month;else if(t==="d")r=i.dayMonth+` +`+i.year;else return BK(e,t)+` +`+ET(i.dayMonthYear,e,a,n);return ET(r,e,a,n)};var LT=3*no;gn.incrementMonth=function(e,r,t){t=Du(t)&&t;var a=w0(e,no);if(e=Math.round(e-a),t)try{var n=Math.round(e/no)+Cv,i=Su.getComponentMethod("calendars","getCal")(t),o=i.fromJD(n);return r%12?i.add(o,r,"m"):i.add(o,r/12,"y"),(o.toJD()-Cv)*no+a}catch(s){C5.error("invalid ms "+e+" in calendar "+t)}var l=new Date(e+LT);return l.setUTCMonth(l.getUTCMonth()+r)+a-LT};gn.findExactDates=function(e,r){for(var t=0,a=0,n=0,i=0,o,l,s=Du(r)&&Su.getComponentMethod("calendars","getCal")(r),u=0;u{"use strict";zT.exports=function(r){return r}});var D5=oe(Fu=>{"use strict";var IK=Qt(),HK=Cu(),OK=wp(),UK=(Za(),xr(nn)).BADNUM,S5=1e-9;Fu.findBin=function(e,r,t){if(IK(r.start))return t?Math.ceil((e-r.start)/r.size-S5)-1:Math.floor((e-r.start)/r.size+S5);var a=0,n=r.length,i=0,o=n>1?(r[n-1]-r[0])/(n-1):1,l,s;for(o>=0?s=t?GK:YK:s=t?XK:VK,e+=o*S5*(t?-1:1)*(o>=0?1:-1);a90&&HK.log("Long binary search..."),a-1};function GK(e,r){return er}function XK(e,r){return e>=r}Fu.sorterAsc=function(e,r){return e-r};Fu.sorterDes=function(e,r){return r-e};Fu.distinctVals=function(e){var r=e.slice();r.sort(Fu.sorterAsc);var t;for(t=r.length-1;t>-1&&r[t]===UK;t--);for(var a=r[t]-r[0]||1,n=a/(t||1)/1e4,i=[],o,l=0;l<=t;l++){var s=r[l],u=s-o;o===void 0?(i.push(s),o=s):u>n&&(a=Math.min(a,u),i.push(s),o=s)}return{vals:i,minDiff:a}};Fu.roundUp=function(e,r,t){for(var a=0,n=r.length-1,i,o=0,l=t?0:1,s=t?1:0,u=t?Math.ceil:Math.floor;a0&&(a=1),t&&a)return e.sort(r)}return a?e:e.reverse()};Fu.findIndexOfMin=function(e,r){r=r||OK;for(var t=1/0,a,n=0;nWK});function jK(e){return Object.keys(e).sort()}var WK,Mp=Oa(()=>{"use strict";WK=jK});var NT=oe(yn=>{"use strict";var Sv=Qt(),ZK=ro().isArrayOrTypedArray;yn.aggNums=function(e,r,t,a){var n,i;if((!a||a>t.length)&&(a=t.length),Sv(r)||(r=!1),ZK(t[0])){for(i=new Array(a),n=0;ne.length-1)return e[e.length-1];var t=r%1;return t*e[Math.ceil(r)]+(1-t)*e[Math.floor(r)]}});var UT=oe((B5e,OT)=>{"use strict";var BT=(m1(),xr(p1)),F5=BT.mod,$K=BT.modHalf,Dv=Math.PI,A0=2*Dv;function JK(e){return e/180*Dv}function KK(e){return e/Dv*180}function E5(e){return Math.abs(e[1]-e[0])>A0-1e-14}function IT(e,r){return $K(r-e,A0)}function QK(e,r){return Math.abs(IT(e,r))}function HT(e,r){if(E5(r))return!0;var t,a;r[0]a&&(a+=A0);var n=F5(e,A0),i=n+A0;return n>=t&&n<=a||i>=t&&i<=a}function eQ(e,r,t,a){if(!HT(r,a))return!1;var n,i;return t[0]=n&&e<=i}function L5(e,r,t,a,n,i,o){n=n||0,i=i||0;var l=E5([t,a]),s,u,f,c,h;l?(s=0,u=Dv,f=A0):t{"use strict";jf.isLeftAnchor=function(r){return r.xanchor==="left"||r.xanchor==="auto"&&r.x<=1/3};jf.isCenterAnchor=function(r){return r.xanchor==="center"||r.xanchor==="auto"&&r.x>1/3&&r.x<2/3};jf.isRightAnchor=function(r){return r.xanchor==="right"||r.xanchor==="auto"&&r.x>=2/3};jf.isTopAnchor=function(r){return r.yanchor==="top"||r.yanchor==="auto"&&r.y>=2/3};jf.isMiddleAnchor=function(r){return r.yanchor==="middle"||r.yanchor==="auto"&&r.y>1/3&&r.y<2/3};jf.isBottomAnchor=function(r){return r.yanchor==="bottom"||r.yanchor==="auto"&&r.y<=1/3}});var XT=oe(Wf=>{"use strict";var q5=(m1(),xr(p1)).mod;Wf.segmentsIntersect=VT;function VT(e,r,t,a,n,i,o,l){var s=t-e,u=n-e,f=o-n,c=a-r,h=i-r,d=l-i,p=s*d-f*c;if(p===0)return null;var m=(u*d-f*h)/p,b=(u*c-s*h)/p;return b<0||b>1||m<0||m>1?null:{x:e+s*m,y:r+c*m}}Wf.segmentDistance=function(r,t,a,n,i,o,l,s){if(VT(r,t,a,n,i,o,l,s))return 0;var u=a-r,f=n-t,c=l-i,h=s-o,d=u*u+f*f,p=c*c+h*h,m=Math.min(Tp(u,f,d,i-r,o-t),Tp(u,f,d,l-r,s-t),Tp(c,h,p,r-i,t-o),Tp(c,h,p,a-i,n-o));return Math.sqrt(m)};function Tp(e,r,t,a,n){var i=a*e+n*r;if(i<0)return a*a+n*n;if(i>t){var o=a-e,l=n-r;return o*o+l*l}else{var s=a*r-n*e;return s*s/t}}var kp,P5,YT;Wf.getTextLocation=function(r,t,a,n){if((r!==P5||n!==YT)&&(kp={},P5=r,YT=n),kp[a])return kp[a];var i=r.getPointAtLength(q5(a-n/2,t)),o=r.getPointAtLength(q5(a+n/2,t)),l=Math.atan((o.y-i.y)/(o.x-i.x)),s=r.getPointAtLength(q5(a,t)),u=(s.x*4+i.x+o.x)/6,f=(s.y*4+i.y+o.y)/6,c={x:u,y:f,theta:l};return kp[a]=c,c};Wf.clearLocationCache=function(){P5=null};Wf.getVisibleSegment=function(r,t,a){var n=t.left,i=t.right,o=t.top,l=t.bottom,s=0,u=r.getTotalLength(),f=u,c,h;function d(m){var b=r.getPointAtLength(m);m===0?c=b:m===u&&(h=b);var y=b.xi?b.x-i:0,C=b.yl?b.y-l:0;return Math.sqrt(y*y+C*C)}for(var p=d(s);p;){if(s+=p+a,s>f)return;p=d(s)}for(p=d(f);p;){if(f-=p+a,s>f)return;p=d(f)}return{min:s,max:f,len:f-s,total:u,isClosed:s===0&&f===u&&Math.abs(c.x-h.x)<.1&&Math.abs(c.y-h.y)<.1}};Wf.findPointOnPath=function(r,t,a,n){n=n||{};for(var i=n.pathLength||r.getTotalLength(),o=n.tolerance||.001,l=n.iterationLimit||30,s=r.getPointAtLength(0)[a]>r.getPointAtLength(i)[a]?-1:1,u=0,f=0,c=i,h,d,p;u0?c=h:f=h,u++}return d}});var Cp=oe(Fv=>{"use strict";var Eu={};Fv.throttle=function(r,t,a){var n=Eu[r],i=Date.now();if(!n){for(var o in Eu)Eu[o].tsn.ts+t){l();return}n.timer=setTimeout(function(){l(),n.timer=null},t)};Fv.done=function(e){var r=Eu[e];return!r||!r.timer?Promise.resolve():new Promise(function(t){var a=r.onDone;r.onDone=function(){a&&a(),t(),r.onDone=null}})};Fv.clear=function(e){if(e)jT(Eu[e]),delete Eu[e];else for(var r in Eu)Fv.clear(r)};function jT(e){e&&e.timer!==null&&(clearTimeout(e.timer),e.timer=null)}});var ZT=oe((U5e,WT)=>{"use strict";WT.exports=function(r){r._clearResponsive&&(r._clearResponsive(),delete r._clearResponsive)}});var $T=oe((G5e,Sp)=>{"use strict";Sp.exports=R5;Sp.exports.isMobile=R5;Sp.exports.default=R5;var nQ=/(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|redmi|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,iQ=/CrOS/,oQ=/android|ipad|playbook|silk/i;function R5(e){e||(e={});let r=e.ua;if(!r&&typeof navigator!="undefined"&&(r=navigator.userAgent),r&&r.headers&&typeof r.headers["user-agent"]=="string"&&(r=r.headers["user-agent"]),typeof r!="string")return!1;let t=nQ.test(r)&&!iQ.test(r)||!!e.tablet&&oQ.test(r);return!t&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&r.indexOf("Macintosh")!==-1&&r.indexOf("Safari")!==-1&&(t=!0),t}});var KT=oe((Y5e,JT)=>{"use strict";var lQ=Qt(),sQ=$T();JT.exports=function(r){var t;if(r&&r.hasOwnProperty("userAgent")?t=r.userAgent:t=uQ(),typeof t!="string")return!0;var a=sQ({ua:{headers:{"user-agent":t}},tablet:!0,featureDetect:!1});if(!a)for(var n=t.split(" "),i=1;i-1;l--){var s=n[l];if(s.slice(0,8)==="Version/"){var u=s.slice(8).split(".")[0];if(lQ(u)&&(u=+u),u>=13)return!0}}}return a};function uQ(){var e;return typeof navigator!="undefined"&&(e=navigator.userAgent),e&&e.headers&&typeof e.headers["user-agent"]=="string"&&(e=e.headers["user-agent"]),e}});var ek=oe((V5e,QT)=>{"use strict";var fQ=Lt();QT.exports=function(r,t,a){var n=r.selectAll("g."+a.replace(/\s/g,".")).data(t,function(o){return o[0].trace.uid});n.exit().remove(),n.enter().append("g").attr("class",a),n.order();var i=r.classed("rangeplot")?"nodeRangePlot3":"node3";return n.each(function(o){o[0][i]=fQ.select(this)}),n}});var tk=oe((X5e,rk)=>{"use strict";var cQ=_t();rk.exports=function(r,t){for(var a=r._context.locale,n=0;n<2;n++){for(var i=r._context.locales,o=0;o<2;o++){var l=(i[a]||{}).dictionary;if(l){var s=l[t];if(s)return s}i=cQ.localeRegistry}var u=a.split("-")[0];if(u===a)break;a=u}return t}});var nk=oe((j5e,ak)=>{"use strict";ak.exports=function(r){for(var t={},a=[],n=0,i=0;i{"use strict";ik.exports=function(r){for(var t=dQ(r)?hQ:vQ,a=[],n=0;n{"use strict";lk.exports=function(r,t){if(!t)return r;var a=1/Math.abs(t),n=a>1?(a*r+a*t)/a:r+t,i=String(n).length;if(i>16){var o=String(t).length,l=String(r).length;if(i>=l+o){var s=parseFloat(n).toPrecision(12);s.indexOf("e+")===-1&&(n=+s)}}return n}});var fk={};Ua(fk,{default:()=>gQ});function mQ(e){return typeof e=="string"&&(e=e.replace(pQ,"")),(0,uk.default)(e)?Number(e):void 0}var uk,pQ,gQ,ck=Oa(()=>{"use strict";uk=H_(Qt());Za();pQ=/^['"%,$#\s']+|[, ]|['"%,$#\s']+$/g;gQ=mQ});var dk=oe((J5e,hk)=>{"use strict";var yQ=/<[^>]*>/g,bQ=/[\p{S}\p{P}]/gu,_Q=/[\p{Cc}\p{Cf}\uFE00-\uFE0F\u20E3]/gu,xQ=/�/g,wQ=/\s+/g,Dp="-",vk=Dp.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),AQ=new RegExp(vk+"{3,}","g"),MQ=new RegExp(vk+"$","g"),TQ=60;function kQ(e){return typeof e.toWellFormed=="function"?e.toWellFormed():new TextDecoder().decode(new TextEncoder().encode(e))}hk.exports=function(r,t=TQ){var a=kQ(r!=null?r:"").replace(xQ,"").replace(yQ," ").replace(bQ,n=>n===Dp?n:"").toLowerCase().trim().replace(wQ,Dp).replace(_Q,"").replace(AQ,Dp);return a.length<=t?a:Array.from(a).slice(0,t).join("").replace(MQ,"")}});var pr=oe((K5e,kk)=>{"use strict";var Ev=Lt(),CQ=h1().utcFormat,SQ=Fy().format,_k=Qt(),xk=(Za(),xr(nn)),wk=xk.FP_SAFE,DQ=-wk,pk=xk.BADNUM,qe={};kk.exports=qe;qe.adjustFormat=function(r){if(!r||/^\d[.]\df/.test(r)||/[.]\d%/.test(r))return r;if(r==="0.f")return"~f";if(/^\d%/.test(r))return"~%";if(/^\ds/.test(r))return"~s";var t=(r.match(/^[+\-( ]?/)||[""])[0],a=r.slice(t.length);return!/^[~,.0$#]/.test(a)&&/[&fps]/.test(a)?t+"~"+a:r};var mk={};qe.warnBadFormat=function(e){var r=String(e);mk[r]||(mk[r]=1,qe.warn('encountered bad format: "'+r+'"'))};qe.noFormat=function(e){return String(e)};qe.numberFormat=function(e){var r;try{r=SQ(qe.adjustFormat(e))}catch(t){return qe.warnBadFormat(e),qe.noFormat}return r};qe.nestedProperty=Q2();qe.keyedContainer=ux();qe.relativeAttr=cx();qe.isPlainObject=h0();qe.toLogRange=qd();qe.relinkPrivateKeys=px();var M0=ro();qe.isArrayBuffer=M0.isArrayBuffer;qe.isTypedArray=M0.isTypedArray;qe.isArrayOrTypedArray=M0.isArrayOrTypedArray;qe.isArray1D=M0.isArray1D;qe.ensureArray=M0.ensureArray;qe.concat=M0.concat;qe.maxRowLength=M0.maxRowLength;qe.minRowLength=M0.minRowLength;var Ak=(m1(),xr(p1));qe.mod=Ak.mod;qe.modHalf=Ak.modHalf;var T0=zA();qe.valObjectMeta=T0.valObjectMeta;qe.coerce=T0.coerce;qe.coerce2=T0.coerce2;qe.coerceFont=T0.coerceFont;qe.coercePattern=T0.coercePattern;qe.coerceHoverinfo=T0.coerceHoverinfo;qe.coerceSelectionMarkerOpacity=T0.coerceSelectionMarkerOpacity;qe.validate=T0.validate;var Mo=RT();qe.dateTime2ms=Mo.dateTime2ms;qe.isDateTime=Mo.isDateTime;qe.ms2DateTime=Mo.ms2DateTime;qe.ms2DateTimeLocal=Mo.ms2DateTimeLocal;qe.cleanDate=Mo.cleanDate;qe.isJSDate=Mo.isJSDate;qe.formatDate=Mo.formatDate;qe.incrementMonth=Mo.incrementMonth;qe.dateTick0=Mo.dateTick0;qe.dfltRange=Mo.dfltRange;qe.findExactDates=Mo.findExactDates;qe.MIN_MS=Mo.MIN_MS;qe.MAX_MS=Mo.MAX_MS;var Zf=D5();qe.findBin=Zf.findBin;qe.sorterAsc=Zf.sorterAsc;qe.sorterDes=Zf.sorterDes;qe.distinctVals=Zf.distinctVals;qe.roundUp=Zf.roundUp;qe.sort=Zf.sort;qe.findIndexOfMin=Zf.findIndexOfMin;qe.sortObjectKeys=(Mp(),xr(Ap)).default;var Lu=NT();qe.aggNums=Lu.aggNums;qe.len=Lu.len;qe.mean=Lu.mean;qe.geometricMean=Lu.geometricMean;qe.median=Lu.median;qe.midRange=Lu.midRange;qe.variance=Lu.variance;qe.stdev=Lu.stdev;qe.interp=Lu.interp;var Ol=vp();qe.init2dArray=Ol.init2dArray;qe.transposeRagged=Ol.transposeRagged;qe.dot=Ol.dot;qe.translationMatrix=Ol.translationMatrix;qe.rotationMatrix=Ol.rotationMatrix;qe.rotationXYMatrix=Ol.rotationXYMatrix;qe.apply3DTransform=Ol.apply3DTransform;qe.apply2DTransform=Ol.apply2DTransform;qe.apply2DTransform2=Ol.apply2DTransform2;qe.convertCssMatrix=Ol.convertCssMatrix;qe.inverseTransformMatrix=Ol.inverseTransformMatrix;var Fs=UT();qe.deg2rad=Fs.deg2rad;qe.rad2deg=Fs.rad2deg;qe.angleDelta=Fs.angleDelta;qe.angleDist=Fs.angleDist;qe.isFullCircle=Fs.isFullCircle;qe.isAngleInsideSector=Fs.isAngleInsideSector;qe.isPtInsideSector=Fs.isPtInsideSector;qe.pathArc=Fs.pathArc;qe.pathSector=Fs.pathSector;qe.pathAnnulus=Fs.pathAnnulus;var R1=GT();qe.isLeftAnchor=R1.isLeftAnchor;qe.isCenterAnchor=R1.isCenterAnchor;qe.isRightAnchor=R1.isRightAnchor;qe.isTopAnchor=R1.isTopAnchor;qe.isMiddleAnchor=R1.isMiddleAnchor;qe.isBottomAnchor=R1.isBottomAnchor;var z1=XT();qe.segmentsIntersect=z1.segmentsIntersect;qe.segmentDistance=z1.segmentDistance;qe.getTextLocation=z1.getTextLocation;qe.clearLocationCache=z1.clearLocationCache;qe.getVisibleSegment=z1.getVisibleSegment;qe.findPointOnPath=z1.findPointOnPath;var Lp=Dn();qe.extendFlat=Lp.extendFlat;qe.extendDeep=Lp.extendDeep;qe.extendDeepAll=Lp.extendDeepAll;qe.extendDeepNoArrays=Lp.extendDeepNoArrays;var z5=Cu();qe.log=z5.log;qe.warn=z5.warn;qe.error=z5.error;var FQ=(C1(),xr(Av));qe.counterRegex=FQ.counter;var N5=Cp();qe.throttle=N5.throttle;qe.throttleDone=N5.done;qe.clearThrottle=N5.clear;var Ul=Mv();qe.getGraphDiv=Ul.getGraphDiv;qe.isPlotDiv=Ul.isPlotDiv;qe.removeElement=Ul.removeElement;qe.addStyleRule=Ul.addStyleRule;qe.addRelatedStyleRule=Ul.addRelatedStyleRule;qe.deleteRelatedStyleRule=Ul.deleteRelatedStyleRule;qe.setStyleOnHover=Ul.setStyleOnHover;qe.getFullTransformMatrix=Ul.getFullTransformMatrix;qe.getElementTransformMatrix=Ul.getElementTransformMatrix;qe.getElementAndAncestors=Ul.getElementAndAncestors;qe.equalDomRects=Ul.equalDomRects;qe.clearResponsive=ZT();qe.preserveDrawingBuffer=KT();qe.makeTraceGroups=ek();qe._=tk();qe.notifier=u5();qe.filterUnique=nk();qe.filterVisible=ok();qe.pushUnique=y5();qe.increment=sk();qe.cleanNumber=(ck(),xr(fk)).default;qe.slugify=dk();qe.ensureNumber=function(r){return _k(r)?(r=Number(r),r>wk||r=r?!1:_k(e)&&e>=0&&e%1===0};qe.noop=cp();qe.identity=wp();qe.repeat=function(e,r){for(var t=new Array(r),a=0;at?Math.max(t,Math.min(r,e)):Math.max(r,Math.min(t,e))};qe.bBoxIntersect=function(e,r,t){return t=t||0,e.left<=r.right+t&&r.left<=e.right+t&&e.top<=r.bottom+t&&r.top<=e.bottom+t};qe.simpleMap=function(e,r,t,a,n){for(var i=e.length,o=new Array(i),l=0;l=Math.pow(2,t)?n>10?(qe.warn("randstr failed uniqueness"),o):e(r,t,a,(n||0)+1):o};qe.OptionControl=function(e,r){e||(e={}),r||(r="opt");var t={};return t.optionList=[],t._newoption=function(a){a[r]=e,t[a.name]=a,t.optionList.push(a)},t["_"+r]=e,t};qe.smooth=function(e,r){if(r=Math.round(r)||0,r<2)return e;var t=e.length,a=2*t,n=2*r-1,i=new Array(n),o=new Array(t),l,s,u,f;for(l=0;l=a&&(u-=a*Math.floor(u/a)),u<0?u=-1-u:u>=t&&(u=a-1-u),f+=e[u]*i[s];o[l]=f}return o};qe.syncOrAsync=function(e,r,t){var a,n;function i(){return qe.syncOrAsync(e,r,t)}for(;e.length;)if(n=e.splice(0,1)[0],a=n(r),a&&a.then)return a.then(i);return t&&t(r)};qe.stripTrailingSlash=function(e){return e.slice(-1)==="/"?e.slice(0,-1):e};qe.noneOrAll=function(e,r,t){if(e){var a=!1,n=!0,i,o;for(i=0;i0?n:0})};qe.fillArray=function(e,r,t,a){if(a=a||qe.identity,qe.isArrayOrTypedArray(e))for(var n=0;nqQ.test(window.navigator.userAgent);var PQ=/Firefox\/(\d+)\.\d+/;qe.getFirefoxVersion=function(){var e=PQ.exec(window.navigator.userAgent);if(e&&e.length===2){var r=parseInt(e[1]);if(!isNaN(r))return r}return null};qe.isD3Selection=function(e){return e instanceof Ev.selection};qe.ensureSingle=function(e,r,t,a){var n=e.select(r+(t?"."+t:""));if(n.size())return n;var i=e.append(r);return t&&i.classed(t,!0),a&&i.call(a),i};qe.ensureSingleById=function(e,r,t,a){var n=e.select(r+"#"+t);if(n.size())return n;var i=e.append(r).attr("id",t);return a&&i.call(a),i};qe.objectFromPath=function(e,r){for(var t=e.split("."),a,n=a={},i=0;i1?n+o[1]:"";if(i&&(o.length>1||l.length>4||t))for(;a.test(l);)l=l.replace(a,"$1"+i+"$2");return l+s};qe.TEMPLATE_STRING_REGEX=/%{([^\s%{}:]*)([:|\|][^}]*)?}/g;var Tk=/^\w*$/;qe.templateString=function(e,r){var t={};return e.replace(qe.TEMPLATE_STRING_REGEX,function(a,n){var i;return Tk.test(n)?i=r[n]:(t[n]=t[n]||qe.nestedProperty(r,n).get,i=t[n](!0)),i!==void 0?i:""})};var NQ={max:10,count:0,name:"hovertemplate"};qe.hovertemplateString=e=>B5(Ha(ga({},e),{opts:NQ}));var BQ={max:10,count:0,name:"texttemplate"};qe.texttemplateString=e=>B5(Ha(ga({},e),{opts:BQ}));var IQ=/^(\S+)([\*\/])(-?\d+(\.\d+)?)$/;function HQ(e){var r=e.match(IQ);return r?{key:r[1],op:r[2],number:Number(r[3])}:{key:e,op:null,number:null}}var OQ={max:10,count:0,name:"texttemplate",parseMultDiv:!0};qe.texttemplateStringForShapes=e=>B5(Ha(ga({},e),{opts:OQ}));var gk=/^[:|\|]/;function B5({data:e=[],locale:r,fallback:t,labels:a={},opts:n,template:i}){return i.replace(qe.TEMPLATE_STRING_REGEX,(o,l,s)=>{let u=["xother","yother"].includes(l),f=["_xother","_yother"].includes(l),c=["_xother_","_yother_"].includes(l),h=["xother_","yother_"].includes(l),d=u||f||h||c;(f||c)&&(l=l.substring(1)),(h||c)&&(l=l.substring(0,l.length-1));let p=null,m=null;if(n.parseMultDiv){var b=HQ(l);l=b.key,p=b.op,m=b.number}let y;if(d){if(a[l]===void 0)return"";y=a[l]}else for(let A of e)if(A){if(A.hasOwnProperty(l)){y=A[l];break}if(Tk.test(l)||(y=qe.nestedProperty(A,l).get(!0)),y!==void 0)break}if(y===void 0){let{count:A,max:k,name:M}=n,E=t===!1?o:t;return A=Ep&&o<=yk,u=l>=Ep&&l<=yk;if(s&&(a=10*a+o-Ep),u&&(n=10*n+l-Ep),!s||!u){if(a!==n)return a-n;if(o!==l)return o-l}}return n-a};var P1=2e9;qe.seedPseudoRandom=function(){P1=2e9};qe.pseudoRandom=function(){var e=P1;return P1=(69069*P1+1)%4294967296,Math.abs(P1-e)<429496729?qe.pseudoRandom():P1/4294967296};qe.fillText=function(e,r,t){var a=Array.isArray(t)?function(o){t.push(o)}:function(o){t.text=o},n=qe.extractOption(e,r,"htx","hovertext");if(qe.isValidTextValue(n))return a(n);var i=qe.extractOption(e,r,"tx","text");if(qe.isValidTextValue(i))return a(i)};qe.isValidTextValue=function(e){return e||e===0};qe.formatPercent=function(e,r){r=r||0;for(var t=(Math.round(100*e*Math.pow(10,r))*Math.pow(.1,r)).toFixed(r)+"%",a=0;a1&&(u=1):u=0,qe.strTranslate(n-u*(t+o),i-u*(a+l))+qe.strScale(u)+(s?"rotate("+s+(r?"":" "+t+" "+a)+")":"")};qe.setTransormAndDisplay=function(e,r){e.attr("transform",qe.getTextTransform(r)),e.style("display",r.scale?null:"none")};qe.ensureUniformFontSize=function(e,r){var t=qe.extendFlat({},r);return t.size=Math.max(r.size,e._fullLayout.uniformtext.minsize||0),t};qe.join2=function(e,r,t){var a=e.length;return a>1?e.slice(0,-1).join(r)+t+e[a-1]:e.join(r)};qe.bigFont=function(e){return Math.round(1.2*e)};var bk=qe.getFirefoxVersion(),UQ=bk!==null&&bk<86;qe.getPositionFromD3Event=function(){return UQ?[Ev.event.layerX,Ev.event.layerY]:[Ev.event.offsetX,Ev.event.offsetY]}});var Dk=oe(()=>{"use strict";var GQ=pr(),Ck={"X,X div":'direction:ltr;font-family:"Open Sans",verdana,arial,sans-serif;margin:0;padding:0;border: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 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:focus-within .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-group a":"display:grid;place-content:center;","X .modebar-btn":"position:relative;font-size:16px;padding:3px 4px;height:22px;cursor:pointer;line-height:normal;box-sizing:border-box;border:none;background:rgba(0,0,0,0);","X .modebar-btn svg":"position:relative;","X .modebar-btn:focus-visible":"outline:1px solid #000;outline-offset:1px;border-radius:3px;","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;","X .plotly-cloud-dialog":'font-family:"Open Sans",verdana,arial,sans-serif;position:absolute;top:0;left:0;width:100%;height:100%;z-index:1001;display:flex;align-items:center;justify-content:center;background-color:rgba(0,0,0,.4);',"X .plotly-cloud-dialog .plotly-cloud-dialog-box":"box-sizing:border-box;min-width:300px;max-width:420px;padding:20px 24px;background-color:#fff;border:1px solid #e0e2e5;border-radius:4px;box-shadow:0 4px 16px rgba(0,0,0,.25);font-size:13px;color:#2a3f5f;","X .plotly-cloud-dialog .plotly-cloud-dialog-title":"font-size:16px;font-weight:bold;margin-bottom:12px;","X .plotly-cloud-dialog .plotly-cloud-dialog-message":"line-height:1.5;overflow-wrap:break-word;word-wrap:break-word;","X .plotly-cloud-dialog .plotly-cloud-dialog-message--hostname":"font-weight:bold;text-decoration:underline;","X .plotly-cloud-dialog .plotly-cloud-dialog-message--account":"margin-top:16px;padding:8px;border-radius:3px;font-size:.9em;background-color:#edf1f8;","X .plotly-cloud-dialog .plotly-cloud-dialog-buttons":"display:flex;justify-content:flex-end;margin-top:20px;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn":"font-family:inherit;font-size:13px;padding:7px 16px;margin-left:8px;border-radius:3px;border:1px solid rgba(0,0,0,0);cursor:pointer;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn:focus-visible":"outline:2px solid #447adb;outline-offset:1px;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn--cancel":"background-color:#f3f3f3;margin-left:auto;color:#777;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn--cancel:hover":"background-color:#e0e2e5;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn--confirm":"background-color:#447adb;color:#fff;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn--confirm:hover":"background-color:#1d3b84;",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(I5 in Ck)Sk=I5.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier"),GQ.addStyleRule(Sk,Ck[I5]);var Sk,I5});var H5=oe((t6e,Fk)=>{Fk.exports=!0});var U5=oe((a6e,Ek)=>{"use strict";var YQ=H5(),O5;typeof window.matchMedia=="function"?O5=!window.matchMedia("(hover: none)").matches:O5=YQ;Ek.exports=O5});var Rp=oe((n6e,G5)=>{"use strict";var N1=typeof Reflect=="object"?Reflect:null,Lk=N1&&typeof N1.apply=="function"?N1.apply:function(r,t,a){return Function.prototype.apply.call(r,t,a)},qp;N1&&typeof N1.ownKeys=="function"?qp=N1.ownKeys:Object.getOwnPropertySymbols?qp=function(r){return Object.getOwnPropertyNames(r).concat(Object.getOwnPropertySymbols(r))}:qp=function(r){return Object.getOwnPropertyNames(r)};function VQ(e){console&&console.warn&&console.warn(e)}var Pk=Number.isNaN||function(r){return r!==r};function qa(){qa.init.call(this)}G5.exports=qa;G5.exports.once=ZQ;qa.EventEmitter=qa;qa.prototype._events=void 0;qa.prototype._eventsCount=0;qa.prototype._maxListeners=void 0;var qk=10;function Pp(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(qa,"defaultMaxListeners",{enumerable:!0,get:function(){return qk},set:function(e){if(typeof e!="number"||e<0||Pk(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");qk=e}});qa.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};qa.prototype.setMaxListeners=function(r){if(typeof r!="number"||r<0||Pk(r))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+r+".");return this._maxListeners=r,this};function Rk(e){return e._maxListeners===void 0?qa.defaultMaxListeners:e._maxListeners}qa.prototype.getMaxListeners=function(){return Rk(this)};qa.prototype.emit=function(r){for(var t=[],a=1;a0&&(o=t[0]),o instanceof Error)throw o;var l=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw l.context=o,l}var s=i[r];if(s===void 0)return!1;if(typeof s=="function")Lk(s,this,t);else for(var u=s.length,f=Hk(s,u),a=0;a0&&o.length>n&&!o.warned){o.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(r)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=r,l.count=o.length,VQ(l)}return e}qa.prototype.addListener=function(r,t){return zk(this,r,t,!1)};qa.prototype.on=qa.prototype.addListener;qa.prototype.prependListener=function(r,t){return zk(this,r,t,!0)};function XQ(){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 Nk(e,r,t){var a={fired:!1,wrapFn:void 0,target:e,type:r,listener:t},n=XQ.bind(a);return n.listener=t,a.wrapFn=n,n}qa.prototype.once=function(r,t){return Pp(t),this.on(r,Nk(this,r,t)),this};qa.prototype.prependOnceListener=function(r,t){return Pp(t),this.prependListener(r,Nk(this,r,t)),this};qa.prototype.removeListener=function(r,t){var a,n,i,o,l;if(Pp(t),n=this._events,n===void 0)return this;if(a=n[r],a===void 0)return this;if(a===t||a.listener===t)--this._eventsCount===0?this._events=Object.create(null):(delete n[r],n.removeListener&&this.emit("removeListener",r,a.listener||t));else if(typeof a!="function"){for(i=-1,o=a.length-1;o>=0;o--)if(a[o]===t||a[o].listener===t){l=a[o].listener,i=o;break}if(i<0)return this;i===0?a.shift():jQ(a,i),a.length===1&&(n[r]=a[0]),n.removeListener!==void 0&&this.emit("removeListener",r,l||t)}return this};qa.prototype.off=qa.prototype.removeListener;qa.prototype.removeAllListeners=function(r){var t,a,n;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[r]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete a[r]),this;if(arguments.length===0){var i=Object.keys(a),o;for(n=0;n=0;n--)this.removeListener(r,t[n]);return this};function Bk(e,r,t){var a=e._events;if(a===void 0)return[];var n=a[r];return n===void 0?[]:typeof n=="function"?t?[n.listener||n]:[n]:t?WQ(n):Hk(n,n.length)}qa.prototype.listeners=function(r){return Bk(this,r,!0)};qa.prototype.rawListeners=function(r){return Bk(this,r,!1)};qa.listenerCount=function(e,r){return typeof e.listenerCount=="function"?e.listenerCount(r):Ik.call(e,r)};qa.prototype.listenerCount=Ik;function Ik(e){var r=this._events;if(r!==void 0){var t=r[e];if(typeof t=="function")return 1;if(t!==void 0)return t.length}return 0}qa.prototype.eventNames=function(){return this._eventsCount>0?qp(this._events):[]};function Hk(e,r){for(var t=new Array(r),a=0;a{"use strict";var Y5=Rp().EventEmitter,JQ={init:function(e){if(e._ev instanceof Y5)return e;var r=new Y5,t=new Y5;return e._ev=r,e._internalEv=t,e.on=r.on.bind(r),e.once=r.once.bind(r),e.removeListener=r.removeListener.bind(r),e.removeAllListeners=r.removeAllListeners.bind(r),e._internalOn=t.on.bind(t),e._internalOnce=t.once.bind(t),e._removeInternalListener=t.removeListener.bind(t),e._removeAllInternalListeners=t.removeAllListeners.bind(t),e.emit=function(a,n){r.emit(a,n),t.emit(a,n)},typeof e.addEventListener=="function"&&e.addEventListener("wheel",()=>{},{passive:!0}),e},triggerHandler:function(e,r,t){var a,n=e._ev;if(!n)return;var i=n._events[r];if(!i)return;function o(s){if(s.listener){if(n.removeListener(r,s.listener),!s.fired)return s.fired=!0,s.listener.apply(n,[t])}else return s.apply(n,[t])}i=Array.isArray(i)?i:[i];var l;for(l=0;l{"use strict";var Gk=pr(),KQ=m0().dfltConfig;function QQ(e,r){for(var t=[],a,n=0;nKQ.queueLength&&(e.undoQueue.queue.shift(),e.undoQueue.index--)};qu.startSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!0,e.undoQueue.beginSequence=!0};qu.stopSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!1,e.undoQueue.beginSequence=!1};qu.undo=function(r){var t,a;if(!(r.undoQueue===void 0||isNaN(r.undoQueue.index)||r.undoQueue.index<=0)){for(r.undoQueue.index--,t=r.undoQueue.queue[r.undoQueue.index],r.undoQueue.inSequence=!0,a=0;a=r.undoQueue.queue.length)){for(t=r.undoQueue.queue[r.undoQueue.index],r.undoQueue.inSequence=!0,a=0;a{"use strict";Xk.exports={_isLinkedToArray:"frames_entry",group:{valType:"string"},name:{valType:"string"},traces:{valType:"any"},baseframe:{valType:"string"},data:{valType:"any"},layout:{valType:"any"}}});var H1=oe(Fn=>{"use strict";var Jo=_t(),qv=pr(),Np=Wo(),X5=F1(),eee=V5(),ree=Tv(),tee=m0().configAttributes,jk=Zo(),Gl=qv.extendDeepAll,B1=qv.isPlainObject,aee=qv.isArrayOrTypedArray,Bp=qv.nestedProperty,nee=qv.valObjectMeta,j5="_isSubplotObj",Ip="_isLinkedToArray",iee="_arrayAttrRegexps",Zk="_deprecated",W5=[j5,Ip,iee,Zk];Fn.IS_SUBPLOT_OBJ=j5;Fn.IS_LINKED_TO_ARRAY=Ip;Fn.DEPRECATED=Zk;Fn.UNDERSCORE_ATTRS=W5;Fn.get=function(){var e={};return Jo.allTypes.forEach(function(r){e[r]=lee(r)}),{defs:{valObjects:nee,metaKeys:W5.concat(["description","role","editType","impliedEdits"]),editType:{traces:jk.traces,layout:jk.layout},impliedEdits:{}},traces:e,layout:see(),frames:uee(),animation:I1(ree),config:I1(tee)}};Fn.crawl=function(e,r,t,a){var n=t||0;a=a||"",Object.keys(e).forEach(function(i){var o=e[i];if(W5.indexOf(i)===-1){var l=(a?a+".":"")+i;r(o,i,e,n,l),!Fn.isValObject(o)&&B1(o)&&i!=="impliedEdits"&&Fn.crawl(o,r,n+1,l)}})};Fn.isValObject=function(e){return e&&e.valType!==void 0};Fn.findArrayAttributes=function(e){var r=[],t=[],a=[],n,i;function o(s,u,f,c){t=t.slice(0,c).concat([u]),a=a.slice(0,c).concat([s&&s._isLinkedToArray]);var h=s&&(s.valType==="data_array"||s.arrayOk===!0)&&!(t[c-1]==="colorbar"&&(u==="ticktext"||u==="tickvals"));h&&l(n,0,"")}function l(s,u,f){var c=s[t[u]],h=f+t[u];if(u===t.length-1)aee(c)&&r.push(i+h);else if(a[u]){if(Array.isArray(c))for(var d=0;d=i.length)return!1;if(e.dimensions===2){if(t++,r.length===t)return e;var o=r[t];if(!zp(o))return!1;e=i[n][o]}else e=i[n]}else e=i}}return e}function zp(e){return e===Math.round(e)&&e>=0}function lee(e){var r,t;r=Jo.modules[e]._module,t=r.basePlotModule;var a={};a.type=null;var n=Gl({},Np),i=Gl({},r.attributes);Fn.crawl(i,function(s,u,f,c,h){Bp(n,h).set(void 0),s===void 0&&Bp(i,h).set(void 0)}),Gl(a,n),Jo.traceIs(e,"noOpacity")&&delete a.opacity,Jo.traceIs(e,"showLegend")||(delete a.showlegend,delete a.legendgroup),Jo.traceIs(e,"noHover")&&(delete a.hoverinfo,delete a.hoverlabel),r.selectPoints||delete a.selectedpoints,Gl(a,i),t.attributes&&Gl(a,t.attributes),a.type=e;var o={meta:r.meta||{},categories:r.categories||{},animatable:!!r.animatable,type:e,attributes:I1(a)};if(r.layoutAttributes){var l={};Gl(l,r.layoutAttributes),o.layoutAttributes=I1(l)}return r.animatable||Fn.crawl(o,function(s){Fn.isValObject(s)&&"anim"in s&&delete s.anim}),o}function see(){var e={},r,t;Gl(e,X5);for(r in Jo.subplotsRegistry)if(t=Jo.subplotsRegistry[r],!!t.layoutAttributes)if(Array.isArray(t.attr))for(var a=0;a{"use strict";var O1=pr(),dee=Wo(),k0="templateitemname",Z5={name:{valType:"string",editType:"none"}};Z5[k0]={valType:"string",editType:"calc"};$f.templatedArray=function(e,r){return r._isLinkedToArray=e,r.name=Z5.name,r[k0]=Z5[k0],r};$f.traceTemplater=function(e){var r={},t,a;for(t in e)a=e[t],Array.isArray(a)&&a.length&&(r[t]=0);function n(i){t=O1.coerce(i,{},dee,"type");var o={type:t,_template:null};if(t in r){a=e[t];var l=r[t]%a.length;r[t]++,o._template=a[l]}return o}return{newTrace:n}};$f.newContainer=function(e,r,t){var a=e._template,n=a&&(a[r]||t&&a[t]);O1.isPlainObject(n)||(n=null);var i=e[r]={_template:n};return i};$f.arrayTemplater=function(e,r,t){var a=e._template,n=a&&a[Kk(r)],i=a&&a[r];(!Array.isArray(i)||!i.length)&&(i=[]);var o={};function l(u){var f={name:u.name,_input:u},c=f[k0]=u[k0];if(!Jk(c))return f._template=n,f;for(var h=0;h=a&&(t._input||{})._templateitemname;i&&(n=a);var o=r+"["+n+"]",l;function s(){l={},i&&(l[o]={},l[o][k0]=i)}s();function u(d,p){l[d]=p}function f(d,p){i?O1.nestedProperty(l[o],d).set(p):l[o+"."+d]=p}function c(){var d=l;return s(),d}function h(d,p){d&&f(d,p);var m=c();for(var b in m)O1.nestedProperty(e,b).set(m[b])}return{modifyBase:u,modifyItem:f,getUpdateObj:c,applyUpdate:h}}});var In={};Ua(In,{AX_ID_PATTERN:()=>bee,AX_NAME_PATTERN:()=>_ee,DFLTRANGEX:()=>See,DFLTRANGEY:()=>Dee,DRAGGERSIZE:()=>kee,HOUR_PATTERN:()=>wee,MINDRAG:()=>Mee,MINZOOM:()=>Tee,REDRAWDELAY:()=>Cee,SUBPLOT_PATTERN:()=>xee,WEEKDAY_PATTERN:()=>Aee,attrRegex:()=>mee,clipOnAxisFalseQuery:()=>Eee,idRegex:()=>pee,layerValue2layerClass:()=>Lee,traceLayerClasses:()=>Fee,xAxisMatch:()=>gee,yAxisMatch:()=>yee,zindexSeparator:()=>qee});var pee,mee,gee,yee,bee,_ee,xee,wee,Aee,Mee,Tee,kee,Cee,See,Dee,Fee,Eee,Lee,qee,Hn=Oa(()=>{"use strict";C1();pee={x:Yf("x","( domain)?"),y:Yf("y","( domain)?")},mee=Yf("[xy]axis"),gee=Yf("xaxis"),yee=Yf("yaxis"),bee=/^[xyz][0-9]*( domain)?$/,_ee=/^[xyz]axis[0-9]*$/,xee=/^x([0-9]*)y([0-9]*)$/,wee="hour",Aee="day of week",Mee=8,Tee=20,kee=20,Cee=50,See=[-1,6],Dee=[-1,4],Fee=["imagelayer","heatmaplayer","contourcarpetlayer","contourlayer","funnellayer","waterfalllayer","barlayer","carpetlayer","violinlayer","boxlayer","ohlclayer","scattercarpetlayer","scatterlayer"],Eee=[".scatterlayer",".barlayer",".funnellayer",".waterfalllayer"],Lee={"above traces":"above","below traces":"below"},qee="z"});var En=oe(io=>{"use strict";var Pee=_t(),$5=(Hn(),xr(In));io.id2name=function(r){if(!(typeof r!="string"||!r.match($5.AX_ID_PATTERN))){var t=r.split(" ")[0].slice(1);return t==="1"&&(t=""),r.charAt(0)+"axis"+t}};io.name2id=function(r){if(r.match($5.AX_NAME_PATTERN)){var t=r.slice(5);return t==="1"&&(t=""),r.charAt(0)+t}};io.cleanId=function(r,t,a){var n=/( domain)$/.test(r);if(!(typeof r!="string"||!r.match($5.AX_ID_PATTERN))&&!(t&&r.charAt(0)!==t)&&!(n&&!a)){var i=r.split(" ")[0].slice(1).replace(/^0+/,"");return i==="1"&&(i=""),r.charAt(0)+i+(n&&a?" domain":"")}};io.list=function(e,r,t){var a=e._fullLayout;if(!a)return[];var n=io.listIds(e,r),i=new Array(n.length),o;for(o=0;oa?1:-1:+(e.slice(1)||1)-+(r.slice(1)||1)};io.ref2id=function(e){return/^[xyz]/.test(e)?e.split(" ")[0]:!1};function Qk(e,r){if(r&&r.length){for(var t=0;t{"use strict";function Ree(e){var r=e._fullLayout._zoomlayer;r&&r.selectAll(".outline-controllers").remove()}function zee(e){var r=e._fullLayout._zoomlayer;r&&r.selectAll(".select-outline").remove(),e._fullLayout._outlining=!1}eC.exports={clearOutlineControllers:Ree,clearOutline:zee}});var Hp=oe((h6e,rC)=>{"use strict";rC.exports={scattermode:{valType:"enumerated",values:["group","overlay"],dflt:"overlay",editType:"calc"},scattergap:{valType:"number",min:0,max:1,editType:"calc"}}});var Pv=oe(Up=>{"use strict";var Op=_t(),d6e=(Hn(),xr(In)).SUBPLOT_PATTERN;Up.getSubplotCalcData=function(e,r,t){var a=Op.subplotsRegistry[r];if(!a)return[];for(var n=a.attr,i=[],o=0;o{"use strict";var Nee=_t(),U1=pr();Jf.manageCommandObserver=function(e,r,t,a){var n={},i=!0;r&&r._commandObserver&&(n=r._commandObserver),n.cache||(n.cache={}),n.lookupTable={};var o=Jf.hasSimpleAPICommandBindings(e,t,n.lookupTable);if(r&&r._commandObserver){if(o)return n;if(r._commandObserver.remove)return r._commandObserver.remove(),r._commandObserver=null,n}if(o){tC(e,o,n.cache),n.check=function(){if(i){var f=tC(e,o,n.cache);return f.changed&&a&&n.lookupTable[f.value]!==void 0&&(n.disable(),Promise.resolve(a({value:f.value,type:o.type,prop:o.prop,traces:o.traces,index:n.lookupTable[f.value]})).then(n.enable,n.enable)),f.changed}};for(var l=["plotly_relayout","plotly_redraw","plotly_restyle","plotly_update","plotly_animatingframe","plotly_afterplot"],s=0;s0?".":"")+n;U1.isPlainObject(i)?J5(i,r,o,a+1):r(o,n,i)}})}});var Ln=oe((y6e,pC)=>{"use strict";var g6e=Lt(),Iee=h1().timeFormatLocale,Hee=Fy().formatLocale,Rv=Qt(),Oee=Ly(),Uee=K2().version,ra=_t(),Gee=H1(),Yee=ka(),Qr=pr(),Vee=Nt(),oC=(Za(),xr(nn)).BADNUM,oo=En(),Xee=C0().clearOutline,jee=Hp(),K5=Tv(),Wee=V5(),Zee=Pv().getModuleCalcData,lC=Qr.relinkPrivateKeys,Kf=Qr._,Ir=pC.exports={};Qr.extendFlat(Ir,ra);Ir.attributes=Wo();Ir.attributes.type.values=Ir.allTypes;Ir.fontAttrs=xi();Ir.layoutAttributes=F1();var Yp=iC();Ir.executeAPICommand=Yp.executeAPICommand;Ir.computeAPICommandBindings=Yp.computeAPICommandBindings;Ir.manageCommandObserver=Yp.manageCommandObserver;Ir.hasSimpleAPICommandBindings=Yp.hasSimpleAPICommandBindings;Ir.redrawText=function(e){return e=Qr.getGraphDiv(e),new Promise(function(r){setTimeout(function(){e._fullLayout&&(ra.getComponentMethod("annotations","draw")(e),ra.getComponentMethod("legend","draw")(e),ra.getComponentMethod("colorbar","draw")(e),r(Ir.previousPromises(e)))},300)})};Ir.resize=function(e){e=Qr.getGraphDiv(e);var r,t=new Promise(function(a,n){(!e||Qr.isHidden(e))&&n(new Error("Resize must be passed a displayed plot div element.")),e._redrawTimer&&clearTimeout(e._redrawTimer),e._resolveResize&&(r=e._resolveResize),e._resolveResize=a,e._redrawTimer=setTimeout(function(){if(!e.layout||e.layout.width&&e.layout.height||Qr.isHidden(e)){a(e);return}delete e.layout.width,delete e.layout.height;var i=e.changed;e.autoplay=!0,ra.call("relayout",e,{autosize:!0}).then(function(){e.changed=i,e._resolveResize===a&&(delete e._resolveResize,a(e))})},100)});return r&&r(t),t};Ir.previousPromises=function(e){if((e._promises||[]).length)return Promise.all(e._promises).then(function(){e._promises=[]})};Ir.sendDataToCloud=function(e,r){e.emit("plotly_beforeexport");let t=new URL(r).origin;var a=Ir.graphJson(e,!1,"object");a.version=Uee;var n=new URL(r);n.searchParams.set("origin",window.location.origin);var i=window.open(n.href,"_blank");if(!i){console.error("Unable to open Plotly Cloud (the popup may have been blocked)"),e.emit("plotly_exportfail");return}var o=function(l){l.origin===t&&l.data&&l.data.type==="CHART_AUTH_SUCCESS"&&(i.postMessage({type:"chart",chart:a},t),window.removeEventListener("message",o),e.emit("plotly_afterexport"))};return window.addEventListener("message",o),!1};var $ee=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],Jee=["year","month","dayMonth","dayMonthYear"];Ir.supplyDefaults=function(e,r){var t=r&&r.skipUpdateCalc,a=e._fullLayout||{};if(a._skipDefaults){delete a._skipDefaults;return}var n=e._fullLayout={},i=e.layout||{},o=e._fullData||[],l=e._fullData=[],s=e.data||[],u=e.calcdata||[],f=e._context||{},c;e._transitionData||Ir.createTransitionData(e),n._dfltTitle={plot:Kf(e,"Click to enter Plot title"),subtitle:Kf(e,"Click to enter Plot subtitle"),x:Kf(e,"Click to enter X axis title"),y:Kf(e,"Click to enter Y axis title"),colorbar:Kf(e,"Click to enter Colorscale title"),annotation:Kf(e,"new text")},n._traceWord=Kf(e,"trace");var h=sC(e,$ee);if(a._initialAutoSizeIsDone){var d=a.width,p=a.height;Ir.supplyLayoutGlobalDefaults(i,n,h),i.width||(n.width=d),i.height||(n.height=p),Ir.sanitizeMargins(n)}else{Ir.supplyLayoutGlobalDefaults(i,n,h);var m=!i.width||!i.height,b=n.autosize,y=f.autosizable,C=m&&(b||y);C?Ir.plotAutoSize(e,i,n):m&&Ir.sanitizeMargins(n),!b&&m&&(i.width=n.width,i.height=n.height)}n._d3locale=ere(h,n.separators),n._extraFormat=sC(e,Jee),n._initialAutoSizeIsDone=!0,n._dataLength=s.length,n._modules=[],n._visibleModules=[],n._basePlotModules=[];var x=n._subplots=Qee(),_=n._splomAxes={x:{},y:{}},A=n._splomSubplots={};n._splomGridDflt={},n._scatterStackOpts={},n._firstScatter={},n._alignmentOpts={},n._colorAxes={},n._requestRangeslider={},n._traceUids=Kee(o,s),Ir.supplyDataDefaults(s,l,i,n);var k=Object.keys(_.x),M=Object.keys(_.y);if(k.length>1&&M.length>1){for(ra.getComponentMethod("grid","sizeDefaults")(i,n),c=0;c15&&M.length>15&&n.shapes.length===0&&n.images.length===0,Ir.linkSubplots(l,n,o,a),Ir.cleanPlot(l,n,o,a);var V=!!(a._has&&a._has("cartesian")),H=!!(n._has&&n._has("cartesian")),X=V,N=H;X&&!N?a._bgLayer.remove():N&&!X&&(n._shouldCreateBgLayer=!0),a._zoomlayer&&!e._dragging&&Xee({_fullLayout:a}),rre(l,n),lC(n,a),ra.getComponentMethod("colorscale","crossTraceDefaults")(l,n),n._preGUI||(n._preGUI={}),n._tracePreGUI||(n._tracePreGUI={});var Q=n._tracePreGUI,ee={},re;for(re in Q)ee[re]="old";for(c=0;c0){var f=1-2*i;o=Math.round(f*o),l=Math.round(f*l)}}var c=Ir.layoutAttributes.width.min,h=Ir.layoutAttributes.height.min;o1,p=!t.height&&Math.abs(a.height-l)>1;(p||d)&&(d&&(a.width=o),p&&(a.height=l)),r._initialAutoSize||(r._initialAutoSize={width:o,height:l}),Ir.sanitizeMargins(a)};Ir.supplyLayoutModuleDefaults=function(e,r,t,a){var n=ra.componentsRegistry,i=r._basePlotModules,o,l,s,u=ra.subplotsRegistry.cartesian;for(o in n)s=n[o],s.includeBasePlot&&s.includeBasePlot(e,r);i.length||i.push(u),r._has("cartesian")&&(ra.getComponentMethod("grid","contentDefaults")(e,r),u.finalizeSubplots(e,r));for(var f in r._subplots)r._subplots[f].sort(Qr.subplotSort);for(l=0;l1&&(t.l/=b,t.r/=b)}if(h){var y=(t.t+t.b)/h;y>1&&(t.t/=y,t.b/=y)}var C=t.xl!==void 0?t.xl:t.x,x=t.xr!==void 0?t.xr:t.x,_=t.yt!==void 0?t.yt:t.y,A=t.yb!==void 0?t.yb:t.y;d[r]={l:{val:C,size:t.l+m},r:{val:x,size:t.r+m},b:{val:A,size:t.b+m},t:{val:_,size:t.t+m}},p[r]=1}if(!a._replotting)return Ir.doAutoMargin(e)}};function are(e){if("_redrawFromAutoMarginCount"in e._fullLayout)return!1;var r=oo.list(e,"",!0);for(var t in r)if(r[t].autoshift||r[t].shift)return!0;return!1}Ir.doAutoMargin=function(e){var r=e._fullLayout,t=r.width,a=r.height;r._size||(r._size={}),cC(r);var n=r._size,i=r.margin,o={t:0,b:0,l:0,r:0},l=Qr.extendFlat({},n),s=i.l,u=i.r,f=i.t,c=i.b,h=r._pushmargin,d=r._pushmarginIds,p=r.minreducedwidth,m=r.minreducedheight;if(i.autoexpand!==!1){for(var b in h)d[b]||delete h[b];var y=e._fullLayout._reservedMargin;for(var C in y)for(var x in y[C]){var _=y[C][x];o[x]=Math.max(o[x],_)}h.base={l:{val:0,size:s},r:{val:1,size:u},t:{val:1,size:f},b:{val:0,size:c}};for(var A in o){var k=0;for(var M in h)M!=="base"&&Rv(h[M][A].size)&&(k=h[M][A].size>k?h[M][A].size:k);var E=Math.max(0,i[A]-k);o[A]=Math.max(0,o[A]-E)}for(var P in h){var z=h[P].l||{},I=h[P].b||{},V=z.val,H=z.size,X=I.val,N=I.size,Q=t-o.r-o.l,ee=a-o.t-o.b;for(var re in h){if(Rv(H)&&h[re].r){var ae=h[re].r.val,ie=h[re].r.size;if(ae>V){var le=(H*ae+(ie-Q)*V)/(ae-V),xe=(ie*(1-V)+(H-Q)*(1-ae))/(ae-V);le+xe>s+u&&(s=le,u=xe)}}if(Rv(N)&&h[re].t){var De=h[re].t.val,Ye=h[re].t.size;if(De>X){var Ee=(N*De+(Ye-ee)*X)/(De-X),ke=(Ye*(1-X)+(N-ee)*(1-De))/(De-X);Ee+ke>c+f&&(c=Ee,f=ke)}}}}}var je=Qr.constrain(t-i.l-i.r,vC,p),W=Qr.constrain(a-i.t-i.b,hC,m),se=Math.max(0,t-je),he=Math.max(0,a-W);if(se){var K=(s+u)/se;K>1&&(s/=K,u/=K)}if(he){var J=(c+f)/he;J>1&&(c/=J,f/=J)}if(n.l=Math.round(s)+o.l,n.r=Math.round(u)+o.r,n.t=Math.round(f)+o.t,n.b=Math.round(c)+o.b,n.p=Math.round(i.pad),n.w=Math.round(t)-n.l-n.r,n.h=Math.round(a)-n.t-n.b,!r._replotting&&(Ir.didMarginChange(l,n)||are(e))){"_redrawFromAutoMarginCount"in r?r._redrawFromAutoMarginCount++:r._redrawFromAutoMarginCount=1;var fe=3*(1+Object.keys(d).length);if(r._redrawFromAutoMarginCount1)return!0}return!1};Ir.graphJson=function(e,r=!1,t="json",a=!1,n=!1){(a&&r&&!e._fullData||a&&!r&&!e._fullLayout)&&Ir.supplyDefaults(e);var i=a?e._fullData:e.data,o=a?e._fullLayout:e.layout,l=(e._transitionData||{})._frames;function s(c,h){if(typeof c=="function")return h?"_function_":null;if(Qr.isPlainObject(c)){var d={};return Object.keys(c).sort().forEach(function(y){if(["_","["].indexOf(y.charAt(0))===-1){if(typeof c[y]=="function"){h&&(d[y]="_function");return}d[y]=s(c[y],h)}}),d}var p=Array.isArray(c),m=Qr.isTypedArray(c);if((p||m)&&c.dtype&&c.shape){var b=c.bdata;return s({dtype:c.dtype,shape:c.shape,bdata:Qr.isArrayBuffer(b)?Oee.encode(b):b},h)}return p?c.map(function(y){return s(y,h)}):m?Qr.simpleMap(c,Qr.identity):Qr.isJSDate(c)?Qr.ms2DateTimeLocal(+c):c}var u={data:(i||[]).map(function(c){var h=s(c);return r&&delete h.fit,h})};if(!r&&(u.layout=s(o),a)){var f=o._size;u.layout.computed={margin:{b:f.b,l:f.l,r:f.r,t:f.t}}}return l&&(u.frames=s(l)),n&&(u.config=s(e._context,!0)),t==="object"?u:JSON.stringify(u)};Ir.modifyFrames=function(e,r){var t,a,n,i=e._transitionData._frames,o=e._transitionData._frameHash;for(t=0;t0&&(e._transitioningWithDuration=!0),e._transitionData._interruptCallbacks.push(function(){a=!0}),t.redraw&&e._transitionData._interruptCallbacks.push(function(){return ra.call("redraw",e)}),e._transitionData._interruptCallbacks.push(function(){e.emit("plotly_transitioninterrupted",[])});var h=0,d=0;function p(){return h++,function(){d++,!a&&d===h&&l(c)}}t.runFn(p),setTimeout(p())})}function l(c){if(e._transitionData)return i(e._transitionData._interruptCallbacks),Promise.resolve().then(function(){if(t.redraw)return ra.call("redraw",e)}).then(function(){e._transitioning=!1,e._transitioningWithDuration=!1,e.emit("plotly_transitioned",[])}).then(c)}function s(){if(e._transitionData)return e._transitioning=!1,n(e._transitionData._interruptCallbacks)}var u=[Ir.previousPromises,s,t.prepareFn,Ir.rehover,Ir.reselect,o],f=Qr.syncOrAsync(u,e);return(!f||!f.then)&&(f=Promise.resolve()),f.then(function(){return e})}Ir.doCalcdata=function(e,r){var t=oo.list(e),a=e._fullData,n=e._fullLayout,i,o,l,s=new Array(a.length),u=(e.calcdata||[]).slice();for(e.calcdata=s,n._numBoxes=0,n._numViolins=0,n._violinScaleGroupStats={},e._hmpixcount=0,e._hmlumcount=0,n._piecolormap={},n._sunburstcolormap={},n._treemapcolormap={},n._iciclecolormap={},n._funnelareacolormap={},l=0;lmC,svgAttrs:()=>ure,xlink:()=>gC,xmlns:()=>sre});var sre,mC,gC,ure,ec=Oa(()=>{"use strict";sre="http://www.w3.org/2000/xmlns/",mC="http://www.w3.org/2000/svg",gC="http://www.w3.org/1999/xlink",ure={xmlns:mC,"xmlns:xlink":gC}});var fi={};Ua(fi,{CAP_SHIFT:()=>dre,FROM_BL:()=>fre,FROM_BR:()=>vre,FROM_TL:()=>cre,LINE_SPACING:()=>hre,MID_SHIFT:()=>pre,OPPOSITE_SIDE:()=>mre});var fre,cre,vre,hre,dre,pre,mre,ci=Oa(()=>{"use strict";fre={left:0,center:.5,right:1,bottom:0,middle:.5,top:1},cre={left:0,center:.5,right:1,bottom:1,middle:.5,top:0},vre={left:1,center:.5,right:0,bottom:0,middle:.5,top:1},hre=1.3,dre=.7,pre=.35,mre={left:"right",right:"left",top:"bottom",bottom:"top"}});var vi=oe(Mi=>{"use strict";var fn=Lt(),Ko=pr(),gre=Ko.strTranslate,Q5=(ec(),xr(Qf)),yre=(ci(),xr(fi)).LINE_SPACING,bre=/([^$]*)([$]+[^$]*[$]+)([^$]*)/,t6=e=>e?e.match(bre):null;Mi.matchTex=t6;var _re=e=>{var r=t6(e);return!!r&&!r[1]&&!r[3]};Mi.isPureTex=_re;function AC(e,r,t,a,n,i,o,l){var s=a.select("g"),u=s.node().getBoundingClientRect(),f=u.width,c=u.height,h=o===void 0?f:o,d=l===void 0?c:l;(f>h||c>d)&&(a.style("overflow","hidden"),u=a.node().getBoundingClientRect(),f=u.width,c=u.height);var p=+e.attr("x"),m=+e.attr("y"),b=i||e.node().getBoundingClientRect().height,y=-b/4;r[0]==="y"?t.attr({transform:"rotate("+[-90,p,m]+")"+gre(-f/2,y-c/2)}):r[0]==="l"?m=y-c/2:r[0]==="a"&&r.indexOf("atitle")!==0?(p=0,m=y):(p=p-f*(n==="middle"?.5:n==="end"?1:0),m=m+y-c/2),a.attr({x:p,y:m})}function xre(e){e.selectAll("a").each(function(){var r=fn.select(this);["href","xlink:href"].forEach(function(t){var a=r.attr(t);a&&r.attr(t,i6(a)||null)})})}Mi.convertToTspans=function(e,r,t){var a=e.text(),n=!e.attr("data-notex")&&r&&r._context.typesetMath&&t6(a);n&&!Tre()&&(n=null);var i=fn.select(e.node().parentNode);if(i.empty())return;var o=e.attr("class")?e.attr("class").split(" ")[0]:"text";o+="-math",i.selectAll("svg."+o).remove(),i.selectAll("g."+o+"-group").remove(),e.style("display",null).attr({"data-unformatted":a,"data-math":"N"});function l(){i.empty()||(o=e.attr("class")+"-math",i.select("svg."+o).remove()),e.text("").style("white-space","pre");var s=Rre(e.node(),a);s&&e.style("pointer-events","all"),Mi.positionText(e),t&&t.call(e)}return n?(r&&r._promises||[]).push(new Promise(function(s){e.style("display","none");var u=parseInt(e.node().style.fontSize,10),f={fontSize:u},c=e.attr("text-anchor");kre(n[2],f,function(h,d,p){i.selectAll("svg."+o).remove(),i.selectAll("g."+o+"-group").remove();var m=h&&h.select("svg");if(!m||!m.node()){l(),s();return}e.style("display","none");var b=i.append("g").classed(o+"-group",!0).attr({"pointer-events":"none","data-unformatted":a,"data-math":"Y"});b.node().appendChild(m.node()),xre(m),d&&d.node()&&m.node().insertBefore(d.node().cloneNode(!0),m.node().firstChild);var y=p.width,C=p.height;m.attr({class:o,height:C,preserveAspectRatio:"xMinYMin meet"}).style({overflow:"visible","pointer-events":"none","font-size":f.fontSize+"px"});var x=e.node().style.fill||"black",_=m.select("g");_.attr({fill:x,stroke:x}),AC(e,o,b,m,c,u,y,C),t&&t.call(e,b),s(b)})})):l(),e};Mi.repositionMathGroup=function(e){if(!e.empty()){var r=(e.attr("class")?e.attr("class").split(" ")[0]:"text")+"-math",t=fn.select(e.node().parentNode),a=t.select("g."+r+"-group"),n=a.select("svg."+r);if(!(a.empty()||n.empty())){var i=e.attr("text-anchor"),o=parseInt(e.node().style.fontSize,10);AC(e,r,a,n,i,o)}}};Mi.getMathOrTextNode=function(e){var r=e.node();if(!r)return null;var t=(e.attr("class")?e.attr("class").split(" ")[0]:"text")+"-math",a=fn.select(r.parentNode).select("g."+t+"-group");return a.empty()?r:a.node()};var wre=/(<|<|<)/g,Are=/(>|>|>)/g;function Mre(e){return e.replace(wre,"\\lt ").replace(Are,"\\gt ")}var e6=null,MC=()=>typeof MathJax!="undefined"&&MathJax.version?parseInt(MathJax.version.split(".")[0]):null,yC=!1,bC=!1;function Tre(){let e=MC();return e===3||e===4?!0:(e===null?yC||(yC=!0,Ko.warn("MathJax is not loaded. Math equations will not be rendered.")):bC||(bC=!0,Ko.warn("Unsupported MathJax version:",MathJax.version)),!1)}function kre(e,r,t){let a=MC();var n;let i=function(){if(!e6){let u=MathJax._.output.svg_ts.SVG,f=Ko.extendFlat({},MathJax.config.svg,{fontCache:"local"});a===4&&(f.linebreaks=Ko.extendFlat({},f.linebreaks,{inline:!1})),e6=MathJax._.mathjax.mathjax.document(document,Ko.extendFlat({},MathJax.config.options,{InputJax:MathJax.startup.input,OutputJax:new u(f)}))}let l="math-output-"+Ko.randstr({},64);n=fn.select("body").append("div").attr({id:l}).style({visibility:"hidden",position:"absolute","font-size":r.fontSize+"px"});let s=Mre(e).replace(/^\$+|\$+$/g,"");return MathJax._.mathjax.mathjax.handleRetriesFor(function(){return e6.convert(s,{display:!1})}).then(function(u){n.node().appendChild(u)})},o=function(){let l=n.select(".MathJax"),s=!l.empty()&&n.select("svg").node();if(!s)Ko.log("There was an error in the tex syntax.",e),t();else{let u=s.getBoundingClientRect(),f=l.select("defs");t(l,f,u)}n.remove()};Promise.resolve().then(i).then(o).catch(l=>{Ko.log("MathJax typesetting failed.",e,l),n&&n.remove(),t()})}var TC={sup:"font-size:70%",sub:"font-size:70%",s:"text-decoration:line-through",u:"text-decoration:underline",b:"font-weight:bold",i:"font-style:italic",a:"cursor:pointer",span:"",em:"font-style:italic;font-weight:bold"},Cre={sub:"0.3em",sup:"-0.6em"},Sre={sub:"-0.21em",sup:"0.42em"},_C="\u200B",xC=["http:","https:","mailto:","",void 0,":"],kC=Mi.NEWLINES=/(\r\n?|\n)/g,a6=/(<[^<>]*>)/,n6=/<(\/?)([^ >]*)(\s+(.*))?>/i,Dre=//i;Mi.BR_TAG_ALL=//gi;var CC=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,SC=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,DC=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,Fre=/(^|[\s"'])popup\s*=\s*("([\w=,]*)"|'([\w=,]*)')/i;function rc(e,r){if(!e)return null;var t=e.match(r),a=t&&(t[3]||t[4]);return a&&Vp(a)}var Ere=/(^|;)\s*color:/;Mi.plainText=function(e,r){r=r||{};for(var t=r.len!==void 0&&r.len!==-1?r.len:1/0,a=r.allowedTags!==void 0?r.allowedTags:["br"],n="...",i=n.length,o=e.split(a6),l=[],s="",u=0,f=0;fi?l.push(c.slice(0,Math.max(0,m-i))+n):l.push(c.slice(0,m));break}s=""}}return l.join("")};var Lre={mu:"\u03BC",amp:"&",lt:"<",gt:">",nbsp:"\xA0",times:"\xD7",plusmn:"\xB1",deg:"\xB0"},qre=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function Vp(e){return e.replace(qre,function(r,t){var a;return t.charAt(0)==="#"?a=Pre(t.charAt(1)==="x"?parseInt(t.slice(2),16):parseInt(t.slice(1),10)):a=Lre[t],a||r})}Mi.convertEntities=Vp;function Pre(e){if(!(e>1114111)){var r=String.fromCodePoint;if(r)return r(e);var t=String.fromCharCode;return e<=65535?t(e):t((e>>10)+55232,e%1024+56320)}}function Rre(e,r){r=r.replace(kC," ");var t=!1,a=[],n,i=-1;function o(){i++;var k=document.createElementNS(Q5.svg,"tspan");fn.select(k).attr({class:"line",dy:i*yre+"em"}),e.appendChild(k),n=k;var M=a;if(a=[{node:k}],M.length>1)for(var E=1;E.",r);return}var M=a.pop();k!==M.type&&Ko.log("Start tag <"+M.type+"> doesnt match end tag <"+k+">. Pretending it did match.",r),n=a[a.length-1].node}var f=Dre.test(r);f?o():(n=e,a=[{node:e}]);for(var c=r.split(a6),h=0;h{"use strict";var zre=Lt(),Nv=Qt(),Xp=pr(),tc=Nt(),Nre=Gf().isValid;function Bre(e,r,t){var a=r?Xp.nestedProperty(e,r).get()||{}:e,n=a[t||"color"];n&&n._inputArray&&(n=n._inputArray);var i=!1;if(Xp.isArrayOrTypedArray(n)){for(var o=0;o=0;a--,n++){var i=e[a];t[n]=[1-i[0],i[1]]}return t}function PC(e,r){r=r||{};for(var t=e.domain,a=e.range,n=a.length,i=new Array(n),o=0;o{"use strict";var zC=(A5(),xr(w5)),Hre=zC.FORMAT_LINK,Ore=zC.DATE_FORMAT_LINK;function Ure(e,r){return{valType:"string",dflt:"",editType:"none",description:(r?o6:NC)("hover text",e)+["By default the values are formatted using "+(r?"generic number format":"`"+e+"axis.hoverformat`")+"."].join(" ")}}function o6(e,r){return["Sets the "+e+" formatting rule"+(r?" for `"+r+"`":""),"using d3 formatting mini-languages","which are very similar to those in Python. For numbers, see: "+Hre+"."].join(" ")}function NC(e,r){return o6(e,r)+[" And for dates see: "+Ore+".","We add two items to d3's date formatter:","*%h* for half of the year as a decimal number as well as","*%{n}f* for fractional seconds","with n digits. For example, *2016-10-13 09:15:23.456* with tickformat","*%H~%M~%S.%2f* would display *09~15~23.46*"].join(" ")}BC.exports={axisHoverFormat:Ure,descriptionOnlyNumbers:o6,descriptionWithDates:NC}});var Yl=oe((A6e,rS)=>{"use strict";var IC=xi(),G1=Il(),eS=Ds().dash,u6=Dn().extendFlat,HC=ka().templatedArray,w6e=Vf().templateFormatStringDescription,OC=l6().descriptionWithDates,Gre=(Za(),xr(nn)).ONEDAY,Ls=(Hn(),xr(In)),Yre=Ls.HOUR_PATTERN,Vre=Ls.WEEKDAY_PATTERN,s6={valType:"enumerated",values:["auto","linear","array"],editType:"ticks",impliedEdits:{tick0:void 0,dtick:void 0}},Xre=u6({},s6,{values:s6.values.slice().concat(["sync"])});function UC(e){return{valType:"integer",min:0,dflt:e?5:0,editType:"ticks"}}var GC={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},YC={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},VC={valType:"data_array",editType:"ticks"},XC={valType:"enumerated",values:["outside","inside",""],editType:"ticks"};function jC(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=5),r}function WC(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=1),r}var ZC={valType:"color",dflt:G1.defaultLine,editType:"ticks"},$C={valType:"color",dflt:G1.lightLine,editType:"ticks"};function JC(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=1),r}var KC=u6({},eS,{editType:"ticks"}),QC={valType:"boolean",editType:"ticks"};rS.exports={visible:{valType:"boolean",editType:"plot"},color:{valType:"color",dflt:G1.defaultLine,editType:"ticks"},title:{text:{valType:"string",editType:"ticks"},font:IC({editType:"ticks",description:"Sets this axis' title font."}),standoff:{valType:"number",min:0,editType:"ticks"},editType:"ticks"},type:{valType:"enumerated",values:["-","linear","log","date","category","multicategory"],dflt:"-",editType:"calc",_noTemplating:!0},autotypenumbers:{valType:"enumerated",values:["convert types","strict"],dflt:"convert types",editType:"calc"},autorange:{valType:"enumerated",values:[!0,!1,"reversed","min reversed","max reversed","min","max"],dflt:!0,editType:"axrange",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},autorangeoptions:{minallowed:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},maxallowed:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},clipmin:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},clipmax:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},include:{valType:"any",arrayOk:!0,editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},editType:"plot"},rangemode:{valType:"enumerated",values:["normal","tozero","nonnegative"],dflt:"normal",editType:"plot"},range:{valType:"info_array",items:[{valType:"any",editType:"axrange",impliedEdits:{"^autorange":!1},anim:!0},{valType:"any",editType:"axrange",impliedEdits:{"^autorange":!1},anim:!0}],editType:"axrange",impliedEdits:{autorange:!1},anim:!0},minallowed:{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},maxallowed:{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},fixedrange:{valType:"boolean",dflt:!1,editType:"calc"},modebardisable:{valType:"flaglist",flags:["autoscale","zoominout"],extras:["none"],dflt:"none",editType:"modebar"},insiderange:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},scaleanchor:{valType:"enumerated",values:[Ls.idRegex.x.toString(),Ls.idRegex.y.toString(),!1],editType:"plot"},scaleratio:{valType:"number",min:0,dflt:1,editType:"plot"},constrain:{valType:"enumerated",values:["range","domain"],editType:"plot"},constraintoward:{valType:"enumerated",values:["left","center","right","top","middle","bottom"],editType:"plot"},matches:{valType:"enumerated",values:[Ls.idRegex.x.toString(),Ls.idRegex.y.toString()],editType:"calc"},rangebreaks:HC("rangebreak",{enabled:{valType:"boolean",dflt:!0,editType:"calc"},bounds:{valType:"info_array",items:[{valType:"any",editType:"calc"},{valType:"any",editType:"calc"}],editType:"calc"},pattern:{valType:"enumerated",values:[Vre,Yre,""],editType:"calc"},values:{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"any",editType:"calc"}},dvalue:{valType:"number",editType:"calc",min:0,dflt:Gre},editType:"calc"}),tickmode:Xre,nticks:UC(),tick0:GC,dtick:YC,ticklabelstep:{valType:"integer",min:1,dflt:1,editType:"ticks"},tickvals:VC,ticktext:{valType:"data_array",editType:"ticks"},ticks:XC,tickson:{valType:"enumerated",values:["labels","boundaries"],dflt:"labels",editType:"ticks"},ticklabelmode:{valType:"enumerated",values:["instant","period"],dflt:"instant",editType:"ticks"},ticklabelposition:{valType:"enumerated",values:["outside","inside","outside top","inside top","outside left","inside left","outside right","inside right","outside bottom","inside bottom"],dflt:"outside",editType:"calc"},ticklabeloverflow:{valType:"enumerated",values:["allow","hide past div","hide past domain"],editType:"calc"},ticklabelshift:{valType:"integer",dflt:0,editType:"ticks"},ticklabelstandoff:{valType:"integer",dflt:0,editType:"ticks"},ticklabelindex:{valType:"integer",arrayOk:!0,editType:"calc"},mirror:{valType:"enumerated",values:[!0,"ticks",!1,"all","allticks"],dflt:!1,editType:"ticks+layoutstyle"},ticklen:jC(),tickwidth:WC(),tickcolor:ZC,showticklabels:{valType:"boolean",dflt:!0,editType:"ticks"},labelalias:{valType:"any",dflt:!1,editType:"ticks"},automargin:{valType:"flaglist",flags:["height","width","left","right","top","bottom"],extras:[!0,!1],dflt:!1,editType:"ticks"},showspikes:{valType:"boolean",dflt:!1,editType:"modebar"},spikecolor:{valType:"color",dflt:null,editType:"none"},spikethickness:{valType:"number",dflt:3,editType:"none"},spikedash:u6({},eS,{dflt:"dash",editType:"none"}),spikemode:{valType:"flaglist",flags:["toaxis","across","marker"],dflt:"toaxis",editType:"none"},spikesnap:{valType:"enumerated",values:["data","cursor","hovered data"],dflt:"hovered data",editType:"none"},tickfont:IC({editType:"ticks"}),tickangle:{valType:"angle",dflt:"auto",editType:"ticks"},autotickangles:{valType:"info_array",freeLength:!0,items:{valType:"angle"},dflt:[0,30,90],editType:"ticks"},tickprefix:{valType:"string",dflt:"",editType:"ticks"},showtickprefix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},ticksuffix:{valType:"string",dflt:"",editType:"ticks"},showticksuffix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},showexponent:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},exponentformat:{valType:"enumerated",values:["none","e","E","power","SI","B","SI extended"],dflt:"B",editType:"ticks"},minexponent:{valType:"number",dflt:3,min:0,editType:"ticks"},separatethousands:{valType:"boolean",dflt:!1,editType:"ticks"},tickformat:{valType:"string",dflt:"",editType:"ticks",description:OC("tick label")},tickformatstops:HC("tickformatstop",{enabled:{valType:"boolean",dflt:!0,editType:"ticks"},dtickrange:{valType:"info_array",items:[{valType:"any",editType:"ticks"},{valType:"any",editType:"ticks"}],editType:"ticks"},value:{valType:"string",dflt:"",editType:"ticks"},editType:"ticks"}),hoverformat:{valType:"string",dflt:"",editType:"none",description:OC("hover text")},unifiedhovertitle:{text:{valType:"string",dflt:"",editType:"none"},editType:"none"},showline:{valType:"boolean",dflt:!1,editType:"ticks+layoutstyle"},linecolor:{valType:"color",dflt:G1.defaultLine,editType:"layoutstyle"},linewidth:{valType:"number",min:0,dflt:1,editType:"ticks+layoutstyle"},showgrid:QC,gridcolor:$C,gridwidth:JC(),griddash:KC,zeroline:{valType:"boolean",editType:"ticks"},zerolinecolor:{valType:"color",dflt:G1.defaultLine,editType:"ticks"},zerolinelayer:{valType:"enumerated",values:["above traces","below traces"],dflt:"below traces",editType:"plot"},zerolinewidth:{valType:"number",dflt:1,editType:"ticks"},showdividers:{valType:"boolean",dflt:!0,editType:"ticks"},dividercolor:{valType:"color",dflt:G1.defaultLine,editType:"ticks"},dividerwidth:{valType:"number",dflt:1,editType:"ticks"},anchor:{valType:"enumerated",values:["free",Ls.idRegex.x.toString(),Ls.idRegex.y.toString()],editType:"plot"},side:{valType:"enumerated",values:["top","bottom","left","right"],editType:"plot"},overlaying:{valType:"enumerated",values:["free",Ls.idRegex.x.toString(),Ls.idRegex.y.toString()],editType:"plot"},minor:{tickmode:s6,nticks:UC("minor"),tick0:GC,dtick:YC,tickvals:VC,ticks:XC,ticklen:jC("minor"),tickwidth:WC("minor"),tickcolor:ZC,gridcolor:$C,gridwidth:JC("minor"),griddash:KC,showgrid:QC,editType:"ticks"},minorloglabels:{valType:"enumerated",values:["small digits","complete","none"],dflt:"small digits",editType:"calc"},layer:{valType:"enumerated",values:["above traces","below traces"],dflt:"above traces",editType:"plot"},domain:{valType:"info_array",items:[{valType:"number",min:0,max:1,editType:"plot"},{valType:"number",min:0,max:1,editType:"plot"}],dflt:[0,1],editType:"plot"},position:{valType:"number",min:0,max:1,dflt:0,editType:"plot"},autoshift:{valType:"boolean",dflt:!1,editType:"plot"},shift:{valType:"number",editType:"plot"},categoryorder:{valType:"enumerated",values:["trace","category ascending","category descending","array","total ascending","total descending","min ascending","min descending","max ascending","max descending","sum ascending","sum descending","mean ascending","mean descending","geometric mean ascending","geometric mean descending","median ascending","median descending"],dflt:"trace",editType:"calc"},categoryarray:{valType:"data_array",editType:"calc"},uirevision:{valType:"any",editType:"none"},editType:"calc"}});var jp=oe((M6e,aS)=>{"use strict";var Pa=Yl(),tS=xi(),f6=Dn().extendFlat,jre=Zo().overrideAll;aS.exports=jre({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:Pa.linecolor,outlinewidth:Pa.linewidth,bordercolor:Pa.linecolor,borderwidth:{valType:"number",min:0,dflt:0},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},tickmode:Pa.minor.tickmode,nticks:Pa.nticks,tick0:Pa.tick0,dtick:f6({},Pa.dtick,{}),tickvals:Pa.tickvals,ticktext:Pa.ticktext,ticks:f6({},Pa.ticks,{dflt:""}),ticklabeloverflow:f6({},Pa.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:Pa.ticklen,tickwidth:Pa.tickwidth,tickcolor:Pa.tickcolor,ticklabelstep:Pa.ticklabelstep,showticklabels:Pa.showticklabels,labelalias:Pa.labelalias,tickfont:tS({description:"Sets the color bar's tick label font"}),tickangle:Pa.tickangle,tickformat:Pa.tickformat,tickformatstops:Pa.tickformatstops,tickprefix:Pa.tickprefix,showtickprefix:Pa.showtickprefix,ticksuffix:Pa.ticksuffix,showticksuffix:Pa.showticksuffix,separatethousands:Pa.separatethousands,exponentformat:Pa.exponentformat,minexponent:Pa.minexponent,showexponent:Pa.showexponent,title:{text:{valType:"string"},font:tS({description:"Sets this color bar's title font."}),side:{valType:"enumerated",values:["right","top","bottom"]}}},"colorbars","from-root")});var Y1=oe((k6e,iS)=>{"use strict";var Wre=jp(),Zre=(C1(),xr(Av)).counter,$re=(Mp(),xr(Ap)).default,nS=Gf().scales,T6e=$re(nS);function Wp(e){return"`"+e+"`"}iS.exports=function(r,t){r=r||"",t=t||{};var a=t.cLetter||"c",n="onlyIfNumerical"in t?t.onlyIfNumerical:!!r,i="noScale"in t?t.noScale:r==="marker.line",o="showScaleDflt"in t?t.showScaleDflt:a==="z",l=typeof t.colorscaleDflt=="string"?nS[t.colorscaleDflt]:null,s=t.editTypeOverride||"",u=r?r+".":"",f,c;"colorAttr"in t?(f=t.colorAttr,c=t.colorAttr):(f={z:"z",c:"color"}[a],c="in "+Wp(u+f));var h=n?" Has an effect only if "+c+" is set to a numerical array.":"",d=a+"auto",p=a+"min",m=a+"max",b=a+"mid",y=Wp(u+d),C=Wp(u+p),x=Wp(u+m),_=C+" and "+x,A={};A[p]=A[m]=void 0;var k={};k[d]=!1;var M={};return f==="color"&&(M.color={valType:"color",arrayOk:!0,editType:s||"style"},t.anim&&(M.color.anim=!0)),M[d]={valType:"boolean",dflt:!0,editType:"calc",impliedEdits:A},M[p]={valType:"number",dflt:null,editType:s||"plot",impliedEdits:k},M[m]={valType:"number",dflt:null,editType:s||"plot",impliedEdits:k},M[b]={valType:"number",dflt:null,editType:"calc",impliedEdits:A},M.colorscale={valType:"colorscale",editType:"calc",dflt:l,impliedEdits:{autocolorscale:!1}},M.autocolorscale={valType:"boolean",dflt:t.autoColorDflt!==!1,editType:"calc",impliedEdits:{colorscale:void 0}},M.reversescale={valType:"boolean",dflt:!1,editType:"plot"},i||(M.showscale={valType:"boolean",dflt:o,editType:"calc"},M.colorbar=Wre),t.noColorAxis||(M.coloraxis={valType:"subplotid",regex:Zre("coloraxis"),dflt:null,editType:"calc"}),M}});var v6=oe((C6e,oS)=>{"use strict";var Jre=Dn().extendFlat,Kre=Y1(),c6=Gf().scales;oS.exports={editType:"calc",colorscale:{editType:"calc",sequential:{valType:"colorscale",dflt:c6.Reds,editType:"calc"},sequentialminus:{valType:"colorscale",dflt:c6.Blues,editType:"calc"},diverging:{valType:"colorscale",dflt:c6.RdBu,editType:"calc"}},coloraxis:Jre({_isSubplotObj:!0,editType:"calc"},Kre("",{colorAttr:"corresponding trace color array(s)",noColorAxis:!0,showScaleDflt:!0}))}});var h6=oe((S6e,lS)=>{"use strict";var Qre=pr();lS.exports=function(r){return Qre.isPlainObject(r.colorbar)}});var m6=oe(p6=>{"use strict";var d6=Qt(),sS=pr(),uS=(Za(),xr(nn)),ete=uS.ONEDAY,rte=uS.ONEWEEK;p6.dtick=function(e,r){var t=r==="log",a=r==="date",n=r==="category",i=a?ete:1;if(!e)return i;if(d6(e))return e=Number(e),e<=0?i:n?Math.max(1,Math.round(e)):a?Math.max(.1,e):e;if(typeof e!="string"||!(a||t))return i;var o=e.charAt(0),l=e.slice(1);return l=d6(l)?Number(l):0,l<=0||!(a&&o==="M"&&l===Math.round(l)||t&&o==="L"||t&&o==="D"&&(l===1||l===2))?i:e};p6.tick0=function(e,r,t,a){if(r==="date")return sS.cleanDate(e,sS.dateTick0(t,a%rte===0?1:0));if(!(a==="D1"||a==="D2"))return d6(e)?Number(e):0}});var g6=oe((F6e,cS)=>{"use strict";var fS=m6(),tte=pr().isArrayOrTypedArray,ate=ro().isTypedArraySpec,nte=ro().decodeTypedArraySpec;cS.exports=function(r,t,a,n,i={}){var o=i.isMinor,l=o?r.minor||{}:r,s=o?t.minor:t,u=o?"minor.":"";function f(_){var A=l[_];return ate(A)&&(A=nte(A)),A!==void 0?A:(s._template||{})[_]}var c=f("tick0"),h=f("dtick"),d=f("tickvals"),p=f("overlaying"),m=n==="category"||n==="multicategory",b;tte(d)?b="array":h?b="linear":p&&!m?b="sync":b="auto";var y=a(u+"tickmode",b);if(y==="auto"||y==="sync")a(u+"nticks");else if(y==="linear"){var C=s.dtick=fS.dtick(h,n);s.tick0=fS.tick0(c,n,t.calendar,C)}else if(n!=="multicategory"){var x=a(u+"tickvals");x===void 0?s.tickmode="auto":o||a("ticktext")}}});var b6=oe((E6e,hS)=>{"use strict";var y6=pr(),vS=Yl();hS.exports=function(r,t,a,n){var i=n.isMinor,o=i?r.minor||{}:r,l=i?t.minor:t,s=i?vS.minor:vS,u=i?"minor.":"",f=y6.coerce2(o,l,s,"ticklen",i?(t.ticklen||5)*.6:void 0),c=y6.coerce2(o,l,s,"tickwidth",i?t.tickwidth||1:void 0),h=y6.coerce2(o,l,s,"tickcolor",(i?t.tickcolor:void 0)||l.color),d=a(u+"ticks",!i&&n.outerTicks||f||c||h?"outside":"");d||(delete l.ticklen,delete l.tickwidth,delete l.tickcolor)}});var _6=oe((L6e,dS)=>{"use strict";dS.exports=function(r){var t=["showexponent","showtickprefix","showticksuffix"],a=t.filter(function(i){return r[i]!==void 0}),n=function(i){return r[i]===r[a[0]]};if(a.every(n)||a.length===1)return r[a[0]]}});var Vl=oe((q6e,pS)=>{"use strict";var Zp=pr(),ite=ka();pS.exports=function(r,t,a){var n=a.name,i=a.inclusionAttr||"visible",o=t[n],l=Zp.isArrayOrTypedArray(r[n])?r[n]:[],s=t[n]=[],u=ite.arrayTemplater(t,n,i),f,c;for(f=0;f{"use strict";var x6=pr(),ote=Nt().contrast,mS=Yl(),lte=_6(),ste=Vl();gS.exports=function(r,t,a,n,i){i||(i={});var o=a("labelalias");x6.isPlainObject(o)||delete t.labelalias;var l=lte(r),s=a("showticklabels");if(s){i.noTicklabelshift||a("ticklabelshift"),i.noTicklabelstandoff||a("ticklabelstandoff");var u=i.font||{},f=t.color,c=t.ticklabelposition||"",h=c.indexOf("inside")!==-1?ote(i.bgColor):f&&f!==mS.color.dflt?f:u.color;if(x6.coerceFont(a,"tickfont",u,{overrideDflt:{color:h}}),!i.noTicklabelstep&&n!=="multicategory"&&n!=="log"&&a("ticklabelstep"),!i.noAng){var d=a("tickangle");!i.noAutotickangles&&d==="auto"&&a("autotickangles")}if(n!=="category"){var p=a("tickformat");ste(r,t,{name:"tickformatstops",inclusionAttr:"enabled",handleItemDefaults:ute}),t.tickformatstops.length||delete t.tickformatstops,!i.noExp&&!p&&n!=="date"&&(a("showexponent",l),a("exponentformat"),a("minexponent"),a("separatethousands"))}!i.noMinorloglabels&&n==="log"&&a("minorloglabels")}};function ute(e,r){function t(n,i){return x6.coerce(e,r,mS.tickformatstops,n,i)}var a=t("enabled");a&&(t("dtickrange"),t("value"))}});var A6=oe((R6e,yS)=>{"use strict";var fte=_6();yS.exports=function(r,t,a,n,i){i||(i={});var o=i.tickSuffixDflt,l=fte(r),s=a("tickprefix");s&&a("showtickprefix",l);var u=a("ticksuffix",o);u&&a("showticksuffix",l)}});var M6=oe((z6e,bS)=>{"use strict";var S0=pr(),cte=ka(),vte=g6(),hte=b6(),dte=w6(),pte=A6(),mte=jp();bS.exports=function(r,t,a){var n=cte.newContainer(t,"colorbar"),i=r.colorbar||{};function o(I,V){return S0.coerce(i,n,mte,I,V)}var l=a.margin||{t:0,b:0,l:0,r:0},s=a.width-l.l-l.r,u=a.height-l.t-l.b,f=o("orientation"),c=f==="v",h=o("thicknessmode");o("thickness",h==="fraction"?30/(c?s:u):30);var d=o("lenmode");o("len",d==="fraction"?1:c?u:s);var p=o("yref"),m=o("xref"),b=p==="paper",y=m==="paper",C,x,_,A="left";c?(_="middle",A=y?"left":"right",C=y?1.02:1,x=.5):(_=b?"bottom":"top",A="center",C=.5,x=b?1.02:1),S0.coerce(i,n,{x:{valType:"number",min:y?-2:0,max:y?3:1,dflt:C}},"x"),S0.coerce(i,n,{y:{valType:"number",min:b?-2:0,max:b?3:1,dflt:x}},"y"),o("xanchor",A),o("xpad"),o("yanchor",_),o("ypad"),S0.noneOrAll(i,n,["x","y"]),o("outlinecolor"),o("outlinewidth"),o("bordercolor"),o("borderwidth"),o("bgcolor");var k=S0.coerce(i,n,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:c?["outside","inside","outside top","inside top","outside bottom","inside bottom"]:["outside","inside","outside left","inside left","outside right","inside right"]}},"ticklabelposition");o("ticklabeloverflow",k.indexOf("inside")!==-1?"hide past domain":"hide past div"),vte(i,n,o,"linear");var M=a.font,E={noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0,outerTicks:!1,font:M};k.indexOf("inside")!==-1&&(E.bgColor="black"),pte(i,n,o,"linear",E),dte(i,n,o,"linear",E),hte(i,n,o,"linear",E),o("title.text",a._dfltTitle.colorbar);var P=n.showticklabels?n.tickfont:M,z=S0.extendFlat({},M,{family:P.family,size:S0.bigFont(P.size)});S0.coerceFont(o,"title.font",z),o("title.side",c?"top":"right")}});var V1=oe((N6e,wS)=>{"use strict";var _S=Qt(),k6=pr(),gte=h6(),yte=M6(),xS=Gf().isValid,bte=_t().traceIs;function T6(e,r){var t=r.slice(0,r.length-1);return r?k6.nestedProperty(e,t).get()||{}:e}wS.exports=function e(r,t,a,n,i){var o=i.prefix,l=i.cLetter,s="_module"in t,u=T6(r,o),f=T6(t,o),c=T6(t._template||{},o)||{},h=function(){return delete r.coloraxis,delete t.coloraxis,e(r,t,a,n,i)};if(s){var d=a._colorAxes||{},p=n(o+"coloraxis");if(p){var m=bte(t,"contour")&&k6.nestedProperty(t,"contours.coloring").get()||"heatmap",b=d[p];b?(b[2].push(h),b[0]!==m&&(b[0]=!1,k6.warn(["Ignoring coloraxis:",p,"setting","as it is linked to incompatible colorscales."].join(" ")))):d[p]=[m,t,[h]];return}}var y=u[l+"min"],C=u[l+"max"],x=_S(y)&&_S(C)&&y{"use strict";var AS=pr(),_te=ka(),MS=v6(),xte=V1();TS.exports=function(r,t){function a(c,h){return AS.coerce(r,t,MS,c,h)}a("colorscale.sequential"),a("colorscale.sequentialminus"),a("colorscale.diverging");var n=t._colorAxes,i,o;function l(c,h){return AS.coerce(i,o,MS.coloraxis,c,h)}for(var s in n){var u=n[s];if(u[0])i=r[s]||{},o=_te.newContainer(t,s,"coloraxis"),o._name=s,xte(i,o,t,l,{prefix:"",cLetter:"c"});else{for(var f=0;f{"use strict";var wte=pr(),Ate=Es().hasColorscale,Mte=Es().extractOpts;CS.exports=function(r,t){function a(f,c){var h=f["_"+c];h!==void 0&&(f[c]=h)}function n(f,c){var h=c.container?wte.nestedProperty(f,c.container).get():f;if(h)if(h.coloraxis)h._colorAx=t[h.coloraxis];else{var d=Mte(h),p=d.auto;(p||d.min===void 0)&&a(h,c.min),(p||d.max===void 0)&&a(h,c.max),d.autocolorscale&&a(h,"colorscale")}}for(var i=0;i{"use strict";var DS=Qt(),C6=pr(),Tte=Es().extractOpts;FS.exports=function(r,t,a){var n=r._fullLayout,i=a.vals,o=a.containerStr,l=o?C6.nestedProperty(t,o).get():t,s=Tte(l),u=s.auto!==!1,f=s.min,c=s.max,h=s.mid,d=function(){return C6.aggNums(Math.min,null,i)},p=function(){return C6.aggNums(Math.max,null,i)};if(f===void 0?f=d():u&&(l._colorAx&&DS(f)?f=Math.min(f,d()):f=d()),c===void 0?c=p():u&&(l._colorAx&&DS(c)?c=Math.max(c,p()):c=p()),u&&h!==void 0&&(c-h>h-f?f=h-(c-h):c-h=0?m=n.colorscale.sequential:m=n.colorscale.sequentialminus,s._sync("colorscale",m)}}});var Kp=oe((O6e,ES)=>{"use strict";var Jp=Gf(),X1=Es();ES.exports={moduleType:"component",name:"colorscale",attributes:Y1(),layoutAttributes:v6(),supplyLayoutDefaults:kS(),handleDefaults:V1(),crossTraceDefaults:SS(),calc:$p(),scales:Jp.scales,defaultScale:Jp.defaultScale,getScale:Jp.get,isValidScale:Jp.isValid,hasColorscale:X1.hasColorscale,extractOpts:X1.extractOpts,extractScale:X1.extractScale,flipScale:X1.flipScale,makeColorScaleFunc:X1.makeColorScaleFunc,makeColorScaleFuncFromTrace:X1.makeColorScaleFuncFromTrace}});var Ti=oe((U6e,qS)=>{"use strict";var LS=pr(),kte=ro().isTypedArraySpec;qS.exports={hasLines:function(e){return e.visible&&e.mode&&e.mode.indexOf("lines")!==-1},hasMarkers:function(e){return e.visible&&(e.mode&&e.mode.indexOf("markers")!==-1||e.type==="splom")},hasText:function(e){return e.visible&&e.mode&&e.mode.indexOf("text")!==-1},isBubble:function(e){var r=e.marker;return LS.isPlainObject(r)&&(LS.isArrayOrTypedArray(r.size)||kte(r.size))}}});var RS=oe((G6e,PS)=>{"use strict";var Cte=Qt();PS.exports=function(r,t){t||(t=2);var a=r.marker,n=a.sizeref||1,i=a.sizemin||0,o=a.sizemode==="area"?function(l){return Math.sqrt(l/n)}:function(l){return l/n};return function(l){var s=o(l/t);return Cte(s)&&s>0?Math.max(s,i):0}}});var Pu=oe(ni=>{"use strict";var Bv=pr();ni.getSubplot=function(e){return e.subplot||e.xaxis+e.yaxis||e.geo};ni.isTraceInSubplots=function(e,r){if(e.type==="splom"){for(var t=e.xaxes||[],a=e.yaxes||[],n=0;n=0&&t.index{var S6={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},Ete=/([astvzqmhlc])([^astvzqmhlc]*)/gi,Lte=/-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/gi;function qte(e){let r=[];return e.replace(Ete,(t,a,n)=>{let i=a.toLowerCase(),o=a,l=Pte(n);for(i==="m"&&l.length>2&&(r.push([o,...l.splice(0,2)]),i="l",o=o==="m"?"l":"L");;){if(l.length===S6[i])return r.push([o,...l]),"";if(l.length{"use strict";var Rte=D6(),Sr=function(e,r){return r?Math.round(e*(r=Math.pow(10,r)))/r:Math.round(e)},wt="M0,0Z",IS=Math.sqrt(2),D0=Math.sqrt(3),F6=Math.PI,E6=Math.cos,L6=Math.sin;YS.exports={circle:{n:0,f:function(e,r,t){if(At(r))return wt;var a=Sr(e,2),n="M"+a+",0A"+a+","+a+" 0 1,1 0,-"+a+"A"+a+","+a+" 0 0,1 "+a+",0Z";return t?Mt(r,t,n):n}},square:{n:1,f:function(e,r,t){if(At(r))return wt;var a=Sr(e,2);return Mt(r,t,"M"+a+","+a+"H-"+a+"V-"+a+"H"+a+"Z")}},diamond:{n:2,f:function(e,r,t){if(At(r))return wt;var a=Sr(e*1.3,2);return Mt(r,t,"M"+a+",0L0,"+a+"L-"+a+",0L0,-"+a+"Z")}},cross:{n:3,f:function(e,r,t){if(At(r))return wt;var a=Sr(e*.4,2),n=Sr(e*1.2,2);return Mt(r,t,"M"+n+","+a+"H"+a+"V"+n+"H-"+a+"V"+a+"H-"+n+"V-"+a+"H-"+a+"V-"+n+"H"+a+"V-"+a+"H"+n+"Z")}},x:{n:4,f:function(e,r,t){if(At(r))return wt;var a=Sr(e*.8/IS,2),n="l"+a+","+a,i="l"+a+",-"+a,o="l-"+a+",-"+a,l="l-"+a+","+a;return Mt(r,t,"M0,"+a+n+i+o+i+o+l+o+l+n+l+n+"Z")}},"triangle-up":{n:5,f:function(e,r,t){if(At(r))return wt;var a=Sr(e*2/D0,2),n=Sr(e/2,2),i=Sr(e,2);return Mt(r,t,"M-"+a+","+n+"H"+a+"L0,-"+i+"Z")}},"triangle-down":{n:6,f:function(e,r,t){if(At(r))return wt;var a=Sr(e*2/D0,2),n=Sr(e/2,2),i=Sr(e,2);return Mt(r,t,"M-"+a+",-"+n+"H"+a+"L0,"+i+"Z")}},"triangle-left":{n:7,f:function(e,r,t){if(At(r))return wt;var a=Sr(e*2/D0,2),n=Sr(e/2,2),i=Sr(e,2);return Mt(r,t,"M"+n+",-"+a+"V"+a+"L-"+i+",0Z")}},"triangle-right":{n:8,f:function(e,r,t){if(At(r))return wt;var a=Sr(e*2/D0,2),n=Sr(e/2,2),i=Sr(e,2);return Mt(r,t,"M-"+n+",-"+a+"V"+a+"L"+i+",0Z")}},"triangle-ne":{n:9,f:function(e,r,t){if(At(r))return wt;var a=Sr(e*.6,2),n=Sr(e*1.2,2);return Mt(r,t,"M-"+n+",-"+a+"H"+a+"V"+n+"Z")}},"triangle-se":{n:10,f:function(e,r,t){if(At(r))return wt;var a=Sr(e*.6,2),n=Sr(e*1.2,2);return Mt(r,t,"M"+a+",-"+n+"V"+a+"H-"+n+"Z")}},"triangle-sw":{n:11,f:function(e,r,t){if(At(r))return wt;var a=Sr(e*.6,2),n=Sr(e*1.2,2);return Mt(r,t,"M"+n+","+a+"H-"+a+"V-"+n+"Z")}},"triangle-nw":{n:12,f:function(e,r,t){if(At(r))return wt;var a=Sr(e*.6,2),n=Sr(e*1.2,2);return Mt(r,t,"M-"+a+","+n+"V-"+a+"H"+n+"Z")}},pentagon:{n:13,f:function(e,r,t){if(At(r))return wt;var a=Sr(e*.951,2),n=Sr(e*.588,2),i=Sr(-e,2),o=Sr(e*-.309,2),l=Sr(e*.809,2);return Mt(r,t,"M"+a+","+o+"L"+n+","+l+"H-"+n+"L-"+a+","+o+"L0,"+i+"Z")}},hexagon:{n:14,f:function(e,r,t){if(At(r))return wt;var a=Sr(e,2),n=Sr(e/2,2),i=Sr(e*D0/2,2);return Mt(r,t,"M"+i+",-"+n+"V"+n+"L0,"+a+"L-"+i+","+n+"V-"+n+"L0,-"+a+"Z")}},hexagon2:{n:15,f:function(e,r,t){if(At(r))return wt;var a=Sr(e,2),n=Sr(e/2,2),i=Sr(e*D0/2,2);return Mt(r,t,"M-"+n+","+i+"H"+n+"L"+a+",0L"+n+",-"+i+"H-"+n+"L-"+a+",0Z")}},octagon:{n:16,f:function(e,r,t){if(At(r))return wt;var a=Sr(e*.924,2),n=Sr(e*.383,2);return Mt(r,t,"M-"+n+",-"+a+"H"+n+"L"+a+",-"+n+"V"+n+"L"+n+","+a+"H-"+n+"L-"+a+","+n+"V-"+n+"Z")}},star:{n:17,f:function(e,r,t){if(At(r))return wt;var a=e*1.4,n=Sr(a*.225,2),i=Sr(a*.951,2),o=Sr(a*.363,2),l=Sr(a*.588,2),s=Sr(-a,2),u=Sr(a*-.309,2),f=Sr(a*.118,2),c=Sr(a*.809,2),h=Sr(a*.382,2);return Mt(r,t,"M"+n+","+u+"H"+i+"L"+o+","+f+"L"+l+","+c+"L0,"+h+"L-"+l+","+c+"L-"+o+","+f+"L-"+i+","+u+"H-"+n+"L0,"+s+"Z")}},hexagram:{n:18,f:function(e,r,t){if(At(r))return wt;var a=Sr(e*.66,2),n=Sr(e*.38,2),i=Sr(e*.76,2);return Mt(r,t,"M-"+i+",0l-"+n+",-"+a+"h"+i+"l"+n+",-"+a+"l"+n+","+a+"h"+i+"l-"+n+","+a+"l"+n+","+a+"h-"+i+"l-"+n+","+a+"l-"+n+",-"+a+"h-"+i+"Z")}},"star-triangle-up":{n:19,f:function(e,r,t){if(At(r))return wt;var a=Sr(e*D0*.8,2),n=Sr(e*.8,2),i=Sr(e*1.6,2),o=Sr(e*4,2),l="A "+o+","+o+" 0 0 1 ";return Mt(r,t,"M-"+a+","+n+l+a+","+n+l+"0,-"+i+l+"-"+a+","+n+"Z")}},"star-triangle-down":{n:20,f:function(e,r,t){if(At(r))return wt;var a=Sr(e*D0*.8,2),n=Sr(e*.8,2),i=Sr(e*1.6,2),o=Sr(e*4,2),l="A "+o+","+o+" 0 0 1 ";return Mt(r,t,"M"+a+",-"+n+l+"-"+a+",-"+n+l+"0,"+i+l+a+",-"+n+"Z")}},"star-square":{n:21,f:function(e,r,t){if(At(r))return wt;var a=Sr(e*1.1,2),n=Sr(e*2,2),i="A "+n+","+n+" 0 0 1 ";return Mt(r,t,"M-"+a+",-"+a+i+"-"+a+","+a+i+a+","+a+i+a+",-"+a+i+"-"+a+",-"+a+"Z")}},"star-diamond":{n:22,f:function(e,r,t){if(At(r))return wt;var a=Sr(e*1.4,2),n=Sr(e*1.9,2),i="A "+n+","+n+" 0 0 1 ";return Mt(r,t,"M-"+a+",0"+i+"0,"+a+i+a+",0"+i+"0,-"+a+i+"-"+a+",0Z")}},"diamond-tall":{n:23,f:function(e,r,t){if(At(r))return wt;var a=Sr(e*.7,2),n=Sr(e*1.4,2);return Mt(r,t,"M0,"+n+"L"+a+",0L0,-"+n+"L-"+a+",0Z")}},"diamond-wide":{n:24,f:function(e,r,t){if(At(r))return wt;var a=Sr(e*1.4,2),n=Sr(e*.7,2);return Mt(r,t,"M0,"+n+"L"+a+",0L0,-"+n+"L-"+a+",0Z")}},hourglass:{n:25,f:function(e,r,t){if(At(r))return wt;var a=Sr(e,2);return Mt(r,t,"M"+a+","+a+"H-"+a+"L"+a+",-"+a+"H-"+a+"Z")},noDot:!0},bowtie:{n:26,f:function(e,r,t){if(At(r))return wt;var a=Sr(e,2);return Mt(r,t,"M"+a+","+a+"V-"+a+"L-"+a+","+a+"V-"+a+"Z")},noDot:!0},"circle-cross":{n:27,f:function(e,r,t){if(At(r))return wt;var a=Sr(e,2);return Mt(r,t,"M0,"+a+"V-"+a+"M"+a+",0H-"+a+"M"+a+",0A"+a+","+a+" 0 1,1 0,-"+a+"A"+a+","+a+" 0 0,1 "+a+",0Z")},needLine:!0,noDot:!0},"circle-x":{n:28,f:function(e,r,t){if(At(r))return wt;var a=Sr(e,2),n=Sr(e/IS,2);return Mt(r,t,"M"+n+","+n+"L-"+n+",-"+n+"M"+n+",-"+n+"L-"+n+","+n+"M"+a+",0A"+a+","+a+" 0 1,1 0,-"+a+"A"+a+","+a+" 0 0,1 "+a+",0Z")},needLine:!0,noDot:!0},"square-cross":{n:29,f:function(e,r,t){if(At(r))return wt;var a=Sr(e,2);return Mt(r,t,"M0,"+a+"V-"+a+"M"+a+",0H-"+a+"M"+a+","+a+"H-"+a+"V-"+a+"H"+a+"Z")},needLine:!0,noDot:!0},"square-x":{n:30,f:function(e,r,t){if(At(r))return wt;var a=Sr(e,2);return Mt(r,t,"M"+a+","+a+"L-"+a+",-"+a+"M"+a+",-"+a+"L-"+a+","+a+"M"+a+","+a+"H-"+a+"V-"+a+"H"+a+"Z")},needLine:!0,noDot:!0},"diamond-cross":{n:31,f:function(e,r,t){if(At(r))return wt;var a=Sr(e*1.3,2);return Mt(r,t,"M"+a+",0L0,"+a+"L-"+a+",0L0,-"+a+"ZM0,-"+a+"V"+a+"M-"+a+",0H"+a)},needLine:!0,noDot:!0},"diamond-x":{n:32,f:function(e,r,t){if(At(r))return wt;var a=Sr(e*1.3,2),n=Sr(e*.65,2);return Mt(r,t,"M"+a+",0L0,"+a+"L-"+a+",0L0,-"+a+"ZM-"+n+",-"+n+"L"+n+","+n+"M-"+n+","+n+"L"+n+",-"+n)},needLine:!0,noDot:!0},"cross-thin":{n:33,f:function(e,r,t){if(At(r))return wt;var a=Sr(e*1.4,2);return Mt(r,t,"M0,"+a+"V-"+a+"M"+a+",0H-"+a)},needLine:!0,noDot:!0,noFill:!0},"x-thin":{n:34,f:function(e,r,t){if(At(r))return wt;var a=Sr(e,2);return Mt(r,t,"M"+a+","+a+"L-"+a+",-"+a+"M"+a+",-"+a+"L-"+a+","+a)},needLine:!0,noDot:!0,noFill:!0},asterisk:{n:35,f:function(e,r,t){if(At(r))return wt;var a=Sr(e*1.2,2),n=Sr(e*.85,2);return Mt(r,t,"M0,"+a+"V-"+a+"M"+a+",0H-"+a+"M"+n+","+n+"L-"+n+",-"+n+"M"+n+",-"+n+"L-"+n+","+n)},needLine:!0,noDot:!0,noFill:!0},hash:{n:36,f:function(e,r,t){if(At(r))return wt;var a=Sr(e/2,2),n=Sr(e,2);return Mt(r,t,"M"+a+","+n+"V-"+n+"M"+(a-n)+",-"+n+"V"+n+"M"+n+","+a+"H-"+n+"M-"+n+","+(a-n)+"H"+n)},needLine:!0,noFill:!0},"y-up":{n:37,f:function(e,r,t){if(At(r))return wt;var a=Sr(e*1.2,2),n=Sr(e*1.6,2),i=Sr(e*.8,2);return Mt(r,t,"M-"+a+","+i+"L0,0M"+a+","+i+"L0,0M0,-"+n+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-down":{n:38,f:function(e,r,t){if(At(r))return wt;var a=Sr(e*1.2,2),n=Sr(e*1.6,2),i=Sr(e*.8,2);return Mt(r,t,"M-"+a+",-"+i+"L0,0M"+a+",-"+i+"L0,0M0,"+n+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-left":{n:39,f:function(e,r,t){if(At(r))return wt;var a=Sr(e*1.2,2),n=Sr(e*1.6,2),i=Sr(e*.8,2);return Mt(r,t,"M"+i+","+a+"L0,0M"+i+",-"+a+"L0,0M-"+n+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-right":{n:40,f:function(e,r,t){if(At(r))return wt;var a=Sr(e*1.2,2),n=Sr(e*1.6,2),i=Sr(e*.8,2);return Mt(r,t,"M-"+i+","+a+"L0,0M-"+i+",-"+a+"L0,0M"+n+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"line-ew":{n:41,f:function(e,r,t){if(At(r))return wt;var a=Sr(e*1.4,2);return Mt(r,t,"M"+a+",0H-"+a)},needLine:!0,noDot:!0,noFill:!0},"line-ns":{n:42,f:function(e,r,t){if(At(r))return wt;var a=Sr(e*1.4,2);return Mt(r,t,"M0,"+a+"V-"+a)},needLine:!0,noDot:!0,noFill:!0},"line-ne":{n:43,f:function(e,r,t){if(At(r))return wt;var a=Sr(e,2);return Mt(r,t,"M"+a+",-"+a+"L-"+a+","+a)},needLine:!0,noDot:!0,noFill:!0},"line-nw":{n:44,f:function(e,r,t){if(At(r))return wt;var a=Sr(e,2);return Mt(r,t,"M"+a+","+a+"L-"+a+",-"+a)},needLine:!0,noDot:!0,noFill:!0},"arrow-up":{n:45,f:function(e,r,t){if(At(r))return wt;var a=Sr(e,2),n=Sr(e*2,2);return Mt(r,t,"M0,0L-"+a+","+n+"H"+a+"Z")},backoff:1,noDot:!0},"arrow-down":{n:46,f:function(e,r,t){if(At(r))return wt;var a=Sr(e,2),n=Sr(e*2,2);return Mt(r,t,"M0,0L-"+a+",-"+n+"H"+a+"Z")},noDot:!0},"arrow-left":{n:47,f:function(e,r,t){if(At(r))return wt;var a=Sr(e*2,2),n=Sr(e,2);return Mt(r,t,"M0,0L"+a+",-"+n+"V"+n+"Z")},noDot:!0},"arrow-right":{n:48,f:function(e,r,t){if(At(r))return wt;var a=Sr(e*2,2),n=Sr(e,2);return Mt(r,t,"M0,0L-"+a+",-"+n+"V"+n+"Z")},noDot:!0},"arrow-bar-up":{n:49,f:function(e,r,t){if(At(r))return wt;var a=Sr(e,2),n=Sr(e*2,2);return Mt(r,t,"M-"+a+",0H"+a+"M0,0L-"+a+","+n+"H"+a+"Z")},backoff:1,needLine:!0,noDot:!0},"arrow-bar-down":{n:50,f:function(e,r,t){if(At(r))return wt;var a=Sr(e,2),n=Sr(e*2,2);return Mt(r,t,"M-"+a+",0H"+a+"M0,0L-"+a+",-"+n+"H"+a+"Z")},needLine:!0,noDot:!0},"arrow-bar-left":{n:51,f:function(e,r,t){if(At(r))return wt;var a=Sr(e*2,2),n=Sr(e,2);return Mt(r,t,"M0,-"+n+"V"+n+"M0,0L"+a+",-"+n+"V"+n+"Z")},needLine:!0,noDot:!0},"arrow-bar-right":{n:52,f:function(e,r,t){if(At(r))return wt;var a=Sr(e*2,2),n=Sr(e,2);return Mt(r,t,"M0,-"+n+"V"+n+"M0,0L-"+a+",-"+n+"V"+n+"Z")},needLine:!0,noDot:!0},arrow:{n:53,f:function(e,r,t){if(At(r))return wt;var a=F6/2.5,n=2*e*E6(a),i=2*e*L6(a);return Mt(r,t,"M0,0L"+-n+","+i+"L"+n+","+i+"Z")},backoff:.9,noDot:!0},"arrow-wide":{n:54,f:function(e,r,t){if(At(r))return wt;var a=F6/4,n=2*e*E6(a),i=2*e*L6(a);return Mt(r,t,"M0,0L"+-n+","+i+"A "+2*e+","+2*e+" 0 0 1 "+n+","+i+"Z")},backoff:.4,noDot:!0}};function At(e){return e===null}var HS,OS,US,GS;function Mt(e,r,t){if((!e||e%360===0)&&!r)return t;if(US===e&&GS===r&&HS===t)return OS;US=e,GS=r,HS=t;function a(b,y){var C=E6(b),x=L6(b),_=y[0],A=y[1]+(r||0);return[_*C-A*x,_*x+A*C]}for(var n=e/180*F6,i=0,o=0,l=Rte(t),s="",u=0;u{"use strict";var On=Lt(),va=pr(),zte=va.numberFormat,F0=Qt(),em=_t(),qn=Nt(),Nte=Kp(),Hv=va.strTranslate,rm=vi(),Bte=(ec(),xr(Qf)),Ite=(ci(),xr(fi)),Hte=Ite.LINE_SPACING,rD=(up(),xr(sp)).DESELECTDIM,Ote=Ti(),Ute=RS(),Gte=Pu().appendArrayPointValue,zr={};cD.exports=zr;zr.font=function(e,r){var t=r.variant,a=r.style,n=r.weight,i=r.color,o=r.size,l=r.family,s=r.shadow,u=r.lineposition,f=r.textcase;l&&e.style("font-family",l),o+1&&e.style("font-size",o+"px"),i&&e.call(qn.fill,i),n&&e.style("font-weight",n),a&&e.style("font-style",a),t&&e.style("font-variant",t),f&&e.style("text-transform",q6(Vte(f))),s&&e.style("text-shadow",s==="auto"?rm.makeTextShadow(qn.contrast(i)):q6(s)),u&&e.style("text-decoration-line",q6(Xte(u)))};function q6(e){return e==="none"?void 0:e}var Yte={normal:"none",lower:"lowercase",upper:"uppercase","word caps":"capitalize"};function Vte(e){return Yte[e]}function Xte(e){return e.replace("under","underline").replace("over","overline").replace("through","line-through").split("+").join(" ")}zr.setPosition=function(e,r,t){e.attr("x",r).attr("y",t)};zr.setSize=function(e,r,t){e.attr("width",r).attr("height",t)};zr.setRect=function(e,r,t,a,n){e.call(zr.setPosition,r,t).call(zr.setSize,a,n)};zr.translatePoint=function(e,r,t,a){var n=t.c2p(e.x),i=a.c2p(e.y);if(F0(n)&&F0(i)&&r.node())r.node().nodeName==="text"?r.attr("x",n).attr("y",i):r.attr("transform",Hv(n,i));else return!1;return!0};zr.translatePoints=function(e,r,t){e.each(function(a){var n=On.select(this);zr.translatePoint(a,n,r,t)})};zr.hideOutsideRangePoint=function(e,r,t,a,n,i){r.attr("display",t.isPtWithinRange(e,n)&&a.isPtWithinRange(e,i)?null:"none")};zr.hideOutsideRangePoints=function(e,r){if(r._hasClipOnAxisFalse){var t=r.xaxis,a=r.yaxis;e.each(function(n){var i=n[0].trace,o=i.xcalendar,l=i.ycalendar,s=em.traceIs(i,"bar-like")?".bartext":".point,.textpoint";e.selectAll(s).each(function(u){zr.hideOutsideRangePoint(u,On.select(this),t,a,o,l)})})}};zr.crispRound=function(e,r,t){return!r||!F0(r)?t||0:e._context.staticPlot?r:r<1?1:Math.round(r)};zr.singleLineStyle=function(e,r,t,a,n){r.style("fill","none");var i=(((e||[])[0]||{}).trace||{}).line||{},o=t||i.width||0,l=n||i.dash||"";qn.stroke(r,a||i.color),zr.dashLine(r,l,o)};zr.lineGroupStyle=function(e,r,t,a){e.style("fill","none").each(function(n){var i=(((n||[])[0]||{}).trace||{}).line||{},o=r||i.width||0,l=a||i.dash||"";On.select(this).call(qn.stroke,t||i.color).call(zr.dashLine,l,o)})};zr.dashLine=function(e,r,t){t=+t||0,r=zr.dashStyle(r,t),e.style({"stroke-dasharray":r,"stroke-width":t+"px"})};zr.dashStyle=function(e,r){r=+r||1;var t=Math.max(r,3);return e==="solid"?e="":e==="dot"?e=t+"px,"+t+"px":e==="dash"?e=3*t+"px,"+3*t+"px":e==="longdash"?e=5*t+"px,"+5*t+"px":e==="dashdot"?e=3*t+"px,"+t+"px,"+t+"px,"+t+"px":e==="longdashdot"&&(e=5*t+"px,"+2*t+"px,"+t+"px,"+2*t+"px"),e};function tD(e,r,t,a){var n=r.fillpattern,i=r.fillgradient,o=zr.getPatternAttr,l=n&&(o(n.shape,0,"")||o(n.path,0,""));if(l){var s=o(n.bgcolor,0,null),u=o(n.fgcolor,0,null),f=n.fgopacity,c=o(n.size,0,8),h=o(n.solidity,0,.3),d=r.uid;zr.pattern(e,"point",t,d,l,c,h,void 0,n.fillmode,s,u,f)}else if(i&&i.type!=="none"){var p=i.type,m="scatterfill-"+r.uid;if(a&&(m="legendfill-"+r.uid),!a&&(i.start!==void 0||i.stop!==void 0)){var b,y;p==="horizontal"?(b={x:i.start,y:0},y={x:i.stop,y:0}):p==="vertical"&&(b={x:0,y:i.start},y={x:0,y:i.stop}),b.x=r._xA.c2p(b.x===void 0?r._extremes.x.min[0].val:b.x,!0),b.y=r._yA.c2p(b.y===void 0?r._extremes.y.min[0].val:b.y,!0),y.x=r._xA.c2p(y.x===void 0?r._extremes.x.max[0].val:y.x,!0),y.y=r._yA.c2p(y.y===void 0?r._extremes.y.max[0].val:y.y,!0),e.call(iD,t,m,"linear",i.colorscale,"fill",b,y,!0,!1)}else p==="horizontal"&&(p=p+"reversed"),e.call(zr.gradient,t,m,p,i.colorscale,"fill")}else r.fillcolor&&e.call(qn.fill,r.fillcolor)}zr.singleFillStyle=function(e,r){var t=On.select(e.node()),a=t.data(),n=((a[0]||[])[0]||{}).trace||{};tD(e,n,r,!1)};zr.fillGroupStyle=function(e,r,t){e.style("stroke-width",0).each(function(a){var n=On.select(this);a[0].trace&&tD(n,a[0].trace,r,t)})};var XS=VS();zr.symbolNames=[];zr.symbolFuncs=[];zr.symbolBackOffs=[];zr.symbolNeedLines={};zr.symbolNoDot={};zr.symbolNoFill={};zr.symbolList=[];Object.keys(XS).forEach(function(e){var r=XS[e],t=r.n;zr.symbolList.push(t,String(t),e,t+100,String(t+100),e+"-open"),zr.symbolNames[t]=e,zr.symbolFuncs[t]=r.f,zr.symbolBackOffs[t]=r.backoff||0,r.needLine&&(zr.symbolNeedLines[t]=!0),r.noDot?zr.symbolNoDot[t]=!0:zr.symbolList.push(t+200,String(t+200),e+"-dot",t+300,String(t+300),e+"-open-dot"),r.noFill&&(zr.symbolNoFill[t]=!0)});var jte=zr.symbolNames.length,Wte="M0,0.5L0.5,0L0,-0.5L-0.5,0Z";zr.symbolNumber=function(e){if(F0(e))e=+e;else if(typeof e=="string"){var r=0;e.indexOf("-open")>0&&(r=100,e=e.replace("-open","")),e.indexOf("-dot")>0&&(r+=200,e=e.replace("-dot","")),e=zr.symbolNames.indexOf(e),e>=0&&(e+=r)}return e%100>=jte||e>=400?0:Math.floor(Math.max(e,0))};function aD(e,r,t,a){var n=e%100;return zr.symbolFuncs[n](r,t,a)+(e>=200?Wte:"")}var jS=zte("~f"),nD={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}};zr.gradient=function(e,r,t,a,n,i){var o=nD[a];return iD(e,r,t,o.type,n,i,o.start,o.stop,!1,o.reversed)};function iD(e,r,t,a,n,i,o,l,s,u){var f=n.length,c;a==="linear"?c={node:"linearGradient",attrs:{x1:o.x,y1:o.y,x2:l.x,y2:l.y,gradientUnits:s?"userSpaceOnUse":"objectBoundingBox"},reversed:u}:a==="radial"&&(c={node:"radialGradient",reversed:u});for(var h=new Array(f),d=0;d=0&&e.i===void 0&&(e.i=i.i),r.style("opacity",a.selectedOpacityFn?a.selectedOpacityFn(e):e.mo===void 0?o.opacity:e.mo),a.ms2mrc){var s;e.ms==="various"||o.size==="various"?s=3:s=a.ms2mrc(e.ms),e.mrc=s,a.selectedSizeFn&&(s=e.mrc=a.selectedSizeFn(e));var u=zr.symbolNumber(e.mx||o.symbol)||0;e.om=u%200>=100;var f=H6(e,t),c=I6(e,t);r.attr("d",aD(u,s,f,c))}var h=!1,d,p,m;if(e.so)m=l.outlierwidth,p=l.outliercolor,d=o.outliercolor;else{var b=(l||{}).width;m=(e.mlw+1||b+1||(e.trace?(e.trace.marker.line||{}).width:0)+1)-1||0,"mlc"in e?p=e.mlcc=a.lineScale(e.mlc):va.isArrayOrTypedArray(l.color)?p=qn.defaultLine:p=l.color,va.isArrayOrTypedArray(o.color)&&(d=qn.defaultLine,h=!0),"mc"in e?d=e.mcc=a.markerScale(e.mc):d=o.color||o.colors||"rgba(0,0,0,0)",a.selectedColorFn&&(d=a.selectedColorFn(e))}let y=e.mld||(l||{}).dash;if(y&&zr.dashLine(r,y,m),e.om)r.call(qn.stroke,d).style({"stroke-width":(m||1)+"px",fill:"none"});else{r.style("stroke-width",(e.isBlank?0:m)+"px");var C=o.gradient,x=e.mgt;x?h=!0:x=C&&C.type,va.isArrayOrTypedArray(x)&&(x=x[0],nD[x]||(x=0));var _=o.pattern,A=zr.getPatternAttr,k=_&&(A(_.shape,e.i,"")||A(_.path,e.i,""));if(x&&x!=="none"){var M=e.mgc;M?h=!0:M=C.color;var E=t.uid;h&&(E+="-"+e.i),zr.gradient(r,n,E,x,[[0,M],[1,d]],"fill")}else if(k){var P=!1,z=_.fgcolor;!z&&i&&i.color&&(z=i.color,P=!0);var I=A(z,e.i,i&&i.color||null),V=A(_.bgcolor,e.i,null),H=_.fgopacity,X=A(_.size,e.i,8),N=A(_.solidity,e.i,.3);P=P||e.mcc||va.isArrayOrTypedArray(_.shape)||va.isArrayOrTypedArray(_.path)||va.isArrayOrTypedArray(_.bgcolor)||va.isArrayOrTypedArray(_.fgcolor)||va.isArrayOrTypedArray(_.size)||va.isArrayOrTypedArray(_.solidity);var Q=t.uid;P&&(Q+="-"+e.i),zr.pattern(r,"point",n,Q,k,X,N,e.mcc,_.fillmode,V,I,H)}else va.isArrayOrTypedArray(d)?qn.fill(r,d[e.i]):qn.fill(r,d);m&&qn.stroke(r,p)}};zr.makePointStyleFns=function(e){var r={},t=e.marker;return r.markerScale=zr.tryColorscale(t,""),r.lineScale=zr.tryColorscale(t,"line"),em.traceIs(e,"symbols")&&(r.ms2mrc=Ote.isBubble(e)?Ute(e):function(){return(t.size||6)/2}),e.selectedpoints&&va.extendFlat(r,zr.makeSelectedPointStyleFns(e)),r};zr.makeSelectedPointStyleFns=function(e){var r={},t=e.selected||{},a=e.unselected||{},n=e.marker||{},i=t.marker||{},o=a.marker||{},l=n.opacity,s=i.opacity,u=o.opacity,f=s!==void 0,c=u!==void 0;(va.isArrayOrTypedArray(l)||f||c)&&(r.selectedOpacityFn=function(_){var A=_.mo===void 0?n.opacity:_.mo;return _.selected?f?s:A:c?u:rD*A});var h=n.color,d=i.color,p=o.color;(d||p)&&(r.selectedColorFn=function(_){var A=_.mcc||h;return _.selected?d||A:p||A});var m=n.size,b=i.size,y=o.size,C=b!==void 0,x=y!==void 0;return em.traceIs(e,"symbols")&&(C||x)&&(r.selectedSizeFn=function(_){var A=_.mrc||m/2;return _.selected?C?b/2:A:x?y/2:A}),r};zr.makeSelectedTextStyleFns=function(e){var r={},t=e.selected||{},a=e.unselected||{},n=e.textfont||{},i=t.textfont||{},o=a.textfont||{},l=n.color,s=i.color,u=o.color;return r.selectedTextColorFn=function(f){var c=f.tc||l;return f.selected?s||c:u||(s?c:qn.addOpacity(c,rD))},r};zr.selectedPointStyle=function(e,r){if(!(!e.size()||!r.selectedpoints)){var t=zr.makeSelectedPointStyleFns(r),a=r.marker||{},n=[];t.selectedOpacityFn&&n.push(function(i,o){i.style("opacity",t.selectedOpacityFn(o))}),t.selectedColorFn&&n.push(function(i,o){qn.fill(i,t.selectedColorFn(o))}),t.selectedSizeFn&&n.push(function(i,o){var l=o.mx||a.symbol||0,s=t.selectedSizeFn(o);i.attr("d",aD(zr.symbolNumber(l),s,H6(o,r),I6(o,r))),o.mrc2=s}),n.length&&e.each(function(i){for(var o=On.select(this),l=0;l0?t:0}zr.textPointStyle=function(e,r,t){if(e.size()){var a;if(r.selectedpoints){var n=zr.makeSelectedTextStyleFns(r);a=n.selectedTextColorFn}var i=r.texttemplate,o=t._fullLayout;e.each(function(l){var s=On.select(this),u=i?va.extractOption(l,r,"txt","texttemplate"):va.extractOption(l,r,"tx","text");if(!u&&u!==0){s.remove();return}if(i){var f=r._module.formatLabels,c=f?f(l,r,o):{},h={};Gte(h,r,l.i),u=va.texttemplateString({data:[h,l,r._meta],fallback:r.texttemplatefallback,labels:c,locale:o._d3locale,template:u})}var d=l.tp||r.textposition,p=lD(l,r),m=a?a(l):l.tc||r.textfont.color;s.call(zr.font,{family:l.tf||r.textfont.family,weight:l.tw||r.textfont.weight,style:l.ty||r.textfont.style,variant:l.tv||r.textfont.variant,textcase:l.tC||r.textfont.textcase,lineposition:l.tE||r.textfont.lineposition,shadow:l.tS||r.textfont.shadow,size:p,color:m}).text(u).call(rm.convertToTspans,t).call(oD,d,p,l.mrc)})}};zr.selectedTextStyle=function(e,r){if(!(!e.size()||!r.selectedpoints)){var t=zr.makeSelectedTextStyleFns(r);e.each(function(a){var n=On.select(this),i=t.selectedTextColorFn(a),o=a.tp||r.textposition,l=lD(a,r);qn.fill(n,i);var s=em.traceIs(r,"bar-like");oD(n,o,l,a.mrc2||a.mrc,s)})}};var WS=.5;zr.smoothopen=function(e,r){if(e.length<3)return"M"+e.join("L");var t="M"+e[0],a=[],n;for(n=1;n=s||_>=f&&_<=s)&&(A<=c&&A>=u||A>=c&&A<=u)&&(e=[_,A])}return e}zr.applyBackoff=fD;zr.makeTester=function(){var e=va.ensureSingleById(On.select("body"),"svg","js-plotly-tester",function(t){t.attr(Bte.svgAttrs).style({position:"absolute",left:"-10000px",top:"-10000px",width:"9000px",height:"9000px","z-index":"1"})}),r=va.ensureSingle(e,"path","js-reference-point",function(t){t.attr("d","M0,0H1V1H0Z").style({"stroke-width":0,fill:"black"})});zr.tester=e,zr.testref=r};zr.savedBBoxes={};var R6=0,Jte=1e4;zr.bBox=function(e,r,t){t||(t=ZS(e));var a;if(t){if(a=zr.savedBBoxes[t],a)return va.extendFlat({},a)}else if(e.childNodes.length===1){var n=e.childNodes[0];if(t=ZS(n),t){var i=+n.getAttribute("x")||0,o=+n.getAttribute("y")||0,l=n.getAttribute("transform");if(!l){var s=zr.bBox(n,!1,t);return i&&(s.left+=i,s.right+=i),o&&(s.top+=o,s.bottom+=o),s}if(t+="~"+i+"~"+o+"~"+l,a=zr.savedBBoxes[t],a)return va.extendFlat({},a)}}var u,f;r?u=e:(f=zr.tester.node(),u=e.cloneNode(!0),f.appendChild(u)),On.select(u).attr("transform",null).call(rm.positionText,0,0);var c=u.getBoundingClientRect(),h=zr.testref.node().getBoundingClientRect();r||f.removeChild(u);var d={height:c.height,width:c.width,left:c.left-h.left,top:c.top-h.top,right:c.right-h.left,bottom:c.bottom-h.top};return R6>=Jte&&(zr.savedBBoxes={},R6=0),t&&(zr.savedBBoxes[t]=d),R6++,va.extendFlat({},d)};function ZS(e){var r=e.getAttribute("data-unformatted");if(r!==null)return r+e.getAttribute("data-math")+e.getAttribute("text-anchor")+e.getAttribute("style")}zr.setClipUrl=function(e,r,t){e.attr("clip-path",B6(r,t))};function B6(e,r){if(!e)return null;var t=r._context,a=t._exportedPlot?"":t._baseUrl||"";return a?"url('"+a+"#"+e+"')":"url(#"+e+")"}zr.getTranslate=function(e){var r=/.*\btranslate\((-?\d*\.?\d*)[^-\d]*(-?\d*\.?\d*)[^\d].*/,t=e.attr?"attr":"getAttribute",a=e[t]("transform")||"",n=a.replace(r,function(i,o,l){return[o,l].join(" ")}).split(" ");return{x:+n[0]||0,y:+n[1]||0}};zr.setTranslate=function(e,r,t){var a=/(\btranslate\(.*?\);?)/,n=e.attr?"attr":"getAttribute",i=e.attr?"attr":"setAttribute",o=e[n]("transform")||"";return r=r||0,t=t||0,o=o.replace(a,"").trim(),o+=Hv(r,t),o=o.trim(),e[i]("transform",o),o};zr.getScale=function(e){var r=/.*\bscale\((\d*\.?\d*)[^\d]*(\d*\.?\d*)[^\d].*/,t=e.attr?"attr":"getAttribute",a=e[t]("transform")||"",n=a.replace(r,function(i,o,l){return[o,l].join(" ")}).split(" ");return{x:+n[0]||1,y:+n[1]||1}};zr.setScale=function(e,r,t){var a=/(\bscale\(.*?\);?)/,n=e.attr?"attr":"getAttribute",i=e.attr?"attr":"setAttribute",o=e[n]("transform")||"";return r=r||1,t=t||1,o=o.replace(a,"").trim(),o+="scale("+r+","+t+")",o=o.trim(),e[i]("transform",o),o};var Kte=/\s*sc.*/;zr.setPointGroupScale=function(e,r,t){if(r=r||1,t=t||1,!!e){var a=r===1&&t===1?"":"scale("+r+","+t+")";e.each(function(){var n=(this.getAttribute("transform")||"").replace(Kte,"");n+=a,n=n.trim(),this.setAttribute("transform",n)})}};var Qte=/translate\([^)]*\)\s*$/;zr.setTextPointsScale=function(e,r,t){e&&e.each(function(){var a,n=On.select(this),i=n.select("text");if(i.node()){var o=parseFloat(i.attr("x")||0),l=parseFloat(i.attr("y")||0),s=(n.attr("transform")||"").match(Qte);r===1&&t===1?a=[]:a=[Hv(o,l),"scale("+r+","+t+")",Hv(-o,-l)],s&&a.push(s),n.attr("transform",a.join(""))}})};function I6(e,r){var t;return e&&(t=e.mf),t===void 0&&(t=r.marker&&r.marker.standoff||0),!r._geo&&!r._xA?-t:t}zr.getMarkerStandoff=I6;var Iv=Math.atan2,ac=Math.cos,W1=Math.sin;function $S(e,r){var t=r[0],a=r[1];return[t*ac(e)-a*W1(e),t*W1(e)+a*ac(e)]}var JS,KS,QS,eD,z6,N6;function H6(e,r){var t=e.ma;t===void 0&&(t=r.marker.angle,(!F0(t)||va.isArrayOrTypedArray(t))&&(t=0));var a,n,i=r.marker.angleref;if(i==="previous"||i==="north"){if(r._geo){var o=r._geo.project(e.lonlat);a=o[0],n=o[1]}else{var l=r._xA,s=r._yA;if(l&&s)a=l.c2p(e.x),n=s.c2p(e.y);else return 90}if(r._geo){var u=e.lonlat[0],f=e.lonlat[1],c=r._geo.project([u,f+1e-5]),h=r._geo.project([u+1e-5,f]),d=Iv(h[1]-n,h[0]-a),p=Iv(c[1]-n,c[0]-a),m;if(i==="north")m=t/180*Math.PI;else if(i==="previous"){var b=u/180*Math.PI,y=f/180*Math.PI,C=JS/180*Math.PI,x=KS/180*Math.PI,_=C-b,A=ac(x)*W1(_),k=W1(x)*ac(y)-ac(x)*W1(y)*ac(_);m=-Iv(A,k)-Math.PI,JS=u,KS=f}var M=$S(d,[ac(m),0]),E=$S(p,[W1(m),0]);t=Iv(M[1]+E[1],M[0]+E[0])/Math.PI*180,i==="previous"&&!(N6===r.uid&&e.i===z6+1)&&(t=null)}if(i==="previous"&&!r._geo)if(N6===r.uid&&e.i===z6+1&&F0(a)&&F0(n)){var P=a-QS,z=n-eD,I=r.line&&r.line.shape||"",V=I.slice(I.length-1);V==="h"&&(z=0),V==="v"&&(P=0),t+=Iv(z,P)/Math.PI*180+90}else t=null}return QS=a,eD=n,z6=e.i,N6=r.uid,t}zr.getMarkerAngle=H6});var Ov=oe((W6e,pD)=>{"use strict";var Z1=Lt(),eae=Qt(),rae=Ln(),O6=_t(),oc=pr(),vD=oc.strTranslate,tm=ha(),am=Nt(),$1=vi(),hD=(up(),xr(sp)),tae=(ci(),xr(fi)).OPPOSITE_SIDE,dD=/ [XY][0-9]* /,U6=1.6,G6=1.6;function aae(e,r,t){var a=e._fullLayout,n=t.propContainer,i=t.propName,o=t.placeholder,l=t.traceIndex,s=t.avoid||{},u=t.attributes,f=t.transform,c=t.containerGroup,h=1,d=n.title,p=(d&&d.text?d.text:"").trim(),m=!1,b=d&&d.font?d.font:{},y=b.family,C=b.size,x=b.color,_=b.weight,A=b.style,k=b.variant,M=b.textcase,E=b.lineposition,P=b.shadow,z=t.subtitlePropName,I=!!z,V=t.subtitlePlaceholder,H=(n.title||{}).subtitle||{text:"",font:{}},X=(H.text||"").trim(),N=!1,Q=1,ee=H.font,re=ee.family,ae=ee.size,ie=ee.color,le=ee.weight,xe=ee.style,De=ee.variant,Ye=ee.textcase,Ee=ee.lineposition,ke=ee.shadow,je;i==="title.text"?je="titleText":i.indexOf("axis")!==-1?je="axisTitleText":i.indexOf("colorbar")!==-1&&(je="colorbarTitleText");var W=e._context.edits[je];function se(hr,Ar){return hr===void 0||Ar===void 0?!1:hr.replace(dD," % ")===Ar.replace(dD," % ")}p===""?h=0:se(p,o)&&(W||(p=""),h=.2,m=!0),I&&(X===""?Q=0:se(X,V)&&(W||(X=""),Q=.2,N=!0)),t._meta?p=oc.templateString(p,t._meta):a._meta&&(p=oc.templateString(p,a._meta));var he=p||X||W,K;c||(c=oc.ensureSingle(a._infolayer,"g","g-"+r),K=a._hColorbarMoveTitle);var J=c.selectAll("text."+r).data(he?[0]:[]);J.enter().append("text"),J.text(p).attr("class",r),J.exit().remove();var fe=null,be=r+"-subtitle",Ne=X||W;if(I&&(fe=c.selectAll("text."+be).data(Ne?[0]:[]),fe.enter().append("text"),fe.text(X).attr("class",be),fe.exit().remove()),!he)return c;function Ze(hr,Ar){oc.syncOrAsync([er,Je],{title:hr,subtitle:Ar})}function er(hr){var Ar=hr.title,Qe=hr.subtitle,mr;!f&&K&&(f={}),f?(mr="",f.rotate&&(mr+="rotate("+[f.rotate,u.x,u.y]+")"),(f.offset||K)&&(mr+=vD(0,(f.offset||0)-(K||0)))):mr=null,Ar.attr("transform",mr);function qr(Ce){if(Ce){var He=Z1.select(Ce.node().parentNode).select("."+be);if(!He.empty()){var cr=Ce.node().getBBox();if(cr.height){var Mr=cr.y+cr.height+U6*ae;He.attr("y",Mr)}}}}if(Ar.style("opacity",h*am.opacity(x)).call(tm.font,{color:am.rgb(x),size:Z1.round(C,2),family:y,weight:_,style:A,variant:k,textcase:M,shadow:P,lineposition:E}).attr(u).call($1.convertToTspans,e,qr),Qe&&!Qe.empty()){var Te=c.select("."+r+"-math-group"),Ue=Ar.node().getBBox(),_r=Te.node()?Te.node().getBBox():void 0,Pr=_r?_r.y+_r.height+U6*ae:Ue.y+Ue.height+G6*ae,Nr=oc.extendFlat({},u,{y:Pr});Qe.attr("transform",mr),Qe.style("opacity",Q*am.opacity(ie)).call(tm.font,{color:am.rgb(ie),size:Z1.round(ae,2),family:re,weight:le,style:xe,variant:De,textcase:Ye,shadow:ke,lineposition:Ee}).attr(Nr).call($1.convertToTspans,e)}return rae.previousPromises(e)}function Je(hr){var Ar=hr.title,Qe=Z1.select(Ar.node().parentNode);if(s&&s.selection&&s.side&&p){Qe.attr("transform",null);var mr=tae[s.side],qr=s.side==="left"||s.side==="top"?-1:1,Te=eae(s.pad)?s.pad:2,Ue=tm.bBox(Qe.node()),_r={t:0,b:0,l:0,r:0},Pr=e._fullLayout._reservedMargin;for(var Nr in Pr)for(var Ce in Pr[Nr]){var He=Pr[Nr][Ce];_r[Ce]=Math.max(_r[Ce],He)}var cr={left:_r.l,top:_r.t,right:a.width-_r.r,bottom:a.height-_r.b},Mr=s.maxShift||qr*(cr[s.side]-Ue[s.side]),vr=0;if(Mr<0)vr=Mr;else{var kr=s.offsetLeft||0,Er=s.offsetTop||0;Ue.left-=kr,Ue.right-=kr,Ue.top-=Er,Ue.bottom-=Er,s.selection.each(function(){var et=tm.bBox(this);oc.bBoxIntersect(Ue,et,Te)&&(vr=Math.max(vr,qr*(et[s.side]-Ue[mr])+Te))}),vr=Math.min(Mr,vr),n._titleScoot=Math.abs(vr)}if(vr>0||Mr<0){var jr={left:[-vr,0],right:[vr,0],top:[0,-vr],bottom:[0,vr]}[s.side];Qe.attr("transform",vD(jr[0],jr[1]))}}}J.call(Ze,fe);function tr(hr,Ar){hr.text(Ar).on("mouseover.opacity",function(){Z1.select(this).transition().duration(hD.SHOW_PLACEHOLDER).style("opacity",1)}).on("mouseout.opacity",function(){Z1.select(this).transition().duration(hD.HIDE_PLACEHOLDER).style("opacity",0)})}if(W&&(p?J.on(".opacity",null):(tr(J,o),m=!0),J.call($1.makeEditable,{gd:e}).on("edit",function(hr){l!==void 0?O6.call("_guiRestyle",e,i,hr,l):O6.call("_guiRelayout",e,i,hr)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(Ze)}).on("input",function(hr){this.text(hr||" ").call($1.positionText,u.x,u.y)}),I)){if(I&&!p){var ze=J.node().getBBox(),lr=ze.y+ze.height+G6*ae;fe.attr("y",lr)}X?fe.on(".opacity",null):(tr(fe,V),N=!0),fe.call($1.makeEditable,{gd:e}).on("edit",function(hr){O6.call("_guiRelayout",e,"title.subtitle.text",hr)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(Ze)}).on("input",function(hr){this.text(hr||" ").call($1.positionText,fe.attr("x"),fe.attr("y"))})}return J.classed("js-placeholder",m),fe&&!fe.empty()&&fe.classed("js-placeholder",N),c}pD.exports={draw:aae,SUBTITLE_PADDING_EM:G6,SUBTITLE_PADDING_MATHJAX_EM:U6}});var cm=oe((Z6e,_D)=>{"use strict";var nae=Lt(),iae=h1().utcFormat,Ma=pr(),oae=Ma.numberFormat,qs=Qt(),E0=Ma.cleanNumber,lae=Ma.ms2DateTime,mD=Ma.dateTime2ms,Ps=Ma.ensureNumber,gD=Ma.isArrayOrTypedArray,L0=(Za(),xr(nn)),nm=L0.FP_SAFE,Xl=L0.BADNUM,sae=L0.LOG_CLIP,uae=L0.ONEWEEK,im=L0.ONEDAY,om=L0.ONEHOUR,yD=L0.ONEMIN,bD=L0.ONESEC,lm=En(),fm=(Hn(),xr(In)),sm=fm.HOUR_PATTERN,um=fm.WEEKDAY_PATTERN;function Uv(e){return Math.pow(10,e)}function Y6(e){return e!=null}_D.exports=function(r,t){t=t||{};var a=r._id||"x",n=a.charAt(0);function i(_,A){if(_>0)return Math.log(_)/Math.LN10;if(_<=0&&A&&r.range&&r.range.length===2){var k=r.range[0],M=r.range[1];return .5*(k+M-2*sae*Math.abs(k-M))}else return Xl}function o(_,A,k,M){if((M||{}).msUTC&&qs(_))return+_;var E=mD(_,k||r.calendar);if(E===Xl)if(qs(_)){_=+_;var P=Math.floor(Ma.mod(_+.05,1)*10),z=Math.round(_-P/10);E=mD(new Date(z))+P/10}else return Xl;return E}function l(_,A,k){return lae(_,A,k||r.calendar)}function s(_){return r._categories[Math.round(_)]}function u(_){if(Y6(_)){if(r._categoriesMap===void 0&&(r._categoriesMap={}),r._categoriesMap[_]!==void 0)return r._categoriesMap[_];r._categories.push(typeof _=="number"?String(_):_);var A=r._categories.length-1;return r._categoriesMap[_]=A,A}return Xl}function f(_,A){for(var k=new Array(A),M=0;Mr.range[1]&&(k=!k);for(var M=k?-1:1,E=M*_,P=0,z=0;zV)P=z+1;else{P=E<(I+V)/2?z:z+1;break}}var H=r._B[P]||0;return isFinite(H)?p(_,r._m2,H):0},y=function(_){var A=r._rangebreaks.length;if(!A)return m(_,r._m,r._b);for(var k=0,M=0;Mr._rangebreaks[M].pmax&&(k=M+1);return m(_,r._m2,r._B[k])}}r.c2l=r.type==="log"?i:Ps,r.l2c=r.type==="log"?Uv:Ps,r.l2p=b,r.p2l=y,r.c2p=r.type==="log"?function(_,A){return b(i(_,A))}:b,r.p2c=r.type==="log"?function(_){return Uv(y(_))}:y,["linear","-"].indexOf(r.type)!==-1?(r.d2r=r.r2d=r.d2c=r.r2c=r.d2l=r.r2l=E0,r.c2d=r.c2r=r.l2d=r.l2r=Ps,r.d2p=r.r2p=function(_){return r.l2p(E0(_))},r.p2d=r.p2r=y,r.cleanPos=Ps):r.type==="log"?(r.d2r=r.d2l=function(_,A){return i(E0(_),A)},r.r2d=r.r2c=function(_){return Uv(E0(_))},r.d2c=r.r2l=E0,r.c2d=r.l2r=Ps,r.c2r=i,r.l2d=Uv,r.d2p=function(_,A){return r.l2p(r.d2r(_,A))},r.p2d=function(_){return Uv(y(_))},r.r2p=function(_){return r.l2p(E0(_))},r.p2r=y,r.cleanPos=Ps):r.type==="date"?(r.d2r=r.r2d=Ma.identity,r.d2c=r.r2c=r.d2l=r.r2l=o,r.c2d=r.c2r=r.l2d=r.l2r=l,r.d2p=r.r2p=function(_,A,k){return r.l2p(o(_,0,k))},r.p2d=r.p2r=function(_,A,k){return l(y(_),A,k)},r.cleanPos=function(_){return Ma.cleanDate(_,Xl,r.calendar)}):r.type==="category"?(r.d2c=r.d2l=u,r.r2d=r.c2d=r.l2d=s,r.d2r=r.d2l_noadd=h,r.r2c=function(_){var A=d(_);return A!==void 0?A:r.fraction2r(.5)},r.l2r=r.c2r=Ps,r.r2l=d,r.d2p=function(_){return r.l2p(r.r2c(_))},r.p2d=function(_){return s(y(_))},r.r2p=r.d2p,r.p2r=y,r.cleanPos=function(_){return typeof _=="string"&&_!==""?_:Ps(_)}):r.type==="multicategory"&&(r.r2d=r.c2d=r.l2d=s,r.d2r=r.d2l_noadd=h,r.r2c=function(_){var A=h(_);return A!==void 0?A:r.fraction2r(.5)},r.r2c_just_indices=c,r.l2r=r.c2r=Ps,r.r2l=h,r.d2p=function(_){return r.l2p(r.r2c(_))},r.p2d=function(_){return s(y(_))},r.r2p=r.d2p,r.p2r=y,r.cleanPos=function(_){return Array.isArray(_)||typeof _=="string"&&_!==""?_:Ps(_)},r.setupMultiCategory=function(_){var A=r._traceIndices,k,M,E=r._matchGroup;if(E&&r._categories.length===0){for(var P in E)if(P!==a){var z=t[lm.id2name(P)];A=A.concat(z._traceIndices)}}var I=[[0,{}],[0,{}]],V=[];for(k=0;kz[1]&&(M[P?0:1]=k,E[1]=z[1]),E[0]>=E[1])if(A!==void 0){var I=z[0]+1;k!==void 0&&(I=Math.min(I,z[1])),M[P?0:1]=r.l2r(I)}else k!==void 0&&(M[P?1:0]=r.l2r(z[1]-1))}},r.cleanRange=function(_,A){r._cleanRange(_,A),r.limitRange(_)},r._cleanRange=function(_,A){A||(A={}),_||(_="range");var k=Ma.nestedProperty(r,_).get(),M,E;if(r.type==="date"?E=Ma.dfltRange(r.calendar):n==="y"?E=fm.DFLTRANGEY:r._name==="realaxis"?E=[0,1]:E=A.dfltRange||fm.DFLTRANGEX,E=E.slice(),(r.rangemode==="tozero"||r.rangemode==="nonnegative")&&(E[0]=0),!k||k.length!==2){Ma.nestedProperty(r,_).set(E);return}var P=k[0]===null,z=k[1]===null;for(r.type==="date"&&!r.autorange&&(k[0]=Ma.cleanDate(k[0],Xl,r.calendar),k[1]=Ma.cleanDate(k[1],Xl,r.calendar)),M=0;M<2;M++)if(r.type==="date"){if(!Ma.isDateTime(k[M],r.calendar)){r[_]=E;break}if(r.r2l(k[0])===r.r2l(k[1])){var I=Ma.constrain(r.r2l(k[0]),Ma.MIN_MS+1e3,Ma.MAX_MS-1e3);k[0]=r.l2r(I-1e3),k[1]=r.l2r(I+1e3);break}}else{if(!qs(k[M]))if(!(P||z)&&qs(k[1-M]))k[M]=k[1-M]*(M?10:.1);else{r[_]=E;break}if(k[M]<-nm?k[M]=-nm:k[M]>nm&&(k[M]=nm),k[0]===k[1]){var V=Math.max(1,Math.abs(k[0]*1e-6));k[0]-=V,k[1]+=V}}},r.setScale=function(_){var A=t._size;if(r.overlaying){var k=lm.getFromId({_fullLayout:t},r.overlaying);r.domain=k.domain}var M=_&&r._r?"_r":"range",E=r.calendar;r.cleanRange(M);var P=r.r2l(r[M][0],E),z=r.r2l(r[M][1],E),I=n==="y";if(I?(r._offset=A.t+(1-r.domain[1])*A.h,r._length=A.h*(r.domain[1]-r.domain[0]),r._m=r._length/(P-z),r._b=-r._m*z):(r._offset=A.l+r.domain[0]*A.w,r._length=A.w*(r.domain[1]-r.domain[0]),r._m=r._length/(z-P),r._b=-r._m*P),r._rangebreaks=[],r._lBreaks=0,r._m2=0,r._B=[],r.rangebreaks){var V,H;if(r._rangebreaks=r.locateBreaks(Math.min(P,z),Math.max(P,z)),r._rangebreaks.length){for(V=0;Vz&&(X=!X),X&&r._rangebreaks.reverse();var N=X?-1:1;for(r._m2=N*r._length/(Math.abs(z-P)-r._lBreaks),r._B.push(-r._m2*(I?z:P)),V=0;VE&&(E+=7,PE&&(E+=24,P=M&&P=M&&_=ke.min&&(xeke.max&&(ke.max=De),Ye=!1)}Ye&&z.push({min:xe,max:De})}};for(k=0;k{"use strict";var xD=Qt(),V6=pr(),fae=(Za(),xr(nn)).BADNUM,vm=V6.isArrayOrTypedArray,cae=V6.isDateTime,vae=V6.cleanNumber,wD=Math.round;MD.exports=function(r,t,a){var n=r,i=a.noMultiCategory;if(vm(n)&&!n.length)return"-";if(!i&&gae(n))return"multicategory";if(i&&Array.isArray(n[0])){for(var o=[],l=0;li*2}function AD(e){return Math.max(1,(e-1)/1e3)}function mae(e,r){for(var t=e.length,a=AD(t),n=0,i=0,o={},l=0;ln*2}function gae(e){return vm(e[0])&&vm(e[1])}});var P0=oe((J6e,LD)=>{"use strict";var yae=Lt(),SD=Qt(),q0=pr(),hm=(Za(),xr(nn)).FP_SAFE,bae=_t(),_ae=ha(),DD=En(),xae=DD.getFromId,wae=DD.isLinked;LD.exports={applyAutorangeOptions:ED,getAutoRange:j6,makePadFn:W6,doAutoRange:Mae,findExtremes:Tae,concatExtremes:J6};function j6(e,r){var t,a,n=[],i=e._fullLayout,o=W6(i,r,0),l=W6(i,r,1),s=J6(e,r),u=s.min,f=s.max;if(u.length===0||f.length===0)return q0.simpleMap(r.range,r.r2l);var c=u[0].val,h=f[0].val;for(t=1;t0&&(z=x-o(k)-l(M),z>_?I/z>A&&(E=k,P=M,A=I/z):I/x>A&&(E={val:k.val,nopad:1},P={val:M.val,nopad:1},A=I/x));function V(ee,re){return Math.max(ee,l(re))}if(c===h){var H=c-1,X=c+1;if(y)if(c===0)n=[0,1];else{var N=(c>0?f:u).reduce(V,0),Q=c/(1-Math.min(.5,N/x));n=c>0?[0,Q]:[Q,0]}else C?n=[Math.max(0,H),Math.max(1,X)]:n=[H,X]}else y?(E.val>=0&&(E={val:0,nopad:1}),P.val<=0&&(P={val:0,nopad:1})):C&&(E.val-A*o(E)<0&&(E={val:0,nopad:1}),P.val<=0&&(P={val:1,nopad:1})),A=(P.val-E.val-TD(r,k.val,M.val))/(x-o(E)-l(P)),n=[E.val-A*o(E),P.val+A*l(P)];return n=ED(n,r),r.limitRange&&r.limitRange(),p&&n.reverse(),q0.simpleMap(n,r.l2r||Number)}function TD(e,r,t){var a=0;if(e.rangebreaks)for(var n=e.locateBreaks(r,t),i=0;i0?t.ppadplus:t.ppadminus)||t.ppad||0),k=_((e._m>0?t.ppadminus:t.ppadplus)||t.ppad||0),M=_(t.vpadplus||t.vpad),E=_(t.vpadminus||t.vpad);if(!u){if(C=1/0,x=-1/0,s)for(c=0;c0&&(C=h),h>x&&h-hm&&(C=h),h>x&&h=I;c--)z(c);return{min:a,max:n,opts:t}}function Z6(e,r,t,a){FD(e,r,t,a,kae)}function $6(e,r,t,a){FD(e,r,t,a,Cae)}function FD(e,r,t,a,n){for(var i=a.tozero,o=a.extrapad,l=!0,s=0;s=t&&(u.extrapad||!o)){l=!1;break}else n(r,u.val)&&u.pad<=t&&(o||!u.extrapad)&&(e.splice(s,1),s--)}if(l){var f=i&&r===0;e.push({val:r,pad:f?0:t,extrapad:f?!1:o})}}function CD(e){return SD(e)&&Math.abs(e)=r}function Sae(e,r){var t=r.autorangeoptions;return t&&t.minallowed!==void 0&&dm(r,t.minallowed,t.maxallowed)?t.minallowed:t&&t.clipmin!==void 0&&dm(r,t.clipmin,t.clipmax)?Math.max(e,r.d2l(t.clipmin)):e}function Dae(e,r){var t=r.autorangeoptions;return t&&t.maxallowed!==void 0&&dm(r,t.minallowed,t.maxallowed)?t.maxallowed:t&&t.clipmax!==void 0&&dm(r,t.clipmin,t.clipmax)?Math.min(e,r.d2l(t.clipmax)):e}function dm(e,r,t){return r!==void 0&&t!==void 0?(r=e.d2l(r),t=e.d2l(t),r=s&&(i=s,t=s),o<=s&&(o=s,a=s)}}return t=Sae(t,r),a=Dae(a,r),[t,a]}});var Ga=oe((Q6e,eF)=>{"use strict";var Qo=Lt(),bn=Qt(),J1=Ln(),Yv=_t(),dt=pr(),K1=dt.strTranslate,lc=vi(),Fae=Ov(),Vv=Nt(),To=ha(),Eae=Yl(),qD=m6(),K6e=(Hn(),xr(In)),ii=(Za(),xr(nn)),Lae=ii.ONEMAXYEAR,gm=ii.ONEAVGYEAR,ym=ii.ONEMINYEAR,qae=ii.ONEMAXQUARTER,rb=ii.ONEAVGQUARTER,bm=ii.ONEMINQUARTER,Pae=ii.ONEMAXMONTH,Q1=ii.ONEAVGMONTH,_m=ii.ONEMINMONTH,ko=ii.ONEWEEK,ki=ii.ONEDAY,R0=ki/2,zs=ii.ONEHOUR,Xv=ii.ONEMIN,xm=ii.ONESEC,Rae=ii.ONEMILLI,zae=ii.ONEMICROSEC,sc=ii.MINUS_SIGN,Am=ii.BADNUM,tb={K:"zeroline"},ab={K:"gridline",L:"path"},nb={K:"minor-gridline",L:"path"},YD={K:"tick",L:"path"},PD={K:"tick",L:"text"},RD={width:["x","r","l","xl","xr"],height:["y","t","b","yt","yb"],right:["r","xr"],left:["l","xl"],top:["t","yt"],bottom:["b","yb"]},Mm=(ci(),xr(fi)),Gv=Mm.MID_SHIFT,uc=Mm.CAP_SHIFT,jv=Mm.LINE_SPACING,Nae=Mm.OPPOSITE_SIDE,wm=3,yr=eF.exports={};yr.setConvert=cm();var Bae=X6(),Ns=En(),Iae=Ns.idSort,Hae=Ns.isLinked;yr.id2name=Ns.id2name;yr.name2id=Ns.name2id;yr.cleanId=Ns.cleanId;yr.list=Ns.list;yr.listIds=Ns.listIds;yr.getFromId=Ns.getFromId;yr.getFromTrace=Ns.getFromTrace;var VD=P0();yr.getAutoRange=VD.getAutoRange;yr.findExtremes=VD.findExtremes;var Oae=1e-4;function sb(e){var r=(e[1]-e[0])*Oae;return[e[0]-r,e[1]+r]}function Uae(e,r,t){if(![t,e,r].every(bn)||t===0)return e;let a=Math.round((e-r)/t),n=r+a*t;return e!==n&&Math.abs(e-n)h+" domain")),s=s.concat(i||[]),f.length>o?(dt.warn("Array attribute "+u+" has more entries than expected, truncating to "+o),f=f.slice(0,o)):f.length2e-6||((t-e._forceTick0)/e._minDtick%1+1.000001)%1>2e-6)&&(e._minDtick=0))};yr.saveRangeInitial=function(e,r){for(var t=yr.list(e,"",!0),a=!1,n=0;nc*.3||u(a)||u(n))){var h=t.dtick/2;e+=e+ho){var l=Number(t.slice(1));i.exactYears>o&&l%12===0?e=yr.tickIncrement(e,"M6","reverse")+ki*1.5:i.exactMonths>o?e=yr.tickIncrement(e,"M1","reverse")+ki*15.5:e-=R0;var s=yr.tickIncrement(e,t);if(s<=a)return s}return e}yr.prepMinorTicks=function(e,r,t){var c,h;if(!((c=r.minor)!=null&&c.dtick)){delete e.dtick;var a=r.dtick&&bn(r._tmin),n;if(a){var i=yr.tickIncrement(r._tmin,r.dtick,!0);n=[r._tmin,i*.99+r._tmin*.01]}else{var o=dt.simpleMap(r.range,r.r2l);n=[o[0],.8*o[0]+.2*o[1]]}if(e.range=dt.simpleMap(n,r.l2r),e._isMinor=!0,yr.prepTicks(e,t),a){var l=bn(r.dtick),s=bn(e.dtick),u=l?r.dtick:+r.dtick.substring(1),f=s?e.dtick:+e.dtick.substring(1);l&&s?K6(u,f)?u===2*ko&&f===2*ki&&(e.dtick=ko):u===2*ko&&f===3*ki?e.dtick=ko:u===ko&&!(r._input.minor||{}).nticks?e.dtick=ki:BD(u/f,2.5)?e.dtick=u/2:e.dtick=u:String(r.dtick).charAt(0)==="M"?s?e.dtick="M1":K6(u,f)?u>=12&&f===2&&(e.dtick="M3"):e.dtick=r.dtick:String(e.dtick).charAt(0)==="L"?String(r.dtick).charAt(0)==="L"?K6(u,f)||(e.dtick=BD(u/f,2.5)?r.dtick/2:r.dtick):e.dtick="D1":e.dtick==="D2"&&+r.dtick>1&&(e.dtick=1)}e.range=r.range}((h=r.minor)==null?void 0:h._tick0Init)===void 0&&(e.tick0=r.tick0),r._useTicklabelIndex&&(ub(e),r.minor._tickround=e._tickround)};function K6(e,r){return Math.abs((e/r+.5)%1-.5)<.001}function BD(e,r){return Math.abs(e/r-1)<.001}yr.prepTicks=function(e,r){var t=dt.simpleMap(e.range,e.r2l,void 0,void 0,r);if(e.tickmode==="auto"||!e.dtick){var a=e.nticks,n;a||(e.type==="category"||e.type==="multicategory"?(n=e.tickfont?dt.bigFont(e.tickfont.size||12):15,a=e._length/n):(n=e._id.charAt(0)==="y"?40:80,a=dt.constrain(e._length/n,4,9)+1),e._name==="radialaxis"&&(a*=2)),e.minor&&e.minor.tickmode!=="array"||e.tickmode==="array"&&(a*=100),e._roughDTick=Math.abs(t[1]-t[0])/a,yr.autoTicks(e,e._roughDTick),e._minDtick>0&&e.dtick0?(l=a-1,s=a):(l=a,s=a),i=e[l].value,o=e[s].value}var u=Math.abs(o-i),f=t||u,c=0;e[a].periodEndTick!=null?c=u:f>=ym?u>=ym&&u<=Lae?c=u:c=gm:t===rb&&f>=bm?u>=bm&&u<=qae?c=u:c=rb:f>=_m?u>=_m&&u<=Pae?c=u:c=Q1:t===ko&&f>=ko?c=ko:f>=ki?c=ki:t===R0&&f>=R0?c=R0:t===zs&&f>=zs&&(c=zs);var h;c>=u&&(c=u,h=!0);var d=n+c;if(r.rangebreaks&&c>0){for(var p=84,m=0,b=0;bko&&(c=u)}(c>0||a===0)&&(e[a].periodX=n+c/2)}}yr.calcTicks=function(r,t){var a=r.type,n=r.calendar,i=r.ticklabelstep,o=r.ticklabelmode==="period",l=r.range[0]>r.range[1],s=!r.ticklabelindex||dt.isArrayOrTypedArray(r.ticklabelindex)?r.ticklabelindex:[r.ticklabelindex];r._useTicklabelIndex=s!=null&&s!==0;for(var u=dt.simpleMap(r.range,r.r2l,void 0,void 0,t),f=u[1]=(_?0:1);A--){var k=!A;A?(r._dtickInit=r.dtick,r._tick0Init=r.tick0):_&&(r.minor._dtickInit=r.minor.dtick,r.minor._tick0Init=r.minor.tick0);var M=A?r:dt.extendFlat({},r,_?r.minor:{minor:{}});if(k?yr.prepMinorTicks(M,r,t):yr.prepTicks(M,t),M.tickmode==="array"){A?(b=[],p=ID(r,!k)):(y=[],m=ID(r,!k));continue}if(M.tickmode==="sync"){b=[],p=Wae(r);continue}var E=sb(u),P=E[0],z=E[1],I=bn(M.dtick),V=a==="log"&&!(I||M.dtick.charAt(0)==="L"),H=yr.tickFirst(M,t);if(A){if(r._tmin=H,H=z:N<=z;N=yr.tickIncrement(N,re,f,n)){if(A&&Q++,M.rangebreaks&&!f){if(N=h)break}if(b.length>d||N===X)break;X=N;var ie={value:Uae(N,ae,re)};A?(N===H&&(ie.first=!0),V&&N!==(N|0)&&(ie.simpleLabel=!0),i>1&&Q%i&&(ie.skipLabel=!0),b.push(ie)):(ie.minor=!0,y.push(ie))}}function le(Ze,er){let Je=er.find(ze=>ze.value===Ze.value);if(Je!=null)return Je;let tr=1e7;for(let ze=0;zele(Je,b)==null),er=b.concat(Ze).sort((Je,tr)=>Je.value-tr.value);o&&b.length&&(b[0].skipLabel=!0),b.forEach(function(Je){Je.skipLabel||(s.forEach(tr=>{if(tr<0){let ze=er.filter(Ar=>Ar.value<=Je.value),lr=Math.abs(tr),hr=ze.length-lr-1;if(lrlr.value>=Je.value);if(trJe.skipLabel=!1)}if(x){var xe=r.minor.ticks==="inside"&&r.ticks==="outside"||r.minor.ticks==="outside"&&r.ticks==="inside";if(!xe){for(var De=[],Ye=0;Ye-1;Ee--){if(b[Ee].drop){b.splice(Ee,1);continue}b[Ee].value=eb(b[Ee].value,r);var se=r.c2p(b[Ee].value);(ke?W>se-je:Wh||trh&&(Je.periodX=h),trn&&pn&&bgm)r/=gm,a=n(10),e.dtick="M"+12*Rs(r,a,pm);else if(i>Q1)r/=Q1,e.dtick="M"+Rs(r,1,HD);else if(i>ki){if(e.dtick=Rs(r,ki,e._hasDayOfWeekBreaks?[1,2,7,14]:Zae),!t){var o=yr.getTickFormat(e),l=e.ticklabelmode==="period";l&&(e._rawTick0=e.tick0),/%[uVW]/.test(o)?e.tick0=dt.dateTick0(e.calendar,2):e.tick0=dt.dateTick0(e.calendar,1),l&&(e._dowTick0=e.tick0)}}else i>zs?e.dtick=Rs(r,zs,HD):i>Xv?e.dtick=Rs(r,Xv,OD):i>xm?e.dtick=Rs(r,xm,OD):(a=n(10),e.dtick=Rs(r,a,pm))}else if(e.type==="log"){e.tick0=0;var s=dt.simpleMap(e.range,e.r2l);if(e._isMinor&&(r*=1.5),r>.7)e.dtick=Math.ceil(r);else if(Math.abs(s[1]-s[0])<1){var u=1.5*Math.abs((s[1]-s[0])/r);r=Math.abs(Math.pow(10,s[1])-Math.pow(10,s[0]))/u,a=n(10),e.dtick="L"+Rs(r,a,pm)}else e.dtick=r>.3?"D2":"D1"}else e.type==="category"||e.type==="multicategory"?(e.tick0=0,e.dtick=Math.ceil(Math.max(r,1))):hb(e)?(e.tick0=0,a=1,e.dtick=Rs(r,a,$ae)):(e.tick0=0,a=n(10),e.dtick=Rs(r,a,pm));if(e.dtick===0&&(e.dtick=1),!bn(e.dtick)&&typeof e.dtick!="string"){var f=e.dtick;throw e.dtick=1,"ax.dtick error: "+String(f)}};function ub(e){var r=e.dtick;if(e._tickexponent=0,!bn(r)&&typeof r!="string"&&(r=1),(e.type==="category"||e.type==="multicategory")&&(e._tickround=null),e.type==="date"){var t=e.r2l(e.tick0),a=e.l2r(t).replace(/(^-|i)/g,""),n=a.length;if(String(r).charAt(0)==="M")n>10||a.slice(5)!=="01-01"?e._tickround="d":e._tickround=+r.slice(1)%12===0?"y":"m";else if(r>=ki&&n<=10||r>=ki*15)e._tickround="d";else if(r>=Xv&&n<=16||r>=zs)e._tickround="M";else if(r>=xm&&n<=19||r>=Xv)e._tickround="S";else{var i=e.l2r(t+r).replace(/^-/,"").length;e._tickround=Math.max(n,i)-20,e._tickround<0&&(e._tickround=4)}}else if(bn(r)||r.charAt(0)==="L"){var o=e.range.map(e.r2d||Number);bn(r)||(r=Number(r.slice(1))),e._tickround=2-Math.floor(Math.log(r)/Math.LN10+.01);var l=Math.max(Math.abs(o[0]),Math.abs(o[1])),s=Math.floor(Math.log(l)/Math.LN10+.01),u=e.minexponent===void 0?3:e.minexponent;Math.abs(s)>u&&(e2(e.exponentformat)&&e.exponentformat!=="SI extended"&&!fb(s)||e2(e.exponentformat)&&e.exponentformat==="SI extended"&&!cb(s)?e._tickexponent=3*Math.round((s-1)/3):e._tickexponent=s)}else e._tickround=null}yr.tickIncrement=function(e,r,t,a){var n=t?-1:1;if(bn(r))return dt.increment(e,n*r);var i=r.charAt(0),o=n*Number(r.slice(1));if(i==="M")return dt.incrementMonth(e,o,a);if(i==="L")return Math.log(Math.pow(10,e)+o)/Math.LN10;if(i==="D"){var l=r==="D2"?WD:jD,s=e+n*.01,u=dt.roundUp(dt.mod(s,1),l,t);return Math.floor(s)+Math.log(Qo.round(Math.pow(10,u),1))/Math.LN10}throw"unrecognized dtick "+String(r)};yr.tickFirst=function(e,r){var t=e.r2l||Number,a=dt.simpleMap(e.range,t,void 0,void 0,r),n=a[1]=0&&_<=e._length?x:null};if(s&&dt.isArrayOrTypedArray(e.ticktext)){var p=dt.simpleMap(e.range,e.r2l),m=(Math.abs(p[1]-p[0])-(e._lBreaks||0))/1e4;for(h=0;h"+l;else{var u=Zv(e),f=e._trueSide||e.side;(!u&&f==="top"||u&&f==="bottom")&&(o+="
")}r.text=o}function Kae(e,r,t,a,n){var i=e.dtick,o=r.x,l=e.tickformat,s=typeof i=="string"&&i.charAt(0);if(n==="never"&&(n=""),a&&s!=="L"&&(i="L3",s="L"),l||s==="L")r.text=Wv(Math.pow(10,o),e,n,a);else if(bn(i)||s==="D"&&(e.minorloglabels==="complete"||dt.mod(o+.01,1)<.1)){var u;e.minorloglabels==="complete"&&!(dt.mod(o+.01,1)<.1)&&(u=!0,r.fontSize*=.75);var f=Math.pow(10,o).toExponential(0),c=f.split("e"),h=+c[1],d=Math.abs(h),p=e.exponentformat;p==="power"||e2(p)&&p!=="SI extended"&&fb(h)||e2(p)&&p==="SI extended"&&cb(h)?(r.text=c[0],d>0&&(r.text+="x10"),r.text==="1x10"&&(r.text="10"),h!==0&&h!==1&&(r.text+=""+(h>0?"":sc)+d+""),r.fontSize*=1.25):(p==="e"||p==="E")&&d>2?r.text=c[0]+p+(h>0?"+":sc)+d:(r.text=Wv(Math.pow(10,o),e,"","fakehover"),i==="D1"&&e._id.charAt(0)==="y"&&(r.dy-=r.fontSize/6))}else if(s==="D")r.text=e.minorloglabels==="none"?"":String(Math.round(Math.pow(10,dt.mod(o,1)))),r.fontSize*=.75;else throw"unrecognized dtick "+String(i);if(e.dtick==="D1"){var m=String(r.text).charAt(0);(m==="0"||m==="1")&&(e._id.charAt(0)==="y"?r.dx-=r.fontSize/4:(r.dy+=r.fontSize/2,r.dx+=(e.range[1]>e.range[0]?1:-1)*r.fontSize*(o<0?.5:.25)))}}function Qae(e,r){var t=e._categories[Math.round(r.x)];t===void 0&&(t=""),r.text=String(t)}function ene(e,r,t){var a=Math.round(r.x),n=e._categories[a]||[],i=n[1]===void 0?"":String(n[1]),o=n[0]===void 0?"":String(n[0]);t?r.text=o+" - "+i:(r.text=i,r.text2=o)}function rne(e,r,t,a,n){n==="never"?n="":e.showexponent==="all"&&Math.abs(r.x/e.dtick)<1e-6&&(n="hide"),r.text=Wv(r.x,e,n,a)}function tne(e,r,t,a,n){if(e.thetaunit==="radians"&&!t){var i=r.x/180;if(i===0)r.text="0";else{var o=ane(i);if(o[1]>=100)r.text=Wv(dt.deg2rad(r.x),e,n,a);else{var l=r.x<0;o[1]===1?o[0]===1?r.text="\u03C0":r.text=o[0]+"\u03C0":r.text=["",o[0],"","\u2044","",o[1],"","\u03C0"].join(""),l&&(r.text=sc+r.text)}}}else r.text=Wv(r.x,e,n,a)}function ane(e){function r(l,s){return Math.abs(l-s)<=1e-6}function t(l,s){return r(s,0)?l:t(s,l%s)}function a(l){for(var s=1;!r(Math.round(l*s)/s,l);)s*=10;return s}var n=a(e),i=e*n,o=Math.abs(t(i,n));return[Math.round(i/o),Math.round(n/o)]}var $D=["f","p","n","\u03BC","m","","k","M","G","T"],nne=["q","r","y","z","a",...$D,"P","E","Z","Y","R","Q"],e2=e=>["SI","SI extended","B"].includes(e);function fb(e){return e>14||e<-15}function cb(e){return e>32||e<-30}function ine(e,r){return e2(r)?!!(r==="SI extended"&&cb(e)||r!=="SI extended"&&fb(e)):!1}function Wv(e,r,t,a){var n=e<0,i=r._tickround,o=t||r.exponentformat||"B",l=r._tickexponent,s=yr.getTickFormat(r),u=r.separatethousands;if(a){var f={exponentformat:o,minexponent:r.minexponent,dtick:r.showexponent==="none"?r.dtick:bn(e)&&Math.abs(e)||1,range:r.showexponent==="none"?r.range.map(r.r2d):[0,e||1]};ub(f),i=(Number(f._tickround)||0)+4,l=f._tickexponent,r.hoverformat&&(s=r.hoverformat)}if(s)return r._numFormat(s)(e).replace(/-/g,sc);o==="none"&&(l=0),e=Math.abs(e);let c=Math.pow(10,-i)/2;if(e"+h+"":o==="B"&&l===9?e+="B":e2(o)&&(e+=o==="SI extended"?nne[l/3+10]:$D[l/3+5])}return n?sc+e:e}yr.getTickFormat=function(e){var r;function t(s){return typeof s!="string"?s:Number(s.replace("M",""))*Q1}function a(s,u){var f=["L","D"];if(typeof s==typeof u){if(typeof s=="number")return s-u;var c=f.indexOf(s.charAt(0)),h=f.indexOf(u.charAt(0));return c===h?Number(s.replace(/(L|D)/g,""))-Number(u.replace(/(L|D)/g,"")):c-h}else return typeof s=="number"?1:-1}function n(s,u,f){var c=f||function(p){return p},h=u[0],d=u[1];return(!h&&typeof h!="number"||c(h)<=c(s))&&(!d&&typeof d!="number"||c(d)>=c(s))}function i(s,u){var f=u[0]===null,c=u[1]===null,h=a(s,u[0])>=0,d=a(s,u[1])<=0;return(f||h)&&(c||d)}var o,l;if(e.tickformatstops&&e.tickformatstops.length>0)switch(e.type){case"date":case"linear":{for(r=0;r=0&&n.unshift(n.splice(f,1).shift())}});var l={false:{left:0,right:0}};return dt.syncOrAsync(n.map(function(s){return function(){if(s){var u=yr.getFromId(e,s);t||(t={}),t.axShifts=l,t.overlayingShiftedAx=o;var f=yr.drawOne(e,u,t);return u._shiftPusher&&lb(u,u._fullDepth||0,l,!0),u._r=u.range.slice(),u._rl=dt.simpleMap(u._r,u.r2l),f}}}))};yr.drawOne=function(e,r,t){t=t||{};var a=t.axShifts||{},n=t.overlayingShiftedAx||[],i,o,l;r.setScale();var s=e._fullLayout,u=r._id,f=u.charAt(0),c=yr.counterLetter(u),h=s._plots[r._mainSubplot],d=r.zerolinelayer==="above traces";if(!h)return;if(r._shiftPusher=r.autoshift||n.indexOf(r._id)!==-1||n.indexOf(r.overlaying)!==-1,r._shiftPusher&r.anchor==="free"){var p=r.linewidth/2||0;r.ticks==="inside"&&(p+=r.ticklen),lb(r,p,a,!0),lb(r,r.shift||0,a,!1)}(t.skipTitle!==!0||r._shift===void 0)&&(r._shift=yne(r,a));var m=h[f+"axislayer"],b=r._mainLinePosition,y=b+=r._shift,C=r._mainMirrorPosition,x=r._vals=yr.calcTicks(r),_=[r.mirror,y,C].join("_");for(i=0;i0?Qe.bottom-hr:0,Ar))));var Ue=0,_r=0;if(r._shiftPusher&&(Ue=Math.max(Ar,Qe.height>0?ze==="l"?hr-Qe.left:Qe.right-hr:0),r.title.text!==s._dfltTitle[f]&&(_r=(r._titleStandoff||0)+(r._titleScoot||0),ze==="l"&&(_r+=GD(r))),r._fullDepth=Math.max(Ue,_r)),r.automargin){mr={x:0,y:0,r:0,l:0,t:0,b:0};var Pr=[0,1],Nr=typeof r._shift=="number"?r._shift:0;if(f==="x"){if(ze==="b"?mr[ze]=r._depth:(mr[ze]=r._depth=Math.max(Qe.width>0?hr-Qe.top:0,Ar),Pr.reverse()),Qe.width>0){var Ce=Qe.right-(r._offset+r._length);Ce>0&&(mr.xr=1,mr.r=Ce);var He=r._offset-Qe.left;He>0&&(mr.xl=0,mr.l=He)}}else if(ze==="l"?(r._depth=Math.max(Qe.height>0?hr-Qe.left:0,Ar),mr[ze]=r._depth-Nr):(r._depth=Math.max(Qe.height>0?Qe.right-hr:0,Ar),mr[ze]=r._depth+Nr,Pr.reverse()),Qe.height>0){var cr=Qe.bottom-(r._offset+r._length);cr>0&&(mr.yb=0,mr.b=cr);var Mr=r._offset-Qe.top;Mr>0&&(mr.yt=1,mr.t=Mr)}mr[c]=r.anchor==="free"?r.position:r._anchorAxis.domain[Pr[0]],r.title.text!==s._dfltTitle[f]&&(mr[ze]+=GD(r)+(r.title.standoff||0)),r.mirror&&r.anchor!=="free"&&(qr={x:0,y:0,r:0,l:0,t:0,b:0},qr[lr]=r.linewidth,r.mirror&&r.mirror!==!0&&(qr[lr]+=Ar),r.mirror===!0||r.mirror==="ticks"?qr[c]=r._anchorAxis.domain[Pr[1]]:(r.mirror==="all"||r.mirror==="allticks")&&(qr[c]=[r._counterDomainMin,r._counterDomainMax][Pr[1]]))}tr&&(Te=Yv.getComponentMethod("rangeslider","autoMarginOpts")(e,r)),typeof r.automargin=="string"&&(UD(mr,r.automargin),UD(qr,r.automargin)),J1.autoMargin(e,vb(r),mr),J1.autoMargin(e,KD(r),qr),J1.autoMargin(e,QD(r),Te)}),dt.syncOrAsync(er)}};function UD(e,r){if(e){var t=Object.keys(RD).reduce(function(a,n){return r.indexOf(n)!==-1&&RD[n].forEach(function(i){a[i]=1}),a},{});Object.keys(e).forEach(function(a){t[a]||(a.length===1?e[a]=0:delete e[a])})}}function one(e,r){var t=[],a,n=function(i,o){var l=i.xbnd[o];l!==null&&t.push(dt.extendFlat({},i,{x:l}))};if(r.length){for(a=0;ae.range[1],l=e.ticklabelposition&&e.ticklabelposition.indexOf("inside")!==-1,s=!l;if(t){var u=o?-1:1;t=t*u}if(a){var f=e.side,c=l&&(f==="top"||f==="left")||s&&(f==="bottom"||f==="right")?1:-1;a=a*c}return e._id.charAt(0)==="x"?function(h){return K1(n+e._offset+e.l2p(ib(h))+t,i+a)}:function(h){return K1(i+a,n+e._offset+e.l2p(ib(h))+t)}};function ib(e){return e.periodX!==void 0?e.periodX:e.x}function fne(e){var r=e.ticklabelposition||"",t=e.tickson||"",a=function(p){return r.indexOf(p)!==-1},n=a("top"),i=a("left"),o=a("right"),l=a("bottom"),s=a("inside"),u=t!=="boundaries"&&(l||i||n||o);if(!u&&!s)return[0,0];var f=e.side,c=u?(e.tickwidth||0)/2:0,h=wm,d=e.tickfont?e.tickfont.size:12;return(l||n)&&(c+=d*uc,h+=(e.linewidth||0)/2),(i||o)&&(c+=(e.linewidth||0)/2,h+=wm),s&&f==="top"&&(h-=d*(1-uc)),(i||n)&&(c=-c),(f==="bottom"||f==="right")&&(h=-h),[u?c:0,s?h:0]}yr.makeTickPath=function(e,r,t,a){a||(a={});var n=a.minor;if(n&&!e.minor)return"";var i=a.len!==void 0?a.len:n?e.minor.ticklen:e.ticklen,o=e._id.charAt(0),l=(e.linewidth||1)/2;return o==="x"?"M0,"+(r+l*t)+"v"+i*t:"M"+(r+l*t)+",0h"+i*t};yr.makeLabelFns=function(e,r,t){var a=e.ticklabelposition||"",n=e.tickson||"",i=function(H){return a.indexOf(H)!==-1},o=i("top"),l=i("left"),s=i("right"),u=i("bottom"),f=n!=="boundaries"&&(u||l||o||s),c=i("inside"),h=a==="inside"&&e.ticks==="inside"||!c&&e.ticks==="outside"&&n!=="boundaries",d=0,p=0,m=h?e.ticklen:0;if(c?m*=-1:f&&(m=0),h&&(d+=m,t)){var b=dt.deg2rad(t);d=m*Math.cos(b)+1,p=m*Math.sin(b)}e.showticklabels&&(h||e.showline)&&(d+=.2*e.tickfont.size),d+=(e.linewidth||1)/2*(c?-1:1);var y={labelStandoff:d,labelShift:p},C,x,_,A,k=0,M=e.side,E=e._id.charAt(0),P=e.tickangle,z;if(E==="x")z=!c&&M==="bottom"||c&&M==="top",A=z?1:-1,c&&(A*=-1),C=p*A,x=r+d*A,_=z?1:-.2,Math.abs(P)===90&&(c?_+=Gv:P===-90&&M==="bottom"?_=uc:P===90&&M==="top"?_=Gv:_=.5,k=Gv/2*(P/90)),y.xFn=function(H){return H.dx+C+k*H.fontSize},y.yFn=function(H){return H.dy+x+H.fontSize*_},y.anchorFn=function(H,X){if(f){if(l)return"end";if(s)return"start"}return!bn(X)||X===0||X===180?"middle":X*A<0!==c?"end":"start"},y.heightFn=function(H,X,N){return X<-60||X>60?-.5*N:e.side==="top"!==c?-N:0};else if(E==="y"){if(z=!c&&M==="left"||c&&M==="right",A=z?1:-1,c&&(A*=-1),C=d,x=p*A,_=0,!c&&Math.abs(P)===90&&(P===-90&&M==="left"||P===90&&M==="right"?_=uc:_=.5),c){var I=bn(P)?+P:0;if(I!==0){var V=dt.deg2rad(I);k=Math.abs(Math.sin(V))*uc*A,_=0}}y.xFn=function(H){return H.dx+r-(C+H.fontSize*_)*A+k*H.fontSize},y.yFn=function(H){return H.dy+x+H.fontSize*Gv},y.anchorFn=function(H,X){return bn(X)&&Math.abs(X)===90?"middle":z?"end":"start"},y.heightFn=function(H,X,N){return e.side==="right"&&(X*=-1),X<-30?-N:X<30?-.5*N:0}}return y};function Tm(e){return[e.text,e.x,e.axInfo,e.font,e.fontSize,e.fontColor].join("_")}yr.drawTicks=function(e,r,t){t=t||{};var a=r._id+"tick",n=[].concat(r.minor&&r.minor.ticks?t.vals.filter(function(o){return o.minor&&!o.noTick}):[]).concat(r.ticks?t.vals.filter(function(o){return!o.minor&&!o.noTick}):[]),i=t.layer.selectAll("path."+a).data(n,Tm);i.exit().remove(),i.enter().append("path").classed(a,1).classed("ticks",1).classed("crisp",t.crisp!==!1).each(function(o){return Vv.stroke(Qo.select(this),o.minor?r.minor.tickcolor:r.tickcolor)}).style("stroke-width",function(o){return To.crispRound(e,o.minor?r.minor.tickwidth:r.tickwidth,1)+"px"}).attr("d",t.path).style("display",null),km(r,[YD]),i.attr("transform",t.transFn)};yr.drawGrid=function(e,r,t){if(t=t||{},r.tickmode!=="sync"){var a=r._id+"grid",n=r.minor&&r.minor.showgrid,i=n?t.vals.filter(function(y){return y.minor}):[],o=r.showgrid?t.vals.filter(function(y){return!y.minor}):[],l=t.counterAxis;if(l&&yr.shouldShowZeroLine(e,r,l))for(var s=r.tickmode==="array",u=0;u=0;p--){var m=p?h:d;if(m){var b=m.selectAll("path."+a).data(p?o:i,Tm);b.exit().remove(),b.enter().append("path").classed(a,1).classed("crisp",t.crisp!==!1),b.attr("transform",t.transFn).attr("d",t.path).each(function(y){return Vv.stroke(Qo.select(this),y.minor?r.minor.gridcolor:r.gridcolor||"#ddd")}).style("stroke-dasharray",function(y){return To.dashStyle(y.minor?r.minor.griddash:r.griddash,y.minor?r.minor.gridwidth:r.gridwidth)}).style("stroke-width",function(y){return(y.minor?c:r._gw)+"px"}).style("display",null),typeof t.path=="function"&&b.attr("d",t.path)}}km(r,[ab,nb])}};yr.drawZeroLine=function(e,r,t){t=t||t;var a=r._id+"zl",n=yr.shouldShowZeroLine(e,r,t.counterAxis),i=t.layer.selectAll("path."+a).data(n?[{x:0,id:r._id}]:[]);i.exit().remove(),i.enter().append("path").classed(a,1).classed("zl",1).classed("crisp",t.crisp!==!1).each(function(){t.layer.selectAll("path").sort(function(o,l){return Iae(o.id,l.id)})}),i.attr("transform",t.transFn).attr("d",t.path).call(Vv.stroke,r.zerolinecolor||Vv.defaultLine).style("stroke-width",To.crispRound(e,r.zerolinewidth,r._gw||1)+"px").style("display",null),km(r,[tb])};yr.drawLabels=function(e,r,t){t=t||{};var a=e._fullLayout,n=r._id,i=r.zerolinelayer==="above traces",o=t.cls||n+"tick",l=t.vals.filter(function(ae){return ae.text}),s=t.labelFns,u=t.secondary?0:r.tickangle,f=(r._prevTickAngles||{})[o],c=t.layer.selectAll("g."+o).data(r.showticklabels?l:[],Tm),h=[];c.enter().append("g").classed(o,1).append("text").attr("text-anchor","middle").each(function(ae){var ie=Qo.select(this),le=e._promises.length;ie.call(lc.positionText,s.xFn(ae),s.yFn(ae)).call(To.font,{family:ae.font,size:ae.fontSize,color:ae.fontColor,weight:ae.fontWeight,style:ae.fontStyle,variant:ae.fontVariant,textcase:ae.fontTextcase,lineposition:ae.fontLineposition,shadow:ae.fontShadow}).text(ae.text).call(lc.convertToTspans,e),e._promises[le]?h.push(e._promises.pop().then(function(){d(ie,u)})):d(ie,u)}),km(r,[PD]),c.exit().remove(),t.repositionOnUpdate&&c.each(function(ae){Qo.select(this).select("text").call(lc.positionText,s.xFn(ae),s.yFn(ae))});function d(ae,ie){ae.each(function(le){var xe=Qo.select(this),De=xe.select(".text-math-group"),Ye=s.anchorFn(le,ie),Ee=t.transFn.call(xe.node(),le)+(bn(ie)&&+ie!=0?" rotate("+ie+","+s.xFn(le)+","+(s.yFn(le)-le.fontSize/2)+")":""),ke=lc.lineCount(xe),je=jv*le.fontSize,W=s.heightFn(le,bn(ie)?+ie:0,(ke-1)*je);if(W&&(Ee+=K1(0,W)),De.empty()){var se=xe.select("text");se.attr({transform:Ee,"text-anchor":Ye}),se.style("display",null),r._adjustTickLabelsOverflow&&r._adjustTickLabelsOverflow()}else{var he=To.bBox(De.node()).width,K=he*{end:-.5,start:.5}[Ye];De.attr("transform",Ee+K1(K,0))}})}r._adjustTickLabelsOverflow=function(){var ae=r.ticklabeloverflow;if(!(!ae||ae==="allow")){var ie=ae.indexOf("hide")!==-1,le=r._id.charAt(0)==="x",xe=0,De=le?e._fullLayout.width:e._fullLayout.height;if(ae.indexOf("domain")!==-1){var Ye=dt.simpleMap(r.range,r.r2l);xe=r.l2p(Ye[0])+r._offset,De=r.l2p(Ye[1])+r._offset}var Ee=Math.min(xe,De),ke=Math.max(xe,De),je=r.side,W=1/0,se=-1/0;c.each(function(fe){var be=Qo.select(this),Ne=be.select(".text-math-group");if(Ne.empty()){var Ze=To.bBox(be.node()),er=0;le?(Ze.right>ke||Ze.leftke||Ze.top+(r.tickangle?0:fe.fontSize/4)r["_visibleLabelMin_"+Ye._id]?be.style("display","none"):ke.K==="tick"&&!Ee&&be.node().style.display!=="none"&&be.style("display",null)})})})})},d(c,f+1?f:u);function p(){return h.length&&Promise.all(h)}var m=null;function b(){if(d(c,u),l.length&&r.autotickangles&&(r.type!=="log"||String(r.dtick).charAt(0)!=="D")){m=r.autotickangles[0];var ae=0,ie=[],le,xe=1;c.each(function(mr){ae=Math.max(ae,mr.fontSize);var qr=r.l2p(mr.x),Te=ob(this),Ue=To.bBox(Te.node());xe=Math.max(xe,lc.lineCount(Te)),ie.push({top:0,bottom:10,height:10,left:qr-Ue.width/2,right:qr+Ue.width/2+2,width:Ue.width+2})});var De=(r.tickson==="boundaries"||r.showdividers)&&!t.secondary,Ye=l.length,Ee=Math.abs((l[Ye-1].x-l[0].x)*r._m)/(Ye-1),ke=De?Ee/2:Ee,je=De?r.ticklen:ae*1.25*xe,W=Math.sqrt(Math.pow(ke,2)+Math.pow(je,2)),se=ke/W,he=r.autotickangles.map(function(mr){return mr*Math.PI/180}),K=he.find(function(mr){return Math.abs(Math.cos(mr))<=se});K===void 0&&(K=he.reduce(function(mr,qr){return Math.abs(Math.cos(mr))Q*N&&(V=N,P[E]=z[E]=H[E])}var ee=Math.abs(V-I);ee-A>0?(ee-=A,A*=1+A/ee):A=0,r._id.charAt(0)!=="y"&&(A=-A),P[M]=x.p2r(x.r2p(z[M])+k*A),x.autorange==="min"||x.autorange==="max reversed"?(P[0]=null,x._rangeInitial0=void 0,x._rangeInitial1=void 0):(x.autorange==="max"||x.autorange==="min reversed")&&(P[1]=null,x._rangeInitial0=void 0,x._rangeInitial1=void 0),a._insideTickLabelsUpdaterange[x._name+".range"]=P}var re=dt.syncOrAsync(y);return re&&re.then&&e._promises.push(re),re};function cne(e,r,t){var a=r._id+"divider",n=t.vals,i=t.layer.selectAll("path."+a).data(n,Tm);i.exit().remove(),i.enter().insert("path",":first-child").classed(a,1).classed("crisp",1).call(Vv.stroke,r.dividercolor).style("stroke-width",To.crispRound(e,r.dividerwidth,1)+"px"),i.attr("transform",t.transFn).attr("d",t.path)}yr.getPxPosition=function(e,r){var t=e._fullLayout._size,a=r._id.charAt(0),n=r.side,i;if(r.anchor!=="free"?i=r._anchorAxis:a==="x"?i={_offset:t.t+(1-(r.position||0))*t.h,_length:0}:a==="y"&&(i={_offset:t.l+(r.position||0)*t.w+r._shift,_length:0}),n==="top"||n==="left")return i._offset;if(n==="bottom"||n==="right")return i._offset+i._length};function GD(e){var r=e.title.font.size,t=(e.title.text.match(lc.BR_TAG_ALL)||[]).length;return e.title.hasOwnProperty("standoff")?r*(uc+t*jv):t?r*(t+1)*jv:r}function vne(e,r){var t=e._fullLayout,a=r._id,n=a.charAt(0),i=r.title.font.size,o,l=(r.title.text.match(lc.BR_TAG_ALL)||[]).length;if(r.title.hasOwnProperty("standoff"))r.side==="bottom"||r.side==="right"?o=r._depth+r.title.standoff+i*uc:(r.side==="top"||r.side==="left")&&(o=r._depth+r.title.standoff+i*(Gv+l*jv));else{var s=Zv(r);if(r.type==="multicategory")o=r._depth;else{var u=1.5*i;s&&(u=.5*i,r.ticks==="outside"&&(u+=r.ticklen)),o=10+u+(r.linewidth?r.linewidth-1:0)}s||(n==="x"?o+=r.side==="top"?i*(r.showticklabels?1:0):i*(r.showticklabels?1.5:.5):o+=r.side==="right"?i*(r.showticklabels?1:.5):i*(r.showticklabels?.5:0))}var f=yr.getPxPosition(e,r),c,h,d;n==="x"?(h=r._offset+r._length/2,d=r.side==="top"?f-o:f+o):(d=r._offset+r._length/2,h=r.side==="right"?f+o:f-o,c={rotate:"-90",offset:0});var p;if(r.type!=="multicategory"){var m=r._selections[r._id+"tick"];if(p={selection:m,side:r.side},m&&m.node()&&m.node().parentNode){var b=To.getTranslate(m.node().parentNode);p.offsetLeft=b.x,p.offsetTop=b.y}r.title.hasOwnProperty("standoff")&&(p.pad=0)}return r._titleStandoff=o,Fae.draw(e,a+"title",{propContainer:r,propName:r._name+".title.text",placeholder:t._dfltTitle[n],avoid:p,transform:c,attributes:{x:h,y:d,"text-anchor":"middle"}})}yr.shouldShowZeroLine=function(e,r,t){var a=dt.simpleMap(r.range,r.r2l);return a[0]*a[1]<=0&&r.zeroline&&(r.type==="linear"||r.type==="-")&&!(r.rangebreaks&&r.maskBreaks(0)===Am)&&(JD(r,0)||!hne(e,r,t,a)||dne(e,r))};yr.clipEnds=function(e,r){return r.filter(function(t){return JD(e,t.x)})};function JD(e,r){var t=e.l2p(r);return t>1&&t1)for(n=1;n=n.min&&e=zae:/%L/.test(r)?e>=Rae:/%[SX]/.test(r)?e>=xm:/%M/.test(r)?e>=Xv:/%[HI]/.test(r)?e>=zs:/%p/.test(r)?e>=R0:/%[Aadejuwx]/.test(r)?e>=ki:/%[UVW]/.test(r)?e>=ko:/%[Bbm]/.test(r)?e>=_m:/%[q]/.test(r)?e>=bm:/%[Yy]/.test(r)?e>=ym:!0}});var tF=oe((ebe,rF)=>{"use strict";rF.exports=function(r,t,a){var n,i;if(a){var o=t==="reversed"||t==="min reversed"||t==="max reversed";n=a[o?1:0],i=a[o?0:1]}var l=r("autorangeoptions.minallowed",i===null?n:void 0),s=r("autorangeoptions.maxallowed",n===null?i:void 0);l===void 0&&r("autorangeoptions.clipmin"),s===void 0&&r("autorangeoptions.clipmax"),r("autorangeoptions.include")}});var db=oe((rbe,aF)=>{"use strict";var _ne=tF();aF.exports=function(r,t,a,n){var i=t._template||{},o=t.type||i.type||"-";a("minallowed"),a("maxallowed");var l=a("range");if(!l){var s;!n.noInsiderange&&o!=="log"&&(s=a("insiderange"),s&&(s[0]===null||s[1]===null)&&(t.insiderange=!1,s=void 0),s&&(l=a("range",s)))}var u=t.getAutorangeDflt(l,n),f=a("autorange",u),c;l&&(l[0]===null&&l[1]===null||(l[0]===null||l[1]===null)&&(f==="reversed"||f===!0)||l[0]!==null&&(f==="min"||f==="max reversed")||l[1]!==null&&(f==="max"||f==="min reversed"))&&(l=void 0,delete t.range,t.autorange=!0,c=!0),c||(u=t.getAutorangeDflt(l,n),f=a("autorange",u)),f&&(_ne(a,f,l),(o==="linear"||o==="-")&&a("rangemode")),t.cleanRange()}});var iF=oe((tbe,nF)=>{var xne={left:0,top:0};nF.exports=wne;function wne(e,r,t){r=r||e.currentTarget||e.srcElement,Array.isArray(t)||(t=[0,0]);var a=e.clientX||0,n=e.clientY||0,i=Ane(r);return t[0]=a-i.left,t[1]=n-i.top,t}function Ane(e){return e===window||e===document||e===document.body?xne:e.getBoundingClientRect()}});var pb=oe((abe,oF)=>{"use strict";var Mne=H5();function Tne(){var e=!1;try{var r=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("test",null,r),window.removeEventListener("test",null,r)}catch(t){e=!1}return e}oF.exports=Mne&&Tne()});var sF=oe((nbe,lF)=>{"use strict";lF.exports=function(r,t,a,n,i){var o=(r-a)/(n-a),l=o+t/(n-a),s=(o+l)/2;return i==="left"||i==="bottom"?o:i==="center"||i==="middle"?s:i==="right"||i==="top"?l:o<2/3-s?o:l>4/3-s?l:s}});var cF=oe((ibe,fF)=>{"use strict";var uF=pr(),kne=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];fF.exports=function(r,t,a,n){return a==="left"?r=0:a==="center"?r=1:a==="right"?r=2:r=uF.constrain(Math.floor(r*3),0,2),n==="bottom"?t=0:n==="middle"?t=1:n==="top"?t=2:t=uF.constrain(Math.floor(t*3),0,2),kne[t][r]}});var hF=oe((obe,vF)=>{"use strict";var Cne=Lv(),Sne=Cp(),Dne=Mv().getGraphDiv,Fne=(iv(),xr(nv)),mb=vF.exports={};mb.wrapped=function(e,r,t){var i;e=Dne(e),e._fullLayout&&Sne.clear(e._fullLayout._uid+Fne.HOVERID);let a=e._hoverdata;mb.raw(e,r,t)&&e._hoverAnywhereActive&&(e._hoverAnywhereActive=!1,(i=e._fullLayout)!=null&&i.hoveranywhere&&(r!=null&&r.target)&&!a&&e.emit("plotly_unhover",{event:r,points:[]}))};mb.raw=function(r,t){var a=r._fullLayout,n=r._hoverdata;return t||(t={}),t.target&&!r._dragged&&Cne.triggerHandler(r,"plotly_beforehover",t)===!1?!1:(a._hoverlayer.selectAll("g").remove(),a._hoverlayer.selectAll("line").remove(),a._hoverlayer.selectAll("circle").remove(),r._hoverdata=void 0,t.target&&n&&r.emit("plotly_unhover",{event:t,points:n}),!0)}});var el=oe((lbe,gF)=>{"use strict";var Ene=iF(),gb=U5(),Lne=pb(),qne=pr().removeElement,Pne=(Hn(),xr(In)),fc=gF.exports={};fc.align=sF();fc.getCursor=cF();var pF=hF();fc.unhover=pF.wrapped;fc.unhoverRaw=pF.raw;fc.init=function(r){var t=r.gd,a=1,n=t._context.doubleClickDelay,i=r.element,o,l,s,u,f,c,h,d;t._mouseDownTime||(t._mouseDownTime=0),i.style.pointerEvents="all",i.onmousedown=b,Lne?(i._ontouchstart&&i.removeEventListener("touchstart",i._ontouchstart),i._ontouchstart=b,i.addEventListener("touchstart",b,{passive:!1})):i.ontouchstart=b;function p(x,_,A){return Math.abs(x)n&&(a=Math.max(a-1,1)),t._dragged)r.doneFn&&r.doneFn();else{var _;c.target===h?_=c:(_={target:h,srcElement:h,toElement:h},Object.keys(c).concat(Object.keys(c.__proto__)).forEach(A=>{var k=c[A];!_[A]&&typeof k!="function"&&(_[A]=k)})),r.clickFn&&r.clickFn(a,_),d||h.dispatchEvent(new MouseEvent("click",x))}t._dragging=!1,t._dragged=!1}};function mF(){var e=document.createElement("div");e.className="dragcover";var r=e.style;return r.position="fixed",r.left=0,r.right=0,r.top=0,r.bottom=0,r.zIndex=999999999,r.background="none",document.body.appendChild(e),e}fc.coverSlip=mF;function dF(e){return Ene(e.changedTouches?e.changedTouches[0]:e,document.body)}});var z0=oe((sbe,yF)=>{"use strict";yF.exports=function(r,t){(r.attr("class")||"").split(" ").forEach(function(a){a.indexOf("cursor-")===0&&r.classed(a,!1)}),t&&r.classed("cursor-"+t,!0)}});var xF=oe((ube,_F)=>{"use strict";var yb=z0(),$v="data-savedcursor",bF="!!";_F.exports=function(r,t){var a=r.attr($v);if(t){if(!a){for(var n=(r.attr("class")||"").split(" "),i=0;iUne,itemGap:()=>One,itemHeightPad:()=>Yne,itemMinHeight:()=>Gne,scrollBarColor:()=>Nne,scrollBarEnterAttrs:()=>Ine,scrollBarMargin:()=>Bne,scrollBarMinHeight:()=>zne,scrollBarWidth:()=>Rne,titlePad:()=>Hne});var Rne,zne,Nne,Bne,Ine,Hne,One,Une,Gne,Yne,Sm=Oa(()=>{"use strict";Rne=6,zne=20,Nne="#808BA4",Bne=4,Ine={rx:20,ry:3,width:0,height:0},Hne=2,One=5,Une=6,Gne=16,Yne=3});var _b=oe((fbe,AF)=>{"use strict";var bb=xi(),Vne=Il(),{dfltFillHeight:wF}=(Sm(),xr(Cm));AF.exports={_isSubplotObj:!0,visible:{valType:"boolean",dflt:!0,editType:"legend"},bgcolor:{valType:"color",editType:"legend"},bordercolor:{valType:"color",dflt:Vne.defaultLine,editType:"legend"},maxheight:{valType:"number",min:0,editType:"legend"},borderwidth:{valType:"number",min:0,dflt:0,editType:"legend"},font:bb({editType:"legend"}),grouptitlefont:bb({editType:"legend"}),orientation:{valType:"enumerated",values:["v","h"],dflt:"v",editType:"legend"},traceorder:{valType:"flaglist",flags:["reversed","grouped"],extras:["normal"],editType:"legend"},tracegroupgap:{valType:"number",min:0,dflt:10,editType:"legend"},entrywidth:{valType:"number",min:0,editType:"legend"},entrywidthmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels",editType:"legend"},indentation:{valType:"number",min:-15,dflt:0,editType:"legend"},itemsizing:{valType:"enumerated",values:["trace","constant"],dflt:"trace",editType:"legend"},itemwidth:{valType:"number",min:30,dflt:30,editType:"legend"},itemheight:{valType:"number",min:wF,dflt:wF,editType:"legend"},itemclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggle",editType:"legend"},itemdoubleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggleothers",editType:"legend"},groupclick:{valType:"enumerated",values:["toggleitem","togglegroup"],dflt:"togglegroup",editType:"legend"},groupdoubleclick:{valType:"enumerated",values:["toggleitem","togglegroup"],editType:"legend"},titleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],editType:"legend"},titledoubleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],editType:"legend"},x:{valType:"number",editType:"legend"},xref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"legend"},y:{valType:"number",editType:"legend"},yref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],editType:"legend"},uirevision:{valType:"any",editType:"none"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"legend"},title:{text:{valType:"string",dflt:"",editType:"legend"},font:bb({editType:"legend"}),side:{valType:"enumerated",values:["top","left","top left","top center","top right"],editType:"legend"},editType:"legend"},editType:"legend"}});var Kv=oe(Jv=>{"use strict";Jv.isGrouped=function(r){return(r.traceorder||"").indexOf("grouped")!==-1};Jv.isVertical=function(r){return r.orientation!=="h"};Jv.isReversed=function(r){return(r.traceorder||"").indexOf("reversed")!==-1};Jv.getId=function(r){return r._id||"legend"}});var wb=oe((vbe,MF)=>{"use strict";var Dm=_t(),Co=pr(),Xne=ka(),jne=Wo(),Wne=_b(),Zne=F1(),xb=Kv();function $ne(e,r,t,a,n){var i=r[e]||{},o=Xne.newContainer(t,e);function l(ie,le){return Co.coerce(i,o,Wne,ie,le)}var s=Co.coerceFont(l,"font",t.font);l("bgcolor",t.paper_bgcolor),l("bordercolor");var u=l("visible");if(!u)return;var f,c=function(ie,le){var xe=f._input,De=f;return Co.coerce(xe,De,jne,ie,le)},h=t.font||{},d=Co.coerceFont(l,"grouptitlefont",h,{overrideDflt:{size:Math.round(h.size*1.1)}}),p=0,m=!1,b="normal",y=(t.shapes||[]).filter(function(ie){return ie.showlegend});function C(ie){return Dm.traceIs(ie,"pie-like")&&ie._length!=null&&(Array.isArray(ie.legend)||Array.isArray(ie.showlegend))}a.filter(C).forEach(function(ie){ie.visible&&p++;for(var le=0;leie.legend.length)for(var De=ie.legend.length;De(e==="legend"?1:0));if(k===!1&&(t[e]=void 0),k===!1&&!i.uirevision||(l("uirevision",t.uirevision),k===!1))return;l("borderwidth");var M=l("orientation"),E=l("yref"),P=l("xref"),z=M==="h",I=E==="paper",V=P==="paper",H,X,N,Q="left";z?(H=0,Dm.getComponentMethod("rangeslider","isVisible")(r.xaxis)?I?(X=1.1,N="bottom"):(X=1,N="top"):I?(X=-.1,N="top"):(X=0,N="bottom")):(X=1,N="auto",V?H=1.02:(H=1,Q="right")),Co.coerce(i,o,{x:{valType:"number",editType:"legend",min:V?-2:0,max:V?3:1,dflt:H}},"x"),Co.coerce(i,o,{y:{valType:"number",editType:"legend",min:I?-2:0,max:I?3:1,dflt:X}},"y"),l("traceorder",b),xb.isGrouped(t[e])&&l("tracegroupgap"),l("entrywidth"),l("entrywidthmode"),l("indentation"),l("itemsizing"),l("itemwidth"),l("itemheight"),l("itemclick"),l("itemdoubleclick");let ee=l("groupclick");l("groupdoubleclick",ee),l("xanchor",Q),l("yanchor",N),l("maxheight"),l("valign"),Co.noneOrAll(i,o,["x","y"]);var re=l("title.text");if(re){l("title.side",z?"left":"top");var ae=Co.extendFlat({},s,{size:Co.bigFont(s.size)});Co.coerceFont(l,"title.font",ae);let ie=n>1;l("titleclick",ie?"toggle":!1),l("titledoubleclick",ie?"toggleothers":!1)}}MF.exports=function(r,t,a){var n,i=a.slice(),o=t.shapes;if(o)for(n=0;n{"use strict";var N0=_t(),Ab=pr(),Jne=Ab.pushUnique,Kne=Kv(),TF=!0;Mb.handleItemClick=function(r,t,a,n,i){var o=t._fullLayout;if(t._dragged||t._editing)return;var l=r.data()[0][0];if(l.groupTitle&&l.noClick)return;let s=i===2?a.groupdoubleclick:a.groupclick;n==="toggle"&&a.itemdoubleclick==="toggleothers"&&TF&&t.data&&t._context.showTips&&(Ab.notifier(Ab._(t,"Double-click on legend to isolate one trace"),"long",t),TF=!1);var u=s==="togglegroup",f=o.hiddenlabels?o.hiddenlabels.slice():[],c=t._fullData;let h=(o.shapes||[]).filter(Je=>Je.showlegend||Je.legendgroup);var d=c.concat(h),p=l.trace;p._isShape&&(p=o.shapes[p.index]);var m=p.legendgroup,b,y,C,x,_,A,k={},M=[],E=[],P=[];function z(Je,tr){var ze=M.indexOf(Je),lr=k.visible;return lr||(lr=k.visible=[]),M.indexOf(Je)===-1&&(M.push(Je),ze=M.length-1),lr[ze]=tr,ze}var I=(o.shapes||[]).map(function(Je){return Je._input}),V=!1;function H(Je,tr){I[Je].visible=tr,V=!0}function X(Je,tr){if(!(l.groupTitle&&!u)){var ze=Je._isShape,lr=Je.index;lr===void 0&&(lr=Je._index);var hr=Je.visible===!1?!1:tr;ze?H(lr,hr):z(lr,hr)}}var N=p.legend;if(!p._isShape&&N0.traceIs(p,"pie-like")){var Q=l.label,ee=f.indexOf(Q);if(n==="toggle")ee===-1?f.push(Q):f.splice(ee,1);else if(n==="toggleothers"){var re=ee!==-1,ae=[];for(b=0;by.showlegend||y.legendgroup),s=i.concat(l);function u(y){return(y.legend||"legend")===o}var f,c;if(a==="toggle")f=!s.some(function(C){return u(C)&&C.visible===!0}),c=!1;else{let y=s.some(function(C){return!u(C)&&C.visible===!0&&C.showlegend!==!1});f=!0,c=!y}let h={visible:[]},d=[],p=(n.shapes||[]).map(function(y){return y._input});for(var m=!1,b=0;b{"use strict";var{isArrayOrTypedArray:kb}=ro(),kF=_t(),Cb=Kv();CF.exports=function(r,t,a){var n=t._inHover,i=Cb.isGrouped(t),o=Cb.isReversed(t),l={},s=[],u=!1,f={},c=0,h=0,d,p;function m(ie,le,xe){if(t.visible!==!1&&!(a&&ie!==t._id))if(le===""||!Cb.isGrouped(t)){var De="~~i"+c;s.push(De),l[De]=[xe],c++}else s.indexOf(le)===-1?(s.push(le),u=!0,l[le]=[xe]):l[le].push(xe)}for(d=0;dH&&(I=H)}P[d][0]._groupMinRank=I,P[d][0]._preGroupSort=d}var X=function(ie,le){return ie[0]._groupMinRank-le[0]._groupMinRank||ie[0]._preGroupSort-le[0]._preGroupSort},N=function(ie,le){var xe=kb(ie.trace.legendrank)?ie.trace.legendrank[ie.i]:ie.trace.legendrank,De=kb(le.trace.legendrank)?le.trace.legendrank[le.i]:le.trace.legendrank;return xe-De||ie._preSort-le._preSort};for(P.forEach(function(ie,le){ie[0]._preGroupSort=le}),P.sort(X),d=0;d{"use strict";var Fm=pr();function DF(e){return e.indexOf("e")!==-1?e.replace(/[.]?0+e/,"e"):e.indexOf(".")!==-1?e.replace(/[.]?0+$/,""):e}cc.formatPiePercent=function(r,t){var a=DF((r*100).toPrecision(3));return Fm.numSeparate(a,t)+"%"};cc.formatPieValue=function(r,t){var a=DF(r.toPrecision(10));return Fm.numSeparate(a,t)};cc.getFirstFilled=function(r,t){if(Fm.isArrayOrTypedArray(r))for(var a=0;a{"use strict";var Qne=ha(),eie=Nt();FF.exports=function(r,t,a,n){var i=a.marker.pattern;i&&i.shape?Qne.pointStyle(r,a,n,t):eie.fill(r,t.color)}});var RF=oe((gbe,PF)=>{"use strict";var LF=Nt(),qF=Sb().castOption,rie=EF();PF.exports=function(r,t,a,n){var i=a.marker.line,o=qF(i.color,t.pts)||LF.defaultLine,l=qF(i.width,t.pts)||0;r.call(rie,t,a,n).style("stroke-width",l).call(LF.stroke,o)}});var qb=oe((ybe,HF)=>{"use strict";var Ci=Lt(),Db=_t(),hi=pr(),Fb=hi.strTranslate,So=ha(),rl=Nt(),Eb=Es().extractOpts,Lm=Ti(),tie=RF(),aie=Sb().castOption,zF=(Sm(),xr(Cm)),NF=12,BF=5,vc=2,nie=10,r2=5;HF.exports=function(r,t,a){var n=t._fullLayout;a||(a=n.legend);var i=a.itemsizing==="constant",o=a.itemwidth,l=a.itemheight,s=(o+zF.itemGap*2)/2,u=Fb(s,0),f=function(E,P,z,I){var V;if(E+1)V=E;else if(P&&P.width>0)V=P.width;else return 0;return i?I:Math.min(V,z)};r.each(function(E){var P=Ci.select(this),z=hi.ensureSingle(P,"g","layers");z.style("opacity",E[0].trace.opacity);var I=a.indentation,V=a.valign,H=E[0].lineHeight,X=E[0].height;if(V==="middle"&&I===0||!H||!X)z.attr("transform",null);else{var N={top:1,bottom:-1}[V],Q=N*(.5*(H-X+3))||0,ee=a.indentation;z.attr("transform",Fb(ee,Q))}var re=z.selectAll("g.legendfill").data([E]);re.enter().append("g").classed("legendfill",!0);var ae=z.selectAll("g.legendlines").data([E]);ae.enter().append("g").classed("legendlines",!0);var ie=z.selectAll("g.legendsymbols").data([E]);ie.enter().append("g").classed("legendsymbols",!0),ie.selectAll("g.legendpoints").data([E]).enter().append("g").classed("legendpoints",!0)}).each(M).each(d).each(m).each(p).each(y).each(A).each(_).each(c).each(h).each(C).each(x);function c(E){var P=IF(E),z=P.showFill,I=P.showLine,V=P.showGradientLine,H=P.showGradientFill,X=P.anyFill,N=P.anyLine,Q=E[0],ee=Q.trace,re,ae,ie=Eb(ee),le=ie.colorscale,xe=ie.reversescale,De=function(K){if(K.size())if(z)So.fillGroupStyle(K,t,!0);else{var J="legendfill-"+ee.uid;So.gradient(K,t,J,Lb(xe),le,"fill")}},Ye=function(K){if(K.size()){var J="legendline-"+ee.uid;So.lineGroupStyle(K),So.gradient(K,t,J,Lb(xe),le,"stroke")}},Ee=Lm.hasMarkers(ee)||!X?"M5,0":N?"M5,-2":"M5,-3",ke=Ci.select(this),je=ke.select(".legendfill").selectAll("path").data(z||H?[E]:[]);je.enter().append("path").classed("js-fill",!0),je.exit().remove(),je.attr("d",Ee+"h"+o+"v"+l+"h-"+o+"z").call(De);let W=z||H?(zF.dfltFillHeight-l)/2:0;if(ke.selectAll("g.legendfill, g.legendlines, g.legendsymbols").attr("transform",W?Fb(0,W):null),I||V){var se=f(void 0,ee.line,nie,BF);ae=hi.minExtend(ee,{line:{width:se}}),re=[hi.minExtend(Q,{trace:ae})]}var he=ke.select(".legendlines").selectAll("path").data(I||V?[re]:[]);he.enter().append("path").classed("js-line",!0),he.exit().remove(),he.attr("d",Ee+(V?"l"+o+",0.0001":"h"+o)).call(I?So.lineGroupStyle:Ye)}function h(E){var P=IF(E),z=P.anyFill,I=P.anyLine,V=P.showLine,H=P.showMarker,X=E[0],N=X.trace,Q=!H&&!I&&!z&&Lm.hasText(N),ee,re;function ae(W,se,he,K){var J=hi.nestedProperty(N,W).get(),fe=hi.isArrayOrTypedArray(J)&&se?se(J):J;if(i&&fe&&K!==void 0&&(fe=K),he){if(fehe[1])return he[1]}return fe}function ie(W){return X._distinct&&X.index&&W[X.index]?W[X.index]:W[0]}if(H||Q||V){var le={},xe={};if(H){le.mc=ae("marker.color",ie);var De=N.type==="scattermap";le.mx=De?"circle":ae("marker.symbol",ie),le.mo=ae("marker.opacity",hi.mean,[.2,1]),le.mlc=ae("marker.line.color",ie),le.mlw=ae("marker.line.width",hi.mean,[0,5],vc),le.mld=ae("marker.line.dash",ie),xe.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var Ye=ae("marker.size",hi.mean,[2,16],NF);le.ms=Ye,xe.marker.size=Ye}V&&(xe.line={width:ae("line.width",ie,[0,10],BF)}),Q&&(le.tx="Aa",le.tp=ae("textposition",ie),le.ts=10,le.tc=ae("textfont.color",ie),le.tf=ae("textfont.family",ie),le.tw=ae("textfont.weight",ie),le.ty=ae("textfont.style",ie),le.tv=ae("textfont.variant",ie),le.tC=ae("textfont.textcase",ie),le.tE=ae("textfont.lineposition",ie),le.tS=ae("textfont.shadow",ie)),ee=[hi.minExtend(X,le)],re=hi.minExtend(N,xe),re.selectedpoints=null,re.texttemplate=null}var Ee=Ci.select(this).select("g.legendpoints"),ke=Ee.selectAll("path.scatterpts").data(H?ee:[]);ke.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",u),ke.exit().remove(),ke.call(So.pointStyle,re,t),H&&(ee[0].mrc=3);var je=Ee.selectAll("g.pointtext").data(Q?ee:[]);je.enter().append("g").classed("pointtext",!0).append("text").attr("transform",u),je.exit().remove(),je.selectAll("text").call(So.textPointStyle,re,t)}function d(E){var P=E[0].trace,z=P.type==="waterfall";if(E[0]._distinct&&z){var I=E[0].trace[E[0].dir].marker;return E[0].mc=I.color,E[0].mlw=I.line.width,E[0].mlc=I.line.color,b(E,this,"waterfall")}var V=[];P.visible&&z&&(V=E[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 H=Ci.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data(V);H.enter().append("path").classed("legendwaterfall",!0).attr("transform",u).style("stroke-miterlimit",1),H.exit().remove(),H.each(function(X){var N=Ci.select(this),Q=P[X[0]].marker,ee=f(void 0,Q.line,r2,vc);N.attr("d",X[1]).style("stroke-width",ee+"px").call(rl.fill,Q.color),ee&&N.call(rl.stroke,Q.line.color)})}function p(E){b(E,this)}function m(E){b(E,this,"funnel")}function b(E,P,z){var I=E[0].trace,V=I.marker||{},H=V.line||{},X=V.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",N=z?I.visible&&I.type===z:Db.traceIs(I,"bar"),Q=Ci.select(P).select("g.legendpoints").selectAll("path.legend"+z).data(N?[E]:[]);Q.enter().append("path").classed("legend"+z,!0).attr("d",X).attr("transform",u),Q.exit().remove(),Q.each(function(ee){var re=Ci.select(this),ae=ee[0],ie=f(ae.mlw,V.line,r2,vc);re.style("stroke-width",ie+"px");var le=ae.mcc;if(!a._inHover&&"mc"in ae){var xe=Eb(V),De=xe.mid;De===void 0&&(De=(xe.max+xe.min)/2),le=So.tryColorscale(V,"")(De)}var Ye=le||ae.mc||V.color,Ee=V.pattern,ke=So.getPatternAttr;let je=0;a._inHover&&ae._distinct&&ae.index!=null&&(je=ae.index);let W=Ee&&(ke(Ee.shape,je,"")||ke(Ee.path,je,""));if(W){let he=ke(Ee.bgcolor,je,null),K=ke(Ee.fgcolor,je,null);var se=Ee.fgopacity;let J=a._inHover?Em(ke(Ee.size,je,8),8,10):Em(Ee.size,8,10),fe=a._inHover?Em(ke(Ee.solidity,je,.5),.5,1):Em(Ee.solidity,.5,1),be=a._inHover?`hover-${I.uid}-${je}`:`legend-${I.uid}`;re.call(So.pattern,"legend",t,be,W,J,fe,le,Ee.fillmode,he,K,se)}else re.call(rl.fill,Ye);ie&&rl.stroke(re,ae.mlc||H.color)})}function y(E){var P=E[0].trace,z=Ci.select(this).select("g.legendpoints").selectAll("path.legendbox").data(P.visible&&Db.traceIs(P,"box-violin")?[E]:[]);z.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform",u),z.exit().remove(),z.each(function(){var I=Ci.select(this);if((P.boxpoints==="all"||P.points==="all")&&rl.opacity(P.fillcolor)===0&&rl.opacity((P.line||{}).color)===0){var V=hi.minExtend(P,{marker:{size:i?NF:hi.constrain(P.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});z.call(So.pointStyle,V,t)}else{var H=f(void 0,P.line,r2,vc);I.style("stroke-width",H+"px").call(rl.fill,P.fillcolor),H&&rl.stroke(I,P.line.color)}})}function C(E){var P=E[0].trace,z=Ci.select(this).select("g.legendpoints").selectAll("path.legendcandle").data(P.visible&&P.type==="candlestick"?[E,E]:[]);z.enter().append("path").classed("legendcandle",!0).attr("d",function(I,V){return V?"M-15,0H-8M-8,6V-6H8Z":"M15,0H8M8,-6V6H-8Z"}).attr("transform",u).style("stroke-miterlimit",1),z.exit().remove(),z.each(function(I,V){var H=Ci.select(this),X=P[V?"increasing":"decreasing"],N=f(void 0,X.line,r2,vc);H.style("stroke-width",N+"px").call(rl.fill,X.fillcolor),N&&rl.stroke(H,X.line.color)})}function x(E){var P=E[0].trace,z=Ci.select(this).select("g.legendpoints").selectAll("path.legendohlc").data(P.visible&&P.type==="ohlc"?[E,E]:[]);z.enter().append("path").classed("legendohlc",!0).attr("d",function(I,V){return V?"M-15,0H0M-8,-6V0":"M15,0H0M8,6V0"}).attr("transform",u).style("stroke-miterlimit",1),z.exit().remove(),z.each(function(I,V){var H=Ci.select(this),X=P[V?"increasing":"decreasing"],N=f(void 0,X.line,r2,vc);H.style("fill","none").call(So.dashLine,X.line.dash,N),N&&rl.stroke(H,X.line.color)})}function _(E){k(E,this,"pie")}function A(E){k(E,this,"funnelarea")}function k(E,P,z){var I=E[0],V=I.trace,H=z?V.visible&&V.type===z:Db.traceIs(V,z),X=Ci.select(P).select("g.legendpoints").selectAll("path.legend"+z).data(H?[E]:[]);if(X.enter().append("path").classed("legend"+z,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",u),X.exit().remove(),X.size()){var N=V.marker||{},Q=f(aie(N.line.width,I.pts),N.line,r2,vc),ee="pieLike",re=hi.minExtend(V,{marker:{line:{width:Q}}},ee),ae=hi.minExtend(I,{trace:re},ee);tie(X,ae,re,t)}}function M(E){var P=E[0].trace,z,I=[];if(P.visible)switch(P.type){case"histogram2d":case"heatmap":I=[["M-15,-2V4H15V-2Z"]],z=!0;break;case"choropleth":case"choroplethmap":I=[["M-6,-6V6H6V-6Z"]],z=!0;break;case"densitymap":I=[["M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"]],z="radial";break;case"cone":I=[["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"]],z=!1;break;case"streamtube":I=[["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"]],z=!1;break;case"surface":I=[["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"]],z=!0;break;case"mesh3d":I=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],z=!1;break;case"volume":I=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],z=!0;break;case"isosurface":I=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6 A12,24 0 0,0 6,-6 L0,6Z"]],z=!1;break}var V=Ci.select(this).select("g.legendpoints").selectAll("path.legend3dandfriends").data(I);V.enter().append("path").classed("legend3dandfriends",!0).attr("transform",u).style("stroke-miterlimit",1),V.exit().remove(),V.each(function(H,X){var N=Ci.select(this),Q=Eb(P),ee=Q.colorscale,re=Q.reversescale,ae=function(De){if(De.size()){var Ye="legendfill-"+P.uid;So.gradient(De,t,Ye,Lb(re,z==="radial"),ee,"fill")}},ie;if(ee){if(!z){var xe=ee.length;ie=X===0?ee[re?xe-1:0][1]:X===1?ee[re?0:xe-1][1]:ee[Math.floor((xe-1)/2)][1]}}else{var le=P.vertexcolor||P.facecolor||P.color;ie=hi.isArrayOrTypedArray(le)?le[X]||le[0]:le}N.attr("d",H[0]),ie?N.call(rl.fill,ie):N.call(ae)})}};function Lb(e,r){var t=r?"radial":"horizontal";return t+(e?"":"reversed")}function IF(e){var r=e[0].trace,t=r.contours,a=Lm.hasLines(r)||r.visible&&r.type==="quiver",n=Lm.hasMarkers(r),i=r.visible&&r.fill&&r.fill!=="none",o=!1,l=!1;if(t){var s=t.coloring;s==="lines"?o=!0:a=s==="none"||s==="heatmap"||t.showlines,t.type==="constraint"?i=t._operation!=="=":(s==="fill"||s==="heatmap")&&(l=!0)}return{showMarker:n,showLine:a,showFill:i,showGradientLine:o,showGradientFill:l,anyLine:a||o,anyFill:i||l}}function Em(e,r,t){return e&&hi.isArrayOrTypedArray(e)?r:e>t?t:e}});var Nb=oe((bbe,ZF)=>{"use strict";var Si=Lt(),_n=pr(),Rb=Ln(),hc=_t(),Rm=Lv(),Pb=el(),xn=ha(),Qv=Nt(),Ru=vi(),OF=Tb().handleItemClick,UF=Tb().handleTitleClick,$a=(Sm(),xr(Cm)),zb=(ci(),xr(fi)),jF=zb.LINE_SPACING,a2=zb.FROM_TL,GF=zb.FROM_BR,YF=SF(),iie=qb(),n2=Kv(),t2=1,oie=/^legend[0-9]*$/;ZF.exports=function(r,t){if(t)VF(r,t);else{var a=r._fullLayout,n=a._legends,i=a._infolayer.selectAll('[class^="legend"]');i.each(function(){var u=Si.select(this),f=u.attr("class"),c=f.split(" ")[0];c.match(oie)&&n.indexOf(c)===-1&&u.remove()});for(var o=0;o1)}var p=a.hiddenlabels||[];if(!l&&(!a.showlegend||!s.length))return o.selectAll("."+n).remove(),a._topdefs.select("#"+i).remove(),Rb.autoMargin(e,n);var m=_n.ensureSingle(o,"g",n,function(E){l||E.attr("pointer-events","all")}),b=_n.ensureSingleById(a._topdefs,"clipPath",i,function(E){E.append("rect")}),y=_n.ensureSingle(m,"rect","bg",function(E){E.attr("shape-rendering","crispEdges")});y.call(Qv.stroke,t.bordercolor).call(Qv.fill,t.bgcolor).style("stroke-width",t.borderwidth+"px");var C=_n.ensureSingle(m,"g","scrollbox"),x=t.title;t._titleWidth=0,t._titleHeight=0;var _;x.text?(_=_n.ensureSingle(C,"text",n+"titletext"),_.attr("text-anchor","start").call(xn.font,x.font).text(x.text),Pm(_,C,e,t,t2),!l&&(t.titleclick||t.titledoubleclick)&&fie(C,e,t,n)):(C.selectAll("."+n+"titletext").remove(),C.selectAll("."+n+"titletoggle").remove());var A=_n.ensureSingle(m,"rect","scrollbar",function(E){E.attr($a.scrollBarEnterAttrs).call(Qv.fill,$a.scrollBarColor)}),k=C.selectAll("g.groups").data(s);k.enter().append("g").attr("class","groups"),k.exit().remove();var M=k.selectAll("g.traces").data(_n.identity);M.enter().append("g").attr("class","traces"),M.exit().remove(),M.style("opacity",function(E){let P=E[0],z=P.trace;if(P.groupTitle){let I=z.legendgroup,V=(a.shapes||[]).filter(function(X){return X.showlegend});return e._fullData.concat(V).some(function(X){return X.legendgroup===I&&(X.legend||"legend")===n&&X.visible===!0})?1:.5}return hc.traceIs(z,"pie-like")?p.indexOf(E[0].label)!==-1?.5:1:z.visible==="legendonly"?.5:1}).each(function(){Si.select(this).call(sie,e,t)}).call(iie,e,t).each(function(E){l||E[0].groupTitle&&t.groupclick==="toggleitem"||Si.select(this).call(uie,e,n)}),_n.syncOrAsync([Rb.previousPromises,function(){return hie(e,k,M,t,C)},function(){var E=a._size,P=t.borderwidth,z=t.xref==="paper",I=t.yref==="paper";if(x.text){let Ne=(a.shapes||[]).filter(function(er){return er.showlegend}),Ze=e._fullData.concat(Ne).some(function(er){let Je=er.legend||"legend";var tr=Array.isArray(Je)?Je.includes(n):Je===n;return tr&&er.visible===!0});_.style("opacity",Ze?1:.5)}if(!l){var V,H;z?V=E.l+E.w*t.x-a2[zm(t)]*t._width:V=a.width*t.x-a2[zm(t)]*t._width,I?H=E.t+E.h*(1-t.y)-a2[Nm(t)]*t._effHeight:H=a.height*(1-t.y)-a2[Nm(t)]*t._effHeight;var X=die(e,n,V,H);if(X)return;if(a.margin.autoexpand){var N=V,Q=H;V=z?_n.constrain(V,0,a.width-t._width):N,H=I?_n.constrain(H,0,a.height-t._effHeight):Q,V!==N&&_n.log("Constrain "+n+".x to make legend fit inside graph"),H!==Q&&_n.log("Constrain "+n+".y to make legend fit inside graph")}xn.setTranslate(m,V,H)}if(A.on(".drag",null),m.on("wheel",null),l||t._height<=t._maxHeight||e._context.staticPlot){var ee=t._effHeight;l&&(ee=t._height),y.attr({width:t._width-P,height:ee-P,x:P/2,y:P/2}),xn.setTranslate(C,0,0),b.select("rect").attr({width:t._width-2*P,height:ee-2*P,x:P,y:P}),xn.setClipUrl(C,i,e),xn.setRect(A,0,0,0,0),delete t._scrollY}else{var re=Math.max($a.scrollBarMinHeight,t._effHeight*t._effHeight/t._height),ae=t._effHeight-re-2*$a.scrollBarMargin,ie=t._height-t._effHeight,le=ae/ie,xe=Math.min(t._scrollY||0,ie);y.attr({width:t._width-2*P+$a.scrollBarWidth+$a.scrollBarMargin,height:t._effHeight-P,x:P/2,y:P/2}),b.select("rect").attr({width:t._width-2*P+$a.scrollBarWidth+$a.scrollBarMargin,height:t._effHeight-2*P,x:P,y:P+xe}),xn.setClipUrl(C,i,e),he(xe,re,le),m.on("wheel",function(){xe=_n.constrain(t._scrollY+Si.event.deltaY/ie*ae,0,ie),he(xe,re,le),xe!==0&&xe!==ie&&Si.event.preventDefault()});var De,Ye,Ee,ke=function(Ne,Ze,er){var Je=(er-Ze)/le+Ne;return _n.constrain(Je,0,ie)},je=function(Ne,Ze,er){var Je=(Ze-er)/le+Ne;return _n.constrain(Je,0,ie)},W=Si.behavior.drag().on("dragstart",function(){var Ne=Si.event.sourceEvent;Ne.type==="touchstart"?De=Ne.changedTouches[0].clientY:De=Ne.clientY,Ee=xe}).on("drag",function(){var Ne=Si.event.sourceEvent;Ne.buttons===2||Ne.ctrlKey||(Ne.type==="touchmove"?Ye=Ne.changedTouches[0].clientY:Ye=Ne.clientY,xe=ke(Ee,De,Ye),he(xe,re,le))});A.call(W);var se=Si.behavior.drag().on("dragstart",function(){var Ne=Si.event.sourceEvent;Ne.type==="touchstart"&&(De=Ne.changedTouches[0].clientY,Ee=xe)}).on("drag",function(){var Ne=Si.event.sourceEvent;Ne.type==="touchmove"&&(Ye=Ne.changedTouches[0].clientY,xe=je(Ee,De,Ye),he(xe,re,le))});C.call(se)}function he(Ne,Ze,er){t._scrollY=e._fullLayout[n]._scrollY=Ne,xn.setTranslate(C,0,-Ne),xn.setRect(A,t._width,$a.scrollBarMargin+Ne*er,$a.scrollBarWidth,Ze),b.select("rect").attr("y",P+Ne)}if(e._context.edits.legendPosition){var K,J,fe,be;m.classed("cursor-move",!0),Pb.init({element:m.node(),gd:e,prepFn:function(Ne){if(Ne.target!==A.node()){var Ze=xn.getTranslate(m);fe=Ze.x,be=Ze.y}},moveFn:function(Ne,Ze){if(fe!==void 0&&be!==void 0){var er=fe+Ne,Je=be+Ze;xn.setTranslate(m,er,Je),K=Pb.align(er,t._width,E.l,E.l+E.w,t.xanchor),J=Pb.align(Je+t._height,-t._height,E.t+E.h,E.t,t.yanchor)}},doneFn:function(){if(K!==void 0&&J!==void 0){var Ne={};Ne[n+".x"]=K,Ne[n+".y"]=J,hc.call("_guiRelayout",e,Ne)}},clickFn:function(Ne,Ze){var er=o.selectAll("g.traces").filter(function(){var Je=this.getBoundingClientRect();return Ze.clientX>=Je.left&&Ze.clientX<=Je.right&&Ze.clientY>=Je.top&&Ze.clientY<=Je.bottom});er.size()>0&&WF(e,t,er,Ne,Ze)}})}}],e)}}function qm(e,r,t){var a=e[0],n=a.width,i=r.entrywidthmode,o=a.trace.legendwidth||r.entrywidth;return i==="fraction"?r._maxWidth*o:t+(o||n)}function WF(e,r,t,a,n){var i=e._fullLayout,o=t.data()[0][0].trace,l=r.itemclick,s=r.itemdoubleclick,u={event:n,node:t.node(),curveNumber:o.index,expandedIndex:o.index,data:e.data,layout:e.layout,frames:e._transitionData._frames,config:e._context,fullData:e._fullData,fullLayout:i};o._group&&(u.group=o._group),hc.traceIs(o,"pie-like")&&(u.label=t.datum()[0].label);var f=Rm.triggerHandler(e,"plotly_legendclick",u);if(a===1){if(f===!1)return;r._clickTimeout=setTimeout(function(){e._fullLayout&&l&&OF(t,e,r,l,a)},e._context.doubleClickDelay)}else if(a===2){r._clickTimeout&&clearTimeout(r._clickTimeout),e._legendMouseDownTime=0;var c=Rm.triggerHandler(e,"plotly_legenddoubleclick",u);c!==!1&&f!==!1&&s&&OF(t,e,r,s,a)}}function sie(e,r,t){var a=n2.getId(t),n=e.data()[0][0],i=n.trace,o=hc.traceIs(i,"pie-like"),l=!t._inHover&&r._context.edits.legendText&&!o,s=t._maxNameLength,u,f;n.groupTitle?(u=n.groupTitle.text,f=n.groupTitle.font):(f=t.font,t.entries?u=n.text:(u=o?n.label:i.name,i._meta&&(u=_n.templateString(u,i._meta))));var c=_n.ensureSingle(e,"text",a+"text");c.attr("text-anchor","start").call(xn.font,f).text(l?XF(u,s):u);var h=t.indentation+t.itemwidth+$a.itemGap*2;Ru.positionText(c,h,0),l?c.call(Ru.makeEditable,{gd:r,text:u}).call(Pm,e,r,t).on("edit",function(d){this.text(XF(d,s)).call(Pm,e,r,t);var p={};return p.name=d,n.trace._isShape?hc.call("_guiRelayout",r,"shapes["+i.index+"].name",p.name):hc.call("_guiRestyle",r,p,i.index)}):Pm(c,e,r,t)}function XF(e,r){var t=Math.max(4,r);if(e&&e.trim().length>=t/2)return e;e=e||"";for(var a=t-e.length;a>0;a--)e+=" ";return e}function uie(e,r,t){var a=r._context.doubleClickDelay,n,i=1,o=_n.ensureSingle(e,"rect",t+"toggle",function(l){r._context.staticPlot||l.style("cursor","pointer").attr("pointer-events","all"),l.call(Qv.fill,"rgba(0,0,0,0)")});r._context.staticPlot||(o.on("mousedown",function(){n=new Date().getTime(),n-r._legendMouseDownTimea&&(i=Math.max(i-1,1)),WF(r,l,e,i,Si.event)}}))}function fie(e,r,t,a){if(r._fullData.some(function(u){let f=u.legend||"legend";return(Array.isArray(f)?f.includes(a):f===a)&&hc.traceIs(u,"pie-like")}))return;let i=r._context.doubleClickDelay;var o,l=1;let s=_n.ensureSingle(e,"rect",a+"titletoggle",function(u){r._context.staticPlot||u.style("cursor","pointer").attr("pointer-events","all"),u.call(Qv.fill,"rgba(0,0,0,0)")});r._context.staticPlot||(s.on("mousedown",function(){o=new Date().getTime(),o-r._legendMouseDownTimei&&(l=Math.max(l-1,1));let u={event:Si.event,legendId:a,data:r.data,layout:r.layout,fullData:r._fullData,fullLayout:r._fullLayout};if(l===1&&t.titleclick){if(Rm.triggerHandler(r,"plotly_legendtitleclick",u)===!1)return;t._titleClickTimeout=setTimeout(function(){r._fullLayout&&UF(r,t,t.titleclick)},i)}else l===2&&(t._titleClickTimeout&&clearTimeout(t._titleClickTimeout),r._legendMouseDownTime=0,Rm.triggerHandler(r,"plotly_legendtitledoubleclick",u)!==!1&&t.titledoubleclick&&UF(r,t,t.titledoubleclick))}))}function Pm(e,r,t,a,n){a._inHover&&e.attr("data-notex",Ru.isPureTex(e.text())?null:!0),Ru.convertToTspans(e,t,function(){cie(r,t,a,n)})}function cie(e,r,t,a){var n=e.data()[0][0],i=n&&n.trace.showlegend;if(Array.isArray(i)&&(i=i[n.i]!==!1),!t._inHover&&n&&!i){e.remove();return}var o=e.select("g[class*=math-group]"),l=o.node(),s=n2.getId(t);t||(t=r._fullLayout[s]);var u=t.borderwidth,f;a===t2?f=t.title.font:n.groupTitle?f=n.groupTitle.font:f=t.font;var c=f.size*jF,h,d;if(l){var p=xn.bBox(l);h=p.height,d=p.width,a===t2?xn.setTranslate(o,u,u+h*.75):xn.setTranslate(o,0,h*.25)}else{var m="."+s+(a===t2?"title":"")+"text",b=e.select(m),y=Ru.lineCount(b),C=b.node();if(h=c*y,d=C?xn.bBox(C).width:0,a===t2)t.title.side==="left"&&(d+=$a.itemGap*2),Ru.positionText(b,u+$a.titlePad,u+c);else{var x=$a.itemGap*2+t.indentation+t.itemwidth;n.groupTitle&&(x=$a.itemGap,d-=t.indentation+t.itemwidth),Ru.positionText(b,x,-c*((y-1)/2-.3))}}if(a===t2)t._titleWidth=d,t._titleHeight=h;else{n.lineHeight=c;let _=$a.itemMinHeight+t.itemheight-$a.dfltFillHeight;n.height=Math.max(h,$a.itemMinHeight,_)+$a.itemHeightPad,n.width=d}}function vie(e){var r=0,t=0,a=e.title.side;return a&&(a.indexOf("left")!==-1&&(r=e._titleWidth),a.indexOf("top")!==-1&&(t=e._titleHeight)),[r,t]}function hie(e,r,t,a,n){var i=e._fullLayout,o=n2.getId(a);a||(a=i[o]);var l=i._size,s=n2.isVertical(a),u=n2.isGrouped(a),f=a.entrywidthmode==="fraction",c=a.borderwidth,h=2*c,d=$a.itemGap,p=a.indentation+a.itemwidth+d*2,m=2*(c+d),b=Nm(a),y=a.y<0||a.y===0&&b==="top",C=a.y>1||a.y===1&&b==="bottom",x=a.tracegroupgap,_={};let{orientation:A,yref:k}=a,{maxheight:M}=a,E=y||C||A!=="v"||k!=="paper";M||(M=E?.5:1);let P=E?i.height:l.h;a._maxHeight=Math.max(M>1?M:M*P,30);var z=0;a._width=0,a._height=0;var I=vie(a);if(s)t.each(function(Ne){var Ze=Ne[0].height;xn.setTranslate(this,c+I[0],c+I[1]+a._height+Ze/2+d),a._height+=Ze,a._width=Math.max(a._width,Ne[0].width)}),z=p+a._width,a._width+=d+p+h,a._height+=m,u&&(r.each(function(Ne,Ze){xn.setTranslate(this,0,Ze*a.tracegroupgap)}),a._height+=(a._lgroupsLength-1)*a.tracegroupgap);else{var V=zm(a),H=a.x<0||a.x===0&&V==="right",X=a.x>1||a.x===1&&V==="left",N=C||y,Q=i.width/2;a._maxWidth=Math.max(H?N&&V==="left"?l.l+l.w:Q:X?N&&V==="right"?l.r+l.w:Q:l.w,2*p);var ee=0,re=0;t.each(function(Ne){var Ze=qm(Ne,a,p);ee=Math.max(ee,Ze),re+=Ze}),z=null;var ae=0;if(u){var ie=0,le=0,xe=0;r.each(function(){var Ne=0,Ze=0;Si.select(this).selectAll("g.traces").each(function(Je){var tr=qm(Je,a,p),ze=Je[0].height;xn.setTranslate(this,I[0],I[1]+c+d+ze/2+Ze),Ze+=ze,Ne=Math.max(Ne,tr),_[Je[0].trace.legendgroup]=Ne});var er=Ne+d;le>0&&er+c+le>a._maxWidth?(ae=Math.max(ae,le),le=0,xe+=ie+x,ie=Ze):ie=Math.max(ie,Ze),xn.setTranslate(this,le,xe),le+=er}),a._width=Math.max(ae,le)+c,a._height=xe+ie+m}else{var De=t.size(),Ye=re+h+(De-1)*d=a._maxWidth&&(ae=Math.max(ae,W),ke=0,je+=Ee,a._height+=Ee,Ee=0),xn.setTranslate(this,I[0]+c+ke,I[1]+c+je+Ze/2+d),W=ke+er+d,ke+=Je,Ee=Math.max(Ee,Ze)}),Ye?(a._width=ke+h,a._height=Ee+m):(a._width=Math.max(ae,W)+h,a._height+=Ee+m)}}a._width=Math.ceil(Math.max(a._width+I[0],a._titleWidth+2*(c+$a.titlePad))),a._height=Math.ceil(Math.max(a._height+I[1],a._titleHeight+2*(c+$a.itemGap))),a._effHeight=Math.min(a._height,a._maxHeight);var se=e._context.edits,he=se.legendText||se.legendPosition;if(t.each(function(Ne){var Ze=Si.select(this).select("."+o+"toggle"),er=Ne[0].height,Je=Ne[0].trace.legendgroup,tr=qm(Ne,a,p);u&&Je!==""&&(tr=_[Je]);var ze=he?p:z||tr;!s&&!f&&(ze+=d/2),xn.setRect(Ze,0,-er/2,ze,er)}),a._inHover){let Ne=a._width-h-d-I[0];t.each(function(Ze){Ze[0].textAlign==="right"&&Si.select(this).select("."+o+"text").attr("text-anchor","end").call(Ru.positionText,Ne)})}var K=n.select("."+o+"titletext");K.node()&&lie(K,a,c);var J=n.select("."+o+"titletoggle");if(J.size()&&K.node()){var fe=K.attr("x")||0,be=$a.titlePad;xn.setRect(J,fe-be,c,a._titleWidth+2*be,a._titleHeight+2*be)}}function die(e,r,t,a){var n=e._fullLayout,i=n[r],o=zm(i),l=Nm(i),s=i.xref==="paper",u=i.yref==="paper";e._fullLayout._reservedMargin[r]={};var f=i.y<.5?"b":"t",c=i.x<.5?"l":"r",h={r:n.width-t,l:t+i._width,b:n.height-a,t:a+i._effHeight};if(s&&u)return Rb.autoMargin(e,r,{x:i.x,y:i.y,l:i._width*a2[o],r:i._width*GF[o],b:i._effHeight*GF[l],t:i._effHeight*a2[l]});s?e._fullLayout._reservedMargin[r][f]=h[f]:u||i.orientation==="v"?e._fullLayout._reservedMargin[r][c]=h[c]:e._fullLayout._reservedMargin[r][f]=h[f]}function zm(e){return _n.isRightAnchor(e)?"right":_n.isCenterAnchor(e)?"center":"left"}function Nm(e){return _n.isBottomAnchor(e)?"bottom":_n.isMiddleAnchor(e)?"middle":"top"}});var Ub=oe(Ob=>{"use strict";var Nu=Lt(),zu=Qt(),Ja=pr(),pie=Ja.pushUnique,Bb=Ja.strTranslate,mie=Ja.strRotate,gie=Lv(),Ya=vi(),yie=xF(),Bs=ha(),kn=Nt(),Bm=el(),Is=Ga(),bie=(Hn(),xr(In)).zindexSeparator,dc=_t(),Do=Pu(),pc=(iv(),xr(nv)),_ie=wb(),xie=Nb(),nE=pc.YANGLE,Hb=Math.PI*nE/180,wie=1/Math.sin(Hb),Aie=Math.cos(Hb),Mie=Math.sin(Hb),Ra=pc.HOVERARROWSIZE,Ot=pc.HOVERTEXTPAD,$F={box:!0,ohlc:!0,violin:!0,candlestick:!0},Tie={scatter:!0,scattergl:!0,splom:!0};function JF(e,r){return e.distance-r.distance}Ob.hover=function(r,t,a,n){r=Ja.getGraphDiv(r);var i=t.target;Ja.throttle(r._fullLayout._uid+pc.HOVERID,pc.HOVERMINTIME,function(){Cie(r,t,a,n,i)})};Ob.loneHover=function(r,t){var a=!0;Array.isArray(r)||(a=!1,r=[r]);var n=t.gd,i=sE(n),o=uE(n),l=r.map(function(p){var m=p._x0||p.x0||p.x||0,b=p._x1||p.x1||p.x||0,y=p._y0||p.y0||p.y||0,C=p._y1||p.y1||p.y||0,x=p.eventData;if(x){var _=Math.min(m,b),A=Math.max(m,b),k=Math.min(y,C),M=Math.max(y,C),E=p.trace;if(dc.traceIs(E,"gl3d")){var P=n._fullLayout[E.scene]._scene.container,z=P.offsetLeft,I=P.offsetTop;_+=z,A+=z,k+=I,M+=I}x.bbox={x0:_+o,x1:A+o,y0:k+i,y1:M+i},x.xPixel=(m+b)/2,x.yPixel=(y+C)/2,t.inOut_bbox&&t.inOut_bbox.push(x.bbox)}else x=!1;return{color:p.color||kn.defaultLine,x0:p.x0||p.x||0,x1:p.x1||p.x||0,y0:p.y0||p.y||0,y1:p.y1||p.y||0,xLabel:p.xLabel,yLabel:p.yLabel,zLabel:p.zLabel,text:p.text,name:p.name,idealAlign:p.idealAlign,borderColor:p.borderColor,fontFamily:p.fontFamily,fontSize:p.fontSize,fontColor:p.fontColor,fontWeight:p.fontWeight,fontStyle:p.fontStyle,fontVariant:p.fontVariant,nameLength:p.nameLength,textAlign:p.textAlign,trace:p.trace||{index:0,hoverinfo:""},xa:{_offset:0},ya:{_offset:0},index:0,hovertemplate:p.hovertemplate||!1,hovertemplateLabels:p.hovertemplateLabels||!1,eventData:x}}),s=!1,u=oE(l,{gd:n,hovermode:"closest",rotateLabels:s,bgColor:t.bgColor||kn.background,container:Nu.select(t.container),outerContainer:t.outerContainer||t.container}),f=u.hoverLabels;function c(){var p=5,m=0,b=0;f.sort(function(y,C){return y.y0-C.y0}).each(function(y,C){var x=y.y0-y.by/2;x-pE[0]._length||Ze<0||Ze>P[0]._length)return Bm.unhoverRaw(e,r)}if(r.pointerX=Ne+E[0]._offset,r.pointerY=Ze+P[0]._offset,"xval"in r?ee=Do.flat(i,r.xval):ee=Do.p2c(E,Ne),"yval"in r?re=Do.flat(i,r.yval):re=Do.p2c(P,Ze),e._hoverPointerX=r.pointerX,e._hoverPointerY=r.pointerY,!zu(ee[0])||!zu(re[0]))return Ja.warn("Fx.hover failed",r,e),Bm.unhoverRaw(e,r)}l.clickanywhere&&(e._hoverXVals=ee,e._hoverYVals=re,e._hoverXAxes=E,e._hoverYAxes=P);var tr=1/0;function ze(Rr,Vt){for(ie=0;iese&&(N.splice(0,se),tr=N[0].distance),dc.traceIs(xe,"ternary")&&X!==0){let Ba=W.subplot;if(["aaxis","baxis","caxis"].some(Qa=>Ba[Qa].showspikes&&Ba[Qa].spikesnap!=="hovered data")){let Qa=Zt==null?void 0:Zt[0];if(!Number.isFinite(Qa==null?void 0:Qa.spikeDistance)){let co=Ja.extendFlat({},W,{distance:X,index:!1}),Ia=xe._module.hoverPoints(co,ke,je,"closest");Qa=Ia&&Ia[0]}let zo=K[De];Qa&&Qa.index!==void 0&&Qa.index!==!1&&Qa.spikeDistance<=X&&(!zo||Qa.spikeDistance$t.spikeDistance)&&(he.vLinePoint=$t))}var Pi=Rt.filter(function(Ba){return Ba.ya.showspikes&&Ba.ya.spikesnap!=="hovered data"});if(Pi.length){var Kn=Pi[0];zu(Kn.x0)&&zu(Kn.y0)&&($t=Ar(Kn),(!he.hLinePoint||he.hLinePoint.spikeDistance>$t.spikeDistance)&&(he.hLinePoint=$t))}}}}}ze();function lr(){if(l._hoverlayer.selectAll(".ternary-spikes").remove(),X!==0)for(let Rr=0;Rrma.trace.subplot===Vt&&ma.index!==void 0&&ma.index!==!1&&ma.spikeDistance<=X);Et.drawSpikelines(Zt,K[Vt],ee&&ee[Rr],re&&re[Rr])}}}function hr(Rr,Vt,Et){for(var Zt=null,ma=1/0,Ea,Rt=0;RtRr.trace.index===vr.trace.index):N=[vr];var kr=N.length,Er=aE("x",vr,l),jr=aE("y",vr,l);ze(Er,jr);var et=[],nr={},Cr=0,ar=function(Rr){var Vt=$F[Rr.trace.type]?iE(Rr):Rr.trace.index;if(!nr[Vt])Cr++,nr[Vt]=Cr,et.push(Rr);else{var Et=nr[Vt]-1,Zt=et[Et];Et>0&&Math.abs(Rr.distance)kr-1;Fr--)ar(N[Fr]);N=et,Te()}var Wr=e._hoverdata,Br=[],Zr=sE(e),Ae=uE(e);for(let Rr of N){var Be=Do.makeEventData(Rr,Rr.trace,Rr.cd);if(Rr.hovertemplate!==!1){var or=!1;Rr.cd[Rr.index]&&Rr.cd[Rr.index].ht&&(or=Rr.cd[Rr.index].ht),Rr.hovertemplate=or||Rr.trace.hovertemplate||!1}if(Rr.xa&&Rr.ya){var dr=Rr.x0+Rr.xa._offset,Dt=Rr.x1+Rr.xa._offset,Wt=Rr.y0+Rr.ya._offset,ba=Rr.y1+Rr.ya._offset,_a=Math.min(dr,Dt),Xt=Math.max(dr,Dt),Ht=Math.min(Wt,ba),la=Math.max(Wt,ba);Be.bbox={x0:_a+Ae,x1:Xt+Ae,y0:Ht+Zr,y1:la+Zr},Be.xPixel=(dr+Dt)/2,Be.yPixel=(Wt+ba)/2}Rr.eventData=[Be],Br.push(Be)}e._hoverdata=Br;var Pt=d==="y"&&(Q.length>1||N.length>1)||d==="closest"&&J&&N.length>1,Ta=kn.combine(l.plot_bgcolor||kn.background,l.paper_bgcolor),pa=oE(N,{gd:e,hovermode:d,rotateLabels:Pt,bgColor:Ta,container:l._hoverlayer,outerContainer:l._paper.node(),commonLabelOpts:l.hoverlabel,hoverdistance:l.hoverdistance}),Xa=pa.hoverLabels;if(Do.isUnifiedHover(d)||(QF(Xa,Pt,l,pa.commonLabelBoundingBox),Hm(Xa,Pt,l._invScaleX,l._invScaleY),pa.mathjaxPromise&&pa.mathjaxPromise.then(function(){e._hoverdata===Br&&(QF(Xa,Pt,l,pa.commonLabelBoundingBox),Hm(Xa,Pt,l._invScaleX,l._invScaleY),Xa.each(function(){var Rr=Nu.select(this);Ya.repositionMathGroup(Rr.select("text.nums")),Ya.repositionMathGroup(Rr.select("text.name"))}))})),n&&n.tagName){var hn=dc.getComponentMethod("annotations","hasClickToShow")(e,Br);yie(Nu.select(n),hn?"pointer":"")}var ja=Eie(e,r,Wr);if(!n||a||!ja&&!l.hoveranywhere)return;Wr&&ja&&e.emit("plotly_unhover",{event:r,points:Wr}),Fa(e._hoverdata);function Fa(Rr){e.emit("plotly_hover",{event:r,points:Rr,xaxes:E,yaxes:P,xvals:Do.c2dApply(E,ee),yvals:Do.c2dApply(P,re),xPixel:r.pointerX,yPixel:r.pointerY})}}function iE(e){return[e.trace.index,e.index,e.x0,e.y0,e.name,e.attr,e.xa?e.xa._id:"",e.ya?e.ya._id:""].join(",")}var Sie=/([\s\S]*)<\/extra>/;function Ib(e,r){return Im(e,Ya.getMathOrTextNode(r))}function oE(e,r){var t=r.gd,a=t._fullLayout,n=r.hovermode,i=r.rotateLabels,o=r.bgColor,l=r.container,s=r.outerContainer,u=r.commonLabelOpts||{};if(e.length===0)return[[]];var f=[],c=r.fontFamily||pc.HOVERFONT,h=r.fontSize||pc.HOVERFONTSIZE,d=r.fontWeight||a.font.weight,p=r.fontStyle||a.font.style,m=r.fontVariant||a.font.variant,b=r.fontTextcase||a.font.textcase,y=r.fontLineposition||a.font.lineposition,C=r.fontShadow||a.font.shadow,x=e[0],_=x.xa,A=x.ya,k=n.charAt(0),M=k+"Label",E=x[M];if(E===void 0&&_.type==="multicategory")for(var P=0;Pa.width-Zr&&(Ae=a.width-Zr),He.attr("d","M"+(Fr-Ae)+",0L"+(Fr-Ae+Ra)+","+Br+Ra+"H"+Zr+"v"+Br+(Ot*2+ar.height)+"H"+-Zr+"V"+Br+Ra+"H"+(Fr-Ae-Ra)+"Z"),Fr=Ae,ie.minX=Fr-Zr,ie.maxX=Fr+Zr,_.side==="top"?(ie.minY=Wr-(Ot*2+ar.height),ie.maxY=Wr-Ot):(ie.minY=Wr+Ot,ie.maxY=Wr+(Ot*2+ar.height))}else{var Be,or,dr;A.side==="right"?(Be="start",or=1,dr="",Fr=_._offset+_._length):(Be="end",or=-1,dr="-",Fr=_._offset),Wr=A._offset+(x.y0+x.y1)/2,cr.attr("text-anchor",Be),He.attr("d","M0,0L"+dr+Ra+","+Ra+"V"+(Ot+ar.height/2)+"h"+dr+(Ot*2+ar.width)+"V-"+(Ot+ar.height/2)+"H"+dr+Ra+"V-"+Ra+"Z"),ie.minY=Wr-(Ot+ar.height/2),ie.maxY=Wr+(Ot+ar.height/2),A.side==="right"?(ie.minX=Fr+Ra,ie.maxX=Fr+Ra+(Ot*2+ar.width)):(ie.minX=Fr-Ra-(Ot*2+ar.width),ie.maxX=Fr-Ra);var Dt=ar.height/2,Wt=I-ar.top-Dt,ba="clip"+a._uid+"commonlabel"+A._id,_a;if(FrHe.hoverinfo!=="none");if(Ce.length===0)return[];var le=a.hoverlabel,xe=le.font,De=Ce[0],Ye=((n==="x unified"?De.xa:De.ya).unifiedhovertitle||{}).text,Ee=Ye?Ja.hovertemplateString({data:n==="x unified"?[{xa:De.xa,x:De.xVal}]:[{ya:De.ya,y:De.yVal}],fallback:De.trace.hovertemplatefallback,locale:a._d3locale,template:Ye}):E,ke={showlegend:!0,legend:{title:{text:Ee,font:xe},font:xe,bgcolor:le.bgcolor,bordercolor:le.bordercolor,borderwidth:1,tracegroupgap:7,traceorder:a.legend?a.legend.traceorder:void 0,orientation:"v"}},je={font:xe};_ie(ke,je,t._fullData);var W=je.legend;W.entries=[];for(var se=0;se=0?_r=mr:qr+er=0?_r=qr:Te+er=0?Pr=Ar:Qe+Je=0?Pr=Qe:Ue+Je=0,(Ce.idealAlign==="top"||!pa)&&Xa?(dr-=Wt/2,Ce.anchor="end"):pa?(dr+=Wt/2,Ce.anchor="start"):Ce.anchor="middle",Ce.crossPos=dr;else{if(Ce.pos=dr,pa=or+Dt/2+Ta<=V,Xa=or-Dt/2-Ta>=0,(Ce.idealAlign==="left"||!pa)&&Xa)or-=Dt/2,Ce.anchor="end";else if(pa)or+=Dt/2,Ce.anchor="start";else{Ce.anchor="middle";var hn=Ta/2,ja=or+hn-V,Fa=or-hn;ja>0&&(or-=ja),Fa<0&&(or+=-Fa)}Ce.crossPos=or}Zr.attr("text-anchor",Ce.anchor),ba&&Ae.attr("text-anchor",Ce.anchor),He.attr("transform",Bb(or,dr)+(i?mie(nE):""))}}),{hoverLabels:Nr,commonLabelBoundingBox:ie,mathjaxPromise:f.length?Promise.all(f):null}}function KF(e,r,t,a,n,i){var c,h;var o="",l="";e.nameOverride!==void 0&&(e.name=e.nameOverride),e.name&&(e.trace._meta&&(e.name=Ja.templateString(e.name,e.trace._meta)),o=tE(e.name,e.nameLength));var s=t.charAt(0),u=s==="x"?"y":"x";e.zLabel!==void 0?(e.xLabel!==void 0&&(l+="x: "+e.xLabel+"
"),e.yLabel!==void 0&&(l+="y: "+e.yLabel+"
"),e.trace.type!=="choropleth"&&e.trace.type!=="choroplethmap"&&(l+=(l?"z: ":"")+e.zLabel)):r&&e[s+"Label"]===n?l=e[u+"Label"]||"":e.xLabel===void 0?e.yLabel!==void 0&&e.trace.type!=="scattercarpet"&&(l=e.yLabel):e.yLabel===void 0?l=e.xLabel:l="("+e.xLabel+", "+e.yLabel+")",(e.text||e.text===0)&&!Array.isArray(e.text)&&(l+=(l?"
":"")+e.text),e.extraText!==void 0&&(l+=(l?"
":"")+e.extraText),i&&l===""&&!e.hovertemplate&&(o===""&&i.remove(),l=o),(h=(c=e.trace)==null?void 0:c.hoverlabel)!=null&&h.split&&(e.hovertemplate="");let{hovertemplate:f=!1}=e;if(f){let d=e.hovertemplateLabels||e;e[s+"Label"]!==n&&(d[s+"other"]=d[s+"Val"],d[s+"otherLabel"]=d[s+"Label"]),l=Ja.hovertemplateString({data:[e.eventData[0]||{},e.trace._meta],fallback:e.trace.hovertemplatefallback,labels:d,locale:a._d3locale,template:f}),l=l.replace(Sie,(p,m)=>(o=tE(m,e.nameLength),""))}return[l,o]}function QF(e,r,t,a){var n=r?"xa":"ya",i=r?"ya":"xa",o=0,l=1,s=e.size(),u=new Array(s),f=0,c=a.minX,h=a.maxX,d=a.minY,p=a.maxY,m=function(Q){return Q*t._invScaleX},b=function(Q){return Q*t._invScaleY};e.each(function(Q){var ee=Q[n],re=Q[i],ae=ee._id.charAt(0)==="x",ie=ee.range;f===0&&ie&&ie[0]>ie[1]!==ae&&(l=-1);var le=0,xe=ae?t.width:t.height;if(t.hovermode==="x"||t.hovermode==="y"){var De=lE(Q,r),Ye=Q.anchor,Ee=Ye==="end"?-1:1,ke,je;if(Ye==="middle")ke=Q.crossPos+(ae?b(De.y-Q.by/2):m(Q.bx/2+Q.tx2width/2)),je=ke+(ae?b(Q.by):m(Q.bx));else if(ae)ke=Q.crossPos+b(Ra+De.y)-b(Q.by/2-Ra),je=ke+b(Q.by);else{var W=m(Ee*Ra+De.x),se=W+m(Ee*Q.bx);ke=Q.crossPos+Math.min(W,se),je=Q.crossPos+Math.max(W,se)}ae?d!==void 0&&p!==void 0&&Math.min(je,p)-Math.max(ke,d)>1&&(re.side==="left"?(le=re._mainLinePosition,xe=t.width):xe=re._mainLinePosition):c!==void 0&&h!==void 0&&Math.min(je,h)-Math.max(ke,c)>1&&(re.side==="top"?(le=re._mainLinePosition,xe=t.height):xe=re._mainLinePosition)}u[f++]=[{datum:Q,traceIndex:Q.trace.index,dp:0,pos:Q.pos,posref:Q.posref,size:Q.by*(ae?wie:1)/2,pmin:le,pmax:xe}]}),u.sort(function(Q,ee){return Q[0].posref-ee[0].posref||l*(ee[0].traceIndex-Q[0].traceIndex)});var y,C,x,_,A,k,M;function E(Q){var ee=Q[0],re=Q[Q.length-1];if(C=ee.pmin-ee.pos-ee.dp+ee.size,x=re.pos+re.dp+re.size-ee.pmax,C>.01){for(A=Q.length-1;A>=0;A--)Q[A].dp+=C;y=!1}if(!(x<.01)){if(C<-.01){for(A=Q.length-1;A>=0;A--)Q[A].dp-=x;y=!1}if(y){var ae=0;for(_=0;_ee.pmax&&ae++;for(_=Q.length-1;_>=0&&!(ae<=0);_--)k=Q[_],k.pos>ee.pmax-1&&(k.del=!0,ae--);for(_=0;_=0;A--)Q[A].dp-=x;for(_=Q.length-1;_>=0&&!(ae<=0);_--)k=Q[_],k.pos+k.dp+k.size>ee.pmax&&(k.del=!0,ae--)}}}for(;!y&&o<=s;){for(o++,y=!0,_=0;_.01){for(A=z.length-1;A>=0;A--)z[A].dp+=C;for(P.push.apply(P,z),u.splice(_+1,1),M=0,A=P.length-1;A>=0;A--)M+=P[A].dp;for(x=M/P.length,A=P.length-1;A>=0;A--)P[A].dp-=x;y=!1}else _++}u.forEach(E)}for(_=u.length-1;_>=0;_--){var H=u[_];for(A=H.length-1;A>=0;A--){var X=H[A],N=X.datum;N.offset=X.dp,N.del=X.del}}}function lE(e,r){var t=0,a=e.offset;return r&&(a*=-Mie,t=e.offset*Aie),{x:t,y:a}}function Die(e){var r={start:1,end:-1,middle:0}[e.anchor],t=r*(Ra+Ot),a=t+r*(e.txwidth+Ot),n=e.anchor==="middle";return n&&(t-=e.tx2width/2,a+=e.txwidth/2+Ot),{alignShift:r,textShiftX:t,text2ShiftX:a}}function Hm(e,r,t,a){var n=function(o){return o*t},i=function(o){return o*a};e.each(function(o){var l=Nu.select(this);if(o.del)return l.remove();var s=l.select("text.nums"),u=o.anchor,f=u==="end"?-1:1,c=Die(o),h=lE(o,r),d=h.x,p=h.y,m=u==="middle",b="hoverlabel"in o.trace?o.trace.hoverlabel.showarrow:!0,y;m?y="M-"+n(o.bx/2+o.tx2width/2)+","+i(p-o.by/2)+"h"+n(o.bx)+"v"+i(o.by)+"h-"+n(o.bx)+"Z":b?y="M0,0L"+n(f*Ra+d)+","+i(Ra+p)+"v"+i(o.by/2-Ra)+"h"+n(f*o.bx)+"v-"+i(o.by)+"H"+n(f*Ra+d)+"V"+i(p-Ra)+"Z":y="M"+n(f*Ra+d)+","+i(p-o.by/2)+"h"+n(f*o.bx)+"v"+i(o.by)+"h"+n(-f*o.bx)+"Z",l.select("path").attr("d",y);var C=d+c.textShiftX,x=p+o.ty0-o.by/2+Ot,_=o.textAlign||"auto";_!=="auto"&&(_==="left"&&u!=="start"?(s.attr("text-anchor","start"),C=m?-o.bx/2-o.tx2width/2+Ot:-o.bx-Ot):_==="right"&&u!=="end"&&(s.attr("text-anchor","end"),C=m?o.bx/2-o.tx2width/2-Ot:o.bx+Ot)),s.call(Ya.positionText,n(C),i(x)),o.tx2width&&(l.select("text.name").call(Ya.positionText,n(c.text2ShiftX+c.alignShift*Ot+d),i(p+o.ty0-o.by/2+Ot)),l.select("rect").call(Bs.setRect,n(c.text2ShiftX+(c.alignShift-1)*o.tx2width/2+d),i(p-o.by/2-1),n(o.tx2width),i(o.by+2)))})}function Fie(e,r){var t=e.index,a=e.trace||{},n=e.cd[0],i=e.cd[t]||{};function o(h){return h||zu(h)&&h===0}var l=Array.isArray(t)?function(h,d){var p=Ja.castOption(n,t,h);return o(p)?p:Ja.extractOption({},a,"",d)}:function(h,d){return Ja.extractOption(i,a,h,d)};function s(h,d,p){var m=l(d,p);o(m)&&(e[h]=m)}if(s("hoverinfo","hi","hoverinfo"),s("bgcolor","hbg","hoverlabel.bgcolor"),s("borderColor","hbc","hoverlabel.bordercolor"),s("fontFamily","htf","hoverlabel.font.family"),s("fontSize","hts","hoverlabel.font.size"),s("fontColor","htc","hoverlabel.font.color"),s("fontWeight","htw","hoverlabel.font.weight"),s("fontStyle","hty","hoverlabel.font.style"),s("fontVariant","htv","hoverlabel.font.variant"),s("nameLength","hnl","hoverlabel.namelength"),s("textAlign","hta","hoverlabel.align"),e.posref=r==="y"||r==="closest"&&a.orientation==="h"?e.xa._offset+(e.x0+e.x1)/2:e.ya._offset+(e.y0+e.y1)/2,e.x0=Ja.constrain(e.x0,0,e.xa._length),e.x1=Ja.constrain(e.x1,0,e.xa._length),e.y0=Ja.constrain(e.y0,0,e.ya._length),e.y1=Ja.constrain(e.y1,0,e.ya._length),e.xLabelVal!==void 0&&(e.xLabel="xLabel"in e?e.xLabel:Is.hoverLabelText(e.xa,e.xLabelVal,a.xhoverformat),e.xVal=e.xa.c2d(e.xLabelVal)),e.yLabelVal!==void 0&&(e.yLabel="yLabel"in e?e.yLabel:Is.hoverLabelText(e.ya,e.yLabelVal,a.yhoverformat),e.yVal=e.ya.c2d(e.yLabelVal)),e.zLabelVal!==void 0&&e.zLabel===void 0&&(e.zLabel=String(e.zLabelVal)),!isNaN(e.xerr)&&!(e.xa.type==="log"&&e.xerr<=0)){var u=Is.tickText(e.xa,e.xa.c2l(e.xerr),"hover").text;e.xerrneg!==void 0?e.xLabel+=" +"+u+" / -"+Is.tickText(e.xa,e.xa.c2l(e.xerrneg),"hover").text:e.xLabel+=" \xB1 "+u,r==="x"&&(e.distance+=1)}if(!isNaN(e.yerr)&&!(e.ya.type==="log"&&e.yerr<=0)){var f=Is.tickText(e.ya,e.ya.c2l(e.yerr),"hover").text;e.yerrneg!==void 0?e.yLabel+=" +"+f+" / -"+Is.tickText(e.ya,e.ya.c2l(e.yerrneg),"hover").text:e.yLabel+=" \xB1 "+f,r==="y"&&(e.distance+=1)}var c=e.hoverinfo||e.trace.hoverinfo;return c&&c!=="all"&&(c=Array.isArray(c)?c:c.split("+"),c.indexOf("x")===-1&&(e.xLabel=void 0),c.indexOf("y")===-1&&(e.yLabel=void 0),c.indexOf("z")===-1&&(e.zLabel=void 0),c.indexOf("text")===-1&&(e.text=void 0),c.indexOf("name")===-1&&(e.name=void 0)),e}function eE(e,r,t){var a=t.container,n=t.fullLayout,i=n._size,o=t.event,l=!!r.hLinePoint,s=!!r.vLinePoint,u,f;if(a.selectAll(".spikeline").remove(),!!(s||l)){var c=kn.combine(n.plot_bgcolor,n.paper_bgcolor);if(l){var h=r.hLinePoint,d,p;u=h&&h.xa,f=h&&h.ya;var m=f.spikesnap;m==="cursor"?(d=o.pointerX,p=o.pointerY):(d=u._offset+h.x,p=f._offset+h.y);var b=kn.wcagContrast(h.color,c)<1.5?kn.contrast(c):h.color,y=f.spikemode,C=f.spikethickness,x=f.spikecolor||b,_=Is.getPxPosition(e,f),A,k;if(y.indexOf("toaxis")!==-1||y.indexOf("across")!==-1){if(y.indexOf("toaxis")!==-1&&(A=_,k=d),y.indexOf("across")!==-1){var M=f._counterDomainMin,E=f._counterDomainMax;f.anchor==="free"&&(M=Math.min(M,f.position),E=Math.max(E,f.position)),A=i.l+M*i.w,k=i.l+E*i.w}a.insert("line",":first-child").attr({x1:A,x2:k,y1:p,y2:p,"stroke-width":C,stroke:x,"stroke-dasharray":Bs.dashStyle(f.spikedash,C)}).classed("spikeline",!0).classed("crisp",!0),a.insert("line",":first-child").attr({x1:A,x2:k,y1:p,y2:p,"stroke-width":C+2,stroke:c}).classed("spikeline",!0).classed("crisp",!0)}y.indexOf("marker")!==-1&&a.insert("circle",":first-child").attr({cx:_+(f.side!=="right"?C:-C),cy:p,r:C,fill:x}).classed("spikeline",!0)}if(s){var P=r.vLinePoint,z,I;u=P&&P.xa,f=P&&P.ya;var V=u.spikesnap;V==="cursor"?(z=o.pointerX,I=o.pointerY):(z=u._offset+P.x,I=f._offset+P.y);var H=kn.wcagContrast(P.color,c)<1.5?kn.contrast(c):P.color,X=u.spikemode,N=u.spikethickness,Q=u.spikecolor||H,ee=Is.getPxPosition(e,u),re,ae;if(X.indexOf("toaxis")!==-1||X.indexOf("across")!==-1){if(X.indexOf("toaxis")!==-1&&(re=ee,ae=I),X.indexOf("across")!==-1){var ie=u._counterDomainMin,le=u._counterDomainMax;u.anchor==="free"&&(ie=Math.min(ie,u.position),le=Math.max(le,u.position)),re=i.t+(1-le)*i.h,ae=i.t+(1-ie)*i.h}a.insert("line",":first-child").attr({x1:z,x2:z,y1:re,y2:ae,"stroke-width":N,stroke:Q,"stroke-dasharray":Bs.dashStyle(u.spikedash,N)}).classed("spikeline",!0).classed("crisp",!0),a.insert("line",":first-child").attr({x1:z,x2:z,y1:re,y2:ae,"stroke-width":N+2,stroke:c}).classed("spikeline",!0).classed("crisp",!0)}X.indexOf("marker")!==-1&&a.insert("circle",":first-child").attr({cx:z,cy:ee-(u.side!=="top"?N:-N),r:N,fill:Q}).classed("spikeline",!0)}}}function Eie(e,r,t){if(!t||t.length!==e._hoverdata.length)return!0;for(var a=t.length-1;a>=0;a--){var n=t[a],i=e._hoverdata[a];if(n.curveNumber!==i.curveNumber||String(n.pointNumber)!==String(i.pointNumber)||String(n.pointNumbers)!==String(i.pointNumbers)||n.binNumber!==i.binNumber)return!0}return!1}function rE(e,r){return!r||r.vLinePoint!==e._spikepoints.vLinePoint||r.hLinePoint!==e._spikepoints.hLinePoint}function tE(e,r){return Ya.plainText(e||"",{len:r,allowedTags:["br","sub","sup","b","i","em","s","u"]})}function Lie(e,r){for(var t=r.charAt(0),a=[],n=[],i=[],o=0;oe.offsetTop+e.clientTop,uE=e=>e.offsetLeft+e.clientLeft;function Im(e,r){var t=e._fullLayout,a=r.getBoundingClientRect(),n=a.left,i=a.top,o=n+a.width,l=i+a.height,s=Ja.apply3DTransform(t._invTransform)(n,i),u=Ja.apply3DTransform(t._invTransform)(o,l),f=s[0],c=s[1],h=u[0],d=u[1];return{x:f,y:c,width:h-f,height:d-c,top:Math.min(c,d),left:Math.min(f,h),right:Math.max(f,h),bottom:Math.max(c,d)}}});var Om=oe((xbe,fE)=>{"use strict";var qie=pr(),Pie=Nt(),Rie=Pu().isUnifiedHover;fE.exports=function(r,t,a,n){n=n||{};var i=t.legend;function o(l){n.font[l]||(n.font[l]=i?t.legend.font[l]:t.font[l])}t&&Rie(t.hovermode)&&(n.font||(n.font={}),o("size"),o("family"),o("color"),o("weight"),o("style"),o("variant"),i?(n.bgcolor||(n.bgcolor=Pie.combine(t.legend.bgcolor,t.paper_bgcolor)),n.bordercolor||(n.bordercolor=t.legend.bordercolor)):n.bgcolor||(n.bgcolor=t.paper_bgcolor)),a("hoverlabel.bgcolor",n.bgcolor),a("hoverlabel.bordercolor",n.bordercolor),a("hoverlabel.namelength",n.namelength),a("hoverlabel.showarrow",n.showarrow),qie.coerceFont(a,"hoverlabel.font",n.font),a("hoverlabel.align",n.align)}});var vE=oe((wbe,cE)=>{"use strict";var zie=pr(),Nie=Om(),Bie=g1();cE.exports=function(r,t){function a(n,i){return zie.coerce(r,t,Bie,n,i)}Nie(r,t,a)}});var pE=oe((Abe,dE)=>{"use strict";var hE=pr(),Iie=Pd(),Hie=Om();dE.exports=function(r,t,a,n){function i(l,s){return hE.coerce(r,t,Iie,l,s)}var o=hE.extendFlat({},n.hoverlabel);t.hovertemplate&&(o.namelength=-1),Hie(r,t,i,o)}});var Gb=oe((Mbe,mE)=>{"use strict";var Oie=pr(),Uie=g1();mE.exports=function(r,t){function a(n,i){return t[n]!==void 0?t[n]:Oie.coerce(r,t,Uie,n,i)}return a("clickmode"),a("hoversubplots"),a("hoveranywhere"),a("clickanywhere"),a("hovermode")}});var bE=oe((Tbe,yE)=>{"use strict";var gE=pr(),Gie=g1(),Yie=Gb(),Vie=Om();yE.exports=function(r,t){function a(u,f){return gE.coerce(r,t,Gie,u,f)}var n=Yie(r,t);n&&(a("hoverdistance"),a("spikedistance"),n.indexOf("unified")!==-1&&a("hoversort"));var i=a("dragmode");i==="select"&&a("selectdirection");var o=t._has("map"),l=t._has("geo"),s=t._basePlotModules.length;t.dragmode==="zoom"&&((o||l)&&s===1||o&&l&&s===2)&&(t.dragmode="pan"),Vie(r,t,a),gE.coerceFont(a,"hoverlabel.grouptitlefont",t.hoverlabel.font)}});var wE=oe((kbe,xE)=>{"use strict";var Yb=pr(),_E=_t();xE.exports=function(r){var t=r.calcdata,a=r._fullLayout;function n(u){return function(f){return Yb.coerceHoverinfo({hoverinfo:f},{_module:u._module},a)}}for(var i=0;i{"use strict";var jie=_t(),AE=Pu(),Wie=Ub().hover;ME.exports=function(r,t,a){var n=jie.getComponentMethod("annotations","onClick")(r,r._hoverdata),i=r._fullLayout;a!==void 0&&Wie(r,t,a,!0);function o(){var s,u,f,c,h,d;var l={points:r._hoverdata,event:t};(s=l.xaxes)!=null||(l.xaxes=r._hoverXAxes),(u=l.yaxes)!=null||(l.yaxes=r._hoverYAxes),(f=l.xvals)!=null||(l.xvals=r._hoverXVals&&AE.c2dApply(r._hoverXAxes,r._hoverXVals)),(c=l.yvals)!=null||(l.yvals=r._hoverYVals&&AE.c2dApply(r._hoverYAxes,r._hoverYVals)),(h=l.xPixel)!=null||(l.xPixel=r._hoverPointerX),(d=l.yPixel)!=null||(l.yPixel=r._hoverPointerY),r.emit("plotly_click",l)}(r._hoverdata||i.clickanywhere)&&t&&t.target&&(r._hoverdata||(r._hoverdata=[]),n&&n.then?n.then(o):o(),t.stopImmediatePropagation&&t.stopImmediatePropagation())}});var jl=oe((Sbe,SE)=>{"use strict";var Zie=Lt(),Um=pr(),$ie=el(),eh=Pu(),kE=g1(),CE=Ub();SE.exports={moduleType:"component",name:"fx",constants:(iv(),xr(nv)),schema:{layout:kE},attributes:Pd(),layoutAttributes:kE,supplyLayoutGlobalDefaults:vE(),supplyDefaults:pE(),supplyLayoutDefaults:bE(),calc:wE(),getDistanceFunction:eh.getDistanceFunction,getClosest:eh.getClosest,inbox:eh.inbox,quadrature:eh.quadrature,appendArrayPointValue:eh.appendArrayPointValue,castHoverOption:Kie,castHoverinfo:Qie,hover:CE.hover,unhover:$ie.unhover,loneHover:CE.loneHover,loneUnhover:Jie,click:TE()};function Jie(e){var r=Um.isD3Selection(e)?e:Zie.select(e);r.selectAll("g.hovertext").remove(),r.selectAll(".spikeline").remove()}function Kie(e,r,t){return Um.castOption(e,r,"hoverlabel."+t)}function Qie(e,r,t){function a(n){return Um.coerceHoverinfo({hoverinfo:n},{_module:e._module},r)}return Um.castOption(e,t,"hoverinfo",a)}});var i2=oe(Bu=>{"use strict";Bu.selectMode=function(e){return e==="lasso"||e==="select"};Bu.drawMode=function(e){return e==="drawclosedpath"||e==="drawopenpath"||e==="drawline"||e==="drawrect"||e==="drawcircle"};Bu.openMode=function(e){return e==="drawline"||e==="drawopenpath"};Bu.rectMode=function(e){return e==="select"||e==="drawline"||e==="drawrect"||e==="drawcircle"};Bu.freeMode=function(e){return e==="lasso"||e==="drawclosedpath"||e==="drawopenpath"};Bu.selectingOrDrawing=function(e){return Bu.freeMode(e)||Bu.rectMode(e)}});var Gm=oe((Fbe,DE)=>{"use strict";DE.exports=function(r){var t=r._fullLayout;t._glcanvas&&t._glcanvas.size()&&t._glcanvas.each(function(a){a.regl&&a.regl.clear({color:!0,depth:!0})})}});var Ym=oe((Ebe,FE)=>{"use strict";FE.exports={undo:{width:857.1,height:1e3,path:"m857 350q0-87-34-166t-91-137-137-92-166-34q-96 0-183 41t-147 114q-4 6-4 13t5 11l76 77q6 5 14 5 9-1 13-7 41-53 100-82t126-29q58 0 110 23t92 61 61 91 22 111-22 111-61 91-92 61-110 23q-55 0-105-20t-90-57l77-77q17-16 8-38-10-23-33-23h-250q-15 0-25 11t-11 25v250q0 24 22 33 22 10 39-8l72-72q60 57 137 88t159 31q87 0 166-34t137-92 91-137 34-166z",transform:"matrix(1 0 0 -1 0 850)"},home:{width:928.6,height:1e3,path:"m786 296v-267q0-15-11-26t-25-10h-214v214h-143v-214h-214q-15 0-25 10t-11 26v267q0 1 0 2t0 2l321 264 321-264q1-1 1-4z m124 39l-34-41q-5-5-12-6h-2q-7 0-12 3l-386 322-386-322q-7-4-13-4-7 2-12 7l-35 41q-4 5-3 13t6 12l401 334q18 15 42 15t43-15l136-114v109q0 8 5 13t13 5h107q8 0 13-5t5-13v-227l122-102q5-5 6-12t-4-13z",transform:"matrix(1 0 0 -1 0 850)"},"camera-retro":{width:1e3,height:1e3,path:"m518 386q0 8-5 13t-13 5q-37 0-63-27t-26-63q0-8 5-13t13-5 12 5 5 13q0 23 16 38t38 16q8 0 13 5t5 13z m125-73q0-59-42-101t-101-42-101 42-42 101 42 101 101 42 101-42 42-101z m-572-320h858v71h-858v-71z m643 320q0 89-62 152t-152 62-151-62-63-152 63-151 151-63 152 63 62 151z m-571 358h214v72h-214v-72z m-72-107h858v143h-462l-36-71h-360v-72z m929 143v-714q0-30-21-51t-50-21h-858q-29 0-50 21t-21 51v714q0 30 21 51t50 21h858q29 0 50-21t21-51z",transform:"matrix(1 0 0 -1 0 850)"},curlybraces:{width:18,height:16,path:"M 9,4 C 7.354992,4 6,5.354992 6,7 V 9 C 6,9.2999997 5.8778068,9.8883542 5.5878906,10.291016 5.2979744,10.693677 4.9222213,11 4,11 a 1.0001,1.0001 0 0 0 0,2 c 0.2999997,0 0.8883542,0.122193 1.2910156,0.412109 C 5.693677,13.702026 6,14.077779 6,15 v 2 c 0,1.645008 1.354992,3 3,3 h 0.5 a 1,1 0 0 0 1,-1 1,1 0 0 0 -1,-1 H 9 C 8.4358712,18 8,17.564129 8,17 V 15 C 8,13.625876 7.3766799,12.602305 6.6113281,11.96875 6.8086352,11.794047 7.0679793,11.657537 7.2109375,11.458984 7.8210204,10.611647 8,9.6999993 8,9 V 7 C 8,6.4358712 8.4358712,6 9,6 h 0.5 a 1,1 0 0 0 1,-1 1,1 0 0 0 -1,-1 z m 5.5,0 a 1,1 0 0 0 -1,1 1,1 0 0 0 1,1 H 15 c 0.564129,0 1,0.4358712 1,1 v 2 c 0,0.6999993 0.17898,1.611647 0.789062,2.458984 0.142959,0.198553 0.402303,0.335063 0.59961,0.509766 C 16.62332,12.602305 16,13.625876 16,15 v 2 c 0,0.564129 -0.435871,1 -1,1 h -0.5 a 1,1 0 0 0 -1,1 1,1 0 0 0 1,1 H 15 c 1.645008,0 3,-1.354992 3,-3 v -2 c 0,-0.922221 0.306323,-1.297974 0.708984,-1.587891 C 19.111646,13.122193 19.7,13 20,13 a 1.0001,1.0001 0 0 0 0,-2 C 19.077779,11 18.702026,10.693677 18.412109,10.291016 18.122193,9.8883542 18,9.2999997 18,9 V 7 C 18,5.354992 16.645008,4 15,4 Z",transform:"translate(-3 -4)"},zoombox:{width:1e3,height:1e3,path:"m1000-25l-250 251c40 63 63 138 63 218 0 224-182 406-407 406-224 0-406-182-406-406s183-406 407-406c80 0 155 22 218 62l250-250 125 125z m-812 250l0 438 437 0 0-438-437 0z m62 375l313 0 0-312-313 0 0 312z",transform:"matrix(1 0 0 -1 0 850)"},pan:{width:1e3,height:1e3,path:"m1000 350l-187 188 0-125-250 0 0 250 125 0-188 187-187-187 125 0 0-250-250 0 0 125-188-188 186-187 0 125 252 0 0-250-125 0 187-188 188 188-125 0 0 250 250 0 0-126 187 188z",transform:"matrix(1 0 0 -1 0 850)"},zoom_plus:{width:875,height:1e3,path:"m1 787l0-875 875 0 0 875-875 0z m687-500l-187 0 0-187-125 0 0 187-188 0 0 125 188 0 0 187 125 0 0-187 187 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},zoom_minus:{width:875,height:1e3,path:"m0 788l0-876 875 0 0 876-875 0z m688-500l-500 0 0 125 500 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},autoscale:{width:1e3,height:1e3,path:"m250 850l-187 0-63 0 0-62 0-188 63 0 0 188 187 0 0 62z m688 0l-188 0 0-62 188 0 0-188 62 0 0 188 0 62-62 0z m-875-938l0 188-63 0 0-188 0-62 63 0 187 0 0 62-187 0z m875 188l0-188-188 0 0-62 188 0 62 0 0 62 0 188-62 0z m-125 188l-1 0-93-94-156 156 156 156 92-93 2 0 0 250-250 0 0-2 93-92-156-156-156 156 94 92 0 2-250 0 0-250 0 0 93 93 157-156-157-156-93 94 0 0 0-250 250 0 0 0-94 93 156 157 156-157-93-93 0 0 250 0 0 250z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_basic:{width:1500,height:1e3,path:"m375 725l0 0-375-375 375-374 0-1 1125 0 0 750-1125 0z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_compare:{width:1125,height:1e3,path:"m187 786l0 2-187-188 188-187 0 0 937 0 0 373-938 0z m0-499l0 1-187-188 188-188 0 0 937 0 0 376-938-1z",transform:"matrix(1 0 0 -1 0 850)"},plotlylogo:{width:1542,height:1e3,path:"m0-10h182v-140h-182v140z m228 146h183v-286h-183v286z m225 714h182v-1000h-182v1000z m225-285h182v-715h-182v715z m225 142h183v-857h-183v857z m231-428h182v-429h-182v429z m225-291h183v-138h-183v138z",transform:"matrix(1 0 0 -1 0 850)"},"z-axis":{width:1e3,height:1e3,path:"m833 5l-17 108v41l-130-65 130-66c0 0 0 38 0 39 0-1 36-14 39-25 4-15-6-22-16-30-15-12-39-16-56-20-90-22-187-23-279-23-261 0-341 34-353 59 3 60 228 110 228 110-140-8-351-35-351-116 0-120 293-142 474-142 155 0 477 22 477 142 0 50-74 79-163 96z m-374 94c-58-5-99-21-99-40 0-24 65-43 144-43 79 0 143 19 143 43 0 19-42 34-98 40v216h87l-132 135-133-135h88v-216z m167 515h-136v1c16 16 31 34 46 52l84 109v54h-230v-71h124v-1c-16-17-28-32-44-51l-89-114v-51h245v72z",transform:"matrix(1 0 0 -1 0 850)"},"3d_rotate":{width:1e3,height:1e3,path:"m922 660c-5 4-9 7-14 11-359 263-580-31-580-31l-102 28 58-400c0 1 1 1 2 2 118 108 351 249 351 249s-62 27-100 42c88 83 222 183 347 122 16-8 30-17 44-27-2 1-4 2-6 4z m36-329c0 0 64 229-88 296-62 27-124 14-175-11 157-78 225-208 249-266 8-19 11-31 11-31 2 5 6 15 11 32-5-13-8-20-8-20z m-775-239c70-31 117-50 198-32-121 80-199 346-199 346l-96-15-58-12c0 0 55-226 155-287z m603 133l-317-139c0 0 4-4 19-14 7-5 24-15 24-15s-177-147-389 4c235-287 536-112 536-112l31-22 100 299-4-1z m-298-153c6-4 14-9 24-15 0 0-17 10-24 15z",transform:"matrix(1 0 0 -1 0 850)"},camera:{width:1e3,height:1e3,path:"m500 450c-83 0-150-67-150-150 0-83 67-150 150-150 83 0 150 67 150 150 0 83-67 150-150 150z m400 150h-120c-16 0-34 13-39 29l-31 93c-6 15-23 28-40 28h-340c-16 0-34-13-39-28l-31-94c-6-15-23-28-40-28h-120c-55 0-100-45-100-100v-450c0-55 45-100 100-100h800c55 0 100 45 100 100v450c0 55-45 100-100 100z m-400-550c-138 0-250 112-250 250 0 138 112 250 250 250 138 0 250-112 250-250 0-138-112-250-250-250z m365 380c-19 0-35 16-35 35 0 19 16 35 35 35 19 0 35-16 35-35 0-19-16-35-35-35z",transform:"matrix(1 0 0 -1 0 850)"},movie:{width:1e3,height:1e3,path:"m938 413l-188-125c0 37-17 71-44 94 64 38 107 107 107 187 0 121-98 219-219 219-121 0-219-98-219-219 0-61 25-117 66-156h-115c30 33 49 76 49 125 0 103-84 187-187 187s-188-84-188-187c0-57 26-107 65-141-38-22-65-62-65-109v-250c0-70 56-126 125-126h500c69 0 125 56 125 126l188-126c34 0 62 28 62 63v375c0 35-28 63-62 63z m-750 0c-69 0-125 56-125 125s56 125 125 125 125-56 125-125-56-125-125-125z m406-1c-87 0-157 70-157 157 0 86 70 156 157 156s156-70 156-156-70-157-156-157z",transform:"matrix(1 0 0 -1 0 850)"},question:{width:857.1,height:1e3,path:"m500 82v107q0 8-5 13t-13 5h-107q-8 0-13-5t-5-13v-107q0-8 5-13t13-5h107q8 0 13 5t5 13z m143 375q0 49-31 91t-77 65-95 23q-136 0-207-119-9-14 4-24l74-55q4-4 10-4 9 0 14 7 30 38 48 51 19 14 48 14 27 0 48-15t21-33q0-21-11-34t-38-25q-35-16-65-48t-29-70v-20q0-8 5-13t13-5h107q8 0 13 5t5 13q0 10 12 27t30 28q18 10 28 16t25 19 25 27 16 34 7 45z m214-107q0-117-57-215t-156-156-215-58-216 58-155 156-58 215 58 215 155 156 216 58 215-58 156-156 57-215z",transform:"matrix(1 0 0 -1 0 850)"},disk:{width:857.1,height:1e3,path:"m214-7h429v214h-429v-214z m500 0h72v500q0 8-6 21t-11 20l-157 156q-5 6-19 12t-22 5v-232q0-22-15-38t-38-16h-322q-22 0-37 16t-16 38v232h-72v-714h72v232q0 22 16 38t37 16h465q22 0 38-16t15-38v-232z m-214 518v178q0 8-5 13t-13 5h-107q-7 0-13-5t-5-13v-178q0-8 5-13t13-5h107q7 0 13 5t5 13z m357-18v-518q0-22-15-38t-38-16h-750q-23 0-38 16t-16 38v750q0 22 16 38t38 16h517q23 0 50-12t42-26l156-157q16-15 27-42t11-49z",transform:"matrix(1 0 0 -1 0 850)"},cloudupload:{width:640,height:640,path:"M451.5 160C434.9 160 418.8 164.5 404.7 172.7C388.9 156.7 370.5 143.3 350.2 133.2C378.4 109.2 414.3 96 451.5 96C537.9 96 608 166 608 252.5C608 294 591.5 333.8 562.2 363.1L491.1 434.2C461.8 463.5 422 480 380.5 480C294.1 480 224 410 224 323.5C224 322 224 320.5 224.1 319C224.6 301.3 239.3 287.4 257 287.9C274.7 288.4 288.6 303.1 288.1 320.8C288.1 321.7 288.1 322.6 288.1 323.4C288.1 374.5 329.5 415.9 380.6 415.9C405.1 415.9 428.6 406.2 446 388.8L517.1 317.7C534.4 300.4 544.2 276.8 544.2 252.3C544.2 201.2 502.8 159.8 451.7 159.8zM307.2 237.3C305.3 236.5 303.4 235.4 301.7 234.2C289.1 227.7 274.7 224 259.6 224C235.1 224 211.6 233.7 194.2 251.1L123.1 322.2C105.8 339.5 96 363.1 96 387.6C96 438.7 137.4 480.1 188.5 480.1C205 480.1 221.1 475.7 235.2 467.5C251 483.5 269.4 496.9 289.8 507C261.6 530.9 225.8 544.2 188.5 544.2C102.1 544.2 32 474.2 32 387.7C32 346.2 48.5 306.4 77.8 277.1L148.9 206C178.2 176.7 218 160.2 259.5 160.2C346.1 160.2 416 230.8 416 317.1C416 318.4 416 319.7 416 321C415.6 338.7 400.9 352.6 383.2 352.2C365.5 351.8 351.6 337.1 352 319.4C352 318.6 352 317.9 352 317.1C352 283.4 334 253.8 307.2 237.5z",transform:"matrix(1 0 0 1 -15 -15)"},drawopenpath:{width:70,height:70,path:"M33.21,85.65a7.31,7.31,0,0,1-2.59-.48c-8.16-3.11-9.27-19.8-9.88-41.3-.1-3.58-.19-6.68-.35-9-.15-2.1-.67-3.48-1.43-3.79-2.13-.88-7.91,2.32-12,5.86L3,32.38c1.87-1.64,11.55-9.66,18.27-6.9,2.13.87,4.75,3.14,5.17,9,.17,2.43.26,5.59.36,9.25a224.17,224.17,0,0,0,1.5,23.4c1.54,10.76,4,12.22,4.48,12.4.84.32,2.79-.46,5.76-3.59L43,80.07C41.53,81.57,37.68,85.64,33.21,85.65ZM74.81,69a11.34,11.34,0,0,0,6.09-6.72L87.26,44.5,74.72,32,56.9,38.35c-2.37.86-5.57,3.42-6.61,6L38.65,72.14l8.42,8.43ZM55,46.27a7.91,7.91,0,0,1,3.64-3.17l14.8-5.3,8,8L76.11,60.6l-.06.19a6.37,6.37,0,0,1-3,3.43L48.25,74.59,44.62,71Zm16.57,7.82A6.9,6.9,0,1,0,64.64,61,6.91,6.91,0,0,0,71.54,54.09Zm-4.05,0a2.85,2.85,0,1,1-2.85-2.85A2.86,2.86,0,0,1,67.49,54.09Zm-4.13,5.22L60.5,56.45,44.26,72.7l2.86,2.86ZM97.83,35.67,84.14,22l-8.57,8.57L89.26,44.24Zm-13.69-8,8,8-2.85,2.85-8-8Z",transform:"matrix(1 0 0 1 -15 -15)"},drawclosedpath:{width:90,height:90,path:"M88.41,21.12a26.56,26.56,0,0,0-36.18,0l-2.07,2-2.07-2a26.57,26.57,0,0,0-36.18,0,23.74,23.74,0,0,0,0,34.8L48,90.12a3.22,3.22,0,0,0,4.42,0l36-34.21a23.73,23.73,0,0,0,0-34.79ZM84,51.24,50.16,83.35,16.35,51.25a17.28,17.28,0,0,1,0-25.47,20,20,0,0,1,27.3,0l4.29,4.07a3.23,3.23,0,0,0,4.44,0l4.29-4.07a20,20,0,0,1,27.3,0,17.27,17.27,0,0,1,0,25.46ZM66.76,47.68h-33v6.91h33ZM53.35,35H46.44V68h6.91Z",transform:"matrix(1 0 0 1 -5 -5)"},lasso:{width:1031,height:1e3,path:"m1018 538c-36 207-290 336-568 286-277-48-473-256-436-463 10-57 36-108 76-151-13-66 11-137 68-183 34-28 75-41 114-42l-55-70 0 0c-2-1-3-2-4-3-10-14-8-34 5-45 14-11 34-8 45 4 1 1 2 3 2 5l0 0 113 140c16 11 31 24 45 40 4 3 6 7 8 11 48-3 100 0 151 9 278 48 473 255 436 462z m-624-379c-80 14-149 48-197 96 42 42 109 47 156 9 33-26 47-66 41-105z m-187-74c-19 16-33 37-39 60 50-32 109-55 174-68-42-25-95-24-135 8z m360 75c-34-7-69-9-102-8 8 62-16 128-68 170-73 59-175 54-244-5-9 20-16 40-20 61-28 159 121 317 333 354s407-60 434-217c28-159-121-318-333-355z",transform:"matrix(1 0 0 -1 0 850)"},selectbox:{width:1e3,height:1e3,path:"m0 850l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-285l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z",transform:"matrix(1 0 0 -1 0 850)"},drawline:{width:70,height:70,path:"M60.64,62.3a11.29,11.29,0,0,0,6.09-6.72l6.35-17.72L60.54,25.31l-17.82,6.4c-2.36.86-5.57,3.41-6.6,6L24.48,65.5l8.42,8.42ZM40.79,39.63a7.89,7.89,0,0,1,3.65-3.17l14.79-5.31,8,8L61.94,54l-.06.19a6.44,6.44,0,0,1-3,3.43L34.07,68l-3.62-3.63Zm16.57,7.81a6.9,6.9,0,1,0-6.89,6.9A6.9,6.9,0,0,0,57.36,47.44Zm-4,0a2.86,2.86,0,1,1-2.85-2.85A2.86,2.86,0,0,1,53.32,47.44Zm-4.13,5.22L46.33,49.8,30.08,66.05l2.86,2.86ZM83.65,29,70,15.34,61.4,23.9,75.09,37.59ZM70,21.06l8,8-2.84,2.85-8-8ZM87,80.49H10.67V87H87Z",transform:"matrix(1 0 0 1 -15 -15)"},drawrect:{width:80,height:80,path:"M78,22V79H21V22H78m9-9H12V88H87V13ZM68,46.22H31V54H68ZM53,32H45.22V69H53Z",transform:"matrix(1 0 0 1 -10 -10)"},drawcircle:{width:80,height:80,path:"M50,84.72C26.84,84.72,8,69.28,8,50.3S26.84,15.87,50,15.87,92,31.31,92,50.3,73.16,84.72,50,84.72Zm0-60.59c-18.6,0-33.74,11.74-33.74,26.17S31.4,76.46,50,76.46,83.74,64.72,83.74,50.3,68.6,24.13,50,24.13Zm17.15,22h-34v7.11h34Zm-13.8-13H46.24v34h7.11Z",transform:"matrix(1 0 0 1 -10 -10)"},eraseshape:{width:80,height:80,path:"M82.77,78H31.85L6,49.57,31.85,21.14H82.77a8.72,8.72,0,0,1,8.65,8.77V69.24A8.72,8.72,0,0,1,82.77,78ZM35.46,69.84H82.77a.57.57,0,0,0,.49-.6V29.91a.57.57,0,0,0-.49-.61H35.46L17,49.57Zm32.68-34.7-24,24,5,5,24-24Zm-19,.53-5,5,24,24,5-5Z",transform:"matrix(1 0 0 1 -10 -10)"},spikeline:{width:1e3,height:1e3,path:"M512 409c0-57-46-104-103-104-57 0-104 47-104 104 0 57 47 103 104 103 57 0 103-46 103-103z m-327-39l92 0 0 92-92 0z m-185 0l92 0 0 92-92 0z m370-186l92 0 0 93-92 0z m0-184l92 0 0 92-92 0z",transform:"matrix(1.5 0 0 -1.5 0 850)"},pencil:{width:1792,height:1792,path:"M491 1536l91-91-235-235-91 91v107h128v128h107zm523-928q0-22-22-22-10 0-17 7l-542 542q-7 7-7 17 0 22 22 22 10 0 17-7l542-542q7-7 7-17zm-54-192l416 416-832 832h-416v-416zm683 96q0 53-37 90l-166 166-416-416 166-165q36-38 90-38 53 0 91 38l235 234q37 39 37 91z",transform:"matrix(1 0 0 1 0 1)"},newplotlylogo:{name:"newplotlylogo",svg:[""," plotly-logomark"," "," "," "," "," "," "," "," "," "," "," "," "," ",""].join("")}}});var Vm={};Ua(Vm,{CIRCLE_SIDES:()=>eoe,SQRT2:()=>loe,cos45:()=>ioe,i000:()=>roe,i090:()=>toe,i180:()=>aoe,i270:()=>noe,sin45:()=>ooe});var eoe,roe,toe,aoe,noe,ioe,ooe,loe,Xm=Oa(()=>{"use strict";eoe=32,roe=0,toe=8,aoe=16,noe=24,ioe=Math.cos(Math.PI/4),ooe=Math.sin(Math.PI/4),loe=Math.sqrt(2)});var jm=oe((Lbe,LE)=>{"use strict";var soe=pr().strTranslate;function EE(e,r){switch(e.type){case"log":return e.p2d(r);case"date":return e.p2r(r,0,e.calendar);default:return e.p2r(r)}}function uoe(e,r){switch(e.type){case"log":return e.d2p(r);case"date":return e.r2p(r,0,e.calendar);default:return e.r2p(r)}}function foe(e){var r=e._id.charAt(0)==="y"?1:0;return function(t){return EE(e,t[r])}}function coe(e){return soe(e.xaxis._offset,e.yaxis._offset)}LE.exports={p2r:EE,r2p:uoe,axValue:foe,getTransform:coe}});var B0=oe(Iu=>{"use strict";var voe=D6(),RE=(Xm(),xr(Vm)),o2=RE.CIRCLE_SIDES,Vb=RE.SQRT2,zE=jm(),qE=zE.p2r,PE=zE.r2p,hoe=[0,3,4,5,6,1,2],doe=[0,3,4,1,2];Iu.writePaths=function(e){var r=e.length;if(!r)return"M0,0Z";for(var t="",a=0;a0&&s{"use strict";var NE=En(),UE=i2(),poe=UE.drawMode,moe=UE.openMode,l2=(Xm(),xr(Vm)),BE=l2.i000,IE=l2.i090,HE=l2.i180,OE=l2.i270,goe=l2.cos45,yoe=l2.sin45,GE=jm(),Zm=GE.p2r,I0=GE.r2p,boe=C0(),_oe=boe.clearOutline,$m=B0(),xoe=$m.readPaths,woe=$m.writePaths,Aoe=$m.ellipseOver,Moe=$m.fixDatesForPaths;function Toe(e,r){if(e.length){var t=e[0][0];if(t){var a=r.gd,n=r.isActiveShape,i=r.dragmode,o=(a.layout||{}).shapes||[];if(!poe(i)&&n!==void 0){var l=a._fullLayout._activeShapeIndex;if(l{"use strict";var koe=i2(),Coe=koe.selectMode,Soe=C0(),Doe=Soe.clearOutline,Xb=B0(),Foe=Xb.readPaths,Eoe=Xb.writePaths,Loe=Xb.fixDatesForPaths;XE.exports=function(r,t){if(r.length){var a=r[0][0];if(a){var n=a.getAttribute("d"),i=t.gd,o=i._fullLayout.newselection,l=t.plotinfo,s=l.xaxis,u=l.yaxis,f=t.isActiveSelection,c=t.dragmode,h=(i.layout||{}).selections||[];if(!Coe(c)&&f!==void 0){var d=i._fullLayout._activeSelectionIndex;if(dNoe,paramIsX:()=>Roe,paramIsY:()=>zoe,paramRE:()=>Poe,segmentRE:()=>qoe});var qoe,Poe,Roe,zoe,Noe,ah=Oa(()=>{"use strict";qoe=/[MLHVQCTSZ][^MLHVQCTSZ]*/g,Poe=/[^\s,]+/g,Roe={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:{}},zoe={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:3},Z:{}},Noe={M:2,L:2,H:1,V:1,Q:4,C:6,T:2,S:4,Z:0}});var O0=oe(Wn=>{"use strict";var Os=(ah(),xr(th)),jE=pr(),H0=Ga();Wn.rangeToShapePosition=function(e){return e.type==="log"?e.r2d:function(r){return r}};Wn.shapePositionToRange=function(e){return e.type==="log"?e.d2r:function(r){return r}};Wn.decodeDate=function(e){return function(r){return r.replace&&(r=r.replace("_"," ")),e(r)}};Wn.encodeDate=function(e){return function(r){return e(r).replace(" ","_")}};Wn.extractPathCoords=function(e,r,t){var a=[],n=e.match(Os.segmentRE);return n.forEach(function(i){var o=r[i.charAt(0)].drawn;if(o!==void 0){var l=i.slice(1).match(Os.paramRE);if(!(!l||l.length{let l=o.charAt(0),s=n[l].drawn!==void 0;return i+(s?1:0)},0)};Wn.getDataToPixel=function(e,r,t,a,n){var i=e._fullLayout._size,o;if(r)if(n==="domain")o=function(s){return r._length*(a?1-s:s)+r._offset};else{var l=Wn.shapePositionToRange(r);o=function(s){var u=Hs(r,t);return r._offset+r.r2p(l(s,!0))+u},r.type==="date"&&(o=Wn.decodeDate(o))}else a?o=function(s){return i.t+i.h*(1-s)}:o=function(s){return i.l+i.w*s};return o};Wn.getPixelToData=function(e,r,t,a){var n=e._fullLayout._size,i;if(r)if(a==="domain")i=function(l){var s=(l-r._offset)/r._length;return t?1-s:s};else{var o=Wn.rangeToShapePosition(r);i=function(l){return o(r.p2r(l-r._offset))}}else t?i=function(l){return 1-(l-n.t)/n.h}:i=function(l){return(l-n.l)/n.w};return i};Wn.roundPositionForSharpStrokeRendering=function(e,r){var t=Math.round(r%2)===1,a=Math.round(e);return t?a+.5:a};Wn.makeShapesOptionsAndPlotinfo=function(e,r){var t=e._fullLayout.shapes[r]||{},a=e._fullLayout._plots[t.xref+t.yref],n=!!a;return n?a._hadPlotinfo=!0:(a={},t.xref&&t.xref!=="paper"&&(a.xaxis=e._fullLayout[t.xref+"axis"]),t.yref&&t.yref!=="paper"&&(a.yaxis=e._fullLayout[t.yref+"axis"])),a.xsizemode=t.xsizemode,a.ysizemode=t.ysizemode,a.xanchor=t.xanchor,a.yanchor=t.yanchor,{options:t,plotinfo:a}};Wn.makeSelectionsOptionsAndPlotinfo=function(e,r){var t=e._fullLayout.selections[r]||{},a=e._fullLayout._plots[t.xref+t.yref],n=!!a;return n?a._hadPlotinfo=!0:(a={},t.xref&&(a.xaxis=e._fullLayout[t.xref+"axis"]),t.yref&&(a.yaxis=e._fullLayout[t.yref+"axis"])),{options:t,plotinfo:a}};Wn.getPathString=function(e,r){let t=r.type,a=H0.getRefType(r.xref),n=H0.getRefType(r.yref),i=e._fullLayout._size;var o,l,s,u,f,c,h,d,p,m,b,y;function C(z,I,V,H){var X;if(z)if(I==="domain")H?X=function(N){return z._offset+z._length*(1-N)}:X=function(N){return z._offset+z._length*N};else{let N=Wn.shapePositionToRange(z);X=function(Q){return z._offset+z.r2p(N(Q,!0))},V==="path"&&z.type==="date"&&(X=Wn.decodeDate(X))}else H?X=function(N){return i.t+i.h*(1-N)}:X=function(N){return i.l+i.w*N};return X}if(a==="array"?(h=[],o=r.xref.map(function(z){return H0.getFromId(e,z)}),h=r.xref.map(function(z,I){return C(o[I],H0.getRefType(z),t,!1)})):(o=H0.getFromId(e,r.xref),h=C(o,a,t,!1)),n==="array"?(d=[],l=r.yref.map(function(z){return H0.getFromId(e,z)}),d=r.yref.map(function(z,I){return C(l[I],H0.getRefType(z),t,!0)})):(l=H0.getFromId(e,r.yref),d=C(l,n,t,!0)),t==="path")return Boe(r,h,d);if(a==="array")s=Hs(o[0],r.x0shift),u=Hs(o[1],r.x1shift),p=h[0](r.x0)+s,m=h[1](r.x1)+u;else if(s=Hs(o,r.x0shift),u=Hs(o,r.x1shift),r.xsizemode==="pixel"){let z=h(r.xanchor);p=z+r.x0+s,m=z+r.x1+u}else p=h(r.x0)+s,m=h(r.x1)+u;if(n==="array")f=Hs(l[0],r.y0shift),c=Hs(l[1],r.y1shift),b=d[0](r.y0)+f,y=d[1](r.y1)+c;else if(f=Hs(l,r.y0shift),c=Hs(l,r.y1shift),r.ysizemode==="pixel"){let z=d(r.yanchor);b=z-r.y0+f,y=z-r.y1+c}else b=d(r.y0)+f,y=d(r.y1)+c;if(t==="line")return"M"+p+","+b+"L"+m+","+y;if(t==="rect")return"M"+p+","+b+"H"+m+"V"+y+"H"+p+"Z";var x=(p+m)/2,_=(b+y)/2,A=Math.abs(x-p),k=Math.abs(_-b),M="A"+A+","+k,E=x+A+","+_,P=x+","+(_-k);return"M"+E+M+" 0 1,1 "+P+M+" 0 0,1 "+E+"Z"};function Boe(e,r,t){let a=e.path,n=e.xsizemode,i=e.ysizemode,o=e.xanchor,l=e.yanchor,s=Array.isArray(e.xref),u=Array.isArray(e.yref);var f=0,c=0;return a.replace(Os.segmentRE,function(h){var d=0,p=h.charAt(0),m=Os.paramIsX[p],b=Os.paramIsY[p],y=Os.numParams[p];let C=m.drawn!==void 0,x=b.drawn!==void 0,_=s?r[f]:r,A=u?t[c]:t;var k=h.slice(1).replace(Os.paramRE,function(M){return m[d]?n==="pixel"?M=_(o)+Number(M):M=_(M):b[d]&&(i==="pixel"?M=A(l)-Number(M):M=A(M)),d++,d>y&&(M="X"),M});return d>y&&(k=k.replace(/[\s,]*X.*/,""),jE.log("Ignoring extra params in segment "+h)),C&&f++,x&&c++,p+k})}Wn.getPixelShift=Hs;function Hs(e,r){r=r||0;var t=0;return r&&e&&(e.type==="category"||e.type==="multicategory")&&(t=(e.r2p(1)-e.r2p(0))*r),t}});var Wb=oe((Nbe,$E)=>{"use strict";var Ioe=pr(),Us=Ga(),WE=vi(),ZE=ha(),Hoe=B0().readPaths,mc=O0(),Ooe=mc.getPathString,nh=pp(),Uoe=(ci(),xr(fi)).FROM_TL;$E.exports=function(r,t,a,n){if(n.selectAll(".shape-label").remove(),!!(a.label.text||a.label.texttemplate)){var i;if(a.label.texttemplate){var o={};if(a.type!=="path"){var l=Us.getFromId(r,a.xref),s=Us.getFromId(r,a.yref);let le=Array.isArray(a.xref),xe=Array.isArray(a.yref);for(var u in nh){var f=typeof nh[u]=="function",c=!le||nh.simpleXVariables.includes(u),h=!xe||nh.simpleYVariables.includes(u);if(f&&c&&h){var d=nh[u](a,l,s);d!==void 0&&(o[u]=d)}}}i=Ioe.texttemplateStringForShapes({data:[o],fallback:a.label.texttemplatefallback,locale:r._fullLayout._d3locale,template:a.label.texttemplate})}else i=a.label.text;var p={"data-index":t},m=a.label.font,b={"data-notex":1},y=n.append("g").attr(p).classed("shape-label",!0),C=y.append("text").attr(b).classed("shape-label-text",!0).text(i),x,_,A,k;if(a.path){var M=Ooe(r,a),E=Hoe(M,r);x=1/0,A=1/0,_=-1/0,k=-1/0;for(var P=0;Pmc.getDataToPixel(r,Ne,be,!1,Ze)(fe),J=(fe,be,Ne,Ze)=>mc.getDataToPixel(r,Ne,be,!0,Ze)(fe);if(a.xsizemode==="pixel"){let fe=K(a.xanchor,void 0,De,je),be=mc.getPixelShift(De,a.x0shift),Ne=mc.getPixelShift(De,a.x1shift);x=fe+a.x0+be,_=fe+a.x1+Ne}else x=K(a.x0,a.x0shift,De,je),_=K(a.x1,a.x1shift,Ye,W);if(a.ysizemode==="pixel"){let fe=J(a.yanchor,void 0,Ee,se),be=mc.getPixelShift(Ee,a.y0shift),Ne=mc.getPixelShift(Ee,a.y1shift);A=fe-a.y0+be,k=fe-a.y1+Ne}else A=J(a.y0,a.y0shift,Ee,se),k=J(a.y1,a.y1shift,ke,he)}var N=a.label.textangle;N==="auto"&&(a.type==="line"?N=Goe(x,A,_,k):N=0),C.call(function(le){return le.call(ZE.font,m).attr({}),WE.convertToTspans(le,r),le});var Q=ZE.bBox(C.node()),ee=Yoe(x,A,_,k,a,N,Q),re=ee.textx,ae=ee.texty,ie=ee.xanchor;C.attr({"text-anchor":{left:"start",center:"middle",right:"end"}[ie],y:ae,x:re,transform:"rotate("+N+","+re+","+ae+")"}).call(WE.positionText,re,ae)}};function Goe(e,r,t,a){var n,i;return i=Math.abs(t-e),t>=e?n=r-a:n=a-r,-180/Math.PI*Math.atan2(n,i)}function Yoe(e,r,t,a,n,i,o){var l=n.label.textposition,s=n.label.textangle,u=n.label.padding,f=n.type,c=Math.PI/180*i,h=Math.sin(c),d=Math.cos(c),p=n.label.xanchor,m=n.label.yanchor,b,y,C,x;if(f==="line"){l==="start"?(b=e,y=r):l==="end"?(b=t,y=a):(b=(e+t)/2,y=(r+a)/2),p==="auto"&&(l==="start"?s==="auto"?t>e?p="left":te?p="right":te?p="right":te?p="left":t{"use strict";var Voe=pr(),Xoe=Voe.strTranslate,JE=el(),eL=i2(),joe=eL.drawMode,rL=eL.selectMode,tL=_t(),KE=Nt(),Qm=(Xm(),xr(Vm)),Woe=Qm.i000,Zoe=Qm.i090,$oe=Qm.i180,Joe=Qm.i270,Koe=C0(),aL=Koe.clearOutlineControllers,$b=B0(),Km=$b.pointsOnRectangle,Zb=$b.pointsOnEllipse,Qoe=$b.writePaths,ele=Jm().newShapes,rle=Jm().createShapeObj,tle=jb(),ale=Wb();nL.exports=function e(r,t,a,n){n||(n=0);var i=a.gd;function o(){e(r,t,a,n++),(Zb(r[0])||a.hasText)&&l({redrawing:!0})}function l(ee){var re={};a.isActiveShape!==void 0&&(a.isActiveShape=!1,re=ele(t,a)),a.isActiveSelection!==void 0&&(a.isActiveSelection=!1,re=tle(t,a),i._fullLayout._reselect=!0),Object.keys(re).length&&tL.call((ee||{}).redrawing?"relayout":"_guiRelayout",i,re)}var s=i._fullLayout,u=s._zoomlayer,f=a.dragmode,c=joe(f),h=rL(f);(c||h)&&(i._fullLayout._outlining=!0),aL(i),t.attr("d",Qoe(r));var d,p,m,b,y;if(!n&&(a.isActiveShape||a.isActiveSelection)){y=nle([],r);var C=u.append("g").attr("class","outline-controllers");z(C),Q()}if(c&&a.hasText){var x=u.select(".label-temp"),_=rle(t,a,a.dragmode);ale(i,"label-temp",_,x)}function A(ee){m=+ee.srcElement.getAttribute("data-i"),b=+ee.srcElement.getAttribute("data-j"),d[m][b].moveFn=k}function k(ee,re){if(r.length){var ae=y[m][b][1],ie=y[m][b][2],le=r[m],xe=le.length;if(Km(le)){var De=ee,Ye=re;if(a.isActiveSelection){var Ee=QE(le,b);Ee[1]===le[b][1]?Ye=0:De=0}for(var ke=0;ke1&&!(ee.length===2&&ee[1][0]==="Z")&&(b===0&&(ee[0][0]="M"),r[m]=ee,o(),l())}}function P(ee,re){if(ee===2){m=+re.srcElement.getAttribute("data-i"),b=+re.srcElement.getAttribute("data-j");var ae=r[m];!Km(ae)&&!Zb(ae)&&E()}}function z(ee){d=[];for(var re=0;re{"use strict";var ole=Lt(),fL=_t(),Kb=pr(),gc=Ga(),lle=B0().readPaths,sle=eg(),tg=Wb(),cL=C0().clearOutlineControllers,Jb=Nt(),ag=ha(),ule=ka().arrayEditor,iL=el(),oL=jl(),lL=z0(),yc=(ah(),xr(th)),lo=O0(),Qb=lo.getPathString;dL.exports={draw:e7,drawOne:vL,eraseActiveShape:dle,drawLabel:tg};function e7(e){var r=e._fullLayout;r._shapeUpperLayer.selectAll("path").remove(),r._shapeLowerLayer.selectAll("path").remove(),r._shapeUpperLayer.selectAll("text").remove(),r._shapeLowerLayer.selectAll("text").remove();for(var t in r._plots){var a=r._plots[t].shapelayer;a&&(a.selectAll("path").remove(),a.selectAll("text").remove())}for(var n=0;n{if(!e._dragging&&e._fullLayout.hoveranywhere){let o=n(i);o&&oL.hover(e,o,t.id)}}),a.addEventListener("click",i=>{if(!e._dragged&&e._fullLayout.clickanywhere){let o=n(i);o&&oL.click(e,o,t.id)}})}function hL(e,r,t){let a=t.xref,n=t.yref;if(Array.isArray(a)||Array.isArray(n)){let i="clip"+r._fullLayout._uid+"shape"+t._index,o=cle(r,a,n);Kb.ensureSingleById(r._fullLayout._clips,"clipPath",i,function(l){l.append("rect")}).select("rect").attr(o),ag.setClipUrl(e,i,r)}else{let i=(a+n).replace(/paper/g,"").replace(/[xyz][0-9]* *domain/g,"");ag.setClipUrl(e,i?"clip"+r._fullLayout._uid+i:null,r)}}function cle(e,r,t){let a=e._fullLayout._size;function n(l,s){let u=(Array.isArray(l)?l:[l]).map(h=>gc.getFromId(e,h)).filter(Boolean);if(!u.length)return s?[a.t,a.t+a.h]:[a.l,a.l+a.w];let f=u.map(function(h){return h._offset}),c=u.map(function(h){return h._offset+h._length});return[Math.min(...f),Math.max(...c)]}let i=n(r,!1),o=n(t,!0);return{x:i[0],y:o[0],width:i[1]-i[0],height:o[1]-o[0]}}function vle(e,r,t,a,n,i){var o=10,l=10,s=t.xsizemode==="pixel",u=t.ysizemode==="pixel",f=t.type==="line",c=t.type==="path",h=i.modifyItem,d,p,m,b,y,C,x,_,A,k,M,E,P,z,I,V=ole.select(r.node().parentNode),H=gc.getFromId(e,t.xref),X=gc.getRefType(t.xref),N=gc.getFromId(e,t.yref),Q=gc.getRefType(t.yref),ee=t.x0shift,re=t.x1shift,ae=t.y0shift,ie=t.y1shift,le=function(tr,ze){var lr=lo.getDataToPixel(e,H,ze,!1,X);return lr(tr)},xe=function(tr,ze){var lr=lo.getDataToPixel(e,N,ze,!0,Q);return lr(tr)},De=lo.getPixelToData(e,H,!1,X),Ye=lo.getPixelToData(e,N,!0,Q),Ee=W(),ke={element:Ee.node(),gd:e,prepFn:K,doneFn:J,clickFn:fe},je;iL.init(ke),Ee.node().onmousemove=he;function W(){return f?se():r}function se(){var tr=10,ze=Math.max(t.line.width,tr),lr=n.append("g").attr("data-index",a).attr("drag-helper",!0);lr.append("path").attr("d",r.attr("d")).style({cursor:"move","stroke-width":ze,"stroke-opacity":"0"});var hr={"fill-opacity":"0"},Ar=Math.max(ze/2,tr);return lr.append("circle").attr({"data-line-point":"start-point",cx:s?le(t.xanchor)+t.x0:le(t.x0,ee),cy:u?xe(t.yanchor)-t.y0:xe(t.y0,ae),r:Ar}).style(hr).classed("cursor-grab",!0),lr.append("circle").attr({"data-line-point":"end-point",cx:s?le(t.xanchor)+t.x1:le(t.x1,re),cy:u?xe(t.yanchor)-t.y1:xe(t.y1,ie),r:Ar}).style(hr).classed("cursor-grab",!0),lr}function he(tr){if(rg(e)){je=null;return}if(f)tr.target.tagName==="path"?je="move":je=tr.target.attributes["data-line-point"].value==="start-point"?"resize-over-start-point":"resize-over-end-point";else{var ze=ke.element.getBoundingClientRect(),lr=ze.right-ze.left,hr=ze.bottom-ze.top,Ar=tr.clientX-ze.left,Qe=tr.clientY-ze.top,mr=!c&&lr>o&&hr>l&&!tr.shiftKey?iL.getCursor(Ar/lr,1-Qe/hr):"move";lL(r,mr),je=mr.split("-")[0]}}function K(tr){rg(e)||(s&&(y=le(t.xanchor)),u&&(C=xe(t.yanchor)),t.type==="path"?I=t.path:(d=s?t.x0:le(t.x0),p=u?t.y0:xe(t.y0),m=s?t.x1:le(t.x1),b=u?t.y1:xe(t.y1)),db?(x=p,M="y0",_=b,E="y1"):(x=b,M="y1",_=p,E="y0"),he(tr),Ze(n,t),Je(r,t,e),ke.moveFn=je==="move"?be:Ne,ke.altKey=tr.altKey)}function J(){rg(e)||(lL(r),er(n),hL(r,e,t),fL.call("_guiRelayout",e,i.getUpdateObj()))}function fe(){rg(e)||er(n)}function be(tr,ze){if(t.type==="path"){var lr=function(Qe){return Qe},hr=lr,Ar=lr;s?h("xanchor",t.xanchor=De(y+tr)):(hr=function(mr){return De(le(mr)+tr)},H&&H.type==="date"&&(hr=lo.encodeDate(hr))),u?h("yanchor",t.yanchor=Ye(C+ze)):(Ar=function(mr){return Ye(xe(mr)+ze)},N&&N.type==="date"&&(Ar=lo.encodeDate(Ar))),h("path",t.path=sL(I,hr,Ar))}else s?h("xanchor",t.xanchor=De(y+tr)):(h("x0",t.x0=De(d+tr)),h("x1",t.x1=De(m+tr))),u?h("yanchor",t.yanchor=Ye(C+ze)):(h("y0",t.y0=Ye(p+ze)),h("y1",t.y1=Ye(b+ze)));r.attr("d",Qb(e,t)),Ze(n,t),tg(e,a,t,V)}function Ne(tr,ze){if(c){var lr=function(kr){return kr},hr=lr,Ar=lr;s?h("xanchor",t.xanchor=De(y+tr)):(hr=function(Er){return De(le(Er)+tr)},H&&H.type==="date"&&(hr=lo.encodeDate(hr))),u?h("yanchor",t.yanchor=Ye(C+ze)):(Ar=function(Er){return Ye(xe(Er)+ze)},N&&N.type==="date"&&(Ar=lo.encodeDate(Ar))),h("path",t.path=sL(I,hr,Ar))}else if(f){if(je==="resize-over-start-point"){var Qe=d+tr,mr=u?p-ze:p+ze;h("x0",t.x0=s?Qe:De(Qe)),h("y0",t.y0=u?mr:Ye(mr))}else if(je==="resize-over-end-point"){var qr=m+tr,Te=u?b-ze:b+ze;h("x1",t.x1=s?qr:De(qr)),h("y1",t.y1=u?Te:Ye(Te))}}else{var Ue=function(kr){return je.indexOf(kr)!==-1},_r=Ue("n"),Pr=Ue("s"),Nr=Ue("w"),Ce=Ue("e"),He=_r?x+ze:x,cr=Pr?_+ze:_,Mr=Nr?A+tr:A,vr=Ce?k+tr:k;u&&(_r&&(He=x-ze),Pr&&(cr=_-ze)),(!u&&cr-He>l||u&&He-cr>l)&&(h(M,t[M]=u?He:Ye(He)),h(E,t[E]=u?cr:Ye(cr))),vr-Mr>o&&(h(P,t[P]=s?Mr:De(Mr)),h(z,t[z]=s?vr:De(vr)))}r.attr("d",Qb(e,t)),Ze(n,t),tg(e,a,t,V)}function Ze(tr,ze){(s||u)&&lr();function lr(){var hr=ze.type!=="path",Ar=tr.selectAll(".visual-cue").data([0]),Qe=1;Ar.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":Qe}).classed("visual-cue",!0);var mr=le(s?ze.xanchor:Kb.midRange(hr?[ze.x0,ze.x1]:lo.extractPathCoords(ze.path,yc.paramIsX))),qr=xe(u?ze.yanchor:Kb.midRange(hr?[ze.y0,ze.y1]:lo.extractPathCoords(ze.path,yc.paramIsY)));if(mr=lo.roundPositionForSharpStrokeRendering(mr,Qe),qr=lo.roundPositionForSharpStrokeRendering(qr,Qe),s&&u){var Te="M"+(mr-1-Qe)+","+(qr-1-Qe)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";Ar.attr("d",Te)}else if(s){var Ue="M"+(mr-1-Qe)+","+(qr-9-Qe)+"v18 h2 v-18 Z";Ar.attr("d",Ue)}else{var _r="M"+(mr-9-Qe)+","+(qr-1-Qe)+"h18 v2 h-18 Z";Ar.attr("d",_r)}}}function er(tr){tr.selectAll(".visual-cue").remove()}function Je(tr,ze,lr){var hr=ze.xref,Ar=ze.yref,Qe=gc.getFromId(lr,hr),mr=gc.getFromId(lr,Ar),qr="";hr!=="paper"&&!Qe.autorange&&(qr+=hr),Ar!=="paper"&&!mr.autorange&&(qr+=Ar),ag.setClipUrl(tr,qr?"clip"+lr._fullLayout._uid+qr:null,lr)}}function sL(e,r,t){return e.replace(yc.segmentRE,function(a){var n=0,i=a.charAt(0),o=yc.paramIsX[i],l=yc.paramIsY[i],s=yc.numParams[i],u=a.slice(1).replace(yc.paramRE,function(f){return n>=s||(o[n]?f=r(f):l[n]&&(f=t(f)),n++),f});return i+u})}function hle(e,r){if(ng(e)){var t=r.node(),a=+t.getAttribute("data-index");if(a>=0){if(a===e._fullLayout._activeShapeIndex){uL(e);return}e._fullLayout._activeShapeIndex=a,e._fullLayout._deactivateShape=uL,e7(e)}}}function uL(e){if(ng(e)){var r=e._fullLayout._activeShapeIndex;r>=0&&(cL(e),delete e._fullLayout._activeShapeIndex,e7(e))}}function dle(e){if(ng(e)){cL(e);var r=e._fullLayout._activeShapeIndex,t=(e.layout||{}).shapes||[];if(r{"use strict";var s2=pr()._,ple=function(e){return{DIALOG_TITLE:s2(e,"Share chart"),DIALOG_MESSAGE_CLOUD:s2(e,"This chart will be uploaded to {Plotly Cloud} to create a sharing link. Only you can see it until you change its visibility."),DIALOG_MESSAGE_CLOUD_ACCOUNT:s2(e,"If you don't have a Plotly Cloud account yet, you'll have a chance to create one."),DIALOG_MESSAGE_OTHER:s2(e,"This chart will be sent to {serverUrl}."),DIALOG_CANCEL:s2(e,"Cancel"),DIALOG_CONFIRM:s2(e,"Share")}};pL.exports=ple});var bL=oe((Obe,yL)=>{"use strict";var gL=Lt(),{dfltConfig:mle}=m0(),gle=mL(),yle=(e,r,t,a,n)=>{let i=gle(e),o=r.append("div").classed("plotly-cloud-dialog-box",!0);if(o.append("div").classed("plotly-cloud-dialog-title",!0).text(i.DIALOG_TITLE),t===mle.plotlyServerURL){let s=o.append("div").classed("plotly-cloud-dialog-message",!0),u=new URL(t).origin,f=i.DIALOG_MESSAGE_CLOUD.split(/(\{|\})/),c=f[0],h=f[2],d=f[4];s.append("span").text(c),s.append("a").classed("plotly-cloud-dialog-message--hostname",!0).attr("href",u).attr("target","_blank").text(h),s.append("span").text(d),s.append("div").classed("plotly-cloud-dialog-message--account",!0).text(i.DIALOG_MESSAGE_CLOUD_ACCOUNT)}else{let s=new URL(t),u=s.hostname,f=s.origin,c=i.DIALOG_MESSAGE_OTHER.split(/(\{|\})/),h=c[0],d=c[4],p=o.append("div").classed("plotly-cloud-dialog-message",!0);p.append("span").text(h),p.append("a").classed("plotly-cloud-dialog-message--hostname",!0).attr("href",f).attr("target","_blank").text(u),p.append("span").text(d)}let l=o.append("div").classed("plotly-cloud-dialog-buttons",!0);l.append("button").classed("plotly-cloud-dialog-btn",!0).classed("plotly-cloud-dialog-btn--cancel",!0).text(i.DIALOG_CANCEL).on("click",n),l.append("button").classed("plotly-cloud-dialog-btn",!0).classed("plotly-cloud-dialog-btn--confirm",!0).text(i.DIALOG_CONFIRM).on("click",a)},ble=(e,r,t)=>{let a=gL.select(e._fullLayout._paperdiv.node());a.selectAll(".plotly-cloud-dialog").remove();let n=a.append("div").classed("plotly-cloud-dialog",!0),i=()=>{n.remove(),document.removeEventListener("keydown",o)},o=l=>{(l.key==="Escape"||l.keyCode===27)&&i()};document.addEventListener("keydown",o),n.on("click",()=>{gL.event.target===n.node()&&i()}),yle(e,n,r,()=>{i(),t()},i)};yL.exports=ble});var a7=oe((Ube,kL)=>{"use strict";var Fo=_t(),_le=Ln(),xL=En(),aa=Ym(),xle=ig().eraseActiveShape,wle=bL(),u2=pr(),Ut=u2._,ta={};kL.exports=ta;ta.toImage={name:"toImage",title:function(e){var r=e._context.toImageButtonOptions||{},t=r.format||"png";return t==="png"?Ut(e,"Download plot as a PNG"):Ut(e,"Download plot")},icon:aa.camera,click:function(e){var r=e._context.toImageButtonOptions,t={format:r.format||"png"};u2.notifier(Ut(e,"Preparing image - this may take a few seconds"),"long",e),["filename","width","height","scale"].forEach(function(a){a in r&&(t[a]=r[a])}),Fo.call("downloadImage",e,t).then(function(a){u2.notifier(Ut(e,"Image download succeeded")+" - "+a,"long",e)}).catch(function(){u2.notifier(Ut(e,"Sorry, there was a problem downloading your image!"),"long",e)})}};ta.downloadJson={name:"downloadJson",title:function(e){return Ut(e,"Download plot as JSON")},icon:aa.curlybraces,click:function(e){Fo.call("downloadImage",e,{format:"full-json"}).then(function(r){u2.notifier(Ut(e,"JSON download succeeded")+" - "+r,"long",e)}).catch(function(){u2.notifier(Ut(e,"Sorry, there was a problem downloading your JSON file!"),"long",e)})}};ta.sendChartToCloud={name:"sendChartToCloud",title:function(e){return Ut(e,"Share chart...")},icon:aa.cloudupload,click:function(e){var r=(window.PLOTLYENV||{}).BASE_URL||e._context.plotlyServerURL;if(!r){console.error("No destination URL provided (plotlyServerURL is empty)");return}var t;try{t=new URL(r)}catch(n){console.error("Invalid plotlyServerURL: "+r);return}let a=["http:","https:"];if(!a.includes(t.protocol)){console.error(`Invalid protocol '${t.protocol}' in plotlyServerURL '${r}'. Must be one of: ${a.join(", ")}`);return}wle(e,r,function(){_le.sendDataToCloud(e,r)})}};ta.zoom2d={name:"zoom2d",_cat:"zoom",title:function(e){return Ut(e,"Zoom")},attr:"dragmode",val:"zoom",icon:aa.zoombox,click:Di};ta.pan2d={name:"pan2d",_cat:"pan",title:function(e){return Ut(e,"Pan")},attr:"dragmode",val:"pan",icon:aa.pan,click:Di};ta.select2d={name:"select2d",_cat:"select",title:function(e){return Ut(e,"Box Select")},attr:"dragmode",val:"select",icon:aa.selectbox,click:Di};ta.lasso2d={name:"lasso2d",_cat:"lasso",title:function(e){return Ut(e,"Lasso Select")},attr:"dragmode",val:"lasso",icon:aa.lasso,click:Di};ta.drawclosedpath={name:"drawclosedpath",title:function(e){return Ut(e,"Draw closed freeform")},attr:"dragmode",val:"drawclosedpath",icon:aa.drawclosedpath,click:Di};ta.drawopenpath={name:"drawopenpath",title:function(e){return Ut(e,"Draw open freeform")},attr:"dragmode",val:"drawopenpath",icon:aa.drawopenpath,click:Di};ta.drawline={name:"drawline",title:function(e){return Ut(e,"Draw line")},attr:"dragmode",val:"drawline",icon:aa.drawline,click:Di};ta.drawrect={name:"drawrect",title:function(e){return Ut(e,"Draw rectangle")},attr:"dragmode",val:"drawrect",icon:aa.drawrect,click:Di};ta.drawcircle={name:"drawcircle",title:function(e){return Ut(e,"Draw circle")},attr:"dragmode",val:"drawcircle",icon:aa.drawcircle,click:Di};ta.eraseshape={name:"eraseshape",title:function(e){return Ut(e,"Erase active shape")},icon:aa.eraseshape,click:xle};ta.zoomIn2d={name:"zoomIn2d",_cat:"zoomin",title:function(e){return Ut(e,"Zoom in")},attr:"zoom",val:"in",icon:aa.zoom_plus,click:Di};ta.zoomOut2d={name:"zoomOut2d",_cat:"zoomout",title:function(e){return Ut(e,"Zoom out")},attr:"zoom",val:"out",icon:aa.zoom_minus,click:Di};ta.autoScale2d={name:"autoScale2d",_cat:"autoscale",title:function(e){return Ut(e,"Autoscale")},attr:"zoom",val:"auto",icon:aa.autoscale,click:Di};ta.resetScale2d={name:"resetScale2d",_cat:"resetscale",title:function(e){return Ut(e,"Reset axes")},attr:"zoom",val:"reset",icon:aa.home,click:Di};ta.hoverClosestCartesian={name:"hoverClosestCartesian",_cat:"hoverclosest",title:function(e){return Ut(e,"Show closest data on hover")},attr:"hovermode",val:"closest",icon:aa.tooltip_basic,gravity:"ne",click:Di};ta.hoverCompareCartesian={name:"hoverCompareCartesian",_cat:"hoverCompare",title:function(e){return Ut(e,"Compare data on hover")},attr:"hovermode",val:function(e){return e._fullLayout._isHoriz?"y":"x"},icon:aa.tooltip_compare,gravity:"ne",click:Di};function Di(e,r){var t=r.currentTarget,a=t.getAttribute("data-attr"),n=t.getAttribute("data-val")||!0,i=e._fullLayout,o={},l=xL.list(e,null,!0),s=i._cartesianSpikesEnabled,u,f;if(a==="zoom"){var c=n==="in"?.5:2,h=(1+c)/2,d=(1-c)/2,p,m;for(f=0;f-k),[m,b]=c.invert(f.midPt),{minscale:y}=u.projection,C=(l=u.projection.maxscale)!=null?l:1/0,x=Math.min(y,C),_=Math.max(y,C),A=n==="in"?_L*h:1/_L*h;A>_?A=_:A{"use strict";var CL=a7(),kle=Object.keys(CL),SL=["drawline","drawopenpath","drawclosedpath","drawcircle","drawrect","eraseshape"],DL=["v1hovermode","hoverclosest","hovercompare","togglehover","togglespikelines"].concat(SL,["downloadJson"]),f2=[],Cle=function(e){if(DL.indexOf(e._cat||e.name)===-1){var r=e.name,t=(e._cat||e.name).toLowerCase();f2.indexOf(r)===-1&&f2.push(r),f2.indexOf(t)===-1&&f2.push(t)}};kle.forEach(function(e){Cle(CL[e])});f2.sort();FL.exports={DRAW_MODES:SL,backButtons:DL,foreButtons:f2}});var o7={};Ua(o7,{default:()=>Dle});var i7,Sle,Dle,l7=Oa(()=>{"use strict";i7=H_(n7()),Sle={editType:"modebar",orientation:{valType:"enumerated",values:["v","h"],dflt:"h",editType:"modebar",description:"Sets the orientation of the modebar."},bgcolor:{valType:"color",editType:"modebar",description:"Sets the background color of the modebar."},color:{valType:"color",editType:"modebar",description:"Sets the color of the icons in the modebar."},activecolor:{valType:"color",editType:"modebar",description:"Sets the color of the active or hovered on icons in the modebar."},uirevision:{valType:"any",editType:"none",description:["Controls persistence of user-driven changes related to the modebar,","including `hovermode`, `dragmode`, and `showspikes` at both the","root level and inside subplots. Defaults to `layout.uirevision`."].join(" ")},add:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar",description:["Determines which predefined modebar buttons to add.","Please note that these buttons will only be shown if they are","compatible with all trace types used in a graph.","Similar to `config.modeBarButtonsToAdd` option.",`This may include *${i7.default.backButtons.join("*, *")}*.`].join(" ")},remove:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar",description:["Determines which predefined modebar buttons to remove.","Similar to `config.modeBarButtonsToRemove` option.",`This may include *${i7.default.foreButtons.join("*, *")}*.`].join(" ")}},Dle=Sle});var LL=oe((Ybe,EL)=>{"use strict";var Fle=pr(),ih=Nt(),Ele=ka(),Lle=(l7(),xr(o7)).default;EL.exports=function(r,t){var a=r.modebar||{},n=Ele.newContainer(t,"modebar");function i(l,s){return Fle.coerce(a,n,Lle,l,s)}i("orientation"),i("bgcolor",ih.addOpacity(t.paper_bgcolor,.5));var o=ih.contrast(ih.rgb(t.modebar.bgcolor));i("color",ih.addOpacity(o,.3)),i("activecolor",ih.addOpacity(o,.7)),i("uirevision",t.uirevision),i("add"),i("remove")}});var zL=oe((Vbe,RL)=>{"use strict";var s7=Lt(),qle=Qt(),sg=pr(),qL=Ym(),Ple=K2().version,Rle=new DOMParser;function PL(e){this.container=e.container,this.element=document.createElement("div"),this.update(e.graphInfo,e.buttons),this.container.appendChild(this.element)}var Gs=PL.prototype;Gs.update=function(e,r){this.graphInfo=e;var t=this.graphInfo._context,a=this.graphInfo._fullLayout,n="modebar-"+a._uid;this.element.setAttribute("id",n),this.element.setAttribute("role","toolbar"),this._uid=n,this.element.className="modebar modebar--custom",t.displayModeBar==="hover"&&(this.element.className+=" modebar--hover ease-bg"),a.modebar.orientation==="v"&&(this.element.className+=" vertical",r=r.reverse());var i=a.modebar,o="#"+n+" .modebar-group";document.querySelectorAll(o).forEach(function(c){c.style.backgroundColor=i.bgcolor});var l=!this.hasButtons(r),s=this.hasLogo!==t.displaylogo,u=this.locale!==t.locale;if(this.locale=t.locale,(l||s||u)&&(this.removeAllButtons(),this.updateButtons(r),t.watermark||t.displaylogo)){var f=this.getLogo();t.watermark&&(f.className=f.className+" watermark"),a.modebar.orientation==="v"?this.element.insertBefore(f,this.element.childNodes[0]):this.element.appendChild(f),this.hasLogo=!0}this.updateActiveButton(),sg.setStyleOnHover("#"+n+" .modebar-btn",".active",".icon path","fill: "+i.activecolor,"fill: "+i.color,this.element)};Gs.updateButtons=function(e){var r=this;this.buttons=e,this.buttonElements=[],this.buttonsNames=[],this.buttons.forEach(function(t){var a=r.createGroup();t.forEach(function(n){var i=n.name;if(!i)throw new Error("must provide button 'name' in button config");if(r.buttonsNames.indexOf(i)!==-1)throw new Error("button name '"+i+"' is taken");r.buttonsNames.push(i);var o=r.createButton(n);r.buttonElements.push(o),a.appendChild(o)}),r.element.appendChild(a)})};Gs.createGroup=function(){var e=document.createElement("div");e.className="modebar-group";var r=this.graphInfo._fullLayout.modebar;return e.style.backgroundColor=r.bgcolor,e};Gs.createButton=function(e){var r=this,t=document.createElement("button");t.setAttribute("type","button"),t.setAttribute("rel","tooltip"),t.className="modebar-btn";var a=e.title;a===void 0?a=e.name:typeof a=="function"&&(a=a(this.graphInfo)),(a||a===0)&&(t.setAttribute("data-title",a),t.setAttribute("aria-label",a)),e.attr!==void 0&&t.setAttribute("data-attr",e.attr);var n=e.val;n!==void 0&&(typeof n=="function"&&(n=n(this.graphInfo)),t.setAttribute("data-val",n));var i=e.click;if(typeof i!="function")throw new Error("must provide button 'click' function in button config");t.addEventListener("click",function(l){e.click(r.graphInfo,l),r.updateActiveButton(l.currentTarget)}),t.setAttribute("data-toggle",e.toggle||!1),e.toggle&&s7.select(t).classed("active",!0);var o=e.icon;return typeof o=="function"?t.appendChild(o()):t.appendChild(this.createIcon(o||qL.question)),t.setAttribute("data-gravity",e.gravity||"n"),t};Gs.createIcon=function(e){var r=qle(e.height)?Number(e.height):e.ascent-e.descent,t="http://www.w3.org/2000/svg",a;if(e.path){a=document.createElementNS(t,"svg"),a.setAttribute("viewBox",[0,0,e.width,r].join(" ")),a.setAttribute("class","icon");var n=document.createElementNS(t,"path");n.setAttribute("d",e.path),e.transform?n.setAttribute("transform",e.transform):e.ascent!==void 0&&n.setAttribute("transform","matrix(1 0 0 -1 0 "+e.ascent+")"),a.appendChild(n)}if(e.svg){var i=Rle.parseFromString(e.svg,"application/xml");a=i.childNodes[0]}return a.setAttribute("height","1em"),a.setAttribute("width","1em"),a};Gs.updateActiveButton=function(e){var r=this.graphInfo._fullLayout,t=e!==void 0?e.getAttribute("data-attr"):null;this.buttonElements.forEach(function(a){var n=a.getAttribute("data-val")||!0,i=a.getAttribute("data-attr"),o=a.getAttribute("data-toggle")==="true",l=s7.select(a),s=function(c,h){var d=r.modebar,p=c.querySelector(".icon path");p&&(h||c.matches(":hover")?p.style.fill=d.activecolor:p.style.fill=d.color)};if(o){if(i===t){var u=!l.classed("active");l.classed("active",u),s(a,u)}}else{var f=i===null?i:sg.nestedProperty(r,i).get();l.classed("active",f===n),s(a,f===n)}})};Gs.hasButtons=function(e){var r=this.buttons;if(!r||e.length!==r.length)return!1;for(var t=0;t{"use strict";var Ble=En(),NL=Ti(),u7=_t(),Ile=Pu().isUnifiedHover,Hle=zL(),ug=a7(),Ole=n7().DRAW_MODES,Ule=pr().extendDeep;BL.exports=function(r){var t=r._fullLayout,a=r._context,n=t._modeBar;if(!a.displayModeBar&&!a.watermark){n&&(n.destroy(),delete t._modeBar);return}if(!Array.isArray(a.modeBarButtonsToRemove))throw new Error(["*modeBarButtonsToRemove* configuration options","must be an array."].join(" "));if(!Array.isArray(a.modeBarButtonsToAdd))throw new Error(["*modeBarButtonsToAdd* configuration options","must be an array."].join(" "));var i=a.modeBarButtons,o;Array.isArray(i)&&i.length?o=Wle(i):!a.displayModeBar&&a.watermark?o=[]:o=Gle(r),n?n.update(r,o):t._modeBar=Hle(r,o)};function Gle(e){var r=e._fullLayout,t=e._fullData,a=e._context;function n(re,ae){if(typeof ae=="string"){if(ae.toLowerCase()===re.toLowerCase())return!0}else{var ie=ae.name,le=ae._cat||ae.name;if(ie===re||le===re.toLowerCase())return!0}return!1}var i=r.modebar.add;typeof i=="string"&&(i=[i]);var o=r.modebar.remove;typeof o=="string"&&(o=[o]);var l=a.modeBarButtonsToAdd.concat(i.filter(function(re){for(var ae=0;ae1?(P=["toggleHover"],z=["resetViews"]):c?(E=["zoomInGeo","zoomOutGeo"],P=["hoverClosestGeo"],z=["resetGeo"]):f?(P=["hoverClosest3d"],z=["resetCameraDefault3d","resetCameraLastSave3d"]):m?(E=["zoomInMap","zoomOutMap"],P=["toggleHover"],z=["resetViewMap"]):h?P=["hoverClosestPie"]:C?(P=["hoverClosestCartesian","hoverCompareCartesian"],z=["resetViewSankey"]):P=["toggleHover"],u&&P.push("toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"),(Xle(t)||_)&&(P=[]),u&&!x&&(E=["zoomIn2d","zoomOut2d","autoScale2d"],z[0]!=="resetViews"&&(z=["resetScale2d"])),f?I=["zoom3d","pan3d","orbitRotation","tableRotation"]:u&&!x||p?I=["zoom2d","pan2d"]:m||c?I=["pan2d"]:b&&(I=["zoom2d"]),Vle(t)&&I.push("select2d","lasso2d");var V=[],H=function(re){V.indexOf(re)===-1&&P.indexOf(re)!==-1&&V.push(re)};if(Array.isArray(l)){for(var X=[],N=0;N{"use strict";HL.exports={moduleType:"component",name:"modebar",layoutAttributes:(l7(),xr(o7)).default,supplyLayoutDefaults:LL(),manage:IL()}});var c7=oe((Wbe,OL)=>{"use strict";var Zle=(ci(),xr(fi)).FROM_BL;OL.exports=function(r,t,a){a===void 0&&(a=Zle[r.constraintoward||"center"]);var n=[r.r2l(r.range[0]),r.r2l(r.range[1])],i=n[0]+(n[1]-n[0])*a;r.range=r._input.range=[r.l2r(i+(n[0]-i)*t),r.l2r(i+(n[1]-i)*t)],r.setScale()}});var lh=oe(oh=>{"use strict";var bc=pr(),v7=P0(),Wl=En().id2name,$le=Yl(),UL=c7(),Jle=cm(),Kle=(Za(),xr(nn)).ALMOST_EQUAL,Qle=(ci(),xr(fi)).FROM_BL;oh.handleDefaults=function(e,r,t){var a=t.axIds,n=t.axHasImage,i=r._axisConstraintGroups=[],o=r._axisMatchGroups=[],l,s,u,f,c,h,d,p;for(l=0;li?t.slice(i):a.slice(n))+o}function rse(e,r){for(var t=r._size,a=t.h/t.w,n={},i=Object.keys(e),o=0;oKle*p&&!C)){for(i=0;iV&&iez&&(z=ie);var xe=(z-P)/(2*I);c/=xe,P=s.l2r(P),z=s.l2r(z),s.range=s._input.range=k{"use strict";var cg=Lt(),Fi=_t(),Eo=Ln(),tl=pr(),p7=vi(),m7=Gm(),sh=Nt(),c2=ha(),XL=Ov(),JL=f7(),uh=Ga(),Hu=(ci(),xr(fi)),KL=lh(),tse=KL.enforce,ase=KL.clean,jL=P0().doAutoRange,QL="start",nse="middle",eq="end",ise=(Hn(),xr(In)).zindexSeparator;Un.layoutStyles=function(e){return tl.syncOrAsync([Eo.doAutoMargin,lse],e)};function ose(e,r,t){for(var a=0;a=e[1]||n[1]<=e[0])&&i[0]r[0])return!0}return!1}function lse(e){var r=e._fullLayout,t=r._size,a=t.p,n=uh.list(e,"",!0),i,o,l,s,u,f;if(r._paperdiv.style({width:e._context.responsive&&r.autosize&&!e._context._hasZeroWidth&&!e.layout.width?"100%":r.width+"px",height:e._context.responsive&&r.autosize&&!e._context._hasZeroHeight&&!e.layout.height?"100%":r.height+"px"}).selectAll(".main-svg").call(c2.setSize,r.width,r.height),e._context.setBackground(e,r.paper_bgcolor),Un.drawMainTitle(e),JL.manage(e),!r._has("cartesian"))return Eo.previousPromises(e);function c(K,J,fe){var be=K._lw/2;if(K._id.charAt(0)==="x"){if(J){if(fe==="top")return J._offset-a-be}else return t.t+t.h*(1-(K.position||0))+be%1;return J._offset+J._length+a+be}if(J){if(fe==="right")return J._offset+J._length+a+be}else return t.l+t.w*(K.position||0)+be%1;return J._offset-a-be}for(i=0;i0){cse(e,i,u,s),l.attr({x:o,y:i,"text-anchor":a,dy:$L(r.yanchor)}).call(p7.positionText,o,i);var f=(r.text.match(p7.BR_TAG_ALL)||[]).length;if(f){var c=Hu.LINE_SPACING*f+Hu.MID_SHIFT;r.y===0&&(c=-c),l.selectAll(".line").each(function(){var b=+this.getAttribute("dy").slice(0,-2)-c+"em";this.setAttribute("dy",b)})}var h=cg.select(e).selectAll(".gtitle-subtitle");if(h.node()){var d=l.node().getBBox(),p=d.y+d.height,m=p+XL.SUBTITLE_PADDING_EM*r.subtitle.font.size;h.attr({x:o,y:m,"text-anchor":a,dy:$L(r.yanchor)}).call(p7.positionText,o,m)}}}};function sse(e,r,t,a,n){var i=r.yref==="paper"?e._fullLayout._size.h:e._fullLayout.height,o=tl.isTopAnchor(r)?a:a-n,l=t==="b"?i-o:o;return tl.isTopAnchor(r)&&t==="t"||tl.isBottomAnchor(r)&&t==="b"?!1:l.5?"t":"b",o=e._fullLayout.margin[i],l=0;return r.yref==="paper"?l=t+r.pad.t+r.pad.b:r.yref==="container"&&(l=use(i,a,n,e._fullLayout.height,t)+r.pad.t+r.pad.b),l>o?l:0}function cse(e,r,t,a){var n="title.automargin",i=e._fullLayout.title,o=i.y>.5?"t":"b",l={x:i.x,y:i.y,t:0,b:0},s={};i.yref==="paper"&&sse(e,i,o,r,a)?l[o]=t:i.yref==="container"&&(s[o]=t,e._fullLayout._reservedMargin[n]=s),Eo.allowAutoMargin(e,n),Eo.autoMargin(e,n,l)}function vse(e,r){var t=e.title,a=e._size,n=0;return r===QL?n=t.pad.l:r===eq&&(n=-t.pad.r),t.xref==="paper"?a.l+a.w*t.x+n:e.width*t.x+n}function hse(e,r){var t=e.title,a=e._size,n=0;return r==="0em"||!r?n=-t.pad.b:r===Hu.CAP_SHIFT+"em"&&(n=t.pad.t),t.y==="auto"?a.t/2:t.yref==="paper"?a.t+a.h-a.h*t.y+n:e.height-e.height*t.y+n}function $L(e){return e==="top"?Hu.CAP_SHIFT+.3+"em":e==="bottom"?"-0.3em":Hu.MID_SHIFT+"em"}function dse(e){var r=e.title,t=nse;return tl.isRightAnchor(r)?t=eq:tl.isLeftAnchor(r)&&(t=QL),t}function pse(e){var r=e.title,t="0em";return tl.isTopAnchor(r)?t=Hu.CAP_SHIFT+"em":tl.isMiddleAnchor(r)&&(t=Hu.MID_SHIFT+"em"),t}Un.doTraceStyle=function(e){var r=e.calcdata,t=[],a;for(a=0;a{"use strict";var mse=B0().readPaths,gse=eg(),rq=C0().clearOutlineControllers,g7=Nt(),tq=ha(),yse=ka().arrayEditor,aq=O0(),bse=aq.getPathString;iq.exports={draw:hg,drawOne:nq,activateLastSelection:wse};function hg(e){var r=e._fullLayout;rq(e),r._selectionLayer.selectAll("path").remove();for(var t in r._plots){var a=r._plots[t].selectionLayer;a&&a.selectAll("path").remove()}for(var n=0;n=0;b--){var y=o.append("path").attr(s).style("opacity",b?.1:u).call(g7.stroke,c).call(g7.fill,f).call(tq.dashLine,b?"solid":d,b?4+h:h);if(_se(y,e,a),p){var C=yse(e.layout,"selections",a);y.style({cursor:"move"});var x={element:y.node(),plotinfo:n,gd:e,editHelpers:C,isActiveSelection:!0},_=mse(l,e);gse(_,y,x)}else y.style("pointer-events",b?"all":"none");m[b]=y}var A=m[0],k=m[1];k.node().addEventListener("click",function(){return xse(e,A)})}}function _se(e,r,t){var a=t.xref+t.yref;tq.setClipUrl(e,"clip"+r._fullLayout._uid+a,r)}function xse(e,r){if(dg(e)){var t=r.node(),a=+t.getAttribute("data-index");if(a>=0){if(a===e._fullLayout._activeSelectionIndex){y7(e);return}e._fullLayout._activeSelectionIndex=a,e._fullLayout._deactivateSelection=y7,hg(e)}}}function wse(e){if(dg(e)){var r=e._fullLayout.selections.length-1;e._fullLayout._activeSelectionIndex=r,e._fullLayout._deactivateSelection=y7,hg(e)}}function y7(e){if(dg(e)){var r=e._fullLayout._activeSelectionIndex;r>=0&&(rq(e),delete e._fullLayout._activeSelectionIndex,hg(e))}}});var lq=oe((Kbe,oq)=>{function Ase(){var e,r=0,t=!1;function a(n,i){return e.list.push({type:n,data:i?JSON.parse(JSON.stringify(i)):void 0}),e}return e={list:[],segmentId:function(){return r++},checkIntersection:function(n,i){return a("check",{seg1:n,seg2:i})},segmentChop:function(n,i){return a("div_seg",{seg:n,pt:i}),a("chop",{seg:n,pt:i})},statusRemove:function(n){return a("pop_seg",{seg:n})},segmentUpdate:function(n){return a("seg_update",{seg:n})},segmentNew:function(n,i){return a("new_seg",{seg:n,primary:i})},segmentRemove:function(n){return a("rem_seg",{seg:n})},tempStatus:function(n,i,o){return a("temp_status",{seg:n,above:i,below:o})},rewind:function(n){return a("rewind",{seg:n})},status:function(n,i,o){return a("status",{seg:n,above:i,below:o})},vert:function(n){return n===t?e:(t=n,a("vert",{x:n}))},log:function(n){return typeof n!="string"&&(n=JSON.stringify(n,!1," ")),a("log",{txt:n})},reset:function(){return a("reset")},selected:function(n){return a("selected",{segs:n})},chainStart:function(n){return a("chain_start",{seg:n})},chainRemoveHead:function(n,i){return a("chain_rem_head",{index:n,pt:i})},chainRemoveTail:function(n,i){return a("chain_rem_tail",{index:n,pt:i})},chainNew:function(n,i){return a("chain_new",{pt1:n,pt2:i})},chainMatch:function(n){return a("chain_match",{index:n})},chainClose:function(n){return a("chain_close",{index:n})},chainAddHead:function(n,i){return a("chain_add_head",{index:n,pt:i})},chainAddTail:function(n,i){return a("chain_add_tail",{index:n,pt:i})},chainConnect:function(n,i){return a("chain_con",{index1:n,index2:i})},chainReverse:function(n){return a("chain_rev",{index:n})},chainJoin:function(n,i){return a("chain_join",{index1:n,index2:i})},done:function(){return a("done")}},e}oq.exports=Ase});var uq=oe((Qbe,sq)=>{function Mse(e){typeof e!="number"&&(e=1e-10);var r={epsilon:function(t){return typeof t=="number"&&(e=t),e},pointAboveOrOnLine:function(t,a,n){var i=a[0],o=a[1],l=n[0],s=n[1],u=t[0],f=t[1];return(l-i)*(f-o)-(s-o)*(u-i)>=-e},pointBetween:function(t,a,n){var i=t[1]-a[1],o=n[0]-a[0],l=t[0]-a[0],s=n[1]-a[1],u=l*o+i*s;if(u-e)},pointsSameX:function(t,a){return Math.abs(t[0]-a[0])e!=l-i>e&&(o-f)*(i-c)/(l-c)+f-n>e&&(s=!s),o=f,l=c}return s}};return r}sq.exports=Mse});var cq=oe((e7e,fq)=>{var Tse={create:function(){var e={root:{root:!0,next:null},exists:function(r){return!(r===null||r===e.root)},isEmpty:function(){return e.root.next===null},getHead:function(){return e.root.next},insertBefore:function(r,t){for(var a=e.root,n=e.root.next;n!==null;){if(t(n)){r.prev=n.prev,r.next=n,n.prev.next=r,n.prev=r;return}a=n,n=n.next}a.next=r,r.prev=a,r.next=null},findTransition:function(r){for(var t=e.root,a=e.root.next;a!==null&&!r(a);)t=a,a=a.next;return{before:t===e.root?null:t,after:a,insert:function(n){return n.prev=t,n.next=a,t.next=n,a!==null&&(a.prev=n),n}}}};return e},node:function(e){return e.prev=null,e.next=null,e.remove=function(){e.prev.next=e.next,e.next&&(e.next.prev=e.prev),e.prev=null,e.next=null},e}};fq.exports=Tse});var hq=oe((r7e,vq)=>{var fh=cq();function kse(e,r,t){function a(p,m){return{id:t?t.segmentId():-1,start:p,end:m,myFill:{above:null,below:null},otherFill:null}}function n(p,m,b){return{id:t?t.segmentId():-1,start:p,end:m,myFill:{above:b.myFill.above,below:b.myFill.below},otherFill:null}}var i=fh.create();function o(p,m,b,y,C,x){var _=r.pointsCompare(m,C);return _!==0?_:r.pointsSame(b,x)?0:p!==y?p?1:-1:r.pointAboveOrOnLine(b,y?C:x,y?x:C)?1:-1}function l(p,m){i.insertBefore(p,function(b){var y=o(p.isStart,p.pt,m,b.isStart,b.pt,b.other.pt);return y<0})}function s(p,m){var b=fh.node({isStart:!0,pt:p.start,seg:p,primary:m,other:null,status:null});return l(b,p.end),b}function u(p,m,b){var y=fh.node({isStart:!1,pt:m.end,seg:m,primary:b,other:p,status:null});p.other=y,l(y,p.pt)}function f(p,m){var b=s(p,m);return u(b,p,m),b}function c(p,m){t&&t.segmentChop(p.seg,m),p.other.remove(),p.seg.end=m,p.other.pt=m,l(p.other,p.pt)}function h(p,m){var b=n(m,p.seg.end,p.seg);return c(p,m),f(b,p.primary)}function d(p,m){var b=fh.create();function y(N,Q){var ee=N.seg.start,re=N.seg.end,ae=Q.seg.start,ie=Q.seg.end;return r.pointsCollinear(ee,ae,ie)?r.pointsCollinear(re,ae,ie)||r.pointAboveOrOnLine(re,ae,ie)?1:-1:r.pointAboveOrOnLine(ee,ae,ie)?1:-1}function C(N){return b.findTransition(function(Q){var ee=y(N,Q.ev);return ee>0})}function x(N,Q){var ee=N.seg,re=Q.seg,ae=ee.start,ie=ee.end,le=re.start,xe=re.end;t&&t.checkIntersection(ee,re);var De=r.linesIntersect(ae,ie,le,xe);if(De===!1){if(!r.pointsCollinear(ae,ie,le)||r.pointsSame(ae,xe)||r.pointsSame(ie,le))return!1;var Ye=r.pointsSame(ae,le),Ee=r.pointsSame(ie,xe);if(Ye&&Ee)return Q;var ke=!Ye&&r.pointBetween(ae,le,xe),je=!Ee&&r.pointBetween(ie,le,xe);if(Ye)return je?h(Q,ie):h(N,xe),Q;ke&&(Ee||(je?h(Q,ie):h(N,xe)),h(Q,ae))}else De.alongA===0&&(De.alongB===-1?h(N,le):De.alongB===0?h(N,De.pt):De.alongB===1&&h(N,xe)),De.alongB===0&&(De.alongA===-1?h(Q,ae):De.alongA===0?h(Q,De.pt):De.alongA===1&&h(Q,ie));return!1}for(var _=[];!i.isEmpty();){var A=i.getHead();if(t&&t.vert(A.pt[0]),A.isStart){let N=function(){if(M){var Q=x(A,M);if(Q)return Q}return E?x(A,E):!1};var X=N;t&&t.segmentNew(A.seg,A.primary);var k=C(A),M=k.before?k.before.ev:null,E=k.after?k.after.ev:null;t&&t.tempStatus(A.seg,M?M.seg:!1,E?E.seg:!1);var P=N();if(P){if(e){var z;A.seg.myFill.below===null?z=!0:z=A.seg.myFill.above!==A.seg.myFill.below,z&&(P.seg.myFill.above=!P.seg.myFill.above)}else P.seg.otherFill=A.seg.myFill;t&&t.segmentUpdate(P.seg),A.other.remove(),A.remove()}if(i.getHead()!==A){t&&t.rewind(A.seg);continue}if(e){var z;A.seg.myFill.below===null?z=!0:z=A.seg.myFill.above!==A.seg.myFill.below,E?A.seg.myFill.below=E.seg.myFill.above:A.seg.myFill.below=p,z?A.seg.myFill.above=!A.seg.myFill.below:A.seg.myFill.above=A.seg.myFill.below}else if(A.seg.otherFill===null){var I;E?A.primary===E.primary?I=E.seg.otherFill.above:I=E.seg.myFill.above:I=A.primary?m:p,A.seg.otherFill={above:I,below:I}}t&&t.status(A.seg,M?M.seg:!1,E?E.seg:!1),A.other.status=k.insert(fh.node({ev:A}))}else{var V=A.status;if(V===null)throw new Error("PolyBool: Zero-length segment detected; your epsilon is probably too small or too large");if(b.exists(V.prev)&&b.exists(V.next)&&x(V.prev.ev,V.next.ev),t&&t.statusRemove(V.ev.seg),V.remove(),!A.primary){var H=A.seg.myFill;A.seg.myFill=A.seg.otherFill,A.seg.otherFill=H}_.push(A.seg)}i.getHead().remove()}return t&&t.done(),_}return e?{addRegion:function(p){for(var m,b=p[p.length-1],y=0;y{function Cse(e,r,t){var a=[],n=[];return e.forEach(function(i){var o=i.start,l=i.end;if(r.pointsSame(o,l)){console.warn("PolyBool: Warning: Zero-length segment detected; your epsilon is probably too small or too large");return}t&&t.chainStart(i);var s={index:0,matches_head:!1,matches_pt1:!1},u={index:0,matches_head:!1,matches_pt1:!1},f=s;function c(X,N,Q){return f.index=X,f.matches_head=N,f.matches_pt1=Q,f===s?(f=u,!1):(f=null,!0)}for(var h=0;h{function ch(e,r,t){var a=[];return e.forEach(function(n){var i=(n.myFill.above?8:0)+(n.myFill.below?4:0)+(n.otherFill&&n.otherFill.above?2:0)+(n.otherFill&&n.otherFill.below?1:0);r[i]!==0&&a.push({id:t?t.segmentId():-1,start:n.start,end:n.end,myFill:{above:r[i]===1,below:r[i]===2},otherFill:null})}),t&&t.selected(a),a}var Sse={union:function(e,r){return ch(e,[0,2,1,0,2,2,0,0,1,0,1,0,0,0,0,0],r)},intersect:function(e,r){return ch(e,[0,0,0,0,0,2,0,2,0,0,1,1,0,2,1,0],r)},difference:function(e,r){return ch(e,[0,0,0,0,2,0,2,0,1,1,0,0,0,1,2,0],r)},differenceRev:function(e,r){return ch(e,[0,2,1,0,0,0,1,1,0,2,0,2,0,0,0,0],r)},xor:function(e,r){return ch(e,[0,2,1,0,2,0,0,1,1,0,0,2,0,1,2,0],r)}};mq.exports=Sse});var bq=oe((n7e,yq)=>{var Dse={toPolygon:function(e,r){function t(i){if(i.length<=0)return e.segments({inverted:!1,regions:[]});function o(u){var f=u.slice(0,u.length-1);return e.segments({inverted:!1,regions:[f]})}for(var l=o(i[0]),s=1;s{var Fse=lq(),Ese=uq(),_q=hq(),Lse=pq(),vh=gq(),xq=bq(),al=!1,hh=Ese(),so;so={buildLog:function(e){return e===!0?al=Fse():e===!1&&(al=!1),al===!1?!1:al.list},epsilon:function(e){return hh.epsilon(e)},segments:function(e){var r=_q(!0,hh,al);return e.regions.forEach(r.addRegion),{segments:r.calculate(e.inverted),inverted:e.inverted}},combine:function(e,r){var t=_q(!1,hh,al);return{combined:t.calculate(e.segments,e.inverted,r.segments,r.inverted),inverted1:e.inverted,inverted2:r.inverted}},selectUnion:function(e){return{segments:vh.union(e.combined,al),inverted:e.inverted1||e.inverted2}},selectIntersect:function(e){return{segments:vh.intersect(e.combined,al),inverted:e.inverted1&&e.inverted2}},selectDifference:function(e){return{segments:vh.difference(e.combined,al),inverted:e.inverted1&&!e.inverted2}},selectDifferenceRev:function(e){return{segments:vh.differenceRev(e.combined,al),inverted:!e.inverted1&&e.inverted2}},selectXor:function(e){return{segments:vh.xor(e.combined,al),inverted:e.inverted1!==e.inverted2}},polygon:function(e){return{regions:Lse(e.segments,hh,al),inverted:e.inverted}},polygonFromGeoJSON:function(e){return xq.toPolygon(so,e)},polygonToGeoJSON:function(e){return xq.fromPolygon(so,hh,e)},union:function(e,r){return dh(e,r,so.selectUnion)},intersect:function(e,r){return dh(e,r,so.selectIntersect)},difference:function(e,r){return dh(e,r,so.selectDifference)},differenceRev:function(e,r){return dh(e,r,so.selectDifferenceRev)},xor:function(e,r){return dh(e,r,so.selectXor)}};function dh(e,r,t){var a=so.segments(e),n=so.segments(r),i=so.combine(a,n),o=t(i);return so.polygon(o)}typeof window=="object"&&(window.PolyBool=so);wq.exports=so});var Tq=oe((o7e,Mq)=>{Mq.exports=function(r,t,a,n){var i=r[0],o=r[1],l=!1;a===void 0&&(a=0),n===void 0&&(n=t.length);for(var s=n-a,u=0,f=s-1;uo!=p>o&&i<(d-c)*(o-h)/(p-h)+c;m&&(l=!l)}return l}});var gg=oe((l7e,kq)=>{"use strict";var _7=vp().dot,pg=(Za(),xr(nn)).BADNUM,mg=kq.exports={};mg.tester=function(r){var t=r.slice(),a=t[0][0],n=a,i=t[0][1],o=i,l;for((t[t.length-1][0]!==t[0][0]||t[t.length-1][1]!==t[0][1])&&t.push(t[0]),l=1;ln||y===pg||yo||m&&u(p))}function c(p,m){var b=p[0],y=p[1];if(b===pg||bn||y===pg||yo)return!1;var C=t.length,x=t[0][0],_=t[0][1],A=0,k,M,E,P,z;for(k=1;kMath.max(M,x)||y>Math.max(E,_)))if(yl||Math.abs(_7(c,u))>n)return!0;return!1};mg.filter=function(r,t){var a=[r[0]],n=0,i=0;function o(s){r.push(s);var u=a.length,f=n;a.splice(i+1);for(var c=f+1;c1){var l=r.pop();o(l)}return{addPt:o,raw:r,filtered:a}}});var Cq={};Ua(Cq,{BENDPX:()=>qse,MINSELECT:()=>Pse,SELECTDELAY:()=>Rse,SELECTID:()=>zse});var qse,Pse,Rse,zse,Sq=Oa(()=>{"use strict";qse=1.5,Pse=12,Rse=100,zse="-select"});var $q=oe((s7e,Zq)=>{"use strict";var Dq=Aq(),Nse=Tq(),gh=_t(),Bse=ha().dashStyle,ph=Nt(),Ise=jl(),Hse=Pu().makeEventData,wh=i2(),Ose=wh.freeMode,Use=wh.rectMode,yh=wh.drawMode,M7=wh.openMode,T7=wh.selectMode,Fq=O0(),Eq=(ah(),xr(th)),zq=eg(),Nq=C0().clearOutline,Bq=B0(),x7=Bq.handleEllipse,Gse=Bq.readPaths,Yse=Jm().newShapes,Vse=jb(),Xse=b7().activateLastSelection,bg=pr(),jse=bg.sorterAsc,Iq=gg(),mh=Cp(),nl=En().getFromId,Wse=Gm(),Zse=vg().redrawReglTraces,_g=(Sq(),xr(Cq)),Ys=_g.MINSELECT,$se=Iq.filter,k7=Iq.tester,C7=jm(),Lq=C7.p2r,Jse=C7.axValue,Kse=C7.getTransform;function S7(e){return e.subplot!==void 0}function Qse(e,r,t,a,n){var i=!S7(a),o=Ose(n),l=Use(n),s=M7(n),u=yh(n),f=T7(n),c=n==="drawline",h=n==="drawcircle",d=c||h,p=a.gd,m=p._fullLayout,b=f&&m.newselection.mode==="immediate"&&i,y=m._zoomlayer,C=a.element.getBoundingClientRect(),x=a.plotinfo,_=Kse(x),A=r-C.left,k=t-C.top;m._calcInverseTransform(p);var M=bg.apply3DTransform(m._invTransform)(A,k);A=M[0],k=M[1];var E=m._invScaleX,P=m._invScaleY,z=A,I=k,V="M"+A+","+k,H=a.xaxes[0],X=a.yaxes[0],N=H._length,Q=X._length,ee=e.altKey&&!(yh(n)&&s),re,ae,ie,le,xe,De,Ye;Oq(e,p,a),o&&(re=$se([[A,k]],_g.BENDPX));var Ee=y.selectAll("path.select-outline-"+x.id).data([1]),ke=u?m.newshape:m.newselection;u&&(a.hasText=ke.label.text||ke.label.texttemplate);var je=u&&!s?ke.fillcolor:"rgba(0,0,0,0)",W=ke.line.color||(i?ph.contrast(p._fullLayout.plot_bgcolor):"#7f7f7f");Ee.enter().append("path").attr("class","select-outline select-outline-"+x.id).style({opacity:u?ke.opacity/2:1,"stroke-dasharray":Bse(ke.line.dash,ke.line.width),"stroke-width":ke.line.width+"px","shape-rendering":"crispEdges"}).call(ph.stroke,W).call(ph.fill,je).attr("fill-rule","evenodd").classed("cursor-move",!!u).attr("transform",_).attr("d",V+"Z");var se=y.append("path").attr("class","zoombox-corners").style({fill:ph.background,stroke:ph.defaultLine,"stroke-width":1}).attr("transform",_).attr("d","M0,0Z");if(u&&a.hasText){var he=y.select(".label-temp");he.empty()&&(he=y.append("g").classed("label-temp",!0).classed("select-outline",!0).style({opacity:.8}))}var K=m._uid+_g.SELECTID,J=[],fe=xg(p,a.xaxes,a.yaxes,a.subplot);b&&!e.shiftKey&&(a._clearSubplotSelections=function(){if(i){var Ne=H._id,Ze=X._id;Xq(p,Ne,Ze,fe);for(var er=(p.layout||{}).selections||[],Je=[],tr=!1,ze=0;ze=0){p._fullLayout._deactivateShape(p);return}if(!u){var er=m.clickmode;mh.done(K).then(function(){if(mh.clear(K),Ne===2){for(Ee.remove(),xe=0;xe-1&&Hq(Ze,p,a.xaxes,a.yaxes,a.subplot,a,Ee),er==="event"&&xh(p,void 0);Ise.click(p,Ze,x.id)}).catch(bg.error)}},a.doneFn=function(){se.remove(),mh.done(K).then(function(){mh.clear(K),!b&&le&&a.selectionDefs&&(le.subtract=ee,a.selectionDefs.push(le),a.mergedPolygons.length=0,[].push.apply(a.mergedPolygons,ie)),(b||u)&&bh(a,b),a.doneFnCompleted&&a.doneFnCompleted(J),f&&xh(p,Ye)}).catch(bg.error)}}function Hq(e,r,t,a,n,i,o){var l=r._hoverdata,s=r._fullLayout,u=s.clickmode,f=u.indexOf("event")>-1,c=[],h,d,p,m,b,y,C,x,_,A;if(nue(l)){Oq(e,r,i),h=xg(r,t,a,n);var k=iue(l,h),M=k.pointNumbers.length>0;if(M?oue(h,k):lue(h)&&(C=Pq(k))){for(o&&o.remove(),A=0;A=0}function aue(e){return e._fullLayout._activeSelectionIndex>=0}function bh(e,r){var t=e.dragmode,a=e.plotinfo,n=e.gd;tue(n)&&n._fullLayout._deactivateShape(n),aue(n)&&n._fullLayout._deactivateSelection(n);var i=n._fullLayout,o=i._zoomlayer,l=yh(t),s=T7(t);if(l||s){var u=o.selectAll(".select-outline-"+a.id);if(u&&n._fullLayout._outlining){var f;l&&(f=Yse(u,e)),f&&gh.call("_guiRelayout",n,{shapes:f});var c;s&&!S7(e)&&(c=Vse(u,e)),c&&(n._fullLayout._noEmitSelectedAtStart=!0,gh.call("_guiRelayout",n,{selections:c}).then(function(){r&&Xse(n)})),n._fullLayout._outlining=!1}}a.selection={},a.selection.selectionDefs=e.selectionDefs=[],a.selection.mergedPolygons=e.mergedPolygons=[]}function qq(e){return e._id}function xg(e,r,t,a){if(!e.calcdata)return[];var n=[],i=r.map(qq),o=t.map(qq),l,s,u;for(u=0;u0,i=n?a[0]:t;return r.selectedpoints?r.selectedpoints.indexOf(i)>-1:!1}function oue(e,r){var t=[],a,n,i,o;for(o=0;o0&&t.push(a);if(t.length===1&&(i=t[0]===r.searchInfo,i&&(n=r.searchInfo.cd[0].trace,n.selectedpoints.length===r.pointNumbers.length))){for(o=0;o1||(r+=a.selectedpoints.length,r>1)))return!1;return r===1}function _h(e,r,t){var a,n;for(a=0;a-1&&r;if(!o&&r){var Ne=Rq(e,!0);if(Ne.length){var Ze=Ne[0].xref,er=Ne[0].yref;if(Ze&&er){var Je=jq(Ne),tr=Wq([nl(e,Ze,"x"),nl(e,er,"y")]);tr(J,Je)}}e._fullLayout._noEmitSelectedAtStart?e._fullLayout._noEmitSelectedAtStart=!1:be&&xh(e,J),h._reselect=!1}if(!o&&h._deselect){var ze=h._deselect;l=ze.xref,s=ze.yref,fue(l,s,f)||Xq(e,l,s,a),be&&(J.points.length?xh(e,J):E7(e)),h._deselect=!1}return{eventData:J,selectionTesters:t}}function uue(e){var r=e.calcdata;if(r)for(var t=0;t{"use strict";Jq.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}]});var Ah={};Ua(Ah,{axisRefDescription:()=>pue});function pue(e,r,t){return[`If set to a ${e} axis id (e.g. *${e}* or *${e}2*),`,`the \`${e}\` position refers to a ${e} coordinate.`,`If set to *paper*, the \`${e}\` position refers to the distance from the`,`${r} of the plotting area in normalized coordinates where *0* (*1*) corresponds`,`to the ${r} (${t}). If set to a ${e} 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 ${r} of the domain of that`,`axis: e.g., *${e}2 domain* refers to the domain of the second ${e}`,`axis and a ${e} position of 0.5 refers to the point between the ${r}`,`and the ${t} of the domain of the second ${e} axis.`].join(" ")}var Mh=Oa(()=>{"use strict"});var v2=oe((c7e,eP)=>{"use strict";var Kq=L7(),Qq=xi(),wg=(Hn(),xr(In)),mue=ka().templatedArray,f7e=(Mh(),xr(Ah));eP.exports=mue("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:Qq({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:Kq.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:Kq.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",wg.idRegex.x.toString()],editType:"calc"},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",wg.idRegex.y.toString()],editType:"calc"},xref:{valType:"enumerated",values:["paper",wg.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",wg.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:Qq({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc"})});var Ag={};Ua(Ag,{PTS_LINESONLY:()=>gue,eventDataKeys:()=>xue,maxScreensAway:()=>_ue,minTolerance:()=>yue,toleranceGrowth:()=>bue});var gue,yue,bue,_ue,xue,Mg=Oa(()=>{"use strict";gue=20,yue=.2,bue=10,_ue=20,xue=[]});var q7=oe((v7e,rP)=>{"use strict";rP.exports=function(r){return{valType:"color",editType:"style",anim:!0}}});var _c=oe((h7e,uP)=>{"use strict";var tP=l6().axisHoverFormat,{hovertemplateAttrs:wue,texttemplateAttrs:Aue,templatefallbackAttrs:aP}=Vf(),nP=Y1(),Mue=xi(),iP=Ds().dash,Tue=Ds().pattern,kue=ha(),Cue=(Mg(),xr(Ag)),Th=Dn().extendFlat,Sue=q7();function oP(e){return{valType:"any",dflt:0,editType:"calc"}}function lP(e){return{valType:"any",editType:"calc"}}function sP(e){return{valType:"enumerated",values:["start","middle","end"],dflt:"middle",editType:"calc"}}uP.exports={x:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0},x0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",anim:!0},dx:{valType:"number",dflt:1,editType:"calc",anim:!0},y:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0},y0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",anim:!0},dy:{valType:"number",dflt:1,editType:"calc",anim:!0},xperiod:oP("x"),yperiod:oP("y"),xperiod0:lP("x0"),yperiod0:lP("y0"),xperiodalignment:sP("x"),yperiodalignment:sP("y"),xhoverformat:tP("x"),yhoverformat:tP("y"),offsetgroup:{valType:"string",dflt:"",editType:"calc"},alignmentgroup:{valType:"string",dflt:"",editType:"calc"},stackgroup:{valType:"string",dflt:"",editType:"calc"},orientation:{valType:"enumerated",values:["v","h"],editType:"calc"},groupnorm:{valType:"enumerated",values:["","fraction","percent"],dflt:"",editType:"calc"},stackgaps:{valType:"enumerated",values:["infer zero","interpolate"],dflt:"infer zero",editType:"calc"},text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},texttemplate:Aue(),texttemplatefallback:aP({editType:"calc"}),hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"style"},mode:{valType:"flaglist",flags:["lines","markers","text"],extras:["none"],editType:"calc"},hoveron:{valType:"flaglist",flags:["points","fills"],editType:"style"},hovertemplate:wue({},{keys:Cue.eventDataKeys}),hovertemplatefallback:aP(),line:{color:{valType:"color",editType:"style",anim:!0},width:{valType:"number",min:0,dflt:2,editType:"style",anim:!0},shape:{valType:"enumerated",values:["linear","spline","hv","vh","hvh","vhv"],dflt:"linear",editType:"plot"},smoothing:{valType:"number",min:0,max:1.3,dflt:1,editType:"plot"},dash:Th({},iP,{editType:"style"}),backoff:{valType:"number",min:0,dflt:"auto",arrayOk:!0,editType:"plot"},simplify:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},connectgaps:{valType:"boolean",dflt:!1,editType:"calc"},cliponaxis:{valType:"boolean",dflt:!0,editType:"plot"},fill:{valType:"enumerated",values:["none","tozeroy","tozerox","tonexty","tonextx","toself","tonext"],editType:"calc"},fillcolor:Sue(!0),fillgradient:Th({type:{valType:"enumerated",values:["radial","horizontal","vertical","none"],dflt:"none",editType:"calc"},start:{valType:"number",editType:"calc"},stop:{valType:"number",editType:"calc"},colorscale:{valType:"colorscale",editType:"style"},editType:"calc"}),fillpattern:Tue,marker:Th({symbol:{valType:"enumerated",values:kue.symbolList,dflt:"circle",arrayOk:!0,editType:"style"},opacity:{valType:"number",min:0,max:1,arrayOk:!0,editType:"style",anim:!0},angle:{valType:"angle",dflt:0,arrayOk:!0,editType:"plot",anim:!1},angleref:{valType:"enumerated",values:["previous","up"],dflt:"up",editType:"plot",anim:!1},standoff:{valType:"number",min:0,dflt:0,arrayOk:!0,editType:"plot",anim:!0},size:{valType:"number",min:0,dflt:6,arrayOk:!0,editType:"calc",anim:!0},maxdisplayed:{valType:"number",min:0,dflt:0,editType:"plot"},sizeref:{valType:"number",dflt:1,editType:"calc"},sizemin:{valType:"number",min:0,dflt:0,editType:"calc"},sizemode:{valType:"enumerated",values:["diameter","area"],dflt:"diameter",editType:"calc"},line:Th({width:{valType:"number",min:0,arrayOk:!0,editType:"style",anim:!0},dash:Th({},iP,{arrayOk:!0}),editType:"calc"},nP("marker.line",{anim:!0})),gradient:{type:{valType:"enumerated",values:["radial","horizontal","vertical","none"],arrayOk:!0,dflt:"none",editType:"calc"},color:{valType:"color",arrayOk:!0,editType:"calc"},editType:"calc"},editType:"calc"},nP("marker",{anim:!0})),selected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style"},color:{valType:"color",editType:"style"},size:{valType:"number",min:0,editType:"style"},editType:"style"},textfont:{color:{valType:"color",editType:"style"},editType:"style"},editType:"style"},unselected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style"},color:{valType:"color",editType:"style"},size:{valType:"number",min:0,editType:"style"},editType:"style"},textfont:{color:{valType:"color",editType:"style"},editType:"style"},editType:"style"},textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right"],dflt:"middle center",arrayOk:!0,editType:"calc"},textfont:Mue({editType:"calc",colorEditType:"style",arrayOk:!0}),zorder:{valType:"integer",dflt:0,editType:"plot"}}});var P7=oe((p7e,vP)=>{"use strict";var fP=v2(),cP=_c().line,Due=Ds().dash,Tg=Dn().extendFlat,Fue=Zo().overrideAll,Eue=ka().templatedArray,d7e=(Mh(),xr(Ah));vP.exports=Fue(Eue("selection",{type:{valType:"enumerated",values:["rect","path"]},xref:Tg({},fP.xref,{}),yref:Tg({},fP.yref,{}),x0:{valType:"any"},x1:{valType:"any"},y0:{valType:"any"},y1:{valType:"any"},path:{valType:"string",editType:"arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:.7,editType:"arraydraw"},line:{color:cP.color,width:Tg({},cP.width,{min:1,dflt:1}),dash:Tg({},Due,{dflt:"dot"})}}),"arraydraw","from-root")});var mP=oe((m7e,pP)=>{"use strict";var hP=pr(),kg=Ga(),Lue=Vl(),que=P7(),dP=O0();pP.exports=function(r,t){Lue(r,t,{name:"selections",handleItemDefaults:Pue});for(var a=t.selections,n=0;n{"use strict";gP.exports=function(r,t,a){a("newselection.mode");var n=a("newselection.line.width");n&&(a("newselection.line.color"),a("newselection.line.dash")),a("activeselection.fillcolor"),a("activeselection.opacity")}});var kh=oe((y7e,xP)=>{"use strict";var Rue=_t(),bP=pr(),_P=En();xP.exports=function(r){return function(a,n){var i=a[r];if(Array.isArray(i))for(var o=Rue.subplotsRegistry.cartesian,l=o.idRegex,s=n._subplots,u=s.xaxis,f=s.yaxis,c=s.cartesian,h=n._has("cartesian"),d=0;d{"use strict";var wP=b7(),Ch=$q();AP.exports={moduleType:"component",name:"selections",layoutAttributes:P7(),supplyLayoutDefaults:mP(),supplyDrawNewSelectionDefaults:yP(),includeBasePlot:kh()("selections"),draw:wP.draw,drawOne:wP.drawOne,reselect:Ch.reselect,prepSelect:Ch.prepSelect,clearOutline:Ch.clearOutline,clearSelectionsCache:Ch.clearSelectionsCache,selectOnClick:Ch.selectOnClick}});var GP=oe((_7e,UP)=>{"use strict";var H7=Lt(),il=pr(),MP=il.numberFormat,zue=pb(),Cg=_t(),LP=il.strTranslate,Nue=vi(),z7=Nt(),G0=ha(),Bue=jl(),TP=Ga(),Iue=z0(),Hue=el(),qP=i2(),Sg=qP.selectingOrDrawing,Oue=qP.freeMode,Uue=(ci(),xr(fi)).FROM_TL,Gue=Gm(),Yue=vg().redrawReglTraces,Vue=Ln(),N7=En().getFromId,Xue=Ou().prepSelect,jue=Ou().clearOutline,Wue=Ou().selectOnClick,R7=c7(),O7=(Hn(),xr(In)),kP=O7.MINDRAG,Oi=O7.MINZOOM,CP=!0;function Zue(e,r,t,a,n,i,o,l){var s=e._fullLayout._zoomlayer,u=o+l==="nsew",f=(o+l).length===1,c,h,d,p,m,b,y,C,x,_,A,k,M,E,P,z,I,V,H,X,N,Q,ee;t+=r.yaxis._shift;function re(){if(c=r.xaxis,h=r.yaxis,x=c._length,_=h._length,y=c._offset,C=h._offset,d={},d[c._id]=c,p={},p[h._id]=h,o&&l)for(var Ce=r.overlays,He=0;He=0){cr._fullLayout._deactivateShape(cr);return}var Mr=cr._fullLayout.clickmode;if(I7(cr),Ce===2&&!f&&qr(),u)Mr.indexOf("select")>-1&&Wue(He,cr,m,b,r.id,le),Mr.indexOf("event")>-1&&Bue.click(cr,He,r.id);else if(Ce===1&&f){var vr=o?h:c,kr=o==="s"||l==="w"?0:1,Er=vr._name+".range["+kr+"]",jr=$ue(vr,kr),et="left",nr="middle";if(vr.fixedrange)return;o?(nr=o==="n"?"top":"bottom",vr.side==="right"&&(et="right")):l==="e"&&(et="right"),cr._context.showAxisRangeEntryBoxes&&H7.select(ie).call(Nue.makeEditable,{gd:cr,immediate:!0,background:cr._fullLayout.paper_bgcolor,text:String(jr),fill:vr.tickfont?vr.tickfont.color:"#444",horizontalAlign:et,verticalAlign:nr}).on("edit",function(Cr){var ar=vr.d2r(Cr);ar!==void 0&&Cg.call("_guiRelayout",cr,Er,ar)})}}Hue.init(le);var Ye,Ee,ke,je,W,se,he,K,J,fe;function be(Ce,He,cr){var Mr=ie.getBoundingClientRect();Ye=He-Mr.left,Ee=cr-Mr.top,e._fullLayout._calcInverseTransform(e);var vr=il.apply3DTransform(e._fullLayout._invTransform)(Ye,Ee);Ye=vr[0],Ee=vr[1],ke={l:Ye,r:Ye,w:0,t:Ee,b:Ee,h:0},je=e._hmpixcount?e._hmlumcount/e._hmpixcount:z7.luminosity(e._fullLayout.plot_bgcolor),W="M0,0H"+x+"V"+_+"H0V0",se=!1,he="xy",fe=!1,K=zP(s,je,y,C,W),J=NP(s,y,C)}function Ne(Ce,He){if(e._transitioningWithDuration)return!1;var cr=Math.max(0,Math.min(x,Q*Ce+Ye)),Mr=Math.max(0,Math.min(_,ee*He+Ee)),vr=Math.abs(cr-Ye),kr=Math.abs(Mr-Ee);ke.l=Math.min(Ye,cr),ke.r=Math.max(Ye,cr),ke.t=Math.min(Ee,Mr),ke.b=Math.max(Ee,Mr);function Er(){he="",ke.r=ke.l,ke.t=ke.b,J.attr("d","M0,0Z")}if(A.isSubplotConstrained)vr>Oi||kr>Oi?(he="xy",vr/x>kr/_?(kr=vr*_/x,Ee>Mr?ke.t=Ee-kr:ke.b=Ee+kr):(vr=kr*x/_,Ye>cr?ke.l=Ye-vr:ke.r=Ye+vr),J.attr("d",Dg(ke))):Er();else if(k.isSubplotConstrained)if(vr>Oi||kr>Oi){he="xy";var jr=Math.min(ke.l/x,(_-ke.b)/_),et=Math.max(ke.r/x,(_-ke.t)/_);ke.l=jr*x,ke.r=et*x,ke.b=(1-jr)*_,ke.t=(1-et)*_,J.attr("d",Dg(ke))}else Er();else!E||kr0){var Cr;if(k.isSubplotConstrained||!M&&E.length===1){for(Cr=0;Cr1&&(Er.maxallowed!==void 0&&z===(Er.range[0]1&&(jr.maxallowed!==void 0&&I===(jr.range[0]=0?Math.min(e,.9):1/(1/Math.max(e,-.3)+3.222))}function Kue(e,r,t){return e?e==="nsew"?t?"":r==="pan"?"move":"crosshair":e.toLowerCase()+"-resize":"pointer"}function zP(e,r,t,a,n){return e.append("path").attr("class","zoombox").style({fill:r>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("transform",LP(t,a)).attr("d",n+"Z")}function NP(e,r,t){return e.append("path").attr("class","zoombox-corners").style({fill:z7.background,stroke:z7.defaultLine,"stroke-width":1,opacity:0}).attr("transform",LP(r,t)).attr("d","M0,0Z")}function BP(e,r,t,a,n,i){e.attr("d",a+"M"+t.l+","+t.t+"v"+t.h+"h"+t.w+"v-"+t.h+"h-"+t.w+"Z"),IP(e,r,n,i)}function IP(e,r,t,a){t||(e.transition().style("fill",a>.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),r.transition().style("opacity",1).duration(200))}function I7(e){H7.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function HP(e){CP&&e.data&&e._context.showTips&&(il.notifier(il._(e,"Double-click to zoom back out"),"long",e),CP=!1)}function Que(e,r){return"M"+(e.l-.5)+","+(r-Oi-.5)+"h-3v"+(2*Oi+1)+"h3ZM"+(e.r+.5)+","+(r-Oi-.5)+"h3v"+(2*Oi+1)+"h-3Z"}function e0e(e,r){return"M"+(r-Oi-.5)+","+(e.t-.5)+"v-3h"+(2*Oi+1)+"v3ZM"+(r-Oi-.5)+","+(e.b+.5)+"v3h"+(2*Oi+1)+"v-3Z"}function Dg(e){var r=Math.floor(Math.min(e.b-e.t,e.r-e.l,Oi)/2);return"M"+(e.l-3.5)+","+(e.t-.5+r)+"h3v"+-r+"h"+r+"v-3h-"+(r+3)+"ZM"+(e.r+3.5)+","+(e.t-.5+r)+"h-3v"+-r+"h"+-r+"v-3h"+(r+3)+"ZM"+(e.r+3.5)+","+(e.b+.5-r)+"h-3v"+r+"h"+-r+"v3h"+(r+3)+"ZM"+(e.l-3.5)+","+(e.b+.5-r)+"h3v"+r+"h"+r+"v3h-"+(r+3)+"Z"}function FP(e,r,t,a,n){for(var i=!1,o={},l={},s,u,f,c,h=(n||{}).xaHash,d=(n||{}).yaHash,p=0;p{"use strict";var r0e=Lt(),Fg=jl(),t0e=el(),a0e=z0(),Zl=GP().makeDragBox,Gn=(Hn(),xr(In)).DRAGGERSIZE;Eg.initInteractions=function(r){var t=r._fullLayout;if(r._context.staticPlot){r0e.select(r).selectAll(".drag").remove();return}if(!(!t._has("cartesian")&&!t._has("splom"))){var a=Object.keys(t._plots||{}).sort(function(i,o){if((t._plots[i].mainplot&&!0)===(t._plots[o].mainplot&&!0)){var l=i.split("y"),s=o.split("y");return l[0]===s[0]?Number(l[1]||1)-Number(s[1]||1):Number(l[0]||1)-Number(s[0]||1)}return t._plots[i].mainplot?1:-1});a.forEach(function(i){var o=t._plots[i],l=o.xaxis,s=o.yaxis;if(!o.mainplot){var u=Zl(r,o,l._offset,s._offset,l._length,s._length,"ns","ew");u.onmousemove=function(h){r._fullLayout._rehover=function(){r._fullLayout._hoversubplot===i&&r._fullLayout._plots[i]&&Fg.hover(r,h,i)},Fg.hover(r,h,i),r._fullLayout._lasthover=u,r._fullLayout._hoversubplot=i},u.onmouseout=function(h){r._dragging||(r._fullLayout._hoversubplot=null,t0e.unhover(r,h))},r._context.showAxisDragHandles&&(Zl(r,o,l._offset-Gn,s._offset-Gn,Gn,Gn,"n","w"),Zl(r,o,l._offset+l._length,s._offset-Gn,Gn,Gn,"n","e"),Zl(r,o,l._offset-Gn,s._offset+s._length,Gn,Gn,"s","w"),Zl(r,o,l._offset+l._length,s._offset+s._length,Gn,Gn,"s","e"))}if(r._context.showAxisDragHandles){if(i===l._mainSubplot){var f=l._mainLinePosition;l.side==="top"&&(f-=Gn),Zl(r,o,l._offset+l._length*.1,f,l._length*.8,Gn,"","ew"),Zl(r,o,l._offset,f,l._length*.1,Gn,"","w"),Zl(r,o,l._offset+l._length*.9,f,l._length*.1,Gn,"","e")}if(i===s._mainSubplot){var c=s._mainLinePosition;s.side!=="right"&&(c-=Gn),Zl(r,o,c,s._offset+s._length*.1,Gn,s._length*.8,"ns",""),Zl(r,o,c,s._offset+s._length*.9,Gn,s._length*.1,"s",""),Zl(r,o,c,s._offset,Gn,s._length*.1,"n","")}}});var n=t._hoverlayer.node();n.onmousemove=function(i){i.target=r._fullLayout._lasthover,Fg.hover(r,i,t._hoversubplot)},n.onclick=function(i){i.target=r._fullLayout._lasthover,Fg.click(r,i)},n.onmousedown=function(i){r._fullLayout._lasthover.onmousedown(i)},Eg.updateFx(r)}};Eg.updateFx=function(e){var r=e._fullLayout,t=r.dragmode==="pan"?"move":"crosshair";a0e(r._draggers,t)}});var XP=oe((w7e,VP)=>{"use strict";var YP=_t();VP.exports=function(r){for(var t=YP.layoutArrayContainers,a=YP.layoutArrayRegexes,n=r.split("[")[0],i,o,l=0;l{"use strict";var n0e=h0(),G7=cp(),Sh=Cu(),i0e=D5().sorterAsc,Y7=_t();Dh.containerArrayMatch=XP();var o0e=Dh.isAddVal=function(r){return r==="add"||n0e(r)},jP=Dh.isRemoveVal=function(r){return r===null||r==="remove"};Dh.applyContainerArrayChanges=function(r,t,a,n,i){var o=t.astr,l=Y7.getComponentMethod(o,"supplyLayoutDefaults"),s=Y7.getComponentMethod(o,"draw"),u=Y7.getComponentMethod(o,"drawOne"),f=n.replot||n.recalc||l===G7||s===G7,c=r.layout,h=r._fullLayout;if(a[""]){Object.keys(a).length>1&&Sh.warn("Full array edits are incompatible with other edits",o);var d=a[""][""];if(jP(d))t.set(null);else if(Array.isArray(d))t.set(d);else return Sh.warn("Unrecognized full array edit value",o,d),!0;return f?!1:(l(c,h),s(r),!0)}var p=Object.keys(a).map(Number).sort(i0e),m=t.get(),b=m||[],y=i(h,o).get(),C=[],x=-1,_=b.length,A,k,M,E,P,z,I,V;for(A=0;Ab.length-(I?0:1)){Sh.warn("index out of range",o,M);continue}if(z!==void 0)P.length>1&&Sh.warn("Insertion & removal are incompatible with edits to the same index.",o,M),jP(z)?C.push(M):I?(z==="add"&&(z={}),b.splice(M,0,z),y&&y.splice(M,0,{})):Sh.warn("Unrecognized full object edit value",o,M,z),x===-1&&(x=M);else for(k=0;k=0;A--)b.splice(C[A],1),y&&y.splice(C[A],1);if(b.length?m||t.set(b):t.set(null),f)return!1;if(l(c,h),u!==G7){var H;if(x===-1)H=p;else{for(_=Math.max(b.length,_),H=[],A=0;A=x));A++)H.push(M);for(A=x;A<_;A++)H.push(A)}for(A=0;A{"use strict";var KP=Qt(),QP=_t(),Ei=pr(),Fh=Ln(),eR=En(),Eh=eR.cleanId,l0e=eR.getFromTrace,V7=QP.traceIs,s0e=["x","y","z"];ol.clearPromiseQueue=function(e){Array.isArray(e._promises)&&e._promises.length>0&&Ei.log("Clearing previous rejected promises from queue."),e._promises=[]};ol.cleanLayout=function(e){var r,t;e||(e={}),e.xaxis1&&(e.xaxis||(e.xaxis=e.xaxis1),delete e.xaxis1),e.yaxis1&&(e.yaxis||(e.yaxis=e.yaxis1),delete e.yaxis1),e.scene1&&(e.scene||(e.scene=e.scene1),delete e.scene1);var a=(Fh.subplotsRegistry.cartesian||{}).attrRegex,n=(Fh.subplotsRegistry.polar||{}).attrRegex,i=(Fh.subplotsRegistry.ternary||{}).attrRegex,o=(Fh.subplotsRegistry.gl3d||{}).attrRegex,l=Object.keys(e);for(r=0;r3?(b.x=1.02,b.xanchor="left"):b.x<-2&&(b.x=-.02,b.xanchor="right"),b.y>3?(b.y=1.02,b.yanchor="bottom"):b.y<-2&&(b.y=-.02,b.yanchor="top")),e.dragmode==="rotate"&&(e.dragmode="orbit"),e.template&&e.template.layout&&ol.cleanLayout(e.template.layout),e};function h2(e,r,t=!1){var a=e[r],n=r.charAt(0);t&&Array.isArray(a)||a&&a!=="paper"&&(e[r]=Eh(a,n,!0))}ol.cleanData=function(e){for(var r=0;r0)return e.slice(0,r)}ol.hasParent=function(e,r){for(var t=JP(r);t;){if(t in e)return!0;t=JP(t)}return!1};ol.clearAxisTypes=function(e,r,t){for(var a=0;a{let t=(...a)=>a.every(n=>Ei.isPlainObject(n))||a.every(n=>Array.isArray(n));if([e,r].every(a=>Array.isArray(a))){if(e.length!==r.length)return!1;for(let a=0;aEi.isPlainObject(a))){if(Object.keys(e).length!==Object.keys(r).length)return!1;for(let a in e){if(a.startsWith("_"))continue;let n=e[a],i=r[a];if(n!==i&&!(t(n,i)?X7(n,i):!1))return!1}return!0}return!1};ol.collectionsAreEqual=X7});var J7=oe(Yt=>{"use strict";var zg=Lt(),c0e=Qt(),v0e=U5(),Gr=pr(),Ca=Gr.nestedProperty,W7=Lv(),Ui=Vk(),ll=_t(),Gg=H1(),gt=Ln(),Li=Ga(),h0e=db(),d0e=Yl(),Pg=ha(),p0e=Nt(),m0e=U7().initInteractions,g0e=(ec(),xr(Qf)),y0e=Ou().clearOutline,oR=m0().dfltConfig,qg=WP(),wn=rR(),da=vg(),Y0=Zo(),b0e=(Hn(),xr(In)).AX_NAME_PATTERN,j7=0,tR=5;function _0e(e,r,t,a){var n;if(e=Gr.getGraphDiv(e),W7.init(e),Gr.isPlainObject(r)){var i=r;r=i.data,t=i.layout,a=i.config,n=i.frames}var o=W7.triggerHandler(e,"plotly_beforeplot",[r,t,a]);if(o===!1)return Promise.reject();!r&&!t&&!Gr.isPlotDiv(e)&&Gr.warn("Calling _doPlot as if redrawing but this container doesn't yet have a plot.",e);function l(){if(n)return Yt.addFrames(e,n)}sR(e,a),t||(t={}),zg.select(e).classed("js-plotly-plot",!0),Pg.makeTester(),Array.isArray(e._promises)||(e._promises=[]);var s=(e.data||[]).length===0&&Array.isArray(r);Array.isArray(r)&&(wn.cleanData(r),s?e.data=r:e.data.push.apply(e.data,r),e.empty=!1),(!e.layout||s)&&(e.layout=wn.cleanLayout(t)),gt.supplyDefaults(e);var u=e._fullLayout,f=u._has("cartesian");u._replotting=!0,(s||u._shouldCreateBgLayer)&&(Y0e(e),u._shouldCreateBgLayer&&delete u._shouldCreateBgLayer),Pg.initGradients(e),Pg.initPatterns(e),s&&Li.saveShowSpikeInitial(e);var c=!e.calcdata||e.calcdata.length!==(e._fullData||[]).length;c&>.doCalcdata(e);for(var h=0;h{Gr.isHidden(e)||gt.resize(e)};if(e._context.fillFrame||typeof ResizeObserver=="undefined")window.addEventListener("resize",E),e._clearResponsive=()=>window.removeEventListener("resize",E);else{let P=e.offsetWidth,z=e.offsetHeight,I=new ResizeObserver(()=>{let V=e.offsetWidth,H=e.offsetHeight,X=Math.abs(V-P)>1||Math.abs(H-z)>1;P=V,z=H,X&&V&&H&&E()});I.observe(e),e._clearResponsive=()=>I.disconnect()}}}else Gr.clearResponsive(e);let d=document.fonts?[...document.fonts].filter(E=>E.status!=="loaded"):[];var p=Gr.extendFlat({},u._size),m=0;function b(){for(var E=u._basePlotModules,P=0;P["loaded","loading"].includes(n.status));if(!t.length)return;let a={};e._fontLoadToken=a,yield Promise.all(t.map(n=>n.loaded.catch(()=>{}))),e._fontLoadToken===a&&(delete e._fontLoadToken,Pg.savedBBoxes={},Yt._doPlot(e))})}function qh(e){var r=e._fullLayout;r._redrawFromAutoMarginCount?r._redrawFromAutoMarginCount--:e.emit("plotly_afterplot")}function w0e(e){return Gr.extendFlat(oR,e)}function lR(e,r){try{e._fullLayout._paper.style("background",r)}catch(t){Gr.error(t)}}function A0e(e,r){var t=p0e.combine(r,"white");lR(e,t)}function sR(e,r){if(!e._context){e._context=Gr.extendDeep({},oR);var t=zg.select("base");e._context._baseUrl=t.size()&&t.attr("href")?window.location.href.split("#")[0]:""}var a=e._context,n,i,o;if(r){for(i=Object.keys(r),n=0;n=e.data.length||n<-e.data.length)throw new Error(t+" must be valid indices for gd.data.");if(r.indexOf(n,a+1)>-1||n>=0&&r.indexOf(-e.data.length+n)>-1||n<0&&r.indexOf(e.data.length+n)>-1)throw new Error("each index in "+t+" must be unique.")}}function uR(e,r,t){if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(typeof r=="undefined")throw new Error("currentIndices is a required argument.");if(Array.isArray(r)||(r=[r]),Bg(e,r,"currentIndices"),typeof t!="undefined"&&!Array.isArray(t)&&(t=[t]),typeof t!="undefined"&&Bg(e,t,"newIndices"),typeof t!="undefined"&&r.length!==t.length)throw new Error("current and new indices must be of equal length.")}function k0e(e,r,t){var a,n;if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(typeof r=="undefined")throw new Error("traces must be defined.");for(Array.isArray(r)||(r=[r]),a=0;a=0&&f=0&&f0&&typeof E.parts[I]!="string";)I--;var V=E.parts[I],H=E.parts[I-1]+"."+V,X=E.parts.slice(0,I).join("."),N=Ca(e.layout,X).get(),Q=Ca(a,X).get(),ee=E.get();if(P!==void 0){y[M]=P,C[M]=V==="reverse"?P:Uu(ee);var re=Gg.getLayoutValObject(a,E.parts);if(re&&re.impliedEdits&&P!==null)for(var ae in re.impliedEdits)x(Gr.relativeAttr(M,ae),re.impliedEdits[ae]);if(["width","height"].indexOf(M)!==-1)if(P){x("autosize",null);var ie=M==="height"?"width":"height";x(ie,a[ie])}else a[M]=e._initialAutoSize[M];else if(M==="autosize")x("width",P?null:a.width),x("height",P?null:a.height);else if(H.match(yR))k(H),Ca(a,X+"._inputRange").set(null);else if(H.match(bR)){k(H),Ca(a,X+"._inputRange").set(null);var le=Ca(a,X).get();le._inputDomain&&(le._input.domain=le._inputDomain.slice())}else H.match(F0e)&&Ca(a,X+"._inputDomain").set(null);if(V==="type"){A=N;var xe=Q.type==="linear"&&P==="log",De=Q.type==="log"&&P==="linear";if(xe||De){if(!A||!A.range)x(X+".autorange",!0);else if(Q.autorange)xe&&(A.range=A.range[1]>A.range[0]?[1,2]:[2,1]);else{var Ye=A.range[0],Ee=A.range[1];xe?(Ye<=0&&Ee<=0&&x(X+".autorange",!0),Ye<=0?Ye=Ee/1e6:Ee<=0&&(Ee=Ye/1e6),x(X+".range[0]",Math.log(Ye)/Math.LN10),x(X+".range[1]",Math.log(Ee)/Math.LN10)):(x(X+".range[0]",Math.pow(10,Ye)),x(X+".range[1]",Math.pow(10,Ee)))}Array.isArray(a._subplots.polar)&&a._subplots.polar.length&&a[E.parts[0]]&&E.parts[1]==="radialaxis"&&delete a[E.parts[0]]._subplot.viewInitial["radialaxis.range"],ll.getComponentMethod("annotations","convertCoords")(e,Q,P,x),ll.getComponentMethod("images","convertCoords")(e,Q,P,x)}else x(X+".autorange",!0),x(X+".range",null);Ca(a,X+"._inputRange").set(null)}else if(V.match(b0e)){var ke=Ca(a,M).get(),je=(P||{}).type;(!je||je==="-")&&(je="linear"),ll.getComponentMethod("annotations","convertCoords")(e,ke,je,x),ll.getComponentMethod("images","convertCoords")(e,ke,je,x)}var W=qg.containerArrayMatch(M);if(W){f=W.array,c=W.index;var se=W.property,he=re||{editType:"calc"};c!==""&&se===""&&(qg.isAddVal(P)?C[M]=null:qg.isRemoveVal(P)?C[M]=(Ca(t,f).get()||[])[c]:Gr.warn("unrecognized full object value",r)),Y0.update(b,he),u[f]||(u[f]={});var K=u[f][c];K||(K=u[f][c]={}),K[se]=P,delete r[M]}else V==="reverse"?(N.range?N.range.reverse():(x(X+".autorange",!0),N.range=[1,0]),Q.autorange?b.calc=!0:b.plot=!0):(M==="dragmode"&&(P===!1&&ee!==!1||P!==!1&&ee===!1)||a._has("scatter-like")&&a._has("regl")&&M==="dragmode"&&(P==="lasso"||P==="select")&&!(ee==="lasso"||ee==="select")?b.plot=!0:re?Y0.update(b,re):b.calc=!0,E.set(P))}}for(f in u){var J=qg.applyContainerArrayChanges(e,i(t,f),u[f],b,i);J||(b.plot=!0)}for(var fe in _){A=Li.getFromId(e,fe);var be=A&&A._constraintGroup;if(be){b.calc=!0;for(var Ne in be)_[Ne]||(Li.getFromId(e,Ne)._constraintShrinkable=!0)}}(xR(e)||r.height||r.width)&&(b.plot=!0);var Ze=a.shapes;for(c=0;c1;)if(a.pop(),t=Ca(r,a.join(".")+".uirevision").get(),t!==void 0)return t;return r.uirevision}function q0e(e,r){for(var t=0;t[X,e._ev.listeners(X)]);i=Yt.newPlot(e,r,t,a).then(()=>{for(let[X,N]of H)N.forEach(Q=>e.on(X,Q));return Yt.react(e,r,t,a)})}else{e.data=r||[],wn.cleanData(e.data),e.layout=t||{},wn.cleanLayout(e.layout),R0e(e.data,e.layout,l,s),gt.supplyDefaults(e,{skipUpdateCalc:!0});var c=e._fullData,h=e._fullLayout,d=h.datarevision===void 0,p=h.transition,m=B0e(e,s,h,d,p),b=m.newDataRevision,y=N0e(e,l,c,d,p,b);if(xR(e)&&(m.layoutReplot=!0),y.calc||m.calc){e.calcdata=void 0;for(var C=Object.getOwnPropertyNames(h),x=0;x(f||e.emit("plotly_react",{config:a,data:r,layout:t}),e))}function N0e(e,r,t,a,n,i){var o=r.length===t.length;if(!n&&!o)return{fullReplot:!0,calc:!0};var l=Y0.traceFlags();l.arrays={},l.nChanges=0,l.nChangesAnim=0;var s,u;function f(d){var p=Gg.getTraceValObject(u,d);return!u._module.animatable&&p.anim&&(p.anim=!1),p}var c={getValObject:f,flags:l,immutable:a,transition:n,newDataRevision:i,gd:e},h={};for(s=0;s=n.length?n[0]:n[u]:n}function l(u){return Array.isArray(i)?u>=i.length?i[0]:i[u]:i}function s(u,f){var c=0;return function(){if(u&&++c===f)return u()}}return new Promise(function(u,f){function c(){if(a._frameQueue.length!==0){for(;a._frameQueue.length;){var V=a._frameQueue.pop();V.onInterrupt&&V.onInterrupt()}e.emit("plotly_animationinterrupted",[])}}function h(V){if(V.length!==0){for(var H=0;Ha._timeToNext&&p()};V()}var b=0;function y(V){return Array.isArray(n)?b>=n.length?V.transitionOpts=n[b]:V.transitionOpts=n[0]:V.transitionOpts=n,b++,V}var C,x,_=[],A=r==null,k=Array.isArray(r),M=!A&&!k&&Gr.isPlainObject(r);if(M)_.push({type:"object",data:y(Gr.extendFlat({},r))});else if(A||["string","number"].indexOf(typeof r)!==-1)for(C=0;C0&&z<_.length-1){var I=[];for(C=0;C<_.length;C++)x=_[C],(_[C].type!=="byname"||C>z)&&I.push(x);_=I}}_.length>0?h(_):(e.emit("plotly_animated"),u())})}function H0e(e,r,t){if(e=Gr.getGraphDiv(e),r==null)return Promise.resolve();if(!Gr.isPlotDiv(e))throw new Error("This element is not a Plotly plot: "+e+". It's likely that you've failed to create a plot before adding frames. For more details, see https://plotly.com/javascript/animations/");var a,n,i,o,l=e._transitionData._frames,s=e._transitionData._frameHash;if(!Array.isArray(r))throw new Error("addFrames failure: frameList must be an Array of frame definitions"+r);var u=l.length+r.length*2,f=[],c={};for(a=r.length-1;a>=0;a--)if(Gr.isPlainObject(r[a])){var h=r[a].name,d=(s[h]||c[h]||{}).name,p=r[a].name,m=s[d]||c[d];d&&p&&typeof p=="number"&&m&&j7E.index?-1:M.index=0;a--){if(n=f[a].frame,typeof n.name=="number"&&Gr.warn("Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings"),!n.name)for(;s[n.name="frame "+e._transitionData._counter++];);if(s[n.name]){for(i=0;i=0;t--)a=r[t],i.push({type:"delete",index:a}),o.unshift({type:"insert",index:a,value:n[a]});var l=gt.modifyFrames,s=gt.modifyFrames,u=[e,o],f=[e,i];return Ui&&Ui.add(e,l,u,s,f),gt.modifyFrames(e,i)}function U0e(e){e=Gr.getGraphDiv(e);var r=e._fullLayout||{},t=e._fullData||[];return gt.cleanPlot([],{},t,r),gt.purge(e),W7.purge(e),r._container&&r._container.remove(),delete e._context,e}function G0e(e){var r=e._fullLayout,t=e.getBoundingClientRect();if(!Gr.equalDomRects(t,r._lastBBox)){var a=r._invTransform=Gr.inverseTransformMatrix(Gr.getFullTransformMatrix(e));r._invScaleX=Math.sqrt(a[0][0]*a[0][0]+a[0][1]*a[0][1]+a[0][2]*a[0][2]),r._invScaleY=Math.sqrt(a[1][0]*a[1][0]+a[1][1]*a[1][1]+a[1][2]*a[1][2]),r._lastBBox=t}}function Y0e(e){var r=zg.select(e),t=e._fullLayout;if(t._calcInverseTransform=G0e,t._calcInverseTransform(e),t._container=r.selectAll(".plot-container").data([0]),t._container.enter().insert("div",":first-child").classed("plot-container",!0).classed("plotly",!0).style({width:"100%",height:"100%"}),t._paperdiv=t._container.selectAll(".svg-container").data([0]),t._paperdiv.enter().append("div").classed("user-select-none",!0).classed("svg-container",!0).style("position","relative"),t._glcontainer=t._paperdiv.selectAll(".gl-container").data([{}]),t._glcontainer.enter().append("div").classed("gl-container",!0),t._paperdiv.selectAll(".main-svg").remove(),t._paperdiv.select(".modebar-container").remove(),t._paper=t._paperdiv.insert("svg",":first-child").classed("main-svg",!0),t._toppaper=t._paperdiv.append("svg").classed("main-svg",!0),t._modebardiv=t._paperdiv.append("div"),delete t._modeBar,t._hoverpaper=t._paperdiv.append("svg").classed("main-svg",!0),!t._uid){var a={};zg.selectAll("defs").each(function(){this.id&&(a[this.id.split("-")[1]]=1)}),t._uid=Gr.randstr(a)}t._paperdiv.selectAll(".main-svg").attr(g0e.svgAttrs),t._defs=t._paper.append("defs").attr("id","defs-"+t._uid),t._clips=t._defs.append("g").classed("clips",!0),t._topdefs=t._toppaper.append("defs").attr("id","topdefs-"+t._uid),t._topclips=t._topdefs.append("g").classed("clips",!0),t._bgLayer=t._paper.append("g").classed("bglayer",!0),t._draggers=t._paper.append("g").classed("draglayer",!0);var n=t._paper.append("g").classed("layer-below",!0);t._imageLowerLayer=n.append("g").classed("imagelayer",!0),t._shapeLowerLayer=n.append("g").classed("shapelayer",!0),t._cartesianlayer=t._paper.append("g").classed("cartesianlayer",!0),t._polarlayer=t._paper.append("g").classed("polarlayer",!0),t._smithlayer=t._paper.append("g").classed("smithlayer",!0),t._ternarylayer=t._paper.append("g").classed("ternarylayer",!0),t._geolayer=t._paper.append("g").classed("geolayer",!0),t._funnelarealayer=t._paper.append("g").classed("funnelarealayer",!0),t._pielayer=t._paper.append("g").classed("pielayer",!0),t._iciclelayer=t._paper.append("g").classed("iciclelayer",!0),t._treemaplayer=t._paper.append("g").classed("treemaplayer",!0),t._sunburstlayer=t._paper.append("g").classed("sunburstlayer",!0),t._indicatorlayer=t._toppaper.append("g").classed("indicatorlayer",!0),t._glimages=t._paper.append("g").classed("glimages",!0);var i=t._toppaper.append("g").classed("layer-above",!0);t._imageUpperLayer=i.append("g").classed("imagelayer",!0),t._shapeUpperLayer=i.append("g").classed("shapelayer",!0),t._selectionLayer=t._toppaper.append("g").classed("selectionlayer",!0),t._infolayer=t._toppaper.append("g").classed("infolayer",!0),t._menulayer=t._toppaper.append("g").classed("menulayer",!0),t._zoomlayer=t._toppaper.append("g").classed("zoomlayer",!0),t._hoverlayer=t._hoverpaper.append("g").classed("hoverlayer",!0),t._modebardiv.classed("modebar-container",!0).style("position","absolute").style("top","0px").style("right","0px"),e.emit("plotly_framework")}Yt.animate=I0e;Yt.addFrames=H0e;Yt.deleteFrames=O0e;Yt.addTraces=dR;Yt.deleteTraces=pR;Yt.extendTraces=vR;Yt.moveTraces=Z7;Yt.prependTraces=hR;Yt.newPlot=T0e;Yt._doPlot=_0e;Yt.purge=U0e;Yt.react=z0e;Yt.redraw=M0e;Yt.relayout=Lh;Yt.restyle=Ig;Yt.setPlotConfig=w0e;Yt.update=Og;Yt._guiRelayout=$7(Lh);Yt._guiRestyle=$7(Ig);Yt._guiUpdate=$7(Og);Yt._storeDirectGUIEdit=D0e});var xc=oe(sl=>{"use strict";var V0e=_t();sl.getDelay=function(e){return e._has&&(e._has("gl3d")||e._has("map"))?500:0};sl.getRedrawFunc=function(e){return function(){V0e.getComponentMethod("colorbar","draw")(e)}};sl.encodeSVG=function(e){return"data:image/svg+xml,"+encodeURIComponent(e)};sl.encodeJSON=function(e){return"data:application/json,"+encodeURIComponent(e)};var wR=window.URL||window.webkitURL;sl.createObjectURL=function(e){return wR.createObjectURL(e)};sl.revokeObjectURL=function(e){return wR.revokeObjectURL(e)};sl.createBlob=function(e,r){if(r==="svg")return new window.Blob([e],{type:"image/svg+xml;charset=utf-8"});if(r==="full-json")return new window.Blob([e],{type:"application/json;charset=utf-8"});var t=X0e(window.atob(e));return new window.Blob([t],{type:"image/"+r})};sl.octetStream=function(e){document.location.href="data:application/octet-stream"+e};sl.getPlotTitle=function(e){var a,n,i,o;var r=e._fullLayout;if(r){var t=(a=r.title)==null?void 0:a.text;return t===((n=r._dfltTitle)==null?void 0:n.plot)?void 0:t}return(o=(i=e.layout)==null?void 0:i.title)==null?void 0:o.text};sl.getPlotSubtitle=function(e){var a,n,i,o,l,s;var r=e._fullLayout;if(r){var t=(n=(a=r.title)==null?void 0:a.subtitle)==null?void 0:n.text;return t===((i=r._dfltTitle)==null?void 0:i.subtitle)?void 0:t}return(s=(l=(o=e.layout)==null?void 0:o.title)==null?void 0:l.subtitle)==null?void 0:s.text};function X0e(e){for(var r=e.length,t=new ArrayBuffer(r),a=new Uint8Array(t),n=0;n{"use strict";var Q7=Lt(),S7e=pr(),j0e=ha(),W0e=Nt(),D7e=(ec(),xr(Qf)),K7=/"/g,wc="TOBESTRIPPED",Z0e=new RegExp(`("${wc})|(${wc}")|("${wc})|(${wc}")`,"g"),$0e=["&","&","&",""",""",""","'","'","'"],J0e=["<","<","<"],K0e=[">",">",">"];function Q0e(e){let r=Q7.select("body").append("div").style({display:"none"}).html(""),t=e.replace(/(&[^;]*;)/gi,a=>{let n=a.toLowerCase();return $0e.includes(n)?a:J0e.includes(n)?"<":K0e.includes(n)?">":a.includes("<")||a.includes(">")?"":r.html(a).text()});return r.remove(),t}function efe(e){return e.replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&")}AR.exports=function(r,t,a){var n=r._fullLayout,i=n._paper,o=n._toppaper,l=n.width,s=n.height,u;i.insert("rect",":first-child").call(j0e.setRect,0,0,l,s).call(W0e.fill,n.paper_bgcolor);var f=n._basePlotModules||[];for(u=0;u{"use strict";var rfe=pr(),tfe=Rp().EventEmitter,Ph=xc();function afe(e){var r=e.emitter||new tfe,t=new Promise(function(a,n){var i=window.Image,o=e.svg,l=e.format||"png",s=e.canvas,u=e.scale||1,f=e.width||300,c=e.height||150,h=u*f,d=u*c,p=s.getContext("2d",{willReadFrequently:!0}),m=new i,b,y;l==="svg"||rfe.isSafari()?y=Ph.encodeSVG(o):(b=Ph.createBlob(o,"svg"),y=Ph.createObjectURL(b)),s.width=h,s.height=d,m.onload=function(){var C;switch(b=null,Ph.revokeObjectURL(y),l!=="svg"&&p.drawImage(m,0,0,h,d),l){case"jpeg":C=s.toDataURL("image/jpeg");break;case"png":C=s.toDataURL("image/png");break;case"webp":C=s.toDataURL("image/webp");break;case"svg":C=y;break;default:var x="Image format is not jpeg, png, svg or webp.";if(n(new Error(x)),!e.promise)return r.emit("error",x)}a(C),e.promise||r.emit("success",C)},m.onerror=function(C){if(b=null,Ph.revokeObjectURL(y),n(C),!e.promise)return r.emit("error",C)},m.src=y});return e.promise?t:r}MR.exports=afe});var r9=oe((L7e,CR)=>{"use strict";var TR=Qt(),kR=J7(),nfe=Ln(),Vs=pr(),Rh=xc(),ife=Vg(),ofe=Xg(),lfe=K2().version,e9=(l5(),xr(o5)).default;function sfe(e,r){r=r||{};var t,a,n,i;Vs.isPlainObject(e)?(t=e.data||[],a=e.layout||{},n=e.config||{},i={}):(e=Vs.getGraphDiv(e),t=Vs.extendDeep([],e.data),a=Vs.extendDeep({},e.layout),n=e._context,i=e._fullLayout||{});function o(k){return!(k in r)||Vs.validate(r[k],e9[k])}if(!o("width")&&r.width!==null||!o("height")&&r.height!==null)throw new Error("Height and width should be pixel values.");if(!o("format"))throw new Error("Export format is not "+Vs.join2(e9.format.values,", "," or ")+".");var l={};function s(k,M){return Vs.coerce(r,l,e9,k,M)}var u=s("format"),f=s("width"),c=s("height"),h=s("scale"),d=s("setBackground"),p=s("imageDataOnly"),m=document.createElement("div");m.style.position="absolute",m.style.left="-5000px",document.body.appendChild(m);var b=Vs.extendFlat({},a);f?b.width=f:r.width===null&&TR(i.width)&&(b.width=i.width),c?b.height=c:r.height===null&&TR(i.height)&&(b.height=i.height);var y=Vs.extendFlat({},n,{_exportedPlot:!0,staticPlot:!0,setBackground:d}),C=Rh.getRedrawFunc(m);function x(){return new Promise(function(k){setTimeout(k,Rh.getDelay(m._fullLayout))})}function _(){return new Promise(function(k,M){var E=ife(m,u,h),P=m._fullLayout.width,z=m._fullLayout.height;function I(){kR.purge(m),document.body.removeChild(m)}if(u==="full-json"){var V=nfe.graphJson(m,!1,"object",!0,!0);return V.version=lfe,V=JSON.stringify(V),I(),k(p?V:Rh.encodeJSON(V))}if(I(),u==="svg")return k(p?E:Rh.encodeSVG(E));var H=document.createElement("canvas");H.id=Vs.randstr(),ofe({format:u,width:P,height:z,scale:h,canvas:H,svg:E,promise:!0}).then(k).catch(M)})}function A(k){return p?k.replace(Rh.IMAGE_URL_PREFIX,""):k}return new Promise(function(k,M){kR.newPlot(m,t,b,y).then(C).then(x).then(_).then(function(E){k(A(E))}).catch(function(E){M(E)})})}CR.exports=sfe});var FR=oe((q7e,DR)=>{"use strict";var ul=pr(),ufe=Ln(),ffe=H1(),cfe=m0().dfltConfig,$l=ul.isPlainObject,Mc=Array.isArray,t9=ul.isArrayOrTypedArray;DR.exports=function(r,t){r===void 0&&(r=[]),t===void 0&&(t={});var a=ffe.get(),n=[],i={_context:ul.extendFlat({},cfe)},o,l;Mc(r)?(i.data=ul.extendDeep([],r),o=r):(i.data=[],o=[],n.push(Yn("array","data"))),$l(t)?(i.layout=ul.extendDeep({},t),l=t):(i.layout={},l={},arguments.length>1&&n.push(Yn("object","layout"))),ufe.supplyDefaults(i);for(var s=i._fullData,u=o.length,f=0;fc.length&&a.push(Yn("unused",n,u.concat(c.length)));var y=c.length,C=Array.isArray(b);C&&(y=Math.min(y,b.length));var x,_,A,k,M;if(h.dimensions===2)for(_=0;_c[_].length&&a.push(Yn("unused",n,u.concat(_,c[_].length)));var E=c[_].length;for(x=0;x<(C?Math.min(E,b[_].length):E);x++)A=C?b[_][x]:b,k=f[_][x],M=c[_][x],ul.validate(k,A)?M!==k&&M!==+k&&a.push(Yn("dynamic",n,u.concat(_,x),k,M)):a.push(Yn("value",n,u.concat(_,x),k))}else a.push(Yn("array",n,u.concat(_),f[_]));else for(_=0;_{"use strict";var yfe=pr(),Wg=xc();function bfe(e,r,t){var a=document.createElement("a"),n="download"in a,i=new Promise(function(o,l){var s,u;if(n)return s=Wg.createBlob(e,t),u=Wg.createObjectURL(s),a.href=u,a.download=r,document.body.appendChild(a),a.click(),document.body.removeChild(a),Wg.revokeObjectURL(u),s=null,o(r);if(yfe.isSafari()){var f=t==="svg"?",":";base64,";return Wg.octetStream(f+encodeURIComponent(e)),o(r)}l(new Error("download error"))});return i}ER.exports=bfe});var a9=oe((R7e,zR)=>{"use strict";var Zg=pr(),qR=vi(),_fe=r9(),xfe=LR(),PR=xc(),RR=40;function wfe(e,r){var t;return Zg.isPlainObject(e)||(t=Zg.getGraphDiv(e)),r=r||{},r.format=r.format||"png",r.width=r.width||null,r.height=r.height||null,r.imageDataOnly=!0,new Promise(function(a,n){t&&t._snapshotInProgress&&n(new Error("Image capture already in progress.")),t&&(t._snapshotInProgress=!0);var i=_fe(e,r),o=r.filename||e.fn;if(!o){let s=PR.getPlotTitle(e);if(s&&!qR.matchTex(s))o=Zg.slugify(s,RR);else{let u=PR.getPlotSubtitle(e);u&&!qR.matchTex(u)&&(o=Zg.slugify(u,RR))}}var l=o||"plot-image";l+="."+r.format.replace("-","."),i.then(function(s){return t&&(t._snapshotInProgress=!1),xfe(s,l,r.format)}).then(function(s){a(s)}).catch(function(s){t&&(t._snapshotInProgress=!1),n(s)})})}zR.exports=wfe});var OR=oe(n9=>{"use strict";var uo=pr(),fo=uo.isPlainObject,NR=H1(),BR=Ln(),Afe=Wo(),IR=ka(),HR=m0().dfltConfig;n9.makeTemplate=function(e){e=uo.isPlainObject(e)?e:uo.getGraphDiv(e),e=uo.extendDeep({_context:HR},{data:e.data,layout:e.layout}),BR.supplyDefaults(e);var r=e.data||[],t=e.layout||{};t._basePlotModules=e._fullLayout._basePlotModules,t._modules=e._fullLayout._modules;var a={data:{},layout:{}};r.forEach(function(d){var p={};zh(d,p,Tfe.bind(null,d));var m=uo.coerce(d,{},Afe,"type"),b=a.data[m];b||(b=a.data[m]=[]),b.push(p)}),zh(t,a.layout,Mfe.bind(null,t)),delete a.layout.template;var n=t.template;if(fo(n)){var i=n.layout,o,l,s,u,f,c;fo(i)&&$g(i,a.layout);var h=n.data;if(fo(h)){for(l in a.data)if(s=h[l],Array.isArray(s)){for(f=a.data[l],c=f.length,u=s.length,o=0;oy?o.push({code:"unused",traceType:d,templateCount:b,dataCount:y}):y>b&&o.push({code:"reused",traceType:d,templateCount:b,dataCount:y})}}function C(x,_){for(var A in x)if(A.charAt(0)!=="_"){var k=x[A],M=fl(x,A,_);fo(k)?(Array.isArray(x)&&k._template===!1&&k.templateitemname&&o.push({code:"missing",path:M,templateitemname:k.templateitemname}),C(k,M)):Array.isArray(k)&&kfe(k)&&C(k,M)}}if(C({data:s,layout:l},""),o.length)return o.map(Cfe)};function kfe(e){for(var r=0;r{"use strict";var Pn=J7();za._doPlot=Pn._doPlot;za.newPlot=Pn.newPlot;za.restyle=Pn.restyle;za.relayout=Pn.relayout;za.redraw=Pn.redraw;za.update=Pn.update;za._guiRestyle=Pn._guiRestyle;za._guiRelayout=Pn._guiRelayout;za._guiUpdate=Pn._guiUpdate;za._storeDirectGUIEdit=Pn._storeDirectGUIEdit;za.react=Pn.react;za.extendTraces=Pn.extendTraces;za.prependTraces=Pn.prependTraces;za.addTraces=Pn.addTraces;za.deleteTraces=Pn.deleteTraces;za.moveTraces=Pn.moveTraces;za.purge=Pn.purge;za.addFrames=Pn.addFrames;za.deleteFrames=Pn.deleteFrames;za.animate=Pn.animate;za.setPlotConfig=Pn.setPlotConfig;var Sfe=Mv().getGraphDiv,Dfe=ig().eraseActiveShape;za.deleteActiveShape=function(e){return Dfe(Sfe(e))};za.toImage=r9();za.validate=FR();za.downloadImage=a9();var UR=OR();za.makeTemplate=UR.makeTemplate;za.validateTemplate=UR.validateTemplate});var VR=oe((B7e,YR)=>{"use strict";var i9=pr(),Ffe=_t();YR.exports=function(r,t,a,n){var i=n("x"),o=n("y"),l,s=Ffe.getComponentMethod("calendars","handleTraceDefaults");if(s(r,t,["x","y"],a),i){var u=i9.minRowLength(i);o?l=Math.min(u,i9.minRowLength(o)):(l=u,n("y0"),n("dy"))}else{if(!o)return 0;l=i9.minRowLength(o),n("x0"),n("dx")}return t._length=l,l}});var ZR=oe((I7e,WR)=>{"use strict";var XR=pr().dateTick0,Efe=(Za(),xr(nn)),Lfe=Efe.ONEWEEK;function jR(e,r){return e%Lfe===0?XR(r,1):XR(r,0)}WR.exports=function(r,t,a,n,i){if(i||(i={x:!0,y:!0}),i.x){var o=n("xperiod");o&&(n("xperiod0",jR(o,t.xcalendar)),n("xperiodalignment"))}if(i.y){var l=n("yperiod");l&&(n("yperiod0",jR(l,t.ycalendar)),n("yperiodalignment"))}}});var KR=oe((H7e,JR)=>{"use strict";var $R=["orientation","groupnorm","stackgaps"];JR.exports=function(r,t,a,n){var i=a._scatterStackOpts,o=n("stackgroup");if(o){var l=t.xaxis+t.yaxis,s=i[l];s||(s=i[l]={});var u=s[o],f=!1;u?u.traces.push(t):(u=s[o]={traceIndices:[],traces:[t]},f=!0);for(var c={orientation:t.x&&!t.y?"h":"v"},h=0;h<$R.length;h++){var d=$R[h],p=d+"Found";if(!u[p]){var m=r[d]!==void 0,b=d==="orientation";if((m||f)&&(u[d]=n(d,c[d]),b&&(u.fillDflt=u[d]==="h"?"tonextx":"tonexty"),m&&(u[p]=!0,!f&&(delete u.traces[0][d],b))))for(var y=0;y{"use strict";var QR=Nt(),ez=Es().hasColorscale,rz=V1(),qfe=Ti();tz.exports=function(r,t,a,n,i,o={}){var l=qfe.isBubble(r),s=(r.line||{}).color,u;if(s&&(a=s),i("marker.symbol"),i("marker.opacity",l?.7:1),i("marker.size"),o.noAngle||(i("marker.angle"),o.noAngleRef||i("marker.angleref"),o.noStandOff||i("marker.standoff")),i("marker.color",a),ez(r,"marker")&&rz(r,t,n,i,{prefix:"marker.",cLetter:"c"}),o.noSelect||(i("selected.marker.color"),i("unselected.marker.color"),i("selected.marker.size"),i("unselected.marker.size")),o.noLine||(s&&!Array.isArray(s)&&t.marker.color!==s?u=s:l?u=QR.background:u=QR.defaultLine,i("marker.line.color",u),ez(r,"marker.line")&&rz(r,t,n,i,{prefix:"marker.line.",cLetter:"c"}),i("marker.line.width",l?1:0),o.noLineDash||i("marker.line.dash")),l&&(i("marker.sizeref"),i("marker.sizemin"),i("marker.sizemode")),o.gradient){var f=i("marker.gradient.type");f!=="none"&&i("marker.gradient.color")}}});var l9=oe((U7e,az)=>{"use strict";var Pfe=pr().isArrayOrTypedArray,Rfe=Es().hasColorscale,zfe=V1();az.exports=function(r,t,a,n,i,o){o||(o={});var l=(r.marker||{}).color;if(l&&l._inputArray&&(l=l._inputArray),i("line.color",a),Rfe(r,"line"))zfe(r,t,n,i,{prefix:"line.",cLetter:"c"});else{var s=(Pfe(l)?!1:l)||a;i("line.color",s)}i("line.width"),o.noDash||i("line.dash"),o.backoff&&i("line.backoff")}});var iz=oe((G7e,nz)=>{"use strict";nz.exports=function(r,t,a){var n=a("line.shape");n==="spline"&&a("line.smoothing")}});var s9=oe((Y7e,oz)=>{"use strict";var Nfe=pr();oz.exports=function(e,r,t,a,n){n=n||{},a("textposition"),Nfe.coerceFont(a,"textfont",n.font||t.font,n),n.noSelect||(a("selected.textfont.color"),a("unselected.textfont.color"))}});var u9=oe((V7e,sz)=>{"use strict";var Kg=Nt(),lz=pr().isArrayOrTypedArray;function Bfe(e){for(var r=Kg.interpolate(e[0][1],e[1][1],.5),t=2;t{"use strict";var uz=pr(),Ife=_t(),Hfe=_c(),Ofe=(Mg(),xr(Ag)),d2=Ti(),Ufe=VR(),Gfe=ZR(),Yfe=KR(),Vfe=o9(),Xfe=l9(),fz=iz(),jfe=s9(),Wfe=u9(),Zfe=pr().coercePattern;cz.exports=function(r,t,a,n){function i(d,p){return uz.coerce(r,t,Hfe,d,p)}var o=Ufe(r,t,n,i);if(o||(t.visible=!1),!!t.visible){Gfe(r,t,n,i),i("xhoverformat"),i("yhoverformat"),i("zorder");var l=Yfe(r,t,n,i);n.scattermode==="group"&&t.orientation===void 0&&i("orientation","v");var s=!l&&o{"use strict";var $fe=lh().getAxisGroup;hz.exports=function(r,t,a,n,i){var o=t.orientation,l=t[{v:"x",h:"y"}[o]+"axis"],s=$fe(a,l)+o,u=a._alignmentOpts||{},f=n("alignmentgroup"),c=u[s];c||(c=u[s]={});var h=c[f];h?h.traces.push(t):h=c[f]={traces:[t],alignmentIndex:Object.keys(c).length,offsetGroups:{}};var d=n("offsetgroup")||"",p=h.offsetGroups,m=p[d];t._offsetIndex=0,(i!=="group"||d)&&(m||(m=p[d]={offsetIndex:Object.keys(p).length}),t._offsetIndex=m.offsetIndex)}});var mz=oe((W7e,pz)=>{"use strict";var Jfe=pr(),Kfe=dz(),Qfe=_c();pz.exports=function(r,t){var a,n,i,o=t.scattermode;function l(h){return Jfe.coerce(n._input,n,Qfe,h)}if(t.scattermode==="group")for(i=0;i=0;f--){var c=r[f];if(c.type==="scatter"&&c.xaxis===s.xaxis&&c.yaxis===s.yaxis){c.opacity=void 0;break}}}}}});var yz=oe((Z7e,gz)=>{"use strict";var ece=pr(),rce=Hp();gz.exports=function(e,r){function t(n,i){return ece.coerce(e,r,rce,n,i)}var a=r.barmode==="group";r.scattermode==="group"&&t("scattergap",a?r.bargap:.2)}});var xz=oe(($7e,_z)=>{"use strict";var tce=Qt(),bz=pr(),ace=bz.dateTime2ms,Qg=bz.incrementMonth,nce=(Za(),xr(nn)),ice=nce.ONEAVGMONTH;_z.exports=function(r,t,a,n){if(t.type!=="date")return{vals:n};var i=r[a+"periodalignment"];if(!i)return{vals:n};var o=r[a+"period"],l;if(tce(o)){if(o=+o,o<=0)return{vals:n}}else if(typeof o=="string"&&o.charAt(0)==="M"){var s=+o.substring(1);if(s>0&&Math.round(s)===s)l=s;else return{vals:n}}for(var u=t.calendar,f=i==="start",c=i==="end",h=r[a+"period0"],d=ace(h,u)||0,p=[],m=[],b=[],y=n.length,C=0;Cx;)k=Qg(k,-l,u);for(;k<=x;)k=Qg(k,l,u);A=Qg(k,-l,u)}else{for(_=Math.round((x-d)/o),k=d+_*o;k>x;)k-=o;for(;k<=x;)k+=o;A=k-o}p[C]=f?A:c?k:(A+k)/2,m[C]=A,b[C]=k}return{vals:p,starts:m,ends:b}}});var v9=oe((J7e,Az)=>{"use strict";var f9=Es().hasColorscale,c9=$p(),wz=Ti();Az.exports=function(r,t){wz.hasLines(t)&&f9(t,"line")&&c9(r,t,{vals:t.line.color,containerStr:"line",cLetter:"c"}),wz.hasMarkers(t)&&(f9(t,"marker")&&c9(r,t,{vals:t.marker.color,containerStr:"marker",cLetter:"c"}),f9(t,"marker.line")&&c9(r,t,{vals:t.marker.line.color,containerStr:"marker.line",cLetter:"c"}))}});var Nh=oe((K7e,Mz)=>{"use strict";var ln=pr();Mz.exports=function(r,t){for(var a=0;a{"use strict";var Tz=pr();kz.exports=function(r,t){Tz.isArrayOrTypedArray(t.selectedpoints)&&Tz.tagSelected(r,t)}});var r3=oe((e9e,qz)=>{"use strict";var Cz=Qt(),d9=pr(),Bh=Ga(),Sz=xz(),h9=(Za(),xr(nn)).BADNUM,p9=Ti(),oce=v9(),lce=Nh(),sce=e3();function uce(e,r){var t=e._fullLayout,a=r._xA=Bh.getFromId(e,r.xaxis||"x","x"),n=r._yA=Bh.getFromId(e,r.yaxis||"y","y"),i=a.makeCalcdata(r,"x"),o=n.makeCalcdata(r,"y"),l=Sz(r,a,"x",i),s=Sz(r,n,"y",o),u=l.vals,f=s.vals,c=r._length,h=new Array(c),d=r.ids,p=m9(r,t,a,n),m=!1,b,y,C,x,_,A;Ez(t,r);var k="x",M="y",E;if(p)d9.pushUnique(p.traceIndices,r.index),b=p.orientation==="v",b?(M="s",E="x"):(k="s",E="y"),_=p.stackgaps==="interpolate";else{var P=Fz(r,c);Dz(e,r,a,n,u,f,P)}var z=!!r.xperiodalignment,I=!!r.yperiodalignment;for(y=0;yy&&h[x].gap;)x--;for(A=h[x].s,C=h.length-1;C>x;C--)h[C].s=A;for(;y{"use strict";Pz.exports=t3;var fce=pr().distinctVals;function t3(e,r){this.traces=e,this.sepNegVal=r.sepNegVal,this.overlapNoMerge=r.overlapNoMerge;for(var t=1/0,a=r.posAxis._id.charAt(0),n=[],i=0;icce,eventDataKeys:()=>vce});var cce,vce,Nz=Oa(()=>{"use strict";cce=3,vce=["value","label"]});var Uz=oe((t9e,Oz)=>{"use strict";var cl=Qt(),{isArrayOrTypedArray:Gu}=pr(),{BADNUM:p2}=(Za(),xr(nn)),hce=_t(),Ih=Ga(),{getAxisGroup:dce}=lh(),a3=Rz(),{TEXTPAD:pce}=(Nz(),xr(zz)),{LINE_SPACING:mce}=(ci(),xr(fi)),{BR_TAG_ALL:gce}=vi();function yce(e,r){for(var t=r.xaxis,a=r.yaxis,n=e._fullLayout,i=e._fullData,o=e.calcdata,l=[],s=[],u=0;us+o||!cl(l))}for(var f=0;fa(i))):a(e.text);let n=e.outsidetextfont.size*mce*t+pce;return{ppadplus:r.some(i=>i.s<0)?n:0,ppadminus:r.some(i=>i.s>=0)?n:0}}return{ppadplus:void 0,ppadminus:void 0}}function Sce(e,r,t,a){for(var n=m2(a),i=0;i{"use strict";var Gz=r3(),Yz=Uz().setGroupPositions;function Fce(e,r){for(var t=r.xaxis,a=r.yaxis,n=e._fullLayout,i=e._fullData,o=e.calcdata,l=[],s=[],u=0;uP[f]&&f{"use strict";var Lce=ha(),$z=(Za(),xr(nn)),Hh=$z.BADNUM,Jz=$z.LOG_CLIP,jz=Jz+.5,Wz=Jz-.5,n3=pr(),qce=n3.segmentsIntersect,Zz=n3.constrain,A9=(Mg(),xr(Ag));Kz.exports=function(r,t){var a=t.trace||{},n=t.xaxis,i=t.yaxis,o=n.type==="log",l=i.type==="log",s=n._length,u=i._length,f=t.backoff,c=a.marker,h=t.connectGaps,d=t.baseTolerance,p=t.shape,m=p==="linear",b=a.fill&&a.fill!=="none",y=[],C=A9.minTolerance,x=r.length,_=new Array(x),A=0,k,M,E,P,z,I,V,H,X,N,Q,ee,re,ae,ie,le;function xe(nr){var Cr=r[nr];if(!Cr)return!1;var ar=t.linearized?n.l2p(Cr.x):n.c2p(Cr.x),Fr=t.linearized?i.l2p(Cr.y):i.c2p(Cr.y);if(ar===Hh){if(o&&(ar=n.c2p(Cr.x,!0)),ar===Hh)return!1;l&&Fr===Hh&&(ar*=Math.abs(n._m*u*(n._m>0?jz:Wz)/(i._m*s*(i._m>0?jz:Wz)))),ar*=1e3}if(Fr===Hh){if(l&&(Fr=i.c2p(Cr.y,!0)),Fr===Hh)return!1;Fr*=1e3}return[ar,Fr]}function De(nr,Cr,ar,Fr){var Wr=ar-nr,Br=Fr-Cr,Zr=.5-nr,Ae=.5-Cr,Be=Wr*Wr+Br*Br,or=Wr*Zr+Br*Ae;if(or>0&&or1||Math.abs(Zr.y-ar[0][1])>1)&&(Zr=[Zr.x,Zr.y],Fr&&je(Zr,nr)he||nr[1]J)return[Zz(nr[0],se,he),Zz(nr[1],K,J)]}function hr(nr,Cr){if(nr[0]===Cr[0]&&(nr[0]===se||nr[0]===he)||nr[1]===Cr[1]&&(nr[1]===K||nr[1]===J))return!0}function Ar(nr,Cr){var ar=[],Fr=lr(nr),Wr=lr(Cr);return Fr&&Wr&&hr(Fr,Wr)||(Fr&&ar.push(Fr),Wr&&ar.push(Wr)),ar}function Qe(nr,Cr,ar){return function(Fr,Wr){var Br=lr(Fr),Zr=lr(Wr),Ae=[];if(Br&&Zr&&hr(Br,Zr))return Ae;Br&&Ae.push(Br),Zr&&Ae.push(Zr);var Be=2*n3.constrain((Fr[nr]+Wr[nr])/2,Cr,ar)-((Br||Fr)[nr]+(Zr||Wr)[nr]);if(Be){var or;Br&&Zr?or=Be>0==Br[nr]>Zr[nr]?Br:Zr:or=Br||Zr,or[nr]+=Be}return Ae}}var mr;p==="linear"||p==="spline"?mr=ze:p==="hv"||p==="vh"?mr=Ar:p==="hvh"?mr=Qe(0,se,he):p==="vhv"&&(mr=Qe(1,K,J));function qr(nr,Cr){var ar=Cr[0]-nr[0],Fr=(Cr[1]-nr[1])/ar,Wr=(nr[1]*Cr[0]-Cr[1]*nr[0])/ar;return Wr>0?[Fr>0?se:he,J]:[Fr>0?he:se,K]}function Te(nr){var Cr=nr[0],ar=nr[1],Fr=Cr===_[A-1][0],Wr=ar===_[A-1][1];if(!(Fr&&Wr))if(A>1){var Br=Cr===_[A-2][0],Zr=ar===_[A-2][1];Fr&&(Cr===se||Cr===he)&&Br?Zr?A--:_[A-1]=nr:Wr&&(ar===K||ar===J)&&Zr?Br?A--:_[A-1]=nr:_[A++]=nr}else _[A++]=nr}function Ue(nr){_[A-1][0]!==nr[0]&&_[A-1][1]!==nr[1]&&Te([Ze,er]),Te(nr),Je=null,Ze=er=0}var _r=n3.isArrayOrTypedArray(c);function Pr(nr){if(nr&&f&&(nr.i=k,nr.d=r,nr.trace=a,nr.marker=_r?c[nr.i]:c,nr.backoff=f),Ye=nr[0]/s,Ee=nr[1]/u,be=nr[0]he?he:0,Ne=nr[1]J?J:0,be||Ne){if(!A)_[A++]=[be||nr[0],Ne||nr[1]];else if(Je){var Cr=mr(Je,nr);Cr.length>1&&(Ue(Cr[0]),_[A++]=Cr[1])}else tr=mr(_[A-1],nr)[0],_[A++]=tr;var ar=_[A-1];be&&Ne&&(ar[0]!==be||ar[1]!==Ne)?(Je&&(Ze!==be&&er!==Ne?Te(Ze&&er?qr(Je,nr):[Ze||be,er||Ne]):Ze&&er&&Te([Ze,er])),Te([be,Ne])):Ze-be&&er-Ne&&Te([be||Ze,Ne||er]),Je=nr,Ze=be,er=Ne}else Je&&Ue(mr(Je,nr)[0]),_[A++]=nr}for(k=0;kke(I,Nr))break;E=I,re=X[0]*H[0]+X[1]*H[1],re>Q?(Q=re,P=I,V=!1):re=r.length||!I)break;Pr(I),M=I}}Je&&Te([Ze||Je[0],er||Je[1]]),y.push(_.slice(0,A))}var Ce=p.slice(p.length-1);if(f&&Ce!=="h"&&Ce!=="v"){for(var He=!1,cr=-1,Mr=[],vr=0;vr{"use strict";var eN={tonextx:1,tonexty:1,tonext:1};rN.exports=function(r,t,a){var n,i,o,l,s,u={},f=!1,c=-1,h=0,d=-1;for(i=0;i=0?s=d:(s=d=h,h++),s{"use strict";var Jl=Lt(),Pce=_t(),Oh=pr(),g2=Oh.ensureSingle,nN=Oh.identity,cn=ha(),y2=Ti(),Rce=Qz(),zce=tN(),i3=gg().tester;iN.exports=function(r,t,a,n,i,o){var l,s,u=!i,f=!!i&&i.duration>0,c=zce(r,t,a);if(l=n.selectAll("g.trace").data(c,function(d){return d[0].trace.uid}),l.enter().append("g").attr("class",function(d){return"trace scatter trace"+d[0].trace.uid}).style("stroke-miterlimit",2),l.order(),Nce(r,l,t),f){o&&(s=o());var h=Jl.transition().duration(i.duration).ease(i.easing).each("end",function(){s&&s()}).each("interrupt",function(){s&&s()});h.each(function(){n.selectAll("g.trace").each(function(d,p){aN(r,p,t,d,c,this,i)})})}else l.each(function(d,p){aN(r,p,t,d,c,this,i)});u&&l.exit().remove(),n.selectAll("path:not([d])").remove()};function Nce(e,r,t){r.each(function(a){var n=g2(Jl.select(this),"g","fills");cn.setClipUrl(n,t.layerClipId,e);var i=a[0].trace;i._ownFill=null,i._nextFill=null;var o=[];i._ownfill&&o.push("_ownFill"),i._nexttrace&&o.push("_nextFill");var l=n.selectAll("g").data(o,nN);l.enter().append("g"),l.exit().remove(),l.order().each(function(s){i[s]=g2(Jl.select(this),"path","js-fill")})})}function aN(e,r,t,a,n,i,o){var l=e._context.staticPlot,s;Bce(e,r,t,a,n);var u=!!o&&o.duration>0;function f(Qe){return u?Qe.transition():Qe}var c=t.xaxis,h=t.yaxis,d=a[0].trace,p=d.line,m=Jl.select(i),b=g2(m,"g","errorbars"),y=g2(m,"g","lines"),C=g2(m,"g","points"),x=g2(m,"g","text");if(Pce.getComponentMethod("errorbars","plot")(e,b,t,o),d.visible!==!0)return;f(m).style("opacity",d.opacity);var _,A,k=d.fill.charAt(d.fill.length-1);k!=="x"&&k!=="y"&&(k="");var M,E;k==="y"?(M=1,E=h.c2p(0,!0)):k==="x"&&(M=0,E=c.c2p(0,!0)),a[0][t.isRangePlot?"nodeRangePlot3":"node3"]=m;var P="",z=[],I=d._prevtrace,V=null,H=null;I&&(P=I._prevRevpath||"",A=I._nextFill,z=I._ownPolygons,V=I._fillsegments,H=I._fillElement);var X,N,Q="",ee="",re,ae,ie,le,xe,De,Ye=[];d._polygons=[];var Ee=[],ke=[],je=Oh.noop;if(_=d._ownFill,y2.hasLines(d)||d.fill!=="none"){A&&A.datum(a),["hv","vh","hvh","vhv"].indexOf(p.shape)!==-1?(re=cn.steps(p.shape),ae=cn.steps(p.shape.split("").reverse().join(""))):p.shape==="spline"?re=ae=function(Qe){var mr=Qe[Qe.length-1];return Qe.length>1&&Qe[0][0]===mr[0]&&Qe[0][1]===mr[1]?cn.smoothclosed(Qe.slice(1),p.smoothing):cn.smoothopen(Qe,p.smoothing)}:re=ae=function(Qe){return"M"+Qe.join("L")},ie=function(Qe){return ae(Qe.reverse())},ke=Rce(a,{xaxis:c,yaxis:h,trace:d,connectGaps:d.connectgaps,baseTolerance:Math.max(p.width||1,3)/4,shape:p.shape,backoff:p.backoff,simplify:p.simplify,fill:d.fill}),Ee=new Array(ke.length);var W=0;for(s=0;s=l[0]&&m.x<=l[1]&&m.y>=s[0]&&m.y<=s[1]}),h=Math.ceil(c.length/f),d=0;n.forEach(function(m,b){var y=m[0].trace;y2.hasMarkers(y)&&y.marker.maxdisplayed>0&&b{"use strict";lN.exports={container:"marker",min:"cmin",max:"cmax"}});var uN=oe((s9e,sN)=>{"use strict";var o3=Ga();sN.exports=function(r,t,a){var n={},i={_fullLayout:a},o=o3.getFromTrace(i,t,"x"),l=o3.getFromTrace(i,t,"y"),s=r.orig_x;s===void 0&&(s=r.x);var u=r.orig_y;return u===void 0&&(u=r.y),n.xLabel=o3.tickText(o,o.c2l(s),!0).text,n.yLabel=o3.tickText(l,l.c2l(u),!0).text,n}});var Uh=oe((u9e,fN)=>{"use strict";var T9=Lt(),b2=ha(),Ice=_t();function Hce(e){var r=T9.select(e).selectAll("g.trace.scatter");r.style("opacity",function(t){return t[0].trace.opacity}),r.selectAll("g.points").each(function(t){var a=T9.select(this),n=t.trace||t[0].trace;k9(a,n,e)}),r.selectAll("g.text").each(function(t){var a=T9.select(this),n=t.trace||t[0].trace;C9(a,n,e)}),r.selectAll("g.trace path.js-line").call(b2.lineGroupStyle),r.selectAll("g.trace path.js-fill").call(b2.fillGroupStyle,e,!1),Ice.getComponentMethod("errorbars","style")(r)}function k9(e,r,t){b2.pointStyle(e.selectAll("path.point"),r,t)}function C9(e,r,t){b2.textPointStyle(e.selectAll("text"),r,t)}function Oce(e,r,t){var a=r[0].trace;a.selectedpoints?(b2.selectedPointStyle(t.selectAll("path.point"),a),b2.selectedTextStyle(t.selectAll("text"),a)):(k9(t,a,e),C9(t,a,e))}fN.exports={style:Hce,stylePoints:k9,styleText:C9,styleOnSelect:Oce}});var S9=oe((f9e,cN)=>{"use strict";var _2=Nt(),Uce=Ti();cN.exports=function(r,t){var a,n;if(r.mode==="lines")return a=r.line.color,a&&_2.opacity(a)?a:r.fillcolor;if(r.mode==="none")return r.fill?r.fillcolor:"";var i=t.mcc||t.mc||(r.marker||{}).color,o=t.mlcc||((r.marker||{}).line||{}).color;return n=i&&_2.opacity(i)?i:o&&_2.opacity(o)&&(t.mlw||((r.marker||{}).line||{}).width)?o:"",n?_2.opacity(n)<.3?_2.addOpacity(n,.3):n:(a=(r.line||{}).color,a&&_2.opacity(a)&&Uce.hasLines(r)&&r.line.width?a:r.fillcolor)}});var dN=oe((c9e,hN)=>{"use strict";var l3=pr(),vN=jl(),Gce=_t(),Yce=S9(),D9=Nt(),Vce=l3.fillText;hN.exports=function(r,t,a,n){var i=r.cd,o=i[0].trace,l=r.xa,s=r.ya,u=l.c2p(t),f=s.c2p(a),c=[u,f],h=o.hoveron||"",d=o.mode.indexOf("markers")!==-1?3:.5,p=!!o.xperiodalignment,m=!!o.yperiodalignment;if(h.indexOf("points")!==-1){var b=function(ee){if(p){var re=l.c2p(ee.xStart),ae=l.c2p(ee.xEnd);return u>=Math.min(re,ae)&&u<=Math.max(re,ae)?0:1/0}var ie=Math.max(3,ee.mrc||0),le=1-1/ie,xe=Math.abs(l.c2p(ee.x)-u);return xe=Math.min(re,ae)&&f<=Math.max(re,ae)?0:1/0}var ie=Math.max(3,ee.mrc||0),le=1-1/ie,xe=Math.abs(s.c2p(ee.y)-f);return xeYe!=J>=Ye&&(se=je[ke-1][0],he=je[ke][0],J-K&&(W=se+(he-se)*(Ye-K)/(J-K),ie=Math.min(ie,W),le=Math.max(le,W)));return ie=Math.max(ie,0),le=Math.min(le,l._length),{x0:ie,x1:le,y0:Ye,y1:Ye}}if(h.indexOf("fills")!==-1&&o._fillElement){var X=V(o._fillElement)&&!V(o._fillExclusionElement);if(X){var N=H(o._polygons);N===null&&(N={x0:c[0],x1:c[0],y0:c[1],y1:c[1]});var Q=D9.defaultLine;return D9.opacity(o.fillcolor)?Q=o.fillcolor:D9.opacity((o.line||{}).color)&&(Q=o.line.color),l3.extendFlat(r,{distance:r.maxHoverDistance,x0:N.x0,x1:N.x1,y0:N.y0,y1:N.y1,color:Q,hovertemplate:!1}),delete r.index,o.text&&!l3.isArrayOrTypedArray(o.text)?r.text=String(o.text):r.text=o.name,[r]}}}});var gN=oe((v9e,mN)=>{"use strict";var pN=Ti();mN.exports=function(r,t){var a=r.cd,n=r.xaxis,i=r.yaxis,o=[],l=a[0].trace,s,u,f,c,h=l.mode&&!pN.hasMarkers(l)&&!pN.hasText(l);if(h)return[];if(t===!1)for(s=0;s{"use strict";yN.exports={xaxis:{valType:"subplotid",dflt:"x",editType:"calc+clearAxisTypes"},yaxis:{valType:"subplotid",dflt:"y",editType:"calc+clearAxisTypes"}}});var AN=oe((d9e,wN)=>{"use strict";var s3=_t().traceIs,F9=X6();wN.exports=function(r,t,a,n){a("autotypenumbers",n.autotypenumbersDflt);var i=a("type",(n.splomStash||{}).type);i==="-"&&(Xce(t,n.data),t.type==="-"?t.type="linear":r.type=t.type)};function Xce(e,r){if(e.type==="-"){var t=e._id,a=t.charAt(0),n;t.indexOf("scene")!==-1&&(t=a);var i=jce(r,t,a);if(i){if(i.type==="histogram"&&a==={v:"y",h:"x"}[i.orientation||"v"]){e.type="linear";return}var o=a+"calendar",l=i[o],s={noMultiCategory:!s3(i,"cartesian")||s3(i,"noMultiCategory")};if(i.type==="box"&&i._hasPreCompStats&&a==={h:"x",v:"y"}[i.orientation||"v"]&&(s.noMultiCategory=!0),s.autotypenumbers=e.autotypenumbers,xN(i,a)){var u=_N(i),f=[];for(n=0;n0&&(n["_"+t+"axes"]||{})[r])return n;if((n[t+"axis"]||t)===r){if(xN(n,t))return n;if((n[t]||[]).length||n[t+"0"])return n}}}function _N(e){return{v:"x",h:"y"}[e.orientation||"v"]}function xN(e,r){var t=_N(e),a=s3(e,"box-violin");return a&&r===t&&e[t]===void 0&&e[t+"0"]===void 0}});var TN=oe((p9e,MN)=>{"use strict";var Wce=ro().isTypedArraySpec;function Zce(e,r){var t=r.dataAttr||e._id.charAt(0),a={},n,i,o;if(r.axData)n=r.axData;else for(n=[],i=0;i0||Wce(i),l;o&&(l="array");var s=a("categoryorder",l),u;s==="array"&&(u=a("categoryarray")),!o&&s==="array"&&(s=t.categoryorder="trace"),s==="trace"?t._initialCategories=[]:s==="array"?t._initialCategories=u.slice():(u=Zce(t,n).sort(),s==="category ascending"?t._initialCategories=u:s==="category descending"&&(t._initialCategories=u.reverse()))}}});var SN=oe((m9e,CN)=>{"use strict";var kN=Nt(),$ce=Il(),Jce=pr();CN.exports=function(r,t,a,n){n=n||{};var i=n.dfltColor;function o(E,P){return Jce.coerce2(r,t,n.attributes,E,P)}var l=o("linecolor",i),s=o("linewidth"),u=a("showline",n.showLine||!!l||!!s);u||(delete t.linecolor,delete t.linewidth);var f=kN.mix(i,n.bgColor,n.blend||$ce.lightFraction),c=o("gridcolor",f),h=o("gridwidth"),d=o("griddash"),p=a("showgrid",n.showGrid||!!c||!!h||!!d);if(p||(delete t.gridcolor,delete t.gridwidth,delete t.griddash),n.hasMinor){var m=kN.mix(t.gridcolor,n.bgColor,67),b=o("minor.gridcolor",m),y=o("minor.gridwidth",t.gridwidth||1),C=o("minor.griddash",t.griddash||"solid"),x=a("minor.showgrid",!!b||!!y||!!C);x||(delete t.minor.gridcolor,delete t.minor.gridwidth,delete t.minor.griddash)}if(!n.noZeroLine){var _=o("zerolinelayer"),A=o("zerolinecolor",i),k=o("zerolinewidth"),M=a("zeroline",n.showGrid||!!A||!!k);M||(delete t.zerolinelayer,delete t.zerolinecolor,delete t.zerolinewidth)}}});var L9=oe((g9e,PN)=>{"use strict";var DN=Qt(),Kce=_t(),Gh=pr(),Qce=ka(),e1e=Vl(),E9=Yl(),FN=g6(),EN=b6(),r1e=w6(),t1e=A6(),a1e=TN(),n1e=SN(),i1e=db(),LN=cm(),u3=(Hn(),xr(In)).WEEKDAY_PATTERN,o1e=(Hn(),xr(In)).HOUR_PATTERN;PN.exports=function(r,t,a,n,i){var o=n.letter,l=n.font||{},s=n.splomStash||{},u=a("visible",!n.visibleDflt),f=t._template||{},c=t.type||f.type||"-",h;if(c==="date"){var d=Kce.getComponentMethod("calendars","handleDefaults");d(r,t,"calendar",n.calendar),n.noTicklabelmode||(h=a("ticklabelmode"))}!n.noTicklabelindex&&(c==="date"||c==="linear")&&a("ticklabelindex");var p="";(!n.noTicklabelposition||c==="multicategory")&&(p=Gh.coerce(r,t,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:h==="period"?["outside","inside"]:o==="x"?["outside","inside","outside left","inside left","outside right","inside right"]:["outside","inside","outside top","inside top","outside bottom","inside bottom"]}},"ticklabelposition")),n.noTicklabeloverflow||a("ticklabeloverflow",p.indexOf("inside")!==-1?"hide past domain":c==="category"||c==="multicategory"?"allow":"hide past div"),LN(t,i),i1e(r,t,a,n),a1e(r,t,a,n),n.noHover||(c!=="category"&&a("hoverformat"),n.noUnifiedhovertitle||a("unifiedhovertitle.text"));var m=a("color"),b=m!==E9.color.dflt?m:l.color,y=s.label||i._dfltTitle[o];if(t1e(r,t,a,c,n),!u)return t;a("title.text",y),Gh.coerceFont(a,"title.font",l,{overrideDflt:{size:Gh.bigFont(l.size),color:b}}),FN(r,t,a,c);var C=n.hasMinor;if(C&&(Qce.newContainer(t,"minor"),FN(r,t,a,c,{isMinor:!0})),r1e(r,t,a,c,n),EN(r,t,a,n),C){var x=n.isMinor;n.isMinor=!0,EN(r,t,a,n),n.isMinor=x}n1e(r,t,a,{dfltColor:m,bgColor:n.bgColor,showGrid:n.showGrid,hasMinor:C,attributes:E9}),C&&t.ticklabelindex==null&&!t.minor.ticks&&!t.minor.showgrid&&delete t.minor,(t.showline||t.ticks)&&a("mirror");var _=c==="multicategory";if(!n.noTickson&&(c==="category"||_)&&(t.ticks||t.showgrid)&&(_?(a("tickson","boundaries"),delete t.ticklabelposition):a("tickson")),_){var A=a("showdividers");A&&(a("dividercolor"),a("dividerwidth"))}if(c==="date")if(e1e(r,t,{name:"rangebreaks",inclusionAttr:"enabled",handleItemDefaults:l1e}),!t.rangebreaks.length)delete t.rangebreaks;else{for(var k=0;k=2){var o="",l,s;if(i.length===2){for(l=0;l<2;l++)if(s=qN(i[l]),s){o=u3;break}}var u=a("pattern",o);if(u===u3)for(l=0;l<2;l++)s=qN(i[l]),s&&(r.bounds[l]=i[l]=s-1);if(u)for(l=0;l<2;l++)switch(s=i[l],u){case u3:if(!DN(s)){r.enabled=!1;return}if(s=+s,s!==Math.floor(s)||s<0||s>=7){r.enabled=!1;return}r.bounds[l]=i[l]=s;break;case o1e:if(!DN(s)){r.enabled=!1;return}if(s=+s,s<0||s>24){r.enabled=!1;return}r.bounds[l]=i[l]=s;break}if(t.autorange===!1){var f=t.range;if(f[0]f[1]){r.enabled=!1;return}}else if(i[0]>f[0]&&i[1]{"use strict";var u1e=Qt(),f3=pr();RN.exports=function(r,t,a,n){var i=n.counterAxes||[],o=n.overlayableAxes||[],l=n.letter,s=n.grid,u=n.overlayingDomain,f,c,h,d,p,m;s&&(c=s._domains[l][s._axisMap[t._id]],f=s._anchors[t._id],c&&(h=s[l+"side"].split(" ")[0],d=s.domain[l][h==="right"||h==="top"?1:0])),c=c||[0,1],f=f||(u1e(r.position)?"free":i[0]||"free"),h=h||(l==="x"?"bottom":"left"),d=d||0,p=0,m=!1;var b=f3.coerce(r,t,{anchor:{valType:"enumerated",values:["free"].concat(i),dflt:f}},"anchor"),y=f3.coerce(r,t,{side:{valType:"enumerated",values:l==="x"?["bottom","top"]:["left","right"],dflt:h}},"side");if(b==="free"){if(l==="y"){var C=a("autoshift");C&&(d=y==="left"?u[0]:u[1],m=t.automargin?t.automargin:!0,p=y==="left"?-3:3),a("shift",p)}a("position",d)}a("automargin",m);var x=!1;if(o.length&&(x=f3.coerce(r,t,{overlaying:{valType:"enumerated",values:[!1].concat(o),dflt:!1}},"overlaying")),!x){var _=a("domain",c);_[0]>_[1]-1/4096&&(t.domain=c),f3.noneOrAll(r.domain,t.domain,c),t.tickmode==="sync"&&(t.tickmode="auto")}return a("layer"),t}});var YN=oe((b9e,GN)=>{"use strict";var Tc=pr(),zN=Nt(),f1e=Pu().isUnifiedHover,c1e=Gb(),NN=ka(),v1e=F1(),BN=Yl(),h1e=AN(),IN=L9(),d1e=lh(),HN=q9(),R9=En(),Xs=R9.id2name,ON=R9.name2id,p1e=(Hn(),xr(In)).AX_ID_PATTERN,UN=_t(),c3=UN.traceIs,P9=UN.getComponentMethod;function v3(e,r,t){Array.isArray(e[r])?e[r].push(t):e[r]=[t]}GN.exports=function(r,t,a){var n=t.autotypenumbers,i={},o={},l={},s={},u={},f={},c={},h={},d={},p={},m,b;for(m=0;m{"use strict";var m1e=Lt(),VN=_t(),h3=pr(),Lo=ha(),d3=Ga();XN.exports=function(r,t,a,n){var i=r._fullLayout;if(t.length===0){d3.redrawComponents(r);return}function o(b){var y=b.xaxis,C=b.yaxis;i._defs.select("#"+b.clipId+"> rect").call(Lo.setTranslate,0,0).call(Lo.setScale,1,1),b.plot.call(Lo.setTranslate,y._offset,C._offset).call(Lo.setScale,1,1);var x=b.plot.selectAll(".scatterlayer .trace");x.selectAll(".point").call(Lo.setPointGroupScale,1,1),x.selectAll(".textpoint").call(Lo.setTextPointsScale,1,1),x.call(Lo.hideOutsideRangePoints,b)}function l(b,y){var C=b.plotinfo,x=C.xaxis,_=C.yaxis,A=x._length,k=_._length,M=!!b.xr1,E=!!b.yr1,P=[];if(M){var z=h3.simpleMap(b.xr0,x.r2l),I=h3.simpleMap(b.xr1,x.r2l),V=z[1]-z[0],H=I[1]-I[0];P[0]=(z[0]*(1-y)+y*I[0]-z[0])/(z[1]-z[0])*A,P[2]=A*(1-y+y*H/V),x.range[0]=x.l2r(z[0]*(1-y)+y*I[0]),x.range[1]=x.l2r(z[1]*(1-y)+y*I[1])}else P[0]=0,P[2]=A;if(E){var X=h3.simpleMap(b.yr0,_.r2l),N=h3.simpleMap(b.yr1,_.r2l),Q=X[1]-X[0],ee=N[1]-N[0];P[1]=(X[1]*(1-y)+y*N[1]-X[1])/(X[0]-X[1])*k,P[3]=k*(1-y+y*ee/Q),_.range[0]=x.l2r(X[0]*(1-y)+y*N[0]),_.range[1]=_.l2r(X[1]*(1-y)+y*N[1])}else P[1]=0,P[3]=k;d3.drawOne(r,x,{skipTitle:!0}),d3.drawOne(r,_,{skipTitle:!0}),d3.redrawComponents(r,[x._id,_._id]);var re=M?A/P[2]:1,ae=E?k/P[3]:1,ie=M?P[0]:0,le=E?P[1]:0,xe=M?P[0]/P[2]*A:0,De=E?P[1]/P[3]*k:0,Ye=x._offset-xe,Ee=_._offset-De;C.clipRect.call(Lo.setTranslate,ie,le).call(Lo.setScale,1/re,1/ae),C.plot.call(Lo.setTranslate,Ye,Ee).call(Lo.setScale,re,ae),Lo.setPointGroupScale(C.zoomScalePts,1/re,1/ae),Lo.setTextPointsScale(C.zoomScaleTxt,1/re,1/ae)}var s;n&&(s=n());function u(){for(var b={},y=0;ya.duration?(u(),d=window.cancelAnimationFrame(m)):d=window.requestAnimationFrame(m)}return c=Date.now(),d=window.requestAnimationFrame(m),Promise.resolve()}});var z9=oe(di=>{"use strict";var m3=Lt(),WN=_t(),kc=pr(),g1e=Ln(),y1e=ha(),ZN=Pv().getModuleCalcData,V0=En(),Kl=(Hn(),xr(In)),b1e=(ec(),xr(Qf)),na=kc.ensureSingle;function p3(e,r,t){return kc.ensureSingle(e,r,t,function(a){a.datum(t)})}var Cc=Kl.zindexSeparator;di.name="cartesian";di.attr=["xaxis","yaxis"];di.idRoot=["x","y"];di.idRegex=Kl.idRegex;di.attrRegex=Kl.attrRegex;di.attributes=bN();di.layoutAttributes=Yl();di.supplyLayoutDefaults=YN();di.transitionAxes=jN();di.finalizeSubplots=function(e,r){var t=r._subplots,a=t.xaxis,n=t.yaxis,i=t.cartesian,o=i,l={},s={},u,f,c;for(u=0;u0){var d=h.id;if(d.indexOf(Cc)!==-1)continue;d+=Cc+(u+1),h=kc.extendFlat({},h,{id:d,plot:n._cartesianlayer.selectAll(".subplot").select("."+d)})}for(var p=[],m,b=0;b1&&(A+=Cc+_),x.push(l+A),o=0;o1,c=r.mainplotinfo;if(!r.mainplot||f)if(u)r.xlines=na(a,"path","xlines-above"),r.ylines=na(a,"path","ylines-above"),r.xaxislayer=na(a,"g","xaxislayer-above"),r.yaxislayer=na(a,"g","yaxislayer-above");else{if(!o){var h=na(a,"g","layer-subplot");r.shapelayer=na(h,"g","shapelayer"),r.imagelayer=na(h,"g","imagelayer"),c&&f?(r.minorGridlayer=c.minorGridlayer,r.gridlayer=c.gridlayer,r.zerolinelayer=c.zerolinelayer):(r.minorGridlayer=na(a,"g","minor-gridlayer"),r.gridlayer=na(a,"g","gridlayer"),r.zerolinelayer=na(a,"g","zerolinelayer"));var d=na(a,"g","layer-between");r.shapelayerBetween=na(d,"g","shapelayer"),r.imagelayerBetween=na(d,"g","imagelayer"),na(a,"path","xlines-below"),na(a,"path","ylines-below"),r.overlinesBelow=na(a,"g","overlines-below"),na(a,"g","xaxislayer-below"),na(a,"g","yaxislayer-below"),r.overaxesBelow=na(a,"g","overaxes-below")}r.overplot=na(a,"g","overplot"),r.plot=na(r.overplot,"g",n),c&&f?r.zerolinelayerAbove=c.zerolinelayerAbove:r.zerolinelayerAbove=na(a,"g","zerolinelayer-above"),o||(r.xlines=na(a,"path","xlines-above"),r.ylines=na(a,"path","ylines-above"),r.overlinesAbove=na(a,"g","overlines-above"),na(a,"g","xaxislayer-above"),na(a,"g","yaxislayer-above"),r.overaxesAbove=na(a,"g","overaxes-above"),r.xlines=a.select(".xlines-"+l),r.ylines=a.select(".ylines-"+s),r.xaxislayer=a.select(".xaxislayer-"+l),r.yaxislayer=a.select(".yaxislayer-"+s))}else{var p=c.plotgroup,m=n+"-x",b=n+"-y";r.minorGridlayer=c.minorGridlayer,r.gridlayer=c.gridlayer,r.zerolinelayer=c.zerolinelayer,r.zerolinelayerAbove=c.zerolinelayerAbove,na(c.overlinesBelow,"path",m),na(c.overlinesBelow,"path",b),na(c.overaxesBelow,"g",m),na(c.overaxesBelow,"g",b),r.plot=na(c.overplot,"g",n),na(c.overlinesAbove,"path",m),na(c.overlinesAbove,"path",b),na(c.overaxesAbove,"g",m),na(c.overaxesAbove,"g",b),r.xlines=p.select(".overlines-"+l).select("."+m),r.ylines=p.select(".overlines-"+s).select("."+b),r.xaxislayer=p.select(".overaxes-"+l).select("."+m),r.yaxislayer=p.select(".overaxes-"+s).select("."+b)}o||(u||(p3(r.minorGridlayer,"g",r.xaxis._id),p3(r.minorGridlayer,"g",r.yaxis._id),r.minorGridlayer.selectAll("g").map(function(y){return y[0]}).sort(V0.idSort),p3(r.gridlayer,"g",r.xaxis._id),p3(r.gridlayer,"g",r.yaxis._id),r.gridlayer.selectAll("g").map(function(y){return y[0]}).sort(V0.idSort)),r.xlines.style("fill","none").classed("crisp",!0),r.ylines.style("fill","none").classed("crisp",!0))}function KN(e,r){if(e){var t={};e.each(function(s){var u=s[0],f=m3.select(this);f.remove(),QN(u,r),t[u]=!0});for(var a in r._plots)for(var n=r._plots[a],i=n.overlays||[],o=0;o{"use strict";var g3=Ti();eB.exports={hasLines:g3.hasLines,hasMarkers:g3.hasMarkers,hasText:g3.hasText,isBubble:g3.isBubble,attributes:_c(),layoutAttributes:Hp(),supplyDefaults:vz(),crossTraceDefaults:mz(),supplyLayoutDefaults:yz(),calc:r3().calc,crossTraceCalc:Xz(),arraysToCalcdata:Nh(),plot:oN(),colorbar:M9(),formatLabels:uN(),style:Uh().style,styleOnSelect:Uh().styleOnSelect,hoverPoints:dN(),selectPoints:gN(),animatable:!0,moduleType:"trace",name:"scatter",basePlotModule:z9(),categories:["cartesian","svg","symbols","errorBarsOK","showLegend","scatter-like","zoomScale"],meta:{}}});var nB=oe((A9e,aB)=>{"use strict";var x1e=Lt(),w1e=Nt(),tB=L7(),N9=pr(),A1e=N9.strScale,M1e=N9.strRotate,T1e=N9.strTranslate;aB.exports=function(r,t,a){var n=r.node(),i=tB[a.arrowhead||0],o=tB[a.startarrowhead||0],l=(a.arrowwidth||1)*(a.arrowsize||1),s=(a.arrowwidth||1)*(a.startarrowsize||1),u=t.indexOf("start")>=0,f=t.indexOf("end")>=0,c=i.backoff*l+a.standoff,h=o.backoff*s+a.startstandoff,d,p,m,b;if(n.nodeName==="line"){d={x:+r.attr("x1"),y:+r.attr("y1")},p={x:+r.attr("x2"),y:+r.attr("y2")};var y=d.x-p.x,C=d.y-p.y;if(m=Math.atan2(C,y),b=m+Math.PI,c&&h&&c+h>Math.sqrt(y*y+C*C)){X();return}if(c){if(c*c>y*y+C*C){X();return}var x=c*Math.cos(m),_=c*Math.sin(m);p.x+=x,p.y+=_,r.attr({x2:p.x,y2:p.y})}if(h){if(h*h>y*y+C*C){X();return}var A=h*Math.cos(m),k=h*Math.sin(m);d.x-=A,d.y-=k,r.attr({x1:d.x,y1:d.y})}}else if(n.nodeName==="path"){var M=n.getTotalLength(),E="";if(M{"use strict";var iB=Lt(),B9=_t(),k1e=Ln(),j0=pr(),I9=j0.strTranslate,Vh=Ga(),Sc=Nt(),Yu=ha(),oB=jl(),H9=vi(),O9=z0(),Yh=el(),C1e=ka().arrayEditor,S1e=nB();uB.exports={draw:D1e,drawOne:lB,drawRaw:sB};function D1e(e){var r=e._fullLayout;r._infolayer.selectAll(".annotation").remove();for(var t=0;t2/3?Wr="right":Wr="center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[Wr]}for(var K=!1,J=["x","y"],fe=0;fe1)&&(Ze===Ne?(Nr=er.r2fraction(r["a"+be]),(Nr<0||Nr>1)&&(K=!0)):K=!0),mr=er._offset+er.r2p(r[be]),Ue=.5}else{var Ce=Pr==="domain";be==="x"?(Te=r[be],mr=Ce?er._offset+er._length*Te:mr=l.l+l.w*Te):(Te=1-r[be],mr=Ce?er._offset+er._length*Te:mr=l.t+l.h*Te),Ue=r.showarrow?.5:Te}if(r.showarrow){Qe.head=mr;var He=r["a"+be];if(_r=tr*he(.5,r.xanchor)-ze*he(.5,r.yanchor),Ze===Ne){var cr=Vh.getRefType(Ze);cr==="domain"?(be==="y"&&(He=1-He),Qe.tail=er._offset+er._length*He):cr==="paper"?be==="y"?(He=1-He,Qe.tail=l.t+l.h*He):Qe.tail=l.l+l.w*He:Qe.tail=er._offset+er.r2p(He),qr=_r}else Qe.tail=mr+He,qr=_r+He;Qe.text=Qe.tail+_r;var Mr=o[be==="x"?"width":"height"];if(Ne==="paper"&&(Qe.head=j0.constrain(Qe.head,1,Mr-1)),Ze==="pixel"){var vr=-Math.max(Qe.tail-3,Qe.text),kr=Math.min(Qe.tail+3,Qe.text)-Mr;vr>0?(Qe.tail+=vr,Qe.text+=vr):kr>0&&(Qe.tail-=kr,Qe.text-=kr)}Qe.tail+=Ar,Qe.head+=Ar}else _r=lr*he(Ue,hr),qr=_r,Qe.text=mr+_r;Qe.text+=Ar,_r+=Ar,qr+=Ar,r["_"+be+"padplus"]=lr/2+qr,r["_"+be+"padminus"]=lr/2-qr,r["_"+be+"size"]=lr,r["_"+be+"shift"]=_r}if(K){M.remove();return}var Er=0,jr=0;if(r.align!=="left"&&(Er=(ke-Ye)*(r.align==="center"?.5:1)),r.valign!=="top"&&(jr=(je-Ee)*(r.valign==="middle"?.5:1)),xe)le.select("svg").attr({x:z+Er-1,y:z+jr}).call(Yu.setClipUrl,V?m:null,e);else{var et=z+jr-De.top,nr=z+Er-De.left;Q.call(H9.positionText,nr,et).call(Yu.setClipUrl,V?m:null,e)}H.select("rect").call(Yu.setRect,z,z,ke,je),I.call(Yu.setRect,E/2,E/2,W-E,se-E),M.call(Yu.setTranslate,Math.round(b.x.text-W/2),Math.round(b.y.text-se/2)),x.attr({transform:"rotate("+y+","+b.x.text+","+b.y.text+")"});var Cr=function(Fr,Wr){C.selectAll(".annotation-arrow-g").remove();var Br=b.x.head,Zr=b.y.head,Ae=b.x.tail+Fr,Be=b.y.tail+Wr,or=b.x.text+Fr,dr=b.y.text+Wr,Dt=j0.rotationXYMatrix(y,or,dr),Wt=j0.apply2DTransform(Dt),ba=j0.apply2DTransform2(Dt),_a=+I.attr("width"),Xt=+I.attr("height"),Ht=or-.5*_a,la=Ht+_a,Pt=dr-.5*Xt,Ta=Pt+Xt,pa=[[Ht,Pt,Ht,Ta],[Ht,Ta,la,Ta],[la,Ta,la,Pt],[la,Pt,Ht,Pt]].map(ba);if(!pa.reduce(function($t,Na){return $t^!!j0.segmentsIntersect(Br,Zr,Br+1e6,Zr+1e6,Na[0],Na[1],Na[2],Na[3])},!1)){pa.forEach(function($t){var Na=j0.segmentsIntersect(Ae,Be,Br,Zr,$t[0],$t[1],$t[2],$t[3]);Na&&(Ae=Na.x,Be=Na.y)});var Xa=r.arrowwidth,hn=r.arrowcolor,ja=r.arrowside,Fa=C.append("g").style({opacity:Sc.opacity(hn)}).classed("annotation-arrow-g",!0),Rr=Fa.append("path").attr("d","M"+Ae+","+Be+"L"+Br+","+Zr).style("stroke-width",Xa+"px").call(Sc.stroke,Sc.rgb(hn));if(S1e(Rr,ja,r),s.annotationPosition&&Rr.node().parentNode&&!a){var Vt=Br,Et=Zr;if(r.standoff){var Zt=Math.sqrt(Math.pow(Br-Ae,2)+Math.pow(Zr-Be,2));Vt+=r.standoff*(Ae-Br)/Zt,Et+=r.standoff*(Be-Zr)/Zt}var ma=Fa.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(Ae-Vt)+","+(Be-Et),transform:I9(Vt,Et)}).style("stroke-width",Xa+6+"px").call(Sc.stroke,"rgba(0,0,0,0)").call(Sc.fill,"rgba(0,0,0,0)"),Ea,Rt;Yh.init({element:ma.node(),gd:e,prepFn:function(){var $t=Yu.getTranslate(M);Ea=$t.x,Rt=$t.y,n&&n.autorange&&h(n._name+".autorange",!0),i&&i.autorange&&h(i._name+".autorange",!0)},moveFn:function($t,Na){var Jn=Wt(Ea,Rt),Pi=Jn[0]+$t,Kn=Jn[1]+Na;M.call(Yu.setTranslate,Pi,Kn),d("x",X0(n,$t,"x",l,r)),d("y",X0(i,Na,"y",l,r)),r.axref===r.xref&&d("ax",X0(n,$t,"ax",l,r)),r.ayref===r.yref&&d("ay",X0(i,Na,"ay",l,r)),Fa.attr("transform",I9($t,Na)),x.attr({transform:"rotate("+y+","+Pi+","+Kn+")"})},doneFn:function(){B9.call("_guiRelayout",e,p());var $t=document.querySelector(".js-notes-box-panel");$t&&$t.redraw($t.selectedObj)}})}}};if(r.showarrow&&Cr(0,0),_){var ar;Yh.init({element:M.node(),gd:e,prepFn:function(){ar=x.attr("transform")},moveFn:function(Fr,Wr){var Br="pointer";if(r.showarrow)r.axref===r.xref?d("ax",X0(n,Fr,"ax",l,r)):d("ax",r.ax+Fr),r.ayref===r.yref?d("ay",X0(i,Wr,"ay",l.w,r)):d("ay",r.ay+Wr),Cr(Fr,Wr);else{if(a)return;var Zr,Ae;if(n)Zr=X0(n,Fr,"x",l,r);else{var Be=r._xsize/l.w,or=r.x+(r._xshift-r.xshift)/l.w-Be/2;Zr=Yh.align(or+Fr/l.w,Be,0,1,r.xanchor)}if(i)Ae=X0(i,Wr,"y",l,r);else{var dr=r._ysize/l.h,Dt=r.y-(r._yshift+r.yshift)/l.h-dr/2;Ae=Yh.align(Dt-Wr/l.h,dr,0,1,r.yanchor)}d("x",Zr),d("y",Ae),(!n||!i)&&(Br=Yh.getCursor(n?.5:Zr,i?.5:Ae,r.xanchor,r.yanchor))}x.attr({transform:I9(Fr,Wr)+ar}),O9(M,Br)},clickFn:function(Fr,Wr){r.captureevents&&e.emit("plotly_clickannotation",k(Wr))},doneFn:function(){O9(M),B9.call("_guiRelayout",e,p());var Fr=document.querySelector(".js-notes-box-panel");Fr&&Fr.redraw(Fr.selectedObj)}})}}s.annotationText?Q.call(H9.makeEditable,{delegate:M,gd:e}).call(ee).on("edit",function(ae){r.text=ae,this.call(ee),d("text",ae),n&&n.autorange&&h(n._name+".autorange",!0),i&&i.autorange&&h(i._name+".autorange",!0),B9.call("_guiRelayout",e,p())}):Q.call(ee)}});var pB=oe((T9e,dB)=>{"use strict";var fB=pr(),F1e=_t(),cB=ka().arrayEditor;dB.exports={hasClickToShow:E1e,onClick:L1e};function E1e(e,r){var t=hB(e,r);return t.on.length>0||t.explicitOff.length>0}function L1e(e,r){var t=hB(e,r),a=t.on,n=t.off.concat(t.explicitOff),i={},o=e._fullLayout.annotations,l,s;if(a.length||n.length){for(l=0;l{"use strict";var U9=pr(),x2=Nt();mB.exports=function(r,t,a,n){n("opacity");var i=n("bgcolor"),o=n("bordercolor"),l=x2.opacity(o);n("borderpad");var s=n("borderwidth"),u=n("showarrow");n("text",u?" ":a._dfltTitle.annotation),n("textangle"),U9.coerceFont(n,"font",a.font),n("width"),n("align");var f=n("height");if(f&&n("valign"),u){var c=n("arrowside"),h,d;c.indexOf("end")!==-1&&(h=n("arrowhead"),d=n("arrowsize")),c.indexOf("start")!==-1&&(n("startarrowhead",h),n("startarrowsize",d)),n("arrowcolor",l?t.bordercolor:x2.defaultLine),n("arrowwidth",(l&&s||1)*2),n("standoff"),n("startstandoff")}var p=n("hovertext"),m=a.hoverlabel||{};if(p){var b=n("hoverlabel.bgcolor",m.bgcolor||(x2.opacity(i)?x2.rgb(i):x2.defaultLine)),y=n("hoverlabel.bordercolor",m.bordercolor||x2.contrast(b)),C=U9.extendFlat({},m.font);C.color||(C.color=y),U9.coerceFont(n,"hoverlabel.font",C)}n("captureevents",!!p)}});var yB=oe((C9e,gB)=>{"use strict";var Y9=pr(),Dc=Ga(),q1e=Vl(),P1e=G9(),R1e=v2();gB.exports=function(r,t){q1e(r,t,{name:"annotations",handleItemDefaults:z1e})};function z1e(e,r,t){function a(x,_){return Y9.coerce(e,r,R1e,x,_)}var n=a("visible"),i=a("clicktoshow");if(n||i){P1e(e,r,t,a);for(var o=r.showarrow,l=["x","y"],s=[-10,-30],u={_fullLayout:t},f=0;f<2;f++){var c=l[f],h=Dc.coerceRef(e,r,u,c,"","paper");if(h!=="paper"){var d=Dc.getFromId(u,h);d._annIndices.push(r._index)}if(Dc.coercePosition(r,u,a,h,c,.5),o){var p="a"+c,m=Dc.coerceRef(e,r,u,p,"pixel",["pixel","paper"]);m!=="pixel"&&m!==h&&(m=r[p]="pixel");var b=m==="pixel"?s[f]:.4;Dc.coercePosition(r,u,a,m,p,b)}a(c+"anchor"),a(c+"shift")}if(Y9.noneOrAll(e,r,["x","y"]),o&&Y9.noneOrAll(e,r,["ax","ay"]),i){var y=a("xclick"),C=a("yclick");r._xclick=y===void 0?r.x:Dc.cleanPosition(y,u,r.xref),r._yclick=C===void 0?r.y:Dc.cleanPosition(C,u,r.yref)}}}});var xB=oe((S9e,_B)=>{"use strict";var V9=pr(),Fc=Ga(),N1e=y3().draw;_B.exports=function(r){var t=r._fullLayout,a=V9.filterVisible(t.annotations);if(a.length&&r._fullData.length)return V9.syncOrAsync([N1e,B1e],r)};function B1e(e){var r=e._fullLayout;V9.filterVisible(r.annotations).forEach(function(t){var a=Fc.getFromId(e,t.xref),n=Fc.getFromId(e,t.yref),i=Fc.getRefType(t.xref),o=Fc.getRefType(t.yref);t._extremes={},i==="range"&&bB(t,a),o==="range"&&bB(t,n)})}function bB(e,r){var t=r._id,a=t.charAt(0),n=e[a],i=e["a"+a],o=e[a+"ref"],l=e["a"+a+"ref"],s=e["_"+a+"padplus"],u=e["_"+a+"padminus"],f={x:1,y:-1}[a]*e[a+"shift"],c=3*e.arrowsize*e.arrowwidth||0,h=c+f,d=c-f,p=3*e.startarrowsize*e.arrowwidth||0,m=p+f,b=p-f,y;if(l===o){var C=Fc.findExtremes(r,[r.r2c(n)],{ppadplus:h,ppadminus:d}),x=Fc.findExtremes(r,[r.r2c(i)],{ppadplus:Math.max(s,m),ppadminus:Math.max(u,b)});y={min:[C.min[0],x.min[0]],max:[C.max[0],x.max[0]]}}else m=i?m+i:m,b=i?b-i:b,y=Fc.findExtremes(r,[r.r2c(n)],{ppadplus:Math.max(s,h,m),ppadminus:Math.max(u,d,b)});e._extremes[t]=y}});var AB=oe((D9e,wB)=>{"use strict";var I1e=Qt(),H1e=qd();wB.exports=function(r,t,a,n){t=t||{};var i=a==="log"&&t.type==="linear",o=a==="linear"&&t.type==="log";if(!(i||o))return;var l=r._fullLayout.annotations,s=t._id.charAt(0),u,f;function c(d){var p=u[d],m=null;i?m=H1e(p,t.range):m=Math.pow(10,p),I1e(m)||(m=null),n(f+d,m)}for(var h=0;h{"use strict";var X9=y3(),MB=pB();TB.exports={moduleType:"component",name:"annotations",layoutAttributes:v2(),supplyLayoutDefaults:yB(),includeBasePlot:kh()("annotations"),calcAutorange:xB(),draw:X9.draw,drawOne:X9.drawOne,drawRaw:X9.drawRaw,hasClickToShow:MB.hasClickToShow,onClick:MB.onClick,convertCoords:AB()}});var b3=oe((E9e,CB)=>{"use strict";var Sa=v2(),O1e=Zo().overrideAll,U1e=ka().templatedArray;CB.exports=O1e(U1e("annotation",{visible:Sa.visible,x:{valType:"any"},y:{valType:"any"},z:{valType:"any"},ax:{valType:"number"},ay:{valType:"number"},xanchor:Sa.xanchor,xshift:Sa.xshift,yanchor:Sa.yanchor,yshift:Sa.yshift,text:Sa.text,textangle:Sa.textangle,font:Sa.font,width:Sa.width,height:Sa.height,opacity:Sa.opacity,align:Sa.align,valign:Sa.valign,bgcolor:Sa.bgcolor,bordercolor:Sa.bordercolor,borderpad:Sa.borderpad,borderwidth:Sa.borderwidth,showarrow:Sa.showarrow,arrowcolor:Sa.arrowcolor,arrowhead:Sa.arrowhead,startarrowhead:Sa.startarrowhead,arrowside:Sa.arrowside,arrowsize:Sa.arrowsize,startarrowsize:Sa.startarrowsize,arrowwidth:Sa.arrowwidth,standoff:Sa.standoff,startstandoff:Sa.startstandoff,hovertext:Sa.hovertext,hoverlabel:Sa.hoverlabel,captureevents:Sa.captureevents}),"calc","from-root")});var DB=oe((L9e,SB)=>{"use strict";var j9=pr(),G1e=Ga(),Y1e=Vl(),V1e=G9(),X1e=b3();SB.exports=function(r,t,a){Y1e(r,t,{name:"annotations",handleItemDefaults:j1e,fullLayout:a.fullLayout})};function j1e(e,r,t,a){function n(l,s){return j9.coerce(e,r,X1e,l,s)}function i(l){var s=l+"axis",u={_fullLayout:{}};return u._fullLayout[s]=t[s],G1e.coercePosition(r,u,n,l,l,.5)}var o=n("visible");o&&(V1e(e,r,a.fullLayout,n),i("x"),i("y"),i("z"),j9.noneOrAll(e,r,["x","y","z"]),r.xref="x",r.yref="y",r.zref="z",n("xanchor"),n("yanchor"),n("xshift"),n("yshift"),r.showarrow&&(r.axref="pixel",r.ayref="pixel",n("ax",-10),n("ay",-30),j9.noneOrAll(e,r,["ax","ay"])))}});var qB=oe((q9e,LB)=>{"use strict";var FB=pr(),EB=Ga();LB.exports=function(r){for(var t=r.fullSceneLayout,a=t.annotations,n=0;n{"use strict";function W9(e,r){var t=[0,0,0,0],a,n;for(a=0;a<4;++a)for(n=0;n<4;++n)t[n]+=e[4*a+n]*r[a];return t}function Z1e(e,r){var t=W9(e.projection,W9(e.view,W9(e.model,[r[0],r[1],r[2],1])));return t}PB.exports=Z1e});var NB=oe((R9e,zB)=>{"use strict";var $1e=y3().drawRaw,J1e=RB(),K1e=["x","y","z"];zB.exports=function(r){for(var t=r.fullSceneLayout,a=r.dataScale,n=t.annotations,i=0;i1){l=!0;break}}l?r.fullLayout._infolayer.select(".annotation-"+r.id+'[data-index="'+i+'"]').remove():(o._pdata=J1e(r.glplot.cameraParams,[t.xaxis.r2l(o.x)*a[0],t.yaxis.r2l(o.y)*a[1],t.zaxis.r2l(o.z)*a[2]]),$1e(r.graphDiv,o,i,r.id,o._xa,o._ya))}}});var HB=oe((z9e,IB)=>{"use strict";var Q1e=_t(),BB=pr();IB.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:b3()}}},layoutAttributes:b3(),handleDefaults:DB(),includeBasePlot:e2e,convert:qB(),draw:NB()};function e2e(e,r){var t=Q1e.subplotsRegistry.gl3d;if(t)for(var a=t.attrRegex,n=Object.keys(e),i=0;i{"use strict";var N9e=(Hn(),xr(In)),OB=xi(),UB=_c().line,r2e=Ds().dash,Ql=Dn().extendFlat,t2e=ka().templatedArray,B9e=(Mh(),xr(Ah)),w2=Wo(),GB=v2(),{shapeTexttemplateAttrs:a2e,templatefallbackAttrs:n2e}=Vf(),i2e=pp();YB.exports=t2e("shape",{visible:Ql({},w2.visible,{editType:"calc+arraydraw"}),showlegend:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},legend:Ql({},w2.legend,{editType:"calc+arraydraw"}),legendgroup:Ql({},w2.legendgroup,{editType:"calc+arraydraw"}),legendgrouptitle:{text:Ql({},w2.legendgrouptitle.text,{editType:"calc+arraydraw"}),font:OB({editType:"calc+arraydraw"}),editType:"calc+arraydraw"},legendrank:Ql({},w2.legendrank,{editType:"calc+arraydraw"}),legendwidth:Ql({},w2.legendwidth,{editType:"calc+arraydraw"}),type:{valType:"enumerated",values:["circle","rect","path","line"],editType:"calc+arraydraw"},layer:{valType:"enumerated",values:["below","above","between"],dflt:"above",editType:"arraydraw"},xref:Ql({},GB.xref,{arrayOk:!0}),xsizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},xanchor:{valType:"any",editType:"calc+arraydraw"},x0:{valType:"any",editType:"calc+arraydraw"},x1:{valType:"any",editType:"calc+arraydraw"},x0shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},x1shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},yref:Ql({},GB.yref,{arrayOk:!0}),ysizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},yanchor:{valType:"any",editType:"calc+arraydraw"},y0:{valType:"any",editType:"calc+arraydraw"},y1:{valType:"any",editType:"calc+arraydraw"},y0shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},y1shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},path:{valType:"string",editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},line:{color:Ql({},UB.color,{editType:"arraydraw"}),width:Ql({},UB.width,{editType:"calc+arraydraw"}),dash:Ql({},r2e,{editType:"arraydraw"}),editType:"calc+arraydraw"},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd",editType:"arraydraw"},editable:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},label:{text:{valType:"string",dflt:"",editType:"arraydraw"},texttemplate:a2e({},{keys:Object.keys(i2e)}),texttemplatefallback:n2e({editType:"arraydraw"}),font:OB({editType:"calc+arraydraw",colorEditType:"arraydraw"}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"],editType:"arraydraw"},textangle:{valType:"angle",dflt:"auto",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],editType:"calc+arraydraw"},padding:{valType:"number",dflt:3,min:0,editType:"arraydraw"},editType:"arraydraw"},editType:"arraydraw"})});var XB=oe((H9e,VB)=>{"use strict";var A2=pr(),qo=Ga(),o2e=Vl(),l2e=Z9(),Xh=O0();VB.exports=function(r,t){o2e(r,t,{name:"shapes",handleItemDefaults:u2e})};function s2e(e,r){return e?"bottom":r.indexOf("top")!==-1?"top":r.indexOf("bottom")!==-1?"bottom":"middle"}function u2e(e,r,t){function a(x,_){return A2.coerce(e,r,l2e,x,_)}r._isShape=!0;var n=a("visible");if(!n)return;var i=a("showlegend");a("legend"),a("legendgroup"),i&&(a("legendwidth"),a("legendgrouptitle.text"),A2.coerceFont(a,"legendgrouptitle.font"),a("legendrank"));var o=a("path"),l=o?"path":"rect",s=a("type",l),u=s!=="path";u&&delete r.path,a("editable"),a("layer"),a("opacity"),a("fillcolor"),a("fillrule");var f=a("line.width");f&&(a("line.color"),a("line.dash"));var c=a("xsizemode"),h=a("ysizemode");let d=[.25,.75],p=[0,10];["x","y"].forEach(x=>{var _=x+"anchor",A=x==="x"?c:h,k={_fullLayout:t},M,E,P,z;let I=x+"ref",V=e[I];if(Array.isArray(V)&&V.length>0){let H=Xh.countDefiningCoords(s,o,x);z=qo.coerceRefArray(e,r,k,x,void 0,"paper",H),r["_"+x+"refArray"]=!0}else z=qo.coerceRef(e,r,k,x,void 0,"paper");if(Array.isArray(z))z.forEach(function(H){qo.getRefType(H)==="range"&&(M=qo.getFromId(k,H),M&&M._shapeIndices.indexOf(r._index)===-1&&M._shapeIndices.push(r._index))}),u&&[0,1].forEach(function(H){let X=z[H];qo.getRefType(X)==="range"?(M=qo.getFromId(k,X),E=Xh.shapePositionToRange(M),P=Xh.rangeToShapePosition(M),(M.type==="category"||M.type==="multicategory")&&a(x+H+"shift")):E=P=A2.identity;let Q=x+H,ee=e[Q];if(e[Q]=E(e[Q],!0),A==="pixel"?a(Q,p[H]):qo.coercePosition(r,k,a,X,Q,d[H]),r[Q]=P(r[Q]),e[Q]=ee,H===0&&A==="pixel"){let re=e[_];e[_]=E(e[_],!0),qo.coercePosition(r,k,a,X,_,.25),r[_]=P(r[_]),e[_]=re}});else{if(qo.getRefType(z)==="range"?(M=qo.getFromId(k,z),M._shapeIndices.push(r._index),P=Xh.rangeToShapePosition(M),E=Xh.shapePositionToRange(M),u&&(M.type==="category"||M.type==="multicategory")&&(a(x+"0shift"),a(x+"1shift"))):E=P=A2.identity,u){let X=x+"0",N=x+"1",Q=e[X],ee=e[N];e[X]=E(e[X],!0),e[N]=E(e[N],!0),A==="pixel"?(a(X,p[0]),a(N,p[1])):(qo.coercePosition(r,k,a,z,X,d[0]),qo.coercePosition(r,k,a,z,N,d[1])),r[X]=P(r[X]),r[N]=P(r[N]),e[X]=Q,e[N]=ee}if(A==="pixel"){let X=e[_];e[_]=E(e[_],!0),qo.coercePosition(r,k,a,z,_,.25),r[_]=P(r[_]),e[_]=X}}}),u&&A2.noneOrAll(e,r,["x0","x1","y0","y1"]);var m=s==="line",b,y;if(u&&(b=a("label.texttemplate"),a("label.texttemplatefallback")),b||(y=a("label.text")),y||b){a("label.textangle");var C=a("label.textposition",m?"middle":"middle center");a("label.xanchor"),a("label.yanchor",s2e(m,C)),a("label.padding"),A2.coerceFont(a,"label.font",t.font)}}});var ZB=oe((O9e,WB)=>{"use strict";var f2e=Nt(),jB=pr();function c2e(e,r){return e?"bottom":r.indexOf("top")!==-1?"top":r.indexOf("bottom")!==-1?"bottom":"middle"}WB.exports=function(r,t,a){a("newshape.visible"),a("newshape.name"),a("newshape.showlegend"),a("newshape.legend"),a("newshape.legendwidth"),a("newshape.legendgroup"),a("newshape.legendgrouptitle.text"),jB.coerceFont(a,"newshape.legendgrouptitle.font"),a("newshape.legendrank"),a("newshape.drawdirection"),a("newshape.layer"),a("newshape.fillcolor"),a("newshape.fillrule"),a("newshape.opacity");var n=a("newshape.line.width");if(n){var i=(r||{}).plot_bgcolor||"#FFF";a("newshape.line.color",f2e.contrast(i)),a("newshape.line.dash")}var o=r.dragmode==="drawline",l=a("newshape.label.text"),s=a("newshape.label.texttemplate");if(a("newshape.label.texttemplatefallback"),l||s){a("newshape.label.textangle");var u=a("newshape.label.textposition",o?"middle":"middle center");a("newshape.label.xanchor"),a("newshape.label.yanchor",c2e(o,u)),a("newshape.label.padding"),jB.coerceFont(a,"newshape.label.font",t.font)}a("activeshape.fillcolor"),a("activeshape.opacity")}});var tI=oe((U9e,rI)=>{"use strict";var $9=pr(),vl=Ga(),js=(ah(),xr(th)),J9=O0();rI.exports=function(r){var t=r._fullLayout,a=$9.filterVisible(t.shapes);if(!(!a.length||!r._fullData.length))for(var n=0;n{o=vl.getFromId(r,c),i._extremes[o._id]=vl.findExtremes(o,h,JB(i))})}else i.xref!=="paper"&&s!=="domain"&&(o=vl.getFromId(r,i.xref),l=QB(o,i,js.paramIsX),l&&(i._extremes[o._id]=vl.findExtremes(o,l,JB(i))));if(u==="array"){let f=$B(r,i,"y");Object.entries(f).forEach(([c,h])=>{o=vl.getFromId(r,c),i._extremes[o._id]=vl.findExtremes(o,h,KB(i))})}else i.yref!=="paper"&&u!=="domain"&&(o=vl.getFromId(r,i.yref),l=QB(o,i,js.paramIsY),l&&(i._extremes[o._id]=vl.findExtremes(o,l,KB(i))))}};function $B(e,r,t){let a=r[t+"ref"],n=t==="x"?js.paramIsX:js.paramIsY;function i(c,h){c==="paper"||vl.getRefType(c)==="domain"||(o[c]||(o[c]=[]),o[c].push(h))}let o={};if(r.type==="path"&&r.path){let c=r.path.match(js.segmentRE)||[];for(var l=0,s=0;sp&&(i(a[l],m[p]),l++)}}else i(a[0],r[t+"0"]),i(a[1],r[t+"1"]);let u={};for(let c in o){let h=vl.getFromId(e,c);if(h){var f=h.type==="category"||h.type==="multicategory"?h.r2c:h.d2c;h.type==="date"&&(f=J9.decodeDate(f)),u[h._id]=o[c].map(f)}}return u}function JB(e){return eI(e.line.width,e.xsizemode,e.x0,e.x1,e.path,!1)}function KB(e){return eI(e.line.width,e.ysizemode,e.y0,e.y1,e.path,!0)}function eI(e,r,t,a,n,i){var o=e/2,l=i;if(r==="pixel"){var s=n?J9.extractPathCoords(n,i?js.paramIsY:js.paramIsX):[t,a],u=$9.aggNums(Math.max,null,s),f=$9.aggNums(Math.min,null,s),c=f<0?Math.abs(f)+o:o,h=u>0?u+o:o;return{ppad:o,ppadplus:l?c:h,ppadminus:l?h:c}}else return{ppad:o}}function QB(e,r,t){var a=e._id.charAt(0)==="x"?"x":"y",n=e.type==="category"||e.type==="multicategory",i,o,l=0,s=0,u=n?e.r2c:e.d2c,f=r[a+"sizemode"]==="scaled";if(f?(i=r[a+"0"],o=r[a+"1"],n&&(l=r[a+"0shift"],s=r[a+"1shift"])):(i=r[a+"anchor"],o=r[a+"anchor"]),i!==void 0)return[u(i)+l,u(o)+s];if(r.path){var c=1/0,h=-1/0,d=r.path.match(js.segmentRE),p,m,b,y,C;for(e.type==="date"&&(u=J9.decodeDate(u)),p=0;ph&&(h=C)));if(h>=c)return[c,h]}}});var iI=oe((G9e,nI)=>{"use strict";var aI=ig();nI.exports={moduleType:"component",name:"shapes",layoutAttributes:Z9(),supplyLayoutDefaults:XB(),supplyDrawNewShapeDefaults:ZB(),includeBasePlot:kh()("shapes"),calcAutorange:tI(),draw:aI.draw,drawOne:aI.drawOne}});var K9=oe((V9e,lI)=>{"use strict";var oI=(Hn(),xr(In)),v2e=ka().templatedArray,Y9e=(Mh(),xr(Ah));lI.exports=v2e("image",{visible:{valType:"boolean",dflt:!0,editType:"arraydraw"},source:{valType:"string",editType:"arraydraw"},layer:{valType:"enumerated",values:["below","above"],dflt:"above",editType:"arraydraw"},sizex:{valType:"number",dflt:0,editType:"arraydraw"},sizey:{valType:"number",dflt:0,editType:"arraydraw"},sizing:{valType:"enumerated",values:["fill","contain","stretch"],dflt:"contain",editType:"arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},x:{valType:"any",dflt:0,editType:"arraydraw"},y:{valType:"any",dflt:0,editType:"arraydraw"},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left",editType:"arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],dflt:"top",editType:"arraydraw"},xref:{valType:"enumerated",values:["paper",oI.idRegex.x.toString()],dflt:"paper",editType:"arraydraw"},yref:{valType:"enumerated",values:["paper",oI.idRegex.y.toString()],dflt:"paper",editType:"arraydraw"},editType:"arraydraw"})});var uI=oe((X9e,sI)=>{"use strict";var h2e=pr(),Q9=Ga(),d2e=Vl(),p2e=K9(),m2e="images";sI.exports=function(r,t){var a={name:m2e,handleItemDefaults:g2e};d2e(r,t,a)};function g2e(e,r,t){function a(h,d){return h2e.coerce(e,r,p2e,h,d)}var n=a("source"),i=a("visible",!!n);if(!i)return r;a("layer"),a("xanchor"),a("yanchor"),a("sizex"),a("sizey"),a("sizing"),a("opacity");for(var o={_fullLayout:t},l=["x","y"],s=0;s<2;s++){var u=l[s],f=Q9.coerceRef(e,r,o,u,"paper",void 0);if(f!=="paper"){var c=Q9.getFromId(o,f);c._imgIndices.push(r._index)}Q9.coercePosition(r,o,a,f,u,0)}return r}});var hI=oe((j9e,vI)=>{"use strict";var fI=Lt(),y2e=ha(),M2=Ga(),cI=En(),b2e=(ec(),xr(Qf));vI.exports=function(r){var t=r._fullLayout,a=[],n={},i=[],o,l;for(l=0;l{"use strict";var dI=Qt(),_2e=qd();pI.exports=function(r,t,a,n){t=t||{};var i=a==="log"&&t.type==="linear",o=a==="linear"&&t.type==="log";if(i||o){for(var l=r._fullLayout.images,s=t._id.charAt(0),u,f,c=0;c{"use strict";gI.exports={moduleType:"component",name:"images",layoutAttributes:K9(),supplyLayoutDefaults:uI(),includeBasePlot:kh()("images"),draw:hI(),convertCoords:mI()}});var _3={};Ua(_3,{activeColor:()=>V2e,arrowOffsetX:()=>U2e,arrowPadX:()=>N2e,arrowSymbol:()=>j2e,autoMarginIdRoot:()=>L2e,blankHeaderOpts:()=>q2e,buttonClassName:()=>S2e,containerClassName:()=>w2e,dropdownButtonClassName:()=>C2e,dropdownButtonGroupClassName:()=>k2e,gapButton:()=>Y2e,gapButtonHeader:()=>G2e,headerArrowClassName:()=>T2e,headerClassName:()=>M2e,headerGroupClassName:()=>A2e,hoverColor:()=>X2e,itemRectClassName:()=>D2e,itemTextClassName:()=>F2e,menuIndexAttrName:()=>E2e,minHeight:()=>R2e,minWidth:()=>P2e,name:()=>x2e,rx:()=>B2e,ry:()=>I2e,textOffsetX:()=>H2e,textOffsetY:()=>O2e,textPadX:()=>z2e});var x2e,w2e,A2e,M2e,T2e,k2e,C2e,S2e,D2e,F2e,E2e,L2e,q2e,P2e,R2e,z2e,N2e,B2e,I2e,H2e,O2e,U2e,G2e,Y2e,V2e,X2e,j2e,x3=Oa(()=>{"use strict";x2e="updatemenus",w2e="updatemenu-container",A2e="updatemenu-header-group",M2e="updatemenu-header",T2e="updatemenu-header-arrow",k2e="updatemenu-dropdown-button-group",C2e="updatemenu-dropdown-button",S2e="updatemenu-button",D2e="updatemenu-item-rect",F2e="updatemenu-item-text",E2e="updatemenu-active-index",L2e="updatemenu-",q2e={label:" "},P2e=30,R2e=30,z2e=24,N2e=16,B2e=2,I2e=2,H2e=12,O2e=3,U2e=4,G2e=5,Y2e=2,V2e="#F4FAFF",X2e="#F4FAFF",j2e={left:"\u25C4",right:"\u25BA",up:"\u25B2",down:"\u25BC"}});var e8=oe(($9e,_I)=>{"use strict";var W2e=xi(),Z2e=Il(),$2e=Dn().extendFlat,J2e=Zo().overrideAll,K2e=mp(),bI=ka().templatedArray,Q2e=bI("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}});_I.exports=J2e(bI("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:Q2e,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:$2e(K2e({editType:"arraydraw"}),{}),font:W2e({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:Z2e.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")});var MI=oe((J9e,AI)=>{"use strict";var w3=pr(),xI=Vl(),wI=e8(),eve=(x3(),xr(_3)),rve=eve.name,tve=wI.buttons;AI.exports=function(r,t){var a={name:rve,handleItemDefaults:ave};xI(r,t,a)};function ave(e,r,t){function a(o,l){return w3.coerce(e,r,wI,o,l)}var n=xI(e,r,{name:"buttons",handleItemDefaults:nve}),i=a("visible",n.length>0);i&&(a("active"),a("direction"),a("type"),a("showactive"),a("x"),a("y"),w3.noneOrAll(e,r,["x","y"]),a("xanchor"),a("yanchor"),a("pad.t"),a("pad.r"),a("pad.b"),a("pad.l"),w3.coerceFont(a,"font",t.font),a("bgcolor",t.paper_bgcolor),a("bordercolor"),a("borderwidth"))}function nve(e,r){function t(n,i){return w3.coerce(e,r,tve,n,i)}var a=t("visible",e.method==="skip"||Array.isArray(e.args));a&&(t("method"),t("args"),t("args2"),t("label"),t("execute"))}});var CI=oe((K9e,kI)=>{"use strict";kI.exports=Ka;var es=Lt(),TI=Nt(),T2=ha(),A3=pr();function Ka(e,r,t){this.gd=e,this.container=r,this.id=t,this.position=null,this.translateX=null,this.translateY=null,this.hbar=null,this.vbar=null,this.bg=this.container.selectAll("rect.scrollbox-bg").data([0]),this.bg.exit().on(".drag",null).on("wheel",null).remove(),this.bg.enter().append("rect").classed("scrollbox-bg",!0).style("pointer-events","all").attr({opacity:0,x:0,y:0,width:0,height:0})}Ka.barWidth=2;Ka.barLength=20;Ka.barRadius=2;Ka.barPad=1;Ka.barColor="#808BA4";Ka.prototype.enable=function(r,t,a){var n=this.gd._fullLayout,i=n.width,o=n.height;this.position=r;var l=this.position.l,s=this.position.w,u=this.position.t,f=this.position.h,c=this.position.direction,h=c==="down",d=c==="left",p=c==="right",m=c==="up",b=s,y=f,C,x,_,A;!h&&!d&&!p&&!m&&(this.position.direction="down",h=!0);var k=h||m;k?(C=l,x=C+b,h?(_=u,A=Math.min(_+y,o),y=A-_):(A=u+y,_=Math.max(A-y,0),y=A-_)):(_=u,A=_+y,d?(x=l+b,C=Math.max(x-b,0),b=x-C):(C=l,x=Math.min(C+b,i),b=x-C)),this._box={l:C,t:_,w:b,h:y};var M=s>b,E=Ka.barLength+2*Ka.barPad,P=Ka.barWidth+2*Ka.barPad,z=l,I=u+f;I+P>o&&(I=o-P);var V=this.container.selectAll("rect.scrollbar-horizontal").data(M?[0]:[]);V.exit().on(".drag",null).remove(),V.enter().append("rect").classed("scrollbar-horizontal",!0).call(TI.fill,Ka.barColor),M?(this.hbar=V.attr({rx:Ka.barRadius,ry:Ka.barRadius,x:z,y:I,width:E,height:P}),this._hbarXMin=z+E/2,this._hbarTranslateMax=b-E):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var H=f>y,X=Ka.barWidth+2*Ka.barPad,N=Ka.barLength+2*Ka.barPad,Q=l+s,ee=u;Q+X>i&&(Q=i-X);var re=this.container.selectAll("rect.scrollbar-vertical").data(H?[0]:[]);re.exit().on(".drag",null).remove(),re.enter().append("rect").classed("scrollbar-vertical",!0).call(TI.fill,Ka.barColor),H?(this.vbar=re.attr({rx:Ka.barRadius,ry:Ka.barRadius,x:Q,y:ee,width:X,height:N}),this._vbarYMin=ee+N/2,this._vbarTranslateMax=y-N):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var ae=this.id,ie=C-.5,le=H?x+X+.5:x+.5,xe=_-.5,De=M?A+P+.5:A+.5,Ye=n._topdefs.selectAll("#"+ae).data(M||H?[0]:[]);if(Ye.exit().remove(),Ye.enter().append("clipPath").attr("id",ae).append("rect"),M||H?(this._clipRect=Ye.select("rect").attr({x:Math.floor(ie),y:Math.floor(xe),width:Math.ceil(le)-Math.floor(ie),height:Math.ceil(De)-Math.floor(xe)}),this.container.call(T2.setClipUrl,ae,this.gd),this.bg.attr({x:l,y:u,width:s,height:f})):(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(T2.setClipUrl,null),delete this._clipRect),M||H){var Ee=es.behavior.drag().on("dragstart",function(){es.event.sourceEvent.preventDefault()}).on("drag",this._onBoxDrag.bind(this));this.container.on("wheel",null).on("wheel",this._onBoxWheel.bind(this)).on(".drag",null).call(Ee);var ke=es.behavior.drag().on("dragstart",function(){es.event.sourceEvent.preventDefault(),es.event.sourceEvent.stopPropagation()}).on("drag",this._onBarDrag.bind(this));M&&this.hbar.on(".drag",null).call(ke),H&&this.vbar.on(".drag",null).call(ke)}this.setTranslate(t,a)};Ka.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(T2.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)};Ka.prototype._onBoxDrag=function(){var r=this.translateX,t=this.translateY;this.hbar&&(r-=es.event.dx),this.vbar&&(t-=es.event.dy),this.setTranslate(r,t)};Ka.prototype._onBoxWheel=function(){var r=this.translateX,t=this.translateY;this.hbar&&(r+=es.event.deltaY),this.vbar&&(t+=es.event.deltaY),this.setTranslate(r,t)};Ka.prototype._onBarDrag=function(){var r=this.translateX,t=this.translateY;if(this.hbar){var a=r+this._hbarXMin,n=a+this._hbarTranslateMax,i=A3.constrain(es.event.x,a,n),o=(i-a)/(n-a),l=this.position.w-this._box.w;r=o*l}if(this.vbar){var s=t+this._vbarYMin,u=s+this._vbarTranslateMax,f=A3.constrain(es.event.y,s,u),c=(f-s)/(u-s),h=this.position.h-this._box.h;t=c*h}this.setTranslate(r,t)};Ka.prototype.setTranslate=function(r,t){var a=this.position.w-this._box.w,n=this.position.h-this._box.h;if(r=A3.constrain(r||0,0,a),t=A3.constrain(t||0,0,n),this.translateX=r,this.translateY=t,this.container.call(T2.setTranslate,this._box.l-this.position.l-r,this._box.t-this.position.t-t),this._clipRect&&this._clipRect.attr({x:Math.floor(this.position.l+r-.5),y:Math.floor(this.position.t+t-.5)}),this.hbar){var i=r/a;this.hbar.call(T2.setTranslate,r+i*this._hbarTranslateMax,t)}if(this.vbar){var o=t/n;this.vbar.call(T2.setTranslate,r,t+o*this._vbarTranslateMax)}}});var NI=oe((Q9e,zI)=>{"use strict";var k2=Lt(),jh=Ln(),Wh=Nt(),C2=ha(),Po=pr(),M3=vi(),ive=ka().arrayEditor,DI=(ci(),xr(fi)).LINE_SPACING,mt=(x3(),xr(_3)),ove=CI();zI.exports=function(r){var t=r._fullLayout,a=Po.filterVisible(t[mt.name]);function n(h){jh.autoMargin(r,PI(h))}var i=t._menulayer.selectAll("g."+mt.containerClassName).data(a.length>0?[0]:[]);if(i.enter().append("g").classed(mt.containerClassName,!0).style("cursor","pointer"),i.exit().each(function(){k2.select(this).selectAll("g."+mt.headerGroupClassName).each(n)}).remove(),a.length!==0){var o=i.selectAll("g."+mt.headerGroupClassName).data(a,lve);o.enter().append("g").classed(mt.headerGroupClassName,!0);for(var l=Po.ensureSingle(i,"g",mt.dropdownButtonGroupClassName,function(h){h.style("pointer-events","all")}),s=0;s{"use strict";var dve=(x3(),xr(_3));BI.exports={moduleType:"component",name:dve.name,layoutAttributes:e8(),supplyLayoutDefaults:MI(),draw:NI()}});var $h={};Ua($h,{arrowOffsetX:()=>Pve,autoMarginIdRoot:()=>Fve,containerClassName:()=>mve,currentValueClass:()=>Cve,currentValueInset:()=>lhe,currentValuePadding:()=>ohe,gripBgActiveColor:()=>$ve,gripBgColor:()=>Zve,gripBorder:()=>Xve,gripBorderColor:()=>Wve,gripBorderWidth:()=>jve,gripHeight:()=>Vve,gripRadius:()=>Gve,gripRectClass:()=>xve,gripWidth:()=>Yve,groupClassName:()=>gve,inputAreaClass:()=>yve,inputProxyClass:()=>Ave,labelClass:()=>kve,labelGroupClass:()=>Tve,labelOffset:()=>Kve,labelPadding:()=>Jve,labelsClass:()=>Mve,menuIndexAttrName:()=>Dve,minHeight:()=>Lve,minWidth:()=>Eve,minorTickColor:()=>nhe,minorTickLength:()=>ihe,minorTickOffset:()=>ahe,name:()=>pve,railBgColor:()=>Hve,railBorder:()=>Nve,railBorderColor:()=>Ive,railBorderWidth:()=>Bve,railHeight:()=>Sve,railInset:()=>Ove,railRadius:()=>Rve,railRectClass:()=>bve,railTouchRectClass:()=>_ve,railWidth:()=>zve,stepInset:()=>Uve,textPadX:()=>qve,tickColor:()=>ehe,tickLength:()=>the,tickOffset:()=>rhe,tickRectClass:()=>wve,tickWidth:()=>Qve});var pve,mve,gve,yve,bve,_ve,xve,wve,Ave,Mve,Tve,kve,Cve,Sve,Dve,Fve,Eve,Lve,qve,Pve,Rve,zve,Nve,Bve,Ive,Hve,Ove,Uve,Gve,Yve,Vve,Xve,jve,Wve,Zve,$ve,Jve,Kve,Qve,ehe,rhe,the,ahe,nhe,ihe,ohe,lhe,Jh=Oa(()=>{"use strict";pve="sliders",mve="slider-container",gve="slider-group",yve="slider-input-area",bve="slider-rail-rect",_ve="slider-rail-touch-rect",xve="slider-grip-rect",wve="slider-tick-rect",Ave="slider-input-proxy",Mve="slider-labels",Tve="slider-label-group",kve="slider-label",Cve="slider-current-value",Sve=5,Dve="slider-active-index",Fve="slider-",Eve=30,Lve=30,qve=40,Pve=4,Rve=2,zve=5,Nve=4,Bve=1,Ive="#bec8d9",Hve="#f8fafc",Ove=8,Uve=10,Gve=10,Yve=20,Vve=20,Xve=20,jve=1,Wve="#bec8d9",Zve="#f6f8fa",$ve="#dbdde0",Jve=8,Kve=0,Qve=1,ehe="#333",rhe=25,the=7,ahe=25,nhe="#333",ihe=4,ohe=8,lhe=0});var n8=oe((r8e,UI)=>{"use strict";var HI=xi(),she=mp(),uhe=Dn().extendDeepAll,fhe=Zo().overrideAll,che=Tv(),OI=ka().templatedArray,Ec=(Jh(),xr($h)),vhe=OI("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}});UI.exports=fhe(OI("slider",{visible:{valType:"boolean",dflt:!0},active:{valType:"number",min:0,dflt:0},steps:vhe,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:uhe(she({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:che.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:HI({})},font:HI({}),activebgcolor:{valType:"color",dflt:Ec.gripBgActiveColor},bgcolor:{valType:"color",dflt:Ec.railBgColor},bordercolor:{valType:"color",dflt:Ec.railBorderColor},borderwidth:{valType:"number",min:0,dflt:Ec.railBorderWidth},ticklen:{valType:"number",min:0,dflt:Ec.tickLength},tickcolor:{valType:"color",dflt:Ec.tickColor},tickwidth:{valType:"number",min:0,dflt:1},minorticklen:{valType:"number",min:0,dflt:Ec.minorTickLength}}),"arraydraw","from-root")});var XI=oe((t8e,VI)=>{"use strict";var S2=pr(),GI=Vl(),YI=n8(),hhe=(Jh(),xr($h)),dhe=hhe.name,phe=YI.steps;VI.exports=function(r,t){GI(r,t,{name:dhe,handleItemDefaults:mhe})};function mhe(e,r,t){function a(c,h){return S2.coerce(e,r,YI,c,h)}for(var n=GI(e,r,{name:"steps",handleItemDefaults:ghe}),i=0,o=0;o{"use strict";var rs=Lt(),T3=Ln(),W0=Nt(),ts=ha(),Ro=pr(),yhe=Ro.strTranslate,Kh=vi(),bhe=ka().arrayEditor,St=(Jh(),xr($h)),l8=(ci(),xr(fi)),ZI=l8.LINE_SPACING,i8=l8.FROM_TL,o8=l8.FROM_BR;rH.exports=function(r){var t=r._context.staticPlot,a=r._fullLayout,n=_he(a,r),i=a._infolayer.selectAll("g."+St.containerClassName).data(n.length>0?[0]:[]);i.enter().append("g").classed(St.containerClassName,!0).style("cursor",t?null:"ew-resize");function o(f){f._commandObserver&&(f._commandObserver.remove(),delete f._commandObserver),T3.autoMargin(r,$I(f))}if(i.exit().each(function(){rs.select(this).selectAll("g."+St.groupClassName).each(o)}).remove(),n.length!==0){var l=i.selectAll("g."+St.groupClassName).data(n,xhe);l.enter().append("g").classed(St.groupClassName,!0),l.exit().each(o).remove();for(var s=0;s0&&(l=l.transition().duration(r.transition.duration).ease(r.transition.easing)),l.attr("transform",yhe(o-St.gripWidth*.5,r._dims.currentValueTotalHeight))}}function s8(e,r){var t=e._dims;return t.inputAreaStart+St.stepInset+(t.inputAreaLength-2*St.stepInset)*Math.min(1,Math.max(0,r))}function WI(e,r){var t=e._dims;return Math.min(1,Math.max(0,(r-St.stepInset-t.inputAreaStart)/(t.inputAreaLength-2*St.stepInset-2*t.inputAreaStart)))}function She(e,r,t){var a=t._dims,n=Ro.ensureSingle(e,"rect",St.railTouchRectClass,function(i){i.call(QI,r,e,t).style("pointer-events","all")});n.attr({width:a.inputAreaLength,height:Math.max(a.inputAreaWidth,St.tickOffset+t.ticklen+a.labelHeight)}).call(W0.fill,t.bgcolor).attr("opacity",0),ts.setTranslate(n,0,a.currentValueTotalHeight)}function Dhe(e,r){var t=r._dims,a=t.inputAreaLength-St.railInset*2,n=Ro.ensureSingle(e,"rect",St.railRectClass);n.attr({width:a,height:St.railWidth,rx:St.railRadius,ry:St.railRadius,"shape-rendering":"crispEdges"}).call(W0.stroke,r.bordercolor).call(W0.fill,r.bgcolor).style("stroke-width",r.borderwidth+"px"),ts.setTranslate(n,St.railInset,(t.inputAreaWidth-St.railWidth)*.5+t.currentValueTotalHeight)}});var nH=oe((n8e,aH)=>{"use strict";var Fhe=(Jh(),xr($h));aH.exports={moduleType:"component",name:Fhe.name,layoutAttributes:n8(),supplyLayoutDefaults:XI(),draw:tH()}});var C3=oe((i8e,oH)=>{"use strict";var iH=Il();oH.exports={bgcolor:{valType:"color",dflt:iH.background,editType:"plot"},bordercolor:{valType:"color",dflt:iH.defaultLine,editType:"plot"},borderwidth:{valType:"integer",dflt:0,min:0,editType:"plot"},autorange:{valType:"boolean",dflt:!0,editType:"calc",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},range:{valType:"info_array",items:[{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}},{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}}],editType:"calc",impliedEdits:{autorange:!1}},thickness:{valType:"number",dflt:.15,min:0,max:1,editType:"plot"},visible:{valType:"boolean",dflt:!0,editType:"calc"},editType:"calc"}});var u8=oe((o8e,lH)=>{"use strict";lH.exports={_isSubplotObj:!0,rangemode:{valType:"enumerated",values:["auto","fixed","match"],dflt:"match",editType:"calc"},range:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},editType:"calc"}});var S3={};Ua(S3,{bgClassName:()=>qhe,containerClassName:()=>Lhe,extraPad:()=>tde,grabAreaCursor:()=>Jhe,grabAreaFill:()=>$he,grabAreaMaxClassName:()=>Uhe,grabAreaMinClassName:()=>Ihe,grabAreaWidth:()=>Khe,grabberMaxClassName:()=>Ohe,grabberMinClassName:()=>Bhe,handleMaxClassName:()=>Ghe,handleMinClassName:()=>Hhe,handleRadius:()=>ede,handleStrokeWidth:()=>rde,handleWidth:()=>Qhe,maskColor:()=>Xhe,maskMaxClassName:()=>zhe,maskMaxOppAxisClassName:()=>Vhe,maskMinClassName:()=>Rhe,maskMinOppAxisClassName:()=>Yhe,maskOppAxisColor:()=>jhe,name:()=>Ehe,rangePlotClassName:()=>Phe,slideBoxClassName:()=>Nhe,slideBoxCursor:()=>Zhe,slideBoxFill:()=>Whe});var Ehe,Lhe,qhe,Phe,Rhe,zhe,Nhe,Bhe,Ihe,Hhe,Ohe,Uhe,Ghe,Yhe,Vhe,Xhe,jhe,Whe,Zhe,$he,Jhe,Khe,Qhe,ede,rde,tde,D3=Oa(()=>{"use strict";Ehe="rangeslider",Lhe="rangeslider-container",qhe="rangeslider-bg",Phe="rangeslider-rangeplot",Rhe="rangeslider-mask-min",zhe="rangeslider-mask-max",Nhe="rangeslider-slidebox",Bhe="rangeslider-grabber-min",Ihe="rangeslider-grabarea-min",Hhe="rangeslider-handle-min",Ohe="rangeslider-grabber-max",Uhe="rangeslider-grabarea-max",Ghe="rangeslider-handle-max",Yhe="rangeslider-mask-min-opp-axis",Vhe="rangeslider-mask-max-opp-axis",Xhe="rgba(0,0,0,0.4)",jhe="rgba(0,0,0,0.2)",Whe="transparent",Zhe="ew-resize",$he="transparent",Jhe="col-resize",Khe=10,Qhe=4,ede=1,rde=1,tde=15});var fH=oe(E3=>{"use strict";var ade=En(),nde=vi(),sH=(D3(),xr(S3)),ide=(ci(),xr(fi)).LINE_SPACING,F3=sH.name;function uH(e){var r=e&&e[F3];return r&&r.visible}E3.isVisible=uH;E3.makeData=function(e){for(var r=ade.list({_fullLayout:e},"x",!0),t=e.margin,a=[],n=0;n{"use strict";var L3=pr(),cH=ka(),vH=En(),ode=C3(),lde=u8();hH.exports=function(r,t,a){var n=r[a],i=t[a];if(!(n.rangeslider||t._requestRangeslider[i._id]))return;L3.isPlainObject(n.rangeslider)||(n.rangeslider={});var o=n.rangeslider,l=cH.newContainer(i,"rangeslider");function s(A,k){return L3.coerce(o,l,ode,A,k)}var u,f;function c(A,k){return L3.coerce(u,f,lde,A,k)}var h=s("visible");if(h){s("bgcolor",t.plot_bgcolor),s("bordercolor"),s("borderwidth"),s("thickness"),s("autorange",!i.isValidRange(o.range)),s("range");var d=t._subplots;if(d)for(var p=d.cartesian.filter(function(A){return A.slice(0,Math.max(0,A.indexOf("y")))===vH.name2id(a)}).map(function(A){return A.slice(A.indexOf("y"),A.length)}),m=L3.simpleMap(p,vH.id2name),b=0;b{"use strict";var sde=En().list,ude=P0().getAutoRange,fde=(D3(),xr(S3));pH.exports=function(r){for(var t=sde(r,"x",!0),a=0;a{"use strict";var q3=Lt(),cde=_t(),vde=Ln(),vn=pr(),P3=vn.strTranslate,yH=ha(),Z0=Nt(),hde=Ov(),dde=z9(),f8=En(),pde=el(),mde=z0(),It=(D3(),xr(S3));bH.exports=function(e){for(var r=e._fullLayout,t=r._rangeSliderData,a=0;a=re.max)Q=I[ee+1];else if(N=re.pmax)Q=I[ee+1];else if(N0?e.touches[0].clientX:0}function gde(e,r,t,a){if(r._context.staticPlot)return;var n=e.select("rect."+It.slideBoxClassName).node(),i=e.select("rect."+It.grabAreaMinClassName).node(),o=e.select("rect."+It.grabAreaMaxClassName).node();function l(){var s=q3.event,u=s.target,f=gH(s),c=f-e.node().getBoundingClientRect().left,h=a.d2p(t._rl[0]),d=a.d2p(t._rl[1]),p=pde.coverSlip();this.addEventListener("touchmove",m),this.addEventListener("touchend",b),p.addEventListener("mousemove",m),p.addEventListener("mouseup",b);function m(y){var C=gH(y),x=+C-f,_,A,k;switch(u){case n:if(k="ew-resize",h+x>t._length||d+x<0)return;_=h+x,A=d+x;break;case i:if(k="col-resize",h+x>t._length)return;_=h+x,A=d;break;case o:if(k="col-resize",d+x<0)return;_=h,A=d+x;break;default:k="ew-resize",_=c,A=c+x;break}if(A<_){var M=A;A=_,_=M}a._pixelMin=_,a._pixelMax=A,mde(q3.select(p),k),yde(e,r,t,a)}function b(){p.removeEventListener("mousemove",m),p.removeEventListener("mouseup",b),this.removeEventListener("touchmove",m),this.removeEventListener("touchend",b),vn.removeElement(p)}}e.on("mousedown",l),e.on("touchstart",l)}function yde(e,r,t,a){function n(l){return t.l2r(vn.constrain(l,a._rl[0],a._rl[1]))}var i=n(a.p2d(a._pixelMin)),o=n(a.p2d(a._pixelMax));window.requestAnimationFrame(function(){cde.call("_guiRelayout",r,t._name+".range",[i,o])})}function bde(e,r,t,a,n,i){var o=It.handleWidth/2;function l(y){return vn.constrain(y,0,a._width)}function s(y){return vn.constrain(y,0,a._height)}function u(y){return vn.constrain(y,-o,a._width+o)}var f=l(a.d2p(t._rl[0])),c=l(a.d2p(t._rl[1]));if(e.select("rect."+It.slideBoxClassName).attr("x",f).attr("width",c-f),e.select("rect."+It.maskMinClassName).attr("width",f),e.select("rect."+It.maskMaxClassName).attr("x",c).attr("width",a._width-c),i.rangemode!=="match"){var h=a._height-s(a.d2pOppAxis(n._rl[1])),d=a._height-s(a.d2pOppAxis(n._rl[0]));e.select("rect."+It.maskMinOppAxisClassName).attr("x",f).attr("height",h).attr("width",c-f),e.select("rect."+It.maskMaxOppAxisClassName).attr("x",f).attr("y",d).attr("height",a._height-d).attr("width",c-f),e.select("rect."+It.slideBoxClassName).attr("y",h).attr("height",d-h)}var p=.5,m=Math.round(u(f-o))-p,b=Math.round(u(c-o))+p;e.select("g."+It.grabberMinClassName).attr("transform",P3(m,p)),e.select("g."+It.grabberMaxClassName).attr("transform",P3(b,p))}function _de(e,r,t,a){var n=vn.ensureSingle(e,"rect",It.bgClassName,function(s){s.attr({x:0,y:0,"shape-rendering":"crispEdges"})}),i=a.borderwidth%2===0?a.borderwidth:a.borderwidth-1,o=-a._offsetShift,l=yH.crispRound(r,a.borderwidth);n.attr({width:a._width+i,height:a._height+i,transform:P3(o,o),"stroke-width":l}).call(Z0.stroke,a.bordercolor).call(Z0.fill,a.bgcolor)}function xde(e,r,t,a){var n=r._fullLayout,i=vn.ensureSingleById(n._topdefs,"clipPath",a._clipId,function(o){o.append("rect").attr({x:0,y:0})});i.select("rect").attr({width:a._width,height:a._height})}function wde(e,r,t,a){var n=r.calcdata,i=e.selectAll("g."+It.rangePlotClassName).data(t._subplotsWith,vn.identity);i.enter().append("g").attr("class",function(l){return It.rangePlotClassName+" "+l}).call(yH.setClipUrl,a._clipId,r),i.order(),i.exit().remove();var o;i.each(function(l,s){var u=q3.select(this),f=s===0,c=f8.getFromId(r,l,"y"),h=c._name,d=a[h],p={data:[],layout:{xaxis:{type:t.type,domain:[0,1],range:a.range.slice(),calendar:t.calendar},width:a._width,height:a._height,margin:{t:0,b:0,l:0,r:0}},_context:r._context};t.rangebreaks&&(p.layout.xaxis.rangebreaks=t.rangebreaks),p.layout[h]={type:c.type,domain:[0,1],range:d.rangemode!=="match"?d.range.slice():c.range.slice(),calendar:c.calendar},c.rangebreaks&&(p.layout[h].rangebreaks=c.rangebreaks),vde.supplyDefaults(p);var m=p._fullLayout.xaxis,b=p._fullLayout[h];m.clearCalc(),m.setScale(),b.clearCalc(),b.setScale();var y={id:l,plotgroup:u,xaxis:m,yaxis:b,isRangePlot:!0};f?o=y:(y.mainplot="xy",y.mainplotinfo=o),dde.rangePlot(r,y,Ade(n,l))})}function Ade(e,r){for(var t=[],a=0;a{"use strict";var Cde=pr(),Sde=C3(),Dde=u8(),c8=fH();xH.exports={moduleType:"component",name:"rangeslider",schema:{subplots:{xaxis:{rangeslider:Cde.extendFlat({},Sde,{yaxis:Dde})}}},layoutAttributes:C3(),handleDefaults:dH(),calcAutorange:mH(),draw:_H(),isVisible:c8.isVisible,makeData:c8.makeData,autoMarginOpts:c8.autoMarginOpts}});var R3=oe((v8e,MH)=>{"use strict";var Fde=xi(),AH=Il(),Ede=ka().templatedArray,Lde=Ede("button",{visible:{valType:"boolean",dflt:!0,editType:"plot"},step:{valType:"enumerated",values:["month","year","day","hour","minute","second","all"],dflt:"month",editType:"plot"},stepmode:{valType:"enumerated",values:["backward","todate"],dflt:"backward",editType:"plot"},count:{valType:"number",min:0,dflt:1,editType:"plot"},label:{valType:"string",editType:"plot"},editType:"plot"});MH.exports={visible:{valType:"boolean",editType:"plot"},buttons:Lde,x:{valType:"number",min:-2,max:3,editType:"plot"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"plot"},y:{valType:"number",min:-2,max:3,editType:"plot"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"bottom",editType:"plot"},font:Fde({editType:"plot"}),bgcolor:{valType:"color",dflt:AH.lightLine,editType:"plot"},activecolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:AH.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"}});var v8={};Ua(v8,{darkAmount:()=>Bde,lightAmount:()=>Nde,minButtonWidth:()=>Pde,rx:()=>Rde,ry:()=>zde,yPad:()=>qde});var qde,Pde,Rde,zde,Nde,Bde,h8=Oa(()=>{"use strict";qde=.02,Pde=30,Rde=3,zde=3,Nde=25,Bde=10});var CH=oe((h8e,kH)=>{"use strict";var z3=pr(),Ide=Nt(),Hde=ka(),Ode=Vl(),TH=R3(),d8=(h8(),xr(v8));kH.exports=function(r,t,a,n,i){var o=r.rangeselector||{},l=Hde.newContainer(t,"rangeselector");function s(d,p){return z3.coerce(o,l,TH,d,p)}var u=Ode(o,l,{name:"buttons",handleItemDefaults:Ude,calendar:i}),f=s("visible",u.length>0);if(f){var c=Gde(t,a,n);s("x",c[0]),s("y",c[1]),z3.noneOrAll(r,t,["x","y"]),s("xanchor"),s("yanchor"),z3.coerceFont(s,"font",a.font);var h=s("bgcolor");s("activecolor",Ide.contrast(h,d8.lightAmount,d8.darkAmount)),s("bordercolor"),s("borderwidth")}};function Ude(e,r,t,a){var n=a.calendar;function i(s,u){return z3.coerce(e,r,TH.buttons,s,u)}var o=i("visible");if(o){var l=i("step");l!=="all"&&(n&&n!=="gregorian"&&(l==="month"||l==="year")?r.stepmode="backward":i("stepmode"),i("count")),i("label")}}function Gde(e,r,t){for(var a=t.filter(function(l){return r[l].anchor===e._id}),n=0,i=0;i{"use strict";var Yde=Dy(),Vde=pr().titleCase;SH.exports=function(r,t){var a=r._name,n={};if(t.step==="all")n[a+".autorange"]=!0;else{var i=Xde(r,t);n[a+".range[0]"]=i[0],n[a+".range[1]"]=i[1]}return n};function Xde(e,r){var t=e.range,a=new Date(e.r2l(t[1])),n=r.step,i=Yde["utc"+Vde(n)],o=r.count,l;switch(r.stepmode){case"backward":l=e.l2r(+i.offset(a,-o));break;case"todate":var s=i.offset(a,-o);l=e.l2r(+i.ceil(s));break}var u=t[1];return[l,u]}});var NH=oe((p8e,zH)=>{"use strict";var B3=Lt(),jde=_t(),Wde=Ln(),FH=Nt(),RH=ha(),Vu=pr(),EH=Vu.strTranslate,N3=vi(),Zde=En(),g8=(ci(),xr(fi)),LH=g8.LINE_SPACING,qH=g8.FROM_TL,PH=g8.FROM_BR,m8=(h8(),xr(v8)),$de=DH();zH.exports=function(r){var t=r._fullLayout,a=t._infolayer.selectAll(".rangeselector").data(Jde(r),Kde);a.enter().append("g").classed("rangeselector",!0),a.exit().remove(),a.style({cursor:"pointer","pointer-events":"all"}),a.each(function(n){var i=B3.select(this),o=n,l=o.rangeselector,s=i.selectAll("g.button").data(Vu.filterVisible(l.buttons));s.enter().append("g").classed("button",!0),s.exit().remove(),s.each(function(u){var f=B3.select(this),c=$de(o,u);u._isActive=Qde(o,u,c),f.call(p8,l,u),f.call(rpe,l,u,r),f.on("click",function(){r._dragged||jde.call("_guiRelayout",r,c)}),f.on("mouseover",function(){u._isHovered=!0,f.call(p8,l,u)}),f.on("mouseout",function(){u._isHovered=!1,f.call(p8,l,u)})}),ape(r,s,l,o._name,i)})};function Jde(e){for(var r=Zde.list(e,"x",!0),t=[],a=0;a{"use strict";BH.exports={moduleType:"component",name:"rangeselector",schema:{subplots:{xaxis:{rangeselector:R3()}}},layoutAttributes:R3(),handleDefaults:CH(),draw:NH()}});var I3=oe(y8=>{"use strict";var HH=Dn().extendFlat;y8.attributes=function(e,r){e=e||{},r=r||{};var t={valType:"info_array",editType:e.editType,items:[{valType:"number",min:0,max:1,editType:e.editType},{valType:"number",min:0,max:1,editType:e.editType}],dflt:[0,1]},a=e.name?e.name+" ":"",n=e.trace?"trace":"subplot",i=r.description?" "+r.description:"",o={x:HH({},t,{}),y:HH({},t,{}),editType:e.editType};return e.noGridCell||(o.row={valType:"integer",min:0,dflt:0,editType:e.editType},o.column={valType:"integer",min:0,dflt:0,editType:e.editType}),o};y8.defaults=function(e,r,t,a){var n=a&&a.x||[0,1],i=a&&a.y||[0,1],o=r.grid;if(o){var l=t("domain.column");l!==void 0&&(l{"use strict";var npe=pr(),ipe=(C1(),xr(Av)).counter,ope=I3().attributes,OH=(Hn(),xr(In)).idRegex,lpe=ka(),b8={rows:{valType:"integer",min:1,editType:"plot"},roworder:{valType:"enumerated",values:["top to bottom","bottom to top"],dflt:"top to bottom",editType:"plot"},columns:{valType:"integer",min:1,editType:"plot"},subplots:{valType:"info_array",freeLength:!0,dimensions:2,items:{valType:"enumerated",values:[ipe("xy").toString(),""],editType:"plot"},editType:"plot"},xaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[OH.x.toString(),""],editType:"plot"},editType:"plot"},yaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[OH.y.toString(),""],editType:"plot"},editType:"plot"},pattern:{valType:"enumerated",values:["independent","coupled"],dflt:"coupled",editType:"plot"},xgap:{valType:"number",min:0,max:1,editType:"plot"},ygap:{valType:"number",min:0,max:1,editType:"plot"},domain:ope({name:"grid",editType:"plot",noGridCell:!0},{}),xside:{valType:"enumerated",values:["bottom","bottom plot","top plot","top"],dflt:"bottom plot",editType:"plot"},yside:{valType:"enumerated",values:["left","left plot","right plot","right"],dflt:"left plot",editType:"plot"},editType:"plot"};function H3(e,r,t){var a=r[t+"axes"],n=Object.keys((e._splomAxes||{})[t]||{});if(Array.isArray(a))return a;if(n.length)return n}function spe(e,r){var t=e.grid||{},a=H3(r,t,"x"),n=H3(r,t,"y");if(!e.grid&&!a&&!n)return;var i=Array.isArray(t.subplots)&&Array.isArray(t.subplots[0]),o=Array.isArray(a),l=Array.isArray(n),s=o&&a!==t.xaxes&&l&&n!==t.yaxes,u,f;i?(u=t.subplots.length,f=t.subplots[0].length):(l&&(u=n.length),o&&(f=a.length));var c=lpe.newContainer(r,"grid");function h(k,M){return npe.coerce(t,c,b8,k,M)}var d=h("rows",u),p=h("columns",f);if(!(d*p>1)){delete r.grid;return}if(!i&&!o&&!l){var m=h("pattern")==="independent";m&&(i=!0)}c._hasSubplotGrid=i;var b=h("roworder"),y=b==="top to bottom",C=i?.2:.1,x=i?.3:.1,_,A;s&&r._splomGridDflt&&(_=r._splomGridDflt.xside,A=r._splomGridDflt.yside),c._domains={x:UH("x",h,C,_,p),y:UH("y",h,x,A,d,y)}}function UH(e,r,t,a,n,i){var o=r(e+"gap",t),l=r("domain."+e);r(e+"side",a);for(var s=new Array(n),u=l[0],f=(l[1]-u)/(n-o),c=f*(1-o),h=0;h{"use strict";XH.exports={visible:{valType:"boolean",editType:"calc"},type:{valType:"enumerated",values:["percent","constant","sqrt","data"],editType:"calc"},symmetric:{valType:"boolean",editType:"calc"},array:{valType:"data_array",editType:"calc"},arrayminus:{valType:"data_array",editType:"calc"},value:{valType:"number",min:0,dflt:10,editType:"calc"},valueminus:{valType:"number",min:0,dflt:10,editType:"calc"},traceref:{valType:"integer",min:0,dflt:0,editType:"style"},tracerefminus:{valType:"integer",min:0,dflt:0,editType:"style"},copy_ystyle:{valType:"boolean",editType:"plot"},copy_zstyle:{valType:"boolean",editType:"style"},color:{valType:"color",editType:"style"},thickness:{valType:"number",min:0,dflt:2,editType:"style"},width:{valType:"number",min:0,editType:"plot"},editType:"calc"}});var ZH=oe((_8e,WH)=>{"use strict";var jH=Qt(),fpe=_t(),cpe=pr(),vpe=ka(),hpe=_8();WH.exports=function(e,r,t,a){var n="error_"+a.axis,i=vpe.newContainer(r,n),o=e[n]||{};function l(p,m){return cpe.coerce(o,i,hpe,p,m)}var s=o.array!==void 0||o.value!==void 0||o.type==="sqrt",u=l("visible",s);if(u!==!1){var f=l("type","array"in o?"data":"percent"),c=!0;f!=="sqrt"&&(c=l("symmetric",!((f==="data"?"arrayminus":"valueminus")in o))),f==="data"?(l("array"),l("traceref"),c||(l("arrayminus"),l("tracerefminus"))):(f==="percent"||f==="constant")&&(l("value"),c||l("valueminus"));var h="copy_"+a.inherit+"style";if(a.inherit){var d=r["error_"+a.inherit];(d||{}).visible&&l(h,!(o.color||jH(o.thickness)||jH(o.width)))}(!a.inherit||!i[h])&&(l("color",t),l("thickness"),l("width",fpe.traceIs(r,"gl3d")?0:4))}}});var x8=oe((x8e,JH)=>{"use strict";JH.exports=function(r){var t=r.type,a=r.symmetric;if(t==="data"){var n=r.array||[];if(a)return function(u,f){var c=+n[f];return[c,c]};var i=r.arrayminus||[];return function(u,f){var c=+n[f],h=+i[f];return!isNaN(c)||!isNaN(h)?[h||0,c||0]:[NaN,NaN]}}else{var o=$H(t,r.value),l=$H(t,r.valueminus);return a||r.valueminus===void 0?function(u){var f=o(u);return[f,f]}:function(u){return[l(u),o(u)]}}};function $H(e,r){if(e==="percent")return function(t){return Math.abs(t*r/100)};if(e==="constant")return function(){return Math.abs(r)};if(e==="sqrt")return function(t){return Math.sqrt(Math.abs(t))}}});var eO=oe((w8e,QH)=>{"use strict";var w8=Qt(),dpe=_t(),A8=Ga(),ppe=pr(),mpe=x8();QH.exports=function(r){for(var t=r.calcdata,a=0;a{"use strict";var rO=Lt(),$0=Qt(),gpe=ha(),ype=Ti();tO.exports=function(r,t,a,n){var i,o=a.xaxis,l=a.yaxis,s=n&&n.duration>0,u=r._context.staticPlot;t.each(function(f){var c=f[0].trace,h=c.error_x||{},d=c.error_y||{},p;c.ids&&(p=function(C){return C.id});var m=ype.hasMarkers(c)&&c.marker.maxdisplayed>0;!d.visible&&!h.visible&&(f=[]);var b=rO.select(this).selectAll("g.errorbar").data(f,p);if(b.exit().remove(),!!f.length){h.visible||b.selectAll("path.xerror").remove(),d.visible||b.selectAll("path.yerror").remove(),b.style("opacity",1);var y=b.enter().append("g").classed("errorbar",!0);s&&y.style("opacity",0).transition().duration(n.duration).style("opacity",1),gpe.setClipUrl(b,a.layerClipId,r),b.each(function(C){var x=rO.select(this),_=bpe(C,o,l);if(!(m&&!C.vis)){var A,k=x.select("path.yerror");if(d.visible&&$0(_.x)&&$0(_.yh)&&$0(_.ys)){var M=d.width;A="M"+(_.x-M)+","+_.yh+"h"+2*M+"m-"+M+",0V"+_.ys,_.noYS||(A+="m-"+M+",0h"+2*M),i=!k.size(),i?k=x.append("path").style("vector-effect",u?"none":"non-scaling-stroke").classed("yerror",!0):s&&(k=k.transition().duration(n.duration).ease(n.easing)),k.attr("d",A)}else k.remove();var E=x.select("path.xerror");if(h.visible&&$0(_.y)&&$0(_.xh)&&$0(_.xs)){var P=(h.copy_ystyle?d:h).width;A="M"+_.xh+","+(_.y-P)+"v"+2*P+"m0,-"+P+"H"+_.xs,_.noXS||(A+="m0,-"+P+"v"+2*P),i=!E.size(),i?E=x.append("path").style("vector-effect",u?"none":"non-scaling-stroke").classed("xerror",!0):s&&(E=E.transition().duration(n.duration).ease(n.easing)),E.attr("d",A)}else E.remove()}})}})};function bpe(e,r,t){var a={x:r.c2p(e.x),y:t.c2p(e.y)};return e.yh!==void 0&&(a.yh=t.c2p(e.yh),a.ys=t.c2p(e.ys),$0(a.ys)||(a.noYS=!0,a.ys=t.c2p(e.ys,!0))),e.xh!==void 0&&(a.xh=r.c2p(e.xh),a.xs=r.c2p(e.xs),$0(a.xs)||(a.noXS=!0,a.xs=r.c2p(e.xs,!0))),a}});var oO=oe((M8e,iO)=>{"use strict";var _pe=Lt(),nO=Nt();iO.exports=function(r){r.each(function(t){var a=t[0].trace,n=a.error_y||{},i=a.error_x||{},o=_pe.select(this);o.selectAll("path.yerror").style("stroke-width",n.thickness+"px").call(nO.stroke,n.color),i.copy_ystyle&&(i=n),o.selectAll("path.xerror").style("stroke-width",i.thickness+"px").call(nO.stroke,i.color)})}});var uO=oe((T8e,sO)=>{"use strict";var Qh=pr(),lO=Zo().overrideAll,ed=_8(),Lc={error_x:Qh.extendFlat({},ed),error_y:Qh.extendFlat({},ed)};delete Lc.error_x.copy_zstyle;delete Lc.error_y.copy_zstyle;delete Lc.error_y.copy_ystyle;var rd={error_x:Qh.extendFlat({},ed),error_y:Qh.extendFlat({},ed),error_z:Qh.extendFlat({},ed)};delete rd.error_x.copy_ystyle;delete rd.error_y.copy_ystyle;delete rd.error_z.copy_ystyle;delete rd.error_z.copy_zstyle;sO.exports={moduleType:"component",name:"errorbars",schema:{traces:{scatter:Lc,bar:Lc,histogram:Lc,scatter3d:lO(rd,"calc","nested"),scattergl:lO(Lc,"calc","nested")}},supplyDefaults:ZH(),calc:eO(),makeComputeError:x8(),plot:aO(),style:oO(),hoverInfo:xpe};function xpe(e,r,t){(r.error_y||{}).visible&&(t.yerr=e.yh-e.y,r.error_y.symmetric||(t.yerrneg=e.y-e.ys)),(r.error_x||{}).visible&&(t.xerr=e.xh-e.x,r.error_x.symmetric||(t.xerrneg=e.x-e.xs))}});var fO={};Ua(fO,{cn:()=>wpe});var wpe,cO=Oa(()=>{"use strict";wpe={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"}});var bO=oe((k8e,yO)=>{"use strict";var J0=Lt(),U3=Ln(),vO=_t(),Xu=Ga(),O3=el(),hl=pr(),ns=hl.strTranslate,gO=Dn().extendFlat,M8=z0(),as=ha(),D2=Nt(),Ape=Ov(),Mpe=vi(),Tpe=Es().flipScale,kpe=L9(),Cpe=q9(),Spe=Yl(),k8=(ci(),xr(fi)),hO=k8.LINE_SPACING,dO=k8.FROM_TL,pO=k8.FROM_BR,Va=(cO(),xr(fO)).cn;function Dpe(e){var r=e._fullLayout,t=r._infolayer.selectAll("g."+Va.colorbar).data(Fpe(e),function(a){return a._id});t.enter().append("g").attr("class",function(a){return a._id}).classed(Va.colorbar,!0),t.each(function(a){var n=J0.select(this);hl.ensureSingle(n,"rect",Va.cbbg),hl.ensureSingle(n,"g",Va.cbfills),hl.ensureSingle(n,"g",Va.cblines),hl.ensureSingle(n,"g",Va.cbaxis,function(o){o.classed(Va.crisp,!0)}),hl.ensureSingle(n,"g",Va.cbtitleunshift,function(o){o.append("g").classed(Va.cbtitle,!0)}),hl.ensureSingle(n,"rect",Va.cboutline);var i=Epe(n,a,e);i&&i.then&&(e._promises||[]).push(i),e._context.edits.colorbarPosition&&Lpe(n,a,e)}),t.exit().each(function(a){U3.autoMargin(e,a._id)}).remove(),t.order()}function Fpe(e){var r=e._fullLayout,t=e.calcdata,a=[],n,i,o,l;function s(x){return gO(x,{_fillcolor:null,_line:{color:null,width:null,dash:null},_levels:{start:null,end:null,size:null},_filllevels:null,_fillgradient:null,_zrange:null})}function u(){typeof l.calc=="function"?l.calc(e,o,n):(n._fillgradient=i.reversescale?Tpe(i.colorscale):i.colorscale,n._zrange=[i[l.min],i[l.max]])}for(var f=0;f[Math.min(e[0]+r,e[1]),e[1]],mO=(e,r)=>[e[0],Math.max(e[1]-r,e[0])];function Epe(e,r,t){var a=r.orientation==="v",n=r.len,i=r.lenmode,o=r.thickness,l=r.thicknessmode,s=r.outlinewidth,u=r.borderwidth,f=r.bgcolor,c=r.xanchor,h=r.yanchor,d=r.xpad,p=r.ypad,m=r.x,b=a?r.y:1-r.y,y=r.yref==="paper",C=r.xref==="paper",x=t._fullLayout,_=x._size,A=r._fillcolor,k=r._line,M=r.title,E=M.side,P=r._zrange||J0.extent((typeof A=="function"?A:k.color).domain()),z=typeof k.color=="function"?k.color:function(){return k.color},I=typeof A=="function"?A:function(){return A},V=r._levels,H=qpe(t,r,P),X=H.fill,N=H.line,Q=Math.round(o*(l==="fraction"?a?_.w:_.h:1)),ee=Q/(a?_.w:_.h),re=Math.round(n*(i==="fraction"?a?_.h:_.w:1)),ae=re/(a?_.h:_.w),ie=C?_.w:t._fullLayout.width,le=y?_.h:t._fullLayout.height,xe=Math.round(a?m*ie+d:b*le+p),De={center:.5,right:1}[c]||0,Ye={top:1,middle:.5}[h]||0,Ee=a?m-De*ee:b-Ye*ee,ke=a?b-Ye*ae:m-De*ae,je=Math.round(a?le*(1-ke):ie*ke);r._lenFrac=ae,r._thickFrac=ee,r._uFrac=Ee,r._vFrac=ke;var W=r._axis=Ppe(t,r,P);W.position=ee+(a?m+d/_.w:b+p/_.h);var se=["top","bottom"].indexOf(E)!==-1;if(a&&se&&(W.title.side=E,W.titlex=m+d/_.w,W.titley=ke+(M.side==="top"?ae-p/_.h:p/_.h)),!a&&!se&&(W.title.side=E,W.titley=b+p/_.h,W.titlex=ke+d/_.w),k.color&&r.tickmode==="auto"){W.tickmode="linear",W.tick0=V.start;var he=V.size,K=hl.constrain(re/50,4,15)+1,J=(P[1]-P[0])/((r.nticks||K)*he);if(J>1){var fe=Math.pow(10,Math.floor(Math.log(J)/Math.LN10));he*=fe*hl.roundUp(J/fe,[2,5,10]),(Math.abs(V.start)/V.size+1e-6)%1<2e-6&&(W.tick0=0)}W.dtick=he}var be=a?p/_.h:d/_.w;W.domain=mO(T8([ke,ke+ae],be),be),W.setScale(),e.attr("transform",ns(Math.round(_.l),Math.round(_.t)));var Ne=e.select("."+Va.cbtitleunshift).attr("transform",ns(-Math.round(_.l),-Math.round(_.t))),Ze=W.ticklabelposition,er=W.title.font.size,Je=e.select("."+Va.cbaxis),tr,ze=0,lr=0;function hr(Te,Ue){var _r={propContainer:W,propName:r._propPrefix+"title.text",traceIndex:r._traceIndex,_meta:r._meta,placeholder:x._dfltTitle.colorbar,containerGroup:e.select("."+Va.cbtitle)},Pr=Te.charAt(0)==="h"?Te.slice(1):"h"+Te;e.selectAll("."+Pr+",."+Pr+"-math-group").remove(),Ape.draw(t,Te,gO(_r,Ue||{}))}function Ar(){if(a&&se||!a&&!se){var Te,Ue;E==="top"&&(Te=d+_.l+ie*m,Ue=p+_.t+le*(1-ke-ae)+3+er*.75),E==="bottom"&&(Te=d+_.l+ie*m,Ue=p+_.t+le*(1-ke)-3-er*.25),E==="right"&&(Ue=p+_.t+le*b+3+er*.75,Te=d+_.l+ie*ke),hr(W._id+"title",{attributes:{x:Te,y:Ue,"text-anchor":a?"start":"middle"}})}}function Qe(){if(a&&!se||!a&&se){var Te=W.position||0,Ue=W._offset+W._length/2,_r,Pr;if(E==="right")Pr=Ue,_r=_.l+ie*Te+10+er*(W.showticklabels?1:.5);else if(_r=Ue,E==="bottom"&&(Pr=_.t+le*Te+10+(Ze.indexOf("inside")===-1?W.tickfont.size:0)+(W.ticks!=="inside"&&r.ticklen||0)),E==="top"){var Nr=M.text.split("
").length;Pr=_.t+le*Te+10-Q-hO*er*Nr}hr((a?"h":"v")+W._id+"title",{avoid:{selection:J0.select(t).selectAll("g."+W._id+"tick"),side:E,offsetTop:a?0:_.t,offsetLeft:a?_.l:0,maxShift:a?x.width:x.height},attributes:{x:_r,y:Pr,"text-anchor":"middle"},transform:{rotate:a?-90:0,offset:0}})}}function mr(){if(!a&&!se||a&&se){var Te=e.select("."+Va.cbtitle),Ue=Te.select("text"),_r=[-s/2,s/2],Pr=Te.select(".h"+W._id+"title-math-group").node(),Nr=15.6;Ue.node()&&(Nr=parseInt(Ue.node().style.fontSize,10)*hO);var Ce;if(Pr?(Ce=as.bBox(Pr),lr=Ce.width,ze=Ce.height,ze>Nr&&(_r[1]-=(ze-Nr)/2)):Ue.node()&&!Ue.classed(Va.jsPlaceholder)&&(Ce=as.bBox(Ue.node()),lr=Ce.width,ze=Ce.height),a){if(ze){if(ze+=5,E==="top")W.domain=mO(W.domain,ze/_.h),_r[1]*=-1;else{W.domain=T8(W.domain,ze/_.h);var He=Mpe.lineCount(Ue);_r[1]+=(1-He)*Nr}Te.attr("transform",ns(_r[0],_r[1])),W.setScale()}}else lr&&(E==="right"&&(W.domain=T8(W.domain,(lr+er/2)/_.w)),Te.attr("transform",ns(_r[0],_r[1])),W.setScale())}e.selectAll("."+Va.cbfills+",."+Va.cblines).attr("transform",a?ns(0,Math.round(_.h*(1-W.domain[1]))):ns(Math.round(_.w*W.domain[0]),0)),Je.attr("transform",a?ns(0,Math.round(-_.t)):ns(Math.round(-_.l),0));var cr=e.select("."+Va.cbfills).selectAll("rect."+Va.cbfill).attr("style","").data(X);cr.enter().append("rect").classed(Va.cbfill,!0).attr("style",""),cr.exit().remove();var Mr=P.map(W.c2p).map(Math.round).sort(function(et,nr){return et-nr});cr.each(function(et,nr){var Cr=[nr===0?P[0]:(X[nr]+X[nr-1])/2,nr===X.length-1?P[1]:(X[nr]+X[nr+1])/2].map(W.c2p).map(Math.round);a&&(Cr[1]=hl.constrain(Cr[1]+(Cr[1]>Cr[0])?1:-1,Mr[0],Mr[1]));var ar=J0.select(this).attr(a?"x":"y",xe).attr(a?"y":"x",J0.min(Cr)).attr(a?"width":"height",Math.max(Q,2)).attr(a?"height":"width",Math.max(J0.max(Cr)-J0.min(Cr),2));if(r._fillgradient)as.gradient(ar,t,r._id,a?"vertical":"horizontalreversed",r._fillgradient,"fill");else{var Fr=I(et).replace("e-","");ar.attr("fill",D2.hexString(Fr))}});var vr=e.select("."+Va.cblines).selectAll("path."+Va.cbline).data(k.color&&k.width?N:[]);vr.enter().append("path").classed(Va.cbline,!0),vr.exit().remove(),vr.each(function(et){var nr=xe,Cr=Math.round(W.c2p(et))+k.width/2%1;J0.select(this).attr("d","M"+(a?nr+","+Cr:Cr+","+nr)+(a?"h":"v")+Q).call(as.lineGroupStyle,k.width,z(et),k.dash)}),Je.selectAll("g."+W._id+"tick,path").remove();var kr=xe+Q+(s||0)/2-(r.ticks==="outside"?1:0),Er=Xu.calcTicks(W),jr=Xu.getTickSigns(W)[2];return Xu.drawTicks(t,W,{vals:W.ticks==="inside"?Xu.clipEnds(W,Er):Er,layer:Je,path:Xu.makeTickPath(W,kr,jr),transFn:Xu.makeTransTickFn(W)}),Xu.drawLabels(t,W,{vals:Er,layer:Je,transFn:Xu.makeTransTickLabelFn(W),labelFns:Xu.makeLabelFns(W,kr)})}function qr(){var Te,Ue=Q+s/2;Ze.indexOf("inside")===-1&&(Te=as.bBox(Je.node()),Ue+=a?Te.width:Te.height),tr=Ne.select("text");var _r=0,Pr=a&&E==="top",Nr=!a&&E==="right",Ce=0;if(tr.node()&&!tr.classed(Va.jsPlaceholder)){var He,cr=Ne.select(".h"+W._id+"title-math-group").node();cr&&(a&&se||!a&&!se)?(Te=as.bBox(cr),_r=Te.width,He=Te.height):(Te=as.bBox(Ne.node()),_r=Te.right-_.l-(a?xe:je),He=Te.bottom-_.t-(a?je:xe),!a&&E==="top"&&(Ue+=Te.height,Ce=Te.height)),Nr&&(tr.attr("transform",ns(_r/2+er/2,0)),_r*=2),Ue=Math.max(Ue,a?_r:He)}var Mr=(a?d:p)*2+Ue+u+s/2,vr=0;!a&&M.text&&h==="bottom"&&b<=0&&(vr=Mr/2,Mr+=vr,Ce+=vr),x._hColorbarMoveTitle=vr,x._hColorbarMoveCBTitle=Ce;var kr=u+s,Er=(a?xe:je)-kr/2-(a?d:0),jr=(a?je:xe)-(a?re:p+Ce-vr);e.select("."+Va.cbbg).attr("x",Er).attr("y",jr).attr(a?"width":"height",Math.max(Mr-vr,2)).attr(a?"height":"width",Math.max(re+kr,2)).call(D2.fill,f).call(D2.stroke,r.bordercolor).style("stroke-width",u);var et=Nr?Math.max(_r-10,0):0;e.selectAll("."+Va.cboutline).attr("x",(a?xe:je+d)+et).attr("y",(a?je+p-re:xe)+(Pr?ze:0)).attr(a?"width":"height",Math.max(Q,2)).attr(a?"height":"width",Math.max(re-(a?2*p+ze:2*d+et),2)).call(D2.stroke,r.outlinecolor).style({fill:"none","stroke-width":s});var nr=a?De*Mr:0,Cr=a?0:(1-Ye)*Mr-Ce;if(nr=C?_.l-nr:-nr,Cr=y?_.t-Cr:-Cr,e.attr("transform",ns(nr,Cr)),!a&&(u||D2.opacity(f)&&!D2.equals(x.paper_bgcolor,f))){var ar=Je.selectAll("text"),Fr=ar[0].length,Wr=e.select("."+Va.cbbg).node(),Br=as.bBox(Wr),Zr=as.getTranslate(e),Ae=2;ar.each(function(la,Pt){var Ta=0,pa=Fr-1;if(Pt===Ta||Pt===pa){var Xa=as.bBox(this),hn=as.getTranslate(this),ja;if(Pt===pa){var Fa=Xa.right+hn.x,Rr=Br.right+Zr.x+je-u-Ae+m;ja=Rr-Fa,ja>0&&(ja=0)}else if(Pt===Ta){var Vt=Xa.left+hn.x,Et=Br.left+Zr.x+je+u+Ae;ja=Et-Vt,ja<0&&(ja=0)}ja&&(Fr<3?this.setAttribute("transform","translate("+ja+",0) "+this.getAttribute("transform")):this.setAttribute("visibility","hidden"))}})}var Be={},or=dO[c],dr=pO[c],Dt=dO[h],Wt=pO[h],ba=Mr-Q;a?(i==="pixels"?(Be.y=b,Be.t=re*Dt,Be.b=re*Wt):(Be.t=Be.b=0,Be.yt=b+n*Dt,Be.yb=b-n*Wt),l==="pixels"?(Be.x=m,Be.l=Mr*or,Be.r=Mr*dr):(Be.l=ba*or,Be.r=ba*dr,Be.xl=m-o*or,Be.xr=m+o*dr)):(i==="pixels"?(Be.x=m,Be.l=re*or,Be.r=re*dr):(Be.l=Be.r=0,Be.xl=m+n*or,Be.xr=m-n*dr),l==="pixels"?(Be.y=1-b,Be.t=Mr*Dt,Be.b=Mr*Wt):(Be.t=ba*Dt,Be.b=ba*Wt,Be.yt=b-o*Dt,Be.yb=b+o*Wt));var _a=r.y<.5?"b":"t",Xt=r.x<.5?"l":"r";t._fullLayout._reservedMargin[r._id]={};var Ht={r:x.width-Er-nr,l:Er+Be.r,b:x.height-jr-Cr,t:jr+Be.b};C&&y?U3.autoMargin(t,r._id,Be):C?t._fullLayout._reservedMargin[r._id][_a]=Ht[_a]:y||a?t._fullLayout._reservedMargin[r._id][Xt]=Ht[Xt]:t._fullLayout._reservedMargin[r._id][_a]=Ht[_a]}return hl.syncOrAsync([U3.previousPromises,Ar,mr,Qe,U3.previousPromises,qr],t)}function Lpe(e,r,t){var a=r.orientation==="v",n=t._fullLayout,i=n._size,o,l,s;O3.init({element:e.node(),gd:t,prepFn:function(){o=e.attr("transform"),M8(e)},moveFn:function(u,f){e.attr("transform",o+ns(u,f)),l=O3.align((a?r._uFrac:r._vFrac)+u/i.w,a?r._thickFrac:r._lenFrac,0,1,r.xanchor),s=O3.align((a?r._vFrac:1-r._uFrac)-f/i.h,a?r._lenFrac:r._thickFrac,0,1,r.yanchor);var c=O3.getCursor(l,s,r.xanchor,r.yanchor);M8(e,c)},doneFn:function(){if(M8(e),l!==void 0&&s!==void 0){var u={};u[r._propPrefix+"x"]=l,u[r._propPrefix+"y"]=s,r._traceIndex!==void 0?vO.call("_guiRestyle",t,u,r._traceIndex):vO.call("_guiRelayout",t,u)}}})}function qpe(e,r,t){var a=r._levels,n=[],i=[],o,l,s=a.end+a.size/100,u=a.size,f=1.001*t[0]-.001*t[1],c=1.001*t[1]-.001*t[0];for(l=0;l<1e5&&(o=a.start+l*u,!(u>0?o>=s:o<=s));l++)o>f&&o0?o>=s:o<=s));l++)o>t[0]&&o{"use strict";_O.exports={moduleType:"component",name:"colorbar",attributes:jp(),supplyDefaults:M6(),draw:bO().draw,hasColorbar:h6()}});var AO=oe((S8e,wO)=>{"use strict";wO.exports={moduleType:"component",name:"legend",layoutAttributes:_b(),supplyLayoutDefaults:wb(),draw:Nb(),style:qb()}});var TO=oe((D8e,MO)=>{"use strict";MO.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"}}});var CO=oe((F8e,kO)=>{"use strict";kO.exports={moduleType:"locale",name:"en-US",dictionary:{"Click to enter Colorscale title":"Click to enter Colorscale title"},format:{date:"%m/%d/%Y"}}});var S8=oe((E8e,EO)=>{"use strict";var Rpe=_t(),FO=pr(),C8=FO.extendFlat,SO=FO.extendDeep;function DO(e){var r;switch(e){case"themes__thumb":r={autosize:!0,width:150,height:150,title:{text:""},showlegend:!1,margin:{l:5,r:5,t:5,b:5,pad:0},annotations:[]};break;case"thumbnail":r={title:{text:""},showlegend:!1,borderwidth:0,bordercolor:"",margin:{l:1,r:1,t:1,b:1,pad:0},annotations:[]};break;default:r={}}return r}function zpe(e){var r=["xaxis","yaxis","zaxis"];return r.indexOf(e.slice(0,5))>-1}EO.exports=function(r,t){var a,n=r.data,i=r.layout,o=SO([],n),l=SO({},i,DO(t.tileClass)),s=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 u=Object.keys(l);for(a=0;a{"use strict";var Npe=Rp().EventEmitter,Bpe=_t(),Ipe=pr(),LO=xc(),Hpe=S8(),Ope=Vg(),Upe=Xg();function Gpe(e,r){var t=new Npe,a=Hpe(e,{format:"png"}),n=a.gd;n.style.position="absolute",n.style.left="-5000px",document.body.appendChild(n);function i(){var l=LO.getDelay(n._fullLayout);setTimeout(function(){var s=Ope(n),u=document.createElement("canvas");u.id=Ipe.randstr(),t=Upe({format:r.format,width:n._fullLayout.width,height:n._fullLayout.height,canvas:u,emitter:t,svg:s}),t.clean=function(){n&&document.body.removeChild(n)}},l)}var o=LO.getRedrawFunc(n);return Bpe.call("_doPlot",n,a.data,a.layout,a.config).then(o).then(i).catch(function(l){t.emit("error",l)}),t}qO.exports=Gpe});var NO=oe((q8e,zO)=>{"use strict";var RO=xc(),Ype={getDelay:RO.getDelay,getRedrawFunc:RO.getRedrawFunc,clone:S8(),toSVG:Vg(),svgToImg:Xg(),toImage:PO(),downloadImage:a9()};zO.exports=Ype});var IO=oe(ju=>{"use strict";ju.version=K2().version;Y_();Dk();var Vpe=_t(),td=ju.register=Vpe.register,F8=GR(),BO=Object.keys(F8);for(G3=0;G3{"use strict";HO.exports=IO()});var ad=oe((z8e,XO)=>{"use strict";var{hovertemplateAttrs:Xpe,texttemplateAttrs:jpe,templatefallbackAttrs:UO}=Vf(),Wpe=q7(),Ws=_c(),Zpe=Wo(),GO=Y1(),$pe=Ds().dash,qc=Dn().extendFlat,Jpe=Zo().overrideAll,dl=Ws.marker,YO=Ws.line,VO=dl.line;XO.exports=Jpe({lon:{valType:"data_array"},lat:{valType:"data_array"},locations:{valType:"data_array"},locationmode:{valType:"enumerated",values:["ISO-3","USA-states","country names","geojson-id"],dflt:"ISO-3"},geojson:{valType:"any",editType:"calc"},featureidkey:{valType:"string",editType:"calc",dflt:"id"},mode:qc({},Ws.mode,{dflt:"markers"}),text:qc({},Ws.text,{}),texttemplate:jpe({editType:"plot"},{keys:["lat","lon","location","text"]}),texttemplatefallback:UO({editType:"plot"}),hovertext:qc({},Ws.hovertext,{}),textfont:Ws.textfont,textposition:Ws.textposition,line:{color:YO.color,width:YO.width,dash:$pe},connectgaps:Ws.connectgaps,marker:qc({symbol:dl.symbol,opacity:dl.opacity,angle:dl.angle,angleref:qc({},dl.angleref,{values:["previous","up","north"]}),standoff:dl.standoff,size:dl.size,sizeref:dl.sizeref,sizemin:dl.sizemin,sizemode:dl.sizemode,colorbar:dl.colorbar,line:qc({width:VO.width,dash:VO.dash},GO("marker.line")),gradient:dl.gradient},GO("marker")),fill:{valType:"enumerated",values:["none","toself"],dflt:"none"},fillcolor:Wpe(),selected:Ws.selected,unselected:Ws.unselected,hoverinfo:qc({},Zpe.hoverinfo,{flags:["lon","lat","location","text","name"]}),hovertemplate:Xpe(),hovertemplatefallback:UO()},"calc","nested")});var WO=oe((N8e,jO)=>{"use strict";var E8=pr(),L8=Ti(),Kpe=o9(),Qpe=l9(),eme=s9(),rme=u9(),tme=ad();jO.exports=function(r,t,a,n){function i(d,p){return E8.coerce(r,t,tme,d,p)}var o=i("locations"),l;if(o&&o.length){var s=i("geojson"),u;(typeof s=="string"&&s!==""||E8.isPlainObject(s))&&(u="geojson-id");var f=i("locationmode",u);f==="geojson-id"&&i("featureidkey"),l=o.length}else{var c=i("lon")||[],h=i("lat")||[];l=Math.min(c.length,h.length)}if(!l){t.visible=!1;return}t._length=l,i("text"),i("hovertext"),i("hovertemplate"),i("hovertemplatefallback"),i("mode"),L8.hasMarkers(t)&&Kpe(r,t,a,n,i,{gradient:!0}),L8.hasLines(t)&&(Qpe(r,t,a,n,i),i("connectgaps")),L8.hasText(t)&&(i("texttemplate"),i("texttemplatefallback"),eme(r,t,n,i)),i("fill"),t.fill!=="none"&&rme(r,t,a,i),E8.coerceSelectionMarkerOpacity(t,i)}});var JO=oe((B8e,$O)=>{"use strict";var ZO=Ga();$O.exports=function(r,t,a){var n={},i=a[t.geo]._subplot,o=i.mockAxis,l=r.lonlat;return n.lonLabel=ZO.tickText(o,o.c2l(l[0]),!0).text,n.latLabel=ZO.tickText(o,o.c2l(l[1]),!0).text,n}});var tU=oe((I8e,rU)=>{"use strict";var q8=Qt(),KO=(Za(),xr(nn)).BADNUM,ame=v9(),nme=Nh(),ime=e3(),ome=pr().isArrayOrTypedArray,QO=pr()._;function eU(e){return e&&typeof e=="string"}rU.exports=function(r,t){var a=ome(t.locations),n=a?t.locations.length:t._length,i=new Array(n),o;t.geojson?o=function(h){return eU(h)||q8(h)}:o=eU;for(var l=0;lsme,clipPad:()=>hme,fillLayers:()=>bme,fitboundsIncompatible:()=>cme,landColor:()=>pme,lataxisSpan:()=>fme,layerNameToAdjective:()=>Ame,layers:()=>xme,layersForChoropleth:()=>wme,lineLayers:()=>_me,locationmodeToLayer:()=>gme,lonaxisSpan:()=>ume,precision:()=>dme,projNames:()=>lme,scopeDefaults:()=>vme,sphereSVG:()=>yme,waterColor:()=>mme});var lme,sme,ume,fme,cme,vme,hme,dme,pme,mme,gme,yme,bme,_me,xme,wme,Ame,id=Oa(()=>{"use strict";lme={airy:"airy",aitoff:"aitoff","albers usa":"albersUsa",albers:"albers",august:"august","azimuthal equal area":"azimuthalEqualArea","azimuthal equidistant":"azimuthalEquidistant",baker:"baker",bertin1953:"bertin1953",boggs:"boggs",bonne:"bonne",bottomley:"bottomley",bromley:"bromley",collignon:"collignon","conic conformal":"conicConformal","conic equal area":"conicEqualArea","conic equidistant":"conicEquidistant",craig:"craig",craster:"craster","cylindrical equal area":"cylindricalEqualArea","cylindrical stereographic":"cylindricalStereographic",eckert1:"eckert1",eckert2:"eckert2",eckert3:"eckert3",eckert4:"eckert4",eckert5:"eckert5",eckert6:"eckert6",eisenlohr:"eisenlohr","equal earth":"equalEarth",equirectangular:"equirectangular",fahey:"fahey","foucaut sinusoidal":"foucautSinusoidal",foucaut:"foucaut",ginzburg4:"ginzburg4",ginzburg5:"ginzburg5",ginzburg6:"ginzburg6",ginzburg8:"ginzburg8",ginzburg9:"ginzburg9",gnomonic:"gnomonic","gringorten quincuncial":"gringortenQuincuncial",gringorten:"gringorten",guyou:"guyou",hammer:"hammer",hill:"hill",homolosine:"homolosine",hufnagel:"hufnagel",hyperelliptical:"hyperelliptical",kavrayskiy7:"kavrayskiy7",lagrange:"lagrange",larrivee:"larrivee",laskowski:"laskowski",loximuthal:"loximuthal",mercator:"mercator",miller:"miller",mollweide:"mollweide","mt flat polar parabolic":"mtFlatPolarParabolic","mt flat polar quartic":"mtFlatPolarQuartic","mt flat polar sinusoidal":"mtFlatPolarSinusoidal","natural earth":"naturalEarth","natural earth1":"naturalEarth1","natural earth2":"naturalEarth2","nell hammer":"nellHammer",nicolosi:"nicolosi",orthographic:"orthographic",patterson:"patterson","peirce quincuncial":"peirceQuincuncial",polyconic:"polyconic","rectangular polyconic":"rectangularPolyconic",robinson:"robinson",satellite:"satellite","sinu mollweide":"sinuMollweide",sinusoidal:"sinusoidal",stereographic:"stereographic",times:"times","transverse mercator":"transverseMercator","van der grinten":"vanDerGrinten","van der grinten2":"vanDerGrinten2","van der grinten3":"vanDerGrinten3","van der grinten4":"vanDerGrinten4",wagner4:"wagner4",wagner6:"wagner6",wiechel:"wiechel","winkel tripel":"winkel3",winkel3:"winkel3"},sme=["lonaxis","lataxis"],ume={orthographic:180,"azimuthal equal area":360,"azimuthal equidistant":360,"conic conformal":180,gnomonic:160,stereographic:180,"transverse mercator":180,"*":360},fme={"conic conformal":150,stereographic:179.5,"*":180},cme=new Set(["albers usa","craig","peirce quincuncial","satellite"]),vme={world:{lonaxisRange:[-180,180],lataxisRange:[-90,90],projType:"equirectangular",projRotate:[0,0,0]},usa:{lonaxisRange:[-180,-50],lataxisRange:[15,80],projType:"albers usa"},europe:{lonaxisRange:[-30,60],lataxisRange:[30,85],projType:"conic conformal",projRotate:[15,0,0],projParallels:[0,60]},asia:{lonaxisRange:[22,160],lataxisRange:[-15,55],projType:"mercator",projRotate:[0,0,0]},africa:{lonaxisRange:[-30,60],lataxisRange:[-40,40],projType:"mercator",projRotate:[0,0,0]},"north america":{lonaxisRange:[-180,-45],lataxisRange:[5,85],projType:"conic conformal",projRotate:[-100,0,0],projParallels:[29.5,45.5]},"south america":{lonaxisRange:[-100,-30],lataxisRange:[-60,15],projType:"mercator",projRotate:[0,0,0]},antarctica:{lonaxisRange:[-180,180],lataxisRange:[-90,-60],projType:"equirectangular",projRotate:[0,0,0]},oceania:{lonaxisRange:[-180,180],lataxisRange:[-50,25],projType:"equirectangular",projRotate:[0,0,0]}},hme=.001,dme=.1,pme="#F0DC82",mme="#3399FF",gme={"ISO-3":"countries","USA-states":"subunits","country names":"countries"},yme={type:"Sphere"},bme={ocean:1,land:1,lakes:1},_me={subunits:1,countries:1,coastlines:1,rivers:1,frame:1},xme=["bg","ocean","land","lakes","subunits","countries","coastlines","rivers","lataxis","lonaxis","frame","backplot","frontplot"],wme=["bg","ocean","land","subunits","countries","coastlines","lataxis","lonaxis","frame","backplot","lakes","rivers","frontplot"],Ame={ocean:"ocean",land:"land",lakes:"lake",subunits:"subunit",countries:"country",coastlines:"coastline",rivers:"river",frame:"frame"}});var P8=oe((V3,aU)=>{(function(e,r){typeof V3=="object"&&typeof aU!="undefined"?r(V3):(e=e||self,r(e.topojson=e.topojson||{}))})(V3,function(e){"use strict";function r(x){return x}function t(x){if(x==null)return r;var _,A,k=x.scale[0],M=x.scale[1],E=x.translate[0],P=x.translate[1];return function(z,I){I||(_=A=0);var V=2,H=z.length,X=new Array(H);for(X[0]=(_+=z[0])*k+E,X[1]=(A+=z[1])*M+P;VE&&(E=V[0]),V[1]P&&(P=V[1])}function I(V){switch(V.type){case"GeometryCollection":V.geometries.forEach(I);break;case"Point":z(V.coordinates);break;case"MultiPoint":V.coordinates.forEach(z);break}}x.arcs.forEach(function(V){for(var H=-1,X=V.length,N;++HE&&(E=N[0]),N[1]P&&(P=N[1])});for(A in x.objects)I(x.objects[A]);return[k,M,E,P]}function n(x,_){for(var A,k=x.length,M=k-_;M<--k;)A=x[M],x[M++]=x[k],x[k]=A}function i(x,_){return typeof _=="string"&&(_=x.objects[_]),_.type==="GeometryCollection"?{type:"FeatureCollection",features:_.geometries.map(function(A){return o(x,A)})}:o(x,_)}function o(x,_){var A=_.id,k=_.bbox,M=_.properties==null?{}:_.properties,E=l(x,_);return A==null&&k==null?{type:"Feature",properties:M,geometry:E}:k==null?{type:"Feature",id:A,properties:M,geometry:E}:{type:"Feature",id:A,bbox:k,properties:M,geometry:E}}function l(x,_){var A=t(x.transform),k=x.arcs;function M(H,X){X.length&&X.pop();for(var N=k[H<0?~H:H],Q=0,ee=N.length;Q1)k=c(x,_,A);else for(M=0,k=new Array(E=x.arcs.length);M1)for(var X=1,N=z(V[0]),Q,ee;XN&&(ee=V[0],V[0]=V[X],V[X]=ee,N=Q);return V}).filter(function(I){return I.length>0})}}function m(x,_){for(var A=0,k=x.length;A>>1;x[M]<_?A=M+1:k=M}return A}function b(x){var _={},A=x.map(function(){return[]});function k(re,ae){re.forEach(function(ie){ie<0&&(ie=~ie);var le=_[ie];le?le.push(ae):_[ie]=[ae]})}function M(re,ae){re.forEach(function(ie){k(ie,ae)})}function E(re,ae){re.type==="GeometryCollection"?re.geometries.forEach(function(ie){E(ie,ae)}):re.type in P&&P[re.type](re.arcs,ae)}var P={LineString:k,MultiLineString:M,Polygon:M,MultiPolygon:function(re,ae){re.forEach(function(ie){M(ie,ae)})}};x.forEach(E);for(var z in _)for(var I=_[z],V=I.length,H=0;H=2))throw new Error("n must be \u22652");I=x.bbox||a(x);var A=I[0],k=I[1],M=I[2],E=I[3],P;_={scale:[M-A?(M-A)/(P-1):1,E-k?(E-k)/(P-1):1],translate:[A,k]}}else I=x.bbox;var z=y(_),I,V,H=x.objects,X={};function N(re){return z(re)}function Q(re){var ae;switch(re.type){case"GeometryCollection":ae={type:"GeometryCollection",geometries:re.geometries.map(Q)};break;case"Point":ae={type:"Point",coordinates:N(re.coordinates)};break;case"MultiPoint":ae={type:"MultiPoint",coordinates:re.coordinates.map(N)};break;default:return re}return re.id!=null&&(ae.id=re.id),re.bbox!=null&&(ae.bbox=re.bbox),re.properties!=null&&(ae.properties=re.properties),ae}function ee(re){var ae=0,ie=1,le=re.length,xe,De=new Array(le);for(De[0]=z(re[0],0);++ae{"use strict";var R8=nU.exports={},Mme=(id(),xr(nd)).locationmodeToLayer,Tme=P8().feature;R8.getTopojsonName=function(e){return[e.scope.replace(/ /g,"-"),"_",e.resolution.toString(),"m"].join("")};R8.getTopojsonPath=function(e,r){return e+=e.endsWith("/")?"":"/",`${e}${r}.json`};R8.getTopojsonFeatures=function(e,r){var t=Mme[e.locationmode],a=r.objects[t];return Tme(r,a).features}});var iU=oe(od=>{"use strict";var kme=(Za(),xr(nn)).BADNUM;od.calcTraceToLineCoords=function(e){for(var r=e[0].trace,t=r.connectgaps,a=[],n=[],i=0;i0&&(a.push(n),n=[])}return n.length>0&&a.push(n),a};od.makeLine=function(e){return e.length===1?{type:"LineString",coordinates:e[0]}:{type:"MultiLineString",coordinates:e}};od.makePolygon=function(e){if(e.length===1)return{type:"Polygon",coordinates:e};for(var r=new Array(e.length),t=0;t{"use strict";var N8=Object.defineProperty,Cme=Object.getOwnPropertyDescriptor,Sme=Object.getOwnPropertyNames,Dme=Object.prototype.hasOwnProperty,Fme=(e,r)=>{for(var t in r)N8(e,t,{get:r[t],enumerable:!0})},Eme=(e,r,t,a)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of Sme(r))!Dme.call(e,n)&&n!==t&&N8(e,n,{get:()=>r[n],enumerable:!(a=Cme(r,n))||a.enumerable});return e},Lme=e=>Eme(N8({},"__esModule",{value:!0}),e),oU={};Fme(oU,{COUNTRIES:()=>lU,byAlpha2:()=>zme,byAlpha3:()=>Rme,byM49:()=>Nme,createLookup:()=>sU,lookup:()=>qme,lookupAlpha3:()=>Pme,sanitize:()=>z8});uU.exports=Lme(oU);var lU=[{iso3:"ABW",iso2:"AW",m49:"533",name:"Aruba",aliases:["\u{1F1E6}\u{1F1FC}","country of aruba","land aruba","pais aruba"]},{iso3:"AFG",iso2:"AF",m49:"004",name:"Afghanistan",aliases:["\u{1F1E6}\u{1F1EB}","affghanistan","affghanisthan","affghaunistan","afghania","afghanisthan","afghaunistan","afghaunistaun","afgoniston","de afghanistan islami jumhuriyat","owganystan","\u0430\u0444\u0493\u043E\u043D\u0438\u0441\u0442\u043E\u043D","\u0623\u0641\u063A\u0627\u0646\u0633\u062A\u0627\u0646","\u0627\u0641\u063A\u0627\u0646\u0633\u062A\u0627\u0646","\u062F \u0627\u0641\u063A\u0627\u0646\u0633\u062A\u0627\u0646 \u0627\u0633\u0644\u0627\u0645\u06CC \u062C\u0645\u0647\u0648\u0631\u06CC\u062A"]},{iso3:"AGO",iso2:"AO",m49:"024",name:"Angola",aliases:["\u{1F1E6}\u{1F1F4}","republic of angola","republica de angola"]},{iso3:"AIA",iso2:"AI",m49:"660",name:"Anguilla",aliases:["\u{1F1E6}\u{1F1EE}","malliouhana"]},{iso3:"ALA",iso2:"AX",m49:"248",name:"\xC5land Islands",aliases:["\u{1F1E6}\u{1F1FD}","aaland","aaland islands","ahvenanmaa","aland","aland isles","aland region","alands lan","landskapet aland"]},{iso3:"ALB",iso2:"AL",m49:"008",name:"Albania",aliases:["\u{1F1E6}\u{1F1F1}","peoples republic of albania","peoples socialist republic of albania","republic of albania","republika e shqiperise","shqiperi","shqiperia","shqiperise","socialist republic of albania"]},{iso3:"AND",iso2:"AD",m49:"020",name:"Andorra",aliases:["\u{1F1E6}\u{1F1E9}","el pais dels pirineus","les valls dandorra","principality of andorra","principality of the valleys of andorra","principat dandorra","valls dandorra"]},{iso3:"ARE",iso2:"AE",m49:"784",name:"United Arab Emirates",aliases:["\u{1F1E6}\u{1F1EA}","emirates","uae","\u0627\u0644\u0625\u0645\u0627\u0631\u0627\u062A","\u0627\u0644\u0625\u0645\u0627\u0631\u0627\u062A \u0627\u0644\u0639\u0631\u0628\u064A\u0629 \u0627\u0644\u0645\u062A\u062D\u062F\u0629","\u0627\u0644\u0627\u0645\u0627\u0631\u0627\u062A","\u0627\u0644\u0627\u0645\u0627\u0631\u0627\u062A \u0627\u0644\u0639\u0631\u0628\u064A\u0629 \u0627\u0644\u0645\u062A\u062D\u062F\u0629","\u062F\u0648\u0644\u0629 \u0627\u0644\u0625\u0645\u0627\u0631\u0627\u062A \u0627\u0644\u0639\u0631\u0628\u064A\u0629 \u0627\u0644\u0645\u062A\u062D\u062F\u0629"]},{iso3:"ARG",iso2:"AR",m49:"032",name:"Argentina",aliases:["\u{1F1E6}\u{1F1F7}","argentine republic","nacion argentina","republic of argentina","republica argentina"]},{iso3:"ARM",iso2:"AM",m49:"051",name:"Armenia",aliases:["\u{1F1E6}\u{1F1F2}","hayastan","hayastani hanrapetutyun","republic of armenia","\u0570\u0561\u0575\u0561\u057D\u057F\u0561\u0576","\u0570\u0561\u0575\u0561\u057D\u057F\u0561\u0576\u056B \u0570\u0561\u0576\u0580\u0561\u057A\u0565\u057F\u0578\u0582\u0569\u0575\u0578\u0582\u0576","\u0570\u0561\u0575\u0584","\u0570\u0570"]},{iso3:"ASM",iso2:"AS",m49:"016",name:"American Samoa",aliases:["\u{1F1E6}\u{1F1F8}","amerika samoa","east samoa","samoa american","samoa united states","territory of american samoa","us samoa"]},{iso3:"ATA",iso2:"AQ",m49:"010",name:"Antarctica",aliases:["\u{1F1E6}\u{1F1F6}","antarctica treaty area"]},{iso3:"ATF",iso2:"TF",m49:"260",name:"French Southern Territories",aliases:["\u{1F1F9}\u{1F1EB}","taaf","terres australes et antarctiques francaises","terres australes francaises","terres australes francaises les","territoire des terres australes et antarctiques francaises"]},{iso3:"ATG",iso2:"AG",m49:"028",name:"Antigua and Barbuda",aliases:["\u{1F1E6}\u{1F1EC}","antigua","antigua barbuda","barbuda"]},{iso3:"AUS",iso2:"AU",m49:"036",name:"Australia",aliases:["\u{1F1E6}\u{1F1FA}","commonwealth of australia","new holland","new hollandia","nova hollandia"]},{iso3:"AUT",iso2:"AT",m49:"040",name:"Austria",aliases:["\u{1F1E6}\u{1F1F9}","osterreich","republic of austria","republik osterreich","zweite republik"]},{iso3:"AZE",iso2:"AZ",m49:"031",name:"Azerbaijan",aliases:["\u{1F1E6}\u{1F1FF}","az\u0259rbaycan","az\u0259rbaycan respublikas\u0131","republic of azerbaijan"]},{iso3:"BDI",iso2:"BI",m49:"108",name:"Burundi",aliases:["\u{1F1E7}\u{1F1EE}","gouvernement du burundi","la republique du burundi","republic of burundi","republika yu burundi","republika yuburundi","republique du burundi","repuburika yuburundi","uburundi"]},{iso3:"BEL",iso2:"BE",m49:"056",name:"Belgium",aliases:["\u{1F1E7}\u{1F1EA}","belg","belgie","belgien","belgique","kingdom of belgium","konigreich belgien","koninkrijk belgie","royaume de belgique"]},{iso3:"BEN",iso2:"BJ",m49:"204",name:"Benin",aliases:["\u{1F1E7}\u{1F1EF}","dahomey","la republique du benin","republic of benin","republique du benin"]},{iso3:"BES",iso2:"BQ",m49:"535",name:"Bonaire, Sint Eustatius and Saba",aliases:["\u{1F1E7}\u{1F1F6}","bes eilanden","bes islands","bijzondere gemeente","bonaire","bonaire saint eustatius and saba","bonaire sint eustatius en saba","caraibisch nederland","caribbean netherlands","caribisch nederland","hulanda karibense","islanan bes","netherlands antilles","saba","sint eustatius"]},{iso3:"BFA",iso2:"BF",m49:"854",name:"Burkina Faso",aliases:["\u{1F1E7}\u{1F1EB}","republic of burkina faso","republic of upper volta"]},{iso3:"BGD",iso2:"BD",m49:"050",name:"Bangladesh",aliases:["\u{1F1E7}\u{1F1E9}","bangla desh","east pakistan","gonaoprojatontri bangladesh","peoples republic of bangladesh","\u0997\u09A3\u09AA\u09CD\u09B0\u099C\u09BE\u09A4\u09A8\u09CD\u09A4\u09CD\u09B0\u09C0 \u09AC\u09BE\u0982\u09B2\u09BE\u09A6\u09C7\u09B6","\u09AC\u09BE\u0982\u09B2\u09BE \u09A6\u09C7\u09B6","\u09AC\u09BE\u0982\u09B2\u09BE\u09A6\u09C7\u09B6","\u09AC\u09BF\u09A1\u09BF"]},{iso3:"BGR",iso2:"BG",m49:"100",name:"Bulgaria",aliases:["\u{1F1E7}\u{1F1EC}","bulgarian republic","republic of bulgaria","republika bulgaria","republika bulgariya","\u0431\u0433","\u0431\u044A\u043B\u0433\u0430\u0440\u0438\u044F","\u0440\u0435\u043F\u0443\u0431\u043B\u0438\u043A\u0430 \u0431\u044A\u043B\u0433\u0430\u0440\u0438\u044F"]},{iso3:"BHR",iso2:"BH",m49:"048",name:"Bahrain",aliases:["\u{1F1E7}\u{1F1ED}","bahrein islands","kingdom of bahrain","\u0627\u0644\u0628\u062D\u0631\u064A\u0646","\u062F\u0648\u0644\u0629 \u0627\u0644\u0628\u062D\u0631\u064A\u0646","\u0645\u0645\u0644\u0643\u0629 \u0627\u0644\u0628\u062D\u0631\u064A\u0646"]},{iso3:"BHS",iso2:"BS",m49:"044",name:"Bahamas",aliases:["\u{1F1E7}\u{1F1F8}","bahama islands","bahamas the","commonwealth of the bahamas"]},{iso3:"BIH",iso2:"BA",m49:"070",name:"Bosnia and Herzegovina",aliases:["\u{1F1E7}\u{1F1E6}","bosna","bosna i hercegovina","bosnia","bosnia and hercegovina","bosnia herzegovina","hercegovina","herzegovina","\u0431\u0438\u0445","\u0431\u043E\u0441\u043D\u0430","\u0431\u043E\u0441\u043D\u0430 \u0438 \u0445\u0435\u0440\u0446\u0435\u0433\u043E\u0432\u0438\u043D\u0430","\u0431\u0445"]},{iso3:"BLM",iso2:"BL",m49:"652",name:"Saint Barth\xE9lemy",aliases:["\u{1F1E7}\u{1F1F1}","collectivite doutre mer de saint barthelemy","collectivite territoriale de saint barthelemy","collectivity of saint barthelemy","saint barth","saint barths","saint barts","saint bartz"]},{iso3:"BLR",iso2:"BY",m49:"112",name:"Belarus",aliases:["\u{1F1E7}\u{1F1FE}","republic of belarus","respublika belarus","respublika byelarus","\u0431\u0435\u043B\u0430\u0440\u0443\u0441\u043A\u0430\u044F \u0440\u044D\u0441\u043F\u0443\u0431\u043B\u0456\u043A\u0430","\u0431\u0435\u043B\u0430\u0440\u0443\u0441\u044C","\u0431\u0435\u043B\u0430\u044F \u0440\u0443\u0441\u044C","\u0431\u0435\u043B\u043E\u0440\u0443\u0441\u0441\u0438\u044F","\u0440\u0431","\u0440\u0435\u0441\u043F\u0443\u0431\u043B\u0438\u043A\u0430 \u0431\u0435\u043B\u0430\u0440\u0443\u0441\u044C","\u0440\u044D\u0441\u043F\u0443\u0431\u043B\u0456\u043A\u0430 \u0431\u0435\u043B\u0430\u0440\u0443\u0441\u044C"]},{iso3:"BLZ",iso2:"BZ",m49:"084",name:"Belize",aliases:["\u{1F1E7}\u{1F1FF}"]},{iso3:"BMU",iso2:"BM",m49:"060",name:"Bermuda",aliases:["\u{1F1E7}\u{1F1F2}","barmuda","barmuda i","barmuda isl","barmuda islands","barmudas","bermoothes","bermuda islands","bermudas","bermudian islands","colony of bermuda","devils isles","isle of devils","somers islands","somers isles","summers isles","territory of bermuda","virgineola"]},{iso3:"BOL",iso2:"BO",m49:"068",name:"Bolivia (Plurinational State of)",aliases:["\u{1F1E7}\u{1F1F4}","bolivia","bulibiya","estado plurinacional de bolivia","plurinational state of bolivia","puliwya","republic of bolivia","republica de bolivia","volivia","wuliwiya","wuliwya"]},{iso3:"BRA",iso2:"BR",m49:"076",name:"Brazil",aliases:["\u{1F1E7}\u{1F1F7}","brasil","federative republic of brazil","pindorama","republica federativa do brasil"]},{iso3:"BRB",iso2:"BB",m49:"052",name:"Barbados",aliases:["\u{1F1E7}\u{1F1E7}","barbadoes"]},{iso3:"BRN",iso2:"BN",m49:"096",name:"Brunei Darussalam",aliases:["\u{1F1E7}\u{1F1F3}","brunei","nation of brunei the abode of peace","negara brunei darussalam"]},{iso3:"BTN",iso2:"BT",m49:"064",name:"Bhutan",aliases:["\u{1F1E7}\u{1F1F9}","kingdom of bhutan","\u0F60\u0F56\u0FB2\u0F74\u0F42","\u0F60\u0F56\u0FB2\u0F74\u0F42\u0F0B\u0F61\u0F74\u0F63\u0F0B","\u0F60\u0F56\u0FB2\u0F74\u0F42\u0F61\u0F74\u0F63\u0F0B\u0F0B"]},{iso3:"BVT",iso2:"BV",m49:"074",name:"Bouvet Island",aliases:["\u{1F1E7}\u{1F1FB}"]},{iso3:"BWA",iso2:"BW",m49:"072",name:"Botswana",aliases:["\u{1F1E7}\u{1F1FC}","lefatshe la botswana","republic of botswana"]},{iso3:"CAF",iso2:"CF",m49:"140",name:"Central African Republic",aliases:["\u{1F1E8}\u{1F1EB}","centrafricaine republique","centrafrique","central africa","kodorosese ti beafrika","la republique","rep centrafrique","republique centrafricaine"]},{iso3:"CAN",iso2:"CA",m49:"124",name:"Canada",aliases:["\u{1F1E8}\u{1F1E6}","le canada"]},{iso3:"CCK",iso2:"CC",m49:"166",name:"Cocos (Keeling) Islands",aliases:["\u{1F1E8}\u{1F1E8}","cocos islands","keeling islands","territory of the cocos keeling islands"]},{iso3:"CHE",iso2:"CH",m49:"756",name:"Switzerland",aliases:["\u{1F1E8}\u{1F1ED}","confederation helvetique","confederation suisse","confederazione elvetica","confederazione svizzera","confederaziun svizra","confoederatio helvetica","conf\u0153deratio helvetica","eidgenossenschaft","elvezia","helvetie","la confederation suisse","schweiz","schweizerische eidgenossenschaft","suisse","svizra","svizzera","swiss","swiss confederation"]},{iso3:"CHL",iso2:"CL",m49:"152",name:"Chile",aliases:["\u{1F1E8}\u{1F1F1}","republic of chile","republica de chile"]},{iso3:"CHN",iso2:"CN",m49:"156",name:"China",aliases:["\u{1F1E8}\u{1F1F3}","china pr","peoples republic of china","pr china","prc","\u4E2D\u534E\u4EBA\u6C11\u5171\u548C\u56FD","\u4E2D\u56FD"]},{iso3:"CIV",iso2:"CI",m49:"384",name:"C\xF4te d'Ivoire",aliases:["\u{1F1E8}\u{1F1EE}","cote ivoire","ivory coast","republic of cote divoire","republic of ivory coast","republic of the ivory coast","republique de cote divoire"]},{iso3:"CMR",iso2:"CM",m49:"120",name:"Cameroon",aliases:["\u{1F1E8}\u{1F1F2}","cameroun","la republique du cameroun","republic of cameroon","republique du cameroun"]},{iso3:"COD",iso2:"CD",m49:"180",name:"Democratic Republic of the Congo",aliases:["\u{1F1E8}\u{1F1E9}","congo belge","congo democratic republic of the","congo kinshasa","dem rep congo","dem republic of congo","dem republic of the congo","democratic republic of congo","dr congo","drc","rd congo","rep demcongo","republic of the congo","republique democratique du congo","republique du zaire","zaire"]},{iso3:"COG",iso2:"CG",m49:"178",name:"Congo",aliases:["\u{1F1E8}\u{1F1EC}","congo brazza","congo brazzaville","congo republic","rep congo","republic of congo","republique du congo"]},{iso3:"COK",iso2:"CK",m49:"184",name:"Cook Islands",aliases:["\u{1F1E8}\u{1F1F0}","cook group","hervey islands"]},{iso3:"COL",iso2:"CO",m49:"170",name:"Colombia",aliases:["\u{1F1E8}\u{1F1F4}","republic of colombia","republica de colombia"]},{iso3:"COM",iso2:"KM",m49:"174",name:"Comoros",aliases:["\u{1F1F0}\u{1F1F2}","comores","comores archipel","etat comorien","lunion des comores","republique des comores","republique federale et islamique des comores","republique federale islamique des comores","territoire des comores","union des comores","union of the comoros","\u0625\u062A\u062D\u0627\u062F \u0627\u0644\u0642\u0645\u0631","\u0627\u062A\u062D\u0627\u062F \u062C\u0632\u0631 \u0627\u0644\u0642\u0645\u0631","\u0627\u0644\u0627\u062A\u062D\u0627\u062F \u0627\u0644\u0642\u0645\u0631\u064A","\u0627\u0644\u0642\u0645\u0631","\u062C\u0632\u0631 \u0627\u0644\u0642\u0645\u0631","\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u0627\u0644\u0642\u0645\u0631 \u0627\u0644\u0645\u062A\u062D\u062F\u0629","\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u062C\u0632\u0631 \u0627\u0644\u0642\u0645\u0631 \u0627\u0644\u0627\u062A\u062D\u0627\u062F\u064A\u0629 \u0627\u0644\u0625\u0633\u0644\u0627\u0645\u064A\u0629","\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u062C\u0632\u0631\u0627\u0644\u0642\u0645\u0631 \u0627\u0644\u0645\u062A\u062D\u062F\u0629"]},{iso3:"CPV",iso2:"CV",m49:"132",name:"Cabo Verde",aliases:["\u{1F1E8}\u{1F1FB}","cape verde","cape verde islands","kab verd","kabu verdi","kauberdi","republic of cabo verde","republic of cape verde","republica de cabo verde"]},{iso3:"CRI",iso2:"CR",m49:"188",name:"Costa Rica",aliases:["\u{1F1E8}\u{1F1F7}","republic of costa rica","republica de costa rica"]},{iso3:"CUB",iso2:"CU",m49:"192",name:"Cuba",aliases:["\u{1F1E8}\u{1F1FA}","isla juana","republic of cuba","republica de cuba"]},{iso3:"CUW",iso2:"CW",m49:"531",name:"Cura\xE7ao",aliases:["\u{1F1E8}\u{1F1FC}","corsou","corsouw","corsow","country of curacao","curacau","curacoa","curazao","cura\u03C2ao","curocao","island territory of curacao","korsou","land curacao","pais korsou"]},{iso3:"CXR",iso2:"CX",m49:"162",name:"Christmas Island",aliases:["\u{1F1E8}\u{1F1FD}","christmas island other territories","christmas island other territories australia","territory of christmas island"]},{iso3:"CYM",iso2:"KY",m49:"136",name:"Cayman Islands",aliases:["\u{1F1F0}\u{1F1FE}","caymans"]},{iso3:"CYP",iso2:"CY",m49:"196",name:"Cyprus",aliases:["\u{1F1E8}\u{1F1FE}","greek administration of southern cyprus","greek cypriot state","guney k\u0131br\u0131s","guney k\u0131br\u0131s rum cumhuriyeti","guney k\u0131br\u0131s rum kesimi","guney k\u0131br\u0131s rum yonetimi","kipriaki dhimokratia","k\u0131br\u0131s","k\u0131br\u0131s cumhuriyeti","k\u0131br\u0131s rum kesimi","kypriaki dimokratia","kypros","republic of cyprus","\u03BA\u03C5\u03C0\u03C1\u03B9\u03B1\u03BA\u03B7 \u03B4\u03B7\u03BC\u03BF\u03BA\u03C1\u03B1\u03C4\u03B9\u03B1","\u03BA\u03C5\u03C0\u03C1\u03BF\u03C2"]},{iso3:"CZE",iso2:"CZ",m49:"203",name:"Czechia",aliases:["\u{1F1E8}\u{1F1FF}","ceska republika","ceske kraje","ceske uzemi","ceske zeme","cesko","cr","czech republic"]},{iso3:"DEU",iso2:"DE",m49:"276",name:"Germany",aliases:["\u{1F1E9}\u{1F1EA}","br deutschland","bundesrepublik","bundesrepublik deutschland","deutschland","federal republic of germany"]},{iso3:"DJI",iso2:"DJ",m49:"262",name:"Djibouti",aliases:["\u{1F1E9}\u{1F1EF}","la republique de djibouti","republic of djibouti","republique de djibouti","\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u062C\u064A\u0628\u0648\u062A\u064A","\u062C\u064A\u0628\u0648\u062A\u064A"]},{iso3:"DMA",iso2:"DM",m49:"212",name:"Dominica",aliases:["\u{1F1E9}\u{1F1F2}","commonwealth of dominica","island of dominica","waitu kubuli"]},{iso3:"DNK",iso2:"DK",m49:"208",name:"Denmark",aliases:["\u{1F1E9}\u{1F1F0}","dania","danmark","denmark proper","kongeriget danmark","metropolitan denmark"]},{iso3:"DOM",iso2:"DO",m49:"214",name:"Dominican Republic",aliases:["\u{1F1E9}\u{1F1F4}","dominicana","domrep","haiti espanol","quisqueya","republica de santo domingo","republica dominicana","santo domingo"]},{iso3:"DZA",iso2:"DZ",m49:"012",name:"Algeria",aliases:["\u{1F1E9}\u{1F1FF}","peoples democratic republic of algeria","\u0627\u0644\u062C\u0632\u0627\u0626\u0631","\u0627\u0644\u062C\u0632\u0627\u064A\u0631","\u0627\u0644\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u0627\u0644\u062C\u0632\u0627\u0626\u0631\u064A\u0629 \u0627\u0644\u062F\u064A\u0645\u0642\u0631\u0627\u0637\u064A\u0629 \u0627\u0644\u0634\u0639\u0628\u064A\u0629","\u0627\u0644\u062F\u0632\u0627\u064A\u0631","\u062F\u0632\u0627\u064A\u0631"]},{iso3:"ECU",iso2:"EC",m49:"218",name:"Ecuador",aliases:["\u{1F1EA}\u{1F1E8}","ecuadorian state","el ecuador","estado ecuatoriano","republic of ecuador","republic of equator","republic of the equator","republica del ecuador"]},{iso3:"EGY",iso2:"EG",m49:"818",name:"Egypt",aliases:["\u{1F1EA}\u{1F1EC}","arab rep egypt","arab republic of egypt","rep egypt","republic of egypt","\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u0645\u0635\u0631 \u0627\u0644\u0639\u0631\u0628\u064A\u0629","\u0645\u0635\u0631"]},{iso3:"ERI",iso2:"ER",m49:"232",name:"Eritrea",aliases:["\u{1F1EA}\u{1F1F7}","ertra","hagere ertra","hagere iertra","iertra","iritriya","state of eritrea","\u0625\u0631\u062A\u0631\u064A\u0627","\u0625\u0631\u064A\u062A\u0631\u064A\u0627","\u0627\u0631\u062A\u0631\u064A\u0627","\u0627\u0631\u062A\u064A\u0631\u064A\u0627","\u0627\u0631\u064A\u062A\u0631\u064A\u0627","\u062F\u0648\u0644\u0629 \u0625\u0631\u062A\u0631\u064A\u0627","\u062F\u0648\u0644\u0629 \u0625\u0631\u064A\u062A\u0631\u064A\u0627","\u1203\u1308\u1228 \u12A4\u122D\u1275\u122B","\u12A4\u122D\u1275\u122B"]},{iso3:"ESH",iso2:"EH",m49:"732",name:"Western Sahara",aliases:["\u{1F1EA}\u{1F1ED}","southern provinces","spanish sahara","west sahara"]},{iso3:"ESP",iso2:"ES",m49:"724",name:"Spain",aliases:["\u{1F1EA}\u{1F1F8}","espana","estado espanol","kingdom of spain","reino de espana"]},{iso3:"EST",iso2:"EE",m49:"233",name:"Estonia",aliases:["\u{1F1EA}\u{1F1EA}","eesti","eesti noukogude sotsialistlik vabariik","eesti vabariik","estland","republic of estonia"]},{iso3:"ETH",iso2:"ET",m49:"231",name:"Ethiopia",aliases:["\u{1F1EA}\u{1F1F9}","federal democratic republic of ethiopia","ityopiya","yeityopiya federalawi demokrasiyawi ripeblik","yeityopiya hizbawi dimokrasiyawi ripublik","\u12A2\u1275\u12EE\u1335\u12EB","\u12E8\u12A2\u1275\u12EE\u1335\u12EB \u134C\u12F4\u122B\u120B\u12CA \u12F4\u121E\u12AD\u122B\u1232\u12EB\u12CA \u122A\u1350\u1265\u120A\u12AD"]},{iso3:"FIN",iso2:"FI",m49:"246",name:"Finland",aliases:["\u{1F1EB}\u{1F1EE}","republic of finland","republiken finland","suomen tasavalta","suomi"]},{iso3:"FJI",iso2:"FJ",m49:"242",name:"Fiji",aliases:["\u{1F1EB}\u{1F1EF}","fiji ganarajya","matanitu ko viti","matanitu tugalala o viti","republic of fiji","republic of the fiji islands","viti"]},{iso3:"FLK",iso2:"FK",m49:"238",name:"Falkland Islands (Malvinas)",aliases:["\u{1F1EB}\u{1F1F0}","colony of the falkland islands","falkland islands","falklands","islas malvinas","malvinas","malvinas islands"]},{iso3:"FRA",iso2:"FR",m49:"250",name:"France",aliases:["\u{1F1EB}\u{1F1F7}","fr","french republic","la france","la republique francaise","lhexagone","republique francaise"]},{iso3:"FRO",iso2:"FO",m49:"234",name:"Faroe Islands",aliases:["\u{1F1EB}\u{1F1F4}","faer oer","f\xE6r\xF8","faeroe is","faeroe islands","faeroe isles","f\xE6r\xF8erne","faeroes","far oer","faroe island","faroe isles","faroes","faroese islands","f\xF8roya","f\xF8royar","f\xF8royum"]},{iso3:"FSM",iso2:"FM",m49:"583",name:"Micronesia (Federated States of)",aliases:["\u{1F1EB}\u{1F1F2}","fed sts micronesia","fed sts of micronesia","federated states of micronesia","federated states of micronesia fsm","micronesia"]},{iso3:"GAB",iso2:"GA",m49:"266",name:"Gabon",aliases:["\u{1F1EC}\u{1F1E6}","gabonese republic","la republique gabonaise","le gabon","republique du gabon","republique gabonaise"]},{iso3:"GBR",iso2:"GB",m49:"826",name:"United Kingdom of Great Britain and Northern Ireland",aliases:["\u{1F1EC}\u{1F1E7}","britain","england","great britain","great britain and northern ireland","northern ireland","scotland","uk","united kingdom","wales"]},{iso3:"GEO",iso2:"GE",m49:"268",name:"Georgia",aliases:["\u{1F1EC}\u{1F1EA}","georgia country","republic of georgia","sakartvelo","\u049B\u044B\u0440\u04AD\u0442\u04D9\u044B\u043B\u0430","\u10E1\u10D0\u10E5\u10D0\u10E0\u10D7\u10D5\u10D4\u10DA\u10DD","\u10E1\u10D0\u10E5\u10D0\u10E0\u10D7\u10D5\u10D4\u10DA\u10DD\u10E1 \u10E0\u10D4\u10E1\u10DE\u10E3\u10D1\u10DA\u10D8\u10D9\u10D0"]},{iso3:"GGY",iso2:"GG",m49:"831",name:"Guernsey",aliases:["\u{1F1EC}\u{1F1EC}","bailiwick of guernsey","bailliage de guernesey","bailliage de guernesi","giernesi","great britain guernsey","guernesey","lisia"]},{iso3:"GHA",iso2:"GH",m49:"288",name:"Ghana",aliases:["\u{1F1EC}\u{1F1ED}","republic of ghana"]},{iso3:"GIB",iso2:"GI",m49:"292",name:"Gibraltar",aliases:["\u{1F1EC}\u{1F1EE}","rock of gibraltar"]},{iso3:"GIN",iso2:"GN",m49:"324",name:"Guinea",aliases:["\u{1F1EC}\u{1F1F3}","guinee","guinee conakry","republic of guinea","republique de guinee"]},{iso3:"GLP",iso2:"GP",m49:"312",name:"Guadeloupe",aliases:["\u{1F1EC}\u{1F1F5}"]},{iso3:"GMB",iso2:"GM",m49:"270",name:"Gambia",aliases:["\u{1F1EC}\u{1F1F2}","islamic republic of the gambia","republic of the gambia"]},{iso3:"GNB",iso2:"GW",m49:"624",name:"Guinea-Bissau",aliases:["\u{1F1EC}\u{1F1FC}","guine bissau","republic of guinea bissau","republica da guine bissau"]},{iso3:"GNQ",iso2:"GQ",m49:"226",name:"Equatorial Guinea",aliases:["\u{1F1EC}\u{1F1F6}","guine equatorial","guinea ecuatorial","guinea espanola","guinee equat","guinee equatoriale","la republique de guinee equatoriale","posesiones espanolas del golfo de guinea","provincia de la guinea ecuatorial","republic of equatorial guinea","republica da guine equatorial","republica de guinea ecuatorial","territorios espanoles del golfo de guinea"]},{iso3:"GRC",iso2:"GR",m49:"300",name:"Greece",aliases:["\u{1F1EC}\u{1F1F7}","ellada","ellas","elliniki dhimokratia","elliniki dimokratia","greek republic","hellas","hellas greece","hellenic republic","vasilion tis ellados","\u03B4\u03B7\u03BC\u03BF\u03BA\u03C1\u03B1\u03C4\u03B9\u03B1 \u03C4\u03B7\u03C2 \u03B5\u03BB\u03BB\u03B1\u03B4\u03B1\u03C2","\u03B4\u03B7\u03BC\u03BF\u03BA\u03C1\u03B1\u03C4\u03B9\u03B1 \u03C4\u03B7\u03C2 \u03B5\u03BB\u03BB\u03B1\u03B4\u03BF\u03C2","\u03B5\u03BB\u03BB\u03B1\u03B4\u03B1","\u03B5\u03BB\u03BB\u03B1\u03C2","\u03B5\u03BB\u03BB\u03B1\u03C2 \u03B5\u03BB\u03BB\u03B1\u03B4\u03B1","\u03B5\u03BB\u03BB\u03B7\u03BD\u03B9\u03BA\u03B7 \u03B4\u03B7\u03BC\u03BF\u03BA\u03C1\u03B1\u03C4\u03B9\u03B1"]},{iso3:"GRD",iso2:"GD",m49:"308",name:"Grenada",aliases:["\u{1F1EC}\u{1F1E9}"]},{iso3:"GRL",iso2:"GL",m49:"304",name:"Greenland",aliases:["\u{1F1EC}\u{1F1F1}","kalaallit nunaat"]},{iso3:"GTM",iso2:"GT",m49:"320",name:"Guatemala",aliases:["\u{1F1EC}\u{1F1F9}","republic of guatemala","republica de guatemala"]},{iso3:"GUF",iso2:"GF",m49:"254",name:"French Guiana",aliases:["\u{1F1EC}\u{1F1EB}","fr 973","guiana","guiana france","guyane","guyane francaise","gwiyann","gwiyann franse","lagwiyann"]},{iso3:"GUM",iso2:"GU",m49:"316",name:"Guam",aliases:["\u{1F1EC}\u{1F1FA}","guahan","guam usa","islan guahan","island of guam","territory of guam"]},{iso3:"GUY",iso2:"GY",m49:"328",name:"Guyana",aliases:["\u{1F1EC}\u{1F1FE}","co operative republic of guyana","republic of guyana"]},{iso3:"HKG",iso2:"HK",m49:"344",name:"Hong Kong",aliases:["\u{1F1ED}\u{1F1F0}","hksar","hong kong sar","hong kong special administrative region","hong kong special administrative region of the peoples republic of china","hongkong"]},{iso3:"HMD",iso2:"HM",m49:"334",name:"Heard Island and McDonald Islands",aliases:["\u{1F1ED}\u{1F1F2}","heard","heard & mcdonald islands","heard and macdonald islands","heard island","himi","mcdonald","mcdonald island","territory of heard island and mcdonald islands"]},{iso3:"HND",iso2:"HN",m49:"340",name:"Honduras",aliases:["\u{1F1ED}\u{1F1F3}","guaymuras","higueras","honduran republic","republic of honduras","republica de honduras"]},{iso3:"HRV",iso2:"HR",m49:"191",name:"Croatia",aliases:["\u{1F1ED}\u{1F1F7}","hrvatska","republic of croatia","republika hrvatska"]},{iso3:"HTI",iso2:"HT",m49:"332",name:"Haiti",aliases:["\u{1F1ED}\u{1F1F9}","ayiti","haitian republic","la republique dhaiti","repiblik d ayiti","republic of haiti","republique dhaiti"]},{iso3:"HUN",iso2:"HU",m49:"348",name:"Hungary",aliases:["\u{1F1ED}\u{1F1FA}","a magyar koztarsasag","a magyar nepkoztarsasag","harmadik magyar koztarsasag","magyar koztarsasag","magyar nepkoztarsasag","magyarorszag","mo"]},{iso3:"IDN",iso2:"ID",m49:"360",name:"Indonesia",aliases:["\u{1F1EE}\u{1F1E9}","negara kesatuan republik indonesia","nkri","republic of indonesia","republik indonesia"]},{iso3:"IMN",iso2:"IM",m49:"833",name:"Isle of Man",aliases:["\u{1F1EE}\u{1F1F2}","ellan vannin","i man","i mann","i mannin","isle of mann","mann","mannin","manx"]},{iso3:"IND",iso2:"IN",m49:"356",name:"India",aliases:["\u{1F1EE}\u{1F1F3}","al hind","bharat","bharat ganarajya","bharata","bharatvarsh","hindoostan","hindustan","indostan","republic of india","tenjiku","tianzhu","\u0906\u0930\u094D\u092F\u0935\u0930\u094D\u0924","\u0907\u0902\u0921\u093F\u092F\u093E","\u0907\u0923\u094D\u0921\u093F\u092F\u093E","\u092D\u093E\u0930\u0924","\u092D\u093E\u0930\u0924 \u0917\u0923\u0930\u093E\u091C\u094D\u092F","\u092D\u093E\u0930\u0924\u0935\u0930\u094D\u0937","\u0939\u093F\u0902\u0926\u0941\u0938\u094D\u0924\u093E\u0928","\u0939\u093F\u0928\u094D\u0926\u0941\u0938\u094D\u0924\u093E\u0928","\u0939\u093F\u0928\u094D\u0926\u094B\u0938\u094D\u0924\u093E\u0928"]},{iso3:"IOT",iso2:"IO",m49:"086",name:"British Indian Ocean Territory",aliases:["\u{1F1EE}\u{1F1F4}","biot"]},{iso3:"IRL",iso2:"IE",m49:"372",name:"Ireland",aliases:["\u{1F1EE}\u{1F1EA}","eire","hibernia","irish republic","poblacht na heireann","republic of ireland","southern ireland"]},{iso3:"IRN",iso2:"IR",m49:"364",name:"Iran (Islamic Republic of)",aliases:["\u{1F1EE}\u{1F1F7}","iran","islamic rep iran","islamic republic of iran","persia","\u0627\u06CC\u0631\u0627\u0646","\u0627\u06CC\u0631\u0627\u0646\u0632\u0645\u06CC\u0646","\u067E\u0627\u0631\u0633","\u062C\u0645\u0647\u0648\u0631\u06CC \u0627\u0633\u0644\u0627\u0645\u06CC \u0627\u064A\u0631\u0627\u0646","\u062C\u0645\u0647\u0648\u0631\u06CC \u0627\u0633\u0644\u0627\u0645\u06CC \u0627\u06CC\u0631\u0627\u0646","\u0643\u0634\u0648\u0631 \u0634\u0627\u0647\u0646\u0634\u0627\u0647\u06CC \u0627\u064A\u0631\u0627\u0646"]},{iso3:"IRQ",iso2:"IQ",m49:"368",name:"Iraq",aliases:["\u{1F1EE}\u{1F1F6}","eraq","iraqe","komar i eraq","republic of iraq","\u0627\u0644\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u0627\u0644\u0639\u0631\u0627\u0642\u064A\u0629","\u0627\u0644\u0639\u0631\u0627\u0642","\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u0627\u0644\u0639\u0631\u0627\u0642","\u0639\u0631\u0627\u0642","\u0639\u06CE\u0631\u0627\u0642"]},{iso3:"ISL",iso2:"IS",m49:"352",name:"Iceland",aliases:["\u{1F1EE}\u{1F1F8}","icelandic republic","island","ly\xF0veldi\xF0 island","republic of iceland","ysland"]},{iso3:"ISR",iso2:"IL",m49:"376",name:"Israel",aliases:["\u{1F1EE}\u{1F1F1}","erez yisrael","medinat yisrael","state of israel","yisrael","\u05D9\u05E9\u05E8\u05D0\u05DC","\u05DE\u05D3\u05D9\u05E0\u05EA \u05D9\u05E9\u05E8\u05D0\u05DC"]},{iso3:"ITA",iso2:"IT",m49:"380",name:"Italy",aliases:["\u{1F1EE}\u{1F1F9}","il bel paese","italia","italian republic","repubblica italiana","republic of italy"]},{iso3:"JAM",iso2:"JM",m49:"388",name:"Jamaica",aliases:["\u{1F1EF}\u{1F1F2}","commonwealth of jamaica","jamieka","jomieka","jumieka"]},{iso3:"JEY",iso2:"JE",m49:"832",name:"Jersey",aliases:["\u{1F1EF}\u{1F1EA}","bailliage de jerri","bailliage de jersey","balliwick of jersey","i iersey","i jersey","iersey","iersey i","isle of jersey","jerri","jersey i","jersey island"]},{iso3:"JOR",iso2:"JO",m49:"400",name:"Jordan",aliases:["\u{1F1EF}\u{1F1F4}","giordania","hashemite kingdom of jordan","kingdom of jordan","state of jordan","yarden","\u0627\u0644\u0623\u0631\u062F\u0646","\u0627\u0644\u0627\u0631\u062F\u0646","\u0627\u0644\u0645\u0645\u0644\u0643\u0629 \u0627\u0644\u0623\u0631\u062F\u0646\u064A\u0629 \u0627\u0644\u0647\u0627\u0634\u0645\u064A\u0629","\u0627\u0644\u0645\u0645\u0644\u0643\u0629 \u0627\u0644\u0627\u0631\u062F\u0646\u064A\u0629 \u0627\u0644\u0647\u0627\u0634\u0645\u064A\u0629"]},{iso3:"JPN",iso2:"JP",m49:"392",name:"Japan",aliases:["\u{1F1EF}\u{1F1F5}","state of japan","\u3042\u304D\u3064\u3057\u307E","\u304A\u304A\u3084\u3057\u307E","\u3057\u304D\u3057\u307E","\u30B8\u30E3\u30D1\u30F3","\u3057\u3093\u3057\u3085\u3046","\u306B\u3063\u307D\u3093","\u306B\u3063\u307D\u3093\u3053\u304F","\u306B\u307B\u3093","\u306B\u307B\u3093\u3053\u304F","\u3072\u3044\u305A\u308B\u304F\u306B","\u3075\u305D\u3046","\u5927\u516B\u5DDE","\u6276\u6728\u4E4B\u5730","\u6276\u6851","\u6276\u6851\u56FD","\u6577\u5CF6","\u65E5\u51FA\u308B\u56FD","\u65E5\u672C","\u6991\u6728\u4E4B\u5730","\u745E\u7A42\u56FD","\u795E\u5DDE","\u79CB\u6D25\u5CF6","\u8466\u539F\u4E2D\u56FD"]},{iso3:"KAZ",iso2:"KZ",m49:"398",name:"Kazakhstan",aliases:["\u{1F1F0}\u{1F1FF}","qazaqstan","qazaqstan respublikasy","republic of kazakhstan","\u043A\u0430\u0437\u0430\u0445\u0441\u0442\u0430\u043D","\u049B\u0430\u0437\u0430\u049B\u0441\u0442\u0430\u043D","\u049B\u0430\u0437\u0430\u049B\u0441\u0442\u0430\u043D \u0440\u0435\u0441\u043F\u0443\u0431\u043B\u0438\u043A\u0430\u0441\u044B","\u0440\u0435\u0441\u043F\u0443\u0431\u043B\u0438\u043A\u0430 \u043A\u0430\u0437\u0430\u0445\u0441\u0442\u0430\u043D","\u0440\u043A"]},{iso3:"KEN",iso2:"KE",m49:"404",name:"Kenya",aliases:["\u{1F1F0}\u{1F1EA}","jamhuri ya kenya","republic of kenya"]},{iso3:"KGZ",iso2:"KG",m49:"417",name:"Kyrgyzstan",aliases:["\u{1F1F0}\u{1F1EC}","kyrgyz republic","kyrgyz respublikasy","kyrgyzstan respublikasy","\u043A\u0440","\u043A\u044B\u0440\u0433\u044B\u0437 \u0440\u0435\u0441\u043F\u0443\u0431\u043B\u0438\u043A\u0430\u0441\u044B","\u043A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D"]},{iso3:"KHM",iso2:"KH",m49:"116",name:"Cambodia",aliases:["\u{1F1F0}\u{1F1ED}","camboya","campuchia","kambodzha","kamboja","kampuchea","kingdom of cambodia","\u1780\u1798\u17D2\u1796\u17BB\u1787\u17B6","\u1796\u17D2\u179A\u17C7\u179A\u17B6\u1787\u17B6\u178E\u17B6\u1785\u1780\u17D2\u179A\u1780\u1798\u17D2\u1796\u17BB\u1787\u17B6"]},{iso3:"KIR",iso2:"KI",m49:"296",name:"Kiribati",aliases:["\u{1F1F0}\u{1F1EE}","republic of kiribati"]},{iso3:"KNA",iso2:"KN",m49:"659",name:"Saint Kitts and Nevis",aliases:["\u{1F1F0}\u{1F1F3}","federation of saint christopher and nevis","federation of saint kitts and nevis","kitts & nevis","nevis","saint christopher","saint christopher and nevis","saint kitts"]},{iso3:"KOR",iso2:"KR",m49:"410",name:"Republic of Korea",aliases:["\u{1F1F0}\u{1F1F7}","korea","korea republic","korea republic of","korea south","rep korea","s korea","south korea","taehan minguk","\uB0A8\uC870\uC120","\uB0A8\uD55C","\uB300\uD55C","\uB300\uD55C\uBBFC\uAD6D","\uCF54\uB9AC\uC544","\uD55C\uAD6D"]},{iso3:"KWT",iso2:"KW",m49:"414",name:"Kuwait",aliases:["\u{1F1F0}\u{1F1FC}","state of kuwait","\u0627\u0644\u0643\u0648\u064A\u062A","\u062F\u0648\u0644\u0629 \u0627\u0644\u0643\u0648\u064A\u062A"]},{iso3:"LAO",iso2:"LA",m49:"418",name:"Lao People's Democratic Republic",aliases:["\u{1F1F1}\u{1F1E6}","laos","sathalanalat paxathipatai paxaxon lao","\u0EAA\u0EB2\u0E97\u0EB2\u0EA5\u0EB0\u0E99\u0EB0\u0EA5\u0EB1\u0E94 \u0E9B\u0EB0\u0E8A\u0EB2\u0E97\u0EB4\u0E9B\u0EB0\u0EC4\u0E95 \u0E9B\u0EB0\u0E8A\u0EB2\u0E8A\u0EBB\u0E99\u0EA5\u0EB2\u0EA7","\u0E9B\u0EB0\u0EC0\u0E97\u0E94\u0EA5\u0EB2\u0EA7","\u0EA5\u0EB2\u0EA7"]},{iso3:"LBN",iso2:"LB",m49:"422",name:"Lebanon",aliases:["\u{1F1F1}\u{1F1E7}","lebanese republic","republic of lebanon","state of lebanon","\u0627\u0644\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u0627\u0644\u0644\u0628\u0646\u0627\u0646\u064A\u0629","\u0644\u0628\u0646\u0627\u0646"]},{iso3:"LBR",iso2:"LR",m49:"430",name:"Liberia",aliases:["\u{1F1F1}\u{1F1F7}","liber","republic of liberia"]},{iso3:"LBY",iso2:"LY",m49:"434",name:"Libya",aliases:["\u{1F1F1}\u{1F1FE}","state of libya","\u0627\u0644\u062C\u0645\u0627\u0647\u064A\u0631\u064A\u0629 \u0627\u0644\u0639\u0631\u0628\u064A\u0629 \u0627\u0644\u0644\u064A\u0628\u064A\u0629 \u0627\u0644\u0634\u0639\u0628\u064A\u0629 \u0627\u0644\u0625\u0634\u062A\u0631\u0627\u0643\u064A\u0629","\u0627\u0644\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u0627\u0644\u0644\u064A\u0628\u064A\u0629","\u0627\u0644\u0644\u064A\u0628\u064A","\u0627\u0644\u0644\u064A\u0628\u064A\u0629","\u0627\u0644\u0644\u064A\u0628\u064A\u0646","\u062F\u0648\u0644\u0629 \u0644\u064A\u0628\u064A\u0627","\u0644\u064A\u0628\u0628\u064A\u0627","\u0644\u064A\u0628\u064A","\u0644\u064A\u0628\u064A\u0627","\u0644\u064A\u0628\u064A\u0629"]},{iso3:"LCA",iso2:"LC",m49:"662",name:"Saint Lucia",aliases:["\u{1F1F1}\u{1F1E8}","hewanorra","iyonola"]},{iso3:"LIE",iso2:"LI",m49:"438",name:"Liechtenstein",aliases:["\u{1F1F1}\u{1F1EE}","furstentum lichtenstein","furstentum liechtenstein","principality of liechtenstein"]},{iso3:"LKA",iso2:"LK",m49:"144",name:"Sri Lanka",aliases:["\u{1F1F1}\u{1F1F0}","ceylan","ceylon","democratic socialist republic of sri lanka","ilankaic cananayaka cocalicak kutiyarcu","lankava","prajatantravadi samajavadi janarajaya sri lanka","serendib","srilanka","taprobane","\u0B87\u0BB2\u0B99\u0BCD\u0B95\u0BC8","\u0B87\u0BB2\u0B99\u0BCD\u0B95\u0BC8 \u0B9A\u0BA9\u0BA8\u0BBE\u0BAF\u0B95 \u0B9A\u0BCB\u0B9A\u0BB2\u0BBF\u0B9A\u0B95\u0BCD \u0B95\u0BC1\u0B9F\u0BBF\u0BAF\u0BB0\u0B9A\u0BC1","\u0B87\u0BB2\u0B99\u0BCD\u0B95\u0BC8 \u0B9A\u0BA9\u0BA8\u0BBE\u0BAF\u0B95 \u0B9A\u0BCB\u0BB7\u0BB2\u0BBF\u0B9A\u0B95\u0BCD \u0B95\u0BC1\u0B9F\u0BBF\u0BAF\u0BB0\u0B9A\u0BC1","\u0B88\u0BB4\u0BAE\u0BCD","\u0B9A\u0BBF\u0BB2\u0BCB\u0BA9\u0BCD","\u0DBD\u0D82\u0D9A\u0DCF\u0DC0","\u0DC1\u0DCA\u0DBB\u0DD3 \u0DBD\u0D82\u0D9A\u0DCF \u0DB4\u0DCA\u0DBB\u0DA2\u0DCF\u0DAD\u0DB1\u0DCA\u0DAD\u0DCA\u0DBB\u0DC0\u0DCF\u0DAF\u0DD3 \u0DC3\u0DB8\u0DCF\u0DA2\u0DC0\u0DCF\u0DAF\u0DD3 \u0DA2\u0DB1\u0DBB\u0DA2\u0DBA","\u0DC1\u0DCA\u0DBB\u0DD3 \u0DBD\u0D82\u0D9A\u0DCF\u0DC0","\u0DC1\u0DCA\u200D\u0DBB\u0DD3 \u0DBD\u0D82\u0D9A\u0DCF\u0DC0"]},{iso3:"LSO",iso2:"LS",m49:"426",name:"Lesotho",aliases:["\u{1F1F1}\u{1F1F8}","kingdom of lesotho","mmuso wa lesotho","mountain kingdom"]},{iso3:"LTU",iso2:"LT",m49:"440",name:"Lithuania",aliases:["\u{1F1F1}\u{1F1F9}","lietuva","lietuvos respublika","republic of lithuania"]},{iso3:"LUX",iso2:"LU",m49:"442",name:"Luxembourg",aliases:["\u{1F1F1}\u{1F1FA}","grand duche","grand duche de luxembourg","grand duchy of luxembourg","gro\xDFherzogtum luxemburg","groussherzogtum letzebuerg","le grand duche de luxembourg","letzebuerg","letzebuerger land","lux","luxemburg"]},{iso3:"LVA",iso2:"LV",m49:"428",name:"Latvia",aliases:["\u{1F1F1}\u{1F1FB}","latveja","latvejas republika","latvian republic","latvija","latvijas republika","letm\u043E","letm\u043E vabam\u043E","republic of latvia"]},{iso3:"MAC",iso2:"MO",m49:"446",name:"Macao",aliases:["\u{1F1F2}\u{1F1F4}","aomen","macao sar","macao special administrative region","macao special administrative region of the peoples republic of china","macau","macau rae da china","macau sar","macau special administrative region","macau special administrative region of the peoples republic of china","raem","regiao administrativa especial de macau","regiao administrativa especial de macau da republica popular da china","\u4E2D\u570B\u6FB3\u9580\u7279\u5225\u884C\u653F\u5340","\u6FB3\u9580"]},{iso3:"MAF",iso2:"MF",m49:"663",name:"Saint Martin (French Part)",aliases:["\u{1F1F2}\u{1F1EB}","collectivite de saint martin","collectivity of saint martin","saint martin","saint martin antilles francaises","saint martin france"]},{iso3:"MAR",iso2:"MA",m49:"504",name:"Morocco",aliases:["\u{1F1F2}\u{1F1E6}","kingdom of morocco","\u0627\u0644\u0645\u063A\u0631\u0628","\u0627\u0644\u0645\u0645\u0644\u0643\u0629 \u0627\u0644\u0645\u063A\u0631\u0628\u064A\u0629","\u2D30\u2D4E\u2D53\u2D54 \u2D4F \u2D61\u2D30\u2D3D\u2D53\u2D5B","\u2D30\u2D4E\u2D55\u2D55\u2D53\u2D3D","\u2D4D\u2D4E\u2D55\u2D55\u2D53\u2D3D","\u2D4D\u2D4E\u2D56\u2D54\u2D49\u2D31","\u2D5C\u2D30\u2D33\u2D4D\u2D37\u2D49\u2D5C \u2D4F \u2D4D\u2D4E\u2D56\u2D54\u2D49\u2D31"]},{iso3:"MCO",iso2:"MC",m49:"492",name:"Monaco",aliases:["\u{1F1F2}\u{1F1E8}","fort hercule","la principaute de monaco","monaco rattachee au district de menton en 1793","munegu","principality and diocese of monaco","principality of monaco","principatu de munegu","principaute de monaco"]},{iso3:"MDA",iso2:"MD",m49:"498",name:"Republic of Moldova",aliases:["\u{1F1F2}\u{1F1E9}","moldavia","moldova","moldova republic of","moldova republica","r moldova","rep moldova","republica moldova","\u043C\u043E\u043B\u0434\u043E\u0432\u0430"]},{iso3:"MDG",iso2:"MG",m49:"450",name:"Madagascar",aliases:["\u{1F1F2}\u{1F1EC}","la republique de madagascar","madagasikara","repoblikani madagasikara","republic of madagascar","republique de madagascar"]},{iso3:"MDV",iso2:"MV",m49:"462",name:"Maldives",aliases:["\u{1F1F2}\u{1F1FB}","dhivehi raajjeyge jumhooriyyaa","republic of maldives","\u078B\u07A8\u0788\u07AC\u0780\u07A8 \u0783\u07A7\u0787\u07B0\u0796\u07AC","\u078B\u07A8\u0788\u07AC\u0780\u07A8\u0783\u07A7\u0787\u07B0\u0796\u07AC","\u078B\u07A8\u0788\u07AC\u0780\u07A8\u0783\u07A7\u0787\u07B0\u0796\u07AD\u078E\u07AC \u0796\u07AA\u0789\u07AA\u0780\u07AB\u0783\u07A8\u0787\u07B0\u0794\u07A7","\u078B\u07A8\u0788\u07AC\u0780\u07A8\u0783\u07A7\u0787\u07B0\u0796\u07AD\u078E\u07AC \u0796\u07AA\u0789\u07B0\u0780\u07AB\u0783\u07A8\u0787\u07B0\u0794\u07A7"]},{iso3:"MEX",iso2:"MX",m49:"484",name:"Mexico",aliases:["\u{1F1F2}\u{1F1FD}","estados unidos mejicanos","estados unidos mexicanos","mejico","mexican republic","mexican united states","mexihco","mexihko","mexika sentik wexteyowalko","mexiko","mexko","mexko axkayotl","mexko tlalli","nueva espana","republica mejicana","republica mexicana","united mexican states","united states of mexico"]},{iso3:"MHL",iso2:"MH",m49:"584",name:"Marshall Islands",aliases:["\u{1F1F2}\u{1F1ED}","aelon kein ad","aolepan aorokin majel","jolet jen anij","majel","majol","republic of the marshall islands"]},{iso3:"MKD",iso2:"MK",m49:"807",name:"North Macedonia",aliases:["\u{1F1F2}\u{1F1F0}","former yugoslav republic of macedonia","fyr macedonia","fyrom","irjm","ish republika jugosllave e maqedonise","macedonia","macedonia former yugoslav republic of","macedonia fyr","maqedoni","maqedonia","maqedonia e veriut","republic of macedonia","republic of north macedonia","republika e maqedonise","republika e maqedonise se veriut","\u043C\u0430\u043A\u0435\u0434\u043E\u043D\u0438\u0458\u0430","\u0440\u0435\u043F\u0443\u0431\u043B\u0438\u043A\u0430 \u043C\u0430\u043A\u0435\u0434\u043E\u043D\u0438\u0458\u0430","\u0440\u0435\u043F\u0443\u0431\u043B\u0438\u043A\u0430 \u0441\u0435\u0432\u0435\u0440\u043D\u0430 \u043C\u0430\u043A\u0435\u0434\u043E\u043D\u0438\u0458\u0430","\u0440\u043C","\u0440\u0441\u043C","\u0441\u0435\u0432\u0435\u0440\u043D\u0430 \u043C\u0430\u043A\u0435\u0434\u043E\u043D\u0438\u0458\u0430"]},{iso3:"MLI",iso2:"ML",m49:"466",name:"Mali",aliases:["\u{1F1F2}\u{1F1F1}","maali","republic of mali"]},{iso3:"MLT",iso2:"MT",m49:"470",name:"Malta",aliases:["\u{1F1F2}\u{1F1F9}","malta island","repubblika ta malta","republic of malta"]},{iso3:"MMR",iso2:"MM",m49:"104",name:"Myanmar",aliases:["\u{1F1F2}\u{1F1F2}","burma","pyidaungzu myanma naingngandaw","pyidaungzu thammada myanma naingngandaw","republic of the union of myanmar","union of burma","\u1015\u103C\u100A\u103A\u1011\u1031\u102C\u1004\u103A\u1005\u102F \u1019\u103C\u1014\u103A\u1019\u102C\u1014\u102D\u102F\u1004\u103A\u1004\u1036","\u1015\u103C\u100A\u103A\u1011\u1031\u102C\u1004\u103A\u1005\u102F \u1019\u103C\u1014\u103A\u1019\u102C\u1014\u102D\u102F\u1004\u103A\u1004\u1036\u1010\u1031\u102C\u103A","\u1015\u103C\u100A\u103A\u1011\u1031\u102C\u1004\u103A\u1005\u102F \u101E\u1019\u1039\u1019\u1010 \u1019\u103C\u1014\u103A\u1019\u102C\u1014\u102D\u102F\u1004\u103A\u1004\u1036","\u1015\u103C\u100A\u103A\u1011\u1031\u102C\u1004\u103A\u1005\u102F \u101E\u1019\u1039\u1019\u1010 \u1019\u103C\u1014\u103A\u1019\u102C\u1014\u102D\u102F\u1004\u103A\u1004\u1036\u1010\u1031\u102C\u103A","\u1015\u103C\u100A\u103A\u1011\u1031\u102C\u1004\u103A\u1005\u102F\u1019\u103C\u1014\u103A\u1019\u102C\u1014\u102D\u102F\u1004\u103A\u1004\u1036\u1010\u1031\u102C\u103A","\u1015\u103C\u100A\u103A\u1011\u1031\u102C\u1004\u103A\u1005\u102F\u101E\u1019\u1039\u1019\u1010\u1019\u103C\u1014\u103A\u1019\u102C\u1014\u102D\u102F\u1004\u103A\u1004\u1036","\u1015\u103C\u200C\u100A\u103A\u1011\u1031\u102C\u1004\u103A\u1005\u102F\u101E\u1019\u1039\u1019\u1010\u1019\u103C\u1014\u103A\u1019\u102C\u1014\u102D\u102F\u1004\u103A\u1004\u1036","\u1015\u103C\u100A\u103A\u1011\u1031\u102C\u1004\u103A\u1005\u102F\u101E\u1019\u1039\u1019\u1010\u1019\u103C\u1014\u103A\u1019\u102C\u1014\u102D\u102F\u1004\u103A\u1004\u1036\u1010\u1031\u102C\u103A","\u1017\u1019\u102C\u1015\u103C\u100A\u103A","\u1019\u103C\u1014\u103A\u1019\u102C","\u1019\u103C\u1014\u103A\u1019\u102C\u1014\u102D\u102F\u1004\u103A\u1004\u1036","\u1019\u103C\u1014\u103A\u1019\u102C\u1014\u102D\u102F\u1004\u103A\u1004\u1036\u1010\u1031\u102C\u103A","\u1019\u103C\u1014\u103A\u1019\u102C\u1015\u103C\u100A\u103A"]},{iso3:"MNE",iso2:"ME",m49:"499",name:"Montenegro",aliases:["\u{1F1F2}\u{1F1EA}","crna cora","\u0446\u0440\u043D\u0430 \u0433\u043E\u0440\u0430"]},{iso3:"MNG",iso2:"MN",m49:"496",name:"Mongolia",aliases:["\u{1F1F2}\u{1F1F3}","bugd nayramdah mongol ard uls","mongol uls","state of mongolia","\u043C\u043E\u043D\u0433\u043E\u043B","\u043C\u043E\u043D\u0433\u043E\u043B \u0443\u043B\u0441","\u182E\u1824\u1829\u182D\u1824\u182F \u1824\u182F\u1824\u1830"]},{iso3:"MNP",iso2:"MP",m49:"580",name:"Northern Mariana Islands",aliases:["\u{1F1F2}\u{1F1F5}","cnmi","commonwealth of the northern maria islands","commonwealth of the northern mariana islands","northern marianas","notte marianas","sankattan siha na islas marianas"]},{iso3:"MOZ",iso2:"MZ",m49:"508",name:"Mozambique",aliases:["\u{1F1F2}\u{1F1FF}","mocambique","republic of mozambique","republica de mocambique"]},{iso3:"MRT",iso2:"MR",m49:"478",name:"Mauritania",aliases:["\u{1F1F2}\u{1F1F7}","islamic republic of mauritania","\u0627\u0644\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u0627\u0644\u0625\u0633\u0644\u0627\u0645\u064A\u0629 \u0627\u0644\u0645\u0648\u0631\u064A\u062A\u0627\u0646\u064A\u0629","\u0645\u0648\u0631\u064A\u062A\u0627\u0646\u064A\u0627"]},{iso3:"MSR",iso2:"MS",m49:"500",name:"Montserrat",aliases:["\u{1F1F2}\u{1F1F8}","island of montserrat"]},{iso3:"MTQ",iso2:"MQ",m49:"474",name:"Martinique",aliases:["\u{1F1F2}\u{1F1F6}","territorial collectivity of martinique"]},{iso3:"MUS",iso2:"MU",m49:"480",name:"Mauritius",aliases:["\u{1F1F2}\u{1F1FA}","ile maurice","la republique de maurice","maurice","moris","republic of mauritius","republique de maurice"]},{iso3:"MWI",iso2:"MW",m49:"454",name:"Malawi",aliases:["\u{1F1F2}\u{1F1FC}","republic of malawi"]},{iso3:"MYS",iso2:"MY",m49:"458",name:"Malaysia",aliases:["\u{1F1F2}\u{1F1FE}","federation of malaysia","malaysia federation","negara seberang tambak","persekutuan malaysia"]},{iso3:"MYT",iso2:"YT",m49:"175",name:"Mayotte",aliases:["\u{1F1FE}\u{1F1F9}","departement de mayotte","departement region de mayotte","department of mayotte"]},{iso3:"NAM",iso2:"NA",m49:"516",name:"Namibia",aliases:["\u{1F1F3}\u{1F1E6}","republic of namibia"]},{iso3:"NCL",iso2:"NC",m49:"540",name:"New Caledonia",aliases:["\u{1F1F3}\u{1F1E8}","caledonie","kanaky","kanaky nouvelle caledonie","nouvelle caledonie","territoire de la nouvelle caledonie et dependances","territoire des nouvelle caledonie et dependances","territory of new caledonia and dependencies"]},{iso3:"NER",iso2:"NE",m49:"562",name:"Niger",aliases:["\u{1F1F3}\u{1F1EA}","jamhuriyar nijar","nijar","republic niger","republic of niger","republic of the niger"]},{iso3:"NFK",iso2:"NF",m49:"574",name:"Norfolk Island",aliases:["\u{1F1F3}\u{1F1EB}","norfolk island australia","norfolk island other territories","norfolk island other territories australia","territory of norfolk island"]},{iso3:"NGA",iso2:"NG",m49:"566",name:"Nigeria",aliases:["\u{1F1F3}\u{1F1EC}","federal republic of nigeria","naija"]},{iso3:"NIC",iso2:"NI",m49:"558",name:"Nicaragua",aliases:["\u{1F1F3}\u{1F1EE}","republic of nicaragua","republica de nicaragua"]},{iso3:"NIU",iso2:"NU",m49:"570",name:"Niue",aliases:["\u{1F1F3}\u{1F1FA}"]},{iso3:"NLD",iso2:"NL",m49:"528",name:"Kingdom of the Netherlands",aliases:["\u{1F1F3}\u{1F1F1}","hollandt","kingdom of netherlands","koninkrijk der nederlanden","nederland","nederlanden","nederlandt","netherlands","netherlands kingdom of the"]},{iso3:"NOR",iso2:"NO",m49:"578",name:"Norway",aliases:["\u{1F1F3}\u{1F1F4}","kingdom of norway","kongeriket noreg","kongeriket norge","noreg","norge"]},{iso3:"NPL",iso2:"NP",m49:"524",name:"Nepal",aliases:["\u{1F1F3}\u{1F1F5}","bal bo","bal poi yul","bal yul","balbo","balpo","balpo yul","nipal","sanghiya loktantrik ganatantra nepal","\u0928\u0947\u092A\u093E\u0932","\u0938\u0902\u0918\u093F\u092F \u0932\u094B\u0915\u0924\u093E\u0928\u094D\u0924\u094D\u0930\u093F\u0915 \u0917\u0923\u0924\u0928\u094D\u0924\u094D\u0930 \u0928\u0947\u092A\u093E\u0932","\u0938\u0902\u0918\u093F\u092F \u0932\u094B\u0915\u0924\u093E\u0928\u094D\u0924\u094D\u0930\u093F\u0915 \u0917\u0923\u0924\u0928\u094D\u0924\u094D\u0930\u093E\u0924\u094D\u092E\u0915 \u0928\u0947\u092A\u093E\u0932","\u0938\u0902\u0918\u0940\u092F \u0932\u094B\u0915\u0924\u093E\u0928\u094D\u0924\u094D\u0930\u093F\u0915 \u0917\u0923\u0924\u0928\u094D\u0924\u094D\u0930 \u0928\u0947\u092A\u093E\u0932"]},{iso3:"NRU",iso2:"NR",m49:"520",name:"Naoero",aliases:["\u{1F1F3}\u{1F1F7}","nauru","pleasant island","republic of naoero","republic of nauru"]},{iso3:"NZL",iso2:"NZ",m49:"554",name:"New Zealand",aliases:["\u{1F1F3}\u{1F1FF}","aotearoa","aotearoa new zealand","dominion of new zealand"]},{iso3:"OMN",iso2:"OM",m49:"512",name:"Oman",aliases:["\u{1F1F4}\u{1F1F2}","sultanate of oman","uman","\u0633\u0644\u0637\u0646\u0629 \u0639\u0645\u0627\u0646","\u0639\u0645\u0627\u0646"]},{iso3:"PAK",iso2:"PK",m49:"586",name:"Pakistan",aliases:["\u{1F1F5}\u{1F1F0}","hoi quoc","islamic republic of pakistan","republic of pakistan","tay hoi","\u0627\u0633\u0644\u0627\u0645\u06CC \u062C\u0645\u06C1\u0648\u0631\u06CC\u06C1 \u067E\u0627\u06A9\u0633\u062A\u0627\u0646","\u0628\u0627\u06A9\u0633\u062A\u0627\u0646","\u067E\u0627\u06A9\u0633\u062A\u0627\u0646"]},{iso3:"PAN",iso2:"PA",m49:"591",name:"Panama",aliases:["\u{1F1F5}\u{1F1E6}","republic of panama","republica de panama"]},{iso3:"PCN",iso2:"PN",m49:"612",name:"Pitcairn",aliases:["\u{1F1F5}\u{1F1F3}","occas island","pisskern ali\u0435n","pitcairn henderson ducie and oeno islands","pitcairn island","pitcairn islands","pitkern ailen"]},{iso3:"PER",iso2:"PE",m49:"604",name:"Peru",aliases:["\u{1F1F5}\u{1F1EA}","piruw","piruw ripuwlika","republic of peru","republica del peru"]},{iso3:"PHL",iso2:"PH",m49:"608",name:"Philippines",aliases:["\u{1F1F5}\u{1F1ED}","philippine islands","republic of the philippines"]},{iso3:"PLW",iso2:"PW",m49:"585",name:"Palau",aliases:["\u{1F1F5}\u{1F1FC}","belau","peeloo","pelew","pelew islands","pellew","republic of belau","republic of palau","\u30D1\u30E9\u30AA","\u30D1\u30E9\u30AA\u5171\u548C\u56FD"]},{iso3:"PNG",iso2:"PG",m49:"598",name:"Papua New Guinea",aliases:["\u{1F1F5}\u{1F1EC}","independent state of papua new guinea","papua niugini"]},{iso3:"POL",iso2:"PL",m49:"616",name:"Poland",aliases:["\u{1F1F5}\u{1F1F1}","polska","republic of poland","rzeczpospolita polska"]},{iso3:"PRI",iso2:"PR",m49:"630",name:"Puerto Rico",aliases:["\u{1F1F5}\u{1F1F7}","boriken","borinquen","boriquen","commonwealth of puerto rico","estado libre asociado de puerto rico","free associated state of puerto rico","isla del encanto","island of enchantment","isle of enchantment","mancomunidad de puerto rico","porto rico","territorio de puerto rico","territorio estadounidense de puerto rico","territory of porto rico","territory of puerto rico"]},{iso3:"PRK",iso2:"KP",m49:"408",name:"Democratic People's Republic of Korea",aliases:["\u{1F1F0}\u{1F1F5}","choson minjujuui inmin konghwaguk","dpr korea","dprk","korea democratic peoples republic of","n korea","north korea","\uACF5\uD654\uAD6D","\uBD81\uC870\uC120","\uBD81\uD55C","\uC870\uC120","\uC870\uC120\uBBFC\uC8FC\uC8FC\uC758\uC778\uBBFC\uACF5\uD654\uAD6D"]},{iso3:"PRT",iso2:"PT",m49:"620",name:"Portugal",aliases:["\u{1F1F5}\u{1F1F9}","republica portuguesa"]},{iso3:"PRY",iso2:"PY",m49:"600",name:"Paraguay",aliases:["\u{1F1F5}\u{1F1FE}","paraguai","republic of paraguay","republica del paraguay","teta paraguai"]},{iso3:"PSE",iso2:"PS",m49:"275",name:"State of Palestine",aliases:["\u{1F1F5}\u{1F1F8}","palestine","palestine state of","palestinian authority","palestinian national authority","palestinian territory","west bank and gaza","\u0623\u0631\u0627\u0636\u064A \u0641\u0644\u0633\u0637\u064A\u0646\u064A\u0629","\u0627\u0644\u0623\u0631\u0627\u0636\u064A \u0627\u0644\u0641\u0644\u0633\u0637\u064A\u0646\u064A\u0629","\u0627\u0644\u062F\u0648\u0644\u0629 \u0627\u0644\u0641\u0644\u0633\u0637\u064A\u0646\u064A\u0629","\u0627\u0644\u0633\u0644\u0637\u0629 \u0627\u0644\u0641\u0644\u0633\u0637\u064A\u0646\u064A\u0629","\u0627\u0644\u0633\u0644\u0637\u0629 \u0627\u0644\u0648\u0637\u0646\u064A\u0629 \u0627\u0644\u0641\u0644\u0633\u0637\u064A\u0646\u064A\u0629","\u0627\u0644\u0636\u0641\u0629 \u0627\u0644\u063A\u0631\u0628\u064A\u0629 \u0648\u0642\u0637\u0627\u0639 \u063A\u0632\u0629","\u062F\u0648\u0644\u0629 \u0641\u0644\u0633\u0637\u064A\u0646","\u0641\u0644\u0633\u0637\u064A\u0646"]},{iso3:"PYF",iso2:"PF",m49:"258",name:"French Polynesia",aliases:["\u{1F1F5}\u{1F1EB}","f oh","french establishments in oceania","french oceania","french settlements in oceania","polynesie francaise","territoire de la polynesie francaise","territory of french polynesia"]},{iso3:"QAT",iso2:"QA",m49:"634",name:"Qatar",aliases:["\u{1F1F6}\u{1F1E6}","state of qatar","\u0625\u0645\u0627\u0631\u0629 \u0642\u0637\u0631","\u062F\u0648\u0644\u0629 \u0642\u0637\u0631","\u0642\u0637\u0631"]},{iso3:"REU",iso2:"RE",m49:"638",name:"R\xE9union",aliases:["\u{1F1F7}\u{1F1EA}","ile bourbon","ile de la reunion","la reunion","re","region reunion","reunion island"]},{iso3:"ROU",iso2:"RO",m49:"642",name:"Romania",aliases:["\u{1F1F7}\u{1F1F4}"]},{iso3:"RUS",iso2:"RU",m49:"643",name:"Russian Federation",aliases:["\u{1F1F7}\u{1F1FA}","federation of russia","russia","\u0440\u043E\u0441\u0441\u0438\u0438\u0441\u043A\u0430\u044F \u0444\u0435\u0434\u0435\u0440\u0430\u0446\u0438\u044F","\u0440\u043E\u0441\u0441\u0438\u044F","\u0440\u0444"]},{iso3:"RWA",iso2:"RW",m49:"646",name:"Rwanda",aliases:["\u{1F1F7}\u{1F1FC}","igihugu cyimisozi igihumbi","jamhuri ya rwanda","la republique du rwanda","land of a thousand hills","republic of rwanda","republika yu rwanda","republique du rwanda","republique rwandaise","repubulika yu rwanda","u rwanda"]},{iso3:"SAU",iso2:"SA",m49:"682",name:"Saudi Arabia",aliases:["\u{1F1F8}\u{1F1E6}","kingdom of saudi arabia","\u0627\u0644\u062F\u0648\u0644\u0629 \u0627\u0644\u0633\u0639\u0648\u062F\u064A\u0629","\u0627\u0644\u062F\u0648\u0644\u0647 \u0627\u0644\u0633\u0639\u0648\u062F\u064A\u0647","\u0627\u0644\u0633\u0639\u0648\u062F\u064A\u0629","\u0627\u0644\u0633\u0639\u0648\u062F\u064A\u0647","\u0627\u0644\u0639\u0631\u0628\u064A\u0629 \u0627\u0644\u0633\u0639\u0648\u062F\u064A\u0629","\u0627\u0644\u0645\u0645\u0644\u0643\u0629","\u0627\u0644\u0645\u0645\u0644\u0643\u0629 \u0627\u0644\u0633\u0639\u0648\u062F\u064A\u0629","\u0627\u0644\u0645\u0645\u0644\u0643\u0629 \u0627\u0644\u0639\u0631\u0628\u064A\u0629","\u0627\u0644\u0645\u0645\u0644\u0643\u0629 \u0627\u0644\u0639\u0631\u0628\u064A\u0629 \u0627\u0644\u0633\u0639\u0648\u062F\u064A\u0629","\u0627\u0644\u0645\u0645\u0644\u0643\u0647","\u0627\u0644\u0645\u0645\u0644\u0643\u0647 \u0627\u0644\u0639\u0631\u0628\u064A\u0647 \u0627\u0644\u0633\u0639\u0648\u062F\u064A\u0647","\u0628\u0644\u0627\u062F \u0627\u0644\u062D\u0631\u0645\u064A\u0646 \u0627\u0644\u0634\u0631\u064A\u0641\u064A\u0646","\u062F\u0648\u0644\u0629 \u0622\u0644 \u0633\u0639\u0648\u062F","\u0633\u0639\u0648\u062F\u064A\u0629","\u0633\u0639\u0648\u062F\u064A\u0647","\u0645\u0646\u0628\u0639 \u0627\u0644\u0631\u0633\u0627\u0644\u0629","\u0645\u0647\u0628\u0637 \u0627\u0644\u0648\u062D\u064A"]},{iso3:"SDN",iso2:"SD",m49:"729",name:"Sudan",aliases:["\u{1F1F8}\u{1F1E9}","al sudan","as sudan","north sudan","republic of sudan","republic of the sudan","soudan","\u0627\u0644\u0633\u0648\u062F\u0627\u0646","\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u0627\u0644\u0633\u0648\u062F\u0627\u0646"]},{iso3:"SEN",iso2:"SN",m49:"686",name:"Senegal",aliases:["\u{1F1F8}\u{1F1F3}","la republique du senegal","republic of senegal","republique du senegal","sen","senegaal"]},{iso3:"SGP",iso2:"SG",m49:"702",name:"Singapore",aliases:["\u{1F1F8}\u{1F1EC}","garden city","lion city","republic of singapore","republik singapura","singapore city","singapura","spore","\u0B9A\u0BBF\u0B99\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0BC2\u0BB0\u0BCD","\u0B9A\u0BBF\u0B99\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0BC2\u0BB0\u0BCD \u0B95\u0BC1\u0B9F\u0BBF\u0BAF\u0BB0\u0B9A\u0BC1","\u0B9A\u0BBF\u0B99\u0BCD\u0B95\u0BC8","\u0BB8\u0BBF\u0B99\u0BCD\u0B95\u0BAA\u0BC2\u0BB0\u0BCD"]},{iso3:"SGS",iso2:"GS",m49:"239",name:"South Georgia and the South Sandwich Islands",aliases:["\u{1F1EC}\u{1F1F8}","falkland islands dependencies","sgssi","south georgia","south georgia & south sandwich islands","south sandwich islands"]},{iso3:"SHN",iso2:"SH",m49:"654",name:"Saint Helena",aliases:["\u{1F1F8}\u{1F1ED}","ascension","saint helena and dependencies","saint helena ascension and tristan da cunha","tristan da cunha"]},{iso3:"SJM",iso2:"SJ",m49:"744",name:"Svalbard and Jan Mayen Islands",aliases:["\u{1F1F8}\u{1F1EF}","jan mayen","svalbard","svalbard and jan mayen","svalbard og jan mayen"]},{iso3:"SLB",iso2:"SB",m49:"090",name:"Solomon Islands",aliases:["\u{1F1F8}\u{1F1E7}"]},{iso3:"SLE",iso2:"SL",m49:"694",name:"Sierra Leone",aliases:["\u{1F1F8}\u{1F1F1}","republic of sierra leone"]},{iso3:"SLV",iso2:"SV",m49:"222",name:"El Salvador",aliases:["\u{1F1F8}\u{1F1FB}","republic of el salvador","republica de el salvador","salvador"]},{iso3:"SMR",iso2:"SM",m49:"674",name:"San Marino",aliases:["\u{1F1F8}\u{1F1F2}","most serene republic of san marino","repubblica di san marino","serenissima repubblica di san marino"]},{iso3:"SOM",iso2:"SO",m49:"706",name:"Somalia",aliases:["\u{1F1F8}\u{1F1F4}","as sumal","federal republic of somalia","jamhuuriyadda federaalka soomaaliya","jamhuuriyadda soomaaliyeed","soomaaliya","soomaaliyeey toosoo","\u0627\u0644\u0635\u0648\u0645\u0627\u0644","\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u0627\u0644\u0635\u0648\u0645\u0627\u0644","\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u0627\u0644\u0635\u0648\u0645\u0627\u0644 \u0627\u0644\u062F\u064A\u0645\u0648\u0642\u0631\u0627\u0637\u064A\u0629","\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u0627\u0644\u0635\u0648\u0645\u0627\u0644 \u0627\u0644\u0641\u064A\u062F\u0631\u0627\u0644\u064A\u0629","\u0635\u0648\u0645\u0627\u0644"]},{iso3:"SPM",iso2:"PM",m49:"666",name:"Saint Pierre and Miquelon",aliases:["\u{1F1F5}\u{1F1F2}","collectivite territoriale de saint pierre et miquelon","miquelon","saint pierre","saint pierre et miquelon","territorial collectivity of saint pierre and miquelon"]},{iso3:"SRB",iso2:"RS",m49:"688",name:"Serbia",aliases:["\u{1F1F7}\u{1F1F8}","republic of serbia","republika srbija","\u0440\u0435\u043F\u0443\u0431\u043B\u0438\u043A\u0430 \u0441\u0440\u0431\u0438\u0458\u0430","\u0441\u0440\u0431\u0438\u0458\u0430"]},{iso3:"SSD",iso2:"SS",m49:"728",name:"South Sudan",aliases:["\u{1F1F8}\u{1F1F8}","republic of south sudan","southern sudan"]},{iso3:"STP",iso2:"ST",m49:"678",name:"Sao Tome and Principe",aliases:["\u{1F1F8}\u{1F1F9}","democratic republic of sao tome and principe","principe","republica democratica de sao tome e principe","sao tome","sao tome e principe","sao tome og principe"]},{iso3:"SUR",iso2:"SR",m49:"740",name:"Suriname",aliases:["\u{1F1F8}\u{1F1F7}","dutch guiana","republic of surinam","republic of suriname","republiek suriname","surinam","surrinam"]},{iso3:"SVK",iso2:"SK",m49:"703",name:"Slovakia",aliases:["\u{1F1F8}\u{1F1F0}","slovak republic","slovenska republika","slovensko"]},{iso3:"SVN",iso2:"SI",m49:"705",name:"Slovenia",aliases:["\u{1F1F8}\u{1F1EE}","republic of slovenia","republika slovenija","slovenija"]},{iso3:"SWE",iso2:"SE",m49:"752",name:"Sweden",aliases:["\u{1F1F8}\u{1F1EA}","kingdom of sweden","konungadomet sverige","konungariket sverige","kungadomet sverige","kungariket sverige","sverige","swedish kingdom"]},{iso3:"SWZ",iso2:"SZ",m49:"748",name:"Eswatini",aliases:["\u{1F1F8}\u{1F1FF}","kingdom of eswatini","kingdom of swaziland","swaziland","umbuso weswatini"]},{iso3:"SXM",iso2:"SX",m49:"534",name:"Sint Maarten (Dutch part)",aliases:["\u{1F1F8}\u{1F1FD}","country of sint maarten","eilandgebied sint maarten","land sint maarten","saint maarten","saint martin dutch part","sint maarten","sint martin"]},{iso3:"SYC",iso2:"SC",m49:"690",name:"Seychelles",aliases:["\u{1F1F8}\u{1F1E8}","la republique des seychelles","repiblik sesel","republic of seychelles","republique des seychelles"]},{iso3:"SYR",iso2:"SY",m49:"760",name:"Syrian Arab Republic",aliases:["\u{1F1F8}\u{1F1FE}","surya","syria","\u0627\u0644\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u0627\u0644\u0639\u0631\u0628\u064A\u0629 \u0627\u0644\u0633\u0648\u0631\u064A\u0629","\u0627\u0644\u0634\u0627\u0645","\u0633\u0648\u0631\u064A\u0627","\u0633\u0648\u0631\u064A\u0629"]},{iso3:"TCA",iso2:"TC",m49:"796",name:"Turks and Caicos Islands",aliases:["\u{1F1F9}\u{1F1E8}","caicos","caicos islands","turks","turks & caicos","turks islands"]},{iso3:"TCD",iso2:"TD",m49:"148",name:"Chad",aliases:["\u{1F1F9}\u{1F1E9}","la republique du tchad","republic of chad","republique du tchad","tchad","\u062A\u0634\u0627\u062F","\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u062A\u0634\u0627\u062F"]},{iso3:"TGO",iso2:"TG",m49:"768",name:"Togo",aliases:["\u{1F1F9}\u{1F1EC}","la republique togolaise","republique togolaise","togolese republic"]},{iso3:"THA",iso2:"TH",m49:"764",name:"Thailand",aliases:["\u{1F1F9}\u{1F1ED}","kingdom of siam","kingdom of thailand","siam","thai","\u0E44\u0E17\u0E22","\u0E1B\u0E23\u0E30\u0E40\u0E17\u0E28\u0E44\u0E17\u0E22","\u0E1B\u0E23\u0E30\u0E40\u0E17\u0E28\u0E2A\u0E22\u0E32\u0E21","\u0E40\u0E21\u0E37\u0E2D\u0E07\u0E44\u0E17\u0E22","\u0E23\u0E32\u0E0A\u0E2D\u0E32\u0E13\u0E32\u0E08\u0E31\u0E01\u0E23\u0E44\u0E17\u0E22","\u0E23\u0E32\u0E0A\u0E2D\u0E32\u0E13\u0E32\u0E08\u0E31\u0E01\u0E23\u0E2A\u0E22\u0E32\u0E21","\u0E2A\u0E22\u0E32\u0E21"]},{iso3:"TJK",iso2:"TJ",m49:"762",name:"Tajikistan",aliases:["\u{1F1F9}\u{1F1EF}","jumhurii tojikiston","republic of tajikistan","\u0442\u043E\u04B7\u0438\u043A\u0438\u0441\u0442\u043E\u043D","\u0442\u04B7","\u0442\u04B7\u043A","\u04B7\u0442","\u04B7\u0443\u043C\u04B3\u0443\u0440\u0438\u0438 \u0442\u043E\u04B7\u0438\u043A\u0438\u0441\u0442\u043E\u043D"]},{iso3:"TKL",iso2:"TK",m49:"772",name:"Tokelau",aliases:["\u{1F1F9}\u{1F1F0}","tokelau islands","union islands"]},{iso3:"TKM",iso2:"TM",m49:"795",name:"Turkmenistan",aliases:["\u{1F1F9}\u{1F1F2}"]},{iso3:"TLS",iso2:"TL",m49:"626",name:"Timor-Leste",aliases:["\u{1F1F9}\u{1F1F1}","democratic republic of timor leste","east timor","republica democratica de timor leste","republika demokratika timor lorosae","timor loro sae","timor lorosae"]},{iso3:"TON",iso2:"TO",m49:"776",name:"Tonga",aliases:["\u{1F1F9}\u{1F1F4}","friendly islands","kingdom of tonga","puleanga fakatui o tonga","tonga islands"]},{iso3:"TTO",iso2:"TT",m49:"780",name:"Trinidad and Tobago",aliases:["\u{1F1F9}\u{1F1F9}","republic of trinidad and tobago","tobago","trinidad"]},{iso3:"TUN",iso2:"TN",m49:"788",name:"Tunisia",aliases:["\u{1F1F9}\u{1F1F3}","republic of tunisia","tunisian republic","\u0627\u0644\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u0627\u0644\u062A\u0648\u0646\u0633\u064A\u0629","\u062A\u0648\u0646\u0633","\u062A\u0648\u0646\u0633 \u0627\u0644\u062E\u0636\u0631\u0627\u0621"]},{iso3:"TUR",iso2:"TR",m49:"792",name:"T\xFCrkiye",aliases:["\u{1F1F9}\u{1F1F7}","republic of turkey","republic of turkiye","turkey","turkiye cumhuriyeti"]},{iso3:"TUV",iso2:"TV",m49:"798",name:"Tuvalu",aliases:["\u{1F1F9}\u{1F1FB}","ellice islands"]},{iso3:"TWN",iso2:"TW",m49:"158",name:"Taiwan",aliases:["\u{1F1F9}\u{1F1FC}","chinese republic","chinese taipei","chunghwa minkuo","chunghwa minkwo","conghwaminku","cunghwa minkwo","cyukamingkok","formosa","nanasian","nationalist china","republic of china","republic of china taiwan","roc","taivang","taiwan province of china","taiwan roc","taywan","taywang","teywan","\u4E2D\u83EF\u6C11\u570B","\u4E2D\u83EF\u6C11\u570B\uFF08\u81FA\u7063\uFF09","\u4E2D\u83EF\u81FA\u5317","\u53F0\u7063","\u81FA\u6F8E\u91D1\u99AC","\u81FA\u7063"]},{iso3:"TZA",iso2:"TZ",m49:"834",name:"United Republic of Tanzania",aliases:["\u{1F1F9}\u{1F1FF}","jamhuri ya muungano wa tanganyika na zanzibar","jamhuri ya muungano wa tanzania","tanzania","tanzania jamhuri ya muungano wa","tanzania united republic of","united republic of tanganyika and zanzibar"]},{iso3:"UGA",iso2:"UG",m49:"800",name:"Uganda",aliases:["\u{1F1FA}\u{1F1EC}","jamhuri ya uganda","lulu ya afrika","ouganda","pearl of africa","republic of uganda","ugandah"]},{iso3:"UKR",iso2:"UA",m49:"804",name:"Ukraine",aliases:["\u{1F1FA}\u{1F1E6}","ukr","ukraina","ukrainia","ukrayina","\u0432\u043A\u0440\u0430\u0456\u043D\u0430","\u0443\u043A\u0440\u0430\u0456\u043D\u0430"]},{iso3:"UMI",iso2:"UM",m49:"581",name:"United States Minor Outlying Islands",aliases:["\u{1F1FA}\u{1F1F2}","us minor outlying islands","us outlying islands","usmoi"]},{iso3:"URY",iso2:"UY",m49:"858",name:"Uruguay",aliases:["\u{1F1FA}\u{1F1FE}","eastern republic of uruguay","oriental republic of uruguay"]},{iso3:"USA",iso2:"US",m49:"840",name:"United States of America",aliases:["\u{1F1FA}\u{1F1F8}","amelika","amelika hui pu ia","amelika huipuia","amelika mokuaina hui pu ia","america","eeuu","eeuu de america","estados unidos","estados unidos de america","los estados","los estados unidos","los estados unidos de america","mokuaina hui pu ia","union americana","united states","us","us of a","us of america","usa"]},{iso3:"UZB",iso2:"UZ",m49:"860",name:"Uzbekistan",aliases:["\u{1F1FA}\u{1F1FF}","ozbek","ozbekiston","ozbekiston respublikasi","republic of uzbekistan","uzbekiston respublikasi"]},{iso3:"VAT",iso2:"VA",m49:"336",name:"Holy See",aliases:["\u{1F1FB}\u{1F1E6}","citta del vaticano","civitas vaticana","colle vaticano","papal state","santa sede citta del vaticano","state of vatican city","stato della citta del vaticano","status civitatis vaticanae","status civitatis vatican\xE6","vatican","vatican city","vatican city state","vaticano"]},{iso3:"VCT",iso2:"VC",m49:"670",name:"Saint Vincent and the Grenadines",aliases:["\u{1F1FB}\u{1F1E8}","grenadines","saint vincent","saint vincent and grenadines"]},{iso3:"VEN",iso2:"VE",m49:"862",name:"Venezuela (Bolivarian Republic of)",aliases:["\u{1F1FB}\u{1F1EA}","bolivarian republic of venezuela","br venezuela","estados unidos de venezuela","rb venezuela","republic of venezuela","republica bolivariana de venezuela","republica de venezuela","venezuela"]},{iso3:"VGB",iso2:"VG",m49:"092",name:"British Virgin Islands",aliases:["\u{1F1FB}\u{1F1EC}","bvi","virgin islands british","virgin islands of the united kingdom","virgin islands united kingdom"]},{iso3:"VIR",iso2:"VI",m49:"850",name:"United States Virgin Islands",aliases:["\u{1F1FB}\u{1F1EE}","american virgin islands","us virgin islands","virgin islands of the united states","virgin islands us"]},{iso3:"VNM",iso2:"VN",m49:"704",name:"Viet Nam",aliases:["\u{1F1FB}\u{1F1F3}","chxhcn viet nam","chxhcnvn","cong hoa xa hoi chu nghia viet nam","socialist republic of viet nam","socialist republic of vietnam","vietnam"]},{iso3:"VUT",iso2:"VU",m49:"548",name:"Vanuatu",aliases:["\u{1F1FB}\u{1F1FA}","la republique du vanuatu","republic of vanuatu","republique de vanuatu","ripablik blong vanuatu"]},{iso3:"WLF",iso2:"WF",m49:"876",name:"Wallis and Futuna Islands",aliases:["\u{1F1FC}\u{1F1EB}","collectivite des iles wallis et futuna","emeni simete","futuna","iles wallis et futuna","makape papilio","territoire de wallis et futuna","territoire des iles wallis et futuna","wallis","wallis & futuna","wallis et futuna"]},{iso3:"WSM",iso2:"WS",m49:"882",name:"Samoa",aliases:["\u{1F1FC}\u{1F1F8}","independent state of samoa","malo saoloto tutoatasi o samoa","samoa i sisifo","western samoa"]},{iso3:"YEM",iso2:"YE",m49:"887",name:"Yemen",aliases:["\u{1F1FE}\u{1F1EA}","rep yemen","republic of yemen","\u0627\u0644\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u0627\u0644\u064A\u0645\u0646\u064A\u0629","\u0627\u0644\u064A\u0645\u0646","\u062F\u0648\u0644\u0629 \u0627\u0644\u064A\u0645\u0646"]},{iso3:"ZAF",iso2:"ZA",m49:"710",name:"South Africa",aliases:["\u{1F1FF}\u{1F1E6}","aferika borwa","aforika borwa","afrika boroa","afrika borwa","afrika dzonga","afurika tshipembe","emzantsi afrika","iningizimu afrika","iriphabhulikhi ye ningizimu afrika","iriphabhulikhi yeningizimu afrika","iriphabhuliki yase ningizimu afrika","iriphabliki yasemzantsi afrika","iriphabliki yaseningizimu afrika","iriphabliki yom zantsi afrika","isewula afrika","repabliki ya afrika borwa","rephaboliki ya aforika borwa","rephaboliki ya afrika borwa","republic of south africa","republiek van suid afrika","riphabliki ra afrika dzonga","rsa","suid afrika","umzansi","umzantsi afrika","unie van suid afrika","union of south africa"]},{iso3:"ZMB",iso2:"ZM",m49:"894",name:"Zambia",aliases:["\u{1F1FF}\u{1F1F2}","northern rhodesia","republic of zambia"]},{iso3:"ZWE",iso2:"ZW",m49:"716",name:"Zimbabwe",aliases:["\u{1F1FF}\u{1F1FC}","ezimbabwe","izimbabwe","republic of zimbabwe","rhodesia","southern rhodesia","zimbabwe rhodesia","zimbagwe"]}];function z8(e){return e.normalize("NFD").replace(/[\u0300-\u036F]/g,"").normalize("NFC").toLowerCase().replace(/[\u064B-\u065F]/g,"").replace(/['\u2018\u2019\u02BB\u02BC\u02BD\u02C8\u2032`]/g,"").replace(/&/g," and ").replace(/([,(])\s*the\b/g,"$1").replace(/[.(),[\]]/g,"").replace(/[-\u2013\u2014]/g," ").replace(/\bst\b/g,"saint").trim().replace(/\s+/g," ").replace(/^the\s+/,"")}function sU(e){let r=new Map,t=new Map,a=new Map;for(let l of e)r.set(l.iso3,l),l.iso2&&t.set(l.iso2,l),l.m49&&a.set(l.m49,l);let n=new Map;for(let l of e)for(let s of[l.name,...l.aliases]){let u=z8(s),f=n.get(u);if(f!==void 0&&f!==l.iso3)throw new Error(`Duplicate name/alias "${u}": ${f} vs ${l.iso3}`);n.set(u,l.iso3)}function i(l){if(l==null)return;let s=String(l).trim();if(!s)return;if(/^\d+$/.test(s)){let f=a.get(String(parseInt(s,10)).padStart(3,"0"));if(f)return f}if(/^[A-Za-z]{2}$/.test(s)){let f=t.get(s.toUpperCase());if(f)return f}if(/^[A-Za-z]{3}$/.test(s)){let f=r.get(s.toUpperCase());if(f)return f}let u=n.get(z8(s));return u===void 0?void 0:r.get(u)}function o(l){var s;return(s=i(l))==null?void 0:s.iso3}return{lookup:i,lookupAlpha3:o,byAlpha3:r,byAlpha2:t,byM49:a}}var ld=sU(lU),qme=ld.lookup,Pme=ld.lookupAlpha3,Rme=ld.byAlpha3,zme=ld.byAlpha2,Nme=ld.byM49});var $3=oe(ya=>{"use strict";Object.defineProperty(ya,"__esModule",{value:!0});var An=63710088e-1,I8={centimeters:An*100,centimetres:An*100,cm:An*100,degrees:360/(2*Math.PI),deg:360/(2*Math.PI),feet:An*3.28084,ft:An*3.28084,inches:An*39.37,in:An*39.37,kilometers:An/1e3,kilometres:An/1e3,km:An/1e3,meters:An,metres:An,m:An,miles:An/1609.344,mi:An/1609.344,millimeters:An*1e3,millimetres:An*1e3,mm:An*1e3,nauticalmiles:An/1852,nmi:An/1852,radians:1,rad:1,yards:An*1.0936,yd:An*1.0936},B8={acres:247105e-9,ac:247105e-9,centimeters:1e4,centimetres:1e4,cm:1e4,feet:10.763910417,ft:10.763910417,hectares:1e-4,ha:1e-4,inches:1550.003100006,in:1550.003100006,kilometers:1e-6,kilometres:1e-6,km:1e-6,meters:1,metres:1,m:1,miles:386e-9,mi:386e-9,nauticalmiles:29155334959812285e-23,nmi:29155334959812285e-23,millimeters:1e6,millimetres:1e6,mm:1e6,yards:1.195990046,yd:1.195990046};function K0(e,r,t={}){let a={type:"Feature"};return(t.id===0||t.id)&&(a.id=t.id),t.bbox&&(a.bbox=t.bbox),a.properties=r||{},a.geometry=e,a}function Bme(e,r,t={}){switch(e){case"Point":return H8(r).geometry;case"LineString":return U8(r).geometry;case"Polygon":return O8(r).geometry;case"MultiPoint":return vU(r).geometry;case"MultiLineString":return cU(r).geometry;case"MultiPolygon":return hU(r).geometry;default:throw new Error(e+" is invalid")}}function H8(e,r,t={}){if(!e)throw new Error("coordinates is required");if(!Array.isArray(e))throw new Error("coordinates must be an Array");if(e.length<2)throw new Error("coordinates must be at least 2 numbers long");if(!W3(e[0])||!W3(e[1]))throw new Error("coordinates must contain numbers");return K0({type:"Point",coordinates:e},r,t)}function Ime(e,r,t={}){return Z3(e.map(a=>H8(a,r)),t)}function O8(e,r,t={}){for(let n of e){if(n.length<4)throw new Error("Each LinearRing of a Polygon must have 4 or more Positions.");if(n[n.length-1].length!==n[0].length)throw new Error("First and last Position are not equivalent.");for(let i=0;iO8(a,r)),t)}function U8(e,r,t={}){if(e.length<2)throw new Error("coordinates must be an array of two or more positions");return K0({type:"LineString",coordinates:e},r,t)}function Ome(e,r,t={}){return Z3(e.map(a=>U8(a,r)),t)}function Z3(e,r={}){let t={type:"FeatureCollection"};return r.id&&(t.id=r.id),r.bbox&&(t.bbox=r.bbox),t.features=e,t}function cU(e,r,t={}){return K0({type:"MultiLineString",coordinates:e},r,t)}function vU(e,r,t={}){return K0({type:"MultiPoint",coordinates:e},r,t)}function hU(e,r,t={}){return K0({type:"MultiPolygon",coordinates:e},r,t)}function Ume(e,r,t={}){return K0({type:"GeometryCollection",geometries:e},r,t)}function Gme(e,r=0){if(r&&!(r>=0))throw new Error("precision must be a positive number");let t=Math.pow(10,r||0);return Math.round(e*t)/t}function dU(e,r="kilometers"){let t=I8[r];if(!t)throw new Error(r+" units is invalid");return e*t}function G8(e,r="kilometers"){let t=I8[r];if(!t)throw new Error(r+" units is invalid");return e/t}function Yme(e,r){return pU(G8(e,r))}function Vme(e){let r=e%360;return r<0&&(r+=360),r}function Xme(e){return e=e%360,e>180?e-360:e<-180?e+360:e}function pU(e){return e%(2*Math.PI)*180/Math.PI}function jme(e){return e%360*Math.PI/180}function Wme(e,r="kilometers",t="kilometers"){if(!(e>=0))throw new Error("length must be a positive number");return dU(G8(e,r),t)}function Zme(e,r="meters",t="kilometers"){if(!(e>=0))throw new Error("area must be a positive number");let a=B8[r];if(!a)throw new Error("invalid original units");let n=B8[t];if(!n)throw new Error("invalid final units");return e/a*n}function W3(e){return!isNaN(e)&&e!==null&&!Array.isArray(e)}function $me(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function j3(e){delete e.bbox,e.type==="Feature"?e.geometry&&j3(e.geometry):e.type==="FeatureCollection"?e.features.forEach(j3):e.type==="GeometryCollection"&&e.geometries.forEach(j3)}function Jme(e){if(!e)throw new Error("bbox is required");if(!Array.isArray(e))throw new Error("bbox must be an Array");if(e.length!==4&&e.length!==6)throw new Error("bbox must be an Array of 4 or 6 numbers");e.forEach(r=>{if(!W3(r))throw new Error("bbox must only contain numbers")})}function Kme(e){if(!e)throw new Error("id is required");if(["string","number"].indexOf(typeof e)===-1)throw new Error("id must be a number or a string")}ya.areaFactors=B8;ya.azimuthToBearing=Xme;ya.bearingToAzimuth=Vme;ya.convertArea=Zme;ya.convertLength=Wme;ya.degreesToRadians=jme;ya.earthRadius=An;ya.factors=I8;ya.feature=K0;ya.featureCollection=Z3;ya.geometry=Bme;ya.geometryCollection=Ume;ya.isNumber=W3;ya.isObject=$me;ya.lengthToDegrees=Yme;ya.lengthToRadians=G8;ya.lineString=U8;ya.lineStrings=Ome;ya.multiLineString=cU;ya.multiPoint=vU;ya.multiPolygon=hU;ya.point=H8;ya.points=Ime;ya.polygon=O8;ya.polygons=Hme;ya.radiansToDegrees=pU;ya.radiansToLength=dU;ya.removeBbox=j3;ya.round=Gme;ya.validateBBox=Jme;ya.validateId=Kme});var K3=oe(Zn=>{"use strict";Object.defineProperty(Zn,"__esModule",{value:!0});var qi=$3();function sd(e,r,t){if(e!==null)for(var a,n,i,o,l,s,u,f=0,c=0,h,d=e.type,p=d==="FeatureCollection",m=d==="Feature",b=p?e.features.length:1,y=0;ys||p>u||m>f){l=c,s=a,u=p,f=m,i=0;return}var b=qi.lineString.call(void 0,[l,c],t.properties);if(r(b,a,n,m,i)===!1)return!1;i++,l=c})===!1)return!1}}})}function ige(e,r,t){var a=t,n=!1;return yU(e,function(i,o,l,s,u){n===!1&&t===void 0?a=i:a=r(a,i,o,l,s,u),n=!0}),a}function bU(e,r){if(!e)throw new Error("geojson is required");J3(e,function(t,a,n){if(t.geometry!==null){var i=t.geometry.type,o=t.geometry.coordinates;switch(i){case"LineString":if(r(t,a,n,0,0)===!1)return!1;break;case"Polygon":for(var l=0;l{"use strict";Object.defineProperty(Q3,"__esModule",{value:!0});var _U=$3(),uge=K3();function AU(e){return uge.geomReduce.call(void 0,e,(r,t)=>r+fge(t),0)}function fge(e){let r=0,t;switch(e.type){case"Polygon":return xU(e.coordinates);case"MultiPolygon":for(t=0;t0){r+=Math.abs(wU(e[0]));for(let t=1;t=r?(a+2)%r:a+2],l=n[0]*V8,s=i[1]*V8,u=o[0]*V8;t+=(u-l)*Math.sin(s),a++}return t*cge}var vge=AU;Q3.area=AU;Q3.default=vge});var kU=oe(ey=>{"use strict";Object.defineProperty(ey,"__esModule",{value:!0});var hge=$3(),dge=K3();function TU(e,r={}){let t=0,a=0,n=0;return dge.coordEach.call(void 0,e,function(i){t+=i[0],a+=i[1],n++},!0),hge.point.call(void 0,[t/n,a/n],r.properties)}var pge=TU;ey.centroid=TU;ey.default=pge});var SU=oe((ry,CU)=>{(function(e,r){r(typeof ry=="object"&&typeof CU!="undefined"?ry:e.d3=e.d3||{})})(ry,(function(e){"use strict";function r(W,se){return Wse?1:W>=se?0:NaN}function t(W){return W.length===1&&(W=a(W)),{left:function(se,he,K,J){for(K==null&&(K=0),J==null&&(J=se.length);K>>1;W(se[fe],he)<0?K=fe+1:J=fe}return K},right:function(se,he,K,J){for(K==null&&(K=0),J==null&&(J=se.length);K>>1;W(se[fe],he)>0?J=fe:K=fe+1}return K}}}function a(W){return function(se,he){return r(W(se),he)}}var n=t(r),i=n.right,o=n.left;function l(W,se){se==null&&(se=s);for(var he=0,K=W.length-1,J=W[0],fe=new Array(K<0?0:K);heW?1:se>=W?0:NaN}function c(W){return W===null?NaN:+W}function h(W,se){var he=W.length,K=0,J=-1,fe=0,be,Ne,Ze=0;if(se==null)for(;++J1)return Ze/(K-1)}function d(W,se){var he=h(W,se);return he&&Math.sqrt(he)}function p(W,se){var he=W.length,K=-1,J,fe,be;if(se==null){for(;++K=J)for(fe=be=J;++KJ&&(fe=J),be=J)for(fe=be=J;++KJ&&(fe=J),be0)return[W];if((K=se0)for(W=Math.ceil(W/Ne),se=Math.floor(se/Ne),be=new Array(fe=Math.ceil(se-W+1));++J=0?(fe>=A?10:fe>=k?5:fe>=M?2:1)*Math.pow(10,J):-Math.pow(10,-J)/(fe>=A?10:fe>=k?5:fe>=M?2:1)}function z(W,se,he){var K=Math.abs(se-W)/Math.max(0,he),J=Math.pow(10,Math.floor(Math.log(K)/Math.LN10)),fe=K/J;return fe>=A?J*=10:fe>=k?J*=5:fe>=M&&(J*=2),setr;)ze.pop(),--lr;var hr=new Array(lr+1),Ar;for(fe=0;fe<=lr;++fe)Ar=hr[fe]=[],Ar.x0=fe>0?ze[fe-1]:Je,Ar.x1=fe=1)return+he(W[K-1],K-1,W);var K,J=(K-1)*se,fe=Math.floor(J),be=+he(W[fe],fe,W),Ne=+he(W[fe+1],fe+1,W);return be+(Ne-be)*(J-fe)}}function X(W,se,he){return W=y.call(W,c).sort(r),Math.ceil((he-se)/(2*(H(W,.75)-H(W,.25))*Math.pow(W.length,-1/3)))}function N(W,se,he){return Math.ceil((he-se)/(3.5*d(W)*Math.pow(W.length,-1/3)))}function Q(W,se){var he=W.length,K=-1,J,fe;if(se==null){for(;++K=J)for(fe=J;++Kfe&&(fe=J)}else for(;++K=J)for(fe=J;++Kfe&&(fe=J);return fe}function ee(W,se){var he=W.length,K=he,J=-1,fe,be=0;if(se==null)for(;++J=0;)for(be=W[se],he=be.length;--he>=0;)fe[--J]=be[he];return fe}function ie(W,se){var he=W.length,K=-1,J,fe;if(se==null){for(;++K=J)for(fe=J;++KJ&&(fe=J)}else for(;++K=J)for(fe=J;++KJ&&(fe=J);return fe}function le(W,se){for(var he=se.length,K=new Array(he);he--;)K[he]=W[se[he]];return K}function xe(W,se){if(he=W.length){var he,K=0,J=0,fe,be=W[J];for(se==null&&(se=r);++K{(function(e,r){typeof ty=="object"&&typeof DU!="undefined"?r(ty,SU()):(e=e||self,r(e.d3=e.d3||{},e.d3))})(ty,(function(e,r){"use strict";function t(){return new a}function a(){this.reset()}a.prototype={constructor:a,reset:function(){this.s=this.t=0},add:function(O){i(n,O,this.t),i(this,n.s,this.s),this.s?this.t+=n.t:this.s=n.t},valueOf:function(){return this.s}};var n=new a;function i(O,$,de){var ue=O.s=$+de,Me=ue-$,Oe=ue-Me;O.t=$-Oe+(de-Me)}var o=1e-6,l=1e-12,s=Math.PI,u=s/2,f=s/4,c=s*2,h=180/s,d=s/180,p=Math.abs,m=Math.atan,b=Math.atan2,y=Math.cos,C=Math.ceil,x=Math.exp,_=Math.log,A=Math.pow,k=Math.sin,M=Math.sign||function(O){return O>0?1:O<0?-1:0},E=Math.sqrt,P=Math.tan;function z(O){return O>1?0:O<-1?s:Math.acos(O)}function I(O){return O>1?u:O<-1?-u:Math.asin(O)}function V(O){return(O=k(O/2))*O}function H(){}function X(O,$){O&&Q.hasOwnProperty(O.type)&&Q[O.type](O,$)}var N={Feature:function(O,$){X(O.geometry,$)},FeatureCollection:function(O,$){for(var de=O.features,ue=-1,Me=de.length;++ue=0?1:-1,Me=ue*de,Oe=y($),We=k($),rr=ke*We,ir=Ee*Oe+rr*y(Me),gr=rr*ue*k(Me);ie.add(b(gr,ir)),Ye=O,Ee=Oe,ke=We}function J(O){return le.reset(),ae(O,je),le*2}function fe(O){return[b(O[1],O[0]),I(O[2])]}function be(O){var $=O[0],de=O[1],ue=y(de);return[ue*y($),ue*k($),k(de)]}function Ne(O,$){return O[0]*$[0]+O[1]*$[1]+O[2]*$[2]}function Ze(O,$){return[O[1]*$[2]-O[2]*$[1],O[2]*$[0]-O[0]*$[2],O[0]*$[1]-O[1]*$[0]]}function er(O,$){O[0]+=$[0],O[1]+=$[1],O[2]+=$[2]}function Je(O,$){return[O[0]*$,O[1]*$,O[2]*$]}function tr(O){var $=E(O[0]*O[0]+O[1]*O[1]+O[2]*O[2]);O[0]/=$,O[1]/=$,O[2]/=$}var ze,lr,hr,Ar,Qe,mr,qr,Te,Ue=t(),_r,Pr,Nr={point:Ce,lineStart:cr,lineEnd:Mr,polygonStart:function(){Nr.point=vr,Nr.lineStart=kr,Nr.lineEnd=Er,Ue.reset(),je.polygonStart()},polygonEnd:function(){je.polygonEnd(),Nr.point=Ce,Nr.lineStart=cr,Nr.lineEnd=Mr,ie<0?(ze=-(hr=180),lr=-(Ar=90)):Ue>o?Ar=90:Ue<-o&&(lr=-90),Pr[0]=ze,Pr[1]=hr},sphere:function(){ze=-(hr=180),lr=-(Ar=90)}};function Ce(O,$){_r.push(Pr=[ze=O,hr=O]),$Ar&&(Ar=$)}function He(O,$){var de=be([O*d,$*d]);if(Te){var ue=Ze(Te,de),Me=[ue[1],-ue[0],0],Oe=Ze(Me,ue);tr(Oe),Oe=fe(Oe);var We=O-Qe,rr=We>0?1:-1,ir=Oe[0]*h*rr,gr,$e=p(We)>180;$e^(rr*QeAr&&(Ar=gr)):(ir=(ir+360)%360-180,$e^(rr*QeAr&&(Ar=$))),$e?Ojr(ze,hr)&&(hr=O):jr(O,hr)>jr(ze,hr)&&(ze=O):hr>=ze?(Ohr&&(hr=O)):O>Qe?jr(ze,O)>jr(ze,hr)&&(hr=O):jr(O,hr)>jr(ze,hr)&&(ze=O)}else _r.push(Pr=[ze=O,hr=O]);$Ar&&(Ar=$),Te=de,Qe=O}function cr(){Nr.point=He}function Mr(){Pr[0]=ze,Pr[1]=hr,Nr.point=Ce,Te=null}function vr(O,$){if(Te){var de=O-Qe;Ue.add(p(de)>180?de+(de>0?360:-360):de)}else mr=O,qr=$;je.point(O,$),He(O,$)}function kr(){je.lineStart()}function Er(){vr(mr,qr),je.lineEnd(),p(Ue)>o&&(ze=-(hr=180)),Pr[0]=ze,Pr[1]=hr,Te=null}function jr(O,$){return($-=O)<0?$+360:$}function et(O,$){return O[0]-$[0]}function nr(O,$){return O[0]<=O[1]?O[0]<=$&&$<=O[1]:$jr(ue[0],ue[1])&&(ue[1]=Me[1]),jr(Me[0],ue[1])>jr(ue[0],ue[1])&&(ue[0]=Me[0])):Oe.push(ue=Me);for(We=-1/0,de=Oe.length-1,$=0,ue=Oe[de];$<=de;ue=Me,++$)Me=Oe[$],(rr=jr(ue[1],Me[0]))>We&&(We=rr,ze=Me[0],hr=ue[1])}return _r=Pr=null,ze===1/0||lr===1/0?[[NaN,NaN],[NaN,NaN]]:[[ze,lr],[hr,Ar]]}var ar,Fr,Wr,Br,Zr,Ae,Be,or,dr,Dt,Wt,ba,_a,Xt,Ht,la,Pt={sphere:H,point:Ta,lineStart:Xa,lineEnd:Fa,polygonStart:function(){Pt.lineStart=Rr,Pt.lineEnd=Vt},polygonEnd:function(){Pt.lineStart=Xa,Pt.lineEnd=Fa}};function Ta(O,$){O*=d,$*=d;var de=y($);pa(de*y(O),de*k(O),k($))}function pa(O,$,de){++ar,Wr+=(O-Wr)/ar,Br+=($-Br)/ar,Zr+=(de-Zr)/ar}function Xa(){Pt.point=hn}function hn(O,$){O*=d,$*=d;var de=y($);Xt=de*y(O),Ht=de*k(O),la=k($),Pt.point=ja,pa(Xt,Ht,la)}function ja(O,$){O*=d,$*=d;var de=y($),ue=de*y(O),Me=de*k(O),Oe=k($),We=b(E((We=Ht*Oe-la*Me)*We+(We=la*ue-Xt*Oe)*We+(We=Xt*Me-Ht*ue)*We),Xt*ue+Ht*Me+la*Oe);Fr+=We,Ae+=We*(Xt+(Xt=ue)),Be+=We*(Ht+(Ht=Me)),or+=We*(la+(la=Oe)),pa(Xt,Ht,la)}function Fa(){Pt.point=Ta}function Rr(){Pt.point=Et}function Vt(){Zt(ba,_a),Pt.point=Ta}function Et(O,$){ba=O,_a=$,O*=d,$*=d,Pt.point=Zt;var de=y($);Xt=de*y(O),Ht=de*k(O),la=k($),pa(Xt,Ht,la)}function Zt(O,$){O*=d,$*=d;var de=y($),ue=de*y(O),Me=de*k(O),Oe=k($),We=Ht*Oe-la*Me,rr=la*ue-Xt*Oe,ir=Xt*Me-Ht*ue,gr=E(We*We+rr*rr+ir*ir),$e=I(gr),fr=gr&&-$e/gr;dr+=fr*We,Dt+=fr*rr,Wt+=fr*ir,Fr+=$e,Ae+=$e*(Xt+(Xt=ue)),Be+=$e*(Ht+(Ht=Me)),or+=$e*(la+(la=Oe)),pa(Xt,Ht,la)}function ma(O){ar=Fr=Wr=Br=Zr=Ae=Be=or=dr=Dt=Wt=0,ae(O,Pt);var $=dr,de=Dt,ue=Wt,Me=$*$+de*de+ue*ue;return Mes?O+Math.round(-O/c)*c:O,$]}$t.invert=$t;function Na(O,$,de){return(O%=c)?$||de?Rt(Pi(O),Kn($,de)):Pi(O):$||de?Kn($,de):$t}function Jn(O){return function($,de){return $+=O,[$>s?$-c:$<-s?$+c:$,de]}}function Pi(O){var $=Jn(O);return $.invert=Jn(-O),$}function Kn(O,$){var de=y(O),ue=k(O),Me=y($),Oe=k($);function We(rr,ir){var gr=y(ir),$e=y(rr)*gr,fr=k(rr)*gr,sr=k(ir),wr=sr*de+$e*ue;return[b(fr*Me-wr*Oe,$e*de-sr*ue),I(wr*Me+fr*Oe)]}return We.invert=function(rr,ir){var gr=y(ir),$e=y(rr)*gr,fr=k(rr)*gr,sr=k(ir),wr=sr*Me-fr*Oe;return[b(fr*Me+sr*Oe,$e*de+wr*ue),I(wr*de-$e*ue)]},We}function Ba(O){O=Na(O[0]*d,O[1]*d,O.length>2?O[2]*d:0);function $(de){return de=O(de[0]*d,de[1]*d),de[0]*=h,de[1]*=h,de}return $.invert=function(de){return de=O.invert(de[0]*d,de[1]*d),de[0]*=h,de[1]*=h,de},$}function ml(O,$,de,ue,Me,Oe){if(de){var We=y($),rr=k($),ir=ue*de;Me==null?(Me=$+ue*c,Oe=$-ir/2):(Me=Qa(We,Me),Oe=Qa(We,Oe),(ue>0?MeOe)&&(Me+=ue*c));for(var gr,$e=Me;ue>0?$e>Oe:$e1&&O.push(O.pop().concat(O.shift()))},result:function(){var de=O;return O=[],$=null,de}}}function Ia(O,$){return p(O[0]-$[0])=0;--rr)Me.point((fr=$e[rr])[0],fr[1]);else ue(sr.x,sr.p.x,-1,Me);sr=sr.p}sr=sr.o,$e=sr.z,wr=!wr}while(!sr.v);Me.lineEnd()}}}function Vi(O){if($=O.length){for(var $,de=0,ue=O[0],Me;++de<$;)ue.n=Me=O[de],Me.p=ue,ue=Me;ue.n=Me=O[0],Me.p=ue}}var Ri=t();function os(O){return p(O[0])<=s?O[0]:M(O[0])*((p(O[0])+s)%c-s)}function ls(O,$){var de=os($),ue=$[1],Me=k(ue),Oe=[k(de),-y(de),0],We=0,rr=0;Ri.reset(),Me===1?ue=u+o:Me===-1&&(ue=-u-o);for(var ir=0,gr=O.length;ir=0?1:-1,ea=ua*Jt,xa=ea>s,zt=lt*vt;if(Ri.add(b(zt*ua*k(ea),rt*xt+zt*y(ea))),We+=xa?Jt+ua*c:Jt,xa^wr>=de^Lr>=de){var Cn=Ze(be(sr),be(ft));tr(Cn);var rn=Ze(Oe,Cn);tr(rn);var wa=(xa^Jt>=0?-1:1)*I(rn[2]);(ue>wa||ue===wa&&(Cn[0]||Cn[1]))&&(rr+=xa^Jt>=0?1:-1)}}return(We<-o||We0){for(ir||(Me.polygonStart(),ir=!0),Me.lineStart(),xt=0;xt1&&Ur&2&&vt.push(vt.pop().concat(vt.shift())),$e.push(vt.filter(ss))}}return sr}}function ss(O){return O.length>1}function Qs(O,$){return((O=O.x)[0]<0?O[1]-u-o:u-O[1])-(($=$.x)[0]<0?$[1]-u-o:u-$[1])}var ot=Ks(function(){return!0},st,Or,[-s,-u]);function st(O){var $=NaN,de=NaN,ue=NaN,Me;return{lineStart:function(){O.lineStart(),Me=1},point:function(Oe,We){var rr=Oe>0?s:-s,ir=p(Oe-$);p(ir-s)0?u:-u),O.point(ue,de),O.lineEnd(),O.lineStart(),O.point(rr,de),O.point(Oe,de),Me=0):ue!==rr&&ir>=s&&(p($-ue)o?m((k($)*(Oe=y(ue))*k(de)-k(ue)*(Me=y($))*k(O))/(Me*Oe*We)):($+ue)/2}function Or(O,$,de,ue){var Me;if(O==null)Me=de*u,ue.point(-s,Me),ue.point(0,Me),ue.point(s,Me),ue.point(s,0),ue.point(s,-Me),ue.point(0,-Me),ue.point(-s,-Me),ue.point(-s,0),ue.point(-s,Me);else if(p(O[0]-$[0])>o){var Oe=O[0]<$[0]?s:-s;Me=de*Oe/2,ue.point(-Oe,Me),ue.point(0,Me),ue.point(Oe,Me)}else ue.point($[0],$[1])}function Mn(O){var $=y(O),de=6*d,ue=$>0,Me=p($)>o;function Oe($e,fr,sr,wr){ml(wr,O,de,sr,$e,fr)}function We($e,fr){return y($e)*y(fr)>$}function rr($e){var fr,sr,wr,Dr,lt;return{lineStart:function(){Dr=wr=!1,lt=1},point:function(rt,ut){var ft=[rt,ut],Lr,Ur=We(rt,ut),vt=ue?Ur?0:gr(rt,ut):Ur?gr(rt+(rt<0?s:-s),ut):0;if(!fr&&(Dr=wr=Ur)&&$e.lineStart(),Ur!==wr&&(Lr=ir(fr,ft),(!Lr||Ia(fr,Lr)||Ia(ft,Lr))&&(ft[2]=1)),Ur!==wr)lt=0,Ur?($e.lineStart(),Lr=ir(ft,fr),$e.point(Lr[0],Lr[1])):(Lr=ir(fr,ft),$e.point(Lr[0],Lr[1],2),$e.lineEnd()),fr=Lr;else if(Me&&fr&&ue^Ur){var xt;!(vt&sr)&&(xt=ir(ft,fr,!0))&&(lt=0,ue?($e.lineStart(),$e.point(xt[0][0],xt[0][1]),$e.point(xt[1][0],xt[1][1]),$e.lineEnd()):($e.point(xt[1][0],xt[1][1]),$e.lineEnd(),$e.lineStart(),$e.point(xt[0][0],xt[0][1],3)))}Ur&&(!fr||!Ia(fr,ft))&&$e.point(ft[0],ft[1]),fr=ft,wr=Ur,sr=vt},lineEnd:function(){wr&&$e.lineEnd(),fr=null},clean:function(){return lt|(Dr&&wr)<<1}}}function ir($e,fr,sr){var wr=be($e),Dr=be(fr),lt=[1,0,0],rt=Ze(wr,Dr),ut=Ne(rt,rt),ft=rt[0],Lr=ut-ft*ft;if(!Lr)return!sr&&$e;var Ur=$*ut/Lr,vt=-$*ft/Lr,xt=Ze(lt,rt),Jt=Je(lt,Ur),ua=Je(rt,vt);er(Jt,ua);var ea=xt,xa=Ne(Jt,ea),zt=Ne(ea,ea),Cn=xa*xa-zt*(Ne(Jt,Jt)-1);if(!(Cn<0)){var rn=E(Cn),wa=Je(ea,(-xa-rn)/zt);if(er(wa,Jt),wa=fe(wa),!sr)return wa;var Vr=$e[0],Kt=fr[0],un=$e[1],Rn=fr[1],yi;Kt0^wa[1]<(p(wa[0]-Vr)s^(Vr<=wa[0]&&wa[0]<=Kt)){var Bi=Je(ea,(-xa+rn)/zt);return er(Bi,Jt),[wa,fe(Bi)]}}}function gr($e,fr){var sr=ue?O:s-O,wr=0;return $e<-sr?wr|=1:$e>sr&&(wr|=2),fr<-sr?wr|=4:fr>sr&&(wr|=8),wr}return Ks(We,rr,Oe,ue?[0,-O]:[-s,O-s])}function sa(O,$,de,ue,Me,Oe){var We=O[0],rr=O[1],ir=$[0],gr=$[1],$e=0,fr=1,sr=ir-We,wr=gr-rr,Dr;if(Dr=de-We,!(!sr&&Dr>0)){if(Dr/=sr,sr<0){if(Dr<$e)return;Dr0){if(Dr>fr)return;Dr>$e&&($e=Dr)}if(Dr=Me-We,!(!sr&&Dr<0)){if(Dr/=sr,sr<0){if(Dr>fr)return;Dr>$e&&($e=Dr)}else if(sr>0){if(Dr<$e)return;Dr0)){if(Dr/=wr,wr<0){if(Dr<$e)return;Dr0){if(Dr>fr)return;Dr>$e&&($e=Dr)}if(Dr=Oe-rr,!(!wr&&Dr<0)){if(Dr/=wr,wr<0){if(Dr>fr)return;Dr>$e&&($e=Dr)}else if(wr>0){if(Dr<$e)return;Dr0&&(O[0]=We+$e*sr,O[1]=rr+$e*wr),fr<1&&($[0]=We+fr*sr,$[1]=rr+fr*wr),!0}}}}}var Wa=1e9,en=-Wa;function Vn(O,$,de,ue){function Me(gr,$e){return O<=gr&&gr<=de&&$<=$e&&$e<=ue}function Oe(gr,$e,fr,sr){var wr=0,Dr=0;if(gr==null||(wr=We(gr,fr))!==(Dr=We($e,fr))||ir(gr,$e)<0^fr>0)do sr.point(wr===0||wr===3?O:de,wr>1?ue:$);while((wr=(wr+fr+4)%4)!==Dr);else sr.point($e[0],$e[1])}function We(gr,$e){return p(gr[0]-O)0?0:3:p(gr[0]-de)0?2:1:p(gr[1]-$)0?1:0:$e>0?3:2}function rr(gr,$e){return ir(gr.x,$e.x)}function ir(gr,$e){var fr=We(gr,1),sr=We($e,1);return fr!==sr?fr-sr:fr===0?$e[1]-gr[1]:fr===1?gr[0]-$e[0]:fr===2?gr[1]-$e[1]:$e[0]-gr[0]}return function(gr){var $e=gr,fr=co(),sr,wr,Dr,lt,rt,ut,ft,Lr,Ur,vt,xt,Jt={point:ua,lineStart:Cn,lineEnd:rn,polygonStart:xa,polygonEnd:zt};function ua(Vr,Kt){Me(Vr,Kt)&&$e.point(Vr,Kt)}function ea(){for(var Vr=0,Kt=0,un=wr.length;Ktue&&(El-Fl)*(ue-Bi)>(As-Bi)*(O-Fl)&&++Vr:As<=ue&&(El-Fl)*(ue-Bi)<(As-Bi)*(O-Fl)&&--Vr;return Vr}function xa(){$e=fr,sr=[],wr=[],xt=!0}function zt(){var Vr=ea(),Kt=xt&&Vr,un=(sr=r.merge(sr)).length;(Kt||un)&&(gr.polygonStart(),Kt&&(gr.lineStart(),Oe(null,null,1,gr),gr.lineEnd()),un&&gl(sr,rr,Vr,Oe,gr),gr.polygonEnd()),$e=gr,sr=wr=Dr=null}function Cn(){Jt.point=wa,wr&&wr.push(Dr=[]),vt=!0,Ur=!1,ft=Lr=NaN}function rn(){sr&&(wa(lt,rt),ut&&Ur&&fr.rejoin(),sr.push(fr.result())),Jt.point=ua,Ur&&$e.lineEnd()}function wa(Vr,Kt){var un=Me(Vr,Kt);if(wr&&Dr.push([Vr,Kt]),vt)lt=Vr,rt=Kt,ut=un,vt=!1,un&&($e.lineStart(),$e.point(Vr,Kt));else if(un&&Ur)$e.point(Vr,Kt);else{var Rn=[ft=Math.max(en,Math.min(Wa,ft)),Lr=Math.max(en,Math.min(Wa,Lr))],yi=[Vr=Math.max(en,Math.min(Wa,Vr)),Kt=Math.max(en,Math.min(Wa,Kt))];sa(Rn,yi,O,$,de,ue)?(Ur||($e.lineStart(),$e.point(Rn[0],Rn[1])),$e.point(yi[0],yi[1]),un||$e.lineEnd(),xt=!1):un&&($e.lineStart(),$e.point(Vr,Kt),xt=!1)}ft=Vr,Lr=Kt,Ur=un}return Jt}}function yl(){var O=0,$=0,de=960,ue=500,Me,Oe,We;return We={stream:function(rr){return Me&&Oe===rr?Me:Me=Vn(O,$,de,ue)(Oe=rr)},extent:function(rr){return arguments.length?(O=+rr[0][0],$=+rr[0][1],de=+rr[1][0],ue=+rr[1][1],Me=Oe=null,We):[[O,$],[de,ue]]}}}var us=t(),fs,Xi,No,bl={sphere:H,point:H,lineStart:cs,lineEnd:H,polygonStart:H,polygonEnd:H};function cs(){bl.point=sf,bl.lineEnd=eu}function eu(){bl.point=bl.lineEnd=H}function sf(O,$){O*=d,$*=d,fs=O,Xi=k($),No=y($),bl.point=Gc}function Gc(O,$){O*=d,$*=d;var de=k($),ue=y($),Me=p(O-fs),Oe=y(Me),We=k(Me),rr=ue*We,ir=No*de-Xi*ue*Oe,gr=Xi*de+No*ue*Oe;us.add(b(E(rr*rr+ir*ir),gr)),fs=O,Xi=de,No=ue}function ru(O){return us.reset(),ae(O,bl),+us}var tu=[null,null],au={type:"LineString",coordinates:tu};function _l(O,$){return tu[0]=O,tu[1]=$,ru(au)}var Bo={Feature:function(O,$){return vo(O.geometry,$)},FeatureCollection:function(O,$){for(var de=O.features,ue=-1,Me=de.length;++ue0&&(Me=_l(O[Oe],O[Oe-1]),Me>0&&de<=Me&&ue<=Me&&(de+ue-Me)*(1-Math.pow((de-ue)/Me,2))o}).map(sr)).concat(r.range(C(Oe/gr)*gr,Me,gr).filter(function(Lr){return p(Lr%fr)>o}).map(wr))}return ut.lines=function(){return ft().map(function(Lr){return{type:"LineString",coordinates:Lr}})},ut.outline=function(){return{type:"Polygon",coordinates:[Dr(ue).concat(lt(We).slice(1),Dr(de).reverse().slice(1),lt(rr).reverse().slice(1))]}},ut.extent=function(Lr){return arguments.length?ut.extentMajor(Lr).extentMinor(Lr):ut.extentMinor()},ut.extentMajor=function(Lr){return arguments.length?(ue=+Lr[0][0],de=+Lr[1][0],rr=+Lr[0][1],We=+Lr[1][1],ue>de&&(Lr=ue,ue=de,de=Lr),rr>We&&(Lr=rr,rr=We,We=Lr),ut.precision(rt)):[[ue,rr],[de,We]]},ut.extentMinor=function(Lr){return arguments.length?($=+Lr[0][0],O=+Lr[1][0],Oe=+Lr[0][1],Me=+Lr[1][1],$>O&&(Lr=$,$=O,O=Lr),Oe>Me&&(Lr=Oe,Oe=Me,Me=Lr),ut.precision(rt)):[[$,Oe],[O,Me]]},ut.step=function(Lr){return arguments.length?ut.stepMajor(Lr).stepMinor(Lr):ut.stepMinor()},ut.stepMajor=function(Lr){return arguments.length?($e=+Lr[0],fr=+Lr[1],ut):[$e,fr]},ut.stepMinor=function(Lr){return arguments.length?(ir=+Lr[0],gr=+Lr[1],ut):[ir,gr]},ut.precision=function(Lr){return arguments.length?(rt=+Lr,sr=ho(Oe,Me,90),wr=iu($,O,rt),Dr=ho(rr,We,90),lt=iu(ue,de,rt),ut):rt},ut.extentMajor([[-180,-90+o],[180,90-o]]).extentMinor([[-180,-80-o],[180,80+o]])}function ou(){return Vc()()}function N2(O,$){var de=O[0]*d,ue=O[1]*d,Me=$[0]*d,Oe=$[1]*d,We=y(ue),rr=k(ue),ir=y(Oe),gr=k(Oe),$e=We*y(de),fr=We*k(de),sr=ir*y(Me),wr=ir*k(Me),Dr=2*I(E(V(Oe-ue)+We*ir*V(Me-de))),lt=k(Dr),rt=Dr?function(ut){var ft=k(ut*=Dr)/lt,Lr=k(Dr-ut)/lt,Ur=Lr*$e+ft*sr,vt=Lr*fr+ft*wr,xt=Lr*rr+ft*gr;return[b(vt,Ur)*h,b(xt,E(Ur*Ur+vt*vt))*h]}:function(){return[de*h,ue*h]};return rt.distance=Dr,rt}function xl(O){return O}var cf=t(),hs=t(),Xc,Ho,Oo,vf,ji={point:H,lineStart:H,lineEnd:H,polygonStart:function(){ji.lineStart=B2,ji.lineEnd=I2},polygonEnd:function(){ji.lineStart=ji.lineEnd=ji.point=H,cf.add(p(hs)),hs.reset()},result:function(){var O=cf/2;return cf.reset(),O}};function B2(){ji.point=po}function po(O,$){ji.point=ds,Xc=Oo=O,Ho=vf=$}function ds(O,$){hs.add(vf*O-Oo*$),Oo=O,vf=$}function I2(){ds(Xc,Ho)}var mo=1/0,wl=mo,Al=-mo,Ml=Al,Uo={point:lu,lineStart:H,lineEnd:H,polygonStart:H,polygonEnd:H,result:function(){var O=[[mo,wl],[Al,Ml]];return Al=Ml=-(wl=mo=1/0),O}};function lu(O,$){OAl&&(Al=O),$Ml&&(Ml=$)}var $u=0,su=0,uu=0,Tl=0,ps=0,ms=0,Ju=0,Ku=0,zi=0,Qu,e0,oi,Tn,Xn={point:go,lineStart:fu,lineEnd:hf,polygonStart:function(){Xn.lineStart=jc,Xn.lineEnd=H2},polygonEnd:function(){Xn.point=go,Xn.lineStart=fu,Xn.lineEnd=hf},result:function(){var O=zi?[Ju/zi,Ku/zi]:ms?[Tl/ms,ps/ms]:uu?[$u/uu,su/uu]:[NaN,NaN];return $u=su=uu=Tl=ps=ms=Ju=Ku=zi=0,O}};function go(O,$){$u+=O,su+=$,++uu}function fu(){Xn.point=kl}function kl(O,$){Xn.point=gs,go(oi=O,Tn=$)}function gs(O,$){var de=O-oi,ue=$-Tn,Me=E(de*de+ue*ue);Tl+=Me*(oi+O)/2,ps+=Me*(Tn+$)/2,ms+=Me,go(oi=O,Tn=$)}function hf(){Xn.point=go}function jc(){Xn.point=O2}function H2(){df(Qu,e0)}function O2(O,$){Xn.point=df,go(Qu=oi=O,e0=Tn=$)}function df(O,$){var de=O-oi,ue=$-Tn,Me=E(de*de+ue*ue);Tl+=Me*(oi+O)/2,ps+=Me*(Tn+$)/2,ms+=Me,Me=Tn*O-oi*$,Ju+=Me*(oi+O),Ku+=Me*(Tn+$),zi+=Me*3,go(oi=O,Tn=$)}function pf(O){this._context=O}pf.prototype={_radius:4.5,pointRadius:function(O){return this._radius=O,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(O,$){switch(this._point){case 0:{this._context.moveTo(O,$),this._point=1;break}case 1:{this._context.lineTo(O,$);break}default:{this._context.moveTo(O+this._radius,$),this._context.arc(O,$,this._radius,0,c);break}}},result:H};var mf=t(),gf,Wc,Zc,cu,vu,Wi={point:H,lineStart:function(){Wi.point=r0},lineEnd:function(){gf&&hu(Wc,Zc),Wi.point=H},polygonStart:function(){gf=!0},polygonEnd:function(){gf=null},result:function(){var O=+mf;return mf.reset(),O}};function r0(O,$){Wi.point=hu,Wc=cu=O,Zc=vu=$}function hu(O,$){cu-=O,vu-=$,mf.add(E(cu*cu+vu*vu)),cu=O,vu=$}function t0(){this._string=[]}t0.prototype={_radius:4.5,_circle:$c(4.5),pointRadius:function(O){return(O=+O)!==this._radius&&(this._radius=O,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(O,$){switch(this._point){case 0:{this._string.push("M",O,",",$),this._point=1;break}case 1:{this._string.push("L",O,",",$);break}default:{this._circle==null&&(this._circle=$c(this._radius)),this._string.push("M",O,",",$,this._circle);break}}},result:function(){if(this._string.length){var O=this._string.join("");return this._string=[],O}else return null}};function $c(O){return"m0,"+O+"a"+O+","+O+" 0 1,1 0,"+-2*O+"a"+O+","+O+" 0 1,1 0,"+2*O+"z"}function yf(O,$){var de=4.5,ue,Me;function Oe(We){return We&&(typeof de=="function"&&Me.pointRadius(+de.apply(this,arguments)),ae(We,ue(Me))),Me.result()}return Oe.area=function(We){return ae(We,ue(ji)),ji.result()},Oe.measure=function(We){return ae(We,ue(Wi)),Wi.result()},Oe.bounds=function(We){return ae(We,ue(Uo)),Uo.result()},Oe.centroid=function(We){return ae(We,ue(Xn)),Xn.result()},Oe.projection=function(We){return arguments.length?(ue=We==null?(O=null,xl):(O=We).stream,Oe):O},Oe.context=function(We){return arguments.length?(Me=We==null?($=null,new t0):new pf($=We),typeof de!="function"&&Me.pointRadius(de),Oe):$},Oe.pointRadius=function(We){return arguments.length?(de=typeof We=="function"?We:(Me.pointRadius(+We),+We),Oe):de},Oe.projection(O).context($)}function U2(O){return{stream:Go(O)}}function Go(O){return function($){var de=new a0;for(var ue in O)de[ue]=O[ue];return de.stream=$,de}}function a0(){}a0.prototype={constructor:a0,point:function(O,$){this.stream.point(O,$)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};function ys(O,$,de){var ue=O.clipExtent&&O.clipExtent();return O.scale(150).translate([0,0]),ue!=null&&O.clipExtent(null),ae(de,O.stream(Uo)),$(Uo.result()),ue!=null&&O.clipExtent(ue),O}function du(O,$,de){return ys(O,function(ue){var Me=$[1][0]-$[0][0],Oe=$[1][1]-$[0][1],We=Math.min(Me/(ue[1][0]-ue[0][0]),Oe/(ue[1][1]-ue[0][1])),rr=+$[0][0]+(Me-We*(ue[1][0]+ue[0][0]))/2,ir=+$[0][1]+(Oe-We*(ue[1][1]+ue[0][1]))/2;O.scale(150*We).translate([rr,ir])},de)}function pu(O,$,de){return du(O,[[0,0],$],de)}function bf(O,$,de){return ys(O,function(ue){var Me=+$,Oe=Me/(ue[1][0]-ue[0][0]),We=(Me-Oe*(ue[1][0]+ue[0][0]))/2,rr=-Oe*ue[0][1];O.scale(150*Oe).translate([We,rr])},de)}function Yo(O,$,de){return ys(O,function(ue){var Me=+$,Oe=Me/(ue[1][1]-ue[0][1]),We=-Oe*ue[0][0],rr=(Me-Oe*(ue[1][1]+ue[0][1]))/2;O.scale(150*Oe).translate([We,rr])},de)}var Jc=16,_f=y(30*d);function Kc(O,$){return+$?n0(O,$):xf(O)}function xf(O){return Go({point:function($,de){$=O($,de),this.stream.point($[0],$[1])}})}function n0(O,$){function de(ue,Me,Oe,We,rr,ir,gr,$e,fr,sr,wr,Dr,lt,rt){var ut=gr-ue,ft=$e-Me,Lr=ut*ut+ft*ft;if(Lr>4*$&<--){var Ur=We+sr,vt=rr+wr,xt=ir+Dr,Jt=E(Ur*Ur+vt*vt+xt*xt),ua=I(xt/=Jt),ea=p(p(xt)-1)$||p((ut*rn+ft*wa)/Lr-.5)>.3||We*sr+rr*wr+ir*Dr<_f)&&(de(ue,Me,Oe,We,rr,ir,zt,Cn,ea,Ur/=Jt,vt/=Jt,xt,lt,rt),rt.point(zt,Cn),de(zt,Cn,ea,Ur,vt,xt,gr,$e,fr,sr,wr,Dr,lt,rt))}}return function(ue){var Me,Oe,We,rr,ir,gr,$e,fr,sr,wr,Dr,lt,rt={point:ut,lineStart:ft,lineEnd:Ur,polygonStart:function(){ue.polygonStart(),rt.lineStart=vt},polygonEnd:function(){ue.polygonEnd(),rt.lineStart=ft}};function ut(ua,ea){ua=O(ua,ea),ue.point(ua[0],ua[1])}function ft(){fr=NaN,rt.point=Lr,ue.lineStart()}function Lr(ua,ea){var xa=be([ua,ea]),zt=O(ua,ea);de(fr,sr,$e,wr,Dr,lt,fr=zt[0],sr=zt[1],$e=ua,wr=xa[0],Dr=xa[1],lt=xa[2],Jc,ue),ue.point(fr,sr)}function Ur(){rt.point=ut,ue.lineEnd()}function vt(){ft(),rt.point=xt,rt.lineEnd=Jt}function xt(ua,ea){Lr(Me=ua,ea),Oe=fr,We=sr,rr=wr,ir=Dr,gr=lt,rt.point=Lr}function Jt(){de(fr,sr,$e,wr,Dr,lt,Oe,We,Me,rr,ir,gr,Jc,ue),rt.lineEnd=Ur,Ur()}return rt}}var wf=Go({point:function(O,$){this.stream.point(O*d,$*d)}});function Af(O){return Go({point:function($,de){var ue=O($,de);return this.stream.point(ue[0],ue[1])}})}function G2(O,$,de,ue,Me){function Oe(We,rr){return We*=ue,rr*=Me,[$+O*We,de-O*rr]}return Oe.invert=function(We,rr){return[(We-$)/O*ue,(de-rr)/O*Me]},Oe}function Mf(O,$,de,ue,Me,Oe){var We=y(Oe),rr=k(Oe),ir=We*O,gr=rr*O,$e=We/O,fr=rr/O,sr=(rr*de-We*$)/O,wr=(rr*$+We*de)/O;function Dr(lt,rt){return lt*=ue,rt*=Me,[ir*lt-gr*rt+$,de-gr*lt-ir*rt]}return Dr.invert=function(lt,rt){return[ue*($e*lt-fr*rt+sr),Me*(wr-fr*lt-$e*rt)]},Dr}function Zi(O){return Tf(function(){return O})()}function Tf(O){var $,de=150,ue=480,Me=250,Oe=0,We=0,rr=0,ir=0,gr=0,$e,fr=0,sr=1,wr=1,Dr=null,lt=ot,rt=null,ut,ft,Lr,Ur=xl,vt=.5,xt,Jt,ua,ea,xa;function zt(Vr){return ua(Vr[0]*d,Vr[1]*d)}function Cn(Vr){return Vr=ua.invert(Vr[0],Vr[1]),Vr&&[Vr[0]*h,Vr[1]*h]}zt.stream=function(Vr){return ea&&xa===Vr?ea:ea=wf(Af($e)(lt(xt(Ur(xa=Vr)))))},zt.preclip=function(Vr){return arguments.length?(lt=Vr,Dr=void 0,wa()):lt},zt.postclip=function(Vr){return arguments.length?(Ur=Vr,rt=ut=ft=Lr=null,wa()):Ur},zt.clipAngle=function(Vr){return arguments.length?(lt=+Vr?Mn(Dr=Vr*d):(Dr=null,ot),wa()):Dr*h},zt.clipExtent=function(Vr){return arguments.length?(Ur=Vr==null?(rt=ut=ft=Lr=null,xl):Vn(rt=+Vr[0][0],ut=+Vr[0][1],ft=+Vr[1][0],Lr=+Vr[1][1]),wa()):rt==null?null:[[rt,ut],[ft,Lr]]},zt.scale=function(Vr){return arguments.length?(de=+Vr,rn()):de},zt.translate=function(Vr){return arguments.length?(ue=+Vr[0],Me=+Vr[1],rn()):[ue,Me]},zt.center=function(Vr){return arguments.length?(Oe=Vr[0]%360*d,We=Vr[1]%360*d,rn()):[Oe*h,We*h]},zt.rotate=function(Vr){return arguments.length?(rr=Vr[0]%360*d,ir=Vr[1]%360*d,gr=Vr.length>2?Vr[2]%360*d:0,rn()):[rr*h,ir*h,gr*h]},zt.angle=function(Vr){return arguments.length?(fr=Vr%360*d,rn()):fr*h},zt.reflectX=function(Vr){return arguments.length?(sr=Vr?-1:1,rn()):sr<0},zt.reflectY=function(Vr){return arguments.length?(wr=Vr?-1:1,rn()):wr<0},zt.precision=function(Vr){return arguments.length?(xt=Kc(Jt,vt=Vr*Vr),wa()):E(vt)},zt.fitExtent=function(Vr,Kt){return du(zt,Vr,Kt)},zt.fitSize=function(Vr,Kt){return pu(zt,Vr,Kt)},zt.fitWidth=function(Vr,Kt){return bf(zt,Vr,Kt)},zt.fitHeight=function(Vr,Kt){return Yo(zt,Vr,Kt)};function rn(){var Vr=Mf(de,0,0,sr,wr,fr).apply(null,$(Oe,We)),Kt=(fr?Mf:G2)(de,ue-Vr[0],Me-Vr[1],sr,wr,fr);return $e=Na(rr,ir,gr),Jt=Rt($,Kt),ua=Rt($e,Jt),xt=Kc(Jt,vt),wa()}function wa(){return ea=xa=null,zt}return function(){return $=O.apply(this,arguments),zt.invert=$.invert&&Cn,rn()}}function bs(O){var $=0,de=s/3,ue=Tf(O),Me=ue($,de);return Me.parallels=function(Oe){return arguments.length?ue($=Oe[0]*d,de=Oe[1]*d):[$*h,de*h]},Me}function kf(O){var $=y(O);function de(ue,Me){return[ue*$,k(Me)/$]}return de.invert=function(ue,Me){return[ue/$,I(Me*$)]},de}function Qc(O,$){var de=k(O),ue=(de+k($))/2;if(p(ue)=.12&&rt<.234&<>=-.425&<<-.214?Me:rt>=.166&&rt<.234&<>=-.214&<<-.115?We:de).invert(sr)},$e.stream=function(sr){return O&&$===sr?O:O=Y2([de.stream($=sr),Me.stream(sr),We.stream(sr)])},$e.precision=function(sr){return arguments.length?(de.precision(sr),Me.precision(sr),We.precision(sr),fr()):de.precision()},$e.scale=function(sr){return arguments.length?(de.scale(sr),Me.scale(sr*.35),We.scale(sr),$e.translate(de.translate())):de.scale()},$e.translate=function(sr){if(!arguments.length)return de.translate();var wr=de.scale(),Dr=+sr[0],lt=+sr[1];return ue=de.translate(sr).clipExtent([[Dr-.455*wr,lt-.238*wr],[Dr+.455*wr,lt+.238*wr]]).stream(gr),Oe=Me.translate([Dr-.307*wr,lt+.201*wr]).clipExtent([[Dr-.425*wr+o,lt+.12*wr+o],[Dr-.214*wr-o,lt+.234*wr-o]]).stream(gr),rr=We.translate([Dr-.205*wr,lt+.212*wr]).clipExtent([[Dr-.214*wr+o,lt+.166*wr+o],[Dr-.115*wr-o,lt+.234*wr-o]]).stream(gr),fr()},$e.fitExtent=function(sr,wr){return du($e,sr,wr)},$e.fitSize=function(sr,wr){return pu($e,sr,wr)},$e.fitWidth=function(sr,wr){return bf($e,sr,wr)},$e.fitHeight=function(sr,wr){return Yo($e,sr,wr)};function fr(){return O=$=null,$e}return $e.scale(1070)}function yo(O){return function($,de){var ue=y($),Me=y(de),Oe=O(ue*Me);return[Oe*Me*k($),Oe*k(de)]}}function $i(O){return function($,de){var ue=E($*$+de*de),Me=O(ue),Oe=k(Me),We=y(Me);return[b($*Oe,ue*We),I(ue&&de*Oe/ue)]}}var li=yo(function(O){return E(2/(1+O))});li.invert=$i(function(O){return 2*I(O/2)});function X2(){return Zi(li).scale(124.75).clipAngle(180-.001)}var _s=yo(function(O){return(O=z(O))&&O/k(O)});_s.invert=$i(function(O){return O});function r1(){return Zi(_s).scale(79.4188).clipAngle(180-.001)}function gi(O,$){return[O,_(P((u+$)/2))]}gi.invert=function(O,$){return[O,2*m(x($))-u]};function t1(){return a1(gi).scale(961/c)}function a1(O){var $=Zi(O),de=$.center,ue=$.scale,Me=$.translate,Oe=$.clipExtent,We=null,rr,ir,gr;$.scale=function(fr){return arguments.length?(ue(fr),$e()):ue()},$.translate=function(fr){return arguments.length?(Me(fr),$e()):Me()},$.center=function(fr){return arguments.length?(de(fr),$e()):de()},$.clipExtent=function(fr){return arguments.length?(fr==null?We=rr=ir=gr=null:(We=+fr[0][0],rr=+fr[0][1],ir=+fr[1][0],gr=+fr[1][1]),$e()):We==null?null:[[We,rr],[ir,gr]]};function $e(){var fr=s*ue(),sr=$(Ba($.rotate()).invert([0,0]));return Oe(We==null?[[sr[0]-fr,sr[1]-fr],[sr[0]+fr,sr[1]+fr]]:O===gi?[[Math.max(sr[0]-fr,We),rr],[Math.min(sr[0]+fr,ir),gr]]:[[We,Math.max(sr[1]-fr,rr)],[ir,Math.min(sr[1]+fr,gr)]])}return $e()}function mu(O){return P((u+O)/2)}function n1(O,$){var de=y(O),ue=O===$?k(O):_(de/y($))/_(mu($)/mu(O)),Me=de*A(mu(O),ue)/ue;if(!ue)return gi;function Oe(We,rr){Me>0?rr<-u+o&&(rr=-u+o):rr>u-o&&(rr=u-o);var ir=Me/A(mu(rr),ue);return[ir*k(ue*We),Me-ir*y(ue*We)]}return Oe.invert=function(We,rr){var ir=Me-rr,gr=M(ue)*E(We*We+ir*ir),$e=b(We,p(ir))*M(ir);return ir*ue<0&&($e-=s*M(We)*M(ir)),[$e/ue,2*m(A(Me/gr,1/ue))-u]},Oe}function i0(){return bs(n1).scale(109.5).parallels([30,30])}function gu(O,$){return[O,$]}gu.invert=gu;function o0(){return Zi(gu).scale(152.63)}function yu(O,$){var de=y(O),ue=O===$?k(O):(de-y($))/($-O),Me=de/ue+O;if(p(ue)o&&--ue>0);return[O/(.8707+(Oe=de*de)*(-.131979+Oe*(-.013791+Oe*Oe*Oe*(.003971-.001529*Oe)))),de]};function u0(){return Zi(Cf).scale(175.295)}function dn(O,$){return[y($)*k(O),k($)]}dn.invert=$i(I);function Ni(){return Zi(dn).scale(249.5).clipAngle(90+o)}function ws(O,$){var de=y($),ue=1+y(O)*de;return[de*k(O)/ue,k($)/ue]}ws.invert=$i(function(O){return 2*m(O)});function f0(){return Zi(ws).scale(250).clipAngle(142)}function wu(O,$){return[_(P((u+$)/2)),-O]}wu.invert=function(O,$){return[-$,2*m(x(O))-u]};function Sf(){var O=a1(wu),$=O.center,de=O.rotate;return O.center=function(ue){return arguments.length?$([-ue[1],ue[0]]):(ue=$(),[ue[1],-ue[0]])},O.rotate=function(ue){return arguments.length?de([ue[0],ue[1],ue.length>2?ue[2]+90:90]):(ue=de(),[ue[0],ue[1],ue[2]-90])},de([0,0,90]).scale(159.155)}e.geoAlbers=e1,e.geoAlbersUsa=V2,e.geoArea=J,e.geoAzimuthalEqualArea=X2,e.geoAzimuthalEqualAreaRaw=li,e.geoAzimuthalEquidistant=r1,e.geoAzimuthalEquidistantRaw=_s,e.geoBounds=Cr,e.geoCentroid=ma,e.geoCircle=zo,e.geoClipAntimeridian=ot,e.geoClipCircle=Mn,e.geoClipExtent=yl,e.geoClipRectangle=Vn,e.geoConicConformal=i0,e.geoConicConformalRaw=n1,e.geoConicEqualArea=Cl,e.geoConicEqualAreaRaw=Qc,e.geoConicEquidistant=j2,e.geoConicEquidistantRaw=yu,e.geoContains=nu,e.geoDistance=_l,e.geoEqualEarth=i1,e.geoEqualEarthRaw=xu,e.geoEquirectangular=o0,e.geoEquirectangularRaw=gu,e.geoGnomonic=o1,e.geoGnomonicRaw=s0,e.geoGraticule=Vc,e.geoGraticule10=ou,e.geoIdentity=l1,e.geoInterpolate=N2,e.geoLength=ru,e.geoMercator=t1,e.geoMercatorRaw=gi,e.geoNaturalEarth1=u0,e.geoNaturalEarth1Raw=Cf,e.geoOrthographic=Ni,e.geoOrthographicRaw=dn,e.geoPath=yf,e.geoProjection=Zi,e.geoProjectionMutator=Tf,e.geoRotation=Ba,e.geoStereographic=f0,e.geoStereographicRaw=ws,e.geoStream=ae,e.geoTransform=U2,e.geoTransverseMercator=Sf,e.geoTransverseMercatorRaw=wu,Object.defineProperty(e,"__esModule",{value:!0})}))});var LU=oe((j8e,EU)=>{"use strict";var FU={alabama:"AL",alaska:"AK",arizona:"AZ",arkansas:"AR",california:"CA",colorado:"CO",connecticut:"CT",delaware:"DE","district of columbia":"DC",florida:"FL",georgia:"GA",hawaii:"HI",idaho:"ID",illinois:"IL",indiana:"IN",iowa:"IA",kansas:"KS",kentucky:"KY",louisiana:"LA",maine:"ME",maryland:"MD",massachusetts:"MA",michigan:"MI",minnesota:"MN",mississippi:"MS",missouri:"MO",montana:"MT",nebraska:"NE",nevada:"NV","new hampshire":"NH","new jersey":"NJ","new mexico":"NM","new york":"NY","north carolina":"NC","north dakota":"ND",ohio:"OH",oklahoma:"OK",oregon:"OR",pennsylvania:"PA","rhode island":"RI","south carolina":"SC","south dakota":"SD",tennessee:"TN",texas:"TX",utah:"UT",vermont:"VT",virginia:"VA",washington:"WA","washington dc":"DC","washington d.c.":"DC","west virginia":"WV",wisconsin:"WI",wyoming:"WY"},mge=new Set(Object.values(FU));EU.exports={usaLocationAbbreviations:mge,usaLocationList:FU}});var qU={};Ua(qU,{COUNTRIES_X:()=>gge});var gge,PU=Oa(()=>{"use strict";gge=[{iso3:"XAC",iso2:"",m49:"",name:"Aksai Chin",aliases:[]},{iso3:"XAP",iso2:"",m49:"",name:"Arunachal Pradesh",aliases:[]},{iso3:"XBT",iso2:"",m49:"",name:"Bir Tawil",aliases:[]},{iso3:"XHT",iso2:"",m49:"",name:"Halaib Triangle",aliases:[]},{iso3:"XIT",iso2:"",m49:"",name:"Ilemi Triangle",aliases:[]},{iso3:"XJK",iso2:"",m49:"",name:"Jammu and Kashmir",aliases:[]}]});var E2=oe((W8e,NU)=>{"use strict";var yge=Lt(),{COUNTRIES:bge,createLookup:_ge}=fU(),{area:xge}=MU(),{centroid:wge}=kU(),{coordAll:Age}=K3(),{geoBounds:Mge}=ay(),Tge=wp(),Q0=Cu(),kge=h0(),Cge=Q2(),ny=gg(),{usaLocationAbbreviations:Sge,usaLocationList:Dge}=LU(),{COUNTRIES_X:Fge}=(PU(),xr(qU)),{lookupAlpha3:Ege}=_ge([...bge,...Fge]),Lge={"ISO-3":Tge,"USA-states":Pge,"country names":qge};function qge(e){let r=Ege(e);return r||(Q0.log("Unrecognized country name: "+e+"."),!1)}function Pge(e){e=e.trim();let r=Sge.has(e.toUpperCase())?e.toUpperCase():Dge[e.toLowerCase()];return r||(Q0.log("Unrecognized US location: "+e+"."),!1)}function Rge(e,r,t){var n;if(!r||typeof r!="string")return!1;let a=Lge[e](r);if(a){let i;if(e==="USA-states"){i=[];for(let o of t)((n=o==null?void 0:o.properties)==null?void 0:n.gu)==="USA"&&i.push(o)}else i=t;for(let o of i)if(o.id===a)return o;Q0.log(`Location with id ${a} does not have a matching topojson feature at this resolution.`)}return!1}var iy=360;function X8(e){for(let r=0;r0&&e[r+1][0]<0)return r;return null}function zge(e){var r=e.geometry,t=r.coordinates,a=e.id,n=[],i,o,l,s;switch(a==="RUS"||a==="FJI"?i=function(u){var f;if(X8(u)===null)f=u;else for(f=new Array(u.length),s=0;sf?c[h++]=[u[s][0]+iy,u[s][1]]:s===f?(c[h++]=u[s],c[h++]=[u[s][0],-90]):c[h++]=u[s];var d=ny.tester(c);d.pts.pop(),n.push(d)}:i=function(u){n.push(ny.tester(u))},r.type){case"MultiPolygon":for(o=0;on&&(n=l,t=o)}else t=r;return!t||!t.coordinates.some(s=>s.length>0)?[NaN,NaN]:wge(t).geometry.coordinates}function Ige(e){var r=window.PlotlyGeoAssets||{},t=[];function a(s){return new Promise(function(u,f){yge.json(s,function(c,h){if(c){delete r[s];var d=c.status===404?'GeoJSON at URL "'+s+'" does not exist.':"Unexpected error while fetching from "+s;return f(new Error(d))}return r[s]=h,u(h)})})}function n(s){return new Promise(function(u,f){var c=0,h=setInterval(function(){if(r[s]&&r[s]!=="pending")return clearInterval(h),u(r[s]);if(c>100)return clearInterval(h),f("Unexpected error while fetching from "+s);c++},50)})}for(var i=0;iZ8(W8(e));function W8(e){try{return Age(e)}catch(r){return[]}}function Z8(e){if(e.length===0)return null;if(e.length===1){let[i,o]=e[0];return[i,o,i,o]}let[[r,t],[a,n]]=Mge({type:"MultiPoint",coordinates:e});return[r,t,zU([r,a])[1],n]}var Oge=(e,r)=>r.fitbounds==="geojson"&&e.locationmode==="geojson-id",RU=(e,r)=>Oge(e,r)?W8(j8(e)):[],Uge=(e,r)=>Z8(RU(e,r));function zU([e,r]){return[e,e>r?r+iy:r]}NU.exports={locationToFeature:Rge,feature2polygons:zge,getTraceGeojson:j8,extractTraceFeature:Nge,fetchTraceGeoData:Ige,boundsOfCoords:Z8,computeBbox:Hge,coordsOf:W8,doesCrossAntiMeridian:X8,fitGeojsonBbox:Uge,fitGeojsonCoords:RU,unwrapLonRange:zU,ANTIMERIDIAN_LON_SHIFT:iy}});var $8=oe((Z8e,HU)=>{"use strict";var Gge=Lt(),Yge=ha(),BU=Nt(),IU=Uh(),Vge=IU.stylePoints,Xge=IU.styleText;HU.exports=function(r,t){t&&jge(r,t)};function jge(e,r){var t=r[0].trace,a=r[0].node3;a.style("opacity",r[0].trace.opacity),Vge(a,t,e),Xge(a,t,e),a.selectAll("path.js-line").style("fill","none").each(function(n){var i=Gge.select(this),o=n.trace,l=o.line||{};i.call(BU.stroke,l.color).call(Yge.dashLine,l.dash||"",l.width||0),o.fill!=="none"&&i.call(BU.fill,o.fillcolor)})}});var sy=oe(($8e,GU)=>{"use strict";var OU=Lt(),oy=pr(),Wge=X3().getTopojsonFeatures,J8=iU(),ly=E2(),UU=P0().findExtremes,Q8=(Za(),xr(nn)).BADNUM,Zge=r3().calcMarkerSize,K8=Ti(),$ge=$8();function Jge(e,r,t){var a=r.layers.frontplot.select(".scatterlayer"),n=oy.makeTraceGroups(a,t,"trace scattergeo");function i(o,l){o.lonlat[0]===Q8&&OU.select(l).remove()}n.selectAll("*").remove(),n.each(function(o){var l=OU.select(this),s=o[0].trace;if(K8.hasLines(s)||s.fill!=="none"){var u=J8.calcTraceToLineCoords(o),f=s.fill!=="none"?J8.makePolygon(u):J8.makeLine(u);l.selectAll("path.js-line").data([{geojson:f,trace:s}]).enter().append("path").classed("js-line",!0).style("stroke-miterlimit",2)}K8.hasMarkers(s)&&l.selectAll("path.point").data(oy.identity).enter().append("path").classed("point",!0).each(function(c){i(c,this)}),K8.hasText(s)&&l.selectAll("g").data(oy.identity).enter().append("g").append("text").each(function(c){i(c,this)}),$ge(e,o)})}function Kge(e,r){var t=e[0].trace,a=r[t.geo],n=a._subplot,i=t._length,o,l;if(oy.isArrayOrTypedArray(t.locations)){var s=t.locationmode,u=s==="geojson-id"?ly.extractTraceFeature(e):Wge(t,n.topojson);for(o=0;o{"use strict";var e3e=jl(),r3e=(Za(),xr(nn)).BADNUM,t3e=S9(),a3e=pr().fillText,n3e=ad();YU.exports=function(r,t,a){var n=r.cd,i=n[0].trace,o=r.xa,l=r.ya,s=r.subplot,u=s.projection.isLonLatOverEdges,f=s.project;function c(C){var x=C.lonlat;if(x[0]===r3e||u(x))return 1/0;var _=f(x),A=f([t,a]),k=Math.abs(_[0]-A[0]),M=Math.abs(_[1]-A[1]),E=Math.max(3,C.mrc||0);return Math.max(Math.sqrt(k*k+M*M)-E,1-3/E)}if(e3e.getClosest(n,c,r),r.index!==!1){var h=n[r.index],d=h.lonlat,p=[o.c2p(d),l.c2p(d)],m=h.mrc||1;r.x0=p[0]-m,r.x1=p[0]+m,r.y0=p[1]-m,r.y1=p[1]+m,r.loc=h.loc,r.lon=d[0],r.lat=d[1];var b={};b[i.geo]={_subplot:s};var y=i._module.formatLabels(h,i,b);return r.lonLabel=y.lonLabel,r.latLabel=y.latLabel,r.color=t3e(i,h),r.extraText=i3e(i,h,r,n[0].t.labels),r.hovertemplate=i.hovertemplate,[r]}};function i3e(e,r,t,a){if(e.hovertemplate)return;var n=r.hi||e.hoverinfo,i=n==="all"?n3e.hoverinfo.flags:n.split("+"),o=i.indexOf("location")!==-1&&Array.isArray(e.locations),l=i.indexOf("lon")!==-1,s=i.indexOf("lat")!==-1,u=i.indexOf("text")!==-1,f=[];function c(h){return h+"\xB0"}return o?f.push(r.loc):l&&s?f.push("("+c(t.latLabel)+", "+c(t.lonLabel)+")"):l?f.push(a.lon+c(t.lonLabel)):s&&f.push(a.lat+c(t.latLabel)),u&&a3e(r,e,f),f.join("
")}});var jU=oe((K8e,XU)=>{"use strict";XU.exports=function(r,t,a,n,i){r.lon=t.lon,r.lat=t.lat,r.location=t.loc?t.loc:null;var o=n[i];return o.fIn&&o.fIn.properties&&(r.properties=o.fIn.properties),r}});var $U=oe((Q8e,ZU)=>{"use strict";var WU=Ti(),o3e=(Za(),xr(nn)).BADNUM;ZU.exports=function(r,t){var a=r.cd,n=r.xaxis,i=r.yaxis,o=[],l=a[0].trace,s,u,f,c,h,d=!WU.hasMarkers(l)&&!WU.hasText(l);if(d)return[];if(t===!1)for(h=0;h{(function(e,r){r(typeof uy=="object"&&typeof JU!="undefined"?uy:e.d3=e.d3||{})})(uy,(function(e){"use strict";function r(W,se){return Wse?1:W>=se?0:NaN}function t(W){return W.length===1&&(W=a(W)),{left:function(se,he,K,J){for(K==null&&(K=0),J==null&&(J=se.length);K>>1;W(se[fe],he)<0?K=fe+1:J=fe}return K},right:function(se,he,K,J){for(K==null&&(K=0),J==null&&(J=se.length);K>>1;W(se[fe],he)>0?J=fe:K=fe+1}return K}}}function a(W){return function(se,he){return r(W(se),he)}}var n=t(r),i=n.right,o=n.left;function l(W,se){se==null&&(se=s);for(var he=0,K=W.length-1,J=W[0],fe=new Array(K<0?0:K);heW?1:se>=W?0:NaN}function c(W){return W===null?NaN:+W}function h(W,se){var he=W.length,K=0,J=-1,fe=0,be,Ne,Ze=0;if(se==null)for(;++J1)return Ze/(K-1)}function d(W,se){var he=h(W,se);return he&&Math.sqrt(he)}function p(W,se){var he=W.length,K=-1,J,fe,be;if(se==null){for(;++K=J)for(fe=be=J;++KJ&&(fe=J),be=J)for(fe=be=J;++KJ&&(fe=J),be0)return[W];if((K=se0)for(W=Math.ceil(W/Ne),se=Math.floor(se/Ne),be=new Array(fe=Math.ceil(se-W+1));++J=0?(fe>=A?10:fe>=k?5:fe>=M?2:1)*Math.pow(10,J):-Math.pow(10,-J)/(fe>=A?10:fe>=k?5:fe>=M?2:1)}function z(W,se,he){var K=Math.abs(se-W)/Math.max(0,he),J=Math.pow(10,Math.floor(Math.log(K)/Math.LN10)),fe=K/J;return fe>=A?J*=10:fe>=k?J*=5:fe>=M&&(J*=2),setr;)ze.pop(),--lr;var hr=new Array(lr+1),Ar;for(fe=0;fe<=lr;++fe)Ar=hr[fe]=[],Ar.x0=fe>0?ze[fe-1]:Je,Ar.x1=fe=1)return+he(W[K-1],K-1,W);var K,J=(K-1)*se,fe=Math.floor(J),be=+he(W[fe],fe,W),Ne=+he(W[fe+1],fe+1,W);return be+(Ne-be)*(J-fe)}}function X(W,se,he){return W=y.call(W,c).sort(r),Math.ceil((he-se)/(2*(H(W,.75)-H(W,.25))*Math.pow(W.length,-1/3)))}function N(W,se,he){return Math.ceil((he-se)/(3.5*d(W)*Math.pow(W.length,-1/3)))}function Q(W,se){var he=W.length,K=-1,J,fe;if(se==null){for(;++K=J)for(fe=J;++Kfe&&(fe=J)}else for(;++K=J)for(fe=J;++Kfe&&(fe=J);return fe}function ee(W,se){var he=W.length,K=he,J=-1,fe,be=0;if(se==null)for(;++J=0;)for(be=W[se],he=be.length;--he>=0;)fe[--J]=be[he];return fe}function ie(W,se){var he=W.length,K=-1,J,fe;if(se==null){for(;++K=J)for(fe=J;++KJ&&(fe=J)}else for(;++K=J)for(fe=J;++KJ&&(fe=J);return fe}function le(W,se){for(var he=se.length,K=new Array(he);he--;)K[he]=W[se[he]];return K}function xe(W,se){if(he=W.length){var he,K=0,J=0,fe,be=W[J];for(se==null&&(se=r);++K{(function(e,r){typeof fy=="object"&&typeof QU!="undefined"?r(fy,ay(),KU()):r(e.d3=e.d3||{},e.d3,e.d3)})(fy,(function(e,r,t){"use strict";var a=Math.abs,n=Math.atan,i=Math.atan2,o=Math.cos,l=Math.exp,s=Math.floor,u=Math.log,f=Math.max,c=Math.min,h=Math.pow,d=Math.round,p=Math.sign||function(T){return T>0?1:T<0?-1:0},m=Math.sin,b=Math.tan,y=1e-6,C=1e-12,x=Math.PI,_=x/2,A=x/4,k=Math.SQRT1_2,M=N(2),E=N(x),P=x*2,z=180/x,I=x/180;function V(T){return T?T/Math.sin(T):1}function H(T){return T>1?_:T<-1?-_:Math.asin(T)}function X(T){return T>1?0:T<-1?x:Math.acos(T)}function N(T){return T>0?Math.sqrt(T):0}function Q(T){return T=l(2*T),(T-1)/(T+1)}function ee(T){return(l(T)-l(-T))/2}function re(T){return(l(T)+l(-T))/2}function ae(T){return u(T+N(T*T+1))}function ie(T){return u(T+N(T*T-1))}function le(T){var D=b(T/2),q=2*u(o(T/2))/(D*D);function R(G,U){var j=o(G),ve=o(U),pe=m(U),ce=ve*j,me=-((1-ce?u((1+ce)/2)/(1-ce):-.5)+q/(1+ce));return[me*ve*m(G),me*pe]}return R.invert=function(G,U){var j=N(G*G+U*U),ve=-T/2,pe=50,ce;if(!j)return[0,0];do{var me=ve/2,we=o(me),Fe=m(me),Ie=Fe/we,Ke=-u(a(we));ve-=ce=(2/Ie*Ke-q*Ie-j)/(-Ke/(Fe*Fe)+1-q/(2*we*we))*(we<0?.7:1)}while(a(ce)>y&&--pe>0);var ur=m(ve);return[i(G*ur,j*o(ve)),H(U*ur/j)]},R}function xe(){var T=_,D=r.geoProjectionMutator(le),q=D(T);return q.radius=function(R){return arguments.length?D(T=R*I):T*z},q.scale(179.976).clipAngle(147)}function De(T,D){var q=o(D),R=V(X(q*o(T/=2)));return[2*q*m(T)*R,m(D)*R]}De.invert=function(T,D){if(!(T*T+4*D*D>x*x+y)){var q=T,R=D,G=25;do{var U=m(q),j=m(q/2),ve=o(q/2),pe=m(R),ce=o(R),me=m(2*R),we=pe*pe,Fe=ce*ce,Ie=j*j,Ke=1-Fe*ve*ve,ur=Ke?X(ce*ve)*N(Tr=1/Ke):Tr=0,Tr,Kr=2*ur*ce*j-T,ct=ur*pe-D,ht=Tr*(Fe*Ie+ur*ce*ve*we),pt=Tr*(.5*U*me-ur*2*pe*j),yt=Tr*.25*(me*j-ur*pe*Fe*U),fa=Tr*(we*ve+ur*Ie*ce),Da=pt*yt-fa*ht;if(!Da)break;var Gt=(ct*pt-Kr*fa)/Da,tn=(Kr*yt-ct*ht)/Da;q-=Gt,R-=tn}while((a(Gt)>y||a(tn)>y)&&--G>0);return[q,R]}};function Ye(){return r.geoProjection(De).scale(152.63)}function Ee(T){var D=m(T),q=o(T),R=T>=0?1:-1,G=b(R*T),U=(1+D-q)/2;function j(ve,pe){var ce=o(pe),me=o(ve/=2);return[(1+ce)*m(ve),(R*pe>-i(me,G)-.001?0:-R*10)+U+m(pe)*q-(1+ce)*D*me]}return j.invert=function(ve,pe){var ce=0,me=0,we=50;do{var Fe=o(ce),Ie=m(ce),Ke=o(me),ur=m(me),Tr=1+Ke,Kr=Tr*Ie-ve,ct=U+ur*q-Tr*D*Fe-pe,ht=Tr*Fe/2,pt=-Ie*ur,yt=D*Tr*Ie/2,fa=q*Ke+D*Fe*ur,Da=pt*yt-fa*ht,Gt=(ct*pt-Kr*fa)/Da/2,tn=(Kr*yt-ct*ht)/Da;a(tn)>2&&(tn/=2),ce-=Gt,me-=tn}while((a(Gt)>y||a(tn)>y)&&--we>0);return R*me>-i(o(ce),G)-.001?[ce*2,me]:null},j}function ke(){var T=20*I,D=T>=0?1:-1,q=b(D*T),R=r.geoProjectionMutator(Ee),G=R(T),U=G.stream;return G.parallel=function(j){return arguments.length?(q=b((D=(T=j*I)>=0?1:-1)*T),R(T)):T*z},G.stream=function(j){var ve=G.rotate(),pe=U(j),ce=(G.rotate([0,0]),U(j)),me=G.precision();return G.rotate(ve),pe.sphere=function(){ce.polygonStart(),ce.lineStart();for(var we=D*-180;D*we<180;we+=D*90)ce.point(we,D*90);if(T)for(;D*(we-=3*D*me)>=-180;)ce.point(we,D*-i(o(we*I/2),q)*z);ce.lineEnd(),ce.polygonEnd()},pe},G.scale(218.695).center([0,28.0974])}function je(T,D){var q=b(D/2),R=N(1-q*q),G=1+R*o(T/=2),U=m(T)*R/G,j=q/G,ve=U*U,pe=j*j;return[4/3*U*(3+ve-3*pe),4/3*j*(3+3*ve-pe)]}je.invert=function(T,D){if(T*=3/8,D*=3/8,!T&&a(D)>1)return null;var q=T*T,R=D*D,G=1+q+R,U=N((G-N(G*G-4*D*D))/2),j=H(U)/3,ve=U?ie(a(D/U))/3:ae(a(T))/3,pe=o(j),ce=re(ve),me=ce*ce-pe*pe;return[p(T)*2*i(ee(ve)*pe,.25-me),p(D)*2*i(ce*m(j),.25+me)]};function W(){return r.geoProjection(je).scale(66.1603)}var se=N(8),he=u(1+M);function K(T,D){var q=a(D);return qC&&--R>0);return[T/(o(q)*(se-1/m(q))),p(D)*q]};function J(){return r.geoProjection(K).scale(112.314)}function fe(T){var D=2*x/T;function q(R,G){var U=r.geoAzimuthalEquidistantRaw(R,G);if(a(R)>_){var j=i(U[1],U[0]),ve=N(U[0]*U[0]+U[1]*U[1]),pe=D*d((j-_)/D)+_,ce=i(m(j-=pe),2-o(j));j=pe+H(x/ve*m(ce))-ce,U[0]=ve*o(j),U[1]=ve*m(j)}return U}return q.invert=function(R,G){var U=N(R*R+G*G);if(U>_){var j=i(G,R),ve=D*d((j-_)/D)+_,pe=j>ve?-1:1,ce=U*o(ve-j),me=1/b(pe*X((ce-x)/N(x*(x-2*ce)+U*U)));j=ve+2*n((me+pe*N(me*me-3))/3),R=U*o(j),G=U*m(j)}return r.geoAzimuthalEquidistantRaw.invert(R,G)},q}function be(){var T=5,D=r.geoProjectionMutator(fe),q=D(T),R=q.stream,G=.01,U=-o(G*I),j=m(G*I);return q.lobes=function(ve){return arguments.length?D(T=+ve):T},q.stream=function(ve){var pe=q.rotate(),ce=R(ve),me=(q.rotate([0,0]),R(ve));return q.rotate(pe),ce.sphere=function(){me.polygonStart(),me.lineStart();for(var we=0,Fe=360/T,Ie=2*x/T,Ke=90-180/T,ur=_;we0&&a(G)>y);return R<0?NaN:q}function tr(T,D,q){return D===void 0&&(D=40),q===void 0&&(q=C),function(R,G,U,j){var ve,pe,ce;U=U===void 0?0:+U,j=j===void 0?0:+j;for(var me=0;meve){U-=pe/=2,j-=ce/=2;continue}ve=Ke;var ur=(U>0?-1:1)*q,Tr=(j>0?-1:1)*q,Kr=T(U+ur,j),ct=T(U,j+Tr),ht=(Kr[0]-we[0])/ur,pt=(Kr[1]-we[1])/ur,yt=(ct[0]-we[0])/Tr,fa=(ct[1]-we[1])/Tr,Da=fa*ht-pt*yt,Gt=(a(Da)<.5?.5:1)/Da;if(pe=(Ie*yt-Fe*fa)*Gt,ce=(Fe*pt-Ie*ht)*Gt,U+=pe,j+=ce,a(pe)0&&(ve[1]*=1+pe/1.5*ve[0]*ve[0]),ve}return R.invert=tr(R),R}function lr(){return r.geoProjection(ze()).rotate([-16.5,-42]).scale(176.57).center([7.93,.09])}function hr(T,D){var q=T*m(D),R=30,G;do D-=G=(D+m(D)-q)/(1+o(D));while(a(G)>y&&--R>0);return D/2}function Ar(T,D,q){function R(G,U){return[T*G*o(U=hr(q,U)),D*m(U)]}return R.invert=function(G,U){return U=H(U/D),[G/(T*o(U)),H((2*U+m(2*U))/q)]},R}var Qe=Ar(M/_,M,x);function mr(){return r.geoProjection(Qe).scale(169.529)}var qr=2.00276,Te=1.11072;function Ue(T,D){var q=hr(x,D);return[qr*T/(1/o(D)+Te/o(q)),(D+M*m(q))/qr]}Ue.invert=function(T,D){var q=qr*D,R=D<0?-A:A,G=25,U,j;do j=q-M*m(R),R-=U=(m(2*R)+2*R-x*m(j))/(2*o(2*R)+2+x*o(j)*M*o(R));while(a(U)>y&&--G>0);return j=q-M*m(R),[T*(1/o(j)+Te/o(R))/qr,j]};function _r(){return r.geoProjection(Ue).scale(160.857)}function Pr(T){var D=0,q=r.geoProjectionMutator(T),R=q(D);return R.parallel=function(G){return arguments.length?q(D=G*I):D*z},R}function Nr(T,D){return[T*o(D),D]}Nr.invert=function(T,D){return[T/o(D),D]};function Ce(){return r.geoProjection(Nr).scale(152.63)}function He(T){if(!T)return Nr;var D=1/b(T);function q(R,G){var U=D+T-G,j=U&&R*o(G)/U;return[U*m(j),D-U*o(j)]}return q.invert=function(R,G){var U=N(R*R+(G=D-G)*G),j=D+T-U;return[U/o(j)*i(R,G),j]},q}function cr(){return Pr(He).scale(123.082).center([0,26.1441]).parallel(45)}function Mr(T){function D(q,R){var G=_-R,U=G&&q*T*m(G)/G;return[G*m(U)/T,_-G*o(U)]}return D.invert=function(q,R){var G=q*T,U=_-R,j=N(G*G+U*U),ve=i(G,U);return[(j?j/m(j):1)*ve/T,_-j]},D}function vr(){var T=.5,D=r.geoProjectionMutator(Mr),q=D(T);return q.fraction=function(R){return arguments.length?D(T=+R):T},q.scale(158.837)}var kr=Ar(1,4/x,x);function Er(){return r.geoProjection(kr).scale(152.63)}function jr(T,D,q,R,G,U){var j=o(U),ve;if(a(T)>1||a(U)>1)ve=X(q*G+D*R*j);else{var pe=m(T/2),ce=m(U/2);ve=2*H(N(pe*pe+D*R*ce*ce))}return a(ve)>y?[ve,i(R*m(U),D*G-q*R*j)]:[0,0]}function et(T,D,q){return X((T*T+D*D-q*q)/(2*T*D))}function nr(T){return T-2*x*s((T+x)/(2*x))}function Cr(T,D,q){for(var R=[[T[0],T[1],m(T[1]),o(T[1])],[D[0],D[1],m(D[1]),o(D[1])],[q[0],q[1],m(q[1]),o(q[1])]],G=R[2],U,j=0;j<3;++j,G=U)U=R[j],G.v=jr(U[1]-G[1],G[3],G[2],U[3],U[2],U[0]-G[0]),G.point=[0,0];var ve=et(R[0].v[0],R[2].v[0],R[1].v[0]),pe=et(R[0].v[0],R[1].v[0],R[2].v[0]),ce=x-ve;R[2].point[1]=0,R[0].point[0]=-(R[1].point[0]=R[0].v[0]/2);var me=[R[2].point[0]=R[0].point[0]+R[2].v[0]*o(ve),2*(R[0].point[1]=R[1].point[1]=R[2].v[0]*m(ve))];function we(Fe,Ie){var Ke=m(Ie),ur=o(Ie),Tr=new Array(3),Kr;for(Kr=0;Kr<3;++Kr){var ct=R[Kr];if(Tr[Kr]=jr(Ie-ct[1],ct[3],ct[2],ur,Ke,Fe-ct[0]),!Tr[Kr][0])return ct.point;Tr[Kr][1]=nr(Tr[Kr][1]-ct.v[1])}var ht=me.slice();for(Kr=0;Kr<3;++Kr){var pt=Kr==2?0:Kr+1,yt=et(R[Kr].v[0],Tr[Kr][0],Tr[pt][0]);Tr[Kr][1]<0&&(yt=-yt),Kr?Kr==1?(yt=pe-yt,ht[0]-=Tr[Kr][0]*o(yt),ht[1]-=Tr[Kr][0]*m(yt)):(yt=ce-yt,ht[0]+=Tr[Kr][0]*o(yt),ht[1]+=Tr[Kr][0]*m(yt)):(ht[0]+=Tr[Kr][0]*o(yt),ht[1]-=Tr[Kr][0]*m(yt))}return ht[0]/=3,ht[1]/=3,ht}return we}function ar(T){return T[0]*=I,T[1]*=I,T}function Fr(){return Wr([0,22],[45,22],[22.5,-22]).scale(380).center([22.5,2])}function Wr(T,D,q){var R=r.geoCentroid({type:"MultiPoint",coordinates:[T,D,q]}),G=[-R[0],-R[1]],U=r.geoRotation(G),j=Cr(ar(U(T)),ar(U(D)),ar(U(q)));j.invert=tr(j);var ve=r.geoProjection(j).rotate(G),pe=ve.center;return delete ve.rotate,ve.center=function(ce){return arguments.length?pe(U(ce)):U.invert(pe())},ve.clipAngle(90)}function Br(T,D){var q=N(1-m(D));return[2/E*T*q,E*(1-q)]}Br.invert=function(T,D){var q=(q=D/E-1)*q;return[q>0?T*N(x/q)/2:0,H(1-q)]};function Zr(){return r.geoProjection(Br).scale(95.6464).center([0,30])}function Ae(T){var D=b(T);function q(R,G){return[R,(R?R/m(R):1)*(m(G)*o(R)-D*o(G))]}return q.invert=D?function(R,G){R&&(G*=m(R)/R);var U=o(R);return[R,2*i(N(U*U+D*D-G*G)-U,D-G)]}:function(R,G){return[R,H(R?G*b(R)/R:G)]},q}function Be(){return Pr(Ae).scale(249.828).clipAngle(90)}var or=N(3);function dr(T,D){return[or*T*(2*o(2*D/3)-1)/E,or*E*m(D/3)]}dr.invert=function(T,D){var q=3*H(D/(or*E));return[E*T/(or*(2*o(2*q/3)-1)),q]};function Dt(){return r.geoProjection(dr).scale(156.19)}function Wt(T){var D=o(T);function q(R,G){return[R*D,m(G)/D]}return q.invert=function(R,G){return[R/D,H(G*D)]},q}function ba(){return Pr(Wt).parallel(38.58).scale(195.044)}function _a(T){var D=o(T);function q(R,G){return[R*D,(1+D)*b(G/2)]}return q.invert=function(R,G){return[R/D,n(G/(1+D))*2]},q}function Xt(){return Pr(_a).scale(124.75)}function Ht(T,D){var q=N(8/(3*x));return[q*T*(1-a(D)/x),q*D]}Ht.invert=function(T,D){var q=N(8/(3*x)),R=D/q;return[T/(q*(1-a(R)/x)),R]};function la(){return r.geoProjection(Ht).scale(165.664)}function Pt(T,D){var q=N(4-3*m(a(D)));return[2/N(6*x)*T*q,p(D)*N(2*x/3)*(2-q)]}Pt.invert=function(T,D){var q=2-a(D)/N(2*x/3);return[T*N(6*x)/(2*q),p(D)*H((4-q*q)/3)]};function Ta(){return r.geoProjection(Pt).scale(165.664)}function pa(T,D){var q=N(x*(4+x));return[2/q*T*(1+N(1-4*D*D/(x*x))),4/q*D]}pa.invert=function(T,D){var q=N(x*(4+x))/2;return[T*q/(1+N(1-D*D*(4+x)/(4*x))),D*q/2]};function Xa(){return r.geoProjection(pa).scale(180.739)}function hn(T,D){var q=(2+_)*m(D);D/=2;for(var R=0,G=1/0;R<10&&a(G)>y;R++){var U=o(D);D-=G=(D+m(D)*(U+2)-q)/(2*U*(1+U))}return[2/N(x*(4+x))*T*(1+o(D)),2*N(x/(4+x))*m(D)]}hn.invert=function(T,D){var q=D*N((4+x)/x)/2,R=H(q),G=o(R);return[T/(2/N(x*(4+x))*(1+G)),H((R+q*(G+2))/(2+_))]};function ja(){return r.geoProjection(hn).scale(180.739)}function Fa(T,D){return[T*(1+o(D))/N(2+x),2*D/N(2+x)]}Fa.invert=function(T,D){var q=N(2+x),R=D*q/2;return[q*T/(1+o(R)),R]};function Rr(){return r.geoProjection(Fa).scale(173.044)}function Vt(T,D){for(var q=(1+_)*m(D),R=0,G=1/0;R<10&&a(G)>y;R++)D-=G=(D+m(D)-q)/(1+o(D));return q=N(2+x),[T*(1+o(D))/q,2*D/q]}Vt.invert=function(T,D){var q=1+_,R=N(q/2);return[T*2*R/(1+o(D*=R)),H((D+m(D))/q)]};function Et(){return r.geoProjection(Vt).scale(173.044)}var Zt=3+2*M;function ma(T,D){var q=m(T/=2),R=o(T),G=N(o(D)),U=o(D/=2),j=m(D)/(U+M*R*G),ve=N(2/(1+j*j)),pe=N((M*U+(R+q)*G)/(M*U+(R-q)*G));return[Zt*(ve*(pe-1/pe)-2*u(pe)),Zt*(ve*j*(pe+1/pe)-2*n(j))]}ma.invert=function(T,D){if(!(U=je.invert(T/1.2,D*1.065)))return null;var q=U[0],R=U[1],G=20,U;T/=Zt,D/=Zt;do{var j=q/2,ve=R/2,pe=m(j),ce=o(j),me=m(ve),we=o(ve),Fe=o(R),Ie=N(Fe),Ke=me/(we+M*ce*Ie),ur=Ke*Ke,Tr=N(2/(1+ur)),Kr=M*we+(ce+pe)*Ie,ct=M*we+(ce-pe)*Ie,ht=Kr/ct,pt=N(ht),yt=pt-1/pt,fa=pt+1/pt,Da=Tr*yt-2*u(pt)-T,Gt=Tr*Ke*fa-2*n(Ke)-D,tn=me&&k*Ie*pe*ur/me,zn=(M*ce*we+Ie)/(2*(we+M*ce*Ie)*(we+M*ce*Ie)*Ie),Ii=-.5*Ke*Tr*Tr*Tr,Ll=Ii*tn,Au=Ii*zn,Qn=(Qn=2*we+M*Ie*(ce-pe))*Qn*pt,ei=(M*ce*we*Ie+Fe)/Qn,xo=-(M*pe*me)/(Ie*Qn),ql=yt*Ll-2*ei/pt+Tr*(ei+ei/ht),Pl=yt*Au-2*xo/pt+Tr*(xo+xo/ht),Rl=Ke*fa*Ll-2*tn/(1+ur)+Tr*fa*tn+Tr*Ke*(ei-ei/ht),Ms=Ke*fa*Au-2*zn/(1+ur)+Tr*fa*zn+Tr*Ke*(xo-xo/ht),Vo=Pl*Rl-Ms*ql;if(!Vo)break;var Mu=(Gt*Pl-Da*Ms)/Vo,Ef=(Da*Rl-Gt*ql)/Vo;q-=Mu,R=f(-_,c(_,R-Ef))}while((a(Mu)>y||a(Ef)>y)&&--G>0);return a(a(R)-_)R){var we=N(me),Fe=i(ce,pe),Ie=q*d(Fe/q),Ke=Fe-Ie,ur=T*o(Ke),Tr=(T*m(Ke)-Ke*m(ur))/(_-ur),Kr=Ia(Ke,Tr),ct=(x-T)/Yi(Kr,ur,x);pe=we;var ht=50,pt;do pe-=pt=(T+Yi(Kr,ur,pe)*ct-we)/(Kr(pe)*ct);while(a(pt)>y&&--ht>0);ce=Ke*m(pe),pe<_&&(ce-=Tr*(pe-_));var yt=m(Ie),fa=o(Ie);ve[0]=pe*fa-ce*yt,ve[1]=pe*yt+ce*fa}return ve}return G.invert=function(U,j){var ve=U*U+j*j;if(ve>R){var pe=N(ve),ce=i(j,U),me=q*d(ce/q),we=ce-me;U=pe*o(we),j=pe*m(we);for(var Fe=U-_,Ie=m(U),Ke=j/Ie,ur=U<_?1/0:0,Tr=10;;){var Kr=T*m(Ke),ct=T*o(Ke),ht=m(ct),pt=_-ct,yt=(Kr-Ke*ht)/pt,fa=Ia(Ke,yt);if(a(ur)y||a(Ke)>y)&&--ur>0);return[we,Fe]},pe}var Ri=Vi(2.8284,-1.6988,.75432,-.18071,1.76003,-.38914,.042555);function os(){return r.geoProjection(Ri).scale(149.995)}var ls=Vi(2.583819,-.835827,.170354,-.038094,1.543313,-.411435,.082742);function Ks(){return r.geoProjection(ls).scale(153.93)}var ss=Vi(5/6*x,-.62636,-.0344,0,1.3493,-.05524,0,.045);function Qs(){return r.geoProjection(ss).scale(130.945)}function ot(T,D){var q=T*T,R=D*D;return[T*(1-.162388*R)*(.87-952426e-9*q*q),D*(1+R/12)]}ot.invert=function(T,D){var q=T,R=D,G=50,U;do{var j=R*R;R-=U=(R*(1+j/12)-D)/(1+j/4)}while(a(U)>y&&--G>0);G=50,T/=1-.162388*j;do{var ve=(ve=q*q)*ve;q-=U=(q*(.87-952426e-9*ve)-T)/(.87-.00476213*ve)}while(a(U)>y&&--G>0);return[q,R]};function st(){return r.geoProjection(ot).scale(131.747)}var jt=Vi(2.6516,-.76534,.19123,-.047094,1.36289,-.13965,.031762);function Or(){return r.geoProjection(jt).scale(131.087)}function Mn(T){var D=T(_,0)[0]-T(-_,0)[0];function q(R,G){var U=R>0?-.5:.5,j=T(R+U*x,G);return j[0]-=U*D,j}return T.invert&&(q.invert=function(R,G){var U=R>0?-.5:.5,j=T.invert(R+U*D,G),ve=j[0]-U*x;return ve<-x?ve+=2*x:ve>x&&(ve-=2*x),j[0]=ve,j}),q}function sa(T,D){var q=p(T),R=p(D),G=o(D),U=o(T)*G,j=m(T)*G,ve=m(R*D);T=a(i(j,ve)),D=H(U),a(T-_)>y&&(T%=_);var pe=Wa(T>x/4?_-T:T,D);return T>x/4&&(ve=pe[0],pe[0]=-pe[1],pe[1]=-ve),pe[0]*=q,pe[1]*=-R,pe}sa.invert=function(T,D){a(T)>1&&(T=p(T)*2-T),a(D)>1&&(D=p(D)*2-D);var q=p(T),R=p(D),G=-q*T,U=-R*D,j=U/G<1,ve=en(j?U:G,j?G:U),pe=ve[0],ce=ve[1],me=o(ce);return j&&(pe=-_-pe),[q*(i(m(pe)*me,-m(ce))+x),R*H(o(pe)*me)]};function Wa(T,D){if(D===_)return[0,0];var q=m(D),R=q*q,G=R*R,U=1+G,j=1+3*G,ve=1-G,pe=H(1/N(U)),ce=ve+R*U*pe,me=(1-q)/ce,we=N(me),Fe=me*U,Ie=N(Fe),Ke=we*ve,ur,Tr;if(T===0)return[0,-(Ke+R*Ie)];var Kr=o(D),ct=1/Kr,ht=2*q*Kr,pt=(-3*R+pe*j)*ht,yt=(-ce*Kr-(1-q)*pt)/(ce*ce),fa=.5*yt/we,Da=ve*fa-2*R*we*ht,Gt=R*U*yt+me*j*ht,tn=-ct*ht,zn=-ct*Gt,Ii=-2*ct*Da,Ll=4*T/x,Au;if(T>.222*x||D.175*x){if(ur=(Ke+R*N(Fe*(1+G)-Ke*Ke))/(1+G),T>x/4)return[ur,ur];var Qn=ur,ei=.5*ur;ur=.5*(ei+Qn),Tr=50;do{var xo=N(Fe-ur*ur),ql=ur*(Ii+tn*xo)+zn*H(ur/Ie)-Ll;if(!ql)break;ql<0?ei=ur:Qn=ur,ur=.5*(ei+Qn)}while(a(Qn-ei)>y&&--Tr>0)}else{ur=y,Tr=25;do{var Pl=ur*ur,Rl=N(Fe-Pl),Ms=Ii+tn*Rl,Vo=ur*Ms+zn*H(ur/Ie)-Ll,Mu=Ms+(zn-tn*Pl)/Rl;ur-=Au=Rl?Vo/Mu:0}while(a(Au)>y&&--Tr>0)}return[ur,-Ke-R*N(Fe-ur*ur)]}function en(T,D){for(var q=0,R=1,G=.5,U=50;;){var j=G*G,ve=N(G),pe=H(1/N(1+j)),ce=1-j+G*(1+j)*pe,me=(1-ve)/ce,we=N(me),Fe=me*(1+j),Ie=we*(1-j),Ke=Fe-T*T,ur=N(Ke),Tr=D+Ie+G*ur;if(a(R-q)0?q=G:R=G,G=.5*(q+R)}if(!U)return null;var Kr=H(ve),ct=o(Kr),ht=1/ct,pt=2*ve*ct,yt=(-3*G+pe*(1+3*j))*pt,fa=(-ce*ct-(1-ve)*yt)/(ce*ce),Da=.5*fa/we,Gt=(1-j)*Da-2*G*we*pt,tn=-2*ht*Gt,zn=-ht*pt,Ii=-ht*(G*(1+j)*fa+me*(1+3*j)*pt);return[x/4*(T*(tn+zn*ur)+Ii*H(T/N(Fe))),Kr]}function Vn(){return r.geoProjection(Mn(sa)).scale(239.75)}function yl(T,D,q){var R,G,U;return T?(R=us(T,q),D?(G=us(D,1-q),U=G[1]*G[1]+q*R[0]*R[0]*G[0]*G[0],[[R[0]*G[2]/U,R[1]*R[2]*G[0]*G[1]/U],[R[1]*G[1]/U,-R[0]*R[2]*G[0]*G[2]/U],[R[2]*G[1]*G[2]/U,-q*R[0]*R[1]*G[0]/U]]):[[R[0],0],[R[1],0],[R[2],0]]):(G=us(D,1-q),[[0,G[0]/G[1]],[1/G[1],0],[G[2]/G[1],0]])}function us(T,D){var q,R,G,U,j;if(D=1-y)return q=(1-D)/4,R=re(T),U=Q(T),G=1/R,j=R*ee(T),[U+q*(j-T)/(R*R),G-q*U*G*(j-T),G+q*U*G*(j+T),2*n(l(T))-_+q*(j-T)/R];var ve=[1,0,0,0,0,0,0,0,0],pe=[N(D),0,0,0,0,0,0,0,0],ce=0;for(R=N(1-D),j=1;a(pe[ce]/ve[ce])>y&&ce<8;)q=ve[ce++],pe[ce]=(q-R)/2,ve[ce]=(q+R)/2,R=N(q*R),j*=2;G=j*ve[ce]*T;do U=pe[ce]*m(R=G)/ve[ce],G=(H(U)+G)/2;while(--ce);return[m(G),U=o(G),U/o(G-R),G]}function fs(T,D,q){var R=a(T),G=a(D),U=ee(G);if(R){var j=1/m(R),ve=1/(b(R)*b(R)),pe=-(ve+q*(U*U*j*j)-1+q),ce=(q-1)*ve,me=(-pe+N(pe*pe-4*ce))/2;return[Xi(n(1/N(me)),q)*p(T),Xi(n(N((me/ve-1)/q)),1-q)*p(D)]}return[0,Xi(n(U),1-q)*p(D)]}function Xi(T,D){if(!D)return T;if(D===1)return u(b(T/2+A));for(var q=1,R=N(1-D),G=N(D),U=0;a(G)>y;U++){if(T%x){var j=n(R*b(T)/q);j<0&&(j+=x),T+=j+~~(T/x)*x}else T+=T;G=(q+R)/2,R=N(q*R),G=((q=G)-R)/2}return T/(h(2,U)*q)}function No(T,D){var q=(M-1)/(M+1),R=N(1-q*q),G=Xi(_,R*R),U=-1,j=u(b(x/4+a(D)/2)),ve=l(U*j)/N(q),pe=bl(ve*o(U*T),ve*m(U*T)),ce=fs(pe[0],pe[1],R*R);return[-ce[1],(D>=0?1:-1)*(.5*G-ce[0])]}function bl(T,D){var q=T*T,R=D+1,G=1-q-D*D;return[.5*((T>=0?_:-_)-i(G,2*T)),-.25*u(G*G+4*q)+.5*u(R*R+q)]}function cs(T,D){var q=D[0]*D[0]+D[1]*D[1];return[(T[0]*D[0]+T[1]*D[1])/q,(T[1]*D[0]-T[0]*D[1])/q]}No.invert=function(T,D){var q=(M-1)/(M+1),R=N(1-q*q),G=Xi(_,R*R),U=-1,j=yl(.5*G-D,-T,R*R),ve=cs(j[0],j[1]),pe=i(ve[1],ve[0])/U;return[pe,2*n(l(.5/U*u(q*ve[0]*ve[0]+q*ve[1]*ve[1])))-_]};function eu(){return r.geoProjection(Mn(No)).scale(151.496)}function sf(T){var D=m(T),q=o(T),R=Gc(T);R.invert=Gc(-T);function G(U,j){var ve=R(U,j);U=ve[0],j=ve[1];var pe=m(j),ce=o(j),me=o(U),we=X(D*pe+q*ce*me),Fe=m(we),Ie=a(Fe)>y?we/Fe:1;return[Ie*q*m(U),(a(U)>_?Ie:-Ie)*(D*ce-q*pe*me)]}return G.invert=function(U,j){var ve=N(U*U+j*j),pe=-m(ve),ce=o(ve),me=ve*ce,we=-j*pe,Fe=ve*D,Ie=N(me*me+we*we-Fe*Fe),Ke=i(me*Fe+we*Ie,we*Fe-me*Ie),ur=(ve>_?-1:1)*i(U*pe,ve*o(Ke)*ce+j*m(Ke)*pe);return R.invert(ur,Ke)},G}function Gc(T){var D=m(T),q=o(T);return function(R,G){var U=o(G),j=o(R)*U,ve=m(R)*U,pe=m(G);return[i(ve,j*q-pe*D),H(pe*q+j*D)]}}function ru(){var T=0,D=r.geoProjectionMutator(sf),q=D(T),R=q.rotate,G=q.stream,U=r.geoCircle();return q.parallel=function(j){if(!arguments.length)return T*z;var ve=q.rotate();return D(T=j*I).rotate(ve)},q.rotate=function(j){return arguments.length?(R.call(q,[j[0],j[1]-T*z]),U.center([-j[0],-j[1]]),q):(j=R.call(q),j[1]+=T*z,j)},q.stream=function(j){return j=G(j),j.sphere=function(){j.polygonStart();var ve=.01,pe=U.radius(90-ve)().coordinates[0],ce=pe.length-1,me=-1,we;for(j.lineStart();++me=0;)j.point((we=pe[me])[0],we[1]);j.lineEnd(),j.polygonEnd()},j},q.scale(79.4187).parallel(45).clipAngle(180-.001)}var tu=3,au=H(1-1/tu)*z,_l=Wt(0);function Bo(T){var D=au*I,q=Br(x,D)[0]-Br(-x,D)[0],R=_l(0,D)[1],G=Br(0,D)[1],U=E-G,j=P/T,ve=4/P,pe=R+U*U*4/P;function ce(me,we){var Fe,Ie=a(we);if(Ie>D){var Ke=c(T-1,f(0,s((me+x)/j)));me+=x*(T-1)/T-Ke*j,Fe=Br(me,Ie),Fe[0]=Fe[0]*P/q-P*(T-1)/(2*T)+Ke*P/T,Fe[1]=R+(Fe[1]-G)*4*U/P,we<0&&(Fe[1]=-Fe[1])}else Fe=_l(me,we);return Fe[0]*=ve,Fe[1]/=pe,Fe}return ce.invert=function(me,we){me/=ve,we*=pe;var Fe=a(we);if(Fe>R){var Ie=c(T-1,f(0,s((me+x)/j)));me=(me+x*(T-1)/T-Ie*j)*q/P;var Ke=Br.invert(me,.25*(Fe-R)*P/U+G);return Ke[0]-=x*(T-1)/T-Ie*j,we<0&&(Ke[1]=-Ke[1]),Ke}return _l.invert(me,we)},ce}function Io(T,D){return[T,D&1?90-y:au]}function vo(T,D){return[T,D&1?-90+y:-au]}function uf(T){return[T[0]*(1-y),T[1]]}function Zu(T){var D=[].concat(t.range(-180,180+T/2,T).map(Io),t.range(180,-180-T/2,-T).map(vo));return{type:"Polygon",coordinates:[T===180?D.map(uf):D]}}function vs(){var T=4,D=r.geoProjectionMutator(Bo),q=D(T),R=q.stream;return q.lobes=function(G){return arguments.length?D(T=+G):T},q.stream=function(G){var U=q.rotate(),j=R(G),ve=(q.rotate([0,0]),R(G));return q.rotate(U),j.sphere=function(){r.geoStream(Zu(180/T),ve)},j},q.scale(239.75)}function ff(T){var D=1+T,q=m(1/D),R=H(q),G=2*N(x/(U=x+4*R*D)),U,j=.5*G*(D+N(T*(2+T))),ve=T*T,pe=D*D;function ce(me,we){var Fe=1-m(we),Ie,Ke;if(Fe&&Fe<2){var ur=_-we,Tr=25,Kr;do{var ct=m(ur),ht=o(ur),pt=R+i(ct,D-ht),yt=1+pe-2*D*ht;ur-=Kr=(ur-ve*R-D*ct+yt*pt-.5*Fe*U)/(2*D*ct*pt)}while(a(Kr)>C&&--Tr>0);Ie=G*N(yt),Ke=me*pt/x}else Ie=G*(T+Fe),Ke=me*R/x;return[Ie*m(Ke),j-Ie*o(Ke)]}return ce.invert=function(me,we){var Fe=me*me+(we-=j)*we,Ie=(1+pe-Fe/(G*G))/(2*D),Ke=X(Ie),ur=m(Ke),Tr=R+i(ur,D-Ie);return[H(me/N(Fe))*x/Tr,H(1-2*(Ke-ve*R-D*ur+(1+pe-2*D*Ie)*Tr)/U)]},ce}function Yc(){var T=1,D=r.geoProjectionMutator(ff),q=D(T);return q.ratio=function(R){return arguments.length?D(T=+R):T},q.scale(167.774).center([0,18.67])}var nu=.7109889596207567,ho=.0528035274542;function iu(T,D){return D>-nu?(T=Qe(T,D),T[1]+=ho,T):Nr(T,D)}iu.invert=function(T,D){return D>-nu?Qe.invert(T,D-ho):Nr.invert(T,D)};function Vc(){return r.geoProjection(iu).rotate([-20,-55]).scale(164.263).center([0,-5.4036])}function ou(T,D){return a(D)>nu?(T=Qe(T,D),T[1]-=D>0?ho:-ho,T):Nr(T,D)}ou.invert=function(T,D){return a(D)>nu?Qe.invert(T,D+(D>0?ho:-ho)):Nr.invert(T,D)};function N2(){return r.geoProjection(ou).scale(152.63)}function xl(T,D,q,R){var G=N(4*x/(2*q+(1+T-D/2)*m(2*q)+(T+D)/2*m(4*q)+D/2*m(6*q))),U=N(R*m(q)*N((1+T*o(2*q)+D*o(4*q))/(1+T+D))),j=q*pe(1);function ve(we){return N(1+T*o(2*we)+D*o(4*we))}function pe(we){var Fe=we*q;return(2*Fe+(1+T-D/2)*m(2*Fe)+(T+D)/2*m(4*Fe)+D/2*m(6*Fe))/q}function ce(we){return ve(we)*m(we)}var me=function(we,Fe){var Ie=q*Je(pe,j*m(Fe)/q,Fe/x);isNaN(Ie)&&(Ie=q*p(Fe));var Ke=G*ve(Ie);return[Ke*U*we/x*o(Ie),Ke/U*m(Ie)]};return me.invert=function(we,Fe){var Ie=Je(ce,Fe*U/G);return[we*x/(o(Ie)*G*U*ve(Ie)),H(q*pe(Ie/q)/j)]},q===0&&(G=N(R/x),me=function(we,Fe){return[we*G,m(Fe)/G]},me.invert=function(we,Fe){return[we/G,H(Fe*G)]}),me}function cf(){var T=1,D=0,q=45*I,R=2,G=r.geoProjectionMutator(xl),U=G(T,D,q,R);return U.a=function(j){return arguments.length?G(T=+j,D,q,R):T},U.b=function(j){return arguments.length?G(T,D=+j,q,R):D},U.psiMax=function(j){return arguments.length?G(T,D,q=+j*I,R):q*z},U.ratio=function(j){return arguments.length?G(T,D,q,R=+j):R},U.scale(180.739)}function hs(T,D,q,R,G,U,j,ve,pe,ce,me){if(me.nanEncountered)return NaN;var we,Fe,Ie,Ke,ur,Tr,Kr,ct,ht,pt;if(we=q-D,Fe=T(D+we*.25),Ie=T(q-we*.25),isNaN(Fe)){me.nanEncountered=!0;return}if(isNaN(Ie)){me.nanEncountered=!0;return}return Ke=we*(R+4*Fe+G)/12,ur=we*(G+4*Ie+U)/12,Tr=Ke+ur,pt=(Tr-j)/15,ce>pe?(me.maxDepthCount++,Tr+pt):Math.abs(pt)>1;do pe[Tr]>Ie?ur=Tr:Ke=Tr,Tr=Ke+ur>>1;while(Tr>Ke);var Kr=pe[Tr+1]-pe[Tr];return Kr&&(Kr=(Ie-pe[Tr+1])/Kr),(Tr+1+Kr)/j}var we=2*me(1)/x*U/q,Fe=function(Ie,Ke){var ur=me(a(m(Ke))),Tr=R(ur)*Ie;return ur/=we,[Tr,Ke>=0?ur:-ur]};return Fe.invert=function(Ie,Ke){var ur;return Ke*=we,a(Ke)<1&&(ur=p(Ke)*H(G(a(Ke))*U)),[Ie/R(a(Ke)),ur]},Fe}function Oo(){var T=0,D=2.5,q=1.183136,R=r.geoProjectionMutator(Ho),G=R(T,D,q);return G.alpha=function(U){return arguments.length?R(T=+U,D,q):T},G.k=function(U){return arguments.length?R(T,D=+U,q):D},G.gamma=function(U){return arguments.length?R(T,D,q=+U):q},G.scale(152.63)}function vf(T,D){return a(T[0]-D[0])=0;--pe)q=T[1][pe],R=q[0][0],G=q[0][1],U=q[1][1],j=q[2][0],ve=q[2][1],D.push(ji([[j-y,ve-y],[j-y,U+y],[R+y,U+y],[R+y,G-y]],30));return{type:"Polygon",coordinates:[t.merge(D)]}}function po(T,D,q){var R,G;function U(pe,ce){for(var me=ce<0?-1:1,we=D[+(ce<0)],Fe=0,Ie=we.length-1;Fewe[Fe][2][0];++Fe);var Ke=T(pe-we[Fe][1][0],ce);return Ke[0]+=T(we[Fe][1][0],me*ce>me*we[Fe][0][1]?we[Fe][0][1]:ce)[0],Ke}q?U.invert=q(U):T.invert&&(U.invert=function(pe,ce){for(var me=G[+(ce<0)],we=D[+(ce<0)],Fe=0,Ie=me.length;FeKe&&(ur=Ie,Ie=Ke,Ke=ur),[[we,Ie],[Fe,Ke]]})}),j):D.map(function(ce){return ce.map(function(me){return[[me[0][0]*z,me[0][1]*z],[me[1][0]*z,me[1][1]*z],[me[2][0]*z,me[2][1]*z]]})})},D!=null&&j.lobes(D),j}var ds=[[[[-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 I2(){return po(Ue,ds).scale(160.857)}var mo=[[[[-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 wl(){return po(ou,mo).scale(152.63)}var Al=[[[[-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 Ml(){return po(Qe,Al).scale(169.529)}var Uo=[[[[-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 lu(){return po(Qe,Uo).scale(169.529).rotate([20,0])}var $u=[[[[-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 su(){return po(iu,$u,tr).rotate([-20,-55]).scale(164.263).center([0,-5.4036])}var uu=[[[[-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 Tl(){return po(Nr,uu).scale(152.63).rotate([-20,0])}function ps(T,D){return[3/P*T*N(x*x/3-D*D),D]}ps.invert=function(T,D){return[P/3*T/N(x*x/3-D*D),D]};function ms(){return r.geoProjection(ps).scale(158.837)}function Ju(T){function D(q,R){if(a(a(R)-_)2)return null;q/=2,R/=2;var U=q*q,j=R*R,ve=2*R/(1+U+j);return ve=h((1+ve)/(1-ve),1/T),[i(2*q,1-U-j)/T,H((ve-1)/(ve+1))]},D}function Ku(){var T=.5,D=r.geoProjectionMutator(Ju),q=D(T);return q.spacing=function(R){return arguments.length?D(T=+R):T},q.scale(124.75)}var zi=x/M;function Qu(T,D){return[T*(1+N(o(D)))/2,D/(o(D/2)*o(T/6))]}Qu.invert=function(T,D){var q=a(T),R=a(D),G=y,U=_;Ry||a(Tr)>y)&&--G>0);return G&&[q,R]};function Tn(){return r.geoProjection(oi).scale(139.98)}function Xn(T,D){return[m(T)/o(D),b(D)*o(T)]}Xn.invert=function(T,D){var q=T*T,R=D*D,G=R+1,U=q+G,j=T?k*N((U-N(U*U-4*q))/q):1/N(G);return[H(T*j),p(D)*X(j)]};function go(){return r.geoProjection(Xn).scale(144.049).clipAngle(90-.001)}function fu(T){var D=o(T),q=b(A+T/2);function R(G,U){var j=U-T,ve=a(j)=0;)me=T[ce],we=me[0]+ve*(Ie=we)-pe*Fe,Fe=me[1]+ve*Fe+pe*Ie;return we=ve*(Ie=we)-pe*Fe,Fe=ve*Fe+pe*Ie,[we,Fe]}return q.invert=function(R,G){var U=20,j=R,ve=G;do{for(var pe=D,ce=T[pe],me=ce[0],we=ce[1],Fe=0,Ie=0,Ke;--pe>=0;)ce=T[pe],Fe=me+j*(Ke=Fe)-ve*Ie,Ie=we+j*Ie+ve*Ke,me=ce[0]+j*(Ke=me)-ve*we,we=ce[1]+j*we+ve*Ke;Fe=me+j*(Ke=Fe)-ve*Ie,Ie=we+j*Ie+ve*Ke,me=j*(Ke=me)-ve*we-R,we=j*we+ve*Ke-G;var ur=Fe*Fe+Ie*Ie,Tr,Kr;j-=Tr=(me*Fe+we*Ie)/ur,ve-=Kr=(we*Fe-me*Ie)/ur}while(a(Tr)+a(Kr)>y*y&&--U>0);if(U){var ct=N(j*j+ve*ve),ht=2*n(ct*.5),pt=m(ht);return[i(j*pt,ct*o(ht)),ct?H(ve*pt/ct):0]}},q}var H2=[[.9972523,0],[.0052513,-.0041175],[.0074606,.0048125],[-.0153783,-.1968253],[.0636871,-.1408027],[.3660976,-.2937382]],O2=[[.98879,0],[0,0],[-.050909,0],[0,0],[.075528,0]],df=[[.984299,0],[.0211642,.0037608],[-.1036018,-.0575102],[-.0329095,-.0320119],[.0499471,.1223335],[.026046,.0899805],[7388e-7,-.1435792],[.0075848,-.1334108],[-.0216473,.0776645],[-.0225161,.0853673]],pf=[[.9245,0],[0,0],[.01943,0]],mf=[[.721316,0],[0,0],[-.00881625,-.00617325]];function gf(){return Wi(H2,[152,-64]).scale(1400).center([-160.908,62.4864]).clipAngle(30).angle(7.8)}function Wc(){return Wi(O2,[95,-38]).scale(1e3).clipAngle(55).center([-96.5563,38.8675])}function Zc(){return Wi(df,[120,-45]).scale(359.513).clipAngle(55).center([-117.474,53.0628])}function cu(){return Wi(pf,[-20,-18]).scale(209.091).center([20,16.7214]).clipAngle(82)}function vu(){return Wi(mf,[165,10]).scale(250).clipAngle(130).center([-165,-10])}function Wi(T,D){var q=r.geoProjection(jc(T)).rotate(D).clipAngle(90),R=r.geoRotation(D),G=q.center;return delete q.rotate,q.center=function(U){return arguments.length?G(R(U)):R.invert(G())},q}var r0=N(6),hu=N(7);function t0(T,D){var q=H(7*m(D)/(3*r0));return[r0*T*(2*o(2*q/3)-1)/hu,9*m(q/3)/hu]}t0.invert=function(T,D){var q=3*H(D*hu/9);return[T*hu/(r0*(2*o(2*q/3)-1)),H(m(q)*3*r0/7)]};function $c(){return r.geoProjection(t0).scale(164.859)}function yf(T,D){for(var q=(1+k)*m(D),R=D,G=0,U;G<25&&(R-=U=(m(R/2)+m(R)-q)/(.5*o(R/2)+o(R)),!(a(U)C&&--R>0);return U=q*q,j=U*U,ve=U*j,[T/(.84719-.13063*U+ve*ve*(-.04515+.05494*U-.02326*j+.00331*ve)),q]};function du(){return r.geoProjection(ys).scale(175.295)}function pu(T,D){return[T*(1+o(D))/2,2*(D-b(D/2))]}pu.invert=function(T,D){for(var q=D/2,R=0,G=1/0;R<10&&a(G)>y;++R){var U=o(D/2);D-=G=(D-b(D/2)-q)/(1-.5/(U*U))}return[2*T/(1+o(D)),D]};function bf(){return r.geoProjection(pu).scale(152.63)}var Yo=[[[[-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 Jc(){return po(Ne(1/0),Yo).rotate([20,0]).scale(152.63)}function _f(T,D){var q=m(D),R=o(D),G=p(T);if(T===0||a(D)===_)return[0,D];if(D===0)return[T,0];if(a(T)===_)return[T*R,_*q];var U=x/(2*T)-2*T/x,j=2*D/x,ve=(1-j*j)/(q-j),pe=U*U,ce=ve*ve,me=1+pe/ce,we=1+ce/pe,Fe=(U*q/ve-U/2)/me,Ie=(ce*q/pe+ve/2)/we,Ke=Fe*Fe+R*R/me,ur=Ie*Ie-(ce*q*q/pe+ve*q-1)/we;return[_*(Fe+N(Ke)*G),_*(Ie+N(ur<0?0:ur)*p(-D*U)*G)]}_f.invert=function(T,D){T/=_,D/=_;var q=T*T,R=D*D,G=q+R,U=x*x;return[T?(G-1+N((1-G)*(1-G)+4*q))/(2*T)*_:0,Je(function(j){return G*(x*m(j)-2*j)*x+4*j*j*(D-m(j))+2*x*j-U*D},0)]};function Kc(){return r.geoProjection(_f).scale(127.267)}var xf=1.0148,n0=.23185,wf=-.14499,Af=.02406,G2=xf,Mf=5*n0,Zi=7*wf,Tf=9*Af,bs=1.790857183;function kf(T,D){var q=D*D;return[T,D*(xf+q*q*(n0+q*(wf+Af*q)))]}kf.invert=function(T,D){D>bs?D=bs:D<-bs&&(D=-bs);var q=D,R;do{var G=q*q;q-=R=(q*(xf+G*G*(n0+G*(wf+Af*G)))-D)/(G2+G*G*(Mf+G*(Zi+Tf*G)))}while(a(R)>y);return[T,q]};function Qc(){return r.geoProjection(kf).scale(139.319)}function Cl(T,D){if(a(D)y&&--G>0);return j=b(R),[(a(D)=0;)if(R=D[ve],q[0]===R[0]&&q[1]===R[1]){if(U)return[U,q];U=q}}}function a1(T){for(var D=T.length,q=[],R=T[D-1],G=0;G0?[-R[0],0]:[180-R[0],180])};var D=i0.map(function(q){return{face:q,project:T(q)}});return[-1,0,0,1,0,1,4,5].forEach(function(q,R){var G=D[q];G&&(G.children||(G.children=[])).push(D[R])}),_s(D[0],function(q,R){return D[q<-x/2?R<0?6:4:q<0?R<0?2:0:qR^Ie>R&&q<(Fe-ce)*(R-me)/(Ie-me)+ce&&(G=!G)}return G}function s0(T,D){var q=D.stream,R;if(!q)throw new Error("invalid projection");switch(T&&T.type){case"Feature":R=l1;break;case"FeatureCollection":R=o1;break;default:R=u0;break}return R(T,q)}function o1(T,D){return{type:"FeatureCollection",features:T.features.map(function(q){return l1(q,D)})}}function l1(T,D){return{type:"Feature",id:T.id,properties:T.properties,geometry:u0(T.geometry,D)}}function Cf(T,D){return{type:"GeometryCollection",geometries:T.geometries.map(function(q){return u0(q,D)})}}function u0(T,D){if(!T)return null;if(T.type==="GeometryCollection")return Cf(T,D);var q;switch(T.type){case"Point":q=ws;break;case"MultiPoint":q=ws;break;case"LineString":q=f0;break;case"MultiLineString":q=f0;break;case"Polygon":q=wu;break;case"MultiPolygon":q=wu;break;case"Sphere":q=wu;break;default:return null}return r.geoStream(T,D(q)),q.result()}var dn=[],Ni=[],ws={point:function(T,D){dn.push([T,D])},result:function(){var T=dn.length?dn.length<2?{type:"Point",coordinates:dn[0]}:{type:"MultiPoint",coordinates:dn}:null;return dn=[],T}},f0={lineStart:l0,point:function(T,D){dn.push([T,D])},lineEnd:function(){dn.length&&(Ni.push(dn),dn=[])},result:function(){var T=Ni.length?Ni.length<2?{type:"LineString",coordinates:Ni[0]}:{type:"MultiLineString",coordinates:Ni}:null;return Ni=[],T}},wu={polygonStart:l0,lineStart:l0,point:function(T,D){dn.push([T,D])},lineEnd:function(){var T=dn.length;if(T){do dn.push(dn[0].slice());while(++T<4);Ni.push(dn),dn=[]}},polygonEnd:l0,result:function(){if(!Ni.length)return null;var T=[],D=[];return Ni.forEach(function(q){xu(q)?T.push([q]):D.push(q)}),D.forEach(function(q){var R=q[0];T.some(function(G){if(i1(G[0],R))return G.push(q),!0})||T.push([q])}),Ni=[],T.length?T.length>1?{type:"MultiPolygon",coordinates:T}:{type:"Polygon",coordinates:T[0]}:null}};function Sf(T){var D=T(_,0)[0]-T(-_,0)[0];function q(R,G){var U=a(R)<_,j=T(U?R:R>0?R-x:R+x,G),ve=(j[0]-j[1])*k,pe=(j[0]+j[1])*k;if(U)return[ve,pe];var ce=D*k,me=ve>0^pe>0?-1:1;return[me*ve-p(pe)*ce,me*pe-p(ve)*ce]}return T.invert&&(q.invert=function(R,G){var U=(R+G)*k,j=(G-R)*k,ve=a(U)<.5*D&&a(j)<.5*D;if(!ve){var pe=D*k,ce=U>0^j>0?-1:1,me=-ce*R+(j>0?1:-1)*pe,we=-ce*G+(U>0?1:-1)*pe;U=(-me-we)*k,j=(me-we)*k}var Fe=T.invert(U,j);return ve||(Fe[0]+=U>0?x:-x),Fe}),r.geoProjection(q).rotate([-90,-90,45]).clipAngle(180-.001)}function O(){return Sf(sa).scale(176.423)}function $(){return Sf(No).scale(111.48)}function de(T,D){if(!(0<=(D=+D)&&D<=20))throw new Error("invalid digits");function q(ce){var me=ce.length,we=2,Fe=new Array(me);for(Fe[0]=+ce[0].toFixed(D),Fe[1]=+ce[1].toFixed(D);we2||Ie[0]!=me[0]||Ie[1]!=me[1])&&(we.push(Ie),me=Ie)}return we.length===1&&ce.length>1&&we.push(q(ce[ce.length-1])),we}function U(ce){return ce.map(G)}function j(ce){if(ce==null)return ce;var me;switch(ce.type){case"GeometryCollection":me={type:"GeometryCollection",geometries:ce.geometries.map(j)};break;case"Point":me={type:"Point",coordinates:q(ce.coordinates)};break;case"MultiPoint":me={type:ce.type,coordinates:R(ce.coordinates)};break;case"LineString":me={type:ce.type,coordinates:G(ce.coordinates)};break;case"MultiLineString":case"Polygon":me={type:ce.type,coordinates:U(ce.coordinates)};break;case"MultiPolygon":me={type:"MultiPolygon",coordinates:ce.coordinates.map(U)};break;default:return ce}return ce.bbox!=null&&(me.bbox=ce.bbox),me}function ve(ce){var me={type:"Feature",properties:ce.properties,geometry:j(ce.geometry)};return ce.id!=null&&(me.id=ce.id),ce.bbox!=null&&(me.bbox=ce.bbox),me}if(T!=null)switch(T.type){case"Feature":return ve(T);case"FeatureCollection":{var pe={type:"FeatureCollection",features:T.features.map(ve)};return T.bbox!=null&&(pe.bbox=T.bbox),pe}default:return j(T)}return T}function ue(T){var D=m(T);function q(R,G){var U=D?b(R*D/2)/D:R/2;if(!G)return[2*U,-T];var j=2*n(U*m(G)),ve=1/b(G);return[m(j)*ve,G+(1-o(j))*ve-T]}return q.invert=function(R,G){if(a(G+=T)y&&--ve>0);var Fe=R*(ce=b(j)),Ie=b(a(G)0?_:-_)*(pe+G*(me-j)/2+G*G*(me-2*pe+j)/2)]}We.invert=function(T,D){var q=D/_,R=q*90,G=c(18,a(R/5)),U=f(0,s(G));do{var j=Oe[U][1],ve=Oe[U+1][1],pe=Oe[c(19,U+2)][1],ce=pe-j,me=pe-2*ve+j,we=2*(a(q)-ve)/ce,Fe=me/ce,Ie=we*(1-Fe*we*(1-2*Fe*we));if(Ie>=0||U===1){R=(D>=0?5:-5)*(Ie+G);var Ke=50,ur;do G=c(18,a(R)/5),U=s(G),Ie=G-U,j=Oe[U][1],ve=Oe[U+1][1],pe=Oe[c(19,U+2)][1],R-=(ur=(D>=0?_:-_)*(ve+Ie*(pe-j)/2+Ie*Ie*(pe-2*ve+j)/2)-D)*z;while(a(ur)>C&&--Ke>0);break}}while(--U>=0);var Tr=Oe[U][0],Kr=Oe[U+1][0],ct=Oe[c(19,U+2)][0];return[T/(Kr+Ie*(ct-Tr)/2+Ie*Ie*(ct-2*Kr+Tr)/2),R*I]};function rr(){return r.geoProjection(We).scale(152.63)}function ir(T){function D(q,R){var G=o(R),U=(T-1)/(T-G*o(q));return[U*G*m(q),U*m(R)]}return D.invert=function(q,R){var G=q*q+R*R,U=N(G),j=(T-N(1-G*(T+1)/(T-1)))/((T-1)/U+U/(T-1));return[i(q*j,U*N(1-j*j)),U?H(R*j/U):0]},D}function gr(T,D){var q=ir(T);if(!D)return q;var R=o(D),G=m(D);function U(j,ve){var pe=q(j,ve),ce=pe[1],me=ce*G/(T-1)+R;return[pe[0]*R/me,ce/me]}return U.invert=function(j,ve){var pe=(T-1)/(T-1-ve*G);return q.invert(pe*j,pe*ve*R)},U}function $e(){var T=2,D=0,q=r.geoProjectionMutator(gr),R=q(T,D);return R.distance=function(G){return arguments.length?q(T=+G,D):T},R.tilt=function(G){return arguments.length?q(T,D=G*I):D*z},R.scale(432.147).clipAngle(X(1/T)*z-1e-6)}var fr=1e-4,sr=1e4,wr=-180,Dr=wr+fr,lt=180,rt=lt-fr,ut=-90,ft=ut+fr,Lr=90,Ur=Lr-fr;function vt(T){return T.length>0}function xt(T){return Math.floor(T*sr)/sr}function Jt(T){return T===ut||T===Lr?[0,T]:[wr,xt(T)]}function ua(T){var D=T[0],q=T[1],R=!1;return D<=Dr?(D=wr,R=!0):D>=rt&&(D=lt,R=!0),q<=ft?(q=ut,R=!0):q>=Ur&&(q=Lr,R=!0),R?[D,q]:T}function ea(T){return T.map(ua)}function xa(T,D,q){for(var R=0,G=T.length;R=rt||me<=ft||me>=Ur){U[j]=ua(pe);for(var we=j+1;weDr&&Ieft&&Ke=ve)break;q.push({index:-1,polygon:D,ring:U=U.slice(we-1)}),U[0]=Jt(U[0][1]),j=-1,ve=U.length}}}}function zt(T){var D,q=T.length,R={},G={},U,j,ve,pe,ce;for(D=0;D0?x-ve:ve)*z],ce=r.geoProjection(T(j)).rotate(pe),me=r.geoRotation(pe),we=ce.center;return delete ce.rotate,ce.center=function(Fe){return arguments.length?we(me(Fe)):me.invert(we())},ce.clipAngle(90)}function Rn(T){var D=o(T);function q(R,G){var U=r.geoGnomonicRaw(R,G);return U[0]*=D,U}return q.invert=function(R,G){return r.geoGnomonicRaw.invert(R/D,G)},q}function yi(){return bo([-158,21.5],[-77,39]).clipAngle(60).scale(400)}function bo(T,D){return un(Rn,T,D)}function Ji(T){if(!(T*=2))return r.geoAzimuthalEquidistantRaw;var D=-T/2,q=-D,R=T*T,G=b(q),U=.5/m(q);function j(ve,pe){var ce=X(o(pe)*o(ve-D)),me=X(o(pe)*o(ve-q)),we=pe<0?-1:1;return ce*=ce,me*=me,[(ce-me)/(2*T),we*N(4*R*me-(R-ce+me)*(R-ce+me))/(2*T)]}return j.invert=function(ve,pe){var ce=pe*pe,me=o(N(ce+(Fe=ve+D)*Fe)),we=o(N(ce+(Fe=ve+q)*Fe)),Fe,Ie;return[i(Ie=me-we,Fe=(me+we)*G),(pe<0?-1:1)*X(N(Fe*Fe+Ie*Ie)*U)]},j}function Fl(){return Bi([-158,21.5],[-77,39]).clipAngle(130).scale(122.571)}function Bi(T,D){return un(Ji,T,D)}function El(T,D){if(a(D)y&&--ve>0);return[p(T)*(N(G*G+4)+G)*x/4,_*j]};function _o(){return r.geoProjection(Df).scale(127.16)}function gd(T,D,q,R,G){function U(j,ve){var pe=q*m(R*ve),ce=N(1-pe*pe),me=N(2/(1+ce*o(j*=G)));return[T*ce*me*m(j),D*pe*me]}return U.invert=function(j,ve){var pe=j/T,ce=ve/D,me=N(pe*pe+ce*ce),we=2*H(me/2);return[i(j*b(we),T*me)/G,me&&H(ve*m(we)/(D*q*me))/R]},U}function yd(T,D,q,R){var G=x/3;T=f(T,y),D=f(D,y),T=c(T,_),D=c(D,x-y),q=f(q,0),q=c(q,100-y),R=f(R,y);var U=q/100+1,j=R/100,ve=X(U*o(G))/G,pe=m(T)/m(ve*_),ce=D/x,me=N(j*m(T/2)/m(D/2)),we=me/N(ce*pe*ve),Fe=1/(me*N(ce*pe*ve));return gd(we,Fe,pe,ve,ce)}function f1(){var T=65*I,D=60*I,q=20,R=200,G=r.geoProjectionMutator(yd),U=G(T,D,q,R);return U.poleline=function(j){return arguments.length?G(T=+j*I,D,q,R):T*z},U.parallels=function(j){return arguments.length?G(T,D=+j*I,q,R):D*z},U.inflation=function(j){return arguments.length?G(T,D,q=+j,R):q},U.ratio=function(j){return arguments.length?G(T,D,q,R=+j):R},U.scale(163.775)}function W2(){return f1().poleline(65).parallels(60).inflation(0).ratio(200).scale(172.633)}var bd=4*x+3*N(3),_d=2*N(2*x*N(3)/bd),xd=Ar(_d*N(3)/x,_d,bd/6);function c1(){return r.geoProjection(xd).scale(176.84)}function Ff(T,D){return[T*N(1-3*D*D/(x*x)),D]}Ff.invert=function(T,D){return[T/N(1-3*D*D/(x*x)),D]};function wd(){return r.geoProjection(Ff).scale(152.63)}function Z2(T,D){var q=o(D),R=o(T)*q,G=1-R,U=o(T=i(m(T)*q,-m(D))),j=m(T);return q=N(1-R*R),[j*q-U*G,-U*q-j*G]}Z2.invert=function(T,D){var q=(T*T+D*D)/-2,R=N(-q*(2+q)),G=D*q+T*R,U=T*q-D*R,j=N(U*U+G*G);return[i(R*G,j*(1+q)),j?-H(R*U/j):0]};function Cy(){return r.geoProjection(Z2).rotate([0,-90,45]).scale(124.75).clipAngle(180-.001)}function $2(T,D){var q=De(T,D);return[(q[0]+T/_)/2,(q[1]+D)/2]}$2.invert=function(T,D){var q=T,R=D,G=25;do{var U=o(R),j=m(R),ve=m(2*R),pe=j*j,ce=U*U,me=m(q),we=o(q/2),Fe=m(q/2),Ie=Fe*Fe,Ke=1-ce*we*we,ur=Ke?X(U*we)*N(Tr=1/Ke):Tr=0,Tr,Kr=.5*(2*ur*U*Fe+q/_)-T,ct=.5*(ur*j+R)-D,ht=.5*Tr*(ce*Ie+ur*U*we*pe)+.5/_,pt=Tr*(me*ve/4-ur*j*Fe),yt=.125*Tr*(ve*Fe-ur*j*ce*me),fa=.5*Tr*(pe*we+ur*Ie*U)+.5,Da=pt*yt-fa*ht,Gt=(ct*pt-Kr*fa)/Da,tn=(Kr*yt-ct*ht)/Da;q-=Gt,R-=tn}while((a(Gt)>y||a(tn)>y)&&--G>0);return[q,R]};function Ki(){return r.geoProjection($2).scale(158.837)}e.geoNaturalEarth=r.geoNaturalEarth1,e.geoNaturalEarthRaw=r.geoNaturalEarth1Raw,e.geoAiry=xe,e.geoAiryRaw=le,e.geoAitoff=Ye,e.geoAitoffRaw=De,e.geoArmadillo=ke,e.geoArmadilloRaw=Ee,e.geoAugust=W,e.geoAugustRaw=je,e.geoBaker=J,e.geoBakerRaw=K,e.geoBerghaus=be,e.geoBerghausRaw=fe,e.geoBertin1953=lr,e.geoBertin1953Raw=ze,e.geoBoggs=_r,e.geoBoggsRaw=Ue,e.geoBonne=cr,e.geoBonneRaw=He,e.geoBottomley=vr,e.geoBottomleyRaw=Mr,e.geoBromley=Er,e.geoBromleyRaw=kr,e.geoChamberlin=Wr,e.geoChamberlinRaw=Cr,e.geoChamberlinAfrica=Fr,e.geoCollignon=Zr,e.geoCollignonRaw=Br,e.geoCraig=Be,e.geoCraigRaw=Ae,e.geoCraster=Dt,e.geoCrasterRaw=dr,e.geoCylindricalEqualArea=ba,e.geoCylindricalEqualAreaRaw=Wt,e.geoCylindricalStereographic=Xt,e.geoCylindricalStereographicRaw=_a,e.geoEckert1=la,e.geoEckert1Raw=Ht,e.geoEckert2=Ta,e.geoEckert2Raw=Pt,e.geoEckert3=Xa,e.geoEckert3Raw=pa,e.geoEckert4=ja,e.geoEckert4Raw=hn,e.geoEckert5=Rr,e.geoEckert5Raw=Fa,e.geoEckert6=Et,e.geoEckert6Raw=Vt,e.geoEisenlohr=Ea,e.geoEisenlohrRaw=ma,e.geoFahey=Na,e.geoFaheyRaw=$t,e.geoFoucaut=Pi,e.geoFoucautRaw=Jn,e.geoFoucautSinusoidal=Ba,e.geoFoucautSinusoidalRaw=Kn,e.geoGilbert=zo,e.geoGingery=gl,e.geoGingeryRaw=co,e.geoGinzburg4=os,e.geoGinzburg4Raw=Ri,e.geoGinzburg5=Ks,e.geoGinzburg5Raw=ls,e.geoGinzburg6=Qs,e.geoGinzburg6Raw=ss,e.geoGinzburg8=st,e.geoGinzburg8Raw=ot,e.geoGinzburg9=Or,e.geoGinzburg9Raw=jt,e.geoGringorten=Vn,e.geoGringortenRaw=sa,e.geoGuyou=eu,e.geoGuyouRaw=No,e.geoHammer=er,e.geoHammerRaw=Ne,e.geoHammerRetroazimuthal=ru,e.geoHammerRetroazimuthalRaw=sf,e.geoHealpix=vs,e.geoHealpixRaw=Bo,e.geoHill=Yc,e.geoHillRaw=ff,e.geoHomolosine=N2,e.geoHomolosineRaw=ou,e.geoHufnagel=cf,e.geoHufnagelRaw=xl,e.geoHyperelliptical=Oo,e.geoHyperellipticalRaw=Ho,e.geoInterrupt=po,e.geoInterruptedBoggs=I2,e.geoInterruptedHomolosine=wl,e.geoInterruptedMollweide=Ml,e.geoInterruptedMollweideHemispheres=lu,e.geoInterruptedSinuMollweide=su,e.geoInterruptedSinusoidal=Tl,e.geoKavrayskiy7=ms,e.geoKavrayskiy7Raw=ps,e.geoLagrange=Ku,e.geoLagrangeRaw=Ju,e.geoLarrivee=e0,e.geoLarriveeRaw=Qu,e.geoLaskowski=Tn,e.geoLaskowskiRaw=oi,e.geoLittrow=go,e.geoLittrowRaw=Xn,e.geoLoximuthal=kl,e.geoLoximuthalRaw=fu,e.geoMiller=hf,e.geoMillerRaw=gs,e.geoModifiedStereographic=Wi,e.geoModifiedStereographicRaw=jc,e.geoModifiedStereographicAlaska=gf,e.geoModifiedStereographicGs48=Wc,e.geoModifiedStereographicGs50=Zc,e.geoModifiedStereographicMiller=cu,e.geoModifiedStereographicLee=vu,e.geoMollweide=mr,e.geoMollweideRaw=Qe,e.geoMtFlatPolarParabolic=$c,e.geoMtFlatPolarParabolicRaw=t0,e.geoMtFlatPolarQuartic=U2,e.geoMtFlatPolarQuarticRaw=yf,e.geoMtFlatPolarSinusoidal=a0,e.geoMtFlatPolarSinusoidalRaw=Go,e.geoNaturalEarth2=du,e.geoNaturalEarth2Raw=ys,e.geoNellHammer=bf,e.geoNellHammerRaw=pu,e.geoInterruptedQuarticAuthalic=Jc,e.geoNicolosi=Kc,e.geoNicolosiRaw=_f,e.geoPatterson=Qc,e.geoPattersonRaw=kf,e.geoPolyconic=e1,e.geoPolyconicRaw=Cl,e.geoPolyhedral=_s,e.geoPolyhedralButterfly=gu,e.geoPolyhedralCollignon=j2,e.geoPolyhedralWaterman=bu,e.geoProject=s0,e.geoGringortenQuincuncial=O,e.geoPeirceQuincuncial=$,e.geoPierceQuincuncial=$,e.geoQuantize=de,e.geoQuincuncial=Sf,e.geoRectangularPolyconic=Me,e.geoRectangularPolyconicRaw=ue,e.geoRobinson=rr,e.geoRobinsonRaw=We,e.geoSatellite=$e,e.geoSatelliteRaw=gr,e.geoSinuMollweide=Vc,e.geoSinuMollweideRaw=iu,e.geoSinusoidal=Ce,e.geoSinusoidalRaw=Nr,e.geoStitch=wa,e.geoTimes=Kt,e.geoTimesRaw=Vr,e.geoTwoPointAzimuthal=bo,e.geoTwoPointAzimuthalRaw=Rn,e.geoTwoPointAzimuthalUsa=yi,e.geoTwoPointEquidistant=Bi,e.geoTwoPointEquidistantRaw=Ji,e.geoTwoPointEquidistantUsa=Fl,e.geoVanDerGrinten=As,e.geoVanDerGrintenRaw=El,e.geoVanDerGrinten2=s1,e.geoVanDerGrinten2Raw=c0,e.geoVanDerGrinten3=md,e.geoVanDerGrinten3Raw=u1,e.geoVanDerGrinten4=_o,e.geoVanDerGrinten4Raw=Df,e.geoWagner=f1,e.geoWagner7=W2,e.geoWagnerRaw=yd,e.geoWagner4=c1,e.geoWagner4Raw=xd,e.geoWagner6=wd,e.geoWagner6Raw=Ff,e.geoWiechel=Cy,e.geoWiechelRaw=Z2,e.geoWinkel3=Ki,e.geoWinkel3Raw=$2,Object.defineProperty(e,"__esModule",{value:!0})}))});var iG=oe((e_e,nG)=>{"use strict";var sn=Lt(),e_=pr(),l3e=_t(),L2=Math.PI/180,Pc=180/Math.PI,t_={cursor:"pointer"},a_={cursor:"auto"};function s3e(e,r){var t=e.projection,a;return r._isScoped?a=u3e:r._isClipped?a=c3e:a=f3e,a(e,t)}nG.exports=s3e;function n_(e,r){return sn.behavior.zoom().translate(r.translate()).scaleExtent(r.scaleExtent()).scale(r.scale())}function i_(e,r,t){var a=e.id,n=e.graphDiv,i=n.layout,o=i[a],l=n._fullLayout,s=l[a],u={},f={};function c(h,d){u[a+"."+h]=e_.nestedProperty(o,h).get(),l3e.call("_storeDirectGUIEdit",i,l._preGUI,u);var p=e_.nestedProperty(s,h);p.get()!==d&&(p.set(d),e_.nestedProperty(o,h).set(d),f[a+"."+h]=d)}t(c),c("projection.scale",r.scale()/e.fitScale),c("fitbounds",!1),n.emit("plotly_relayout",f)}function u3e(e,r){var t=n_(e,r);function a(){sn.select(this).style(t_)}function n(){r.scale(sn.event.scale).translate(sn.event.translate),e.render(!0);var l=r.invert(e.midPt);e.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":r.scale()/e.fitScale,"geo.center.lon":l[0],"geo.center.lat":l[1]})}function i(l){var s=r.invert(e.midPt);l("center.lon",s[0]),l("center.lat",s[1])}function o(){sn.select(this).style(a_),i_(e,r,i)}return t.on("zoomstart",a).on("zoom",n).on("zoomend",o),t}function f3e(e,r){var t=n_(e,r),a=2,n,i,o,l,s,u,f,c,h;function d(x){return r.invert(x)}function p(x){var _=d(x);if(!_)return!0;var A=r(_);return Math.abs(A[0]-x[0])>a||Math.abs(A[1]-x[1])>a}function m(){sn.select(this).style(t_);let{x,y:_,width:A,height:k}=this.getBBox();n=sn.event.sourceEvent?sn.mouse(this):[x+A/2,_+k/2],i=r.rotate(),o=r.translate(),l=i,s=d(n)}function b(){let{x,y:_,width:A,height:k}=this.getBBox();if(u=sn.event.sourceEvent?sn.mouse(this):[x+A/2,_+k/2],p(n)){t.scale(r.scale()),t.translate(r.translate());return}r.scale(sn.event.scale),r.translate([o[0],sn.event.translate[1]]),s?d(u)&&(c=d(u),f=[l[0]+(c[0]-s[0]),i[1],i[2]],r.rotate(f),l=f):(n=u,s=d(n)),h=!0,e.render(!0);var M=r.rotate(),E=r.invert(e.midPt);e.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":r.scale()/e.fitScale,"geo.center.lon":E[0],"geo.center.lat":E[1],"geo.projection.rotation.lon":-M[0]})}function y(){sn.select(this).style(a_),h&&i_(e,r,C)}function C(x){var _=r.rotate(),A=r.invert(e.midPt);x("projection.rotation.lon",-_[0]),x("center.lon",A[0]),x("center.lat",A[1])}return t.on("zoomstart",m).on("zoom",b).on("zoomend",y),t}function c3e(e,r){var t={r:r.rotate(),k:r.scale()},a=n_(e,r),n=b3e(a,"zoomstart","zoom","zoomend"),i=0,o=a.on,l;a.on("zoomstart",function(){sn.select(this).style(t_);let{x:h,y:d,width:p,height:m}=this.getBBox(),b=sn.event.sourceEvent?sn.mouse(this):[h+p/2,d+m/2],y=r.rotate(),C=y,x=r.translate(),_=v3e(y);l=cy(r,b),o.call(a,"zoom",function(){let{x:A,y:k,width:M,height:E}=this.getBBox(),P=sn.event.sourceEvent?sn.mouse(this):[A+M/2,k+E/2];if(r.scale(t.k=sn.event.scale),!l)b=P,l=cy(r,b);else if(cy(r,P)){r.rotate(y).translate(x);var z=cy(r,P),I=d3e(l,z),V=m3e(h3e(_,I)),H=t.r=p3e(V,l,C);(!isFinite(H[0])||!isFinite(H[1])||!isFinite(H[2]))&&(H=C),r.rotate(H),C=H}u(n.of(this,arguments))}),s(n.of(this,arguments))}).on("zoomend",function(){sn.select(this).style(a_),o.call(a,"zoom",null),f(n.of(this,arguments)),i_(e,r,c)}).on("zoom.redraw",function(){e.render(!0);var h=r.rotate();e.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":r.scale()/e.fitScale,"geo.projection.rotation.lon":-h[0],"geo.projection.rotation.lat":-h[1]})});function s(h){i++||h({type:"zoomstart"})}function u(h){h({type:"zoom"})}function f(h){--i||h({type:"zoomend"})}function c(h){var d=r.rotate();h("projection.rotation.lon",-d[0]),h("projection.rotation.lat",-d[1])}return sn.rebind(a,n,"on")}function cy(e,r){var t=e.invert(r);return t&&isFinite(t[0])&&isFinite(t[1])&&g3e(t)}function v3e(e){var r=.5*e[0]*L2,t=.5*e[1]*L2,a=.5*e[2]*L2,n=Math.sin(r),i=Math.cos(r),o=Math.sin(t),l=Math.cos(t),s=Math.sin(a),u=Math.cos(a);return[i*l*u+n*o*s,n*l*u-i*o*s,i*o*u+n*l*s,i*l*s-n*o*u]}function h3e(e,r){var t=e[0],a=e[1],n=e[2],i=e[3],o=r[0],l=r[1],s=r[2],u=r[3];return[t*o-a*l-n*s-i*u,t*l+a*o+n*u-i*s,t*s-a*u+n*o+i*l,t*u+a*s-n*l+i*o]}function d3e(e,r){if(!(!e||!r)){var t=y3e(e,r),a=Math.sqrt(aG(t,t)),n=.5*Math.acos(Math.max(-1,Math.min(1,aG(e,r)))),i=Math.sin(n)/a;return a&&[Math.cos(n),t[2]*i,-t[1]*i,t[0]*i]}}function p3e(e,r,t){var a=r_(r,2,e[0]);a=r_(a,1,e[1]),a=r_(a,0,e[2]-t[2]);var n=r[0],i=r[1],o=r[2],l=a[0],s=a[1],u=a[2],f=Math.atan2(i,n)*Pc,c=Math.sqrt(n*n+i*i),h,d;Math.abs(s)>c?(d=(s>0?90:-90)-f,h=0):(d=Math.asin(s/c)*Pc-f,h=Math.sqrt(c*c-s*s));var p=180-d-2*f,m=(Math.atan2(u,l)-Math.atan2(o,h))*Pc,b=(Math.atan2(u,l)-Math.atan2(o,-h))*Pc,y=rG(t[0],t[1],d,m),C=rG(t[0],t[1],p,b);return y<=C?[d,m,t[2]]:[p,b,t[2]]}function rG(e,r,t,a){var n=tG(t-e),i=tG(a-r);return Math.sqrt(n*n+i*i)}function tG(e){return(e%360+540)%360-180}function r_(e,r,t){var a=t*L2,n=e.slice(),i=r===0?1:0,o=r===2?1:2,l=Math.cos(a),s=Math.sin(a);return n[i]=e[i]*l-e[o]*s,n[o]=e[o]*l+e[i]*s,n}function m3e(e){return[Math.atan2(2*(e[0]*e[1]+e[2]*e[3]),1-2*(e[1]*e[1]+e[2]*e[2]))*Pc,Math.asin(Math.max(-1,Math.min(1,2*(e[0]*e[2]-e[3]*e[1]))))*Pc,Math.atan2(2*(e[0]*e[3]+e[1]*e[2]),1-2*(e[2]*e[2]+e[3]*e[3]))*Pc]}function g3e(e){var r=e[0]*L2,t=e[1]*L2,a=Math.cos(t);return[a*Math.cos(r),a*Math.sin(r),Math.sin(t)]}function aG(e,r){for(var t=0,a=0,n=e.length;a{"use strict";var Zs=Lt(),s_=ay(),_3e=s_.geoPath,x3e=s_.geoDistance,w3e=eG(),A3e=_t(),fd=pr(),M3e=fd.strTranslate,vy=Nt(),ud=ha(),oG=jl(),T3e=Ln(),l_=Ga(),{concatExtremes:k3e,getAutoRange:lG,makePadFn:sG}=P0(),o_=el(),C3e=Ou().prepSelect,S3e=Ou().clearOutline,D3e=Ou().selectOnClick,F3e=iG(),Gi=(id(),xr(nd)),u_=E2(),{unwrapLonRange:E3e}=u_,fG=X3(),L3e=P8().feature;function cG(e){this.id=e.id,this.graphDiv=e.graphDiv,this.container=e.container,this.topojsonURL=e.topojsonURL,this.isStatic=e.staticPlot,this.topojsonName=null,this.topojson=null,this.projection=null,this.scope=null,this.viewInitial=null,this.fitScale=null,this.bounds=null,this.midPt=null,this.hasChoropleth=!1,this.traceHash={},this.layers={},this.basePaths={},this.dataPaths={},this.dataPoints={},this.clipDef=null,this.clipRect=null,this.bgRect=null,this.makeFramework()}var is=cG.prototype;vG.exports=function(r){return new cG(r)};is.plot=function(e,r,t,a){var n=this;if(a)return n.update(e,r,!0);n._geoCalcData=e,n._fullLayout=r;var i=r[this.id],o=[],l=!1;for(var s in Gi.layerNameToAdjective)if(s!=="frame"&&i["show"+s]){l=!0;break}for(var u=!1,f=0;f0&&o._module.calcGeoJSON(i,r)}if(!t){var l=this.updateProjection(e,r);if(l)return;(!this.viewInitial||this.scope!==a.scope)&&this.saveViewInitial(a)}this.scope=a.scope,this.updateBaseLayers(r,a),this.updateDims(r,a),this.updateFx(r,a),T3e.generalUpdatePerTraceModule(this.graphDiv,this,e,a);var s=this.layers.frontplot.select(".scatterlayer");this.dataPoints.point=s.selectAll(".point"),this.dataPoints.text=s.selectAll("text"),this.dataPaths.line=s.selectAll(".js-line");var u=this.layers.backplot.select(".choroplethlayer");this.dataPaths.choropleth=u.selectAll("path"),this._render()};is.updateProjection=function(e,r){var t=this.graphDiv,a=r[this.id],n=r._size,i=a.domain,o=a.projection,l=a.lonaxis,s=a.lataxis,u=l._ax,f=s._ax,c=this.projection=q3e(a),h=[[n.l+n.w*i.x[0],n.t+n.h*(1-i.y[1])],[n.l+n.w*i.x[1],n.t+n.h*(1-i.y[0])]],d=a.center||{},p=o.rotation||{},m=l.range||[],b=s.range||[];if(a.fitbounds){u._length=h[1][0]-h[0][0],f._length=h[1][1]-h[0][1],u.range=lG(t,u),f.range=lG(t,f);let N=[];for(let Ee of e){let ke=Ee[0].trace;ke.visible===!0&&ke._module.fitCoords&&N.push(ke._module.fitCoords(Ee,a))}let Q=k3e(t,u),ee=Q.min.reduce((Ee,{val:ke})=>Math.min(Ee,ke),1/0),ae=Q.max.reduce((Ee,{val:ke})=>Math.max(Ee,ke),-1/0)-ee,ie=u_.boundsOfCoords(N.flat()),[le,,xe]=ie||[],De=xe-le;if(!!ie&&(ae>360||ae<360&&DeMath.max(J,Ee(fe)),0),W=Q.max.reduce((J,fe)=>Math.max(J,ke(fe)),0),se=u._length-je-W,he=se>u._length/10?De*u._length/se:De,K=(le+xe)/2;u.range=[K-he/2,K+he/2]}var y=(u.range[0]+u.range[1])/2,C=(f.range[0]+f.range[1])/2;if(a._isScoped)d={lon:y,lat:C};else if(a._isClipped){d={lon:y,lat:C},p={lon:y,lat:C,roll:p.roll};var x=o.type,_=Gi.lonaxisSpan[x]/2||180,A=Gi.lataxisSpan[x]/2||90;m=[y-_,y+_],b=[C-A,C+A]}else d={lon:y,lat:C},p={lon:y,lat:p.lat,roll:p.roll}}c.center([d.lon-p.lon,d.lat-p.lat]).rotate([-p.lon,-p.lat,p.roll]).parallels(o.parallels);var k=uG(m,b);c.fitExtent(h,k);var M=this.bounds=c.getBounds(k),E=this.fitScale=c.scale(),P=c.translate();if(c.scaleExtent=()=>{var ee;let{minscale:N}=o,Q=(ee=o.maxscale)!=null?ee:1/0;return[E*Math.min(N,Q),E*Math.max(N,Q)]},a.fitbounds){var z=c.getBounds(uG(u.range,f.range)),I=Math.min((M[1][0]-M[0][0])/(z[1][0]-z[0][0]),(M[1][1]-M[0][1])/(z[1][1]-z[0][1]));isFinite(I)?c.scale(I*E):fd.warn("Something went wrong during"+this.id+"fitbounds computations.")}else c.scale(o.scale*E);var V=this.midPt=[(M[0][0]+M[1][0])/2,(M[0][1]+M[1][1])/2];if(c.translate([P[0]+(V[0]-P[0]),P[1]+(V[1]-P[1])]).clipExtent(M),a._isAlbersUsa){var H=c([d.lon,d.lat]);if(H){var X=c.translate();c.translate([X[0]-(H[0]-X[0]),X[1]-(H[1]-X[1])])}}};is.updateBaseLayers=function(e,r){var t=this,a=t.topojson,n=t.layers,i=t.basePaths;function o(h){return h==="lonaxis"||h==="lataxis"}function l(h){return!!Gi.lineLayers[h]}function s(h){return!!Gi.fillLayers[h]}var u=this.hasChoropleth?Gi.layersForChoropleth:Gi.layers,f=u.filter(function(h){return l(h)||s(h)?r["show"+h]:o(h)?r[h].showgrid:!0}),c=t.framework.selectAll(".layer").data(f,String);c.exit().each(function(h){delete n[h],delete i[h],Zs.select(this).remove()}),c.enter().append("g").attr("class",function(h){return"layer "+h}).each(function(h){var d=n[h]=Zs.select(this);h==="bg"?t.bgRect=d.append("rect").style("pointer-events","all"):o(h)?i[h]=d.append("path").style("fill","none"):h==="backplot"?d.append("g").classed("choroplethlayer",!0):h==="frontplot"?d.append("g").classed("scatterlayer",!0):l(h)?i[h]=d.append("path").style("fill","none").style("stroke-miterlimit",2):s(h)&&(i[h]=d.append("path").style("stroke","none"))}),c.order(),c.each(function(h){var d=i[h],p=Gi.layerNameToAdjective[h];h==="frame"?d.datum(Gi.sphereSVG):l(h)||s(h)?d.datum(L3e(a,a.objects[h])):o(h)&&d.datum(P3e(h,r,e)).call(vy.stroke,r[h].gridcolor).call(ud.dashLine,r[h].griddash,r[h].gridwidth),l(h)?d.call(vy.stroke,r[p+"color"]).call(ud.dashLine,"",r[p+"width"]):s(h)&&d.call(vy.fill,r[p+"color"])})};is.updateDims=function(e,r){var t=this.bounds,a=(r.framewidth||0)/2,n=t[0][0]-a,i=t[0][1]-a,o=t[1][0]-n+a,l=t[1][1]-i+a;ud.setRect(this.clipRect,n,i,o,l),this.bgRect.call(ud.setRect,n,i,o,l).call(vy.fill,r.bgcolor),this.xaxis._offset=n,this.xaxis._length=o,this.yaxis._offset=i,this.yaxis._length=l};is.updateFx=function(e,r){var t=this,a=t.graphDiv,n=t.bgRect,i=e.dragmode,o=e.clickmode;if(t.isStatic)return;function l(){var c=t.viewInitial,h={};for(var d in c)h[t.id+"."+d]=c[d];A3e.call("_guiRelayout",a,h),a.emit("plotly_doubleclick",null)}function s(c){return t.projection.invert([c[0]+t.xaxis._offset,c[1]+t.yaxis._offset])}var u=function(c,h){if(h.isRect){var d=c.range={};d[t.id]=[s([h.xmin,h.ymin]),s([h.xmax,h.ymax])]}else{var p=c.lassoPoints={};p[t.id]=h.map(s)}},f={element:t.bgRect.node(),gd:a,plotinfo:{id:t.id,xaxis:t.xaxis,yaxis:t.yaxis,fillRangeItems:u},xaxes:[t.xaxis],yaxes:[t.yaxis],subplot:t.id,clickFn:function(c){c===2&&S3e(a)}};if(i==="pan"){n.node().onmousedown=null;let c=F3e(t,r);if(n.call(c),!Zs.event){let h=t.projection.scale(),[d,p]=t.projection.scaleExtent();(hp)&&c.event(n)}n.on("dblclick.zoom",l),a._context._scrollZoom.geo||n.on("wheel.zoom",null)}else(i==="select"||i==="lasso")&&(n.on(".zoom",null),f.prepFn=function(c,h,d){C3e(c,h,d,f,i)},o_.init(f));n.on("mousemove",function(){var c=t.projection.invert(fd.getPositionFromD3Event());if(!c)return o_.unhover(a,Zs.event);t.xaxis.p2c=function(){return c[0]},t.yaxis.p2c=function(){return c[1]},oG.hover(a,Zs.event,t.id)}),n.on("mouseout",function(){a._dragging||o_.unhover(a,Zs.event)}),n.on("click",function(){i!=="select"&&i!=="lasso"&&(o.indexOf("select")>-1&&D3e(Zs.event,a,[t.xaxis],[t.yaxis],t.id,f),o.indexOf("event")>-1&&oG.click(a,Zs.event))})};is.makeFramework=function(){var e=this,r=e.graphDiv,t=r._fullLayout,a="clip"+t._uid+e.id;e.clipDef=t._clips.append("clipPath").attr("id",a),e.clipRect=e.clipDef.append("rect"),e.framework=Zs.select(e.container).append("g").attr("class","geo "+e.id).call(ud.setClipUrl,a,r),e.project=function(n){var i=e.projection(n);return i?[i[0]-e.xaxis._offset,i[1]-e.yaxis._offset]:[null,null]},e.xaxis={_id:"x",c2p:function(n){return e.project(n)[0]}},e.yaxis={_id:"y",c2p:function(n){return e.project(n)[1]}},e.mockAxis={type:"linear",showexponent:"all",exponentformat:"B"},l_.setConvert(e.mockAxis,t)};is.saveViewInitial=function(e){var r=e.center||{},t=e.projection,a=t.rotation||{};this.viewInitial={fitbounds:e.fitbounds,"projection.scale":t.scale};var n;e._isScoped?n={"center.lon":r.lon,"center.lat":r.lat}:e._isClipped?n={"projection.rotation.lon":a.lon,"projection.rotation.lat":a.lat,"center.lon":r.lon,"center.lat":r.lat}:n={"center.lon":r.lon,"center.lat":r.lat,"projection.rotation.lon":a.lon},fd.extendFlat(this.viewInitial,n)};is.render=function(e){this._hasMarkerAngles&&e?this.plot(this._geoCalcData,this._fullLayout,[],!0):this._render()};is._render=function(){var e=this.projection,r=e.getPath(),t;function a(i){var o=e(i.lonlat);return o?M3e(o[0],o[1]):null}function n(i){return e.isLonLatOverEdges(i.lonlat)?"none":null}for(t in this.basePaths)this.basePaths[t].attr("d",r);for(t in this.dataPaths)this.dataPaths[t].attr("d",function(i){return r(i.geojson)});for(t in this.dataPoints)this.dataPoints[t].attr("display",n).attr("transform",a)};function q3e(e){var r=e.projection,t=r.type,a=Gi.projNames[t];a="geo"+fd.titleCase(a);for(var n=s_[a]||w3e[a],i=n(),o=e._isSatellite?Math.acos(1/r.distance)*180/Math.PI:e._isClipped?Gi.lonaxisSpan[t]/2:null,l=["center","rotate","parallels","clipExtent"],s=function(c){return c?i:[]},u=0;up}else return!1},i.getPath=function(){return _3e().projection(i)},i.getBounds=function(c){return i.getPath().bounds(c)},i.precision(Gi.precision),e._isSatellite&&i.tilt(r.tilt).distance(r.distance),o&&i.clipAngle(o-Gi.clipPad),i}function P3e(e,r,t){var a=1e-6,n=2.5,i=r[e],o=Gi.scopeDefaults[r.scope],l,s,u;e==="lonaxis"?(l=o.lonaxisRange,s=o.lataxisRange,u=function(C,x){return[C,x]}):e==="lataxis"&&(l=o.lataxisRange,s=o.lonaxisRange,u=function(C,x){return[x,C]});var f={type:"linear",range:[l[0],l[1]-a],tick0:i.tick0,dtick:i.dtick};l_.setConvert(f,t);var c=l_.calcTicks(f);!r.isScoped&&e==="lonaxis"&&c.pop();for(var h=c.length,d=new Array(h),p=0;p{"use strict";var P2=Il(),R3e=I3().attributes,z3e=Ds().dash,q2=(id(),xr(nd)),N3e=Zo().overrideAll,dG=(Mp(),xr(Ap)).default,pG={range:{valType:"info_array",items:[{valType:"number"},{valType:"number"}]},showgrid:{valType:"boolean",dflt:!1},tick0:{valType:"number",dflt:0},dtick:{valType:"number"},gridcolor:{valType:"color",dflt:P2.lightLine},gridwidth:{valType:"number",min:0,dflt:1},griddash:z3e},B3e=mG.exports=N3e({domain:R3e({name:"geo"},{}),fitbounds:{valType:"enumerated",values:[!1,"locations","geojson"],dflt:"locations",editType:"plot"},resolution:{valType:"enumerated",values:[110,50],dflt:110,coerceNumber:!0},scope:{valType:"enumerated",values:dG(q2.scopeDefaults),dflt:"world"},projection:{type:{valType:"enumerated",values:dG(q2.projNames)},rotation:{lon:{valType:"number"},lat:{valType:"number"},roll:{valType:"number"}},tilt:{valType:"number",dflt:0},distance:{valType:"number",min:1.001,dflt:2},parallels:{valType:"info_array",items:[{valType:"number"},{valType:"number"}]},scale:{valType:"number",min:0,dflt:1},minscale:{valType:"number",min:0,dflt:0},maxscale:{valType:"number",min:0,dflt:null}},center:{lon:{valType:"number"},lat:{valType:"number"}},visible:{valType:"boolean",dflt:!0},showcoastlines:{valType:"boolean"},coastlinecolor:{valType:"color",dflt:P2.defaultLine},coastlinewidth:{valType:"number",min:0,dflt:1},showland:{valType:"boolean",dflt:!1},landcolor:{valType:"color",dflt:q2.landColor},showocean:{valType:"boolean",dflt:!1},oceancolor:{valType:"color",dflt:q2.waterColor},showlakes:{valType:"boolean",dflt:!1},lakecolor:{valType:"color",dflt:q2.waterColor},showrivers:{valType:"boolean",dflt:!1},rivercolor:{valType:"color",dflt:q2.waterColor},riverwidth:{valType:"number",min:0,dflt:1},showcountries:{valType:"boolean"},countrycolor:{valType:"color",dflt:P2.defaultLine},countrywidth:{valType:"number",min:0,dflt:1},showsubunits:{valType:"boolean"},subunitcolor:{valType:"color",dflt:P2.defaultLine},subunitwidth:{valType:"number",min:0,dflt:1},showframe:{valType:"boolean"},framecolor:{valType:"color",dflt:P2.defaultLine},framewidth:{valType:"number",min:0,dflt:1},bgcolor:{valType:"color",dflt:P2.background},lonaxis:pG,lataxis:pG},"plot","from-root");B3e.uirevision={valType:"any",editType:"none"}});var yG=oe((a_e,gG)=>{"use strict";var I3e=pr(),H3e=ka(),O3e=I3().defaults;gG.exports=function(r,t,a,n){var i=n.type,o=n.attributes,l=n.handleDefaults,s=n.partition||"x",u=t._subplots[i],f=u.length,c=f&&u[0].replace(/\d+$/,""),h,d;function p(C,x){return I3e.coerce(h,d,o,C,x)}for(var m=0;m{"use strict";var hy=pr(),U3e=yG(),G3e=Pv().getSubplotData,{unwrapLonRange:Y3e}=E2(),cd=(id(),xr(nd)),V3e=f_(),bG=cd.axesNames;_G.exports=function(r,t,a){U3e(r,t,a,{type:"geo",attributes:V3e,handleDefaults:X3e,fullData:a,partition:"y"})};function X3e(e,r,t,a){var n=G3e(a.fullData,"geo",a.id),i=n.map(function(ie){return ie.index}),o=t("resolution"),l=t("scope"),s=cd.scopeDefaults[l],u=t("projection.type",s.projType),f=r._isAlbersUsa=u==="albers usa";f&&(l=r.scope="usa");var c=r._isScoped=l!=="world",h=r._isSatellite=u==="satellite",d=r._isConic=u.indexOf("conic")!==-1||u==="albers",p=r._isClipped=!!cd.lonaxisSpan[u];if(e.visible===!1){var m=hy.extendDeep({},r._template);m.showcoastlines=!1,m.showcountries=!1,m.showframe=!1,m.showlakes=!1,m.showland=!1,m.showocean=!1,m.showrivers=!1,m.showsubunits=!1,m.lonaxis&&(m.lonaxis.showgrid=!1),m.lataxis&&(m.lataxis.showgrid=!1),r._template=m}for(var b=t("visible"),y,C=0;Cje[W]!=null)||cd.fitboundsIncompatible.has(u)?r.fitbounds=!1:Ee.forEach(({dst:je,key:W})=>je&&(je[W]=null))}}});var c_=oe((i_e,MG)=>{"use strict";var j3e=Pv().getSubplotCalcData,W3e=pr().counterRegex,Z3e=hG(),$s="geo",wG=W3e($s),AG={};AG[$s]={valType:"subplotid",dflt:$s,editType:"calc"};function $3e(e){for(var r=e._fullLayout,t=e.calcdata,a=r._subplots[$s],n=0;n{"use strict";TG.exports={attributes:ad(),supplyDefaults:WO(),colorbar:M9(),formatLabels:JO(),calc:tU(),calcGeoJSON:sy().calcGeoJSON,fitCoords:sy().fitCoords,plot:sy().plot,style:$8(),styleOnSelect:Uh().styleOnSelect,hoverPoints:VU(),eventData:jU(),selectPoints:$U(),moduleType:"trace",name:"scattergeo",basePlotModule:c_(),categories:["geo","symbols","showLegend","scatter-like"],meta:{}}});var SG=oe((l_e,CG)=>{"use strict";CG.exports=kG()});var dy=oe((s_e,EG)=>{"use strict";var{hovertemplateAttrs:Q3e,templatefallbackAttrs:eye}=Vf(),rf=ad(),rye=Y1(),DG=Wo(),tye=Il().defaultLine,ef=Dn().extendFlat,FG=rf.marker.line;EG.exports=ef({locations:{valType:"data_array",editType:"calc"},locationmode:rf.locationmode,z:{valType:"data_array",editType:"calc"},geojson:ef({},rf.geojson,{}),featureidkey:rf.featureidkey,text:ef({},rf.text,{}),hovertext:ef({},rf.hovertext,{}),marker:{line:{color:ef({},FG.color,{dflt:tye}),width:ef({},FG.width,{dflt:1}),editType:"calc"},opacity:{valType:"number",arrayOk:!0,min:0,max:1,dflt:1,editType:"style"},editType:"calc"},selected:{marker:{opacity:rf.selected.marker.opacity,editType:"plot"},editType:"plot"},unselected:{marker:{opacity:rf.unselected.marker.opacity,editType:"plot"},editType:"plot"},hoverinfo:ef({},DG.hoverinfo,{editType:"calc",flags:["location","z","text","name"]}),hovertemplate:Q3e(),hovertemplatefallback:eye(),showlegend:ef({},DG.showlegend,{dflt:!1})},rye("",{cLetter:"z",editTypeOverride:"calc"}))});var qG=oe((u_e,LG)=>{"use strict";var py=pr(),aye=V1(),nye=dy();LG.exports=function(r,t,a,n){function i(h,d){return py.coerce(r,t,nye,h,d)}var o=i("locations"),l=i("z");if(!(o&&o.length&&py.isArrayOrTypedArray(l)&&l.length)){t.visible=!1;return}t._length=Math.min(o.length,l.length);var s=i("geojson"),u;(typeof s=="string"&&s!==""||py.isPlainObject(s))&&(u="geojson-id");var f=i("locationmode",u);f==="geojson-id"&&i("featureidkey"),i("text"),i("hovertext"),i("hovertemplate"),i("hovertemplatefallback");var c=i("marker.line.width");c&&i("marker.line.color"),i("marker.opacity"),aye(r,t,n,i,{prefix:"",cLetter:"z"}),py.coerceSelectionMarkerOpacity(t,i)}});var RG=oe((f_e,PG)=>{"use strict";PG.exports={min:"zmin",max:"zmax"}});var IG=oe((c_e,BG)=>{"use strict";var zG=Qt(),iye=(Za(),xr(nn)).BADNUM,oye=$p(),lye=Nh(),sye=e3();function NG(e){return e&&typeof e=="string"}BG.exports=function(r,t){var a=t._length,n=new Array(a),i;t.geojson?i=function(f){return NG(f)||zG(f)}:i=NG;for(var o=0;o{"use strict";var uye=Lt(),fye=Nt(),v_=ha(),cye=Kp();function vye(e,r){r&&HG(e,r)}function HG(e,r){var t=r[0].trace,a=r[0].node3,n=a.selectAll(".choroplethlocation"),i=t.marker||{},o=i.line||{},l=cye.makeColorScaleFuncFromTrace(t);n.each(function(s){uye.select(this).attr("fill",l(s.z)).call(fye.stroke,s.mlc||o.color).call(v_.dashLine,"",s.mlw||o.width||0).style("opacity",i.opacity)}),v_.selectedPointStyle(n,t)}function hye(e,r){var t=r[0].node3,a=r[0].trace;a.selectedpoints?v_.selectedPointStyle(t.selectAll(".choroplethlocation"),a):HG(e,r)}OG.exports={style:vye,styleOnSelect:hye}});var gy=oe((h_e,YG)=>{"use strict";var dye=Lt(),UG=pr(),Rc=E2(),pye=X3().getTopojsonFeatures,GG=P0().findExtremes,mye=my().style;function gye(e,r,t){var a=r.layers.backplot.select(".choroplethlayer");UG.makeTraceGroups(a,t,"trace choropleth").each(function(n){var i=dye.select(this),o=i.selectAll("path.choroplethlocation").data(UG.identity);o.enter().append("path").classed("choroplethlocation",!0),o.exit().remove(),mye(e,n)})}function yye(e,r){var t=e[0].trace,a=r[t.geo],n=a._subplot,i=t.locationmode,o=t._length,l=i==="geojson-id"?Rc.extractTraceFeature(e):pye(t,n.topojson);let s=Rc.fitGeojsonBbox(t,a);for(var u=[],f=[],c=0;c{"use strict";var _ye=Ga(),xye=dy(),wye=pr().fillText,{ANTIMERIDIAN_LON_SHIFT:Aye}=E2();VG.exports=function(r,t,a){var n=r.cd,i=n[0].trace,o=r.subplot,l,s,u,f,c=[t,a];let h=[t+Aye,a];for(s=0;s")}}});var WG=oe((p_e,jG)=>{"use strict";jG.exports=function(r,t,a,n,i){r.location=t.location,r.z=t.z;var o=n[i];return o.fIn&&o.fIn.properties&&(r.properties=o.fIn.properties),r.ct=o.ct,r}});var $G=oe((m_e,ZG)=>{"use strict";ZG.exports=function(r,t){var a=r.cd,n=r.xaxis,i=r.yaxis,o=[],l,s,u,f,c;if(t===!1)for(l=0;l{"use strict";JG.exports={attributes:dy(),supplyDefaults:qG(),colorbar:RG(),calc:IG(),calcGeoJSON:gy().calcGeoJSON,fitCoords:gy().fitCoords,plot:gy().plot,style:my().style,styleOnSelect:my().styleOnSelect,hoverPoints:XG(),eventData:WG(),selectPoints:$G(),moduleType:"trace",name:"choropleth",basePlotModule:c_(),categories:["geo","noOpacity","showLegend"],meta:{}}});var eY=oe((y_e,QG)=>{"use strict";QG.exports=KG()});var pi=oe((b_e,tY)=>{"use strict";var rY=Object.getOwnPropertySymbols,Tye=Object.prototype.hasOwnProperty,kye=Object.prototype.propertyIsEnumerable;function Cye(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function Sye(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var r={},t=0;t<10;t++)r["_"+String.fromCharCode(t)]=t;var a=Object.getOwnPropertyNames(r).map(function(i){return r[i]});if(a.join("")!=="0123456789")return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach(function(i){n[i]=i}),Object.keys(Object.assign({},n)).join("")==="abcdefghijklmnopqrst"}catch(i){return!1}}tY.exports=Sye()?Object.assign:function(e,r){for(var t,a=Cye(e),n,i=1;i{var by=pi();function aY(){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={}}by(aY.prototype,{instance:function(e,r){e=(e||"gregorian").toLowerCase(),r=r||"";var t=this._localCals[e+"-"+r];if(!t&&this.calendars[e]&&(t=new this.calendars[e](r),this._localCals[e+"-"+r]=t),!t)throw(this.local.invalidCalendar||this.regionalOptions[""].invalidCalendar).replace(/\{0\}/,e);return t},newDate:function(e,r,t,a,n){return a=(e!=null&&e.year?e.calendar():typeof a=="string"?this.instance(a,n):a)||this.instance(),a.newDate(e,r,t)},substituteDigits:function(e){return function(r){return(r+"").replace(/[0-9]/g,function(t){return e[t]})}},substituteChineseDigits:function(e,r){return function(t){for(var a="",n=0;t>0;){var i=t%10;a=(i===0?"":e[i]+r[n])+a,n++,t=Math.floor(t/10)}return a.indexOf(e[1]+r[1])===0&&(a=a.substr(1)),a||e[0]}}});function h_(e,r,t,a){if(this._calendar=e,this._year=r,this._month=t,this._day=a,this._calendar._validateLevel===0&&!this._calendar.isValid(this._year,this._month,this._day))throw(qt.local.invalidDate||qt.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name)}function yy(e,r){return e=""+e,"000000".substring(0,r-e.length)+e}by(h_.prototype,{newDate:function(e,r,t){return this._calendar.newDate(e==null?this:e,r,t)},year:function(e){return arguments.length===0?this._year:this.set(e,"y")},month:function(e){return arguments.length===0?this._month:this.set(e,"m")},day:function(e){return arguments.length===0?this._day:this.set(e,"d")},date:function(e,r,t){if(!this._calendar.isValid(e,r,t))throw(qt.local.invalidDate||qt.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name);return this._year=e,this._month=r,this._day=t,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(e,r){return this._calendar.add(this,e,r)},set:function(e,r){return this._calendar.set(this,e,r)},compareTo:function(e){if(this._calendar.name!==e._calendar.name)throw(qt.local.differentCalendars||qt.regionalOptions[""].differentCalendars).replace(/\{0\}/,this._calendar.local.name).replace(/\{1\}/,e._calendar.local.name);var r=this._year!==e._year?this._year-e._year:this._month!==e._month?this.monthOfYear()-e.monthOfYear():this._day-e._day;return r===0?0:r<0?-1:1},calendar:function(){return this._calendar},toJD:function(){return this._calendar.toJD(this)},fromJD:function(e){return this._calendar.fromJD(e)},toJSDate:function(){return this._calendar.toJSDate(this)},fromJSDate:function(e){return this._calendar.fromJSDate(e)},toString:function(){return(this.year()<0?"-":"")+yy(Math.abs(this.year()),4)+"-"+yy(this.month(),2)+"-"+yy(this.day(),2)}});function d_(){this.shortYearCutoff="+10"}by(d_.prototype,{_validateLevel:0,newDate:function(e,r,t){return e==null?this.today():(e.year&&(this._validate(e,r,t,qt.local.invalidDate||qt.regionalOptions[""].invalidDate),t=e.day(),r=e.month(),e=e.year()),new h_(this,e,r,t))},today:function(){return this.fromJSDate(new Date)},epoch:function(e){var r=this._validate(e,this.minMonth,this.minDay,qt.local.invalidYear||qt.regionalOptions[""].invalidYear);return r.year()<0?this.local.epochs[0]:this.local.epochs[1]},formatYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,qt.local.invalidYear||qt.regionalOptions[""].invalidYear);return(r.year()<0?"-":"")+yy(Math.abs(r.year()),4)},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,qt.local.invalidYear||qt.regionalOptions[""].invalidYear),12},monthOfYear:function(e,r){var t=this._validate(e,r,this.minDay,qt.local.invalidMonth||qt.regionalOptions[""].invalidMonth);return(t.month()+this.monthsInYear(t)-this.firstMonth)%this.monthsInYear(t)+this.minMonth},fromMonthOfYear:function(e,r){var t=(r+this.firstMonth-2*this.minMonth)%this.monthsInYear(e)+this.minMonth;return this._validate(e,t,this.minDay,qt.local.invalidMonth||qt.regionalOptions[""].invalidMonth),t},daysInYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,qt.local.invalidYear||qt.regionalOptions[""].invalidYear);return this.leapYear(r)?366:365},dayOfYear:function(e,r,t){var a=this._validate(e,r,t,qt.local.invalidDate||qt.regionalOptions[""].invalidDate);return a.toJD()-this.newDate(a.year(),this.fromMonthOfYear(a.year(),this.minMonth),this.minDay).toJD()+1},daysInWeek:function(){return 7},dayOfWeek:function(e,r,t){var a=this._validate(e,r,t,qt.local.invalidDate||qt.regionalOptions[""].invalidDate);return(Math.floor(this.toJD(a))+2)%this.daysInWeek()},extraInfo:function(e,r,t){return this._validate(e,r,t,qt.local.invalidDate||qt.regionalOptions[""].invalidDate),{}},add:function(e,r,t){return this._validate(e,this.minMonth,this.minDay,qt.local.invalidDate||qt.regionalOptions[""].invalidDate),this._correctAdd(e,this._add(e,r,t),r,t)},_add:function(e,r,t){if(this._validateLevel++,t==="d"||t==="w"){var a=e.toJD()+r*(t==="w"?this.daysInWeek():1),n=e.calendar().fromJD(a);return this._validateLevel--,[n.year(),n.month(),n.day()]}try{var i=e.year()+(t==="y"?r:0),o=e.monthOfYear()+(t==="m"?r:0),n=e.day(),l=function(f){for(;oc-1+f.minMonth;)i++,o-=c,c=f.monthsInYear(i)};t==="y"?(e.month()!==this.fromMonthOfYear(i,o)&&(o=this.newDate(i,e.month(),this.minDay).monthOfYear()),o=Math.min(o,this.monthsInYear(i)),n=Math.min(n,this.daysInMonth(i,this.fromMonthOfYear(i,o)))):t==="m"&&(l(this),n=Math.min(n,this.daysInMonth(i,this.fromMonthOfYear(i,o))));var s=[i,this.fromMonthOfYear(i,o),n];return this._validateLevel--,s}catch(u){throw this._validateLevel--,u}},_correctAdd:function(e,r,t,a){if(!this.hasYearZero&&(a==="y"||a==="m")&&(r[0]===0||e.year()>0!=r[0]>0)){var n={y:[1,1,"y"],m:[1,this.monthsInYear(-1),"m"],w:[this.daysInWeek(),this.daysInYear(-1),"d"],d:[1,this.daysInYear(-1),"d"]}[a],i=t<0?-1:1;r=this._add(e,t*n[0]+i*n[1],n[2])}return e.date(r[0],r[1],r[2])},set:function(e,r,t){this._validate(e,this.minMonth,this.minDay,qt.local.invalidDate||qt.regionalOptions[""].invalidDate);var a=t==="y"?r:e.year(),n=t==="m"?r:e.month(),i=t==="d"?r:e.day();return(t==="y"||t==="m")&&(i=Math.min(i,this.daysInMonth(a,n))),e.date(a,n,i)},isValid:function(e,r,t){this._validateLevel++;var a=this.hasYearZero||e!==0;if(a){var n=this.newDate(e,r,this.minDay);a=r>=this.minMonth&&r-this.minMonth=this.minDay&&t-this.minDay13.5?13:1),u=n-(s>2.5?4716:4715);return u<=0&&u--,this.newDate(u,s,l)},toJSDate:function(e,r,t){var a=this._validate(e,r,t,qt.local.invalidDate||qt.regionalOptions[""].invalidDate),n=new Date(a.year(),a.month()-1,a.day());return n.setHours(0),n.setMinutes(0),n.setSeconds(0),n.setMilliseconds(0),n.setHours(n.getHours()>12?n.getHours()+2:0),n},fromJSDate:function(e){return this.newDate(e.getFullYear(),e.getMonth()+1,e.getDate())}});var qt=nY.exports=new aY;qt.cdate=h_;qt.baseCalendar=d_;qt.calendars.gregorian=p_});var iY=oe(()=>{var m_=pi(),$n=mi();m_($n.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"});$n.local=$n.regionalOptions[""];m_($n.cdate.prototype,{formatDate:function(e,r){return typeof e!="string"&&(r=e,e=""),this._calendar.formatDate(e||"",this,r)}});m_($n.baseCalendar.prototype,{UNIX_EPOCH:$n.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:1440*60,TICKS_EPOCH:$n.instance().jdEpoch,TICKS_PER_DAY:1440*60*1e7,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(e,r,t){if(typeof e!="string"&&(t=r,r=e,e=""),!r)return"";if(r.calendar()!==this)throw $n.local.invalidFormat||$n.regionalOptions[""].invalidFormat;e=e||this.local.dateFormat,t=t||{};for(var a=t.dayNamesShort||this.local.dayNamesShort,n=t.dayNames||this.local.dayNames,i=t.monthNumbers||this.local.monthNumbers,o=t.monthNamesShort||this.local.monthNamesShort,l=t.monthNames||this.local.monthNames,s=t.calculateWeek||this.local.calculateWeek,u=function(_,A){for(var k=1;x+k1},f=function(_,A,k,M){var E=""+A;if(u(_,M))for(;E.length1},C=function(V,H){var X=y(V,H),N=[2,3,X?4:2,X?4:2,10,11,20]["oyYJ@!".indexOf(V)+1],Q=new RegExp("^-?\\d{1,"+N+"}"),ee=r.substring(E).match(Q);if(!ee)throw($n.local.missingNumberAt||$n.regionalOptions[""].missingNumberAt).replace(/\{0\}/,E);return E+=ee[0].length,parseInt(ee[0],10)},x=this,_=function(){if(typeof l=="function"){y("m");var V=l.call(x,r.substring(E));return E+=V.length,V}return C("m")},A=function(V,H,X,N){for(var Q=y(V,N)?X:H,ee=0;ee-1){h=1,d=p;for(var I=this.daysInMonth(c,h);d>I;I=this.daysInMonth(c,h))h++,d-=I}return f>-1?this.fromJD(f):this.newDate(c,h,d)},determineDate:function(e,r,t,a,n){t&&typeof t!="object"&&(n=a,a=t,t=null),typeof a!="string"&&(n=a,a="");var i=this,o=function(l){try{return i.parseDate(a,l,n)}catch(c){}l=l.toLowerCase();for(var s=(l.match(/^c/)&&t?t.newDate():null)||i.today(),u=/([+-]?[0-9]+)\s*(d|w|m|y)?/g,f=u.exec(l);f;)s.add(parseInt(f[1],10),f[2]||"d"),f=u.exec(l);return s};return r=r?r.newDate():null,e=e==null?r:typeof e=="string"?o(e):typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?r:i.today().add(e,"d"):i.newDate(e),e}})});var oY=oe(()=>{var tf=mi(),Dye=pi(),g_=tf.instance();function _y(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}_y.prototype=new tf.baseCalendar;Dye(_y.prototype,{name:"Chinese",jdEpoch:17214255e-1,hasYearZero:!1,minMonth:0,firstMonth:0,minDay:1,regionalOptions:{"":{name:"Chinese",epochs:["BEC","EC"],monthNumbers:function(e,r){if(typeof e=="string"){var t=e.match(Eye);return t?t[0]:""}var a=this._validateYear(e),n=e.month(),i=""+this.toChineseMonth(a,n);return r&&i.length<2&&(i="0"+i),this.isIntercalaryMonth(a,n)&&(i+="i"),i},monthNames:function(e){if(typeof e=="string"){var r=e.match(Lye);return r?r[0]:""}var t=this._validateYear(e),a=e.month(),n=this.toChineseMonth(t,a),i=["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"][n-1];return this.isIntercalaryMonth(t,a)&&(i="\u95F0"+i),i},monthNamesShort:function(e){if(typeof e=="string"){var r=e.match(qye);return r?r[0]:""}var t=this._validateYear(e),a=e.month(),n=this.toChineseMonth(t,a),i=["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"][n-1];return this.isIntercalaryMonth(t,a)&&(i="\u95F0"+i),i},parseMonth:function(e,r){e=this._validateYear(e);var t=parseInt(r),a;if(isNaN(t))r[0]==="\u95F0"&&(a=!0,r=r.substring(1)),r[r.length-1]==="\u6708"&&(r=r.substring(0,r.length-1)),t=1+["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"].indexOf(r);else{var n=r[r.length-1];a=n==="i"||n==="I"}var i=this.toMonthIndex(e,t,a);return i},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(e,r){if(e.year&&(e=e.year()),typeof e!="number"||e<1888||e>2111)throw r.replace(/\{0\}/,this.local.name);return e},toMonthIndex:function(e,r,t){var a=this.intercalaryMonth(e),n=t&&r!==a;if(n||r<1||r>12)throw tf.local.invalidMonth.replace(/\{0\}/,this.local.name);var i;return a?!t&&r<=a?i=r-1:i=r:i=r-1,i},toChineseMonth:function(e,r){e.year&&(e=e.year(),r=e.month());var t=this.intercalaryMonth(e),a=t?12:11;if(r<0||r>a)throw tf.local.invalidMonth.replace(/\{0\}/,this.local.name);var n;return t?r>13;return t},isIntercalaryMonth:function(e,r){e.year&&(e=e.year(),r=e.month());var t=this.intercalaryMonth(e);return!!t&&t===r},leapYear:function(e){return this.intercalaryMonth(e)!==0},weekOfYear:function(e,r,t){var a=this._validateYear(e,tf.local.invalidyear),n=nf[a-nf[0]],i=n>>9&4095,o=n>>5&15,l=n&31,s;s=g_.newDate(i,o,l),s.add(4-(s.dayOfWeek()||7),"d");var u=this.toJD(e,r,t)-s.toJD();return 1+Math.floor(u/7)},monthsInYear:function(e){return this.leapYear(e)?13:12},daysInMonth:function(e,r){e.year&&(r=e.month(),e=e.year()),e=this._validateYear(e);var t=af[e-af[0]],a=t>>13,n=a?12:11;if(r>n)throw tf.local.invalidMonth.replace(/\{0\}/,this.local.name);var i=t&1<<12-r?30:29;return i},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var a=this._validate(e,i,t,tf.local.invalidDate);e=this._validateYear(a.year()),r=a.month(),t=a.day();var n=this.isIntercalaryMonth(e,r),i=this.toChineseMonth(e,r),o=Rye(e,i,t,n);return g_.toJD(o.year,o.month,o.day)},fromJD:function(e){var r=g_.fromJD(e),t=Pye(r.year(),r.month(),r.day()),a=this.toMonthIndex(t.year,t.month,t.isIntercalary);return this.newDate(t.year,a,t.day)},fromString:function(e){var r=e.match(Fye),t=this._validateYear(+r[1]),a=+r[2],n=!!r[3],i=this.toMonthIndex(t,a,n),o=+r[4];return this.newDate(t,i,o)},add:function(e,r,t){var a=e.year(),n=e.month(),i=this.isIntercalaryMonth(a,n),o=this.toChineseMonth(a,n),l=Object.getPrototypeOf(_y.prototype).add.call(this,e,r,t);if(t==="y"){var s=l.year(),u=l.month(),f=this.isIntercalaryMonth(s,o),c=i&&f?this.toMonthIndex(s,o,!0):this.toMonthIndex(s,o,!1);c!==u&&l.month(c)}return l}});var Fye=/^\s*(-?\d\d\d\d|\d\d)[-/](\d?\d)([iI]?)[-/](\d?\d)/m,Eye=/^\d?\d[iI]?/m,Lye=/^闰?十?[一二三四五六七八九]?月/m,qye=/^闰?十?[一二三四五六七八九]?/m;tf.calendars.chinese=_y;var af=[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],nf=[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 Pye(e,r,t,a){var n,i;if(typeof e=="object")n=e,i=r||{};else{var o=typeof e=="number"&&e>=1888&&e<=2111;if(!o)throw new Error("Solar year outside range 1888-2111");var l=typeof r=="number"&&r>=1&&r<=12;if(!l)throw new Error("Solar month outside range 1 - 12");var s=typeof t=="number"&&t>=1&&t<=31;if(!s)throw new Error("Solar day outside range 1 - 31");n={year:e,month:r,day:t},i=a||{}}var u=nf[n.year-nf[0]],f=n.year<<9|n.month<<5|n.day;i.year=f>=u?n.year:n.year-1,u=nf[i.year-nf[0]];var c=u>>9&4095,h=u>>5&15,d=u&31,p,m=new Date(c,h-1,d),b=new Date(n.year,n.month-1,n.day);p=Math.round((b-m)/(24*3600*1e3));var y=af[i.year-af[0]],C;for(C=0;C<13;C++){var x=y&1<<12-C?30:29;if(p>13;return!_||C<_?(i.isIntercalary=!1,i.month=1+C):C===_?(i.isIntercalary=!0,i.month=C):(i.isIntercalary=!1,i.month=C),i.day=1+p,i}function Rye(e,r,t,a,n){var i,o;if(typeof e=="object")o=e,i=r||{};else{var l=typeof e=="number"&&e>=1888&&e<=2111;if(!l)throw new Error("Lunar year outside range 1888-2111");var s=typeof r=="number"&&r>=1&&r<=12;if(!s)throw new Error("Lunar month outside range 1 - 12");var u=typeof t=="number"&&t>=1&&t<=30;if(!u)throw new Error("Lunar day outside range 1 - 30");var f;typeof a=="object"?(f=!1,i=a):(f=!!a,i=n||{}),o={year:e,month:r,day:t,isIntercalary:f}}var c;c=o.day-1;var h=af[o.year-af[0]],d=h>>13,p;d&&(o.month>d||o.isIntercalary)?p=o.month:p=o.month-1;for(var m=0;m>9&4095,x=y>>5&15,_=y&31,A=new Date(C,x-1,_+c);return i.year=A.getFullYear(),i.month=1+A.getMonth(),i.day=A.getDate(),i}});var lY=oe(()=>{var zc=mi(),zye=pi();function y_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}y_.prototype=new zc.baseCalendar;zye(y_.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(t){var r=this._validate(t,this.minMonth,this.minDay,zc.local.invalidYear),t=r.year()+(r.year()<0?1:0);return t%4===3||t%4===-1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,zc.local.invalidYear||zc.regionalOptions[""].invalidYear),13},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,zc.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===13&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var a=this._validate(e,r,t,zc.local.invalidDate);return e=a.year(),e<0&&e++,a.day()+(a.month()-1)*30+(e-1)*365+Math.floor(e/4)+this.jdEpoch-1},fromJD:function(e){var r=Math.floor(e)+.5-this.jdEpoch,t=Math.floor((r-Math.floor((r+366)/1461))/365)+1;t<=0&&t--,r=Math.floor(e)+.5-this.newDate(t,1,1).toJD();var a=Math.floor(r/30)+1,n=r-(a-1)*30+1;return this.newDate(t,a,n)}});zc.calendars.coptic=y_});var sY=oe(()=>{var Wu=mi(),Nye=pi();function b_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}b_.prototype=new Wu.baseCalendar;Nye(b_.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(e){return this._validate(e,this.minMonth,this.minDay,Wu.local.invalidYear),!1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Wu.local.invalidYear),13},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Wu.local.invalidYear),400},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/8)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Wu.local.invalidMonth);return this.daysPerMonth[t.month()-1]},daysInWeek:function(){return 8},dayOfWeek:function(e,r,t){var a=this._validate(e,r,t,Wu.local.invalidDate);return(a.day()+1)%8},weekDay:function(e,r,t){var a=this.dayOfWeek(e,r,t);return a>=2&&a<=6},extraInfo:function(e,r,t){var a=this._validate(e,r,t,Wu.local.invalidDate);return{century:Bye[Math.floor((a.year()-1)/100)+1]||""}},toJD:function(e,r,t){var a=this._validate(e,r,t,Wu.local.invalidDate);return e=a.year()+(a.year()<0?1:0),r=a.month(),t=a.day(),t+(r>1?16:0)+(r>2?(r-2)*32:0)+(e-1)*400+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e+.5)-Math.floor(this.jdEpoch)-1;var r=Math.floor(e/400)+1;e-=(r-1)*400,e+=e>15?16:0;var t=Math.floor(e/32)+1,a=e-(t-1)*32+1;return this.newDate(r<=0?r-1:r,t,a)}});var Bye={20:"Fruitbat",21:"Anchovy"};Wu.calendars.discworld=b_});var uY=oe(()=>{var Nc=mi(),Iye=pi();function __(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}__.prototype=new Nc.baseCalendar;Iye(__.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(t){var r=this._validate(t,this.minMonth,this.minDay,Nc.local.invalidYear),t=r.year()+(r.year()<0?1:0);return t%4===3||t%4===-1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Nc.local.invalidYear||Nc.regionalOptions[""].invalidYear),13},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Nc.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===13&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var a=this._validate(e,r,t,Nc.local.invalidDate);return e=a.year(),e<0&&e++,a.day()+(a.month()-1)*30+(e-1)*365+Math.floor(e/4)+this.jdEpoch-1},fromJD:function(e){var r=Math.floor(e)+.5-this.jdEpoch,t=Math.floor((r-Math.floor((r+366)/1461))/365)+1;t<=0&&t--,r=Math.floor(e)+.5-this.newDate(t,1,1).toJD();var a=Math.floor(r/30)+1,n=r-(a-1)*30+1;return this.newDate(t,a,n)}});Nc.calendars.ethiopian=__});var fY=oe(()=>{var of=mi(),Hye=pi();function x_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}x_.prototype=new of.baseCalendar;Hye(x_.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(e){var r=this._validate(e,this.minMonth,this.minDay,of.local.invalidYear);return this._leapYear(r.year())},_leapYear:function(e){return e=e<0?e+1:e,xy(e*7+1,19)<7},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,of.local.invalidYear),this._leapYear(e.year?e.year():e)?13:12},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,of.local.invalidYear);return e=r.year(),this.toJD(e===-1?1:e+1,7,1)-this.toJD(e,7,1)},daysInMonth:function(e,r){return e.year&&(r=e.month(),e=e.year()),this._validate(e,r,this.minDay,of.local.invalidMonth),r===12&&this.leapYear(e)||r===8&&xy(this.daysInYear(e),10)===5?30:r===9&&xy(this.daysInYear(e),10)===3?29:this.daysPerMonth[r-1]},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==6},extraInfo:function(e,r,t){var a=this._validate(e,r,t,of.local.invalidDate);return{yearType:(this.leapYear(a)?"embolismic":"common")+" "+["deficient","regular","complete"][this.daysInYear(a)%10-3]}},toJD:function(e,r,t){var a=this._validate(e,r,t,of.local.invalidDate);e=a.year(),r=a.month(),t=a.day();var n=e<=0?e+1:e,i=this.jdEpoch+this._delay1(n)+this._delay2(n)+t+1;if(r<7){for(var o=7;o<=this.monthsInYear(e);o++)i+=this.daysInMonth(e,o);for(var o=1;o=this.toJD(r===-1?1:r+1,7,1);)r++;for(var t=ethis.toJD(r,t,this.daysInMonth(r,t));)t++;var a=e-this.toJD(r,t,1)+1;return this.newDate(r,t,a)}});function xy(e,r){return e-r*Math.floor(e/r)}of.calendars.hebrew=x_});var cY=oe(()=>{var vd=mi(),Oye=pi();function w_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}w_.prototype=new vd.baseCalendar;Oye(w_.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\u012Bs","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(e){var r=this._validate(e,this.minMonth,this.minDay,vd.local.invalidYear);return(r.year()*11+14)%30<11},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInYear:function(e){return this.leapYear(e)?355:354},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,vd.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===12&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==5},toJD:function(e,r,t){var a=this._validate(e,r,t,vd.local.invalidDate);return e=a.year(),r=a.month(),t=a.day(),e=e<=0?e+1:e,t+Math.ceil(29.5*(r-1))+(e-1)*354+Math.floor((3+11*e)/30)+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e)+.5;var r=Math.floor((30*(e-this.jdEpoch)+10646)/10631);r=r<=0?r-1:r;var t=Math.min(12,Math.ceil((e-29-this.toJD(r,1,1))/29.5)+1),a=e-this.toJD(r,t,1)+1;return this.newDate(r,t,a)}});vd.calendars.islamic=w_});var vY=oe(()=>{var hd=mi(),Uye=pi();function A_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}A_.prototype=new hd.baseCalendar;Uye(A_.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(t){var r=this._validate(t,this.minMonth,this.minDay,hd.local.invalidYear),t=r.year()<0?r.year()+1:r.year();return t%4===0},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(4-(a.dayOfWeek()||7),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,hd.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===2&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var a=this._validate(e,r,t,hd.local.invalidDate);return e=a.year(),r=a.month(),t=a.day(),e<0&&e++,r<=2&&(e--,r+=12),Math.floor(365.25*(e+4716))+Math.floor(30.6001*(r+1))+t-1524.5},fromJD:function(e){var r=Math.floor(e+.5),t=r+1524,a=Math.floor((t-122.1)/365.25),n=Math.floor(365.25*a),i=Math.floor((t-n)/30.6001),o=i-Math.floor(i<14?1:13),l=a-Math.floor(o>2?4716:4715),s=t-n-Math.floor(30.6001*i);return l<=0&&l--,this.newDate(l,o,s)}});hd.calendars.julian=A_});var dY=oe(()=>{var pl=mi(),Gye=pi();function T_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}T_.prototype=new pl.baseCalendar;Gye(T_.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(e){return this._validate(e,this.minMonth,this.minDay,pl.local.invalidYear),!1},formatYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,pl.local.invalidYear);e=r.year();var t=Math.floor(e/400);e=e%400,e+=e<0?400:0;var a=Math.floor(e/20);return t+"."+a+"."+e%20},forYear:function(e){if(e=e.split("."),e.length<3)throw"Invalid Mayan year";for(var r=0,t=0;t19||t>0&&a<0)throw"Invalid Mayan year";r=r*20+a}return r},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,pl.local.invalidYear),18},weekOfYear:function(e,r,t){return this._validate(e,r,t,pl.local.invalidDate),0},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,pl.local.invalidYear),360},daysInMonth:function(e,r){return this._validate(e,r,this.minDay,pl.local.invalidMonth),20},daysInWeek:function(){return 5},dayOfWeek:function(e,r,t){var a=this._validate(e,r,t,pl.local.invalidDate);return a.day()},weekDay:function(e,r,t){return this._validate(e,r,t,pl.local.invalidDate),!0},extraInfo:function(e,r,t){var a=this._validate(e,r,t,pl.local.invalidDate),n=a.toJD(),i=this._toHaab(n),o=this._toTzolkin(n);return{haabMonthName:this.local.haabMonths[i[0]-1],haabMonth:i[0],haabDay:i[1],tzolkinDayName:this.local.tzolkinMonths[o[0]-1],tzolkinDay:o[0],tzolkinTrecena:o[1]}},_toHaab:function(e){e-=this.jdEpoch;var r=M_(e+8+340,365);return[Math.floor(r/20)+1,M_(r,20)]},_toTzolkin:function(e){return e-=this.jdEpoch,[hY(e+20,20),hY(e+4,13)]},toJD:function(e,r,t){var a=this._validate(e,r,t,pl.local.invalidDate);return a.day()+a.month()*20+a.year()*360+this.jdEpoch},fromJD:function(e){e=Math.floor(e)+.5-this.jdEpoch;var r=Math.floor(e/360);e=e%360,e+=e<0?360:0;var t=Math.floor(e/20),a=e%20;return this.newDate(r,t,a)}});function M_(e,r){return e-r*Math.floor(e/r)}function hY(e,r){return M_(e-1,r)+1}pl.calendars.mayan=T_});var mY=oe(()=>{var Bc=mi(),Yye=pi();function k_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}k_.prototype=new Bc.baseCalendar;var pY=Bc.instance("gregorian");Yye(k_.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(e){var r=this._validate(e,this.minMonth,this.minDay,Bc.local.invalidYear||Bc.regionalOptions[""].invalidYear);return pY.leapYear(r.year()+(r.year()<1?1:0)+1469)},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(1-(a.dayOfWeek()||7),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Bc.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===12&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(n,r,t){var a=this._validate(n,r,t,Bc.local.invalidMonth),n=a.year();n<0&&n++;for(var i=a.day(),o=1;o=this.toJD(r+1,1,1);)r++;for(var t=e-Math.floor(this.toJD(r,1,1)+.5)+1,a=1;t>this.daysInMonth(r,a);)t-=this.daysInMonth(r,a),a++;return this.newDate(r,a,t)}});Bc.calendars.nanakshahi=k_});var gY=oe(()=>{var Ic=mi(),Vye=pi();function C_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}C_.prototype=new Ic.baseCalendar;Vye(C_.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(e){return this.daysInYear(e)!==this.daysPerYear},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Ic.local.invalidYear);if(e=r.year(),typeof this.NEPALI_CALENDAR_DATA[e]=="undefined")return this.daysPerYear;for(var t=0,a=this.minMonth;a<=12;a++)t+=this.NEPALI_CALENDAR_DATA[e][a];return t},daysInMonth:function(e,r){return e.year&&(r=e.month(),e=e.year()),this._validate(e,r,this.minDay,Ic.local.invalidMonth),typeof this.NEPALI_CALENDAR_DATA[e]=="undefined"?this.daysPerMonth[r-1]:this.NEPALI_CALENDAR_DATA[e][r]},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==6},toJD:function(e,r,t){var a=this._validate(e,r,t,Ic.local.invalidDate);e=a.year(),r=a.month(),t=a.day();var n=Ic.instance(),i=0,o=r,l=e;this._createMissingCalendarData(e);var s=e-(o>9||o===9&&t>=this.NEPALI_CALENDAR_DATA[l][0]?56:57);for(r!==9&&(i=t,o--);o!==9;)o<=0&&(o=12,l--),i+=this.NEPALI_CALENDAR_DATA[l][o],o--;return r===9?(i+=t-this.NEPALI_CALENDAR_DATA[l][0],i<0&&(i+=n.daysInYear(s))):i+=this.NEPALI_CALENDAR_DATA[l][9]-this.NEPALI_CALENDAR_DATA[l][0],n.newDate(s,1,1).add(i,"d").toJD()},fromJD:function(e){var r=Ic.instance(),t=r.fromJD(e),a=t.year(),n=t.dayOfYear(),i=a+56;this._createMissingCalendarData(i);for(var o=9,l=this.NEPALI_CALENDAR_DATA[i][0],s=this.NEPALI_CALENDAR_DATA[i][o]-l+1;n>s;)o++,o>12&&(o=1,i++),s+=this.NEPALI_CALENDAR_DATA[i][o];var u=this.NEPALI_CALENDAR_DATA[i][o]-(s-n);return this.newDate(i,o,u)},_createMissingCalendarData:function(e){var r=this.daysPerMonth.slice(0);r.unshift(17);for(var t=e-1;t{var R2=mi(),Xye=pi();function Ay(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}function wy(e){var r=e-475;e<0&&r++;var t=.242197,a=t*r,n=t*(r+1),i=a-Math.floor(a),o=n-Math.floor(n);return i>o}Ay.prototype=new R2.baseCalendar;Xye(Ay.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","Dey","Bahman","Esfand"],monthNamesShort:["Far","Ord","Kho","Tir","Mor","Sha","Meh","Aba","Aza","Dey","Bah","Esf"],dayNames:["Yekshanbeh","Doshanbeh","Seshanbeh","Chah\u0101rshanbeh","Panjshanbeh","Jom'eh","Shanbeh"],dayNamesShort:["Yek","Do","Se","Cha","Panj","Jom","Sha"],dayNamesMin:["Ye","Do","Se","Ch","Pa","Jo","Sh"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,R2.local.invalidYear);return wy(r.year())},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-((a.dayOfWeek()+1)%7),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,R2.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===12&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==5},toJD:function(e,r,t){var a=this._validate(e,r,t,R2.local.invalidDate);e=a.year(),r=a.month(),t=a.day();var n=0;if(e>0)for(var i=1;i0?e-1:e)*365+n+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e)+.5;var r=475+(e-this.toJD(475,1,1))/365.242197,t=Math.floor(r);t<=0&&t--,e>this.toJD(t,12,wy(t)?30:29)&&(t++,t===0&&t++);var a=e-this.toJD(t,1,1)+1,n=a<=186?Math.ceil(a/31):Math.ceil((a-6)/30),i=e-this.toJD(t,n,1)+1;return this.newDate(t,n,i)}});R2.calendars.persian=Ay;R2.calendars.jalali=Ay});var bY=oe(()=>{var Hc=mi(),jye=pi(),My=Hc.instance();function S_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}S_.prototype=new Hc.baseCalendar;jye(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(t){var r=this._validate(t,this.minMonth,this.minDay,Hc.local.invalidYear),t=this._t2gYear(r.year());return My.leapYear(t)},weekOfYear:function(n,r,t){var a=this._validate(n,this.minMonth,this.minDay,Hc.local.invalidYear),n=this._t2gYear(a.year());return My.weekOfYear(n,a.month(),a.day())},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Hc.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===2&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(n,r,t){var a=this._validate(n,r,t,Hc.local.invalidDate),n=this._t2gYear(a.year());return My.toJD(n,a.month(),a.day())},fromJD:function(e){var r=My.fromJD(e),t=this._g2tYear(r.year());return this.newDate(t,r.month(),r.day())},_t2gYear:function(e){return e+this.yearsOffset+(e>=-this.yearsOffset&&e<=-1?1:0)},_g2tYear:function(e){return e-this.yearsOffset-(e>=1&&e<=this.yearsOffset?1:0)}});Hc.calendars.taiwan=S_});var _Y=oe(()=>{var Oc=mi(),Wye=pi(),Ty=Oc.instance();function D_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}D_.prototype=new Oc.baseCalendar;Wye(D_.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(t){var r=this._validate(t,this.minMonth,this.minDay,Oc.local.invalidYear),t=this._t2gYear(r.year());return Ty.leapYear(t)},weekOfYear:function(n,r,t){var a=this._validate(n,this.minMonth,this.minDay,Oc.local.invalidYear),n=this._t2gYear(a.year());return Ty.weekOfYear(n,a.month(),a.day())},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Oc.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===2&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(n,r,t){var a=this._validate(n,r,t,Oc.local.invalidDate),n=this._t2gYear(a.year());return Ty.toJD(n,a.month(),a.day())},fromJD:function(e){var r=Ty.fromJD(e),t=this._g2tYear(r.year());return this.newDate(t,r.month(),r.day())},_t2gYear:function(e){return e-this.yearsOffset-(e>=1&&e<=this.yearsOffset?1:0)},_g2tYear:function(e){return e+this.yearsOffset+(e>=-this.yearsOffset&&e<=-1?1:0)}});Oc.calendars.thai=D_});var xY=oe(()=>{var Uc=mi(),Zye=pi();function F_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}F_.prototype=new Uc.baseCalendar;Zye(F_.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\u0101th\u0101\u2019","Yawm al-Arba\u2018\u0101\u2019","Yawm al-Kham\u012Bs","Yawm al-Jum\u2018a","Yawm al-Sabt"],dayNamesMin:["Ah","Ith","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!0}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Uc.local.invalidYear);return this.daysInYear(r.year())===355},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInYear:function(e){for(var r=0,t=1;t<=12;t++)r+=this.daysInMonth(e,t);return r},daysInMonth:function(e,r){for(var t=this._validate(e,r,this.minDay,Uc.local.invalidMonth),a=t.toJD()-24e5+.5,n=0,i=0;ia)return lf[n]-lf[n-1];n++}return 30},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==5},toJD:function(e,r,t){var a=this._validate(e,r,t,Uc.local.invalidDate),n=12*(a.year()-1)+a.month()-15292,i=a.day()+lf[n-1]-1;return i+24e5-.5},fromJD:function(e){for(var r=e-24e5+.5,t=0,a=0;ar);a++)t++;var n=t+15292,i=Math.floor((n-1)/12),o=i+1,l=n-12*i,s=r-lf[t-1]+1;return this.newDate(o,l,s)},isValid:function(e,r,t){var a=Uc.baseCalendar.prototype.isValid.apply(this,arguments);return a&&(e=e.year!=null?e.year:e,a=e>=1276&&e<=1500),a},_validate:function(e,r,t,a){var n=Uc.baseCalendar.prototype._validate.apply(this,arguments);if(n.year<1276||n.year>1500)throw a.replace(/\{0\}/,this.local.name);return n}});Uc.calendars.ummalqura=F_;var lf=[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]});var AY=oe((J_e,wY)=>{"use strict";wY.exports=mi();iY();oY();lY();sY();uY();fY();cY();vY();dY();mY();gY();yY();bY();_Y();xY()});var FY=oe((K_e,DY)=>{"use strict";var TY=AY(),dd=pr(),kY=(Za(),xr(nn)),$ye=kY.EPOCHJD,Jye=kY.ONEDAY,q_={valType:"enumerated",values:dd.sortObjectKeys(TY.calendars),editType:"calc",dflt:"gregorian"},CY=function(e,r,t,a){var n={};return n[t]=q_,dd.coerce(e,r,n,t,a)},Kye=function(e,r,t,a){for(var n=0;n{"use strict";EY.exports=FY()});var n4e=oe((exe,PY)=>{var qY=OO();qY.register([SG(),eY(),LY()]);PY.exports=qY});return n4e();})(); /*! Bundled license information: native-promise-only/lib/npo.src.js: diff --git a/dist/plotly-gl2d.js b/dist/plotly-gl2d.js index 42706da96bb..9cc0aaeb29d 100644 --- a/dist/plotly-gl2d.js +++ b/dist/plotly-gl2d.js @@ -1,5 +1,5 @@ /** -* plotly.js (gl2d) v4.1.2 +* plotly.js (gl2d) v4.2.0 * Copyright 2012-2026, Plotly, Inc. * All rights reserved. * Licensed under the MIT license @@ -110,7 +110,7 @@ var Plotly = (() => { var require_version = __commonJS({ "src/version.js"(exports) { "use strict"; - exports.version = "4.1.2"; + exports.version = "4.2.0"; } }); @@ -17760,9 +17760,9 @@ var Plotly = (() => { var require_maplibre_gl = __commonJS({ "node_modules/maplibre-gl/dist/maplibre-gl.css"() { (function() { - if (!document.getElementById("ce8d464691048653ffe3a57c6c18ab566e8366f186677868cf724621a857b4fe")) { + if (!document.getElementById("9f215cf04c5486422605d13261cb87401f4e7763b6296af81e98efbc0130da53")) { var e = document.createElement("style"); - e.id = "ce8d464691048653ffe3a57c6c18ab566e8366f186677868cf724621a857b4fe"; + e.id = "9f215cf04c5486422605d13261cb87401f4e7763b6296af81e98efbc0130da53"; e.textContent = `.maplibregl-map{font:12px/20px Helvetica Neue,Arial,Helvetica,sans-serif;overflow:hidden;position:relative;-webkit-tap-highlight-color:rgb(0 0 0/0);-webkit-touch-callout:none}.maplibregl-canvas{position:absolute;left:0;top:0}.maplibregl-map:fullscreen{width:100%;height:100%}.maplibregl-ctrl-group button.maplibregl-ctrl-compass{touch-action:none}.maplibregl-canvas-container.maplibregl-interactive,.maplibregl-ctrl-group button.maplibregl-ctrl-compass{cursor:grab;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-canvas-container.maplibregl-interactive.maplibregl-track-pointer{cursor:pointer}.maplibregl-canvas-container.maplibregl-interactive:active,.maplibregl-ctrl-group button.maplibregl-ctrl-compass:active{cursor:grabbing}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-canvas-container.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:pinch-zoom}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:none}.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures,.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-ctrl-bottom-left,.maplibregl-ctrl-bottom-right,.maplibregl-ctrl-top-left,.maplibregl-ctrl-top-right{position:absolute;pointer-events:none;z-index:2}.maplibregl-ctrl-top-left{top:0;left:0}.maplibregl-ctrl-top-right{top:0;right:0}.maplibregl-ctrl-bottom-left{bottom:0;left:0}.maplibregl-ctrl-bottom-right{right:0;bottom:0}.maplibregl-ctrl{clear:both;pointer-events:auto;transform:translate(0)}.maplibregl-ctrl-top-left .maplibregl-ctrl{margin:10px 0 0 10px;float:left}.maplibregl-ctrl-top-right .maplibregl-ctrl{margin:10px 10px 0 0;float:right}.maplibregl-ctrl-bottom-left .maplibregl-ctrl{margin:0 0 10px 10px;float:left}.maplibregl-ctrl-bottom-right .maplibregl-ctrl{margin:0 10px 10px 0;float:right}.maplibregl-ctrl-group{border-radius:4px;background:#fff}.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px rgba(0,0,0,.1)}@media (forced-colors:active){.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px ButtonText}}.maplibregl-ctrl-group button{width:29px;height:29px;display:block;padding:0;outline:none;border:0;box-sizing:border-box;background-color:transparent;cursor:pointer}.maplibregl-ctrl button{-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-ctrl-group button+button{border-top:1px solid #ddd}.maplibregl-ctrl button .maplibregl-ctrl-icon{display:block;width:100%;height:100%;background-repeat:no-repeat;background-position:50%}@media (forced-colors:active){.maplibregl-ctrl-icon{background-color:transparent}.maplibregl-ctrl-group button+button{border-top:1px solid ButtonText}}.maplibregl-ctrl button::-moz-focus-inner{border:0;padding:0}.maplibregl-ctrl-attrib-button:focus,.maplibregl-ctrl-group button:focus{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl button:disabled{cursor:not-allowed}.maplibregl-ctrl button:disabled .maplibregl-ctrl-icon{opacity:.25}@media (hover:hover){.maplibregl-ctrl button:not(:disabled):hover{background-color:rgba(0,0,0,.05)}}.maplibregl-ctrl button:not(:disabled):active{background-color:rgba(0,0,0,.05)}.maplibregl-ctrl-group button:focus:focus-visible{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl-group button:focus:not(:focus-visible){box-shadow:none}.maplibregl-ctrl-group button:focus:first-child{border-radius:4px 4px 0 0}.maplibregl-ctrl-group button:focus:last-child{border-radius:0 0 4px 4px}.maplibregl-ctrl-group button:focus:only-child{border-radius:inherit}.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M10%2013c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h9c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M14.5%208.5c-.75%200-1.5.75-1.5%201.5v3h-3c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h3v3c0%20.75.75%201.5%201.5%201.5S16%2019.75%2016%2019v-3h3c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013h-3v-3c0-.75-.75-1.5-1.5-1.5%22%2F%3E%3C%2Fsvg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M10%2013c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h9c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M14.5%208.5c-.75%200-1.5.75-1.5%201.5v3h-3c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h3v3c0%20.75.75%201.5%201.5%201.5S16%2019.75%2016%2019v-3h3c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013h-3v-3c0-.75-.75-1.5-1.5-1.5%22%2F%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M10%2013c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h9c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M14.5%208.5c-.75%200-1.5.75-1.5%201.5v3h-3c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h3v3c0%20.75.75%201.5%201.5%201.5S16%2019.75%2016%2019v-3h3c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013h-3v-3c0-.75-.75-1.5-1.5-1.5%22%2F%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M24%2016v5.5c0%201.75-.75%202.5-2.5%202.5H16v-1l3-1.5-4-5.5%201-1%205.5%204%201.5-3zM6%2016l1.5%203%205.5-4%201%201-4%205.5%203%201.5v1H7.5C5.75%2024%205%2023.25%205%2021.5V16zm7-11v1l-3%201.5%204%205.5-1%201-5.5-4L6%2013H5V7.5C5%205.75%205.75%205%207.5%205zm11%202.5c0-1.75-.75-2.5-2.5-2.5H16v1l3%201.5-4%205.5%201%201%205.5-4%201.5%203h1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M18.5%2016c-1.75%200-2.5.75-2.5%202.5V24h1l1.5-3%205.5%204%201-1-4-5.5%203-1.5v-1zM13%2018.5c0-1.75-.75-2.5-2.5-2.5H5v1l3%201.5L4%2024l1%201%205.5-4%201.5%203h1zm3-8c0%201.75.75%202.5%202.5%202.5H24v-1l-3-1.5L25%205l-1-1-5.5%204L17%205h-1zM10.5%2013c1.75%200%202.5-.75%202.5-2.5V5h-1l-1.5%203L5%204%204%205l4%205.5L5%2012v1z%22%2F%3E%3C%2Fsvg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M24%2016v5.5c0%201.75-.75%202.5-2.5%202.5H16v-1l3-1.5-4-5.5%201-1%205.5%204%201.5-3zM6%2016l1.5%203%205.5-4%201%201-4%205.5%203%201.5v1H7.5C5.75%2024%205%2023.25%205%2021.5V16zm7-11v1l-3%201.5%204%205.5-1%201-5.5-4L6%2013H5V7.5C5%205.75%205.75%205%207.5%205zm11%202.5c0-1.75-.75-2.5-2.5-2.5H16v1l3%201.5-4%205.5%201%201%205.5-4%201.5%203h1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M18.5%2016c-1.75%200-2.5.75-2.5%202.5V24h1l1.5-3%205.5%204%201-1-4-5.5%203-1.5v-1zM13%2018.5c0-1.75-.75-2.5-2.5-2.5H5v1l3%201.5L4%2024l1%201%205.5-4%201.5%203h1zm3-8c0%201.75.75%202.5%202.5%202.5H24v-1l-3-1.5L25%205l-1-1-5.5%204L17%205h-1zM10.5%2013c1.75%200%202.5-.75%202.5-2.5V5h-1l-1.5%203L5%204%204%205l4%205.5L5%2012v1z%22%2F%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M24%2016v5.5c0%201.75-.75%202.5-2.5%202.5H16v-1l3-1.5-4-5.5%201-1%205.5%204%201.5-3zM6%2016l1.5%203%205.5-4%201%201-4%205.5%203%201.5v1H7.5C5.75%2024%205%2023.25%205%2021.5V16zm7-11v1l-3%201.5%204%205.5-1%201-5.5-4L6%2013H5V7.5C5%205.75%205.75%205%207.5%205zm11%202.5c0-1.75-.75-2.5-2.5-2.5H16v1l3%201.5-4%205.5%201%201%205.5-4%201.5%203h1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M18.5%2016c-1.75%200-2.5.75-2.5%202.5V24h1l1.5-3%205.5%204%201-1-4-5.5%203-1.5v-1zM13%2018.5c0-1.75-.75-2.5-2.5-2.5H5v1l3%201.5L4%2024l1%201%205.5-4%201.5%203h1zm3-8c0%201.75.75%202.5%202.5%202.5H24v-1l-3-1.5L25%205l-1-1-5.5%204L17%205h-1zM10.5%2013c1.75%200%202.5-.75%202.5-2.5V5h-1l-1.5%203L5%204%204%205l4%205.5L5%2012v1z%22%2F%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22m10.5%2014%204-8%204%208z%22%2F%3E%3Cpath%20fill%3D%22%23ccc%22%20d%3D%22m10.5%2016%204%208%204-8z%22%2F%3E%3C%2Fsvg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22m10.5%2014%204-8%204%208z%22%2F%3E%3Cpath%20fill%3D%22%23ccc%22%20d%3D%22m10.5%2016%204%208%204-8z%22%2F%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22m10.5%2014%204-8%204%208z%22%2F%3E%3Cpath%20fill%3D%22%23ccc%22%20d%3D%22m10.5%2016%204%208%204-8z%22%2F%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-globe .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2222%22%20height%3D%2222%22%20fill%3D%22none%22%20stroke%3D%22%23333%22%20viewBox%3D%220%200%2022%2022%22%3E%3Ccircle%20cx%3D%2211%22%20cy%3D%2211%22%20r%3D%228.5%22%2F%3E%3Cpath%20d%3D%22M17.5%2011c0%204.819-3.02%208.5-6.5%208.5S4.5%2015.819%204.5%2011%207.52%202.5%2011%202.5s6.5%203.681%206.5%208.5Z%22%2F%3E%3Cpath%20d%3D%22M13.5%2011c0%202.447-.331%204.64-.853%206.206-.262.785-.562%201.384-.872%201.777-.314.399-.58.517-.775.517s-.461-.118-.775-.517c-.31-.393-.61-.992-.872-1.777C8.831%2015.64%208.5%2013.446%208.5%2011s.331-4.64.853-6.206c.262-.785.562-1.384.872-1.777.314-.399.58-.517.775-.517s.461.118.775.517c.31.393.61.992.872%201.777.522%201.565.853%203.76.853%206.206Z%22%2F%3E%3Cpath%20d%3D%22M11%207.5c-1.909%200-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3%201.3%200%200%201-.224-.138q.07-.058.224-.138c.299-.151.763-.302%201.379-.434C7.378%205.666%209.091%205.5%2011%205.5s3.622.166%204.845.428c.616.132%201.08.283%201.379.434.105.053.177.1.224.138q-.07.058-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm0%209c-1.909%200-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3%201.3%200%200%201-.224-.138%201.3%201.3%200%200%201%20.224-.138c.299-.151.763-.302%201.379-.434C7.378%2014.666%209.091%2014.5%2011%2014.5s3.622.166%204.845.428c.616.132%201.08.283%201.379.434.105.053.177.1.224.138a1.3%201.3%200%200%201-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm0-4c-2.46%200-4.672-.222-6.255-.574-.796-.177-1.406-.38-1.805-.59a1.5%201.5%200%200%201-.39-.272.3.3%200%200%201-.047-.064.3.3%200%200%201%20.048-.064c.066-.073.189-.167.389-.272.399-.21%201.009-.413%201.805-.59C6.328%209.722%208.54%209.5%2011%209.5s4.672.222%206.256.574c.795.177%201.405.38%201.804.59.2.105.323.2.39.272a.3.3%200%200%201%20.047.064.3.3%200%200%201-.048.064%201.4%201.4%200%200%201-.389.272c-.399.21-1.009.413-1.804.59-1.584.352-3.796.574-6.256.574Zm-8.501-1.51v.002zm0%20.018v.002zm17.002.002v-.002zm0-.018v-.002z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-globe-enabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2222%22%20height%3D%2222%22%20fill%3D%22none%22%20stroke%3D%22%2333b5e5%22%20viewBox%3D%220%200%2022%2022%22%3E%3Ccircle%20cx%3D%2211%22%20cy%3D%2211%22%20r%3D%228.5%22%2F%3E%3Cpath%20d%3D%22M17.5%2011c0%204.819-3.02%208.5-6.5%208.5S4.5%2015.819%204.5%2011%207.52%202.5%2011%202.5s6.5%203.681%206.5%208.5Z%22%2F%3E%3Cpath%20d%3D%22M13.5%2011c0%202.447-.331%204.64-.853%206.206-.262.785-.562%201.384-.872%201.777-.314.399-.58.517-.775.517s-.461-.118-.775-.517c-.31-.393-.61-.992-.872-1.777C8.831%2015.64%208.5%2013.446%208.5%2011s.331-4.64.853-6.206c.262-.785.562-1.384.872-1.777.314-.399.58-.517.775-.517s.461.118.775.517c.31.393.61.992.872%201.777.522%201.565.853%203.76.853%206.206Z%22%2F%3E%3Cpath%20d%3D%22M11%207.5c-1.909%200-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3%201.3%200%200%201-.224-.138q.07-.058.224-.138c.299-.151.763-.302%201.379-.434C7.378%205.666%209.091%205.5%2011%205.5s3.622.166%204.845.428c.616.132%201.08.283%201.379.434.105.053.177.1.224.138q-.07.058-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm0%209c-1.909%200-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3%201.3%200%200%201-.224-.138%201.3%201.3%200%200%201%20.224-.138c.299-.151.763-.302%201.379-.434C7.378%2014.666%209.091%2014.5%2011%2014.5s3.622.166%204.845.428c.616.132%201.08.283%201.379.434.105.053.177.1.224.138a1.3%201.3%200%200%201-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm0-4c-2.46%200-4.672-.222-6.255-.574-.796-.177-1.406-.38-1.805-.59a1.5%201.5%200%200%201-.39-.272.3.3%200%200%201-.047-.064.3.3%200%200%201%20.048-.064c.066-.073.189-.167.389-.272.399-.21%201.009-.413%201.805-.59C6.328%209.722%208.54%209.5%2011%209.5s4.672.222%206.256.574c.795.177%201.405.38%201.804.59.2.105.323.2.39.272a.3.3%200%200%201%20.047.064.3.3%200%200%201-.048.064%201.4%201.4%200%200%201-.389.272c-.399.21-1.009.413-1.804.59-1.584.352-3.796.574-6.256.574Zm-8.501-1.51v.002zm0%20.018v.002zm17.002.002v-.002zm0-.018v-.002z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-terrain .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2222%22%20height%3D%2222%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2022%2022%22%3E%3Cpath%20d%3D%22m1.754%2013.406%204.453-4.851%203.09%203.09%203.281%203.277.969-.969-3.309-3.312%203.844-4.121%206.148%206.886h1.082v-.855l-7.207-8.07-4.84%205.187L6.169%206.57l-5.48%205.965v.871ZM.688%2016.844h20.625v1.375H.688Zm0%200%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-terrain-enabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2222%22%20height%3D%2222%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2022%2022%22%3E%3Cpath%20d%3D%22m1.754%2013.406%204.453-4.851%203.09%203.09%203.281%203.277.969-.969-3.309-3.312%203.844-4.121%206.148%206.886h1.082v-.855l-7.207-8.07-4.84%205.187L6.169%206.57l-5.48%205.965v.871ZM.688%2016.844h20.625v1.375H.688Zm0%200%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23aaa%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3Cpath%20fill%3D%22red%22%20d%3D%22m14%205%201%201-9%209-1-1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23e58978%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23e54e33%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-waiting .maplibregl-ctrl-icon{animation:maplibregl-spin 2s linear infinite}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23999%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3Cpath%20fill%3D%22red%22%20d%3D%22m14%205%201%201-9%209-1-1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23e58978%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23e54e33%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23666%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3Cpath%20fill%3D%22red%22%20d%3D%22m14%205%201%201-9%209-1-1z%22%2F%3E%3C%2Fsvg%3E")}}@keyframes maplibregl-spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}a.maplibregl-ctrl-logo{width:88px;height:23px;margin:0 0 -4px -4px;display:block;background-repeat:no-repeat;cursor:pointer;overflow:hidden;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2288%22%20height%3D%2223%22%20fill%3D%22none%22%3E%3Cpath%20fill%3D%22%23000%22%20fill-opacity%3D%22.4%22%20fill-rule%3D%22evenodd%22%20d%3D%22M17.408%2016.796h-1.827l2.501-12.095h.198l3.324%206.533.988%202.19.988-2.19%203.258-6.533h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.929%205.644h-.098l-2.914-5.644-.757-1.71-.345%201.71zm1.958-3.42-.726%203.663a1.255%201.255%200%200%201-1.232%201.011h-1.827a1.255%201.255%200%200%201-1.229-1.509l2.501-12.095a1.255%201.255%200%200%201%201.23-1.001h.197a1.25%201.25%200%200%201%201.12.685l3.19%206.273%203.125-6.263a1.25%201.25%200%200%201%201.123-.695h.181a1.255%201.255%200%200%201%201.227.991l1.443%206.71a5%205%200%200%201%20.314-.787l.009-.016a4.6%204.6%200%200%201%201.777-1.887c.782-.46%201.668-.667%202.611-.667a4.6%204.6%200%200%201%201.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255%201.255%200%200%201%201.212.925%201.255%201.255%200%200%201%201.212-.925h1.711c.284%200%20.545.094.755.252.613-.3%201.312-.45%202.075-.45%201.356%200%202.557.445%203.482%201.4q.47.48.763%201.064V4.701a1.255%201.255%200%200%201%201.255-1.255h1.86A1.255%201.255%200%200%201%2054.44%204.7v9.194h2.217c.19%200%20.37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42%202.42%200%200%201-.682-1.71c0-.665.267-1.253.735-1.7a2.45%202.45%200%200%201%201.722-.674%202.43%202.43%200%200%201%201.705.675q.318.302.504.683V4.7a1.255%201.255%200%200%201%201.255-1.255h1.744A1.255%201.255%200%200%201%2065.812%204.7v3.335a4.8%204.8%200%200%201%201.526-.246c.938%200%201.817.214%202.59.69a4.47%204.47%200%200%201%201.67%201.743v-.98a1.255%201.255%200%200%201%201.256-1.256h1.777c.233%200%20.451.064.639.174a3.4%203.4%200%200%201%201.567-.372c.346%200%20.861.02%201.285.232a1.25%201.25%200%200%201%20.689%201.004%204.7%204.7%200%200%201%20.853-.588c.795-.44%201.675-.647%202.61-.647%201.385%200%202.65.39%203.525%201.396.836.938%201.168%202.173%201.168%203.528q-.001.515-.056%201.051a1.255%201.255%200%200%201-.947%201.09l.408.952a1.255%201.255%200%200%201-.477%201.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06%200-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8%205.8%200%200%201-.548-2.512q0-.429.053-.843a1.3%201.3%200%200%201-.333-.086l-.166-.004c-.223%200-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255%201.255%200%200%201-1.256%201.256h-1.777a1.255%201.255%200%200%201-1.256-1.256V15.69l-.032.057a4.8%204.8%200%200%201-1.86%201.833%205.04%205.04%200%200%201-2.484.634%204.5%204.5%200%200%201-1.935-.424%201.25%201.25%200%200%201-.764.258h-1.71a1.255%201.255%200%200%201-1.256-1.255V7.687a2.4%202.4%200%200%201-.428.625c.253.23.412.561.412.93v7.553a1.255%201.255%200%200%201-1.256%201.255h-1.843a1.25%201.25%200%200%201-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255%201.255%200%200%201-1.256-1.255v-1.251l-.061.117a4.7%204.7%200%200%201-1.782%201.884%204.77%204.77%200%200%201-2.485.67%205.6%205.6%200%200%201-1.485-.188l.009%202.764a1.255%201.255%200%200%201-1.255%201.259h-1.729a1.255%201.255%200%200%201-1.255-1.255v-3.537a1.255%201.255%200%200%201-1.167.793h-1.679a1.25%201.25%200%200%201-.77-.263%204.5%204.5%200%200%201-1.945.429c-.885%200-1.724-.21-2.495-.632l-.017-.01a5%205%200%200%201-1.081-.836%201.255%201.255%200%200%201-1.254%201.312h-1.81a1.255%201.255%200%200%201-1.228-.99l-.782-3.625-2.044%203.939a1.25%201.25%200%200%201-1.115.676h-.098a1.25%201.25%200%200%201-1.116-.68l-2.061-3.994zM35.92%2016.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033%201.332h1.678V9.242h-1.694l-.033%201.267q-.133-.329-.526-.658l-.032-.028a3.2%203.2%200%200%200-.668-.428l-.27-.12a3.3%203.3%200%200%200-1.235-.23q-1.136-.001-1.974.493a3.36%203.36%200%200%200-1.3%201.382q-.445.89-.444%202.074%200%201.2.51%202.107a3.8%203.8%200%200%200%201.382%201.381%203.9%203.9%200%200%200%201.893.477q.795%200%201.455-.33zm-2.789-5.38q-.576.675-.575%201.762%200%201.102.559%201.794.576.675%201.645.675a2.25%202.25%200%200%200%20.934-.19%202.2%202.2%200%200%200%20.468-.29l.178-.161a2.2%202.2%200%200%200%20.397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2%202.2%200%200%200-.633-.709l-.13-.086-.047-.028a2.1%202.1%200%200%200-1.073-.285q-1.052%200-1.629.692zm2.316%202.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96%200%200%200-.353-.389.85.85%200%200%200-.464-.127c-.4%200-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945%200%20.506.122.801.27.99.097.11.266.224.68.224.303%200%20.504-.09.687-.269zm7.545%201.705a2.6%202.6%200%200%200%20.331.423q.319.33.755.548l.173.074q.65.255%201.49.255%201.02%200%201.844-.493a3.45%203.45%200%200%200%201.316-1.4q.493-.904.493-2.089%200-1.909-.988-2.913-.988-1.02-2.584-1.02-.898%200-1.575.347a3%203%200%200%200-.415.262l-.199.166a3.4%203.4%200%200%200-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296%201.119.297%201.07%200%201.645-.675.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.435%200-.835.16a2%202%200%200%200-.284.136%202%202%200%200%200-.363.254%202.2%202.2%200%200%200-.46.569l-.082.162a2.6%202.6%200%200%200-.213%201.072v.115q0%20.707.296%201.267l.135.211zm.964-.818a1.1%201.1%200%200%200%20.367.385.94.94%200%200%200%20.476.118c.423%200%20.59-.117.687-.23.159-.194.28-.478.28-.95%200-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1%201%200%200%200-.503.135l-.012.007a.86.86%200%200%200-.335.343c-.073.133-.132.324-.132.614v.115a1.4%201.4%200%200%200%20.14.66zm15.7-6.222q.347-.346.346-.856a1.05%201.05%200%200%200-.345-.79%201.18%201.18%200%200%200-.84-.329q-.51%200-.855.33a1.05%201.05%200%200%200-.346.79q0%20.51.346.855.345.346.856.346.51%200%20.839-.346zm4.337%209.314.033-1.332q.191.403.59.747l.098.081a4%204%200%200%200%20.316.224l.223.122a3.2%203.2%200%200%200%201.44.322%203.8%203.8%200%200%200%201.875-.477%203.5%203.5%200%200%200%201.382-1.366q.527-.89.526-2.09%200-1.184-.444-2.073a3.24%203.24%200%200%200-1.283-1.399q-.823-.51-1.942-.51a3.5%203.5%200%200%200-1.527.344l-.086.043-.165.09a3%203%200%200%200-.33.214q-.432.315-.656.707a2%202%200%200%200-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5%202.5%200%200%200%20.566.7q.117.098.245.18l.144.08a2.1%202.1%200%200%200%20.975.232q1.07%200%201.645-.675.576-.69.576-1.778%200-1.102-.576-1.777-.56-.691-1.645-.692a2.2%202.2%200%200%200-1.015.235q-.22.113-.415.282l-.15.142a2.1%202.1%200%200%200-.42.594q-.223.479-.223%201.1v.115q0%20.705.293%201.26zm2.616-.293c.157-.191.28-.479.28-.967%200-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87%200%200%200-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0%20.285.057.499.144.669a1.1%201.1%200%200%200%20.367.405c.137.082.28.123.455.123.423%200%20.59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493%200%20.642.099l.247-1.794q-.196-.099-.717-.099a2.3%202.3%200%200%200-.545.063%202%202%200%200%200-.411.148%202.2%202.2%200%200%200-.4.249%202.5%202.5%200%200%200-.485.499%202.7%202.7%200%200%200-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5%201.5%200%200%201%20.466-.636%202.5%202.5%200%200%201%20.399-.253%202%202%200%200%201%20.224-.099zm9.784%202.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46%203.46%200%200%200-1.4%201.382q-.493.906-.493%202.106%200%201.07.428%201.975.428.89%201.332%201.432.906.526%202.255.526.973%200%201.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954%200-1.497-.444a1.6%201.6%200%200%201-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1%201%200%200%200-.156-.176q-.46-.428-1.316-.428-.986%200-1.494.604-.379.45-.494%201.234zm-27.053%202.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z%22%2F%3E%3Cpath%20fill%3D%22%23fff%22%20d%3D%22m19.63%2011.151-.757-1.71-.345%201.71-1.12%205.644h-1.827L18.083%204.7h.197l3.325%206.533.988%202.19.988-2.19L26.839%204.7h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.93%205.644h-.098l-2.913-5.644zm14.836%205.81q-1.02%200-1.893-.478a3.8%203.8%200%200%201-1.381-1.382q-.51-.906-.51-2.106%200-1.185.444-2.074a3.36%203.36%200%200%201%201.3-1.382q.839-.494%201.974-.494a3.3%203.3%200%200%201%201.234.231%203.3%203.3%200%200%201%20.97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02%201.053a3.17%203.17%200%200%201-1.662.444zm.296-1.482q.938%200%201.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2%202.2%200%200%200-.807-.872%202.1%202.1%200%200%200-1.119-.313q-1.053%200-1.629.692-.575.675-.575%201.76%200%201.103.559%201.795.577.675%201.645.675zm6.521-6.237h1.711v1.4q.906-1.597%202.83-1.597%201.596%200%202.584%201.02.988%201.005.988%202.914%200%201.185-.493%202.09a3.46%203.46%200%200%201-1.316%201.399%203.5%203.5%200%200%201-1.844.493q-.954%200-1.662-.329a2.67%202.67%200%200%201-1.086-.97l.017%205.134h-1.728zm4.048%206.22q1.07%200%201.645-.674.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.592%200-1.12.296-.51.28-.822.823-.296.527-.296%201.234v.115q0%20.708.296%201.267.313.543.823.855.51.296%201.119.297z%22%2F%3E%3Cpath%20fill%3D%22%23e1e3e9%22%20d%3D%22M51.325%204.7h1.86v10.45h3.473v1.646h-5.333zm7.12%204.542h1.843v7.553h-1.843zm.905-1.415a1.16%201.16%200%200%201-.856-.346%201.17%201.17%200%200%201-.346-.856%201.05%201.05%200%200%201%20.346-.79q.346-.329.856-.329.494%200%20.839.33a1.05%201.05%200%200%201%20.345.79%201.16%201.16%200%200%201-.345.855q-.33.346-.84.346zm7.875%209.133a3.17%203.17%200%200%201-1.662-.444q-.723-.46-1.004-1.053l-.033%201.332h-1.71V4.701h1.743v4.657l-.082%201.283q.279-.658%201.086-1.119a3.5%203.5%200%200%201%201.778-.477q1.119%200%201.942.51a3.24%203.24%200%200%201%201.283%201.4q.445.888.444%202.072%200%201.201-.526%202.09a3.5%203.5%200%200%201-1.382%201.366%203.8%203.8%200%200%201-1.876.477zm-.296-1.481q1.069%200%201.645-.675.577-.69.577-1.778%200-1.102-.577-1.776-.56-.691-1.645-.692a2.12%202.12%200%200%200-1.58.659q-.642.641-.642%201.694v.115q0%20.71.296%201.267a2.4%202.4%200%200%200%20.807.872%202.1%202.1%200%200%200%201.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14%202.14%200%200%201%201.349-.46q.527%200%20.724.098l-.247%201.794q-.149-.099-.642-.099-.774%200-1.416.494-.626.493-.626%201.58v3.883h-1.777V9.242zm9.534%207.718q-1.35%200-2.255-.526-.904-.543-1.332-1.432a4.6%204.6%200%200%201-.428-1.975q0-1.2.493-2.106a3.46%203.46%200%200%201%201.4-1.382q.889-.495%202.007-.494%201.744%200%202.584.97.855.956.856%202.7%200%20.444-.05.92h-5.43q.18%201.005.708%201.45.542.443%201.497.443.79%200%201.3-.131a4%204%200%200%200%20.938-.362l.542%201.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728%200-1.991%201.86z%22%2F%3E%3Cpath%20d%3D%22M5.074%2015.948a.484.657%200%200%200-.486.659v1.84a.484.657%200%200%200%20.486.659h4.101a.484.657%200%200%200%20.486-.659v-1.84a.484.657%200%200%200-.486-.659zm3.56%201.16H5.617v.838h3.017z%22%20style%3D%22fill%3A%23fff%3Bfill-rule%3Aevenodd%3Bstroke-width%3A1.03600001%22%2F%3E%3Cg%20style%3D%22stroke-width%3A1.12603545%22%3E%3Cpath%20d%3D%22M-9.408-1.416c-3.833-.025-7.056%202.912-7.08%206.615-.02%203.08%201.653%204.832%203.107%206.268.903.892%201.721%201.74%202.32%202.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87%201.87%200%200%200-.362%201.121l-.011%201.877c-.003.402.104.787.347%201.125.244.338.688.653%201.23.656l4.142.028c.542.003.99-.306%201.238-.641a1.87%201.87%200%200%200%20.363-1.121l.012-1.875a1.87%201.87%200%200%200-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145%201.425-1.983%202.348-2.87%201.473-1.414%203.18-3.149%203.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006%201.1v.002c3.274.02%205.92%202.532%205.9%205.6-.017%202.706-1.39%204.026-2.863%205.44-1.034.994-2.118%202.033-2.814%203.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34%200%200%201-.226.084.34.34%200%200%201-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067%202.7-5.545%205.975-5.523m-.02%202.826c-1.62-.01-2.944%201.315-2.955%202.96-.01%201.646%201.295%202.988%202.916%202.999h.002c1.621.01%202.943-1.316%202.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005%201.1c1.017.006%201.829.83%201.822%201.89s-.83%201.874-1.848%201.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874%201.848-1.868m-2.155%2011.857%204.14.025c.271.002.49.305.487.676l-.013%201.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668%22%20style%3D%22color%3A%23000%3Bfont-style%3Anormal%3Bfont-variant%3Anormal%3Bfont-weight%3A400%3Bfont-stretch%3Anormal%3Bfont-size%3Amedium%3Bline-height%3Anormal%3Bfont-family%3Asans-serif%3Bfont-variant-ligatures%3Anormal%3Bfont-variant-position%3Anormal%3Bfont-variant-caps%3Anormal%3Bfont-variant-numeric%3Anormal%3Bfont-variant-alternates%3Anormal%3Bfont-feature-settings%3Anormal%3Btext-indent%3A0%3Btext-align%3Astart%3Btext-decoration%3Anone%3Btext-decoration-line%3Anone%3Btext-decoration-style%3Asolid%3Btext-decoration-color%3A%23000%3Bletter-spacing%3Anormal%3Bword-spacing%3Anormal%3Btext-transform%3Anone%3Bwriting-mode%3Alr-tb%3Bdirection%3Altr%3Btext-orientation%3Amixed%3Bdominant-baseline%3Aauto%3Bbaseline-shift%3Abaseline%3Btext-anchor%3Astart%3Bwhite-space%3Anormal%3Bshape-padding%3A0%3Bclip-rule%3Aevenodd%3Bdisplay%3Ainline%3Boverflow%3Avisible%3Bvisibility%3Avisible%3Bopacity%3A1%3Bisolation%3Aauto%3Bmix-blend-mode%3Anormal%3Bcolor-interpolation%3AsRGB%3Bcolor-interpolation-filters%3AlinearRGB%3Bsolid-color%3A%23000%3Bsolid-opacity%3A1%3Bvector-effect%3Anone%3Bfill%3A%23000%3Bfill-opacity%3A.4%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-linecap%3Abutt%3Bstroke-linejoin%3Amiter%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-dashoffset%3A0%3Bstroke-opacity%3A1%3Bcolor-rendering%3Aauto%3Bimage-rendering%3Aauto%3Bshape-rendering%3Aauto%3Btext-rendering%3Aauto%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-9.415-.316C-12.69-.338-15.37%202.14-15.39%205.207c-.017%202.716%201.326%204.041%202.78%205.477%201.013%201%202.081%202.055%202.78%203.67l.092.076a.34.34%200%200%200%20.225.086.34.34%200%200%200%20.227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6%201.78-2.64%202.814-3.634%201.473-1.414%202.847-2.733%202.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057%208.784c1.621.011%202.944-1.315%202.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945%201.315-2.955%202.96s1.295%202.989%202.916%203%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23e1e3e9%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-11.594%2015.465c-.27-.002-.492.297-.494.668l-.012%201.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23fff%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E")}a.maplibregl-ctrl-logo.maplibregl-compact{width:14px}@media (forced-colors:active){a.maplibregl-ctrl-logo{background-color:transparent;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2288%22%20height%3D%2223%22%20fill%3D%22none%22%3E%3Cpath%20fill%3D%22%23000%22%20fill-opacity%3D%22.4%22%20fill-rule%3D%22evenodd%22%20d%3D%22M17.408%2016.796h-1.827l2.501-12.095h.198l3.324%206.533.988%202.19.988-2.19%203.258-6.533h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.929%205.644h-.098l-2.914-5.644-.757-1.71-.345%201.71zm1.958-3.42-.726%203.663a1.255%201.255%200%200%201-1.232%201.011h-1.827a1.255%201.255%200%200%201-1.229-1.509l2.501-12.095a1.255%201.255%200%200%201%201.23-1.001h.197a1.25%201.25%200%200%201%201.12.685l3.19%206.273%203.125-6.263a1.25%201.25%200%200%201%201.123-.695h.181a1.255%201.255%200%200%201%201.227.991l1.443%206.71a5%205%200%200%201%20.314-.787l.009-.016a4.6%204.6%200%200%201%201.777-1.887c.782-.46%201.668-.667%202.611-.667a4.6%204.6%200%200%201%201.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255%201.255%200%200%201%201.212.925%201.255%201.255%200%200%201%201.212-.925h1.711c.284%200%20.545.094.755.252.613-.3%201.312-.45%202.075-.45%201.356%200%202.557.445%203.482%201.4q.47.48.763%201.064V4.701a1.255%201.255%200%200%201%201.255-1.255h1.86A1.255%201.255%200%200%201%2054.44%204.7v9.194h2.217c.19%200%20.37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42%202.42%200%200%201-.682-1.71c0-.665.267-1.253.735-1.7a2.45%202.45%200%200%201%201.722-.674%202.43%202.43%200%200%201%201.705.675q.318.302.504.683V4.7a1.255%201.255%200%200%201%201.255-1.255h1.744A1.255%201.255%200%200%201%2065.812%204.7v3.335a4.8%204.8%200%200%201%201.526-.246c.938%200%201.817.214%202.59.69a4.47%204.47%200%200%201%201.67%201.743v-.98a1.255%201.255%200%200%201%201.256-1.256h1.777c.233%200%20.451.064.639.174a3.4%203.4%200%200%201%201.567-.372c.346%200%20.861.02%201.285.232a1.25%201.25%200%200%201%20.689%201.004%204.7%204.7%200%200%201%20.853-.588c.795-.44%201.675-.647%202.61-.647%201.385%200%202.65.39%203.525%201.396.836.938%201.168%202.173%201.168%203.528q-.001.515-.056%201.051a1.255%201.255%200%200%201-.947%201.09l.408.952a1.255%201.255%200%200%201-.477%201.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06%200-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8%205.8%200%200%201-.548-2.512q0-.429.053-.843a1.3%201.3%200%200%201-.333-.086l-.166-.004c-.223%200-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255%201.255%200%200%201-1.256%201.256h-1.777a1.255%201.255%200%200%201-1.256-1.256V15.69l-.032.057a4.8%204.8%200%200%201-1.86%201.833%205.04%205.04%200%200%201-2.484.634%204.5%204.5%200%200%201-1.935-.424%201.25%201.25%200%200%201-.764.258h-1.71a1.255%201.255%200%200%201-1.256-1.255V7.687a2.4%202.4%200%200%201-.428.625c.253.23.412.561.412.93v7.553a1.255%201.255%200%200%201-1.256%201.255h-1.843a1.25%201.25%200%200%201-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255%201.255%200%200%201-1.256-1.255v-1.251l-.061.117a4.7%204.7%200%200%201-1.782%201.884%204.77%204.77%200%200%201-2.485.67%205.6%205.6%200%200%201-1.485-.188l.009%202.764a1.255%201.255%200%200%201-1.255%201.259h-1.729a1.255%201.255%200%200%201-1.255-1.255v-3.537a1.255%201.255%200%200%201-1.167.793h-1.679a1.25%201.25%200%200%201-.77-.263%204.5%204.5%200%200%201-1.945.429c-.885%200-1.724-.21-2.495-.632l-.017-.01a5%205%200%200%201-1.081-.836%201.255%201.255%200%200%201-1.254%201.312h-1.81a1.255%201.255%200%200%201-1.228-.99l-.782-3.625-2.044%203.939a1.25%201.25%200%200%201-1.115.676h-.098a1.25%201.25%200%200%201-1.116-.68l-2.061-3.994zM35.92%2016.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033%201.332h1.678V9.242h-1.694l-.033%201.267q-.133-.329-.526-.658l-.032-.028a3.2%203.2%200%200%200-.668-.428l-.27-.12a3.3%203.3%200%200%200-1.235-.23q-1.136-.001-1.974.493a3.36%203.36%200%200%200-1.3%201.382q-.445.89-.444%202.074%200%201.2.51%202.107a3.8%203.8%200%200%200%201.382%201.381%203.9%203.9%200%200%200%201.893.477q.795%200%201.455-.33zm-2.789-5.38q-.576.675-.575%201.762%200%201.102.559%201.794.576.675%201.645.675a2.25%202.25%200%200%200%20.934-.19%202.2%202.2%200%200%200%20.468-.29l.178-.161a2.2%202.2%200%200%200%20.397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2%202.2%200%200%200-.633-.709l-.13-.086-.047-.028a2.1%202.1%200%200%200-1.073-.285q-1.052%200-1.629.692zm2.316%202.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96%200%200%200-.353-.389.85.85%200%200%200-.464-.127c-.4%200-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945%200%20.506.122.801.27.99.097.11.266.224.68.224.303%200%20.504-.09.687-.269zm7.545%201.705a2.6%202.6%200%200%200%20.331.423q.319.33.755.548l.173.074q.65.255%201.49.255%201.02%200%201.844-.493a3.45%203.45%200%200%200%201.316-1.4q.493-.904.493-2.089%200-1.909-.988-2.913-.988-1.02-2.584-1.02-.898%200-1.575.347a3%203%200%200%200-.415.262l-.199.166a3.4%203.4%200%200%200-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296%201.119.297%201.07%200%201.645-.675.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.435%200-.835.16a2%202%200%200%200-.284.136%202%202%200%200%200-.363.254%202.2%202.2%200%200%200-.46.569l-.082.162a2.6%202.6%200%200%200-.213%201.072v.115q0%20.707.296%201.267l.135.211zm.964-.818a1.1%201.1%200%200%200%20.367.385.94.94%200%200%200%20.476.118c.423%200%20.59-.117.687-.23.159-.194.28-.478.28-.95%200-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1%201%200%200%200-.503.135l-.012.007a.86.86%200%200%200-.335.343c-.073.133-.132.324-.132.614v.115a1.4%201.4%200%200%200%20.14.66zm15.7-6.222q.347-.346.346-.856a1.05%201.05%200%200%200-.345-.79%201.18%201.18%200%200%200-.84-.329q-.51%200-.855.33a1.05%201.05%200%200%200-.346.79q0%20.51.346.855.345.346.856.346.51%200%20.839-.346zm4.337%209.314.033-1.332q.191.403.59.747l.098.081a4%204%200%200%200%20.316.224l.223.122a3.2%203.2%200%200%200%201.44.322%203.8%203.8%200%200%200%201.875-.477%203.5%203.5%200%200%200%201.382-1.366q.527-.89.526-2.09%200-1.184-.444-2.073a3.24%203.24%200%200%200-1.283-1.399q-.823-.51-1.942-.51a3.5%203.5%200%200%200-1.527.344l-.086.043-.165.09a3%203%200%200%200-.33.214q-.432.315-.656.707a2%202%200%200%200-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5%202.5%200%200%200%20.566.7q.117.098.245.18l.144.08a2.1%202.1%200%200%200%20.975.232q1.07%200%201.645-.675.576-.69.576-1.778%200-1.102-.576-1.777-.56-.691-1.645-.692a2.2%202.2%200%200%200-1.015.235q-.22.113-.415.282l-.15.142a2.1%202.1%200%200%200-.42.594q-.223.479-.223%201.1v.115q0%20.705.293%201.26zm2.616-.293c.157-.191.28-.479.28-.967%200-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87%200%200%200-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0%20.285.057.499.144.669a1.1%201.1%200%200%200%20.367.405c.137.082.28.123.455.123.423%200%20.59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493%200%20.642.099l.247-1.794q-.196-.099-.717-.099a2.3%202.3%200%200%200-.545.063%202%202%200%200%200-.411.148%202.2%202.2%200%200%200-.4.249%202.5%202.5%200%200%200-.485.499%202.7%202.7%200%200%200-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5%201.5%200%200%201%20.466-.636%202.5%202.5%200%200%201%20.399-.253%202%202%200%200%201%20.224-.099zm9.784%202.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46%203.46%200%200%200-1.4%201.382q-.493.906-.493%202.106%200%201.07.428%201.975.428.89%201.332%201.432.906.526%202.255.526.973%200%201.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954%200-1.497-.444a1.6%201.6%200%200%201-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1%201%200%200%200-.156-.176q-.46-.428-1.316-.428-.986%200-1.494.604-.379.45-.494%201.234zm-27.053%202.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z%22%2F%3E%3Cpath%20fill%3D%22%23fff%22%20d%3D%22m19.63%2011.151-.757-1.71-.345%201.71-1.12%205.644h-1.827L18.083%204.7h.197l3.325%206.533.988%202.19.988-2.19L26.839%204.7h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.93%205.644h-.098l-2.913-5.644zm14.836%205.81q-1.02%200-1.893-.478a3.8%203.8%200%200%201-1.381-1.382q-.51-.906-.51-2.106%200-1.185.444-2.074a3.36%203.36%200%200%201%201.3-1.382q.839-.494%201.974-.494a3.3%203.3%200%200%201%201.234.231%203.3%203.3%200%200%201%20.97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02%201.053a3.17%203.17%200%200%201-1.662.444zm.296-1.482q.938%200%201.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2%202.2%200%200%200-.807-.872%202.1%202.1%200%200%200-1.119-.313q-1.053%200-1.629.692-.575.675-.575%201.76%200%201.103.559%201.795.577.675%201.645.675zm6.521-6.237h1.711v1.4q.906-1.597%202.83-1.597%201.596%200%202.584%201.02.988%201.005.988%202.914%200%201.185-.493%202.09a3.46%203.46%200%200%201-1.316%201.399%203.5%203.5%200%200%201-1.844.493q-.954%200-1.662-.329a2.67%202.67%200%200%201-1.086-.97l.017%205.134h-1.728zm4.048%206.22q1.07%200%201.645-.674.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.592%200-1.12.296-.51.28-.822.823-.296.527-.296%201.234v.115q0%20.708.296%201.267.313.543.823.855.51.296%201.119.297z%22%2F%3E%3Cpath%20fill%3D%22%23e1e3e9%22%20d%3D%22M51.325%204.7h1.86v10.45h3.473v1.646h-5.333zm7.12%204.542h1.843v7.553h-1.843zm.905-1.415a1.16%201.16%200%200%201-.856-.346%201.17%201.17%200%200%201-.346-.856%201.05%201.05%200%200%201%20.346-.79q.346-.329.856-.329.494%200%20.839.33a1.05%201.05%200%200%201%20.345.79%201.16%201.16%200%200%201-.345.855q-.33.346-.84.346zm7.875%209.133a3.17%203.17%200%200%201-1.662-.444q-.723-.46-1.004-1.053l-.033%201.332h-1.71V4.701h1.743v4.657l-.082%201.283q.279-.658%201.086-1.119a3.5%203.5%200%200%201%201.778-.477q1.119%200%201.942.51a3.24%203.24%200%200%201%201.283%201.4q.445.888.444%202.072%200%201.201-.526%202.09a3.5%203.5%200%200%201-1.382%201.366%203.8%203.8%200%200%201-1.876.477zm-.296-1.481q1.069%200%201.645-.675.577-.69.577-1.778%200-1.102-.577-1.776-.56-.691-1.645-.692a2.12%202.12%200%200%200-1.58.659q-.642.641-.642%201.694v.115q0%20.71.296%201.267a2.4%202.4%200%200%200%20.807.872%202.1%202.1%200%200%200%201.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14%202.14%200%200%201%201.349-.46q.527%200%20.724.098l-.247%201.794q-.149-.099-.642-.099-.774%200-1.416.494-.626.493-.626%201.58v3.883h-1.777V9.242zm9.534%207.718q-1.35%200-2.255-.526-.904-.543-1.332-1.432a4.6%204.6%200%200%201-.428-1.975q0-1.2.493-2.106a3.46%203.46%200%200%201%201.4-1.382q.889-.495%202.007-.494%201.744%200%202.584.97.855.956.856%202.7%200%20.444-.05.92h-5.43q.18%201.005.708%201.45.542.443%201.497.443.79%200%201.3-.131a4%204%200%200%200%20.938-.362l.542%201.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728%200-1.991%201.86z%22%2F%3E%3Cpath%20d%3D%22M5.074%2015.948a.484.657%200%200%200-.486.659v1.84a.484.657%200%200%200%20.486.659h4.101a.484.657%200%200%200%20.486-.659v-1.84a.484.657%200%200%200-.486-.659zm3.56%201.16H5.617v.838h3.017z%22%20style%3D%22fill%3A%23fff%3Bfill-rule%3Aevenodd%3Bstroke-width%3A1.03600001%22%2F%3E%3Cg%20style%3D%22stroke-width%3A1.12603545%22%3E%3Cpath%20d%3D%22M-9.408-1.416c-3.833-.025-7.056%202.912-7.08%206.615-.02%203.08%201.653%204.832%203.107%206.268.903.892%201.721%201.74%202.32%202.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87%201.87%200%200%200-.362%201.121l-.011%201.877c-.003.402.104.787.347%201.125.244.338.688.653%201.23.656l4.142.028c.542.003.99-.306%201.238-.641a1.87%201.87%200%200%200%20.363-1.121l.012-1.875a1.87%201.87%200%200%200-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145%201.425-1.983%202.348-2.87%201.473-1.414%203.18-3.149%203.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006%201.1v.002c3.274.02%205.92%202.532%205.9%205.6-.017%202.706-1.39%204.026-2.863%205.44-1.034.994-2.118%202.033-2.814%203.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34%200%200%201-.226.084.34.34%200%200%201-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067%202.7-5.545%205.975-5.523m-.02%202.826c-1.62-.01-2.944%201.315-2.955%202.96-.01%201.646%201.295%202.988%202.916%202.999h.002c1.621.01%202.943-1.316%202.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005%201.1c1.017.006%201.829.83%201.822%201.89s-.83%201.874-1.848%201.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874%201.848-1.868m-2.155%2011.857%204.14.025c.271.002.49.305.487.676l-.013%201.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668%22%20style%3D%22color%3A%23000%3Bfont-style%3Anormal%3Bfont-variant%3Anormal%3Bfont-weight%3A400%3Bfont-stretch%3Anormal%3Bfont-size%3Amedium%3Bline-height%3Anormal%3Bfont-family%3Asans-serif%3Bfont-variant-ligatures%3Anormal%3Bfont-variant-position%3Anormal%3Bfont-variant-caps%3Anormal%3Bfont-variant-numeric%3Anormal%3Bfont-variant-alternates%3Anormal%3Bfont-feature-settings%3Anormal%3Btext-indent%3A0%3Btext-align%3Astart%3Btext-decoration%3Anone%3Btext-decoration-line%3Anone%3Btext-decoration-style%3Asolid%3Btext-decoration-color%3A%23000%3Bletter-spacing%3Anormal%3Bword-spacing%3Anormal%3Btext-transform%3Anone%3Bwriting-mode%3Alr-tb%3Bdirection%3Altr%3Btext-orientation%3Amixed%3Bdominant-baseline%3Aauto%3Bbaseline-shift%3Abaseline%3Btext-anchor%3Astart%3Bwhite-space%3Anormal%3Bshape-padding%3A0%3Bclip-rule%3Aevenodd%3Bdisplay%3Ainline%3Boverflow%3Avisible%3Bvisibility%3Avisible%3Bopacity%3A1%3Bisolation%3Aauto%3Bmix-blend-mode%3Anormal%3Bcolor-interpolation%3AsRGB%3Bcolor-interpolation-filters%3AlinearRGB%3Bsolid-color%3A%23000%3Bsolid-opacity%3A1%3Bvector-effect%3Anone%3Bfill%3A%23000%3Bfill-opacity%3A.4%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-linecap%3Abutt%3Bstroke-linejoin%3Amiter%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-dashoffset%3A0%3Bstroke-opacity%3A1%3Bcolor-rendering%3Aauto%3Bimage-rendering%3Aauto%3Bshape-rendering%3Aauto%3Btext-rendering%3Aauto%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-9.415-.316C-12.69-.338-15.37%202.14-15.39%205.207c-.017%202.716%201.326%204.041%202.78%205.477%201.013%201%202.081%202.055%202.78%203.67l.092.076a.34.34%200%200%200%20.225.086.34.34%200%200%200%20.227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6%201.78-2.64%202.814-3.634%201.473-1.414%202.847-2.733%202.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057%208.784c1.621.011%202.944-1.315%202.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945%201.315-2.955%202.96s1.295%202.989%202.916%203%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23e1e3e9%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-11.594%2015.465c-.27-.002-.492.297-.494.668l-.012%201.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23fff%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){a.maplibregl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2288%22%20height%3D%2223%22%20fill%3D%22none%22%3E%3Cpath%20fill%3D%22%23000%22%20fill-opacity%3D%22.4%22%20fill-rule%3D%22evenodd%22%20d%3D%22M17.408%2016.796h-1.827l2.501-12.095h.198l3.324%206.533.988%202.19.988-2.19%203.258-6.533h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.929%205.644h-.098l-2.914-5.644-.757-1.71-.345%201.71zm1.958-3.42-.726%203.663a1.255%201.255%200%200%201-1.232%201.011h-1.827a1.255%201.255%200%200%201-1.229-1.509l2.501-12.095a1.255%201.255%200%200%201%201.23-1.001h.197a1.25%201.25%200%200%201%201.12.685l3.19%206.273%203.125-6.263a1.25%201.25%200%200%201%201.123-.695h.181a1.255%201.255%200%200%201%201.227.991l1.443%206.71a5%205%200%200%201%20.314-.787l.009-.016a4.6%204.6%200%200%201%201.777-1.887c.782-.46%201.668-.667%202.611-.667a4.6%204.6%200%200%201%201.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255%201.255%200%200%201%201.212.925%201.255%201.255%200%200%201%201.212-.925h1.711c.284%200%20.545.094.755.252.613-.3%201.312-.45%202.075-.45%201.356%200%202.557.445%203.482%201.4q.47.48.763%201.064V4.701a1.255%201.255%200%200%201%201.255-1.255h1.86A1.255%201.255%200%200%201%2054.44%204.7v9.194h2.217c.19%200%20.37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42%202.42%200%200%201-.682-1.71c0-.665.267-1.253.735-1.7a2.45%202.45%200%200%201%201.722-.674%202.43%202.43%200%200%201%201.705.675q.318.302.504.683V4.7a1.255%201.255%200%200%201%201.255-1.255h1.744A1.255%201.255%200%200%201%2065.812%204.7v3.335a4.8%204.8%200%200%201%201.526-.246c.938%200%201.817.214%202.59.69a4.47%204.47%200%200%201%201.67%201.743v-.98a1.255%201.255%200%200%201%201.256-1.256h1.777c.233%200%20.451.064.639.174a3.4%203.4%200%200%201%201.567-.372c.346%200%20.861.02%201.285.232a1.25%201.25%200%200%201%20.689%201.004%204.7%204.7%200%200%201%20.853-.588c.795-.44%201.675-.647%202.61-.647%201.385%200%202.65.39%203.525%201.396.836.938%201.168%202.173%201.168%203.528q-.001.515-.056%201.051a1.255%201.255%200%200%201-.947%201.09l.408.952a1.255%201.255%200%200%201-.477%201.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06%200-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8%205.8%200%200%201-.548-2.512q0-.429.053-.843a1.3%201.3%200%200%201-.333-.086l-.166-.004c-.223%200-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255%201.255%200%200%201-1.256%201.256h-1.777a1.255%201.255%200%200%201-1.256-1.256V15.69l-.032.057a4.8%204.8%200%200%201-1.86%201.833%205.04%205.04%200%200%201-2.484.634%204.5%204.5%200%200%201-1.935-.424%201.25%201.25%200%200%201-.764.258h-1.71a1.255%201.255%200%200%201-1.256-1.255V7.687a2.4%202.4%200%200%201-.428.625c.253.23.412.561.412.93v7.553a1.255%201.255%200%200%201-1.256%201.255h-1.843a1.25%201.25%200%200%201-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255%201.255%200%200%201-1.256-1.255v-1.251l-.061.117a4.7%204.7%200%200%201-1.782%201.884%204.77%204.77%200%200%201-2.485.67%205.6%205.6%200%200%201-1.485-.188l.009%202.764a1.255%201.255%200%200%201-1.255%201.259h-1.729a1.255%201.255%200%200%201-1.255-1.255v-3.537a1.255%201.255%200%200%201-1.167.793h-1.679a1.25%201.25%200%200%201-.77-.263%204.5%204.5%200%200%201-1.945.429c-.885%200-1.724-.21-2.495-.632l-.017-.01a5%205%200%200%201-1.081-.836%201.255%201.255%200%200%201-1.254%201.312h-1.81a1.255%201.255%200%200%201-1.228-.99l-.782-3.625-2.044%203.939a1.25%201.25%200%200%201-1.115.676h-.098a1.25%201.25%200%200%201-1.116-.68l-2.061-3.994zM35.92%2016.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033%201.332h1.678V9.242h-1.694l-.033%201.267q-.133-.329-.526-.658l-.032-.028a3.2%203.2%200%200%200-.668-.428l-.27-.12a3.3%203.3%200%200%200-1.235-.23q-1.136-.001-1.974.493a3.36%203.36%200%200%200-1.3%201.382q-.445.89-.444%202.074%200%201.2.51%202.107a3.8%203.8%200%200%200%201.382%201.381%203.9%203.9%200%200%200%201.893.477q.795%200%201.455-.33zm-2.789-5.38q-.576.675-.575%201.762%200%201.102.559%201.794.576.675%201.645.675a2.25%202.25%200%200%200%20.934-.19%202.2%202.2%200%200%200%20.468-.29l.178-.161a2.2%202.2%200%200%200%20.397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2%202.2%200%200%200-.633-.709l-.13-.086-.047-.028a2.1%202.1%200%200%200-1.073-.285q-1.052%200-1.629.692zm2.316%202.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96%200%200%200-.353-.389.85.85%200%200%200-.464-.127c-.4%200-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945%200%20.506.122.801.27.99.097.11.266.224.68.224.303%200%20.504-.09.687-.269zm7.545%201.705a2.6%202.6%200%200%200%20.331.423q.319.33.755.548l.173.074q.65.255%201.49.255%201.02%200%201.844-.493a3.45%203.45%200%200%200%201.316-1.4q.493-.904.493-2.089%200-1.909-.988-2.913-.988-1.02-2.584-1.02-.898%200-1.575.347a3%203%200%200%200-.415.262l-.199.166a3.4%203.4%200%200%200-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296%201.119.297%201.07%200%201.645-.675.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.435%200-.835.16a2%202%200%200%200-.284.136%202%202%200%200%200-.363.254%202.2%202.2%200%200%200-.46.569l-.082.162a2.6%202.6%200%200%200-.213%201.072v.115q0%20.707.296%201.267l.135.211zm.964-.818a1.1%201.1%200%200%200%20.367.385.94.94%200%200%200%20.476.118c.423%200%20.59-.117.687-.23.159-.194.28-.478.28-.95%200-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1%201%200%200%200-.503.135l-.012.007a.86.86%200%200%200-.335.343c-.073.133-.132.324-.132.614v.115a1.4%201.4%200%200%200%20.14.66zm15.7-6.222q.347-.346.346-.856a1.05%201.05%200%200%200-.345-.79%201.18%201.18%200%200%200-.84-.329q-.51%200-.855.33a1.05%201.05%200%200%200-.346.79q0%20.51.346.855.345.346.856.346.51%200%20.839-.346zm4.337%209.314.033-1.332q.191.403.59.747l.098.081a4%204%200%200%200%20.316.224l.223.122a3.2%203.2%200%200%200%201.44.322%203.8%203.8%200%200%200%201.875-.477%203.5%203.5%200%200%200%201.382-1.366q.527-.89.526-2.09%200-1.184-.444-2.073a3.24%203.24%200%200%200-1.283-1.399q-.823-.51-1.942-.51a3.5%203.5%200%200%200-1.527.344l-.086.043-.165.09a3%203%200%200%200-.33.214q-.432.315-.656.707a2%202%200%200%200-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5%202.5%200%200%200%20.566.7q.117.098.245.18l.144.08a2.1%202.1%200%200%200%20.975.232q1.07%200%201.645-.675.576-.69.576-1.778%200-1.102-.576-1.777-.56-.691-1.645-.692a2.2%202.2%200%200%200-1.015.235q-.22.113-.415.282l-.15.142a2.1%202.1%200%200%200-.42.594q-.223.479-.223%201.1v.115q0%20.705.293%201.26zm2.616-.293c.157-.191.28-.479.28-.967%200-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87%200%200%200-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0%20.285.057.499.144.669a1.1%201.1%200%200%200%20.367.405c.137.082.28.123.455.123.423%200%20.59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493%200%20.642.099l.247-1.794q-.196-.099-.717-.099a2.3%202.3%200%200%200-.545.063%202%202%200%200%200-.411.148%202.2%202.2%200%200%200-.4.249%202.5%202.5%200%200%200-.485.499%202.7%202.7%200%200%200-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5%201.5%200%200%201%20.466-.636%202.5%202.5%200%200%201%20.399-.253%202%202%200%200%201%20.224-.099zm9.784%202.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46%203.46%200%200%200-1.4%201.382q-.493.906-.493%202.106%200%201.07.428%201.975.428.89%201.332%201.432.906.526%202.255.526.973%200%201.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954%200-1.497-.444a1.6%201.6%200%200%201-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1%201%200%200%200-.156-.176q-.46-.428-1.316-.428-.986%200-1.494.604-.379.45-.494%201.234zm-27.053%202.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z%22%2F%3E%3Cpath%20fill%3D%22%23fff%22%20d%3D%22m19.63%2011.151-.757-1.71-.345%201.71-1.12%205.644h-1.827L18.083%204.7h.197l3.325%206.533.988%202.19.988-2.19L26.839%204.7h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.93%205.644h-.098l-2.913-5.644zm14.836%205.81q-1.02%200-1.893-.478a3.8%203.8%200%200%201-1.381-1.382q-.51-.906-.51-2.106%200-1.185.444-2.074a3.36%203.36%200%200%201%201.3-1.382q.839-.494%201.974-.494a3.3%203.3%200%200%201%201.234.231%203.3%203.3%200%200%201%20.97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02%201.053a3.17%203.17%200%200%201-1.662.444zm.296-1.482q.938%200%201.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2%202.2%200%200%200-.807-.872%202.1%202.1%200%200%200-1.119-.313q-1.053%200-1.629.692-.575.675-.575%201.76%200%201.103.559%201.795.577.675%201.645.675zm6.521-6.237h1.711v1.4q.906-1.597%202.83-1.597%201.596%200%202.584%201.02.988%201.005.988%202.914%200%201.185-.493%202.09a3.46%203.46%200%200%201-1.316%201.399%203.5%203.5%200%200%201-1.844.493q-.954%200-1.662-.329a2.67%202.67%200%200%201-1.086-.97l.017%205.134h-1.728zm4.048%206.22q1.07%200%201.645-.674.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.592%200-1.12.296-.51.28-.822.823-.296.527-.296%201.234v.115q0%20.708.296%201.267.313.543.823.855.51.296%201.119.297z%22%2F%3E%3Cpath%20fill%3D%22%23e1e3e9%22%20d%3D%22M51.325%204.7h1.86v10.45h3.473v1.646h-5.333zm7.12%204.542h1.843v7.553h-1.843zm.905-1.415a1.16%201.16%200%200%201-.856-.346%201.17%201.17%200%200%201-.346-.856%201.05%201.05%200%200%201%20.346-.79q.346-.329.856-.329.494%200%20.839.33a1.05%201.05%200%200%201%20.345.79%201.16%201.16%200%200%201-.345.855q-.33.346-.84.346zm7.875%209.133a3.17%203.17%200%200%201-1.662-.444q-.723-.46-1.004-1.053l-.033%201.332h-1.71V4.701h1.743v4.657l-.082%201.283q.279-.658%201.086-1.119a3.5%203.5%200%200%201%201.778-.477q1.119%200%201.942.51a3.24%203.24%200%200%201%201.283%201.4q.445.888.444%202.072%200%201.201-.526%202.09a3.5%203.5%200%200%201-1.382%201.366%203.8%203.8%200%200%201-1.876.477zm-.296-1.481q1.069%200%201.645-.675.577-.69.577-1.778%200-1.102-.577-1.776-.56-.691-1.645-.692a2.12%202.12%200%200%200-1.58.659q-.642.641-.642%201.694v.115q0%20.71.296%201.267a2.4%202.4%200%200%200%20.807.872%202.1%202.1%200%200%200%201.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14%202.14%200%200%201%201.349-.46q.527%200%20.724.098l-.247%201.794q-.149-.099-.642-.099-.774%200-1.416.494-.626.493-.626%201.58v3.883h-1.777V9.242zm9.534%207.718q-1.35%200-2.255-.526-.904-.543-1.332-1.432a4.6%204.6%200%200%201-.428-1.975q0-1.2.493-2.106a3.46%203.46%200%200%201%201.4-1.382q.889-.495%202.007-.494%201.744%200%202.584.97.855.956.856%202.7%200%20.444-.05.92h-5.43q.18%201.005.708%201.45.542.443%201.497.443.79%200%201.3-.131a4%204%200%200%200%20.938-.362l.542%201.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728%200-1.991%201.86z%22%2F%3E%3Cpath%20d%3D%22M5.074%2015.948a.484.657%200%200%200-.486.659v1.84a.484.657%200%200%200%20.486.659h4.101a.484.657%200%200%200%20.486-.659v-1.84a.484.657%200%200%200-.486-.659zm3.56%201.16H5.617v.838h3.017z%22%20style%3D%22fill%3A%23fff%3Bfill-rule%3Aevenodd%3Bstroke-width%3A1.03600001%22%2F%3E%3Cg%20style%3D%22stroke-width%3A1.12603545%22%3E%3Cpath%20d%3D%22M-9.408-1.416c-3.833-.025-7.056%202.912-7.08%206.615-.02%203.08%201.653%204.832%203.107%206.268.903.892%201.721%201.74%202.32%202.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87%201.87%200%200%200-.362%201.121l-.011%201.877c-.003.402.104.787.347%201.125.244.338.688.653%201.23.656l4.142.028c.542.003.99-.306%201.238-.641a1.87%201.87%200%200%200%20.363-1.121l.012-1.875a1.87%201.87%200%200%200-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145%201.425-1.983%202.348-2.87%201.473-1.414%203.18-3.149%203.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006%201.1v.002c3.274.02%205.92%202.532%205.9%205.6-.017%202.706-1.39%204.026-2.863%205.44-1.034.994-2.118%202.033-2.814%203.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34%200%200%201-.226.084.34.34%200%200%201-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067%202.7-5.545%205.975-5.523m-.02%202.826c-1.62-.01-2.944%201.315-2.955%202.96-.01%201.646%201.295%202.988%202.916%202.999h.002c1.621.01%202.943-1.316%202.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005%201.1c1.017.006%201.829.83%201.822%201.89s-.83%201.874-1.848%201.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874%201.848-1.868m-2.155%2011.857%204.14.025c.271.002.49.305.487.676l-.013%201.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668%22%20style%3D%22color%3A%23000%3Bfont-style%3Anormal%3Bfont-variant%3Anormal%3Bfont-weight%3A400%3Bfont-stretch%3Anormal%3Bfont-size%3Amedium%3Bline-height%3Anormal%3Bfont-family%3Asans-serif%3Bfont-variant-ligatures%3Anormal%3Bfont-variant-position%3Anormal%3Bfont-variant-caps%3Anormal%3Bfont-variant-numeric%3Anormal%3Bfont-variant-alternates%3Anormal%3Bfont-feature-settings%3Anormal%3Btext-indent%3A0%3Btext-align%3Astart%3Btext-decoration%3Anone%3Btext-decoration-line%3Anone%3Btext-decoration-style%3Asolid%3Btext-decoration-color%3A%23000%3Bletter-spacing%3Anormal%3Bword-spacing%3Anormal%3Btext-transform%3Anone%3Bwriting-mode%3Alr-tb%3Bdirection%3Altr%3Btext-orientation%3Amixed%3Bdominant-baseline%3Aauto%3Bbaseline-shift%3Abaseline%3Btext-anchor%3Astart%3Bwhite-space%3Anormal%3Bshape-padding%3A0%3Bclip-rule%3Aevenodd%3Bdisplay%3Ainline%3Boverflow%3Avisible%3Bvisibility%3Avisible%3Bopacity%3A1%3Bisolation%3Aauto%3Bmix-blend-mode%3Anormal%3Bcolor-interpolation%3AsRGB%3Bcolor-interpolation-filters%3AlinearRGB%3Bsolid-color%3A%23000%3Bsolid-opacity%3A1%3Bvector-effect%3Anone%3Bfill%3A%23000%3Bfill-opacity%3A.4%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-linecap%3Abutt%3Bstroke-linejoin%3Amiter%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-dashoffset%3A0%3Bstroke-opacity%3A1%3Bcolor-rendering%3Aauto%3Bimage-rendering%3Aauto%3Bshape-rendering%3Aauto%3Btext-rendering%3Aauto%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-9.415-.316C-12.69-.338-15.37%202.14-15.39%205.207c-.017%202.716%201.326%204.041%202.78%205.477%201.013%201%202.081%202.055%202.78%203.67l.092.076a.34.34%200%200%200%20.225.086.34.34%200%200%200%20.227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6%201.78-2.64%202.814-3.634%201.473-1.414%202.847-2.733%202.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057%208.784c1.621.011%202.944-1.315%202.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945%201.315-2.955%202.96s1.295%202.989%202.916%203%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23e1e3e9%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-11.594%2015.465c-.27-.002-.492.297-.494.668l-.012%201.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23fff%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl.maplibregl-ctrl-attrib{padding:0 5px;background-color:hsla(0,0%,100%,.5);margin:0}@media screen{.maplibregl-ctrl-attrib.maplibregl-compact{min-height:20px;padding:2px 24px 2px 0;margin:10px;position:relative;background-color:#fff;color:#000;border-radius:12px;box-sizing:content-box}.maplibregl-ctrl-attrib.maplibregl-compact-show{padding:2px 28px 2px 8px;visibility:visible}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact-show,.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact-show{padding:2px 8px 2px 28px;border-radius:12px}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-inner{display:none}.maplibregl-ctrl-attrib-button{display:none;cursor:pointer;position:absolute;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20fill-rule%3D%22evenodd%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M4%2010a6%206%200%201%200%2012%200%206%206%200%201%200-12%200m5-3a1%201%200%201%200%202%200%201%201%200%201%200-2%200m0%203a1%201%200%201%201%202%200v3a1%201%200%201%201-2%200%22%2F%3E%3C%2Fsvg%3E");background-color:hsla(0,0%,100%,.5);width:24px;height:24px;box-sizing:border-box;border-radius:12px;outline:none;top:0;right:0;border:0}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;list-style:none}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button::-webkit-details-marker{display:none}.maplibregl-ctrl-bottom-left .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-top-left .maplibregl-ctrl-attrib-button{left:0}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-inner{display:block}.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-button{background-color:rgba(0,0,0,.05)}.maplibregl-ctrl-bottom-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;right:0}.maplibregl-ctrl-top-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{top:0;right:0}.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{top:0;left:0}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;left:0}}@media screen and (forced-colors:active){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22%23fff%22%20fill-rule%3D%22evenodd%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M4%2010a6%206%200%201%200%2012%200%206%206%200%201%200-12%200m5-3a1%201%200%201%200%202%200%201%201%200%201%200-2%200m0%203a1%201%200%201%201%202%200v3a1%201%200%201%201-2%200%22%2F%3E%3C%2Fsvg%3E")}}@media screen and (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20fill-rule%3D%22evenodd%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M4%2010a6%206%200%201%200%2012%200%206%206%200%201%200-12%200m5-3a1%201%200%201%200%202%200%201%201%200%201%200-2%200m0%203a1%201%200%201%201%202%200v3a1%201%200%201%201-2%200%22%2F%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl-attrib a{color:rgba(0,0,0,.75);text-decoration:none}.maplibregl-ctrl-attrib a:hover{color:inherit;text-decoration:underline}.maplibregl-attrib-empty{display:none}.maplibregl-ctrl-scale{background-color:hsla(0,0%,100%,.75);font-size:10px;white-space:nowrap;border-color:#333;border-style:none solid solid;border-width:medium 2px 2px;padding:0 5px;color:#333;box-sizing:border-box}.maplibregl-popup{position:absolute;top:0;left:0;display:flex;will-change:transform;pointer-events:none}.maplibregl-popup-anchor-top,.maplibregl-popup-anchor-top-left,.maplibregl-popup-anchor-top-right{flex-direction:column}.maplibregl-popup-anchor-bottom,.maplibregl-popup-anchor-bottom-left,.maplibregl-popup-anchor-bottom-right{flex-direction:column-reverse}.maplibregl-popup-anchor-left{flex-direction:row}.maplibregl-popup-anchor-right{flex-direction:row-reverse}.maplibregl-popup-tip{width:0;height:0;border:10px solid transparent;z-index:1}.maplibregl-popup-anchor-top .maplibregl-popup-tip{align-self:center;border-top:none;border-bottom-color:#fff}.maplibregl-popup-anchor-top-left .maplibregl-popup-tip{align-self:flex-start;border-top:none;border-left:none;border-bottom-color:#fff}.maplibregl-popup-anchor-top-right .maplibregl-popup-tip{align-self:flex-end;border-top:none;border-right:none;border-bottom-color:#fff}.maplibregl-popup-anchor-bottom .maplibregl-popup-tip{align-self:center;border-bottom:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip{align-self:flex-start;border-bottom:none;border-left:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip{align-self:flex-end;border-bottom:none;border-right:none;border-top-color:#fff}.maplibregl-popup-anchor-left .maplibregl-popup-tip{align-self:center;border-left:none;border-right-color:#fff}.maplibregl-popup-anchor-right .maplibregl-popup-tip{align-self:center;border-right:none;border-left-color:#fff}[dir=rtl] .maplibregl-popup-anchor-left{flex-direction:row-reverse}[dir=rtl] .maplibregl-popup-anchor-right{flex-direction:row}[dir=rtl] .maplibregl-popup-anchor-top-left .maplibregl-popup-tip{align-self:flex-end}[dir=rtl] .maplibregl-popup-anchor-top-right .maplibregl-popup-tip{align-self:flex-start}[dir=rtl] .maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip{align-self:flex-end}[dir=rtl] .maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip{align-self:flex-start}.maplibregl-popup-close-button{position:absolute;right:0;top:0;border:0;border-radius:0 3px 0 0;cursor:pointer;background-color:transparent}.maplibregl-popup-close-button:hover{background-color:rgba(0,0,0,.05)}.maplibregl-popup-content{position:relative;background:#fff;border-radius:3px;box-shadow:0 1px 2px rgba(0,0,0,.1);padding:15px 10px;pointer-events:auto}.maplibregl-popup-anchor-top-left .maplibregl-popup-content{border-top-left-radius:0}.maplibregl-popup-anchor-top-right .maplibregl-popup-content{border-top-right-radius:0}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-content{border-bottom-left-radius:0}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-content{border-bottom-right-radius:0}.maplibregl-popup-track-pointer{display:none}.maplibregl-popup-track-pointer *{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-map:hover .maplibregl-popup-track-pointer{display:flex}.maplibregl-map:active .maplibregl-popup-track-pointer{display:none}.maplibregl-marker{position:absolute;top:0;left:0;will-change:transform;transition:opacity .2s}.maplibregl-marker-draggable{cursor:grab}.maplibregl-user-location-dot,.maplibregl-user-location-dot:before{background-color:#1da1f2;width:15px;height:15px;border-radius:50%}.maplibregl-user-location-dot:before{content:"";position:absolute;animation:maplibregl-user-location-dot-pulse 2s infinite}.maplibregl-user-location-dot:after{border-radius:50%;border:2px solid #fff;content:"";height:19px;left:-2px;position:absolute;top:-2px;width:19px;box-sizing:border-box;box-shadow:0 0 3px rgba(0,0,0,.35)}@media (prefers-reduced-motion:reduce){.maplibregl-user-location-dot:before{animation:none}}@keyframes maplibregl-user-location-dot-pulse{0%{transform:scale(1);opacity:1}70%{transform:scale(3);opacity:0}to{transform:scale(1);opacity:0}}.maplibregl-user-location-dot-stale{background-color:#aaa}.maplibregl-user-location-dot-stale:after{display:none}.maplibregl-user-location-accuracy-circle{background-color:#1da1f233;width:1px;height:1px;border-radius:100%}.maplibregl-crosshair,.maplibregl-crosshair .maplibregl-interactive,.maplibregl-crosshair .maplibregl-interactive:active{cursor:crosshair}.maplibregl-boxzoom{position:absolute;top:0;left:0;width:0;height:0;background:#fff;border:2px dotted #202020;opacity:.5}.maplibregl-cooperative-gesture-screen{background:rgba(0,0,0,.4);position:absolute;inset:0;display:flex;justify-content:center;align-items:center;color:#fff;padding:1rem;font-size:1.4em;line-height:1.2;opacity:0;pointer-events:none;transition:opacity 1s ease 1s;z-index:99999}.maplibregl-cooperative-gesture-screen.maplibregl-show{opacity:1;transition:opacity .05s}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:none}@media (hover:none),(pointer:coarse){.maplibregl-cooperative-gesture-screen .maplibregl-desktop-message{display:none}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:block}}.maplibregl-pseudo-fullscreen{position:fixed!important;width:100%!important;height:100%!important;top:0!important;left:0!important;z-index:99999}`; document.head.appendChild(e); } @@ -23898,6 +23898,55 @@ var Plotly = (() => { var FIND_TEX = /([^$]*)([$]+[^$]*[$]+)([^$]*)/; var matchTex = (str) => str ? str.match(FIND_TEX) : null; exports.matchTex = matchTex; + var isPureTex = (str) => { + var tex = matchTex(str); + return !!tex && !tex[1] && !tex[3]; + }; + exports.isPureTex = isPureTex; + function positionMathGroup(_context, svgClass, mathjaxGroup, newSvg, textAnchor, fontSize, width0, height0) { + var g = newSvg.select("g"); + var bb = g.node().getBoundingClientRect(); + var w = bb.width; + var h = bb.height; + var w0 = width0 === void 0 ? w : width0; + var h0 = height0 === void 0 ? h : height0; + if (w > w0 || h > h0) { + newSvg.style("overflow", "hidden"); + bb = newSvg.node().getBoundingClientRect(); + w = bb.width; + h = bb.height; + } + var x = +_context.attr("x"); + var y = +_context.attr("y"); + var textHeight = fontSize || _context.node().getBoundingClientRect().height; + var dy = -textHeight / 4; + if (svgClass[0] === "y") { + mathjaxGroup.attr({ + transform: "rotate(" + [-90, x, y] + ")" + strTranslate(-w / 2, dy - h / 2) + }); + } else if (svgClass[0] === "l") { + y = dy - h / 2; + } else if (svgClass[0] === "a" && svgClass.indexOf("atitle") !== 0) { + x = 0; + y = dy; + } else { + x = x - w * (textAnchor === "middle" ? 0.5 : textAnchor === "end" ? 1 : 0); + y = y + dy - h / 2; + } + newSvg.attr({ + x, + y + }); + } + function sanitizeMathJaxLinks(newSvg) { + newSvg.selectAll("a").each(function() { + var a = d3.select(this); + ["href", "xlink:href"].forEach(function(attrName) { + var href = a.attr(attrName); + if (href) a.attr(attrName, sanitizeHref(href) || null); + }); + }); + } exports.convertToTspans = function(_context, gd, _callback) { var str = _context.text(); var tex = !_context.attr("data-notex") && gd && gd._context.typesetMath && matchTex(str); @@ -23951,6 +24000,7 @@ var Plotly = (() => { "data-math": "Y" }); mathjaxGroup.node().appendChild(newSvg.node()); + sanitizeMathJaxLinks(newSvg); if (_glyphDefs && _glyphDefs.node()) { newSvg.node().insertBefore( _glyphDefs.node().cloneNode(true), @@ -23971,36 +24021,7 @@ var Plotly = (() => { var fill = _context.node().style.fill || "black"; var g = newSvg.select("g"); g.attr({ fill, stroke: fill }); - var bb = g.node().getBoundingClientRect(); - var w = bb.width; - var h = bb.height; - if (w > w0 || h > h0) { - newSvg.style("overflow", "hidden"); - bb = newSvg.node().getBoundingClientRect(); - w = bb.width; - h = bb.height; - } - var x = +_context.attr("x"); - var y = +_context.attr("y"); - var textHeight = fontSize || _context.node().getBoundingClientRect().height; - var dy = -textHeight / 4; - if (svgClass[0] === "y") { - mathjaxGroup.attr({ - transform: "rotate(" + [-90, x, y] + ")" + strTranslate(-w / 2, dy - h / 2) - }); - } else if (svgClass[0] === "l") { - y = dy - h / 2; - } else if (svgClass[0] === "a" && svgClass.indexOf("atitle") !== 0) { - x = 0; - y = dy; - } else { - x = x - w * (textAnchor === "middle" ? 0.5 : textAnchor === "end" ? 1 : 0); - y = y + dy - h / 2; - } - newSvg.attr({ - x, - y - }); + positionMathGroup(_context, svgClass, mathjaxGroup, newSvg, textAnchor, fontSize, w0, h0); if (_callback) _callback.call(_context, mathjaxGroup); resolve(mathjaxGroup); }); @@ -24008,6 +24029,24 @@ var Plotly = (() => { } else showText(); return _context; }; + exports.repositionMathGroup = function(_context) { + if (_context.empty()) return; + var svgClass = (_context.attr("class") ? _context.attr("class").split(" ")[0] : "text") + "-math"; + var parent = d3.select(_context.node().parentNode); + var mathjaxGroup = parent.select("g." + svgClass + "-group"); + var newSvg = mathjaxGroup.select("svg." + svgClass); + if (mathjaxGroup.empty() || newSvg.empty()) return; + var textAnchor = _context.attr("text-anchor"); + var fontSize = parseInt(_context.node().style.fontSize, 10); + positionMathGroup(_context, svgClass, mathjaxGroup, newSvg, textAnchor, fontSize); + }; + exports.getMathOrTextNode = function(textSel) { + var node = textSel.node(); + if (!node) return null; + var svgClass = (textSel.attr("class") ? textSel.attr("class").split(" ")[0] : "text") + "-math"; + var mathGroup = d3.select(node.parentNode).select("g." + svgClass + "-group"); + return mathGroup.empty() ? node : mathGroup.node(); + }; var LT_MATCH = /(<|<|<)/g; var GT_MATCH = /(>|>|>)/g; function cleanEscapesForTex(s) { @@ -30773,6 +30812,10 @@ var Plotly = (() => { if (((_b = ax.minor) == null ? void 0 : _b._tick0Init) === void 0) { mockAx.tick0 = ax.tick0; } + if (ax._useTicklabelIndex) { + autoTickRound(mockAx); + ax.minor._tickround = mockAx._tickround; + } }; function isMultiple(bigger, smaller) { return Math.abs((bigger / smaller + 0.5) % 1 - 0.5) < 1e-3; @@ -30860,24 +30903,32 @@ var Plotly = (() => { function positionPeriodTicks(tickVals, ax, definedDelta) { for (var i = 0; i < tickVals.length; i++) { var v = tickVals[i].value; - var a = i; - var b = i + 1; - if (i < tickVals.length - 1) { - a = i; - b = i + 1; - } else if (i > 0) { - a = i - 1; - b = i; + var A, B; + if (tickVals[i].periodEndTick != null) { + A = tickVals[i].value; + B = tickVals[i].periodEndTick.value; } else { - a = i; - b = i; + var a = i; + var b = i + 1; + if (i < tickVals.length - 1) { + a = i; + b = i + 1; + } else if (i > 0) { + a = i - 1; + b = i; + } else { + a = i; + b = i; + } + A = tickVals[a].value; + B = tickVals[b].value; } - var A = tickVals[a].value; - var B = tickVals[b].value; var actualDelta = Math.abs(B - A); var delta = definedDelta || actualDelta; var periodLength = 0; - if (delta >= ONEMINYEAR2) { + if (tickVals[i].periodEndTick != null) { + periodLength = actualDelta; + } else if (delta >= ONEMINYEAR2) { if (actualDelta >= ONEMINYEAR2 && actualDelta <= ONEMAXYEAR2) { periodLength = actualDelta; } else { @@ -30936,6 +30987,7 @@ var Plotly = (() => { var isPeriod = ax.ticklabelmode === "period"; var isReversed = ax.range[0] > ax.range[1]; var ticklabelIndex = !ax.ticklabelindex || Lib.isArrayOrTypedArray(ax.ticklabelindex) ? ax.ticklabelindex : [ax.ticklabelindex]; + ax._useTicklabelIndex = ticklabelIndex != null && ticklabelIndex !== 0; var rng = Lib.simpleMap(ax.range, ax.r2l, void 0, void 0, opts); var axrev = rng[1] < rng[0]; var minRange = Math.min(rng[0], rng[1]); @@ -30947,7 +30999,7 @@ var Plotly = (() => { var minorTickVals = []; var allTicklabelVals = []; var hasMinor = ax.minor && (ax.minor.ticks || ax.minor.showgrid); - var calcMinor = hasMinor || ticklabelIndex; + var calcMinor = hasMinor || ax._useTicklabelIndex; for (var major = 1; major >= (calcMinor ? 0 : 1); major--) { var isMinor = !major; if (major) { @@ -31017,7 +31069,7 @@ var Plotly = (() => { x = axes.tickIncrement(x, dtick, !axrev, calendar); } } - if ((major || ticklabelIndex) && isPeriod) { + if ((major || ax._useTicklabelIndex) && isPeriod) { x = axes.tickIncrement(x, dtick, !axrev, calendar); if (major) majorId--; } @@ -31052,72 +31104,82 @@ var Plotly = (() => { } } } + function findOverlappingTick(minorTick, majorTicks) { + const majorTick = majorTicks.find((majorTick2) => majorTick2.value === minorTick.value); + if (majorTick != null) { + return majorTick; + } + const epsilon2 = 1e7; + for (let i2 = 0; i2 < majorTicks.length; i2++) { + if (epsilon2 + majorTicks[i2].value === epsilon2 + minorTick.value) { + return majorTicks[i2]; + } + } + return null; + } + ; if (!minorTickVals || minorTickVals.length < 3) { - ticklabelIndex = false; + ax._useTicklabelIndex = false; } else { - var diff = (minorTickVals[2].value - minorTickVals[1].value) * (isReversed ? -1 : 1); + const diff = (minorTickVals[2].value - minorTickVals[1].value) * (isReversed ? -1 : 1); if (!periodCompatibleWithTickformat(diff, ax.tickformat)) { - ticklabelIndex = false; + ax._useTicklabelIndex = false; minorTickVals = minorTickVals.slice(1); } } - if (!ticklabelIndex) { + if (!ax._useTicklabelIndex) { allTicklabelVals = tickVals; } else { - var allTickVals = tickVals.concat(minorTickVals); + const filteredMinors = minorTickVals.filter((minor) => findOverlappingTick(minor, tickVals) == null); + const labelTickValsAscending = tickVals.concat(filteredMinors).sort((a, b) => a.value - b.value); if (isPeriod && tickVals.length) { - allTickVals = allTickVals.slice(1); - } - allTickVals = allTickVals.sort(function(a, b) { - return a.value - b.value; - }).filter(function(tick, index, self2) { - return index === 0 || tick.value !== self2[index - 1].value; - }); - var majorTickIndices = allTickVals.map(function(item, index) { - return item.minor === void 0 && !item.skipLabel ? index : null; - }).filter(function(index) { - return index !== null; - }); - majorTickIndices.forEach(function(majorIdx) { - ticklabelIndex.map(function(nextLabelIdx) { - var minorIdx = majorIdx + nextLabelIdx; - if (minorIdx >= 0 && minorIdx < allTickVals.length) { - Lib.pushUnique(allTicklabelVals, allTickVals[minorIdx]); - } - }); - }); - tickVals.forEach(function(tick) { - tick.skipLabel = allTicklabelVals.indexOf(tick) === -1; + tickVals[0].skipLabel = true; + } + tickVals.forEach(function(majorTick) { + if (!majorTick.skipLabel) { + ticklabelIndex.forEach((labelIndex) => { + if (labelIndex < 0) { + const smallerTicks = labelTickValsAscending.filter((minorTick) => minorTick.value <= majorTick.value); + const absLabelIndex = Math.abs(labelIndex); + const labeledTickIndex = smallerTicks.length - absLabelIndex - 1; + if (absLabelIndex < smallerTicks.length) { + const tickToLabel = smallerTicks[labeledTickIndex]; + allTicklabelVals.push(tickToLabel); + if (isPeriod) { + tickToLabel.periodEndTick = smallerTicks[labeledTickIndex + 1]; + } + } + } else { + const largerTicks = labelTickValsAscending.filter((minorTick) => minorTick.value >= majorTick.value); + if (labelIndex < largerTicks.length) { + const tickToLabel = largerTicks[labelIndex]; + allTicklabelVals.push(tickToLabel); + if (isPeriod && largerTicks[labelIndex + 1]) { + tickToLabel.periodEndTick = largerTicks[labelIndex + 1]; + } + } + } + }); + majorTick.skipLabel = true; + } }); + allTicklabelVals.forEach((t2) => t2.skipLabel = false); } if (hasMinor) { - var canOverlap = ax.minor.ticks === "inside" && ax.ticks === "outside" || ax.minor.ticks === "outside" && ax.ticks === "inside"; - if (!canOverlap) { - var majorValues = tickVals.map(function(d) { - return d.value; - }); + var allowedToOverlap = ax.minor.ticks === "inside" && ax.ticks === "outside" || ax.minor.ticks === "outside" && ax.ticks === "inside"; + if (!allowedToOverlap) { var list = []; for (var k = 0; k < minorTickVals.length; k++) { - var T = minorTickVals[k]; - var v = T.value; - if (majorValues.indexOf(v) !== -1) { - continue; - } - var found = false; - for (var q = 0; !found && q < tickVals.length; q++) { - if ( - // add 10e6 to eliminate problematic digits - 1e7 + tickVals[q].value === 1e7 + v - ) { - found = true; - } + if (findOverlappingTick(minorTickVals[k], tickVals) == null) { + list.push(minorTickVals[k]); } - if (!found) list.push(T); } minorTickVals = list; } } - if (isPeriod) positionPeriodTicks(allTicklabelVals, ax, ax._definedDelta); + if (isPeriod) { + positionPeriodTicks(allTicklabelVals, ax, ax._definedDelta); + } var i; if (ax.rangebreaks) { var flip = ax._id.charAt(0) === "y"; @@ -31180,7 +31242,7 @@ var Plotly = (() => { var _minor = tickVals[i].minor; var _value = tickVals[i].value; if (_minor) { - if (ticklabelIndex && allTicklabelVals.indexOf(tickVals[i]) !== -1) { + if (ax._useTicklabelIndex && allTicklabelVals.indexOf(tickVals[i]) !== -1) { t = setTickLabel(ax, tickVals[i]); } else { t = { x: _value }; @@ -31196,7 +31258,7 @@ var Plotly = (() => { ticksOut.push(t); } } - if (isPeriod && ticklabelIndex && minorTicks.length) { + if (isPeriod && ax._useTicklabelIndex && minorTicks.length) { minorTicks[0].noTick = true; } ticksOut = ticksOut.concat(minorTicks); @@ -31565,7 +31627,7 @@ var Plotly = (() => { }; } function formatDate(ax, out, hover, extraPrecision) { - var tr = ax._tickround; + var tr = ax._useTicklabelIndex ? ax.minor._tickround : ax._tickround; var fmt = hover && ax.hoverformat || axes.getTickFormat(ax); extraPrecision = !fmt && extraPrecision; if (extraPrecision) { @@ -33900,12 +33962,44 @@ var Plotly = (() => { } }); + // src/components/legend/constants.ts + var constants_exports3 = {}; + __export(constants_exports3, { + dfltFillHeight: () => dfltFillHeight, + itemGap: () => itemGap, + itemHeightPad: () => itemHeightPad, + itemMinHeight: () => itemMinHeight, + scrollBarColor: () => scrollBarColor, + scrollBarEnterAttrs: () => scrollBarEnterAttrs, + scrollBarMargin: () => scrollBarMargin, + scrollBarMinHeight: () => scrollBarMinHeight, + scrollBarWidth: () => scrollBarWidth, + titlePad: () => titlePad + }); + var scrollBarWidth, scrollBarMinHeight, scrollBarColor, scrollBarMargin, scrollBarEnterAttrs, titlePad, itemGap, dfltFillHeight, itemMinHeight, itemHeightPad; + var init_constants3 = __esm({ + "src/components/legend/constants.ts"() { + "use strict"; + scrollBarWidth = 6; + scrollBarMinHeight = 20; + scrollBarColor = "#808BA4"; + scrollBarMargin = 4; + scrollBarEnterAttrs = { rx: 20, ry: 3, width: 0, height: 0 }; + titlePad = 2; + itemGap = 5; + dfltFillHeight = 6; + itemMinHeight = 16; + itemHeightPad = 3; + } + }); + // src/components/legend/attributes.js var require_attributes9 = __commonJS({ "src/components/legend/attributes.js"(exports, module) { "use strict"; var fontAttrs = require_font_attributes(); var colorAttrs = require_attributes3(); + var { dfltFillHeight: dfltFillHeight2 } = (init_constants3(), __toCommonJS(constants_exports3)); module.exports = { // not really a 'subplot' attribute container, // but this is the flag we use to denote attributes that @@ -33989,6 +34083,12 @@ var Plotly = (() => { dflt: 30, editType: "legend" }, + itemheight: { + valType: "number", + min: dfltFillHeight2, + dflt: dfltFillHeight2, + editType: "legend" + }, itemclick: { valType: "enumerated", values: ["toggle", "toggleothers", false], @@ -34266,6 +34366,7 @@ var Plotly = (() => { coerce("indentation"); coerce("itemsizing"); coerce("itemwidth"); + coerce("itemheight"); coerce("itemclick"); coerce("itemdoubleclick"); const groupClick = coerce("groupclick"); @@ -34586,31 +34687,6 @@ var Plotly = (() => { } }); - // src/components/legend/constants.ts - var constants_exports3 = {}; - __export(constants_exports3, { - itemGap: () => itemGap, - scrollBarColor: () => scrollBarColor, - scrollBarEnterAttrs: () => scrollBarEnterAttrs, - scrollBarMargin: () => scrollBarMargin, - scrollBarMinHeight: () => scrollBarMinHeight, - scrollBarWidth: () => scrollBarWidth, - titlePad: () => titlePad - }); - var scrollBarWidth, scrollBarMinHeight, scrollBarColor, scrollBarMargin, scrollBarEnterAttrs, titlePad, itemGap; - var init_constants3 = __esm({ - "src/components/legend/constants.ts"() { - "use strict"; - scrollBarWidth = 6; - scrollBarMinHeight = 20; - scrollBarColor = "#808BA4"; - scrollBarMargin = 4; - scrollBarEnterAttrs = { rx: 20, ry: 3, width: 0, height: 0 }; - titlePad = 2; - itemGap = 5; - } - }); - // src/components/legend/get_legend_data.js var require_get_legend_data = __commonJS({ "src/components/legend/get_legend_data.js"(exports, module) { @@ -34855,6 +34931,7 @@ var Plotly = (() => { if (!legend) legend = fullLayout.legend; var constantItemSizing = legend.itemsizing === "constant"; var itemWidth = legend.itemwidth; + var itemHeight = legend.itemheight; var centerPos = (itemWidth + constants2.itemGap * 2) / 2; var centerTransform = strTranslate(centerPos, 0); var boundLineWidth = function(mlw, cont, max, cst) { @@ -34932,7 +35009,9 @@ var Plotly = (() => { var fill = this3.select(".legendfill").selectAll("path").data(showFill || showGradientFill ? [d] : []); fill.enter().append("path").classed("js-fill", true); fill.exit().remove(); - fill.attr("d", pathStart + "h" + itemWidth + "v6h-" + itemWidth + "z").call(fillStyle); + fill.attr("d", pathStart + "h" + itemWidth + "v" + itemHeight + "h-" + itemWidth + "z").call(fillStyle); + const fillShiftY = showFill || showGradientFill ? (constants2.dfltFillHeight - itemHeight) / 2 : 0; + this3.selectAll("g.legendfill, g.legendlines, g.legendsymbols").attr("transform", fillShiftY ? strTranslate(0, fillShiftY) : null); if (showLine || showGradientLine) { var lw = boundLineWidth(void 0, trace.line, MAX_LINE_WIDTH, CST_LINE_WIDTH); tMod = Lib.minExtend(trace, { line: { width: lw } }); @@ -35092,14 +35171,18 @@ var Plotly = (() => { var fillColor = mcc || d0.mc || marker.color; var markerPattern = marker.pattern; var pAttr = Drawing.getPatternAttr; - var patternShape = markerPattern && (pAttr(markerPattern.shape, 0, "") || pAttr(markerPattern.path, 0, "")); + let patternIndex = 0; + if (legend._inHover && d0._distinct && d0.index != null) { + patternIndex = d0.index; + } + const patternShape = markerPattern && (pAttr(markerPattern.shape, patternIndex, "") || pAttr(markerPattern.path, patternIndex, "")); if (patternShape) { - var patternBGColor = pAttr(markerPattern.bgcolor, 0, null); - var patternFGColor = pAttr(markerPattern.fgcolor, 0, null); + const patternBGColor = pAttr(markerPattern.bgcolor, patternIndex, null); + const patternFGColor = pAttr(markerPattern.fgcolor, patternIndex, null); var patternFGOpacity = markerPattern.fgopacity; - var patternSize = dimAttr(markerPattern.size, 8, 10); - var patternSolidity = dimAttr(markerPattern.solidity, 0.5, 1); - var patternID = "legend-" + trace.uid; + const patternSize = legend._inHover ? dimAttr(pAttr(markerPattern.size, patternIndex, 8), 8, 10) : dimAttr(markerPattern.size, 8, 10); + const patternSolidity = legend._inHover ? dimAttr(pAttr(markerPattern.solidity, patternIndex, 0.5), 0.5, 1) : dimAttr(markerPattern.solidity, 0.5, 1); + const patternID = legend._inHover ? `hover-${trace.uid}-${patternIndex}` : `legend-${trace.uid}`; p.call( Drawing.pattern, "legend", @@ -35921,7 +36004,7 @@ var Plotly = (() => { }); } function textLayout(s, g, gd, legendObj, aTitle) { - if (legendObj._inHover) s.attr("data-notex", true); + if (legendObj._inHover) s.attr("data-notex", svgTextUtils.isPureTex(s.text()) ? null : true); svgTextUtils.convertToTspans(s, gd, function() { computeTextDimensions(g, gd, legendObj, aTitle); }); @@ -35996,7 +36079,8 @@ var Plotly = (() => { legendObj._titleHeight = height; } else { legendItem.lineHeight = lineHeight; - legendItem.height = Math.max(height, 16) + 3; + const fillItemHeight = constants2.itemMinHeight + legendObj.itemheight - constants2.dfltFillHeight; + legendItem.height = Math.max(height, constants2.itemMinHeight, fillItemHeight) + constants2.itemHeightPad; legendItem.width = width; } } @@ -36188,6 +36272,13 @@ var Plotly = (() => { } Drawing.setRect(traceToggle, 0, -h / 2, w, h); }); + if (legendObj._inHover) { + const textRight = legendObj._width - bw2 - itemGap2 - titleSize[0]; + traces.each(function(d) { + if (d[0].textAlign !== "right") return; + d3.select(this).select("." + legendId + "text").attr("text-anchor", "end").call(svgTextUtils.positionText, textRight); + }); + } var titleEl = scrollBox.select("." + legendId + "titletext"); if (titleEl.node()) { horizontalAlignTitle(titleEl, legendObj, bw); @@ -36391,28 +36482,47 @@ var Plotly = (() => { outerContainer: opts.outerContainer || opts.container }); var hoverLabel = hoverText.hoverLabels; - var tooltipSpacing = 5; - var lastBottomY = 0; - var anchor = 0; - hoverLabel.sort(function(a, b) { - return a.y0 - b.y0; - }).each(function(d, i) { - var topY = d.y0 - d.by / 2; - if (topY - tooltipSpacing < lastBottomY) { - d.offset = lastBottomY - topY + tooltipSpacing; - } else { - d.offset = 0; - } - lastBottomY = topY + d.by + d.offset; - if (i === opts.anchorIndex || 0) anchor = d.offset; - }).each(function(d) { - d.offset -= anchor; - }); + function fixVerticalOverlap() { + var tooltipSpacing = 5; + var lastBottomY = 0; + var anchor = 0; + hoverLabel.sort(function(a, b) { + return a.y0 - b.y0; + }).each(function(d, i) { + var topY = d.y0 - d.by / 2; + if (topY - tooltipSpacing < lastBottomY) { + d.offset = lastBottomY - topY + tooltipSpacing; + } else { + d.offset = 0; + } + lastBottomY = topY + d.by + d.offset; + if (i === opts.anchorIndex || 0) anchor = d.offset; + }).each(function(d) { + d.offset -= anchor; + }); + } var scaleX = gd._fullLayout._invScaleX; var scaleY = gd._fullLayout._invScaleY; + fixVerticalOverlap(); alignHoverText(hoverLabel, rotateLabels, scaleX, scaleY); + if (hoverText.mathjaxPromise) { + hoverText.mathjaxPromise.then(function() { + fixVerticalOverlap(); + alignHoverText(hoverLabel, rotateLabels, scaleX, scaleY); + hoverLabel.each(function() { + var g = d3.select(this); + svgTextUtils.repositionMathGroup(g.select("text.nums")); + svgTextUtils.repositionMathGroup(g.select("text.name")); + }); + }); + } return multiHover ? hoverLabel : hoverLabel.node(); }; + function canSpikeToNonHoveredPoint(xa, ya) { + return Boolean( + (xa == null ? void 0 : xa.showspikes) && xa.spikesnap !== "hovered data" || (ya == null ? void 0 : ya.showspikes) && ya.spikesnap !== "hovered data" + ); + } function _hover(gd, evt, subplot, noHoverEvent, eventTarget) { if (!subplot) subplot = "xy"; if (typeof subplot === "string") { @@ -36425,6 +36535,7 @@ var Plotly = (() => { var plots = fullLayout._plots || []; var plotinfo = plots[subplot]; var hasCartesian = fullLayout._has("cartesian"); + var hasTernary = fullLayout._has("ternary"); var hovermode = evt.hovermode || fullLayout.hovermode; var hovermodeHasX = (hovermode || "").charAt(0) === "x"; var hovermodeHasY = (hovermode || "").charAt(0) === "y"; @@ -36487,6 +36598,7 @@ var Plotly = (() => { hLinePoint: null, vLinePoint: null }; + const ternarySpikePoints = {}; var hasOneHorizontalTrace = false; if (Array.isArray(evt)) { hovermode = "array"; @@ -36683,42 +36795,56 @@ var Plotly = (() => { hoverData.splice(0, closedataPreviousLength); distance = hoverData[0].distance; } - if (hasCartesian && spikedistance !== 0) { - if (hoverData.length === 0) { - pointData.distance = spikedistance; - pointData.index = false; - var closestPoints = trace._module.hoverPoints(pointData, xval, yval, "closest", { - hoverLayer: fullLayout._hoverlayer - }); - if (closestPoints) { - closestPoints = closestPoints.filter(function(point) { - return point.spikeDistance <= spikedistance; - }); + if (Registry.traceIs(trace, "ternary") && spikedistance !== 0) { + const ternary = pointData.subplot; + const needsClosestPoint = ["aaxis", "baxis", "caxis"].some((name4) => ternary[name4].showspikes && ternary[name4].spikesnap !== "hovered data"); + if (needsClosestPoint) { + let spikePoint = newPoints == null ? void 0 : newPoints[0]; + if (!Number.isFinite(spikePoint == null ? void 0 : spikePoint.spikeDistance)) { + const spikeData = Lib.extendFlat({}, pointData, { distance: spikedistance, index: false }); + const closestPoints2 = trace._module.hoverPoints(spikeData, xval, yval, "closest"); + spikePoint = closestPoints2 && closestPoints2[0]; } - if (closestPoints && closestPoints.length) { - var tmpPoint; - var closestVPoints = closestPoints.filter(function(point) { - return point.xa.showspikes && point.xa.spikesnap !== "hovered data"; - }); - if (closestVPoints.length) { - var closestVPt = closestVPoints[0]; - if (isNumeric2(closestVPt.x0) && isNumeric2(closestVPt.y0)) { - tmpPoint = fillSpikePoint(closestVPt); - if (!spikePoints.vLinePoint || spikePoints.vLinePoint.spikeDistance > tmpPoint.spikeDistance) { - spikePoints.vLinePoint = tmpPoint; - } + const previousSpikePoint = ternarySpikePoints[subplotId]; + if (spikePoint && spikePoint.index !== void 0 && spikePoint.index !== false && spikePoint.spikeDistance <= spikedistance && (!previousSpikePoint || spikePoint.spikeDistance < previousSpikePoint.spikeDistance)) { + ternarySpikePoints[subplotId] = spikePoint; + } + } + } + if (hasCartesian && hoverData.length === 0 && spikedistance !== 0 && canSpikeToNonHoveredPoint(pointData.xa, pointData.ya)) { + pointData.distance = spikedistance; + pointData.index = false; + var closestPoints = trace._module.hoverPoints(pointData, xval, yval, "closest", { + hoverLayer: fullLayout._hoverlayer + }); + if (closestPoints) { + closestPoints = closestPoints.filter(function(point) { + return point.spikeDistance <= spikedistance; + }); + } + if (closestPoints == null ? void 0 : closestPoints.length) { + var tmpPoint; + var closestVPoints = closestPoints.filter(function(point) { + return point.xa.showspikes && point.xa.spikesnap !== "hovered data"; + }); + if (closestVPoints.length) { + var closestVPt = closestVPoints[0]; + if (isNumeric2(closestVPt.x0) && isNumeric2(closestVPt.y0)) { + tmpPoint = fillSpikePoint(closestVPt); + if (!spikePoints.vLinePoint || spikePoints.vLinePoint.spikeDistance > tmpPoint.spikeDistance) { + spikePoints.vLinePoint = tmpPoint; } } - var closestHPoints = closestPoints.filter(function(point) { - return point.ya.showspikes && point.ya.spikesnap !== "hovered data"; - }); - if (closestHPoints.length) { - var closestHPt = closestHPoints[0]; - if (isNumeric2(closestHPt.x0) && isNumeric2(closestHPt.y0)) { - tmpPoint = fillSpikePoint(closestHPt); - if (!spikePoints.hLinePoint || spikePoints.hLinePoint.spikeDistance > tmpPoint.spikeDistance) { - spikePoints.hLinePoint = tmpPoint; - } + } + var closestHPoints = closestPoints.filter(function(point) { + return point.ya.showspikes && point.ya.spikesnap !== "hovered data"; + }); + if (closestHPoints.length) { + var closestHPt = closestHPoints[0]; + if (isNumeric2(closestHPt.x0) && isNumeric2(closestHPt.y0)) { + tmpPoint = fillSpikePoint(closestHPt); + if (!spikePoints.hLinePoint || spikePoints.hLinePoint.spikeDistance > tmpPoint.spikeDistance) { + spikePoints.hLinePoint = tmpPoint; } } } @@ -36727,6 +36853,18 @@ var Plotly = (() => { } } findHoverPoints(); + function updateTernarySpikelines() { + fullLayout._hoverlayer.selectAll(".ternary-spikes").remove(); + if (spikedistance === 0) return; + for (let i2 = 0; i2 < subplots.length; i2++) { + const id3 = subplots[i2]; + const ternary = fullLayout[id3] && fullLayout[id3]._subplot; + if (ternary && ternary.drawSpikelines) { + const point = hoverData.find((d) => d.trace.subplot === id3 && d.index !== void 0 && d.index !== false && d.spikeDistance <= spikedistance); + ternary.drawSpikelines(point, ternarySpikePoints[id3], xvalArray && xvalArray[i2], yvalArray && yvalArray[i2]); + } + } + } function selectClosestPoint(pointsData, spikedistance2, spikeOnWinning2) { var resultPoint = null; var minDistance = Infinity; @@ -36816,6 +36954,7 @@ var Plotly = (() => { emitHover([]); gd._hoverAnywhereActive = true; } + if (hasTernary) updateTernarySpikelines(); return result; } if (hasCartesian) { @@ -36823,6 +36962,7 @@ var Plotly = (() => { createSpikelines(gd, spikePoints, spikelineOpts); } } + if (hasTernary) updateTernarySpikelines(); if (helpers.isXYhover(_mode) && hoverData[0].length !== 0 && hoverData[0].trace.type !== "splom") { var winningPoint = hoverData[0]; if (multipleHoverPoints[winningPoint.trace.type]) { @@ -36912,6 +37052,18 @@ var Plotly = (() => { if (!helpers.isUnifiedHover(hovermode)) { hoverAvoidOverlaps(hoverLabels, rotateLabels, fullLayout, hoverText.commonLabelBoundingBox); alignHoverText(hoverLabels, rotateLabels, fullLayout._invScaleX, fullLayout._invScaleY); + if (hoverText.mathjaxPromise) { + hoverText.mathjaxPromise.then(function() { + if (gd._hoverdata !== newhoverdata) return; + hoverAvoidOverlaps(hoverLabels, rotateLabels, fullLayout, hoverText.commonLabelBoundingBox); + alignHoverText(hoverLabels, rotateLabels, fullLayout._invScaleX, fullLayout._invScaleY); + hoverLabels.each(function() { + var g = d3.select(this); + svgTextUtils.repositionMathGroup(g.select("text.nums")); + svgTextUtils.repositionMathGroup(g.select("text.name")); + }); + }); + } } if (eventTarget && eventTarget.tagName) { var hasClickToShow = Registry.getComponentMethod("annotations", "hasClickToShow")(gd, newhoverdata); @@ -36945,6 +37097,9 @@ var Plotly = (() => { return [d.trace.index, d.index, d.x0, d.y0, d.name, d.attr, d.xa ? d.xa._id : "", d.ya ? d.ya._id : ""].join(","); } var EXTRA_STRING_REGEX = /([\s\S]*)<\/extra>/; + function getHoverTextBBox(gd, textSel) { + return getBoundingClientRect(gd, svgTextUtils.getMathOrTextNode(textSel)); + } function createHoverText(hoverData, opts) { var gd = opts.gd; var fullLayout = gd._fullLayout; @@ -36955,6 +37110,7 @@ var Plotly = (() => { var outerContainer = opts.outerContainer; var commonLabelOpts = opts.commonLabelOpts || {}; if (hoverData.length === 0) return [[]]; + var mathjaxPromises = []; var fontFamily = opts.fontFamily || constants2.HOVERFONT; var fontSize = opts.fontSize || constants2.HOVERFONTSIZE; var fontWeight = opts.fontWeight || fullLayout.font.weight; @@ -37010,9 +37166,7 @@ var Plotly = (() => { var lpath = Lib.ensureSingle(label, "path", "", function(s) { s.style({ "stroke-width": "1px" }); }); - var ltext = Lib.ensureSingle(label, "text", "", function(s) { - s.attr("data-notex", 1); - }); + var ltext = Lib.ensureSingle(label, "text", ""); var commonBgColor = commonLabelOpts.bgcolor || Color.defaultLine; var commonStroke = commonLabelOpts.bordercolor || Color.contrast(commonBgColor); var contrastColor = Color.contrast(commonBgColor); @@ -37032,100 +37186,122 @@ var Plotly = (() => { fill: commonBgColor, stroke: commonStroke }); - ltext.text(t0).call(Drawing.font, commonLabelFont).call(svgTextUtils.positionText, 0, 0).call(svgTextUtils.convertToTspans, gd); - label.attr("transform", ""); - var tbb2 = getBoundingClientRect(gd, ltext.node()); - var lx2, ly2; - if (hovermode === "x") { - var topsign = xa.side === "top" ? "-" : ""; - ltext.attr("text-anchor", "middle").call( - svgTextUtils.positionText, - 0, - xa.side === "top" ? outerTop - tbb2.bottom - HOVERARROWSIZE2 - HOVERTEXTPAD2 : outerTop - tbb2.top + HOVERARROWSIZE2 + HOVERTEXTPAD2 - ); - lx2 = xa._offset + (c0.x0 + c0.x1) / 2; - ly2 = ya._offset + (xa.side === "top" ? 0 : ya._length); - var halfWidth = tbb2.width / 2 + HOVERTEXTPAD2; - var tooltipMidX = lx2; - if (lx2 < halfWidth) { - tooltipMidX = halfWidth; - } else if (lx2 > fullLayout.width - halfWidth) { - tooltipMidX = fullLayout.width - halfWidth; - } - lpath.attr( - "d", - "M" + (lx2 - tooltipMidX) + ",0L" + (lx2 - tooltipMidX + HOVERARROWSIZE2) + "," + topsign + HOVERARROWSIZE2 + "H" + halfWidth + "v" + topsign + (HOVERTEXTPAD2 * 2 + tbb2.height) + "H" + -halfWidth + "V" + topsign + HOVERARROWSIZE2 + "H" + (lx2 - tooltipMidX - HOVERARROWSIZE2) + "Z" - ); - lx2 = tooltipMidX; - commonLabelRect.minX = lx2 - halfWidth; - commonLabelRect.maxX = lx2 + halfWidth; - if (xa.side === "top") { - commonLabelRect.minY = ly2 - (HOVERTEXTPAD2 * 2 + tbb2.height); - commonLabelRect.maxY = ly2 - HOVERTEXTPAD2; - } else { - commonLabelRect.minY = ly2 + HOVERTEXTPAD2; - commonLabelRect.maxY = ly2 + (HOVERTEXTPAD2 * 2 + tbb2.height); - } - } else { - var anchor; - var sgn; - var leftsign; - if (ya.side === "right") { - anchor = "start"; - sgn = 1; - leftsign = ""; - lx2 = xa._offset + xa._length; - } else { - anchor = "end"; - sgn = -1; - leftsign = "-"; - lx2 = xa._offset; - } - ly2 = ya._offset + (c0.y0 + c0.y1) / 2; - ltext.attr("text-anchor", anchor); - lpath.attr( - "d", - "M0,0L" + leftsign + HOVERARROWSIZE2 + "," + HOVERARROWSIZE2 + "V" + (HOVERTEXTPAD2 + tbb2.height / 2) + "h" + leftsign + (HOVERTEXTPAD2 * 2 + tbb2.width) + "V-" + (HOVERTEXTPAD2 + tbb2.height / 2) + "H" + leftsign + HOVERARROWSIZE2 + "V-" + HOVERARROWSIZE2 + "Z" - ); - commonLabelRect.minY = ly2 - (HOVERTEXTPAD2 + tbb2.height / 2); - commonLabelRect.maxY = ly2 + (HOVERTEXTPAD2 + tbb2.height / 2); - if (ya.side === "right") { - commonLabelRect.minX = lx2 + HOVERARROWSIZE2; - commonLabelRect.maxX = lx2 + HOVERARROWSIZE2 + (HOVERTEXTPAD2 * 2 + tbb2.width); - } else { - commonLabelRect.minX = lx2 - HOVERARROWSIZE2 - (HOVERTEXTPAD2 * 2 + tbb2.width); - commonLabelRect.maxX = lx2 - HOVERARROWSIZE2; - } - var halfHeight = tbb2.height / 2; - var lty = outerTop - tbb2.top - halfHeight; - var clipId = "clip" + fullLayout._uid + "commonlabel" + ya._id; - var clipPath; - if (lx2 < tbb2.width + 2 * HOVERTEXTPAD2 + HOVERARROWSIZE2) { - clipPath = "M-" + (HOVERARROWSIZE2 + HOVERTEXTPAD2) + "-" + halfHeight + "h-" + (tbb2.width - HOVERTEXTPAD2) + "V" + halfHeight + "h" + (tbb2.width - HOVERTEXTPAD2) + "Z"; - var ltx = tbb2.width - lx2 + HOVERTEXTPAD2; - svgTextUtils.positionText(ltext, ltx, lty); - if (anchor === "end") { - ltext.selectAll("tspan").each(function() { - var s = d3.select(this); - var dummy = Drawing.tester.append("text").text(s.text()).call(Drawing.font, commonLabelFont); - var dummyBB = getBoundingClientRect(gd, dummy.node()); - if (Math.round(dummyBB.width) < Math.round(tbb2.width)) { - s.attr("x", ltx - dummyBB.width); + var commonLabelTex = svgTextUtils.isPureTex(String(t0)); + var onCommonLabelReady; + if (commonLabelTex) { + mathjaxPromises.push( + new Promise(function(resolve) { + onCommonLabelReady = function() { + if (!ltext.node().parentNode) { + resolve(); + return; } - dummy.remove(); - }); + positionCommonLabel(); + svgTextUtils.repositionMathGroup(ltext); + resolve(); + }; + }) + ); + } + ltext.text(t0).call(Drawing.font, commonLabelFont).attr("data-notex", commonLabelTex ? null : 1).call(svgTextUtils.positionText, 0, 0).call(svgTextUtils.convertToTspans, gd, onCommonLabelReady); + positionCommonLabel(); + function positionCommonLabel() { + label.attr("transform", ""); + svgTextUtils.positionText(ltext, 0, 0); + svgTextUtils.repositionMathGroup(ltext); + var tbb2 = getHoverTextBBox(gd, ltext); + var lx2, ly2; + if (hovermode === "x") { + var topsign = xa.side === "top" ? "-" : ""; + ltext.attr("text-anchor", "middle").call( + svgTextUtils.positionText, + 0, + xa.side === "top" ? outerTop - tbb2.bottom - HOVERARROWSIZE2 - HOVERTEXTPAD2 : outerTop - tbb2.top + HOVERARROWSIZE2 + HOVERTEXTPAD2 + ); + lx2 = xa._offset + (c0.x0 + c0.x1) / 2; + ly2 = ya._offset + (xa.side === "top" ? 0 : ya._length); + var halfWidth = tbb2.width / 2 + HOVERTEXTPAD2; + var tooltipMidX = lx2; + if (lx2 < halfWidth) { + tooltipMidX = halfWidth; + } else if (lx2 > fullLayout.width - halfWidth) { + tooltipMidX = fullLayout.width - halfWidth; + } + lpath.attr( + "d", + "M" + (lx2 - tooltipMidX) + ",0L" + (lx2 - tooltipMidX + HOVERARROWSIZE2) + "," + topsign + HOVERARROWSIZE2 + "H" + halfWidth + "v" + topsign + (HOVERTEXTPAD2 * 2 + tbb2.height) + "H" + -halfWidth + "V" + topsign + HOVERARROWSIZE2 + "H" + (lx2 - tooltipMidX - HOVERARROWSIZE2) + "Z" + ); + lx2 = tooltipMidX; + commonLabelRect.minX = lx2 - halfWidth; + commonLabelRect.maxX = lx2 + halfWidth; + if (xa.side === "top") { + commonLabelRect.minY = ly2 - (HOVERTEXTPAD2 * 2 + tbb2.height); + commonLabelRect.maxY = ly2 - HOVERTEXTPAD2; + } else { + commonLabelRect.minY = ly2 + HOVERTEXTPAD2; + commonLabelRect.maxY = ly2 + (HOVERTEXTPAD2 * 2 + tbb2.height); } } else { - svgTextUtils.positionText(ltext, sgn * (HOVERTEXTPAD2 + HOVERARROWSIZE2), lty); - clipPath = null; + var anchor; + var sgn; + var leftsign; + if (ya.side === "right") { + anchor = "start"; + sgn = 1; + leftsign = ""; + lx2 = xa._offset + xa._length; + } else { + anchor = "end"; + sgn = -1; + leftsign = "-"; + lx2 = xa._offset; + } + ly2 = ya._offset + (c0.y0 + c0.y1) / 2; + ltext.attr("text-anchor", anchor); + lpath.attr( + "d", + "M0,0L" + leftsign + HOVERARROWSIZE2 + "," + HOVERARROWSIZE2 + "V" + (HOVERTEXTPAD2 + tbb2.height / 2) + "h" + leftsign + (HOVERTEXTPAD2 * 2 + tbb2.width) + "V-" + (HOVERTEXTPAD2 + tbb2.height / 2) + "H" + leftsign + HOVERARROWSIZE2 + "V-" + HOVERARROWSIZE2 + "Z" + ); + commonLabelRect.minY = ly2 - (HOVERTEXTPAD2 + tbb2.height / 2); + commonLabelRect.maxY = ly2 + (HOVERTEXTPAD2 + tbb2.height / 2); + if (ya.side === "right") { + commonLabelRect.minX = lx2 + HOVERARROWSIZE2; + commonLabelRect.maxX = lx2 + HOVERARROWSIZE2 + (HOVERTEXTPAD2 * 2 + tbb2.width); + } else { + commonLabelRect.minX = lx2 - HOVERARROWSIZE2 - (HOVERTEXTPAD2 * 2 + tbb2.width); + commonLabelRect.maxX = lx2 - HOVERARROWSIZE2; + } + var halfHeight = tbb2.height / 2; + var lty = outerTop - tbb2.top - halfHeight; + var clipId = "clip" + fullLayout._uid + "commonlabel" + ya._id; + var clipPath; + if (lx2 < tbb2.width + 2 * HOVERTEXTPAD2 + HOVERARROWSIZE2) { + clipPath = "M-" + (HOVERARROWSIZE2 + HOVERTEXTPAD2) + "-" + halfHeight + "h-" + (tbb2.width - HOVERTEXTPAD2) + "V" + halfHeight + "h" + (tbb2.width - HOVERTEXTPAD2) + "Z"; + var ltx = tbb2.width - lx2 + HOVERTEXTPAD2; + svgTextUtils.positionText(ltext, ltx, lty); + if (anchor === "end") { + ltext.selectAll("tspan").each(function() { + var s = d3.select(this); + var dummy = Drawing.tester.append("text").text(s.text()).call(Drawing.font, commonLabelFont); + var dummyBB = getBoundingClientRect(gd, dummy.node()); + if (Math.round(dummyBB.width) < Math.round(tbb2.width)) { + s.attr("x", ltx - dummyBB.width); + } + dummy.remove(); + }); + } + } else { + svgTextUtils.positionText(ltext, sgn * (HOVERTEXTPAD2 + HOVERARROWSIZE2), lty); + clipPath = null; + } + var textClip = fullLayout._topclips.selectAll("#" + clipId).data(clipPath ? [0] : []); + textClip.enter().append("clipPath").attr("id", clipId).append("path"); + textClip.exit().remove(); + textClip.select("path").attr("d", clipPath); + Drawing.setClipUrl(ltext, clipPath ? clipId : null, gd); } - var textClip = fullLayout._topclips.selectAll("#" + clipId).data(clipPath ? [0] : []); - textClip.enter().append("clipPath").attr("id", clipId).append("path"); - textClip.exit().remove(); - textClip.select("path").attr("d", clipPath); - Drawing.setClipUrl(ltext, clipPath ? clipId : null, gd); + label.attr("transform", strTranslate(lx2, ly2)); } - label.attr("transform", strTranslate(lx2, ly2)); }); if (helpers.isUnifiedHover(hovermode)) { container.selectAll("g.hovertext").remove(); @@ -37332,6 +37508,23 @@ var Plotly = (() => { var texts2 = getHoverLabelText(d, showCommonLabel, hovermode, fullLayout, t0, g); var text2 = texts2[0]; var name5 = texts2[1]; + var hasName = !!(name5 && name5 !== text2); + var numsTex = svgTextUtils.isPureTex(text2); + var nameTex = hasName && svgTextUtils.isPureTex(name5); + var pendingLabelParts = (numsTex ? 1 : 0) + (nameTex ? 1 : 0); + var onLabelPartReady; + if (pendingLabelParts) { + mathjaxPromises.push( + new Promise(function(resolve) { + onLabelPartReady = function() { + if (--pendingLabelParts === 0) { + if (g.node().parentNode) finalizePosition(); + resolve(); + } + }; + }) + ); + } var tx = g.select("text.nums").call(Drawing.font, { family: d.fontFamily || fontFamily, size: d.fontSize || fontSize, @@ -37342,11 +37535,9 @@ var Plotly = (() => { textcase: d.fontTextcase || fontTextcase, lineposition: d.fontLineposition || fontLineposition, shadow: d.fontShadow || fontShadow - }).text(text2).attr("data-notex", 1).call(svgTextUtils.positionText, 0, 0).call(svgTextUtils.convertToTspans, gd); + }).text(text2).attr("data-notex", numsTex ? null : 1).call(svgTextUtils.positionText, 0, 0).call(svgTextUtils.convertToTspans, gd, numsTex ? onLabelPartReady : void 0); var tx2 = g.select("text.name"); - var tx2width = 0; - var tx2height = 0; - if (name5 && name5 !== text2) { + if (hasName) { tx2.call(Drawing.font, { family: d.fontFamily || fontFamily, size: d.fontSize || fontSize, @@ -37357,75 +37548,90 @@ var Plotly = (() => { textcase: d.fontTextcase || fontTextcase, lineposition: d.fontLineposition || fontLineposition, shadow: d.fontShadow || fontShadow - }).text(name5).attr("data-notex", 1).call(svgTextUtils.positionText, 0, 0).call(svgTextUtils.convertToTspans, gd); - var t2bb = getBoundingClientRect(gd, tx2.node()); - tx2width = t2bb.width + 2 * HOVERTEXTPAD2; - tx2height = t2bb.height + 2 * HOVERTEXTPAD2; + }).text(name5).attr("data-notex", nameTex ? null : 1).call(svgTextUtils.positionText, 0, 0).call(svgTextUtils.convertToTspans, gd, nameTex ? onLabelPartReady : void 0); } else { tx2.remove(); g.select("rect").remove(); } - g.select("path").style({ - fill: numsColor, - stroke: contrastColor - }); - var htx = d.xa._offset + (d.x0 + d.x1) / 2; - var hty = d.ya._offset + (d.y0 + d.y1) / 2; - var dx = Math.abs(d.x1 - d.x0); - var dy = Math.abs(d.y1 - d.y0); - var tbb2 = getBoundingClientRect(gd, tx.node()); - var tbbWidth = tbb2.width / fullLayout._invScaleX; - var tbbHeight = tbb2.height / fullLayout._invScaleY; - d.ty0 = (outerTop - tbb2.top) / fullLayout._invScaleY; - d.bx = tbbWidth + 2 * HOVERTEXTPAD2; - d.by = Math.max(tbbHeight + 2 * HOVERTEXTPAD2, tx2height); - d.anchor = "start"; - d.txwidth = tbbWidth; - d.tx2width = tx2width; - d.offset = 0; - var txTotalWidth = (tbbWidth + HOVERARROWSIZE2 + HOVERTEXTPAD2 + tx2width) * fullLayout._invScaleX; - var anchorStartOK, anchorEndOK; - if (rotateLabels) { - d.pos = htx; - anchorStartOK = hty + dy / 2 + txTotalWidth <= outerHeight; - anchorEndOK = hty - dy / 2 - txTotalWidth >= 0; - if ((d.idealAlign === "top" || !anchorStartOK) && anchorEndOK) { - hty -= dy / 2; - d.anchor = "end"; - } else if (anchorStartOK) { - hty += dy / 2; - d.anchor = "start"; + finalizePosition(); + function finalizePosition() { + g.attr("transform", ""); + tx.call(svgTextUtils.positionText, 0, 0); + svgTextUtils.repositionMathGroup(tx); + if (hasName) { + tx2.call(svgTextUtils.positionText, 0, 0); + svgTextUtils.repositionMathGroup(tx2); + } + g.select("path").style({ + fill: numsColor, + stroke: contrastColor + }); + var htx = d.xa._offset + (d.x0 + d.x1) / 2; + var hty = d.ya._offset + (d.y0 + d.y1) / 2; + var dx = Math.abs(d.x1 - d.x0); + var dy = Math.abs(d.y1 - d.y0); + var tx2width = 0; + var tx2height = 0; + if (hasName) { + var t2bb = getHoverTextBBox(gd, tx2); + tx2width = t2bb.width + 2 * HOVERTEXTPAD2; + tx2height = t2bb.height + 2 * HOVERTEXTPAD2; + } + var tbb2 = getHoverTextBBox(gd, tx); + var tbbWidth = tbb2.width / fullLayout._invScaleX; + var tbbHeight = tbb2.height / fullLayout._invScaleY; + d.ty0 = (outerTop - tbb2.top) / fullLayout._invScaleY; + d.bx = tbbWidth + 2 * HOVERTEXTPAD2; + d.by = Math.max(tbbHeight + 2 * HOVERTEXTPAD2, tx2height); + d.anchor = "start"; + d.txwidth = tbbWidth; + d.tx2width = tx2width; + d.offset = 0; + var txTotalWidth = (tbbWidth + HOVERARROWSIZE2 + HOVERTEXTPAD2 + tx2width) * fullLayout._invScaleX; + var anchorStartOK, anchorEndOK; + if (rotateLabels) { + d.pos = htx; + anchorStartOK = hty + dy / 2 + txTotalWidth <= outerHeight; + anchorEndOK = hty - dy / 2 - txTotalWidth >= 0; + if ((d.idealAlign === "top" || !anchorStartOK) && anchorEndOK) { + hty -= dy / 2; + d.anchor = "end"; + } else if (anchorStartOK) { + hty += dy / 2; + d.anchor = "start"; + } else { + d.anchor = "middle"; + } + d.crossPos = hty; } else { - d.anchor = "middle"; + d.pos = hty; + anchorStartOK = htx + dx / 2 + txTotalWidth <= outerWidth; + anchorEndOK = htx - dx / 2 - txTotalWidth >= 0; + if ((d.idealAlign === "left" || !anchorStartOK) && anchorEndOK) { + htx -= dx / 2; + d.anchor = "end"; + } else if (anchorStartOK) { + htx += dx / 2; + d.anchor = "start"; + } else { + d.anchor = "middle"; + var txHalfWidth = txTotalWidth / 2; + var overflowR = htx + txHalfWidth - outerWidth; + var overflowL = htx - txHalfWidth; + if (overflowR > 0) htx -= overflowR; + if (overflowL < 0) htx += -overflowL; + } + d.crossPos = htx; } - d.crossPos = hty; - } else { - d.pos = hty; - anchorStartOK = htx + dx / 2 + txTotalWidth <= outerWidth; - anchorEndOK = htx - dx / 2 - txTotalWidth >= 0; - if ((d.idealAlign === "left" || !anchorStartOK) && anchorEndOK) { - htx -= dx / 2; - d.anchor = "end"; - } else if (anchorStartOK) { - htx += dx / 2; - d.anchor = "start"; - } else { - d.anchor = "middle"; - var txHalfWidth = txTotalWidth / 2; - var overflowR = htx + txHalfWidth - outerWidth; - var overflowL = htx - txHalfWidth; - if (overflowR > 0) htx -= overflowR; - if (overflowL < 0) htx += -overflowL; - } - d.crossPos = htx; - } - tx.attr("text-anchor", d.anchor); - if (tx2width) tx2.attr("text-anchor", d.anchor); - g.attr("transform", strTranslate(htx, hty) + (rotateLabels ? strRotate(YANGLE2) : "")); + tx.attr("text-anchor", d.anchor); + if (tx2width) tx2.attr("text-anchor", d.anchor); + g.attr("transform", strTranslate(htx, hty) + (rotateLabels ? strRotate(YANGLE2) : "")); + } }); return { hoverLabels, - commonLabelBoundingBox: commonLabelRect + commonLabelBoundingBox: commonLabelRect, + mathjaxPromise: mathjaxPromises.length ? Promise.all(mathjaxPromises) : null }; } function getHoverLabelText(d, showCommonLabel, hovermode, fullLayout, t0, g) { @@ -48788,7 +48994,7 @@ var Plotly = (() => { } function marginPushersAgain() { if (!Plots.didMarginChange(oldMargins, fullLayout._size)) return; - return Lib.syncOrAsync([marginPushers, subroutines.layoutStyles], gd); + return marginPushers(); } function positionAndAutorange() { if (!recalc) { @@ -63957,14 +64163,12 @@ var Plotly = (() => { var constants_exports14 = {}; __export(constants_exports14, { DASHES: () => DASHES, - DOT_RE: () => DOT_RE, - OPEN_RE: () => OPEN_RE, SYMBOL_SDF_SIZE: () => SYMBOL_SDF_SIZE, SYMBOL_SIZE: () => SYMBOL_SIZE, SYMBOL_STROKE: () => SYMBOL_STROKE, TOO_MANY_POINTS: () => TOO_MANY_POINTS }); - var TOO_MANY_POINTS, SYMBOL_SDF_SIZE, SYMBOL_SIZE, SYMBOL_STROKE, DOT_RE, OPEN_RE, DASHES; + var TOO_MANY_POINTS, SYMBOL_SDF_SIZE, SYMBOL_SIZE, SYMBOL_STROKE, DASHES; var init_constants14 = __esm({ "src/traces/scattergl/constants.ts"() { "use strict"; @@ -63972,8 +64176,6 @@ var Plotly = (() => { SYMBOL_SDF_SIZE = 200; SYMBOL_SIZE = 20; SYMBOL_STROKE = SYMBOL_SIZE / 20; - DOT_RE = /-dot/; - OPEN_RE = /-open/; DASHES = { solid: [1], dot: [1, 1], @@ -64093,13 +64295,9 @@ var Plotly = (() => { var require_helpers12 = __commonJS({ "src/traces/scattergl/helpers.js"(exports) { "use strict"; - var constants2 = (init_constants14(), __toCommonJS(constants_exports14)); - exports.isOpenSymbol = function(symbol) { - return typeof symbol === "string" ? constants2.OPEN_RE.test(symbol) : symbol % 200 > 100; - }; - exports.isDotSymbol = function(symbol) { - return typeof symbol === "string" ? constants2.DOT_RE.test(symbol) : symbol > 200; - }; + var { symbolNumber } = require_drawing(); + exports.isOpenSymbol = (symbol) => symbolNumber(symbol) % 200 >= 100; + exports.isDotSymbol = (symbol) => symbolNumber(symbol) >= 200; } }); @@ -65447,7 +65645,7 @@ var Plotly = (() => { "use strict"; var isNumeric2 = require_fast_isnumeric(); var svgSdf = (init_svg_path_sdf(), __toCommonJS(svg_path_sdf_exports)).default; - var { normalize: rgba } = require_color(); + var { normalize: rgba, rgbaString } = require_color(); var Registry = require_registry(); var Lib = require_lib(); var isArrayOrTypedArray = Lib.isArrayOrTypedArray; @@ -65507,7 +65705,7 @@ var Plotly = (() => { opts.line = { overlay: true, thickness: trace.line.width * plotGlPixelRatio, - color: trace.line.color, + color: rgbaString(trace.line.color), opacity: trace.opacity }; var dashes = (constants2.DASHES[trace.line.dash] || [1]).slice(); @@ -65525,7 +65723,7 @@ var Plotly = (() => { if (!!trace.fill && trace.fill !== "none") { opts.fill = { closed: true, - fill: trace.fillcolor, + fill: rgbaString(trace.fillcolor), thickness: 0 }; } @@ -65614,10 +65812,10 @@ var Plotly = (() => { if (isArrayOrTypedArray(tfc)) { optsOut.color = new Array(count); for (i = 0; i < count; i++) { - optsOut.color[i] = tfc[i]; + optsOut.color[i] = rgbaString(tfc[i]); } } else { - optsOut.color = tfc; + optsOut.color = rgbaString(tfc); } if (isArrayOrTypedArray(tfs) || Array.isArray(tff) || isArrayOrTypedArray(tfw) || Array.isArray(tfy) || Array.isArray(tfv)) { optsOut.font = new Array(count); @@ -65785,7 +65983,7 @@ var Plotly = (() => { optsOut = convertMarkerStyle(gd, Lib.extendFlat({}, optsIn, target.marker)); } else if (target.marker) { if (target.marker.size) optsOut.size = target.marker.size; - if (target.marker.color) optsOut.colors = target.marker.color; + if (target.marker.color) optsOut.colors = rgbaString(target.marker.color); if (target.marker.opacity !== void 0) optsOut.opacity = target.marker.opacity; } return optsOut; @@ -65812,10 +66010,10 @@ var Plotly = (() => { var optsOut = { capSize: target.width * 2 * plotGlPixelRatio, lineWidth: target.thickness * plotGlPixelRatio, - color: target.color + color: rgbaString(target.color) }; if (target.copy_ystyle) { - optsOut = trace.error_y; + optsOut = __spreadProps(__spreadValues({}, trace.error_y), { color: rgbaString(trace.error_y.color) }); } return optsOut; } @@ -83467,6 +83665,7 @@ void main() { var createError = require_regl_error2d(); var Text = require_dist2(); var Lib = require_lib(); + var { rgbaString } = require_color(); var selectMode = require_helpers5().selectMode; var prepareRegl = require_prepare_regl(); var subTypes = require_subtypes(); @@ -83652,7 +83851,7 @@ void main() { if (isNaN(xx) || isNaN(yy)) continue; pos.push(xx, yy); } - fillOptions.fill = nextTrace.fillcolor; + fillOptions.fill = rgbaString(nextTrace.fillcolor); } } } @@ -84950,6 +85149,7 @@ void main() { "use strict"; var createLine = require_regl_line2d(); var Registry = require_registry(); + var { rgbaString } = require_color(); var prepareRegl = require_prepare_regl(); var getModuleCalcData = require_get_data().getModuleCalcData; var Cartesian = require_cartesian(); @@ -85043,7 +85243,7 @@ void main() { data: [x0, x1, y0, y1], join: "rect", thickness: lwidth * plotGlPixelRatio, - color: lcolor, + color: rgbaString(lcolor), viewport: fullView, range: fullView, overlay: false diff --git a/dist/plotly-gl2d.min.js b/dist/plotly-gl2d.min.js index 110b09317ea..8540bdd1f92 100644 --- a/dist/plotly-gl2d.min.js +++ b/dist/plotly-gl2d.min.js @@ -1,5 +1,5 @@ /** -* plotly.js (gl2d - minified) v4.1.2 +* plotly.js (gl2d - minified) v4.2.0 * Copyright 2012-2026, Plotly, Inc. * All rights reserved. * Licensed under the MIT license @@ -12,16 +12,16 @@ root.moduleName = factory(); } } (typeof self !== "undefined" ? self : this, () => { -"use strict";var Plotly=(()=>{var pte=Object.create;var v2=Object.defineProperty,mte=Object.defineProperties,yte=Object.getOwnPropertyDescriptor,gte=Object.getOwnPropertyDescriptors,bte=Object.getOwnPropertyNames,ay=Object.getOwnPropertySymbols,xte=Object.getPrototypeOf,i_=Object.prototype.hasOwnProperty,zM=Object.prototype.propertyIsEnumerable;var NM=(e,r,t)=>r in e?v2(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,La=(e,r)=>{for(var t in r||(r={}))i_.call(r,t)&&NM(e,t,r[t]);if(ay)for(var t of ay(r))zM.call(r,t)&&NM(e,t,r[t]);return e},an=(e,r)=>mte(e,gte(r));var BM=(e,r)=>{var t={};for(var a in e)i_.call(e,a)&&r.indexOf(a)<0&&(t[a]=e[a]);if(e!=null&&ay)for(var a of ay(e))r.indexOf(a)<0&&zM.call(e,a)&&(t[a]=e[a]);return t};var Za=(e,r,t)=>()=>{if(t)throw t[0];try{return e&&(r=e(e=0)),r}catch(a){throw t=[a],a}};var B=(e,r)=>()=>{try{return r||e((r={exports:{}}).exports,r),r.exports}catch(t){throw r=0,t}},Ja=(e,r)=>{for(var t in r)v2(e,t,{get:r[t],enumerable:!0})},IM=(e,r,t,a)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of bte(r))!i_.call(e,n)&&n!==t&&v2(e,n,{get:()=>r[n],enumerable:!(a=yte(r,n))||a.enumerable});return e};var h2=(e,r,t)=>(t=e!=null?pte(xte(e)):{},IM(r||!e||!e.__esModule?v2(t,"default",{value:e,enumerable:!0}):t,e)),vr=e=>IM(v2({},"__esModule",{value:!0}),e);var OM=(e,r,t)=>new Promise((a,n)=>{var i=s=>{try{l(t.next(s))}catch(u){n(u)}},o=s=>{try{l(t.throw(s))}catch(u){n(u)}},l=s=>s.done?a(s.value):Promise.resolve(s.value).then(i,o);l((t=t.apply(e,r)).next())});var d2=B(HM=>{"use strict";HM.version="4.1.2"});var GM=B((UM,ny)=>{(function(r,t,a){t[r]=t[r]||a(),typeof ny!="undefined"&&ny.exports&&(ny.exports=t[r])})("Promise",typeof window!="undefined"?window:UM,function(){"use strict";var r,t,a,n=Object.prototype.toString,i=typeof setImmediate!="undefined"?function(T){return setImmediate(T)}:setTimeout;try{Object.defineProperty({},"x",{}),r=function(T,_,x,w){return Object.defineProperty(T,_,{value:x,writable:!0,configurable:w!==!1})}}catch(b){r=function(_,x,w){return _[x]=w,_}}a=(function(){var T,_,x;function w(k,M){this.fn=k,this.self=M,this.next=void 0}return{add:function(M,C){x=new w(M,C),_?_.next=x:T=x,_=x,x=void 0},drain:function(){var M=T;for(T=_=t=void 0;M;)M.fn.call(M.self),M=M.next}}})();function o(b,T){a.add(b,T),t||(t=i(a.drain))}function l(b){var T,_=typeof b;return b!=null&&(_=="object"||_=="function")&&(T=b.then),typeof T=="function"?T:!1}function s(){for(var b=0;b0&&o(s,_))}catch(x){c.call(new d(_),x)}}}function c(b){var T=this;T.triggered||(T.triggered=!0,T.def&&(T=T.def),T.msg=b,T.state=2,T.chain.length>0&&o(s,T))}function v(b,T,_,x){for(var w=0;w{(function(){var e={version:"3.8.2"},r=[].slice,t=function(h){return r.call(h)},a=self.document;function n(h){return h&&(h.ownerDocument||h.document||h).documentElement}function i(h){return h&&(h.ownerDocument&&h.ownerDocument.defaultView||h.document&&h||h.defaultView)}if(a)try{t(a.documentElement.childNodes)[0].nodeType}catch(h){t=function(g){for(var A=g.length,S=new Array(A);A--;)S[A]=g[A];return S}}if(Date.now||(Date.now=function(){return+new Date}),a)try{a.createElement("DIV").style.setProperty("opacity",0,"")}catch(h){var o=this.Element.prototype,l=o.setAttribute,s=o.setAttributeNS,u=this.CSSStyleDeclaration.prototype,f=u.setProperty;o.setAttribute=function(g,A){l.call(this,g,A+"")},o.setAttributeNS=function(g,A,S){s.call(this,g,A,S+"")},u.setProperty=function(g,A,S){f.call(this,g,A+"",S)}}e.ascending=c;function c(h,g){return hg?1:h>=g?0:NaN}e.descending=function(h,g){return gh?1:g>=h?0:NaN},e.min=function(h,g){var A=-1,S=h.length,D,L;if(arguments.length===1){for(;++A=L){D=L;break}for(;++AL&&(D=L)}else{for(;++A=L){D=L;break}for(;++AL&&(D=L)}return D},e.max=function(h,g){var A=-1,S=h.length,D,L;if(arguments.length===1){for(;++A=L){D=L;break}for(;++AD&&(D=L)}else{for(;++A=L){D=L;break}for(;++AD&&(D=L)}return D},e.extent=function(h,g){var A=-1,S=h.length,D,L,N;if(arguments.length===1){for(;++A=L){D=N=L;break}for(;++AL&&(D=L),N=L){D=N=L;break}for(;++AL&&(D=L),N1)return N/(O-1)},e.deviation=function(){var h=e.variance.apply(this,arguments);return h&&Math.sqrt(h)};function p(h){return{left:function(g,A,S,D){for(arguments.length<3&&(S=0),arguments.length<4&&(D=g.length);S>>1;h(g[L],A)<0?S=L+1:D=L}return S},right:function(g,A,S,D){for(arguments.length<3&&(S=0),arguments.length<4&&(D=g.length);S>>1;h(g[L],A)>0?D=L:S=L+1}return S}}}var y=p(c);e.bisectLeft=y.left,e.bisect=e.bisectRight=y.right,e.bisector=function(h){return p(h.length===1?function(g,A){return c(h(g),A)}:h)},e.shuffle=function(h,g,A){(S=arguments.length)<3&&(A=h.length,S<2&&(g=0));for(var S=A-g,D,L;S;)L=Math.random()*S--|0,D=h[S+g],h[S+g]=h[L+g],h[L+g]=D;return h},e.permute=function(h,g){for(var A=g.length,S=new Array(A);A--;)S[A]=h[g[A]];return S},e.pairs=function(h){for(var g=0,A=h.length-1,S,D=h[0],L=new Array(A<0?0:A);g=0;)for(N=h[g],A=N.length;--A>=0;)L[--D]=N[A];return L};var b=Math.abs;e.range=function(h,g,A){if(arguments.length<3&&(A=1,arguments.length<2&&(g=h,h=0)),(g-h)/A===1/0)throw new Error("infinite range");var S=[],D=T(b(A)),L=-1,N;if(h*=D,g*=D,A*=D,A<0)for(;(N=h+A*++L)>g;)S.push(N/D);else for(;(N=h+A*++L)=g.length)return D?D.call(h,O):S?O.sort(S):O;for(var Z=-1,$=O.length,K=g[X++],xe,Se,ee,ce=new x,ye;++Z<$;)(ye=ce.get(xe=K(Se=O[Z])))?ye.push(Se):ce.set(xe,[Se]);return R?(Se=R(),ee=function(Ce,De){Se.set(Ce,L(R,De,X))}):(Se={},ee=function(Ce,De){Se[Ce]=L(R,De,X)}),ce.forEach(ee),Se}function N(R,O){if(O>=g.length)return R;var X=[],Z=A[O++];return R.forEach(function($,K){X.push({key:$,values:N(K,O)})}),Z?X.sort(function($,K){return Z($.key,K.key)}):X}return h.map=function(R,O){return L(O,R,0)},h.entries=function(R){return N(L(e.map,R,0),0)},h.key=function(R){return g.push(R),h},h.sortKeys=function(R){return A[g.length-1]=R,h},h.sortValues=function(R){return S=R,h},h.rollup=function(R){return D=R,h},h},e.set=function(h){var g=new I;if(h)for(var A=0,S=h.length;A=0&&(S=h.slice(A+1),h=h.slice(0,A)),h)return arguments.length<2?this[h].on(S):this[h].on(S,g);if(arguments.length===2){if(g==null)for(h in this)this.hasOwnProperty(h)&&this[h].on(S,null);return this}};function j(h){var g=[],A=new x;function S(){for(var D=g,L=-1,N=D.length,R;++L=0&&(A=h.slice(0,g))!=="xmlns"&&(h=h.slice(g+1)),Ve.hasOwnProperty(A)?{space:Ve[A],local:h}:h}},ge.attr=function(h,g){if(arguments.length<2){if(typeof h=="string"){var A=this.node();return h=e.ns.qualify(h),h.local?A.getAttributeNS(h.space,h.local):A.getAttribute(h)}for(g in h)this.each(Qe(g,h[g]));return this}return this.each(Qe(h,g))};function Qe(h,g){h=e.ns.qualify(h);function A(){this.removeAttribute(h)}function S(){this.removeAttributeNS(h.space,h.local)}function D(){this.setAttribute(h,g)}function L(){this.setAttributeNS(h.space,h.local,g)}function N(){var O=g.apply(this,arguments);O==null?this.removeAttribute(h):this.setAttribute(h,O)}function R(){var O=g.apply(this,arguments);O==null?this.removeAttributeNS(h.space,h.local):this.setAttributeNS(h.space,h.local,O)}return g==null?h.local?S:A:typeof g=="function"?h.local?R:N:h.local?L:D}function er(h){return h.trim().replace(/\s+/g," ")}ge.classed=function(h,g){if(arguments.length<2){if(typeof h=="string"){var A=this.node(),S=(h=yr(h)).length,D=-1;if(g=A.classList){for(;++D=0;)(L=A[S])&&(D&&D!==L.nextSibling&&D.parentNode.insertBefore(L,D),D=L);return this},ge.sort=function(h){h=Le.apply(this,arguments);for(var g=-1,A=this.length;++g=g&&(g=D+1);!(O=N[g])&&++g0&&(h=h.slice(0,D));var N=dr.get(h);N&&(h=N,L=fr);function R(){var Z=this[S];Z&&(this.removeEventListener(h,Z,Z.$),delete this[S])}function O(){var Z=L(g,t(arguments));R.call(this),this.addEventListener(h,this[S]=Z,Z.$=A),Z._=g}function X(){var Z=new RegExp("^__on([^.]+)"+e.requote(h)+"$"),$;for(var K in this)if($=K.match(Z)){var xe=this[K];this.removeEventListener($[1],xe,xe.$),delete this[K]}}return D?g?O:R:g?G:X}var dr=e.map({mouseenter:"mouseover",mouseleave:"mouseout"});a&&dr.forEach(function(h){"on"+h in a&&dr.remove(h)});function kr(h,g){return function(A){var S=e.event;e.event=A,g[0]=this.__data__;try{h.apply(this,g)}finally{e.event=S}}}function fr(h,g){var A=kr(h,g);return function(S){var D=this,L=S.relatedTarget;(!L||L!==D&&!(L.compareDocumentPosition(D)&8))&&A.call(D,S)}}var _r,Vr=0;function qr(h){var g=".dragsuppress-"+ ++Vr,A="click"+g,S=e.select(i(h)).on("touchmove"+g,ae).on("dragstart"+g,ae).on("selectstart"+g,ae);if(_r==null&&(_r="onselectstart"in h?!1:J(h.style,"userSelect")),_r){var D=n(h).style,L=D[_r];D[_r]="none"}return function(N){if(S.on(g,null),_r&&(D[_r]=L),N){var R=function(){S.on(A,null)};S.on(A,function(){ae(),R()},!0),setTimeout(R,0)}}}e.mouse=function(h){return Ie(h,pe())};var Or=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;function Ie(h,g){g.changedTouches&&(g=g.changedTouches[0]);var A=h.ownerSVGElement||h;if(A.createSVGPoint){var S=A.createSVGPoint();if(Or<0){var D=i(h);if(D.scrollX||D.scrollY){A=e.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var L=A[0][0].getScreenCTM();Or=!(L.f||L.e),A.remove()}}return Or?(S.x=g.pageX,S.y=g.pageY):(S.x=g.clientX,S.y=g.clientY),S=S.matrixTransform(h.getScreenCTM().inverse()),[S.x,S.y]}var N=h.getBoundingClientRect();return[g.clientX-N.left-h.clientLeft,g.clientY-N.top-h.clientTop]}e.touch=function(h,g,A){if(arguments.length<3&&(A=g,g=pe().changedTouches),g){for(var S=0,D=g.length,L;S0?1:h<0?-1:0}function va(h,g,A){return(g[0]-h[0])*(A[1]-h[1])-(g[1]-h[1])*(A[0]-h[0])}function ka(h){return h>1?0:h<-1?ft:Math.acos(h)}function Ea(h){return h>1?le:h<-1?-le:Math.asin(h)}function ln(h){return((h=Math.exp(h))-1/h)/2}function tn(h){return((h=Math.exp(h))+1/h)/2}function Yn(h){return((h=Math.exp(2*h))-1)/(h+1)}function vi(h){return(h=Math.sin(h/2))*h}var Tn=Math.SQRT2,Li=2,Hi=4;e.interpolateZoom=function(h,g){var A=h[0],S=h[1],D=h[2],L=g[0],N=g[1],R=g[2],O=L-A,X=N-S,Z=O*O+X*X,$,K;if(Z0&&(Hr=Hr.transition().duration(N)),Hr.call(De.event)}function ct(){ce&&ce.domain(ee.range().map(function(Hr){return(Hr-h.x)/h.k}).map(ee.invert)),Ce&&Ce.domain(ye.range().map(function(Hr){return(Hr-h.y)/h.k}).map(ye.invert))}function vt(Hr){R++||Hr({type:"zoomstart"})}function Bt(Hr){ct(),Hr({type:"zoom",scale:h.k,translate:[h.x,h.y]})}function gt(Hr){--R||(Hr({type:"zoomend"}),A=null)}function Rt(){var Hr=this,It=Se.of(Hr,arguments),Wt=0,ua=e.select(i(Hr)).on(X,ri).on(Z,hi),Xa=he(e.mouse(Hr)),Mn=qr(Hr);mv.call(Hr),vt(It);function ri(){Wt=1,zr(e.mouse(Hr),Xa),Bt(It)}function hi(){ua.on(X,null).on(Z,null),Mn(Wt),gt(It)}}function da(){var Hr=this,It=Se.of(Hr,arguments),Wt={},ua=0,Xa,Mn=".zoom-"+e.event.changedTouches[0].identifier,ri="touchmove"+Mn,hi="touchend"+Mn,Fi=[],H=e.select(Hr),re=qr(Hr);Be(),vt(It),H.on(O,null).on(K,Be);function ie(){var Ye=e.touches(Hr);return Xa=h.k,Ye.forEach(function(gr){gr.identifier in Wt&&(Wt[gr.identifier]=he(gr))}),Ye}function Be(){var Ye=e.event.target;e.select(Ye).on(ri,We).on(hi,$e),Fi.push(Ye);for(var gr=e.event.changedTouches,Rr=0,Pr=gr.length;Rr1){var mt=Nr[0],Kr=Nr[1],cr=mt[0]-Kr[0],Re=mt[1]-Kr[1];ua=cr*cr+Re*Re}}function We(){var Ye=e.touches(Hr),gr,Rr,Pr,Nr;mv.call(Hr);for(var Ct=0,mt=Ye.length;Ct1?1:g,A=A<0?0:A>1?1:A,D=A<=.5?A*(1+g):A+g-A*g,S=2*A-D;function L(R){return R>360?R-=360:R<0&&(R+=360),R<60?S+(D-S)*R/60:R<180?D:R<240?S+(D-S)*(240-R)/60:S}function N(R){return Math.round(L(R)*255)}return new _i(N(h+120),N(h),N(h-120))}e.hcl=_a;function _a(h,g,A){return this instanceof _a?(this.h=+h,this.c=+g,void(this.l=+A)):arguments.length<2?h instanceof _a?new _a(h.h,h.c,h.l):h instanceof vn?Os(h.l,h.a,h.b):Os((h=Gc((h=e.rgb(h)).r,h.g,h.b)).l,h.a,h.b):new _a(h,g,A)}var bn=_a.prototype=new ha;bn.brighter=function(h){return new _a(this.h,this.c,Math.min(100,this.l+za*(arguments.length?h:1)))},bn.darker=function(h){return new _a(this.h,this.c,Math.max(0,this.l-za*(arguments.length?h:1)))},bn.rgb=function(){return Qi(this.h,this.c,this.l).rgb()};function Qi(h,g,A){return isNaN(h)&&(h=0),isNaN(g)&&(g=0),new vn(A,Math.cos(h*=Te)*g,Math.sin(h)*g)}e.lab=vn;function vn(h,g,A){return this instanceof vn?(this.l=+h,this.a=+g,void(this.b=+A)):arguments.length<2?h instanceof vn?new vn(h.l,h.a,h.b):h instanceof _a?Qi(h.h,h.c,h.l):Gc((h=_i(h)).r,h.g,h.b):new vn(h,g,A)}var za=18,xn=.95047,_n=1,Is=1.08883,Ql=vn.prototype=new ha;Ql.brighter=function(h){return new vn(Math.min(100,this.l+za*(arguments.length?h:1)),this.a,this.b)},Ql.darker=function(h){return new vn(Math.max(0,this.l-za*(arguments.length?h:1)),this.a,this.b)},Ql.rgb=function(){return Uc(this.l,this.a,this.b)};function Uc(h,g,A){var S=(h+16)/116,D=S+g/500,L=S-A/200;return D=n0(D)*xn,S=n0(S)*_n,L=n0(L)*Is,new _i(_l(3.2404542*D-1.5371385*S-.4985314*L),_l(-.969266*D+1.8760108*S+.041556*L),_l(.0556434*D-.2040259*S+1.0572252*L))}function Os(h,g,A){return h>0?new _a(Math.atan2(A,g)*sr,Math.sqrt(g*g+A*A),h):new _a(NaN,NaN,h)}function n0(h){return h>.206893034?h*h*h:(h-4/29)/7.787037}function i0(h){return h>.008856?Math.pow(h,1/3):7.787037*h+4/29}function _l(h){return Math.round(255*(h<=.00304?12.92*h:1.055*Math.pow(h,1/2.4)-.055))}e.rgb=_i;function _i(h,g,A){return this instanceof _i?(this.r=~~h,this.g=~~g,void(this.b=~~A)):arguments.length<2?h instanceof _i?new _i(h.r,h.g,h.b):Tl(""+h,_i,wa):new _i(h,g,A)}function wl(h){return new _i(h>>16,h>>8&255,h&255)}function Hs(h){return wl(h)+""}var Do=_i.prototype=new ha;Do.brighter=function(h){h=Math.pow(.7,arguments.length?h:1);var g=this.r,A=this.g,S=this.b,D=30;return!g&&!A&&!S?new _i(D,D,D):(g&&g>4,S=S>>4|S,D=O&240,D=D>>4|D,L=O&15,L=L<<4|L):h.length===7&&(S=(O&16711680)>>16,D=(O&65280)>>8,L=O&255)),g(S,D,L))}function Lu(h,g,A){var S=Math.min(h/=255,g/=255,A/=255),D=Math.max(h,g,A),L=D-S,N,R,O=(D+S)/2;return L?(R=O<.5?L/(D+S):L/(2-D-S),h==D?N=(g-A)/L+(g0&&O<1?0:N),new qa(N,R,O)}function Gc(h,g,A){h=o0(h),g=o0(g),A=o0(A);var S=i0((.4124564*h+.3575761*g+.1804375*A)/xn),D=i0((.2126729*h+.7151522*g+.072175*A)/_n),L=i0((.0193339*h+.119192*g+.9503041*A)/Is);return vn(116*D-16,500*(S-D),200*(D-L))}function o0(h){return(h/=255)<=.04045?h/12.92:Math.pow((h+.055)/1.055,2.4)}function l0(h){var g=parseFloat(h);return h.charAt(h.length-1)==="%"?Math.round(g*2.55):g}var kt=e.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});kt.forEach(function(h,g){kt.set(h,wl(g))});function St(h){return typeof h=="function"?h:function(){return h}}e.functor=St,e.xhr=ga(Y);function ga(h){return function(g,A,S){return arguments.length===2&&typeof A=="function"&&(S=A,A=null),Zr(g,A,h,S)}}function Zr(h,g,A,S){var D={},L=e.dispatch("beforesend","progress","load","error"),N={},R=new XMLHttpRequest,O=null;self.XDomainRequest&&!("withCredentials"in R)&&/^(http(s)?:)?\/\//.test(h)&&(R=new XDomainRequest),"onload"in R?R.onload=R.onerror=X:R.onreadystatechange=function(){R.readyState>3&&X()};function X(){var Z=R.status,$;if(!Z&&Ba(R)||Z>=200&&Z<300||Z===304){try{$=A.call(D,R)}catch(K){L.error.call(D,K);return}L.load.call(D,$)}else L.error.call(D,R)}return R.onprogress=function(Z){var $=e.event;e.event=Z;try{L.progress.call(D,R)}finally{e.event=$}},D.header=function(Z,$){return Z=(Z+"").toLowerCase(),arguments.length<2?N[Z]:($==null?delete N[Z]:N[Z]=$+"",D)},D.mimeType=function(Z){return arguments.length?(g=Z==null?null:Z+"",D):g},D.responseType=function(Z){return arguments.length?(O=Z,D):O},D.response=function(Z){return A=Z,D},["get","post"].forEach(function(Z){D[Z]=function(){return D.send.apply(D,[Z].concat(t(arguments)))}}),D.send=function(Z,$,K){if(arguments.length===2&&typeof $=="function"&&(K=$,$=null),R.open(Z,h,!0),g!=null&&!("accept"in N)&&(N.accept=g+",*/*"),R.setRequestHeader)for(var xe in N)R.setRequestHeader(xe,N[xe]);return g!=null&&R.overrideMimeType&&R.overrideMimeType(g),O!=null&&(R.responseType=O),K!=null&&D.on("error",K).on("load",function(Se){K(null,Se)}),L.beforesend.call(D,R),R.send($==null?null:$),D},D.abort=function(){return R.abort(),D},e.rebind(D,L,"on"),S==null?D:D.get(hn(S))}function hn(h){return h.length===1?function(g,A){h(g==null?A:null)}:h}function Ba(h){var g=h.responseType;return g&&g!=="text"?h.response:h.responseText}e.dsv=function(h,g){var A=new RegExp('["'+h+` -]`),S=h.charCodeAt(0);function D(X,Z,$){arguments.length<3&&($=Z,Z=null);var K=Zr(X,g,Z==null?L:N(Z),$);return K.row=function(xe){return arguments.length?K.response((Z=xe)==null?L:N(xe)):Z},K}function L(X){return D.parse(X.responseText)}function N(X){return function(Z){return D.parse(Z.responseText,X)}}D.parse=function(X,Z){var $;return D.parseRows(X,function(K,xe){if($)return $(K,xe-1);var Se=function(ee){for(var ce={},ye=K.length,Ce=0;Ce=Se)return K;if(Ce)return Ce=!1,$;var lr=ee;if(X.charCodeAt(lr)===34){for(var Ar=lr;Ar++{var _te=Object.create;var f2=Object.defineProperty,wte=Object.defineProperties,Ate=Object.getOwnPropertyDescriptor,Tte=Object.getOwnPropertyDescriptors,Mte=Object.getOwnPropertyNames,ay=Object.getOwnPropertySymbols,kte=Object.getPrototypeOf,f_=Object.prototype.hasOwnProperty,VM=Object.prototype.propertyIsEnumerable;var YM=(e,r,t)=>r in e?f2(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,ka=(e,r)=>{for(var t in r||(r={}))f_.call(r,t)&&YM(e,t,r[t]);if(ay)for(var t of ay(r))VM.call(r,t)&&YM(e,t,r[t]);return e},Va=(e,r)=>wte(e,Tte(r));var XM=(e,r)=>{var t={};for(var a in e)f_.call(e,a)&&r.indexOf(a)<0&&(t[a]=e[a]);if(e!=null&&ay)for(var a of ay(e))r.indexOf(a)<0&&VM.call(e,a)&&(t[a]=e[a]);return t};var Ja=(e,r,t)=>()=>{if(t)throw t[0];try{return e&&(r=e(e=0)),r}catch(a){throw t=[a],a}};var B=(e,r)=>()=>{try{return r||e((r={exports:{}}).exports,r),r.exports}catch(t){throw r=0,t}},ja=(e,r)=>{for(var t in r)f2(e,t,{get:r[t],enumerable:!0})},WM=(e,r,t,a)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of Mte(r))!f_.call(e,n)&&n!==t&&f2(e,n,{get:()=>r[n],enumerable:!(a=Ate(r,n))||a.enumerable});return e};var c2=(e,r,t)=>(t=e!=null?_te(kte(e)):{},WM(r||!e||!e.__esModule?f2(t,"default",{value:e,enumerable:!0}):t,e)),vr=e=>WM(f2({},"__esModule",{value:!0}),e);var ZM=(e,r,t)=>new Promise((a,n)=>{var i=s=>{try{l(t.next(s))}catch(u){n(u)}},o=s=>{try{l(t.throw(s))}catch(u){n(u)}},l=s=>s.done?a(s.value):Promise.resolve(s.value).then(i,o);l((t=t.apply(e,r)).next())});var v2=B(JM=>{"use strict";JM.version="4.2.0"});var $M=B((jM,ny)=>{(function(r,t,a){t[r]=t[r]||a(),typeof ny!="undefined"&&ny.exports&&(ny.exports=t[r])})("Promise",typeof window!="undefined"?window:jM,function(){"use strict";var r,t,a,n=Object.prototype.toString,i=typeof setImmediate!="undefined"?function(T){return setImmediate(T)}:setTimeout;try{Object.defineProperty({},"x",{}),r=function(T,_,x,w){return Object.defineProperty(T,_,{value:x,writable:!0,configurable:w!==!1})}}catch(b){r=function(_,x,w){return _[x]=w,_}}a=(function(){var T,_,x;function w(k,M){this.fn=k,this.self=M,this.next=void 0}return{add:function(M,C){x=new w(M,C),_?_.next=x:T=x,_=x,x=void 0},drain:function(){var M=T;for(T=_=t=void 0;M;)M.fn.call(M.self),M=M.next}}})();function o(b,T){a.add(b,T),t||(t=i(a.drain))}function l(b){var T,_=typeof b;return b!=null&&(_=="object"||_=="function")&&(T=b.then),typeof T=="function"?T:!1}function s(){for(var b=0;b0&&o(s,_))}catch(x){c.call(new d(_),x)}}}function c(b){var T=this;T.triggered||(T.triggered=!0,T.def&&(T=T.def),T.msg=b,T.state=2,T.chain.length>0&&o(s,T))}function v(b,T,_,x){for(var w=0;w{(function(){var e={version:"3.8.2"},r=[].slice,t=function(h){return r.call(h)},a=self.document;function n(h){return h&&(h.ownerDocument||h.document||h).documentElement}function i(h){return h&&(h.ownerDocument&&h.ownerDocument.defaultView||h.document&&h||h.defaultView)}if(a)try{t(a.documentElement.childNodes)[0].nodeType}catch(h){t=function(g){for(var A=g.length,S=new Array(A);A--;)S[A]=g[A];return S}}if(Date.now||(Date.now=function(){return+new Date}),a)try{a.createElement("DIV").style.setProperty("opacity",0,"")}catch(h){var o=this.Element.prototype,l=o.setAttribute,s=o.setAttributeNS,u=this.CSSStyleDeclaration.prototype,f=u.setProperty;o.setAttribute=function(g,A){l.call(this,g,A+"")},o.setAttributeNS=function(g,A,S){s.call(this,g,A,S+"")},u.setProperty=function(g,A,S){f.call(this,g,A+"",S)}}e.ascending=c;function c(h,g){return hg?1:h>=g?0:NaN}e.descending=function(h,g){return gh?1:g>=h?0:NaN},e.min=function(h,g){var A=-1,S=h.length,D,L;if(arguments.length===1){for(;++A=L){D=L;break}for(;++AL&&(D=L)}else{for(;++A=L){D=L;break}for(;++AL&&(D=L)}return D},e.max=function(h,g){var A=-1,S=h.length,D,L;if(arguments.length===1){for(;++A=L){D=L;break}for(;++AD&&(D=L)}else{for(;++A=L){D=L;break}for(;++AD&&(D=L)}return D},e.extent=function(h,g){var A=-1,S=h.length,D,L,N;if(arguments.length===1){for(;++A=L){D=N=L;break}for(;++AL&&(D=L),N=L){D=N=L;break}for(;++AL&&(D=L),N1)return N/(O-1)},e.deviation=function(){var h=e.variance.apply(this,arguments);return h&&Math.sqrt(h)};function p(h){return{left:function(g,A,S,D){for(arguments.length<3&&(S=0),arguments.length<4&&(D=g.length);S>>1;h(g[L],A)<0?S=L+1:D=L}return S},right:function(g,A,S,D){for(arguments.length<3&&(S=0),arguments.length<4&&(D=g.length);S>>1;h(g[L],A)>0?D=L:S=L+1}return S}}}var m=p(c);e.bisectLeft=m.left,e.bisect=e.bisectRight=m.right,e.bisector=function(h){return p(h.length===1?function(g,A){return c(h(g),A)}:h)},e.shuffle=function(h,g,A){(S=arguments.length)<3&&(A=h.length,S<2&&(g=0));for(var S=A-g,D,L;S;)L=Math.random()*S--|0,D=h[S+g],h[S+g]=h[L+g],h[L+g]=D;return h},e.permute=function(h,g){for(var A=g.length,S=new Array(A);A--;)S[A]=h[g[A]];return S},e.pairs=function(h){for(var g=0,A=h.length-1,S,D=h[0],L=new Array(A<0?0:A);g=0;)for(N=h[g],A=N.length;--A>=0;)L[--D]=N[A];return L};var b=Math.abs;e.range=function(h,g,A){if(arguments.length<3&&(A=1,arguments.length<2&&(g=h,h=0)),(g-h)/A===1/0)throw new Error("infinite range");var S=[],D=T(b(A)),L=-1,N;if(h*=D,g*=D,A*=D,A<0)for(;(N=h+A*++L)>g;)S.push(N/D);else for(;(N=h+A*++L)=g.length)return D?D.call(h,O):S?O.sort(S):O;for(var J=-1,$=O.length,K=g[X++],we,ke,re,ve=new x,xe;++J<$;)(xe=ve.get(we=K(ke=O[J])))?xe.push(ke):ve.set(we,[ke]);return R?(ke=R(),re=function(Se,De){ke.set(Se,L(R,De,X))}):(ke={},re=function(Se,De){ke[Se]=L(R,De,X)}),ve.forEach(re),ke}function N(R,O){if(O>=g.length)return R;var X=[],J=A[O++];return R.forEach(function($,K){X.push({key:$,values:N(K,O)})}),J?X.sort(function($,K){return J($.key,K.key)}):X}return h.map=function(R,O){return L(O,R,0)},h.entries=function(R){return N(L(e.map,R,0),0)},h.key=function(R){return g.push(R),h},h.sortKeys=function(R){return A[g.length-1]=R,h},h.sortValues=function(R){return S=R,h},h.rollup=function(R){return D=R,h},h},e.set=function(h){var g=new I;if(h)for(var A=0,S=h.length;A=0&&(S=h.slice(A+1),h=h.slice(0,A)),h)return arguments.length<2?this[h].on(S):this[h].on(S,g);if(arguments.length===2){if(g==null)for(h in this)this.hasOwnProperty(h)&&this[h].on(S,null);return this}};function j(h){var g=[],A=new x;function S(){for(var D=g,L=-1,N=D.length,R;++L=0&&(A=h.slice(0,g))!=="xmlns"&&(h=h.slice(g+1)),Ue.hasOwnProperty(A)?{space:Ue[A],local:h}:h}},ge.attr=function(h,g){if(arguments.length<2){if(typeof h=="string"){var A=this.node();return h=e.ns.qualify(h),h.local?A.getAttributeNS(h.space,h.local):A.getAttribute(h)}for(g in h)this.each(Ye(g,h[g]));return this}return this.each(Ye(h,g))};function Ye(h,g){h=e.ns.qualify(h);function A(){this.removeAttribute(h)}function S(){this.removeAttributeNS(h.space,h.local)}function D(){this.setAttribute(h,g)}function L(){this.setAttributeNS(h.space,h.local,g)}function N(){var O=g.apply(this,arguments);O==null?this.removeAttribute(h):this.setAttribute(h,O)}function R(){var O=g.apply(this,arguments);O==null?this.removeAttributeNS(h.space,h.local):this.setAttributeNS(h.space,h.local,O)}return g==null?h.local?S:A:typeof g=="function"?h.local?R:N:h.local?L:D}function We(h){return h.trim().replace(/\s+/g," ")}ge.classed=function(h,g){if(arguments.length<2){if(typeof h=="string"){var A=this.node(),S=(h=ar(h)).length,D=-1;if(g=A.classList){for(;++D=0;)(L=A[S])&&(D&&D!==L.nextSibling&&D.parentNode.insertBefore(L,D),D=L);return this},ge.sort=function(h){h=Ee.apply(this,arguments);for(var g=-1,A=this.length;++g=g&&(g=D+1);!(O=N[g])&&++g0&&(h=h.slice(0,D));var N=lr.get(h);N&&(h=N,L=fr);function R(){var J=this[S];J&&(this.removeEventListener(h,J,J.$),delete this[S])}function O(){var J=L(g,t(arguments));R.call(this),this.addEventListener(h,this[S]=J,J.$=A),J._=g}function X(){var J=new RegExp("^__on([^.]+)"+e.requote(h)+"$"),$;for(var K in this)if($=K.match(J)){var we=this[K];this.removeEventListener($[1],we,we.$),delete this[K]}}return D?g?O:R:g?Y:X}var lr=e.map({mouseenter:"mouseover",mouseleave:"mouseout"});a&&lr.forEach(function(h){"on"+h in a&&lr.remove(h)});function wr(h,g){return function(A){var S=e.event;e.event=A,g[0]=this.__data__;try{h.apply(this,g)}finally{e.event=S}}}function fr(h,g){var A=wr(h,g);return function(S){var D=this,L=S.relatedTarget;(!L||L!==D&&!(L.compareDocumentPosition(D)&8))&&A.call(D,S)}}var kr,qr=0;function $r(h){var g=".dragsuppress-"+ ++qr,A="click"+g,S=e.select(i(h)).on("touchmove"+g,ee).on("dragstart"+g,ee).on("selectstart"+g,ee);if(kr==null&&(kr="onselectstart"in h?!1:W(h.style,"userSelect")),kr){var D=n(h).style,L=D[kr];D[kr]="none"}return function(N){if(S.on(g,null),kr&&(D[kr]=L),N){var R=function(){S.on(A,null)};S.on(A,function(){ee(),R()},!0),setTimeout(R,0)}}}e.mouse=function(h){return Ge(h,ye())};var tt=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;function Ge(h,g){g.changedTouches&&(g=g.changedTouches[0]);var A=h.ownerSVGElement||h;if(A.createSVGPoint){var S=A.createSVGPoint();if(tt<0){var D=i(h);if(D.scrollX||D.scrollY){A=e.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var L=A[0][0].getScreenCTM();tt=!(L.f||L.e),A.remove()}}return tt?(S.x=g.pageX,S.y=g.pageY):(S.x=g.clientX,S.y=g.clientY),S=S.matrixTransform(h.getScreenCTM().inverse()),[S.x,S.y]}var N=h.getBoundingClientRect();return[g.clientX-N.left-h.clientLeft,g.clientY-N.top-h.clientTop]}e.touch=function(h,g,A){if(arguments.length<3&&(A=g,g=ye().changedTouches),g){for(var S=0,D=g.length,L;S0?1:h<0?-1:0}function ra(h,g,A){return(g[0]-h[0])*(A[1]-h[1])-(g[1]-h[1])*(A[0]-h[0])}function Ca(h){return h>1?0:h<-1?at:Math.acos(h)}function Ha(h){return h>1?le:h<-1?-le:Math.asin(h)}function an(h){return((h=Math.exp(h))-1/h)/2}function yn(h){return((h=Math.exp(h))+1/h)/2}function sn(h){return((h=Math.exp(2*h))-1)/(h+1)}function Yn(h){return(h=Math.sin(h/2))*h}var qa=Math.SQRT2,un=2,fn=4;e.interpolateZoom=function(h,g){var A=h[0],S=h[1],D=h[2],L=g[0],N=g[1],R=g[2],O=L-A,X=N-S,J=O*O+X*X,$,K;if(J0&&(Or=Or.transition().duration(N)),Or.call(De.event)}function ct(){ve&&ve.domain(re.range().map(function(Or){return(Or-h.x)/h.k}).map(re.invert)),Se&&Se.domain(xe.range().map(function(Or){return(Or-h.y)/h.k}).map(xe.invert))}function vt(Or){R++||Or({type:"zoomstart"})}function Bt(Or){ct(),Or({type:"zoom",scale:h.k,translate:[h.x,h.y]})}function gt(Or){--R||(Or({type:"zoomend"}),A=null)}function Rt(){var Or=this,It=ke.of(Or,arguments),Wt=0,va=e.select(i(Or)).on(X,ui).on(J,xi),Wa=me(e.mouse(Or)),En=$r(Or);gv.call(Or),vt(It);function ui(){Wt=1,Nr(e.mouse(Or),Wa),Bt(It)}function xi(){va.on(X,null).on(J,null),En(Wt),gt(It)}}function pa(){var Or=this,It=ke.of(Or,arguments),Wt={},va=0,Wa,En=".zoom-"+e.event.changedTouches[0].identifier,ui="touchmove"+En,xi="touchend"+En,zi=[],H=e.select(Or),te=$r(Or);Be(),vt(It),H.on(O,null).on(K,Be);function ie(){var Xe=e.touches(Or);return Wa=h.k,Xe.forEach(function(yr){yr.identifier in Wt&&(Wt[yr.identifier]=me(yr))}),Xe}function Be(){var Xe=e.event.target;e.select(Xe).on(ui,Ze).on(xi,Qe),zi.push(Xe);for(var yr=e.event.changedTouches,Lr=0,Er=yr.length;Lr1){var mt=Fr[0],jr=Fr[1],cr=mt[0]-jr[0],Pe=mt[1]-jr[1];va=cr*cr+Pe*Pe}}function Ze(){var Xe=e.touches(Or),yr,Lr,Er,Fr;gv.call(Or);for(var Ct=0,mt=Xe.length;Ct1?1:g,A=A<0?0:A>1?1:A,D=A<=.5?A*(1+g):A+g-A*g,S=2*A-D;function L(R){return R>360?R-=360:R<0&&(R+=360),R<60?S+(D-S)*R/60:R<180?D:R<240?S+(D-S)*(240-R)/60:S}function N(R){return Math.round(L(R)*255)}return new Kn(N(h+120),N(h),N(h-120))}e.hcl=Aa;function Aa(h,g,A){return this instanceof Aa?(this.h=+h,this.c=+g,void(this.l=+A)):arguments.length<2?h instanceof Aa?new Aa(h.h,h.c,h.l):h instanceof ba?as(h.l,h.a,h.b):as((h=Vc((h=e.rgb(h)).r,h.g,h.b)).l,h.a,h.b):new Aa(h,g,A)}var za=Aa.prototype=new Dn;za.brighter=function(h){return new Aa(this.h,this.c,Math.min(100,this.l+Da*(arguments.length?h:1)))},za.darker=function(h){return new Aa(this.h,this.c,Math.max(0,this.l-Da*(arguments.length?h:1)))},za.rgb=function(){return Vn(this.h,this.c,this.l).rgb()};function Vn(h,g,A){return isNaN(h)&&(h=0),isNaN(g)&&(g=0),new ba(A,Math.cos(h*=Te)*g,Math.sin(h)*g)}e.lab=ba;function ba(h,g,A){return this instanceof ba?(this.l=+h,this.a=+g,void(this.b=+A)):arguments.length<2?h instanceof ba?new ba(h.l,h.a,h.b):h instanceof Aa?Vn(h.h,h.c,h.l):Vc((h=Kn(h)).r,h.g,h.b):new ba(h,g,A)}var Da=18,Ln=.95047,Fo=1,Qo=1.08883,co=ba.prototype=new Dn;co.brighter=function(h){return new ba(Math.min(100,this.l+Da*(arguments.length?h:1)),this.a,this.b)},co.darker=function(h){return new ba(Math.max(0,this.l-Da*(arguments.length?h:1)),this.a,this.b)},co.rgb=function(){return Mn(this.l,this.a,this.b)};function Mn(h,g,A){var S=(h+16)/116,D=S+g/500,L=S-A/200;return D=$n(D)*Ln,S=$n(S)*Fo,L=$n(L)*Qo,new Kn(Ro(3.2404542*D-1.5371385*S-.4985314*L),Ro(-.969266*D+1.8760108*S+.041556*L),Ro(.0556434*D-.2040259*S+1.0572252*L))}function as(h,g,A){return h>0?new Aa(Math.atan2(A,g)*tr,Math.sqrt(g*g+A*A),h):new Aa(NaN,NaN,h)}function $n(h){return h>.206893034?h*h*h:(h-4/29)/7.787037}function ns(h){return h>.008856?Math.pow(h,1/3):7.787037*h+4/29}function Ro(h){return Math.round(255*(h<=.00304?12.92*h:1.055*Math.pow(h,1/2.4)-.055))}e.rgb=Kn;function Kn(h,g,A){return this instanceof Kn?(this.r=~~h,this.g=~~g,void(this.b=~~A)):arguments.length<2?h instanceof Kn?new Kn(h.r,h.g,h.b):Cl(""+h,Kn,Zt):new Kn(h,g,A)}function kl(h){return new Kn(h>>16,h>>8&255,h&255)}function Ys(h){return kl(h)+""}var Po=Kn.prototype=new Dn;Po.brighter=function(h){h=Math.pow(.7,arguments.length?h:1);var g=this.r,A=this.g,S=this.b,D=30;return!g&&!A&&!S?new Kn(D,D,D):(g&&g>4,S=S>>4|S,D=O&240,D=D>>4|D,L=O&15,L=L<<4|L):h.length===7&&(S=(O&16711680)>>16,D=(O&65280)>>8,L=O&255)),g(S,D,L))}function Pu(h,g,A){var S=Math.min(h/=255,g/=255,A/=255),D=Math.max(h,g,A),L=D-S,N,R,O=(D+S)/2;return L?(R=O<.5?L/(D+S):L/(2-D-S),h==D?N=(g-A)/L+(g0&&O<1?0:N),new Ir(N,R,O)}function Vc(h,g,A){h=u0(h),g=u0(g),A=u0(A);var S=ns((.4124564*h+.3575761*g+.1804375*A)/Ln),D=ns((.2126729*h+.7151522*g+.072175*A)/Fo),L=ns((.0193339*h+.119192*g+.9503041*A)/Qo);return ba(116*D-16,500*(S-D),200*(D-L))}function u0(h){return(h/=255)<=.04045?h/12.92:Math.pow((h+.055)/1.055,2.4)}function f0(h){var g=parseFloat(h);return h.charAt(h.length-1)==="%"?Math.round(g*2.55):g}var kt=e.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});kt.forEach(function(h,g){kt.set(h,kl(g))});function St(h){return typeof h=="function"?h:function(){return h}}e.functor=St,e.xhr=xa(U);function xa(h){return function(g,A,S){return arguments.length===2&&typeof A=="function"&&(S=A,A=null),Wr(g,A,h,S)}}function Wr(h,g,A,S){var D={},L=e.dispatch("beforesend","progress","load","error"),N={},R=new XMLHttpRequest,O=null;self.XDomainRequest&&!("withCredentials"in R)&&/^(http(s)?:)?\/\//.test(h)&&(R=new XDomainRequest),"onload"in R?R.onload=R.onerror=X:R.onreadystatechange=function(){R.readyState>3&&X()};function X(){var J=R.status,$;if(!J&&Ba(R)||J>=200&&J<300||J===304){try{$=A.call(D,R)}catch(K){L.error.call(D,K);return}L.load.call(D,$)}else L.error.call(D,R)}return R.onprogress=function(J){var $=e.event;e.event=J;try{L.progress.call(D,R)}finally{e.event=$}},D.header=function(J,$){return J=(J+"").toLowerCase(),arguments.length<2?N[J]:($==null?delete N[J]:N[J]=$+"",D)},D.mimeType=function(J){return arguments.length?(g=J==null?null:J+"",D):g},D.responseType=function(J){return arguments.length?(O=J,D):O},D.response=function(J){return A=J,D},["get","post"].forEach(function(J){D[J]=function(){return D.send.apply(D,[J].concat(t(arguments)))}}),D.send=function(J,$,K){if(arguments.length===2&&typeof $=="function"&&(K=$,$=null),R.open(J,h,!0),g!=null&&!("accept"in N)&&(N.accept=g+",*/*"),R.setRequestHeader)for(var we in N)R.setRequestHeader(we,N[we]);return g!=null&&R.overrideMimeType&&R.overrideMimeType(g),O!=null&&(R.responseType=O),K!=null&&D.on("error",K).on("load",function(ke){K(null,ke)}),L.beforesend.call(D,R),R.send($==null?null:$),D},D.abort=function(){return R.abort(),D},e.rebind(D,L,"on"),S==null?D:D.get(xn(S))}function xn(h){return h.length===1?function(g,A){h(g==null?A:null)}:h}function Ba(h){var g=h.responseType;return g&&g!=="text"?h.response:h.responseText}e.dsv=function(h,g){var A=new RegExp('["'+h+` +]`),S=h.charCodeAt(0);function D(X,J,$){arguments.length<3&&($=J,J=null);var K=Wr(X,g,J==null?L:N(J),$);return K.row=function(we){return arguments.length?K.response((J=we)==null?L:N(we)):J},K}function L(X){return D.parse(X.responseText)}function N(X){return function(J){return D.parse(J.responseText,X)}}D.parse=function(X,J){var $;return D.parseRows(X,function(K,we){if($)return $(K,we-1);var ke=function(re){for(var ve={},xe=K.length,Se=0;Se=ke)return K;if(Se)return Se=!1,$;var sr=re;if(X.charCodeAt(sr)===34){for(var Ar=sr;Ar++24?(isFinite(g)&&(clearTimeout(eo),eo=setTimeout(Gs,g)),qi=0):(qi=1,Yc(Gs))}e.timer.flush=function(){s0(),bd()};function s0(){for(var h=Date.now(),g=Ua;g;)h>=g.t&&g.c(h-g.t)&&(g.c=null),g=g.n;return h}function bd(){for(var h,g=Ua,A=1/0;g;)g.c?(g.t=0;--R)ee.push(D[X[$[R]][2]]);for(R=+xe;R1&&va(h[A[S-2]],h[A[S-1]],h[D])<=0;)--S;A[S++]=D}return A.slice(0,S)}function Tx(h,g){return h[0]-g[0]||h[1]-g[1]}e.geom.polygon=function(h){return te(h,Vc),h};var Vc=e.geom.polygon.prototype=[];Vc.area=function(){for(var h=-1,g=this.length,A,S=this[g-1],D=0;++hur)R=R.L;else if(N=g-im(R,A),N>ur){if(!R.R){S=R;break}R=R.R}else{L>-ur?(S=R.P,D=R):N>-ur?(S=R,D=R.N):S=D=R;break}var O=_d(h);if(Lo.insert(S,O),!(!S&&!D)){if(S===D){Fu(S),D=_d(S.site),Lo.insert(O,D),O.edge=D.edge=v0(S.site,O.site),Zo(S),Zo(D);return}if(!D){O.edge=v0(S.site,O.site);return}Fu(S),Fu(D);var X=S.site,Z=X.x,$=X.y,K=h.x-Z,xe=h.y-$,Se=D.site,ee=Se.x-Z,ce=Se.y-$,ye=2*(K*ce-xe*ee),Ce=K*K+xe*xe,De=ee*ee+ce*ce,he={x:(ce*Ce-xe*De)/ye+Z,y:(K*De-ee*Ce)/ye+$};Ru(D.edge,X,Se,he),O.edge=v0(X,h,null,he),D.edge=v0(h,Se,null,he),Zo(S),Zo(D)}}function wd(h,g){var A=h.site,S=A.x,D=A.y,L=D-g;if(!L)return S;var N=h.P;if(!N)return-1/0;A=N.site;var R=A.x,O=A.y,X=O-g;if(!X)return R;var Z=R-S,$=1/L-1/X,K=Z/X;return $?(-K+Math.sqrt(K*K-2*$*(Z*Z/(-2*X)-O+X/2+D-L/2)))/$+S:(S+R)/2}function im(h,g){var A=h.N;if(A)return wd(A,g);var S=h.site;return S.y===g?S.x:1/0}function Ad(h){this.site=h,this.edges=[]}Ad.prototype.prepare=function(){for(var h=this.edges,g=h.length,A;g--;)A=h[g].edge,(!A.b||!A.a)&&h.splice(g,1);return h.sort(Jc),h.length};function qu(h){for(var g=h[0][0],A=h[1][0],S=h[0][1],D=h[1][1],L,N,R,O,X=Ml,Z=X.length,$,K,xe,Se,ee,ce;Z--;)if($=X[Z],!(!$||!$.prepare()))for(xe=$.edges,Se=xe.length,K=0;Kur||b(O-N)>ur)&&(xe.splice(K,0,new jc(Sx($.site,ce,b(R-g)ur?{x:g,y:b(L-g)ur?{x:b(N-D)ur?{x:A,y:b(L-A)ur?{x:b(N-S)=-at)){var K=O*O+X*X,xe=Z*Z+ce*ce,Se=(ce*K-X*xe)/$,ee=(O*xe-Z*K)/$,ce=ee+R,ye=Wc.pop()||new Td;ye.arc=h,ye.site=D,ye.x=Se+N,ye.y=ce+Math.sqrt(Se*Se+ee*ee),ye.cy=ce,h.circle=ye;for(var Ce=null,De=Ys._;De;)if(ye.y0)){if(ee/=xe,xe<0){if(ee<$)return;ee0){if(ee>K)return;ee>$&&($=ee)}if(ee=A-R,!(!xe&&ee<0)){if(ee/=xe,xe<0){if(ee>K)return;ee>$&&($=ee)}else if(xe>0){if(ee<$)return;ee0)){if(ee/=Se,Se<0){if(ee<$)return;ee0){if(ee>K)return;ee>$&&($=ee)}if(ee=S-O,!(!Se&&ee<0)){if(ee/=Se,Se<0){if(ee>K)return;ee>$&&($=ee)}else if(Se>0){if(ee<$)return;ee0&&(D.a={x:R+$*xe,y:O+$*Se}),K<1&&(D.b={x:R+K*xe,y:O+K*Se}),D}}}}}}function kx(h){for(var g=rs,A=Mx(h[0][0],h[0][1],h[1][0],h[1][1]),S=g.length,D;S--;)D=g[S],(!Md(D,h)||!A(D)||b(D.a.x-D.b.x)=L)return;if(Z>K){if(!S)S={x:Se,y:N};else if(S.y>=R)return;A={x:Se,y:R}}else{if(!S)S={x:Se,y:R};else if(S.y1)if(Z>K){if(!S)S={x:(N-ye)/ce,y:N};else if(S.y>=R)return;A={x:(R-ye)/ce,y:R}}else{if(!S)S={x:(R-ye)/ce,y:R};else if(S.y=L)return;A={x:L,y:ce*L+ye}}else{if(!S)S={x:L,y:ce*L+ye};else if(S.x=Z&&ye.x<=K&&ye.y>=$&&ye.y<=xe?[[Z,xe],[K,xe],[K,$],[Z,$]]:[];Ce.point=O[ee]}),X}function R(O){return O.map(function(X,Z){return{x:Math.round(S(X,Z)/ur)*ur,y:Math.round(D(X,Z)/ur)*ur,i:Z}})}return N.links=function(O){return Nu(R(O)).edges.filter(function(X){return X.l&&X.r}).map(function(X){return{source:O[X.l.i],target:O[X.r.i]}})},N.triangles=function(O){var X=[];return Nu(R(O)).cells.forEach(function(Z,$){for(var K=Z.site,xe=Z.edges.sort(Jc),Se=-1,ee=xe.length,ce,ye,Ce=xe[ee-1].edge,De=Ce.l===K?Ce.r:Ce.l;++SeDe&&(De=Z.x),Z.y>he&&(he=Z.y),xe.push(Z.x),Se.push(Z.y);else for(ee=0;eeDe&&(De=lr),Ar>he&&(he=Ar),xe.push(lr),Se.push(Ar)}var zr=De-ye,Jr=he-Ce;zr>Jr?he=Ce+zr:De=ye+Jr;function ct(gt,Rt,da,pn,Aa,Hr,It,Wt){if(!(isNaN(da)||isNaN(pn)))if(gt.leaf){var ua=gt.x,Xa=gt.y;if(ua!=null)if(b(ua-da)+b(Xa-pn)<.01)vt(gt,Rt,da,pn,Aa,Hr,It,Wt);else{var Mn=gt.point;gt.x=gt.y=gt.point=null,vt(gt,Mn,ua,Xa,Aa,Hr,It,Wt),vt(gt,Rt,da,pn,Aa,Hr,It,Wt)}else gt.x=da,gt.y=pn,gt.point=Rt}else vt(gt,Rt,da,pn,Aa,Hr,It,Wt)}function vt(gt,Rt,da,pn,Aa,Hr,It,Wt){var ua=(Aa+It)*.5,Xa=(Hr+Wt)*.5,Mn=da>=ua,ri=pn>=Xa,hi=ri<<1|Mn;gt.leaf=!1,gt=gt.nodes[hi]||(gt.nodes[hi]=sm()),Mn?Aa=ua:It=ua,ri?Hr=Xa:Wt=Xa,ct(gt,Rt,da,pn,Aa,Hr,It,Wt)}var Bt=sm();if(Bt.add=function(gt){ct(Bt,gt,+$(gt,++ee),+K(gt,ee),ye,Ce,De,he)},Bt.visit=function(gt){p0(gt,Bt,ye,Ce,De,he)},Bt.find=function(gt){return um(Bt,gt[0],gt[1],ye,Ce,De,he)},ee=-1,g==null){for(;++eeL||K>N||xe=lr,Jr=A>=Ar,ct=Jr<<1|zr,vt=ct+4;ctA&&(L=g.slice(A,L),R[N]?R[N]+=L:R[++N]=L),(S=S[0])===(D=D[0])?R[N]?R[N]+=D:R[++N]=D:(R[++N]=null,O.push({i:N,x:so(S,D)})),A=Kc.lastIndex;return A=0&&!(S=e.interpolators[A](h,g)););return S}e.interpolators=[function(h,g){var A=typeof g;return(A==="string"?kt.has(g.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(g)?Xs:uo:g instanceof ha?Xs:Array.isArray(g)?m0:A==="object"&&isNaN(g)?fm:so)(h,g)}],e.interpolateArray=m0;function m0(h,g){var A=[],S=[],D=h.length,L=g.length,N=Math.min(h.length,g.length),R;for(R=0;R=0?h.slice(0,g):h,S=g>=0?h.slice(g+1):"in";return A=cm.get(A)||kd,S=vm.get(S)||Y,qx(S(A.apply(null,r.call(arguments,1))))};function qx(h){return function(g){return g<=0?0:g>=1?1:h(g)}}function Ws(h){return function(g){return 1-h(1-g)}}function Vn(h){return function(g){return .5*(g<.5?h(2*g):2-h(2-2*g))}}function hm(h){return h*h}function dm(h){return h*h*h}function Zs(h){if(h<=0)return 0;if(h>=1)return 1;var g=h*h,A=g*h;return 4*(h<.5?A:3*(h-g)+A-.75)}function pm(h){return function(g){return Math.pow(g,h)}}function mm(h){return 1-Math.cos(h*le)}function Fx(h){return Math.pow(2,10*(h-1))}function Rx(h){return 1-Math.sqrt(1-h*h)}function Px(h,g){var A;return arguments.length<2&&(g=.45),arguments.length?A=g/jr*Math.asin(1/h):(h=1,A=g/4),function(S){return 1+h*Math.pow(2,-10*S)*Math.sin((S-A)*jr/g)}}function Nx(h){return h||(h=1.70158),function(g){return g*g*((h+1)*g-h)}}function Sd(h){return h<1/2.75?7.5625*h*h:h<2/2.75?7.5625*(h-=1.5/2.75)*h+.75:h<2.5/2.75?7.5625*(h-=2.25/2.75)*h+.9375:7.5625*(h-=2.625/2.75)*h+.984375}e.interpolateHcl=ym;function ym(h,g){h=e.hcl(h),g=e.hcl(g);var A=h.h,S=h.c,D=h.l,L=g.h-A,N=g.c-S,R=g.l-D;return isNaN(N)&&(N=0,S=isNaN(S)?g.c:S),isNaN(L)?(L=0,A=isNaN(A)?g.h:A):L>180?L-=360:L<-180&&(L+=360),function(O){return Qi(A+L*O,S+N*O,D+R*O)+""}}e.interpolateHsl=zx;function zx(h,g){h=e.hsl(h),g=e.hsl(g);var A=h.h,S=h.s,D=h.l,L=g.h-A,N=g.s-S,R=g.l-D;return isNaN(N)&&(N=0,S=isNaN(S)?g.s:S),isNaN(L)?(L=0,A=isNaN(A)?g.h:A):L>180?L-=360:L<-180&&(L+=360),function(O){return wa(A+L*O,S+N*O,D+R*O)+""}}e.interpolateLab=gm;function gm(h,g){h=e.lab(h),g=e.lab(g);var A=h.l,S=h.a,D=h.b,L=g.l-A,N=g.a-S,R=g.b-D;return function(O){return Uc(A+L*O,S+N*O,D+R*O)+""}}e.interpolateRound=Cd;function Cd(h,g){return g-=h,function(A){return Math.round(h+g*A)}}e.transform=function(h){var g=a.createElementNS(e.ns.prefix.svg,"g");return(e.transform=function(A){if(A!=null){g.setAttribute("transform",A);var S=g.transform.baseVal.consolidate()}return new bm(S?S.matrix:Qc)})(h)};function bm(h){var g=[h.a,h.b],A=[h.c,h.d],S=xm(g),D=y0(g,A),L=xm(ns(A,g,-D))||0;g[0]*A[1]180?g+=360:g-h>180&&(h+=360),S.push({i:A.push(Js(A)+"rotate(",null,")")-2,x:so(h,g)})):g&&A.push(Js(A)+"rotate("+g+")")}function Am(h,g,A,S){h!==g?S.push({i:A.push(Js(A)+"skewX(",null,")")-2,x:so(h,g)}):g&&A.push(Js(A)+"skewX("+g+")")}function Tm(h,g,A,S){if(h[0]!==g[0]||h[1]!==g[1]){var D=A.push(Js(A)+"scale(",null,",",null,")");S.push({i:D-4,x:so(h[0],g[0])},{i:D-2,x:so(h[1],g[1])})}else(g[0]!==1||g[1]!==1)&&A.push(Js(A)+"scale("+g+")")}function Dd(h,g){var A=[],S=[];return h=e.transform(h),g=e.transform(g),_m(h.translate,g.translate,A,S),wm(h.rotate,g.rotate,A,S),Am(h.skew,g.skew,A,S),Tm(h.scale,g.scale,A,S),h=g=null,function(D){for(var L=-1,N=S.length,R;++L0?L=he:(A.c=null,A.t=NaN,A=null,g.end({type:"end",alpha:L=0})):he>0&&(g.start({type:"start",alpha:L=he}),A=Us(h.tick)),h):L},h.start=function(){var he,lr=xe.length,Ar=Se.length,zr=S[0],Jr=S[1],ct,vt;for(he=0;he=0;)L.push(Z=X[O]),Z.parent=R,Z.depth=R.depth+1;A&&(R.value=0),R.children=X}else A&&(R.value=+A.call(S,R,R.depth)||0),delete R.children;return Jo(D,function($){var K,xe;h&&(K=$.children)&&K.sort(h),A&&(xe=$.parent)&&(xe.value+=$.value)}),N}return S.sort=function(D){return arguments.length?(h=D,S):h},S.children=function(D){return arguments.length?(g=D,S):g},S.value=function(D){return arguments.length?(A=D,S):A},S.revalue=function(D){return A&&(g0(D,function(L){L.children&&(L.value=0)}),Jo(D,function(L){var N;L.children||(L.value=+A.call(S,L,L.depth)||0),(N=L.parent)&&(N.value+=L.value)})),D},S};function Bu(h,g){return e.rebind(h,g,"sort","children","value"),h.nodes=h,h.links=Ux,h}function g0(h,g){for(var A=[h];(h=A.pop())!=null;)if(g(h),(D=h.children)&&(S=D.length))for(var S,D;--S>=0;)A.push(D[S])}function Jo(h,g){for(var A=[h],S=[];(h=A.pop())!=null;)if(S.push(h),(N=h.children)&&(L=N.length))for(var D=-1,L,N;++DD&&(D=R),S.push(R)}for(N=0;NS&&(A=g,S=D);return A}function Vx(h){return h.reduce(Xx,0)}function Xx(h,g){return h+g[1]}e.layout.histogram=function(){var h=!0,g=Number,A=Zx,S=Wx;function D(L,K){for(var R=[],O=L.map(g,this),X=A.call(this,O,K),Z=S.call(this,X,O,K),$,K=-1,xe=O.length,Se=Z.length-1,ee=h?1:1/xe,ce;++K0)for(K=-1;++K=X[0]&&ce<=X[1]&&($=R[e.bisect(Z,ce,1,Se)-1],$.y+=ee,$.push(L[K]));return R}return D.value=function(L){return arguments.length?(g=L,D):g},D.range=function(L){return arguments.length?(A=St(L),D):A},D.bins=function(L){return arguments.length?(S=typeof L=="number"?function(N){return Rm(N,L)}:St(L),D):S},D.frequency=function(L){return arguments.length?(h=!!L,D):h},D};function Wx(h,g){return Rm(h,Math.ceil(Math.log(g.length)/Math.LN2+1))}function Rm(h,g){for(var A=-1,S=+h[0],D=(h[1]-S)/g,L=[];++A<=g;)L[A]=D*A+S;return L}function Zx(h){return[e.min(h),e.max(h)]}e.layout.pack=function(){var h=e.layout.hierarchy().sort(Fd),g=0,A=[1,1],S;function D(L,N){var R=h.call(this,L,N),O=R[0],X=A[0],Z=A[1],$=S==null?Math.sqrt:typeof S=="function"?S:function(){return S};if(O.x=O.y=0,Jo(O,function(xe){xe.r=+$(xe.value)}),Jo(O,Nm),g){var K=g*(S?1:Math.max(2*O.r/X,2*O.r/Z))/2;Jo(O,function(xe){xe.r+=K}),Jo(O,Nm),Jo(O,function(xe){xe.r-=K})}return zm(O,X/2,Z/2,S?1:1/Math.max(2*O.r/X,2*O.r/Z)),R}return D.size=function(L){return arguments.length?(A=L,D):A},D.radius=function(L){return arguments.length?(S=L==null||typeof L=="function"?L:+L,D):S},D.padding=function(L){return arguments.length?(g=+L,D):g},Bu(D,h)};function Fd(h,g){return h.value-g.value}function Rd(h,g){var A=h._pack_next;h._pack_next=g,g._pack_prev=h,g._pack_next=A,A._pack_prev=g}function Pd(h,g){h._pack_next=g,g._pack_prev=h}function Pm(h,g){var A=g.x-h.x,S=g.y-h.y,D=h.r+g.r;return .999*D*D>A*A+S*S}function Nm(h){if(!(g=h.children)||!(K=g.length))return;var g,A=1/0,S=-1/0,D=1/0,L=-1/0,N,R,O,X,Z,$,K;function xe(he){A=Math.min(he.x-he.r,A),S=Math.max(he.x+he.r,S),D=Math.min(he.y-he.r,D),L=Math.max(he.y+he.r,L)}if(g.forEach(Jx),N=g[0],N.x=-N.r,N.y=0,xe(N),K>1&&(R=g[1],R.x=R.r,R.y=0,xe(R),K>2))for(O=g[2],$x(N,R,O),xe(O),Rd(N,O),N._pack_prev=O,Rd(O,R),R=N._pack_next,X=3;Xce.x&&(ce=lr),lr.depth>ye.depth&&(ye=lr)});var Ce=g(ee,ce)/2-ee.x,De=A[0]/(ce.x+g(ce,ee)/2+Ce),he=A[1]/(ye.depth||1);g0(xe,function(lr){lr.x=(lr.x+Ce)*De,lr.y=lr.depth*he})}return K}function L(Z){for(var $={A:null,children:[Z]},K=[$],xe;(xe=K.pop())!=null;)for(var Se=xe.children,ee,ce=0,ye=Se.length;ce0&&(Kx(Hm(ee,Z,K),Z,lr),ye+=lr,Ce+=lr),De+=ee.m,ye+=xe.m,he+=ce.m,Ce+=Se.m;ee&&!Om(Se)&&(Se.t=ee,Se.m+=De-Ce),xe&&!Im(ce)&&(ce.t=xe,ce.m+=ye-he,K=Z)}return K}function X(Z){Z.x*=A[0],Z.y=Z.depth*A[1]}return D.separation=function(Z){return arguments.length?(g=Z,D):g},D.size=function(Z){return arguments.length?(S=(A=Z)==null?X:null,D):S?null:A},D.nodeSize=function(Z){return arguments.length?(S=(A=Z)==null?null:X,D):S?A:null},Bu(D,h)};function Bm(h,g){return h.parent==g.parent?1:2}function Im(h){var g=h.children;return g.length?g[0]:h.t}function Om(h){var g=h.children,A;return(A=g.length)?g[A-1]:h.t}function Kx(h,g,A){var S=A/(g.i-h.i);g.c-=S,g.s+=A,h.c+=S,g.z+=A,g.m+=A}function Nd(h){for(var g=0,A=0,S=h.children,D=S.length,L;--D>=0;)L=S[D],L.z+=g,L.m+=g,g+=L.s+(A+=L.c)}function Hm(h,g,A){return h.a.parent===g.parent?h.a:A}e.layout.cluster=function(){var h=e.layout.hierarchy().sort(null).value(null),g=Bm,A=[1,1],S=!1;function D(L,N){var R=h.call(this,L,N),O=R[0],X,Z=0;Jo(O,function(ee){var ce=ee.children;ce&&ce.length?(ee.x=Um(ce),ee.y=jo(ce)):(ee.x=X?Z+=g(ee,X):0,ee.y=0,X=ee)});var $=Gm(O),K=Ym(O),xe=$.x-g($,K)/2,Se=K.x+g(K,$)/2;return Jo(O,S?function(ee){ee.x=(ee.x-O.x)*A[0],ee.y=(O.y-ee.y)*A[1]}:function(ee){ee.x=(ee.x-xe)/(Se-xe)*A[0],ee.y=(1-(O.y?ee.y/O.y:1))*A[1]}),R}return D.separation=function(L){return arguments.length?(g=L,D):g},D.size=function(L){return arguments.length?(S=(A=L)==null,D):S?null:A},D.nodeSize=function(L){return arguments.length?(S=(A=L)!=null,D):S?A:null},Bu(D,h)};function jo(h){return 1+e.max(h,function(g){return g.y})}function Um(h){return h.reduce(function(g,A){return g+A.x},0)/h.length}function Gm(h){var g=h.children;return g&&g.length?Gm(g[0]):h}function Ym(h){var g=h.children,A;return g&&(A=g.length)?Ym(g[A-1]):h}e.layout.treemap=function(){var h=e.layout.hierarchy(),g=Math.round,A=[1,1],S=null,D=zd,L=!1,N,R="squarify",O=.5*(1+Math.sqrt(5));function X(ee,ce){for(var ye=-1,Ce=ee.length,De,he;++ye0;)Ce.push(he=De[Jr-1]),Ce.area+=he.area,R!=="squarify"||(Ar=K(Ce,zr))<=lr?(De.pop(),lr=Ar):(Ce.area-=Ce.pop().area,xe(Ce,zr,ye,!1),zr=Math.min(ye.dx,ye.dy),Ce.length=Ce.area=0,lr=1/0);Ce.length&&(xe(Ce,zr,ye,!0),Ce.length=Ce.area=0),ce.forEach(Z)}}function $(ee){var ce=ee.children;if(ce&&ce.length){var ye=D(ee),Ce=ce.slice(),De,he=[];for(X(Ce,ye.dx*ye.dy/ee.value),he.area=0;De=Ce.pop();)he.push(De),he.area+=De.area,De.z!=null&&(xe(he,De.z?ye.dx:ye.dy,ye,!Ce.length),he.length=he.area=0);ce.forEach($)}}function K(ee,ce){for(var ye=ee.area,Ce,De=0,he=1/0,lr=-1,Ar=ee.length;++lrDe&&(De=Ce));return ye*=ye,ce*=ce,ye?Math.max(ce*De*O/ye,ye/(ce*he*O)):1/0}function xe(ee,ce,ye,Ce){var De=-1,he=ee.length,lr=ye.x,Ar=ye.y,zr=ce?g(ee.area/ce):0,Jr;if(ce==ye.dx){for((Ce||zr>ye.dy)&&(zr=ye.dy);++Deye.dx)&&(zr=ye.dx);++De1);return h+g*S*Math.sqrt(-2*Math.log(L)/L)}},logNormal:function(){var h=e.random.normal.apply(e,arguments);return function(){return Math.exp(h())}},bates:function(h){var g=e.random.irwinHall(h);return function(){return g()/h}},irwinHall:function(h){return function(){for(var g=0,A=0;A2?Hu:Qx,X=S?km:Mm;return D=O(h,g,X,A),L=O(g,h,X,as),R}function R(O){return D(O)}return R.invert=function(O){return L(O)},R.domain=function(O){return arguments.length?(h=O.map(Number),N()):h},R.range=function(O){return arguments.length?(g=O,N()):g},R.rangeRound=function(O){return R.range(O).interpolate(Cd)},R.clamp=function(O){return arguments.length?(S=O,N()):S},R.interpolate=function(O){return arguments.length?(A=O,N()):A},R.ticks=function(O){return x0(h,O)},R.tickFormat=function(O,X){return d3_scale_linearTickFormat(h,O,X)},R.nice=function(O){return Bd(h,O),N()},R.copy=function(){return Xm(h,g,A,S)},N()}function js(h,g){return e.rebind(h,g,"range","rangeRound","interpolate","clamp")}function Bd(h,g){return Iu(h,Xn(is(h,g)[2])),Iu(h,Xn(is(h,g)[2])),h}function is(h,g){g==null&&(g=10);var A=av(h),S=A[1]-A[0],D=Math.pow(10,Math.floor(Math.log(S/g)/Math.LN10)),L=g/S*D;return L<=.15?D*=10:L<=.35?D*=5:L<=.75&&(D*=2),A[0]=Math.ceil(A[0]/D)*D,A[1]=Math.floor(A[1]/D)*D+D*.5,A[2]=D,A}function x0(h,g){return e.range.apply(e,is(h,g))}var Id={s:1,g:1,p:1,r:1,e:1};function iv(h){return-Math.floor(Math.log(h)/Math.LN10+.01)}function Wm(h,g){var A=iv(g[2]);return h in Id?Math.abs(A-iv(Math.max(b(g[0]),b(g[1]))))+ +(h!=="e"):A-(h==="%")*2}e.scale.log=function(){return ov(e.scale.linear().domain([0,1]),10,!0,[1,10])};function ov(h,g,A,S){function D(R){return(A?Math.log(R<0?0:R):-Math.log(R>0?0:-R))/Math.log(g)}function L(R){return A?Math.pow(g,R):-Math.pow(g,-R)}function N(R){return h(D(R))}return N.invert=function(R){return L(h.invert(R))},N.domain=function(R){return arguments.length?(A=R[0]>=0,h.domain((S=R.map(Number)).map(D)),N):S},N.base=function(R){return arguments.length?(g=+R,h.domain(S.map(D)),N):g},N.nice=function(){var R=Iu(S.map(D),A?Math:lv);return h.domain(R),S=R.map(L),N},N.ticks=function(){var R=av(S),O=[],X=R[0],Z=R[1],$=Math.floor(D(X)),K=Math.ceil(D(Z)),xe=g%1?2:g;if(isFinite(K-$)){if(A){for(;$0;Se--)O.push(L($)*Se);for($=0;O[$]Z;K--);O=O.slice($,K)}return O},N.copy=function(){return ov(h.copy(),g,A,S)},js(N,h)}var lv={floor:function(h){return-Math.ceil(-h)},ceil:function(h){return-Math.floor(-h)}};e.scale.pow=function(){return Od(e.scale.linear(),1,[0,1])};function Od(h,g,A){var S=_0(g),D=_0(1/g);function L(N){return h(S(N))}return L.invert=function(N){return D(h.invert(N))},L.domain=function(N){return arguments.length?(h.domain((A=N.map(Number)).map(S)),L):A},L.ticks=function(N){return x0(A,N)},L.tickFormat=function(N,R){return d3_scale_linearTickFormat(A,N,R)},L.nice=function(N){return L.domain(Bd(A,N))},L.exponent=function(N){return arguments.length?(S=_0(g=N),D=_0(1/g),h.domain(A.map(S)),L):g},L.copy=function(){return Od(h.copy(),g,A)},js(L,h)}function _0(h){return function(g){return g<0?-Math.pow(-g,h):Math.pow(g,h)}}e.scale.sqrt=function(){return e.scale.pow().exponent(.5)},e.scale.ordinal=function(){return Hd([],{t:"range",a:[[]]})};function Hd(h,g){var A,S,D;function L(R){return S[((A.get(R)||(g.t==="range"?A.set(R,h.push(R)):NaN))-1)%S.length]}function N(R,O){return e.range(h.length).map(function(X){return R+O*X})}return L.domain=function(R){if(!arguments.length)return h;h=[],A=new x;for(var O=-1,X=R.length,Z;++O0?A[L-1]:h[0],LK?0:1;if(Z=it)return O(Z,Se)+(X?O(X,1-Se):"")+"Z";var ee,ce,ye,Ce,De=0,he=0,lr,Ar,zr,Jr,ct,vt,Bt,gt,Rt=[];if((Ce=(+N.apply(this,arguments)||0)/2)&&(ye=S===w0?Math.sqrt(X*X+Z*Z):+S.apply(this,arguments),Se||(he*=-1),Z&&(he=Ea(ye/Z*Math.sin(Ce))),X&&(De=Ea(ye/X*Math.sin(Ce)))),Z){lr=Z*Math.cos($+he),Ar=Z*Math.sin($+he),zr=Z*Math.cos(K-he),Jr=Z*Math.sin(K-he);var da=Math.abs(K-$-2*he)<=ft?0:1;if(he&&A0(lr,Ar,zr,Jr)===Se^da){var pn=($+K)/2;lr=Z*Math.cos(pn),Ar=Z*Math.sin(pn),zr=Jr=null}}else lr=Ar=0;if(X){ct=X*Math.cos(K-De),vt=X*Math.sin(K-De),Bt=X*Math.cos($+De),gt=X*Math.sin($+De);var Aa=Math.abs($-K+2*De)<=ft?0:1;if(De&&A0(ct,vt,Bt,gt)===1-Se^Aa){var Hr=($+K)/2;ct=X*Math.cos(Hr),vt=X*Math.sin(Hr),Bt=gt=null}}else ct=vt=0;if(xe>ur&&(ee=Math.min(Math.abs(Z-X)/2,+A.apply(this,arguments)))>.001){ce=X0?0:1}function T0(h,g,A,S,D){var L=h[0]-g[0],N=h[1]-g[1],R=(D?S:-S)/Math.sqrt(L*L+N*N),O=R*N,X=-R*L,Z=h[0]+O,$=h[1]+X,K=g[0]+O,xe=g[1]+X,Se=(Z+K)/2,ee=($+xe)/2,ce=K-Z,ye=xe-$,Ce=ce*ce+ye*ye,De=A-S,he=Z*xe-K*$,lr=(ye<0?-1:1)*Math.sqrt(Math.max(0,De*De*Ce-he*he)),Ar=(he*ye-ce*lr)/Ce,zr=(-he*ce-ye*lr)/Ce,Jr=(he*ye+ce*lr)/Ce,ct=(-he*ce+ye*lr)/Ce,vt=Ar-Se,Bt=zr-ee,gt=Jr-Se,Rt=ct-ee;return vt*vt+Bt*Bt>gt*gt+Rt*Rt&&(Ar=Jr,zr=ct),[[Ar-O,zr-X],[Ar*A/De,zr*A/De]]}function uv(){return!0}function Kd(h){var g=es,A=Eu,S=uv,D=ro,L=D.key,N=.7;function R(O){var X=[],Z=[],$=-1,K=O.length,xe,Se=St(g),ee=St(A);function ce(){X.push("M",D(h(Z),N))}for(;++$1?h.join("L"):h+"Z"}function cv(h){return h.join("L")+"Z"}function M0(h){for(var g=0,A=h.length,S=h[0],D=[S[0],",",S[1]];++g1&&D.push("H",S[0]),D.join("")}function vv(h){for(var g=0,A=h.length,S=h[0],D=[S[0],",",S[1]];++g1){R=g[1],L=h[O],O++,S+="C"+(D[0]+N[0])+","+(D[1]+N[1])+","+(L[0]-R[0])+","+(L[1]-R[1])+","+L[0]+","+L[1];for(var X=2;X9&&(L=A*3/Math.sqrt(L),N[R]=L*S,N[R+1]=L*D));for(R=-1;++R<=O;)L=(h[Math.min(O,R+1)][0]-h[Math.max(0,R-1)][0])/(6*(1+N[R]*N[R])),g.push([L||0,N[R]*L||0]);return g}function $m(h){return h.length<3?ro(h):h[0]+$s(h,r_(h))}e.svg.line.radial=function(){var h=Kd(e2);return h.radius=h.x,delete h.x,h.angle=h.y,delete h.y,h};function e2(h){for(var g,A=-1,S=h.length,D,L;++Aft)+",1 "+$}function X(Z,$,K,xe){return"Q 0,0 "+xe}return L.radius=function(Z){return arguments.length?(A=St(Z),L):A},L.source=function(Z){return arguments.length?(h=St(Z),L):h},L.target=function(Z){return arguments.length?(g=St(Z),L):g},L.startAngle=function(Z){return arguments.length?(S=St(Z),L):S},L.endAngle=function(Z){return arguments.length?(D=St(Z),L):D},L};function t2(h){return h.radius}e.svg.diagonal=function(){var h=Km,g=Qs,A=Qm;function S(D,L){var N=h.call(this,D,L),R=g.call(this,D,L),O=(N.y+R.y)/2,X=[N,{x:N.x,y:O},{x:R.x,y:O},R];return X=X.map(A),"M"+X[0]+"C"+X[1]+" "+X[2]+" "+X[3]}return S.source=function(D){return arguments.length?(h=St(D),S):h},S.target=function(D){return arguments.length?(g=St(D),S):g},S.projection=function(D){return arguments.length?(A=D,S):A},S};function Qm(h){return[h.x,h.y]}e.svg.diagonal.radial=function(){var h=e.svg.diagonal(),g=Qm,A=h.projection;return h.projection=function(S){return arguments.length?A(t_(g=S)):g},h};function t_(h){return function(){var g=h.apply(this,arguments),A=g[0],S=g[1]-le;return[A*Math.cos(S),A*Math.sin(S)]}}e.svg.symbol=function(){var h=n_,g=a_;function A(S,D){return(ry.get(h.call(this,S,D))||ey)(g.call(this,S,D))}return A.type=function(S){return arguments.length?(h=St(S),A):h},A.size=function(S){return arguments.length?(g=St(S),A):g},A};function a_(){return 64}function n_(){return"circle"}function ey(h){var g=Math.sqrt(h/ft);return"M0,"+g+"A"+g+","+g+" 0 1,1 0,"+-g+"A"+g+","+g+" 0 1,1 0,"+g+"Z"}var ry=e.map({circle:ey,cross:function(h){var g=Math.sqrt(h/5)/2;return"M"+-3*g+","+-g+"H"+-g+"V"+-3*g+"H"+g+"V"+-g+"H"+3*g+"V"+g+"H"+g+"V"+3*g+"H"+-g+"V"+g+"H"+-3*g+"Z"},diamond:function(h){var g=Math.sqrt(h/(2*ty)),A=g*ty;return"M0,"+-g+"L"+A+",0 0,"+g+" "+-A+",0Z"},square:function(h){var g=Math.sqrt(h)/2;return"M"+-g+","+-g+"L"+g+","+-g+" "+g+","+g+" "+-g+","+g+"Z"},"triangle-down":function(h){var g=Math.sqrt(h/pv),A=g*pv/2;return"M0,"+A+"L"+g+","+-A+" "+-g+","+-A+"Z"},"triangle-up":function(h){var g=Math.sqrt(h/pv),A=g*pv/2;return"M0,"+-A+"L"+g+","+A+" "+-g+","+A+"Z"}});e.svg.symbolTypes=ry.keys();var pv=Math.sqrt(3),ty=Math.tan(30*Te);ge.transition=function(h){for(var g=ss||++yv,A=gv(h),S=[],D,L,N=Wu||{time:Date.now(),ease:Zs,delay:0,duration:250},R=-1,O=this.length;++R0;)$[--Ce].call(h,ye);if(ce>=1)return N.event&&N.event.end.call(h,h.__data__,g),--L.count?delete L[S]:delete h[A],1}N||(R=D.time,O=Us(K,0,R),N=L[S]={tween:new x,time:R,timer:O,delay:D.delay,duration:D.duration,ease:D.ease,index:g},D=null,++L.count)}e.svg.axis=function(){var h=e.scale.linear(),g=bv,A=6,S=6,D=3,L=[10],N=null,R;function O(X){X.each(function(){var Z=e.select(this),$=this.__chart__||h,K=this.__chart__=h.copy(),xe=N==null?K.ticks?K.ticks.apply(K,L):K.domain():N,Se=R==null?K.tickFormat?K.tickFormat.apply(K,L):Y:R,ee=Z.selectAll(".tick").data(xe,K),ce=ee.enter().insert("g",".domain").attr("class","tick").style("opacity",ur),ye=e.transition(ee.exit()).style("opacity",ur).remove(),Ce=e.transition(ee.order()).style("opacity",1),De=Math.max(A,0)+D,he,lr=nv(K),Ar=Z.selectAll(".domain").data([0]),zr=(Ar.enter().append("path").attr("class","domain"),e.transition(Ar));ce.append("line"),ce.append("text");var Jr=ce.select("line"),ct=Ce.select("line"),vt=ee.select("text").text(Se),Bt=ce.select("text"),gt=Ce.select("text"),Rt=g==="top"||g==="left"?-1:1,da,pn,Aa,Hr;if(g==="bottom"||g==="top"?(he=o2,da="x",Aa="y",pn="x2",Hr="y2",vt.attr("dy",Rt<0?"0em":".71em").style("text-anchor","middle"),zr.attr("d","M"+lr[0]+","+Rt*S+"V0H"+lr[1]+"V"+Rt*S)):(he=l2,da="y",Aa="x",pn="y2",Hr="x2",vt.attr("dy",".32em").style("text-anchor",Rt<0?"end":"start"),zr.attr("d","M"+Rt*S+","+lr[0]+"H0V"+lr[1]+"H"+Rt*S)),Jr.attr(Hr,Rt*A),Bt.attr(Aa,Rt*De),ct.attr(pn,0).attr(Hr,Rt*A),gt.attr(da,0).attr(Aa,Rt*De),K.rangeBand){var It=K,Wt=It.rangeBand()/2;$=K=function(ua){return It(ua)+Wt}}else $.rangeBand?$=K:ye.call(he,K,$);ce.call(he,$,K),Ce.call(he,K,K)})}return O.scale=function(X){return arguments.length?(h=X,O):h},O.orient=function(X){return arguments.length?(g=X in i2?X+"":bv,O):g},O.ticks=function(){return arguments.length?(L=t(arguments),O):L},O.tickValues=function(X){return arguments.length?(N=X,O):N},O.tickFormat=function(X){return arguments.length?(R=X,O):R},O.tickSize=function(X){var Z=arguments.length;return Z?(A=+X,S=+arguments[Z-1],O):A},O.innerTickSize=function(X){return arguments.length?(A=+X,O):A},O.outerTickSize=function(X){return arguments.length?(S=+X,O):S},O.tickPadding=function(X){return arguments.length?(D=+X,O):D},O.tickSubdivide=function(){return arguments.length&&O},O};var bv="bottom",i2={top:1,right:1,bottom:1,left:1};function o2(h,g,A){h.attr("transform",function(S){var D=g(S);return"translate("+(isFinite(D)?D:A(S))+",0)"})}function l2(h,g,A){h.attr("transform",function(S){var D=g(S);return"translate(0,"+(isFinite(D)?D:A(S))+")"})}e.svg.brush=function(){var h=se(Z,"brushstart","brush","brushend"),g=null,A=null,S=[0,0],D=[0,0],L,N,R=!0,O=!0,X=C0[0];function Z(ee){ee.each(function(){var ce=e.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",Se).on("touchstart.brush",Se),ye=ce.selectAll(".background").data([0]);ye.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),ce.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var Ce=ce.selectAll(".resize").data(X,Y);Ce.exit().remove(),Ce.enter().append("g").attr("class",function(Ar){return"resize "+Ar}).style("cursor",function(Ar){return s2[Ar]}).append("rect").attr("x",function(Ar){return/[ew]$/.test(Ar)?-3:null}).attr("y",function(Ar){return/^[ns]/.test(Ar)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),Ce.style("display",Z.empty()?"none":null);var De=e.transition(ce),he=e.transition(ye),lr;g&&(lr=nv(g),he.attr("x",lr[0]).attr("width",lr[1]-lr[0]),K(De)),A&&(lr=nv(A),he.attr("y",lr[0]).attr("height",lr[1]-lr[0]),xe(De)),$(De)})}Z.event=function(ee){ee.each(function(){var ce=h.of(this,arguments),ye={x:S,y:D,i:L,j:N},Ce=this.__chart__||ye;this.__chart__=ye,ss?e.select(this).transition().each("start.brush",function(){L=Ce.i,N=Ce.j,S=Ce.x,D=Ce.y,ce({type:"brushstart"})}).tween("brush:brush",function(){var De=m0(S,ye.x),he=m0(D,ye.y);return L=N=null,function(lr){S=ye.x=De(lr),D=ye.y=he(lr),ce({type:"brush",mode:"resize"})}}).each("end.brush",function(){L=ye.i,N=ye.j,ce({type:"brush",mode:"resize"}),ce({type:"brushend"})}):(ce({type:"brushstart"}),ce({type:"brush",mode:"resize"}),ce({type:"brushend"}))})};function $(ee){ee.selectAll(".resize").attr("transform",function(ce){return"translate("+S[+/e$/.test(ce)]+","+D[+/^s/.test(ce)]+")"})}function K(ee){ee.select(".extent").attr("x",S[0]),ee.selectAll(".extent,.n>rect,.s>rect").attr("width",S[1]-S[0])}function xe(ee){ee.select(".extent").attr("y",D[0]),ee.selectAll(".extent,.e>rect,.w>rect").attr("height",D[1]-D[0])}function Se(){var ee=this,ce=e.select(e.event.target),ye=h.of(ee,arguments),Ce=e.select(ee),De=ce.datum(),he=!/^(n|s)$/.test(De)&&g,lr=!/^(e|w)$/.test(De)&&A,Ar=ce.classed("extent"),zr=qr(ee),Jr,ct=e.mouse(ee),vt,Bt=e.select(i(ee)).on("keydown.brush",da).on("keyup.brush",pn);if(e.event.changedTouches?Bt.on("touchmove.brush",Aa).on("touchend.brush",It):Bt.on("mousemove.brush",Aa).on("mouseup.brush",It),Ce.interrupt().selectAll("*").interrupt(),Ar)ct[0]=S[0]-ct[0],ct[1]=D[0]-ct[1];else if(De){var gt=+/w$/.test(De),Rt=+/^n/.test(De);vt=[S[1-gt]-ct[0],D[1-Rt]-ct[1]],ct[0]=S[gt],ct[1]=D[Rt]}else e.event.altKey&&(Jr=ct.slice());Ce.style("pointer-events","none").selectAll(".resize").style("display",null),e.select("body").style("cursor",ce.style("cursor")),ye({type:"brushstart"}),Aa();function da(){e.event.keyCode==32&&(Ar||(Jr=null,ct[0]-=S[1],ct[1]-=D[1],Ar=2),ae())}function pn(){e.event.keyCode==32&&Ar==2&&(ct[0]+=S[1],ct[1]+=D[1],Ar=0,ae())}function Aa(){var Wt=e.mouse(ee),ua=!1;vt&&(Wt[0]+=vt[0],Wt[1]+=vt[1]),Ar||(e.event.altKey?(Jr||(Jr=[(S[0]+S[1])/2,(D[0]+D[1])/2]),ct[0]=S[+(Wt[0]{(function(e,r){typeof oy=="object"&&typeof YM!="undefined"?r(oy):(e=e||self,r(e.d3=e.d3||{}))})(oy,function(e){"use strict";var r=new Date,t=new Date;function a(fe,Le,Mr,lt){function Xe(Me){return fe(Me=arguments.length===0?new Date:new Date(+Me)),Me}return Xe.floor=function(Me){return fe(Me=new Date(+Me)),Me},Xe.ceil=function(Me){return fe(Me=new Date(Me-1)),Le(Me,1),fe(Me),Me},Xe.round=function(Me){var Fe=Xe(Me),dr=Xe.ceil(Me);return Me-Fe0))return kr;do kr.push(fr=new Date(+Me)),Le(Me,dr),fe(Me);while(fr=Fe)for(;fe(Fe),!Me(Fe);)Fe.setTime(Fe-1)},function(Fe,dr){if(Fe>=Fe)if(dr<0)for(;++dr<=0;)for(;Le(Fe,-1),!Me(Fe););else for(;--dr>=0;)for(;Le(Fe,1),!Me(Fe););})},Mr&&(Xe.count=function(Me,Fe){return r.setTime(+Me),t.setTime(+Fe),fe(r),fe(t),Math.floor(Mr(r,t))},Xe.every=function(Me){return Me=Math.floor(Me),!isFinite(Me)||!(Me>0)?null:Me>1?Xe.filter(lt?function(Fe){return lt(Fe)%Me===0}:function(Fe){return Xe.count(0,Fe)%Me===0}):Xe}),Xe}var n=a(function(){},function(fe,Le){fe.setTime(+fe+Le)},function(fe,Le){return Le-fe});n.every=function(fe){return fe=Math.floor(fe),!isFinite(fe)||!(fe>0)?null:fe>1?a(function(Le){Le.setTime(Math.floor(Le/fe)*fe)},function(Le,Mr){Le.setTime(+Le+Mr*fe)},function(Le,Mr){return(Mr-Le)/fe}):n};var i=n.range,o=1e3,l=6e4,s=36e5,u=864e5,f=6048e5,c=a(function(fe){fe.setTime(fe-fe.getMilliseconds())},function(fe,Le){fe.setTime(+fe+Le*o)},function(fe,Le){return(Le-fe)/o},function(fe){return fe.getUTCSeconds()}),v=c.range,d=a(function(fe){fe.setTime(fe-fe.getMilliseconds()-fe.getSeconds()*o)},function(fe,Le){fe.setTime(+fe+Le*l)},function(fe,Le){return(Le-fe)/l},function(fe){return fe.getMinutes()}),p=d.range,y=a(function(fe){fe.setTime(fe-fe.getMilliseconds()-fe.getSeconds()*o-fe.getMinutes()*l)},function(fe,Le){fe.setTime(+fe+Le*s)},function(fe,Le){return(Le-fe)/s},function(fe){return fe.getHours()}),m=y.range,b=a(function(fe){fe.setHours(0,0,0,0)},function(fe,Le){fe.setDate(fe.getDate()+Le)},function(fe,Le){return(Le-fe-(Le.getTimezoneOffset()-fe.getTimezoneOffset())*l)/u},function(fe){return fe.getDate()-1}),T=b.range;function _(fe){return a(function(Le){Le.setDate(Le.getDate()-(Le.getDay()+7-fe)%7),Le.setHours(0,0,0,0)},function(Le,Mr){Le.setDate(Le.getDate()+Mr*7)},function(Le,Mr){return(Mr-Le-(Mr.getTimezoneOffset()-Le.getTimezoneOffset())*l)/f})}var x=_(0),w=_(1),k=_(2),M=_(3),C=_(4),E=_(5),F=_(6),P=x.range,q=w.range,z=k.range,I=M.range,Y=C.range,V=E.range,J=F.range,U=a(function(fe){fe.setDate(1),fe.setHours(0,0,0,0)},function(fe,Le){fe.setMonth(fe.getMonth()+Le)},function(fe,Le){return Le.getMonth()-fe.getMonth()+(Le.getFullYear()-fe.getFullYear())*12},function(fe){return fe.getMonth()}),G=U.range,W=a(function(fe){fe.setMonth(0,1),fe.setHours(0,0,0,0)},function(fe,Le){fe.setFullYear(fe.getFullYear()+Le)},function(fe,Le){return Le.getFullYear()-fe.getFullYear()},function(fe){return fe.getFullYear()});W.every=function(fe){return!isFinite(fe=Math.floor(fe))||!(fe>0)?null:a(function(Le){Le.setFullYear(Math.floor(Le.getFullYear()/fe)*fe),Le.setMonth(0,1),Le.setHours(0,0,0,0)},function(Le,Mr){Le.setFullYear(Le.getFullYear()+Mr*fe)})};var j=W.range,ae=a(function(fe){fe.setUTCSeconds(0,0)},function(fe,Le){fe.setTime(+fe+Le*l)},function(fe,Le){return(Le-fe)/l},function(fe){return fe.getUTCMinutes()}),pe=ae.range,se=a(function(fe){fe.setUTCMinutes(0,0,0)},function(fe,Le){fe.setTime(+fe+Le*s)},function(fe,Le){return(Le-fe)/s},function(fe){return fe.getUTCHours()}),we=se.range,te=a(function(fe){fe.setUTCHours(0,0,0,0)},function(fe,Le){fe.setUTCDate(fe.getUTCDate()+Le)},function(fe,Le){return(Le-fe)/u},function(fe){return fe.getUTCDate()-1}),Ee=te.range;function de(fe){return a(function(Le){Le.setUTCDate(Le.getUTCDate()-(Le.getUTCDay()+7-fe)%7),Le.setUTCHours(0,0,0,0)},function(Le,Mr){Le.setUTCDate(Le.getUTCDate()+Mr*7)},function(Le,Mr){return(Mr-Le)/f})}var Ae=de(0),Ue=de(1),ge=de(2),Ne=de(3),ir=de(4),qe=de(5),Ve=de(6),Qe=Ae.range,er=Ue.range,rr=ge.range,yr=Ne.range,Ge=ir.range,Sr=qe.range,Fr=Ve.range,Lr=a(function(fe){fe.setUTCDate(1),fe.setUTCHours(0,0,0,0)},function(fe,Le){fe.setUTCMonth(fe.getUTCMonth()+Le)},function(fe,Le){return Le.getUTCMonth()-fe.getUTCMonth()+(Le.getUTCFullYear()-fe.getUTCFullYear())*12},function(fe){return fe.getUTCMonth()}),He=Lr.range,or=a(function(fe){fe.setUTCMonth(0,1),fe.setUTCHours(0,0,0,0)},function(fe,Le){fe.setUTCFullYear(fe.getUTCFullYear()+Le)},function(fe,Le){return Le.getUTCFullYear()-fe.getUTCFullYear()},function(fe){return fe.getUTCFullYear()});or.every=function(fe){return!isFinite(fe=Math.floor(fe))||!(fe>0)?null:a(function(Le){Le.setUTCFullYear(Math.floor(Le.getUTCFullYear()/fe)*fe),Le.setUTCMonth(0,1),Le.setUTCHours(0,0,0,0)},function(Le,Mr){Le.setUTCFullYear(Le.getUTCFullYear()+Mr*fe)})};var Ir=or.range;e.timeDay=b,e.timeDays=T,e.timeFriday=E,e.timeFridays=V,e.timeHour=y,e.timeHours=m,e.timeInterval=a,e.timeMillisecond=n,e.timeMilliseconds=i,e.timeMinute=d,e.timeMinutes=p,e.timeMonday=w,e.timeMondays=q,e.timeMonth=U,e.timeMonths=G,e.timeSaturday=F,e.timeSaturdays=J,e.timeSecond=c,e.timeSeconds=v,e.timeSunday=x,e.timeSundays=P,e.timeThursday=C,e.timeThursdays=Y,e.timeTuesday=k,e.timeTuesdays=z,e.timeWednesday=M,e.timeWednesdays=I,e.timeWeek=x,e.timeWeeks=P,e.timeYear=W,e.timeYears=j,e.utcDay=te,e.utcDays=Ee,e.utcFriday=qe,e.utcFridays=Sr,e.utcHour=se,e.utcHours=we,e.utcMillisecond=n,e.utcMilliseconds=i,e.utcMinute=ae,e.utcMinutes=pe,e.utcMonday=Ue,e.utcMondays=er,e.utcMonth=Lr,e.utcMonths=He,e.utcSaturday=Ve,e.utcSaturdays=Fr,e.utcSecond=c,e.utcSeconds=v,e.utcSunday=Ae,e.utcSundays=Qe,e.utcThursday=ir,e.utcThursdays=Ge,e.utcTuesday=ge,e.utcTuesdays=rr,e.utcWednesday=Ne,e.utcWednesdays=yr,e.utcWeek=Ae,e.utcWeeks=Qe,e.utcYear=or,e.utcYears=Ir,Object.defineProperty(e,"__esModule",{value:!0})})});var xv=B((ly,VM)=>{(function(e,r){typeof ly=="object"&&typeof VM!="undefined"?r(ly,o_()):(e=e||self,r(e.d3=e.d3||{},e.d3))})(ly,function(e,r){"use strict";function t(le){if(0<=le.y&&le.y<100){var Te=new Date(-1,le.m,le.d,le.H,le.M,le.S,le.L);return Te.setFullYear(le.y),Te}return new Date(le.y,le.m,le.d,le.H,le.M,le.S,le.L)}function a(le){if(0<=le.y&&le.y<100){var Te=new Date(Date.UTC(-1,le.m,le.d,le.H,le.M,le.S,le.L));return Te.setUTCFullYear(le.y),Te}return new Date(Date.UTC(le.y,le.m,le.d,le.H,le.M,le.S,le.L))}function n(le,Te,sr){return{y:le,m:Te,d:sr,H:0,M:0,S:0,L:0}}function i(le){var Te=le.dateTime,sr=le.date,mr=le.time,va=le.periods,ka=le.days,Ea=le.shortDays,ln=le.months,tn=le.shortMonths,Yn=v(va),vi=d(va),Tn=v(ka),Li=d(ka),Hi=v(Ea),Ei=d(Ea),nt=v(ln),Da=d(ln),ha=v(tn),qa=d(tn),Ha={a:i0,A:_l,b:_i,B:wl,c:null,d:U,e:U,f:pe,g:qe,G:Qe,H:G,I:W,j,L:ae,m:se,M:we,p:Hs,q:Do,Q:qr,s:Or,S:te,u:Ee,U:de,V:Ue,w:ge,W:Ne,x:null,X:null,y:ir,Y:Ve,Z:er,"%":Vr},wa={a:Al,A:Tl,b:Lu,B:Gc,c:null,d:rr,e:rr,f:Lr,g:dr,G:fr,H:yr,I:Ge,j:Sr,L:Fr,m:He,M:or,p:o0,q:l0,Q:qr,s:Or,S:Ir,u:fe,U:Le,V:lt,w:Xe,W:Me,x:null,X:null,y:Fe,Y:kr,Z:_r,"%":Vr},_a={a:xn,A:_n,b:Is,B:Ql,c:Uc,d:C,e:C,f:I,g:x,G:_,H:F,I:F,j:E,L:z,m:M,M:P,p:za,q:k,Q:V,s:J,S:q,u:y,U:m,V:b,w:p,W:T,x:Os,X:n0,y:x,Y:_,Z:w,"%":Y};Ha.x=bn(sr,Ha),Ha.X=bn(mr,Ha),Ha.c=bn(Te,Ha),wa.x=bn(sr,wa),wa.X=bn(mr,wa),wa.c=bn(Te,wa);function bn(kt,St){return function(ga){var Zr=[],hn=-1,Ba=0,Ua=kt.length,Bn,qi,eo;for(ga instanceof Date||(ga=new Date(+ga));++hn53)return null;"w"in Zr||(Zr.w=1),"Z"in Zr?(Ba=a(n(Zr.y,0,1)),Ua=Ba.getUTCDay(),Ba=Ua>4||Ua===0?r.utcMonday.ceil(Ba):r.utcMonday(Ba),Ba=r.utcDay.offset(Ba,(Zr.V-1)*7),Zr.y=Ba.getUTCFullYear(),Zr.m=Ba.getUTCMonth(),Zr.d=Ba.getUTCDate()+(Zr.w+6)%7):(Ba=t(n(Zr.y,0,1)),Ua=Ba.getDay(),Ba=Ua>4||Ua===0?r.timeMonday.ceil(Ba):r.timeMonday(Ba),Ba=r.timeDay.offset(Ba,(Zr.V-1)*7),Zr.y=Ba.getFullYear(),Zr.m=Ba.getMonth(),Zr.d=Ba.getDate()+(Zr.w+6)%7)}else("W"in Zr||"U"in Zr)&&("w"in Zr||(Zr.w="u"in Zr?Zr.u%7:"W"in Zr?1:0),Ua="Z"in Zr?a(n(Zr.y,0,1)).getUTCDay():t(n(Zr.y,0,1)).getDay(),Zr.m=0,Zr.d="W"in Zr?(Zr.w+6)%7+Zr.W*7-(Ua+5)%7:Zr.w+Zr.U*7-(Ua+6)%7);return"Z"in Zr?(Zr.H+=Zr.Z/100|0,Zr.M+=Zr.Z%100,a(Zr)):t(Zr)}}function vn(kt,St,ga,Zr){for(var hn=0,Ba=St.length,Ua=ga.length,Bn,qi;hn=Ua)return-1;if(Bn=St.charCodeAt(hn++),Bn===37){if(Bn=St.charAt(hn++),qi=_a[Bn in o?St.charAt(hn++):Bn],!qi||(Zr=qi(kt,ga,Zr))<0)return-1}else if(Bn!=ga.charCodeAt(Zr++))return-1}return Zr}function za(kt,St,ga){var Zr=Yn.exec(St.slice(ga));return Zr?(kt.p=vi[Zr[0].toLowerCase()],ga+Zr[0].length):-1}function xn(kt,St,ga){var Zr=Hi.exec(St.slice(ga));return Zr?(kt.w=Ei[Zr[0].toLowerCase()],ga+Zr[0].length):-1}function _n(kt,St,ga){var Zr=Tn.exec(St.slice(ga));return Zr?(kt.w=Li[Zr[0].toLowerCase()],ga+Zr[0].length):-1}function Is(kt,St,ga){var Zr=ha.exec(St.slice(ga));return Zr?(kt.m=qa[Zr[0].toLowerCase()],ga+Zr[0].length):-1}function Ql(kt,St,ga){var Zr=nt.exec(St.slice(ga));return Zr?(kt.m=Da[Zr[0].toLowerCase()],ga+Zr[0].length):-1}function Uc(kt,St,ga){return vn(kt,Te,St,ga)}function Os(kt,St,ga){return vn(kt,sr,St,ga)}function n0(kt,St,ga){return vn(kt,mr,St,ga)}function i0(kt){return Ea[kt.getDay()]}function _l(kt){return ka[kt.getDay()]}function _i(kt){return tn[kt.getMonth()]}function wl(kt){return ln[kt.getMonth()]}function Hs(kt){return va[+(kt.getHours()>=12)]}function Do(kt){return 1+~~(kt.getMonth()/3)}function Al(kt){return Ea[kt.getUTCDay()]}function Tl(kt){return ka[kt.getUTCDay()]}function Lu(kt){return tn[kt.getUTCMonth()]}function Gc(kt){return ln[kt.getUTCMonth()]}function o0(kt){return va[+(kt.getUTCHours()>=12)]}function l0(kt){return 1+~~(kt.getUTCMonth()/3)}return{format:function(kt){var St=bn(kt+="",Ha);return St.toString=function(){return kt},St},parse:function(kt){var St=Qi(kt+="",!1);return St.toString=function(){return kt},St},utcFormat:function(kt){var St=bn(kt+="",wa);return St.toString=function(){return kt},St},utcParse:function(kt){var St=Qi(kt+="",!0);return St.toString=function(){return kt},St}}}var o={"-":"",_:" ",0:"0"},l=/^\s*\d+/,s=/^%/,u=/[\\^$*+?|[\]().{}]/g;function f(le,Te,sr){var mr=le<0?"-":"",va=(mr?-le:le)+"",ka=va.length;return mr+(ka68?1900:2e3),sr+mr[0].length):-1}function w(le,Te,sr){var mr=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(Te.slice(sr,sr+6));return mr?(le.Z=mr[1]?0:-(mr[2]+(mr[3]||"00")),sr+mr[0].length):-1}function k(le,Te,sr){var mr=l.exec(Te.slice(sr,sr+1));return mr?(le.q=mr[0]*3-3,sr+mr[0].length):-1}function M(le,Te,sr){var mr=l.exec(Te.slice(sr,sr+2));return mr?(le.m=mr[0]-1,sr+mr[0].length):-1}function C(le,Te,sr){var mr=l.exec(Te.slice(sr,sr+2));return mr?(le.d=+mr[0],sr+mr[0].length):-1}function E(le,Te,sr){var mr=l.exec(Te.slice(sr,sr+3));return mr?(le.m=0,le.d=+mr[0],sr+mr[0].length):-1}function F(le,Te,sr){var mr=l.exec(Te.slice(sr,sr+2));return mr?(le.H=+mr[0],sr+mr[0].length):-1}function P(le,Te,sr){var mr=l.exec(Te.slice(sr,sr+2));return mr?(le.M=+mr[0],sr+mr[0].length):-1}function q(le,Te,sr){var mr=l.exec(Te.slice(sr,sr+2));return mr?(le.S=+mr[0],sr+mr[0].length):-1}function z(le,Te,sr){var mr=l.exec(Te.slice(sr,sr+3));return mr?(le.L=+mr[0],sr+mr[0].length):-1}function I(le,Te,sr){var mr=l.exec(Te.slice(sr,sr+6));return mr?(le.L=Math.floor(mr[0]/1e3),sr+mr[0].length):-1}function Y(le,Te,sr){var mr=s.exec(Te.slice(sr,sr+1));return mr?sr+mr[0].length:-1}function V(le,Te,sr){var mr=l.exec(Te.slice(sr));return mr?(le.Q=+mr[0],sr+mr[0].length):-1}function J(le,Te,sr){var mr=l.exec(Te.slice(sr));return mr?(le.s=+mr[0],sr+mr[0].length):-1}function U(le,Te){return f(le.getDate(),Te,2)}function G(le,Te){return f(le.getHours(),Te,2)}function W(le,Te){return f(le.getHours()%12||12,Te,2)}function j(le,Te){return f(1+r.timeDay.count(r.timeYear(le),le),Te,3)}function ae(le,Te){return f(le.getMilliseconds(),Te,3)}function pe(le,Te){return ae(le,Te)+"000"}function se(le,Te){return f(le.getMonth()+1,Te,2)}function we(le,Te){return f(le.getMinutes(),Te,2)}function te(le,Te){return f(le.getSeconds(),Te,2)}function Ee(le){var Te=le.getDay();return Te===0?7:Te}function de(le,Te){return f(r.timeSunday.count(r.timeYear(le)-1,le),Te,2)}function Ae(le){var Te=le.getDay();return Te>=4||Te===0?r.timeThursday(le):r.timeThursday.ceil(le)}function Ue(le,Te){return le=Ae(le),f(r.timeThursday.count(r.timeYear(le),le)+(r.timeYear(le).getDay()===4),Te,2)}function ge(le){return le.getDay()}function Ne(le,Te){return f(r.timeMonday.count(r.timeYear(le)-1,le),Te,2)}function ir(le,Te){return f(le.getFullYear()%100,Te,2)}function qe(le,Te){return le=Ae(le),f(le.getFullYear()%100,Te,2)}function Ve(le,Te){return f(le.getFullYear()%1e4,Te,4)}function Qe(le,Te){var sr=le.getDay();return le=sr>=4||sr===0?r.timeThursday(le):r.timeThursday.ceil(le),f(le.getFullYear()%1e4,Te,4)}function er(le){var Te=le.getTimezoneOffset();return(Te>0?"-":(Te*=-1,"+"))+f(Te/60|0,"0",2)+f(Te%60,"0",2)}function rr(le,Te){return f(le.getUTCDate(),Te,2)}function yr(le,Te){return f(le.getUTCHours(),Te,2)}function Ge(le,Te){return f(le.getUTCHours()%12||12,Te,2)}function Sr(le,Te){return f(1+r.utcDay.count(r.utcYear(le),le),Te,3)}function Fr(le,Te){return f(le.getUTCMilliseconds(),Te,3)}function Lr(le,Te){return Fr(le,Te)+"000"}function He(le,Te){return f(le.getUTCMonth()+1,Te,2)}function or(le,Te){return f(le.getUTCMinutes(),Te,2)}function Ir(le,Te){return f(le.getUTCSeconds(),Te,2)}function fe(le){var Te=le.getUTCDay();return Te===0?7:Te}function Le(le,Te){return f(r.utcSunday.count(r.utcYear(le)-1,le),Te,2)}function Mr(le){var Te=le.getUTCDay();return Te>=4||Te===0?r.utcThursday(le):r.utcThursday.ceil(le)}function lt(le,Te){return le=Mr(le),f(r.utcThursday.count(r.utcYear(le),le)+(r.utcYear(le).getUTCDay()===4),Te,2)}function Xe(le){return le.getUTCDay()}function Me(le,Te){return f(r.utcMonday.count(r.utcYear(le)-1,le),Te,2)}function Fe(le,Te){return f(le.getUTCFullYear()%100,Te,2)}function dr(le,Te){return le=Mr(le),f(le.getUTCFullYear()%100,Te,2)}function kr(le,Te){return f(le.getUTCFullYear()%1e4,Te,4)}function fr(le,Te){var sr=le.getUTCDay();return le=sr>=4||sr===0?r.utcThursday(le):r.utcThursday.ceil(le),f(le.getUTCFullYear()%1e4,Te,4)}function _r(){return"+0000"}function Vr(){return"%"}function qr(le){return+le}function Or(le){return Math.floor(+le/1e3)}var Ie;Tr({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 Tr(le){return Ie=i(le),e.timeFormat=Ie.format,e.timeParse=Ie.parse,e.utcFormat=Ie.utcFormat,e.utcParse=Ie.utcParse,Ie}var ur="%Y-%m-%dT%H:%M:%S.%LZ";function at(le){return le.toISOString()}var ft=Date.prototype.toISOString?at:e.utcFormat(ur);function jr(le){var Te=new Date(le);return isNaN(Te)?null:Te}var it=+new Date("2000-01-01T00:00:00.000Z")?jr:e.utcParse(ur);e.isoFormat=ft,e.isoParse=it,e.timeFormatDefaultLocale=Tr,e.timeFormatLocale=i,Object.defineProperty(e,"__esModule",{value:!0})})});var l_=B((sy,XM)=>{(function(e,r){typeof sy=="object"&&typeof XM!="undefined"?r(sy):(e=typeof globalThis!="undefined"?globalThis:e||self,r(e.d3=e.d3||{}))})(sy,(function(e){"use strict";function r(M){return Math.abs(M=Math.round(M))>=1e21?M.toLocaleString("en").replace(/,/g,""):M.toString(10)}function t(M,C){if((E=(M=C?M.toExponential(C-1):M.toExponential()).indexOf("e"))<0)return null;var E,F=M.slice(0,E);return[F.length>1?F[0]+F.slice(2):F,+M.slice(E+1)]}function a(M){return M=t(Math.abs(M)),M?M[1]:NaN}function n(M,C){return function(E,F){for(var P=E.length,q=[],z=0,I=M[0],Y=0;P>0&&I>0&&(Y+I+1>F&&(I=Math.max(1,F-Y)),q.push(E.substring(P-=I,P+I)),!((Y+=I+1)>F));)I=M[z=(z+1)%M.length];return q.reverse().join(C)}}function i(M){return function(C){return C.replace(/[0-9]/g,function(E){return M[+E]})}}var o=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function l(M){if(!(C=o.exec(M)))throw new Error("invalid format: "+M);var C;return new s({fill:C[1],align:C[2],sign:C[3],symbol:C[4],zero:C[5],width:C[6],comma:C[7],precision:C[8]&&C[8].slice(1),trim:C[9],type:C[10]})}l.prototype=s.prototype;function s(M){this.fill=M.fill===void 0?" ":M.fill+"",this.align=M.align===void 0?">":M.align+"",this.sign=M.sign===void 0?"-":M.sign+"",this.symbol=M.symbol===void 0?"":M.symbol+"",this.zero=!!M.zero,this.width=M.width===void 0?void 0:+M.width,this.comma=!!M.comma,this.precision=M.precision===void 0?void 0:+M.precision,this.trim=!!M.trim,this.type=M.type===void 0?"":M.type+""}s.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 u(M){e:for(var C=M.length,E=1,F=-1,P;E0&&(F=0);break}return F>0?M.slice(0,F)+M.slice(P+1):M}var f;function c(M,C){var E=t(M,C);if(!E)return M+"";var F=E[0],P=E[1],q=P-(f=Math.max(-8,Math.min(8,Math.floor(P/3)))*3)+1,z=F.length;return q===z?F:q>z?F+new Array(q-z+1).join("0"):q>0?F.slice(0,q)+"."+F.slice(q):"0."+new Array(1-q).join("0")+t(M,Math.max(0,C+q-1))[0]}function v(M,C){var E=t(M,C);if(!E)return M+"";var F=E[0],P=E[1];return P<0?"0."+new Array(-P).join("0")+F:F.length>P+1?F.slice(0,P+1)+"."+F.slice(P+1):F+new Array(P-F.length+2).join("0")}var d={"%":function(M,C){return(M*100).toFixed(C)},b:function(M){return Math.round(M).toString(2)},c:function(M){return M+""},d:r,e:function(M,C){return M.toExponential(C)},f:function(M,C){return M.toFixed(C)},g:function(M,C){return M.toPrecision(C)},o:function(M){return Math.round(M).toString(8)},p:function(M,C){return v(M*100,C)},r:v,s:c,X:function(M){return Math.round(M).toString(16).toUpperCase()},x:function(M){return Math.round(M).toString(16)}};function p(M){return M}var y=Array.prototype.map,m=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function b(M){var C=M.grouping===void 0||M.thousands===void 0?p:n(y.call(M.grouping,Number),M.thousands+""),E=M.currency===void 0?"":M.currency[0]+"",F=M.currency===void 0?"":M.currency[1]+"",P=M.decimal===void 0?".":M.decimal+"",q=M.numerals===void 0?p:i(y.call(M.numerals,String)),z=M.percent===void 0?"%":M.percent+"",I=M.minus===void 0?"-":M.minus+"",Y=M.nan===void 0?"NaN":M.nan+"";function V(U){U=l(U);var G=U.fill,W=U.align,j=U.sign,ae=U.symbol,pe=U.zero,se=U.width,we=U.comma,te=U.precision,Ee=U.trim,de=U.type;de==="n"?(we=!0,de="g"):d[de]||(te===void 0&&(te=12),Ee=!0,de="g"),(pe||G==="0"&&W==="=")&&(pe=!0,G="0",W="=");var Ae=ae==="$"?E:ae==="#"&&/[boxX]/.test(de)?"0"+de.toLowerCase():"",Ue=ae==="$"?F:/[%p]/.test(de)?z:"",ge=d[de],Ne=/[defgprs%]/.test(de);te=te===void 0?6:/[gprs]/.test(de)?Math.max(1,Math.min(21,te)):Math.max(0,Math.min(20,te));function ir(qe){var Ve=Ae,Qe=Ue,er,rr,yr;if(de==="c")Qe=ge(qe)+Qe,qe="";else{qe=+qe;var Ge=qe<0||1/qe<0;if(qe=isNaN(qe)?Y:ge(Math.abs(qe),te),Ee&&(qe=u(qe)),Ge&&+qe==0&&j!=="+"&&(Ge=!1),Ve=(Ge?j==="("?j:I:j==="-"||j==="("?"":j)+Ve,Qe=(de==="s"?m[8+f/3]:"")+Qe+(Ge&&j==="("?")":""),Ne){for(er=-1,rr=qe.length;++eryr||yr>57){Qe=(yr===46?P+qe.slice(er+1):qe.slice(er))+Qe,qe=qe.slice(0,er);break}}}we&&!pe&&(qe=C(qe,1/0));var Sr=Ve.length+qe.length+Qe.length,Fr=Sr>1)+Ve+qe+Qe+Fr.slice(Sr);break;default:qe=Fr+Ve+qe+Qe;break}return q(qe)}return ir.toString=function(){return U+""},ir}function J(U,G){var W=V((U=l(U),U.type="f",U)),j=Math.max(-8,Math.min(8,Math.floor(a(G)/3)))*3,ae=Math.pow(10,-j),pe=m[8+j/3];return function(se){return W(ae*se)+pe}}return{format:V,formatPrefix:J}}var T;_({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function _(M){return T=b(M),e.format=T.format,e.formatPrefix=T.formatPrefix,T}function x(M){return Math.max(0,-a(Math.abs(M)))}function w(M,C){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(a(C)/3)))*3-a(Math.abs(M)))}function k(M,C){return M=Math.abs(M),C=Math.abs(C)-M,Math.max(0,a(C)-a(M))+1}e.FormatSpecifier=s,e.formatDefaultLocale=_,e.formatLocale=b,e.formatSpecifier=l,e.precisionFixed=x,e.precisionPrefix=w,e.precisionRound=k,Object.defineProperty(e,"__esModule",{value:!0})}))});var ZM=B((nLe,WM)=>{"use strict";WM.exports=function(e){for(var r=e.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}});var ca=B((iLe,JM)=>{"use strict";var _te=ZM();JM.exports=function(e){var r=typeof e;if(r==="string"){var t=e;if(e=+e,e===0&&_te(t))return!1}else if(r!=="number")return!1;return e-e<1}});var Wn={};Ja(Wn,{ALMOST_EQUAL:()=>Ote,BADNUM:()=>s_,EPOCHJD:()=>Ite,FP_SAFE:()=>wte,LOG_CLIP:()=>Hte,MINUS_SIGN:()=>Ute,ONEAVGMONTH:()=>Lte,ONEAVGQUARTER:()=>Ste,ONEAVGYEAR:()=>Tte,ONEDAY:()=>Fte,ONEHOUR:()=>Rte,ONEMAXMONTH:()=>Dte,ONEMAXQUARTER:()=>kte,ONEMAXYEAR:()=>Ate,ONEMICROSEC:()=>Bte,ONEMILLI:()=>zte,ONEMIN:()=>Pte,ONEMINMONTH:()=>Ete,ONEMINQUARTER:()=>Cte,ONEMINYEAR:()=>Mte,ONESEC:()=>Nte,ONEWEEK:()=>qte});var s_,wte,Ate,Tte,Mte,kte,Ste,Cte,Dte,Lte,Ete,qte,Fte,Rte,Pte,Nte,zte,Bte,Ite,Ote,Hte,Ute,In=Za(()=>{"use strict";s_=void 0,wte=Number.MAX_VALUE*1e-4,Ate=316224e5,Tte=315576e5,Mte=31536e6,kte=79488e5,Ste=78894e5,Cte=76896e5,Dte=26784e5,Lte=26298e5,Ete=24192e5,qte=6048e5,Fte=864e5,Rte=36e5,Pte=6e4,Nte=1e3,zte=1,Bte=.001,Ite=24405875e-1,Ote=1-1e-6,Hte=10,Ute="\u2212"});var u_=B((uy,jM)=>{(function(e,r){typeof uy=="object"&&typeof jM!="undefined"?r(uy):(e=typeof globalThis!="undefined"?globalThis:e||self,r(e["base64-arraybuffer"]={}))})(uy,(function(e){"use strict";for(var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),a=0;a>2],f+=r[(l[s]&3)<<4|l[s+1]>>4],f+=r[(l[s+1]&15)<<2|l[s+2]>>6],f+=r[l[s+2]&63];return u%3===2?f=f.substring(0,f.length-1)+"=":u%3===1&&(f=f.substring(0,f.length-2)+"=="),f},i=function(o){var l=o.length*.75,s=o.length,u,f=0,c,v,d,p;o[o.length-1]==="="&&(l--,o[o.length-2]==="="&&l--);var y=new ArrayBuffer(l),m=new Uint8Array(y);for(u=0;u>4,m[f++]=(v&15)<<4|d>>2,m[f++]=(d&3)<<6|p&63;return y};e.decode=i,e.encode=n,Object.defineProperty(e,"__esModule",{value:!0})}))});var D0=B((oLe,$M)=>{"use strict";$M.exports=function(r){return window&&window.process&&window.process.versions?Object.prototype.toString.call(r)==="[object Object]":Object.prototype.toString.call(r)==="[object Object]"&&Object.getPrototypeOf(r).hasOwnProperty("hasOwnProperty")}});var no=B(Cl=>{"use strict";var Gte=u_().decode,Yte=D0(),f_=Array.isArray,Vte=ArrayBuffer,Xte=DataView;function KM(e){return Vte.isView(e)&&!(e instanceof Xte)}Cl.isTypedArray=KM;function fy(e){return f_(e)||KM(e)}Cl.isArrayOrTypedArray=fy;function Wte(e){return!fy(e[0])}Cl.isArray1D=Wte;Cl.ensureArray=function(e,r){return f_(e)||(e=[]),e.length=r,e};var mi={u1c:typeof Uint8ClampedArray=="undefined"?void 0:Uint8ClampedArray,i1:typeof Int8Array=="undefined"?void 0:Int8Array,u1:typeof Uint8Array=="undefined"?void 0:Uint8Array,i2:typeof Int16Array=="undefined"?void 0:Int16Array,u2:typeof Uint16Array=="undefined"?void 0:Uint16Array,i4:typeof Int32Array=="undefined"?void 0:Int32Array,u4:typeof Uint32Array=="undefined"?void 0:Uint32Array,f4:typeof Float32Array=="undefined"?void 0:Float32Array,f8:typeof Float64Array=="undefined"?void 0:Float64Array};mi.uint8c=mi.u1c;mi.uint8=mi.u1;mi.int8=mi.i1;mi.uint16=mi.u2;mi.int16=mi.i2;mi.uint32=mi.u4;mi.int32=mi.i4;mi.float32=mi.f4;mi.float64=mi.f8;function c_(e){return e.constructor===ArrayBuffer}Cl.isArrayBuffer=c_;Cl.decodeTypedArraySpec=function(e){var r=[],t=Zte(e),a=t.dtype,n=mi[a];if(!n)throw new Error('Error in dtype: "'+a+'"');var i=n.BYTES_PER_ELEMENT,o=t.bdata;c_(o)||(o=Gte(o));var l=t.shape===void 0?[o.byteLength/i]:(""+t.shape).split(",");l.reverse();var s=l.length,u,f,c=+l[0],v=i*c,d=0;if(s===1)r=new n(o);else if(s===2)for(u=+l[1],f=0;f{"use strict";var ek=ca(),h_=no().isArrayOrTypedArray;nk.exports=function(r,t){if(ek(t))t=String(t);else if(typeof t!="string"||t.slice(-4)==="[-1]")throw"bad property string";var a=t.split("."),n,i,o,l;for(l=0;l{"use strict";var _v=cy(),Qte=/^\w*$/,eae=0,ik=1,vy=2,ok=3,L0=4;lk.exports=function(r,t,a,n){a=a||"name",n=n||"value";var i,o,l,s={};t&&t.length?(l=_v(r,t),o=l.get()):o=r,t=t||"";var u={};if(o)for(i=0;i2)return s[d]=s[d]|vy,c.set(v,null);if(f){for(i=d;i{"use strict";var rae=/^(.*)(\.[^\.\[\]]+|\[\d\])$/,tae=/^[^\.\[\]]+$/;uk.exports=function(e,r){for(;r;){var t=e.match(rae);if(t)e=t[1];else if(e.match(tae))e="";else throw new Error("bad relativeAttr call:"+[e,r]);if(r.charAt(0)==="^")r=r.slice(1);else break}return e&&r.charAt(0)!=="["?e+"."+r:e+r}});var hy=B((cLe,ck)=>{"use strict";var aae=ca();ck.exports=function(r,t){if(r>0)return Math.log(r)/Math.LN10;var a=Math.log(Math.min(t[0],t[1]))/Math.LN10;return aae(a)||(a=Math.log(Math.max(t[0],t[1]))/Math.LN10-6),a}});var dk=B((vLe,hk)=>{"use strict";var vk=no().isArrayOrTypedArray,p2=D0();hk.exports=function e(r,t){for(var a in t){var n=t[a],i=r[a];if(i!==n)if(a.charAt(0)==="_"||typeof n=="function"){if(a in r)continue;r[a]=n}else if(vk(n)&&vk(i)&&p2(n[0])){if(a==="customdata"||a==="ids")continue;for(var o=Math.min(n.length,i.length),l=0;lnae,modHalf:()=>iae});function nae(e,r){let t=e%r;return t<0?t+r:t}function iae(e,r){return Math.abs(e)>r/2?e-Math.round(e/r)*r:e}var Av=Za(()=>{"use strict"});var Sn=B(g2=>{"use strict";var pk=D0(),m2=Array.isArray;function oae(e,r){var t,a;for(t=0;t{"use strict";mk.exports=function(e){var r=e.variantValues,t=e.editType,a=e.colorEditType;a===void 0&&(a=t);var n={editType:t,valType:"integer",min:1,max:1e3,extras:["normal","bold"],dflt:"normal"};e.noNumericWeightValues&&(n.valType="enumerated",n.values=n.extras,n.extras=void 0,n.min=void 0,n.max=void 0);var i={family:{valType:"string",noBlank:!0,strict:!0,editType:t},size:{valType:"number",min:1,editType:t},color:{valType:"color",editType:a},weight:n,style:{editType:t,valType:"enumerated",values:["normal","italic"],dflt:"normal"},variant:e.noFontVariant?void 0:{editType:t,valType:"enumerated",values:r||["normal","small-caps","all-small-caps","all-petite-caps","petite-caps","unicase"],dflt:"normal"},textcase:e.noFontTextcase?void 0:{editType:t,valType:"enumerated",values:["normal","word caps","upper","lower"],dflt:"normal"},lineposition:e.noFontLineposition?void 0:{editType:t,valType:"flaglist",flags:["under","over","through"],extras:["none"],dflt:"none"},shadow:e.noFontShadow?void 0:{editType:t,valType:"string",dflt:e.autoShadowDflt?"auto":"none"},editType:t};return e.autoSize&&(i.size.dflt="auto"),e.autoColor&&(i.color.dflt="auto"),e.arrayOk&&(i.family.arrayOk=!0,i.weight.arrayOk=!0,i.style.arrayOk=!0,e.noFontVariant||(i.variant.arrayOk=!0),e.noFontTextcase||(i.textcase.arrayOk=!0),e.noFontLineposition||(i.lineposition.arrayOk=!0),e.noFontShadow||(i.shadow.arrayOk=!0),i.size.arrayOk=!0,i.color.arrayOk=!0),i}});var b2={};Ja(b2,{HOVERARROWSIZE:()=>sae,HOVERFONT:()=>cae,HOVERFONTSIZE:()=>fae,HOVERID:()=>hae,HOVERMINTIME:()=>vae,HOVERTEXTPAD:()=>uae,YANGLE:()=>lae});var lae,sae,uae,fae,cae,vae,hae,x2=Za(()=>{"use strict";lae=60,sae=6,uae=3,fae=13,cae="Arial, sans-serif",vae=50,hae="-hover"});var Tv=B((pLe,bk)=>{"use strict";var yk=(x2(),vr(b2)),gk=Ai(),d_=gk({editType:"none"});d_.family.dflt=yk.HOVERFONT;d_.size.dflt=yk.HOVERFONTSIZE;bk.exports={clickmode:{valType:"flaglist",flags:["event","select"],dflt:"event",editType:"plot",extras:["none"]},dragmode:{valType:"enumerated",values:["zoom","pan","select","lasso","drawclosedpath","drawopenpath","drawline","drawrect","drawcircle","orbit","turntable",!1],dflt:"zoom",editType:"modebar"},hovermode:{valType:"enumerated",values:["x","y","closest",!1,"x unified","y unified"],dflt:"closest",editType:"modebar"},hoversort:{valType:"enumerated",values:["trace","value descending","value ascending"],dflt:"trace",editType:"none"},hoversubplots:{valType:"enumerated",values:["single","overlaying","axis"],dflt:"overlaying",editType:"none"},hoveranywhere:{valType:"boolean",dflt:!1,editType:"none"},clickanywhere:{valType:"boolean",dflt:!1,editType:"none"},hoverdistance:{valType:"integer",min:-1,dflt:20,editType:"none"},spikedistance:{valType:"integer",min:-1,dflt:-1,editType:"none"},hoverlabel:{bgcolor:{valType:"color",editType:"none"},bordercolor:{valType:"color",editType:"none"},font:d_,grouptitlefont:gk({editType:"none"}),align:{valType:"enumerated",values:["left","right","auto"],dflt:"auto",editType:"none"},namelength:{valType:"integer",min:-1,dflt:15,editType:"none"},showarrow:{valType:"boolean",dflt:!0,editType:"none"},editType:"none"},selectdirection:{valType:"enumerated",values:["h","v","d","any"],dflt:"any",editType:"none"}}});var dy=B((mLe,xk)=>{"use strict";var dae=Ai(),_2=Tv().hoverlabel,w2=Sn().extendFlat;xk.exports={hoverlabel:{bgcolor:w2({},_2.bgcolor,{arrayOk:!0}),bordercolor:w2({},_2.bordercolor,{arrayOk:!0}),font:dae({arrayOk:!0,editType:"none"}),align:w2({},_2.align,{arrayOk:!0}),namelength:w2({},_2.namelength,{arrayOk:!0}),showarrow:w2({},_2.showarrow),editType:"none"}}});var Dl=B((yLe,_k)=>{"use strict";var pae=Ai(),mae=dy();_k.exports={type:{valType:"enumerated",values:[],dflt:"scatter",editType:"calc+clearAxisTypes",_noTemplating:!0},visible:{valType:"enumerated",values:[!0,!1,"legendonly"],dflt:!0,editType:"calc"},showlegend:{valType:"boolean",dflt:!0,editType:"style"},legend:{valType:"subplotid",dflt:"legend",editType:"style"},legendgroup:{valType:"string",dflt:"",editType:"style"},legendgrouptitle:{text:{valType:"string",dflt:"",editType:"style"},font:pae({editType:"style"}),editType:"style"},legendrank:{valType:"number",dflt:1e3,editType:"style"},legendwidth:{valType:"number",min:0,editType:"style"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"style"},name:{valType:"string",editType:"style"},uid:{valType:"string",editType:"plot",anim:!0},ids:{valType:"data_array",editType:"calc",anim:!0},customdata:{valType:"data_array",editType:"calc"},meta:{valType:"any",arrayOk:!0,editType:"plot"},selectedpoints:{valType:"any",editType:"calc"},hoverinfo:{valType:"flaglist",flags:["x","y","z","text","name"],extras:["all","none","skip"],arrayOk:!0,dflt:"all",editType:"none"},hoverlabel:mae.hoverlabel,uirevision:{valType:"any",editType:"none"}}});var hC=B((TLe,vC)=>{var o4=Object.defineProperty,yae=Object.getOwnPropertyDescriptor,gae=Object.getOwnPropertyNames,bae=Object.prototype.hasOwnProperty,xae=(e,r)=>{for(var t in r)o4(e,t,{get:r[t],enumerable:!0})},_ae=(e,r,t,a)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of gae(r))!bae.call(e,n)&&n!==t&&o4(e,n,{get:()=>r[n],enumerable:!(a=yae(r,n))||a.enumerable});return e},wae=e=>_ae(o4({},"__esModule",{value:!0}),e),Ek={};xae(Ek,{a98:()=>hle,average:()=>gne,averageAngle:()=>cs,averageNumber:()=>Zk,blend:()=>yoe,blerp:()=>O_,clampChroma:()=>zoe,clampGamut:()=>F4,clampRgb:()=>Noe,colorsNamed:()=>Fk,convertA98ToXyz65:()=>H_,convertCubehelixToRgb:()=>Xk,convertDlchToLab65:()=>Ay,convertHsiToRgb:()=>tS,convertHslToRgb:()=>iS,convertHsvToRgb:()=>v4,convertHwbToRgb:()=>uS,convertItpToXyz65:()=>G_,convertJabToJch:()=>V_,convertJabToRgb:()=>g4,convertJabToXyz65:()=>m4,convertJchToJab:()=>X_,convertLab65ToDlch:()=>Ty,convertLab65ToRgb:()=>L2,convertLab65ToXyz65:()=>u4,convertLabToLch:()=>tu,convertLabToRgb:()=>x4,convertLabToXyz50:()=>Ry,convertLchToLab:()=>au,convertLchuvToLuv:()=>A4,convertLrgbToOklab:()=>T4,convertLrgbToRgb:()=>z0,convertLuvToLchuv:()=>w4,convertLuvToXyz50:()=>ky,convertOkhslToOklab:()=>J_,convertOkhsvToOklab:()=>$_,convertOklabToLrgb:()=>qv,convertOklabToOkhsl:()=>Z_,convertOklabToOkhsv:()=>j_,convertOklabToRgb:()=>F2,convertP3ToXyz65:()=>K_,convertProphotoToXyz50:()=>r4,convertRec2020ToXyz65:()=>a4,convertRgbToCubehelix:()=>Vk,convertRgbToHsi:()=>aS,convertRgbToHsl:()=>oS,convertRgbToHsv:()=>h4,convertRgbToHwb:()=>fS,convertRgbToJab:()=>y4,convertRgbToLab:()=>_4,convertRgbToLab65:()=>E2,convertRgbToLrgb:()=>N0,convertRgbToOklab:()=>q2,convertRgbToXyb:()=>BS,convertRgbToXyz50:()=>Ev,convertRgbToXyz65:()=>$u,convertRgbToYiq:()=>VS,convertXybToRgb:()=>IS,convertXyz50ToLab:()=>Py,convertXyz50ToLuv:()=>My,convertXyz50ToProphoto:()=>e4,convertXyz50ToRgb:()=>Lv,convertXyz50ToXyz65:()=>GS,convertXyz65ToA98:()=>U_,convertXyz65ToItp:()=>Y_,convertXyz65ToJab:()=>p4,convertXyz65ToLab65:()=>f4,convertXyz65ToP3:()=>Q_,convertXyz65ToRec2020:()=>t4,convertXyz65ToRgb:()=>Ku,convertXyz65ToXyz50:()=>US,convertYiqToRgb:()=>XS,converter:()=>ja,cubehelix:()=>dle,differenceCie76:()=>cne,differenceCie94:()=>vne,differenceCiede2000:()=>hne,differenceCmc:()=>dne,differenceEuclidean:()=>Dv,differenceHueChroma:()=>D2,differenceHueNaive:()=>Wk,differenceHueSaturation:()=>C2,differenceHyab:()=>pne,differenceItp:()=>yne,differenceKotsarenkoRamos:()=>mne,displayable:()=>q4,dlab:()=>ple,dlch:()=>mle,easingGamma:()=>lC,easingInOutSine:()=>cle,easingMidpoint:()=>eC,easingSmootherstep:()=>ule,easingSmoothstep:()=>ole,easingSmoothstepInverse:()=>lle,filterBrightness:()=>Xoe,filterContrast:()=>Woe,filterDeficiencyDeuter:()=>nle,filterDeficiencyProt:()=>ale,filterDeficiencyTrit:()=>ile,filterGrayscale:()=>joe,filterHueRotate:()=>Koe,filterInvert:()=>$oe,filterSaturate:()=>Joe,filterSepia:()=>Zoe,fixupAlpha:()=>ii,fixupHueDecreasing:()=>one,fixupHueIncreasing:()=>ine,fixupHueLonger:()=>nne,fixupHueShorter:()=>fs,formatCss:()=>foe,formatHex:()=>coe,formatHex8:()=>voe,formatHsl:()=>doe,formatRgb:()=>hoe,getMode:()=>Yi,hsi:()=>yle,hsl:()=>gle,hsv:()=>ble,hwb:()=>xle,inGamut:()=>By,interpolate:()=>koe,interpolateWith:()=>tC,interpolateWithPremultipliedAlpha:()=>Soe,interpolatorLinear:()=>yt,interpolatorPiecewise:()=>Gk,interpolatorSplineBasis:()=>nC,interpolatorSplineBasisClosed:()=>iC,interpolatorSplineMonotone:()=>Loe,interpolatorSplineMonotone2:()=>Eoe,interpolatorSplineMonotoneClosed:()=>qoe,interpolatorSplineNatural:()=>Coe,interpolatorSplineNaturalClosed:()=>Doe,itp:()=>_le,jab:()=>wle,jch:()=>Ale,lab:()=>Tle,lab65:()=>Mle,lch:()=>kle,lch65:()=>Sle,lchuv:()=>Cle,lerp:()=>q0,lrgb:()=>Dle,luv:()=>Lle,mapAlphaDivide:()=>QS,mapAlphaMultiply:()=>KS,mapTransferGamma:()=>woe,mapTransferLinear:()=>D4,mapper:()=>R2,modeA98:()=>Yk,modeCubehelix:()=>Jk,modeDlab:()=>eS,modeDlch:()=>rS,modeHsi:()=>nS,modeHsl:()=>c4,modeHsv:()=>d4,modeHwb:()=>vS,modeItp:()=>pS,modeJab:()=>mS,modeJch:()=>yS,modeLab:()=>Ny,modeLab65:()=>bS,modeLch:()=>zy,modeLch65:()=>_S,modeLchuv:()=>TS,modeLrgb:()=>MS,modeLuv:()=>kS,modeOkhsl:()=>CS,modeOkhsv:()=>DS,modeOklab:()=>ES,modeOklch:()=>FS,modeP3:()=>RS,modeProphoto:()=>PS,modeRec2020:()=>NS,modeRgb:()=>P0,modeXyb:()=>OS,modeXyz50:()=>HS,modeXyz65:()=>YS,modeYiq:()=>WS,nearest:()=>Ooe,okhsl:()=>Ele,okhsv:()=>qle,oklab:()=>Fle,oklch:()=>Rle,p3:()=>Ple,parse:()=>Ok,parseHex:()=>Pk,parseHsl:()=>sS,parseHslLegacy:()=>lS,parseHwb:()=>cS,parseLab:()=>gS,parseLch:()=>xS,parseNamed:()=>Rk,parseOklab:()=>LS,parseOklch:()=>qS,parseRgb:()=>Hk,parseRgbLegacy:()=>Nk,parseTransparent:()=>Uk,prophoto:()=>Nle,random:()=>_oe,rec2020:()=>zle,removeParser:()=>Nae,rgb:()=>Ble,round:()=>ZS,samples:()=>Poe,serializeHex:()=>C4,serializeHex8:()=>JS,serializeHsl:()=>$S,serializeRgb:()=>jS,toGamut:()=>Boe,trilerp:()=>Wae,unlerp:()=>Xae,useMode:()=>Fa,useParser:()=>Bk,wcagContrast:()=>vle,wcagLuminance:()=>i4,xyb:()=>Ile,xyz50:()=>Ole,xyz65:()=>Hle,yiq:()=>Ule});vC.exports=wae(Ek);var Aae=(e,r)=>{if(typeof e=="number"){if(r===3)return{mode:"rgb",r:(e>>8&15|e>>4&240)/255,g:(e>>4&15|e&240)/255,b:(e&15|e<<4&240)/255};if(r===4)return{mode:"rgb",r:(e>>12&15|e>>8&240)/255,g:(e>>8&15|e>>4&240)/255,b:(e>>4&15|e&240)/255,alpha:(e&15|e<<4&240)/255};if(r===6)return{mode:"rgb",r:(e>>16&255)/255,g:(e>>8&255)/255,b:(e&255)/255};if(r===8)return{mode:"rgb",r:(e>>24&255)/255,g:(e>>16&255)/255,b:(e>>8&255)/255,alpha:(e&255)/255}}},qk=Aae,Tae={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},Fk=Tae,Mae=e=>qk(Fk[e.toLowerCase()],6),Rk=Mae,kae=/^#?([0-9a-f]{8}|[0-9a-f]{6}|[0-9a-f]{4}|[0-9a-f]{3})$/i,Sae=e=>{let r;return(r=e.match(kae))?qk(parseInt(r[1],16),r[1].length):void 0},Pk=Sae,yo="([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)",gLe=`(?:${yo}|none)`,M2=`${yo}%`,bLe=`(?:${yo}%|none)`,l4=`(?:${yo}%|${yo})`,Cae=`(?:${yo}%|${yo}|none)`,Dae=`(?:${yo}(deg|grad|rad|turn)|${yo})`,xLe=`(?:${yo}(deg|grad|rad|turn)|${yo}|none)`,Sv="\\s*,\\s*",_Le=new RegExp("^"+Cae+"$"),Lae=new RegExp(`^rgba?\\(\\s*${yo}${Sv}${yo}${Sv}${yo}\\s*(?:,\\s*${l4}\\s*)?\\)$`),Eae=new RegExp(`^rgba?\\(\\s*${M2}${Sv}${M2}${Sv}${M2}\\s*(?:,\\s*${l4}\\s*)?\\)$`),qae=e=>{let r={mode:"rgb"},t;if(t=e.match(Lae))t[1]!==void 0&&(r.r=t[1]/255),t[2]!==void 0&&(r.g=t[2]/255),t[3]!==void 0&&(r.b=t[3]/255);else if(t=e.match(Eae))t[1]!==void 0&&(r.r=t[1]/100),t[2]!==void 0&&(r.g=t[2]/100),t[3]!==void 0&&(r.b=t[3]/100);else return;return t[4]!==void 0?r.alpha=Math.max(0,Math.min(1,t[4]/100)):t[5]!==void 0&&(r.alpha=Math.max(0,Math.min(1,+t[5]))),r},Nk=qae,Fae=(e,r)=>e===void 0?void 0:typeof e!="object"?Ok(e):e.mode!==void 0?e:r?an(La({},e),{mode:r}):void 0,Ll=Fae,Rae=(e="rgb")=>r=>(r=Ll(r,e))!==void 0?r.mode===e?r:us[r.mode][e]?us[r.mode][e](r):e==="rgb"?us[r.mode].rgb(r):us.rgb[e](us[r.mode].rgb(r)):void 0,ja=Rae,us={},zk={},Cv=[],s4={},Pae=e=>e,Fa=e=>(us[e.mode]=La(La({},us[e.mode]),e.toMode),Object.keys(e.fromMode||{}).forEach(r=>{us[r]||(us[r]={}),us[r][e.mode]=e.fromMode[r]}),e.ranges||(e.ranges={}),e.difference||(e.difference={}),e.channels.forEach(r=>{if(e.ranges[r]===void 0&&(e.ranges[r]=[0,1]),!e.interpolate[r])throw new Error(`Missing interpolator for: ${r}`);typeof e.interpolate[r]=="function"&&(e.interpolate[r]={use:e.interpolate[r]}),e.interpolate[r].fixup||(e.interpolate[r].fixup=Pae)}),zk[e.mode]=e,(e.parse||[]).forEach(r=>{Bk(r,e.mode)}),ja(e.mode)),Yi=e=>zk[e],Bk=(e,r)=>{if(typeof e=="string"){if(!r)throw new Error("'mode' required when 'parser' is a string");s4[e]=r}else typeof e=="function"&&Cv.indexOf(e)<0&&Cv.push(e)},Nae=e=>{if(typeof e=="string")delete s4[e];else if(typeof e=="function"){let r=Cv.indexOf(e);r>0&&Cv.splice(r,1)}},B_=/[^\x00-\x7F]|[a-zA-Z_]/,zae=/[^\x00-\x7F]|[-\w]/,et={Function:"function",Ident:"ident",Number:"number",Percentage:"percentage",ParenClose:")",None:"none",Hue:"hue",Alpha:"alpha"},jt=0;function py(e){let r=e[jt],t=e[jt+1];return r==="-"||r==="+"?/\d/.test(t)||t==="."&&/\d/.test(e[jt+2]):r==="."?/\d/.test(t):/\d/.test(r)}function I_(e){if(jt>=e.length)return!1;let r=e[jt];if(B_.test(r))return!0;if(r==="-"){if(e.length-jt<2)return!1;let t=e[jt+1];return!!(t==="-"||B_.test(t))}return!1}var Bae={deg:1,rad:180/Math.PI,grad:9/10,turn:360};function A2(e){let r="";if((e[jt]==="-"||e[jt]==="+")&&(r+=e[jt++]),r+=my(e),e[jt]==="."&&/\d/.test(e[jt+1])&&(r+=e[jt++]+my(e)),(e[jt]==="e"||e[jt]==="E")&&((e[jt+1]==="-"||e[jt+1]==="+")&&/\d/.test(e[jt+2])?r+=e[jt++]+e[jt++]+my(e):/\d/.test(e[jt+1])&&(r+=e[jt++]+my(e))),I_(e)){let t=by(e);return t==="deg"||t==="rad"||t==="turn"||t==="grad"?{type:et.Hue,value:r*Bae[t]}:void 0}return e[jt]==="%"?(jt++,{type:et.Percentage,value:+r}):{type:et.Number,value:+r}}function my(e){let r="";for(;/\d/.test(e[jt]);)r+=e[jt++];return r}function by(e){let r="";for(;jt4)){if(t.length===4){if(t[3].type!==et.Alpha)return;t[3]=t[3].value}return t.length===3&&t.push({type:et.None,value:void 0}),t.every(n=>n.type!==et.Alpha)?t:void 0}}function Uae(e,r){e._i=0;let t=e[e._i++];if(!t||t.type!==et.Function)return;let a=Ik(e,r);if(a)return a.unshift(t.value),a}var Gae=e=>{if(typeof e!="string")return;let r=Oae(e),t=r?Uae(r,!0):void 0,a,n=0,i=Cv.length;for(;ne==="transparent"?{mode:"rgb",r:0,g:0,b:0,alpha:0}:void 0,Uk=Vae,q0=(e,r,t)=>e+t*(r-e),Xae=(e,r,t)=>(t-e)/(r-e),O_=(e,r,t,a,n,i)=>q0(q0(e,r,n),q0(t,a,n),i),Wae=(e,r,t,a,n,i,o,l,s,u,f)=>q0(O_(e,r,t,a,s,u),O_(n,i,o,l,s,u),f),Zae=e=>{let r=[];for(let t=0;tr=>{let t=Zae(r);return a=>{let n=a*t.length,i=a>=1?t.length-1:Math.max(Math.floor(n),0),o=t[i];return o===void 0?void 0:e(o[0],o[1],n-i)}},yt=Gk(q0),ii=e=>{let r=!1,t=e.map(a=>a!==void 0?(r=!0,a):1);return r?t:e},Jae={mode:"rgb",channels:["r","g","b","alpha"],parse:[Hk,Pk,Nk,Rk,Uk,"srgb"],serialize:"srgb",interpolate:{r:yt,g:yt,b:yt,alpha:{use:yt,fixup:ii}},gamut:!0,white:{r:1,g:1,b:1},black:{r:0,g:0,b:0}},P0=Jae,p_=(e=0)=>Math.pow(Math.abs(e),563/256)*Math.sign(e),jae=e=>{let r=p_(e.r),t=p_(e.g),a=p_(e.b),n={mode:"xyz65",x:.5766690429101305*r+.1855582379065463*t+.1882286462349947*a,y:.297344975250536*r+.6273635662554661*t+.0752914584939979*a,z:.0270313613864123*r+.0706888525358272*t+.9913375368376386*a};return e.alpha!==void 0&&(n.alpha=e.alpha),n},H_=jae,m_=e=>Math.pow(Math.abs(e),256/563)*Math.sign(e),$ae=({x:e,y:r,z:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n={mode:"a98",r:m_(e*2.0415879038107465-r*.5650069742788597-.3447313507783297*t),g:m_(e*-.9692436362808798+r*1.8759675015077206+.0415550574071756*t),b:m_(e*.0134442806320312-r*.1183623922310184+1.0151749943912058*t)};return a!==void 0&&(n.alpha=a),n},U_=$ae,y_=(e=0)=>{let r=Math.abs(e);return r<=.04045?e/12.92:(Math.sign(e)||1)*Math.pow((r+.055)/1.055,2.4)},Kae=({r:e,g:r,b:t,alpha:a})=>{let n={mode:"lrgb",r:y_(e),g:y_(r),b:y_(t)};return a!==void 0&&(n.alpha=a),n},N0=Kae,Qae=e=>{let{r,g:t,b:a,alpha:n}=N0(e),i={mode:"xyz65",x:.4123907992659593*r+.357584339383878*t+.1804807884018343*a,y:.2126390058715102*r+.715168678767756*t+.0721923153607337*a,z:.0193308187155918*r+.119194779794626*t+.9505321522496607*a};return n!==void 0&&(i.alpha=n),i},$u=Qae,g_=(e=0)=>{let r=Math.abs(e);return r>.0031308?(Math.sign(e)||1)*(1.055*Math.pow(r,1/2.4)-.055):e*12.92},ene=({r:e,g:r,b:t,alpha:a},n="rgb")=>{let i={mode:n,r:g_(e),g:g_(r),b:g_(t)};return a!==void 0&&(i.alpha=a),i},z0=ene,rne=({x:e,y:r,z:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=z0({r:e*3.2409699419045226-r*1.537383177570094-.4986107602930034*t,g:e*-.9692436362808796+r*1.8759675015077204+.0415550574071756*t,b:e*.0556300796969936-r*.2039769588889765+1.0569715142428784*t});return a!==void 0&&(n.alpha=a),n},Ku=rne,tne=an(La({},P0),{mode:"a98",parse:["a98-rgb"],serialize:"a98-rgb",fromMode:{rgb:e=>U_($u(e)),xyz65:U_},toMode:{rgb:e=>Ku(H_(e)),xyz65:H_}}),Yk=tne,ane=e=>(e=e%360)<0?e+360:e,Ri=ane,Cy=(e,r)=>e.map((t,a,n)=>{if(t===void 0)return t;let i=Ri(t);return a===0||e[a-1]===void 0?i:r(i-Ri(n[a-1]))}).reduce((t,a)=>!t.length||a===void 0||t[t.length-1]===void 0?(t.push(a),t):(t.push(a+t[t.length-1]),t),[]),fs=e=>Cy(e,r=>Math.abs(r)<=180?r:r-360*Math.sign(r)),nne=e=>Cy(e,r=>Math.abs(r)>=180||r===0?r:r-360*Math.sign(r)),ine=e=>Cy(e,r=>r>=0?r:r+360),one=e=>Cy(e,r=>r<=0?r:r-360),Ti=[-.14861,1.78277,-.29227,-.90649,1.97294,0],lne=Math.PI/180,sne=180/Math.PI,wk=Ti[3]*Ti[4],Ak=Ti[1]*Ti[4],Tk=Ti[1]*Ti[2]-Ti[0]*Ti[3],une=({r:e,g:r,b:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=(Tk*t+e*wk-r*Ak)/(Tk+wk-Ak),i=t-n,o=(Ti[4]*(r-n)-Ti[2]*i)/Ti[3],l={mode:"cubehelix",l:n,s:n===0||n===1?void 0:Math.sqrt(i*i+o*o)/(Ti[4]*n*(1-n))};return l.s&&(l.h=Math.atan2(o,i)*sne-120),a!==void 0&&(l.alpha=a),l},Vk=une,fne=({h:e,s:r,l:t,alpha:a})=>{let n={mode:"rgb"};e=(e===void 0?0:e+120)*lne,t===void 0&&(t=0);let i=r===void 0?0:r*t*(1-t),o=Math.cos(e),l=Math.sin(e);return n.r=t+i*(Ti[0]*o+Ti[1]*l),n.g=t+i*(Ti[2]*o+Ti[3]*l),n.b=t+i*(Ti[4]*o+Ti[5]*l),a!==void 0&&(n.alpha=a),n},Xk=fne,C2=(e,r)=>{if(e.h===void 0||r.h===void 0||!e.s||!r.s)return 0;let t=Ri(e.h),a=Ri(r.h),n=Math.sin((a-t+360)/2*Math.PI/180);return 2*Math.sqrt(e.s*r.s)*n},Wk=(e,r)=>{if(e.h===void 0||r.h===void 0)return 0;let t=Ri(e.h),a=Ri(r.h);return Math.abs(a-t)>180?t-(a-360*Math.sign(a-t)):a-t},D2=(e,r)=>{if(e.h===void 0||r.h===void 0||!e.c||!r.c)return 0;let t=Ri(e.h),a=Ri(r.h),n=Math.sin((a-t+360)/2*Math.PI/180);return 2*Math.sqrt(e.c*r.c)*n},Dv=(e="rgb",r=[1,1,1,0])=>{let t=Yi(e),a=t.channels,n=t.difference,i=ja(e);return(o,l)=>{let s=i(o),u=i(l);return Math.sqrt(a.reduce((f,c,v)=>{let d=n[c]?n[c](s,u):s[c]-u[c];return f+(r[v]||0)*Math.pow(isNaN(d)?0:d,2)},0))}},cne=()=>Dv("lab65"),vne=(e=1,r=.045,t=.015)=>{let a=ja("lab65");return(n,i)=>{let o=a(n),l=a(i),s=o.l,u=o.a,f=o.b,c=Math.sqrt(u*u+f*f),v=l.l,d=l.a,p=l.b,y=Math.sqrt(d*d+p*p),m=Math.pow(s-v,2),b=Math.pow(c-y,2),T=Math.pow(u-d,2)+Math.pow(f-p,2)-b;return Math.sqrt(m/Math.pow(e,2)+b/Math.pow(1+r*c,2)+T/Math.pow(1+t*c,2))}},hne=(e=1,r=1,t=1)=>{let a=ja("lab65");return(n,i)=>{let o=a(n),l=a(i),s=o.l,u=o.a,f=o.b,c=Math.sqrt(u*u+f*f),v=l.l,d=l.a,p=l.b,y=Math.sqrt(d*d+p*p),m=(c+y)/2,b=.5*(1-Math.sqrt(Math.pow(m,7)/(Math.pow(m,7)+Math.pow(25,7)))),T=u*(1+b),_=d*(1+b),x=Math.sqrt(T*T+f*f),w=Math.sqrt(_*_+p*p),k=Math.abs(T)+Math.abs(f)===0?0:Math.atan2(f,T);k+=(k<0)*2*Math.PI;let M=Math.abs(_)+Math.abs(p)===0?0:Math.atan2(p,_);M+=(M<0)*2*Math.PI;let C=v-s,E=w-x,F=x*w===0?0:M-k;F-=(F>Math.PI)*2*Math.PI,F+=(F<-Math.PI)*2*Math.PI;let P=2*Math.sqrt(x*w)*Math.sin(F/2),q=(s+v)/2,z=(x+w)/2,I;x*w===0?I=k+M:(I=(k+M)/2,I-=(Math.abs(k-M)>Math.PI)*Math.PI,I+=(I<0)*2*Math.PI);let Y=Math.pow(q-50,2),V=1-.17*Math.cos(I-Math.PI/6)+.24*Math.cos(2*I)+.32*Math.cos(3*I+Math.PI/30)-.2*Math.cos(4*I-63*Math.PI/180),J=1+.015*Y/Math.sqrt(20+Y),U=1+.045*z,G=1+.015*z*V,W=30*Math.PI/180*Math.exp(-1*Math.pow((180/Math.PI*I-275)/25,2)),j=2*Math.sqrt(Math.pow(z,7)/(Math.pow(z,7)+Math.pow(25,7))),ae=-1*Math.sin(2*W)*j;return Math.sqrt(Math.pow(C/(e*J),2)+Math.pow(E/(r*U),2)+Math.pow(P/(t*G),2)+ae*E/(r*U)*P/(t*G))}},dne=(e=1,r=1)=>{let t=ja("lab65");return(a,n)=>{let i=t(a),o=i.l,l=i.a,s=i.b,u=Math.sqrt(l*l+s*s),f=Math.atan2(s,l);f=f+2*Math.PI*(f<0);let c=t(n),v=c.l,d=c.a,p=c.b,y=Math.sqrt(d*d+p*p),m=Math.pow(o-v,2),b=Math.pow(u-y,2),T=Math.pow(l-d,2)+Math.pow(s-p,2)-b,_=Math.sqrt(Math.pow(u,4)/(Math.pow(u,4)+1900)),x=f>=164/180*Math.PI&&f<=345/180*Math.PI?.56+Math.abs(.2*Math.cos(f+168/180*Math.PI)):.36+Math.abs(.4*Math.cos(f+35/180*Math.PI)),w=o<16?.511:.040975*o/(1+.01765*o),k=.0638*u/(1+.0131*u)+.638,M=k*(_*x+1-_);return Math.sqrt(m/Math.pow(e*w,2)+b/Math.pow(r*k,2)+T/Math.pow(M,2))}},pne=()=>{let e=ja("lab65");return(r,t)=>{let a=e(r),n=e(t),i=a.l-n.l,o=a.a-n.a,l=a.b-n.b;return Math.abs(i)+Math.sqrt(o*o+l*l)}},mne=()=>Dv("yiq",[.5053,.299,.1957]),yne=()=>Dv("itp",[518400,129600,518400]),cs=e=>{let r=e.reduce((a,n)=>{if(n!==void 0){let i=n*Math.PI/180;a.sin+=Math.sin(i),a.cos+=Math.cos(i)}return a},{sin:0,cos:0}),t=Math.atan2(r.sin,r.cos)*180/Math.PI;return t<0?360+t:t},Zk=e=>{let r=e.filter(t=>t!==void 0);return r.length?r.reduce((t,a)=>t+a,0)/r.length:void 0},b_=e=>typeof e=="function";function gne(e,r="rgb",t){let a=Yi(r),n=e.map(ja(r));return a.channels.reduce((i,o)=>{let l=n.map(s=>s[o]).filter(s=>s!==void 0);if(l.length){let s;b_(t)?s=t:t&&b_(t[o])?s=t[o]:a.average&&b_(a.average[o])?s=a.average[o]:s=Zk,i[o]=s(l,o)}return i},{mode:r})}var bne={mode:"cubehelix",channels:["h","s","l","alpha"],parse:["--cubehelix"],serialize:"--cubehelix",ranges:{h:[0,360],s:[0,4.614],l:[0,1]},fromMode:{rgb:Vk},toMode:{rgb:Xk},interpolate:{h:{use:yt,fixup:fs},s:yt,l:yt,alpha:{use:yt,fixup:ii}},difference:{h:C2},average:{h:cs}},Jk=bne,xne=({l:e,a:r,b:t,alpha:a},n="lch")=>{r===void 0&&(r=0),t===void 0&&(t=0);let i=Math.sqrt(r*r+t*t),o={mode:n,l:e,c:i};return i&&(o.h=Ri(Math.atan2(t,r)*180/Math.PI)),a!==void 0&&(o.alpha=a),o},tu=xne,_ne=({l:e,c:r,h:t,alpha:a},n="lab")=>{t===void 0&&(t=0);let i={mode:n,l:e,a:r?r*Math.cos(t/180*Math.PI):0,b:r?r*Math.sin(t/180*Math.PI):0};return a!==void 0&&(i.alpha=a),i},au=_ne,jk=Math.pow(29,3)/Math.pow(3,3),$k=Math.pow(6,3)/Math.pow(29,3),ni={X:.3457/.3585,Y:1,Z:(1-.3457-.3585)/.3585},kv={X:.3127/.329,Y:1,Z:(1-.3127-.329)/.329},wLe=Math.pow(29,3)/Math.pow(3,3),ALe=Math.pow(6,3)/Math.pow(29,3),x_=e=>Math.pow(e,3)>$k?Math.pow(e,3):(116*e-16)/jk,wne=({l:e,a:r,b:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=(e+16)/116,i=r/500+n,o=n-t/200,l={mode:"xyz65",x:x_(i)*kv.X,y:x_(n)*kv.Y,z:x_(o)*kv.Z};return a!==void 0&&(l.alpha=a),l},u4=wne,Ane=e=>Ku(u4(e)),L2=Ane,__=e=>e>$k?Math.cbrt(e):(jk*e+16)/116,Tne=({x:e,y:r,z:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=__(e/kv.X),i=__(r/kv.Y),o=__(t/kv.Z),l={mode:"lab65",l:116*i-16,a:500*(n-i),b:200*(i-o)};return a!==void 0&&(l.alpha=a),l},f4=Tne,Mne=e=>{let r=f4($u(e));return e.r===e.b&&e.b===e.g&&(r.a=r.b=0),r},E2=Mne,xy=1,Kk=1,S2=26/180*Math.PI,_y=Math.cos(S2),wy=Math.sin(S2),Qk=100/Math.log(139/100),kne=({l:e,c:r,h:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n={mode:"lab65",l:(Math.exp(e*xy/Qk)-1)/.0039},i=(Math.exp(.0435*r*Kk*xy)-1)/.075,o=i*Math.cos(t/180*Math.PI-S2),l=i*Math.sin(t/180*Math.PI-S2);return n.a=o*_y-l/.83*wy,n.b=o*wy+l/.83*_y,a!==void 0&&(n.alpha=a),n},Ay=kne,Sne=({l:e,a:r,b:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=r*_y+t*wy,i=.83*(t*_y-r*wy),o=Math.sqrt(n*n+i*i),l={mode:"dlch",l:Qk/xy*Math.log(1+.0039*e),c:Math.log(1+.075*o)/(.0435*Kk*xy)};return l.c&&(l.h=Ri((Math.atan2(i,n)+S2)/Math.PI*180)),a!==void 0&&(l.alpha=a),l},Ty=Sne,Mk=e=>Ay(tu(e,"dlch")),kk=e=>au(Ty(e),"dlab"),Cne={mode:"dlab",parse:["--din99o-lab"],serialize:"--din99o-lab",toMode:{lab65:Mk,rgb:e=>L2(Mk(e))},fromMode:{lab65:kk,rgb:e=>kk(E2(e))},channels:["l","a","b","alpha"],ranges:{l:[0,100],a:[-40.09,45.501],b:[-40.469,44.344]},interpolate:{l:yt,a:yt,b:yt,alpha:{use:yt,fixup:ii}}},eS=Cne,Dne={mode:"dlch",parse:["--din99o-lch"],serialize:"--din99o-lch",toMode:{lab65:Ay,dlab:e=>au(e,"dlab"),rgb:e=>L2(Ay(e))},fromMode:{lab65:Ty,dlab:e=>tu(e,"dlch"),rgb:e=>Ty(E2(e))},channels:["l","c","h","alpha"],ranges:{l:[0,100],c:[0,51.484],h:[0,360]},interpolate:{l:yt,c:yt,h:{use:yt,fixup:fs},alpha:{use:yt,fixup:ii}},difference:{h:D2},average:{h:cs}},rS=Dne;function tS({h:e,s:r,i:t,alpha:a}){e=Ri(e!==void 0?e:0),r===void 0&&(r=0),t===void 0&&(t=0);let n=Math.abs(e/60%2-1),i;switch(Math.floor(e/60)){case 0:i={r:t*(1+r*(3/(2-n)-1)),g:t*(1+r*(3*(1-n)/(2-n)-1)),b:t*(1-r)};break;case 1:i={r:t*(1+r*(3*(1-n)/(2-n)-1)),g:t*(1+r*(3/(2-n)-1)),b:t*(1-r)};break;case 2:i={r:t*(1-r),g:t*(1+r*(3/(2-n)-1)),b:t*(1+r*(3*(1-n)/(2-n)-1))};break;case 3:i={r:t*(1-r),g:t*(1+r*(3*(1-n)/(2-n)-1)),b:t*(1+r*(3/(2-n)-1))};break;case 4:i={r:t*(1+r*(3*(1-n)/(2-n)-1)),g:t*(1-r),b:t*(1+r*(3/(2-n)-1))};break;case 5:i={r:t*(1+r*(3/(2-n)-1)),g:t*(1-r),b:t*(1+r*(3*(1-n)/(2-n)-1))};break;default:i={r:t*(1-r),g:t*(1-r),b:t*(1-r)}}return i.mode="rgb",a!==void 0&&(i.alpha=a),i}function aS({r:e,g:r,b:t,alpha:a}){e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=Math.max(e,r,t),i=Math.min(e,r,t),o={mode:"hsi",s:e+r+t===0?0:1-3*i/(e+r+t),i:(e+r+t)/3};return n-i!==0&&(o.h=(n===e?(r-t)/(n-i)+(r{switch(r){case"deg":return+e;case"rad":return e/Math.PI*180;case"grad":return e/10*9;case"turn":return e*360}},qne=Ene,Fne=new RegExp(`^hsla?\\(\\s*${Dae}${Sv}${M2}${Sv}${M2}\\s*(?:,\\s*${l4}\\s*)?\\)$`),Rne=e=>{let r=e.match(Fne);if(!r)return;let t={mode:"hsl"};return r[3]!==void 0?t.h=+r[3]:r[1]!==void 0&&r[2]!==void 0&&(t.h=qne(r[1],r[2])),r[4]!==void 0&&(t.s=Math.min(Math.max(0,r[4]/100),1)),r[5]!==void 0&&(t.l=Math.min(Math.max(0,r[5]/100),1)),r[6]!==void 0?t.alpha=Math.max(0,Math.min(1,r[6]/100)):r[7]!==void 0&&(t.alpha=Math.max(0,Math.min(1,+r[7]))),t},lS=Rne;function Pne(e,r){if(!r||r[0]!=="hsl"&&r[0]!=="hsla")return;let t={mode:"hsl"},[,a,n,i,o]=r;if(a.type!==et.None){if(a.type===et.Percentage)return;t.h=a.value}if(n.type!==et.None){if(n.type===et.Hue)return;t.s=n.value/100}if(i.type!==et.None){if(i.type===et.Hue)return;t.l=i.value/100}return o.type!==et.None&&(t.alpha=Math.min(1,Math.max(0,o.type===et.Number?o.value:o.value/100))),t}var sS=Pne,Nne={mode:"hsl",toMode:{rgb:iS},fromMode:{rgb:oS},channels:["h","s","l","alpha"],ranges:{h:[0,360]},gamut:"rgb",parse:[sS,lS],serialize:e=>`hsl(${e.h!==void 0?e.h:"none"} ${e.s!==void 0?e.s*100+"%":"none"} ${e.l!==void 0?e.l*100+"%":"none"}${e.alpha<1?` / ${e.alpha}`:""})`,interpolate:{h:{use:yt,fixup:fs},s:yt,l:yt,alpha:{use:yt,fixup:ii}},difference:{h:C2},average:{h:cs}},c4=Nne;function v4({h:e,s:r,v:t,alpha:a}){e=Ri(e!==void 0?e:0),r===void 0&&(r=0),t===void 0&&(t=0);let n=Math.abs(e/60%2-1),i;switch(Math.floor(e/60)){case 0:i={r:t,g:t*(1-r*n),b:t*(1-r)};break;case 1:i={r:t*(1-r*n),g:t,b:t*(1-r)};break;case 2:i={r:t*(1-r),g:t,b:t*(1-r*n)};break;case 3:i={r:t*(1-r),g:t*(1-r*n),b:t};break;case 4:i={r:t*(1-r*n),g:t*(1-r),b:t};break;case 5:i={r:t,g:t*(1-r),b:t*(1-r*n)};break;default:i={r:t*(1-r),g:t*(1-r),b:t*(1-r)}}return i.mode="rgb",a!==void 0&&(i.alpha=a),i}function h4({r:e,g:r,b:t,alpha:a}){e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=Math.max(e,r,t),i=Math.min(e,r,t),o={mode:"hsv",s:n===0?0:1-i/n,v:n};return n-i!==0&&(o.h=(n===e?(r-t)/(n-i)+(r1){let n=r+t;r/=n,t/=n}return v4({h:e,s:t===1?1:1-r/(1-t),v:1-t,alpha:a})}function fS(e){let r=h4(e);if(r===void 0)return;let t=r.s!==void 0?r.s:0,a=r.v!==void 0?r.v:0,n={mode:"hwb",w:(1-t)*a,b:1-a};return r.h!==void 0&&(n.h=r.h),r.alpha!==void 0&&(n.alpha=r.alpha),n}function Bne(e,r){if(!r||r[0]!=="hwb")return;let t={mode:"hwb"},[,a,n,i,o]=r;if(a.type!==et.None){if(a.type===et.Percentage)return;t.h=a.value}if(n.type!==et.None){if(n.type===et.Hue)return;t.w=n.value/100}if(i.type!==et.None){if(i.type===et.Hue)return;t.b=i.value/100}return o.type!==et.None&&(t.alpha=Math.min(1,Math.max(0,o.type===et.Number?o.value:o.value/100))),t}var cS=Bne,Ine={mode:"hwb",toMode:{rgb:uS},fromMode:{rgb:fS},channels:["h","w","b","alpha"],ranges:{h:[0,360]},gamut:"rgb",parse:[cS],serialize:e=>`hwb(${e.h!==void 0?e.h:"none"} ${e.w!==void 0?e.w*100+"%":"none"} ${e.b!==void 0?e.b*100+"%":"none"}${e.alpha<1?` / ${e.alpha}`:""})`,interpolate:{h:{use:yt,fixup:fs},w:yt,b:yt,alpha:{use:yt,fixup:ii}},difference:{h:Wk},average:{h:cs}},vS=Ine,hS=203,Dy=.1593017578125,dS=78.84375,Ly=.8359375,Ey=18.8515625,qy=18.6875;function w_(e){if(e<0)return 0;let r=Math.pow(e,1/dS);return 1e4*Math.pow(Math.max(0,r-Ly)/(Ey-qy*r),1/Dy)}function A_(e){if(e<0)return 0;let r=Math.pow(e/1e4,Dy);return Math.pow((Ly+Ey*r)/(1+qy*r),dS)}var T_=e=>Math.max(e/hS,0),One=({i:e,t:r,p:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=w_(e+.008609037037932761*r+.11102962500302593*t),i=w_(e-.00860903703793275*r-.11102962500302599*t),o=w_(e+.5600313357106791*r-.32062717498731885*t),l={mode:"xyz65",x:T_(2.070152218389422*n-1.3263473389671556*i+.2066510476294051*o),y:T_(.3647385209748074*n+.680566024947227*i-.0453045459220346*o),z:T_(-.049747207535812*n-.0492609666966138*i+1.1880659249923042*o)};return a!==void 0&&(l.alpha=a),l},G_=One,M_=(e=0)=>Math.max(e*hS,0),Hne=({x:e,y:r,z:t,alpha:a})=>{let n=M_(e),i=M_(r),o=M_(t),l=A_(.3592832590121217*n+.6976051147779502*i-.0358915932320289*o),s=A_(-.1920808463704995*n+1.1004767970374323*i+.0753748658519118*o),u=A_(.0070797844607477*n+.0748396662186366*i+.8433265453898765*o),f=.5*l+.5*s,c=1.61376953125*l-3.323486328125*s+1.709716796875*u,v=4.378173828125*l-4.24560546875*s-.132568359375*u,d={mode:"itp",i:f,t:c,p:v};return a!==void 0&&(d.alpha=a),d},Y_=Hne,Une={mode:"itp",channels:["i","t","p","alpha"],parse:["--ictcp"],serialize:"--ictcp",toMode:{xyz65:G_,rgb:e=>Ku(G_(e))},fromMode:{xyz65:Y_,rgb:e=>Y_($u(e))},ranges:{i:[0,.581],t:[-.369,.272],p:[-.164,.331]},interpolate:{i:yt,t:yt,p:yt,alpha:{use:yt,fixup:ii}}},pS=Une,Gne=134.03437499999998,Yne=16295499532821565e-27,k_=e=>{if(e<0)return 0;let r=Math.pow(e/1e4,Dy);return Math.pow((Ly+Ey*r)/(1+qy*r),Gne)},S_=(e=0)=>Math.max(e*203,0),Vne=({x:e,y:r,z:t,alpha:a})=>{e=S_(e),r=S_(r),t=S_(t);let n=1.15*e-.15*t,i=.66*r+.34*e,o=k_(.41478972*n+.579999*i+.014648*t),l=k_(-.20151*n+1.120649*i+.0531008*t),s=k_(-.0166008*n+.2648*i+.6684799*t),u=(o+l)/2,f={mode:"jab",j:.44*u/(1-.56*u)-Yne,a:3.524*o-4.066708*l+.542708*s,b:.199076*o+1.096799*l-1.295875*s};return a!==void 0&&(f.alpha=a),f},p4=Vne,Xne=134.03437499999998,Sk=16295499532821565e-27,C_=e=>{if(e<0)return 0;let r=Math.pow(e,1/Xne);return 1e4*Math.pow((Ly-r)/(qy*r-Ey),1/Dy)},D_=e=>e/203,Wne=({j:e,a:r,b:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=(e+Sk)/(.44+.56*(e+Sk)),i=C_(n+.13860504*r+.058047316*t),o=C_(n-.13860504*r-.058047316*t),l=C_(n-.096019242*r-.8118919*t),s={mode:"xyz65",x:D_(1.661373024652174*i-.914523081304348*o+.23136208173913045*l),y:D_(-.3250758611844533*i+1.571847026732543*o-.21825383453227928*l),z:D_(-.090982811*i-.31272829*o+1.5227666*l)};return a!==void 0&&(s.alpha=a),s},m4=Wne,Zne=e=>{let r=p4($u(e));return e.r===e.b&&e.b===e.g&&(r.a=r.b=0),r},y4=Zne,Jne=e=>Ku(m4(e)),g4=Jne,jne={mode:"jab",channels:["j","a","b","alpha"],parse:["--jzazbz"],serialize:"--jzazbz",fromMode:{rgb:y4,xyz65:p4},toMode:{rgb:g4,xyz65:m4},ranges:{j:[0,.222],a:[-.109,.129],b:[-.185,.134]},interpolate:{j:yt,a:yt,b:yt,alpha:{use:yt,fixup:ii}}},mS=jne,$ne=({j:e,a:r,b:t,alpha:a})=>{r===void 0&&(r=0),t===void 0&&(t=0);let n=Math.sqrt(r*r+t*t),i={mode:"jch",j:e,c:n};return n&&(i.h=Ri(Math.atan2(t,r)*180/Math.PI)),a!==void 0&&(i.alpha=a),i},V_=$ne,Kne=({j:e,c:r,h:t,alpha:a})=>{t===void 0&&(t=0);let n={mode:"jab",j:e,a:r?r*Math.cos(t/180*Math.PI):0,b:r?r*Math.sin(t/180*Math.PI):0};return a!==void 0&&(n.alpha=a),n},X_=Kne,Qne={mode:"jch",parse:["--jzczhz"],serialize:"--jzczhz",toMode:{jab:X_,rgb:e=>g4(X_(e))},fromMode:{rgb:e=>V_(y4(e)),jab:V_},channels:["j","c","h","alpha"],ranges:{j:[0,.221],c:[0,.19],h:[0,360]},interpolate:{h:{use:yt,fixup:fs},c:yt,j:yt,alpha:{use:yt,fixup:ii}},difference:{h:D2},average:{h:cs}},yS=Qne,Fy=Math.pow(29,3)/Math.pow(3,3),b4=Math.pow(6,3)/Math.pow(29,3),L_=e=>Math.pow(e,3)>b4?Math.pow(e,3):(116*e-16)/Fy,eie=({l:e,a:r,b:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=(e+16)/116,i=r/500+n,o=n-t/200,l={mode:"xyz50",x:L_(i)*ni.X,y:L_(n)*ni.Y,z:L_(o)*ni.Z};return a!==void 0&&(l.alpha=a),l},Ry=eie,rie=({x:e,y:r,z:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=z0({r:e*3.1341359569958707-r*1.6173863321612538-.4906619460083532*t,g:e*-.978795502912089+r*1.916254567259524+.03344273116131949*t,b:e*.07195537988411677-r*.2289768264158322+1.405386058324125*t});return a!==void 0&&(n.alpha=a),n},Lv=rie,tie=e=>Lv(Ry(e)),x4=tie,aie=e=>{let{r,g:t,b:a,alpha:n}=N0(e),i={mode:"xyz50",x:.436065742824811*r+.3851514688337912*t+.14307845442264197*a,y:.22249319175623702*r+.7168870538238823*t+.06061979053616537*a,z:.013923904500943465*r+.09708128566574634*t+.7140993584005155*a};return n!==void 0&&(i.alpha=n),i},Ev=aie,E_=e=>e>b4?Math.cbrt(e):(Fy*e+16)/116,nie=({x:e,y:r,z:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=E_(e/ni.X),i=E_(r/ni.Y),o=E_(t/ni.Z),l={mode:"lab",l:116*i-16,a:500*(n-i),b:200*(i-o)};return a!==void 0&&(l.alpha=a),l},Py=nie,iie=e=>{let r=Py(Ev(e));return e.r===e.b&&e.b===e.g&&(r.a=r.b=0),r},_4=iie;function oie(e,r){if(!r||r[0]!=="lab")return;let t={mode:"lab"},[,a,n,i,o]=r;if(!(a.type===et.Hue||n.type===et.Hue||i.type===et.Hue))return a.type!==et.None&&(t.l=Math.min(Math.max(0,a.value),100)),n.type!==et.None&&(t.a=n.type===et.Number?n.value:n.value*125/100),i.type!==et.None&&(t.b=i.type===et.Number?i.value:i.value*125/100),o.type!==et.None&&(t.alpha=Math.min(1,Math.max(0,o.type===et.Number?o.value:o.value/100))),t}var gS=oie,lie={mode:"lab",toMode:{xyz50:Ry,rgb:x4},fromMode:{xyz50:Py,rgb:_4},channels:["l","a","b","alpha"],ranges:{l:[0,100],a:[-125,125],b:[-125,125]},parse:[gS],serialize:e=>`lab(${e.l!==void 0?e.l:"none"} ${e.a!==void 0?e.a:"none"} ${e.b!==void 0?e.b:"none"}${e.alpha<1?` / ${e.alpha}`:""})`,interpolate:{l:yt,a:yt,b:yt,alpha:{use:yt,fixup:ii}}},Ny=lie,sie=an(La({},Ny),{mode:"lab65",parse:["--lab-d65"],serialize:"--lab-d65",toMode:{xyz65:u4,rgb:L2},fromMode:{xyz65:f4,rgb:E2},ranges:{l:[0,100],a:[-125,125],b:[-125,125]}}),bS=sie;function uie(e,r){if(!r||r[0]!=="lch")return;let t={mode:"lch"},[,a,n,i,o]=r;if(a.type!==et.None){if(a.type===et.Hue)return;t.l=Math.min(Math.max(0,a.value),100)}if(n.type!==et.None&&(t.c=Math.max(0,n.type===et.Number?n.value:n.value*150/100)),i.type!==et.None){if(i.type===et.Percentage)return;t.h=i.value}return o.type!==et.None&&(t.alpha=Math.min(1,Math.max(0,o.type===et.Number?o.value:o.value/100))),t}var xS=uie,fie={mode:"lch",toMode:{lab:au,rgb:e=>x4(au(e))},fromMode:{rgb:e=>tu(_4(e)),lab:tu},channels:["l","c","h","alpha"],ranges:{l:[0,100],c:[0,150],h:[0,360]},parse:[xS],serialize:e=>`lch(${e.l!==void 0?e.l:"none"} ${e.c!==void 0?e.c:"none"} ${e.h!==void 0?e.h:"none"}${e.alpha<1?` / ${e.alpha}`:""})`,interpolate:{h:{use:yt,fixup:fs},c:yt,l:yt,alpha:{use:yt,fixup:ii}},difference:{h:D2},average:{h:cs}},zy=fie,cie=an(La({},zy),{mode:"lch65",parse:["--lch-d65"],serialize:"--lch-d65",toMode:{lab65:e=>au(e,"lab65"),rgb:e=>L2(au(e,"lab65"))},fromMode:{rgb:e=>tu(E2(e),"lch65"),lab65:e=>tu(e,"lch65")},ranges:{l:[0,100],c:[0,150],h:[0,360]}}),_S=cie,vie=({l:e,u:r,v:t,alpha:a})=>{r===void 0&&(r=0),t===void 0&&(t=0);let n=Math.sqrt(r*r+t*t),i={mode:"lchuv",l:e,c:n};return n&&(i.h=Ri(Math.atan2(t,r)*180/Math.PI)),a!==void 0&&(i.alpha=a),i},w4=vie,hie=({l:e,c:r,h:t,alpha:a})=>{t===void 0&&(t=0);let n={mode:"luv",l:e,u:r?r*Math.cos(t/180*Math.PI):0,v:r?r*Math.sin(t/180*Math.PI):0};return a!==void 0&&(n.alpha=a),n},A4=hie,wS=(e,r,t)=>4*e/(e+15*r+3*t),AS=(e,r,t)=>9*r/(e+15*r+3*t),die=wS(ni.X,ni.Y,ni.Z),pie=AS(ni.X,ni.Y,ni.Z),mie=e=>e<=b4?Fy*e:116*Math.cbrt(e)-16,yie=({x:e,y:r,z:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=mie(r/ni.Y),i=wS(e,r,t),o=AS(e,r,t);!isFinite(i)||!isFinite(o)?n=i=o=0:(i=13*n*(i-die),o=13*n*(o-pie));let l={mode:"luv",l:n,u:i,v:o};return a!==void 0&&(l.alpha=a),l},My=yie,gie=(e,r,t)=>4*e/(e+15*r+3*t),bie=(e,r,t)=>9*r/(e+15*r+3*t),xie=gie(ni.X,ni.Y,ni.Z),_ie=bie(ni.X,ni.Y,ni.Z),wie=({l:e,u:r,v:t,alpha:a})=>{if(e===void 0&&(e=0),e===0)return{mode:"xyz50",x:0,y:0,z:0};r===void 0&&(r=0),t===void 0&&(t=0);let n=r/(13*e)+xie,i=t/(13*e)+_ie,o=ni.Y*(e<=8?e/Fy:Math.pow((e+16)/116,3)),l=o*(9*n)/(4*i),s=o*(12-3*n-20*i)/(4*i),u={mode:"xyz50",x:l,y:o,z:s};return a!==void 0&&(u.alpha=a),u},ky=wie,Aie=e=>w4(My(Ev(e))),Tie=e=>Lv(ky(A4(e))),Mie={mode:"lchuv",toMode:{luv:A4,rgb:Tie},fromMode:{rgb:Aie,luv:w4},channels:["l","c","h","alpha"],parse:["--lchuv"],serialize:"--lchuv",ranges:{l:[0,100],c:[0,176.956],h:[0,360]},interpolate:{h:{use:yt,fixup:fs},c:yt,l:yt,alpha:{use:yt,fixup:ii}},difference:{h:D2},average:{h:cs}},TS=Mie,kie=an(La({},P0),{mode:"lrgb",toMode:{rgb:z0},fromMode:{rgb:N0},parse:["srgb-linear"],serialize:"srgb-linear"}),MS=kie,Sie={mode:"luv",toMode:{xyz50:ky,rgb:e=>Lv(ky(e))},fromMode:{xyz50:My,rgb:e=>My(Ev(e))},channels:["l","u","v","alpha"],parse:["--luv"],serialize:"--luv",ranges:{l:[0,100],u:[-84.936,175.042],v:[-125.882,87.243]},interpolate:{l:yt,u:yt,v:yt,alpha:{use:yt,fixup:ii}}},kS=Sie,Cie=({r:e,g:r,b:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=Math.cbrt(.412221469470763*e+.5363325372617348*r+.0514459932675022*t),i=Math.cbrt(.2119034958178252*e+.6806995506452344*r+.1073969535369406*t),o=Math.cbrt(.0883024591900564*e+.2817188391361215*r+.6299787016738222*t),l={mode:"oklab",l:.210454268309314*n+.7936177747023054*i-.0040720430116193*o,a:1.9779985324311684*n-2.42859224204858*i+.450593709617411*o,b:.0259040424655478*n+.7827717124575296*i-.8086757549230774*o};return a!==void 0&&(l.alpha=a),l},T4=Cie,Die=e=>{let r=T4(N0(e));return e.r===e.b&&e.b===e.g&&(r.a=r.b=0),r},q2=Die,Lie=({l:e,a:r,b:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=Math.pow(e+.3963377773761749*r+.2158037573099136*t,3),i=Math.pow(e-.1055613458156586*r-.0638541728258133*t,3),o=Math.pow(e-.0894841775298119*r-1.2914855480194092*t,3),l={mode:"lrgb",r:4.076741636075957*n-3.3077115392580616*i+.2309699031821044*o,g:-1.2684379732850317*n+2.6097573492876887*i-.3413193760026573*o,b:-.0041960761386756*n-.7034186179359362*i+1.7076146940746117*o};return a!==void 0&&(l.alpha=a),l},qv=Lie,Eie=e=>z0(qv(e)),F2=Eie;function W_(e){let a=1.170873786407767;return .5*(a*e-.206+Math.sqrt((a*e-.206)*(a*e-.206)+4*.03*a*e))}function Sy(e){return(e*e+.206*e)/(1.170873786407767*(e+.03))}function qie(e,r){let t,a,n,i,o,l,s,u;-1.88170328*e-.80936493*r>1?(t=1.19086277,a=1.76576728,n=.59662641,i=.75515197,o=.56771245,l=4.0767416621,s=-3.3077115913,u=.2309699292):1.81444104*e-1.19445276*r>1?(t=.73956515,a=-.45954404,n=.08285427,i=.1254107,o=.14503204,l=-1.2684380046,s=2.6097574011,u=-.3413193965):(t=1.35733652,a=-.00915799,n=-1.1513021,i=-.50559606,o=.00692167,l=-.0041960863,s=-.7034186147,u=1.707614701);let f=t+a*e+n*r+i*e*e+o*e*r,c=.3963377774*e+.2158037573*r,v=-.1055613458*e-.0638541728*r,d=-.0894841775*e-1.291485548*r;{let p=1+f*c,y=1+f*v,m=1+f*d,b=p*p*p,T=y*y*y,_=m*m*m,x=3*c*p*p,w=3*v*y*y,k=3*d*m*m,M=6*c*c*p,C=6*v*v*y,E=6*d*d*m,F=l*b+s*T+u*_,P=l*x+s*w+u*k,q=l*M+s*C+u*E;f=f-F*P/(P*P-.5*F*q)}return f}function M4(e,r){let t=qie(e,r),a=qv({l:1,a:t*e,b:t*r}),n=Math.cbrt(1/Math.max(a.r,a.g,a.b)),i=n*t;return[n,i]}function Fie(e,r,t,a,n,i=null){i||(i=M4(e,r));let o;if((t-n)*i[1]-(i[0]-n)*a<=0)o=i[1]*n/(a*i[0]+i[1]*(n-t));else{o=i[1]*(n-1)/(a*(i[0]-1)+i[1]*(n-t));{let l=t-n,s=a,u=.3963377774*e+.2158037573*r,f=-.1055613458*e-.0638541728*r,c=-.0894841775*e-1.291485548*r,v=l+s*u,d=l+s*f,p=l+s*c;{let y=n*(1-o)+o*t,m=o*a,b=y+m*u,T=y+m*f,_=y+m*c,x=b*b*b,w=T*T*T,k=_*_*_,M=3*v*b*b,C=3*d*T*T,E=3*p*_*_,F=6*v*v*b,P=6*d*d*T,q=6*p*p*_,z=4.0767416621*x-3.3077115913*w+.2309699292*k-1,I=4.0767416621*M-3.3077115913*C+.2309699292*E,Y=4.0767416621*F-3.3077115913*P+.2309699292*q,V=I/(I*I-.5*z*Y),J=-z*V,U=-1.2684380046*x+2.6097574011*w-.3413193965*k-1,G=-1.2684380046*M+2.6097574011*C-.3413193965*E,W=-1.2684380046*F+2.6097574011*P-.3413193965*q,j=G/(G*G-.5*U*W),ae=-U*j,pe=-.0041960863*x-.7034186147*w+1.707614701*k-1,se=-.0041960863*M-.7034186147*C+1.707614701*E,we=-.0041960863*F-.7034186147*P+1.707614701*q,te=se/(se*se-.5*pe*we),Ee=-pe*te;J=V>=0?J:1e6,ae=j>=0?ae:1e6,Ee=te>=0?Ee:1e6,o+=Math.min(J,Math.min(ae,Ee))}}}return o}function k4(e,r,t=null){t||(t=M4(e,r));let a=t[0],n=t[1];return[n/a,n/(1-a)]}function SS(e,r,t){let a=M4(r,t),n=Fie(r,t,e,1,e,a),i=k4(r,t,a),o=.11516993+1/(7.4477897+4.1590124*t+r*(-2.19557347+1.75198401*t+r*(-2.13704948-10.02301043*t+r*(-4.24894561+5.38770819*t+4.69891013*r)))),l=.11239642+1/(1.6132032-.68124379*t+r*(.40370612+.90148123*t+r*(-.27087943+.6122399*t+r*(.00299215-.45399568*t-.14661872*r)))),s=n/Math.min(e*i[0],(1-e)*i[1]),u=e*o,f=(1-e)*l,c=.9*s*Math.sqrt(Math.sqrt(1/(1/(u*u*u*u)+1/(f*f*f*f))));return u=e*.4,f=(1-e)*.8,[Math.sqrt(1/(1/(u*u)+1/(f*f))),c,n]}function Z_(e){let r=e.l!==void 0?e.l:0,t=e.a!==void 0?e.a:0,a=e.b!==void 0?e.b:0,n={mode:"okhsl",l:W_(r)};e.alpha!==void 0&&(n.alpha=e.alpha);let i=Math.sqrt(t*t+a*a);if(!i)return n.s=0,n;let[o,l,s]=SS(r,t/i,a/i),u;if(iZ_(q2(e))},toMode:{oklab:J_,rgb:e=>F2(J_(e))}}),CS=Rie;function j_(e){let r=e.l!==void 0?e.l:0,t=e.a!==void 0?e.a:0,a=e.b!==void 0?e.b:0,n=Math.sqrt(t*t+a*a),i=n?t/n:1,o=n?a/n:1,[l,s]=k4(i,o),u=.5,f=1-u/l,c=s/(n+r*s),v=c*r,d=c*n,p=Sy(v),y=d*p/v,m=qv({l:p,a:i*y,b:o*y}),b=Math.cbrt(1/Math.max(m.r,m.g,m.b,0));r=r/b,n=n/b*W_(r)/r,r=W_(r);let T={mode:"okhsv",s:n?(u+s)*d/(s*u+s*f*d):0,v:r?r/v:0};return T.s&&(T.h=Ri(Math.atan2(a,t)*180/Math.PI)),e.alpha!==void 0&&(T.alpha=e.alpha),T}function $_(e){let r={mode:"oklab"};e.alpha!==void 0&&(r.alpha=e.alpha);let t=e.h!==void 0?e.h:0,a=e.s!==void 0?e.s:0,n=e.v!==void 0?e.v:0,i=Math.cos(t/180*Math.PI),o=Math.sin(t/180*Math.PI),[l,s]=k4(i,o),u=.5,f=1-u/l,c=1-a*u/(u+s-s*f*a),v=a*s*u/(u+s-s*f*a),d=Sy(c),p=v*d/c,y=qv({l:d,a:i*p,b:o*p}),m=Math.cbrt(1/Math.max(y.r,y.g,y.b,0)),b=Sy(n*c),T=v*b/c;return r.l=b*m,r.a=T*i*m,r.b=T*o*m,r}var Pie=an(La({},d4),{mode:"okhsv",channels:["h","s","v","alpha"],parse:["--okhsv"],serialize:"--okhsv",fromMode:{oklab:j_,rgb:e=>j_(q2(e))},toMode:{oklab:$_,rgb:e=>F2($_(e))}}),DS=Pie;function Nie(e,r){if(!r||r[0]!=="oklab")return;let t={mode:"oklab"},[,a,n,i,o]=r;if(!(a.type===et.Hue||n.type===et.Hue||i.type===et.Hue))return a.type!==et.None&&(t.l=Math.min(Math.max(0,a.type===et.Number?a.value:a.value/100),1)),n.type!==et.None&&(t.a=n.type===et.Number?n.value:n.value*.4/100),i.type!==et.None&&(t.b=i.type===et.Number?i.value:i.value*.4/100),o.type!==et.None&&(t.alpha=Math.min(1,Math.max(0,o.type===et.Number?o.value:o.value/100))),t}var LS=Nie,zie=an(La({},Ny),{mode:"oklab",toMode:{lrgb:qv,rgb:F2},fromMode:{lrgb:T4,rgb:q2},ranges:{l:[0,1],a:[-.4,.4],b:[-.4,.4]},parse:[LS],serialize:e=>`oklab(${e.l!==void 0?e.l:"none"} ${e.a!==void 0?e.a:"none"} ${e.b!==void 0?e.b:"none"}${e.alpha<1?` / ${e.alpha}`:""})`}),ES=zie;function Bie(e,r){if(!r||r[0]!=="oklch")return;let t={mode:"oklch"},[,a,n,i,o]=r;if(a.type!==et.None){if(a.type===et.Hue)return;t.l=Math.min(Math.max(0,a.type===et.Number?a.value:a.value/100),1)}if(n.type!==et.None&&(t.c=Math.max(0,n.type===et.Number?n.value:n.value*.4/100)),i.type!==et.None){if(i.type===et.Percentage)return;t.h=i.value}return o.type!==et.None&&(t.alpha=Math.min(1,Math.max(0,o.type===et.Number?o.value:o.value/100))),t}var qS=Bie,Iie=an(La({},zy),{mode:"oklch",toMode:{oklab:e=>au(e,"oklab"),rgb:e=>F2(au(e,"oklab"))},fromMode:{rgb:e=>tu(q2(e),"oklch"),oklab:e=>tu(e,"oklch")},parse:[qS],serialize:e=>`oklch(${e.l!==void 0?e.l:"none"} ${e.c!==void 0?e.c:"none"} ${e.h!==void 0?e.h:"none"}${e.alpha<1?` / ${e.alpha}`:""})`,ranges:{l:[0,1],c:[0,.4],h:[0,360]}}),FS=Iie,Oie=e=>{let{r,g:t,b:a,alpha:n}=N0(e),i={mode:"xyz65",x:.486570948648216*r+.265667693169093*t+.1982172852343625*a,y:.2289745640697487*r+.6917385218365062*t+.079286914093745*a,z:0*r+.0451133818589026*t+1.043944368900976*a};return n!==void 0&&(i.alpha=n),i},K_=Oie,Hie=({x:e,y:r,z:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=z0({r:e*2.4934969119414263-r*.9313836179191242-.402710784450717*t,g:e*-.8294889695615749+r*1.7626640603183465+.0236246858419436*t,b:e*.0358458302437845-r*.0761723892680418+.9568845240076871*t},"p3");return a!==void 0&&(n.alpha=a),n},Q_=Hie,Uie=an(La({},P0),{mode:"p3",parse:["display-p3"],serialize:"display-p3",fromMode:{rgb:e=>Q_($u(e)),xyz65:Q_},toMode:{rgb:e=>Ku(K_(e)),xyz65:K_}}),RS=Uie,q_=e=>{let r=Math.abs(e);return r>=1/512?Math.sign(e)*Math.pow(r,1/1.8):16*e},Gie=({x:e,y:r,z:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n={mode:"prophoto",r:q_(e*1.3457868816471585-r*.2555720873797946-.0511018649755453*t),g:q_(e*-.5446307051249019+r*1.5082477428451466+.0205274474364214*t),b:q_(e*0+r*0+1.2119675456389452*t)};return a!==void 0&&(n.alpha=a),n},e4=Gie,F_=(e=0)=>{let r=Math.abs(e);return r>=16/512?Math.sign(e)*Math.pow(r,1.8):e/16},Yie=e=>{let r=F_(e.r),t=F_(e.g),a=F_(e.b),n={mode:"xyz50",x:.7977666449006423*r+.1351812974005331*t+.0313477341283922*a,y:.2880748288194013*r+.7118352342418731*t+899369387256e-16*a,z:0*r+0*t+.8251046025104602*a};return e.alpha!==void 0&&(n.alpha=e.alpha),n},r4=Yie,Vie=an(La({},P0),{mode:"prophoto",parse:["prophoto-rgb"],serialize:"prophoto-rgb",fromMode:{xyz50:e4,rgb:e=>e4(Ev(e))},toMode:{xyz50:r4,rgb:e=>Lv(r4(e))}}),PS=Vie,Ck=1.09929682680944,Xie=.018053968510807,R_=e=>{let r=Math.abs(e);return r>Xie?(Math.sign(e)||1)*(Ck*Math.pow(r,.45)-(Ck-1)):4.5*e},Wie=({x:e,y:r,z:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n={mode:"rec2020",r:R_(e*1.7166511879712683-r*.3556707837763925-.2533662813736599*t),g:R_(e*-.6666843518324893+r*1.6164812366349395+.0157685458139111*t),b:R_(e*.0176398574453108-r*.0427706132578085+.9421031212354739*t)};return a!==void 0&&(n.alpha=a),n},t4=Wie,Dk=1.09929682680944,Zie=.018053968510807,P_=(e=0)=>{let r=Math.abs(e);return r{let r=P_(e.r),t=P_(e.g),a=P_(e.b),n={mode:"xyz65",x:.6369580483012911*r+.1446169035862083*t+.1688809751641721*a,y:.262700212011267*r+.6779980715188708*t+.059301716469862*a,z:0*r+.0280726930490874*t+1.0609850577107909*a};return e.alpha!==void 0&&(n.alpha=e.alpha),n},a4=Jie,jie=an(La({},P0),{mode:"rec2020",fromMode:{xyz65:t4,rgb:e=>t4($u(e))},toMode:{xyz65:a4,rgb:e=>Ku(a4(e))},parse:["rec2020"],serialize:"rec2020"}),NS=jie,F0=.0037930732552754493,zS=Math.cbrt(F0),N_=e=>Math.cbrt(e)-zS,$ie=e=>{let{r,g:t,b:a,alpha:n}=N0(e),i=N_(.3*r+.622*t+.078*a+F0),o=N_(.23*r+.692*t+.078*a+F0),l=N_(.2434226892454782*r+.2047674442449682*t+.5518098665095535*a+F0),s={mode:"xyb",x:(i-o)/2,y:(i+o)/2,b:l-(i+o)/2};return n!==void 0&&(s.alpha=n),s},BS=$ie,z_=e=>Math.pow(e+zS,3),Kie=({x:e,y:r,b:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=z_(e+r)-F0,i=z_(r-e)-F0,o=z_(t+r)-F0,l=z0({r:11.031566904639861*n-9.866943908131562*i-.16462299650829934*o,g:-3.2541473810744237*n+4.418770377582723*i-.16462299650829934*o,b:-3.6588512867136815*n+2.7129230459360922*i+1.9459282407775895*o});return a!==void 0&&(l.alpha=a),l},IS=Kie,Qie={mode:"xyb",channels:["x","y","b","alpha"],parse:["--xyb"],serialize:"--xyb",toMode:{rgb:IS},fromMode:{rgb:BS},ranges:{x:[-.0154,.0281],y:[0,.8453],b:[-.2778,.388]},interpolate:{x:yt,y:yt,b:yt,alpha:{use:yt,fixup:ii}}},OS=Qie,eoe={mode:"xyz50",parse:["xyz-d50"],serialize:"xyz-d50",toMode:{rgb:Lv,lab:Py},fromMode:{rgb:Ev,lab:Ry},channels:["x","y","z","alpha"],ranges:{x:[0,.964],y:[0,.999],z:[0,.825]},interpolate:{x:yt,y:yt,z:yt,alpha:{use:yt,fixup:ii}}},HS=eoe,roe=e=>{let{x:r,y:t,z:a,alpha:n}=e;r===void 0&&(r=0),t===void 0&&(t=0),a===void 0&&(a=0);let i={mode:"xyz50",x:1.0479298208405488*r+.0229467933410191*t-.0501922295431356*a,y:.0296278156881593*r+.990434484573249*t-.0170738250293851*a,z:-.0092430581525912*r+.0150551448965779*t+.7518742899580008*a};return n!==void 0&&(i.alpha=n),i},US=roe,toe=e=>{let{x:r,y:t,z:a,alpha:n}=e;r===void 0&&(r=0),t===void 0&&(t=0),a===void 0&&(a=0);let i={mode:"xyz65",x:.9554734527042182*r-.0230985368742614*t+.0632593086610217*a,y:-.0283697069632081*r+1.0099954580058226*t+.021041398966943*a,z:.0123140016883199*r-.0205076964334779*t+1.3303659366080753*a};return n!==void 0&&(i.alpha=n),i},GS=toe,aoe={mode:"xyz65",toMode:{rgb:Ku,xyz50:US},fromMode:{rgb:$u,xyz50:GS},ranges:{x:[0,.95],y:[0,1],z:[0,1.088]},channels:["x","y","z","alpha"],parse:["xyz","xyz-d65"],serialize:"xyz-d65",interpolate:{x:yt,y:yt,z:yt,alpha:{use:yt,fixup:ii}}},YS=aoe,noe=({r:e,g:r,b:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n={mode:"yiq",y:.29889531*e+.58662247*r+.11448223*t,i:.59597799*e-.2741761*r-.32180189*t,q:.21147017*e-.52261711*r+.31114694*t};return a!==void 0&&(n.alpha=a),n},VS=noe,ioe=({y:e,i:r,q:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n={mode:"rgb",r:e+.95608445*r+.6208885*t,g:e-.27137664*r-.6486059*t,b:e-1.10561724*r+1.70250126*t};return a!==void 0&&(n.alpha=a),n},XS=ioe,ooe={mode:"yiq",toMode:{rgb:XS},fromMode:{rgb:VS},channels:["y","i","q","alpha"],parse:["--yiq"],serialize:"--yiq",ranges:{i:[-.595,.595],q:[-.522,.522]},interpolate:{y:yt,i:yt,q:yt,alpha:{use:yt,fixup:ii}}},WS=ooe,loe=(e,r)=>Math.round(e*(r=Math.pow(10,r)))/r,soe=(e=4)=>r=>typeof r=="number"?loe(r,e):r,ZS=soe,T2=ZS(2),k2=e=>Math.max(0,Math.min(1,e||0)),R0=e=>Math.round(k2(e)*255),S4=ja("rgb"),uoe=ja("hsl"),C4=e=>{if(e===void 0)return;let r=R0(e.r),t=R0(e.g),a=R0(e.b);return"#"+(1<<24|r<<16|t<<8|a).toString(16).slice(1)},JS=e=>{if(e===void 0)return;let r=R0(e.alpha!==void 0?e.alpha:1);return C4(e)+(256|r).toString(16).slice(1)},jS=e=>{if(e===void 0)return;let r=R0(e.r),t=R0(e.g),a=R0(e.b);return e.alpha===void 0||e.alpha===1?`rgb(${r}, ${t}, ${a})`:`rgba(${r}, ${t}, ${a}, ${T2(k2(e.alpha))})`},$S=e=>{if(e===void 0)return;let r=T2(e.h||0),t=T2(k2(e.s)*100)+"%",a=T2(k2(e.l)*100)+"%";return e.alpha===void 0||e.alpha===1?`hsl(${r}, ${t}, ${a})`:`hsla(${r}, ${t}, ${a}, ${T2(k2(e.alpha))})`},foe=e=>{let r=Ll(e);if(!r)return;let t=Yi(r.mode);if(!t.serialize||typeof t.serialize=="string"){let a=`color(${t.serialize||`--${r.mode}`} `;return t.channels.forEach((n,i)=>{n!=="alpha"&&(a+=(i?" ":"")+(r[n]!==void 0?r[n]:"none"))}),r.alpha!==void 0&&r.alpha<1&&(a+=` / ${r.alpha}`),a+")"}if(typeof t.serialize=="function")return t.serialize(r)},coe=e=>C4(S4(e)),voe=e=>JS(S4(e)),hoe=e=>jS(S4(e)),doe=e=>$S(uoe(e)),poe={normal:(e,r)=>r,multiply:(e,r)=>e*r,screen:(e,r)=>e+r-e*r,"hard-light":(e,r)=>r<.5?e*2*r:2*r*(1-e)-1,overlay:(e,r)=>e<.5?r*2*e:2*e*(1-r)-1,darken:(e,r)=>Math.min(e,r),lighten:(e,r)=>Math.max(e,r),"color-dodge":(e,r)=>e===0?0:r===1?1:Math.min(1,e/(1-r)),"color-burn":(e,r)=>e===1?1:r===0?0:1-Math.min(1,(1-e)/r),"soft-light":(e,r)=>r<.5?e-(1-2*r)*e*(1-e):e+(2*r-1)*((e<.25?((16*e-12)*e+4)*e:Math.sqrt(e))-e),difference:(e,r)=>Math.abs(e-r),exclusion:(e,r)=>e+r-2*e*r},moe=(e,r="normal",t="rgb")=>{let a=typeof r=="function"?r:poe[r],n=ja(t),i=Yi(t).channels;return e.map(l=>{let s=n(l);return s.alpha===void 0&&(s.alpha=1),s}).reduce((l,s)=>{if(l===void 0)return s;let u=s.alpha+l.alpha*(1-s.alpha);return i.reduce((f,c)=>(c!=="alpha"&&(u===0?f[c]=0:(f[c]=s.alpha*(1-l.alpha)*s[c]+s.alpha*l.alpha*a(l[c],s[c])+(1-s.alpha)*l.alpha*l[c],f[c]=Math.max(0,Math.min(1,f[c]/u)))),f),{mode:t,alpha:u})})},yoe=moe,goe=([e,r])=>e+Math.random()*(r-e),boe=e=>Object.keys(e).reduce((r,t)=>{let a=e[t];return r[t]=Array.isArray(a)?a:[a,a],r},{}),xoe=(e="rgb",r={})=>{let t=Yi(e),a=boe(r);return t.channels.reduce((n,i)=>((a.alpha||i!=="alpha")&&(n[i]=goe(a[i]||t.ranges[i])),n),{mode:e})},_oe=xoe,R2=(e,r="rgb",t=!1)=>{let a=r?Yi(r).channels:null,n=r?ja(r):Ll;return i=>{let o=n(i);if(!o)return;let l=(a||Yi(o.mode).channels).reduce((u,f)=>{let c=e(o[f],f,o,r);return c!==void 0&&!isNaN(c)&&(u[f]=c),u},{mode:o.mode});if(!t)return l;let s=Ll(i);return s&&s.mode!==l.mode?ja(s.mode)(l):l}},KS=(e,r,t)=>r!=="alpha"?(e||0)*(t.alpha!==void 0?t.alpha:1):e,QS=(e,r,t)=>r!=="alpha"&&t.alpha!==0?(e||0)/(t.alpha!==void 0?t.alpha:1):e,D4=(e=1,r=0)=>(t,a)=>a!=="alpha"?t*e+r:t,woe=(e=1,r=1,t=0)=>(a,n)=>n!=="alpha"?e*Math.pow(a,r)+t:a,Aoe=e=>{e[0]===void 0&&(e[0]=0),e[e.length-1]===void 0&&(e[e.length-1]=1);let r=1,t,a,n,i;for(;rr=>e<=0?1:e>=1?0:Math.pow(r,Math.log(.5)/Math.log(e)),eC=Moe,yy=e=>typeof e=="function",E0=e=>e&&typeof e=="object",Lk=e=>typeof e=="number",rC=(e,r="rgb",t,a)=>{let n=Yi(r),i=ja(r),o=[],l=[],s={};e.forEach(v=>{Array.isArray(v)?(o.push(i(v[0])),l.push(v[1])):Lk(v)||yy(v)?s[l.length]=v:(o.push(i(v)),l.push(void 0))}),Toe(l);let u=n.channels.reduce((v,d)=>{let p;return E0(t)&&E0(t[d])&&t[d].fixup?p=t[d].fixup:E0(n.interpolate[d])&&n.interpolate[d].fixup?p=n.interpolate[d].fixup:p=y=>y,v[d]=p(o.map(y=>y[d])),v},{});if(a){let v=o.map((d,p)=>n.channels.reduce((y,m)=>(y[m]=u[m][p],y),{mode:r}));u=n.channels.reduce((d,p)=>(d[p]=v.map(y=>{let m=a(y[p],p,y,r);return isNaN(m)?void 0:m}),d),{})}let f=n.channels.reduce((v,d)=>{let p;return yy(t)?p=t:E0(t)&&yy(t[d])?p=t[d]:E0(t)&&E0(t[d])&&t[d].use?p=t[d].use:yy(n.interpolate[d])?p=n.interpolate[d]:E0(n.interpolate[d])&&(p=n.interpolate[d].use),v[d]=p(u[d]),v},{}),c=o.length-1;return v=>{if(v=Math.min(Math.max(0,v),1),v<=l[0])return o[0];if(v>l[c])return o[c];let d=0;for(;l[d]{let w=f[x](T);return w!==void 0&&(_[x]=w),_},{mode:r})}},koe=(e,r="rgb",t)=>rC(e,r,t),tC=(e,r)=>(t,a="rgb",n)=>{let i=r?R2(r,a):void 0,o=rC(t,a,n,e);return i?l=>i(o(l)):o},Soe=tC(KS,QS),gy=(e,r)=>(e+r)%r,aC=(e,r,t,a,n)=>{let i=n*n,o=i*n;return((1-3*n+3*i-o)*e+(4-6*i+3*o)*r+(1+3*n+3*i-3*o)*t+o*a)/6},nC=e=>r=>{let t=e.length-1,a=r>=1?t-1:Math.max(0,Math.floor(r*t));return aC(a>0?e[a-1]:2*e[a]-e[a+1],e[a],e[a+1],ar=>{let t=e.length-1,a=Math.floor(r*t);return aC(e[gy(a-1,e.length)],e[gy(a,e.length)],e[gy(a+1,e.length)],e[gy(a+2,e.length)],(r-a/t)*t)},oC=e=>{let r,t=e.length-1,a=new Array(t),n=new Array(t),i=new Array(t);for(a[1]=1/4,n[1]=(6*e[1]-e[0])/4,r=2;r0&&(i[t-1]=n[t-1]),r=t-2;r>0;--r)i[r]=n[r]-a[r]*i[r+1];return i},Coe=e=>nC(oC(e)),Doe=e=>iC(oC(e)),Mv=Math.sign,n4=Math.min,Eo=Math.abs,L4=e=>{let r=e.length-1,t=[],a=[],n=[];for(let i=0;i0?.5*(e[i+1]-e[i-1])*r:void 0),n.push(i>0?(Mv(t[i-1])+Mv(t[i]))*n4(Eo(t[i-1]),Eo(t[i]),.5*Eo(a[i])):void 0);return[t,a,n]},E4=(e,r,t)=>{let a=e.length-1,n=a*a;return i=>{let o;i>=1?o=a-1:o=Math.max(0,Math.floor(i*a));let l=i-o/a,s=l*l,u=s*l;return(r[o]+r[o+1]-2*t[o])*n*u+(3*t[o]-2*r[o]-r[o+1])*a*s+r[o]*l+e[o]}},Loe=e=>{if(e.length<3)return yt(e);let r=e.length-1,[t,,a]=L4(e);return a[0]=t[0],a[r]=t[r-1],E4(e,a,t)},Eoe=e=>{if(e.length<3)return yt(e);let r=e.length-1,[t,a,n]=L4(e);return a[0]=(e[1]*2-e[0]*1.5-e[2]*.5)*r,a[r]=(e[r]*1.5-e[r-1]*2+e[r-2]*.5)*r,n[0]=a[0]*t[0]<=0?0:Eo(a[0])>2*Eo(t[0])?2*t[0]:a[0],n[r]=a[r]*t[r-1]<=0?0:Eo(a[r])>2*Eo(t[r-1])?2*t[r-1]:a[r],E4(e,n,t)},qoe=e=>{let r=e.length-1,[t,a,n]=L4(e);a[0]=.5*(e[1]-e[r])*r,a[r]=.5*(e[0]-e[r-1])*r;let i=(e[0]-e[r])*r,o=i;return n[0]=(Mv(i)+Mv(t[0]))*n4(Eo(i),Eo(t[0]),.5*Eo(a[0])),n[r]=(Mv(t[r-1])+Mv(o))*n4(Eo(t[r-1]),Eo(o),.5*Eo(a[r])),E4(e,n,t)},Foe=(e=1)=>e===1?r=>r:r=>Math.pow(r,e),lC=Foe,Roe=(e=2,r=1)=>{let t=lC(r);if(e<2)return e<1?[]:[t(.5)];let a=[];for(let n=0;n{let r={mode:e.mode,r:Math.max(0,Math.min(e.r!==void 0?e.r:0,1)),g:Math.max(0,Math.min(e.g!==void 0?e.g:0,1)),b:Math.max(0,Math.min(e.b!==void 0?e.b:0,1))};return e.alpha!==void 0&&(r.alpha=e.alpha),r},fC=e=>uC(sC(e)),cC=e=>e!==void 0&&(e.r===void 0||e.r>=0&&e.r<=1)&&(e.g===void 0||e.g>=0&&e.g<=1)&&(e.b===void 0||e.b>=0&&e.b<=1);function q4(e){return cC(sC(e))}function By(e="rgb"){let{gamut:r}=Yi(e);if(!r)return a=>!0;let t=ja(typeof r=="string"?r:e);return a=>cC(t(a))}function Noe(e){return e=Ll(e),e===void 0||q4(e)?e:ja(e.mode)(fC(e))}function F4(e="rgb"){let{gamut:r}=Yi(e);if(!r)return i=>Ll(i);let t=typeof r=="string"?r:e,a=ja(t),n=By(t);return i=>{let o=Ll(i);if(!o)return;let l=a(o);if(n(l))return o;let s=uC(l);return o.mode===s.mode?s:ja(o.mode)(s)}}function zoe(e,r="lch",t="rgb"){e=Ll(e);let a=t==="rgb"?q4:By(t),n=t==="rgb"?fC:F4(t);if(e===void 0||a(e))return e;let i=ja(e.mode);e=ja(r)(e);let o=an(La({},e),{c:0});if(!a(o))return i(n(o));let l=0,s=e.c!==void 0?e.c:0,u=Yi(r).ranges.c,f=(u[1]-u[0])/Math.pow(2,13),c=o.c;for(;s-l>f;)o.c=l+(s-l)*.5,a(o)?(c=o.c,l=o.c):s=o.c;return i(a(o)?o:an(La({},o),{c}))}function Boe(e="rgb",r="oklch",t=Dv("oklch"),a=.02){let n=ja(e),i=Yi(e);if(!i.gamut)return f=>n(f);let o=By(e),l=F4(e),s=ja(r),{ranges:u}=Yi(r);if(!u.l||!u.c)throw new Error("LCH-like space expected");return f=>{if(f=Ll(f),f===void 0)return;let c=La({},s(f));if(c.l===void 0&&(c.l=0),c.c===void 0&&(c.c=0),c.l>=u.l[1]){let m=an(La({},i.white),{mode:e});return f.alpha!==void 0&&(m.alpha=f.alpha),m}if(c.l<=u.l[0]){let m=an(La({},i.black),{mode:e});return f.alpha!==void 0&&(m.alpha=f.alpha),m}if(o(c))return n(c);let v=0,d=c.c,p=(u.c[1]-u.c[0])/4e3,y=l(c);for(;d-v>p;)c.c=(v+d)*.5,y=l(c),o(c)||t&&a>0&&t(c,y)<=a?v=c.c:d=c.c;return n(o(c)?c:y)}}var Ioe=(e,r=Dv(),t=a=>a)=>{let a=e.map((n,i)=>({color:t(n),i}));return(n,i=1,o=1/0)=>(isFinite(i)&&(i=Math.max(1,Math.min(i,a.length-1))),a.forEach(l=>{l.d=r(n,l.color)}),a.sort((l,s)=>l.d-s.d).slice(0,i).filter(l=>l.de[l.i]))},Ooe=Ioe,R4=e=>Math.max(e,0),P4=e=>Math.max(Math.min(e,1),0),Hoe=(e,r,t)=>e===void 0||r===void 0?void 0:e+t*(r-e),Uoe=e=>{let r=1-P4(e);return[.393+.607*r,.769-.769*r,.189-.189*r,0,.349-.349*r,.686+.314*r,.168-.168*r,0,.272-.272*r,.534-.534*r,.131+.869*r,0,0,0,0,1]},Goe=e=>{let r=R4(e);return[.213+.787*r,.715-.715*r,.072-.072*r,0,.213-.213*r,.715+.285*r,.072-.072*r,0,.213-.213*r,.715-.715*r,.072+.928*r,0,0,0,0,1]},Yoe=e=>{let r=1-P4(e);return[.2126+.7874*r,.7152-.7152*r,.0722-.0722*r,0,.2126-.2126*r,.7152+.2848*r,.0722-.0722*r,0,.2126-.2126*r,.7152-.7152*r,.0722+.9278*r,0,0,0,0,1]},Voe=e=>{let r=Math.PI*e/180,t=Math.cos(r),a=Math.sin(r);return[.213+t*.787-a*.213,.715-t*.715-a*.715,.072-t*.072+a*.928,0,.213-t*.213+a*.143,.715+t*.285+a*.14,.072-t*.072-a*.283,0,.213-t*.213-a*.787,.715-t*.715+a*.715,.072+t*.928+a*.072,0,0,0,0,1]},Iy=(e,r,t=!1)=>{let a=ja(r),n=Yi(r).channels;return i=>{let o=a(i);if(!o)return;let l={mode:r},s,u=n.length;for(let c=0;c{let t=R4(e);return R2(D4(t),r,!0)},Woe=(e=1,r="rgb")=>{let t=R4(e);return R2(D4(t,(1-t)/2),r,!0)},Zoe=(e=1,r="rgb")=>Iy(Uoe(e),r,!0),Joe=(e=1,r="rgb")=>Iy(Goe(e),r,!0),joe=(e=1,r="rgb")=>Iy(Yoe(e),r,!0),$oe=(e=1,r="rgb")=>{let t=P4(e);return R2((a,n)=>n==="alpha"?a:Hoe(t,1-t,a),r,!0)},Koe=(e=0,r="rgb")=>Iy(Voe(e),r,!0),Qoe=ja("rgb"),ele=[[1,0,-0,0,1,0,-0,-0,1],[.856167,.182038,-.038205,.029342,.955115,.015544,-.00288,-.001563,1.004443],[.734766,.334872,-.069637,.05184,.919198,.028963,-.004928,-.004209,1.009137],[.630323,.465641,-.095964,.069181,.890046,.040773,-.006308,-.007724,1.014032],[.539009,.579343,-.118352,.082546,.866121,.051332,-.007136,-.011959,1.019095],[.458064,.679578,-.137642,.092785,.846313,.060902,-.007494,-.016807,1.024301],[.38545,.769005,-.154455,.100526,.829802,.069673,-.007442,-.02219,1.029632],[.319627,.849633,-.169261,.106241,.815969,.07779,-.007025,-.028051,1.035076],[.259411,.923008,-.18242,.110296,.80434,.085364,-.006276,-.034346,1.040622],[.203876,.990338,-.194214,.112975,.794542,.092483,-.005222,-.041043,1.046265],[.152286,1.052583,-.204868,.114503,.786281,.099216,-.003882,-.048116,1.051998]],rle=[[1,0,-0,0,1,0,-0,-0,1],[.866435,.177704,-.044139,.049567,.939063,.01137,-.003453,.007233,.99622],[.760729,.319078,-.079807,.090568,.889315,.020117,-.006027,.013325,.992702],[.675425,.43385,-.109275,.125303,.847755,.026942,-.00795,.018572,.989378],[.605511,.52856,-.134071,.155318,.812366,.032316,-.009376,.023176,.9862],[.547494,.607765,-.155259,.181692,.781742,.036566,-.01041,.027275,.983136],[.498864,.674741,-.173604,.205199,.754872,.039929,-.011131,.030969,.980162],[.457771,.731899,-.18967,.226409,.731012,.042579,-.011595,.034333,.977261],[.422823,.781057,-.203881,.245752,.709602,.044646,-.011843,.037423,.974421],[.392952,.82361,-.216562,.263559,.69021,.046232,-.01191,.040281,.97163],[.367322,.860646,-.227968,.280085,.672501,.047413,-.01182,.04294,.968881]],tle=[[1,0,-0,0,1,0,-0,-0,1],[.92667,.092514,-.019184,.021191,.964503,.014306,.008437,.054813,.93675],[.89572,.13333,-.02905,.029997,.9454,.024603,.013027,.104707,.882266],[.905871,.127791,-.033662,.026856,.941251,.031893,.01341,.148296,.838294],[.948035,.08949,-.037526,.014364,.946792,.038844,.010853,.193991,.795156],[1.017277,.027029,-.044306,-.006113,.958479,.047634,.006379,.248708,.744913],[1.104996,-.046633,-.058363,-.032137,.971635,.060503,.001336,.317922,.680742],[1.193214,-.109812,-.083402,-.058496,.97941,.079086,-.002346,.403492,.598854],[1.257728,-.139648,-.118081,-.078003,.975409,.102594,-.003316,.501214,.502102],[1.278864,-.125333,-.153531,-.084748,.957674,.127074,-989e-6,.601151,.399838],[1.255528,-.076749,-.178779,-.078411,.930809,.147602,.004733,.691367,.3039]],N4=(e,r)=>{let t=Math.max(0,Math.min(1,r)),a=Math.round(t/.1),n=Math.round(t%.1),i=e[a];if(n>0&&aq0(i[s],o[s],n))}return o=>{let l=Ll(o);if(l===void 0)return;let{r:s,g:u,b:f}=Qoe(l),c={mode:"rgb",r:i[0]*s+i[1]*u+i[2]*f,g:i[3]*s+i[4]*u+i[5]*f,b:i[6]*s+i[7]*u+i[8]*f};return l.alpha!==void 0&&(c.alpha=l.alpha),ja(l.mode)(c)}},ale=(e=1)=>N4(ele,e),nle=(e=1)=>N4(rle,e),ile=(e=1)=>N4(tle,e),ole=e=>e*e*(3-2*e),lle=e=>.5-Math.sin(Math.asin(1-2*e)/3),sle=e=>e*e*e*(e*(e*6-15)+10),ule=sle,fle=e=>(1-Math.cos(e*Math.PI))/2,cle=fle;function i4(e){let r=ja("lrgb")(e);return .2126*r.r+.7152*r.g+.0722*r.b}function vle(e,r){let t=i4(e),a=i4(r);return(Math.max(t,a)+.05)/(Math.min(t,a)+.05)}var hle=Fa(Yk),dle=Fa(Jk),ple=Fa(eS),mle=Fa(rS),yle=Fa(nS),gle=Fa(c4),ble=Fa(d4),xle=Fa(vS),_le=Fa(pS),wle=Fa(mS),Ale=Fa(yS),Tle=Fa(Ny),Mle=Fa(bS),kle=Fa(zy),Sle=Fa(_S),Cle=Fa(TS),Dle=Fa(MS),Lle=Fa(kS),Ele=Fa(CS),qle=Fa(DS),Fle=Fa(ES),Rle=Fa(FS),Ple=Fa(RS),Nle=Fa(PS),zle=Fa(NS),Ble=Fa(P0),Ile=Fa(OS),Ole=Fa(HS),Hle=Fa(YS),Ule=Fa(WS)});var z4={};Ja(z4,{default:()=>Yle});var Gle,Yle,B4=Za(()=>{"use strict";Gle={format:{valType:"enumerated",values:["png","jpeg","webp","svg","full-json"],dflt:"png",description:"Sets the format of exported image."},width:{valType:"number",min:1,description:["Sets the exported image width.","Defaults to the value found in `layout.width`","If set to *null*, the exported image width will match the current graph width."].join(" ")},height:{valType:"number",min:1,description:["Sets the exported image height.","Defaults to the value found in `layout.height`","If set to *null*, the exported image height will match the current graph height."].join(" ")},scale:{valType:"number",min:0,dflt:1,description:["Sets a scaling for the generated image.","If set, all features of a graphs (e.g. text, line width)","are scaled, unlike simply setting","a bigger *width* and *height*."].join(" ")},setBackground:{valType:"any",dflt:!1,description:["Sets the image background mode.","By default, the image background is determined by `layout.paper_bgcolor`,","the *transparent* mode.","One might consider setting `setBackground` to *opaque*","when exporting a *jpeg* image as JPEGs do not support opacity."].join(" ")},imageDataOnly:{valType:"boolean",dflt:!1,description:["Determines whether or not the return value is prefixed by","the image format's corresponding 'data:image;' spec."].join(" ")}},Yle=Gle});var Qu=B((SLe,gC)=>{"use strict";var{format:Vle,width:Xle,height:Wle,scale:Zle}=(B4(),vr(z4)).default,dC=Zle,{dflt:kLe}=dC,Jle=BM(dC,["dflt"]),pC={staticPlot:{valType:"boolean",dflt:!1},typesetMath:{valType:"boolean",dflt:!0},plotlyServerURL:{valType:"string",dflt:"https://cloud.plotly.com/newchart"},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","map"],extras:[!0,!1],dflt:"gl3d+geo+map"},doubleClick:{valType:"enumerated",values:[!1,"reset","autosize","reset+autosize"],dflt:"reset+autosize"},doubleClickDelay:{valType:"number",dflt:500,min:0},showAxisDragHandles:{valType:"boolean",dflt:!0},showAxisRangeEntryBoxes:{valType:"boolean",dflt:!0},showTips:{valType:"boolean",dflt:!0},displayNotifier:{valType:"boolean",dflt:!0},displayModeBar:{valType:"enumerated",values:["hover",!0,!1],dflt:"hover"},showSendToCloud:{valType:"boolean",dflt:!0},modeBarButtonsToRemove:{valType:"any",dflt:[]},modeBarButtonsToAdd:{valType:"any",dflt:[]},modeBarButtons:{valType:"any",dflt:!1},toImageButtonOptions:{format:Vle,filename:{valType:"string"},width:Xle,height:Wle,scale:Jle},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/un/"},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},locale:{valType:"string",dflt:"en-US"},locales:{valType:"any",dflt:{}}},mC={};function yC(e,r){for(let t in e){let a=e[t];typeof a!="object"||a===null||(a.valType?"dflt"in a&&(r[t]=a.dflt):(r[t]||(r[t]={}),yC(a,r[t])))}}yC(pC,mC);gC.exports={configAttributes:pC,dfltConfig:mC}});var O4=B((DLe,bC)=>{"use strict";var I4=ia(),jle=ca(),P2=[];bC.exports=function(e,r,t){var l;if(((l=t==null?void 0:t._context)==null?void 0:l.displayNotifier)===!1||P2.indexOf(e)!==-1)return;P2.push(e);var a=1e3;jle(r)?a=r:r==="long"&&(a=3e3);var n=I4.select("body").selectAll(".plotly-notifier").data([0]);n.enter().append("div").classed("plotly-notifier",!0);var i=n.selectAll(".notifier-note").data(P2);function o(s){s.duration(700).style("opacity",0).each("end",function(u){var f=P2.indexOf(u);f!==-1&&P2.splice(f,1),I4.select(this).remove()})}i.enter().append("div").classed("notifier-note",!0).style("opacity",0).each(function(s){var u=I4.select(this);u.append("button").classed("notifier-close",!0).html("×").on("click",function(){u.transition().call(o)});for(var f=u.append("p"),c=s.split(//g),v=0;v{"use strict";var Fv=Qu().dfltConfig,H4=O4(),U4=xC.exports={};U4.log=function(){var e;if(Fv.logging>1){var r=["LOG:"];for(e=0;e1){var t=[];for(e=0;e"),"long")}};U4.warn=function(){var e;if(Fv.logging>0){var r=["WARN:"];for(e=0;e0){var t=[];for(e=0;e"),"stick")}};U4.error=function(){var e;if(Fv.logging>0){var r=["ERROR:"];for(e=0;e0){var t=[];for(e=0;e"),"stick")}}});var vs=B(B0=>{"use strict";B0.defaults=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"];B0.defaultLine="#444";B0.lightLine="#eee";B0.background="#fff";B0.borderLine="#BEC8D9";B0.lightFraction=1e3/11});var Kt=B((qLe,DC)=>{"use strict";var{converter:_C,formatHex:$le,formatRgb:Kle,wcagContrast:Qle,wcagLuminance:ese}=hC(),{isArrayOrTypedArray:wC}=no(),{warn:rse}=ef(),{background:z2,defaultLine:V4,defaults:tse,lightLine:ase}=vs(),AC=_C("rgb"),nse=_C("hsl"),TC=e=>{if(typeof e!="string")return;let r=e.trim().toLowerCase();if(!/^[0-9a-f]+$/.test(r))try{return AC(r)}catch(t){return}},Vi=e=>e>0?e>1?1:e:0,ise={mode:"rgb",r:0,g:0,b:0,alpha:1},G4=e=>Math.round(e*255e6)/255e6,MC=e=>an(La({},e),{r:G4(e.r),g:G4(e.g),b:G4(e.b)}),qo=e=>Kle(MC(e)),ose=e=>$le(MC(e)),lse=e=>{var r,t,a,n;return typeof e=="string"?`"${e}"`:wC(e)?`${(t=(r=e.constructor)==null?void 0:r.name)!=null?t:"Array"}(${e.length})`:typeof e=="object"?(n=(a=e.constructor)==null?void 0:a.name)!=null?n:"Object":`${typeof e} ${e}`},mn=(e,r)=>{var a;let t=TC(e);return t?((a=t.alpha)!=null||(t.alpha=1),t):(!r&&e!=null&&rse(`Invalid color specifier: ${lse(e)}. Defaulting to "#000"`),ise)},N2=e=>qo(an(La({},mn(e)),{alpha:1})),sse=e=>e?mn(e).alpha:0,kC=e=>wC(e)&&e.length>2&&Number.isFinite(e[0])&&Number.isFinite(e[1])&&Number.isFinite(e[2]),use=e=>{let[r,t,a,n]=e,i=Math.max(r,t,a)>1?1/255:1,o=n!=null?n:1;return{mode:"rgb",r:r*i,g:t*i,b:a*i,alpha:o>1?o/255:o}},fse=(e,r)=>{let t=kC(e)?use(e):mn(e,!0),a=[Vi(t.r),Vi(t.g),Vi(t.b),Vi(t.alpha)];return r==="uint8"||r==="uint8_clamped"?Uint8Array.from(a,n=>Math.round(n*255)):r==="float32"?Float32Array.from(a):r==="float64"?Float64Array.from(a):a},cse=(e,r)=>qo(an(La({},mn(e)),{alpha:Vi(r)})),SC=(e,r)=>{let t=mn(e),a=t.alpha;if(a===1)return qo(t);let n=mn(r||z2),i=n.alpha,o=(l,s)=>(i===1?s:1-i+s*i)*(1-a)+l*a;return qo({mode:"rgb",r:o(t.r,n.r),g:o(t.g,n.g),b:o(t.b,n.b)})},vse=(e,r,t)=>{let a=mn(e),n=mn(r),i=(o,l)=>t*o+(1-t)*l;return qo({mode:"rgb",r:i(a.r,n.r),g:i(a.g,n.g),b:i(a.b,n.b)})},Y4=(e,r)=>{let t=mn(e),a=nse(t)||{mode:"hsl",h:0,s:0,l:0};return qo(AC(an(La({},a),{l:Vi((a.l*100+r)/100),alpha:t.alpha})))},Oy=(e,r)=>Qle(mn(e),mn(r)),CC=e=>Oy(e,z2)>Oy(e,V4),hse=qo(mn(z2)),dse=qo(mn(V4)),pse=(e,r,t)=>(mn(e).alpha!==1&&(e=SC(e,z2)),CC(e)?r?Y4(e,r):hse:t?Y4(e,-t):dse),mse=(e,r)=>{e.style({stroke:N2(r),"stroke-opacity":mn(r).alpha})},yse=(e,r)=>{e.style({fill:N2(r),"fill-opacity":mn(r).alpha})},gse=(e,r)=>!!(e&&r&&N2(e)===N2(r)),bse=e=>TC(e)!==void 0,xse=(e,r)=>{r=r===0?0:r||10;let t=mn(e),a=r/100;return qo(an(La({},t),{r:Vi(t.r+a),g:Vi(t.g+a),b:Vi(t.b+a)}))},_se=(e,r,t)=>{let a=mn(e),n=mn(r),i=t/100,o=n.alpha-a.alpha,l=2*i-1,s=((l*o===-1?l:(l+o)/(1+l*o))+1)/2,u=1-s,f=(c,v)=>u*c+s*v;return qo({mode:"rgb",r:f(a.r,n.r),g:f(a.g,n.g),b:f(a.b,n.b),alpha:a.alpha*(1-i)+n.alpha*i})},wse=(e,r=["#000","#fff"])=>{let t,a=-1/0;for(let n of r){let i=Oy(e,n);i>a&&(a=i,t=qo(mn(n)))}return t},Ase=e=>qo(mn(e)),Tse=e=>ose(mn(e)).toUpperCase(),Mse=e=>{let r=mn(e);return[Vi(r.r)*255,Vi(r.g)*255,Vi(r.b)*255,Vi(r.alpha)]},kse=([e,r,t,a])=>qo({mode:"rgb",r:e/255,g:r/255,b:t/255,alpha:a}),Sse=e=>{let r=mn(e);return ese({mode:"rgb",r:Vi(r.r),g:Vi(r.g),b:Vi(r.b)})};DC.exports={addOpacity:cse,adjustLightness:Y4,background:z2,brighten:xse,combine:SC,contrast:pse,defaultLine:V4,defaults:tse,equals:gse,fill:yse,hexString:Tse,interpolate:vse,isChannelArray:kC,isDark:CC,isValid:bse,lightLine:ase,luminosity:Sse,mix:_se,mostReadable:wse,normalize:fse,opacity:sse,parse:mn,rgb:N2,rgbaArray:Mse,rgbaArrayToString:kse,rgbaString:Ase,stroke:mse,wcagContrast:Oy}});var I0=B((RLe,qC)=>{"use strict";var Cse=Kt(),Hy={Greys:[[0,"rgb(0,0,0)"],[1,"rgb(255,255,255)"]],YlGnBu:[[0,"rgb(8,29,88)"],[.125,"rgb(37,52,148)"],[.25,"rgb(34,94,168)"],[.375,"rgb(29,145,192)"],[.5,"rgb(65,182,196)"],[.625,"rgb(127,205,187)"],[.75,"rgb(199,233,180)"],[.875,"rgb(237,248,217)"],[1,"rgb(255,255,217)"]],Greens:[[0,"rgb(0,68,27)"],[.125,"rgb(0,109,44)"],[.25,"rgb(35,139,69)"],[.375,"rgb(65,171,93)"],[.5,"rgb(116,196,118)"],[.625,"rgb(161,217,155)"],[.75,"rgb(199,233,192)"],[.875,"rgb(229,245,224)"],[1,"rgb(247,252,245)"]],YlOrRd:[[0,"rgb(128,0,38)"],[.125,"rgb(189,0,38)"],[.25,"rgb(227,26,28)"],[.375,"rgb(252,78,42)"],[.5,"rgb(253,141,60)"],[.625,"rgb(254,178,76)"],[.75,"rgb(254,217,118)"],[.875,"rgb(255,237,160)"],[1,"rgb(255,255,204)"]],Bluered:[[0,"rgb(0,0,255)"],[1,"rgb(255,0,0)"]],RdBu:[[0,"rgb(5,10,172)"],[.35,"rgb(106,137,247)"],[.5,"rgb(190,190,190)"],[.6,"rgb(220,170,132)"],[.7,"rgb(230,145,90)"],[1,"rgb(178,10,28)"]],Reds:[[0,"rgb(220,220,220)"],[.2,"rgb(245,195,157)"],[.4,"rgb(245,160,105)"],[1,"rgb(178,10,28)"]],Blues:[[0,"rgb(5,10,172)"],[.35,"rgb(40,60,190)"],[.5,"rgb(70,100,245)"],[.6,"rgb(90,120,245)"],[.7,"rgb(106,137,247)"],[1,"rgb(220,220,220)"]],Picnic:[[0,"rgb(0,0,255)"],[.1,"rgb(51,153,255)"],[.2,"rgb(102,204,255)"],[.3,"rgb(153,204,255)"],[.4,"rgb(204,204,255)"],[.5,"rgb(255,255,255)"],[.6,"rgb(255,204,255)"],[.7,"rgb(255,153,255)"],[.8,"rgb(255,102,204)"],[.9,"rgb(255,102,102)"],[1,"rgb(255,0,0)"]],Rainbow:[[0,"rgb(150,0,90)"],[.125,"rgb(0,0,200)"],[.25,"rgb(0,25,255)"],[.375,"rgb(0,152,255)"],[.5,"rgb(44,255,150)"],[.625,"rgb(151,255,0)"],[.75,"rgb(255,234,0)"],[.875,"rgb(255,111,0)"],[1,"rgb(255,0,0)"]],Portland:[[0,"rgb(12,51,131)"],[.25,"rgb(10,136,186)"],[.5,"rgb(242,211,56)"],[.75,"rgb(242,143,56)"],[1,"rgb(217,30,30)"]],Jet:[[0,"rgb(0,0,131)"],[.125,"rgb(0,60,170)"],[.375,"rgb(5,255,255)"],[.625,"rgb(255,255,0)"],[.875,"rgb(250,0,0)"],[1,"rgb(128,0,0)"]],Hot:[[0,"rgb(0,0,0)"],[.3,"rgb(230,0,0)"],[.6,"rgb(255,210,0)"],[1,"rgb(255,255,255)"]],Blackbody:[[0,"rgb(0,0,0)"],[.2,"rgb(230,0,0)"],[.4,"rgb(230,210,0)"],[.7,"rgb(255,255,255)"],[1,"rgb(160,200,255)"]],Earth:[[0,"rgb(0,0,130)"],[.1,"rgb(0,180,180)"],[.2,"rgb(40,210,40)"],[.4,"rgb(230,230,50)"],[.6,"rgb(120,70,20)"],[1,"rgb(255,255,255)"]],Electric:[[0,"rgb(0,0,0)"],[.15,"rgb(30,0,100)"],[.4,"rgb(120,0,100)"],[.6,"rgb(160,90,0)"],[.8,"rgb(230,200,0)"],[1,"rgb(255,250,220)"]],Viridis:[[0,"#440154"],[.06274509803921569,"#48186a"],[.12549019607843137,"#472d7b"],[.18823529411764706,"#424086"],[.25098039215686274,"#3b528b"],[.3137254901960784,"#33638d"],[.3764705882352941,"#2c728e"],[.4392156862745098,"#26828e"],[.5019607843137255,"#21918c"],[.5647058823529412,"#1fa088"],[.6274509803921569,"#28ae80"],[.6901960784313725,"#3fbc73"],[.7529411764705882,"#5ec962"],[.8156862745098039,"#84d44b"],[.8784313725490196,"#addc30"],[.9411764705882353,"#d8e219"],[1,"#fde725"]],Cividis:[[0,"rgb(0,32,76)"],[.058824,"rgb(0,42,102)"],[.117647,"rgb(0,52,110)"],[.176471,"rgb(39,63,108)"],[.235294,"rgb(60,74,107)"],[.294118,"rgb(76,85,107)"],[.352941,"rgb(91,95,109)"],[.411765,"rgb(104,106,112)"],[.470588,"rgb(117,117,117)"],[.529412,"rgb(131,129,120)"],[.588235,"rgb(146,140,120)"],[.647059,"rgb(161,152,118)"],[.705882,"rgb(176,165,114)"],[.764706,"rgb(192,177,109)"],[.823529,"rgb(209,191,102)"],[.882353,"rgb(225,204,92)"],[.941176,"rgb(243,219,79)"],[1,"rgb(255,233,69)"]]},LC=Hy.RdBu;function Dse(e,r){if(r||(r=LC),!e)return r;function t(){try{e=Hy[e]||JSON.parse(e)}catch(a){e=r}}return typeof e=="string"&&(t(),typeof e=="string"&&t()),EC(e)?e:r}function EC(e){var r=0;if(!Array.isArray(e)||e.length<2||!e[0]||!e[e.length-1]||+e[0][0]!=0||+e[e.length-1][0]!=1)return!1;for(var t=0;tFse,HIDE_PLACEHOLDER:()=>qse,SHOW_PLACEHOLDER:()=>Ese});var Ese,qse,Fse,Pv=Za(()=>{"use strict";Ese=100,qse=1e3,Fse=.2});var B2={};Ja(B2,{counter:()=>O0});function O0(e,r="",t,a){let n=r+(t?"":"$"),i=a===!1?"":"^";return e==="xy"?new RegExp(i+"x"+X4+"y"+X4+n):new RegExp(i+e+X4+n)}var X4,Nv=Za(()=>{"use strict";X4="([2-9]|[1-9][0-9]+)?"});var PC=B(go=>{"use strict";var W4=ca(),FC=Sn().extendFlat,Rse=Dl(),Pse=I0(),Z4=Kt(),Nse=(Pv(),vr(Rv)).DESELECTDIM,zv=cy(),RC=(Nv(),vr(B2)).counter,zse=(Av(),vr(wv)).modHalf,El=no().isArrayOrTypedArray,rf=no().isTypedArraySpec,tf=no().decodeTypedArraySpec;go.valObjectMeta={data_array:{coerceFunction:function(e,r,t){r.set(El(e)?e:rf(e)?tf(e):t)}},enumerated:{coerceFunction:function(e,r,t,a){a.coerceNumber&&(e=+e),a.values.indexOf(e)===-1?r.set(t):r.set(e)},validateFunction:function(e,r){r.coerceNumber&&(e=+e);for(var t=r.values,a=0;ai===!0||i===!1;n(e)||a.arrayOk&&Array.isArray(e)&&e.length>0&&e.every(n)?r.set(e):r.set(t)}},number:{coerceFunction:function(e,r,t,a){rf(e)&&(e=tf(e)),!W4(e)||a.min!==void 0&&ea.max?r.set(t):r.set(+e)}},integer:{coerceFunction:function(e,r,t,a){if((a.extras||[]).indexOf(e)!==-1){r.set(e);return}rf(e)&&(e=tf(e)),e%1||!W4(e)||a.min!==void 0&&ea.max?r.set(t):r.set(+e)}},string:{coerceFunction:function(e,r,t,a){if(typeof e!="string"){var n=typeof e=="number";a.strict===!0||!n?r.set(t):r.set(String(e))}else a.noBlank&&!e?r.set(t):r.set(e)}},color:{coerceFunction:function(e,r,t){rf(e)&&(e=tf(e)),Z4.isValid(e)?r.set(e):r.set(t)}},colorlist:{coerceFunction:function(e,r,t){!Array.isArray(e)||!e.length?r.set(t):e.every(a=>Z4.isValid(a))?r.set(e):r.set(t)}},colorscale:{coerceFunction:function(e,r,t){r.set(Pse.get(e,t))}},angle:{coerceFunction:function(e,r,t){rf(e)&&(e=tf(e)),e==="auto"?r.set("auto"):W4(e)?r.set(zse(+e,360)):r.set(t)}},subplotid:{coerceFunction:function(e,r,t,a){var n=a.regex||RC(t);let i=o=>typeof o=="string"&&n.test(o);i(e)||a.arrayOk&&El(e)&&e.length>0&&e.every(i)?r.set(e):r.set(t)},validateFunction:function(e,r){var t=r.dflt;return e===t?!0:typeof e!="string"?!1:!!RC(t).test(e)}},flaglist:{coerceFunction:function(e,r,t,a){if((a.extras||[]).indexOf(e)!==-1){r.set(e);return}if(typeof e!="string"){r.set(t);return}for(var n=e.split("+"),i=0;i{"use strict";NC.exports=function(){}});var J4=B((zLe,zC)=>{"use strict";zC.exports=function(r,t){if(t instanceof RegExp){for(var a=t.toString(),n=0;n{BC.exports=Bse;function Bse(){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}});var HC=B((ILe,OC)=>{OC.exports=Ise;function Ise(e){var r=new Float32Array(16);return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4],r[5]=e[5],r[6]=e[6],r[7]=e[7],r[8]=e[8],r[9]=e[9],r[10]=e[10],r[11]=e[11],r[12]=e[12],r[13]=e[13],r[14]=e[14],r[15]=e[15],r}});var GC=B((OLe,UC)=>{UC.exports=Ose;function Ose(e,r){return e[0]=r[0],e[1]=r[1],e[2]=r[2],e[3]=r[3],e[4]=r[4],e[5]=r[5],e[6]=r[6],e[7]=r[7],e[8]=r[8],e[9]=r[9],e[10]=r[10],e[11]=r[11],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15],e}});var j4=B((HLe,YC)=>{YC.exports=Hse;function Hse(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}});var XC=B((ULe,VC)=>{VC.exports=Use;function Use(e,r){if(e===r){var t=r[1],a=r[2],n=r[3],i=r[6],o=r[7],l=r[11];e[1]=r[4],e[2]=r[8],e[3]=r[12],e[4]=t,e[6]=r[9],e[7]=r[13],e[8]=a,e[9]=i,e[11]=r[14],e[12]=n,e[13]=o,e[14]=l}else e[0]=r[0],e[1]=r[4],e[2]=r[8],e[3]=r[12],e[4]=r[1],e[5]=r[5],e[6]=r[9],e[7]=r[13],e[8]=r[2],e[9]=r[6],e[10]=r[10],e[11]=r[14],e[12]=r[3],e[13]=r[7],e[14]=r[11],e[15]=r[15];return e}});var ZC=B((GLe,WC)=>{WC.exports=Gse;function Gse(e,r){var t=r[0],a=r[1],n=r[2],i=r[3],o=r[4],l=r[5],s=r[6],u=r[7],f=r[8],c=r[9],v=r[10],d=r[11],p=r[12],y=r[13],m=r[14],b=r[15],T=t*l-a*o,_=t*s-n*o,x=t*u-i*o,w=a*s-n*l,k=a*u-i*l,M=n*u-i*s,C=f*y-c*p,E=f*m-v*p,F=f*b-d*p,P=c*m-v*y,q=c*b-d*y,z=v*b-d*m,I=T*z-_*q+x*P+w*F-k*E+M*C;return I?(I=1/I,e[0]=(l*z-s*q+u*P)*I,e[1]=(n*q-a*z-i*P)*I,e[2]=(y*M-m*k+b*w)*I,e[3]=(v*k-c*M-d*w)*I,e[4]=(s*F-o*z-u*E)*I,e[5]=(t*z-n*F+i*E)*I,e[6]=(m*x-p*M-b*_)*I,e[7]=(f*M-v*x+d*_)*I,e[8]=(o*q-l*F+u*C)*I,e[9]=(a*F-t*q-i*C)*I,e[10]=(p*k-y*x+b*T)*I,e[11]=(c*x-f*k-d*T)*I,e[12]=(l*E-o*P-s*C)*I,e[13]=(t*P-a*E+n*C)*I,e[14]=(y*_-p*w-m*T)*I,e[15]=(f*w-c*_+v*T)*I,e):null}});var jC=B((YLe,JC)=>{JC.exports=Yse;function Yse(e,r){var t=r[0],a=r[1],n=r[2],i=r[3],o=r[4],l=r[5],s=r[6],u=r[7],f=r[8],c=r[9],v=r[10],d=r[11],p=r[12],y=r[13],m=r[14],b=r[15];return e[0]=l*(v*b-d*m)-c*(s*b-u*m)+y*(s*d-u*v),e[1]=-(a*(v*b-d*m)-c*(n*b-i*m)+y*(n*d-i*v)),e[2]=a*(s*b-u*m)-l*(n*b-i*m)+y*(n*u-i*s),e[3]=-(a*(s*d-u*v)-l*(n*d-i*v)+c*(n*u-i*s)),e[4]=-(o*(v*b-d*m)-f*(s*b-u*m)+p*(s*d-u*v)),e[5]=t*(v*b-d*m)-f*(n*b-i*m)+p*(n*d-i*v),e[6]=-(t*(s*b-u*m)-o*(n*b-i*m)+p*(n*u-i*s)),e[7]=t*(s*d-u*v)-o*(n*d-i*v)+f*(n*u-i*s),e[8]=o*(c*b-d*y)-f*(l*b-u*y)+p*(l*d-u*c),e[9]=-(t*(c*b-d*y)-f*(a*b-i*y)+p*(a*d-i*c)),e[10]=t*(l*b-u*y)-o*(a*b-i*y)+p*(a*u-i*l),e[11]=-(t*(l*d-u*c)-o*(a*d-i*c)+f*(a*u-i*l)),e[12]=-(o*(c*m-v*y)-f*(l*m-s*y)+p*(l*v-s*c)),e[13]=t*(c*m-v*y)-f*(a*m-n*y)+p*(a*v-n*c),e[14]=-(t*(l*m-s*y)-o*(a*m-n*y)+p*(a*s-n*l)),e[15]=t*(l*v-s*c)-o*(a*v-n*c)+f*(a*s-n*l),e}});var KC=B((VLe,$C)=>{$C.exports=Vse;function Vse(e){var r=e[0],t=e[1],a=e[2],n=e[3],i=e[4],o=e[5],l=e[6],s=e[7],u=e[8],f=e[9],c=e[10],v=e[11],d=e[12],p=e[13],y=e[14],m=e[15],b=r*o-t*i,T=r*l-a*i,_=r*s-n*i,x=t*l-a*o,w=t*s-n*o,k=a*s-n*l,M=u*p-f*d,C=u*y-c*d,E=u*m-v*d,F=f*y-c*p,P=f*m-v*p,q=c*m-v*y;return b*q-T*P+_*F+x*E-w*C+k*M}});var eD=B((XLe,QC)=>{QC.exports=Xse;function Xse(e,r,t){var a=r[0],n=r[1],i=r[2],o=r[3],l=r[4],s=r[5],u=r[6],f=r[7],c=r[8],v=r[9],d=r[10],p=r[11],y=r[12],m=r[13],b=r[14],T=r[15],_=t[0],x=t[1],w=t[2],k=t[3];return e[0]=_*a+x*l+w*c+k*y,e[1]=_*n+x*s+w*v+k*m,e[2]=_*i+x*u+w*d+k*b,e[3]=_*o+x*f+w*p+k*T,_=t[4],x=t[5],w=t[6],k=t[7],e[4]=_*a+x*l+w*c+k*y,e[5]=_*n+x*s+w*v+k*m,e[6]=_*i+x*u+w*d+k*b,e[7]=_*o+x*f+w*p+k*T,_=t[8],x=t[9],w=t[10],k=t[11],e[8]=_*a+x*l+w*c+k*y,e[9]=_*n+x*s+w*v+k*m,e[10]=_*i+x*u+w*d+k*b,e[11]=_*o+x*f+w*p+k*T,_=t[12],x=t[13],w=t[14],k=t[15],e[12]=_*a+x*l+w*c+k*y,e[13]=_*n+x*s+w*v+k*m,e[14]=_*i+x*u+w*d+k*b,e[15]=_*o+x*f+w*p+k*T,e}});var tD=B((WLe,rD)=>{rD.exports=Wse;function Wse(e,r,t){var a=t[0],n=t[1],i=t[2],o,l,s,u,f,c,v,d,p,y,m,b;return r===e?(e[12]=r[0]*a+r[4]*n+r[8]*i+r[12],e[13]=r[1]*a+r[5]*n+r[9]*i+r[13],e[14]=r[2]*a+r[6]*n+r[10]*i+r[14],e[15]=r[3]*a+r[7]*n+r[11]*i+r[15]):(o=r[0],l=r[1],s=r[2],u=r[3],f=r[4],c=r[5],v=r[6],d=r[7],p=r[8],y=r[9],m=r[10],b=r[11],e[0]=o,e[1]=l,e[2]=s,e[3]=u,e[4]=f,e[5]=c,e[6]=v,e[7]=d,e[8]=p,e[9]=y,e[10]=m,e[11]=b,e[12]=o*a+f*n+p*i+r[12],e[13]=l*a+c*n+y*i+r[13],e[14]=s*a+v*n+m*i+r[14],e[15]=u*a+d*n+b*i+r[15]),e}});var nD=B((ZLe,aD)=>{aD.exports=Zse;function Zse(e,r,t){var a=t[0],n=t[1],i=t[2];return e[0]=r[0]*a,e[1]=r[1]*a,e[2]=r[2]*a,e[3]=r[3]*a,e[4]=r[4]*n,e[5]=r[5]*n,e[6]=r[6]*n,e[7]=r[7]*n,e[8]=r[8]*i,e[9]=r[9]*i,e[10]=r[10]*i,e[11]=r[11]*i,e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15],e}});var oD=B((JLe,iD)=>{iD.exports=Jse;function Jse(e,r,t,a){var n=a[0],i=a[1],o=a[2],l=Math.sqrt(n*n+i*i+o*o),s,u,f,c,v,d,p,y,m,b,T,_,x,w,k,M,C,E,F,P,q,z,I,Y;return Math.abs(l)<1e-6?null:(l=1/l,n*=l,i*=l,o*=l,s=Math.sin(t),u=Math.cos(t),f=1-u,c=r[0],v=r[1],d=r[2],p=r[3],y=r[4],m=r[5],b=r[6],T=r[7],_=r[8],x=r[9],w=r[10],k=r[11],M=n*n*f+u,C=i*n*f+o*s,E=o*n*f-i*s,F=n*i*f-o*s,P=i*i*f+u,q=o*i*f+n*s,z=n*o*f+i*s,I=i*o*f-n*s,Y=o*o*f+u,e[0]=c*M+y*C+_*E,e[1]=v*M+m*C+x*E,e[2]=d*M+b*C+w*E,e[3]=p*M+T*C+k*E,e[4]=c*F+y*P+_*q,e[5]=v*F+m*P+x*q,e[6]=d*F+b*P+w*q,e[7]=p*F+T*P+k*q,e[8]=c*z+y*I+_*Y,e[9]=v*z+m*I+x*Y,e[10]=d*z+b*I+w*Y,e[11]=p*z+T*I+k*Y,r!==e&&(e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e)}});var sD=B((jLe,lD)=>{lD.exports=jse;function jse(e,r,t){var a=Math.sin(t),n=Math.cos(t),i=r[4],o=r[5],l=r[6],s=r[7],u=r[8],f=r[9],c=r[10],v=r[11];return r!==e&&(e[0]=r[0],e[1]=r[1],e[2]=r[2],e[3]=r[3],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e[4]=i*n+u*a,e[5]=o*n+f*a,e[6]=l*n+c*a,e[7]=s*n+v*a,e[8]=u*n-i*a,e[9]=f*n-o*a,e[10]=c*n-l*a,e[11]=v*n-s*a,e}});var fD=B(($Le,uD)=>{uD.exports=$se;function $se(e,r,t){var a=Math.sin(t),n=Math.cos(t),i=r[0],o=r[1],l=r[2],s=r[3],u=r[8],f=r[9],c=r[10],v=r[11];return r!==e&&(e[4]=r[4],e[5]=r[5],e[6]=r[6],e[7]=r[7],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e[0]=i*n-u*a,e[1]=o*n-f*a,e[2]=l*n-c*a,e[3]=s*n-v*a,e[8]=i*a+u*n,e[9]=o*a+f*n,e[10]=l*a+c*n,e[11]=s*a+v*n,e}});var vD=B((KLe,cD)=>{cD.exports=Kse;function Kse(e,r,t){var a=Math.sin(t),n=Math.cos(t),i=r[0],o=r[1],l=r[2],s=r[3],u=r[4],f=r[5],c=r[6],v=r[7];return r!==e&&(e[8]=r[8],e[9]=r[9],e[10]=r[10],e[11]=r[11],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e[0]=i*n+u*a,e[1]=o*n+f*a,e[2]=l*n+c*a,e[3]=s*n+v*a,e[4]=u*n-i*a,e[5]=f*n-o*a,e[6]=c*n-l*a,e[7]=v*n-s*a,e}});var dD=B((QLe,hD)=>{hD.exports=Qse;function Qse(e,r,t){var a,n,i,o=t[0],l=t[1],s=t[2],u=Math.sqrt(o*o+l*l+s*s);return Math.abs(u)<1e-6?null:(u=1/u,o*=u,l*=u,s*=u,a=Math.sin(r),n=Math.cos(r),i=1-n,e[0]=o*o*i+n,e[1]=l*o*i+s*a,e[2]=s*o*i-l*a,e[3]=0,e[4]=o*l*i-s*a,e[5]=l*l*i+n,e[6]=s*l*i+o*a,e[7]=0,e[8]=o*s*i+l*a,e[9]=l*s*i-o*a,e[10]=s*s*i+n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e)}});var mD=B((eEe,pD)=>{pD.exports=eue;function eue(e,r,t){var a=r[0],n=r[1],i=r[2],o=r[3],l=a+a,s=n+n,u=i+i,f=a*l,c=a*s,v=a*u,d=n*s,p=n*u,y=i*u,m=o*l,b=o*s,T=o*u;return e[0]=1-(d+y),e[1]=c+T,e[2]=v-b,e[3]=0,e[4]=c-T,e[5]=1-(f+y),e[6]=p+m,e[7]=0,e[8]=v+b,e[9]=p-m,e[10]=1-(f+d),e[11]=0,e[12]=t[0],e[13]=t[1],e[14]=t[2],e[15]=1,e}});var gD=B((rEe,yD)=>{yD.exports=rue;function rue(e,r){return e[0]=r[0],e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=r[1],e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=r[2],e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var xD=B((tEe,bD)=>{bD.exports=tue;function tue(e,r){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]=r[0],e[13]=r[1],e[14]=r[2],e[15]=1,e}});var wD=B((aEe,_D)=>{_D.exports=aue;function aue(e,r){var t=Math.sin(r),a=Math.cos(r);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=a,e[6]=t,e[7]=0,e[8]=0,e[9]=-t,e[10]=a,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var TD=B((nEe,AD)=>{AD.exports=nue;function nue(e,r){var t=Math.sin(r),a=Math.cos(r);return e[0]=a,e[1]=0,e[2]=-t,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=t,e[9]=0,e[10]=a,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var kD=B((iEe,MD)=>{MD.exports=iue;function iue(e,r){var t=Math.sin(r),a=Math.cos(r);return e[0]=a,e[1]=t,e[2]=0,e[3]=0,e[4]=-t,e[5]=a,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}});var CD=B((oEe,SD)=>{SD.exports=oue;function oue(e,r){var t=r[0],a=r[1],n=r[2],i=r[3],o=t+t,l=a+a,s=n+n,u=t*o,f=a*o,c=a*l,v=n*o,d=n*l,p=n*s,y=i*o,m=i*l,b=i*s;return e[0]=1-c-p,e[1]=f+b,e[2]=v-m,e[3]=0,e[4]=f-b,e[5]=1-u-p,e[6]=d+y,e[7]=0,e[8]=v+m,e[9]=d-y,e[10]=1-u-c,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var LD=B((lEe,DD)=>{DD.exports=lue;function lue(e,r,t,a,n,i,o){var l=1/(t-r),s=1/(n-a),u=1/(i-o);return e[0]=i*2*l,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=i*2*s,e[6]=0,e[7]=0,e[8]=(t+r)*l,e[9]=(n+a)*s,e[10]=(o+i)*u,e[11]=-1,e[12]=0,e[13]=0,e[14]=o*i*2*u,e[15]=0,e}});var qD=B((sEe,ED)=>{ED.exports=sue;function sue(e,r,t,a,n){var i=1/Math.tan(r/2),o=1/(a-n);return e[0]=i/t,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=i,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=(n+a)*o,e[11]=-1,e[12]=0,e[13]=0,e[14]=2*n*a*o,e[15]=0,e}});var RD=B((uEe,FD)=>{FD.exports=uue;function uue(e,r,t,a){var n=Math.tan(r.upDegrees*Math.PI/180),i=Math.tan(r.downDegrees*Math.PI/180),o=Math.tan(r.leftDegrees*Math.PI/180),l=Math.tan(r.rightDegrees*Math.PI/180),s=2/(o+l),u=2/(n+i);return e[0]=s,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=u,e[6]=0,e[7]=0,e[8]=-((o-l)*s*.5),e[9]=(n-i)*u*.5,e[10]=a/(t-a),e[11]=-1,e[12]=0,e[13]=0,e[14]=a*t/(t-a),e[15]=0,e}});var ND=B((fEe,PD)=>{PD.exports=fue;function fue(e,r,t,a,n,i,o){var l=1/(r-t),s=1/(a-n),u=1/(i-o);return e[0]=-2*l,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*s,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*u,e[11]=0,e[12]=(r+t)*l,e[13]=(n+a)*s,e[14]=(o+i)*u,e[15]=1,e}});var BD=B((cEe,zD)=>{var cue=j4();zD.exports=vue;function vue(e,r,t,a){var n,i,o,l,s,u,f,c,v,d,p=r[0],y=r[1],m=r[2],b=a[0],T=a[1],_=a[2],x=t[0],w=t[1],k=t[2];return Math.abs(p-x)<1e-6&&Math.abs(y-w)<1e-6&&Math.abs(m-k)<1e-6?cue(e):(f=p-x,c=y-w,v=m-k,d=1/Math.sqrt(f*f+c*c+v*v),f*=d,c*=d,v*=d,n=T*v-_*c,i=_*f-b*v,o=b*c-T*f,d=Math.sqrt(n*n+i*i+o*o),d?(d=1/d,n*=d,i*=d,o*=d):(n=0,i=0,o=0),l=c*o-v*i,s=v*n-f*o,u=f*i-c*n,d=Math.sqrt(l*l+s*s+u*u),d?(d=1/d,l*=d,s*=d,u*=d):(l=0,s=0,u=0),e[0]=n,e[1]=l,e[2]=f,e[3]=0,e[4]=i,e[5]=s,e[6]=c,e[7]=0,e[8]=o,e[9]=u,e[10]=v,e[11]=0,e[12]=-(n*p+i*y+o*m),e[13]=-(l*p+s*y+u*m),e[14]=-(f*p+c*y+v*m),e[15]=1,e)}});var OD=B((vEe,ID)=>{ID.exports=hue;function hue(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]+")"}});var $4=B((hEe,HD)=>{HD.exports={create:IC(),clone:HC(),copy:GC(),identity:j4(),transpose:XC(),invert:ZC(),adjoint:jC(),determinant:KC(),multiply:eD(),translate:tD(),scale:nD(),rotate:oD(),rotateX:sD(),rotateY:fD(),rotateZ:vD(),fromRotation:dD(),fromRotationTranslation:mD(),fromScaling:gD(),fromTranslation:xD(),fromXRotation:wD(),fromYRotation:TD(),fromZRotation:kD(),fromQuat:CD(),frustum:LD(),perspective:qD(),perspectiveFromFieldOfView:RD(),ortho:ND(),lookAt:BD(),str:OD()}});var Yy=B(Cn=>{"use strict";var due=$4();Cn.init2dArray=function(e,r){for(var t=new Array(e),a=0;a{"use strict";var pue=ia(),UD=ef(),mue=Yy(),yue=$4();function gue(e){var r;if(typeof e=="string"){if(r=document.getElementById(e),r===null)throw new Error("No DOM element with id '"+e+"' exists on the page.");return r}else if(e==null)throw new Error("DOM element provided is null or undefined");return e}function bue(e){var r=pue.select(e);return r.node()instanceof HTMLElement&&r.size()&&r.classed("js-plotly-plot")}function GD(e){var r=e&&e.parentNode;r&&r.removeChild(e)}function xue(e,r){YD("global",e,r)}function YD(e,r,t){var a="plotly.js-style-"+e,n=document.getElementById(a);if(!(n&&n.matches(".no-inline-styles"))){n||(n=document.createElement("style"),n.setAttribute("id",a),n.appendChild(document.createTextNode("")),document.head.appendChild(n));var i=n.sheet;i?i.insertRule?i.insertRule(r+"{"+t+"}",0):i.addRule?i.addRule(r,t,0):UD.warn("addStyleRule failed"):UD.warn("Cannot addRelatedStyleRule, probably due to strict CSP...")}}function _ue(e){var r="plotly.js-style-"+e,t=document.getElementById(r);t&&GD(t)}function wue(e,r,t,a,n,i){var o=a.split(":"),l=n.split(":"),s="data-btn-style-event-added";i||(i=document),i.querySelectorAll(e).forEach(function(u){u._hoverStyle={activeStyleParts:o,inactiveStyleParts:l},u.getAttribute(s)||(u.addEventListener("mouseenter",function(){var f=this._hoverStyle,c=this.querySelector(t);c&&(c.style[f.activeStyleParts[0]]=f.activeStyleParts[1])}),u.addEventListener("mouseleave",function(){var f=this._hoverStyle,c=this.querySelector(t);c&&(r&&this.matches(r)?c.style[f.activeStyleParts[0]]=f.activeStyleParts[1]:c.style[f.inactiveStyleParts[0]]=f.inactiveStyleParts[1])}),u.setAttribute(s,!0))})}function Aue(e){var r=XD(e),t=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];return r.forEach(function(a){var n=VD(a);if(n){var i=mue.convertCssMatrix(n);t=yue.multiply(t,t,i)}}),t}function VD(e){var r=window.getComputedStyle(e,null),t=r.getPropertyValue("-webkit-transform")||r.getPropertyValue("-moz-transform")||r.getPropertyValue("-ms-transform")||r.getPropertyValue("-o-transform")||r.getPropertyValue("transform");return t==="none"?null:t.replace("matrix","").replace("3d","").slice(1,-1).split(",").map(function(a){return+a})}function XD(e){for(var r=[];Tue(e);)r.push(e),e=e.parentNode,typeof ShadowRoot=="function"&&e instanceof ShadowRoot&&(e=e.host);return r}function Tue(e){return e&&(e instanceof Element||e instanceof HTMLElement)}function Mue(e,r){return e&&r&&e.top===r.top&&e.left===r.left&&e.right===r.right&&e.bottom===r.bottom}WD.exports={getGraphDiv:gue,isPlotDiv:bue,removeElement:GD,addStyleRule:xue,addRelatedStyleRule:YD,deleteRelatedStyleRule:_ue,setStyleOnHover:wue,getFullTransformMatrix:Aue,getElementTransformMatrix:VD,getElementAndAncestors:XD,equalDomRects:Mue}});var O2=B((mEe,ZD)=>{"use strict";ZD.exports={mode:{valType:"enumerated",dflt:"afterall",values:["immediate","next","afterall"]},direction:{valType:"enumerated",values:["forward","reverse"],dflt:"forward"},fromcurrent:{valType:"boolean",dflt:!1},frame:{duration:{valType:"number",min:0,dflt:500},redraw:{valType:"boolean",dflt:!0}},transition:{duration:{valType:"number",min:0,dflt:500,editType:"none"},easing:{valType:"enumerated",dflt:"cubic-in-out",values:["linear","quad","cubic","sin","exp","circle","elastic","back","bounce","linear-in","quad-in","cubic-in","sin-in","exp-in","circle-in","elastic-in","back-in","bounce-in","linear-out","quad-out","cubic-out","sin-out","exp-out","circle-out","elastic-out","back-out","bounce-out","linear-in-out","quad-in-out","cubic-in-out","sin-in-out","exp-in-out","circle-in-out","elastic-in-out","back-in-out","bounce-in-out"],editType:"none"},ordering:{valType:"enumerated",values:["layout first","traces first"],dflt:"layout first",editType:"none"}}}});var ql=B((yEe,rL)=>{"use strict";var jD=Sn().extendFlat,kue=D0(),$D={valType:"flaglist",extras:["none"],flags:["calc","clearAxisTypes","plot","style","markerSize","colorbars"]},KD={valType:"flaglist",extras:["none"],flags:["calc","plot","legend","ticks","axrange","layoutstyle","modebar","camera","arraydraw","colorbars"]},Sue=$D.flags.slice().concat(["fullReplot"]),Cue=KD.flags.slice().concat("layoutReplot");rL.exports={traces:$D,layout:KD,traceFlags:function(){return JD(Sue)},layoutFlags:function(){return JD(Cue)},update:function(e,r){var t=r.editType;if(t&&t!=="none")for(var a=t.split("+"),n=0;n{"use strict";K4.dash={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",editType:"style"};K4.pattern={shape:{valType:"enumerated",values:["","/","\\","x","-","|","+","."],dflt:"",arrayOk:!0,editType:"style"},path:{valType:"string",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"}});var Q4={};Ja(Q4,{DATE_FORMAT_LINK:()=>Lue,FORMAT_LINK:()=>Due});var Due,Lue,e6=Za(()=>{"use strict";Due="https://github.com/d3/d3-format/tree/v1.4.5#d3-format",Lue="https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format"});var Iv=B(Bv=>{"use strict";var{DATE_FORMAT_LINK:Eue,FORMAT_LINK:que}=(e6(),vr(Q4)),Fue=["Variables that can't be found will be replaced with the specifier.",'For example, a template of "data: %{x}, %{y}" will result in a value of "data: 1, %{y}" if x is 1 and y is missing.',"Variables with an undefined value will be replaced with the fallback value."].join(" ");function Rue({supportOther:e}={}){return["Variables are inserted using %{variable},",'for example "y: %{y}"'+(e?" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown.":"."),`Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}".`,que,"for details on the formatting syntax.",`Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}".`,Eue,"for details on the date formatting syntax.",Fue].join(" ")}Bv.templateFormatStringDescription=Rue;Bv.hovertemplateAttrs=({editType:e="none",arrayOk:r}={},t={})=>La({valType:"string",dflt:"",editType:e},r!==!1?{arrayOk:!0}:{});Bv.texttemplateAttrs=({editType:e="calc",arrayOk:r}={},t={})=>La({valType:"string",dflt:"",editType:e},r!==!1?{arrayOk:!0}:{});Bv.shapeTexttemplateAttrs=({editType:e="arraydraw",newshape:r}={},t={})=>({valType:"string",dflt:"",editType:e});Bv.templatefallbackAttrs=({editType:e="none"}={})=>({valType:"any",dflt:"-",editType:e})});var Wy=B((_Ee,lL)=>{"use strict";function nf(e,r){return r?r.d2l(e):e}function tL(e,r){return r?r.l2d(e):e}function Pue(e){return e.x0}function Nue(e){return e.x1}function zue(e){return e.y0}function Bue(e){return e.y1}function aL(e){return e.x0shift||0}function nL(e){return e.x1shift||0}function iL(e){return e.y0shift||0}function oL(e){return e.y1shift||0}function Vy(e,r){return nf(e.x1,r)+nL(e)-nf(e.x0,r)-aL(e)}function Xy(e,r,t){return nf(e.y1,t)+oL(e)-nf(e.y0,t)-iL(e)}function Iue(e,r){return Math.abs(Vy(e,r))}function Oue(e,r,t){return Math.abs(Xy(e,r,t))}function Hue(e,r,t){return e.type!=="line"?void 0:Math.sqrt(Math.pow(Vy(e,r),2)+Math.pow(Xy(e,r,t),2))}function Uue(e,r){return tL((nf(e.x1,r)+nL(e)+nf(e.x0,r)+aL(e))/2,r)}function Gue(e,r,t){return tL((nf(e.y1,t)+oL(e)+nf(e.y0,t)+iL(e))/2,t)}function Yue(e,r,t){return e.type!=="line"?void 0:Xy(e,r,t)/Vy(e,r)}var Vue=["x0","x1","y0","y1","dy","height","ycenter"],Xue=["x0","x1","y0","y1","dx","width","xcenter"];lL.exports={x0:Pue,x1:Nue,y0:zue,y1:Bue,slope:Yue,dx:Vy,dy:Xy,width:Iue,height:Oue,length:Hue,xcenter:Uue,ycenter:Gue,simpleXVariables:Vue,simpleYVariables:Xue}});var fL=B((wEe,uL)=>{"use strict";var Wue=ql().overrideAll,H0=Dl(),sL=Ai(),Zue=af().dash,of=Sn().extendFlat,{shapeTexttemplateAttrs:Jue,templatefallbackAttrs:jue}=Iv(),$ue=Wy();uL.exports=Wue({newshape:{visible:of({},H0.visible,{}),showlegend:{valType:"boolean",dflt:!1},legend:of({},H0.legend,{}),legendgroup:of({},H0.legendgroup,{}),legendgrouptitle:{text:of({},H0.legendgrouptitle.text,{}),font:sL({})},legendrank:of({},H0.legendrank,{}),legendwidth:of({},H0.legendwidth,{}),line:{color:{valType:"color"},width:{valType:"number",min:0,dflt:4},dash:of({},Zue,{dflt:"solid"})},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd"},opacity:{valType:"number",min:0,max:1,dflt:1},layer:{valType:"enumerated",values:["below","above","between"],dflt:"above"},drawdirection:{valType:"enumerated",values:["ortho","horizontal","vertical","diagonal"],dflt:"diagonal"},name:of({},H0.name,{}),label:{text:{valType:"string",dflt:""},texttemplate:Jue({newshape:!0},{keys:Object.keys($ue)}),texttemplatefallback:jue({editType:"arraydraw"}),font:sL({}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"]},textangle:{valType:"angle",dflt:"auto"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto"},yanchor:{valType:"enumerated",values:["top","middle","bottom"]},padding:{valType:"number",dflt:3,min:0}}},activeshape:{fillcolor:{valType:"color",dflt:"rgb(255,0,255)",description:"Sets the color filling the active shape' interior."},opacity:{valType:"number",min:0,max:1,dflt:.5}}},"none","from-root")});var vL=B((AEe,cL)=>{"use strict";var Kue=af().dash,Que=Sn().extendFlat;cL.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:Que({},Kue,{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"}}});var Zy=B((TEe,hL)=>{"use strict";hL.exports=function(e){var r=e.editType;return{t:{valType:"number",dflt:0,editType:r},r:{valType:"number",dflt:0,editType:r},b:{valType:"number",dflt:0,editType:r},l:{valType:"number",dflt:0,editType:r},editType:r}}});var Ov=B((MEe,yL)=>{"use strict";var r6=Ai(),efe=O2(),Jy=vs(),dL=fL(),pL=vL(),rfe=Zy(),mL=Sn().extendFlat,jy=r6({editType:"calc"});jy.family.dflt='"Open Sans", verdana, arial, sans-serif';jy.size.dflt=12;jy.color.dflt=Jy.defaultLine;yL.exports={font:jy,title:{text:{valType:"string",editType:"layoutstyle"},font:r6({editType:"layoutstyle"}),subtitle:{text:{valType:"string",editType:"layoutstyle"},font:r6({editType:"layoutstyle"}),editType:"layoutstyle"},xref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle"},yref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle"},x:{valType:"number",min:0,max:1,dflt:.5,editType:"layoutstyle"},y:{valType:"number",min:0,max:1,dflt:"auto",editType:"layoutstyle"},xanchor:{valType:"enumerated",dflt:"auto",values:["auto","left","center","right"],editType:"layoutstyle"},yanchor:{valType:"enumerated",dflt:"auto",values:["auto","top","middle","bottom"],editType:"layoutstyle"},pad:mL(rfe({editType:"layoutstyle"}),{}),automargin:{valType:"boolean",dflt:!1,editType:"plot"},editType:"layoutstyle"},uniformtext:{mode:{valType:"enumerated",values:[!1,"hide","show"],dflt:!1,editType:"plot"},minsize:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"},autosize:{valType:"boolean",dflt:!1,editType:"none"},width:{valType:"number",min:10,dflt:700,editType:"plot"},height:{valType:"number",min:10,dflt:450,editType:"plot"},minreducedwidth:{valType:"number",min:2,dflt:64,editType:"plot"},minreducedheight:{valType:"number",min:2,dflt:64,editType:"plot"},margin:{l:{valType:"number",min:0,dflt:80,editType:"plot"},r:{valType:"number",min:0,dflt:80,editType:"plot"},t:{valType:"number",min:0,dflt:100,editType:"plot"},b:{valType:"number",min:0,dflt:80,editType:"plot"},pad:{valType:"number",min:0,dflt:0,editType:"plot"},autoexpand:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},computed:{valType:"any",editType:"none"},paper_bgcolor:{valType:"color",dflt:Jy.background,editType:"plot"},plot_bgcolor:{valType:"color",dflt:Jy.background,editType:"layoutstyle"},autotypenumbers:{valType:"enumerated",values:["convert types","strict"],dflt:"convert types",editType:"calc"},separators:{valType:"string",editType:"plot"},showlegend:{valType:"boolean",editType:"legend"},colorway:{valType:"colorlist",dflt:Jy.defaults,editType:"calc"},datarevision:{valType:"any",editType:"calc"},uirevision:{valType:"any",editType:"none"},editrevision:{valType:"any",editType:"none"},selectionrevision:{valType:"any",editType:"none"},template:{valType:"any",editType:"calc"},newshape:dL.newshape,activeshape:dL.activeshape,newselection:pL.newselection,activeselection:pL.activeselection,meta:{valType:"any",arrayOk:!0,editType:"plot"},transition:mL({},efe.transition,{editType:"none"})}});var gL=B(()=>{(function(){if(!document.getElementById("ce8d464691048653ffe3a57c6c18ab566e8366f186677868cf724621a857b4fe")){var e=document.createElement("style");e.id="ce8d464691048653ffe3a57c6c18ab566e8366f186677868cf724621a857b4fe",e.textContent='.maplibregl-map{font:12px/20px Helvetica Neue,Arial,Helvetica,sans-serif;overflow:hidden;position:relative;-webkit-tap-highlight-color:rgb(0 0 0/0);-webkit-touch-callout:none}.maplibregl-canvas{position:absolute;left:0;top:0}.maplibregl-map:fullscreen{width:100%;height:100%}.maplibregl-ctrl-group button.maplibregl-ctrl-compass{touch-action:none}.maplibregl-canvas-container.maplibregl-interactive,.maplibregl-ctrl-group button.maplibregl-ctrl-compass{cursor:grab;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-canvas-container.maplibregl-interactive.maplibregl-track-pointer{cursor:pointer}.maplibregl-canvas-container.maplibregl-interactive:active,.maplibregl-ctrl-group button.maplibregl-ctrl-compass:active{cursor:grabbing}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-canvas-container.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:pinch-zoom}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:none}.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures,.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-ctrl-bottom-left,.maplibregl-ctrl-bottom-right,.maplibregl-ctrl-top-left,.maplibregl-ctrl-top-right{position:absolute;pointer-events:none;z-index:2}.maplibregl-ctrl-top-left{top:0;left:0}.maplibregl-ctrl-top-right{top:0;right:0}.maplibregl-ctrl-bottom-left{bottom:0;left:0}.maplibregl-ctrl-bottom-right{right:0;bottom:0}.maplibregl-ctrl{clear:both;pointer-events:auto;transform:translate(0)}.maplibregl-ctrl-top-left .maplibregl-ctrl{margin:10px 0 0 10px;float:left}.maplibregl-ctrl-top-right .maplibregl-ctrl{margin:10px 10px 0 0;float:right}.maplibregl-ctrl-bottom-left .maplibregl-ctrl{margin:0 0 10px 10px;float:left}.maplibregl-ctrl-bottom-right .maplibregl-ctrl{margin:0 10px 10px 0;float:right}.maplibregl-ctrl-group{border-radius:4px;background:#fff}.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px rgba(0,0,0,.1)}@media (forced-colors:active){.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px ButtonText}}.maplibregl-ctrl-group button{width:29px;height:29px;display:block;padding:0;outline:none;border:0;box-sizing:border-box;background-color:transparent;cursor:pointer}.maplibregl-ctrl button{-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-ctrl-group button+button{border-top:1px solid #ddd}.maplibregl-ctrl button .maplibregl-ctrl-icon{display:block;width:100%;height:100%;background-repeat:no-repeat;background-position:50%}@media (forced-colors:active){.maplibregl-ctrl-icon{background-color:transparent}.maplibregl-ctrl-group button+button{border-top:1px solid ButtonText}}.maplibregl-ctrl button::-moz-focus-inner{border:0;padding:0}.maplibregl-ctrl-attrib-button:focus,.maplibregl-ctrl-group button:focus{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl button:disabled{cursor:not-allowed}.maplibregl-ctrl button:disabled .maplibregl-ctrl-icon{opacity:.25}@media (hover:hover){.maplibregl-ctrl button:not(:disabled):hover{background-color:rgba(0,0,0,.05)}}.maplibregl-ctrl button:not(:disabled):active{background-color:rgba(0,0,0,.05)}.maplibregl-ctrl-group button:focus:focus-visible{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl-group button:focus:not(:focus-visible){box-shadow:none}.maplibregl-ctrl-group button:focus:first-child{border-radius:4px 4px 0 0}.maplibregl-ctrl-group button:focus:last-child{border-radius:0 0 4px 4px}.maplibregl-ctrl-group button:focus:only-child{border-radius:inherit}.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M10%2013c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h9c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M14.5%208.5c-.75%200-1.5.75-1.5%201.5v3h-3c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h3v3c0%20.75.75%201.5%201.5%201.5S16%2019.75%2016%2019v-3h3c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013h-3v-3c0-.75-.75-1.5-1.5-1.5%22%2F%3E%3C%2Fsvg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M10%2013c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h9c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M14.5%208.5c-.75%200-1.5.75-1.5%201.5v3h-3c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h3v3c0%20.75.75%201.5%201.5%201.5S16%2019.75%2016%2019v-3h3c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013h-3v-3c0-.75-.75-1.5-1.5-1.5%22%2F%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M10%2013c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h9c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M14.5%208.5c-.75%200-1.5.75-1.5%201.5v3h-3c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h3v3c0%20.75.75%201.5%201.5%201.5S16%2019.75%2016%2019v-3h3c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013h-3v-3c0-.75-.75-1.5-1.5-1.5%22%2F%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M24%2016v5.5c0%201.75-.75%202.5-2.5%202.5H16v-1l3-1.5-4-5.5%201-1%205.5%204%201.5-3zM6%2016l1.5%203%205.5-4%201%201-4%205.5%203%201.5v1H7.5C5.75%2024%205%2023.25%205%2021.5V16zm7-11v1l-3%201.5%204%205.5-1%201-5.5-4L6%2013H5V7.5C5%205.75%205.75%205%207.5%205zm11%202.5c0-1.75-.75-2.5-2.5-2.5H16v1l3%201.5-4%205.5%201%201%205.5-4%201.5%203h1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M18.5%2016c-1.75%200-2.5.75-2.5%202.5V24h1l1.5-3%205.5%204%201-1-4-5.5%203-1.5v-1zM13%2018.5c0-1.75-.75-2.5-2.5-2.5H5v1l3%201.5L4%2024l1%201%205.5-4%201.5%203h1zm3-8c0%201.75.75%202.5%202.5%202.5H24v-1l-3-1.5L25%205l-1-1-5.5%204L17%205h-1zM10.5%2013c1.75%200%202.5-.75%202.5-2.5V5h-1l-1.5%203L5%204%204%205l4%205.5L5%2012v1z%22%2F%3E%3C%2Fsvg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M24%2016v5.5c0%201.75-.75%202.5-2.5%202.5H16v-1l3-1.5-4-5.5%201-1%205.5%204%201.5-3zM6%2016l1.5%203%205.5-4%201%201-4%205.5%203%201.5v1H7.5C5.75%2024%205%2023.25%205%2021.5V16zm7-11v1l-3%201.5%204%205.5-1%201-5.5-4L6%2013H5V7.5C5%205.75%205.75%205%207.5%205zm11%202.5c0-1.75-.75-2.5-2.5-2.5H16v1l3%201.5-4%205.5%201%201%205.5-4%201.5%203h1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M18.5%2016c-1.75%200-2.5.75-2.5%202.5V24h1l1.5-3%205.5%204%201-1-4-5.5%203-1.5v-1zM13%2018.5c0-1.75-.75-2.5-2.5-2.5H5v1l3%201.5L4%2024l1%201%205.5-4%201.5%203h1zm3-8c0%201.75.75%202.5%202.5%202.5H24v-1l-3-1.5L25%205l-1-1-5.5%204L17%205h-1zM10.5%2013c1.75%200%202.5-.75%202.5-2.5V5h-1l-1.5%203L5%204%204%205l4%205.5L5%2012v1z%22%2F%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M24%2016v5.5c0%201.75-.75%202.5-2.5%202.5H16v-1l3-1.5-4-5.5%201-1%205.5%204%201.5-3zM6%2016l1.5%203%205.5-4%201%201-4%205.5%203%201.5v1H7.5C5.75%2024%205%2023.25%205%2021.5V16zm7-11v1l-3%201.5%204%205.5-1%201-5.5-4L6%2013H5V7.5C5%205.75%205.75%205%207.5%205zm11%202.5c0-1.75-.75-2.5-2.5-2.5H16v1l3%201.5-4%205.5%201%201%205.5-4%201.5%203h1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M18.5%2016c-1.75%200-2.5.75-2.5%202.5V24h1l1.5-3%205.5%204%201-1-4-5.5%203-1.5v-1zM13%2018.5c0-1.75-.75-2.5-2.5-2.5H5v1l3%201.5L4%2024l1%201%205.5-4%201.5%203h1zm3-8c0%201.75.75%202.5%202.5%202.5H24v-1l-3-1.5L25%205l-1-1-5.5%204L17%205h-1zM10.5%2013c1.75%200%202.5-.75%202.5-2.5V5h-1l-1.5%203L5%204%204%205l4%205.5L5%2012v1z%22%2F%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22m10.5%2014%204-8%204%208z%22%2F%3E%3Cpath%20fill%3D%22%23ccc%22%20d%3D%22m10.5%2016%204%208%204-8z%22%2F%3E%3C%2Fsvg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22m10.5%2014%204-8%204%208z%22%2F%3E%3Cpath%20fill%3D%22%23ccc%22%20d%3D%22m10.5%2016%204%208%204-8z%22%2F%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22m10.5%2014%204-8%204%208z%22%2F%3E%3Cpath%20fill%3D%22%23ccc%22%20d%3D%22m10.5%2016%204%208%204-8z%22%2F%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-globe .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2222%22%20height%3D%2222%22%20fill%3D%22none%22%20stroke%3D%22%23333%22%20viewBox%3D%220%200%2022%2022%22%3E%3Ccircle%20cx%3D%2211%22%20cy%3D%2211%22%20r%3D%228.5%22%2F%3E%3Cpath%20d%3D%22M17.5%2011c0%204.819-3.02%208.5-6.5%208.5S4.5%2015.819%204.5%2011%207.52%202.5%2011%202.5s6.5%203.681%206.5%208.5Z%22%2F%3E%3Cpath%20d%3D%22M13.5%2011c0%202.447-.331%204.64-.853%206.206-.262.785-.562%201.384-.872%201.777-.314.399-.58.517-.775.517s-.461-.118-.775-.517c-.31-.393-.61-.992-.872-1.777C8.831%2015.64%208.5%2013.446%208.5%2011s.331-4.64.853-6.206c.262-.785.562-1.384.872-1.777.314-.399.58-.517.775-.517s.461.118.775.517c.31.393.61.992.872%201.777.522%201.565.853%203.76.853%206.206Z%22%2F%3E%3Cpath%20d%3D%22M11%207.5c-1.909%200-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3%201.3%200%200%201-.224-.138q.07-.058.224-.138c.299-.151.763-.302%201.379-.434C7.378%205.666%209.091%205.5%2011%205.5s3.622.166%204.845.428c.616.132%201.08.283%201.379.434.105.053.177.1.224.138q-.07.058-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm0%209c-1.909%200-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3%201.3%200%200%201-.224-.138%201.3%201.3%200%200%201%20.224-.138c.299-.151.763-.302%201.379-.434C7.378%2014.666%209.091%2014.5%2011%2014.5s3.622.166%204.845.428c.616.132%201.08.283%201.379.434.105.053.177.1.224.138a1.3%201.3%200%200%201-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm0-4c-2.46%200-4.672-.222-6.255-.574-.796-.177-1.406-.38-1.805-.59a1.5%201.5%200%200%201-.39-.272.3.3%200%200%201-.047-.064.3.3%200%200%201%20.048-.064c.066-.073.189-.167.389-.272.399-.21%201.009-.413%201.805-.59C6.328%209.722%208.54%209.5%2011%209.5s4.672.222%206.256.574c.795.177%201.405.38%201.804.59.2.105.323.2.39.272a.3.3%200%200%201%20.047.064.3.3%200%200%201-.048.064%201.4%201.4%200%200%201-.389.272c-.399.21-1.009.413-1.804.59-1.584.352-3.796.574-6.256.574Zm-8.501-1.51v.002zm0%20.018v.002zm17.002.002v-.002zm0-.018v-.002z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-globe-enabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2222%22%20height%3D%2222%22%20fill%3D%22none%22%20stroke%3D%22%2333b5e5%22%20viewBox%3D%220%200%2022%2022%22%3E%3Ccircle%20cx%3D%2211%22%20cy%3D%2211%22%20r%3D%228.5%22%2F%3E%3Cpath%20d%3D%22M17.5%2011c0%204.819-3.02%208.5-6.5%208.5S4.5%2015.819%204.5%2011%207.52%202.5%2011%202.5s6.5%203.681%206.5%208.5Z%22%2F%3E%3Cpath%20d%3D%22M13.5%2011c0%202.447-.331%204.64-.853%206.206-.262.785-.562%201.384-.872%201.777-.314.399-.58.517-.775.517s-.461-.118-.775-.517c-.31-.393-.61-.992-.872-1.777C8.831%2015.64%208.5%2013.446%208.5%2011s.331-4.64.853-6.206c.262-.785.562-1.384.872-1.777.314-.399.58-.517.775-.517s.461.118.775.517c.31.393.61.992.872%201.777.522%201.565.853%203.76.853%206.206Z%22%2F%3E%3Cpath%20d%3D%22M11%207.5c-1.909%200-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3%201.3%200%200%201-.224-.138q.07-.058.224-.138c.299-.151.763-.302%201.379-.434C7.378%205.666%209.091%205.5%2011%205.5s3.622.166%204.845.428c.616.132%201.08.283%201.379.434.105.053.177.1.224.138q-.07.058-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm0%209c-1.909%200-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3%201.3%200%200%201-.224-.138%201.3%201.3%200%200%201%20.224-.138c.299-.151.763-.302%201.379-.434C7.378%2014.666%209.091%2014.5%2011%2014.5s3.622.166%204.845.428c.616.132%201.08.283%201.379.434.105.053.177.1.224.138a1.3%201.3%200%200%201-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm0-4c-2.46%200-4.672-.222-6.255-.574-.796-.177-1.406-.38-1.805-.59a1.5%201.5%200%200%201-.39-.272.3.3%200%200%201-.047-.064.3.3%200%200%201%20.048-.064c.066-.073.189-.167.389-.272.399-.21%201.009-.413%201.805-.59C6.328%209.722%208.54%209.5%2011%209.5s4.672.222%206.256.574c.795.177%201.405.38%201.804.59.2.105.323.2.39.272a.3.3%200%200%201%20.047.064.3.3%200%200%201-.048.064%201.4%201.4%200%200%201-.389.272c-.399.21-1.009.413-1.804.59-1.584.352-3.796.574-6.256.574Zm-8.501-1.51v.002zm0%20.018v.002zm17.002.002v-.002zm0-.018v-.002z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-terrain .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2222%22%20height%3D%2222%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2022%2022%22%3E%3Cpath%20d%3D%22m1.754%2013.406%204.453-4.851%203.09%203.09%203.281%203.277.969-.969-3.309-3.312%203.844-4.121%206.148%206.886h1.082v-.855l-7.207-8.07-4.84%205.187L6.169%206.57l-5.48%205.965v.871ZM.688%2016.844h20.625v1.375H.688Zm0%200%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-terrain-enabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2222%22%20height%3D%2222%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2022%2022%22%3E%3Cpath%20d%3D%22m1.754%2013.406%204.453-4.851%203.09%203.09%203.281%203.277.969-.969-3.309-3.312%203.844-4.121%206.148%206.886h1.082v-.855l-7.207-8.07-4.84%205.187L6.169%206.57l-5.48%205.965v.871ZM.688%2016.844h20.625v1.375H.688Zm0%200%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23aaa%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3Cpath%20fill%3D%22red%22%20d%3D%22m14%205%201%201-9%209-1-1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23e58978%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23e54e33%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-waiting .maplibregl-ctrl-icon{animation:maplibregl-spin 2s linear infinite}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23999%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3Cpath%20fill%3D%22red%22%20d%3D%22m14%205%201%201-9%209-1-1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23e58978%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23e54e33%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23666%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3Cpath%20fill%3D%22red%22%20d%3D%22m14%205%201%201-9%209-1-1z%22%2F%3E%3C%2Fsvg%3E")}}@keyframes maplibregl-spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}a.maplibregl-ctrl-logo{width:88px;height:23px;margin:0 0 -4px -4px;display:block;background-repeat:no-repeat;cursor:pointer;overflow:hidden;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2288%22%20height%3D%2223%22%20fill%3D%22none%22%3E%3Cpath%20fill%3D%22%23000%22%20fill-opacity%3D%22.4%22%20fill-rule%3D%22evenodd%22%20d%3D%22M17.408%2016.796h-1.827l2.501-12.095h.198l3.324%206.533.988%202.19.988-2.19%203.258-6.533h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.929%205.644h-.098l-2.914-5.644-.757-1.71-.345%201.71zm1.958-3.42-.726%203.663a1.255%201.255%200%200%201-1.232%201.011h-1.827a1.255%201.255%200%200%201-1.229-1.509l2.501-12.095a1.255%201.255%200%200%201%201.23-1.001h.197a1.25%201.25%200%200%201%201.12.685l3.19%206.273%203.125-6.263a1.25%201.25%200%200%201%201.123-.695h.181a1.255%201.255%200%200%201%201.227.991l1.443%206.71a5%205%200%200%201%20.314-.787l.009-.016a4.6%204.6%200%200%201%201.777-1.887c.782-.46%201.668-.667%202.611-.667a4.6%204.6%200%200%201%201.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255%201.255%200%200%201%201.212.925%201.255%201.255%200%200%201%201.212-.925h1.711c.284%200%20.545.094.755.252.613-.3%201.312-.45%202.075-.45%201.356%200%202.557.445%203.482%201.4q.47.48.763%201.064V4.701a1.255%201.255%200%200%201%201.255-1.255h1.86A1.255%201.255%200%200%201%2054.44%204.7v9.194h2.217c.19%200%20.37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42%202.42%200%200%201-.682-1.71c0-.665.267-1.253.735-1.7a2.45%202.45%200%200%201%201.722-.674%202.43%202.43%200%200%201%201.705.675q.318.302.504.683V4.7a1.255%201.255%200%200%201%201.255-1.255h1.744A1.255%201.255%200%200%201%2065.812%204.7v3.335a4.8%204.8%200%200%201%201.526-.246c.938%200%201.817.214%202.59.69a4.47%204.47%200%200%201%201.67%201.743v-.98a1.255%201.255%200%200%201%201.256-1.256h1.777c.233%200%20.451.064.639.174a3.4%203.4%200%200%201%201.567-.372c.346%200%20.861.02%201.285.232a1.25%201.25%200%200%201%20.689%201.004%204.7%204.7%200%200%201%20.853-.588c.795-.44%201.675-.647%202.61-.647%201.385%200%202.65.39%203.525%201.396.836.938%201.168%202.173%201.168%203.528q-.001.515-.056%201.051a1.255%201.255%200%200%201-.947%201.09l.408.952a1.255%201.255%200%200%201-.477%201.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06%200-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8%205.8%200%200%201-.548-2.512q0-.429.053-.843a1.3%201.3%200%200%201-.333-.086l-.166-.004c-.223%200-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255%201.255%200%200%201-1.256%201.256h-1.777a1.255%201.255%200%200%201-1.256-1.256V15.69l-.032.057a4.8%204.8%200%200%201-1.86%201.833%205.04%205.04%200%200%201-2.484.634%204.5%204.5%200%200%201-1.935-.424%201.25%201.25%200%200%201-.764.258h-1.71a1.255%201.255%200%200%201-1.256-1.255V7.687a2.4%202.4%200%200%201-.428.625c.253.23.412.561.412.93v7.553a1.255%201.255%200%200%201-1.256%201.255h-1.843a1.25%201.25%200%200%201-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255%201.255%200%200%201-1.256-1.255v-1.251l-.061.117a4.7%204.7%200%200%201-1.782%201.884%204.77%204.77%200%200%201-2.485.67%205.6%205.6%200%200%201-1.485-.188l.009%202.764a1.255%201.255%200%200%201-1.255%201.259h-1.729a1.255%201.255%200%200%201-1.255-1.255v-3.537a1.255%201.255%200%200%201-1.167.793h-1.679a1.25%201.25%200%200%201-.77-.263%204.5%204.5%200%200%201-1.945.429c-.885%200-1.724-.21-2.495-.632l-.017-.01a5%205%200%200%201-1.081-.836%201.255%201.255%200%200%201-1.254%201.312h-1.81a1.255%201.255%200%200%201-1.228-.99l-.782-3.625-2.044%203.939a1.25%201.25%200%200%201-1.115.676h-.098a1.25%201.25%200%200%201-1.116-.68l-2.061-3.994zM35.92%2016.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033%201.332h1.678V9.242h-1.694l-.033%201.267q-.133-.329-.526-.658l-.032-.028a3.2%203.2%200%200%200-.668-.428l-.27-.12a3.3%203.3%200%200%200-1.235-.23q-1.136-.001-1.974.493a3.36%203.36%200%200%200-1.3%201.382q-.445.89-.444%202.074%200%201.2.51%202.107a3.8%203.8%200%200%200%201.382%201.381%203.9%203.9%200%200%200%201.893.477q.795%200%201.455-.33zm-2.789-5.38q-.576.675-.575%201.762%200%201.102.559%201.794.576.675%201.645.675a2.25%202.25%200%200%200%20.934-.19%202.2%202.2%200%200%200%20.468-.29l.178-.161a2.2%202.2%200%200%200%20.397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2%202.2%200%200%200-.633-.709l-.13-.086-.047-.028a2.1%202.1%200%200%200-1.073-.285q-1.052%200-1.629.692zm2.316%202.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96%200%200%200-.353-.389.85.85%200%200%200-.464-.127c-.4%200-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945%200%20.506.122.801.27.99.097.11.266.224.68.224.303%200%20.504-.09.687-.269zm7.545%201.705a2.6%202.6%200%200%200%20.331.423q.319.33.755.548l.173.074q.65.255%201.49.255%201.02%200%201.844-.493a3.45%203.45%200%200%200%201.316-1.4q.493-.904.493-2.089%200-1.909-.988-2.913-.988-1.02-2.584-1.02-.898%200-1.575.347a3%203%200%200%200-.415.262l-.199.166a3.4%203.4%200%200%200-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296%201.119.297%201.07%200%201.645-.675.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.435%200-.835.16a2%202%200%200%200-.284.136%202%202%200%200%200-.363.254%202.2%202.2%200%200%200-.46.569l-.082.162a2.6%202.6%200%200%200-.213%201.072v.115q0%20.707.296%201.267l.135.211zm.964-.818a1.1%201.1%200%200%200%20.367.385.94.94%200%200%200%20.476.118c.423%200%20.59-.117.687-.23.159-.194.28-.478.28-.95%200-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1%201%200%200%200-.503.135l-.012.007a.86.86%200%200%200-.335.343c-.073.133-.132.324-.132.614v.115a1.4%201.4%200%200%200%20.14.66zm15.7-6.222q.347-.346.346-.856a1.05%201.05%200%200%200-.345-.79%201.18%201.18%200%200%200-.84-.329q-.51%200-.855.33a1.05%201.05%200%200%200-.346.79q0%20.51.346.855.345.346.856.346.51%200%20.839-.346zm4.337%209.314.033-1.332q.191.403.59.747l.098.081a4%204%200%200%200%20.316.224l.223.122a3.2%203.2%200%200%200%201.44.322%203.8%203.8%200%200%200%201.875-.477%203.5%203.5%200%200%200%201.382-1.366q.527-.89.526-2.09%200-1.184-.444-2.073a3.24%203.24%200%200%200-1.283-1.399q-.823-.51-1.942-.51a3.5%203.5%200%200%200-1.527.344l-.086.043-.165.09a3%203%200%200%200-.33.214q-.432.315-.656.707a2%202%200%200%200-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5%202.5%200%200%200%20.566.7q.117.098.245.18l.144.08a2.1%202.1%200%200%200%20.975.232q1.07%200%201.645-.675.576-.69.576-1.778%200-1.102-.576-1.777-.56-.691-1.645-.692a2.2%202.2%200%200%200-1.015.235q-.22.113-.415.282l-.15.142a2.1%202.1%200%200%200-.42.594q-.223.479-.223%201.1v.115q0%20.705.293%201.26zm2.616-.293c.157-.191.28-.479.28-.967%200-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87%200%200%200-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0%20.285.057.499.144.669a1.1%201.1%200%200%200%20.367.405c.137.082.28.123.455.123.423%200%20.59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493%200%20.642.099l.247-1.794q-.196-.099-.717-.099a2.3%202.3%200%200%200-.545.063%202%202%200%200%200-.411.148%202.2%202.2%200%200%200-.4.249%202.5%202.5%200%200%200-.485.499%202.7%202.7%200%200%200-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5%201.5%200%200%201%20.466-.636%202.5%202.5%200%200%201%20.399-.253%202%202%200%200%201%20.224-.099zm9.784%202.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46%203.46%200%200%200-1.4%201.382q-.493.906-.493%202.106%200%201.07.428%201.975.428.89%201.332%201.432.906.526%202.255.526.973%200%201.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954%200-1.497-.444a1.6%201.6%200%200%201-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1%201%200%200%200-.156-.176q-.46-.428-1.316-.428-.986%200-1.494.604-.379.45-.494%201.234zm-27.053%202.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z%22%2F%3E%3Cpath%20fill%3D%22%23fff%22%20d%3D%22m19.63%2011.151-.757-1.71-.345%201.71-1.12%205.644h-1.827L18.083%204.7h.197l3.325%206.533.988%202.19.988-2.19L26.839%204.7h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.93%205.644h-.098l-2.913-5.644zm14.836%205.81q-1.02%200-1.893-.478a3.8%203.8%200%200%201-1.381-1.382q-.51-.906-.51-2.106%200-1.185.444-2.074a3.36%203.36%200%200%201%201.3-1.382q.839-.494%201.974-.494a3.3%203.3%200%200%201%201.234.231%203.3%203.3%200%200%201%20.97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02%201.053a3.17%203.17%200%200%201-1.662.444zm.296-1.482q.938%200%201.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2%202.2%200%200%200-.807-.872%202.1%202.1%200%200%200-1.119-.313q-1.053%200-1.629.692-.575.675-.575%201.76%200%201.103.559%201.795.577.675%201.645.675zm6.521-6.237h1.711v1.4q.906-1.597%202.83-1.597%201.596%200%202.584%201.02.988%201.005.988%202.914%200%201.185-.493%202.09a3.46%203.46%200%200%201-1.316%201.399%203.5%203.5%200%200%201-1.844.493q-.954%200-1.662-.329a2.67%202.67%200%200%201-1.086-.97l.017%205.134h-1.728zm4.048%206.22q1.07%200%201.645-.674.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.592%200-1.12.296-.51.28-.822.823-.296.527-.296%201.234v.115q0%20.708.296%201.267.313.543.823.855.51.296%201.119.297z%22%2F%3E%3Cpath%20fill%3D%22%23e1e3e9%22%20d%3D%22M51.325%204.7h1.86v10.45h3.473v1.646h-5.333zm7.12%204.542h1.843v7.553h-1.843zm.905-1.415a1.16%201.16%200%200%201-.856-.346%201.17%201.17%200%200%201-.346-.856%201.05%201.05%200%200%201%20.346-.79q.346-.329.856-.329.494%200%20.839.33a1.05%201.05%200%200%201%20.345.79%201.16%201.16%200%200%201-.345.855q-.33.346-.84.346zm7.875%209.133a3.17%203.17%200%200%201-1.662-.444q-.723-.46-1.004-1.053l-.033%201.332h-1.71V4.701h1.743v4.657l-.082%201.283q.279-.658%201.086-1.119a3.5%203.5%200%200%201%201.778-.477q1.119%200%201.942.51a3.24%203.24%200%200%201%201.283%201.4q.445.888.444%202.072%200%201.201-.526%202.09a3.5%203.5%200%200%201-1.382%201.366%203.8%203.8%200%200%201-1.876.477zm-.296-1.481q1.069%200%201.645-.675.577-.69.577-1.778%200-1.102-.577-1.776-.56-.691-1.645-.692a2.12%202.12%200%200%200-1.58.659q-.642.641-.642%201.694v.115q0%20.71.296%201.267a2.4%202.4%200%200%200%20.807.872%202.1%202.1%200%200%200%201.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14%202.14%200%200%201%201.349-.46q.527%200%20.724.098l-.247%201.794q-.149-.099-.642-.099-.774%200-1.416.494-.626.493-.626%201.58v3.883h-1.777V9.242zm9.534%207.718q-1.35%200-2.255-.526-.904-.543-1.332-1.432a4.6%204.6%200%200%201-.428-1.975q0-1.2.493-2.106a3.46%203.46%200%200%201%201.4-1.382q.889-.495%202.007-.494%201.744%200%202.584.97.855.956.856%202.7%200%20.444-.05.92h-5.43q.18%201.005.708%201.45.542.443%201.497.443.79%200%201.3-.131a4%204%200%200%200%20.938-.362l.542%201.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728%200-1.991%201.86z%22%2F%3E%3Cpath%20d%3D%22M5.074%2015.948a.484.657%200%200%200-.486.659v1.84a.484.657%200%200%200%20.486.659h4.101a.484.657%200%200%200%20.486-.659v-1.84a.484.657%200%200%200-.486-.659zm3.56%201.16H5.617v.838h3.017z%22%20style%3D%22fill%3A%23fff%3Bfill-rule%3Aevenodd%3Bstroke-width%3A1.03600001%22%2F%3E%3Cg%20style%3D%22stroke-width%3A1.12603545%22%3E%3Cpath%20d%3D%22M-9.408-1.416c-3.833-.025-7.056%202.912-7.08%206.615-.02%203.08%201.653%204.832%203.107%206.268.903.892%201.721%201.74%202.32%202.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87%201.87%200%200%200-.362%201.121l-.011%201.877c-.003.402.104.787.347%201.125.244.338.688.653%201.23.656l4.142.028c.542.003.99-.306%201.238-.641a1.87%201.87%200%200%200%20.363-1.121l.012-1.875a1.87%201.87%200%200%200-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145%201.425-1.983%202.348-2.87%201.473-1.414%203.18-3.149%203.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006%201.1v.002c3.274.02%205.92%202.532%205.9%205.6-.017%202.706-1.39%204.026-2.863%205.44-1.034.994-2.118%202.033-2.814%203.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34%200%200%201-.226.084.34.34%200%200%201-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067%202.7-5.545%205.975-5.523m-.02%202.826c-1.62-.01-2.944%201.315-2.955%202.96-.01%201.646%201.295%202.988%202.916%202.999h.002c1.621.01%202.943-1.316%202.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005%201.1c1.017.006%201.829.83%201.822%201.89s-.83%201.874-1.848%201.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874%201.848-1.868m-2.155%2011.857%204.14.025c.271.002.49.305.487.676l-.013%201.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668%22%20style%3D%22color%3A%23000%3Bfont-style%3Anormal%3Bfont-variant%3Anormal%3Bfont-weight%3A400%3Bfont-stretch%3Anormal%3Bfont-size%3Amedium%3Bline-height%3Anormal%3Bfont-family%3Asans-serif%3Bfont-variant-ligatures%3Anormal%3Bfont-variant-position%3Anormal%3Bfont-variant-caps%3Anormal%3Bfont-variant-numeric%3Anormal%3Bfont-variant-alternates%3Anormal%3Bfont-feature-settings%3Anormal%3Btext-indent%3A0%3Btext-align%3Astart%3Btext-decoration%3Anone%3Btext-decoration-line%3Anone%3Btext-decoration-style%3Asolid%3Btext-decoration-color%3A%23000%3Bletter-spacing%3Anormal%3Bword-spacing%3Anormal%3Btext-transform%3Anone%3Bwriting-mode%3Alr-tb%3Bdirection%3Altr%3Btext-orientation%3Amixed%3Bdominant-baseline%3Aauto%3Bbaseline-shift%3Abaseline%3Btext-anchor%3Astart%3Bwhite-space%3Anormal%3Bshape-padding%3A0%3Bclip-rule%3Aevenodd%3Bdisplay%3Ainline%3Boverflow%3Avisible%3Bvisibility%3Avisible%3Bopacity%3A1%3Bisolation%3Aauto%3Bmix-blend-mode%3Anormal%3Bcolor-interpolation%3AsRGB%3Bcolor-interpolation-filters%3AlinearRGB%3Bsolid-color%3A%23000%3Bsolid-opacity%3A1%3Bvector-effect%3Anone%3Bfill%3A%23000%3Bfill-opacity%3A.4%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-linecap%3Abutt%3Bstroke-linejoin%3Amiter%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-dashoffset%3A0%3Bstroke-opacity%3A1%3Bcolor-rendering%3Aauto%3Bimage-rendering%3Aauto%3Bshape-rendering%3Aauto%3Btext-rendering%3Aauto%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-9.415-.316C-12.69-.338-15.37%202.14-15.39%205.207c-.017%202.716%201.326%204.041%202.78%205.477%201.013%201%202.081%202.055%202.78%203.67l.092.076a.34.34%200%200%200%20.225.086.34.34%200%200%200%20.227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6%201.78-2.64%202.814-3.634%201.473-1.414%202.847-2.733%202.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057%208.784c1.621.011%202.944-1.315%202.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945%201.315-2.955%202.96s1.295%202.989%202.916%203%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23e1e3e9%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-11.594%2015.465c-.27-.002-.492.297-.494.668l-.012%201.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23fff%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E")}a.maplibregl-ctrl-logo.maplibregl-compact{width:14px}@media (forced-colors:active){a.maplibregl-ctrl-logo{background-color:transparent;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2288%22%20height%3D%2223%22%20fill%3D%22none%22%3E%3Cpath%20fill%3D%22%23000%22%20fill-opacity%3D%22.4%22%20fill-rule%3D%22evenodd%22%20d%3D%22M17.408%2016.796h-1.827l2.501-12.095h.198l3.324%206.533.988%202.19.988-2.19%203.258-6.533h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.929%205.644h-.098l-2.914-5.644-.757-1.71-.345%201.71zm1.958-3.42-.726%203.663a1.255%201.255%200%200%201-1.232%201.011h-1.827a1.255%201.255%200%200%201-1.229-1.509l2.501-12.095a1.255%201.255%200%200%201%201.23-1.001h.197a1.25%201.25%200%200%201%201.12.685l3.19%206.273%203.125-6.263a1.25%201.25%200%200%201%201.123-.695h.181a1.255%201.255%200%200%201%201.227.991l1.443%206.71a5%205%200%200%201%20.314-.787l.009-.016a4.6%204.6%200%200%201%201.777-1.887c.782-.46%201.668-.667%202.611-.667a4.6%204.6%200%200%201%201.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255%201.255%200%200%201%201.212.925%201.255%201.255%200%200%201%201.212-.925h1.711c.284%200%20.545.094.755.252.613-.3%201.312-.45%202.075-.45%201.356%200%202.557.445%203.482%201.4q.47.48.763%201.064V4.701a1.255%201.255%200%200%201%201.255-1.255h1.86A1.255%201.255%200%200%201%2054.44%204.7v9.194h2.217c.19%200%20.37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42%202.42%200%200%201-.682-1.71c0-.665.267-1.253.735-1.7a2.45%202.45%200%200%201%201.722-.674%202.43%202.43%200%200%201%201.705.675q.318.302.504.683V4.7a1.255%201.255%200%200%201%201.255-1.255h1.744A1.255%201.255%200%200%201%2065.812%204.7v3.335a4.8%204.8%200%200%201%201.526-.246c.938%200%201.817.214%202.59.69a4.47%204.47%200%200%201%201.67%201.743v-.98a1.255%201.255%200%200%201%201.256-1.256h1.777c.233%200%20.451.064.639.174a3.4%203.4%200%200%201%201.567-.372c.346%200%20.861.02%201.285.232a1.25%201.25%200%200%201%20.689%201.004%204.7%204.7%200%200%201%20.853-.588c.795-.44%201.675-.647%202.61-.647%201.385%200%202.65.39%203.525%201.396.836.938%201.168%202.173%201.168%203.528q-.001.515-.056%201.051a1.255%201.255%200%200%201-.947%201.09l.408.952a1.255%201.255%200%200%201-.477%201.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06%200-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8%205.8%200%200%201-.548-2.512q0-.429.053-.843a1.3%201.3%200%200%201-.333-.086l-.166-.004c-.223%200-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255%201.255%200%200%201-1.256%201.256h-1.777a1.255%201.255%200%200%201-1.256-1.256V15.69l-.032.057a4.8%204.8%200%200%201-1.86%201.833%205.04%205.04%200%200%201-2.484.634%204.5%204.5%200%200%201-1.935-.424%201.25%201.25%200%200%201-.764.258h-1.71a1.255%201.255%200%200%201-1.256-1.255V7.687a2.4%202.4%200%200%201-.428.625c.253.23.412.561.412.93v7.553a1.255%201.255%200%200%201-1.256%201.255h-1.843a1.25%201.25%200%200%201-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255%201.255%200%200%201-1.256-1.255v-1.251l-.061.117a4.7%204.7%200%200%201-1.782%201.884%204.77%204.77%200%200%201-2.485.67%205.6%205.6%200%200%201-1.485-.188l.009%202.764a1.255%201.255%200%200%201-1.255%201.259h-1.729a1.255%201.255%200%200%201-1.255-1.255v-3.537a1.255%201.255%200%200%201-1.167.793h-1.679a1.25%201.25%200%200%201-.77-.263%204.5%204.5%200%200%201-1.945.429c-.885%200-1.724-.21-2.495-.632l-.017-.01a5%205%200%200%201-1.081-.836%201.255%201.255%200%200%201-1.254%201.312h-1.81a1.255%201.255%200%200%201-1.228-.99l-.782-3.625-2.044%203.939a1.25%201.25%200%200%201-1.115.676h-.098a1.25%201.25%200%200%201-1.116-.68l-2.061-3.994zM35.92%2016.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033%201.332h1.678V9.242h-1.694l-.033%201.267q-.133-.329-.526-.658l-.032-.028a3.2%203.2%200%200%200-.668-.428l-.27-.12a3.3%203.3%200%200%200-1.235-.23q-1.136-.001-1.974.493a3.36%203.36%200%200%200-1.3%201.382q-.445.89-.444%202.074%200%201.2.51%202.107a3.8%203.8%200%200%200%201.382%201.381%203.9%203.9%200%200%200%201.893.477q.795%200%201.455-.33zm-2.789-5.38q-.576.675-.575%201.762%200%201.102.559%201.794.576.675%201.645.675a2.25%202.25%200%200%200%20.934-.19%202.2%202.2%200%200%200%20.468-.29l.178-.161a2.2%202.2%200%200%200%20.397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2%202.2%200%200%200-.633-.709l-.13-.086-.047-.028a2.1%202.1%200%200%200-1.073-.285q-1.052%200-1.629.692zm2.316%202.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96%200%200%200-.353-.389.85.85%200%200%200-.464-.127c-.4%200-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945%200%20.506.122.801.27.99.097.11.266.224.68.224.303%200%20.504-.09.687-.269zm7.545%201.705a2.6%202.6%200%200%200%20.331.423q.319.33.755.548l.173.074q.65.255%201.49.255%201.02%200%201.844-.493a3.45%203.45%200%200%200%201.316-1.4q.493-.904.493-2.089%200-1.909-.988-2.913-.988-1.02-2.584-1.02-.898%200-1.575.347a3%203%200%200%200-.415.262l-.199.166a3.4%203.4%200%200%200-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296%201.119.297%201.07%200%201.645-.675.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.435%200-.835.16a2%202%200%200%200-.284.136%202%202%200%200%200-.363.254%202.2%202.2%200%200%200-.46.569l-.082.162a2.6%202.6%200%200%200-.213%201.072v.115q0%20.707.296%201.267l.135.211zm.964-.818a1.1%201.1%200%200%200%20.367.385.94.94%200%200%200%20.476.118c.423%200%20.59-.117.687-.23.159-.194.28-.478.28-.95%200-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1%201%200%200%200-.503.135l-.012.007a.86.86%200%200%200-.335.343c-.073.133-.132.324-.132.614v.115a1.4%201.4%200%200%200%20.14.66zm15.7-6.222q.347-.346.346-.856a1.05%201.05%200%200%200-.345-.79%201.18%201.18%200%200%200-.84-.329q-.51%200-.855.33a1.05%201.05%200%200%200-.346.79q0%20.51.346.855.345.346.856.346.51%200%20.839-.346zm4.337%209.314.033-1.332q.191.403.59.747l.098.081a4%204%200%200%200%20.316.224l.223.122a3.2%203.2%200%200%200%201.44.322%203.8%203.8%200%200%200%201.875-.477%203.5%203.5%200%200%200%201.382-1.366q.527-.89.526-2.09%200-1.184-.444-2.073a3.24%203.24%200%200%200-1.283-1.399q-.823-.51-1.942-.51a3.5%203.5%200%200%200-1.527.344l-.086.043-.165.09a3%203%200%200%200-.33.214q-.432.315-.656.707a2%202%200%200%200-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5%202.5%200%200%200%20.566.7q.117.098.245.18l.144.08a2.1%202.1%200%200%200%20.975.232q1.07%200%201.645-.675.576-.69.576-1.778%200-1.102-.576-1.777-.56-.691-1.645-.692a2.2%202.2%200%200%200-1.015.235q-.22.113-.415.282l-.15.142a2.1%202.1%200%200%200-.42.594q-.223.479-.223%201.1v.115q0%20.705.293%201.26zm2.616-.293c.157-.191.28-.479.28-.967%200-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87%200%200%200-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0%20.285.057.499.144.669a1.1%201.1%200%200%200%20.367.405c.137.082.28.123.455.123.423%200%20.59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493%200%20.642.099l.247-1.794q-.196-.099-.717-.099a2.3%202.3%200%200%200-.545.063%202%202%200%200%200-.411.148%202.2%202.2%200%200%200-.4.249%202.5%202.5%200%200%200-.485.499%202.7%202.7%200%200%200-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5%201.5%200%200%201%20.466-.636%202.5%202.5%200%200%201%20.399-.253%202%202%200%200%201%20.224-.099zm9.784%202.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46%203.46%200%200%200-1.4%201.382q-.493.906-.493%202.106%200%201.07.428%201.975.428.89%201.332%201.432.906.526%202.255.526.973%200%201.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954%200-1.497-.444a1.6%201.6%200%200%201-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1%201%200%200%200-.156-.176q-.46-.428-1.316-.428-.986%200-1.494.604-.379.45-.494%201.234zm-27.053%202.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z%22%2F%3E%3Cpath%20fill%3D%22%23fff%22%20d%3D%22m19.63%2011.151-.757-1.71-.345%201.71-1.12%205.644h-1.827L18.083%204.7h.197l3.325%206.533.988%202.19.988-2.19L26.839%204.7h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.93%205.644h-.098l-2.913-5.644zm14.836%205.81q-1.02%200-1.893-.478a3.8%203.8%200%200%201-1.381-1.382q-.51-.906-.51-2.106%200-1.185.444-2.074a3.36%203.36%200%200%201%201.3-1.382q.839-.494%201.974-.494a3.3%203.3%200%200%201%201.234.231%203.3%203.3%200%200%201%20.97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02%201.053a3.17%203.17%200%200%201-1.662.444zm.296-1.482q.938%200%201.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2%202.2%200%200%200-.807-.872%202.1%202.1%200%200%200-1.119-.313q-1.053%200-1.629.692-.575.675-.575%201.76%200%201.103.559%201.795.577.675%201.645.675zm6.521-6.237h1.711v1.4q.906-1.597%202.83-1.597%201.596%200%202.584%201.02.988%201.005.988%202.914%200%201.185-.493%202.09a3.46%203.46%200%200%201-1.316%201.399%203.5%203.5%200%200%201-1.844.493q-.954%200-1.662-.329a2.67%202.67%200%200%201-1.086-.97l.017%205.134h-1.728zm4.048%206.22q1.07%200%201.645-.674.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.592%200-1.12.296-.51.28-.822.823-.296.527-.296%201.234v.115q0%20.708.296%201.267.313.543.823.855.51.296%201.119.297z%22%2F%3E%3Cpath%20fill%3D%22%23e1e3e9%22%20d%3D%22M51.325%204.7h1.86v10.45h3.473v1.646h-5.333zm7.12%204.542h1.843v7.553h-1.843zm.905-1.415a1.16%201.16%200%200%201-.856-.346%201.17%201.17%200%200%201-.346-.856%201.05%201.05%200%200%201%20.346-.79q.346-.329.856-.329.494%200%20.839.33a1.05%201.05%200%200%201%20.345.79%201.16%201.16%200%200%201-.345.855q-.33.346-.84.346zm7.875%209.133a3.17%203.17%200%200%201-1.662-.444q-.723-.46-1.004-1.053l-.033%201.332h-1.71V4.701h1.743v4.657l-.082%201.283q.279-.658%201.086-1.119a3.5%203.5%200%200%201%201.778-.477q1.119%200%201.942.51a3.24%203.24%200%200%201%201.283%201.4q.445.888.444%202.072%200%201.201-.526%202.09a3.5%203.5%200%200%201-1.382%201.366%203.8%203.8%200%200%201-1.876.477zm-.296-1.481q1.069%200%201.645-.675.577-.69.577-1.778%200-1.102-.577-1.776-.56-.691-1.645-.692a2.12%202.12%200%200%200-1.58.659q-.642.641-.642%201.694v.115q0%20.71.296%201.267a2.4%202.4%200%200%200%20.807.872%202.1%202.1%200%200%200%201.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14%202.14%200%200%201%201.349-.46q.527%200%20.724.098l-.247%201.794q-.149-.099-.642-.099-.774%200-1.416.494-.626.493-.626%201.58v3.883h-1.777V9.242zm9.534%207.718q-1.35%200-2.255-.526-.904-.543-1.332-1.432a4.6%204.6%200%200%201-.428-1.975q0-1.2.493-2.106a3.46%203.46%200%200%201%201.4-1.382q.889-.495%202.007-.494%201.744%200%202.584.97.855.956.856%202.7%200%20.444-.05.92h-5.43q.18%201.005.708%201.45.542.443%201.497.443.79%200%201.3-.131a4%204%200%200%200%20.938-.362l.542%201.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728%200-1.991%201.86z%22%2F%3E%3Cpath%20d%3D%22M5.074%2015.948a.484.657%200%200%200-.486.659v1.84a.484.657%200%200%200%20.486.659h4.101a.484.657%200%200%200%20.486-.659v-1.84a.484.657%200%200%200-.486-.659zm3.56%201.16H5.617v.838h3.017z%22%20style%3D%22fill%3A%23fff%3Bfill-rule%3Aevenodd%3Bstroke-width%3A1.03600001%22%2F%3E%3Cg%20style%3D%22stroke-width%3A1.12603545%22%3E%3Cpath%20d%3D%22M-9.408-1.416c-3.833-.025-7.056%202.912-7.08%206.615-.02%203.08%201.653%204.832%203.107%206.268.903.892%201.721%201.74%202.32%202.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87%201.87%200%200%200-.362%201.121l-.011%201.877c-.003.402.104.787.347%201.125.244.338.688.653%201.23.656l4.142.028c.542.003.99-.306%201.238-.641a1.87%201.87%200%200%200%20.363-1.121l.012-1.875a1.87%201.87%200%200%200-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145%201.425-1.983%202.348-2.87%201.473-1.414%203.18-3.149%203.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006%201.1v.002c3.274.02%205.92%202.532%205.9%205.6-.017%202.706-1.39%204.026-2.863%205.44-1.034.994-2.118%202.033-2.814%203.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34%200%200%201-.226.084.34.34%200%200%201-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067%202.7-5.545%205.975-5.523m-.02%202.826c-1.62-.01-2.944%201.315-2.955%202.96-.01%201.646%201.295%202.988%202.916%202.999h.002c1.621.01%202.943-1.316%202.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005%201.1c1.017.006%201.829.83%201.822%201.89s-.83%201.874-1.848%201.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874%201.848-1.868m-2.155%2011.857%204.14.025c.271.002.49.305.487.676l-.013%201.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668%22%20style%3D%22color%3A%23000%3Bfont-style%3Anormal%3Bfont-variant%3Anormal%3Bfont-weight%3A400%3Bfont-stretch%3Anormal%3Bfont-size%3Amedium%3Bline-height%3Anormal%3Bfont-family%3Asans-serif%3Bfont-variant-ligatures%3Anormal%3Bfont-variant-position%3Anormal%3Bfont-variant-caps%3Anormal%3Bfont-variant-numeric%3Anormal%3Bfont-variant-alternates%3Anormal%3Bfont-feature-settings%3Anormal%3Btext-indent%3A0%3Btext-align%3Astart%3Btext-decoration%3Anone%3Btext-decoration-line%3Anone%3Btext-decoration-style%3Asolid%3Btext-decoration-color%3A%23000%3Bletter-spacing%3Anormal%3Bword-spacing%3Anormal%3Btext-transform%3Anone%3Bwriting-mode%3Alr-tb%3Bdirection%3Altr%3Btext-orientation%3Amixed%3Bdominant-baseline%3Aauto%3Bbaseline-shift%3Abaseline%3Btext-anchor%3Astart%3Bwhite-space%3Anormal%3Bshape-padding%3A0%3Bclip-rule%3Aevenodd%3Bdisplay%3Ainline%3Boverflow%3Avisible%3Bvisibility%3Avisible%3Bopacity%3A1%3Bisolation%3Aauto%3Bmix-blend-mode%3Anormal%3Bcolor-interpolation%3AsRGB%3Bcolor-interpolation-filters%3AlinearRGB%3Bsolid-color%3A%23000%3Bsolid-opacity%3A1%3Bvector-effect%3Anone%3Bfill%3A%23000%3Bfill-opacity%3A.4%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-linecap%3Abutt%3Bstroke-linejoin%3Amiter%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-dashoffset%3A0%3Bstroke-opacity%3A1%3Bcolor-rendering%3Aauto%3Bimage-rendering%3Aauto%3Bshape-rendering%3Aauto%3Btext-rendering%3Aauto%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-9.415-.316C-12.69-.338-15.37%202.14-15.39%205.207c-.017%202.716%201.326%204.041%202.78%205.477%201.013%201%202.081%202.055%202.78%203.67l.092.076a.34.34%200%200%200%20.225.086.34.34%200%200%200%20.227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6%201.78-2.64%202.814-3.634%201.473-1.414%202.847-2.733%202.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057%208.784c1.621.011%202.944-1.315%202.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945%201.315-2.955%202.96s1.295%202.989%202.916%203%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23e1e3e9%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-11.594%2015.465c-.27-.002-.492.297-.494.668l-.012%201.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23fff%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){a.maplibregl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2288%22%20height%3D%2223%22%20fill%3D%22none%22%3E%3Cpath%20fill%3D%22%23000%22%20fill-opacity%3D%22.4%22%20fill-rule%3D%22evenodd%22%20d%3D%22M17.408%2016.796h-1.827l2.501-12.095h.198l3.324%206.533.988%202.19.988-2.19%203.258-6.533h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.929%205.644h-.098l-2.914-5.644-.757-1.71-.345%201.71zm1.958-3.42-.726%203.663a1.255%201.255%200%200%201-1.232%201.011h-1.827a1.255%201.255%200%200%201-1.229-1.509l2.501-12.095a1.255%201.255%200%200%201%201.23-1.001h.197a1.25%201.25%200%200%201%201.12.685l3.19%206.273%203.125-6.263a1.25%201.25%200%200%201%201.123-.695h.181a1.255%201.255%200%200%201%201.227.991l1.443%206.71a5%205%200%200%201%20.314-.787l.009-.016a4.6%204.6%200%200%201%201.777-1.887c.782-.46%201.668-.667%202.611-.667a4.6%204.6%200%200%201%201.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255%201.255%200%200%201%201.212.925%201.255%201.255%200%200%201%201.212-.925h1.711c.284%200%20.545.094.755.252.613-.3%201.312-.45%202.075-.45%201.356%200%202.557.445%203.482%201.4q.47.48.763%201.064V4.701a1.255%201.255%200%200%201%201.255-1.255h1.86A1.255%201.255%200%200%201%2054.44%204.7v9.194h2.217c.19%200%20.37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42%202.42%200%200%201-.682-1.71c0-.665.267-1.253.735-1.7a2.45%202.45%200%200%201%201.722-.674%202.43%202.43%200%200%201%201.705.675q.318.302.504.683V4.7a1.255%201.255%200%200%201%201.255-1.255h1.744A1.255%201.255%200%200%201%2065.812%204.7v3.335a4.8%204.8%200%200%201%201.526-.246c.938%200%201.817.214%202.59.69a4.47%204.47%200%200%201%201.67%201.743v-.98a1.255%201.255%200%200%201%201.256-1.256h1.777c.233%200%20.451.064.639.174a3.4%203.4%200%200%201%201.567-.372c.346%200%20.861.02%201.285.232a1.25%201.25%200%200%201%20.689%201.004%204.7%204.7%200%200%201%20.853-.588c.795-.44%201.675-.647%202.61-.647%201.385%200%202.65.39%203.525%201.396.836.938%201.168%202.173%201.168%203.528q-.001.515-.056%201.051a1.255%201.255%200%200%201-.947%201.09l.408.952a1.255%201.255%200%200%201-.477%201.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06%200-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8%205.8%200%200%201-.548-2.512q0-.429.053-.843a1.3%201.3%200%200%201-.333-.086l-.166-.004c-.223%200-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255%201.255%200%200%201-1.256%201.256h-1.777a1.255%201.255%200%200%201-1.256-1.256V15.69l-.032.057a4.8%204.8%200%200%201-1.86%201.833%205.04%205.04%200%200%201-2.484.634%204.5%204.5%200%200%201-1.935-.424%201.25%201.25%200%200%201-.764.258h-1.71a1.255%201.255%200%200%201-1.256-1.255V7.687a2.4%202.4%200%200%201-.428.625c.253.23.412.561.412.93v7.553a1.255%201.255%200%200%201-1.256%201.255h-1.843a1.25%201.25%200%200%201-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255%201.255%200%200%201-1.256-1.255v-1.251l-.061.117a4.7%204.7%200%200%201-1.782%201.884%204.77%204.77%200%200%201-2.485.67%205.6%205.6%200%200%201-1.485-.188l.009%202.764a1.255%201.255%200%200%201-1.255%201.259h-1.729a1.255%201.255%200%200%201-1.255-1.255v-3.537a1.255%201.255%200%200%201-1.167.793h-1.679a1.25%201.25%200%200%201-.77-.263%204.5%204.5%200%200%201-1.945.429c-.885%200-1.724-.21-2.495-.632l-.017-.01a5%205%200%200%201-1.081-.836%201.255%201.255%200%200%201-1.254%201.312h-1.81a1.255%201.255%200%200%201-1.228-.99l-.782-3.625-2.044%203.939a1.25%201.25%200%200%201-1.115.676h-.098a1.25%201.25%200%200%201-1.116-.68l-2.061-3.994zM35.92%2016.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033%201.332h1.678V9.242h-1.694l-.033%201.267q-.133-.329-.526-.658l-.032-.028a3.2%203.2%200%200%200-.668-.428l-.27-.12a3.3%203.3%200%200%200-1.235-.23q-1.136-.001-1.974.493a3.36%203.36%200%200%200-1.3%201.382q-.445.89-.444%202.074%200%201.2.51%202.107a3.8%203.8%200%200%200%201.382%201.381%203.9%203.9%200%200%200%201.893.477q.795%200%201.455-.33zm-2.789-5.38q-.576.675-.575%201.762%200%201.102.559%201.794.576.675%201.645.675a2.25%202.25%200%200%200%20.934-.19%202.2%202.2%200%200%200%20.468-.29l.178-.161a2.2%202.2%200%200%200%20.397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2%202.2%200%200%200-.633-.709l-.13-.086-.047-.028a2.1%202.1%200%200%200-1.073-.285q-1.052%200-1.629.692zm2.316%202.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96%200%200%200-.353-.389.85.85%200%200%200-.464-.127c-.4%200-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945%200%20.506.122.801.27.99.097.11.266.224.68.224.303%200%20.504-.09.687-.269zm7.545%201.705a2.6%202.6%200%200%200%20.331.423q.319.33.755.548l.173.074q.65.255%201.49.255%201.02%200%201.844-.493a3.45%203.45%200%200%200%201.316-1.4q.493-.904.493-2.089%200-1.909-.988-2.913-.988-1.02-2.584-1.02-.898%200-1.575.347a3%203%200%200%200-.415.262l-.199.166a3.4%203.4%200%200%200-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296%201.119.297%201.07%200%201.645-.675.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.435%200-.835.16a2%202%200%200%200-.284.136%202%202%200%200%200-.363.254%202.2%202.2%200%200%200-.46.569l-.082.162a2.6%202.6%200%200%200-.213%201.072v.115q0%20.707.296%201.267l.135.211zm.964-.818a1.1%201.1%200%200%200%20.367.385.94.94%200%200%200%20.476.118c.423%200%20.59-.117.687-.23.159-.194.28-.478.28-.95%200-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1%201%200%200%200-.503.135l-.012.007a.86.86%200%200%200-.335.343c-.073.133-.132.324-.132.614v.115a1.4%201.4%200%200%200%20.14.66zm15.7-6.222q.347-.346.346-.856a1.05%201.05%200%200%200-.345-.79%201.18%201.18%200%200%200-.84-.329q-.51%200-.855.33a1.05%201.05%200%200%200-.346.79q0%20.51.346.855.345.346.856.346.51%200%20.839-.346zm4.337%209.314.033-1.332q.191.403.59.747l.098.081a4%204%200%200%200%20.316.224l.223.122a3.2%203.2%200%200%200%201.44.322%203.8%203.8%200%200%200%201.875-.477%203.5%203.5%200%200%200%201.382-1.366q.527-.89.526-2.09%200-1.184-.444-2.073a3.24%203.24%200%200%200-1.283-1.399q-.823-.51-1.942-.51a3.5%203.5%200%200%200-1.527.344l-.086.043-.165.09a3%203%200%200%200-.33.214q-.432.315-.656.707a2%202%200%200%200-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5%202.5%200%200%200%20.566.7q.117.098.245.18l.144.08a2.1%202.1%200%200%200%20.975.232q1.07%200%201.645-.675.576-.69.576-1.778%200-1.102-.576-1.777-.56-.691-1.645-.692a2.2%202.2%200%200%200-1.015.235q-.22.113-.415.282l-.15.142a2.1%202.1%200%200%200-.42.594q-.223.479-.223%201.1v.115q0%20.705.293%201.26zm2.616-.293c.157-.191.28-.479.28-.967%200-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87%200%200%200-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0%20.285.057.499.144.669a1.1%201.1%200%200%200%20.367.405c.137.082.28.123.455.123.423%200%20.59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493%200%20.642.099l.247-1.794q-.196-.099-.717-.099a2.3%202.3%200%200%200-.545.063%202%202%200%200%200-.411.148%202.2%202.2%200%200%200-.4.249%202.5%202.5%200%200%200-.485.499%202.7%202.7%200%200%200-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5%201.5%200%200%201%20.466-.636%202.5%202.5%200%200%201%20.399-.253%202%202%200%200%201%20.224-.099zm9.784%202.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46%203.46%200%200%200-1.4%201.382q-.493.906-.493%202.106%200%201.07.428%201.975.428.89%201.332%201.432.906.526%202.255.526.973%200%201.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954%200-1.497-.444a1.6%201.6%200%200%201-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1%201%200%200%200-.156-.176q-.46-.428-1.316-.428-.986%200-1.494.604-.379.45-.494%201.234zm-27.053%202.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z%22%2F%3E%3Cpath%20fill%3D%22%23fff%22%20d%3D%22m19.63%2011.151-.757-1.71-.345%201.71-1.12%205.644h-1.827L18.083%204.7h.197l3.325%206.533.988%202.19.988-2.19L26.839%204.7h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.93%205.644h-.098l-2.913-5.644zm14.836%205.81q-1.02%200-1.893-.478a3.8%203.8%200%200%201-1.381-1.382q-.51-.906-.51-2.106%200-1.185.444-2.074a3.36%203.36%200%200%201%201.3-1.382q.839-.494%201.974-.494a3.3%203.3%200%200%201%201.234.231%203.3%203.3%200%200%201%20.97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02%201.053a3.17%203.17%200%200%201-1.662.444zm.296-1.482q.938%200%201.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2%202.2%200%200%200-.807-.872%202.1%202.1%200%200%200-1.119-.313q-1.053%200-1.629.692-.575.675-.575%201.76%200%201.103.559%201.795.577.675%201.645.675zm6.521-6.237h1.711v1.4q.906-1.597%202.83-1.597%201.596%200%202.584%201.02.988%201.005.988%202.914%200%201.185-.493%202.09a3.46%203.46%200%200%201-1.316%201.399%203.5%203.5%200%200%201-1.844.493q-.954%200-1.662-.329a2.67%202.67%200%200%201-1.086-.97l.017%205.134h-1.728zm4.048%206.22q1.07%200%201.645-.674.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.592%200-1.12.296-.51.28-.822.823-.296.527-.296%201.234v.115q0%20.708.296%201.267.313.543.823.855.51.296%201.119.297z%22%2F%3E%3Cpath%20fill%3D%22%23e1e3e9%22%20d%3D%22M51.325%204.7h1.86v10.45h3.473v1.646h-5.333zm7.12%204.542h1.843v7.553h-1.843zm.905-1.415a1.16%201.16%200%200%201-.856-.346%201.17%201.17%200%200%201-.346-.856%201.05%201.05%200%200%201%20.346-.79q.346-.329.856-.329.494%200%20.839.33a1.05%201.05%200%200%201%20.345.79%201.16%201.16%200%200%201-.345.855q-.33.346-.84.346zm7.875%209.133a3.17%203.17%200%200%201-1.662-.444q-.723-.46-1.004-1.053l-.033%201.332h-1.71V4.701h1.743v4.657l-.082%201.283q.279-.658%201.086-1.119a3.5%203.5%200%200%201%201.778-.477q1.119%200%201.942.51a3.24%203.24%200%200%201%201.283%201.4q.445.888.444%202.072%200%201.201-.526%202.09a3.5%203.5%200%200%201-1.382%201.366%203.8%203.8%200%200%201-1.876.477zm-.296-1.481q1.069%200%201.645-.675.577-.69.577-1.778%200-1.102-.577-1.776-.56-.691-1.645-.692a2.12%202.12%200%200%200-1.58.659q-.642.641-.642%201.694v.115q0%20.71.296%201.267a2.4%202.4%200%200%200%20.807.872%202.1%202.1%200%200%200%201.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14%202.14%200%200%201%201.349-.46q.527%200%20.724.098l-.247%201.794q-.149-.099-.642-.099-.774%200-1.416.494-.626.493-.626%201.58v3.883h-1.777V9.242zm9.534%207.718q-1.35%200-2.255-.526-.904-.543-1.332-1.432a4.6%204.6%200%200%201-.428-1.975q0-1.2.493-2.106a3.46%203.46%200%200%201%201.4-1.382q.889-.495%202.007-.494%201.744%200%202.584.97.855.956.856%202.7%200%20.444-.05.92h-5.43q.18%201.005.708%201.45.542.443%201.497.443.79%200%201.3-.131a4%204%200%200%200%20.938-.362l.542%201.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728%200-1.991%201.86z%22%2F%3E%3Cpath%20d%3D%22M5.074%2015.948a.484.657%200%200%200-.486.659v1.84a.484.657%200%200%200%20.486.659h4.101a.484.657%200%200%200%20.486-.659v-1.84a.484.657%200%200%200-.486-.659zm3.56%201.16H5.617v.838h3.017z%22%20style%3D%22fill%3A%23fff%3Bfill-rule%3Aevenodd%3Bstroke-width%3A1.03600001%22%2F%3E%3Cg%20style%3D%22stroke-width%3A1.12603545%22%3E%3Cpath%20d%3D%22M-9.408-1.416c-3.833-.025-7.056%202.912-7.08%206.615-.02%203.08%201.653%204.832%203.107%206.268.903.892%201.721%201.74%202.32%202.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87%201.87%200%200%200-.362%201.121l-.011%201.877c-.003.402.104.787.347%201.125.244.338.688.653%201.23.656l4.142.028c.542.003.99-.306%201.238-.641a1.87%201.87%200%200%200%20.363-1.121l.012-1.875a1.87%201.87%200%200%200-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145%201.425-1.983%202.348-2.87%201.473-1.414%203.18-3.149%203.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006%201.1v.002c3.274.02%205.92%202.532%205.9%205.6-.017%202.706-1.39%204.026-2.863%205.44-1.034.994-2.118%202.033-2.814%203.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34%200%200%201-.226.084.34.34%200%200%201-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067%202.7-5.545%205.975-5.523m-.02%202.826c-1.62-.01-2.944%201.315-2.955%202.96-.01%201.646%201.295%202.988%202.916%202.999h.002c1.621.01%202.943-1.316%202.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005%201.1c1.017.006%201.829.83%201.822%201.89s-.83%201.874-1.848%201.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874%201.848-1.868m-2.155%2011.857%204.14.025c.271.002.49.305.487.676l-.013%201.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668%22%20style%3D%22color%3A%23000%3Bfont-style%3Anormal%3Bfont-variant%3Anormal%3Bfont-weight%3A400%3Bfont-stretch%3Anormal%3Bfont-size%3Amedium%3Bline-height%3Anormal%3Bfont-family%3Asans-serif%3Bfont-variant-ligatures%3Anormal%3Bfont-variant-position%3Anormal%3Bfont-variant-caps%3Anormal%3Bfont-variant-numeric%3Anormal%3Bfont-variant-alternates%3Anormal%3Bfont-feature-settings%3Anormal%3Btext-indent%3A0%3Btext-align%3Astart%3Btext-decoration%3Anone%3Btext-decoration-line%3Anone%3Btext-decoration-style%3Asolid%3Btext-decoration-color%3A%23000%3Bletter-spacing%3Anormal%3Bword-spacing%3Anormal%3Btext-transform%3Anone%3Bwriting-mode%3Alr-tb%3Bdirection%3Altr%3Btext-orientation%3Amixed%3Bdominant-baseline%3Aauto%3Bbaseline-shift%3Abaseline%3Btext-anchor%3Astart%3Bwhite-space%3Anormal%3Bshape-padding%3A0%3Bclip-rule%3Aevenodd%3Bdisplay%3Ainline%3Boverflow%3Avisible%3Bvisibility%3Avisible%3Bopacity%3A1%3Bisolation%3Aauto%3Bmix-blend-mode%3Anormal%3Bcolor-interpolation%3AsRGB%3Bcolor-interpolation-filters%3AlinearRGB%3Bsolid-color%3A%23000%3Bsolid-opacity%3A1%3Bvector-effect%3Anone%3Bfill%3A%23000%3Bfill-opacity%3A.4%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-linecap%3Abutt%3Bstroke-linejoin%3Amiter%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-dashoffset%3A0%3Bstroke-opacity%3A1%3Bcolor-rendering%3Aauto%3Bimage-rendering%3Aauto%3Bshape-rendering%3Aauto%3Btext-rendering%3Aauto%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-9.415-.316C-12.69-.338-15.37%202.14-15.39%205.207c-.017%202.716%201.326%204.041%202.78%205.477%201.013%201%202.081%202.055%202.78%203.67l.092.076a.34.34%200%200%200%20.225.086.34.34%200%200%200%20.227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6%201.78-2.64%202.814-3.634%201.473-1.414%202.847-2.733%202.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057%208.784c1.621.011%202.944-1.315%202.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945%201.315-2.955%202.96s1.295%202.989%202.916%203%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23e1e3e9%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-11.594%2015.465c-.27-.002-.492.297-.494.668l-.012%201.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23fff%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl.maplibregl-ctrl-attrib{padding:0 5px;background-color:hsla(0,0%,100%,.5);margin:0}@media screen{.maplibregl-ctrl-attrib.maplibregl-compact{min-height:20px;padding:2px 24px 2px 0;margin:10px;position:relative;background-color:#fff;color:#000;border-radius:12px;box-sizing:content-box}.maplibregl-ctrl-attrib.maplibregl-compact-show{padding:2px 28px 2px 8px;visibility:visible}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact-show,.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact-show{padding:2px 8px 2px 28px;border-radius:12px}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-inner{display:none}.maplibregl-ctrl-attrib-button{display:none;cursor:pointer;position:absolute;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20fill-rule%3D%22evenodd%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M4%2010a6%206%200%201%200%2012%200%206%206%200%201%200-12%200m5-3a1%201%200%201%200%202%200%201%201%200%201%200-2%200m0%203a1%201%200%201%201%202%200v3a1%201%200%201%201-2%200%22%2F%3E%3C%2Fsvg%3E");background-color:hsla(0,0%,100%,.5);width:24px;height:24px;box-sizing:border-box;border-radius:12px;outline:none;top:0;right:0;border:0}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;list-style:none}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button::-webkit-details-marker{display:none}.maplibregl-ctrl-bottom-left .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-top-left .maplibregl-ctrl-attrib-button{left:0}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-inner{display:block}.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-button{background-color:rgba(0,0,0,.05)}.maplibregl-ctrl-bottom-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;right:0}.maplibregl-ctrl-top-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{top:0;right:0}.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{top:0;left:0}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;left:0}}@media screen and (forced-colors:active){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22%23fff%22%20fill-rule%3D%22evenodd%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M4%2010a6%206%200%201%200%2012%200%206%206%200%201%200-12%200m5-3a1%201%200%201%200%202%200%201%201%200%201%200-2%200m0%203a1%201%200%201%201%202%200v3a1%201%200%201%201-2%200%22%2F%3E%3C%2Fsvg%3E")}}@media screen and (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20fill-rule%3D%22evenodd%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M4%2010a6%206%200%201%200%2012%200%206%206%200%201%200-12%200m5-3a1%201%200%201%200%202%200%201%201%200%201%200-2%200m0%203a1%201%200%201%201%202%200v3a1%201%200%201%201-2%200%22%2F%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl-attrib a{color:rgba(0,0,0,.75);text-decoration:none}.maplibregl-ctrl-attrib a:hover{color:inherit;text-decoration:underline}.maplibregl-attrib-empty{display:none}.maplibregl-ctrl-scale{background-color:hsla(0,0%,100%,.75);font-size:10px;white-space:nowrap;border-color:#333;border-style:none solid solid;border-width:medium 2px 2px;padding:0 5px;color:#333;box-sizing:border-box}.maplibregl-popup{position:absolute;top:0;left:0;display:flex;will-change:transform;pointer-events:none}.maplibregl-popup-anchor-top,.maplibregl-popup-anchor-top-left,.maplibregl-popup-anchor-top-right{flex-direction:column}.maplibregl-popup-anchor-bottom,.maplibregl-popup-anchor-bottom-left,.maplibregl-popup-anchor-bottom-right{flex-direction:column-reverse}.maplibregl-popup-anchor-left{flex-direction:row}.maplibregl-popup-anchor-right{flex-direction:row-reverse}.maplibregl-popup-tip{width:0;height:0;border:10px solid transparent;z-index:1}.maplibregl-popup-anchor-top .maplibregl-popup-tip{align-self:center;border-top:none;border-bottom-color:#fff}.maplibregl-popup-anchor-top-left .maplibregl-popup-tip{align-self:flex-start;border-top:none;border-left:none;border-bottom-color:#fff}.maplibregl-popup-anchor-top-right .maplibregl-popup-tip{align-self:flex-end;border-top:none;border-right:none;border-bottom-color:#fff}.maplibregl-popup-anchor-bottom .maplibregl-popup-tip{align-self:center;border-bottom:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip{align-self:flex-start;border-bottom:none;border-left:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip{align-self:flex-end;border-bottom:none;border-right:none;border-top-color:#fff}.maplibregl-popup-anchor-left .maplibregl-popup-tip{align-self:center;border-left:none;border-right-color:#fff}.maplibregl-popup-anchor-right .maplibregl-popup-tip{align-self:center;border-right:none;border-left-color:#fff}[dir=rtl] .maplibregl-popup-anchor-left{flex-direction:row-reverse}[dir=rtl] .maplibregl-popup-anchor-right{flex-direction:row}[dir=rtl] .maplibregl-popup-anchor-top-left .maplibregl-popup-tip{align-self:flex-end}[dir=rtl] .maplibregl-popup-anchor-top-right .maplibregl-popup-tip{align-self:flex-start}[dir=rtl] .maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip{align-self:flex-end}[dir=rtl] .maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip{align-self:flex-start}.maplibregl-popup-close-button{position:absolute;right:0;top:0;border:0;border-radius:0 3px 0 0;cursor:pointer;background-color:transparent}.maplibregl-popup-close-button:hover{background-color:rgba(0,0,0,.05)}.maplibregl-popup-content{position:relative;background:#fff;border-radius:3px;box-shadow:0 1px 2px rgba(0,0,0,.1);padding:15px 10px;pointer-events:auto}.maplibregl-popup-anchor-top-left .maplibregl-popup-content{border-top-left-radius:0}.maplibregl-popup-anchor-top-right .maplibregl-popup-content{border-top-right-radius:0}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-content{border-bottom-left-radius:0}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-content{border-bottom-right-radius:0}.maplibregl-popup-track-pointer{display:none}.maplibregl-popup-track-pointer *{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-map:hover .maplibregl-popup-track-pointer{display:flex}.maplibregl-map:active .maplibregl-popup-track-pointer{display:none}.maplibregl-marker{position:absolute;top:0;left:0;will-change:transform;transition:opacity .2s}.maplibregl-marker-draggable{cursor:grab}.maplibregl-user-location-dot,.maplibregl-user-location-dot:before{background-color:#1da1f2;width:15px;height:15px;border-radius:50%}.maplibregl-user-location-dot:before{content:"";position:absolute;animation:maplibregl-user-location-dot-pulse 2s infinite}.maplibregl-user-location-dot:after{border-radius:50%;border:2px solid #fff;content:"";height:19px;left:-2px;position:absolute;top:-2px;width:19px;box-sizing:border-box;box-shadow:0 0 3px rgba(0,0,0,.35)}@media (prefers-reduced-motion:reduce){.maplibregl-user-location-dot:before{animation:none}}@keyframes maplibregl-user-location-dot-pulse{0%{transform:scale(1);opacity:1}70%{transform:scale(3);opacity:0}to{transform:scale(1);opacity:0}}.maplibregl-user-location-dot-stale{background-color:#aaa}.maplibregl-user-location-dot-stale:after{display:none}.maplibregl-user-location-accuracy-circle{background-color:#1da1f233;width:1px;height:1px;border-radius:100%}.maplibregl-crosshair,.maplibregl-crosshair .maplibregl-interactive,.maplibregl-crosshair .maplibregl-interactive:active{cursor:crosshair}.maplibregl-boxzoom{position:absolute;top:0;left:0;width:0;height:0;background:#fff;border:2px dotted #202020;opacity:.5}.maplibregl-cooperative-gesture-screen{background:rgba(0,0,0,.4);position:absolute;inset:0;display:flex;justify-content:center;align-items:center;color:#fff;padding:1rem;font-size:1.4em;line-height:1.2;opacity:0;pointer-events:none;transition:opacity 1s ease 1s;z-index:99999}.maplibregl-cooperative-gesture-screen.maplibregl-show{opacity:1;transition:opacity .05s}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:none}@media (hover:none),(pointer:coarse){.maplibregl-cooperative-gesture-screen .maplibregl-desktop-message{display:none}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:block}}.maplibregl-pseudo-fullscreen{position:fixed!important;width:100%!important;height:100%!important;top:0!important;left:0!important;z-index:99999}',document.head.appendChild(e)}})()});var Pt=B(ea=>{"use strict";var t6=ef(),bL=Gy(),xL=J4(),CEe=I2().addStyleRule,_L=Sn(),tfe=Dl(),afe=Ov(),nfe=_L.extendFlat,a6=_L.extendDeepAll;ea.modules={};ea.allCategories={};ea.allTypes=[];ea.subplotsRegistry={};ea.componentsRegistry={};ea.layoutArrayContainers=[];ea.layoutArrayRegexes=[];ea.traceLayoutAttributes={};ea.localeRegistry={};ea.apiMethodRegistry={};ea.collectableSubplotTypes=null;ea.register=function(r){if(ea.collectableSubplotTypes=null,r)r&&!Array.isArray(r)&&(r=[r]);else throw new Error("No argument passed to Plotly.register.");for(var t=0;t{"use strict";var ufe=xv().timeFormat,qL=ca(),n6=ef(),sf=(Av(),vr(wv)).mod,Gv=(In(),vr(Wn)),Qo=Gv.BADNUM,bo=Gv.ONEDAY,H2=Gv.ONEHOUR,lf=Gv.ONEMIN,Uv=Gv.ONESEC,U2=Gv.EPOCHJD,nu=Pt(),kL=xv().utcFormat,ffe=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\d)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d(:?\d\d)?)?)?)?)?)?\s*$/m,cfe=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\di?)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d(:?\d\d)?)?)?)?)?)?\s*$/m,SL=new Date().getFullYear()-70;function iu(e){return e&&nu.componentsRegistry.calendars&&typeof e=="string"&&e!=="gregorian"}Dn.dateTick0=function(e,r){var t=vfe(e,!!r);if(r<2)return t;var a=Dn.dateTime2ms(t,e);return a+=bo*(r-1),Dn.ms2DateTime(a,0,e)};function vfe(e,r){return iu(e)?r?nu.getComponentMethod("calendars","CANONICAL_SUNDAY")[e]:nu.getComponentMethod("calendars","CANONICAL_TICK")[e]:r?"2000-01-02":"2000-01-01"}Dn.dfltRange=function(e){return iu(e)?nu.getComponentMethod("calendars","DFLTRANGE")[e]:["2000-01-01","2001-01-01"]};Dn.isJSDate=function(e){return typeof e=="object"&&e!==null&&typeof e.getTime=="function"};var Ky,Qy;Dn.dateTime2ms=function(e,r){if(Dn.isJSDate(e)){var t=e.getTimezoneOffset()*lf,a=(e.getUTCMinutes()-e.getMinutes())*lf+(e.getUTCSeconds()-e.getSeconds())*Uv+(e.getUTCMilliseconds()-e.getMilliseconds());if(a){var n=3*lf;t=t-n/2+sf(a-t+n/2,n)}return e=Number(e)-t,e>=Ky&&e<=Qy?e:Qo}if(typeof e!="string"&&typeof e!="number")return Qo;e=String(e);var i=iu(r),o=e.charAt(0);i&&(o==="G"||o==="g")&&(e=e.slice(1),r="");var l=i&&r.slice(0,7)==="chinese",s=e.match(l?cfe:ffe);if(!s)return Qo;var u=s[1],f=s[3]||"1",c=Number(s[5]||1),v=Number(s[7]||0),d=Number(s[9]||0),p=Number(s[11]||0);if(i){if(u.length===2)return Qo;u=Number(u);var y;try{var m=nu.getComponentMethod("calendars","getCal")(r);if(l){var b=f.charAt(f.length-1)==="i";f=parseInt(f,10),y=m.newDate(u,m.toMonthIndex(u,f,b),c)}else y=m.newDate(u,Number(f),c)}catch(_){return Qo}return y?(y.toJD()-U2)*bo+v*H2+d*lf+p*Uv:Qo}u.length===2?u=(Number(u)+2e3-SL)%100+SL:u=Number(u),f-=1;var T=new Date(Date.UTC(2e3,f,c,v,d));return T.setUTCFullYear(u),T.getUTCMonth()!==f||T.getUTCDate()!==c?Qo:T.getTime()+p*Uv};Ky=Dn.MIN_MS=Dn.dateTime2ms("-9999");Qy=Dn.MAX_MS=Dn.dateTime2ms("9999-12-31 23:59:59.9999");Dn.isDateTime=function(e,r){return Dn.dateTime2ms(e,r)!==Qo};function Hv(e,r){return String(e+Math.pow(10,r)).slice(1)}var $y=90*bo,CL=3*H2,DL=5*lf;Dn.ms2DateTime=function(e,r,t){if(typeof e!="number"||!(e>=Ky&&e<=Qy))return Qo;r||(r=0);var a=Math.floor(sf(e+.05,1)*10),n=Math.round(e-a/10),i,o,l,s,u,f;if(iu(t)){var c=Math.floor(n/bo)+U2,v=Math.floor(sf(e,bo));try{i=nu.getComponentMethod("calendars","getCal")(t).fromJD(c).formatDate("yyyy-mm-dd")}catch(d){i=kL("G%Y-%m-%d")(new Date(n))}if(i.charAt(0)==="-")for(;i.length<11;)i="-0"+i.slice(1);else for(;i.length<10;)i="0"+i;o=r<$y?Math.floor(v/H2):0,l=r<$y?Math.floor(v%H2/lf):0,s=r=Ky+bo&&e<=Qy-bo))return Qo;var r=Math.floor(sf(e+.05,1)*10),t=new Date(Math.round(e-r/10)),a=ufe("%Y-%m-%d")(t),n=t.getHours(),i=t.getMinutes(),o=t.getSeconds(),l=t.getUTCMilliseconds()*10+r;return FL(a,n,i,o,l)};function FL(e,r,t,a,n){if((r||t||a||n)&&(e+=" "+Hv(r,2)+":"+Hv(t,2),(a||n)&&(e+=":"+Hv(a,2),n))){for(var i=4;n%10===0;)i-=1,n/=10;e+="."+Hv(n,i)}return e}Dn.cleanDate=function(e,r,t){if(e===Qo)return r;if(Dn.isJSDate(e)||typeof e=="number"&&isFinite(e)){if(iu(t))return n6.error("JS Dates and milliseconds are incompatible with world calendars",e),r;if(e=Dn.ms2DateTimeLocal(+e),!e&&r!==void 0)return r}else if(!Dn.isDateTime(e,t))return n6.error("unrecognized date",e),r;return e};var hfe=/%\d?f/g,dfe=/%h/g,pfe={1:"1",2:"1",3:"2",4:"2"};function LL(e,r,t,a){e=e.replace(hfe,function(i){var o=Math.min(+i.charAt(1)||6,6),l=(r/1e3%1+2).toFixed(o).slice(2).replace(/0+$/,"")||"0";return l});var n=new Date(Math.floor(r+.05));if(e=e.replace(dfe,function(){return pfe[t("%q")(n)]}),iu(a))try{e=nu.getComponentMethod("calendars","worldCalFmt")(e,r,a)}catch(i){return"Invalid"}return t(e)(n)}var mfe=[59,59.9,59.99,59.999,59.9999];function yfe(e,r){var t=sf(e+.05,bo),a=Hv(Math.floor(t/H2),2)+":"+Hv(sf(Math.floor(t/lf),60),2);if(r!=="M"){qL(r)||(r=0);var n=Math.min(sf(e/Uv,60),mfe[r]),i=(100+n).toFixed(r).slice(1);r>0&&(i=i.replace(/0+$/,"").replace(/[\.]$/,"")),a+=":"+i}return a}Dn.formatDate=function(e,r,t,a,n,i){if(n=iu(n)&&n,!r)if(t==="y")r=i.year;else if(t==="m")r=i.month;else if(t==="d")r=i.dayMonth+` -`+i.year;else return yfe(e,t)+` -`+LL(i.dayMonthYear,e,a,n);return LL(r,e,a,n)};var EL=3*bo;Dn.incrementMonth=function(e,r,t){t=iu(t)&&t;var a=sf(e,bo);if(e=Math.round(e-a),t)try{var n=Math.round(e/bo)+U2,i=nu.getComponentMethod("calendars","getCal")(t),o=i.fromJD(n);return r%12?i.add(o,r,"m"):i.add(o,r/12,"y"),(o.toJD()-U2)*bo+a}catch(s){n6.error("invalid ms "+e+" in calendar "+t)}var l=new Date(e+EL);return l.setUTCMonth(l.getUTCMonth()+r)+a-EL};Dn.findExactDates=function(e,r){for(var t=0,a=0,n=0,i=0,o,l,s=iu(r)&&nu.getComponentMethod("calendars","getCal")(r),u=0;u{"use strict";PL.exports=function(r){return r}});var o6=B(ou=>{"use strict";var gfe=ca(),bfe=ef(),xfe=eg(),_fe=(In(),vr(Wn)).BADNUM,i6=1e-9;ou.findBin=function(e,r,t){if(gfe(r.start))return t?Math.ceil((e-r.start)/r.size-i6)-1:Math.floor((e-r.start)/r.size+i6);var a=0,n=r.length,i=0,o=n>1?(r[n-1]-r[0])/(n-1):1,l,s;for(o>=0?s=t?wfe:Afe:s=t?Mfe:Tfe,e+=o*i6*(t?-1:1)*(o>=0?1:-1);a90&&bfe.log("Long binary search..."),a-1};function wfe(e,r){return er}function Mfe(e,r){return e>=r}ou.sorterAsc=function(e,r){return e-r};ou.sorterDes=function(e,r){return r-e};ou.distinctVals=function(e){var r=e.slice();r.sort(ou.sorterAsc);var t;for(t=r.length-1;t>-1&&r[t]===_fe;t--);for(var a=r[t]-r[0]||1,n=a/(t||1)/1e4,i=[],o,l=0;l<=t;l++){var s=r[l],u=s-o;o===void 0?(i.push(s),o=s):u>n&&(a=Math.min(a,u),i.push(s),o=s)}return{vals:i,minDiff:a}};ou.roundUp=function(e,r,t){for(var a=0,n=r.length-1,i,o=0,l=t?0:1,s=t?1:0,u=t?Math.ceil:Math.floor;a0&&(a=1),t&&a)return e.sort(r)}return a?e:e.reverse()};ou.findIndexOfMin=function(e,r){r=r||xfe;for(var t=1/0,a,n=0;nSfe});function kfe(e){return Object.keys(e).sort()}var Sfe,tg=Za(()=>{"use strict";Sfe=kfe});var NL=B(Ln=>{"use strict";var G2=ca(),Cfe=no().isArrayOrTypedArray;Ln.aggNums=function(e,r,t,a){var n,i;if((!a||a>t.length)&&(a=t.length),G2(r)||(r=!1),Cfe(t[0])){for(i=new Array(a),n=0;ne.length-1)return e[e.length-1];var t=r%1;return t*e[Math.ceil(r)]+(1-t)*e[Math.floor(r)]}});var HL=B((REe,OL)=>{"use strict";var zL=(Av(),vr(wv)),l6=zL.mod,Dfe=zL.modHalf,Y2=Math.PI,uf=2*Y2;function Lfe(e){return e/180*Y2}function Efe(e){return e/Y2*180}function s6(e){return Math.abs(e[1]-e[0])>uf-1e-14}function BL(e,r){return Dfe(r-e,uf)}function qfe(e,r){return Math.abs(BL(e,r))}function IL(e,r){if(s6(r))return!0;var t,a;r[0]a&&(a+=uf);var n=l6(e,uf),i=n+uf;return n>=t&&n<=a||i>=t&&i<=a}function Ffe(e,r,t,a){if(!IL(r,a))return!1;var n,i;return t[0]=n&&e<=i}function u6(e,r,t,a,n,i,o){n=n||0,i=i||0;var l=s6([t,a]),s,u,f,c,v;l?(s=0,u=Y2,f=uf):t{"use strict";U0.isLeftAnchor=function(r){return r.xanchor==="left"||r.xanchor==="auto"&&r.x<=1/3};U0.isCenterAnchor=function(r){return r.xanchor==="center"||r.xanchor==="auto"&&r.x>1/3&&r.x<2/3};U0.isRightAnchor=function(r){return r.xanchor==="right"||r.xanchor==="auto"&&r.x>=2/3};U0.isTopAnchor=function(r){return r.yanchor==="top"||r.yanchor==="auto"&&r.y>=2/3};U0.isMiddleAnchor=function(r){return r.yanchor==="middle"||r.yanchor==="auto"&&r.y>1/3&&r.y<2/3};U0.isBottomAnchor=function(r){return r.yanchor==="bottom"||r.yanchor==="auto"&&r.y<=1/3}});var VL=B(G0=>{"use strict";var f6=(Av(),vr(wv)).mod;G0.segmentsIntersect=YL;function YL(e,r,t,a,n,i,o,l){var s=t-e,u=n-e,f=o-n,c=a-r,v=i-r,d=l-i,p=s*d-f*c;if(p===0)return null;var y=(u*d-f*v)/p,m=(u*c-s*v)/p;return m<0||m>1||y<0||y>1?null:{x:e+s*y,y:r+c*y}}G0.segmentDistance=function(r,t,a,n,i,o,l,s){if(YL(r,t,a,n,i,o,l,s))return 0;var u=a-r,f=n-t,c=l-i,v=s-o,d=u*u+f*f,p=c*c+v*v,y=Math.min(ag(u,f,d,i-r,o-t),ag(u,f,d,l-r,s-t),ag(c,v,p,r-i,t-o),ag(c,v,p,a-i,n-o));return Math.sqrt(y)};function ag(e,r,t,a,n){var i=a*e+n*r;if(i<0)return a*a+n*n;if(i>t){var o=a-e,l=n-r;return o*o+l*l}else{var s=a*r-n*e;return s*s/t}}var ng,c6,GL;G0.getTextLocation=function(r,t,a,n){if((r!==c6||n!==GL)&&(ng={},c6=r,GL=n),ng[a])return ng[a];var i=r.getPointAtLength(f6(a-n/2,t)),o=r.getPointAtLength(f6(a+n/2,t)),l=Math.atan((o.y-i.y)/(o.x-i.x)),s=r.getPointAtLength(f6(a,t)),u=(s.x*4+i.x+o.x)/6,f=(s.y*4+i.y+o.y)/6,c={x:u,y:f,theta:l};return ng[a]=c,c};G0.clearLocationCache=function(){c6=null};G0.getVisibleSegment=function(r,t,a){var n=t.left,i=t.right,o=t.top,l=t.bottom,s=0,u=r.getTotalLength(),f=u,c,v;function d(y){var m=r.getPointAtLength(y);y===0?c=m:y===u&&(v=m);var b=m.xi?m.x-i:0,T=m.yl?m.y-l:0;return Math.sqrt(b*b+T*T)}for(var p=d(s);p;){if(s+=p+a,s>f)return;p=d(s)}for(p=d(f);p;){if(f-=p+a,s>f)return;p=d(f)}return{min:s,max:f,len:f-s,total:u,isClosed:s===0&&f===u&&Math.abs(c.x-v.x)<.1&&Math.abs(c.y-v.y)<.1}};G0.findPointOnPath=function(r,t,a,n){n=n||{};for(var i=n.pathLength||r.getTotalLength(),o=n.tolerance||.001,l=n.iterationLimit||30,s=r.getPointAtLength(0)[a]>r.getPointAtLength(i)[a]?-1:1,u=0,f=0,c=i,v,d,p;u0?c=v:f=v,u++}return d}});var ig=B(V2=>{"use strict";var lu={};V2.throttle=function(r,t,a){var n=lu[r],i=Date.now();if(!n){for(var o in lu)lu[o].tsn.ts+t){l();return}n.timer=setTimeout(function(){l(),n.timer=null},t)};V2.done=function(e){var r=lu[e];return!r||!r.timer?Promise.resolve():new Promise(function(t){var a=r.onDone;r.onDone=function(){a&&a(),t(),r.onDone=null}})};V2.clear=function(e){if(e)XL(lu[e]),delete lu[e];else for(var r in lu)V2.clear(r)};function XL(e){e&&e.timer!==null&&(clearTimeout(e.timer),e.timer=null)}});var ZL=B((BEe,WL)=>{"use strict";WL.exports=function(r){r._clearResponsive&&(r._clearResponsive(),delete r._clearResponsive)}});var JL=B((IEe,og)=>{"use strict";og.exports=v6;og.exports.isMobile=v6;og.exports.default=v6;var zfe=/(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|redmi|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,Bfe=/CrOS/,Ife=/android|ipad|playbook|silk/i;function v6(e){e||(e={});let r=e.ua;if(!r&&typeof navigator!="undefined"&&(r=navigator.userAgent),r&&r.headers&&typeof r.headers["user-agent"]=="string"&&(r=r.headers["user-agent"]),typeof r!="string")return!1;let t=zfe.test(r)&&!Bfe.test(r)||!!e.tablet&&Ife.test(r);return!t&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&r.indexOf("Macintosh")!==-1&&r.indexOf("Safari")!==-1&&(t=!0),t}});var $L=B((OEe,jL)=>{"use strict";var Ofe=ca(),Hfe=JL();jL.exports=function(r){var t;if(r&&r.hasOwnProperty("userAgent")?t=r.userAgent:t=Ufe(),typeof t!="string")return!0;var a=Hfe({ua:{headers:{"user-agent":t}},tablet:!0,featureDetect:!1});if(!a)for(var n=t.split(" "),i=1;i-1;l--){var s=n[l];if(s.slice(0,8)==="Version/"){var u=s.slice(8).split(".")[0];if(Ofe(u)&&(u=+u),u>=13)return!0}}}return a};function Ufe(){var e;return typeof navigator!="undefined"&&(e=navigator.userAgent),e&&e.headers&&typeof e.headers["user-agent"]=="string"&&(e=e.headers["user-agent"]),e}});var QL=B((HEe,KL)=>{"use strict";var Gfe=ia();KL.exports=function(r,t,a){var n=r.selectAll("g."+a.replace(/\s/g,".")).data(t,function(o){return o[0].trace.uid});n.exit().remove(),n.enter().append("g").attr("class",a),n.order();var i=r.classed("rangeplot")?"nodeRangePlot3":"node3";return n.each(function(o){o[0][i]=Gfe.select(this)}),n}});var rE=B((UEe,eE)=>{"use strict";var Yfe=Pt();eE.exports=function(r,t){for(var a=r._context.locale,n=0;n<2;n++){for(var i=r._context.locales,o=0;o<2;o++){var l=(i[a]||{}).dictionary;if(l){var s=l[t];if(s)return s}i=Yfe.localeRegistry}var u=a.split("-")[0];if(u===a)break;a=u}return t}});var aE=B((GEe,tE)=>{"use strict";tE.exports=function(r){for(var t={},a=[],n=0,i=0;i{"use strict";nE.exports=function(r){for(var t=Wfe(r)?Xfe:Vfe,a=[],n=0;n{"use strict";oE.exports=function(r,t){if(!t)return r;var a=1/Math.abs(t),n=a>1?(a*r+a*t)/a:r+t,i=String(n).length;if(i>16){var o=String(t).length,l=String(r).length;if(i>=l+o){var s=parseFloat(n).toPrecision(12);s.indexOf("e+")===-1&&(n=+s)}}return n}});var uE={};Ja(uE,{default:()=>jfe});function Jfe(e){return typeof e=="string"&&(e=e.replace(Zfe,"")),(0,sE.default)(e)?Number(e):void 0}var sE,Zfe,jfe,fE=Za(()=>{"use strict";sE=h2(ca());In();Zfe=/^['"%,$#\s']+|[, ]|['"%,$#\s']+$/g;jfe=Jfe});var hE=B((WEe,vE)=>{"use strict";var $fe=/<[^>]*>/g,Kfe=/[\p{S}\p{P}]/gu,Qfe=/[\p{Cc}\p{Cf}\uFE00-\uFE0F\u20E3]/gu,e0e=/�/g,r0e=/\s+/g,lg="-",cE=lg.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),t0e=new RegExp(cE+"{3,}","g"),a0e=new RegExp(cE+"$","g"),n0e=60;function i0e(e){return typeof e.toWellFormed=="function"?e.toWellFormed():new TextDecoder().decode(new TextEncoder().encode(e))}vE.exports=function(r,t=n0e){var a=i0e(r!=null?r:"").replace(e0e,"").replace($fe," ").replace(Kfe,n=>n===lg?n:"").toLowerCase().trim().replace(r0e,lg).replace(Qfe,"").replace(t0e,lg);return a.length<=t?a:Array.from(a).slice(0,t).join("").replace(a0e,"")}});var nr=B((ZEe,ME)=>{"use strict";var X2=ia(),o0e=xv().utcFormat,l0e=l_().format,bE=ca(),xE=(In(),vr(Wn)),_E=xE.FP_SAFE,s0e=-_E,dE=xE.BADNUM,be={};ME.exports=be;be.adjustFormat=function(r){if(!r||/^\d[.]\df/.test(r)||/[.]\d%/.test(r))return r;if(r==="0.f")return"~f";if(/^\d%/.test(r))return"~%";if(/^\ds/.test(r))return"~s";var t=(r.match(/^[+\-( ]?/)||[""])[0],a=r.slice(t.length);return!/^[~,.0$#]/.test(a)&&/[&fps]/.test(a)?t+"~"+a:r};var pE={};be.warnBadFormat=function(e){var r=String(e);pE[r]||(pE[r]=1,be.warn('encountered bad format: "'+r+'"'))};be.noFormat=function(e){return String(e)};be.numberFormat=function(e){var r;try{r=l0e(be.adjustFormat(e))}catch(t){return be.warnBadFormat(e),be.noFormat}return r};be.nestedProperty=cy();be.keyedContainer=sk();be.relativeAttr=fk();be.isPlainObject=D0();be.toLogRange=hy();be.relinkPrivateKeys=dk();var ff=no();be.isArrayBuffer=ff.isArrayBuffer;be.isTypedArray=ff.isTypedArray;be.isArrayOrTypedArray=ff.isArrayOrTypedArray;be.isArray1D=ff.isArray1D;be.ensureArray=ff.ensureArray;be.concat=ff.concat;be.maxRowLength=ff.maxRowLength;be.minRowLength=ff.minRowLength;var wE=(Av(),vr(wv));be.mod=wE.mod;be.modHalf=wE.modHalf;var cf=PC();be.valObjectMeta=cf.valObjectMeta;be.coerce=cf.coerce;be.coerce2=cf.coerce2;be.coerceFont=cf.coerceFont;be.coercePattern=cf.coercePattern;be.coerceHoverinfo=cf.coerceHoverinfo;be.coerceSelectionMarkerOpacity=cf.coerceSelectionMarkerOpacity;be.validate=cf.validate;var Fo=RL();be.dateTime2ms=Fo.dateTime2ms;be.isDateTime=Fo.isDateTime;be.ms2DateTime=Fo.ms2DateTime;be.ms2DateTimeLocal=Fo.ms2DateTimeLocal;be.cleanDate=Fo.cleanDate;be.isJSDate=Fo.isJSDate;be.formatDate=Fo.formatDate;be.incrementMonth=Fo.incrementMonth;be.dateTick0=Fo.dateTick0;be.dfltRange=Fo.dfltRange;be.findExactDates=Fo.findExactDates;be.MIN_MS=Fo.MIN_MS;be.MAX_MS=Fo.MAX_MS;var Y0=o6();be.findBin=Y0.findBin;be.sorterAsc=Y0.sorterAsc;be.sorterDes=Y0.sorterDes;be.distinctVals=Y0.distinctVals;be.roundUp=Y0.roundUp;be.sort=Y0.sort;be.findIndexOfMin=Y0.findIndexOfMin;be.sortObjectKeys=(tg(),vr(rg)).default;var su=NL();be.aggNums=su.aggNums;be.len=su.len;be.mean=su.mean;be.geometricMean=su.geometricMean;be.median=su.median;be.midRange=su.midRange;be.variance=su.variance;be.stdev=su.stdev;be.interp=su.interp;var Fl=Yy();be.init2dArray=Fl.init2dArray;be.transposeRagged=Fl.transposeRagged;be.dot=Fl.dot;be.translationMatrix=Fl.translationMatrix;be.rotationMatrix=Fl.rotationMatrix;be.rotationXYMatrix=Fl.rotationXYMatrix;be.apply3DTransform=Fl.apply3DTransform;be.apply2DTransform=Fl.apply2DTransform;be.apply2DTransform2=Fl.apply2DTransform2;be.convertCssMatrix=Fl.convertCssMatrix;be.inverseTransformMatrix=Fl.inverseTransformMatrix;var hs=HL();be.deg2rad=hs.deg2rad;be.rad2deg=hs.rad2deg;be.angleDelta=hs.angleDelta;be.angleDist=hs.angleDist;be.isFullCircle=hs.isFullCircle;be.isAngleInsideSector=hs.isAngleInsideSector;be.isPtInsideSector=hs.isPtInsideSector;be.pathArc=hs.pathArc;be.pathSector=hs.pathSector;be.pathAnnulus=hs.pathAnnulus;var Vv=UL();be.isLeftAnchor=Vv.isLeftAnchor;be.isCenterAnchor=Vv.isCenterAnchor;be.isRightAnchor=Vv.isRightAnchor;be.isTopAnchor=Vv.isTopAnchor;be.isMiddleAnchor=Vv.isMiddleAnchor;be.isBottomAnchor=Vv.isBottomAnchor;var Xv=VL();be.segmentsIntersect=Xv.segmentsIntersect;be.segmentDistance=Xv.segmentDistance;be.getTextLocation=Xv.getTextLocation;be.clearLocationCache=Xv.clearLocationCache;be.getVisibleSegment=Xv.getVisibleSegment;be.findPointOnPath=Xv.findPointOnPath;var fg=Sn();be.extendFlat=fg.extendFlat;be.extendDeep=fg.extendDeep;be.extendDeepAll=fg.extendDeepAll;be.extendDeepNoArrays=fg.extendDeepNoArrays;var h6=ef();be.log=h6.log;be.warn=h6.warn;be.error=h6.error;var u0e=(Nv(),vr(B2));be.counterRegex=u0e.counter;var d6=ig();be.throttle=d6.throttle;be.throttleDone=d6.done;be.clearThrottle=d6.clear;var Rl=I2();be.getGraphDiv=Rl.getGraphDiv;be.isPlotDiv=Rl.isPlotDiv;be.removeElement=Rl.removeElement;be.addStyleRule=Rl.addStyleRule;be.addRelatedStyleRule=Rl.addRelatedStyleRule;be.deleteRelatedStyleRule=Rl.deleteRelatedStyleRule;be.setStyleOnHover=Rl.setStyleOnHover;be.getFullTransformMatrix=Rl.getFullTransformMatrix;be.getElementTransformMatrix=Rl.getElementTransformMatrix;be.getElementAndAncestors=Rl.getElementAndAncestors;be.equalDomRects=Rl.equalDomRects;be.clearResponsive=ZL();be.preserveDrawingBuffer=$L();be.makeTraceGroups=QL();be._=rE();be.notifier=O4();be.filterUnique=aE();be.filterVisible=iE();be.pushUnique=J4();be.increment=lE();be.cleanNumber=(fE(),vr(uE)).default;be.slugify=hE();be.ensureNumber=function(r){return bE(r)?(r=Number(r),r>_E||r=r?!1:bE(e)&&e>=0&&e%1===0};be.noop=Gy();be.identity=eg();be.repeat=function(e,r){for(var t=new Array(r),a=0;at?Math.max(t,Math.min(r,e)):Math.max(r,Math.min(t,e))};be.bBoxIntersect=function(e,r,t){return t=t||0,e.left<=r.right+t&&r.left<=e.right+t&&e.top<=r.bottom+t&&r.top<=e.bottom+t};be.simpleMap=function(e,r,t,a,n){for(var i=e.length,o=new Array(i),l=0;l=Math.pow(2,t)?n>10?(be.warn("randstr failed uniqueness"),o):e(r,t,a,(n||0)+1):o};be.OptionControl=function(e,r){e||(e={}),r||(r="opt");var t={};return t.optionList=[],t._newoption=function(a){a[r]=e,t[a.name]=a,t.optionList.push(a)},t["_"+r]=e,t};be.smooth=function(e,r){if(r=Math.round(r)||0,r<2)return e;var t=e.length,a=2*t,n=2*r-1,i=new Array(n),o=new Array(t),l,s,u,f;for(l=0;l=a&&(u-=a*Math.floor(u/a)),u<0?u=-1-u:u>=t&&(u=a-1-u),f+=e[u]*i[s];o[l]=f}return o};be.syncOrAsync=function(e,r,t){var a,n;function i(){return be.syncOrAsync(e,r,t)}for(;e.length;)if(n=e.splice(0,1)[0],a=n(r),a&&a.then)return a.then(i);return t&&t(r)};be.stripTrailingSlash=function(e){return e.slice(-1)==="/"?e.slice(0,-1):e};be.noneOrAll=function(e,r,t){if(e){var a=!1,n=!0,i,o;for(i=0;i0?n:0})};be.fillArray=function(e,r,t,a){if(a=a||be.identity,be.isArrayOrTypedArray(e))for(var n=0;nv0e.test(window.navigator.userAgent);var h0e=/Firefox\/(\d+)\.\d+/;be.getFirefoxVersion=function(){var e=h0e.exec(window.navigator.userAgent);if(e&&e.length===2){var r=parseInt(e[1]);if(!isNaN(r))return r}return null};be.isD3Selection=function(e){return e instanceof X2.selection};be.ensureSingle=function(e,r,t,a){var n=e.select(r+(t?"."+t:""));if(n.size())return n;var i=e.append(r);return t&&i.classed(t,!0),a&&i.call(a),i};be.ensureSingleById=function(e,r,t,a){var n=e.select(r+"#"+t);if(n.size())return n;var i=e.append(r).attr("id",t);return a&&i.call(a),i};be.objectFromPath=function(e,r){for(var t=e.split("."),a,n=a={},i=0;i1?n+o[1]:"";if(i&&(o.length>1||l.length>4||t))for(;a.test(l);)l=l.replace(a,"$1"+i+"$2");return l+s};be.TEMPLATE_STRING_REGEX=/%{([^\s%{}:]*)([:|\|][^}]*)?}/g;var TE=/^\w*$/;be.templateString=function(e,r){var t={};return e.replace(be.TEMPLATE_STRING_REGEX,function(a,n){var i;return TE.test(n)?i=r[n]:(t[n]=t[n]||be.nestedProperty(r,n).get,i=t[n](!0)),i!==void 0?i:""})};var m0e={max:10,count:0,name:"hovertemplate"};be.hovertemplateString=e=>p6(an(La({},e),{opts:m0e}));var y0e={max:10,count:0,name:"texttemplate"};be.texttemplateString=e=>p6(an(La({},e),{opts:y0e}));var g0e=/^(\S+)([\*\/])(-?\d+(\.\d+)?)$/;function b0e(e){var r=e.match(g0e);return r?{key:r[1],op:r[2],number:Number(r[3])}:{key:e,op:null,number:null}}var x0e={max:10,count:0,name:"texttemplate",parseMultDiv:!0};be.texttemplateStringForShapes=e=>p6(an(La({},e),{opts:x0e}));var mE=/^[:|\|]/;function p6({data:e=[],locale:r,fallback:t,labels:a={},opts:n,template:i}){return i.replace(be.TEMPLATE_STRING_REGEX,(o,l,s)=>{let u=["xother","yother"].includes(l),f=["_xother","_yother"].includes(l),c=["_xother_","_yother_"].includes(l),v=["xother_","yother_"].includes(l),d=u||f||v||c;(f||c)&&(l=l.substring(1)),(v||c)&&(l=l.substring(0,l.length-1));let p=null,y=null;if(n.parseMultDiv){var m=b0e(l);l=m.key,p=m.op,y=m.number}let b;if(d){if(a[l]===void 0)return"";b=a[l]}else for(let w of e)if(w){if(w.hasOwnProperty(l)){b=w[l];break}if(TE.test(l)||(b=be.nestedProperty(w,l).get(!0)),b!==void 0)break}if(b===void 0){let{count:w,max:k,name:M}=n,C=t===!1?o:t;return w=ug&&o<=yE,u=l>=ug&&l<=yE;if(s&&(a=10*a+o-ug),u&&(n=10*n+l-ug),!s||!u){if(a!==n)return a-n;if(o!==l)return o-l}}return n-a};var Yv=2e9;be.seedPseudoRandom=function(){Yv=2e9};be.pseudoRandom=function(){var e=Yv;return Yv=(69069*Yv+1)%4294967296,Math.abs(Yv-e)<429496729?be.pseudoRandom():Yv/4294967296};be.fillText=function(e,r,t){var a=Array.isArray(t)?function(o){t.push(o)}:function(o){t.text=o},n=be.extractOption(e,r,"htx","hovertext");if(be.isValidTextValue(n))return a(n);var i=be.extractOption(e,r,"tx","text");if(be.isValidTextValue(i))return a(i)};be.isValidTextValue=function(e){return e||e===0};be.formatPercent=function(e,r){r=r||0;for(var t=(Math.round(100*e*Math.pow(10,r))*Math.pow(.1,r)).toFixed(r)+"%",a=0;a1&&(u=1):u=0,be.strTranslate(n-u*(t+o),i-u*(a+l))+be.strScale(u)+(s?"rotate("+s+(r?"":" "+t+" "+a)+")":"")};be.setTransormAndDisplay=function(e,r){e.attr("transform",be.getTextTransform(r)),e.style("display",r.scale?null:"none")};be.ensureUniformFontSize=function(e,r){var t=be.extendFlat({},r);return t.size=Math.max(r.size,e._fullLayout.uniformtext.minsize||0),t};be.join2=function(e,r,t){var a=e.length;return a>1?e.slice(0,-1).join(r)+t+e[a-1]:e.join(r)};be.bigFont=function(e){return Math.round(1.2*e)};var gE=be.getFirefoxVersion(),_0e=gE!==null&&gE<86;be.getPositionFromD3Event=function(){return _0e?[X2.event.layerX,X2.event.layerY]:[X2.event.offsetX,X2.event.offsetY]}});var CE=B(()=>{"use strict";var w0e=nr(),kE={"X,X div":'direction:ltr;font-family:"Open Sans",verdana,arial,sans-serif;margin:0;padding:0;border: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 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:focus-within .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-group a":"display:grid;place-content:center;","X .modebar-btn":"position:relative;font-size:16px;padding:3px 4px;height:22px;cursor:pointer;line-height:normal;box-sizing:border-box;border:none;background:rgba(0,0,0,0);","X .modebar-btn svg":"position:relative;","X .modebar-btn:focus-visible":"outline:1px solid #000;outline-offset:1px;border-radius:3px;","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;","X .plotly-cloud-dialog":'font-family:"Open Sans",verdana,arial,sans-serif;position:absolute;top:0;left:0;width:100%;height:100%;z-index:1001;display:flex;align-items:center;justify-content:center;background-color:rgba(0,0,0,.4);',"X .plotly-cloud-dialog .plotly-cloud-dialog-box":"box-sizing:border-box;min-width:300px;max-width:420px;padding:20px 24px;background-color:#fff;border:1px solid #e0e2e5;border-radius:4px;box-shadow:0 4px 16px rgba(0,0,0,.25);font-size:13px;color:#2a3f5f;","X .plotly-cloud-dialog .plotly-cloud-dialog-title":"font-size:16px;font-weight:bold;margin-bottom:12px;","X .plotly-cloud-dialog .plotly-cloud-dialog-message":"line-height:1.5;overflow-wrap:break-word;word-wrap:break-word;","X .plotly-cloud-dialog .plotly-cloud-dialog-message--hostname":"font-weight:bold;text-decoration:underline;","X .plotly-cloud-dialog .plotly-cloud-dialog-message--account":"margin-top:16px;padding:8px;border-radius:3px;font-size:.9em;background-color:#edf1f8;","X .plotly-cloud-dialog .plotly-cloud-dialog-buttons":"display:flex;justify-content:flex-end;margin-top:20px;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn":"font-family:inherit;font-size:13px;padding:7px 16px;margin-left:8px;border-radius:3px;border:1px solid rgba(0,0,0,0);cursor:pointer;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn:focus-visible":"outline:2px solid #447adb;outline-offset:1px;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn--cancel":"background-color:#f3f3f3;margin-left:auto;color:#777;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn--cancel:hover":"background-color:#e0e2e5;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn--confirm":"background-color:#447adb;color:#fff;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn--confirm:hover":"background-color:#1d3b84;",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(m6 in kE)SE=m6.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier"),w0e.addStyleRule(SE,kE[m6]);var SE,m6});var y6=B((KEe,DE)=>{DE.exports=!0});var b6=B((QEe,LE)=>{"use strict";var A0e=y6(),g6;typeof window.matchMedia=="function"?g6=!window.matchMedia("(hover: none)").matches:g6=A0e;LE.exports=g6});var hg=B((eqe,x6)=>{"use strict";var Wv=typeof Reflect=="object"?Reflect:null,EE=Wv&&typeof Wv.apply=="function"?Wv.apply:function(r,t,a){return Function.prototype.apply.call(r,t,a)},cg;Wv&&typeof Wv.ownKeys=="function"?cg=Wv.ownKeys:Object.getOwnPropertySymbols?cg=function(r){return Object.getOwnPropertyNames(r).concat(Object.getOwnPropertySymbols(r))}:cg=function(r){return Object.getOwnPropertyNames(r)};function T0e(e){console&&console.warn&&console.warn(e)}var FE=Number.isNaN||function(r){return r!==r};function $a(){$a.init.call(this)}x6.exports=$a;x6.exports.once=C0e;$a.EventEmitter=$a;$a.prototype._events=void 0;$a.prototype._eventsCount=0;$a.prototype._maxListeners=void 0;var qE=10;function vg(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty($a,"defaultMaxListeners",{enumerable:!0,get:function(){return qE},set:function(e){if(typeof e!="number"||e<0||FE(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");qE=e}});$a.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};$a.prototype.setMaxListeners=function(r){if(typeof r!="number"||r<0||FE(r))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+r+".");return this._maxListeners=r,this};function RE(e){return e._maxListeners===void 0?$a.defaultMaxListeners:e._maxListeners}$a.prototype.getMaxListeners=function(){return RE(this)};$a.prototype.emit=function(r){for(var t=[],a=1;a0&&(o=t[0]),o instanceof Error)throw o;var l=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw l.context=o,l}var s=i[r];if(s===void 0)return!1;if(typeof s=="function")EE(s,this,t);else for(var u=s.length,f=IE(s,u),a=0;a0&&o.length>n&&!o.warned){o.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(r)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=r,l.count=o.length,T0e(l)}return e}$a.prototype.addListener=function(r,t){return PE(this,r,t,!1)};$a.prototype.on=$a.prototype.addListener;$a.prototype.prependListener=function(r,t){return PE(this,r,t,!0)};function M0e(){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 NE(e,r,t){var a={fired:!1,wrapFn:void 0,target:e,type:r,listener:t},n=M0e.bind(a);return n.listener=t,a.wrapFn=n,n}$a.prototype.once=function(r,t){return vg(t),this.on(r,NE(this,r,t)),this};$a.prototype.prependOnceListener=function(r,t){return vg(t),this.prependListener(r,NE(this,r,t)),this};$a.prototype.removeListener=function(r,t){var a,n,i,o,l;if(vg(t),n=this._events,n===void 0)return this;if(a=n[r],a===void 0)return this;if(a===t||a.listener===t)--this._eventsCount===0?this._events=Object.create(null):(delete n[r],n.removeListener&&this.emit("removeListener",r,a.listener||t));else if(typeof a!="function"){for(i=-1,o=a.length-1;o>=0;o--)if(a[o]===t||a[o].listener===t){l=a[o].listener,i=o;break}if(i<0)return this;i===0?a.shift():k0e(a,i),a.length===1&&(n[r]=a[0]),n.removeListener!==void 0&&this.emit("removeListener",r,l||t)}return this};$a.prototype.off=$a.prototype.removeListener;$a.prototype.removeAllListeners=function(r){var t,a,n;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[r]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete a[r]),this;if(arguments.length===0){var i=Object.keys(a),o;for(n=0;n=0;n--)this.removeListener(r,t[n]);return this};function zE(e,r,t){var a=e._events;if(a===void 0)return[];var n=a[r];return n===void 0?[]:typeof n=="function"?t?[n.listener||n]:[n]:t?S0e(n):IE(n,n.length)}$a.prototype.listeners=function(r){return zE(this,r,!0)};$a.prototype.rawListeners=function(r){return zE(this,r,!1)};$a.listenerCount=function(e,r){return typeof e.listenerCount=="function"?e.listenerCount(r):BE.call(e,r)};$a.prototype.listenerCount=BE;function BE(e){var r=this._events;if(r!==void 0){var t=r[e];if(typeof t=="function")return 1;if(t!==void 0)return t.length}return 0}$a.prototype.eventNames=function(){return this._eventsCount>0?cg(this._events):[]};function IE(e,r){for(var t=new Array(r),a=0;a{"use strict";var _6=hg().EventEmitter,L0e={init:function(e){if(e._ev instanceof _6)return e;var r=new _6,t=new _6;return e._ev=r,e._internalEv=t,e.on=r.on.bind(r),e.once=r.once.bind(r),e.removeListener=r.removeListener.bind(r),e.removeAllListeners=r.removeAllListeners.bind(r),e._internalOn=t.on.bind(t),e._internalOnce=t.once.bind(t),e._removeInternalListener=t.removeListener.bind(t),e._removeAllInternalListeners=t.removeAllListeners.bind(t),e.emit=function(a,n){r.emit(a,n),t.emit(a,n)},typeof e.addEventListener=="function"&&e.addEventListener("wheel",()=>{},{passive:!0}),e},triggerHandler:function(e,r,t){var a,n=e._ev;if(!n)return;var i=n._events[r];if(!i)return;function o(s){if(s.listener){if(n.removeListener(r,s.listener),!s.fired)return s.fired=!0,s.listener.apply(n,[t])}else return s.apply(n,[t])}i=Array.isArray(i)?i:[i];var l;for(l=0;l{"use strict";var UE=nr(),E0e=Qu().dfltConfig;function q0e(e,r){for(var t=[],a,n=0;nE0e.queueLength&&(e.undoQueue.queue.shift(),e.undoQueue.index--)};uu.startSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!0,e.undoQueue.beginSequence=!0};uu.stopSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!1,e.undoQueue.beginSequence=!1};uu.undo=function(r){var t,a;if(!(r.undoQueue===void 0||isNaN(r.undoQueue.index)||r.undoQueue.index<=0)){for(r.undoQueue.index--,t=r.undoQueue.queue[r.undoQueue.index],r.undoQueue.inSequence=!0,a=0;a=r.undoQueue.queue.length)){for(t=r.undoQueue.queue[r.undoQueue.index],r.undoQueue.inSequence=!0,a=0;a{"use strict";VE.exports={_isLinkedToArray:"frames_entry",group:{valType:"string"},name:{valType:"string"},traces:{valType:"any"},baseframe:{valType:"string"},data:{valType:"any"},layout:{valType:"any"}}});var jv=B(Zn=>{"use strict";var el=Pt(),Z2=nr(),pg=Dl(),A6=Ov(),F0e=w6(),R0e=O2(),P0e=Qu().configAttributes,XE=ql(),Pl=Z2.extendDeepAll,Zv=Z2.isPlainObject,N0e=Z2.isArrayOrTypedArray,mg=Z2.nestedProperty,z0e=Z2.valObjectMeta,T6="_isSubplotObj",yg="_isLinkedToArray",B0e="_arrayAttrRegexps",ZE="_deprecated",M6=[T6,yg,B0e,ZE];Zn.IS_SUBPLOT_OBJ=T6;Zn.IS_LINKED_TO_ARRAY=yg;Zn.DEPRECATED=ZE;Zn.UNDERSCORE_ATTRS=M6;Zn.get=function(){var e={};return el.allTypes.forEach(function(r){e[r]=O0e(r)}),{defs:{valObjects:z0e,metaKeys:M6.concat(["description","role","editType","impliedEdits"]),editType:{traces:XE.traces,layout:XE.layout},impliedEdits:{}},traces:e,layout:H0e(),frames:U0e(),animation:Jv(R0e),config:Jv(P0e)}};Zn.crawl=function(e,r,t,a){var n=t||0;a=a||"",Object.keys(e).forEach(function(i){var o=e[i];if(M6.indexOf(i)===-1){var l=(a?a+".":"")+i;r(o,i,e,n,l),!Zn.isValObject(o)&&Zv(o)&&i!=="impliedEdits"&&Zn.crawl(o,r,n+1,l)}})};Zn.isValObject=function(e){return e&&e.valType!==void 0};Zn.findArrayAttributes=function(e){var r=[],t=[],a=[],n,i;function o(s,u,f,c){t=t.slice(0,c).concat([u]),a=a.slice(0,c).concat([s&&s._isLinkedToArray]);var v=s&&(s.valType==="data_array"||s.arrayOk===!0)&&!(t[c-1]==="colorbar"&&(u==="ticktext"||u==="tickvals"));v&&l(n,0,"")}function l(s,u,f){var c=s[t[u]],v=f+t[u];if(u===t.length-1)N0e(c)&&r.push(i+v);else if(a[u]){if(Array.isArray(c))for(var d=0;d=i.length)return!1;if(e.dimensions===2){if(t++,r.length===t)return e;var o=r[t];if(!dg(o))return!1;e=i[n][o]}else e=i[n]}else e=i}}return e}function dg(e){return e===Math.round(e)&&e>=0}function O0e(e){var r,t;r=el.modules[e]._module,t=r.basePlotModule;var a={};a.type=null;var n=Pl({},pg),i=Pl({},r.attributes);Zn.crawl(i,function(s,u,f,c,v){mg(n,v).set(void 0),s===void 0&&mg(i,v).set(void 0)}),Pl(a,n),el.traceIs(e,"noOpacity")&&delete a.opacity,el.traceIs(e,"showLegend")||(delete a.showlegend,delete a.legendgroup),el.traceIs(e,"noHover")&&(delete a.hoverinfo,delete a.hoverlabel),r.selectPoints||delete a.selectedpoints,Pl(a,i),t.attributes&&Pl(a,t.attributes),a.type=e;var o={meta:r.meta||{},categories:r.categories||{},animatable:!!r.animatable,type:e,attributes:Jv(a)};if(r.layoutAttributes){var l={};Pl(l,r.layoutAttributes),o.layoutAttributes=Jv(l)}return r.animatable||Zn.crawl(o,function(s){Zn.isValObject(s)&&"anim"in s&&delete s.anim}),o}function H0e(){var e={},r,t;Pl(e,A6);for(r in el.subplotsRegistry)if(t=el.subplotsRegistry[r],!!t.layoutAttributes)if(Array.isArray(t.attr))for(var a=0;a{"use strict";var $v=nr(),W0e=Dl(),vf="templateitemname",k6={name:{valType:"string",editType:"none"}};k6[vf]={valType:"string",editType:"calc"};V0.templatedArray=function(e,r){return r._isLinkedToArray=e,r.name=k6.name,r[vf]=k6[vf],r};V0.traceTemplater=function(e){var r={},t,a;for(t in e)a=e[t],Array.isArray(a)&&a.length&&(r[t]=0);function n(i){t=$v.coerce(i,{},W0e,"type");var o={type:t,_template:null};if(t in r){a=e[t];var l=r[t]%a.length;r[t]++,o._template=a[l]}return o}return{newTrace:n}};V0.newContainer=function(e,r,t){var a=e._template,n=a&&(a[r]||t&&a[t]);$v.isPlainObject(n)||(n=null);var i=e[r]={_template:n};return i};V0.arrayTemplater=function(e,r,t){var a=e._template,n=a&&a[$E(r)],i=a&&a[r];(!Array.isArray(i)||!i.length)&&(i=[]);var o={};function l(u){var f={name:u.name,_input:u},c=f[vf]=u[vf];if(!jE(c))return f._template=n,f;for(var v=0;v=a&&(t._input||{})._templateitemname;i&&(n=a);var o=r+"["+n+"]",l;function s(){l={},i&&(l[o]={},l[o][vf]=i)}s();function u(d,p){l[d]=p}function f(d,p){i?$v.nestedProperty(l[o],d).set(p):l[o+"."+d]=p}function c(){var d=l;return s(),d}function v(d,p){d&&f(d,p);var y=c();for(var m in y)$v.nestedProperty(e,m).set(y[m])}return{modifyBase:u,modifyItem:f,getUpdateObj:c,applyUpdate:v}}});var Jn={};Ja(Jn,{AX_ID_PATTERN:()=>K0e,AX_NAME_PATTERN:()=>Q0e,DFLTRANGEX:()=>lce,DFLTRANGEY:()=>sce,DRAGGERSIZE:()=>ice,HOUR_PATTERN:()=>rce,MINDRAG:()=>ace,MINZOOM:()=>nce,REDRAWDELAY:()=>oce,SUBPLOT_PATTERN:()=>ece,WEEKDAY_PATTERN:()=>tce,attrRegex:()=>J0e,clipOnAxisFalseQuery:()=>fce,idRegex:()=>Z0e,layerValue2layerClass:()=>cce,traceLayerClasses:()=>uce,xAxisMatch:()=>j0e,yAxisMatch:()=>$0e,zindexSeparator:()=>vce});var Z0e,J0e,j0e,$0e,K0e,Q0e,ece,rce,tce,ace,nce,ice,oce,lce,sce,uce,fce,cce,vce,jn=Za(()=>{"use strict";Nv();Z0e={x:O0("x","( domain)?"),y:O0("y","( domain)?")},J0e=O0("[xy]axis"),j0e=O0("xaxis"),$0e=O0("yaxis"),K0e=/^[xyz][0-9]*( domain)?$/,Q0e=/^[xyz]axis[0-9]*$/,ece=/^x([0-9]*)y([0-9]*)$/,rce="hour",tce="day of week",ace=8,nce=20,ice=20,oce=50,lce=[-1,6],sce=[-1,4],uce=["imagelayer","heatmaplayer","contourcarpetlayer","contourlayer","funnellayer","waterfalllayer","barlayer","carpetlayer","violinlayer","boxlayer","ohlclayer","scattercarpetlayer","scatterlayer"],fce=[".scatterlayer",".barlayer",".funnellayer",".waterfalllayer"],cce={"above traces":"above","below traces":"below"},vce="z"});var fn=B(xo=>{"use strict";var hce=Pt(),S6=(jn(),vr(Jn));xo.id2name=function(r){if(!(typeof r!="string"||!r.match(S6.AX_ID_PATTERN))){var t=r.split(" ")[0].slice(1);return t==="1"&&(t=""),r.charAt(0)+"axis"+t}};xo.name2id=function(r){if(r.match(S6.AX_NAME_PATTERN)){var t=r.slice(5);return t==="1"&&(t=""),r.charAt(0)+t}};xo.cleanId=function(r,t,a){var n=/( domain)$/.test(r);if(!(typeof r!="string"||!r.match(S6.AX_ID_PATTERN))&&!(t&&r.charAt(0)!==t)&&!(n&&!a)){var i=r.split(" ")[0].slice(1).replace(/^0+/,"");return i==="1"&&(i=""),r.charAt(0)+i+(n&&a?" domain":"")}};xo.list=function(e,r,t){var a=e._fullLayout;if(!a)return[];var n=xo.listIds(e,r),i=new Array(n.length),o;for(o=0;oa?1:-1:+(e.slice(1)||1)-+(r.slice(1)||1)};xo.ref2id=function(e){return/^[xyz]/.test(e)?e.split(" ")[0]:!1};function KE(e,r){if(r&&r.length){for(var t=0;t{"use strict";function dce(e){var r=e._fullLayout._zoomlayer;r&&r.selectAll(".outline-controllers").remove()}function pce(e){var r=e._fullLayout._zoomlayer;r&&r.selectAll(".select-outline").remove(),e._fullLayout._outlining=!1}QE.exports={clearOutlineControllers:dce,clearOutline:pce}});var gg=B((uqe,eq)=>{"use strict";eq.exports={scattermode:{valType:"enumerated",values:["group","overlay"],dflt:"overlay",editType:"calc"},scattergap:{valType:"number",min:0,max:1,editType:"calc"}}});var J2=B(xg=>{"use strict";var bg=Pt(),fqe=(jn(),vr(Jn)).SUBPLOT_PATTERN;xg.getSubplotCalcData=function(e,r,t){var a=bg.subplotsRegistry[r];if(!a)return[];for(var n=a.attr,i=[],o=0;o{"use strict";var mce=Pt(),Kv=nr();X0.manageCommandObserver=function(e,r,t,a){var n={},i=!0;r&&r._commandObserver&&(n=r._commandObserver),n.cache||(n.cache={}),n.lookupTable={};var o=X0.hasSimpleAPICommandBindings(e,t,n.lookupTable);if(r&&r._commandObserver){if(o)return n;if(r._commandObserver.remove)return r._commandObserver.remove(),r._commandObserver=null,n}if(o){rq(e,o,n.cache),n.check=function(){if(i){var f=rq(e,o,n.cache);return f.changed&&a&&n.lookupTable[f.value]!==void 0&&(n.disable(),Promise.resolve(a({value:f.value,type:o.type,prop:o.prop,traces:o.traces,index:n.lookupTable[f.value]})).then(n.enable,n.enable)),f.changed}};for(var l=["plotly_relayout","plotly_redraw","plotly_restyle","plotly_update","plotly_animatingframe","plotly_afterplot"],s=0;s0?".":"")+n;Kv.isPlainObject(i)?C6(i,r,o,a+1):r(o,n,i)}})}});var oi=B((dqe,dq)=>{"use strict";var hqe=ia(),gce=xv().timeFormatLocale,bce=l_().formatLocale,j2=ca(),xce=u_(),_ce=d2().version,ma=Pt(),wce=jv(),Ace=Ra(),ot=nr(),Tce=Kt(),iq=(In(),vr(Wn)).BADNUM,_o=fn(),Mce=hf().clearOutline,kce=gg(),D6=O2(),Sce=w6(),Cce=J2().getModuleCalcData,oq=ot.relinkPrivateKeys,W0=ot._,Yr=dq.exports={};ot.extendFlat(Yr,ma);Yr.attributes=Dl();Yr.attributes.type.values=Yr.allTypes;Yr.fontAttrs=Ai();Yr.layoutAttributes=Ov();var wg=nq();Yr.executeAPICommand=wg.executeAPICommand;Yr.computeAPICommandBindings=wg.computeAPICommandBindings;Yr.manageCommandObserver=wg.manageCommandObserver;Yr.hasSimpleAPICommandBindings=wg.hasSimpleAPICommandBindings;Yr.redrawText=function(e){return e=ot.getGraphDiv(e),new Promise(function(r){setTimeout(function(){e._fullLayout&&(ma.getComponentMethod("annotations","draw")(e),ma.getComponentMethod("legend","draw")(e),ma.getComponentMethod("colorbar","draw")(e),r(Yr.previousPromises(e)))},300)})};Yr.resize=function(e){e=ot.getGraphDiv(e);var r,t=new Promise(function(a,n){(!e||ot.isHidden(e))&&n(new Error("Resize must be passed a displayed plot div element.")),e._redrawTimer&&clearTimeout(e._redrawTimer),e._resolveResize&&(r=e._resolveResize),e._resolveResize=a,e._redrawTimer=setTimeout(function(){if(!e.layout||e.layout.width&&e.layout.height||ot.isHidden(e)){a(e);return}delete e.layout.width,delete e.layout.height;var i=e.changed;e.autoplay=!0,ma.call("relayout",e,{autosize:!0}).then(function(){e.changed=i,e._resolveResize===a&&(delete e._resolveResize,a(e))})},100)});return r&&r(t),t};Yr.previousPromises=function(e){if((e._promises||[]).length)return Promise.all(e._promises).then(function(){e._promises=[]})};Yr.sendDataToCloud=function(e,r){e.emit("plotly_beforeexport");let t=new URL(r).origin;var a=Yr.graphJson(e,!1,"object");a.version=_ce;var n=new URL(r);n.searchParams.set("origin",window.location.origin);var i=window.open(n.href,"_blank");if(!i){console.error("Unable to open Plotly Cloud (the popup may have been blocked)"),e.emit("plotly_exportfail");return}var o=function(l){l.origin===t&&l.data&&l.data.type==="CHART_AUTH_SUCCESS"&&(i.postMessage({type:"chart",chart:a},t),window.removeEventListener("message",o),e.emit("plotly_afterexport"))};return window.addEventListener("message",o),!1};var Dce=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],Lce=["year","month","dayMonth","dayMonthYear"];Yr.supplyDefaults=function(e,r){var t=r&&r.skipUpdateCalc,a=e._fullLayout||{};if(a._skipDefaults){delete a._skipDefaults;return}var n=e._fullLayout={},i=e.layout||{},o=e._fullData||[],l=e._fullData=[],s=e.data||[],u=e.calcdata||[],f=e._context||{},c;e._transitionData||Yr.createTransitionData(e),n._dfltTitle={plot:W0(e,"Click to enter Plot title"),subtitle:W0(e,"Click to enter Plot subtitle"),x:W0(e,"Click to enter X axis title"),y:W0(e,"Click to enter Y axis title"),colorbar:W0(e,"Click to enter Colorscale title"),annotation:W0(e,"new text")},n._traceWord=W0(e,"trace");var v=lq(e,Dce);if(a._initialAutoSizeIsDone){var d=a.width,p=a.height;Yr.supplyLayoutGlobalDefaults(i,n,v),i.width||(n.width=d),i.height||(n.height=p),Yr.sanitizeMargins(n)}else{Yr.supplyLayoutGlobalDefaults(i,n,v);var y=!i.width||!i.height,m=n.autosize,b=f.autosizable,T=y&&(m||b);T?Yr.plotAutoSize(e,i,n):y&&Yr.sanitizeMargins(n),!m&&y&&(i.width=n.width,i.height=n.height)}n._d3locale=Fce(v,n.separators),n._extraFormat=lq(e,Lce),n._initialAutoSizeIsDone=!0,n._dataLength=s.length,n._modules=[],n._visibleModules=[],n._basePlotModules=[];var _=n._subplots=qce(),x=n._splomAxes={x:{},y:{}},w=n._splomSubplots={};n._splomGridDflt={},n._scatterStackOpts={},n._firstScatter={},n._alignmentOpts={},n._colorAxes={},n._requestRangeslider={},n._traceUids=Ece(o,s),Yr.supplyDataDefaults(s,l,i,n);var k=Object.keys(x.x),M=Object.keys(x.y);if(k.length>1&&M.length>1){for(ma.getComponentMethod("grid","sizeDefaults")(i,n),c=0;c15&&M.length>15&&n.shapes.length===0&&n.images.length===0,Yr.linkSubplots(l,n,o,a),Yr.cleanPlot(l,n,o,a);var q=!!(a._has&&a._has("cartesian")),z=!!(n._has&&n._has("cartesian")),I=q,Y=z;I&&!Y?a._bgLayer.remove():Y&&!I&&(n._shouldCreateBgLayer=!0),a._zoomlayer&&!e._dragging&&Mce({_fullLayout:a}),Rce(l,n),oq(n,a),ma.getComponentMethod("colorscale","crossTraceDefaults")(l,n),n._preGUI||(n._preGUI={}),n._tracePreGUI||(n._tracePreGUI={});var V=n._tracePreGUI,J={},U;for(U in V)J[U]="old";for(c=0;c0){var f=1-2*i;o=Math.round(f*o),l=Math.round(f*l)}}var c=Yr.layoutAttributes.width.min,v=Yr.layoutAttributes.height.min;o1,p=!t.height&&Math.abs(a.height-l)>1;(p||d)&&(d&&(a.width=o),p&&(a.height=l)),r._initialAutoSize||(r._initialAutoSize={width:o,height:l}),Yr.sanitizeMargins(a)};Yr.supplyLayoutModuleDefaults=function(e,r,t,a){var n=ma.componentsRegistry,i=r._basePlotModules,o,l,s,u=ma.subplotsRegistry.cartesian;for(o in n)s=n[o],s.includeBasePlot&&s.includeBasePlot(e,r);i.length||i.push(u),r._has("cartesian")&&(ma.getComponentMethod("grid","contentDefaults")(e,r),u.finalizeSubplots(e,r));for(var f in r._subplots)r._subplots[f].sort(ot.subplotSort);for(l=0;l1&&(t.l/=m,t.r/=m)}if(v){var b=(t.t+t.b)/v;b>1&&(t.t/=b,t.b/=b)}var T=t.xl!==void 0?t.xl:t.x,_=t.xr!==void 0?t.xr:t.x,x=t.yt!==void 0?t.yt:t.y,w=t.yb!==void 0?t.yb:t.y;d[r]={l:{val:T,size:t.l+y},r:{val:_,size:t.r+y},b:{val:w,size:t.b+y},t:{val:x,size:t.t+y}},p[r]=1}if(!a._replotting)return Yr.doAutoMargin(e)}};function Nce(e){if("_redrawFromAutoMarginCount"in e._fullLayout)return!1;var r=_o.list(e,"",!0);for(var t in r)if(r[t].autoshift||r[t].shift)return!0;return!1}Yr.doAutoMargin=function(e){var r=e._fullLayout,t=r.width,a=r.height;r._size||(r._size={}),fq(r);var n=r._size,i=r.margin,o={t:0,b:0,l:0,r:0},l=ot.extendFlat({},n),s=i.l,u=i.r,f=i.t,c=i.b,v=r._pushmargin,d=r._pushmarginIds,p=r.minreducedwidth,y=r.minreducedheight;if(i.autoexpand!==!1){for(var m in v)d[m]||delete v[m];var b=e._fullLayout._reservedMargin;for(var T in b)for(var _ in b[T]){var x=b[T][_];o[_]=Math.max(o[_],x)}v.base={l:{val:0,size:s},r:{val:1,size:u},t:{val:1,size:f},b:{val:0,size:c}};for(var w in o){var k=0;for(var M in v)M!=="base"&&j2(v[M][w].size)&&(k=v[M][w].size>k?v[M][w].size:k);var C=Math.max(0,i[w]-k);o[w]=Math.max(0,o[w]-C)}for(var E in v){var F=v[E].l||{},P=v[E].b||{},q=F.val,z=F.size,I=P.val,Y=P.size,V=t-o.r-o.l,J=a-o.t-o.b;for(var U in v){if(j2(z)&&v[U].r){var G=v[U].r.val,W=v[U].r.size;if(G>q){var j=(z*G+(W-V)*q)/(G-q),ae=(W*(1-q)+(z-V)*(1-G))/(G-q);j+ae>s+u&&(s=j,u=ae)}}if(j2(Y)&&v[U].t){var pe=v[U].t.val,se=v[U].t.size;if(pe>I){var we=(Y*pe+(se-J)*I)/(pe-I),te=(se*(1-I)+(Y-J)*(1-pe))/(pe-I);we+te>c+f&&(c=we,f=te)}}}}}var Ee=ot.constrain(t-i.l-i.r,cq,p),de=ot.constrain(a-i.t-i.b,vq,y),Ae=Math.max(0,t-Ee),Ue=Math.max(0,a-de);if(Ae){var ge=(s+u)/Ae;ge>1&&(s/=ge,u/=ge)}if(Ue){var Ne=(c+f)/Ue;Ne>1&&(c/=Ne,f/=Ne)}if(n.l=Math.round(s)+o.l,n.r=Math.round(u)+o.r,n.t=Math.round(f)+o.t,n.b=Math.round(c)+o.b,n.p=Math.round(i.pad),n.w=Math.round(t)-n.l-n.r,n.h=Math.round(a)-n.t-n.b,!r._replotting&&(Yr.didMarginChange(l,n)||Nce(e))){"_redrawFromAutoMarginCount"in r?r._redrawFromAutoMarginCount++:r._redrawFromAutoMarginCount=1;var ir=3*(1+Object.keys(d).length);if(r._redrawFromAutoMarginCount1)return!0}return!1};Yr.graphJson=function(e,r=!1,t="json",a=!1,n=!1){(a&&r&&!e._fullData||a&&!r&&!e._fullLayout)&&Yr.supplyDefaults(e);var i=a?e._fullData:e.data,o=a?e._fullLayout:e.layout,l=(e._transitionData||{})._frames;function s(c,v){if(typeof c=="function")return v?"_function_":null;if(ot.isPlainObject(c)){var d={};return Object.keys(c).sort().forEach(function(b){if(["_","["].indexOf(b.charAt(0))===-1){if(typeof c[b]=="function"){v&&(d[b]="_function");return}d[b]=s(c[b],v)}}),d}var p=Array.isArray(c),y=ot.isTypedArray(c);if((p||y)&&c.dtype&&c.shape){var m=c.bdata;return s({dtype:c.dtype,shape:c.shape,bdata:ot.isArrayBuffer(m)?xce.encode(m):m},v)}return p?c.map(function(b){return s(b,v)}):y?ot.simpleMap(c,ot.identity):ot.isJSDate(c)?ot.ms2DateTimeLocal(+c):c}var u={data:(i||[]).map(function(c){var v=s(c);return r&&delete v.fit,v})};if(!r&&(u.layout=s(o),a)){var f=o._size;u.layout.computed={margin:{b:f.b,l:f.l,r:f.r,t:f.t}}}return l&&(u.frames=s(l)),n&&(u.config=s(e._context,!0)),t==="object"?u:JSON.stringify(u)};Yr.modifyFrames=function(e,r){var t,a,n,i=e._transitionData._frames,o=e._transitionData._frameHash;for(t=0;t0&&(e._transitioningWithDuration=!0),e._transitionData._interruptCallbacks.push(function(){a=!0}),t.redraw&&e._transitionData._interruptCallbacks.push(function(){return ma.call("redraw",e)}),e._transitionData._interruptCallbacks.push(function(){e.emit("plotly_transitioninterrupted",[])});var v=0,d=0;function p(){return v++,function(){d++,!a&&d===v&&l(c)}}t.runFn(p),setTimeout(p())})}function l(c){if(e._transitionData)return i(e._transitionData._interruptCallbacks),Promise.resolve().then(function(){if(t.redraw)return ma.call("redraw",e)}).then(function(){e._transitioning=!1,e._transitioningWithDuration=!1,e.emit("plotly_transitioned",[])}).then(c)}function s(){if(e._transitionData)return e._transitioning=!1,n(e._transitionData._interruptCallbacks)}var u=[Yr.previousPromises,s,t.prepareFn,Yr.rehover,Yr.reselect,o],f=ot.syncOrAsync(u,e);return(!f||!f.then)&&(f=Promise.resolve()),f.then(function(){return e})}Yr.doCalcdata=function(e,r){var t=_o.list(e),a=e._fullData,n=e._fullLayout,i,o,l,s=new Array(a.length),u=(e.calcdata||[]).slice();for(e.calcdata=s,n._numBoxes=0,n._numViolins=0,n._violinScaleGroupStats={},e._hmpixcount=0,e._hmlumcount=0,n._piecolormap={},n._sunburstcolormap={},n._treemapcolormap={},n._iciclecolormap={},n._funnelareacolormap={},l=0;lpq,svgAttrs:()=>Uce,xlink:()=>mq,xmlns:()=>Hce});var Hce,pq,mq,Uce,pf=Za(()=>{"use strict";Hce="http://www.w3.org/2000/xmlns/",pq="http://www.w3.org/2000/svg",mq="http://www.w3.org/1999/xlink",Uce={xmlns:pq,"xmlns:xlink":mq}});var Pi={};Ja(Pi,{CAP_SHIFT:()=>Wce,FROM_BL:()=>Gce,FROM_BR:()=>Vce,FROM_TL:()=>Yce,LINE_SPACING:()=>Xce,MID_SHIFT:()=>Zce,OPPOSITE_SIDE:()=>Jce});var Gce,Yce,Vce,Xce,Wce,Zce,Jce,Ni=Za(()=>{"use strict";Gce={left:0,center:.5,right:1,bottom:0,middle:.5,top:1},Yce={left:0,center:.5,right:1,bottom:1,middle:.5,top:0},Vce={left:1,center:.5,right:0,bottom:0,middle:.5,top:1},Xce=1.3,Wce=.7,Zce=.35,Jce={left:"right",right:"left",top:"bottom",bottom:"top"}});var Mi=B(Ro=>{"use strict";var $n=ia(),rl=nr(),jce=rl.strTranslate,L6=(pf(),vr(df)),$ce=(Ni(),vr(Pi)).LINE_SPACING,Kce=/([^$]*)([$]+[^$]*[$]+)([^$]*)/,wq=e=>e?e.match(Kce):null;Ro.matchTex=wq;Ro.convertToTspans=function(e,r,t){var a=e.text(),n=!e.attr("data-notex")&&r&&r._context.typesetMath&&wq(a);n&&!tve()&&(n=null);var i=$n.select(e.node().parentNode);if(i.empty())return;var o=e.attr("class")?e.attr("class").split(" ")[0]:"text";o+="-math",i.selectAll("svg."+o).remove(),i.selectAll("g."+o+"-group").remove(),e.style("display",null).attr({"data-unformatted":a,"data-math":"N"});function l(){i.empty()||(o=e.attr("class")+"-math",i.select("svg."+o).remove()),e.text("").style("white-space","pre");var s=vve(e.node(),a);s&&e.style("pointer-events","all"),Ro.positionText(e),t&&t.call(e)}return n?(r&&r._promises||[]).push(new Promise(function(s){e.style("display","none");var u=parseInt(e.node().style.fontSize,10),f={fontSize:u},c=e.attr("text-anchor");ave(n[2],f,function(v,d,p){i.selectAll("svg."+o).remove(),i.selectAll("g."+o+"-group").remove();var y=v&&v.select("svg");if(!y||!y.node()){l(),s();return}e.style("display","none");var m=i.append("g").classed(o+"-group",!0).attr({"pointer-events":"none","data-unformatted":a,"data-math":"Y"});m.node().appendChild(y.node()),d&&d.node()&&y.node().insertBefore(d.node().cloneNode(!0),y.node().firstChild);var b=p.width,T=p.height;y.attr({class:o,height:T,preserveAspectRatio:"xMinYMin meet"}).style({overflow:"visible","pointer-events":"none","font-size":f.fontSize+"px"});var _=e.node().style.fill||"black",x=y.select("g");x.attr({fill:_,stroke:_});var w=x.node().getBoundingClientRect(),k=w.width,M=w.height;(k>b||M>T)&&(y.style("overflow","hidden"),w=y.node().getBoundingClientRect(),k=w.width,M=w.height);var C=+e.attr("x"),E=+e.attr("y"),F=u||e.node().getBoundingClientRect().height,P=-F/4;o[0]==="y"?m.attr({transform:"rotate("+[-90,C,E]+")"+jce(-k/2,P-M/2)}):o[0]==="l"?E=P-M/2:o[0]==="a"&&o.indexOf("atitle")!==0?(C=0,E=P):(C=C-k*(c==="middle"?.5:c==="end"?1:0),E=E+P-M/2),y.attr({x:C,y:E}),t&&t.call(e,m),s(m)})})):l(),e};var Qce=/(<|<|<)/g,eve=/(>|>|>)/g;function rve(e){return e.replace(Qce,"\\lt ").replace(eve,"\\gt ")}var E6=null,Aq=()=>typeof MathJax!="undefined"&&MathJax.version?parseInt(MathJax.version.split(".")[0]):null,yq=!1,gq=!1;function tve(){let e=Aq();return e===3||e===4?!0:(e===null?yq||(yq=!0,rl.warn("MathJax is not loaded. Math equations will not be rendered.")):gq||(gq=!0,rl.warn("Unsupported MathJax version:",MathJax.version)),!1)}function ave(e,r,t){let a=Aq();var n;let i=function(){if(!E6){let u=MathJax._.output.svg_ts.SVG,f=rl.extendFlat({},MathJax.config.svg,{fontCache:"local"});a===4&&(f.linebreaks=rl.extendFlat({},f.linebreaks,{inline:!1})),E6=MathJax._.mathjax.mathjax.document(document,rl.extendFlat({},MathJax.config.options,{InputJax:MathJax.startup.input,OutputJax:new u(f)}))}let l="math-output-"+rl.randstr({},64);n=$n.select("body").append("div").attr({id:l}).style({visibility:"hidden",position:"absolute","font-size":r.fontSize+"px"});let s=rve(e).replace(/^\$+|\$+$/g,"");return MathJax._.mathjax.mathjax.handleRetriesFor(function(){return E6.convert(s,{display:!1})}).then(function(u){n.node().appendChild(u)})},o=function(){let l=n.select(".MathJax"),s=!l.empty()&&n.select("svg").node();if(!s)rl.log("There was an error in the tex syntax.",e),t();else{let u=s.getBoundingClientRect(),f=l.select("defs");t(l,f,u)}n.remove()};Promise.resolve().then(i).then(o).catch(l=>{rl.log("MathJax typesetting failed.",e,l),n&&n.remove(),t()})}var Tq={sup:"font-size:70%",sub:"font-size:70%",s:"text-decoration:line-through",u:"text-decoration:underline",b:"font-weight:bold",i:"font-style:italic",a:"cursor:pointer",span:"",em:"font-style:italic;font-weight:bold"},nve={sub:"0.3em",sup:"-0.6em"},ive={sub:"-0.21em",sup:"0.42em"},bq="\u200B",xq=["http:","https:","mailto:","",void 0,":"],Mq=Ro.NEWLINES=/(\r\n?|\n)/g,F6=/(<[^<>]*>)/,R6=/<(\/?)([^ >]*)(\s+(.*))?>/i,ove=//i;Ro.BR_TAG_ALL=//gi;var kq=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,Sq=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,Cq=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,lve=/(^|[\s"'])popup\s*=\s*("([\w=,]*)"|'([\w=,]*)')/i;function Z0(e,r){if(!e)return null;var t=e.match(r),a=t&&(t[3]||t[4]);return a&&Ag(a)}var sve=/(^|;)\s*color:/;Ro.plainText=function(e,r){r=r||{};for(var t=r.len!==void 0&&r.len!==-1?r.len:1/0,a=r.allowedTags!==void 0?r.allowedTags:["br"],n="...",i=n.length,o=e.split(F6),l=[],s="",u=0,f=0;fi?l.push(c.slice(0,Math.max(0,y-i))+n):l.push(c.slice(0,y));break}s=""}}return l.join("")};var uve={mu:"\u03BC",amp:"&",lt:"<",gt:">",nbsp:"\xA0",times:"\xD7",plusmn:"\xB1",deg:"\xB0"},fve=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function Ag(e){return e.replace(fve,function(r,t){var a;return t.charAt(0)==="#"?a=cve(t.charAt(1)==="x"?parseInt(t.slice(2),16):parseInt(t.slice(1),10)):a=uve[t],a||r})}Ro.convertEntities=Ag;function cve(e){if(!(e>1114111)){var r=String.fromCodePoint;if(r)return r(e);var t=String.fromCharCode;return e<=65535?t(e):t((e>>10)+55232,e%1024+56320)}}function vve(e,r){r=r.replace(Mq," ");var t=!1,a=[],n,i=-1;function o(){i++;var k=document.createElementNS(L6.svg,"tspan");$n.select(k).attr({class:"line",dy:i*$ce+"em"}),e.appendChild(k),n=k;var M=a;if(a=[{node:k}],M.length>1)for(var C=1;C.",r);return}var M=a.pop();k!==M.type&&rl.log("Start tag <"+M.type+"> doesnt match end tag <"+k+">. Pretending it did match.",r),n=a[a.length-1].node}var f=ove.test(r);f?o():(n=e,a=[{node:e}]);for(var c=r.split(F6),v=0;v{"use strict";var hve=ia(),K2=ca(),Tg=nr(),J0=Kt(),dve=I0().isValid;function pve(e,r,t){var a=r?Tg.nestedProperty(e,r).get()||{}:e,n=a[t||"color"];n&&n._inputArray&&(n=n._inputArray);var i=!1;if(Tg.isArrayOrTypedArray(n)){for(var o=0;o=0;a--,n++){var i=e[a];t[n]=[1-i[0],i[1]]}return t}function Rq(e,r){r=r||{};for(var t=e.domain,a=e.range,n=a.length,i=new Array(n),o=0;o{"use strict";var Nq=(e6(),vr(Q4)),yve=Nq.FORMAT_LINK,gve=Nq.DATE_FORMAT_LINK;function bve(e,r){return{valType:"string",dflt:"",editType:"none",description:(r?P6:zq)("hover text",e)+["By default the values are formatted using "+(r?"generic number format":"`"+e+"axis.hoverformat`")+"."].join(" ")}}function P6(e,r){return["Sets the "+e+" formatting rule"+(r?" for `"+r+"`":""),"using d3 formatting mini-languages","which are very similar to those in Python. For numbers, see: "+yve+"."].join(" ")}function zq(e,r){return P6(e,r)+[" And for dates see: "+gve+".","We add two items to d3's date formatter:","*%h* for half of the year as a decimal number as well as","*%{n}f* for fractional seconds","with n digits. For example, *2016-10-13 09:15:23.456* with tickformat","*%H~%M~%S.%2f* would display *09~15~23.46*"].join(" ")}Bq.exports={axisHoverFormat:bve,descriptionOnlyNumbers:P6,descriptionWithDates:zq}});var tl=B((bqe,rF)=>{"use strict";var Iq=Ai(),Qv=vs(),eF=af().dash,z6=Sn().extendFlat,Oq=Ra().templatedArray,gqe=Iv().templateFormatStringDescription,Hq=Q2().descriptionWithDates,xve=(In(),vr(Wn)).ONEDAY,ds=(jn(),vr(Jn)),_ve=ds.HOUR_PATTERN,wve=ds.WEEKDAY_PATTERN,N6={valType:"enumerated",values:["auto","linear","array"],editType:"ticks",impliedEdits:{tick0:void 0,dtick:void 0}},Ave=z6({},N6,{values:N6.values.slice().concat(["sync"])});function Uq(e){return{valType:"integer",min:0,dflt:e?5:0,editType:"ticks"}}var Gq={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},Yq={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},Vq={valType:"data_array",editType:"ticks"},Xq={valType:"enumerated",values:["outside","inside",""],editType:"ticks"};function Wq(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=5),r}function Zq(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=1),r}var Jq={valType:"color",dflt:Qv.defaultLine,editType:"ticks"},jq={valType:"color",dflt:Qv.lightLine,editType:"ticks"};function $q(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=1),r}var Kq=z6({},eF,{editType:"ticks"}),Qq={valType:"boolean",editType:"ticks"};rF.exports={visible:{valType:"boolean",editType:"plot"},color:{valType:"color",dflt:Qv.defaultLine,editType:"ticks"},title:{text:{valType:"string",editType:"ticks"},font:Iq({editType:"ticks",description:"Sets this axis' title font."}),standoff:{valType:"number",min:0,editType:"ticks"},editType:"ticks"},type:{valType:"enumerated",values:["-","linear","log","date","category","multicategory"],dflt:"-",editType:"calc",_noTemplating:!0},autotypenumbers:{valType:"enumerated",values:["convert types","strict"],dflt:"convert types",editType:"calc"},autorange:{valType:"enumerated",values:[!0,!1,"reversed","min reversed","max reversed","min","max"],dflt:!0,editType:"axrange",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},autorangeoptions:{minallowed:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},maxallowed:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},clipmin:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},clipmax:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},include:{valType:"any",arrayOk:!0,editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},editType:"plot"},rangemode:{valType:"enumerated",values:["normal","tozero","nonnegative"],dflt:"normal",editType:"plot"},range:{valType:"info_array",items:[{valType:"any",editType:"axrange",impliedEdits:{"^autorange":!1},anim:!0},{valType:"any",editType:"axrange",impliedEdits:{"^autorange":!1},anim:!0}],editType:"axrange",impliedEdits:{autorange:!1},anim:!0},minallowed:{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},maxallowed:{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},fixedrange:{valType:"boolean",dflt:!1,editType:"calc"},modebardisable:{valType:"flaglist",flags:["autoscale","zoominout"],extras:["none"],dflt:"none",editType:"modebar"},insiderange:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},scaleanchor:{valType:"enumerated",values:[ds.idRegex.x.toString(),ds.idRegex.y.toString(),!1],editType:"plot"},scaleratio:{valType:"number",min:0,dflt:1,editType:"plot"},constrain:{valType:"enumerated",values:["range","domain"],editType:"plot"},constraintoward:{valType:"enumerated",values:["left","center","right","top","middle","bottom"],editType:"plot"},matches:{valType:"enumerated",values:[ds.idRegex.x.toString(),ds.idRegex.y.toString()],editType:"calc"},rangebreaks:Oq("rangebreak",{enabled:{valType:"boolean",dflt:!0,editType:"calc"},bounds:{valType:"info_array",items:[{valType:"any",editType:"calc"},{valType:"any",editType:"calc"}],editType:"calc"},pattern:{valType:"enumerated",values:[wve,_ve,""],editType:"calc"},values:{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"any",editType:"calc"}},dvalue:{valType:"number",editType:"calc",min:0,dflt:xve},editType:"calc"}),tickmode:Ave,nticks:Uq(),tick0:Gq,dtick:Yq,ticklabelstep:{valType:"integer",min:1,dflt:1,editType:"ticks"},tickvals:Vq,ticktext:{valType:"data_array",editType:"ticks"},ticks:Xq,tickson:{valType:"enumerated",values:["labels","boundaries"],dflt:"labels",editType:"ticks"},ticklabelmode:{valType:"enumerated",values:["instant","period"],dflt:"instant",editType:"ticks"},ticklabelposition:{valType:"enumerated",values:["outside","inside","outside top","inside top","outside left","inside left","outside right","inside right","outside bottom","inside bottom"],dflt:"outside",editType:"calc"},ticklabeloverflow:{valType:"enumerated",values:["allow","hide past div","hide past domain"],editType:"calc"},ticklabelshift:{valType:"integer",dflt:0,editType:"ticks"},ticklabelstandoff:{valType:"integer",dflt:0,editType:"ticks"},ticklabelindex:{valType:"integer",arrayOk:!0,editType:"calc"},mirror:{valType:"enumerated",values:[!0,"ticks",!1,"all","allticks"],dflt:!1,editType:"ticks+layoutstyle"},ticklen:Wq(),tickwidth:Zq(),tickcolor:Jq,showticklabels:{valType:"boolean",dflt:!0,editType:"ticks"},labelalias:{valType:"any",dflt:!1,editType:"ticks"},automargin:{valType:"flaglist",flags:["height","width","left","right","top","bottom"],extras:[!0,!1],dflt:!1,editType:"ticks"},showspikes:{valType:"boolean",dflt:!1,editType:"modebar"},spikecolor:{valType:"color",dflt:null,editType:"none"},spikethickness:{valType:"number",dflt:3,editType:"none"},spikedash:z6({},eF,{dflt:"dash",editType:"none"}),spikemode:{valType:"flaglist",flags:["toaxis","across","marker"],dflt:"toaxis",editType:"none"},spikesnap:{valType:"enumerated",values:["data","cursor","hovered data"],dflt:"hovered data",editType:"none"},tickfont:Iq({editType:"ticks"}),tickangle:{valType:"angle",dflt:"auto",editType:"ticks"},autotickangles:{valType:"info_array",freeLength:!0,items:{valType:"angle"},dflt:[0,30,90],editType:"ticks"},tickprefix:{valType:"string",dflt:"",editType:"ticks"},showtickprefix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},ticksuffix:{valType:"string",dflt:"",editType:"ticks"},showticksuffix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},showexponent:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},exponentformat:{valType:"enumerated",values:["none","e","E","power","SI","B","SI extended"],dflt:"B",editType:"ticks"},minexponent:{valType:"number",dflt:3,min:0,editType:"ticks"},separatethousands:{valType:"boolean",dflt:!1,editType:"ticks"},tickformat:{valType:"string",dflt:"",editType:"ticks",description:Hq("tick label")},tickformatstops:Oq("tickformatstop",{enabled:{valType:"boolean",dflt:!0,editType:"ticks"},dtickrange:{valType:"info_array",items:[{valType:"any",editType:"ticks"},{valType:"any",editType:"ticks"}],editType:"ticks"},value:{valType:"string",dflt:"",editType:"ticks"},editType:"ticks"}),hoverformat:{valType:"string",dflt:"",editType:"none",description:Hq("hover text")},unifiedhovertitle:{text:{valType:"string",dflt:"",editType:"none"},editType:"none"},showline:{valType:"boolean",dflt:!1,editType:"ticks+layoutstyle"},linecolor:{valType:"color",dflt:Qv.defaultLine,editType:"layoutstyle"},linewidth:{valType:"number",min:0,dflt:1,editType:"ticks+layoutstyle"},showgrid:Qq,gridcolor:jq,gridwidth:$q(),griddash:Kq,zeroline:{valType:"boolean",editType:"ticks"},zerolinecolor:{valType:"color",dflt:Qv.defaultLine,editType:"ticks"},zerolinelayer:{valType:"enumerated",values:["above traces","below traces"],dflt:"below traces",editType:"plot"},zerolinewidth:{valType:"number",dflt:1,editType:"ticks"},showdividers:{valType:"boolean",dflt:!0,editType:"ticks"},dividercolor:{valType:"color",dflt:Qv.defaultLine,editType:"ticks"},dividerwidth:{valType:"number",dflt:1,editType:"ticks"},anchor:{valType:"enumerated",values:["free",ds.idRegex.x.toString(),ds.idRegex.y.toString()],editType:"plot"},side:{valType:"enumerated",values:["top","bottom","left","right"],editType:"plot"},overlaying:{valType:"enumerated",values:["free",ds.idRegex.x.toString(),ds.idRegex.y.toString()],editType:"plot"},minor:{tickmode:N6,nticks:Uq("minor"),tick0:Gq,dtick:Yq,tickvals:Vq,ticks:Xq,ticklen:Wq("minor"),tickwidth:Zq("minor"),tickcolor:Jq,gridcolor:jq,gridwidth:$q("minor"),griddash:Kq,showgrid:Qq,editType:"ticks"},minorloglabels:{valType:"enumerated",values:["small digits","complete","none"],dflt:"small digits",editType:"calc"},layer:{valType:"enumerated",values:["above traces","below traces"],dflt:"above traces",editType:"plot"},domain:{valType:"info_array",items:[{valType:"number",min:0,max:1,editType:"plot"},{valType:"number",min:0,max:1,editType:"plot"}],dflt:[0,1],editType:"plot"},position:{valType:"number",min:0,max:1,dflt:0,editType:"plot"},autoshift:{valType:"boolean",dflt:!1,editType:"plot"},shift:{valType:"number",editType:"plot"},categoryorder:{valType:"enumerated",values:["trace","category ascending","category descending","array","total ascending","total descending","min ascending","min descending","max ascending","max descending","sum ascending","sum descending","mean ascending","mean descending","geometric mean ascending","geometric mean descending","median ascending","median descending"],dflt:"trace",editType:"calc"},categoryarray:{valType:"data_array",editType:"calc"},uirevision:{valType:"any",editType:"none"},editType:"calc"}});var Mg=B((xqe,aF)=>{"use strict";var Ka=tl(),tF=Ai(),B6=Sn().extendFlat,Tve=ql().overrideAll;aF.exports=Tve({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:Ka.linecolor,outlinewidth:Ka.linewidth,bordercolor:Ka.linecolor,borderwidth:{valType:"number",min:0,dflt:0},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},tickmode:Ka.minor.tickmode,nticks:Ka.nticks,tick0:Ka.tick0,dtick:B6({},Ka.dtick,{}),tickvals:Ka.tickvals,ticktext:Ka.ticktext,ticks:B6({},Ka.ticks,{dflt:""}),ticklabeloverflow:B6({},Ka.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:Ka.ticklen,tickwidth:Ka.tickwidth,tickcolor:Ka.tickcolor,ticklabelstep:Ka.ticklabelstep,showticklabels:Ka.showticklabels,labelalias:Ka.labelalias,tickfont:tF({description:"Sets the color bar's tick label font"}),tickangle:Ka.tickangle,tickformat:Ka.tickformat,tickformatstops:Ka.tickformatstops,tickprefix:Ka.tickprefix,showtickprefix:Ka.showtickprefix,ticksuffix:Ka.ticksuffix,showticksuffix:Ka.showticksuffix,separatethousands:Ka.separatethousands,exponentformat:Ka.exponentformat,minexponent:Ka.minexponent,showexponent:Ka.showexponent,title:{text:{valType:"string"},font:tF({description:"Sets this color bar's title font."}),side:{valType:"enumerated",values:["right","top","bottom"]}}},"colorbars","from-root")});var j0=B((wqe,iF)=>{"use strict";var Mve=Mg(),kve=(Nv(),vr(B2)).counter,Sve=(tg(),vr(rg)).default,nF=I0().scales,_qe=Sve(nF);function kg(e){return"`"+e+"`"}iF.exports=function(r,t){r=r||"",t=t||{};var a=t.cLetter||"c",n="onlyIfNumerical"in t?t.onlyIfNumerical:!!r,i="noScale"in t?t.noScale:r==="marker.line",o="showScaleDflt"in t?t.showScaleDflt:a==="z",l=typeof t.colorscaleDflt=="string"?nF[t.colorscaleDflt]:null,s=t.editTypeOverride||"",u=r?r+".":"",f,c;"colorAttr"in t?(f=t.colorAttr,c=t.colorAttr):(f={z:"z",c:"color"}[a],c="in "+kg(u+f));var v=n?" Has an effect only if "+c+" is set to a numerical array.":"",d=a+"auto",p=a+"min",y=a+"max",m=a+"mid",b=kg(u+d),T=kg(u+p),_=kg(u+y),x=T+" and "+_,w={};w[p]=w[y]=void 0;var k={};k[d]=!1;var M={};return f==="color"&&(M.color={valType:"color",arrayOk:!0,editType:s||"style"},t.anim&&(M.color.anim=!0)),M[d]={valType:"boolean",dflt:!0,editType:"calc",impliedEdits:w},M[p]={valType:"number",dflt:null,editType:s||"plot",impliedEdits:k},M[y]={valType:"number",dflt:null,editType:s||"plot",impliedEdits:k},M[m]={valType:"number",dflt:null,editType:"calc",impliedEdits:w},M.colorscale={valType:"colorscale",editType:"calc",dflt:l,impliedEdits:{autocolorscale:!1}},M.autocolorscale={valType:"boolean",dflt:t.autoColorDflt!==!1,editType:"calc",impliedEdits:{colorscale:void 0}},M.reversescale={valType:"boolean",dflt:!1,editType:"plot"},i||(M.showscale={valType:"boolean",dflt:o,editType:"calc"},M.colorbar=Mve),t.noColorAxis||(M.coloraxis={valType:"subplotid",regex:kve("coloraxis"),dflt:null,editType:"calc"}),M}});var O6=B((Aqe,oF)=>{"use strict";var Cve=Sn().extendFlat,Dve=j0(),I6=I0().scales;oF.exports={editType:"calc",colorscale:{editType:"calc",sequential:{valType:"colorscale",dflt:I6.Reds,editType:"calc"},sequentialminus:{valType:"colorscale",dflt:I6.Blues,editType:"calc"},diverging:{valType:"colorscale",dflt:I6.RdBu,editType:"calc"}},coloraxis:Cve({_isSubplotObj:!0,editType:"calc"},Dve("",{colorAttr:"corresponding trace color array(s)",noColorAxis:!0,showScaleDflt:!0}))}});var H6=B((Tqe,lF)=>{"use strict";var Lve=nr();lF.exports=function(r){return Lve.isPlainObject(r.colorbar)}});var Y6=B(G6=>{"use strict";var U6=ca(),sF=nr(),uF=(In(),vr(Wn)),Eve=uF.ONEDAY,qve=uF.ONEWEEK;G6.dtick=function(e,r){var t=r==="log",a=r==="date",n=r==="category",i=a?Eve:1;if(!e)return i;if(U6(e))return e=Number(e),e<=0?i:n?Math.max(1,Math.round(e)):a?Math.max(.1,e):e;if(typeof e!="string"||!(a||t))return i;var o=e.charAt(0),l=e.slice(1);return l=U6(l)?Number(l):0,l<=0||!(a&&o==="M"&&l===Math.round(l)||t&&o==="L"||t&&o==="D"&&(l===1||l===2))?i:e};G6.tick0=function(e,r,t,a){if(r==="date")return sF.cleanDate(e,sF.dateTick0(t,a%qve===0?1:0));if(!(a==="D1"||a==="D2"))return U6(e)?Number(e):0}});var V6=B((kqe,cF)=>{"use strict";var fF=Y6(),Fve=nr().isArrayOrTypedArray,Rve=no().isTypedArraySpec,Pve=no().decodeTypedArraySpec;cF.exports=function(r,t,a,n,i={}){var o=i.isMinor,l=o?r.minor||{}:r,s=o?t.minor:t,u=o?"minor.":"";function f(x){var w=l[x];return Rve(w)&&(w=Pve(w)),w!==void 0?w:(s._template||{})[x]}var c=f("tick0"),v=f("dtick"),d=f("tickvals"),p=f("overlaying"),y=n==="category"||n==="multicategory",m;Fve(d)?m="array":v?m="linear":p&&!y?m="sync":m="auto";var b=a(u+"tickmode",m);if(b==="auto"||b==="sync")a(u+"nticks");else if(b==="linear"){var T=s.dtick=fF.dtick(v,n);s.tick0=fF.tick0(c,n,t.calendar,T)}else if(n!=="multicategory"){var _=a(u+"tickvals");_===void 0?s.tickmode="auto":o||a("ticktext")}}});var W6=B((Sqe,hF)=>{"use strict";var X6=nr(),vF=tl();hF.exports=function(r,t,a,n){var i=n.isMinor,o=i?r.minor||{}:r,l=i?t.minor:t,s=i?vF.minor:vF,u=i?"minor.":"",f=X6.coerce2(o,l,s,"ticklen",i?(t.ticklen||5)*.6:void 0),c=X6.coerce2(o,l,s,"tickwidth",i?t.tickwidth||1:void 0),v=X6.coerce2(o,l,s,"tickcolor",(i?t.tickcolor:void 0)||l.color),d=a(u+"ticks",!i&&n.outerTicks||f||c||v?"outside":"");d||(delete l.ticklen,delete l.tickwidth,delete l.tickcolor)}});var Z6=B((Cqe,dF)=>{"use strict";dF.exports=function(r){var t=["showexponent","showtickprefix","showticksuffix"],a=t.filter(function(i){return r[i]!==void 0}),n=function(i){return r[i]===r[a[0]]};if(a.every(n)||a.length===1)return r[a[0]]}});var Po=B((Dqe,pF)=>{"use strict";var Sg=nr(),Nve=Ra();pF.exports=function(r,t,a){var n=a.name,i=a.inclusionAttr||"visible",o=t[n],l=Sg.isArrayOrTypedArray(r[n])?r[n]:[],s=t[n]=[],u=Nve.arrayTemplater(t,n,i),f,c;for(f=0;f{"use strict";var J6=nr(),zve=Kt().contrast,mF=tl(),Bve=Z6(),Ive=Po();yF.exports=function(r,t,a,n,i){i||(i={});var o=a("labelalias");J6.isPlainObject(o)||delete t.labelalias;var l=Bve(r),s=a("showticklabels");if(s){i.noTicklabelshift||a("ticklabelshift"),i.noTicklabelstandoff||a("ticklabelstandoff");var u=i.font||{},f=t.color,c=t.ticklabelposition||"",v=c.indexOf("inside")!==-1?zve(i.bgColor):f&&f!==mF.color.dflt?f:u.color;if(J6.coerceFont(a,"tickfont",u,{overrideDflt:{color:v}}),!i.noTicklabelstep&&n!=="multicategory"&&n!=="log"&&a("ticklabelstep"),!i.noAng){var d=a("tickangle");!i.noAutotickangles&&d==="auto"&&a("autotickangles")}if(n!=="category"){var p=a("tickformat");Ive(r,t,{name:"tickformatstops",inclusionAttr:"enabled",handleItemDefaults:Ove}),t.tickformatstops.length||delete t.tickformatstops,!i.noExp&&!p&&n!=="date"&&(a("showexponent",l),a("exponentformat"),a("minexponent"),a("separatethousands"))}!i.noMinorloglabels&&n==="log"&&a("minorloglabels")}};function Ove(e,r){function t(n,i){return J6.coerce(e,r,mF.tickformatstops,n,i)}var a=t("enabled");a&&(t("dtickrange"),t("value"))}});var $6=B((Eqe,gF)=>{"use strict";var Hve=Z6();gF.exports=function(r,t,a,n,i){i||(i={});var o=i.tickSuffixDflt,l=Hve(r),s=a("tickprefix");s&&a("showtickprefix",l);var u=a("ticksuffix",o);u&&a("showticksuffix",l)}});var K6=B((qqe,bF)=>{"use strict";var mf=nr(),Uve=Ra(),Gve=V6(),Yve=W6(),Vve=j6(),Xve=$6(),Wve=Mg();bF.exports=function(r,t,a){var n=Uve.newContainer(t,"colorbar"),i=r.colorbar||{};function o(P,q){return mf.coerce(i,n,Wve,P,q)}var l=a.margin||{t:0,b:0,l:0,r:0},s=a.width-l.l-l.r,u=a.height-l.t-l.b,f=o("orientation"),c=f==="v",v=o("thicknessmode");o("thickness",v==="fraction"?30/(c?s:u):30);var d=o("lenmode");o("len",d==="fraction"?1:c?u:s);var p=o("yref"),y=o("xref"),m=p==="paper",b=y==="paper",T,_,x,w="left";c?(x="middle",w=b?"left":"right",T=b?1.02:1,_=.5):(x=m?"bottom":"top",w="center",T=.5,_=m?1.02:1),mf.coerce(i,n,{x:{valType:"number",min:b?-2:0,max:b?3:1,dflt:T}},"x"),mf.coerce(i,n,{y:{valType:"number",min:m?-2:0,max:m?3:1,dflt:_}},"y"),o("xanchor",w),o("xpad"),o("yanchor",x),o("ypad"),mf.noneOrAll(i,n,["x","y"]),o("outlinecolor"),o("outlinewidth"),o("bordercolor"),o("borderwidth"),o("bgcolor");var k=mf.coerce(i,n,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:c?["outside","inside","outside top","inside top","outside bottom","inside bottom"]:["outside","inside","outside left","inside left","outside right","inside right"]}},"ticklabelposition");o("ticklabeloverflow",k.indexOf("inside")!==-1?"hide past domain":"hide past div"),Gve(i,n,o,"linear");var M=a.font,C={noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0,outerTicks:!1,font:M};k.indexOf("inside")!==-1&&(C.bgColor="black"),Xve(i,n,o,"linear",C),Vve(i,n,o,"linear",C),Yve(i,n,o,"linear",C),o("title.text",a._dfltTitle.colorbar);var E=n.showticklabels?n.tickfont:M,F=mf.extendFlat({},M,{family:E.family,size:mf.bigFont(E.size)});mf.coerceFont(o,"title.font",F),o("title.side",c?"top":"right")}});var eh=B((Fqe,wF)=>{"use strict";var xF=ca(),e7=nr(),Zve=H6(),Jve=K6(),_F=I0().isValid,jve=Pt().traceIs;function Q6(e,r){var t=r.slice(0,r.length-1);return r?e7.nestedProperty(e,t).get()||{}:e}wF.exports=function e(r,t,a,n,i){var o=i.prefix,l=i.cLetter,s="_module"in t,u=Q6(r,o),f=Q6(t,o),c=Q6(t._template||{},o)||{},v=function(){return delete r.coloraxis,delete t.coloraxis,e(r,t,a,n,i)};if(s){var d=a._colorAxes||{},p=n(o+"coloraxis");if(p){var y=jve(t,"contour")&&e7.nestedProperty(t,"contours.coloring").get()||"heatmap",m=d[p];m?(m[2].push(v),m[0]!==y&&(m[0]=!1,e7.warn(["Ignoring coloraxis:",p,"setting","as it is linked to incompatible colorscales."].join(" ")))):d[p]=[y,t,[v]];return}}var b=u[l+"min"],T=u[l+"max"],_=xF(b)&&xF(T)&&b{"use strict";var AF=nr(),$ve=Ra(),TF=O6(),Kve=eh();MF.exports=function(r,t){function a(c,v){return AF.coerce(r,t,TF,c,v)}a("colorscale.sequential"),a("colorscale.sequentialminus"),a("colorscale.diverging");var n=t._colorAxes,i,o;function l(c,v){return AF.coerce(i,o,TF.coloraxis,c,v)}for(var s in n){var u=n[s];if(u[0])i=r[s]||{},o=$ve.newContainer(t,s,"coloraxis"),o._name=s,Kve(i,o,t,l,{prefix:"",cLetter:"c"});else{for(var f=0;f{"use strict";var Qve=nr(),ehe=Nl().hasColorscale,rhe=Nl().extractOpts;SF.exports=function(r,t){function a(f,c){var v=f["_"+c];v!==void 0&&(f[c]=v)}function n(f,c){var v=c.container?Qve.nestedProperty(f,c.container).get():f;if(v)if(v.coloraxis)v._colorAx=t[v.coloraxis];else{var d=rhe(v),p=d.auto;(p||d.min===void 0)&&a(v,c.min),(p||d.max===void 0)&&a(v,c.max),d.autocolorscale&&a(v,"colorscale")}}for(var i=0;i{"use strict";var DF=ca(),r7=nr(),the=Nl().extractOpts;LF.exports=function(r,t,a){var n=r._fullLayout,i=a.vals,o=a.containerStr,l=o?r7.nestedProperty(t,o).get():t,s=the(l),u=s.auto!==!1,f=s.min,c=s.max,v=s.mid,d=function(){return r7.aggNums(Math.min,null,i)},p=function(){return r7.aggNums(Math.max,null,i)};if(f===void 0?f=d():u&&(l._colorAx&&DF(f)?f=Math.min(f,d()):f=d()),c===void 0?c=p():u&&(l._colorAx&&DF(c)?c=Math.max(c,p()):c=p()),u&&v!==void 0&&(c-v>v-f?f=v-(c-v):c-v=0?y=n.colorscale.sequential:y=n.colorscale.sequentialminus,s._sync("colorscale",y)}}});var th=B((zqe,EF)=>{"use strict";var Cg=I0(),rh=Nl();EF.exports={moduleType:"component",name:"colorscale",attributes:j0(),layoutAttributes:O6(),supplyLayoutDefaults:kF(),handleDefaults:eh(),crossTraceDefaults:CF(),calc:t7(),scales:Cg.scales,defaultScale:Cg.defaultScale,getScale:Cg.get,isValidScale:Cg.isValid,hasColorscale:rh.hasColorscale,extractOpts:rh.extractOpts,extractScale:rh.extractScale,flipScale:rh.flipScale,makeColorScaleFunc:rh.makeColorScaleFunc,makeColorScaleFuncFromTrace:rh.makeColorScaleFuncFromTrace}});var yi=B((Bqe,FF)=>{"use strict";var qF=nr(),ahe=no().isTypedArraySpec;FF.exports={hasLines:function(e){return e.visible&&e.mode&&e.mode.indexOf("lines")!==-1},hasMarkers:function(e){return e.visible&&(e.mode&&e.mode.indexOf("markers")!==-1||e.type==="splom")},hasText:function(e){return e.visible&&e.mode&&e.mode.indexOf("text")!==-1},isBubble:function(e){var r=e.marker;return qF.isPlainObject(r)&&(qF.isArrayOrTypedArray(r.size)||ahe(r.size))}}});var a7=B((Iqe,RF)=>{"use strict";var nhe=ca();RF.exports=function(r,t){t||(t=2);var a=r.marker,n=a.sizeref||1,i=a.sizemin||0,o=a.sizemode==="area"?function(l){return Math.sqrt(l/n)}:function(l){return l/n};return function(l){var s=o(l/t);return nhe(s)&&s>0?Math.max(s,i):0}}});var ps=B(ki=>{"use strict";var e1=nr();ki.getSubplot=function(e){return e.subplot||e.xaxis+e.yaxis||e.geo};ki.isTraceInSubplots=function(e,r){if(e.type==="splom"){for(var t=e.xaxes||[],a=e.yaxes||[],n=0;n=0&&t.index{var n7={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},she=/([astvzqmhlc])([^astvzqmhlc]*)/gi,uhe=/-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/gi;function fhe(e){let r=[];return e.replace(she,(t,a,n)=>{let i=a.toLowerCase(),o=a,l=che(n);for(i==="m"&&l.length>2&&(r.push([o,...l.splice(0,2)]),i="l",o=o==="m"?"l":"L");;){if(l.length===n7[i])return r.push([o,...l]),"";if(l.length{"use strict";var vhe=i7(),Dr=function(e,r){return r?Math.round(e*(r=Math.pow(10,r)))/r:Math.round(e)},Ut="M0,0Z",BF=Math.sqrt(2),yf=Math.sqrt(3),o7=Math.PI,l7=Math.cos,s7=Math.sin;GF.exports={circle:{n:0,f:function(e,r,t){if(Gt(r))return Ut;var a=Dr(e,2),n="M"+a+",0A"+a+","+a+" 0 1,1 0,-"+a+"A"+a+","+a+" 0 0,1 "+a+",0Z";return t?Yt(r,t,n):n}},square:{n:1,f:function(e,r,t){if(Gt(r))return Ut;var a=Dr(e,2);return Yt(r,t,"M"+a+","+a+"H-"+a+"V-"+a+"H"+a+"Z")}},diamond:{n:2,f:function(e,r,t){if(Gt(r))return Ut;var a=Dr(e*1.3,2);return Yt(r,t,"M"+a+",0L0,"+a+"L-"+a+",0L0,-"+a+"Z")}},cross:{n:3,f:function(e,r,t){if(Gt(r))return Ut;var a=Dr(e*.4,2),n=Dr(e*1.2,2);return Yt(r,t,"M"+n+","+a+"H"+a+"V"+n+"H-"+a+"V"+a+"H-"+n+"V-"+a+"H-"+a+"V-"+n+"H"+a+"V-"+a+"H"+n+"Z")}},x:{n:4,f:function(e,r,t){if(Gt(r))return Ut;var a=Dr(e*.8/BF,2),n="l"+a+","+a,i="l"+a+",-"+a,o="l-"+a+",-"+a,l="l-"+a+","+a;return Yt(r,t,"M0,"+a+n+i+o+i+o+l+o+l+n+l+n+"Z")}},"triangle-up":{n:5,f:function(e,r,t){if(Gt(r))return Ut;var a=Dr(e*2/yf,2),n=Dr(e/2,2),i=Dr(e,2);return Yt(r,t,"M-"+a+","+n+"H"+a+"L0,-"+i+"Z")}},"triangle-down":{n:6,f:function(e,r,t){if(Gt(r))return Ut;var a=Dr(e*2/yf,2),n=Dr(e/2,2),i=Dr(e,2);return Yt(r,t,"M-"+a+",-"+n+"H"+a+"L0,"+i+"Z")}},"triangle-left":{n:7,f:function(e,r,t){if(Gt(r))return Ut;var a=Dr(e*2/yf,2),n=Dr(e/2,2),i=Dr(e,2);return Yt(r,t,"M"+n+",-"+a+"V"+a+"L-"+i+",0Z")}},"triangle-right":{n:8,f:function(e,r,t){if(Gt(r))return Ut;var a=Dr(e*2/yf,2),n=Dr(e/2,2),i=Dr(e,2);return Yt(r,t,"M-"+n+",-"+a+"V"+a+"L"+i+",0Z")}},"triangle-ne":{n:9,f:function(e,r,t){if(Gt(r))return Ut;var a=Dr(e*.6,2),n=Dr(e*1.2,2);return Yt(r,t,"M-"+n+",-"+a+"H"+a+"V"+n+"Z")}},"triangle-se":{n:10,f:function(e,r,t){if(Gt(r))return Ut;var a=Dr(e*.6,2),n=Dr(e*1.2,2);return Yt(r,t,"M"+a+",-"+n+"V"+a+"H-"+n+"Z")}},"triangle-sw":{n:11,f:function(e,r,t){if(Gt(r))return Ut;var a=Dr(e*.6,2),n=Dr(e*1.2,2);return Yt(r,t,"M"+n+","+a+"H-"+a+"V-"+n+"Z")}},"triangle-nw":{n:12,f:function(e,r,t){if(Gt(r))return Ut;var a=Dr(e*.6,2),n=Dr(e*1.2,2);return Yt(r,t,"M-"+a+","+n+"V-"+a+"H"+n+"Z")}},pentagon:{n:13,f:function(e,r,t){if(Gt(r))return Ut;var a=Dr(e*.951,2),n=Dr(e*.588,2),i=Dr(-e,2),o=Dr(e*-.309,2),l=Dr(e*.809,2);return Yt(r,t,"M"+a+","+o+"L"+n+","+l+"H-"+n+"L-"+a+","+o+"L0,"+i+"Z")}},hexagon:{n:14,f:function(e,r,t){if(Gt(r))return Ut;var a=Dr(e,2),n=Dr(e/2,2),i=Dr(e*yf/2,2);return Yt(r,t,"M"+i+",-"+n+"V"+n+"L0,"+a+"L-"+i+","+n+"V-"+n+"L0,-"+a+"Z")}},hexagon2:{n:15,f:function(e,r,t){if(Gt(r))return Ut;var a=Dr(e,2),n=Dr(e/2,2),i=Dr(e*yf/2,2);return Yt(r,t,"M-"+n+","+i+"H"+n+"L"+a+",0L"+n+",-"+i+"H-"+n+"L-"+a+",0Z")}},octagon:{n:16,f:function(e,r,t){if(Gt(r))return Ut;var a=Dr(e*.924,2),n=Dr(e*.383,2);return Yt(r,t,"M-"+n+",-"+a+"H"+n+"L"+a+",-"+n+"V"+n+"L"+n+","+a+"H-"+n+"L-"+a+","+n+"V-"+n+"Z")}},star:{n:17,f:function(e,r,t){if(Gt(r))return Ut;var a=e*1.4,n=Dr(a*.225,2),i=Dr(a*.951,2),o=Dr(a*.363,2),l=Dr(a*.588,2),s=Dr(-a,2),u=Dr(a*-.309,2),f=Dr(a*.118,2),c=Dr(a*.809,2),v=Dr(a*.382,2);return Yt(r,t,"M"+n+","+u+"H"+i+"L"+o+","+f+"L"+l+","+c+"L0,"+v+"L-"+l+","+c+"L-"+o+","+f+"L-"+i+","+u+"H-"+n+"L0,"+s+"Z")}},hexagram:{n:18,f:function(e,r,t){if(Gt(r))return Ut;var a=Dr(e*.66,2),n=Dr(e*.38,2),i=Dr(e*.76,2);return Yt(r,t,"M-"+i+",0l-"+n+",-"+a+"h"+i+"l"+n+",-"+a+"l"+n+","+a+"h"+i+"l-"+n+","+a+"l"+n+","+a+"h-"+i+"l-"+n+","+a+"l-"+n+",-"+a+"h-"+i+"Z")}},"star-triangle-up":{n:19,f:function(e,r,t){if(Gt(r))return Ut;var a=Dr(e*yf*.8,2),n=Dr(e*.8,2),i=Dr(e*1.6,2),o=Dr(e*4,2),l="A "+o+","+o+" 0 0 1 ";return Yt(r,t,"M-"+a+","+n+l+a+","+n+l+"0,-"+i+l+"-"+a+","+n+"Z")}},"star-triangle-down":{n:20,f:function(e,r,t){if(Gt(r))return Ut;var a=Dr(e*yf*.8,2),n=Dr(e*.8,2),i=Dr(e*1.6,2),o=Dr(e*4,2),l="A "+o+","+o+" 0 0 1 ";return Yt(r,t,"M"+a+",-"+n+l+"-"+a+",-"+n+l+"0,"+i+l+a+",-"+n+"Z")}},"star-square":{n:21,f:function(e,r,t){if(Gt(r))return Ut;var a=Dr(e*1.1,2),n=Dr(e*2,2),i="A "+n+","+n+" 0 0 1 ";return Yt(r,t,"M-"+a+",-"+a+i+"-"+a+","+a+i+a+","+a+i+a+",-"+a+i+"-"+a+",-"+a+"Z")}},"star-diamond":{n:22,f:function(e,r,t){if(Gt(r))return Ut;var a=Dr(e*1.4,2),n=Dr(e*1.9,2),i="A "+n+","+n+" 0 0 1 ";return Yt(r,t,"M-"+a+",0"+i+"0,"+a+i+a+",0"+i+"0,-"+a+i+"-"+a+",0Z")}},"diamond-tall":{n:23,f:function(e,r,t){if(Gt(r))return Ut;var a=Dr(e*.7,2),n=Dr(e*1.4,2);return Yt(r,t,"M0,"+n+"L"+a+",0L0,-"+n+"L-"+a+",0Z")}},"diamond-wide":{n:24,f:function(e,r,t){if(Gt(r))return Ut;var a=Dr(e*1.4,2),n=Dr(e*.7,2);return Yt(r,t,"M0,"+n+"L"+a+",0L0,-"+n+"L-"+a+",0Z")}},hourglass:{n:25,f:function(e,r,t){if(Gt(r))return Ut;var a=Dr(e,2);return Yt(r,t,"M"+a+","+a+"H-"+a+"L"+a+",-"+a+"H-"+a+"Z")},noDot:!0},bowtie:{n:26,f:function(e,r,t){if(Gt(r))return Ut;var a=Dr(e,2);return Yt(r,t,"M"+a+","+a+"V-"+a+"L-"+a+","+a+"V-"+a+"Z")},noDot:!0},"circle-cross":{n:27,f:function(e,r,t){if(Gt(r))return Ut;var a=Dr(e,2);return Yt(r,t,"M0,"+a+"V-"+a+"M"+a+",0H-"+a+"M"+a+",0A"+a+","+a+" 0 1,1 0,-"+a+"A"+a+","+a+" 0 0,1 "+a+",0Z")},needLine:!0,noDot:!0},"circle-x":{n:28,f:function(e,r,t){if(Gt(r))return Ut;var a=Dr(e,2),n=Dr(e/BF,2);return Yt(r,t,"M"+n+","+n+"L-"+n+",-"+n+"M"+n+",-"+n+"L-"+n+","+n+"M"+a+",0A"+a+","+a+" 0 1,1 0,-"+a+"A"+a+","+a+" 0 0,1 "+a+",0Z")},needLine:!0,noDot:!0},"square-cross":{n:29,f:function(e,r,t){if(Gt(r))return Ut;var a=Dr(e,2);return Yt(r,t,"M0,"+a+"V-"+a+"M"+a+",0H-"+a+"M"+a+","+a+"H-"+a+"V-"+a+"H"+a+"Z")},needLine:!0,noDot:!0},"square-x":{n:30,f:function(e,r,t){if(Gt(r))return Ut;var a=Dr(e,2);return Yt(r,t,"M"+a+","+a+"L-"+a+",-"+a+"M"+a+",-"+a+"L-"+a+","+a+"M"+a+","+a+"H-"+a+"V-"+a+"H"+a+"Z")},needLine:!0,noDot:!0},"diamond-cross":{n:31,f:function(e,r,t){if(Gt(r))return Ut;var a=Dr(e*1.3,2);return Yt(r,t,"M"+a+",0L0,"+a+"L-"+a+",0L0,-"+a+"ZM0,-"+a+"V"+a+"M-"+a+",0H"+a)},needLine:!0,noDot:!0},"diamond-x":{n:32,f:function(e,r,t){if(Gt(r))return Ut;var a=Dr(e*1.3,2),n=Dr(e*.65,2);return Yt(r,t,"M"+a+",0L0,"+a+"L-"+a+",0L0,-"+a+"ZM-"+n+",-"+n+"L"+n+","+n+"M-"+n+","+n+"L"+n+",-"+n)},needLine:!0,noDot:!0},"cross-thin":{n:33,f:function(e,r,t){if(Gt(r))return Ut;var a=Dr(e*1.4,2);return Yt(r,t,"M0,"+a+"V-"+a+"M"+a+",0H-"+a)},needLine:!0,noDot:!0,noFill:!0},"x-thin":{n:34,f:function(e,r,t){if(Gt(r))return Ut;var a=Dr(e,2);return Yt(r,t,"M"+a+","+a+"L-"+a+",-"+a+"M"+a+",-"+a+"L-"+a+","+a)},needLine:!0,noDot:!0,noFill:!0},asterisk:{n:35,f:function(e,r,t){if(Gt(r))return Ut;var a=Dr(e*1.2,2),n=Dr(e*.85,2);return Yt(r,t,"M0,"+a+"V-"+a+"M"+a+",0H-"+a+"M"+n+","+n+"L-"+n+",-"+n+"M"+n+",-"+n+"L-"+n+","+n)},needLine:!0,noDot:!0,noFill:!0},hash:{n:36,f:function(e,r,t){if(Gt(r))return Ut;var a=Dr(e/2,2),n=Dr(e,2);return Yt(r,t,"M"+a+","+n+"V-"+n+"M"+(a-n)+",-"+n+"V"+n+"M"+n+","+a+"H-"+n+"M-"+n+","+(a-n)+"H"+n)},needLine:!0,noFill:!0},"y-up":{n:37,f:function(e,r,t){if(Gt(r))return Ut;var a=Dr(e*1.2,2),n=Dr(e*1.6,2),i=Dr(e*.8,2);return Yt(r,t,"M-"+a+","+i+"L0,0M"+a+","+i+"L0,0M0,-"+n+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-down":{n:38,f:function(e,r,t){if(Gt(r))return Ut;var a=Dr(e*1.2,2),n=Dr(e*1.6,2),i=Dr(e*.8,2);return Yt(r,t,"M-"+a+",-"+i+"L0,0M"+a+",-"+i+"L0,0M0,"+n+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-left":{n:39,f:function(e,r,t){if(Gt(r))return Ut;var a=Dr(e*1.2,2),n=Dr(e*1.6,2),i=Dr(e*.8,2);return Yt(r,t,"M"+i+","+a+"L0,0M"+i+",-"+a+"L0,0M-"+n+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-right":{n:40,f:function(e,r,t){if(Gt(r))return Ut;var a=Dr(e*1.2,2),n=Dr(e*1.6,2),i=Dr(e*.8,2);return Yt(r,t,"M-"+i+","+a+"L0,0M-"+i+",-"+a+"L0,0M"+n+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"line-ew":{n:41,f:function(e,r,t){if(Gt(r))return Ut;var a=Dr(e*1.4,2);return Yt(r,t,"M"+a+",0H-"+a)},needLine:!0,noDot:!0,noFill:!0},"line-ns":{n:42,f:function(e,r,t){if(Gt(r))return Ut;var a=Dr(e*1.4,2);return Yt(r,t,"M0,"+a+"V-"+a)},needLine:!0,noDot:!0,noFill:!0},"line-ne":{n:43,f:function(e,r,t){if(Gt(r))return Ut;var a=Dr(e,2);return Yt(r,t,"M"+a+",-"+a+"L-"+a+","+a)},needLine:!0,noDot:!0,noFill:!0},"line-nw":{n:44,f:function(e,r,t){if(Gt(r))return Ut;var a=Dr(e,2);return Yt(r,t,"M"+a+","+a+"L-"+a+",-"+a)},needLine:!0,noDot:!0,noFill:!0},"arrow-up":{n:45,f:function(e,r,t){if(Gt(r))return Ut;var a=Dr(e,2),n=Dr(e*2,2);return Yt(r,t,"M0,0L-"+a+","+n+"H"+a+"Z")},backoff:1,noDot:!0},"arrow-down":{n:46,f:function(e,r,t){if(Gt(r))return Ut;var a=Dr(e,2),n=Dr(e*2,2);return Yt(r,t,"M0,0L-"+a+",-"+n+"H"+a+"Z")},noDot:!0},"arrow-left":{n:47,f:function(e,r,t){if(Gt(r))return Ut;var a=Dr(e*2,2),n=Dr(e,2);return Yt(r,t,"M0,0L"+a+",-"+n+"V"+n+"Z")},noDot:!0},"arrow-right":{n:48,f:function(e,r,t){if(Gt(r))return Ut;var a=Dr(e*2,2),n=Dr(e,2);return Yt(r,t,"M0,0L-"+a+",-"+n+"V"+n+"Z")},noDot:!0},"arrow-bar-up":{n:49,f:function(e,r,t){if(Gt(r))return Ut;var a=Dr(e,2),n=Dr(e*2,2);return Yt(r,t,"M-"+a+",0H"+a+"M0,0L-"+a+","+n+"H"+a+"Z")},backoff:1,needLine:!0,noDot:!0},"arrow-bar-down":{n:50,f:function(e,r,t){if(Gt(r))return Ut;var a=Dr(e,2),n=Dr(e*2,2);return Yt(r,t,"M-"+a+",0H"+a+"M0,0L-"+a+",-"+n+"H"+a+"Z")},needLine:!0,noDot:!0},"arrow-bar-left":{n:51,f:function(e,r,t){if(Gt(r))return Ut;var a=Dr(e*2,2),n=Dr(e,2);return Yt(r,t,"M0,-"+n+"V"+n+"M0,0L"+a+",-"+n+"V"+n+"Z")},needLine:!0,noDot:!0},"arrow-bar-right":{n:52,f:function(e,r,t){if(Gt(r))return Ut;var a=Dr(e*2,2),n=Dr(e,2);return Yt(r,t,"M0,-"+n+"V"+n+"M0,0L-"+a+",-"+n+"V"+n+"Z")},needLine:!0,noDot:!0},arrow:{n:53,f:function(e,r,t){if(Gt(r))return Ut;var a=o7/2.5,n=2*e*l7(a),i=2*e*s7(a);return Yt(r,t,"M0,0L"+-n+","+i+"L"+n+","+i+"Z")},backoff:.9,noDot:!0},"arrow-wide":{n:54,f:function(e,r,t){if(Gt(r))return Ut;var a=o7/4,n=2*e*l7(a),i=2*e*s7(a);return Yt(r,t,"M0,0L"+-n+","+i+"A "+2*e+","+2*e+" 0 0 1 "+n+","+i+"Z")},backoff:.4,noDot:!0}};function Gt(e){return e===null}var IF,OF,HF,UF;function Yt(e,r,t){if((!e||e%360===0)&&!r)return t;if(HF===e&&UF===r&&IF===t)return OF;HF=e,UF=r,IF=t;function a(m,b){var T=l7(m),_=s7(m),x=b[0],w=b[1]+(r||0);return[x*T-w*_,x*_+w*T]}for(var n=e/180*o7,i=0,o=0,l=vhe(t),s="",u=0;u{"use strict";var li=ia(),Sa=nr(),hhe=Sa.numberFormat,gf=ca(),Lg=Pt(),Kn=Kt(),dhe=th(),t1=Sa.strTranslate,Eg=Mi(),phe=(pf(),vr(df)),mhe=(Ni(),vr(Pi)),yhe=mhe.LINE_SPACING,eR=(Pv(),vr(Rv)).DESELECTDIM,ghe=yi(),bhe=a7(),xhe=ps().appendArrayPointValue,Ur={};fR.exports=Ur;Ur.font=function(e,r){var t=r.variant,a=r.style,n=r.weight,i=r.color,o=r.size,l=r.family,s=r.shadow,u=r.lineposition,f=r.textcase;l&&e.style("font-family",l),o+1&&e.style("font-size",o+"px"),i&&e.call(Kn.fill,i),n&&e.style("font-weight",n),a&&e.style("font-style",a),t&&e.style("font-variant",t),f&&e.style("text-transform",u7(whe(f))),s&&e.style("text-shadow",s==="auto"?Eg.makeTextShadow(Kn.contrast(i)):u7(s)),u&&e.style("text-decoration-line",u7(Ahe(u)))};function u7(e){return e==="none"?void 0:e}var _he={normal:"none",lower:"lowercase",upper:"uppercase","word caps":"capitalize"};function whe(e){return _he[e]}function Ahe(e){return e.replace("under","underline").replace("over","overline").replace("through","line-through").split("+").join(" ")}Ur.setPosition=function(e,r,t){e.attr("x",r).attr("y",t)};Ur.setSize=function(e,r,t){e.attr("width",r).attr("height",t)};Ur.setRect=function(e,r,t,a,n){e.call(Ur.setPosition,r,t).call(Ur.setSize,a,n)};Ur.translatePoint=function(e,r,t,a){var n=t.c2p(e.x),i=a.c2p(e.y);if(gf(n)&&gf(i)&&r.node())r.node().nodeName==="text"?r.attr("x",n).attr("y",i):r.attr("transform",t1(n,i));else return!1;return!0};Ur.translatePoints=function(e,r,t){e.each(function(a){var n=li.select(this);Ur.translatePoint(a,n,r,t)})};Ur.hideOutsideRangePoint=function(e,r,t,a,n,i){r.attr("display",t.isPtWithinRange(e,n)&&a.isPtWithinRange(e,i)?null:"none")};Ur.hideOutsideRangePoints=function(e,r){if(r._hasClipOnAxisFalse){var t=r.xaxis,a=r.yaxis;e.each(function(n){var i=n[0].trace,o=i.xcalendar,l=i.ycalendar,s=Lg.traceIs(i,"bar-like")?".bartext":".point,.textpoint";e.selectAll(s).each(function(u){Ur.hideOutsideRangePoint(u,li.select(this),t,a,o,l)})})}};Ur.crispRound=function(e,r,t){return!r||!gf(r)?t||0:e._context.staticPlot?r:r<1?1:Math.round(r)};Ur.singleLineStyle=function(e,r,t,a,n){r.style("fill","none");var i=(((e||[])[0]||{}).trace||{}).line||{},o=t||i.width||0,l=n||i.dash||"";Kn.stroke(r,a||i.color),Ur.dashLine(r,l,o)};Ur.lineGroupStyle=function(e,r,t,a){e.style("fill","none").each(function(n){var i=(((n||[])[0]||{}).trace||{}).line||{},o=r||i.width||0,l=a||i.dash||"";li.select(this).call(Kn.stroke,t||i.color).call(Ur.dashLine,l,o)})};Ur.dashLine=function(e,r,t){t=+t||0,r=Ur.dashStyle(r,t),e.style({"stroke-dasharray":r,"stroke-width":t+"px"})};Ur.dashStyle=function(e,r){r=+r||1;var t=Math.max(r,3);return e==="solid"?e="":e==="dot"?e=t+"px,"+t+"px":e==="dash"?e=3*t+"px,"+3*t+"px":e==="longdash"?e=5*t+"px,"+5*t+"px":e==="dashdot"?e=3*t+"px,"+t+"px,"+t+"px,"+t+"px":e==="longdashdot"&&(e=5*t+"px,"+2*t+"px,"+t+"px,"+2*t+"px"),e};function rR(e,r,t,a){var n=r.fillpattern,i=r.fillgradient,o=Ur.getPatternAttr,l=n&&(o(n.shape,0,"")||o(n.path,0,""));if(l){var s=o(n.bgcolor,0,null),u=o(n.fgcolor,0,null),f=n.fgopacity,c=o(n.size,0,8),v=o(n.solidity,0,.3),d=r.uid;Ur.pattern(e,"point",t,d,l,c,v,void 0,n.fillmode,s,u,f)}else if(i&&i.type!=="none"){var p=i.type,y="scatterfill-"+r.uid;if(a&&(y="legendfill-"+r.uid),!a&&(i.start!==void 0||i.stop!==void 0)){var m,b;p==="horizontal"?(m={x:i.start,y:0},b={x:i.stop,y:0}):p==="vertical"&&(m={x:0,y:i.start},b={x:0,y:i.stop}),m.x=r._xA.c2p(m.x===void 0?r._extremes.x.min[0].val:m.x,!0),m.y=r._yA.c2p(m.y===void 0?r._extremes.y.min[0].val:m.y,!0),b.x=r._xA.c2p(b.x===void 0?r._extremes.x.max[0].val:b.x,!0),b.y=r._yA.c2p(b.y===void 0?r._extremes.y.max[0].val:b.y,!0),e.call(nR,t,y,"linear",i.colorscale,"fill",m,b,!0,!1)}else p==="horizontal"&&(p=p+"reversed"),e.call(Ur.gradient,t,y,p,i.colorscale,"fill")}else r.fillcolor&&e.call(Kn.fill,r.fillcolor)}Ur.singleFillStyle=function(e,r){var t=li.select(e.node()),a=t.data(),n=((a[0]||[])[0]||{}).trace||{};rR(e,n,r,!1)};Ur.fillGroupStyle=function(e,r,t){e.style("stroke-width",0).each(function(a){var n=li.select(this);a[0].trace&&rR(n,a[0].trace,r,t)})};var VF=YF();Ur.symbolNames=[];Ur.symbolFuncs=[];Ur.symbolBackOffs=[];Ur.symbolNeedLines={};Ur.symbolNoDot={};Ur.symbolNoFill={};Ur.symbolList=[];Object.keys(VF).forEach(function(e){var r=VF[e],t=r.n;Ur.symbolList.push(t,String(t),e,t+100,String(t+100),e+"-open"),Ur.symbolNames[t]=e,Ur.symbolFuncs[t]=r.f,Ur.symbolBackOffs[t]=r.backoff||0,r.needLine&&(Ur.symbolNeedLines[t]=!0),r.noDot?Ur.symbolNoDot[t]=!0:Ur.symbolList.push(t+200,String(t+200),e+"-dot",t+300,String(t+300),e+"-open-dot"),r.noFill&&(Ur.symbolNoFill[t]=!0)});var The=Ur.symbolNames.length,Mhe="M0,0.5L0.5,0L0,-0.5L-0.5,0Z";Ur.symbolNumber=function(e){if(gf(e))e=+e;else if(typeof e=="string"){var r=0;e.indexOf("-open")>0&&(r=100,e=e.replace("-open","")),e.indexOf("-dot")>0&&(r+=200,e=e.replace("-dot","")),e=Ur.symbolNames.indexOf(e),e>=0&&(e+=r)}return e%100>=The||e>=400?0:Math.floor(Math.max(e,0))};function tR(e,r,t,a){var n=e%100;return Ur.symbolFuncs[n](r,t,a)+(e>=200?Mhe:"")}var XF=hhe("~f"),aR={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}};Ur.gradient=function(e,r,t,a,n,i){var o=aR[a];return nR(e,r,t,o.type,n,i,o.start,o.stop,!1,o.reversed)};function nR(e,r,t,a,n,i,o,l,s,u){var f=n.length,c;a==="linear"?c={node:"linearGradient",attrs:{x1:o.x,y1:o.y,x2:l.x,y2:l.y,gradientUnits:s?"userSpaceOnUse":"objectBoundingBox"},reversed:u}:a==="radial"&&(c={node:"radialGradient",reversed:u});for(var v=new Array(f),d=0;d=0&&e.i===void 0&&(e.i=i.i),r.style("opacity",a.selectedOpacityFn?a.selectedOpacityFn(e):e.mo===void 0?o.opacity:e.mo),a.ms2mrc){var s;e.ms==="various"||o.size==="various"?s=3:s=a.ms2mrc(e.ms),e.mrc=s,a.selectedSizeFn&&(s=e.mrc=a.selectedSizeFn(e));var u=Ur.symbolNumber(e.mx||o.symbol)||0;e.om=u%200>=100;var f=m7(e,t),c=p7(e,t);r.attr("d",tR(u,s,f,c))}var v=!1,d,p,y;if(e.so)y=l.outlierwidth,p=l.outliercolor,d=o.outliercolor;else{var m=(l||{}).width;y=(e.mlw+1||m+1||(e.trace?(e.trace.marker.line||{}).width:0)+1)-1||0,"mlc"in e?p=e.mlcc=a.lineScale(e.mlc):Sa.isArrayOrTypedArray(l.color)?p=Kn.defaultLine:p=l.color,Sa.isArrayOrTypedArray(o.color)&&(d=Kn.defaultLine,v=!0),"mc"in e?d=e.mcc=a.markerScale(e.mc):d=o.color||o.colors||"rgba(0,0,0,0)",a.selectedColorFn&&(d=a.selectedColorFn(e))}let b=e.mld||(l||{}).dash;if(b&&Ur.dashLine(r,b,y),e.om)r.call(Kn.stroke,d).style({"stroke-width":(y||1)+"px",fill:"none"});else{r.style("stroke-width",(e.isBlank?0:y)+"px");var T=o.gradient,_=e.mgt;_?v=!0:_=T&&T.type,Sa.isArrayOrTypedArray(_)&&(_=_[0],aR[_]||(_=0));var x=o.pattern,w=Ur.getPatternAttr,k=x&&(w(x.shape,e.i,"")||w(x.path,e.i,""));if(_&&_!=="none"){var M=e.mgc;M?v=!0:M=T.color;var C=t.uid;v&&(C+="-"+e.i),Ur.gradient(r,n,C,_,[[0,M],[1,d]],"fill")}else if(k){var E=!1,F=x.fgcolor;!F&&i&&i.color&&(F=i.color,E=!0);var P=w(F,e.i,i&&i.color||null),q=w(x.bgcolor,e.i,null),z=x.fgopacity,I=w(x.size,e.i,8),Y=w(x.solidity,e.i,.3);E=E||e.mcc||Sa.isArrayOrTypedArray(x.shape)||Sa.isArrayOrTypedArray(x.path)||Sa.isArrayOrTypedArray(x.bgcolor)||Sa.isArrayOrTypedArray(x.fgcolor)||Sa.isArrayOrTypedArray(x.size)||Sa.isArrayOrTypedArray(x.solidity);var V=t.uid;E&&(V+="-"+e.i),Ur.pattern(r,"point",n,V,k,I,Y,e.mcc,x.fillmode,q,P,z)}else Sa.isArrayOrTypedArray(d)?Kn.fill(r,d[e.i]):Kn.fill(r,d);y&&Kn.stroke(r,p)}};Ur.makePointStyleFns=function(e){var r={},t=e.marker;return r.markerScale=Ur.tryColorscale(t,""),r.lineScale=Ur.tryColorscale(t,"line"),Lg.traceIs(e,"symbols")&&(r.ms2mrc=ghe.isBubble(e)?bhe(e):function(){return(t.size||6)/2}),e.selectedpoints&&Sa.extendFlat(r,Ur.makeSelectedPointStyleFns(e)),r};Ur.makeSelectedPointStyleFns=function(e){var r={},t=e.selected||{},a=e.unselected||{},n=e.marker||{},i=t.marker||{},o=a.marker||{},l=n.opacity,s=i.opacity,u=o.opacity,f=s!==void 0,c=u!==void 0;(Sa.isArrayOrTypedArray(l)||f||c)&&(r.selectedOpacityFn=function(x){var w=x.mo===void 0?n.opacity:x.mo;return x.selected?f?s:w:c?u:eR*w});var v=n.color,d=i.color,p=o.color;(d||p)&&(r.selectedColorFn=function(x){var w=x.mcc||v;return x.selected?d||w:p||w});var y=n.size,m=i.size,b=o.size,T=m!==void 0,_=b!==void 0;return Lg.traceIs(e,"symbols")&&(T||_)&&(r.selectedSizeFn=function(x){var w=x.mrc||y/2;return x.selected?T?m/2:w:_?b/2:w}),r};Ur.makeSelectedTextStyleFns=function(e){var r={},t=e.selected||{},a=e.unselected||{},n=e.textfont||{},i=t.textfont||{},o=a.textfont||{},l=n.color,s=i.color,u=o.color;return r.selectedTextColorFn=function(f){var c=f.tc||l;return f.selected?s||c:u||(s?c:Kn.addOpacity(c,eR))},r};Ur.selectedPointStyle=function(e,r){if(!(!e.size()||!r.selectedpoints)){var t=Ur.makeSelectedPointStyleFns(r),a=r.marker||{},n=[];t.selectedOpacityFn&&n.push(function(i,o){i.style("opacity",t.selectedOpacityFn(o))}),t.selectedColorFn&&n.push(function(i,o){Kn.fill(i,t.selectedColorFn(o))}),t.selectedSizeFn&&n.push(function(i,o){var l=o.mx||a.symbol||0,s=t.selectedSizeFn(o);i.attr("d",tR(Ur.symbolNumber(l),s,m7(o,r),p7(o,r))),o.mrc2=s}),n.length&&e.each(function(i){for(var o=li.select(this),l=0;l0?t:0}Ur.textPointStyle=function(e,r,t){if(e.size()){var a;if(r.selectedpoints){var n=Ur.makeSelectedTextStyleFns(r);a=n.selectedTextColorFn}var i=r.texttemplate,o=t._fullLayout;e.each(function(l){var s=li.select(this),u=i?Sa.extractOption(l,r,"txt","texttemplate"):Sa.extractOption(l,r,"tx","text");if(!u&&u!==0){s.remove();return}if(i){var f=r._module.formatLabels,c=f?f(l,r,o):{},v={};xhe(v,r,l.i),u=Sa.texttemplateString({data:[v,l,r._meta],fallback:r.texttemplatefallback,labels:c,locale:o._d3locale,template:u})}var d=l.tp||r.textposition,p=oR(l,r),y=a?a(l):l.tc||r.textfont.color;s.call(Ur.font,{family:l.tf||r.textfont.family,weight:l.tw||r.textfont.weight,style:l.ty||r.textfont.style,variant:l.tv||r.textfont.variant,textcase:l.tC||r.textfont.textcase,lineposition:l.tE||r.textfont.lineposition,shadow:l.tS||r.textfont.shadow,size:p,color:y}).text(u).call(Eg.convertToTspans,t).call(iR,d,p,l.mrc)})}};Ur.selectedTextStyle=function(e,r){if(!(!e.size()||!r.selectedpoints)){var t=Ur.makeSelectedTextStyleFns(r);e.each(function(a){var n=li.select(this),i=t.selectedTextColorFn(a),o=a.tp||r.textposition,l=oR(a,r);Kn.fill(n,i);var s=Lg.traceIs(r,"bar-like");iR(n,o,l,a.mrc2||a.mrc,s)})}};var WF=.5;Ur.smoothopen=function(e,r){if(e.length<3)return"M"+e.join("L");var t="M"+e[0],a=[],n;for(n=1;n=s||x>=f&&x<=s)&&(w<=c&&w>=u||w>=c&&w<=u)&&(e=[x,w])}return e}Ur.applyBackoff=uR;Ur.makeTester=function(){var e=Sa.ensureSingleById(li.select("body"),"svg","js-plotly-tester",function(t){t.attr(phe.svgAttrs).style({position:"absolute",left:"-10000px",top:"-10000px",width:"9000px",height:"9000px","z-index":"1"})}),r=Sa.ensureSingle(e,"path","js-reference-point",function(t){t.attr("d","M0,0H1V1H0Z").style({"stroke-width":0,fill:"black"})});Ur.tester=e,Ur.testref=r};Ur.savedBBoxes={};var c7=0,Che=1e4;Ur.bBox=function(e,r,t){t||(t=ZF(e));var a;if(t){if(a=Ur.savedBBoxes[t],a)return Sa.extendFlat({},a)}else if(e.childNodes.length===1){var n=e.childNodes[0];if(t=ZF(n),t){var i=+n.getAttribute("x")||0,o=+n.getAttribute("y")||0,l=n.getAttribute("transform");if(!l){var s=Ur.bBox(n,!1,t);return i&&(s.left+=i,s.right+=i),o&&(s.top+=o,s.bottom+=o),s}if(t+="~"+i+"~"+o+"~"+l,a=Ur.savedBBoxes[t],a)return Sa.extendFlat({},a)}}var u,f;r?u=e:(f=Ur.tester.node(),u=e.cloneNode(!0),f.appendChild(u)),li.select(u).attr("transform",null).call(Eg.positionText,0,0);var c=u.getBoundingClientRect(),v=Ur.testref.node().getBoundingClientRect();r||f.removeChild(u);var d={height:c.height,width:c.width,left:c.left-v.left,top:c.top-v.top,right:c.right-v.left,bottom:c.bottom-v.top};return c7>=Che&&(Ur.savedBBoxes={},c7=0),t&&(Ur.savedBBoxes[t]=d),c7++,Sa.extendFlat({},d)};function ZF(e){var r=e.getAttribute("data-unformatted");if(r!==null)return r+e.getAttribute("data-math")+e.getAttribute("text-anchor")+e.getAttribute("style")}Ur.setClipUrl=function(e,r,t){e.attr("clip-path",d7(r,t))};function d7(e,r){if(!e)return null;var t=r._context,a=t._exportedPlot?"":t._baseUrl||"";return a?"url('"+a+"#"+e+"')":"url(#"+e+")"}Ur.getTranslate=function(e){var r=/.*\btranslate\((-?\d*\.?\d*)[^-\d]*(-?\d*\.?\d*)[^\d].*/,t=e.attr?"attr":"getAttribute",a=e[t]("transform")||"",n=a.replace(r,function(i,o,l){return[o,l].join(" ")}).split(" ");return{x:+n[0]||0,y:+n[1]||0}};Ur.setTranslate=function(e,r,t){var a=/(\btranslate\(.*?\);?)/,n=e.attr?"attr":"getAttribute",i=e.attr?"attr":"setAttribute",o=e[n]("transform")||"";return r=r||0,t=t||0,o=o.replace(a,"").trim(),o+=t1(r,t),o=o.trim(),e[i]("transform",o),o};Ur.getScale=function(e){var r=/.*\bscale\((\d*\.?\d*)[^\d]*(\d*\.?\d*)[^\d].*/,t=e.attr?"attr":"getAttribute",a=e[t]("transform")||"",n=a.replace(r,function(i,o,l){return[o,l].join(" ")}).split(" ");return{x:+n[0]||1,y:+n[1]||1}};Ur.setScale=function(e,r,t){var a=/(\bscale\(.*?\);?)/,n=e.attr?"attr":"getAttribute",i=e.attr?"attr":"setAttribute",o=e[n]("transform")||"";return r=r||1,t=t||1,o=o.replace(a,"").trim(),o+="scale("+r+","+t+")",o=o.trim(),e[i]("transform",o),o};var Dhe=/\s*sc.*/;Ur.setPointGroupScale=function(e,r,t){if(r=r||1,t=t||1,!!e){var a=r===1&&t===1?"":"scale("+r+","+t+")";e.each(function(){var n=(this.getAttribute("transform")||"").replace(Dhe,"");n+=a,n=n.trim(),this.setAttribute("transform",n)})}};var Lhe=/translate\([^)]*\)\s*$/;Ur.setTextPointsScale=function(e,r,t){e&&e.each(function(){var a,n=li.select(this),i=n.select("text");if(i.node()){var o=parseFloat(i.attr("x")||0),l=parseFloat(i.attr("y")||0),s=(n.attr("transform")||"").match(Lhe);r===1&&t===1?a=[]:a=[t1(o,l),"scale("+r+","+t+")",t1(-o,-l)],s&&a.push(s),n.attr("transform",a.join(""))}})};function p7(e,r){var t;return e&&(t=e.mf),t===void 0&&(t=r.marker&&r.marker.standoff||0),!r._geo&&!r._xA?-t:t}Ur.getMarkerStandoff=p7;var r1=Math.atan2,$0=Math.cos,nh=Math.sin;function JF(e,r){var t=r[0],a=r[1];return[t*$0(e)-a*nh(e),t*nh(e)+a*$0(e)]}var jF,$F,KF,QF,v7,h7;function m7(e,r){var t=e.ma;t===void 0&&(t=r.marker.angle,(!gf(t)||Sa.isArrayOrTypedArray(t))&&(t=0));var a,n,i=r.marker.angleref;if(i==="previous"||i==="north"){if(r._geo){var o=r._geo.project(e.lonlat);a=o[0],n=o[1]}else{var l=r._xA,s=r._yA;if(l&&s)a=l.c2p(e.x),n=s.c2p(e.y);else return 90}if(r._geo){var u=e.lonlat[0],f=e.lonlat[1],c=r._geo.project([u,f+1e-5]),v=r._geo.project([u+1e-5,f]),d=r1(v[1]-n,v[0]-a),p=r1(c[1]-n,c[0]-a),y;if(i==="north")y=t/180*Math.PI;else if(i==="previous"){var m=u/180*Math.PI,b=f/180*Math.PI,T=jF/180*Math.PI,_=$F/180*Math.PI,x=T-m,w=$0(_)*nh(x),k=nh(_)*$0(b)-$0(_)*nh(b)*$0(x);y=-r1(w,k)-Math.PI,jF=u,$F=f}var M=JF(d,[$0(y),0]),C=JF(p,[nh(y),0]);t=r1(M[1]+C[1],M[0]+C[0])/Math.PI*180,i==="previous"&&!(h7===r.uid&&e.i===v7+1)&&(t=null)}if(i==="previous"&&!r._geo)if(h7===r.uid&&e.i===v7+1&&gf(a)&&gf(n)){var E=a-KF,F=n-QF,P=r.line&&r.line.shape||"",q=P.slice(P.length-1);q==="h"&&(F=0),q==="v"&&(E=0),t+=r1(F,E)/Math.PI*180+90}else t=null}return KF=a,QF=n,v7=e.i,h7=r.uid,t}Ur.getMarkerAngle=m7});var a1=B((Yqe,dR)=>{"use strict";var ih=ia(),Ehe=ca(),qhe=oi(),y7=Pt(),ec=nr(),cR=ec.strTranslate,qg=Ca(),Fg=Kt(),oh=Mi(),vR=(Pv(),vr(Rv)),Fhe=(Ni(),vr(Pi)).OPPOSITE_SIDE,hR=/ [XY][0-9]* /,g7=1.6,b7=1.6;function Rhe(e,r,t){var a=e._fullLayout,n=t.propContainer,i=t.propName,o=t.placeholder,l=t.traceIndex,s=t.avoid||{},u=t.attributes,f=t.transform,c=t.containerGroup,v=1,d=n.title,p=(d&&d.text?d.text:"").trim(),y=!1,m=d&&d.font?d.font:{},b=m.family,T=m.size,_=m.color,x=m.weight,w=m.style,k=m.variant,M=m.textcase,C=m.lineposition,E=m.shadow,F=t.subtitlePropName,P=!!F,q=t.subtitlePlaceholder,z=(n.title||{}).subtitle||{text:"",font:{}},I=(z.text||"").trim(),Y=!1,V=1,J=z.font,U=J.family,G=J.size,W=J.color,j=J.weight,ae=J.style,pe=J.variant,se=J.textcase,we=J.lineposition,te=J.shadow,Ee;i==="title.text"?Ee="titleText":i.indexOf("axis")!==-1?Ee="axisTitleText":i.indexOf("colorbar")!==-1&&(Ee="colorbarTitleText");var de=e._context.edits[Ee];function Ae(Fr,Lr){return Fr===void 0||Lr===void 0?!1:Fr.replace(hR," % ")===Lr.replace(hR," % ")}p===""?v=0:Ae(p,o)&&(de||(p=""),v=.2,y=!0),P&&(I===""?V=0:Ae(I,q)&&(de||(I=""),V=.2,Y=!0)),t._meta?p=ec.templateString(p,t._meta):a._meta&&(p=ec.templateString(p,a._meta));var Ue=p||I||de,ge;c||(c=ec.ensureSingle(a._infolayer,"g","g-"+r),ge=a._hColorbarMoveTitle);var Ne=c.selectAll("text."+r).data(Ue?[0]:[]);Ne.enter().append("text"),Ne.text(p).attr("class",r),Ne.exit().remove();var ir=null,qe=r+"-subtitle",Ve=I||de;if(P&&(ir=c.selectAll("text."+qe).data(Ve?[0]:[]),ir.enter().append("text"),ir.text(I).attr("class",qe),ir.exit().remove()),!Ue)return c;function Qe(Fr,Lr){ec.syncOrAsync([er,rr],{title:Fr,subtitle:Lr})}function er(Fr){var Lr=Fr.title,He=Fr.subtitle,or;!f&&ge&&(f={}),f?(or="",f.rotate&&(or+="rotate("+[f.rotate,u.x,u.y]+")"),(f.offset||ge)&&(or+=cR(0,(f.offset||0)-(ge||0)))):or=null,Lr.attr("transform",or);function Ir(Me){if(Me){var Fe=ih.select(Me.node().parentNode).select("."+qe);if(!Fe.empty()){var dr=Me.node().getBBox();if(dr.height){var kr=dr.y+dr.height+g7*G;Fe.attr("y",kr)}}}}if(Lr.style("opacity",v*Fg.opacity(_)).call(qg.font,{color:Fg.rgb(_),size:ih.round(T,2),family:b,weight:x,style:w,variant:k,textcase:M,shadow:E,lineposition:C}).attr(u).call(oh.convertToTspans,e,Ir),He&&!He.empty()){var fe=c.select("."+r+"-math-group"),Le=Lr.node().getBBox(),Mr=fe.node()?fe.node().getBBox():void 0,lt=Mr?Mr.y+Mr.height+g7*G:Le.y+Le.height+b7*G,Xe=ec.extendFlat({},u,{y:lt});He.attr("transform",or),He.style("opacity",V*Fg.opacity(W)).call(qg.font,{color:Fg.rgb(W),size:ih.round(G,2),family:U,weight:j,style:ae,variant:pe,textcase:se,shadow:te,lineposition:we}).attr(Xe).call(oh.convertToTspans,e)}return qhe.previousPromises(e)}function rr(Fr){var Lr=Fr.title,He=ih.select(Lr.node().parentNode);if(s&&s.selection&&s.side&&p){He.attr("transform",null);var or=Fhe[s.side],Ir=s.side==="left"||s.side==="top"?-1:1,fe=Ehe(s.pad)?s.pad:2,Le=qg.bBox(He.node()),Mr={t:0,b:0,l:0,r:0},lt=e._fullLayout._reservedMargin;for(var Xe in lt)for(var Me in lt[Xe]){var Fe=lt[Xe][Me];Mr[Me]=Math.max(Mr[Me],Fe)}var dr={left:Mr.l,top:Mr.t,right:a.width-Mr.r,bottom:a.height-Mr.b},kr=s.maxShift||Ir*(dr[s.side]-Le[s.side]),fr=0;if(kr<0)fr=kr;else{var _r=s.offsetLeft||0,Vr=s.offsetTop||0;Le.left-=_r,Le.right-=_r,Le.top-=Vr,Le.bottom-=Vr,s.selection.each(function(){var Or=qg.bBox(this);ec.bBoxIntersect(Le,Or,fe)&&(fr=Math.max(fr,Ir*(Or[s.side]-Le[or])+fe))}),fr=Math.min(kr,fr),n._titleScoot=Math.abs(fr)}if(fr>0||kr<0){var qr={left:[-fr,0],right:[fr,0],top:[0,-fr],bottom:[0,fr]}[s.side];He.attr("transform",cR(qr[0],qr[1]))}}}Ne.call(Qe,ir);function yr(Fr,Lr){Fr.text(Lr).on("mouseover.opacity",function(){ih.select(this).transition().duration(vR.SHOW_PLACEHOLDER).style("opacity",1)}).on("mouseout.opacity",function(){ih.select(this).transition().duration(vR.HIDE_PLACEHOLDER).style("opacity",0)})}if(de&&(p?Ne.on(".opacity",null):(yr(Ne,o),y=!0),Ne.call(oh.makeEditable,{gd:e}).on("edit",function(Fr){l!==void 0?y7.call("_guiRestyle",e,i,Fr,l):y7.call("_guiRelayout",e,i,Fr)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(Qe)}).on("input",function(Fr){this.text(Fr||" ").call(oh.positionText,u.x,u.y)}),P)){if(P&&!p){var Ge=Ne.node().getBBox(),Sr=Ge.y+Ge.height+b7*G;ir.attr("y",Sr)}I?ir.on(".opacity",null):(yr(ir,q),Y=!0),ir.call(oh.makeEditable,{gd:e}).on("edit",function(Fr){y7.call("_guiRelayout",e,"title.subtitle.text",Fr)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(Qe)}).on("input",function(Fr){this.text(Fr||" ").call(oh.positionText,ir.attr("x"),ir.attr("y"))})}return Ne.classed("js-placeholder",y),ir&&!ir.empty()&&ir.classed("js-placeholder",Y),c}dR.exports={draw:Rhe,SUBTITLE_PADDING_EM:b7,SUBTITLE_PADDING_MATHJAX_EM:g7}});var Hg=B((Vqe,bR)=>{"use strict";var Phe=ia(),Nhe=xv().utcFormat,Pa=nr(),zhe=Pa.numberFormat,ms=ca(),bf=Pa.cleanNumber,Bhe=Pa.ms2DateTime,pR=Pa.dateTime2ms,ys=Pa.ensureNumber,mR=Pa.isArrayOrTypedArray,xf=(In(),vr(Wn)),Rg=xf.FP_SAFE,zl=xf.BADNUM,Ihe=xf.LOG_CLIP,Ohe=xf.ONEWEEK,Pg=xf.ONEDAY,Ng=xf.ONEHOUR,yR=xf.ONEMIN,gR=xf.ONESEC,zg=fn(),Og=(jn(),vr(Jn)),Bg=Og.HOUR_PATTERN,Ig=Og.WEEKDAY_PATTERN;function n1(e){return Math.pow(10,e)}function x7(e){return e!=null}bR.exports=function(r,t){t=t||{};var a=r._id||"x",n=a.charAt(0);function i(x,w){if(x>0)return Math.log(x)/Math.LN10;if(x<=0&&w&&r.range&&r.range.length===2){var k=r.range[0],M=r.range[1];return .5*(k+M-2*Ihe*Math.abs(k-M))}else return zl}function o(x,w,k,M){if((M||{}).msUTC&&ms(x))return+x;var C=pR(x,k||r.calendar);if(C===zl)if(ms(x)){x=+x;var E=Math.floor(Pa.mod(x+.05,1)*10),F=Math.round(x-E/10);C=pR(new Date(F))+E/10}else return zl;return C}function l(x,w,k){return Bhe(x,w,k||r.calendar)}function s(x){return r._categories[Math.round(x)]}function u(x){if(x7(x)){if(r._categoriesMap===void 0&&(r._categoriesMap={}),r._categoriesMap[x]!==void 0)return r._categoriesMap[x];r._categories.push(typeof x=="number"?String(x):x);var w=r._categories.length-1;return r._categoriesMap[x]=w,w}return zl}function f(x,w){for(var k=new Array(w),M=0;Mr.range[1]&&(k=!k);for(var M=k?-1:1,C=M*x,E=0,F=0;Fq)E=F+1;else{E=C<(P+q)/2?F:F+1;break}}var z=r._B[E]||0;return isFinite(z)?p(x,r._m2,z):0},b=function(x){var w=r._rangebreaks.length;if(!w)return y(x,r._m,r._b);for(var k=0,M=0;Mr._rangebreaks[M].pmax&&(k=M+1);return y(x,r._m2,r._B[k])}}r.c2l=r.type==="log"?i:ys,r.l2c=r.type==="log"?n1:ys,r.l2p=m,r.p2l=b,r.c2p=r.type==="log"?function(x,w){return m(i(x,w))}:m,r.p2c=r.type==="log"?function(x){return n1(b(x))}:b,["linear","-"].indexOf(r.type)!==-1?(r.d2r=r.r2d=r.d2c=r.r2c=r.d2l=r.r2l=bf,r.c2d=r.c2r=r.l2d=r.l2r=ys,r.d2p=r.r2p=function(x){return r.l2p(bf(x))},r.p2d=r.p2r=b,r.cleanPos=ys):r.type==="log"?(r.d2r=r.d2l=function(x,w){return i(bf(x),w)},r.r2d=r.r2c=function(x){return n1(bf(x))},r.d2c=r.r2l=bf,r.c2d=r.l2r=ys,r.c2r=i,r.l2d=n1,r.d2p=function(x,w){return r.l2p(r.d2r(x,w))},r.p2d=function(x){return n1(b(x))},r.r2p=function(x){return r.l2p(bf(x))},r.p2r=b,r.cleanPos=ys):r.type==="date"?(r.d2r=r.r2d=Pa.identity,r.d2c=r.r2c=r.d2l=r.r2l=o,r.c2d=r.c2r=r.l2d=r.l2r=l,r.d2p=r.r2p=function(x,w,k){return r.l2p(o(x,0,k))},r.p2d=r.p2r=function(x,w,k){return l(b(x),w,k)},r.cleanPos=function(x){return Pa.cleanDate(x,zl,r.calendar)}):r.type==="category"?(r.d2c=r.d2l=u,r.r2d=r.c2d=r.l2d=s,r.d2r=r.d2l_noadd=v,r.r2c=function(x){var w=d(x);return w!==void 0?w:r.fraction2r(.5)},r.l2r=r.c2r=ys,r.r2l=d,r.d2p=function(x){return r.l2p(r.r2c(x))},r.p2d=function(x){return s(b(x))},r.r2p=r.d2p,r.p2r=b,r.cleanPos=function(x){return typeof x=="string"&&x!==""?x:ys(x)}):r.type==="multicategory"&&(r.r2d=r.c2d=r.l2d=s,r.d2r=r.d2l_noadd=v,r.r2c=function(x){var w=v(x);return w!==void 0?w:r.fraction2r(.5)},r.r2c_just_indices=c,r.l2r=r.c2r=ys,r.r2l=v,r.d2p=function(x){return r.l2p(r.r2c(x))},r.p2d=function(x){return s(b(x))},r.r2p=r.d2p,r.p2r=b,r.cleanPos=function(x){return Array.isArray(x)||typeof x=="string"&&x!==""?x:ys(x)},r.setupMultiCategory=function(x){var w=r._traceIndices,k,M,C=r._matchGroup;if(C&&r._categories.length===0){for(var E in C)if(E!==a){var F=t[zg.id2name(E)];w=w.concat(F._traceIndices)}}var P=[[0,{}],[0,{}]],q=[];for(k=0;kF[1]&&(M[E?0:1]=k,C[1]=F[1]),C[0]>=C[1])if(w!==void 0){var P=F[0]+1;k!==void 0&&(P=Math.min(P,F[1])),M[E?0:1]=r.l2r(P)}else k!==void 0&&(M[E?1:0]=r.l2r(F[1]-1))}},r.cleanRange=function(x,w){r._cleanRange(x,w),r.limitRange(x)},r._cleanRange=function(x,w){w||(w={}),x||(x="range");var k=Pa.nestedProperty(r,x).get(),M,C;if(r.type==="date"?C=Pa.dfltRange(r.calendar):n==="y"?C=Og.DFLTRANGEY:r._name==="realaxis"?C=[0,1]:C=w.dfltRange||Og.DFLTRANGEX,C=C.slice(),(r.rangemode==="tozero"||r.rangemode==="nonnegative")&&(C[0]=0),!k||k.length!==2){Pa.nestedProperty(r,x).set(C);return}var E=k[0]===null,F=k[1]===null;for(r.type==="date"&&!r.autorange&&(k[0]=Pa.cleanDate(k[0],zl,r.calendar),k[1]=Pa.cleanDate(k[1],zl,r.calendar)),M=0;M<2;M++)if(r.type==="date"){if(!Pa.isDateTime(k[M],r.calendar)){r[x]=C;break}if(r.r2l(k[0])===r.r2l(k[1])){var P=Pa.constrain(r.r2l(k[0]),Pa.MIN_MS+1e3,Pa.MAX_MS-1e3);k[0]=r.l2r(P-1e3),k[1]=r.l2r(P+1e3);break}}else{if(!ms(k[M]))if(!(E||F)&&ms(k[1-M]))k[M]=k[1-M]*(M?10:.1);else{r[x]=C;break}if(k[M]<-Rg?k[M]=-Rg:k[M]>Rg&&(k[M]=Rg),k[0]===k[1]){var q=Math.max(1,Math.abs(k[0]*1e-6));k[0]-=q,k[1]+=q}}},r.setScale=function(x){var w=t._size;if(r.overlaying){var k=zg.getFromId({_fullLayout:t},r.overlaying);r.domain=k.domain}var M=x&&r._r?"_r":"range",C=r.calendar;r.cleanRange(M);var E=r.r2l(r[M][0],C),F=r.r2l(r[M][1],C),P=n==="y";if(P?(r._offset=w.t+(1-r.domain[1])*w.h,r._length=w.h*(r.domain[1]-r.domain[0]),r._m=r._length/(E-F),r._b=-r._m*F):(r._offset=w.l+r.domain[0]*w.w,r._length=w.w*(r.domain[1]-r.domain[0]),r._m=r._length/(F-E),r._b=-r._m*E),r._rangebreaks=[],r._lBreaks=0,r._m2=0,r._B=[],r.rangebreaks){var q,z;if(r._rangebreaks=r.locateBreaks(Math.min(E,F),Math.max(E,F)),r._rangebreaks.length){for(q=0;qF&&(I=!I),I&&r._rangebreaks.reverse();var Y=I?-1:1;for(r._m2=Y*r._length/(Math.abs(F-E)-r._lBreaks),r._B.push(-r._m2*(P?F:E)),q=0;qC&&(C+=7,EC&&(C+=24,E=M&&E=M&&x=te.min&&(aete.max&&(te.max=pe),se=!1)}se&&F.push({min:ae,max:pe})}};for(k=0;k{"use strict";var xR=ca(),_7=nr(),Hhe=(In(),vr(Wn)).BADNUM,Ug=_7.isArrayOrTypedArray,Uhe=_7.isDateTime,Ghe=_7.cleanNumber,_R=Math.round;AR.exports=function(r,t,a){var n=r,i=a.noMultiCategory;if(Ug(n)&&!n.length)return"-";if(!i&&Zhe(n))return"multicategory";if(i&&Array.isArray(n[0])){for(var o=[],l=0;li*2}function wR(e){return Math.max(1,(e-1)/1e3)}function Whe(e,r){for(var t=e.length,a=wR(t),n=0,i=0,o={},l=0;ln*2}function Zhe(e){return Ug(e[0])&&Ug(e[1])}});var lh=B((Wqe,ER)=>{"use strict";var Jhe=ia(),SR=ca(),_f=nr(),Gg=(In(),vr(Wn)).FP_SAFE,jhe=Pt(),$he=Ca(),CR=fn(),Khe=CR.getFromId,Qhe=CR.isLinked;ER.exports={applyAutorangeOptions:LR,getAutoRange:A7,makePadFn:T7,doAutoRange:rde,findExtremes:tde,concatExtremes:S7};function A7(e,r){var t,a,n=[],i=e._fullLayout,o=T7(i,r,0),l=T7(i,r,1),s=S7(e,r),u=s.min,f=s.max;if(u.length===0||f.length===0)return _f.simpleMap(r.range,r.r2l);var c=u[0].val,v=f[0].val;for(t=1;t0&&(F=_-o(k)-l(M),F>x?P/F>w&&(C=k,E=M,w=P/F):P/_>w&&(C={val:k.val,nopad:1},E={val:M.val,nopad:1},w=P/_));function q(J,U){return Math.max(J,l(U))}if(c===v){var z=c-1,I=c+1;if(b)if(c===0)n=[0,1];else{var Y=(c>0?f:u).reduce(q,0),V=c/(1-Math.min(.5,Y/_));n=c>0?[0,V]:[V,0]}else T?n=[Math.max(0,z),Math.max(1,I)]:n=[z,I]}else b?(C.val>=0&&(C={val:0,nopad:1}),E.val<=0&&(E={val:0,nopad:1})):T&&(C.val-w*o(C)<0&&(C={val:0,nopad:1}),E.val<=0&&(E={val:1,nopad:1})),w=(E.val-C.val-TR(r,k.val,M.val))/(_-o(C)-l(E)),n=[C.val-w*o(C),E.val+w*l(E)];return n=LR(n,r),r.limitRange&&r.limitRange(),p&&n.reverse(),_f.simpleMap(n,r.l2r||Number)}function TR(e,r,t){var a=0;if(e.rangebreaks)for(var n=e.locateBreaks(r,t),i=0;i0?t.ppadplus:t.ppadminus)||t.ppad||0),k=x((e._m>0?t.ppadminus:t.ppadplus)||t.ppad||0),M=x(t.vpadplus||t.vpad),C=x(t.vpadminus||t.vpad);if(!u){if(T=1/0,_=-1/0,s)for(c=0;c0&&(T=v),v>_&&v-Gg&&(T=v),v>_&&v=P;c--)F(c);return{min:a,max:n,opts:t}}function M7(e,r,t,a){DR(e,r,t,a,ade)}function k7(e,r,t,a){DR(e,r,t,a,nde)}function DR(e,r,t,a,n){for(var i=a.tozero,o=a.extrapad,l=!0,s=0;s=t&&(u.extrapad||!o)){l=!1;break}else n(r,u.val)&&u.pad<=t&&(o||!u.extrapad)&&(e.splice(s,1),s--)}if(l){var f=i&&r===0;e.push({val:r,pad:f?0:t,extrapad:f?!1:o})}}function kR(e){return SR(e)&&Math.abs(e)=r}function ide(e,r){var t=r.autorangeoptions;return t&&t.minallowed!==void 0&&Yg(r,t.minallowed,t.maxallowed)?t.minallowed:t&&t.clipmin!==void 0&&Yg(r,t.clipmin,t.clipmax)?Math.max(e,r.d2l(t.clipmin)):e}function ode(e,r){var t=r.autorangeoptions;return t&&t.maxallowed!==void 0&&Yg(r,t.minallowed,t.maxallowed)?t.maxallowed:t&&t.clipmax!==void 0&&Yg(r,t.clipmin,t.clipmax)?Math.min(e,r.d2l(t.clipmax)):e}function Yg(e,r,t){return r!==void 0&&t!==void 0?(r=e.d2l(r),t=e.d2l(t),r=s&&(i=s,t=s),o<=s&&(o=s,a=s)}}return t=ide(t,r),a=ode(a,r),[t,a]}});var Qa=B((Jqe,eP)=>{"use strict";var al=ia(),En=ca(),sh=oi(),o1=Pt(),Ft=nr(),uh=Ft.strTranslate,rc=Mi(),lde=a1(),l1=Kt(),No=Ca(),sde=tl(),qR=Y6(),Zqe=(jn(),vr(Jn)),Si=(In(),vr(Wn)),ude=Si.ONEMAXYEAR,Wg=Si.ONEAVGYEAR,Zg=Si.ONEMINYEAR,fde=Si.ONEMAXQUARTER,E7=Si.ONEAVGQUARTER,Jg=Si.ONEMINQUARTER,cde=Si.ONEMAXMONTH,fh=Si.ONEAVGMONTH,jg=Si.ONEMINMONTH,zo=Si.ONEWEEK,Xi=Si.ONEDAY,wf=Xi/2,bs=Si.ONEHOUR,s1=Si.ONEMIN,$g=Si.ONESEC,vde=Si.ONEMILLI,hde=Si.ONEMICROSEC,tc=Si.MINUS_SIGN,Qg=Si.BADNUM,q7={K:"zeroline"},F7={K:"gridline",L:"path"},R7={K:"minor-gridline",L:"path"},GR={K:"tick",L:"path"},FR={K:"tick",L:"text"},RR={width:["x","r","l","xl","xr"],height:["y","t","b","yt","yb"],right:["r","xr"],left:["l","xl"],top:["t","yt"],bottom:["b","yb"]},e3=(Ni(),vr(Pi)),i1=e3.MID_SHIFT,ac=e3.CAP_SHIFT,u1=e3.LINE_SPACING,dde=e3.OPPOSITE_SIDE,Kg=3,pr=eP.exports={};pr.setConvert=Hg();var pde=w7(),xs=fn(),mde=xs.idSort,yde=xs.isLinked;pr.id2name=xs.id2name;pr.name2id=xs.name2id;pr.cleanId=xs.cleanId;pr.list=xs.list;pr.listIds=xs.listIds;pr.getFromId=xs.getFromId;pr.getFromTrace=xs.getFromTrace;var YR=lh();pr.getAutoRange=YR.getAutoRange;pr.findExtremes=YR.findExtremes;var gde=1e-4;function B7(e){var r=(e[1]-e[0])*gde;return[e[0]-r,e[1]+r]}function bde(e,r,t){if(![t,e,r].every(En)||t===0)return e;let a=Math.round((e-r)/t),n=r+a*t;return e!==n&&Math.abs(e-n)v+" domain")),s=s.concat(i||[]),f.length>o?(Ft.warn("Array attribute "+u+" has more entries than expected, truncating to "+o),f=f.slice(0,o)):f.length2e-6||((t-e._forceTick0)/e._minDtick%1+1.000001)%1>2e-6)&&(e._minDtick=0))};pr.saveRangeInitial=function(e,r){for(var t=pr.list(e,"",!0),a=!1,n=0;nc*.3||u(a)||u(n))){var v=t.dtick/2;e+=e+vo){var l=Number(t.slice(1));i.exactYears>o&&l%12===0?e=pr.tickIncrement(e,"M6","reverse")+Xi*1.5:i.exactMonths>o?e=pr.tickIncrement(e,"M1","reverse")+Xi*15.5:e-=wf;var s=pr.tickIncrement(e,t);if(s<=a)return s}return e}pr.prepMinorTicks=function(e,r,t){var c,v;if(!((c=r.minor)!=null&&c.dtick)){delete e.dtick;var a=r.dtick&&En(r._tmin),n;if(a){var i=pr.tickIncrement(r._tmin,r.dtick,!0);n=[r._tmin,i*.99+r._tmin*.01]}else{var o=Ft.simpleMap(r.range,r.r2l);n=[o[0],.8*o[0]+.2*o[1]]}if(e.range=Ft.simpleMap(n,r.l2r),e._isMinor=!0,pr.prepTicks(e,t),a){var l=En(r.dtick),s=En(e.dtick),u=l?r.dtick:+r.dtick.substring(1),f=s?e.dtick:+e.dtick.substring(1);l&&s?C7(u,f)?u===2*zo&&f===2*Xi&&(e.dtick=zo):u===2*zo&&f===3*Xi?e.dtick=zo:u===zo&&!(r._input.minor||{}).nticks?e.dtick=Xi:zR(u/f,2.5)?e.dtick=u/2:e.dtick=u:String(r.dtick).charAt(0)==="M"?s?e.dtick="M1":C7(u,f)?u>=12&&f===2&&(e.dtick="M3"):e.dtick=r.dtick:String(e.dtick).charAt(0)==="L"?String(r.dtick).charAt(0)==="L"?C7(u,f)||(e.dtick=zR(u/f,2.5)?r.dtick/2:r.dtick):e.dtick="D1":e.dtick==="D2"&&+r.dtick>1&&(e.dtick=1)}e.range=r.range}((v=r.minor)==null?void 0:v._tick0Init)===void 0&&(e.tick0=r.tick0)};function C7(e,r){return Math.abs((e/r+.5)%1-.5)<.001}function zR(e,r){return Math.abs(e/r-1)<.001}pr.prepTicks=function(e,r){var t=Ft.simpleMap(e.range,e.r2l,void 0,void 0,r);if(e.tickmode==="auto"||!e.dtick){var a=e.nticks,n;a||(e.type==="category"||e.type==="multicategory"?(n=e.tickfont?Ft.bigFont(e.tickfont.size||12):15,a=e._length/n):(n=e._id.charAt(0)==="y"?40:80,a=Ft.constrain(e._length/n,4,9)+1),e._name==="radialaxis"&&(a*=2)),e.minor&&e.minor.tickmode!=="array"||e.tickmode==="array"&&(a*=100),e._roughDTick=Math.abs(t[1]-t[0])/a,pr.autoTicks(e,e._roughDTick),e._minDtick>0&&e.dtick0?(i=a-1,o=a):(i=a,o=a);var l=e[i].value,s=e[o].value,u=Math.abs(s-l),f=t||u,c=0;f>=Zg?u>=Zg&&u<=ude?c=u:c=Wg:t===E7&&f>=Jg?u>=Jg&&u<=fde?c=u:c=E7:f>=jg?u>=jg&&u<=cde?c=u:c=fh:t===zo&&f>=zo?c=zo:f>=Xi?c=Xi:t===wf&&f>=wf?c=wf:t===bs&&f>=bs&&(c=bs);var v;c>=u&&(c=u,v=!0);var d=n+c;if(r.rangebreaks&&c>0){for(var p=84,y=0,m=0;mzo&&(c=u)}(c>0||a===0)&&(e[a].periodX=n+c/2)}}pr.calcTicks=function(r,t){for(var a=r.type,n=r.calendar,i=r.ticklabelstep,o=r.ticklabelmode==="period",l=r.range[0]>r.range[1],s=!r.ticklabelindex||Ft.isArrayOrTypedArray(r.ticklabelindex)?r.ticklabelindex:[r.ticklabelindex],u=Ft.simpleMap(r.range,r.r2l,void 0,void 0,t),f=u[1]=(x?0:1);w--){var k=!w;w?(r._dtickInit=r.dtick,r._tick0Init=r.tick0):x&&(r.minor._dtickInit=r.minor.dtick,r.minor._tick0Init=r.minor.tick0);var M=w?r:Ft.extendFlat({},r,x?r.minor:{minor:{}});if(k?pr.prepMinorTicks(M,r,t):pr.prepTicks(M,t),M.tickmode==="array"){w?(m=[],p=BR(r,!k)):(b=[],y=BR(r,!k));continue}if(M.tickmode==="sync"){m=[],p=Mde(r);continue}var C=B7(u),E=C[0],F=C[1],P=En(M.dtick),q=a==="log"&&!(P||M.dtick.charAt(0)==="L"),z=pr.tickFirst(M,t);if(w){if(r._tmin=z,z=F:Y<=F;Y=pr.tickIncrement(Y,U,f,n)){if(w&&V++,M.rangebreaks&&!f){if(Y=v)break}if(m.length>d||Y===I)break;I=Y;var W={value:bde(Y,G,U)};w?(Y===z&&(W.first=!0),q&&Y!==(Y|0)&&(W.simpleLabel=!0),i>1&&V%i&&(W.skipLabel=!0),m.push(W)):(W.minor=!0,b.push(W))}}if(!b||b.length<3)s=!1;else{var j=(b[2].value-b[1].value)*(l?-1:1);jde(j,r.tickformat)||(s=!1,b=b.slice(1))}if(!s)T=m;else{var ae=m.concat(b);o&&m.length&&(ae=ae.slice(1)),ae=ae.sort(function(Lr,He){return Lr.value-He.value}).filter(function(Lr,He,or){return He===0||Lr.value!==or[He-1].value});var pe=ae.map(function(Lr,He){return Lr.minor===void 0&&!Lr.skipLabel?He:null}).filter(function(Lr){return Lr!==null});pe.forEach(function(Lr){s.map(function(He){var or=Lr+He;or>=0&&or-1;Ne--){if(m[Ne].drop){m.splice(Ne,1);continue}m[Ne].value=L7(m[Ne].value,r);var Qe=r.c2p(m[Ne].value);(ir?Ve>Qe-qe:Vev||Irv&&(or.periodX=v),Irn&&pn&&mWg)r/=Wg,a=n(10),e.dtick="M"+12*gs(r,a,Vg);else if(i>fh)r/=fh,e.dtick="M"+gs(r,1,IR);else if(i>Xi){if(e.dtick=gs(r,Xi,e._hasDayOfWeekBreaks?[1,2,7,14]:kde),!t){var o=pr.getTickFormat(e),l=e.ticklabelmode==="period";l&&(e._rawTick0=e.tick0),/%[uVW]/.test(o)?e.tick0=Ft.dateTick0(e.calendar,2):e.tick0=Ft.dateTick0(e.calendar,1),l&&(e._dowTick0=e.tick0)}}else i>bs?e.dtick=gs(r,bs,IR):i>s1?e.dtick=gs(r,s1,OR):i>$g?e.dtick=gs(r,$g,OR):(a=n(10),e.dtick=gs(r,a,Vg))}else if(e.type==="log"){e.tick0=0;var s=Ft.simpleMap(e.range,e.r2l);if(e._isMinor&&(r*=1.5),r>.7)e.dtick=Math.ceil(r);else if(Math.abs(s[1]-s[0])<1){var u=1.5*Math.abs((s[1]-s[0])/r);r=Math.abs(Math.pow(10,s[1])-Math.pow(10,s[0]))/u,a=n(10),e.dtick="L"+gs(r,a,Vg)}else e.dtick=r>.3?"D2":"D1"}else e.type==="category"||e.type==="multicategory"?(e.tick0=0,e.dtick=Math.ceil(Math.max(r,1))):U7(e)?(e.tick0=0,a=1,e.dtick=gs(r,a,Sde)):(e.tick0=0,a=n(10),e.dtick=gs(r,a,Vg));if(e.dtick===0&&(e.dtick=1),!En(e.dtick)&&typeof e.dtick!="string"){var f=e.dtick;throw e.dtick=1,"ax.dtick error: "+String(f)}};function ZR(e){var r=e.dtick;if(e._tickexponent=0,!En(r)&&typeof r!="string"&&(r=1),(e.type==="category"||e.type==="multicategory")&&(e._tickround=null),e.type==="date"){var t=e.r2l(e.tick0),a=e.l2r(t).replace(/(^-|i)/g,""),n=a.length;if(String(r).charAt(0)==="M")n>10||a.slice(5)!=="01-01"?e._tickround="d":e._tickround=+r.slice(1)%12===0?"y":"m";else if(r>=Xi&&n<=10||r>=Xi*15)e._tickround="d";else if(r>=s1&&n<=16||r>=bs)e._tickround="M";else if(r>=$g&&n<=19||r>=s1)e._tickround="S";else{var i=e.l2r(t+r).replace(/^-/,"").length;e._tickround=Math.max(n,i)-20,e._tickround<0&&(e._tickround=4)}}else if(En(r)||r.charAt(0)==="L"){var o=e.range.map(e.r2d||Number);En(r)||(r=Number(r.slice(1))),e._tickround=2-Math.floor(Math.log(r)/Math.LN10+.01);var l=Math.max(Math.abs(o[0]),Math.abs(o[1])),s=Math.floor(Math.log(l)/Math.LN10+.01),u=e.minexponent===void 0?3:e.minexponent;Math.abs(s)>u&&(ch(e.exponentformat)&&e.exponentformat!=="SI extended"&&!I7(s)||ch(e.exponentformat)&&e.exponentformat==="SI extended"&&!O7(s)?e._tickexponent=3*Math.round((s-1)/3):e._tickexponent=s)}else e._tickround=null}pr.tickIncrement=function(e,r,t,a){var n=t?-1:1;if(En(r))return Ft.increment(e,n*r);var i=r.charAt(0),o=n*Number(r.slice(1));if(i==="M")return Ft.incrementMonth(e,o,a);if(i==="L")return Math.log(Math.pow(10,e)+o)/Math.LN10;if(i==="D"){var l=r==="D2"?WR:XR,s=e+n*.01,u=Ft.roundUp(Ft.mod(s,1),l,t);return Math.floor(s)+Math.log(al.round(Math.pow(10,u),1))/Math.LN10}throw"unrecognized dtick "+String(r)};pr.tickFirst=function(e,r){var t=e.r2l||Number,a=Ft.simpleMap(e.range,t,void 0,void 0,r),n=a[1]=0&&x<=e._length?_:null};if(s&&Ft.isArrayOrTypedArray(e.ticktext)){var p=Ft.simpleMap(e.range,e.r2l),y=(Math.abs(p[1]-p[0])-(e._lBreaks||0))/1e4;for(v=0;v"+l;else{var u=c1(e),f=e._trueSide||e.side;(!u&&f==="top"||u&&f==="bottom")&&(o+="
")}r.text=o}function Dde(e,r,t,a,n){var i=e.dtick,o=r.x,l=e.tickformat,s=typeof i=="string"&&i.charAt(0);if(n==="never"&&(n=""),a&&s!=="L"&&(i="L3",s="L"),l||s==="L")r.text=f1(Math.pow(10,o),e,n,a);else if(En(i)||s==="D"&&(e.minorloglabels==="complete"||Ft.mod(o+.01,1)<.1)){var u;e.minorloglabels==="complete"&&!(Ft.mod(o+.01,1)<.1)&&(u=!0,r.fontSize*=.75);var f=Math.pow(10,o).toExponential(0),c=f.split("e"),v=+c[1],d=Math.abs(v),p=e.exponentformat;p==="power"||ch(p)&&p!=="SI extended"&&I7(v)||ch(p)&&p==="SI extended"&&O7(v)?(r.text=c[0],d>0&&(r.text+="x10"),r.text==="1x10"&&(r.text="10"),v!==0&&v!==1&&(r.text+=""+(v>0?"":tc)+d+""),r.fontSize*=1.25):(p==="e"||p==="E")&&d>2?r.text=c[0]+p+(v>0?"+":tc)+d:(r.text=f1(Math.pow(10,o),e,"","fakehover"),i==="D1"&&e._id.charAt(0)==="y"&&(r.dy-=r.fontSize/6))}else if(s==="D")r.text=e.minorloglabels==="none"?"":String(Math.round(Math.pow(10,Ft.mod(o,1)))),r.fontSize*=.75;else throw"unrecognized dtick "+String(i);if(e.dtick==="D1"){var y=String(r.text).charAt(0);(y==="0"||y==="1")&&(e._id.charAt(0)==="y"?r.dx-=r.fontSize/4:(r.dy+=r.fontSize/2,r.dx+=(e.range[1]>e.range[0]?1:-1)*r.fontSize*(o<0?.5:.25)))}}function Lde(e,r){var t=e._categories[Math.round(r.x)];t===void 0&&(t=""),r.text=String(t)}function Ede(e,r,t){var a=Math.round(r.x),n=e._categories[a]||[],i=n[1]===void 0?"":String(n[1]),o=n[0]===void 0?"":String(n[0]);t?r.text=o+" - "+i:(r.text=i,r.text2=o)}function qde(e,r,t,a,n){n==="never"?n="":e.showexponent==="all"&&Math.abs(r.x/e.dtick)<1e-6&&(n="hide"),r.text=f1(r.x,e,n,a)}function Fde(e,r,t,a,n){if(e.thetaunit==="radians"&&!t){var i=r.x/180;if(i===0)r.text="0";else{var o=Rde(i);if(o[1]>=100)r.text=f1(Ft.deg2rad(r.x),e,n,a);else{var l=r.x<0;o[1]===1?o[0]===1?r.text="\u03C0":r.text=o[0]+"\u03C0":r.text=["",o[0],"","\u2044","",o[1],"","\u03C0"].join(""),l&&(r.text=tc+r.text)}}}else r.text=f1(r.x,e,n,a)}function Rde(e){function r(l,s){return Math.abs(l-s)<=1e-6}function t(l,s){return r(s,0)?l:t(s,l%s)}function a(l){for(var s=1;!r(Math.round(l*s)/s,l);)s*=10;return s}var n=a(e),i=e*n,o=Math.abs(t(i,n));return[Math.round(i/o),Math.round(n/o)]}var jR=["f","p","n","\u03BC","m","","k","M","G","T"],Pde=["q","r","y","z","a",...jR,"P","E","Z","Y","R","Q"],ch=e=>["SI","SI extended","B"].includes(e);function I7(e){return e>14||e<-15}function O7(e){return e>32||e<-30}function Nde(e,r){return ch(r)?!!(r==="SI extended"&&O7(e)||r!=="SI extended"&&I7(e)):!1}function f1(e,r,t,a){var n=e<0,i=r._tickround,o=t||r.exponentformat||"B",l=r._tickexponent,s=pr.getTickFormat(r),u=r.separatethousands;if(a){var f={exponentformat:o,minexponent:r.minexponent,dtick:r.showexponent==="none"?r.dtick:En(e)&&Math.abs(e)||1,range:r.showexponent==="none"?r.range.map(r.r2d):[0,e||1]};ZR(f),i=(Number(f._tickround)||0)+4,l=f._tickexponent,r.hoverformat&&(s=r.hoverformat)}if(s)return r._numFormat(s)(e).replace(/-/g,tc);o==="none"&&(l=0),e=Math.abs(e);let c=Math.pow(10,-i)/2;if(e"+v+"":o==="B"&&l===9?e+="B":ch(o)&&(e+=o==="SI extended"?Pde[l/3+10]:jR[l/3+5])}return n?tc+e:e}pr.getTickFormat=function(e){var r;function t(s){return typeof s!="string"?s:Number(s.replace("M",""))*fh}function a(s,u){var f=["L","D"];if(typeof s==typeof u){if(typeof s=="number")return s-u;var c=f.indexOf(s.charAt(0)),v=f.indexOf(u.charAt(0));return c===v?Number(s.replace(/(L|D)/g,""))-Number(u.replace(/(L|D)/g,"")):c-v}else return typeof s=="number"?1:-1}function n(s,u,f){var c=f||function(p){return p},v=u[0],d=u[1];return(!v&&typeof v!="number"||c(v)<=c(s))&&(!d&&typeof d!="number"||c(d)>=c(s))}function i(s,u){var f=u[0]===null,c=u[1]===null,v=a(s,u[0])>=0,d=a(s,u[1])<=0;return(f||v)&&(c||d)}var o,l;if(e.tickformatstops&&e.tickformatstops.length>0)switch(e.type){case"date":case"linear":{for(r=0;r=0&&n.unshift(n.splice(f,1).shift())}});var l={false:{left:0,right:0}};return Ft.syncOrAsync(n.map(function(s){return function(){if(s){var u=pr.getFromId(e,s);t||(t={}),t.axShifts=l,t.overlayingShiftedAx=o;var f=pr.drawOne(e,u,t);return u._shiftPusher&&z7(u,u._fullDepth||0,l,!0),u._r=u.range.slice(),u._rl=Ft.simpleMap(u._r,u.r2l),f}}}))};pr.drawOne=function(e,r,t){t=t||{};var a=t.axShifts||{},n=t.overlayingShiftedAx||[],i,o,l;r.setScale();var s=e._fullLayout,u=r._id,f=u.charAt(0),c=pr.counterLetter(u),v=s._plots[r._mainSubplot],d=r.zerolinelayer==="above traces";if(!v)return;if(r._shiftPusher=r.autoshift||n.indexOf(r._id)!==-1||n.indexOf(r.overlaying)!==-1,r._shiftPusher&r.anchor==="free"){var p=r.linewidth/2||0;r.ticks==="inside"&&(p+=r.ticklen),z7(r,p,a,!0),z7(r,r.shift||0,a,!1)}(t.skipTitle!==!0||r._shift===void 0)&&(r._shift=Jde(r,a));var y=v[f+"axislayer"],m=r._mainLinePosition,b=m+=r._shift,T=r._mainMirrorPosition,_=r._vals=pr.calcTicks(r),x=[r.mirror,b,T].join("_");for(i=0;i<_.length;i++)_[i].axInfo=x;r._selections={},r._tickAngles&&(r._prevTickAngles=r._tickAngles),r._tickAngles={},r._depth=null;var w={};function k(Ge){var Sr=u+(Ge||"tick");return w[Sr]||(w[Sr]=Ode(r,Sr,b)),w[Sr]}if(r.visible){var M=pr.makeTransTickFn(r),C=pr.makeTransTickLabelFn(r),E,F,P=r.ticks==="inside",q=r.ticks==="outside";if(r.tickson==="boundaries"){var z=zde(r,_);F=pr.clipEnds(r,z),E=P?F:z}else F=pr.clipEnds(r,_),E=P&&r.ticklabelmode!=="period"?F:_;var I=r._gridVals=F,Y=Ide(r,_);if(!s._hasOnlyLargeSploms){var V=r._subplotsWith,J={};for(i=0;i0?He.bottom-Fr:0,Lr))));var Le=0,Mr=0;if(r._shiftPusher&&(Le=Math.max(Lr,He.height>0?Ge==="l"?Fr-He.left:He.right-Fr:0),r.title.text!==s._dfltTitle[f]&&(Mr=(r._titleStandoff||0)+(r._titleScoot||0),Ge==="l"&&(Mr+=UR(r))),r._fullDepth=Math.max(Le,Mr)),r.automargin){or={x:0,y:0,r:0,l:0,t:0,b:0};var lt=[0,1],Xe=typeof r._shift=="number"?r._shift:0;if(f==="x"){if(Ge==="b"?or[Ge]=r._depth:(or[Ge]=r._depth=Math.max(He.width>0?Fr-He.top:0,Lr),lt.reverse()),He.width>0){var Me=He.right-(r._offset+r._length);Me>0&&(or.xr=1,or.r=Me);var Fe=r._offset-He.left;Fe>0&&(or.xl=0,or.l=Fe)}}else if(Ge==="l"?(r._depth=Math.max(He.height>0?Fr-He.left:0,Lr),or[Ge]=r._depth-Xe):(r._depth=Math.max(He.height>0?He.right-Fr:0,Lr),or[Ge]=r._depth+Xe,lt.reverse()),He.height>0){var dr=He.bottom-(r._offset+r._length);dr>0&&(or.yb=0,or.b=dr);var kr=r._offset-He.top;kr>0&&(or.yt=1,or.t=kr)}or[c]=r.anchor==="free"?r.position:r._anchorAxis.domain[lt[0]],r.title.text!==s._dfltTitle[f]&&(or[Ge]+=UR(r)+(r.title.standoff||0)),r.mirror&&r.anchor!=="free"&&(Ir={x:0,y:0,r:0,l:0,t:0,b:0},Ir[Sr]=r.linewidth,r.mirror&&r.mirror!==!0&&(Ir[Sr]+=Lr),r.mirror===!0||r.mirror==="ticks"?Ir[c]=r._anchorAxis.domain[lt[1]]:(r.mirror==="all"||r.mirror==="allticks")&&(Ir[c]=[r._counterDomainMin,r._counterDomainMax][lt[1]]))}yr&&(fe=o1.getComponentMethod("rangeslider","autoMarginOpts")(e,r)),typeof r.automargin=="string"&&(HR(or,r.automargin),HR(Ir,r.automargin)),sh.autoMargin(e,H7(r),or),sh.autoMargin(e,KR(r),Ir),sh.autoMargin(e,QR(r),fe)}),Ft.syncOrAsync(er)}};function HR(e,r){if(e){var t=Object.keys(RR).reduce(function(a,n){return r.indexOf(n)!==-1&&RR[n].forEach(function(i){a[i]=1}),a},{});Object.keys(e).forEach(function(a){t[a]||(a.length===1?e[a]=0:delete e[a])})}}function zde(e,r){var t=[],a,n=function(i,o){var l=i.xbnd[o];l!==null&&t.push(Ft.extendFlat({},i,{x:l}))};if(r.length){for(a=0;ae.range[1],l=e.ticklabelposition&&e.ticklabelposition.indexOf("inside")!==-1,s=!l;if(t){var u=o?-1:1;t=t*u}if(a){var f=e.side,c=l&&(f==="top"||f==="left")||s&&(f==="bottom"||f==="right")?1:-1;a=a*c}return e._id.charAt(0)==="x"?function(v){return uh(n+e._offset+e.l2p(P7(v))+t,i+a)}:function(v){return uh(i+a,n+e._offset+e.l2p(P7(v))+t)}};function P7(e){return e.periodX!==void 0?e.periodX:e.x}function Hde(e){var r=e.ticklabelposition||"",t=e.tickson||"",a=function(p){return r.indexOf(p)!==-1},n=a("top"),i=a("left"),o=a("right"),l=a("bottom"),s=a("inside"),u=t!=="boundaries"&&(l||i||n||o);if(!u&&!s)return[0,0];var f=e.side,c=u?(e.tickwidth||0)/2:0,v=Kg,d=e.tickfont?e.tickfont.size:12;return(l||n)&&(c+=d*ac,v+=(e.linewidth||0)/2),(i||o)&&(c+=(e.linewidth||0)/2,v+=Kg),s&&f==="top"&&(v-=d*(1-ac)),(i||n)&&(c=-c),(f==="bottom"||f==="right")&&(v=-v),[u?c:0,s?v:0]}pr.makeTickPath=function(e,r,t,a){a||(a={});var n=a.minor;if(n&&!e.minor)return"";var i=a.len!==void 0?a.len:n?e.minor.ticklen:e.ticklen,o=e._id.charAt(0),l=(e.linewidth||1)/2;return o==="x"?"M0,"+(r+l*t)+"v"+i*t:"M"+(r+l*t)+",0h"+i*t};pr.makeLabelFns=function(e,r,t){var a=e.ticklabelposition||"",n=e.tickson||"",i=function(z){return a.indexOf(z)!==-1},o=i("top"),l=i("left"),s=i("right"),u=i("bottom"),f=n!=="boundaries"&&(u||l||o||s),c=i("inside"),v=a==="inside"&&e.ticks==="inside"||!c&&e.ticks==="outside"&&n!=="boundaries",d=0,p=0,y=v?e.ticklen:0;if(c?y*=-1:f&&(y=0),v&&(d+=y,t)){var m=Ft.deg2rad(t);d=y*Math.cos(m)+1,p=y*Math.sin(m)}e.showticklabels&&(v||e.showline)&&(d+=.2*e.tickfont.size),d+=(e.linewidth||1)/2*(c?-1:1);var b={labelStandoff:d,labelShift:p},T,_,x,w,k=0,M=e.side,C=e._id.charAt(0),E=e.tickangle,F;if(C==="x")F=!c&&M==="bottom"||c&&M==="top",w=F?1:-1,c&&(w*=-1),T=p*w,_=r+d*w,x=F?1:-.2,Math.abs(E)===90&&(c?x+=i1:E===-90&&M==="bottom"?x=ac:E===90&&M==="top"?x=i1:x=.5,k=i1/2*(E/90)),b.xFn=function(z){return z.dx+T+k*z.fontSize},b.yFn=function(z){return z.dy+_+z.fontSize*x},b.anchorFn=function(z,I){if(f){if(l)return"end";if(s)return"start"}return!En(I)||I===0||I===180?"middle":I*w<0!==c?"end":"start"},b.heightFn=function(z,I,Y){return I<-60||I>60?-.5*Y:e.side==="top"!==c?-Y:0};else if(C==="y"){if(F=!c&&M==="left"||c&&M==="right",w=F?1:-1,c&&(w*=-1),T=d,_=p*w,x=0,!c&&Math.abs(E)===90&&(E===-90&&M==="left"||E===90&&M==="right"?x=ac:x=.5),c){var P=En(E)?+E:0;if(P!==0){var q=Ft.deg2rad(P);k=Math.abs(Math.sin(q))*ac*w,x=0}}b.xFn=function(z){return z.dx+r-(T+z.fontSize*x)*w+k*z.fontSize},b.yFn=function(z){return z.dy+_+z.fontSize*i1},b.anchorFn=function(z,I){return En(I)&&Math.abs(I)===90?"middle":F?"end":"start"},b.heightFn=function(z,I,Y){return e.side==="right"&&(I*=-1),I<-30?-Y:I<30?-.5*Y:0}}return b};function r3(e){return[e.text,e.x,e.axInfo,e.font,e.fontSize,e.fontColor].join("_")}pr.drawTicks=function(e,r,t){t=t||{};var a=r._id+"tick",n=[].concat(r.minor&&r.minor.ticks?t.vals.filter(function(o){return o.minor&&!o.noTick}):[]).concat(r.ticks?t.vals.filter(function(o){return!o.minor&&!o.noTick}):[]),i=t.layer.selectAll("path."+a).data(n,r3);i.exit().remove(),i.enter().append("path").classed(a,1).classed("ticks",1).classed("crisp",t.crisp!==!1).each(function(o){return l1.stroke(al.select(this),o.minor?r.minor.tickcolor:r.tickcolor)}).style("stroke-width",function(o){return No.crispRound(e,o.minor?r.minor.tickwidth:r.tickwidth,1)+"px"}).attr("d",t.path).style("display",null),t3(r,[GR]),i.attr("transform",t.transFn)};pr.drawGrid=function(e,r,t){if(t=t||{},r.tickmode!=="sync"){var a=r._id+"grid",n=r.minor&&r.minor.showgrid,i=n?t.vals.filter(function(b){return b.minor}):[],o=r.showgrid?t.vals.filter(function(b){return!b.minor}):[],l=t.counterAxis;if(l&&pr.shouldShowZeroLine(e,r,l))for(var s=r.tickmode==="array",u=0;u=0;p--){var y=p?v:d;if(y){var m=y.selectAll("path."+a).data(p?o:i,r3);m.exit().remove(),m.enter().append("path").classed(a,1).classed("crisp",t.crisp!==!1),m.attr("transform",t.transFn).attr("d",t.path).each(function(b){return l1.stroke(al.select(this),b.minor?r.minor.gridcolor:r.gridcolor||"#ddd")}).style("stroke-dasharray",function(b){return No.dashStyle(b.minor?r.minor.griddash:r.griddash,b.minor?r.minor.gridwidth:r.gridwidth)}).style("stroke-width",function(b){return(b.minor?c:r._gw)+"px"}).style("display",null),typeof t.path=="function"&&m.attr("d",t.path)}}t3(r,[F7,R7])}};pr.drawZeroLine=function(e,r,t){t=t||t;var a=r._id+"zl",n=pr.shouldShowZeroLine(e,r,t.counterAxis),i=t.layer.selectAll("path."+a).data(n?[{x:0,id:r._id}]:[]);i.exit().remove(),i.enter().append("path").classed(a,1).classed("zl",1).classed("crisp",t.crisp!==!1).each(function(){t.layer.selectAll("path").sort(function(o,l){return mde(o.id,l.id)})}),i.attr("transform",t.transFn).attr("d",t.path).call(l1.stroke,r.zerolinecolor||l1.defaultLine).style("stroke-width",No.crispRound(e,r.zerolinewidth,r._gw||1)+"px").style("display",null),t3(r,[q7])};pr.drawLabels=function(e,r,t){t=t||{};var a=e._fullLayout,n=r._id,i=r.zerolinelayer==="above traces",o=t.cls||n+"tick",l=t.vals.filter(function(G){return G.text}),s=t.labelFns,u=t.secondary?0:r.tickangle,f=(r._prevTickAngles||{})[o],c=t.layer.selectAll("g."+o).data(r.showticklabels?l:[],r3),v=[];c.enter().append("g").classed(o,1).append("text").attr("text-anchor","middle").each(function(G){var W=al.select(this),j=e._promises.length;W.call(rc.positionText,s.xFn(G),s.yFn(G)).call(No.font,{family:G.font,size:G.fontSize,color:G.fontColor,weight:G.fontWeight,style:G.fontStyle,variant:G.fontVariant,textcase:G.fontTextcase,lineposition:G.fontLineposition,shadow:G.fontShadow}).text(G.text).call(rc.convertToTspans,e),e._promises[j]?v.push(e._promises.pop().then(function(){d(W,u)})):d(W,u)}),t3(r,[FR]),c.exit().remove(),t.repositionOnUpdate&&c.each(function(G){al.select(this).select("text").call(rc.positionText,s.xFn(G),s.yFn(G))});function d(G,W){G.each(function(j){var ae=al.select(this),pe=ae.select(".text-math-group"),se=s.anchorFn(j,W),we=t.transFn.call(ae.node(),j)+(En(W)&&+W!=0?" rotate("+W+","+s.xFn(j)+","+(s.yFn(j)-j.fontSize/2)+")":""),te=rc.lineCount(ae),Ee=u1*j.fontSize,de=s.heightFn(j,En(W)?+W:0,(te-1)*Ee);if(de&&(we+=uh(0,de)),pe.empty()){var Ae=ae.select("text");Ae.attr({transform:we,"text-anchor":se}),Ae.style("display",null),r._adjustTickLabelsOverflow&&r._adjustTickLabelsOverflow()}else{var Ue=No.bBox(pe.node()).width,ge=Ue*{end:-.5,start:.5}[se];pe.attr("transform",we+uh(ge,0))}})}r._adjustTickLabelsOverflow=function(){var G=r.ticklabeloverflow;if(!(!G||G==="allow")){var W=G.indexOf("hide")!==-1,j=r._id.charAt(0)==="x",ae=0,pe=j?e._fullLayout.width:e._fullLayout.height;if(G.indexOf("domain")!==-1){var se=Ft.simpleMap(r.range,r.r2l);ae=r.l2p(se[0])+r._offset,pe=r.l2p(se[1])+r._offset}var we=Math.min(ae,pe),te=Math.max(ae,pe),Ee=r.side,de=1/0,Ae=-1/0;c.each(function(ir){var qe=al.select(this),Ve=qe.select(".text-math-group");if(Ve.empty()){var Qe=No.bBox(qe.node()),er=0;j?(Qe.right>te||Qe.leftte||Qe.top+(r.tickangle?0:ir.fontSize/4)r["_visibleLabelMin_"+se._id]?qe.style("display","none"):te.K==="tick"&&!we&&qe.node().style.display!=="none"&&qe.style("display",null)})})})})},d(c,f+1?f:u);function p(){return v.length&&Promise.all(v)}var y=null;function m(){if(d(c,u),l.length&&r.autotickangles&&(r.type!=="log"||String(r.dtick).charAt(0)!=="D")){y=r.autotickangles[0];var G=0,W=[],j,ae=1;c.each(function(or){G=Math.max(G,or.fontSize);var Ir=r.l2p(or.x),fe=N7(this),Le=No.bBox(fe.node());ae=Math.max(ae,rc.lineCount(fe)),W.push({top:0,bottom:10,height:10,left:Ir-Le.width/2,right:Ir+Le.width/2+2,width:Le.width+2})});var pe=(r.tickson==="boundaries"||r.showdividers)&&!t.secondary,se=l.length,we=Math.abs((l[se-1].x-l[0].x)*r._m)/(se-1),te=pe?we/2:we,Ee=pe?r.ticklen:G*1.25*ae,de=Math.sqrt(Math.pow(te,2)+Math.pow(Ee,2)),Ae=te/de,Ue=r.autotickangles.map(function(or){return or*Math.PI/180}),ge=Ue.find(function(or){return Math.abs(Math.cos(or))<=Ae});ge===void 0&&(ge=Ue.reduce(function(or,Ir){return Math.abs(Math.cos(or))V*Y&&(q=Y,E[C]=F[C]=z[C])}var J=Math.abs(q-P);J-w>0?(J-=w,w*=1+w/J):w=0,r._id.charAt(0)!=="y"&&(w=-w),E[M]=_.p2r(_.r2p(F[M])+k*w),_.autorange==="min"||_.autorange==="max reversed"?(E[0]=null,_._rangeInitial0=void 0,_._rangeInitial1=void 0):(_.autorange==="max"||_.autorange==="min reversed")&&(E[1]=null,_._rangeInitial0=void 0,_._rangeInitial1=void 0),a._insideTickLabelsUpdaterange[_._name+".range"]=E}var U=Ft.syncOrAsync(b);return U&&U.then&&e._promises.push(U),U};function Ude(e,r,t){var a=r._id+"divider",n=t.vals,i=t.layer.selectAll("path."+a).data(n,r3);i.exit().remove(),i.enter().insert("path",":first-child").classed(a,1).classed("crisp",1).call(l1.stroke,r.dividercolor).style("stroke-width",No.crispRound(e,r.dividerwidth,1)+"px"),i.attr("transform",t.transFn).attr("d",t.path)}pr.getPxPosition=function(e,r){var t=e._fullLayout._size,a=r._id.charAt(0),n=r.side,i;if(r.anchor!=="free"?i=r._anchorAxis:a==="x"?i={_offset:t.t+(1-(r.position||0))*t.h,_length:0}:a==="y"&&(i={_offset:t.l+(r.position||0)*t.w+r._shift,_length:0}),n==="top"||n==="left")return i._offset;if(n==="bottom"||n==="right")return i._offset+i._length};function UR(e){var r=e.title.font.size,t=(e.title.text.match(rc.BR_TAG_ALL)||[]).length;return e.title.hasOwnProperty("standoff")?r*(ac+t*u1):t?r*(t+1)*u1:r}function Gde(e,r){var t=e._fullLayout,a=r._id,n=a.charAt(0),i=r.title.font.size,o,l=(r.title.text.match(rc.BR_TAG_ALL)||[]).length;if(r.title.hasOwnProperty("standoff"))r.side==="bottom"||r.side==="right"?o=r._depth+r.title.standoff+i*ac:(r.side==="top"||r.side==="left")&&(o=r._depth+r.title.standoff+i*(i1+l*u1));else{var s=c1(r);if(r.type==="multicategory")o=r._depth;else{var u=1.5*i;s&&(u=.5*i,r.ticks==="outside"&&(u+=r.ticklen)),o=10+u+(r.linewidth?r.linewidth-1:0)}s||(n==="x"?o+=r.side==="top"?i*(r.showticklabels?1:0):i*(r.showticklabels?1.5:.5):o+=r.side==="right"?i*(r.showticklabels?1:.5):i*(r.showticklabels?.5:0))}var f=pr.getPxPosition(e,r),c,v,d;n==="x"?(v=r._offset+r._length/2,d=r.side==="top"?f-o:f+o):(d=r._offset+r._length/2,v=r.side==="right"?f+o:f-o,c={rotate:"-90",offset:0});var p;if(r.type!=="multicategory"){var y=r._selections[r._id+"tick"];if(p={selection:y,side:r.side},y&&y.node()&&y.node().parentNode){var m=No.getTranslate(y.node().parentNode);p.offsetLeft=m.x,p.offsetTop=m.y}r.title.hasOwnProperty("standoff")&&(p.pad=0)}return r._titleStandoff=o,lde.draw(e,a+"title",{propContainer:r,propName:r._name+".title.text",placeholder:t._dfltTitle[n],avoid:p,transform:c,attributes:{x:v,y:d,"text-anchor":"middle"}})}pr.shouldShowZeroLine=function(e,r,t){var a=Ft.simpleMap(r.range,r.r2l);return a[0]*a[1]<=0&&r.zeroline&&(r.type==="linear"||r.type==="-")&&!(r.rangebreaks&&r.maskBreaks(0)===Qg)&&($R(r,0)||!Yde(e,r,t,a)||Vde(e,r))};pr.clipEnds=function(e,r){return r.filter(function(t){return $R(e,t.x)})};function $R(e,r){var t=e.l2p(r);return t>1&&t1)for(n=1;n=n.min&&e=hde:/%L/.test(r)?e>=vde:/%[SX]/.test(r)?e>=$g:/%M/.test(r)?e>=s1:/%[HI]/.test(r)?e>=bs:/%p/.test(r)?e>=wf:/%[Aadejuwx]/.test(r)?e>=Xi:/%[UVW]/.test(r)?e>=zo:/%[Bbm]/.test(r)?e>=jg:/%[q]/.test(r)?e>=Jg:/%[Yy]/.test(r)?e>=Zg:!0}});var tP=B((jqe,rP)=>{"use strict";rP.exports=function(r,t,a){var n,i;if(a){var o=t==="reversed"||t==="min reversed"||t==="max reversed";n=a[o?1:0],i=a[o?0:1]}var l=r("autorangeoptions.minallowed",i===null?n:void 0),s=r("autorangeoptions.maxallowed",n===null?i:void 0);l===void 0&&r("autorangeoptions.clipmin"),s===void 0&&r("autorangeoptions.clipmax"),r("autorangeoptions.include")}});var G7=B(($qe,aP)=>{"use strict";var $de=tP();aP.exports=function(r,t,a,n){var i=t._template||{},o=t.type||i.type||"-";a("minallowed"),a("maxallowed");var l=a("range");if(!l){var s;!n.noInsiderange&&o!=="log"&&(s=a("insiderange"),s&&(s[0]===null||s[1]===null)&&(t.insiderange=!1,s=void 0),s&&(l=a("range",s)))}var u=t.getAutorangeDflt(l,n),f=a("autorange",u),c;l&&(l[0]===null&&l[1]===null||(l[0]===null||l[1]===null)&&(f==="reversed"||f===!0)||l[0]!==null&&(f==="min"||f==="max reversed")||l[1]!==null&&(f==="max"||f==="min reversed"))&&(l=void 0,delete t.range,t.autorange=!0,c=!0),c||(u=t.getAutorangeDflt(l,n),f=a("autorange",u)),f&&($de(a,f,l),(o==="linear"||o==="-")&&a("rangemode")),t.cleanRange()}});var iP=B((Kqe,nP)=>{var Kde={left:0,top:0};nP.exports=Qde;function Qde(e,r,t){r=r||e.currentTarget||e.srcElement,Array.isArray(t)||(t=[0,0]);var a=e.clientX||0,n=e.clientY||0,i=e2e(r);return t[0]=a-i.left,t[1]=n-i.top,t}function e2e(e){return e===window||e===document||e===document.body?Kde:e.getBoundingClientRect()}});var Y7=B((Qqe,oP)=>{"use strict";var r2e=y6();function t2e(){var e=!1;try{var r=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("test",null,r),window.removeEventListener("test",null,r)}catch(t){e=!1}return e}oP.exports=r2e&&t2e()});var sP=B((eFe,lP)=>{"use strict";lP.exports=function(r,t,a,n,i){var o=(r-a)/(n-a),l=o+t/(n-a),s=(o+l)/2;return i==="left"||i==="bottom"?o:i==="center"||i==="middle"?s:i==="right"||i==="top"?l:o<2/3-s?o:l>4/3-s?l:s}});var cP=B((rFe,fP)=>{"use strict";var uP=nr(),a2e=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];fP.exports=function(r,t,a,n){return a==="left"?r=0:a==="center"?r=1:a==="right"?r=2:r=uP.constrain(Math.floor(r*3),0,2),n==="bottom"?t=0:n==="middle"?t=1:n==="top"?t=2:t=uP.constrain(Math.floor(t*3),0,2),a2e[t][r]}});var hP=B((tFe,vP)=>{"use strict";var n2e=W2(),i2e=ig(),o2e=I2().getGraphDiv,l2e=(x2(),vr(b2)),V7=vP.exports={};V7.wrapped=function(e,r,t){var i;e=o2e(e),e._fullLayout&&i2e.clear(e._fullLayout._uid+l2e.HOVERID);let a=e._hoverdata;V7.raw(e,r,t)&&e._hoverAnywhereActive&&(e._hoverAnywhereActive=!1,(i=e._fullLayout)!=null&&i.hoveranywhere&&(r!=null&&r.target)&&!a&&e.emit("plotly_unhover",{event:r,points:[]}))};V7.raw=function(r,t){var a=r._fullLayout,n=r._hoverdata;return t||(t={}),t.target&&!r._dragged&&n2e.triggerHandler(r,"plotly_beforehover",t)===!1?!1:(a._hoverlayer.selectAll("g").remove(),a._hoverlayer.selectAll("line").remove(),a._hoverlayer.selectAll("circle").remove(),r._hoverdata=void 0,t.target&&n&&r.emit("plotly_unhover",{event:t,points:n}),!0)}});var Bl=B((aFe,yP)=>{"use strict";var s2e=iP(),X7=b6(),u2e=Y7(),f2e=nr().removeElement,c2e=(jn(),vr(Jn)),nc=yP.exports={};nc.align=sP();nc.getCursor=cP();var pP=hP();nc.unhover=pP.wrapped;nc.unhoverRaw=pP.raw;nc.init=function(r){var t=r.gd,a=1,n=t._context.doubleClickDelay,i=r.element,o,l,s,u,f,c,v,d;t._mouseDownTime||(t._mouseDownTime=0),i.style.pointerEvents="all",i.onmousedown=m,u2e?(i._ontouchstart&&i.removeEventListener("touchstart",i._ontouchstart),i._ontouchstart=m,i.addEventListener("touchstart",m,{passive:!1})):i.ontouchstart=m;function p(_,x,w){return Math.abs(_)n&&(a=Math.max(a-1,1)),t._dragged)r.doneFn&&r.doneFn();else{var x;c.target===v?x=c:(x={target:v,srcElement:v,toElement:v},Object.keys(c).concat(Object.keys(c.__proto__)).forEach(w=>{var k=c[w];!x[w]&&typeof k!="function"&&(x[w]=k)})),r.clickFn&&r.clickFn(a,x),d||v.dispatchEvent(new MouseEvent("click",_))}t._dragging=!1,t._dragged=!1}};function mP(){var e=document.createElement("div");e.className="dragcover";var r=e.style;return r.position="fixed",r.left=0,r.right=0,r.top=0,r.bottom=0,r.zIndex=999999999,r.background="none",document.body.appendChild(e),e}nc.coverSlip=mP;function dP(e){return s2e(e.changedTouches?e.changedTouches[0]:e,document.body)}});var Af=B((nFe,gP)=>{"use strict";gP.exports=function(r,t){(r.attr("class")||"").split(" ").forEach(function(a){a.indexOf("cursor-")===0&&r.classed(a,!1)}),t&&r.classed("cursor-"+t,!0)}});var _P=B((iFe,xP)=>{"use strict";var W7=Af(),v1="data-savedcursor",bP="!!";xP.exports=function(r,t){var a=r.attr(v1);if(t){if(!a){for(var n=(r.attr("class")||"").split(" "),i=0;i{"use strict";var Z7=Ai(),v2e=vs();wP.exports={_isSubplotObj:!0,visible:{valType:"boolean",dflt:!0,editType:"legend"},bgcolor:{valType:"color",editType:"legend"},bordercolor:{valType:"color",dflt:v2e.defaultLine,editType:"legend"},maxheight:{valType:"number",min:0,editType:"legend"},borderwidth:{valType:"number",min:0,dflt:0,editType:"legend"},font:Z7({editType:"legend"}),grouptitlefont:Z7({editType:"legend"}),orientation:{valType:"enumerated",values:["v","h"],dflt:"v",editType:"legend"},traceorder:{valType:"flaglist",flags:["reversed","grouped"],extras:["normal"],editType:"legend"},tracegroupgap:{valType:"number",min:0,dflt:10,editType:"legend"},entrywidth:{valType:"number",min:0,editType:"legend"},entrywidthmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels",editType:"legend"},indentation:{valType:"number",min:-15,dflt:0,editType:"legend"},itemsizing:{valType:"enumerated",values:["trace","constant"],dflt:"trace",editType:"legend"},itemwidth:{valType:"number",min:30,dflt:30,editType:"legend"},itemclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggle",editType:"legend"},itemdoubleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggleothers",editType:"legend"},groupclick:{valType:"enumerated",values:["toggleitem","togglegroup"],dflt:"togglegroup",editType:"legend"},groupdoubleclick:{valType:"enumerated",values:["toggleitem","togglegroup"],editType:"legend"},titleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],editType:"legend"},titledoubleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],editType:"legend"},x:{valType:"number",editType:"legend"},xref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"legend"},y:{valType:"number",editType:"legend"},yref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],editType:"legend"},uirevision:{valType:"any",editType:"none"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"legend"},title:{text:{valType:"string",dflt:"",editType:"legend"},font:Z7({editType:"legend"}),side:{valType:"enumerated",values:["top","left","top left","top center","top right"],editType:"legend"},editType:"legend"},editType:"legend"}});var d1=B(h1=>{"use strict";h1.isGrouped=function(r){return(r.traceorder||"").indexOf("grouped")!==-1};h1.isVertical=function(r){return r.orientation!=="h"};h1.isReversed=function(r){return(r.traceorder||"").indexOf("reversed")!==-1};h1.getId=function(r){return r._id||"legend"}});var $7=B((sFe,AP)=>{"use strict";var a3=Pt(),Bo=nr(),h2e=Ra(),d2e=Dl(),p2e=J7(),m2e=Ov(),j7=d1();function y2e(e,r,t,a,n){var i=r[e]||{},o=h2e.newContainer(t,e);function l(W,j){return Bo.coerce(i,o,p2e,W,j)}var s=Bo.coerceFont(l,"font",t.font);l("bgcolor",t.paper_bgcolor),l("bordercolor");var u=l("visible");if(!u)return;var f,c=function(W,j){var ae=f._input,pe=f;return Bo.coerce(ae,pe,d2e,W,j)},v=t.font||{},d=Bo.coerceFont(l,"grouptitlefont",v,{overrideDflt:{size:Math.round(v.size*1.1)}}),p=0,y=!1,m="normal",b=(t.shapes||[]).filter(function(W){return W.showlegend});function T(W){return a3.traceIs(W,"pie-like")&&W._length!=null&&(Array.isArray(W.legend)||Array.isArray(W.showlegend))}a.filter(T).forEach(function(W){W.visible&&p++;for(var j=0;jW.legend.length)for(var pe=W.legend.length;pe(e==="legend"?1:0));if(k===!1&&(t[e]=void 0),k===!1&&!i.uirevision||(l("uirevision",t.uirevision),k===!1))return;l("borderwidth");var M=l("orientation"),C=l("yref"),E=l("xref"),F=M==="h",P=C==="paper",q=E==="paper",z,I,Y,V="left";F?(z=0,a3.getComponentMethod("rangeslider","isVisible")(r.xaxis)?P?(I=1.1,Y="bottom"):(I=1,Y="top"):P?(I=-.1,Y="top"):(I=0,Y="bottom")):(I=1,Y="auto",q?z=1.02:(z=1,V="right")),Bo.coerce(i,o,{x:{valType:"number",editType:"legend",min:q?-2:0,max:q?3:1,dflt:z}},"x"),Bo.coerce(i,o,{y:{valType:"number",editType:"legend",min:P?-2:0,max:P?3:1,dflt:I}},"y"),l("traceorder",m),j7.isGrouped(t[e])&&l("tracegroupgap"),l("entrywidth"),l("entrywidthmode"),l("indentation"),l("itemsizing"),l("itemwidth"),l("itemclick"),l("itemdoubleclick");let J=l("groupclick");l("groupdoubleclick",J),l("xanchor",V),l("yanchor",Y),l("maxheight"),l("valign"),Bo.noneOrAll(i,o,["x","y"]);var U=l("title.text");if(U){l("title.side",F?"left":"top");var G=Bo.extendFlat({},s,{size:Bo.bigFont(s.size)});Bo.coerceFont(l,"title.font",G);let W=n>1;l("titleclick",W?"toggle":!1),l("titledoubleclick",W?"toggleothers":!1)}}AP.exports=function(r,t,a){var n,i=a.slice(),o=t.shapes;if(o)for(n=0;n{"use strict";var Tf=Pt(),K7=nr(),g2e=K7.pushUnique,b2e=d1(),TP=!0;Q7.handleItemClick=function(r,t,a,n,i){var o=t._fullLayout;if(t._dragged||t._editing)return;var l=r.data()[0][0];if(l.groupTitle&&l.noClick)return;let s=i===2?a.groupdoubleclick:a.groupclick;n==="toggle"&&a.itemdoubleclick==="toggleothers"&&TP&&t.data&&t._context.showTips&&(K7.notifier(K7._(t,"Double-click on legend to isolate one trace"),"long",t),TP=!1);var u=s==="togglegroup",f=o.hiddenlabels?o.hiddenlabels.slice():[],c=t._fullData;let v=(o.shapes||[]).filter(rr=>rr.showlegend||rr.legendgroup);var d=c.concat(v),p=l.trace;p._isShape&&(p=o.shapes[p.index]);var y=p.legendgroup,m,b,T,_,x,w,k={},M=[],C=[],E=[];function F(rr,yr){var Ge=M.indexOf(rr),Sr=k.visible;return Sr||(Sr=k.visible=[]),M.indexOf(rr)===-1&&(M.push(rr),Ge=M.length-1),Sr[Ge]=yr,Ge}var P=(o.shapes||[]).map(function(rr){return rr._input}),q=!1;function z(rr,yr){P[rr].visible=yr,q=!0}function I(rr,yr){if(!(l.groupTitle&&!u)){var Ge=rr._isShape,Sr=rr.index;Sr===void 0&&(Sr=rr._index);var Fr=rr.visible===!1?!1:yr;Ge?z(Sr,Fr):F(Sr,Fr)}}var Y=p.legend;if(!p._isShape&&Tf.traceIs(p,"pie-like")){var V=l.label,J=f.indexOf(V);if(n==="toggle")J===-1?f.push(V):f.splice(J,1);else if(n==="toggleothers"){var U=J!==-1,G=[];for(m=0;mb.showlegend||b.legendgroup),s=i.concat(l);function u(b){return(b.legend||"legend")===o}var f,c;if(a==="toggle")f=!s.some(function(T){return u(T)&&T.visible===!0}),c=!1;else{let b=s.some(function(T){return!u(T)&&T.visible===!0&&T.showlegend!==!1});f=!0,c=!b}let v={visible:[]},d=[],p=(n.shapes||[]).map(function(b){return b._input});for(var y=!1,m=0;mk2e,scrollBarColor:()=>w2e,scrollBarEnterAttrs:()=>T2e,scrollBarMargin:()=>A2e,scrollBarMinHeight:()=>_2e,scrollBarWidth:()=>x2e,titlePad:()=>M2e});var x2e,_2e,w2e,A2e,T2e,M2e,k2e,t8=Za(()=>{"use strict";x2e=6,_2e=20,w2e="#808BA4",A2e=4,T2e={rx:20,ry:3,width:0,height:0},M2e=2,k2e=5});var SP=B((fFe,kP)=>{"use strict";var{isArrayOrTypedArray:a8}=no(),MP=Pt(),n8=d1();kP.exports=function(r,t,a){var n=t._inHover,i=n8.isGrouped(t),o=n8.isReversed(t),l={},s=[],u=!1,f={},c=0,v=0,d,p;function y(W,j,ae){if(t.visible!==!1&&!(a&&W!==t._id))if(j===""||!n8.isGrouped(t)){var pe="~~i"+c;s.push(pe),l[pe]=[ae],c++}else s.indexOf(j)===-1?(s.push(j),u=!0,l[j]=[ae]):l[j].push(ae)}for(d=0;dz&&(P=z)}E[d][0]._groupMinRank=P,E[d][0]._preGroupSort=d}var I=function(W,j){return W[0]._groupMinRank-j[0]._groupMinRank||W[0]._preGroupSort-j[0]._preGroupSort},Y=function(W,j){var ae=a8(W.trace.legendrank)?W.trace.legendrank[W.i]:W.trace.legendrank,pe=a8(j.trace.legendrank)?j.trace.legendrank[j.i]:j.trace.legendrank;return ae-pe||W._preSort-j._preSort};for(E.forEach(function(W,j){W[0]._preGroupSort=j}),E.sort(I),d=0;d{"use strict";var n3=nr();function CP(e){return e.indexOf("e")!==-1?e.replace(/[.]?0+e/,"e"):e.indexOf(".")!==-1?e.replace(/[.]?0+$/,""):e}ic.formatPiePercent=function(r,t){var a=CP((r*100).toPrecision(3));return n3.numSeparate(a,t)+"%"};ic.formatPieValue=function(r,t){var a=CP(r.toPrecision(10));return n3.numSeparate(a,t)};ic.getFirstFilled=function(r,t){if(n3.isArrayOrTypedArray(r))for(var a=0;a{"use strict";var S2e=Ca(),C2e=Kt();DP.exports=function(r,t,a,n){var i=a.marker.pattern;i&&i.shape?S2e.pointStyle(r,a,n,t):C2e.fill(r,t.color)}});var RP=B((hFe,FP)=>{"use strict";var EP=Kt(),qP=i8().castOption,D2e=LP();FP.exports=function(r,t,a,n){var i=a.marker.line,o=qP(i.color,t.pts)||EP.defaultLine,l=qP(i.width,t.pts)||0;r.call(D2e,t,a,n).style("stroke-width",l).call(EP.stroke,o)}});var u8=B((dFe,OP)=>{"use strict";var Wi=ia(),o8=Pt(),zi=nr(),PP=zi.strTranslate,Io=Ca(),nl=Kt(),l8=Nl().extractOpts,i3=yi(),L2e=RP(),E2e=i8().castOption,q2e=(t8(),vr(r8)),NP=12,zP=5,oc=2,F2e=10,vh=5;OP.exports=function(r,t,a){var n=t._fullLayout;a||(a=n.legend);var i=a.itemsizing==="constant",o=a.itemwidth,l=(o+q2e.itemGap*2)/2,s=PP(l,0),u=function(M,C,E,F){var P;if(M+1)P=M;else if(C&&C.width>0)P=C.width;else return 0;return i?F:Math.min(P,E)};r.each(function(M){var C=Wi.select(this),E=zi.ensureSingle(C,"g","layers");E.style("opacity",M[0].trace.opacity);var F=a.indentation,P=a.valign,q=M[0].lineHeight,z=M[0].height;if(P==="middle"&&F===0||!q||!z)E.attr("transform",null);else{var I={top:1,bottom:-1}[P],Y=I*(.5*(q-z+3))||0,V=a.indentation;E.attr("transform",PP(V,Y))}var J=E.selectAll("g.legendfill").data([M]);J.enter().append("g").classed("legendfill",!0);var U=E.selectAll("g.legendlines").data([M]);U.enter().append("g").classed("legendlines",!0);var G=E.selectAll("g.legendsymbols").data([M]);G.enter().append("g").classed("legendsymbols",!0),G.selectAll("g.legendpoints").data([M]).enter().append("g").classed("legendpoints",!0)}).each(k).each(v).each(p).each(d).each(m).each(x).each(_).each(f).each(c).each(b).each(T);function f(M){var C=BP(M),E=C.showFill,F=C.showLine,P=C.showGradientLine,q=C.showGradientFill,z=C.anyFill,I=C.anyLine,Y=M[0],V=Y.trace,J,U,G=l8(V),W=G.colorscale,j=G.reversescale,ae=function(Ae){if(Ae.size())if(E)Io.fillGroupStyle(Ae,t,!0);else{var Ue="legendfill-"+V.uid;Io.gradient(Ae,t,Ue,s8(j),W,"fill")}},pe=function(Ae){if(Ae.size()){var Ue="legendline-"+V.uid;Io.lineGroupStyle(Ae),Io.gradient(Ae,t,Ue,s8(j),W,"stroke")}},se=i3.hasMarkers(V)||!z?"M5,0":I?"M5,-2":"M5,-3",we=Wi.select(this),te=we.select(".legendfill").selectAll("path").data(E||q?[M]:[]);if(te.enter().append("path").classed("js-fill",!0),te.exit().remove(),te.attr("d",se+"h"+o+"v6h-"+o+"z").call(ae),F||P){var Ee=u(void 0,V.line,F2e,zP);U=zi.minExtend(V,{line:{width:Ee}}),J=[zi.minExtend(Y,{trace:U})]}var de=we.select(".legendlines").selectAll("path").data(F||P?[J]:[]);de.enter().append("path").classed("js-line",!0),de.exit().remove(),de.attr("d",se+(P?"l"+o+",0.0001":"h"+o)).call(F?Io.lineGroupStyle:pe)}function c(M){var C=BP(M),E=C.anyFill,F=C.anyLine,P=C.showLine,q=C.showMarker,z=M[0],I=z.trace,Y=!q&&!F&&!E&&i3.hasText(I),V,J;function U(Ee,de,Ae,Ue){var ge=zi.nestedProperty(I,Ee).get(),Ne=zi.isArrayOrTypedArray(ge)&&de?de(ge):ge;if(i&&Ne&&Ue!==void 0&&(Ne=Ue),Ae){if(NeAe[1])return Ae[1]}return Ne}function G(Ee){return z._distinct&&z.index&&Ee[z.index]?Ee[z.index]:Ee[0]}if(q||Y||P){var W={},j={};if(q){W.mc=U("marker.color",G);var ae=I.type==="scattermap";W.mx=ae?"circle":U("marker.symbol",G),W.mo=U("marker.opacity",zi.mean,[.2,1]),W.mlc=U("marker.line.color",G),W.mlw=U("marker.line.width",zi.mean,[0,5],oc),W.mld=U("marker.line.dash",G),j.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var pe=U("marker.size",zi.mean,[2,16],NP);W.ms=pe,j.marker.size=pe}P&&(j.line={width:U("line.width",G,[0,10],zP)}),Y&&(W.tx="Aa",W.tp=U("textposition",G),W.ts=10,W.tc=U("textfont.color",G),W.tf=U("textfont.family",G),W.tw=U("textfont.weight",G),W.ty=U("textfont.style",G),W.tv=U("textfont.variant",G),W.tC=U("textfont.textcase",G),W.tE=U("textfont.lineposition",G),W.tS=U("textfont.shadow",G)),V=[zi.minExtend(z,W)],J=zi.minExtend(I,j),J.selectedpoints=null,J.texttemplate=null}var se=Wi.select(this).select("g.legendpoints"),we=se.selectAll("path.scatterpts").data(q?V:[]);we.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",s),we.exit().remove(),we.call(Io.pointStyle,J,t),q&&(V[0].mrc=3);var te=se.selectAll("g.pointtext").data(Y?V:[]);te.enter().append("g").classed("pointtext",!0).append("text").attr("transform",s),te.exit().remove(),te.selectAll("text").call(Io.textPointStyle,J,t)}function v(M){var C=M[0].trace,E=C.type==="waterfall";if(M[0]._distinct&&E){var F=M[0].trace[M[0].dir].marker;return M[0].mc=F.color,M[0].mlw=F.line.width,M[0].mlc=F.line.color,y(M,this,"waterfall")}var P=[];C.visible&&E&&(P=M[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 q=Wi.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data(P);q.enter().append("path").classed("legendwaterfall",!0).attr("transform",s).style("stroke-miterlimit",1),q.exit().remove(),q.each(function(z){var I=Wi.select(this),Y=C[z[0]].marker,V=u(void 0,Y.line,vh,oc);I.attr("d",z[1]).style("stroke-width",V+"px").call(nl.fill,Y.color),V&&I.call(nl.stroke,Y.line.color)})}function d(M){y(M,this)}function p(M){y(M,this,"funnel")}function y(M,C,E){var F=M[0].trace,P=F.marker||{},q=P.line||{},z=P.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",I=E?F.visible&&F.type===E:o8.traceIs(F,"bar"),Y=Wi.select(C).select("g.legendpoints").selectAll("path.legend"+E).data(I?[M]:[]);Y.enter().append("path").classed("legend"+E,!0).attr("d",z).attr("transform",s),Y.exit().remove(),Y.each(function(V){var J=Wi.select(this),U=V[0],G=u(U.mlw,P.line,vh,oc);J.style("stroke-width",G+"px");var W=U.mcc;if(!a._inHover&&"mc"in U){var j=l8(P),ae=j.mid;ae===void 0&&(ae=(j.max+j.min)/2),W=Io.tryColorscale(P,"")(ae)}var pe=W||U.mc||P.color,se=P.pattern,we=Io.getPatternAttr,te=se&&(we(se.shape,0,"")||we(se.path,0,""));if(te){var Ee=we(se.bgcolor,0,null),de=we(se.fgcolor,0,null),Ae=se.fgopacity,Ue=IP(se.size,8,10),ge=IP(se.solidity,.5,1),Ne="legend-"+F.uid;J.call(Io.pattern,"legend",t,Ne,te,Ue,ge,W,se.fillmode,Ee,de,Ae)}else J.call(nl.fill,pe);G&&nl.stroke(J,U.mlc||q.color)})}function m(M){var C=M[0].trace,E=Wi.select(this).select("g.legendpoints").selectAll("path.legendbox").data(C.visible&&o8.traceIs(C,"box-violin")?[M]:[]);E.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform",s),E.exit().remove(),E.each(function(){var F=Wi.select(this);if((C.boxpoints==="all"||C.points==="all")&&nl.opacity(C.fillcolor)===0&&nl.opacity((C.line||{}).color)===0){var P=zi.minExtend(C,{marker:{size:i?NP:zi.constrain(C.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});E.call(Io.pointStyle,P,t)}else{var q=u(void 0,C.line,vh,oc);F.style("stroke-width",q+"px").call(nl.fill,C.fillcolor),q&&nl.stroke(F,C.line.color)}})}function b(M){var C=M[0].trace,E=Wi.select(this).select("g.legendpoints").selectAll("path.legendcandle").data(C.visible&&C.type==="candlestick"?[M,M]:[]);E.enter().append("path").classed("legendcandle",!0).attr("d",function(F,P){return P?"M-15,0H-8M-8,6V-6H8Z":"M15,0H8M8,-6V6H-8Z"}).attr("transform",s).style("stroke-miterlimit",1),E.exit().remove(),E.each(function(F,P){var q=Wi.select(this),z=C[P?"increasing":"decreasing"],I=u(void 0,z.line,vh,oc);q.style("stroke-width",I+"px").call(nl.fill,z.fillcolor),I&&nl.stroke(q,z.line.color)})}function T(M){var C=M[0].trace,E=Wi.select(this).select("g.legendpoints").selectAll("path.legendohlc").data(C.visible&&C.type==="ohlc"?[M,M]:[]);E.enter().append("path").classed("legendohlc",!0).attr("d",function(F,P){return P?"M-15,0H0M-8,-6V0":"M15,0H0M8,6V0"}).attr("transform",s).style("stroke-miterlimit",1),E.exit().remove(),E.each(function(F,P){var q=Wi.select(this),z=C[P?"increasing":"decreasing"],I=u(void 0,z.line,vh,oc);q.style("fill","none").call(Io.dashLine,z.line.dash,I),I&&nl.stroke(q,z.line.color)})}function _(M){w(M,this,"pie")}function x(M){w(M,this,"funnelarea")}function w(M,C,E){var F=M[0],P=F.trace,q=E?P.visible&&P.type===E:o8.traceIs(P,E),z=Wi.select(C).select("g.legendpoints").selectAll("path.legend"+E).data(q?[M]:[]);if(z.enter().append("path").classed("legend"+E,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",s),z.exit().remove(),z.size()){var I=P.marker||{},Y=u(E2e(I.line.width,F.pts),I.line,vh,oc),V="pieLike",J=zi.minExtend(P,{marker:{line:{width:Y}}},V),U=zi.minExtend(F,{trace:J},V);L2e(z,U,J,t)}}function k(M){var C=M[0].trace,E,F=[];if(C.visible)switch(C.type){case"histogram2d":case"heatmap":F=[["M-15,-2V4H15V-2Z"]],E=!0;break;case"choropleth":case"choroplethmap":F=[["M-6,-6V6H6V-6Z"]],E=!0;break;case"densitymap":F=[["M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"]],E="radial";break;case"cone":F=[["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"]],E=!1;break;case"streamtube":F=[["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"]],E=!1;break;case"surface":F=[["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"]],E=!0;break;case"mesh3d":F=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],E=!1;break;case"volume":F=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],E=!0;break;case"isosurface":F=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6 A12,24 0 0,0 6,-6 L0,6Z"]],E=!1;break}var P=Wi.select(this).select("g.legendpoints").selectAll("path.legend3dandfriends").data(F);P.enter().append("path").classed("legend3dandfriends",!0).attr("transform",s).style("stroke-miterlimit",1),P.exit().remove(),P.each(function(q,z){var I=Wi.select(this),Y=l8(C),V=Y.colorscale,J=Y.reversescale,U=function(ae){if(ae.size()){var pe="legendfill-"+C.uid;Io.gradient(ae,t,pe,s8(J,E==="radial"),V,"fill")}},G;if(V){if(!E){var j=V.length;G=z===0?V[J?j-1:0][1]:z===1?V[J?0:j-1][1]:V[Math.floor((j-1)/2)][1]}}else{var W=C.vertexcolor||C.facecolor||C.color;G=zi.isArrayOrTypedArray(W)?W[z]||W[0]:W}I.attr("d",q[0]),G?I.call(nl.fill,G):I.call(U)})}};function s8(e,r){var t=r?"radial":"horizontal";return t+(e?"":"reversed")}function BP(e){var r=e[0].trace,t=r.contours,a=i3.hasLines(r)||r.visible&&r.type==="quiver",n=i3.hasMarkers(r),i=r.visible&&r.fill&&r.fill!=="none",o=!1,l=!1;if(t){var s=t.coloring;s==="lines"?o=!0:a=s==="none"||s==="heatmap"||t.showlines,t.type==="constraint"?i=t._operation!=="=":(s==="fill"||s==="heatmap")&&(l=!0)}return{showMarker:n,showLine:a,showFill:i,showGradientLine:o,showGradientFill:l,anyLine:a||o,anyFill:i||l}}function IP(e,r,t){return e&&zi.isArrayOrTypedArray(e)?r:e>t?t:e}});var h8=B((pFe,JP)=>{"use strict";var io=ia(),qn=nr(),c8=oi(),lc=Pt(),s3=W2(),f8=Bl(),Fn=Ca(),p1=Kt(),sc=Mi(),HP=e8().handleItemClick,UP=e8().handleTitleClick,On=(t8(),vr(r8)),v8=(Ni(),vr(Pi)),WP=v8.LINE_SPACING,dh=v8.FROM_TL,GP=v8.FROM_BR,YP=SP(),R2e=u8(),ph=d1(),hh=1,P2e=/^legend[0-9]*$/;JP.exports=function(r,t){if(t)VP(r,t);else{var a=r._fullLayout,n=a._legends,i=a._infolayer.selectAll('[class^="legend"]');i.each(function(){var u=io.select(this),f=u.attr("class"),c=f.split(" ")[0];c.match(P2e)&&n.indexOf(c)===-1&&u.remove()});for(var o=0;o1)}var p=a.hiddenlabels||[];if(!l&&(!a.showlegend||!s.length))return o.selectAll("."+n).remove(),a._topdefs.select("#"+i).remove(),c8.autoMargin(e,n);var y=qn.ensureSingle(o,"g",n,function(C){l||C.attr("pointer-events","all")}),m=qn.ensureSingleById(a._topdefs,"clipPath",i,function(C){C.append("rect")}),b=qn.ensureSingle(y,"rect","bg",function(C){C.attr("shape-rendering","crispEdges")});b.call(p1.stroke,t.bordercolor).call(p1.fill,t.bgcolor).style("stroke-width",t.borderwidth+"px");var T=qn.ensureSingle(y,"g","scrollbox"),_=t.title;t._titleWidth=0,t._titleHeight=0;var x;_.text?(x=qn.ensureSingle(T,"text",n+"titletext"),x.attr("text-anchor","start").call(Fn.font,_.font).text(_.text),l3(x,T,e,t,hh),!l&&(t.titleclick||t.titledoubleclick)&&I2e(T,e,t,n)):(T.selectAll("."+n+"titletext").remove(),T.selectAll("."+n+"titletoggle").remove());var w=qn.ensureSingle(y,"rect","scrollbar",function(C){C.attr(On.scrollBarEnterAttrs).call(p1.fill,On.scrollBarColor)}),k=T.selectAll("g.groups").data(s);k.enter().append("g").attr("class","groups"),k.exit().remove();var M=k.selectAll("g.traces").data(qn.identity);M.enter().append("g").attr("class","traces"),M.exit().remove(),M.style("opacity",function(C){let E=C[0],F=E.trace;if(E.groupTitle){let P=F.legendgroup,q=(a.shapes||[]).filter(function(I){return I.showlegend});return e._fullData.concat(q).some(function(I){return I.legendgroup===P&&(I.legend||"legend")===n&&I.visible===!0})?1:.5}return lc.traceIs(F,"pie-like")?p.indexOf(C[0].label)!==-1?.5:1:F.visible==="legendonly"?.5:1}).each(function(){io.select(this).call(z2e,e,t)}).call(R2e,e,t).each(function(C){l||C[0].groupTitle&&t.groupclick==="toggleitem"||io.select(this).call(B2e,e,n)}),qn.syncOrAsync([c8.previousPromises,function(){return U2e(e,k,M,t,T)},function(){var C=a._size,E=t.borderwidth,F=t.xref==="paper",P=t.yref==="paper";if(_.text){let Ve=(a.shapes||[]).filter(function(er){return er.showlegend}),Qe=e._fullData.concat(Ve).some(function(er){let rr=er.legend||"legend";var yr=Array.isArray(rr)?rr.includes(n):rr===n;return yr&&er.visible===!0});x.style("opacity",Qe?1:.5)}if(!l){var q,z;F?q=C.l+C.w*t.x-dh[u3(t)]*t._width:q=a.width*t.x-dh[u3(t)]*t._width,P?z=C.t+C.h*(1-t.y)-dh[f3(t)]*t._effHeight:z=a.height*(1-t.y)-dh[f3(t)]*t._effHeight;var I=G2e(e,n,q,z);if(I)return;if(a.margin.autoexpand){var Y=q,V=z;q=F?qn.constrain(q,0,a.width-t._width):Y,z=P?qn.constrain(z,0,a.height-t._effHeight):V,q!==Y&&qn.log("Constrain "+n+".x to make legend fit inside graph"),z!==V&&qn.log("Constrain "+n+".y to make legend fit inside graph")}Fn.setTranslate(y,q,z)}if(w.on(".drag",null),y.on("wheel",null),l||t._height<=t._maxHeight||e._context.staticPlot){var J=t._effHeight;l&&(J=t._height),b.attr({width:t._width-E,height:J-E,x:E/2,y:E/2}),Fn.setTranslate(T,0,0),m.select("rect").attr({width:t._width-2*E,height:J-2*E,x:E,y:E}),Fn.setClipUrl(T,i,e),Fn.setRect(w,0,0,0,0),delete t._scrollY}else{var U=Math.max(On.scrollBarMinHeight,t._effHeight*t._effHeight/t._height),G=t._effHeight-U-2*On.scrollBarMargin,W=t._height-t._effHeight,j=G/W,ae=Math.min(t._scrollY||0,W);b.attr({width:t._width-2*E+On.scrollBarWidth+On.scrollBarMargin,height:t._effHeight-E,x:E/2,y:E/2}),m.select("rect").attr({width:t._width-2*E+On.scrollBarWidth+On.scrollBarMargin,height:t._effHeight-2*E,x:E,y:E+ae}),Fn.setClipUrl(T,i,e),Ue(ae,U,j),y.on("wheel",function(){ae=qn.constrain(t._scrollY+io.event.deltaY/W*G,0,W),Ue(ae,U,j),ae!==0&&ae!==W&&io.event.preventDefault()});var pe,se,we,te=function(Ve,Qe,er){var rr=(er-Qe)/j+Ve;return qn.constrain(rr,0,W)},Ee=function(Ve,Qe,er){var rr=(Qe-er)/j+Ve;return qn.constrain(rr,0,W)},de=io.behavior.drag().on("dragstart",function(){var Ve=io.event.sourceEvent;Ve.type==="touchstart"?pe=Ve.changedTouches[0].clientY:pe=Ve.clientY,we=ae}).on("drag",function(){var Ve=io.event.sourceEvent;Ve.buttons===2||Ve.ctrlKey||(Ve.type==="touchmove"?se=Ve.changedTouches[0].clientY:se=Ve.clientY,ae=te(we,pe,se),Ue(ae,U,j))});w.call(de);var Ae=io.behavior.drag().on("dragstart",function(){var Ve=io.event.sourceEvent;Ve.type==="touchstart"&&(pe=Ve.changedTouches[0].clientY,we=ae)}).on("drag",function(){var Ve=io.event.sourceEvent;Ve.type==="touchmove"&&(se=Ve.changedTouches[0].clientY,ae=Ee(we,pe,se),Ue(ae,U,j))});T.call(Ae)}function Ue(Ve,Qe,er){t._scrollY=e._fullLayout[n]._scrollY=Ve,Fn.setTranslate(T,0,-Ve),Fn.setRect(w,t._width,On.scrollBarMargin+Ve*er,On.scrollBarWidth,Qe),m.select("rect").attr("y",E+Ve)}if(e._context.edits.legendPosition){var ge,Ne,ir,qe;y.classed("cursor-move",!0),f8.init({element:y.node(),gd:e,prepFn:function(Ve){if(Ve.target!==w.node()){var Qe=Fn.getTranslate(y);ir=Qe.x,qe=Qe.y}},moveFn:function(Ve,Qe){if(ir!==void 0&&qe!==void 0){var er=ir+Ve,rr=qe+Qe;Fn.setTranslate(y,er,rr),ge=f8.align(er,t._width,C.l,C.l+C.w,t.xanchor),Ne=f8.align(rr+t._height,-t._height,C.t+C.h,C.t,t.yanchor)}},doneFn:function(){if(ge!==void 0&&Ne!==void 0){var Ve={};Ve[n+".x"]=ge,Ve[n+".y"]=Ne,lc.call("_guiRelayout",e,Ve)}},clickFn:function(Ve,Qe){var er=o.selectAll("g.traces").filter(function(){var rr=this.getBoundingClientRect();return Qe.clientX>=rr.left&&Qe.clientX<=rr.right&&Qe.clientY>=rr.top&&Qe.clientY<=rr.bottom});er.size()>0&&ZP(e,t,er,Ve,Qe)}})}}],e)}}function o3(e,r,t){var a=e[0],n=a.width,i=r.entrywidthmode,o=a.trace.legendwidth||r.entrywidth;return i==="fraction"?r._maxWidth*o:t+(o||n)}function ZP(e,r,t,a,n){var i=e._fullLayout,o=t.data()[0][0].trace,l=r.itemclick,s=r.itemdoubleclick,u={event:n,node:t.node(),curveNumber:o.index,expandedIndex:o.index,data:e.data,layout:e.layout,frames:e._transitionData._frames,config:e._context,fullData:e._fullData,fullLayout:i};o._group&&(u.group=o._group),lc.traceIs(o,"pie-like")&&(u.label=t.datum()[0].label);var f=s3.triggerHandler(e,"plotly_legendclick",u);if(a===1){if(f===!1)return;r._clickTimeout=setTimeout(function(){e._fullLayout&&l&&HP(t,e,r,l,a)},e._context.doubleClickDelay)}else if(a===2){r._clickTimeout&&clearTimeout(r._clickTimeout),e._legendMouseDownTime=0;var c=s3.triggerHandler(e,"plotly_legenddoubleclick",u);c!==!1&&f!==!1&&s&&HP(t,e,r,s,a)}}function z2e(e,r,t){var a=ph.getId(t),n=e.data()[0][0],i=n.trace,o=lc.traceIs(i,"pie-like"),l=!t._inHover&&r._context.edits.legendText&&!o,s=t._maxNameLength,u,f;n.groupTitle?(u=n.groupTitle.text,f=n.groupTitle.font):(f=t.font,t.entries?u=n.text:(u=o?n.label:i.name,i._meta&&(u=qn.templateString(u,i._meta))));var c=qn.ensureSingle(e,"text",a+"text");c.attr("text-anchor","start").call(Fn.font,f).text(l?XP(u,s):u);var v=t.indentation+t.itemwidth+On.itemGap*2;sc.positionText(c,v,0),l?c.call(sc.makeEditable,{gd:r,text:u}).call(l3,e,r,t).on("edit",function(d){this.text(XP(d,s)).call(l3,e,r,t);var p={};return p.name=d,n.trace._isShape?lc.call("_guiRelayout",r,"shapes["+i.index+"].name",p.name):lc.call("_guiRestyle",r,p,i.index)}):l3(c,e,r,t)}function XP(e,r){var t=Math.max(4,r);if(e&&e.trim().length>=t/2)return e;e=e||"";for(var a=t-e.length;a>0;a--)e+=" ";return e}function B2e(e,r,t){var a=r._context.doubleClickDelay,n,i=1,o=qn.ensureSingle(e,"rect",t+"toggle",function(l){r._context.staticPlot||l.style("cursor","pointer").attr("pointer-events","all"),l.call(p1.fill,"rgba(0,0,0,0)")});r._context.staticPlot||(o.on("mousedown",function(){n=new Date().getTime(),n-r._legendMouseDownTimea&&(i=Math.max(i-1,1)),ZP(r,l,e,i,io.event)}}))}function I2e(e,r,t,a){if(r._fullData.some(function(u){let f=u.legend||"legend";return(Array.isArray(f)?f.includes(a):f===a)&&lc.traceIs(u,"pie-like")}))return;let i=r._context.doubleClickDelay;var o,l=1;let s=qn.ensureSingle(e,"rect",a+"titletoggle",function(u){r._context.staticPlot||u.style("cursor","pointer").attr("pointer-events","all"),u.call(p1.fill,"rgba(0,0,0,0)")});r._context.staticPlot||(s.on("mousedown",function(){o=new Date().getTime(),o-r._legendMouseDownTimei&&(l=Math.max(l-1,1));let u={event:io.event,legendId:a,data:r.data,layout:r.layout,fullData:r._fullData,fullLayout:r._fullLayout};if(l===1&&t.titleclick){if(s3.triggerHandler(r,"plotly_legendtitleclick",u)===!1)return;t._titleClickTimeout=setTimeout(function(){r._fullLayout&&UP(r,t,t.titleclick)},i)}else l===2&&(t._titleClickTimeout&&clearTimeout(t._titleClickTimeout),r._legendMouseDownTime=0,s3.triggerHandler(r,"plotly_legendtitledoubleclick",u)!==!1&&t.titledoubleclick&&UP(r,t,t.titledoubleclick))}))}function l3(e,r,t,a,n){a._inHover&&e.attr("data-notex",!0),sc.convertToTspans(e,t,function(){O2e(r,t,a,n)})}function O2e(e,r,t,a){var n=e.data()[0][0],i=n&&n.trace.showlegend;if(Array.isArray(i)&&(i=i[n.i]!==!1),!t._inHover&&n&&!i){e.remove();return}var o=e.select("g[class*=math-group]"),l=o.node(),s=ph.getId(t);t||(t=r._fullLayout[s]);var u=t.borderwidth,f;a===hh?f=t.title.font:n.groupTitle?f=n.groupTitle.font:f=t.font;var c=f.size*WP,v,d;if(l){var p=Fn.bBox(l);v=p.height,d=p.width,a===hh?Fn.setTranslate(o,u,u+v*.75):Fn.setTranslate(o,0,v*.25)}else{var y="."+s+(a===hh?"title":"")+"text",m=e.select(y),b=sc.lineCount(m),T=m.node();if(v=c*b,d=T?Fn.bBox(T).width:0,a===hh)t.title.side==="left"&&(d+=On.itemGap*2),sc.positionText(m,u+On.titlePad,u+c);else{var _=On.itemGap*2+t.indentation+t.itemwidth;n.groupTitle&&(_=On.itemGap,d-=t.indentation+t.itemwidth),sc.positionText(m,_,-c*((b-1)/2-.3))}}a===hh?(t._titleWidth=d,t._titleHeight=v):(n.lineHeight=c,n.height=Math.max(v,16)+3,n.width=d)}function H2e(e){var r=0,t=0,a=e.title.side;return a&&(a.indexOf("left")!==-1&&(r=e._titleWidth),a.indexOf("top")!==-1&&(t=e._titleHeight)),[r,t]}function U2e(e,r,t,a,n){var i=e._fullLayout,o=ph.getId(a);a||(a=i[o]);var l=i._size,s=ph.isVertical(a),u=ph.isGrouped(a),f=a.entrywidthmode==="fraction",c=a.borderwidth,v=2*c,d=On.itemGap,p=a.indentation+a.itemwidth+d*2,y=2*(c+d),m=f3(a),b=a.y<0||a.y===0&&m==="top",T=a.y>1||a.y===1&&m==="bottom",_=a.tracegroupgap,x={};let{orientation:w,yref:k}=a,{maxheight:M}=a,C=b||T||w!=="v"||k!=="paper";M||(M=C?.5:1);let E=C?i.height:l.h;a._maxHeight=Math.max(M>1?M:M*E,30);var F=0;a._width=0,a._height=0;var P=H2e(a);if(s)t.each(function(Ve){var Qe=Ve[0].height;Fn.setTranslate(this,c+P[0],c+P[1]+a._height+Qe/2+d),a._height+=Qe,a._width=Math.max(a._width,Ve[0].width)}),F=p+a._width,a._width+=d+p+v,a._height+=y,u&&(r.each(function(Ve,Qe){Fn.setTranslate(this,0,Qe*a.tracegroupgap)}),a._height+=(a._lgroupsLength-1)*a.tracegroupgap);else{var q=u3(a),z=a.x<0||a.x===0&&q==="right",I=a.x>1||a.x===1&&q==="left",Y=T||b,V=i.width/2;a._maxWidth=Math.max(z?Y&&q==="left"?l.l+l.w:V:I?Y&&q==="right"?l.r+l.w:V:l.w,2*p);var J=0,U=0;t.each(function(Ve){var Qe=o3(Ve,a,p);J=Math.max(J,Qe),U+=Qe}),F=null;var G=0;if(u){var W=0,j=0,ae=0;r.each(function(){var Ve=0,Qe=0;io.select(this).selectAll("g.traces").each(function(rr){var yr=o3(rr,a,p),Ge=rr[0].height;Fn.setTranslate(this,P[0],P[1]+c+d+Ge/2+Qe),Qe+=Ge,Ve=Math.max(Ve,yr),x[rr[0].trace.legendgroup]=Ve});var er=Ve+d;j>0&&er+c+j>a._maxWidth?(G=Math.max(G,j),j=0,ae+=W+_,W=Qe):W=Math.max(W,Qe),Fn.setTranslate(this,j,ae),j+=er}),a._width=Math.max(G,j)+c,a._height=ae+W+y}else{var pe=t.size(),se=U+v+(pe-1)*d=a._maxWidth&&(G=Math.max(G,de),te=0,Ee+=we,a._height+=we,we=0),Fn.setTranslate(this,P[0]+c+te,P[1]+c+Ee+Qe/2+d),de=te+er+d,te+=rr,we=Math.max(we,Qe)}),se?(a._width=te+v,a._height=we+y):(a._width=Math.max(G,de)+v,a._height+=we+y)}}a._width=Math.ceil(Math.max(a._width+P[0],a._titleWidth+2*(c+On.titlePad))),a._height=Math.ceil(Math.max(a._height+P[1],a._titleHeight+2*(c+On.itemGap))),a._effHeight=Math.min(a._height,a._maxHeight);var Ae=e._context.edits,Ue=Ae.legendText||Ae.legendPosition;t.each(function(Ve){var Qe=io.select(this).select("."+o+"toggle"),er=Ve[0].height,rr=Ve[0].trace.legendgroup,yr=o3(Ve,a,p);u&&rr!==""&&(yr=x[rr]);var Ge=Ue?p:F||yr;!s&&!f&&(Ge+=d/2),Fn.setRect(Qe,0,-er/2,Ge,er)});var ge=n.select("."+o+"titletext");ge.node()&&N2e(ge,a,c);var Ne=n.select("."+o+"titletoggle");if(Ne.size()&&ge.node()){var ir=ge.attr("x")||0,qe=On.titlePad;Fn.setRect(Ne,ir-qe,c,a._titleWidth+2*qe,a._titleHeight+2*qe)}}function G2e(e,r,t,a){var n=e._fullLayout,i=n[r],o=u3(i),l=f3(i),s=i.xref==="paper",u=i.yref==="paper";e._fullLayout._reservedMargin[r]={};var f=i.y<.5?"b":"t",c=i.x<.5?"l":"r",v={r:n.width-t,l:t+i._width,b:n.height-a,t:a+i._effHeight};if(s&&u)return c8.autoMargin(e,r,{x:i.x,y:i.y,l:i._width*dh[o],r:i._width*GP[o],b:i._effHeight*GP[l],t:i._effHeight*dh[l]});s?e._fullLayout._reservedMargin[r][f]=v[f]:u||i.orientation==="v"?e._fullLayout._reservedMargin[r][c]=v[c]:e._fullLayout._reservedMargin[r][f]=v[f]}function u3(e){return qn.isRightAnchor(e)?"right":qn.isCenterAnchor(e)?"center":"left"}function f3(e){return qn.isBottomAnchor(e)?"bottom":qn.isMiddleAnchor(e)?"middle":"top"}});var y8=B(m8=>{"use strict";var uc=ia(),fu=ca(),yn=nr(),Y2e=yn.pushUnique,d8=yn.strTranslate,V2e=yn.strRotate,X2e=W2(),il=Mi(),W2e=_P(),_s=Ca(),Hn=Kt(),c3=Bl(),ws=Qa(),Z2e=(jn(),vr(Jn)).zindexSeparator,yh=Pt(),Oo=ps(),fc=(x2(),vr(b2)),J2e=$7(),j2e=h8(),aN=fc.YANGLE,p8=Math.PI*aN/180,$2e=1/Math.sin(p8),K2e=Math.cos(p8),Q2e=Math.sin(p8),en=fc.HOVERARROWSIZE,aa=fc.HOVERTEXTPAD,jP={box:!0,ohlc:!0,violin:!0,candlestick:!0},e1e={scatter:!0,scattergl:!0,splom:!0};function $P(e,r){return e.distance-r.distance}m8.hover=function(r,t,a,n){r=yn.getGraphDiv(r);var i=t.target;yn.throttle(r._fullLayout._uid+fc.HOVERID,fc.HOVERMINTIME,function(){r1e(r,t,a,n,i)})};m8.loneHover=function(r,t){var a=!0;Array.isArray(r)||(a=!1,r=[r]);var n=t.gd,i=sN(n),o=uN(n),l=r.map(function(m){var b=m._x0||m.x0||m.x||0,T=m._x1||m.x1||m.x||0,_=m._y0||m.y0||m.y||0,x=m._y1||m.y1||m.y||0,w=m.eventData;if(w){var k=Math.min(b,T),M=Math.max(b,T),C=Math.min(_,x),E=Math.max(_,x),F=m.trace;if(yh.traceIs(F,"gl3d")){var P=n._fullLayout[F.scene]._scene.container,q=P.offsetLeft,z=P.offsetTop;k+=q,M+=q,C+=z,E+=z}w.bbox={x0:k+o,x1:M+o,y0:C+i,y1:E+i},w.xPixel=(b+T)/2,w.yPixel=(_+x)/2,t.inOut_bbox&&t.inOut_bbox.push(w.bbox)}else w=!1;return{color:m.color||Hn.defaultLine,x0:m.x0||m.x||0,x1:m.x1||m.x||0,y0:m.y0||m.y||0,y1:m.y1||m.y||0,xLabel:m.xLabel,yLabel:m.yLabel,zLabel:m.zLabel,text:m.text,name:m.name,idealAlign:m.idealAlign,borderColor:m.borderColor,fontFamily:m.fontFamily,fontSize:m.fontSize,fontColor:m.fontColor,fontWeight:m.fontWeight,fontStyle:m.fontStyle,fontVariant:m.fontVariant,nameLength:m.nameLength,textAlign:m.textAlign,trace:m.trace||{index:0,hoverinfo:""},xa:{_offset:0},ya:{_offset:0},index:0,hovertemplate:m.hovertemplate||!1,hovertemplateLabels:m.hovertemplateLabels||!1,eventData:w}}),s=!1,u=iN(l,{gd:n,hovermode:"closest",rotateLabels:s,bgColor:t.bgColor||Hn.background,container:uc.select(t.container),outerContainer:t.outerContainer||t.container}),f=u.hoverLabels,c=5,v=0,d=0;f.sort(function(m,b){return m.y0-b.y0}).each(function(m,b){var T=m.y0-m.by/2;T-cM[0]._length||qe<0||qe>C[0]._length)return c3.unhoverRaw(e,r)}if(r.pointerX=ir+M[0]._offset,r.pointerY=qe+C[0]._offset,"xval"in r?V=Oo.flat(i,r.xval):V=Oo.p2c(M,ir),"yval"in r?J=Oo.flat(i,r.yval):J=Oo.p2c(C,qe),e._hoverPointerX=r.pointerX,e._hoverPointerY=r.pointerY,!fu(V[0])||!fu(J[0]))return yn.warn("Fx.hover failed",r,e),c3.unhoverRaw(e,r)}l.clickanywhere&&(e._hoverXVals=V,e._hoverYVals=J,e._hoverXAxes=M,e._hoverYAxes=C);var er=1/0;function rr(nt,Da){for(G=0;Gde&&(I.splice(0,de),er=I[0].distance),c&&z!==0&&I.length===0){Ee.distance=z,Ee.index=!1;var _a=j._module.hoverPoints(Ee,we,te,"closest",{hoverLayer:l._hoverlayer});if(_a&&(_a=_a.filter(function(_n){return _n.spikeDistance<=z})),_a&&_a.length){var bn,Qi=_a.filter(function(_n){return _n.xa.showspikes&&_n.xa.spikesnap!=="hovered data"});if(Qi.length){var vn=Qi[0];fu(vn.x0)&&fu(vn.y0)&&(bn=Ge(vn),(!Ae.vLinePoint||Ae.vLinePoint.spikeDistance>bn.spikeDistance)&&(Ae.vLinePoint=bn))}var za=_a.filter(function(_n){return _n.ya.showspikes&&_n.ya.spikesnap!=="hovered data"});if(za.length){var xn=za[0];fu(xn.x0)&&fu(xn.y0)&&(bn=Ge(xn),(!Ae.hLinePoint||Ae.hLinePoint.spikeDistance>bn.spikeDistance)&&(Ae.hLinePoint=bn))}}}}}rr();function yr(nt,Da,ha){for(var qa=null,Ha=1/0,wa,_a=0;_ant.trace.index===Fe.trace.index):I=[Fe];var dr=I.length,kr=tN("x",Fe,l),fr=tN("y",Fe,l);rr(kr,fr);var _r=[],Vr={},qr=0,Or=function(nt){var Da=jP[nt.trace.type]?nN(nt):nt.trace.index;if(!Vr[Da])qr++,Vr[Da]=qr,_r.push(nt);else{var ha=Vr[Da]-1,qa=_r[ha];ha>0&&Math.abs(nt.distance)dr-1;Ie--)Or(I[Ie]);I=_r,He()}var Tr=e._hoverdata,ur=[],at=sN(e),ft=uN(e);for(let nt of I){var jr=Oo.makeEventData(nt,nt.trace,nt.cd);if(nt.hovertemplate!==!1){var it=!1;nt.cd[nt.index]&&nt.cd[nt.index].ht&&(it=nt.cd[nt.index].ht),nt.hovertemplate=it||nt.trace.hovertemplate||!1}if(nt.xa&&nt.ya){var le=nt.x0+nt.xa._offset,Te=nt.x1+nt.xa._offset,sr=nt.y0+nt.ya._offset,mr=nt.y1+nt.ya._offset,va=Math.min(le,Te),ka=Math.max(le,Te),Ea=Math.min(sr,mr),ln=Math.max(sr,mr);jr.bbox={x0:va+ft,x1:ka+ft,y0:Ea+at,y1:ln+at},jr.xPixel=(le+Te)/2,jr.yPixel=(sr+mr)/2}nt.eventData=[jr],ur.push(jr)}e._hoverdata=ur;var tn=v==="y"&&(Y.length>1||I.length>1)||v==="closest"&&Ue&&I.length>1,Yn=Hn.combine(l.plot_bgcolor||Hn.background,l.paper_bgcolor),vi=iN(I,{gd:e,hovermode:v,rotateLabels:tn,bgColor:Yn,container:l._hoverlayer,outerContainer:l._paper.node(),commonLabelOpts:l.hoverlabel,hoverdistance:l.hoverdistance}),Tn=vi.hoverLabels;if(Oo.isUnifiedHover(v)||(a1e(Tn,tn,l,vi.commonLabelBoundingBox),lN(Tn,tn,l._invScaleX,l._invScaleY)),n&&n.tagName){var Li=yh.getComponentMethod("annotations","hasClickToShow")(e,ur);W2e(uc.select(n),Li?"pointer":"")}var Hi=o1e(e,r,Tr);if(!n||a||!Hi&&!l.hoveranywhere)return;Tr&&Hi&&e.emit("plotly_unhover",{event:r,points:Tr}),Ei(e._hoverdata);function Ei(nt){e.emit("plotly_hover",{event:r,points:nt,xaxes:M,yaxes:C,xvals:Oo.c2dApply(M,V),yvals:Oo.c2dApply(C,J),xPixel:r.pointerX,yPixel:r.pointerY})}}function nN(e){return[e.trace.index,e.index,e.x0,e.y0,e.name,e.attr,e.xa?e.xa._id:"",e.ya?e.ya._id:""].join(",")}var t1e=/([\s\S]*)<\/extra>/;function iN(e,r){var t=r.gd,a=t._fullLayout,n=r.hovermode,i=r.rotateLabels,o=r.bgColor,l=r.container,s=r.outerContainer,u=r.commonLabelOpts||{};if(e.length===0)return[[]];var f=r.fontFamily||fc.HOVERFONT,c=r.fontSize||fc.HOVERFONTSIZE,v=r.fontWeight||a.font.weight,d=r.fontStyle||a.font.style,p=r.fontVariant||a.font.variant,y=r.fontTextcase||a.font.textcase,m=r.fontLineposition||a.font.lineposition,b=r.fontShadow||a.font.shadow,T=e[0],_=T.xa,x=T.ya,w=n.charAt(0),k=w+"Label",M=T[k];if(M===void 0&&_.type==="multicategory")for(var C=0;Ca.width-ur&&(at=a.width-ur),Me.attr("d","M"+(Or-at)+",0L"+(Or-at+en)+","+Tr+en+"H"+ur+"v"+Tr+(aa*2+qr.height)+"H"+-ur+"V"+Tr+en+"H"+(Or-at-en)+"Z"),Or=at,G.minX=Or-ur,G.maxX=Or+ur,_.side==="top"?(G.minY=Ie-(aa*2+qr.height),G.maxY=Ie-aa):(G.minY=Ie+aa,G.maxY=Ie+(aa*2+qr.height))}else{var ft,jr,it;x.side==="right"?(ft="start",jr=1,it="",Or=_._offset+_._length):(ft="end",jr=-1,it="-",Or=_._offset),Ie=x._offset+(T.y0+T.y1)/2,Fe.attr("text-anchor",ft),Me.attr("d","M0,0L"+it+en+","+en+"V"+(aa+qr.height/2)+"h"+it+(aa*2+qr.width)+"V-"+(aa+qr.height/2)+"H"+it+en+"V-"+en+"Z"),G.minY=Ie-(aa+qr.height/2),G.maxY=Ie+(aa+qr.height/2),x.side==="right"?(G.minX=Or+en,G.maxX=Or+en+(aa*2+qr.width)):(G.minX=Or-en-(aa*2+qr.width),G.maxX=Or-en);var le=qr.height/2,Te=F-qr.top-le,sr="clip"+a._uid+"commonlabel"+x._id,mr;if(OrMe.hoverinfo!=="none");if(Xe.length===0)return[];var W=a.hoverlabel,j=W.font,ae=Xe[0],pe=((n==="x unified"?ae.xa:ae.ya).unifiedhovertitle||{}).text,se=pe?yn.hovertemplateString({data:n==="x unified"?[{xa:ae.xa,x:ae.xVal}]:[{ya:ae.ya,y:ae.yVal}],fallback:ae.trace.hovertemplatefallback,locale:a._d3locale,template:pe}):M,we={showlegend:!0,legend:{title:{text:se,font:j},font:j,bgcolor:W.bgcolor,bordercolor:W.bordercolor,borderwidth:1,tracegroupgap:7,traceorder:a.legend?a.legend.traceorder:void 0,orientation:"v"}},te={font:j};J2e(we,te,t._fullData);var Ee=te.legend;Ee.entries=[];for(var de=0;de=0?Le=He:or+Qe=0?Le=or:Ir+Qe=0?Mr=Fr:Lr+er=0?Mr=Lr:fe+er=0,(Xe.idealAlign==="top"||!Ea)&&ln?(it-=Te/2,Xe.anchor="end"):Ea?(it+=Te/2,Xe.anchor="start"):Xe.anchor="middle",Xe.crossPos=it;else{if(Xe.pos=it,Ea=jr+le/2+ka<=P,ln=jr-le/2-ka>=0,(Xe.idealAlign==="left"||!Ea)&&ln)jr-=le/2,Xe.anchor="end";else if(Ea)jr+=le/2,Xe.anchor="start";else{Xe.anchor="middle";var tn=ka/2,Yn=jr+tn-P,vi=jr-tn;Yn>0&&(jr-=Yn),vi<0&&(jr+=-vi)}Xe.crossPos=jr}Ie.attr("text-anchor",Xe.anchor),ur&&Tr.attr("text-anchor",Xe.anchor),Me.attr("transform",d8(jr,it)+(i?V2e(aN):""))}),{hoverLabels:lt,commonLabelBoundingBox:G}}function KP(e,r,t,a,n,i){var c,v;var o="",l="";e.nameOverride!==void 0&&(e.name=e.nameOverride),e.name&&(e.trace._meta&&(e.name=yn.templateString(e.name,e.trace._meta)),o=rN(e.name,e.nameLength));var s=t.charAt(0),u=s==="x"?"y":"x";e.zLabel!==void 0?(e.xLabel!==void 0&&(l+="x: "+e.xLabel+"
"),e.yLabel!==void 0&&(l+="y: "+e.yLabel+"
"),e.trace.type!=="choropleth"&&e.trace.type!=="choroplethmap"&&(l+=(l?"z: ":"")+e.zLabel)):r&&e[s+"Label"]===n?l=e[u+"Label"]||"":e.xLabel===void 0?e.yLabel!==void 0&&e.trace.type!=="scattercarpet"&&(l=e.yLabel):e.yLabel===void 0?l=e.xLabel:l="("+e.xLabel+", "+e.yLabel+")",(e.text||e.text===0)&&!Array.isArray(e.text)&&(l+=(l?"
":"")+e.text),e.extraText!==void 0&&(l+=(l?"
":"")+e.extraText),i&&l===""&&!e.hovertemplate&&(o===""&&i.remove(),l=o),(v=(c=e.trace)==null?void 0:c.hoverlabel)!=null&&v.split&&(e.hovertemplate="");let{hovertemplate:f=!1}=e;if(f){let d=e.hovertemplateLabels||e;e[s+"Label"]!==n&&(d[s+"other"]=d[s+"Val"],d[s+"otherLabel"]=d[s+"Label"]),l=yn.hovertemplateString({data:[e.eventData[0]||{},e.trace._meta],fallback:e.trace.hovertemplatefallback,labels:d,locale:a._d3locale,template:f}),l=l.replace(t1e,(p,y)=>(o=rN(y,e.nameLength),""))}return[l,o]}function a1e(e,r,t,a){var n=r?"xa":"ya",i=r?"ya":"xa",o=0,l=1,s=e.size(),u=new Array(s),f=0,c=a.minX,v=a.maxX,d=a.minY,p=a.maxY,y=function(V){return V*t._invScaleX},m=function(V){return V*t._invScaleY};e.each(function(V){var J=V[n],U=V[i],G=J._id.charAt(0)==="x",W=J.range;f===0&&W&&W[0]>W[1]!==G&&(l=-1);var j=0,ae=G?t.width:t.height;if(t.hovermode==="x"||t.hovermode==="y"){var pe=oN(V,r),se=V.anchor,we=se==="end"?-1:1,te,Ee;if(se==="middle")te=V.crossPos+(G?m(pe.y-V.by/2):y(V.bx/2+V.tx2width/2)),Ee=te+(G?m(V.by):y(V.bx));else if(G)te=V.crossPos+m(en+pe.y)-m(V.by/2-en),Ee=te+m(V.by);else{var de=y(we*en+pe.x),Ae=de+y(we*V.bx);te=V.crossPos+Math.min(de,Ae),Ee=V.crossPos+Math.max(de,Ae)}G?d!==void 0&&p!==void 0&&Math.min(Ee,p)-Math.max(te,d)>1&&(U.side==="left"?(j=U._mainLinePosition,ae=t.width):ae=U._mainLinePosition):c!==void 0&&v!==void 0&&Math.min(Ee,v)-Math.max(te,c)>1&&(U.side==="top"?(j=U._mainLinePosition,ae=t.height):ae=U._mainLinePosition)}u[f++]=[{datum:V,traceIndex:V.trace.index,dp:0,pos:V.pos,posref:V.posref,size:V.by*(G?$2e:1)/2,pmin:j,pmax:ae}]}),u.sort(function(V,J){return V[0].posref-J[0].posref||l*(J[0].traceIndex-V[0].traceIndex)});var b,T,_,x,w,k,M;function C(V){var J=V[0],U=V[V.length-1];if(T=J.pmin-J.pos-J.dp+J.size,_=U.pos+U.dp+U.size-J.pmax,T>.01){for(w=V.length-1;w>=0;w--)V[w].dp+=T;b=!1}if(!(_<.01)){if(T<-.01){for(w=V.length-1;w>=0;w--)V[w].dp-=_;b=!1}if(b){var G=0;for(x=0;xJ.pmax&&G++;for(x=V.length-1;x>=0&&!(G<=0);x--)k=V[x],k.pos>J.pmax-1&&(k.del=!0,G--);for(x=0;x=0;w--)V[w].dp-=_;for(x=V.length-1;x>=0&&!(G<=0);x--)k=V[x],k.pos+k.dp+k.size>J.pmax&&(k.del=!0,G--)}}}for(;!b&&o<=s;){for(o++,b=!0,x=0;x.01){for(w=F.length-1;w>=0;w--)F[w].dp+=T;for(E.push.apply(E,F),u.splice(x+1,1),M=0,w=E.length-1;w>=0;w--)M+=E[w].dp;for(_=M/E.length,w=E.length-1;w>=0;w--)E[w].dp-=_;b=!1}else x++}u.forEach(C)}for(x=u.length-1;x>=0;x--){var z=u[x];for(w=z.length-1;w>=0;w--){var I=z[w],Y=I.datum;Y.offset=I.dp,Y.del=I.del}}}function oN(e,r){var t=0,a=e.offset;return r&&(a*=-Q2e,t=e.offset*K2e),{x:t,y:a}}function n1e(e){var r={start:1,end:-1,middle:0}[e.anchor],t=r*(en+aa),a=t+r*(e.txwidth+aa),n=e.anchor==="middle";return n&&(t-=e.tx2width/2,a+=e.txwidth/2+aa),{alignShift:r,textShiftX:t,text2ShiftX:a}}function lN(e,r,t,a){var n=function(o){return o*t},i=function(o){return o*a};e.each(function(o){var l=uc.select(this);if(o.del)return l.remove();var s=l.select("text.nums"),u=o.anchor,f=u==="end"?-1:1,c=n1e(o),v=oN(o,r),d=v.x,p=v.y,y=u==="middle",m="hoverlabel"in o.trace?o.trace.hoverlabel.showarrow:!0,b;y?b="M-"+n(o.bx/2+o.tx2width/2)+","+i(p-o.by/2)+"h"+n(o.bx)+"v"+i(o.by)+"h-"+n(o.bx)+"Z":m?b="M0,0L"+n(f*en+d)+","+i(en+p)+"v"+i(o.by/2-en)+"h"+n(f*o.bx)+"v-"+i(o.by)+"H"+n(f*en+d)+"V"+i(p-en)+"Z":b="M"+n(f*en+d)+","+i(p-o.by/2)+"h"+n(f*o.bx)+"v"+i(o.by)+"h"+n(-f*o.bx)+"Z",l.select("path").attr("d",b);var T=d+c.textShiftX,_=p+o.ty0-o.by/2+aa,x=o.textAlign||"auto";x!=="auto"&&(x==="left"&&u!=="start"?(s.attr("text-anchor","start"),T=y?-o.bx/2-o.tx2width/2+aa:-o.bx-aa):x==="right"&&u!=="end"&&(s.attr("text-anchor","end"),T=y?o.bx/2-o.tx2width/2-aa:o.bx+aa)),s.call(il.positionText,n(T),i(_)),o.tx2width&&(l.select("text.name").call(il.positionText,n(c.text2ShiftX+c.alignShift*aa+d),i(p+o.ty0-o.by/2+aa)),l.select("rect").call(_s.setRect,n(c.text2ShiftX+(c.alignShift-1)*o.tx2width/2+d),i(p-o.by/2-1),n(o.tx2width),i(o.by+2)))})}function i1e(e,r){var t=e.index,a=e.trace||{},n=e.cd[0],i=e.cd[t]||{};function o(v){return v||fu(v)&&v===0}var l=Array.isArray(t)?function(v,d){var p=yn.castOption(n,t,v);return o(p)?p:yn.extractOption({},a,"",d)}:function(v,d){return yn.extractOption(i,a,v,d)};function s(v,d,p){var y=l(d,p);o(y)&&(e[v]=y)}if(s("hoverinfo","hi","hoverinfo"),s("bgcolor","hbg","hoverlabel.bgcolor"),s("borderColor","hbc","hoverlabel.bordercolor"),s("fontFamily","htf","hoverlabel.font.family"),s("fontSize","hts","hoverlabel.font.size"),s("fontColor","htc","hoverlabel.font.color"),s("fontWeight","htw","hoverlabel.font.weight"),s("fontStyle","hty","hoverlabel.font.style"),s("fontVariant","htv","hoverlabel.font.variant"),s("nameLength","hnl","hoverlabel.namelength"),s("textAlign","hta","hoverlabel.align"),e.posref=r==="y"||r==="closest"&&a.orientation==="h"?e.xa._offset+(e.x0+e.x1)/2:e.ya._offset+(e.y0+e.y1)/2,e.x0=yn.constrain(e.x0,0,e.xa._length),e.x1=yn.constrain(e.x1,0,e.xa._length),e.y0=yn.constrain(e.y0,0,e.ya._length),e.y1=yn.constrain(e.y1,0,e.ya._length),e.xLabelVal!==void 0&&(e.xLabel="xLabel"in e?e.xLabel:ws.hoverLabelText(e.xa,e.xLabelVal,a.xhoverformat),e.xVal=e.xa.c2d(e.xLabelVal)),e.yLabelVal!==void 0&&(e.yLabel="yLabel"in e?e.yLabel:ws.hoverLabelText(e.ya,e.yLabelVal,a.yhoverformat),e.yVal=e.ya.c2d(e.yLabelVal)),e.zLabelVal!==void 0&&e.zLabel===void 0&&(e.zLabel=String(e.zLabelVal)),!isNaN(e.xerr)&&!(e.xa.type==="log"&&e.xerr<=0)){var u=ws.tickText(e.xa,e.xa.c2l(e.xerr),"hover").text;e.xerrneg!==void 0?e.xLabel+=" +"+u+" / -"+ws.tickText(e.xa,e.xa.c2l(e.xerrneg),"hover").text:e.xLabel+=" \xB1 "+u,r==="x"&&(e.distance+=1)}if(!isNaN(e.yerr)&&!(e.ya.type==="log"&&e.yerr<=0)){var f=ws.tickText(e.ya,e.ya.c2l(e.yerr),"hover").text;e.yerrneg!==void 0?e.yLabel+=" +"+f+" / -"+ws.tickText(e.ya,e.ya.c2l(e.yerrneg),"hover").text:e.yLabel+=" \xB1 "+f,r==="y"&&(e.distance+=1)}var c=e.hoverinfo||e.trace.hoverinfo;return c&&c!=="all"&&(c=Array.isArray(c)?c:c.split("+"),c.indexOf("x")===-1&&(e.xLabel=void 0),c.indexOf("y")===-1&&(e.yLabel=void 0),c.indexOf("z")===-1&&(e.zLabel=void 0),c.indexOf("text")===-1&&(e.text=void 0),c.indexOf("name")===-1&&(e.name=void 0)),e}function QP(e,r,t){var a=t.container,n=t.fullLayout,i=n._size,o=t.event,l=!!r.hLinePoint,s=!!r.vLinePoint,u,f;if(a.selectAll(".spikeline").remove(),!!(s||l)){var c=Hn.combine(n.plot_bgcolor,n.paper_bgcolor);if(l){var v=r.hLinePoint,d,p;u=v&&v.xa,f=v&&v.ya;var y=f.spikesnap;y==="cursor"?(d=o.pointerX,p=o.pointerY):(d=u._offset+v.x,p=f._offset+v.y);var m=Hn.wcagContrast(v.color,c)<1.5?Hn.contrast(c):v.color,b=f.spikemode,T=f.spikethickness,_=f.spikecolor||m,x=ws.getPxPosition(e,f),w,k;if(b.indexOf("toaxis")!==-1||b.indexOf("across")!==-1){if(b.indexOf("toaxis")!==-1&&(w=x,k=d),b.indexOf("across")!==-1){var M=f._counterDomainMin,C=f._counterDomainMax;f.anchor==="free"&&(M=Math.min(M,f.position),C=Math.max(C,f.position)),w=i.l+M*i.w,k=i.l+C*i.w}a.insert("line",":first-child").attr({x1:w,x2:k,y1:p,y2:p,"stroke-width":T,stroke:_,"stroke-dasharray":_s.dashStyle(f.spikedash,T)}).classed("spikeline",!0).classed("crisp",!0),a.insert("line",":first-child").attr({x1:w,x2:k,y1:p,y2:p,"stroke-width":T+2,stroke:c}).classed("spikeline",!0).classed("crisp",!0)}b.indexOf("marker")!==-1&&a.insert("circle",":first-child").attr({cx:x+(f.side!=="right"?T:-T),cy:p,r:T,fill:_}).classed("spikeline",!0)}if(s){var E=r.vLinePoint,F,P;u=E&&E.xa,f=E&&E.ya;var q=u.spikesnap;q==="cursor"?(F=o.pointerX,P=o.pointerY):(F=u._offset+E.x,P=f._offset+E.y);var z=Hn.wcagContrast(E.color,c)<1.5?Hn.contrast(c):E.color,I=u.spikemode,Y=u.spikethickness,V=u.spikecolor||z,J=ws.getPxPosition(e,u),U,G;if(I.indexOf("toaxis")!==-1||I.indexOf("across")!==-1){if(I.indexOf("toaxis")!==-1&&(U=J,G=P),I.indexOf("across")!==-1){var W=u._counterDomainMin,j=u._counterDomainMax;u.anchor==="free"&&(W=Math.min(W,u.position),j=Math.max(j,u.position)),U=i.t+(1-j)*i.h,G=i.t+(1-W)*i.h}a.insert("line",":first-child").attr({x1:F,x2:F,y1:U,y2:G,"stroke-width":Y,stroke:V,"stroke-dasharray":_s.dashStyle(u.spikedash,Y)}).classed("spikeline",!0).classed("crisp",!0),a.insert("line",":first-child").attr({x1:F,x2:F,y1:U,y2:G,"stroke-width":Y+2,stroke:c}).classed("spikeline",!0).classed("crisp",!0)}I.indexOf("marker")!==-1&&a.insert("circle",":first-child").attr({cx:F,cy:J-(u.side!=="top"?Y:-Y),r:Y,fill:V}).classed("spikeline",!0)}}}function o1e(e,r,t){if(!t||t.length!==e._hoverdata.length)return!0;for(var a=t.length-1;a>=0;a--){var n=t[a],i=e._hoverdata[a];if(n.curveNumber!==i.curveNumber||String(n.pointNumber)!==String(i.pointNumber)||String(n.pointNumbers)!==String(i.pointNumbers)||n.binNumber!==i.binNumber)return!0}return!1}function eN(e,r){return!r||r.vLinePoint!==e._spikepoints.vLinePoint||r.hLinePoint!==e._spikepoints.hLinePoint}function rN(e,r){return il.plainText(e||"",{len:r,allowedTags:["br","sub","sup","b","i","em","s","u"]})}function l1e(e,r){for(var t=r.charAt(0),a=[],n=[],i=[],o=0;oe.offsetTop+e.clientTop,uN=e=>e.offsetLeft+e.clientLeft;function mh(e,r){var t=e._fullLayout,a=r.getBoundingClientRect(),n=a.left,i=a.top,o=n+a.width,l=i+a.height,s=yn.apply3DTransform(t._invTransform)(n,i),u=yn.apply3DTransform(t._invTransform)(o,l),f=s[0],c=s[1],v=u[0],d=u[1];return{x:f,y:c,width:v-f,height:d-c,top:Math.min(c,d),left:Math.min(f,v),right:Math.max(f,v),bottom:Math.max(c,d)}}});var v3=B((yFe,fN)=>{"use strict";var s1e=nr(),u1e=Kt(),f1e=ps().isUnifiedHover;fN.exports=function(r,t,a,n){n=n||{};var i=t.legend;function o(l){n.font[l]||(n.font[l]=i?t.legend.font[l]:t.font[l])}t&&f1e(t.hovermode)&&(n.font||(n.font={}),o("size"),o("family"),o("color"),o("weight"),o("style"),o("variant"),i?(n.bgcolor||(n.bgcolor=u1e.combine(t.legend.bgcolor,t.paper_bgcolor)),n.bordercolor||(n.bordercolor=t.legend.bordercolor)):n.bgcolor||(n.bgcolor=t.paper_bgcolor)),a("hoverlabel.bgcolor",n.bgcolor),a("hoverlabel.bordercolor",n.bordercolor),a("hoverlabel.namelength",n.namelength),a("hoverlabel.showarrow",n.showarrow),s1e.coerceFont(a,"hoverlabel.font",n.font),a("hoverlabel.align",n.align)}});var vN=B((gFe,cN)=>{"use strict";var c1e=nr(),v1e=v3(),h1e=Tv();cN.exports=function(r,t){function a(n,i){return c1e.coerce(r,t,h1e,n,i)}v1e(r,t,a)}});var pN=B((bFe,dN)=>{"use strict";var hN=nr(),d1e=dy(),p1e=v3();dN.exports=function(r,t,a,n){function i(l,s){return hN.coerce(r,t,d1e,l,s)}var o=hN.extendFlat({},n.hoverlabel);t.hovertemplate&&(o.namelength=-1),p1e(r,t,i,o)}});var g8=B((xFe,mN)=>{"use strict";var m1e=nr(),y1e=Tv();mN.exports=function(r,t){function a(n,i){return t[n]!==void 0?t[n]:m1e.coerce(r,t,y1e,n,i)}return a("clickmode"),a("hoversubplots"),a("hoveranywhere"),a("clickanywhere"),a("hovermode")}});var bN=B((_Fe,gN)=>{"use strict";var yN=nr(),g1e=Tv(),b1e=g8(),x1e=v3();gN.exports=function(r,t){function a(u,f){return yN.coerce(r,t,g1e,u,f)}var n=b1e(r,t);n&&(a("hoverdistance"),a("spikedistance"),n.indexOf("unified")!==-1&&a("hoversort"));var i=a("dragmode");i==="select"&&a("selectdirection");var o=t._has("map"),l=t._has("geo"),s=t._basePlotModules.length;t.dragmode==="zoom"&&((o||l)&&s===1||o&&l&&s===2)&&(t.dragmode="pan"),x1e(r,t,a),yN.coerceFont(a,"hoverlabel.grouptitlefont",t.hoverlabel.font)}});var wN=B((wFe,_N)=>{"use strict";var b8=nr(),xN=Pt();_N.exports=function(r){var t=r.calcdata,a=r._fullLayout;function n(u){return function(f){return b8.coerceHoverinfo({hoverinfo:f},{_module:u._module},a)}}for(var i=0;i{"use strict";var w1e=Pt(),AN=ps(),A1e=y8().hover;TN.exports=function(r,t,a){var n=w1e.getComponentMethod("annotations","onClick")(r,r._hoverdata),i=r._fullLayout;a!==void 0&&A1e(r,t,a,!0);function o(){var s,u,f,c,v,d;var l={points:r._hoverdata,event:t};(s=l.xaxes)!=null||(l.xaxes=r._hoverXAxes),(u=l.yaxes)!=null||(l.yaxes=r._hoverYAxes),(f=l.xvals)!=null||(l.xvals=r._hoverXVals&&AN.c2dApply(r._hoverXAxes,r._hoverXVals)),(c=l.yvals)!=null||(l.yvals=r._hoverYVals&&AN.c2dApply(r._hoverYAxes,r._hoverYVals)),(v=l.xPixel)!=null||(l.xPixel=r._hoverPointerX),(d=l.yPixel)!=null||(l.yPixel=r._hoverPointerY),r.emit("plotly_click",l)}(r._hoverdata||i.clickanywhere)&&t&&t.target&&(r._hoverdata||(r._hoverdata=[]),n&&n.then?n.then(o):o(),t.stopImmediatePropagation&&t.stopImmediatePropagation())}});var cu=B((TFe,CN)=>{"use strict";var T1e=ia(),h3=nr(),M1e=Bl(),m1=ps(),kN=Tv(),SN=y8();CN.exports={moduleType:"component",name:"fx",constants:(x2(),vr(b2)),schema:{layout:kN},attributes:dy(),layoutAttributes:kN,supplyLayoutGlobalDefaults:vN(),supplyDefaults:pN(),supplyLayoutDefaults:bN(),calc:wN(),getDistanceFunction:m1.getDistanceFunction,getClosest:m1.getClosest,inbox:m1.inbox,quadrature:m1.quadrature,appendArrayPointValue:m1.appendArrayPointValue,castHoverOption:S1e,castHoverinfo:C1e,hover:SN.hover,unhover:M1e.unhover,loneHover:SN.loneHover,loneUnhover:k1e,click:MN()};function k1e(e){var r=h3.isD3Selection(e)?e:T1e.select(e);r.selectAll("g.hovertext").remove(),r.selectAll(".spikeline").remove()}function S1e(e,r,t){return h3.castOption(e,r,"hoverlabel."+t)}function C1e(e,r,t){function a(n){return h3.coerceHoverinfo({hoverinfo:n},{_module:e._module},r)}return h3.castOption(e,t,"hoverinfo",a)}});var Mf=B(vu=>{"use strict";vu.selectMode=function(e){return e==="lasso"||e==="select"};vu.drawMode=function(e){return e==="drawclosedpath"||e==="drawopenpath"||e==="drawline"||e==="drawrect"||e==="drawcircle"};vu.openMode=function(e){return e==="drawline"||e==="drawopenpath"};vu.rectMode=function(e){return e==="select"||e==="drawline"||e==="drawrect"||e==="drawcircle"};vu.freeMode=function(e){return e==="lasso"||e==="drawclosedpath"||e==="drawopenpath"};vu.selectingOrDrawing=function(e){return vu.freeMode(e)||vu.rectMode(e)}});var d3=B((kFe,DN)=>{"use strict";DN.exports=function(r){var t=r._fullLayout;t._glcanvas&&t._glcanvas.size()&&t._glcanvas.each(function(a){a.regl&&a.regl.clear({color:!0,depth:!0})})}});var p3=B((SFe,LN)=>{"use strict";LN.exports={undo:{width:857.1,height:1e3,path:"m857 350q0-87-34-166t-91-137-137-92-166-34q-96 0-183 41t-147 114q-4 6-4 13t5 11l76 77q6 5 14 5 9-1 13-7 41-53 100-82t126-29q58 0 110 23t92 61 61 91 22 111-22 111-61 91-92 61-110 23q-55 0-105-20t-90-57l77-77q17-16 8-38-10-23-33-23h-250q-15 0-25 11t-11 25v250q0 24 22 33 22 10 39-8l72-72q60 57 137 88t159 31q87 0 166-34t137-92 91-137 34-166z",transform:"matrix(1 0 0 -1 0 850)"},home:{width:928.6,height:1e3,path:"m786 296v-267q0-15-11-26t-25-10h-214v214h-143v-214h-214q-15 0-25 10t-11 26v267q0 1 0 2t0 2l321 264 321-264q1-1 1-4z m124 39l-34-41q-5-5-12-6h-2q-7 0-12 3l-386 322-386-322q-7-4-13-4-7 2-12 7l-35 41q-4 5-3 13t6 12l401 334q18 15 42 15t43-15l136-114v109q0 8 5 13t13 5h107q8 0 13-5t5-13v-227l122-102q5-5 6-12t-4-13z",transform:"matrix(1 0 0 -1 0 850)"},"camera-retro":{width:1e3,height:1e3,path:"m518 386q0 8-5 13t-13 5q-37 0-63-27t-26-63q0-8 5-13t13-5 12 5 5 13q0 23 16 38t38 16q8 0 13 5t5 13z m125-73q0-59-42-101t-101-42-101 42-42 101 42 101 101 42 101-42 42-101z m-572-320h858v71h-858v-71z m643 320q0 89-62 152t-152 62-151-62-63-152 63-151 151-63 152 63 62 151z m-571 358h214v72h-214v-72z m-72-107h858v143h-462l-36-71h-360v-72z m929 143v-714q0-30-21-51t-50-21h-858q-29 0-50 21t-21 51v714q0 30 21 51t50 21h858q29 0 50-21t21-51z",transform:"matrix(1 0 0 -1 0 850)"},curlybraces:{width:18,height:16,path:"M 9,4 C 7.354992,4 6,5.354992 6,7 V 9 C 6,9.2999997 5.8778068,9.8883542 5.5878906,10.291016 5.2979744,10.693677 4.9222213,11 4,11 a 1.0001,1.0001 0 0 0 0,2 c 0.2999997,0 0.8883542,0.122193 1.2910156,0.412109 C 5.693677,13.702026 6,14.077779 6,15 v 2 c 0,1.645008 1.354992,3 3,3 h 0.5 a 1,1 0 0 0 1,-1 1,1 0 0 0 -1,-1 H 9 C 8.4358712,18 8,17.564129 8,17 V 15 C 8,13.625876 7.3766799,12.602305 6.6113281,11.96875 6.8086352,11.794047 7.0679793,11.657537 7.2109375,11.458984 7.8210204,10.611647 8,9.6999993 8,9 V 7 C 8,6.4358712 8.4358712,6 9,6 h 0.5 a 1,1 0 0 0 1,-1 1,1 0 0 0 -1,-1 z m 5.5,0 a 1,1 0 0 0 -1,1 1,1 0 0 0 1,1 H 15 c 0.564129,0 1,0.4358712 1,1 v 2 c 0,0.6999993 0.17898,1.611647 0.789062,2.458984 0.142959,0.198553 0.402303,0.335063 0.59961,0.509766 C 16.62332,12.602305 16,13.625876 16,15 v 2 c 0,0.564129 -0.435871,1 -1,1 h -0.5 a 1,1 0 0 0 -1,1 1,1 0 0 0 1,1 H 15 c 1.645008,0 3,-1.354992 3,-3 v -2 c 0,-0.922221 0.306323,-1.297974 0.708984,-1.587891 C 19.111646,13.122193 19.7,13 20,13 a 1.0001,1.0001 0 0 0 0,-2 C 19.077779,11 18.702026,10.693677 18.412109,10.291016 18.122193,9.8883542 18,9.2999997 18,9 V 7 C 18,5.354992 16.645008,4 15,4 Z",transform:"translate(-3 -4)"},zoombox:{width:1e3,height:1e3,path:"m1000-25l-250 251c40 63 63 138 63 218 0 224-182 406-407 406-224 0-406-182-406-406s183-406 407-406c80 0 155 22 218 62l250-250 125 125z m-812 250l0 438 437 0 0-438-437 0z m62 375l313 0 0-312-313 0 0 312z",transform:"matrix(1 0 0 -1 0 850)"},pan:{width:1e3,height:1e3,path:"m1000 350l-187 188 0-125-250 0 0 250 125 0-188 187-187-187 125 0 0-250-250 0 0 125-188-188 186-187 0 125 252 0 0-250-125 0 187-188 188 188-125 0 0 250 250 0 0-126 187 188z",transform:"matrix(1 0 0 -1 0 850)"},zoom_plus:{width:875,height:1e3,path:"m1 787l0-875 875 0 0 875-875 0z m687-500l-187 0 0-187-125 0 0 187-188 0 0 125 188 0 0 187 125 0 0-187 187 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},zoom_minus:{width:875,height:1e3,path:"m0 788l0-876 875 0 0 876-875 0z m688-500l-500 0 0 125 500 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},autoscale:{width:1e3,height:1e3,path:"m250 850l-187 0-63 0 0-62 0-188 63 0 0 188 187 0 0 62z m688 0l-188 0 0-62 188 0 0-188 62 0 0 188 0 62-62 0z m-875-938l0 188-63 0 0-188 0-62 63 0 187 0 0 62-187 0z m875 188l0-188-188 0 0-62 188 0 62 0 0 62 0 188-62 0z m-125 188l-1 0-93-94-156 156 156 156 92-93 2 0 0 250-250 0 0-2 93-92-156-156-156 156 94 92 0 2-250 0 0-250 0 0 93 93 157-156-157-156-93 94 0 0 0-250 250 0 0 0-94 93 156 157 156-157-93-93 0 0 250 0 0 250z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_basic:{width:1500,height:1e3,path:"m375 725l0 0-375-375 375-374 0-1 1125 0 0 750-1125 0z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_compare:{width:1125,height:1e3,path:"m187 786l0 2-187-188 188-187 0 0 937 0 0 373-938 0z m0-499l0 1-187-188 188-188 0 0 937 0 0 376-938-1z",transform:"matrix(1 0 0 -1 0 850)"},plotlylogo:{width:1542,height:1e3,path:"m0-10h182v-140h-182v140z m228 146h183v-286h-183v286z m225 714h182v-1000h-182v1000z m225-285h182v-715h-182v715z m225 142h183v-857h-183v857z m231-428h182v-429h-182v429z m225-291h183v-138h-183v138z",transform:"matrix(1 0 0 -1 0 850)"},"z-axis":{width:1e3,height:1e3,path:"m833 5l-17 108v41l-130-65 130-66c0 0 0 38 0 39 0-1 36-14 39-25 4-15-6-22-16-30-15-12-39-16-56-20-90-22-187-23-279-23-261 0-341 34-353 59 3 60 228 110 228 110-140-8-351-35-351-116 0-120 293-142 474-142 155 0 477 22 477 142 0 50-74 79-163 96z m-374 94c-58-5-99-21-99-40 0-24 65-43 144-43 79 0 143 19 143 43 0 19-42 34-98 40v216h87l-132 135-133-135h88v-216z m167 515h-136v1c16 16 31 34 46 52l84 109v54h-230v-71h124v-1c-16-17-28-32-44-51l-89-114v-51h245v72z",transform:"matrix(1 0 0 -1 0 850)"},"3d_rotate":{width:1e3,height:1e3,path:"m922 660c-5 4-9 7-14 11-359 263-580-31-580-31l-102 28 58-400c0 1 1 1 2 2 118 108 351 249 351 249s-62 27-100 42c88 83 222 183 347 122 16-8 30-17 44-27-2 1-4 2-6 4z m36-329c0 0 64 229-88 296-62 27-124 14-175-11 157-78 225-208 249-266 8-19 11-31 11-31 2 5 6 15 11 32-5-13-8-20-8-20z m-775-239c70-31 117-50 198-32-121 80-199 346-199 346l-96-15-58-12c0 0 55-226 155-287z m603 133l-317-139c0 0 4-4 19-14 7-5 24-15 24-15s-177-147-389 4c235-287 536-112 536-112l31-22 100 299-4-1z m-298-153c6-4 14-9 24-15 0 0-17 10-24 15z",transform:"matrix(1 0 0 -1 0 850)"},camera:{width:1e3,height:1e3,path:"m500 450c-83 0-150-67-150-150 0-83 67-150 150-150 83 0 150 67 150 150 0 83-67 150-150 150z m400 150h-120c-16 0-34 13-39 29l-31 93c-6 15-23 28-40 28h-340c-16 0-34-13-39-28l-31-94c-6-15-23-28-40-28h-120c-55 0-100-45-100-100v-450c0-55 45-100 100-100h800c55 0 100 45 100 100v450c0 55-45 100-100 100z m-400-550c-138 0-250 112-250 250 0 138 112 250 250 250 138 0 250-112 250-250 0-138-112-250-250-250z m365 380c-19 0-35 16-35 35 0 19 16 35 35 35 19 0 35-16 35-35 0-19-16-35-35-35z",transform:"matrix(1 0 0 -1 0 850)"},movie:{width:1e3,height:1e3,path:"m938 413l-188-125c0 37-17 71-44 94 64 38 107 107 107 187 0 121-98 219-219 219-121 0-219-98-219-219 0-61 25-117 66-156h-115c30 33 49 76 49 125 0 103-84 187-187 187s-188-84-188-187c0-57 26-107 65-141-38-22-65-62-65-109v-250c0-70 56-126 125-126h500c69 0 125 56 125 126l188-126c34 0 62 28 62 63v375c0 35-28 63-62 63z m-750 0c-69 0-125 56-125 125s56 125 125 125 125-56 125-125-56-125-125-125z m406-1c-87 0-157 70-157 157 0 86 70 156 157 156s156-70 156-156-70-157-156-157z",transform:"matrix(1 0 0 -1 0 850)"},question:{width:857.1,height:1e3,path:"m500 82v107q0 8-5 13t-13 5h-107q-8 0-13-5t-5-13v-107q0-8 5-13t13-5h107q8 0 13 5t5 13z m143 375q0 49-31 91t-77 65-95 23q-136 0-207-119-9-14 4-24l74-55q4-4 10-4 9 0 14 7 30 38 48 51 19 14 48 14 27 0 48-15t21-33q0-21-11-34t-38-25q-35-16-65-48t-29-70v-20q0-8 5-13t13-5h107q8 0 13 5t5 13q0 10 12 27t30 28q18 10 28 16t25 19 25 27 16 34 7 45z m214-107q0-117-57-215t-156-156-215-58-216 58-155 156-58 215 58 215 155 156 216 58 215-58 156-156 57-215z",transform:"matrix(1 0 0 -1 0 850)"},disk:{width:857.1,height:1e3,path:"m214-7h429v214h-429v-214z m500 0h72v500q0 8-6 21t-11 20l-157 156q-5 6-19 12t-22 5v-232q0-22-15-38t-38-16h-322q-22 0-37 16t-16 38v232h-72v-714h72v232q0 22 16 38t37 16h465q22 0 38-16t15-38v-232z m-214 518v178q0 8-5 13t-13 5h-107q-7 0-13-5t-5-13v-178q0-8 5-13t13-5h107q7 0 13 5t5 13z m357-18v-518q0-22-15-38t-38-16h-750q-23 0-38 16t-16 38v750q0 22 16 38t38 16h517q23 0 50-12t42-26l156-157q16-15 27-42t11-49z",transform:"matrix(1 0 0 -1 0 850)"},cloudupload:{width:640,height:640,path:"M451.5 160C434.9 160 418.8 164.5 404.7 172.7C388.9 156.7 370.5 143.3 350.2 133.2C378.4 109.2 414.3 96 451.5 96C537.9 96 608 166 608 252.5C608 294 591.5 333.8 562.2 363.1L491.1 434.2C461.8 463.5 422 480 380.5 480C294.1 480 224 410 224 323.5C224 322 224 320.5 224.1 319C224.6 301.3 239.3 287.4 257 287.9C274.7 288.4 288.6 303.1 288.1 320.8C288.1 321.7 288.1 322.6 288.1 323.4C288.1 374.5 329.5 415.9 380.6 415.9C405.1 415.9 428.6 406.2 446 388.8L517.1 317.7C534.4 300.4 544.2 276.8 544.2 252.3C544.2 201.2 502.8 159.8 451.7 159.8zM307.2 237.3C305.3 236.5 303.4 235.4 301.7 234.2C289.1 227.7 274.7 224 259.6 224C235.1 224 211.6 233.7 194.2 251.1L123.1 322.2C105.8 339.5 96 363.1 96 387.6C96 438.7 137.4 480.1 188.5 480.1C205 480.1 221.1 475.7 235.2 467.5C251 483.5 269.4 496.9 289.8 507C261.6 530.9 225.8 544.2 188.5 544.2C102.1 544.2 32 474.2 32 387.7C32 346.2 48.5 306.4 77.8 277.1L148.9 206C178.2 176.7 218 160.2 259.5 160.2C346.1 160.2 416 230.8 416 317.1C416 318.4 416 319.7 416 321C415.6 338.7 400.9 352.6 383.2 352.2C365.5 351.8 351.6 337.1 352 319.4C352 318.6 352 317.9 352 317.1C352 283.4 334 253.8 307.2 237.5z",transform:"matrix(1 0 0 1 -15 -15)"},drawopenpath:{width:70,height:70,path:"M33.21,85.65a7.31,7.31,0,0,1-2.59-.48c-8.16-3.11-9.27-19.8-9.88-41.3-.1-3.58-.19-6.68-.35-9-.15-2.1-.67-3.48-1.43-3.79-2.13-.88-7.91,2.32-12,5.86L3,32.38c1.87-1.64,11.55-9.66,18.27-6.9,2.13.87,4.75,3.14,5.17,9,.17,2.43.26,5.59.36,9.25a224.17,224.17,0,0,0,1.5,23.4c1.54,10.76,4,12.22,4.48,12.4.84.32,2.79-.46,5.76-3.59L43,80.07C41.53,81.57,37.68,85.64,33.21,85.65ZM74.81,69a11.34,11.34,0,0,0,6.09-6.72L87.26,44.5,74.72,32,56.9,38.35c-2.37.86-5.57,3.42-6.61,6L38.65,72.14l8.42,8.43ZM55,46.27a7.91,7.91,0,0,1,3.64-3.17l14.8-5.3,8,8L76.11,60.6l-.06.19a6.37,6.37,0,0,1-3,3.43L48.25,74.59,44.62,71Zm16.57,7.82A6.9,6.9,0,1,0,64.64,61,6.91,6.91,0,0,0,71.54,54.09Zm-4.05,0a2.85,2.85,0,1,1-2.85-2.85A2.86,2.86,0,0,1,67.49,54.09Zm-4.13,5.22L60.5,56.45,44.26,72.7l2.86,2.86ZM97.83,35.67,84.14,22l-8.57,8.57L89.26,44.24Zm-13.69-8,8,8-2.85,2.85-8-8Z",transform:"matrix(1 0 0 1 -15 -15)"},drawclosedpath:{width:90,height:90,path:"M88.41,21.12a26.56,26.56,0,0,0-36.18,0l-2.07,2-2.07-2a26.57,26.57,0,0,0-36.18,0,23.74,23.74,0,0,0,0,34.8L48,90.12a3.22,3.22,0,0,0,4.42,0l36-34.21a23.73,23.73,0,0,0,0-34.79ZM84,51.24,50.16,83.35,16.35,51.25a17.28,17.28,0,0,1,0-25.47,20,20,0,0,1,27.3,0l4.29,4.07a3.23,3.23,0,0,0,4.44,0l4.29-4.07a20,20,0,0,1,27.3,0,17.27,17.27,0,0,1,0,25.46ZM66.76,47.68h-33v6.91h33ZM53.35,35H46.44V68h6.91Z",transform:"matrix(1 0 0 1 -5 -5)"},lasso:{width:1031,height:1e3,path:"m1018 538c-36 207-290 336-568 286-277-48-473-256-436-463 10-57 36-108 76-151-13-66 11-137 68-183 34-28 75-41 114-42l-55-70 0 0c-2-1-3-2-4-3-10-14-8-34 5-45 14-11 34-8 45 4 1 1 2 3 2 5l0 0 113 140c16 11 31 24 45 40 4 3 6 7 8 11 48-3 100 0 151 9 278 48 473 255 436 462z m-624-379c-80 14-149 48-197 96 42 42 109 47 156 9 33-26 47-66 41-105z m-187-74c-19 16-33 37-39 60 50-32 109-55 174-68-42-25-95-24-135 8z m360 75c-34-7-69-9-102-8 8 62-16 128-68 170-73 59-175 54-244-5-9 20-16 40-20 61-28 159 121 317 333 354s407-60 434-217c28-159-121-318-333-355z",transform:"matrix(1 0 0 -1 0 850)"},selectbox:{width:1e3,height:1e3,path:"m0 850l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-285l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z",transform:"matrix(1 0 0 -1 0 850)"},drawline:{width:70,height:70,path:"M60.64,62.3a11.29,11.29,0,0,0,6.09-6.72l6.35-17.72L60.54,25.31l-17.82,6.4c-2.36.86-5.57,3.41-6.6,6L24.48,65.5l8.42,8.42ZM40.79,39.63a7.89,7.89,0,0,1,3.65-3.17l14.79-5.31,8,8L61.94,54l-.06.19a6.44,6.44,0,0,1-3,3.43L34.07,68l-3.62-3.63Zm16.57,7.81a6.9,6.9,0,1,0-6.89,6.9A6.9,6.9,0,0,0,57.36,47.44Zm-4,0a2.86,2.86,0,1,1-2.85-2.85A2.86,2.86,0,0,1,53.32,47.44Zm-4.13,5.22L46.33,49.8,30.08,66.05l2.86,2.86ZM83.65,29,70,15.34,61.4,23.9,75.09,37.59ZM70,21.06l8,8-2.84,2.85-8-8ZM87,80.49H10.67V87H87Z",transform:"matrix(1 0 0 1 -15 -15)"},drawrect:{width:80,height:80,path:"M78,22V79H21V22H78m9-9H12V88H87V13ZM68,46.22H31V54H68ZM53,32H45.22V69H53Z",transform:"matrix(1 0 0 1 -10 -10)"},drawcircle:{width:80,height:80,path:"M50,84.72C26.84,84.72,8,69.28,8,50.3S26.84,15.87,50,15.87,92,31.31,92,50.3,73.16,84.72,50,84.72Zm0-60.59c-18.6,0-33.74,11.74-33.74,26.17S31.4,76.46,50,76.46,83.74,64.72,83.74,50.3,68.6,24.13,50,24.13Zm17.15,22h-34v7.11h34Zm-13.8-13H46.24v34h7.11Z",transform:"matrix(1 0 0 1 -10 -10)"},eraseshape:{width:80,height:80,path:"M82.77,78H31.85L6,49.57,31.85,21.14H82.77a8.72,8.72,0,0,1,8.65,8.77V69.24A8.72,8.72,0,0,1,82.77,78ZM35.46,69.84H82.77a.57.57,0,0,0,.49-.6V29.91a.57.57,0,0,0-.49-.61H35.46L17,49.57Zm32.68-34.7-24,24,5,5,24-24Zm-19,.53-5,5,24,24,5-5Z",transform:"matrix(1 0 0 1 -10 -10)"},spikeline:{width:1e3,height:1e3,path:"M512 409c0-57-46-104-103-104-57 0-104 47-104 104 0 57 47 103 104 103 57 0 103-46 103-103z m-327-39l92 0 0 92-92 0z m-185 0l92 0 0 92-92 0z m370-186l92 0 0 93-92 0z m0-184l92 0 0 92-92 0z",transform:"matrix(1.5 0 0 -1.5 0 850)"},pencil:{width:1792,height:1792,path:"M491 1536l91-91-235-235-91 91v107h128v128h107zm523-928q0-22-22-22-10 0-17 7l-542 542q-7 7-7 17 0 22 22 22 10 0 17-7l542-542q7-7 7-17zm-54-192l416 416-832 832h-416v-416zm683 96q0 53-37 90l-166 166-416-416 166-165q36-38 90-38 53 0 91 38l235 234q37 39 37 91z",transform:"matrix(1 0 0 1 0 1)"},newplotlylogo:{name:"newplotlylogo",svg:[""," plotly-logomark"," "," "," "," "," "," "," "," "," "," "," "," "," ",""].join("")}}});var m3={};Ja(m3,{CIRCLE_SIDES:()=>D1e,SQRT2:()=>N1e,cos45:()=>R1e,i000:()=>L1e,i090:()=>E1e,i180:()=>q1e,i270:()=>F1e,sin45:()=>P1e});var D1e,L1e,E1e,q1e,F1e,R1e,P1e,N1e,y3=Za(()=>{"use strict";D1e=32,L1e=0,E1e=8,q1e=16,F1e=24,R1e=Math.cos(Math.PI/4),P1e=Math.sin(Math.PI/4),N1e=Math.sqrt(2)});var g3=B((CFe,qN)=>{"use strict";var z1e=nr().strTranslate;function EN(e,r){switch(e.type){case"log":return e.p2d(r);case"date":return e.p2r(r,0,e.calendar);default:return e.p2r(r)}}function B1e(e,r){switch(e.type){case"log":return e.d2p(r);case"date":return e.r2p(r,0,e.calendar);default:return e.r2p(r)}}function I1e(e){var r=e._id.charAt(0)==="y"?1:0;return function(t){return EN(e,t[r])}}function O1e(e){return z1e(e.xaxis._offset,e.yaxis._offset)}qN.exports={p2r:EN,r2p:B1e,axValue:I1e,getTransform:O1e}});var kf=B(hu=>{"use strict";var H1e=i7(),PN=(y3(),vr(m3)),gh=PN.CIRCLE_SIDES,x8=PN.SQRT2,NN=g3(),FN=NN.p2r,RN=NN.r2p,U1e=[0,3,4,5,6,1,2],G1e=[0,3,4,1,2];hu.writePaths=function(e){var r=e.length;if(!r)return"M0,0Z";for(var t="",a=0;a0&&s{"use strict";var zN=fn(),UN=Mf(),Y1e=UN.drawMode,V1e=UN.openMode,bh=(y3(),vr(m3)),BN=bh.i000,IN=bh.i090,ON=bh.i180,HN=bh.i270,X1e=bh.cos45,W1e=bh.sin45,GN=g3(),x3=GN.p2r,Sf=GN.r2p,Z1e=hf(),J1e=Z1e.clearOutline,_3=kf(),j1e=_3.readPaths,$1e=_3.writePaths,K1e=_3.ellipseOver,Q1e=_3.fixDatesForPaths;function epe(e,r){if(e.length){var t=e[0][0];if(t){var a=r.gd,n=r.isActiveShape,i=r.dragmode,o=(a.layout||{}).shapes||[];if(!Y1e(i)&&n!==void 0){var l=a._fullLayout._activeShapeIndex;if(l{"use strict";var rpe=Mf(),tpe=rpe.selectMode,ape=hf(),npe=ape.clearOutline,_8=kf(),ipe=_8.readPaths,ope=_8.writePaths,lpe=_8.fixDatesForPaths;XN.exports=function(r,t){if(r.length){var a=r[0][0];if(a){var n=a.getAttribute("d"),i=t.gd,o=i._fullLayout.newselection,l=t.plotinfo,s=l.xaxis,u=l.yaxis,f=t.isActiveSelection,c=t.dragmode,v=(i.layout||{}).selections||[];if(!tpe(c)&&f!==void 0){var d=i._fullLayout._activeSelectionIndex;if(dvpe,paramIsX:()=>fpe,paramIsY:()=>cpe,paramRE:()=>upe,segmentRE:()=>spe});var spe,upe,fpe,cpe,vpe,b1=Za(()=>{"use strict";spe=/[MLHVQCTSZ][^MLHVQCTSZ]*/g,upe=/[^\s,]+/g,fpe={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:{}},cpe={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:3},Z:{}},vpe={M:2,L:2,H:1,V:1,Q:4,C:6,T:2,S:4,Z:0}});var Df=B(gi=>{"use strict";var Ts=(b1(),vr(g1)),WN=nr(),Cf=Qa();gi.rangeToShapePosition=function(e){return e.type==="log"?e.r2d:function(r){return r}};gi.shapePositionToRange=function(e){return e.type==="log"?e.d2r:function(r){return r}};gi.decodeDate=function(e){return function(r){return r.replace&&(r=r.replace("_"," ")),e(r)}};gi.encodeDate=function(e){return function(r){return e(r).replace(" ","_")}};gi.extractPathCoords=function(e,r,t){var a=[],n=e.match(Ts.segmentRE);return n.forEach(function(i){var o=r[i.charAt(0)].drawn;if(o!==void 0){var l=i.slice(1).match(Ts.paramRE);if(!(!l||l.length{let l=o.charAt(0),s=n[l].drawn!==void 0;return i+(s?1:0)},0)};gi.getDataToPixel=function(e,r,t,a,n){var i=e._fullLayout._size,o;if(r)if(n==="domain")o=function(s){return r._length*(a?1-s:s)+r._offset};else{var l=gi.shapePositionToRange(r);o=function(s){var u=As(r,t);return r._offset+r.r2p(l(s,!0))+u},r.type==="date"&&(o=gi.decodeDate(o))}else a?o=function(s){return i.t+i.h*(1-s)}:o=function(s){return i.l+i.w*s};return o};gi.getPixelToData=function(e,r,t,a){var n=e._fullLayout._size,i;if(r)if(a==="domain")i=function(l){var s=(l-r._offset)/r._length;return t?1-s:s};else{var o=gi.rangeToShapePosition(r);i=function(l){return o(r.p2r(l-r._offset))}}else t?i=function(l){return 1-(l-n.t)/n.h}:i=function(l){return(l-n.l)/n.w};return i};gi.roundPositionForSharpStrokeRendering=function(e,r){var t=Math.round(r%2)===1,a=Math.round(e);return t?a+.5:a};gi.makeShapesOptionsAndPlotinfo=function(e,r){var t=e._fullLayout.shapes[r]||{},a=e._fullLayout._plots[t.xref+t.yref],n=!!a;return n?a._hadPlotinfo=!0:(a={},t.xref&&t.xref!=="paper"&&(a.xaxis=e._fullLayout[t.xref+"axis"]),t.yref&&t.yref!=="paper"&&(a.yaxis=e._fullLayout[t.yref+"axis"])),a.xsizemode=t.xsizemode,a.ysizemode=t.ysizemode,a.xanchor=t.xanchor,a.yanchor=t.yanchor,{options:t,plotinfo:a}};gi.makeSelectionsOptionsAndPlotinfo=function(e,r){var t=e._fullLayout.selections[r]||{},a=e._fullLayout._plots[t.xref+t.yref],n=!!a;return n?a._hadPlotinfo=!0:(a={},t.xref&&(a.xaxis=e._fullLayout[t.xref+"axis"]),t.yref&&(a.yaxis=e._fullLayout[t.yref+"axis"])),{options:t,plotinfo:a}};gi.getPathString=function(e,r){let t=r.type,a=Cf.getRefType(r.xref),n=Cf.getRefType(r.yref),i=e._fullLayout._size;var o,l,s,u,f,c,v,d,p,y,m,b;function T(F,P,q,z){var I;if(F)if(P==="domain")z?I=function(Y){return F._offset+F._length*(1-Y)}:I=function(Y){return F._offset+F._length*Y};else{let Y=gi.shapePositionToRange(F);I=function(V){return F._offset+F.r2p(Y(V,!0))},q==="path"&&F.type==="date"&&(I=gi.decodeDate(I))}else z?I=function(Y){return i.t+i.h*(1-Y)}:I=function(Y){return i.l+i.w*Y};return I}if(a==="array"?(v=[],o=r.xref.map(function(F){return Cf.getFromId(e,F)}),v=r.xref.map(function(F,P){return T(o[P],Cf.getRefType(F),t,!1)})):(o=Cf.getFromId(e,r.xref),v=T(o,a,t,!1)),n==="array"?(d=[],l=r.yref.map(function(F){return Cf.getFromId(e,F)}),d=r.yref.map(function(F,P){return T(l[P],Cf.getRefType(F),t,!0)})):(l=Cf.getFromId(e,r.yref),d=T(l,n,t,!0)),t==="path")return hpe(r,v,d);if(a==="array")s=As(o[0],r.x0shift),u=As(o[1],r.x1shift),p=v[0](r.x0)+s,y=v[1](r.x1)+u;else if(s=As(o,r.x0shift),u=As(o,r.x1shift),r.xsizemode==="pixel"){let F=v(r.xanchor);p=F+r.x0+s,y=F+r.x1+u}else p=v(r.x0)+s,y=v(r.x1)+u;if(n==="array")f=As(l[0],r.y0shift),c=As(l[1],r.y1shift),m=d[0](r.y0)+f,b=d[1](r.y1)+c;else if(f=As(l,r.y0shift),c=As(l,r.y1shift),r.ysizemode==="pixel"){let F=d(r.yanchor);m=F-r.y0+f,b=F-r.y1+c}else m=d(r.y0)+f,b=d(r.y1)+c;if(t==="line")return"M"+p+","+m+"L"+y+","+b;if(t==="rect")return"M"+p+","+m+"H"+y+"V"+b+"H"+p+"Z";var _=(p+y)/2,x=(m+b)/2,w=Math.abs(_-p),k=Math.abs(x-m),M="A"+w+","+k,C=_+w+","+x,E=_+","+(x-k);return"M"+C+M+" 0 1,1 "+E+M+" 0 0,1 "+C+"Z"};function hpe(e,r,t){let a=e.path,n=e.xsizemode,i=e.ysizemode,o=e.xanchor,l=e.yanchor,s=Array.isArray(e.xref),u=Array.isArray(e.yref);var f=0,c=0;return a.replace(Ts.segmentRE,function(v){var d=0,p=v.charAt(0),y=Ts.paramIsX[p],m=Ts.paramIsY[p],b=Ts.numParams[p];let T=y.drawn!==void 0,_=m.drawn!==void 0,x=s?r[f]:r,w=u?t[c]:t;var k=v.slice(1).replace(Ts.paramRE,function(M){return y[d]?n==="pixel"?M=x(o)+Number(M):M=x(M):m[d]&&(i==="pixel"?M=w(l)-Number(M):M=w(M)),d++,d>b&&(M="X"),M});return d>b&&(k=k.replace(/[\s,]*X.*/,""),WN.log("Ignoring extra params in segment "+v)),T&&f++,_&&c++,p+k})}gi.getPixelShift=As;function As(e,r){r=r||0;var t=0;return r&&e&&(e.type==="category"||e.type==="multicategory")&&(t=(e.r2p(1)-e.r2p(0))*r),t}});var A8=B((FFe,jN)=>{"use strict";var dpe=nr(),Ms=Qa(),ZN=Mi(),JN=Ca(),ppe=kf().readPaths,cc=Df(),mpe=cc.getPathString,x1=Wy(),ype=(Ni(),vr(Pi)).FROM_TL;jN.exports=function(r,t,a,n){if(n.selectAll(".shape-label").remove(),!!(a.label.text||a.label.texttemplate)){var i;if(a.label.texttemplate){var o={};if(a.type!=="path"){var l=Ms.getFromId(r,a.xref),s=Ms.getFromId(r,a.yref);let j=Array.isArray(a.xref),ae=Array.isArray(a.yref);for(var u in x1){var f=typeof x1[u]=="function",c=!j||x1.simpleXVariables.includes(u),v=!ae||x1.simpleYVariables.includes(u);if(f&&c&&v){var d=x1[u](a,l,s);d!==void 0&&(o[u]=d)}}}i=dpe.texttemplateStringForShapes({data:[o],fallback:a.label.texttemplatefallback,locale:r._fullLayout._d3locale,template:a.label.texttemplate})}else i=a.label.text;var p={"data-index":t},y=a.label.font,m={"data-notex":1},b=n.append("g").attr(p).classed("shape-label",!0),T=b.append("text").attr(m).classed("shape-label-text",!0).text(i),_,x,w,k;if(a.path){var M=mpe(r,a),C=ppe(M,r);_=1/0,w=1/0,x=-1/0,k=-1/0;for(var E=0;Ecc.getDataToPixel(r,Ve,qe,!1,Qe)(ir),Ne=(ir,qe,Ve,Qe)=>cc.getDataToPixel(r,Ve,qe,!0,Qe)(ir);if(a.xsizemode==="pixel"){let ir=ge(a.xanchor,void 0,pe,Ee),qe=cc.getPixelShift(pe,a.x0shift),Ve=cc.getPixelShift(pe,a.x1shift);_=ir+a.x0+qe,x=ir+a.x1+Ve}else _=ge(a.x0,a.x0shift,pe,Ee),x=ge(a.x1,a.x1shift,se,de);if(a.ysizemode==="pixel"){let ir=Ne(a.yanchor,void 0,we,Ae),qe=cc.getPixelShift(we,a.y0shift),Ve=cc.getPixelShift(we,a.y1shift);w=ir-a.y0+qe,k=ir-a.y1+Ve}else w=Ne(a.y0,a.y0shift,we,Ae),k=Ne(a.y1,a.y1shift,te,Ue)}var Y=a.label.textangle;Y==="auto"&&(a.type==="line"?Y=gpe(_,w,x,k):Y=0),T.call(function(j){return j.call(JN.font,y).attr({}),ZN.convertToTspans(j,r),j});var V=JN.bBox(T.node()),J=bpe(_,w,x,k,a,Y,V),U=J.textx,G=J.texty,W=J.xanchor;T.attr({"text-anchor":{left:"start",center:"middle",right:"end"}[W],y:G,x:U,transform:"rotate("+Y+","+U+","+G+")"}).call(ZN.positionText,U,G)}};function gpe(e,r,t,a){var n,i;return i=Math.abs(t-e),t>=e?n=r-a:n=a-r,-180/Math.PI*Math.atan2(n,i)}function bpe(e,r,t,a,n,i,o){var l=n.label.textposition,s=n.label.textangle,u=n.label.padding,f=n.type,c=Math.PI/180*i,v=Math.sin(c),d=Math.cos(c),p=n.label.xanchor,y=n.label.yanchor,m,b,T,_;if(f==="line"){l==="start"?(m=e,b=r):l==="end"?(m=t,b=a):(m=(e+t)/2,b=(r+a)/2),p==="auto"&&(l==="start"?s==="auto"?t>e?p="left":te?p="right":te?p="right":te?p="left":t{"use strict";var xpe=nr(),_pe=xpe.strTranslate,$N=Bl(),ez=Mf(),wpe=ez.drawMode,rz=ez.selectMode,tz=Pt(),KN=Kt(),T3=(y3(),vr(m3)),Ape=T3.i000,Tpe=T3.i090,Mpe=T3.i180,kpe=T3.i270,Spe=hf(),az=Spe.clearOutlineControllers,M8=kf(),A3=M8.pointsOnRectangle,T8=M8.pointsOnEllipse,Cpe=M8.writePaths,Dpe=w3().newShapes,Lpe=w3().createShapeObj,Epe=w8(),qpe=A8();nz.exports=function e(r,t,a,n){n||(n=0);var i=a.gd;function o(){e(r,t,a,n++),(T8(r[0])||a.hasText)&&l({redrawing:!0})}function l(J){var U={};a.isActiveShape!==void 0&&(a.isActiveShape=!1,U=Dpe(t,a)),a.isActiveSelection!==void 0&&(a.isActiveSelection=!1,U=Epe(t,a),i._fullLayout._reselect=!0),Object.keys(U).length&&tz.call((J||{}).redrawing?"relayout":"_guiRelayout",i,U)}var s=i._fullLayout,u=s._zoomlayer,f=a.dragmode,c=wpe(f),v=rz(f);(c||v)&&(i._fullLayout._outlining=!0),az(i),t.attr("d",Cpe(r));var d,p,y,m,b;if(!n&&(a.isActiveShape||a.isActiveSelection)){b=Fpe([],r);var T=u.append("g").attr("class","outline-controllers");F(T),V()}if(c&&a.hasText){var _=u.select(".label-temp"),x=Lpe(t,a,a.dragmode);qpe(i,"label-temp",x,_)}function w(J){y=+J.srcElement.getAttribute("data-i"),m=+J.srcElement.getAttribute("data-j"),d[y][m].moveFn=k}function k(J,U){if(r.length){var G=b[y][m][1],W=b[y][m][2],j=r[y],ae=j.length;if(A3(j)){var pe=J,se=U;if(a.isActiveSelection){var we=QN(j,m);we[1]===j[m][1]?se=0:pe=0}for(var te=0;te1&&!(J.length===2&&J[1][0]==="Z")&&(m===0&&(J[0][0]="M"),r[y]=J,o(),l())}}function E(J,U){if(J===2){y=+U.srcElement.getAttribute("data-i"),m=+U.srcElement.getAttribute("data-j");var G=r[y];!A3(G)&&!T8(G)&&C()}}function F(J){d=[];for(var U=0;U{"use strict";var Ppe=ia(),fz=Pt(),S8=nr(),vc=Qa(),Npe=kf().readPaths,zpe=M3(),S3=A8(),cz=hf().clearOutlineControllers,k8=Kt(),C3=Ca(),Bpe=Ra().arrayEditor,iz=Bl(),oz=cu(),lz=Af(),hc=(b1(),vr(g1)),wo=Df(),C8=wo.getPathString;dz.exports={draw:D8,drawOne:vz,eraseActiveShape:Gpe,drawLabel:S3};function D8(e){var r=e._fullLayout;r._shapeUpperLayer.selectAll("path").remove(),r._shapeLowerLayer.selectAll("path").remove(),r._shapeUpperLayer.selectAll("text").remove(),r._shapeLowerLayer.selectAll("text").remove();for(var t in r._plots){var a=r._plots[t].shapelayer;a&&(a.selectAll("path").remove(),a.selectAll("text").remove())}for(var n=0;n{if(!e._dragging&&e._fullLayout.hoveranywhere){let o=n(i);o&&oz.hover(e,o,t.id)}}),a.addEventListener("click",i=>{if(!e._dragged&&e._fullLayout.clickanywhere){let o=n(i);o&&oz.click(e,o,t.id)}})}function hz(e,r,t){let a=t.xref,n=t.yref;if(Array.isArray(a)||Array.isArray(n)){let i="clip"+r._fullLayout._uid+"shape"+t._index,o=Ope(r,a,n);S8.ensureSingleById(r._fullLayout._clips,"clipPath",i,function(l){l.append("rect")}).select("rect").attr(o),C3.setClipUrl(e,i,r)}else{let i=(a+n).replace(/paper/g,"").replace(/[xyz][0-9]* *domain/g,"");C3.setClipUrl(e,i?"clip"+r._fullLayout._uid+i:null,r)}}function Ope(e,r,t){let a=e._fullLayout._size;function n(l,s){let u=(Array.isArray(l)?l:[l]).map(v=>vc.getFromId(e,v)).filter(Boolean);if(!u.length)return s?[a.t,a.t+a.h]:[a.l,a.l+a.w];let f=u.map(function(v){return v._offset}),c=u.map(function(v){return v._offset+v._length});return[Math.min(...f),Math.max(...c)]}let i=n(r,!1),o=n(t,!0);return{x:i[0],y:o[0],width:i[1]-i[0],height:o[1]-o[0]}}function Hpe(e,r,t,a,n,i){var o=10,l=10,s=t.xsizemode==="pixel",u=t.ysizemode==="pixel",f=t.type==="line",c=t.type==="path",v=i.modifyItem,d,p,y,m,b,T,_,x,w,k,M,C,E,F,P,q=Ppe.select(r.node().parentNode),z=vc.getFromId(e,t.xref),I=vc.getRefType(t.xref),Y=vc.getFromId(e,t.yref),V=vc.getRefType(t.yref),J=t.x0shift,U=t.x1shift,G=t.y0shift,W=t.y1shift,j=function(yr,Ge){var Sr=wo.getDataToPixel(e,z,Ge,!1,I);return Sr(yr)},ae=function(yr,Ge){var Sr=wo.getDataToPixel(e,Y,Ge,!0,V);return Sr(yr)},pe=wo.getPixelToData(e,z,!1,I),se=wo.getPixelToData(e,Y,!0,V),we=de(),te={element:we.node(),gd:e,prepFn:ge,doneFn:Ne,clickFn:ir},Ee;iz.init(te),we.node().onmousemove=Ue;function de(){return f?Ae():r}function Ae(){var yr=10,Ge=Math.max(t.line.width,yr),Sr=n.append("g").attr("data-index",a).attr("drag-helper",!0);Sr.append("path").attr("d",r.attr("d")).style({cursor:"move","stroke-width":Ge,"stroke-opacity":"0"});var Fr={"fill-opacity":"0"},Lr=Math.max(Ge/2,yr);return Sr.append("circle").attr({"data-line-point":"start-point",cx:s?j(t.xanchor)+t.x0:j(t.x0,J),cy:u?ae(t.yanchor)-t.y0:ae(t.y0,G),r:Lr}).style(Fr).classed("cursor-grab",!0),Sr.append("circle").attr({"data-line-point":"end-point",cx:s?j(t.xanchor)+t.x1:j(t.x1,U),cy:u?ae(t.yanchor)-t.y1:ae(t.y1,W),r:Lr}).style(Fr).classed("cursor-grab",!0),Sr}function Ue(yr){if(k3(e)){Ee=null;return}if(f)yr.target.tagName==="path"?Ee="move":Ee=yr.target.attributes["data-line-point"].value==="start-point"?"resize-over-start-point":"resize-over-end-point";else{var Ge=te.element.getBoundingClientRect(),Sr=Ge.right-Ge.left,Fr=Ge.bottom-Ge.top,Lr=yr.clientX-Ge.left,He=yr.clientY-Ge.top,or=!c&&Sr>o&&Fr>l&&!yr.shiftKey?iz.getCursor(Lr/Sr,1-He/Fr):"move";lz(r,or),Ee=or.split("-")[0]}}function ge(yr){k3(e)||(s&&(b=j(t.xanchor)),u&&(T=ae(t.yanchor)),t.type==="path"?P=t.path:(d=s?t.x0:j(t.x0),p=u?t.y0:ae(t.y0),y=s?t.x1:j(t.x1),m=u?t.y1:ae(t.y1)),dm?(_=p,M="y0",x=m,C="y1"):(_=m,M="y1",x=p,C="y0"),Ue(yr),Qe(n,t),rr(r,t,e),te.moveFn=Ee==="move"?qe:Ve,te.altKey=yr.altKey)}function Ne(){k3(e)||(lz(r),er(n),hz(r,e,t),fz.call("_guiRelayout",e,i.getUpdateObj()))}function ir(){k3(e)||er(n)}function qe(yr,Ge){if(t.type==="path"){var Sr=function(He){return He},Fr=Sr,Lr=Sr;s?v("xanchor",t.xanchor=pe(b+yr)):(Fr=function(or){return pe(j(or)+yr)},z&&z.type==="date"&&(Fr=wo.encodeDate(Fr))),u?v("yanchor",t.yanchor=se(T+Ge)):(Lr=function(or){return se(ae(or)+Ge)},Y&&Y.type==="date"&&(Lr=wo.encodeDate(Lr))),v("path",t.path=sz(P,Fr,Lr))}else s?v("xanchor",t.xanchor=pe(b+yr)):(v("x0",t.x0=pe(d+yr)),v("x1",t.x1=pe(y+yr))),u?v("yanchor",t.yanchor=se(T+Ge)):(v("y0",t.y0=se(p+Ge)),v("y1",t.y1=se(m+Ge)));r.attr("d",C8(e,t)),Qe(n,t),S3(e,a,t,q)}function Ve(yr,Ge){if(c){var Sr=function(_r){return _r},Fr=Sr,Lr=Sr;s?v("xanchor",t.xanchor=pe(b+yr)):(Fr=function(Vr){return pe(j(Vr)+yr)},z&&z.type==="date"&&(Fr=wo.encodeDate(Fr))),u?v("yanchor",t.yanchor=se(T+Ge)):(Lr=function(Vr){return se(ae(Vr)+Ge)},Y&&Y.type==="date"&&(Lr=wo.encodeDate(Lr))),v("path",t.path=sz(P,Fr,Lr))}else if(f){if(Ee==="resize-over-start-point"){var He=d+yr,or=u?p-Ge:p+Ge;v("x0",t.x0=s?He:pe(He)),v("y0",t.y0=u?or:se(or))}else if(Ee==="resize-over-end-point"){var Ir=y+yr,fe=u?m-Ge:m+Ge;v("x1",t.x1=s?Ir:pe(Ir)),v("y1",t.y1=u?fe:se(fe))}}else{var Le=function(_r){return Ee.indexOf(_r)!==-1},Mr=Le("n"),lt=Le("s"),Xe=Le("w"),Me=Le("e"),Fe=Mr?_+Ge:_,dr=lt?x+Ge:x,kr=Xe?w+yr:w,fr=Me?k+yr:k;u&&(Mr&&(Fe=_-Ge),lt&&(dr=x-Ge)),(!u&&dr-Fe>l||u&&Fe-dr>l)&&(v(M,t[M]=u?Fe:se(Fe)),v(C,t[C]=u?dr:se(dr))),fr-kr>o&&(v(E,t[E]=s?kr:pe(kr)),v(F,t[F]=s?fr:pe(fr)))}r.attr("d",C8(e,t)),Qe(n,t),S3(e,a,t,q)}function Qe(yr,Ge){(s||u)&&Sr();function Sr(){var Fr=Ge.type!=="path",Lr=yr.selectAll(".visual-cue").data([0]),He=1;Lr.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":He}).classed("visual-cue",!0);var or=j(s?Ge.xanchor:S8.midRange(Fr?[Ge.x0,Ge.x1]:wo.extractPathCoords(Ge.path,hc.paramIsX))),Ir=ae(u?Ge.yanchor:S8.midRange(Fr?[Ge.y0,Ge.y1]:wo.extractPathCoords(Ge.path,hc.paramIsY)));if(or=wo.roundPositionForSharpStrokeRendering(or,He),Ir=wo.roundPositionForSharpStrokeRendering(Ir,He),s&&u){var fe="M"+(or-1-He)+","+(Ir-1-He)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";Lr.attr("d",fe)}else if(s){var Le="M"+(or-1-He)+","+(Ir-9-He)+"v18 h2 v-18 Z";Lr.attr("d",Le)}else{var Mr="M"+(or-9-He)+","+(Ir-1-He)+"h18 v2 h-18 Z";Lr.attr("d",Mr)}}}function er(yr){yr.selectAll(".visual-cue").remove()}function rr(yr,Ge,Sr){var Fr=Ge.xref,Lr=Ge.yref,He=vc.getFromId(Sr,Fr),or=vc.getFromId(Sr,Lr),Ir="";Fr!=="paper"&&!He.autorange&&(Ir+=Fr),Lr!=="paper"&&!or.autorange&&(Ir+=Lr),C3.setClipUrl(yr,Ir?"clip"+Sr._fullLayout._uid+Ir:null,Sr)}}function sz(e,r,t){return e.replace(hc.segmentRE,function(a){var n=0,i=a.charAt(0),o=hc.paramIsX[i],l=hc.paramIsY[i],s=hc.numParams[i],u=a.slice(1).replace(hc.paramRE,function(f){return n>=s||(o[n]?f=r(f):l[n]&&(f=t(f)),n++),f});return i+u})}function Upe(e,r){if(D3(e)){var t=r.node(),a=+t.getAttribute("data-index");if(a>=0){if(a===e._fullLayout._activeShapeIndex){uz(e);return}e._fullLayout._activeShapeIndex=a,e._fullLayout._deactivateShape=uz,D8(e)}}}function uz(e){if(D3(e)){var r=e._fullLayout._activeShapeIndex;r>=0&&(cz(e),delete e._fullLayout._activeShapeIndex,D8(e))}}function Gpe(e){if(D3(e)){cz(e);var r=e._fullLayout._activeShapeIndex,t=(e.layout||{}).shapes||[];if(r{"use strict";var xh=nr()._,Ype=function(e){return{DIALOG_TITLE:xh(e,"Share chart"),DIALOG_MESSAGE_CLOUD:xh(e,"This chart will be uploaded to {Plotly Cloud} to create a sharing link. Only you can see it until you change its visibility."),DIALOG_MESSAGE_CLOUD_ACCOUNT:xh(e,"If you don't have a Plotly Cloud account yet, you'll have a chance to create one."),DIALOG_MESSAGE_OTHER:xh(e,"This chart will be sent to {serverUrl}."),DIALOG_CANCEL:xh(e,"Cancel"),DIALOG_CONFIRM:xh(e,"Share")}};pz.exports=Ype});var bz=B((zFe,gz)=>{"use strict";var yz=ia(),{dfltConfig:Vpe}=Qu(),Xpe=mz(),Wpe=(e,r,t,a,n)=>{let i=Xpe(e),o=r.append("div").classed("plotly-cloud-dialog-box",!0);if(o.append("div").classed("plotly-cloud-dialog-title",!0).text(i.DIALOG_TITLE),t===Vpe.plotlyServerURL){let s=o.append("div").classed("plotly-cloud-dialog-message",!0),u=new URL(t).origin,f=i.DIALOG_MESSAGE_CLOUD.split(/(\{|\})/),c=f[0],v=f[2],d=f[4];s.append("span").text(c),s.append("a").classed("plotly-cloud-dialog-message--hostname",!0).attr("href",u).attr("target","_blank").text(v),s.append("span").text(d),s.append("div").classed("plotly-cloud-dialog-message--account",!0).text(i.DIALOG_MESSAGE_CLOUD_ACCOUNT)}else{let s=new URL(t),u=s.hostname,f=s.origin,c=i.DIALOG_MESSAGE_OTHER.split(/(\{|\})/),v=c[0],d=c[4],p=o.append("div").classed("plotly-cloud-dialog-message",!0);p.append("span").text(v),p.append("a").classed("plotly-cloud-dialog-message--hostname",!0).attr("href",f).attr("target","_blank").text(u),p.append("span").text(d)}let l=o.append("div").classed("plotly-cloud-dialog-buttons",!0);l.append("button").classed("plotly-cloud-dialog-btn",!0).classed("plotly-cloud-dialog-btn--cancel",!0).text(i.DIALOG_CANCEL).on("click",n),l.append("button").classed("plotly-cloud-dialog-btn",!0).classed("plotly-cloud-dialog-btn--confirm",!0).text(i.DIALOG_CONFIRM).on("click",a)},Zpe=(e,r,t)=>{let a=yz.select(e._fullLayout._paperdiv.node());a.selectAll(".plotly-cloud-dialog").remove();let n=a.append("div").classed("plotly-cloud-dialog",!0),i=()=>{n.remove(),document.removeEventListener("keydown",o)},o=l=>{(l.key==="Escape"||l.keyCode===27)&&i()};document.addEventListener("keydown",o),n.on("click",()=>{yz.event.target===n.node()&&i()}),Wpe(e,n,r,()=>{i(),t()},i)};gz.exports=Zpe});var q8=B((BFe,kz)=>{"use strict";var Ho=Pt(),Jpe=oi(),_z=fn(),ba=p3(),jpe=L3().eraseActiveShape,$pe=bz(),_h=nr(),na=_h._,ya={};kz.exports=ya;ya.toImage={name:"toImage",title:function(e){var r=e._context.toImageButtonOptions||{},t=r.format||"png";return t==="png"?na(e,"Download plot as a PNG"):na(e,"Download plot")},icon:ba.camera,click:function(e){var r=e._context.toImageButtonOptions,t={format:r.format||"png"};_h.notifier(na(e,"Preparing image - this may take a few seconds"),"long",e),["filename","width","height","scale"].forEach(function(a){a in r&&(t[a]=r[a])}),Ho.call("downloadImage",e,t).then(function(a){_h.notifier(na(e,"Image download succeeded")+" - "+a,"long",e)}).catch(function(){_h.notifier(na(e,"Sorry, there was a problem downloading your image!"),"long",e)})}};ya.downloadJson={name:"downloadJson",title:function(e){return na(e,"Download plot as JSON")},icon:ba.curlybraces,click:function(e){Ho.call("downloadImage",e,{format:"full-json"}).then(function(r){_h.notifier(na(e,"JSON download succeeded")+" - "+r,"long",e)}).catch(function(){_h.notifier(na(e,"Sorry, there was a problem downloading your JSON file!"),"long",e)})}};ya.sendChartToCloud={name:"sendChartToCloud",title:function(e){return na(e,"Share chart...")},icon:ba.cloudupload,click:function(e){var r=(window.PLOTLYENV||{}).BASE_URL||e._context.plotlyServerURL;if(!r){console.error("No destination URL provided (plotlyServerURL is empty)");return}var t;try{t=new URL(r)}catch(n){console.error("Invalid plotlyServerURL: "+r);return}let a=["http:","https:"];if(!a.includes(t.protocol)){console.error(`Invalid protocol '${t.protocol}' in plotlyServerURL '${r}'. Must be one of: ${a.join(", ")}`);return}$pe(e,r,function(){Jpe.sendDataToCloud(e,r)})}};ya.zoom2d={name:"zoom2d",_cat:"zoom",title:function(e){return na(e,"Zoom")},attr:"dragmode",val:"zoom",icon:ba.zoombox,click:Zi};ya.pan2d={name:"pan2d",_cat:"pan",title:function(e){return na(e,"Pan")},attr:"dragmode",val:"pan",icon:ba.pan,click:Zi};ya.select2d={name:"select2d",_cat:"select",title:function(e){return na(e,"Box Select")},attr:"dragmode",val:"select",icon:ba.selectbox,click:Zi};ya.lasso2d={name:"lasso2d",_cat:"lasso",title:function(e){return na(e,"Lasso Select")},attr:"dragmode",val:"lasso",icon:ba.lasso,click:Zi};ya.drawclosedpath={name:"drawclosedpath",title:function(e){return na(e,"Draw closed freeform")},attr:"dragmode",val:"drawclosedpath",icon:ba.drawclosedpath,click:Zi};ya.drawopenpath={name:"drawopenpath",title:function(e){return na(e,"Draw open freeform")},attr:"dragmode",val:"drawopenpath",icon:ba.drawopenpath,click:Zi};ya.drawline={name:"drawline",title:function(e){return na(e,"Draw line")},attr:"dragmode",val:"drawline",icon:ba.drawline,click:Zi};ya.drawrect={name:"drawrect",title:function(e){return na(e,"Draw rectangle")},attr:"dragmode",val:"drawrect",icon:ba.drawrect,click:Zi};ya.drawcircle={name:"drawcircle",title:function(e){return na(e,"Draw circle")},attr:"dragmode",val:"drawcircle",icon:ba.drawcircle,click:Zi};ya.eraseshape={name:"eraseshape",title:function(e){return na(e,"Erase active shape")},icon:ba.eraseshape,click:jpe};ya.zoomIn2d={name:"zoomIn2d",_cat:"zoomin",title:function(e){return na(e,"Zoom in")},attr:"zoom",val:"in",icon:ba.zoom_plus,click:Zi};ya.zoomOut2d={name:"zoomOut2d",_cat:"zoomout",title:function(e){return na(e,"Zoom out")},attr:"zoom",val:"out",icon:ba.zoom_minus,click:Zi};ya.autoScale2d={name:"autoScale2d",_cat:"autoscale",title:function(e){return na(e,"Autoscale")},attr:"zoom",val:"auto",icon:ba.autoscale,click:Zi};ya.resetScale2d={name:"resetScale2d",_cat:"resetscale",title:function(e){return na(e,"Reset axes")},attr:"zoom",val:"reset",icon:ba.home,click:Zi};ya.hoverClosestCartesian={name:"hoverClosestCartesian",_cat:"hoverclosest",title:function(e){return na(e,"Show closest data on hover")},attr:"hovermode",val:"closest",icon:ba.tooltip_basic,gravity:"ne",click:Zi};ya.hoverCompareCartesian={name:"hoverCompareCartesian",_cat:"hoverCompare",title:function(e){return na(e,"Compare data on hover")},attr:"hovermode",val:function(e){return e._fullLayout._isHoriz?"y":"x"},icon:ba.tooltip_compare,gravity:"ne",click:Zi};function Zi(e,r){var t=r.currentTarget,a=t.getAttribute("data-attr"),n=t.getAttribute("data-val")||!0,i=e._fullLayout,o={},l=_z.list(e,null,!0),s=i._cartesianSpikesEnabled,u,f;if(a==="zoom"){var c=n==="in"?.5:2,v=(1+c)/2,d=(1-c)/2,p,y;for(f=0;f-k),[y,m]=c.invert(f.midPt),{minscale:b}=u.projection,T=(l=u.projection.maxscale)!=null?l:1/0,_=Math.min(b,T),x=Math.max(b,T),w=n==="in"?xz*v:1/xz*v;w>x?w=x:w<_&&(w=_),w!==v&&Ho.call("_guiRelayout",e,{[s+".projection.scale"]:w,[s+".projection.rotation.lon"]:d,[s+".projection.rotation.lat"]:p,[s+".center.lon"]:y,[s+".center.lat"]:m,[s+".fitbounds"]:!1})}}a==="reset"&&E3(e,"geo")}ya.hoverClosestPie={name:"hoverClosestPie",_cat:"hoverclosest",title:function(e){return na(e,"Toggle show closest data on hover")},attr:"hovermode",val:"closest",icon:ba.tooltip_basic,gravity:"ne",click:Tz};function Az(e){var r=e._fullLayout;return r.hovermode?!1:r._has("cartesian")?r._isHoriz?"y":"x":"closest"}function Tz(e){var r=Az(e);Ho.call("_guiRelayout",e,"hovermode",r)}ya.resetViewSankey={name:"resetSankeyGroup",title:function(e){return na(e,"Reset view")},icon:ba.home,click:function(e){for(var r={"node.groups":[],"node.x":[],"node.y":[]},t=0;t{"use strict";var Sz=q8(),rme=Object.keys(Sz),Cz=["drawline","drawopenpath","drawclosedpath","drawcircle","drawrect","eraseshape"],Dz=["v1hovermode","hoverclosest","hovercompare","togglehover","togglespikelines"].concat(Cz,["downloadJson"]),wh=[],tme=function(e){if(Dz.indexOf(e._cat||e.name)===-1){var r=e.name,t=(e._cat||e.name).toLowerCase();wh.indexOf(r)===-1&&wh.push(r),wh.indexOf(t)===-1&&wh.push(t)}};rme.forEach(function(e){tme(Sz[e])});wh.sort();Lz.exports={DRAW_MODES:Cz,backButtons:Dz,foreButtons:wh}});var P8={};Ja(P8,{default:()=>nme});var R8,ame,nme,N8=Za(()=>{"use strict";R8=h2(F8()),ame={editType:"modebar",orientation:{valType:"enumerated",values:["v","h"],dflt:"h",editType:"modebar",description:"Sets the orientation of the modebar."},bgcolor:{valType:"color",editType:"modebar",description:"Sets the background color of the modebar."},color:{valType:"color",editType:"modebar",description:"Sets the color of the icons in the modebar."},activecolor:{valType:"color",editType:"modebar",description:"Sets the color of the active or hovered on icons in the modebar."},uirevision:{valType:"any",editType:"none",description:["Controls persistence of user-driven changes related to the modebar,","including `hovermode`, `dragmode`, and `showspikes` at both the","root level and inside subplots. Defaults to `layout.uirevision`."].join(" ")},add:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar",description:["Determines which predefined modebar buttons to add.","Please note that these buttons will only be shown if they are","compatible with all trace types used in a graph.","Similar to `config.modeBarButtonsToAdd` option.",`This may include *${R8.default.backButtons.join("*, *")}*.`].join(" ")},remove:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar",description:["Determines which predefined modebar buttons to remove.","Similar to `config.modeBarButtonsToRemove` option.",`This may include *${R8.default.foreButtons.join("*, *")}*.`].join(" ")}},nme=ame});var qz=B((OFe,Ez)=>{"use strict";var ime=nr(),_1=Kt(),ome=Ra(),lme=(N8(),vr(P8)).default;Ez.exports=function(r,t){var a=r.modebar||{},n=ome.newContainer(t,"modebar");function i(l,s){return ime.coerce(a,n,lme,l,s)}i("orientation"),i("bgcolor",_1.addOpacity(t.paper_bgcolor,.5));var o=_1.contrast(_1.rgb(t.modebar.bgcolor));i("color",_1.addOpacity(o,.3)),i("activecolor",_1.addOpacity(o,.7)),i("uirevision",t.uirevision),i("add"),i("remove")}});var Nz=B((HFe,Pz)=>{"use strict";var z8=ia(),sme=ca(),F3=nr(),Fz=p3(),ume=d2().version,fme=new DOMParser;function Rz(e){this.container=e.container,this.element=document.createElement("div"),this.update(e.graphInfo,e.buttons),this.container.appendChild(this.element)}var ks=Rz.prototype;ks.update=function(e,r){this.graphInfo=e;var t=this.graphInfo._context,a=this.graphInfo._fullLayout,n="modebar-"+a._uid;this.element.setAttribute("id",n),this.element.setAttribute("role","toolbar"),this._uid=n,this.element.className="modebar modebar--custom",t.displayModeBar==="hover"&&(this.element.className+=" modebar--hover ease-bg"),a.modebar.orientation==="v"&&(this.element.className+=" vertical",r=r.reverse());var i=a.modebar,o="#"+n+" .modebar-group";document.querySelectorAll(o).forEach(function(c){c.style.backgroundColor=i.bgcolor});var l=!this.hasButtons(r),s=this.hasLogo!==t.displaylogo,u=this.locale!==t.locale;if(this.locale=t.locale,(l||s||u)&&(this.removeAllButtons(),this.updateButtons(r),t.watermark||t.displaylogo)){var f=this.getLogo();t.watermark&&(f.className=f.className+" watermark"),a.modebar.orientation==="v"?this.element.insertBefore(f,this.element.childNodes[0]):this.element.appendChild(f),this.hasLogo=!0}this.updateActiveButton(),F3.setStyleOnHover("#"+n+" .modebar-btn",".active",".icon path","fill: "+i.activecolor,"fill: "+i.color,this.element)};ks.updateButtons=function(e){var r=this;this.buttons=e,this.buttonElements=[],this.buttonsNames=[],this.buttons.forEach(function(t){var a=r.createGroup();t.forEach(function(n){var i=n.name;if(!i)throw new Error("must provide button 'name' in button config");if(r.buttonsNames.indexOf(i)!==-1)throw new Error("button name '"+i+"' is taken");r.buttonsNames.push(i);var o=r.createButton(n);r.buttonElements.push(o),a.appendChild(o)}),r.element.appendChild(a)})};ks.createGroup=function(){var e=document.createElement("div");e.className="modebar-group";var r=this.graphInfo._fullLayout.modebar;return e.style.backgroundColor=r.bgcolor,e};ks.createButton=function(e){var r=this,t=document.createElement("button");t.setAttribute("type","button"),t.setAttribute("rel","tooltip"),t.className="modebar-btn";var a=e.title;a===void 0?a=e.name:typeof a=="function"&&(a=a(this.graphInfo)),(a||a===0)&&(t.setAttribute("data-title",a),t.setAttribute("aria-label",a)),e.attr!==void 0&&t.setAttribute("data-attr",e.attr);var n=e.val;n!==void 0&&(typeof n=="function"&&(n=n(this.graphInfo)),t.setAttribute("data-val",n));var i=e.click;if(typeof i!="function")throw new Error("must provide button 'click' function in button config");t.addEventListener("click",function(l){e.click(r.graphInfo,l),r.updateActiveButton(l.currentTarget)}),t.setAttribute("data-toggle",e.toggle||!1),e.toggle&&z8.select(t).classed("active",!0);var o=e.icon;return typeof o=="function"?t.appendChild(o()):t.appendChild(this.createIcon(o||Fz.question)),t.setAttribute("data-gravity",e.gravity||"n"),t};ks.createIcon=function(e){var r=sme(e.height)?Number(e.height):e.ascent-e.descent,t="http://www.w3.org/2000/svg",a;if(e.path){a=document.createElementNS(t,"svg"),a.setAttribute("viewBox",[0,0,e.width,r].join(" ")),a.setAttribute("class","icon");var n=document.createElementNS(t,"path");n.setAttribute("d",e.path),e.transform?n.setAttribute("transform",e.transform):e.ascent!==void 0&&n.setAttribute("transform","matrix(1 0 0 -1 0 "+e.ascent+")"),a.appendChild(n)}if(e.svg){var i=fme.parseFromString(e.svg,"application/xml");a=i.childNodes[0]}return a.setAttribute("height","1em"),a.setAttribute("width","1em"),a};ks.updateActiveButton=function(e){var r=this.graphInfo._fullLayout,t=e!==void 0?e.getAttribute("data-attr"):null;this.buttonElements.forEach(function(a){var n=a.getAttribute("data-val")||!0,i=a.getAttribute("data-attr"),o=a.getAttribute("data-toggle")==="true",l=z8.select(a),s=function(c,v){var d=r.modebar,p=c.querySelector(".icon path");p&&(v||c.matches(":hover")?p.style.fill=d.activecolor:p.style.fill=d.color)};if(o){if(i===t){var u=!l.classed("active");l.classed("active",u),s(a,u)}}else{var f=i===null?i:F3.nestedProperty(r,i).get();l.classed("active",f===n),s(a,f===n)}})};ks.hasButtons=function(e){var r=this.buttons;if(!r||e.length!==r.length)return!1;for(var t=0;t{"use strict";var hme=fn(),zz=yi(),B8=Pt(),dme=ps().isUnifiedHover,pme=Nz(),R3=q8(),mme=F8().DRAW_MODES,yme=nr().extendDeep;Bz.exports=function(r){var t=r._fullLayout,a=r._context,n=t._modeBar;if(!a.displayModeBar&&!a.watermark){n&&(n.destroy(),delete t._modeBar);return}if(!Array.isArray(a.modeBarButtonsToRemove))throw new Error(["*modeBarButtonsToRemove* configuration options","must be an array."].join(" "));if(!Array.isArray(a.modeBarButtonsToAdd))throw new Error(["*modeBarButtonsToAdd* configuration options","must be an array."].join(" "));var i=a.modeBarButtons,o;Array.isArray(i)&&i.length?o=Ame(i):!a.displayModeBar&&a.watermark?o=[]:o=gme(r),n?n.update(r,o):t._modeBar=pme(r,o)};function gme(e){var r=e._fullLayout,t=e._fullData,a=e._context;function n(U,G){if(typeof G=="string"){if(G.toLowerCase()===U.toLowerCase())return!0}else{var W=G.name,j=G._cat||G.name;if(W===U||j===U.toLowerCase())return!0}return!1}var i=r.modebar.add;typeof i=="string"&&(i=[i]);var o=r.modebar.remove;typeof o=="string"&&(o=[o]);var l=a.modeBarButtonsToAdd.concat(i.filter(function(U){for(var G=0;G1?(E=["toggleHover"],F=["resetViews"]):c?(C=["zoomInGeo","zoomOutGeo"],E=["hoverClosestGeo"],F=["resetGeo"]):f?(E=["hoverClosest3d"],F=["resetCameraDefault3d","resetCameraLastSave3d"]):y?(C=["zoomInMap","zoomOutMap"],E=["toggleHover"],F=["resetViewMap"]):v?E=["hoverClosestPie"]:T?(E=["hoverClosestCartesian","hoverCompareCartesian"],F=["resetViewSankey"]):E=["toggleHover"],u&&E.push("toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"),(_me(t)||x)&&(E=[]),u&&!_&&(C=["zoomIn2d","zoomOut2d","autoScale2d"],F[0]!=="resetViews"&&(F=["resetScale2d"])),f?P=["zoom3d","pan3d","orbitRotation","tableRotation"]:u&&!_||p?P=["zoom2d","pan2d"]:y||c?P=["pan2d"]:m&&(P=["zoom2d"]),xme(t)&&P.push("select2d","lasso2d");var q=[],z=function(U){q.indexOf(U)===-1&&E.indexOf(U)!==-1&&q.push(U)};if(Array.isArray(l)){for(var I=[],Y=0;Y{"use strict";Oz.exports={moduleType:"component",name:"modebar",layoutAttributes:(N8(),vr(P8)).default,supplyLayoutDefaults:qz(),manage:Iz()}});var O8=B((YFe,Hz)=>{"use strict";var Tme=(Ni(),vr(Pi)).FROM_BL;Hz.exports=function(r,t,a){a===void 0&&(a=Tme[r.constraintoward||"center"]);var n=[r.r2l(r.range[0]),r.r2l(r.range[1])],i=n[0]+(n[1]-n[0])*a;r.range=r._input.range=[r.l2r(i+(n[0]-i)*t),r.l2r(i+(n[1]-i)*t)],r.setScale()}});var A1=B(w1=>{"use strict";var dc=nr(),H8=lh(),Il=fn().id2name,Mme=tl(),Uz=O8(),kme=Hg(),Sme=(In(),vr(Wn)).ALMOST_EQUAL,Cme=(Ni(),vr(Pi)).FROM_BL;w1.handleDefaults=function(e,r,t){var a=t.axIds,n=t.axHasImage,i=r._axisConstraintGroups=[],o=r._axisMatchGroups=[],l,s,u,f,c,v,d,p;for(l=0;li?t.slice(i):a.slice(n))+o}function Lme(e,r){for(var t=r._size,a=t.h/t.w,n={},i=Object.keys(e),o=0;oSme*p&&!T)){for(i=0;iq&&WF&&(F=W);var ae=(F-E)/(2*P);c/=ae,E=s.l2r(E),F=s.l2r(F),s.range=s._input.range=k{"use strict";var N3=ia(),Ji=Pt(),Uo=oi(),ol=nr(),Y8=Mi(),V8=d3(),T1=Kt(),Ah=Ca(),Xz=a1(),$z=I8(),M1=Qa(),du=(Ni(),vr(Pi)),Kz=A1(),Eme=Kz.enforce,qme=Kz.clean,Wz=lh().doAutoRange,Qz="start",Fme="middle",eB="end",Rme=(jn(),vr(Jn)).zindexSeparator;si.layoutStyles=function(e){return ol.syncOrAsync([Uo.doAutoMargin,Nme],e)};function Pme(e,r,t){for(var a=0;a=e[1]||n[1]<=e[0])&&i[0]r[0])return!0}return!1}function Nme(e){var r=e._fullLayout,t=r._size,a=t.p,n=M1.list(e,"",!0),i,o,l,s,u,f;if(r._paperdiv.style({width:e._context.responsive&&r.autosize&&!e._context._hasZeroWidth&&!e.layout.width?"100%":r.width+"px",height:e._context.responsive&&r.autosize&&!e._context._hasZeroHeight&&!e.layout.height?"100%":r.height+"px"}).selectAll(".main-svg").call(Ah.setSize,r.width,r.height),e._context.setBackground(e,r.paper_bgcolor),si.drawMainTitle(e),$z.manage(e),!r._has("cartesian"))return Uo.previousPromises(e);function c(ge,Ne,ir){var qe=ge._lw/2;if(ge._id.charAt(0)==="x"){if(Ne){if(ir==="top")return Ne._offset-a-qe}else return t.t+t.h*(1-(ge.position||0))+qe%1;return Ne._offset+Ne._length+a+qe}if(Ne){if(ir==="right")return Ne._offset+Ne._length+a+qe}else return t.l+t.w*(ge.position||0)+qe%1;return Ne._offset-a-qe}for(i=0;i0){Ome(e,i,u,s),l.attr({x:o,y:i,"text-anchor":a,dy:jz(r.yanchor)}).call(Y8.positionText,o,i);var f=(r.text.match(Y8.BR_TAG_ALL)||[]).length;if(f){var c=du.LINE_SPACING*f+du.MID_SHIFT;r.y===0&&(c=-c),l.selectAll(".line").each(function(){var m=+this.getAttribute("dy").slice(0,-2)-c+"em";this.setAttribute("dy",m)})}var v=N3.select(e).selectAll(".gtitle-subtitle");if(v.node()){var d=l.node().getBBox(),p=d.y+d.height,y=p+Xz.SUBTITLE_PADDING_EM*r.subtitle.font.size;v.attr({x:o,y,"text-anchor":a,dy:jz(r.yanchor)}).call(Y8.positionText,o,y)}}}};function zme(e,r,t,a,n){var i=r.yref==="paper"?e._fullLayout._size.h:e._fullLayout.height,o=ol.isTopAnchor(r)?a:a-n,l=t==="b"?i-o:o;return ol.isTopAnchor(r)&&t==="t"||ol.isBottomAnchor(r)&&t==="b"?!1:l.5?"t":"b",o=e._fullLayout.margin[i],l=0;return r.yref==="paper"?l=t+r.pad.t+r.pad.b:r.yref==="container"&&(l=Bme(i,a,n,e._fullLayout.height,t)+r.pad.t+r.pad.b),l>o?l:0}function Ome(e,r,t,a){var n="title.automargin",i=e._fullLayout.title,o=i.y>.5?"t":"b",l={x:i.x,y:i.y,t:0,b:0},s={};i.yref==="paper"&&zme(e,i,o,r,a)?l[o]=t:i.yref==="container"&&(s[o]=t,e._fullLayout._reservedMargin[n]=s),Uo.allowAutoMargin(e,n),Uo.autoMargin(e,n,l)}function Hme(e,r){var t=e.title,a=e._size,n=0;return r===Qz?n=t.pad.l:r===eB&&(n=-t.pad.r),t.xref==="paper"?a.l+a.w*t.x+n:e.width*t.x+n}function Ume(e,r){var t=e.title,a=e._size,n=0;return r==="0em"||!r?n=-t.pad.b:r===du.CAP_SHIFT+"em"&&(n=t.pad.t),t.y==="auto"?a.t/2:t.yref==="paper"?a.t+a.h-a.h*t.y+n:e.height-e.height*t.y+n}function jz(e){return e==="top"?du.CAP_SHIFT+.3+"em":e==="bottom"?"-0.3em":du.MID_SHIFT+"em"}function Gme(e){var r=e.title,t=Fme;return ol.isRightAnchor(r)?t=eB:ol.isLeftAnchor(r)&&(t=Qz),t}function Yme(e){var r=e.title,t="0em";return ol.isTopAnchor(r)?t=du.CAP_SHIFT+"em":ol.isMiddleAnchor(r)&&(t=du.MID_SHIFT+"em"),t}si.doTraceStyle=function(e){var r=e.calcdata,t=[],a;for(a=0;a{"use strict";var Vme=kf().readPaths,Xme=M3(),rB=hf().clearOutlineControllers,X8=Kt(),tB=Ca(),Wme=Ra().arrayEditor,aB=Df(),Zme=aB.getPathString;iB.exports={draw:B3,drawOne:nB,activateLastSelection:$me};function B3(e){var r=e._fullLayout;rB(e),r._selectionLayer.selectAll("path").remove();for(var t in r._plots){var a=r._plots[t].selectionLayer;a&&a.selectAll("path").remove()}for(var n=0;n=0;m--){var b=o.append("path").attr(s).style("opacity",m?.1:u).call(X8.stroke,c).call(X8.fill,f).call(tB.dashLine,m?"solid":d,m?4+v:v);if(Jme(b,e,a),p){var T=Wme(e.layout,"selections",a);b.style({cursor:"move"});var _={element:b.node(),plotinfo:n,gd:e,editHelpers:T,isActiveSelection:!0},x=Vme(l,e);Xme(x,b,_)}else b.style("pointer-events",m?"all":"none");y[m]=b}var w=y[0],k=y[1];k.node().addEventListener("click",function(){return jme(e,w)})}}function Jme(e,r,t){var a=t.xref+t.yref;tB.setClipUrl(e,"clip"+r._fullLayout._uid+a,r)}function jme(e,r){if(I3(e)){var t=r.node(),a=+t.getAttribute("data-index");if(a>=0){if(a===e._fullLayout._activeSelectionIndex){W8(e);return}e._fullLayout._activeSelectionIndex=a,e._fullLayout._deactivateSelection=W8,B3(e)}}}function $me(e){if(I3(e)){var r=e._fullLayout.selections.length-1;e._fullLayout._activeSelectionIndex=r,e._fullLayout._deactivateSelection=W8,B3(e)}}function W8(e){if(I3(e)){var r=e._fullLayout._activeSelectionIndex;r>=0&&(rB(e),delete e._fullLayout._activeSelectionIndex,B3(e))}}});var lB=B((ZFe,oB)=>{function Kme(){var e,r=0,t=!1;function a(n,i){return e.list.push({type:n,data:i?JSON.parse(JSON.stringify(i)):void 0}),e}return e={list:[],segmentId:function(){return r++},checkIntersection:function(n,i){return a("check",{seg1:n,seg2:i})},segmentChop:function(n,i){return a("div_seg",{seg:n,pt:i}),a("chop",{seg:n,pt:i})},statusRemove:function(n){return a("pop_seg",{seg:n})},segmentUpdate:function(n){return a("seg_update",{seg:n})},segmentNew:function(n,i){return a("new_seg",{seg:n,primary:i})},segmentRemove:function(n){return a("rem_seg",{seg:n})},tempStatus:function(n,i,o){return a("temp_status",{seg:n,above:i,below:o})},rewind:function(n){return a("rewind",{seg:n})},status:function(n,i,o){return a("status",{seg:n,above:i,below:o})},vert:function(n){return n===t?e:(t=n,a("vert",{x:n}))},log:function(n){return typeof n!="string"&&(n=JSON.stringify(n,!1," ")),a("log",{txt:n})},reset:function(){return a("reset")},selected:function(n){return a("selected",{segs:n})},chainStart:function(n){return a("chain_start",{seg:n})},chainRemoveHead:function(n,i){return a("chain_rem_head",{index:n,pt:i})},chainRemoveTail:function(n,i){return a("chain_rem_tail",{index:n,pt:i})},chainNew:function(n,i){return a("chain_new",{pt1:n,pt2:i})},chainMatch:function(n){return a("chain_match",{index:n})},chainClose:function(n){return a("chain_close",{index:n})},chainAddHead:function(n,i){return a("chain_add_head",{index:n,pt:i})},chainAddTail:function(n,i){return a("chain_add_tail",{index:n,pt:i})},chainConnect:function(n,i){return a("chain_con",{index1:n,index2:i})},chainReverse:function(n){return a("chain_rev",{index:n})},chainJoin:function(n,i){return a("chain_join",{index1:n,index2:i})},done:function(){return a("done")}},e}oB.exports=Kme});var uB=B((JFe,sB)=>{function Qme(e){typeof e!="number"&&(e=1e-10);var r={epsilon:function(t){return typeof t=="number"&&(e=t),e},pointAboveOrOnLine:function(t,a,n){var i=a[0],o=a[1],l=n[0],s=n[1],u=t[0],f=t[1];return(l-i)*(f-o)-(s-o)*(u-i)>=-e},pointBetween:function(t,a,n){var i=t[1]-a[1],o=n[0]-a[0],l=t[0]-a[0],s=n[1]-a[1],u=l*o+i*s;if(u-e)},pointsSameX:function(t,a){return Math.abs(t[0]-a[0])e!=l-i>e&&(o-f)*(i-c)/(l-c)+f-n>e&&(s=!s),o=f,l=c}return s}};return r}sB.exports=Qme});var cB=B((jFe,fB)=>{var eye={create:function(){var e={root:{root:!0,next:null},exists:function(r){return!(r===null||r===e.root)},isEmpty:function(){return e.root.next===null},getHead:function(){return e.root.next},insertBefore:function(r,t){for(var a=e.root,n=e.root.next;n!==null;){if(t(n)){r.prev=n.prev,r.next=n,n.prev.next=r,n.prev=r;return}a=n,n=n.next}a.next=r,r.prev=a,r.next=null},findTransition:function(r){for(var t=e.root,a=e.root.next;a!==null&&!r(a);)t=a,a=a.next;return{before:t===e.root?null:t,after:a,insert:function(n){return n.prev=t,n.next=a,t.next=n,a!==null&&(a.prev=n),n}}}};return e},node:function(e){return e.prev=null,e.next=null,e.remove=function(){e.prev.next=e.next,e.next&&(e.next.prev=e.prev),e.prev=null,e.next=null},e}};fB.exports=eye});var hB=B(($Fe,vB)=>{var k1=cB();function rye(e,r,t){function a(p,y){return{id:t?t.segmentId():-1,start:p,end:y,myFill:{above:null,below:null},otherFill:null}}function n(p,y,m){return{id:t?t.segmentId():-1,start:p,end:y,myFill:{above:m.myFill.above,below:m.myFill.below},otherFill:null}}var i=k1.create();function o(p,y,m,b,T,_){var x=r.pointsCompare(y,T);return x!==0?x:r.pointsSame(m,_)?0:p!==b?p?1:-1:r.pointAboveOrOnLine(m,b?T:_,b?_:T)?1:-1}function l(p,y){i.insertBefore(p,function(m){var b=o(p.isStart,p.pt,y,m.isStart,m.pt,m.other.pt);return b<0})}function s(p,y){var m=k1.node({isStart:!0,pt:p.start,seg:p,primary:y,other:null,status:null});return l(m,p.end),m}function u(p,y,m){var b=k1.node({isStart:!1,pt:y.end,seg:y,primary:m,other:p,status:null});p.other=b,l(b,p.pt)}function f(p,y){var m=s(p,y);return u(m,p,y),m}function c(p,y){t&&t.segmentChop(p.seg,y),p.other.remove(),p.seg.end=y,p.other.pt=y,l(p.other,p.pt)}function v(p,y){var m=n(y,p.seg.end,p.seg);return c(p,y),f(m,p.primary)}function d(p,y){var m=k1.create();function b(Y,V){var J=Y.seg.start,U=Y.seg.end,G=V.seg.start,W=V.seg.end;return r.pointsCollinear(J,G,W)?r.pointsCollinear(U,G,W)||r.pointAboveOrOnLine(U,G,W)?1:-1:r.pointAboveOrOnLine(J,G,W)?1:-1}function T(Y){return m.findTransition(function(V){var J=b(Y,V.ev);return J>0})}function _(Y,V){var J=Y.seg,U=V.seg,G=J.start,W=J.end,j=U.start,ae=U.end;t&&t.checkIntersection(J,U);var pe=r.linesIntersect(G,W,j,ae);if(pe===!1){if(!r.pointsCollinear(G,W,j)||r.pointsSame(G,ae)||r.pointsSame(W,j))return!1;var se=r.pointsSame(G,j),we=r.pointsSame(W,ae);if(se&&we)return V;var te=!se&&r.pointBetween(G,j,ae),Ee=!we&&r.pointBetween(W,j,ae);if(se)return Ee?v(V,W):v(Y,ae),V;te&&(we||(Ee?v(V,W):v(Y,ae)),v(V,G))}else pe.alongA===0&&(pe.alongB===-1?v(Y,j):pe.alongB===0?v(Y,pe.pt):pe.alongB===1&&v(Y,ae)),pe.alongB===0&&(pe.alongA===-1?v(V,G):pe.alongA===0?v(V,pe.pt):pe.alongA===1&&v(V,W));return!1}for(var x=[];!i.isEmpty();){var w=i.getHead();if(t&&t.vert(w.pt[0]),w.isStart){let Y=function(){if(M){var V=_(w,M);if(V)return V}return C?_(w,C):!1};var I=Y;t&&t.segmentNew(w.seg,w.primary);var k=T(w),M=k.before?k.before.ev:null,C=k.after?k.after.ev:null;t&&t.tempStatus(w.seg,M?M.seg:!1,C?C.seg:!1);var E=Y();if(E){if(e){var F;w.seg.myFill.below===null?F=!0:F=w.seg.myFill.above!==w.seg.myFill.below,F&&(E.seg.myFill.above=!E.seg.myFill.above)}else E.seg.otherFill=w.seg.myFill;t&&t.segmentUpdate(E.seg),w.other.remove(),w.remove()}if(i.getHead()!==w){t&&t.rewind(w.seg);continue}if(e){var F;w.seg.myFill.below===null?F=!0:F=w.seg.myFill.above!==w.seg.myFill.below,C?w.seg.myFill.below=C.seg.myFill.above:w.seg.myFill.below=p,F?w.seg.myFill.above=!w.seg.myFill.below:w.seg.myFill.above=w.seg.myFill.below}else if(w.seg.otherFill===null){var P;C?w.primary===C.primary?P=C.seg.otherFill.above:P=C.seg.myFill.above:P=w.primary?y:p,w.seg.otherFill={above:P,below:P}}t&&t.status(w.seg,M?M.seg:!1,C?C.seg:!1),w.other.status=k.insert(k1.node({ev:w}))}else{var q=w.status;if(q===null)throw new Error("PolyBool: Zero-length segment detected; your epsilon is probably too small or too large");if(m.exists(q.prev)&&m.exists(q.next)&&_(q.prev.ev,q.next.ev),t&&t.statusRemove(q.ev.seg),q.remove(),!w.primary){var z=w.seg.myFill;w.seg.myFill=w.seg.otherFill,w.seg.otherFill=z}x.push(w.seg)}i.getHead().remove()}return t&&t.done(),x}return e?{addRegion:function(p){for(var y,m=p[p.length-1],b=0;b{function tye(e,r,t){var a=[],n=[];return e.forEach(function(i){var o=i.start,l=i.end;if(r.pointsSame(o,l)){console.warn("PolyBool: Warning: Zero-length segment detected; your epsilon is probably too small or too large");return}t&&t.chainStart(i);var s={index:0,matches_head:!1,matches_pt1:!1},u={index:0,matches_head:!1,matches_pt1:!1},f=s;function c(I,Y,V){return f.index=I,f.matches_head=Y,f.matches_pt1=V,f===s?(f=u,!1):(f=null,!0)}for(var v=0;v{function S1(e,r,t){var a=[];return e.forEach(function(n){var i=(n.myFill.above?8:0)+(n.myFill.below?4:0)+(n.otherFill&&n.otherFill.above?2:0)+(n.otherFill&&n.otherFill.below?1:0);r[i]!==0&&a.push({id:t?t.segmentId():-1,start:n.start,end:n.end,myFill:{above:r[i]===1,below:r[i]===2},otherFill:null})}),t&&t.selected(a),a}var aye={union:function(e,r){return S1(e,[0,2,1,0,2,2,0,0,1,0,1,0,0,0,0,0],r)},intersect:function(e,r){return S1(e,[0,0,0,0,0,2,0,2,0,0,1,1,0,2,1,0],r)},difference:function(e,r){return S1(e,[0,0,0,0,2,0,2,0,1,1,0,0,0,1,2,0],r)},differenceRev:function(e,r){return S1(e,[0,2,1,0,0,0,1,1,0,2,0,2,0,0,0,0],r)},xor:function(e,r){return S1(e,[0,2,1,0,2,0,0,1,1,0,0,2,0,1,2,0],r)}};mB.exports=aye});var bB=B((eRe,gB)=>{var nye={toPolygon:function(e,r){function t(i){if(i.length<=0)return e.segments({inverted:!1,regions:[]});function o(u){var f=u.slice(0,u.length-1);return e.segments({inverted:!1,regions:[f]})}for(var l=o(i[0]),s=1;s{var iye=lB(),oye=uB(),xB=hB(),lye=pB(),C1=yB(),_B=bB(),ll=!1,D1=oye(),Ao;Ao={buildLog:function(e){return e===!0?ll=iye():e===!1&&(ll=!1),ll===!1?!1:ll.list},epsilon:function(e){return D1.epsilon(e)},segments:function(e){var r=xB(!0,D1,ll);return e.regions.forEach(r.addRegion),{segments:r.calculate(e.inverted),inverted:e.inverted}},combine:function(e,r){var t=xB(!1,D1,ll);return{combined:t.calculate(e.segments,e.inverted,r.segments,r.inverted),inverted1:e.inverted,inverted2:r.inverted}},selectUnion:function(e){return{segments:C1.union(e.combined,ll),inverted:e.inverted1||e.inverted2}},selectIntersect:function(e){return{segments:C1.intersect(e.combined,ll),inverted:e.inverted1&&e.inverted2}},selectDifference:function(e){return{segments:C1.difference(e.combined,ll),inverted:e.inverted1&&!e.inverted2}},selectDifferenceRev:function(e){return{segments:C1.differenceRev(e.combined,ll),inverted:!e.inverted1&&e.inverted2}},selectXor:function(e){return{segments:C1.xor(e.combined,ll),inverted:e.inverted1!==e.inverted2}},polygon:function(e){return{regions:lye(e.segments,D1,ll),inverted:e.inverted}},polygonFromGeoJSON:function(e){return _B.toPolygon(Ao,e)},polygonToGeoJSON:function(e){return _B.fromPolygon(Ao,D1,e)},union:function(e,r){return L1(e,r,Ao.selectUnion)},intersect:function(e,r){return L1(e,r,Ao.selectIntersect)},difference:function(e,r){return L1(e,r,Ao.selectDifference)},differenceRev:function(e,r){return L1(e,r,Ao.selectDifferenceRev)},xor:function(e,r){return L1(e,r,Ao.selectXor)}};function L1(e,r,t){var a=Ao.segments(e),n=Ao.segments(r),i=Ao.combine(a,n),o=t(i);return Ao.polygon(o)}typeof window=="object"&&(window.PolyBool=Ao);wB.exports=Ao});var MB=B((tRe,TB)=>{TB.exports=function(r,t,a,n){var i=r[0],o=r[1],l=!1;a===void 0&&(a=0),n===void 0&&(n=t.length);for(var s=n-a,u=0,f=s-1;uo!=p>o&&i<(d-c)*(o-v)/(p-v)+c;y&&(l=!l)}return l}});var j8=B((aRe,kB)=>{"use strict";var J8=Yy().dot,O3=(In(),vr(Wn)).BADNUM,H3=kB.exports={};H3.tester=function(r){var t=r.slice(),a=t[0][0],n=a,i=t[0][1],o=i,l;for((t[t.length-1][0]!==t[0][0]||t[t.length-1][1]!==t[0][1])&&t.push(t[0]),l=1;ln||b===O3||bo||y&&u(p))}function c(p,y){var m=p[0],b=p[1];if(m===O3||mn||b===O3||bo)return!1;var T=t.length,_=t[0][0],x=t[0][1],w=0,k,M,C,E,F;for(k=1;kMath.max(M,_)||b>Math.max(C,x)))if(bl||Math.abs(J8(c,u))>n)return!0;return!1};H3.filter=function(r,t){var a=[r[0]],n=0,i=0;function o(s){r.push(s);var u=a.length,f=n;a.splice(i+1);for(var c=f+1;c1){var l=r.pop();o(l)}return{addPt:o,raw:r,filtered:a}}});var SB={};Ja(SB,{BENDPX:()=>sye,MINSELECT:()=>uye,SELECTDELAY:()=>fye,SELECTID:()=>cye});var sye,uye,fye,cye,CB=Za(()=>{"use strict";sye=1.5,uye=12,fye=100,cye="-select"});var jB=B((nRe,JB)=>{"use strict";var DB=AB(),vye=MB(),F1=Pt(),hye=Ca().dashStyle,E1=Kt(),dye=cu(),pye=ps().makeEventData,B1=Mf(),mye=B1.freeMode,yye=B1.rectMode,R1=B1.drawMode,ew=B1.openMode,rw=B1.selectMode,LB=Df(),EB=(b1(),vr(g1)),NB=M3(),zB=hf().clearOutline,BB=kf(),$8=BB.handleEllipse,gye=BB.readPaths,bye=w3().newShapes,xye=w8(),_ye=Z8().activateLastSelection,G3=nr(),wye=G3.sorterAsc,IB=j8(),q1=ig(),sl=fn().getFromId,Aye=d3(),Tye=z3().redrawReglTraces,Y3=(CB(),vr(SB)),Ss=Y3.MINSELECT,Mye=IB.filter,tw=IB.tester,aw=g3(),qB=aw.p2r,kye=aw.axValue,Sye=aw.getTransform;function nw(e){return e.subplot!==void 0}function Cye(e,r,t,a,n){var i=!nw(a),o=mye(n),l=yye(n),s=ew(n),u=R1(n),f=rw(n),c=n==="drawline",v=n==="drawcircle",d=c||v,p=a.gd,y=p._fullLayout,m=f&&y.newselection.mode==="immediate"&&i,b=y._zoomlayer,T=a.element.getBoundingClientRect(),_=a.plotinfo,x=Sye(_),w=r-T.left,k=t-T.top;y._calcInverseTransform(p);var M=G3.apply3DTransform(y._invTransform)(w,k);w=M[0],k=M[1];var C=y._invScaleX,E=y._invScaleY,F=w,P=k,q="M"+w+","+k,z=a.xaxes[0],I=a.yaxes[0],Y=z._length,V=I._length,J=e.altKey&&!(R1(n)&&s),U,G,W,j,ae,pe,se;HB(e,p,a),o&&(U=Mye([[w,k]],Y3.BENDPX));var we=b.selectAll("path.select-outline-"+_.id).data([1]),te=u?y.newshape:y.newselection;u&&(a.hasText=te.label.text||te.label.texttemplate);var Ee=u&&!s?te.fillcolor:"rgba(0,0,0,0)",de=te.line.color||(i?E1.contrast(p._fullLayout.plot_bgcolor):"#7f7f7f");we.enter().append("path").attr("class","select-outline select-outline-"+_.id).style({opacity:u?te.opacity/2:1,"stroke-dasharray":hye(te.line.dash,te.line.width),"stroke-width":te.line.width+"px","shape-rendering":"crispEdges"}).call(E1.stroke,de).call(E1.fill,Ee).attr("fill-rule","evenodd").classed("cursor-move",!!u).attr("transform",x).attr("d",q+"Z");var Ae=b.append("path").attr("class","zoombox-corners").style({fill:E1.background,stroke:E1.defaultLine,"stroke-width":1}).attr("transform",x).attr("d","M0,0Z");if(u&&a.hasText){var Ue=b.select(".label-temp");Ue.empty()&&(Ue=b.append("g").classed("label-temp",!0).classed("select-outline",!0).style({opacity:.8}))}var ge=y._uid+Y3.SELECTID,Ne=[],ir=V3(p,a.xaxes,a.yaxes,a.subplot);m&&!e.shiftKey&&(a._clearSubplotSelections=function(){if(i){var Ve=z._id,Qe=I._id;XB(p,Ve,Qe,ir);for(var er=(p.layout||{}).selections||[],rr=[],yr=!1,Ge=0;Ge=0){p._fullLayout._deactivateShape(p);return}if(!u){var er=y.clickmode;q1.done(ge).then(function(){if(q1.clear(ge),Ve===2){for(we.remove(),ae=0;ae-1&&OB(Qe,p,a.xaxes,a.yaxes,a.subplot,a,we),er==="event"&&z1(p,void 0);dye.click(p,Qe,_.id)}).catch(G3.error)}},a.doneFn=function(){Ae.remove(),q1.done(ge).then(function(){q1.clear(ge),!m&&j&&a.selectionDefs&&(j.subtract=J,a.selectionDefs.push(j),a.mergedPolygons.length=0,[].push.apply(a.mergedPolygons,W)),(m||u)&&P1(a,m),a.doneFnCompleted&&a.doneFnCompleted(Ne),f&&z1(p,se)}).catch(G3.error)}}function OB(e,r,t,a,n,i,o){var l=r._hoverdata,s=r._fullLayout,u=s.clickmode,f=u.indexOf("event")>-1,c=[],v,d,p,y,m,b,T,_,x,w;if(Fye(l)){HB(e,r,i),v=V3(r,t,a,n);var k=Rye(l,v),M=k.pointNumbers.length>0;if(M?Pye(v,k):Nye(v)&&(T=RB(k))){for(o&&o.remove(),w=0;w=0}function qye(e){return e._fullLayout._activeSelectionIndex>=0}function P1(e,r){var t=e.dragmode,a=e.plotinfo,n=e.gd;Eye(n)&&n._fullLayout._deactivateShape(n),qye(n)&&n._fullLayout._deactivateSelection(n);var i=n._fullLayout,o=i._zoomlayer,l=R1(t),s=rw(t);if(l||s){var u=o.selectAll(".select-outline-"+a.id);if(u&&n._fullLayout._outlining){var f;l&&(f=bye(u,e)),f&&F1.call("_guiRelayout",n,{shapes:f});var c;s&&!nw(e)&&(c=xye(u,e)),c&&(n._fullLayout._noEmitSelectedAtStart=!0,F1.call("_guiRelayout",n,{selections:c}).then(function(){r&&_ye(n)})),n._fullLayout._outlining=!1}}a.selection={},a.selection.selectionDefs=e.selectionDefs=[],a.selection.mergedPolygons=e.mergedPolygons=[]}function FB(e){return e._id}function V3(e,r,t,a){if(!e.calcdata)return[];var n=[],i=r.map(FB),o=t.map(FB),l,s,u;for(u=0;u0,i=n?a[0]:t;return r.selectedpoints?r.selectedpoints.indexOf(i)>-1:!1}function Pye(e,r){var t=[],a,n,i,o;for(o=0;o0&&t.push(a);if(t.length===1&&(i=t[0]===r.searchInfo,i&&(n=r.searchInfo.cd[0].trace,n.selectedpoints.length===r.pointNumbers.length))){for(o=0;o1||(r+=a.selectedpoints.length,r>1)))return!1;return r===1}function N1(e,r,t){var a,n;for(a=0;a-1&&r;if(!o&&r){var Ve=PB(e,!0);if(Ve.length){var Qe=Ve[0].xref,er=Ve[0].yref;if(Qe&&er){var rr=WB(Ve),yr=ZB([sl(e,Qe,"x"),sl(e,er,"y")]);yr(Ne,rr)}}e._fullLayout._noEmitSelectedAtStart?e._fullLayout._noEmitSelectedAtStart=!1:qe&&z1(e,Ne),v._reselect=!1}if(!o&&v._deselect){var Ge=v._deselect;l=Ge.xref,s=Ge.yref,Iye(l,s,f)||XB(e,l,s,a),qe&&(Ne.points.length?z1(e,Ne):lw(e)),v._deselect=!1}return{eventData:Ne,selectionTesters:t}}function Bye(e){var r=e.calcdata;if(r)for(var t=0;t{"use strict";$B.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}]});var I1={};Ja(I1,{axisRefDescription:()=>Yye});function Yye(e,r,t){return[`If set to a ${e} axis id (e.g. *${e}* or *${e}2*),`,`the \`${e}\` position refers to a ${e} coordinate.`,`If set to *paper*, the \`${e}\` position refers to the distance from the`,`${r} of the plotting area in normalized coordinates where *0* (*1*) corresponds`,`to the ${r} (${t}). If set to a ${e} 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 ${r} of the domain of that`,`axis: e.g., *${e}2 domain* refers to the domain of the second ${e}`,`axis and a ${e} position of 0.5 refers to the point between the ${r}`,`and the ${t} of the domain of the second ${e} axis.`].join(" ")}var O1=Za(()=>{"use strict"});var Th=B((lRe,eI)=>{"use strict";var KB=sw(),QB=Ai(),X3=(jn(),vr(Jn)),Vye=Ra().templatedArray,oRe=(O1(),vr(I1));eI.exports=Vye("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:QB({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:KB.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:KB.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",X3.idRegex.x.toString()],editType:"calc"},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",X3.idRegex.y.toString()],editType:"calc"},xref:{valType:"enumerated",values:["paper",X3.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",X3.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:QB({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc"})});var H1={};Ja(H1,{PTS_LINESONLY:()=>Xye,eventDataKeys:()=>jye,maxScreensAway:()=>Jye,minTolerance:()=>Wye,toleranceGrowth:()=>Zye});var Xye,Wye,Zye,Jye,jye,U1=Za(()=>{"use strict";Xye=20,Wye=.2,Zye=10,Jye=20,jye=[]});var uw=B((sRe,rI)=>{"use strict";rI.exports=function(r){return{valType:"color",editType:"style",anim:!0}}});var Ef=B((uRe,uI)=>{"use strict";var tI=Q2().axisHoverFormat,{hovertemplateAttrs:$ye,texttemplateAttrs:Kye,templatefallbackAttrs:aI}=Iv(),nI=j0(),Qye=Ai(),iI=af().dash,ege=af().pattern,rge=Ca(),tge=(U1(),vr(H1)),G1=Sn().extendFlat,age=uw();function oI(e){return{valType:"any",dflt:0,editType:"calc"}}function lI(e){return{valType:"any",editType:"calc"}}function sI(e){return{valType:"enumerated",values:["start","middle","end"],dflt:"middle",editType:"calc"}}uI.exports={x:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0},x0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",anim:!0},dx:{valType:"number",dflt:1,editType:"calc",anim:!0},y:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0},y0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",anim:!0},dy:{valType:"number",dflt:1,editType:"calc",anim:!0},xperiod:oI("x"),yperiod:oI("y"),xperiod0:lI("x0"),yperiod0:lI("y0"),xperiodalignment:sI("x"),yperiodalignment:sI("y"),xhoverformat:tI("x"),yhoverformat:tI("y"),offsetgroup:{valType:"string",dflt:"",editType:"calc"},alignmentgroup:{valType:"string",dflt:"",editType:"calc"},stackgroup:{valType:"string",dflt:"",editType:"calc"},orientation:{valType:"enumerated",values:["v","h"],editType:"calc"},groupnorm:{valType:"enumerated",values:["","fraction","percent"],dflt:"",editType:"calc"},stackgaps:{valType:"enumerated",values:["infer zero","interpolate"],dflt:"infer zero",editType:"calc"},text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},texttemplate:Kye(),texttemplatefallback:aI({editType:"calc"}),hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"style"},mode:{valType:"flaglist",flags:["lines","markers","text"],extras:["none"],editType:"calc"},hoveron:{valType:"flaglist",flags:["points","fills"],editType:"style"},hovertemplate:$ye({},{keys:tge.eventDataKeys}),hovertemplatefallback:aI(),line:{color:{valType:"color",editType:"style",anim:!0},width:{valType:"number",min:0,dflt:2,editType:"style",anim:!0},shape:{valType:"enumerated",values:["linear","spline","hv","vh","hvh","vhv"],dflt:"linear",editType:"plot"},smoothing:{valType:"number",min:0,max:1.3,dflt:1,editType:"plot"},dash:G1({},iI,{editType:"style"}),backoff:{valType:"number",min:0,dflt:"auto",arrayOk:!0,editType:"plot"},simplify:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},connectgaps:{valType:"boolean",dflt:!1,editType:"calc"},cliponaxis:{valType:"boolean",dflt:!0,editType:"plot"},fill:{valType:"enumerated",values:["none","tozeroy","tozerox","tonexty","tonextx","toself","tonext"],editType:"calc"},fillcolor:age(!0),fillgradient:G1({type:{valType:"enumerated",values:["radial","horizontal","vertical","none"],dflt:"none",editType:"calc"},start:{valType:"number",editType:"calc"},stop:{valType:"number",editType:"calc"},colorscale:{valType:"colorscale",editType:"style"},editType:"calc"}),fillpattern:ege,marker:G1({symbol:{valType:"enumerated",values:rge.symbolList,dflt:"circle",arrayOk:!0,editType:"style"},opacity:{valType:"number",min:0,max:1,arrayOk:!0,editType:"style",anim:!0},angle:{valType:"angle",dflt:0,arrayOk:!0,editType:"plot",anim:!1},angleref:{valType:"enumerated",values:["previous","up"],dflt:"up",editType:"plot",anim:!1},standoff:{valType:"number",min:0,dflt:0,arrayOk:!0,editType:"plot",anim:!0},size:{valType:"number",min:0,dflt:6,arrayOk:!0,editType:"calc",anim:!0},maxdisplayed:{valType:"number",min:0,dflt:0,editType:"plot"},sizeref:{valType:"number",dflt:1,editType:"calc"},sizemin:{valType:"number",min:0,dflt:0,editType:"calc"},sizemode:{valType:"enumerated",values:["diameter","area"],dflt:"diameter",editType:"calc"},line:G1({width:{valType:"number",min:0,arrayOk:!0,editType:"style",anim:!0},dash:G1({},iI,{arrayOk:!0}),editType:"calc"},nI("marker.line",{anim:!0})),gradient:{type:{valType:"enumerated",values:["radial","horizontal","vertical","none"],arrayOk:!0,dflt:"none",editType:"calc"},color:{valType:"color",arrayOk:!0,editType:"calc"},editType:"calc"},editType:"calc"},nI("marker",{anim:!0})),selected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style"},color:{valType:"color",editType:"style"},size:{valType:"number",min:0,editType:"style"},editType:"style"},textfont:{color:{valType:"color",editType:"style"},editType:"style"},editType:"style"},unselected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style"},color:{valType:"color",editType:"style"},size:{valType:"number",min:0,editType:"style"},editType:"style"},textfont:{color:{valType:"color",editType:"style"},editType:"style"},editType:"style"},textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right"],dflt:"middle center",arrayOk:!0,editType:"calc"},textfont:Qye({editType:"calc",colorEditType:"style",arrayOk:!0}),zorder:{valType:"integer",dflt:0,editType:"plot"}}});var fw=B((cRe,vI)=>{"use strict";var fI=Th(),cI=Ef().line,nge=af().dash,W3=Sn().extendFlat,ige=ql().overrideAll,oge=Ra().templatedArray,fRe=(O1(),vr(I1));vI.exports=ige(oge("selection",{type:{valType:"enumerated",values:["rect","path"]},xref:W3({},fI.xref,{}),yref:W3({},fI.yref,{}),x0:{valType:"any"},x1:{valType:"any"},y0:{valType:"any"},y1:{valType:"any"},path:{valType:"string",editType:"arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:.7,editType:"arraydraw"},line:{color:cI.color,width:W3({},cI.width,{min:1,dflt:1}),dash:W3({},nge,{dflt:"dot"})}}),"arraydraw","from-root")});var mI=B((vRe,pI)=>{"use strict";var hI=nr(),Z3=Qa(),lge=Po(),sge=fw(),dI=Df();pI.exports=function(r,t){lge(r,t,{name:"selections",handleItemDefaults:uge});for(var a=t.selections,n=0;n{"use strict";yI.exports=function(r,t,a){a("newselection.mode");var n=a("newselection.line.width");n&&(a("newselection.line.color"),a("newselection.line.dash")),a("activeselection.fillcolor"),a("activeselection.opacity")}});var Y1=B((dRe,_I)=>{"use strict";var fge=Pt(),bI=nr(),xI=fn();_I.exports=function(r){return function(a,n){var i=a[r];if(Array.isArray(i))for(var o=fge.subplotsRegistry.cartesian,l=o.idRegex,s=n._subplots,u=s.xaxis,f=s.yaxis,c=s.cartesian,v=n._has("cartesian"),d=0;d{"use strict";var wI=Z8(),V1=jB();AI.exports={moduleType:"component",name:"selections",layoutAttributes:fw(),supplyLayoutDefaults:mI(),supplyDrawNewSelectionDefaults:gI(),includeBasePlot:Y1()("selections"),draw:wI.draw,drawOne:wI.drawOne,reselect:V1.reselect,prepSelect:V1.prepSelect,clearOutline:V1.clearOutline,clearSelectionsCache:V1.clearSelectionsCache,selectOnClick:V1.selectOnClick}});var GI=B((mRe,UI)=>{"use strict";var mw=ia(),ul=nr(),TI=ul.numberFormat,cge=Y7(),J3=Pt(),qI=ul.strTranslate,vge=Mi(),vw=Kt(),qf=Ca(),hge=cu(),MI=Qa(),dge=Af(),pge=Bl(),FI=Mf(),j3=FI.selectingOrDrawing,mge=FI.freeMode,yge=(Ni(),vr(Pi)).FROM_TL,gge=d3(),bge=z3().redrawReglTraces,xge=oi(),hw=fn().getFromId,_ge=Mh().prepSelect,wge=Mh().clearOutline,Age=Mh().selectOnClick,cw=O8(),yw=(jn(),vr(Jn)),kI=yw.MINDRAG,oo=yw.MINZOOM,SI=!0;function Tge(e,r,t,a,n,i,o,l){var s=e._fullLayout._zoomlayer,u=o+l==="nsew",f=(o+l).length===1,c,v,d,p,y,m,b,T,_,x,w,k,M,C,E,F,P,q,z,I,Y,V,J;t+=r.yaxis._shift;function U(){if(c=r.xaxis,v=r.yaxis,_=c._length,x=v._length,b=c._offset,T=v._offset,d={},d[c._id]=c,p={},p[v._id]=v,o&&l)for(var Me=r.overlays,Fe=0;Fe=0){dr._fullLayout._deactivateShape(dr);return}var kr=dr._fullLayout.clickmode;if(pw(dr),Me===2&&!f&&Ir(),u)kr.indexOf("select")>-1&&Age(Fe,dr,y,m,r.id,j),kr.indexOf("event")>-1&&hge.click(dr,Fe,r.id);else if(Me===1&&f){var fr=o?v:c,_r=o==="s"||l==="w"?0:1,Vr=fr._name+".range["+_r+"]",qr=Mge(fr,_r),Or="left",Ie="middle";if(fr.fixedrange)return;o?(Ie=o==="n"?"top":"bottom",fr.side==="right"&&(Or="right")):l==="e"&&(Or="right"),dr._context.showAxisRangeEntryBoxes&&mw.select(W).call(vge.makeEditable,{gd:dr,immediate:!0,background:dr._fullLayout.paper_bgcolor,text:String(qr),fill:fr.tickfont?fr.tickfont.color:"#444",horizontalAlign:Or,verticalAlign:Ie}).on("edit",function(Tr){var ur=fr.d2r(Tr);ur!==void 0&&J3.call("_guiRelayout",dr,Vr,ur)})}}pge.init(j);var se,we,te,Ee,de,Ae,Ue,ge,Ne,ir;function qe(Me,Fe,dr){var kr=W.getBoundingClientRect();se=Fe-kr.left,we=dr-kr.top,e._fullLayout._calcInverseTransform(e);var fr=ul.apply3DTransform(e._fullLayout._invTransform)(se,we);se=fr[0],we=fr[1],te={l:se,r:se,w:0,t:we,b:we,h:0},Ee=e._hmpixcount?e._hmlumcount/e._hmpixcount:vw.luminosity(e._fullLayout.plot_bgcolor),de="M0,0H"+_+"V"+x+"H0V0",Ae=!1,Ue="xy",ir=!1,ge=NI(s,Ee,b,T,de),Ne=zI(s,b,T)}function Ve(Me,Fe){if(e._transitioningWithDuration)return!1;var dr=Math.max(0,Math.min(_,V*Me+se)),kr=Math.max(0,Math.min(x,J*Fe+we)),fr=Math.abs(dr-se),_r=Math.abs(kr-we);te.l=Math.min(se,dr),te.r=Math.max(se,dr),te.t=Math.min(we,kr),te.b=Math.max(we,kr);function Vr(){Ue="",te.r=te.l,te.t=te.b,Ne.attr("d","M0,0Z")}if(w.isSubplotConstrained)fr>oo||_r>oo?(Ue="xy",fr/_>_r/x?(_r=fr*x/_,we>kr?te.t=we-_r:te.b=we+_r):(fr=_r*_/x,se>dr?te.l=se-fr:te.r=se+fr),Ne.attr("d",$3(te))):Vr();else if(k.isSubplotConstrained)if(fr>oo||_r>oo){Ue="xy";var qr=Math.min(te.l/_,(x-te.b)/x),Or=Math.max(te.r/_,(x-te.t)/x);te.l=qr*_,te.r=Or*_,te.b=(1-qr)*x,te.t=(1-Or)*x,Ne.attr("d",$3(te))}else Vr();else!C||_r0){var Tr;if(k.isSubplotConstrained||!M&&C.length===1){for(Tr=0;Tr1&&(Vr.maxallowed!==void 0&&F===(Vr.range[0]1&&(qr.maxallowed!==void 0&&P===(qr.range[0]=0?Math.min(e,.9):1/(1/Math.max(e,-.3)+3.222))}function Sge(e,r,t){return e?e==="nsew"?t?"":r==="pan"?"move":"crosshair":e.toLowerCase()+"-resize":"pointer"}function NI(e,r,t,a,n){return e.append("path").attr("class","zoombox").style({fill:r>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("transform",qI(t,a)).attr("d",n+"Z")}function zI(e,r,t){return e.append("path").attr("class","zoombox-corners").style({fill:vw.background,stroke:vw.defaultLine,"stroke-width":1,opacity:0}).attr("transform",qI(r,t)).attr("d","M0,0Z")}function BI(e,r,t,a,n,i){e.attr("d",a+"M"+t.l+","+t.t+"v"+t.h+"h"+t.w+"v-"+t.h+"h-"+t.w+"Z"),II(e,r,n,i)}function II(e,r,t,a){t||(e.transition().style("fill",a>.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),r.transition().style("opacity",1).duration(200))}function pw(e){mw.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function OI(e){SI&&e.data&&e._context.showTips&&(ul.notifier(ul._(e,"Double-click to zoom back out"),"long",e),SI=!1)}function Cge(e,r){return"M"+(e.l-.5)+","+(r-oo-.5)+"h-3v"+(2*oo+1)+"h3ZM"+(e.r+.5)+","+(r-oo-.5)+"h3v"+(2*oo+1)+"h-3Z"}function Dge(e,r){return"M"+(r-oo-.5)+","+(e.t-.5)+"v-3h"+(2*oo+1)+"v3ZM"+(r-oo-.5)+","+(e.b+.5)+"v3h"+(2*oo+1)+"v-3Z"}function $3(e){var r=Math.floor(Math.min(e.b-e.t,e.r-e.l,oo)/2);return"M"+(e.l-3.5)+","+(e.t-.5+r)+"h3v"+-r+"h"+r+"v-3h-"+(r+3)+"ZM"+(e.r+3.5)+","+(e.t-.5+r)+"h-3v"+-r+"h"+-r+"v-3h"+(r+3)+"ZM"+(e.r+3.5)+","+(e.b+.5-r)+"h-3v"+r+"h"+-r+"v3h"+(r+3)+"ZM"+(e.l-3.5)+","+(e.b+.5-r)+"h3v"+r+"h"+r+"v3h-"+(r+3)+"Z"}function LI(e,r,t,a,n){for(var i=!1,o={},l={},s,u,f,c,v=(n||{}).xaHash,d=(n||{}).yaHash,p=0;p{"use strict";var Lge=ia(),K3=cu(),Ege=Bl(),qge=Af(),Ol=GI().makeDragBox,ui=(jn(),vr(Jn)).DRAGGERSIZE;Q3.initInteractions=function(r){var t=r._fullLayout;if(r._context.staticPlot){Lge.select(r).selectAll(".drag").remove();return}if(!(!t._has("cartesian")&&!t._has("splom"))){var a=Object.keys(t._plots||{}).sort(function(i,o){if((t._plots[i].mainplot&&!0)===(t._plots[o].mainplot&&!0)){var l=i.split("y"),s=o.split("y");return l[0]===s[0]?Number(l[1]||1)-Number(s[1]||1):Number(l[0]||1)-Number(s[0]||1)}return t._plots[i].mainplot?1:-1});a.forEach(function(i){var o=t._plots[i],l=o.xaxis,s=o.yaxis;if(!o.mainplot){var u=Ol(r,o,l._offset,s._offset,l._length,s._length,"ns","ew");u.onmousemove=function(v){r._fullLayout._rehover=function(){r._fullLayout._hoversubplot===i&&r._fullLayout._plots[i]&&K3.hover(r,v,i)},K3.hover(r,v,i),r._fullLayout._lasthover=u,r._fullLayout._hoversubplot=i},u.onmouseout=function(v){r._dragging||(r._fullLayout._hoversubplot=null,Ege.unhover(r,v))},r._context.showAxisDragHandles&&(Ol(r,o,l._offset-ui,s._offset-ui,ui,ui,"n","w"),Ol(r,o,l._offset+l._length,s._offset-ui,ui,ui,"n","e"),Ol(r,o,l._offset-ui,s._offset+s._length,ui,ui,"s","w"),Ol(r,o,l._offset+l._length,s._offset+s._length,ui,ui,"s","e"))}if(r._context.showAxisDragHandles){if(i===l._mainSubplot){var f=l._mainLinePosition;l.side==="top"&&(f-=ui),Ol(r,o,l._offset+l._length*.1,f,l._length*.8,ui,"","ew"),Ol(r,o,l._offset,f,l._length*.1,ui,"","w"),Ol(r,o,l._offset+l._length*.9,f,l._length*.1,ui,"","e")}if(i===s._mainSubplot){var c=s._mainLinePosition;s.side!=="right"&&(c-=ui),Ol(r,o,c,s._offset+s._length*.1,ui,s._length*.8,"ns",""),Ol(r,o,c,s._offset+s._length*.9,ui,s._length*.1,"s",""),Ol(r,o,c,s._offset,ui,s._length*.1,"n","")}}});var n=t._hoverlayer.node();n.onmousemove=function(i){i.target=r._fullLayout._lasthover,K3.hover(r,i,t._hoversubplot)},n.onclick=function(i){i.target=r._fullLayout._lasthover,K3.click(r,i)},n.onmousedown=function(i){r._fullLayout._lasthover.onmousedown(i)},Q3.updateFx(r)}};Q3.updateFx=function(e){var r=e._fullLayout,t=r.dragmode==="pan"?"move":"crosshair";qge(r._draggers,t)}});var XI=B((gRe,VI)=>{"use strict";var YI=Pt();VI.exports=function(r){for(var t=YI.layoutArrayContainers,a=YI.layoutArrayRegexes,n=r.split("[")[0],i,o,l=0;l{"use strict";var Fge=D0(),bw=Gy(),X1=ef(),Rge=o6().sorterAsc,xw=Pt();W1.containerArrayMatch=XI();var Pge=W1.isAddVal=function(r){return r==="add"||Fge(r)},WI=W1.isRemoveVal=function(r){return r===null||r==="remove"};W1.applyContainerArrayChanges=function(r,t,a,n,i){var o=t.astr,l=xw.getComponentMethod(o,"supplyLayoutDefaults"),s=xw.getComponentMethod(o,"draw"),u=xw.getComponentMethod(o,"drawOne"),f=n.replot||n.recalc||l===bw||s===bw,c=r.layout,v=r._fullLayout;if(a[""]){Object.keys(a).length>1&&X1.warn("Full array edits are incompatible with other edits",o);var d=a[""][""];if(WI(d))t.set(null);else if(Array.isArray(d))t.set(d);else return X1.warn("Unrecognized full array edit value",o,d),!0;return f?!1:(l(c,v),s(r),!0)}var p=Object.keys(a).map(Number).sort(Rge),y=t.get(),m=y||[],b=i(v,o).get(),T=[],_=-1,x=m.length,w,k,M,C,E,F,P,q;for(w=0;wm.length-(P?0:1)){X1.warn("index out of range",o,M);continue}if(F!==void 0)E.length>1&&X1.warn("Insertion & removal are incompatible with edits to the same index.",o,M),WI(F)?T.push(M):P?(F==="add"&&(F={}),m.splice(M,0,F),b&&b.splice(M,0,{})):X1.warn("Unrecognized full object edit value",o,M,F),_===-1&&(_=M);else for(k=0;k=0;w--)m.splice(T[w],1),b&&b.splice(T[w],1);if(m.length?y||t.set(m):t.set(null),f)return!1;if(l(c,v),u!==bw){var z;if(_===-1)z=p;else{for(x=Math.max(m.length,x),z=[],w=0;w=_));w++)z.push(M);for(w=_;w{"use strict";var KI=ca(),QI=Pt(),ji=nr(),Z1=oi(),eO=fn(),J1=eO.cleanId,Nge=eO.getFromTrace,_w=QI.traceIs,zge=["x","y","z"];fl.clearPromiseQueue=function(e){Array.isArray(e._promises)&&e._promises.length>0&&ji.log("Clearing previous rejected promises from queue."),e._promises=[]};fl.cleanLayout=function(e){var r,t;e||(e={}),e.xaxis1&&(e.xaxis||(e.xaxis=e.xaxis1),delete e.xaxis1),e.yaxis1&&(e.yaxis||(e.yaxis=e.yaxis1),delete e.yaxis1),e.scene1&&(e.scene||(e.scene=e.scene1),delete e.scene1);var a=(Z1.subplotsRegistry.cartesian||{}).attrRegex,n=(Z1.subplotsRegistry.polar||{}).attrRegex,i=(Z1.subplotsRegistry.ternary||{}).attrRegex,o=(Z1.subplotsRegistry.gl3d||{}).attrRegex,l=Object.keys(e);for(r=0;r3?(m.x=1.02,m.xanchor="left"):m.x<-2&&(m.x=-.02,m.xanchor="right"),m.y>3?(m.y=1.02,m.yanchor="bottom"):m.y<-2&&(m.y=-.02,m.yanchor="top")),e.dragmode==="rotate"&&(e.dragmode="orbit"),e.template&&e.template.layout&&fl.cleanLayout(e.template.layout),e};function kh(e,r,t=!1){var a=e[r],n=r.charAt(0);t&&Array.isArray(a)||a&&a!=="paper"&&(e[r]=J1(a,n,!0))}fl.cleanData=function(e){for(var r=0;r0)return e.slice(0,r)}fl.hasParent=function(e,r){for(var t=$I(r);t;){if(t in e)return!0;t=$I(t)}return!1};fl.clearAxisTypes=function(e,r,t){for(var a=0;a{let t=(...a)=>a.every(n=>ji.isPlainObject(n))||a.every(n=>Array.isArray(n));if([e,r].every(a=>Array.isArray(a))){if(e.length!==r.length)return!1;for(let a=0;aji.isPlainObject(a))){if(Object.keys(e).length!==Object.keys(r).length)return!1;for(let a in e){if(a.startsWith("_"))continue;let n=e[a],i=r[a];if(n!==i&&!(t(n,i)?ww(n,i):!1))return!1}return!0}return!1};fl.collectionsAreEqual=ww});var Sw=B(oa=>{"use strict";var n5=ia(),Oge=ca(),Hge=b6(),Xr=nr(),Ia=Xr.nestedProperty,Tw=W2(),lo=YE(),cl=Pt(),c5=jv(),zt=oi(),$i=Qa(),Uge=G7(),Gge=tl(),t5=Ca(),Yge=Kt(),Vge=gw().initInteractions,Xge=(pf(),vr(df)),Wge=Mh().clearOutline,oO=Qu().dfltConfig,r5=ZI(),Rn=rO(),Ma=z3(),Ff=ql(),Zge=(jn(),vr(Jn)).AX_NAME_PATTERN,Aw=0,tO=5;function Jge(e,r,t,a){var n;if(e=Xr.getGraphDiv(e),Tw.init(e),Xr.isPlainObject(r)){var i=r;r=i.data,t=i.layout,a=i.config,n=i.frames}var o=Tw.triggerHandler(e,"plotly_beforeplot",[r,t,a]);if(o===!1)return Promise.reject();!r&&!t&&!Xr.isPlotDiv(e)&&Xr.warn("Calling _doPlot as if redrawing but this container doesn't yet have a plot.",e);function l(){if(n)return oa.addFrames(e,n)}sO(e,a),t||(t={}),n5.select(e).classed("js-plotly-plot",!0),t5.makeTester(),Array.isArray(e._promises)||(e._promises=[]);var s=(e.data||[]).length===0&&Array.isArray(r);Array.isArray(r)&&(Rn.cleanData(r),s?e.data=r:e.data.push.apply(e.data,r),e.empty=!1),(!e.layout||s)&&(e.layout=Rn.cleanLayout(t)),zt.supplyDefaults(e);var u=e._fullLayout,f=u._has("cartesian");u._replotting=!0,(s||u._shouldCreateBgLayer)&&(b3e(e),u._shouldCreateBgLayer&&delete u._shouldCreateBgLayer),t5.initGradients(e),t5.initPatterns(e),s&&$i.saveShowSpikeInitial(e);var c=!e.calcdata||e.calcdata.length!==(e._fullData||[]).length;c&&zt.doCalcdata(e);for(var v=0;v{Xr.isHidden(e)||zt.resize(e)};if(e._context.fillFrame||typeof ResizeObserver=="undefined")window.addEventListener("resize",C),e._clearResponsive=()=>window.removeEventListener("resize",C);else{let E=e.offsetWidth,F=e.offsetHeight,P=new ResizeObserver(()=>{let q=e.offsetWidth,z=e.offsetHeight,I=Math.abs(q-E)>1||Math.abs(z-F)>1;E=q,F=z,I&&q&&z&&C()});P.observe(e),e._clearResponsive=()=>P.disconnect()}}}else Xr.clearResponsive(e);let d=document.fonts?[...document.fonts].filter(C=>C.status!=="loaded"):[];var p=Xr.extendFlat({},u._size),y=0;function m(){for(var C=u._basePlotModules,E=0;E["loaded","loading"].includes(n.status));if(!t.length)return;let a={};e._fontLoadToken=a,yield Promise.all(t.map(n=>n.loaded.catch(()=>{}))),e._fontLoadToken===a&&(delete e._fontLoadToken,t5.savedBBoxes={},oa._doPlot(e))})}function $1(e){var r=e._fullLayout;r._redrawFromAutoMarginCount?r._redrawFromAutoMarginCount--:e.emit("plotly_afterplot")}function $ge(e){return Xr.extendFlat(oO,e)}function lO(e,r){try{e._fullLayout._paper.style("background",r)}catch(t){Xr.error(t)}}function Kge(e,r){var t=Yge.combine(r,"white");lO(e,t)}function sO(e,r){if(!e._context){e._context=Xr.extendDeep({},oO);var t=n5.select("base");e._context._baseUrl=t.size()&&t.attr("href")?window.location.href.split("#")[0]:""}var a=e._context,n,i,o;if(r){for(i=Object.keys(r),n=0;n=e.data.length||n<-e.data.length)throw new Error(t+" must be valid indices for gd.data.");if(r.indexOf(n,a+1)>-1||n>=0&&r.indexOf(-e.data.length+n)>-1||n<0&&r.indexOf(e.data.length+n)>-1)throw new Error("each index in "+t+" must be unique.")}}function uO(e,r,t){if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(typeof r=="undefined")throw new Error("currentIndices is a required argument.");if(Array.isArray(r)||(r=[r]),o5(e,r,"currentIndices"),typeof t!="undefined"&&!Array.isArray(t)&&(t=[t]),typeof t!="undefined"&&o5(e,t,"newIndices"),typeof t!="undefined"&&r.length!==t.length)throw new Error("current and new indices must be of equal length.")}function r3e(e,r,t){var a,n;if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(typeof r=="undefined")throw new Error("traces must be defined.");for(Array.isArray(r)||(r=[r]),a=0;a=0&&f=0&&f0&&typeof C.parts[P]!="string";)P--;var q=C.parts[P],z=C.parts[P-1]+"."+q,I=C.parts.slice(0,P).join("."),Y=Ia(e.layout,I).get(),V=Ia(a,I).get(),J=C.get();if(E!==void 0){b[M]=E,T[M]=q==="reverse"?E:pu(J);var U=c5.getLayoutValObject(a,C.parts);if(U&&U.impliedEdits&&E!==null)for(var G in U.impliedEdits)_(Xr.relativeAttr(M,G),U.impliedEdits[G]);if(["width","height"].indexOf(M)!==-1)if(E){_("autosize",null);var W=M==="height"?"width":"height";_(W,a[W])}else a[M]=e._initialAutoSize[M];else if(M==="autosize")_("width",E?null:a.width),_("height",E?null:a.height);else if(z.match(gO))k(z),Ia(a,I+"._inputRange").set(null);else if(z.match(bO)){k(z),Ia(a,I+"._inputRange").set(null);var j=Ia(a,I).get();j._inputDomain&&(j._input.domain=j._inputDomain.slice())}else z.match(i3e)&&Ia(a,I+"._inputDomain").set(null);if(q==="type"){w=Y;var ae=V.type==="linear"&&E==="log",pe=V.type==="log"&&E==="linear";if(ae||pe){if(!w||!w.range)_(I+".autorange",!0);else if(V.autorange)ae&&(w.range=w.range[1]>w.range[0]?[1,2]:[2,1]);else{var se=w.range[0],we=w.range[1];ae?(se<=0&&we<=0&&_(I+".autorange",!0),se<=0?se=we/1e6:we<=0&&(we=se/1e6),_(I+".range[0]",Math.log(se)/Math.LN10),_(I+".range[1]",Math.log(we)/Math.LN10)):(_(I+".range[0]",Math.pow(10,se)),_(I+".range[1]",Math.pow(10,we)))}Array.isArray(a._subplots.polar)&&a._subplots.polar.length&&a[C.parts[0]]&&C.parts[1]==="radialaxis"&&delete a[C.parts[0]]._subplot.viewInitial["radialaxis.range"],cl.getComponentMethod("annotations","convertCoords")(e,V,E,_),cl.getComponentMethod("images","convertCoords")(e,V,E,_)}else _(I+".autorange",!0),_(I+".range",null);Ia(a,I+"._inputRange").set(null)}else if(q.match(Zge)){var te=Ia(a,M).get(),Ee=(E||{}).type;(!Ee||Ee==="-")&&(Ee="linear"),cl.getComponentMethod("annotations","convertCoords")(e,te,Ee,_),cl.getComponentMethod("images","convertCoords")(e,te,Ee,_)}var de=r5.containerArrayMatch(M);if(de){f=de.array,c=de.index;var Ae=de.property,Ue=U||{editType:"calc"};c!==""&&Ae===""&&(r5.isAddVal(E)?T[M]=null:r5.isRemoveVal(E)?T[M]=(Ia(t,f).get()||[])[c]:Xr.warn("unrecognized full object value",r)),Ff.update(m,Ue),u[f]||(u[f]={});var ge=u[f][c];ge||(ge=u[f][c]={}),ge[Ae]=E,delete r[M]}else q==="reverse"?(Y.range?Y.range.reverse():(_(I+".autorange",!0),Y.range=[1,0]),V.autorange?m.calc=!0:m.plot=!0):(M==="dragmode"&&(E===!1&&J!==!1||E!==!1&&J===!1)||a._has("scatter-like")&&a._has("regl")&&M==="dragmode"&&(E==="lasso"||E==="select")&&!(J==="lasso"||J==="select")?m.plot=!0:U?Ff.update(m,U):m.calc=!0,C.set(E))}}for(f in u){var Ne=r5.applyContainerArrayChanges(e,i(t,f),u[f],m,i);Ne||(m.plot=!0)}for(var ir in x){w=$i.getFromId(e,ir);var qe=w&&w._constraintGroup;if(qe){m.calc=!0;for(var Ve in qe)x[Ve]||($i.getFromId(e,Ve)._constraintShrinkable=!0)}}(_O(e)||r.height||r.width)&&(m.plot=!0);var Qe=a.shapes;for(c=0;c1;)if(a.pop(),t=Ia(r,a.join(".")+".uirevision").get(),t!==void 0)return t;return r.uirevision}function s3e(e,r){for(var t=0;t[I,e._ev.listeners(I)]);i=oa.newPlot(e,r,t,a).then(()=>{for(let[I,Y]of z)Y.forEach(V=>e.on(I,V));return oa.react(e,r,t,a)})}else{e.data=r||[],Rn.cleanData(e.data),e.layout=t||{},Rn.cleanLayout(e.layout),f3e(e.data,e.layout,l,s),zt.supplyDefaults(e,{skipUpdateCalc:!0});var c=e._fullData,v=e._fullLayout,d=v.datarevision===void 0,p=v.transition,y=h3e(e,s,v,d,p),m=y.newDataRevision,b=v3e(e,l,c,d,p,m);if(_O(e)&&(y.layoutReplot=!0),b.calc||y.calc){e.calcdata=void 0;for(var T=Object.getOwnPropertyNames(v),_=0;_(f||e.emit("plotly_react",{config:a,data:r,layout:t}),e))}function v3e(e,r,t,a,n,i){var o=r.length===t.length;if(!n&&!o)return{fullReplot:!0,calc:!0};var l=Ff.traceFlags();l.arrays={},l.nChanges=0,l.nChangesAnim=0;var s,u;function f(d){var p=c5.getTraceValObject(u,d);return!u._module.animatable&&p.anim&&(p.anim=!1),p}var c={getValObject:f,flags:l,immutable:a,transition:n,newDataRevision:i,gd:e},v={};for(s=0;s=n.length?n[0]:n[u]:n}function l(u){return Array.isArray(i)?u>=i.length?i[0]:i[u]:i}function s(u,f){var c=0;return function(){if(u&&++c===f)return u()}}return new Promise(function(u,f){function c(){if(a._frameQueue.length!==0){for(;a._frameQueue.length;){var q=a._frameQueue.pop();q.onInterrupt&&q.onInterrupt()}e.emit("plotly_animationinterrupted",[])}}function v(q){if(q.length!==0){for(var z=0;za._timeToNext&&p()};q()}var m=0;function b(q){return Array.isArray(n)?m>=n.length?q.transitionOpts=n[m]:q.transitionOpts=n[0]:q.transitionOpts=n,m++,q}var T,_,x=[],w=r==null,k=Array.isArray(r),M=!w&&!k&&Xr.isPlainObject(r);if(M)x.push({type:"object",data:b(Xr.extendFlat({},r))});else if(w||["string","number"].indexOf(typeof r)!==-1)for(T=0;T0&&FF)&&P.push(_);x=P}}x.length>0?v(x):(e.emit("plotly_animated"),u())})}function p3e(e,r,t){if(e=Xr.getGraphDiv(e),r==null)return Promise.resolve();if(!Xr.isPlotDiv(e))throw new Error("This element is not a Plotly plot: "+e+". It's likely that you've failed to create a plot before adding frames. For more details, see https://plotly.com/javascript/animations/");var a,n,i,o,l=e._transitionData._frames,s=e._transitionData._frameHash;if(!Array.isArray(r))throw new Error("addFrames failure: frameList must be an Array of frame definitions"+r);var u=l.length+r.length*2,f=[],c={};for(a=r.length-1;a>=0;a--)if(Xr.isPlainObject(r[a])){var v=r[a].name,d=(s[v]||c[v]||{}).name,p=r[a].name,y=s[d]||c[d];d&&p&&typeof p=="number"&&y&&AwC.index?-1:M.index=0;a--){if(n=f[a].frame,typeof n.name=="number"&&Xr.warn("Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings"),!n.name)for(;s[n.name="frame "+e._transitionData._counter++];);if(s[n.name]){for(i=0;i=0;t--)a=r[t],i.push({type:"delete",index:a}),o.unshift({type:"insert",index:a,value:n[a]});var l=zt.modifyFrames,s=zt.modifyFrames,u=[e,o],f=[e,i];return lo&&lo.add(e,l,u,s,f),zt.modifyFrames(e,i)}function y3e(e){e=Xr.getGraphDiv(e);var r=e._fullLayout||{},t=e._fullData||[];return zt.cleanPlot([],{},t,r),zt.purge(e),Tw.purge(e),r._container&&r._container.remove(),delete e._context,e}function g3e(e){var r=e._fullLayout,t=e.getBoundingClientRect();if(!Xr.equalDomRects(t,r._lastBBox)){var a=r._invTransform=Xr.inverseTransformMatrix(Xr.getFullTransformMatrix(e));r._invScaleX=Math.sqrt(a[0][0]*a[0][0]+a[0][1]*a[0][1]+a[0][2]*a[0][2]),r._invScaleY=Math.sqrt(a[1][0]*a[1][0]+a[1][1]*a[1][1]+a[1][2]*a[1][2]),r._lastBBox=t}}function b3e(e){var r=n5.select(e),t=e._fullLayout;if(t._calcInverseTransform=g3e,t._calcInverseTransform(e),t._container=r.selectAll(".plot-container").data([0]),t._container.enter().insert("div",":first-child").classed("plot-container",!0).classed("plotly",!0).style({width:"100%",height:"100%"}),t._paperdiv=t._container.selectAll(".svg-container").data([0]),t._paperdiv.enter().append("div").classed("user-select-none",!0).classed("svg-container",!0).style("position","relative"),t._glcontainer=t._paperdiv.selectAll(".gl-container").data([{}]),t._glcontainer.enter().append("div").classed("gl-container",!0),t._paperdiv.selectAll(".main-svg").remove(),t._paperdiv.select(".modebar-container").remove(),t._paper=t._paperdiv.insert("svg",":first-child").classed("main-svg",!0),t._toppaper=t._paperdiv.append("svg").classed("main-svg",!0),t._modebardiv=t._paperdiv.append("div"),delete t._modeBar,t._hoverpaper=t._paperdiv.append("svg").classed("main-svg",!0),!t._uid){var a={};n5.selectAll("defs").each(function(){this.id&&(a[this.id.split("-")[1]]=1)}),t._uid=Xr.randstr(a)}t._paperdiv.selectAll(".main-svg").attr(Xge.svgAttrs),t._defs=t._paper.append("defs").attr("id","defs-"+t._uid),t._clips=t._defs.append("g").classed("clips",!0),t._topdefs=t._toppaper.append("defs").attr("id","topdefs-"+t._uid),t._topclips=t._topdefs.append("g").classed("clips",!0),t._bgLayer=t._paper.append("g").classed("bglayer",!0),t._draggers=t._paper.append("g").classed("draglayer",!0);var n=t._paper.append("g").classed("layer-below",!0);t._imageLowerLayer=n.append("g").classed("imagelayer",!0),t._shapeLowerLayer=n.append("g").classed("shapelayer",!0),t._cartesianlayer=t._paper.append("g").classed("cartesianlayer",!0),t._polarlayer=t._paper.append("g").classed("polarlayer",!0),t._smithlayer=t._paper.append("g").classed("smithlayer",!0),t._ternarylayer=t._paper.append("g").classed("ternarylayer",!0),t._geolayer=t._paper.append("g").classed("geolayer",!0),t._funnelarealayer=t._paper.append("g").classed("funnelarealayer",!0),t._pielayer=t._paper.append("g").classed("pielayer",!0),t._iciclelayer=t._paper.append("g").classed("iciclelayer",!0),t._treemaplayer=t._paper.append("g").classed("treemaplayer",!0),t._sunburstlayer=t._paper.append("g").classed("sunburstlayer",!0),t._indicatorlayer=t._toppaper.append("g").classed("indicatorlayer",!0),t._glimages=t._paper.append("g").classed("glimages",!0);var i=t._toppaper.append("g").classed("layer-above",!0);t._imageUpperLayer=i.append("g").classed("imagelayer",!0),t._shapeUpperLayer=i.append("g").classed("shapelayer",!0),t._selectionLayer=t._toppaper.append("g").classed("selectionlayer",!0),t._infolayer=t._toppaper.append("g").classed("infolayer",!0),t._menulayer=t._toppaper.append("g").classed("menulayer",!0),t._zoomlayer=t._toppaper.append("g").classed("zoomlayer",!0),t._hoverlayer=t._hoverpaper.append("g").classed("hoverlayer",!0),t._modebardiv.classed("modebar-container",!0).style("position","absolute").style("top","0px").style("right","0px"),e.emit("plotly_framework")}oa.animate=d3e;oa.addFrames=p3e;oa.deleteFrames=m3e;oa.addTraces=dO;oa.deleteTraces=pO;oa.extendTraces=vO;oa.moveTraces=Mw;oa.prependTraces=hO;oa.newPlot=e3e;oa._doPlot=Jge;oa.purge=y3e;oa.react=c3e;oa.redraw=Qge;oa.relayout=j1;oa.restyle=l5;oa.setPlotConfig=$ge;oa.update=u5;oa._guiRelayout=kw(j1);oa._guiRestyle=kw(l5);oa._guiUpdate=kw(u5);oa._storeDirectGUIEdit=n3e});var pc=B(vl=>{"use strict";var x3e=Pt();vl.getDelay=function(e){return e._has&&(e._has("gl3d")||e._has("map"))?500:0};vl.getRedrawFunc=function(e){return function(){x3e.getComponentMethod("colorbar","draw")(e)}};vl.encodeSVG=function(e){return"data:image/svg+xml,"+encodeURIComponent(e)};vl.encodeJSON=function(e){return"data:application/json,"+encodeURIComponent(e)};var wO=window.URL||window.webkitURL;vl.createObjectURL=function(e){return wO.createObjectURL(e)};vl.revokeObjectURL=function(e){return wO.revokeObjectURL(e)};vl.createBlob=function(e,r){if(r==="svg")return new window.Blob([e],{type:"image/svg+xml;charset=utf-8"});if(r==="full-json")return new window.Blob([e],{type:"application/json;charset=utf-8"});var t=_3e(window.atob(e));return new window.Blob([t],{type:"image/"+r})};vl.octetStream=function(e){document.location.href="data:application/octet-stream"+e};vl.getPlotTitle=function(e){var a,n,i,o;var r=e._fullLayout;if(r){var t=(a=r.title)==null?void 0:a.text;return t===((n=r._dfltTitle)==null?void 0:n.plot)?void 0:t}return(o=(i=e.layout)==null?void 0:i.title)==null?void 0:o.text};vl.getPlotSubtitle=function(e){var a,n,i,o,l,s;var r=e._fullLayout;if(r){var t=(n=(a=r.title)==null?void 0:a.subtitle)==null?void 0:n.text;return t===((i=r._dfltTitle)==null?void 0:i.subtitle)?void 0:t}return(s=(l=(o=e.layout)==null?void 0:o.title)==null?void 0:l.subtitle)==null?void 0:s.text};function _3e(e){for(var r=e.length,t=new ArrayBuffer(r),a=new Uint8Array(t),n=0;n{"use strict";var Dw=ia(),TRe=nr(),w3e=Ca(),A3e=Kt(),MRe=(pf(),vr(df)),Cw=/"/g,mc="TOBESTRIPPED",T3e=new RegExp(`("${mc})|(${mc}")|("${mc})|(${mc}")`,"g"),M3e=["&","&","&",""",""",""","'","'","'"],k3e=["<","<","<"],S3e=[">",">",">"];function C3e(e){let r=Dw.select("body").append("div").style({display:"none"}).html(""),t=e.replace(/(&[^;]*;)/gi,a=>{let n=a.toLowerCase();return M3e.includes(n)?a:k3e.includes(n)?"<":S3e.includes(n)?">":a.includes("<")||a.includes(">")?"":r.html(a).text()});return r.remove(),t}function D3e(e){return e.replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&")}AO.exports=function(r,t,a){var n=r._fullLayout,i=n._paper,o=n._toppaper,l=n.width,s=n.height,u;i.insert("rect",":first-child").call(w3e.setRect,0,0,l,s).call(A3e.fill,n.paper_bgcolor);var f=n._basePlotModules||[];for(u=0;u{"use strict";var L3e=nr(),E3e=hg().EventEmitter,K1=pc();function q3e(e){var r=e.emitter||new E3e,t=new Promise(function(a,n){var i=window.Image,o=e.svg,l=e.format||"png",s=e.canvas,u=e.scale||1,f=e.width||300,c=e.height||150,v=u*f,d=u*c,p=s.getContext("2d",{willReadFrequently:!0}),y=new i,m,b;l==="svg"||L3e.isSafari()?b=K1.encodeSVG(o):(m=K1.createBlob(o,"svg"),b=K1.createObjectURL(m)),s.width=v,s.height=d,y.onload=function(){var T;switch(m=null,K1.revokeObjectURL(b),l!=="svg"&&p.drawImage(y,0,0,v,d),l){case"jpeg":T=s.toDataURL("image/jpeg");break;case"png":T=s.toDataURL("image/png");break;case"webp":T=s.toDataURL("image/webp");break;case"svg":T=b;break;default:var _="Image format is not jpeg, png, svg or webp.";if(n(new Error(_)),!e.promise)return r.emit("error",_)}a(T),e.promise||r.emit("success",T)},y.onerror=function(T){if(m=null,K1.revokeObjectURL(b),n(T),!e.promise)return r.emit("error",T)},y.src=b});return e.promise?t:r}TO.exports=q3e});var Ew=B((CRe,SO)=>{"use strict";var MO=ca(),kO=Sw(),F3e=oi(),Cs=nr(),Q1=pc(),R3e=h5(),P3e=d5(),N3e=d2().version,Lw=(B4(),vr(z4)).default;function z3e(e,r){r=r||{};var t,a,n,i;Cs.isPlainObject(e)?(t=e.data||[],a=e.layout||{},n=e.config||{},i={}):(e=Cs.getGraphDiv(e),t=Cs.extendDeep([],e.data),a=Cs.extendDeep({},e.layout),n=e._context,i=e._fullLayout||{});function o(k){return!(k in r)||Cs.validate(r[k],Lw[k])}if(!o("width")&&r.width!==null||!o("height")&&r.height!==null)throw new Error("Height and width should be pixel values.");if(!o("format"))throw new Error("Export format is not "+Cs.join2(Lw.format.values,", "," or ")+".");var l={};function s(k,M){return Cs.coerce(r,l,Lw,k,M)}var u=s("format"),f=s("width"),c=s("height"),v=s("scale"),d=s("setBackground"),p=s("imageDataOnly"),y=document.createElement("div");y.style.position="absolute",y.style.left="-5000px",document.body.appendChild(y);var m=Cs.extendFlat({},a);f?m.width=f:r.width===null&&MO(i.width)&&(m.width=i.width),c?m.height=c:r.height===null&&MO(i.height)&&(m.height=i.height);var b=Cs.extendFlat({},n,{_exportedPlot:!0,staticPlot:!0,setBackground:d}),T=Q1.getRedrawFunc(y);function _(){return new Promise(function(k){setTimeout(k,Q1.getDelay(y._fullLayout))})}function x(){return new Promise(function(k,M){var C=R3e(y,u,v),E=y._fullLayout.width,F=y._fullLayout.height;function P(){kO.purge(y),document.body.removeChild(y)}if(u==="full-json"){var q=F3e.graphJson(y,!1,"object",!0,!0);return q.version=N3e,q=JSON.stringify(q),P(),k(p?q:Q1.encodeJSON(q))}if(P(),u==="svg")return k(p?C:Q1.encodeSVG(C));var z=document.createElement("canvas");z.id=Cs.randstr(),P3e({format:u,width:E,height:F,scale:v,canvas:z,svg:C,promise:!0}).then(k).catch(M)})}function w(k){return p?k.replace(Q1.IMAGE_URL_PREFIX,""):k}return new Promise(function(k,M){kO.newPlot(y,t,m,b).then(T).then(_).then(x).then(function(C){k(w(C))}).catch(function(C){M(C)})})}SO.exports=z3e});var LO=B((DRe,DO)=>{"use strict";var hl=nr(),B3e=oi(),I3e=jv(),O3e=Qu().dfltConfig,Hl=hl.isPlainObject,gc=Array.isArray,qw=hl.isArrayOrTypedArray;DO.exports=function(r,t){r===void 0&&(r=[]),t===void 0&&(t={});var a=I3e.get(),n=[],i={_context:hl.extendFlat({},O3e)},o,l;gc(r)?(i.data=hl.extendDeep([],r),o=r):(i.data=[],o=[],n.push(fi("array","data"))),Hl(t)?(i.layout=hl.extendDeep({},t),l=t):(i.layout={},l={},arguments.length>1&&n.push(fi("object","layout"))),B3e.supplyDefaults(i);for(var s=i._fullData,u=o.length,f=0;fc.length&&a.push(fi("unused",n,u.concat(c.length)));var b=c.length,T=Array.isArray(m);T&&(b=Math.min(b,m.length));var _,x,w,k,M;if(v.dimensions===2)for(x=0;xc[x].length&&a.push(fi("unused",n,u.concat(x,c[x].length)));var C=c[x].length;for(_=0;_<(T?Math.min(C,m[x].length):C);_++)w=T?m[x][_]:m,k=f[x][_],M=c[x][_],hl.validate(k,w)?M!==k&&M!==+k&&a.push(fi("dynamic",n,u.concat(x,_),k,M)):a.push(fi("value",n,u.concat(x,_),k))}else a.push(fi("array",n,u.concat(x),f[x]));else for(x=0;x{"use strict";var W3e=nr(),m5=pc();function Z3e(e,r,t){var a=document.createElement("a"),n="download"in a,i=new Promise(function(o,l){var s,u;if(n)return s=m5.createBlob(e,t),u=m5.createObjectURL(s),a.href=u,a.download=r,document.body.appendChild(a),a.click(),document.body.removeChild(a),m5.revokeObjectURL(u),s=null,o(r);if(W3e.isSafari()){var f=t==="svg"?",":";base64,";return m5.octetStream(f+encodeURIComponent(e)),o(r)}l(new Error("download error"))});return i}EO.exports=Z3e});var Fw=B((ERe,NO)=>{"use strict";var y5=nr(),FO=Mi(),J3e=Ew(),j3e=qO(),RO=pc(),PO=40;function $3e(e,r){var t;return y5.isPlainObject(e)||(t=y5.getGraphDiv(e)),r=r||{},r.format=r.format||"png",r.width=r.width||null,r.height=r.height||null,r.imageDataOnly=!0,new Promise(function(a,n){t&&t._snapshotInProgress&&n(new Error("Image capture already in progress.")),t&&(t._snapshotInProgress=!0);var i=J3e(e,r),o=r.filename||e.fn;if(!o){let s=RO.getPlotTitle(e);if(s&&!FO.matchTex(s))o=y5.slugify(s,PO);else{let u=RO.getPlotSubtitle(e);u&&!FO.matchTex(u)&&(o=y5.slugify(u,PO))}}var l=o||"plot-image";l+="."+r.format.replace("-","."),i.then(function(s){return t&&(t._snapshotInProgress=!1),j3e(s,l,r.format)}).then(function(s){a(s)}).catch(function(s){t&&(t._snapshotInProgress=!1),n(s)})})}NO.exports=$3e});var HO=B(Rw=>{"use strict";var To=nr(),Mo=To.isPlainObject,zO=jv(),BO=oi(),K3e=Dl(),IO=Ra(),OO=Qu().dfltConfig;Rw.makeTemplate=function(e){e=To.isPlainObject(e)?e:To.getGraphDiv(e),e=To.extendDeep({_context:OO},{data:e.data,layout:e.layout}),BO.supplyDefaults(e);var r=e.data||[],t=e.layout||{};t._basePlotModules=e._fullLayout._basePlotModules,t._modules=e._fullLayout._modules;var a={data:{},layout:{}};r.forEach(function(d){var p={};ep(d,p,e5e.bind(null,d));var y=To.coerce(d,{},K3e,"type"),m=a.data[y];m||(m=a.data[y]=[]),m.push(p)}),ep(t,a.layout,Q3e.bind(null,t)),delete a.layout.template;var n=t.template;if(Mo(n)){var i=n.layout,o,l,s,u,f,c;Mo(i)&&g5(i,a.layout);var v=n.data;if(Mo(v)){for(l in a.data)if(s=v[l],Array.isArray(s)){for(f=a.data[l],c=f.length,u=s.length,o=0;ob?o.push({code:"unused",traceType:d,templateCount:m,dataCount:b}):b>m&&o.push({code:"reused",traceType:d,templateCount:m,dataCount:b})}}function T(_,x){for(var w in _)if(w.charAt(0)!=="_"){var k=_[w],M=dl(_,w,x);Mo(k)?(Array.isArray(_)&&k._template===!1&&k.templateitemname&&o.push({code:"missing",path:M,templateitemname:k.templateitemname}),T(k,M)):Array.isArray(k)&&r5e(k)&&T(k,M)}}if(T({data:s,layout:l},""),o.length)return o.map(t5e)};function r5e(e){for(var r=0;r{"use strict";var Qn=Sw();rn._doPlot=Qn._doPlot;rn.newPlot=Qn.newPlot;rn.restyle=Qn.restyle;rn.relayout=Qn.relayout;rn.redraw=Qn.redraw;rn.update=Qn.update;rn._guiRestyle=Qn._guiRestyle;rn._guiRelayout=Qn._guiRelayout;rn._guiUpdate=Qn._guiUpdate;rn._storeDirectGUIEdit=Qn._storeDirectGUIEdit;rn.react=Qn.react;rn.extendTraces=Qn.extendTraces;rn.prependTraces=Qn.prependTraces;rn.addTraces=Qn.addTraces;rn.deleteTraces=Qn.deleteTraces;rn.moveTraces=Qn.moveTraces;rn.purge=Qn.purge;rn.addFrames=Qn.addFrames;rn.deleteFrames=Qn.deleteFrames;rn.animate=Qn.animate;rn.setPlotConfig=Qn.setPlotConfig;var a5e=I2().getGraphDiv,n5e=L3().eraseActiveShape;rn.deleteActiveShape=function(e){return n5e(a5e(e))};rn.toImage=Ew();rn.validate=LO();rn.downloadImage=Fw();var UO=HO();rn.makeTemplate=UO.makeTemplate;rn.validateTemplate=UO.validateTemplate});var Nw=B((RRe,YO)=>{"use strict";var Pw=nr(),i5e=Pt();YO.exports=function(r,t,a,n){var i=n("x"),o=n("y"),l,s=i5e.getComponentMethod("calendars","handleTraceDefaults");if(s(r,t,["x","y"],a),i){var u=Pw.minRowLength(i);o?l=Math.min(u,Pw.minRowLength(o)):(l=u,n("y0"),n("dy"))}else{if(!o)return 0;l=Pw.minRowLength(o),n("x0"),n("dx")}return t._length=l,l}});var zw=B((PRe,WO)=>{"use strict";var VO=nr().dateTick0,o5e=(In(),vr(Wn)),l5e=o5e.ONEWEEK;function XO(e,r){return e%l5e===0?VO(r,1):VO(r,0)}WO.exports=function(r,t,a,n,i){if(i||(i={x:!0,y:!0}),i.x){var o=n("xperiod");o&&(n("xperiod0",XO(o,t.xcalendar)),n("xperiodalignment"))}if(i.y){var l=n("yperiod");l&&(n("yperiod0",XO(l,t.ycalendar)),n("yperiodalignment"))}}});var jO=B((NRe,JO)=>{"use strict";var ZO=["orientation","groupnorm","stackgaps"];JO.exports=function(r,t,a,n){var i=a._scatterStackOpts,o=n("stackgroup");if(o){var l=t.xaxis+t.yaxis,s=i[l];s||(s=i[l]={});var u=s[o],f=!1;u?u.traces.push(t):(u=s[o]={traceIndices:[],traces:[t]},f=!0);for(var c={orientation:t.x&&!t.y?"h":"v"},v=0;v{"use strict";var $O=Kt(),KO=Nl().hasColorscale,QO=eh(),s5e=yi();eH.exports=function(r,t,a,n,i,o={}){var l=s5e.isBubble(r),s=(r.line||{}).color,u;if(s&&(a=s),i("marker.symbol"),i("marker.opacity",l?.7:1),i("marker.size"),o.noAngle||(i("marker.angle"),o.noAngleRef||i("marker.angleref"),o.noStandOff||i("marker.standoff")),i("marker.color",a),KO(r,"marker")&&QO(r,t,n,i,{prefix:"marker.",cLetter:"c"}),o.noSelect||(i("selected.marker.color"),i("unselected.marker.color"),i("selected.marker.size"),i("unselected.marker.size")),o.noLine||(s&&!Array.isArray(s)&&t.marker.color!==s?u=s:l?u=$O.background:u=$O.defaultLine,i("marker.line.color",u),KO(r,"marker.line")&&QO(r,t,n,i,{prefix:"marker.line.",cLetter:"c"}),i("marker.line.width",l?1:0),o.noLineDash||i("marker.line.dash")),l&&(i("marker.sizeref"),i("marker.sizemin"),i("marker.sizemode")),o.gradient){var f=i("marker.gradient.type");f!=="none"&&i("marker.gradient.color")}}});var Bw=B((BRe,rH)=>{"use strict";var u5e=nr().isArrayOrTypedArray,f5e=Nl().hasColorscale,c5e=eh();rH.exports=function(r,t,a,n,i,o){o||(o={});var l=(r.marker||{}).color;if(l&&l._inputArray&&(l=l._inputArray),i("line.color",a),f5e(r,"line"))c5e(r,t,n,i,{prefix:"line.",cLetter:"c"});else{var s=(u5e(l)?!1:l)||a;i("line.color",s)}i("line.width"),o.noDash||i("line.dash"),o.backoff&&i("line.backoff")}});var aH=B((IRe,tH)=>{"use strict";tH.exports=function(r,t,a){var n=a("line.shape");n==="spline"&&a("line.smoothing")}});var Iw=B((ORe,nH)=>{"use strict";var v5e=nr();nH.exports=function(e,r,t,a,n){n=n||{},a("textposition"),v5e.coerceFont(a,"textfont",n.font||t.font,n),n.noSelect||(a("selected.textfont.color"),a("unselected.textfont.color"))}});var Ow=B((HRe,oH)=>{"use strict";var _5=Kt(),iH=nr().isArrayOrTypedArray;function h5e(e){for(var r=_5.interpolate(e[0][1],e[1][1],.5),t=2;t{"use strict";var lH=nr(),d5e=Pt(),p5e=Ef(),m5e=(U1(),vr(H1)),Sh=yi(),y5e=Nw(),g5e=zw(),b5e=jO(),x5e=x5(),_5e=Bw(),sH=aH(),w5e=Iw(),A5e=Ow(),T5e=nr().coercePattern;uH.exports=function(r,t,a,n){function i(d,p){return lH.coerce(r,t,p5e,d,p)}var o=y5e(r,t,n,i);if(o||(t.visible=!1),!!t.visible){g5e(r,t,n,i),i("xhoverformat"),i("yhoverformat"),i("zorder");var l=b5e(r,t,n,i);n.scattermode==="group"&&t.orientation===void 0&&i("orientation","v");var s=!l&&o{"use strict";var M5e=A1().getAxisGroup;cH.exports=function(r,t,a,n,i){var o=t.orientation,l=t[{v:"x",h:"y"}[o]+"axis"],s=M5e(a,l)+o,u=a._alignmentOpts||{},f=n("alignmentgroup"),c=u[s];c||(c=u[s]={});var v=c[f];v?v.traces.push(t):v=c[f]={traces:[t],alignmentIndex:Object.keys(c).length,offsetGroups:{}};var d=n("offsetgroup")||"",p=v.offsetGroups,y=p[d];t._offsetIndex=0,(i!=="group"||d)&&(y||(y=p[d]={offsetIndex:Object.keys(p).length}),t._offsetIndex=y.offsetIndex)}});var Hw=B((YRe,hH)=>{"use strict";var k5e=nr(),S5e=vH(),C5e=Ef();hH.exports=function(r,t){var a,n,i,o=t.scattermode;function l(v){return k5e.coerce(n._input,n,C5e,v)}if(t.scattermode==="group")for(i=0;i=0;f--){var c=r[f];if(c.type==="scatter"&&c.xaxis===s.xaxis&&c.yaxis===s.yaxis){c.opacity=void 0;break}}}}}});var pH=B((VRe,dH)=>{"use strict";var D5e=nr(),L5e=gg();dH.exports=function(e,r){function t(n,i){return D5e.coerce(e,r,L5e,n,i)}var a=r.barmode==="group";r.scattermode==="group"&&t("scattergap",a?r.bargap:.2)}});var Uw=B((XRe,yH)=>{"use strict";var E5e=ca(),mH=nr(),q5e=mH.dateTime2ms,w5=mH.incrementMonth,F5e=(In(),vr(Wn)),R5e=F5e.ONEAVGMONTH;yH.exports=function(r,t,a,n){if(t.type!=="date")return{vals:n};var i=r[a+"periodalignment"];if(!i)return{vals:n};var o=r[a+"period"],l;if(E5e(o)){if(o=+o,o<=0)return{vals:n}}else if(typeof o=="string"&&o.charAt(0)==="M"){var s=+o.substring(1);if(s>0&&Math.round(s)===s)l=s;else return{vals:n}}for(var u=t.calendar,f=i==="start",c=i==="end",v=r[a+"period0"],d=q5e(v,u)||0,p=[],y=[],m=[],b=n.length,T=0;T_;)k=w5(k,-l,u);for(;k<=_;)k=w5(k,l,u);w=w5(k,-l,u)}else{for(x=Math.round((_-d)/o),k=d+x*o;k>_;)k-=o;for(;k<=_;)k+=o;w=k-o}p[T]=f?w:c?k:(w+k)/2,y[T]=w,m[T]=k}return{vals:p,starts:y,ends:m}}});var rp=B((WRe,bH)=>{"use strict";var Gw=Nl().hasColorscale,Yw=t7(),gH=yi();bH.exports=function(r,t){gH.hasLines(t)&&Gw(t,"line")&&Yw(r,t,{vals:t.line.color,containerStr:"line",cLetter:"c"}),gH.hasMarkers(t)&&(Gw(t,"marker")&&Yw(r,t,{vals:t.marker.color,containerStr:"marker",cLetter:"c"}),Gw(t,"marker.line")&&Yw(r,t,{vals:t.marker.line.color,containerStr:"marker.line",cLetter:"c"}))}});var Vw=B((ZRe,xH)=>{"use strict";var gn=nr();xH.exports=function(r,t){for(var a=0;a{"use strict";var _H=nr();wH.exports=function(r,t){_H.isArrayOrTypedArray(t.selectedpoints)&&_H.tagSelected(r,t)}});var Ch=B((jRe,LH)=>{"use strict";var TH=ca(),Ww=nr(),tp=Qa(),MH=Uw(),Xw=(In(),vr(Wn)).BADNUM,Zw=yi(),P5e=rp(),N5e=Vw(),z5e=AH();function B5e(e,r){var t=e._fullLayout,a=r._xA=tp.getFromId(e,r.xaxis||"x","x"),n=r._yA=tp.getFromId(e,r.yaxis||"y","y"),i=a.makeCalcdata(r,"x"),o=n.makeCalcdata(r,"y"),l=MH(r,a,"x",i),s=MH(r,n,"y",o),u=l.vals,f=s.vals,c=r._length,v=new Array(c),d=r.ids,p=Jw(r,t,a,n),y=!1,m,b,T,_,x,w;CH(t,r);var k="x",M="y",C;if(p)Ww.pushUnique(p.traceIndices,r.index),m=p.orientation==="v",m?(M="s",C="x"):(k="s",C="y"),x=p.stackgaps==="interpolate";else{var E=SH(r,c);kH(e,r,a,n,u,f,E)}var F=!!r.xperiodalignment,P=!!r.yperiodalignment;for(b=0;bb&&v[_].gap;)_--;for(w=v[_].s,T=v.length-1;T>_;T--)v[T].s=w;for(;b<_;)if(b++,v[b].gap){for(T=b+1;v[T].gap;)T++;for(var Y=v[b-1][C],V=v[b-1].s,J=(v[T].s-V)/(v[T][C]-Y);b{"use strict";EH.exports=A5;var I5e=nr().distinctVals;function A5(e,r){this.traces=e,this.sepNegVal=r.sepNegVal,this.overlapNoMerge=r.overlapNoMerge;for(var t=1/0,a=r.posAxis._id.charAt(0),n=[],i=0;iO5e,eventDataKeys:()=>H5e});var O5e,H5e,RH=Za(()=>{"use strict";O5e=3,H5e=["value","label"]});var IH=B((KRe,BH)=>{"use strict";var pl=ca(),{isArrayOrTypedArray:mu}=nr(),{BADNUM:Dh}=(In(),vr(Wn)),U5e=Pt(),ap=Qa(),{getAxisGroup:G5e}=A1(),T5=qH(),{TEXTPAD:Y5e}=(RH(),vr(FH)),{LINE_SPACING:V5e}=(Ni(),vr(Pi)),{BR_TAG_ALL:X5e}=Mi();function W5e(e,r){for(var t=r.xaxis,a=r.yaxis,n=e._fullLayout,i=e._fullData,o=e.calcdata,l=[],s=[],u=0;us+o||!pl(l))}for(var f=0;fa(i))):a(e.text);let n=e.outsidetextfont.size*V5e*t+Y5e;return{ppadplus:r.some(i=>i.s<0)?n:0,ppadminus:r.some(i=>i.s>=0)?n:0}}return{ppadplus:void 0,ppadminus:void 0}}function abe(e,r,t,a){for(var n=Lh(a),i=0;i{"use strict";var OH=Ch(),HH=IH().setGroupPositions;function ibe(e,r){for(var t=r.xaxis,a=r.yaxis,n=e._fullLayout,i=e._fullData,o=e.calcdata,l=[],s=[],u=0;uE[f]&&f{"use strict";var lbe=Ca(),WH=(In(),vr(Wn)),np=WH.BADNUM,ZH=WH.LOG_CLIP,YH=ZH+.5,VH=ZH-.5,M5=nr(),sbe=M5.segmentsIntersect,XH=M5.constrain,t9=(U1(),vr(H1));JH.exports=function(r,t){var a=t.trace||{},n=t.xaxis,i=t.yaxis,o=n.type==="log",l=i.type==="log",s=n._length,u=i._length,f=t.backoff,c=a.marker,v=t.connectGaps,d=t.baseTolerance,p=t.shape,y=p==="linear",m=a.fill&&a.fill!=="none",b=[],T=t9.minTolerance,_=r.length,x=new Array(_),w=0,k,M,C,E,F,P,q,z,I,Y,V,J,U,G,W,j;function ae(Ie){var Tr=r[Ie];if(!Tr)return!1;var ur=t.linearized?n.l2p(Tr.x):n.c2p(Tr.x),at=t.linearized?i.l2p(Tr.y):i.c2p(Tr.y);if(ur===np){if(o&&(ur=n.c2p(Tr.x,!0)),ur===np)return!1;l&&at===np&&(ur*=Math.abs(n._m*u*(n._m>0?YH:VH)/(i._m*s*(i._m>0?YH:VH)))),ur*=1e3}if(at===np){if(l&&(at=i.c2p(Tr.y,!0)),at===np)return!1;at*=1e3}return[ur,at]}function pe(Ie,Tr,ur,at){var ft=ur-Ie,jr=at-Tr,it=.5-Ie,le=.5-Tr,Te=ft*ft+jr*jr,sr=ft*it+jr*le;if(sr>0&&sr1||Math.abs(it.y-ur[0][1])>1)&&(it=[it.x,it.y],at&&Ee(it,Ie)Ue||Ie[1]Ne)return[XH(Ie[0],Ae,Ue),XH(Ie[1],ge,Ne)]}function Fr(Ie,Tr){if(Ie[0]===Tr[0]&&(Ie[0]===Ae||Ie[0]===Ue)||Ie[1]===Tr[1]&&(Ie[1]===ge||Ie[1]===Ne))return!0}function Lr(Ie,Tr){var ur=[],at=Sr(Ie),ft=Sr(Tr);return at&&ft&&Fr(at,ft)||(at&&ur.push(at),ft&&ur.push(ft)),ur}function He(Ie,Tr,ur){return function(at,ft){var jr=Sr(at),it=Sr(ft),le=[];if(jr&&it&&Fr(jr,it))return le;jr&&le.push(jr),it&&le.push(it);var Te=2*M5.constrain((at[Ie]+ft[Ie])/2,Tr,ur)-((jr||at)[Ie]+(it||ft)[Ie]);if(Te){var sr;jr&&it?sr=Te>0==jr[Ie]>it[Ie]?jr:it:sr=jr||it,sr[Ie]+=Te}return le}}var or;p==="linear"||p==="spline"?or=Ge:p==="hv"||p==="vh"?or=Lr:p==="hvh"?or=He(0,Ae,Ue):p==="vhv"&&(or=He(1,ge,Ne));function Ir(Ie,Tr){var ur=Tr[0]-Ie[0],at=(Tr[1]-Ie[1])/ur,ft=(Ie[1]*Tr[0]-Tr[1]*Ie[0])/ur;return ft>0?[at>0?Ae:Ue,Ne]:[at>0?Ue:Ae,ge]}function fe(Ie){var Tr=Ie[0],ur=Ie[1],at=Tr===x[w-1][0],ft=ur===x[w-1][1];if(!(at&&ft))if(w>1){var jr=Tr===x[w-2][0],it=ur===x[w-2][1];at&&(Tr===Ae||Tr===Ue)&&jr?it?w--:x[w-1]=Ie:ft&&(ur===ge||ur===Ne)&&it?jr?w--:x[w-1]=Ie:x[w++]=Ie}else x[w++]=Ie}function Le(Ie){x[w-1][0]!==Ie[0]&&x[w-1][1]!==Ie[1]&&fe([Qe,er]),fe(Ie),rr=null,Qe=er=0}var Mr=M5.isArrayOrTypedArray(c);function lt(Ie){if(Ie&&f&&(Ie.i=k,Ie.d=r,Ie.trace=a,Ie.marker=Mr?c[Ie.i]:c,Ie.backoff=f),se=Ie[0]/s,we=Ie[1]/u,qe=Ie[0]Ue?Ue:0,Ve=Ie[1]Ne?Ne:0,qe||Ve){if(!w)x[w++]=[qe||Ie[0],Ve||Ie[1]];else if(rr){var Tr=or(rr,Ie);Tr.length>1&&(Le(Tr[0]),x[w++]=Tr[1])}else yr=or(x[w-1],Ie)[0],x[w++]=yr;var ur=x[w-1];qe&&Ve&&(ur[0]!==qe||ur[1]!==Ve)?(rr&&(Qe!==qe&&er!==Ve?fe(Qe&&er?Ir(rr,Ie):[Qe||qe,er||Ve]):Qe&&er&&fe([Qe,er])),fe([qe,Ve])):Qe-qe&&er-Ve&&fe([qe||Qe,Ve||er]),rr=Ie,Qe=qe,er=Ve}else rr&&Le(or(rr,Ie)[0]),x[w++]=Ie}for(k=0;k<_;k++)if(M=ae(k),!!M){for(w=0,rr=null,lt(M),k++;k<_;k++){if(E=ae(k),!E){if(v)continue;break}if(!y||!t.simplify){lt(E);continue}var Xe=ae(k+1);if(Y=Ee(E,M),!(!(m&&(w===0||w===_-1))&&Yte(P,Xe))break;C=P,U=I[0]*z[0]+I[1]*z[1],U>V?(V=U,E=P,q=!1):U=r.length||!P)break;lt(P),M=P}}rr&&fe([Qe||rr[0],er||rr[1]]),b.push(x.slice(0,w))}var Me=p.slice(p.length-1);if(f&&Me!=="h"&&Me!=="v"){for(var Fe=!1,dr=-1,kr=[],fr=0;fr{"use strict";var $H={tonextx:1,tonexty:1,tonext:1};KH.exports=function(r,t,a){var n,i,o,l,s,u={},f=!1,c=-1,v=0,d=-1;for(i=0;i=0?s=d:(s=d=v,v++),s{"use strict";var Ul=ia(),ube=Pt(),ip=nr(),Eh=ip.ensureSingle,eU=ip.identity,wn=Ca(),qh=yi(),fbe=jH(),cbe=a9(),k5=j8().tester;rU.exports=function(r,t,a,n,i,o){var l,s,u=!i,f=!!i&&i.duration>0,c=cbe(r,t,a);if(l=n.selectAll("g.trace").data(c,function(d){return d[0].trace.uid}),l.enter().append("g").attr("class",function(d){return"trace scatter trace"+d[0].trace.uid}).style("stroke-miterlimit",2),l.order(),vbe(r,l,t),f){o&&(s=o());var v=Ul.transition().duration(i.duration).ease(i.easing).each("end",function(){s&&s()}).each("interrupt",function(){s&&s()});v.each(function(){n.selectAll("g.trace").each(function(d,p){QH(r,p,t,d,c,this,i)})})}else l.each(function(d,p){QH(r,p,t,d,c,this,i)});u&&l.exit().remove(),n.selectAll("path:not([d])").remove()};function vbe(e,r,t){r.each(function(a){var n=Eh(Ul.select(this),"g","fills");wn.setClipUrl(n,t.layerClipId,e);var i=a[0].trace;i._ownFill=null,i._nextFill=null;var o=[];i._ownfill&&o.push("_ownFill"),i._nexttrace&&o.push("_nextFill");var l=n.selectAll("g").data(o,eU);l.enter().append("g"),l.exit().remove(),l.order().each(function(s){i[s]=Eh(Ul.select(this),"path","js-fill")})})}function QH(e,r,t,a,n,i,o){var l=e._context.staticPlot,s;hbe(e,r,t,a,n);var u=!!o&&o.duration>0;function f(He){return u?He.transition():He}var c=t.xaxis,v=t.yaxis,d=a[0].trace,p=d.line,y=Ul.select(i),m=Eh(y,"g","errorbars"),b=Eh(y,"g","lines"),T=Eh(y,"g","points"),_=Eh(y,"g","text");if(ube.getComponentMethod("errorbars","plot")(e,m,t,o),d.visible!==!0)return;f(y).style("opacity",d.opacity);var x,w,k=d.fill.charAt(d.fill.length-1);k!=="x"&&k!=="y"&&(k="");var M,C;k==="y"?(M=1,C=v.c2p(0,!0)):k==="x"&&(M=0,C=c.c2p(0,!0)),a[0][t.isRangePlot?"nodeRangePlot3":"node3"]=y;var E="",F=[],P=d._prevtrace,q=null,z=null;P&&(E=P._prevRevpath||"",w=P._nextFill,F=P._ownPolygons,q=P._fillsegments,z=P._fillElement);var I,Y,V="",J="",U,G,W,j,ae,pe,se=[];d._polygons=[];var we=[],te=[],Ee=ip.noop;if(x=d._ownFill,qh.hasLines(d)||d.fill!=="none"){w&&w.datum(a),["hv","vh","hvh","vhv"].indexOf(p.shape)!==-1?(U=wn.steps(p.shape),G=wn.steps(p.shape.split("").reverse().join(""))):p.shape==="spline"?U=G=function(He){var or=He[He.length-1];return He.length>1&&He[0][0]===or[0]&&He[0][1]===or[1]?wn.smoothclosed(He.slice(1),p.smoothing):wn.smoothopen(He,p.smoothing)}:U=G=function(He){return"M"+He.join("L")},W=function(He){return G(He.reverse())},te=fbe(a,{xaxis:c,yaxis:v,trace:d,connectGaps:d.connectgaps,baseTolerance:Math.max(p.width||1,3)/4,shape:p.shape,backoff:p.backoff,simplify:p.simplify,fill:d.fill}),we=new Array(te.length);var de=0;for(s=0;s=l[0]&&y.x<=l[1]&&y.y>=s[0]&&y.y<=s[1]}),v=Math.ceil(c.length/f),d=0;n.forEach(function(y,m){var b=y[0].trace;qh.hasMarkers(b)&&b.marker.maxdisplayed>0&&m{"use strict";aU.exports={container:"marker",min:"cmin",max:"cmax"}});var n9=B((nPe,nU)=>{"use strict";var C5=Qa();nU.exports=function(r,t,a){var n={},i={_fullLayout:a},o=C5.getFromTrace(i,t,"x"),l=C5.getFromTrace(i,t,"y"),s=r.orig_x;s===void 0&&(s=r.x);var u=r.orig_y;return u===void 0&&(u=r.y),n.xLabel=C5.tickText(o,o.c2l(s),!0).text,n.yLabel=C5.tickText(l,l.c2l(u),!0).text,n}});var s9=B((iPe,iU)=>{"use strict";var i9=ia(),Fh=Ca(),dbe=Pt();function pbe(e){var r=i9.select(e).selectAll("g.trace.scatter");r.style("opacity",function(t){return t[0].trace.opacity}),r.selectAll("g.points").each(function(t){var a=i9.select(this),n=t.trace||t[0].trace;o9(a,n,e)}),r.selectAll("g.text").each(function(t){var a=i9.select(this),n=t.trace||t[0].trace;l9(a,n,e)}),r.selectAll("g.trace path.js-line").call(Fh.lineGroupStyle),r.selectAll("g.trace path.js-fill").call(Fh.fillGroupStyle,e,!1),dbe.getComponentMethod("errorbars","style")(r)}function o9(e,r,t){Fh.pointStyle(e.selectAll("path.point"),r,t)}function l9(e,r,t){Fh.textPointStyle(e.selectAll("text"),r,t)}function mbe(e,r,t){var a=r[0].trace;a.selectedpoints?(Fh.selectedPointStyle(t.selectAll("path.point"),a),Fh.selectedTextStyle(t.selectAll("text"),a)):(o9(t,a,e),l9(t,a,e))}iU.exports={style:pbe,stylePoints:o9,styleText:l9,styleOnSelect:mbe}});var u9=B((oPe,oU)=>{"use strict";var Rh=Kt(),ybe=yi();oU.exports=function(r,t){var a,n;if(r.mode==="lines")return a=r.line.color,a&&Rh.opacity(a)?a:r.fillcolor;if(r.mode==="none")return r.fill?r.fillcolor:"";var i=t.mcc||t.mc||(r.marker||{}).color,o=t.mlcc||((r.marker||{}).line||{}).color;return n=i&&Rh.opacity(i)?i:o&&Rh.opacity(o)&&(t.mlw||((r.marker||{}).line||{}).width)?o:"",n?Rh.opacity(n)<.3?Rh.addOpacity(n,.3):n:(a=(r.line||{}).color,a&&Rh.opacity(a)&&ybe.hasLines(r)&&r.line.width?a:r.fillcolor)}});var uU=B((lPe,sU)=>{"use strict";var D5=nr(),lU=cu(),gbe=Pt(),bbe=u9(),f9=Kt(),xbe=D5.fillText;sU.exports=function(r,t,a,n){var i=r.cd,o=i[0].trace,l=r.xa,s=r.ya,u=l.c2p(t),f=s.c2p(a),c=[u,f],v=o.hoveron||"",d=o.mode.indexOf("markers")!==-1?3:.5,p=!!o.xperiodalignment,y=!!o.yperiodalignment;if(v.indexOf("points")!==-1){var m=function(J){if(p){var U=l.c2p(J.xStart),G=l.c2p(J.xEnd);return u>=Math.min(U,G)&&u<=Math.max(U,G)?0:1/0}var W=Math.max(3,J.mrc||0),j=1-1/W,ae=Math.abs(l.c2p(J.x)-u);return ae=Math.min(U,G)&&f<=Math.max(U,G)?0:1/0}var W=Math.max(3,J.mrc||0),j=1-1/W,ae=Math.abs(s.c2p(J.y)-f);return aese!=Ne>=se&&(Ae=Ee[te-1][0],Ue=Ee[te][0],Ne-ge&&(de=Ae+(Ue-Ae)*(se-ge)/(Ne-ge),W=Math.min(W,de),j=Math.max(j,de)));return W=Math.max(W,0),j=Math.min(j,l._length),{x0:W,x1:j,y0:se,y1:se}}if(v.indexOf("fills")!==-1&&o._fillElement){var I=q(o._fillElement)&&!q(o._fillExclusionElement);if(I){var Y=z(o._polygons);Y===null&&(Y={x0:c[0],x1:c[0],y0:c[1],y1:c[1]});var V=f9.defaultLine;return f9.opacity(o.fillcolor)?V=o.fillcolor:f9.opacity((o.line||{}).color)&&(V=o.line.color),D5.extendFlat(r,{distance:r.maxHoverDistance,x0:Y.x0,x1:Y.x1,y0:Y.y0,y1:Y.y1,color:V,hovertemplate:!1}),delete r.index,o.text&&!D5.isArrayOrTypedArray(o.text)?r.text=String(o.text):r.text=o.name,[r]}}}});var vU=B((sPe,cU)=>{"use strict";var fU=yi();cU.exports=function(r,t){var a=r.cd,n=r.xaxis,i=r.yaxis,o=[],l=a[0].trace,s,u,f,c,v=l.mode&&!fU.hasMarkers(l)&&!fU.hasText(l);if(v)return[];if(t===!1)for(s=0;s{"use strict";hU.exports={xaxis:{valType:"subplotid",dflt:"x",editType:"calc+clearAxisTypes"},yaxis:{valType:"subplotid",dflt:"y",editType:"calc+clearAxisTypes"}}});var gU=B((fPe,yU)=>{"use strict";var L5=Pt().traceIs,c9=w7();yU.exports=function(r,t,a,n){a("autotypenumbers",n.autotypenumbersDflt);var i=a("type",(n.splomStash||{}).type);i==="-"&&(_be(t,n.data),t.type==="-"?t.type="linear":r.type=t.type)};function _be(e,r){if(e.type==="-"){var t=e._id,a=t.charAt(0),n;t.indexOf("scene")!==-1&&(t=a);var i=wbe(r,t,a);if(i){if(i.type==="histogram"&&a==={v:"y",h:"x"}[i.orientation||"v"]){e.type="linear";return}var o=a+"calendar",l=i[o],s={noMultiCategory:!L5(i,"cartesian")||L5(i,"noMultiCategory")};if(i.type==="box"&&i._hasPreCompStats&&a==={h:"x",v:"y"}[i.orientation||"v"]&&(s.noMultiCategory=!0),s.autotypenumbers=e.autotypenumbers,mU(i,a)){var u=pU(i),f=[];for(n=0;n0&&(n["_"+t+"axes"]||{})[r])return n;if((n[t+"axis"]||t)===r){if(mU(n,t))return n;if((n[t]||[]).length||n[t+"0"])return n}}}function pU(e){return{v:"x",h:"y"}[e.orientation||"v"]}function mU(e,r){var t=pU(e),a=L5(e,"box-violin");return a&&r===t&&e[t]===void 0&&e[t+"0"]===void 0}});var xU=B((cPe,bU)=>{"use strict";var Abe=no().isTypedArraySpec;function Tbe(e,r){var t=r.dataAttr||e._id.charAt(0),a={},n,i,o;if(r.axData)n=r.axData;else for(n=[],i=0;i0||Abe(i),l;o&&(l="array");var s=a("categoryorder",l),u;s==="array"&&(u=a("categoryarray")),!o&&s==="array"&&(s=t.categoryorder="trace"),s==="trace"?t._initialCategories=[]:s==="array"?t._initialCategories=u.slice():(u=Tbe(t,n).sort(),s==="category ascending"?t._initialCategories=u:s==="category descending"&&(t._initialCategories=u.reverse()))}}});var AU=B((vPe,wU)=>{"use strict";var _U=Kt(),Mbe=vs(),kbe=nr();wU.exports=function(r,t,a,n){n=n||{};var i=n.dfltColor;function o(C,E){return kbe.coerce2(r,t,n.attributes,C,E)}var l=o("linecolor",i),s=o("linewidth"),u=a("showline",n.showLine||!!l||!!s);u||(delete t.linecolor,delete t.linewidth);var f=_U.mix(i,n.bgColor,n.blend||Mbe.lightFraction),c=o("gridcolor",f),v=o("gridwidth"),d=o("griddash"),p=a("showgrid",n.showGrid||!!c||!!v||!!d);if(p||(delete t.gridcolor,delete t.gridwidth,delete t.griddash),n.hasMinor){var y=_U.mix(t.gridcolor,n.bgColor,67),m=o("minor.gridcolor",y),b=o("minor.gridwidth",t.gridwidth||1),T=o("minor.griddash",t.griddash||"solid"),_=a("minor.showgrid",!!m||!!b||!!T);_||(delete t.minor.gridcolor,delete t.minor.gridwidth,delete t.minor.griddash)}if(!n.noZeroLine){var x=o("zerolinelayer"),w=o("zerolinecolor",i),k=o("zerolinewidth"),M=a("zeroline",n.showGrid||!!w||!!k);M||(delete t.zerolinelayer,delete t.zerolinecolor,delete t.zerolinewidth)}}});var h9=B((hPe,DU)=>{"use strict";var TU=ca(),Sbe=Pt(),op=nr(),Cbe=Ra(),Dbe=Po(),v9=tl(),MU=V6(),kU=W6(),Lbe=j6(),Ebe=$6(),qbe=xU(),Fbe=AU(),Rbe=G7(),SU=Hg(),E5=(jn(),vr(Jn)).WEEKDAY_PATTERN,Pbe=(jn(),vr(Jn)).HOUR_PATTERN;DU.exports=function(r,t,a,n,i){var o=n.letter,l=n.font||{},s=n.splomStash||{},u=a("visible",!n.visibleDflt),f=t._template||{},c=t.type||f.type||"-",v;if(c==="date"){var d=Sbe.getComponentMethod("calendars","handleDefaults");d(r,t,"calendar",n.calendar),n.noTicklabelmode||(v=a("ticklabelmode"))}!n.noTicklabelindex&&(c==="date"||c==="linear")&&a("ticklabelindex");var p="";(!n.noTicklabelposition||c==="multicategory")&&(p=op.coerce(r,t,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:v==="period"?["outside","inside"]:o==="x"?["outside","inside","outside left","inside left","outside right","inside right"]:["outside","inside","outside top","inside top","outside bottom","inside bottom"]}},"ticklabelposition")),n.noTicklabeloverflow||a("ticklabeloverflow",p.indexOf("inside")!==-1?"hide past domain":c==="category"||c==="multicategory"?"allow":"hide past div"),SU(t,i),Rbe(r,t,a,n),qbe(r,t,a,n),n.noHover||(c!=="category"&&a("hoverformat"),n.noUnifiedhovertitle||a("unifiedhovertitle.text"));var y=a("color"),m=y!==v9.color.dflt?y:l.color,b=s.label||i._dfltTitle[o];if(Ebe(r,t,a,c,n),!u)return t;a("title.text",b),op.coerceFont(a,"title.font",l,{overrideDflt:{size:op.bigFont(l.size),color:m}}),MU(r,t,a,c);var T=n.hasMinor;if(T&&(Cbe.newContainer(t,"minor"),MU(r,t,a,c,{isMinor:!0})),Lbe(r,t,a,c,n),kU(r,t,a,n),T){var _=n.isMinor;n.isMinor=!0,kU(r,t,a,n),n.isMinor=_}Fbe(r,t,a,{dfltColor:y,bgColor:n.bgColor,showGrid:n.showGrid,hasMinor:T,attributes:v9}),T&&t.ticklabelindex==null&&!t.minor.ticks&&!t.minor.showgrid&&delete t.minor,(t.showline||t.ticks)&&a("mirror");var x=c==="multicategory";if(!n.noTickson&&(c==="category"||x)&&(t.ticks||t.showgrid)&&(x?(a("tickson","boundaries"),delete t.ticklabelposition):a("tickson")),x){var w=a("showdividers");w&&(a("dividercolor"),a("dividerwidth"))}if(c==="date")if(Dbe(r,t,{name:"rangebreaks",inclusionAttr:"enabled",handleItemDefaults:Nbe}),!t.rangebreaks.length)delete t.rangebreaks;else{for(var k=0;k=2){var o="",l,s;if(i.length===2){for(l=0;l<2;l++)if(s=CU(i[l]),s){o=E5;break}}var u=a("pattern",o);if(u===E5)for(l=0;l<2;l++)s=CU(i[l]),s&&(r.bounds[l]=i[l]=s-1);if(u)for(l=0;l<2;l++)switch(s=i[l],u){case E5:if(!TU(s)){r.enabled=!1;return}if(s=+s,s!==Math.floor(s)||s<0||s>=7){r.enabled=!1;return}r.bounds[l]=i[l]=s;break;case Pbe:if(!TU(s)){r.enabled=!1;return}if(s=+s,s<0||s>24){r.enabled=!1;return}r.bounds[l]=i[l]=s;break}if(t.autorange===!1){var f=t.range;if(f[0]f[1]){r.enabled=!1;return}}else if(i[0]>f[0]&&i[1]{"use strict";var Bbe=ca(),q5=nr();LU.exports=function(r,t,a,n){var i=n.counterAxes||[],o=n.overlayableAxes||[],l=n.letter,s=n.grid,u=n.overlayingDomain,f,c,v,d,p,y;s&&(c=s._domains[l][s._axisMap[t._id]],f=s._anchors[t._id],c&&(v=s[l+"side"].split(" ")[0],d=s.domain[l][v==="right"||v==="top"?1:0])),c=c||[0,1],f=f||(Bbe(r.position)?"free":i[0]||"free"),v=v||(l==="x"?"bottom":"left"),d=d||0,p=0,y=!1;var m=q5.coerce(r,t,{anchor:{valType:"enumerated",values:["free"].concat(i),dflt:f}},"anchor"),b=q5.coerce(r,t,{side:{valType:"enumerated",values:l==="x"?["bottom","top"]:["left","right"],dflt:v}},"side");if(m==="free"){if(l==="y"){var T=a("autoshift");T&&(d=b==="left"?u[0]:u[1],y=t.automargin?t.automargin:!0,p=b==="left"?-3:3),a("shift",p)}a("position",d)}a("automargin",y);var _=!1;if(o.length&&(_=q5.coerce(r,t,{overlaying:{valType:"enumerated",values:[!1].concat(o),dflt:!1}},"overlaying")),!_){var x=a("domain",c);x[0]>x[1]-1/4096&&(t.domain=c),q5.noneOrAll(r.domain,t.domain,c),t.tickmode==="sync"&&(t.tickmode="auto")}return a("layer"),t}});var IU=B((pPe,BU)=>{"use strict";var bc=nr(),EU=Kt(),Ibe=ps().isUnifiedHover,Obe=g8(),qU=Ra(),Hbe=Ov(),FU=tl(),Ube=gU(),RU=h9(),Gbe=A1(),PU=d9(),m9=fn(),Ds=m9.id2name,NU=m9.name2id,Ybe=(jn(),vr(Jn)).AX_ID_PATTERN,zU=Pt(),F5=zU.traceIs,p9=zU.getComponentMethod;function R5(e,r,t){Array.isArray(e[r])?e[r].push(t):e[r]=[t]}BU.exports=function(r,t,a){var n=t.autotypenumbers,i={},o={},l={},s={},u={},f={},c={},v={},d={},p={},y,m;for(y=0;y{"use strict";var Vbe=ia(),OU=Pt(),P5=nr(),Go=Ca(),N5=Qa();HU.exports=function(r,t,a,n){var i=r._fullLayout;if(t.length===0){N5.redrawComponents(r);return}function o(m){var b=m.xaxis,T=m.yaxis;i._defs.select("#"+m.clipId+"> rect").call(Go.setTranslate,0,0).call(Go.setScale,1,1),m.plot.call(Go.setTranslate,b._offset,T._offset).call(Go.setScale,1,1);var _=m.plot.selectAll(".scatterlayer .trace");_.selectAll(".point").call(Go.setPointGroupScale,1,1),_.selectAll(".textpoint").call(Go.setTextPointsScale,1,1),_.call(Go.hideOutsideRangePoints,m)}function l(m,b){var T=m.plotinfo,_=T.xaxis,x=T.yaxis,w=_._length,k=x._length,M=!!m.xr1,C=!!m.yr1,E=[];if(M){var F=P5.simpleMap(m.xr0,_.r2l),P=P5.simpleMap(m.xr1,_.r2l),q=F[1]-F[0],z=P[1]-P[0];E[0]=(F[0]*(1-b)+b*P[0]-F[0])/(F[1]-F[0])*w,E[2]=w*(1-b+b*z/q),_.range[0]=_.l2r(F[0]*(1-b)+b*P[0]),_.range[1]=_.l2r(F[1]*(1-b)+b*P[1])}else E[0]=0,E[2]=w;if(C){var I=P5.simpleMap(m.yr0,x.r2l),Y=P5.simpleMap(m.yr1,x.r2l),V=I[1]-I[0],J=Y[1]-Y[0];E[1]=(I[1]*(1-b)+b*Y[1]-I[1])/(I[0]-I[1])*k,E[3]=k*(1-b+b*J/V),x.range[0]=_.l2r(I[0]*(1-b)+b*Y[0]),x.range[1]=x.l2r(I[1]*(1-b)+b*Y[1])}else E[1]=0,E[3]=k;N5.drawOne(r,_,{skipTitle:!0}),N5.drawOne(r,x,{skipTitle:!0}),N5.redrawComponents(r,[_._id,x._id]);var U=M?w/E[2]:1,G=C?k/E[3]:1,W=M?E[0]:0,j=C?E[1]:0,ae=M?E[0]/E[2]*w:0,pe=C?E[1]/E[3]*k:0,se=_._offset-ae,we=x._offset-pe;T.clipRect.call(Go.setTranslate,W,j).call(Go.setScale,1/U,1/G),T.plot.call(Go.setTranslate,se,we).call(Go.setScale,U,G),Go.setPointGroupScale(T.zoomScalePts,1/U,1/G),Go.setTextPointsScale(T.zoomScaleTxt,1/U,1/G)}var s;n&&(s=n());function u(){for(var m={},b=0;ba.duration?(u(),d=window.cancelAnimationFrame(y)):d=window.requestAnimationFrame(y)}return c=Date.now(),d=window.requestAnimationFrame(y),Promise.resolve()}});var lp=B(Bi=>{"use strict";var B5=ia(),GU=Pt(),xc=nr(),Xbe=oi(),Wbe=Ca(),YU=J2().getModuleCalcData,Rf=fn(),Gl=(jn(),vr(Jn)),Zbe=(pf(),vr(df)),xa=xc.ensureSingle;function z5(e,r,t){return xc.ensureSingle(e,r,t,function(a){a.datum(t)})}var _c=Gl.zindexSeparator;Bi.name="cartesian";Bi.attr=["xaxis","yaxis"];Bi.idRoot=["x","y"];Bi.idRegex=Gl.idRegex;Bi.attrRegex=Gl.attrRegex;Bi.attributes=dU();Bi.layoutAttributes=tl();Bi.supplyLayoutDefaults=IU();Bi.transitionAxes=UU();Bi.finalizeSubplots=function(e,r){var t=r._subplots,a=t.xaxis,n=t.yaxis,i=t.cartesian,o=i,l={},s={},u,f,c;for(u=0;u0){var d=v.id;if(d.indexOf(_c)!==-1)continue;d+=_c+(u+1),v=xc.extendFlat({},v,{id:d,plot:n._cartesianlayer.selectAll(".subplot").select("."+d)})}for(var p=[],y,m=0;m1&&(w+=_c+x),_.push(l+w),o=0;o1,c=r.mainplotinfo;if(!r.mainplot||f)if(u)r.xlines=xa(a,"path","xlines-above"),r.ylines=xa(a,"path","ylines-above"),r.xaxislayer=xa(a,"g","xaxislayer-above"),r.yaxislayer=xa(a,"g","yaxislayer-above");else{if(!o){var v=xa(a,"g","layer-subplot");r.shapelayer=xa(v,"g","shapelayer"),r.imagelayer=xa(v,"g","imagelayer"),c&&f?(r.minorGridlayer=c.minorGridlayer,r.gridlayer=c.gridlayer,r.zerolinelayer=c.zerolinelayer):(r.minorGridlayer=xa(a,"g","minor-gridlayer"),r.gridlayer=xa(a,"g","gridlayer"),r.zerolinelayer=xa(a,"g","zerolinelayer"));var d=xa(a,"g","layer-between");r.shapelayerBetween=xa(d,"g","shapelayer"),r.imagelayerBetween=xa(d,"g","imagelayer"),xa(a,"path","xlines-below"),xa(a,"path","ylines-below"),r.overlinesBelow=xa(a,"g","overlines-below"),xa(a,"g","xaxislayer-below"),xa(a,"g","yaxislayer-below"),r.overaxesBelow=xa(a,"g","overaxes-below")}r.overplot=xa(a,"g","overplot"),r.plot=xa(r.overplot,"g",n),c&&f?r.zerolinelayerAbove=c.zerolinelayerAbove:r.zerolinelayerAbove=xa(a,"g","zerolinelayer-above"),o||(r.xlines=xa(a,"path","xlines-above"),r.ylines=xa(a,"path","ylines-above"),r.overlinesAbove=xa(a,"g","overlines-above"),xa(a,"g","xaxislayer-above"),xa(a,"g","yaxislayer-above"),r.overaxesAbove=xa(a,"g","overaxes-above"),r.xlines=a.select(".xlines-"+l),r.ylines=a.select(".ylines-"+s),r.xaxislayer=a.select(".xaxislayer-"+l),r.yaxislayer=a.select(".yaxislayer-"+s))}else{var p=c.plotgroup,y=n+"-x",m=n+"-y";r.minorGridlayer=c.minorGridlayer,r.gridlayer=c.gridlayer,r.zerolinelayer=c.zerolinelayer,r.zerolinelayerAbove=c.zerolinelayerAbove,xa(c.overlinesBelow,"path",y),xa(c.overlinesBelow,"path",m),xa(c.overaxesBelow,"g",y),xa(c.overaxesBelow,"g",m),r.plot=xa(c.overplot,"g",n),xa(c.overlinesAbove,"path",y),xa(c.overlinesAbove,"path",m),xa(c.overaxesAbove,"g",y),xa(c.overaxesAbove,"g",m),r.xlines=p.select(".overlines-"+l).select("."+y),r.ylines=p.select(".overlines-"+s).select("."+m),r.xaxislayer=p.select(".overaxes-"+l).select("."+y),r.yaxislayer=p.select(".overaxes-"+s).select("."+m)}o||(u||(z5(r.minorGridlayer,"g",r.xaxis._id),z5(r.minorGridlayer,"g",r.yaxis._id),r.minorGridlayer.selectAll("g").map(function(b){return b[0]}).sort(Rf.idSort),z5(r.gridlayer,"g",r.xaxis._id),z5(r.gridlayer,"g",r.yaxis._id),r.gridlayer.selectAll("g").map(function(b){return b[0]}).sort(Rf.idSort)),r.xlines.style("fill","none").classed("crisp",!0),r.ylines.style("fill","none").classed("crisp",!0))}function WU(e,r){if(e){var t={};e.each(function(s){var u=s[0],f=B5.select(this);f.remove(),ZU(u,r),t[u]=!0});for(var a in r._plots)for(var n=r._plots[a],i=n.overlays||[],o=0;o{"use strict";var I5=yi();JU.exports={hasLines:I5.hasLines,hasMarkers:I5.hasMarkers,hasText:I5.hasText,isBubble:I5.isBubble,attributes:Ef(),layoutAttributes:gg(),supplyDefaults:fH(),crossTraceDefaults:Hw(),supplyLayoutDefaults:pH(),calc:Ch().calc,crossTraceCalc:GH(),arraysToCalcdata:Vw(),plot:tU(),colorbar:S5(),formatLabels:n9(),style:s9().style,styleOnSelect:s9().styleOnSelect,hoverPoints:uU(),selectPoints:vU(),animatable:!0,moduleType:"trace",name:"scatter",basePlotModule:lp(),categories:["cartesian","svg","symbols","errorBarsOK","showLegend","scatter-like","zoomScale"],meta:{}}});var QU=B((bPe,KU)=>{"use strict";var jbe=ia(),$be=Kt(),$U=sw(),y9=nr(),Kbe=y9.strScale,Qbe=y9.strRotate,exe=y9.strTranslate;KU.exports=function(r,t,a){var n=r.node(),i=$U[a.arrowhead||0],o=$U[a.startarrowhead||0],l=(a.arrowwidth||1)*(a.arrowsize||1),s=(a.arrowwidth||1)*(a.startarrowsize||1),u=t.indexOf("start")>=0,f=t.indexOf("end")>=0,c=i.backoff*l+a.standoff,v=o.backoff*s+a.startstandoff,d,p,y,m;if(n.nodeName==="line"){d={x:+r.attr("x1"),y:+r.attr("y1")},p={x:+r.attr("x2"),y:+r.attr("y2")};var b=d.x-p.x,T=d.y-p.y;if(y=Math.atan2(T,b),m=y+Math.PI,c&&v&&c+v>Math.sqrt(b*b+T*T)){I();return}if(c){if(c*c>b*b+T*T){I();return}var _=c*Math.cos(y),x=c*Math.sin(y);p.x+=_,p.y+=x,r.attr({x2:p.x,y2:p.y})}if(v){if(v*v>b*b+T*T){I();return}var w=v*Math.cos(y),k=v*Math.sin(y);d.x-=w,d.y-=k,r.attr({x1:d.x,y1:d.y})}}else if(n.nodeName==="path"){var M=n.getTotalLength(),C="";if(M{"use strict";var eG=ia(),g9=Pt(),rxe=oi(),Nf=nr(),b9=Nf.strTranslate,up=Qa(),wc=Kt(),yu=Ca(),rG=cu(),x9=Mi(),_9=Af(),sp=Bl(),txe=Ra().arrayEditor,axe=QU();nG.exports={draw:nxe,drawOne:tG,drawRaw:aG};function nxe(e){var r=e._fullLayout;r._infolayer.selectAll(".annotation").remove();for(var t=0;t2/3?ft="right":ft="center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[ft]}for(var ge=!1,Ne=["x","y"],ir=0;ir1)&&(Qe===Ve?(Xe=er.r2fraction(r["a"+qe]),(Xe<0||Xe>1)&&(ge=!0)):ge=!0),or=er._offset+er.r2p(r[qe]),Le=.5}else{var Me=lt==="domain";qe==="x"?(fe=r[qe],or=Me?er._offset+er._length*fe:or=l.l+l.w*fe):(fe=1-r[qe],or=Me?er._offset+er._length*fe:or=l.t+l.h*fe),Le=r.showarrow?.5:fe}if(r.showarrow){He.head=or;var Fe=r["a"+qe];if(Mr=yr*Ue(.5,r.xanchor)-Ge*Ue(.5,r.yanchor),Qe===Ve){var dr=up.getRefType(Qe);dr==="domain"?(qe==="y"&&(Fe=1-Fe),He.tail=er._offset+er._length*Fe):dr==="paper"?qe==="y"?(Fe=1-Fe,He.tail=l.t+l.h*Fe):He.tail=l.l+l.w*Fe:He.tail=er._offset+er.r2p(Fe),Ir=Mr}else He.tail=or+Fe,Ir=Mr+Fe;He.text=He.tail+Mr;var kr=o[qe==="x"?"width":"height"];if(Ve==="paper"&&(He.head=Nf.constrain(He.head,1,kr-1)),Qe==="pixel"){var fr=-Math.max(He.tail-3,He.text),_r=Math.min(He.tail+3,He.text)-kr;fr>0?(He.tail+=fr,He.text+=fr):_r>0&&(He.tail-=_r,He.text-=_r)}He.tail+=Lr,He.head+=Lr}else Mr=Sr*Ue(Le,Fr),Ir=Mr,He.text=or+Mr;He.text+=Lr,Mr+=Lr,Ir+=Lr,r["_"+qe+"padplus"]=Sr/2+Ir,r["_"+qe+"padminus"]=Sr/2-Ir,r["_"+qe+"size"]=Sr,r["_"+qe+"shift"]=Mr}if(ge){M.remove();return}var Vr=0,qr=0;if(r.align!=="left"&&(Vr=(te-se)*(r.align==="center"?.5:1)),r.valign!=="top"&&(qr=(Ee-we)*(r.valign==="middle"?.5:1)),ae)j.select("svg").attr({x:F+Vr-1,y:F+qr}).call(yu.setClipUrl,q?y:null,e);else{var Or=F+qr-pe.top,Ie=F+Vr-pe.left;V.call(x9.positionText,Ie,Or).call(yu.setClipUrl,q?y:null,e)}z.select("rect").call(yu.setRect,F,F,te,Ee),P.call(yu.setRect,C/2,C/2,de-C,Ae-C),M.call(yu.setTranslate,Math.round(m.x.text-de/2),Math.round(m.y.text-Ae/2)),_.attr({transform:"rotate("+b+","+m.x.text+","+m.y.text+")"});var Tr=function(at,ft){T.selectAll(".annotation-arrow-g").remove();var jr=m.x.head,it=m.y.head,le=m.x.tail+at,Te=m.y.tail+ft,sr=m.x.text+at,mr=m.y.text+ft,va=Nf.rotationXYMatrix(b,sr,mr),ka=Nf.apply2DTransform(va),Ea=Nf.apply2DTransform2(va),ln=+P.attr("width"),tn=+P.attr("height"),Yn=sr-.5*ln,vi=Yn+ln,Tn=mr-.5*tn,Li=Tn+tn,Hi=[[Yn,Tn,Yn,Li],[Yn,Li,vi,Li],[vi,Li,vi,Tn],[vi,Tn,Yn,Tn]].map(Ea);if(!Hi.reduce(function(za,xn){return za^!!Nf.segmentsIntersect(jr,it,jr+1e6,it+1e6,xn[0],xn[1],xn[2],xn[3])},!1)){Hi.forEach(function(za){var xn=Nf.segmentsIntersect(le,Te,jr,it,za[0],za[1],za[2],za[3]);xn&&(le=xn.x,Te=xn.y)});var Ei=r.arrowwidth,nt=r.arrowcolor,Da=r.arrowside,ha=T.append("g").style({opacity:wc.opacity(nt)}).classed("annotation-arrow-g",!0),qa=ha.append("path").attr("d","M"+le+","+Te+"L"+jr+","+it).style("stroke-width",Ei+"px").call(wc.stroke,wc.rgb(nt));if(axe(qa,Da,r),s.annotationPosition&&qa.node().parentNode&&!a){var Ha=jr,wa=it;if(r.standoff){var _a=Math.sqrt(Math.pow(jr-le,2)+Math.pow(it-Te,2));Ha+=r.standoff*(le-jr)/_a,wa+=r.standoff*(Te-it)/_a}var bn=ha.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(le-Ha)+","+(Te-wa),transform:b9(Ha,wa)}).style("stroke-width",Ei+6+"px").call(wc.stroke,"rgba(0,0,0,0)").call(wc.fill,"rgba(0,0,0,0)"),Qi,vn;sp.init({element:bn.node(),gd:e,prepFn:function(){var za=yu.getTranslate(M);Qi=za.x,vn=za.y,n&&n.autorange&&v(n._name+".autorange",!0),i&&i.autorange&&v(i._name+".autorange",!0)},moveFn:function(za,xn){var _n=ka(Qi,vn),Is=_n[0]+za,Ql=_n[1]+xn;M.call(yu.setTranslate,Is,Ql),d("x",Pf(n,za,"x",l,r)),d("y",Pf(i,xn,"y",l,r)),r.axref===r.xref&&d("ax",Pf(n,za,"ax",l,r)),r.ayref===r.yref&&d("ay",Pf(i,xn,"ay",l,r)),ha.attr("transform",b9(za,xn)),_.attr({transform:"rotate("+b+","+Is+","+Ql+")"})},doneFn:function(){g9.call("_guiRelayout",e,p());var za=document.querySelector(".js-notes-box-panel");za&&za.redraw(za.selectedObj)}})}}};if(r.showarrow&&Tr(0,0),x){var ur;sp.init({element:M.node(),gd:e,prepFn:function(){ur=_.attr("transform")},moveFn:function(at,ft){var jr="pointer";if(r.showarrow)r.axref===r.xref?d("ax",Pf(n,at,"ax",l,r)):d("ax",r.ax+at),r.ayref===r.yref?d("ay",Pf(i,ft,"ay",l.w,r)):d("ay",r.ay+ft),Tr(at,ft);else{if(a)return;var it,le;if(n)it=Pf(n,at,"x",l,r);else{var Te=r._xsize/l.w,sr=r.x+(r._xshift-r.xshift)/l.w-Te/2;it=sp.align(sr+at/l.w,Te,0,1,r.xanchor)}if(i)le=Pf(i,ft,"y",l,r);else{var mr=r._ysize/l.h,va=r.y-(r._yshift+r.yshift)/l.h-mr/2;le=sp.align(va-ft/l.h,mr,0,1,r.yanchor)}d("x",it),d("y",le),(!n||!i)&&(jr=sp.getCursor(n?.5:it,i?.5:le,r.xanchor,r.yanchor))}_.attr({transform:b9(at,ft)+ur}),_9(M,jr)},clickFn:function(at,ft){r.captureevents&&e.emit("plotly_clickannotation",k(ft))},doneFn:function(){_9(M),g9.call("_guiRelayout",e,p());var at=document.querySelector(".js-notes-box-panel");at&&at.redraw(at.selectedObj)}})}}s.annotationText?V.call(x9.makeEditable,{delegate:M,gd:e}).call(J).on("edit",function(G){r.text=G,this.call(J),d("text",G),n&&n.autorange&&v(n._name+".autorange",!0),i&&i.autorange&&v(i._name+".autorange",!0),g9.call("_guiRelayout",e,p())}):V.call(J)}});var fG=B((_Pe,uG)=>{"use strict";var iG=nr(),ixe=Pt(),oG=Ra().arrayEditor;uG.exports={hasClickToShow:oxe,onClick:lxe};function oxe(e,r){var t=sG(e,r);return t.on.length>0||t.explicitOff.length>0}function lxe(e,r){var t=sG(e,r),a=t.on,n=t.off.concat(t.explicitOff),i={},o=e._fullLayout.annotations,l,s;if(a.length||n.length){for(l=0;l{"use strict";var w9=nr(),Ph=Kt();cG.exports=function(r,t,a,n){n("opacity");var i=n("bgcolor"),o=n("bordercolor"),l=Ph.opacity(o);n("borderpad");var s=n("borderwidth"),u=n("showarrow");n("text",u?" ":a._dfltTitle.annotation),n("textangle"),w9.coerceFont(n,"font",a.font),n("width"),n("align");var f=n("height");if(f&&n("valign"),u){var c=n("arrowside"),v,d;c.indexOf("end")!==-1&&(v=n("arrowhead"),d=n("arrowsize")),c.indexOf("start")!==-1&&(n("startarrowhead",v),n("startarrowsize",d)),n("arrowcolor",l?t.bordercolor:Ph.defaultLine),n("arrowwidth",(l&&s||1)*2),n("standoff"),n("startstandoff")}var p=n("hovertext"),y=a.hoverlabel||{};if(p){var m=n("hoverlabel.bgcolor",y.bgcolor||(Ph.opacity(i)?Ph.rgb(i):Ph.defaultLine)),b=n("hoverlabel.bordercolor",y.bordercolor||Ph.contrast(m)),T=w9.extendFlat({},y.font);T.color||(T.color=b),w9.coerceFont(n,"hoverlabel.font",T)}n("captureevents",!!p)}});var hG=B((APe,vG)=>{"use strict";var T9=nr(),Ac=Qa(),sxe=Po(),uxe=A9(),fxe=Th();vG.exports=function(r,t){sxe(r,t,{name:"annotations",handleItemDefaults:cxe})};function cxe(e,r,t){function a(_,x){return T9.coerce(e,r,fxe,_,x)}var n=a("visible"),i=a("clicktoshow");if(n||i){uxe(e,r,t,a);for(var o=r.showarrow,l=["x","y"],s=[-10,-30],u={_fullLayout:t},f=0;f<2;f++){var c=l[f],v=Ac.coerceRef(e,r,u,c,"","paper");if(v!=="paper"){var d=Ac.getFromId(u,v);d._annIndices.push(r._index)}if(Ac.coercePosition(r,u,a,v,c,.5),o){var p="a"+c,y=Ac.coerceRef(e,r,u,p,"pixel",["pixel","paper"]);y!=="pixel"&&y!==v&&(y=r[p]="pixel");var m=y==="pixel"?s[f]:.4;Ac.coercePosition(r,u,a,y,p,m)}a(c+"anchor"),a(c+"shift")}if(T9.noneOrAll(e,r,["x","y"]),o&&T9.noneOrAll(e,r,["ax","ay"]),i){var b=a("xclick"),T=a("yclick");r._xclick=b===void 0?r.x:Ac.cleanPosition(b,u,r.xref),r._yclick=T===void 0?r.y:Ac.cleanPosition(T,u,r.yref)}}}});var mG=B((TPe,pG)=>{"use strict";var M9=nr(),Tc=Qa(),vxe=O5().draw;pG.exports=function(r){var t=r._fullLayout,a=M9.filterVisible(t.annotations);if(a.length&&r._fullData.length)return M9.syncOrAsync([vxe,hxe],r)};function hxe(e){var r=e._fullLayout;M9.filterVisible(r.annotations).forEach(function(t){var a=Tc.getFromId(e,t.xref),n=Tc.getFromId(e,t.yref),i=Tc.getRefType(t.xref),o=Tc.getRefType(t.yref);t._extremes={},i==="range"&&dG(t,a),o==="range"&&dG(t,n)})}function dG(e,r){var t=r._id,a=t.charAt(0),n=e[a],i=e["a"+a],o=e[a+"ref"],l=e["a"+a+"ref"],s=e["_"+a+"padplus"],u=e["_"+a+"padminus"],f={x:1,y:-1}[a]*e[a+"shift"],c=3*e.arrowsize*e.arrowwidth||0,v=c+f,d=c-f,p=3*e.startarrowsize*e.arrowwidth||0,y=p+f,m=p-f,b;if(l===o){var T=Tc.findExtremes(r,[r.r2c(n)],{ppadplus:v,ppadminus:d}),_=Tc.findExtremes(r,[r.r2c(i)],{ppadplus:Math.max(s,y),ppadminus:Math.max(u,m)});b={min:[T.min[0],_.min[0]],max:[T.max[0],_.max[0]]}}else y=i?y+i:y,m=i?m-i:m,b=Tc.findExtremes(r,[r.r2c(n)],{ppadplus:Math.max(s,v,y),ppadminus:Math.max(u,d,m)});e._extremes[t]=b}});var gG=B((MPe,yG)=>{"use strict";var dxe=ca(),pxe=hy();yG.exports=function(r,t,a,n){t=t||{};var i=a==="log"&&t.type==="linear",o=a==="linear"&&t.type==="log";if(!(i||o))return;var l=r._fullLayout.annotations,s=t._id.charAt(0),u,f;function c(d){var p=u[d],y=null;i?y=pxe(p,t.range):y=Math.pow(10,p),dxe(y)||(y=null),n(f+d,y)}for(var v=0;v{"use strict";var k9=O5(),bG=fG();xG.exports={moduleType:"component",name:"annotations",layoutAttributes:Th(),supplyLayoutDefaults:hG(),includeBasePlot:Y1()("annotations"),calcAutorange:mG(),draw:k9.draw,drawOne:k9.drawOne,drawRaw:k9.drawRaw,hasClickToShow:bG.hasClickToShow,onClick:bG.onClick,convertCoords:gG()}});var H5=B((SPe,wG)=>{"use strict";var Oa=Th(),mxe=ql().overrideAll,yxe=Ra().templatedArray;wG.exports=mxe(yxe("annotation",{visible:Oa.visible,x:{valType:"any"},y:{valType:"any"},z:{valType:"any"},ax:{valType:"number"},ay:{valType:"number"},xanchor:Oa.xanchor,xshift:Oa.xshift,yanchor:Oa.yanchor,yshift:Oa.yshift,text:Oa.text,textangle:Oa.textangle,font:Oa.font,width:Oa.width,height:Oa.height,opacity:Oa.opacity,align:Oa.align,valign:Oa.valign,bgcolor:Oa.bgcolor,bordercolor:Oa.bordercolor,borderpad:Oa.borderpad,borderwidth:Oa.borderwidth,showarrow:Oa.showarrow,arrowcolor:Oa.arrowcolor,arrowhead:Oa.arrowhead,startarrowhead:Oa.startarrowhead,arrowside:Oa.arrowside,arrowsize:Oa.arrowsize,startarrowsize:Oa.startarrowsize,arrowwidth:Oa.arrowwidth,standoff:Oa.standoff,startstandoff:Oa.startstandoff,hovertext:Oa.hovertext,hoverlabel:Oa.hoverlabel,captureevents:Oa.captureevents}),"calc","from-root")});var TG=B((CPe,AG)=>{"use strict";var S9=nr(),gxe=Qa(),bxe=Po(),xxe=A9(),_xe=H5();AG.exports=function(r,t,a){bxe(r,t,{name:"annotations",handleItemDefaults:wxe,fullLayout:a.fullLayout})};function wxe(e,r,t,a){function n(l,s){return S9.coerce(e,r,_xe,l,s)}function i(l){var s=l+"axis",u={_fullLayout:{}};return u._fullLayout[s]=t[s],gxe.coercePosition(r,u,n,l,l,.5)}var o=n("visible");o&&(xxe(e,r,a.fullLayout,n),i("x"),i("y"),i("z"),S9.noneOrAll(e,r,["x","y","z"]),r.xref="x",r.yref="y",r.zref="z",n("xanchor"),n("yanchor"),n("xshift"),n("yshift"),r.showarrow&&(r.axref="pixel",r.ayref="pixel",n("ax",-10),n("ay",-30),S9.noneOrAll(e,r,["ax","ay"])))}});var CG=B((DPe,SG)=>{"use strict";var MG=nr(),kG=Qa();SG.exports=function(r){for(var t=r.fullSceneLayout,a=t.annotations,n=0;n{"use strict";function C9(e,r){var t=[0,0,0,0],a,n;for(a=0;a<4;++a)for(n=0;n<4;++n)t[n]+=e[4*a+n]*r[a];return t}function Txe(e,r){var t=C9(e.projection,C9(e.view,C9(e.model,[r[0],r[1],r[2],1])));return t}DG.exports=Txe});var qG=B((EPe,EG)=>{"use strict";var Mxe=O5().drawRaw,kxe=LG(),Sxe=["x","y","z"];EG.exports=function(r){for(var t=r.fullSceneLayout,a=r.dataScale,n=t.annotations,i=0;i1){l=!0;break}}l?r.fullLayout._infolayer.select(".annotation-"+r.id+'[data-index="'+i+'"]').remove():(o._pdata=kxe(r.glplot.cameraParams,[t.xaxis.r2l(o.x)*a[0],t.yaxis.r2l(o.y)*a[1],t.zaxis.r2l(o.z)*a[2]]),Mxe(r.graphDiv,o,i,r.id,o._xa,o._ya))}}});var PG=B((qPe,RG)=>{"use strict";var Cxe=Pt(),FG=nr();RG.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:H5()}}},layoutAttributes:H5(),handleDefaults:TG(),includeBasePlot:Dxe,convert:CG(),draw:qG()};function Dxe(e,r){var t=Cxe.subplotsRegistry.gl3d;if(t)for(var a=t.attrRegex,n=Object.keys(e),i=0;i{"use strict";var FPe=(jn(),vr(Jn)),NG=Ai(),zG=Ef().line,Lxe=af().dash,Yl=Sn().extendFlat,Exe=Ra().templatedArray,RPe=(O1(),vr(I1)),Nh=Dl(),BG=Th(),{shapeTexttemplateAttrs:qxe,templatefallbackAttrs:Fxe}=Iv(),Rxe=Wy();IG.exports=Exe("shape",{visible:Yl({},Nh.visible,{editType:"calc+arraydraw"}),showlegend:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},legend:Yl({},Nh.legend,{editType:"calc+arraydraw"}),legendgroup:Yl({},Nh.legendgroup,{editType:"calc+arraydraw"}),legendgrouptitle:{text:Yl({},Nh.legendgrouptitle.text,{editType:"calc+arraydraw"}),font:NG({editType:"calc+arraydraw"}),editType:"calc+arraydraw"},legendrank:Yl({},Nh.legendrank,{editType:"calc+arraydraw"}),legendwidth:Yl({},Nh.legendwidth,{editType:"calc+arraydraw"}),type:{valType:"enumerated",values:["circle","rect","path","line"],editType:"calc+arraydraw"},layer:{valType:"enumerated",values:["below","above","between"],dflt:"above",editType:"arraydraw"},xref:Yl({},BG.xref,{arrayOk:!0}),xsizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},xanchor:{valType:"any",editType:"calc+arraydraw"},x0:{valType:"any",editType:"calc+arraydraw"},x1:{valType:"any",editType:"calc+arraydraw"},x0shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},x1shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},yref:Yl({},BG.yref,{arrayOk:!0}),ysizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},yanchor:{valType:"any",editType:"calc+arraydraw"},y0:{valType:"any",editType:"calc+arraydraw"},y1:{valType:"any",editType:"calc+arraydraw"},y0shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},y1shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},path:{valType:"string",editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},line:{color:Yl({},zG.color,{editType:"arraydraw"}),width:Yl({},zG.width,{editType:"calc+arraydraw"}),dash:Yl({},Lxe,{editType:"arraydraw"}),editType:"calc+arraydraw"},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd",editType:"arraydraw"},editable:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},label:{text:{valType:"string",dflt:"",editType:"arraydraw"},texttemplate:qxe({},{keys:Object.keys(Rxe)}),texttemplatefallback:Fxe({editType:"arraydraw"}),font:NG({editType:"calc+arraydraw",colorEditType:"arraydraw"}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"],editType:"arraydraw"},textangle:{valType:"angle",dflt:"auto",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],editType:"calc+arraydraw"},padding:{valType:"number",dflt:3,min:0,editType:"arraydraw"},editType:"arraydraw"},editType:"arraydraw"})});var HG=B((NPe,OG)=>{"use strict";var zh=nr(),Yo=Qa(),Pxe=Po(),Nxe=D9(),fp=Df();OG.exports=function(r,t){Pxe(r,t,{name:"shapes",handleItemDefaults:Bxe})};function zxe(e,r){return e?"bottom":r.indexOf("top")!==-1?"top":r.indexOf("bottom")!==-1?"bottom":"middle"}function Bxe(e,r,t){function a(_,x){return zh.coerce(e,r,Nxe,_,x)}r._isShape=!0;var n=a("visible");if(!n)return;var i=a("showlegend");a("legend"),a("legendgroup"),i&&(a("legendwidth"),a("legendgrouptitle.text"),zh.coerceFont(a,"legendgrouptitle.font"),a("legendrank"));var o=a("path"),l=o?"path":"rect",s=a("type",l),u=s!=="path";u&&delete r.path,a("editable"),a("layer"),a("opacity"),a("fillcolor"),a("fillrule");var f=a("line.width");f&&(a("line.color"),a("line.dash"));var c=a("xsizemode"),v=a("ysizemode");let d=[.25,.75],p=[0,10];["x","y"].forEach(_=>{var x=_+"anchor",w=_==="x"?c:v,k={_fullLayout:t},M,C,E,F;let P=_+"ref",q=e[P];if(Array.isArray(q)&&q.length>0){let z=fp.countDefiningCoords(s,o,_);F=Yo.coerceRefArray(e,r,k,_,void 0,"paper",z),r["_"+_+"refArray"]=!0}else F=Yo.coerceRef(e,r,k,_,void 0,"paper");if(Array.isArray(F))F.forEach(function(z){Yo.getRefType(z)==="range"&&(M=Yo.getFromId(k,z),M&&M._shapeIndices.indexOf(r._index)===-1&&M._shapeIndices.push(r._index))}),u&&[0,1].forEach(function(z){let I=F[z];Yo.getRefType(I)==="range"?(M=Yo.getFromId(k,I),C=fp.shapePositionToRange(M),E=fp.rangeToShapePosition(M),(M.type==="category"||M.type==="multicategory")&&a(_+z+"shift")):C=E=zh.identity;let V=_+z,J=e[V];if(e[V]=C(e[V],!0),w==="pixel"?a(V,p[z]):Yo.coercePosition(r,k,a,I,V,d[z]),r[V]=E(r[V]),e[V]=J,z===0&&w==="pixel"){let U=e[x];e[x]=C(e[x],!0),Yo.coercePosition(r,k,a,I,x,.25),r[x]=E(r[x]),e[x]=U}});else{if(Yo.getRefType(F)==="range"?(M=Yo.getFromId(k,F),M._shapeIndices.push(r._index),E=fp.rangeToShapePosition(M),C=fp.shapePositionToRange(M),u&&(M.type==="category"||M.type==="multicategory")&&(a(_+"0shift"),a(_+"1shift"))):C=E=zh.identity,u){let I=_+"0",Y=_+"1",V=e[I],J=e[Y];e[I]=C(e[I],!0),e[Y]=C(e[Y],!0),w==="pixel"?(a(I,p[0]),a(Y,p[1])):(Yo.coercePosition(r,k,a,F,I,d[0]),Yo.coercePosition(r,k,a,F,Y,d[1])),r[I]=E(r[I]),r[Y]=E(r[Y]),e[I]=V,e[Y]=J}if(w==="pixel"){let I=e[x];e[x]=C(e[x],!0),Yo.coercePosition(r,k,a,F,x,.25),r[x]=E(r[x]),e[x]=I}}}),u&&zh.noneOrAll(e,r,["x0","x1","y0","y1"]);var y=s==="line",m,b;if(u&&(m=a("label.texttemplate"),a("label.texttemplatefallback")),m||(b=a("label.text")),b||m){a("label.textangle");var T=a("label.textposition",y?"middle":"middle center");a("label.xanchor"),a("label.yanchor",zxe(y,T)),a("label.padding"),zh.coerceFont(a,"label.font",t.font)}}});var YG=B((zPe,GG)=>{"use strict";var Ixe=Kt(),UG=nr();function Oxe(e,r){return e?"bottom":r.indexOf("top")!==-1?"top":r.indexOf("bottom")!==-1?"bottom":"middle"}GG.exports=function(r,t,a){a("newshape.visible"),a("newshape.name"),a("newshape.showlegend"),a("newshape.legend"),a("newshape.legendwidth"),a("newshape.legendgroup"),a("newshape.legendgrouptitle.text"),UG.coerceFont(a,"newshape.legendgrouptitle.font"),a("newshape.legendrank"),a("newshape.drawdirection"),a("newshape.layer"),a("newshape.fillcolor"),a("newshape.fillrule"),a("newshape.opacity");var n=a("newshape.line.width");if(n){var i=(r||{}).plot_bgcolor||"#FFF";a("newshape.line.color",Ixe.contrast(i)),a("newshape.line.dash")}var o=r.dragmode==="drawline",l=a("newshape.label.text"),s=a("newshape.label.texttemplate");if(a("newshape.label.texttemplatefallback"),l||s){a("newshape.label.textangle");var u=a("newshape.label.textposition",o?"middle":"middle center");a("newshape.label.xanchor"),a("newshape.label.yanchor",Oxe(o,u)),a("newshape.label.padding"),UG.coerceFont(a,"newshape.label.font",t.font)}a("activeshape.fillcolor"),a("activeshape.opacity")}});var $G=B((BPe,jG)=>{"use strict";var L9=nr(),ml=Qa(),Ls=(b1(),vr(g1)),E9=Df();jG.exports=function(r){var t=r._fullLayout,a=L9.filterVisible(t.shapes);if(!(!a.length||!r._fullData.length))for(var n=0;n{o=ml.getFromId(r,c),i._extremes[o._id]=ml.findExtremes(o,v,XG(i))})}else i.xref!=="paper"&&s!=="domain"&&(o=ml.getFromId(r,i.xref),l=ZG(o,i,Ls.paramIsX),l&&(i._extremes[o._id]=ml.findExtremes(o,l,XG(i))));if(u==="array"){let f=VG(r,i,"y");Object.entries(f).forEach(([c,v])=>{o=ml.getFromId(r,c),i._extremes[o._id]=ml.findExtremes(o,v,WG(i))})}else i.yref!=="paper"&&u!=="domain"&&(o=ml.getFromId(r,i.yref),l=ZG(o,i,Ls.paramIsY),l&&(i._extremes[o._id]=ml.findExtremes(o,l,WG(i))))}};function VG(e,r,t){let a=r[t+"ref"],n=t==="x"?Ls.paramIsX:Ls.paramIsY;function i(c,v){c==="paper"||ml.getRefType(c)==="domain"||(o[c]||(o[c]=[]),o[c].push(v))}let o={};if(r.type==="path"&&r.path){let c=r.path.match(Ls.segmentRE)||[];for(var l=0,s=0;sp&&(i(a[l],y[p]),l++)}}else i(a[0],r[t+"0"]),i(a[1],r[t+"1"]);let u={};for(let c in o){let v=ml.getFromId(e,c);if(v){var f=v.type==="category"||v.type==="multicategory"?v.r2c:v.d2c;v.type==="date"&&(f=E9.decodeDate(f)),u[v._id]=o[c].map(f)}}return u}function XG(e){return JG(e.line.width,e.xsizemode,e.x0,e.x1,e.path,!1)}function WG(e){return JG(e.line.width,e.ysizemode,e.y0,e.y1,e.path,!0)}function JG(e,r,t,a,n,i){var o=e/2,l=i;if(r==="pixel"){var s=n?E9.extractPathCoords(n,i?Ls.paramIsY:Ls.paramIsX):[t,a],u=L9.aggNums(Math.max,null,s),f=L9.aggNums(Math.min,null,s),c=f<0?Math.abs(f)+o:o,v=u>0?u+o:o;return{ppad:o,ppadplus:l?c:v,ppadminus:l?v:c}}else return{ppad:o}}function ZG(e,r,t){var a=e._id.charAt(0)==="x"?"x":"y",n=e.type==="category"||e.type==="multicategory",i,o,l=0,s=0,u=n?e.r2c:e.d2c,f=r[a+"sizemode"]==="scaled";if(f?(i=r[a+"0"],o=r[a+"1"],n&&(l=r[a+"0shift"],s=r[a+"1shift"])):(i=r[a+"anchor"],o=r[a+"anchor"]),i!==void 0)return[u(i)+l,u(o)+s];if(r.path){var c=1/0,v=-1/0,d=r.path.match(Ls.segmentRE),p,y,m,b,T;for(e.type==="date"&&(u=E9.decodeDate(u)),p=0;pv&&(v=T)));if(v>=c)return[c,v]}}});var eY=B((IPe,QG)=>{"use strict";var KG=L3();QG.exports={moduleType:"component",name:"shapes",layoutAttributes:D9(),supplyLayoutDefaults:HG(),supplyDrawNewShapeDefaults:YG(),includeBasePlot:Y1()("shapes"),calcAutorange:$G(),draw:KG.draw,drawOne:KG.drawOne}});var q9=B((HPe,tY)=>{"use strict";var rY=(jn(),vr(Jn)),Hxe=Ra().templatedArray,OPe=(O1(),vr(I1));tY.exports=Hxe("image",{visible:{valType:"boolean",dflt:!0,editType:"arraydraw"},source:{valType:"string",editType:"arraydraw"},layer:{valType:"enumerated",values:["below","above"],dflt:"above",editType:"arraydraw"},sizex:{valType:"number",dflt:0,editType:"arraydraw"},sizey:{valType:"number",dflt:0,editType:"arraydraw"},sizing:{valType:"enumerated",values:["fill","contain","stretch"],dflt:"contain",editType:"arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},x:{valType:"any",dflt:0,editType:"arraydraw"},y:{valType:"any",dflt:0,editType:"arraydraw"},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left",editType:"arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],dflt:"top",editType:"arraydraw"},xref:{valType:"enumerated",values:["paper",rY.idRegex.x.toString()],dflt:"paper",editType:"arraydraw"},yref:{valType:"enumerated",values:["paper",rY.idRegex.y.toString()],dflt:"paper",editType:"arraydraw"},editType:"arraydraw"})});var nY=B((UPe,aY)=>{"use strict";var Uxe=nr(),F9=Qa(),Gxe=Po(),Yxe=q9(),Vxe="images";aY.exports=function(r,t){var a={name:Vxe,handleItemDefaults:Xxe};Gxe(r,t,a)};function Xxe(e,r,t){function a(v,d){return Uxe.coerce(e,r,Yxe,v,d)}var n=a("source"),i=a("visible",!!n);if(!i)return r;a("layer"),a("xanchor"),a("yanchor"),a("sizex"),a("sizey"),a("sizing"),a("opacity");for(var o={_fullLayout:t},l=["x","y"],s=0;s<2;s++){var u=l[s],f=F9.coerceRef(e,r,o,u,"paper",void 0);if(f!=="paper"){var c=F9.getFromId(o,f);c._imgIndices.push(r._index)}F9.coercePosition(r,o,a,f,u,0)}return r}});var sY=B((GPe,lY)=>{"use strict";var iY=ia(),Wxe=Ca(),Bh=Qa(),oY=fn(),Zxe=(pf(),vr(df));lY.exports=function(r){var t=r._fullLayout,a=[],n={},i=[],o,l;for(l=0;l{"use strict";var uY=ca(),Jxe=hy();fY.exports=function(r,t,a,n){t=t||{};var i=a==="log"&&t.type==="linear",o=a==="linear"&&t.type==="log";if(i||o){for(var l=r._fullLayout.images,s=t._id.charAt(0),u,f,c=0;c{"use strict";vY.exports={moduleType:"component",name:"images",layoutAttributes:q9(),supplyLayoutDefaults:nY(),includeBasePlot:Y1()("images"),draw:sY(),convertCoords:cY()}});var U5={};Ja(U5,{activeColor:()=>x_e,arrowOffsetX:()=>y_e,arrowPadX:()=>v_e,arrowSymbol:()=>w_e,autoMarginIdRoot:()=>l_e,blankHeaderOpts:()=>s_e,buttonClassName:()=>a_e,containerClassName:()=>$xe,dropdownButtonClassName:()=>t_e,dropdownButtonGroupClassName:()=>r_e,gapButton:()=>b_e,gapButtonHeader:()=>g_e,headerArrowClassName:()=>e_e,headerClassName:()=>Qxe,headerGroupClassName:()=>Kxe,hoverColor:()=>__e,itemRectClassName:()=>n_e,itemTextClassName:()=>i_e,menuIndexAttrName:()=>o_e,minHeight:()=>f_e,minWidth:()=>u_e,name:()=>jxe,rx:()=>h_e,ry:()=>d_e,textOffsetX:()=>p_e,textOffsetY:()=>m_e,textPadX:()=>c_e});var jxe,$xe,Kxe,Qxe,e_e,r_e,t_e,a_e,n_e,i_e,o_e,l_e,s_e,u_e,f_e,c_e,v_e,h_e,d_e,p_e,m_e,y_e,g_e,b_e,x_e,__e,w_e,G5=Za(()=>{"use strict";jxe="updatemenus",$xe="updatemenu-container",Kxe="updatemenu-header-group",Qxe="updatemenu-header",e_e="updatemenu-header-arrow",r_e="updatemenu-dropdown-button-group",t_e="updatemenu-dropdown-button",a_e="updatemenu-button",n_e="updatemenu-item-rect",i_e="updatemenu-item-text",o_e="updatemenu-active-index",l_e="updatemenu-",s_e={label:" "},u_e=30,f_e=30,c_e=24,v_e=16,h_e=2,d_e=2,p_e=12,m_e=3,y_e=4,g_e=5,b_e=2,x_e="#F4FAFF",__e="#F4FAFF",w_e={left:"\u25C4",right:"\u25BA",up:"\u25B2",down:"\u25BC"}});var R9=B((XPe,pY)=>{"use strict";var A_e=Ai(),T_e=vs(),M_e=Sn().extendFlat,k_e=ql().overrideAll,S_e=Zy(),dY=Ra().templatedArray,C_e=dY("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}});pY.exports=k_e(dY("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:C_e,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:M_e(S_e({editType:"arraydraw"}),{}),font:A_e({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:T_e.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")});var bY=B((WPe,gY)=>{"use strict";var Y5=nr(),mY=Po(),yY=R9(),D_e=(G5(),vr(U5)),L_e=D_e.name,E_e=yY.buttons;gY.exports=function(r,t){var a={name:L_e,handleItemDefaults:q_e};mY(r,t,a)};function q_e(e,r,t){function a(o,l){return Y5.coerce(e,r,yY,o,l)}var n=mY(e,r,{name:"buttons",handleItemDefaults:F_e}),i=a("visible",n.length>0);i&&(a("active"),a("direction"),a("type"),a("showactive"),a("x"),a("y"),Y5.noneOrAll(e,r,["x","y"]),a("xanchor"),a("yanchor"),a("pad.t"),a("pad.r"),a("pad.b"),a("pad.l"),Y5.coerceFont(a,"font",t.font),a("bgcolor",t.paper_bgcolor),a("bordercolor"),a("borderwidth"))}function F_e(e,r){function t(n,i){return Y5.coerce(e,r,E_e,n,i)}var a=t("visible",e.method==="skip"||Array.isArray(e.args));a&&(t("method"),t("args"),t("args2"),t("label"),t("execute"))}});var wY=B((ZPe,_Y)=>{"use strict";_Y.exports=cn;var Vl=ia(),xY=Kt(),Ih=Ca(),V5=nr();function cn(e,r,t){this.gd=e,this.container=r,this.id=t,this.position=null,this.translateX=null,this.translateY=null,this.hbar=null,this.vbar=null,this.bg=this.container.selectAll("rect.scrollbox-bg").data([0]),this.bg.exit().on(".drag",null).on("wheel",null).remove(),this.bg.enter().append("rect").classed("scrollbox-bg",!0).style("pointer-events","all").attr({opacity:0,x:0,y:0,width:0,height:0})}cn.barWidth=2;cn.barLength=20;cn.barRadius=2;cn.barPad=1;cn.barColor="#808BA4";cn.prototype.enable=function(r,t,a){var n=this.gd._fullLayout,i=n.width,o=n.height;this.position=r;var l=this.position.l,s=this.position.w,u=this.position.t,f=this.position.h,c=this.position.direction,v=c==="down",d=c==="left",p=c==="right",y=c==="up",m=s,b=f,T,_,x,w;!v&&!d&&!p&&!y&&(this.position.direction="down",v=!0);var k=v||y;k?(T=l,_=T+m,v?(x=u,w=Math.min(x+b,o),b=w-x):(w=u+b,x=Math.max(w-b,0),b=w-x)):(x=u,w=x+b,d?(_=l+m,T=Math.max(_-m,0),m=_-T):(T=l,_=Math.min(T+m,i),m=_-T)),this._box={l:T,t:x,w:m,h:b};var M=s>m,C=cn.barLength+2*cn.barPad,E=cn.barWidth+2*cn.barPad,F=l,P=u+f;P+E>o&&(P=o-E);var q=this.container.selectAll("rect.scrollbar-horizontal").data(M?[0]:[]);q.exit().on(".drag",null).remove(),q.enter().append("rect").classed("scrollbar-horizontal",!0).call(xY.fill,cn.barColor),M?(this.hbar=q.attr({rx:cn.barRadius,ry:cn.barRadius,x:F,y:P,width:C,height:E}),this._hbarXMin=F+C/2,this._hbarTranslateMax=m-C):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var z=f>b,I=cn.barWidth+2*cn.barPad,Y=cn.barLength+2*cn.barPad,V=l+s,J=u;V+I>i&&(V=i-I);var U=this.container.selectAll("rect.scrollbar-vertical").data(z?[0]:[]);U.exit().on(".drag",null).remove(),U.enter().append("rect").classed("scrollbar-vertical",!0).call(xY.fill,cn.barColor),z?(this.vbar=U.attr({rx:cn.barRadius,ry:cn.barRadius,x:V,y:J,width:I,height:Y}),this._vbarYMin=J+Y/2,this._vbarTranslateMax=b-Y):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var G=this.id,W=T-.5,j=z?_+I+.5:_+.5,ae=x-.5,pe=M?w+E+.5:w+.5,se=n._topdefs.selectAll("#"+G).data(M||z?[0]:[]);if(se.exit().remove(),se.enter().append("clipPath").attr("id",G).append("rect"),M||z?(this._clipRect=se.select("rect").attr({x:Math.floor(W),y:Math.floor(ae),width:Math.ceil(j)-Math.floor(W),height:Math.ceil(pe)-Math.floor(ae)}),this.container.call(Ih.setClipUrl,G,this.gd),this.bg.attr({x:l,y:u,width:s,height:f})):(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(Ih.setClipUrl,null),delete this._clipRect),M||z){var we=Vl.behavior.drag().on("dragstart",function(){Vl.event.sourceEvent.preventDefault()}).on("drag",this._onBoxDrag.bind(this));this.container.on("wheel",null).on("wheel",this._onBoxWheel.bind(this)).on(".drag",null).call(we);var te=Vl.behavior.drag().on("dragstart",function(){Vl.event.sourceEvent.preventDefault(),Vl.event.sourceEvent.stopPropagation()}).on("drag",this._onBarDrag.bind(this));M&&this.hbar.on(".drag",null).call(te),z&&this.vbar.on(".drag",null).call(te)}this.setTranslate(t,a)};cn.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(Ih.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)};cn.prototype._onBoxDrag=function(){var r=this.translateX,t=this.translateY;this.hbar&&(r-=Vl.event.dx),this.vbar&&(t-=Vl.event.dy),this.setTranslate(r,t)};cn.prototype._onBoxWheel=function(){var r=this.translateX,t=this.translateY;this.hbar&&(r+=Vl.event.deltaY),this.vbar&&(t+=Vl.event.deltaY),this.setTranslate(r,t)};cn.prototype._onBarDrag=function(){var r=this.translateX,t=this.translateY;if(this.hbar){var a=r+this._hbarXMin,n=a+this._hbarTranslateMax,i=V5.constrain(Vl.event.x,a,n),o=(i-a)/(n-a),l=this.position.w-this._box.w;r=o*l}if(this.vbar){var s=t+this._vbarYMin,u=s+this._vbarTranslateMax,f=V5.constrain(Vl.event.y,s,u),c=(f-s)/(u-s),v=this.position.h-this._box.h;t=c*v}this.setTranslate(r,t)};cn.prototype.setTranslate=function(r,t){var a=this.position.w-this._box.w,n=this.position.h-this._box.h;if(r=V5.constrain(r||0,0,a),t=V5.constrain(t||0,0,n),this.translateX=r,this.translateY=t,this.container.call(Ih.setTranslate,this._box.l-this.position.l-r,this._box.t-this.position.t-t),this._clipRect&&this._clipRect.attr({x:Math.floor(this.position.l+r-.5),y:Math.floor(this.position.t+t-.5)}),this.hbar){var i=r/a;this.hbar.call(Ih.setTranslate,r+i*this._hbarTranslateMax,t)}if(this.vbar){var o=t/n;this.vbar.call(Ih.setTranslate,r,t+o*this._vbarTranslateMax)}}});var qY=B((JPe,EY)=>{"use strict";var Oh=ia(),cp=oi(),vp=Kt(),Hh=Ca(),Vo=nr(),X5=Mi(),R_e=Ra().arrayEditor,TY=(Ni(),vr(Pi)).LINE_SPACING,Nt=(G5(),vr(U5)),P_e=wY();EY.exports=function(r){var t=r._fullLayout,a=Vo.filterVisible(t[Nt.name]);function n(v){cp.autoMargin(r,DY(v))}var i=t._menulayer.selectAll("g."+Nt.containerClassName).data(a.length>0?[0]:[]);if(i.enter().append("g").classed(Nt.containerClassName,!0).style("cursor","pointer"),i.exit().each(function(){Oh.select(this).selectAll("g."+Nt.headerGroupClassName).each(n)}).remove(),a.length!==0){var o=i.selectAll("g."+Nt.headerGroupClassName).data(a,N_e);o.enter().append("g").classed(Nt.headerGroupClassName,!0);for(var l=Vo.ensureSingle(i,"g",Nt.dropdownButtonGroupClassName,function(v){v.style("pointer-events","all")}),s=0;s{"use strict";var G_e=(G5(),vr(U5));FY.exports={moduleType:"component",name:G_e.name,layoutAttributes:R9(),supplyLayoutDefaults:bY(),draw:qY()}});var dp={};Ja(dp,{arrowOffsetX:()=>u4e,autoMarginIdRoot:()=>i4e,containerClassName:()=>V_e,currentValueClass:()=>t4e,currentValueInset:()=>N4e,currentValuePadding:()=>P4e,gripBgActiveColor:()=>M4e,gripBgColor:()=>T4e,gripBorder:()=>_4e,gripBorderColor:()=>A4e,gripBorderWidth:()=>w4e,gripHeight:()=>x4e,gripRadius:()=>g4e,gripRectClass:()=>j_e,gripWidth:()=>b4e,groupClassName:()=>X_e,inputAreaClass:()=>W_e,inputProxyClass:()=>K_e,labelClass:()=>r4e,labelGroupClass:()=>e4e,labelOffset:()=>S4e,labelPadding:()=>k4e,labelsClass:()=>Q_e,menuIndexAttrName:()=>n4e,minHeight:()=>l4e,minWidth:()=>o4e,minorTickColor:()=>F4e,minorTickLength:()=>R4e,minorTickOffset:()=>q4e,name:()=>Y_e,railBgColor:()=>p4e,railBorder:()=>v4e,railBorderColor:()=>d4e,railBorderWidth:()=>h4e,railHeight:()=>a4e,railInset:()=>m4e,railRadius:()=>f4e,railRectClass:()=>Z_e,railTouchRectClass:()=>J_e,railWidth:()=>c4e,stepInset:()=>y4e,textPadX:()=>s4e,tickColor:()=>D4e,tickLength:()=>E4e,tickOffset:()=>L4e,tickRectClass:()=>$_e,tickWidth:()=>C4e});var Y_e,V_e,X_e,W_e,Z_e,J_e,j_e,$_e,K_e,Q_e,e4e,r4e,t4e,a4e,n4e,i4e,o4e,l4e,s4e,u4e,f4e,c4e,v4e,h4e,d4e,p4e,m4e,y4e,g4e,b4e,x4e,_4e,w4e,A4e,T4e,M4e,k4e,S4e,C4e,D4e,L4e,E4e,q4e,F4e,R4e,P4e,N4e,pp=Za(()=>{"use strict";Y_e="sliders",V_e="slider-container",X_e="slider-group",W_e="slider-input-area",Z_e="slider-rail-rect",J_e="slider-rail-touch-rect",j_e="slider-grip-rect",$_e="slider-tick-rect",K_e="slider-input-proxy",Q_e="slider-labels",e4e="slider-label-group",r4e="slider-label",t4e="slider-current-value",a4e=5,n4e="slider-active-index",i4e="slider-",o4e=30,l4e=30,s4e=40,u4e=4,f4e=2,c4e=5,v4e=4,h4e=1,d4e="#bec8d9",p4e="#f8fafc",m4e=8,y4e=10,g4e=10,b4e=20,x4e=20,_4e=20,w4e=1,A4e="#bec8d9",T4e="#f6f8fa",M4e="#dbdde0",k4e=8,S4e=0,C4e=1,D4e="#333",L4e=25,E4e=7,q4e=25,F4e="#333",R4e=4,P4e=8,N4e=0});var B9=B(($Pe,zY)=>{"use strict";var PY=Ai(),z4e=Zy(),B4e=Sn().extendDeepAll,I4e=ql().overrideAll,O4e=O2(),NY=Ra().templatedArray,Mc=(pp(),vr(dp)),H4e=NY("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}});zY.exports=I4e(NY("slider",{visible:{valType:"boolean",dflt:!0},active:{valType:"number",min:0,dflt:0},steps:H4e,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:B4e(z4e({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:O4e.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:PY({})},font:PY({}),activebgcolor:{valType:"color",dflt:Mc.gripBgActiveColor},bgcolor:{valType:"color",dflt:Mc.railBgColor},bordercolor:{valType:"color",dflt:Mc.railBorderColor},borderwidth:{valType:"number",min:0,dflt:Mc.railBorderWidth},ticklen:{valType:"number",min:0,dflt:Mc.tickLength},tickcolor:{valType:"color",dflt:Mc.tickColor},tickwidth:{valType:"number",min:0,dflt:1},minorticklen:{valType:"number",min:0,dflt:Mc.minorTickLength}}),"arraydraw","from-root")});var HY=B((KPe,OY)=>{"use strict";var Uh=nr(),BY=Po(),IY=B9(),U4e=(pp(),vr(dp)),G4e=U4e.name,Y4e=IY.steps;OY.exports=function(r,t){BY(r,t,{name:G4e,handleItemDefaults:V4e})};function V4e(e,r,t){function a(c,v){return Uh.coerce(e,r,IY,c,v)}for(var n=BY(e,r,{name:"steps",handleItemDefaults:X4e}),i=0,o=0;o{"use strict";var Xl=ia(),W5=oi(),zf=Kt(),Wl=Ca(),Xo=nr(),W4e=Xo.strTranslate,mp=Mi(),Z4e=Ra().arrayEditor,Jt=(pp(),vr(dp)),H9=(Ni(),vr(Pi)),YY=H9.LINE_SPACING,I9=H9.FROM_TL,O9=H9.FROM_BR;jY.exports=function(r){var t=r._context.staticPlot,a=r._fullLayout,n=J4e(a,r),i=a._infolayer.selectAll("g."+Jt.containerClassName).data(n.length>0?[0]:[]);i.enter().append("g").classed(Jt.containerClassName,!0).style("cursor",t?null:"ew-resize");function o(f){f._commandObserver&&(f._commandObserver.remove(),delete f._commandObserver),W5.autoMargin(r,VY(f))}if(i.exit().each(function(){Xl.select(this).selectAll("g."+Jt.groupClassName).each(o)}).remove(),n.length!==0){var l=i.selectAll("g."+Jt.groupClassName).data(n,j4e);l.enter().append("g").classed(Jt.groupClassName,!0),l.exit().each(o).remove();for(var s=0;s0&&(l=l.transition().duration(r.transition.duration).ease(r.transition.easing)),l.attr("transform",W4e(o-Jt.gripWidth*.5,r._dims.currentValueTotalHeight))}}function U9(e,r){var t=e._dims;return t.inputAreaStart+Jt.stepInset+(t.inputAreaLength-2*Jt.stepInset)*Math.min(1,Math.max(0,r))}function GY(e,r){var t=e._dims;return Math.min(1,Math.max(0,(r-Jt.stepInset-t.inputAreaStart)/(t.inputAreaLength-2*Jt.stepInset-2*t.inputAreaStart)))}function a6e(e,r,t){var a=t._dims,n=Xo.ensureSingle(e,"rect",Jt.railTouchRectClass,function(i){i.call(ZY,r,e,t).style("pointer-events","all")});n.attr({width:a.inputAreaLength,height:Math.max(a.inputAreaWidth,Jt.tickOffset+t.ticklen+a.labelHeight)}).call(zf.fill,t.bgcolor).attr("opacity",0),Wl.setTranslate(n,0,a.currentValueTotalHeight)}function n6e(e,r){var t=r._dims,a=t.inputAreaLength-Jt.railInset*2,n=Xo.ensureSingle(e,"rect",Jt.railRectClass);n.attr({width:a,height:Jt.railWidth,rx:Jt.railRadius,ry:Jt.railRadius,"shape-rendering":"crispEdges"}).call(zf.stroke,r.bordercolor).call(zf.fill,r.bgcolor).style("stroke-width",r.borderwidth+"px"),Wl.setTranslate(n,Jt.railInset,(t.inputAreaWidth-Jt.railWidth)*.5+t.currentValueTotalHeight)}});var QY=B((eNe,KY)=>{"use strict";var i6e=(pp(),vr(dp));KY.exports={moduleType:"component",name:i6e.name,layoutAttributes:B9(),supplyLayoutDefaults:HY(),draw:$Y()}});var J5=B((rNe,rV)=>{"use strict";var eV=vs();rV.exports={bgcolor:{valType:"color",dflt:eV.background,editType:"plot"},bordercolor:{valType:"color",dflt:eV.defaultLine,editType:"plot"},borderwidth:{valType:"integer",dflt:0,min:0,editType:"plot"},autorange:{valType:"boolean",dflt:!0,editType:"calc",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},range:{valType:"info_array",items:[{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}},{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}}],editType:"calc",impliedEdits:{autorange:!1}},thickness:{valType:"number",dflt:.15,min:0,max:1,editType:"plot"},visible:{valType:"boolean",dflt:!0,editType:"calc"},editType:"calc"}});var G9=B((tNe,tV)=>{"use strict";tV.exports={_isSubplotObj:!0,rangemode:{valType:"enumerated",values:["auto","fixed","match"],dflt:"match",editType:"calc"},range:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},editType:"calc"}});var j5={};Ja(j5,{bgClassName:()=>s6e,containerClassName:()=>l6e,extraPad:()=>E6e,grabAreaCursor:()=>k6e,grabAreaFill:()=>M6e,grabAreaMaxClassName:()=>y6e,grabAreaMinClassName:()=>d6e,grabAreaWidth:()=>S6e,grabberMaxClassName:()=>m6e,grabberMinClassName:()=>h6e,handleMaxClassName:()=>g6e,handleMinClassName:()=>p6e,handleRadius:()=>D6e,handleStrokeWidth:()=>L6e,handleWidth:()=>C6e,maskColor:()=>_6e,maskMaxClassName:()=>c6e,maskMaxOppAxisClassName:()=>x6e,maskMinClassName:()=>f6e,maskMinOppAxisClassName:()=>b6e,maskOppAxisColor:()=>w6e,name:()=>o6e,rangePlotClassName:()=>u6e,slideBoxClassName:()=>v6e,slideBoxCursor:()=>T6e,slideBoxFill:()=>A6e});var o6e,l6e,s6e,u6e,f6e,c6e,v6e,h6e,d6e,p6e,m6e,y6e,g6e,b6e,x6e,_6e,w6e,A6e,T6e,M6e,k6e,S6e,C6e,D6e,L6e,E6e,$5=Za(()=>{"use strict";o6e="rangeslider",l6e="rangeslider-container",s6e="rangeslider-bg",u6e="rangeslider-rangeplot",f6e="rangeslider-mask-min",c6e="rangeslider-mask-max",v6e="rangeslider-slidebox",h6e="rangeslider-grabber-min",d6e="rangeslider-grabarea-min",p6e="rangeslider-handle-min",m6e="rangeslider-grabber-max",y6e="rangeslider-grabarea-max",g6e="rangeslider-handle-max",b6e="rangeslider-mask-min-opp-axis",x6e="rangeslider-mask-max-opp-axis",_6e="rgba(0,0,0,0.4)",w6e="rgba(0,0,0,0.2)",A6e="transparent",T6e="ew-resize",M6e="transparent",k6e="col-resize",S6e=10,C6e=4,D6e=1,L6e=1,E6e=15});var iV=B(Q5=>{"use strict";var q6e=fn(),F6e=Mi(),aV=($5(),vr(j5)),R6e=(Ni(),vr(Pi)).LINE_SPACING,K5=aV.name;function nV(e){var r=e&&e[K5];return r&&r.visible}Q5.isVisible=nV;Q5.makeData=function(e){for(var r=q6e.list({_fullLayout:e},"x",!0),t=e.margin,a=[],n=0;n{"use strict";var eb=nr(),oV=Ra(),lV=fn(),P6e=J5(),N6e=G9();sV.exports=function(r,t,a){var n=r[a],i=t[a];if(!(n.rangeslider||t._requestRangeslider[i._id]))return;eb.isPlainObject(n.rangeslider)||(n.rangeslider={});var o=n.rangeslider,l=oV.newContainer(i,"rangeslider");function s(w,k){return eb.coerce(o,l,P6e,w,k)}var u,f;function c(w,k){return eb.coerce(u,f,N6e,w,k)}var v=s("visible");if(v){s("bgcolor",t.plot_bgcolor),s("bordercolor"),s("borderwidth"),s("thickness"),s("autorange",!i.isValidRange(o.range)),s("range");var d=t._subplots;if(d)for(var p=d.cartesian.filter(function(w){return w.slice(0,Math.max(0,w.indexOf("y")))===lV.name2id(a)}).map(function(w){return w.slice(w.indexOf("y"),w.length)}),y=eb.simpleMap(p,lV.id2name),m=0;m{"use strict";var z6e=fn().list,B6e=lh().getAutoRange,I6e=($5(),vr(j5));fV.exports=function(r){for(var t=z6e(r,"x",!0),a=0;a{"use strict";var rb=ia(),O6e=Pt(),H6e=oi(),An=nr(),tb=An.strTranslate,hV=Ca(),Bf=Kt(),U6e=a1(),G6e=lp(),Y9=fn(),Y6e=Bl(),V6e=Af(),ra=($5(),vr(j5));dV.exports=function(e){for(var r=e._fullLayout,t=r._rangeSliderData,a=0;a=U.max)V=P[J+1];else if(Y=U.pmax)V=P[J+1];else if(Y0?e.touches[0].clientX:0}function X6e(e,r,t,a){if(r._context.staticPlot)return;var n=e.select("rect."+ra.slideBoxClassName).node(),i=e.select("rect."+ra.grabAreaMinClassName).node(),o=e.select("rect."+ra.grabAreaMaxClassName).node();function l(){var s=rb.event,u=s.target,f=vV(s),c=f-e.node().getBoundingClientRect().left,v=a.d2p(t._rl[0]),d=a.d2p(t._rl[1]),p=Y6e.coverSlip();this.addEventListener("touchmove",y),this.addEventListener("touchend",m),p.addEventListener("mousemove",y),p.addEventListener("mouseup",m);function y(b){var T=vV(b),_=+T-f,x,w,k;switch(u){case n:if(k="ew-resize",v+_>t._length||d+_<0)return;x=v+_,w=d+_;break;case i:if(k="col-resize",v+_>t._length)return;x=v+_,w=d;break;case o:if(k="col-resize",d+_<0)return;x=v,w=d+_;break;default:k="ew-resize",x=c,w=c+_;break}if(w{"use strict";var t7e=nr(),a7e=J5(),n7e=G9(),V9=iV();mV.exports={moduleType:"component",name:"rangeslider",schema:{subplots:{xaxis:{rangeslider:t7e.extendFlat({},a7e,{yaxis:n7e})}}},layoutAttributes:J5(),handleDefaults:uV(),calcAutorange:cV(),draw:pV(),isVisible:V9.isVisible,makeData:V9.makeData,autoMarginOpts:V9.autoMarginOpts}});var ab=B((sNe,bV)=>{"use strict";var i7e=Ai(),gV=vs(),o7e=Ra().templatedArray,l7e=o7e("button",{visible:{valType:"boolean",dflt:!0,editType:"plot"},step:{valType:"enumerated",values:["month","year","day","hour","minute","second","all"],dflt:"month",editType:"plot"},stepmode:{valType:"enumerated",values:["backward","todate"],dflt:"backward",editType:"plot"},count:{valType:"number",min:0,dflt:1,editType:"plot"},label:{valType:"string",editType:"plot"},editType:"plot"});bV.exports={visible:{valType:"boolean",editType:"plot"},buttons:l7e,x:{valType:"number",min:-2,max:3,editType:"plot"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"plot"},y:{valType:"number",min:-2,max:3,editType:"plot"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"bottom",editType:"plot"},font:i7e({editType:"plot"}),bgcolor:{valType:"color",dflt:gV.lightLine,editType:"plot"},activecolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:gV.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"}});var X9={};Ja(X9,{darkAmount:()=>h7e,lightAmount:()=>v7e,minButtonWidth:()=>u7e,rx:()=>f7e,ry:()=>c7e,yPad:()=>s7e});var s7e,u7e,f7e,c7e,v7e,h7e,W9=Za(()=>{"use strict";s7e=.02,u7e=30,f7e=3,c7e=3,v7e=25,h7e=10});var wV=B((uNe,_V)=>{"use strict";var nb=nr(),d7e=Kt(),p7e=Ra(),m7e=Po(),xV=ab(),Z9=(W9(),vr(X9));_V.exports=function(r,t,a,n,i){var o=r.rangeselector||{},l=p7e.newContainer(t,"rangeselector");function s(d,p){return nb.coerce(o,l,xV,d,p)}var u=m7e(o,l,{name:"buttons",handleItemDefaults:y7e,calendar:i}),f=s("visible",u.length>0);if(f){var c=g7e(t,a,n);s("x",c[0]),s("y",c[1]),nb.noneOrAll(r,t,["x","y"]),s("xanchor"),s("yanchor"),nb.coerceFont(s,"font",a.font);var v=s("bgcolor");s("activecolor",d7e.contrast(v,Z9.lightAmount,Z9.darkAmount)),s("bordercolor"),s("borderwidth")}};function y7e(e,r,t,a){var n=a.calendar;function i(s,u){return nb.coerce(e,r,xV.buttons,s,u)}var o=i("visible");if(o){var l=i("step");l!=="all"&&(n&&n!=="gregorian"&&(l==="month"||l==="year")?r.stepmode="backward":i("stepmode"),i("count")),i("label")}}function g7e(e,r,t){for(var a=t.filter(function(l){return r[l].anchor===e._id}),n=0,i=0;i{"use strict";var b7e=o_(),x7e=nr().titleCase;AV.exports=function(r,t){var a=r._name,n={};if(t.step==="all")n[a+".autorange"]=!0;else{var i=_7e(r,t);n[a+".range[0]"]=i[0],n[a+".range[1]"]=i[1]}return n};function _7e(e,r){var t=e.range,a=new Date(e.r2l(t[1])),n=r.step,i=b7e["utc"+x7e(n)],o=r.count,l;switch(r.stepmode){case"backward":l=e.l2r(+i.offset(a,-o));break;case"todate":var s=i.offset(a,-o);l=e.l2r(+i.ceil(s));break}var u=t[1];return[l,u]}});var qV=B((cNe,EV)=>{"use strict";var ob=ia(),w7e=Pt(),A7e=oi(),MV=Kt(),LV=Ca(),gu=nr(),kV=gu.strTranslate,ib=Mi(),T7e=fn(),$9=(Ni(),vr(Pi)),SV=$9.LINE_SPACING,CV=$9.FROM_TL,DV=$9.FROM_BR,j9=(W9(),vr(X9)),M7e=TV();EV.exports=function(r){var t=r._fullLayout,a=t._infolayer.selectAll(".rangeselector").data(k7e(r),S7e);a.enter().append("g").classed("rangeselector",!0),a.exit().remove(),a.style({cursor:"pointer","pointer-events":"all"}),a.each(function(n){var i=ob.select(this),o=n,l=o.rangeselector,s=i.selectAll("g.button").data(gu.filterVisible(l.buttons));s.enter().append("g").classed("button",!0),s.exit().remove(),s.each(function(u){var f=ob.select(this),c=M7e(o,u);u._isActive=C7e(o,u,c),f.call(J9,l,u),f.call(L7e,l,u,r),f.on("click",function(){r._dragged||w7e.call("_guiRelayout",r,c)}),f.on("mouseover",function(){u._isHovered=!0,f.call(J9,l,u)}),f.on("mouseout",function(){u._isHovered=!1,f.call(J9,l,u)})}),q7e(r,s,l,o._name,i)})};function k7e(e){for(var r=T7e.list(e,"x",!0),t=[],a=0;a{"use strict";FV.exports={moduleType:"component",name:"rangeselector",schema:{subplots:{xaxis:{rangeselector:ab()}}},layoutAttributes:ab(),handleDefaults:wV(),draw:qV()}});var lb=B(K9=>{"use strict";var PV=Sn().extendFlat;K9.attributes=function(e,r){e=e||{},r=r||{};var t={valType:"info_array",editType:e.editType,items:[{valType:"number",min:0,max:1,editType:e.editType},{valType:"number",min:0,max:1,editType:e.editType}],dflt:[0,1]},a=e.name?e.name+" ":"",n=e.trace?"trace":"subplot",i=r.description?" "+r.description:"",o={x:PV({},t,{}),y:PV({},t,{}),editType:e.editType};return e.noGridCell||(o.row={valType:"integer",min:0,dflt:0,editType:e.editType},o.column={valType:"integer",min:0,dflt:0,editType:e.editType}),o};K9.defaults=function(e,r,t,a){var n=a&&a.x||[0,1],i=a&&a.y||[0,1],o=r.grid;if(o){var l=t("domain.column");l!==void 0&&(l{"use strict";var F7e=nr(),R7e=(Nv(),vr(B2)).counter,P7e=lb().attributes,NV=(jn(),vr(Jn)).idRegex,N7e=Ra(),Q9={rows:{valType:"integer",min:1,editType:"plot"},roworder:{valType:"enumerated",values:["top to bottom","bottom to top"],dflt:"top to bottom",editType:"plot"},columns:{valType:"integer",min:1,editType:"plot"},subplots:{valType:"info_array",freeLength:!0,dimensions:2,items:{valType:"enumerated",values:[R7e("xy").toString(),""],editType:"plot"},editType:"plot"},xaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[NV.x.toString(),""],editType:"plot"},editType:"plot"},yaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[NV.y.toString(),""],editType:"plot"},editType:"plot"},pattern:{valType:"enumerated",values:["independent","coupled"],dflt:"coupled",editType:"plot"},xgap:{valType:"number",min:0,max:1,editType:"plot"},ygap:{valType:"number",min:0,max:1,editType:"plot"},domain:P7e({name:"grid",editType:"plot",noGridCell:!0},{}),xside:{valType:"enumerated",values:["bottom","bottom plot","top plot","top"],dflt:"bottom plot",editType:"plot"},yside:{valType:"enumerated",values:["left","left plot","right plot","right"],dflt:"left plot",editType:"plot"},editType:"plot"};function sb(e,r,t){var a=r[t+"axes"],n=Object.keys((e._splomAxes||{})[t]||{});if(Array.isArray(a))return a;if(n.length)return n}function z7e(e,r){var t=e.grid||{},a=sb(r,t,"x"),n=sb(r,t,"y");if(!e.grid&&!a&&!n)return;var i=Array.isArray(t.subplots)&&Array.isArray(t.subplots[0]),o=Array.isArray(a),l=Array.isArray(n),s=o&&a!==t.xaxes&&l&&n!==t.yaxes,u,f;i?(u=t.subplots.length,f=t.subplots[0].length):(l&&(u=n.length),o&&(f=a.length));var c=N7e.newContainer(r,"grid");function v(k,M){return F7e.coerce(t,c,Q9,k,M)}var d=v("rows",u),p=v("columns",f);if(!(d*p>1)){delete r.grid;return}if(!i&&!o&&!l){var y=v("pattern")==="independent";y&&(i=!0)}c._hasSubplotGrid=i;var m=v("roworder"),b=m==="top to bottom",T=i?.2:.1,_=i?.3:.1,x,w;s&&r._splomGridDflt&&(x=r._splomGridDflt.xside,w=r._splomGridDflt.yside),c._domains={x:zV("x",v,T,x,p),y:zV("y",v,_,w,d,b)}}function zV(e,r,t,a,n,i){var o=r(e+"gap",t),l=r("domain."+e);r(e+"side",a);for(var s=new Array(n),u=l[0],f=(l[1]-u)/(n-o),c=f*(1-o),v=0;v{"use strict";OV.exports={visible:{valType:"boolean",editType:"calc"},type:{valType:"enumerated",values:["percent","constant","sqrt","data"],editType:"calc"},symmetric:{valType:"boolean",editType:"calc"},array:{valType:"data_array",editType:"calc"},arrayminus:{valType:"data_array",editType:"calc"},value:{valType:"number",min:0,dflt:10,editType:"calc"},valueminus:{valType:"number",min:0,dflt:10,editType:"calc"},traceref:{valType:"integer",min:0,dflt:0,editType:"style"},tracerefminus:{valType:"integer",min:0,dflt:0,editType:"style"},copy_ystyle:{valType:"boolean",editType:"plot"},copy_zstyle:{valType:"boolean",editType:"style"},color:{valType:"color",editType:"style"},thickness:{valType:"number",min:0,dflt:2,editType:"style"},width:{valType:"number",min:0,editType:"plot"},editType:"calc"}});var GV=B((mNe,UV)=>{"use strict";var HV=ca(),I7e=Pt(),O7e=nr(),H7e=Ra(),U7e=rA();UV.exports=function(e,r,t,a){var n="error_"+a.axis,i=H7e.newContainer(r,n),o=e[n]||{};function l(p,y){return O7e.coerce(o,i,U7e,p,y)}var s=o.array!==void 0||o.value!==void 0||o.type==="sqrt",u=l("visible",s);if(u!==!1){var f=l("type","array"in o?"data":"percent"),c=!0;f!=="sqrt"&&(c=l("symmetric",!((f==="data"?"arrayminus":"valueminus")in o))),f==="data"?(l("array"),l("traceref"),c||(l("arrayminus"),l("tracerefminus"))):(f==="percent"||f==="constant")&&(l("value"),c||l("valueminus"));var v="copy_"+a.inherit+"style";if(a.inherit){var d=r["error_"+a.inherit];(d||{}).visible&&l(v,!(o.color||HV(o.thickness)||HV(o.width)))}(!a.inherit||!i[v])&&(l("color",t),l("thickness"),l("width",I7e.traceIs(r,"gl3d")?0:4))}}});var tA=B((yNe,VV)=>{"use strict";VV.exports=function(r){var t=r.type,a=r.symmetric;if(t==="data"){var n=r.array||[];if(a)return function(u,f){var c=+n[f];return[c,c]};var i=r.arrayminus||[];return function(u,f){var c=+n[f],v=+i[f];return!isNaN(c)||!isNaN(v)?[v||0,c||0]:[NaN,NaN]}}else{var o=YV(t,r.value),l=YV(t,r.valueminus);return a||r.valueminus===void 0?function(u){var f=o(u);return[f,f]}:function(u){return[l(u),o(u)]}}};function YV(e,r){if(e==="percent")return function(t){return Math.abs(t*r/100)};if(e==="constant")return function(){return Math.abs(r)};if(e==="sqrt")return function(t){return Math.sqrt(Math.abs(t))}}});var ZV=B((gNe,WV)=>{"use strict";var aA=ca(),G7e=Pt(),nA=Qa(),Y7e=nr(),V7e=tA();WV.exports=function(r){for(var t=r.calcdata,a=0;a{"use strict";var JV=ia(),If=ca(),X7e=Ca(),W7e=yi();jV.exports=function(r,t,a,n){var i,o=a.xaxis,l=a.yaxis,s=n&&n.duration>0,u=r._context.staticPlot;t.each(function(f){var c=f[0].trace,v=c.error_x||{},d=c.error_y||{},p;c.ids&&(p=function(T){return T.id});var y=W7e.hasMarkers(c)&&c.marker.maxdisplayed>0;!d.visible&&!v.visible&&(f=[]);var m=JV.select(this).selectAll("g.errorbar").data(f,p);if(m.exit().remove(),!!f.length){v.visible||m.selectAll("path.xerror").remove(),d.visible||m.selectAll("path.yerror").remove(),m.style("opacity",1);var b=m.enter().append("g").classed("errorbar",!0);s&&b.style("opacity",0).transition().duration(n.duration).style("opacity",1),X7e.setClipUrl(m,a.layerClipId,r),m.each(function(T){var _=JV.select(this),x=Z7e(T,o,l);if(!(y&&!T.vis)){var w,k=_.select("path.yerror");if(d.visible&&If(x.x)&&If(x.yh)&&If(x.ys)){var M=d.width;w="M"+(x.x-M)+","+x.yh+"h"+2*M+"m-"+M+",0V"+x.ys,x.noYS||(w+="m-"+M+",0h"+2*M),i=!k.size(),i?k=_.append("path").style("vector-effect",u?"none":"non-scaling-stroke").classed("yerror",!0):s&&(k=k.transition().duration(n.duration).ease(n.easing)),k.attr("d",w)}else k.remove();var C=_.select("path.xerror");if(v.visible&&If(x.y)&&If(x.xh)&&If(x.xs)){var E=(v.copy_ystyle?d:v).width;w="M"+x.xh+","+(x.y-E)+"v"+2*E+"m0,-"+E+"H"+x.xs,x.noXS||(w+="m0,-"+E+"v"+2*E),i=!C.size(),i?C=_.append("path").style("vector-effect",u?"none":"non-scaling-stroke").classed("xerror",!0):s&&(C=C.transition().duration(n.duration).ease(n.easing)),C.attr("d",w)}else C.remove()}})}})};function Z7e(e,r,t){var a={x:r.c2p(e.x),y:t.c2p(e.y)};return e.yh!==void 0&&(a.yh=t.c2p(e.yh),a.ys=t.c2p(e.ys),If(a.ys)||(a.noYS=!0,a.ys=t.c2p(e.ys,!0))),e.xh!==void 0&&(a.xh=r.c2p(e.xh),a.xs=r.c2p(e.xs),If(a.xs)||(a.noXS=!0,a.xs=r.c2p(e.xs,!0))),a}});var eX=B((xNe,QV)=>{"use strict";var J7e=ia(),KV=Kt();QV.exports=function(r){r.each(function(t){var a=t[0].trace,n=a.error_y||{},i=a.error_x||{},o=J7e.select(this);o.selectAll("path.yerror").style("stroke-width",n.thickness+"px").call(KV.stroke,n.color),i.copy_ystyle&&(i=n),o.selectAll("path.xerror").style("stroke-width",i.thickness+"px").call(KV.stroke,i.color)})}});var aX=B((_Ne,tX)=>{"use strict";var yp=nr(),rX=ql().overrideAll,gp=rA(),kc={error_x:yp.extendFlat({},gp),error_y:yp.extendFlat({},gp)};delete kc.error_x.copy_zstyle;delete kc.error_y.copy_zstyle;delete kc.error_y.copy_ystyle;var bp={error_x:yp.extendFlat({},gp),error_y:yp.extendFlat({},gp),error_z:yp.extendFlat({},gp)};delete bp.error_x.copy_ystyle;delete bp.error_y.copy_ystyle;delete bp.error_z.copy_ystyle;delete bp.error_z.copy_zstyle;tX.exports={moduleType:"component",name:"errorbars",schema:{traces:{scatter:kc,bar:kc,histogram:kc,scatter3d:rX(bp,"calc","nested"),scattergl:rX(kc,"calc","nested")}},supplyDefaults:GV(),calc:ZV(),makeComputeError:tA(),plot:$V(),style:eX(),hoverInfo:j7e};function j7e(e,r,t){(r.error_y||{}).visible&&(t.yerr=e.yh-e.y,r.error_y.symmetric||(t.yerrneg=e.y-e.ys)),(r.error_x||{}).visible&&(t.xerr=e.xh-e.x,r.error_x.symmetric||(t.xerrneg=e.x-e.xs))}});var nX={};Ja(nX,{cn:()=>$7e});var $7e,iX=Za(()=>{"use strict";$7e={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"}});var hX=B((wNe,vX)=>{"use strict";var Of=ia(),fb=oi(),oX=Pt(),bu=Qa(),ub=Bl(),yl=nr(),Jl=yl.strTranslate,cX=Sn().extendFlat,iA=Af(),Zl=Ca(),Gh=Kt(),K7e=a1(),Q7e=Mi(),e8e=Nl().flipScale,r8e=h9(),t8e=d9(),a8e=tl(),lA=(Ni(),vr(Pi)),lX=lA.LINE_SPACING,sX=lA.FROM_TL,uX=lA.FROM_BR,nn=(iX(),vr(nX)).cn;function n8e(e){var r=e._fullLayout,t=r._infolayer.selectAll("g."+nn.colorbar).data(i8e(e),function(a){return a._id});t.enter().append("g").attr("class",function(a){return a._id}).classed(nn.colorbar,!0),t.each(function(a){var n=Of.select(this);yl.ensureSingle(n,"rect",nn.cbbg),yl.ensureSingle(n,"g",nn.cbfills),yl.ensureSingle(n,"g",nn.cblines),yl.ensureSingle(n,"g",nn.cbaxis,function(o){o.classed(nn.crisp,!0)}),yl.ensureSingle(n,"g",nn.cbtitleunshift,function(o){o.append("g").classed(nn.cbtitle,!0)}),yl.ensureSingle(n,"rect",nn.cboutline);var i=o8e(n,a,e);i&&i.then&&(e._promises||[]).push(i),e._context.edits.colorbarPosition&&l8e(n,a,e)}),t.exit().each(function(a){fb.autoMargin(e,a._id)}).remove(),t.order()}function i8e(e){var r=e._fullLayout,t=e.calcdata,a=[],n,i,o,l;function s(_){return cX(_,{_fillcolor:null,_line:{color:null,width:null,dash:null},_levels:{start:null,end:null,size:null},_filllevels:null,_fillgradient:null,_zrange:null})}function u(){typeof l.calc=="function"?l.calc(e,o,n):(n._fillgradient=i.reversescale?e8e(i.colorscale):i.colorscale,n._zrange=[i[l.min],i[l.max]])}for(var f=0;f[Math.min(e[0]+r,e[1]),e[1]],fX=(e,r)=>[e[0],Math.max(e[1]-r,e[0])];function o8e(e,r,t){var a=r.orientation==="v",n=r.len,i=r.lenmode,o=r.thickness,l=r.thicknessmode,s=r.outlinewidth,u=r.borderwidth,f=r.bgcolor,c=r.xanchor,v=r.yanchor,d=r.xpad,p=r.ypad,y=r.x,m=a?r.y:1-r.y,b=r.yref==="paper",T=r.xref==="paper",_=t._fullLayout,x=_._size,w=r._fillcolor,k=r._line,M=r.title,C=M.side,E=r._zrange||Of.extent((typeof w=="function"?w:k.color).domain()),F=typeof k.color=="function"?k.color:function(){return k.color},P=typeof w=="function"?w:function(){return w},q=r._levels,z=s8e(t,r,E),I=z.fill,Y=z.line,V=Math.round(o*(l==="fraction"?a?x.w:x.h:1)),J=V/(a?x.w:x.h),U=Math.round(n*(i==="fraction"?a?x.h:x.w:1)),G=U/(a?x.h:x.w),W=T?x.w:t._fullLayout.width,j=b?x.h:t._fullLayout.height,ae=Math.round(a?y*W+d:m*j+p),pe={center:.5,right:1}[c]||0,se={top:1,middle:.5}[v]||0,we=a?y-pe*J:m-se*J,te=a?m-se*G:y-pe*G,Ee=Math.round(a?j*(1-te):W*te);r._lenFrac=G,r._thickFrac=J,r._uFrac=we,r._vFrac=te;var de=r._axis=u8e(t,r,E);de.position=J+(a?y+d/x.w:m+p/x.h);var Ae=["top","bottom"].indexOf(C)!==-1;if(a&&Ae&&(de.title.side=C,de.titlex=y+d/x.w,de.titley=te+(M.side==="top"?G-p/x.h:p/x.h)),!a&&!Ae&&(de.title.side=C,de.titley=m+p/x.h,de.titlex=te+d/x.w),k.color&&r.tickmode==="auto"){de.tickmode="linear",de.tick0=q.start;var Ue=q.size,ge=yl.constrain(U/50,4,15)+1,Ne=(E[1]-E[0])/((r.nticks||ge)*Ue);if(Ne>1){var ir=Math.pow(10,Math.floor(Math.log(Ne)/Math.LN10));Ue*=ir*yl.roundUp(Ne/ir,[2,5,10]),(Math.abs(q.start)/q.size+1e-6)%1<2e-6&&(de.tick0=0)}de.dtick=Ue}var qe=a?p/x.h:d/x.w;de.domain=fX(oA([te,te+G],qe),qe),de.setScale(),e.attr("transform",Jl(Math.round(x.l),Math.round(x.t)));var Ve=e.select("."+nn.cbtitleunshift).attr("transform",Jl(-Math.round(x.l),-Math.round(x.t))),Qe=de.ticklabelposition,er=de.title.font.size,rr=e.select("."+nn.cbaxis),yr,Ge=0,Sr=0;function Fr(fe,Le){var Mr={propContainer:de,propName:r._propPrefix+"title.text",traceIndex:r._traceIndex,_meta:r._meta,placeholder:_._dfltTitle.colorbar,containerGroup:e.select("."+nn.cbtitle)},lt=fe.charAt(0)==="h"?fe.slice(1):"h"+fe;e.selectAll("."+lt+",."+lt+"-math-group").remove(),K7e.draw(t,fe,cX(Mr,Le||{}))}function Lr(){if(a&&Ae||!a&&!Ae){var fe,Le;C==="top"&&(fe=d+x.l+W*y,Le=p+x.t+j*(1-te-G)+3+er*.75),C==="bottom"&&(fe=d+x.l+W*y,Le=p+x.t+j*(1-te)-3-er*.25),C==="right"&&(Le=p+x.t+j*m+3+er*.75,fe=d+x.l+W*te),Fr(de._id+"title",{attributes:{x:fe,y:Le,"text-anchor":a?"start":"middle"}})}}function He(){if(a&&!Ae||!a&&Ae){var fe=de.position||0,Le=de._offset+de._length/2,Mr,lt;if(C==="right")lt=Le,Mr=x.l+W*fe+10+er*(de.showticklabels?1:.5);else if(Mr=Le,C==="bottom"&&(lt=x.t+j*fe+10+(Qe.indexOf("inside")===-1?de.tickfont.size:0)+(de.ticks!=="inside"&&r.ticklen||0)),C==="top"){var Xe=M.text.split("
").length;lt=x.t+j*fe+10-V-lX*er*Xe}Fr((a?"h":"v")+de._id+"title",{avoid:{selection:Of.select(t).selectAll("g."+de._id+"tick"),side:C,offsetTop:a?0:x.t,offsetLeft:a?x.l:0,maxShift:a?_.width:_.height},attributes:{x:Mr,y:lt,"text-anchor":"middle"},transform:{rotate:a?-90:0,offset:0}})}}function or(){if(!a&&!Ae||a&&Ae){var fe=e.select("."+nn.cbtitle),Le=fe.select("text"),Mr=[-s/2,s/2],lt=fe.select(".h"+de._id+"title-math-group").node(),Xe=15.6;Le.node()&&(Xe=parseInt(Le.node().style.fontSize,10)*lX);var Me;if(lt?(Me=Zl.bBox(lt),Sr=Me.width,Ge=Me.height,Ge>Xe&&(Mr[1]-=(Ge-Xe)/2)):Le.node()&&!Le.classed(nn.jsPlaceholder)&&(Me=Zl.bBox(Le.node()),Sr=Me.width,Ge=Me.height),a){if(Ge){if(Ge+=5,C==="top")de.domain=fX(de.domain,Ge/x.h),Mr[1]*=-1;else{de.domain=oA(de.domain,Ge/x.h);var Fe=Q7e.lineCount(Le);Mr[1]+=(1-Fe)*Xe}fe.attr("transform",Jl(Mr[0],Mr[1])),de.setScale()}}else Sr&&(C==="right"&&(de.domain=oA(de.domain,(Sr+er/2)/x.w)),fe.attr("transform",Jl(Mr[0],Mr[1])),de.setScale())}e.selectAll("."+nn.cbfills+",."+nn.cblines).attr("transform",a?Jl(0,Math.round(x.h*(1-de.domain[1]))):Jl(Math.round(x.w*de.domain[0]),0)),rr.attr("transform",a?Jl(0,Math.round(-x.t)):Jl(Math.round(-x.l),0));var dr=e.select("."+nn.cbfills).selectAll("rect."+nn.cbfill).attr("style","").data(I);dr.enter().append("rect").classed(nn.cbfill,!0).attr("style",""),dr.exit().remove();var kr=E.map(de.c2p).map(Math.round).sort(function(Or,Ie){return Or-Ie});dr.each(function(Or,Ie){var Tr=[Ie===0?E[0]:(I[Ie]+I[Ie-1])/2,Ie===I.length-1?E[1]:(I[Ie]+I[Ie+1])/2].map(de.c2p).map(Math.round);a&&(Tr[1]=yl.constrain(Tr[1]+(Tr[1]>Tr[0])?1:-1,kr[0],kr[1]));var ur=Of.select(this).attr(a?"x":"y",ae).attr(a?"y":"x",Of.min(Tr)).attr(a?"width":"height",Math.max(V,2)).attr(a?"height":"width",Math.max(Of.max(Tr)-Of.min(Tr),2));if(r._fillgradient)Zl.gradient(ur,t,r._id,a?"vertical":"horizontalreversed",r._fillgradient,"fill");else{var at=P(Or).replace("e-","");ur.attr("fill",Gh.hexString(at))}});var fr=e.select("."+nn.cblines).selectAll("path."+nn.cbline).data(k.color&&k.width?Y:[]);fr.enter().append("path").classed(nn.cbline,!0),fr.exit().remove(),fr.each(function(Or){var Ie=ae,Tr=Math.round(de.c2p(Or))+k.width/2%1;Of.select(this).attr("d","M"+(a?Ie+","+Tr:Tr+","+Ie)+(a?"h":"v")+V).call(Zl.lineGroupStyle,k.width,F(Or),k.dash)}),rr.selectAll("g."+de._id+"tick,path").remove();var _r=ae+V+(s||0)/2-(r.ticks==="outside"?1:0),Vr=bu.calcTicks(de),qr=bu.getTickSigns(de)[2];return bu.drawTicks(t,de,{vals:de.ticks==="inside"?bu.clipEnds(de,Vr):Vr,layer:rr,path:bu.makeTickPath(de,_r,qr),transFn:bu.makeTransTickFn(de)}),bu.drawLabels(t,de,{vals:Vr,layer:rr,transFn:bu.makeTransTickLabelFn(de),labelFns:bu.makeLabelFns(de,_r)})}function Ir(){var fe,Le=V+s/2;Qe.indexOf("inside")===-1&&(fe=Zl.bBox(rr.node()),Le+=a?fe.width:fe.height),yr=Ve.select("text");var Mr=0,lt=a&&C==="top",Xe=!a&&C==="right",Me=0;if(yr.node()&&!yr.classed(nn.jsPlaceholder)){var Fe,dr=Ve.select(".h"+de._id+"title-math-group").node();dr&&(a&&Ae||!a&&!Ae)?(fe=Zl.bBox(dr),Mr=fe.width,Fe=fe.height):(fe=Zl.bBox(Ve.node()),Mr=fe.right-x.l-(a?ae:Ee),Fe=fe.bottom-x.t-(a?Ee:ae),!a&&C==="top"&&(Le+=fe.height,Me=fe.height)),Xe&&(yr.attr("transform",Jl(Mr/2+er/2,0)),Mr*=2),Le=Math.max(Le,a?Mr:Fe)}var kr=(a?d:p)*2+Le+u+s/2,fr=0;!a&&M.text&&v==="bottom"&&m<=0&&(fr=kr/2,kr+=fr,Me+=fr),_._hColorbarMoveTitle=fr,_._hColorbarMoveCBTitle=Me;var _r=u+s,Vr=(a?ae:Ee)-_r/2-(a?d:0),qr=(a?Ee:ae)-(a?U:p+Me-fr);e.select("."+nn.cbbg).attr("x",Vr).attr("y",qr).attr(a?"width":"height",Math.max(kr-fr,2)).attr(a?"height":"width",Math.max(U+_r,2)).call(Gh.fill,f).call(Gh.stroke,r.bordercolor).style("stroke-width",u);var Or=Xe?Math.max(Mr-10,0):0;e.selectAll("."+nn.cboutline).attr("x",(a?ae:Ee+d)+Or).attr("y",(a?Ee+p-U:ae)+(lt?Ge:0)).attr(a?"width":"height",Math.max(V,2)).attr(a?"height":"width",Math.max(U-(a?2*p+Ge:2*d+Or),2)).call(Gh.stroke,r.outlinecolor).style({fill:"none","stroke-width":s});var Ie=a?pe*kr:0,Tr=a?0:(1-se)*kr-Me;if(Ie=T?x.l-Ie:-Ie,Tr=b?x.t-Tr:-Tr,e.attr("transform",Jl(Ie,Tr)),!a&&(u||Gh.opacity(f)&&!Gh.equals(_.paper_bgcolor,f))){var ur=rr.selectAll("text"),at=ur[0].length,ft=e.select("."+nn.cbbg).node(),jr=Zl.bBox(ft),it=Zl.getTranslate(e),le=2;ur.each(function(vi,Tn){var Li=0,Hi=at-1;if(Tn===Li||Tn===Hi){var Ei=Zl.bBox(this),nt=Zl.getTranslate(this),Da;if(Tn===Hi){var ha=Ei.right+nt.x,qa=jr.right+it.x+Ee-u-le+y;Da=qa-ha,Da>0&&(Da=0)}else if(Tn===Li){var Ha=Ei.left+nt.x,wa=jr.left+it.x+Ee+u+le;Da=wa-Ha,Da<0&&(Da=0)}Da&&(at<3?this.setAttribute("transform","translate("+Da+",0) "+this.getAttribute("transform")):this.setAttribute("visibility","hidden"))}})}var Te={},sr=sX[c],mr=uX[c],va=sX[v],ka=uX[v],Ea=kr-V;a?(i==="pixels"?(Te.y=m,Te.t=U*va,Te.b=U*ka):(Te.t=Te.b=0,Te.yt=m+n*va,Te.yb=m-n*ka),l==="pixels"?(Te.x=y,Te.l=kr*sr,Te.r=kr*mr):(Te.l=Ea*sr,Te.r=Ea*mr,Te.xl=y-o*sr,Te.xr=y+o*mr)):(i==="pixels"?(Te.x=y,Te.l=U*sr,Te.r=U*mr):(Te.l=Te.r=0,Te.xl=y+n*sr,Te.xr=y-n*mr),l==="pixels"?(Te.y=1-m,Te.t=kr*va,Te.b=kr*ka):(Te.t=Ea*va,Te.b=Ea*ka,Te.yt=m-o*va,Te.yb=m+o*ka));var ln=r.y<.5?"b":"t",tn=r.x<.5?"l":"r";t._fullLayout._reservedMargin[r._id]={};var Yn={r:_.width-Vr-Ie,l:Vr+Te.r,b:_.height-qr-Tr,t:qr+Te.b};T&&b?fb.autoMargin(t,r._id,Te):T?t._fullLayout._reservedMargin[r._id][ln]=Yn[ln]:b||a?t._fullLayout._reservedMargin[r._id][tn]=Yn[tn]:t._fullLayout._reservedMargin[r._id][ln]=Yn[ln]}return yl.syncOrAsync([fb.previousPromises,Lr,or,He,fb.previousPromises,Ir],t)}function l8e(e,r,t){var a=r.orientation==="v",n=t._fullLayout,i=n._size,o,l,s;ub.init({element:e.node(),gd:t,prepFn:function(){o=e.attr("transform"),iA(e)},moveFn:function(u,f){e.attr("transform",o+Jl(u,f)),l=ub.align((a?r._uFrac:r._vFrac)+u/i.w,a?r._thickFrac:r._lenFrac,0,1,r.xanchor),s=ub.align((a?r._vFrac:1-r._uFrac)-f/i.h,a?r._lenFrac:r._thickFrac,0,1,r.yanchor);var c=ub.getCursor(l,s,r.xanchor,r.yanchor);iA(e,c)},doneFn:function(){if(iA(e),l!==void 0&&s!==void 0){var u={};u[r._propPrefix+"x"]=l,u[r._propPrefix+"y"]=s,r._traceIndex!==void 0?oX.call("_guiRestyle",t,u,r._traceIndex):oX.call("_guiRelayout",t,u)}}})}function s8e(e,r,t){var a=r._levels,n=[],i=[],o,l,s=a.end+a.size/100,u=a.size,f=1.001*t[0]-.001*t[1],c=1.001*t[1]-.001*t[0];for(l=0;l<1e5&&(o=a.start+l*u,!(u>0?o>=s:o<=s));l++)o>f&&o0?o>=s:o<=s));l++)o>t[0]&&o{"use strict";dX.exports={moduleType:"component",name:"colorbar",attributes:Mg(),supplyDefaults:K6(),draw:hX().draw,hasColorbar:H6()}});var yX=B((TNe,mX)=>{"use strict";mX.exports={moduleType:"component",name:"legend",layoutAttributes:J7(),supplyLayoutDefaults:$7(),draw:h8(),style:u8()}});var bX=B((MNe,gX)=>{"use strict";gX.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"}}});var _X=B((kNe,xX)=>{"use strict";xX.exports={moduleType:"locale",name:"en-US",dictionary:{"Click to enter Colorscale title":"Click to enter Colorscale title"},format:{date:"%m/%d/%Y"}}});var uA=B((SNe,MX)=>{"use strict";var f8e=Pt(),TX=nr(),sA=TX.extendFlat,wX=TX.extendDeep;function AX(e){var r;switch(e){case"themes__thumb":r={autosize:!0,width:150,height:150,title:{text:""},showlegend:!1,margin:{l:5,r:5,t:5,b:5,pad:0},annotations:[]};break;case"thumbnail":r={title:{text:""},showlegend:!1,borderwidth:0,bordercolor:"",margin:{l:1,r:1,t:1,b:1,pad:0},annotations:[]};break;default:r={}}return r}function c8e(e){var r=["xaxis","yaxis","zaxis"];return r.indexOf(e.slice(0,5))>-1}MX.exports=function(r,t){var a,n=r.data,i=r.layout,o=wX([],n),l=wX({},i,AX(t.tileClass)),s=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 u=Object.keys(l);for(a=0;a{"use strict";var v8e=hg().EventEmitter,h8e=Pt(),d8e=nr(),kX=pc(),p8e=uA(),m8e=h5(),y8e=d5();function g8e(e,r){var t=new v8e,a=p8e(e,{format:"png"}),n=a.gd;n.style.position="absolute",n.style.left="-5000px",document.body.appendChild(n);function i(){var l=kX.getDelay(n._fullLayout);setTimeout(function(){var s=m8e(n),u=document.createElement("canvas");u.id=d8e.randstr(),t=y8e({format:r.format,width:n._fullLayout.width,height:n._fullLayout.height,canvas:u,emitter:t,svg:s}),t.clean=function(){n&&document.body.removeChild(n)}},l)}var o=kX.getRedrawFunc(n);return h8e.call("_doPlot",n,a.data,a.layout,a.config).then(o).then(i).catch(function(l){t.emit("error",l)}),t}SX.exports=g8e});var EX=B((DNe,LX)=>{"use strict";var DX=pc(),b8e={getDelay:DX.getDelay,getRedrawFunc:DX.getRedrawFunc,clone:uA(),toSVG:h5(),svgToImg:d5(),toImage:CX(),downloadImage:Fw()};LX.exports=b8e});var FX=B(xu=>{"use strict";xu.version=d2().version;GM();CE();var x8e=Pt(),xp=xu.register=x8e.register,cA=GO(),qX=Object.keys(cA);for(cb=0;cb{"use strict";RX.exports=FX()});var vA=B((qNe,zX)=>{"use strict";var _8e=Pt(),Wo=nr(),w8e=u9(),A8e=Ca();function T8e(e,r,t,a){var n=e.cd,i=n[0].t,o=n[0].trace,l=e.xa,s=e.ya,u=i.x,f=i.y,c=l.c2p(r),v=s.c2p(t),d=e.distance,p;if(i.tree){var y=l.p2c(c-d),m=l.p2c(c+d),b=s.p2c(v-d),T=s.p2c(v+d);a==="x"?p=i.tree.range(Math.min(y,m),Math.min(s._rl[0],s._rl[1]),Math.max(y,m),Math.max(s._rl[0],s._rl[1])):p=i.tree.range(Math.min(y,m),Math.min(b,T),Math.max(y,m),Math.max(b,T))}else p=i.ids;var _,x,w,k,M,C,E,F,P,q=d;if(a==="x"){var z=!!o.xperiodalignment,I=!!o.yperiodalignment;for(M=0;M=Math.min(Y,V)&&c<=Math.max(Y,V)?0:1/0}if(C<=q){if(q=C,k=f[_],E=s.c2p(k)-v,I){var J=s.c2p(o._yStarts[_]),U=s.c2p(o._yEnds[_]);E=v>=Math.min(J,U)&&v<=Math.max(J,U)?0:1/0}P=Math.sqrt(C*C+E*E),x=p[M]}}}else for(M=0;ME8e,DOT_RE:()=>D8e,OPEN_RE:()=>L8e,SYMBOL_SDF_SIZE:()=>k8e,SYMBOL_SIZE:()=>S8e,SYMBOL_STROKE:()=>C8e,TOO_MANY_POINTS:()=>M8e});var M8e,k8e,S8e,C8e,D8e,L8e,E8e,Xh=Za(()=>{"use strict";M8e=1e5,k8e=200,S8e=20,C8e=1,D8e=/-dot/,L8e=/-open/,E8e={solid:[1],dot:[1,1],dash:[4,1],longdash:[8,1],dashdot:[4,1,1,1],longdashdot:[8,1,1,1]}});var hb=B((FNe,HX)=>{"use strict";var q8e=Dl(),F8e=Ai(),R8e=uw(),on=Ef(),BX=Q2().axisHoverFormat,IX=j0(),P8e=(tg(),vr(rg)).default,hA=Sn().extendFlat,N8e=ql().overrideAll,z8e=(Xh(),vr(Vh)).DASHES,OX=on.line,_u=on.marker,B8e=_u.line,Hf=HX.exports=N8e({x:on.x,x0:on.x0,dx:on.dx,y:on.y,y0:on.y0,dy:on.dy,xperiod:on.xperiod,yperiod:on.yperiod,xperiod0:on.xperiod0,yperiod0:on.yperiod0,xperiodalignment:on.xperiodalignment,yperiodalignment:on.yperiodalignment,xhoverformat:BX("x"),yhoverformat:BX("y"),text:on.text,hovertext:on.hovertext,textposition:on.textposition,textfont:F8e({noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0,editType:"calc",colorEditType:"style",arrayOk:!0,noNumericWeightValues:!0,variantValues:["normal","small-caps"]}),mode:{valType:"flaglist",flags:["lines","markers","text"],extras:["none"]},line:{color:OX.color,width:OX.width,shape:{valType:"enumerated",values:["linear","hv","vh","hvh","vhv"],dflt:"linear",editType:"plot"},dash:{valType:"enumerated",values:P8e(z8e),dflt:"solid"}},marker:hA({},IX("marker"),{symbol:_u.symbol,angle:_u.angle,size:_u.size,sizeref:_u.sizeref,sizemin:_u.sizemin,sizemode:_u.sizemode,opacity:_u.opacity,colorbar:_u.colorbar,line:hA({},IX("marker.line"),{width:B8e.width})}),connectgaps:on.connectgaps,fill:hA({},on.fill,{dflt:"none"}),fillcolor:R8e(),selected:{marker:on.selected.marker,textfont:on.selected.textfont},unselected:{marker:on.unselected.marker,textfont:on.unselected.textfont},opacity:q8e.opacity},"calc","nested");Hf.x.editType=Hf.y.editType=Hf.x0.editType=Hf.y0.editType="calc+clearAxisTypes";Hf.hovertemplate=on.hovertemplate;Hf.hovertemplatefallback=on.hovertemplatefallback;Hf.texttemplate=on.texttemplate;Hf.texttemplatefallback=on.texttemplatefallback});var db=B(dA=>{"use strict";var UX=(Xh(),vr(Vh));dA.isOpenSymbol=function(e){return typeof e=="string"?UX.OPEN_RE.test(e):e%200>100};dA.isDotSymbol=function(e){return typeof e=="string"?UX.DOT_RE.test(e):e>200}});var VX=B((PNe,YX)=>{"use strict";var GX=nr(),I8e=Pt(),O8e=db(),H8e=hb(),U8e=(U1(),vr(H1)),pb=yi(),G8e=Nw(),Y8e=zw(),V8e=x5(),X8e=Bw(),W8e=Ow(),Z8e=Iw();YX.exports=function(r,t,a,n){function i(d,p){return GX.coerce(r,t,H8e,d,p)}var o=r.marker?O8e.isOpenSymbol(r.marker.symbol):!1,l=pb.isBubble(r),s=G8e(r,t,n,i);if(!s){t.visible=!1;return}Y8e(r,t,n,i),i("xhoverformat"),i("yhoverformat");var u=s{"use strict";var J8e=n9();XX.exports=function(r,t,a){var n=r.i;return"x"in r||(r.x=t._x[n]),"y"in r||(r.y=t._y[n]),J8e(r,t,a)}});var JX=B((zNe,ZX)=>{"use strict";function j8e(e,r,t,a,n){for(var i=n+1;a<=n;){var o=a+n>>>1,l=e[o],s=t!==void 0?t(l,r):l-r;s>=0?(i=o,n=o-1):a=o+1}return i}function $8e(e,r,t,a,n){for(var i=n+1;a<=n;){var o=a+n>>>1,l=e[o],s=t!==void 0?t(l,r):l-r;s>0?(i=o,n=o-1):a=o+1}return i}function K8e(e,r,t,a,n){for(var i=a-1;a<=n;){var o=a+n>>>1,l=e[o],s=t!==void 0?t(l,r):l-r;s<0?(i=o,a=o+1):n=o-1}return i}function Q8e(e,r,t,a,n){for(var i=a-1;a<=n;){var o=a+n>>>1,l=e[o],s=t!==void 0?t(l,r):l-r;s<=0?(i=o,a=o+1):n=o-1}return i}function ewe(e,r,t,a,n){for(;a<=n;){var i=a+n>>>1,o=e[i],l=t!==void 0?t(o,r):o-r;if(l===0)return i;l<=0?a=i+1:n=i-1}return-1}function _p(e,r,t,a,n,i){return typeof t=="function"?i(e,r,t,a===void 0?0:a|0,n===void 0?e.length-1:n|0):i(e,r,void 0,t===void 0?0:t|0,a===void 0?e.length-1:a|0)}ZX.exports={ge:function(e,r,t,a,n){return _p(e,r,t,a,n,j8e)},gt:function(e,r,t,a,n){return _p(e,r,t,a,n,$8e)},lt:function(e,r,t,a,n){return _p(e,r,t,a,n,K8e)},le:function(e,r,t,a,n){return _p(e,r,t,a,n,Q8e)},eq:function(e,r,t,a,n){return _p(e,r,t,a,n,ewe)}}});var pA=B((BNe,jX)=>{jX.exports=rwe;function rwe(e,r,t){return rt?t:e:er?r:e}});var Es=B((INe,KX)=>{"use strict";KX.exports=function(r,t,a){var n={},i,o;if(typeof t=="string"&&(t=$X(t)),Array.isArray(t)){var l={};for(o=0;o{"use strict";var twe=Es();QX.exports=awe;function awe(e){var r;return arguments.length>1&&(e=arguments),typeof e=="string"?e=e.split(/\s/).map(parseFloat):typeof e=="number"&&(e=[e]),e.length&&typeof e[0]=="number"?e.length===1?r={width:e[0],height:e[0],x:0,y:0}:e.length===2?r={width:e[0],height:e[1],x:0,y:0}:r={x:e[0],y:e[1],width:e[2]-e[0]||0,height:e[3]-e[1]||0}:e&&(e=twe(e,{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"}),r={x:e.left||0,y:e.top||0},e.width==null?e.right?r.width=e.right-r.x:r.width=0:r.width=e.width,e.height==null?e.bottom?r.height=e.bottom-r.y:r.height=0:r.height=e.height),r}});var Sc=B((HNe,eW)=>{"use strict";eW.exports=nwe;function nwe(e,r){if(!e||e.length==null)throw Error("Argument should be an array");r==null?r=1:r=Math.floor(r);for(var t=Array(r*2),a=0;an&&(n=e[o]),e[o]{"use strict";rW.exports=function(){for(var r=0;r{aW.exports=function(e){switch(e){case"int8":return Int8Array;case"int16":return Int16Array;case"int32":return Int32Array;case"uint8":return Uint8Array;case"uint16":return Uint16Array;case"uint32":return Uint32Array;case"float32":return Float32Array;case"float64":return Float64Array;case"array":return Array;case"uint8_clamped":return Uint8ClampedArray}}});var Cc=B((YNe,iW)=>{var nW=mb();iW.exports=iwe;function iwe(e,r,t){if(!e)throw new TypeError("must specify data as first parameter");if(t=+(t||0)|0,Array.isArray(e)&&e[0]&&typeof e[0][0]=="number"){var a=e[0].length,n=e.length*a,i,o,l,s;(!r||typeof r=="string")&&(r=new(nW(r||"float32"))(n+t));var u=r.length-t;if(n!==u)throw new Error("source length "+n+" ("+a+"x"+e.length+") does not match destination length "+u);for(i=0,l=t;i{"use strict";oW.exports=function(e){var r=typeof e;return e!==null&&(r==="object"||r==="function")}});var uW=B((XNe,sW)=>{"use strict";sW.exports=Math.log2||function(e){return Math.log(e)*Math.LOG2E}});var mW=B((WNe,pW)=>{"use strict";var fW=JX(),cW=pA(),owe=Wh(),lwe=Sc(),vW=Es(),yA=tW(),swe=Cc(),uwe=lW(),fwe=mb(),hW=uW(),cwe=1073741824;pW.exports=function(r,t){t||(t={}),r=swe(r,"float64"),t=vW(t,{bounds:"range bounds dataBox databox",maxDepth:"depth maxDepth maxdepth level maxLevel maxlevel levels",dtype:"type dtype format out dst output destination"});let a=yA(t.maxDepth,255),n=yA(t.bounds,lwe(r,2));n[0]===n[2]&&n[2]++,n[1]===n[3]&&n[3]++;let i=dW(r,n),o=r.length>>>1,l;t.dtype||(t.dtype="array"),typeof t.dtype=="string"?l=new(fwe(t.dtype))(o):t.dtype&&(l=t.dtype,Array.isArray(l)&&(l.length=o));for(let b=0;ba||k>cwe){for(let U=0;Uae||E>pe||F=q||W===j)return;let se=s[G];j===void 0&&(j=se.length);for(let ir=W;ir=x&&Ve<=k&&Qe>=w&&Qe<=M&&z.push(qe)}let we=u[G],te=we[W*4+0],Ee=we[W*4+1],de=we[W*4+2],Ae=we[W*4+3],Ue=Y(we,W+1),ge=U*.5,Ne=G+1;I(V,J,ge,Ne,te,Ee||de||Ae||Ue),I(V,J+ge,ge,Ne,Ee,de||Ae||Ue),I(V+ge,J,ge,Ne,de,Ae||Ue),I(V+ge,J+ge,ge,Ne,Ae,Ue)}function Y(V,J){let U=null,G=0;for(;U===null;)if(U=V[J*4+G],G++,G>V.length)return null;return U}return z}function y(b,T,_,x,w){let k=[];for(let M=0;M{"use strict";yW.exports=mW()});var bW=B((JNe,gW)=>{gW.exports=hwe;var bA={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},vwe=/([astvzqmhlc])([^astvzqmhlc]*)/ig;function hwe(e){var r=[];return e.replace(vwe,function(t,a,n){var i=a.toLowerCase();for(n=pwe(n),i=="m"&&n.length>2&&(r.push([a].concat(n.splice(0,2))),i="l",a=a=="m"?"l":"L");;){if(n.length==bA[i])return n.unshift(a),r.push(n);if(n.length{xW.exports=mwe;function mwe(e){var r=0,t=0,a=0,n=0;return e.map(function(i){i=i.slice();var o=i[0],l=o.toUpperCase();if(o!=l)switch(i[0]=l,o){case"a":i[6]+=a,i[7]+=n;break;case"v":i[1]+=n;break;case"h":i[1]+=a;break;default:for(var s=1;s{"use strict";Object.defineProperty(yb,"__esModule",{value:!0});var ywe=(function(){function e(r,t){var a=[],n=!0,i=!1,o=void 0;try{for(var l=r[Symbol.iterator](),s;!(n=(s=l.next()).done)&&(a.push(s.value),!(t&&a.length===t));n=!0);}catch(u){i=!0,o=u}finally{try{!n&&l.return&&l.return()}finally{if(i)throw o}}return a}return function(r,t){if(Array.isArray(r))return r;if(Symbol.iterator in Object(r))return e(r,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),wp=Math.PI*2,xA=function(r,t,a,n,i,o,l){var s=r.x,u=r.y;s*=t,u*=a;var f=n*s-i*u,c=i*s+n*u;return{x:f+o,y:c+l}},gwe=function(r,t){var a=t===1.5707963267948966?.551915024494:t===-1.5707963267948966?-.551915024494:1.3333333333333333*Math.tan(t/4),n=Math.cos(r),i=Math.sin(r),o=Math.cos(r+t),l=Math.sin(r+t);return[{x:n-i*a,y:i+n*a},{x:o+l*a,y:l-o*a},{x:o,y:l}]},wW=function(r,t,a,n){var i=r*n-t*a<0?-1:1,o=r*a+t*n;return o>1&&(o=1),o<-1&&(o=-1),i*Math.acos(o)},bwe=function(r,t,a,n,i,o,l,s,u,f,c,v){var d=Math.pow(i,2),p=Math.pow(o,2),y=Math.pow(c,2),m=Math.pow(v,2),b=d*p-d*m-p*y;b<0&&(b=0),b/=d*m+p*y,b=Math.sqrt(b)*(l===s?-1:1);var T=b*i/o*v,_=b*-o/i*c,x=f*T-u*_+(r+a)/2,w=u*T+f*_+(t+n)/2,k=(c-T)/i,M=(v-_)/o,C=(-c-T)/i,E=(-v-_)/o,F=wW(1,0,k,M),P=wW(k,M,C,E);return s===0&&P>0&&(P-=wp),s===1&&P<0&&(P+=wp),[x,w,F,P]},xwe=function(r){var t=r.px,a=r.py,n=r.cx,i=r.cy,o=r.rx,l=r.ry,s=r.xAxisRotation,u=s===void 0?0:s,f=r.largeArcFlag,c=f===void 0?0:f,v=r.sweepFlag,d=v===void 0?0:v,p=[];if(o===0||l===0)return[];var y=Math.sin(u*wp/360),m=Math.cos(u*wp/360),b=m*(t-n)/2+y*(a-i)/2,T=-y*(t-n)/2+m*(a-i)/2;if(b===0&&T===0)return[];o=Math.abs(o),l=Math.abs(l);var _=Math.pow(b,2)/Math.pow(o,2)+Math.pow(T,2)/Math.pow(l,2);_>1&&(o*=Math.sqrt(_),l*=Math.sqrt(_));var x=bwe(t,a,n,i,o,l,c,d,y,m,b,T),w=ywe(x,4),k=w[0],M=w[1],C=w[2],E=w[3],F=Math.abs(E)/(wp/4);Math.abs(1-F)<1e-7&&(F=1);var P=Math.max(Math.ceil(F),1);E/=P;for(var q=0;q{"use strict";kW.exports=wwe;var _we=TW();function wwe(e){for(var r,t=[],a=0,n=0,i=0,o=0,l=null,s=null,u=0,f=0,c=0,v=e.length;c4?(a=d[d.length-4],n=d[d.length-3]):(a=u,n=f),t.push(d)}return t}function gb(e,r,t,a){return["C",e,r,t,a,t,a]}function MW(e,r,t,a,n,i){return["C",e/3+2/3*t,r/3+2/3*a,n/3+2/3*t,i/3+2/3*a,n,i]}});var _A=B((KNe,CW)=>{"use strict";CW.exports=function(r){return typeof r!="string"?!1:(r=r.trim(),!!(/^[mzlhvcsqta]\s*[-+.0-9][^mlhvzcsqta]+/i.test(r)&&/[\dz]$/i.test(r)&&r.length>4))}});var LW=B((QNe,DW)=>{"use strict";var Awe=bW(),Twe=_W(),Mwe=SW(),kwe=_A();DW.exports=Swe;function Swe(e){if(Array.isArray(e)&&e.length===1&&typeof e[0]=="string"&&(e=e[0]),typeof e=="string"){if(!kwe(e))throw Error("String is not an SVG path.");e=Awe(e)}if(!Array.isArray(e))throw Error("Argument should be a string or an array of path segments.");if(e=Twe(e),e=Mwe(e),!e.length)return[0,0,0,0];for(var r=[1/0,1/0,-1/0,-1/0],t=0,a=e.length;tr[2]&&(r[2]=n[i+0]),n[i+1]>r[3]&&(r[3]=n[i+1]);return r}});var RW=B((eze,FW)=>{"use strict";FW.exports=Cwe;var Ap=1e20;function Cwe(e,r){r||(r={});var t=r.cutoff==null?.25:r.cutoff,a=r.radius==null?8:r.radius,n=r.channel||0,i,o,l,s,u,f,c,v,d,p,y;if(ArrayBuffer.isView(e)||Array.isArray(e)){if(!r.width||!r.height)throw Error("For raw data width and height should be provided by options");i=r.width,o=r.height,s=e,r.stride?f=r.stride:f=Math.floor(e.length/i/o)}else window.HTMLCanvasElement&&e instanceof window.HTMLCanvasElement?(v=e,c=v.getContext("2d"),i=v.width,o=v.height,d=c.getImageData(0,0,i,o),s=d.data,f=4):window.CanvasRenderingContext2D&&e instanceof window.CanvasRenderingContext2D?(v=e.canvas,c=e,i=v.width,o=v.height,d=c.getImageData(0,0,i,o),s=d.data,f=4):window.ImageData&&e instanceof window.ImageData&&(d=e,i=e.width,o=e.height,s=d.data,f=4);if(l=Math.max(i,o),window.Uint8ClampedArray&&s instanceof window.Uint8ClampedArray||window.Uint8Array&&s instanceof window.Uint8Array)for(u=s,s=Array(i*o),p=0,y=Math.floor(u.length/f);pBW});function BW(e,r={}){if(!(0,NW.default)(e))throw Error("Invalid SVG path");let t,a;r.shape||Array.isArray(r)?[t,a]=r.shape||r:(t=wA.width=r.width||r.w||200,a=wA.height=r.height||r.h||200);let n=Math.min(t,a),i=r.stroke||0,o=r.viewbox||r.viewBox||(0,PW.default)(e),l=[t/(o[2]-o[0]),a/(o[3]-o[1])],s=Math.min(l[0]||0,l[1]||0)/2;jl.fillStyle="black",jl.fillRect(0,0,t,a),jl.fillStyle="white",i&&(typeof i!="number"&&(i=1),jl.strokeStyle=i>0?"white":"black",jl.lineWidth=Math.abs(i)),jl.translate(t*.5,a*.5),jl.scale(s,s);let u=new Path2D(e);return jl.fill(u),i&&jl.stroke(u),jl.setTransform(1,0,0,1,0,0),(0,zW.default)(jl,{cutoff:r.cutoff!=null?r.cutoff:.5,radius:r.radius!=null?r.radius:n*.5})}var PW,NW,zW,wA,jl,OW=Za(()=>{PW=h2(LW()),NW=h2(_A()),zW=h2(RW()),wA=document.createElement("canvas"),jl=wA.getContext("2d",{willReadFrequently:!0})});var WW=B((rze,XW)=>{"use strict";var YW=ca(),bb=th(),Zh=Kt(),Dwe=vs().defaultLine,HW=no().isArrayOrTypedArray,TA=Zh.normalize(Dwe),VW=1;function UW(e,r){return[e[0],e[1],e[2],e[3]*r]}function AA(e){return YW(e)||!Zh.isChannelArray(e)&&!Zh.isValid(e)?TA:Zh.normalize(e)}function GW(e){return YW(e)?e:VW}function Lwe(e,r,t){var a=e.color;a&&a._inputArray&&(a=a._inputArray);var n=HW(a),i=HW(r),o=bb.extractOpts(e),l=[],s,u,f,c,v;if(o.colorscale!==void 0?s=bb.makeColorScaleFuncFromTrace(e):s=AA,n?u=(p,y)=>p[y]===void 0?TA:o.colorscale===void 0?s(p[y]):Zh.normalize(s(p[y])):u=AA,i?f=function(p,y){return p[y]===void 0?VW:GW(p[y])}:f=GW,n||i)for(var d=0;d{"use strict";var _b=ca(),qwe=(OW(),vr(IW)).default,{normalize:xb}=Kt(),Fwe=Pt(),$h=nr(),Pn=$h.isArrayOrTypedArray,Jh=Ca(),ZW=fn(),JW=WW().formatColor,jh=yi(),Rwe=a7(),kA=db(),Tp=(Xh(),vr(Vh)),Pwe=(Pv(),vr(Rv)).DESELECTDIM,jW={start:1,left:1,end:-1,right:-1,middle:0,center:0,bottom:1,top:-1},Nwe=ps().appendArrayPointValue;function zwe(e,r){var t,a={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},n=e._context.plotGlPixelRatio;if(r.visible!==!0)return a;if(jh.hasText(r)&&(a.text=aZ(e,r),a.textSel=KW(e,r,r.selected),a.textUnsel=KW(e,r,r.unselected)),jh.hasMarkers(r)&&(a.marker=CA(e,r),a.markerSel=SA(e,r,r.selected),a.markerUnsel=SA(e,r,r.unselected),!r.unselected&&Pn(r.marker.opacity))){var i=r.marker.opacity;for(a.markerUnsel.opacity=new Array(i.length),t=0;t500?"bold":"normal":e}function CA(e,r){var t=r._length,a=r.marker,n={},i,o=Pn(a.symbol),l=Pn(a.angle),s=Pn(a.color),u=Pn(a.line.color),f=Pn(a.opacity),c=Pn(a.size),v=Pn(a.line.width),d;if(o||(d=kA.isOpenSymbol(a.symbol)),o||s||u||f||l){n.symbols=new Array(t),n.angles=new Array(t),n.colors=new Array(t),n.borderColors=new Array(t);var p=a.symbol,y=a.angle,m=JW(a,a.opacity,t),b=JW(a.line,a.opacity,t);if(!Pn(b[0])){var T=b;for(b=Array(t),i=0;iTp.TOO_MANY_POINTS||jh.hasMarkers(r)?"rect":"round";if(u&&r.connectgaps){var c=i[0],v=i[1];for(o=0;o1?s[o]:s[0]:s,d=Pn(u)?u.length>1?u[o]:u[0]:u,p=jW[v],y=jW[d],m=f?f/.8+1:0,b=-y*m-y*.5;i.offset[o]=[p*m/c,b/c]}}return i}nZ.exports={style:zwe,markerStyle:CA,markerSelection:SA,linePositions:Iwe,errorBarPositions:Owe,textPosition:Hwe}});var oZ=B((aze,iZ)=>{"use strict";var wb=nr();iZ.exports=function(r,t){var a=t._scene,n={count:0,dirty:!0,lineOptions:[],fillOptions:[],markerOptions:[],markerSelectedOptions:[],markerUnselectedOptions:[],errorXOptions:[],errorYOptions:[],textOptions:[],textSelectedOptions:[],textUnselectedOptions:[],selectBatch:[],unselectBatch:[]},i={fill2d:!1,scatter2d:!1,error2d:!1,line2d:!1,glText:!1,select2d:!1};return t._scene||(a=t._scene={},a.init=function(){wb.extendFlat(a,i,n)},a.init(),a.update=function(l){var s=wb.repeat(l,a.count);if(a.fill2d&&a.fill2d.update(s),a.scatter2d&&a.scatter2d.update(s),a.line2d&&a.line2d.update(s),a.error2d&&a.error2d.update(s.concat(s)),a.select2d&&a.select2d.update(s),a.glText)for(var u=0;u{"use strict";var Uwe=gA(),Kh=nr(),lZ=fn(),Gwe=lh().findExtremes,sZ=Uw(),DA=Ch(),Ywe=DA.calcMarkerSize,Vwe=DA.calcAxisExpansion,Xwe=DA.setFirstScatter,Wwe=rp(),Qh=Mp(),Zwe=oZ(),uZ=(In(),vr(Wn)).BADNUM,Jwe=(Xh(),vr(Vh)).TOO_MANY_POINTS;cZ.exports=function(r,t){var a=r._fullLayout,n=t._xA=lZ.getFromId(r,t.xaxis,"x"),i=t._yA=lZ.getFromId(r,t.yaxis,"y"),o=a._plots[t.xaxis+t.yaxis],l=t._length,s=l>=Jwe,u=l*2,f={},c,v=n.makeCalcdata(t,"x"),d=i.makeCalcdata(t,"y"),p=sZ(t,n,"x",v),y=sZ(t,i,"y",d),m=p.vals,b=y.vals;t._x=m,t._y=b,t.xperiodalignment&&(t._origX=v,t._xStarts=p.starts,t._xEnds=p.ends),t.yperiodalignment&&(t._origY=d,t._yStarts=y.starts,t._yEnds=y.ends);var T=new Array(u),_=new Array(l);for(c=0;c1&&Kh.extendFlat(o.line,Qh.linePositions(e,t,a)),o.errorX||o.errorY){var l=Qh.errorBarPositions(e,t,a,n,i);o.errorX&&Kh.extendFlat(o.errorX,l.x),o.errorY&&Kh.extendFlat(o.errorY,l.y)}return o.text&&(Kh.extendFlat(o.text,{positions:a},Qh.textPosition(e,t,o.text,o.marker)),Kh.extendFlat(o.textSel,{positions:a},Qh.textPosition(e,t,o.text,o.markerSel)),Kh.extendFlat(o.textUnsel,{positions:a},Qh.textPosition(e,t,o.text,o.markerUnsel))),o}});var LA=B((ize,dZ)=>{"use strict";var hZ=nr(),$we=Kt(),Kwe=(Pv(),vr(Rv)).DESELECTDIM;function Qwe(e){var r=e[0],t=r.trace,a=r.t,n=a._scene,i=a.index,o=n.selectBatch[i],l=n.unselectBatch[i],s=n.textOptions[i],u=n.textSelectedOptions[i]||{},f=n.textUnselectedOptions[i]||{},c=hZ.extendFlat({},s),v,d;if(o.length||l.length){var p=u.color,y=f.color,m=s.color,b=hZ.isArrayOrTypedArray(m);for(c.color=new Array(t._length),v=0;v{"use strict";var pZ=yi(),e9e=LA().styleTextSelection;mZ.exports=function(r,t){var a=r.cd,n=r.xaxis,i=r.yaxis,o=[],l=a[0].trace,s=a[0].t,u=l._length,f=s.x,c=s.y,v=s._scene,d=s.index;if(!v)return o;var p=pZ.hasText(l),y=pZ.hasMarkers(l),m=!y&&!p;if(l.visible!==!0||m)return o;var b=[],T=[];if(t!==!1&&!t.degenerate)for(var _=0;_{"use strict";var r9e=vA();gZ.exports={moduleType:"trace",name:"scattergl",basePlotModule:lp(),categories:["gl","regl","cartesian","symbols","errorBarsOK","showLegend","scatter-like"],attributes:hb(),supplyDefaults:VX(),crossTraceDefaults:Hw(),colorbar:S5(),formatLabels:WX(),calc:vZ(),hoverPoints:r9e.hoverPoints,selectPoints:yZ(),meta:{}}});var _Z=B((sze,xZ)=>{"use strict";xZ.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 MZ=B((uze,TZ)=>{"use strict";var wZ=_Z();TZ.exports=t9e;var AZ={red:0,orange:60,yellow:120,green:180,blue:240,purple:300};function t9e(e){var r,t=[],a=1,n;if(typeof e=="string")if(e=e.toLowerCase(),wZ[e])t=wZ[e].slice(),n="rgb";else if(e==="transparent")a=0,n="rgb",t=[0,0,0];else if(/^#[A-Fa-f0-9]+$/.test(e)){var i=e.slice(1),o=i.length,l=o<=4;a=1,l?(t=[parseInt(i[0]+i[0],16),parseInt(i[1]+i[1],16),parseInt(i[2]+i[2],16)],o===4&&(a=parseInt(i[3]+i[3],16)/255)):(t=[parseInt(i[0]+i[1],16),parseInt(i[2]+i[3],16),parseInt(i[4]+i[5],16)],o===8&&(a=parseInt(i[6]+i[7],16)/255)),t[0]||(t[0]=0),t[1]||(t[1]=0),t[2]||(t[2]=0),n="rgb"}else if(r=/^((?:rgb|hs[lvb]|hwb|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms)a?)\s*\(([^\)]*)\)/.exec(e)){var s=r[1],u=s==="rgb",i=s.replace(/a$/,"");n=i;var o=i==="cmyk"?4:i==="gray"?1:3;t=r[2].trim().split(/\s*[,\/]\s*|\s+/).map(function(v,d){if(/%$/.test(v))return d===o?parseFloat(v)/100:i==="rgb"?parseFloat(v)*255/100:parseFloat(v);if(i[d]==="h"){if(/deg$/.test(v))return parseFloat(v);if(AZ[v]!==void 0)return AZ[v]}return parseFloat(v)}),s===i&&t.push(1),a=u||t[o]===void 0?1:t[o],t=t.slice(0,o)}else e.length>10&&/[0-9](?:\s|\/)/.test(e)&&(t=e.match(/([0-9]+)/g).map(function(f){return parseFloat(f)}),n=e.match(/([a-z])/ig).join("").toLowerCase());else isNaN(e)?Array.isArray(e)||e.length?(t=[e[0],e[1],e[2]],n="rgb",a=e.length===4?e[3]:1):e instanceof Object&&(e.r!=null||e.red!=null||e.R!=null?(n="rgb",t=[e.r||e.red||e.R||0,e.g||e.green||e.G||0,e.b||e.blue||e.B||0]):(n="hsl",t=[e.h||e.hue||e.H||0,e.s||e.saturation||e.S||0,e.l||e.lightness||e.L||e.b||e.brightness]),a=e.a||e.alpha||e.opacity||1,e.opacity!=null&&(a/=100)):(n="rgb",t=[e>>>16,(e&65280)>>>8,e&255]);return{space:n,values:t,alpha:a}}});var SZ=B((fze,kZ)=>{"use strict";var a9e=MZ();kZ.exports=function(r){Array.isArray(r)&&r.raw&&(r=String.raw.apply(null,arguments));var t,a,n,i=a9e(r);if(!i.space)return[];var o=[0,0,0],l=i.space[0]==="h"?[360,100,100]:[255,255,255];return t=Array(3),t[0]=Math.min(Math.max(i.values[0],o[0]),l[0]),t[1]=Math.min(Math.max(i.values[1],o[1]),l[1]),t[2]=Math.min(Math.max(i.values[2],o[2]),l[2]),i.space[0]==="h"&&(t=n9e(t)),t.push(Math.min(Math.max(i.alpha,0),1)),t};function n9e(e){var r=e[0]/360,t=e[1]/100,a=e[2]/100,n,i,o,l,s,u=0;if(t===0)return s=a*255,[s,s,s];for(i=a<.5?a*(1+t):a+t-a*t,n=2*a-i,l=[0,0,0];u<3;)o=r+1/3*-(u-1),o<0?o++:o>1&&o--,s=6*o<1?n+(i-n)*6*o:2*o<1?i:3*o<2?n+(i-n)*(2/3-o)*6:n,l[u++]=s*255;return l}});var kp=B((cze,CZ)=>{"use strict";var i9e=SZ(),o9e=mb();CZ.exports=function(r,t){(t==="float"||!t)&&(t="array"),t==="uint"&&(t="uint8"),t==="uint_clamped"&&(t="uint8_clamped");var a=o9e(t),n=new a(4),i=t!=="uint8"&&t!=="uint8_clamped";return(!r.length||typeof r=="string")&&(r=i9e(r),r[0]/=255,r[1]/=255,r[2]/=255),l9e(r)?(n[0]=r[0],n[1]=r[1],n[2]=r[2],n[3]=r[3]!=null?r[3]:255,i&&(n[0]/=255,n[1]/=255,n[2]/=255,n[3]/=255),n):(i?(n[0]=r[0],n[1]=r[1],n[2]=r[2],n[3]=r[3]!=null?r[3]:1):(n[0]=Math.min(Math.max(Math.floor(r[0]*255),0),255),n[1]=Math.min(Math.max(Math.floor(r[1]*255),0),255),n[2]=Math.min(Math.max(Math.floor(r[2]*255),0),255),n[3]=r[3]==null?255:Math.min(Math.max(Math.floor(r[3]*255),0),255)),n)};function l9e(e){return!!(e instanceof Uint8Array||e instanceof Uint8ClampedArray||Array.isArray(e)&&(e[0]>1||e[0]===0)&&(e[1]>1||e[1]===0)&&(e[2]>1||e[2]===0)&&(!e[3]||e[3]>1))}});var LZ=B((vze,Tb)=>{"use strict";var Ab=pA();Tb.exports=DZ;Tb.exports.to=DZ;Tb.exports.from=s9e;function DZ(e,r){r==null&&(r=!0);var t=e[0],a=e[1],n=e[2],i=e[3];i==null&&(i=r?1:255),r&&(t*=255,a*=255,n*=255,i*=255),t=Ab(t,0,255)&255,a=Ab(a,0,255)&255,n=Ab(n,0,255)&255,i=Ab(i,0,255)&255;var o=t*16777216+(a<<16)+(n<<8)+i;return o}function s9e(e,r){e=+e;var t=e>>>24,a=(e&16711680)>>>16,n=(e&65280)>>>8,i=e&255;return r===!1?[t,a,n,i]:[t/255,a/255,n/255,i/255]}});var qZ=B((hze,EZ)=>{EZ.exports=function(e){typeof e=="string"&&(e=[e]);for(var r=[].slice.call(arguments,1),t=[],a=0;a{"use strict";FZ.exports=function(r,t,a){Array.isArray(a)||(a=[].slice.call(arguments,2));for(var n=0,i=a.length;n{"use strict";ed.exports=Sp;ed.exports.float32=ed.exports.float=Sp;ed.exports.fract32=ed.exports.fract=u9e;var RZ=new Float32Array(1);function u9e(e,r){if(e.length){if(e instanceof Float32Array)return new Float32Array(e.length);r instanceof Float32Array||(r=Sp(e));for(var t=0,a=r.length;t{"use strict";var f9e=kp(),c9e=Sc(),v9e=LZ(),h9e=gA(),kb=qZ(),d9e=Es(),p9e=EA(),m9e=Cc(),Sb=Mb(),y9e=Wh(),g9e=Ci;function Ci(e,r){if(!(this instanceof Ci))return new Ci(e,r);typeof e=="function"?(r||(r={}),r.regl=e):(r=e,e=null),r&&r.length&&(r.positions=r),e=r.regl;let t=e._gl,a,n=[],i={},o=[],l=[null],s=[null],u=255,f=100;this.tooManyColors=!1,a=e.texture({data:new Uint8Array(u*4),width:u,height:1,type:"uint8",format:"rgba",wrapS:"clamp",wrapT:"clamp",mag:"nearest",min:"nearest"}),Object.assign(this,{regl:e,gl:t,groups:o,markerCache:s,markerTextures:l,palette:n,paletteIds:i,paletteTexture:a,maxColors:u,maxSize:f,canvas:t.canvas}),this.update(r);let c={uniforms:{constPointSize:!!r.constPointSize,opacity:e.prop("opacity"),paletteSize:(p,y)=>[this.tooManyColors?0:u,a.height],pixelRatio:e.context("pixelRatio"),scale:e.prop("scale"),scaleFract:e.prop("scaleFract"),translate:e.prop("translate"),translateFract:e.prop("translateFract"),markerTexture:e.prop("markerTexture"),paletteTexture:a},attributes:{x:(p,y)=>y.xAttr||{buffer:y.positionBuffer,stride:8,offset:0},y:(p,y)=>y.yAttr||{buffer:y.positionBuffer,stride:8,offset:4},xFract:(p,y)=>y.xAttr?{constant:[0,0]}:{buffer:y.positionFractBuffer,stride:8,offset:0},yFract:(p,y)=>y.yAttr?{constant:[0,0]}:{buffer:y.positionFractBuffer,stride:8,offset:4},size:(p,y)=>y.size.length?{buffer:y.sizeBuffer,stride:2,offset:0}:{constant:[Math.round(y.size*255/this.maxSize)]},borderSize:(p,y)=>y.borderSize.length?{buffer:y.sizeBuffer,stride:2,offset:1}:{constant:[Math.round(y.borderSize*255/this.maxSize)]},colorId:(p,y)=>y.color.length?{buffer:y.colorBuffer,stride:this.tooManyColors?8:4,offset:0}:{constant:this.tooManyColors?n.slice(y.color*4,y.color*4+4):[y.color]},borderColorId:(p,y)=>y.borderColor.length?{buffer:y.colorBuffer,stride:this.tooManyColors?8:4,offset:this.tooManyColors?4:2}:{constant:this.tooManyColors?n.slice(y.borderColor*4,y.borderColor*4+4):[y.borderColor]},isActive:(p,y)=>y.activation===!0?{constant:[1]}:y.activation?y.activation:{constant:[0]}},blend:{enable:!0,color:[0,0,0,1],func:{srcRGB:"src alpha",dstRGB:"one minus src alpha",srcAlpha:"one minus dst alpha",dstAlpha:"one"}},scissor:{enable:!0,box:e.prop("viewport")},viewport:e.prop("viewport"),stencil:{enable:!1},depth:{enable:!1},elements:e.prop("elements"),count:e.prop("count"),offset:e.prop("offset"),primitive:"points"},v=Object.assign({},c);v.frag=kb([`precision highp float; +`)};function R(X){return X.map(O).join(h)}function O(X){return A.test(X)?'"'+X.replace(/\"/g,'""')+'"':X}return D},e.csv=e.dsv(",","text/csv"),e.tsv=e.dsv(" ","text/tab-separated-values");var Ua,Xn,Ni,no,Xc=this[W(this,"requestAnimationFrame")]||function(h){setTimeout(h,17)};e.timer=function(){Vs.apply(this,arguments)};function Vs(h,g,A){var S=arguments.length;S<2&&(g=0),S<3&&(A=Date.now());var D=A+g,L={c:h,t:D,n:null};return Xn?Xn.n=L:Ua=L,Xn=L,Ni||(no=clearTimeout(no),Ni=1,Xc(Xs)),L}function Xs(){var h=c0(),g=yd()-h;g>24?(isFinite(g)&&(clearTimeout(no),no=setTimeout(Xs,g)),Ni=0):(Ni=1,Xc(Xs))}e.timer.flush=function(){c0(),yd()};function c0(){for(var h=Date.now(),g=Ua;g;)h>=g.t&&g.c(h-g.t)&&(g.c=null),g=g.n;return h}function yd(){for(var h,g=Ua,A=1/0;g;)g.c?(g.t=0;--R)re.push(D[X[$[R]][2]]);for(R=+we;R1&&ra(h[A[S-2]],h[A[S-1]],h[D])<=0;)--S;A[S++]=D}return A.slice(0,S)}function Dx(h,g){return h[0]-g[0]||h[1]-g[1]}e.geom.polygon=function(h){return ae(h,Wc),h};var Wc=e.geom.polygon.prototype=[];Wc.area=function(){for(var h=-1,g=this.length,A,S=this[g-1],D=0;++hrr)R=R.L;else if(N=g-im(R,A),N>rr){if(!R.R){S=R;break}R=R.R}else{L>-rr?(S=R.P,D=R):N>-rr?(S=R,D=R.N):S=D=R;break}var O=bd(h);if(No.insert(S,O),!(!S&&!D)){if(S===D){Bu(S),D=bd(S.site),No.insert(O,D),O.edge=D.edge=p0(S.site,O.site),el(S),el(D);return}if(!D){O.edge=p0(S.site,O.site);return}Bu(S),Bu(D);var X=S.site,J=X.x,$=X.y,K=h.x-J,we=h.y-$,ke=D.site,re=ke.x-J,ve=ke.y-$,xe=2*(K*ve-we*re),Se=K*K+we*we,De=re*re+ve*ve,me={x:(ve*Se-we*De)/xe+J,y:(K*De-re*Se)/xe+$};Iu(D.edge,X,ke,me),O.edge=p0(X,h,null,me),D.edge=p0(h,ke,null,me),el(S),el(D)}}function xd(h,g){var A=h.site,S=A.x,D=A.y,L=D-g;if(!L)return S;var N=h.P;if(!N)return-1/0;A=N.site;var R=A.x,O=A.y,X=O-g;if(!X)return R;var J=R-S,$=1/L-1/X,K=J/X;return $?(-K+Math.sqrt(K*K-2*$*(J*J/(-2*X)-O+X/2+D-L/2)))/$+S:(S+R)/2}function im(h,g){var A=h.N;if(A)return xd(A,g);var S=h.site;return S.y===g?S.x:1/0}function _d(h){this.site=h,this.edges=[]}_d.prototype.prepare=function(){for(var h=this.edges,g=h.length,A;g--;)A=h[g].edge,(!A.b||!A.a)&&h.splice(g,1);return h.sort($c),h.length};function zu(h){for(var g=h[0][0],A=h[1][0],S=h[0][1],D=h[1][1],L,N,R,O,X=Dl,J=X.length,$,K,we,ke,re,ve;J--;)if($=X[J],!(!$||!$.prepare()))for(we=$.edges,ke=we.length,K=0;Krr||b(O-N)>rr)&&(we.splice(K,0,new Kc(qx($.site,ve,b(R-g)rr?{x:g,y:b(L-g)rr?{x:b(N-D)rr?{x:A,y:b(L-A)rr?{x:b(N-S)=-Rr)){var K=O*O+X*X,we=J*J+ve*ve,ke=(ve*K-X*we)/$,re=(O*we-J*K)/$,ve=re+R,xe=Jc.pop()||new wd;xe.arc=h,xe.site=D,xe.x=ke+N,xe.y=ve+Math.sqrt(ke*ke+re*re),xe.cy=ve,h.circle=xe;for(var Se=null,De=Ws._;De;)if(xe.y0)){if(re/=we,we<0){if(re<$)return;re0){if(re>K)return;re>$&&($=re)}if(re=A-R,!(!we&&re<0)){if(re/=we,we<0){if(re>K)return;re>$&&($=re)}else if(we>0){if(re<$)return;re0)){if(re/=ke,ke<0){if(re<$)return;re0){if(re>K)return;re>$&&($=re)}if(re=S-O,!(!ke&&re<0)){if(re/=ke,ke<0){if(re>K)return;re>$&&($=re)}else if(ke>0){if(re<$)return;re0&&(D.a={x:R+$*we,y:O+$*ke}),K<1&&(D.b={x:R+K*we,y:O+K*ke}),D}}}}}}function Ex(h){for(var g=os,A=Lx(h[0][0],h[0][1],h[1][0],h[1][1]),S=g.length,D;S--;)D=g[S],(!Ad(D,h)||!A(D)||b(D.a.x-D.b.x)=L)return;if(J>K){if(!S)S={x:ke,y:N};else if(S.y>=R)return;A={x:ke,y:R}}else{if(!S)S={x:ke,y:R};else if(S.y1)if(J>K){if(!S)S={x:(N-xe)/ve,y:N};else if(S.y>=R)return;A={x:(R-xe)/ve,y:R}}else{if(!S)S={x:(R-xe)/ve,y:R};else if(S.y=L)return;A={x:L,y:ve*L+xe}}else{if(!S)S={x:L,y:ve*L+xe};else if(S.x=J&&xe.x<=K&&xe.y>=$&&xe.y<=we?[[J,we],[K,we],[K,$],[J,$]]:[];Se.point=O[re]}),X}function R(O){return O.map(function(X,J){return{x:Math.round(S(X,J)/rr)*rr,y:Math.round(D(X,J)/rr)*rr,i:J}})}return N.links=function(O){return Hu(R(O)).edges.filter(function(X){return X.l&&X.r}).map(function(X){return{source:O[X.l.i],target:O[X.r.i]}})},N.triangles=function(O){var X=[];return Hu(R(O)).cells.forEach(function(J,$){for(var K=J.site,we=J.edges.sort($c),ke=-1,re=we.length,ve,xe,Se=we[re-1].edge,De=Se.l===K?Se.r:Se.l;++keDe&&(De=J.x),J.y>me&&(me=J.y),we.push(J.x),ke.push(J.y);else for(re=0;reDe&&(De=sr),Ar>me&&(me=Ar),we.push(sr),ke.push(Ar)}var Nr=De-xe,Zr=me-Se;Nr>Zr?me=Se+Nr:De=xe+Zr;function ct(gt,Rt,pa,wn,Ta,Or,It,Wt){if(!(isNaN(pa)||isNaN(wn)))if(gt.leaf){var va=gt.x,Wa=gt.y;if(va!=null)if(b(va-pa)+b(Wa-wn)<.01)vt(gt,Rt,pa,wn,Ta,Or,It,Wt);else{var En=gt.point;gt.x=gt.y=gt.point=null,vt(gt,En,va,Wa,Ta,Or,It,Wt),vt(gt,Rt,pa,wn,Ta,Or,It,Wt)}else gt.x=pa,gt.y=wn,gt.point=Rt}else vt(gt,Rt,pa,wn,Ta,Or,It,Wt)}function vt(gt,Rt,pa,wn,Ta,Or,It,Wt){var va=(Ta+It)*.5,Wa=(Or+Wt)*.5,En=pa>=va,ui=wn>=Wa,xi=ui<<1|En;gt.leaf=!1,gt=gt.nodes[xi]||(gt.nodes[xi]=sm()),En?Ta=va:It=va,ui?Or=Wa:Wt=Wa,ct(gt,Rt,pa,wn,Ta,Or,It,Wt)}var Bt=sm();if(Bt.add=function(gt){ct(Bt,gt,+$(gt,++re),+K(gt,re),xe,Se,De,me)},Bt.visit=function(gt){g0(gt,Bt,xe,Se,De,me)},Bt.find=function(gt){return um(Bt,gt[0],gt[1],xe,Se,De,me)},re=-1,g==null){for(;++reL||K>N||we=sr,Zr=A>=Ar,ct=Zr<<1|Nr,vt=ct+4;ctA&&(L=g.slice(A,L),R[N]?R[N]+=L:R[++N]=L),(S=S[0])===(D=D[0])?R[N]?R[N]+=D:R[++N]=D:(R[++N]=null,O.push({i:N,x:vo(S,D)})),A=ev.lastIndex;return A=0&&!(S=e.interpolators[A](h,g)););return S}e.interpolators=[function(h,g){var A=typeof g;return(A==="string"?kt.has(g.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(g)?Js:ho:g instanceof Dn?Js:Array.isArray(g)?b0:A==="object"&&isNaN(g)?fm:vo)(h,g)}],e.interpolateArray=b0;function b0(h,g){var A=[],S=[],D=h.length,L=g.length,N=Math.min(h.length,g.length),R;for(R=0;R=0?h.slice(0,g):h,S=g>=0?h.slice(g+1):"in";return A=cm.get(A)||Td,S=vm.get(S)||U,zx(S(A.apply(null,r.call(arguments,1))))};function zx(h){return function(g){return g<=0?0:g>=1?1:h(g)}}function js(h){return function(g){return 1-h(1-g)}}function Qn(h){return function(g){return .5*(g<.5?h(2*g):2-h(2-2*g))}}function hm(h){return h*h}function dm(h){return h*h*h}function $s(h){if(h<=0)return 0;if(h>=1)return 1;var g=h*h,A=g*h;return 4*(h<.5?A:3*(h-g)+A-.75)}function pm(h){return function(g){return Math.pow(g,h)}}function mm(h){return 1-Math.cos(h*le)}function Bx(h){return Math.pow(2,10*(h-1))}function Ix(h){return 1-Math.sqrt(1-h*h)}function Ox(h,g){var A;return arguments.length<2&&(g=.45),arguments.length?A=g/nt*Math.asin(1/h):(h=1,A=g/4),function(S){return 1+h*Math.pow(2,-10*S)*Math.sin((S-A)*nt/g)}}function Hx(h){return h||(h=1.70158),function(g){return g*g*((h+1)*g-h)}}function Md(h){return h<1/2.75?7.5625*h*h:h<2/2.75?7.5625*(h-=1.5/2.75)*h+.75:h<2.5/2.75?7.5625*(h-=2.25/2.75)*h+.9375:7.5625*(h-=2.625/2.75)*h+.984375}e.interpolateHcl=ym;function ym(h,g){h=e.hcl(h),g=e.hcl(g);var A=h.h,S=h.c,D=h.l,L=g.h-A,N=g.c-S,R=g.l-D;return isNaN(N)&&(N=0,S=isNaN(S)?g.c:S),isNaN(L)?(L=0,A=isNaN(A)?g.h:A):L>180?L-=360:L<-180&&(L+=360),function(O){return Vn(A+L*O,S+N*O,D+R*O)+""}}e.interpolateHsl=Ux;function Ux(h,g){h=e.hsl(h),g=e.hsl(g);var A=h.h,S=h.s,D=h.l,L=g.h-A,N=g.s-S,R=g.l-D;return isNaN(N)&&(N=0,S=isNaN(S)?g.s:S),isNaN(L)?(L=0,A=isNaN(A)?g.h:A):L>180?L-=360:L<-180&&(L+=360),function(O){return Zt(A+L*O,S+N*O,D+R*O)+""}}e.interpolateLab=gm;function gm(h,g){h=e.lab(h),g=e.lab(g);var A=h.l,S=h.a,D=h.b,L=g.l-A,N=g.a-S,R=g.b-D;return function(O){return Mn(A+L*O,S+N*O,D+R*O)+""}}e.interpolateRound=kd;function kd(h,g){return g-=h,function(A){return Math.round(h+g*A)}}e.transform=function(h){var g=a.createElementNS(e.ns.prefix.svg,"g");return(e.transform=function(A){if(A!=null){g.setAttribute("transform",A);var S=g.transform.baseVal.consolidate()}return new bm(S?S.matrix:rv)})(h)};function bm(h){var g=[h.a,h.b],A=[h.c,h.d],S=xm(g),D=x0(g,A),L=xm(us(A,g,-D))||0;g[0]*A[1]180?g+=360:g-h>180&&(h+=360),S.push({i:A.push(Ks(A)+"rotate(",null,")")-2,x:vo(h,g)})):g&&A.push(Ks(A)+"rotate("+g+")")}function Am(h,g,A,S){h!==g?S.push({i:A.push(Ks(A)+"skewX(",null,")")-2,x:vo(h,g)}):g&&A.push(Ks(A)+"skewX("+g+")")}function Tm(h,g,A,S){if(h[0]!==g[0]||h[1]!==g[1]){var D=A.push(Ks(A)+"scale(",null,",",null,")");S.push({i:D-4,x:vo(h[0],g[0])},{i:D-2,x:vo(h[1],g[1])})}else(g[0]!==1||g[1]!==1)&&A.push(Ks(A)+"scale("+g+")")}function Sd(h,g){var A=[],S=[];return h=e.transform(h),g=e.transform(g),_m(h.translate,g.translate,A,S),wm(h.rotate,g.rotate,A,S),Am(h.skew,g.skew,A,S),Tm(h.scale,g.scale,A,S),h=g=null,function(D){for(var L=-1,N=S.length,R;++L0?L=me:(A.c=null,A.t=NaN,A=null,g.end({type:"end",alpha:L=0})):me>0&&(g.start({type:"start",alpha:L=me}),A=Vs(h.tick)),h):L},h.start=function(){var me,sr=we.length,Ar=ke.length,Nr=S[0],Zr=S[1],ct,vt;for(me=0;me=0;)L.push(J=X[O]),J.parent=R,J.depth=R.depth+1;A&&(R.value=0),R.children=X}else A&&(R.value=+A.call(S,R,R.depth)||0),delete R.children;return rl(D,function($){var K,we;h&&(K=$.children)&&K.sort(h),A&&(we=$.parent)&&(we.value+=$.value)}),N}return S.sort=function(D){return arguments.length?(h=D,S):h},S.children=function(D){return arguments.length?(g=D,S):g},S.value=function(D){return arguments.length?(A=D,S):A},S.revalue=function(D){return A&&(_0(D,function(L){L.children&&(L.value=0)}),rl(D,function(L){var N;L.children||(L.value=+A.call(S,L,L.depth)||0),(N=L.parent)&&(N.value+=L.value)})),D},S};function Gu(h,g){return e.rebind(h,g,"sort","children","value"),h.nodes=h,h.links=Wx,h}function _0(h,g){for(var A=[h];(h=A.pop())!=null;)if(g(h),(D=h.children)&&(S=D.length))for(var S,D;--S>=0;)A.push(D[S])}function rl(h,g){for(var A=[h],S=[];(h=A.pop())!=null;)if(S.push(h),(N=h.children)&&(L=N.length))for(var D=-1,L,N;++DD&&(D=R),S.push(R)}for(N=0;NS&&(A=g,S=D);return A}function jx(h){return h.reduce($x,0)}function $x(h,g){return h+g[1]}e.layout.histogram=function(){var h=!0,g=Number,A=Qx,S=Kx;function D(L,K){for(var R=[],O=L.map(g,this),X=A.call(this,O,K),J=S.call(this,X,O,K),$,K=-1,we=O.length,ke=J.length-1,re=h?1:1/we,ve;++K0)for(K=-1;++K=X[0]&&ve<=X[1]&&($=R[e.bisect(J,ve,1,ke)-1],$.y+=re,$.push(L[K]));return R}return D.value=function(L){return arguments.length?(g=L,D):g},D.range=function(L){return arguments.length?(A=St(L),D):A},D.bins=function(L){return arguments.length?(S=typeof L=="number"?function(N){return Rm(N,L)}:St(L),D):S},D.frequency=function(L){return arguments.length?(h=!!L,D):h},D};function Kx(h,g){return Rm(h,Math.ceil(Math.log(g.length)/Math.LN2+1))}function Rm(h,g){for(var A=-1,S=+h[0],D=(h[1]-S)/g,L=[];++A<=g;)L[A]=D*A+S;return L}function Qx(h){return[e.min(h),e.max(h)]}e.layout.pack=function(){var h=e.layout.hierarchy().sort(Ed),g=0,A=[1,1],S;function D(L,N){var R=h.call(this,L,N),O=R[0],X=A[0],J=A[1],$=S==null?Math.sqrt:typeof S=="function"?S:function(){return S};if(O.x=O.y=0,rl(O,function(we){we.r=+$(we.value)}),rl(O,Nm),g){var K=g*(S?1:Math.max(2*O.r/X,2*O.r/J))/2;rl(O,function(we){we.r+=K}),rl(O,Nm),rl(O,function(we){we.r-=K})}return zm(O,X/2,J/2,S?1:1/Math.max(2*O.r/X,2*O.r/J)),R}return D.size=function(L){return arguments.length?(A=L,D):A},D.radius=function(L){return arguments.length?(S=L==null||typeof L=="function"?L:+L,D):S},D.padding=function(L){return arguments.length?(g=+L,D):g},Gu(D,h)};function Ed(h,g){return h.value-g.value}function qd(h,g){var A=h._pack_next;h._pack_next=g,g._pack_prev=h,g._pack_next=A,A._pack_prev=g}function Fd(h,g){h._pack_next=g,g._pack_prev=h}function Pm(h,g){var A=g.x-h.x,S=g.y-h.y,D=h.r+g.r;return .999*D*D>A*A+S*S}function Nm(h){if(!(g=h.children)||!(K=g.length))return;var g,A=1/0,S=-1/0,D=1/0,L=-1/0,N,R,O,X,J,$,K;function we(me){A=Math.min(me.x-me.r,A),S=Math.max(me.x+me.r,S),D=Math.min(me.y-me.r,D),L=Math.max(me.y+me.r,L)}if(g.forEach(e_),N=g[0],N.x=-N.r,N.y=0,we(N),K>1&&(R=g[1],R.x=R.r,R.y=0,we(R),K>2))for(O=g[2],t_(N,R,O),we(O),qd(N,O),N._pack_prev=O,qd(O,R),R=N._pack_next,X=3;Xve.x&&(ve=sr),sr.depth>xe.depth&&(xe=sr)});var Se=g(re,ve)/2-re.x,De=A[0]/(ve.x+g(ve,re)/2+Se),me=A[1]/(xe.depth||1);_0(we,function(sr){sr.x=(sr.x+Se)*De,sr.y=sr.depth*me})}return K}function L(J){for(var $={A:null,children:[J]},K=[$],we;(we=K.pop())!=null;)for(var ke=we.children,re,ve=0,xe=ke.length;ve0&&(a_(Hm(re,J,K),J,sr),xe+=sr,Se+=sr),De+=re.m,xe+=we.m,me+=ve.m,Se+=ke.m;re&&!Om(ke)&&(ke.t=re,ke.m+=De-Se),we&&!Im(ve)&&(ve.t=we,ve.m+=xe-me,K=J)}return K}function X(J){J.x*=A[0],J.y=J.depth*A[1]}return D.separation=function(J){return arguments.length?(g=J,D):g},D.size=function(J){return arguments.length?(S=(A=J)==null?X:null,D):S?null:A},D.nodeSize=function(J){return arguments.length?(S=(A=J)==null?null:X,D):S?A:null},Gu(D,h)};function Bm(h,g){return h.parent==g.parent?1:2}function Im(h){var g=h.children;return g.length?g[0]:h.t}function Om(h){var g=h.children,A;return(A=g.length)?g[A-1]:h.t}function a_(h,g,A){var S=A/(g.i-h.i);g.c-=S,g.s+=A,h.c+=S,g.z+=A,g.m+=A}function Rd(h){for(var g=0,A=0,S=h.children,D=S.length,L;--D>=0;)L=S[D],L.z+=g,L.m+=g,g+=L.s+(A+=L.c)}function Hm(h,g,A){return h.a.parent===g.parent?h.a:A}e.layout.cluster=function(){var h=e.layout.hierarchy().sort(null).value(null),g=Bm,A=[1,1],S=!1;function D(L,N){var R=h.call(this,L,N),O=R[0],X,J=0;rl(O,function(re){var ve=re.children;ve&&ve.length?(re.x=Um(ve),re.y=tl(ve)):(re.x=X?J+=g(re,X):0,re.y=0,X=re)});var $=Gm(O),K=Ym(O),we=$.x-g($,K)/2,ke=K.x+g(K,$)/2;return rl(O,S?function(re){re.x=(re.x-O.x)*A[0],re.y=(O.y-re.y)*A[1]}:function(re){re.x=(re.x-we)/(ke-we)*A[0],re.y=(1-(O.y?re.y/O.y:1))*A[1]}),R}return D.separation=function(L){return arguments.length?(g=L,D):g},D.size=function(L){return arguments.length?(S=(A=L)==null,D):S?null:A},D.nodeSize=function(L){return arguments.length?(S=(A=L)!=null,D):S?A:null},Gu(D,h)};function tl(h){return 1+e.max(h,function(g){return g.y})}function Um(h){return h.reduce(function(g,A){return g+A.x},0)/h.length}function Gm(h){var g=h.children;return g&&g.length?Gm(g[0]):h}function Ym(h){var g=h.children,A;return g&&(A=g.length)?Ym(g[A-1]):h}e.layout.treemap=function(){var h=e.layout.hierarchy(),g=Math.round,A=[1,1],S=null,D=Pd,L=!1,N,R="squarify",O=.5*(1+Math.sqrt(5));function X(re,ve){for(var xe=-1,Se=re.length,De,me;++xe0;)Se.push(me=De[Zr-1]),Se.area+=me.area,R!=="squarify"||(Ar=K(Se,Nr))<=sr?(De.pop(),sr=Ar):(Se.area-=Se.pop().area,we(Se,Nr,xe,!1),Nr=Math.min(xe.dx,xe.dy),Se.length=Se.area=0,sr=1/0);Se.length&&(we(Se,Nr,xe,!0),Se.length=Se.area=0),ve.forEach(J)}}function $(re){var ve=re.children;if(ve&&ve.length){var xe=D(re),Se=ve.slice(),De,me=[];for(X(Se,xe.dx*xe.dy/re.value),me.area=0;De=Se.pop();)me.push(De),me.area+=De.area,De.z!=null&&(we(me,De.z?xe.dx:xe.dy,xe,!Se.length),me.length=me.area=0);ve.forEach($)}}function K(re,ve){for(var xe=re.area,Se,De=0,me=1/0,sr=-1,Ar=re.length;++srDe&&(De=Se));return xe*=xe,ve*=ve,xe?Math.max(ve*De*O/xe,xe/(ve*me*O)):1/0}function we(re,ve,xe,Se){var De=-1,me=re.length,sr=xe.x,Ar=xe.y,Nr=ve?g(re.area/ve):0,Zr;if(ve==xe.dx){for((Se||Nr>xe.dy)&&(Nr=xe.dy);++Dexe.dx)&&(Nr=xe.dx);++De1);return h+g*S*Math.sqrt(-2*Math.log(L)/L)}},logNormal:function(){var h=e.random.normal.apply(e,arguments);return function(){return Math.exp(h())}},bates:function(h){var g=e.random.irwinHall(h);return function(){return g()/h}},irwinHall:function(h){return function(){for(var g=0,A=0;A2?Xu:n_,X=S?km:Mm;return D=O(h,g,X,A),L=O(g,h,X,ss),R}function R(O){return D(O)}return R.invert=function(O){return L(O)},R.domain=function(O){return arguments.length?(h=O.map(Number),N()):h},R.range=function(O){return arguments.length?(g=O,N()):g},R.rangeRound=function(O){return R.range(O).interpolate(kd)},R.clamp=function(O){return arguments.length?(S=O,N()):S},R.interpolate=function(O){return arguments.length?(A=O,N()):A},R.ticks=function(O){return A0(h,O)},R.tickFormat=function(O,X){return d3_scale_linearTickFormat(h,O,X)},R.nice=function(O){return Nd(h,O),N()},R.copy=function(){return Xm(h,g,A,S)},N()}function Qs(h,g){return e.rebind(h,g,"range","rangeRound","interpolate","clamp")}function Nd(h,g){return Yu(h,ei(fs(h,g)[2])),Yu(h,ei(fs(h,g)[2])),h}function fs(h,g){g==null&&(g=10);var A=iv(h),S=A[1]-A[0],D=Math.pow(10,Math.floor(Math.log(S/g)/Math.LN10)),L=g/S*D;return L<=.15?D*=10:L<=.35?D*=5:L<=.75&&(D*=2),A[0]=Math.ceil(A[0]/D)*D,A[1]=Math.floor(A[1]/D)*D+D*.5,A[2]=D,A}function A0(h,g){return e.range.apply(e,fs(h,g))}var zd={s:1,g:1,p:1,r:1,e:1};function lv(h){return-Math.floor(Math.log(h)/Math.LN10+.01)}function Wm(h,g){var A=lv(g[2]);return h in zd?Math.abs(A-lv(Math.max(b(g[0]),b(g[1]))))+ +(h!=="e"):A-(h==="%")*2}e.scale.log=function(){return sv(e.scale.linear().domain([0,1]),10,!0,[1,10])};function sv(h,g,A,S){function D(R){return(A?Math.log(R<0?0:R):-Math.log(R>0?0:-R))/Math.log(g)}function L(R){return A?Math.pow(g,R):-Math.pow(g,-R)}function N(R){return h(D(R))}return N.invert=function(R){return L(h.invert(R))},N.domain=function(R){return arguments.length?(A=R[0]>=0,h.domain((S=R.map(Number)).map(D)),N):S},N.base=function(R){return arguments.length?(g=+R,h.domain(S.map(D)),N):g},N.nice=function(){var R=Yu(S.map(D),A?Math:uv);return h.domain(R),S=R.map(L),N},N.ticks=function(){var R=iv(S),O=[],X=R[0],J=R[1],$=Math.floor(D(X)),K=Math.ceil(D(J)),we=g%1?2:g;if(isFinite(K-$)){if(A){for(;$0;ke--)O.push(L($)*ke);for($=0;O[$]J;K--);O=O.slice($,K)}return O},N.copy=function(){return sv(h.copy(),g,A,S)},Qs(N,h)}var uv={floor:function(h){return-Math.ceil(-h)},ceil:function(h){return-Math.floor(-h)}};e.scale.pow=function(){return Bd(e.scale.linear(),1,[0,1])};function Bd(h,g,A){var S=T0(g),D=T0(1/g);function L(N){return h(S(N))}return L.invert=function(N){return D(h.invert(N))},L.domain=function(N){return arguments.length?(h.domain((A=N.map(Number)).map(S)),L):A},L.ticks=function(N){return A0(A,N)},L.tickFormat=function(N,R){return d3_scale_linearTickFormat(A,N,R)},L.nice=function(N){return L.domain(Nd(A,N))},L.exponent=function(N){return arguments.length?(S=T0(g=N),D=T0(1/g),h.domain(A.map(S)),L):g},L.copy=function(){return Bd(h.copy(),g,A)},Qs(L,h)}function T0(h){return function(g){return g<0?-Math.pow(-g,h):Math.pow(g,h)}}e.scale.sqrt=function(){return e.scale.pow().exponent(.5)},e.scale.ordinal=function(){return Id([],{t:"range",a:[[]]})};function Id(h,g){var A,S,D;function L(R){return S[((A.get(R)||(g.t==="range"?A.set(R,h.push(R)):NaN))-1)%S.length]}function N(R,O){return e.range(h.length).map(function(X){return R+O*X})}return L.domain=function(R){if(!arguments.length)return h;h=[],A=new x;for(var O=-1,X=R.length,J;++O0?A[L-1]:h[0],LK?0:1;if(J=lt)return O(J,ke)+(X?O(X,1-ke):"")+"Z";var re,ve,xe,Se,De=0,me=0,sr,Ar,Nr,Zr,ct,vt,Bt,gt,Rt=[];if((Se=(+N.apply(this,arguments)||0)/2)&&(xe=S===M0?Math.sqrt(X*X+J*J):+S.apply(this,arguments),ke||(me*=-1),J&&(me=Ha(xe/J*Math.sin(Se))),X&&(De=Ha(xe/X*Math.sin(Se)))),J){sr=J*Math.cos($+me),Ar=J*Math.sin($+me),Nr=J*Math.cos(K-me),Zr=J*Math.sin(K-me);var pa=Math.abs(K-$-2*me)<=at?0:1;if(me&&k0(sr,Ar,Nr,Zr)===ke^pa){var wn=($+K)/2;sr=J*Math.cos(wn),Ar=J*Math.sin(wn),Nr=Zr=null}}else sr=Ar=0;if(X){ct=X*Math.cos(K-De),vt=X*Math.sin(K-De),Bt=X*Math.cos($+De),gt=X*Math.sin($+De);var Ta=Math.abs($-K+2*De)<=at?0:1;if(De&&k0(ct,vt,Bt,gt)===1-ke^Ta){var Or=($+K)/2;ct=X*Math.cos(Or),vt=X*Math.sin(Or),Bt=gt=null}}else ct=vt=0;if(we>rr&&(re=Math.min(Math.abs(J-X)/2,+A.apply(this,arguments)))>.001){ve=X0?0:1}function S0(h,g,A,S,D){var L=h[0]-g[0],N=h[1]-g[1],R=(D?S:-S)/Math.sqrt(L*L+N*N),O=R*N,X=-R*L,J=h[0]+O,$=h[1]+X,K=g[0]+O,we=g[1]+X,ke=(J+K)/2,re=($+we)/2,ve=K-J,xe=we-$,Se=ve*ve+xe*xe,De=A-S,me=J*we-K*$,sr=(xe<0?-1:1)*Math.sqrt(Math.max(0,De*De*Se-me*me)),Ar=(me*xe-ve*sr)/Se,Nr=(-me*ve-xe*sr)/Se,Zr=(me*xe+ve*sr)/Se,ct=(-me*ve+xe*sr)/Se,vt=Ar-ke,Bt=Nr-re,gt=Zr-ke,Rt=ct-re;return vt*vt+Bt*Bt>gt*gt+Rt*Rt&&(Ar=Zr,Nr=ct),[[Ar-O,Nr-X],[Ar*A/De,Nr*A/De]]}function cv(){return!0}function jd(h){var g=is,A=Nu,S=cv,D=io,L=D.key,N=.7;function R(O){var X=[],J=[],$=-1,K=O.length,we,ke=St(g),re=St(A);function ve(){X.push("M",D(h(J),N))}for(;++$1?h.join("L"):h+"Z"}function hv(h){return h.join("L")+"Z"}function C0(h){for(var g=0,A=h.length,S=h[0],D=[S[0],",",S[1]];++g1&&D.push("H",S[0]),D.join("")}function dv(h){for(var g=0,A=h.length,S=h[0],D=[S[0],",",S[1]];++g1){R=g[1],L=h[O],O++,S+="C"+(D[0]+N[0])+","+(D[1]+N[1])+","+(L[0]-R[0])+","+(L[1]-R[1])+","+L[0]+","+L[1];for(var X=2;X9&&(L=A*3/Math.sqrt(L),N[R]=L*S,N[R+1]=L*D));for(R=-1;++R<=O;)L=(h[Math.min(O,R+1)][0]-h[Math.max(0,R-1)][0])/(6*(1+N[R]*N[R])),g.push([L||0,N[R]*L||0]);return g}function $m(h){return h.length<3?io(h):h[0]+eu(h,o_(h))}e.svg.line.radial=function(){var h=jd(Kd);return h.radius=h.x,delete h.x,h.angle=h.y,delete h.y,h};function Kd(h){for(var g,A=-1,S=h.length,D,L;++Aat)+",1 "+$}function X(J,$,K,we){return"Q 0,0 "+we}return L.radius=function(J){return arguments.length?(A=St(J),L):A},L.source=function(J){return arguments.length?(h=St(J),L):h},L.target=function(J){return arguments.length?(g=St(J),L):g},L.startAngle=function(J){return arguments.length?(S=St(J),L):S},L.endAngle=function(J){return arguments.length?(D=St(J),L):D},L};function e2(h){return h.radius}e.svg.diagonal=function(){var h=Km,g=tu,A=Qm;function S(D,L){var N=h.call(this,D,L),R=g.call(this,D,L),O=(N.y+R.y)/2,X=[N,{x:N.x,y:O},{x:R.x,y:O},R];return X=X.map(A),"M"+X[0]+"C"+X[1]+" "+X[2]+" "+X[3]}return S.source=function(D){return arguments.length?(h=St(D),S):h},S.target=function(D){return arguments.length?(g=St(D),S):g},S.projection=function(D){return arguments.length?(A=D,S):A},S};function Qm(h){return[h.x,h.y]}e.svg.diagonal.radial=function(){var h=e.svg.diagonal(),g=Qm,A=h.projection;return h.projection=function(S){return arguments.length?A(l_(g=S)):g},h};function l_(h){return function(){var g=h.apply(this,arguments),A=g[0],S=g[1]-le;return[A*Math.cos(S),A*Math.sin(S)]}}e.svg.symbol=function(){var h=u_,g=s_;function A(S,D){return(ry.get(h.call(this,S,D))||ey)(g.call(this,S,D))}return A.type=function(S){return arguments.length?(h=St(S),A):h},A.size=function(S){return arguments.length?(g=St(S),A):g},A};function s_(){return 64}function u_(){return"circle"}function ey(h){var g=Math.sqrt(h/at);return"M0,"+g+"A"+g+","+g+" 0 1,1 0,"+-g+"A"+g+","+g+" 0 1,1 0,"+g+"Z"}var ry=e.map({circle:ey,cross:function(h){var g=Math.sqrt(h/5)/2;return"M"+-3*g+","+-g+"H"+-g+"V"+-3*g+"H"+g+"V"+-g+"H"+3*g+"V"+g+"H"+g+"V"+3*g+"H"+-g+"V"+g+"H"+-3*g+"Z"},diamond:function(h){var g=Math.sqrt(h/(2*ty)),A=g*ty;return"M0,"+-g+"L"+A+",0 0,"+g+" "+-A+",0Z"},square:function(h){var g=Math.sqrt(h)/2;return"M"+-g+","+-g+"L"+g+","+-g+" "+g+","+g+" "+-g+","+g+"Z"},"triangle-down":function(h){var g=Math.sqrt(h/yv),A=g*yv/2;return"M0,"+A+"L"+g+","+-A+" "+-g+","+-A+"Z"},"triangle-up":function(h){var g=Math.sqrt(h/yv),A=g*yv/2;return"M0,"+-A+"L"+g+","+A+" "+-g+","+A+"Z"}});e.svg.symbolTypes=ry.keys();var yv=Math.sqrt(3),ty=Math.tan(30*Te);ge.transition=function(h){for(var g=hs||++bv,A=xv(h),S=[],D,L,N=Ku||{time:Date.now(),ease:$s,delay:0,duration:250},R=-1,O=this.length;++R0;)$[--Se].call(h,xe);if(ve>=1)return N.event&&N.event.end.call(h,h.__data__,g),--L.count?delete L[S]:delete h[A],1}N||(R=D.time,O=Vs(K,0,R),N=L[S]={tween:new x,time:R,timer:O,delay:D.delay,duration:D.duration,ease:D.ease,index:g},D=null,++L.count)}e.svg.axis=function(){var h=e.scale.linear(),g=_v,A=6,S=6,D=3,L=[10],N=null,R;function O(X){X.each(function(){var J=e.select(this),$=this.__chart__||h,K=this.__chart__=h.copy(),we=N==null?K.ticks?K.ticks.apply(K,L):K.domain():N,ke=R==null?K.tickFormat?K.tickFormat.apply(K,L):U:R,re=J.selectAll(".tick").data(we,K),ve=re.enter().insert("g",".domain").attr("class","tick").style("opacity",rr),xe=e.transition(re.exit()).style("opacity",rr).remove(),Se=e.transition(re.order()).style("opacity",1),De=Math.max(A,0)+D,me,sr=ov(K),Ar=J.selectAll(".domain").data([0]),Nr=(Ar.enter().append("path").attr("class","domain"),e.transition(Ar));ve.append("line"),ve.append("text");var Zr=ve.select("line"),ct=Se.select("line"),vt=re.select("text").text(ke),Bt=ve.select("text"),gt=Se.select("text"),Rt=g==="top"||g==="left"?-1:1,pa,wn,Ta,Or;if(g==="bottom"||g==="top"?(me=n2,pa="x",Ta="y",wn="x2",Or="y2",vt.attr("dy",Rt<0?"0em":".71em").style("text-anchor","middle"),Nr.attr("d","M"+sr[0]+","+Rt*S+"V0H"+sr[1]+"V"+Rt*S)):(me=i2,pa="y",Ta="x",wn="y2",Or="x2",vt.attr("dy",".32em").style("text-anchor",Rt<0?"end":"start"),Nr.attr("d","M"+Rt*S+","+sr[0]+"H0V"+sr[1]+"H"+Rt*S)),Zr.attr(Or,Rt*A),Bt.attr(Ta,Rt*De),ct.attr(wn,0).attr(Or,Rt*A),gt.attr(pa,0).attr(Ta,Rt*De),K.rangeBand){var It=K,Wt=It.rangeBand()/2;$=K=function(va){return It(va)+Wt}}else $.rangeBand?$=K:xe.call(me,K,$);ve.call(me,$,K),Se.call(me,K,K)})}return O.scale=function(X){return arguments.length?(h=X,O):h},O.orient=function(X){return arguments.length?(g=X in a2?X+"":_v,O):g},O.ticks=function(){return arguments.length?(L=t(arguments),O):L},O.tickValues=function(X){return arguments.length?(N=X,O):N},O.tickFormat=function(X){return arguments.length?(R=X,O):R},O.tickSize=function(X){var J=arguments.length;return J?(A=+X,S=+arguments[J-1],O):A},O.innerTickSize=function(X){return arguments.length?(A=+X,O):A},O.outerTickSize=function(X){return arguments.length?(S=+X,O):S},O.tickPadding=function(X){return arguments.length?(D=+X,O):D},O.tickSubdivide=function(){return arguments.length&&O},O};var _v="bottom",a2={top:1,right:1,bottom:1,left:1};function n2(h,g,A){h.attr("transform",function(S){var D=g(S);return"translate("+(isFinite(D)?D:A(S))+",0)"})}function i2(h,g,A){h.attr("transform",function(S){var D=g(S);return"translate(0,"+(isFinite(D)?D:A(S))+")"})}e.svg.brush=function(){var h=fe(J,"brushstart","brush","brushend"),g=null,A=null,S=[0,0],D=[0,0],L,N,R=!0,O=!0,X=E0[0];function J(re){re.each(function(){var ve=e.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",ke).on("touchstart.brush",ke),xe=ve.selectAll(".background").data([0]);xe.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),ve.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var Se=ve.selectAll(".resize").data(X,U);Se.exit().remove(),Se.enter().append("g").attr("class",function(Ar){return"resize "+Ar}).style("cursor",function(Ar){return o2[Ar]}).append("rect").attr("x",function(Ar){return/[ew]$/.test(Ar)?-3:null}).attr("y",function(Ar){return/^[ns]/.test(Ar)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),Se.style("display",J.empty()?"none":null);var De=e.transition(ve),me=e.transition(xe),sr;g&&(sr=ov(g),me.attr("x",sr[0]).attr("width",sr[1]-sr[0]),K(De)),A&&(sr=ov(A),me.attr("y",sr[0]).attr("height",sr[1]-sr[0]),we(De)),$(De)})}J.event=function(re){re.each(function(){var ve=h.of(this,arguments),xe={x:S,y:D,i:L,j:N},Se=this.__chart__||xe;this.__chart__=xe,hs?e.select(this).transition().each("start.brush",function(){L=Se.i,N=Se.j,S=Se.x,D=Se.y,ve({type:"brushstart"})}).tween("brush:brush",function(){var De=b0(S,xe.x),me=b0(D,xe.y);return L=N=null,function(sr){S=xe.x=De(sr),D=xe.y=me(sr),ve({type:"brush",mode:"resize"})}}).each("end.brush",function(){L=xe.i,N=xe.j,ve({type:"brush",mode:"resize"}),ve({type:"brushend"})}):(ve({type:"brushstart"}),ve({type:"brush",mode:"resize"}),ve({type:"brushend"}))})};function $(re){re.selectAll(".resize").attr("transform",function(ve){return"translate("+S[+/e$/.test(ve)]+","+D[+/^s/.test(ve)]+")"})}function K(re){re.select(".extent").attr("x",S[0]),re.selectAll(".extent,.n>rect,.s>rect").attr("width",S[1]-S[0])}function we(re){re.select(".extent").attr("y",D[0]),re.selectAll(".extent,.e>rect,.w>rect").attr("height",D[1]-D[0])}function ke(){var re=this,ve=e.select(e.event.target),xe=h.of(re,arguments),Se=e.select(re),De=ve.datum(),me=!/^(n|s)$/.test(De)&&g,sr=!/^(e|w)$/.test(De)&&A,Ar=ve.classed("extent"),Nr=$r(re),Zr,ct=e.mouse(re),vt,Bt=e.select(i(re)).on("keydown.brush",pa).on("keyup.brush",wn);if(e.event.changedTouches?Bt.on("touchmove.brush",Ta).on("touchend.brush",It):Bt.on("mousemove.brush",Ta).on("mouseup.brush",It),Se.interrupt().selectAll("*").interrupt(),Ar)ct[0]=S[0]-ct[0],ct[1]=D[0]-ct[1];else if(De){var gt=+/w$/.test(De),Rt=+/^n/.test(De);vt=[S[1-gt]-ct[0],D[1-Rt]-ct[1]],ct[0]=S[gt],ct[1]=D[Rt]}else e.event.altKey&&(Zr=ct.slice());Se.style("pointer-events","none").selectAll(".resize").style("display",null),e.select("body").style("cursor",ve.style("cursor")),xe({type:"brushstart"}),Ta();function pa(){e.event.keyCode==32&&(Ar||(Zr=null,ct[0]-=S[1],ct[1]-=D[1],Ar=2),ee())}function wn(){e.event.keyCode==32&&Ar==2&&(ct[0]+=S[1],ct[1]+=D[1],Ar=0,ee())}function Ta(){var Wt=e.mouse(re),va=!1;vt&&(Wt[0]+=vt[0],Wt[1]+=vt[1]),Ar||(e.event.altKey?(Zr||(Zr=[(S[0]+S[1])/2,(D[0]+D[1])/2]),ct[0]=S[+(Wt[0]{(function(e,r){typeof oy=="object"&&typeof KM!="undefined"?r(oy):(e=e||self,r(e.d3=e.d3||{}))})(oy,function(e){"use strict";var r=new Date,t=new Date;function a(ue,Ee,Tr,rt){function ot(pe){return ue(pe=arguments.length===0?new Date:new Date(+pe)),pe}return ot.floor=function(pe){return ue(pe=new Date(+pe)),pe},ot.ceil=function(pe){return ue(pe=new Date(pe-1)),Ee(pe,1),ue(pe),pe},ot.round=function(pe){var Ce=ot(pe),lr=ot.ceil(pe);return pe-Ce0))return wr;do wr.push(fr=new Date(+pe)),Ee(pe,lr),ue(pe);while(fr=Ce)for(;ue(Ce),!pe(Ce);)Ce.setTime(Ce-1)},function(Ce,lr){if(Ce>=Ce)if(lr<0)for(;++lr<=0;)for(;Ee(Ce,-1),!pe(Ce););else for(;--lr>=0;)for(;Ee(Ce,1),!pe(Ce););})},Tr&&(ot.count=function(pe,Ce){return r.setTime(+pe),t.setTime(+Ce),ue(r),ue(t),Math.floor(Tr(r,t))},ot.every=function(pe){return pe=Math.floor(pe),!isFinite(pe)||!(pe>0)?null:pe>1?ot.filter(rt?function(Ce){return rt(Ce)%pe===0}:function(Ce){return ot.count(0,Ce)%pe===0}):ot}),ot}var n=a(function(){},function(ue,Ee){ue.setTime(+ue+Ee)},function(ue,Ee){return Ee-ue});n.every=function(ue){return ue=Math.floor(ue),!isFinite(ue)||!(ue>0)?null:ue>1?a(function(Ee){Ee.setTime(Math.floor(Ee/ue)*ue)},function(Ee,Tr){Ee.setTime(+Ee+Tr*ue)},function(Ee,Tr){return(Tr-Ee)/ue}):n};var i=n.range,o=1e3,l=6e4,s=36e5,u=864e5,f=6048e5,c=a(function(ue){ue.setTime(ue-ue.getMilliseconds())},function(ue,Ee){ue.setTime(+ue+Ee*o)},function(ue,Ee){return(Ee-ue)/o},function(ue){return ue.getUTCSeconds()}),v=c.range,d=a(function(ue){ue.setTime(ue-ue.getMilliseconds()-ue.getSeconds()*o)},function(ue,Ee){ue.setTime(+ue+Ee*l)},function(ue,Ee){return(Ee-ue)/l},function(ue){return ue.getMinutes()}),p=d.range,m=a(function(ue){ue.setTime(ue-ue.getMilliseconds()-ue.getSeconds()*o-ue.getMinutes()*l)},function(ue,Ee){ue.setTime(+ue+Ee*s)},function(ue,Ee){return(Ee-ue)/s},function(ue){return ue.getHours()}),y=m.range,b=a(function(ue){ue.setHours(0,0,0,0)},function(ue,Ee){ue.setDate(ue.getDate()+Ee)},function(ue,Ee){return(Ee-ue-(Ee.getTimezoneOffset()-ue.getTimezoneOffset())*l)/u},function(ue){return ue.getDate()-1}),T=b.range;function _(ue){return a(function(Ee){Ee.setDate(Ee.getDate()-(Ee.getDay()+7-ue)%7),Ee.setHours(0,0,0,0)},function(Ee,Tr){Ee.setDate(Ee.getDate()+Tr*7)},function(Ee,Tr){return(Tr-Ee-(Tr.getTimezoneOffset()-Ee.getTimezoneOffset())*l)/f})}var x=_(0),w=_(1),k=_(2),M=_(3),C=_(4),E=_(5),F=_(6),P=x.range,q=w.range,z=k.range,I=M.range,U=C.range,V=E.range,W=F.range,G=a(function(ue){ue.setDate(1),ue.setHours(0,0,0,0)},function(ue,Ee){ue.setMonth(ue.getMonth()+Ee)},function(ue,Ee){return Ee.getMonth()-ue.getMonth()+(Ee.getFullYear()-ue.getFullYear())*12},function(ue){return ue.getMonth()}),Y=G.range,Z=a(function(ue){ue.setMonth(0,1),ue.setHours(0,0,0,0)},function(ue,Ee){ue.setFullYear(ue.getFullYear()+Ee)},function(ue,Ee){return Ee.getFullYear()-ue.getFullYear()},function(ue){return ue.getFullYear()});Z.every=function(ue){return!isFinite(ue=Math.floor(ue))||!(ue>0)?null:a(function(Ee){Ee.setFullYear(Math.floor(Ee.getFullYear()/ue)*ue),Ee.setMonth(0,1),Ee.setHours(0,0,0,0)},function(Ee,Tr){Ee.setFullYear(Ee.getFullYear()+Tr*ue)})};var j=Z.range,ee=a(function(ue){ue.setUTCSeconds(0,0)},function(ue,Ee){ue.setTime(+ue+Ee*l)},function(ue,Ee){return(Ee-ue)/l},function(ue){return ue.getUTCMinutes()}),ye=ee.range,fe=a(function(ue){ue.setUTCMinutes(0,0,0)},function(ue,Ee){ue.setTime(+ue+Ee*s)},function(ue,Ee){return(Ee-ue)/s},function(ue){return ue.getUTCHours()}),he=fe.range,ae=a(function(ue){ue.setUTCHours(0,0,0,0)},function(ue,Ee){ue.setUTCDate(ue.getUTCDate()+Ee)},function(ue,Ee){return(Ee-ue)/u},function(ue){return ue.getUTCDate()-1}),Le=ae.range;function ce(ue){return a(function(Ee){Ee.setUTCDate(Ee.getUTCDate()-(Ee.getUTCDay()+7-ue)%7),Ee.setUTCHours(0,0,0,0)},function(Ee,Tr){Ee.setUTCDate(Ee.getUTCDate()+Tr*7)},function(Ee,Tr){return(Tr-Ee)/f})}var Fe=ce(0),Re=ce(1),ge=ce(2),He=ce(3),ur=ce(4),qe=ce(5),Ue=ce(6),Ye=Fe.range,We=Re.range,Ve=ge.range,ar=He.range,Ie=ur.range,_r=qe.range,Pr=Ue.range,Br=a(function(ue){ue.setUTCDate(1),ue.setUTCHours(0,0,0,0)},function(ue,Ee){ue.setUTCMonth(ue.getUTCMonth()+Ee)},function(ue,Ee){return Ee.getUTCMonth()-ue.getUTCMonth()+(Ee.getUTCFullYear()-ue.getUTCFullYear())*12},function(ue){return ue.getUTCMonth()}),$e=Br.range,mr=a(function(ue){ue.setUTCMonth(0,1),ue.setUTCHours(0,0,0,0)},function(ue,Ee){ue.setUTCFullYear(ue.getUTCFullYear()+Ee)},function(ue,Ee){return Ee.getUTCFullYear()-ue.getUTCFullYear()},function(ue){return ue.getUTCFullYear()});mr.every=function(ue){return!isFinite(ue=Math.floor(ue))||!(ue>0)?null:a(function(Ee){Ee.setUTCFullYear(Math.floor(Ee.getUTCFullYear()/ue)*ue),Ee.setUTCMonth(0,1),Ee.setUTCHours(0,0,0,0)},function(Ee,Tr){Ee.setUTCFullYear(Ee.getUTCFullYear()+Tr*ue)})};var Yr=mr.range;e.timeDay=b,e.timeDays=T,e.timeFriday=E,e.timeFridays=V,e.timeHour=m,e.timeHours=y,e.timeInterval=a,e.timeMillisecond=n,e.timeMilliseconds=i,e.timeMinute=d,e.timeMinutes=p,e.timeMonday=w,e.timeMondays=q,e.timeMonth=G,e.timeMonths=Y,e.timeSaturday=F,e.timeSaturdays=W,e.timeSecond=c,e.timeSeconds=v,e.timeSunday=x,e.timeSundays=P,e.timeThursday=C,e.timeThursdays=U,e.timeTuesday=k,e.timeTuesdays=z,e.timeWednesday=M,e.timeWednesdays=I,e.timeWeek=x,e.timeWeeks=P,e.timeYear=Z,e.timeYears=j,e.utcDay=ae,e.utcDays=Le,e.utcFriday=qe,e.utcFridays=_r,e.utcHour=fe,e.utcHours=he,e.utcMillisecond=n,e.utcMilliseconds=i,e.utcMinute=ee,e.utcMinutes=ye,e.utcMonday=Re,e.utcMondays=We,e.utcMonth=Br,e.utcMonths=$e,e.utcSaturday=Ue,e.utcSaturdays=Pr,e.utcSecond=c,e.utcSeconds=v,e.utcSunday=Fe,e.utcSundays=Ye,e.utcThursday=ur,e.utcThursdays=Ie,e.utcTuesday=ge,e.utcTuesdays=Ve,e.utcWednesday=He,e.utcWednesdays=ar,e.utcWeek=Fe,e.utcWeeks=Ye,e.utcYear=mr,e.utcYears=Yr,Object.defineProperty(e,"__esModule",{value:!0})})});var wv=B((ly,QM)=>{(function(e,r){typeof ly=="object"&&typeof QM!="undefined"?r(ly,c_()):(e=e||self,r(e.d3=e.d3||{},e.d3))})(ly,function(e,r){"use strict";function t(le){if(0<=le.y&&le.y<100){var Te=new Date(-1,le.m,le.d,le.H,le.M,le.S,le.L);return Te.setFullYear(le.y),Te}return new Date(le.y,le.m,le.d,le.H,le.M,le.S,le.L)}function a(le){if(0<=le.y&&le.y<100){var Te=new Date(Date.UTC(-1,le.m,le.d,le.H,le.M,le.S,le.L));return Te.setUTCFullYear(le.y),Te}return new Date(Date.UTC(le.y,le.m,le.d,le.H,le.M,le.S,le.L))}function n(le,Te,tr){return{y:le,m:Te,d:tr,H:0,M:0,S:0,L:0}}function i(le){var Te=le.dateTime,tr=le.date,hr=le.time,ra=le.periods,Ca=le.days,Ha=le.shortDays,an=le.months,yn=le.shortMonths,sn=v(ra),Yn=d(ra),qa=v(Ca),un=d(Ca),fn=v(Ha),gn=d(Ha),si=v(an),bn=d(an),Dn=v(yn),Ir=d(yn),ca={a:ns,A:Ro,b:Kn,B:kl,c:null,d:G,e:G,f:ye,g:qe,G:Ye,H:Y,I:Z,j,L:ee,m:fe,M:he,p:Ys,q:Po,Q:$r,s:tt,S:ae,u:Le,U:ce,V:Re,w:ge,W:He,x:null,X:null,y:ur,Y:Ue,Z:We,"%":qr},Zt={a:Sl,A:Cl,b:Pu,B:Vc,c:null,d:Ve,e:Ve,f:Br,g:lr,G:fr,H:ar,I:Ie,j:_r,L:Pr,m:$e,M:mr,p:u0,q:f0,Q:$r,s:tt,S:Yr,u:ue,U:Ee,V:rt,w:ot,W:pe,x:null,X:null,y:Ce,Y:wr,Z:kr,"%":qr},Aa={a:Ln,A:Fo,b:Qo,B:co,c:Mn,d:C,e:C,f:I,g:x,G:_,H:F,I:F,j:E,L:z,m:M,M:P,p:Da,q:k,Q:V,s:W,S:q,u:m,U:y,V:b,w:p,W:T,x:as,X:$n,y:x,Y:_,Z:w,"%":U};ca.x=za(tr,ca),ca.X=za(hr,ca),ca.c=za(Te,ca),Zt.x=za(tr,Zt),Zt.X=za(hr,Zt),Zt.c=za(Te,Zt);function za(kt,St){return function(xa){var Wr=[],xn=-1,Ba=0,Ua=kt.length,Xn,Ni,no;for(xa instanceof Date||(xa=new Date(+xa));++xn53)return null;"w"in Wr||(Wr.w=1),"Z"in Wr?(Ba=a(n(Wr.y,0,1)),Ua=Ba.getUTCDay(),Ba=Ua>4||Ua===0?r.utcMonday.ceil(Ba):r.utcMonday(Ba),Ba=r.utcDay.offset(Ba,(Wr.V-1)*7),Wr.y=Ba.getUTCFullYear(),Wr.m=Ba.getUTCMonth(),Wr.d=Ba.getUTCDate()+(Wr.w+6)%7):(Ba=t(n(Wr.y,0,1)),Ua=Ba.getDay(),Ba=Ua>4||Ua===0?r.timeMonday.ceil(Ba):r.timeMonday(Ba),Ba=r.timeDay.offset(Ba,(Wr.V-1)*7),Wr.y=Ba.getFullYear(),Wr.m=Ba.getMonth(),Wr.d=Ba.getDate()+(Wr.w+6)%7)}else("W"in Wr||"U"in Wr)&&("w"in Wr||(Wr.w="u"in Wr?Wr.u%7:"W"in Wr?1:0),Ua="Z"in Wr?a(n(Wr.y,0,1)).getUTCDay():t(n(Wr.y,0,1)).getDay(),Wr.m=0,Wr.d="W"in Wr?(Wr.w+6)%7+Wr.W*7-(Ua+5)%7:Wr.w+Wr.U*7-(Ua+6)%7);return"Z"in Wr?(Wr.H+=Wr.Z/100|0,Wr.M+=Wr.Z%100,a(Wr)):t(Wr)}}function ba(kt,St,xa,Wr){for(var xn=0,Ba=St.length,Ua=xa.length,Xn,Ni;xn=Ua)return-1;if(Xn=St.charCodeAt(xn++),Xn===37){if(Xn=St.charAt(xn++),Ni=Aa[Xn in o?St.charAt(xn++):Xn],!Ni||(Wr=Ni(kt,xa,Wr))<0)return-1}else if(Xn!=xa.charCodeAt(Wr++))return-1}return Wr}function Da(kt,St,xa){var Wr=sn.exec(St.slice(xa));return Wr?(kt.p=Yn[Wr[0].toLowerCase()],xa+Wr[0].length):-1}function Ln(kt,St,xa){var Wr=fn.exec(St.slice(xa));return Wr?(kt.w=gn[Wr[0].toLowerCase()],xa+Wr[0].length):-1}function Fo(kt,St,xa){var Wr=qa.exec(St.slice(xa));return Wr?(kt.w=un[Wr[0].toLowerCase()],xa+Wr[0].length):-1}function Qo(kt,St,xa){var Wr=Dn.exec(St.slice(xa));return Wr?(kt.m=Ir[Wr[0].toLowerCase()],xa+Wr[0].length):-1}function co(kt,St,xa){var Wr=si.exec(St.slice(xa));return Wr?(kt.m=bn[Wr[0].toLowerCase()],xa+Wr[0].length):-1}function Mn(kt,St,xa){return ba(kt,Te,St,xa)}function as(kt,St,xa){return ba(kt,tr,St,xa)}function $n(kt,St,xa){return ba(kt,hr,St,xa)}function ns(kt){return Ha[kt.getDay()]}function Ro(kt){return Ca[kt.getDay()]}function Kn(kt){return yn[kt.getMonth()]}function kl(kt){return an[kt.getMonth()]}function Ys(kt){return ra[+(kt.getHours()>=12)]}function Po(kt){return 1+~~(kt.getMonth()/3)}function Sl(kt){return Ha[kt.getUTCDay()]}function Cl(kt){return Ca[kt.getUTCDay()]}function Pu(kt){return yn[kt.getUTCMonth()]}function Vc(kt){return an[kt.getUTCMonth()]}function u0(kt){return ra[+(kt.getUTCHours()>=12)]}function f0(kt){return 1+~~(kt.getUTCMonth()/3)}return{format:function(kt){var St=za(kt+="",ca);return St.toString=function(){return kt},St},parse:function(kt){var St=Vn(kt+="",!1);return St.toString=function(){return kt},St},utcFormat:function(kt){var St=za(kt+="",Zt);return St.toString=function(){return kt},St},utcParse:function(kt){var St=Vn(kt+="",!0);return St.toString=function(){return kt},St}}}var o={"-":"",_:" ",0:"0"},l=/^\s*\d+/,s=/^%/,u=/[\\^$*+?|[\]().{}]/g;function f(le,Te,tr){var hr=le<0?"-":"",ra=(hr?-le:le)+"",Ca=ra.length;return hr+(Ca68?1900:2e3),tr+hr[0].length):-1}function w(le,Te,tr){var hr=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(Te.slice(tr,tr+6));return hr?(le.Z=hr[1]?0:-(hr[2]+(hr[3]||"00")),tr+hr[0].length):-1}function k(le,Te,tr){var hr=l.exec(Te.slice(tr,tr+1));return hr?(le.q=hr[0]*3-3,tr+hr[0].length):-1}function M(le,Te,tr){var hr=l.exec(Te.slice(tr,tr+2));return hr?(le.m=hr[0]-1,tr+hr[0].length):-1}function C(le,Te,tr){var hr=l.exec(Te.slice(tr,tr+2));return hr?(le.d=+hr[0],tr+hr[0].length):-1}function E(le,Te,tr){var hr=l.exec(Te.slice(tr,tr+3));return hr?(le.m=0,le.d=+hr[0],tr+hr[0].length):-1}function F(le,Te,tr){var hr=l.exec(Te.slice(tr,tr+2));return hr?(le.H=+hr[0],tr+hr[0].length):-1}function P(le,Te,tr){var hr=l.exec(Te.slice(tr,tr+2));return hr?(le.M=+hr[0],tr+hr[0].length):-1}function q(le,Te,tr){var hr=l.exec(Te.slice(tr,tr+2));return hr?(le.S=+hr[0],tr+hr[0].length):-1}function z(le,Te,tr){var hr=l.exec(Te.slice(tr,tr+3));return hr?(le.L=+hr[0],tr+hr[0].length):-1}function I(le,Te,tr){var hr=l.exec(Te.slice(tr,tr+6));return hr?(le.L=Math.floor(hr[0]/1e3),tr+hr[0].length):-1}function U(le,Te,tr){var hr=s.exec(Te.slice(tr,tr+1));return hr?tr+hr[0].length:-1}function V(le,Te,tr){var hr=l.exec(Te.slice(tr));return hr?(le.Q=+hr[0],tr+hr[0].length):-1}function W(le,Te,tr){var hr=l.exec(Te.slice(tr));return hr?(le.s=+hr[0],tr+hr[0].length):-1}function G(le,Te){return f(le.getDate(),Te,2)}function Y(le,Te){return f(le.getHours(),Te,2)}function Z(le,Te){return f(le.getHours()%12||12,Te,2)}function j(le,Te){return f(1+r.timeDay.count(r.timeYear(le),le),Te,3)}function ee(le,Te){return f(le.getMilliseconds(),Te,3)}function ye(le,Te){return ee(le,Te)+"000"}function fe(le,Te){return f(le.getMonth()+1,Te,2)}function he(le,Te){return f(le.getMinutes(),Te,2)}function ae(le,Te){return f(le.getSeconds(),Te,2)}function Le(le){var Te=le.getDay();return Te===0?7:Te}function ce(le,Te){return f(r.timeSunday.count(r.timeYear(le)-1,le),Te,2)}function Fe(le){var Te=le.getDay();return Te>=4||Te===0?r.timeThursday(le):r.timeThursday.ceil(le)}function Re(le,Te){return le=Fe(le),f(r.timeThursday.count(r.timeYear(le),le)+(r.timeYear(le).getDay()===4),Te,2)}function ge(le){return le.getDay()}function He(le,Te){return f(r.timeMonday.count(r.timeYear(le)-1,le),Te,2)}function ur(le,Te){return f(le.getFullYear()%100,Te,2)}function qe(le,Te){return le=Fe(le),f(le.getFullYear()%100,Te,2)}function Ue(le,Te){return f(le.getFullYear()%1e4,Te,4)}function Ye(le,Te){var tr=le.getDay();return le=tr>=4||tr===0?r.timeThursday(le):r.timeThursday.ceil(le),f(le.getFullYear()%1e4,Te,4)}function We(le){var Te=le.getTimezoneOffset();return(Te>0?"-":(Te*=-1,"+"))+f(Te/60|0,"0",2)+f(Te%60,"0",2)}function Ve(le,Te){return f(le.getUTCDate(),Te,2)}function ar(le,Te){return f(le.getUTCHours(),Te,2)}function Ie(le,Te){return f(le.getUTCHours()%12||12,Te,2)}function _r(le,Te){return f(1+r.utcDay.count(r.utcYear(le),le),Te,3)}function Pr(le,Te){return f(le.getUTCMilliseconds(),Te,3)}function Br(le,Te){return Pr(le,Te)+"000"}function $e(le,Te){return f(le.getUTCMonth()+1,Te,2)}function mr(le,Te){return f(le.getUTCMinutes(),Te,2)}function Yr(le,Te){return f(le.getUTCSeconds(),Te,2)}function ue(le){var Te=le.getUTCDay();return Te===0?7:Te}function Ee(le,Te){return f(r.utcSunday.count(r.utcYear(le)-1,le),Te,2)}function Tr(le){var Te=le.getUTCDay();return Te>=4||Te===0?r.utcThursday(le):r.utcThursday.ceil(le)}function rt(le,Te){return le=Tr(le),f(r.utcThursday.count(r.utcYear(le),le)+(r.utcYear(le).getUTCDay()===4),Te,2)}function ot(le){return le.getUTCDay()}function pe(le,Te){return f(r.utcMonday.count(r.utcYear(le)-1,le),Te,2)}function Ce(le,Te){return f(le.getUTCFullYear()%100,Te,2)}function lr(le,Te){return le=Tr(le),f(le.getUTCFullYear()%100,Te,2)}function wr(le,Te){return f(le.getUTCFullYear()%1e4,Te,4)}function fr(le,Te){var tr=le.getUTCDay();return le=tr>=4||tr===0?r.utcThursday(le):r.utcThursday.ceil(le),f(le.getUTCFullYear()%1e4,Te,4)}function kr(){return"+0000"}function qr(){return"%"}function $r(le){return+le}function tt(le){return Math.floor(+le/1e3)}var Ge;Mr({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 Mr(le){return Ge=i(le),e.timeFormat=Ge.format,e.timeParse=Ge.parse,e.utcFormat=Ge.utcFormat,e.utcParse=Ge.utcParse,Ge}var rr="%Y-%m-%dT%H:%M:%S.%LZ";function Rr(le){return le.toISOString()}var at=Date.prototype.toISOString?Rr:e.utcFormat(rr);function nt(le){var Te=new Date(le);return isNaN(Te)?null:Te}var lt=+new Date("2000-01-01T00:00:00.000Z")?nt:e.utcParse(rr);e.isoFormat=at,e.isoParse=lt,e.timeFormatDefaultLocale=Mr,e.timeFormatLocale=i,Object.defineProperty(e,"__esModule",{value:!0})})});var v_=B((sy,ek)=>{(function(e,r){typeof sy=="object"&&typeof ek!="undefined"?r(sy):(e=typeof globalThis!="undefined"?globalThis:e||self,r(e.d3=e.d3||{}))})(sy,(function(e){"use strict";function r(M){return Math.abs(M=Math.round(M))>=1e21?M.toLocaleString("en").replace(/,/g,""):M.toString(10)}function t(M,C){if((E=(M=C?M.toExponential(C-1):M.toExponential()).indexOf("e"))<0)return null;var E,F=M.slice(0,E);return[F.length>1?F[0]+F.slice(2):F,+M.slice(E+1)]}function a(M){return M=t(Math.abs(M)),M?M[1]:NaN}function n(M,C){return function(E,F){for(var P=E.length,q=[],z=0,I=M[0],U=0;P>0&&I>0&&(U+I+1>F&&(I=Math.max(1,F-U)),q.push(E.substring(P-=I,P+I)),!((U+=I+1)>F));)I=M[z=(z+1)%M.length];return q.reverse().join(C)}}function i(M){return function(C){return C.replace(/[0-9]/g,function(E){return M[+E]})}}var o=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function l(M){if(!(C=o.exec(M)))throw new Error("invalid format: "+M);var C;return new s({fill:C[1],align:C[2],sign:C[3],symbol:C[4],zero:C[5],width:C[6],comma:C[7],precision:C[8]&&C[8].slice(1),trim:C[9],type:C[10]})}l.prototype=s.prototype;function s(M){this.fill=M.fill===void 0?" ":M.fill+"",this.align=M.align===void 0?">":M.align+"",this.sign=M.sign===void 0?"-":M.sign+"",this.symbol=M.symbol===void 0?"":M.symbol+"",this.zero=!!M.zero,this.width=M.width===void 0?void 0:+M.width,this.comma=!!M.comma,this.precision=M.precision===void 0?void 0:+M.precision,this.trim=!!M.trim,this.type=M.type===void 0?"":M.type+""}s.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 u(M){e:for(var C=M.length,E=1,F=-1,P;E0&&(F=0);break}return F>0?M.slice(0,F)+M.slice(P+1):M}var f;function c(M,C){var E=t(M,C);if(!E)return M+"";var F=E[0],P=E[1],q=P-(f=Math.max(-8,Math.min(8,Math.floor(P/3)))*3)+1,z=F.length;return q===z?F:q>z?F+new Array(q-z+1).join("0"):q>0?F.slice(0,q)+"."+F.slice(q):"0."+new Array(1-q).join("0")+t(M,Math.max(0,C+q-1))[0]}function v(M,C){var E=t(M,C);if(!E)return M+"";var F=E[0],P=E[1];return P<0?"0."+new Array(-P).join("0")+F:F.length>P+1?F.slice(0,P+1)+"."+F.slice(P+1):F+new Array(P-F.length+2).join("0")}var d={"%":function(M,C){return(M*100).toFixed(C)},b:function(M){return Math.round(M).toString(2)},c:function(M){return M+""},d:r,e:function(M,C){return M.toExponential(C)},f:function(M,C){return M.toFixed(C)},g:function(M,C){return M.toPrecision(C)},o:function(M){return Math.round(M).toString(8)},p:function(M,C){return v(M*100,C)},r:v,s:c,X:function(M){return Math.round(M).toString(16).toUpperCase()},x:function(M){return Math.round(M).toString(16)}};function p(M){return M}var m=Array.prototype.map,y=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function b(M){var C=M.grouping===void 0||M.thousands===void 0?p:n(m.call(M.grouping,Number),M.thousands+""),E=M.currency===void 0?"":M.currency[0]+"",F=M.currency===void 0?"":M.currency[1]+"",P=M.decimal===void 0?".":M.decimal+"",q=M.numerals===void 0?p:i(m.call(M.numerals,String)),z=M.percent===void 0?"%":M.percent+"",I=M.minus===void 0?"-":M.minus+"",U=M.nan===void 0?"NaN":M.nan+"";function V(G){G=l(G);var Y=G.fill,Z=G.align,j=G.sign,ee=G.symbol,ye=G.zero,fe=G.width,he=G.comma,ae=G.precision,Le=G.trim,ce=G.type;ce==="n"?(he=!0,ce="g"):d[ce]||(ae===void 0&&(ae=12),Le=!0,ce="g"),(ye||Y==="0"&&Z==="=")&&(ye=!0,Y="0",Z="=");var Fe=ee==="$"?E:ee==="#"&&/[boxX]/.test(ce)?"0"+ce.toLowerCase():"",Re=ee==="$"?F:/[%p]/.test(ce)?z:"",ge=d[ce],He=/[defgprs%]/.test(ce);ae=ae===void 0?6:/[gprs]/.test(ce)?Math.max(1,Math.min(21,ae)):Math.max(0,Math.min(20,ae));function ur(qe){var Ue=Fe,Ye=Re,We,Ve,ar;if(ce==="c")Ye=ge(qe)+Ye,qe="";else{qe=+qe;var Ie=qe<0||1/qe<0;if(qe=isNaN(qe)?U:ge(Math.abs(qe),ae),Le&&(qe=u(qe)),Ie&&+qe==0&&j!=="+"&&(Ie=!1),Ue=(Ie?j==="("?j:I:j==="-"||j==="("?"":j)+Ue,Ye=(ce==="s"?y[8+f/3]:"")+Ye+(Ie&&j==="("?")":""),He){for(We=-1,Ve=qe.length;++Wear||ar>57){Ye=(ar===46?P+qe.slice(We+1):qe.slice(We))+Ye,qe=qe.slice(0,We);break}}}he&&!ye&&(qe=C(qe,1/0));var _r=Ue.length+qe.length+Ye.length,Pr=_r>1)+Ue+qe+Ye+Pr.slice(_r);break;default:qe=Pr+Ue+qe+Ye;break}return q(qe)}return ur.toString=function(){return G+""},ur}function W(G,Y){var Z=V((G=l(G),G.type="f",G)),j=Math.max(-8,Math.min(8,Math.floor(a(Y)/3)))*3,ee=Math.pow(10,-j),ye=y[8+j/3];return function(fe){return Z(ee*fe)+ye}}return{format:V,formatPrefix:W}}var T;_({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function _(M){return T=b(M),e.format=T.format,e.formatPrefix=T.formatPrefix,T}function x(M){return Math.max(0,-a(Math.abs(M)))}function w(M,C){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(a(C)/3)))*3-a(Math.abs(M)))}function k(M,C){return M=Math.abs(M),C=Math.abs(C)-M,Math.max(0,a(C)-a(M))+1}e.FormatSpecifier=s,e.formatDefaultLocale=_,e.formatLocale=b,e.formatSpecifier=l,e.precisionFixed=x,e.precisionPrefix=w,e.precisionRound=k,Object.defineProperty(e,"__esModule",{value:!0})}))});var tk=B((dLe,rk)=>{"use strict";rk.exports=function(e){for(var r=e.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}});var da=B((pLe,ak)=>{"use strict";var Ste=tk();ak.exports=function(e){var r=typeof e;if(r==="string"){var t=e;if(e=+e,e===0&&Ste(t))return!1}else if(r!=="number")return!1;return e-e<1}});var ri={};ja(ri,{ALMOST_EQUAL:()=>Xte,BADNUM:()=>h_,EPOCHJD:()=>Vte,FP_SAFE:()=>Cte,LOG_CLIP:()=>Wte,MINUS_SIGN:()=>Zte,ONEAVGMONTH:()=>Nte,ONEAVGQUARTER:()=>Fte,ONEAVGYEAR:()=>Lte,ONEDAY:()=>Ite,ONEHOUR:()=>Ote,ONEMAXMONTH:()=>Pte,ONEMAXQUARTER:()=>qte,ONEMAXYEAR:()=>Dte,ONEMICROSEC:()=>Yte,ONEMILLI:()=>Gte,ONEMIN:()=>Hte,ONEMINMONTH:()=>zte,ONEMINQUARTER:()=>Rte,ONEMINYEAR:()=>Ete,ONESEC:()=>Ute,ONEWEEK:()=>Bte});var h_,Cte,Dte,Lte,Ete,qte,Fte,Rte,Pte,Nte,zte,Bte,Ite,Ote,Hte,Ute,Gte,Yte,Vte,Xte,Wte,Zte,Wn=Ja(()=>{"use strict";h_=void 0,Cte=Number.MAX_VALUE*1e-4,Dte=316224e5,Lte=315576e5,Ete=31536e6,qte=79488e5,Fte=78894e5,Rte=76896e5,Pte=26784e5,Nte=26298e5,zte=24192e5,Bte=6048e5,Ite=864e5,Ote=36e5,Hte=6e4,Ute=1e3,Gte=1,Yte=.001,Vte=24405875e-1,Xte=1-1e-6,Wte=10,Zte="\u2212"});var d_=B((uy,nk)=>{(function(e,r){typeof uy=="object"&&typeof nk!="undefined"?r(uy):(e=typeof globalThis!="undefined"?globalThis:e||self,r(e["base64-arraybuffer"]={}))})(uy,(function(e){"use strict";for(var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),a=0;a>2],f+=r[(l[s]&3)<<4|l[s+1]>>4],f+=r[(l[s+1]&15)<<2|l[s+2]>>6],f+=r[l[s+2]&63];return u%3===2?f=f.substring(0,f.length-1)+"=":u%3===1&&(f=f.substring(0,f.length-2)+"=="),f},i=function(o){var l=o.length*.75,s=o.length,u,f=0,c,v,d,p;o[o.length-1]==="="&&(l--,o[o.length-2]==="="&&l--);var m=new ArrayBuffer(l),y=new Uint8Array(m);for(u=0;u>4,y[f++]=(v&15)<<4|d>>2,y[f++]=(d&3)<<6|p&63;return m};e.decode=i,e.encode=n,Object.defineProperty(e,"__esModule",{value:!0})}))});var q0=B((mLe,ik)=>{"use strict";ik.exports=function(r){return window&&window.process&&window.process.versions?Object.prototype.toString.call(r)==="[object Object]":Object.prototype.toString.call(r)==="[object Object]"&&Object.getPrototypeOf(r).hasOwnProperty("hasOwnProperty")}});var so=B(ql=>{"use strict";var Jte=d_().decode,jte=q0(),p_=Array.isArray,$te=ArrayBuffer,Kte=DataView;function ok(e){return $te.isView(e)&&!(e instanceof Kte)}ql.isTypedArray=ok;function fy(e){return p_(e)||ok(e)}ql.isArrayOrTypedArray=fy;function Qte(e){return!fy(e[0])}ql.isArray1D=Qte;ql.ensureArray=function(e,r){return p_(e)||(e=[]),e.length=r,e};var Ai={u1c:typeof Uint8ClampedArray=="undefined"?void 0:Uint8ClampedArray,i1:typeof Int8Array=="undefined"?void 0:Int8Array,u1:typeof Uint8Array=="undefined"?void 0:Uint8Array,i2:typeof Int16Array=="undefined"?void 0:Int16Array,u2:typeof Uint16Array=="undefined"?void 0:Uint16Array,i4:typeof Int32Array=="undefined"?void 0:Int32Array,u4:typeof Uint32Array=="undefined"?void 0:Uint32Array,f4:typeof Float32Array=="undefined"?void 0:Float32Array,f8:typeof Float64Array=="undefined"?void 0:Float64Array};Ai.uint8c=Ai.u1c;Ai.uint8=Ai.u1;Ai.int8=Ai.i1;Ai.uint16=Ai.u2;Ai.int16=Ai.i2;Ai.uint32=Ai.u4;Ai.int32=Ai.i4;Ai.float32=Ai.f4;Ai.float64=Ai.f8;function m_(e){return e.constructor===ArrayBuffer}ql.isArrayBuffer=m_;ql.decodeTypedArraySpec=function(e){var r=[],t=eae(e),a=t.dtype,n=Ai[a];if(!n)throw new Error('Error in dtype: "'+a+'"');var i=n.BYTES_PER_ELEMENT,o=t.bdata;m_(o)||(o=Jte(o));var l=t.shape===void 0?[o.byteLength/i]:(""+t.shape).split(",");l.reverse();var s=l.length,u,f,c=+l[0],v=i*c,d=0;if(s===1)r=new n(o);else if(s===2)for(u=+l[1],f=0;f{"use strict";var sk=da(),g_=so().isArrayOrTypedArray;vk.exports=function(r,t){if(sk(t))t=String(t);else if(typeof t!="string"||t.slice(-4)==="[-1]")throw"bad property string";var a=t.split("."),n,i,o,l;for(l=0;l{"use strict";var Av=cy(),iae=/^\w*$/,oae=0,hk=1,vy=2,dk=3,F0=4;pk.exports=function(r,t,a,n){a=a||"name",n=n||"value";var i,o,l,s={};t&&t.length?(l=Av(r,t),o=l.get()):o=r,t=t||"";var u={};if(o)for(i=0;i2)return s[d]=s[d]|vy,c.set(v,null);if(f){for(i=d;i{"use strict";var lae=/^(.*)(\.[^\.\[\]]+|\[\d\])$/,sae=/^[^\.\[\]]+$/;yk.exports=function(e,r){for(;r;){var t=e.match(lae);if(t)e=t[1];else if(e.match(sae))e="";else throw new Error("bad relativeAttr call:"+[e,r]);if(r.charAt(0)==="^")r=r.slice(1);else break}return e&&r.charAt(0)!=="["?e+"."+r:e+r}});var hy=B((_Le,bk)=>{"use strict";var uae=da();bk.exports=function(r,t){if(r>0)return Math.log(r)/Math.LN10;var a=Math.log(Math.min(t[0],t[1]))/Math.LN10;return uae(a)||(a=Math.log(Math.max(t[0],t[1]))/Math.LN10-6),a}});var wk=B((wLe,_k)=>{"use strict";var xk=so().isArrayOrTypedArray,h2=q0();_k.exports=function e(r,t){for(var a in t){var n=t[a],i=r[a];if(i!==n)if(a.charAt(0)==="_"||typeof n=="function"){if(a in r)continue;r[a]=n}else if(xk(n)&&xk(i)&&h2(n[0])){if(a==="customdata"||a==="ids")continue;for(var o=Math.min(n.length,i.length),l=0;lfae,modHalf:()=>cae});function fae(e,r){let t=e%r;return t<0?t+r:t}function cae(e,r){return Math.abs(e)>r/2?e-Math.round(e/r)*r:e}var Mv=Ja(()=>{"use strict"});var Fn=B(m2=>{"use strict";var Ak=q0(),d2=Array.isArray;function vae(e,r){var t,a;for(t=0;t{"use strict";Tk.exports=function(e){var r=e.variantValues,t=e.editType,a=e.colorEditType;a===void 0&&(a=t);var n={editType:t,valType:"integer",min:1,max:1e3,extras:["normal","bold"],dflt:"normal"};e.noNumericWeightValues&&(n.valType="enumerated",n.values=n.extras,n.extras=void 0,n.min=void 0,n.max=void 0);var i={family:{valType:"string",noBlank:!0,strict:!0,editType:t},size:{valType:"number",min:1,editType:t},color:{valType:"color",editType:a},weight:n,style:{editType:t,valType:"enumerated",values:["normal","italic"],dflt:"normal"},variant:e.noFontVariant?void 0:{editType:t,valType:"enumerated",values:r||["normal","small-caps","all-small-caps","all-petite-caps","petite-caps","unicase"],dflt:"normal"},textcase:e.noFontTextcase?void 0:{editType:t,valType:"enumerated",values:["normal","word caps","upper","lower"],dflt:"normal"},lineposition:e.noFontLineposition?void 0:{editType:t,valType:"flaglist",flags:["under","over","through"],extras:["none"],dflt:"none"},shadow:e.noFontShadow?void 0:{editType:t,valType:"string",dflt:e.autoShadowDflt?"auto":"none"},editType:t};return e.autoSize&&(i.size.dflt="auto"),e.autoColor&&(i.color.dflt="auto"),e.arrayOk&&(i.family.arrayOk=!0,i.weight.arrayOk=!0,i.style.arrayOk=!0,e.noFontVariant||(i.variant.arrayOk=!0),e.noFontTextcase||(i.textcase.arrayOk=!0),e.noFontLineposition||(i.lineposition.arrayOk=!0),e.noFontShadow||(i.shadow.arrayOk=!0),i.size.arrayOk=!0,i.color.arrayOk=!0),i}});var y2={};ja(y2,{HOVERARROWSIZE:()=>dae,HOVERFONT:()=>yae,HOVERFONTSIZE:()=>mae,HOVERID:()=>bae,HOVERMINTIME:()=>gae,HOVERTEXTPAD:()=>pae,YANGLE:()=>hae});var hae,dae,pae,mae,yae,gae,bae,g2=Ja(()=>{"use strict";hae=60,dae=6,pae=3,mae=13,yae="Arial, sans-serif",gae=50,bae="-hover"});var kv=B((MLe,Sk)=>{"use strict";var Mk=(g2(),vr(y2)),kk=Di(),b_=kk({editType:"none"});b_.family.dflt=Mk.HOVERFONT;b_.size.dflt=Mk.HOVERFONTSIZE;Sk.exports={clickmode:{valType:"flaglist",flags:["event","select"],dflt:"event",editType:"plot",extras:["none"]},dragmode:{valType:"enumerated",values:["zoom","pan","select","lasso","drawclosedpath","drawopenpath","drawline","drawrect","drawcircle","orbit","turntable",!1],dflt:"zoom",editType:"modebar"},hovermode:{valType:"enumerated",values:["x","y","closest",!1,"x unified","y unified"],dflt:"closest",editType:"modebar"},hoversort:{valType:"enumerated",values:["trace","value descending","value ascending"],dflt:"trace",editType:"none"},hoversubplots:{valType:"enumerated",values:["single","overlaying","axis"],dflt:"overlaying",editType:"none"},hoveranywhere:{valType:"boolean",dflt:!1,editType:"none"},clickanywhere:{valType:"boolean",dflt:!1,editType:"none"},hoverdistance:{valType:"integer",min:-1,dflt:20,editType:"none"},spikedistance:{valType:"integer",min:-1,dflt:-1,editType:"none"},hoverlabel:{bgcolor:{valType:"color",editType:"none"},bordercolor:{valType:"color",editType:"none"},font:b_,grouptitlefont:kk({editType:"none"}),align:{valType:"enumerated",values:["left","right","auto"],dflt:"auto",editType:"none"},namelength:{valType:"integer",min:-1,dflt:15,editType:"none"},showarrow:{valType:"boolean",dflt:!0,editType:"none"},editType:"none"},selectdirection:{valType:"enumerated",values:["h","v","d","any"],dflt:"any",editType:"none"}}});var dy=B((kLe,Ck)=>{"use strict";var xae=Di(),b2=kv().hoverlabel,x2=Fn().extendFlat;Ck.exports={hoverlabel:{bgcolor:x2({},b2.bgcolor,{arrayOk:!0}),bordercolor:x2({},b2.bordercolor,{arrayOk:!0}),font:xae({arrayOk:!0,editType:"none"}),align:x2({},b2.align,{arrayOk:!0}),namelength:x2({},b2.namelength,{arrayOk:!0}),showarrow:x2({},b2.showarrow),editType:"none"}}});var Fl=B((SLe,Dk)=>{"use strict";var _ae=Di(),wae=dy();Dk.exports={type:{valType:"enumerated",values:[],dflt:"scatter",editType:"calc+clearAxisTypes",_noTemplating:!0},visible:{valType:"enumerated",values:[!0,!1,"legendonly"],dflt:!0,editType:"calc"},showlegend:{valType:"boolean",dflt:!0,editType:"style"},legend:{valType:"subplotid",dflt:"legend",editType:"style"},legendgroup:{valType:"string",dflt:"",editType:"style"},legendgrouptitle:{text:{valType:"string",dflt:"",editType:"style"},font:_ae({editType:"style"}),editType:"style"},legendrank:{valType:"number",dflt:1e3,editType:"style"},legendwidth:{valType:"number",min:0,editType:"style"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"style"},name:{valType:"string",editType:"style"},uid:{valType:"string",editType:"plot",anim:!0},ids:{valType:"data_array",editType:"calc",anim:!0},customdata:{valType:"data_array",editType:"calc"},meta:{valType:"any",arrayOk:!0,editType:"plot"},selectedpoints:{valType:"any",editType:"calc"},hoverinfo:{valType:"flaglist",flags:["x","y","z","text","name"],extras:["all","none","skip"],arrayOk:!0,dflt:"all",editType:"none"},hoverlabel:wae.hoverlabel,uirevision:{valType:"any",editType:"none"}}});var _C=B((RLe,xC)=>{var c4=Object.defineProperty,Aae=Object.getOwnPropertyDescriptor,Tae=Object.getOwnPropertyNames,Mae=Object.prototype.hasOwnProperty,kae=(e,r)=>{for(var t in r)c4(e,t,{get:r[t],enumerable:!0})},Sae=(e,r,t,a)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of Tae(r))!Mae.call(e,n)&&n!==t&&c4(e,n,{get:()=>r[n],enumerable:!(a=Aae(r,n))||a.enumerable});return e},Cae=e=>Sae(c4({},"__esModule",{value:!0}),e),Ik={};kae(Ik,{a98:()=>ble,average:()=>Tne,averageAngle:()=>ms,averageNumber:()=>tS,blend:()=>Aoe,blerp:()=>V_,clampChroma:()=>Goe,clampGamut:()=>B4,clampRgb:()=>Uoe,colorsNamed:()=>Hk,convertA98ToXyz65:()=>X_,convertCubehelixToRgb:()=>eS,convertDlchToLab65:()=>Ay,convertHsiToRgb:()=>fS,convertHslToRgb:()=>hS,convertHsvToRgb:()=>y4,convertHwbToRgb:()=>yS,convertItpToXyz65:()=>Z_,convertJabToJch:()=>j_,convertJabToRgb:()=>A4,convertJabToXyz65:()=>_4,convertJchToJab:()=>$_,convertLab65ToDlch:()=>Ty,convertLab65ToRgb:()=>C2,convertLab65ToXyz65:()=>d4,convertLabToLch:()=>iu,convertLabToRgb:()=>M4,convertLabToXyz50:()=>Ry,convertLchToLab:()=>ou,convertLchuvToLuv:()=>C4,convertLrgbToOklab:()=>D4,convertLrgbToRgb:()=>O0,convertLuvToLchuv:()=>S4,convertLuvToXyz50:()=>ky,convertOkhslToOklab:()=>e4,convertOkhsvToOklab:()=>t4,convertOklabToLrgb:()=>Rv,convertOklabToOkhsl:()=>Q_,convertOklabToOkhsv:()=>r4,convertOklabToRgb:()=>E2,convertP3ToXyz65:()=>a4,convertProphotoToXyz50:()=>o4,convertRec2020ToXyz65:()=>s4,convertRgbToCubehelix:()=>Qk,convertRgbToHsi:()=>cS,convertRgbToHsl:()=>dS,convertRgbToHsv:()=>g4,convertRgbToHwb:()=>gS,convertRgbToJab:()=>w4,convertRgbToLab:()=>k4,convertRgbToLab65:()=>D2,convertRgbToLrgb:()=>I0,convertRgbToOklab:()=>L2,convertRgbToXyb:()=>XS,convertRgbToXyz50:()=>Fv,convertRgbToXyz65:()=>tf,convertRgbToYiq:()=>QS,convertXybToRgb:()=>WS,convertXyz50ToLab:()=>Py,convertXyz50ToLuv:()=>My,convertXyz50ToProphoto:()=>i4,convertXyz50ToRgb:()=>qv,convertXyz50ToXyz65:()=>$S,convertXyz65ToA98:()=>W_,convertXyz65ToItp:()=>J_,convertXyz65ToJab:()=>x4,convertXyz65ToLab65:()=>p4,convertXyz65ToP3:()=>n4,convertXyz65ToRec2020:()=>l4,convertXyz65ToRgb:()=>af,convertXyz65ToXyz50:()=>jS,convertYiqToRgb:()=>eC,converter:()=>$a,cubehelix:()=>xle,differenceCie76:()=>yne,differenceCie94:()=>gne,differenceCiede2000:()=>bne,differenceCmc:()=>xne,differenceEuclidean:()=>Ev,differenceHueChroma:()=>S2,differenceHueNaive:()=>rS,differenceHueSaturation:()=>k2,differenceHyab:()=>_ne,differenceItp:()=>Ane,differenceKotsarenkoRamos:()=>wne,displayable:()=>z4,dlab:()=>_le,dlch:()=>wle,easingGamma:()=>pC,easingInOutSine:()=>yle,easingMidpoint:()=>sC,easingSmootherstep:()=>ple,easingSmoothstep:()=>vle,easingSmoothstepInverse:()=>hle,filterBrightness:()=>Koe,filterContrast:()=>Qoe,filterDeficiencyDeuter:()=>fle,filterDeficiencyProt:()=>ule,filterDeficiencyTrit:()=>cle,filterGrayscale:()=>tle,filterHueRotate:()=>nle,filterInvert:()=>ale,filterSaturate:()=>rle,filterSepia:()=>ele,fixupAlpha:()=>hi,fixupHueDecreasing:()=>vne,fixupHueIncreasing:()=>cne,fixupHueLonger:()=>fne,fixupHueShorter:()=>ps,formatCss:()=>moe,formatHex:()=>yoe,formatHex8:()=>goe,formatHsl:()=>xoe,formatRgb:()=>boe,getMode:()=>Wi,hsi:()=>Ale,hsl:()=>Tle,hsv:()=>Mle,hwb:()=>kle,inGamut:()=>By,interpolate:()=>qoe,interpolateWith:()=>fC,interpolateWithPremultipliedAlpha:()=>Foe,interpolatorLinear:()=>yt,interpolatorPiecewise:()=>$k,interpolatorSplineBasis:()=>vC,interpolatorSplineBasisClosed:()=>hC,interpolatorSplineMonotone:()=>Noe,interpolatorSplineMonotone2:()=>zoe,interpolatorSplineMonotoneClosed:()=>Boe,interpolatorSplineNatural:()=>Roe,interpolatorSplineNaturalClosed:()=>Poe,itp:()=>Sle,jab:()=>Cle,jch:()=>Dle,lab:()=>Lle,lab65:()=>Ele,lch:()=>qle,lch65:()=>Fle,lchuv:()=>Rle,lerp:()=>P0,lrgb:()=>Ple,luv:()=>Nle,mapAlphaDivide:()=>lC,mapAlphaMultiply:()=>oC,mapTransferGamma:()=>Coe,mapTransferLinear:()=>R4,mapper:()=>q2,modeA98:()=>Kk,modeCubehelix:()=>aS,modeDlab:()=>sS,modeDlch:()=>uS,modeHsi:()=>vS,modeHsl:()=>m4,modeHsv:()=>b4,modeHwb:()=>xS,modeItp:()=>AS,modeJab:()=>TS,modeJch:()=>MS,modeLab:()=>Ny,modeLab65:()=>SS,modeLch:()=>zy,modeLch65:()=>DS,modeLchuv:()=>qS,modeLrgb:()=>FS,modeLuv:()=>RS,modeOkhsl:()=>NS,modeOkhsv:()=>zS,modeOklab:()=>IS,modeOklch:()=>HS,modeP3:()=>US,modeProphoto:()=>GS,modeRec2020:()=>YS,modeRgb:()=>B0,modeXyb:()=>ZS,modeXyz50:()=>JS,modeXyz65:()=>KS,modeYiq:()=>rC,nearest:()=>Xoe,okhsl:()=>zle,okhsv:()=>Ble,oklab:()=>Ile,oklch:()=>Ole,p3:()=>Hle,parse:()=>Zk,parseHex:()=>Gk,parseHsl:()=>mS,parseHslLegacy:()=>pS,parseHwb:()=>bS,parseLab:()=>kS,parseLch:()=>CS,parseNamed:()=>Uk,parseOklab:()=>BS,parseOklch:()=>OS,parseRgb:()=>Jk,parseRgbLegacy:()=>Yk,parseTransparent:()=>jk,prophoto:()=>Ule,random:()=>Soe,rec2020:()=>Gle,removeParser:()=>Uae,rgb:()=>Yle,round:()=>tC,samples:()=>Hoe,serializeHex:()=>F4,serializeHex8:()=>aC,serializeHsl:()=>iC,serializeRgb:()=>nC,toGamut:()=>Yoe,trilerp:()=>Qae,unlerp:()=>Kae,useMode:()=>Fa,useParser:()=>Xk,wcagContrast:()=>gle,wcagLuminance:()=>f4,xyb:()=>Vle,xyz50:()=>Xle,xyz65:()=>Wle,yiq:()=>Zle});xC.exports=Cae(Ik);var Dae=(e,r)=>{if(typeof e=="number"){if(r===3)return{mode:"rgb",r:(e>>8&15|e>>4&240)/255,g:(e>>4&15|e&240)/255,b:(e&15|e<<4&240)/255};if(r===4)return{mode:"rgb",r:(e>>12&15|e>>8&240)/255,g:(e>>8&15|e>>4&240)/255,b:(e>>4&15|e&240)/255,alpha:(e&15|e<<4&240)/255};if(r===6)return{mode:"rgb",r:(e>>16&255)/255,g:(e>>8&255)/255,b:(e&255)/255};if(r===8)return{mode:"rgb",r:(e>>24&255)/255,g:(e>>16&255)/255,b:(e>>8&255)/255,alpha:(e&255)/255}}},Ok=Dae,Lae={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},Hk=Lae,Eae=e=>Ok(Hk[e.toLowerCase()],6),Uk=Eae,qae=/^#?([0-9a-f]{8}|[0-9a-f]{6}|[0-9a-f]{4}|[0-9a-f]{3})$/i,Fae=e=>{let r;return(r=e.match(qae))?Ok(parseInt(r[1],16),r[1].length):void 0},Gk=Fae,_o="([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)",CLe=`(?:${_o}|none)`,A2=`${_o}%`,DLe=`(?:${_o}%|none)`,v4=`(?:${_o}%|${_o})`,Rae=`(?:${_o}%|${_o}|none)`,Pae=`(?:${_o}(deg|grad|rad|turn)|${_o})`,LLe=`(?:${_o}(deg|grad|rad|turn)|${_o}|none)`,Dv="\\s*,\\s*",ELe=new RegExp("^"+Rae+"$"),Nae=new RegExp(`^rgba?\\(\\s*${_o}${Dv}${_o}${Dv}${_o}\\s*(?:,\\s*${v4}\\s*)?\\)$`),zae=new RegExp(`^rgba?\\(\\s*${A2}${Dv}${A2}${Dv}${A2}\\s*(?:,\\s*${v4}\\s*)?\\)$`),Bae=e=>{let r={mode:"rgb"},t;if(t=e.match(Nae))t[1]!==void 0&&(r.r=t[1]/255),t[2]!==void 0&&(r.g=t[2]/255),t[3]!==void 0&&(r.b=t[3]/255);else if(t=e.match(zae))t[1]!==void 0&&(r.r=t[1]/100),t[2]!==void 0&&(r.g=t[2]/100),t[3]!==void 0&&(r.b=t[3]/100);else return;return t[4]!==void 0?r.alpha=Math.max(0,Math.min(1,t[4]/100)):t[5]!==void 0&&(r.alpha=Math.max(0,Math.min(1,+t[5]))),r},Yk=Bae,Iae=(e,r)=>e===void 0?void 0:typeof e!="object"?Zk(e):e.mode!==void 0?e:r?Va(ka({},e),{mode:r}):void 0,Rl=Iae,Oae=(e="rgb")=>r=>(r=Rl(r,e))!==void 0?r.mode===e?r:ds[r.mode][e]?ds[r.mode][e](r):e==="rgb"?ds[r.mode].rgb(r):ds.rgb[e](ds[r.mode].rgb(r)):void 0,$a=Oae,ds={},Vk={},Lv=[],h4={},Hae=e=>e,Fa=e=>(ds[e.mode]=ka(ka({},ds[e.mode]),e.toMode),Object.keys(e.fromMode||{}).forEach(r=>{ds[r]||(ds[r]={}),ds[r][e.mode]=e.fromMode[r]}),e.ranges||(e.ranges={}),e.difference||(e.difference={}),e.channels.forEach(r=>{if(e.ranges[r]===void 0&&(e.ranges[r]=[0,1]),!e.interpolate[r])throw new Error(`Missing interpolator for: ${r}`);typeof e.interpolate[r]=="function"&&(e.interpolate[r]={use:e.interpolate[r]}),e.interpolate[r].fixup||(e.interpolate[r].fixup=Hae)}),Vk[e.mode]=e,(e.parse||[]).forEach(r=>{Xk(r,e.mode)}),$a(e.mode)),Wi=e=>Vk[e],Xk=(e,r)=>{if(typeof e=="string"){if(!r)throw new Error("'mode' required when 'parser' is a string");h4[e]=r}else typeof e=="function"&&Lv.indexOf(e)<0&&Lv.push(e)},Uae=e=>{if(typeof e=="string")delete h4[e];else if(typeof e=="function"){let r=Lv.indexOf(e);r>0&&Lv.splice(r,1)}},G_=/[^\x00-\x7F]|[a-zA-Z_]/,Gae=/[^\x00-\x7F]|[-\w]/,Qr={Function:"function",Ident:"ident",Number:"number",Percentage:"percentage",ParenClose:")",None:"none",Hue:"hue",Alpha:"alpha"},$t=0;function py(e){let r=e[$t],t=e[$t+1];return r==="-"||r==="+"?/\d/.test(t)||t==="."&&/\d/.test(e[$t+2]):r==="."?/\d/.test(t):/\d/.test(r)}function Y_(e){if($t>=e.length)return!1;let r=e[$t];if(G_.test(r))return!0;if(r==="-"){if(e.length-$t<2)return!1;let t=e[$t+1];return!!(t==="-"||G_.test(t))}return!1}var Yae={deg:1,rad:180/Math.PI,grad:9/10,turn:360};function _2(e){let r="";if((e[$t]==="-"||e[$t]==="+")&&(r+=e[$t++]),r+=my(e),e[$t]==="."&&/\d/.test(e[$t+1])&&(r+=e[$t++]+my(e)),(e[$t]==="e"||e[$t]==="E")&&((e[$t+1]==="-"||e[$t+1]==="+")&&/\d/.test(e[$t+2])?r+=e[$t++]+e[$t++]+my(e):/\d/.test(e[$t+1])&&(r+=e[$t++]+my(e))),Y_(e)){let t=by(e);return t==="deg"||t==="rad"||t==="turn"||t==="grad"?{type:Qr.Hue,value:r*Yae[t]}:void 0}return e[$t]==="%"?($t++,{type:Qr.Percentage,value:+r}):{type:Qr.Number,value:+r}}function my(e){let r="";for(;/\d/.test(e[$t]);)r+=e[$t++];return r}function by(e){let r="";for(;$t4)){if(t.length===4){if(t[3].type!==Qr.Alpha)return;t[3]=t[3].value}return t.length===3&&t.push({type:Qr.None,value:void 0}),t.every(n=>n.type!==Qr.Alpha)?t:void 0}}function Zae(e,r){e._i=0;let t=e[e._i++];if(!t||t.type!==Qr.Function)return;let a=Wk(e,r);if(a)return a.unshift(t.value),a}var Jae=e=>{if(typeof e!="string")return;let r=Xae(e),t=r?Zae(r,!0):void 0,a,n=0,i=Lv.length;for(;ne==="transparent"?{mode:"rgb",r:0,g:0,b:0,alpha:0}:void 0,jk=$ae,P0=(e,r,t)=>e+t*(r-e),Kae=(e,r,t)=>(t-e)/(r-e),V_=(e,r,t,a,n,i)=>P0(P0(e,r,n),P0(t,a,n),i),Qae=(e,r,t,a,n,i,o,l,s,u,f)=>P0(V_(e,r,t,a,s,u),V_(n,i,o,l,s,u),f),ene=e=>{let r=[];for(let t=0;tr=>{let t=ene(r);return a=>{let n=a*t.length,i=a>=1?t.length-1:Math.max(Math.floor(n),0),o=t[i];return o===void 0?void 0:e(o[0],o[1],n-i)}},yt=$k(P0),hi=e=>{let r=!1,t=e.map(a=>a!==void 0?(r=!0,a):1);return r?t:e},rne={mode:"rgb",channels:["r","g","b","alpha"],parse:[Jk,Gk,Yk,Uk,jk,"srgb"],serialize:"srgb",interpolate:{r:yt,g:yt,b:yt,alpha:{use:yt,fixup:hi}},gamut:!0,white:{r:1,g:1,b:1},black:{r:0,g:0,b:0}},B0=rne,x_=(e=0)=>Math.pow(Math.abs(e),563/256)*Math.sign(e),tne=e=>{let r=x_(e.r),t=x_(e.g),a=x_(e.b),n={mode:"xyz65",x:.5766690429101305*r+.1855582379065463*t+.1882286462349947*a,y:.297344975250536*r+.6273635662554661*t+.0752914584939979*a,z:.0270313613864123*r+.0706888525358272*t+.9913375368376386*a};return e.alpha!==void 0&&(n.alpha=e.alpha),n},X_=tne,__=e=>Math.pow(Math.abs(e),256/563)*Math.sign(e),ane=({x:e,y:r,z:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n={mode:"a98",r:__(e*2.0415879038107465-r*.5650069742788597-.3447313507783297*t),g:__(e*-.9692436362808798+r*1.8759675015077206+.0415550574071756*t),b:__(e*.0134442806320312-r*.1183623922310184+1.0151749943912058*t)};return a!==void 0&&(n.alpha=a),n},W_=ane,w_=(e=0)=>{let r=Math.abs(e);return r<=.04045?e/12.92:(Math.sign(e)||1)*Math.pow((r+.055)/1.055,2.4)},nne=({r:e,g:r,b:t,alpha:a})=>{let n={mode:"lrgb",r:w_(e),g:w_(r),b:w_(t)};return a!==void 0&&(n.alpha=a),n},I0=nne,ine=e=>{let{r,g:t,b:a,alpha:n}=I0(e),i={mode:"xyz65",x:.4123907992659593*r+.357584339383878*t+.1804807884018343*a,y:.2126390058715102*r+.715168678767756*t+.0721923153607337*a,z:.0193308187155918*r+.119194779794626*t+.9505321522496607*a};return n!==void 0&&(i.alpha=n),i},tf=ine,A_=(e=0)=>{let r=Math.abs(e);return r>.0031308?(Math.sign(e)||1)*(1.055*Math.pow(r,1/2.4)-.055):e*12.92},one=({r:e,g:r,b:t,alpha:a},n="rgb")=>{let i={mode:n,r:A_(e),g:A_(r),b:A_(t)};return a!==void 0&&(i.alpha=a),i},O0=one,lne=({x:e,y:r,z:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=O0({r:e*3.2409699419045226-r*1.537383177570094-.4986107602930034*t,g:e*-.9692436362808796+r*1.8759675015077204+.0415550574071756*t,b:e*.0556300796969936-r*.2039769588889765+1.0569715142428784*t});return a!==void 0&&(n.alpha=a),n},af=lne,sne=Va(ka({},B0),{mode:"a98",parse:["a98-rgb"],serialize:"a98-rgb",fromMode:{rgb:e=>W_(tf(e)),xyz65:W_},toMode:{rgb:e=>af(X_(e)),xyz65:X_}}),Kk=sne,une=e=>(e=e%360)<0?e+360:e,Bi=une,Cy=(e,r)=>e.map((t,a,n)=>{if(t===void 0)return t;let i=Bi(t);return a===0||e[a-1]===void 0?i:r(i-Bi(n[a-1]))}).reduce((t,a)=>!t.length||a===void 0||t[t.length-1]===void 0?(t.push(a),t):(t.push(a+t[t.length-1]),t),[]),ps=e=>Cy(e,r=>Math.abs(r)<=180?r:r-360*Math.sign(r)),fne=e=>Cy(e,r=>Math.abs(r)>=180||r===0?r:r-360*Math.sign(r)),cne=e=>Cy(e,r=>r>=0?r:r+360),vne=e=>Cy(e,r=>r<=0?r:r-360),Li=[-.14861,1.78277,-.29227,-.90649,1.97294,0],hne=Math.PI/180,dne=180/Math.PI,Lk=Li[3]*Li[4],Ek=Li[1]*Li[4],qk=Li[1]*Li[2]-Li[0]*Li[3],pne=({r:e,g:r,b:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=(qk*t+e*Lk-r*Ek)/(qk+Lk-Ek),i=t-n,o=(Li[4]*(r-n)-Li[2]*i)/Li[3],l={mode:"cubehelix",l:n,s:n===0||n===1?void 0:Math.sqrt(i*i+o*o)/(Li[4]*n*(1-n))};return l.s&&(l.h=Math.atan2(o,i)*dne-120),a!==void 0&&(l.alpha=a),l},Qk=pne,mne=({h:e,s:r,l:t,alpha:a})=>{let n={mode:"rgb"};e=(e===void 0?0:e+120)*hne,t===void 0&&(t=0);let i=r===void 0?0:r*t*(1-t),o=Math.cos(e),l=Math.sin(e);return n.r=t+i*(Li[0]*o+Li[1]*l),n.g=t+i*(Li[2]*o+Li[3]*l),n.b=t+i*(Li[4]*o+Li[5]*l),a!==void 0&&(n.alpha=a),n},eS=mne,k2=(e,r)=>{if(e.h===void 0||r.h===void 0||!e.s||!r.s)return 0;let t=Bi(e.h),a=Bi(r.h),n=Math.sin((a-t+360)/2*Math.PI/180);return 2*Math.sqrt(e.s*r.s)*n},rS=(e,r)=>{if(e.h===void 0||r.h===void 0)return 0;let t=Bi(e.h),a=Bi(r.h);return Math.abs(a-t)>180?t-(a-360*Math.sign(a-t)):a-t},S2=(e,r)=>{if(e.h===void 0||r.h===void 0||!e.c||!r.c)return 0;let t=Bi(e.h),a=Bi(r.h),n=Math.sin((a-t+360)/2*Math.PI/180);return 2*Math.sqrt(e.c*r.c)*n},Ev=(e="rgb",r=[1,1,1,0])=>{let t=Wi(e),a=t.channels,n=t.difference,i=$a(e);return(o,l)=>{let s=i(o),u=i(l);return Math.sqrt(a.reduce((f,c,v)=>{let d=n[c]?n[c](s,u):s[c]-u[c];return f+(r[v]||0)*Math.pow(isNaN(d)?0:d,2)},0))}},yne=()=>Ev("lab65"),gne=(e=1,r=.045,t=.015)=>{let a=$a("lab65");return(n,i)=>{let o=a(n),l=a(i),s=o.l,u=o.a,f=o.b,c=Math.sqrt(u*u+f*f),v=l.l,d=l.a,p=l.b,m=Math.sqrt(d*d+p*p),y=Math.pow(s-v,2),b=Math.pow(c-m,2),T=Math.pow(u-d,2)+Math.pow(f-p,2)-b;return Math.sqrt(y/Math.pow(e,2)+b/Math.pow(1+r*c,2)+T/Math.pow(1+t*c,2))}},bne=(e=1,r=1,t=1)=>{let a=$a("lab65");return(n,i)=>{let o=a(n),l=a(i),s=o.l,u=o.a,f=o.b,c=Math.sqrt(u*u+f*f),v=l.l,d=l.a,p=l.b,m=Math.sqrt(d*d+p*p),y=(c+m)/2,b=.5*(1-Math.sqrt(Math.pow(y,7)/(Math.pow(y,7)+Math.pow(25,7)))),T=u*(1+b),_=d*(1+b),x=Math.sqrt(T*T+f*f),w=Math.sqrt(_*_+p*p),k=Math.abs(T)+Math.abs(f)===0?0:Math.atan2(f,T);k+=(k<0)*2*Math.PI;let M=Math.abs(_)+Math.abs(p)===0?0:Math.atan2(p,_);M+=(M<0)*2*Math.PI;let C=v-s,E=w-x,F=x*w===0?0:M-k;F-=(F>Math.PI)*2*Math.PI,F+=(F<-Math.PI)*2*Math.PI;let P=2*Math.sqrt(x*w)*Math.sin(F/2),q=(s+v)/2,z=(x+w)/2,I;x*w===0?I=k+M:(I=(k+M)/2,I-=(Math.abs(k-M)>Math.PI)*Math.PI,I+=(I<0)*2*Math.PI);let U=Math.pow(q-50,2),V=1-.17*Math.cos(I-Math.PI/6)+.24*Math.cos(2*I)+.32*Math.cos(3*I+Math.PI/30)-.2*Math.cos(4*I-63*Math.PI/180),W=1+.015*U/Math.sqrt(20+U),G=1+.045*z,Y=1+.015*z*V,Z=30*Math.PI/180*Math.exp(-1*Math.pow((180/Math.PI*I-275)/25,2)),j=2*Math.sqrt(Math.pow(z,7)/(Math.pow(z,7)+Math.pow(25,7))),ee=-1*Math.sin(2*Z)*j;return Math.sqrt(Math.pow(C/(e*W),2)+Math.pow(E/(r*G),2)+Math.pow(P/(t*Y),2)+ee*E/(r*G)*P/(t*Y))}},xne=(e=1,r=1)=>{let t=$a("lab65");return(a,n)=>{let i=t(a),o=i.l,l=i.a,s=i.b,u=Math.sqrt(l*l+s*s),f=Math.atan2(s,l);f=f+2*Math.PI*(f<0);let c=t(n),v=c.l,d=c.a,p=c.b,m=Math.sqrt(d*d+p*p),y=Math.pow(o-v,2),b=Math.pow(u-m,2),T=Math.pow(l-d,2)+Math.pow(s-p,2)-b,_=Math.sqrt(Math.pow(u,4)/(Math.pow(u,4)+1900)),x=f>=164/180*Math.PI&&f<=345/180*Math.PI?.56+Math.abs(.2*Math.cos(f+168/180*Math.PI)):.36+Math.abs(.4*Math.cos(f+35/180*Math.PI)),w=o<16?.511:.040975*o/(1+.01765*o),k=.0638*u/(1+.0131*u)+.638,M=k*(_*x+1-_);return Math.sqrt(y/Math.pow(e*w,2)+b/Math.pow(r*k,2)+T/Math.pow(M,2))}},_ne=()=>{let e=$a("lab65");return(r,t)=>{let a=e(r),n=e(t),i=a.l-n.l,o=a.a-n.a,l=a.b-n.b;return Math.abs(i)+Math.sqrt(o*o+l*l)}},wne=()=>Ev("yiq",[.5053,.299,.1957]),Ane=()=>Ev("itp",[518400,129600,518400]),ms=e=>{let r=e.reduce((a,n)=>{if(n!==void 0){let i=n*Math.PI/180;a.sin+=Math.sin(i),a.cos+=Math.cos(i)}return a},{sin:0,cos:0}),t=Math.atan2(r.sin,r.cos)*180/Math.PI;return t<0?360+t:t},tS=e=>{let r=e.filter(t=>t!==void 0);return r.length?r.reduce((t,a)=>t+a,0)/r.length:void 0},T_=e=>typeof e=="function";function Tne(e,r="rgb",t){let a=Wi(r),n=e.map($a(r));return a.channels.reduce((i,o)=>{let l=n.map(s=>s[o]).filter(s=>s!==void 0);if(l.length){let s;T_(t)?s=t:t&&T_(t[o])?s=t[o]:a.average&&T_(a.average[o])?s=a.average[o]:s=tS,i[o]=s(l,o)}return i},{mode:r})}var Mne={mode:"cubehelix",channels:["h","s","l","alpha"],parse:["--cubehelix"],serialize:"--cubehelix",ranges:{h:[0,360],s:[0,4.614],l:[0,1]},fromMode:{rgb:Qk},toMode:{rgb:eS},interpolate:{h:{use:yt,fixup:ps},s:yt,l:yt,alpha:{use:yt,fixup:hi}},difference:{h:k2},average:{h:ms}},aS=Mne,kne=({l:e,a:r,b:t,alpha:a},n="lch")=>{r===void 0&&(r=0),t===void 0&&(t=0);let i=Math.sqrt(r*r+t*t),o={mode:n,l:e,c:i};return i&&(o.h=Bi(Math.atan2(t,r)*180/Math.PI)),a!==void 0&&(o.alpha=a),o},iu=kne,Sne=({l:e,c:r,h:t,alpha:a},n="lab")=>{t===void 0&&(t=0);let i={mode:n,l:e,a:r?r*Math.cos(t/180*Math.PI):0,b:r?r*Math.sin(t/180*Math.PI):0};return a!==void 0&&(i.alpha=a),i},ou=Sne,nS=Math.pow(29,3)/Math.pow(3,3),iS=Math.pow(6,3)/Math.pow(29,3),vi={X:.3457/.3585,Y:1,Z:(1-.3457-.3585)/.3585},Cv={X:.3127/.329,Y:1,Z:(1-.3127-.329)/.329},qLe=Math.pow(29,3)/Math.pow(3,3),FLe=Math.pow(6,3)/Math.pow(29,3),M_=e=>Math.pow(e,3)>iS?Math.pow(e,3):(116*e-16)/nS,Cne=({l:e,a:r,b:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=(e+16)/116,i=r/500+n,o=n-t/200,l={mode:"xyz65",x:M_(i)*Cv.X,y:M_(n)*Cv.Y,z:M_(o)*Cv.Z};return a!==void 0&&(l.alpha=a),l},d4=Cne,Dne=e=>af(d4(e)),C2=Dne,k_=e=>e>iS?Math.cbrt(e):(nS*e+16)/116,Lne=({x:e,y:r,z:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=k_(e/Cv.X),i=k_(r/Cv.Y),o=k_(t/Cv.Z),l={mode:"lab65",l:116*i-16,a:500*(n-i),b:200*(i-o)};return a!==void 0&&(l.alpha=a),l},p4=Lne,Ene=e=>{let r=p4(tf(e));return e.r===e.b&&e.b===e.g&&(r.a=r.b=0),r},D2=Ene,xy=1,oS=1,M2=26/180*Math.PI,_y=Math.cos(M2),wy=Math.sin(M2),lS=100/Math.log(139/100),qne=({l:e,c:r,h:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n={mode:"lab65",l:(Math.exp(e*xy/lS)-1)/.0039},i=(Math.exp(.0435*r*oS*xy)-1)/.075,o=i*Math.cos(t/180*Math.PI-M2),l=i*Math.sin(t/180*Math.PI-M2);return n.a=o*_y-l/.83*wy,n.b=o*wy+l/.83*_y,a!==void 0&&(n.alpha=a),n},Ay=qne,Fne=({l:e,a:r,b:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=r*_y+t*wy,i=.83*(t*_y-r*wy),o=Math.sqrt(n*n+i*i),l={mode:"dlch",l:lS/xy*Math.log(1+.0039*e),c:Math.log(1+.075*o)/(.0435*oS*xy)};return l.c&&(l.h=Bi((Math.atan2(i,n)+M2)/Math.PI*180)),a!==void 0&&(l.alpha=a),l},Ty=Fne,Fk=e=>Ay(iu(e,"dlch")),Rk=e=>ou(Ty(e),"dlab"),Rne={mode:"dlab",parse:["--din99o-lab"],serialize:"--din99o-lab",toMode:{lab65:Fk,rgb:e=>C2(Fk(e))},fromMode:{lab65:Rk,rgb:e=>Rk(D2(e))},channels:["l","a","b","alpha"],ranges:{l:[0,100],a:[-40.09,45.501],b:[-40.469,44.344]},interpolate:{l:yt,a:yt,b:yt,alpha:{use:yt,fixup:hi}}},sS=Rne,Pne={mode:"dlch",parse:["--din99o-lch"],serialize:"--din99o-lch",toMode:{lab65:Ay,dlab:e=>ou(e,"dlab"),rgb:e=>C2(Ay(e))},fromMode:{lab65:Ty,dlab:e=>iu(e,"dlch"),rgb:e=>Ty(D2(e))},channels:["l","c","h","alpha"],ranges:{l:[0,100],c:[0,51.484],h:[0,360]},interpolate:{l:yt,c:yt,h:{use:yt,fixup:ps},alpha:{use:yt,fixup:hi}},difference:{h:S2},average:{h:ms}},uS=Pne;function fS({h:e,s:r,i:t,alpha:a}){e=Bi(e!==void 0?e:0),r===void 0&&(r=0),t===void 0&&(t=0);let n=Math.abs(e/60%2-1),i;switch(Math.floor(e/60)){case 0:i={r:t*(1+r*(3/(2-n)-1)),g:t*(1+r*(3*(1-n)/(2-n)-1)),b:t*(1-r)};break;case 1:i={r:t*(1+r*(3*(1-n)/(2-n)-1)),g:t*(1+r*(3/(2-n)-1)),b:t*(1-r)};break;case 2:i={r:t*(1-r),g:t*(1+r*(3/(2-n)-1)),b:t*(1+r*(3*(1-n)/(2-n)-1))};break;case 3:i={r:t*(1-r),g:t*(1+r*(3*(1-n)/(2-n)-1)),b:t*(1+r*(3/(2-n)-1))};break;case 4:i={r:t*(1+r*(3*(1-n)/(2-n)-1)),g:t*(1-r),b:t*(1+r*(3/(2-n)-1))};break;case 5:i={r:t*(1+r*(3/(2-n)-1)),g:t*(1-r),b:t*(1+r*(3*(1-n)/(2-n)-1))};break;default:i={r:t*(1-r),g:t*(1-r),b:t*(1-r)}}return i.mode="rgb",a!==void 0&&(i.alpha=a),i}function cS({r:e,g:r,b:t,alpha:a}){e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=Math.max(e,r,t),i=Math.min(e,r,t),o={mode:"hsi",s:e+r+t===0?0:1-3*i/(e+r+t),i:(e+r+t)/3};return n-i!==0&&(o.h=(n===e?(r-t)/(n-i)+(r{switch(r){case"deg":return+e;case"rad":return e/Math.PI*180;case"grad":return e/10*9;case"turn":return e*360}},Bne=zne,Ine=new RegExp(`^hsla?\\(\\s*${Pae}${Dv}${A2}${Dv}${A2}\\s*(?:,\\s*${v4}\\s*)?\\)$`),One=e=>{let r=e.match(Ine);if(!r)return;let t={mode:"hsl"};return r[3]!==void 0?t.h=+r[3]:r[1]!==void 0&&r[2]!==void 0&&(t.h=Bne(r[1],r[2])),r[4]!==void 0&&(t.s=Math.min(Math.max(0,r[4]/100),1)),r[5]!==void 0&&(t.l=Math.min(Math.max(0,r[5]/100),1)),r[6]!==void 0?t.alpha=Math.max(0,Math.min(1,r[6]/100)):r[7]!==void 0&&(t.alpha=Math.max(0,Math.min(1,+r[7]))),t},pS=One;function Hne(e,r){if(!r||r[0]!=="hsl"&&r[0]!=="hsla")return;let t={mode:"hsl"},[,a,n,i,o]=r;if(a.type!==Qr.None){if(a.type===Qr.Percentage)return;t.h=a.value}if(n.type!==Qr.None){if(n.type===Qr.Hue)return;t.s=n.value/100}if(i.type!==Qr.None){if(i.type===Qr.Hue)return;t.l=i.value/100}return o.type!==Qr.None&&(t.alpha=Math.min(1,Math.max(0,o.type===Qr.Number?o.value:o.value/100))),t}var mS=Hne,Une={mode:"hsl",toMode:{rgb:hS},fromMode:{rgb:dS},channels:["h","s","l","alpha"],ranges:{h:[0,360]},gamut:"rgb",parse:[mS,pS],serialize:e=>`hsl(${e.h!==void 0?e.h:"none"} ${e.s!==void 0?e.s*100+"%":"none"} ${e.l!==void 0?e.l*100+"%":"none"}${e.alpha<1?` / ${e.alpha}`:""})`,interpolate:{h:{use:yt,fixup:ps},s:yt,l:yt,alpha:{use:yt,fixup:hi}},difference:{h:k2},average:{h:ms}},m4=Une;function y4({h:e,s:r,v:t,alpha:a}){e=Bi(e!==void 0?e:0),r===void 0&&(r=0),t===void 0&&(t=0);let n=Math.abs(e/60%2-1),i;switch(Math.floor(e/60)){case 0:i={r:t,g:t*(1-r*n),b:t*(1-r)};break;case 1:i={r:t*(1-r*n),g:t,b:t*(1-r)};break;case 2:i={r:t*(1-r),g:t,b:t*(1-r*n)};break;case 3:i={r:t*(1-r),g:t*(1-r*n),b:t};break;case 4:i={r:t*(1-r*n),g:t*(1-r),b:t};break;case 5:i={r:t,g:t*(1-r),b:t*(1-r*n)};break;default:i={r:t*(1-r),g:t*(1-r),b:t*(1-r)}}return i.mode="rgb",a!==void 0&&(i.alpha=a),i}function g4({r:e,g:r,b:t,alpha:a}){e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=Math.max(e,r,t),i=Math.min(e,r,t),o={mode:"hsv",s:n===0?0:1-i/n,v:n};return n-i!==0&&(o.h=(n===e?(r-t)/(n-i)+(r1){let n=r+t;r/=n,t/=n}return y4({h:e,s:t===1?1:1-r/(1-t),v:1-t,alpha:a})}function gS(e){let r=g4(e);if(r===void 0)return;let t=r.s!==void 0?r.s:0,a=r.v!==void 0?r.v:0,n={mode:"hwb",w:(1-t)*a,b:1-a};return r.h!==void 0&&(n.h=r.h),r.alpha!==void 0&&(n.alpha=r.alpha),n}function Yne(e,r){if(!r||r[0]!=="hwb")return;let t={mode:"hwb"},[,a,n,i,o]=r;if(a.type!==Qr.None){if(a.type===Qr.Percentage)return;t.h=a.value}if(n.type!==Qr.None){if(n.type===Qr.Hue)return;t.w=n.value/100}if(i.type!==Qr.None){if(i.type===Qr.Hue)return;t.b=i.value/100}return o.type!==Qr.None&&(t.alpha=Math.min(1,Math.max(0,o.type===Qr.Number?o.value:o.value/100))),t}var bS=Yne,Vne={mode:"hwb",toMode:{rgb:yS},fromMode:{rgb:gS},channels:["h","w","b","alpha"],ranges:{h:[0,360]},gamut:"rgb",parse:[bS],serialize:e=>`hwb(${e.h!==void 0?e.h:"none"} ${e.w!==void 0?e.w*100+"%":"none"} ${e.b!==void 0?e.b*100+"%":"none"}${e.alpha<1?` / ${e.alpha}`:""})`,interpolate:{h:{use:yt,fixup:ps},w:yt,b:yt,alpha:{use:yt,fixup:hi}},difference:{h:rS},average:{h:ms}},xS=Vne,_S=203,Dy=.1593017578125,wS=78.84375,Ly=.8359375,Ey=18.8515625,qy=18.6875;function S_(e){if(e<0)return 0;let r=Math.pow(e,1/wS);return 1e4*Math.pow(Math.max(0,r-Ly)/(Ey-qy*r),1/Dy)}function C_(e){if(e<0)return 0;let r=Math.pow(e/1e4,Dy);return Math.pow((Ly+Ey*r)/(1+qy*r),wS)}var D_=e=>Math.max(e/_S,0),Xne=({i:e,t:r,p:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=S_(e+.008609037037932761*r+.11102962500302593*t),i=S_(e-.00860903703793275*r-.11102962500302599*t),o=S_(e+.5600313357106791*r-.32062717498731885*t),l={mode:"xyz65",x:D_(2.070152218389422*n-1.3263473389671556*i+.2066510476294051*o),y:D_(.3647385209748074*n+.680566024947227*i-.0453045459220346*o),z:D_(-.049747207535812*n-.0492609666966138*i+1.1880659249923042*o)};return a!==void 0&&(l.alpha=a),l},Z_=Xne,L_=(e=0)=>Math.max(e*_S,0),Wne=({x:e,y:r,z:t,alpha:a})=>{let n=L_(e),i=L_(r),o=L_(t),l=C_(.3592832590121217*n+.6976051147779502*i-.0358915932320289*o),s=C_(-.1920808463704995*n+1.1004767970374323*i+.0753748658519118*o),u=C_(.0070797844607477*n+.0748396662186366*i+.8433265453898765*o),f=.5*l+.5*s,c=1.61376953125*l-3.323486328125*s+1.709716796875*u,v=4.378173828125*l-4.24560546875*s-.132568359375*u,d={mode:"itp",i:f,t:c,p:v};return a!==void 0&&(d.alpha=a),d},J_=Wne,Zne={mode:"itp",channels:["i","t","p","alpha"],parse:["--ictcp"],serialize:"--ictcp",toMode:{xyz65:Z_,rgb:e=>af(Z_(e))},fromMode:{xyz65:J_,rgb:e=>J_(tf(e))},ranges:{i:[0,.581],t:[-.369,.272],p:[-.164,.331]},interpolate:{i:yt,t:yt,p:yt,alpha:{use:yt,fixup:hi}}},AS=Zne,Jne=134.03437499999998,jne=16295499532821565e-27,E_=e=>{if(e<0)return 0;let r=Math.pow(e/1e4,Dy);return Math.pow((Ly+Ey*r)/(1+qy*r),Jne)},q_=(e=0)=>Math.max(e*203,0),$ne=({x:e,y:r,z:t,alpha:a})=>{e=q_(e),r=q_(r),t=q_(t);let n=1.15*e-.15*t,i=.66*r+.34*e,o=E_(.41478972*n+.579999*i+.014648*t),l=E_(-.20151*n+1.120649*i+.0531008*t),s=E_(-.0166008*n+.2648*i+.6684799*t),u=(o+l)/2,f={mode:"jab",j:.44*u/(1-.56*u)-jne,a:3.524*o-4.066708*l+.542708*s,b:.199076*o+1.096799*l-1.295875*s};return a!==void 0&&(f.alpha=a),f},x4=$ne,Kne=134.03437499999998,Pk=16295499532821565e-27,F_=e=>{if(e<0)return 0;let r=Math.pow(e,1/Kne);return 1e4*Math.pow((Ly-r)/(qy*r-Ey),1/Dy)},R_=e=>e/203,Qne=({j:e,a:r,b:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=(e+Pk)/(.44+.56*(e+Pk)),i=F_(n+.13860504*r+.058047316*t),o=F_(n-.13860504*r-.058047316*t),l=F_(n-.096019242*r-.8118919*t),s={mode:"xyz65",x:R_(1.661373024652174*i-.914523081304348*o+.23136208173913045*l),y:R_(-.3250758611844533*i+1.571847026732543*o-.21825383453227928*l),z:R_(-.090982811*i-.31272829*o+1.5227666*l)};return a!==void 0&&(s.alpha=a),s},_4=Qne,eie=e=>{let r=x4(tf(e));return e.r===e.b&&e.b===e.g&&(r.a=r.b=0),r},w4=eie,rie=e=>af(_4(e)),A4=rie,tie={mode:"jab",channels:["j","a","b","alpha"],parse:["--jzazbz"],serialize:"--jzazbz",fromMode:{rgb:w4,xyz65:x4},toMode:{rgb:A4,xyz65:_4},ranges:{j:[0,.222],a:[-.109,.129],b:[-.185,.134]},interpolate:{j:yt,a:yt,b:yt,alpha:{use:yt,fixup:hi}}},TS=tie,aie=({j:e,a:r,b:t,alpha:a})=>{r===void 0&&(r=0),t===void 0&&(t=0);let n=Math.sqrt(r*r+t*t),i={mode:"jch",j:e,c:n};return n&&(i.h=Bi(Math.atan2(t,r)*180/Math.PI)),a!==void 0&&(i.alpha=a),i},j_=aie,nie=({j:e,c:r,h:t,alpha:a})=>{t===void 0&&(t=0);let n={mode:"jab",j:e,a:r?r*Math.cos(t/180*Math.PI):0,b:r?r*Math.sin(t/180*Math.PI):0};return a!==void 0&&(n.alpha=a),n},$_=nie,iie={mode:"jch",parse:["--jzczhz"],serialize:"--jzczhz",toMode:{jab:$_,rgb:e=>A4($_(e))},fromMode:{rgb:e=>j_(w4(e)),jab:j_},channels:["j","c","h","alpha"],ranges:{j:[0,.221],c:[0,.19],h:[0,360]},interpolate:{h:{use:yt,fixup:ps},c:yt,j:yt,alpha:{use:yt,fixup:hi}},difference:{h:S2},average:{h:ms}},MS=iie,Fy=Math.pow(29,3)/Math.pow(3,3),T4=Math.pow(6,3)/Math.pow(29,3),P_=e=>Math.pow(e,3)>T4?Math.pow(e,3):(116*e-16)/Fy,oie=({l:e,a:r,b:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=(e+16)/116,i=r/500+n,o=n-t/200,l={mode:"xyz50",x:P_(i)*vi.X,y:P_(n)*vi.Y,z:P_(o)*vi.Z};return a!==void 0&&(l.alpha=a),l},Ry=oie,lie=({x:e,y:r,z:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=O0({r:e*3.1341359569958707-r*1.6173863321612538-.4906619460083532*t,g:e*-.978795502912089+r*1.916254567259524+.03344273116131949*t,b:e*.07195537988411677-r*.2289768264158322+1.405386058324125*t});return a!==void 0&&(n.alpha=a),n},qv=lie,sie=e=>qv(Ry(e)),M4=sie,uie=e=>{let{r,g:t,b:a,alpha:n}=I0(e),i={mode:"xyz50",x:.436065742824811*r+.3851514688337912*t+.14307845442264197*a,y:.22249319175623702*r+.7168870538238823*t+.06061979053616537*a,z:.013923904500943465*r+.09708128566574634*t+.7140993584005155*a};return n!==void 0&&(i.alpha=n),i},Fv=uie,N_=e=>e>T4?Math.cbrt(e):(Fy*e+16)/116,fie=({x:e,y:r,z:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=N_(e/vi.X),i=N_(r/vi.Y),o=N_(t/vi.Z),l={mode:"lab",l:116*i-16,a:500*(n-i),b:200*(i-o)};return a!==void 0&&(l.alpha=a),l},Py=fie,cie=e=>{let r=Py(Fv(e));return e.r===e.b&&e.b===e.g&&(r.a=r.b=0),r},k4=cie;function vie(e,r){if(!r||r[0]!=="lab")return;let t={mode:"lab"},[,a,n,i,o]=r;if(!(a.type===Qr.Hue||n.type===Qr.Hue||i.type===Qr.Hue))return a.type!==Qr.None&&(t.l=Math.min(Math.max(0,a.value),100)),n.type!==Qr.None&&(t.a=n.type===Qr.Number?n.value:n.value*125/100),i.type!==Qr.None&&(t.b=i.type===Qr.Number?i.value:i.value*125/100),o.type!==Qr.None&&(t.alpha=Math.min(1,Math.max(0,o.type===Qr.Number?o.value:o.value/100))),t}var kS=vie,hie={mode:"lab",toMode:{xyz50:Ry,rgb:M4},fromMode:{xyz50:Py,rgb:k4},channels:["l","a","b","alpha"],ranges:{l:[0,100],a:[-125,125],b:[-125,125]},parse:[kS],serialize:e=>`lab(${e.l!==void 0?e.l:"none"} ${e.a!==void 0?e.a:"none"} ${e.b!==void 0?e.b:"none"}${e.alpha<1?` / ${e.alpha}`:""})`,interpolate:{l:yt,a:yt,b:yt,alpha:{use:yt,fixup:hi}}},Ny=hie,die=Va(ka({},Ny),{mode:"lab65",parse:["--lab-d65"],serialize:"--lab-d65",toMode:{xyz65:d4,rgb:C2},fromMode:{xyz65:p4,rgb:D2},ranges:{l:[0,100],a:[-125,125],b:[-125,125]}}),SS=die;function pie(e,r){if(!r||r[0]!=="lch")return;let t={mode:"lch"},[,a,n,i,o]=r;if(a.type!==Qr.None){if(a.type===Qr.Hue)return;t.l=Math.min(Math.max(0,a.value),100)}if(n.type!==Qr.None&&(t.c=Math.max(0,n.type===Qr.Number?n.value:n.value*150/100)),i.type!==Qr.None){if(i.type===Qr.Percentage)return;t.h=i.value}return o.type!==Qr.None&&(t.alpha=Math.min(1,Math.max(0,o.type===Qr.Number?o.value:o.value/100))),t}var CS=pie,mie={mode:"lch",toMode:{lab:ou,rgb:e=>M4(ou(e))},fromMode:{rgb:e=>iu(k4(e)),lab:iu},channels:["l","c","h","alpha"],ranges:{l:[0,100],c:[0,150],h:[0,360]},parse:[CS],serialize:e=>`lch(${e.l!==void 0?e.l:"none"} ${e.c!==void 0?e.c:"none"} ${e.h!==void 0?e.h:"none"}${e.alpha<1?` / ${e.alpha}`:""})`,interpolate:{h:{use:yt,fixup:ps},c:yt,l:yt,alpha:{use:yt,fixup:hi}},difference:{h:S2},average:{h:ms}},zy=mie,yie=Va(ka({},zy),{mode:"lch65",parse:["--lch-d65"],serialize:"--lch-d65",toMode:{lab65:e=>ou(e,"lab65"),rgb:e=>C2(ou(e,"lab65"))},fromMode:{rgb:e=>iu(D2(e),"lch65"),lab65:e=>iu(e,"lch65")},ranges:{l:[0,100],c:[0,150],h:[0,360]}}),DS=yie,gie=({l:e,u:r,v:t,alpha:a})=>{r===void 0&&(r=0),t===void 0&&(t=0);let n=Math.sqrt(r*r+t*t),i={mode:"lchuv",l:e,c:n};return n&&(i.h=Bi(Math.atan2(t,r)*180/Math.PI)),a!==void 0&&(i.alpha=a),i},S4=gie,bie=({l:e,c:r,h:t,alpha:a})=>{t===void 0&&(t=0);let n={mode:"luv",l:e,u:r?r*Math.cos(t/180*Math.PI):0,v:r?r*Math.sin(t/180*Math.PI):0};return a!==void 0&&(n.alpha=a),n},C4=bie,LS=(e,r,t)=>4*e/(e+15*r+3*t),ES=(e,r,t)=>9*r/(e+15*r+3*t),xie=LS(vi.X,vi.Y,vi.Z),_ie=ES(vi.X,vi.Y,vi.Z),wie=e=>e<=T4?Fy*e:116*Math.cbrt(e)-16,Aie=({x:e,y:r,z:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=wie(r/vi.Y),i=LS(e,r,t),o=ES(e,r,t);!isFinite(i)||!isFinite(o)?n=i=o=0:(i=13*n*(i-xie),o=13*n*(o-_ie));let l={mode:"luv",l:n,u:i,v:o};return a!==void 0&&(l.alpha=a),l},My=Aie,Tie=(e,r,t)=>4*e/(e+15*r+3*t),Mie=(e,r,t)=>9*r/(e+15*r+3*t),kie=Tie(vi.X,vi.Y,vi.Z),Sie=Mie(vi.X,vi.Y,vi.Z),Cie=({l:e,u:r,v:t,alpha:a})=>{if(e===void 0&&(e=0),e===0)return{mode:"xyz50",x:0,y:0,z:0};r===void 0&&(r=0),t===void 0&&(t=0);let n=r/(13*e)+kie,i=t/(13*e)+Sie,o=vi.Y*(e<=8?e/Fy:Math.pow((e+16)/116,3)),l=o*(9*n)/(4*i),s=o*(12-3*n-20*i)/(4*i),u={mode:"xyz50",x:l,y:o,z:s};return a!==void 0&&(u.alpha=a),u},ky=Cie,Die=e=>S4(My(Fv(e))),Lie=e=>qv(ky(C4(e))),Eie={mode:"lchuv",toMode:{luv:C4,rgb:Lie},fromMode:{rgb:Die,luv:S4},channels:["l","c","h","alpha"],parse:["--lchuv"],serialize:"--lchuv",ranges:{l:[0,100],c:[0,176.956],h:[0,360]},interpolate:{h:{use:yt,fixup:ps},c:yt,l:yt,alpha:{use:yt,fixup:hi}},difference:{h:S2},average:{h:ms}},qS=Eie,qie=Va(ka({},B0),{mode:"lrgb",toMode:{rgb:O0},fromMode:{rgb:I0},parse:["srgb-linear"],serialize:"srgb-linear"}),FS=qie,Fie={mode:"luv",toMode:{xyz50:ky,rgb:e=>qv(ky(e))},fromMode:{xyz50:My,rgb:e=>My(Fv(e))},channels:["l","u","v","alpha"],parse:["--luv"],serialize:"--luv",ranges:{l:[0,100],u:[-84.936,175.042],v:[-125.882,87.243]},interpolate:{l:yt,u:yt,v:yt,alpha:{use:yt,fixup:hi}}},RS=Fie,Rie=({r:e,g:r,b:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=Math.cbrt(.412221469470763*e+.5363325372617348*r+.0514459932675022*t),i=Math.cbrt(.2119034958178252*e+.6806995506452344*r+.1073969535369406*t),o=Math.cbrt(.0883024591900564*e+.2817188391361215*r+.6299787016738222*t),l={mode:"oklab",l:.210454268309314*n+.7936177747023054*i-.0040720430116193*o,a:1.9779985324311684*n-2.42859224204858*i+.450593709617411*o,b:.0259040424655478*n+.7827717124575296*i-.8086757549230774*o};return a!==void 0&&(l.alpha=a),l},D4=Rie,Pie=e=>{let r=D4(I0(e));return e.r===e.b&&e.b===e.g&&(r.a=r.b=0),r},L2=Pie,Nie=({l:e,a:r,b:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=Math.pow(e+.3963377773761749*r+.2158037573099136*t,3),i=Math.pow(e-.1055613458156586*r-.0638541728258133*t,3),o=Math.pow(e-.0894841775298119*r-1.2914855480194092*t,3),l={mode:"lrgb",r:4.076741636075957*n-3.3077115392580616*i+.2309699031821044*o,g:-1.2684379732850317*n+2.6097573492876887*i-.3413193760026573*o,b:-.0041960761386756*n-.7034186179359362*i+1.7076146940746117*o};return a!==void 0&&(l.alpha=a),l},Rv=Nie,zie=e=>O0(Rv(e)),E2=zie;function K_(e){let a=1.170873786407767;return .5*(a*e-.206+Math.sqrt((a*e-.206)*(a*e-.206)+4*.03*a*e))}function Sy(e){return(e*e+.206*e)/(1.170873786407767*(e+.03))}function Bie(e,r){let t,a,n,i,o,l,s,u;-1.88170328*e-.80936493*r>1?(t=1.19086277,a=1.76576728,n=.59662641,i=.75515197,o=.56771245,l=4.0767416621,s=-3.3077115913,u=.2309699292):1.81444104*e-1.19445276*r>1?(t=.73956515,a=-.45954404,n=.08285427,i=.1254107,o=.14503204,l=-1.2684380046,s=2.6097574011,u=-.3413193965):(t=1.35733652,a=-.00915799,n=-1.1513021,i=-.50559606,o=.00692167,l=-.0041960863,s=-.7034186147,u=1.707614701);let f=t+a*e+n*r+i*e*e+o*e*r,c=.3963377774*e+.2158037573*r,v=-.1055613458*e-.0638541728*r,d=-.0894841775*e-1.291485548*r;{let p=1+f*c,m=1+f*v,y=1+f*d,b=p*p*p,T=m*m*m,_=y*y*y,x=3*c*p*p,w=3*v*m*m,k=3*d*y*y,M=6*c*c*p,C=6*v*v*m,E=6*d*d*y,F=l*b+s*T+u*_,P=l*x+s*w+u*k,q=l*M+s*C+u*E;f=f-F*P/(P*P-.5*F*q)}return f}function L4(e,r){let t=Bie(e,r),a=Rv({l:1,a:t*e,b:t*r}),n=Math.cbrt(1/Math.max(a.r,a.g,a.b)),i=n*t;return[n,i]}function Iie(e,r,t,a,n,i=null){i||(i=L4(e,r));let o;if((t-n)*i[1]-(i[0]-n)*a<=0)o=i[1]*n/(a*i[0]+i[1]*(n-t));else{o=i[1]*(n-1)/(a*(i[0]-1)+i[1]*(n-t));{let l=t-n,s=a,u=.3963377774*e+.2158037573*r,f=-.1055613458*e-.0638541728*r,c=-.0894841775*e-1.291485548*r,v=l+s*u,d=l+s*f,p=l+s*c;{let m=n*(1-o)+o*t,y=o*a,b=m+y*u,T=m+y*f,_=m+y*c,x=b*b*b,w=T*T*T,k=_*_*_,M=3*v*b*b,C=3*d*T*T,E=3*p*_*_,F=6*v*v*b,P=6*d*d*T,q=6*p*p*_,z=4.0767416621*x-3.3077115913*w+.2309699292*k-1,I=4.0767416621*M-3.3077115913*C+.2309699292*E,U=4.0767416621*F-3.3077115913*P+.2309699292*q,V=I/(I*I-.5*z*U),W=-z*V,G=-1.2684380046*x+2.6097574011*w-.3413193965*k-1,Y=-1.2684380046*M+2.6097574011*C-.3413193965*E,Z=-1.2684380046*F+2.6097574011*P-.3413193965*q,j=Y/(Y*Y-.5*G*Z),ee=-G*j,ye=-.0041960863*x-.7034186147*w+1.707614701*k-1,fe=-.0041960863*M-.7034186147*C+1.707614701*E,he=-.0041960863*F-.7034186147*P+1.707614701*q,ae=fe/(fe*fe-.5*ye*he),Le=-ye*ae;W=V>=0?W:1e6,ee=j>=0?ee:1e6,Le=ae>=0?Le:1e6,o+=Math.min(W,Math.min(ee,Le))}}}return o}function E4(e,r,t=null){t||(t=L4(e,r));let a=t[0],n=t[1];return[n/a,n/(1-a)]}function PS(e,r,t){let a=L4(r,t),n=Iie(r,t,e,1,e,a),i=E4(r,t,a),o=.11516993+1/(7.4477897+4.1590124*t+r*(-2.19557347+1.75198401*t+r*(-2.13704948-10.02301043*t+r*(-4.24894561+5.38770819*t+4.69891013*r)))),l=.11239642+1/(1.6132032-.68124379*t+r*(.40370612+.90148123*t+r*(-.27087943+.6122399*t+r*(.00299215-.45399568*t-.14661872*r)))),s=n/Math.min(e*i[0],(1-e)*i[1]),u=e*o,f=(1-e)*l,c=.9*s*Math.sqrt(Math.sqrt(1/(1/(u*u*u*u)+1/(f*f*f*f))));return u=e*.4,f=(1-e)*.8,[Math.sqrt(1/(1/(u*u)+1/(f*f))),c,n]}function Q_(e){let r=e.l!==void 0?e.l:0,t=e.a!==void 0?e.a:0,a=e.b!==void 0?e.b:0,n={mode:"okhsl",l:K_(r)};e.alpha!==void 0&&(n.alpha=e.alpha);let i=Math.sqrt(t*t+a*a);if(!i)return n.s=0,n;let[o,l,s]=PS(r,t/i,a/i),u;if(iQ_(L2(e))},toMode:{oklab:e4,rgb:e=>E2(e4(e))}}),NS=Oie;function r4(e){let r=e.l!==void 0?e.l:0,t=e.a!==void 0?e.a:0,a=e.b!==void 0?e.b:0,n=Math.sqrt(t*t+a*a),i=n?t/n:1,o=n?a/n:1,[l,s]=E4(i,o),u=.5,f=1-u/l,c=s/(n+r*s),v=c*r,d=c*n,p=Sy(v),m=d*p/v,y=Rv({l:p,a:i*m,b:o*m}),b=Math.cbrt(1/Math.max(y.r,y.g,y.b,0));r=r/b,n=n/b*K_(r)/r,r=K_(r);let T={mode:"okhsv",s:n?(u+s)*d/(s*u+s*f*d):0,v:r?r/v:0};return T.s&&(T.h=Bi(Math.atan2(a,t)*180/Math.PI)),e.alpha!==void 0&&(T.alpha=e.alpha),T}function t4(e){let r={mode:"oklab"};e.alpha!==void 0&&(r.alpha=e.alpha);let t=e.h!==void 0?e.h:0,a=e.s!==void 0?e.s:0,n=e.v!==void 0?e.v:0,i=Math.cos(t/180*Math.PI),o=Math.sin(t/180*Math.PI),[l,s]=E4(i,o),u=.5,f=1-u/l,c=1-a*u/(u+s-s*f*a),v=a*s*u/(u+s-s*f*a),d=Sy(c),p=v*d/c,m=Rv({l:d,a:i*p,b:o*p}),y=Math.cbrt(1/Math.max(m.r,m.g,m.b,0)),b=Sy(n*c),T=v*b/c;return r.l=b*y,r.a=T*i*y,r.b=T*o*y,r}var Hie=Va(ka({},b4),{mode:"okhsv",channels:["h","s","v","alpha"],parse:["--okhsv"],serialize:"--okhsv",fromMode:{oklab:r4,rgb:e=>r4(L2(e))},toMode:{oklab:t4,rgb:e=>E2(t4(e))}}),zS=Hie;function Uie(e,r){if(!r||r[0]!=="oklab")return;let t={mode:"oklab"},[,a,n,i,o]=r;if(!(a.type===Qr.Hue||n.type===Qr.Hue||i.type===Qr.Hue))return a.type!==Qr.None&&(t.l=Math.min(Math.max(0,a.type===Qr.Number?a.value:a.value/100),1)),n.type!==Qr.None&&(t.a=n.type===Qr.Number?n.value:n.value*.4/100),i.type!==Qr.None&&(t.b=i.type===Qr.Number?i.value:i.value*.4/100),o.type!==Qr.None&&(t.alpha=Math.min(1,Math.max(0,o.type===Qr.Number?o.value:o.value/100))),t}var BS=Uie,Gie=Va(ka({},Ny),{mode:"oklab",toMode:{lrgb:Rv,rgb:E2},fromMode:{lrgb:D4,rgb:L2},ranges:{l:[0,1],a:[-.4,.4],b:[-.4,.4]},parse:[BS],serialize:e=>`oklab(${e.l!==void 0?e.l:"none"} ${e.a!==void 0?e.a:"none"} ${e.b!==void 0?e.b:"none"}${e.alpha<1?` / ${e.alpha}`:""})`}),IS=Gie;function Yie(e,r){if(!r||r[0]!=="oklch")return;let t={mode:"oklch"},[,a,n,i,o]=r;if(a.type!==Qr.None){if(a.type===Qr.Hue)return;t.l=Math.min(Math.max(0,a.type===Qr.Number?a.value:a.value/100),1)}if(n.type!==Qr.None&&(t.c=Math.max(0,n.type===Qr.Number?n.value:n.value*.4/100)),i.type!==Qr.None){if(i.type===Qr.Percentage)return;t.h=i.value}return o.type!==Qr.None&&(t.alpha=Math.min(1,Math.max(0,o.type===Qr.Number?o.value:o.value/100))),t}var OS=Yie,Vie=Va(ka({},zy),{mode:"oklch",toMode:{oklab:e=>ou(e,"oklab"),rgb:e=>E2(ou(e,"oklab"))},fromMode:{rgb:e=>iu(L2(e),"oklch"),oklab:e=>iu(e,"oklch")},parse:[OS],serialize:e=>`oklch(${e.l!==void 0?e.l:"none"} ${e.c!==void 0?e.c:"none"} ${e.h!==void 0?e.h:"none"}${e.alpha<1?` / ${e.alpha}`:""})`,ranges:{l:[0,1],c:[0,.4],h:[0,360]}}),HS=Vie,Xie=e=>{let{r,g:t,b:a,alpha:n}=I0(e),i={mode:"xyz65",x:.486570948648216*r+.265667693169093*t+.1982172852343625*a,y:.2289745640697487*r+.6917385218365062*t+.079286914093745*a,z:0*r+.0451133818589026*t+1.043944368900976*a};return n!==void 0&&(i.alpha=n),i},a4=Xie,Wie=({x:e,y:r,z:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=O0({r:e*2.4934969119414263-r*.9313836179191242-.402710784450717*t,g:e*-.8294889695615749+r*1.7626640603183465+.0236246858419436*t,b:e*.0358458302437845-r*.0761723892680418+.9568845240076871*t},"p3");return a!==void 0&&(n.alpha=a),n},n4=Wie,Zie=Va(ka({},B0),{mode:"p3",parse:["display-p3"],serialize:"display-p3",fromMode:{rgb:e=>n4(tf(e)),xyz65:n4},toMode:{rgb:e=>af(a4(e)),xyz65:a4}}),US=Zie,z_=e=>{let r=Math.abs(e);return r>=1/512?Math.sign(e)*Math.pow(r,1/1.8):16*e},Jie=({x:e,y:r,z:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n={mode:"prophoto",r:z_(e*1.3457868816471585-r*.2555720873797946-.0511018649755453*t),g:z_(e*-.5446307051249019+r*1.5082477428451466+.0205274474364214*t),b:z_(e*0+r*0+1.2119675456389452*t)};return a!==void 0&&(n.alpha=a),n},i4=Jie,B_=(e=0)=>{let r=Math.abs(e);return r>=16/512?Math.sign(e)*Math.pow(r,1.8):e/16},jie=e=>{let r=B_(e.r),t=B_(e.g),a=B_(e.b),n={mode:"xyz50",x:.7977666449006423*r+.1351812974005331*t+.0313477341283922*a,y:.2880748288194013*r+.7118352342418731*t+899369387256e-16*a,z:0*r+0*t+.8251046025104602*a};return e.alpha!==void 0&&(n.alpha=e.alpha),n},o4=jie,$ie=Va(ka({},B0),{mode:"prophoto",parse:["prophoto-rgb"],serialize:"prophoto-rgb",fromMode:{xyz50:i4,rgb:e=>i4(Fv(e))},toMode:{xyz50:o4,rgb:e=>qv(o4(e))}}),GS=$ie,Nk=1.09929682680944,Kie=.018053968510807,I_=e=>{let r=Math.abs(e);return r>Kie?(Math.sign(e)||1)*(Nk*Math.pow(r,.45)-(Nk-1)):4.5*e},Qie=({x:e,y:r,z:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n={mode:"rec2020",r:I_(e*1.7166511879712683-r*.3556707837763925-.2533662813736599*t),g:I_(e*-.6666843518324893+r*1.6164812366349395+.0157685458139111*t),b:I_(e*.0176398574453108-r*.0427706132578085+.9421031212354739*t)};return a!==void 0&&(n.alpha=a),n},l4=Qie,zk=1.09929682680944,eoe=.018053968510807,O_=(e=0)=>{let r=Math.abs(e);return r{let r=O_(e.r),t=O_(e.g),a=O_(e.b),n={mode:"xyz65",x:.6369580483012911*r+.1446169035862083*t+.1688809751641721*a,y:.262700212011267*r+.6779980715188708*t+.059301716469862*a,z:0*r+.0280726930490874*t+1.0609850577107909*a};return e.alpha!==void 0&&(n.alpha=e.alpha),n},s4=roe,toe=Va(ka({},B0),{mode:"rec2020",fromMode:{xyz65:l4,rgb:e=>l4(tf(e))},toMode:{xyz65:s4,rgb:e=>af(s4(e))},parse:["rec2020"],serialize:"rec2020"}),YS=toe,N0=.0037930732552754493,VS=Math.cbrt(N0),H_=e=>Math.cbrt(e)-VS,aoe=e=>{let{r,g:t,b:a,alpha:n}=I0(e),i=H_(.3*r+.622*t+.078*a+N0),o=H_(.23*r+.692*t+.078*a+N0),l=H_(.2434226892454782*r+.2047674442449682*t+.5518098665095535*a+N0),s={mode:"xyb",x:(i-o)/2,y:(i+o)/2,b:l-(i+o)/2};return n!==void 0&&(s.alpha=n),s},XS=aoe,U_=e=>Math.pow(e+VS,3),noe=({x:e,y:r,b:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n=U_(e+r)-N0,i=U_(r-e)-N0,o=U_(t+r)-N0,l=O0({r:11.031566904639861*n-9.866943908131562*i-.16462299650829934*o,g:-3.2541473810744237*n+4.418770377582723*i-.16462299650829934*o,b:-3.6588512867136815*n+2.7129230459360922*i+1.9459282407775895*o});return a!==void 0&&(l.alpha=a),l},WS=noe,ioe={mode:"xyb",channels:["x","y","b","alpha"],parse:["--xyb"],serialize:"--xyb",toMode:{rgb:WS},fromMode:{rgb:XS},ranges:{x:[-.0154,.0281],y:[0,.8453],b:[-.2778,.388]},interpolate:{x:yt,y:yt,b:yt,alpha:{use:yt,fixup:hi}}},ZS=ioe,ooe={mode:"xyz50",parse:["xyz-d50"],serialize:"xyz-d50",toMode:{rgb:qv,lab:Py},fromMode:{rgb:Fv,lab:Ry},channels:["x","y","z","alpha"],ranges:{x:[0,.964],y:[0,.999],z:[0,.825]},interpolate:{x:yt,y:yt,z:yt,alpha:{use:yt,fixup:hi}}},JS=ooe,loe=e=>{let{x:r,y:t,z:a,alpha:n}=e;r===void 0&&(r=0),t===void 0&&(t=0),a===void 0&&(a=0);let i={mode:"xyz50",x:1.0479298208405488*r+.0229467933410191*t-.0501922295431356*a,y:.0296278156881593*r+.990434484573249*t-.0170738250293851*a,z:-.0092430581525912*r+.0150551448965779*t+.7518742899580008*a};return n!==void 0&&(i.alpha=n),i},jS=loe,soe=e=>{let{x:r,y:t,z:a,alpha:n}=e;r===void 0&&(r=0),t===void 0&&(t=0),a===void 0&&(a=0);let i={mode:"xyz65",x:.9554734527042182*r-.0230985368742614*t+.0632593086610217*a,y:-.0283697069632081*r+1.0099954580058226*t+.021041398966943*a,z:.0123140016883199*r-.0205076964334779*t+1.3303659366080753*a};return n!==void 0&&(i.alpha=n),i},$S=soe,uoe={mode:"xyz65",toMode:{rgb:af,xyz50:jS},fromMode:{rgb:tf,xyz50:$S},ranges:{x:[0,.95],y:[0,1],z:[0,1.088]},channels:["x","y","z","alpha"],parse:["xyz","xyz-d65"],serialize:"xyz-d65",interpolate:{x:yt,y:yt,z:yt,alpha:{use:yt,fixup:hi}}},KS=uoe,foe=({r:e,g:r,b:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n={mode:"yiq",y:.29889531*e+.58662247*r+.11448223*t,i:.59597799*e-.2741761*r-.32180189*t,q:.21147017*e-.52261711*r+.31114694*t};return a!==void 0&&(n.alpha=a),n},QS=foe,coe=({y:e,i:r,q:t,alpha:a})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let n={mode:"rgb",r:e+.95608445*r+.6208885*t,g:e-.27137664*r-.6486059*t,b:e-1.10561724*r+1.70250126*t};return a!==void 0&&(n.alpha=a),n},eC=coe,voe={mode:"yiq",toMode:{rgb:eC},fromMode:{rgb:QS},channels:["y","i","q","alpha"],parse:["--yiq"],serialize:"--yiq",ranges:{i:[-.595,.595],q:[-.522,.522]},interpolate:{y:yt,i:yt,q:yt,alpha:{use:yt,fixup:hi}}},rC=voe,hoe=(e,r)=>Math.round(e*(r=Math.pow(10,r)))/r,doe=(e=4)=>r=>typeof r=="number"?hoe(r,e):r,tC=doe,w2=tC(2),T2=e=>Math.max(0,Math.min(1,e||0)),z0=e=>Math.round(T2(e)*255),q4=$a("rgb"),poe=$a("hsl"),F4=e=>{if(e===void 0)return;let r=z0(e.r),t=z0(e.g),a=z0(e.b);return"#"+(1<<24|r<<16|t<<8|a).toString(16).slice(1)},aC=e=>{if(e===void 0)return;let r=z0(e.alpha!==void 0?e.alpha:1);return F4(e)+(256|r).toString(16).slice(1)},nC=e=>{if(e===void 0)return;let r=z0(e.r),t=z0(e.g),a=z0(e.b);return e.alpha===void 0||e.alpha===1?`rgb(${r}, ${t}, ${a})`:`rgba(${r}, ${t}, ${a}, ${w2(T2(e.alpha))})`},iC=e=>{if(e===void 0)return;let r=w2(e.h||0),t=w2(T2(e.s)*100)+"%",a=w2(T2(e.l)*100)+"%";return e.alpha===void 0||e.alpha===1?`hsl(${r}, ${t}, ${a})`:`hsla(${r}, ${t}, ${a}, ${w2(T2(e.alpha))})`},moe=e=>{let r=Rl(e);if(!r)return;let t=Wi(r.mode);if(!t.serialize||typeof t.serialize=="string"){let a=`color(${t.serialize||`--${r.mode}`} `;return t.channels.forEach((n,i)=>{n!=="alpha"&&(a+=(i?" ":"")+(r[n]!==void 0?r[n]:"none"))}),r.alpha!==void 0&&r.alpha<1&&(a+=` / ${r.alpha}`),a+")"}if(typeof t.serialize=="function")return t.serialize(r)},yoe=e=>F4(q4(e)),goe=e=>aC(q4(e)),boe=e=>nC(q4(e)),xoe=e=>iC(poe(e)),_oe={normal:(e,r)=>r,multiply:(e,r)=>e*r,screen:(e,r)=>e+r-e*r,"hard-light":(e,r)=>r<.5?e*2*r:2*r*(1-e)-1,overlay:(e,r)=>e<.5?r*2*e:2*e*(1-r)-1,darken:(e,r)=>Math.min(e,r),lighten:(e,r)=>Math.max(e,r),"color-dodge":(e,r)=>e===0?0:r===1?1:Math.min(1,e/(1-r)),"color-burn":(e,r)=>e===1?1:r===0?0:1-Math.min(1,(1-e)/r),"soft-light":(e,r)=>r<.5?e-(1-2*r)*e*(1-e):e+(2*r-1)*((e<.25?((16*e-12)*e+4)*e:Math.sqrt(e))-e),difference:(e,r)=>Math.abs(e-r),exclusion:(e,r)=>e+r-2*e*r},woe=(e,r="normal",t="rgb")=>{let a=typeof r=="function"?r:_oe[r],n=$a(t),i=Wi(t).channels;return e.map(l=>{let s=n(l);return s.alpha===void 0&&(s.alpha=1),s}).reduce((l,s)=>{if(l===void 0)return s;let u=s.alpha+l.alpha*(1-s.alpha);return i.reduce((f,c)=>(c!=="alpha"&&(u===0?f[c]=0:(f[c]=s.alpha*(1-l.alpha)*s[c]+s.alpha*l.alpha*a(l[c],s[c])+(1-s.alpha)*l.alpha*l[c],f[c]=Math.max(0,Math.min(1,f[c]/u)))),f),{mode:t,alpha:u})})},Aoe=woe,Toe=([e,r])=>e+Math.random()*(r-e),Moe=e=>Object.keys(e).reduce((r,t)=>{let a=e[t];return r[t]=Array.isArray(a)?a:[a,a],r},{}),koe=(e="rgb",r={})=>{let t=Wi(e),a=Moe(r);return t.channels.reduce((n,i)=>((a.alpha||i!=="alpha")&&(n[i]=Toe(a[i]||t.ranges[i])),n),{mode:e})},Soe=koe,q2=(e,r="rgb",t=!1)=>{let a=r?Wi(r).channels:null,n=r?$a(r):Rl;return i=>{let o=n(i);if(!o)return;let l=(a||Wi(o.mode).channels).reduce((u,f)=>{let c=e(o[f],f,o,r);return c!==void 0&&!isNaN(c)&&(u[f]=c),u},{mode:o.mode});if(!t)return l;let s=Rl(i);return s&&s.mode!==l.mode?$a(s.mode)(l):l}},oC=(e,r,t)=>r!=="alpha"?(e||0)*(t.alpha!==void 0?t.alpha:1):e,lC=(e,r,t)=>r!=="alpha"&&t.alpha!==0?(e||0)/(t.alpha!==void 0?t.alpha:1):e,R4=(e=1,r=0)=>(t,a)=>a!=="alpha"?t*e+r:t,Coe=(e=1,r=1,t=0)=>(a,n)=>n!=="alpha"?e*Math.pow(a,r)+t:a,Doe=e=>{e[0]===void 0&&(e[0]=0),e[e.length-1]===void 0&&(e[e.length-1]=1);let r=1,t,a,n,i;for(;rr=>e<=0?1:e>=1?0:Math.pow(r,Math.log(.5)/Math.log(e)),sC=Eoe,yy=e=>typeof e=="function",R0=e=>e&&typeof e=="object",Bk=e=>typeof e=="number",uC=(e,r="rgb",t,a)=>{let n=Wi(r),i=$a(r),o=[],l=[],s={};e.forEach(v=>{Array.isArray(v)?(o.push(i(v[0])),l.push(v[1])):Bk(v)||yy(v)?s[l.length]=v:(o.push(i(v)),l.push(void 0))}),Loe(l);let u=n.channels.reduce((v,d)=>{let p;return R0(t)&&R0(t[d])&&t[d].fixup?p=t[d].fixup:R0(n.interpolate[d])&&n.interpolate[d].fixup?p=n.interpolate[d].fixup:p=m=>m,v[d]=p(o.map(m=>m[d])),v},{});if(a){let v=o.map((d,p)=>n.channels.reduce((m,y)=>(m[y]=u[y][p],m),{mode:r}));u=n.channels.reduce((d,p)=>(d[p]=v.map(m=>{let y=a(m[p],p,m,r);return isNaN(y)?void 0:y}),d),{})}let f=n.channels.reduce((v,d)=>{let p;return yy(t)?p=t:R0(t)&&yy(t[d])?p=t[d]:R0(t)&&R0(t[d])&&t[d].use?p=t[d].use:yy(n.interpolate[d])?p=n.interpolate[d]:R0(n.interpolate[d])&&(p=n.interpolate[d].use),v[d]=p(u[d]),v},{}),c=o.length-1;return v=>{if(v=Math.min(Math.max(0,v),1),v<=l[0])return o[0];if(v>l[c])return o[c];let d=0;for(;l[d]{let w=f[x](T);return w!==void 0&&(_[x]=w),_},{mode:r})}},qoe=(e,r="rgb",t)=>uC(e,r,t),fC=(e,r)=>(t,a="rgb",n)=>{let i=r?q2(r,a):void 0,o=uC(t,a,n,e);return i?l=>i(o(l)):o},Foe=fC(oC,lC),gy=(e,r)=>(e+r)%r,cC=(e,r,t,a,n)=>{let i=n*n,o=i*n;return((1-3*n+3*i-o)*e+(4-6*i+3*o)*r+(1+3*n+3*i-3*o)*t+o*a)/6},vC=e=>r=>{let t=e.length-1,a=r>=1?t-1:Math.max(0,Math.floor(r*t));return cC(a>0?e[a-1]:2*e[a]-e[a+1],e[a],e[a+1],ar=>{let t=e.length-1,a=Math.floor(r*t);return cC(e[gy(a-1,e.length)],e[gy(a,e.length)],e[gy(a+1,e.length)],e[gy(a+2,e.length)],(r-a/t)*t)},dC=e=>{let r,t=e.length-1,a=new Array(t),n=new Array(t),i=new Array(t);for(a[1]=1/4,n[1]=(6*e[1]-e[0])/4,r=2;r0&&(i[t-1]=n[t-1]),r=t-2;r>0;--r)i[r]=n[r]-a[r]*i[r+1];return i},Roe=e=>vC(dC(e)),Poe=e=>hC(dC(e)),Sv=Math.sign,u4=Math.min,zo=Math.abs,P4=e=>{let r=e.length-1,t=[],a=[],n=[];for(let i=0;i0?.5*(e[i+1]-e[i-1])*r:void 0),n.push(i>0?(Sv(t[i-1])+Sv(t[i]))*u4(zo(t[i-1]),zo(t[i]),.5*zo(a[i])):void 0);return[t,a,n]},N4=(e,r,t)=>{let a=e.length-1,n=a*a;return i=>{let o;i>=1?o=a-1:o=Math.max(0,Math.floor(i*a));let l=i-o/a,s=l*l,u=s*l;return(r[o]+r[o+1]-2*t[o])*n*u+(3*t[o]-2*r[o]-r[o+1])*a*s+r[o]*l+e[o]}},Noe=e=>{if(e.length<3)return yt(e);let r=e.length-1,[t,,a]=P4(e);return a[0]=t[0],a[r]=t[r-1],N4(e,a,t)},zoe=e=>{if(e.length<3)return yt(e);let r=e.length-1,[t,a,n]=P4(e);return a[0]=(e[1]*2-e[0]*1.5-e[2]*.5)*r,a[r]=(e[r]*1.5-e[r-1]*2+e[r-2]*.5)*r,n[0]=a[0]*t[0]<=0?0:zo(a[0])>2*zo(t[0])?2*t[0]:a[0],n[r]=a[r]*t[r-1]<=0?0:zo(a[r])>2*zo(t[r-1])?2*t[r-1]:a[r],N4(e,n,t)},Boe=e=>{let r=e.length-1,[t,a,n]=P4(e);a[0]=.5*(e[1]-e[r])*r,a[r]=.5*(e[0]-e[r-1])*r;let i=(e[0]-e[r])*r,o=i;return n[0]=(Sv(i)+Sv(t[0]))*u4(zo(i),zo(t[0]),.5*zo(a[0])),n[r]=(Sv(t[r-1])+Sv(o))*u4(zo(t[r-1]),zo(o),.5*zo(a[r])),N4(e,n,t)},Ioe=(e=1)=>e===1?r=>r:r=>Math.pow(r,e),pC=Ioe,Ooe=(e=2,r=1)=>{let t=pC(r);if(e<2)return e<1?[]:[t(.5)];let a=[];for(let n=0;n{let r={mode:e.mode,r:Math.max(0,Math.min(e.r!==void 0?e.r:0,1)),g:Math.max(0,Math.min(e.g!==void 0?e.g:0,1)),b:Math.max(0,Math.min(e.b!==void 0?e.b:0,1))};return e.alpha!==void 0&&(r.alpha=e.alpha),r},gC=e=>yC(mC(e)),bC=e=>e!==void 0&&(e.r===void 0||e.r>=0&&e.r<=1)&&(e.g===void 0||e.g>=0&&e.g<=1)&&(e.b===void 0||e.b>=0&&e.b<=1);function z4(e){return bC(mC(e))}function By(e="rgb"){let{gamut:r}=Wi(e);if(!r)return a=>!0;let t=$a(typeof r=="string"?r:e);return a=>bC(t(a))}function Uoe(e){return e=Rl(e),e===void 0||z4(e)?e:$a(e.mode)(gC(e))}function B4(e="rgb"){let{gamut:r}=Wi(e);if(!r)return i=>Rl(i);let t=typeof r=="string"?r:e,a=$a(t),n=By(t);return i=>{let o=Rl(i);if(!o)return;let l=a(o);if(n(l))return o;let s=yC(l);return o.mode===s.mode?s:$a(o.mode)(s)}}function Goe(e,r="lch",t="rgb"){e=Rl(e);let a=t==="rgb"?z4:By(t),n=t==="rgb"?gC:B4(t);if(e===void 0||a(e))return e;let i=$a(e.mode);e=$a(r)(e);let o=Va(ka({},e),{c:0});if(!a(o))return i(n(o));let l=0,s=e.c!==void 0?e.c:0,u=Wi(r).ranges.c,f=(u[1]-u[0])/Math.pow(2,13),c=o.c;for(;s-l>f;)o.c=l+(s-l)*.5,a(o)?(c=o.c,l=o.c):s=o.c;return i(a(o)?o:Va(ka({},o),{c}))}function Yoe(e="rgb",r="oklch",t=Ev("oklch"),a=.02){let n=$a(e),i=Wi(e);if(!i.gamut)return f=>n(f);let o=By(e),l=B4(e),s=$a(r),{ranges:u}=Wi(r);if(!u.l||!u.c)throw new Error("LCH-like space expected");return f=>{if(f=Rl(f),f===void 0)return;let c=ka({},s(f));if(c.l===void 0&&(c.l=0),c.c===void 0&&(c.c=0),c.l>=u.l[1]){let y=Va(ka({},i.white),{mode:e});return f.alpha!==void 0&&(y.alpha=f.alpha),y}if(c.l<=u.l[0]){let y=Va(ka({},i.black),{mode:e});return f.alpha!==void 0&&(y.alpha=f.alpha),y}if(o(c))return n(c);let v=0,d=c.c,p=(u.c[1]-u.c[0])/4e3,m=l(c);for(;d-v>p;)c.c=(v+d)*.5,m=l(c),o(c)||t&&a>0&&t(c,m)<=a?v=c.c:d=c.c;return n(o(c)?c:m)}}var Voe=(e,r=Ev(),t=a=>a)=>{let a=e.map((n,i)=>({color:t(n),i}));return(n,i=1,o=1/0)=>(isFinite(i)&&(i=Math.max(1,Math.min(i,a.length-1))),a.forEach(l=>{l.d=r(n,l.color)}),a.sort((l,s)=>l.d-s.d).slice(0,i).filter(l=>l.de[l.i]))},Xoe=Voe,I4=e=>Math.max(e,0),O4=e=>Math.max(Math.min(e,1),0),Woe=(e,r,t)=>e===void 0||r===void 0?void 0:e+t*(r-e),Zoe=e=>{let r=1-O4(e);return[.393+.607*r,.769-.769*r,.189-.189*r,0,.349-.349*r,.686+.314*r,.168-.168*r,0,.272-.272*r,.534-.534*r,.131+.869*r,0,0,0,0,1]},Joe=e=>{let r=I4(e);return[.213+.787*r,.715-.715*r,.072-.072*r,0,.213-.213*r,.715+.285*r,.072-.072*r,0,.213-.213*r,.715-.715*r,.072+.928*r,0,0,0,0,1]},joe=e=>{let r=1-O4(e);return[.2126+.7874*r,.7152-.7152*r,.0722-.0722*r,0,.2126-.2126*r,.7152+.2848*r,.0722-.0722*r,0,.2126-.2126*r,.7152-.7152*r,.0722+.9278*r,0,0,0,0,1]},$oe=e=>{let r=Math.PI*e/180,t=Math.cos(r),a=Math.sin(r);return[.213+t*.787-a*.213,.715-t*.715-a*.715,.072-t*.072+a*.928,0,.213-t*.213+a*.143,.715+t*.285+a*.14,.072-t*.072-a*.283,0,.213-t*.213-a*.787,.715-t*.715+a*.715,.072+t*.928+a*.072,0,0,0,0,1]},Iy=(e,r,t=!1)=>{let a=$a(r),n=Wi(r).channels;return i=>{let o=a(i);if(!o)return;let l={mode:r},s,u=n.length;for(let c=0;c{let t=I4(e);return q2(R4(t),r,!0)},Qoe=(e=1,r="rgb")=>{let t=I4(e);return q2(R4(t,(1-t)/2),r,!0)},ele=(e=1,r="rgb")=>Iy(Zoe(e),r,!0),rle=(e=1,r="rgb")=>Iy(Joe(e),r,!0),tle=(e=1,r="rgb")=>Iy(joe(e),r,!0),ale=(e=1,r="rgb")=>{let t=O4(e);return q2((a,n)=>n==="alpha"?a:Woe(t,1-t,a),r,!0)},nle=(e=0,r="rgb")=>Iy($oe(e),r,!0),ile=$a("rgb"),ole=[[1,0,-0,0,1,0,-0,-0,1],[.856167,.182038,-.038205,.029342,.955115,.015544,-.00288,-.001563,1.004443],[.734766,.334872,-.069637,.05184,.919198,.028963,-.004928,-.004209,1.009137],[.630323,.465641,-.095964,.069181,.890046,.040773,-.006308,-.007724,1.014032],[.539009,.579343,-.118352,.082546,.866121,.051332,-.007136,-.011959,1.019095],[.458064,.679578,-.137642,.092785,.846313,.060902,-.007494,-.016807,1.024301],[.38545,.769005,-.154455,.100526,.829802,.069673,-.007442,-.02219,1.029632],[.319627,.849633,-.169261,.106241,.815969,.07779,-.007025,-.028051,1.035076],[.259411,.923008,-.18242,.110296,.80434,.085364,-.006276,-.034346,1.040622],[.203876,.990338,-.194214,.112975,.794542,.092483,-.005222,-.041043,1.046265],[.152286,1.052583,-.204868,.114503,.786281,.099216,-.003882,-.048116,1.051998]],lle=[[1,0,-0,0,1,0,-0,-0,1],[.866435,.177704,-.044139,.049567,.939063,.01137,-.003453,.007233,.99622],[.760729,.319078,-.079807,.090568,.889315,.020117,-.006027,.013325,.992702],[.675425,.43385,-.109275,.125303,.847755,.026942,-.00795,.018572,.989378],[.605511,.52856,-.134071,.155318,.812366,.032316,-.009376,.023176,.9862],[.547494,.607765,-.155259,.181692,.781742,.036566,-.01041,.027275,.983136],[.498864,.674741,-.173604,.205199,.754872,.039929,-.011131,.030969,.980162],[.457771,.731899,-.18967,.226409,.731012,.042579,-.011595,.034333,.977261],[.422823,.781057,-.203881,.245752,.709602,.044646,-.011843,.037423,.974421],[.392952,.82361,-.216562,.263559,.69021,.046232,-.01191,.040281,.97163],[.367322,.860646,-.227968,.280085,.672501,.047413,-.01182,.04294,.968881]],sle=[[1,0,-0,0,1,0,-0,-0,1],[.92667,.092514,-.019184,.021191,.964503,.014306,.008437,.054813,.93675],[.89572,.13333,-.02905,.029997,.9454,.024603,.013027,.104707,.882266],[.905871,.127791,-.033662,.026856,.941251,.031893,.01341,.148296,.838294],[.948035,.08949,-.037526,.014364,.946792,.038844,.010853,.193991,.795156],[1.017277,.027029,-.044306,-.006113,.958479,.047634,.006379,.248708,.744913],[1.104996,-.046633,-.058363,-.032137,.971635,.060503,.001336,.317922,.680742],[1.193214,-.109812,-.083402,-.058496,.97941,.079086,-.002346,.403492,.598854],[1.257728,-.139648,-.118081,-.078003,.975409,.102594,-.003316,.501214,.502102],[1.278864,-.125333,-.153531,-.084748,.957674,.127074,-989e-6,.601151,.399838],[1.255528,-.076749,-.178779,-.078411,.930809,.147602,.004733,.691367,.3039]],H4=(e,r)=>{let t=Math.max(0,Math.min(1,r)),a=Math.round(t/.1),n=Math.round(t%.1),i=e[a];if(n>0&&aP0(i[s],o[s],n))}return o=>{let l=Rl(o);if(l===void 0)return;let{r:s,g:u,b:f}=ile(l),c={mode:"rgb",r:i[0]*s+i[1]*u+i[2]*f,g:i[3]*s+i[4]*u+i[5]*f,b:i[6]*s+i[7]*u+i[8]*f};return l.alpha!==void 0&&(c.alpha=l.alpha),$a(l.mode)(c)}},ule=(e=1)=>H4(ole,e),fle=(e=1)=>H4(lle,e),cle=(e=1)=>H4(sle,e),vle=e=>e*e*(3-2*e),hle=e=>.5-Math.sin(Math.asin(1-2*e)/3),dle=e=>e*e*e*(e*(e*6-15)+10),ple=dle,mle=e=>(1-Math.cos(e*Math.PI))/2,yle=mle;function f4(e){let r=$a("lrgb")(e);return .2126*r.r+.7152*r.g+.0722*r.b}function gle(e,r){let t=f4(e),a=f4(r);return(Math.max(t,a)+.05)/(Math.min(t,a)+.05)}var ble=Fa(Kk),xle=Fa(aS),_le=Fa(sS),wle=Fa(uS),Ale=Fa(vS),Tle=Fa(m4),Mle=Fa(b4),kle=Fa(xS),Sle=Fa(AS),Cle=Fa(TS),Dle=Fa(MS),Lle=Fa(Ny),Ele=Fa(SS),qle=Fa(zy),Fle=Fa(DS),Rle=Fa(qS),Ple=Fa(FS),Nle=Fa(RS),zle=Fa(NS),Ble=Fa(zS),Ile=Fa(IS),Ole=Fa(HS),Hle=Fa(US),Ule=Fa(GS),Gle=Fa(YS),Yle=Fa(B0),Vle=Fa(ZS),Xle=Fa(JS),Wle=Fa(KS),Zle=Fa(rC)});var U4={};ja(U4,{default:()=>jle});var Jle,jle,G4=Ja(()=>{"use strict";Jle={format:{valType:"enumerated",values:["png","jpeg","webp","svg","full-json"],dflt:"png",description:"Sets the format of exported image."},width:{valType:"number",min:1,description:["Sets the exported image width.","Defaults to the value found in `layout.width`","If set to *null*, the exported image width will match the current graph width."].join(" ")},height:{valType:"number",min:1,description:["Sets the exported image height.","Defaults to the value found in `layout.height`","If set to *null*, the exported image height will match the current graph height."].join(" ")},scale:{valType:"number",min:0,dflt:1,description:["Sets a scaling for the generated image.","If set, all features of a graphs (e.g. text, line width)","are scaled, unlike simply setting","a bigger *width* and *height*."].join(" ")},setBackground:{valType:"any",dflt:!1,description:["Sets the image background mode.","By default, the image background is determined by `layout.paper_bgcolor`,","the *transparent* mode.","One might consider setting `setBackground` to *opaque*","when exporting a *jpeg* image as JPEGs do not support opacity."].join(" ")},imageDataOnly:{valType:"boolean",dflt:!1,description:["Determines whether or not the return value is prefixed by","the image format's corresponding 'data:image;' spec."].join(" ")}},jle=Jle});var nf=B((zLe,kC)=>{"use strict";var{format:$le,width:Kle,height:Qle,scale:ese}=(G4(),vr(U4)).default,wC=ese,{dflt:NLe}=wC,rse=XM(wC,["dflt"]),AC={staticPlot:{valType:"boolean",dflt:!1},typesetMath:{valType:"boolean",dflt:!0},plotlyServerURL:{valType:"string",dflt:"https://cloud.plotly.com/newchart"},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","map"],extras:[!0,!1],dflt:"gl3d+geo+map"},doubleClick:{valType:"enumerated",values:[!1,"reset","autosize","reset+autosize"],dflt:"reset+autosize"},doubleClickDelay:{valType:"number",dflt:500,min:0},showAxisDragHandles:{valType:"boolean",dflt:!0},showAxisRangeEntryBoxes:{valType:"boolean",dflt:!0},showTips:{valType:"boolean",dflt:!0},displayNotifier:{valType:"boolean",dflt:!0},displayModeBar:{valType:"enumerated",values:["hover",!0,!1],dflt:"hover"},showSendToCloud:{valType:"boolean",dflt:!0},modeBarButtonsToRemove:{valType:"any",dflt:[]},modeBarButtonsToAdd:{valType:"any",dflt:[]},modeBarButtons:{valType:"any",dflt:!1},toImageButtonOptions:{format:$le,filename:{valType:"string"},width:Kle,height:Qle,scale:rse},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/un/"},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},locale:{valType:"string",dflt:"en-US"},locales:{valType:"any",dflt:{}}},TC={};function MC(e,r){for(let t in e){let a=e[t];typeof a!="object"||a===null||(a.valType?"dflt"in a&&(r[t]=a.dflt):(r[t]||(r[t]={}),MC(a,r[t])))}}MC(AC,TC);kC.exports={configAttributes:AC,dfltConfig:TC}});var V4=B((ILe,SC)=>{"use strict";var Y4=la(),tse=da(),F2=[];SC.exports=function(e,r,t){var l;if(((l=t==null?void 0:t._context)==null?void 0:l.displayNotifier)===!1||F2.indexOf(e)!==-1)return;F2.push(e);var a=1e3;tse(r)?a=r:r==="long"&&(a=3e3);var n=Y4.select("body").selectAll(".plotly-notifier").data([0]);n.enter().append("div").classed("plotly-notifier",!0);var i=n.selectAll(".notifier-note").data(F2);function o(s){s.duration(700).style("opacity",0).each("end",function(u){var f=F2.indexOf(u);f!==-1&&F2.splice(f,1),Y4.select(this).remove()})}i.enter().append("div").classed("notifier-note",!0).style("opacity",0).each(function(s){var u=Y4.select(this);u.append("button").classed("notifier-close",!0).html("×").on("click",function(){u.transition().call(o)});for(var f=u.append("p"),c=s.split(//g),v=0;v{"use strict";var Pv=nf().dfltConfig,X4=V4(),W4=CC.exports={};W4.log=function(){var e;if(Pv.logging>1){var r=["LOG:"];for(e=0;e1){var t=[];for(e=0;e"),"long")}};W4.warn=function(){var e;if(Pv.logging>0){var r=["WARN:"];for(e=0;e0){var t=[];for(e=0;e"),"stick")}};W4.error=function(){var e;if(Pv.logging>0){var r=["ERROR:"];for(e=0;e0){var t=[];for(e=0;e"),"stick")}}});var ys=B(H0=>{"use strict";H0.defaults=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"];H0.defaultLine="#444";H0.lightLine="#eee";H0.background="#fff";H0.borderLine="#BEC8D9";H0.lightFraction=1e3/11});var Kt=B((ULe,zC)=>{"use strict";var{converter:DC,formatHex:ase,formatRgb:nse,wcagContrast:ise,wcagLuminance:ose}=_C(),{isArrayOrTypedArray:LC}=so(),{warn:lse}=of(),{background:P2,defaultLine:j4,defaults:sse,lightLine:use}=ys(),EC=DC("rgb"),fse=DC("hsl"),qC=e=>{if(typeof e!="string")return;let r=e.trim().toLowerCase();if(!/^[0-9a-f]+$/.test(r))try{return EC(r)}catch(t){return}},Zi=e=>e>0?e>1?1:e:0,cse={mode:"rgb",r:0,g:0,b:0,alpha:1},Z4=e=>Math.round(e*255e6)/255e6,FC=e=>Va(ka({},e),{r:Z4(e.r),g:Z4(e.g),b:Z4(e.b)}),Bo=e=>nse(FC(e)),vse=e=>ase(FC(e)),hse=e=>{var r,t,a,n;return typeof e=="string"?`"${e}"`:LC(e)?`${(t=(r=e.constructor)==null?void 0:r.name)!=null?t:"Array"}(${e.length})`:typeof e=="object"?(n=(a=e.constructor)==null?void 0:a.name)!=null?n:"Object":`${typeof e} ${e}`},An=(e,r)=>{var a;let t=qC(e);return t?((a=t.alpha)!=null||(t.alpha=1),t):(!r&&e!=null&&lse(`Invalid color specifier: ${hse(e)}. Defaulting to "#000"`),cse)},R2=e=>Bo(Va(ka({},An(e)),{alpha:1})),dse=e=>e?An(e).alpha:0,RC=e=>LC(e)&&e.length>2&&Number.isFinite(e[0])&&Number.isFinite(e[1])&&Number.isFinite(e[2]),pse=e=>{let[r,t,a,n]=e,i=Math.max(r,t,a)>1?1/255:1,o=n!=null?n:1;return{mode:"rgb",r:r*i,g:t*i,b:a*i,alpha:o>1?o/255:o}},mse=(e,r)=>{let t=RC(e)?pse(e):An(e,!0),a=[Zi(t.r),Zi(t.g),Zi(t.b),Zi(t.alpha)];return r==="uint8"||r==="uint8_clamped"?Uint8Array.from(a,n=>Math.round(n*255)):r==="float32"?Float32Array.from(a):r==="float64"?Float64Array.from(a):a},yse=(e,r)=>Bo(Va(ka({},An(e)),{alpha:Zi(r)})),PC=(e,r)=>{let t=An(e),a=t.alpha;if(a===1)return Bo(t);let n=An(r||P2),i=n.alpha,o=(l,s)=>(i===1?s:1-i+s*i)*(1-a)+l*a;return Bo({mode:"rgb",r:o(t.r,n.r),g:o(t.g,n.g),b:o(t.b,n.b)})},gse=(e,r,t)=>{let a=An(e),n=An(r),i=(o,l)=>t*o+(1-t)*l;return Bo({mode:"rgb",r:i(a.r,n.r),g:i(a.g,n.g),b:i(a.b,n.b)})},J4=(e,r)=>{let t=An(e),a=fse(t)||{mode:"hsl",h:0,s:0,l:0};return Bo(EC(Va(ka({},a),{l:Zi((a.l*100+r)/100),alpha:t.alpha})))},Oy=(e,r)=>ise(An(e),An(r)),NC=e=>Oy(e,P2)>Oy(e,j4),bse=Bo(An(P2)),xse=Bo(An(j4)),_se=(e,r,t)=>(An(e).alpha!==1&&(e=PC(e,P2)),NC(e)?r?J4(e,r):bse:t?J4(e,-t):xse),wse=(e,r)=>{e.style({stroke:R2(r),"stroke-opacity":An(r).alpha})},Ase=(e,r)=>{e.style({fill:R2(r),"fill-opacity":An(r).alpha})},Tse=(e,r)=>!!(e&&r&&R2(e)===R2(r)),Mse=e=>qC(e)!==void 0,kse=(e,r)=>{r=r===0?0:r||10;let t=An(e),a=r/100;return Bo(Va(ka({},t),{r:Zi(t.r+a),g:Zi(t.g+a),b:Zi(t.b+a)}))},Sse=(e,r,t)=>{let a=An(e),n=An(r),i=t/100,o=n.alpha-a.alpha,l=2*i-1,s=((l*o===-1?l:(l+o)/(1+l*o))+1)/2,u=1-s,f=(c,v)=>u*c+s*v;return Bo({mode:"rgb",r:f(a.r,n.r),g:f(a.g,n.g),b:f(a.b,n.b),alpha:a.alpha*(1-i)+n.alpha*i})},Cse=(e,r=["#000","#fff"])=>{let t,a=-1/0;for(let n of r){let i=Oy(e,n);i>a&&(a=i,t=Bo(An(n)))}return t},Dse=e=>Bo(An(e)),Lse=e=>vse(An(e)).toUpperCase(),Ese=e=>{let r=An(e);return[Zi(r.r)*255,Zi(r.g)*255,Zi(r.b)*255,Zi(r.alpha)]},qse=([e,r,t,a])=>Bo({mode:"rgb",r:e/255,g:r/255,b:t/255,alpha:a}),Fse=e=>{let r=An(e);return ose({mode:"rgb",r:Zi(r.r),g:Zi(r.g),b:Zi(r.b)})};zC.exports={addOpacity:yse,adjustLightness:J4,background:P2,brighten:kse,combine:PC,contrast:_se,defaultLine:j4,defaults:sse,equals:Tse,fill:Ase,hexString:Lse,interpolate:gse,isChannelArray:RC,isDark:NC,isValid:Mse,lightLine:use,luminosity:Fse,mix:Sse,mostReadable:Cse,normalize:mse,opacity:dse,parse:An,rgb:R2,rgbaArray:Ese,rgbaArrayToString:qse,rgbaString:Dse,stroke:wse,wcagContrast:Oy}});var U0=B((YLe,OC)=>{"use strict";var Rse=Kt(),Hy={Greys:[[0,"rgb(0,0,0)"],[1,"rgb(255,255,255)"]],YlGnBu:[[0,"rgb(8,29,88)"],[.125,"rgb(37,52,148)"],[.25,"rgb(34,94,168)"],[.375,"rgb(29,145,192)"],[.5,"rgb(65,182,196)"],[.625,"rgb(127,205,187)"],[.75,"rgb(199,233,180)"],[.875,"rgb(237,248,217)"],[1,"rgb(255,255,217)"]],Greens:[[0,"rgb(0,68,27)"],[.125,"rgb(0,109,44)"],[.25,"rgb(35,139,69)"],[.375,"rgb(65,171,93)"],[.5,"rgb(116,196,118)"],[.625,"rgb(161,217,155)"],[.75,"rgb(199,233,192)"],[.875,"rgb(229,245,224)"],[1,"rgb(247,252,245)"]],YlOrRd:[[0,"rgb(128,0,38)"],[.125,"rgb(189,0,38)"],[.25,"rgb(227,26,28)"],[.375,"rgb(252,78,42)"],[.5,"rgb(253,141,60)"],[.625,"rgb(254,178,76)"],[.75,"rgb(254,217,118)"],[.875,"rgb(255,237,160)"],[1,"rgb(255,255,204)"]],Bluered:[[0,"rgb(0,0,255)"],[1,"rgb(255,0,0)"]],RdBu:[[0,"rgb(5,10,172)"],[.35,"rgb(106,137,247)"],[.5,"rgb(190,190,190)"],[.6,"rgb(220,170,132)"],[.7,"rgb(230,145,90)"],[1,"rgb(178,10,28)"]],Reds:[[0,"rgb(220,220,220)"],[.2,"rgb(245,195,157)"],[.4,"rgb(245,160,105)"],[1,"rgb(178,10,28)"]],Blues:[[0,"rgb(5,10,172)"],[.35,"rgb(40,60,190)"],[.5,"rgb(70,100,245)"],[.6,"rgb(90,120,245)"],[.7,"rgb(106,137,247)"],[1,"rgb(220,220,220)"]],Picnic:[[0,"rgb(0,0,255)"],[.1,"rgb(51,153,255)"],[.2,"rgb(102,204,255)"],[.3,"rgb(153,204,255)"],[.4,"rgb(204,204,255)"],[.5,"rgb(255,255,255)"],[.6,"rgb(255,204,255)"],[.7,"rgb(255,153,255)"],[.8,"rgb(255,102,204)"],[.9,"rgb(255,102,102)"],[1,"rgb(255,0,0)"]],Rainbow:[[0,"rgb(150,0,90)"],[.125,"rgb(0,0,200)"],[.25,"rgb(0,25,255)"],[.375,"rgb(0,152,255)"],[.5,"rgb(44,255,150)"],[.625,"rgb(151,255,0)"],[.75,"rgb(255,234,0)"],[.875,"rgb(255,111,0)"],[1,"rgb(255,0,0)"]],Portland:[[0,"rgb(12,51,131)"],[.25,"rgb(10,136,186)"],[.5,"rgb(242,211,56)"],[.75,"rgb(242,143,56)"],[1,"rgb(217,30,30)"]],Jet:[[0,"rgb(0,0,131)"],[.125,"rgb(0,60,170)"],[.375,"rgb(5,255,255)"],[.625,"rgb(255,255,0)"],[.875,"rgb(250,0,0)"],[1,"rgb(128,0,0)"]],Hot:[[0,"rgb(0,0,0)"],[.3,"rgb(230,0,0)"],[.6,"rgb(255,210,0)"],[1,"rgb(255,255,255)"]],Blackbody:[[0,"rgb(0,0,0)"],[.2,"rgb(230,0,0)"],[.4,"rgb(230,210,0)"],[.7,"rgb(255,255,255)"],[1,"rgb(160,200,255)"]],Earth:[[0,"rgb(0,0,130)"],[.1,"rgb(0,180,180)"],[.2,"rgb(40,210,40)"],[.4,"rgb(230,230,50)"],[.6,"rgb(120,70,20)"],[1,"rgb(255,255,255)"]],Electric:[[0,"rgb(0,0,0)"],[.15,"rgb(30,0,100)"],[.4,"rgb(120,0,100)"],[.6,"rgb(160,90,0)"],[.8,"rgb(230,200,0)"],[1,"rgb(255,250,220)"]],Viridis:[[0,"#440154"],[.06274509803921569,"#48186a"],[.12549019607843137,"#472d7b"],[.18823529411764706,"#424086"],[.25098039215686274,"#3b528b"],[.3137254901960784,"#33638d"],[.3764705882352941,"#2c728e"],[.4392156862745098,"#26828e"],[.5019607843137255,"#21918c"],[.5647058823529412,"#1fa088"],[.6274509803921569,"#28ae80"],[.6901960784313725,"#3fbc73"],[.7529411764705882,"#5ec962"],[.8156862745098039,"#84d44b"],[.8784313725490196,"#addc30"],[.9411764705882353,"#d8e219"],[1,"#fde725"]],Cividis:[[0,"rgb(0,32,76)"],[.058824,"rgb(0,42,102)"],[.117647,"rgb(0,52,110)"],[.176471,"rgb(39,63,108)"],[.235294,"rgb(60,74,107)"],[.294118,"rgb(76,85,107)"],[.352941,"rgb(91,95,109)"],[.411765,"rgb(104,106,112)"],[.470588,"rgb(117,117,117)"],[.529412,"rgb(131,129,120)"],[.588235,"rgb(146,140,120)"],[.647059,"rgb(161,152,118)"],[.705882,"rgb(176,165,114)"],[.764706,"rgb(192,177,109)"],[.823529,"rgb(209,191,102)"],[.882353,"rgb(225,204,92)"],[.941176,"rgb(243,219,79)"],[1,"rgb(255,233,69)"]]},BC=Hy.RdBu;function Pse(e,r){if(r||(r=BC),!e)return r;function t(){try{e=Hy[e]||JSON.parse(e)}catch(a){e=r}}return typeof e=="string"&&(t(),typeof e=="string"&&t()),IC(e)?e:r}function IC(e){var r=0;if(!Array.isArray(e)||e.length<2||!e[0]||!e[e.length-1]||+e[0][0]!=0||+e[e.length-1][0]!=1)return!1;for(var t=0;tIse,HIDE_PLACEHOLDER:()=>Bse,SHOW_PLACEHOLDER:()=>zse});var zse,Bse,Ise,zv=Ja(()=>{"use strict";zse=100,Bse=1e3,Ise=.2});var N2={};ja(N2,{counter:()=>G0});function G0(e,r="",t,a){let n=r+(t?"":"$"),i=a===!1?"":"^";return e==="xy"?new RegExp(i+"x"+$4+"y"+$4+n):new RegExp(i+e+$4+n)}var $4,Bv=Ja(()=>{"use strict";$4="([2-9]|[1-9][0-9]+)?"});var GC=B(wo=>{"use strict";var K4=da(),HC=Fn().extendFlat,Ose=Fl(),Hse=U0(),Q4=Kt(),Use=(zv(),vr(Nv)).DESELECTDIM,Iv=cy(),UC=(Bv(),vr(N2)).counter,Gse=(Mv(),vr(Tv)).modHalf,Pl=so().isArrayOrTypedArray,lf=so().isTypedArraySpec,sf=so().decodeTypedArraySpec;wo.valObjectMeta={data_array:{coerceFunction:function(e,r,t){r.set(Pl(e)?e:lf(e)?sf(e):t)}},enumerated:{coerceFunction:function(e,r,t,a){a.coerceNumber&&(e=+e),a.values.indexOf(e)===-1?r.set(t):r.set(e)},validateFunction:function(e,r){r.coerceNumber&&(e=+e);for(var t=r.values,a=0;ai===!0||i===!1;n(e)||a.arrayOk&&Array.isArray(e)&&e.length>0&&e.every(n)?r.set(e):r.set(t)}},number:{coerceFunction:function(e,r,t,a){lf(e)&&(e=sf(e)),!K4(e)||a.min!==void 0&&ea.max?r.set(t):r.set(+e)}},integer:{coerceFunction:function(e,r,t,a){if((a.extras||[]).indexOf(e)!==-1){r.set(e);return}lf(e)&&(e=sf(e)),e%1||!K4(e)||a.min!==void 0&&ea.max?r.set(t):r.set(+e)}},string:{coerceFunction:function(e,r,t,a){if(typeof e!="string"){var n=typeof e=="number";a.strict===!0||!n?r.set(t):r.set(String(e))}else a.noBlank&&!e?r.set(t):r.set(e)}},color:{coerceFunction:function(e,r,t){lf(e)&&(e=sf(e)),Q4.isValid(e)?r.set(e):r.set(t)}},colorlist:{coerceFunction:function(e,r,t){!Array.isArray(e)||!e.length?r.set(t):e.every(a=>Q4.isValid(a))?r.set(e):r.set(t)}},colorscale:{coerceFunction:function(e,r,t){r.set(Hse.get(e,t))}},angle:{coerceFunction:function(e,r,t){lf(e)&&(e=sf(e)),e==="auto"?r.set("auto"):K4(e)?r.set(Gse(+e,360)):r.set(t)}},subplotid:{coerceFunction:function(e,r,t,a){var n=a.regex||UC(t);let i=o=>typeof o=="string"&&n.test(o);i(e)||a.arrayOk&&Pl(e)&&e.length>0&&e.every(i)?r.set(e):r.set(t)},validateFunction:function(e,r){var t=r.dflt;return e===t?!0:typeof e!="string"?!1:!!UC(t).test(e)}},flaglist:{coerceFunction:function(e,r,t,a){if((a.extras||[]).indexOf(e)!==-1){r.set(e);return}if(typeof e!="string"){r.set(t);return}for(var n=e.split("+"),i=0;i{"use strict";YC.exports=function(){}});var e6=B((WLe,VC)=>{"use strict";VC.exports=function(r,t){if(t instanceof RegExp){for(var a=t.toString(),n=0;n{XC.exports=Yse;function Yse(){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}});var JC=B((JLe,ZC)=>{ZC.exports=Vse;function Vse(e){var r=new Float32Array(16);return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4],r[5]=e[5],r[6]=e[6],r[7]=e[7],r[8]=e[8],r[9]=e[9],r[10]=e[10],r[11]=e[11],r[12]=e[12],r[13]=e[13],r[14]=e[14],r[15]=e[15],r}});var $C=B((jLe,jC)=>{jC.exports=Xse;function Xse(e,r){return e[0]=r[0],e[1]=r[1],e[2]=r[2],e[3]=r[3],e[4]=r[4],e[5]=r[5],e[6]=r[6],e[7]=r[7],e[8]=r[8],e[9]=r[9],e[10]=r[10],e[11]=r[11],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15],e}});var r6=B(($Le,KC)=>{KC.exports=Wse;function Wse(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}});var eD=B((KLe,QC)=>{QC.exports=Zse;function Zse(e,r){if(e===r){var t=r[1],a=r[2],n=r[3],i=r[6],o=r[7],l=r[11];e[1]=r[4],e[2]=r[8],e[3]=r[12],e[4]=t,e[6]=r[9],e[7]=r[13],e[8]=a,e[9]=i,e[11]=r[14],e[12]=n,e[13]=o,e[14]=l}else e[0]=r[0],e[1]=r[4],e[2]=r[8],e[3]=r[12],e[4]=r[1],e[5]=r[5],e[6]=r[9],e[7]=r[13],e[8]=r[2],e[9]=r[6],e[10]=r[10],e[11]=r[14],e[12]=r[3],e[13]=r[7],e[14]=r[11],e[15]=r[15];return e}});var tD=B((QLe,rD)=>{rD.exports=Jse;function Jse(e,r){var t=r[0],a=r[1],n=r[2],i=r[3],o=r[4],l=r[5],s=r[6],u=r[7],f=r[8],c=r[9],v=r[10],d=r[11],p=r[12],m=r[13],y=r[14],b=r[15],T=t*l-a*o,_=t*s-n*o,x=t*u-i*o,w=a*s-n*l,k=a*u-i*l,M=n*u-i*s,C=f*m-c*p,E=f*y-v*p,F=f*b-d*p,P=c*y-v*m,q=c*b-d*m,z=v*b-d*y,I=T*z-_*q+x*P+w*F-k*E+M*C;return I?(I=1/I,e[0]=(l*z-s*q+u*P)*I,e[1]=(n*q-a*z-i*P)*I,e[2]=(m*M-y*k+b*w)*I,e[3]=(v*k-c*M-d*w)*I,e[4]=(s*F-o*z-u*E)*I,e[5]=(t*z-n*F+i*E)*I,e[6]=(y*x-p*M-b*_)*I,e[7]=(f*M-v*x+d*_)*I,e[8]=(o*q-l*F+u*C)*I,e[9]=(a*F-t*q-i*C)*I,e[10]=(p*k-m*x+b*T)*I,e[11]=(c*x-f*k-d*T)*I,e[12]=(l*E-o*P-s*C)*I,e[13]=(t*P-a*E+n*C)*I,e[14]=(m*_-p*w-y*T)*I,e[15]=(f*w-c*_+v*T)*I,e):null}});var nD=B((eEe,aD)=>{aD.exports=jse;function jse(e,r){var t=r[0],a=r[1],n=r[2],i=r[3],o=r[4],l=r[5],s=r[6],u=r[7],f=r[8],c=r[9],v=r[10],d=r[11],p=r[12],m=r[13],y=r[14],b=r[15];return e[0]=l*(v*b-d*y)-c*(s*b-u*y)+m*(s*d-u*v),e[1]=-(a*(v*b-d*y)-c*(n*b-i*y)+m*(n*d-i*v)),e[2]=a*(s*b-u*y)-l*(n*b-i*y)+m*(n*u-i*s),e[3]=-(a*(s*d-u*v)-l*(n*d-i*v)+c*(n*u-i*s)),e[4]=-(o*(v*b-d*y)-f*(s*b-u*y)+p*(s*d-u*v)),e[5]=t*(v*b-d*y)-f*(n*b-i*y)+p*(n*d-i*v),e[6]=-(t*(s*b-u*y)-o*(n*b-i*y)+p*(n*u-i*s)),e[7]=t*(s*d-u*v)-o*(n*d-i*v)+f*(n*u-i*s),e[8]=o*(c*b-d*m)-f*(l*b-u*m)+p*(l*d-u*c),e[9]=-(t*(c*b-d*m)-f*(a*b-i*m)+p*(a*d-i*c)),e[10]=t*(l*b-u*m)-o*(a*b-i*m)+p*(a*u-i*l),e[11]=-(t*(l*d-u*c)-o*(a*d-i*c)+f*(a*u-i*l)),e[12]=-(o*(c*y-v*m)-f*(l*y-s*m)+p*(l*v-s*c)),e[13]=t*(c*y-v*m)-f*(a*y-n*m)+p*(a*v-n*c),e[14]=-(t*(l*y-s*m)-o*(a*y-n*m)+p*(a*s-n*l)),e[15]=t*(l*v-s*c)-o*(a*v-n*c)+f*(a*s-n*l),e}});var oD=B((rEe,iD)=>{iD.exports=$se;function $se(e){var r=e[0],t=e[1],a=e[2],n=e[3],i=e[4],o=e[5],l=e[6],s=e[7],u=e[8],f=e[9],c=e[10],v=e[11],d=e[12],p=e[13],m=e[14],y=e[15],b=r*o-t*i,T=r*l-a*i,_=r*s-n*i,x=t*l-a*o,w=t*s-n*o,k=a*s-n*l,M=u*p-f*d,C=u*m-c*d,E=u*y-v*d,F=f*m-c*p,P=f*y-v*p,q=c*y-v*m;return b*q-T*P+_*F+x*E-w*C+k*M}});var sD=B((tEe,lD)=>{lD.exports=Kse;function Kse(e,r,t){var a=r[0],n=r[1],i=r[2],o=r[3],l=r[4],s=r[5],u=r[6],f=r[7],c=r[8],v=r[9],d=r[10],p=r[11],m=r[12],y=r[13],b=r[14],T=r[15],_=t[0],x=t[1],w=t[2],k=t[3];return e[0]=_*a+x*l+w*c+k*m,e[1]=_*n+x*s+w*v+k*y,e[2]=_*i+x*u+w*d+k*b,e[3]=_*o+x*f+w*p+k*T,_=t[4],x=t[5],w=t[6],k=t[7],e[4]=_*a+x*l+w*c+k*m,e[5]=_*n+x*s+w*v+k*y,e[6]=_*i+x*u+w*d+k*b,e[7]=_*o+x*f+w*p+k*T,_=t[8],x=t[9],w=t[10],k=t[11],e[8]=_*a+x*l+w*c+k*m,e[9]=_*n+x*s+w*v+k*y,e[10]=_*i+x*u+w*d+k*b,e[11]=_*o+x*f+w*p+k*T,_=t[12],x=t[13],w=t[14],k=t[15],e[12]=_*a+x*l+w*c+k*m,e[13]=_*n+x*s+w*v+k*y,e[14]=_*i+x*u+w*d+k*b,e[15]=_*o+x*f+w*p+k*T,e}});var fD=B((aEe,uD)=>{uD.exports=Qse;function Qse(e,r,t){var a=t[0],n=t[1],i=t[2],o,l,s,u,f,c,v,d,p,m,y,b;return r===e?(e[12]=r[0]*a+r[4]*n+r[8]*i+r[12],e[13]=r[1]*a+r[5]*n+r[9]*i+r[13],e[14]=r[2]*a+r[6]*n+r[10]*i+r[14],e[15]=r[3]*a+r[7]*n+r[11]*i+r[15]):(o=r[0],l=r[1],s=r[2],u=r[3],f=r[4],c=r[5],v=r[6],d=r[7],p=r[8],m=r[9],y=r[10],b=r[11],e[0]=o,e[1]=l,e[2]=s,e[3]=u,e[4]=f,e[5]=c,e[6]=v,e[7]=d,e[8]=p,e[9]=m,e[10]=y,e[11]=b,e[12]=o*a+f*n+p*i+r[12],e[13]=l*a+c*n+m*i+r[13],e[14]=s*a+v*n+y*i+r[14],e[15]=u*a+d*n+b*i+r[15]),e}});var vD=B((nEe,cD)=>{cD.exports=eue;function eue(e,r,t){var a=t[0],n=t[1],i=t[2];return e[0]=r[0]*a,e[1]=r[1]*a,e[2]=r[2]*a,e[3]=r[3]*a,e[4]=r[4]*n,e[5]=r[5]*n,e[6]=r[6]*n,e[7]=r[7]*n,e[8]=r[8]*i,e[9]=r[9]*i,e[10]=r[10]*i,e[11]=r[11]*i,e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15],e}});var dD=B((iEe,hD)=>{hD.exports=rue;function rue(e,r,t,a){var n=a[0],i=a[1],o=a[2],l=Math.sqrt(n*n+i*i+o*o),s,u,f,c,v,d,p,m,y,b,T,_,x,w,k,M,C,E,F,P,q,z,I,U;return Math.abs(l)<1e-6?null:(l=1/l,n*=l,i*=l,o*=l,s=Math.sin(t),u=Math.cos(t),f=1-u,c=r[0],v=r[1],d=r[2],p=r[3],m=r[4],y=r[5],b=r[6],T=r[7],_=r[8],x=r[9],w=r[10],k=r[11],M=n*n*f+u,C=i*n*f+o*s,E=o*n*f-i*s,F=n*i*f-o*s,P=i*i*f+u,q=o*i*f+n*s,z=n*o*f+i*s,I=i*o*f-n*s,U=o*o*f+u,e[0]=c*M+m*C+_*E,e[1]=v*M+y*C+x*E,e[2]=d*M+b*C+w*E,e[3]=p*M+T*C+k*E,e[4]=c*F+m*P+_*q,e[5]=v*F+y*P+x*q,e[6]=d*F+b*P+w*q,e[7]=p*F+T*P+k*q,e[8]=c*z+m*I+_*U,e[9]=v*z+y*I+x*U,e[10]=d*z+b*I+w*U,e[11]=p*z+T*I+k*U,r!==e&&(e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e)}});var mD=B((oEe,pD)=>{pD.exports=tue;function tue(e,r,t){var a=Math.sin(t),n=Math.cos(t),i=r[4],o=r[5],l=r[6],s=r[7],u=r[8],f=r[9],c=r[10],v=r[11];return r!==e&&(e[0]=r[0],e[1]=r[1],e[2]=r[2],e[3]=r[3],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e[4]=i*n+u*a,e[5]=o*n+f*a,e[6]=l*n+c*a,e[7]=s*n+v*a,e[8]=u*n-i*a,e[9]=f*n-o*a,e[10]=c*n-l*a,e[11]=v*n-s*a,e}});var gD=B((lEe,yD)=>{yD.exports=aue;function aue(e,r,t){var a=Math.sin(t),n=Math.cos(t),i=r[0],o=r[1],l=r[2],s=r[3],u=r[8],f=r[9],c=r[10],v=r[11];return r!==e&&(e[4]=r[4],e[5]=r[5],e[6]=r[6],e[7]=r[7],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e[0]=i*n-u*a,e[1]=o*n-f*a,e[2]=l*n-c*a,e[3]=s*n-v*a,e[8]=i*a+u*n,e[9]=o*a+f*n,e[10]=l*a+c*n,e[11]=s*a+v*n,e}});var xD=B((sEe,bD)=>{bD.exports=nue;function nue(e,r,t){var a=Math.sin(t),n=Math.cos(t),i=r[0],o=r[1],l=r[2],s=r[3],u=r[4],f=r[5],c=r[6],v=r[7];return r!==e&&(e[8]=r[8],e[9]=r[9],e[10]=r[10],e[11]=r[11],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e[0]=i*n+u*a,e[1]=o*n+f*a,e[2]=l*n+c*a,e[3]=s*n+v*a,e[4]=u*n-i*a,e[5]=f*n-o*a,e[6]=c*n-l*a,e[7]=v*n-s*a,e}});var wD=B((uEe,_D)=>{_D.exports=iue;function iue(e,r,t){var a,n,i,o=t[0],l=t[1],s=t[2],u=Math.sqrt(o*o+l*l+s*s);return Math.abs(u)<1e-6?null:(u=1/u,o*=u,l*=u,s*=u,a=Math.sin(r),n=Math.cos(r),i=1-n,e[0]=o*o*i+n,e[1]=l*o*i+s*a,e[2]=s*o*i-l*a,e[3]=0,e[4]=o*l*i-s*a,e[5]=l*l*i+n,e[6]=s*l*i+o*a,e[7]=0,e[8]=o*s*i+l*a,e[9]=l*s*i-o*a,e[10]=s*s*i+n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e)}});var TD=B((fEe,AD)=>{AD.exports=oue;function oue(e,r,t){var a=r[0],n=r[1],i=r[2],o=r[3],l=a+a,s=n+n,u=i+i,f=a*l,c=a*s,v=a*u,d=n*s,p=n*u,m=i*u,y=o*l,b=o*s,T=o*u;return e[0]=1-(d+m),e[1]=c+T,e[2]=v-b,e[3]=0,e[4]=c-T,e[5]=1-(f+m),e[6]=p+y,e[7]=0,e[8]=v+b,e[9]=p-y,e[10]=1-(f+d),e[11]=0,e[12]=t[0],e[13]=t[1],e[14]=t[2],e[15]=1,e}});var kD=B((cEe,MD)=>{MD.exports=lue;function lue(e,r){return e[0]=r[0],e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=r[1],e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=r[2],e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var CD=B((vEe,SD)=>{SD.exports=sue;function sue(e,r){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]=r[0],e[13]=r[1],e[14]=r[2],e[15]=1,e}});var LD=B((hEe,DD)=>{DD.exports=uue;function uue(e,r){var t=Math.sin(r),a=Math.cos(r);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=a,e[6]=t,e[7]=0,e[8]=0,e[9]=-t,e[10]=a,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var qD=B((dEe,ED)=>{ED.exports=fue;function fue(e,r){var t=Math.sin(r),a=Math.cos(r);return e[0]=a,e[1]=0,e[2]=-t,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=t,e[9]=0,e[10]=a,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var RD=B((pEe,FD)=>{FD.exports=cue;function cue(e,r){var t=Math.sin(r),a=Math.cos(r);return e[0]=a,e[1]=t,e[2]=0,e[3]=0,e[4]=-t,e[5]=a,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}});var ND=B((mEe,PD)=>{PD.exports=vue;function vue(e,r){var t=r[0],a=r[1],n=r[2],i=r[3],o=t+t,l=a+a,s=n+n,u=t*o,f=a*o,c=a*l,v=n*o,d=n*l,p=n*s,m=i*o,y=i*l,b=i*s;return e[0]=1-c-p,e[1]=f+b,e[2]=v-y,e[3]=0,e[4]=f-b,e[5]=1-u-p,e[6]=d+m,e[7]=0,e[8]=v+y,e[9]=d-m,e[10]=1-u-c,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var BD=B((yEe,zD)=>{zD.exports=hue;function hue(e,r,t,a,n,i,o){var l=1/(t-r),s=1/(n-a),u=1/(i-o);return e[0]=i*2*l,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=i*2*s,e[6]=0,e[7]=0,e[8]=(t+r)*l,e[9]=(n+a)*s,e[10]=(o+i)*u,e[11]=-1,e[12]=0,e[13]=0,e[14]=o*i*2*u,e[15]=0,e}});var OD=B((gEe,ID)=>{ID.exports=due;function due(e,r,t,a,n){var i=1/Math.tan(r/2),o=1/(a-n);return e[0]=i/t,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=i,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=(n+a)*o,e[11]=-1,e[12]=0,e[13]=0,e[14]=2*n*a*o,e[15]=0,e}});var UD=B((bEe,HD)=>{HD.exports=pue;function pue(e,r,t,a){var n=Math.tan(r.upDegrees*Math.PI/180),i=Math.tan(r.downDegrees*Math.PI/180),o=Math.tan(r.leftDegrees*Math.PI/180),l=Math.tan(r.rightDegrees*Math.PI/180),s=2/(o+l),u=2/(n+i);return e[0]=s,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=u,e[6]=0,e[7]=0,e[8]=-((o-l)*s*.5),e[9]=(n-i)*u*.5,e[10]=a/(t-a),e[11]=-1,e[12]=0,e[13]=0,e[14]=a*t/(t-a),e[15]=0,e}});var YD=B((xEe,GD)=>{GD.exports=mue;function mue(e,r,t,a,n,i,o){var l=1/(r-t),s=1/(a-n),u=1/(i-o);return e[0]=-2*l,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*s,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*u,e[11]=0,e[12]=(r+t)*l,e[13]=(n+a)*s,e[14]=(o+i)*u,e[15]=1,e}});var XD=B((_Ee,VD)=>{var yue=r6();VD.exports=gue;function gue(e,r,t,a){var n,i,o,l,s,u,f,c,v,d,p=r[0],m=r[1],y=r[2],b=a[0],T=a[1],_=a[2],x=t[0],w=t[1],k=t[2];return Math.abs(p-x)<1e-6&&Math.abs(m-w)<1e-6&&Math.abs(y-k)<1e-6?yue(e):(f=p-x,c=m-w,v=y-k,d=1/Math.sqrt(f*f+c*c+v*v),f*=d,c*=d,v*=d,n=T*v-_*c,i=_*f-b*v,o=b*c-T*f,d=Math.sqrt(n*n+i*i+o*o),d?(d=1/d,n*=d,i*=d,o*=d):(n=0,i=0,o=0),l=c*o-v*i,s=v*n-f*o,u=f*i-c*n,d=Math.sqrt(l*l+s*s+u*u),d?(d=1/d,l*=d,s*=d,u*=d):(l=0,s=0,u=0),e[0]=n,e[1]=l,e[2]=f,e[3]=0,e[4]=i,e[5]=s,e[6]=c,e[7]=0,e[8]=o,e[9]=u,e[10]=v,e[11]=0,e[12]=-(n*p+i*m+o*y),e[13]=-(l*p+s*m+u*y),e[14]=-(f*p+c*m+v*y),e[15]=1,e)}});var ZD=B((wEe,WD)=>{WD.exports=bue;function bue(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]+")"}});var t6=B((AEe,JD)=>{JD.exports={create:WC(),clone:JC(),copy:$C(),identity:r6(),transpose:eD(),invert:tD(),adjoint:nD(),determinant:oD(),multiply:sD(),translate:fD(),scale:vD(),rotate:dD(),rotateX:mD(),rotateY:gD(),rotateZ:xD(),fromRotation:wD(),fromRotationTranslation:TD(),fromScaling:kD(),fromTranslation:CD(),fromXRotation:LD(),fromYRotation:qD(),fromZRotation:RD(),fromQuat:ND(),frustum:BD(),perspective:OD(),perspectiveFromFieldOfView:UD(),ortho:YD(),lookAt:XD(),str:ZD()}});var Yy=B(Rn=>{"use strict";var xue=t6();Rn.init2dArray=function(e,r){for(var t=new Array(e),a=0;a{"use strict";var _ue=la(),jD=of(),wue=Yy(),Aue=t6();function Tue(e){var r;if(typeof e=="string"){if(r=document.getElementById(e),r===null)throw new Error("No DOM element with id '"+e+"' exists on the page.");return r}else if(e==null)throw new Error("DOM element provided is null or undefined");return e}function Mue(e){var r=_ue.select(e);return r.node()instanceof HTMLElement&&r.size()&&r.classed("js-plotly-plot")}function $D(e){var r=e&&e.parentNode;r&&r.removeChild(e)}function kue(e,r){KD("global",e,r)}function KD(e,r,t){var a="plotly.js-style-"+e,n=document.getElementById(a);if(!(n&&n.matches(".no-inline-styles"))){n||(n=document.createElement("style"),n.setAttribute("id",a),n.appendChild(document.createTextNode("")),document.head.appendChild(n));var i=n.sheet;i?i.insertRule?i.insertRule(r+"{"+t+"}",0):i.addRule?i.addRule(r,t,0):jD.warn("addStyleRule failed"):jD.warn("Cannot addRelatedStyleRule, probably due to strict CSP...")}}function Sue(e){var r="plotly.js-style-"+e,t=document.getElementById(r);t&&$D(t)}function Cue(e,r,t,a,n,i){var o=a.split(":"),l=n.split(":"),s="data-btn-style-event-added";i||(i=document),i.querySelectorAll(e).forEach(function(u){u._hoverStyle={activeStyleParts:o,inactiveStyleParts:l},u.getAttribute(s)||(u.addEventListener("mouseenter",function(){var f=this._hoverStyle,c=this.querySelector(t);c&&(c.style[f.activeStyleParts[0]]=f.activeStyleParts[1])}),u.addEventListener("mouseleave",function(){var f=this._hoverStyle,c=this.querySelector(t);c&&(r&&this.matches(r)?c.style[f.activeStyleParts[0]]=f.activeStyleParts[1]:c.style[f.inactiveStyleParts[0]]=f.inactiveStyleParts[1])}),u.setAttribute(s,!0))})}function Due(e){var r=eL(e),t=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];return r.forEach(function(a){var n=QD(a);if(n){var i=wue.convertCssMatrix(n);t=Aue.multiply(t,t,i)}}),t}function QD(e){var r=window.getComputedStyle(e,null),t=r.getPropertyValue("-webkit-transform")||r.getPropertyValue("-moz-transform")||r.getPropertyValue("-ms-transform")||r.getPropertyValue("-o-transform")||r.getPropertyValue("transform");return t==="none"?null:t.replace("matrix","").replace("3d","").slice(1,-1).split(",").map(function(a){return+a})}function eL(e){for(var r=[];Lue(e);)r.push(e),e=e.parentNode,typeof ShadowRoot=="function"&&e instanceof ShadowRoot&&(e=e.host);return r}function Lue(e){return e&&(e instanceof Element||e instanceof HTMLElement)}function Eue(e,r){return e&&r&&e.top===r.top&&e.left===r.left&&e.right===r.right&&e.bottom===r.bottom}rL.exports={getGraphDiv:Tue,isPlotDiv:Mue,removeElement:$D,addStyleRule:kue,addRelatedStyleRule:KD,deleteRelatedStyleRule:Sue,setStyleOnHover:Cue,getFullTransformMatrix:Due,getElementTransformMatrix:QD,getElementAndAncestors:eL,equalDomRects:Eue}});var B2=B((kEe,tL)=>{"use strict";tL.exports={mode:{valType:"enumerated",dflt:"afterall",values:["immediate","next","afterall"]},direction:{valType:"enumerated",values:["forward","reverse"],dflt:"forward"},fromcurrent:{valType:"boolean",dflt:!1},frame:{duration:{valType:"number",min:0,dflt:500},redraw:{valType:"boolean",dflt:!0}},transition:{duration:{valType:"number",min:0,dflt:500,editType:"none"},easing:{valType:"enumerated",dflt:"cubic-in-out",values:["linear","quad","cubic","sin","exp","circle","elastic","back","bounce","linear-in","quad-in","cubic-in","sin-in","exp-in","circle-in","elastic-in","back-in","bounce-in","linear-out","quad-out","cubic-out","sin-out","exp-out","circle-out","elastic-out","back-out","bounce-out","linear-in-out","quad-in-out","cubic-in-out","sin-in-out","exp-in-out","circle-in-out","elastic-in-out","back-in-out","bounce-in-out"],editType:"none"},ordering:{valType:"enumerated",values:["layout first","traces first"],dflt:"layout first",editType:"none"}}}});var Nl=B((SEe,uL)=>{"use strict";var nL=Fn().extendFlat,que=q0(),iL={valType:"flaglist",extras:["none"],flags:["calc","clearAxisTypes","plot","style","markerSize","colorbars"]},oL={valType:"flaglist",extras:["none"],flags:["calc","plot","legend","ticks","axrange","layoutstyle","modebar","camera","arraydraw","colorbars"]},Fue=iL.flags.slice().concat(["fullReplot"]),Rue=oL.flags.slice().concat("layoutReplot");uL.exports={traces:iL,layout:oL,traceFlags:function(){return aL(Fue)},layoutFlags:function(){return aL(Rue)},update:function(e,r){var t=r.editType;if(t&&t!=="none")for(var a=t.split("+"),n=0;n{"use strict";a6.dash={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",editType:"style"};a6.pattern={shape:{valType:"enumerated",values:["","/","\\","x","-","|","+","."],dflt:"",arrayOk:!0,editType:"style"},path:{valType:"string",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"}});var n6={};ja(n6,{DATE_FORMAT_LINK:()=>Nue,FORMAT_LINK:()=>Pue});var Pue,Nue,i6=Ja(()=>{"use strict";Pue="https://github.com/d3/d3-format/tree/v1.4.5#d3-format",Nue="https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format"});var Hv=B(Ov=>{"use strict";var{DATE_FORMAT_LINK:zue,FORMAT_LINK:Bue}=(i6(),vr(n6)),Iue=["Variables that can't be found will be replaced with the specifier.",'For example, a template of "data: %{x}, %{y}" will result in a value of "data: 1, %{y}" if x is 1 and y is missing.',"Variables with an undefined value will be replaced with the fallback value."].join(" ");function Oue({supportOther:e}={}){return["Variables are inserted using %{variable},",'for example "y: %{y}"'+(e?" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown.":"."),`Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}".`,Bue,"for details on the formatting syntax.",`Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}".`,zue,"for details on the date formatting syntax.",Iue].join(" ")}Ov.templateFormatStringDescription=Oue;Ov.hovertemplateAttrs=({editType:e="none",arrayOk:r}={},t={})=>ka({valType:"string",dflt:"",editType:e},r!==!1?{arrayOk:!0}:{});Ov.texttemplateAttrs=({editType:e="calc",arrayOk:r}={},t={})=>ka({valType:"string",dflt:"",editType:e},r!==!1?{arrayOk:!0}:{});Ov.shapeTexttemplateAttrs=({editType:e="arraydraw",newshape:r}={},t={})=>({valType:"string",dflt:"",editType:e});Ov.templatefallbackAttrs=({editType:e="none"}={})=>({valType:"any",dflt:"-",editType:e})});var Wy=B((EEe,pL)=>{"use strict";function ff(e,r){return r?r.d2l(e):e}function fL(e,r){return r?r.l2d(e):e}function Hue(e){return e.x0}function Uue(e){return e.x1}function Gue(e){return e.y0}function Yue(e){return e.y1}function cL(e){return e.x0shift||0}function vL(e){return e.x1shift||0}function hL(e){return e.y0shift||0}function dL(e){return e.y1shift||0}function Vy(e,r){return ff(e.x1,r)+vL(e)-ff(e.x0,r)-cL(e)}function Xy(e,r,t){return ff(e.y1,t)+dL(e)-ff(e.y0,t)-hL(e)}function Vue(e,r){return Math.abs(Vy(e,r))}function Xue(e,r,t){return Math.abs(Xy(e,r,t))}function Wue(e,r,t){return e.type!=="line"?void 0:Math.sqrt(Math.pow(Vy(e,r),2)+Math.pow(Xy(e,r,t),2))}function Zue(e,r){return fL((ff(e.x1,r)+vL(e)+ff(e.x0,r)+cL(e))/2,r)}function Jue(e,r,t){return fL((ff(e.y1,t)+dL(e)+ff(e.y0,t)+hL(e))/2,t)}function jue(e,r,t){return e.type!=="line"?void 0:Xy(e,r,t)/Vy(e,r)}var $ue=["x0","x1","y0","y1","dy","height","ycenter"],Kue=["x0","x1","y0","y1","dx","width","xcenter"];pL.exports={x0:Hue,x1:Uue,y0:Gue,y1:Yue,slope:jue,dx:Vy,dy:Xy,width:Vue,height:Xue,length:Wue,xcenter:Zue,ycenter:Jue,simpleXVariables:$ue,simpleYVariables:Kue}});var gL=B((qEe,yL)=>{"use strict";var Que=Nl().overrideAll,Y0=Fl(),mL=Di(),efe=uf().dash,cf=Fn().extendFlat,{shapeTexttemplateAttrs:rfe,templatefallbackAttrs:tfe}=Hv(),afe=Wy();yL.exports=Que({newshape:{visible:cf({},Y0.visible,{}),showlegend:{valType:"boolean",dflt:!1},legend:cf({},Y0.legend,{}),legendgroup:cf({},Y0.legendgroup,{}),legendgrouptitle:{text:cf({},Y0.legendgrouptitle.text,{}),font:mL({})},legendrank:cf({},Y0.legendrank,{}),legendwidth:cf({},Y0.legendwidth,{}),line:{color:{valType:"color"},width:{valType:"number",min:0,dflt:4},dash:cf({},efe,{dflt:"solid"})},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd"},opacity:{valType:"number",min:0,max:1,dflt:1},layer:{valType:"enumerated",values:["below","above","between"],dflt:"above"},drawdirection:{valType:"enumerated",values:["ortho","horizontal","vertical","diagonal"],dflt:"diagonal"},name:cf({},Y0.name,{}),label:{text:{valType:"string",dflt:""},texttemplate:rfe({newshape:!0},{keys:Object.keys(afe)}),texttemplatefallback:tfe({editType:"arraydraw"}),font:mL({}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"]},textangle:{valType:"angle",dflt:"auto"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto"},yanchor:{valType:"enumerated",values:["top","middle","bottom"]},padding:{valType:"number",dflt:3,min:0}}},activeshape:{fillcolor:{valType:"color",dflt:"rgb(255,0,255)",description:"Sets the color filling the active shape' interior."},opacity:{valType:"number",min:0,max:1,dflt:.5}}},"none","from-root")});var xL=B((FEe,bL)=>{"use strict";var nfe=uf().dash,ife=Fn().extendFlat;bL.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:ife({},nfe,{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"}}});var Zy=B((REe,_L)=>{"use strict";_L.exports=function(e){var r=e.editType;return{t:{valType:"number",dflt:0,editType:r},r:{valType:"number",dflt:0,editType:r},b:{valType:"number",dflt:0,editType:r},l:{valType:"number",dflt:0,editType:r},editType:r}}});var Uv=B((PEe,ML)=>{"use strict";var o6=Di(),ofe=B2(),Jy=ys(),wL=gL(),AL=xL(),lfe=Zy(),TL=Fn().extendFlat,jy=o6({editType:"calc"});jy.family.dflt='"Open Sans", verdana, arial, sans-serif';jy.size.dflt=12;jy.color.dflt=Jy.defaultLine;ML.exports={font:jy,title:{text:{valType:"string",editType:"layoutstyle"},font:o6({editType:"layoutstyle"}),subtitle:{text:{valType:"string",editType:"layoutstyle"},font:o6({editType:"layoutstyle"}),editType:"layoutstyle"},xref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle"},yref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle"},x:{valType:"number",min:0,max:1,dflt:.5,editType:"layoutstyle"},y:{valType:"number",min:0,max:1,dflt:"auto",editType:"layoutstyle"},xanchor:{valType:"enumerated",dflt:"auto",values:["auto","left","center","right"],editType:"layoutstyle"},yanchor:{valType:"enumerated",dflt:"auto",values:["auto","top","middle","bottom"],editType:"layoutstyle"},pad:TL(lfe({editType:"layoutstyle"}),{}),automargin:{valType:"boolean",dflt:!1,editType:"plot"},editType:"layoutstyle"},uniformtext:{mode:{valType:"enumerated",values:[!1,"hide","show"],dflt:!1,editType:"plot"},minsize:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"},autosize:{valType:"boolean",dflt:!1,editType:"none"},width:{valType:"number",min:10,dflt:700,editType:"plot"},height:{valType:"number",min:10,dflt:450,editType:"plot"},minreducedwidth:{valType:"number",min:2,dflt:64,editType:"plot"},minreducedheight:{valType:"number",min:2,dflt:64,editType:"plot"},margin:{l:{valType:"number",min:0,dflt:80,editType:"plot"},r:{valType:"number",min:0,dflt:80,editType:"plot"},t:{valType:"number",min:0,dflt:100,editType:"plot"},b:{valType:"number",min:0,dflt:80,editType:"plot"},pad:{valType:"number",min:0,dflt:0,editType:"plot"},autoexpand:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},computed:{valType:"any",editType:"none"},paper_bgcolor:{valType:"color",dflt:Jy.background,editType:"plot"},plot_bgcolor:{valType:"color",dflt:Jy.background,editType:"layoutstyle"},autotypenumbers:{valType:"enumerated",values:["convert types","strict"],dflt:"convert types",editType:"calc"},separators:{valType:"string",editType:"plot"},showlegend:{valType:"boolean",editType:"legend"},colorway:{valType:"colorlist",dflt:Jy.defaults,editType:"calc"},datarevision:{valType:"any",editType:"calc"},uirevision:{valType:"any",editType:"none"},editrevision:{valType:"any",editType:"none"},selectionrevision:{valType:"any",editType:"none"},template:{valType:"any",editType:"calc"},newshape:wL.newshape,activeshape:wL.activeshape,newselection:AL.newselection,activeselection:AL.activeselection,meta:{valType:"any",arrayOk:!0,editType:"plot"},transition:TL({},ofe.transition,{editType:"none"})}});var kL=B(()=>{(function(){if(!document.getElementById("9f215cf04c5486422605d13261cb87401f4e7763b6296af81e98efbc0130da53")){var e=document.createElement("style");e.id="9f215cf04c5486422605d13261cb87401f4e7763b6296af81e98efbc0130da53",e.textContent='.maplibregl-map{font:12px/20px Helvetica Neue,Arial,Helvetica,sans-serif;overflow:hidden;position:relative;-webkit-tap-highlight-color:rgb(0 0 0/0);-webkit-touch-callout:none}.maplibregl-canvas{position:absolute;left:0;top:0}.maplibregl-map:fullscreen{width:100%;height:100%}.maplibregl-ctrl-group button.maplibregl-ctrl-compass{touch-action:none}.maplibregl-canvas-container.maplibregl-interactive,.maplibregl-ctrl-group button.maplibregl-ctrl-compass{cursor:grab;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-canvas-container.maplibregl-interactive.maplibregl-track-pointer{cursor:pointer}.maplibregl-canvas-container.maplibregl-interactive:active,.maplibregl-ctrl-group button.maplibregl-ctrl-compass:active{cursor:grabbing}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-canvas-container.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:pinch-zoom}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:none}.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures,.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-ctrl-bottom-left,.maplibregl-ctrl-bottom-right,.maplibregl-ctrl-top-left,.maplibregl-ctrl-top-right{position:absolute;pointer-events:none;z-index:2}.maplibregl-ctrl-top-left{top:0;left:0}.maplibregl-ctrl-top-right{top:0;right:0}.maplibregl-ctrl-bottom-left{bottom:0;left:0}.maplibregl-ctrl-bottom-right{right:0;bottom:0}.maplibregl-ctrl{clear:both;pointer-events:auto;transform:translate(0)}.maplibregl-ctrl-top-left .maplibregl-ctrl{margin:10px 0 0 10px;float:left}.maplibregl-ctrl-top-right .maplibregl-ctrl{margin:10px 10px 0 0;float:right}.maplibregl-ctrl-bottom-left .maplibregl-ctrl{margin:0 0 10px 10px;float:left}.maplibregl-ctrl-bottom-right .maplibregl-ctrl{margin:0 10px 10px 0;float:right}.maplibregl-ctrl-group{border-radius:4px;background:#fff}.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px rgba(0,0,0,.1)}@media (forced-colors:active){.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px ButtonText}}.maplibregl-ctrl-group button{width:29px;height:29px;display:block;padding:0;outline:none;border:0;box-sizing:border-box;background-color:transparent;cursor:pointer}.maplibregl-ctrl button{-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-ctrl-group button+button{border-top:1px solid #ddd}.maplibregl-ctrl button .maplibregl-ctrl-icon{display:block;width:100%;height:100%;background-repeat:no-repeat;background-position:50%}@media (forced-colors:active){.maplibregl-ctrl-icon{background-color:transparent}.maplibregl-ctrl-group button+button{border-top:1px solid ButtonText}}.maplibregl-ctrl button::-moz-focus-inner{border:0;padding:0}.maplibregl-ctrl-attrib-button:focus,.maplibregl-ctrl-group button:focus{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl button:disabled{cursor:not-allowed}.maplibregl-ctrl button:disabled .maplibregl-ctrl-icon{opacity:.25}@media (hover:hover){.maplibregl-ctrl button:not(:disabled):hover{background-color:rgba(0,0,0,.05)}}.maplibregl-ctrl button:not(:disabled):active{background-color:rgba(0,0,0,.05)}.maplibregl-ctrl-group button:focus:focus-visible{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl-group button:focus:not(:focus-visible){box-shadow:none}.maplibregl-ctrl-group button:focus:first-child{border-radius:4px 4px 0 0}.maplibregl-ctrl-group button:focus:last-child{border-radius:0 0 4px 4px}.maplibregl-ctrl-group button:focus:only-child{border-radius:inherit}.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M10%2013c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h9c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M14.5%208.5c-.75%200-1.5.75-1.5%201.5v3h-3c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h3v3c0%20.75.75%201.5%201.5%201.5S16%2019.75%2016%2019v-3h3c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013h-3v-3c0-.75-.75-1.5-1.5-1.5%22%2F%3E%3C%2Fsvg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M10%2013c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h9c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M14.5%208.5c-.75%200-1.5.75-1.5%201.5v3h-3c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h3v3c0%20.75.75%201.5%201.5%201.5S16%2019.75%2016%2019v-3h3c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013h-3v-3c0-.75-.75-1.5-1.5-1.5%22%2F%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M10%2013c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h9c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M14.5%208.5c-.75%200-1.5.75-1.5%201.5v3h-3c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h3v3c0%20.75.75%201.5%201.5%201.5S16%2019.75%2016%2019v-3h3c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013h-3v-3c0-.75-.75-1.5-1.5-1.5%22%2F%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M24%2016v5.5c0%201.75-.75%202.5-2.5%202.5H16v-1l3-1.5-4-5.5%201-1%205.5%204%201.5-3zM6%2016l1.5%203%205.5-4%201%201-4%205.5%203%201.5v1H7.5C5.75%2024%205%2023.25%205%2021.5V16zm7-11v1l-3%201.5%204%205.5-1%201-5.5-4L6%2013H5V7.5C5%205.75%205.75%205%207.5%205zm11%202.5c0-1.75-.75-2.5-2.5-2.5H16v1l3%201.5-4%205.5%201%201%205.5-4%201.5%203h1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M18.5%2016c-1.75%200-2.5.75-2.5%202.5V24h1l1.5-3%205.5%204%201-1-4-5.5%203-1.5v-1zM13%2018.5c0-1.75-.75-2.5-2.5-2.5H5v1l3%201.5L4%2024l1%201%205.5-4%201.5%203h1zm3-8c0%201.75.75%202.5%202.5%202.5H24v-1l-3-1.5L25%205l-1-1-5.5%204L17%205h-1zM10.5%2013c1.75%200%202.5-.75%202.5-2.5V5h-1l-1.5%203L5%204%204%205l4%205.5L5%2012v1z%22%2F%3E%3C%2Fsvg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M24%2016v5.5c0%201.75-.75%202.5-2.5%202.5H16v-1l3-1.5-4-5.5%201-1%205.5%204%201.5-3zM6%2016l1.5%203%205.5-4%201%201-4%205.5%203%201.5v1H7.5C5.75%2024%205%2023.25%205%2021.5V16zm7-11v1l-3%201.5%204%205.5-1%201-5.5-4L6%2013H5V7.5C5%205.75%205.75%205%207.5%205zm11%202.5c0-1.75-.75-2.5-2.5-2.5H16v1l3%201.5-4%205.5%201%201%205.5-4%201.5%203h1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M18.5%2016c-1.75%200-2.5.75-2.5%202.5V24h1l1.5-3%205.5%204%201-1-4-5.5%203-1.5v-1zM13%2018.5c0-1.75-.75-2.5-2.5-2.5H5v1l3%201.5L4%2024l1%201%205.5-4%201.5%203h1zm3-8c0%201.75.75%202.5%202.5%202.5H24v-1l-3-1.5L25%205l-1-1-5.5%204L17%205h-1zM10.5%2013c1.75%200%202.5-.75%202.5-2.5V5h-1l-1.5%203L5%204%204%205l4%205.5L5%2012v1z%22%2F%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M24%2016v5.5c0%201.75-.75%202.5-2.5%202.5H16v-1l3-1.5-4-5.5%201-1%205.5%204%201.5-3zM6%2016l1.5%203%205.5-4%201%201-4%205.5%203%201.5v1H7.5C5.75%2024%205%2023.25%205%2021.5V16zm7-11v1l-3%201.5%204%205.5-1%201-5.5-4L6%2013H5V7.5C5%205.75%205.75%205%207.5%205zm11%202.5c0-1.75-.75-2.5-2.5-2.5H16v1l3%201.5-4%205.5%201%201%205.5-4%201.5%203h1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M18.5%2016c-1.75%200-2.5.75-2.5%202.5V24h1l1.5-3%205.5%204%201-1-4-5.5%203-1.5v-1zM13%2018.5c0-1.75-.75-2.5-2.5-2.5H5v1l3%201.5L4%2024l1%201%205.5-4%201.5%203h1zm3-8c0%201.75.75%202.5%202.5%202.5H24v-1l-3-1.5L25%205l-1-1-5.5%204L17%205h-1zM10.5%2013c1.75%200%202.5-.75%202.5-2.5V5h-1l-1.5%203L5%204%204%205l4%205.5L5%2012v1z%22%2F%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22m10.5%2014%204-8%204%208z%22%2F%3E%3Cpath%20fill%3D%22%23ccc%22%20d%3D%22m10.5%2016%204%208%204-8z%22%2F%3E%3C%2Fsvg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22m10.5%2014%204-8%204%208z%22%2F%3E%3Cpath%20fill%3D%22%23ccc%22%20d%3D%22m10.5%2016%204%208%204-8z%22%2F%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22m10.5%2014%204-8%204%208z%22%2F%3E%3Cpath%20fill%3D%22%23ccc%22%20d%3D%22m10.5%2016%204%208%204-8z%22%2F%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-globe .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2222%22%20height%3D%2222%22%20fill%3D%22none%22%20stroke%3D%22%23333%22%20viewBox%3D%220%200%2022%2022%22%3E%3Ccircle%20cx%3D%2211%22%20cy%3D%2211%22%20r%3D%228.5%22%2F%3E%3Cpath%20d%3D%22M17.5%2011c0%204.819-3.02%208.5-6.5%208.5S4.5%2015.819%204.5%2011%207.52%202.5%2011%202.5s6.5%203.681%206.5%208.5Z%22%2F%3E%3Cpath%20d%3D%22M13.5%2011c0%202.447-.331%204.64-.853%206.206-.262.785-.562%201.384-.872%201.777-.314.399-.58.517-.775.517s-.461-.118-.775-.517c-.31-.393-.61-.992-.872-1.777C8.831%2015.64%208.5%2013.446%208.5%2011s.331-4.64.853-6.206c.262-.785.562-1.384.872-1.777.314-.399.58-.517.775-.517s.461.118.775.517c.31.393.61.992.872%201.777.522%201.565.853%203.76.853%206.206Z%22%2F%3E%3Cpath%20d%3D%22M11%207.5c-1.909%200-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3%201.3%200%200%201-.224-.138q.07-.058.224-.138c.299-.151.763-.302%201.379-.434C7.378%205.666%209.091%205.5%2011%205.5s3.622.166%204.845.428c.616.132%201.08.283%201.379.434.105.053.177.1.224.138q-.07.058-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm0%209c-1.909%200-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3%201.3%200%200%201-.224-.138%201.3%201.3%200%200%201%20.224-.138c.299-.151.763-.302%201.379-.434C7.378%2014.666%209.091%2014.5%2011%2014.5s3.622.166%204.845.428c.616.132%201.08.283%201.379.434.105.053.177.1.224.138a1.3%201.3%200%200%201-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm0-4c-2.46%200-4.672-.222-6.255-.574-.796-.177-1.406-.38-1.805-.59a1.5%201.5%200%200%201-.39-.272.3.3%200%200%201-.047-.064.3.3%200%200%201%20.048-.064c.066-.073.189-.167.389-.272.399-.21%201.009-.413%201.805-.59C6.328%209.722%208.54%209.5%2011%209.5s4.672.222%206.256.574c.795.177%201.405.38%201.804.59.2.105.323.2.39.272a.3.3%200%200%201%20.047.064.3.3%200%200%201-.048.064%201.4%201.4%200%200%201-.389.272c-.399.21-1.009.413-1.804.59-1.584.352-3.796.574-6.256.574Zm-8.501-1.51v.002zm0%20.018v.002zm17.002.002v-.002zm0-.018v-.002z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-globe-enabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2222%22%20height%3D%2222%22%20fill%3D%22none%22%20stroke%3D%22%2333b5e5%22%20viewBox%3D%220%200%2022%2022%22%3E%3Ccircle%20cx%3D%2211%22%20cy%3D%2211%22%20r%3D%228.5%22%2F%3E%3Cpath%20d%3D%22M17.5%2011c0%204.819-3.02%208.5-6.5%208.5S4.5%2015.819%204.5%2011%207.52%202.5%2011%202.5s6.5%203.681%206.5%208.5Z%22%2F%3E%3Cpath%20d%3D%22M13.5%2011c0%202.447-.331%204.64-.853%206.206-.262.785-.562%201.384-.872%201.777-.314.399-.58.517-.775.517s-.461-.118-.775-.517c-.31-.393-.61-.992-.872-1.777C8.831%2015.64%208.5%2013.446%208.5%2011s.331-4.64.853-6.206c.262-.785.562-1.384.872-1.777.314-.399.58-.517.775-.517s.461.118.775.517c.31.393.61.992.872%201.777.522%201.565.853%203.76.853%206.206Z%22%2F%3E%3Cpath%20d%3D%22M11%207.5c-1.909%200-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3%201.3%200%200%201-.224-.138q.07-.058.224-.138c.299-.151.763-.302%201.379-.434C7.378%205.666%209.091%205.5%2011%205.5s3.622.166%204.845.428c.616.132%201.08.283%201.379.434.105.053.177.1.224.138q-.07.058-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm0%209c-1.909%200-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3%201.3%200%200%201-.224-.138%201.3%201.3%200%200%201%20.224-.138c.299-.151.763-.302%201.379-.434C7.378%2014.666%209.091%2014.5%2011%2014.5s3.622.166%204.845.428c.616.132%201.08.283%201.379.434.105.053.177.1.224.138a1.3%201.3%200%200%201-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm0-4c-2.46%200-4.672-.222-6.255-.574-.796-.177-1.406-.38-1.805-.59a1.5%201.5%200%200%201-.39-.272.3.3%200%200%201-.047-.064.3.3%200%200%201%20.048-.064c.066-.073.189-.167.389-.272.399-.21%201.009-.413%201.805-.59C6.328%209.722%208.54%209.5%2011%209.5s4.672.222%206.256.574c.795.177%201.405.38%201.804.59.2.105.323.2.39.272a.3.3%200%200%201%20.047.064.3.3%200%200%201-.048.064%201.4%201.4%200%200%201-.389.272c-.399.21-1.009.413-1.804.59-1.584.352-3.796.574-6.256.574Zm-8.501-1.51v.002zm0%20.018v.002zm17.002.002v-.002zm0-.018v-.002z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-terrain .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2222%22%20height%3D%2222%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2022%2022%22%3E%3Cpath%20d%3D%22m1.754%2013.406%204.453-4.851%203.09%203.09%203.281%203.277.969-.969-3.309-3.312%203.844-4.121%206.148%206.886h1.082v-.855l-7.207-8.07-4.84%205.187L6.169%206.57l-5.48%205.965v.871ZM.688%2016.844h20.625v1.375H.688Zm0%200%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-terrain-enabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2222%22%20height%3D%2222%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2022%2022%22%3E%3Cpath%20d%3D%22m1.754%2013.406%204.453-4.851%203.09%203.09%203.281%203.277.969-.969-3.309-3.312%203.844-4.121%206.148%206.886h1.082v-.855l-7.207-8.07-4.84%205.187L6.169%206.57l-5.48%205.965v.871ZM.688%2016.844h20.625v1.375H.688Zm0%200%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23aaa%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3Cpath%20fill%3D%22red%22%20d%3D%22m14%205%201%201-9%209-1-1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23e58978%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23e54e33%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-waiting .maplibregl-ctrl-icon{animation:maplibregl-spin 2s linear infinite}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23999%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3Cpath%20fill%3D%22red%22%20d%3D%22m14%205%201%201-9%209-1-1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23e58978%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23e54e33%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23666%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3Cpath%20fill%3D%22red%22%20d%3D%22m14%205%201%201-9%209-1-1z%22%2F%3E%3C%2Fsvg%3E")}}@keyframes maplibregl-spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}a.maplibregl-ctrl-logo{width:88px;height:23px;margin:0 0 -4px -4px;display:block;background-repeat:no-repeat;cursor:pointer;overflow:hidden;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2288%22%20height%3D%2223%22%20fill%3D%22none%22%3E%3Cpath%20fill%3D%22%23000%22%20fill-opacity%3D%22.4%22%20fill-rule%3D%22evenodd%22%20d%3D%22M17.408%2016.796h-1.827l2.501-12.095h.198l3.324%206.533.988%202.19.988-2.19%203.258-6.533h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.929%205.644h-.098l-2.914-5.644-.757-1.71-.345%201.71zm1.958-3.42-.726%203.663a1.255%201.255%200%200%201-1.232%201.011h-1.827a1.255%201.255%200%200%201-1.229-1.509l2.501-12.095a1.255%201.255%200%200%201%201.23-1.001h.197a1.25%201.25%200%200%201%201.12.685l3.19%206.273%203.125-6.263a1.25%201.25%200%200%201%201.123-.695h.181a1.255%201.255%200%200%201%201.227.991l1.443%206.71a5%205%200%200%201%20.314-.787l.009-.016a4.6%204.6%200%200%201%201.777-1.887c.782-.46%201.668-.667%202.611-.667a4.6%204.6%200%200%201%201.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255%201.255%200%200%201%201.212.925%201.255%201.255%200%200%201%201.212-.925h1.711c.284%200%20.545.094.755.252.613-.3%201.312-.45%202.075-.45%201.356%200%202.557.445%203.482%201.4q.47.48.763%201.064V4.701a1.255%201.255%200%200%201%201.255-1.255h1.86A1.255%201.255%200%200%201%2054.44%204.7v9.194h2.217c.19%200%20.37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42%202.42%200%200%201-.682-1.71c0-.665.267-1.253.735-1.7a2.45%202.45%200%200%201%201.722-.674%202.43%202.43%200%200%201%201.705.675q.318.302.504.683V4.7a1.255%201.255%200%200%201%201.255-1.255h1.744A1.255%201.255%200%200%201%2065.812%204.7v3.335a4.8%204.8%200%200%201%201.526-.246c.938%200%201.817.214%202.59.69a4.47%204.47%200%200%201%201.67%201.743v-.98a1.255%201.255%200%200%201%201.256-1.256h1.777c.233%200%20.451.064.639.174a3.4%203.4%200%200%201%201.567-.372c.346%200%20.861.02%201.285.232a1.25%201.25%200%200%201%20.689%201.004%204.7%204.7%200%200%201%20.853-.588c.795-.44%201.675-.647%202.61-.647%201.385%200%202.65.39%203.525%201.396.836.938%201.168%202.173%201.168%203.528q-.001.515-.056%201.051a1.255%201.255%200%200%201-.947%201.09l.408.952a1.255%201.255%200%200%201-.477%201.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06%200-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8%205.8%200%200%201-.548-2.512q0-.429.053-.843a1.3%201.3%200%200%201-.333-.086l-.166-.004c-.223%200-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255%201.255%200%200%201-1.256%201.256h-1.777a1.255%201.255%200%200%201-1.256-1.256V15.69l-.032.057a4.8%204.8%200%200%201-1.86%201.833%205.04%205.04%200%200%201-2.484.634%204.5%204.5%200%200%201-1.935-.424%201.25%201.25%200%200%201-.764.258h-1.71a1.255%201.255%200%200%201-1.256-1.255V7.687a2.4%202.4%200%200%201-.428.625c.253.23.412.561.412.93v7.553a1.255%201.255%200%200%201-1.256%201.255h-1.843a1.25%201.25%200%200%201-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255%201.255%200%200%201-1.256-1.255v-1.251l-.061.117a4.7%204.7%200%200%201-1.782%201.884%204.77%204.77%200%200%201-2.485.67%205.6%205.6%200%200%201-1.485-.188l.009%202.764a1.255%201.255%200%200%201-1.255%201.259h-1.729a1.255%201.255%200%200%201-1.255-1.255v-3.537a1.255%201.255%200%200%201-1.167.793h-1.679a1.25%201.25%200%200%201-.77-.263%204.5%204.5%200%200%201-1.945.429c-.885%200-1.724-.21-2.495-.632l-.017-.01a5%205%200%200%201-1.081-.836%201.255%201.255%200%200%201-1.254%201.312h-1.81a1.255%201.255%200%200%201-1.228-.99l-.782-3.625-2.044%203.939a1.25%201.25%200%200%201-1.115.676h-.098a1.25%201.25%200%200%201-1.116-.68l-2.061-3.994zM35.92%2016.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033%201.332h1.678V9.242h-1.694l-.033%201.267q-.133-.329-.526-.658l-.032-.028a3.2%203.2%200%200%200-.668-.428l-.27-.12a3.3%203.3%200%200%200-1.235-.23q-1.136-.001-1.974.493a3.36%203.36%200%200%200-1.3%201.382q-.445.89-.444%202.074%200%201.2.51%202.107a3.8%203.8%200%200%200%201.382%201.381%203.9%203.9%200%200%200%201.893.477q.795%200%201.455-.33zm-2.789-5.38q-.576.675-.575%201.762%200%201.102.559%201.794.576.675%201.645.675a2.25%202.25%200%200%200%20.934-.19%202.2%202.2%200%200%200%20.468-.29l.178-.161a2.2%202.2%200%200%200%20.397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2%202.2%200%200%200-.633-.709l-.13-.086-.047-.028a2.1%202.1%200%200%200-1.073-.285q-1.052%200-1.629.692zm2.316%202.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96%200%200%200-.353-.389.85.85%200%200%200-.464-.127c-.4%200-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945%200%20.506.122.801.27.99.097.11.266.224.68.224.303%200%20.504-.09.687-.269zm7.545%201.705a2.6%202.6%200%200%200%20.331.423q.319.33.755.548l.173.074q.65.255%201.49.255%201.02%200%201.844-.493a3.45%203.45%200%200%200%201.316-1.4q.493-.904.493-2.089%200-1.909-.988-2.913-.988-1.02-2.584-1.02-.898%200-1.575.347a3%203%200%200%200-.415.262l-.199.166a3.4%203.4%200%200%200-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296%201.119.297%201.07%200%201.645-.675.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.435%200-.835.16a2%202%200%200%200-.284.136%202%202%200%200%200-.363.254%202.2%202.2%200%200%200-.46.569l-.082.162a2.6%202.6%200%200%200-.213%201.072v.115q0%20.707.296%201.267l.135.211zm.964-.818a1.1%201.1%200%200%200%20.367.385.94.94%200%200%200%20.476.118c.423%200%20.59-.117.687-.23.159-.194.28-.478.28-.95%200-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1%201%200%200%200-.503.135l-.012.007a.86.86%200%200%200-.335.343c-.073.133-.132.324-.132.614v.115a1.4%201.4%200%200%200%20.14.66zm15.7-6.222q.347-.346.346-.856a1.05%201.05%200%200%200-.345-.79%201.18%201.18%200%200%200-.84-.329q-.51%200-.855.33a1.05%201.05%200%200%200-.346.79q0%20.51.346.855.345.346.856.346.51%200%20.839-.346zm4.337%209.314.033-1.332q.191.403.59.747l.098.081a4%204%200%200%200%20.316.224l.223.122a3.2%203.2%200%200%200%201.44.322%203.8%203.8%200%200%200%201.875-.477%203.5%203.5%200%200%200%201.382-1.366q.527-.89.526-2.09%200-1.184-.444-2.073a3.24%203.24%200%200%200-1.283-1.399q-.823-.51-1.942-.51a3.5%203.5%200%200%200-1.527.344l-.086.043-.165.09a3%203%200%200%200-.33.214q-.432.315-.656.707a2%202%200%200%200-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5%202.5%200%200%200%20.566.7q.117.098.245.18l.144.08a2.1%202.1%200%200%200%20.975.232q1.07%200%201.645-.675.576-.69.576-1.778%200-1.102-.576-1.777-.56-.691-1.645-.692a2.2%202.2%200%200%200-1.015.235q-.22.113-.415.282l-.15.142a2.1%202.1%200%200%200-.42.594q-.223.479-.223%201.1v.115q0%20.705.293%201.26zm2.616-.293c.157-.191.28-.479.28-.967%200-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87%200%200%200-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0%20.285.057.499.144.669a1.1%201.1%200%200%200%20.367.405c.137.082.28.123.455.123.423%200%20.59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493%200%20.642.099l.247-1.794q-.196-.099-.717-.099a2.3%202.3%200%200%200-.545.063%202%202%200%200%200-.411.148%202.2%202.2%200%200%200-.4.249%202.5%202.5%200%200%200-.485.499%202.7%202.7%200%200%200-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5%201.5%200%200%201%20.466-.636%202.5%202.5%200%200%201%20.399-.253%202%202%200%200%201%20.224-.099zm9.784%202.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46%203.46%200%200%200-1.4%201.382q-.493.906-.493%202.106%200%201.07.428%201.975.428.89%201.332%201.432.906.526%202.255.526.973%200%201.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954%200-1.497-.444a1.6%201.6%200%200%201-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1%201%200%200%200-.156-.176q-.46-.428-1.316-.428-.986%200-1.494.604-.379.45-.494%201.234zm-27.053%202.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z%22%2F%3E%3Cpath%20fill%3D%22%23fff%22%20d%3D%22m19.63%2011.151-.757-1.71-.345%201.71-1.12%205.644h-1.827L18.083%204.7h.197l3.325%206.533.988%202.19.988-2.19L26.839%204.7h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.93%205.644h-.098l-2.913-5.644zm14.836%205.81q-1.02%200-1.893-.478a3.8%203.8%200%200%201-1.381-1.382q-.51-.906-.51-2.106%200-1.185.444-2.074a3.36%203.36%200%200%201%201.3-1.382q.839-.494%201.974-.494a3.3%203.3%200%200%201%201.234.231%203.3%203.3%200%200%201%20.97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02%201.053a3.17%203.17%200%200%201-1.662.444zm.296-1.482q.938%200%201.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2%202.2%200%200%200-.807-.872%202.1%202.1%200%200%200-1.119-.313q-1.053%200-1.629.692-.575.675-.575%201.76%200%201.103.559%201.795.577.675%201.645.675zm6.521-6.237h1.711v1.4q.906-1.597%202.83-1.597%201.596%200%202.584%201.02.988%201.005.988%202.914%200%201.185-.493%202.09a3.46%203.46%200%200%201-1.316%201.399%203.5%203.5%200%200%201-1.844.493q-.954%200-1.662-.329a2.67%202.67%200%200%201-1.086-.97l.017%205.134h-1.728zm4.048%206.22q1.07%200%201.645-.674.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.592%200-1.12.296-.51.28-.822.823-.296.527-.296%201.234v.115q0%20.708.296%201.267.313.543.823.855.51.296%201.119.297z%22%2F%3E%3Cpath%20fill%3D%22%23e1e3e9%22%20d%3D%22M51.325%204.7h1.86v10.45h3.473v1.646h-5.333zm7.12%204.542h1.843v7.553h-1.843zm.905-1.415a1.16%201.16%200%200%201-.856-.346%201.17%201.17%200%200%201-.346-.856%201.05%201.05%200%200%201%20.346-.79q.346-.329.856-.329.494%200%20.839.33a1.05%201.05%200%200%201%20.345.79%201.16%201.16%200%200%201-.345.855q-.33.346-.84.346zm7.875%209.133a3.17%203.17%200%200%201-1.662-.444q-.723-.46-1.004-1.053l-.033%201.332h-1.71V4.701h1.743v4.657l-.082%201.283q.279-.658%201.086-1.119a3.5%203.5%200%200%201%201.778-.477q1.119%200%201.942.51a3.24%203.24%200%200%201%201.283%201.4q.445.888.444%202.072%200%201.201-.526%202.09a3.5%203.5%200%200%201-1.382%201.366%203.8%203.8%200%200%201-1.876.477zm-.296-1.481q1.069%200%201.645-.675.577-.69.577-1.778%200-1.102-.577-1.776-.56-.691-1.645-.692a2.12%202.12%200%200%200-1.58.659q-.642.641-.642%201.694v.115q0%20.71.296%201.267a2.4%202.4%200%200%200%20.807.872%202.1%202.1%200%200%200%201.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14%202.14%200%200%201%201.349-.46q.527%200%20.724.098l-.247%201.794q-.149-.099-.642-.099-.774%200-1.416.494-.626.493-.626%201.58v3.883h-1.777V9.242zm9.534%207.718q-1.35%200-2.255-.526-.904-.543-1.332-1.432a4.6%204.6%200%200%201-.428-1.975q0-1.2.493-2.106a3.46%203.46%200%200%201%201.4-1.382q.889-.495%202.007-.494%201.744%200%202.584.97.855.956.856%202.7%200%20.444-.05.92h-5.43q.18%201.005.708%201.45.542.443%201.497.443.79%200%201.3-.131a4%204%200%200%200%20.938-.362l.542%201.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728%200-1.991%201.86z%22%2F%3E%3Cpath%20d%3D%22M5.074%2015.948a.484.657%200%200%200-.486.659v1.84a.484.657%200%200%200%20.486.659h4.101a.484.657%200%200%200%20.486-.659v-1.84a.484.657%200%200%200-.486-.659zm3.56%201.16H5.617v.838h3.017z%22%20style%3D%22fill%3A%23fff%3Bfill-rule%3Aevenodd%3Bstroke-width%3A1.03600001%22%2F%3E%3Cg%20style%3D%22stroke-width%3A1.12603545%22%3E%3Cpath%20d%3D%22M-9.408-1.416c-3.833-.025-7.056%202.912-7.08%206.615-.02%203.08%201.653%204.832%203.107%206.268.903.892%201.721%201.74%202.32%202.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87%201.87%200%200%200-.362%201.121l-.011%201.877c-.003.402.104.787.347%201.125.244.338.688.653%201.23.656l4.142.028c.542.003.99-.306%201.238-.641a1.87%201.87%200%200%200%20.363-1.121l.012-1.875a1.87%201.87%200%200%200-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145%201.425-1.983%202.348-2.87%201.473-1.414%203.18-3.149%203.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006%201.1v.002c3.274.02%205.92%202.532%205.9%205.6-.017%202.706-1.39%204.026-2.863%205.44-1.034.994-2.118%202.033-2.814%203.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34%200%200%201-.226.084.34.34%200%200%201-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067%202.7-5.545%205.975-5.523m-.02%202.826c-1.62-.01-2.944%201.315-2.955%202.96-.01%201.646%201.295%202.988%202.916%202.999h.002c1.621.01%202.943-1.316%202.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005%201.1c1.017.006%201.829.83%201.822%201.89s-.83%201.874-1.848%201.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874%201.848-1.868m-2.155%2011.857%204.14.025c.271.002.49.305.487.676l-.013%201.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668%22%20style%3D%22color%3A%23000%3Bfont-style%3Anormal%3Bfont-variant%3Anormal%3Bfont-weight%3A400%3Bfont-stretch%3Anormal%3Bfont-size%3Amedium%3Bline-height%3Anormal%3Bfont-family%3Asans-serif%3Bfont-variant-ligatures%3Anormal%3Bfont-variant-position%3Anormal%3Bfont-variant-caps%3Anormal%3Bfont-variant-numeric%3Anormal%3Bfont-variant-alternates%3Anormal%3Bfont-feature-settings%3Anormal%3Btext-indent%3A0%3Btext-align%3Astart%3Btext-decoration%3Anone%3Btext-decoration-line%3Anone%3Btext-decoration-style%3Asolid%3Btext-decoration-color%3A%23000%3Bletter-spacing%3Anormal%3Bword-spacing%3Anormal%3Btext-transform%3Anone%3Bwriting-mode%3Alr-tb%3Bdirection%3Altr%3Btext-orientation%3Amixed%3Bdominant-baseline%3Aauto%3Bbaseline-shift%3Abaseline%3Btext-anchor%3Astart%3Bwhite-space%3Anormal%3Bshape-padding%3A0%3Bclip-rule%3Aevenodd%3Bdisplay%3Ainline%3Boverflow%3Avisible%3Bvisibility%3Avisible%3Bopacity%3A1%3Bisolation%3Aauto%3Bmix-blend-mode%3Anormal%3Bcolor-interpolation%3AsRGB%3Bcolor-interpolation-filters%3AlinearRGB%3Bsolid-color%3A%23000%3Bsolid-opacity%3A1%3Bvector-effect%3Anone%3Bfill%3A%23000%3Bfill-opacity%3A.4%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-linecap%3Abutt%3Bstroke-linejoin%3Amiter%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-dashoffset%3A0%3Bstroke-opacity%3A1%3Bcolor-rendering%3Aauto%3Bimage-rendering%3Aauto%3Bshape-rendering%3Aauto%3Btext-rendering%3Aauto%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-9.415-.316C-12.69-.338-15.37%202.14-15.39%205.207c-.017%202.716%201.326%204.041%202.78%205.477%201.013%201%202.081%202.055%202.78%203.67l.092.076a.34.34%200%200%200%20.225.086.34.34%200%200%200%20.227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6%201.78-2.64%202.814-3.634%201.473-1.414%202.847-2.733%202.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057%208.784c1.621.011%202.944-1.315%202.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945%201.315-2.955%202.96s1.295%202.989%202.916%203%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23e1e3e9%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-11.594%2015.465c-.27-.002-.492.297-.494.668l-.012%201.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23fff%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E")}a.maplibregl-ctrl-logo.maplibregl-compact{width:14px}@media (forced-colors:active){a.maplibregl-ctrl-logo{background-color:transparent;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2288%22%20height%3D%2223%22%20fill%3D%22none%22%3E%3Cpath%20fill%3D%22%23000%22%20fill-opacity%3D%22.4%22%20fill-rule%3D%22evenodd%22%20d%3D%22M17.408%2016.796h-1.827l2.501-12.095h.198l3.324%206.533.988%202.19.988-2.19%203.258-6.533h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.929%205.644h-.098l-2.914-5.644-.757-1.71-.345%201.71zm1.958-3.42-.726%203.663a1.255%201.255%200%200%201-1.232%201.011h-1.827a1.255%201.255%200%200%201-1.229-1.509l2.501-12.095a1.255%201.255%200%200%201%201.23-1.001h.197a1.25%201.25%200%200%201%201.12.685l3.19%206.273%203.125-6.263a1.25%201.25%200%200%201%201.123-.695h.181a1.255%201.255%200%200%201%201.227.991l1.443%206.71a5%205%200%200%201%20.314-.787l.009-.016a4.6%204.6%200%200%201%201.777-1.887c.782-.46%201.668-.667%202.611-.667a4.6%204.6%200%200%201%201.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255%201.255%200%200%201%201.212.925%201.255%201.255%200%200%201%201.212-.925h1.711c.284%200%20.545.094.755.252.613-.3%201.312-.45%202.075-.45%201.356%200%202.557.445%203.482%201.4q.47.48.763%201.064V4.701a1.255%201.255%200%200%201%201.255-1.255h1.86A1.255%201.255%200%200%201%2054.44%204.7v9.194h2.217c.19%200%20.37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42%202.42%200%200%201-.682-1.71c0-.665.267-1.253.735-1.7a2.45%202.45%200%200%201%201.722-.674%202.43%202.43%200%200%201%201.705.675q.318.302.504.683V4.7a1.255%201.255%200%200%201%201.255-1.255h1.744A1.255%201.255%200%200%201%2065.812%204.7v3.335a4.8%204.8%200%200%201%201.526-.246c.938%200%201.817.214%202.59.69a4.47%204.47%200%200%201%201.67%201.743v-.98a1.255%201.255%200%200%201%201.256-1.256h1.777c.233%200%20.451.064.639.174a3.4%203.4%200%200%201%201.567-.372c.346%200%20.861.02%201.285.232a1.25%201.25%200%200%201%20.689%201.004%204.7%204.7%200%200%201%20.853-.588c.795-.44%201.675-.647%202.61-.647%201.385%200%202.65.39%203.525%201.396.836.938%201.168%202.173%201.168%203.528q-.001.515-.056%201.051a1.255%201.255%200%200%201-.947%201.09l.408.952a1.255%201.255%200%200%201-.477%201.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06%200-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8%205.8%200%200%201-.548-2.512q0-.429.053-.843a1.3%201.3%200%200%201-.333-.086l-.166-.004c-.223%200-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255%201.255%200%200%201-1.256%201.256h-1.777a1.255%201.255%200%200%201-1.256-1.256V15.69l-.032.057a4.8%204.8%200%200%201-1.86%201.833%205.04%205.04%200%200%201-2.484.634%204.5%204.5%200%200%201-1.935-.424%201.25%201.25%200%200%201-.764.258h-1.71a1.255%201.255%200%200%201-1.256-1.255V7.687a2.4%202.4%200%200%201-.428.625c.253.23.412.561.412.93v7.553a1.255%201.255%200%200%201-1.256%201.255h-1.843a1.25%201.25%200%200%201-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255%201.255%200%200%201-1.256-1.255v-1.251l-.061.117a4.7%204.7%200%200%201-1.782%201.884%204.77%204.77%200%200%201-2.485.67%205.6%205.6%200%200%201-1.485-.188l.009%202.764a1.255%201.255%200%200%201-1.255%201.259h-1.729a1.255%201.255%200%200%201-1.255-1.255v-3.537a1.255%201.255%200%200%201-1.167.793h-1.679a1.25%201.25%200%200%201-.77-.263%204.5%204.5%200%200%201-1.945.429c-.885%200-1.724-.21-2.495-.632l-.017-.01a5%205%200%200%201-1.081-.836%201.255%201.255%200%200%201-1.254%201.312h-1.81a1.255%201.255%200%200%201-1.228-.99l-.782-3.625-2.044%203.939a1.25%201.25%200%200%201-1.115.676h-.098a1.25%201.25%200%200%201-1.116-.68l-2.061-3.994zM35.92%2016.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033%201.332h1.678V9.242h-1.694l-.033%201.267q-.133-.329-.526-.658l-.032-.028a3.2%203.2%200%200%200-.668-.428l-.27-.12a3.3%203.3%200%200%200-1.235-.23q-1.136-.001-1.974.493a3.36%203.36%200%200%200-1.3%201.382q-.445.89-.444%202.074%200%201.2.51%202.107a3.8%203.8%200%200%200%201.382%201.381%203.9%203.9%200%200%200%201.893.477q.795%200%201.455-.33zm-2.789-5.38q-.576.675-.575%201.762%200%201.102.559%201.794.576.675%201.645.675a2.25%202.25%200%200%200%20.934-.19%202.2%202.2%200%200%200%20.468-.29l.178-.161a2.2%202.2%200%200%200%20.397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2%202.2%200%200%200-.633-.709l-.13-.086-.047-.028a2.1%202.1%200%200%200-1.073-.285q-1.052%200-1.629.692zm2.316%202.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96%200%200%200-.353-.389.85.85%200%200%200-.464-.127c-.4%200-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945%200%20.506.122.801.27.99.097.11.266.224.68.224.303%200%20.504-.09.687-.269zm7.545%201.705a2.6%202.6%200%200%200%20.331.423q.319.33.755.548l.173.074q.65.255%201.49.255%201.02%200%201.844-.493a3.45%203.45%200%200%200%201.316-1.4q.493-.904.493-2.089%200-1.909-.988-2.913-.988-1.02-2.584-1.02-.898%200-1.575.347a3%203%200%200%200-.415.262l-.199.166a3.4%203.4%200%200%200-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296%201.119.297%201.07%200%201.645-.675.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.435%200-.835.16a2%202%200%200%200-.284.136%202%202%200%200%200-.363.254%202.2%202.2%200%200%200-.46.569l-.082.162a2.6%202.6%200%200%200-.213%201.072v.115q0%20.707.296%201.267l.135.211zm.964-.818a1.1%201.1%200%200%200%20.367.385.94.94%200%200%200%20.476.118c.423%200%20.59-.117.687-.23.159-.194.28-.478.28-.95%200-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1%201%200%200%200-.503.135l-.012.007a.86.86%200%200%200-.335.343c-.073.133-.132.324-.132.614v.115a1.4%201.4%200%200%200%20.14.66zm15.7-6.222q.347-.346.346-.856a1.05%201.05%200%200%200-.345-.79%201.18%201.18%200%200%200-.84-.329q-.51%200-.855.33a1.05%201.05%200%200%200-.346.79q0%20.51.346.855.345.346.856.346.51%200%20.839-.346zm4.337%209.314.033-1.332q.191.403.59.747l.098.081a4%204%200%200%200%20.316.224l.223.122a3.2%203.2%200%200%200%201.44.322%203.8%203.8%200%200%200%201.875-.477%203.5%203.5%200%200%200%201.382-1.366q.527-.89.526-2.09%200-1.184-.444-2.073a3.24%203.24%200%200%200-1.283-1.399q-.823-.51-1.942-.51a3.5%203.5%200%200%200-1.527.344l-.086.043-.165.09a3%203%200%200%200-.33.214q-.432.315-.656.707a2%202%200%200%200-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5%202.5%200%200%200%20.566.7q.117.098.245.18l.144.08a2.1%202.1%200%200%200%20.975.232q1.07%200%201.645-.675.576-.69.576-1.778%200-1.102-.576-1.777-.56-.691-1.645-.692a2.2%202.2%200%200%200-1.015.235q-.22.113-.415.282l-.15.142a2.1%202.1%200%200%200-.42.594q-.223.479-.223%201.1v.115q0%20.705.293%201.26zm2.616-.293c.157-.191.28-.479.28-.967%200-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87%200%200%200-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0%20.285.057.499.144.669a1.1%201.1%200%200%200%20.367.405c.137.082.28.123.455.123.423%200%20.59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493%200%20.642.099l.247-1.794q-.196-.099-.717-.099a2.3%202.3%200%200%200-.545.063%202%202%200%200%200-.411.148%202.2%202.2%200%200%200-.4.249%202.5%202.5%200%200%200-.485.499%202.7%202.7%200%200%200-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5%201.5%200%200%201%20.466-.636%202.5%202.5%200%200%201%20.399-.253%202%202%200%200%201%20.224-.099zm9.784%202.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46%203.46%200%200%200-1.4%201.382q-.493.906-.493%202.106%200%201.07.428%201.975.428.89%201.332%201.432.906.526%202.255.526.973%200%201.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954%200-1.497-.444a1.6%201.6%200%200%201-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1%201%200%200%200-.156-.176q-.46-.428-1.316-.428-.986%200-1.494.604-.379.45-.494%201.234zm-27.053%202.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z%22%2F%3E%3Cpath%20fill%3D%22%23fff%22%20d%3D%22m19.63%2011.151-.757-1.71-.345%201.71-1.12%205.644h-1.827L18.083%204.7h.197l3.325%206.533.988%202.19.988-2.19L26.839%204.7h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.93%205.644h-.098l-2.913-5.644zm14.836%205.81q-1.02%200-1.893-.478a3.8%203.8%200%200%201-1.381-1.382q-.51-.906-.51-2.106%200-1.185.444-2.074a3.36%203.36%200%200%201%201.3-1.382q.839-.494%201.974-.494a3.3%203.3%200%200%201%201.234.231%203.3%203.3%200%200%201%20.97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02%201.053a3.17%203.17%200%200%201-1.662.444zm.296-1.482q.938%200%201.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2%202.2%200%200%200-.807-.872%202.1%202.1%200%200%200-1.119-.313q-1.053%200-1.629.692-.575.675-.575%201.76%200%201.103.559%201.795.577.675%201.645.675zm6.521-6.237h1.711v1.4q.906-1.597%202.83-1.597%201.596%200%202.584%201.02.988%201.005.988%202.914%200%201.185-.493%202.09a3.46%203.46%200%200%201-1.316%201.399%203.5%203.5%200%200%201-1.844.493q-.954%200-1.662-.329a2.67%202.67%200%200%201-1.086-.97l.017%205.134h-1.728zm4.048%206.22q1.07%200%201.645-.674.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.592%200-1.12.296-.51.28-.822.823-.296.527-.296%201.234v.115q0%20.708.296%201.267.313.543.823.855.51.296%201.119.297z%22%2F%3E%3Cpath%20fill%3D%22%23e1e3e9%22%20d%3D%22M51.325%204.7h1.86v10.45h3.473v1.646h-5.333zm7.12%204.542h1.843v7.553h-1.843zm.905-1.415a1.16%201.16%200%200%201-.856-.346%201.17%201.17%200%200%201-.346-.856%201.05%201.05%200%200%201%20.346-.79q.346-.329.856-.329.494%200%20.839.33a1.05%201.05%200%200%201%20.345.79%201.16%201.16%200%200%201-.345.855q-.33.346-.84.346zm7.875%209.133a3.17%203.17%200%200%201-1.662-.444q-.723-.46-1.004-1.053l-.033%201.332h-1.71V4.701h1.743v4.657l-.082%201.283q.279-.658%201.086-1.119a3.5%203.5%200%200%201%201.778-.477q1.119%200%201.942.51a3.24%203.24%200%200%201%201.283%201.4q.445.888.444%202.072%200%201.201-.526%202.09a3.5%203.5%200%200%201-1.382%201.366%203.8%203.8%200%200%201-1.876.477zm-.296-1.481q1.069%200%201.645-.675.577-.69.577-1.778%200-1.102-.577-1.776-.56-.691-1.645-.692a2.12%202.12%200%200%200-1.58.659q-.642.641-.642%201.694v.115q0%20.71.296%201.267a2.4%202.4%200%200%200%20.807.872%202.1%202.1%200%200%200%201.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14%202.14%200%200%201%201.349-.46q.527%200%20.724.098l-.247%201.794q-.149-.099-.642-.099-.774%200-1.416.494-.626.493-.626%201.58v3.883h-1.777V9.242zm9.534%207.718q-1.35%200-2.255-.526-.904-.543-1.332-1.432a4.6%204.6%200%200%201-.428-1.975q0-1.2.493-2.106a3.46%203.46%200%200%201%201.4-1.382q.889-.495%202.007-.494%201.744%200%202.584.97.855.956.856%202.7%200%20.444-.05.92h-5.43q.18%201.005.708%201.45.542.443%201.497.443.79%200%201.3-.131a4%204%200%200%200%20.938-.362l.542%201.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728%200-1.991%201.86z%22%2F%3E%3Cpath%20d%3D%22M5.074%2015.948a.484.657%200%200%200-.486.659v1.84a.484.657%200%200%200%20.486.659h4.101a.484.657%200%200%200%20.486-.659v-1.84a.484.657%200%200%200-.486-.659zm3.56%201.16H5.617v.838h3.017z%22%20style%3D%22fill%3A%23fff%3Bfill-rule%3Aevenodd%3Bstroke-width%3A1.03600001%22%2F%3E%3Cg%20style%3D%22stroke-width%3A1.12603545%22%3E%3Cpath%20d%3D%22M-9.408-1.416c-3.833-.025-7.056%202.912-7.08%206.615-.02%203.08%201.653%204.832%203.107%206.268.903.892%201.721%201.74%202.32%202.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87%201.87%200%200%200-.362%201.121l-.011%201.877c-.003.402.104.787.347%201.125.244.338.688.653%201.23.656l4.142.028c.542.003.99-.306%201.238-.641a1.87%201.87%200%200%200%20.363-1.121l.012-1.875a1.87%201.87%200%200%200-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145%201.425-1.983%202.348-2.87%201.473-1.414%203.18-3.149%203.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006%201.1v.002c3.274.02%205.92%202.532%205.9%205.6-.017%202.706-1.39%204.026-2.863%205.44-1.034.994-2.118%202.033-2.814%203.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34%200%200%201-.226.084.34.34%200%200%201-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067%202.7-5.545%205.975-5.523m-.02%202.826c-1.62-.01-2.944%201.315-2.955%202.96-.01%201.646%201.295%202.988%202.916%202.999h.002c1.621.01%202.943-1.316%202.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005%201.1c1.017.006%201.829.83%201.822%201.89s-.83%201.874-1.848%201.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874%201.848-1.868m-2.155%2011.857%204.14.025c.271.002.49.305.487.676l-.013%201.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668%22%20style%3D%22color%3A%23000%3Bfont-style%3Anormal%3Bfont-variant%3Anormal%3Bfont-weight%3A400%3Bfont-stretch%3Anormal%3Bfont-size%3Amedium%3Bline-height%3Anormal%3Bfont-family%3Asans-serif%3Bfont-variant-ligatures%3Anormal%3Bfont-variant-position%3Anormal%3Bfont-variant-caps%3Anormal%3Bfont-variant-numeric%3Anormal%3Bfont-variant-alternates%3Anormal%3Bfont-feature-settings%3Anormal%3Btext-indent%3A0%3Btext-align%3Astart%3Btext-decoration%3Anone%3Btext-decoration-line%3Anone%3Btext-decoration-style%3Asolid%3Btext-decoration-color%3A%23000%3Bletter-spacing%3Anormal%3Bword-spacing%3Anormal%3Btext-transform%3Anone%3Bwriting-mode%3Alr-tb%3Bdirection%3Altr%3Btext-orientation%3Amixed%3Bdominant-baseline%3Aauto%3Bbaseline-shift%3Abaseline%3Btext-anchor%3Astart%3Bwhite-space%3Anormal%3Bshape-padding%3A0%3Bclip-rule%3Aevenodd%3Bdisplay%3Ainline%3Boverflow%3Avisible%3Bvisibility%3Avisible%3Bopacity%3A1%3Bisolation%3Aauto%3Bmix-blend-mode%3Anormal%3Bcolor-interpolation%3AsRGB%3Bcolor-interpolation-filters%3AlinearRGB%3Bsolid-color%3A%23000%3Bsolid-opacity%3A1%3Bvector-effect%3Anone%3Bfill%3A%23000%3Bfill-opacity%3A.4%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-linecap%3Abutt%3Bstroke-linejoin%3Amiter%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-dashoffset%3A0%3Bstroke-opacity%3A1%3Bcolor-rendering%3Aauto%3Bimage-rendering%3Aauto%3Bshape-rendering%3Aauto%3Btext-rendering%3Aauto%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-9.415-.316C-12.69-.338-15.37%202.14-15.39%205.207c-.017%202.716%201.326%204.041%202.78%205.477%201.013%201%202.081%202.055%202.78%203.67l.092.076a.34.34%200%200%200%20.225.086.34.34%200%200%200%20.227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6%201.78-2.64%202.814-3.634%201.473-1.414%202.847-2.733%202.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057%208.784c1.621.011%202.944-1.315%202.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945%201.315-2.955%202.96s1.295%202.989%202.916%203%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23e1e3e9%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-11.594%2015.465c-.27-.002-.492.297-.494.668l-.012%201.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23fff%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){a.maplibregl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2288%22%20height%3D%2223%22%20fill%3D%22none%22%3E%3Cpath%20fill%3D%22%23000%22%20fill-opacity%3D%22.4%22%20fill-rule%3D%22evenodd%22%20d%3D%22M17.408%2016.796h-1.827l2.501-12.095h.198l3.324%206.533.988%202.19.988-2.19%203.258-6.533h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.929%205.644h-.098l-2.914-5.644-.757-1.71-.345%201.71zm1.958-3.42-.726%203.663a1.255%201.255%200%200%201-1.232%201.011h-1.827a1.255%201.255%200%200%201-1.229-1.509l2.501-12.095a1.255%201.255%200%200%201%201.23-1.001h.197a1.25%201.25%200%200%201%201.12.685l3.19%206.273%203.125-6.263a1.25%201.25%200%200%201%201.123-.695h.181a1.255%201.255%200%200%201%201.227.991l1.443%206.71a5%205%200%200%201%20.314-.787l.009-.016a4.6%204.6%200%200%201%201.777-1.887c.782-.46%201.668-.667%202.611-.667a4.6%204.6%200%200%201%201.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255%201.255%200%200%201%201.212.925%201.255%201.255%200%200%201%201.212-.925h1.711c.284%200%20.545.094.755.252.613-.3%201.312-.45%202.075-.45%201.356%200%202.557.445%203.482%201.4q.47.48.763%201.064V4.701a1.255%201.255%200%200%201%201.255-1.255h1.86A1.255%201.255%200%200%201%2054.44%204.7v9.194h2.217c.19%200%20.37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42%202.42%200%200%201-.682-1.71c0-.665.267-1.253.735-1.7a2.45%202.45%200%200%201%201.722-.674%202.43%202.43%200%200%201%201.705.675q.318.302.504.683V4.7a1.255%201.255%200%200%201%201.255-1.255h1.744A1.255%201.255%200%200%201%2065.812%204.7v3.335a4.8%204.8%200%200%201%201.526-.246c.938%200%201.817.214%202.59.69a4.47%204.47%200%200%201%201.67%201.743v-.98a1.255%201.255%200%200%201%201.256-1.256h1.777c.233%200%20.451.064.639.174a3.4%203.4%200%200%201%201.567-.372c.346%200%20.861.02%201.285.232a1.25%201.25%200%200%201%20.689%201.004%204.7%204.7%200%200%201%20.853-.588c.795-.44%201.675-.647%202.61-.647%201.385%200%202.65.39%203.525%201.396.836.938%201.168%202.173%201.168%203.528q-.001.515-.056%201.051a1.255%201.255%200%200%201-.947%201.09l.408.952a1.255%201.255%200%200%201-.477%201.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06%200-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8%205.8%200%200%201-.548-2.512q0-.429.053-.843a1.3%201.3%200%200%201-.333-.086l-.166-.004c-.223%200-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255%201.255%200%200%201-1.256%201.256h-1.777a1.255%201.255%200%200%201-1.256-1.256V15.69l-.032.057a4.8%204.8%200%200%201-1.86%201.833%205.04%205.04%200%200%201-2.484.634%204.5%204.5%200%200%201-1.935-.424%201.25%201.25%200%200%201-.764.258h-1.71a1.255%201.255%200%200%201-1.256-1.255V7.687a2.4%202.4%200%200%201-.428.625c.253.23.412.561.412.93v7.553a1.255%201.255%200%200%201-1.256%201.255h-1.843a1.25%201.25%200%200%201-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255%201.255%200%200%201-1.256-1.255v-1.251l-.061.117a4.7%204.7%200%200%201-1.782%201.884%204.77%204.77%200%200%201-2.485.67%205.6%205.6%200%200%201-1.485-.188l.009%202.764a1.255%201.255%200%200%201-1.255%201.259h-1.729a1.255%201.255%200%200%201-1.255-1.255v-3.537a1.255%201.255%200%200%201-1.167.793h-1.679a1.25%201.25%200%200%201-.77-.263%204.5%204.5%200%200%201-1.945.429c-.885%200-1.724-.21-2.495-.632l-.017-.01a5%205%200%200%201-1.081-.836%201.255%201.255%200%200%201-1.254%201.312h-1.81a1.255%201.255%200%200%201-1.228-.99l-.782-3.625-2.044%203.939a1.25%201.25%200%200%201-1.115.676h-.098a1.25%201.25%200%200%201-1.116-.68l-2.061-3.994zM35.92%2016.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033%201.332h1.678V9.242h-1.694l-.033%201.267q-.133-.329-.526-.658l-.032-.028a3.2%203.2%200%200%200-.668-.428l-.27-.12a3.3%203.3%200%200%200-1.235-.23q-1.136-.001-1.974.493a3.36%203.36%200%200%200-1.3%201.382q-.445.89-.444%202.074%200%201.2.51%202.107a3.8%203.8%200%200%200%201.382%201.381%203.9%203.9%200%200%200%201.893.477q.795%200%201.455-.33zm-2.789-5.38q-.576.675-.575%201.762%200%201.102.559%201.794.576.675%201.645.675a2.25%202.25%200%200%200%20.934-.19%202.2%202.2%200%200%200%20.468-.29l.178-.161a2.2%202.2%200%200%200%20.397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2%202.2%200%200%200-.633-.709l-.13-.086-.047-.028a2.1%202.1%200%200%200-1.073-.285q-1.052%200-1.629.692zm2.316%202.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96%200%200%200-.353-.389.85.85%200%200%200-.464-.127c-.4%200-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945%200%20.506.122.801.27.99.097.11.266.224.68.224.303%200%20.504-.09.687-.269zm7.545%201.705a2.6%202.6%200%200%200%20.331.423q.319.33.755.548l.173.074q.65.255%201.49.255%201.02%200%201.844-.493a3.45%203.45%200%200%200%201.316-1.4q.493-.904.493-2.089%200-1.909-.988-2.913-.988-1.02-2.584-1.02-.898%200-1.575.347a3%203%200%200%200-.415.262l-.199.166a3.4%203.4%200%200%200-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296%201.119.297%201.07%200%201.645-.675.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.435%200-.835.16a2%202%200%200%200-.284.136%202%202%200%200%200-.363.254%202.2%202.2%200%200%200-.46.569l-.082.162a2.6%202.6%200%200%200-.213%201.072v.115q0%20.707.296%201.267l.135.211zm.964-.818a1.1%201.1%200%200%200%20.367.385.94.94%200%200%200%20.476.118c.423%200%20.59-.117.687-.23.159-.194.28-.478.28-.95%200-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1%201%200%200%200-.503.135l-.012.007a.86.86%200%200%200-.335.343c-.073.133-.132.324-.132.614v.115a1.4%201.4%200%200%200%20.14.66zm15.7-6.222q.347-.346.346-.856a1.05%201.05%200%200%200-.345-.79%201.18%201.18%200%200%200-.84-.329q-.51%200-.855.33a1.05%201.05%200%200%200-.346.79q0%20.51.346.855.345.346.856.346.51%200%20.839-.346zm4.337%209.314.033-1.332q.191.403.59.747l.098.081a4%204%200%200%200%20.316.224l.223.122a3.2%203.2%200%200%200%201.44.322%203.8%203.8%200%200%200%201.875-.477%203.5%203.5%200%200%200%201.382-1.366q.527-.89.526-2.09%200-1.184-.444-2.073a3.24%203.24%200%200%200-1.283-1.399q-.823-.51-1.942-.51a3.5%203.5%200%200%200-1.527.344l-.086.043-.165.09a3%203%200%200%200-.33.214q-.432.315-.656.707a2%202%200%200%200-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5%202.5%200%200%200%20.566.7q.117.098.245.18l.144.08a2.1%202.1%200%200%200%20.975.232q1.07%200%201.645-.675.576-.69.576-1.778%200-1.102-.576-1.777-.56-.691-1.645-.692a2.2%202.2%200%200%200-1.015.235q-.22.113-.415.282l-.15.142a2.1%202.1%200%200%200-.42.594q-.223.479-.223%201.1v.115q0%20.705.293%201.26zm2.616-.293c.157-.191.28-.479.28-.967%200-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87%200%200%200-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0%20.285.057.499.144.669a1.1%201.1%200%200%200%20.367.405c.137.082.28.123.455.123.423%200%20.59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493%200%20.642.099l.247-1.794q-.196-.099-.717-.099a2.3%202.3%200%200%200-.545.063%202%202%200%200%200-.411.148%202.2%202.2%200%200%200-.4.249%202.5%202.5%200%200%200-.485.499%202.7%202.7%200%200%200-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5%201.5%200%200%201%20.466-.636%202.5%202.5%200%200%201%20.399-.253%202%202%200%200%201%20.224-.099zm9.784%202.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46%203.46%200%200%200-1.4%201.382q-.493.906-.493%202.106%200%201.07.428%201.975.428.89%201.332%201.432.906.526%202.255.526.973%200%201.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954%200-1.497-.444a1.6%201.6%200%200%201-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1%201%200%200%200-.156-.176q-.46-.428-1.316-.428-.986%200-1.494.604-.379.45-.494%201.234zm-27.053%202.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z%22%2F%3E%3Cpath%20fill%3D%22%23fff%22%20d%3D%22m19.63%2011.151-.757-1.71-.345%201.71-1.12%205.644h-1.827L18.083%204.7h.197l3.325%206.533.988%202.19.988-2.19L26.839%204.7h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.93%205.644h-.098l-2.913-5.644zm14.836%205.81q-1.02%200-1.893-.478a3.8%203.8%200%200%201-1.381-1.382q-.51-.906-.51-2.106%200-1.185.444-2.074a3.36%203.36%200%200%201%201.3-1.382q.839-.494%201.974-.494a3.3%203.3%200%200%201%201.234.231%203.3%203.3%200%200%201%20.97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02%201.053a3.17%203.17%200%200%201-1.662.444zm.296-1.482q.938%200%201.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2%202.2%200%200%200-.807-.872%202.1%202.1%200%200%200-1.119-.313q-1.053%200-1.629.692-.575.675-.575%201.76%200%201.103.559%201.795.577.675%201.645.675zm6.521-6.237h1.711v1.4q.906-1.597%202.83-1.597%201.596%200%202.584%201.02.988%201.005.988%202.914%200%201.185-.493%202.09a3.46%203.46%200%200%201-1.316%201.399%203.5%203.5%200%200%201-1.844.493q-.954%200-1.662-.329a2.67%202.67%200%200%201-1.086-.97l.017%205.134h-1.728zm4.048%206.22q1.07%200%201.645-.674.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.592%200-1.12.296-.51.28-.822.823-.296.527-.296%201.234v.115q0%20.708.296%201.267.313.543.823.855.51.296%201.119.297z%22%2F%3E%3Cpath%20fill%3D%22%23e1e3e9%22%20d%3D%22M51.325%204.7h1.86v10.45h3.473v1.646h-5.333zm7.12%204.542h1.843v7.553h-1.843zm.905-1.415a1.16%201.16%200%200%201-.856-.346%201.17%201.17%200%200%201-.346-.856%201.05%201.05%200%200%201%20.346-.79q.346-.329.856-.329.494%200%20.839.33a1.05%201.05%200%200%201%20.345.79%201.16%201.16%200%200%201-.345.855q-.33.346-.84.346zm7.875%209.133a3.17%203.17%200%200%201-1.662-.444q-.723-.46-1.004-1.053l-.033%201.332h-1.71V4.701h1.743v4.657l-.082%201.283q.279-.658%201.086-1.119a3.5%203.5%200%200%201%201.778-.477q1.119%200%201.942.51a3.24%203.24%200%200%201%201.283%201.4q.445.888.444%202.072%200%201.201-.526%202.09a3.5%203.5%200%200%201-1.382%201.366%203.8%203.8%200%200%201-1.876.477zm-.296-1.481q1.069%200%201.645-.675.577-.69.577-1.778%200-1.102-.577-1.776-.56-.691-1.645-.692a2.12%202.12%200%200%200-1.58.659q-.642.641-.642%201.694v.115q0%20.71.296%201.267a2.4%202.4%200%200%200%20.807.872%202.1%202.1%200%200%200%201.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14%202.14%200%200%201%201.349-.46q.527%200%20.724.098l-.247%201.794q-.149-.099-.642-.099-.774%200-1.416.494-.626.493-.626%201.58v3.883h-1.777V9.242zm9.534%207.718q-1.35%200-2.255-.526-.904-.543-1.332-1.432a4.6%204.6%200%200%201-.428-1.975q0-1.2.493-2.106a3.46%203.46%200%200%201%201.4-1.382q.889-.495%202.007-.494%201.744%200%202.584.97.855.956.856%202.7%200%20.444-.05.92h-5.43q.18%201.005.708%201.45.542.443%201.497.443.79%200%201.3-.131a4%204%200%200%200%20.938-.362l.542%201.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728%200-1.991%201.86z%22%2F%3E%3Cpath%20d%3D%22M5.074%2015.948a.484.657%200%200%200-.486.659v1.84a.484.657%200%200%200%20.486.659h4.101a.484.657%200%200%200%20.486-.659v-1.84a.484.657%200%200%200-.486-.659zm3.56%201.16H5.617v.838h3.017z%22%20style%3D%22fill%3A%23fff%3Bfill-rule%3Aevenodd%3Bstroke-width%3A1.03600001%22%2F%3E%3Cg%20style%3D%22stroke-width%3A1.12603545%22%3E%3Cpath%20d%3D%22M-9.408-1.416c-3.833-.025-7.056%202.912-7.08%206.615-.02%203.08%201.653%204.832%203.107%206.268.903.892%201.721%201.74%202.32%202.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87%201.87%200%200%200-.362%201.121l-.011%201.877c-.003.402.104.787.347%201.125.244.338.688.653%201.23.656l4.142.028c.542.003.99-.306%201.238-.641a1.87%201.87%200%200%200%20.363-1.121l.012-1.875a1.87%201.87%200%200%200-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145%201.425-1.983%202.348-2.87%201.473-1.414%203.18-3.149%203.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006%201.1v.002c3.274.02%205.92%202.532%205.9%205.6-.017%202.706-1.39%204.026-2.863%205.44-1.034.994-2.118%202.033-2.814%203.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34%200%200%201-.226.084.34.34%200%200%201-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067%202.7-5.545%205.975-5.523m-.02%202.826c-1.62-.01-2.944%201.315-2.955%202.96-.01%201.646%201.295%202.988%202.916%202.999h.002c1.621.01%202.943-1.316%202.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005%201.1c1.017.006%201.829.83%201.822%201.89s-.83%201.874-1.848%201.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874%201.848-1.868m-2.155%2011.857%204.14.025c.271.002.49.305.487.676l-.013%201.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668%22%20style%3D%22color%3A%23000%3Bfont-style%3Anormal%3Bfont-variant%3Anormal%3Bfont-weight%3A400%3Bfont-stretch%3Anormal%3Bfont-size%3Amedium%3Bline-height%3Anormal%3Bfont-family%3Asans-serif%3Bfont-variant-ligatures%3Anormal%3Bfont-variant-position%3Anormal%3Bfont-variant-caps%3Anormal%3Bfont-variant-numeric%3Anormal%3Bfont-variant-alternates%3Anormal%3Bfont-feature-settings%3Anormal%3Btext-indent%3A0%3Btext-align%3Astart%3Btext-decoration%3Anone%3Btext-decoration-line%3Anone%3Btext-decoration-style%3Asolid%3Btext-decoration-color%3A%23000%3Bletter-spacing%3Anormal%3Bword-spacing%3Anormal%3Btext-transform%3Anone%3Bwriting-mode%3Alr-tb%3Bdirection%3Altr%3Btext-orientation%3Amixed%3Bdominant-baseline%3Aauto%3Bbaseline-shift%3Abaseline%3Btext-anchor%3Astart%3Bwhite-space%3Anormal%3Bshape-padding%3A0%3Bclip-rule%3Aevenodd%3Bdisplay%3Ainline%3Boverflow%3Avisible%3Bvisibility%3Avisible%3Bopacity%3A1%3Bisolation%3Aauto%3Bmix-blend-mode%3Anormal%3Bcolor-interpolation%3AsRGB%3Bcolor-interpolation-filters%3AlinearRGB%3Bsolid-color%3A%23000%3Bsolid-opacity%3A1%3Bvector-effect%3Anone%3Bfill%3A%23000%3Bfill-opacity%3A.4%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-linecap%3Abutt%3Bstroke-linejoin%3Amiter%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-dashoffset%3A0%3Bstroke-opacity%3A1%3Bcolor-rendering%3Aauto%3Bimage-rendering%3Aauto%3Bshape-rendering%3Aauto%3Btext-rendering%3Aauto%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-9.415-.316C-12.69-.338-15.37%202.14-15.39%205.207c-.017%202.716%201.326%204.041%202.78%205.477%201.013%201%202.081%202.055%202.78%203.67l.092.076a.34.34%200%200%200%20.225.086.34.34%200%200%200%20.227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6%201.78-2.64%202.814-3.634%201.473-1.414%202.847-2.733%202.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057%208.784c1.621.011%202.944-1.315%202.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945%201.315-2.955%202.96s1.295%202.989%202.916%203%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23e1e3e9%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-11.594%2015.465c-.27-.002-.492.297-.494.668l-.012%201.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23fff%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl.maplibregl-ctrl-attrib{padding:0 5px;background-color:hsla(0,0%,100%,.5);margin:0}@media screen{.maplibregl-ctrl-attrib.maplibregl-compact{min-height:20px;padding:2px 24px 2px 0;margin:10px;position:relative;background-color:#fff;color:#000;border-radius:12px;box-sizing:content-box}.maplibregl-ctrl-attrib.maplibregl-compact-show{padding:2px 28px 2px 8px;visibility:visible}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact-show,.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact-show{padding:2px 8px 2px 28px;border-radius:12px}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-inner{display:none}.maplibregl-ctrl-attrib-button{display:none;cursor:pointer;position:absolute;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20fill-rule%3D%22evenodd%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M4%2010a6%206%200%201%200%2012%200%206%206%200%201%200-12%200m5-3a1%201%200%201%200%202%200%201%201%200%201%200-2%200m0%203a1%201%200%201%201%202%200v3a1%201%200%201%201-2%200%22%2F%3E%3C%2Fsvg%3E");background-color:hsla(0,0%,100%,.5);width:24px;height:24px;box-sizing:border-box;border-radius:12px;outline:none;top:0;right:0;border:0}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;list-style:none}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button::-webkit-details-marker{display:none}.maplibregl-ctrl-bottom-left .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-top-left .maplibregl-ctrl-attrib-button{left:0}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-inner{display:block}.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-button{background-color:rgba(0,0,0,.05)}.maplibregl-ctrl-bottom-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;right:0}.maplibregl-ctrl-top-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{top:0;right:0}.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{top:0;left:0}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;left:0}}@media screen and (forced-colors:active){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22%23fff%22%20fill-rule%3D%22evenodd%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M4%2010a6%206%200%201%200%2012%200%206%206%200%201%200-12%200m5-3a1%201%200%201%200%202%200%201%201%200%201%200-2%200m0%203a1%201%200%201%201%202%200v3a1%201%200%201%201-2%200%22%2F%3E%3C%2Fsvg%3E")}}@media screen and (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20fill-rule%3D%22evenodd%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M4%2010a6%206%200%201%200%2012%200%206%206%200%201%200-12%200m5-3a1%201%200%201%200%202%200%201%201%200%201%200-2%200m0%203a1%201%200%201%201%202%200v3a1%201%200%201%201-2%200%22%2F%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl-attrib a{color:rgba(0,0,0,.75);text-decoration:none}.maplibregl-ctrl-attrib a:hover{color:inherit;text-decoration:underline}.maplibregl-attrib-empty{display:none}.maplibregl-ctrl-scale{background-color:hsla(0,0%,100%,.75);font-size:10px;white-space:nowrap;border-color:#333;border-style:none solid solid;border-width:medium 2px 2px;padding:0 5px;color:#333;box-sizing:border-box}.maplibregl-popup{position:absolute;top:0;left:0;display:flex;will-change:transform;pointer-events:none}.maplibregl-popup-anchor-top,.maplibregl-popup-anchor-top-left,.maplibregl-popup-anchor-top-right{flex-direction:column}.maplibregl-popup-anchor-bottom,.maplibregl-popup-anchor-bottom-left,.maplibregl-popup-anchor-bottom-right{flex-direction:column-reverse}.maplibregl-popup-anchor-left{flex-direction:row}.maplibregl-popup-anchor-right{flex-direction:row-reverse}.maplibregl-popup-tip{width:0;height:0;border:10px solid transparent;z-index:1}.maplibregl-popup-anchor-top .maplibregl-popup-tip{align-self:center;border-top:none;border-bottom-color:#fff}.maplibregl-popup-anchor-top-left .maplibregl-popup-tip{align-self:flex-start;border-top:none;border-left:none;border-bottom-color:#fff}.maplibregl-popup-anchor-top-right .maplibregl-popup-tip{align-self:flex-end;border-top:none;border-right:none;border-bottom-color:#fff}.maplibregl-popup-anchor-bottom .maplibregl-popup-tip{align-self:center;border-bottom:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip{align-self:flex-start;border-bottom:none;border-left:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip{align-self:flex-end;border-bottom:none;border-right:none;border-top-color:#fff}.maplibregl-popup-anchor-left .maplibregl-popup-tip{align-self:center;border-left:none;border-right-color:#fff}.maplibregl-popup-anchor-right .maplibregl-popup-tip{align-self:center;border-right:none;border-left-color:#fff}[dir=rtl] .maplibregl-popup-anchor-left{flex-direction:row-reverse}[dir=rtl] .maplibregl-popup-anchor-right{flex-direction:row}[dir=rtl] .maplibregl-popup-anchor-top-left .maplibregl-popup-tip{align-self:flex-end}[dir=rtl] .maplibregl-popup-anchor-top-right .maplibregl-popup-tip{align-self:flex-start}[dir=rtl] .maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip{align-self:flex-end}[dir=rtl] .maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip{align-self:flex-start}.maplibregl-popup-close-button{position:absolute;right:0;top:0;border:0;border-radius:0 3px 0 0;cursor:pointer;background-color:transparent}.maplibregl-popup-close-button:hover{background-color:rgba(0,0,0,.05)}.maplibregl-popup-content{position:relative;background:#fff;border-radius:3px;box-shadow:0 1px 2px rgba(0,0,0,.1);padding:15px 10px;pointer-events:auto}.maplibregl-popup-anchor-top-left .maplibregl-popup-content{border-top-left-radius:0}.maplibregl-popup-anchor-top-right .maplibregl-popup-content{border-top-right-radius:0}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-content{border-bottom-left-radius:0}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-content{border-bottom-right-radius:0}.maplibregl-popup-track-pointer{display:none}.maplibregl-popup-track-pointer *{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-map:hover .maplibregl-popup-track-pointer{display:flex}.maplibregl-map:active .maplibregl-popup-track-pointer{display:none}.maplibregl-marker{position:absolute;top:0;left:0;will-change:transform;transition:opacity .2s}.maplibregl-marker-draggable{cursor:grab}.maplibregl-user-location-dot,.maplibregl-user-location-dot:before{background-color:#1da1f2;width:15px;height:15px;border-radius:50%}.maplibregl-user-location-dot:before{content:"";position:absolute;animation:maplibregl-user-location-dot-pulse 2s infinite}.maplibregl-user-location-dot:after{border-radius:50%;border:2px solid #fff;content:"";height:19px;left:-2px;position:absolute;top:-2px;width:19px;box-sizing:border-box;box-shadow:0 0 3px rgba(0,0,0,.35)}@media (prefers-reduced-motion:reduce){.maplibregl-user-location-dot:before{animation:none}}@keyframes maplibregl-user-location-dot-pulse{0%{transform:scale(1);opacity:1}70%{transform:scale(3);opacity:0}to{transform:scale(1);opacity:0}}.maplibregl-user-location-dot-stale{background-color:#aaa}.maplibregl-user-location-dot-stale:after{display:none}.maplibregl-user-location-accuracy-circle{background-color:#1da1f233;width:1px;height:1px;border-radius:100%}.maplibregl-crosshair,.maplibregl-crosshair .maplibregl-interactive,.maplibregl-crosshair .maplibregl-interactive:active{cursor:crosshair}.maplibregl-boxzoom{position:absolute;top:0;left:0;width:0;height:0;background:#fff;border:2px dotted #202020;opacity:.5}.maplibregl-cooperative-gesture-screen{background:rgba(0,0,0,.4);position:absolute;inset:0;display:flex;justify-content:center;align-items:center;color:#fff;padding:1rem;font-size:1.4em;line-height:1.2;opacity:0;pointer-events:none;transition:opacity 1s ease 1s;z-index:99999}.maplibregl-cooperative-gesture-screen.maplibregl-show{opacity:1;transition:opacity .05s}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:none}@media (hover:none),(pointer:coarse){.maplibregl-cooperative-gesture-screen .maplibregl-desktop-message{display:none}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:block}}.maplibregl-pseudo-fullscreen{position:fixed!important;width:100%!important;height:100%!important;top:0!important;left:0!important;z-index:99999}',document.head.appendChild(e)}})()});var Pt=B(ta=>{"use strict";var l6=of(),SL=Gy(),CL=e6(),BEe=z2().addStyleRule,DL=Fn(),sfe=Fl(),ufe=Uv(),ffe=DL.extendFlat,s6=DL.extendDeepAll;ta.modules={};ta.allCategories={};ta.allTypes=[];ta.subplotsRegistry={};ta.componentsRegistry={};ta.layoutArrayContainers=[];ta.layoutArrayRegexes=[];ta.traceLayoutAttributes={};ta.localeRegistry={};ta.apiMethodRegistry={};ta.collectableSubplotTypes=null;ta.register=function(r){if(ta.collectableSubplotTypes=null,r)r&&!Array.isArray(r)&&(r=[r]);else throw new Error("No argument passed to Plotly.register.");for(var t=0;t{"use strict";var pfe=wv().timeFormat,OL=da(),u6=of(),hf=(Mv(),vr(Tv)).mod,Vv=(Wn(),vr(ri)),il=Vv.BADNUM,Ao=Vv.ONEDAY,I2=Vv.ONEHOUR,vf=Vv.ONEMIN,Yv=Vv.ONESEC,O2=Vv.EPOCHJD,lu=Pt(),RL=wv().utcFormat,mfe=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\d)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d(:?\d\d)?)?)?)?)?)?\s*$/m,yfe=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\di?)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d(:?\d\d)?)?)?)?)?)?\s*$/m,PL=new Date().getFullYear()-70;function su(e){return e&&lu.componentsRegistry.calendars&&typeof e=="string"&&e!=="gregorian"}Pn.dateTick0=function(e,r){var t=gfe(e,!!r);if(r<2)return t;var a=Pn.dateTime2ms(t,e);return a+=Ao*(r-1),Pn.ms2DateTime(a,0,e)};function gfe(e,r){return su(e)?r?lu.getComponentMethod("calendars","CANONICAL_SUNDAY")[e]:lu.getComponentMethod("calendars","CANONICAL_TICK")[e]:r?"2000-01-02":"2000-01-01"}Pn.dfltRange=function(e){return su(e)?lu.getComponentMethod("calendars","DFLTRANGE")[e]:["2000-01-01","2001-01-01"]};Pn.isJSDate=function(e){return typeof e=="object"&&e!==null&&typeof e.getTime=="function"};var Ky,Qy;Pn.dateTime2ms=function(e,r){if(Pn.isJSDate(e)){var t=e.getTimezoneOffset()*vf,a=(e.getUTCMinutes()-e.getMinutes())*vf+(e.getUTCSeconds()-e.getSeconds())*Yv+(e.getUTCMilliseconds()-e.getMilliseconds());if(a){var n=3*vf;t=t-n/2+hf(a-t+n/2,n)}return e=Number(e)-t,e>=Ky&&e<=Qy?e:il}if(typeof e!="string"&&typeof e!="number")return il;e=String(e);var i=su(r),o=e.charAt(0);i&&(o==="G"||o==="g")&&(e=e.slice(1),r="");var l=i&&r.slice(0,7)==="chinese",s=e.match(l?yfe:mfe);if(!s)return il;var u=s[1],f=s[3]||"1",c=Number(s[5]||1),v=Number(s[7]||0),d=Number(s[9]||0),p=Number(s[11]||0);if(i){if(u.length===2)return il;u=Number(u);var m;try{var y=lu.getComponentMethod("calendars","getCal")(r);if(l){var b=f.charAt(f.length-1)==="i";f=parseInt(f,10),m=y.newDate(u,y.toMonthIndex(u,f,b),c)}else m=y.newDate(u,Number(f),c)}catch(_){return il}return m?(m.toJD()-O2)*Ao+v*I2+d*vf+p*Yv:il}u.length===2?u=(Number(u)+2e3-PL)%100+PL:u=Number(u),f-=1;var T=new Date(Date.UTC(2e3,f,c,v,d));return T.setUTCFullYear(u),T.getUTCMonth()!==f||T.getUTCDate()!==c?il:T.getTime()+p*Yv};Ky=Pn.MIN_MS=Pn.dateTime2ms("-9999");Qy=Pn.MAX_MS=Pn.dateTime2ms("9999-12-31 23:59:59.9999");Pn.isDateTime=function(e,r){return Pn.dateTime2ms(e,r)!==il};function Gv(e,r){return String(e+Math.pow(10,r)).slice(1)}var $y=90*Ao,NL=3*I2,zL=5*vf;Pn.ms2DateTime=function(e,r,t){if(typeof e!="number"||!(e>=Ky&&e<=Qy))return il;r||(r=0);var a=Math.floor(hf(e+.05,1)*10),n=Math.round(e-a/10),i,o,l,s,u,f;if(su(t)){var c=Math.floor(n/Ao)+O2,v=Math.floor(hf(e,Ao));try{i=lu.getComponentMethod("calendars","getCal")(t).fromJD(c).formatDate("yyyy-mm-dd")}catch(d){i=RL("G%Y-%m-%d")(new Date(n))}if(i.charAt(0)==="-")for(;i.length<11;)i="-0"+i.slice(1);else for(;i.length<10;)i="0"+i;o=r<$y?Math.floor(v/I2):0,l=r<$y?Math.floor(v%I2/vf):0,s=r=Ky+Ao&&e<=Qy-Ao))return il;var r=Math.floor(hf(e+.05,1)*10),t=new Date(Math.round(e-r/10)),a=pfe("%Y-%m-%d")(t),n=t.getHours(),i=t.getMinutes(),o=t.getSeconds(),l=t.getUTCMilliseconds()*10+r;return HL(a,n,i,o,l)};function HL(e,r,t,a,n){if((r||t||a||n)&&(e+=" "+Gv(r,2)+":"+Gv(t,2),(a||n)&&(e+=":"+Gv(a,2),n))){for(var i=4;n%10===0;)i-=1,n/=10;e+="."+Gv(n,i)}return e}Pn.cleanDate=function(e,r,t){if(e===il)return r;if(Pn.isJSDate(e)||typeof e=="number"&&isFinite(e)){if(su(t))return u6.error("JS Dates and milliseconds are incompatible with world calendars",e),r;if(e=Pn.ms2DateTimeLocal(+e),!e&&r!==void 0)return r}else if(!Pn.isDateTime(e,t))return u6.error("unrecognized date",e),r;return e};var bfe=/%\d?f/g,xfe=/%h/g,_fe={1:"1",2:"1",3:"2",4:"2"};function BL(e,r,t,a){e=e.replace(bfe,function(i){var o=Math.min(+i.charAt(1)||6,6),l=(r/1e3%1+2).toFixed(o).slice(2).replace(/0+$/,"")||"0";return l});var n=new Date(Math.floor(r+.05));if(e=e.replace(xfe,function(){return _fe[t("%q")(n)]}),su(a))try{e=lu.getComponentMethod("calendars","worldCalFmt")(e,r,a)}catch(i){return"Invalid"}return t(e)(n)}var wfe=[59,59.9,59.99,59.999,59.9999];function Afe(e,r){var t=hf(e+.05,Ao),a=Gv(Math.floor(t/I2),2)+":"+Gv(hf(Math.floor(t/vf),60),2);if(r!=="M"){OL(r)||(r=0);var n=Math.min(hf(e/Yv,60),wfe[r]),i=(100+n).toFixed(r).slice(1);r>0&&(i=i.replace(/0+$/,"").replace(/[\.]$/,"")),a+=":"+i}return a}Pn.formatDate=function(e,r,t,a,n,i){if(n=su(n)&&n,!r)if(t==="y")r=i.year;else if(t==="m")r=i.month;else if(t==="d")r=i.dayMonth+` +`+i.year;else return Afe(e,t)+` +`+BL(i.dayMonthYear,e,a,n);return BL(r,e,a,n)};var IL=3*Ao;Pn.incrementMonth=function(e,r,t){t=su(t)&&t;var a=hf(e,Ao);if(e=Math.round(e-a),t)try{var n=Math.round(e/Ao)+O2,i=lu.getComponentMethod("calendars","getCal")(t),o=i.fromJD(n);return r%12?i.add(o,r,"m"):i.add(o,r/12,"y"),(o.toJD()-O2)*Ao+a}catch(s){u6.error("invalid ms "+e+" in calendar "+t)}var l=new Date(e+IL);return l.setUTCMonth(l.getUTCMonth()+r)+a-IL};Pn.findExactDates=function(e,r){for(var t=0,a=0,n=0,i=0,o,l,s=su(r)&&lu.getComponentMethod("calendars","getCal")(r),u=0;u{"use strict";GL.exports=function(r){return r}});var c6=B(uu=>{"use strict";var Tfe=da(),Mfe=of(),kfe=eg(),Sfe=(Wn(),vr(ri)).BADNUM,f6=1e-9;uu.findBin=function(e,r,t){if(Tfe(r.start))return t?Math.ceil((e-r.start)/r.size-f6)-1:Math.floor((e-r.start)/r.size+f6);var a=0,n=r.length,i=0,o=n>1?(r[n-1]-r[0])/(n-1):1,l,s;for(o>=0?s=t?Cfe:Dfe:s=t?Efe:Lfe,e+=o*f6*(t?-1:1)*(o>=0?1:-1);a90&&Mfe.log("Long binary search..."),a-1};function Cfe(e,r){return er}function Efe(e,r){return e>=r}uu.sorterAsc=function(e,r){return e-r};uu.sorterDes=function(e,r){return r-e};uu.distinctVals=function(e){var r=e.slice();r.sort(uu.sorterAsc);var t;for(t=r.length-1;t>-1&&r[t]===Sfe;t--);for(var a=r[t]-r[0]||1,n=a/(t||1)/1e4,i=[],o,l=0;l<=t;l++){var s=r[l],u=s-o;o===void 0?(i.push(s),o=s):u>n&&(a=Math.min(a,u),i.push(s),o=s)}return{vals:i,minDiff:a}};uu.roundUp=function(e,r,t){for(var a=0,n=r.length-1,i,o=0,l=t?0:1,s=t?1:0,u=t?Math.ceil:Math.floor;a0&&(a=1),t&&a)return e.sort(r)}return a?e:e.reverse()};uu.findIndexOfMin=function(e,r){r=r||kfe;for(var t=1/0,a,n=0;nFfe});function qfe(e){return Object.keys(e).sort()}var Ffe,tg=Ja(()=>{"use strict";Ffe=qfe});var YL=B(Nn=>{"use strict";var H2=da(),Rfe=so().isArrayOrTypedArray;Nn.aggNums=function(e,r,t,a){var n,i;if((!a||a>t.length)&&(a=t.length),H2(r)||(r=!1),Rfe(t[0])){for(i=new Array(a),n=0;ne.length-1)return e[e.length-1];var t=r%1;return t*e[Math.ceil(r)]+(1-t)*e[Math.floor(r)]}});var JL=B((YEe,ZL)=>{"use strict";var VL=(Mv(),vr(Tv)),v6=VL.mod,Pfe=VL.modHalf,U2=Math.PI,df=2*U2;function Nfe(e){return e/180*U2}function zfe(e){return e/U2*180}function h6(e){return Math.abs(e[1]-e[0])>df-1e-14}function XL(e,r){return Pfe(r-e,df)}function Bfe(e,r){return Math.abs(XL(e,r))}function WL(e,r){if(h6(r))return!0;var t,a;r[0]a&&(a+=df);var n=v6(e,df),i=n+df;return n>=t&&n<=a||i>=t&&i<=a}function Ife(e,r,t,a){if(!WL(r,a))return!1;var n,i;return t[0]=n&&e<=i}function d6(e,r,t,a,n,i,o){n=n||0,i=i||0;var l=h6([t,a]),s,u,f,c,v;l?(s=0,u=U2,f=df):t{"use strict";V0.isLeftAnchor=function(r){return r.xanchor==="left"||r.xanchor==="auto"&&r.x<=1/3};V0.isCenterAnchor=function(r){return r.xanchor==="center"||r.xanchor==="auto"&&r.x>1/3&&r.x<2/3};V0.isRightAnchor=function(r){return r.xanchor==="right"||r.xanchor==="auto"&&r.x>=2/3};V0.isTopAnchor=function(r){return r.yanchor==="top"||r.yanchor==="auto"&&r.y>=2/3};V0.isMiddleAnchor=function(r){return r.yanchor==="middle"||r.yanchor==="auto"&&r.y>1/3&&r.y<2/3};V0.isBottomAnchor=function(r){return r.yanchor==="bottom"||r.yanchor==="auto"&&r.y<=1/3}});var QL=B(X0=>{"use strict";var p6=(Mv(),vr(Tv)).mod;X0.segmentsIntersect=KL;function KL(e,r,t,a,n,i,o,l){var s=t-e,u=n-e,f=o-n,c=a-r,v=i-r,d=l-i,p=s*d-f*c;if(p===0)return null;var m=(u*d-f*v)/p,y=(u*c-s*v)/p;return y<0||y>1||m<0||m>1?null:{x:e+s*m,y:r+c*m}}X0.segmentDistance=function(r,t,a,n,i,o,l,s){if(KL(r,t,a,n,i,o,l,s))return 0;var u=a-r,f=n-t,c=l-i,v=s-o,d=u*u+f*f,p=c*c+v*v,m=Math.min(ag(u,f,d,i-r,o-t),ag(u,f,d,l-r,s-t),ag(c,v,p,r-i,t-o),ag(c,v,p,a-i,n-o));return Math.sqrt(m)};function ag(e,r,t,a,n){var i=a*e+n*r;if(i<0)return a*a+n*n;if(i>t){var o=a-e,l=n-r;return o*o+l*l}else{var s=a*r-n*e;return s*s/t}}var ng,m6,$L;X0.getTextLocation=function(r,t,a,n){if((r!==m6||n!==$L)&&(ng={},m6=r,$L=n),ng[a])return ng[a];var i=r.getPointAtLength(p6(a-n/2,t)),o=r.getPointAtLength(p6(a+n/2,t)),l=Math.atan((o.y-i.y)/(o.x-i.x)),s=r.getPointAtLength(p6(a,t)),u=(s.x*4+i.x+o.x)/6,f=(s.y*4+i.y+o.y)/6,c={x:u,y:f,theta:l};return ng[a]=c,c};X0.clearLocationCache=function(){m6=null};X0.getVisibleSegment=function(r,t,a){var n=t.left,i=t.right,o=t.top,l=t.bottom,s=0,u=r.getTotalLength(),f=u,c,v;function d(m){var y=r.getPointAtLength(m);m===0?c=y:m===u&&(v=y);var b=y.xi?y.x-i:0,T=y.yl?y.y-l:0;return Math.sqrt(b*b+T*T)}for(var p=d(s);p;){if(s+=p+a,s>f)return;p=d(s)}for(p=d(f);p;){if(f-=p+a,s>f)return;p=d(f)}return{min:s,max:f,len:f-s,total:u,isClosed:s===0&&f===u&&Math.abs(c.x-v.x)<.1&&Math.abs(c.y-v.y)<.1}};X0.findPointOnPath=function(r,t,a,n){n=n||{};for(var i=n.pathLength||r.getTotalLength(),o=n.tolerance||.001,l=n.iterationLimit||30,s=r.getPointAtLength(0)[a]>r.getPointAtLength(i)[a]?-1:1,u=0,f=0,c=i,v,d,p;u0?c=v:f=v,u++}return d}});var ig=B(G2=>{"use strict";var fu={};G2.throttle=function(r,t,a){var n=fu[r],i=Date.now();if(!n){for(var o in fu)fu[o].tsn.ts+t){l();return}n.timer=setTimeout(function(){l(),n.timer=null},t)};G2.done=function(e){var r=fu[e];return!r||!r.timer?Promise.resolve():new Promise(function(t){var a=r.onDone;r.onDone=function(){a&&a(),t(),r.onDone=null}})};G2.clear=function(e){if(e)eE(fu[e]),delete fu[e];else for(var r in fu)G2.clear(r)};function eE(e){e&&e.timer!==null&&(clearTimeout(e.timer),e.timer=null)}});var tE=B((ZEe,rE)=>{"use strict";rE.exports=function(r){r._clearResponsive&&(r._clearResponsive(),delete r._clearResponsive)}});var aE=B((JEe,og)=>{"use strict";og.exports=y6;og.exports.isMobile=y6;og.exports.default=y6;var Gfe=/(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|redmi|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,Yfe=/CrOS/,Vfe=/android|ipad|playbook|silk/i;function y6(e){e||(e={});let r=e.ua;if(!r&&typeof navigator!="undefined"&&(r=navigator.userAgent),r&&r.headers&&typeof r.headers["user-agent"]=="string"&&(r=r.headers["user-agent"]),typeof r!="string")return!1;let t=Gfe.test(r)&&!Yfe.test(r)||!!e.tablet&&Vfe.test(r);return!t&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&r.indexOf("Macintosh")!==-1&&r.indexOf("Safari")!==-1&&(t=!0),t}});var iE=B((jEe,nE)=>{"use strict";var Xfe=da(),Wfe=aE();nE.exports=function(r){var t;if(r&&r.hasOwnProperty("userAgent")?t=r.userAgent:t=Zfe(),typeof t!="string")return!0;var a=Wfe({ua:{headers:{"user-agent":t}},tablet:!0,featureDetect:!1});if(!a)for(var n=t.split(" "),i=1;i-1;l--){var s=n[l];if(s.slice(0,8)==="Version/"){var u=s.slice(8).split(".")[0];if(Xfe(u)&&(u=+u),u>=13)return!0}}}return a};function Zfe(){var e;return typeof navigator!="undefined"&&(e=navigator.userAgent),e&&e.headers&&typeof e.headers["user-agent"]=="string"&&(e=e.headers["user-agent"]),e}});var lE=B(($Ee,oE)=>{"use strict";var Jfe=la();oE.exports=function(r,t,a){var n=r.selectAll("g."+a.replace(/\s/g,".")).data(t,function(o){return o[0].trace.uid});n.exit().remove(),n.enter().append("g").attr("class",a),n.order();var i=r.classed("rangeplot")?"nodeRangePlot3":"node3";return n.each(function(o){o[0][i]=Jfe.select(this)}),n}});var uE=B((KEe,sE)=>{"use strict";var jfe=Pt();sE.exports=function(r,t){for(var a=r._context.locale,n=0;n<2;n++){for(var i=r._context.locales,o=0;o<2;o++){var l=(i[a]||{}).dictionary;if(l){var s=l[t];if(s)return s}i=jfe.localeRegistry}var u=a.split("-")[0];if(u===a)break;a=u}return t}});var cE=B((QEe,fE)=>{"use strict";fE.exports=function(r){for(var t={},a=[],n=0,i=0;i{"use strict";vE.exports=function(r){for(var t=Qfe(r)?Kfe:$fe,a=[],n=0;n{"use strict";dE.exports=function(r,t){if(!t)return r;var a=1/Math.abs(t),n=a>1?(a*r+a*t)/a:r+t,i=String(n).length;if(i>16){var o=String(t).length,l=String(r).length;if(i>=l+o){var s=parseFloat(n).toPrecision(12);s.indexOf("e+")===-1&&(n=+s)}}return n}});var yE={};ja(yE,{default:()=>t0e});function r0e(e){return typeof e=="string"&&(e=e.replace(e0e,"")),(0,mE.default)(e)?Number(e):void 0}var mE,e0e,t0e,gE=Ja(()=>{"use strict";mE=c2(da());Wn();e0e=/^['"%,$#\s']+|[, ]|['"%,$#\s']+$/g;t0e=r0e});var _E=B((aqe,xE)=>{"use strict";var a0e=/<[^>]*>/g,n0e=/[\p{S}\p{P}]/gu,i0e=/[\p{Cc}\p{Cf}\uFE00-\uFE0F\u20E3]/gu,o0e=/�/g,l0e=/\s+/g,lg="-",bE=lg.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),s0e=new RegExp(bE+"{3,}","g"),u0e=new RegExp(bE+"$","g"),f0e=60;function c0e(e){return typeof e.toWellFormed=="function"?e.toWellFormed():new TextDecoder().decode(new TextEncoder().encode(e))}xE.exports=function(r,t=f0e){var a=c0e(r!=null?r:"").replace(o0e,"").replace(a0e," ").replace(n0e,n=>n===lg?n:"").toLowerCase().trim().replace(l0e,lg).replace(i0e,"").replace(s0e,lg);return a.length<=t?a:Array.from(a).slice(0,t).join("").replace(u0e,"")}});var or=B((nqe,FE)=>{"use strict";var Y2=la(),v0e=wv().utcFormat,h0e=v_().format,SE=da(),CE=(Wn(),vr(ri)),DE=CE.FP_SAFE,d0e=-DE,wE=CE.BADNUM,_e={};FE.exports=_e;_e.adjustFormat=function(r){if(!r||/^\d[.]\df/.test(r)||/[.]\d%/.test(r))return r;if(r==="0.f")return"~f";if(/^\d%/.test(r))return"~%";if(/^\ds/.test(r))return"~s";var t=(r.match(/^[+\-( ]?/)||[""])[0],a=r.slice(t.length);return!/^[~,.0$#]/.test(a)&&/[&fps]/.test(a)?t+"~"+a:r};var AE={};_e.warnBadFormat=function(e){var r=String(e);AE[r]||(AE[r]=1,_e.warn('encountered bad format: "'+r+'"'))};_e.noFormat=function(e){return String(e)};_e.numberFormat=function(e){var r;try{r=h0e(_e.adjustFormat(e))}catch(t){return _e.warnBadFormat(e),_e.noFormat}return r};_e.nestedProperty=cy();_e.keyedContainer=mk();_e.relativeAttr=gk();_e.isPlainObject=q0();_e.toLogRange=hy();_e.relinkPrivateKeys=wk();var pf=so();_e.isArrayBuffer=pf.isArrayBuffer;_e.isTypedArray=pf.isTypedArray;_e.isArrayOrTypedArray=pf.isArrayOrTypedArray;_e.isArray1D=pf.isArray1D;_e.ensureArray=pf.ensureArray;_e.concat=pf.concat;_e.maxRowLength=pf.maxRowLength;_e.minRowLength=pf.minRowLength;var LE=(Mv(),vr(Tv));_e.mod=LE.mod;_e.modHalf=LE.modHalf;var mf=GC();_e.valObjectMeta=mf.valObjectMeta;_e.coerce=mf.coerce;_e.coerce2=mf.coerce2;_e.coerceFont=mf.coerceFont;_e.coercePattern=mf.coercePattern;_e.coerceHoverinfo=mf.coerceHoverinfo;_e.coerceSelectionMarkerOpacity=mf.coerceSelectionMarkerOpacity;_e.validate=mf.validate;var Io=UL();_e.dateTime2ms=Io.dateTime2ms;_e.isDateTime=Io.isDateTime;_e.ms2DateTime=Io.ms2DateTime;_e.ms2DateTimeLocal=Io.ms2DateTimeLocal;_e.cleanDate=Io.cleanDate;_e.isJSDate=Io.isJSDate;_e.formatDate=Io.formatDate;_e.incrementMonth=Io.incrementMonth;_e.dateTick0=Io.dateTick0;_e.dfltRange=Io.dfltRange;_e.findExactDates=Io.findExactDates;_e.MIN_MS=Io.MIN_MS;_e.MAX_MS=Io.MAX_MS;var W0=c6();_e.findBin=W0.findBin;_e.sorterAsc=W0.sorterAsc;_e.sorterDes=W0.sorterDes;_e.distinctVals=W0.distinctVals;_e.roundUp=W0.roundUp;_e.sort=W0.sort;_e.findIndexOfMin=W0.findIndexOfMin;_e.sortObjectKeys=(tg(),vr(rg)).default;var cu=YL();_e.aggNums=cu.aggNums;_e.len=cu.len;_e.mean=cu.mean;_e.geometricMean=cu.geometricMean;_e.median=cu.median;_e.midRange=cu.midRange;_e.variance=cu.variance;_e.stdev=cu.stdev;_e.interp=cu.interp;var zl=Yy();_e.init2dArray=zl.init2dArray;_e.transposeRagged=zl.transposeRagged;_e.dot=zl.dot;_e.translationMatrix=zl.translationMatrix;_e.rotationMatrix=zl.rotationMatrix;_e.rotationXYMatrix=zl.rotationXYMatrix;_e.apply3DTransform=zl.apply3DTransform;_e.apply2DTransform=zl.apply2DTransform;_e.apply2DTransform2=zl.apply2DTransform2;_e.convertCssMatrix=zl.convertCssMatrix;_e.inverseTransformMatrix=zl.inverseTransformMatrix;var gs=JL();_e.deg2rad=gs.deg2rad;_e.rad2deg=gs.rad2deg;_e.angleDelta=gs.angleDelta;_e.angleDist=gs.angleDist;_e.isFullCircle=gs.isFullCircle;_e.isAngleInsideSector=gs.isAngleInsideSector;_e.isPtInsideSector=gs.isPtInsideSector;_e.pathArc=gs.pathArc;_e.pathSector=gs.pathSector;_e.pathAnnulus=gs.pathAnnulus;var Wv=jL();_e.isLeftAnchor=Wv.isLeftAnchor;_e.isCenterAnchor=Wv.isCenterAnchor;_e.isRightAnchor=Wv.isRightAnchor;_e.isTopAnchor=Wv.isTopAnchor;_e.isMiddleAnchor=Wv.isMiddleAnchor;_e.isBottomAnchor=Wv.isBottomAnchor;var Zv=QL();_e.segmentsIntersect=Zv.segmentsIntersect;_e.segmentDistance=Zv.segmentDistance;_e.getTextLocation=Zv.getTextLocation;_e.clearLocationCache=Zv.clearLocationCache;_e.getVisibleSegment=Zv.getVisibleSegment;_e.findPointOnPath=Zv.findPointOnPath;var fg=Fn();_e.extendFlat=fg.extendFlat;_e.extendDeep=fg.extendDeep;_e.extendDeepAll=fg.extendDeepAll;_e.extendDeepNoArrays=fg.extendDeepNoArrays;var g6=of();_e.log=g6.log;_e.warn=g6.warn;_e.error=g6.error;var p0e=(Bv(),vr(N2));_e.counterRegex=p0e.counter;var b6=ig();_e.throttle=b6.throttle;_e.throttleDone=b6.done;_e.clearThrottle=b6.clear;var Bl=z2();_e.getGraphDiv=Bl.getGraphDiv;_e.isPlotDiv=Bl.isPlotDiv;_e.removeElement=Bl.removeElement;_e.addStyleRule=Bl.addStyleRule;_e.addRelatedStyleRule=Bl.addRelatedStyleRule;_e.deleteRelatedStyleRule=Bl.deleteRelatedStyleRule;_e.setStyleOnHover=Bl.setStyleOnHover;_e.getFullTransformMatrix=Bl.getFullTransformMatrix;_e.getElementTransformMatrix=Bl.getElementTransformMatrix;_e.getElementAndAncestors=Bl.getElementAndAncestors;_e.equalDomRects=Bl.equalDomRects;_e.clearResponsive=tE();_e.preserveDrawingBuffer=iE();_e.makeTraceGroups=lE();_e._=uE();_e.notifier=V4();_e.filterUnique=cE();_e.filterVisible=hE();_e.pushUnique=e6();_e.increment=pE();_e.cleanNumber=(gE(),vr(yE)).default;_e.slugify=_E();_e.ensureNumber=function(r){return SE(r)?(r=Number(r),r>DE||r=r?!1:SE(e)&&e>=0&&e%1===0};_e.noop=Gy();_e.identity=eg();_e.repeat=function(e,r){for(var t=new Array(r),a=0;at?Math.max(t,Math.min(r,e)):Math.max(r,Math.min(t,e))};_e.bBoxIntersect=function(e,r,t){return t=t||0,e.left<=r.right+t&&r.left<=e.right+t&&e.top<=r.bottom+t&&r.top<=e.bottom+t};_e.simpleMap=function(e,r,t,a,n){for(var i=e.length,o=new Array(i),l=0;l=Math.pow(2,t)?n>10?(_e.warn("randstr failed uniqueness"),o):e(r,t,a,(n||0)+1):o};_e.OptionControl=function(e,r){e||(e={}),r||(r="opt");var t={};return t.optionList=[],t._newoption=function(a){a[r]=e,t[a.name]=a,t.optionList.push(a)},t["_"+r]=e,t};_e.smooth=function(e,r){if(r=Math.round(r)||0,r<2)return e;var t=e.length,a=2*t,n=2*r-1,i=new Array(n),o=new Array(t),l,s,u,f;for(l=0;l=a&&(u-=a*Math.floor(u/a)),u<0?u=-1-u:u>=t&&(u=a-1-u),f+=e[u]*i[s];o[l]=f}return o};_e.syncOrAsync=function(e,r,t){var a,n;function i(){return _e.syncOrAsync(e,r,t)}for(;e.length;)if(n=e.splice(0,1)[0],a=n(r),a&&a.then)return a.then(i);return t&&t(r)};_e.stripTrailingSlash=function(e){return e.slice(-1)==="/"?e.slice(0,-1):e};_e.noneOrAll=function(e,r,t){if(e){var a=!1,n=!0,i,o;for(i=0;i0?n:0})};_e.fillArray=function(e,r,t,a){if(a=a||_e.identity,_e.isArrayOrTypedArray(e))for(var n=0;ng0e.test(window.navigator.userAgent);var b0e=/Firefox\/(\d+)\.\d+/;_e.getFirefoxVersion=function(){var e=b0e.exec(window.navigator.userAgent);if(e&&e.length===2){var r=parseInt(e[1]);if(!isNaN(r))return r}return null};_e.isD3Selection=function(e){return e instanceof Y2.selection};_e.ensureSingle=function(e,r,t,a){var n=e.select(r+(t?"."+t:""));if(n.size())return n;var i=e.append(r);return t&&i.classed(t,!0),a&&i.call(a),i};_e.ensureSingleById=function(e,r,t,a){var n=e.select(r+"#"+t);if(n.size())return n;var i=e.append(r).attr("id",t);return a&&i.call(a),i};_e.objectFromPath=function(e,r){for(var t=e.split("."),a,n=a={},i=0;i1?n+o[1]:"";if(i&&(o.length>1||l.length>4||t))for(;a.test(l);)l=l.replace(a,"$1"+i+"$2");return l+s};_e.TEMPLATE_STRING_REGEX=/%{([^\s%{}:]*)([:|\|][^}]*)?}/g;var qE=/^\w*$/;_e.templateString=function(e,r){var t={};return e.replace(_e.TEMPLATE_STRING_REGEX,function(a,n){var i;return qE.test(n)?i=r[n]:(t[n]=t[n]||_e.nestedProperty(r,n).get,i=t[n](!0)),i!==void 0?i:""})};var w0e={max:10,count:0,name:"hovertemplate"};_e.hovertemplateString=e=>x6(Va(ka({},e),{opts:w0e}));var A0e={max:10,count:0,name:"texttemplate"};_e.texttemplateString=e=>x6(Va(ka({},e),{opts:A0e}));var T0e=/^(\S+)([\*\/])(-?\d+(\.\d+)?)$/;function M0e(e){var r=e.match(T0e);return r?{key:r[1],op:r[2],number:Number(r[3])}:{key:e,op:null,number:null}}var k0e={max:10,count:0,name:"texttemplate",parseMultDiv:!0};_e.texttemplateStringForShapes=e=>x6(Va(ka({},e),{opts:k0e}));var TE=/^[:|\|]/;function x6({data:e=[],locale:r,fallback:t,labels:a={},opts:n,template:i}){return i.replace(_e.TEMPLATE_STRING_REGEX,(o,l,s)=>{let u=["xother","yother"].includes(l),f=["_xother","_yother"].includes(l),c=["_xother_","_yother_"].includes(l),v=["xother_","yother_"].includes(l),d=u||f||v||c;(f||c)&&(l=l.substring(1)),(v||c)&&(l=l.substring(0,l.length-1));let p=null,m=null;if(n.parseMultDiv){var y=M0e(l);l=y.key,p=y.op,m=y.number}let b;if(d){if(a[l]===void 0)return"";b=a[l]}else for(let w of e)if(w){if(w.hasOwnProperty(l)){b=w[l];break}if(qE.test(l)||(b=_e.nestedProperty(w,l).get(!0)),b!==void 0)break}if(b===void 0){let{count:w,max:k,name:M}=n,C=t===!1?o:t;return w=ug&&o<=ME,u=l>=ug&&l<=ME;if(s&&(a=10*a+o-ug),u&&(n=10*n+l-ug),!s||!u){if(a!==n)return a-n;if(o!==l)return o-l}}return n-a};var Xv=2e9;_e.seedPseudoRandom=function(){Xv=2e9};_e.pseudoRandom=function(){var e=Xv;return Xv=(69069*Xv+1)%4294967296,Math.abs(Xv-e)<429496729?_e.pseudoRandom():Xv/4294967296};_e.fillText=function(e,r,t){var a=Array.isArray(t)?function(o){t.push(o)}:function(o){t.text=o},n=_e.extractOption(e,r,"htx","hovertext");if(_e.isValidTextValue(n))return a(n);var i=_e.extractOption(e,r,"tx","text");if(_e.isValidTextValue(i))return a(i)};_e.isValidTextValue=function(e){return e||e===0};_e.formatPercent=function(e,r){r=r||0;for(var t=(Math.round(100*e*Math.pow(10,r))*Math.pow(.1,r)).toFixed(r)+"%",a=0;a1&&(u=1):u=0,_e.strTranslate(n-u*(t+o),i-u*(a+l))+_e.strScale(u)+(s?"rotate("+s+(r?"":" "+t+" "+a)+")":"")};_e.setTransormAndDisplay=function(e,r){e.attr("transform",_e.getTextTransform(r)),e.style("display",r.scale?null:"none")};_e.ensureUniformFontSize=function(e,r){var t=_e.extendFlat({},r);return t.size=Math.max(r.size,e._fullLayout.uniformtext.minsize||0),t};_e.join2=function(e,r,t){var a=e.length;return a>1?e.slice(0,-1).join(r)+t+e[a-1]:e.join(r)};_e.bigFont=function(e){return Math.round(1.2*e)};var kE=_e.getFirefoxVersion(),S0e=kE!==null&&kE<86;_e.getPositionFromD3Event=function(){return S0e?[Y2.event.layerX,Y2.event.layerY]:[Y2.event.offsetX,Y2.event.offsetY]}});var NE=B(()=>{"use strict";var C0e=or(),RE={"X,X div":'direction:ltr;font-family:"Open Sans",verdana,arial,sans-serif;margin:0;padding:0;border: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 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:focus-within .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-group a":"display:grid;place-content:center;","X .modebar-btn":"position:relative;font-size:16px;padding:3px 4px;height:22px;cursor:pointer;line-height:normal;box-sizing:border-box;border:none;background:rgba(0,0,0,0);","X .modebar-btn svg":"position:relative;","X .modebar-btn:focus-visible":"outline:1px solid #000;outline-offset:1px;border-radius:3px;","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;","X .plotly-cloud-dialog":'font-family:"Open Sans",verdana,arial,sans-serif;position:absolute;top:0;left:0;width:100%;height:100%;z-index:1001;display:flex;align-items:center;justify-content:center;background-color:rgba(0,0,0,.4);',"X .plotly-cloud-dialog .plotly-cloud-dialog-box":"box-sizing:border-box;min-width:300px;max-width:420px;padding:20px 24px;background-color:#fff;border:1px solid #e0e2e5;border-radius:4px;box-shadow:0 4px 16px rgba(0,0,0,.25);font-size:13px;color:#2a3f5f;","X .plotly-cloud-dialog .plotly-cloud-dialog-title":"font-size:16px;font-weight:bold;margin-bottom:12px;","X .plotly-cloud-dialog .plotly-cloud-dialog-message":"line-height:1.5;overflow-wrap:break-word;word-wrap:break-word;","X .plotly-cloud-dialog .plotly-cloud-dialog-message--hostname":"font-weight:bold;text-decoration:underline;","X .plotly-cloud-dialog .plotly-cloud-dialog-message--account":"margin-top:16px;padding:8px;border-radius:3px;font-size:.9em;background-color:#edf1f8;","X .plotly-cloud-dialog .plotly-cloud-dialog-buttons":"display:flex;justify-content:flex-end;margin-top:20px;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn":"font-family:inherit;font-size:13px;padding:7px 16px;margin-left:8px;border-radius:3px;border:1px solid rgba(0,0,0,0);cursor:pointer;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn:focus-visible":"outline:2px solid #447adb;outline-offset:1px;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn--cancel":"background-color:#f3f3f3;margin-left:auto;color:#777;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn--cancel:hover":"background-color:#e0e2e5;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn--confirm":"background-color:#447adb;color:#fff;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn--confirm:hover":"background-color:#1d3b84;",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(_6 in RE)PE=_6.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier"),C0e.addStyleRule(PE,RE[_6]);var PE,_6});var w6=B((sqe,zE)=>{zE.exports=!0});var T6=B((uqe,BE)=>{"use strict";var D0e=w6(),A6;typeof window.matchMedia=="function"?A6=!window.matchMedia("(hover: none)").matches:A6=D0e;BE.exports=A6});var hg=B((fqe,M6)=>{"use strict";var Jv=typeof Reflect=="object"?Reflect:null,IE=Jv&&typeof Jv.apply=="function"?Jv.apply:function(r,t,a){return Function.prototype.apply.call(r,t,a)},cg;Jv&&typeof Jv.ownKeys=="function"?cg=Jv.ownKeys:Object.getOwnPropertySymbols?cg=function(r){return Object.getOwnPropertyNames(r).concat(Object.getOwnPropertySymbols(r))}:cg=function(r){return Object.getOwnPropertyNames(r)};function L0e(e){console&&console.warn&&console.warn(e)}var HE=Number.isNaN||function(r){return r!==r};function Ka(){Ka.init.call(this)}M6.exports=Ka;M6.exports.once=R0e;Ka.EventEmitter=Ka;Ka.prototype._events=void 0;Ka.prototype._eventsCount=0;Ka.prototype._maxListeners=void 0;var OE=10;function vg(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(Ka,"defaultMaxListeners",{enumerable:!0,get:function(){return OE},set:function(e){if(typeof e!="number"||e<0||HE(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");OE=e}});Ka.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};Ka.prototype.setMaxListeners=function(r){if(typeof r!="number"||r<0||HE(r))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+r+".");return this._maxListeners=r,this};function UE(e){return e._maxListeners===void 0?Ka.defaultMaxListeners:e._maxListeners}Ka.prototype.getMaxListeners=function(){return UE(this)};Ka.prototype.emit=function(r){for(var t=[],a=1;a0&&(o=t[0]),o instanceof Error)throw o;var l=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw l.context=o,l}var s=i[r];if(s===void 0)return!1;if(typeof s=="function")IE(s,this,t);else for(var u=s.length,f=WE(s,u),a=0;a0&&o.length>n&&!o.warned){o.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(r)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=r,l.count=o.length,L0e(l)}return e}Ka.prototype.addListener=function(r,t){return GE(this,r,t,!1)};Ka.prototype.on=Ka.prototype.addListener;Ka.prototype.prependListener=function(r,t){return GE(this,r,t,!0)};function E0e(){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 YE(e,r,t){var a={fired:!1,wrapFn:void 0,target:e,type:r,listener:t},n=E0e.bind(a);return n.listener=t,a.wrapFn=n,n}Ka.prototype.once=function(r,t){return vg(t),this.on(r,YE(this,r,t)),this};Ka.prototype.prependOnceListener=function(r,t){return vg(t),this.prependListener(r,YE(this,r,t)),this};Ka.prototype.removeListener=function(r,t){var a,n,i,o,l;if(vg(t),n=this._events,n===void 0)return this;if(a=n[r],a===void 0)return this;if(a===t||a.listener===t)--this._eventsCount===0?this._events=Object.create(null):(delete n[r],n.removeListener&&this.emit("removeListener",r,a.listener||t));else if(typeof a!="function"){for(i=-1,o=a.length-1;o>=0;o--)if(a[o]===t||a[o].listener===t){l=a[o].listener,i=o;break}if(i<0)return this;i===0?a.shift():q0e(a,i),a.length===1&&(n[r]=a[0]),n.removeListener!==void 0&&this.emit("removeListener",r,l||t)}return this};Ka.prototype.off=Ka.prototype.removeListener;Ka.prototype.removeAllListeners=function(r){var t,a,n;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[r]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete a[r]),this;if(arguments.length===0){var i=Object.keys(a),o;for(n=0;n=0;n--)this.removeListener(r,t[n]);return this};function VE(e,r,t){var a=e._events;if(a===void 0)return[];var n=a[r];return n===void 0?[]:typeof n=="function"?t?[n.listener||n]:[n]:t?F0e(n):WE(n,n.length)}Ka.prototype.listeners=function(r){return VE(this,r,!0)};Ka.prototype.rawListeners=function(r){return VE(this,r,!1)};Ka.listenerCount=function(e,r){return typeof e.listenerCount=="function"?e.listenerCount(r):XE.call(e,r)};Ka.prototype.listenerCount=XE;function XE(e){var r=this._events;if(r!==void 0){var t=r[e];if(typeof t=="function")return 1;if(t!==void 0)return t.length}return 0}Ka.prototype.eventNames=function(){return this._eventsCount>0?cg(this._events):[]};function WE(e,r){for(var t=new Array(r),a=0;a{"use strict";var k6=hg().EventEmitter,N0e={init:function(e){if(e._ev instanceof k6)return e;var r=new k6,t=new k6;return e._ev=r,e._internalEv=t,e.on=r.on.bind(r),e.once=r.once.bind(r),e.removeListener=r.removeListener.bind(r),e.removeAllListeners=r.removeAllListeners.bind(r),e._internalOn=t.on.bind(t),e._internalOnce=t.once.bind(t),e._removeInternalListener=t.removeListener.bind(t),e._removeAllInternalListeners=t.removeAllListeners.bind(t),e.emit=function(a,n){r.emit(a,n),t.emit(a,n)},typeof e.addEventListener=="function"&&e.addEventListener("wheel",()=>{},{passive:!0}),e},triggerHandler:function(e,r,t){var a,n=e._ev;if(!n)return;var i=n._events[r];if(!i)return;function o(s){if(s.listener){if(n.removeListener(r,s.listener),!s.fired)return s.fired=!0,s.listener.apply(n,[t])}else return s.apply(n,[t])}i=Array.isArray(i)?i:[i];var l;for(l=0;l{"use strict";var jE=or(),z0e=nf().dfltConfig;function B0e(e,r){for(var t=[],a,n=0;nz0e.queueLength&&(e.undoQueue.queue.shift(),e.undoQueue.index--)};vu.startSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!0,e.undoQueue.beginSequence=!0};vu.stopSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!1,e.undoQueue.beginSequence=!1};vu.undo=function(r){var t,a;if(!(r.undoQueue===void 0||isNaN(r.undoQueue.index)||r.undoQueue.index<=0)){for(r.undoQueue.index--,t=r.undoQueue.queue[r.undoQueue.index],r.undoQueue.inSequence=!0,a=0;a=r.undoQueue.queue.length)){for(t=r.undoQueue.queue[r.undoQueue.index],r.undoQueue.inSequence=!0,a=0;a{"use strict";QE.exports={_isLinkedToArray:"frames_entry",group:{valType:"string"},name:{valType:"string"},traces:{valType:"any"},baseframe:{valType:"string"},data:{valType:"any"},layout:{valType:"any"}}});var Kv=B(ti=>{"use strict";var ol=Pt(),X2=or(),pg=Fl(),C6=Uv(),I0e=S6(),O0e=B2(),H0e=nf().configAttributes,eq=Nl(),Il=X2.extendDeepAll,jv=X2.isPlainObject,U0e=X2.isArrayOrTypedArray,mg=X2.nestedProperty,G0e=X2.valObjectMeta,D6="_isSubplotObj",yg="_isLinkedToArray",Y0e="_arrayAttrRegexps",tq="_deprecated",L6=[D6,yg,Y0e,tq];ti.IS_SUBPLOT_OBJ=D6;ti.IS_LINKED_TO_ARRAY=yg;ti.DEPRECATED=tq;ti.UNDERSCORE_ATTRS=L6;ti.get=function(){var e={};return ol.allTypes.forEach(function(r){e[r]=X0e(r)}),{defs:{valObjects:G0e,metaKeys:L6.concat(["description","role","editType","impliedEdits"]),editType:{traces:eq.traces,layout:eq.layout},impliedEdits:{}},traces:e,layout:W0e(),frames:Z0e(),animation:$v(O0e),config:$v(H0e)}};ti.crawl=function(e,r,t,a){var n=t||0;a=a||"",Object.keys(e).forEach(function(i){var o=e[i];if(L6.indexOf(i)===-1){var l=(a?a+".":"")+i;r(o,i,e,n,l),!ti.isValObject(o)&&jv(o)&&i!=="impliedEdits"&&ti.crawl(o,r,n+1,l)}})};ti.isValObject=function(e){return e&&e.valType!==void 0};ti.findArrayAttributes=function(e){var r=[],t=[],a=[],n,i;function o(s,u,f,c){t=t.slice(0,c).concat([u]),a=a.slice(0,c).concat([s&&s._isLinkedToArray]);var v=s&&(s.valType==="data_array"||s.arrayOk===!0)&&!(t[c-1]==="colorbar"&&(u==="ticktext"||u==="tickvals"));v&&l(n,0,"")}function l(s,u,f){var c=s[t[u]],v=f+t[u];if(u===t.length-1)U0e(c)&&r.push(i+v);else if(a[u]){if(Array.isArray(c))for(var d=0;d=i.length)return!1;if(e.dimensions===2){if(t++,r.length===t)return e;var o=r[t];if(!dg(o))return!1;e=i[n][o]}else e=i[n]}else e=i}}return e}function dg(e){return e===Math.round(e)&&e>=0}function X0e(e){var r,t;r=ol.modules[e]._module,t=r.basePlotModule;var a={};a.type=null;var n=Il({},pg),i=Il({},r.attributes);ti.crawl(i,function(s,u,f,c,v){mg(n,v).set(void 0),s===void 0&&mg(i,v).set(void 0)}),Il(a,n),ol.traceIs(e,"noOpacity")&&delete a.opacity,ol.traceIs(e,"showLegend")||(delete a.showlegend,delete a.legendgroup),ol.traceIs(e,"noHover")&&(delete a.hoverinfo,delete a.hoverlabel),r.selectPoints||delete a.selectedpoints,Il(a,i),t.attributes&&Il(a,t.attributes),a.type=e;var o={meta:r.meta||{},categories:r.categories||{},animatable:!!r.animatable,type:e,attributes:$v(a)};if(r.layoutAttributes){var l={};Il(l,r.layoutAttributes),o.layoutAttributes=$v(l)}return r.animatable||ti.crawl(o,function(s){ti.isValObject(s)&&"anim"in s&&delete s.anim}),o}function W0e(){var e={},r,t;Il(e,C6);for(r in ol.subplotsRegistry)if(t=ol.subplotsRegistry[r],!!t.layoutAttributes)if(Array.isArray(t.attr))for(var a=0;a{"use strict";var Qv=or(),Q0e=Fl(),yf="templateitemname",E6={name:{valType:"string",editType:"none"}};E6[yf]={valType:"string",editType:"calc"};Z0.templatedArray=function(e,r){return r._isLinkedToArray=e,r.name=E6.name,r[yf]=E6[yf],r};Z0.traceTemplater=function(e){var r={},t,a;for(t in e)a=e[t],Array.isArray(a)&&a.length&&(r[t]=0);function n(i){t=Qv.coerce(i,{},Q0e,"type");var o={type:t,_template:null};if(t in r){a=e[t];var l=r[t]%a.length;r[t]++,o._template=a[l]}return o}return{newTrace:n}};Z0.newContainer=function(e,r,t){var a=e._template,n=a&&(a[r]||t&&a[t]);Qv.isPlainObject(n)||(n=null);var i=e[r]={_template:n};return i};Z0.arrayTemplater=function(e,r,t){var a=e._template,n=a&&a[iq(r)],i=a&&a[r];(!Array.isArray(i)||!i.length)&&(i=[]);var o={};function l(u){var f={name:u.name,_input:u},c=f[yf]=u[yf];if(!nq(c))return f._template=n,f;for(var v=0;v=a&&(t._input||{})._templateitemname;i&&(n=a);var o=r+"["+n+"]",l;function s(){l={},i&&(l[o]={},l[o][yf]=i)}s();function u(d,p){l[d]=p}function f(d,p){i?Qv.nestedProperty(l[o],d).set(p):l[o+"."+d]=p}function c(){var d=l;return s(),d}function v(d,p){d&&f(d,p);var m=c();for(var y in m)Qv.nestedProperty(e,y).set(m[y])}return{modifyBase:u,modifyItem:f,getUpdateObj:c,applyUpdate:v}}});var ai={};ja(ai,{AX_ID_PATTERN:()=>nce,AX_NAME_PATTERN:()=>ice,DFLTRANGEX:()=>hce,DFLTRANGEY:()=>dce,DRAGGERSIZE:()=>cce,HOUR_PATTERN:()=>lce,MINDRAG:()=>uce,MINZOOM:()=>fce,REDRAWDELAY:()=>vce,SUBPLOT_PATTERN:()=>oce,WEEKDAY_PATTERN:()=>sce,attrRegex:()=>rce,clipOnAxisFalseQuery:()=>mce,idRegex:()=>ece,layerValue2layerClass:()=>yce,traceLayerClasses:()=>pce,xAxisMatch:()=>tce,yAxisMatch:()=>ace,zindexSeparator:()=>gce});var ece,rce,tce,ace,nce,ice,oce,lce,sce,uce,fce,cce,vce,hce,dce,pce,mce,yce,gce,ni=Ja(()=>{"use strict";Bv();ece={x:G0("x","( domain)?"),y:G0("y","( domain)?")},rce=G0("[xy]axis"),tce=G0("xaxis"),ace=G0("yaxis"),nce=/^[xyz][0-9]*( domain)?$/,ice=/^[xyz]axis[0-9]*$/,oce=/^x([0-9]*)y([0-9]*)$/,lce="hour",sce="day of week",uce=8,fce=20,cce=20,vce=50,hce=[-1,6],dce=[-1,4],pce=["imagelayer","heatmaplayer","contourcarpetlayer","contourlayer","funnellayer","waterfalllayer","barlayer","carpetlayer","violinlayer","boxlayer","ohlclayer","scattercarpetlayer","scatterlayer"],mce=[".scatterlayer",".barlayer",".funnellayer",".waterfalllayer"],yce={"above traces":"above","below traces":"below"},gce="z"});var hn=B(To=>{"use strict";var bce=Pt(),q6=(ni(),vr(ai));To.id2name=function(r){if(!(typeof r!="string"||!r.match(q6.AX_ID_PATTERN))){var t=r.split(" ")[0].slice(1);return t==="1"&&(t=""),r.charAt(0)+"axis"+t}};To.name2id=function(r){if(r.match(q6.AX_NAME_PATTERN)){var t=r.slice(5);return t==="1"&&(t=""),r.charAt(0)+t}};To.cleanId=function(r,t,a){var n=/( domain)$/.test(r);if(!(typeof r!="string"||!r.match(q6.AX_ID_PATTERN))&&!(t&&r.charAt(0)!==t)&&!(n&&!a)){var i=r.split(" ")[0].slice(1).replace(/^0+/,"");return i==="1"&&(i=""),r.charAt(0)+i+(n&&a?" domain":"")}};To.list=function(e,r,t){var a=e._fullLayout;if(!a)return[];var n=To.listIds(e,r),i=new Array(n.length),o;for(o=0;oa?1:-1:+(e.slice(1)||1)-+(r.slice(1)||1)};To.ref2id=function(e){return/^[xyz]/.test(e)?e.split(" ")[0]:!1};function oq(e,r){if(r&&r.length){for(var t=0;t{"use strict";function xce(e){var r=e._fullLayout._zoomlayer;r&&r.selectAll(".outline-controllers").remove()}function _ce(e){var r=e._fullLayout._zoomlayer;r&&r.selectAll(".select-outline").remove(),e._fullLayout._outlining=!1}lq.exports={clearOutlineControllers:xce,clearOutline:_ce}});var gg=B((bqe,sq)=>{"use strict";sq.exports={scattermode:{valType:"enumerated",values:["group","overlay"],dflt:"overlay",editType:"calc"},scattergap:{valType:"number",min:0,max:1,editType:"calc"}}});var W2=B(xg=>{"use strict";var bg=Pt(),xqe=(ni(),vr(ai)).SUBPLOT_PATTERN;xg.getSubplotCalcData=function(e,r,t){var a=bg.subplotsRegistry[r];if(!a)return[];for(var n=a.attr,i=[],o=0;o{"use strict";var wce=Pt(),eh=or();J0.manageCommandObserver=function(e,r,t,a){var n={},i=!0;r&&r._commandObserver&&(n=r._commandObserver),n.cache||(n.cache={}),n.lookupTable={};var o=J0.hasSimpleAPICommandBindings(e,t,n.lookupTable);if(r&&r._commandObserver){if(o)return n;if(r._commandObserver.remove)return r._commandObserver.remove(),r._commandObserver=null,n}if(o){uq(e,o,n.cache),n.check=function(){if(i){var f=uq(e,o,n.cache);return f.changed&&a&&n.lookupTable[f.value]!==void 0&&(n.disable(),Promise.resolve(a({value:f.value,type:o.type,prop:o.prop,traces:o.traces,index:n.lookupTable[f.value]})).then(n.enable,n.enable)),f.changed}};for(var l=["plotly_relayout","plotly_redraw","plotly_restyle","plotly_update","plotly_animatingframe","plotly_afterplot"],s=0;s0?".":"")+n;eh.isPlainObject(i)?F6(i,r,o,a+1):r(o,n,i)}})}});var di=B((Tqe,wq)=>{"use strict";var Aqe=la(),Tce=wv().timeFormatLocale,Mce=v_().formatLocale,Z2=da(),kce=d_(),Sce=v2().version,ya=Pt(),Cce=Kv(),Dce=Ra(),st=or(),Lce=Kt(),hq=(Wn(),vr(ri)).BADNUM,Mo=hn(),Ece=gf().clearOutline,qce=gg(),R6=B2(),Fce=S6(),Rce=W2().getModuleCalcData,dq=st.relinkPrivateKeys,j0=st._,Gr=wq.exports={};st.extendFlat(Gr,ya);Gr.attributes=Fl();Gr.attributes.type.values=Gr.allTypes;Gr.fontAttrs=Di();Gr.layoutAttributes=Uv();var wg=vq();Gr.executeAPICommand=wg.executeAPICommand;Gr.computeAPICommandBindings=wg.computeAPICommandBindings;Gr.manageCommandObserver=wg.manageCommandObserver;Gr.hasSimpleAPICommandBindings=wg.hasSimpleAPICommandBindings;Gr.redrawText=function(e){return e=st.getGraphDiv(e),new Promise(function(r){setTimeout(function(){e._fullLayout&&(ya.getComponentMethod("annotations","draw")(e),ya.getComponentMethod("legend","draw")(e),ya.getComponentMethod("colorbar","draw")(e),r(Gr.previousPromises(e)))},300)})};Gr.resize=function(e){e=st.getGraphDiv(e);var r,t=new Promise(function(a,n){(!e||st.isHidden(e))&&n(new Error("Resize must be passed a displayed plot div element.")),e._redrawTimer&&clearTimeout(e._redrawTimer),e._resolveResize&&(r=e._resolveResize),e._resolveResize=a,e._redrawTimer=setTimeout(function(){if(!e.layout||e.layout.width&&e.layout.height||st.isHidden(e)){a(e);return}delete e.layout.width,delete e.layout.height;var i=e.changed;e.autoplay=!0,ya.call("relayout",e,{autosize:!0}).then(function(){e.changed=i,e._resolveResize===a&&(delete e._resolveResize,a(e))})},100)});return r&&r(t),t};Gr.previousPromises=function(e){if((e._promises||[]).length)return Promise.all(e._promises).then(function(){e._promises=[]})};Gr.sendDataToCloud=function(e,r){e.emit("plotly_beforeexport");let t=new URL(r).origin;var a=Gr.graphJson(e,!1,"object");a.version=Sce;var n=new URL(r);n.searchParams.set("origin",window.location.origin);var i=window.open(n.href,"_blank");if(!i){console.error("Unable to open Plotly Cloud (the popup may have been blocked)"),e.emit("plotly_exportfail");return}var o=function(l){l.origin===t&&l.data&&l.data.type==="CHART_AUTH_SUCCESS"&&(i.postMessage({type:"chart",chart:a},t),window.removeEventListener("message",o),e.emit("plotly_afterexport"))};return window.addEventListener("message",o),!1};var Pce=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],Nce=["year","month","dayMonth","dayMonthYear"];Gr.supplyDefaults=function(e,r){var t=r&&r.skipUpdateCalc,a=e._fullLayout||{};if(a._skipDefaults){delete a._skipDefaults;return}var n=e._fullLayout={},i=e.layout||{},o=e._fullData||[],l=e._fullData=[],s=e.data||[],u=e.calcdata||[],f=e._context||{},c;e._transitionData||Gr.createTransitionData(e),n._dfltTitle={plot:j0(e,"Click to enter Plot title"),subtitle:j0(e,"Click to enter Plot subtitle"),x:j0(e,"Click to enter X axis title"),y:j0(e,"Click to enter Y axis title"),colorbar:j0(e,"Click to enter Colorscale title"),annotation:j0(e,"new text")},n._traceWord=j0(e,"trace");var v=pq(e,Pce);if(a._initialAutoSizeIsDone){var d=a.width,p=a.height;Gr.supplyLayoutGlobalDefaults(i,n,v),i.width||(n.width=d),i.height||(n.height=p),Gr.sanitizeMargins(n)}else{Gr.supplyLayoutGlobalDefaults(i,n,v);var m=!i.width||!i.height,y=n.autosize,b=f.autosizable,T=m&&(y||b);T?Gr.plotAutoSize(e,i,n):m&&Gr.sanitizeMargins(n),!y&&m&&(i.width=n.width,i.height=n.height)}n._d3locale=Ice(v,n.separators),n._extraFormat=pq(e,Nce),n._initialAutoSizeIsDone=!0,n._dataLength=s.length,n._modules=[],n._visibleModules=[],n._basePlotModules=[];var _=n._subplots=Bce(),x=n._splomAxes={x:{},y:{}},w=n._splomSubplots={};n._splomGridDflt={},n._scatterStackOpts={},n._firstScatter={},n._alignmentOpts={},n._colorAxes={},n._requestRangeslider={},n._traceUids=zce(o,s),Gr.supplyDataDefaults(s,l,i,n);var k=Object.keys(x.x),M=Object.keys(x.y);if(k.length>1&&M.length>1){for(ya.getComponentMethod("grid","sizeDefaults")(i,n),c=0;c15&&M.length>15&&n.shapes.length===0&&n.images.length===0,Gr.linkSubplots(l,n,o,a),Gr.cleanPlot(l,n,o,a);var q=!!(a._has&&a._has("cartesian")),z=!!(n._has&&n._has("cartesian")),I=q,U=z;I&&!U?a._bgLayer.remove():U&&!I&&(n._shouldCreateBgLayer=!0),a._zoomlayer&&!e._dragging&&Ece({_fullLayout:a}),Oce(l,n),dq(n,a),ya.getComponentMethod("colorscale","crossTraceDefaults")(l,n),n._preGUI||(n._preGUI={}),n._tracePreGUI||(n._tracePreGUI={});var V=n._tracePreGUI,W={},G;for(G in V)W[G]="old";for(c=0;c0){var f=1-2*i;o=Math.round(f*o),l=Math.round(f*l)}}var c=Gr.layoutAttributes.width.min,v=Gr.layoutAttributes.height.min;o1,p=!t.height&&Math.abs(a.height-l)>1;(p||d)&&(d&&(a.width=o),p&&(a.height=l)),r._initialAutoSize||(r._initialAutoSize={width:o,height:l}),Gr.sanitizeMargins(a)};Gr.supplyLayoutModuleDefaults=function(e,r,t,a){var n=ya.componentsRegistry,i=r._basePlotModules,o,l,s,u=ya.subplotsRegistry.cartesian;for(o in n)s=n[o],s.includeBasePlot&&s.includeBasePlot(e,r);i.length||i.push(u),r._has("cartesian")&&(ya.getComponentMethod("grid","contentDefaults")(e,r),u.finalizeSubplots(e,r));for(var f in r._subplots)r._subplots[f].sort(st.subplotSort);for(l=0;l1&&(t.l/=y,t.r/=y)}if(v){var b=(t.t+t.b)/v;b>1&&(t.t/=b,t.b/=b)}var T=t.xl!==void 0?t.xl:t.x,_=t.xr!==void 0?t.xr:t.x,x=t.yt!==void 0?t.yt:t.y,w=t.yb!==void 0?t.yb:t.y;d[r]={l:{val:T,size:t.l+m},r:{val:_,size:t.r+m},b:{val:w,size:t.b+m},t:{val:x,size:t.t+m}},p[r]=1}if(!a._replotting)return Gr.doAutoMargin(e)}};function Uce(e){if("_redrawFromAutoMarginCount"in e._fullLayout)return!1;var r=Mo.list(e,"",!0);for(var t in r)if(r[t].autoshift||r[t].shift)return!0;return!1}Gr.doAutoMargin=function(e){var r=e._fullLayout,t=r.width,a=r.height;r._size||(r._size={}),gq(r);var n=r._size,i=r.margin,o={t:0,b:0,l:0,r:0},l=st.extendFlat({},n),s=i.l,u=i.r,f=i.t,c=i.b,v=r._pushmargin,d=r._pushmarginIds,p=r.minreducedwidth,m=r.minreducedheight;if(i.autoexpand!==!1){for(var y in v)d[y]||delete v[y];var b=e._fullLayout._reservedMargin;for(var T in b)for(var _ in b[T]){var x=b[T][_];o[_]=Math.max(o[_],x)}v.base={l:{val:0,size:s},r:{val:1,size:u},t:{val:1,size:f},b:{val:0,size:c}};for(var w in o){var k=0;for(var M in v)M!=="base"&&Z2(v[M][w].size)&&(k=v[M][w].size>k?v[M][w].size:k);var C=Math.max(0,i[w]-k);o[w]=Math.max(0,o[w]-C)}for(var E in v){var F=v[E].l||{},P=v[E].b||{},q=F.val,z=F.size,I=P.val,U=P.size,V=t-o.r-o.l,W=a-o.t-o.b;for(var G in v){if(Z2(z)&&v[G].r){var Y=v[G].r.val,Z=v[G].r.size;if(Y>q){var j=(z*Y+(Z-V)*q)/(Y-q),ee=(Z*(1-q)+(z-V)*(1-Y))/(Y-q);j+ee>s+u&&(s=j,u=ee)}}if(Z2(U)&&v[G].t){var ye=v[G].t.val,fe=v[G].t.size;if(ye>I){var he=(U*ye+(fe-W)*I)/(ye-I),ae=(fe*(1-I)+(U-W)*(1-ye))/(ye-I);he+ae>c+f&&(c=he,f=ae)}}}}}var Le=st.constrain(t-i.l-i.r,bq,p),ce=st.constrain(a-i.t-i.b,xq,m),Fe=Math.max(0,t-Le),Re=Math.max(0,a-ce);if(Fe){var ge=(s+u)/Fe;ge>1&&(s/=ge,u/=ge)}if(Re){var He=(c+f)/Re;He>1&&(c/=He,f/=He)}if(n.l=Math.round(s)+o.l,n.r=Math.round(u)+o.r,n.t=Math.round(f)+o.t,n.b=Math.round(c)+o.b,n.p=Math.round(i.pad),n.w=Math.round(t)-n.l-n.r,n.h=Math.round(a)-n.t-n.b,!r._replotting&&(Gr.didMarginChange(l,n)||Uce(e))){"_redrawFromAutoMarginCount"in r?r._redrawFromAutoMarginCount++:r._redrawFromAutoMarginCount=1;var ur=3*(1+Object.keys(d).length);if(r._redrawFromAutoMarginCount1)return!0}return!1};Gr.graphJson=function(e,r=!1,t="json",a=!1,n=!1){(a&&r&&!e._fullData||a&&!r&&!e._fullLayout)&&Gr.supplyDefaults(e);var i=a?e._fullData:e.data,o=a?e._fullLayout:e.layout,l=(e._transitionData||{})._frames;function s(c,v){if(typeof c=="function")return v?"_function_":null;if(st.isPlainObject(c)){var d={};return Object.keys(c).sort().forEach(function(b){if(["_","["].indexOf(b.charAt(0))===-1){if(typeof c[b]=="function"){v&&(d[b]="_function");return}d[b]=s(c[b],v)}}),d}var p=Array.isArray(c),m=st.isTypedArray(c);if((p||m)&&c.dtype&&c.shape){var y=c.bdata;return s({dtype:c.dtype,shape:c.shape,bdata:st.isArrayBuffer(y)?kce.encode(y):y},v)}return p?c.map(function(b){return s(b,v)}):m?st.simpleMap(c,st.identity):st.isJSDate(c)?st.ms2DateTimeLocal(+c):c}var u={data:(i||[]).map(function(c){var v=s(c);return r&&delete v.fit,v})};if(!r&&(u.layout=s(o),a)){var f=o._size;u.layout.computed={margin:{b:f.b,l:f.l,r:f.r,t:f.t}}}return l&&(u.frames=s(l)),n&&(u.config=s(e._context,!0)),t==="object"?u:JSON.stringify(u)};Gr.modifyFrames=function(e,r){var t,a,n,i=e._transitionData._frames,o=e._transitionData._frameHash;for(t=0;t0&&(e._transitioningWithDuration=!0),e._transitionData._interruptCallbacks.push(function(){a=!0}),t.redraw&&e._transitionData._interruptCallbacks.push(function(){return ya.call("redraw",e)}),e._transitionData._interruptCallbacks.push(function(){e.emit("plotly_transitioninterrupted",[])});var v=0,d=0;function p(){return v++,function(){d++,!a&&d===v&&l(c)}}t.runFn(p),setTimeout(p())})}function l(c){if(e._transitionData)return i(e._transitionData._interruptCallbacks),Promise.resolve().then(function(){if(t.redraw)return ya.call("redraw",e)}).then(function(){e._transitioning=!1,e._transitioningWithDuration=!1,e.emit("plotly_transitioned",[])}).then(c)}function s(){if(e._transitionData)return e._transitioning=!1,n(e._transitionData._interruptCallbacks)}var u=[Gr.previousPromises,s,t.prepareFn,Gr.rehover,Gr.reselect,o],f=st.syncOrAsync(u,e);return(!f||!f.then)&&(f=Promise.resolve()),f.then(function(){return e})}Gr.doCalcdata=function(e,r){var t=Mo.list(e),a=e._fullData,n=e._fullLayout,i,o,l,s=new Array(a.length),u=(e.calcdata||[]).slice();for(e.calcdata=s,n._numBoxes=0,n._numViolins=0,n._violinScaleGroupStats={},e._hmpixcount=0,e._hmlumcount=0,n._piecolormap={},n._sunburstcolormap={},n._treemapcolormap={},n._iciclecolormap={},n._funnelareacolormap={},l=0;lAq,svgAttrs:()=>Zce,xlink:()=>Tq,xmlns:()=>Wce});var Wce,Aq,Tq,Zce,xf=Ja(()=>{"use strict";Wce="http://www.w3.org/2000/xmlns/",Aq="http://www.w3.org/2000/svg",Tq="http://www.w3.org/1999/xlink",Zce={xmlns:Aq,"xmlns:xlink":Tq}});var Ii={};ja(Ii,{CAP_SHIFT:()=>Qce,FROM_BL:()=>Jce,FROM_BR:()=>$ce,FROM_TL:()=>jce,LINE_SPACING:()=>Kce,MID_SHIFT:()=>eve,OPPOSITE_SIDE:()=>rve});var Jce,jce,$ce,Kce,Qce,eve,rve,Oi=Ja(()=>{"use strict";Jce={left:0,center:.5,right:1,bottom:0,middle:.5,top:1},jce={left:0,center:.5,right:1,bottom:1,middle:.5,top:0},$ce={left:1,center:.5,right:0,bottom:0,middle:.5,top:1},Kce=1.3,Qce=.7,eve=.35,rve={left:"right",right:"left",top:"bottom",bottom:"top"}});var Ei=B(Ji=>{"use strict";var kn=la(),ll=or(),tve=ll.strTranslate,P6=(xf(),vr(bf)),ave=(Oi(),vr(Ii)).LINE_SPACING,nve=/([^$]*)([$]+[^$]*[$]+)([^$]*)/,B6=e=>e?e.match(nve):null;Ji.matchTex=B6;var ive=e=>{var r=B6(e);return!!r&&!r[1]&&!r[3]};Ji.isPureTex=ive;function Lq(e,r,t,a,n,i,o,l){var s=a.select("g"),u=s.node().getBoundingClientRect(),f=u.width,c=u.height,v=o===void 0?f:o,d=l===void 0?c:l;(f>v||c>d)&&(a.style("overflow","hidden"),u=a.node().getBoundingClientRect(),f=u.width,c=u.height);var p=+e.attr("x"),m=+e.attr("y"),y=i||e.node().getBoundingClientRect().height,b=-y/4;r[0]==="y"?t.attr({transform:"rotate("+[-90,p,m]+")"+tve(-f/2,b-c/2)}):r[0]==="l"?m=b-c/2:r[0]==="a"&&r.indexOf("atitle")!==0?(p=0,m=b):(p=p-f*(n==="middle"?.5:n==="end"?1:0),m=m+b-c/2),a.attr({x:p,y:m})}function ove(e){e.selectAll("a").each(function(){var r=kn.select(this);["href","xlink:href"].forEach(function(t){var a=r.attr(t);a&&r.attr(t,H6(a)||null)})})}Ji.convertToTspans=function(e,r,t){var a=e.text(),n=!e.attr("data-notex")&&r&&r._context.typesetMath&&B6(a);n&&!fve()&&(n=null);var i=kn.select(e.node().parentNode);if(i.empty())return;var o=e.attr("class")?e.attr("class").split(" ")[0]:"text";o+="-math",i.selectAll("svg."+o).remove(),i.selectAll("g."+o+"-group").remove(),e.style("display",null).attr({"data-unformatted":a,"data-math":"N"});function l(){i.empty()||(o=e.attr("class")+"-math",i.select("svg."+o).remove()),e.text("").style("white-space","pre");var s=xve(e.node(),a);s&&e.style("pointer-events","all"),Ji.positionText(e),t&&t.call(e)}return n?(r&&r._promises||[]).push(new Promise(function(s){e.style("display","none");var u=parseInt(e.node().style.fontSize,10),f={fontSize:u},c=e.attr("text-anchor");cve(n[2],f,function(v,d,p){i.selectAll("svg."+o).remove(),i.selectAll("g."+o+"-group").remove();var m=v&&v.select("svg");if(!m||!m.node()){l(),s();return}e.style("display","none");var y=i.append("g").classed(o+"-group",!0).attr({"pointer-events":"none","data-unformatted":a,"data-math":"Y"});y.node().appendChild(m.node()),ove(m),d&&d.node()&&m.node().insertBefore(d.node().cloneNode(!0),m.node().firstChild);var b=p.width,T=p.height;m.attr({class:o,height:T,preserveAspectRatio:"xMinYMin meet"}).style({overflow:"visible","pointer-events":"none","font-size":f.fontSize+"px"});var _=e.node().style.fill||"black",x=m.select("g");x.attr({fill:_,stroke:_}),Lq(e,o,y,m,c,u,b,T),t&&t.call(e,y),s(y)})})):l(),e};Ji.repositionMathGroup=function(e){if(!e.empty()){var r=(e.attr("class")?e.attr("class").split(" ")[0]:"text")+"-math",t=kn.select(e.node().parentNode),a=t.select("g."+r+"-group"),n=a.select("svg."+r);if(!(a.empty()||n.empty())){var i=e.attr("text-anchor"),o=parseInt(e.node().style.fontSize,10);Lq(e,r,a,n,i,o)}}};Ji.getMathOrTextNode=function(e){var r=e.node();if(!r)return null;var t=(e.attr("class")?e.attr("class").split(" ")[0]:"text")+"-math",a=kn.select(r.parentNode).select("g."+t+"-group");return a.empty()?r:a.node()};var lve=/(<|<|<)/g,sve=/(>|>|>)/g;function uve(e){return e.replace(lve,"\\lt ").replace(sve,"\\gt ")}var N6=null,Eq=()=>typeof MathJax!="undefined"&&MathJax.version?parseInt(MathJax.version.split(".")[0]):null,Mq=!1,kq=!1;function fve(){let e=Eq();return e===3||e===4?!0:(e===null?Mq||(Mq=!0,ll.warn("MathJax is not loaded. Math equations will not be rendered.")):kq||(kq=!0,ll.warn("Unsupported MathJax version:",MathJax.version)),!1)}function cve(e,r,t){let a=Eq();var n;let i=function(){if(!N6){let u=MathJax._.output.svg_ts.SVG,f=ll.extendFlat({},MathJax.config.svg,{fontCache:"local"});a===4&&(f.linebreaks=ll.extendFlat({},f.linebreaks,{inline:!1})),N6=MathJax._.mathjax.mathjax.document(document,ll.extendFlat({},MathJax.config.options,{InputJax:MathJax.startup.input,OutputJax:new u(f)}))}let l="math-output-"+ll.randstr({},64);n=kn.select("body").append("div").attr({id:l}).style({visibility:"hidden",position:"absolute","font-size":r.fontSize+"px"});let s=uve(e).replace(/^\$+|\$+$/g,"");return MathJax._.mathjax.mathjax.handleRetriesFor(function(){return N6.convert(s,{display:!1})}).then(function(u){n.node().appendChild(u)})},o=function(){let l=n.select(".MathJax"),s=!l.empty()&&n.select("svg").node();if(!s)ll.log("There was an error in the tex syntax.",e),t();else{let u=s.getBoundingClientRect(),f=l.select("defs");t(l,f,u)}n.remove()};Promise.resolve().then(i).then(o).catch(l=>{ll.log("MathJax typesetting failed.",e,l),n&&n.remove(),t()})}var qq={sup:"font-size:70%",sub:"font-size:70%",s:"text-decoration:line-through",u:"text-decoration:underline",b:"font-weight:bold",i:"font-style:italic",a:"cursor:pointer",span:"",em:"font-style:italic;font-weight:bold"},vve={sub:"0.3em",sup:"-0.6em"},hve={sub:"-0.21em",sup:"0.42em"},Sq="\u200B",Cq=["http:","https:","mailto:","",void 0,":"],Fq=Ji.NEWLINES=/(\r\n?|\n)/g,I6=/(<[^<>]*>)/,O6=/<(\/?)([^ >]*)(\s+(.*))?>/i,dve=//i;Ji.BR_TAG_ALL=//gi;var Rq=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,Pq=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,Nq=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,pve=/(^|[\s"'])popup\s*=\s*("([\w=,]*)"|'([\w=,]*)')/i;function $0(e,r){if(!e)return null;var t=e.match(r),a=t&&(t[3]||t[4]);return a&&Ag(a)}var mve=/(^|;)\s*color:/;Ji.plainText=function(e,r){r=r||{};for(var t=r.len!==void 0&&r.len!==-1?r.len:1/0,a=r.allowedTags!==void 0?r.allowedTags:["br"],n="...",i=n.length,o=e.split(I6),l=[],s="",u=0,f=0;fi?l.push(c.slice(0,Math.max(0,m-i))+n):l.push(c.slice(0,m));break}s=""}}return l.join("")};var yve={mu:"\u03BC",amp:"&",lt:"<",gt:">",nbsp:"\xA0",times:"\xD7",plusmn:"\xB1",deg:"\xB0"},gve=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function Ag(e){return e.replace(gve,function(r,t){var a;return t.charAt(0)==="#"?a=bve(t.charAt(1)==="x"?parseInt(t.slice(2),16):parseInt(t.slice(1),10)):a=yve[t],a||r})}Ji.convertEntities=Ag;function bve(e){if(!(e>1114111)){var r=String.fromCodePoint;if(r)return r(e);var t=String.fromCharCode;return e<=65535?t(e):t((e>>10)+55232,e%1024+56320)}}function xve(e,r){r=r.replace(Fq," ");var t=!1,a=[],n,i=-1;function o(){i++;var k=document.createElementNS(P6.svg,"tspan");kn.select(k).attr({class:"line",dy:i*ave+"em"}),e.appendChild(k),n=k;var M=a;if(a=[{node:k}],M.length>1)for(var C=1;C.",r);return}var M=a.pop();k!==M.type&&ll.log("Start tag <"+M.type+"> doesnt match end tag <"+k+">. Pretending it did match.",r),n=a[a.length-1].node}var f=dve.test(r);f?o():(n=e,a=[{node:e}]);for(var c=r.split(I6),v=0;v{"use strict";var _ve=la(),j2=da(),Tg=or(),K0=Kt(),wve=U0().isValid;function Ave(e,r,t){var a=r?Tg.nestedProperty(e,r).get()||{}:e,n=a[t||"color"];n&&n._inputArray&&(n=n._inputArray);var i=!1;if(Tg.isArrayOrTypedArray(n)){for(var o=0;o=0;a--,n++){var i=e[a];t[n]=[1-i[0],i[1]]}return t}function Hq(e,r){r=r||{};for(var t=e.domain,a=e.range,n=a.length,i=new Array(n),o=0;o{"use strict";var Gq=(i6(),vr(n6)),Mve=Gq.FORMAT_LINK,kve=Gq.DATE_FORMAT_LINK;function Sve(e,r){return{valType:"string",dflt:"",editType:"none",description:(r?U6:Yq)("hover text",e)+["By default the values are formatted using "+(r?"generic number format":"`"+e+"axis.hoverformat`")+"."].join(" ")}}function U6(e,r){return["Sets the "+e+" formatting rule"+(r?" for `"+r+"`":""),"using d3 formatting mini-languages","which are very similar to those in Python. For numbers, see: "+Mve+"."].join(" ")}function Yq(e,r){return U6(e,r)+[" And for dates see: "+kve+".","We add two items to d3's date formatter:","*%h* for half of the year as a decimal number as well as","*%{n}f* for fractional seconds","with n digits. For example, *2016-10-13 09:15:23.456* with tickformat","*%H~%M~%S.%2f* would display *09~15~23.46*"].join(" ")}Vq.exports={axisHoverFormat:Sve,descriptionOnlyNumbers:U6,descriptionWithDates:Yq}});var sl=B((Dqe,sF)=>{"use strict";var Xq=Di(),rh=ys(),lF=uf().dash,Y6=Fn().extendFlat,Wq=Ra().templatedArray,Cqe=Hv().templateFormatStringDescription,Zq=$2().descriptionWithDates,Cve=(Wn(),vr(ri)).ONEDAY,bs=(ni(),vr(ai)),Dve=bs.HOUR_PATTERN,Lve=bs.WEEKDAY_PATTERN,G6={valType:"enumerated",values:["auto","linear","array"],editType:"ticks",impliedEdits:{tick0:void 0,dtick:void 0}},Eve=Y6({},G6,{values:G6.values.slice().concat(["sync"])});function Jq(e){return{valType:"integer",min:0,dflt:e?5:0,editType:"ticks"}}var jq={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},$q={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},Kq={valType:"data_array",editType:"ticks"},Qq={valType:"enumerated",values:["outside","inside",""],editType:"ticks"};function eF(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=5),r}function rF(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=1),r}var tF={valType:"color",dflt:rh.defaultLine,editType:"ticks"},aF={valType:"color",dflt:rh.lightLine,editType:"ticks"};function nF(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=1),r}var iF=Y6({},lF,{editType:"ticks"}),oF={valType:"boolean",editType:"ticks"};sF.exports={visible:{valType:"boolean",editType:"plot"},color:{valType:"color",dflt:rh.defaultLine,editType:"ticks"},title:{text:{valType:"string",editType:"ticks"},font:Xq({editType:"ticks",description:"Sets this axis' title font."}),standoff:{valType:"number",min:0,editType:"ticks"},editType:"ticks"},type:{valType:"enumerated",values:["-","linear","log","date","category","multicategory"],dflt:"-",editType:"calc",_noTemplating:!0},autotypenumbers:{valType:"enumerated",values:["convert types","strict"],dflt:"convert types",editType:"calc"},autorange:{valType:"enumerated",values:[!0,!1,"reversed","min reversed","max reversed","min","max"],dflt:!0,editType:"axrange",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},autorangeoptions:{minallowed:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},maxallowed:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},clipmin:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},clipmax:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},include:{valType:"any",arrayOk:!0,editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},editType:"plot"},rangemode:{valType:"enumerated",values:["normal","tozero","nonnegative"],dflt:"normal",editType:"plot"},range:{valType:"info_array",items:[{valType:"any",editType:"axrange",impliedEdits:{"^autorange":!1},anim:!0},{valType:"any",editType:"axrange",impliedEdits:{"^autorange":!1},anim:!0}],editType:"axrange",impliedEdits:{autorange:!1},anim:!0},minallowed:{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},maxallowed:{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},fixedrange:{valType:"boolean",dflt:!1,editType:"calc"},modebardisable:{valType:"flaglist",flags:["autoscale","zoominout"],extras:["none"],dflt:"none",editType:"modebar"},insiderange:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},scaleanchor:{valType:"enumerated",values:[bs.idRegex.x.toString(),bs.idRegex.y.toString(),!1],editType:"plot"},scaleratio:{valType:"number",min:0,dflt:1,editType:"plot"},constrain:{valType:"enumerated",values:["range","domain"],editType:"plot"},constraintoward:{valType:"enumerated",values:["left","center","right","top","middle","bottom"],editType:"plot"},matches:{valType:"enumerated",values:[bs.idRegex.x.toString(),bs.idRegex.y.toString()],editType:"calc"},rangebreaks:Wq("rangebreak",{enabled:{valType:"boolean",dflt:!0,editType:"calc"},bounds:{valType:"info_array",items:[{valType:"any",editType:"calc"},{valType:"any",editType:"calc"}],editType:"calc"},pattern:{valType:"enumerated",values:[Lve,Dve,""],editType:"calc"},values:{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"any",editType:"calc"}},dvalue:{valType:"number",editType:"calc",min:0,dflt:Cve},editType:"calc"}),tickmode:Eve,nticks:Jq(),tick0:jq,dtick:$q,ticklabelstep:{valType:"integer",min:1,dflt:1,editType:"ticks"},tickvals:Kq,ticktext:{valType:"data_array",editType:"ticks"},ticks:Qq,tickson:{valType:"enumerated",values:["labels","boundaries"],dflt:"labels",editType:"ticks"},ticklabelmode:{valType:"enumerated",values:["instant","period"],dflt:"instant",editType:"ticks"},ticklabelposition:{valType:"enumerated",values:["outside","inside","outside top","inside top","outside left","inside left","outside right","inside right","outside bottom","inside bottom"],dflt:"outside",editType:"calc"},ticklabeloverflow:{valType:"enumerated",values:["allow","hide past div","hide past domain"],editType:"calc"},ticklabelshift:{valType:"integer",dflt:0,editType:"ticks"},ticklabelstandoff:{valType:"integer",dflt:0,editType:"ticks"},ticklabelindex:{valType:"integer",arrayOk:!0,editType:"calc"},mirror:{valType:"enumerated",values:[!0,"ticks",!1,"all","allticks"],dflt:!1,editType:"ticks+layoutstyle"},ticklen:eF(),tickwidth:rF(),tickcolor:tF,showticklabels:{valType:"boolean",dflt:!0,editType:"ticks"},labelalias:{valType:"any",dflt:!1,editType:"ticks"},automargin:{valType:"flaglist",flags:["height","width","left","right","top","bottom"],extras:[!0,!1],dflt:!1,editType:"ticks"},showspikes:{valType:"boolean",dflt:!1,editType:"modebar"},spikecolor:{valType:"color",dflt:null,editType:"none"},spikethickness:{valType:"number",dflt:3,editType:"none"},spikedash:Y6({},lF,{dflt:"dash",editType:"none"}),spikemode:{valType:"flaglist",flags:["toaxis","across","marker"],dflt:"toaxis",editType:"none"},spikesnap:{valType:"enumerated",values:["data","cursor","hovered data"],dflt:"hovered data",editType:"none"},tickfont:Xq({editType:"ticks"}),tickangle:{valType:"angle",dflt:"auto",editType:"ticks"},autotickangles:{valType:"info_array",freeLength:!0,items:{valType:"angle"},dflt:[0,30,90],editType:"ticks"},tickprefix:{valType:"string",dflt:"",editType:"ticks"},showtickprefix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},ticksuffix:{valType:"string",dflt:"",editType:"ticks"},showticksuffix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},showexponent:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},exponentformat:{valType:"enumerated",values:["none","e","E","power","SI","B","SI extended"],dflt:"B",editType:"ticks"},minexponent:{valType:"number",dflt:3,min:0,editType:"ticks"},separatethousands:{valType:"boolean",dflt:!1,editType:"ticks"},tickformat:{valType:"string",dflt:"",editType:"ticks",description:Zq("tick label")},tickformatstops:Wq("tickformatstop",{enabled:{valType:"boolean",dflt:!0,editType:"ticks"},dtickrange:{valType:"info_array",items:[{valType:"any",editType:"ticks"},{valType:"any",editType:"ticks"}],editType:"ticks"},value:{valType:"string",dflt:"",editType:"ticks"},editType:"ticks"}),hoverformat:{valType:"string",dflt:"",editType:"none",description:Zq("hover text")},unifiedhovertitle:{text:{valType:"string",dflt:"",editType:"none"},editType:"none"},showline:{valType:"boolean",dflt:!1,editType:"ticks+layoutstyle"},linecolor:{valType:"color",dflt:rh.defaultLine,editType:"layoutstyle"},linewidth:{valType:"number",min:0,dflt:1,editType:"ticks+layoutstyle"},showgrid:oF,gridcolor:aF,gridwidth:nF(),griddash:iF,zeroline:{valType:"boolean",editType:"ticks"},zerolinecolor:{valType:"color",dflt:rh.defaultLine,editType:"ticks"},zerolinelayer:{valType:"enumerated",values:["above traces","below traces"],dflt:"below traces",editType:"plot"},zerolinewidth:{valType:"number",dflt:1,editType:"ticks"},showdividers:{valType:"boolean",dflt:!0,editType:"ticks"},dividercolor:{valType:"color",dflt:rh.defaultLine,editType:"ticks"},dividerwidth:{valType:"number",dflt:1,editType:"ticks"},anchor:{valType:"enumerated",values:["free",bs.idRegex.x.toString(),bs.idRegex.y.toString()],editType:"plot"},side:{valType:"enumerated",values:["top","bottom","left","right"],editType:"plot"},overlaying:{valType:"enumerated",values:["free",bs.idRegex.x.toString(),bs.idRegex.y.toString()],editType:"plot"},minor:{tickmode:G6,nticks:Jq("minor"),tick0:jq,dtick:$q,tickvals:Kq,ticks:Qq,ticklen:eF("minor"),tickwidth:rF("minor"),tickcolor:tF,gridcolor:aF,gridwidth:nF("minor"),griddash:iF,showgrid:oF,editType:"ticks"},minorloglabels:{valType:"enumerated",values:["small digits","complete","none"],dflt:"small digits",editType:"calc"},layer:{valType:"enumerated",values:["above traces","below traces"],dflt:"above traces",editType:"plot"},domain:{valType:"info_array",items:[{valType:"number",min:0,max:1,editType:"plot"},{valType:"number",min:0,max:1,editType:"plot"}],dflt:[0,1],editType:"plot"},position:{valType:"number",min:0,max:1,dflt:0,editType:"plot"},autoshift:{valType:"boolean",dflt:!1,editType:"plot"},shift:{valType:"number",editType:"plot"},categoryorder:{valType:"enumerated",values:["trace","category ascending","category descending","array","total ascending","total descending","min ascending","min descending","max ascending","max descending","sum ascending","sum descending","mean ascending","mean descending","geometric mean ascending","geometric mean descending","median ascending","median descending"],dflt:"trace",editType:"calc"},categoryarray:{valType:"data_array",editType:"calc"},uirevision:{valType:"any",editType:"none"},editType:"calc"}});var Mg=B((Lqe,fF)=>{"use strict";var Qa=sl(),uF=Di(),V6=Fn().extendFlat,qve=Nl().overrideAll;fF.exports=qve({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:Qa.linecolor,outlinewidth:Qa.linewidth,bordercolor:Qa.linecolor,borderwidth:{valType:"number",min:0,dflt:0},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},tickmode:Qa.minor.tickmode,nticks:Qa.nticks,tick0:Qa.tick0,dtick:V6({},Qa.dtick,{}),tickvals:Qa.tickvals,ticktext:Qa.ticktext,ticks:V6({},Qa.ticks,{dflt:""}),ticklabeloverflow:V6({},Qa.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:Qa.ticklen,tickwidth:Qa.tickwidth,tickcolor:Qa.tickcolor,ticklabelstep:Qa.ticklabelstep,showticklabels:Qa.showticklabels,labelalias:Qa.labelalias,tickfont:uF({description:"Sets the color bar's tick label font"}),tickangle:Qa.tickangle,tickformat:Qa.tickformat,tickformatstops:Qa.tickformatstops,tickprefix:Qa.tickprefix,showtickprefix:Qa.showtickprefix,ticksuffix:Qa.ticksuffix,showticksuffix:Qa.showticksuffix,separatethousands:Qa.separatethousands,exponentformat:Qa.exponentformat,minexponent:Qa.minexponent,showexponent:Qa.showexponent,title:{text:{valType:"string"},font:uF({description:"Sets this color bar's title font."}),side:{valType:"enumerated",values:["right","top","bottom"]}}},"colorbars","from-root")});var Q0=B((qqe,vF)=>{"use strict";var Fve=Mg(),Rve=(Bv(),vr(N2)).counter,Pve=(tg(),vr(rg)).default,cF=U0().scales,Eqe=Pve(cF);function kg(e){return"`"+e+"`"}vF.exports=function(r,t){r=r||"",t=t||{};var a=t.cLetter||"c",n="onlyIfNumerical"in t?t.onlyIfNumerical:!!r,i="noScale"in t?t.noScale:r==="marker.line",o="showScaleDflt"in t?t.showScaleDflt:a==="z",l=typeof t.colorscaleDflt=="string"?cF[t.colorscaleDflt]:null,s=t.editTypeOverride||"",u=r?r+".":"",f,c;"colorAttr"in t?(f=t.colorAttr,c=t.colorAttr):(f={z:"z",c:"color"}[a],c="in "+kg(u+f));var v=n?" Has an effect only if "+c+" is set to a numerical array.":"",d=a+"auto",p=a+"min",m=a+"max",y=a+"mid",b=kg(u+d),T=kg(u+p),_=kg(u+m),x=T+" and "+_,w={};w[p]=w[m]=void 0;var k={};k[d]=!1;var M={};return f==="color"&&(M.color={valType:"color",arrayOk:!0,editType:s||"style"},t.anim&&(M.color.anim=!0)),M[d]={valType:"boolean",dflt:!0,editType:"calc",impliedEdits:w},M[p]={valType:"number",dflt:null,editType:s||"plot",impliedEdits:k},M[m]={valType:"number",dflt:null,editType:s||"plot",impliedEdits:k},M[y]={valType:"number",dflt:null,editType:"calc",impliedEdits:w},M.colorscale={valType:"colorscale",editType:"calc",dflt:l,impliedEdits:{autocolorscale:!1}},M.autocolorscale={valType:"boolean",dflt:t.autoColorDflt!==!1,editType:"calc",impliedEdits:{colorscale:void 0}},M.reversescale={valType:"boolean",dflt:!1,editType:"plot"},i||(M.showscale={valType:"boolean",dflt:o,editType:"calc"},M.colorbar=Fve),t.noColorAxis||(M.coloraxis={valType:"subplotid",regex:Rve("coloraxis"),dflt:null,editType:"calc"}),M}});var W6=B((Fqe,hF)=>{"use strict";var Nve=Fn().extendFlat,zve=Q0(),X6=U0().scales;hF.exports={editType:"calc",colorscale:{editType:"calc",sequential:{valType:"colorscale",dflt:X6.Reds,editType:"calc"},sequentialminus:{valType:"colorscale",dflt:X6.Blues,editType:"calc"},diverging:{valType:"colorscale",dflt:X6.RdBu,editType:"calc"}},coloraxis:Nve({_isSubplotObj:!0,editType:"calc"},zve("",{colorAttr:"corresponding trace color array(s)",noColorAxis:!0,showScaleDflt:!0}))}});var Z6=B((Rqe,dF)=>{"use strict";var Bve=or();dF.exports=function(r){return Bve.isPlainObject(r.colorbar)}});var $6=B(j6=>{"use strict";var J6=da(),pF=or(),mF=(Wn(),vr(ri)),Ive=mF.ONEDAY,Ove=mF.ONEWEEK;j6.dtick=function(e,r){var t=r==="log",a=r==="date",n=r==="category",i=a?Ive:1;if(!e)return i;if(J6(e))return e=Number(e),e<=0?i:n?Math.max(1,Math.round(e)):a?Math.max(.1,e):e;if(typeof e!="string"||!(a||t))return i;var o=e.charAt(0),l=e.slice(1);return l=J6(l)?Number(l):0,l<=0||!(a&&o==="M"&&l===Math.round(l)||t&&o==="L"||t&&o==="D"&&(l===1||l===2))?i:e};j6.tick0=function(e,r,t,a){if(r==="date")return pF.cleanDate(e,pF.dateTick0(t,a%Ove===0?1:0));if(!(a==="D1"||a==="D2"))return J6(e)?Number(e):0}});var K6=B((Nqe,gF)=>{"use strict";var yF=$6(),Hve=or().isArrayOrTypedArray,Uve=so().isTypedArraySpec,Gve=so().decodeTypedArraySpec;gF.exports=function(r,t,a,n,i={}){var o=i.isMinor,l=o?r.minor||{}:r,s=o?t.minor:t,u=o?"minor.":"";function f(x){var w=l[x];return Uve(w)&&(w=Gve(w)),w!==void 0?w:(s._template||{})[x]}var c=f("tick0"),v=f("dtick"),d=f("tickvals"),p=f("overlaying"),m=n==="category"||n==="multicategory",y;Hve(d)?y="array":v?y="linear":p&&!m?y="sync":y="auto";var b=a(u+"tickmode",y);if(b==="auto"||b==="sync")a(u+"nticks");else if(b==="linear"){var T=s.dtick=yF.dtick(v,n);s.tick0=yF.tick0(c,n,t.calendar,T)}else if(n!=="multicategory"){var _=a(u+"tickvals");_===void 0?s.tickmode="auto":o||a("ticktext")}}});var e7=B((zqe,xF)=>{"use strict";var Q6=or(),bF=sl();xF.exports=function(r,t,a,n){var i=n.isMinor,o=i?r.minor||{}:r,l=i?t.minor:t,s=i?bF.minor:bF,u=i?"minor.":"",f=Q6.coerce2(o,l,s,"ticklen",i?(t.ticklen||5)*.6:void 0),c=Q6.coerce2(o,l,s,"tickwidth",i?t.tickwidth||1:void 0),v=Q6.coerce2(o,l,s,"tickcolor",(i?t.tickcolor:void 0)||l.color),d=a(u+"ticks",!i&&n.outerTicks||f||c||v?"outside":"");d||(delete l.ticklen,delete l.tickwidth,delete l.tickcolor)}});var r7=B((Bqe,_F)=>{"use strict";_F.exports=function(r){var t=["showexponent","showtickprefix","showticksuffix"],a=t.filter(function(i){return r[i]!==void 0}),n=function(i){return r[i]===r[a[0]]};if(a.every(n)||a.length===1)return r[a[0]]}});var Oo=B((Iqe,wF)=>{"use strict";var Sg=or(),Yve=Ra();wF.exports=function(r,t,a){var n=a.name,i=a.inclusionAttr||"visible",o=t[n],l=Sg.isArrayOrTypedArray(r[n])?r[n]:[],s=t[n]=[],u=Yve.arrayTemplater(t,n,i),f,c;for(f=0;f{"use strict";var t7=or(),Vve=Kt().contrast,AF=sl(),Xve=r7(),Wve=Oo();TF.exports=function(r,t,a,n,i){i||(i={});var o=a("labelalias");t7.isPlainObject(o)||delete t.labelalias;var l=Xve(r),s=a("showticklabels");if(s){i.noTicklabelshift||a("ticklabelshift"),i.noTicklabelstandoff||a("ticklabelstandoff");var u=i.font||{},f=t.color,c=t.ticklabelposition||"",v=c.indexOf("inside")!==-1?Vve(i.bgColor):f&&f!==AF.color.dflt?f:u.color;if(t7.coerceFont(a,"tickfont",u,{overrideDflt:{color:v}}),!i.noTicklabelstep&&n!=="multicategory"&&n!=="log"&&a("ticklabelstep"),!i.noAng){var d=a("tickangle");!i.noAutotickangles&&d==="auto"&&a("autotickangles")}if(n!=="category"){var p=a("tickformat");Wve(r,t,{name:"tickformatstops",inclusionAttr:"enabled",handleItemDefaults:Zve}),t.tickformatstops.length||delete t.tickformatstops,!i.noExp&&!p&&n!=="date"&&(a("showexponent",l),a("exponentformat"),a("minexponent"),a("separatethousands"))}!i.noMinorloglabels&&n==="log"&&a("minorloglabels")}};function Zve(e,r){function t(n,i){return t7.coerce(e,r,AF.tickformatstops,n,i)}var a=t("enabled");a&&(t("dtickrange"),t("value"))}});var n7=B((Hqe,MF)=>{"use strict";var Jve=r7();MF.exports=function(r,t,a,n,i){i||(i={});var o=i.tickSuffixDflt,l=Jve(r),s=a("tickprefix");s&&a("showtickprefix",l);var u=a("ticksuffix",o);u&&a("showticksuffix",l)}});var i7=B((Uqe,kF)=>{"use strict";var _f=or(),jve=Ra(),$ve=K6(),Kve=e7(),Qve=a7(),ehe=n7(),rhe=Mg();kF.exports=function(r,t,a){var n=jve.newContainer(t,"colorbar"),i=r.colorbar||{};function o(P,q){return _f.coerce(i,n,rhe,P,q)}var l=a.margin||{t:0,b:0,l:0,r:0},s=a.width-l.l-l.r,u=a.height-l.t-l.b,f=o("orientation"),c=f==="v",v=o("thicknessmode");o("thickness",v==="fraction"?30/(c?s:u):30);var d=o("lenmode");o("len",d==="fraction"?1:c?u:s);var p=o("yref"),m=o("xref"),y=p==="paper",b=m==="paper",T,_,x,w="left";c?(x="middle",w=b?"left":"right",T=b?1.02:1,_=.5):(x=y?"bottom":"top",w="center",T=.5,_=y?1.02:1),_f.coerce(i,n,{x:{valType:"number",min:b?-2:0,max:b?3:1,dflt:T}},"x"),_f.coerce(i,n,{y:{valType:"number",min:y?-2:0,max:y?3:1,dflt:_}},"y"),o("xanchor",w),o("xpad"),o("yanchor",x),o("ypad"),_f.noneOrAll(i,n,["x","y"]),o("outlinecolor"),o("outlinewidth"),o("bordercolor"),o("borderwidth"),o("bgcolor");var k=_f.coerce(i,n,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:c?["outside","inside","outside top","inside top","outside bottom","inside bottom"]:["outside","inside","outside left","inside left","outside right","inside right"]}},"ticklabelposition");o("ticklabeloverflow",k.indexOf("inside")!==-1?"hide past domain":"hide past div"),$ve(i,n,o,"linear");var M=a.font,C={noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0,outerTicks:!1,font:M};k.indexOf("inside")!==-1&&(C.bgColor="black"),ehe(i,n,o,"linear",C),Qve(i,n,o,"linear",C),Kve(i,n,o,"linear",C),o("title.text",a._dfltTitle.colorbar);var E=n.showticklabels?n.tickfont:M,F=_f.extendFlat({},M,{family:E.family,size:_f.bigFont(E.size)});_f.coerceFont(o,"title.font",F),o("title.side",c?"top":"right")}});var th=B((Gqe,DF)=>{"use strict";var SF=da(),l7=or(),the=Z6(),ahe=i7(),CF=U0().isValid,nhe=Pt().traceIs;function o7(e,r){var t=r.slice(0,r.length-1);return r?l7.nestedProperty(e,t).get()||{}:e}DF.exports=function e(r,t,a,n,i){var o=i.prefix,l=i.cLetter,s="_module"in t,u=o7(r,o),f=o7(t,o),c=o7(t._template||{},o)||{},v=function(){return delete r.coloraxis,delete t.coloraxis,e(r,t,a,n,i)};if(s){var d=a._colorAxes||{},p=n(o+"coloraxis");if(p){var m=nhe(t,"contour")&&l7.nestedProperty(t,"contours.coloring").get()||"heatmap",y=d[p];y?(y[2].push(v),y[0]!==m&&(y[0]=!1,l7.warn(["Ignoring coloraxis:",p,"setting","as it is linked to incompatible colorscales."].join(" ")))):d[p]=[m,t,[v]];return}}var b=u[l+"min"],T=u[l+"max"],_=SF(b)&&SF(T)&&b{"use strict";var LF=or(),ihe=Ra(),EF=W6(),ohe=th();qF.exports=function(r,t){function a(c,v){return LF.coerce(r,t,EF,c,v)}a("colorscale.sequential"),a("colorscale.sequentialminus"),a("colorscale.diverging");var n=t._colorAxes,i,o;function l(c,v){return LF.coerce(i,o,EF.coloraxis,c,v)}for(var s in n){var u=n[s];if(u[0])i=r[s]||{},o=ihe.newContainer(t,s,"coloraxis"),o._name=s,ohe(i,o,t,l,{prefix:"",cLetter:"c"});else{for(var f=0;f{"use strict";var lhe=or(),she=Ol().hasColorscale,uhe=Ol().extractOpts;RF.exports=function(r,t){function a(f,c){var v=f["_"+c];v!==void 0&&(f[c]=v)}function n(f,c){var v=c.container?lhe.nestedProperty(f,c.container).get():f;if(v)if(v.coloraxis)v._colorAx=t[v.coloraxis];else{var d=uhe(v),p=d.auto;(p||d.min===void 0)&&a(v,c.min),(p||d.max===void 0)&&a(v,c.max),d.autocolorscale&&a(v,"colorscale")}}for(var i=0;i{"use strict";var NF=da(),s7=or(),fhe=Ol().extractOpts;zF.exports=function(r,t,a){var n=r._fullLayout,i=a.vals,o=a.containerStr,l=o?s7.nestedProperty(t,o).get():t,s=fhe(l),u=s.auto!==!1,f=s.min,c=s.max,v=s.mid,d=function(){return s7.aggNums(Math.min,null,i)},p=function(){return s7.aggNums(Math.max,null,i)};if(f===void 0?f=d():u&&(l._colorAx&&NF(f)?f=Math.min(f,d()):f=d()),c===void 0?c=p():u&&(l._colorAx&&NF(c)?c=Math.max(c,p()):c=p()),u&&v!==void 0&&(c-v>v-f?f=v-(c-v):c-v=0?m=n.colorscale.sequential:m=n.colorscale.sequentialminus,s._sync("colorscale",m)}}});var nh=B((Wqe,BF)=>{"use strict";var Cg=U0(),ah=Ol();BF.exports={moduleType:"component",name:"colorscale",attributes:Q0(),layoutAttributes:W6(),supplyLayoutDefaults:FF(),handleDefaults:th(),crossTraceDefaults:PF(),calc:u7(),scales:Cg.scales,defaultScale:Cg.defaultScale,getScale:Cg.get,isValidScale:Cg.isValid,hasColorscale:ah.hasColorscale,extractOpts:ah.extractOpts,extractScale:ah.extractScale,flipScale:ah.flipScale,makeColorScaleFunc:ah.makeColorScaleFunc,makeColorScaleFuncFromTrace:ah.makeColorScaleFuncFromTrace}});var Ti=B((Zqe,OF)=>{"use strict";var IF=or(),che=so().isTypedArraySpec;OF.exports={hasLines:function(e){return e.visible&&e.mode&&e.mode.indexOf("lines")!==-1},hasMarkers:function(e){return e.visible&&(e.mode&&e.mode.indexOf("markers")!==-1||e.type==="splom")},hasText:function(e){return e.visible&&e.mode&&e.mode.indexOf("text")!==-1},isBubble:function(e){var r=e.marker;return IF.isPlainObject(r)&&(IF.isArrayOrTypedArray(r.size)||che(r.size))}}});var f7=B((Jqe,HF)=>{"use strict";var vhe=da();HF.exports=function(r,t){t||(t=2);var a=r.marker,n=a.sizeref||1,i=a.sizemin||0,o=a.sizemode==="area"?function(l){return Math.sqrt(l/n)}:function(l){return l/n};return function(l){var s=o(l/t);return vhe(s)&&s>0?Math.max(s,i):0}}});var xs=B(qi=>{"use strict";var K2=or();qi.getSubplot=function(e){return e.subplot||e.xaxis+e.yaxis||e.geo};qi.isTraceInSubplots=function(e,r){if(e.type==="splom"){for(var t=e.xaxes||[],a=e.yaxes||[],n=0;n=0&&t.index{var c7={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},mhe=/([astvzqmhlc])([^astvzqmhlc]*)/gi,yhe=/-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/gi;function ghe(e){let r=[];return e.replace(mhe,(t,a,n)=>{let i=a.toLowerCase(),o=a,l=bhe(n);for(i==="m"&&l.length>2&&(r.push([o,...l.splice(0,2)]),i="l",o=o==="m"?"l":"L");;){if(l.length===c7[i])return r.push([o,...l]),"";if(l.length{"use strict";var xhe=v7(),Cr=function(e,r){return r?Math.round(e*(r=Math.pow(10,r)))/r:Math.round(e)},Ut="M0,0Z",VF=Math.sqrt(2),wf=Math.sqrt(3),h7=Math.PI,d7=Math.cos,p7=Math.sin;jF.exports={circle:{n:0,f:function(e,r,t){if(Gt(r))return Ut;var a=Cr(e,2),n="M"+a+",0A"+a+","+a+" 0 1,1 0,-"+a+"A"+a+","+a+" 0 0,1 "+a+",0Z";return t?Yt(r,t,n):n}},square:{n:1,f:function(e,r,t){if(Gt(r))return Ut;var a=Cr(e,2);return Yt(r,t,"M"+a+","+a+"H-"+a+"V-"+a+"H"+a+"Z")}},diamond:{n:2,f:function(e,r,t){if(Gt(r))return Ut;var a=Cr(e*1.3,2);return Yt(r,t,"M"+a+",0L0,"+a+"L-"+a+",0L0,-"+a+"Z")}},cross:{n:3,f:function(e,r,t){if(Gt(r))return Ut;var a=Cr(e*.4,2),n=Cr(e*1.2,2);return Yt(r,t,"M"+n+","+a+"H"+a+"V"+n+"H-"+a+"V"+a+"H-"+n+"V-"+a+"H-"+a+"V-"+n+"H"+a+"V-"+a+"H"+n+"Z")}},x:{n:4,f:function(e,r,t){if(Gt(r))return Ut;var a=Cr(e*.8/VF,2),n="l"+a+","+a,i="l"+a+",-"+a,o="l-"+a+",-"+a,l="l-"+a+","+a;return Yt(r,t,"M0,"+a+n+i+o+i+o+l+o+l+n+l+n+"Z")}},"triangle-up":{n:5,f:function(e,r,t){if(Gt(r))return Ut;var a=Cr(e*2/wf,2),n=Cr(e/2,2),i=Cr(e,2);return Yt(r,t,"M-"+a+","+n+"H"+a+"L0,-"+i+"Z")}},"triangle-down":{n:6,f:function(e,r,t){if(Gt(r))return Ut;var a=Cr(e*2/wf,2),n=Cr(e/2,2),i=Cr(e,2);return Yt(r,t,"M-"+a+",-"+n+"H"+a+"L0,"+i+"Z")}},"triangle-left":{n:7,f:function(e,r,t){if(Gt(r))return Ut;var a=Cr(e*2/wf,2),n=Cr(e/2,2),i=Cr(e,2);return Yt(r,t,"M"+n+",-"+a+"V"+a+"L-"+i+",0Z")}},"triangle-right":{n:8,f:function(e,r,t){if(Gt(r))return Ut;var a=Cr(e*2/wf,2),n=Cr(e/2,2),i=Cr(e,2);return Yt(r,t,"M-"+n+",-"+a+"V"+a+"L"+i+",0Z")}},"triangle-ne":{n:9,f:function(e,r,t){if(Gt(r))return Ut;var a=Cr(e*.6,2),n=Cr(e*1.2,2);return Yt(r,t,"M-"+n+",-"+a+"H"+a+"V"+n+"Z")}},"triangle-se":{n:10,f:function(e,r,t){if(Gt(r))return Ut;var a=Cr(e*.6,2),n=Cr(e*1.2,2);return Yt(r,t,"M"+a+",-"+n+"V"+a+"H-"+n+"Z")}},"triangle-sw":{n:11,f:function(e,r,t){if(Gt(r))return Ut;var a=Cr(e*.6,2),n=Cr(e*1.2,2);return Yt(r,t,"M"+n+","+a+"H-"+a+"V-"+n+"Z")}},"triangle-nw":{n:12,f:function(e,r,t){if(Gt(r))return Ut;var a=Cr(e*.6,2),n=Cr(e*1.2,2);return Yt(r,t,"M-"+a+","+n+"V-"+a+"H"+n+"Z")}},pentagon:{n:13,f:function(e,r,t){if(Gt(r))return Ut;var a=Cr(e*.951,2),n=Cr(e*.588,2),i=Cr(-e,2),o=Cr(e*-.309,2),l=Cr(e*.809,2);return Yt(r,t,"M"+a+","+o+"L"+n+","+l+"H-"+n+"L-"+a+","+o+"L0,"+i+"Z")}},hexagon:{n:14,f:function(e,r,t){if(Gt(r))return Ut;var a=Cr(e,2),n=Cr(e/2,2),i=Cr(e*wf/2,2);return Yt(r,t,"M"+i+",-"+n+"V"+n+"L0,"+a+"L-"+i+","+n+"V-"+n+"L0,-"+a+"Z")}},hexagon2:{n:15,f:function(e,r,t){if(Gt(r))return Ut;var a=Cr(e,2),n=Cr(e/2,2),i=Cr(e*wf/2,2);return Yt(r,t,"M-"+n+","+i+"H"+n+"L"+a+",0L"+n+",-"+i+"H-"+n+"L-"+a+",0Z")}},octagon:{n:16,f:function(e,r,t){if(Gt(r))return Ut;var a=Cr(e*.924,2),n=Cr(e*.383,2);return Yt(r,t,"M-"+n+",-"+a+"H"+n+"L"+a+",-"+n+"V"+n+"L"+n+","+a+"H-"+n+"L-"+a+","+n+"V-"+n+"Z")}},star:{n:17,f:function(e,r,t){if(Gt(r))return Ut;var a=e*1.4,n=Cr(a*.225,2),i=Cr(a*.951,2),o=Cr(a*.363,2),l=Cr(a*.588,2),s=Cr(-a,2),u=Cr(a*-.309,2),f=Cr(a*.118,2),c=Cr(a*.809,2),v=Cr(a*.382,2);return Yt(r,t,"M"+n+","+u+"H"+i+"L"+o+","+f+"L"+l+","+c+"L0,"+v+"L-"+l+","+c+"L-"+o+","+f+"L-"+i+","+u+"H-"+n+"L0,"+s+"Z")}},hexagram:{n:18,f:function(e,r,t){if(Gt(r))return Ut;var a=Cr(e*.66,2),n=Cr(e*.38,2),i=Cr(e*.76,2);return Yt(r,t,"M-"+i+",0l-"+n+",-"+a+"h"+i+"l"+n+",-"+a+"l"+n+","+a+"h"+i+"l-"+n+","+a+"l"+n+","+a+"h-"+i+"l-"+n+","+a+"l-"+n+",-"+a+"h-"+i+"Z")}},"star-triangle-up":{n:19,f:function(e,r,t){if(Gt(r))return Ut;var a=Cr(e*wf*.8,2),n=Cr(e*.8,2),i=Cr(e*1.6,2),o=Cr(e*4,2),l="A "+o+","+o+" 0 0 1 ";return Yt(r,t,"M-"+a+","+n+l+a+","+n+l+"0,-"+i+l+"-"+a+","+n+"Z")}},"star-triangle-down":{n:20,f:function(e,r,t){if(Gt(r))return Ut;var a=Cr(e*wf*.8,2),n=Cr(e*.8,2),i=Cr(e*1.6,2),o=Cr(e*4,2),l="A "+o+","+o+" 0 0 1 ";return Yt(r,t,"M"+a+",-"+n+l+"-"+a+",-"+n+l+"0,"+i+l+a+",-"+n+"Z")}},"star-square":{n:21,f:function(e,r,t){if(Gt(r))return Ut;var a=Cr(e*1.1,2),n=Cr(e*2,2),i="A "+n+","+n+" 0 0 1 ";return Yt(r,t,"M-"+a+",-"+a+i+"-"+a+","+a+i+a+","+a+i+a+",-"+a+i+"-"+a+",-"+a+"Z")}},"star-diamond":{n:22,f:function(e,r,t){if(Gt(r))return Ut;var a=Cr(e*1.4,2),n=Cr(e*1.9,2),i="A "+n+","+n+" 0 0 1 ";return Yt(r,t,"M-"+a+",0"+i+"0,"+a+i+a+",0"+i+"0,-"+a+i+"-"+a+",0Z")}},"diamond-tall":{n:23,f:function(e,r,t){if(Gt(r))return Ut;var a=Cr(e*.7,2),n=Cr(e*1.4,2);return Yt(r,t,"M0,"+n+"L"+a+",0L0,-"+n+"L-"+a+",0Z")}},"diamond-wide":{n:24,f:function(e,r,t){if(Gt(r))return Ut;var a=Cr(e*1.4,2),n=Cr(e*.7,2);return Yt(r,t,"M0,"+n+"L"+a+",0L0,-"+n+"L-"+a+",0Z")}},hourglass:{n:25,f:function(e,r,t){if(Gt(r))return Ut;var a=Cr(e,2);return Yt(r,t,"M"+a+","+a+"H-"+a+"L"+a+",-"+a+"H-"+a+"Z")},noDot:!0},bowtie:{n:26,f:function(e,r,t){if(Gt(r))return Ut;var a=Cr(e,2);return Yt(r,t,"M"+a+","+a+"V-"+a+"L-"+a+","+a+"V-"+a+"Z")},noDot:!0},"circle-cross":{n:27,f:function(e,r,t){if(Gt(r))return Ut;var a=Cr(e,2);return Yt(r,t,"M0,"+a+"V-"+a+"M"+a+",0H-"+a+"M"+a+",0A"+a+","+a+" 0 1,1 0,-"+a+"A"+a+","+a+" 0 0,1 "+a+",0Z")},needLine:!0,noDot:!0},"circle-x":{n:28,f:function(e,r,t){if(Gt(r))return Ut;var a=Cr(e,2),n=Cr(e/VF,2);return Yt(r,t,"M"+n+","+n+"L-"+n+",-"+n+"M"+n+",-"+n+"L-"+n+","+n+"M"+a+",0A"+a+","+a+" 0 1,1 0,-"+a+"A"+a+","+a+" 0 0,1 "+a+",0Z")},needLine:!0,noDot:!0},"square-cross":{n:29,f:function(e,r,t){if(Gt(r))return Ut;var a=Cr(e,2);return Yt(r,t,"M0,"+a+"V-"+a+"M"+a+",0H-"+a+"M"+a+","+a+"H-"+a+"V-"+a+"H"+a+"Z")},needLine:!0,noDot:!0},"square-x":{n:30,f:function(e,r,t){if(Gt(r))return Ut;var a=Cr(e,2);return Yt(r,t,"M"+a+","+a+"L-"+a+",-"+a+"M"+a+",-"+a+"L-"+a+","+a+"M"+a+","+a+"H-"+a+"V-"+a+"H"+a+"Z")},needLine:!0,noDot:!0},"diamond-cross":{n:31,f:function(e,r,t){if(Gt(r))return Ut;var a=Cr(e*1.3,2);return Yt(r,t,"M"+a+",0L0,"+a+"L-"+a+",0L0,-"+a+"ZM0,-"+a+"V"+a+"M-"+a+",0H"+a)},needLine:!0,noDot:!0},"diamond-x":{n:32,f:function(e,r,t){if(Gt(r))return Ut;var a=Cr(e*1.3,2),n=Cr(e*.65,2);return Yt(r,t,"M"+a+",0L0,"+a+"L-"+a+",0L0,-"+a+"ZM-"+n+",-"+n+"L"+n+","+n+"M-"+n+","+n+"L"+n+",-"+n)},needLine:!0,noDot:!0},"cross-thin":{n:33,f:function(e,r,t){if(Gt(r))return Ut;var a=Cr(e*1.4,2);return Yt(r,t,"M0,"+a+"V-"+a+"M"+a+",0H-"+a)},needLine:!0,noDot:!0,noFill:!0},"x-thin":{n:34,f:function(e,r,t){if(Gt(r))return Ut;var a=Cr(e,2);return Yt(r,t,"M"+a+","+a+"L-"+a+",-"+a+"M"+a+",-"+a+"L-"+a+","+a)},needLine:!0,noDot:!0,noFill:!0},asterisk:{n:35,f:function(e,r,t){if(Gt(r))return Ut;var a=Cr(e*1.2,2),n=Cr(e*.85,2);return Yt(r,t,"M0,"+a+"V-"+a+"M"+a+",0H-"+a+"M"+n+","+n+"L-"+n+",-"+n+"M"+n+",-"+n+"L-"+n+","+n)},needLine:!0,noDot:!0,noFill:!0},hash:{n:36,f:function(e,r,t){if(Gt(r))return Ut;var a=Cr(e/2,2),n=Cr(e,2);return Yt(r,t,"M"+a+","+n+"V-"+n+"M"+(a-n)+",-"+n+"V"+n+"M"+n+","+a+"H-"+n+"M-"+n+","+(a-n)+"H"+n)},needLine:!0,noFill:!0},"y-up":{n:37,f:function(e,r,t){if(Gt(r))return Ut;var a=Cr(e*1.2,2),n=Cr(e*1.6,2),i=Cr(e*.8,2);return Yt(r,t,"M-"+a+","+i+"L0,0M"+a+","+i+"L0,0M0,-"+n+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-down":{n:38,f:function(e,r,t){if(Gt(r))return Ut;var a=Cr(e*1.2,2),n=Cr(e*1.6,2),i=Cr(e*.8,2);return Yt(r,t,"M-"+a+",-"+i+"L0,0M"+a+",-"+i+"L0,0M0,"+n+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-left":{n:39,f:function(e,r,t){if(Gt(r))return Ut;var a=Cr(e*1.2,2),n=Cr(e*1.6,2),i=Cr(e*.8,2);return Yt(r,t,"M"+i+","+a+"L0,0M"+i+",-"+a+"L0,0M-"+n+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-right":{n:40,f:function(e,r,t){if(Gt(r))return Ut;var a=Cr(e*1.2,2),n=Cr(e*1.6,2),i=Cr(e*.8,2);return Yt(r,t,"M-"+i+","+a+"L0,0M-"+i+",-"+a+"L0,0M"+n+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"line-ew":{n:41,f:function(e,r,t){if(Gt(r))return Ut;var a=Cr(e*1.4,2);return Yt(r,t,"M"+a+",0H-"+a)},needLine:!0,noDot:!0,noFill:!0},"line-ns":{n:42,f:function(e,r,t){if(Gt(r))return Ut;var a=Cr(e*1.4,2);return Yt(r,t,"M0,"+a+"V-"+a)},needLine:!0,noDot:!0,noFill:!0},"line-ne":{n:43,f:function(e,r,t){if(Gt(r))return Ut;var a=Cr(e,2);return Yt(r,t,"M"+a+",-"+a+"L-"+a+","+a)},needLine:!0,noDot:!0,noFill:!0},"line-nw":{n:44,f:function(e,r,t){if(Gt(r))return Ut;var a=Cr(e,2);return Yt(r,t,"M"+a+","+a+"L-"+a+",-"+a)},needLine:!0,noDot:!0,noFill:!0},"arrow-up":{n:45,f:function(e,r,t){if(Gt(r))return Ut;var a=Cr(e,2),n=Cr(e*2,2);return Yt(r,t,"M0,0L-"+a+","+n+"H"+a+"Z")},backoff:1,noDot:!0},"arrow-down":{n:46,f:function(e,r,t){if(Gt(r))return Ut;var a=Cr(e,2),n=Cr(e*2,2);return Yt(r,t,"M0,0L-"+a+",-"+n+"H"+a+"Z")},noDot:!0},"arrow-left":{n:47,f:function(e,r,t){if(Gt(r))return Ut;var a=Cr(e*2,2),n=Cr(e,2);return Yt(r,t,"M0,0L"+a+",-"+n+"V"+n+"Z")},noDot:!0},"arrow-right":{n:48,f:function(e,r,t){if(Gt(r))return Ut;var a=Cr(e*2,2),n=Cr(e,2);return Yt(r,t,"M0,0L-"+a+",-"+n+"V"+n+"Z")},noDot:!0},"arrow-bar-up":{n:49,f:function(e,r,t){if(Gt(r))return Ut;var a=Cr(e,2),n=Cr(e*2,2);return Yt(r,t,"M-"+a+",0H"+a+"M0,0L-"+a+","+n+"H"+a+"Z")},backoff:1,needLine:!0,noDot:!0},"arrow-bar-down":{n:50,f:function(e,r,t){if(Gt(r))return Ut;var a=Cr(e,2),n=Cr(e*2,2);return Yt(r,t,"M-"+a+",0H"+a+"M0,0L-"+a+",-"+n+"H"+a+"Z")},needLine:!0,noDot:!0},"arrow-bar-left":{n:51,f:function(e,r,t){if(Gt(r))return Ut;var a=Cr(e*2,2),n=Cr(e,2);return Yt(r,t,"M0,-"+n+"V"+n+"M0,0L"+a+",-"+n+"V"+n+"Z")},needLine:!0,noDot:!0},"arrow-bar-right":{n:52,f:function(e,r,t){if(Gt(r))return Ut;var a=Cr(e*2,2),n=Cr(e,2);return Yt(r,t,"M0,-"+n+"V"+n+"M0,0L-"+a+",-"+n+"V"+n+"Z")},needLine:!0,noDot:!0},arrow:{n:53,f:function(e,r,t){if(Gt(r))return Ut;var a=h7/2.5,n=2*e*d7(a),i=2*e*p7(a);return Yt(r,t,"M0,0L"+-n+","+i+"L"+n+","+i+"Z")},backoff:.9,noDot:!0},"arrow-wide":{n:54,f:function(e,r,t){if(Gt(r))return Ut;var a=h7/4,n=2*e*d7(a),i=2*e*p7(a);return Yt(r,t,"M0,0L"+-n+","+i+"A "+2*e+","+2*e+" 0 0 1 "+n+","+i+"Z")},backoff:.4,noDot:!0}};function Gt(e){return e===null}var XF,WF,ZF,JF;function Yt(e,r,t){if((!e||e%360===0)&&!r)return t;if(ZF===e&&JF===r&&XF===t)return WF;ZF=e,JF=r,XF=t;function a(y,b){var T=d7(y),_=p7(y),x=b[0],w=b[1]+(r||0);return[x*T-w*_,x*_+w*T]}for(var n=e/180*h7,i=0,o=0,l=xhe(t),s="",u=0;u{"use strict";var pi=la(),La=or(),_he=La.numberFormat,Af=da(),Lg=Pt(),ii=Kt(),whe=nh(),e1=La.strTranslate,Eg=Ei(),Ahe=(xf(),vr(bf)),The=(Oi(),vr(Ii)),Mhe=The.LINE_SPACING,lR=(zv(),vr(Nv)).DESELECTDIM,khe=Ti(),She=f7(),Che=xs().appendArrayPointValue,Hr={};yR.exports=Hr;Hr.font=function(e,r){var t=r.variant,a=r.style,n=r.weight,i=r.color,o=r.size,l=r.family,s=r.shadow,u=r.lineposition,f=r.textcase;l&&e.style("font-family",l),o+1&&e.style("font-size",o+"px"),i&&e.call(ii.fill,i),n&&e.style("font-weight",n),a&&e.style("font-style",a),t&&e.style("font-variant",t),f&&e.style("text-transform",m7(Lhe(f))),s&&e.style("text-shadow",s==="auto"?Eg.makeTextShadow(ii.contrast(i)):m7(s)),u&&e.style("text-decoration-line",m7(Ehe(u)))};function m7(e){return e==="none"?void 0:e}var Dhe={normal:"none",lower:"lowercase",upper:"uppercase","word caps":"capitalize"};function Lhe(e){return Dhe[e]}function Ehe(e){return e.replace("under","underline").replace("over","overline").replace("through","line-through").split("+").join(" ")}Hr.setPosition=function(e,r,t){e.attr("x",r).attr("y",t)};Hr.setSize=function(e,r,t){e.attr("width",r).attr("height",t)};Hr.setRect=function(e,r,t,a,n){e.call(Hr.setPosition,r,t).call(Hr.setSize,a,n)};Hr.translatePoint=function(e,r,t,a){var n=t.c2p(e.x),i=a.c2p(e.y);if(Af(n)&&Af(i)&&r.node())r.node().nodeName==="text"?r.attr("x",n).attr("y",i):r.attr("transform",e1(n,i));else return!1;return!0};Hr.translatePoints=function(e,r,t){e.each(function(a){var n=pi.select(this);Hr.translatePoint(a,n,r,t)})};Hr.hideOutsideRangePoint=function(e,r,t,a,n,i){r.attr("display",t.isPtWithinRange(e,n)&&a.isPtWithinRange(e,i)?null:"none")};Hr.hideOutsideRangePoints=function(e,r){if(r._hasClipOnAxisFalse){var t=r.xaxis,a=r.yaxis;e.each(function(n){var i=n[0].trace,o=i.xcalendar,l=i.ycalendar,s=Lg.traceIs(i,"bar-like")?".bartext":".point,.textpoint";e.selectAll(s).each(function(u){Hr.hideOutsideRangePoint(u,pi.select(this),t,a,o,l)})})}};Hr.crispRound=function(e,r,t){return!r||!Af(r)?t||0:e._context.staticPlot?r:r<1?1:Math.round(r)};Hr.singleLineStyle=function(e,r,t,a,n){r.style("fill","none");var i=(((e||[])[0]||{}).trace||{}).line||{},o=t||i.width||0,l=n||i.dash||"";ii.stroke(r,a||i.color),Hr.dashLine(r,l,o)};Hr.lineGroupStyle=function(e,r,t,a){e.style("fill","none").each(function(n){var i=(((n||[])[0]||{}).trace||{}).line||{},o=r||i.width||0,l=a||i.dash||"";pi.select(this).call(ii.stroke,t||i.color).call(Hr.dashLine,l,o)})};Hr.dashLine=function(e,r,t){t=+t||0,r=Hr.dashStyle(r,t),e.style({"stroke-dasharray":r,"stroke-width":t+"px"})};Hr.dashStyle=function(e,r){r=+r||1;var t=Math.max(r,3);return e==="solid"?e="":e==="dot"?e=t+"px,"+t+"px":e==="dash"?e=3*t+"px,"+3*t+"px":e==="longdash"?e=5*t+"px,"+5*t+"px":e==="dashdot"?e=3*t+"px,"+t+"px,"+t+"px,"+t+"px":e==="longdashdot"&&(e=5*t+"px,"+2*t+"px,"+t+"px,"+2*t+"px"),e};function sR(e,r,t,a){var n=r.fillpattern,i=r.fillgradient,o=Hr.getPatternAttr,l=n&&(o(n.shape,0,"")||o(n.path,0,""));if(l){var s=o(n.bgcolor,0,null),u=o(n.fgcolor,0,null),f=n.fgopacity,c=o(n.size,0,8),v=o(n.solidity,0,.3),d=r.uid;Hr.pattern(e,"point",t,d,l,c,v,void 0,n.fillmode,s,u,f)}else if(i&&i.type!=="none"){var p=i.type,m="scatterfill-"+r.uid;if(a&&(m="legendfill-"+r.uid),!a&&(i.start!==void 0||i.stop!==void 0)){var y,b;p==="horizontal"?(y={x:i.start,y:0},b={x:i.stop,y:0}):p==="vertical"&&(y={x:0,y:i.start},b={x:0,y:i.stop}),y.x=r._xA.c2p(y.x===void 0?r._extremes.x.min[0].val:y.x,!0),y.y=r._yA.c2p(y.y===void 0?r._extremes.y.min[0].val:y.y,!0),b.x=r._xA.c2p(b.x===void 0?r._extremes.x.max[0].val:b.x,!0),b.y=r._yA.c2p(b.y===void 0?r._extremes.y.max[0].val:b.y,!0),e.call(cR,t,m,"linear",i.colorscale,"fill",y,b,!0,!1)}else p==="horizontal"&&(p=p+"reversed"),e.call(Hr.gradient,t,m,p,i.colorscale,"fill")}else r.fillcolor&&e.call(ii.fill,r.fillcolor)}Hr.singleFillStyle=function(e,r){var t=pi.select(e.node()),a=t.data(),n=((a[0]||[])[0]||{}).trace||{};sR(e,n,r,!1)};Hr.fillGroupStyle=function(e,r,t){e.style("stroke-width",0).each(function(a){var n=pi.select(this);a[0].trace&&sR(n,a[0].trace,r,t)})};var KF=$F();Hr.symbolNames=[];Hr.symbolFuncs=[];Hr.symbolBackOffs=[];Hr.symbolNeedLines={};Hr.symbolNoDot={};Hr.symbolNoFill={};Hr.symbolList=[];Object.keys(KF).forEach(function(e){var r=KF[e],t=r.n;Hr.symbolList.push(t,String(t),e,t+100,String(t+100),e+"-open"),Hr.symbolNames[t]=e,Hr.symbolFuncs[t]=r.f,Hr.symbolBackOffs[t]=r.backoff||0,r.needLine&&(Hr.symbolNeedLines[t]=!0),r.noDot?Hr.symbolNoDot[t]=!0:Hr.symbolList.push(t+200,String(t+200),e+"-dot",t+300,String(t+300),e+"-open-dot"),r.noFill&&(Hr.symbolNoFill[t]=!0)});var qhe=Hr.symbolNames.length,Fhe="M0,0.5L0.5,0L0,-0.5L-0.5,0Z";Hr.symbolNumber=function(e){if(Af(e))e=+e;else if(typeof e=="string"){var r=0;e.indexOf("-open")>0&&(r=100,e=e.replace("-open","")),e.indexOf("-dot")>0&&(r+=200,e=e.replace("-dot","")),e=Hr.symbolNames.indexOf(e),e>=0&&(e+=r)}return e%100>=qhe||e>=400?0:Math.floor(Math.max(e,0))};function uR(e,r,t,a){var n=e%100;return Hr.symbolFuncs[n](r,t,a)+(e>=200?Fhe:"")}var QF=_he("~f"),fR={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}};Hr.gradient=function(e,r,t,a,n,i){var o=fR[a];return cR(e,r,t,o.type,n,i,o.start,o.stop,!1,o.reversed)};function cR(e,r,t,a,n,i,o,l,s,u){var f=n.length,c;a==="linear"?c={node:"linearGradient",attrs:{x1:o.x,y1:o.y,x2:l.x,y2:l.y,gradientUnits:s?"userSpaceOnUse":"objectBoundingBox"},reversed:u}:a==="radial"&&(c={node:"radialGradient",reversed:u});for(var v=new Array(f),d=0;d=0&&e.i===void 0&&(e.i=i.i),r.style("opacity",a.selectedOpacityFn?a.selectedOpacityFn(e):e.mo===void 0?o.opacity:e.mo),a.ms2mrc){var s;e.ms==="various"||o.size==="various"?s=3:s=a.ms2mrc(e.ms),e.mrc=s,a.selectedSizeFn&&(s=e.mrc=a.selectedSizeFn(e));var u=Hr.symbolNumber(e.mx||o.symbol)||0;e.om=u%200>=100;var f=A7(e,t),c=w7(e,t);r.attr("d",uR(u,s,f,c))}var v=!1,d,p,m;if(e.so)m=l.outlierwidth,p=l.outliercolor,d=o.outliercolor;else{var y=(l||{}).width;m=(e.mlw+1||y+1||(e.trace?(e.trace.marker.line||{}).width:0)+1)-1||0,"mlc"in e?p=e.mlcc=a.lineScale(e.mlc):La.isArrayOrTypedArray(l.color)?p=ii.defaultLine:p=l.color,La.isArrayOrTypedArray(o.color)&&(d=ii.defaultLine,v=!0),"mc"in e?d=e.mcc=a.markerScale(e.mc):d=o.color||o.colors||"rgba(0,0,0,0)",a.selectedColorFn&&(d=a.selectedColorFn(e))}let b=e.mld||(l||{}).dash;if(b&&Hr.dashLine(r,b,m),e.om)r.call(ii.stroke,d).style({"stroke-width":(m||1)+"px",fill:"none"});else{r.style("stroke-width",(e.isBlank?0:m)+"px");var T=o.gradient,_=e.mgt;_?v=!0:_=T&&T.type,La.isArrayOrTypedArray(_)&&(_=_[0],fR[_]||(_=0));var x=o.pattern,w=Hr.getPatternAttr,k=x&&(w(x.shape,e.i,"")||w(x.path,e.i,""));if(_&&_!=="none"){var M=e.mgc;M?v=!0:M=T.color;var C=t.uid;v&&(C+="-"+e.i),Hr.gradient(r,n,C,_,[[0,M],[1,d]],"fill")}else if(k){var E=!1,F=x.fgcolor;!F&&i&&i.color&&(F=i.color,E=!0);var P=w(F,e.i,i&&i.color||null),q=w(x.bgcolor,e.i,null),z=x.fgopacity,I=w(x.size,e.i,8),U=w(x.solidity,e.i,.3);E=E||e.mcc||La.isArrayOrTypedArray(x.shape)||La.isArrayOrTypedArray(x.path)||La.isArrayOrTypedArray(x.bgcolor)||La.isArrayOrTypedArray(x.fgcolor)||La.isArrayOrTypedArray(x.size)||La.isArrayOrTypedArray(x.solidity);var V=t.uid;E&&(V+="-"+e.i),Hr.pattern(r,"point",n,V,k,I,U,e.mcc,x.fillmode,q,P,z)}else La.isArrayOrTypedArray(d)?ii.fill(r,d[e.i]):ii.fill(r,d);m&&ii.stroke(r,p)}};Hr.makePointStyleFns=function(e){var r={},t=e.marker;return r.markerScale=Hr.tryColorscale(t,""),r.lineScale=Hr.tryColorscale(t,"line"),Lg.traceIs(e,"symbols")&&(r.ms2mrc=khe.isBubble(e)?She(e):function(){return(t.size||6)/2}),e.selectedpoints&&La.extendFlat(r,Hr.makeSelectedPointStyleFns(e)),r};Hr.makeSelectedPointStyleFns=function(e){var r={},t=e.selected||{},a=e.unselected||{},n=e.marker||{},i=t.marker||{},o=a.marker||{},l=n.opacity,s=i.opacity,u=o.opacity,f=s!==void 0,c=u!==void 0;(La.isArrayOrTypedArray(l)||f||c)&&(r.selectedOpacityFn=function(x){var w=x.mo===void 0?n.opacity:x.mo;return x.selected?f?s:w:c?u:lR*w});var v=n.color,d=i.color,p=o.color;(d||p)&&(r.selectedColorFn=function(x){var w=x.mcc||v;return x.selected?d||w:p||w});var m=n.size,y=i.size,b=o.size,T=y!==void 0,_=b!==void 0;return Lg.traceIs(e,"symbols")&&(T||_)&&(r.selectedSizeFn=function(x){var w=x.mrc||m/2;return x.selected?T?y/2:w:_?b/2:w}),r};Hr.makeSelectedTextStyleFns=function(e){var r={},t=e.selected||{},a=e.unselected||{},n=e.textfont||{},i=t.textfont||{},o=a.textfont||{},l=n.color,s=i.color,u=o.color;return r.selectedTextColorFn=function(f){var c=f.tc||l;return f.selected?s||c:u||(s?c:ii.addOpacity(c,lR))},r};Hr.selectedPointStyle=function(e,r){if(!(!e.size()||!r.selectedpoints)){var t=Hr.makeSelectedPointStyleFns(r),a=r.marker||{},n=[];t.selectedOpacityFn&&n.push(function(i,o){i.style("opacity",t.selectedOpacityFn(o))}),t.selectedColorFn&&n.push(function(i,o){ii.fill(i,t.selectedColorFn(o))}),t.selectedSizeFn&&n.push(function(i,o){var l=o.mx||a.symbol||0,s=t.selectedSizeFn(o);i.attr("d",uR(Hr.symbolNumber(l),s,A7(o,r),w7(o,r))),o.mrc2=s}),n.length&&e.each(function(i){for(var o=pi.select(this),l=0;l0?t:0}Hr.textPointStyle=function(e,r,t){if(e.size()){var a;if(r.selectedpoints){var n=Hr.makeSelectedTextStyleFns(r);a=n.selectedTextColorFn}var i=r.texttemplate,o=t._fullLayout;e.each(function(l){var s=pi.select(this),u=i?La.extractOption(l,r,"txt","texttemplate"):La.extractOption(l,r,"tx","text");if(!u&&u!==0){s.remove();return}if(i){var f=r._module.formatLabels,c=f?f(l,r,o):{},v={};Che(v,r,l.i),u=La.texttemplateString({data:[v,l,r._meta],fallback:r.texttemplatefallback,labels:c,locale:o._d3locale,template:u})}var d=l.tp||r.textposition,p=hR(l,r),m=a?a(l):l.tc||r.textfont.color;s.call(Hr.font,{family:l.tf||r.textfont.family,weight:l.tw||r.textfont.weight,style:l.ty||r.textfont.style,variant:l.tv||r.textfont.variant,textcase:l.tC||r.textfont.textcase,lineposition:l.tE||r.textfont.lineposition,shadow:l.tS||r.textfont.shadow,size:p,color:m}).text(u).call(Eg.convertToTspans,t).call(vR,d,p,l.mrc)})}};Hr.selectedTextStyle=function(e,r){if(!(!e.size()||!r.selectedpoints)){var t=Hr.makeSelectedTextStyleFns(r);e.each(function(a){var n=pi.select(this),i=t.selectedTextColorFn(a),o=a.tp||r.textposition,l=hR(a,r);ii.fill(n,i);var s=Lg.traceIs(r,"bar-like");vR(n,o,l,a.mrc2||a.mrc,s)})}};var eR=.5;Hr.smoothopen=function(e,r){if(e.length<3)return"M"+e.join("L");var t="M"+e[0],a=[],n;for(n=1;n=s||x>=f&&x<=s)&&(w<=c&&w>=u||w>=c&&w<=u)&&(e=[x,w])}return e}Hr.applyBackoff=mR;Hr.makeTester=function(){var e=La.ensureSingleById(pi.select("body"),"svg","js-plotly-tester",function(t){t.attr(Ahe.svgAttrs).style({position:"absolute",left:"-10000px",top:"-10000px",width:"9000px",height:"9000px","z-index":"1"})}),r=La.ensureSingle(e,"path","js-reference-point",function(t){t.attr("d","M0,0H1V1H0Z").style({"stroke-width":0,fill:"black"})});Hr.tester=e,Hr.testref=r};Hr.savedBBoxes={};var g7=0,Nhe=1e4;Hr.bBox=function(e,r,t){t||(t=rR(e));var a;if(t){if(a=Hr.savedBBoxes[t],a)return La.extendFlat({},a)}else if(e.childNodes.length===1){var n=e.childNodes[0];if(t=rR(n),t){var i=+n.getAttribute("x")||0,o=+n.getAttribute("y")||0,l=n.getAttribute("transform");if(!l){var s=Hr.bBox(n,!1,t);return i&&(s.left+=i,s.right+=i),o&&(s.top+=o,s.bottom+=o),s}if(t+="~"+i+"~"+o+"~"+l,a=Hr.savedBBoxes[t],a)return La.extendFlat({},a)}}var u,f;r?u=e:(f=Hr.tester.node(),u=e.cloneNode(!0),f.appendChild(u)),pi.select(u).attr("transform",null).call(Eg.positionText,0,0);var c=u.getBoundingClientRect(),v=Hr.testref.node().getBoundingClientRect();r||f.removeChild(u);var d={height:c.height,width:c.width,left:c.left-v.left,top:c.top-v.top,right:c.right-v.left,bottom:c.bottom-v.top};return g7>=Nhe&&(Hr.savedBBoxes={},g7=0),t&&(Hr.savedBBoxes[t]=d),g7++,La.extendFlat({},d)};function rR(e){var r=e.getAttribute("data-unformatted");if(r!==null)return r+e.getAttribute("data-math")+e.getAttribute("text-anchor")+e.getAttribute("style")}Hr.setClipUrl=function(e,r,t){e.attr("clip-path",_7(r,t))};function _7(e,r){if(!e)return null;var t=r._context,a=t._exportedPlot?"":t._baseUrl||"";return a?"url('"+a+"#"+e+"')":"url(#"+e+")"}Hr.getTranslate=function(e){var r=/.*\btranslate\((-?\d*\.?\d*)[^-\d]*(-?\d*\.?\d*)[^\d].*/,t=e.attr?"attr":"getAttribute",a=e[t]("transform")||"",n=a.replace(r,function(i,o,l){return[o,l].join(" ")}).split(" ");return{x:+n[0]||0,y:+n[1]||0}};Hr.setTranslate=function(e,r,t){var a=/(\btranslate\(.*?\);?)/,n=e.attr?"attr":"getAttribute",i=e.attr?"attr":"setAttribute",o=e[n]("transform")||"";return r=r||0,t=t||0,o=o.replace(a,"").trim(),o+=e1(r,t),o=o.trim(),e[i]("transform",o),o};Hr.getScale=function(e){var r=/.*\bscale\((\d*\.?\d*)[^\d]*(\d*\.?\d*)[^\d].*/,t=e.attr?"attr":"getAttribute",a=e[t]("transform")||"",n=a.replace(r,function(i,o,l){return[o,l].join(" ")}).split(" ");return{x:+n[0]||1,y:+n[1]||1}};Hr.setScale=function(e,r,t){var a=/(\bscale\(.*?\);?)/,n=e.attr?"attr":"getAttribute",i=e.attr?"attr":"setAttribute",o=e[n]("transform")||"";return r=r||1,t=t||1,o=o.replace(a,"").trim(),o+="scale("+r+","+t+")",o=o.trim(),e[i]("transform",o),o};var zhe=/\s*sc.*/;Hr.setPointGroupScale=function(e,r,t){if(r=r||1,t=t||1,!!e){var a=r===1&&t===1?"":"scale("+r+","+t+")";e.each(function(){var n=(this.getAttribute("transform")||"").replace(zhe,"");n+=a,n=n.trim(),this.setAttribute("transform",n)})}};var Bhe=/translate\([^)]*\)\s*$/;Hr.setTextPointsScale=function(e,r,t){e&&e.each(function(){var a,n=pi.select(this),i=n.select("text");if(i.node()){var o=parseFloat(i.attr("x")||0),l=parseFloat(i.attr("y")||0),s=(n.attr("transform")||"").match(Bhe);r===1&&t===1?a=[]:a=[e1(o,l),"scale("+r+","+t+")",e1(-o,-l)],s&&a.push(s),n.attr("transform",a.join(""))}})};function w7(e,r){var t;return e&&(t=e.mf),t===void 0&&(t=r.marker&&r.marker.standoff||0),!r._geo&&!r._xA?-t:t}Hr.getMarkerStandoff=w7;var Q2=Math.atan2,ec=Math.cos,oh=Math.sin;function tR(e,r){var t=r[0],a=r[1];return[t*ec(e)-a*oh(e),t*oh(e)+a*ec(e)]}var aR,nR,iR,oR,b7,x7;function A7(e,r){var t=e.ma;t===void 0&&(t=r.marker.angle,(!Af(t)||La.isArrayOrTypedArray(t))&&(t=0));var a,n,i=r.marker.angleref;if(i==="previous"||i==="north"){if(r._geo){var o=r._geo.project(e.lonlat);a=o[0],n=o[1]}else{var l=r._xA,s=r._yA;if(l&&s)a=l.c2p(e.x),n=s.c2p(e.y);else return 90}if(r._geo){var u=e.lonlat[0],f=e.lonlat[1],c=r._geo.project([u,f+1e-5]),v=r._geo.project([u+1e-5,f]),d=Q2(v[1]-n,v[0]-a),p=Q2(c[1]-n,c[0]-a),m;if(i==="north")m=t/180*Math.PI;else if(i==="previous"){var y=u/180*Math.PI,b=f/180*Math.PI,T=aR/180*Math.PI,_=nR/180*Math.PI,x=T-y,w=ec(_)*oh(x),k=oh(_)*ec(b)-ec(_)*oh(b)*ec(x);m=-Q2(w,k)-Math.PI,aR=u,nR=f}var M=tR(d,[ec(m),0]),C=tR(p,[oh(m),0]);t=Q2(M[1]+C[1],M[0]+C[0])/Math.PI*180,i==="previous"&&!(x7===r.uid&&e.i===b7+1)&&(t=null)}if(i==="previous"&&!r._geo)if(x7===r.uid&&e.i===b7+1&&Af(a)&&Af(n)){var E=a-iR,F=n-oR,P=r.line&&r.line.shape||"",q=P.slice(P.length-1);q==="h"&&(F=0),q==="v"&&(E=0),t+=Q2(F,E)/Math.PI*180+90}else t=null}return iR=a,oR=n,b7=e.i,x7=r.uid,t}Hr.getMarkerAngle=A7});var r1=B((eFe,_R)=>{"use strict";var lh=la(),Ihe=da(),Ohe=di(),T7=Pt(),ac=or(),gR=ac.strTranslate,qg=Sa(),Fg=Kt(),sh=Ei(),bR=(zv(),vr(Nv)),Hhe=(Oi(),vr(Ii)).OPPOSITE_SIDE,xR=/ [XY][0-9]* /,M7=1.6,k7=1.6;function Uhe(e,r,t){var a=e._fullLayout,n=t.propContainer,i=t.propName,o=t.placeholder,l=t.traceIndex,s=t.avoid||{},u=t.attributes,f=t.transform,c=t.containerGroup,v=1,d=n.title,p=(d&&d.text?d.text:"").trim(),m=!1,y=d&&d.font?d.font:{},b=y.family,T=y.size,_=y.color,x=y.weight,w=y.style,k=y.variant,M=y.textcase,C=y.lineposition,E=y.shadow,F=t.subtitlePropName,P=!!F,q=t.subtitlePlaceholder,z=(n.title||{}).subtitle||{text:"",font:{}},I=(z.text||"").trim(),U=!1,V=1,W=z.font,G=W.family,Y=W.size,Z=W.color,j=W.weight,ee=W.style,ye=W.variant,fe=W.textcase,he=W.lineposition,ae=W.shadow,Le;i==="title.text"?Le="titleText":i.indexOf("axis")!==-1?Le="axisTitleText":i.indexOf("colorbar")!==-1&&(Le="colorbarTitleText");var ce=e._context.edits[Le];function Fe(Pr,Br){return Pr===void 0||Br===void 0?!1:Pr.replace(xR," % ")===Br.replace(xR," % ")}p===""?v=0:Fe(p,o)&&(ce||(p=""),v=.2,m=!0),P&&(I===""?V=0:Fe(I,q)&&(ce||(I=""),V=.2,U=!0)),t._meta?p=ac.templateString(p,t._meta):a._meta&&(p=ac.templateString(p,a._meta));var Re=p||I||ce,ge;c||(c=ac.ensureSingle(a._infolayer,"g","g-"+r),ge=a._hColorbarMoveTitle);var He=c.selectAll("text."+r).data(Re?[0]:[]);He.enter().append("text"),He.text(p).attr("class",r),He.exit().remove();var ur=null,qe=r+"-subtitle",Ue=I||ce;if(P&&(ur=c.selectAll("text."+qe).data(Ue?[0]:[]),ur.enter().append("text"),ur.text(I).attr("class",qe),ur.exit().remove()),!Re)return c;function Ye(Pr,Br){ac.syncOrAsync([We,Ve],{title:Pr,subtitle:Br})}function We(Pr){var Br=Pr.title,$e=Pr.subtitle,mr;!f&&ge&&(f={}),f?(mr="",f.rotate&&(mr+="rotate("+[f.rotate,u.x,u.y]+")"),(f.offset||ge)&&(mr+=gR(0,(f.offset||0)-(ge||0)))):mr=null,Br.attr("transform",mr);function Yr(pe){if(pe){var Ce=lh.select(pe.node().parentNode).select("."+qe);if(!Ce.empty()){var lr=pe.node().getBBox();if(lr.height){var wr=lr.y+lr.height+M7*Y;Ce.attr("y",wr)}}}}if(Br.style("opacity",v*Fg.opacity(_)).call(qg.font,{color:Fg.rgb(_),size:lh.round(T,2),family:b,weight:x,style:w,variant:k,textcase:M,shadow:E,lineposition:C}).attr(u).call(sh.convertToTspans,e,Yr),$e&&!$e.empty()){var ue=c.select("."+r+"-math-group"),Ee=Br.node().getBBox(),Tr=ue.node()?ue.node().getBBox():void 0,rt=Tr?Tr.y+Tr.height+M7*Y:Ee.y+Ee.height+k7*Y,ot=ac.extendFlat({},u,{y:rt});$e.attr("transform",mr),$e.style("opacity",V*Fg.opacity(Z)).call(qg.font,{color:Fg.rgb(Z),size:lh.round(Y,2),family:G,weight:j,style:ee,variant:ye,textcase:fe,shadow:ae,lineposition:he}).attr(ot).call(sh.convertToTspans,e)}return Ohe.previousPromises(e)}function Ve(Pr){var Br=Pr.title,$e=lh.select(Br.node().parentNode);if(s&&s.selection&&s.side&&p){$e.attr("transform",null);var mr=Hhe[s.side],Yr=s.side==="left"||s.side==="top"?-1:1,ue=Ihe(s.pad)?s.pad:2,Ee=qg.bBox($e.node()),Tr={t:0,b:0,l:0,r:0},rt=e._fullLayout._reservedMargin;for(var ot in rt)for(var pe in rt[ot]){var Ce=rt[ot][pe];Tr[pe]=Math.max(Tr[pe],Ce)}var lr={left:Tr.l,top:Tr.t,right:a.width-Tr.r,bottom:a.height-Tr.b},wr=s.maxShift||Yr*(lr[s.side]-Ee[s.side]),fr=0;if(wr<0)fr=wr;else{var kr=s.offsetLeft||0,qr=s.offsetTop||0;Ee.left-=kr,Ee.right-=kr,Ee.top-=qr,Ee.bottom-=qr,s.selection.each(function(){var tt=qg.bBox(this);ac.bBoxIntersect(Ee,tt,ue)&&(fr=Math.max(fr,Yr*(tt[s.side]-Ee[mr])+ue))}),fr=Math.min(wr,fr),n._titleScoot=Math.abs(fr)}if(fr>0||wr<0){var $r={left:[-fr,0],right:[fr,0],top:[0,-fr],bottom:[0,fr]}[s.side];$e.attr("transform",gR($r[0],$r[1]))}}}He.call(Ye,ur);function ar(Pr,Br){Pr.text(Br).on("mouseover.opacity",function(){lh.select(this).transition().duration(bR.SHOW_PLACEHOLDER).style("opacity",1)}).on("mouseout.opacity",function(){lh.select(this).transition().duration(bR.HIDE_PLACEHOLDER).style("opacity",0)})}if(ce&&(p?He.on(".opacity",null):(ar(He,o),m=!0),He.call(sh.makeEditable,{gd:e}).on("edit",function(Pr){l!==void 0?T7.call("_guiRestyle",e,i,Pr,l):T7.call("_guiRelayout",e,i,Pr)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(Ye)}).on("input",function(Pr){this.text(Pr||" ").call(sh.positionText,u.x,u.y)}),P)){if(P&&!p){var Ie=He.node().getBBox(),_r=Ie.y+Ie.height+k7*Y;ur.attr("y",_r)}I?ur.on(".opacity",null):(ar(ur,q),U=!0),ur.call(sh.makeEditable,{gd:e}).on("edit",function(Pr){T7.call("_guiRelayout",e,"title.subtitle.text",Pr)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(Ye)}).on("input",function(Pr){this.text(Pr||" ").call(sh.positionText,ur.attr("x"),ur.attr("y"))})}return He.classed("js-placeholder",m),ur&&!ur.empty()&&ur.classed("js-placeholder",U),c}_R.exports={draw:Uhe,SUBTITLE_PADDING_EM:k7,SUBTITLE_PADDING_MATHJAX_EM:M7}});var Hg=B((rFe,kR)=>{"use strict";var Ghe=la(),Yhe=wv().utcFormat,Pa=or(),Vhe=Pa.numberFormat,_s=da(),Tf=Pa.cleanNumber,Xhe=Pa.ms2DateTime,wR=Pa.dateTime2ms,ws=Pa.ensureNumber,AR=Pa.isArrayOrTypedArray,Mf=(Wn(),vr(ri)),Rg=Mf.FP_SAFE,Hl=Mf.BADNUM,Whe=Mf.LOG_CLIP,Zhe=Mf.ONEWEEK,Pg=Mf.ONEDAY,Ng=Mf.ONEHOUR,TR=Mf.ONEMIN,MR=Mf.ONESEC,zg=hn(),Og=(ni(),vr(ai)),Bg=Og.HOUR_PATTERN,Ig=Og.WEEKDAY_PATTERN;function t1(e){return Math.pow(10,e)}function S7(e){return e!=null}kR.exports=function(r,t){t=t||{};var a=r._id||"x",n=a.charAt(0);function i(x,w){if(x>0)return Math.log(x)/Math.LN10;if(x<=0&&w&&r.range&&r.range.length===2){var k=r.range[0],M=r.range[1];return .5*(k+M-2*Whe*Math.abs(k-M))}else return Hl}function o(x,w,k,M){if((M||{}).msUTC&&_s(x))return+x;var C=wR(x,k||r.calendar);if(C===Hl)if(_s(x)){x=+x;var E=Math.floor(Pa.mod(x+.05,1)*10),F=Math.round(x-E/10);C=wR(new Date(F))+E/10}else return Hl;return C}function l(x,w,k){return Xhe(x,w,k||r.calendar)}function s(x){return r._categories[Math.round(x)]}function u(x){if(S7(x)){if(r._categoriesMap===void 0&&(r._categoriesMap={}),r._categoriesMap[x]!==void 0)return r._categoriesMap[x];r._categories.push(typeof x=="number"?String(x):x);var w=r._categories.length-1;return r._categoriesMap[x]=w,w}return Hl}function f(x,w){for(var k=new Array(w),M=0;Mr.range[1]&&(k=!k);for(var M=k?-1:1,C=M*x,E=0,F=0;Fq)E=F+1;else{E=C<(P+q)/2?F:F+1;break}}var z=r._B[E]||0;return isFinite(z)?p(x,r._m2,z):0},b=function(x){var w=r._rangebreaks.length;if(!w)return m(x,r._m,r._b);for(var k=0,M=0;Mr._rangebreaks[M].pmax&&(k=M+1);return m(x,r._m2,r._B[k])}}r.c2l=r.type==="log"?i:ws,r.l2c=r.type==="log"?t1:ws,r.l2p=y,r.p2l=b,r.c2p=r.type==="log"?function(x,w){return y(i(x,w))}:y,r.p2c=r.type==="log"?function(x){return t1(b(x))}:b,["linear","-"].indexOf(r.type)!==-1?(r.d2r=r.r2d=r.d2c=r.r2c=r.d2l=r.r2l=Tf,r.c2d=r.c2r=r.l2d=r.l2r=ws,r.d2p=r.r2p=function(x){return r.l2p(Tf(x))},r.p2d=r.p2r=b,r.cleanPos=ws):r.type==="log"?(r.d2r=r.d2l=function(x,w){return i(Tf(x),w)},r.r2d=r.r2c=function(x){return t1(Tf(x))},r.d2c=r.r2l=Tf,r.c2d=r.l2r=ws,r.c2r=i,r.l2d=t1,r.d2p=function(x,w){return r.l2p(r.d2r(x,w))},r.p2d=function(x){return t1(b(x))},r.r2p=function(x){return r.l2p(Tf(x))},r.p2r=b,r.cleanPos=ws):r.type==="date"?(r.d2r=r.r2d=Pa.identity,r.d2c=r.r2c=r.d2l=r.r2l=o,r.c2d=r.c2r=r.l2d=r.l2r=l,r.d2p=r.r2p=function(x,w,k){return r.l2p(o(x,0,k))},r.p2d=r.p2r=function(x,w,k){return l(b(x),w,k)},r.cleanPos=function(x){return Pa.cleanDate(x,Hl,r.calendar)}):r.type==="category"?(r.d2c=r.d2l=u,r.r2d=r.c2d=r.l2d=s,r.d2r=r.d2l_noadd=v,r.r2c=function(x){var w=d(x);return w!==void 0?w:r.fraction2r(.5)},r.l2r=r.c2r=ws,r.r2l=d,r.d2p=function(x){return r.l2p(r.r2c(x))},r.p2d=function(x){return s(b(x))},r.r2p=r.d2p,r.p2r=b,r.cleanPos=function(x){return typeof x=="string"&&x!==""?x:ws(x)}):r.type==="multicategory"&&(r.r2d=r.c2d=r.l2d=s,r.d2r=r.d2l_noadd=v,r.r2c=function(x){var w=v(x);return w!==void 0?w:r.fraction2r(.5)},r.r2c_just_indices=c,r.l2r=r.c2r=ws,r.r2l=v,r.d2p=function(x){return r.l2p(r.r2c(x))},r.p2d=function(x){return s(b(x))},r.r2p=r.d2p,r.p2r=b,r.cleanPos=function(x){return Array.isArray(x)||typeof x=="string"&&x!==""?x:ws(x)},r.setupMultiCategory=function(x){var w=r._traceIndices,k,M,C=r._matchGroup;if(C&&r._categories.length===0){for(var E in C)if(E!==a){var F=t[zg.id2name(E)];w=w.concat(F._traceIndices)}}var P=[[0,{}],[0,{}]],q=[];for(k=0;kF[1]&&(M[E?0:1]=k,C[1]=F[1]),C[0]>=C[1])if(w!==void 0){var P=F[0]+1;k!==void 0&&(P=Math.min(P,F[1])),M[E?0:1]=r.l2r(P)}else k!==void 0&&(M[E?1:0]=r.l2r(F[1]-1))}},r.cleanRange=function(x,w){r._cleanRange(x,w),r.limitRange(x)},r._cleanRange=function(x,w){w||(w={}),x||(x="range");var k=Pa.nestedProperty(r,x).get(),M,C;if(r.type==="date"?C=Pa.dfltRange(r.calendar):n==="y"?C=Og.DFLTRANGEY:r._name==="realaxis"?C=[0,1]:C=w.dfltRange||Og.DFLTRANGEX,C=C.slice(),(r.rangemode==="tozero"||r.rangemode==="nonnegative")&&(C[0]=0),!k||k.length!==2){Pa.nestedProperty(r,x).set(C);return}var E=k[0]===null,F=k[1]===null;for(r.type==="date"&&!r.autorange&&(k[0]=Pa.cleanDate(k[0],Hl,r.calendar),k[1]=Pa.cleanDate(k[1],Hl,r.calendar)),M=0;M<2;M++)if(r.type==="date"){if(!Pa.isDateTime(k[M],r.calendar)){r[x]=C;break}if(r.r2l(k[0])===r.r2l(k[1])){var P=Pa.constrain(r.r2l(k[0]),Pa.MIN_MS+1e3,Pa.MAX_MS-1e3);k[0]=r.l2r(P-1e3),k[1]=r.l2r(P+1e3);break}}else{if(!_s(k[M]))if(!(E||F)&&_s(k[1-M]))k[M]=k[1-M]*(M?10:.1);else{r[x]=C;break}if(k[M]<-Rg?k[M]=-Rg:k[M]>Rg&&(k[M]=Rg),k[0]===k[1]){var q=Math.max(1,Math.abs(k[0]*1e-6));k[0]-=q,k[1]+=q}}},r.setScale=function(x){var w=t._size;if(r.overlaying){var k=zg.getFromId({_fullLayout:t},r.overlaying);r.domain=k.domain}var M=x&&r._r?"_r":"range",C=r.calendar;r.cleanRange(M);var E=r.r2l(r[M][0],C),F=r.r2l(r[M][1],C),P=n==="y";if(P?(r._offset=w.t+(1-r.domain[1])*w.h,r._length=w.h*(r.domain[1]-r.domain[0]),r._m=r._length/(E-F),r._b=-r._m*F):(r._offset=w.l+r.domain[0]*w.w,r._length=w.w*(r.domain[1]-r.domain[0]),r._m=r._length/(F-E),r._b=-r._m*E),r._rangebreaks=[],r._lBreaks=0,r._m2=0,r._B=[],r.rangebreaks){var q,z;if(r._rangebreaks=r.locateBreaks(Math.min(E,F),Math.max(E,F)),r._rangebreaks.length){for(q=0;qF&&(I=!I),I&&r._rangebreaks.reverse();var U=I?-1:1;for(r._m2=U*r._length/(Math.abs(F-E)-r._lBreaks),r._B.push(-r._m2*(P?F:E)),q=0;qC&&(C+=7,EC&&(C+=24,E=M&&E=M&&x=ae.min&&(eeae.max&&(ae.max=ye),fe=!1)}fe&&F.push({min:ee,max:ye})}};for(k=0;k{"use strict";var SR=da(),C7=or(),Jhe=(Wn(),vr(ri)).BADNUM,Ug=C7.isArrayOrTypedArray,jhe=C7.isDateTime,$he=C7.cleanNumber,CR=Math.round;LR.exports=function(r,t,a){var n=r,i=a.noMultiCategory;if(Ug(n)&&!n.length)return"-";if(!i&&tde(n))return"multicategory";if(i&&Array.isArray(n[0])){for(var o=[],l=0;li*2}function DR(e){return Math.max(1,(e-1)/1e3)}function rde(e,r){for(var t=e.length,a=DR(t),n=0,i=0,o={},l=0;ln*2}function tde(e){return Ug(e[0])&&Ug(e[1])}});var uh=B((aFe,BR)=>{"use strict";var ade=la(),RR=da(),kf=or(),Gg=(Wn(),vr(ri)).FP_SAFE,nde=Pt(),ide=Sa(),PR=hn(),ode=PR.getFromId,lde=PR.isLinked;BR.exports={applyAutorangeOptions:zR,getAutoRange:L7,makePadFn:E7,doAutoRange:ude,findExtremes:fde,concatExtremes:R7};function L7(e,r){var t,a,n=[],i=e._fullLayout,o=E7(i,r,0),l=E7(i,r,1),s=R7(e,r),u=s.min,f=s.max;if(u.length===0||f.length===0)return kf.simpleMap(r.range,r.r2l);var c=u[0].val,v=f[0].val;for(t=1;t0&&(F=_-o(k)-l(M),F>x?P/F>w&&(C=k,E=M,w=P/F):P/_>w&&(C={val:k.val,nopad:1},E={val:M.val,nopad:1},w=P/_));function q(W,G){return Math.max(W,l(G))}if(c===v){var z=c-1,I=c+1;if(b)if(c===0)n=[0,1];else{var U=(c>0?f:u).reduce(q,0),V=c/(1-Math.min(.5,U/_));n=c>0?[0,V]:[V,0]}else T?n=[Math.max(0,z),Math.max(1,I)]:n=[z,I]}else b?(C.val>=0&&(C={val:0,nopad:1}),E.val<=0&&(E={val:0,nopad:1})):T&&(C.val-w*o(C)<0&&(C={val:0,nopad:1}),E.val<=0&&(E={val:1,nopad:1})),w=(E.val-C.val-ER(r,k.val,M.val))/(_-o(C)-l(E)),n=[C.val-w*o(C),E.val+w*l(E)];return n=zR(n,r),r.limitRange&&r.limitRange(),p&&n.reverse(),kf.simpleMap(n,r.l2r||Number)}function ER(e,r,t){var a=0;if(e.rangebreaks)for(var n=e.locateBreaks(r,t),i=0;i0?t.ppadplus:t.ppadminus)||t.ppad||0),k=x((e._m>0?t.ppadminus:t.ppadplus)||t.ppad||0),M=x(t.vpadplus||t.vpad),C=x(t.vpadminus||t.vpad);if(!u){if(T=1/0,_=-1/0,s)for(c=0;c0&&(T=v),v>_&&v-Gg&&(T=v),v>_&&v=P;c--)F(c);return{min:a,max:n,opts:t}}function q7(e,r,t,a){NR(e,r,t,a,cde)}function F7(e,r,t,a){NR(e,r,t,a,vde)}function NR(e,r,t,a,n){for(var i=a.tozero,o=a.extrapad,l=!0,s=0;s=t&&(u.extrapad||!o)){l=!1;break}else n(r,u.val)&&u.pad<=t&&(o||!u.extrapad)&&(e.splice(s,1),s--)}if(l){var f=i&&r===0;e.push({val:r,pad:f?0:t,extrapad:f?!1:o})}}function FR(e){return RR(e)&&Math.abs(e)=r}function hde(e,r){var t=r.autorangeoptions;return t&&t.minallowed!==void 0&&Yg(r,t.minallowed,t.maxallowed)?t.minallowed:t&&t.clipmin!==void 0&&Yg(r,t.clipmin,t.clipmax)?Math.max(e,r.d2l(t.clipmin)):e}function dde(e,r){var t=r.autorangeoptions;return t&&t.maxallowed!==void 0&&Yg(r,t.minallowed,t.maxallowed)?t.maxallowed:t&&t.clipmax!==void 0&&Yg(r,t.clipmin,t.clipmax)?Math.min(e,r.d2l(t.clipmax)):e}function Yg(e,r,t){return r!==void 0&&t!==void 0?(r=e.d2l(r),t=e.d2l(t),r=s&&(i=s,t=s),o<=s&&(o=s,a=s)}}return t=hde(t,r),a=dde(a,r),[t,a]}});var en=B((iFe,oP)=>{"use strict";var ul=la(),zn=da(),fh=di(),n1=Pt(),Ft=or(),ch=Ft.strTranslate,nc=Ei(),pde=r1(),i1=Kt(),Ho=Sa(),mde=sl(),IR=$6(),nFe=(ni(),vr(ai)),Fi=(Wn(),vr(ri)),yde=Fi.ONEMAXYEAR,Wg=Fi.ONEAVGYEAR,Zg=Fi.ONEMINYEAR,gde=Fi.ONEMAXQUARTER,B7=Fi.ONEAVGQUARTER,Jg=Fi.ONEMINQUARTER,bde=Fi.ONEMAXMONTH,vh=Fi.ONEAVGMONTH,jg=Fi.ONEMINMONTH,Uo=Fi.ONEWEEK,ji=Fi.ONEDAY,Sf=ji/2,Ts=Fi.ONEHOUR,o1=Fi.ONEMIN,$g=Fi.ONESEC,xde=Fi.ONEMILLI,_de=Fi.ONEMICROSEC,ic=Fi.MINUS_SIGN,Qg=Fi.BADNUM,I7={K:"zeroline"},O7={K:"gridline",L:"path"},H7={K:"minor-gridline",L:"path"},jR={K:"tick",L:"path"},OR={K:"tick",L:"text"},HR={width:["x","r","l","xl","xr"],height:["y","t","b","yt","yb"],right:["r","xr"],left:["l","xl"],top:["t","yt"],bottom:["b","yb"]},e3=(Oi(),vr(Ii)),a1=e3.MID_SHIFT,oc=e3.CAP_SHIFT,l1=e3.LINE_SPACING,wde=e3.OPPOSITE_SIDE,Kg=3,pr=oP.exports={};pr.setConvert=Hg();var Ade=D7(),Ms=hn(),Tde=Ms.idSort,Mde=Ms.isLinked;pr.id2name=Ms.id2name;pr.name2id=Ms.name2id;pr.cleanId=Ms.cleanId;pr.list=Ms.list;pr.listIds=Ms.listIds;pr.getFromId=Ms.getFromId;pr.getFromTrace=Ms.getFromTrace;var $R=uh();pr.getAutoRange=$R.getAutoRange;pr.findExtremes=$R.findExtremes;var kde=1e-4;function V7(e){var r=(e[1]-e[0])*kde;return[e[0]-r,e[1]+r]}function Sde(e,r,t){if(![t,e,r].every(zn)||t===0)return e;let a=Math.round((e-r)/t),n=r+a*t;return e!==n&&Math.abs(e-n)v+" domain")),s=s.concat(i||[]),f.length>o?(Ft.warn("Array attribute "+u+" has more entries than expected, truncating to "+o),f=f.slice(0,o)):f.length2e-6||((t-e._forceTick0)/e._minDtick%1+1.000001)%1>2e-6)&&(e._minDtick=0))};pr.saveRangeInitial=function(e,r){for(var t=pr.list(e,"",!0),a=!1,n=0;nc*.3||u(a)||u(n))){var v=t.dtick/2;e+=e+vo){var l=Number(t.slice(1));i.exactYears>o&&l%12===0?e=pr.tickIncrement(e,"M6","reverse")+ji*1.5:i.exactMonths>o?e=pr.tickIncrement(e,"M1","reverse")+ji*15.5:e-=Sf;var s=pr.tickIncrement(e,t);if(s<=a)return s}return e}pr.prepMinorTicks=function(e,r,t){var c,v;if(!((c=r.minor)!=null&&c.dtick)){delete e.dtick;var a=r.dtick&&zn(r._tmin),n;if(a){var i=pr.tickIncrement(r._tmin,r.dtick,!0);n=[r._tmin,i*.99+r._tmin*.01]}else{var o=Ft.simpleMap(r.range,r.r2l);n=[o[0],.8*o[0]+.2*o[1]]}if(e.range=Ft.simpleMap(n,r.l2r),e._isMinor=!0,pr.prepTicks(e,t),a){var l=zn(r.dtick),s=zn(e.dtick),u=l?r.dtick:+r.dtick.substring(1),f=s?e.dtick:+e.dtick.substring(1);l&&s?P7(u,f)?u===2*Uo&&f===2*ji&&(e.dtick=Uo):u===2*Uo&&f===3*ji?e.dtick=Uo:u===Uo&&!(r._input.minor||{}).nticks?e.dtick=ji:YR(u/f,2.5)?e.dtick=u/2:e.dtick=u:String(r.dtick).charAt(0)==="M"?s?e.dtick="M1":P7(u,f)?u>=12&&f===2&&(e.dtick="M3"):e.dtick=r.dtick:String(e.dtick).charAt(0)==="L"?String(r.dtick).charAt(0)==="L"?P7(u,f)||(e.dtick=YR(u/f,2.5)?r.dtick/2:r.dtick):e.dtick="D1":e.dtick==="D2"&&+r.dtick>1&&(e.dtick=1)}e.range=r.range}((v=r.minor)==null?void 0:v._tick0Init)===void 0&&(e.tick0=r.tick0),r._useTicklabelIndex&&(X7(e),r.minor._tickround=e._tickround)};function P7(e,r){return Math.abs((e/r+.5)%1-.5)<.001}function YR(e,r){return Math.abs(e/r-1)<.001}pr.prepTicks=function(e,r){var t=Ft.simpleMap(e.range,e.r2l,void 0,void 0,r);if(e.tickmode==="auto"||!e.dtick){var a=e.nticks,n;a||(e.type==="category"||e.type==="multicategory"?(n=e.tickfont?Ft.bigFont(e.tickfont.size||12):15,a=e._length/n):(n=e._id.charAt(0)==="y"?40:80,a=Ft.constrain(e._length/n,4,9)+1),e._name==="radialaxis"&&(a*=2)),e.minor&&e.minor.tickmode!=="array"||e.tickmode==="array"&&(a*=100),e._roughDTick=Math.abs(t[1]-t[0])/a,pr.autoTicks(e,e._roughDTick),e._minDtick>0&&e.dtick0?(l=a-1,s=a):(l=a,s=a),i=e[l].value,o=e[s].value}var u=Math.abs(o-i),f=t||u,c=0;e[a].periodEndTick!=null?c=u:f>=Zg?u>=Zg&&u<=yde?c=u:c=Wg:t===B7&&f>=Jg?u>=Jg&&u<=gde?c=u:c=B7:f>=jg?u>=jg&&u<=bde?c=u:c=vh:t===Uo&&f>=Uo?c=Uo:f>=ji?c=ji:t===Sf&&f>=Sf?c=Sf:t===Ts&&f>=Ts&&(c=Ts);var v;c>=u&&(c=u,v=!0);var d=n+c;if(r.rangebreaks&&c>0){for(var p=84,m=0,y=0;yUo&&(c=u)}(c>0||a===0)&&(e[a].periodX=n+c/2)}}pr.calcTicks=function(r,t){var a=r.type,n=r.calendar,i=r.ticklabelstep,o=r.ticklabelmode==="period",l=r.range[0]>r.range[1],s=!r.ticklabelindex||Ft.isArrayOrTypedArray(r.ticklabelindex)?r.ticklabelindex:[r.ticklabelindex];r._useTicklabelIndex=s!=null&&s!==0;for(var u=Ft.simpleMap(r.range,r.r2l,void 0,void 0,t),f=u[1]=(x?0:1);w--){var k=!w;w?(r._dtickInit=r.dtick,r._tick0Init=r.tick0):x&&(r.minor._dtickInit=r.minor.dtick,r.minor._tick0Init=r.minor.tick0);var M=w?r:Ft.extendFlat({},r,x?r.minor:{minor:{}});if(k?pr.prepMinorTicks(M,r,t):pr.prepTicks(M,t),M.tickmode==="array"){w?(y=[],p=VR(r,!k)):(b=[],m=VR(r,!k));continue}if(M.tickmode==="sync"){y=[],p=Fde(r);continue}var C=V7(u),E=C[0],F=C[1],P=zn(M.dtick),q=a==="log"&&!(P||M.dtick.charAt(0)==="L"),z=pr.tickFirst(M,t);if(w){if(r._tmin=z,z=F:U<=F;U=pr.tickIncrement(U,G,f,n)){if(w&&V++,M.rangebreaks&&!f){if(U=v)break}if(y.length>d||U===I)break;I=U;var Z={value:Sde(U,Y,G)};w?(U===z&&(Z.first=!0),q&&U!==(U|0)&&(Z.simpleLabel=!0),i>1&&V%i&&(Z.skipLabel=!0),y.push(Z)):(Z.minor=!0,b.push(Z))}}function j(Ye,We){let Ve=We.find(Ie=>Ie.value===Ye.value);if(Ve!=null)return Ve;let ar=1e7;for(let Ie=0;Iej(Ve,y)==null),We=y.concat(Ye).sort((Ve,ar)=>Ve.value-ar.value);o&&y.length&&(y[0].skipLabel=!0),y.forEach(function(Ve){Ve.skipLabel||(s.forEach(ar=>{if(ar<0){let Ie=We.filter(Br=>Br.value<=Ve.value),_r=Math.abs(ar),Pr=Ie.length-_r-1;if(_r_r.value>=Ve.value);if(arVe.skipLabel=!1)}if(_){var ee=r.minor.ticks==="inside"&&r.ticks==="outside"||r.minor.ticks==="outside"&&r.ticks==="inside";if(!ee){for(var ye=[],fe=0;fe-1;he--){if(y[he].drop){y.splice(he,1);continue}y[he].value=z7(y[he].value,r);var Fe=r.c2p(y[he].value);(ae?ce>Fe-Le:cev||arv&&(Ve.periodX=v),arn&&pn&&yWg)r/=Wg,a=n(10),e.dtick="M"+12*As(r,a,Vg);else if(i>vh)r/=vh,e.dtick="M"+As(r,1,XR);else if(i>ji){if(e.dtick=As(r,ji,e._hasDayOfWeekBreaks?[1,2,7,14]:Rde),!t){var o=pr.getTickFormat(e),l=e.ticklabelmode==="period";l&&(e._rawTick0=e.tick0),/%[uVW]/.test(o)?e.tick0=Ft.dateTick0(e.calendar,2):e.tick0=Ft.dateTick0(e.calendar,1),l&&(e._dowTick0=e.tick0)}}else i>Ts?e.dtick=As(r,Ts,XR):i>o1?e.dtick=As(r,o1,WR):i>$g?e.dtick=As(r,$g,WR):(a=n(10),e.dtick=As(r,a,Vg))}else if(e.type==="log"){e.tick0=0;var s=Ft.simpleMap(e.range,e.r2l);if(e._isMinor&&(r*=1.5),r>.7)e.dtick=Math.ceil(r);else if(Math.abs(s[1]-s[0])<1){var u=1.5*Math.abs((s[1]-s[0])/r);r=Math.abs(Math.pow(10,s[1])-Math.pow(10,s[0]))/u,a=n(10),e.dtick="L"+As(r,a,Vg)}else e.dtick=r>.3?"D2":"D1"}else e.type==="category"||e.type==="multicategory"?(e.tick0=0,e.dtick=Math.ceil(Math.max(r,1))):j7(e)?(e.tick0=0,a=1,e.dtick=As(r,a,Pde)):(e.tick0=0,a=n(10),e.dtick=As(r,a,Vg));if(e.dtick===0&&(e.dtick=1),!zn(e.dtick)&&typeof e.dtick!="string"){var f=e.dtick;throw e.dtick=1,"ax.dtick error: "+String(f)}};function X7(e){var r=e.dtick;if(e._tickexponent=0,!zn(r)&&typeof r!="string"&&(r=1),(e.type==="category"||e.type==="multicategory")&&(e._tickround=null),e.type==="date"){var t=e.r2l(e.tick0),a=e.l2r(t).replace(/(^-|i)/g,""),n=a.length;if(String(r).charAt(0)==="M")n>10||a.slice(5)!=="01-01"?e._tickround="d":e._tickround=+r.slice(1)%12===0?"y":"m";else if(r>=ji&&n<=10||r>=ji*15)e._tickround="d";else if(r>=o1&&n<=16||r>=Ts)e._tickround="M";else if(r>=$g&&n<=19||r>=o1)e._tickround="S";else{var i=e.l2r(t+r).replace(/^-/,"").length;e._tickround=Math.max(n,i)-20,e._tickround<0&&(e._tickround=4)}}else if(zn(r)||r.charAt(0)==="L"){var o=e.range.map(e.r2d||Number);zn(r)||(r=Number(r.slice(1))),e._tickround=2-Math.floor(Math.log(r)/Math.LN10+.01);var l=Math.max(Math.abs(o[0]),Math.abs(o[1])),s=Math.floor(Math.log(l)/Math.LN10+.01),u=e.minexponent===void 0?3:e.minexponent;Math.abs(s)>u&&(hh(e.exponentformat)&&e.exponentformat!=="SI extended"&&!W7(s)||hh(e.exponentformat)&&e.exponentformat==="SI extended"&&!Z7(s)?e._tickexponent=3*Math.round((s-1)/3):e._tickexponent=s)}else e._tickround=null}pr.tickIncrement=function(e,r,t,a){var n=t?-1:1;if(zn(r))return Ft.increment(e,n*r);var i=r.charAt(0),o=n*Number(r.slice(1));if(i==="M")return Ft.incrementMonth(e,o,a);if(i==="L")return Math.log(Math.pow(10,e)+o)/Math.LN10;if(i==="D"){var l=r==="D2"?eP:QR,s=e+n*.01,u=Ft.roundUp(Ft.mod(s,1),l,t);return Math.floor(s)+Math.log(ul.round(Math.pow(10,u),1))/Math.LN10}throw"unrecognized dtick "+String(r)};pr.tickFirst=function(e,r){var t=e.r2l||Number,a=Ft.simpleMap(e.range,t,void 0,void 0,r),n=a[1]=0&&x<=e._length?_:null};if(s&&Ft.isArrayOrTypedArray(e.ticktext)){var p=Ft.simpleMap(e.range,e.r2l),m=(Math.abs(p[1]-p[0])-(e._lBreaks||0))/1e4;for(v=0;v"+l;else{var u=u1(e),f=e._trueSide||e.side;(!u&&f==="top"||u&&f==="bottom")&&(o+="
")}r.text=o}function zde(e,r,t,a,n){var i=e.dtick,o=r.x,l=e.tickformat,s=typeof i=="string"&&i.charAt(0);if(n==="never"&&(n=""),a&&s!=="L"&&(i="L3",s="L"),l||s==="L")r.text=s1(Math.pow(10,o),e,n,a);else if(zn(i)||s==="D"&&(e.minorloglabels==="complete"||Ft.mod(o+.01,1)<.1)){var u;e.minorloglabels==="complete"&&!(Ft.mod(o+.01,1)<.1)&&(u=!0,r.fontSize*=.75);var f=Math.pow(10,o).toExponential(0),c=f.split("e"),v=+c[1],d=Math.abs(v),p=e.exponentformat;p==="power"||hh(p)&&p!=="SI extended"&&W7(v)||hh(p)&&p==="SI extended"&&Z7(v)?(r.text=c[0],d>0&&(r.text+="x10"),r.text==="1x10"&&(r.text="10"),v!==0&&v!==1&&(r.text+=""+(v>0?"":ic)+d+""),r.fontSize*=1.25):(p==="e"||p==="E")&&d>2?r.text=c[0]+p+(v>0?"+":ic)+d:(r.text=s1(Math.pow(10,o),e,"","fakehover"),i==="D1"&&e._id.charAt(0)==="y"&&(r.dy-=r.fontSize/6))}else if(s==="D")r.text=e.minorloglabels==="none"?"":String(Math.round(Math.pow(10,Ft.mod(o,1)))),r.fontSize*=.75;else throw"unrecognized dtick "+String(i);if(e.dtick==="D1"){var m=String(r.text).charAt(0);(m==="0"||m==="1")&&(e._id.charAt(0)==="y"?r.dx-=r.fontSize/4:(r.dy+=r.fontSize/2,r.dx+=(e.range[1]>e.range[0]?1:-1)*r.fontSize*(o<0?.5:.25)))}}function Bde(e,r){var t=e._categories[Math.round(r.x)];t===void 0&&(t=""),r.text=String(t)}function Ide(e,r,t){var a=Math.round(r.x),n=e._categories[a]||[],i=n[1]===void 0?"":String(n[1]),o=n[0]===void 0?"":String(n[0]);t?r.text=o+" - "+i:(r.text=i,r.text2=o)}function Ode(e,r,t,a,n){n==="never"?n="":e.showexponent==="all"&&Math.abs(r.x/e.dtick)<1e-6&&(n="hide"),r.text=s1(r.x,e,n,a)}function Hde(e,r,t,a,n){if(e.thetaunit==="radians"&&!t){var i=r.x/180;if(i===0)r.text="0";else{var o=Ude(i);if(o[1]>=100)r.text=s1(Ft.deg2rad(r.x),e,n,a);else{var l=r.x<0;o[1]===1?o[0]===1?r.text="\u03C0":r.text=o[0]+"\u03C0":r.text=["",o[0],"","\u2044","",o[1],"","\u03C0"].join(""),l&&(r.text=ic+r.text)}}}else r.text=s1(r.x,e,n,a)}function Ude(e){function r(l,s){return Math.abs(l-s)<=1e-6}function t(l,s){return r(s,0)?l:t(s,l%s)}function a(l){for(var s=1;!r(Math.round(l*s)/s,l);)s*=10;return s}var n=a(e),i=e*n,o=Math.abs(t(i,n));return[Math.round(i/o),Math.round(n/o)]}var tP=["f","p","n","\u03BC","m","","k","M","G","T"],Gde=["q","r","y","z","a",...tP,"P","E","Z","Y","R","Q"],hh=e=>["SI","SI extended","B"].includes(e);function W7(e){return e>14||e<-15}function Z7(e){return e>32||e<-30}function Yde(e,r){return hh(r)?!!(r==="SI extended"&&Z7(e)||r!=="SI extended"&&W7(e)):!1}function s1(e,r,t,a){var n=e<0,i=r._tickround,o=t||r.exponentformat||"B",l=r._tickexponent,s=pr.getTickFormat(r),u=r.separatethousands;if(a){var f={exponentformat:o,minexponent:r.minexponent,dtick:r.showexponent==="none"?r.dtick:zn(e)&&Math.abs(e)||1,range:r.showexponent==="none"?r.range.map(r.r2d):[0,e||1]};X7(f),i=(Number(f._tickround)||0)+4,l=f._tickexponent,r.hoverformat&&(s=r.hoverformat)}if(s)return r._numFormat(s)(e).replace(/-/g,ic);o==="none"&&(l=0),e=Math.abs(e);let c=Math.pow(10,-i)/2;if(e"+v+"":o==="B"&&l===9?e+="B":hh(o)&&(e+=o==="SI extended"?Gde[l/3+10]:tP[l/3+5])}return n?ic+e:e}pr.getTickFormat=function(e){var r;function t(s){return typeof s!="string"?s:Number(s.replace("M",""))*vh}function a(s,u){var f=["L","D"];if(typeof s==typeof u){if(typeof s=="number")return s-u;var c=f.indexOf(s.charAt(0)),v=f.indexOf(u.charAt(0));return c===v?Number(s.replace(/(L|D)/g,""))-Number(u.replace(/(L|D)/g,"")):c-v}else return typeof s=="number"?1:-1}function n(s,u,f){var c=f||function(p){return p},v=u[0],d=u[1];return(!v&&typeof v!="number"||c(v)<=c(s))&&(!d&&typeof d!="number"||c(d)>=c(s))}function i(s,u){var f=u[0]===null,c=u[1]===null,v=a(s,u[0])>=0,d=a(s,u[1])<=0;return(f||v)&&(c||d)}var o,l;if(e.tickformatstops&&e.tickformatstops.length>0)switch(e.type){case"date":case"linear":{for(r=0;r=0&&n.unshift(n.splice(f,1).shift())}});var l={false:{left:0,right:0}};return Ft.syncOrAsync(n.map(function(s){return function(){if(s){var u=pr.getFromId(e,s);t||(t={}),t.axShifts=l,t.overlayingShiftedAx=o;var f=pr.drawOne(e,u,t);return u._shiftPusher&&Y7(u,u._fullDepth||0,l,!0),u._r=u.range.slice(),u._rl=Ft.simpleMap(u._r,u.r2l),f}}}))};pr.drawOne=function(e,r,t){t=t||{};var a=t.axShifts||{},n=t.overlayingShiftedAx||[],i,o,l;r.setScale();var s=e._fullLayout,u=r._id,f=u.charAt(0),c=pr.counterLetter(u),v=s._plots[r._mainSubplot],d=r.zerolinelayer==="above traces";if(!v)return;if(r._shiftPusher=r.autoshift||n.indexOf(r._id)!==-1||n.indexOf(r.overlaying)!==-1,r._shiftPusher&r.anchor==="free"){var p=r.linewidth/2||0;r.ticks==="inside"&&(p+=r.ticklen),Y7(r,p,a,!0),Y7(r,r.shift||0,a,!1)}(t.skipTitle!==!0||r._shift===void 0)&&(r._shift=a2e(r,a));var m=v[f+"axislayer"],y=r._mainLinePosition,b=y+=r._shift,T=r._mainMirrorPosition,_=r._vals=pr.calcTicks(r),x=[r.mirror,b,T].join("_");for(i=0;i<_.length;i++)_[i].axInfo=x;r._selections={},r._tickAngles&&(r._prevTickAngles=r._tickAngles),r._tickAngles={},r._depth=null;var w={};function k(Ie){var _r=u+(Ie||"tick");return w[_r]||(w[_r]=Zde(r,_r,b)),w[_r]}if(r.visible){var M=pr.makeTransTickFn(r),C=pr.makeTransTickLabelFn(r),E,F,P=r.ticks==="inside",q=r.ticks==="outside";if(r.tickson==="boundaries"){var z=Vde(r,_);F=pr.clipEnds(r,z),E=P?F:z}else F=pr.clipEnds(r,_),E=P&&r.ticklabelmode!=="period"?F:_;var I=r._gridVals=F,U=Wde(r,_);if(!s._hasOnlyLargeSploms){var V=r._subplotsWith,W={};for(i=0;i0?$e.bottom-Pr:0,Br))));var Ee=0,Tr=0;if(r._shiftPusher&&(Ee=Math.max(Br,$e.height>0?Ie==="l"?Pr-$e.left:$e.right-Pr:0),r.title.text!==s._dfltTitle[f]&&(Tr=(r._titleStandoff||0)+(r._titleScoot||0),Ie==="l"&&(Tr+=JR(r))),r._fullDepth=Math.max(Ee,Tr)),r.automargin){mr={x:0,y:0,r:0,l:0,t:0,b:0};var rt=[0,1],ot=typeof r._shift=="number"?r._shift:0;if(f==="x"){if(Ie==="b"?mr[Ie]=r._depth:(mr[Ie]=r._depth=Math.max($e.width>0?Pr-$e.top:0,Br),rt.reverse()),$e.width>0){var pe=$e.right-(r._offset+r._length);pe>0&&(mr.xr=1,mr.r=pe);var Ce=r._offset-$e.left;Ce>0&&(mr.xl=0,mr.l=Ce)}}else if(Ie==="l"?(r._depth=Math.max($e.height>0?Pr-$e.left:0,Br),mr[Ie]=r._depth-ot):(r._depth=Math.max($e.height>0?$e.right-Pr:0,Br),mr[Ie]=r._depth+ot,rt.reverse()),$e.height>0){var lr=$e.bottom-(r._offset+r._length);lr>0&&(mr.yb=0,mr.b=lr);var wr=r._offset-$e.top;wr>0&&(mr.yt=1,mr.t=wr)}mr[c]=r.anchor==="free"?r.position:r._anchorAxis.domain[rt[0]],r.title.text!==s._dfltTitle[f]&&(mr[Ie]+=JR(r)+(r.title.standoff||0)),r.mirror&&r.anchor!=="free"&&(Yr={x:0,y:0,r:0,l:0,t:0,b:0},Yr[_r]=r.linewidth,r.mirror&&r.mirror!==!0&&(Yr[_r]+=Br),r.mirror===!0||r.mirror==="ticks"?Yr[c]=r._anchorAxis.domain[rt[1]]:(r.mirror==="all"||r.mirror==="allticks")&&(Yr[c]=[r._counterDomainMin,r._counterDomainMax][rt[1]]))}ar&&(ue=n1.getComponentMethod("rangeslider","autoMarginOpts")(e,r)),typeof r.automargin=="string"&&(ZR(mr,r.automargin),ZR(Yr,r.automargin)),fh.autoMargin(e,J7(r),mr),fh.autoMargin(e,nP(r),Yr),fh.autoMargin(e,iP(r),ue)}),Ft.syncOrAsync(We)}};function ZR(e,r){if(e){var t=Object.keys(HR).reduce(function(a,n){return r.indexOf(n)!==-1&&HR[n].forEach(function(i){a[i]=1}),a},{});Object.keys(e).forEach(function(a){t[a]||(a.length===1?e[a]=0:delete e[a])})}}function Vde(e,r){var t=[],a,n=function(i,o){var l=i.xbnd[o];l!==null&&t.push(Ft.extendFlat({},i,{x:l}))};if(r.length){for(a=0;ae.range[1],l=e.ticklabelposition&&e.ticklabelposition.indexOf("inside")!==-1,s=!l;if(t){var u=o?-1:1;t=t*u}if(a){var f=e.side,c=l&&(f==="top"||f==="left")||s&&(f==="bottom"||f==="right")?1:-1;a=a*c}return e._id.charAt(0)==="x"?function(v){return ch(n+e._offset+e.l2p(U7(v))+t,i+a)}:function(v){return ch(i+a,n+e._offset+e.l2p(U7(v))+t)}};function U7(e){return e.periodX!==void 0?e.periodX:e.x}function Jde(e){var r=e.ticklabelposition||"",t=e.tickson||"",a=function(p){return r.indexOf(p)!==-1},n=a("top"),i=a("left"),o=a("right"),l=a("bottom"),s=a("inside"),u=t!=="boundaries"&&(l||i||n||o);if(!u&&!s)return[0,0];var f=e.side,c=u?(e.tickwidth||0)/2:0,v=Kg,d=e.tickfont?e.tickfont.size:12;return(l||n)&&(c+=d*oc,v+=(e.linewidth||0)/2),(i||o)&&(c+=(e.linewidth||0)/2,v+=Kg),s&&f==="top"&&(v-=d*(1-oc)),(i||n)&&(c=-c),(f==="bottom"||f==="right")&&(v=-v),[u?c:0,s?v:0]}pr.makeTickPath=function(e,r,t,a){a||(a={});var n=a.minor;if(n&&!e.minor)return"";var i=a.len!==void 0?a.len:n?e.minor.ticklen:e.ticklen,o=e._id.charAt(0),l=(e.linewidth||1)/2;return o==="x"?"M0,"+(r+l*t)+"v"+i*t:"M"+(r+l*t)+",0h"+i*t};pr.makeLabelFns=function(e,r,t){var a=e.ticklabelposition||"",n=e.tickson||"",i=function(z){return a.indexOf(z)!==-1},o=i("top"),l=i("left"),s=i("right"),u=i("bottom"),f=n!=="boundaries"&&(u||l||o||s),c=i("inside"),v=a==="inside"&&e.ticks==="inside"||!c&&e.ticks==="outside"&&n!=="boundaries",d=0,p=0,m=v?e.ticklen:0;if(c?m*=-1:f&&(m=0),v&&(d+=m,t)){var y=Ft.deg2rad(t);d=m*Math.cos(y)+1,p=m*Math.sin(y)}e.showticklabels&&(v||e.showline)&&(d+=.2*e.tickfont.size),d+=(e.linewidth||1)/2*(c?-1:1);var b={labelStandoff:d,labelShift:p},T,_,x,w,k=0,M=e.side,C=e._id.charAt(0),E=e.tickangle,F;if(C==="x")F=!c&&M==="bottom"||c&&M==="top",w=F?1:-1,c&&(w*=-1),T=p*w,_=r+d*w,x=F?1:-.2,Math.abs(E)===90&&(c?x+=a1:E===-90&&M==="bottom"?x=oc:E===90&&M==="top"?x=a1:x=.5,k=a1/2*(E/90)),b.xFn=function(z){return z.dx+T+k*z.fontSize},b.yFn=function(z){return z.dy+_+z.fontSize*x},b.anchorFn=function(z,I){if(f){if(l)return"end";if(s)return"start"}return!zn(I)||I===0||I===180?"middle":I*w<0!==c?"end":"start"},b.heightFn=function(z,I,U){return I<-60||I>60?-.5*U:e.side==="top"!==c?-U:0};else if(C==="y"){if(F=!c&&M==="left"||c&&M==="right",w=F?1:-1,c&&(w*=-1),T=d,_=p*w,x=0,!c&&Math.abs(E)===90&&(E===-90&&M==="left"||E===90&&M==="right"?x=oc:x=.5),c){var P=zn(E)?+E:0;if(P!==0){var q=Ft.deg2rad(P);k=Math.abs(Math.sin(q))*oc*w,x=0}}b.xFn=function(z){return z.dx+r-(T+z.fontSize*x)*w+k*z.fontSize},b.yFn=function(z){return z.dy+_+z.fontSize*a1},b.anchorFn=function(z,I){return zn(I)&&Math.abs(I)===90?"middle":F?"end":"start"},b.heightFn=function(z,I,U){return e.side==="right"&&(I*=-1),I<-30?-U:I<30?-.5*U:0}}return b};function r3(e){return[e.text,e.x,e.axInfo,e.font,e.fontSize,e.fontColor].join("_")}pr.drawTicks=function(e,r,t){t=t||{};var a=r._id+"tick",n=[].concat(r.minor&&r.minor.ticks?t.vals.filter(function(o){return o.minor&&!o.noTick}):[]).concat(r.ticks?t.vals.filter(function(o){return!o.minor&&!o.noTick}):[]),i=t.layer.selectAll("path."+a).data(n,r3);i.exit().remove(),i.enter().append("path").classed(a,1).classed("ticks",1).classed("crisp",t.crisp!==!1).each(function(o){return i1.stroke(ul.select(this),o.minor?r.minor.tickcolor:r.tickcolor)}).style("stroke-width",function(o){return Ho.crispRound(e,o.minor?r.minor.tickwidth:r.tickwidth,1)+"px"}).attr("d",t.path).style("display",null),t3(r,[jR]),i.attr("transform",t.transFn)};pr.drawGrid=function(e,r,t){if(t=t||{},r.tickmode!=="sync"){var a=r._id+"grid",n=r.minor&&r.minor.showgrid,i=n?t.vals.filter(function(b){return b.minor}):[],o=r.showgrid?t.vals.filter(function(b){return!b.minor}):[],l=t.counterAxis;if(l&&pr.shouldShowZeroLine(e,r,l))for(var s=r.tickmode==="array",u=0;u=0;p--){var m=p?v:d;if(m){var y=m.selectAll("path."+a).data(p?o:i,r3);y.exit().remove(),y.enter().append("path").classed(a,1).classed("crisp",t.crisp!==!1),y.attr("transform",t.transFn).attr("d",t.path).each(function(b){return i1.stroke(ul.select(this),b.minor?r.minor.gridcolor:r.gridcolor||"#ddd")}).style("stroke-dasharray",function(b){return Ho.dashStyle(b.minor?r.minor.griddash:r.griddash,b.minor?r.minor.gridwidth:r.gridwidth)}).style("stroke-width",function(b){return(b.minor?c:r._gw)+"px"}).style("display",null),typeof t.path=="function"&&y.attr("d",t.path)}}t3(r,[O7,H7])}};pr.drawZeroLine=function(e,r,t){t=t||t;var a=r._id+"zl",n=pr.shouldShowZeroLine(e,r,t.counterAxis),i=t.layer.selectAll("path."+a).data(n?[{x:0,id:r._id}]:[]);i.exit().remove(),i.enter().append("path").classed(a,1).classed("zl",1).classed("crisp",t.crisp!==!1).each(function(){t.layer.selectAll("path").sort(function(o,l){return Tde(o.id,l.id)})}),i.attr("transform",t.transFn).attr("d",t.path).call(i1.stroke,r.zerolinecolor||i1.defaultLine).style("stroke-width",Ho.crispRound(e,r.zerolinewidth,r._gw||1)+"px").style("display",null),t3(r,[I7])};pr.drawLabels=function(e,r,t){t=t||{};var a=e._fullLayout,n=r._id,i=r.zerolinelayer==="above traces",o=t.cls||n+"tick",l=t.vals.filter(function(Y){return Y.text}),s=t.labelFns,u=t.secondary?0:r.tickangle,f=(r._prevTickAngles||{})[o],c=t.layer.selectAll("g."+o).data(r.showticklabels?l:[],r3),v=[];c.enter().append("g").classed(o,1).append("text").attr("text-anchor","middle").each(function(Y){var Z=ul.select(this),j=e._promises.length;Z.call(nc.positionText,s.xFn(Y),s.yFn(Y)).call(Ho.font,{family:Y.font,size:Y.fontSize,color:Y.fontColor,weight:Y.fontWeight,style:Y.fontStyle,variant:Y.fontVariant,textcase:Y.fontTextcase,lineposition:Y.fontLineposition,shadow:Y.fontShadow}).text(Y.text).call(nc.convertToTspans,e),e._promises[j]?v.push(e._promises.pop().then(function(){d(Z,u)})):d(Z,u)}),t3(r,[OR]),c.exit().remove(),t.repositionOnUpdate&&c.each(function(Y){ul.select(this).select("text").call(nc.positionText,s.xFn(Y),s.yFn(Y))});function d(Y,Z){Y.each(function(j){var ee=ul.select(this),ye=ee.select(".text-math-group"),fe=s.anchorFn(j,Z),he=t.transFn.call(ee.node(),j)+(zn(Z)&&+Z!=0?" rotate("+Z+","+s.xFn(j)+","+(s.yFn(j)-j.fontSize/2)+")":""),ae=nc.lineCount(ee),Le=l1*j.fontSize,ce=s.heightFn(j,zn(Z)?+Z:0,(ae-1)*Le);if(ce&&(he+=ch(0,ce)),ye.empty()){var Fe=ee.select("text");Fe.attr({transform:he,"text-anchor":fe}),Fe.style("display",null),r._adjustTickLabelsOverflow&&r._adjustTickLabelsOverflow()}else{var Re=Ho.bBox(ye.node()).width,ge=Re*{end:-.5,start:.5}[fe];ye.attr("transform",he+ch(ge,0))}})}r._adjustTickLabelsOverflow=function(){var Y=r.ticklabeloverflow;if(!(!Y||Y==="allow")){var Z=Y.indexOf("hide")!==-1,j=r._id.charAt(0)==="x",ee=0,ye=j?e._fullLayout.width:e._fullLayout.height;if(Y.indexOf("domain")!==-1){var fe=Ft.simpleMap(r.range,r.r2l);ee=r.l2p(fe[0])+r._offset,ye=r.l2p(fe[1])+r._offset}var he=Math.min(ee,ye),ae=Math.max(ee,ye),Le=r.side,ce=1/0,Fe=-1/0;c.each(function(ur){var qe=ul.select(this),Ue=qe.select(".text-math-group");if(Ue.empty()){var Ye=Ho.bBox(qe.node()),We=0;j?(Ye.right>ae||Ye.leftae||Ye.top+(r.tickangle?0:ur.fontSize/4)r["_visibleLabelMin_"+fe._id]?qe.style("display","none"):ae.K==="tick"&&!he&&qe.node().style.display!=="none"&&qe.style("display",null)})})})})},d(c,f+1?f:u);function p(){return v.length&&Promise.all(v)}var m=null;function y(){if(d(c,u),l.length&&r.autotickangles&&(r.type!=="log"||String(r.dtick).charAt(0)!=="D")){m=r.autotickangles[0];var Y=0,Z=[],j,ee=1;c.each(function(mr){Y=Math.max(Y,mr.fontSize);var Yr=r.l2p(mr.x),ue=G7(this),Ee=Ho.bBox(ue.node());ee=Math.max(ee,nc.lineCount(ue)),Z.push({top:0,bottom:10,height:10,left:Yr-Ee.width/2,right:Yr+Ee.width/2+2,width:Ee.width+2})});var ye=(r.tickson==="boundaries"||r.showdividers)&&!t.secondary,fe=l.length,he=Math.abs((l[fe-1].x-l[0].x)*r._m)/(fe-1),ae=ye?he/2:he,Le=ye?r.ticklen:Y*1.25*ee,ce=Math.sqrt(Math.pow(ae,2)+Math.pow(Le,2)),Fe=ae/ce,Re=r.autotickangles.map(function(mr){return mr*Math.PI/180}),ge=Re.find(function(mr){return Math.abs(Math.cos(mr))<=Fe});ge===void 0&&(ge=Re.reduce(function(mr,Yr){return Math.abs(Math.cos(mr))V*U&&(q=U,E[C]=F[C]=z[C])}var W=Math.abs(q-P);W-w>0?(W-=w,w*=1+w/W):w=0,r._id.charAt(0)!=="y"&&(w=-w),E[M]=_.p2r(_.r2p(F[M])+k*w),_.autorange==="min"||_.autorange==="max reversed"?(E[0]=null,_._rangeInitial0=void 0,_._rangeInitial1=void 0):(_.autorange==="max"||_.autorange==="min reversed")&&(E[1]=null,_._rangeInitial0=void 0,_._rangeInitial1=void 0),a._insideTickLabelsUpdaterange[_._name+".range"]=E}var G=Ft.syncOrAsync(b);return G&&G.then&&e._promises.push(G),G};function jde(e,r,t){var a=r._id+"divider",n=t.vals,i=t.layer.selectAll("path."+a).data(n,r3);i.exit().remove(),i.enter().insert("path",":first-child").classed(a,1).classed("crisp",1).call(i1.stroke,r.dividercolor).style("stroke-width",Ho.crispRound(e,r.dividerwidth,1)+"px"),i.attr("transform",t.transFn).attr("d",t.path)}pr.getPxPosition=function(e,r){var t=e._fullLayout._size,a=r._id.charAt(0),n=r.side,i;if(r.anchor!=="free"?i=r._anchorAxis:a==="x"?i={_offset:t.t+(1-(r.position||0))*t.h,_length:0}:a==="y"&&(i={_offset:t.l+(r.position||0)*t.w+r._shift,_length:0}),n==="top"||n==="left")return i._offset;if(n==="bottom"||n==="right")return i._offset+i._length};function JR(e){var r=e.title.font.size,t=(e.title.text.match(nc.BR_TAG_ALL)||[]).length;return e.title.hasOwnProperty("standoff")?r*(oc+t*l1):t?r*(t+1)*l1:r}function $de(e,r){var t=e._fullLayout,a=r._id,n=a.charAt(0),i=r.title.font.size,o,l=(r.title.text.match(nc.BR_TAG_ALL)||[]).length;if(r.title.hasOwnProperty("standoff"))r.side==="bottom"||r.side==="right"?o=r._depth+r.title.standoff+i*oc:(r.side==="top"||r.side==="left")&&(o=r._depth+r.title.standoff+i*(a1+l*l1));else{var s=u1(r);if(r.type==="multicategory")o=r._depth;else{var u=1.5*i;s&&(u=.5*i,r.ticks==="outside"&&(u+=r.ticklen)),o=10+u+(r.linewidth?r.linewidth-1:0)}s||(n==="x"?o+=r.side==="top"?i*(r.showticklabels?1:0):i*(r.showticklabels?1.5:.5):o+=r.side==="right"?i*(r.showticklabels?1:.5):i*(r.showticklabels?.5:0))}var f=pr.getPxPosition(e,r),c,v,d;n==="x"?(v=r._offset+r._length/2,d=r.side==="top"?f-o:f+o):(d=r._offset+r._length/2,v=r.side==="right"?f+o:f-o,c={rotate:"-90",offset:0});var p;if(r.type!=="multicategory"){var m=r._selections[r._id+"tick"];if(p={selection:m,side:r.side},m&&m.node()&&m.node().parentNode){var y=Ho.getTranslate(m.node().parentNode);p.offsetLeft=y.x,p.offsetTop=y.y}r.title.hasOwnProperty("standoff")&&(p.pad=0)}return r._titleStandoff=o,pde.draw(e,a+"title",{propContainer:r,propName:r._name+".title.text",placeholder:t._dfltTitle[n],avoid:p,transform:c,attributes:{x:v,y:d,"text-anchor":"middle"}})}pr.shouldShowZeroLine=function(e,r,t){var a=Ft.simpleMap(r.range,r.r2l);return a[0]*a[1]<=0&&r.zeroline&&(r.type==="linear"||r.type==="-")&&!(r.rangebreaks&&r.maskBreaks(0)===Qg)&&(aP(r,0)||!Kde(e,r,t,a)||Qde(e,r))};pr.clipEnds=function(e,r){return r.filter(function(t){return aP(e,t.x)})};function aP(e,r){var t=e.l2p(r);return t>1&&t1)for(n=1;n=n.min&&e=_de:/%L/.test(r)?e>=xde:/%[SX]/.test(r)?e>=$g:/%M/.test(r)?e>=o1:/%[HI]/.test(r)?e>=Ts:/%p/.test(r)?e>=Sf:/%[Aadejuwx]/.test(r)?e>=ji:/%[UVW]/.test(r)?e>=Uo:/%[Bbm]/.test(r)?e>=jg:/%[q]/.test(r)?e>=Jg:/%[Yy]/.test(r)?e>=Zg:!0}});var sP=B((oFe,lP)=>{"use strict";lP.exports=function(r,t,a){var n,i;if(a){var o=t==="reversed"||t==="min reversed"||t==="max reversed";n=a[o?1:0],i=a[o?0:1]}var l=r("autorangeoptions.minallowed",i===null?n:void 0),s=r("autorangeoptions.maxallowed",n===null?i:void 0);l===void 0&&r("autorangeoptions.clipmin"),s===void 0&&r("autorangeoptions.clipmax"),r("autorangeoptions.include")}});var $7=B((lFe,uP)=>{"use strict";var i2e=sP();uP.exports=function(r,t,a,n){var i=t._template||{},o=t.type||i.type||"-";a("minallowed"),a("maxallowed");var l=a("range");if(!l){var s;!n.noInsiderange&&o!=="log"&&(s=a("insiderange"),s&&(s[0]===null||s[1]===null)&&(t.insiderange=!1,s=void 0),s&&(l=a("range",s)))}var u=t.getAutorangeDflt(l,n),f=a("autorange",u),c;l&&(l[0]===null&&l[1]===null||(l[0]===null||l[1]===null)&&(f==="reversed"||f===!0)||l[0]!==null&&(f==="min"||f==="max reversed")||l[1]!==null&&(f==="max"||f==="min reversed"))&&(l=void 0,delete t.range,t.autorange=!0,c=!0),c||(u=t.getAutorangeDflt(l,n),f=a("autorange",u)),f&&(i2e(a,f,l),(o==="linear"||o==="-")&&a("rangemode")),t.cleanRange()}});var cP=B((sFe,fP)=>{var o2e={left:0,top:0};fP.exports=l2e;function l2e(e,r,t){r=r||e.currentTarget||e.srcElement,Array.isArray(t)||(t=[0,0]);var a=e.clientX||0,n=e.clientY||0,i=s2e(r);return t[0]=a-i.left,t[1]=n-i.top,t}function s2e(e){return e===window||e===document||e===document.body?o2e:e.getBoundingClientRect()}});var K7=B((uFe,vP)=>{"use strict";var u2e=w6();function f2e(){var e=!1;try{var r=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("test",null,r),window.removeEventListener("test",null,r)}catch(t){e=!1}return e}vP.exports=u2e&&f2e()});var dP=B((fFe,hP)=>{"use strict";hP.exports=function(r,t,a,n,i){var o=(r-a)/(n-a),l=o+t/(n-a),s=(o+l)/2;return i==="left"||i==="bottom"?o:i==="center"||i==="middle"?s:i==="right"||i==="top"?l:o<2/3-s?o:l>4/3-s?l:s}});var yP=B((cFe,mP)=>{"use strict";var pP=or(),c2e=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];mP.exports=function(r,t,a,n){return a==="left"?r=0:a==="center"?r=1:a==="right"?r=2:r=pP.constrain(Math.floor(r*3),0,2),n==="bottom"?t=0:n==="middle"?t=1:n==="top"?t=2:t=pP.constrain(Math.floor(t*3),0,2),c2e[t][r]}});var bP=B((vFe,gP)=>{"use strict";var v2e=V2(),h2e=ig(),d2e=z2().getGraphDiv,p2e=(g2(),vr(y2)),Q7=gP.exports={};Q7.wrapped=function(e,r,t){var i;e=d2e(e),e._fullLayout&&h2e.clear(e._fullLayout._uid+p2e.HOVERID);let a=e._hoverdata;Q7.raw(e,r,t)&&e._hoverAnywhereActive&&(e._hoverAnywhereActive=!1,(i=e._fullLayout)!=null&&i.hoveranywhere&&(r!=null&&r.target)&&!a&&e.emit("plotly_unhover",{event:r,points:[]}))};Q7.raw=function(r,t){var a=r._fullLayout,n=r._hoverdata;return t||(t={}),t.target&&!r._dragged&&v2e.triggerHandler(r,"plotly_beforehover",t)===!1?!1:(a._hoverlayer.selectAll("g").remove(),a._hoverlayer.selectAll("line").remove(),a._hoverlayer.selectAll("circle").remove(),r._hoverdata=void 0,t.target&&n&&r.emit("plotly_unhover",{event:t,points:n}),!0)}});var Ul=B((hFe,AP)=>{"use strict";var m2e=cP(),e8=T6(),y2e=K7(),g2e=or().removeElement,b2e=(ni(),vr(ai)),lc=AP.exports={};lc.align=dP();lc.getCursor=yP();var _P=bP();lc.unhover=_P.wrapped;lc.unhoverRaw=_P.raw;lc.init=function(r){var t=r.gd,a=1,n=t._context.doubleClickDelay,i=r.element,o,l,s,u,f,c,v,d;t._mouseDownTime||(t._mouseDownTime=0),i.style.pointerEvents="all",i.onmousedown=y,y2e?(i._ontouchstart&&i.removeEventListener("touchstart",i._ontouchstart),i._ontouchstart=y,i.addEventListener("touchstart",y,{passive:!1})):i.ontouchstart=y;function p(_,x,w){return Math.abs(_)n&&(a=Math.max(a-1,1)),t._dragged)r.doneFn&&r.doneFn();else{var x;c.target===v?x=c:(x={target:v,srcElement:v,toElement:v},Object.keys(c).concat(Object.keys(c.__proto__)).forEach(w=>{var k=c[w];!x[w]&&typeof k!="function"&&(x[w]=k)})),r.clickFn&&r.clickFn(a,x),d||v.dispatchEvent(new MouseEvent("click",_))}t._dragging=!1,t._dragged=!1}};function wP(){var e=document.createElement("div");e.className="dragcover";var r=e.style;return r.position="fixed",r.left=0,r.right=0,r.top=0,r.bottom=0,r.zIndex=999999999,r.background="none",document.body.appendChild(e),e}lc.coverSlip=wP;function xP(e){return m2e(e.changedTouches?e.changedTouches[0]:e,document.body)}});var Cf=B((dFe,TP)=>{"use strict";TP.exports=function(r,t){(r.attr("class")||"").split(" ").forEach(function(a){a.indexOf("cursor-")===0&&r.classed(a,!1)}),t&&r.classed("cursor-"+t,!0)}});var SP=B((pFe,kP)=>{"use strict";var r8=Cf(),f1="data-savedcursor",MP="!!";kP.exports=function(r,t){var a=r.attr(f1);if(t){if(!a){for(var n=(r.attr("class")||"").split(" "),i=0;iS2e,itemGap:()=>k2e,itemHeightPad:()=>D2e,itemMinHeight:()=>C2e,scrollBarColor:()=>w2e,scrollBarEnterAttrs:()=>T2e,scrollBarMargin:()=>A2e,scrollBarMinHeight:()=>_2e,scrollBarWidth:()=>x2e,titlePad:()=>M2e});var x2e,_2e,w2e,A2e,T2e,M2e,k2e,S2e,C2e,D2e,n3=Ja(()=>{"use strict";x2e=6,_2e=20,w2e="#808BA4",A2e=4,T2e={rx:20,ry:3,width:0,height:0},M2e=2,k2e=5,S2e=6,C2e=16,D2e=3});var a8=B((mFe,DP)=>{"use strict";var t8=Di(),L2e=ys(),{dfltFillHeight:CP}=(n3(),vr(a3));DP.exports={_isSubplotObj:!0,visible:{valType:"boolean",dflt:!0,editType:"legend"},bgcolor:{valType:"color",editType:"legend"},bordercolor:{valType:"color",dflt:L2e.defaultLine,editType:"legend"},maxheight:{valType:"number",min:0,editType:"legend"},borderwidth:{valType:"number",min:0,dflt:0,editType:"legend"},font:t8({editType:"legend"}),grouptitlefont:t8({editType:"legend"}),orientation:{valType:"enumerated",values:["v","h"],dflt:"v",editType:"legend"},traceorder:{valType:"flaglist",flags:["reversed","grouped"],extras:["normal"],editType:"legend"},tracegroupgap:{valType:"number",min:0,dflt:10,editType:"legend"},entrywidth:{valType:"number",min:0,editType:"legend"},entrywidthmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels",editType:"legend"},indentation:{valType:"number",min:-15,dflt:0,editType:"legend"},itemsizing:{valType:"enumerated",values:["trace","constant"],dflt:"trace",editType:"legend"},itemwidth:{valType:"number",min:30,dflt:30,editType:"legend"},itemheight:{valType:"number",min:CP,dflt:CP,editType:"legend"},itemclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggle",editType:"legend"},itemdoubleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggleothers",editType:"legend"},groupclick:{valType:"enumerated",values:["toggleitem","togglegroup"],dflt:"togglegroup",editType:"legend"},groupdoubleclick:{valType:"enumerated",values:["toggleitem","togglegroup"],editType:"legend"},titleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],editType:"legend"},titledoubleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],editType:"legend"},x:{valType:"number",editType:"legend"},xref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"legend"},y:{valType:"number",editType:"legend"},yref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],editType:"legend"},uirevision:{valType:"any",editType:"none"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"legend"},title:{text:{valType:"string",dflt:"",editType:"legend"},font:t8({editType:"legend"}),side:{valType:"enumerated",values:["top","left","top left","top center","top right"],editType:"legend"},editType:"legend"},editType:"legend"}});var v1=B(c1=>{"use strict";c1.isGrouped=function(r){return(r.traceorder||"").indexOf("grouped")!==-1};c1.isVertical=function(r){return r.orientation!=="h"};c1.isReversed=function(r){return(r.traceorder||"").indexOf("reversed")!==-1};c1.getId=function(r){return r._id||"legend"}});var i8=B((gFe,LP)=>{"use strict";var i3=Pt(),Go=or(),E2e=Ra(),q2e=Fl(),F2e=a8(),R2e=Uv(),n8=v1();function P2e(e,r,t,a,n){var i=r[e]||{},o=E2e.newContainer(t,e);function l(Z,j){return Go.coerce(i,o,F2e,Z,j)}var s=Go.coerceFont(l,"font",t.font);l("bgcolor",t.paper_bgcolor),l("bordercolor");var u=l("visible");if(!u)return;var f,c=function(Z,j){var ee=f._input,ye=f;return Go.coerce(ee,ye,q2e,Z,j)},v=t.font||{},d=Go.coerceFont(l,"grouptitlefont",v,{overrideDflt:{size:Math.round(v.size*1.1)}}),p=0,m=!1,y="normal",b=(t.shapes||[]).filter(function(Z){return Z.showlegend});function T(Z){return i3.traceIs(Z,"pie-like")&&Z._length!=null&&(Array.isArray(Z.legend)||Array.isArray(Z.showlegend))}a.filter(T).forEach(function(Z){Z.visible&&p++;for(var j=0;jZ.legend.length)for(var ye=Z.legend.length;ye(e==="legend"?1:0));if(k===!1&&(t[e]=void 0),k===!1&&!i.uirevision||(l("uirevision",t.uirevision),k===!1))return;l("borderwidth");var M=l("orientation"),C=l("yref"),E=l("xref"),F=M==="h",P=C==="paper",q=E==="paper",z,I,U,V="left";F?(z=0,i3.getComponentMethod("rangeslider","isVisible")(r.xaxis)?P?(I=1.1,U="bottom"):(I=1,U="top"):P?(I=-.1,U="top"):(I=0,U="bottom")):(I=1,U="auto",q?z=1.02:(z=1,V="right")),Go.coerce(i,o,{x:{valType:"number",editType:"legend",min:q?-2:0,max:q?3:1,dflt:z}},"x"),Go.coerce(i,o,{y:{valType:"number",editType:"legend",min:P?-2:0,max:P?3:1,dflt:I}},"y"),l("traceorder",y),n8.isGrouped(t[e])&&l("tracegroupgap"),l("entrywidth"),l("entrywidthmode"),l("indentation"),l("itemsizing"),l("itemwidth"),l("itemheight"),l("itemclick"),l("itemdoubleclick");let W=l("groupclick");l("groupdoubleclick",W),l("xanchor",V),l("yanchor",U),l("maxheight"),l("valign"),Go.noneOrAll(i,o,["x","y"]);var G=l("title.text");if(G){l("title.side",F?"left":"top");var Y=Go.extendFlat({},s,{size:Go.bigFont(s.size)});Go.coerceFont(l,"title.font",Y);let Z=n>1;l("titleclick",Z?"toggle":!1),l("titledoubleclick",Z?"toggleothers":!1)}}LP.exports=function(r,t,a){var n,i=a.slice(),o=t.shapes;if(o)for(n=0;n{"use strict";var Df=Pt(),o8=or(),N2e=o8.pushUnique,z2e=v1(),EP=!0;l8.handleItemClick=function(r,t,a,n,i){var o=t._fullLayout;if(t._dragged||t._editing)return;var l=r.data()[0][0];if(l.groupTitle&&l.noClick)return;let s=i===2?a.groupdoubleclick:a.groupclick;n==="toggle"&&a.itemdoubleclick==="toggleothers"&&EP&&t.data&&t._context.showTips&&(o8.notifier(o8._(t,"Double-click on legend to isolate one trace"),"long",t),EP=!1);var u=s==="togglegroup",f=o.hiddenlabels?o.hiddenlabels.slice():[],c=t._fullData;let v=(o.shapes||[]).filter(Ve=>Ve.showlegend||Ve.legendgroup);var d=c.concat(v),p=l.trace;p._isShape&&(p=o.shapes[p.index]);var m=p.legendgroup,y,b,T,_,x,w,k={},M=[],C=[],E=[];function F(Ve,ar){var Ie=M.indexOf(Ve),_r=k.visible;return _r||(_r=k.visible=[]),M.indexOf(Ve)===-1&&(M.push(Ve),Ie=M.length-1),_r[Ie]=ar,Ie}var P=(o.shapes||[]).map(function(Ve){return Ve._input}),q=!1;function z(Ve,ar){P[Ve].visible=ar,q=!0}function I(Ve,ar){if(!(l.groupTitle&&!u)){var Ie=Ve._isShape,_r=Ve.index;_r===void 0&&(_r=Ve._index);var Pr=Ve.visible===!1?!1:ar;Ie?z(_r,Pr):F(_r,Pr)}}var U=p.legend;if(!p._isShape&&Df.traceIs(p,"pie-like")){var V=l.label,W=f.indexOf(V);if(n==="toggle")W===-1?f.push(V):f.splice(W,1);else if(n==="toggleothers"){var G=W!==-1,Y=[];for(y=0;yb.showlegend||b.legendgroup),s=i.concat(l);function u(b){return(b.legend||"legend")===o}var f,c;if(a==="toggle")f=!s.some(function(T){return u(T)&&T.visible===!0}),c=!1;else{let b=s.some(function(T){return!u(T)&&T.visible===!0&&T.showlegend!==!1});f=!0,c=!b}let v={visible:[]},d=[],p=(n.shapes||[]).map(function(b){return b._input});for(var m=!1,y=0;y{"use strict";var{isArrayOrTypedArray:u8}=so(),qP=Pt(),f8=v1();FP.exports=function(r,t,a){var n=t._inHover,i=f8.isGrouped(t),o=f8.isReversed(t),l={},s=[],u=!1,f={},c=0,v=0,d,p;function m(Z,j,ee){if(t.visible!==!1&&!(a&&Z!==t._id))if(j===""||!f8.isGrouped(t)){var ye="~~i"+c;s.push(ye),l[ye]=[ee],c++}else s.indexOf(j)===-1?(s.push(j),u=!0,l[j]=[ee]):l[j].push(ee)}for(d=0;dz&&(P=z)}E[d][0]._groupMinRank=P,E[d][0]._preGroupSort=d}var I=function(Z,j){return Z[0]._groupMinRank-j[0]._groupMinRank||Z[0]._preGroupSort-j[0]._preGroupSort},U=function(Z,j){var ee=u8(Z.trace.legendrank)?Z.trace.legendrank[Z.i]:Z.trace.legendrank,ye=u8(j.trace.legendrank)?j.trace.legendrank[j.i]:j.trace.legendrank;return ee-ye||Z._preSort-j._preSort};for(E.forEach(function(Z,j){Z[0]._preGroupSort=j}),E.sort(I),d=0;d{"use strict";var o3=or();function PP(e){return e.indexOf("e")!==-1?e.replace(/[.]?0+e/,"e"):e.indexOf(".")!==-1?e.replace(/[.]?0+$/,""):e}sc.formatPiePercent=function(r,t){var a=PP((r*100).toPrecision(3));return o3.numSeparate(a,t)+"%"};sc.formatPieValue=function(r,t){var a=PP(r.toPrecision(10));return o3.numSeparate(a,t)};sc.getFirstFilled=function(r,t){if(o3.isArrayOrTypedArray(r))for(var a=0;a{"use strict";var B2e=Sa(),I2e=Kt();NP.exports=function(r,t,a,n){var i=a.marker.pattern;i&&i.shape?B2e.pointStyle(r,a,n,t):I2e.fill(r,t.color)}});var HP=B((AFe,OP)=>{"use strict";var BP=Kt(),IP=c8().castOption,O2e=zP();OP.exports=function(r,t,a,n){var i=a.marker.line,o=IP(i.color,t.pts)||BP.defaultLine,l=IP(i.width,t.pts)||0;r.call(O2e,t,a,n).style("stroke-width",l).call(BP.stroke,o)}});var m8=B((TFe,XP)=>{"use strict";var $i=la(),v8=Pt(),Hi=or(),h8=Hi.strTranslate,Yo=Sa(),fl=Kt(),d8=Ol().extractOpts,s3=Ti(),H2e=HP(),U2e=c8().castOption,UP=(n3(),vr(a3)),GP=12,YP=5,uc=2,G2e=10,dh=5;XP.exports=function(r,t,a){var n=t._fullLayout;a||(a=n.legend);var i=a.itemsizing==="constant",o=a.itemwidth,l=a.itemheight,s=(o+UP.itemGap*2)/2,u=h8(s,0),f=function(C,E,F,P){var q;if(C+1)q=C;else if(E&&E.width>0)q=E.width;else return 0;return i?P:Math.min(q,F)};r.each(function(C){var E=$i.select(this),F=Hi.ensureSingle(E,"g","layers");F.style("opacity",C[0].trace.opacity);var P=a.indentation,q=a.valign,z=C[0].lineHeight,I=C[0].height;if(q==="middle"&&P===0||!z||!I)F.attr("transform",null);else{var U={top:1,bottom:-1}[q],V=U*(.5*(z-I+3))||0,W=a.indentation;F.attr("transform",h8(W,V))}var G=F.selectAll("g.legendfill").data([C]);G.enter().append("g").classed("legendfill",!0);var Y=F.selectAll("g.legendlines").data([C]);Y.enter().append("g").classed("legendlines",!0);var Z=F.selectAll("g.legendsymbols").data([C]);Z.enter().append("g").classed("legendsymbols",!0),Z.selectAll("g.legendpoints").data([C]).enter().append("g").classed("legendpoints",!0)}).each(M).each(d).each(m).each(p).each(b).each(w).each(x).each(c).each(v).each(T).each(_);function c(C){var E=VP(C),F=E.showFill,P=E.showLine,q=E.showGradientLine,z=E.showGradientFill,I=E.anyFill,U=E.anyLine,V=C[0],W=V.trace,G,Y,Z=d8(W),j=Z.colorscale,ee=Z.reversescale,ye=function(ge){if(ge.size())if(F)Yo.fillGroupStyle(ge,t,!0);else{var He="legendfill-"+W.uid;Yo.gradient(ge,t,He,p8(ee),j,"fill")}},fe=function(ge){if(ge.size()){var He="legendline-"+W.uid;Yo.lineGroupStyle(ge),Yo.gradient(ge,t,He,p8(ee),j,"stroke")}},he=s3.hasMarkers(W)||!I?"M5,0":U?"M5,-2":"M5,-3",ae=$i.select(this),Le=ae.select(".legendfill").selectAll("path").data(F||z?[C]:[]);Le.enter().append("path").classed("js-fill",!0),Le.exit().remove(),Le.attr("d",he+"h"+o+"v"+l+"h-"+o+"z").call(ye);let ce=F||z?(UP.dfltFillHeight-l)/2:0;if(ae.selectAll("g.legendfill, g.legendlines, g.legendsymbols").attr("transform",ce?h8(0,ce):null),P||q){var Fe=f(void 0,W.line,G2e,YP);Y=Hi.minExtend(W,{line:{width:Fe}}),G=[Hi.minExtend(V,{trace:Y})]}var Re=ae.select(".legendlines").selectAll("path").data(P||q?[G]:[]);Re.enter().append("path").classed("js-line",!0),Re.exit().remove(),Re.attr("d",he+(q?"l"+o+",0.0001":"h"+o)).call(P?Yo.lineGroupStyle:fe)}function v(C){var E=VP(C),F=E.anyFill,P=E.anyLine,q=E.showLine,z=E.showMarker,I=C[0],U=I.trace,V=!z&&!P&&!F&&s3.hasText(U),W,G;function Y(ce,Fe,Re,ge){var He=Hi.nestedProperty(U,ce).get(),ur=Hi.isArrayOrTypedArray(He)&&Fe?Fe(He):He;if(i&&ur&&ge!==void 0&&(ur=ge),Re){if(urRe[1])return Re[1]}return ur}function Z(ce){return I._distinct&&I.index&&ce[I.index]?ce[I.index]:ce[0]}if(z||V||q){var j={},ee={};if(z){j.mc=Y("marker.color",Z);var ye=U.type==="scattermap";j.mx=ye?"circle":Y("marker.symbol",Z),j.mo=Y("marker.opacity",Hi.mean,[.2,1]),j.mlc=Y("marker.line.color",Z),j.mlw=Y("marker.line.width",Hi.mean,[0,5],uc),j.mld=Y("marker.line.dash",Z),ee.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var fe=Y("marker.size",Hi.mean,[2,16],GP);j.ms=fe,ee.marker.size=fe}q&&(ee.line={width:Y("line.width",Z,[0,10],YP)}),V&&(j.tx="Aa",j.tp=Y("textposition",Z),j.ts=10,j.tc=Y("textfont.color",Z),j.tf=Y("textfont.family",Z),j.tw=Y("textfont.weight",Z),j.ty=Y("textfont.style",Z),j.tv=Y("textfont.variant",Z),j.tC=Y("textfont.textcase",Z),j.tE=Y("textfont.lineposition",Z),j.tS=Y("textfont.shadow",Z)),W=[Hi.minExtend(I,j)],G=Hi.minExtend(U,ee),G.selectedpoints=null,G.texttemplate=null}var he=$i.select(this).select("g.legendpoints"),ae=he.selectAll("path.scatterpts").data(z?W:[]);ae.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",u),ae.exit().remove(),ae.call(Yo.pointStyle,G,t),z&&(W[0].mrc=3);var Le=he.selectAll("g.pointtext").data(V?W:[]);Le.enter().append("g").classed("pointtext",!0).append("text").attr("transform",u),Le.exit().remove(),Le.selectAll("text").call(Yo.textPointStyle,G,t)}function d(C){var E=C[0].trace,F=E.type==="waterfall";if(C[0]._distinct&&F){var P=C[0].trace[C[0].dir].marker;return C[0].mc=P.color,C[0].mlw=P.line.width,C[0].mlc=P.line.color,y(C,this,"waterfall")}var q=[];E.visible&&F&&(q=C[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 z=$i.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data(q);z.enter().append("path").classed("legendwaterfall",!0).attr("transform",u).style("stroke-miterlimit",1),z.exit().remove(),z.each(function(I){var U=$i.select(this),V=E[I[0]].marker,W=f(void 0,V.line,dh,uc);U.attr("d",I[1]).style("stroke-width",W+"px").call(fl.fill,V.color),W&&U.call(fl.stroke,V.line.color)})}function p(C){y(C,this)}function m(C){y(C,this,"funnel")}function y(C,E,F){var P=C[0].trace,q=P.marker||{},z=q.line||{},I=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",U=F?P.visible&&P.type===F:v8.traceIs(P,"bar"),V=$i.select(E).select("g.legendpoints").selectAll("path.legend"+F).data(U?[C]:[]);V.enter().append("path").classed("legend"+F,!0).attr("d",I).attr("transform",u),V.exit().remove(),V.each(function(W){var G=$i.select(this),Y=W[0],Z=f(Y.mlw,q.line,dh,uc);G.style("stroke-width",Z+"px");var j=Y.mcc;if(!a._inHover&&"mc"in Y){var ee=d8(q),ye=ee.mid;ye===void 0&&(ye=(ee.max+ee.min)/2),j=Yo.tryColorscale(q,"")(ye)}var fe=j||Y.mc||q.color,he=q.pattern,ae=Yo.getPatternAttr;let Le=0;a._inHover&&Y._distinct&&Y.index!=null&&(Le=Y.index);let ce=he&&(ae(he.shape,Le,"")||ae(he.path,Le,""));if(ce){let Re=ae(he.bgcolor,Le,null),ge=ae(he.fgcolor,Le,null);var Fe=he.fgopacity;let He=a._inHover?l3(ae(he.size,Le,8),8,10):l3(he.size,8,10),ur=a._inHover?l3(ae(he.solidity,Le,.5),.5,1):l3(he.solidity,.5,1),qe=a._inHover?`hover-${P.uid}-${Le}`:`legend-${P.uid}`;G.call(Yo.pattern,"legend",t,qe,ce,He,ur,j,he.fillmode,Re,ge,Fe)}else G.call(fl.fill,fe);Z&&fl.stroke(G,Y.mlc||z.color)})}function b(C){var E=C[0].trace,F=$i.select(this).select("g.legendpoints").selectAll("path.legendbox").data(E.visible&&v8.traceIs(E,"box-violin")?[C]:[]);F.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform",u),F.exit().remove(),F.each(function(){var P=$i.select(this);if((E.boxpoints==="all"||E.points==="all")&&fl.opacity(E.fillcolor)===0&&fl.opacity((E.line||{}).color)===0){var q=Hi.minExtend(E,{marker:{size:i?GP:Hi.constrain(E.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});F.call(Yo.pointStyle,q,t)}else{var z=f(void 0,E.line,dh,uc);P.style("stroke-width",z+"px").call(fl.fill,E.fillcolor),z&&fl.stroke(P,E.line.color)}})}function T(C){var E=C[0].trace,F=$i.select(this).select("g.legendpoints").selectAll("path.legendcandle").data(E.visible&&E.type==="candlestick"?[C,C]:[]);F.enter().append("path").classed("legendcandle",!0).attr("d",function(P,q){return q?"M-15,0H-8M-8,6V-6H8Z":"M15,0H8M8,-6V6H-8Z"}).attr("transform",u).style("stroke-miterlimit",1),F.exit().remove(),F.each(function(P,q){var z=$i.select(this),I=E[q?"increasing":"decreasing"],U=f(void 0,I.line,dh,uc);z.style("stroke-width",U+"px").call(fl.fill,I.fillcolor),U&&fl.stroke(z,I.line.color)})}function _(C){var E=C[0].trace,F=$i.select(this).select("g.legendpoints").selectAll("path.legendohlc").data(E.visible&&E.type==="ohlc"?[C,C]:[]);F.enter().append("path").classed("legendohlc",!0).attr("d",function(P,q){return q?"M-15,0H0M-8,-6V0":"M15,0H0M8,6V0"}).attr("transform",u).style("stroke-miterlimit",1),F.exit().remove(),F.each(function(P,q){var z=$i.select(this),I=E[q?"increasing":"decreasing"],U=f(void 0,I.line,dh,uc);z.style("fill","none").call(Yo.dashLine,I.line.dash,U),U&&fl.stroke(z,I.line.color)})}function x(C){k(C,this,"pie")}function w(C){k(C,this,"funnelarea")}function k(C,E,F){var P=C[0],q=P.trace,z=F?q.visible&&q.type===F:v8.traceIs(q,F),I=$i.select(E).select("g.legendpoints").selectAll("path.legend"+F).data(z?[C]:[]);if(I.enter().append("path").classed("legend"+F,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",u),I.exit().remove(),I.size()){var U=q.marker||{},V=f(U2e(U.line.width,P.pts),U.line,dh,uc),W="pieLike",G=Hi.minExtend(q,{marker:{line:{width:V}}},W),Y=Hi.minExtend(P,{trace:G},W);H2e(I,Y,G,t)}}function M(C){var E=C[0].trace,F,P=[];if(E.visible)switch(E.type){case"histogram2d":case"heatmap":P=[["M-15,-2V4H15V-2Z"]],F=!0;break;case"choropleth":case"choroplethmap":P=[["M-6,-6V6H6V-6Z"]],F=!0;break;case"densitymap":P=[["M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"]],F="radial";break;case"cone":P=[["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"]],F=!1;break;case"streamtube":P=[["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"]],F=!1;break;case"surface":P=[["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"]],F=!0;break;case"mesh3d":P=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],F=!1;break;case"volume":P=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],F=!0;break;case"isosurface":P=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6 A12,24 0 0,0 6,-6 L0,6Z"]],F=!1;break}var q=$i.select(this).select("g.legendpoints").selectAll("path.legend3dandfriends").data(P);q.enter().append("path").classed("legend3dandfriends",!0).attr("transform",u).style("stroke-miterlimit",1),q.exit().remove(),q.each(function(z,I){var U=$i.select(this),V=d8(E),W=V.colorscale,G=V.reversescale,Y=function(ye){if(ye.size()){var fe="legendfill-"+E.uid;Yo.gradient(ye,t,fe,p8(G,F==="radial"),W,"fill")}},Z;if(W){if(!F){var ee=W.length;Z=I===0?W[G?ee-1:0][1]:I===1?W[G?0:ee-1][1]:W[Math.floor((ee-1)/2)][1]}}else{var j=E.vertexcolor||E.facecolor||E.color;Z=Hi.isArrayOrTypedArray(j)?j[I]||j[0]:j}U.attr("d",z[0]),Z?U.call(fl.fill,Z):U.call(Y)})}};function p8(e,r){var t=r?"radial":"horizontal";return t+(e?"":"reversed")}function VP(e){var r=e[0].trace,t=r.contours,a=s3.hasLines(r)||r.visible&&r.type==="quiver",n=s3.hasMarkers(r),i=r.visible&&r.fill&&r.fill!=="none",o=!1,l=!1;if(t){var s=t.coloring;s==="lines"?o=!0:a=s==="none"||s==="heatmap"||t.showlines,t.type==="constraint"?i=t._operation!=="=":(s==="fill"||s==="heatmap")&&(l=!0)}return{showMarker:n,showLine:a,showFill:i,showGradientLine:o,showGradientFill:l,anyLine:a||o,anyFill:i||l}}function l3(e,r,t){return e&&Hi.isArrayOrTypedArray(e)?r:e>t?t:e}});var x8=B((MFe,rN)=>{"use strict";var Ki=la(),Bn=or(),g8=di(),fc=Pt(),c3=V2(),y8=Ul(),In=Sa(),h1=Kt(),hu=Ei(),WP=s8().handleItemClick,ZP=s8().handleTitleClick,dn=(n3(),vr(a3)),b8=(Oi(),vr(Ii)),QP=b8.LINE_SPACING,mh=b8.FROM_TL,JP=b8.FROM_BR,jP=RP(),Y2e=m8(),yh=v1(),ph=1,V2e=/^legend[0-9]*$/;rN.exports=function(r,t){if(t)$P(r,t);else{var a=r._fullLayout,n=a._legends,i=a._infolayer.selectAll('[class^="legend"]');i.each(function(){var u=Ki.select(this),f=u.attr("class"),c=f.split(" ")[0];c.match(V2e)&&n.indexOf(c)===-1&&u.remove()});for(var o=0;o1)}var p=a.hiddenlabels||[];if(!l&&(!a.showlegend||!s.length))return o.selectAll("."+n).remove(),a._topdefs.select("#"+i).remove(),g8.autoMargin(e,n);var m=Bn.ensureSingle(o,"g",n,function(C){l||C.attr("pointer-events","all")}),y=Bn.ensureSingleById(a._topdefs,"clipPath",i,function(C){C.append("rect")}),b=Bn.ensureSingle(m,"rect","bg",function(C){C.attr("shape-rendering","crispEdges")});b.call(h1.stroke,t.bordercolor).call(h1.fill,t.bgcolor).style("stroke-width",t.borderwidth+"px");var T=Bn.ensureSingle(m,"g","scrollbox"),_=t.title;t._titleWidth=0,t._titleHeight=0;var x;_.text?(x=Bn.ensureSingle(T,"text",n+"titletext"),x.attr("text-anchor","start").call(In.font,_.font).text(_.text),f3(x,T,e,t,ph),!l&&(t.titleclick||t.titledoubleclick)&&J2e(T,e,t,n)):(T.selectAll("."+n+"titletext").remove(),T.selectAll("."+n+"titletoggle").remove());var w=Bn.ensureSingle(m,"rect","scrollbar",function(C){C.attr(dn.scrollBarEnterAttrs).call(h1.fill,dn.scrollBarColor)}),k=T.selectAll("g.groups").data(s);k.enter().append("g").attr("class","groups"),k.exit().remove();var M=k.selectAll("g.traces").data(Bn.identity);M.enter().append("g").attr("class","traces"),M.exit().remove(),M.style("opacity",function(C){let E=C[0],F=E.trace;if(E.groupTitle){let P=F.legendgroup,q=(a.shapes||[]).filter(function(I){return I.showlegend});return e._fullData.concat(q).some(function(I){return I.legendgroup===P&&(I.legend||"legend")===n&&I.visible===!0})?1:.5}return fc.traceIs(F,"pie-like")?p.indexOf(C[0].label)!==-1?.5:1:F.visible==="legendonly"?.5:1}).each(function(){Ki.select(this).call(W2e,e,t)}).call(Y2e,e,t).each(function(C){l||C[0].groupTitle&&t.groupclick==="toggleitem"||Ki.select(this).call(Z2e,e,n)}),Bn.syncOrAsync([g8.previousPromises,function(){return K2e(e,k,M,t,T)},function(){var C=a._size,E=t.borderwidth,F=t.xref==="paper",P=t.yref==="paper";if(_.text){let Ue=(a.shapes||[]).filter(function(We){return We.showlegend}),Ye=e._fullData.concat(Ue).some(function(We){let Ve=We.legend||"legend";var ar=Array.isArray(Ve)?Ve.includes(n):Ve===n;return ar&&We.visible===!0});x.style("opacity",Ye?1:.5)}if(!l){var q,z;F?q=C.l+C.w*t.x-mh[v3(t)]*t._width:q=a.width*t.x-mh[v3(t)]*t._width,P?z=C.t+C.h*(1-t.y)-mh[h3(t)]*t._effHeight:z=a.height*(1-t.y)-mh[h3(t)]*t._effHeight;var I=Q2e(e,n,q,z);if(I)return;if(a.margin.autoexpand){var U=q,V=z;q=F?Bn.constrain(q,0,a.width-t._width):U,z=P?Bn.constrain(z,0,a.height-t._effHeight):V,q!==U&&Bn.log("Constrain "+n+".x to make legend fit inside graph"),z!==V&&Bn.log("Constrain "+n+".y to make legend fit inside graph")}In.setTranslate(m,q,z)}if(w.on(".drag",null),m.on("wheel",null),l||t._height<=t._maxHeight||e._context.staticPlot){var W=t._effHeight;l&&(W=t._height),b.attr({width:t._width-E,height:W-E,x:E/2,y:E/2}),In.setTranslate(T,0,0),y.select("rect").attr({width:t._width-2*E,height:W-2*E,x:E,y:E}),In.setClipUrl(T,i,e),In.setRect(w,0,0,0,0),delete t._scrollY}else{var G=Math.max(dn.scrollBarMinHeight,t._effHeight*t._effHeight/t._height),Y=t._effHeight-G-2*dn.scrollBarMargin,Z=t._height-t._effHeight,j=Y/Z,ee=Math.min(t._scrollY||0,Z);b.attr({width:t._width-2*E+dn.scrollBarWidth+dn.scrollBarMargin,height:t._effHeight-E,x:E/2,y:E/2}),y.select("rect").attr({width:t._width-2*E+dn.scrollBarWidth+dn.scrollBarMargin,height:t._effHeight-2*E,x:E,y:E+ee}),In.setClipUrl(T,i,e),Re(ee,G,j),m.on("wheel",function(){ee=Bn.constrain(t._scrollY+Ki.event.deltaY/Z*Y,0,Z),Re(ee,G,j),ee!==0&&ee!==Z&&Ki.event.preventDefault()});var ye,fe,he,ae=function(Ue,Ye,We){var Ve=(We-Ye)/j+Ue;return Bn.constrain(Ve,0,Z)},Le=function(Ue,Ye,We){var Ve=(Ye-We)/j+Ue;return Bn.constrain(Ve,0,Z)},ce=Ki.behavior.drag().on("dragstart",function(){var Ue=Ki.event.sourceEvent;Ue.type==="touchstart"?ye=Ue.changedTouches[0].clientY:ye=Ue.clientY,he=ee}).on("drag",function(){var Ue=Ki.event.sourceEvent;Ue.buttons===2||Ue.ctrlKey||(Ue.type==="touchmove"?fe=Ue.changedTouches[0].clientY:fe=Ue.clientY,ee=ae(he,ye,fe),Re(ee,G,j))});w.call(ce);var Fe=Ki.behavior.drag().on("dragstart",function(){var Ue=Ki.event.sourceEvent;Ue.type==="touchstart"&&(ye=Ue.changedTouches[0].clientY,he=ee)}).on("drag",function(){var Ue=Ki.event.sourceEvent;Ue.type==="touchmove"&&(fe=Ue.changedTouches[0].clientY,ee=Le(he,ye,fe),Re(ee,G,j))});T.call(Fe)}function Re(Ue,Ye,We){t._scrollY=e._fullLayout[n]._scrollY=Ue,In.setTranslate(T,0,-Ue),In.setRect(w,t._width,dn.scrollBarMargin+Ue*We,dn.scrollBarWidth,Ye),y.select("rect").attr("y",E+Ue)}if(e._context.edits.legendPosition){var ge,He,ur,qe;m.classed("cursor-move",!0),y8.init({element:m.node(),gd:e,prepFn:function(Ue){if(Ue.target!==w.node()){var Ye=In.getTranslate(m);ur=Ye.x,qe=Ye.y}},moveFn:function(Ue,Ye){if(ur!==void 0&&qe!==void 0){var We=ur+Ue,Ve=qe+Ye;In.setTranslate(m,We,Ve),ge=y8.align(We,t._width,C.l,C.l+C.w,t.xanchor),He=y8.align(Ve+t._height,-t._height,C.t+C.h,C.t,t.yanchor)}},doneFn:function(){if(ge!==void 0&&He!==void 0){var Ue={};Ue[n+".x"]=ge,Ue[n+".y"]=He,fc.call("_guiRelayout",e,Ue)}},clickFn:function(Ue,Ye){var We=o.selectAll("g.traces").filter(function(){var Ve=this.getBoundingClientRect();return Ye.clientX>=Ve.left&&Ye.clientX<=Ve.right&&Ye.clientY>=Ve.top&&Ye.clientY<=Ve.bottom});We.size()>0&&eN(e,t,We,Ue,Ye)}})}}],e)}}function u3(e,r,t){var a=e[0],n=a.width,i=r.entrywidthmode,o=a.trace.legendwidth||r.entrywidth;return i==="fraction"?r._maxWidth*o:t+(o||n)}function eN(e,r,t,a,n){var i=e._fullLayout,o=t.data()[0][0].trace,l=r.itemclick,s=r.itemdoubleclick,u={event:n,node:t.node(),curveNumber:o.index,expandedIndex:o.index,data:e.data,layout:e.layout,frames:e._transitionData._frames,config:e._context,fullData:e._fullData,fullLayout:i};o._group&&(u.group=o._group),fc.traceIs(o,"pie-like")&&(u.label=t.datum()[0].label);var f=c3.triggerHandler(e,"plotly_legendclick",u);if(a===1){if(f===!1)return;r._clickTimeout=setTimeout(function(){e._fullLayout&&l&&WP(t,e,r,l,a)},e._context.doubleClickDelay)}else if(a===2){r._clickTimeout&&clearTimeout(r._clickTimeout),e._legendMouseDownTime=0;var c=c3.triggerHandler(e,"plotly_legenddoubleclick",u);c!==!1&&f!==!1&&s&&WP(t,e,r,s,a)}}function W2e(e,r,t){var a=yh.getId(t),n=e.data()[0][0],i=n.trace,o=fc.traceIs(i,"pie-like"),l=!t._inHover&&r._context.edits.legendText&&!o,s=t._maxNameLength,u,f;n.groupTitle?(u=n.groupTitle.text,f=n.groupTitle.font):(f=t.font,t.entries?u=n.text:(u=o?n.label:i.name,i._meta&&(u=Bn.templateString(u,i._meta))));var c=Bn.ensureSingle(e,"text",a+"text");c.attr("text-anchor","start").call(In.font,f).text(l?KP(u,s):u);var v=t.indentation+t.itemwidth+dn.itemGap*2;hu.positionText(c,v,0),l?c.call(hu.makeEditable,{gd:r,text:u}).call(f3,e,r,t).on("edit",function(d){this.text(KP(d,s)).call(f3,e,r,t);var p={};return p.name=d,n.trace._isShape?fc.call("_guiRelayout",r,"shapes["+i.index+"].name",p.name):fc.call("_guiRestyle",r,p,i.index)}):f3(c,e,r,t)}function KP(e,r){var t=Math.max(4,r);if(e&&e.trim().length>=t/2)return e;e=e||"";for(var a=t-e.length;a>0;a--)e+=" ";return e}function Z2e(e,r,t){var a=r._context.doubleClickDelay,n,i=1,o=Bn.ensureSingle(e,"rect",t+"toggle",function(l){r._context.staticPlot||l.style("cursor","pointer").attr("pointer-events","all"),l.call(h1.fill,"rgba(0,0,0,0)")});r._context.staticPlot||(o.on("mousedown",function(){n=new Date().getTime(),n-r._legendMouseDownTimea&&(i=Math.max(i-1,1)),eN(r,l,e,i,Ki.event)}}))}function J2e(e,r,t,a){if(r._fullData.some(function(u){let f=u.legend||"legend";return(Array.isArray(f)?f.includes(a):f===a)&&fc.traceIs(u,"pie-like")}))return;let i=r._context.doubleClickDelay;var o,l=1;let s=Bn.ensureSingle(e,"rect",a+"titletoggle",function(u){r._context.staticPlot||u.style("cursor","pointer").attr("pointer-events","all"),u.call(h1.fill,"rgba(0,0,0,0)")});r._context.staticPlot||(s.on("mousedown",function(){o=new Date().getTime(),o-r._legendMouseDownTimei&&(l=Math.max(l-1,1));let u={event:Ki.event,legendId:a,data:r.data,layout:r.layout,fullData:r._fullData,fullLayout:r._fullLayout};if(l===1&&t.titleclick){if(c3.triggerHandler(r,"plotly_legendtitleclick",u)===!1)return;t._titleClickTimeout=setTimeout(function(){r._fullLayout&&ZP(r,t,t.titleclick)},i)}else l===2&&(t._titleClickTimeout&&clearTimeout(t._titleClickTimeout),r._legendMouseDownTime=0,c3.triggerHandler(r,"plotly_legendtitledoubleclick",u)!==!1&&t.titledoubleclick&&ZP(r,t,t.titledoubleclick))}))}function f3(e,r,t,a,n){a._inHover&&e.attr("data-notex",hu.isPureTex(e.text())?null:!0),hu.convertToTspans(e,t,function(){j2e(r,t,a,n)})}function j2e(e,r,t,a){var n=e.data()[0][0],i=n&&n.trace.showlegend;if(Array.isArray(i)&&(i=i[n.i]!==!1),!t._inHover&&n&&!i){e.remove();return}var o=e.select("g[class*=math-group]"),l=o.node(),s=yh.getId(t);t||(t=r._fullLayout[s]);var u=t.borderwidth,f;a===ph?f=t.title.font:n.groupTitle?f=n.groupTitle.font:f=t.font;var c=f.size*QP,v,d;if(l){var p=In.bBox(l);v=p.height,d=p.width,a===ph?In.setTranslate(o,u,u+v*.75):In.setTranslate(o,0,v*.25)}else{var m="."+s+(a===ph?"title":"")+"text",y=e.select(m),b=hu.lineCount(y),T=y.node();if(v=c*b,d=T?In.bBox(T).width:0,a===ph)t.title.side==="left"&&(d+=dn.itemGap*2),hu.positionText(y,u+dn.titlePad,u+c);else{var _=dn.itemGap*2+t.indentation+t.itemwidth;n.groupTitle&&(_=dn.itemGap,d-=t.indentation+t.itemwidth),hu.positionText(y,_,-c*((b-1)/2-.3))}}if(a===ph)t._titleWidth=d,t._titleHeight=v;else{n.lineHeight=c;let x=dn.itemMinHeight+t.itemheight-dn.dfltFillHeight;n.height=Math.max(v,dn.itemMinHeight,x)+dn.itemHeightPad,n.width=d}}function $2e(e){var r=0,t=0,a=e.title.side;return a&&(a.indexOf("left")!==-1&&(r=e._titleWidth),a.indexOf("top")!==-1&&(t=e._titleHeight)),[r,t]}function K2e(e,r,t,a,n){var i=e._fullLayout,o=yh.getId(a);a||(a=i[o]);var l=i._size,s=yh.isVertical(a),u=yh.isGrouped(a),f=a.entrywidthmode==="fraction",c=a.borderwidth,v=2*c,d=dn.itemGap,p=a.indentation+a.itemwidth+d*2,m=2*(c+d),y=h3(a),b=a.y<0||a.y===0&&y==="top",T=a.y>1||a.y===1&&y==="bottom",_=a.tracegroupgap,x={};let{orientation:w,yref:k}=a,{maxheight:M}=a,C=b||T||w!=="v"||k!=="paper";M||(M=C?.5:1);let E=C?i.height:l.h;a._maxHeight=Math.max(M>1?M:M*E,30);var F=0;a._width=0,a._height=0;var P=$2e(a);if(s)t.each(function(Ue){var Ye=Ue[0].height;In.setTranslate(this,c+P[0],c+P[1]+a._height+Ye/2+d),a._height+=Ye,a._width=Math.max(a._width,Ue[0].width)}),F=p+a._width,a._width+=d+p+v,a._height+=m,u&&(r.each(function(Ue,Ye){In.setTranslate(this,0,Ye*a.tracegroupgap)}),a._height+=(a._lgroupsLength-1)*a.tracegroupgap);else{var q=v3(a),z=a.x<0||a.x===0&&q==="right",I=a.x>1||a.x===1&&q==="left",U=T||b,V=i.width/2;a._maxWidth=Math.max(z?U&&q==="left"?l.l+l.w:V:I?U&&q==="right"?l.r+l.w:V:l.w,2*p);var W=0,G=0;t.each(function(Ue){var Ye=u3(Ue,a,p);W=Math.max(W,Ye),G+=Ye}),F=null;var Y=0;if(u){var Z=0,j=0,ee=0;r.each(function(){var Ue=0,Ye=0;Ki.select(this).selectAll("g.traces").each(function(Ve){var ar=u3(Ve,a,p),Ie=Ve[0].height;In.setTranslate(this,P[0],P[1]+c+d+Ie/2+Ye),Ye+=Ie,Ue=Math.max(Ue,ar),x[Ve[0].trace.legendgroup]=Ue});var We=Ue+d;j>0&&We+c+j>a._maxWidth?(Y=Math.max(Y,j),j=0,ee+=Z+_,Z=Ye):Z=Math.max(Z,Ye),In.setTranslate(this,j,ee),j+=We}),a._width=Math.max(Y,j)+c,a._height=ee+Z+m}else{var ye=t.size(),fe=G+v+(ye-1)*d=a._maxWidth&&(Y=Math.max(Y,ce),ae=0,Le+=he,a._height+=he,he=0),In.setTranslate(this,P[0]+c+ae,P[1]+c+Le+Ye/2+d),ce=ae+We+d,ae+=Ve,he=Math.max(he,Ye)}),fe?(a._width=ae+v,a._height=he+m):(a._width=Math.max(Y,ce)+v,a._height+=he+m)}}a._width=Math.ceil(Math.max(a._width+P[0],a._titleWidth+2*(c+dn.titlePad))),a._height=Math.ceil(Math.max(a._height+P[1],a._titleHeight+2*(c+dn.itemGap))),a._effHeight=Math.min(a._height,a._maxHeight);var Fe=e._context.edits,Re=Fe.legendText||Fe.legendPosition;if(t.each(function(Ue){var Ye=Ki.select(this).select("."+o+"toggle"),We=Ue[0].height,Ve=Ue[0].trace.legendgroup,ar=u3(Ue,a,p);u&&Ve!==""&&(ar=x[Ve]);var Ie=Re?p:F||ar;!s&&!f&&(Ie+=d/2),In.setRect(Ye,0,-We/2,Ie,We)}),a._inHover){let Ue=a._width-v-d-P[0];t.each(function(Ye){Ye[0].textAlign==="right"&&Ki.select(this).select("."+o+"text").attr("text-anchor","end").call(hu.positionText,Ue)})}var ge=n.select("."+o+"titletext");ge.node()&&X2e(ge,a,c);var He=n.select("."+o+"titletoggle");if(He.size()&&ge.node()){var ur=ge.attr("x")||0,qe=dn.titlePad;In.setRect(He,ur-qe,c,a._titleWidth+2*qe,a._titleHeight+2*qe)}}function Q2e(e,r,t,a){var n=e._fullLayout,i=n[r],o=v3(i),l=h3(i),s=i.xref==="paper",u=i.yref==="paper";e._fullLayout._reservedMargin[r]={};var f=i.y<.5?"b":"t",c=i.x<.5?"l":"r",v={r:n.width-t,l:t+i._width,b:n.height-a,t:a+i._effHeight};if(s&&u)return g8.autoMargin(e,r,{x:i.x,y:i.y,l:i._width*mh[o],r:i._width*JP[o],b:i._effHeight*JP[l],t:i._effHeight*mh[l]});s?e._fullLayout._reservedMargin[r][f]=v[f]:u||i.orientation==="v"?e._fullLayout._reservedMargin[r][c]=v[c]:e._fullLayout._reservedMargin[r][f]=v[f]}function v3(e){return Bn.isRightAnchor(e)?"right":Bn.isCenterAnchor(e)?"center":"left"}function h3(e){return Bn.isBottomAnchor(e)?"bottom":Bn.isMiddleAnchor(e)?"middle":"top"}});var M8=B(T8=>{"use strict";var pu=la(),du=da(),pn=or(),e1e=pn.pushUnique,_8=pn.strTranslate,r1e=pn.strRotate,t1e=V2(),nn=Ei(),a1e=SP(),ks=Sa(),Zn=Kt(),d3=Ul(),Ss=en(),n1e=(ni(),vr(ai)).zindexSeparator,cc=Pt(),Vo=xs(),vc=(g2(),vr(y2)),i1e=i8(),o1e=x8(),fN=vc.YANGLE,A8=Math.PI*fN/180,l1e=1/Math.sin(A8),s1e=Math.cos(A8),u1e=Math.sin(A8),rn=vc.HOVERARROWSIZE,ia=vc.HOVERTEXTPAD,tN={box:!0,ohlc:!0,violin:!0,candlestick:!0},f1e={scatter:!0,scattergl:!0,splom:!0};function aN(e,r){return e.distance-r.distance}T8.hover=function(r,t,a,n){r=pn.getGraphDiv(r);var i=t.target;pn.throttle(r._fullLayout._uid+vc.HOVERID,vc.HOVERMINTIME,function(){v1e(r,t,a,n,i)})};T8.loneHover=function(r,t){var a=!0;Array.isArray(r)||(a=!1,r=[r]);var n=t.gd,i=dN(n),o=pN(n),l=r.map(function(p){var m=p._x0||p.x0||p.x||0,y=p._x1||p.x1||p.x||0,b=p._y0||p.y0||p.y||0,T=p._y1||p.y1||p.y||0,_=p.eventData;if(_){var x=Math.min(m,y),w=Math.max(m,y),k=Math.min(b,T),M=Math.max(b,T),C=p.trace;if(cc.traceIs(C,"gl3d")){var E=n._fullLayout[C.scene]._scene.container,F=E.offsetLeft,P=E.offsetTop;x+=F,w+=F,k+=P,M+=P}_.bbox={x0:x+o,x1:w+o,y0:k+i,y1:M+i},_.xPixel=(m+y)/2,_.yPixel=(b+T)/2,t.inOut_bbox&&t.inOut_bbox.push(_.bbox)}else _=!1;return{color:p.color||Zn.defaultLine,x0:p.x0||p.x||0,x1:p.x1||p.x||0,y0:p.y0||p.y||0,y1:p.y1||p.y||0,xLabel:p.xLabel,yLabel:p.yLabel,zLabel:p.zLabel,text:p.text,name:p.name,idealAlign:p.idealAlign,borderColor:p.borderColor,fontFamily:p.fontFamily,fontSize:p.fontSize,fontColor:p.fontColor,fontWeight:p.fontWeight,fontStyle:p.fontStyle,fontVariant:p.fontVariant,nameLength:p.nameLength,textAlign:p.textAlign,trace:p.trace||{index:0,hoverinfo:""},xa:{_offset:0},ya:{_offset:0},index:0,hovertemplate:p.hovertemplate||!1,hovertemplateLabels:p.hovertemplateLabels||!1,eventData:_}}),s=!1,u=vN(l,{gd:n,hovermode:"closest",rotateLabels:s,bgColor:t.bgColor||Zn.background,container:pu.select(t.container),outerContainer:t.outerContainer||t.container}),f=u.hoverLabels;function c(){var p=5,m=0,y=0;f.sort(function(b,T){return b.y0-T.y0}).each(function(b,T){var _=b.y0-b.by/2;_-pC[0]._length||Ye<0||Ye>E[0]._length)return d3.unhoverRaw(e,r)}if(r.pointerX=Ue+C[0]._offset,r.pointerY=Ye+E[0]._offset,"xval"in r?W=Vo.flat(i,r.xval):W=Vo.p2c(C,Ue),"yval"in r?G=Vo.flat(i,r.yval):G=Vo.p2c(E,Ye),e._hoverPointerX=r.pointerX,e._hoverPointerY=r.pointerY,!du(W[0])||!du(G[0]))return pn.warn("Fx.hover failed",r,e),d3.unhoverRaw(e,r)}l.clickanywhere&&(e._hoverXVals=W,e._hoverYVals=G,e._hoverXAxes=C,e._hoverYAxes=E);var ar=1/0;function Ie(Ir,ca){for(Z=0;ZFe&&(U.splice(0,Fe),ar=U[0].distance),cc.traceIs(ee,"ternary")&&I!==0){let Mn=ce.subplot;if(["aaxis","baxis","caxis"].some($n=>Mn[$n].showspikes&&Mn[$n].spikesnap!=="hovered data")){let $n=Aa==null?void 0:Aa[0];if(!Number.isFinite($n==null?void 0:$n.spikeDistance)){let Ro=pn.extendFlat({},ce,{distance:I,index:!1}),Kn=ee._module.hoverPoints(Ro,ae,Le,"closest");$n=Kn&&Kn[0]}let ns=ge[ye];$n&&$n.index!==void 0&&$n.index!==!1&&$n.spikeDistance<=I&&(!ns||$n.spikeDistanceDa.spikeDistance)&&(Re.vLinePoint=Da))}var Qo=ba.filter(function(Mn){return Mn.ya.showspikes&&Mn.ya.spikesnap!=="hovered data"});if(Qo.length){var co=Qo[0];du(co.x0)&&du(co.y0)&&(Da=Br(co),(!Re.hLinePoint||Re.hLinePoint.spikeDistance>Da.spikeDistance)&&(Re.hLinePoint=Da))}}}}}Ie();function _r(){if(l._hoverlayer.selectAll(".ternary-spikes").remove(),I!==0)for(let Ir=0;Irza.trace.subplot===ca&&za.index!==void 0&&za.index!==!1&&za.spikeDistance<=I);Zt.drawSpikelines(Aa,ge[ca],W&&W[Ir],G&&G[Ir])}}}function Pr(Ir,ca,Zt){for(var Aa=null,za=1/0,Vn,ba=0;baIr.trace.index===fr.trace.index):U=[fr];var kr=U.length,qr=uN("x",fr,l),$r=uN("y",fr,l);Ie(qr,$r);var tt=[],Ge={},Mr=0,rr=function(Ir){var ca=tN[Ir.trace.type]?cN(Ir):Ir.trace.index;if(!Ge[ca])Mr++,Ge[ca]=Mr,tt.push(Ir);else{var Zt=Ge[ca]-1,Aa=tt[Zt];Zt>0&&Math.abs(Ir.distance)kr-1;Rr--)rr(U[Rr]);U=tt,ue()}var at=e._hoverdata,nt=[],lt=dN(e),le=pN(e);for(let Ir of U){var Te=Vo.makeEventData(Ir,Ir.trace,Ir.cd);if(Ir.hovertemplate!==!1){var tr=!1;Ir.cd[Ir.index]&&Ir.cd[Ir.index].ht&&(tr=Ir.cd[Ir.index].ht),Ir.hovertemplate=tr||Ir.trace.hovertemplate||!1}if(Ir.xa&&Ir.ya){var hr=Ir.x0+Ir.xa._offset,ra=Ir.x1+Ir.xa._offset,Ca=Ir.y0+Ir.ya._offset,Ha=Ir.y1+Ir.ya._offset,an=Math.min(hr,ra),yn=Math.max(hr,ra),sn=Math.min(Ca,Ha),Yn=Math.max(Ca,Ha);Te.bbox={x0:an+le,x1:yn+le,y0:sn+lt,y1:Yn+lt},Te.xPixel=(hr+ra)/2,Te.yPixel=(Ca+Ha)/2}Ir.eventData=[Te],nt.push(Te)}e._hoverdata=nt;var qa=d==="y"&&(V.length>1||U.length>1)||d==="closest"&&He&&U.length>1,un=Zn.combine(l.plot_bgcolor||Zn.background,l.paper_bgcolor),fn=vN(U,{gd:e,hovermode:d,rotateLabels:qa,bgColor:un,container:l._hoverlayer,outerContainer:l._paper.node(),commonLabelOpts:l.hoverlabel,hoverdistance:l.hoverdistance}),gn=fn.hoverLabels;if(Vo.isUnifiedHover(d)||(iN(gn,qa,l,fn.commonLabelBoundingBox),m3(gn,qa,l._invScaleX,l._invScaleY),fn.mathjaxPromise&&fn.mathjaxPromise.then(function(){e._hoverdata===nt&&(iN(gn,qa,l,fn.commonLabelBoundingBox),m3(gn,qa,l._invScaleX,l._invScaleY),gn.each(function(){var Ir=pu.select(this);nn.repositionMathGroup(Ir.select("text.nums")),nn.repositionMathGroup(Ir.select("text.name"))}))})),n&&n.tagName){var si=cc.getComponentMethod("annotations","hasClickToShow")(e,nt);a1e(pu.select(n),si?"pointer":"")}var bn=m1e(e,r,at);if(!n||a||!bn&&!l.hoveranywhere)return;at&&bn&&e.emit("plotly_unhover",{event:r,points:at}),Dn(e._hoverdata);function Dn(Ir){e.emit("plotly_hover",{event:r,points:Ir,xaxes:C,yaxes:E,xvals:Vo.c2dApply(C,W),yvals:Vo.c2dApply(E,G),xPixel:r.pointerX,yPixel:r.pointerY})}}function cN(e){return[e.trace.index,e.index,e.x0,e.y0,e.name,e.attr,e.xa?e.xa._id:"",e.ya?e.ya._id:""].join(",")}var h1e=/([\s\S]*)<\/extra>/;function w8(e,r){return p3(e,nn.getMathOrTextNode(r))}function vN(e,r){var t=r.gd,a=t._fullLayout,n=r.hovermode,i=r.rotateLabels,o=r.bgColor,l=r.container,s=r.outerContainer,u=r.commonLabelOpts||{};if(e.length===0)return[[]];var f=[],c=r.fontFamily||vc.HOVERFONT,v=r.fontSize||vc.HOVERFONTSIZE,d=r.fontWeight||a.font.weight,p=r.fontStyle||a.font.style,m=r.fontVariant||a.font.variant,y=r.fontTextcase||a.font.textcase,b=r.fontLineposition||a.font.lineposition,T=r.fontShadow||a.font.shadow,_=e[0],x=_.xa,w=_.ya,k=n.charAt(0),M=k+"Label",C=_[M];if(C===void 0&&x.type==="multicategory")for(var E=0;Ea.width-lt&&(le=a.width-lt),Ce.attr("d","M"+(Rr-le)+",0L"+(Rr-le+rn)+","+nt+rn+"H"+lt+"v"+nt+(ia*2+rr.height)+"H"+-lt+"V"+nt+rn+"H"+(Rr-le-rn)+"Z"),Rr=le,Z.minX=Rr-lt,Z.maxX=Rr+lt,x.side==="top"?(Z.minY=at-(ia*2+rr.height),Z.maxY=at-ia):(Z.minY=at+ia,Z.maxY=at+(ia*2+rr.height))}else{var Te,tr,hr;w.side==="right"?(Te="start",tr=1,hr="",Rr=x._offset+x._length):(Te="end",tr=-1,hr="-",Rr=x._offset),at=w._offset+(_.y0+_.y1)/2,lr.attr("text-anchor",Te),Ce.attr("d","M0,0L"+hr+rn+","+rn+"V"+(ia+rr.height/2)+"h"+hr+(ia*2+rr.width)+"V-"+(ia+rr.height/2)+"H"+hr+rn+"V-"+rn+"Z"),Z.minY=at-(ia+rr.height/2),Z.maxY=at+(ia+rr.height/2),w.side==="right"?(Z.minX=Rr+rn,Z.maxX=Rr+rn+(ia*2+rr.width)):(Z.minX=Rr-rn-(ia*2+rr.width),Z.maxX=Rr-rn);var ra=rr.height/2,Ca=P-rr.top-ra,Ha="clip"+a._uid+"commonlabel"+w._id,an;if(RrCe.hoverinfo!=="none");if(pe.length===0)return[];var j=a.hoverlabel,ee=j.font,ye=pe[0],fe=((n==="x unified"?ye.xa:ye.ya).unifiedhovertitle||{}).text,he=fe?pn.hovertemplateString({data:n==="x unified"?[{xa:ye.xa,x:ye.xVal}]:[{ya:ye.ya,y:ye.yVal}],fallback:ye.trace.hovertemplatefallback,locale:a._d3locale,template:fe}):C,ae={showlegend:!0,legend:{title:{text:he,font:ee},font:ee,bgcolor:j.bgcolor,bordercolor:j.bordercolor,borderwidth:1,tracegroupgap:7,traceorder:a.legend?a.legend.traceorder:void 0,orientation:"v"}},Le={font:ee};i1e(ae,Le,t._fullData);var ce=Le.legend;ce.entries=[];for(var Fe=0;Fe=0?Tr=mr:Yr+We=0?Tr=Yr:ue+We=0?rt=Br:$e+Ve=0?rt=$e:Ee+Ve=0,(pe.idealAlign==="top"||!fn)&&gn?(hr-=Ca/2,pe.anchor="end"):fn?(hr+=Ca/2,pe.anchor="start"):pe.anchor="middle",pe.crossPos=hr;else{if(pe.pos=hr,fn=tr+ra/2+un<=q,gn=tr-ra/2-un>=0,(pe.idealAlign==="left"||!fn)&&gn)tr-=ra/2,pe.anchor="end";else if(fn)tr+=ra/2,pe.anchor="start";else{pe.anchor="middle";var si=un/2,bn=tr+si-q,Dn=tr-si;bn>0&&(tr-=bn),Dn<0&&(tr+=-Dn)}pe.crossPos=tr}lt.attr("text-anchor",pe.anchor),Ha&&le.attr("text-anchor",pe.anchor),Ce.attr("transform",_8(tr,hr)+(i?r1e(fN):""))}}),{hoverLabels:ot,commonLabelBoundingBox:Z,mathjaxPromise:f.length?Promise.all(f):null}}function nN(e,r,t,a,n,i){var c,v;var o="",l="";e.nameOverride!==void 0&&(e.name=e.nameOverride),e.name&&(e.trace._meta&&(e.name=pn.templateString(e.name,e.trace._meta)),o=sN(e.name,e.nameLength));var s=t.charAt(0),u=s==="x"?"y":"x";e.zLabel!==void 0?(e.xLabel!==void 0&&(l+="x: "+e.xLabel+"
"),e.yLabel!==void 0&&(l+="y: "+e.yLabel+"
"),e.trace.type!=="choropleth"&&e.trace.type!=="choroplethmap"&&(l+=(l?"z: ":"")+e.zLabel)):r&&e[s+"Label"]===n?l=e[u+"Label"]||"":e.xLabel===void 0?e.yLabel!==void 0&&e.trace.type!=="scattercarpet"&&(l=e.yLabel):e.yLabel===void 0?l=e.xLabel:l="("+e.xLabel+", "+e.yLabel+")",(e.text||e.text===0)&&!Array.isArray(e.text)&&(l+=(l?"
":"")+e.text),e.extraText!==void 0&&(l+=(l?"
":"")+e.extraText),i&&l===""&&!e.hovertemplate&&(o===""&&i.remove(),l=o),(v=(c=e.trace)==null?void 0:c.hoverlabel)!=null&&v.split&&(e.hovertemplate="");let{hovertemplate:f=!1}=e;if(f){let d=e.hovertemplateLabels||e;e[s+"Label"]!==n&&(d[s+"other"]=d[s+"Val"],d[s+"otherLabel"]=d[s+"Label"]),l=pn.hovertemplateString({data:[e.eventData[0]||{},e.trace._meta],fallback:e.trace.hovertemplatefallback,labels:d,locale:a._d3locale,template:f}),l=l.replace(h1e,(p,m)=>(o=sN(m,e.nameLength),""))}return[l,o]}function iN(e,r,t,a){var n=r?"xa":"ya",i=r?"ya":"xa",o=0,l=1,s=e.size(),u=new Array(s),f=0,c=a.minX,v=a.maxX,d=a.minY,p=a.maxY,m=function(V){return V*t._invScaleX},y=function(V){return V*t._invScaleY};e.each(function(V){var W=V[n],G=V[i],Y=W._id.charAt(0)==="x",Z=W.range;f===0&&Z&&Z[0]>Z[1]!==Y&&(l=-1);var j=0,ee=Y?t.width:t.height;if(t.hovermode==="x"||t.hovermode==="y"){var ye=hN(V,r),fe=V.anchor,he=fe==="end"?-1:1,ae,Le;if(fe==="middle")ae=V.crossPos+(Y?y(ye.y-V.by/2):m(V.bx/2+V.tx2width/2)),Le=ae+(Y?y(V.by):m(V.bx));else if(Y)ae=V.crossPos+y(rn+ye.y)-y(V.by/2-rn),Le=ae+y(V.by);else{var ce=m(he*rn+ye.x),Fe=ce+m(he*V.bx);ae=V.crossPos+Math.min(ce,Fe),Le=V.crossPos+Math.max(ce,Fe)}Y?d!==void 0&&p!==void 0&&Math.min(Le,p)-Math.max(ae,d)>1&&(G.side==="left"?(j=G._mainLinePosition,ee=t.width):ee=G._mainLinePosition):c!==void 0&&v!==void 0&&Math.min(Le,v)-Math.max(ae,c)>1&&(G.side==="top"?(j=G._mainLinePosition,ee=t.height):ee=G._mainLinePosition)}u[f++]=[{datum:V,traceIndex:V.trace.index,dp:0,pos:V.pos,posref:V.posref,size:V.by*(Y?l1e:1)/2,pmin:j,pmax:ee}]}),u.sort(function(V,W){return V[0].posref-W[0].posref||l*(W[0].traceIndex-V[0].traceIndex)});var b,T,_,x,w,k,M;function C(V){var W=V[0],G=V[V.length-1];if(T=W.pmin-W.pos-W.dp+W.size,_=G.pos+G.dp+G.size-W.pmax,T>.01){for(w=V.length-1;w>=0;w--)V[w].dp+=T;b=!1}if(!(_<.01)){if(T<-.01){for(w=V.length-1;w>=0;w--)V[w].dp-=_;b=!1}if(b){var Y=0;for(x=0;xW.pmax&&Y++;for(x=V.length-1;x>=0&&!(Y<=0);x--)k=V[x],k.pos>W.pmax-1&&(k.del=!0,Y--);for(x=0;x=0;w--)V[w].dp-=_;for(x=V.length-1;x>=0&&!(Y<=0);x--)k=V[x],k.pos+k.dp+k.size>W.pmax&&(k.del=!0,Y--)}}}for(;!b&&o<=s;){for(o++,b=!0,x=0;x.01){for(w=F.length-1;w>=0;w--)F[w].dp+=T;for(E.push.apply(E,F),u.splice(x+1,1),M=0,w=E.length-1;w>=0;w--)M+=E[w].dp;for(_=M/E.length,w=E.length-1;w>=0;w--)E[w].dp-=_;b=!1}else x++}u.forEach(C)}for(x=u.length-1;x>=0;x--){var z=u[x];for(w=z.length-1;w>=0;w--){var I=z[w],U=I.datum;U.offset=I.dp,U.del=I.del}}}function hN(e,r){var t=0,a=e.offset;return r&&(a*=-u1e,t=e.offset*s1e),{x:t,y:a}}function d1e(e){var r={start:1,end:-1,middle:0}[e.anchor],t=r*(rn+ia),a=t+r*(e.txwidth+ia),n=e.anchor==="middle";return n&&(t-=e.tx2width/2,a+=e.txwidth/2+ia),{alignShift:r,textShiftX:t,text2ShiftX:a}}function m3(e,r,t,a){var n=function(o){return o*t},i=function(o){return o*a};e.each(function(o){var l=pu.select(this);if(o.del)return l.remove();var s=l.select("text.nums"),u=o.anchor,f=u==="end"?-1:1,c=d1e(o),v=hN(o,r),d=v.x,p=v.y,m=u==="middle",y="hoverlabel"in o.trace?o.trace.hoverlabel.showarrow:!0,b;m?b="M-"+n(o.bx/2+o.tx2width/2)+","+i(p-o.by/2)+"h"+n(o.bx)+"v"+i(o.by)+"h-"+n(o.bx)+"Z":y?b="M0,0L"+n(f*rn+d)+","+i(rn+p)+"v"+i(o.by/2-rn)+"h"+n(f*o.bx)+"v-"+i(o.by)+"H"+n(f*rn+d)+"V"+i(p-rn)+"Z":b="M"+n(f*rn+d)+","+i(p-o.by/2)+"h"+n(f*o.bx)+"v"+i(o.by)+"h"+n(-f*o.bx)+"Z",l.select("path").attr("d",b);var T=d+c.textShiftX,_=p+o.ty0-o.by/2+ia,x=o.textAlign||"auto";x!=="auto"&&(x==="left"&&u!=="start"?(s.attr("text-anchor","start"),T=m?-o.bx/2-o.tx2width/2+ia:-o.bx-ia):x==="right"&&u!=="end"&&(s.attr("text-anchor","end"),T=m?o.bx/2-o.tx2width/2-ia:o.bx+ia)),s.call(nn.positionText,n(T),i(_)),o.tx2width&&(l.select("text.name").call(nn.positionText,n(c.text2ShiftX+c.alignShift*ia+d),i(p+o.ty0-o.by/2+ia)),l.select("rect").call(ks.setRect,n(c.text2ShiftX+(c.alignShift-1)*o.tx2width/2+d),i(p-o.by/2-1),n(o.tx2width),i(o.by+2)))})}function p1e(e,r){var t=e.index,a=e.trace||{},n=e.cd[0],i=e.cd[t]||{};function o(v){return v||du(v)&&v===0}var l=Array.isArray(t)?function(v,d){var p=pn.castOption(n,t,v);return o(p)?p:pn.extractOption({},a,"",d)}:function(v,d){return pn.extractOption(i,a,v,d)};function s(v,d,p){var m=l(d,p);o(m)&&(e[v]=m)}if(s("hoverinfo","hi","hoverinfo"),s("bgcolor","hbg","hoverlabel.bgcolor"),s("borderColor","hbc","hoverlabel.bordercolor"),s("fontFamily","htf","hoverlabel.font.family"),s("fontSize","hts","hoverlabel.font.size"),s("fontColor","htc","hoverlabel.font.color"),s("fontWeight","htw","hoverlabel.font.weight"),s("fontStyle","hty","hoverlabel.font.style"),s("fontVariant","htv","hoverlabel.font.variant"),s("nameLength","hnl","hoverlabel.namelength"),s("textAlign","hta","hoverlabel.align"),e.posref=r==="y"||r==="closest"&&a.orientation==="h"?e.xa._offset+(e.x0+e.x1)/2:e.ya._offset+(e.y0+e.y1)/2,e.x0=pn.constrain(e.x0,0,e.xa._length),e.x1=pn.constrain(e.x1,0,e.xa._length),e.y0=pn.constrain(e.y0,0,e.ya._length),e.y1=pn.constrain(e.y1,0,e.ya._length),e.xLabelVal!==void 0&&(e.xLabel="xLabel"in e?e.xLabel:Ss.hoverLabelText(e.xa,e.xLabelVal,a.xhoverformat),e.xVal=e.xa.c2d(e.xLabelVal)),e.yLabelVal!==void 0&&(e.yLabel="yLabel"in e?e.yLabel:Ss.hoverLabelText(e.ya,e.yLabelVal,a.yhoverformat),e.yVal=e.ya.c2d(e.yLabelVal)),e.zLabelVal!==void 0&&e.zLabel===void 0&&(e.zLabel=String(e.zLabelVal)),!isNaN(e.xerr)&&!(e.xa.type==="log"&&e.xerr<=0)){var u=Ss.tickText(e.xa,e.xa.c2l(e.xerr),"hover").text;e.xerrneg!==void 0?e.xLabel+=" +"+u+" / -"+Ss.tickText(e.xa,e.xa.c2l(e.xerrneg),"hover").text:e.xLabel+=" \xB1 "+u,r==="x"&&(e.distance+=1)}if(!isNaN(e.yerr)&&!(e.ya.type==="log"&&e.yerr<=0)){var f=Ss.tickText(e.ya,e.ya.c2l(e.yerr),"hover").text;e.yerrneg!==void 0?e.yLabel+=" +"+f+" / -"+Ss.tickText(e.ya,e.ya.c2l(e.yerrneg),"hover").text:e.yLabel+=" \xB1 "+f,r==="y"&&(e.distance+=1)}var c=e.hoverinfo||e.trace.hoverinfo;return c&&c!=="all"&&(c=Array.isArray(c)?c:c.split("+"),c.indexOf("x")===-1&&(e.xLabel=void 0),c.indexOf("y")===-1&&(e.yLabel=void 0),c.indexOf("z")===-1&&(e.zLabel=void 0),c.indexOf("text")===-1&&(e.text=void 0),c.indexOf("name")===-1&&(e.name=void 0)),e}function oN(e,r,t){var a=t.container,n=t.fullLayout,i=n._size,o=t.event,l=!!r.hLinePoint,s=!!r.vLinePoint,u,f;if(a.selectAll(".spikeline").remove(),!!(s||l)){var c=Zn.combine(n.plot_bgcolor,n.paper_bgcolor);if(l){var v=r.hLinePoint,d,p;u=v&&v.xa,f=v&&v.ya;var m=f.spikesnap;m==="cursor"?(d=o.pointerX,p=o.pointerY):(d=u._offset+v.x,p=f._offset+v.y);var y=Zn.wcagContrast(v.color,c)<1.5?Zn.contrast(c):v.color,b=f.spikemode,T=f.spikethickness,_=f.spikecolor||y,x=Ss.getPxPosition(e,f),w,k;if(b.indexOf("toaxis")!==-1||b.indexOf("across")!==-1){if(b.indexOf("toaxis")!==-1&&(w=x,k=d),b.indexOf("across")!==-1){var M=f._counterDomainMin,C=f._counterDomainMax;f.anchor==="free"&&(M=Math.min(M,f.position),C=Math.max(C,f.position)),w=i.l+M*i.w,k=i.l+C*i.w}a.insert("line",":first-child").attr({x1:w,x2:k,y1:p,y2:p,"stroke-width":T,stroke:_,"stroke-dasharray":ks.dashStyle(f.spikedash,T)}).classed("spikeline",!0).classed("crisp",!0),a.insert("line",":first-child").attr({x1:w,x2:k,y1:p,y2:p,"stroke-width":T+2,stroke:c}).classed("spikeline",!0).classed("crisp",!0)}b.indexOf("marker")!==-1&&a.insert("circle",":first-child").attr({cx:x+(f.side!=="right"?T:-T),cy:p,r:T,fill:_}).classed("spikeline",!0)}if(s){var E=r.vLinePoint,F,P;u=E&&E.xa,f=E&&E.ya;var q=u.spikesnap;q==="cursor"?(F=o.pointerX,P=o.pointerY):(F=u._offset+E.x,P=f._offset+E.y);var z=Zn.wcagContrast(E.color,c)<1.5?Zn.contrast(c):E.color,I=u.spikemode,U=u.spikethickness,V=u.spikecolor||z,W=Ss.getPxPosition(e,u),G,Y;if(I.indexOf("toaxis")!==-1||I.indexOf("across")!==-1){if(I.indexOf("toaxis")!==-1&&(G=W,Y=P),I.indexOf("across")!==-1){var Z=u._counterDomainMin,j=u._counterDomainMax;u.anchor==="free"&&(Z=Math.min(Z,u.position),j=Math.max(j,u.position)),G=i.t+(1-j)*i.h,Y=i.t+(1-Z)*i.h}a.insert("line",":first-child").attr({x1:F,x2:F,y1:G,y2:Y,"stroke-width":U,stroke:V,"stroke-dasharray":ks.dashStyle(u.spikedash,U)}).classed("spikeline",!0).classed("crisp",!0),a.insert("line",":first-child").attr({x1:F,x2:F,y1:G,y2:Y,"stroke-width":U+2,stroke:c}).classed("spikeline",!0).classed("crisp",!0)}I.indexOf("marker")!==-1&&a.insert("circle",":first-child").attr({cx:F,cy:W-(u.side!=="top"?U:-U),r:U,fill:V}).classed("spikeline",!0)}}}function m1e(e,r,t){if(!t||t.length!==e._hoverdata.length)return!0;for(var a=t.length-1;a>=0;a--){var n=t[a],i=e._hoverdata[a];if(n.curveNumber!==i.curveNumber||String(n.pointNumber)!==String(i.pointNumber)||String(n.pointNumbers)!==String(i.pointNumbers)||n.binNumber!==i.binNumber)return!0}return!1}function lN(e,r){return!r||r.vLinePoint!==e._spikepoints.vLinePoint||r.hLinePoint!==e._spikepoints.hLinePoint}function sN(e,r){return nn.plainText(e||"",{len:r,allowedTags:["br","sub","sup","b","i","em","s","u"]})}function y1e(e,r){for(var t=r.charAt(0),a=[],n=[],i=[],o=0;oe.offsetTop+e.clientTop,pN=e=>e.offsetLeft+e.clientLeft;function p3(e,r){var t=e._fullLayout,a=r.getBoundingClientRect(),n=a.left,i=a.top,o=n+a.width,l=i+a.height,s=pn.apply3DTransform(t._invTransform)(n,i),u=pn.apply3DTransform(t._invTransform)(o,l),f=s[0],c=s[1],v=u[0],d=u[1];return{x:f,y:c,width:v-f,height:d-c,top:Math.min(c,d),left:Math.min(f,v),right:Math.max(f,v),bottom:Math.max(c,d)}}});var y3=B((SFe,mN)=>{"use strict";var g1e=or(),b1e=Kt(),x1e=xs().isUnifiedHover;mN.exports=function(r,t,a,n){n=n||{};var i=t.legend;function o(l){n.font[l]||(n.font[l]=i?t.legend.font[l]:t.font[l])}t&&x1e(t.hovermode)&&(n.font||(n.font={}),o("size"),o("family"),o("color"),o("weight"),o("style"),o("variant"),i?(n.bgcolor||(n.bgcolor=b1e.combine(t.legend.bgcolor,t.paper_bgcolor)),n.bordercolor||(n.bordercolor=t.legend.bordercolor)):n.bgcolor||(n.bgcolor=t.paper_bgcolor)),a("hoverlabel.bgcolor",n.bgcolor),a("hoverlabel.bordercolor",n.bordercolor),a("hoverlabel.namelength",n.namelength),a("hoverlabel.showarrow",n.showarrow),g1e.coerceFont(a,"hoverlabel.font",n.font),a("hoverlabel.align",n.align)}});var gN=B((CFe,yN)=>{"use strict";var _1e=or(),w1e=y3(),A1e=kv();yN.exports=function(r,t){function a(n,i){return _1e.coerce(r,t,A1e,n,i)}w1e(r,t,a)}});var _N=B((DFe,xN)=>{"use strict";var bN=or(),T1e=dy(),M1e=y3();xN.exports=function(r,t,a,n){function i(l,s){return bN.coerce(r,t,T1e,l,s)}var o=bN.extendFlat({},n.hoverlabel);t.hovertemplate&&(o.namelength=-1),M1e(r,t,i,o)}});var k8=B((LFe,wN)=>{"use strict";var k1e=or(),S1e=kv();wN.exports=function(r,t){function a(n,i){return t[n]!==void 0?t[n]:k1e.coerce(r,t,S1e,n,i)}return a("clickmode"),a("hoversubplots"),a("hoveranywhere"),a("clickanywhere"),a("hovermode")}});var MN=B((EFe,TN)=>{"use strict";var AN=or(),C1e=kv(),D1e=k8(),L1e=y3();TN.exports=function(r,t){function a(u,f){return AN.coerce(r,t,C1e,u,f)}var n=D1e(r,t);n&&(a("hoverdistance"),a("spikedistance"),n.indexOf("unified")!==-1&&a("hoversort"));var i=a("dragmode");i==="select"&&a("selectdirection");var o=t._has("map"),l=t._has("geo"),s=t._basePlotModules.length;t.dragmode==="zoom"&&((o||l)&&s===1||o&&l&&s===2)&&(t.dragmode="pan"),L1e(r,t,a),AN.coerceFont(a,"hoverlabel.grouptitlefont",t.hoverlabel.font)}});var CN=B((qFe,SN)=>{"use strict";var S8=or(),kN=Pt();SN.exports=function(r){var t=r.calcdata,a=r._fullLayout;function n(u){return function(f){return S8.coerceHoverinfo({hoverinfo:f},{_module:u._module},a)}}for(var i=0;i{"use strict";var q1e=Pt(),DN=xs(),F1e=M8().hover;LN.exports=function(r,t,a){var n=q1e.getComponentMethod("annotations","onClick")(r,r._hoverdata),i=r._fullLayout;a!==void 0&&F1e(r,t,a,!0);function o(){var s,u,f,c,v,d;var l={points:r._hoverdata,event:t};(s=l.xaxes)!=null||(l.xaxes=r._hoverXAxes),(u=l.yaxes)!=null||(l.yaxes=r._hoverYAxes),(f=l.xvals)!=null||(l.xvals=r._hoverXVals&&DN.c2dApply(r._hoverXAxes,r._hoverXVals)),(c=l.yvals)!=null||(l.yvals=r._hoverYVals&&DN.c2dApply(r._hoverYAxes,r._hoverYVals)),(v=l.xPixel)!=null||(l.xPixel=r._hoverPointerX),(d=l.yPixel)!=null||(l.yPixel=r._hoverPointerY),r.emit("plotly_click",l)}(r._hoverdata||i.clickanywhere)&&t&&t.target&&(r._hoverdata||(r._hoverdata=[]),n&&n.then?n.then(o):o(),t.stopImmediatePropagation&&t.stopImmediatePropagation())}});var mu=B((RFe,RN)=>{"use strict";var R1e=la(),g3=or(),P1e=Ul(),d1=xs(),qN=kv(),FN=M8();RN.exports={moduleType:"component",name:"fx",constants:(g2(),vr(y2)),schema:{layout:qN},attributes:dy(),layoutAttributes:qN,supplyLayoutGlobalDefaults:gN(),supplyDefaults:_N(),supplyLayoutDefaults:MN(),calc:CN(),getDistanceFunction:d1.getDistanceFunction,getClosest:d1.getClosest,inbox:d1.inbox,quadrature:d1.quadrature,appendArrayPointValue:d1.appendArrayPointValue,castHoverOption:z1e,castHoverinfo:B1e,hover:FN.hover,unhover:P1e.unhover,loneHover:FN.loneHover,loneUnhover:N1e,click:EN()};function N1e(e){var r=g3.isD3Selection(e)?e:R1e.select(e);r.selectAll("g.hovertext").remove(),r.selectAll(".spikeline").remove()}function z1e(e,r,t){return g3.castOption(e,r,"hoverlabel."+t)}function B1e(e,r,t){function a(n){return g3.coerceHoverinfo({hoverinfo:n},{_module:e._module},r)}return g3.castOption(e,t,"hoverinfo",a)}});var Lf=B(yu=>{"use strict";yu.selectMode=function(e){return e==="lasso"||e==="select"};yu.drawMode=function(e){return e==="drawclosedpath"||e==="drawopenpath"||e==="drawline"||e==="drawrect"||e==="drawcircle"};yu.openMode=function(e){return e==="drawline"||e==="drawopenpath"};yu.rectMode=function(e){return e==="select"||e==="drawline"||e==="drawrect"||e==="drawcircle"};yu.freeMode=function(e){return e==="lasso"||e==="drawclosedpath"||e==="drawopenpath"};yu.selectingOrDrawing=function(e){return yu.freeMode(e)||yu.rectMode(e)}});var b3=B((NFe,PN)=>{"use strict";PN.exports=function(r){var t=r._fullLayout;t._glcanvas&&t._glcanvas.size()&&t._glcanvas.each(function(a){a.regl&&a.regl.clear({color:!0,depth:!0})})}});var x3=B((zFe,NN)=>{"use strict";NN.exports={undo:{width:857.1,height:1e3,path:"m857 350q0-87-34-166t-91-137-137-92-166-34q-96 0-183 41t-147 114q-4 6-4 13t5 11l76 77q6 5 14 5 9-1 13-7 41-53 100-82t126-29q58 0 110 23t92 61 61 91 22 111-22 111-61 91-92 61-110 23q-55 0-105-20t-90-57l77-77q17-16 8-38-10-23-33-23h-250q-15 0-25 11t-11 25v250q0 24 22 33 22 10 39-8l72-72q60 57 137 88t159 31q87 0 166-34t137-92 91-137 34-166z",transform:"matrix(1 0 0 -1 0 850)"},home:{width:928.6,height:1e3,path:"m786 296v-267q0-15-11-26t-25-10h-214v214h-143v-214h-214q-15 0-25 10t-11 26v267q0 1 0 2t0 2l321 264 321-264q1-1 1-4z m124 39l-34-41q-5-5-12-6h-2q-7 0-12 3l-386 322-386-322q-7-4-13-4-7 2-12 7l-35 41q-4 5-3 13t6 12l401 334q18 15 42 15t43-15l136-114v109q0 8 5 13t13 5h107q8 0 13-5t5-13v-227l122-102q5-5 6-12t-4-13z",transform:"matrix(1 0 0 -1 0 850)"},"camera-retro":{width:1e3,height:1e3,path:"m518 386q0 8-5 13t-13 5q-37 0-63-27t-26-63q0-8 5-13t13-5 12 5 5 13q0 23 16 38t38 16q8 0 13 5t5 13z m125-73q0-59-42-101t-101-42-101 42-42 101 42 101 101 42 101-42 42-101z m-572-320h858v71h-858v-71z m643 320q0 89-62 152t-152 62-151-62-63-152 63-151 151-63 152 63 62 151z m-571 358h214v72h-214v-72z m-72-107h858v143h-462l-36-71h-360v-72z m929 143v-714q0-30-21-51t-50-21h-858q-29 0-50 21t-21 51v714q0 30 21 51t50 21h858q29 0 50-21t21-51z",transform:"matrix(1 0 0 -1 0 850)"},curlybraces:{width:18,height:16,path:"M 9,4 C 7.354992,4 6,5.354992 6,7 V 9 C 6,9.2999997 5.8778068,9.8883542 5.5878906,10.291016 5.2979744,10.693677 4.9222213,11 4,11 a 1.0001,1.0001 0 0 0 0,2 c 0.2999997,0 0.8883542,0.122193 1.2910156,0.412109 C 5.693677,13.702026 6,14.077779 6,15 v 2 c 0,1.645008 1.354992,3 3,3 h 0.5 a 1,1 0 0 0 1,-1 1,1 0 0 0 -1,-1 H 9 C 8.4358712,18 8,17.564129 8,17 V 15 C 8,13.625876 7.3766799,12.602305 6.6113281,11.96875 6.8086352,11.794047 7.0679793,11.657537 7.2109375,11.458984 7.8210204,10.611647 8,9.6999993 8,9 V 7 C 8,6.4358712 8.4358712,6 9,6 h 0.5 a 1,1 0 0 0 1,-1 1,1 0 0 0 -1,-1 z m 5.5,0 a 1,1 0 0 0 -1,1 1,1 0 0 0 1,1 H 15 c 0.564129,0 1,0.4358712 1,1 v 2 c 0,0.6999993 0.17898,1.611647 0.789062,2.458984 0.142959,0.198553 0.402303,0.335063 0.59961,0.509766 C 16.62332,12.602305 16,13.625876 16,15 v 2 c 0,0.564129 -0.435871,1 -1,1 h -0.5 a 1,1 0 0 0 -1,1 1,1 0 0 0 1,1 H 15 c 1.645008,0 3,-1.354992 3,-3 v -2 c 0,-0.922221 0.306323,-1.297974 0.708984,-1.587891 C 19.111646,13.122193 19.7,13 20,13 a 1.0001,1.0001 0 0 0 0,-2 C 19.077779,11 18.702026,10.693677 18.412109,10.291016 18.122193,9.8883542 18,9.2999997 18,9 V 7 C 18,5.354992 16.645008,4 15,4 Z",transform:"translate(-3 -4)"},zoombox:{width:1e3,height:1e3,path:"m1000-25l-250 251c40 63 63 138 63 218 0 224-182 406-407 406-224 0-406-182-406-406s183-406 407-406c80 0 155 22 218 62l250-250 125 125z m-812 250l0 438 437 0 0-438-437 0z m62 375l313 0 0-312-313 0 0 312z",transform:"matrix(1 0 0 -1 0 850)"},pan:{width:1e3,height:1e3,path:"m1000 350l-187 188 0-125-250 0 0 250 125 0-188 187-187-187 125 0 0-250-250 0 0 125-188-188 186-187 0 125 252 0 0-250-125 0 187-188 188 188-125 0 0 250 250 0 0-126 187 188z",transform:"matrix(1 0 0 -1 0 850)"},zoom_plus:{width:875,height:1e3,path:"m1 787l0-875 875 0 0 875-875 0z m687-500l-187 0 0-187-125 0 0 187-188 0 0 125 188 0 0 187 125 0 0-187 187 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},zoom_minus:{width:875,height:1e3,path:"m0 788l0-876 875 0 0 876-875 0z m688-500l-500 0 0 125 500 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},autoscale:{width:1e3,height:1e3,path:"m250 850l-187 0-63 0 0-62 0-188 63 0 0 188 187 0 0 62z m688 0l-188 0 0-62 188 0 0-188 62 0 0 188 0 62-62 0z m-875-938l0 188-63 0 0-188 0-62 63 0 187 0 0 62-187 0z m875 188l0-188-188 0 0-62 188 0 62 0 0 62 0 188-62 0z m-125 188l-1 0-93-94-156 156 156 156 92-93 2 0 0 250-250 0 0-2 93-92-156-156-156 156 94 92 0 2-250 0 0-250 0 0 93 93 157-156-157-156-93 94 0 0 0-250 250 0 0 0-94 93 156 157 156-157-93-93 0 0 250 0 0 250z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_basic:{width:1500,height:1e3,path:"m375 725l0 0-375-375 375-374 0-1 1125 0 0 750-1125 0z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_compare:{width:1125,height:1e3,path:"m187 786l0 2-187-188 188-187 0 0 937 0 0 373-938 0z m0-499l0 1-187-188 188-188 0 0 937 0 0 376-938-1z",transform:"matrix(1 0 0 -1 0 850)"},plotlylogo:{width:1542,height:1e3,path:"m0-10h182v-140h-182v140z m228 146h183v-286h-183v286z m225 714h182v-1000h-182v1000z m225-285h182v-715h-182v715z m225 142h183v-857h-183v857z m231-428h182v-429h-182v429z m225-291h183v-138h-183v138z",transform:"matrix(1 0 0 -1 0 850)"},"z-axis":{width:1e3,height:1e3,path:"m833 5l-17 108v41l-130-65 130-66c0 0 0 38 0 39 0-1 36-14 39-25 4-15-6-22-16-30-15-12-39-16-56-20-90-22-187-23-279-23-261 0-341 34-353 59 3 60 228 110 228 110-140-8-351-35-351-116 0-120 293-142 474-142 155 0 477 22 477 142 0 50-74 79-163 96z m-374 94c-58-5-99-21-99-40 0-24 65-43 144-43 79 0 143 19 143 43 0 19-42 34-98 40v216h87l-132 135-133-135h88v-216z m167 515h-136v1c16 16 31 34 46 52l84 109v54h-230v-71h124v-1c-16-17-28-32-44-51l-89-114v-51h245v72z",transform:"matrix(1 0 0 -1 0 850)"},"3d_rotate":{width:1e3,height:1e3,path:"m922 660c-5 4-9 7-14 11-359 263-580-31-580-31l-102 28 58-400c0 1 1 1 2 2 118 108 351 249 351 249s-62 27-100 42c88 83 222 183 347 122 16-8 30-17 44-27-2 1-4 2-6 4z m36-329c0 0 64 229-88 296-62 27-124 14-175-11 157-78 225-208 249-266 8-19 11-31 11-31 2 5 6 15 11 32-5-13-8-20-8-20z m-775-239c70-31 117-50 198-32-121 80-199 346-199 346l-96-15-58-12c0 0 55-226 155-287z m603 133l-317-139c0 0 4-4 19-14 7-5 24-15 24-15s-177-147-389 4c235-287 536-112 536-112l31-22 100 299-4-1z m-298-153c6-4 14-9 24-15 0 0-17 10-24 15z",transform:"matrix(1 0 0 -1 0 850)"},camera:{width:1e3,height:1e3,path:"m500 450c-83 0-150-67-150-150 0-83 67-150 150-150 83 0 150 67 150 150 0 83-67 150-150 150z m400 150h-120c-16 0-34 13-39 29l-31 93c-6 15-23 28-40 28h-340c-16 0-34-13-39-28l-31-94c-6-15-23-28-40-28h-120c-55 0-100-45-100-100v-450c0-55 45-100 100-100h800c55 0 100 45 100 100v450c0 55-45 100-100 100z m-400-550c-138 0-250 112-250 250 0 138 112 250 250 250 138 0 250-112 250-250 0-138-112-250-250-250z m365 380c-19 0-35 16-35 35 0 19 16 35 35 35 19 0 35-16 35-35 0-19-16-35-35-35z",transform:"matrix(1 0 0 -1 0 850)"},movie:{width:1e3,height:1e3,path:"m938 413l-188-125c0 37-17 71-44 94 64 38 107 107 107 187 0 121-98 219-219 219-121 0-219-98-219-219 0-61 25-117 66-156h-115c30 33 49 76 49 125 0 103-84 187-187 187s-188-84-188-187c0-57 26-107 65-141-38-22-65-62-65-109v-250c0-70 56-126 125-126h500c69 0 125 56 125 126l188-126c34 0 62 28 62 63v375c0 35-28 63-62 63z m-750 0c-69 0-125 56-125 125s56 125 125 125 125-56 125-125-56-125-125-125z m406-1c-87 0-157 70-157 157 0 86 70 156 157 156s156-70 156-156-70-157-156-157z",transform:"matrix(1 0 0 -1 0 850)"},question:{width:857.1,height:1e3,path:"m500 82v107q0 8-5 13t-13 5h-107q-8 0-13-5t-5-13v-107q0-8 5-13t13-5h107q8 0 13 5t5 13z m143 375q0 49-31 91t-77 65-95 23q-136 0-207-119-9-14 4-24l74-55q4-4 10-4 9 0 14 7 30 38 48 51 19 14 48 14 27 0 48-15t21-33q0-21-11-34t-38-25q-35-16-65-48t-29-70v-20q0-8 5-13t13-5h107q8 0 13 5t5 13q0 10 12 27t30 28q18 10 28 16t25 19 25 27 16 34 7 45z m214-107q0-117-57-215t-156-156-215-58-216 58-155 156-58 215 58 215 155 156 216 58 215-58 156-156 57-215z",transform:"matrix(1 0 0 -1 0 850)"},disk:{width:857.1,height:1e3,path:"m214-7h429v214h-429v-214z m500 0h72v500q0 8-6 21t-11 20l-157 156q-5 6-19 12t-22 5v-232q0-22-15-38t-38-16h-322q-22 0-37 16t-16 38v232h-72v-714h72v232q0 22 16 38t37 16h465q22 0 38-16t15-38v-232z m-214 518v178q0 8-5 13t-13 5h-107q-7 0-13-5t-5-13v-178q0-8 5-13t13-5h107q7 0 13 5t5 13z m357-18v-518q0-22-15-38t-38-16h-750q-23 0-38 16t-16 38v750q0 22 16 38t38 16h517q23 0 50-12t42-26l156-157q16-15 27-42t11-49z",transform:"matrix(1 0 0 -1 0 850)"},cloudupload:{width:640,height:640,path:"M451.5 160C434.9 160 418.8 164.5 404.7 172.7C388.9 156.7 370.5 143.3 350.2 133.2C378.4 109.2 414.3 96 451.5 96C537.9 96 608 166 608 252.5C608 294 591.5 333.8 562.2 363.1L491.1 434.2C461.8 463.5 422 480 380.5 480C294.1 480 224 410 224 323.5C224 322 224 320.5 224.1 319C224.6 301.3 239.3 287.4 257 287.9C274.7 288.4 288.6 303.1 288.1 320.8C288.1 321.7 288.1 322.6 288.1 323.4C288.1 374.5 329.5 415.9 380.6 415.9C405.1 415.9 428.6 406.2 446 388.8L517.1 317.7C534.4 300.4 544.2 276.8 544.2 252.3C544.2 201.2 502.8 159.8 451.7 159.8zM307.2 237.3C305.3 236.5 303.4 235.4 301.7 234.2C289.1 227.7 274.7 224 259.6 224C235.1 224 211.6 233.7 194.2 251.1L123.1 322.2C105.8 339.5 96 363.1 96 387.6C96 438.7 137.4 480.1 188.5 480.1C205 480.1 221.1 475.7 235.2 467.5C251 483.5 269.4 496.9 289.8 507C261.6 530.9 225.8 544.2 188.5 544.2C102.1 544.2 32 474.2 32 387.7C32 346.2 48.5 306.4 77.8 277.1L148.9 206C178.2 176.7 218 160.2 259.5 160.2C346.1 160.2 416 230.8 416 317.1C416 318.4 416 319.7 416 321C415.6 338.7 400.9 352.6 383.2 352.2C365.5 351.8 351.6 337.1 352 319.4C352 318.6 352 317.9 352 317.1C352 283.4 334 253.8 307.2 237.5z",transform:"matrix(1 0 0 1 -15 -15)"},drawopenpath:{width:70,height:70,path:"M33.21,85.65a7.31,7.31,0,0,1-2.59-.48c-8.16-3.11-9.27-19.8-9.88-41.3-.1-3.58-.19-6.68-.35-9-.15-2.1-.67-3.48-1.43-3.79-2.13-.88-7.91,2.32-12,5.86L3,32.38c1.87-1.64,11.55-9.66,18.27-6.9,2.13.87,4.75,3.14,5.17,9,.17,2.43.26,5.59.36,9.25a224.17,224.17,0,0,0,1.5,23.4c1.54,10.76,4,12.22,4.48,12.4.84.32,2.79-.46,5.76-3.59L43,80.07C41.53,81.57,37.68,85.64,33.21,85.65ZM74.81,69a11.34,11.34,0,0,0,6.09-6.72L87.26,44.5,74.72,32,56.9,38.35c-2.37.86-5.57,3.42-6.61,6L38.65,72.14l8.42,8.43ZM55,46.27a7.91,7.91,0,0,1,3.64-3.17l14.8-5.3,8,8L76.11,60.6l-.06.19a6.37,6.37,0,0,1-3,3.43L48.25,74.59,44.62,71Zm16.57,7.82A6.9,6.9,0,1,0,64.64,61,6.91,6.91,0,0,0,71.54,54.09Zm-4.05,0a2.85,2.85,0,1,1-2.85-2.85A2.86,2.86,0,0,1,67.49,54.09Zm-4.13,5.22L60.5,56.45,44.26,72.7l2.86,2.86ZM97.83,35.67,84.14,22l-8.57,8.57L89.26,44.24Zm-13.69-8,8,8-2.85,2.85-8-8Z",transform:"matrix(1 0 0 1 -15 -15)"},drawclosedpath:{width:90,height:90,path:"M88.41,21.12a26.56,26.56,0,0,0-36.18,0l-2.07,2-2.07-2a26.57,26.57,0,0,0-36.18,0,23.74,23.74,0,0,0,0,34.8L48,90.12a3.22,3.22,0,0,0,4.42,0l36-34.21a23.73,23.73,0,0,0,0-34.79ZM84,51.24,50.16,83.35,16.35,51.25a17.28,17.28,0,0,1,0-25.47,20,20,0,0,1,27.3,0l4.29,4.07a3.23,3.23,0,0,0,4.44,0l4.29-4.07a20,20,0,0,1,27.3,0,17.27,17.27,0,0,1,0,25.46ZM66.76,47.68h-33v6.91h33ZM53.35,35H46.44V68h6.91Z",transform:"matrix(1 0 0 1 -5 -5)"},lasso:{width:1031,height:1e3,path:"m1018 538c-36 207-290 336-568 286-277-48-473-256-436-463 10-57 36-108 76-151-13-66 11-137 68-183 34-28 75-41 114-42l-55-70 0 0c-2-1-3-2-4-3-10-14-8-34 5-45 14-11 34-8 45 4 1 1 2 3 2 5l0 0 113 140c16 11 31 24 45 40 4 3 6 7 8 11 48-3 100 0 151 9 278 48 473 255 436 462z m-624-379c-80 14-149 48-197 96 42 42 109 47 156 9 33-26 47-66 41-105z m-187-74c-19 16-33 37-39 60 50-32 109-55 174-68-42-25-95-24-135 8z m360 75c-34-7-69-9-102-8 8 62-16 128-68 170-73 59-175 54-244-5-9 20-16 40-20 61-28 159 121 317 333 354s407-60 434-217c28-159-121-318-333-355z",transform:"matrix(1 0 0 -1 0 850)"},selectbox:{width:1e3,height:1e3,path:"m0 850l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-285l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z",transform:"matrix(1 0 0 -1 0 850)"},drawline:{width:70,height:70,path:"M60.64,62.3a11.29,11.29,0,0,0,6.09-6.72l6.35-17.72L60.54,25.31l-17.82,6.4c-2.36.86-5.57,3.41-6.6,6L24.48,65.5l8.42,8.42ZM40.79,39.63a7.89,7.89,0,0,1,3.65-3.17l14.79-5.31,8,8L61.94,54l-.06.19a6.44,6.44,0,0,1-3,3.43L34.07,68l-3.62-3.63Zm16.57,7.81a6.9,6.9,0,1,0-6.89,6.9A6.9,6.9,0,0,0,57.36,47.44Zm-4,0a2.86,2.86,0,1,1-2.85-2.85A2.86,2.86,0,0,1,53.32,47.44Zm-4.13,5.22L46.33,49.8,30.08,66.05l2.86,2.86ZM83.65,29,70,15.34,61.4,23.9,75.09,37.59ZM70,21.06l8,8-2.84,2.85-8-8ZM87,80.49H10.67V87H87Z",transform:"matrix(1 0 0 1 -15 -15)"},drawrect:{width:80,height:80,path:"M78,22V79H21V22H78m9-9H12V88H87V13ZM68,46.22H31V54H68ZM53,32H45.22V69H53Z",transform:"matrix(1 0 0 1 -10 -10)"},drawcircle:{width:80,height:80,path:"M50,84.72C26.84,84.72,8,69.28,8,50.3S26.84,15.87,50,15.87,92,31.31,92,50.3,73.16,84.72,50,84.72Zm0-60.59c-18.6,0-33.74,11.74-33.74,26.17S31.4,76.46,50,76.46,83.74,64.72,83.74,50.3,68.6,24.13,50,24.13Zm17.15,22h-34v7.11h34Zm-13.8-13H46.24v34h7.11Z",transform:"matrix(1 0 0 1 -10 -10)"},eraseshape:{width:80,height:80,path:"M82.77,78H31.85L6,49.57,31.85,21.14H82.77a8.72,8.72,0,0,1,8.65,8.77V69.24A8.72,8.72,0,0,1,82.77,78ZM35.46,69.84H82.77a.57.57,0,0,0,.49-.6V29.91a.57.57,0,0,0-.49-.61H35.46L17,49.57Zm32.68-34.7-24,24,5,5,24-24Zm-19,.53-5,5,24,24,5-5Z",transform:"matrix(1 0 0 1 -10 -10)"},spikeline:{width:1e3,height:1e3,path:"M512 409c0-57-46-104-103-104-57 0-104 47-104 104 0 57 47 103 104 103 57 0 103-46 103-103z m-327-39l92 0 0 92-92 0z m-185 0l92 0 0 92-92 0z m370-186l92 0 0 93-92 0z m0-184l92 0 0 92-92 0z",transform:"matrix(1.5 0 0 -1.5 0 850)"},pencil:{width:1792,height:1792,path:"M491 1536l91-91-235-235-91 91v107h128v128h107zm523-928q0-22-22-22-10 0-17 7l-542 542q-7 7-7 17 0 22 22 22 10 0 17-7l542-542q7-7 7-17zm-54-192l416 416-832 832h-416v-416zm683 96q0 53-37 90l-166 166-416-416 166-165q36-38 90-38 53 0 91 38l235 234q37 39 37 91z",transform:"matrix(1 0 0 1 0 1)"},newplotlylogo:{name:"newplotlylogo",svg:[""," plotly-logomark"," "," "," "," "," "," "," "," "," "," "," "," "," ",""].join("")}}});var _3={};ja(_3,{CIRCLE_SIDES:()=>I1e,SQRT2:()=>X1e,cos45:()=>Y1e,i000:()=>O1e,i090:()=>H1e,i180:()=>U1e,i270:()=>G1e,sin45:()=>V1e});var I1e,O1e,H1e,U1e,G1e,Y1e,V1e,X1e,w3=Ja(()=>{"use strict";I1e=32,O1e=0,H1e=8,U1e=16,G1e=24,Y1e=Math.cos(Math.PI/4),V1e=Math.sin(Math.PI/4),X1e=Math.sqrt(2)});var A3=B((BFe,BN)=>{"use strict";var W1e=or().strTranslate;function zN(e,r){switch(e.type){case"log":return e.p2d(r);case"date":return e.p2r(r,0,e.calendar);default:return e.p2r(r)}}function Z1e(e,r){switch(e.type){case"log":return e.d2p(r);case"date":return e.r2p(r,0,e.calendar);default:return e.r2p(r)}}function J1e(e){var r=e._id.charAt(0)==="y"?1:0;return function(t){return zN(e,t[r])}}function j1e(e){return W1e(e.xaxis._offset,e.yaxis._offset)}BN.exports={p2r:zN,r2p:Z1e,axValue:J1e,getTransform:j1e}});var Ef=B(gu=>{"use strict";var $1e=v7(),HN=(w3(),vr(_3)),gh=HN.CIRCLE_SIDES,C8=HN.SQRT2,UN=A3(),IN=UN.p2r,ON=UN.r2p,K1e=[0,3,4,5,6,1,2],Q1e=[0,3,4,1,2];gu.writePaths=function(e){var r=e.length;if(!r)return"M0,0Z";for(var t="",a=0;a0&&s{"use strict";var GN=hn(),ZN=Lf(),epe=ZN.drawMode,rpe=ZN.openMode,bh=(w3(),vr(_3)),YN=bh.i000,VN=bh.i090,XN=bh.i180,WN=bh.i270,tpe=bh.cos45,ape=bh.sin45,JN=A3(),M3=JN.p2r,qf=JN.r2p,npe=gf(),ipe=npe.clearOutline,k3=Ef(),ope=k3.readPaths,lpe=k3.writePaths,spe=k3.ellipseOver,upe=k3.fixDatesForPaths;function fpe(e,r){if(e.length){var t=e[0][0];if(t){var a=r.gd,n=r.isActiveShape,i=r.dragmode,o=(a.layout||{}).shapes||[];if(!epe(i)&&n!==void 0){var l=a._fullLayout._activeShapeIndex;if(l{"use strict";var cpe=Lf(),vpe=cpe.selectMode,hpe=gf(),dpe=hpe.clearOutline,D8=Ef(),ppe=D8.readPaths,mpe=D8.writePaths,ype=D8.fixDatesForPaths;KN.exports=function(r,t){if(r.length){var a=r[0][0];if(a){var n=a.getAttribute("d"),i=t.gd,o=i._fullLayout.newselection,l=t.plotinfo,s=l.xaxis,u=l.yaxis,f=t.isActiveSelection,c=t.dragmode,v=(i.layout||{}).selections||[];if(!vpe(c)&&f!==void 0){var d=i._fullLayout._activeSelectionIndex;if(dwpe,paramIsX:()=>xpe,paramIsY:()=>_pe,paramRE:()=>bpe,segmentRE:()=>gpe});var gpe,bpe,xpe,_pe,wpe,y1=Ja(()=>{"use strict";gpe=/[MLHVQCTSZ][^MLHVQCTSZ]*/g,bpe=/[^\s,]+/g,xpe={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:{}},_pe={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:3},Z:{}},wpe={M:2,L:2,H:1,V:1,Q:4,C:6,T:2,S:4,Z:0}});var Rf=B(Mi=>{"use strict";var Ds=(y1(),vr(m1)),QN=or(),Ff=en();Mi.rangeToShapePosition=function(e){return e.type==="log"?e.r2d:function(r){return r}};Mi.shapePositionToRange=function(e){return e.type==="log"?e.d2r:function(r){return r}};Mi.decodeDate=function(e){return function(r){return r.replace&&(r=r.replace("_"," ")),e(r)}};Mi.encodeDate=function(e){return function(r){return e(r).replace(" ","_")}};Mi.extractPathCoords=function(e,r,t){var a=[],n=e.match(Ds.segmentRE);return n.forEach(function(i){var o=r[i.charAt(0)].drawn;if(o!==void 0){var l=i.slice(1).match(Ds.paramRE);if(!(!l||l.length{let l=o.charAt(0),s=n[l].drawn!==void 0;return i+(s?1:0)},0)};Mi.getDataToPixel=function(e,r,t,a,n){var i=e._fullLayout._size,o;if(r)if(n==="domain")o=function(s){return r._length*(a?1-s:s)+r._offset};else{var l=Mi.shapePositionToRange(r);o=function(s){var u=Cs(r,t);return r._offset+r.r2p(l(s,!0))+u},r.type==="date"&&(o=Mi.decodeDate(o))}else a?o=function(s){return i.t+i.h*(1-s)}:o=function(s){return i.l+i.w*s};return o};Mi.getPixelToData=function(e,r,t,a){var n=e._fullLayout._size,i;if(r)if(a==="domain")i=function(l){var s=(l-r._offset)/r._length;return t?1-s:s};else{var o=Mi.rangeToShapePosition(r);i=function(l){return o(r.p2r(l-r._offset))}}else t?i=function(l){return 1-(l-n.t)/n.h}:i=function(l){return(l-n.l)/n.w};return i};Mi.roundPositionForSharpStrokeRendering=function(e,r){var t=Math.round(r%2)===1,a=Math.round(e);return t?a+.5:a};Mi.makeShapesOptionsAndPlotinfo=function(e,r){var t=e._fullLayout.shapes[r]||{},a=e._fullLayout._plots[t.xref+t.yref],n=!!a;return n?a._hadPlotinfo=!0:(a={},t.xref&&t.xref!=="paper"&&(a.xaxis=e._fullLayout[t.xref+"axis"]),t.yref&&t.yref!=="paper"&&(a.yaxis=e._fullLayout[t.yref+"axis"])),a.xsizemode=t.xsizemode,a.ysizemode=t.ysizemode,a.xanchor=t.xanchor,a.yanchor=t.yanchor,{options:t,plotinfo:a}};Mi.makeSelectionsOptionsAndPlotinfo=function(e,r){var t=e._fullLayout.selections[r]||{},a=e._fullLayout._plots[t.xref+t.yref],n=!!a;return n?a._hadPlotinfo=!0:(a={},t.xref&&(a.xaxis=e._fullLayout[t.xref+"axis"]),t.yref&&(a.yaxis=e._fullLayout[t.yref+"axis"])),{options:t,plotinfo:a}};Mi.getPathString=function(e,r){let t=r.type,a=Ff.getRefType(r.xref),n=Ff.getRefType(r.yref),i=e._fullLayout._size;var o,l,s,u,f,c,v,d,p,m,y,b;function T(F,P,q,z){var I;if(F)if(P==="domain")z?I=function(U){return F._offset+F._length*(1-U)}:I=function(U){return F._offset+F._length*U};else{let U=Mi.shapePositionToRange(F);I=function(V){return F._offset+F.r2p(U(V,!0))},q==="path"&&F.type==="date"&&(I=Mi.decodeDate(I))}else z?I=function(U){return i.t+i.h*(1-U)}:I=function(U){return i.l+i.w*U};return I}if(a==="array"?(v=[],o=r.xref.map(function(F){return Ff.getFromId(e,F)}),v=r.xref.map(function(F,P){return T(o[P],Ff.getRefType(F),t,!1)})):(o=Ff.getFromId(e,r.xref),v=T(o,a,t,!1)),n==="array"?(d=[],l=r.yref.map(function(F){return Ff.getFromId(e,F)}),d=r.yref.map(function(F,P){return T(l[P],Ff.getRefType(F),t,!0)})):(l=Ff.getFromId(e,r.yref),d=T(l,n,t,!0)),t==="path")return Ape(r,v,d);if(a==="array")s=Cs(o[0],r.x0shift),u=Cs(o[1],r.x1shift),p=v[0](r.x0)+s,m=v[1](r.x1)+u;else if(s=Cs(o,r.x0shift),u=Cs(o,r.x1shift),r.xsizemode==="pixel"){let F=v(r.xanchor);p=F+r.x0+s,m=F+r.x1+u}else p=v(r.x0)+s,m=v(r.x1)+u;if(n==="array")f=Cs(l[0],r.y0shift),c=Cs(l[1],r.y1shift),y=d[0](r.y0)+f,b=d[1](r.y1)+c;else if(f=Cs(l,r.y0shift),c=Cs(l,r.y1shift),r.ysizemode==="pixel"){let F=d(r.yanchor);y=F-r.y0+f,b=F-r.y1+c}else y=d(r.y0)+f,b=d(r.y1)+c;if(t==="line")return"M"+p+","+y+"L"+m+","+b;if(t==="rect")return"M"+p+","+y+"H"+m+"V"+b+"H"+p+"Z";var _=(p+m)/2,x=(y+b)/2,w=Math.abs(_-p),k=Math.abs(x-y),M="A"+w+","+k,C=_+w+","+x,E=_+","+(x-k);return"M"+C+M+" 0 1,1 "+E+M+" 0 0,1 "+C+"Z"};function Ape(e,r,t){let a=e.path,n=e.xsizemode,i=e.ysizemode,o=e.xanchor,l=e.yanchor,s=Array.isArray(e.xref),u=Array.isArray(e.yref);var f=0,c=0;return a.replace(Ds.segmentRE,function(v){var d=0,p=v.charAt(0),m=Ds.paramIsX[p],y=Ds.paramIsY[p],b=Ds.numParams[p];let T=m.drawn!==void 0,_=y.drawn!==void 0,x=s?r[f]:r,w=u?t[c]:t;var k=v.slice(1).replace(Ds.paramRE,function(M){return m[d]?n==="pixel"?M=x(o)+Number(M):M=x(M):y[d]&&(i==="pixel"?M=w(l)-Number(M):M=w(M)),d++,d>b&&(M="X"),M});return d>b&&(k=k.replace(/[\s,]*X.*/,""),QN.log("Ignoring extra params in segment "+v)),T&&f++,_&&c++,p+k})}Mi.getPixelShift=Cs;function Cs(e,r){r=r||0;var t=0;return r&&e&&(e.type==="category"||e.type==="multicategory")&&(t=(e.r2p(1)-e.r2p(0))*r),t}});var E8=B((GFe,tz)=>{"use strict";var Tpe=or(),Ls=en(),ez=Ei(),rz=Sa(),Mpe=Ef().readPaths,hc=Rf(),kpe=hc.getPathString,g1=Wy(),Spe=(Oi(),vr(Ii)).FROM_TL;tz.exports=function(r,t,a,n){if(n.selectAll(".shape-label").remove(),!!(a.label.text||a.label.texttemplate)){var i;if(a.label.texttemplate){var o={};if(a.type!=="path"){var l=Ls.getFromId(r,a.xref),s=Ls.getFromId(r,a.yref);let j=Array.isArray(a.xref),ee=Array.isArray(a.yref);for(var u in g1){var f=typeof g1[u]=="function",c=!j||g1.simpleXVariables.includes(u),v=!ee||g1.simpleYVariables.includes(u);if(f&&c&&v){var d=g1[u](a,l,s);d!==void 0&&(o[u]=d)}}}i=Tpe.texttemplateStringForShapes({data:[o],fallback:a.label.texttemplatefallback,locale:r._fullLayout._d3locale,template:a.label.texttemplate})}else i=a.label.text;var p={"data-index":t},m=a.label.font,y={"data-notex":1},b=n.append("g").attr(p).classed("shape-label",!0),T=b.append("text").attr(y).classed("shape-label-text",!0).text(i),_,x,w,k;if(a.path){var M=kpe(r,a),C=Mpe(M,r);_=1/0,w=1/0,x=-1/0,k=-1/0;for(var E=0;Ehc.getDataToPixel(r,Ue,qe,!1,Ye)(ur),He=(ur,qe,Ue,Ye)=>hc.getDataToPixel(r,Ue,qe,!0,Ye)(ur);if(a.xsizemode==="pixel"){let ur=ge(a.xanchor,void 0,ye,Le),qe=hc.getPixelShift(ye,a.x0shift),Ue=hc.getPixelShift(ye,a.x1shift);_=ur+a.x0+qe,x=ur+a.x1+Ue}else _=ge(a.x0,a.x0shift,ye,Le),x=ge(a.x1,a.x1shift,fe,ce);if(a.ysizemode==="pixel"){let ur=He(a.yanchor,void 0,he,Fe),qe=hc.getPixelShift(he,a.y0shift),Ue=hc.getPixelShift(he,a.y1shift);w=ur-a.y0+qe,k=ur-a.y1+Ue}else w=He(a.y0,a.y0shift,he,Fe),k=He(a.y1,a.y1shift,ae,Re)}var U=a.label.textangle;U==="auto"&&(a.type==="line"?U=Cpe(_,w,x,k):U=0),T.call(function(j){return j.call(rz.font,m).attr({}),ez.convertToTspans(j,r),j});var V=rz.bBox(T.node()),W=Dpe(_,w,x,k,a,U,V),G=W.textx,Y=W.texty,Z=W.xanchor;T.attr({"text-anchor":{left:"start",center:"middle",right:"end"}[Z],y:Y,x:G,transform:"rotate("+U+","+G+","+Y+")"}).call(ez.positionText,G,Y)}};function Cpe(e,r,t,a){var n,i;return i=Math.abs(t-e),t>=e?n=r-a:n=a-r,-180/Math.PI*Math.atan2(n,i)}function Dpe(e,r,t,a,n,i,o){var l=n.label.textposition,s=n.label.textangle,u=n.label.padding,f=n.type,c=Math.PI/180*i,v=Math.sin(c),d=Math.cos(c),p=n.label.xanchor,m=n.label.yanchor,y,b,T,_;if(f==="line"){l==="start"?(y=e,b=r):l==="end"?(y=t,b=a):(y=(e+t)/2,b=(r+a)/2),p==="auto"&&(l==="start"?s==="auto"?t>e?p="left":te?p="right":te?p="right":te?p="left":t{"use strict";var Lpe=or(),Epe=Lpe.strTranslate,az=Ul(),oz=Lf(),qpe=oz.drawMode,lz=oz.selectMode,sz=Pt(),nz=Kt(),D3=(w3(),vr(_3)),Fpe=D3.i000,Rpe=D3.i090,Ppe=D3.i180,Npe=D3.i270,zpe=gf(),uz=zpe.clearOutlineControllers,F8=Ef(),C3=F8.pointsOnRectangle,q8=F8.pointsOnEllipse,Bpe=F8.writePaths,Ipe=S3().newShapes,Ope=S3().createShapeObj,Hpe=L8(),Upe=E8();fz.exports=function e(r,t,a,n){n||(n=0);var i=a.gd;function o(){e(r,t,a,n++),(q8(r[0])||a.hasText)&&l({redrawing:!0})}function l(W){var G={};a.isActiveShape!==void 0&&(a.isActiveShape=!1,G=Ipe(t,a)),a.isActiveSelection!==void 0&&(a.isActiveSelection=!1,G=Hpe(t,a),i._fullLayout._reselect=!0),Object.keys(G).length&&sz.call((W||{}).redrawing?"relayout":"_guiRelayout",i,G)}var s=i._fullLayout,u=s._zoomlayer,f=a.dragmode,c=qpe(f),v=lz(f);(c||v)&&(i._fullLayout._outlining=!0),uz(i),t.attr("d",Bpe(r));var d,p,m,y,b;if(!n&&(a.isActiveShape||a.isActiveSelection)){b=Gpe([],r);var T=u.append("g").attr("class","outline-controllers");F(T),V()}if(c&&a.hasText){var _=u.select(".label-temp"),x=Ope(t,a,a.dragmode);Upe(i,"label-temp",x,_)}function w(W){m=+W.srcElement.getAttribute("data-i"),y=+W.srcElement.getAttribute("data-j"),d[m][y].moveFn=k}function k(W,G){if(r.length){var Y=b[m][y][1],Z=b[m][y][2],j=r[m],ee=j.length;if(C3(j)){var ye=W,fe=G;if(a.isActiveSelection){var he=iz(j,y);he[1]===j[y][1]?fe=0:ye=0}for(var ae=0;ae1&&!(W.length===2&&W[1][0]==="Z")&&(y===0&&(W[0][0]="M"),r[m]=W,o(),l())}}function E(W,G){if(W===2){m=+G.srcElement.getAttribute("data-i"),y=+G.srcElement.getAttribute("data-j");var Y=r[m];!C3(Y)&&!q8(Y)&&C()}}function F(W){d=[];for(var G=0;G{"use strict";var Vpe=la(),mz=Pt(),P8=or(),dc=en(),Xpe=Ef().readPaths,Wpe=L3(),q3=E8(),yz=gf().clearOutlineControllers,R8=Kt(),F3=Sa(),Zpe=Ra().arrayEditor,cz=Ul(),vz=mu(),hz=Cf(),pc=(y1(),vr(m1)),ko=Rf(),N8=ko.getPathString;xz.exports={draw:z8,drawOne:gz,eraseActiveShape:Qpe,drawLabel:q3};function z8(e){var r=e._fullLayout;r._shapeUpperLayer.selectAll("path").remove(),r._shapeLowerLayer.selectAll("path").remove(),r._shapeUpperLayer.selectAll("text").remove(),r._shapeLowerLayer.selectAll("text").remove();for(var t in r._plots){var a=r._plots[t].shapelayer;a&&(a.selectAll("path").remove(),a.selectAll("text").remove())}for(var n=0;n{if(!e._dragging&&e._fullLayout.hoveranywhere){let o=n(i);o&&vz.hover(e,o,t.id)}}),a.addEventListener("click",i=>{if(!e._dragged&&e._fullLayout.clickanywhere){let o=n(i);o&&vz.click(e,o,t.id)}})}function bz(e,r,t){let a=t.xref,n=t.yref;if(Array.isArray(a)||Array.isArray(n)){let i="clip"+r._fullLayout._uid+"shape"+t._index,o=jpe(r,a,n);P8.ensureSingleById(r._fullLayout._clips,"clipPath",i,function(l){l.append("rect")}).select("rect").attr(o),F3.setClipUrl(e,i,r)}else{let i=(a+n).replace(/paper/g,"").replace(/[xyz][0-9]* *domain/g,"");F3.setClipUrl(e,i?"clip"+r._fullLayout._uid+i:null,r)}}function jpe(e,r,t){let a=e._fullLayout._size;function n(l,s){let u=(Array.isArray(l)?l:[l]).map(v=>dc.getFromId(e,v)).filter(Boolean);if(!u.length)return s?[a.t,a.t+a.h]:[a.l,a.l+a.w];let f=u.map(function(v){return v._offset}),c=u.map(function(v){return v._offset+v._length});return[Math.min(...f),Math.max(...c)]}let i=n(r,!1),o=n(t,!0);return{x:i[0],y:o[0],width:i[1]-i[0],height:o[1]-o[0]}}function $pe(e,r,t,a,n,i){var o=10,l=10,s=t.xsizemode==="pixel",u=t.ysizemode==="pixel",f=t.type==="line",c=t.type==="path",v=i.modifyItem,d,p,m,y,b,T,_,x,w,k,M,C,E,F,P,q=Vpe.select(r.node().parentNode),z=dc.getFromId(e,t.xref),I=dc.getRefType(t.xref),U=dc.getFromId(e,t.yref),V=dc.getRefType(t.yref),W=t.x0shift,G=t.x1shift,Y=t.y0shift,Z=t.y1shift,j=function(ar,Ie){var _r=ko.getDataToPixel(e,z,Ie,!1,I);return _r(ar)},ee=function(ar,Ie){var _r=ko.getDataToPixel(e,U,Ie,!0,V);return _r(ar)},ye=ko.getPixelToData(e,z,!1,I),fe=ko.getPixelToData(e,U,!0,V),he=ce(),ae={element:he.node(),gd:e,prepFn:ge,doneFn:He,clickFn:ur},Le;cz.init(ae),he.node().onmousemove=Re;function ce(){return f?Fe():r}function Fe(){var ar=10,Ie=Math.max(t.line.width,ar),_r=n.append("g").attr("data-index",a).attr("drag-helper",!0);_r.append("path").attr("d",r.attr("d")).style({cursor:"move","stroke-width":Ie,"stroke-opacity":"0"});var Pr={"fill-opacity":"0"},Br=Math.max(Ie/2,ar);return _r.append("circle").attr({"data-line-point":"start-point",cx:s?j(t.xanchor)+t.x0:j(t.x0,W),cy:u?ee(t.yanchor)-t.y0:ee(t.y0,Y),r:Br}).style(Pr).classed("cursor-grab",!0),_r.append("circle").attr({"data-line-point":"end-point",cx:s?j(t.xanchor)+t.x1:j(t.x1,G),cy:u?ee(t.yanchor)-t.y1:ee(t.y1,Z),r:Br}).style(Pr).classed("cursor-grab",!0),_r}function Re(ar){if(E3(e)){Le=null;return}if(f)ar.target.tagName==="path"?Le="move":Le=ar.target.attributes["data-line-point"].value==="start-point"?"resize-over-start-point":"resize-over-end-point";else{var Ie=ae.element.getBoundingClientRect(),_r=Ie.right-Ie.left,Pr=Ie.bottom-Ie.top,Br=ar.clientX-Ie.left,$e=ar.clientY-Ie.top,mr=!c&&_r>o&&Pr>l&&!ar.shiftKey?cz.getCursor(Br/_r,1-$e/Pr):"move";hz(r,mr),Le=mr.split("-")[0]}}function ge(ar){E3(e)||(s&&(b=j(t.xanchor)),u&&(T=ee(t.yanchor)),t.type==="path"?P=t.path:(d=s?t.x0:j(t.x0),p=u?t.y0:ee(t.y0),m=s?t.x1:j(t.x1),y=u?t.y1:ee(t.y1)),dy?(_=p,M="y0",x=y,C="y1"):(_=y,M="y1",x=p,C="y0"),Re(ar),Ye(n,t),Ve(r,t,e),ae.moveFn=Le==="move"?qe:Ue,ae.altKey=ar.altKey)}function He(){E3(e)||(hz(r),We(n),bz(r,e,t),mz.call("_guiRelayout",e,i.getUpdateObj()))}function ur(){E3(e)||We(n)}function qe(ar,Ie){if(t.type==="path"){var _r=function($e){return $e},Pr=_r,Br=_r;s?v("xanchor",t.xanchor=ye(b+ar)):(Pr=function(mr){return ye(j(mr)+ar)},z&&z.type==="date"&&(Pr=ko.encodeDate(Pr))),u?v("yanchor",t.yanchor=fe(T+Ie)):(Br=function(mr){return fe(ee(mr)+Ie)},U&&U.type==="date"&&(Br=ko.encodeDate(Br))),v("path",t.path=dz(P,Pr,Br))}else s?v("xanchor",t.xanchor=ye(b+ar)):(v("x0",t.x0=ye(d+ar)),v("x1",t.x1=ye(m+ar))),u?v("yanchor",t.yanchor=fe(T+Ie)):(v("y0",t.y0=fe(p+Ie)),v("y1",t.y1=fe(y+Ie)));r.attr("d",N8(e,t)),Ye(n,t),q3(e,a,t,q)}function Ue(ar,Ie){if(c){var _r=function(kr){return kr},Pr=_r,Br=_r;s?v("xanchor",t.xanchor=ye(b+ar)):(Pr=function(qr){return ye(j(qr)+ar)},z&&z.type==="date"&&(Pr=ko.encodeDate(Pr))),u?v("yanchor",t.yanchor=fe(T+Ie)):(Br=function(qr){return fe(ee(qr)+Ie)},U&&U.type==="date"&&(Br=ko.encodeDate(Br))),v("path",t.path=dz(P,Pr,Br))}else if(f){if(Le==="resize-over-start-point"){var $e=d+ar,mr=u?p-Ie:p+Ie;v("x0",t.x0=s?$e:ye($e)),v("y0",t.y0=u?mr:fe(mr))}else if(Le==="resize-over-end-point"){var Yr=m+ar,ue=u?y-Ie:y+Ie;v("x1",t.x1=s?Yr:ye(Yr)),v("y1",t.y1=u?ue:fe(ue))}}else{var Ee=function(kr){return Le.indexOf(kr)!==-1},Tr=Ee("n"),rt=Ee("s"),ot=Ee("w"),pe=Ee("e"),Ce=Tr?_+Ie:_,lr=rt?x+Ie:x,wr=ot?w+ar:w,fr=pe?k+ar:k;u&&(Tr&&(Ce=_-Ie),rt&&(lr=x-Ie)),(!u&&lr-Ce>l||u&&Ce-lr>l)&&(v(M,t[M]=u?Ce:fe(Ce)),v(C,t[C]=u?lr:fe(lr))),fr-wr>o&&(v(E,t[E]=s?wr:ye(wr)),v(F,t[F]=s?fr:ye(fr)))}r.attr("d",N8(e,t)),Ye(n,t),q3(e,a,t,q)}function Ye(ar,Ie){(s||u)&&_r();function _r(){var Pr=Ie.type!=="path",Br=ar.selectAll(".visual-cue").data([0]),$e=1;Br.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":$e}).classed("visual-cue",!0);var mr=j(s?Ie.xanchor:P8.midRange(Pr?[Ie.x0,Ie.x1]:ko.extractPathCoords(Ie.path,pc.paramIsX))),Yr=ee(u?Ie.yanchor:P8.midRange(Pr?[Ie.y0,Ie.y1]:ko.extractPathCoords(Ie.path,pc.paramIsY)));if(mr=ko.roundPositionForSharpStrokeRendering(mr,$e),Yr=ko.roundPositionForSharpStrokeRendering(Yr,$e),s&&u){var ue="M"+(mr-1-$e)+","+(Yr-1-$e)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";Br.attr("d",ue)}else if(s){var Ee="M"+(mr-1-$e)+","+(Yr-9-$e)+"v18 h2 v-18 Z";Br.attr("d",Ee)}else{var Tr="M"+(mr-9-$e)+","+(Yr-1-$e)+"h18 v2 h-18 Z";Br.attr("d",Tr)}}}function We(ar){ar.selectAll(".visual-cue").remove()}function Ve(ar,Ie,_r){var Pr=Ie.xref,Br=Ie.yref,$e=dc.getFromId(_r,Pr),mr=dc.getFromId(_r,Br),Yr="";Pr!=="paper"&&!$e.autorange&&(Yr+=Pr),Br!=="paper"&&!mr.autorange&&(Yr+=Br),F3.setClipUrl(ar,Yr?"clip"+_r._fullLayout._uid+Yr:null,_r)}}function dz(e,r,t){return e.replace(pc.segmentRE,function(a){var n=0,i=a.charAt(0),o=pc.paramIsX[i],l=pc.paramIsY[i],s=pc.numParams[i],u=a.slice(1).replace(pc.paramRE,function(f){return n>=s||(o[n]?f=r(f):l[n]&&(f=t(f)),n++),f});return i+u})}function Kpe(e,r){if(R3(e)){var t=r.node(),a=+t.getAttribute("data-index");if(a>=0){if(a===e._fullLayout._activeShapeIndex){pz(e);return}e._fullLayout._activeShapeIndex=a,e._fullLayout._deactivateShape=pz,z8(e)}}}function pz(e){if(R3(e)){var r=e._fullLayout._activeShapeIndex;r>=0&&(yz(e),delete e._fullLayout._activeShapeIndex,z8(e))}}function Qpe(e){if(R3(e)){yz(e);var r=e._fullLayout._activeShapeIndex,t=(e.layout||{}).shapes||[];if(r{"use strict";var xh=or()._,eme=function(e){return{DIALOG_TITLE:xh(e,"Share chart"),DIALOG_MESSAGE_CLOUD:xh(e,"This chart will be uploaded to {Plotly Cloud} to create a sharing link. Only you can see it until you change its visibility."),DIALOG_MESSAGE_CLOUD_ACCOUNT:xh(e,"If you don't have a Plotly Cloud account yet, you'll have a chance to create one."),DIALOG_MESSAGE_OTHER:xh(e,"This chart will be sent to {serverUrl}."),DIALOG_CANCEL:xh(e,"Cancel"),DIALOG_CONFIRM:xh(e,"Share")}};_z.exports=eme});var Mz=B((WFe,Tz)=>{"use strict";var Az=la(),{dfltConfig:rme}=nf(),tme=wz(),ame=(e,r,t,a,n)=>{let i=tme(e),o=r.append("div").classed("plotly-cloud-dialog-box",!0);if(o.append("div").classed("plotly-cloud-dialog-title",!0).text(i.DIALOG_TITLE),t===rme.plotlyServerURL){let s=o.append("div").classed("plotly-cloud-dialog-message",!0),u=new URL(t).origin,f=i.DIALOG_MESSAGE_CLOUD.split(/(\{|\})/),c=f[0],v=f[2],d=f[4];s.append("span").text(c),s.append("a").classed("plotly-cloud-dialog-message--hostname",!0).attr("href",u).attr("target","_blank").text(v),s.append("span").text(d),s.append("div").classed("plotly-cloud-dialog-message--account",!0).text(i.DIALOG_MESSAGE_CLOUD_ACCOUNT)}else{let s=new URL(t),u=s.hostname,f=s.origin,c=i.DIALOG_MESSAGE_OTHER.split(/(\{|\})/),v=c[0],d=c[4],p=o.append("div").classed("plotly-cloud-dialog-message",!0);p.append("span").text(v),p.append("a").classed("plotly-cloud-dialog-message--hostname",!0).attr("href",f).attr("target","_blank").text(u),p.append("span").text(d)}let l=o.append("div").classed("plotly-cloud-dialog-buttons",!0);l.append("button").classed("plotly-cloud-dialog-btn",!0).classed("plotly-cloud-dialog-btn--cancel",!0).text(i.DIALOG_CANCEL).on("click",n),l.append("button").classed("plotly-cloud-dialog-btn",!0).classed("plotly-cloud-dialog-btn--confirm",!0).text(i.DIALOG_CONFIRM).on("click",a)},nme=(e,r,t)=>{let a=Az.select(e._fullLayout._paperdiv.node());a.selectAll(".plotly-cloud-dialog").remove();let n=a.append("div").classed("plotly-cloud-dialog",!0),i=()=>{n.remove(),document.removeEventListener("keydown",o)},o=l=>{(l.key==="Escape"||l.keyCode===27)&&i()};document.addEventListener("keydown",o),n.on("click",()=>{Az.event.target===n.node()&&i()}),ame(e,n,r,()=>{i(),t()},i)};Tz.exports=nme});var O8=B((ZFe,qz)=>{"use strict";var Xo=Pt(),ime=di(),Sz=hn(),_a=x3(),ome=P3().eraseActiveShape,lme=Mz(),_h=or(),oa=_h._,ga={};qz.exports=ga;ga.toImage={name:"toImage",title:function(e){var r=e._context.toImageButtonOptions||{},t=r.format||"png";return t==="png"?oa(e,"Download plot as a PNG"):oa(e,"Download plot")},icon:_a.camera,click:function(e){var r=e._context.toImageButtonOptions,t={format:r.format||"png"};_h.notifier(oa(e,"Preparing image - this may take a few seconds"),"long",e),["filename","width","height","scale"].forEach(function(a){a in r&&(t[a]=r[a])}),Xo.call("downloadImage",e,t).then(function(a){_h.notifier(oa(e,"Image download succeeded")+" - "+a,"long",e)}).catch(function(){_h.notifier(oa(e,"Sorry, there was a problem downloading your image!"),"long",e)})}};ga.downloadJson={name:"downloadJson",title:function(e){return oa(e,"Download plot as JSON")},icon:_a.curlybraces,click:function(e){Xo.call("downloadImage",e,{format:"full-json"}).then(function(r){_h.notifier(oa(e,"JSON download succeeded")+" - "+r,"long",e)}).catch(function(){_h.notifier(oa(e,"Sorry, there was a problem downloading your JSON file!"),"long",e)})}};ga.sendChartToCloud={name:"sendChartToCloud",title:function(e){return oa(e,"Share chart...")},icon:_a.cloudupload,click:function(e){var r=(window.PLOTLYENV||{}).BASE_URL||e._context.plotlyServerURL;if(!r){console.error("No destination URL provided (plotlyServerURL is empty)");return}var t;try{t=new URL(r)}catch(n){console.error("Invalid plotlyServerURL: "+r);return}let a=["http:","https:"];if(!a.includes(t.protocol)){console.error(`Invalid protocol '${t.protocol}' in plotlyServerURL '${r}'. Must be one of: ${a.join(", ")}`);return}lme(e,r,function(){ime.sendDataToCloud(e,r)})}};ga.zoom2d={name:"zoom2d",_cat:"zoom",title:function(e){return oa(e,"Zoom")},attr:"dragmode",val:"zoom",icon:_a.zoombox,click:Qi};ga.pan2d={name:"pan2d",_cat:"pan",title:function(e){return oa(e,"Pan")},attr:"dragmode",val:"pan",icon:_a.pan,click:Qi};ga.select2d={name:"select2d",_cat:"select",title:function(e){return oa(e,"Box Select")},attr:"dragmode",val:"select",icon:_a.selectbox,click:Qi};ga.lasso2d={name:"lasso2d",_cat:"lasso",title:function(e){return oa(e,"Lasso Select")},attr:"dragmode",val:"lasso",icon:_a.lasso,click:Qi};ga.drawclosedpath={name:"drawclosedpath",title:function(e){return oa(e,"Draw closed freeform")},attr:"dragmode",val:"drawclosedpath",icon:_a.drawclosedpath,click:Qi};ga.drawopenpath={name:"drawopenpath",title:function(e){return oa(e,"Draw open freeform")},attr:"dragmode",val:"drawopenpath",icon:_a.drawopenpath,click:Qi};ga.drawline={name:"drawline",title:function(e){return oa(e,"Draw line")},attr:"dragmode",val:"drawline",icon:_a.drawline,click:Qi};ga.drawrect={name:"drawrect",title:function(e){return oa(e,"Draw rectangle")},attr:"dragmode",val:"drawrect",icon:_a.drawrect,click:Qi};ga.drawcircle={name:"drawcircle",title:function(e){return oa(e,"Draw circle")},attr:"dragmode",val:"drawcircle",icon:_a.drawcircle,click:Qi};ga.eraseshape={name:"eraseshape",title:function(e){return oa(e,"Erase active shape")},icon:_a.eraseshape,click:ome};ga.zoomIn2d={name:"zoomIn2d",_cat:"zoomin",title:function(e){return oa(e,"Zoom in")},attr:"zoom",val:"in",icon:_a.zoom_plus,click:Qi};ga.zoomOut2d={name:"zoomOut2d",_cat:"zoomout",title:function(e){return oa(e,"Zoom out")},attr:"zoom",val:"out",icon:_a.zoom_minus,click:Qi};ga.autoScale2d={name:"autoScale2d",_cat:"autoscale",title:function(e){return oa(e,"Autoscale")},attr:"zoom",val:"auto",icon:_a.autoscale,click:Qi};ga.resetScale2d={name:"resetScale2d",_cat:"resetscale",title:function(e){return oa(e,"Reset axes")},attr:"zoom",val:"reset",icon:_a.home,click:Qi};ga.hoverClosestCartesian={name:"hoverClosestCartesian",_cat:"hoverclosest",title:function(e){return oa(e,"Show closest data on hover")},attr:"hovermode",val:"closest",icon:_a.tooltip_basic,gravity:"ne",click:Qi};ga.hoverCompareCartesian={name:"hoverCompareCartesian",_cat:"hoverCompare",title:function(e){return oa(e,"Compare data on hover")},attr:"hovermode",val:function(e){return e._fullLayout._isHoriz?"y":"x"},icon:_a.tooltip_compare,gravity:"ne",click:Qi};function Qi(e,r){var t=r.currentTarget,a=t.getAttribute("data-attr"),n=t.getAttribute("data-val")||!0,i=e._fullLayout,o={},l=Sz.list(e,null,!0),s=i._cartesianSpikesEnabled,u,f;if(a==="zoom"){var c=n==="in"?.5:2,v=(1+c)/2,d=(1-c)/2,p,m;for(f=0;f-k),[m,y]=c.invert(f.midPt),{minscale:b}=u.projection,T=(l=u.projection.maxscale)!=null?l:1/0,_=Math.min(b,T),x=Math.max(b,T),w=n==="in"?kz*v:1/kz*v;w>x?w=x:w<_&&(w=_),w!==v&&Xo.call("_guiRelayout",e,{[s+".projection.scale"]:w,[s+".projection.rotation.lon"]:d,[s+".projection.rotation.lat"]:p,[s+".center.lon"]:m,[s+".center.lat"]:y,[s+".fitbounds"]:!1})}}a==="reset"&&N3(e,"geo")}ga.hoverClosestPie={name:"hoverClosestPie",_cat:"hoverclosest",title:function(e){return oa(e,"Toggle show closest data on hover")},attr:"hovermode",val:"closest",icon:_a.tooltip_basic,gravity:"ne",click:Lz};function Dz(e){var r=e._fullLayout;return r.hovermode?!1:r._has("cartesian")?r._isHoriz?"y":"x":"closest"}function Lz(e){var r=Dz(e);Xo.call("_guiRelayout",e,"hovermode",r)}ga.resetViewSankey={name:"resetSankeyGroup",title:function(e){return oa(e,"Reset view")},icon:_a.home,click:function(e){for(var r={"node.groups":[],"node.x":[],"node.y":[]},t=0;t{"use strict";var Fz=O8(),cme=Object.keys(Fz),Rz=["drawline","drawopenpath","drawclosedpath","drawcircle","drawrect","eraseshape"],Pz=["v1hovermode","hoverclosest","hovercompare","togglehover","togglespikelines"].concat(Rz,["downloadJson"]),wh=[],vme=function(e){if(Pz.indexOf(e._cat||e.name)===-1){var r=e.name,t=(e._cat||e.name).toLowerCase();wh.indexOf(r)===-1&&wh.push(r),wh.indexOf(t)===-1&&wh.push(t)}};cme.forEach(function(e){vme(Fz[e])});wh.sort();Nz.exports={DRAW_MODES:Rz,backButtons:Pz,foreButtons:wh}});var G8={};ja(G8,{default:()=>dme});var U8,hme,dme,Y8=Ja(()=>{"use strict";U8=c2(H8()),hme={editType:"modebar",orientation:{valType:"enumerated",values:["v","h"],dflt:"h",editType:"modebar",description:"Sets the orientation of the modebar."},bgcolor:{valType:"color",editType:"modebar",description:"Sets the background color of the modebar."},color:{valType:"color",editType:"modebar",description:"Sets the color of the icons in the modebar."},activecolor:{valType:"color",editType:"modebar",description:"Sets the color of the active or hovered on icons in the modebar."},uirevision:{valType:"any",editType:"none",description:["Controls persistence of user-driven changes related to the modebar,","including `hovermode`, `dragmode`, and `showspikes` at both the","root level and inside subplots. Defaults to `layout.uirevision`."].join(" ")},add:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar",description:["Determines which predefined modebar buttons to add.","Please note that these buttons will only be shown if they are","compatible with all trace types used in a graph.","Similar to `config.modeBarButtonsToAdd` option.",`This may include *${U8.default.backButtons.join("*, *")}*.`].join(" ")},remove:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar",description:["Determines which predefined modebar buttons to remove.","Similar to `config.modeBarButtonsToRemove` option.",`This may include *${U8.default.foreButtons.join("*, *")}*.`].join(" ")}},dme=hme});var Bz=B((jFe,zz)=>{"use strict";var pme=or(),b1=Kt(),mme=Ra(),yme=(Y8(),vr(G8)).default;zz.exports=function(r,t){var a=r.modebar||{},n=mme.newContainer(t,"modebar");function i(l,s){return pme.coerce(a,n,yme,l,s)}i("orientation"),i("bgcolor",b1.addOpacity(t.paper_bgcolor,.5));var o=b1.contrast(b1.rgb(t.modebar.bgcolor));i("color",b1.addOpacity(o,.3)),i("activecolor",b1.addOpacity(o,.7)),i("uirevision",t.uirevision),i("add"),i("remove")}});var Uz=B(($Fe,Hz)=>{"use strict";var V8=la(),gme=da(),B3=or(),Iz=x3(),bme=v2().version,xme=new DOMParser;function Oz(e){this.container=e.container,this.element=document.createElement("div"),this.update(e.graphInfo,e.buttons),this.container.appendChild(this.element)}var Es=Oz.prototype;Es.update=function(e,r){this.graphInfo=e;var t=this.graphInfo._context,a=this.graphInfo._fullLayout,n="modebar-"+a._uid;this.element.setAttribute("id",n),this.element.setAttribute("role","toolbar"),this._uid=n,this.element.className="modebar modebar--custom",t.displayModeBar==="hover"&&(this.element.className+=" modebar--hover ease-bg"),a.modebar.orientation==="v"&&(this.element.className+=" vertical",r=r.reverse());var i=a.modebar,o="#"+n+" .modebar-group";document.querySelectorAll(o).forEach(function(c){c.style.backgroundColor=i.bgcolor});var l=!this.hasButtons(r),s=this.hasLogo!==t.displaylogo,u=this.locale!==t.locale;if(this.locale=t.locale,(l||s||u)&&(this.removeAllButtons(),this.updateButtons(r),t.watermark||t.displaylogo)){var f=this.getLogo();t.watermark&&(f.className=f.className+" watermark"),a.modebar.orientation==="v"?this.element.insertBefore(f,this.element.childNodes[0]):this.element.appendChild(f),this.hasLogo=!0}this.updateActiveButton(),B3.setStyleOnHover("#"+n+" .modebar-btn",".active",".icon path","fill: "+i.activecolor,"fill: "+i.color,this.element)};Es.updateButtons=function(e){var r=this;this.buttons=e,this.buttonElements=[],this.buttonsNames=[],this.buttons.forEach(function(t){var a=r.createGroup();t.forEach(function(n){var i=n.name;if(!i)throw new Error("must provide button 'name' in button config");if(r.buttonsNames.indexOf(i)!==-1)throw new Error("button name '"+i+"' is taken");r.buttonsNames.push(i);var o=r.createButton(n);r.buttonElements.push(o),a.appendChild(o)}),r.element.appendChild(a)})};Es.createGroup=function(){var e=document.createElement("div");e.className="modebar-group";var r=this.graphInfo._fullLayout.modebar;return e.style.backgroundColor=r.bgcolor,e};Es.createButton=function(e){var r=this,t=document.createElement("button");t.setAttribute("type","button"),t.setAttribute("rel","tooltip"),t.className="modebar-btn";var a=e.title;a===void 0?a=e.name:typeof a=="function"&&(a=a(this.graphInfo)),(a||a===0)&&(t.setAttribute("data-title",a),t.setAttribute("aria-label",a)),e.attr!==void 0&&t.setAttribute("data-attr",e.attr);var n=e.val;n!==void 0&&(typeof n=="function"&&(n=n(this.graphInfo)),t.setAttribute("data-val",n));var i=e.click;if(typeof i!="function")throw new Error("must provide button 'click' function in button config");t.addEventListener("click",function(l){e.click(r.graphInfo,l),r.updateActiveButton(l.currentTarget)}),t.setAttribute("data-toggle",e.toggle||!1),e.toggle&&V8.select(t).classed("active",!0);var o=e.icon;return typeof o=="function"?t.appendChild(o()):t.appendChild(this.createIcon(o||Iz.question)),t.setAttribute("data-gravity",e.gravity||"n"),t};Es.createIcon=function(e){var r=gme(e.height)?Number(e.height):e.ascent-e.descent,t="http://www.w3.org/2000/svg",a;if(e.path){a=document.createElementNS(t,"svg"),a.setAttribute("viewBox",[0,0,e.width,r].join(" ")),a.setAttribute("class","icon");var n=document.createElementNS(t,"path");n.setAttribute("d",e.path),e.transform?n.setAttribute("transform",e.transform):e.ascent!==void 0&&n.setAttribute("transform","matrix(1 0 0 -1 0 "+e.ascent+")"),a.appendChild(n)}if(e.svg){var i=xme.parseFromString(e.svg,"application/xml");a=i.childNodes[0]}return a.setAttribute("height","1em"),a.setAttribute("width","1em"),a};Es.updateActiveButton=function(e){var r=this.graphInfo._fullLayout,t=e!==void 0?e.getAttribute("data-attr"):null;this.buttonElements.forEach(function(a){var n=a.getAttribute("data-val")||!0,i=a.getAttribute("data-attr"),o=a.getAttribute("data-toggle")==="true",l=V8.select(a),s=function(c,v){var d=r.modebar,p=c.querySelector(".icon path");p&&(v||c.matches(":hover")?p.style.fill=d.activecolor:p.style.fill=d.color)};if(o){if(i===t){var u=!l.classed("active");l.classed("active",u),s(a,u)}}else{var f=i===null?i:B3.nestedProperty(r,i).get();l.classed("active",f===n),s(a,f===n)}})};Es.hasButtons=function(e){var r=this.buttons;if(!r||e.length!==r.length)return!1;for(var t=0;t{"use strict";var Ame=hn(),Gz=Ti(),X8=Pt(),Tme=xs().isUnifiedHover,Mme=Uz(),I3=O8(),kme=H8().DRAW_MODES,Sme=or().extendDeep;Yz.exports=function(r){var t=r._fullLayout,a=r._context,n=t._modeBar;if(!a.displayModeBar&&!a.watermark){n&&(n.destroy(),delete t._modeBar);return}if(!Array.isArray(a.modeBarButtonsToRemove))throw new Error(["*modeBarButtonsToRemove* configuration options","must be an array."].join(" "));if(!Array.isArray(a.modeBarButtonsToAdd))throw new Error(["*modeBarButtonsToAdd* configuration options","must be an array."].join(" "));var i=a.modeBarButtons,o;Array.isArray(i)&&i.length?o=Fme(i):!a.displayModeBar&&a.watermark?o=[]:o=Cme(r),n?n.update(r,o):t._modeBar=Mme(r,o)};function Cme(e){var r=e._fullLayout,t=e._fullData,a=e._context;function n(G,Y){if(typeof Y=="string"){if(Y.toLowerCase()===G.toLowerCase())return!0}else{var Z=Y.name,j=Y._cat||Y.name;if(Z===G||j===G.toLowerCase())return!0}return!1}var i=r.modebar.add;typeof i=="string"&&(i=[i]);var o=r.modebar.remove;typeof o=="string"&&(o=[o]);var l=a.modeBarButtonsToAdd.concat(i.filter(function(G){for(var Y=0;Y1?(E=["toggleHover"],F=["resetViews"]):c?(C=["zoomInGeo","zoomOutGeo"],E=["hoverClosestGeo"],F=["resetGeo"]):f?(E=["hoverClosest3d"],F=["resetCameraDefault3d","resetCameraLastSave3d"]):m?(C=["zoomInMap","zoomOutMap"],E=["toggleHover"],F=["resetViewMap"]):v?E=["hoverClosestPie"]:T?(E=["hoverClosestCartesian","hoverCompareCartesian"],F=["resetViewSankey"]):E=["toggleHover"],u&&E.push("toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"),(Eme(t)||x)&&(E=[]),u&&!_&&(C=["zoomIn2d","zoomOut2d","autoScale2d"],F[0]!=="resetViews"&&(F=["resetScale2d"])),f?P=["zoom3d","pan3d","orbitRotation","tableRotation"]:u&&!_||p?P=["zoom2d","pan2d"]:m||c?P=["pan2d"]:y&&(P=["zoom2d"]),Lme(t)&&P.push("select2d","lasso2d");var q=[],z=function(G){q.indexOf(G)===-1&&E.indexOf(G)!==-1&&q.push(G)};if(Array.isArray(l)){for(var I=[],U=0;U{"use strict";Xz.exports={moduleType:"component",name:"modebar",layoutAttributes:(Y8(),vr(G8)).default,supplyLayoutDefaults:Bz(),manage:Vz()}});var Z8=B((eRe,Wz)=>{"use strict";var Rme=(Oi(),vr(Ii)).FROM_BL;Wz.exports=function(r,t,a){a===void 0&&(a=Rme[r.constraintoward||"center"]);var n=[r.r2l(r.range[0]),r.r2l(r.range[1])],i=n[0]+(n[1]-n[0])*a;r.range=r._input.range=[r.l2r(i+(n[0]-i)*t),r.l2r(i+(n[1]-i)*t)],r.setScale()}});var _1=B(x1=>{"use strict";var mc=or(),J8=uh(),Gl=hn().id2name,Pme=sl(),Zz=Z8(),Nme=Hg(),zme=(Wn(),vr(ri)).ALMOST_EQUAL,Bme=(Oi(),vr(Ii)).FROM_BL;x1.handleDefaults=function(e,r,t){var a=t.axIds,n=t.axHasImage,i=r._axisConstraintGroups=[],o=r._axisMatchGroups=[],l,s,u,f,c,v,d,p;for(l=0;li?t.slice(i):a.slice(n))+o}function Ome(e,r){for(var t=r._size,a=t.h/t.w,n={},i=Object.keys(e),o=0;ozme*p&&!T)){for(i=0;iq&&ZF&&(F=Z);var ee=(F-E)/(2*P);c/=ee,E=s.l2r(E),F=s.l2r(F),s.range=s._input.range=k{"use strict";var H3=la(),eo=Pt(),Wo=di(),cl=or(),K8=Ei(),Q8=b3(),w1=Kt(),Ah=Sa(),Kz=r1(),aB=W8(),A1=en(),bu=(Oi(),vr(Ii)),nB=_1(),Hme=nB.enforce,Ume=nB.clean,Qz=uh().doAutoRange,iB="start",Gme="middle",oB="end",Yme=(ni(),vr(ai)).zindexSeparator;mi.layoutStyles=function(e){return cl.syncOrAsync([Wo.doAutoMargin,Xme],e)};function Vme(e,r,t){for(var a=0;a=e[1]||n[1]<=e[0])&&i[0]r[0])return!0}return!1}function Xme(e){var r=e._fullLayout,t=r._size,a=t.p,n=A1.list(e,"",!0),i,o,l,s,u,f;if(r._paperdiv.style({width:e._context.responsive&&r.autosize&&!e._context._hasZeroWidth&&!e.layout.width?"100%":r.width+"px",height:e._context.responsive&&r.autosize&&!e._context._hasZeroHeight&&!e.layout.height?"100%":r.height+"px"}).selectAll(".main-svg").call(Ah.setSize,r.width,r.height),e._context.setBackground(e,r.paper_bgcolor),mi.drawMainTitle(e),aB.manage(e),!r._has("cartesian"))return Wo.previousPromises(e);function c(ge,He,ur){var qe=ge._lw/2;if(ge._id.charAt(0)==="x"){if(He){if(ur==="top")return He._offset-a-qe}else return t.t+t.h*(1-(ge.position||0))+qe%1;return He._offset+He._length+a+qe}if(He){if(ur==="right")return He._offset+He._length+a+qe}else return t.l+t.w*(ge.position||0)+qe%1;return He._offset-a-qe}for(i=0;i0){jme(e,i,u,s),l.attr({x:o,y:i,"text-anchor":a,dy:tB(r.yanchor)}).call(K8.positionText,o,i);var f=(r.text.match(K8.BR_TAG_ALL)||[]).length;if(f){var c=bu.LINE_SPACING*f+bu.MID_SHIFT;r.y===0&&(c=-c),l.selectAll(".line").each(function(){var y=+this.getAttribute("dy").slice(0,-2)-c+"em";this.setAttribute("dy",y)})}var v=H3.select(e).selectAll(".gtitle-subtitle");if(v.node()){var d=l.node().getBBox(),p=d.y+d.height,m=p+Kz.SUBTITLE_PADDING_EM*r.subtitle.font.size;v.attr({x:o,y:m,"text-anchor":a,dy:tB(r.yanchor)}).call(K8.positionText,o,m)}}}};function Wme(e,r,t,a,n){var i=r.yref==="paper"?e._fullLayout._size.h:e._fullLayout.height,o=cl.isTopAnchor(r)?a:a-n,l=t==="b"?i-o:o;return cl.isTopAnchor(r)&&t==="t"||cl.isBottomAnchor(r)&&t==="b"?!1:l.5?"t":"b",o=e._fullLayout.margin[i],l=0;return r.yref==="paper"?l=t+r.pad.t+r.pad.b:r.yref==="container"&&(l=Zme(i,a,n,e._fullLayout.height,t)+r.pad.t+r.pad.b),l>o?l:0}function jme(e,r,t,a){var n="title.automargin",i=e._fullLayout.title,o=i.y>.5?"t":"b",l={x:i.x,y:i.y,t:0,b:0},s={};i.yref==="paper"&&Wme(e,i,o,r,a)?l[o]=t:i.yref==="container"&&(s[o]=t,e._fullLayout._reservedMargin[n]=s),Wo.allowAutoMargin(e,n),Wo.autoMargin(e,n,l)}function $me(e,r){var t=e.title,a=e._size,n=0;return r===iB?n=t.pad.l:r===oB&&(n=-t.pad.r),t.xref==="paper"?a.l+a.w*t.x+n:e.width*t.x+n}function Kme(e,r){var t=e.title,a=e._size,n=0;return r==="0em"||!r?n=-t.pad.b:r===bu.CAP_SHIFT+"em"&&(n=t.pad.t),t.y==="auto"?a.t/2:t.yref==="paper"?a.t+a.h-a.h*t.y+n:e.height-e.height*t.y+n}function tB(e){return e==="top"?bu.CAP_SHIFT+.3+"em":e==="bottom"?"-0.3em":bu.MID_SHIFT+"em"}function Qme(e){var r=e.title,t=Gme;return cl.isRightAnchor(r)?t=oB:cl.isLeftAnchor(r)&&(t=iB),t}function eye(e){var r=e.title,t="0em";return cl.isTopAnchor(r)?t=bu.CAP_SHIFT+"em":cl.isMiddleAnchor(r)&&(t=bu.MID_SHIFT+"em"),t}mi.doTraceStyle=function(e){var r=e.calcdata,t=[],a;for(a=0;a{"use strict";var rye=Ef().readPaths,tye=L3(),lB=gf().clearOutlineControllers,ew=Kt(),sB=Sa(),aye=Ra().arrayEditor,uB=Rf(),nye=uB.getPathString;cB.exports={draw:G3,drawOne:fB,activateLastSelection:lye};function G3(e){var r=e._fullLayout;lB(e),r._selectionLayer.selectAll("path").remove();for(var t in r._plots){var a=r._plots[t].selectionLayer;a&&a.selectAll("path").remove()}for(var n=0;n=0;y--){var b=o.append("path").attr(s).style("opacity",y?.1:u).call(ew.stroke,c).call(ew.fill,f).call(sB.dashLine,y?"solid":d,y?4+v:v);if(iye(b,e,a),p){var T=aye(e.layout,"selections",a);b.style({cursor:"move"});var _={element:b.node(),plotinfo:n,gd:e,editHelpers:T,isActiveSelection:!0},x=rye(l,e);tye(x,b,_)}else b.style("pointer-events",y?"all":"none");m[y]=b}var w=m[0],k=m[1];k.node().addEventListener("click",function(){return oye(e,w)})}}function iye(e,r,t){var a=t.xref+t.yref;sB.setClipUrl(e,"clip"+r._fullLayout._uid+a,r)}function oye(e,r){if(Y3(e)){var t=r.node(),a=+t.getAttribute("data-index");if(a>=0){if(a===e._fullLayout._activeSelectionIndex){rw(e);return}e._fullLayout._activeSelectionIndex=a,e._fullLayout._deactivateSelection=rw,G3(e)}}}function lye(e){if(Y3(e)){var r=e._fullLayout.selections.length-1;e._fullLayout._activeSelectionIndex=r,e._fullLayout._deactivateSelection=rw,G3(e)}}function rw(e){if(Y3(e)){var r=e._fullLayout._activeSelectionIndex;r>=0&&(lB(e),delete e._fullLayout._activeSelectionIndex,G3(e))}}});var hB=B((nRe,vB)=>{function sye(){var e,r=0,t=!1;function a(n,i){return e.list.push({type:n,data:i?JSON.parse(JSON.stringify(i)):void 0}),e}return e={list:[],segmentId:function(){return r++},checkIntersection:function(n,i){return a("check",{seg1:n,seg2:i})},segmentChop:function(n,i){return a("div_seg",{seg:n,pt:i}),a("chop",{seg:n,pt:i})},statusRemove:function(n){return a("pop_seg",{seg:n})},segmentUpdate:function(n){return a("seg_update",{seg:n})},segmentNew:function(n,i){return a("new_seg",{seg:n,primary:i})},segmentRemove:function(n){return a("rem_seg",{seg:n})},tempStatus:function(n,i,o){return a("temp_status",{seg:n,above:i,below:o})},rewind:function(n){return a("rewind",{seg:n})},status:function(n,i,o){return a("status",{seg:n,above:i,below:o})},vert:function(n){return n===t?e:(t=n,a("vert",{x:n}))},log:function(n){return typeof n!="string"&&(n=JSON.stringify(n,!1," ")),a("log",{txt:n})},reset:function(){return a("reset")},selected:function(n){return a("selected",{segs:n})},chainStart:function(n){return a("chain_start",{seg:n})},chainRemoveHead:function(n,i){return a("chain_rem_head",{index:n,pt:i})},chainRemoveTail:function(n,i){return a("chain_rem_tail",{index:n,pt:i})},chainNew:function(n,i){return a("chain_new",{pt1:n,pt2:i})},chainMatch:function(n){return a("chain_match",{index:n})},chainClose:function(n){return a("chain_close",{index:n})},chainAddHead:function(n,i){return a("chain_add_head",{index:n,pt:i})},chainAddTail:function(n,i){return a("chain_add_tail",{index:n,pt:i})},chainConnect:function(n,i){return a("chain_con",{index1:n,index2:i})},chainReverse:function(n){return a("chain_rev",{index:n})},chainJoin:function(n,i){return a("chain_join",{index1:n,index2:i})},done:function(){return a("done")}},e}vB.exports=sye});var pB=B((iRe,dB)=>{function uye(e){typeof e!="number"&&(e=1e-10);var r={epsilon:function(t){return typeof t=="number"&&(e=t),e},pointAboveOrOnLine:function(t,a,n){var i=a[0],o=a[1],l=n[0],s=n[1],u=t[0],f=t[1];return(l-i)*(f-o)-(s-o)*(u-i)>=-e},pointBetween:function(t,a,n){var i=t[1]-a[1],o=n[0]-a[0],l=t[0]-a[0],s=n[1]-a[1],u=l*o+i*s;if(u-e)},pointsSameX:function(t,a){return Math.abs(t[0]-a[0])e!=l-i>e&&(o-f)*(i-c)/(l-c)+f-n>e&&(s=!s),o=f,l=c}return s}};return r}dB.exports=uye});var yB=B((oRe,mB)=>{var fye={create:function(){var e={root:{root:!0,next:null},exists:function(r){return!(r===null||r===e.root)},isEmpty:function(){return e.root.next===null},getHead:function(){return e.root.next},insertBefore:function(r,t){for(var a=e.root,n=e.root.next;n!==null;){if(t(n)){r.prev=n.prev,r.next=n,n.prev.next=r,n.prev=r;return}a=n,n=n.next}a.next=r,r.prev=a,r.next=null},findTransition:function(r){for(var t=e.root,a=e.root.next;a!==null&&!r(a);)t=a,a=a.next;return{before:t===e.root?null:t,after:a,insert:function(n){return n.prev=t,n.next=a,t.next=n,a!==null&&(a.prev=n),n}}}};return e},node:function(e){return e.prev=null,e.next=null,e.remove=function(){e.prev.next=e.next,e.next&&(e.next.prev=e.prev),e.prev=null,e.next=null},e}};mB.exports=fye});var bB=B((lRe,gB)=>{var T1=yB();function cye(e,r,t){function a(p,m){return{id:t?t.segmentId():-1,start:p,end:m,myFill:{above:null,below:null},otherFill:null}}function n(p,m,y){return{id:t?t.segmentId():-1,start:p,end:m,myFill:{above:y.myFill.above,below:y.myFill.below},otherFill:null}}var i=T1.create();function o(p,m,y,b,T,_){var x=r.pointsCompare(m,T);return x!==0?x:r.pointsSame(y,_)?0:p!==b?p?1:-1:r.pointAboveOrOnLine(y,b?T:_,b?_:T)?1:-1}function l(p,m){i.insertBefore(p,function(y){var b=o(p.isStart,p.pt,m,y.isStart,y.pt,y.other.pt);return b<0})}function s(p,m){var y=T1.node({isStart:!0,pt:p.start,seg:p,primary:m,other:null,status:null});return l(y,p.end),y}function u(p,m,y){var b=T1.node({isStart:!1,pt:m.end,seg:m,primary:y,other:p,status:null});p.other=b,l(b,p.pt)}function f(p,m){var y=s(p,m);return u(y,p,m),y}function c(p,m){t&&t.segmentChop(p.seg,m),p.other.remove(),p.seg.end=m,p.other.pt=m,l(p.other,p.pt)}function v(p,m){var y=n(m,p.seg.end,p.seg);return c(p,m),f(y,p.primary)}function d(p,m){var y=T1.create();function b(U,V){var W=U.seg.start,G=U.seg.end,Y=V.seg.start,Z=V.seg.end;return r.pointsCollinear(W,Y,Z)?r.pointsCollinear(G,Y,Z)||r.pointAboveOrOnLine(G,Y,Z)?1:-1:r.pointAboveOrOnLine(W,Y,Z)?1:-1}function T(U){return y.findTransition(function(V){var W=b(U,V.ev);return W>0})}function _(U,V){var W=U.seg,G=V.seg,Y=W.start,Z=W.end,j=G.start,ee=G.end;t&&t.checkIntersection(W,G);var ye=r.linesIntersect(Y,Z,j,ee);if(ye===!1){if(!r.pointsCollinear(Y,Z,j)||r.pointsSame(Y,ee)||r.pointsSame(Z,j))return!1;var fe=r.pointsSame(Y,j),he=r.pointsSame(Z,ee);if(fe&&he)return V;var ae=!fe&&r.pointBetween(Y,j,ee),Le=!he&&r.pointBetween(Z,j,ee);if(fe)return Le?v(V,Z):v(U,ee),V;ae&&(he||(Le?v(V,Z):v(U,ee)),v(V,Y))}else ye.alongA===0&&(ye.alongB===-1?v(U,j):ye.alongB===0?v(U,ye.pt):ye.alongB===1&&v(U,ee)),ye.alongB===0&&(ye.alongA===-1?v(V,Y):ye.alongA===0?v(V,ye.pt):ye.alongA===1&&v(V,Z));return!1}for(var x=[];!i.isEmpty();){var w=i.getHead();if(t&&t.vert(w.pt[0]),w.isStart){let U=function(){if(M){var V=_(w,M);if(V)return V}return C?_(w,C):!1};var I=U;t&&t.segmentNew(w.seg,w.primary);var k=T(w),M=k.before?k.before.ev:null,C=k.after?k.after.ev:null;t&&t.tempStatus(w.seg,M?M.seg:!1,C?C.seg:!1);var E=U();if(E){if(e){var F;w.seg.myFill.below===null?F=!0:F=w.seg.myFill.above!==w.seg.myFill.below,F&&(E.seg.myFill.above=!E.seg.myFill.above)}else E.seg.otherFill=w.seg.myFill;t&&t.segmentUpdate(E.seg),w.other.remove(),w.remove()}if(i.getHead()!==w){t&&t.rewind(w.seg);continue}if(e){var F;w.seg.myFill.below===null?F=!0:F=w.seg.myFill.above!==w.seg.myFill.below,C?w.seg.myFill.below=C.seg.myFill.above:w.seg.myFill.below=p,F?w.seg.myFill.above=!w.seg.myFill.below:w.seg.myFill.above=w.seg.myFill.below}else if(w.seg.otherFill===null){var P;C?w.primary===C.primary?P=C.seg.otherFill.above:P=C.seg.myFill.above:P=w.primary?m:p,w.seg.otherFill={above:P,below:P}}t&&t.status(w.seg,M?M.seg:!1,C?C.seg:!1),w.other.status=k.insert(T1.node({ev:w}))}else{var q=w.status;if(q===null)throw new Error("PolyBool: Zero-length segment detected; your epsilon is probably too small or too large");if(y.exists(q.prev)&&y.exists(q.next)&&_(q.prev.ev,q.next.ev),t&&t.statusRemove(q.ev.seg),q.remove(),!w.primary){var z=w.seg.myFill;w.seg.myFill=w.seg.otherFill,w.seg.otherFill=z}x.push(w.seg)}i.getHead().remove()}return t&&t.done(),x}return e?{addRegion:function(p){for(var m,y=p[p.length-1],b=0;b{function vye(e,r,t){var a=[],n=[];return e.forEach(function(i){var o=i.start,l=i.end;if(r.pointsSame(o,l)){console.warn("PolyBool: Warning: Zero-length segment detected; your epsilon is probably too small or too large");return}t&&t.chainStart(i);var s={index:0,matches_head:!1,matches_pt1:!1},u={index:0,matches_head:!1,matches_pt1:!1},f=s;function c(I,U,V){return f.index=I,f.matches_head=U,f.matches_pt1=V,f===s?(f=u,!1):(f=null,!0)}for(var v=0;v{function M1(e,r,t){var a=[];return e.forEach(function(n){var i=(n.myFill.above?8:0)+(n.myFill.below?4:0)+(n.otherFill&&n.otherFill.above?2:0)+(n.otherFill&&n.otherFill.below?1:0);r[i]!==0&&a.push({id:t?t.segmentId():-1,start:n.start,end:n.end,myFill:{above:r[i]===1,below:r[i]===2},otherFill:null})}),t&&t.selected(a),a}var hye={union:function(e,r){return M1(e,[0,2,1,0,2,2,0,0,1,0,1,0,0,0,0,0],r)},intersect:function(e,r){return M1(e,[0,0,0,0,0,2,0,2,0,0,1,1,0,2,1,0],r)},difference:function(e,r){return M1(e,[0,0,0,0,2,0,2,0,1,1,0,0,0,1,2,0],r)},differenceRev:function(e,r){return M1(e,[0,2,1,0,0,0,1,1,0,2,0,2,0,0,0,0],r)},xor:function(e,r){return M1(e,[0,2,1,0,2,0,0,1,1,0,0,2,0,1,2,0],r)}};wB.exports=hye});var MB=B((fRe,TB)=>{var dye={toPolygon:function(e,r){function t(i){if(i.length<=0)return e.segments({inverted:!1,regions:[]});function o(u){var f=u.slice(0,u.length-1);return e.segments({inverted:!1,regions:[f]})}for(var l=o(i[0]),s=1;s{var pye=hB(),mye=pB(),kB=bB(),yye=_B(),k1=AB(),SB=MB(),vl=!1,S1=mye(),So;So={buildLog:function(e){return e===!0?vl=pye():e===!1&&(vl=!1),vl===!1?!1:vl.list},epsilon:function(e){return S1.epsilon(e)},segments:function(e){var r=kB(!0,S1,vl);return e.regions.forEach(r.addRegion),{segments:r.calculate(e.inverted),inverted:e.inverted}},combine:function(e,r){var t=kB(!1,S1,vl);return{combined:t.calculate(e.segments,e.inverted,r.segments,r.inverted),inverted1:e.inverted,inverted2:r.inverted}},selectUnion:function(e){return{segments:k1.union(e.combined,vl),inverted:e.inverted1||e.inverted2}},selectIntersect:function(e){return{segments:k1.intersect(e.combined,vl),inverted:e.inverted1&&e.inverted2}},selectDifference:function(e){return{segments:k1.difference(e.combined,vl),inverted:e.inverted1&&!e.inverted2}},selectDifferenceRev:function(e){return{segments:k1.differenceRev(e.combined,vl),inverted:!e.inverted1&&e.inverted2}},selectXor:function(e){return{segments:k1.xor(e.combined,vl),inverted:e.inverted1!==e.inverted2}},polygon:function(e){return{regions:yye(e.segments,S1,vl),inverted:e.inverted}},polygonFromGeoJSON:function(e){return SB.toPolygon(So,e)},polygonToGeoJSON:function(e){return SB.fromPolygon(So,S1,e)},union:function(e,r){return C1(e,r,So.selectUnion)},intersect:function(e,r){return C1(e,r,So.selectIntersect)},difference:function(e,r){return C1(e,r,So.selectDifference)},differenceRev:function(e,r){return C1(e,r,So.selectDifferenceRev)},xor:function(e,r){return C1(e,r,So.selectXor)}};function C1(e,r,t){var a=So.segments(e),n=So.segments(r),i=So.combine(a,n),o=t(i);return So.polygon(o)}typeof window=="object"&&(window.PolyBool=So);CB.exports=So});var EB=B((vRe,LB)=>{LB.exports=function(r,t,a,n){var i=r[0],o=r[1],l=!1;a===void 0&&(a=0),n===void 0&&(n=t.length);for(var s=n-a,u=0,f=s-1;uo!=p>o&&i<(d-c)*(o-v)/(p-v)+c;m&&(l=!l)}return l}});var nw=B((hRe,qB)=>{"use strict";var aw=Yy().dot,V3=(Wn(),vr(ri)).BADNUM,X3=qB.exports={};X3.tester=function(r){var t=r.slice(),a=t[0][0],n=a,i=t[0][1],o=i,l;for((t[t.length-1][0]!==t[0][0]||t[t.length-1][1]!==t[0][1])&&t.push(t[0]),l=1;ln||b===V3||bo||m&&u(p))}function c(p,m){var y=p[0],b=p[1];if(y===V3||yn||b===V3||bo)return!1;var T=t.length,_=t[0][0],x=t[0][1],w=0,k,M,C,E,F;for(k=1;kMath.max(M,_)||b>Math.max(C,x)))if(bl||Math.abs(aw(c,u))>n)return!0;return!1};X3.filter=function(r,t){var a=[r[0]],n=0,i=0;function o(s){r.push(s);var u=a.length,f=n;a.splice(i+1);for(var c=f+1;c1){var l=r.pop();o(l)}return{addPt:o,raw:r,filtered:a}}});var FB={};ja(FB,{BENDPX:()=>gye,MINSELECT:()=>bye,SELECTDELAY:()=>xye,SELECTID:()=>_ye});var gye,bye,xye,_ye,RB=Ja(()=>{"use strict";gye=1.5,bye=12,xye=100,_ye="-select"});var tI=B((dRe,rI)=>{"use strict";var PB=DB(),wye=EB(),E1=Pt(),Aye=Sa().dashStyle,D1=Kt(),Tye=mu(),Mye=xs().makeEventData,N1=Lf(),kye=N1.freeMode,Sye=N1.rectMode,q1=N1.drawMode,sw=N1.openMode,uw=N1.selectMode,NB=Rf(),zB=(y1(),vr(m1)),UB=L3(),GB=gf().clearOutline,YB=Ef(),iw=YB.handleEllipse,Cye=YB.readPaths,Dye=S3().newShapes,Lye=L8(),Eye=tw().activateLastSelection,Z3=or(),qye=Z3.sorterAsc,VB=nw(),L1=ig(),hl=hn().getFromId,Fye=b3(),Rye=U3().redrawReglTraces,J3=(RB(),vr(FB)),qs=J3.MINSELECT,Pye=VB.filter,fw=VB.tester,cw=A3(),BB=cw.p2r,Nye=cw.axValue,zye=cw.getTransform;function vw(e){return e.subplot!==void 0}function Bye(e,r,t,a,n){var i=!vw(a),o=kye(n),l=Sye(n),s=sw(n),u=q1(n),f=uw(n),c=n==="drawline",v=n==="drawcircle",d=c||v,p=a.gd,m=p._fullLayout,y=f&&m.newselection.mode==="immediate"&&i,b=m._zoomlayer,T=a.element.getBoundingClientRect(),_=a.plotinfo,x=zye(_),w=r-T.left,k=t-T.top;m._calcInverseTransform(p);var M=Z3.apply3DTransform(m._invTransform)(w,k);w=M[0],k=M[1];var C=m._invScaleX,E=m._invScaleY,F=w,P=k,q="M"+w+","+k,z=a.xaxes[0],I=a.yaxes[0],U=z._length,V=I._length,W=e.altKey&&!(q1(n)&&s),G,Y,Z,j,ee,ye,fe;WB(e,p,a),o&&(G=Pye([[w,k]],J3.BENDPX));var he=b.selectAll("path.select-outline-"+_.id).data([1]),ae=u?m.newshape:m.newselection;u&&(a.hasText=ae.label.text||ae.label.texttemplate);var Le=u&&!s?ae.fillcolor:"rgba(0,0,0,0)",ce=ae.line.color||(i?D1.contrast(p._fullLayout.plot_bgcolor):"#7f7f7f");he.enter().append("path").attr("class","select-outline select-outline-"+_.id).style({opacity:u?ae.opacity/2:1,"stroke-dasharray":Aye(ae.line.dash,ae.line.width),"stroke-width":ae.line.width+"px","shape-rendering":"crispEdges"}).call(D1.stroke,ce).call(D1.fill,Le).attr("fill-rule","evenodd").classed("cursor-move",!!u).attr("transform",x).attr("d",q+"Z");var Fe=b.append("path").attr("class","zoombox-corners").style({fill:D1.background,stroke:D1.defaultLine,"stroke-width":1}).attr("transform",x).attr("d","M0,0Z");if(u&&a.hasText){var Re=b.select(".label-temp");Re.empty()&&(Re=b.append("g").classed("label-temp",!0).classed("select-outline",!0).style({opacity:.8}))}var ge=m._uid+J3.SELECTID,He=[],ur=j3(p,a.xaxes,a.yaxes,a.subplot);y&&!e.shiftKey&&(a._clearSubplotSelections=function(){if(i){var Ue=z._id,Ye=I._id;KB(p,Ue,Ye,ur);for(var We=(p.layout||{}).selections||[],Ve=[],ar=!1,Ie=0;Ie=0){p._fullLayout._deactivateShape(p);return}if(!u){var We=m.clickmode;L1.done(ge).then(function(){if(L1.clear(ge),Ue===2){for(he.remove(),ee=0;ee-1&&XB(Ye,p,a.xaxes,a.yaxes,a.subplot,a,he),We==="event"&&P1(p,void 0);Tye.click(p,Ye,_.id)}).catch(Z3.error)}},a.doneFn=function(){Fe.remove(),L1.done(ge).then(function(){L1.clear(ge),!y&&j&&a.selectionDefs&&(j.subtract=W,a.selectionDefs.push(j),a.mergedPolygons.length=0,[].push.apply(a.mergedPolygons,Z)),(y||u)&&F1(a,y),a.doneFnCompleted&&a.doneFnCompleted(He),f&&P1(p,fe)}).catch(Z3.error)}}function XB(e,r,t,a,n,i,o){var l=r._hoverdata,s=r._fullLayout,u=s.clickmode,f=u.indexOf("event")>-1,c=[],v,d,p,m,y,b,T,_,x,w;if(Gye(l)){WB(e,r,i),v=j3(r,t,a,n);var k=Yye(l,v),M=k.pointNumbers.length>0;if(M?Vye(v,k):Xye(v)&&(T=OB(k))){for(o&&o.remove(),w=0;w=0}function Uye(e){return e._fullLayout._activeSelectionIndex>=0}function F1(e,r){var t=e.dragmode,a=e.plotinfo,n=e.gd;Hye(n)&&n._fullLayout._deactivateShape(n),Uye(n)&&n._fullLayout._deactivateSelection(n);var i=n._fullLayout,o=i._zoomlayer,l=q1(t),s=uw(t);if(l||s){var u=o.selectAll(".select-outline-"+a.id);if(u&&n._fullLayout._outlining){var f;l&&(f=Dye(u,e)),f&&E1.call("_guiRelayout",n,{shapes:f});var c;s&&!vw(e)&&(c=Lye(u,e)),c&&(n._fullLayout._noEmitSelectedAtStart=!0,E1.call("_guiRelayout",n,{selections:c}).then(function(){r&&Eye(n)})),n._fullLayout._outlining=!1}}a.selection={},a.selection.selectionDefs=e.selectionDefs=[],a.selection.mergedPolygons=e.mergedPolygons=[]}function IB(e){return e._id}function j3(e,r,t,a){if(!e.calcdata)return[];var n=[],i=r.map(IB),o=t.map(IB),l,s,u;for(u=0;u0,i=n?a[0]:t;return r.selectedpoints?r.selectedpoints.indexOf(i)>-1:!1}function Vye(e,r){var t=[],a,n,i,o;for(o=0;o0&&t.push(a);if(t.length===1&&(i=t[0]===r.searchInfo,i&&(n=r.searchInfo.cd[0].trace,n.selectedpoints.length===r.pointNumbers.length))){for(o=0;o1||(r+=a.selectedpoints.length,r>1)))return!1;return r===1}function R1(e,r,t){var a,n;for(a=0;a-1&&r;if(!o&&r){var Ue=HB(e,!0);if(Ue.length){var Ye=Ue[0].xref,We=Ue[0].yref;if(Ye&&We){var Ve=QB(Ue),ar=eI([hl(e,Ye,"x"),hl(e,We,"y")]);ar(He,Ve)}}e._fullLayout._noEmitSelectedAtStart?e._fullLayout._noEmitSelectedAtStart=!1:qe&&P1(e,He),v._reselect=!1}if(!o&&v._deselect){var Ie=v._deselect;l=Ie.xref,s=Ie.yref,Jye(l,s,f)||KB(e,l,s,a),qe&&(He.points.length?P1(e,He):pw(e)),v._deselect=!1}return{eventData:He,selectionTesters:t}}function Zye(e){var r=e.calcdata;if(r)for(var t=0;t{"use strict";aI.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}]});var z1={};ja(z1,{axisRefDescription:()=>ege});function ege(e,r,t){return[`If set to a ${e} axis id (e.g. *${e}* or *${e}2*),`,`the \`${e}\` position refers to a ${e} coordinate.`,`If set to *paper*, the \`${e}\` position refers to the distance from the`,`${r} of the plotting area in normalized coordinates where *0* (*1*) corresponds`,`to the ${r} (${t}). If set to a ${e} 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 ${r} of the domain of that`,`axis: e.g., *${e}2 domain* refers to the domain of the second ${e}`,`axis and a ${e} position of 0.5 refers to the point between the ${r}`,`and the ${t} of the domain of the second ${e} axis.`].join(" ")}var B1=Ja(()=>{"use strict"});var Th=B((yRe,oI)=>{"use strict";var nI=mw(),iI=Di(),$3=(ni(),vr(ai)),rge=Ra().templatedArray,mRe=(B1(),vr(z1));oI.exports=rge("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:iI({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:nI.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:nI.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",$3.idRegex.x.toString()],editType:"calc"},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",$3.idRegex.y.toString()],editType:"calc"},xref:{valType:"enumerated",values:["paper",$3.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",$3.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:iI({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc"})});var I1={};ja(I1,{PTS_LINESONLY:()=>tge,eventDataKeys:()=>oge,maxScreensAway:()=>ige,minTolerance:()=>age,toleranceGrowth:()=>nge});var tge,age,nge,ige,oge,O1=Ja(()=>{"use strict";tge=20,age=.2,nge=10,ige=20,oge=[]});var yw=B((gRe,lI)=>{"use strict";lI.exports=function(r){return{valType:"color",editType:"style",anim:!0}}});var Nf=B((bRe,pI)=>{"use strict";var sI=$2().axisHoverFormat,{hovertemplateAttrs:lge,texttemplateAttrs:sge,templatefallbackAttrs:uI}=Hv(),fI=Q0(),uge=Di(),cI=uf().dash,fge=uf().pattern,cge=Sa(),vge=(O1(),vr(I1)),H1=Fn().extendFlat,hge=yw();function vI(e){return{valType:"any",dflt:0,editType:"calc"}}function hI(e){return{valType:"any",editType:"calc"}}function dI(e){return{valType:"enumerated",values:["start","middle","end"],dflt:"middle",editType:"calc"}}pI.exports={x:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0},x0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",anim:!0},dx:{valType:"number",dflt:1,editType:"calc",anim:!0},y:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0},y0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",anim:!0},dy:{valType:"number",dflt:1,editType:"calc",anim:!0},xperiod:vI("x"),yperiod:vI("y"),xperiod0:hI("x0"),yperiod0:hI("y0"),xperiodalignment:dI("x"),yperiodalignment:dI("y"),xhoverformat:sI("x"),yhoverformat:sI("y"),offsetgroup:{valType:"string",dflt:"",editType:"calc"},alignmentgroup:{valType:"string",dflt:"",editType:"calc"},stackgroup:{valType:"string",dflt:"",editType:"calc"},orientation:{valType:"enumerated",values:["v","h"],editType:"calc"},groupnorm:{valType:"enumerated",values:["","fraction","percent"],dflt:"",editType:"calc"},stackgaps:{valType:"enumerated",values:["infer zero","interpolate"],dflt:"infer zero",editType:"calc"},text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},texttemplate:sge(),texttemplatefallback:uI({editType:"calc"}),hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"style"},mode:{valType:"flaglist",flags:["lines","markers","text"],extras:["none"],editType:"calc"},hoveron:{valType:"flaglist",flags:["points","fills"],editType:"style"},hovertemplate:lge({},{keys:vge.eventDataKeys}),hovertemplatefallback:uI(),line:{color:{valType:"color",editType:"style",anim:!0},width:{valType:"number",min:0,dflt:2,editType:"style",anim:!0},shape:{valType:"enumerated",values:["linear","spline","hv","vh","hvh","vhv"],dflt:"linear",editType:"plot"},smoothing:{valType:"number",min:0,max:1.3,dflt:1,editType:"plot"},dash:H1({},cI,{editType:"style"}),backoff:{valType:"number",min:0,dflt:"auto",arrayOk:!0,editType:"plot"},simplify:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},connectgaps:{valType:"boolean",dflt:!1,editType:"calc"},cliponaxis:{valType:"boolean",dflt:!0,editType:"plot"},fill:{valType:"enumerated",values:["none","tozeroy","tozerox","tonexty","tonextx","toself","tonext"],editType:"calc"},fillcolor:hge(!0),fillgradient:H1({type:{valType:"enumerated",values:["radial","horizontal","vertical","none"],dflt:"none",editType:"calc"},start:{valType:"number",editType:"calc"},stop:{valType:"number",editType:"calc"},colorscale:{valType:"colorscale",editType:"style"},editType:"calc"}),fillpattern:fge,marker:H1({symbol:{valType:"enumerated",values:cge.symbolList,dflt:"circle",arrayOk:!0,editType:"style"},opacity:{valType:"number",min:0,max:1,arrayOk:!0,editType:"style",anim:!0},angle:{valType:"angle",dflt:0,arrayOk:!0,editType:"plot",anim:!1},angleref:{valType:"enumerated",values:["previous","up"],dflt:"up",editType:"plot",anim:!1},standoff:{valType:"number",min:0,dflt:0,arrayOk:!0,editType:"plot",anim:!0},size:{valType:"number",min:0,dflt:6,arrayOk:!0,editType:"calc",anim:!0},maxdisplayed:{valType:"number",min:0,dflt:0,editType:"plot"},sizeref:{valType:"number",dflt:1,editType:"calc"},sizemin:{valType:"number",min:0,dflt:0,editType:"calc"},sizemode:{valType:"enumerated",values:["diameter","area"],dflt:"diameter",editType:"calc"},line:H1({width:{valType:"number",min:0,arrayOk:!0,editType:"style",anim:!0},dash:H1({},cI,{arrayOk:!0}),editType:"calc"},fI("marker.line",{anim:!0})),gradient:{type:{valType:"enumerated",values:["radial","horizontal","vertical","none"],arrayOk:!0,dflt:"none",editType:"calc"},color:{valType:"color",arrayOk:!0,editType:"calc"},editType:"calc"},editType:"calc"},fI("marker",{anim:!0})),selected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style"},color:{valType:"color",editType:"style"},size:{valType:"number",min:0,editType:"style"},editType:"style"},textfont:{color:{valType:"color",editType:"style"},editType:"style"},editType:"style"},unselected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style"},color:{valType:"color",editType:"style"},size:{valType:"number",min:0,editType:"style"},editType:"style"},textfont:{color:{valType:"color",editType:"style"},editType:"style"},editType:"style"},textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right"],dflt:"middle center",arrayOk:!0,editType:"calc"},textfont:uge({editType:"calc",colorEditType:"style",arrayOk:!0}),zorder:{valType:"integer",dflt:0,editType:"plot"}}});var gw=B((_Re,gI)=>{"use strict";var mI=Th(),yI=Nf().line,dge=uf().dash,K3=Fn().extendFlat,pge=Nl().overrideAll,mge=Ra().templatedArray,xRe=(B1(),vr(z1));gI.exports=pge(mge("selection",{type:{valType:"enumerated",values:["rect","path"]},xref:K3({},mI.xref,{}),yref:K3({},mI.yref,{}),x0:{valType:"any"},x1:{valType:"any"},y0:{valType:"any"},y1:{valType:"any"},path:{valType:"string",editType:"arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:.7,editType:"arraydraw"},line:{color:yI.color,width:K3({},yI.width,{min:1,dflt:1}),dash:K3({},dge,{dflt:"dot"})}}),"arraydraw","from-root")});var wI=B((wRe,_I)=>{"use strict";var bI=or(),Q3=en(),yge=Oo(),gge=gw(),xI=Rf();_I.exports=function(r,t){yge(r,t,{name:"selections",handleItemDefaults:bge});for(var a=t.selections,n=0;n{"use strict";AI.exports=function(r,t,a){a("newselection.mode");var n=a("newselection.line.width");n&&(a("newselection.line.color"),a("newselection.line.dash")),a("activeselection.fillcolor"),a("activeselection.opacity")}});var U1=B((TRe,SI)=>{"use strict";var xge=Pt(),MI=or(),kI=hn();SI.exports=function(r){return function(a,n){var i=a[r];if(Array.isArray(i))for(var o=xge.subplotsRegistry.cartesian,l=o.idRegex,s=n._subplots,u=s.xaxis,f=s.yaxis,c=s.cartesian,v=n._has("cartesian"),d=0;d{"use strict";var CI=tw(),G1=tI();DI.exports={moduleType:"component",name:"selections",layoutAttributes:gw(),supplyLayoutDefaults:wI(),supplyDrawNewSelectionDefaults:TI(),includeBasePlot:U1()("selections"),draw:CI.draw,drawOne:CI.drawOne,reselect:G1.reselect,prepSelect:G1.prepSelect,clearOutline:G1.clearOutline,clearSelectionsCache:G1.clearSelectionsCache,selectOnClick:G1.selectOnClick}});var JI=B((kRe,ZI)=>{"use strict";var Tw=la(),dl=or(),LI=dl.numberFormat,_ge=K7(),e5=Pt(),BI=dl.strTranslate,wge=Ei(),xw=Kt(),zf=Sa(),Age=mu(),EI=en(),Tge=Cf(),Mge=Ul(),II=Lf(),r5=II.selectingOrDrawing,kge=II.freeMode,Sge=(Oi(),vr(Ii)).FROM_TL,Cge=b3(),Dge=U3().redrawReglTraces,Lge=di(),_w=hn().getFromId,Ege=Mh().prepSelect,qge=Mh().clearOutline,Fge=Mh().selectOnClick,bw=Z8(),Mw=(ni(),vr(ai)),qI=Mw.MINDRAG,uo=Mw.MINZOOM,FI=!0;function Rge(e,r,t,a,n,i,o,l){var s=e._fullLayout._zoomlayer,u=o+l==="nsew",f=(o+l).length===1,c,v,d,p,m,y,b,T,_,x,w,k,M,C,E,F,P,q,z,I,U,V,W;t+=r.yaxis._shift;function G(){if(c=r.xaxis,v=r.yaxis,_=c._length,x=v._length,b=c._offset,T=v._offset,d={},d[c._id]=c,p={},p[v._id]=v,o&&l)for(var pe=r.overlays,Ce=0;Ce=0){lr._fullLayout._deactivateShape(lr);return}var wr=lr._fullLayout.clickmode;if(Aw(lr),pe===2&&!f&&Yr(),u)wr.indexOf("select")>-1&&Fge(Ce,lr,m,y,r.id,j),wr.indexOf("event")>-1&&Age.click(lr,Ce,r.id);else if(pe===1&&f){var fr=o?v:c,kr=o==="s"||l==="w"?0:1,qr=fr._name+".range["+kr+"]",$r=Pge(fr,kr),tt="left",Ge="middle";if(fr.fixedrange)return;o?(Ge=o==="n"?"top":"bottom",fr.side==="right"&&(tt="right")):l==="e"&&(tt="right"),lr._context.showAxisRangeEntryBoxes&&Tw.select(Z).call(wge.makeEditable,{gd:lr,immediate:!0,background:lr._fullLayout.paper_bgcolor,text:String($r),fill:fr.tickfont?fr.tickfont.color:"#444",horizontalAlign:tt,verticalAlign:Ge}).on("edit",function(Mr){var rr=fr.d2r(Mr);rr!==void 0&&e5.call("_guiRelayout",lr,qr,rr)})}}Mge.init(j);var fe,he,ae,Le,ce,Fe,Re,ge,He,ur;function qe(pe,Ce,lr){var wr=Z.getBoundingClientRect();fe=Ce-wr.left,he=lr-wr.top,e._fullLayout._calcInverseTransform(e);var fr=dl.apply3DTransform(e._fullLayout._invTransform)(fe,he);fe=fr[0],he=fr[1],ae={l:fe,r:fe,w:0,t:he,b:he,h:0},Le=e._hmpixcount?e._hmlumcount/e._hmpixcount:xw.luminosity(e._fullLayout.plot_bgcolor),ce="M0,0H"+_+"V"+x+"H0V0",Fe=!1,Re="xy",ur=!1,ge=UI(s,Le,b,T,ce),He=GI(s,b,T)}function Ue(pe,Ce){if(e._transitioningWithDuration)return!1;var lr=Math.max(0,Math.min(_,V*pe+fe)),wr=Math.max(0,Math.min(x,W*Ce+he)),fr=Math.abs(lr-fe),kr=Math.abs(wr-he);ae.l=Math.min(fe,lr),ae.r=Math.max(fe,lr),ae.t=Math.min(he,wr),ae.b=Math.max(he,wr);function qr(){Re="",ae.r=ae.l,ae.t=ae.b,He.attr("d","M0,0Z")}if(w.isSubplotConstrained)fr>uo||kr>uo?(Re="xy",fr/_>kr/x?(kr=fr*x/_,he>wr?ae.t=he-kr:ae.b=he+kr):(fr=kr*_/x,fe>lr?ae.l=fe-fr:ae.r=fe+fr),He.attr("d",t5(ae))):qr();else if(k.isSubplotConstrained)if(fr>uo||kr>uo){Re="xy";var $r=Math.min(ae.l/_,(x-ae.b)/x),tt=Math.max(ae.r/_,(x-ae.t)/x);ae.l=$r*_,ae.r=tt*_,ae.b=(1-$r)*x,ae.t=(1-tt)*x,He.attr("d",t5(ae))}else qr();else!C||kr0){var Mr;if(k.isSubplotConstrained||!M&&C.length===1){for(Mr=0;Mr1&&(qr.maxallowed!==void 0&&F===(qr.range[0]1&&($r.maxallowed!==void 0&&P===($r.range[0]<$r.range[1]?"n":"s")||$r.minallowed!==void 0&&P===($r.range[0]<$r.range[1]?"s":"n"))&&(lt=1,Te=0),!(!nt&&!lt)){nt||(nt=1),lt||(lt=1);var tr=qr._offset-le/nt,hr=$r._offset-Te/lt;kr.clipRect.call(zf.setTranslate,le,Te).call(zf.setScale,nt,lt),kr.plot.call(zf.setTranslate,tr,hr).call(zf.setScale,1/nt,1/lt),(nt!==kr.xScaleFactor||lt!==kr.yScaleFactor)&&(zf.setPointGroupScale(kr.zoomScalePts,nt,lt),zf.setTextPointsScale(kr.zoomScaleTxt,nt,lt)),zf.hideOutsideRangePoints(kr.clipOnAxisFalseTraces,kr),kr.xScaleFactor=nt,kr.yScaleFactor=lt}}}}function Tr(pe,Ce,lr){return pe.fixedrange?0:F&&w.xaHash[pe._id]?Ce:P&&(w.isSubplotConstrained?w.xaHash:w.yaHash)[pe._id]?lr:0}function rt(pe,Ce){return Ce?(pe.range=pe._r.slice(),bw(pe,Ce),ot(pe,Ce)):0}function ot(pe,Ce,lr){return pe._length*(1-Ce)*Sge[lr||pe.constraintoward||"middle"]}return Z}function OI(e,r,t,a){var n=dl.ensureSingle(e.draglayer,r,t,function(i){i.classed("drag",!0).style({fill:"transparent","stroke-width":0}).attr("data-subplot",e.id)});return n.call(Tge,a),n.node()}function HI(e,r,t,a,n,i,o){var l=OI(e,"rect",r,t);return Tw.select(l).call(zf.setRect,a,n,i,o),l}function RI(e,r){for(var t=0;t=0?Math.min(e,.9):1/(1/Math.max(e,-.3)+3.222))}function zge(e,r,t){return e?e==="nsew"?t?"":r==="pan"?"move":"crosshair":e.toLowerCase()+"-resize":"pointer"}function UI(e,r,t,a,n){return e.append("path").attr("class","zoombox").style({fill:r>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("transform",BI(t,a)).attr("d",n+"Z")}function GI(e,r,t){return e.append("path").attr("class","zoombox-corners").style({fill:xw.background,stroke:xw.defaultLine,"stroke-width":1,opacity:0}).attr("transform",BI(r,t)).attr("d","M0,0Z")}function YI(e,r,t,a,n,i){e.attr("d",a+"M"+t.l+","+t.t+"v"+t.h+"h"+t.w+"v-"+t.h+"h-"+t.w+"Z"),VI(e,r,n,i)}function VI(e,r,t,a){t||(e.transition().style("fill",a>.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),r.transition().style("opacity",1).duration(200))}function Aw(e){Tw.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function XI(e){FI&&e.data&&e._context.showTips&&(dl.notifier(dl._(e,"Double-click to zoom back out"),"long",e),FI=!1)}function Bge(e,r){return"M"+(e.l-.5)+","+(r-uo-.5)+"h-3v"+(2*uo+1)+"h3ZM"+(e.r+.5)+","+(r-uo-.5)+"h3v"+(2*uo+1)+"h-3Z"}function Ige(e,r){return"M"+(r-uo-.5)+","+(e.t-.5)+"v-3h"+(2*uo+1)+"v3ZM"+(r-uo-.5)+","+(e.b+.5)+"v3h"+(2*uo+1)+"v-3Z"}function t5(e){var r=Math.floor(Math.min(e.b-e.t,e.r-e.l,uo)/2);return"M"+(e.l-3.5)+","+(e.t-.5+r)+"h3v"+-r+"h"+r+"v-3h-"+(r+3)+"ZM"+(e.r+3.5)+","+(e.t-.5+r)+"h-3v"+-r+"h"+-r+"v-3h"+(r+3)+"ZM"+(e.r+3.5)+","+(e.b+.5-r)+"h-3v"+r+"h"+-r+"v3h"+(r+3)+"ZM"+(e.l-3.5)+","+(e.b+.5-r)+"h3v"+r+"h"+r+"v3h-"+(r+3)+"Z"}function NI(e,r,t,a,n){for(var i=!1,o={},l={},s,u,f,c,v=(n||{}).xaHash,d=(n||{}).yaHash,p=0;p{"use strict";var Oge=la(),a5=mu(),Hge=Ul(),Uge=Cf(),Yl=JI().makeDragBox,yi=(ni(),vr(ai)).DRAGGERSIZE;n5.initInteractions=function(r){var t=r._fullLayout;if(r._context.staticPlot){Oge.select(r).selectAll(".drag").remove();return}if(!(!t._has("cartesian")&&!t._has("splom"))){var a=Object.keys(t._plots||{}).sort(function(i,o){if((t._plots[i].mainplot&&!0)===(t._plots[o].mainplot&&!0)){var l=i.split("y"),s=o.split("y");return l[0]===s[0]?Number(l[1]||1)-Number(s[1]||1):Number(l[0]||1)-Number(s[0]||1)}return t._plots[i].mainplot?1:-1});a.forEach(function(i){var o=t._plots[i],l=o.xaxis,s=o.yaxis;if(!o.mainplot){var u=Yl(r,o,l._offset,s._offset,l._length,s._length,"ns","ew");u.onmousemove=function(v){r._fullLayout._rehover=function(){r._fullLayout._hoversubplot===i&&r._fullLayout._plots[i]&&a5.hover(r,v,i)},a5.hover(r,v,i),r._fullLayout._lasthover=u,r._fullLayout._hoversubplot=i},u.onmouseout=function(v){r._dragging||(r._fullLayout._hoversubplot=null,Hge.unhover(r,v))},r._context.showAxisDragHandles&&(Yl(r,o,l._offset-yi,s._offset-yi,yi,yi,"n","w"),Yl(r,o,l._offset+l._length,s._offset-yi,yi,yi,"n","e"),Yl(r,o,l._offset-yi,s._offset+s._length,yi,yi,"s","w"),Yl(r,o,l._offset+l._length,s._offset+s._length,yi,yi,"s","e"))}if(r._context.showAxisDragHandles){if(i===l._mainSubplot){var f=l._mainLinePosition;l.side==="top"&&(f-=yi),Yl(r,o,l._offset+l._length*.1,f,l._length*.8,yi,"","ew"),Yl(r,o,l._offset,f,l._length*.1,yi,"","w"),Yl(r,o,l._offset+l._length*.9,f,l._length*.1,yi,"","e")}if(i===s._mainSubplot){var c=s._mainLinePosition;s.side!=="right"&&(c-=yi),Yl(r,o,c,s._offset+s._length*.1,yi,s._length*.8,"ns",""),Yl(r,o,c,s._offset+s._length*.9,yi,s._length*.1,"s",""),Yl(r,o,c,s._offset,yi,s._length*.1,"n","")}}});var n=t._hoverlayer.node();n.onmousemove=function(i){i.target=r._fullLayout._lasthover,a5.hover(r,i,t._hoversubplot)},n.onclick=function(i){i.target=r._fullLayout._lasthover,a5.click(r,i)},n.onmousedown=function(i){r._fullLayout._lasthover.onmousedown(i)},n5.updateFx(r)}};n5.updateFx=function(e){var r=e._fullLayout,t=r.dragmode==="pan"?"move":"crosshair";Uge(r._draggers,t)}});var KI=B((CRe,$I)=>{"use strict";var jI=Pt();$I.exports=function(r){for(var t=jI.layoutArrayContainers,a=jI.layoutArrayRegexes,n=r.split("[")[0],i,o,l=0;l{"use strict";var Gge=q0(),Sw=Gy(),Y1=of(),Yge=c6().sorterAsc,Cw=Pt();V1.containerArrayMatch=KI();var Vge=V1.isAddVal=function(r){return r==="add"||Gge(r)},QI=V1.isRemoveVal=function(r){return r===null||r==="remove"};V1.applyContainerArrayChanges=function(r,t,a,n,i){var o=t.astr,l=Cw.getComponentMethod(o,"supplyLayoutDefaults"),s=Cw.getComponentMethod(o,"draw"),u=Cw.getComponentMethod(o,"drawOne"),f=n.replot||n.recalc||l===Sw||s===Sw,c=r.layout,v=r._fullLayout;if(a[""]){Object.keys(a).length>1&&Y1.warn("Full array edits are incompatible with other edits",o);var d=a[""][""];if(QI(d))t.set(null);else if(Array.isArray(d))t.set(d);else return Y1.warn("Unrecognized full array edit value",o,d),!0;return f?!1:(l(c,v),s(r),!0)}var p=Object.keys(a).map(Number).sort(Yge),m=t.get(),y=m||[],b=i(v,o).get(),T=[],_=-1,x=y.length,w,k,M,C,E,F,P,q;for(w=0;wy.length-(P?0:1)){Y1.warn("index out of range",o,M);continue}if(F!==void 0)E.length>1&&Y1.warn("Insertion & removal are incompatible with edits to the same index.",o,M),QI(F)?T.push(M):P?(F==="add"&&(F={}),y.splice(M,0,F),b&&b.splice(M,0,{})):Y1.warn("Unrecognized full object edit value",o,M,F),_===-1&&(_=M);else for(k=0;k=0;w--)y.splice(T[w],1),b&&b.splice(T[w],1);if(y.length?m||t.set(y):t.set(null),f)return!1;if(l(c,v),u!==Sw){var z;if(_===-1)z=p;else{for(x=Math.max(y.length,x),z=[],w=0;w=_));w++)z.push(M);for(w=_;w{"use strict";var nO=da(),iO=Pt(),ro=or(),X1=di(),oO=hn(),W1=oO.cleanId,Xge=oO.getFromTrace,Dw=iO.traceIs,Wge=["x","y","z"];pl.clearPromiseQueue=function(e){Array.isArray(e._promises)&&e._promises.length>0&&ro.log("Clearing previous rejected promises from queue."),e._promises=[]};pl.cleanLayout=function(e){var r,t;e||(e={}),e.xaxis1&&(e.xaxis||(e.xaxis=e.xaxis1),delete e.xaxis1),e.yaxis1&&(e.yaxis||(e.yaxis=e.yaxis1),delete e.yaxis1),e.scene1&&(e.scene||(e.scene=e.scene1),delete e.scene1);var a=(X1.subplotsRegistry.cartesian||{}).attrRegex,n=(X1.subplotsRegistry.polar||{}).attrRegex,i=(X1.subplotsRegistry.ternary||{}).attrRegex,o=(X1.subplotsRegistry.gl3d||{}).attrRegex,l=Object.keys(e);for(r=0;r3?(y.x=1.02,y.xanchor="left"):y.x<-2&&(y.x=-.02,y.xanchor="right"),y.y>3?(y.y=1.02,y.yanchor="bottom"):y.y<-2&&(y.y=-.02,y.yanchor="top")),e.dragmode==="rotate"&&(e.dragmode="orbit"),e.template&&e.template.layout&&pl.cleanLayout(e.template.layout),e};function kh(e,r,t=!1){var a=e[r],n=r.charAt(0);t&&Array.isArray(a)||a&&a!=="paper"&&(e[r]=W1(a,n,!0))}pl.cleanData=function(e){for(var r=0;r0)return e.slice(0,r)}pl.hasParent=function(e,r){for(var t=aO(r);t;){if(t in e)return!0;t=aO(t)}return!1};pl.clearAxisTypes=function(e,r,t){for(var a=0;a{let t=(...a)=>a.every(n=>ro.isPlainObject(n))||a.every(n=>Array.isArray(n));if([e,r].every(a=>Array.isArray(a))){if(e.length!==r.length)return!1;for(let a=0;aro.isPlainObject(a))){if(Object.keys(e).length!==Object.keys(r).length)return!1;for(let a in e){if(a.startsWith("_"))continue;let n=e[a],i=r[a];if(n!==i&&!(t(n,i)?Lw(n,i):!1))return!1}return!0}return!1};pl.collectionsAreEqual=Lw});var Pw=B(sa=>{"use strict";var u5=la(),jge=da(),$ge=T6(),Xr=or(),Ia=Xr.nestedProperty,qw=V2(),fo=KE(),ml=Pt(),m5=Kv(),zt=di(),to=en(),Kge=$7(),Qge=sl(),l5=Sa(),e3e=Kt(),r3e=kw().initInteractions,t3e=(xf(),vr(bf)),a3e=Mh().clearOutline,vO=nf().dfltConfig,o5=eO(),On=lO(),Ea=U3(),Bf=Nl(),n3e=(ni(),vr(ai)).AX_NAME_PATTERN,Ew=0,sO=5;function i3e(e,r,t,a){var n;if(e=Xr.getGraphDiv(e),qw.init(e),Xr.isPlainObject(r)){var i=r;r=i.data,t=i.layout,a=i.config,n=i.frames}var o=qw.triggerHandler(e,"plotly_beforeplot",[r,t,a]);if(o===!1)return Promise.reject();!r&&!t&&!Xr.isPlotDiv(e)&&Xr.warn("Calling _doPlot as if redrawing but this container doesn't yet have a plot.",e);function l(){if(n)return sa.addFrames(e,n)}dO(e,a),t||(t={}),u5.select(e).classed("js-plotly-plot",!0),l5.makeTester(),Array.isArray(e._promises)||(e._promises=[]);var s=(e.data||[]).length===0&&Array.isArray(r);Array.isArray(r)&&(On.cleanData(r),s?e.data=r:e.data.push.apply(e.data,r),e.empty=!1),(!e.layout||s)&&(e.layout=On.cleanLayout(t)),zt.supplyDefaults(e);var u=e._fullLayout,f=u._has("cartesian");u._replotting=!0,(s||u._shouldCreateBgLayer)&&(D3e(e),u._shouldCreateBgLayer&&delete u._shouldCreateBgLayer),l5.initGradients(e),l5.initPatterns(e),s&&to.saveShowSpikeInitial(e);var c=!e.calcdata||e.calcdata.length!==(e._fullData||[]).length;c&&zt.doCalcdata(e);for(var v=0;v{Xr.isHidden(e)||zt.resize(e)};if(e._context.fillFrame||typeof ResizeObserver=="undefined")window.addEventListener("resize",C),e._clearResponsive=()=>window.removeEventListener("resize",C);else{let E=e.offsetWidth,F=e.offsetHeight,P=new ResizeObserver(()=>{let q=e.offsetWidth,z=e.offsetHeight,I=Math.abs(q-E)>1||Math.abs(z-F)>1;E=q,F=z,I&&q&&z&&C()});P.observe(e),e._clearResponsive=()=>P.disconnect()}}}else Xr.clearResponsive(e);let d=document.fonts?[...document.fonts].filter(C=>C.status!=="loaded"):[];var p=Xr.extendFlat({},u._size),m=0;function y(){for(var C=u._basePlotModules,E=0;E["loaded","loading"].includes(n.status));if(!t.length)return;let a={};e._fontLoadToken=a,yield Promise.all(t.map(n=>n.loaded.catch(()=>{}))),e._fontLoadToken===a&&(delete e._fontLoadToken,l5.savedBBoxes={},sa._doPlot(e))})}function J1(e){var r=e._fullLayout;r._redrawFromAutoMarginCount?r._redrawFromAutoMarginCount--:e.emit("plotly_afterplot")}function l3e(e){return Xr.extendFlat(vO,e)}function hO(e,r){try{e._fullLayout._paper.style("background",r)}catch(t){Xr.error(t)}}function s3e(e,r){var t=e3e.combine(r,"white");hO(e,t)}function dO(e,r){if(!e._context){e._context=Xr.extendDeep({},vO);var t=u5.select("base");e._context._baseUrl=t.size()&&t.attr("href")?window.location.href.split("#")[0]:""}var a=e._context,n,i,o;if(r){for(i=Object.keys(r),n=0;n=e.data.length||n<-e.data.length)throw new Error(t+" must be valid indices for gd.data.");if(r.indexOf(n,a+1)>-1||n>=0&&r.indexOf(-e.data.length+n)>-1||n<0&&r.indexOf(e.data.length+n)>-1)throw new Error("each index in "+t+" must be unique.")}}function pO(e,r,t){if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(typeof r=="undefined")throw new Error("currentIndices is a required argument.");if(Array.isArray(r)||(r=[r]),c5(e,r,"currentIndices"),typeof t!="undefined"&&!Array.isArray(t)&&(t=[t]),typeof t!="undefined"&&c5(e,t,"newIndices"),typeof t!="undefined"&&r.length!==t.length)throw new Error("current and new indices must be of equal length.")}function c3e(e,r,t){var a,n;if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(typeof r=="undefined")throw new Error("traces must be defined.");for(Array.isArray(r)||(r=[r]),a=0;a=0&&f=0&&f0&&typeof C.parts[P]!="string";)P--;var q=C.parts[P],z=C.parts[P-1]+"."+q,I=C.parts.slice(0,P).join("."),U=Ia(e.layout,I).get(),V=Ia(a,I).get(),W=C.get();if(E!==void 0){b[M]=E,T[M]=q==="reverse"?E:xu(W);var G=m5.getLayoutValObject(a,C.parts);if(G&&G.impliedEdits&&E!==null)for(var Y in G.impliedEdits)_(Xr.relativeAttr(M,Y),G.impliedEdits[Y]);if(["width","height"].indexOf(M)!==-1)if(E){_("autosize",null);var Z=M==="height"?"width":"height";_(Z,a[Z])}else a[M]=e._initialAutoSize[M];else if(M==="autosize")_("width",E?null:a.width),_("height",E?null:a.height);else if(z.match(TO))k(z),Ia(a,I+"._inputRange").set(null);else if(z.match(MO)){k(z),Ia(a,I+"._inputRange").set(null);var j=Ia(a,I).get();j._inputDomain&&(j._input.domain=j._inputDomain.slice())}else z.match(p3e)&&Ia(a,I+"._inputDomain").set(null);if(q==="type"){w=U;var ee=V.type==="linear"&&E==="log",ye=V.type==="log"&&E==="linear";if(ee||ye){if(!w||!w.range)_(I+".autorange",!0);else if(V.autorange)ee&&(w.range=w.range[1]>w.range[0]?[1,2]:[2,1]);else{var fe=w.range[0],he=w.range[1];ee?(fe<=0&&he<=0&&_(I+".autorange",!0),fe<=0?fe=he/1e6:he<=0&&(he=fe/1e6),_(I+".range[0]",Math.log(fe)/Math.LN10),_(I+".range[1]",Math.log(he)/Math.LN10)):(_(I+".range[0]",Math.pow(10,fe)),_(I+".range[1]",Math.pow(10,he)))}Array.isArray(a._subplots.polar)&&a._subplots.polar.length&&a[C.parts[0]]&&C.parts[1]==="radialaxis"&&delete a[C.parts[0]]._subplot.viewInitial["radialaxis.range"],ml.getComponentMethod("annotations","convertCoords")(e,V,E,_),ml.getComponentMethod("images","convertCoords")(e,V,E,_)}else _(I+".autorange",!0),_(I+".range",null);Ia(a,I+"._inputRange").set(null)}else if(q.match(n3e)){var ae=Ia(a,M).get(),Le=(E||{}).type;(!Le||Le==="-")&&(Le="linear"),ml.getComponentMethod("annotations","convertCoords")(e,ae,Le,_),ml.getComponentMethod("images","convertCoords")(e,ae,Le,_)}var ce=o5.containerArrayMatch(M);if(ce){f=ce.array,c=ce.index;var Fe=ce.property,Re=G||{editType:"calc"};c!==""&&Fe===""&&(o5.isAddVal(E)?T[M]=null:o5.isRemoveVal(E)?T[M]=(Ia(t,f).get()||[])[c]:Xr.warn("unrecognized full object value",r)),Bf.update(y,Re),u[f]||(u[f]={});var ge=u[f][c];ge||(ge=u[f][c]={}),ge[Fe]=E,delete r[M]}else q==="reverse"?(U.range?U.range.reverse():(_(I+".autorange",!0),U.range=[1,0]),V.autorange?y.calc=!0:y.plot=!0):(M==="dragmode"&&(E===!1&&W!==!1||E!==!1&&W===!1)||a._has("scatter-like")&&a._has("regl")&&M==="dragmode"&&(E==="lasso"||E==="select")&&!(W==="lasso"||W==="select")?y.plot=!0:G?Bf.update(y,G):y.calc=!0,C.set(E))}}for(f in u){var He=o5.applyContainerArrayChanges(e,i(t,f),u[f],y,i);He||(y.plot=!0)}for(var ur in x){w=to.getFromId(e,ur);var qe=w&&w._constraintGroup;if(qe){y.calc=!0;for(var Ue in qe)x[Ue]||(to.getFromId(e,Ue)._constraintShrinkable=!0)}}(SO(e)||r.height||r.width)&&(y.plot=!0);var Ye=a.shapes;for(c=0;c1;)if(a.pop(),t=Ia(r,a.join(".")+".uirevision").get(),t!==void 0)return t;return r.uirevision}function g3e(e,r){for(var t=0;t[I,e._ev.listeners(I)]);i=sa.newPlot(e,r,t,a).then(()=>{for(let[I,U]of z)U.forEach(V=>e.on(I,V));return sa.react(e,r,t,a)})}else{e.data=r||[],On.cleanData(e.data),e.layout=t||{},On.cleanLayout(e.layout),x3e(e.data,e.layout,l,s),zt.supplyDefaults(e,{skipUpdateCalc:!0});var c=e._fullData,v=e._fullLayout,d=v.datarevision===void 0,p=v.transition,m=A3e(e,s,v,d,p),y=m.newDataRevision,b=w3e(e,l,c,d,p,y);if(SO(e)&&(m.layoutReplot=!0),b.calc||m.calc){e.calcdata=void 0;for(var T=Object.getOwnPropertyNames(v),_=0;_(f||e.emit("plotly_react",{config:a,data:r,layout:t}),e))}function w3e(e,r,t,a,n,i){var o=r.length===t.length;if(!n&&!o)return{fullReplot:!0,calc:!0};var l=Bf.traceFlags();l.arrays={},l.nChanges=0,l.nChangesAnim=0;var s,u;function f(d){var p=m5.getTraceValObject(u,d);return!u._module.animatable&&p.anim&&(p.anim=!1),p}var c={getValObject:f,flags:l,immutable:a,transition:n,newDataRevision:i,gd:e},v={};for(s=0;s=n.length?n[0]:n[u]:n}function l(u){return Array.isArray(i)?u>=i.length?i[0]:i[u]:i}function s(u,f){var c=0;return function(){if(u&&++c===f)return u()}}return new Promise(function(u,f){function c(){if(a._frameQueue.length!==0){for(;a._frameQueue.length;){var q=a._frameQueue.pop();q.onInterrupt&&q.onInterrupt()}e.emit("plotly_animationinterrupted",[])}}function v(q){if(q.length!==0){for(var z=0;za._timeToNext&&p()};q()}var y=0;function b(q){return Array.isArray(n)?y>=n.length?q.transitionOpts=n[y]:q.transitionOpts=n[0]:q.transitionOpts=n,y++,q}var T,_,x=[],w=r==null,k=Array.isArray(r),M=!w&&!k&&Xr.isPlainObject(r);if(M)x.push({type:"object",data:b(Xr.extendFlat({},r))});else if(w||["string","number"].indexOf(typeof r)!==-1)for(T=0;T0&&FF)&&P.push(_);x=P}}x.length>0?v(x):(e.emit("plotly_animated"),u())})}function M3e(e,r,t){if(e=Xr.getGraphDiv(e),r==null)return Promise.resolve();if(!Xr.isPlotDiv(e))throw new Error("This element is not a Plotly plot: "+e+". It's likely that you've failed to create a plot before adding frames. For more details, see https://plotly.com/javascript/animations/");var a,n,i,o,l=e._transitionData._frames,s=e._transitionData._frameHash;if(!Array.isArray(r))throw new Error("addFrames failure: frameList must be an Array of frame definitions"+r);var u=l.length+r.length*2,f=[],c={};for(a=r.length-1;a>=0;a--)if(Xr.isPlainObject(r[a])){var v=r[a].name,d=(s[v]||c[v]||{}).name,p=r[a].name,m=s[d]||c[d];d&&p&&typeof p=="number"&&m&&EwC.index?-1:M.index=0;a--){if(n=f[a].frame,typeof n.name=="number"&&Xr.warn("Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings"),!n.name)for(;s[n.name="frame "+e._transitionData._counter++];);if(s[n.name]){for(i=0;i=0;t--)a=r[t],i.push({type:"delete",index:a}),o.unshift({type:"insert",index:a,value:n[a]});var l=zt.modifyFrames,s=zt.modifyFrames,u=[e,o],f=[e,i];return fo&&fo.add(e,l,u,s,f),zt.modifyFrames(e,i)}function S3e(e){e=Xr.getGraphDiv(e);var r=e._fullLayout||{},t=e._fullData||[];return zt.cleanPlot([],{},t,r),zt.purge(e),qw.purge(e),r._container&&r._container.remove(),delete e._context,e}function C3e(e){var r=e._fullLayout,t=e.getBoundingClientRect();if(!Xr.equalDomRects(t,r._lastBBox)){var a=r._invTransform=Xr.inverseTransformMatrix(Xr.getFullTransformMatrix(e));r._invScaleX=Math.sqrt(a[0][0]*a[0][0]+a[0][1]*a[0][1]+a[0][2]*a[0][2]),r._invScaleY=Math.sqrt(a[1][0]*a[1][0]+a[1][1]*a[1][1]+a[1][2]*a[1][2]),r._lastBBox=t}}function D3e(e){var r=u5.select(e),t=e._fullLayout;if(t._calcInverseTransform=C3e,t._calcInverseTransform(e),t._container=r.selectAll(".plot-container").data([0]),t._container.enter().insert("div",":first-child").classed("plot-container",!0).classed("plotly",!0).style({width:"100%",height:"100%"}),t._paperdiv=t._container.selectAll(".svg-container").data([0]),t._paperdiv.enter().append("div").classed("user-select-none",!0).classed("svg-container",!0).style("position","relative"),t._glcontainer=t._paperdiv.selectAll(".gl-container").data([{}]),t._glcontainer.enter().append("div").classed("gl-container",!0),t._paperdiv.selectAll(".main-svg").remove(),t._paperdiv.select(".modebar-container").remove(),t._paper=t._paperdiv.insert("svg",":first-child").classed("main-svg",!0),t._toppaper=t._paperdiv.append("svg").classed("main-svg",!0),t._modebardiv=t._paperdiv.append("div"),delete t._modeBar,t._hoverpaper=t._paperdiv.append("svg").classed("main-svg",!0),!t._uid){var a={};u5.selectAll("defs").each(function(){this.id&&(a[this.id.split("-")[1]]=1)}),t._uid=Xr.randstr(a)}t._paperdiv.selectAll(".main-svg").attr(t3e.svgAttrs),t._defs=t._paper.append("defs").attr("id","defs-"+t._uid),t._clips=t._defs.append("g").classed("clips",!0),t._topdefs=t._toppaper.append("defs").attr("id","topdefs-"+t._uid),t._topclips=t._topdefs.append("g").classed("clips",!0),t._bgLayer=t._paper.append("g").classed("bglayer",!0),t._draggers=t._paper.append("g").classed("draglayer",!0);var n=t._paper.append("g").classed("layer-below",!0);t._imageLowerLayer=n.append("g").classed("imagelayer",!0),t._shapeLowerLayer=n.append("g").classed("shapelayer",!0),t._cartesianlayer=t._paper.append("g").classed("cartesianlayer",!0),t._polarlayer=t._paper.append("g").classed("polarlayer",!0),t._smithlayer=t._paper.append("g").classed("smithlayer",!0),t._ternarylayer=t._paper.append("g").classed("ternarylayer",!0),t._geolayer=t._paper.append("g").classed("geolayer",!0),t._funnelarealayer=t._paper.append("g").classed("funnelarealayer",!0),t._pielayer=t._paper.append("g").classed("pielayer",!0),t._iciclelayer=t._paper.append("g").classed("iciclelayer",!0),t._treemaplayer=t._paper.append("g").classed("treemaplayer",!0),t._sunburstlayer=t._paper.append("g").classed("sunburstlayer",!0),t._indicatorlayer=t._toppaper.append("g").classed("indicatorlayer",!0),t._glimages=t._paper.append("g").classed("glimages",!0);var i=t._toppaper.append("g").classed("layer-above",!0);t._imageUpperLayer=i.append("g").classed("imagelayer",!0),t._shapeUpperLayer=i.append("g").classed("shapelayer",!0),t._selectionLayer=t._toppaper.append("g").classed("selectionlayer",!0),t._infolayer=t._toppaper.append("g").classed("infolayer",!0),t._menulayer=t._toppaper.append("g").classed("menulayer",!0),t._zoomlayer=t._toppaper.append("g").classed("zoomlayer",!0),t._hoverlayer=t._hoverpaper.append("g").classed("hoverlayer",!0),t._modebardiv.classed("modebar-container",!0).style("position","absolute").style("top","0px").style("right","0px"),e.emit("plotly_framework")}sa.animate=T3e;sa.addFrames=M3e;sa.deleteFrames=k3e;sa.addTraces=xO;sa.deleteTraces=_O;sa.extendTraces=gO;sa.moveTraces=Fw;sa.prependTraces=bO;sa.newPlot=f3e;sa._doPlot=i3e;sa.purge=S3e;sa.react=_3e;sa.redraw=u3e;sa.relayout=Z1;sa.restyle=v5;sa.setPlotConfig=l3e;sa.update=d5;sa._guiRelayout=Rw(Z1);sa._guiRestyle=Rw(v5);sa._guiUpdate=Rw(d5);sa._storeDirectGUIEdit=d3e});var yc=B(yl=>{"use strict";var L3e=Pt();yl.getDelay=function(e){return e._has&&(e._has("gl3d")||e._has("map"))?500:0};yl.getRedrawFunc=function(e){return function(){L3e.getComponentMethod("colorbar","draw")(e)}};yl.encodeSVG=function(e){return"data:image/svg+xml,"+encodeURIComponent(e)};yl.encodeJSON=function(e){return"data:application/json,"+encodeURIComponent(e)};var CO=window.URL||window.webkitURL;yl.createObjectURL=function(e){return CO.createObjectURL(e)};yl.revokeObjectURL=function(e){return CO.revokeObjectURL(e)};yl.createBlob=function(e,r){if(r==="svg")return new window.Blob([e],{type:"image/svg+xml;charset=utf-8"});if(r==="full-json")return new window.Blob([e],{type:"application/json;charset=utf-8"});var t=E3e(window.atob(e));return new window.Blob([t],{type:"image/"+r})};yl.octetStream=function(e){document.location.href="data:application/octet-stream"+e};yl.getPlotTitle=function(e){var a,n,i,o;var r=e._fullLayout;if(r){var t=(a=r.title)==null?void 0:a.text;return t===((n=r._dfltTitle)==null?void 0:n.plot)?void 0:t}return(o=(i=e.layout)==null?void 0:i.title)==null?void 0:o.text};yl.getPlotSubtitle=function(e){var a,n,i,o,l,s;var r=e._fullLayout;if(r){var t=(n=(a=r.title)==null?void 0:a.subtitle)==null?void 0:n.text;return t===((i=r._dfltTitle)==null?void 0:i.subtitle)?void 0:t}return(s=(l=(o=e.layout)==null?void 0:o.title)==null?void 0:l.subtitle)==null?void 0:s.text};function E3e(e){for(var r=e.length,t=new ArrayBuffer(r),a=new Uint8Array(t),n=0;n{"use strict";var zw=la(),RRe=or(),q3e=Sa(),F3e=Kt(),PRe=(xf(),vr(bf)),Nw=/"/g,gc="TOBESTRIPPED",R3e=new RegExp(`("${gc})|(${gc}")|("${gc})|(${gc}")`,"g"),P3e=["&","&","&",""",""",""","'","'","'"],N3e=["<","<","<"],z3e=[">",">",">"];function B3e(e){let r=zw.select("body").append("div").style({display:"none"}).html(""),t=e.replace(/(&[^;]*;)/gi,a=>{let n=a.toLowerCase();return P3e.includes(n)?a:N3e.includes(n)?"<":z3e.includes(n)?">":a.includes("<")||a.includes(">")?"":r.html(a).text()});return r.remove(),t}function I3e(e){return e.replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&")}DO.exports=function(r,t,a){var n=r._fullLayout,i=n._paper,o=n._toppaper,l=n.width,s=n.height,u;i.insert("rect",":first-child").call(q3e.setRect,0,0,l,s).call(F3e.fill,n.paper_bgcolor);var f=n._basePlotModules||[];for(u=0;u{"use strict";var O3e=or(),H3e=hg().EventEmitter,j1=yc();function U3e(e){var r=e.emitter||new H3e,t=new Promise(function(a,n){var i=window.Image,o=e.svg,l=e.format||"png",s=e.canvas,u=e.scale||1,f=e.width||300,c=e.height||150,v=u*f,d=u*c,p=s.getContext("2d",{willReadFrequently:!0}),m=new i,y,b;l==="svg"||O3e.isSafari()?b=j1.encodeSVG(o):(y=j1.createBlob(o,"svg"),b=j1.createObjectURL(y)),s.width=v,s.height=d,m.onload=function(){var T;switch(y=null,j1.revokeObjectURL(b),l!=="svg"&&p.drawImage(m,0,0,v,d),l){case"jpeg":T=s.toDataURL("image/jpeg");break;case"png":T=s.toDataURL("image/png");break;case"webp":T=s.toDataURL("image/webp");break;case"svg":T=b;break;default:var _="Image format is not jpeg, png, svg or webp.";if(n(new Error(_)),!e.promise)return r.emit("error",_)}a(T),e.promise||r.emit("success",T)},m.onerror=function(T){if(y=null,j1.revokeObjectURL(b),n(T),!e.promise)return r.emit("error",T)},m.src=b});return e.promise?t:r}LO.exports=U3e});var Iw=B((BRe,FO)=>{"use strict";var EO=da(),qO=Pw(),G3e=di(),Fs=or(),$1=yc(),Y3e=g5(),V3e=b5(),X3e=v2().version,Bw=(G4(),vr(U4)).default;function W3e(e,r){r=r||{};var t,a,n,i;Fs.isPlainObject(e)?(t=e.data||[],a=e.layout||{},n=e.config||{},i={}):(e=Fs.getGraphDiv(e),t=Fs.extendDeep([],e.data),a=Fs.extendDeep({},e.layout),n=e._context,i=e._fullLayout||{});function o(k){return!(k in r)||Fs.validate(r[k],Bw[k])}if(!o("width")&&r.width!==null||!o("height")&&r.height!==null)throw new Error("Height and width should be pixel values.");if(!o("format"))throw new Error("Export format is not "+Fs.join2(Bw.format.values,", "," or ")+".");var l={};function s(k,M){return Fs.coerce(r,l,Bw,k,M)}var u=s("format"),f=s("width"),c=s("height"),v=s("scale"),d=s("setBackground"),p=s("imageDataOnly"),m=document.createElement("div");m.style.position="absolute",m.style.left="-5000px",document.body.appendChild(m);var y=Fs.extendFlat({},a);f?y.width=f:r.width===null&&EO(i.width)&&(y.width=i.width),c?y.height=c:r.height===null&&EO(i.height)&&(y.height=i.height);var b=Fs.extendFlat({},n,{_exportedPlot:!0,staticPlot:!0,setBackground:d}),T=$1.getRedrawFunc(m);function _(){return new Promise(function(k){setTimeout(k,$1.getDelay(m._fullLayout))})}function x(){return new Promise(function(k,M){var C=Y3e(m,u,v),E=m._fullLayout.width,F=m._fullLayout.height;function P(){qO.purge(m),document.body.removeChild(m)}if(u==="full-json"){var q=G3e.graphJson(m,!1,"object",!0,!0);return q.version=X3e,q=JSON.stringify(q),P(),k(p?q:$1.encodeJSON(q))}if(P(),u==="svg")return k(p?C:$1.encodeSVG(C));var z=document.createElement("canvas");z.id=Fs.randstr(),V3e({format:u,width:E,height:F,scale:v,canvas:z,svg:C,promise:!0}).then(k).catch(M)})}function w(k){return p?k.replace($1.IMAGE_URL_PREFIX,""):k}return new Promise(function(k,M){qO.newPlot(m,t,y,b).then(T).then(_).then(x).then(function(C){k(w(C))}).catch(function(C){M(C)})})}FO.exports=W3e});var NO=B((IRe,PO)=>{"use strict";var gl=or(),Z3e=di(),J3e=Kv(),j3e=nf().dfltConfig,Vl=gl.isPlainObject,xc=Array.isArray,Ow=gl.isArrayOrTypedArray;PO.exports=function(r,t){r===void 0&&(r=[]),t===void 0&&(t={});var a=J3e.get(),n=[],i={_context:gl.extendFlat({},j3e)},o,l;xc(r)?(i.data=gl.extendDeep([],r),o=r):(i.data=[],o=[],n.push(gi("array","data"))),Vl(t)?(i.layout=gl.extendDeep({},t),l=t):(i.layout={},l={},arguments.length>1&&n.push(gi("object","layout"))),Z3e.supplyDefaults(i);for(var s=i._fullData,u=o.length,f=0;fc.length&&a.push(gi("unused",n,u.concat(c.length)));var b=c.length,T=Array.isArray(y);T&&(b=Math.min(b,y.length));var _,x,w,k,M;if(v.dimensions===2)for(x=0;xc[x].length&&a.push(gi("unused",n,u.concat(x,c[x].length)));var C=c[x].length;for(_=0;_<(T?Math.min(C,y[x].length):C);_++)w=T?y[x][_]:y,k=f[x][_],M=c[x][_],gl.validate(k,w)?M!==k&&M!==+k&&a.push(gi("dynamic",n,u.concat(x,_),k,M)):a.push(gi("value",n,u.concat(x,_),k))}else a.push(gi("array",n,u.concat(x),f[x]));else for(x=0;x{"use strict";var a5e=or(),_5=yc();function n5e(e,r,t){var a=document.createElement("a"),n="download"in a,i=new Promise(function(o,l){var s,u;if(n)return s=_5.createBlob(e,t),u=_5.createObjectURL(s),a.href=u,a.download=r,document.body.appendChild(a),a.click(),document.body.removeChild(a),_5.revokeObjectURL(u),s=null,o(r);if(a5e.isSafari()){var f=t==="svg"?",":";base64,";return _5.octetStream(f+encodeURIComponent(e)),o(r)}l(new Error("download error"))});return i}zO.exports=n5e});var Hw=B((HRe,UO)=>{"use strict";var w5=or(),IO=Ei(),i5e=Iw(),o5e=BO(),OO=yc(),HO=40;function l5e(e,r){var t;return w5.isPlainObject(e)||(t=w5.getGraphDiv(e)),r=r||{},r.format=r.format||"png",r.width=r.width||null,r.height=r.height||null,r.imageDataOnly=!0,new Promise(function(a,n){t&&t._snapshotInProgress&&n(new Error("Image capture already in progress.")),t&&(t._snapshotInProgress=!0);var i=i5e(e,r),o=r.filename||e.fn;if(!o){let s=OO.getPlotTitle(e);if(s&&!IO.matchTex(s))o=w5.slugify(s,HO);else{let u=OO.getPlotSubtitle(e);u&&!IO.matchTex(u)&&(o=w5.slugify(u,HO))}}var l=o||"plot-image";l+="."+r.format.replace("-","."),i.then(function(s){return t&&(t._snapshotInProgress=!1),o5e(s,l,r.format)}).then(function(s){a(s)}).catch(function(s){t&&(t._snapshotInProgress=!1),n(s)})})}UO.exports=l5e});var WO=B(Uw=>{"use strict";var Co=or(),Do=Co.isPlainObject,GO=Kv(),YO=di(),s5e=Fl(),VO=Ra(),XO=nf().dfltConfig;Uw.makeTemplate=function(e){e=Co.isPlainObject(e)?e:Co.getGraphDiv(e),e=Co.extendDeep({_context:XO},{data:e.data,layout:e.layout}),YO.supplyDefaults(e);var r=e.data||[],t=e.layout||{};t._basePlotModules=e._fullLayout._basePlotModules,t._modules=e._fullLayout._modules;var a={data:{},layout:{}};r.forEach(function(d){var p={};K1(d,p,f5e.bind(null,d));var m=Co.coerce(d,{},s5e,"type"),y=a.data[m];y||(y=a.data[m]=[]),y.push(p)}),K1(t,a.layout,u5e.bind(null,t)),delete a.layout.template;var n=t.template;if(Do(n)){var i=n.layout,o,l,s,u,f,c;Do(i)&&A5(i,a.layout);var v=n.data;if(Do(v)){for(l in a.data)if(s=v[l],Array.isArray(s)){for(f=a.data[l],c=f.length,u=s.length,o=0;ob?o.push({code:"unused",traceType:d,templateCount:y,dataCount:b}):b>y&&o.push({code:"reused",traceType:d,templateCount:y,dataCount:b})}}function T(_,x){for(var w in _)if(w.charAt(0)!=="_"){var k=_[w],M=bl(_,w,x);Do(k)?(Array.isArray(_)&&k._template===!1&&k.templateitemname&&o.push({code:"missing",path:M,templateitemname:k.templateitemname}),T(k,M)):Array.isArray(k)&&c5e(k)&&T(k,M)}}if(T({data:s,layout:l},""),o.length)return o.map(v5e)};function c5e(e){for(var r=0;r{"use strict";var oi=Pw();tn._doPlot=oi._doPlot;tn.newPlot=oi.newPlot;tn.restyle=oi.restyle;tn.relayout=oi.relayout;tn.redraw=oi.redraw;tn.update=oi.update;tn._guiRestyle=oi._guiRestyle;tn._guiRelayout=oi._guiRelayout;tn._guiUpdate=oi._guiUpdate;tn._storeDirectGUIEdit=oi._storeDirectGUIEdit;tn.react=oi.react;tn.extendTraces=oi.extendTraces;tn.prependTraces=oi.prependTraces;tn.addTraces=oi.addTraces;tn.deleteTraces=oi.deleteTraces;tn.moveTraces=oi.moveTraces;tn.purge=oi.purge;tn.addFrames=oi.addFrames;tn.deleteFrames=oi.deleteFrames;tn.animate=oi.animate;tn.setPlotConfig=oi.setPlotConfig;var h5e=z2().getGraphDiv,d5e=P3().eraseActiveShape;tn.deleteActiveShape=function(e){return d5e(h5e(e))};tn.toImage=Iw();tn.validate=NO();tn.downloadImage=Hw();var ZO=WO();tn.makeTemplate=ZO.makeTemplate;tn.validateTemplate=ZO.validateTemplate});var Yw=B((YRe,jO)=>{"use strict";var Gw=or(),p5e=Pt();jO.exports=function(r,t,a,n){var i=n("x"),o=n("y"),l,s=p5e.getComponentMethod("calendars","handleTraceDefaults");if(s(r,t,["x","y"],a),i){var u=Gw.minRowLength(i);o?l=Math.min(u,Gw.minRowLength(o)):(l=u,n("y0"),n("dy"))}else{if(!o)return 0;l=Gw.minRowLength(o),n("x0"),n("dx")}return t._length=l,l}});var Vw=B((VRe,QO)=>{"use strict";var $O=or().dateTick0,m5e=(Wn(),vr(ri)),y5e=m5e.ONEWEEK;function KO(e,r){return e%y5e===0?$O(r,1):$O(r,0)}QO.exports=function(r,t,a,n,i){if(i||(i={x:!0,y:!0}),i.x){var o=n("xperiod");o&&(n("xperiod0",KO(o,t.xcalendar)),n("xperiodalignment"))}if(i.y){var l=n("yperiod");l&&(n("yperiod0",KO(l,t.ycalendar)),n("yperiodalignment"))}}});var tH=B((XRe,rH)=>{"use strict";var eH=["orientation","groupnorm","stackgaps"];rH.exports=function(r,t,a,n){var i=a._scatterStackOpts,o=n("stackgroup");if(o){var l=t.xaxis+t.yaxis,s=i[l];s||(s=i[l]={});var u=s[o],f=!1;u?u.traces.push(t):(u=s[o]={traceIndices:[],traces:[t]},f=!0);for(var c={orientation:t.x&&!t.y?"h":"v"},v=0;v{"use strict";var aH=Kt(),nH=Ol().hasColorscale,iH=th(),g5e=Ti();oH.exports=function(r,t,a,n,i,o={}){var l=g5e.isBubble(r),s=(r.line||{}).color,u;if(s&&(a=s),i("marker.symbol"),i("marker.opacity",l?.7:1),i("marker.size"),o.noAngle||(i("marker.angle"),o.noAngleRef||i("marker.angleref"),o.noStandOff||i("marker.standoff")),i("marker.color",a),nH(r,"marker")&&iH(r,t,n,i,{prefix:"marker.",cLetter:"c"}),o.noSelect||(i("selected.marker.color"),i("unselected.marker.color"),i("selected.marker.size"),i("unselected.marker.size")),o.noLine||(s&&!Array.isArray(s)&&t.marker.color!==s?u=s:l?u=aH.background:u=aH.defaultLine,i("marker.line.color",u),nH(r,"marker.line")&&iH(r,t,n,i,{prefix:"marker.line.",cLetter:"c"}),i("marker.line.width",l?1:0),o.noLineDash||i("marker.line.dash")),l&&(i("marker.sizeref"),i("marker.sizemin"),i("marker.sizemode")),o.gradient){var f=i("marker.gradient.type");f!=="none"&&i("marker.gradient.color")}}});var Xw=B((ZRe,lH)=>{"use strict";var b5e=or().isArrayOrTypedArray,x5e=Ol().hasColorscale,_5e=th();lH.exports=function(r,t,a,n,i,o){o||(o={});var l=(r.marker||{}).color;if(l&&l._inputArray&&(l=l._inputArray),i("line.color",a),x5e(r,"line"))_5e(r,t,n,i,{prefix:"line.",cLetter:"c"});else{var s=(b5e(l)?!1:l)||a;i("line.color",s)}i("line.width"),o.noDash||i("line.dash"),o.backoff&&i("line.backoff")}});var uH=B((JRe,sH)=>{"use strict";sH.exports=function(r,t,a){var n=a("line.shape");n==="spline"&&a("line.smoothing")}});var Ww=B((jRe,fH)=>{"use strict";var w5e=or();fH.exports=function(e,r,t,a,n){n=n||{},a("textposition"),w5e.coerceFont(a,"textfont",n.font||t.font,n),n.noSelect||(a("selected.textfont.color"),a("unselected.textfont.color"))}});var Zw=B(($Re,vH)=>{"use strict";var k5=Kt(),cH=or().isArrayOrTypedArray;function A5e(e){for(var r=k5.interpolate(e[0][1],e[1][1],.5),t=2;t{"use strict";var hH=or(),T5e=Pt(),M5e=Nf(),k5e=(O1(),vr(I1)),Sh=Ti(),S5e=Yw(),C5e=Vw(),D5e=tH(),L5e=M5(),E5e=Xw(),dH=uH(),q5e=Ww(),F5e=Zw(),R5e=or().coercePattern;pH.exports=function(r,t,a,n){function i(d,p){return hH.coerce(r,t,M5e,d,p)}var o=S5e(r,t,n,i);if(o||(t.visible=!1),!!t.visible){C5e(r,t,n,i),i("xhoverformat"),i("yhoverformat"),i("zorder");var l=D5e(r,t,n,i);n.scattermode==="group"&&t.orientation===void 0&&i("orientation","v");var s=!l&&o{"use strict";var P5e=_1().getAxisGroup;yH.exports=function(r,t,a,n,i){var o=t.orientation,l=t[{v:"x",h:"y"}[o]+"axis"],s=P5e(a,l)+o,u=a._alignmentOpts||{},f=n("alignmentgroup"),c=u[s];c||(c=u[s]={});var v=c[f];v?v.traces.push(t):v=c[f]={traces:[t],alignmentIndex:Object.keys(c).length,offsetGroups:{}};var d=n("offsetgroup")||"",p=v.offsetGroups,m=p[d];t._offsetIndex=0,(i!=="group"||d)&&(m||(m=p[d]={offsetIndex:Object.keys(p).length}),t._offsetIndex=m.offsetIndex)}});var Jw=B((ePe,bH)=>{"use strict";var N5e=or(),z5e=gH(),B5e=Nf();bH.exports=function(r,t){var a,n,i,o=t.scattermode;function l(v){return N5e.coerce(n._input,n,B5e,v)}if(t.scattermode==="group")for(i=0;i=0;f--){var c=r[f];if(c.type==="scatter"&&c.xaxis===s.xaxis&&c.yaxis===s.yaxis){c.opacity=void 0;break}}}}}});var _H=B((rPe,xH)=>{"use strict";var I5e=or(),O5e=gg();xH.exports=function(e,r){function t(n,i){return I5e.coerce(e,r,O5e,n,i)}var a=r.barmode==="group";r.scattermode==="group"&&t("scattergap",a?r.bargap:.2)}});var jw=B((tPe,AH)=>{"use strict";var H5e=da(),wH=or(),U5e=wH.dateTime2ms,S5=wH.incrementMonth,G5e=(Wn(),vr(ri)),Y5e=G5e.ONEAVGMONTH;AH.exports=function(r,t,a,n){if(t.type!=="date")return{vals:n};var i=r[a+"periodalignment"];if(!i)return{vals:n};var o=r[a+"period"],l;if(H5e(o)){if(o=+o,o<=0)return{vals:n}}else if(typeof o=="string"&&o.charAt(0)==="M"){var s=+o.substring(1);if(s>0&&Math.round(s)===s)l=s;else return{vals:n}}for(var u=t.calendar,f=i==="start",c=i==="end",v=r[a+"period0"],d=U5e(v,u)||0,p=[],m=[],y=[],b=n.length,T=0;T_;)k=S5(k,-l,u);for(;k<=_;)k=S5(k,l,u);w=S5(k,-l,u)}else{for(x=Math.round((_-d)/o),k=d+x*o;k>_;)k-=o;for(;k<=_;)k+=o;w=k-o}p[T]=f?w:c?k:(w+k)/2,m[T]=w,y[T]=k}return{vals:p,starts:m,ends:y}}});var Q1=B((aPe,MH)=>{"use strict";var $w=Ol().hasColorscale,Kw=u7(),TH=Ti();MH.exports=function(r,t){TH.hasLines(t)&&$w(t,"line")&&Kw(r,t,{vals:t.line.color,containerStr:"line",cLetter:"c"}),TH.hasMarkers(t)&&($w(t,"marker")&&Kw(r,t,{vals:t.marker.color,containerStr:"marker",cLetter:"c"}),$w(t,"marker.line")&&Kw(r,t,{vals:t.marker.line.color,containerStr:"marker.line",cLetter:"c"}))}});var Qw=B((nPe,kH)=>{"use strict";var Tn=or();kH.exports=function(r,t){for(var a=0;a{"use strict";var SH=or();CH.exports=function(r,t){SH.isArrayOrTypedArray(t.selectedpoints)&&SH.tagSelected(r,t)}});var Ch=B((oPe,NH)=>{"use strict";var LH=da(),r9=or(),ep=en(),EH=jw(),e9=(Wn(),vr(ri)).BADNUM,t9=Ti(),V5e=Q1(),X5e=Qw(),W5e=DH();function Z5e(e,r){var t=e._fullLayout,a=r._xA=ep.getFromId(e,r.xaxis||"x","x"),n=r._yA=ep.getFromId(e,r.yaxis||"y","y"),i=a.makeCalcdata(r,"x"),o=n.makeCalcdata(r,"y"),l=EH(r,a,"x",i),s=EH(r,n,"y",o),u=l.vals,f=s.vals,c=r._length,v=new Array(c),d=r.ids,p=a9(r,t,a,n),m=!1,y,b,T,_,x,w;RH(t,r);var k="x",M="y",C;if(p)r9.pushUnique(p.traceIndices,r.index),y=p.orientation==="v",y?(M="s",C="x"):(k="s",C="y"),x=p.stackgaps==="interpolate";else{var E=FH(r,c);qH(e,r,a,n,u,f,E)}var F=!!r.xperiodalignment,P=!!r.yperiodalignment;for(b=0;bb&&v[_].gap;)_--;for(w=v[_].s,T=v.length-1;T>_;T--)v[T].s=w;for(;b<_;)if(b++,v[b].gap){for(T=b+1;v[T].gap;)T++;for(var U=v[b-1][C],V=v[b-1].s,W=(v[T].s-V)/(v[T][C]-U);b{"use strict";zH.exports=C5;var J5e=or().distinctVals;function C5(e,r){this.traces=e,this.sepNegVal=r.sepNegVal,this.overlapNoMerge=r.overlapNoMerge;for(var t=1/0,a=r.posAxis._id.charAt(0),n=[],i=0;ij5e,eventDataKeys:()=>$5e});var j5e,$5e,OH=Ja(()=>{"use strict";j5e=3,$5e=["value","label"]});var VH=B((sPe,YH)=>{"use strict";var xl=da(),{isArrayOrTypedArray:_u}=or(),{BADNUM:Dh}=(Wn(),vr(ri)),K5e=Pt(),rp=en(),{getAxisGroup:Q5e}=_1(),D5=BH(),{TEXTPAD:ebe}=(OH(),vr(IH)),{LINE_SPACING:rbe}=(Oi(),vr(Ii)),{BR_TAG_ALL:tbe}=Ei();function abe(e,r){for(var t=r.xaxis,a=r.yaxis,n=e._fullLayout,i=e._fullData,o=e.calcdata,l=[],s=[],u=0;us+o||!xl(l))}for(var f=0;fa(i))):a(e.text);let n=e.outsidetextfont.size*rbe*t+ebe;return{ppadplus:r.some(i=>i.s<0)?n:0,ppadminus:r.some(i=>i.s>=0)?n:0}}return{ppadplus:void 0,ppadminus:void 0}}function hbe(e,r,t,a){for(var n=Lh(a),i=0;i{"use strict";var XH=Ch(),WH=VH().setGroupPositions;function pbe(e,r){for(var t=r.xaxis,a=r.yaxis,n=e._fullLayout,i=e._fullData,o=e.calcdata,l=[],s=[],u=0;uE[f]&&f{"use strict";var ybe=Sa(),QH=(Wn(),vr(ri)),tp=QH.BADNUM,eU=QH.LOG_CLIP,jH=eU+.5,$H=eU-.5,L5=or(),gbe=L5.segmentsIntersect,KH=L5.constrain,f9=(O1(),vr(I1));rU.exports=function(r,t){var a=t.trace||{},n=t.xaxis,i=t.yaxis,o=n.type==="log",l=i.type==="log",s=n._length,u=i._length,f=t.backoff,c=a.marker,v=t.connectGaps,d=t.baseTolerance,p=t.shape,m=p==="linear",y=a.fill&&a.fill!=="none",b=[],T=f9.minTolerance,_=r.length,x=new Array(_),w=0,k,M,C,E,F,P,q,z,I,U,V,W,G,Y,Z,j;function ee(Ge){var Mr=r[Ge];if(!Mr)return!1;var rr=t.linearized?n.l2p(Mr.x):n.c2p(Mr.x),Rr=t.linearized?i.l2p(Mr.y):i.c2p(Mr.y);if(rr===tp){if(o&&(rr=n.c2p(Mr.x,!0)),rr===tp)return!1;l&&Rr===tp&&(rr*=Math.abs(n._m*u*(n._m>0?jH:$H)/(i._m*s*(i._m>0?jH:$H)))),rr*=1e3}if(Rr===tp){if(l&&(Rr=i.c2p(Mr.y,!0)),Rr===tp)return!1;Rr*=1e3}return[rr,Rr]}function ye(Ge,Mr,rr,Rr){var at=rr-Ge,nt=Rr-Mr,lt=.5-Ge,le=.5-Mr,Te=at*at+nt*nt,tr=at*lt+nt*le;if(tr>0&&tr1||Math.abs(lt.y-rr[0][1])>1)&&(lt=[lt.x,lt.y],Rr&&Le(lt,Ge)Re||Ge[1]He)return[KH(Ge[0],Fe,Re),KH(Ge[1],ge,He)]}function Pr(Ge,Mr){if(Ge[0]===Mr[0]&&(Ge[0]===Fe||Ge[0]===Re)||Ge[1]===Mr[1]&&(Ge[1]===ge||Ge[1]===He))return!0}function Br(Ge,Mr){var rr=[],Rr=_r(Ge),at=_r(Mr);return Rr&&at&&Pr(Rr,at)||(Rr&&rr.push(Rr),at&&rr.push(at)),rr}function $e(Ge,Mr,rr){return function(Rr,at){var nt=_r(Rr),lt=_r(at),le=[];if(nt&<&&Pr(nt,lt))return le;nt&&le.push(nt),lt&&le.push(lt);var Te=2*L5.constrain((Rr[Ge]+at[Ge])/2,Mr,rr)-((nt||Rr)[Ge]+(lt||at)[Ge]);if(Te){var tr;nt&<?tr=Te>0==nt[Ge]>lt[Ge]?nt:lt:tr=nt||lt,tr[Ge]+=Te}return le}}var mr;p==="linear"||p==="spline"?mr=Ie:p==="hv"||p==="vh"?mr=Br:p==="hvh"?mr=$e(0,Fe,Re):p==="vhv"&&(mr=$e(1,ge,He));function Yr(Ge,Mr){var rr=Mr[0]-Ge[0],Rr=(Mr[1]-Ge[1])/rr,at=(Ge[1]*Mr[0]-Mr[1]*Ge[0])/rr;return at>0?[Rr>0?Fe:Re,He]:[Rr>0?Re:Fe,ge]}function ue(Ge){var Mr=Ge[0],rr=Ge[1],Rr=Mr===x[w-1][0],at=rr===x[w-1][1];if(!(Rr&&at))if(w>1){var nt=Mr===x[w-2][0],lt=rr===x[w-2][1];Rr&&(Mr===Fe||Mr===Re)&&nt?lt?w--:x[w-1]=Ge:at&&(rr===ge||rr===He)&<?nt?w--:x[w-1]=Ge:x[w++]=Ge}else x[w++]=Ge}function Ee(Ge){x[w-1][0]!==Ge[0]&&x[w-1][1]!==Ge[1]&&ue([Ye,We]),ue(Ge),Ve=null,Ye=We=0}var Tr=L5.isArrayOrTypedArray(c);function rt(Ge){if(Ge&&f&&(Ge.i=k,Ge.d=r,Ge.trace=a,Ge.marker=Tr?c[Ge.i]:c,Ge.backoff=f),fe=Ge[0]/s,he=Ge[1]/u,qe=Ge[0]Re?Re:0,Ue=Ge[1]He?He:0,qe||Ue){if(!w)x[w++]=[qe||Ge[0],Ue||Ge[1]];else if(Ve){var Mr=mr(Ve,Ge);Mr.length>1&&(Ee(Mr[0]),x[w++]=Mr[1])}else ar=mr(x[w-1],Ge)[0],x[w++]=ar;var rr=x[w-1];qe&&Ue&&(rr[0]!==qe||rr[1]!==Ue)?(Ve&&(Ye!==qe&&We!==Ue?ue(Ye&&We?Yr(Ve,Ge):[Ye||qe,We||Ue]):Ye&&We&&ue([Ye,We])),ue([qe,Ue])):Ye-qe&&We-Ue&&ue([qe||Ye,Ue||We]),Ve=Ge,Ye=qe,We=Ue}else Ve&&Ee(mr(Ve,Ge)[0]),x[w++]=Ge}for(k=0;k<_;k++)if(M=ee(k),!!M){for(w=0,Ve=null,rt(M),k++;k<_;k++){if(E=ee(k),!E){if(v)continue;break}if(!m||!t.simplify){rt(E);continue}var ot=ee(k+1);if(U=Le(E,M),!(!(y&&(w===0||w===_-1))&&Uae(P,ot))break;C=P,G=I[0]*z[0]+I[1]*z[1],G>V?(V=G,E=P,q=!1):G=r.length||!P)break;rt(P),M=P}}Ve&&ue([Ye||Ve[0],We||Ve[1]]),b.push(x.slice(0,w))}var pe=p.slice(p.length-1);if(f&&pe!=="h"&&pe!=="v"){for(var Ce=!1,lr=-1,wr=[],fr=0;fr{"use strict";var aU={tonextx:1,tonexty:1,tonext:1};nU.exports=function(r,t,a){var n,i,o,l,s,u={},f=!1,c=-1,v=0,d=-1;for(i=0;i=0?s=d:(s=d=v,v++),s{"use strict";var Xl=la(),bbe=Pt(),ap=or(),Eh=ap.ensureSingle,oU=ap.identity,Sn=Sa(),qh=Ti(),xbe=tU(),_be=c9(),E5=nw().tester;lU.exports=function(r,t,a,n,i,o){var l,s,u=!i,f=!!i&&i.duration>0,c=_be(r,t,a);if(l=n.selectAll("g.trace").data(c,function(d){return d[0].trace.uid}),l.enter().append("g").attr("class",function(d){return"trace scatter trace"+d[0].trace.uid}).style("stroke-miterlimit",2),l.order(),wbe(r,l,t),f){o&&(s=o());var v=Xl.transition().duration(i.duration).ease(i.easing).each("end",function(){s&&s()}).each("interrupt",function(){s&&s()});v.each(function(){n.selectAll("g.trace").each(function(d,p){iU(r,p,t,d,c,this,i)})})}else l.each(function(d,p){iU(r,p,t,d,c,this,i)});u&&l.exit().remove(),n.selectAll("path:not([d])").remove()};function wbe(e,r,t){r.each(function(a){var n=Eh(Xl.select(this),"g","fills");Sn.setClipUrl(n,t.layerClipId,e);var i=a[0].trace;i._ownFill=null,i._nextFill=null;var o=[];i._ownfill&&o.push("_ownFill"),i._nexttrace&&o.push("_nextFill");var l=n.selectAll("g").data(o,oU);l.enter().append("g"),l.exit().remove(),l.order().each(function(s){i[s]=Eh(Xl.select(this),"path","js-fill")})})}function iU(e,r,t,a,n,i,o){var l=e._context.staticPlot,s;Abe(e,r,t,a,n);var u=!!o&&o.duration>0;function f($e){return u?$e.transition():$e}var c=t.xaxis,v=t.yaxis,d=a[0].trace,p=d.line,m=Xl.select(i),y=Eh(m,"g","errorbars"),b=Eh(m,"g","lines"),T=Eh(m,"g","points"),_=Eh(m,"g","text");if(bbe.getComponentMethod("errorbars","plot")(e,y,t,o),d.visible!==!0)return;f(m).style("opacity",d.opacity);var x,w,k=d.fill.charAt(d.fill.length-1);k!=="x"&&k!=="y"&&(k="");var M,C;k==="y"?(M=1,C=v.c2p(0,!0)):k==="x"&&(M=0,C=c.c2p(0,!0)),a[0][t.isRangePlot?"nodeRangePlot3":"node3"]=m;var E="",F=[],P=d._prevtrace,q=null,z=null;P&&(E=P._prevRevpath||"",w=P._nextFill,F=P._ownPolygons,q=P._fillsegments,z=P._fillElement);var I,U,V="",W="",G,Y,Z,j,ee,ye,fe=[];d._polygons=[];var he=[],ae=[],Le=ap.noop;if(x=d._ownFill,qh.hasLines(d)||d.fill!=="none"){w&&w.datum(a),["hv","vh","hvh","vhv"].indexOf(p.shape)!==-1?(G=Sn.steps(p.shape),Y=Sn.steps(p.shape.split("").reverse().join(""))):p.shape==="spline"?G=Y=function($e){var mr=$e[$e.length-1];return $e.length>1&&$e[0][0]===mr[0]&&$e[0][1]===mr[1]?Sn.smoothclosed($e.slice(1),p.smoothing):Sn.smoothopen($e,p.smoothing)}:G=Y=function($e){return"M"+$e.join("L")},Z=function($e){return Y($e.reverse())},ae=xbe(a,{xaxis:c,yaxis:v,trace:d,connectGaps:d.connectgaps,baseTolerance:Math.max(p.width||1,3)/4,shape:p.shape,backoff:p.backoff,simplify:p.simplify,fill:d.fill}),he=new Array(ae.length);var ce=0;for(s=0;s=l[0]&&m.x<=l[1]&&m.y>=s[0]&&m.y<=s[1]}),v=Math.ceil(c.length/f),d=0;n.forEach(function(m,y){var b=m[0].trace;qh.hasMarkers(b)&&b.marker.maxdisplayed>0&&y{"use strict";uU.exports={container:"marker",min:"cmin",max:"cmax"}});var v9=B((dPe,fU)=>{"use strict";var F5=en();fU.exports=function(r,t,a){var n={},i={_fullLayout:a},o=F5.getFromTrace(i,t,"x"),l=F5.getFromTrace(i,t,"y"),s=r.orig_x;s===void 0&&(s=r.x);var u=r.orig_y;return u===void 0&&(u=r.y),n.xLabel=F5.tickText(o,o.c2l(s),!0).text,n.yLabel=F5.tickText(l,l.c2l(u),!0).text,n}});var m9=B((pPe,cU)=>{"use strict";var h9=la(),Fh=Sa(),Tbe=Pt();function Mbe(e){var r=h9.select(e).selectAll("g.trace.scatter");r.style("opacity",function(t){return t[0].trace.opacity}),r.selectAll("g.points").each(function(t){var a=h9.select(this),n=t.trace||t[0].trace;d9(a,n,e)}),r.selectAll("g.text").each(function(t){var a=h9.select(this),n=t.trace||t[0].trace;p9(a,n,e)}),r.selectAll("g.trace path.js-line").call(Fh.lineGroupStyle),r.selectAll("g.trace path.js-fill").call(Fh.fillGroupStyle,e,!1),Tbe.getComponentMethod("errorbars","style")(r)}function d9(e,r,t){Fh.pointStyle(e.selectAll("path.point"),r,t)}function p9(e,r,t){Fh.textPointStyle(e.selectAll("text"),r,t)}function kbe(e,r,t){var a=r[0].trace;a.selectedpoints?(Fh.selectedPointStyle(t.selectAll("path.point"),a),Fh.selectedTextStyle(t.selectAll("text"),a)):(d9(t,a,e),p9(t,a,e))}cU.exports={style:Mbe,stylePoints:d9,styleText:p9,styleOnSelect:kbe}});var y9=B((mPe,vU)=>{"use strict";var Rh=Kt(),Sbe=Ti();vU.exports=function(r,t){var a,n;if(r.mode==="lines")return a=r.line.color,a&&Rh.opacity(a)?a:r.fillcolor;if(r.mode==="none")return r.fill?r.fillcolor:"";var i=t.mcc||t.mc||(r.marker||{}).color,o=t.mlcc||((r.marker||{}).line||{}).color;return n=i&&Rh.opacity(i)?i:o&&Rh.opacity(o)&&(t.mlw||((r.marker||{}).line||{}).width)?o:"",n?Rh.opacity(n)<.3?Rh.addOpacity(n,.3):n:(a=(r.line||{}).color,a&&Rh.opacity(a)&&Sbe.hasLines(r)&&r.line.width?a:r.fillcolor)}});var pU=B((yPe,dU)=>{"use strict";var R5=or(),hU=mu(),Cbe=Pt(),Dbe=y9(),g9=Kt(),Lbe=R5.fillText;dU.exports=function(r,t,a,n){var i=r.cd,o=i[0].trace,l=r.xa,s=r.ya,u=l.c2p(t),f=s.c2p(a),c=[u,f],v=o.hoveron||"",d=o.mode.indexOf("markers")!==-1?3:.5,p=!!o.xperiodalignment,m=!!o.yperiodalignment;if(v.indexOf("points")!==-1){var y=function(W){if(p){var G=l.c2p(W.xStart),Y=l.c2p(W.xEnd);return u>=Math.min(G,Y)&&u<=Math.max(G,Y)?0:1/0}var Z=Math.max(3,W.mrc||0),j=1-1/Z,ee=Math.abs(l.c2p(W.x)-u);return ee=Math.min(G,Y)&&f<=Math.max(G,Y)?0:1/0}var Z=Math.max(3,W.mrc||0),j=1-1/Z,ee=Math.abs(s.c2p(W.y)-f);return eefe!=He>=fe&&(Fe=Le[ae-1][0],Re=Le[ae][0],He-ge&&(ce=Fe+(Re-Fe)*(fe-ge)/(He-ge),Z=Math.min(Z,ce),j=Math.max(j,ce)));return Z=Math.max(Z,0),j=Math.min(j,l._length),{x0:Z,x1:j,y0:fe,y1:fe}}if(v.indexOf("fills")!==-1&&o._fillElement){var I=q(o._fillElement)&&!q(o._fillExclusionElement);if(I){var U=z(o._polygons);U===null&&(U={x0:c[0],x1:c[0],y0:c[1],y1:c[1]});var V=g9.defaultLine;return g9.opacity(o.fillcolor)?V=o.fillcolor:g9.opacity((o.line||{}).color)&&(V=o.line.color),R5.extendFlat(r,{distance:r.maxHoverDistance,x0:U.x0,x1:U.x1,y0:U.y0,y1:U.y1,color:V,hovertemplate:!1}),delete r.index,o.text&&!R5.isArrayOrTypedArray(o.text)?r.text=String(o.text):r.text=o.name,[r]}}}});var gU=B((gPe,yU)=>{"use strict";var mU=Ti();yU.exports=function(r,t){var a=r.cd,n=r.xaxis,i=r.yaxis,o=[],l=a[0].trace,s,u,f,c,v=l.mode&&!mU.hasMarkers(l)&&!mU.hasText(l);if(v)return[];if(t===!1)for(s=0;s{"use strict";bU.exports={xaxis:{valType:"subplotid",dflt:"x",editType:"calc+clearAxisTypes"},yaxis:{valType:"subplotid",dflt:"y",editType:"calc+clearAxisTypes"}}});var TU=B((xPe,AU)=>{"use strict";var P5=Pt().traceIs,b9=D7();AU.exports=function(r,t,a,n){a("autotypenumbers",n.autotypenumbersDflt);var i=a("type",(n.splomStash||{}).type);i==="-"&&(Ebe(t,n.data),t.type==="-"?t.type="linear":r.type=t.type)};function Ebe(e,r){if(e.type==="-"){var t=e._id,a=t.charAt(0),n;t.indexOf("scene")!==-1&&(t=a);var i=qbe(r,t,a);if(i){if(i.type==="histogram"&&a==={v:"y",h:"x"}[i.orientation||"v"]){e.type="linear";return}var o=a+"calendar",l=i[o],s={noMultiCategory:!P5(i,"cartesian")||P5(i,"noMultiCategory")};if(i.type==="box"&&i._hasPreCompStats&&a==={h:"x",v:"y"}[i.orientation||"v"]&&(s.noMultiCategory=!0),s.autotypenumbers=e.autotypenumbers,wU(i,a)){var u=_U(i),f=[];for(n=0;n0&&(n["_"+t+"axes"]||{})[r])return n;if((n[t+"axis"]||t)===r){if(wU(n,t))return n;if((n[t]||[]).length||n[t+"0"])return n}}}function _U(e){return{v:"x",h:"y"}[e.orientation||"v"]}function wU(e,r){var t=_U(e),a=P5(e,"box-violin");return a&&r===t&&e[t]===void 0&&e[t+"0"]===void 0}});var kU=B((_Pe,MU)=>{"use strict";var Fbe=so().isTypedArraySpec;function Rbe(e,r){var t=r.dataAttr||e._id.charAt(0),a={},n,i,o;if(r.axData)n=r.axData;else for(n=[],i=0;i0||Fbe(i),l;o&&(l="array");var s=a("categoryorder",l),u;s==="array"&&(u=a("categoryarray")),!o&&s==="array"&&(s=t.categoryorder="trace"),s==="trace"?t._initialCategories=[]:s==="array"?t._initialCategories=u.slice():(u=Rbe(t,n).sort(),s==="category ascending"?t._initialCategories=u:s==="category descending"&&(t._initialCategories=u.reverse()))}}});var DU=B((wPe,CU)=>{"use strict";var SU=Kt(),Pbe=ys(),Nbe=or();CU.exports=function(r,t,a,n){n=n||{};var i=n.dfltColor;function o(C,E){return Nbe.coerce2(r,t,n.attributes,C,E)}var l=o("linecolor",i),s=o("linewidth"),u=a("showline",n.showLine||!!l||!!s);u||(delete t.linecolor,delete t.linewidth);var f=SU.mix(i,n.bgColor,n.blend||Pbe.lightFraction),c=o("gridcolor",f),v=o("gridwidth"),d=o("griddash"),p=a("showgrid",n.showGrid||!!c||!!v||!!d);if(p||(delete t.gridcolor,delete t.gridwidth,delete t.griddash),n.hasMinor){var m=SU.mix(t.gridcolor,n.bgColor,67),y=o("minor.gridcolor",m),b=o("minor.gridwidth",t.gridwidth||1),T=o("minor.griddash",t.griddash||"solid"),_=a("minor.showgrid",!!y||!!b||!!T);_||(delete t.minor.gridcolor,delete t.minor.gridwidth,delete t.minor.griddash)}if(!n.noZeroLine){var x=o("zerolinelayer"),w=o("zerolinecolor",i),k=o("zerolinewidth"),M=a("zeroline",n.showGrid||!!w||!!k);M||(delete t.zerolinelayer,delete t.zerolinecolor,delete t.zerolinewidth)}}});var _9=B((APe,PU)=>{"use strict";var LU=da(),zbe=Pt(),np=or(),Bbe=Ra(),Ibe=Oo(),x9=sl(),EU=K6(),qU=e7(),Obe=a7(),Hbe=n7(),Ube=kU(),Gbe=DU(),Ybe=$7(),FU=Hg(),N5=(ni(),vr(ai)).WEEKDAY_PATTERN,Vbe=(ni(),vr(ai)).HOUR_PATTERN;PU.exports=function(r,t,a,n,i){var o=n.letter,l=n.font||{},s=n.splomStash||{},u=a("visible",!n.visibleDflt),f=t._template||{},c=t.type||f.type||"-",v;if(c==="date"){var d=zbe.getComponentMethod("calendars","handleDefaults");d(r,t,"calendar",n.calendar),n.noTicklabelmode||(v=a("ticklabelmode"))}!n.noTicklabelindex&&(c==="date"||c==="linear")&&a("ticklabelindex");var p="";(!n.noTicklabelposition||c==="multicategory")&&(p=np.coerce(r,t,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:v==="period"?["outside","inside"]:o==="x"?["outside","inside","outside left","inside left","outside right","inside right"]:["outside","inside","outside top","inside top","outside bottom","inside bottom"]}},"ticklabelposition")),n.noTicklabeloverflow||a("ticklabeloverflow",p.indexOf("inside")!==-1?"hide past domain":c==="category"||c==="multicategory"?"allow":"hide past div"),FU(t,i),Ybe(r,t,a,n),Ube(r,t,a,n),n.noHover||(c!=="category"&&a("hoverformat"),n.noUnifiedhovertitle||a("unifiedhovertitle.text"));var m=a("color"),y=m!==x9.color.dflt?m:l.color,b=s.label||i._dfltTitle[o];if(Hbe(r,t,a,c,n),!u)return t;a("title.text",b),np.coerceFont(a,"title.font",l,{overrideDflt:{size:np.bigFont(l.size),color:y}}),EU(r,t,a,c);var T=n.hasMinor;if(T&&(Bbe.newContainer(t,"minor"),EU(r,t,a,c,{isMinor:!0})),Obe(r,t,a,c,n),qU(r,t,a,n),T){var _=n.isMinor;n.isMinor=!0,qU(r,t,a,n),n.isMinor=_}Gbe(r,t,a,{dfltColor:m,bgColor:n.bgColor,showGrid:n.showGrid,hasMinor:T,attributes:x9}),T&&t.ticklabelindex==null&&!t.minor.ticks&&!t.minor.showgrid&&delete t.minor,(t.showline||t.ticks)&&a("mirror");var x=c==="multicategory";if(!n.noTickson&&(c==="category"||x)&&(t.ticks||t.showgrid)&&(x?(a("tickson","boundaries"),delete t.ticklabelposition):a("tickson")),x){var w=a("showdividers");w&&(a("dividercolor"),a("dividerwidth"))}if(c==="date")if(Ibe(r,t,{name:"rangebreaks",inclusionAttr:"enabled",handleItemDefaults:Xbe}),!t.rangebreaks.length)delete t.rangebreaks;else{for(var k=0;k=2){var o="",l,s;if(i.length===2){for(l=0;l<2;l++)if(s=RU(i[l]),s){o=N5;break}}var u=a("pattern",o);if(u===N5)for(l=0;l<2;l++)s=RU(i[l]),s&&(r.bounds[l]=i[l]=s-1);if(u)for(l=0;l<2;l++)switch(s=i[l],u){case N5:if(!LU(s)){r.enabled=!1;return}if(s=+s,s!==Math.floor(s)||s<0||s>=7){r.enabled=!1;return}r.bounds[l]=i[l]=s;break;case Vbe:if(!LU(s)){r.enabled=!1;return}if(s=+s,s<0||s>24){r.enabled=!1;return}r.bounds[l]=i[l]=s;break}if(t.autorange===!1){var f=t.range;if(f[0]f[1]){r.enabled=!1;return}}else if(i[0]>f[0]&&i[1]{"use strict";var Zbe=da(),z5=or();NU.exports=function(r,t,a,n){var i=n.counterAxes||[],o=n.overlayableAxes||[],l=n.letter,s=n.grid,u=n.overlayingDomain,f,c,v,d,p,m;s&&(c=s._domains[l][s._axisMap[t._id]],f=s._anchors[t._id],c&&(v=s[l+"side"].split(" ")[0],d=s.domain[l][v==="right"||v==="top"?1:0])),c=c||[0,1],f=f||(Zbe(r.position)?"free":i[0]||"free"),v=v||(l==="x"?"bottom":"left"),d=d||0,p=0,m=!1;var y=z5.coerce(r,t,{anchor:{valType:"enumerated",values:["free"].concat(i),dflt:f}},"anchor"),b=z5.coerce(r,t,{side:{valType:"enumerated",values:l==="x"?["bottom","top"]:["left","right"],dflt:v}},"side");if(y==="free"){if(l==="y"){var T=a("autoshift");T&&(d=b==="left"?u[0]:u[1],m=t.automargin?t.automargin:!0,p=b==="left"?-3:3),a("shift",p)}a("position",d)}a("automargin",m);var _=!1;if(o.length&&(_=z5.coerce(r,t,{overlaying:{valType:"enumerated",values:[!1].concat(o),dflt:!1}},"overlaying")),!_){var x=a("domain",c);x[0]>x[1]-1/4096&&(t.domain=c),z5.noneOrAll(r.domain,t.domain,c),t.tickmode==="sync"&&(t.tickmode="auto")}return a("layer"),t}});var VU=B((MPe,YU)=>{"use strict";var _c=or(),zU=Kt(),Jbe=xs().isUnifiedHover,jbe=k8(),BU=Ra(),$be=Uv(),IU=sl(),Kbe=TU(),OU=_9(),Qbe=_1(),HU=w9(),T9=hn(),Rs=T9.id2name,UU=T9.name2id,exe=(ni(),vr(ai)).AX_ID_PATTERN,GU=Pt(),B5=GU.traceIs,A9=GU.getComponentMethod;function I5(e,r,t){Array.isArray(e[r])?e[r].push(t):e[r]=[t]}YU.exports=function(r,t,a){var n=t.autotypenumbers,i={},o={},l={},s={},u={},f={},c={},v={},d={},p={},m,y;for(m=0;m{"use strict";var rxe=la(),XU=Pt(),O5=or(),Zo=Sa(),H5=en();WU.exports=function(r,t,a,n){var i=r._fullLayout;if(t.length===0){H5.redrawComponents(r);return}function o(y){var b=y.xaxis,T=y.yaxis;i._defs.select("#"+y.clipId+"> rect").call(Zo.setTranslate,0,0).call(Zo.setScale,1,1),y.plot.call(Zo.setTranslate,b._offset,T._offset).call(Zo.setScale,1,1);var _=y.plot.selectAll(".scatterlayer .trace");_.selectAll(".point").call(Zo.setPointGroupScale,1,1),_.selectAll(".textpoint").call(Zo.setTextPointsScale,1,1),_.call(Zo.hideOutsideRangePoints,y)}function l(y,b){var T=y.plotinfo,_=T.xaxis,x=T.yaxis,w=_._length,k=x._length,M=!!y.xr1,C=!!y.yr1,E=[];if(M){var F=O5.simpleMap(y.xr0,_.r2l),P=O5.simpleMap(y.xr1,_.r2l),q=F[1]-F[0],z=P[1]-P[0];E[0]=(F[0]*(1-b)+b*P[0]-F[0])/(F[1]-F[0])*w,E[2]=w*(1-b+b*z/q),_.range[0]=_.l2r(F[0]*(1-b)+b*P[0]),_.range[1]=_.l2r(F[1]*(1-b)+b*P[1])}else E[0]=0,E[2]=w;if(C){var I=O5.simpleMap(y.yr0,x.r2l),U=O5.simpleMap(y.yr1,x.r2l),V=I[1]-I[0],W=U[1]-U[0];E[1]=(I[1]*(1-b)+b*U[1]-I[1])/(I[0]-I[1])*k,E[3]=k*(1-b+b*W/V),x.range[0]=_.l2r(I[0]*(1-b)+b*U[0]),x.range[1]=x.l2r(I[1]*(1-b)+b*U[1])}else E[1]=0,E[3]=k;H5.drawOne(r,_,{skipTitle:!0}),H5.drawOne(r,x,{skipTitle:!0}),H5.redrawComponents(r,[_._id,x._id]);var G=M?w/E[2]:1,Y=C?k/E[3]:1,Z=M?E[0]:0,j=C?E[1]:0,ee=M?E[0]/E[2]*w:0,ye=C?E[1]/E[3]*k:0,fe=_._offset-ee,he=x._offset-ye;T.clipRect.call(Zo.setTranslate,Z,j).call(Zo.setScale,1/G,1/Y),T.plot.call(Zo.setTranslate,fe,he).call(Zo.setScale,G,Y),Zo.setPointGroupScale(T.zoomScalePts,1/G,1/Y),Zo.setTextPointsScale(T.zoomScaleTxt,1/G,1/Y)}var s;n&&(s=n());function u(){for(var y={},b=0;ba.duration?(u(),d=window.cancelAnimationFrame(m)):d=window.requestAnimationFrame(m)}return c=Date.now(),d=window.requestAnimationFrame(m),Promise.resolve()}});var ip=B(Ui=>{"use strict";var G5=la(),JU=Pt(),wc=or(),txe=di(),axe=Sa(),jU=W2().getModuleCalcData,If=hn(),Wl=(ni(),vr(ai)),nxe=(xf(),vr(bf)),wa=wc.ensureSingle;function U5(e,r,t){return wc.ensureSingle(e,r,t,function(a){a.datum(t)})}var Ac=Wl.zindexSeparator;Ui.name="cartesian";Ui.attr=["xaxis","yaxis"];Ui.idRoot=["x","y"];Ui.idRegex=Wl.idRegex;Ui.attrRegex=Wl.attrRegex;Ui.attributes=xU();Ui.layoutAttributes=sl();Ui.supplyLayoutDefaults=VU();Ui.transitionAxes=ZU();Ui.finalizeSubplots=function(e,r){var t=r._subplots,a=t.xaxis,n=t.yaxis,i=t.cartesian,o=i,l={},s={},u,f,c;for(u=0;u0){var d=v.id;if(d.indexOf(Ac)!==-1)continue;d+=Ac+(u+1),v=wc.extendFlat({},v,{id:d,plot:n._cartesianlayer.selectAll(".subplot").select("."+d)})}for(var p=[],m,y=0;y1&&(w+=Ac+x),_.push(l+w),o=0;o1,c=r.mainplotinfo;if(!r.mainplot||f)if(u)r.xlines=wa(a,"path","xlines-above"),r.ylines=wa(a,"path","ylines-above"),r.xaxislayer=wa(a,"g","xaxislayer-above"),r.yaxislayer=wa(a,"g","yaxislayer-above");else{if(!o){var v=wa(a,"g","layer-subplot");r.shapelayer=wa(v,"g","shapelayer"),r.imagelayer=wa(v,"g","imagelayer"),c&&f?(r.minorGridlayer=c.minorGridlayer,r.gridlayer=c.gridlayer,r.zerolinelayer=c.zerolinelayer):(r.minorGridlayer=wa(a,"g","minor-gridlayer"),r.gridlayer=wa(a,"g","gridlayer"),r.zerolinelayer=wa(a,"g","zerolinelayer"));var d=wa(a,"g","layer-between");r.shapelayerBetween=wa(d,"g","shapelayer"),r.imagelayerBetween=wa(d,"g","imagelayer"),wa(a,"path","xlines-below"),wa(a,"path","ylines-below"),r.overlinesBelow=wa(a,"g","overlines-below"),wa(a,"g","xaxislayer-below"),wa(a,"g","yaxislayer-below"),r.overaxesBelow=wa(a,"g","overaxes-below")}r.overplot=wa(a,"g","overplot"),r.plot=wa(r.overplot,"g",n),c&&f?r.zerolinelayerAbove=c.zerolinelayerAbove:r.zerolinelayerAbove=wa(a,"g","zerolinelayer-above"),o||(r.xlines=wa(a,"path","xlines-above"),r.ylines=wa(a,"path","ylines-above"),r.overlinesAbove=wa(a,"g","overlines-above"),wa(a,"g","xaxislayer-above"),wa(a,"g","yaxislayer-above"),r.overaxesAbove=wa(a,"g","overaxes-above"),r.xlines=a.select(".xlines-"+l),r.ylines=a.select(".ylines-"+s),r.xaxislayer=a.select(".xaxislayer-"+l),r.yaxislayer=a.select(".yaxislayer-"+s))}else{var p=c.plotgroup,m=n+"-x",y=n+"-y";r.minorGridlayer=c.minorGridlayer,r.gridlayer=c.gridlayer,r.zerolinelayer=c.zerolinelayer,r.zerolinelayerAbove=c.zerolinelayerAbove,wa(c.overlinesBelow,"path",m),wa(c.overlinesBelow,"path",y),wa(c.overaxesBelow,"g",m),wa(c.overaxesBelow,"g",y),r.plot=wa(c.overplot,"g",n),wa(c.overlinesAbove,"path",m),wa(c.overlinesAbove,"path",y),wa(c.overaxesAbove,"g",m),wa(c.overaxesAbove,"g",y),r.xlines=p.select(".overlines-"+l).select("."+m),r.ylines=p.select(".overlines-"+s).select("."+y),r.xaxislayer=p.select(".overaxes-"+l).select("."+m),r.yaxislayer=p.select(".overaxes-"+s).select("."+y)}o||(u||(U5(r.minorGridlayer,"g",r.xaxis._id),U5(r.minorGridlayer,"g",r.yaxis._id),r.minorGridlayer.selectAll("g").map(function(b){return b[0]}).sort(If.idSort),U5(r.gridlayer,"g",r.xaxis._id),U5(r.gridlayer,"g",r.yaxis._id),r.gridlayer.selectAll("g").map(function(b){return b[0]}).sort(If.idSort)),r.xlines.style("fill","none").classed("crisp",!0),r.ylines.style("fill","none").classed("crisp",!0))}function QU(e,r){if(e){var t={};e.each(function(s){var u=s[0],f=G5.select(this);f.remove(),eG(u,r),t[u]=!0});for(var a in r._plots)for(var n=r._plots[a],i=n.overlays||[],o=0;o{"use strict";var Y5=Ti();rG.exports={hasLines:Y5.hasLines,hasMarkers:Y5.hasMarkers,hasText:Y5.hasText,isBubble:Y5.isBubble,attributes:Nf(),layoutAttributes:gg(),supplyDefaults:mH(),crossTraceDefaults:Jw(),supplyLayoutDefaults:_H(),calc:Ch().calc,crossTraceCalc:JH(),arraysToCalcdata:Qw(),plot:sU(),colorbar:q5(),formatLabels:v9(),style:m9().style,styleOnSelect:m9().styleOnSelect,hoverPoints:pU(),selectPoints:gU(),animatable:!0,moduleType:"trace",name:"scatter",basePlotModule:ip(),categories:["cartesian","svg","symbols","errorBarsOK","showLegend","scatter-like","zoomScale"],meta:{}}});var iG=B((DPe,nG)=>{"use strict";var oxe=la(),lxe=Kt(),aG=mw(),M9=or(),sxe=M9.strScale,uxe=M9.strRotate,fxe=M9.strTranslate;nG.exports=function(r,t,a){var n=r.node(),i=aG[a.arrowhead||0],o=aG[a.startarrowhead||0],l=(a.arrowwidth||1)*(a.arrowsize||1),s=(a.arrowwidth||1)*(a.startarrowsize||1),u=t.indexOf("start")>=0,f=t.indexOf("end")>=0,c=i.backoff*l+a.standoff,v=o.backoff*s+a.startstandoff,d,p,m,y;if(n.nodeName==="line"){d={x:+r.attr("x1"),y:+r.attr("y1")},p={x:+r.attr("x2"),y:+r.attr("y2")};var b=d.x-p.x,T=d.y-p.y;if(m=Math.atan2(T,b),y=m+Math.PI,c&&v&&c+v>Math.sqrt(b*b+T*T)){I();return}if(c){if(c*c>b*b+T*T){I();return}var _=c*Math.cos(m),x=c*Math.sin(m);p.x+=_,p.y+=x,r.attr({x2:p.x,y2:p.y})}if(v){if(v*v>b*b+T*T){I();return}var w=v*Math.cos(m),k=v*Math.sin(m);d.x-=w,d.y-=k,r.attr({x1:d.x,y1:d.y})}}else if(n.nodeName==="path"){var M=n.getTotalLength(),C="";if(M{"use strict";var oG=la(),k9=Pt(),cxe=di(),Hf=or(),S9=Hf.strTranslate,lp=en(),Tc=Kt(),wu=Sa(),lG=mu(),C9=Ei(),D9=Cf(),op=Ul(),vxe=Ra().arrayEditor,hxe=iG();fG.exports={draw:dxe,drawOne:sG,drawRaw:uG};function dxe(e){var r=e._fullLayout;r._infolayer.selectAll(".annotation").remove();for(var t=0;t2/3?at="right":at="center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[at]}for(var ge=!1,He=["x","y"],ur=0;ur1)&&(Ye===Ue?(ot=We.r2fraction(r["a"+qe]),(ot<0||ot>1)&&(ge=!0)):ge=!0),mr=We._offset+We.r2p(r[qe]),Ee=.5}else{var pe=rt==="domain";qe==="x"?(ue=r[qe],mr=pe?We._offset+We._length*ue:mr=l.l+l.w*ue):(ue=1-r[qe],mr=pe?We._offset+We._length*ue:mr=l.t+l.h*ue),Ee=r.showarrow?.5:ue}if(r.showarrow){$e.head=mr;var Ce=r["a"+qe];if(Tr=ar*Re(.5,r.xanchor)-Ie*Re(.5,r.yanchor),Ye===Ue){var lr=lp.getRefType(Ye);lr==="domain"?(qe==="y"&&(Ce=1-Ce),$e.tail=We._offset+We._length*Ce):lr==="paper"?qe==="y"?(Ce=1-Ce,$e.tail=l.t+l.h*Ce):$e.tail=l.l+l.w*Ce:$e.tail=We._offset+We.r2p(Ce),Yr=Tr}else $e.tail=mr+Ce,Yr=Tr+Ce;$e.text=$e.tail+Tr;var wr=o[qe==="x"?"width":"height"];if(Ue==="paper"&&($e.head=Hf.constrain($e.head,1,wr-1)),Ye==="pixel"){var fr=-Math.max($e.tail-3,$e.text),kr=Math.min($e.tail+3,$e.text)-wr;fr>0?($e.tail+=fr,$e.text+=fr):kr>0&&($e.tail-=kr,$e.text-=kr)}$e.tail+=Br,$e.head+=Br}else Tr=_r*Re(Ee,Pr),Yr=Tr,$e.text=mr+Tr;$e.text+=Br,Tr+=Br,Yr+=Br,r["_"+qe+"padplus"]=_r/2+Yr,r["_"+qe+"padminus"]=_r/2-Yr,r["_"+qe+"size"]=_r,r["_"+qe+"shift"]=Tr}if(ge){M.remove();return}var qr=0,$r=0;if(r.align!=="left"&&(qr=(ae-fe)*(r.align==="center"?.5:1)),r.valign!=="top"&&($r=(Le-he)*(r.valign==="middle"?.5:1)),ee)j.select("svg").attr({x:F+qr-1,y:F+$r}).call(wu.setClipUrl,q?m:null,e);else{var tt=F+$r-ye.top,Ge=F+qr-ye.left;V.call(C9.positionText,Ge,tt).call(wu.setClipUrl,q?m:null,e)}z.select("rect").call(wu.setRect,F,F,ae,Le),P.call(wu.setRect,C/2,C/2,ce-C,Fe-C),M.call(wu.setTranslate,Math.round(y.x.text-ce/2),Math.round(y.y.text-Fe/2)),_.attr({transform:"rotate("+b+","+y.x.text+","+y.y.text+")"});var Mr=function(Rr,at){T.selectAll(".annotation-arrow-g").remove();var nt=y.x.head,lt=y.y.head,le=y.x.tail+Rr,Te=y.y.tail+at,tr=y.x.text+Rr,hr=y.y.text+at,ra=Hf.rotationXYMatrix(b,tr,hr),Ca=Hf.apply2DTransform(ra),Ha=Hf.apply2DTransform2(ra),an=+P.attr("width"),yn=+P.attr("height"),sn=tr-.5*an,Yn=sn+an,qa=hr-.5*yn,un=qa+yn,fn=[[sn,qa,sn,un],[sn,un,Yn,un],[Yn,un,Yn,qa],[Yn,qa,sn,qa]].map(Ha);if(!fn.reduce(function(Da,Ln){return Da^!!Hf.segmentsIntersect(nt,lt,nt+1e6,lt+1e6,Ln[0],Ln[1],Ln[2],Ln[3])},!1)){fn.forEach(function(Da){var Ln=Hf.segmentsIntersect(le,Te,nt,lt,Da[0],Da[1],Da[2],Da[3]);Ln&&(le=Ln.x,Te=Ln.y)});var gn=r.arrowwidth,si=r.arrowcolor,bn=r.arrowside,Dn=T.append("g").style({opacity:Tc.opacity(si)}).classed("annotation-arrow-g",!0),Ir=Dn.append("path").attr("d","M"+le+","+Te+"L"+nt+","+lt).style("stroke-width",gn+"px").call(Tc.stroke,Tc.rgb(si));if(hxe(Ir,bn,r),s.annotationPosition&&Ir.node().parentNode&&!a){var ca=nt,Zt=lt;if(r.standoff){var Aa=Math.sqrt(Math.pow(nt-le,2)+Math.pow(lt-Te,2));ca+=r.standoff*(le-nt)/Aa,Zt+=r.standoff*(Te-lt)/Aa}var za=Dn.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(le-ca)+","+(Te-Zt),transform:S9(ca,Zt)}).style("stroke-width",gn+6+"px").call(Tc.stroke,"rgba(0,0,0,0)").call(Tc.fill,"rgba(0,0,0,0)"),Vn,ba;op.init({element:za.node(),gd:e,prepFn:function(){var Da=wu.getTranslate(M);Vn=Da.x,ba=Da.y,n&&n.autorange&&v(n._name+".autorange",!0),i&&i.autorange&&v(i._name+".autorange",!0)},moveFn:function(Da,Ln){var Fo=Ca(Vn,ba),Qo=Fo[0]+Da,co=Fo[1]+Ln;M.call(wu.setTranslate,Qo,co),d("x",Of(n,Da,"x",l,r)),d("y",Of(i,Ln,"y",l,r)),r.axref===r.xref&&d("ax",Of(n,Da,"ax",l,r)),r.ayref===r.yref&&d("ay",Of(i,Ln,"ay",l,r)),Dn.attr("transform",S9(Da,Ln)),_.attr({transform:"rotate("+b+","+Qo+","+co+")"})},doneFn:function(){k9.call("_guiRelayout",e,p());var Da=document.querySelector(".js-notes-box-panel");Da&&Da.redraw(Da.selectedObj)}})}}};if(r.showarrow&&Mr(0,0),x){var rr;op.init({element:M.node(),gd:e,prepFn:function(){rr=_.attr("transform")},moveFn:function(Rr,at){var nt="pointer";if(r.showarrow)r.axref===r.xref?d("ax",Of(n,Rr,"ax",l,r)):d("ax",r.ax+Rr),r.ayref===r.yref?d("ay",Of(i,at,"ay",l.w,r)):d("ay",r.ay+at),Mr(Rr,at);else{if(a)return;var lt,le;if(n)lt=Of(n,Rr,"x",l,r);else{var Te=r._xsize/l.w,tr=r.x+(r._xshift-r.xshift)/l.w-Te/2;lt=op.align(tr+Rr/l.w,Te,0,1,r.xanchor)}if(i)le=Of(i,at,"y",l,r);else{var hr=r._ysize/l.h,ra=r.y-(r._yshift+r.yshift)/l.h-hr/2;le=op.align(ra-at/l.h,hr,0,1,r.yanchor)}d("x",lt),d("y",le),(!n||!i)&&(nt=op.getCursor(n?.5:lt,i?.5:le,r.xanchor,r.yanchor))}_.attr({transform:S9(Rr,at)+rr}),D9(M,nt)},clickFn:function(Rr,at){r.captureevents&&e.emit("plotly_clickannotation",k(at))},doneFn:function(){D9(M),k9.call("_guiRelayout",e,p());var Rr=document.querySelector(".js-notes-box-panel");Rr&&Rr.redraw(Rr.selectedObj)}})}}s.annotationText?V.call(C9.makeEditable,{delegate:M,gd:e}).call(W).on("edit",function(Y){r.text=Y,this.call(W),d("text",Y),n&&n.autorange&&v(n._name+".autorange",!0),i&&i.autorange&&v(i._name+".autorange",!0),k9.call("_guiRelayout",e,p())}):V.call(W)}});var mG=B((EPe,pG)=>{"use strict";var cG=or(),pxe=Pt(),vG=Ra().arrayEditor;pG.exports={hasClickToShow:mxe,onClick:yxe};function mxe(e,r){var t=dG(e,r);return t.on.length>0||t.explicitOff.length>0}function yxe(e,r){var t=dG(e,r),a=t.on,n=t.off.concat(t.explicitOff),i={},o=e._fullLayout.annotations,l,s;if(a.length||n.length){for(l=0;l{"use strict";var L9=or(),Ph=Kt();yG.exports=function(r,t,a,n){n("opacity");var i=n("bgcolor"),o=n("bordercolor"),l=Ph.opacity(o);n("borderpad");var s=n("borderwidth"),u=n("showarrow");n("text",u?" ":a._dfltTitle.annotation),n("textangle"),L9.coerceFont(n,"font",a.font),n("width"),n("align");var f=n("height");if(f&&n("valign"),u){var c=n("arrowside"),v,d;c.indexOf("end")!==-1&&(v=n("arrowhead"),d=n("arrowsize")),c.indexOf("start")!==-1&&(n("startarrowhead",v),n("startarrowsize",d)),n("arrowcolor",l?t.bordercolor:Ph.defaultLine),n("arrowwidth",(l&&s||1)*2),n("standoff"),n("startstandoff")}var p=n("hovertext"),m=a.hoverlabel||{};if(p){var y=n("hoverlabel.bgcolor",m.bgcolor||(Ph.opacity(i)?Ph.rgb(i):Ph.defaultLine)),b=n("hoverlabel.bordercolor",m.bordercolor||Ph.contrast(y)),T=L9.extendFlat({},m.font);T.color||(T.color=b),L9.coerceFont(n,"hoverlabel.font",T)}n("captureevents",!!p)}});var bG=B((FPe,gG)=>{"use strict";var q9=or(),Mc=en(),gxe=Oo(),bxe=E9(),xxe=Th();gG.exports=function(r,t){gxe(r,t,{name:"annotations",handleItemDefaults:_xe})};function _xe(e,r,t){function a(_,x){return q9.coerce(e,r,xxe,_,x)}var n=a("visible"),i=a("clicktoshow");if(n||i){bxe(e,r,t,a);for(var o=r.showarrow,l=["x","y"],s=[-10,-30],u={_fullLayout:t},f=0;f<2;f++){var c=l[f],v=Mc.coerceRef(e,r,u,c,"","paper");if(v!=="paper"){var d=Mc.getFromId(u,v);d._annIndices.push(r._index)}if(Mc.coercePosition(r,u,a,v,c,.5),o){var p="a"+c,m=Mc.coerceRef(e,r,u,p,"pixel",["pixel","paper"]);m!=="pixel"&&m!==v&&(m=r[p]="pixel");var y=m==="pixel"?s[f]:.4;Mc.coercePosition(r,u,a,m,p,y)}a(c+"anchor"),a(c+"shift")}if(q9.noneOrAll(e,r,["x","y"]),o&&q9.noneOrAll(e,r,["ax","ay"]),i){var b=a("xclick"),T=a("yclick");r._xclick=b===void 0?r.x:Mc.cleanPosition(b,u,r.xref),r._yclick=T===void 0?r.y:Mc.cleanPosition(T,u,r.yref)}}}});var wG=B((RPe,_G)=>{"use strict";var F9=or(),kc=en(),wxe=V5().draw;_G.exports=function(r){var t=r._fullLayout,a=F9.filterVisible(t.annotations);if(a.length&&r._fullData.length)return F9.syncOrAsync([wxe,Axe],r)};function Axe(e){var r=e._fullLayout;F9.filterVisible(r.annotations).forEach(function(t){var a=kc.getFromId(e,t.xref),n=kc.getFromId(e,t.yref),i=kc.getRefType(t.xref),o=kc.getRefType(t.yref);t._extremes={},i==="range"&&xG(t,a),o==="range"&&xG(t,n)})}function xG(e,r){var t=r._id,a=t.charAt(0),n=e[a],i=e["a"+a],o=e[a+"ref"],l=e["a"+a+"ref"],s=e["_"+a+"padplus"],u=e["_"+a+"padminus"],f={x:1,y:-1}[a]*e[a+"shift"],c=3*e.arrowsize*e.arrowwidth||0,v=c+f,d=c-f,p=3*e.startarrowsize*e.arrowwidth||0,m=p+f,y=p-f,b;if(l===o){var T=kc.findExtremes(r,[r.r2c(n)],{ppadplus:v,ppadminus:d}),_=kc.findExtremes(r,[r.r2c(i)],{ppadplus:Math.max(s,m),ppadminus:Math.max(u,y)});b={min:[T.min[0],_.min[0]],max:[T.max[0],_.max[0]]}}else m=i?m+i:m,y=i?y-i:y,b=kc.findExtremes(r,[r.r2c(n)],{ppadplus:Math.max(s,v,m),ppadminus:Math.max(u,d,y)});e._extremes[t]=b}});var TG=B((PPe,AG)=>{"use strict";var Txe=da(),Mxe=hy();AG.exports=function(r,t,a,n){t=t||{};var i=a==="log"&&t.type==="linear",o=a==="linear"&&t.type==="log";if(!(i||o))return;var l=r._fullLayout.annotations,s=t._id.charAt(0),u,f;function c(d){var p=u[d],m=null;i?m=Mxe(p,t.range):m=Math.pow(10,p),Txe(m)||(m=null),n(f+d,m)}for(var v=0;v{"use strict";var R9=V5(),MG=mG();kG.exports={moduleType:"component",name:"annotations",layoutAttributes:Th(),supplyLayoutDefaults:bG(),includeBasePlot:U1()("annotations"),calcAutorange:wG(),draw:R9.draw,drawOne:R9.drawOne,drawRaw:R9.drawRaw,hasClickToShow:MG.hasClickToShow,onClick:MG.onClick,convertCoords:TG()}});var X5=B((zPe,CG)=>{"use strict";var Oa=Th(),kxe=Nl().overrideAll,Sxe=Ra().templatedArray;CG.exports=kxe(Sxe("annotation",{visible:Oa.visible,x:{valType:"any"},y:{valType:"any"},z:{valType:"any"},ax:{valType:"number"},ay:{valType:"number"},xanchor:Oa.xanchor,xshift:Oa.xshift,yanchor:Oa.yanchor,yshift:Oa.yshift,text:Oa.text,textangle:Oa.textangle,font:Oa.font,width:Oa.width,height:Oa.height,opacity:Oa.opacity,align:Oa.align,valign:Oa.valign,bgcolor:Oa.bgcolor,bordercolor:Oa.bordercolor,borderpad:Oa.borderpad,borderwidth:Oa.borderwidth,showarrow:Oa.showarrow,arrowcolor:Oa.arrowcolor,arrowhead:Oa.arrowhead,startarrowhead:Oa.startarrowhead,arrowside:Oa.arrowside,arrowsize:Oa.arrowsize,startarrowsize:Oa.startarrowsize,arrowwidth:Oa.arrowwidth,standoff:Oa.standoff,startstandoff:Oa.startstandoff,hovertext:Oa.hovertext,hoverlabel:Oa.hoverlabel,captureevents:Oa.captureevents}),"calc","from-root")});var LG=B((BPe,DG)=>{"use strict";var P9=or(),Cxe=en(),Dxe=Oo(),Lxe=E9(),Exe=X5();DG.exports=function(r,t,a){Dxe(r,t,{name:"annotations",handleItemDefaults:qxe,fullLayout:a.fullLayout})};function qxe(e,r,t,a){function n(l,s){return P9.coerce(e,r,Exe,l,s)}function i(l){var s=l+"axis",u={_fullLayout:{}};return u._fullLayout[s]=t[s],Cxe.coercePosition(r,u,n,l,l,.5)}var o=n("visible");o&&(Lxe(e,r,a.fullLayout,n),i("x"),i("y"),i("z"),P9.noneOrAll(e,r,["x","y","z"]),r.xref="x",r.yref="y",r.zref="z",n("xanchor"),n("yanchor"),n("xshift"),n("yshift"),r.showarrow&&(r.axref="pixel",r.ayref="pixel",n("ax",-10),n("ay",-30),P9.noneOrAll(e,r,["ax","ay"])))}});var RG=B((IPe,FG)=>{"use strict";var EG=or(),qG=en();FG.exports=function(r){for(var t=r.fullSceneLayout,a=t.annotations,n=0;n{"use strict";function N9(e,r){var t=[0,0,0,0],a,n;for(a=0;a<4;++a)for(n=0;n<4;++n)t[n]+=e[4*a+n]*r[a];return t}function Rxe(e,r){var t=N9(e.projection,N9(e.view,N9(e.model,[r[0],r[1],r[2],1])));return t}PG.exports=Rxe});var BG=B((HPe,zG)=>{"use strict";var Pxe=V5().drawRaw,Nxe=NG(),zxe=["x","y","z"];zG.exports=function(r){for(var t=r.fullSceneLayout,a=r.dataScale,n=t.annotations,i=0;i1){l=!0;break}}l?r.fullLayout._infolayer.select(".annotation-"+r.id+'[data-index="'+i+'"]').remove():(o._pdata=Nxe(r.glplot.cameraParams,[t.xaxis.r2l(o.x)*a[0],t.yaxis.r2l(o.y)*a[1],t.zaxis.r2l(o.z)*a[2]]),Pxe(r.graphDiv,o,i,r.id,o._xa,o._ya))}}});var HG=B((UPe,OG)=>{"use strict";var Bxe=Pt(),IG=or();OG.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:X5()}}},layoutAttributes:X5(),handleDefaults:LG(),includeBasePlot:Ixe,convert:RG(),draw:BG()};function Ixe(e,r){var t=Bxe.subplotsRegistry.gl3d;if(t)for(var a=t.attrRegex,n=Object.keys(e),i=0;i{"use strict";var GPe=(ni(),vr(ai)),UG=Di(),GG=Nf().line,Oxe=uf().dash,Zl=Fn().extendFlat,Hxe=Ra().templatedArray,YPe=(B1(),vr(z1)),Nh=Fl(),YG=Th(),{shapeTexttemplateAttrs:Uxe,templatefallbackAttrs:Gxe}=Hv(),Yxe=Wy();VG.exports=Hxe("shape",{visible:Zl({},Nh.visible,{editType:"calc+arraydraw"}),showlegend:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},legend:Zl({},Nh.legend,{editType:"calc+arraydraw"}),legendgroup:Zl({},Nh.legendgroup,{editType:"calc+arraydraw"}),legendgrouptitle:{text:Zl({},Nh.legendgrouptitle.text,{editType:"calc+arraydraw"}),font:UG({editType:"calc+arraydraw"}),editType:"calc+arraydraw"},legendrank:Zl({},Nh.legendrank,{editType:"calc+arraydraw"}),legendwidth:Zl({},Nh.legendwidth,{editType:"calc+arraydraw"}),type:{valType:"enumerated",values:["circle","rect","path","line"],editType:"calc+arraydraw"},layer:{valType:"enumerated",values:["below","above","between"],dflt:"above",editType:"arraydraw"},xref:Zl({},YG.xref,{arrayOk:!0}),xsizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},xanchor:{valType:"any",editType:"calc+arraydraw"},x0:{valType:"any",editType:"calc+arraydraw"},x1:{valType:"any",editType:"calc+arraydraw"},x0shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},x1shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},yref:Zl({},YG.yref,{arrayOk:!0}),ysizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},yanchor:{valType:"any",editType:"calc+arraydraw"},y0:{valType:"any",editType:"calc+arraydraw"},y1:{valType:"any",editType:"calc+arraydraw"},y0shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},y1shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},path:{valType:"string",editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},line:{color:Zl({},GG.color,{editType:"arraydraw"}),width:Zl({},GG.width,{editType:"calc+arraydraw"}),dash:Zl({},Oxe,{editType:"arraydraw"}),editType:"calc+arraydraw"},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd",editType:"arraydraw"},editable:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},label:{text:{valType:"string",dflt:"",editType:"arraydraw"},texttemplate:Uxe({},{keys:Object.keys(Yxe)}),texttemplatefallback:Gxe({editType:"arraydraw"}),font:UG({editType:"calc+arraydraw",colorEditType:"arraydraw"}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"],editType:"arraydraw"},textangle:{valType:"angle",dflt:"auto",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],editType:"calc+arraydraw"},padding:{valType:"number",dflt:3,min:0,editType:"arraydraw"},editType:"arraydraw"},editType:"arraydraw"})});var WG=B((XPe,XG)=>{"use strict";var zh=or(),Jo=en(),Vxe=Oo(),Xxe=z9(),sp=Rf();XG.exports=function(r,t){Vxe(r,t,{name:"shapes",handleItemDefaults:Zxe})};function Wxe(e,r){return e?"bottom":r.indexOf("top")!==-1?"top":r.indexOf("bottom")!==-1?"bottom":"middle"}function Zxe(e,r,t){function a(_,x){return zh.coerce(e,r,Xxe,_,x)}r._isShape=!0;var n=a("visible");if(!n)return;var i=a("showlegend");a("legend"),a("legendgroup"),i&&(a("legendwidth"),a("legendgrouptitle.text"),zh.coerceFont(a,"legendgrouptitle.font"),a("legendrank"));var o=a("path"),l=o?"path":"rect",s=a("type",l),u=s!=="path";u&&delete r.path,a("editable"),a("layer"),a("opacity"),a("fillcolor"),a("fillrule");var f=a("line.width");f&&(a("line.color"),a("line.dash"));var c=a("xsizemode"),v=a("ysizemode");let d=[.25,.75],p=[0,10];["x","y"].forEach(_=>{var x=_+"anchor",w=_==="x"?c:v,k={_fullLayout:t},M,C,E,F;let P=_+"ref",q=e[P];if(Array.isArray(q)&&q.length>0){let z=sp.countDefiningCoords(s,o,_);F=Jo.coerceRefArray(e,r,k,_,void 0,"paper",z),r["_"+_+"refArray"]=!0}else F=Jo.coerceRef(e,r,k,_,void 0,"paper");if(Array.isArray(F))F.forEach(function(z){Jo.getRefType(z)==="range"&&(M=Jo.getFromId(k,z),M&&M._shapeIndices.indexOf(r._index)===-1&&M._shapeIndices.push(r._index))}),u&&[0,1].forEach(function(z){let I=F[z];Jo.getRefType(I)==="range"?(M=Jo.getFromId(k,I),C=sp.shapePositionToRange(M),E=sp.rangeToShapePosition(M),(M.type==="category"||M.type==="multicategory")&&a(_+z+"shift")):C=E=zh.identity;let V=_+z,W=e[V];if(e[V]=C(e[V],!0),w==="pixel"?a(V,p[z]):Jo.coercePosition(r,k,a,I,V,d[z]),r[V]=E(r[V]),e[V]=W,z===0&&w==="pixel"){let G=e[x];e[x]=C(e[x],!0),Jo.coercePosition(r,k,a,I,x,.25),r[x]=E(r[x]),e[x]=G}});else{if(Jo.getRefType(F)==="range"?(M=Jo.getFromId(k,F),M._shapeIndices.push(r._index),E=sp.rangeToShapePosition(M),C=sp.shapePositionToRange(M),u&&(M.type==="category"||M.type==="multicategory")&&(a(_+"0shift"),a(_+"1shift"))):C=E=zh.identity,u){let I=_+"0",U=_+"1",V=e[I],W=e[U];e[I]=C(e[I],!0),e[U]=C(e[U],!0),w==="pixel"?(a(I,p[0]),a(U,p[1])):(Jo.coercePosition(r,k,a,F,I,d[0]),Jo.coercePosition(r,k,a,F,U,d[1])),r[I]=E(r[I]),r[U]=E(r[U]),e[I]=V,e[U]=W}if(w==="pixel"){let I=e[x];e[x]=C(e[x],!0),Jo.coercePosition(r,k,a,F,x,.25),r[x]=E(r[x]),e[x]=I}}}),u&&zh.noneOrAll(e,r,["x0","x1","y0","y1"]);var m=s==="line",y,b;if(u&&(y=a("label.texttemplate"),a("label.texttemplatefallback")),y||(b=a("label.text")),b||y){a("label.textangle");var T=a("label.textposition",m?"middle":"middle center");a("label.xanchor"),a("label.yanchor",Wxe(m,T)),a("label.padding"),zh.coerceFont(a,"label.font",t.font)}}});var jG=B((WPe,JG)=>{"use strict";var Jxe=Kt(),ZG=or();function jxe(e,r){return e?"bottom":r.indexOf("top")!==-1?"top":r.indexOf("bottom")!==-1?"bottom":"middle"}JG.exports=function(r,t,a){a("newshape.visible"),a("newshape.name"),a("newshape.showlegend"),a("newshape.legend"),a("newshape.legendwidth"),a("newshape.legendgroup"),a("newshape.legendgrouptitle.text"),ZG.coerceFont(a,"newshape.legendgrouptitle.font"),a("newshape.legendrank"),a("newshape.drawdirection"),a("newshape.layer"),a("newshape.fillcolor"),a("newshape.fillrule"),a("newshape.opacity");var n=a("newshape.line.width");if(n){var i=(r||{}).plot_bgcolor||"#FFF";a("newshape.line.color",Jxe.contrast(i)),a("newshape.line.dash")}var o=r.dragmode==="drawline",l=a("newshape.label.text"),s=a("newshape.label.texttemplate");if(a("newshape.label.texttemplatefallback"),l||s){a("newshape.label.textangle");var u=a("newshape.label.textposition",o?"middle":"middle center");a("newshape.label.xanchor"),a("newshape.label.yanchor",jxe(o,u)),a("newshape.label.padding"),ZG.coerceFont(a,"newshape.label.font",t.font)}a("activeshape.fillcolor"),a("activeshape.opacity")}});var aY=B((ZPe,tY)=>{"use strict";var B9=or(),_l=en(),Ps=(y1(),vr(m1)),I9=Rf();tY.exports=function(r){var t=r._fullLayout,a=B9.filterVisible(t.shapes);if(!(!a.length||!r._fullData.length))for(var n=0;n{o=_l.getFromId(r,c),i._extremes[o._id]=_l.findExtremes(o,v,KG(i))})}else i.xref!=="paper"&&s!=="domain"&&(o=_l.getFromId(r,i.xref),l=eY(o,i,Ps.paramIsX),l&&(i._extremes[o._id]=_l.findExtremes(o,l,KG(i))));if(u==="array"){let f=$G(r,i,"y");Object.entries(f).forEach(([c,v])=>{o=_l.getFromId(r,c),i._extremes[o._id]=_l.findExtremes(o,v,QG(i))})}else i.yref!=="paper"&&u!=="domain"&&(o=_l.getFromId(r,i.yref),l=eY(o,i,Ps.paramIsY),l&&(i._extremes[o._id]=_l.findExtremes(o,l,QG(i))))}};function $G(e,r,t){let a=r[t+"ref"],n=t==="x"?Ps.paramIsX:Ps.paramIsY;function i(c,v){c==="paper"||_l.getRefType(c)==="domain"||(o[c]||(o[c]=[]),o[c].push(v))}let o={};if(r.type==="path"&&r.path){let c=r.path.match(Ps.segmentRE)||[];for(var l=0,s=0;sp&&(i(a[l],m[p]),l++)}}else i(a[0],r[t+"0"]),i(a[1],r[t+"1"]);let u={};for(let c in o){let v=_l.getFromId(e,c);if(v){var f=v.type==="category"||v.type==="multicategory"?v.r2c:v.d2c;v.type==="date"&&(f=I9.decodeDate(f)),u[v._id]=o[c].map(f)}}return u}function KG(e){return rY(e.line.width,e.xsizemode,e.x0,e.x1,e.path,!1)}function QG(e){return rY(e.line.width,e.ysizemode,e.y0,e.y1,e.path,!0)}function rY(e,r,t,a,n,i){var o=e/2,l=i;if(r==="pixel"){var s=n?I9.extractPathCoords(n,i?Ps.paramIsY:Ps.paramIsX):[t,a],u=B9.aggNums(Math.max,null,s),f=B9.aggNums(Math.min,null,s),c=f<0?Math.abs(f)+o:o,v=u>0?u+o:o;return{ppad:o,ppadplus:l?c:v,ppadminus:l?v:c}}else return{ppad:o}}function eY(e,r,t){var a=e._id.charAt(0)==="x"?"x":"y",n=e.type==="category"||e.type==="multicategory",i,o,l=0,s=0,u=n?e.r2c:e.d2c,f=r[a+"sizemode"]==="scaled";if(f?(i=r[a+"0"],o=r[a+"1"],n&&(l=r[a+"0shift"],s=r[a+"1shift"])):(i=r[a+"anchor"],o=r[a+"anchor"]),i!==void 0)return[u(i)+l,u(o)+s];if(r.path){var c=1/0,v=-1/0,d=r.path.match(Ps.segmentRE),p,m,y,b,T;for(e.type==="date"&&(u=I9.decodeDate(u)),p=0;pv&&(v=T)));if(v>=c)return[c,v]}}});var oY=B((JPe,iY)=>{"use strict";var nY=P3();iY.exports={moduleType:"component",name:"shapes",layoutAttributes:z9(),supplyLayoutDefaults:WG(),supplyDrawNewShapeDefaults:jG(),includeBasePlot:U1()("shapes"),calcAutorange:aY(),draw:nY.draw,drawOne:nY.drawOne}});var O9=B(($Pe,sY)=>{"use strict";var lY=(ni(),vr(ai)),$xe=Ra().templatedArray,jPe=(B1(),vr(z1));sY.exports=$xe("image",{visible:{valType:"boolean",dflt:!0,editType:"arraydraw"},source:{valType:"string",editType:"arraydraw"},layer:{valType:"enumerated",values:["below","above"],dflt:"above",editType:"arraydraw"},sizex:{valType:"number",dflt:0,editType:"arraydraw"},sizey:{valType:"number",dflt:0,editType:"arraydraw"},sizing:{valType:"enumerated",values:["fill","contain","stretch"],dflt:"contain",editType:"arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},x:{valType:"any",dflt:0,editType:"arraydraw"},y:{valType:"any",dflt:0,editType:"arraydraw"},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left",editType:"arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],dflt:"top",editType:"arraydraw"},xref:{valType:"enumerated",values:["paper",lY.idRegex.x.toString()],dflt:"paper",editType:"arraydraw"},yref:{valType:"enumerated",values:["paper",lY.idRegex.y.toString()],dflt:"paper",editType:"arraydraw"},editType:"arraydraw"})});var fY=B((KPe,uY)=>{"use strict";var Kxe=or(),H9=en(),Qxe=Oo(),e_e=O9(),r_e="images";uY.exports=function(r,t){var a={name:r_e,handleItemDefaults:t_e};Qxe(r,t,a)};function t_e(e,r,t){function a(v,d){return Kxe.coerce(e,r,e_e,v,d)}var n=a("source"),i=a("visible",!!n);if(!i)return r;a("layer"),a("xanchor"),a("yanchor"),a("sizex"),a("sizey"),a("sizing"),a("opacity");for(var o={_fullLayout:t},l=["x","y"],s=0;s<2;s++){var u=l[s],f=H9.coerceRef(e,r,o,u,"paper",void 0);if(f!=="paper"){var c=H9.getFromId(o,f);c._imgIndices.push(r._index)}H9.coercePosition(r,o,a,f,u,0)}return r}});var dY=B((QPe,hY)=>{"use strict";var cY=la(),a_e=Sa(),Bh=en(),vY=hn(),n_e=(xf(),vr(bf));hY.exports=function(r){var t=r._fullLayout,a=[],n={},i=[],o,l;for(l=0;l{"use strict";var pY=da(),i_e=hy();mY.exports=function(r,t,a,n){t=t||{};var i=a==="log"&&t.type==="linear",o=a==="linear"&&t.type==="log";if(i||o){for(var l=r._fullLayout.images,s=t._id.charAt(0),u,f,c=0;c{"use strict";gY.exports={moduleType:"component",name:"images",layoutAttributes:O9(),supplyLayoutDefaults:fY(),includeBasePlot:U1()("images"),draw:dY(),convertCoords:yY()}});var W5={};ja(W5,{activeColor:()=>L_e,arrowOffsetX:()=>S_e,arrowPadX:()=>w_e,arrowSymbol:()=>q_e,autoMarginIdRoot:()=>y_e,blankHeaderOpts:()=>g_e,buttonClassName:()=>h_e,containerClassName:()=>l_e,dropdownButtonClassName:()=>v_e,dropdownButtonGroupClassName:()=>c_e,gapButton:()=>D_e,gapButtonHeader:()=>C_e,headerArrowClassName:()=>f_e,headerClassName:()=>u_e,headerGroupClassName:()=>s_e,hoverColor:()=>E_e,itemRectClassName:()=>d_e,itemTextClassName:()=>p_e,menuIndexAttrName:()=>m_e,minHeight:()=>x_e,minWidth:()=>b_e,name:()=>o_e,rx:()=>A_e,ry:()=>T_e,textOffsetX:()=>M_e,textOffsetY:()=>k_e,textPadX:()=>__e});var o_e,l_e,s_e,u_e,f_e,c_e,v_e,h_e,d_e,p_e,m_e,y_e,g_e,b_e,x_e,__e,w_e,A_e,T_e,M_e,k_e,S_e,C_e,D_e,L_e,E_e,q_e,Z5=Ja(()=>{"use strict";o_e="updatemenus",l_e="updatemenu-container",s_e="updatemenu-header-group",u_e="updatemenu-header",f_e="updatemenu-header-arrow",c_e="updatemenu-dropdown-button-group",v_e="updatemenu-dropdown-button",h_e="updatemenu-button",d_e="updatemenu-item-rect",p_e="updatemenu-item-text",m_e="updatemenu-active-index",y_e="updatemenu-",g_e={label:" "},b_e=30,x_e=30,__e=24,w_e=16,A_e=2,T_e=2,M_e=12,k_e=3,S_e=4,C_e=5,D_e=2,L_e="#F4FAFF",E_e="#F4FAFF",q_e={left:"\u25C4",right:"\u25BA",up:"\u25B2",down:"\u25BC"}});var U9=B((tNe,_Y)=>{"use strict";var F_e=Di(),R_e=ys(),P_e=Fn().extendFlat,N_e=Nl().overrideAll,z_e=Zy(),xY=Ra().templatedArray,B_e=xY("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}});_Y.exports=N_e(xY("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:B_e,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:P_e(z_e({editType:"arraydraw"}),{}),font:F_e({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:R_e.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")});var MY=B((aNe,TY)=>{"use strict";var J5=or(),wY=Oo(),AY=U9(),I_e=(Z5(),vr(W5)),O_e=I_e.name,H_e=AY.buttons;TY.exports=function(r,t){var a={name:O_e,handleItemDefaults:U_e};wY(r,t,a)};function U_e(e,r,t){function a(o,l){return J5.coerce(e,r,AY,o,l)}var n=wY(e,r,{name:"buttons",handleItemDefaults:G_e}),i=a("visible",n.length>0);i&&(a("active"),a("direction"),a("type"),a("showactive"),a("x"),a("y"),J5.noneOrAll(e,r,["x","y"]),a("xanchor"),a("yanchor"),a("pad.t"),a("pad.r"),a("pad.b"),a("pad.l"),J5.coerceFont(a,"font",t.font),a("bgcolor",t.paper_bgcolor),a("bordercolor"),a("borderwidth"))}function G_e(e,r){function t(n,i){return J5.coerce(e,r,H_e,n,i)}var a=t("visible",e.method==="skip"||Array.isArray(e.args));a&&(t("method"),t("args"),t("args2"),t("label"),t("execute"))}});var CY=B((nNe,SY)=>{"use strict";SY.exports=mn;var Jl=la(),kY=Kt(),Ih=Sa(),j5=or();function mn(e,r,t){this.gd=e,this.container=r,this.id=t,this.position=null,this.translateX=null,this.translateY=null,this.hbar=null,this.vbar=null,this.bg=this.container.selectAll("rect.scrollbox-bg").data([0]),this.bg.exit().on(".drag",null).on("wheel",null).remove(),this.bg.enter().append("rect").classed("scrollbox-bg",!0).style("pointer-events","all").attr({opacity:0,x:0,y:0,width:0,height:0})}mn.barWidth=2;mn.barLength=20;mn.barRadius=2;mn.barPad=1;mn.barColor="#808BA4";mn.prototype.enable=function(r,t,a){var n=this.gd._fullLayout,i=n.width,o=n.height;this.position=r;var l=this.position.l,s=this.position.w,u=this.position.t,f=this.position.h,c=this.position.direction,v=c==="down",d=c==="left",p=c==="right",m=c==="up",y=s,b=f,T,_,x,w;!v&&!d&&!p&&!m&&(this.position.direction="down",v=!0);var k=v||m;k?(T=l,_=T+y,v?(x=u,w=Math.min(x+b,o),b=w-x):(w=u+b,x=Math.max(w-b,0),b=w-x)):(x=u,w=x+b,d?(_=l+y,T=Math.max(_-y,0),y=_-T):(T=l,_=Math.min(T+y,i),y=_-T)),this._box={l:T,t:x,w:y,h:b};var M=s>y,C=mn.barLength+2*mn.barPad,E=mn.barWidth+2*mn.barPad,F=l,P=u+f;P+E>o&&(P=o-E);var q=this.container.selectAll("rect.scrollbar-horizontal").data(M?[0]:[]);q.exit().on(".drag",null).remove(),q.enter().append("rect").classed("scrollbar-horizontal",!0).call(kY.fill,mn.barColor),M?(this.hbar=q.attr({rx:mn.barRadius,ry:mn.barRadius,x:F,y:P,width:C,height:E}),this._hbarXMin=F+C/2,this._hbarTranslateMax=y-C):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var z=f>b,I=mn.barWidth+2*mn.barPad,U=mn.barLength+2*mn.barPad,V=l+s,W=u;V+I>i&&(V=i-I);var G=this.container.selectAll("rect.scrollbar-vertical").data(z?[0]:[]);G.exit().on(".drag",null).remove(),G.enter().append("rect").classed("scrollbar-vertical",!0).call(kY.fill,mn.barColor),z?(this.vbar=G.attr({rx:mn.barRadius,ry:mn.barRadius,x:V,y:W,width:I,height:U}),this._vbarYMin=W+U/2,this._vbarTranslateMax=b-U):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var Y=this.id,Z=T-.5,j=z?_+I+.5:_+.5,ee=x-.5,ye=M?w+E+.5:w+.5,fe=n._topdefs.selectAll("#"+Y).data(M||z?[0]:[]);if(fe.exit().remove(),fe.enter().append("clipPath").attr("id",Y).append("rect"),M||z?(this._clipRect=fe.select("rect").attr({x:Math.floor(Z),y:Math.floor(ee),width:Math.ceil(j)-Math.floor(Z),height:Math.ceil(ye)-Math.floor(ee)}),this.container.call(Ih.setClipUrl,Y,this.gd),this.bg.attr({x:l,y:u,width:s,height:f})):(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(Ih.setClipUrl,null),delete this._clipRect),M||z){var he=Jl.behavior.drag().on("dragstart",function(){Jl.event.sourceEvent.preventDefault()}).on("drag",this._onBoxDrag.bind(this));this.container.on("wheel",null).on("wheel",this._onBoxWheel.bind(this)).on(".drag",null).call(he);var ae=Jl.behavior.drag().on("dragstart",function(){Jl.event.sourceEvent.preventDefault(),Jl.event.sourceEvent.stopPropagation()}).on("drag",this._onBarDrag.bind(this));M&&this.hbar.on(".drag",null).call(ae),z&&this.vbar.on(".drag",null).call(ae)}this.setTranslate(t,a)};mn.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(Ih.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)};mn.prototype._onBoxDrag=function(){var r=this.translateX,t=this.translateY;this.hbar&&(r-=Jl.event.dx),this.vbar&&(t-=Jl.event.dy),this.setTranslate(r,t)};mn.prototype._onBoxWheel=function(){var r=this.translateX,t=this.translateY;this.hbar&&(r+=Jl.event.deltaY),this.vbar&&(t+=Jl.event.deltaY),this.setTranslate(r,t)};mn.prototype._onBarDrag=function(){var r=this.translateX,t=this.translateY;if(this.hbar){var a=r+this._hbarXMin,n=a+this._hbarTranslateMax,i=j5.constrain(Jl.event.x,a,n),o=(i-a)/(n-a),l=this.position.w-this._box.w;r=o*l}if(this.vbar){var s=t+this._vbarYMin,u=s+this._vbarTranslateMax,f=j5.constrain(Jl.event.y,s,u),c=(f-s)/(u-s),v=this.position.h-this._box.h;t=c*v}this.setTranslate(r,t)};mn.prototype.setTranslate=function(r,t){var a=this.position.w-this._box.w,n=this.position.h-this._box.h;if(r=j5.constrain(r||0,0,a),t=j5.constrain(t||0,0,n),this.translateX=r,this.translateY=t,this.container.call(Ih.setTranslate,this._box.l-this.position.l-r,this._box.t-this.position.t-t),this._clipRect&&this._clipRect.attr({x:Math.floor(this.position.l+r-.5),y:Math.floor(this.position.t+t-.5)}),this.hbar){var i=r/a;this.hbar.call(Ih.setTranslate,r+i*this._hbarTranslateMax,t)}if(this.vbar){var o=t/n;this.vbar.call(Ih.setTranslate,r,t+o*this._vbarTranslateMax)}}});var BY=B((iNe,zY)=>{"use strict";var Oh=la(),up=di(),fp=Kt(),Hh=Sa(),jo=or(),$5=Ei(),Y_e=Ra().arrayEditor,LY=(Oi(),vr(Ii)).LINE_SPACING,Nt=(Z5(),vr(W5)),V_e=CY();zY.exports=function(r){var t=r._fullLayout,a=jo.filterVisible(t[Nt.name]);function n(v){up.autoMargin(r,PY(v))}var i=t._menulayer.selectAll("g."+Nt.containerClassName).data(a.length>0?[0]:[]);if(i.enter().append("g").classed(Nt.containerClassName,!0).style("cursor","pointer"),i.exit().each(function(){Oh.select(this).selectAll("g."+Nt.headerGroupClassName).each(n)}).remove(),a.length!==0){var o=i.selectAll("g."+Nt.headerGroupClassName).data(a,X_e);o.enter().append("g").classed(Nt.headerGroupClassName,!0);for(var l=jo.ensureSingle(i,"g",Nt.dropdownButtonGroupClassName,function(v){v.style("pointer-events","all")}),s=0;s{"use strict";var Q_e=(Z5(),vr(W5));IY.exports={moduleType:"component",name:Q_e.name,layoutAttributes:U9(),supplyLayoutDefaults:MY(),draw:BY()}});var vp={};ja(vp,{arrowOffsetX:()=>b4e,autoMarginIdRoot:()=>p4e,containerClassName:()=>r4e,currentValueClass:()=>v4e,currentValueInset:()=>X4e,currentValuePadding:()=>V4e,gripBgActiveColor:()=>P4e,gripBgColor:()=>R4e,gripBorder:()=>E4e,gripBorderColor:()=>F4e,gripBorderWidth:()=>q4e,gripHeight:()=>L4e,gripRadius:()=>C4e,gripRectClass:()=>o4e,gripWidth:()=>D4e,groupClassName:()=>t4e,inputAreaClass:()=>a4e,inputProxyClass:()=>s4e,labelClass:()=>c4e,labelGroupClass:()=>f4e,labelOffset:()=>z4e,labelPadding:()=>N4e,labelsClass:()=>u4e,menuIndexAttrName:()=>d4e,minHeight:()=>y4e,minWidth:()=>m4e,minorTickColor:()=>G4e,minorTickLength:()=>Y4e,minorTickOffset:()=>U4e,name:()=>e4e,railBgColor:()=>M4e,railBorder:()=>w4e,railBorderColor:()=>T4e,railBorderWidth:()=>A4e,railHeight:()=>h4e,railInset:()=>k4e,railRadius:()=>x4e,railRectClass:()=>n4e,railTouchRectClass:()=>i4e,railWidth:()=>_4e,stepInset:()=>S4e,textPadX:()=>g4e,tickColor:()=>I4e,tickLength:()=>H4e,tickOffset:()=>O4e,tickRectClass:()=>l4e,tickWidth:()=>B4e});var e4e,r4e,t4e,a4e,n4e,i4e,o4e,l4e,s4e,u4e,f4e,c4e,v4e,h4e,d4e,p4e,m4e,y4e,g4e,b4e,x4e,_4e,w4e,A4e,T4e,M4e,k4e,S4e,C4e,D4e,L4e,E4e,q4e,F4e,R4e,P4e,N4e,z4e,B4e,I4e,O4e,H4e,U4e,G4e,Y4e,V4e,X4e,hp=Ja(()=>{"use strict";e4e="sliders",r4e="slider-container",t4e="slider-group",a4e="slider-input-area",n4e="slider-rail-rect",i4e="slider-rail-touch-rect",o4e="slider-grip-rect",l4e="slider-tick-rect",s4e="slider-input-proxy",u4e="slider-labels",f4e="slider-label-group",c4e="slider-label",v4e="slider-current-value",h4e=5,d4e="slider-active-index",p4e="slider-",m4e=30,y4e=30,g4e=40,b4e=4,x4e=2,_4e=5,w4e=4,A4e=1,T4e="#bec8d9",M4e="#f8fafc",k4e=8,S4e=10,C4e=10,D4e=20,L4e=20,E4e=20,q4e=1,F4e="#bec8d9",R4e="#f6f8fa",P4e="#dbdde0",N4e=8,z4e=0,B4e=1,I4e="#333",O4e=25,H4e=7,U4e=25,G4e="#333",Y4e=4,V4e=8,X4e=0});var X9=B((lNe,GY)=>{"use strict";var HY=Di(),W4e=Zy(),Z4e=Fn().extendDeepAll,J4e=Nl().overrideAll,j4e=B2(),UY=Ra().templatedArray,Sc=(hp(),vr(vp)),$4e=UY("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}});GY.exports=J4e(UY("slider",{visible:{valType:"boolean",dflt:!0},active:{valType:"number",min:0,dflt:0},steps:$4e,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:Z4e(W4e({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:j4e.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:HY({})},font:HY({}),activebgcolor:{valType:"color",dflt:Sc.gripBgActiveColor},bgcolor:{valType:"color",dflt:Sc.railBgColor},bordercolor:{valType:"color",dflt:Sc.railBorderColor},borderwidth:{valType:"number",min:0,dflt:Sc.railBorderWidth},ticklen:{valType:"number",min:0,dflt:Sc.tickLength},tickcolor:{valType:"color",dflt:Sc.tickColor},tickwidth:{valType:"number",min:0,dflt:1},minorticklen:{valType:"number",min:0,dflt:Sc.minorTickLength}}),"arraydraw","from-root")});var WY=B((sNe,XY)=>{"use strict";var Uh=or(),YY=Oo(),VY=X9(),K4e=(hp(),vr(vp)),Q4e=K4e.name,e6e=VY.steps;XY.exports=function(r,t){YY(r,t,{name:Q4e,handleItemDefaults:r6e})};function r6e(e,r,t){function a(c,v){return Uh.coerce(e,r,VY,c,v)}for(var n=YY(e,r,{name:"steps",handleItemDefaults:t6e}),i=0,o=0;o{"use strict";var jl=la(),K5=di(),Uf=Kt(),$l=Sa(),$o=or(),a6e=$o.strTranslate,dp=Ei(),n6e=Ra().arrayEditor,jt=(hp(),vr(vp)),J9=(Oi(),vr(Ii)),jY=J9.LINE_SPACING,W9=J9.FROM_TL,Z9=J9.FROM_BR;tV.exports=function(r){var t=r._context.staticPlot,a=r._fullLayout,n=i6e(a,r),i=a._infolayer.selectAll("g."+jt.containerClassName).data(n.length>0?[0]:[]);i.enter().append("g").classed(jt.containerClassName,!0).style("cursor",t?null:"ew-resize");function o(f){f._commandObserver&&(f._commandObserver.remove(),delete f._commandObserver),K5.autoMargin(r,$Y(f))}if(i.exit().each(function(){jl.select(this).selectAll("g."+jt.groupClassName).each(o)}).remove(),n.length!==0){var l=i.selectAll("g."+jt.groupClassName).data(n,o6e);l.enter().append("g").classed(jt.groupClassName,!0),l.exit().each(o).remove();for(var s=0;s0&&(l=l.transition().duration(r.transition.duration).ease(r.transition.easing)),l.attr("transform",a6e(o-jt.gripWidth*.5,r._dims.currentValueTotalHeight))}}function j9(e,r){var t=e._dims;return t.inputAreaStart+jt.stepInset+(t.inputAreaLength-2*jt.stepInset)*Math.min(1,Math.max(0,r))}function JY(e,r){var t=e._dims;return Math.min(1,Math.max(0,(r-jt.stepInset-t.inputAreaStart)/(t.inputAreaLength-2*jt.stepInset-2*t.inputAreaStart)))}function h6e(e,r,t){var a=t._dims,n=$o.ensureSingle(e,"rect",jt.railTouchRectClass,function(i){i.call(eV,r,e,t).style("pointer-events","all")});n.attr({width:a.inputAreaLength,height:Math.max(a.inputAreaWidth,jt.tickOffset+t.ticklen+a.labelHeight)}).call(Uf.fill,t.bgcolor).attr("opacity",0),$l.setTranslate(n,0,a.currentValueTotalHeight)}function d6e(e,r){var t=r._dims,a=t.inputAreaLength-jt.railInset*2,n=$o.ensureSingle(e,"rect",jt.railRectClass);n.attr({width:a,height:jt.railWidth,rx:jt.railRadius,ry:jt.railRadius,"shape-rendering":"crispEdges"}).call(Uf.stroke,r.bordercolor).call(Uf.fill,r.bgcolor).style("stroke-width",r.borderwidth+"px"),$l.setTranslate(n,jt.railInset,(t.inputAreaWidth-jt.railWidth)*.5+t.currentValueTotalHeight)}});var iV=B((fNe,nV)=>{"use strict";var p6e=(hp(),vr(vp));nV.exports={moduleType:"component",name:p6e.name,layoutAttributes:X9(),supplyLayoutDefaults:WY(),draw:aV()}});var eb=B((cNe,lV)=>{"use strict";var oV=ys();lV.exports={bgcolor:{valType:"color",dflt:oV.background,editType:"plot"},bordercolor:{valType:"color",dflt:oV.defaultLine,editType:"plot"},borderwidth:{valType:"integer",dflt:0,min:0,editType:"plot"},autorange:{valType:"boolean",dflt:!0,editType:"calc",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},range:{valType:"info_array",items:[{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}},{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}}],editType:"calc",impliedEdits:{autorange:!1}},thickness:{valType:"number",dflt:.15,min:0,max:1,editType:"plot"},visible:{valType:"boolean",dflt:!0,editType:"calc"},editType:"calc"}});var $9=B((vNe,sV)=>{"use strict";sV.exports={_isSubplotObj:!0,rangemode:{valType:"enumerated",values:["auto","fixed","match"],dflt:"match",editType:"calc"},range:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},editType:"calc"}});var rb={};ja(rb,{bgClassName:()=>g6e,containerClassName:()=>y6e,extraPad:()=>H6e,grabAreaCursor:()=>N6e,grabAreaFill:()=>P6e,grabAreaMaxClassName:()=>S6e,grabAreaMinClassName:()=>T6e,grabAreaWidth:()=>z6e,grabberMaxClassName:()=>k6e,grabberMinClassName:()=>A6e,handleMaxClassName:()=>C6e,handleMinClassName:()=>M6e,handleRadius:()=>I6e,handleStrokeWidth:()=>O6e,handleWidth:()=>B6e,maskColor:()=>E6e,maskMaxClassName:()=>_6e,maskMaxOppAxisClassName:()=>L6e,maskMinClassName:()=>x6e,maskMinOppAxisClassName:()=>D6e,maskOppAxisColor:()=>q6e,name:()=>m6e,rangePlotClassName:()=>b6e,slideBoxClassName:()=>w6e,slideBoxCursor:()=>R6e,slideBoxFill:()=>F6e});var m6e,y6e,g6e,b6e,x6e,_6e,w6e,A6e,T6e,M6e,k6e,S6e,C6e,D6e,L6e,E6e,q6e,F6e,R6e,P6e,N6e,z6e,B6e,I6e,O6e,H6e,tb=Ja(()=>{"use strict";m6e="rangeslider",y6e="rangeslider-container",g6e="rangeslider-bg",b6e="rangeslider-rangeplot",x6e="rangeslider-mask-min",_6e="rangeslider-mask-max",w6e="rangeslider-slidebox",A6e="rangeslider-grabber-min",T6e="rangeslider-grabarea-min",M6e="rangeslider-handle-min",k6e="rangeslider-grabber-max",S6e="rangeslider-grabarea-max",C6e="rangeslider-handle-max",D6e="rangeslider-mask-min-opp-axis",L6e="rangeslider-mask-max-opp-axis",E6e="rgba(0,0,0,0.4)",q6e="rgba(0,0,0,0.2)",F6e="transparent",R6e="ew-resize",P6e="transparent",N6e="col-resize",z6e=10,B6e=4,I6e=1,O6e=1,H6e=15});var cV=B(nb=>{"use strict";var U6e=hn(),G6e=Ei(),uV=(tb(),vr(rb)),Y6e=(Oi(),vr(Ii)).LINE_SPACING,ab=uV.name;function fV(e){var r=e&&e[ab];return r&&r.visible}nb.isVisible=fV;nb.makeData=function(e){for(var r=U6e.list({_fullLayout:e},"x",!0),t=e.margin,a=[],n=0;n{"use strict";var ib=or(),vV=Ra(),hV=hn(),V6e=eb(),X6e=$9();dV.exports=function(r,t,a){var n=r[a],i=t[a];if(!(n.rangeslider||t._requestRangeslider[i._id]))return;ib.isPlainObject(n.rangeslider)||(n.rangeslider={});var o=n.rangeslider,l=vV.newContainer(i,"rangeslider");function s(w,k){return ib.coerce(o,l,V6e,w,k)}var u,f;function c(w,k){return ib.coerce(u,f,X6e,w,k)}var v=s("visible");if(v){s("bgcolor",t.plot_bgcolor),s("bordercolor"),s("borderwidth"),s("thickness"),s("autorange",!i.isValidRange(o.range)),s("range");var d=t._subplots;if(d)for(var p=d.cartesian.filter(function(w){return w.slice(0,Math.max(0,w.indexOf("y")))===hV.name2id(a)}).map(function(w){return w.slice(w.indexOf("y"),w.length)}),m=ib.simpleMap(p,hV.id2name),y=0;y{"use strict";var W6e=hn().list,Z6e=uh().getAutoRange,J6e=(tb(),vr(rb));mV.exports=function(r){for(var t=W6e(r,"x",!0),a=0;a{"use strict";var ob=la(),j6e=Pt(),$6e=di(),Cn=or(),lb=Cn.strTranslate,bV=Sa(),Gf=Kt(),K6e=r1(),Q6e=ip(),K9=hn(),e7e=Ul(),r7e=Cf(),aa=(tb(),vr(rb));xV.exports=function(e){for(var r=e._fullLayout,t=r._rangeSliderData,a=0;a=G.max)V=P[W+1];else if(U=G.pmax)V=P[W+1];else if(U0?e.touches[0].clientX:0}function t7e(e,r,t,a){if(r._context.staticPlot)return;var n=e.select("rect."+aa.slideBoxClassName).node(),i=e.select("rect."+aa.grabAreaMinClassName).node(),o=e.select("rect."+aa.grabAreaMaxClassName).node();function l(){var s=ob.event,u=s.target,f=gV(s),c=f-e.node().getBoundingClientRect().left,v=a.d2p(t._rl[0]),d=a.d2p(t._rl[1]),p=e7e.coverSlip();this.addEventListener("touchmove",m),this.addEventListener("touchend",y),p.addEventListener("mousemove",m),p.addEventListener("mouseup",y);function m(b){var T=gV(b),_=+T-f,x,w,k;switch(u){case n:if(k="ew-resize",v+_>t._length||d+_<0)return;x=v+_,w=d+_;break;case i:if(k="col-resize",v+_>t._length)return;x=v+_,w=d;break;case o:if(k="col-resize",d+_<0)return;x=v,w=d+_;break;default:k="ew-resize",x=c,w=c+_;break}if(w{"use strict";var v7e=or(),h7e=eb(),d7e=$9(),Q9=cV();wV.exports={moduleType:"component",name:"rangeslider",schema:{subplots:{xaxis:{rangeslider:v7e.extendFlat({},h7e,{yaxis:d7e})}}},layoutAttributes:eb(),handleDefaults:pV(),calcAutorange:yV(),draw:_V(),isVisible:Q9.isVisible,makeData:Q9.makeData,autoMarginOpts:Q9.autoMarginOpts}});var sb=B((gNe,MV)=>{"use strict";var p7e=Di(),TV=ys(),m7e=Ra().templatedArray,y7e=m7e("button",{visible:{valType:"boolean",dflt:!0,editType:"plot"},step:{valType:"enumerated",values:["month","year","day","hour","minute","second","all"],dflt:"month",editType:"plot"},stepmode:{valType:"enumerated",values:["backward","todate"],dflt:"backward",editType:"plot"},count:{valType:"number",min:0,dflt:1,editType:"plot"},label:{valType:"string",editType:"plot"},editType:"plot"});MV.exports={visible:{valType:"boolean",editType:"plot"},buttons:y7e,x:{valType:"number",min:-2,max:3,editType:"plot"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"plot"},y:{valType:"number",min:-2,max:3,editType:"plot"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"bottom",editType:"plot"},font:p7e({editType:"plot"}),bgcolor:{valType:"color",dflt:TV.lightLine,editType:"plot"},activecolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:TV.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"}});var eA={};ja(eA,{darkAmount:()=>A7e,lightAmount:()=>w7e,minButtonWidth:()=>b7e,rx:()=>x7e,ry:()=>_7e,yPad:()=>g7e});var g7e,b7e,x7e,_7e,w7e,A7e,rA=Ja(()=>{"use strict";g7e=.02,b7e=30,x7e=3,_7e=3,w7e=25,A7e=10});var CV=B((bNe,SV)=>{"use strict";var ub=or(),T7e=Kt(),M7e=Ra(),k7e=Oo(),kV=sb(),tA=(rA(),vr(eA));SV.exports=function(r,t,a,n,i){var o=r.rangeselector||{},l=M7e.newContainer(t,"rangeselector");function s(d,p){return ub.coerce(o,l,kV,d,p)}var u=k7e(o,l,{name:"buttons",handleItemDefaults:S7e,calendar:i}),f=s("visible",u.length>0);if(f){var c=C7e(t,a,n);s("x",c[0]),s("y",c[1]),ub.noneOrAll(r,t,["x","y"]),s("xanchor"),s("yanchor"),ub.coerceFont(s,"font",a.font);var v=s("bgcolor");s("activecolor",T7e.contrast(v,tA.lightAmount,tA.darkAmount)),s("bordercolor"),s("borderwidth")}};function S7e(e,r,t,a){var n=a.calendar;function i(s,u){return ub.coerce(e,r,kV.buttons,s,u)}var o=i("visible");if(o){var l=i("step");l!=="all"&&(n&&n!=="gregorian"&&(l==="month"||l==="year")?r.stepmode="backward":i("stepmode"),i("count")),i("label")}}function C7e(e,r,t){for(var a=t.filter(function(l){return r[l].anchor===e._id}),n=0,i=0;i{"use strict";var D7e=c_(),L7e=or().titleCase;DV.exports=function(r,t){var a=r._name,n={};if(t.step==="all")n[a+".autorange"]=!0;else{var i=E7e(r,t);n[a+".range[0]"]=i[0],n[a+".range[1]"]=i[1]}return n};function E7e(e,r){var t=e.range,a=new Date(e.r2l(t[1])),n=r.step,i=D7e["utc"+L7e(n)],o=r.count,l;switch(r.stepmode){case"backward":l=e.l2r(+i.offset(a,-o));break;case"todate":var s=i.offset(a,-o);l=e.l2r(+i.ceil(s));break}var u=t[1];return[l,u]}});var BV=B((_Ne,zV)=>{"use strict";var cb=la(),q7e=Pt(),F7e=di(),EV=Kt(),NV=Sa(),Au=or(),qV=Au.strTranslate,fb=Ei(),R7e=hn(),iA=(Oi(),vr(Ii)),FV=iA.LINE_SPACING,RV=iA.FROM_TL,PV=iA.FROM_BR,nA=(rA(),vr(eA)),P7e=LV();zV.exports=function(r){var t=r._fullLayout,a=t._infolayer.selectAll(".rangeselector").data(N7e(r),z7e);a.enter().append("g").classed("rangeselector",!0),a.exit().remove(),a.style({cursor:"pointer","pointer-events":"all"}),a.each(function(n){var i=cb.select(this),o=n,l=o.rangeselector,s=i.selectAll("g.button").data(Au.filterVisible(l.buttons));s.enter().append("g").classed("button",!0),s.exit().remove(),s.each(function(u){var f=cb.select(this),c=P7e(o,u);u._isActive=B7e(o,u,c),f.call(aA,l,u),f.call(O7e,l,u,r),f.on("click",function(){r._dragged||q7e.call("_guiRelayout",r,c)}),f.on("mouseover",function(){u._isHovered=!0,f.call(aA,l,u)}),f.on("mouseout",function(){u._isHovered=!1,f.call(aA,l,u)})}),U7e(r,s,l,o._name,i)})};function N7e(e){for(var r=R7e.list(e,"x",!0),t=[],a=0;a{"use strict";IV.exports={moduleType:"component",name:"rangeselector",schema:{subplots:{xaxis:{rangeselector:sb()}}},layoutAttributes:sb(),handleDefaults:CV(),draw:BV()}});var vb=B(oA=>{"use strict";var HV=Fn().extendFlat;oA.attributes=function(e,r){e=e||{},r=r||{};var t={valType:"info_array",editType:e.editType,items:[{valType:"number",min:0,max:1,editType:e.editType},{valType:"number",min:0,max:1,editType:e.editType}],dflt:[0,1]},a=e.name?e.name+" ":"",n=e.trace?"trace":"subplot",i=r.description?" "+r.description:"",o={x:HV({},t,{}),y:HV({},t,{}),editType:e.editType};return e.noGridCell||(o.row={valType:"integer",min:0,dflt:0,editType:e.editType},o.column={valType:"integer",min:0,dflt:0,editType:e.editType}),o};oA.defaults=function(e,r,t,a){var n=a&&a.x||[0,1],i=a&&a.y||[0,1],o=r.grid;if(o){var l=t("domain.column");l!==void 0&&(l{"use strict";var G7e=or(),Y7e=(Bv(),vr(N2)).counter,V7e=vb().attributes,UV=(ni(),vr(ai)).idRegex,X7e=Ra(),lA={rows:{valType:"integer",min:1,editType:"plot"},roworder:{valType:"enumerated",values:["top to bottom","bottom to top"],dflt:"top to bottom",editType:"plot"},columns:{valType:"integer",min:1,editType:"plot"},subplots:{valType:"info_array",freeLength:!0,dimensions:2,items:{valType:"enumerated",values:[Y7e("xy").toString(),""],editType:"plot"},editType:"plot"},xaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[UV.x.toString(),""],editType:"plot"},editType:"plot"},yaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[UV.y.toString(),""],editType:"plot"},editType:"plot"},pattern:{valType:"enumerated",values:["independent","coupled"],dflt:"coupled",editType:"plot"},xgap:{valType:"number",min:0,max:1,editType:"plot"},ygap:{valType:"number",min:0,max:1,editType:"plot"},domain:V7e({name:"grid",editType:"plot",noGridCell:!0},{}),xside:{valType:"enumerated",values:["bottom","bottom plot","top plot","top"],dflt:"bottom plot",editType:"plot"},yside:{valType:"enumerated",values:["left","left plot","right plot","right"],dflt:"left plot",editType:"plot"},editType:"plot"};function hb(e,r,t){var a=r[t+"axes"],n=Object.keys((e._splomAxes||{})[t]||{});if(Array.isArray(a))return a;if(n.length)return n}function W7e(e,r){var t=e.grid||{},a=hb(r,t,"x"),n=hb(r,t,"y");if(!e.grid&&!a&&!n)return;var i=Array.isArray(t.subplots)&&Array.isArray(t.subplots[0]),o=Array.isArray(a),l=Array.isArray(n),s=o&&a!==t.xaxes&&l&&n!==t.yaxes,u,f;i?(u=t.subplots.length,f=t.subplots[0].length):(l&&(u=n.length),o&&(f=a.length));var c=X7e.newContainer(r,"grid");function v(k,M){return G7e.coerce(t,c,lA,k,M)}var d=v("rows",u),p=v("columns",f);if(!(d*p>1)){delete r.grid;return}if(!i&&!o&&!l){var m=v("pattern")==="independent";m&&(i=!0)}c._hasSubplotGrid=i;var y=v("roworder"),b=y==="top to bottom",T=i?.2:.1,_=i?.3:.1,x,w;s&&r._splomGridDflt&&(x=r._splomGridDflt.xside,w=r._splomGridDflt.yside),c._domains={x:GV("x",v,T,x,p),y:GV("y",v,_,w,d,b)}}function GV(e,r,t,a,n,i){var o=r(e+"gap",t),l=r("domain."+e);r(e+"side",a);for(var s=new Array(n),u=l[0],f=(l[1]-u)/(n-o),c=f*(1-o),v=0;v{"use strict";XV.exports={visible:{valType:"boolean",editType:"calc"},type:{valType:"enumerated",values:["percent","constant","sqrt","data"],editType:"calc"},symmetric:{valType:"boolean",editType:"calc"},array:{valType:"data_array",editType:"calc"},arrayminus:{valType:"data_array",editType:"calc"},value:{valType:"number",min:0,dflt:10,editType:"calc"},valueminus:{valType:"number",min:0,dflt:10,editType:"calc"},traceref:{valType:"integer",min:0,dflt:0,editType:"style"},tracerefminus:{valType:"integer",min:0,dflt:0,editType:"style"},copy_ystyle:{valType:"boolean",editType:"plot"},copy_zstyle:{valType:"boolean",editType:"style"},color:{valType:"color",editType:"style"},thickness:{valType:"number",min:0,dflt:2,editType:"style"},width:{valType:"number",min:0,editType:"plot"},editType:"calc"}});var JV=B((kNe,ZV)=>{"use strict";var WV=da(),J7e=Pt(),j7e=or(),$7e=Ra(),K7e=uA();ZV.exports=function(e,r,t,a){var n="error_"+a.axis,i=$7e.newContainer(r,n),o=e[n]||{};function l(p,m){return j7e.coerce(o,i,K7e,p,m)}var s=o.array!==void 0||o.value!==void 0||o.type==="sqrt",u=l("visible",s);if(u!==!1){var f=l("type","array"in o?"data":"percent"),c=!0;f!=="sqrt"&&(c=l("symmetric",!((f==="data"?"arrayminus":"valueminus")in o))),f==="data"?(l("array"),l("traceref"),c||(l("arrayminus"),l("tracerefminus"))):(f==="percent"||f==="constant")&&(l("value"),c||l("valueminus"));var v="copy_"+a.inherit+"style";if(a.inherit){var d=r["error_"+a.inherit];(d||{}).visible&&l(v,!(o.color||WV(o.thickness)||WV(o.width)))}(!a.inherit||!i[v])&&(l("color",t),l("thickness"),l("width",J7e.traceIs(r,"gl3d")?0:4))}}});var fA=B((SNe,$V)=>{"use strict";$V.exports=function(r){var t=r.type,a=r.symmetric;if(t==="data"){var n=r.array||[];if(a)return function(u,f){var c=+n[f];return[c,c]};var i=r.arrayminus||[];return function(u,f){var c=+n[f],v=+i[f];return!isNaN(c)||!isNaN(v)?[v||0,c||0]:[NaN,NaN]}}else{var o=jV(t,r.value),l=jV(t,r.valueminus);return a||r.valueminus===void 0?function(u){var f=o(u);return[f,f]}:function(u){return[l(u),o(u)]}}};function jV(e,r){if(e==="percent")return function(t){return Math.abs(t*r/100)};if(e==="constant")return function(){return Math.abs(r)};if(e==="sqrt")return function(t){return Math.sqrt(Math.abs(t))}}});var eX=B((CNe,QV)=>{"use strict";var cA=da(),Q7e=Pt(),vA=en(),e8e=or(),r8e=fA();QV.exports=function(r){for(var t=r.calcdata,a=0;a{"use strict";var rX=la(),Yf=da(),t8e=Sa(),a8e=Ti();tX.exports=function(r,t,a,n){var i,o=a.xaxis,l=a.yaxis,s=n&&n.duration>0,u=r._context.staticPlot;t.each(function(f){var c=f[0].trace,v=c.error_x||{},d=c.error_y||{},p;c.ids&&(p=function(T){return T.id});var m=a8e.hasMarkers(c)&&c.marker.maxdisplayed>0;!d.visible&&!v.visible&&(f=[]);var y=rX.select(this).selectAll("g.errorbar").data(f,p);if(y.exit().remove(),!!f.length){v.visible||y.selectAll("path.xerror").remove(),d.visible||y.selectAll("path.yerror").remove(),y.style("opacity",1);var b=y.enter().append("g").classed("errorbar",!0);s&&b.style("opacity",0).transition().duration(n.duration).style("opacity",1),t8e.setClipUrl(y,a.layerClipId,r),y.each(function(T){var _=rX.select(this),x=n8e(T,o,l);if(!(m&&!T.vis)){var w,k=_.select("path.yerror");if(d.visible&&Yf(x.x)&&Yf(x.yh)&&Yf(x.ys)){var M=d.width;w="M"+(x.x-M)+","+x.yh+"h"+2*M+"m-"+M+",0V"+x.ys,x.noYS||(w+="m-"+M+",0h"+2*M),i=!k.size(),i?k=_.append("path").style("vector-effect",u?"none":"non-scaling-stroke").classed("yerror",!0):s&&(k=k.transition().duration(n.duration).ease(n.easing)),k.attr("d",w)}else k.remove();var C=_.select("path.xerror");if(v.visible&&Yf(x.y)&&Yf(x.xh)&&Yf(x.xs)){var E=(v.copy_ystyle?d:v).width;w="M"+x.xh+","+(x.y-E)+"v"+2*E+"m0,-"+E+"H"+x.xs,x.noXS||(w+="m0,-"+E+"v"+2*E),i=!C.size(),i?C=_.append("path").style("vector-effect",u?"none":"non-scaling-stroke").classed("xerror",!0):s&&(C=C.transition().duration(n.duration).ease(n.easing)),C.attr("d",w)}else C.remove()}})}})};function n8e(e,r,t){var a={x:r.c2p(e.x),y:t.c2p(e.y)};return e.yh!==void 0&&(a.yh=t.c2p(e.yh),a.ys=t.c2p(e.ys),Yf(a.ys)||(a.noYS=!0,a.ys=t.c2p(e.ys,!0))),e.xh!==void 0&&(a.xh=r.c2p(e.xh),a.xs=r.c2p(e.xs),Yf(a.xs)||(a.noXS=!0,a.xs=r.c2p(e.xs,!0))),a}});var oX=B((LNe,iX)=>{"use strict";var i8e=la(),nX=Kt();iX.exports=function(r){r.each(function(t){var a=t[0].trace,n=a.error_y||{},i=a.error_x||{},o=i8e.select(this);o.selectAll("path.yerror").style("stroke-width",n.thickness+"px").call(nX.stroke,n.color),i.copy_ystyle&&(i=n),o.selectAll("path.xerror").style("stroke-width",i.thickness+"px").call(nX.stroke,i.color)})}});var uX=B((ENe,sX)=>{"use strict";var pp=or(),lX=Nl().overrideAll,mp=uA(),Cc={error_x:pp.extendFlat({},mp),error_y:pp.extendFlat({},mp)};delete Cc.error_x.copy_zstyle;delete Cc.error_y.copy_zstyle;delete Cc.error_y.copy_ystyle;var yp={error_x:pp.extendFlat({},mp),error_y:pp.extendFlat({},mp),error_z:pp.extendFlat({},mp)};delete yp.error_x.copy_ystyle;delete yp.error_y.copy_ystyle;delete yp.error_z.copy_ystyle;delete yp.error_z.copy_zstyle;sX.exports={moduleType:"component",name:"errorbars",schema:{traces:{scatter:Cc,bar:Cc,histogram:Cc,scatter3d:lX(yp,"calc","nested"),scattergl:lX(Cc,"calc","nested")}},supplyDefaults:JV(),calc:eX(),makeComputeError:fA(),plot:aX(),style:oX(),hoverInfo:o8e};function o8e(e,r,t){(r.error_y||{}).visible&&(t.yerr=e.yh-e.y,r.error_y.symmetric||(t.yerrneg=e.y-e.ys)),(r.error_x||{}).visible&&(t.xerr=e.xh-e.x,r.error_x.symmetric||(t.xerrneg=e.x-e.xs))}});var fX={};ja(fX,{cn:()=>l8e});var l8e,cX=Ja(()=>{"use strict";l8e={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"}});var bX=B((qNe,gX)=>{"use strict";var Vf=la(),pb=di(),vX=Pt(),Tu=en(),db=Ul(),wl=or(),Ql=wl.strTranslate,yX=Fn().extendFlat,hA=Cf(),Kl=Sa(),Gh=Kt(),s8e=r1(),u8e=Ei(),f8e=Ol().flipScale,c8e=_9(),v8e=w9(),h8e=sl(),pA=(Oi(),vr(Ii)),hX=pA.LINE_SPACING,dX=pA.FROM_TL,pX=pA.FROM_BR,on=(cX(),vr(fX)).cn;function d8e(e){var r=e._fullLayout,t=r._infolayer.selectAll("g."+on.colorbar).data(p8e(e),function(a){return a._id});t.enter().append("g").attr("class",function(a){return a._id}).classed(on.colorbar,!0),t.each(function(a){var n=Vf.select(this);wl.ensureSingle(n,"rect",on.cbbg),wl.ensureSingle(n,"g",on.cbfills),wl.ensureSingle(n,"g",on.cblines),wl.ensureSingle(n,"g",on.cbaxis,function(o){o.classed(on.crisp,!0)}),wl.ensureSingle(n,"g",on.cbtitleunshift,function(o){o.append("g").classed(on.cbtitle,!0)}),wl.ensureSingle(n,"rect",on.cboutline);var i=m8e(n,a,e);i&&i.then&&(e._promises||[]).push(i),e._context.edits.colorbarPosition&&y8e(n,a,e)}),t.exit().each(function(a){pb.autoMargin(e,a._id)}).remove(),t.order()}function p8e(e){var r=e._fullLayout,t=e.calcdata,a=[],n,i,o,l;function s(_){return yX(_,{_fillcolor:null,_line:{color:null,width:null,dash:null},_levels:{start:null,end:null,size:null},_filllevels:null,_fillgradient:null,_zrange:null})}function u(){typeof l.calc=="function"?l.calc(e,o,n):(n._fillgradient=i.reversescale?f8e(i.colorscale):i.colorscale,n._zrange=[i[l.min],i[l.max]])}for(var f=0;f[Math.min(e[0]+r,e[1]),e[1]],mX=(e,r)=>[e[0],Math.max(e[1]-r,e[0])];function m8e(e,r,t){var a=r.orientation==="v",n=r.len,i=r.lenmode,o=r.thickness,l=r.thicknessmode,s=r.outlinewidth,u=r.borderwidth,f=r.bgcolor,c=r.xanchor,v=r.yanchor,d=r.xpad,p=r.ypad,m=r.x,y=a?r.y:1-r.y,b=r.yref==="paper",T=r.xref==="paper",_=t._fullLayout,x=_._size,w=r._fillcolor,k=r._line,M=r.title,C=M.side,E=r._zrange||Vf.extent((typeof w=="function"?w:k.color).domain()),F=typeof k.color=="function"?k.color:function(){return k.color},P=typeof w=="function"?w:function(){return w},q=r._levels,z=g8e(t,r,E),I=z.fill,U=z.line,V=Math.round(o*(l==="fraction"?a?x.w:x.h:1)),W=V/(a?x.w:x.h),G=Math.round(n*(i==="fraction"?a?x.h:x.w:1)),Y=G/(a?x.h:x.w),Z=T?x.w:t._fullLayout.width,j=b?x.h:t._fullLayout.height,ee=Math.round(a?m*Z+d:y*j+p),ye={center:.5,right:1}[c]||0,fe={top:1,middle:.5}[v]||0,he=a?m-ye*W:y-fe*W,ae=a?y-fe*Y:m-ye*Y,Le=Math.round(a?j*(1-ae):Z*ae);r._lenFrac=Y,r._thickFrac=W,r._uFrac=he,r._vFrac=ae;var ce=r._axis=b8e(t,r,E);ce.position=W+(a?m+d/x.w:y+p/x.h);var Fe=["top","bottom"].indexOf(C)!==-1;if(a&&Fe&&(ce.title.side=C,ce.titlex=m+d/x.w,ce.titley=ae+(M.side==="top"?Y-p/x.h:p/x.h)),!a&&!Fe&&(ce.title.side=C,ce.titley=y+p/x.h,ce.titlex=ae+d/x.w),k.color&&r.tickmode==="auto"){ce.tickmode="linear",ce.tick0=q.start;var Re=q.size,ge=wl.constrain(G/50,4,15)+1,He=(E[1]-E[0])/((r.nticks||ge)*Re);if(He>1){var ur=Math.pow(10,Math.floor(Math.log(He)/Math.LN10));Re*=ur*wl.roundUp(He/ur,[2,5,10]),(Math.abs(q.start)/q.size+1e-6)%1<2e-6&&(ce.tick0=0)}ce.dtick=Re}var qe=a?p/x.h:d/x.w;ce.domain=mX(dA([ae,ae+Y],qe),qe),ce.setScale(),e.attr("transform",Ql(Math.round(x.l),Math.round(x.t)));var Ue=e.select("."+on.cbtitleunshift).attr("transform",Ql(-Math.round(x.l),-Math.round(x.t))),Ye=ce.ticklabelposition,We=ce.title.font.size,Ve=e.select("."+on.cbaxis),ar,Ie=0,_r=0;function Pr(ue,Ee){var Tr={propContainer:ce,propName:r._propPrefix+"title.text",traceIndex:r._traceIndex,_meta:r._meta,placeholder:_._dfltTitle.colorbar,containerGroup:e.select("."+on.cbtitle)},rt=ue.charAt(0)==="h"?ue.slice(1):"h"+ue;e.selectAll("."+rt+",."+rt+"-math-group").remove(),s8e.draw(t,ue,yX(Tr,Ee||{}))}function Br(){if(a&&Fe||!a&&!Fe){var ue,Ee;C==="top"&&(ue=d+x.l+Z*m,Ee=p+x.t+j*(1-ae-Y)+3+We*.75),C==="bottom"&&(ue=d+x.l+Z*m,Ee=p+x.t+j*(1-ae)-3-We*.25),C==="right"&&(Ee=p+x.t+j*y+3+We*.75,ue=d+x.l+Z*ae),Pr(ce._id+"title",{attributes:{x:ue,y:Ee,"text-anchor":a?"start":"middle"}})}}function $e(){if(a&&!Fe||!a&&Fe){var ue=ce.position||0,Ee=ce._offset+ce._length/2,Tr,rt;if(C==="right")rt=Ee,Tr=x.l+Z*ue+10+We*(ce.showticklabels?1:.5);else if(Tr=Ee,C==="bottom"&&(rt=x.t+j*ue+10+(Ye.indexOf("inside")===-1?ce.tickfont.size:0)+(ce.ticks!=="inside"&&r.ticklen||0)),C==="top"){var ot=M.text.split("
").length;rt=x.t+j*ue+10-V-hX*We*ot}Pr((a?"h":"v")+ce._id+"title",{avoid:{selection:Vf.select(t).selectAll("g."+ce._id+"tick"),side:C,offsetTop:a?0:x.t,offsetLeft:a?x.l:0,maxShift:a?_.width:_.height},attributes:{x:Tr,y:rt,"text-anchor":"middle"},transform:{rotate:a?-90:0,offset:0}})}}function mr(){if(!a&&!Fe||a&&Fe){var ue=e.select("."+on.cbtitle),Ee=ue.select("text"),Tr=[-s/2,s/2],rt=ue.select(".h"+ce._id+"title-math-group").node(),ot=15.6;Ee.node()&&(ot=parseInt(Ee.node().style.fontSize,10)*hX);var pe;if(rt?(pe=Kl.bBox(rt),_r=pe.width,Ie=pe.height,Ie>ot&&(Tr[1]-=(Ie-ot)/2)):Ee.node()&&!Ee.classed(on.jsPlaceholder)&&(pe=Kl.bBox(Ee.node()),_r=pe.width,Ie=pe.height),a){if(Ie){if(Ie+=5,C==="top")ce.domain=mX(ce.domain,Ie/x.h),Tr[1]*=-1;else{ce.domain=dA(ce.domain,Ie/x.h);var Ce=u8e.lineCount(Ee);Tr[1]+=(1-Ce)*ot}ue.attr("transform",Ql(Tr[0],Tr[1])),ce.setScale()}}else _r&&(C==="right"&&(ce.domain=dA(ce.domain,(_r+We/2)/x.w)),ue.attr("transform",Ql(Tr[0],Tr[1])),ce.setScale())}e.selectAll("."+on.cbfills+",."+on.cblines).attr("transform",a?Ql(0,Math.round(x.h*(1-ce.domain[1]))):Ql(Math.round(x.w*ce.domain[0]),0)),Ve.attr("transform",a?Ql(0,Math.round(-x.t)):Ql(Math.round(-x.l),0));var lr=e.select("."+on.cbfills).selectAll("rect."+on.cbfill).attr("style","").data(I);lr.enter().append("rect").classed(on.cbfill,!0).attr("style",""),lr.exit().remove();var wr=E.map(ce.c2p).map(Math.round).sort(function(tt,Ge){return tt-Ge});lr.each(function(tt,Ge){var Mr=[Ge===0?E[0]:(I[Ge]+I[Ge-1])/2,Ge===I.length-1?E[1]:(I[Ge]+I[Ge+1])/2].map(ce.c2p).map(Math.round);a&&(Mr[1]=wl.constrain(Mr[1]+(Mr[1]>Mr[0])?1:-1,wr[0],wr[1]));var rr=Vf.select(this).attr(a?"x":"y",ee).attr(a?"y":"x",Vf.min(Mr)).attr(a?"width":"height",Math.max(V,2)).attr(a?"height":"width",Math.max(Vf.max(Mr)-Vf.min(Mr),2));if(r._fillgradient)Kl.gradient(rr,t,r._id,a?"vertical":"horizontalreversed",r._fillgradient,"fill");else{var Rr=P(tt).replace("e-","");rr.attr("fill",Gh.hexString(Rr))}});var fr=e.select("."+on.cblines).selectAll("path."+on.cbline).data(k.color&&k.width?U:[]);fr.enter().append("path").classed(on.cbline,!0),fr.exit().remove(),fr.each(function(tt){var Ge=ee,Mr=Math.round(ce.c2p(tt))+k.width/2%1;Vf.select(this).attr("d","M"+(a?Ge+","+Mr:Mr+","+Ge)+(a?"h":"v")+V).call(Kl.lineGroupStyle,k.width,F(tt),k.dash)}),Ve.selectAll("g."+ce._id+"tick,path").remove();var kr=ee+V+(s||0)/2-(r.ticks==="outside"?1:0),qr=Tu.calcTicks(ce),$r=Tu.getTickSigns(ce)[2];return Tu.drawTicks(t,ce,{vals:ce.ticks==="inside"?Tu.clipEnds(ce,qr):qr,layer:Ve,path:Tu.makeTickPath(ce,kr,$r),transFn:Tu.makeTransTickFn(ce)}),Tu.drawLabels(t,ce,{vals:qr,layer:Ve,transFn:Tu.makeTransTickLabelFn(ce),labelFns:Tu.makeLabelFns(ce,kr)})}function Yr(){var ue,Ee=V+s/2;Ye.indexOf("inside")===-1&&(ue=Kl.bBox(Ve.node()),Ee+=a?ue.width:ue.height),ar=Ue.select("text");var Tr=0,rt=a&&C==="top",ot=!a&&C==="right",pe=0;if(ar.node()&&!ar.classed(on.jsPlaceholder)){var Ce,lr=Ue.select(".h"+ce._id+"title-math-group").node();lr&&(a&&Fe||!a&&!Fe)?(ue=Kl.bBox(lr),Tr=ue.width,Ce=ue.height):(ue=Kl.bBox(Ue.node()),Tr=ue.right-x.l-(a?ee:Le),Ce=ue.bottom-x.t-(a?Le:ee),!a&&C==="top"&&(Ee+=ue.height,pe=ue.height)),ot&&(ar.attr("transform",Ql(Tr/2+We/2,0)),Tr*=2),Ee=Math.max(Ee,a?Tr:Ce)}var wr=(a?d:p)*2+Ee+u+s/2,fr=0;!a&&M.text&&v==="bottom"&&y<=0&&(fr=wr/2,wr+=fr,pe+=fr),_._hColorbarMoveTitle=fr,_._hColorbarMoveCBTitle=pe;var kr=u+s,qr=(a?ee:Le)-kr/2-(a?d:0),$r=(a?Le:ee)-(a?G:p+pe-fr);e.select("."+on.cbbg).attr("x",qr).attr("y",$r).attr(a?"width":"height",Math.max(wr-fr,2)).attr(a?"height":"width",Math.max(G+kr,2)).call(Gh.fill,f).call(Gh.stroke,r.bordercolor).style("stroke-width",u);var tt=ot?Math.max(Tr-10,0):0;e.selectAll("."+on.cboutline).attr("x",(a?ee:Le+d)+tt).attr("y",(a?Le+p-G:ee)+(rt?Ie:0)).attr(a?"width":"height",Math.max(V,2)).attr(a?"height":"width",Math.max(G-(a?2*p+Ie:2*d+tt),2)).call(Gh.stroke,r.outlinecolor).style({fill:"none","stroke-width":s});var Ge=a?ye*wr:0,Mr=a?0:(1-fe)*wr-pe;if(Ge=T?x.l-Ge:-Ge,Mr=b?x.t-Mr:-Mr,e.attr("transform",Ql(Ge,Mr)),!a&&(u||Gh.opacity(f)&&!Gh.equals(_.paper_bgcolor,f))){var rr=Ve.selectAll("text"),Rr=rr[0].length,at=e.select("."+on.cbbg).node(),nt=Kl.bBox(at),lt=Kl.getTranslate(e),le=2;rr.each(function(Yn,qa){var un=0,fn=Rr-1;if(qa===un||qa===fn){var gn=Kl.bBox(this),si=Kl.getTranslate(this),bn;if(qa===fn){var Dn=gn.right+si.x,Ir=nt.right+lt.x+Le-u-le+m;bn=Ir-Dn,bn>0&&(bn=0)}else if(qa===un){var ca=gn.left+si.x,Zt=nt.left+lt.x+Le+u+le;bn=Zt-ca,bn<0&&(bn=0)}bn&&(Rr<3?this.setAttribute("transform","translate("+bn+",0) "+this.getAttribute("transform")):this.setAttribute("visibility","hidden"))}})}var Te={},tr=dX[c],hr=pX[c],ra=dX[v],Ca=pX[v],Ha=wr-V;a?(i==="pixels"?(Te.y=y,Te.t=G*ra,Te.b=G*Ca):(Te.t=Te.b=0,Te.yt=y+n*ra,Te.yb=y-n*Ca),l==="pixels"?(Te.x=m,Te.l=wr*tr,Te.r=wr*hr):(Te.l=Ha*tr,Te.r=Ha*hr,Te.xl=m-o*tr,Te.xr=m+o*hr)):(i==="pixels"?(Te.x=m,Te.l=G*tr,Te.r=G*hr):(Te.l=Te.r=0,Te.xl=m+n*tr,Te.xr=m-n*hr),l==="pixels"?(Te.y=1-y,Te.t=wr*ra,Te.b=wr*Ca):(Te.t=Ha*ra,Te.b=Ha*Ca,Te.yt=y-o*ra,Te.yb=y+o*Ca));var an=r.y<.5?"b":"t",yn=r.x<.5?"l":"r";t._fullLayout._reservedMargin[r._id]={};var sn={r:_.width-qr-Ge,l:qr+Te.r,b:_.height-$r-Mr,t:$r+Te.b};T&&b?pb.autoMargin(t,r._id,Te):T?t._fullLayout._reservedMargin[r._id][an]=sn[an]:b||a?t._fullLayout._reservedMargin[r._id][yn]=sn[yn]:t._fullLayout._reservedMargin[r._id][an]=sn[an]}return wl.syncOrAsync([pb.previousPromises,Br,mr,$e,pb.previousPromises,Yr],t)}function y8e(e,r,t){var a=r.orientation==="v",n=t._fullLayout,i=n._size,o,l,s;db.init({element:e.node(),gd:t,prepFn:function(){o=e.attr("transform"),hA(e)},moveFn:function(u,f){e.attr("transform",o+Ql(u,f)),l=db.align((a?r._uFrac:r._vFrac)+u/i.w,a?r._thickFrac:r._lenFrac,0,1,r.xanchor),s=db.align((a?r._vFrac:1-r._uFrac)-f/i.h,a?r._lenFrac:r._thickFrac,0,1,r.yanchor);var c=db.getCursor(l,s,r.xanchor,r.yanchor);hA(e,c)},doneFn:function(){if(hA(e),l!==void 0&&s!==void 0){var u={};u[r._propPrefix+"x"]=l,u[r._propPrefix+"y"]=s,r._traceIndex!==void 0?vX.call("_guiRestyle",t,u,r._traceIndex):vX.call("_guiRelayout",t,u)}}})}function g8e(e,r,t){var a=r._levels,n=[],i=[],o,l,s=a.end+a.size/100,u=a.size,f=1.001*t[0]-.001*t[1],c=1.001*t[1]-.001*t[0];for(l=0;l<1e5&&(o=a.start+l*u,!(u>0?o>=s:o<=s));l++)o>f&&o0?o>=s:o<=s));l++)o>t[0]&&o{"use strict";xX.exports={moduleType:"component",name:"colorbar",attributes:Mg(),supplyDefaults:i7(),draw:bX().draw,hasColorbar:Z6()}});var AX=B((RNe,wX)=>{"use strict";wX.exports={moduleType:"component",name:"legend",layoutAttributes:a8(),supplyLayoutDefaults:i8(),draw:x8(),style:m8()}});var MX=B((PNe,TX)=>{"use strict";TX.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"}}});var SX=B((NNe,kX)=>{"use strict";kX.exports={moduleType:"locale",name:"en-US",dictionary:{"Click to enter Colorscale title":"Click to enter Colorscale title"},format:{date:"%m/%d/%Y"}}});var yA=B((zNe,EX)=>{"use strict";var x8e=Pt(),LX=or(),mA=LX.extendFlat,CX=LX.extendDeep;function DX(e){var r;switch(e){case"themes__thumb":r={autosize:!0,width:150,height:150,title:{text:""},showlegend:!1,margin:{l:5,r:5,t:5,b:5,pad:0},annotations:[]};break;case"thumbnail":r={title:{text:""},showlegend:!1,borderwidth:0,bordercolor:"",margin:{l:1,r:1,t:1,b:1,pad:0},annotations:[]};break;default:r={}}return r}function _8e(e){var r=["xaxis","yaxis","zaxis"];return r.indexOf(e.slice(0,5))>-1}EX.exports=function(r,t){var a,n=r.data,i=r.layout,o=CX([],n),l=CX({},i,DX(t.tileClass)),s=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 u=Object.keys(l);for(a=0;a{"use strict";var w8e=hg().EventEmitter,A8e=Pt(),T8e=or(),qX=yc(),M8e=yA(),k8e=g5(),S8e=b5();function C8e(e,r){var t=new w8e,a=M8e(e,{format:"png"}),n=a.gd;n.style.position="absolute",n.style.left="-5000px",document.body.appendChild(n);function i(){var l=qX.getDelay(n._fullLayout);setTimeout(function(){var s=k8e(n),u=document.createElement("canvas");u.id=T8e.randstr(),t=S8e({format:r.format,width:n._fullLayout.width,height:n._fullLayout.height,canvas:u,emitter:t,svg:s}),t.clean=function(){n&&document.body.removeChild(n)}},l)}var o=qX.getRedrawFunc(n);return A8e.call("_doPlot",n,a.data,a.layout,a.config).then(o).then(i).catch(function(l){t.emit("error",l)}),t}FX.exports=C8e});var zX=B((INe,NX)=>{"use strict";var PX=yc(),D8e={getDelay:PX.getDelay,getRedrawFunc:PX.getRedrawFunc,clone:yA(),toSVG:g5(),svgToImg:b5(),toImage:RX(),downloadImage:Hw()};NX.exports=D8e});var IX=B(Mu=>{"use strict";Mu.version=v2().version;$M();NE();var L8e=Pt(),gp=Mu.register=L8e.register,bA=JO(),BX=Object.keys(bA);for(mb=0;mb{"use strict";OX.exports=IX()});var xA=B((UNe,GX)=>{"use strict";var E8e=Pt(),Ko=or(),q8e=y9(),F8e=Sa();function R8e(e,r,t,a){var n=e.cd,i=n[0].t,o=n[0].trace,l=e.xa,s=e.ya,u=i.x,f=i.y,c=l.c2p(r),v=s.c2p(t),d=e.distance,p;if(i.tree){var m=l.p2c(c-d),y=l.p2c(c+d),b=s.p2c(v-d),T=s.p2c(v+d);a==="x"?p=i.tree.range(Math.min(m,y),Math.min(s._rl[0],s._rl[1]),Math.max(m,y),Math.max(s._rl[0],s._rl[1])):p=i.tree.range(Math.min(m,y),Math.min(b,T),Math.max(m,y),Math.max(b,T))}else p=i.ids;var _,x,w,k,M,C,E,F,P,q=d;if(a==="x"){var z=!!o.xperiodalignment,I=!!o.yperiodalignment;for(M=0;M=Math.min(U,V)&&c<=Math.max(U,V)?0:1/0}if(C<=q){if(q=C,k=f[_],E=s.c2p(k)-v,I){var W=s.c2p(o._yStarts[_]),G=s.c2p(o._yEnds[_]);E=v>=Math.min(W,G)&&v<=Math.max(W,G)?0:1/0}P=Math.sqrt(C*C+E*E),x=p[M]}}}else for(M=0;MI8e,SYMBOL_SDF_SIZE:()=>N8e,SYMBOL_SIZE:()=>z8e,SYMBOL_STROKE:()=>B8e,TOO_MANY_POINTS:()=>P8e});var P8e,N8e,z8e,B8e,I8e,xp=Ja(()=>{"use strict";P8e=1e5,N8e=200,z8e=20,B8e=1,I8e={solid:[1],dot:[1,1],dash:[4,1],longdash:[8,1],dashdot:[4,1,1,1],longdashdot:[8,1,1,1]}});var gb=B((GNe,WX)=>{"use strict";var O8e=Fl(),H8e=Di(),U8e=yw(),ln=Nf(),YX=$2().axisHoverFormat,VX=Q0(),G8e=(tg(),vr(rg)).default,_A=Fn().extendFlat,Y8e=Nl().overrideAll,V8e=(xp(),vr(bp)).DASHES,XX=ln.line,ku=ln.marker,X8e=ku.line,Xf=WX.exports=Y8e({x:ln.x,x0:ln.x0,dx:ln.dx,y:ln.y,y0:ln.y0,dy:ln.dy,xperiod:ln.xperiod,yperiod:ln.yperiod,xperiod0:ln.xperiod0,yperiod0:ln.yperiod0,xperiodalignment:ln.xperiodalignment,yperiodalignment:ln.yperiodalignment,xhoverformat:YX("x"),yhoverformat:YX("y"),text:ln.text,hovertext:ln.hovertext,textposition:ln.textposition,textfont:H8e({noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0,editType:"calc",colorEditType:"style",arrayOk:!0,noNumericWeightValues:!0,variantValues:["normal","small-caps"]}),mode:{valType:"flaglist",flags:["lines","markers","text"],extras:["none"]},line:{color:XX.color,width:XX.width,shape:{valType:"enumerated",values:["linear","hv","vh","hvh","vhv"],dflt:"linear",editType:"plot"},dash:{valType:"enumerated",values:G8e(V8e),dflt:"solid"}},marker:_A({},VX("marker"),{symbol:ku.symbol,angle:ku.angle,size:ku.size,sizeref:ku.sizeref,sizemin:ku.sizemin,sizemode:ku.sizemode,opacity:ku.opacity,colorbar:ku.colorbar,line:_A({},VX("marker.line"),{width:X8e.width})}),connectgaps:ln.connectgaps,fill:_A({},ln.fill,{dflt:"none"}),fillcolor:U8e(),selected:{marker:ln.selected.marker,textfont:ln.selected.textfont},unselected:{marker:ln.unselected.marker,textfont:ln.unselected.textfont},opacity:O8e.opacity},"calc","nested");Xf.x.editType=Xf.y.editType=Xf.x0.editType=Xf.y0.editType="calc+clearAxisTypes";Xf.hovertemplate=ln.hovertemplate;Xf.hovertemplatefallback=ln.hovertemplatefallback;Xf.texttemplate=ln.texttemplate;Xf.texttemplatefallback=ln.texttemplatefallback});var bb=B(wA=>{"use strict";var{symbolNumber:ZX}=Sa();wA.isOpenSymbol=e=>ZX(e)%200>=100;wA.isDotSymbol=e=>ZX(e)>=200});var $X=B((VNe,jX)=>{"use strict";var JX=or(),W8e=Pt(),Z8e=bb(),J8e=gb(),j8e=(O1(),vr(I1)),xb=Ti(),$8e=Yw(),K8e=Vw(),Q8e=M5(),ewe=Xw(),rwe=Zw(),twe=Ww();jX.exports=function(r,t,a,n){function i(d,p){return JX.coerce(r,t,J8e,d,p)}var o=r.marker?Z8e.isOpenSymbol(r.marker.symbol):!1,l=xb.isBubble(r),s=$8e(r,t,n,i);if(!s){t.visible=!1;return}K8e(r,t,n,i),i("xhoverformat"),i("yhoverformat");var u=s{"use strict";var awe=v9();KX.exports=function(r,t,a){var n=r.i;return"x"in r||(r.x=t._x[n]),"y"in r||(r.y=t._y[n]),awe(r,t,a)}});var rW=B((WNe,eW)=>{"use strict";function nwe(e,r,t,a,n){for(var i=n+1;a<=n;){var o=a+n>>>1,l=e[o],s=t!==void 0?t(l,r):l-r;s>=0?(i=o,n=o-1):a=o+1}return i}function iwe(e,r,t,a,n){for(var i=n+1;a<=n;){var o=a+n>>>1,l=e[o],s=t!==void 0?t(l,r):l-r;s>0?(i=o,n=o-1):a=o+1}return i}function owe(e,r,t,a,n){for(var i=a-1;a<=n;){var o=a+n>>>1,l=e[o],s=t!==void 0?t(l,r):l-r;s<0?(i=o,a=o+1):n=o-1}return i}function lwe(e,r,t,a,n){for(var i=a-1;a<=n;){var o=a+n>>>1,l=e[o],s=t!==void 0?t(l,r):l-r;s<=0?(i=o,a=o+1):n=o-1}return i}function swe(e,r,t,a,n){for(;a<=n;){var i=a+n>>>1,o=e[i],l=t!==void 0?t(o,r):o-r;if(l===0)return i;l<=0?a=i+1:n=i-1}return-1}function _p(e,r,t,a,n,i){return typeof t=="function"?i(e,r,t,a===void 0?0:a|0,n===void 0?e.length-1:n|0):i(e,r,void 0,t===void 0?0:t|0,a===void 0?e.length-1:a|0)}eW.exports={ge:function(e,r,t,a,n){return _p(e,r,t,a,n,nwe)},gt:function(e,r,t,a,n){return _p(e,r,t,a,n,iwe)},lt:function(e,r,t,a,n){return _p(e,r,t,a,n,owe)},le:function(e,r,t,a,n){return _p(e,r,t,a,n,lwe)},eq:function(e,r,t,a,n){return _p(e,r,t,a,n,swe)}}});var AA=B((ZNe,tW)=>{tW.exports=uwe;function uwe(e,r,t){return rt?t:e:er?r:e}});var Ns=B((JNe,nW)=>{"use strict";nW.exports=function(r,t,a){var n={},i,o;if(typeof t=="string"&&(t=aW(t)),Array.isArray(t)){var l={};for(o=0;o{"use strict";var fwe=Ns();iW.exports=cwe;function cwe(e){var r;return arguments.length>1&&(e=arguments),typeof e=="string"?e=e.split(/\s/).map(parseFloat):typeof e=="number"&&(e=[e]),e.length&&typeof e[0]=="number"?e.length===1?r={width:e[0],height:e[0],x:0,y:0}:e.length===2?r={width:e[0],height:e[1],x:0,y:0}:r={x:e[0],y:e[1],width:e[2]-e[0]||0,height:e[3]-e[1]||0}:e&&(e=fwe(e,{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"}),r={x:e.left||0,y:e.top||0},e.width==null?e.right?r.width=e.right-r.x:r.width=0:r.width=e.width,e.height==null?e.bottom?r.height=e.bottom-r.y:r.height=0:r.height=e.height),r}});var Dc=B(($Ne,oW)=>{"use strict";oW.exports=vwe;function vwe(e,r){if(!e||e.length==null)throw Error("Argument should be an array");r==null?r=1:r=Math.floor(r);for(var t=Array(r*2),a=0;an&&(n=e[o]),e[o]{"use strict";lW.exports=function(){for(var r=0;r{uW.exports=function(e){switch(e){case"int8":return Int8Array;case"int16":return Int16Array;case"int32":return Int32Array;case"uint8":return Uint8Array;case"uint16":return Uint16Array;case"uint32":return Uint32Array;case"float32":return Float32Array;case"float64":return Float64Array;case"array":return Array;case"uint8_clamped":return Uint8ClampedArray}}});var Lc=B((eze,cW)=>{var fW=_b();cW.exports=hwe;function hwe(e,r,t){if(!e)throw new TypeError("must specify data as first parameter");if(t=+(t||0)|0,Array.isArray(e)&&e[0]&&typeof e[0][0]=="number"){var a=e[0].length,n=e.length*a,i,o,l,s;(!r||typeof r=="string")&&(r=new(fW(r||"float32"))(n+t));var u=r.length-t;if(n!==u)throw new Error("source length "+n+" ("+a+"x"+e.length+") does not match destination length "+u);for(i=0,l=t;i{"use strict";vW.exports=function(e){var r=typeof e;return e!==null&&(r==="object"||r==="function")}});var pW=B((tze,dW)=>{"use strict";dW.exports=Math.log2||function(e){return Math.log(e)*Math.LOG2E}});var wW=B((aze,_W)=>{"use strict";var mW=rW(),yW=AA(),dwe=Vh(),pwe=Dc(),gW=Ns(),MA=sW(),mwe=Lc(),ywe=hW(),gwe=_b(),bW=pW(),bwe=1073741824;_W.exports=function(r,t){t||(t={}),r=mwe(r,"float64"),t=gW(t,{bounds:"range bounds dataBox databox",maxDepth:"depth maxDepth maxdepth level maxLevel maxlevel levels",dtype:"type dtype format out dst output destination"});let a=MA(t.maxDepth,255),n=MA(t.bounds,pwe(r,2));n[0]===n[2]&&n[2]++,n[1]===n[3]&&n[3]++;let i=xW(r,n),o=r.length>>>1,l;t.dtype||(t.dtype="array"),typeof t.dtype=="string"?l=new(gwe(t.dtype))(o):t.dtype&&(l=t.dtype,Array.isArray(l)&&(l.length=o));for(let b=0;ba||k>bwe){for(let G=0;Gee||E>ye||F=q||Z===j)return;let fe=s[Y];j===void 0&&(j=fe.length);for(let ur=Z;ur=x&&Ue<=k&&Ye>=w&&Ye<=M&&z.push(qe)}let he=u[Y],ae=he[Z*4+0],Le=he[Z*4+1],ce=he[Z*4+2],Fe=he[Z*4+3],Re=U(he,Z+1),ge=G*.5,He=Y+1;I(V,W,ge,He,ae,Le||ce||Fe||Re),I(V,W+ge,ge,He,Le,ce||Fe||Re),I(V+ge,W,ge,He,ce,Fe||Re),I(V+ge,W+ge,ge,He,Fe,Re)}function U(V,W){let G=null,Y=0;for(;G===null;)if(G=V[W*4+Y],Y++,Y>V.length)return null;return G}return z}function m(b,T,_,x,w){let k=[];for(let M=0;M{"use strict";AW.exports=wW()});var MW=B((ize,TW)=>{TW.exports=_we;var SA={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},xwe=/([astvzqmhlc])([^astvzqmhlc]*)/ig;function _we(e){var r=[];return e.replace(xwe,function(t,a,n){var i=a.toLowerCase();for(n=Awe(n),i=="m"&&n.length>2&&(r.push([a].concat(n.splice(0,2))),i="l",a=a=="m"?"l":"L");;){if(n.length==SA[i])return n.unshift(a),r.push(n);if(n.length{kW.exports=Twe;function Twe(e){var r=0,t=0,a=0,n=0;return e.map(function(i){i=i.slice();var o=i[0],l=o.toUpperCase();if(o!=l)switch(i[0]=l,o){case"a":i[6]+=a,i[7]+=n;break;case"v":i[1]+=n;break;case"h":i[1]+=a;break;default:for(var s=1;s{"use strict";Object.defineProperty(wb,"__esModule",{value:!0});var Mwe=(function(){function e(r,t){var a=[],n=!0,i=!1,o=void 0;try{for(var l=r[Symbol.iterator](),s;!(n=(s=l.next()).done)&&(a.push(s.value),!(t&&a.length===t));n=!0);}catch(u){i=!0,o=u}finally{try{!n&&l.return&&l.return()}finally{if(i)throw o}}return a}return function(r,t){if(Array.isArray(r))return r;if(Symbol.iterator in Object(r))return e(r,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),wp=Math.PI*2,CA=function(r,t,a,n,i,o,l){var s=r.x,u=r.y;s*=t,u*=a;var f=n*s-i*u,c=i*s+n*u;return{x:f+o,y:c+l}},kwe=function(r,t){var a=t===1.5707963267948966?.551915024494:t===-1.5707963267948966?-.551915024494:1.3333333333333333*Math.tan(t/4),n=Math.cos(r),i=Math.sin(r),o=Math.cos(r+t),l=Math.sin(r+t);return[{x:n-i*a,y:i+n*a},{x:o+l*a,y:l-o*a},{x:o,y:l}]},CW=function(r,t,a,n){var i=r*n-t*a<0?-1:1,o=r*a+t*n;return o>1&&(o=1),o<-1&&(o=-1),i*Math.acos(o)},Swe=function(r,t,a,n,i,o,l,s,u,f,c,v){var d=Math.pow(i,2),p=Math.pow(o,2),m=Math.pow(c,2),y=Math.pow(v,2),b=d*p-d*y-p*m;b<0&&(b=0),b/=d*y+p*m,b=Math.sqrt(b)*(l===s?-1:1);var T=b*i/o*v,_=b*-o/i*c,x=f*T-u*_+(r+a)/2,w=u*T+f*_+(t+n)/2,k=(c-T)/i,M=(v-_)/o,C=(-c-T)/i,E=(-v-_)/o,F=CW(1,0,k,M),P=CW(k,M,C,E);return s===0&&P>0&&(P-=wp),s===1&&P<0&&(P+=wp),[x,w,F,P]},Cwe=function(r){var t=r.px,a=r.py,n=r.cx,i=r.cy,o=r.rx,l=r.ry,s=r.xAxisRotation,u=s===void 0?0:s,f=r.largeArcFlag,c=f===void 0?0:f,v=r.sweepFlag,d=v===void 0?0:v,p=[];if(o===0||l===0)return[];var m=Math.sin(u*wp/360),y=Math.cos(u*wp/360),b=y*(t-n)/2+m*(a-i)/2,T=-m*(t-n)/2+y*(a-i)/2;if(b===0&&T===0)return[];o=Math.abs(o),l=Math.abs(l);var _=Math.pow(b,2)/Math.pow(o,2)+Math.pow(T,2)/Math.pow(l,2);_>1&&(o*=Math.sqrt(_),l*=Math.sqrt(_));var x=Swe(t,a,n,i,o,l,c,d,m,y,b,T),w=Mwe(x,4),k=w[0],M=w[1],C=w[2],E=w[3],F=Math.abs(E)/(wp/4);Math.abs(1-F)<1e-7&&(F=1);var P=Math.max(Math.ceil(F),1);E/=P;for(var q=0;q{"use strict";qW.exports=Lwe;var Dwe=LW();function Lwe(e){for(var r,t=[],a=0,n=0,i=0,o=0,l=null,s=null,u=0,f=0,c=0,v=e.length;c4?(a=d[d.length-4],n=d[d.length-3]):(a=u,n=f),t.push(d)}return t}function Ab(e,r,t,a){return["C",e,r,t,a,t,a]}function EW(e,r,t,a,n,i){return["C",e/3+2/3*t,r/3+2/3*a,n/3+2/3*t,i/3+2/3*a,n,i]}});var DA=B((sze,RW)=>{"use strict";RW.exports=function(r){return typeof r!="string"?!1:(r=r.trim(),!!(/^[mzlhvcsqta]\s*[-+.0-9][^mlhvzcsqta]+/i.test(r)&&/[\dz]$/i.test(r)&&r.length>4))}});var NW=B((uze,PW)=>{"use strict";var Ewe=MW(),qwe=SW(),Fwe=FW(),Rwe=DA();PW.exports=Pwe;function Pwe(e){if(Array.isArray(e)&&e.length===1&&typeof e[0]=="string"&&(e=e[0]),typeof e=="string"){if(!Rwe(e))throw Error("String is not an SVG path.");e=Ewe(e)}if(!Array.isArray(e))throw Error("Argument should be a string or an array of path segments.");if(e=qwe(e),e=Fwe(e),!e.length)return[0,0,0,0];for(var r=[1/0,1/0,-1/0,-1/0],t=0,a=e.length;tr[2]&&(r[2]=n[i+0]),n[i+1]>r[3]&&(r[3]=n[i+1]);return r}});var OW=B((fze,IW)=>{"use strict";IW.exports=Nwe;var Ap=1e20;function Nwe(e,r){r||(r={});var t=r.cutoff==null?.25:r.cutoff,a=r.radius==null?8:r.radius,n=r.channel||0,i,o,l,s,u,f,c,v,d,p,m;if(ArrayBuffer.isView(e)||Array.isArray(e)){if(!r.width||!r.height)throw Error("For raw data width and height should be provided by options");i=r.width,o=r.height,s=e,r.stride?f=r.stride:f=Math.floor(e.length/i/o)}else window.HTMLCanvasElement&&e instanceof window.HTMLCanvasElement?(v=e,c=v.getContext("2d"),i=v.width,o=v.height,d=c.getImageData(0,0,i,o),s=d.data,f=4):window.CanvasRenderingContext2D&&e instanceof window.CanvasRenderingContext2D?(v=e.canvas,c=e,i=v.width,o=v.height,d=c.getImageData(0,0,i,o),s=d.data,f=4):window.ImageData&&e instanceof window.ImageData&&(d=e,i=e.width,o=e.height,s=d.data,f=4);if(l=Math.max(i,o),window.Uint8ClampedArray&&s instanceof window.Uint8ClampedArray||window.Uint8Array&&s instanceof window.Uint8Array)for(u=s,s=Array(i*o),p=0,m=Math.floor(u.length/f);pYW});function YW(e,r={}){if(!(0,UW.default)(e))throw Error("Invalid SVG path");let t,a;r.shape||Array.isArray(r)?[t,a]=r.shape||r:(t=LA.width=r.width||r.w||200,a=LA.height=r.height||r.h||200);let n=Math.min(t,a),i=r.stroke||0,o=r.viewbox||r.viewBox||(0,HW.default)(e),l=[t/(o[2]-o[0]),a/(o[3]-o[1])],s=Math.min(l[0]||0,l[1]||0)/2;es.fillStyle="black",es.fillRect(0,0,t,a),es.fillStyle="white",i&&(typeof i!="number"&&(i=1),es.strokeStyle=i>0?"white":"black",es.lineWidth=Math.abs(i)),es.translate(t*.5,a*.5),es.scale(s,s);let u=new Path2D(e);return es.fill(u),i&&es.stroke(u),es.setTransform(1,0,0,1,0,0),(0,GW.default)(es,{cutoff:r.cutoff!=null?r.cutoff:.5,radius:r.radius!=null?r.radius:n*.5})}var HW,UW,GW,LA,es,XW=Ja(()=>{HW=c2(NW()),UW=c2(DA()),GW=c2(OW()),LA=document.createElement("canvas"),es=LA.getContext("2d",{willReadFrequently:!0})});var QW=B((cze,KW)=>{"use strict";var jW=da(),Tb=nh(),Xh=Kt(),zwe=ys().defaultLine,WW=so().isArrayOrTypedArray,qA=Xh.normalize(zwe),$W=1;function ZW(e,r){return[e[0],e[1],e[2],e[3]*r]}function EA(e){return jW(e)||!Xh.isChannelArray(e)&&!Xh.isValid(e)?qA:Xh.normalize(e)}function JW(e){return jW(e)?e:$W}function Bwe(e,r,t){var a=e.color;a&&a._inputArray&&(a=a._inputArray);var n=WW(a),i=WW(r),o=Tb.extractOpts(e),l=[],s,u,f,c,v;if(o.colorscale!==void 0?s=Tb.makeColorScaleFuncFromTrace(e):s=EA,n?u=(p,m)=>p[m]===void 0?qA:o.colorscale===void 0?s(p[m]):Xh.normalize(s(p[m])):u=EA,i?f=function(p,m){return p[m]===void 0?$W:JW(p[m])}:f=JW,n||i)for(var d=0;d{"use strict";var kb=da(),Owe=(XW(),vr(VW)).default,{normalize:Mb,rgbaString:qc}=Kt(),Hwe=Pt(),Jh=or(),Hn=Jh.isArrayOrTypedArray,Wh=Sa(),eZ=hn(),rZ=QW().formatColor,Zh=Ti(),Uwe=f7(),RA=bb(),Tp=(xp(),vr(bp)),Gwe=(zv(),vr(Nv)).DESELECTDIM,tZ={start:1,left:1,end:-1,right:-1,middle:0,center:0,bottom:1,top:-1},Ywe=xs().appendArrayPointValue;function Vwe(e,r){var t,a={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},n=e._context.plotGlPixelRatio;if(r.visible!==!0)return a;if(Zh.hasText(r)&&(a.text=uZ(e,r),a.textSel=nZ(e,r,r.selected),a.textUnsel=nZ(e,r,r.unselected)),Zh.hasMarkers(r)&&(a.marker=NA(e,r),a.markerSel=PA(e,r,r.selected),a.markerUnsel=PA(e,r,r.unselected),!r.unselected&&Hn(r.marker.opacity))){var i=r.marker.opacity;for(a.markerUnsel.opacity=new Array(i.length),t=0;t500?"bold":"normal":e}function NA(e,r){var t=r._length,a=r.marker,n={},i,o=Hn(a.symbol),l=Hn(a.angle),s=Hn(a.color),u=Hn(a.line.color),f=Hn(a.opacity),c=Hn(a.size),v=Hn(a.line.width),d;if(o||(d=RA.isOpenSymbol(a.symbol)),o||s||u||f||l){n.symbols=new Array(t),n.angles=new Array(t),n.colors=new Array(t),n.borderColors=new Array(t);var p=a.symbol,m=a.angle,y=rZ(a,a.opacity,t),b=rZ(a.line,a.opacity,t);if(!Hn(b[0])){var T=b;for(b=Array(t),i=0;iTp.TOO_MANY_POINTS||Zh.hasMarkers(r)?"rect":"round";if(u&&r.connectgaps){var c=i[0],v=i[1];for(o=0;o1?s[o]:s[0]:s,d=Hn(u)?u.length>1?u[o]:u[0]:u,p=tZ[v],m=tZ[d],y=f?f/.8+1:0,b=-m*y-m*.5;i.offset[o]=[p*y/c,b/c]}}return i}fZ.exports={style:Vwe,markerStyle:NA,markerSelection:PA,linePositions:Wwe,errorBarPositions:Zwe,textPosition:Jwe}});var vZ=B((dze,cZ)=>{"use strict";var Sb=or();cZ.exports=function(r,t){var a=t._scene,n={count:0,dirty:!0,lineOptions:[],fillOptions:[],markerOptions:[],markerSelectedOptions:[],markerUnselectedOptions:[],errorXOptions:[],errorYOptions:[],textOptions:[],textSelectedOptions:[],textUnselectedOptions:[],selectBatch:[],unselectBatch:[]},i={fill2d:!1,scatter2d:!1,error2d:!1,line2d:!1,glText:!1,select2d:!1};return t._scene||(a=t._scene={},a.init=function(){Sb.extendFlat(a,i,n)},a.init(),a.update=function(l){var s=Sb.repeat(l,a.count);if(a.fill2d&&a.fill2d.update(s),a.scatter2d&&a.scatter2d.update(s),a.line2d&&a.line2d.update(s),a.error2d&&a.error2d.update(s.concat(s)),a.select2d&&a.select2d.update(s),a.glText)for(var u=0;u{"use strict";var jwe=kA(),jh=or(),hZ=hn(),$we=uh().findExtremes,dZ=jw(),zA=Ch(),Kwe=zA.calcMarkerSize,Qwe=zA.calcAxisExpansion,e9e=zA.setFirstScatter,r9e=Q1(),$h=Mp(),t9e=vZ(),pZ=(Wn(),vr(ri)).BADNUM,a9e=(xp(),vr(bp)).TOO_MANY_POINTS;yZ.exports=function(r,t){var a=r._fullLayout,n=t._xA=hZ.getFromId(r,t.xaxis,"x"),i=t._yA=hZ.getFromId(r,t.yaxis,"y"),o=a._plots[t.xaxis+t.yaxis],l=t._length,s=l>=a9e,u=l*2,f={},c,v=n.makeCalcdata(t,"x"),d=i.makeCalcdata(t,"y"),p=dZ(t,n,"x",v),m=dZ(t,i,"y",d),y=p.vals,b=m.vals;t._x=y,t._y=b,t.xperiodalignment&&(t._origX=v,t._xStarts=p.starts,t._xEnds=p.ends),t.yperiodalignment&&(t._origY=d,t._yStarts=m.starts,t._yEnds=m.ends);var T=new Array(u),_=new Array(l);for(c=0;c1&&jh.extendFlat(o.line,$h.linePositions(e,t,a)),o.errorX||o.errorY){var l=$h.errorBarPositions(e,t,a,n,i);o.errorX&&jh.extendFlat(o.errorX,l.x),o.errorY&&jh.extendFlat(o.errorY,l.y)}return o.text&&(jh.extendFlat(o.text,{positions:a},$h.textPosition(e,t,o.text,o.marker)),jh.extendFlat(o.textSel,{positions:a},$h.textPosition(e,t,o.text,o.markerSel)),jh.extendFlat(o.textUnsel,{positions:a},$h.textPosition(e,t,o.text,o.markerUnsel))),o}});var BA=B((mze,xZ)=>{"use strict";var bZ=or(),i9e=Kt(),o9e=(zv(),vr(Nv)).DESELECTDIM;function l9e(e){var r=e[0],t=r.trace,a=r.t,n=a._scene,i=a.index,o=n.selectBatch[i],l=n.unselectBatch[i],s=n.textOptions[i],u=n.textSelectedOptions[i]||{},f=n.textUnselectedOptions[i]||{},c=bZ.extendFlat({},s),v,d;if(o.length||l.length){var p=u.color,m=f.color,y=s.color,b=bZ.isArrayOrTypedArray(y);for(c.color=new Array(t._length),v=0;v{"use strict";var _Z=Ti(),s9e=BA().styleTextSelection;wZ.exports=function(r,t){var a=r.cd,n=r.xaxis,i=r.yaxis,o=[],l=a[0].trace,s=a[0].t,u=l._length,f=s.x,c=s.y,v=s._scene,d=s.index;if(!v)return o;var p=_Z.hasText(l),m=_Z.hasMarkers(l),y=!m&&!p;if(l.visible!==!0||y)return o;var b=[],T=[];if(t!==!1&&!t.degenerate)for(var _=0;_{"use strict";var u9e=xA();TZ.exports={moduleType:"trace",name:"scattergl",basePlotModule:ip(),categories:["gl","regl","cartesian","symbols","errorBarsOK","showLegend","scatter-like"],attributes:gb(),supplyDefaults:$X(),crossTraceDefaults:Jw(),colorbar:q5(),formatLabels:QX(),calc:gZ(),hoverPoints:u9e.hoverPoints,selectPoints:AZ(),meta:{}}});var SZ=B((bze,kZ)=>{"use strict";kZ.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 EZ=B((xze,LZ)=>{"use strict";var CZ=SZ();LZ.exports=f9e;var DZ={red:0,orange:60,yellow:120,green:180,blue:240,purple:300};function f9e(e){var r,t=[],a=1,n;if(typeof e=="string")if(e=e.toLowerCase(),CZ[e])t=CZ[e].slice(),n="rgb";else if(e==="transparent")a=0,n="rgb",t=[0,0,0];else if(/^#[A-Fa-f0-9]+$/.test(e)){var i=e.slice(1),o=i.length,l=o<=4;a=1,l?(t=[parseInt(i[0]+i[0],16),parseInt(i[1]+i[1],16),parseInt(i[2]+i[2],16)],o===4&&(a=parseInt(i[3]+i[3],16)/255)):(t=[parseInt(i[0]+i[1],16),parseInt(i[2]+i[3],16),parseInt(i[4]+i[5],16)],o===8&&(a=parseInt(i[6]+i[7],16)/255)),t[0]||(t[0]=0),t[1]||(t[1]=0),t[2]||(t[2]=0),n="rgb"}else if(r=/^((?:rgb|hs[lvb]|hwb|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms)a?)\s*\(([^\)]*)\)/.exec(e)){var s=r[1],u=s==="rgb",i=s.replace(/a$/,"");n=i;var o=i==="cmyk"?4:i==="gray"?1:3;t=r[2].trim().split(/\s*[,\/]\s*|\s+/).map(function(v,d){if(/%$/.test(v))return d===o?parseFloat(v)/100:i==="rgb"?parseFloat(v)*255/100:parseFloat(v);if(i[d]==="h"){if(/deg$/.test(v))return parseFloat(v);if(DZ[v]!==void 0)return DZ[v]}return parseFloat(v)}),s===i&&t.push(1),a=u||t[o]===void 0?1:t[o],t=t.slice(0,o)}else e.length>10&&/[0-9](?:\s|\/)/.test(e)&&(t=e.match(/([0-9]+)/g).map(function(f){return parseFloat(f)}),n=e.match(/([a-z])/ig).join("").toLowerCase());else isNaN(e)?Array.isArray(e)||e.length?(t=[e[0],e[1],e[2]],n="rgb",a=e.length===4?e[3]:1):e instanceof Object&&(e.r!=null||e.red!=null||e.R!=null?(n="rgb",t=[e.r||e.red||e.R||0,e.g||e.green||e.G||0,e.b||e.blue||e.B||0]):(n="hsl",t=[e.h||e.hue||e.H||0,e.s||e.saturation||e.S||0,e.l||e.lightness||e.L||e.b||e.brightness]),a=e.a||e.alpha||e.opacity||1,e.opacity!=null&&(a/=100)):(n="rgb",t=[e>>>16,(e&65280)>>>8,e&255]);return{space:n,values:t,alpha:a}}});var FZ=B((_ze,qZ)=>{"use strict";var c9e=EZ();qZ.exports=function(r){Array.isArray(r)&&r.raw&&(r=String.raw.apply(null,arguments));var t,a,n,i=c9e(r);if(!i.space)return[];var o=[0,0,0],l=i.space[0]==="h"?[360,100,100]:[255,255,255];return t=Array(3),t[0]=Math.min(Math.max(i.values[0],o[0]),l[0]),t[1]=Math.min(Math.max(i.values[1],o[1]),l[1]),t[2]=Math.min(Math.max(i.values[2],o[2]),l[2]),i.space[0]==="h"&&(t=v9e(t)),t.push(Math.min(Math.max(i.alpha,0),1)),t};function v9e(e){var r=e[0]/360,t=e[1]/100,a=e[2]/100,n,i,o,l,s,u=0;if(t===0)return s=a*255,[s,s,s];for(i=a<.5?a*(1+t):a+t-a*t,n=2*a-i,l=[0,0,0];u<3;)o=r+1/3*-(u-1),o<0?o++:o>1&&o--,s=6*o<1?n+(i-n)*6*o:2*o<1?i:3*o<2?n+(i-n)*(2/3-o)*6:n,l[u++]=s*255;return l}});var kp=B((wze,RZ)=>{"use strict";var h9e=FZ(),d9e=_b();RZ.exports=function(r,t){(t==="float"||!t)&&(t="array"),t==="uint"&&(t="uint8"),t==="uint_clamped"&&(t="uint8_clamped");var a=d9e(t),n=new a(4),i=t!=="uint8"&&t!=="uint8_clamped";return(!r.length||typeof r=="string")&&(r=h9e(r),r[0]/=255,r[1]/=255,r[2]/=255),p9e(r)?(n[0]=r[0],n[1]=r[1],n[2]=r[2],n[3]=r[3]!=null?r[3]:255,i&&(n[0]/=255,n[1]/=255,n[2]/=255,n[3]/=255),n):(i?(n[0]=r[0],n[1]=r[1],n[2]=r[2],n[3]=r[3]!=null?r[3]:1):(n[0]=Math.min(Math.max(Math.floor(r[0]*255),0),255),n[1]=Math.min(Math.max(Math.floor(r[1]*255),0),255),n[2]=Math.min(Math.max(Math.floor(r[2]*255),0),255),n[3]=r[3]==null?255:Math.min(Math.max(Math.floor(r[3]*255),0),255)),n)};function p9e(e){return!!(e instanceof Uint8Array||e instanceof Uint8ClampedArray||Array.isArray(e)&&(e[0]>1||e[0]===0)&&(e[1]>1||e[1]===0)&&(e[2]>1||e[2]===0)&&(!e[3]||e[3]>1))}});var NZ=B((Aze,Db)=>{"use strict";var Cb=AA();Db.exports=PZ;Db.exports.to=PZ;Db.exports.from=m9e;function PZ(e,r){r==null&&(r=!0);var t=e[0],a=e[1],n=e[2],i=e[3];i==null&&(i=r?1:255),r&&(t*=255,a*=255,n*=255,i*=255),t=Cb(t,0,255)&255,a=Cb(a,0,255)&255,n=Cb(n,0,255)&255,i=Cb(i,0,255)&255;var o=t*16777216+(a<<16)+(n<<8)+i;return o}function m9e(e,r){e=+e;var t=e>>>24,a=(e&16711680)>>>16,n=(e&65280)>>>8,i=e&255;return r===!1?[t,a,n,i]:[t/255,a/255,n/255,i/255]}});var BZ=B((Tze,zZ)=>{zZ.exports=function(e){typeof e=="string"&&(e=[e]);for(var r=[].slice.call(arguments,1),t=[],a=0;a{"use strict";IZ.exports=function(r,t,a){Array.isArray(a)||(a=[].slice.call(arguments,2));for(var n=0,i=a.length;n{"use strict";Kh.exports=Sp;Kh.exports.float32=Kh.exports.float=Sp;Kh.exports.fract32=Kh.exports.fract=y9e;var OZ=new Float32Array(1);function y9e(e,r){if(e.length){if(e instanceof Float32Array)return new Float32Array(e.length);r instanceof Float32Array||(r=Sp(e));for(var t=0,a=r.length;t{"use strict";var g9e=kp(),b9e=Dc(),x9e=NZ(),_9e=kA(),Eb=BZ(),w9e=Ns(),A9e=IA(),T9e=Lc(),qb=Lb(),M9e=Vh(),k9e=Ri;function Ri(e,r){if(!(this instanceof Ri))return new Ri(e,r);typeof e=="function"?(r||(r={}),r.regl=e):(r=e,e=null),r&&r.length&&(r.positions=r),e=r.regl;let t=e._gl,a,n=[],i={},o=[],l=[null],s=[null],u=255,f=100;this.tooManyColors=!1,a=e.texture({data:new Uint8Array(u*4),width:u,height:1,type:"uint8",format:"rgba",wrapS:"clamp",wrapT:"clamp",mag:"nearest",min:"nearest"}),Object.assign(this,{regl:e,gl:t,groups:o,markerCache:s,markerTextures:l,palette:n,paletteIds:i,paletteTexture:a,maxColors:u,maxSize:f,canvas:t.canvas}),this.update(r);let c={uniforms:{constPointSize:!!r.constPointSize,opacity:e.prop("opacity"),paletteSize:(p,m)=>[this.tooManyColors?0:u,a.height],pixelRatio:e.context("pixelRatio"),scale:e.prop("scale"),scaleFract:e.prop("scaleFract"),translate:e.prop("translate"),translateFract:e.prop("translateFract"),markerTexture:e.prop("markerTexture"),paletteTexture:a},attributes:{x:(p,m)=>m.xAttr||{buffer:m.positionBuffer,stride:8,offset:0},y:(p,m)=>m.yAttr||{buffer:m.positionBuffer,stride:8,offset:4},xFract:(p,m)=>m.xAttr?{constant:[0,0]}:{buffer:m.positionFractBuffer,stride:8,offset:0},yFract:(p,m)=>m.yAttr?{constant:[0,0]}:{buffer:m.positionFractBuffer,stride:8,offset:4},size:(p,m)=>m.size.length?{buffer:m.sizeBuffer,stride:2,offset:0}:{constant:[Math.round(m.size*255/this.maxSize)]},borderSize:(p,m)=>m.borderSize.length?{buffer:m.sizeBuffer,stride:2,offset:1}:{constant:[Math.round(m.borderSize*255/this.maxSize)]},colorId:(p,m)=>m.color.length?{buffer:m.colorBuffer,stride:this.tooManyColors?8:4,offset:0}:{constant:this.tooManyColors?n.slice(m.color*4,m.color*4+4):[m.color]},borderColorId:(p,m)=>m.borderColor.length?{buffer:m.colorBuffer,stride:this.tooManyColors?8:4,offset:this.tooManyColors?4:2}:{constant:this.tooManyColors?n.slice(m.borderColor*4,m.borderColor*4+4):[m.borderColor]},isActive:(p,m)=>m.activation===!0?{constant:[1]}:m.activation?m.activation:{constant:[0]}},blend:{enable:!0,color:[0,0,0,1],func:{srcRGB:"src alpha",dstRGB:"one minus src alpha",srcAlpha:"one minus dst alpha",dstAlpha:"one"}},scissor:{enable:!0,box:e.prop("viewport")},viewport:e.prop("viewport"),stencil:{enable:!1},depth:{enable:!1},elements:e.prop("elements"),count:e.prop("count"),offset:e.prop("offset"),primitive:"points"},v=Object.assign({},c);v.frag=Eb([`precision highp float; #define GLSLIFY 1 uniform float opacity; @@ -58,7 +58,7 @@ void main() { } } -`]),v.vert=kb([`precision highp float; +`]),v.vert=Eb([`precision highp float; #define GLSLIFY 1 attribute float x, y, xFract, yFract; @@ -126,7 +126,7 @@ void main() { fragBorderColorLevel = clamp(borderLevel - borderLevel * borderSize / size, 0., 1.); fragColorLevel = clamp(borderLevel + (1. - borderLevel) * borderSize / size, 0., 1.); } -`]),this.drawMarker=e(v);let d=Object.assign({},c);d.frag=kb([`precision highp float; +`]),this.drawMarker=e(v);let d=Object.assign({},c);d.frag=Eb([`precision highp float; #define GLSLIFY 1 varying vec4 fragColor, fragBorderColor; @@ -157,7 +157,7 @@ void main() { color.a *= alpha * opacity; gl_FragColor = color; } -`]),d.vert=kb([`precision highp float; +`]),d.vert=Eb([`precision highp float; #define GLSLIFY 1 attribute float x, y, xFract, yFract; @@ -221,8 +221,8 @@ void main() { fragBorderColor = borderColor.a == 0. || borderSize == 0. ? vec4(color.rgb, 0.) : borderColor; fragWidth = 1. / gl_PointSize; } -`]),this.drawCircle=e(d)}Ci.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};Ci.prototype.render=function(){return arguments.length&&this.update(...arguments),this.draw(),this};Ci.prototype.draw=function(){for(var e=arguments.length,r=new Array(e),t=0;t{this.drawItem(i)});return this};Ci.prototype.drawItem=function(e,r){let{groups:t}=this,a=t[e];if(typeof r=="number"&&(e=r,a=t[r],r=null),!(a&&a.count&&a.opacity))return;a.activation[0]&&this.drawCircle(this.getMarkerDrawOptions(0,a,r));let n=[];for(let i=1;i{let c=a[f];if(u===void 0)return c;u===null?u={positions:null}:typeof u=="function"?u={ondraw:u}:typeof u[0]=="number"&&(u={positions:u}),u=d9e(u,{positions:"positions data points",snap:"snap cluster lod tree",size:"sizes size radius",borderSize:"borderSizes borderSize border-size bordersize borderWidth borderWidths border-width borderwidth stroke-width strokeWidth strokewidth outline",color:"colors color fill fill-color fillColor",borderColor:"borderColors borderColor stroke stroke-color strokeColor",marker:"markers marker shape",range:"range dataBox databox",viewport:"viewport viewPort viewBox viewbox",opacity:"opacity alpha transparency",bounds:"bound bounds boundaries limits",tooManyColors:"tooManyColors palette paletteMode optimizePalette enablePalette"}),u.positions===null&&(u.positions=[]),u.tooManyColors!=null&&(this.tooManyColors=u.tooManyColors),c||(a[f]=c={id:f,scale:null,translate:null,scaleFract:null,translateFract:null,activation:[],selectionBuffer:i.buffer({data:new Uint8Array(0),usage:"stream",type:"uint8"}),sizeBuffer:i.buffer({data:new Uint8Array(0),usage:"dynamic",type:"uint8"}),colorBuffer:i.buffer({data:new Uint8Array(0),usage:"dynamic",type:"uint8"}),positionBuffer:i.buffer({data:new Uint8Array(0),usage:"dynamic",type:"float"}),positionFractBuffer:i.buffer({data:new Uint8Array(0),usage:"dynamic",type:"float"})},u=Object.assign({},Ci.defaults,u)),u.positions&&!("marker"in u)&&(u.marker=c.marker,delete c.marker),u.marker&&!("positions"in u)&&(u.positions=c.positions,delete c.positions);let v=0,d=0;if(p9e(c,u,[{snap:!0,size:(p,y)=>(p==null&&(p=Ci.defaults.size),v+=p&&p.length?1:0,p),borderSize:(p,y)=>(p==null&&(p=Ci.defaults.borderSize),v+=p&&p.length?1:0,p),opacity:parseFloat,color:(p,y)=>(p==null&&(p=Ci.defaults.color),p=this.updateColor(p),d++,p),borderColor:(p,y)=>(p==null&&(p=Ci.defaults.borderColor),p=this.updateColor(p),d++,p),bounds:(p,y,m)=>("range"in m||(m.range=null),p),positions:(p,y,m)=>{let{snap:b}=y,{positionBuffer:T,positionFractBuffer:_,selectionBuffer:x}=y;if(p.x||p.y)return p.x.length?y.xAttr={buffer:i.buffer(p.x),offset:0,stride:4,count:p.x.length}:y.xAttr={buffer:p.x.buffer,offset:p.x.offset*4||0,stride:(p.x.stride||1)*4,count:p.x.count},p.y.length?y.yAttr={buffer:i.buffer(p.y),offset:0,stride:4,count:p.y.length}:y.yAttr={buffer:p.y.buffer,offset:p.y.offset*4||0,stride:(p.y.stride||1)*4,count:p.y.count},y.count=Math.max(y.xAttr.count,y.yAttr.count),p;p=m9e(p,"float64");let w=y.count=Math.floor(p.length/2),k=y.bounds=w?c9e(p,2):null;if(!m.range&&!y.range&&(delete y.range,m.range=k),!m.marker&&!y.marker&&(delete y.marker,m.marker=null),b&&(b===!0||w>b)?y.tree=h9e(p,{bounds:k}):b&&b.length&&(y.tree=b),y.tree){let E={primitive:"points",usage:"static",data:y.tree,type:"uint32"};y.elements?y.elements(E):y.elements=i.elements(E)}var M=Sb.float32(p);T({data:M,usage:"dynamic"});var C=Sb.fract32(p,M);return _({data:C,usage:"dynamic"}),x({data:new Uint8Array(w),type:"uint8",usage:"stream"}),p}},{marker:(p,y,m)=>{let{activation:b}=y;if(b.forEach(T=>T&&T.destroy&&T.destroy()),b.length=0,!p||typeof p[0]=="number"){let T=this.addMarker(p);b[T]=!0}else{let T=[];for(let _=0,x=Math.min(p.length,y.count);_{let b=y.bounds;if(b)return p||(p=b),y.scale=[1/(p[2]-p[0]),1/(p[3]-p[1])],y.translate=[-p[0],-p[1]],y.scaleFract=Sb.fract(y.scale),y.translateFract=Sb.fract(y.translate),p},viewport:p=>y9e(p||[n.drawingBufferWidth,n.drawingBufferHeight])}]),v){let{count:p,size:y,borderSize:m,sizeBuffer:b}=c,T=new Uint8Array(p*2);if(y.length||m.length)for(let _=0;_=0)return n;let i;if(e instanceof Uint8Array||e instanceof Uint8ClampedArray)i=e;else{i=new Uint8Array(e.length);for(let l=0,s=e.length;la*4&&(this.tooManyColors=!0),this.updatePalette(t),n.length===1?n[0]:n};Ci.prototype.updatePalette=function(e){if(this.tooManyColors)return;let{maxColors:r,paletteTexture:t}=this,a=Math.ceil(e.length*.25/r);if(a>1){e=e.slice();for(let n=e.length*.25%r;n{e.sizeBuffer.destroy(),e.positionBuffer.destroy(),e.positionFractBuffer.destroy(),e.colorBuffer.destroy(),e.activation.forEach(r=>r&&r.destroy&&r.destroy()),e.selectionBuffer.destroy(),e.elements&&e.elements.destroy()}),this.groups.length=0,this.paletteTexture.destroy(),this.markerTextures.forEach(e=>e&&e.destroy&&e.destroy()),this};var b9e=function(e,r){var t=new g9e(e,r),a=t.render.bind(t);return Object.assign(a,{render:a,update:t.update.bind(t),draw:t.draw.bind(t),destroy:t.destroy.bind(t),regl:t.regl,gl:t.gl,canvas:t.gl.canvas,groups:t.groups,markers:t.markerCache,palette:t.palette}),a};PZ.exports=b9e});var ci=B((yze,zZ)=>{"use strict";var NZ=Object.getOwnPropertySymbols,x9e=Object.prototype.hasOwnProperty,_9e=Object.prototype.propertyIsEnumerable;function w9e(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function A9e(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var r={},t=0;t<10;t++)r["_"+String.fromCharCode(t)]=t;var a=Object.getOwnPropertyNames(r).map(function(i){return r[i]});if(a.join("")!=="0123456789")return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach(function(i){n[i]=i}),Object.keys(Object.assign({},n)).join("")==="abcdefghijklmnopqrst"}catch(i){return!1}}zZ.exports=A9e()?Object.assign:function(e,r){for(var t,a=w9e(e),n,i=1;i{"use strict";NA.exports=Lb;NA.exports.default=Lb;function Lb(e,r,t){t=t||2;var a=r&&r.length,n=a?r[0]*t:e.length,i=IZ(e,0,n,t,!0),o=[];if(!i||i.next===i.prev)return o;var l,s,u,f,c,v,d;if(a&&(i=C9e(e,r,i,t)),e.length>80*t){l=u=e[0],s=f=e[1];for(var p=t;pu&&(u=c),v>f&&(f=v);d=Math.max(u-l,f-s),d=d!==0?32767/d:0}return Cp(i,o,t,l,s,d,0),o}function IZ(e,r,t,a,n){var i,o;if(n===PA(e,r,t,a)>0)for(i=r;i=r;i-=a)o=BZ(i,e[i],e[i+1],o);return o&&Eb(o,o.next)&&(Lp(o),o=o.next),o}function Lc(e,r){if(!e)return e;r||(r=e);var t=e,a;do if(a=!1,!t.steiner&&(Eb(t,t.next)||Nn(t.prev,t,t.next)===0)){if(Lp(t),t=r=t.prev,t===t.next)break;a=!0}else t=t.next;while(a||t!==r);return r}function Cp(e,r,t,a,n,i,o){if(e){!o&&i&&F9e(e,a,n,i);for(var l=e,s,u;e.prev!==e.next;){if(s=e.prev,u=e.next,i?M9e(e,a,n,i):T9e(e)){r.push(s.i/t|0),r.push(e.i/t|0),r.push(u.i/t|0),Lp(e),e=u.next,l=u.next;continue}if(e=u,e===l){o?o===1?(e=k9e(Lc(e),r,t),Cp(e,r,t,a,n,i,2)):o===2&&S9e(e,r,t,a,n,i):Cp(Lc(e),r,t,a,n,i,1);break}}}}function T9e(e){var r=e.prev,t=e,a=e.next;if(Nn(r,t,a)>=0)return!1;for(var n=r.x,i=t.x,o=a.x,l=r.y,s=t.y,u=a.y,f=ni?n>o?n:o:i>o?i:o,d=l>s?l>u?l:u:s>u?s:u,p=a.next;p!==r;){if(p.x>=f&&p.x<=v&&p.y>=c&&p.y<=d&&rd(n,l,i,s,o,u,p.x,p.y)&&Nn(p.prev,p,p.next)>=0)return!1;p=p.next}return!0}function M9e(e,r,t,a){var n=e.prev,i=e,o=e.next;if(Nn(n,i,o)>=0)return!1;for(var l=n.x,s=i.x,u=o.x,f=n.y,c=i.y,v=o.y,d=ls?l>u?l:u:s>u?s:u,m=f>c?f>v?f:v:c>v?c:v,b=FA(d,p,r,t,a),T=FA(y,m,r,t,a),_=e.prevZ,x=e.nextZ;_&&_.z>=b&&x&&x.z<=T;){if(_.x>=d&&_.x<=y&&_.y>=p&&_.y<=m&&_!==n&&_!==o&&rd(l,f,s,c,u,v,_.x,_.y)&&Nn(_.prev,_,_.next)>=0||(_=_.prevZ,x.x>=d&&x.x<=y&&x.y>=p&&x.y<=m&&x!==n&&x!==o&&rd(l,f,s,c,u,v,x.x,x.y)&&Nn(x.prev,x,x.next)>=0))return!1;x=x.nextZ}for(;_&&_.z>=b;){if(_.x>=d&&_.x<=y&&_.y>=p&&_.y<=m&&_!==n&&_!==o&&rd(l,f,s,c,u,v,_.x,_.y)&&Nn(_.prev,_,_.next)>=0)return!1;_=_.prevZ}for(;x&&x.z<=T;){if(x.x>=d&&x.x<=y&&x.y>=p&&x.y<=m&&x!==n&&x!==o&&rd(l,f,s,c,u,v,x.x,x.y)&&Nn(x.prev,x,x.next)>=0)return!1;x=x.nextZ}return!0}function k9e(e,r,t){var a=e;do{var n=a.prev,i=a.next.next;!Eb(n,i)&&OZ(n,a,a.next,i)&&Dp(n,i)&&Dp(i,n)&&(r.push(n.i/t|0),r.push(a.i/t|0),r.push(i.i/t|0),Lp(a),Lp(a.next),a=e=i),a=a.next}while(a!==e);return Lc(a)}function S9e(e,r,t,a,n,i){var o=e;do{for(var l=o.next.next;l!==o.prev;){if(o.i!==l.i&&N9e(o,l)){var s=HZ(o,l);o=Lc(o,o.next),s=Lc(s,s.next),Cp(o,r,t,a,n,i,0),Cp(s,r,t,a,n,i,0);return}l=l.next}o=o.next}while(o!==e)}function C9e(e,r,t,a){var n=[],i,o,l,s,u;for(i=0,o=r.length;i=t.next.y&&t.next.y!==t.y){var l=t.x+(n-t.y)*(t.next.x-t.x)/(t.next.y-t.y);if(l<=a&&l>i&&(i=l,o=t.x=t.x&&t.x>=u&&a!==t.x&&rd(no.x||t.x===o.x&&q9e(o,t)))&&(o=t,c=v)),t=t.next;while(t!==s);return o}function q9e(e,r){return Nn(e.prev,e,r.prev)<0&&Nn(r.next,e,e.next)<0}function F9e(e,r,t,a){var n=e;do n.z===0&&(n.z=FA(n.x,n.y,r,t,a)),n.prevZ=n.prev,n.nextZ=n.next,n=n.next;while(n!==e);n.prevZ.nextZ=null,n.prevZ=null,R9e(n)}function R9e(e){var r,t,a,n,i,o,l,s,u=1;do{for(t=e,e=null,i=null,o=0;t;){for(o++,a=t,l=0,r=0;r0||s>0&&a;)l!==0&&(s===0||!a||t.z<=a.z)?(n=t,t=t.nextZ,l--):(n=a,a=a.nextZ,s--),i?i.nextZ=n:e=n,n.prevZ=i,i=n;t=a}i.nextZ=null,u*=2}while(o>1);return e}function FA(e,r,t,a,n){return e=(e-t)*n|0,r=(r-a)*n|0,e=(e|e<<8)&16711935,e=(e|e<<4)&252645135,e=(e|e<<2)&858993459,e=(e|e<<1)&1431655765,r=(r|r<<8)&16711935,r=(r|r<<4)&252645135,r=(r|r<<2)&858993459,r=(r|r<<1)&1431655765,e|r<<1}function P9e(e){var r=e,t=e;do(r.x=(e-o)*(i-l)&&(e-o)*(a-l)>=(t-o)*(r-l)&&(t-o)*(i-l)>=(n-o)*(a-l)}function N9e(e,r){return e.next.i!==r.i&&e.prev.i!==r.i&&!z9e(e,r)&&(Dp(e,r)&&Dp(r,e)&&B9e(e,r)&&(Nn(e.prev,e,r.prev)||Nn(e,r.prev,r))||Eb(e,r)&&Nn(e.prev,e,e.next)>0&&Nn(r.prev,r,r.next)>0)}function Nn(e,r,t){return(r.y-e.y)*(t.x-r.x)-(r.x-e.x)*(t.y-r.y)}function Eb(e,r){return e.x===r.x&&e.y===r.y}function OZ(e,r,t,a){var n=Db(Nn(e,r,t)),i=Db(Nn(e,r,a)),o=Db(Nn(t,a,e)),l=Db(Nn(t,a,r));return!!(n!==i&&o!==l||n===0&&Cb(e,t,r)||i===0&&Cb(e,a,r)||o===0&&Cb(t,e,a)||l===0&&Cb(t,r,a))}function Cb(e,r,t){return r.x<=Math.max(e.x,t.x)&&r.x>=Math.min(e.x,t.x)&&r.y<=Math.max(e.y,t.y)&&r.y>=Math.min(e.y,t.y)}function Db(e){return e>0?1:e<0?-1:0}function z9e(e,r){var t=e;do{if(t.i!==e.i&&t.next.i!==e.i&&t.i!==r.i&&t.next.i!==r.i&&OZ(t,t.next,e,r))return!0;t=t.next}while(t!==e);return!1}function Dp(e,r){return Nn(e.prev,e,e.next)<0?Nn(e,r,e.next)>=0&&Nn(e,e.prev,r)>=0:Nn(e,r,e.prev)<0||Nn(e,e.next,r)<0}function B9e(e,r){var t=e,a=!1,n=(e.x+r.x)/2,i=(e.y+r.y)/2;do t.y>i!=t.next.y>i&&t.next.y!==t.y&&n<(t.next.x-t.x)*(i-t.y)/(t.next.y-t.y)+t.x&&(a=!a),t=t.next;while(t!==e);return a}function HZ(e,r){var t=new RA(e.i,e.x,e.y),a=new RA(r.i,r.x,r.y),n=e.next,i=r.prev;return e.next=r,r.prev=e,t.next=n,n.prev=t,a.next=t,t.prev=a,i.next=a,a.prev=i,a}function BZ(e,r,t,a){var n=new RA(e,r,t);return a?(n.next=a.next,n.prev=a,a.next.prev=n,a.next=n):(n.prev=n,n.next=n),n}function Lp(e){e.next.prev=e.prev,e.prev.next=e.next,e.prevZ&&(e.prevZ.nextZ=e.nextZ),e.nextZ&&(e.nextZ.prevZ=e.prevZ)}function RA(e,r,t){this.i=e,this.x=r,this.y=t,this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1}Lb.deviation=function(e,r,t,a){var n=r&&r.length,i=n?r[0]*t:e.length,o=Math.abs(PA(e,0,i,t));if(n)for(var l=0,s=r.length;l0&&(a+=e[n-1].length,t.holes.push(a))}return t}});var YZ=B((bze,GZ)=>{"use strict";var I9e=Sc();GZ.exports=O9e;function O9e(e,r,t){if(!e||e.length==null)throw Error("Argument should be an array");r==null&&(r=1),t==null&&(t=I9e(e,r));for(var a=0;a{"use strict";VZ.exports=function(){var e,r;if(typeof WeakMap!="function")return!1;try{e=new WeakMap([[r={},"one"],[{},"two"],[{},"three"]])}catch(t){return!1}return!(String(e)!=="[object WeakMap]"||typeof e.set!="function"||e.set({},1)!==e||typeof e.delete!="function"||typeof e.has!="function"||e.get(r)!=="one")}});var ZZ=B((_ze,WZ)=>{"use strict";WZ.exports=function(){}});var Uf=B((wze,JZ)=>{"use strict";var H9e=ZZ()();JZ.exports=function(e){return e!==H9e&&e!==null}});var zA=B((Aze,$Z)=>{"use strict";var U9e=Object.create,G9e=Object.getPrototypeOf,jZ={};$Z.exports=function(){var e=Object.setPrototypeOf,r=arguments[0]||U9e;return typeof e!="function"?!1:G9e(e(r(null),jZ))===jZ}});var BA=B((Tze,KZ)=>{"use strict";var Y9e=Uf(),V9e={function:!0,object:!0};KZ.exports=function(e){return Y9e(e)&&V9e[typeof e]||!1}});var wu=B((Mze,QZ)=>{"use strict";var X9e=Uf();QZ.exports=function(e){if(!X9e(e))throw new TypeError("Cannot use null or undefined");return e}});var rJ=B((kze,eJ)=>{"use strict";var IA=Object.create,qb;zA()()||(qb=OA());eJ.exports=(function(){var e,r,t;return!qb||qb.level!==1?IA:(e={},r={},t={configurable:!1,enumerable:!1,writable:!0,value:void 0},Object.getOwnPropertyNames(Object.prototype).forEach(function(a){if(a==="__proto__"){r[a]={configurable:!0,enumerable:!1,writable:!0,value:void 0};return}r[a]=t}),Object.defineProperties(e,r),Object.defineProperty(qb,"nullPolyfill",{configurable:!1,enumerable:!1,writable:!1,value:e}),function(a,n){return IA(a===null?e:a,n)})})()});var OA=B((Sze,tJ)=>{"use strict";var W9e=BA(),Z9e=wu(),J9e=Object.prototype.isPrototypeOf,j9e=Object.defineProperty,$9e={configurable:!0,enumerable:!1,writable:!0,value:void 0},Fb;Fb=function(e,r){if(Z9e(e),r===null||W9e(r))return e;throw new TypeError("Prototype must be null or an object")};tJ.exports=(function(e){var r,t;return e?(e.level===2?e.set?(t=e.set,r=function(a,n){return t.call(Fb(a,n),n),a}):r=function(a,n){return Fb(a,n).__proto__=n,a}:r=function a(n,i){var o;return Fb(n,i),o=J9e.call(a.nullPolyfill,n),o&&delete a.nullPolyfill.__proto__,i===null&&(i=a.nullPolyfill),n.__proto__=i,o&&j9e(a.nullPolyfill,"__proto__",$9e),n},Object.defineProperty(r,"level",{configurable:!1,enumerable:!1,writable:!1,value:e.level})):null})((function(){var e=Object.create(null),r={},t,a=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__");if(a){try{t=a.set,t.call(e,r)}catch(n){}if(Object.getPrototypeOf(e)===r)return{set:t,level:2}}return e.__proto__=r,Object.getPrototypeOf(e)===r?{level:2}:(e={},e.__proto__=r,Object.getPrototypeOf(e)===r?{level:1}:!1)})());rJ()});var Rb=B((Cze,aJ)=>{"use strict";aJ.exports=zA()()?Object.setPrototypeOf:OA()});var iJ=B((Dze,nJ)=>{"use strict";var K9e=BA();nJ.exports=function(e){if(!K9e(e))throw new TypeError(e+" is not an Object");return e}});var lJ=B((Lze,oJ)=>{"use strict";var Q9e=Object.create(null),eAe=Math.random;oJ.exports=function(){var e;do e=eAe().toString(36).slice(2);while(Q9e[e]);return e}});var Ec=B((Eze,sJ)=>{"use strict";var rAe=void 0;sJ.exports=function(e){return e!==rAe&&e!==null}});var HA=B((qze,uJ)=>{"use strict";var tAe=Ec(),aAe={object:!0,function:!0,undefined:!0};uJ.exports=function(e){return tAe(e)?hasOwnProperty.call(aAe,typeof e):!1}});var cJ=B((Fze,fJ)=>{"use strict";var nAe=HA();fJ.exports=function(e){if(!nAe(e))return!1;try{return e.constructor?e.constructor.prototype===e:!1}catch(r){return!1}}});var hJ=B((Rze,vJ)=>{"use strict";var iAe=cJ();vJ.exports=function(e){if(typeof e!="function"||!hasOwnProperty.call(e,"length"))return!1;try{if(typeof e.length!="number"||typeof e.call!="function"||typeof e.apply!="function")return!1}catch(r){return!1}return!iAe(e)}});var UA=B((Pze,dJ)=>{"use strict";var oAe=hJ(),lAe=/^\s*class[\s{/}]/,sAe=Function.prototype.toString;dJ.exports=function(e){return!(!oAe(e)||lAe.test(sAe.call(e)))}});var mJ=B((Nze,pJ)=>{"use strict";pJ.exports=function(){var e=Object.assign,r;return typeof e!="function"?!1:(r={foo:"raz"},e(r,{bar:"dwa"},{trzy:"trzy"}),r.foo+r.bar+r.trzy==="razdwatrzy")}});var gJ=B((zze,yJ)=>{"use strict";yJ.exports=function(){try{return Object.keys("primitive"),!0}catch(e){return!1}}});var xJ=B((Bze,bJ)=>{"use strict";var uAe=Uf(),fAe=Object.keys;bJ.exports=function(e){return fAe(uAe(e)?Object(e):e)}});var wJ=B((Ize,_J)=>{"use strict";_J.exports=gJ()()?Object.keys:xJ()});var TJ=B((Oze,AJ)=>{"use strict";var cAe=wJ(),vAe=wu(),hAe=Math.max;AJ.exports=function(e,r){var t,a,n=hAe(arguments.length,2),i;for(e=Object(vAe(e)),i=function(o){try{e[o]=r[o]}catch(l){t||(t=l)}},a=1;a{"use strict";MJ.exports=mJ()()?Object.assign:TJ()});var GA=B((Uze,kJ)=>{"use strict";var dAe=Uf(),pAe=Array.prototype.forEach,mAe=Object.create,yAe=function(e,r){var t;for(t in e)r[t]=e[t]};kJ.exports=function(e){var r=mAe(null);return pAe.call(arguments,function(t){dAe(t)&&yAe(Object(t),r)}),r}});var CJ=B((Gze,SJ)=>{"use strict";var YA="razdwatrzy";SJ.exports=function(){return typeof YA.contains!="function"?!1:YA.contains("dwa")===!0&&YA.contains("foo")===!1}});var LJ=B((Yze,DJ)=>{"use strict";var gAe=String.prototype.indexOf;DJ.exports=function(e){return gAe.call(this,e,arguments[1])>-1}});var VA=B((Vze,EJ)=>{"use strict";EJ.exports=CJ()()?String.prototype.contains:LJ()});var Au=B((Xze,PJ)=>{"use strict";var Nb=Ec(),qJ=UA(),FJ=Pb(),RJ=GA(),Ep=VA(),bAe=PJ.exports=function(e,r){var t,a,n,i,o;return arguments.length<2||typeof e!="string"?(i=r,r=e,e=null):i=arguments[2],Nb(e)?(t=Ep.call(e,"c"),a=Ep.call(e,"e"),n=Ep.call(e,"w")):(t=n=!0,a=!1),o={value:r,configurable:t,enumerable:a,writable:n},i?FJ(RJ(i),o):o};bAe.gs=function(e,r,t){var a,n,i,o;return typeof e!="string"?(i=t,t=r,r=e,e=null):i=arguments[3],Nb(r)?qJ(r)?Nb(t)?qJ(t)||(i=t,t=void 0):t=void 0:(i=r,r=t=void 0):r=void 0,Nb(e)?(a=Ep.call(e,"c"),n=Ep.call(e,"e")):(a=!0,n=!1),o={get:r,set:t,configurable:a,enumerable:n},i?FJ(RJ(i),o):o}});var qp=B((Wze,zJ)=>{"use strict";var NJ=Object.prototype.toString,xAe=NJ.call((function(){return arguments})());zJ.exports=function(e){return NJ.call(e)===xAe}});var Fp=B((Zze,IJ)=>{"use strict";var BJ=Object.prototype.toString,_Ae=BJ.call("");IJ.exports=function(e){return typeof e=="string"||e&&typeof e=="object"&&(e instanceof String||BJ.call(e)===_Ae)||!1}});var HJ=B((Jze,OJ)=>{"use strict";OJ.exports=function(){return typeof globalThis!="object"||!globalThis?!1:globalThis.Array===Array}});var YJ=B((jze,GJ)=>{var UJ=function(){if(typeof self=="object"&&self)return self;if(typeof window=="object"&&window)return window;throw new Error("Unable to resolve global `this`")};GJ.exports=(function(){if(this)return this;try{Object.defineProperty(Object.prototype,"__global__",{get:function(){return this},configurable:!0})}catch(e){return UJ()}try{return __global__||UJ()}finally{delete Object.prototype.__global__}})()});var Rp=B(($ze,VJ)=>{"use strict";VJ.exports=HJ()()?globalThis:YJ()});var WJ=B((Kze,XJ)=>{"use strict";var wAe=Rp(),XA={object:!0,symbol:!0};XJ.exports=function(){var e=wAe.Symbol,r;if(typeof e!="function")return!1;r=e("test symbol");try{String(r)}catch(t){return!1}return!(!XA[typeof e.iterator]||!XA[typeof e.toPrimitive]||!XA[typeof e.toStringTag])}});var JJ=B((Qze,ZJ)=>{"use strict";ZJ.exports=function(e){return e?typeof e=="symbol"?!0:!e.constructor||e.constructor.name!=="Symbol"?!1:e[e.constructor.toStringTag]==="Symbol":!1}});var WA=B((eBe,jJ)=>{"use strict";var AAe=JJ();jJ.exports=function(e){if(!AAe(e))throw new TypeError(e+" is not a symbol");return e}});var rj=B((rBe,ej)=>{"use strict";var $J=Au(),TAe=Object.create,KJ=Object.defineProperty,MAe=Object.prototype,QJ=TAe(null);ej.exports=function(e){for(var r=0,t,a;QJ[e+(r||"")];)++r;return e+=r||"",QJ[e]=!0,t="@@"+e,KJ(MAe,t,$J.gs(null,function(n){a||(a=!0,KJ(this,t,$J(n)),a=!1)})),t}});var aj=B((tBe,tj)=>{"use strict";var $l=Au(),Un=Rp().Symbol;tj.exports=function(e){return Object.defineProperties(e,{hasInstance:$l("",Un&&Un.hasInstance||e("hasInstance")),isConcatSpreadable:$l("",Un&&Un.isConcatSpreadable||e("isConcatSpreadable")),iterator:$l("",Un&&Un.iterator||e("iterator")),match:$l("",Un&&Un.match||e("match")),replace:$l("",Un&&Un.replace||e("replace")),search:$l("",Un&&Un.search||e("search")),species:$l("",Un&&Un.species||e("species")),split:$l("",Un&&Un.split||e("split")),toPrimitive:$l("",Un&&Un.toPrimitive||e("toPrimitive")),toStringTag:$l("",Un&&Un.toStringTag||e("toStringTag")),unscopables:$l("",Un&&Un.unscopables||e("unscopables"))})}});var oj=B((aBe,ij)=>{"use strict";var nj=Au(),kAe=WA(),Pp=Object.create(null);ij.exports=function(e){return Object.defineProperties(e,{for:nj(function(r){return Pp[r]?Pp[r]:Pp[r]=e(String(r))}),keyFor:nj(function(r){var t;kAe(r);for(t in Pp)if(Pp[t]===r)return t})})}});var uj=B((nBe,sj)=>{"use strict";var qs=Au(),ZA=WA(),zb=Rp().Symbol,SAe=rj(),CAe=aj(),DAe=oj(),LAe=Object.create,JA=Object.defineProperties,Bb=Object.defineProperty,Ki,td,lj;if(typeof zb=="function")try{String(zb()),lj=!0}catch(e){}else zb=null;td=function(r){if(this instanceof td)throw new TypeError("Symbol is not a constructor");return Ki(r)};sj.exports=Ki=function e(r){var t;if(this instanceof e)throw new TypeError("Symbol is not a constructor");return lj?zb(r):(t=LAe(td.prototype),r=r===void 0?"":String(r),JA(t,{__description__:qs("",r),__name__:qs("",SAe(r))}))};CAe(Ki);DAe(Ki);JA(td.prototype,{constructor:qs(Ki),toString:qs("",function(){return this.__name__})});JA(Ki.prototype,{toString:qs(function(){return"Symbol ("+ZA(this).__description__+")"}),valueOf:qs(function(){return ZA(this)})});Bb(Ki.prototype,Ki.toPrimitive,qs("",function(){var e=ZA(this);return typeof e=="symbol"?e:e.toString()}));Bb(Ki.prototype,Ki.toStringTag,qs("c","Symbol"));Bb(td.prototype,Ki.toStringTag,qs("c",Ki.prototype[Ki.toStringTag]));Bb(td.prototype,Ki.toPrimitive,qs("c",Ki.prototype[Ki.toPrimitive]))});var Gf=B((iBe,fj)=>{"use strict";fj.exports=WJ()()?Rp().Symbol:uj()});var vj=B((oBe,cj)=>{"use strict";var EAe=wu();cj.exports=function(){return EAe(this).length=0,this}});var ad=B((lBe,hj)=>{"use strict";hj.exports=function(e){if(typeof e!="function")throw new TypeError(e+" is not a function");return e}});var pj=B((sBe,dj)=>{"use strict";var qAe=Ec(),FAe=HA(),RAe=Object.prototype.toString;dj.exports=function(e){if(!qAe(e))return null;if(FAe(e)){var r=e.toString;if(typeof r!="function"||r===RAe)return null}try{return""+e}catch(t){return null}}});var yj=B((uBe,mj)=>{"use strict";mj.exports=function(e){try{return e.toString()}catch(r){try{return String(e)}catch(t){return null}}}});var bj=B((fBe,gj)=>{"use strict";var PAe=yj(),NAe=/[\n\r\u2028\u2029]/g;gj.exports=function(e){var r=PAe(e);return r===null?"":(r.length>100&&(r=r.slice(0,99)+"\u2026"),r=r.replace(NAe,function(t){switch(t){case` -`:return"\\n";case"\r":return"\\r";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw new Error("Unexpected character")}}),r)}});var _j=B((cBe,xj)=>{"use strict";var zAe=pj(),BAe=bj();xj.exports=function(e,r,t){t&&t.errorMessage&&(e=zAe(t.errorMessage));var a=e.indexOf("%v"),n=a>-1?BAe(r):null;if(t&&t.name){var i=e.indexOf("%n");if(i>-1){if(a>-1){var o,l,s,u;return i>a?(o=n,s=a,l=t.name,u=i):(o=t.name,s=i,l=n,u=a),e.slice(0,s)+o+e.slice(s+2,u)+l+e.slice(u+2)}return e.slice(0,i)+t.name+e.slice(i+2)}}return a>-1?e.slice(0,a)+n+e.slice(a+2):e}});var jA=B((vBe,wj)=>{"use strict";var IAe=Ec(),OAe=_j();wj.exports=function(e,r,t){if(t&&!IAe(e)){if("default"in t)return t.default;if(t.isOptional)return null}var a=t&&t.Error||TypeError,n=new a(OAe(r,e,t));throw t&&t.errorCode&&(n.code=t.errorCode),n}});var Tj=B((hBe,Aj)=>{"use strict";var HAe=jA(),UAe=Ec();Aj.exports=function(e){if(UAe(e))return e;var r=arguments[1],t=r&&r.name?"Expected a value for %n, received %v":"Cannot use %v";return HAe(e,t,r)}});var kj=B((dBe,Mj)=>{"use strict";var GAe=jA(),YAe=UA();Mj.exports=function(e){if(YAe(e))return e;var r=arguments[1],t=r&&r.name?"Expected a plain function for %n, received %v":"%v is not a plain function";return GAe(e,t,r)}});var Cj=B((pBe,Sj)=>{"use strict";Sj.exports=function(){var e=Array.from,r,t;return typeof e!="function"?!1:(r=["raz","dwa"],t=e(r),!!(t&&t!==r&&t[1]==="dwa"))}});var Lj=B((mBe,Dj)=>{"use strict";var VAe=Object.prototype.toString,XAe=RegExp.prototype.test.bind(/^[object [A-Za-z0-9]*Function]$/);Dj.exports=function(e){return typeof e=="function"&&XAe(VAe.call(e))}});var qj=B((yBe,Ej)=>{"use strict";Ej.exports=function(){var e=Math.sign;return typeof e!="function"?!1:e(10)===1&&e(-20)===-1}});var Rj=B((gBe,Fj)=>{"use strict";Fj.exports=function(e){return e=Number(e),isNaN(e)||e===0?e:e>0?1:-1}});var Nj=B((bBe,Pj)=>{"use strict";Pj.exports=qj()()?Math.sign:Rj()});var Bj=B((xBe,zj)=>{"use strict";var WAe=Nj(),ZAe=Math.abs,JAe=Math.floor;zj.exports=function(e){return isNaN(e)?0:(e=Number(e),e===0||!isFinite(e)?e:WAe(e)*JAe(ZAe(e)))}});var Oj=B((_Be,Ij)=>{"use strict";var jAe=Bj(),$Ae=Math.max;Ij.exports=function(e){return $Ae(0,jAe(e))}});var Yj=B((wBe,Gj)=>{"use strict";var KAe=Gf().iterator,QAe=qp(),eTe=Lj(),rTe=Oj(),Hj=ad(),tTe=wu(),aTe=Uf(),nTe=Fp(),Uj=Array.isArray,$A=Function.prototype.call,qc={configurable:!0,enumerable:!0,writable:!0,value:null},KA=Object.defineProperty;Gj.exports=function(e){var r=arguments[1],t=arguments[2],a,n,i,o,l,s,u,f,c,v;if(e=Object(tTe(e)),aTe(r)&&Hj(r),!this||this===Array||!eTe(this)){if(!r){if(QAe(e))return l=e.length,l!==1?Array.apply(null,e):(o=new Array(1),o[0]=e[0],o);if(Uj(e)){for(o=new Array(l=e.length),n=0;n=55296&&s<=56319&&(v+=e[++n])),v=r?$A.call(r,t,v,i):v,a?(qc.value=v,KA(o,i,qc)):o[i]=v,++i;l=i}}if(l===void 0)for(l=rTe(e.length),a&&(o=new a(l)),n=0;n{"use strict";Vj.exports=Cj()()?Array.from:Yj()});var Zj=B((TBe,Wj)=>{"use strict";var iTe=Xj(),oTe=Pb(),lTe=wu();Wj.exports=function(e){var r=Object(lTe(e)),t=arguments[1],a=Object(arguments[2]);if(r!==e&&!t)return r;var n={};return t?iTe(t,function(i){(a.ensure||i in e)&&(n[i]=e[i])}):oTe(n,e),n}});var $j=B((MBe,jj)=>{"use strict";var sTe=ad(),uTe=wu(),fTe=Function.prototype.bind,Jj=Function.prototype.call,cTe=Object.keys,vTe=Object.prototype.propertyIsEnumerable;jj.exports=function(e,r){return function(t,a){var n,i=arguments[2],o=arguments[3];return t=Object(uTe(t)),sTe(a),n=cTe(t),o&&n.sort(typeof o=="function"?fTe.call(o,t):void 0),typeof e!="function"&&(e=n[e]),Jj.call(e,n,function(l,s){return vTe.call(t,l)?Jj.call(a,i,t[l],l,t,s):r})}}});var Qj=B((kBe,Kj)=>{"use strict";Kj.exports=$j()("forEach")});var r$=B((SBe,e$)=>{"use strict";var hTe=ad(),dTe=Qj(),pTe=Function.prototype.call;e$.exports=function(e,r){var t={},a=arguments[2];return hTe(r),dTe(e,function(n,i,o,l){t[i]=pTe.call(r,a,n,i,o,l)}),t}});var i$=B((CBe,n$)=>{"use strict";var mTe=Ec(),yTe=Tj(),t$=kj(),gTe=Zj(),bTe=GA(),xTe=r$(),_Te=Function.prototype.bind,wTe=Object.defineProperty,ATe=Object.prototype.hasOwnProperty,a$;a$=function(e,r,t){var a=yTe(r)&&t$(r.value),n;return n=gTe(r),delete n.writable,delete n.value,n.get=function(){return!t.overwriteDefinition&&ATe.call(this,e)?a:(r.value=_Te.call(a,t.resolveContext?t.resolveContext(this):this),wTe(this,e,r),this[e])},n};n$.exports=function(e){var r=bTe(arguments[1]);return mTe(r.resolveContext)&&t$(r.resolveContext),xTe(e,function(t,a){return a$(a,t,r)})}});var QA=B((DBe,u$)=>{"use strict";var TTe=vj(),MTe=Pb(),kTe=ad(),STe=wu(),ko=Au(),CTe=i$(),o$=Gf(),l$=Object.defineProperty,s$=Object.defineProperties,Np;u$.exports=Np=function(e,r){if(!(this instanceof Np))throw new TypeError("Constructor requires 'new'");s$(this,{__list__:ko("w",STe(e)),__context__:ko("w",r),__nextIndex__:ko("w",0)}),r&&(kTe(r.on),r.on("_add",this._onAdd),r.on("_delete",this._onDelete),r.on("_clear",this._onClear))};delete Np.prototype.constructor;s$(Np.prototype,MTe({_next:ko(function(){var e;if(this.__list__){if(this.__redo__&&(e=this.__redo__.shift(),e!==void 0))return e;if(this.__nextIndex__=this.__nextIndex__)){if(++this.__nextIndex__,!this.__redo__){l$(this,"__redo__",ko("c",[e]));return}this.__redo__.forEach(function(r,t){r>=e&&(this.__redo__[t]=++r)},this),this.__redo__.push(e)}}),_onDelete:ko(function(e){var r;e>=this.__nextIndex__||(--this.__nextIndex__,this.__redo__&&(r=this.__redo__.indexOf(e),r!==-1&&this.__redo__.splice(r,1),this.__redo__.forEach(function(t,a){t>e&&(this.__redo__[a]=--t)},this)))}),_onClear:ko(function(){this.__redo__&&TTe.call(this.__redo__),this.__nextIndex__=0})})));l$(Np.prototype,o$.iterator,ko(function(){return this}))});var d$=B((LBe,h$)=>{"use strict";var f$=Rb(),c$=VA(),eT=Au(),DTe=Gf(),rT=QA(),v$=Object.defineProperty,nd;nd=h$.exports=function(e,r){if(!(this instanceof nd))throw new TypeError("Constructor requires 'new'");rT.call(this,e),r?c$.call(r,"key+value")?r="key+value":c$.call(r,"key")?r="key":r="value":r="value",v$(this,"__kind__",eT("",r))};f$&&f$(nd,rT);delete nd.prototype.constructor;nd.prototype=Object.create(rT.prototype,{_resolve:eT(function(e){return this.__kind__==="value"?this.__list__[e]:this.__kind__==="key+value"?[e,this.__list__[e]]:e})});v$(nd.prototype,DTe.toStringTag,eT("c","Array Iterator"))});var g$=B((EBe,y$)=>{"use strict";var p$=Rb(),Ib=Au(),LTe=Gf(),tT=QA(),m$=Object.defineProperty,id;id=y$.exports=function(e){if(!(this instanceof id))throw new TypeError("Constructor requires 'new'");e=String(e),tT.call(this,e),m$(this,"__length__",Ib("",e.length))};p$&&p$(id,tT);delete id.prototype.constructor;id.prototype=Object.create(tT.prototype,{_next:Ib(function(){if(this.__list__){if(this.__nextIndex__=55296&&t<=56319?r+this.__list__[this.__nextIndex__++]:r)})});m$(id.prototype,LTe.toStringTag,Ib("c","String Iterator"))});var x$=B((qBe,b$)=>{"use strict";var ETe=qp(),qTe=Uf(),FTe=Fp(),RTe=Gf().iterator,PTe=Array.isArray;b$.exports=function(e){return qTe(e)?PTe(e)||FTe(e)||ETe(e)?!0:typeof e[RTe]=="function":!1}});var w$=B((FBe,_$)=>{"use strict";var NTe=x$();_$.exports=function(e){if(!NTe(e))throw new TypeError(e+" is not iterable");return e}});var aT=B((RBe,M$)=>{"use strict";var zTe=qp(),BTe=Fp(),A$=d$(),ITe=g$(),OTe=w$(),T$=Gf().iterator;M$.exports=function(e){return typeof OTe(e)[T$]=="function"?e[T$]():zTe(e)?new A$(e):BTe(e)?new ITe(e):new A$(e)}});var S$=B((PBe,k$)=>{"use strict";var HTe=qp(),UTe=ad(),GTe=Fp(),YTe=aT(),VTe=Array.isArray,nT=Function.prototype.call,XTe=Array.prototype.some;k$.exports=function(e,r){var t,a=arguments[2],n,i,o,l,s,u,f;if(VTe(e)||HTe(e)?t="array":GTe(e)?t="string":e=YTe(e),UTe(r),i=function(){o=!0},t==="array"){XTe.call(e,function(c){return nT.call(r,a,c,i),o});return}if(t==="string"){for(s=e.length,l=0;l=55296&&f<=56319&&(u+=e[++l])),nT.call(r,a,u,i),!o);++l);return}for(n=e.next();!n.done;){if(nT.call(r,a,n.value,i),o)return;n=e.next()}}});var D$=B((NBe,C$)=>{"use strict";C$.exports=(function(){return typeof WeakMap!="function"?!1:Object.prototype.toString.call(new WeakMap)==="[object WeakMap]"})()});var q$=B((zBe,E$)=>{"use strict";var WTe=Uf(),Hb=Rb(),Ob=iJ(),ZTe=wu(),JTe=lJ(),Tu=Au(),jTe=aT(),$Te=S$(),KTe=Gf().toStringTag,L$=D$(),QTe=Array.isArray,oT=Object.defineProperty,iT=Object.prototype.hasOwnProperty,eMe=Object.getPrototypeOf,Yf;E$.exports=Yf=function(){var e=arguments[0],r;if(!(this instanceof Yf))throw new TypeError("Constructor requires 'new'");return r=L$&&Hb&&WeakMap!==Yf?Hb(new WeakMap,eMe(this)):this,WTe(e)&&(QTe(e)||(e=jTe(e))),oT(r,"__weakMapData__",Tu("c","$weakMap$"+JTe())),e&&$Te(e,function(t){ZTe(t),r.set(t[0],t[1])}),r};L$&&(Hb&&Hb(Yf,WeakMap),Yf.prototype=Object.create(WeakMap.prototype,{constructor:Tu(Yf)}));Object.defineProperties(Yf.prototype,{delete:Tu(function(e){return iT.call(Ob(e),this.__weakMapData__)?(delete e[this.__weakMapData__],!0):!1}),get:Tu(function(e){if(iT.call(Ob(e),this.__weakMapData__))return e[this.__weakMapData__]}),has:Tu(function(e){return iT.call(Ob(e),this.__weakMapData__)}),set:Tu(function(e,r){return oT(Ob(e),this.__weakMapData__,Tu("c",r)),this}),toString:Tu(function(){return"[object WeakMap]"})});oT(Yf.prototype,KTe,Tu("c","WeakMap"))});var lT=B((BBe,F$)=>{"use strict";F$.exports=XZ()()?WeakMap:q$()});var P$=B((IBe,R$)=>{"use strict";R$.exports=function(e,r,t){if(typeof Array.prototype.findIndex=="function")return e.findIndex(r,t);if(typeof r!="function")throw new TypeError("predicate must be a function");var a=Object(e),n=a.length;if(n===0)return-1;for(var i=0;i{"use strict";var Ub=kp(),rMe=Sc(),uT=ci(),tMe=Es(),aMe=Cc(),N$=UZ(),nMe=YZ(),{float32:iMe,fract32:sT}=Mb(),oMe=lT(),z$=Wh(),lMe=P$(),sMe=` +`]),this.drawCircle=e(d)}Ri.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};Ri.prototype.render=function(){return arguments.length&&this.update(...arguments),this.draw(),this};Ri.prototype.draw=function(){for(var e=arguments.length,r=new Array(e),t=0;t{this.drawItem(i)});return this};Ri.prototype.drawItem=function(e,r){let{groups:t}=this,a=t[e];if(typeof r=="number"&&(e=r,a=t[r],r=null),!(a&&a.count&&a.opacity))return;a.activation[0]&&this.drawCircle(this.getMarkerDrawOptions(0,a,r));let n=[];for(let i=1;i{let c=a[f];if(u===void 0)return c;u===null?u={positions:null}:typeof u=="function"?u={ondraw:u}:typeof u[0]=="number"&&(u={positions:u}),u=w9e(u,{positions:"positions data points",snap:"snap cluster lod tree",size:"sizes size radius",borderSize:"borderSizes borderSize border-size bordersize borderWidth borderWidths border-width borderwidth stroke-width strokeWidth strokewidth outline",color:"colors color fill fill-color fillColor",borderColor:"borderColors borderColor stroke stroke-color strokeColor",marker:"markers marker shape",range:"range dataBox databox",viewport:"viewport viewPort viewBox viewbox",opacity:"opacity alpha transparency",bounds:"bound bounds boundaries limits",tooManyColors:"tooManyColors palette paletteMode optimizePalette enablePalette"}),u.positions===null&&(u.positions=[]),u.tooManyColors!=null&&(this.tooManyColors=u.tooManyColors),c||(a[f]=c={id:f,scale:null,translate:null,scaleFract:null,translateFract:null,activation:[],selectionBuffer:i.buffer({data:new Uint8Array(0),usage:"stream",type:"uint8"}),sizeBuffer:i.buffer({data:new Uint8Array(0),usage:"dynamic",type:"uint8"}),colorBuffer:i.buffer({data:new Uint8Array(0),usage:"dynamic",type:"uint8"}),positionBuffer:i.buffer({data:new Uint8Array(0),usage:"dynamic",type:"float"}),positionFractBuffer:i.buffer({data:new Uint8Array(0),usage:"dynamic",type:"float"})},u=Object.assign({},Ri.defaults,u)),u.positions&&!("marker"in u)&&(u.marker=c.marker,delete c.marker),u.marker&&!("positions"in u)&&(u.positions=c.positions,delete c.positions);let v=0,d=0;if(A9e(c,u,[{snap:!0,size:(p,m)=>(p==null&&(p=Ri.defaults.size),v+=p&&p.length?1:0,p),borderSize:(p,m)=>(p==null&&(p=Ri.defaults.borderSize),v+=p&&p.length?1:0,p),opacity:parseFloat,color:(p,m)=>(p==null&&(p=Ri.defaults.color),p=this.updateColor(p),d++,p),borderColor:(p,m)=>(p==null&&(p=Ri.defaults.borderColor),p=this.updateColor(p),d++,p),bounds:(p,m,y)=>("range"in y||(y.range=null),p),positions:(p,m,y)=>{let{snap:b}=m,{positionBuffer:T,positionFractBuffer:_,selectionBuffer:x}=m;if(p.x||p.y)return p.x.length?m.xAttr={buffer:i.buffer(p.x),offset:0,stride:4,count:p.x.length}:m.xAttr={buffer:p.x.buffer,offset:p.x.offset*4||0,stride:(p.x.stride||1)*4,count:p.x.count},p.y.length?m.yAttr={buffer:i.buffer(p.y),offset:0,stride:4,count:p.y.length}:m.yAttr={buffer:p.y.buffer,offset:p.y.offset*4||0,stride:(p.y.stride||1)*4,count:p.y.count},m.count=Math.max(m.xAttr.count,m.yAttr.count),p;p=T9e(p,"float64");let w=m.count=Math.floor(p.length/2),k=m.bounds=w?b9e(p,2):null;if(!y.range&&!m.range&&(delete m.range,y.range=k),!y.marker&&!m.marker&&(delete m.marker,y.marker=null),b&&(b===!0||w>b)?m.tree=_9e(p,{bounds:k}):b&&b.length&&(m.tree=b),m.tree){let E={primitive:"points",usage:"static",data:m.tree,type:"uint32"};m.elements?m.elements(E):m.elements=i.elements(E)}var M=qb.float32(p);T({data:M,usage:"dynamic"});var C=qb.fract32(p,M);return _({data:C,usage:"dynamic"}),x({data:new Uint8Array(w),type:"uint8",usage:"stream"}),p}},{marker:(p,m,y)=>{let{activation:b}=m;if(b.forEach(T=>T&&T.destroy&&T.destroy()),b.length=0,!p||typeof p[0]=="number"){let T=this.addMarker(p);b[T]=!0}else{let T=[];for(let _=0,x=Math.min(p.length,m.count);_{let b=m.bounds;if(b)return p||(p=b),m.scale=[1/(p[2]-p[0]),1/(p[3]-p[1])],m.translate=[-p[0],-p[1]],m.scaleFract=qb.fract(m.scale),m.translateFract=qb.fract(m.translate),p},viewport:p=>M9e(p||[n.drawingBufferWidth,n.drawingBufferHeight])}]),v){let{count:p,size:m,borderSize:y,sizeBuffer:b}=c,T=new Uint8Array(p*2);if(m.length||y.length)for(let _=0;_=0)return n;let i;if(e instanceof Uint8Array||e instanceof Uint8ClampedArray)i=e;else{i=new Uint8Array(e.length);for(let l=0,s=e.length;la*4&&(this.tooManyColors=!0),this.updatePalette(t),n.length===1?n[0]:n};Ri.prototype.updatePalette=function(e){if(this.tooManyColors)return;let{maxColors:r,paletteTexture:t}=this,a=Math.ceil(e.length*.25/r);if(a>1){e=e.slice();for(let n=e.length*.25%r;n{e.sizeBuffer.destroy(),e.positionBuffer.destroy(),e.positionFractBuffer.destroy(),e.colorBuffer.destroy(),e.activation.forEach(r=>r&&r.destroy&&r.destroy()),e.selectionBuffer.destroy(),e.elements&&e.elements.destroy()}),this.groups.length=0,this.paletteTexture.destroy(),this.markerTextures.forEach(e=>e&&e.destroy&&e.destroy()),this};var S9e=function(e,r){var t=new k9e(e,r),a=t.render.bind(t);return Object.assign(a,{render:a,update:t.update.bind(t),draw:t.draw.bind(t),destroy:t.destroy.bind(t),regl:t.regl,gl:t.gl,canvas:t.gl.canvas,groups:t.groups,markers:t.markerCache,palette:t.palette}),a};HZ.exports=S9e});var bi=B((Cze,GZ)=>{"use strict";var UZ=Object.getOwnPropertySymbols,C9e=Object.prototype.hasOwnProperty,D9e=Object.prototype.propertyIsEnumerable;function L9e(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function E9e(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var r={},t=0;t<10;t++)r["_"+String.fromCharCode(t)]=t;var a=Object.getOwnPropertyNames(r).map(function(i){return r[i]});if(a.join("")!=="0123456789")return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach(function(i){n[i]=i}),Object.keys(Object.assign({},n)).join("")==="abcdefghijklmnopqrst"}catch(i){return!1}}GZ.exports=E9e()?Object.assign:function(e,r){for(var t,a=L9e(e),n,i=1;i{"use strict";YA.exports=Pb;YA.exports.default=Pb;function Pb(e,r,t){t=t||2;var a=r&&r.length,n=a?r[0]*t:e.length,i=VZ(e,0,n,t,!0),o=[];if(!i||i.next===i.prev)return o;var l,s,u,f,c,v,d;if(a&&(i=N9e(e,r,i,t)),e.length>80*t){l=u=e[0],s=f=e[1];for(var p=t;pu&&(u=c),v>f&&(f=v);d=Math.max(u-l,f-s),d=d!==0?32767/d:0}return Cp(i,o,t,l,s,d,0),o}function VZ(e,r,t,a,n){var i,o;if(n===GA(e,r,t,a)>0)for(i=r;i=r;i-=a)o=YZ(i,e[i],e[i+1],o);return o&&Nb(o,o.next)&&(Lp(o),o=o.next),o}function Fc(e,r){if(!e)return e;r||(r=e);var t=e,a;do if(a=!1,!t.steiner&&(Nb(t,t.next)||Un(t.prev,t,t.next)===0)){if(Lp(t),t=r=t.prev,t===t.next)break;a=!0}else t=t.next;while(a||t!==r);return r}function Cp(e,r,t,a,n,i,o){if(e){!o&&i&&H9e(e,a,n,i);for(var l=e,s,u;e.prev!==e.next;){if(s=e.prev,u=e.next,i?F9e(e,a,n,i):q9e(e)){r.push(s.i/t|0),r.push(e.i/t|0),r.push(u.i/t|0),Lp(e),e=u.next,l=u.next;continue}if(e=u,e===l){o?o===1?(e=R9e(Fc(e),r,t),Cp(e,r,t,a,n,i,2)):o===2&&P9e(e,r,t,a,n,i):Cp(Fc(e),r,t,a,n,i,1);break}}}}function q9e(e){var r=e.prev,t=e,a=e.next;if(Un(r,t,a)>=0)return!1;for(var n=r.x,i=t.x,o=a.x,l=r.y,s=t.y,u=a.y,f=ni?n>o?n:o:i>o?i:o,d=l>s?l>u?l:u:s>u?s:u,p=a.next;p!==r;){if(p.x>=f&&p.x<=v&&p.y>=c&&p.y<=d&&Qh(n,l,i,s,o,u,p.x,p.y)&&Un(p.prev,p,p.next)>=0)return!1;p=p.next}return!0}function F9e(e,r,t,a){var n=e.prev,i=e,o=e.next;if(Un(n,i,o)>=0)return!1;for(var l=n.x,s=i.x,u=o.x,f=n.y,c=i.y,v=o.y,d=ls?l>u?l:u:s>u?s:u,y=f>c?f>v?f:v:c>v?c:v,b=HA(d,p,r,t,a),T=HA(m,y,r,t,a),_=e.prevZ,x=e.nextZ;_&&_.z>=b&&x&&x.z<=T;){if(_.x>=d&&_.x<=m&&_.y>=p&&_.y<=y&&_!==n&&_!==o&&Qh(l,f,s,c,u,v,_.x,_.y)&&Un(_.prev,_,_.next)>=0||(_=_.prevZ,x.x>=d&&x.x<=m&&x.y>=p&&x.y<=y&&x!==n&&x!==o&&Qh(l,f,s,c,u,v,x.x,x.y)&&Un(x.prev,x,x.next)>=0))return!1;x=x.nextZ}for(;_&&_.z>=b;){if(_.x>=d&&_.x<=m&&_.y>=p&&_.y<=y&&_!==n&&_!==o&&Qh(l,f,s,c,u,v,_.x,_.y)&&Un(_.prev,_,_.next)>=0)return!1;_=_.prevZ}for(;x&&x.z<=T;){if(x.x>=d&&x.x<=m&&x.y>=p&&x.y<=y&&x!==n&&x!==o&&Qh(l,f,s,c,u,v,x.x,x.y)&&Un(x.prev,x,x.next)>=0)return!1;x=x.nextZ}return!0}function R9e(e,r,t){var a=e;do{var n=a.prev,i=a.next.next;!Nb(n,i)&&XZ(n,a,a.next,i)&&Dp(n,i)&&Dp(i,n)&&(r.push(n.i/t|0),r.push(a.i/t|0),r.push(i.i/t|0),Lp(a),Lp(a.next),a=e=i),a=a.next}while(a!==e);return Fc(a)}function P9e(e,r,t,a,n,i){var o=e;do{for(var l=o.next.next;l!==o.prev;){if(o.i!==l.i&&Y9e(o,l)){var s=WZ(o,l);o=Fc(o,o.next),s=Fc(s,s.next),Cp(o,r,t,a,n,i,0),Cp(s,r,t,a,n,i,0);return}l=l.next}o=o.next}while(o!==e)}function N9e(e,r,t,a){var n=[],i,o,l,s,u;for(i=0,o=r.length;i=t.next.y&&t.next.y!==t.y){var l=t.x+(n-t.y)*(t.next.x-t.x)/(t.next.y-t.y);if(l<=a&&l>i&&(i=l,o=t.x=t.x&&t.x>=u&&a!==t.x&&Qh(no.x||t.x===o.x&&O9e(o,t)))&&(o=t,c=v)),t=t.next;while(t!==s);return o}function O9e(e,r){return Un(e.prev,e,r.prev)<0&&Un(r.next,e,e.next)<0}function H9e(e,r,t,a){var n=e;do n.z===0&&(n.z=HA(n.x,n.y,r,t,a)),n.prevZ=n.prev,n.nextZ=n.next,n=n.next;while(n!==e);n.prevZ.nextZ=null,n.prevZ=null,U9e(n)}function U9e(e){var r,t,a,n,i,o,l,s,u=1;do{for(t=e,e=null,i=null,o=0;t;){for(o++,a=t,l=0,r=0;r0||s>0&&a;)l!==0&&(s===0||!a||t.z<=a.z)?(n=t,t=t.nextZ,l--):(n=a,a=a.nextZ,s--),i?i.nextZ=n:e=n,n.prevZ=i,i=n;t=a}i.nextZ=null,u*=2}while(o>1);return e}function HA(e,r,t,a,n){return e=(e-t)*n|0,r=(r-a)*n|0,e=(e|e<<8)&16711935,e=(e|e<<4)&252645135,e=(e|e<<2)&858993459,e=(e|e<<1)&1431655765,r=(r|r<<8)&16711935,r=(r|r<<4)&252645135,r=(r|r<<2)&858993459,r=(r|r<<1)&1431655765,e|r<<1}function G9e(e){var r=e,t=e;do(r.x=(e-o)*(i-l)&&(e-o)*(a-l)>=(t-o)*(r-l)&&(t-o)*(i-l)>=(n-o)*(a-l)}function Y9e(e,r){return e.next.i!==r.i&&e.prev.i!==r.i&&!V9e(e,r)&&(Dp(e,r)&&Dp(r,e)&&X9e(e,r)&&(Un(e.prev,e,r.prev)||Un(e,r.prev,r))||Nb(e,r)&&Un(e.prev,e,e.next)>0&&Un(r.prev,r,r.next)>0)}function Un(e,r,t){return(r.y-e.y)*(t.x-r.x)-(r.x-e.x)*(t.y-r.y)}function Nb(e,r){return e.x===r.x&&e.y===r.y}function XZ(e,r,t,a){var n=Rb(Un(e,r,t)),i=Rb(Un(e,r,a)),o=Rb(Un(t,a,e)),l=Rb(Un(t,a,r));return!!(n!==i&&o!==l||n===0&&Fb(e,t,r)||i===0&&Fb(e,a,r)||o===0&&Fb(t,e,a)||l===0&&Fb(t,r,a))}function Fb(e,r,t){return r.x<=Math.max(e.x,t.x)&&r.x>=Math.min(e.x,t.x)&&r.y<=Math.max(e.y,t.y)&&r.y>=Math.min(e.y,t.y)}function Rb(e){return e>0?1:e<0?-1:0}function V9e(e,r){var t=e;do{if(t.i!==e.i&&t.next.i!==e.i&&t.i!==r.i&&t.next.i!==r.i&&XZ(t,t.next,e,r))return!0;t=t.next}while(t!==e);return!1}function Dp(e,r){return Un(e.prev,e,e.next)<0?Un(e,r,e.next)>=0&&Un(e,e.prev,r)>=0:Un(e,r,e.prev)<0||Un(e,e.next,r)<0}function X9e(e,r){var t=e,a=!1,n=(e.x+r.x)/2,i=(e.y+r.y)/2;do t.y>i!=t.next.y>i&&t.next.y!==t.y&&n<(t.next.x-t.x)*(i-t.y)/(t.next.y-t.y)+t.x&&(a=!a),t=t.next;while(t!==e);return a}function WZ(e,r){var t=new UA(e.i,e.x,e.y),a=new UA(r.i,r.x,r.y),n=e.next,i=r.prev;return e.next=r,r.prev=e,t.next=n,n.prev=t,a.next=t,t.prev=a,i.next=a,a.prev=i,a}function YZ(e,r,t,a){var n=new UA(e,r,t);return a?(n.next=a.next,n.prev=a,a.next.prev=n,a.next=n):(n.prev=n,n.next=n),n}function Lp(e){e.next.prev=e.prev,e.prev.next=e.next,e.prevZ&&(e.prevZ.nextZ=e.nextZ),e.nextZ&&(e.nextZ.prevZ=e.prevZ)}function UA(e,r,t){this.i=e,this.x=r,this.y=t,this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1}Pb.deviation=function(e,r,t,a){var n=r&&r.length,i=n?r[0]*t:e.length,o=Math.abs(GA(e,0,i,t));if(n)for(var l=0,s=r.length;l0&&(a+=e[n-1].length,t.holes.push(a))}return t}});var jZ=B((Lze,JZ)=>{"use strict";var W9e=Dc();JZ.exports=Z9e;function Z9e(e,r,t){if(!e||e.length==null)throw Error("Argument should be an array");r==null&&(r=1),t==null&&(t=W9e(e,r));for(var a=0;a{"use strict";$Z.exports=function(){var e,r;if(typeof WeakMap!="function")return!1;try{e=new WeakMap([[r={},"one"],[{},"two"],[{},"three"]])}catch(t){return!1}return!(String(e)!=="[object WeakMap]"||typeof e.set!="function"||e.set({},1)!==e||typeof e.delete!="function"||typeof e.has!="function"||e.get(r)!=="one")}});var eJ=B((qze,QZ)=>{"use strict";QZ.exports=function(){}});var Wf=B((Fze,rJ)=>{"use strict";var J9e=eJ()();rJ.exports=function(e){return e!==J9e&&e!==null}});var VA=B((Rze,aJ)=>{"use strict";var j9e=Object.create,$9e=Object.getPrototypeOf,tJ={};aJ.exports=function(){var e=Object.setPrototypeOf,r=arguments[0]||j9e;return typeof e!="function"?!1:$9e(e(r(null),tJ))===tJ}});var XA=B((Pze,nJ)=>{"use strict";var K9e=Wf(),Q9e={function:!0,object:!0};nJ.exports=function(e){return K9e(e)&&Q9e[typeof e]||!1}});var Su=B((Nze,iJ)=>{"use strict";var eAe=Wf();iJ.exports=function(e){if(!eAe(e))throw new TypeError("Cannot use null or undefined");return e}});var lJ=B((zze,oJ)=>{"use strict";var WA=Object.create,zb;VA()()||(zb=ZA());oJ.exports=(function(){var e,r,t;return!zb||zb.level!==1?WA:(e={},r={},t={configurable:!1,enumerable:!1,writable:!0,value:void 0},Object.getOwnPropertyNames(Object.prototype).forEach(function(a){if(a==="__proto__"){r[a]={configurable:!0,enumerable:!1,writable:!0,value:void 0};return}r[a]=t}),Object.defineProperties(e,r),Object.defineProperty(zb,"nullPolyfill",{configurable:!1,enumerable:!1,writable:!1,value:e}),function(a,n){return WA(a===null?e:a,n)})})()});var ZA=B((Bze,sJ)=>{"use strict";var rAe=XA(),tAe=Su(),aAe=Object.prototype.isPrototypeOf,nAe=Object.defineProperty,iAe={configurable:!0,enumerable:!1,writable:!0,value:void 0},Bb;Bb=function(e,r){if(tAe(e),r===null||rAe(r))return e;throw new TypeError("Prototype must be null or an object")};sJ.exports=(function(e){var r,t;return e?(e.level===2?e.set?(t=e.set,r=function(a,n){return t.call(Bb(a,n),n),a}):r=function(a,n){return Bb(a,n).__proto__=n,a}:r=function a(n,i){var o;return Bb(n,i),o=aAe.call(a.nullPolyfill,n),o&&delete a.nullPolyfill.__proto__,i===null&&(i=a.nullPolyfill),n.__proto__=i,o&&nAe(a.nullPolyfill,"__proto__",iAe),n},Object.defineProperty(r,"level",{configurable:!1,enumerable:!1,writable:!1,value:e.level})):null})((function(){var e=Object.create(null),r={},t,a=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__");if(a){try{t=a.set,t.call(e,r)}catch(n){}if(Object.getPrototypeOf(e)===r)return{set:t,level:2}}return e.__proto__=r,Object.getPrototypeOf(e)===r?{level:2}:(e={},e.__proto__=r,Object.getPrototypeOf(e)===r?{level:1}:!1)})());lJ()});var Ib=B((Ize,uJ)=>{"use strict";uJ.exports=VA()()?Object.setPrototypeOf:ZA()});var cJ=B((Oze,fJ)=>{"use strict";var oAe=XA();fJ.exports=function(e){if(!oAe(e))throw new TypeError(e+" is not an Object");return e}});var hJ=B((Hze,vJ)=>{"use strict";var lAe=Object.create(null),sAe=Math.random;vJ.exports=function(){var e;do e=sAe().toString(36).slice(2);while(lAe[e]);return e}});var Rc=B((Uze,dJ)=>{"use strict";var uAe=void 0;dJ.exports=function(e){return e!==uAe&&e!==null}});var JA=B((Gze,pJ)=>{"use strict";var fAe=Rc(),cAe={object:!0,function:!0,undefined:!0};pJ.exports=function(e){return fAe(e)?hasOwnProperty.call(cAe,typeof e):!1}});var yJ=B((Yze,mJ)=>{"use strict";var vAe=JA();mJ.exports=function(e){if(!vAe(e))return!1;try{return e.constructor?e.constructor.prototype===e:!1}catch(r){return!1}}});var bJ=B((Vze,gJ)=>{"use strict";var hAe=yJ();gJ.exports=function(e){if(typeof e!="function"||!hasOwnProperty.call(e,"length"))return!1;try{if(typeof e.length!="number"||typeof e.call!="function"||typeof e.apply!="function")return!1}catch(r){return!1}return!hAe(e)}});var jA=B((Xze,xJ)=>{"use strict";var dAe=bJ(),pAe=/^\s*class[\s{/}]/,mAe=Function.prototype.toString;xJ.exports=function(e){return!(!dAe(e)||pAe.test(mAe.call(e)))}});var wJ=B((Wze,_J)=>{"use strict";_J.exports=function(){var e=Object.assign,r;return typeof e!="function"?!1:(r={foo:"raz"},e(r,{bar:"dwa"},{trzy:"trzy"}),r.foo+r.bar+r.trzy==="razdwatrzy")}});var TJ=B((Zze,AJ)=>{"use strict";AJ.exports=function(){try{return Object.keys("primitive"),!0}catch(e){return!1}}});var kJ=B((Jze,MJ)=>{"use strict";var yAe=Wf(),gAe=Object.keys;MJ.exports=function(e){return gAe(yAe(e)?Object(e):e)}});var CJ=B((jze,SJ)=>{"use strict";SJ.exports=TJ()()?Object.keys:kJ()});var LJ=B(($ze,DJ)=>{"use strict";var bAe=CJ(),xAe=Su(),_Ae=Math.max;DJ.exports=function(e,r){var t,a,n=_Ae(arguments.length,2),i;for(e=Object(xAe(e)),i=function(o){try{e[o]=r[o]}catch(l){t||(t=l)}},a=1;a{"use strict";EJ.exports=wJ()()?Object.assign:LJ()});var $A=B((Qze,qJ)=>{"use strict";var wAe=Wf(),AAe=Array.prototype.forEach,TAe=Object.create,MAe=function(e,r){var t;for(t in e)r[t]=e[t]};qJ.exports=function(e){var r=TAe(null);return AAe.call(arguments,function(t){wAe(t)&&MAe(Object(t),r)}),r}});var RJ=B((eBe,FJ)=>{"use strict";var KA="razdwatrzy";FJ.exports=function(){return typeof KA.contains!="function"?!1:KA.contains("dwa")===!0&&KA.contains("foo")===!1}});var NJ=B((rBe,PJ)=>{"use strict";var kAe=String.prototype.indexOf;PJ.exports=function(e){return kAe.call(this,e,arguments[1])>-1}});var QA=B((tBe,zJ)=>{"use strict";zJ.exports=RJ()()?String.prototype.contains:NJ()});var Cu=B((aBe,HJ)=>{"use strict";var Hb=Rc(),BJ=jA(),IJ=Ob(),OJ=$A(),Ep=QA(),SAe=HJ.exports=function(e,r){var t,a,n,i,o;return arguments.length<2||typeof e!="string"?(i=r,r=e,e=null):i=arguments[2],Hb(e)?(t=Ep.call(e,"c"),a=Ep.call(e,"e"),n=Ep.call(e,"w")):(t=n=!0,a=!1),o={value:r,configurable:t,enumerable:a,writable:n},i?IJ(OJ(i),o):o};SAe.gs=function(e,r,t){var a,n,i,o;return typeof e!="string"?(i=t,t=r,r=e,e=null):i=arguments[3],Hb(r)?BJ(r)?Hb(t)?BJ(t)||(i=t,t=void 0):t=void 0:(i=r,r=t=void 0):r=void 0,Hb(e)?(a=Ep.call(e,"c"),n=Ep.call(e,"e")):(a=!0,n=!1),o={get:r,set:t,configurable:a,enumerable:n},i?IJ(OJ(i),o):o}});var qp=B((nBe,GJ)=>{"use strict";var UJ=Object.prototype.toString,CAe=UJ.call((function(){return arguments})());GJ.exports=function(e){return UJ.call(e)===CAe}});var Fp=B((iBe,VJ)=>{"use strict";var YJ=Object.prototype.toString,DAe=YJ.call("");VJ.exports=function(e){return typeof e=="string"||e&&typeof e=="object"&&(e instanceof String||YJ.call(e)===DAe)||!1}});var WJ=B((oBe,XJ)=>{"use strict";XJ.exports=function(){return typeof globalThis!="object"||!globalThis?!1:globalThis.Array===Array}});var jJ=B((lBe,JJ)=>{var ZJ=function(){if(typeof self=="object"&&self)return self;if(typeof window=="object"&&window)return window;throw new Error("Unable to resolve global `this`")};JJ.exports=(function(){if(this)return this;try{Object.defineProperty(Object.prototype,"__global__",{get:function(){return this},configurable:!0})}catch(e){return ZJ()}try{return __global__||ZJ()}finally{delete Object.prototype.__global__}})()});var Rp=B((sBe,$J)=>{"use strict";$J.exports=WJ()()?globalThis:jJ()});var QJ=B((uBe,KJ)=>{"use strict";var LAe=Rp(),eT={object:!0,symbol:!0};KJ.exports=function(){var e=LAe.Symbol,r;if(typeof e!="function")return!1;r=e("test symbol");try{String(r)}catch(t){return!1}return!(!eT[typeof e.iterator]||!eT[typeof e.toPrimitive]||!eT[typeof e.toStringTag])}});var rj=B((fBe,ej)=>{"use strict";ej.exports=function(e){return e?typeof e=="symbol"?!0:!e.constructor||e.constructor.name!=="Symbol"?!1:e[e.constructor.toStringTag]==="Symbol":!1}});var rT=B((cBe,tj)=>{"use strict";var EAe=rj();tj.exports=function(e){if(!EAe(e))throw new TypeError(e+" is not a symbol");return e}});var lj=B((vBe,oj)=>{"use strict";var aj=Cu(),qAe=Object.create,nj=Object.defineProperty,FAe=Object.prototype,ij=qAe(null);oj.exports=function(e){for(var r=0,t,a;ij[e+(r||"")];)++r;return e+=r||"",ij[e]=!0,t="@@"+e,nj(FAe,t,aj.gs(null,function(n){a||(a=!0,nj(this,t,aj(n)),a=!1)})),t}});var uj=B((hBe,sj)=>{"use strict";var rs=Cu(),Jn=Rp().Symbol;sj.exports=function(e){return Object.defineProperties(e,{hasInstance:rs("",Jn&&Jn.hasInstance||e("hasInstance")),isConcatSpreadable:rs("",Jn&&Jn.isConcatSpreadable||e("isConcatSpreadable")),iterator:rs("",Jn&&Jn.iterator||e("iterator")),match:rs("",Jn&&Jn.match||e("match")),replace:rs("",Jn&&Jn.replace||e("replace")),search:rs("",Jn&&Jn.search||e("search")),species:rs("",Jn&&Jn.species||e("species")),split:rs("",Jn&&Jn.split||e("split")),toPrimitive:rs("",Jn&&Jn.toPrimitive||e("toPrimitive")),toStringTag:rs("",Jn&&Jn.toStringTag||e("toStringTag")),unscopables:rs("",Jn&&Jn.unscopables||e("unscopables"))})}});var vj=B((dBe,cj)=>{"use strict";var fj=Cu(),RAe=rT(),Pp=Object.create(null);cj.exports=function(e){return Object.defineProperties(e,{for:fj(function(r){return Pp[r]?Pp[r]:Pp[r]=e(String(r))}),keyFor:fj(function(r){var t;RAe(r);for(t in Pp)if(Pp[t]===r)return t})})}});var pj=B((pBe,dj)=>{"use strict";var zs=Cu(),tT=rT(),Ub=Rp().Symbol,PAe=lj(),NAe=uj(),zAe=vj(),BAe=Object.create,aT=Object.defineProperties,Gb=Object.defineProperty,ao,ed,hj;if(typeof Ub=="function")try{String(Ub()),hj=!0}catch(e){}else Ub=null;ed=function(r){if(this instanceof ed)throw new TypeError("Symbol is not a constructor");return ao(r)};dj.exports=ao=function e(r){var t;if(this instanceof e)throw new TypeError("Symbol is not a constructor");return hj?Ub(r):(t=BAe(ed.prototype),r=r===void 0?"":String(r),aT(t,{__description__:zs("",r),__name__:zs("",PAe(r))}))};NAe(ao);zAe(ao);aT(ed.prototype,{constructor:zs(ao),toString:zs("",function(){return this.__name__})});aT(ao.prototype,{toString:zs(function(){return"Symbol ("+tT(this).__description__+")"}),valueOf:zs(function(){return tT(this)})});Gb(ao.prototype,ao.toPrimitive,zs("",function(){var e=tT(this);return typeof e=="symbol"?e:e.toString()}));Gb(ao.prototype,ao.toStringTag,zs("c","Symbol"));Gb(ed.prototype,ao.toStringTag,zs("c",ao.prototype[ao.toStringTag]));Gb(ed.prototype,ao.toPrimitive,zs("c",ao.prototype[ao.toPrimitive]))});var Zf=B((mBe,mj)=>{"use strict";mj.exports=QJ()()?Rp().Symbol:pj()});var gj=B((yBe,yj)=>{"use strict";var IAe=Su();yj.exports=function(){return IAe(this).length=0,this}});var rd=B((gBe,bj)=>{"use strict";bj.exports=function(e){if(typeof e!="function")throw new TypeError(e+" is not a function");return e}});var _j=B((bBe,xj)=>{"use strict";var OAe=Rc(),HAe=JA(),UAe=Object.prototype.toString;xj.exports=function(e){if(!OAe(e))return null;if(HAe(e)){var r=e.toString;if(typeof r!="function"||r===UAe)return null}try{return""+e}catch(t){return null}}});var Aj=B((xBe,wj)=>{"use strict";wj.exports=function(e){try{return e.toString()}catch(r){try{return String(e)}catch(t){return null}}}});var Mj=B((_Be,Tj)=>{"use strict";var GAe=Aj(),YAe=/[\n\r\u2028\u2029]/g;Tj.exports=function(e){var r=GAe(e);return r===null?"":(r.length>100&&(r=r.slice(0,99)+"\u2026"),r=r.replace(YAe,function(t){switch(t){case` +`:return"\\n";case"\r":return"\\r";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw new Error("Unexpected character")}}),r)}});var Sj=B((wBe,kj)=>{"use strict";var VAe=_j(),XAe=Mj();kj.exports=function(e,r,t){t&&t.errorMessage&&(e=VAe(t.errorMessage));var a=e.indexOf("%v"),n=a>-1?XAe(r):null;if(t&&t.name){var i=e.indexOf("%n");if(i>-1){if(a>-1){var o,l,s,u;return i>a?(o=n,s=a,l=t.name,u=i):(o=t.name,s=i,l=n,u=a),e.slice(0,s)+o+e.slice(s+2,u)+l+e.slice(u+2)}return e.slice(0,i)+t.name+e.slice(i+2)}}return a>-1?e.slice(0,a)+n+e.slice(a+2):e}});var nT=B((ABe,Cj)=>{"use strict";var WAe=Rc(),ZAe=Sj();Cj.exports=function(e,r,t){if(t&&!WAe(e)){if("default"in t)return t.default;if(t.isOptional)return null}var a=t&&t.Error||TypeError,n=new a(ZAe(r,e,t));throw t&&t.errorCode&&(n.code=t.errorCode),n}});var Lj=B((TBe,Dj)=>{"use strict";var JAe=nT(),jAe=Rc();Dj.exports=function(e){if(jAe(e))return e;var r=arguments[1],t=r&&r.name?"Expected a value for %n, received %v":"Cannot use %v";return JAe(e,t,r)}});var qj=B((MBe,Ej)=>{"use strict";var $Ae=nT(),KAe=jA();Ej.exports=function(e){if(KAe(e))return e;var r=arguments[1],t=r&&r.name?"Expected a plain function for %n, received %v":"%v is not a plain function";return $Ae(e,t,r)}});var Rj=B((kBe,Fj)=>{"use strict";Fj.exports=function(){var e=Array.from,r,t;return typeof e!="function"?!1:(r=["raz","dwa"],t=e(r),!!(t&&t!==r&&t[1]==="dwa"))}});var Nj=B((SBe,Pj)=>{"use strict";var QAe=Object.prototype.toString,eTe=RegExp.prototype.test.bind(/^[object [A-Za-z0-9]*Function]$/);Pj.exports=function(e){return typeof e=="function"&&eTe(QAe.call(e))}});var Bj=B((CBe,zj)=>{"use strict";zj.exports=function(){var e=Math.sign;return typeof e!="function"?!1:e(10)===1&&e(-20)===-1}});var Oj=B((DBe,Ij)=>{"use strict";Ij.exports=function(e){return e=Number(e),isNaN(e)||e===0?e:e>0?1:-1}});var Uj=B((LBe,Hj)=>{"use strict";Hj.exports=Bj()()?Math.sign:Oj()});var Yj=B((EBe,Gj)=>{"use strict";var rTe=Uj(),tTe=Math.abs,aTe=Math.floor;Gj.exports=function(e){return isNaN(e)?0:(e=Number(e),e===0||!isFinite(e)?e:rTe(e)*aTe(tTe(e)))}});var Xj=B((qBe,Vj)=>{"use strict";var nTe=Yj(),iTe=Math.max;Vj.exports=function(e){return iTe(0,nTe(e))}});var jj=B((FBe,Jj)=>{"use strict";var oTe=Zf().iterator,lTe=qp(),sTe=Nj(),uTe=Xj(),Wj=rd(),fTe=Su(),cTe=Wf(),vTe=Fp(),Zj=Array.isArray,iT=Function.prototype.call,Pc={configurable:!0,enumerable:!0,writable:!0,value:null},oT=Object.defineProperty;Jj.exports=function(e){var r=arguments[1],t=arguments[2],a,n,i,o,l,s,u,f,c,v;if(e=Object(fTe(e)),cTe(r)&&Wj(r),!this||this===Array||!sTe(this)){if(!r){if(lTe(e))return l=e.length,l!==1?Array.apply(null,e):(o=new Array(1),o[0]=e[0],o);if(Zj(e)){for(o=new Array(l=e.length),n=0;n=55296&&s<=56319&&(v+=e[++n])),v=r?iT.call(r,t,v,i):v,a?(Pc.value=v,oT(o,i,Pc)):o[i]=v,++i;l=i}}if(l===void 0)for(l=uTe(e.length),a&&(o=new a(l)),n=0;n{"use strict";$j.exports=Rj()()?Array.from:jj()});var e$=B((PBe,Qj)=>{"use strict";var hTe=Kj(),dTe=Ob(),pTe=Su();Qj.exports=function(e){var r=Object(pTe(e)),t=arguments[1],a=Object(arguments[2]);if(r!==e&&!t)return r;var n={};return t?hTe(t,function(i){(a.ensure||i in e)&&(n[i]=e[i])}):dTe(n,e),n}});var a$=B((NBe,t$)=>{"use strict";var mTe=rd(),yTe=Su(),gTe=Function.prototype.bind,r$=Function.prototype.call,bTe=Object.keys,xTe=Object.prototype.propertyIsEnumerable;t$.exports=function(e,r){return function(t,a){var n,i=arguments[2],o=arguments[3];return t=Object(yTe(t)),mTe(a),n=bTe(t),o&&n.sort(typeof o=="function"?gTe.call(o,t):void 0),typeof e!="function"&&(e=n[e]),r$.call(e,n,function(l,s){return xTe.call(t,l)?r$.call(a,i,t[l],l,t,s):r})}}});var i$=B((zBe,n$)=>{"use strict";n$.exports=a$()("forEach")});var l$=B((BBe,o$)=>{"use strict";var _Te=rd(),wTe=i$(),ATe=Function.prototype.call;o$.exports=function(e,r){var t={},a=arguments[2];return _Te(r),wTe(e,function(n,i,o,l){t[i]=ATe.call(r,a,n,i,o,l)}),t}});var c$=B((IBe,f$)=>{"use strict";var TTe=Rc(),MTe=Lj(),s$=qj(),kTe=e$(),STe=$A(),CTe=l$(),DTe=Function.prototype.bind,LTe=Object.defineProperty,ETe=Object.prototype.hasOwnProperty,u$;u$=function(e,r,t){var a=MTe(r)&&s$(r.value),n;return n=kTe(r),delete n.writable,delete n.value,n.get=function(){return!t.overwriteDefinition&&ETe.call(this,e)?a:(r.value=DTe.call(a,t.resolveContext?t.resolveContext(this):this),LTe(this,e,r),this[e])},n};f$.exports=function(e){var r=STe(arguments[1]);return TTe(r.resolveContext)&&s$(r.resolveContext),CTe(e,function(t,a){return u$(a,t,r)})}});var lT=B((OBe,p$)=>{"use strict";var qTe=gj(),FTe=Ob(),RTe=rd(),PTe=Su(),Lo=Cu(),NTe=c$(),v$=Zf(),h$=Object.defineProperty,d$=Object.defineProperties,Np;p$.exports=Np=function(e,r){if(!(this instanceof Np))throw new TypeError("Constructor requires 'new'");d$(this,{__list__:Lo("w",PTe(e)),__context__:Lo("w",r),__nextIndex__:Lo("w",0)}),r&&(RTe(r.on),r.on("_add",this._onAdd),r.on("_delete",this._onDelete),r.on("_clear",this._onClear))};delete Np.prototype.constructor;d$(Np.prototype,FTe({_next:Lo(function(){var e;if(this.__list__){if(this.__redo__&&(e=this.__redo__.shift(),e!==void 0))return e;if(this.__nextIndex__=this.__nextIndex__)){if(++this.__nextIndex__,!this.__redo__){h$(this,"__redo__",Lo("c",[e]));return}this.__redo__.forEach(function(r,t){r>=e&&(this.__redo__[t]=++r)},this),this.__redo__.push(e)}}),_onDelete:Lo(function(e){var r;e>=this.__nextIndex__||(--this.__nextIndex__,this.__redo__&&(r=this.__redo__.indexOf(e),r!==-1&&this.__redo__.splice(r,1),this.__redo__.forEach(function(t,a){t>e&&(this.__redo__[a]=--t)},this)))}),_onClear:Lo(function(){this.__redo__&&qTe.call(this.__redo__),this.__nextIndex__=0})})));h$(Np.prototype,v$.iterator,Lo(function(){return this}))});var x$=B((HBe,b$)=>{"use strict";var m$=Ib(),y$=QA(),sT=Cu(),zTe=Zf(),uT=lT(),g$=Object.defineProperty,td;td=b$.exports=function(e,r){if(!(this instanceof td))throw new TypeError("Constructor requires 'new'");uT.call(this,e),r?y$.call(r,"key+value")?r="key+value":y$.call(r,"key")?r="key":r="value":r="value",g$(this,"__kind__",sT("",r))};m$&&m$(td,uT);delete td.prototype.constructor;td.prototype=Object.create(uT.prototype,{_resolve:sT(function(e){return this.__kind__==="value"?this.__list__[e]:this.__kind__==="key+value"?[e,this.__list__[e]]:e})});g$(td.prototype,zTe.toStringTag,sT("c","Array Iterator"))});var T$=B((UBe,A$)=>{"use strict";var _$=Ib(),Yb=Cu(),BTe=Zf(),fT=lT(),w$=Object.defineProperty,ad;ad=A$.exports=function(e){if(!(this instanceof ad))throw new TypeError("Constructor requires 'new'");e=String(e),fT.call(this,e),w$(this,"__length__",Yb("",e.length))};_$&&_$(ad,fT);delete ad.prototype.constructor;ad.prototype=Object.create(fT.prototype,{_next:Yb(function(){if(this.__list__){if(this.__nextIndex__=55296&&t<=56319?r+this.__list__[this.__nextIndex__++]:r)})});w$(ad.prototype,BTe.toStringTag,Yb("c","String Iterator"))});var k$=B((GBe,M$)=>{"use strict";var ITe=qp(),OTe=Wf(),HTe=Fp(),UTe=Zf().iterator,GTe=Array.isArray;M$.exports=function(e){return OTe(e)?GTe(e)||HTe(e)||ITe(e)?!0:typeof e[UTe]=="function":!1}});var C$=B((YBe,S$)=>{"use strict";var YTe=k$();S$.exports=function(e){if(!YTe(e))throw new TypeError(e+" is not iterable");return e}});var cT=B((VBe,E$)=>{"use strict";var VTe=qp(),XTe=Fp(),D$=x$(),WTe=T$(),ZTe=C$(),L$=Zf().iterator;E$.exports=function(e){return typeof ZTe(e)[L$]=="function"?e[L$]():VTe(e)?new D$(e):XTe(e)?new WTe(e):new D$(e)}});var F$=B((XBe,q$)=>{"use strict";var JTe=qp(),jTe=rd(),$Te=Fp(),KTe=cT(),QTe=Array.isArray,vT=Function.prototype.call,eMe=Array.prototype.some;q$.exports=function(e,r){var t,a=arguments[2],n,i,o,l,s,u,f;if(QTe(e)||JTe(e)?t="array":$Te(e)?t="string":e=KTe(e),jTe(r),i=function(){o=!0},t==="array"){eMe.call(e,function(c){return vT.call(r,a,c,i),o});return}if(t==="string"){for(s=e.length,l=0;l=55296&&f<=56319&&(u+=e[++l])),vT.call(r,a,u,i),!o);++l);return}for(n=e.next();!n.done;){if(vT.call(r,a,n.value,i),o)return;n=e.next()}}});var P$=B((WBe,R$)=>{"use strict";R$.exports=(function(){return typeof WeakMap!="function"?!1:Object.prototype.toString.call(new WeakMap)==="[object WeakMap]"})()});var B$=B((ZBe,z$)=>{"use strict";var rMe=Wf(),Xb=Ib(),Vb=cJ(),tMe=Su(),aMe=hJ(),Du=Cu(),nMe=cT(),iMe=F$(),oMe=Zf().toStringTag,N$=P$(),lMe=Array.isArray,dT=Object.defineProperty,hT=Object.prototype.hasOwnProperty,sMe=Object.getPrototypeOf,Jf;z$.exports=Jf=function(){var e=arguments[0],r;if(!(this instanceof Jf))throw new TypeError("Constructor requires 'new'");return r=N$&&Xb&&WeakMap!==Jf?Xb(new WeakMap,sMe(this)):this,rMe(e)&&(lMe(e)||(e=nMe(e))),dT(r,"__weakMapData__",Du("c","$weakMap$"+aMe())),e&&iMe(e,function(t){tMe(t),r.set(t[0],t[1])}),r};N$&&(Xb&&Xb(Jf,WeakMap),Jf.prototype=Object.create(WeakMap.prototype,{constructor:Du(Jf)}));Object.defineProperties(Jf.prototype,{delete:Du(function(e){return hT.call(Vb(e),this.__weakMapData__)?(delete e[this.__weakMapData__],!0):!1}),get:Du(function(e){if(hT.call(Vb(e),this.__weakMapData__))return e[this.__weakMapData__]}),has:Du(function(e){return hT.call(Vb(e),this.__weakMapData__)}),set:Du(function(e,r){return dT(Vb(e),this.__weakMapData__,Du("c",r)),this}),toString:Du(function(){return"[object WeakMap]"})});dT(Jf.prototype,oMe,Du("c","WeakMap"))});var pT=B((JBe,I$)=>{"use strict";I$.exports=KZ()()?WeakMap:B$()});var H$=B((jBe,O$)=>{"use strict";O$.exports=function(e,r,t){if(typeof Array.prototype.findIndex=="function")return e.findIndex(r,t);if(typeof r!="function")throw new TypeError("predicate must be a function");var a=Object(e),n=a.length;if(n===0)return-1;for(var i=0;i{"use strict";var Wb=kp(),uMe=Dc(),yT=bi(),fMe=Ns(),cMe=Lc(),U$=ZZ(),vMe=jZ(),{float32:hMe,fract32:mT}=Lb(),dMe=pT(),G$=Vh(),pMe=H$(),mMe=` precision highp float; attribute vec2 aCoord, bCoord, aCoordFract, bCoordFract; @@ -261,7 +261,7 @@ void main() { fragColor = color / 255.; } -`,uMe=` +`,yMe=` precision highp float; uniform float dashLength, pixelRatio, thickness, opacity, id; @@ -279,7 +279,7 @@ void main() { gl_FragColor = fragColor; gl_FragColor.a *= alpha * opacity * dash; } -`,fMe=` +`,gMe=` precision highp float; attribute vec2 position, positionFract; @@ -307,14 +307,14 @@ void main() { fragColor = color / 255.; fragColor.a *= opacity; } -`,cMe=` +`,bMe=` precision highp float; varying vec4 fragColor; void main() { gl_FragColor = fragColor; } -`,vMe=` +`,xMe=` precision highp float; attribute vec2 aCoord, bCoord, nextCoord, prevCoord; @@ -518,7 +518,7 @@ void main() { } } } -`,hMe=` +`,_Me=` precision highp float; uniform float dashLength, pixelRatio, thickness, opacity, id, miterMode; @@ -598,7 +598,7 @@ void main() { gl_FragColor = fragColor; gl_FragColor.a *= alpha * opacity * dash; } -`;B$.exports=Va;function Va(e,r){if(!(this instanceof Va))return new Va(e,r);if(typeof e=="function"?(r||(r={}),r.regl=e):r=e,r.length&&(r.positions=r),e=r.regl,!e.hasExtension("ANGLE_instanced_arrays"))throw Error("regl-error2d: `ANGLE_instanced_arrays` extension should be enabled");this.gl=e._gl,this.regl=e,this.passes=[],this.shaders=Va.shaders.has(e)?Va.shaders.get(e):Va.shaders.set(e,Va.createShaders(e)).get(e),this.update(r)}Va.dashMult=2;Va.maxPatternLength=256;Va.precisionThreshold=3e6;Va.maxPoints=1e4;Va.maxLines=2048;Va.shaders=new oMe;Va.createShaders=function(e){let r=e.buffer({usage:"static",type:"float",data:[0,1,0,0,1,1,1,0]}),t={primitive:"triangle strip",instances:e.prop("count"),count:4,offset:0,uniforms:{miterMode:(o,l)=>l.join==="round"?2:1,miterLimit:e.prop("miterLimit"),scale:e.prop("scale"),scaleFract:e.prop("scaleFract"),translateFract:e.prop("translateFract"),translate:e.prop("translate"),thickness:e.prop("thickness"),dashTexture:e.prop("dashTexture"),opacity:e.prop("opacity"),pixelRatio:e.context("pixelRatio"),id:e.prop("id"),dashLength:e.prop("dashLength"),viewport:(o,l)=>[l.viewport.x,l.viewport.y,o.viewportWidth,o.viewportHeight],depth:e.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:(o,l)=>!l.overlay},stencil:{enable:!1},scissor:{enable:!0,box:e.prop("viewport")},viewport:e.prop("viewport")},a=e(uT({vert:sMe,frag:uMe,attributes:{lineEnd:{buffer:r,divisor:0,stride:8,offset:0},lineTop:{buffer:r,divisor:0,stride:8,offset:4},aCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:8,divisor:1},bCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:16,divisor:1},aCoordFract:{buffer:e.prop("positionFractBuffer"),stride:8,offset:8,divisor:1},bCoordFract:{buffer:e.prop("positionFractBuffer"),stride:8,offset:16,divisor:1},color:{buffer:e.prop("colorBuffer"),stride:4,offset:0,divisor:1}}},t)),n;try{n=e(uT({cull:{enable:!0,face:"back"},vert:vMe,frag:hMe,attributes:{lineEnd:{buffer:r,divisor:0,stride:8,offset:0},lineTop:{buffer:r,divisor:0,stride:8,offset:4},aColor:{buffer:e.prop("colorBuffer"),stride:4,offset:0,divisor:1},bColor:{buffer:e.prop("colorBuffer"),stride:4,offset:4,divisor:1},prevCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:0,divisor:1},aCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:8,divisor:1},bCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:16,divisor:1},nextCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:24,divisor:1}}},t))}catch(o){n=a}return{fill:e({primitive:"triangle",elements:(o,l)=>l.triangles,offset:0,vert:fMe,frag:cMe,uniforms:{scale:e.prop("scale"),color:e.prop("fill"),scaleFract:e.prop("scaleFract"),translateFract:e.prop("translateFract"),translate:e.prop("translate"),opacity:e.prop("opacity"),pixelRatio:e.context("pixelRatio"),id:e.prop("id"),viewport:(o,l)=>[l.viewport.x,l.viewport.y,o.viewportWidth,o.viewportHeight]},attributes:{position:{buffer:e.prop("positionBuffer"),stride:8,offset:8},positionFract:{buffer:e.prop("positionFractBuffer"),stride:8,offset:8}},blend:t.blend,depth:{enable:!1},scissor:t.scissor,stencil:t.stencil,viewport:t.viewport}),rect:a,miter:n}};Va.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};Va.prototype.render=function(...e){e.length&&this.update(...e),this.draw()};Va.prototype.draw=function(...e){return(e.length?e:this.passes).forEach((r,t)=>{if(r&&Array.isArray(r))return this.draw(...r);typeof r=="number"&&(r=this.passes[r]),r&&r.count>1&&r.opacity&&(this.regl._refresh(),r.fill&&r.triangles&&r.triangles.length>2&&this.shaders.fill(r),r.thickness&&(r.scale[0]*r.viewport.width>Va.precisionThreshold||r.scale[1]*r.viewport.height>Va.precisionThreshold?this.shaders.rect(r):r.join==="rect"||!r.join&&(r.thickness<=2||r.count>=Va.maxPoints)?this.shaders.rect(r):this.shaders.miter(r)))}),this};Va.prototype.update=function(e){if(!e)return;e.length!=null?typeof e[0]=="number"&&(e=[{positions:e}]):Array.isArray(e)||(e=[e]);let{regl:r,gl:t}=this;if(e.forEach((n,i)=>{let o=this.passes[i];if(n!==void 0){if(n===null){this.passes[i]=null;return}if(typeof n[0]=="number"&&(n={positions:n}),n=tMe(n,{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"}),o||(this.passes[i]=o={id:i,scale:null,scaleFract:null,translate:null,translateFract:null,count:0,hole:[],depth:0,dashLength:1,dashTexture:r.texture({channels:1,data:new Uint8Array([255]),width:1,height:1,mag:"linear",min:"linear"}),colorBuffer:r.buffer({usage:"dynamic",type:"uint8",data:new Uint8Array}),positionBuffer:r.buffer({usage:"dynamic",type:"float",data:new Uint8Array}),positionFractBuffer:r.buffer({usage:"dynamic",type:"float",data:new Uint8Array})},n=uT({},Va.defaults,n)),n.thickness!=null&&(o.thickness=parseFloat(n.thickness)),n.opacity!=null&&(o.opacity=parseFloat(n.opacity)),n.miterLimit!=null&&(o.miterLimit=parseFloat(n.miterLimit)),n.overlay!=null&&(o.overlay=!!n.overlay,iv[0]||(v[2]=v[0]+1e-155),v[3]>v[1]||(v[3]=v[1]+1e-155)),o.normBounds=v,o.fill){let m=[],b={},T=0;for(let _=0,x=0,w=o.count;_M-C),x=[],w=0,k=o.hole!=null?o.hole[0]:null;if(k!=null){let M=lMe(_,C=>C>=k);_=_.slice(0,M),_.push(k)}for(let M=0;M<_.length;M++){let C=m.slice(w*2,_[M]*2).concat(k?m.slice(k*2):[]),E=(o.hole||[]).map(P=>P-k+(_[M]-w)),F=N$(C,E);F=F.map(P=>P+w+(P+w<_[M]?0:k-_[M])),x.push(...F),w=_[M]+1}for(let M=0,C=x.length;M{e.colorBuffer.destroy(),e.positionBuffer.destroy(),e.dashTexture.destroy()}),this.passes.length=0,this}});var G$=B((HBe,U$)=>{"use strict";var dMe=Sc(),pMe=kp(),mMe=EA(),yMe=Es(),I$=ci(),O$=Cc(),{float32:gMe,fract32:cT}=Mb();U$.exports=bMe;var H$=[[1,0,0,1,0,0],[1,0,0,-1,0,0],[-1,0,0,-1,0,0],[-1,0,0,-1,0,0],[-1,0,0,1,0,0],[1,0,0,1,0,0],[1,0,-1,0,0,1],[1,0,-1,0,0,-1],[1,0,1,0,0,-1],[1,0,1,0,0,-1],[1,0,1,0,0,1],[1,0,-1,0,0,1],[-1,0,-1,0,0,1],[-1,0,-1,0,0,-1],[-1,0,1,0,0,-1],[-1,0,1,0,0,-1],[-1,0,1,0,0,1],[-1,0,-1,0,0,1],[0,1,1,0,0,0],[0,1,-1,0,0,0],[0,-1,-1,0,0,0],[0,-1,-1,0,0,0],[0,1,1,0,0,0],[0,-1,1,0,0,0],[0,1,0,-1,1,0],[0,1,0,-1,-1,0],[0,1,0,1,-1,0],[0,1,0,1,1,0],[0,1,0,-1,1,0],[0,1,0,1,-1,0],[0,-1,0,-1,1,0],[0,-1,0,-1,-1,0],[0,-1,0,1,-1,0],[0,-1,0,1,1,0],[0,-1,0,-1,1,0],[0,-1,0,1,-1,0]];function bMe(e,r){if(typeof e=="function"?(r||(r={}),r.regl=e):r=e,r.length&&(r.positions=r),e=r.regl,!e.hasExtension("ANGLE_instanced_arrays"))throw Error("regl-error2d: `ANGLE_instanced_arrays` extension should be enabled");let t=e._gl,a,n,i,o,l,s,u={color:"black",capSize:5,lineWidth:1,opacity:1,viewport:null,range:null,offset:0,count:0,bounds:null,positions:[],errors:[]},f=[];return o=e.buffer({usage:"dynamic",type:"uint8",data:new Uint8Array(0)}),n=e.buffer({usage:"dynamic",type:"float",data:new Uint8Array(0)}),i=e.buffer({usage:"dynamic",type:"float",data:new Uint8Array(0)}),l=e.buffer({usage:"dynamic",type:"float",data:new Uint8Array(0)}),s=e.buffer({usage:"static",type:"float",data:H$}),p(r),a=e({vert:` +`;Y$.exports=Xa;function Xa(e,r){if(!(this instanceof Xa))return new Xa(e,r);if(typeof e=="function"?(r||(r={}),r.regl=e):r=e,r.length&&(r.positions=r),e=r.regl,!e.hasExtension("ANGLE_instanced_arrays"))throw Error("regl-error2d: `ANGLE_instanced_arrays` extension should be enabled");this.gl=e._gl,this.regl=e,this.passes=[],this.shaders=Xa.shaders.has(e)?Xa.shaders.get(e):Xa.shaders.set(e,Xa.createShaders(e)).get(e),this.update(r)}Xa.dashMult=2;Xa.maxPatternLength=256;Xa.precisionThreshold=3e6;Xa.maxPoints=1e4;Xa.maxLines=2048;Xa.shaders=new dMe;Xa.createShaders=function(e){let r=e.buffer({usage:"static",type:"float",data:[0,1,0,0,1,1,1,0]}),t={primitive:"triangle strip",instances:e.prop("count"),count:4,offset:0,uniforms:{miterMode:(o,l)=>l.join==="round"?2:1,miterLimit:e.prop("miterLimit"),scale:e.prop("scale"),scaleFract:e.prop("scaleFract"),translateFract:e.prop("translateFract"),translate:e.prop("translate"),thickness:e.prop("thickness"),dashTexture:e.prop("dashTexture"),opacity:e.prop("opacity"),pixelRatio:e.context("pixelRatio"),id:e.prop("id"),dashLength:e.prop("dashLength"),viewport:(o,l)=>[l.viewport.x,l.viewport.y,o.viewportWidth,o.viewportHeight],depth:e.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:(o,l)=>!l.overlay},stencil:{enable:!1},scissor:{enable:!0,box:e.prop("viewport")},viewport:e.prop("viewport")},a=e(yT({vert:mMe,frag:yMe,attributes:{lineEnd:{buffer:r,divisor:0,stride:8,offset:0},lineTop:{buffer:r,divisor:0,stride:8,offset:4},aCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:8,divisor:1},bCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:16,divisor:1},aCoordFract:{buffer:e.prop("positionFractBuffer"),stride:8,offset:8,divisor:1},bCoordFract:{buffer:e.prop("positionFractBuffer"),stride:8,offset:16,divisor:1},color:{buffer:e.prop("colorBuffer"),stride:4,offset:0,divisor:1}}},t)),n;try{n=e(yT({cull:{enable:!0,face:"back"},vert:xMe,frag:_Me,attributes:{lineEnd:{buffer:r,divisor:0,stride:8,offset:0},lineTop:{buffer:r,divisor:0,stride:8,offset:4},aColor:{buffer:e.prop("colorBuffer"),stride:4,offset:0,divisor:1},bColor:{buffer:e.prop("colorBuffer"),stride:4,offset:4,divisor:1},prevCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:0,divisor:1},aCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:8,divisor:1},bCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:16,divisor:1},nextCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:24,divisor:1}}},t))}catch(o){n=a}return{fill:e({primitive:"triangle",elements:(o,l)=>l.triangles,offset:0,vert:gMe,frag:bMe,uniforms:{scale:e.prop("scale"),color:e.prop("fill"),scaleFract:e.prop("scaleFract"),translateFract:e.prop("translateFract"),translate:e.prop("translate"),opacity:e.prop("opacity"),pixelRatio:e.context("pixelRatio"),id:e.prop("id"),viewport:(o,l)=>[l.viewport.x,l.viewport.y,o.viewportWidth,o.viewportHeight]},attributes:{position:{buffer:e.prop("positionBuffer"),stride:8,offset:8},positionFract:{buffer:e.prop("positionFractBuffer"),stride:8,offset:8}},blend:t.blend,depth:{enable:!1},scissor:t.scissor,stencil:t.stencil,viewport:t.viewport}),rect:a,miter:n}};Xa.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};Xa.prototype.render=function(...e){e.length&&this.update(...e),this.draw()};Xa.prototype.draw=function(...e){return(e.length?e:this.passes).forEach((r,t)=>{if(r&&Array.isArray(r))return this.draw(...r);typeof r=="number"&&(r=this.passes[r]),r&&r.count>1&&r.opacity&&(this.regl._refresh(),r.fill&&r.triangles&&r.triangles.length>2&&this.shaders.fill(r),r.thickness&&(r.scale[0]*r.viewport.width>Xa.precisionThreshold||r.scale[1]*r.viewport.height>Xa.precisionThreshold?this.shaders.rect(r):r.join==="rect"||!r.join&&(r.thickness<=2||r.count>=Xa.maxPoints)?this.shaders.rect(r):this.shaders.miter(r)))}),this};Xa.prototype.update=function(e){if(!e)return;e.length!=null?typeof e[0]=="number"&&(e=[{positions:e}]):Array.isArray(e)||(e=[e]);let{regl:r,gl:t}=this;if(e.forEach((n,i)=>{let o=this.passes[i];if(n!==void 0){if(n===null){this.passes[i]=null;return}if(typeof n[0]=="number"&&(n={positions:n}),n=fMe(n,{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"}),o||(this.passes[i]=o={id:i,scale:null,scaleFract:null,translate:null,translateFract:null,count:0,hole:[],depth:0,dashLength:1,dashTexture:r.texture({channels:1,data:new Uint8Array([255]),width:1,height:1,mag:"linear",min:"linear"}),colorBuffer:r.buffer({usage:"dynamic",type:"uint8",data:new Uint8Array}),positionBuffer:r.buffer({usage:"dynamic",type:"float",data:new Uint8Array}),positionFractBuffer:r.buffer({usage:"dynamic",type:"float",data:new Uint8Array})},n=yT({},Xa.defaults,n)),n.thickness!=null&&(o.thickness=parseFloat(n.thickness)),n.opacity!=null&&(o.opacity=parseFloat(n.opacity)),n.miterLimit!=null&&(o.miterLimit=parseFloat(n.miterLimit)),n.overlay!=null&&(o.overlay=!!n.overlay,iv[0]||(v[2]=v[0]+1e-155),v[3]>v[1]||(v[3]=v[1]+1e-155)),o.normBounds=v,o.fill){let y=[],b={},T=0;for(let _=0,x=0,w=o.count;_M-C),x=[],w=0,k=o.hole!=null?o.hole[0]:null;if(k!=null){let M=pMe(_,C=>C>=k);_=_.slice(0,M),_.push(k)}for(let M=0;M<_.length;M++){let C=y.slice(w*2,_[M]*2).concat(k?y.slice(k*2):[]),E=(o.hole||[]).map(P=>P-k+(_[M]-w)),F=U$(C,E);F=F.map(P=>P+w+(P+w<_[M]?0:k-_[M])),x.push(...F),w=_[M]+1}for(let M=0,C=x.length;M{e.colorBuffer.destroy(),e.positionBuffer.destroy(),e.dashTexture.destroy()}),this.passes.length=0,this}});var J$=B((KBe,Z$)=>{"use strict";var wMe=Dc(),AMe=kp(),TMe=IA(),MMe=Ns(),V$=bi(),X$=Lc(),{float32:kMe,fract32:bT}=Lb();Z$.exports=SMe;var W$=[[1,0,0,1,0,0],[1,0,0,-1,0,0],[-1,0,0,-1,0,0],[-1,0,0,-1,0,0],[-1,0,0,1,0,0],[1,0,0,1,0,0],[1,0,-1,0,0,1],[1,0,-1,0,0,-1],[1,0,1,0,0,-1],[1,0,1,0,0,-1],[1,0,1,0,0,1],[1,0,-1,0,0,1],[-1,0,-1,0,0,1],[-1,0,-1,0,0,-1],[-1,0,1,0,0,-1],[-1,0,1,0,0,-1],[-1,0,1,0,0,1],[-1,0,-1,0,0,1],[0,1,1,0,0,0],[0,1,-1,0,0,0],[0,-1,-1,0,0,0],[0,-1,-1,0,0,0],[0,1,1,0,0,0],[0,-1,1,0,0,0],[0,1,0,-1,1,0],[0,1,0,-1,-1,0],[0,1,0,1,-1,0],[0,1,0,1,1,0],[0,1,0,-1,1,0],[0,1,0,1,-1,0],[0,-1,0,-1,1,0],[0,-1,0,-1,-1,0],[0,-1,0,1,-1,0],[0,-1,0,1,1,0],[0,-1,0,-1,1,0],[0,-1,0,1,-1,0]];function SMe(e,r){if(typeof e=="function"?(r||(r={}),r.regl=e):r=e,r.length&&(r.positions=r),e=r.regl,!e.hasExtension("ANGLE_instanced_arrays"))throw Error("regl-error2d: `ANGLE_instanced_arrays` extension should be enabled");let t=e._gl,a,n,i,o,l,s,u={color:"black",capSize:5,lineWidth:1,opacity:1,viewport:null,range:null,offset:0,count:0,bounds:null,positions:[],errors:[]},f=[];return o=e.buffer({usage:"dynamic",type:"uint8",data:new Uint8Array(0)}),n=e.buffer({usage:"dynamic",type:"float",data:new Uint8Array(0)}),i=e.buffer({usage:"dynamic",type:"float",data:new Uint8Array(0)}),l=e.buffer({usage:"dynamic",type:"float",data:new Uint8Array(0)}),s=e.buffer({usage:"static",type:"float",data:W$}),p(r),a=e({vert:` precision highp float; attribute vec2 position, positionFract; @@ -642,10 +642,10 @@ void main() { gl_FragColor = fragColor; gl_FragColor.a *= opacity; } - `,uniforms:{range:e.prop("range"),lineWidth:e.prop("lineWidth"),capSize:e.prop("capSize"),opacity:e.prop("opacity"),scale:e.prop("scale"),translate:e.prop("translate"),scaleFract:e.prop("scaleFract"),translateFract:e.prop("translateFract"),viewport:(m,b)=>[b.viewport.x,b.viewport.y,m.viewportWidth,m.viewportHeight]},attributes:{color:{buffer:o,offset:(m,b)=>b.offset*4,divisor:1},position:{buffer:n,offset:(m,b)=>b.offset*8,divisor:1},positionFract:{buffer:i,offset:(m,b)=>b.offset*8,divisor:1},error:{buffer:l,offset:(m,b)=>b.offset*16,divisor:1},direction:{buffer:s,stride:24,offset:0},lineOffset:{buffer:s,stride:24,offset:8},capOffset:{buffer:s,stride:24,offset:16}},primitive:"triangles",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:!1},scissor:{enable:!0,box:e.prop("viewport")},viewport:e.prop("viewport"),stencil:!1,instances:e.prop("count"),count:H$.length}),I$(c,{update:p,draw:v,destroy:y,regl:e,gl:t,canvas:t.canvas,groups:f}),c;function c(m){m?p(m):m===null&&y(),v()}function v(m){if(typeof m=="number")return d(m);m&&!Array.isArray(m)&&(m=[m]),e._refresh(),f.forEach((b,T)=>{if(b){if(m&&(m[T]?b.draw=!0:b.draw=!1),!b.draw){b.draw=!0;return}d(T)}})}function d(m){typeof m=="number"&&(m=f[m]),m!=null&&m&&m.count&&m.color&&m.opacity&&m.positions&&m.positions.length>1&&(m.scaleRatio=[m.scale[0]*m.viewport.width,m.scale[1]*m.viewport.height],a(m),m.after&&m.after(m))}function p(m){if(!m)return;m.length!=null?typeof m[0]=="number"&&(m=[{positions:m}]):Array.isArray(m)||(m=[m]);let b=0,T=0;if(c.groups=f=m.map((w,k)=>{let M=f[k];if(w)typeof w=="function"?w={after:w}:typeof w[0]=="number"&&(w={positions:w});else return M;return w=yMe(w,{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"}),M||(f[k]=M={id:k,scale:null,translate:null,scaleFract:null,translateFract:null,draw:!0},w=I$({},u,w)),mMe(M,w,[{lineWidth:C=>+C*.5,capSize:C=>+C*.5,opacity:parseFloat,errors:C=>(C=O$(C),T+=C.length,C),positions:(C,E)=>(C=O$(C,"float64"),E.count=Math.floor(C.length/2),E.bounds=dMe(C,2),E.offset=b,b+=E.count,C)},{color:(C,E)=>{let F=E.count;if(C||(C="transparent"),!Array.isArray(C)||typeof C[0]=="number"){let q=C;C=Array(F);for(let z=0;z{let P=E.bounds;return C||(C=P),E.scale=[1/(C[2]-C[0]),1/(C[3]-C[1])],E.translate=[-C[0],-C[1]],E.scaleFract=cT(E.scale),E.translateFract=cT(E.translate),C},viewport:C=>{let E;return Array.isArray(C)?E={x:C[0],y:C[1],width:C[2]-C[0],height:C[3]-C[1]}:C?(E={x:C.x||C.left||0,y:C.y||C.top||0},C.right?E.width=C.right-E.x:E.width=C.w||C.width||0,C.bottom?E.height=C.bottom-E.y:E.height=C.h||C.height||0):E={x:0,y:0,width:t.drawingBufferWidth,height:t.drawingBufferHeight},E}}]),M}),b||T){let w=f.reduce((E,F,P)=>E+(F?F.count:0),0),k=new Float64Array(w*2),M=new Uint8Array(w*4),C=new Float32Array(w*4);f.forEach((E,F)=>{if(!E)return;let{positions:P,count:q,offset:z,color:I,errors:Y}=E;q&&(M.set(I,z*4),C.set(Y,z*4),k.set(P,z*2))});var _=gMe(k);n(_);var x=cT(k,_);i(x),o(M),l(C)}}function y(){n.destroy(),i.destroy(),o.destroy(),l.destroy(),s.destroy()}}});var X$=B((UBe,V$)=>{var Y$=/[\'\"]/;V$.exports=function(r){return r?(Y$.test(r.charAt(0))&&(r=r.substr(1)),Y$.test(r.charAt(r.length-1))&&(r=r.substr(0,r.length-1)),r):""}});var vT=B((GBe,xMe)=>{xMe.exports=["inherit","initial","unset"]});var hT=B((YBe,_Me)=>{_Me.exports=["caption","icon","menu","message-box","small-caption","status-bar"]});var dT=B((VBe,wMe)=>{wMe.exports=["normal","bold","bolder","lighter","100","200","300","400","500","600","700","800","900"]});var pT=B((XBe,AMe)=>{AMe.exports=["normal","italic","oblique"]});var mT=B((WBe,TMe)=>{TMe.exports=["normal","condensed","semi-condensed","extra-condensed","ultra-condensed","expanded","semi-expanded","extra-expanded","ultra-expanded"]});var j$=B((ZBe,J$)=>{"use strict";function W$(e,r){if(typeof e!="string")return[e];var t=[e];typeof r=="string"||Array.isArray(r)?r={brackets:r}:r||(r={});var a=r.brackets?Array.isArray(r.brackets)?r.brackets:[r.brackets]:["{}","[]","()"],n=r.escape||"___",i=!!r.flat;a.forEach(function(s){var u=new RegExp(["\\",s[0],"[^\\",s[0],"\\",s[1],"]*\\",s[1]].join("")),f=[];function c(v,d,p){var y=t.push(v.slice(s[0].length,-s[1].length))-1;return f.push(y),n+y+n}t.forEach(function(v,d){for(var p,y=0;v!=p;)if(p=v,v=v.replace(u,c),y++>1e4)throw Error("References have circular dependency. Please, check them.");t[d]=v}),f=f.reverse(),t=t.map(function(v){return f.forEach(function(d){v=v.replace(new RegExp("(\\"+n+d+"\\"+n+")","g"),s[0]+"$1"+s[1])}),v})});var o=new RegExp("\\"+n+"([0-9]+)\\"+n);function l(s,u,f){for(var c=[],v,d=0;v=o.exec(s);){if(d++>1e4)throw Error("Circular references in parenthesis");c.push(s.slice(0,v.index)),c.push(l(u[v[1]],u)),s=s.slice(v.index+v[0].length)}return c.push(s),c}return i?t:l(t[0],t)}function Z$(e,r){if(r&&r.flat){var t=r&&r.escape||"___",a=e[0],n;if(!a)return"";for(var i=new RegExp("\\"+t+"([0-9]+)\\"+t),o=0;a!=n;){if(o++>1e4)throw Error("Circular references in "+e);n=a,a=a.replace(i,l)}return a}return e.reduce(function s(u,f){return Array.isArray(f)&&(f=f.reduce(s,"")),u+f},"");function l(s,u){if(e[u]==null)throw Error("Reference "+u+"is undefined");return e[u]}}function yT(e,r){return Array.isArray(e)?Z$(e,r):W$(e,r)}yT.parse=W$;yT.stringify=Z$;J$.exports=yT});var Q$=B((JBe,K$)=>{"use strict";var $$=j$();K$.exports=function(r,t,a){if(r==null)throw Error("First argument should be a string");if(t==null)throw Error("Separator should be a string or a RegExp");a?(typeof a=="string"||Array.isArray(a))&&(a={ignore:a}):a={},a.escape==null&&(a.escape=!0),a.ignore==null?a.ignore=["[]","()","{}","<>",'""',"''","``","\u201C\u201D","\xAB\xBB"]:(typeof a.ignore=="string"&&(a.ignore=[a.ignore]),a.ignore=a.ignore.map(function(c){return c.length===1&&(c=c+c),c}));var n=$$.parse(r,{flat:!0,brackets:a.ignore}),i=n[0],o=i.split(t);if(a.escape){for(var l=[],s=0;s{MMe.exports=["xx-small","x-small","small","medium","large","x-large","xx-large","larger","smaller"]});var gT=B(($Be,rK)=>{"use strict";var kMe=eK();rK.exports={isSize:function(r){return/^[\d\.]/.test(r)||r.indexOf("/")!==-1||kMe.indexOf(r)!==-1}}});var iK=B((KBe,nK)=>{"use strict";var SMe=X$(),CMe=vT(),DMe=hT(),LMe=dT(),EMe=pT(),qMe=mT(),bT=Q$(),FMe=gT().isSize;nK.exports=aK;var zp=aK.cache={};function aK(e){if(typeof e!="string")throw new Error("Font argument must be a string.");if(zp[e])return zp[e];if(e==="")throw new Error("Cannot parse an empty string.");if(DMe.indexOf(e)!==-1)return zp[e]={system:e};for(var r={style:"normal",variant:"normal",weight:"normal",stretch:"normal",lineHeight:"normal",size:"1rem",family:["serif"]},t=bT(e,/\s+/),a;a=t.shift();){if(CMe.indexOf(a)!==-1)return["style","variant","weight","stretch"].forEach(function(i){r[i]=a}),zp[e]=r;if(EMe.indexOf(a)!==-1){r.style=a;continue}if(a==="normal"||a==="small-caps"){r.variant=a;continue}if(qMe.indexOf(a)!==-1){r.stretch=a;continue}if(LMe.indexOf(a)!==-1){r.weight=a;continue}if(FMe(a)){var n=bT(a,"/");if(r.size=n[0],n[1]!=null?r.lineHeight=tK(n[1]):t[0]==="/"&&(t.shift(),r.lineHeight=tK(t.shift())),!t.length)throw new Error("Missing required font-family.");return r.family=bT(t.join(" "),/\s*,\s*/).map(SMe),zp[e]=r}throw new Error("Unknown or unsupported font token: "+a)}throw new Error("Missing required font-size.")}function tK(e){var r=parseFloat(e);return r.toString()===e?r:e}});var _T=B((QBe,oK)=>{"use strict";var RMe=Es(),PMe=gT().isSize,NMe=Ip(vT()),zMe=Ip(hT()),BMe=Ip(dT()),IMe=Ip(pT()),OMe=Ip(mT()),HMe={normal:1,"small-caps":1},UMe={serif:1,"sans-serif":1,monospace:1,cursive:1,fantasy:1,"system-ui":1},xT={style:"normal",variant:"normal",weight:"normal",stretch:"normal",size:"1rem",lineHeight:"normal",family:"serif"};oK.exports=function(r){if(r=RMe(r,{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"}),r.system)return r.system&&Bp(r.system,zMe),r.system;if(Bp(r.style,IMe),Bp(r.variant,HMe),Bp(r.weight,BMe),Bp(r.stretch,OMe),r.size==null&&(r.size=xT.size),typeof r.size=="number"&&(r.size+="px"),!PMe)throw Error("Bad size value `"+r.size+"`");r.family||(r.family=xT.family),Array.isArray(r.family)&&(r.family.length||(r.family=[xT.family]),r.family=r.family.map(function(a){return UMe[a]?a:'"'+a+'"'}).join(", "));var t=[];return t.push(r.style),r.variant!==r.style&&t.push(r.variant),r.weight!==r.variant&&r.weight!==r.style&&t.push(r.weight),r.stretch!==r.weight&&r.stretch!==r.variant&&r.stretch!==r.style&&t.push(r.stretch),t.push(r.size+(r.lineHeight==null||r.lineHeight==="normal"||r.lineHeight+""=="1"?"":"/"+r.lineHeight)),t.push(r.family),t.filter(Boolean).join(" ")};function Bp(e,r){if(e&&!r[e]&&!NMe[e])throw Error("Unknown keyword `"+e+"`");return e}function Ip(e){for(var r={},t=0;t{"use strict";lK.exports={parse:iK(),stringify:_T()}});var TT=B((wT,AT)=>{(function(e,r){typeof wT=="object"&&typeof AT!="undefined"?AT.exports=r():e.createREGL=r()})(wT,(function(){"use strict";var e=function(H,re){for(var ie=Object.keys(re),Be=0;Be1&&re===ie&&(re==='"'||re==="'"))return['"'+o(H.substr(1,H.length-2))+'"'];var Be=/\[(false|true|null|\d+|'[^']*'|"[^"]*")\]/.exec(H);if(Be)return l(H.substr(0,Be.index)).concat(l(Be[1])).concat(l(H.substr(Be.index+Be[0].length)));var We=H.split(".");if(We.length===1)return['"'+o(H)+'"'];for(var $e=[],Ye=0;Ye65535)<<4,H>>>=re,ie=(H>255)<<3,H>>>=ie,re|=ie,ie=(H>15)<<2,H>>>=ie,re|=ie,ie=(H>3)<<1,H>>>=ie,re|=ie,re|H>>1}function U(){var H=C(8,function(){return[]});function re($e){var Ye=V($e),gr=H[J(Ye)>>2];return gr.length>0?gr.pop():new ArrayBuffer(Ye)}function ie($e){H[J($e.byteLength)>>2].push($e)}function Be($e,Ye){var gr=null;switch($e){case E:gr=new Int8Array(re(Ye),0,Ye);break;case F:gr=new Uint8Array(re(Ye),0,Ye);break;case P:gr=new Int16Array(re(2*Ye),0,Ye);break;case q:gr=new Uint16Array(re(2*Ye),0,Ye);break;case z:gr=new Int32Array(re(4*Ye),0,Ye);break;case I:gr=new Uint32Array(re(4*Ye),0,Ye);break;case Y:gr=new Float32Array(re(4*Ye),0,Ye);break;default:return null}return gr.length!==Ye?gr.subarray(0,Ye):gr}function We($e){ie($e.buffer)}return{alloc:re,free:ie,allocType:Be,freeType:We}}var G=U();G.zero=U();var W=3408,j=3410,ae=3411,pe=3412,se=3413,we=3414,te=3415,Ee=33901,de=33902,Ae=3379,Ue=3386,ge=34921,Ne=36347,ir=36348,qe=35661,Ve=35660,Qe=34930,er=36349,rr=34076,yr=34024,Ge=7936,Sr=7937,Fr=7938,Lr=35724,He=34047,or=36063,Ir=34852,fe=3553,Le=34067,Mr=34069,lt=33984,Xe=6408,Me=5126,Fe=5121,dr=36160,kr=36053,fr=36064,_r=16384,Vr=function(H,re){var ie=1;re.ext_texture_filter_anisotropic&&(ie=H.getParameter(He));var Be=1,We=1;re.webgl_draw_buffers&&(Be=H.getParameter(Ir),We=H.getParameter(or));var $e=!!re.oes_texture_float;if($e){var Ye=H.createTexture();H.bindTexture(fe,Ye),H.texImage2D(fe,0,Xe,1,1,0,Xe,Me,null);var gr=H.createFramebuffer();if(H.bindFramebuffer(dr,gr),H.framebufferTexture2D(dr,fr,fe,Ye,0),H.bindTexture(fe,null),H.checkFramebufferStatus(dr)!==kr)$e=!1;else{H.viewport(0,0,1,1),H.clearColor(1,0,0,1),H.clear(_r);var Rr=G.allocType(Me,4);H.readPixels(0,0,1,1,Xe,Me,Rr),H.getError()?$e=!1:(H.deleteFramebuffer(gr),H.deleteTexture(Ye),$e=Rr[0]===1),G.freeType(Rr)}}var Pr=typeof navigator!="undefined"&&(/MSIE/.test(navigator.userAgent)||/Trident\//.test(navigator.appVersion)||/Edge/.test(navigator.userAgent)),Nr=!0;if(!Pr){var Ct=H.createTexture(),mt=G.allocType(Fe,36);H.activeTexture(lt),H.bindTexture(Le,Ct),H.texImage2D(Mr,0,Xe,3,3,0,Xe,Fe,mt),G.freeType(mt),H.bindTexture(Le,null),H.deleteTexture(Ct),Nr=!H.getError()}return{colorBits:[H.getParameter(j),H.getParameter(ae),H.getParameter(pe),H.getParameter(se)],depthBits:H.getParameter(we),stencilBits:H.getParameter(te),subpixelBits:H.getParameter(W),extensions:Object.keys(re).filter(function(Kr){return!!re[Kr]}),maxAnisotropic:ie,maxDrawbuffers:Be,maxColorAttachments:We,pointSizeDims:H.getParameter(Ee),lineWidthDims:H.getParameter(de),maxViewportDims:H.getParameter(Ue),maxCombinedTextureUnits:H.getParameter(qe),maxCubeMapSize:H.getParameter(rr),maxRenderbufferSize:H.getParameter(yr),maxTextureUnits:H.getParameter(Qe),maxTextureSize:H.getParameter(Ae),maxAttributes:H.getParameter(ge),maxVertexUniforms:H.getParameter(Ne),maxVertexTextureUnits:H.getParameter(Ve),maxVaryingVectors:H.getParameter(ir),maxFragmentUniforms:H.getParameter(er),glsl:H.getParameter(Lr),renderer:H.getParameter(Sr),vendor:H.getParameter(Ge),version:H.getParameter(Fr),readFloat:$e,npotTextureCube:Nr}},qr=function(H){return H instanceof Uint8Array||H instanceof Uint16Array||H instanceof Uint32Array||H instanceof Int8Array||H instanceof Int16Array||H instanceof Int32Array||H instanceof Float32Array||H instanceof Float64Array||H instanceof Uint8ClampedArray};function Or(H){return!!H&&typeof H=="object"&&Array.isArray(H.shape)&&Array.isArray(H.stride)&&typeof H.offset=="number"&&H.shape.length===H.stride.length&&(Array.isArray(H.data)||qr(H.data))}var Ie=function(H){return Object.keys(H).map(function(re){return H[re]})},Tr={shape:le,flatten:it};function ur(H,re,ie){for(var Be=0;Be0){var Dt;if(Array.isArray(tr[0])){Qr=nt(tr);for(var br=1,hr=1;hr0){if(typeof br[0]=="number"){var Gr=G.allocType(wr.dtype,br.length);bn(Gr,br),Qr(Gr,ht),G.freeType(Gr)}else if(Array.isArray(br[0])||qr(br[0])){$r=nt(br);var Wr=Ei(br,$r,wr.dtype);Qr(Wr,ht),G.freeType(Wr)}}}else if(Or(br)){$r=br.shape;var dt=br.stride,Lt=0,Vt=0,rt=0,bt=0;$r.length===1?(Lt=$r[0],Vt=1,rt=dt[0],bt=0):$r.length===2&&(Lt=$r[0],Vt=$r[1],rt=dt[0],bt=dt[1]);var Ot=Array.isArray(br.data)?wr.dtype:_a(br.data),Ht=G.allocType(Ot,Lt*Vt);Qi(Ht,br.data,Lt,Vt,rt,bt,br.offset),Qr(Ht,ht),G.freeType(Ht)}return tt}return Cr||tt(Re),tt._reglType="buffer",tt._buffer=wr,tt.subdata=Dt,ie.profile&&(tt.stats=wr.stats),tt.destroy=function(){mt(wr)},tt}function cr(){Ie($e).forEach(function(Re){Re.buffer=H.createBuffer(),H.bindBuffer(Re.type,Re.buffer),H.bufferData(Re.type,Re.persistentData||Re.byteLength,Re.usage)})}return ie.profile&&(re.getTotalBufferSize=function(){var Re=0;return Object.keys($e).forEach(function(tr){Re+=$e[tr].stats.size}),Re}),{create:Kr,createStream:Rr,destroyStream:Pr,clear:function(){Ie($e).forEach(mt),gr.forEach(mt)},getBuffer:function(Re){return Re&&Re._buffer instanceof Ye?Re._buffer:null},restore:cr,_initBuffer:Ct}}var za=0,xn=0,_n=1,Is=1,Ql=4,Uc=4,Os={points:za,point:xn,lines:_n,line:Is,triangles:Ql,triangle:Uc,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},n0=0,i0=1,_l=4,_i=5120,wl=5121,Hs=5122,Do=5123,Al=5124,Tl=5125,Lu=34963,Gc=35040,o0=35044;function l0(H,re,ie,Be){var We={},$e=0,Ye={uint8:wl,uint16:Do};re.oes_element_index_uint&&(Ye.uint32=Tl);function gr(cr){this.id=$e++,We[this.id]=this,this.buffer=cr,this.primType=_l,this.vertCount=0,this.type=0}gr.prototype.bind=function(){this.buffer.bind()};var Rr=[];function Pr(cr){var Re=Rr.pop();return Re||(Re=new gr(ie.create(null,Lu,!0,!1)._buffer)),Ct(Re,cr,Gc,-1,-1,0,0),Re}function Nr(cr){Rr.push(cr)}function Ct(cr,Re,tr,Cr,Br,wr,tt){cr.buffer.bind();var Qr;if(Re){var Dt=tt;!tt&&(!qr(Re)||Or(Re)&&!qr(Re.data))&&(Dt=re.oes_element_index_uint?Tl:Do),ie._initBuffer(cr.buffer,Re,tr,Dt,3)}else H.bufferData(Lu,wr,tr),cr.buffer.dtype=Qr||wl,cr.buffer.usage=tr,cr.buffer.dimension=3,cr.buffer.byteLength=wr;if(Qr=tt,!tt){switch(cr.buffer.dtype){case wl:case _i:Qr=wl;break;case Do:case Hs:Qr=Do;break;case Tl:case Al:Qr=Tl;break;default:}cr.buffer.dtype=Qr}cr.type=Qr;var br=Br;br<0&&(br=cr.buffer.byteLength,Qr===Do?br>>=1:Qr===Tl&&(br>>=2)),cr.vertCount=br;var hr=Cr;if(Cr<0){hr=_l;var ht=cr.buffer.dimension;ht===1&&(hr=n0),ht===2&&(hr=i0),ht===3&&(hr=_l)}cr.primType=hr}function mt(cr){Be.elementsCount--,delete We[cr.id],cr.buffer.destroy(),cr.buffer=null}function Kr(cr,Re){var tr=ie.create(null,Lu,!0),Cr=new gr(tr._buffer);Be.elementsCount++;function Br(wr){if(!wr)tr(),Cr.primType=_l,Cr.vertCount=0,Cr.type=wl;else if(typeof wr=="number")tr(wr),Cr.primType=_l,Cr.vertCount=wr|0,Cr.type=wl;else{var tt=null,Qr=o0,Dt=-1,br=-1,hr=0,ht=0;Array.isArray(wr)||qr(wr)||Or(wr)?tt=wr:("data"in wr&&(tt=wr.data),"usage"in wr&&(Qr=Hi[wr.usage]),"primitive"in wr&&(Dt=Os[wr.primitive]),"count"in wr&&(br=wr.count|0),"type"in wr&&(ht=Ye[wr.type]),"length"in wr?hr=wr.length|0:(hr=br,ht===Do||ht===Hs?hr*=2:(ht===Tl||ht===Al)&&(hr*=4))),Ct(Cr,tt,Qr,Dt,br,hr,ht)}return Br}return Br(cr),Br._reglType="elements",Br._elements=Cr,Br.subdata=function(wr,tt){return tr.subdata(wr,tt),Br},Br.destroy=function(){mt(Cr)},Br}return{create:Kr,createStream:Pr,destroyStream:Nr,getElements:function(cr){return typeof cr=="function"&&cr._elements instanceof gr?cr._elements:null},clear:function(){Ie(We).forEach(mt)}}}var kt=new Float32Array(1),St=new Uint32Array(kt.buffer),ga=5123;function Zr(H){for(var re=G.allocType(ga,H.length),ie=0;ie>>31<<15,$e=(Be<<1>>>24)-127,Ye=Be>>13&1023;if($e<-24)re[ie]=We;else if($e<-14){var gr=-14-$e;re[ie]=We+(Ye+1024>>gr)}else $e>15?re[ie]=We+31744:re[ie]=We+($e+15<<10)+Ye}return re}function hn(H){return Array.isArray(H)||qr(H)}var Ba=34467,Ua=3553,Bn=34067,qi=34069,eo=6408,Yc=6406,Us=6407,Gs=6409,s0=6410,bd=32854,es=32855,Eu=36194,rm=32819,Tx=32820,Vc=33635,xd=34042,u0=6402,f0=34041,rs=35904,Ml=35906,Lo=36193,Xc=33776,c0=33777,Ys=33778,Wc=33779,tm=35986,_d=35987,Zc=34798,am=35840,nm=35841,wd=35842,im=35843,Ad=36196,qu=5121,Jc=5123,Td=5125,Zo=5126,Fu=10242,Mx=10243,kx=10497,Md=33071,om=33648,v0=10240,Sx=10241,Ru=9728,jc=9729,h0=9984,d0=9985,Pu=9986,Vs=9987,lm=33170,Nu=4352,Cx=4353,$c=4354,Dx=34046,Lx=3317,Ex=37440,sm=37441,p0=37443,um=37444,Xs=33984,fm=[h0,Pu,d0,Vs],so=[0,Gs,s0,Us,eo],uo={};uo[Gs]=uo[Yc]=uo[u0]=1,uo[f0]=uo[s0]=2,uo[Us]=uo[rs]=3,uo[eo]=uo[Ml]=4;function ts(H){return"[object "+H+"]"}var Kc=ts("HTMLCanvasElement"),as=ts("OffscreenCanvas"),m0=ts("CanvasRenderingContext2D"),kd=ts("ImageBitmap"),cm=ts("HTMLImageElement"),vm=ts("HTMLVideoElement"),qx=Object.keys(Te).concat([Kc,as,m0,kd,cm,vm]),Ws=[];Ws[qu]=1,Ws[Zo]=4,Ws[Lo]=2,Ws[Jc]=2,Ws[Td]=4;var Vn=[];Vn[bd]=2,Vn[es]=2,Vn[Eu]=2,Vn[f0]=4,Vn[Xc]=.5,Vn[c0]=.5,Vn[Ys]=1,Vn[Wc]=1,Vn[tm]=.5,Vn[_d]=1,Vn[Zc]=1,Vn[am]=.5,Vn[nm]=.25,Vn[wd]=.5,Vn[im]=.25,Vn[Ad]=.5;function hm(H){return Array.isArray(H)&&(H.length===0||typeof H[0]=="number")}function dm(H){if(!Array.isArray(H))return!1;var re=H.length;return!(re===0||!hn(H[0]))}function Zs(H){return Object.prototype.toString.call(H)}function pm(H){return Zs(H)===Kc}function mm(H){return Zs(H)===as}function Fx(H){return Zs(H)===m0}function Rx(H){return Zs(H)===kd}function Px(H){return Zs(H)===cm}function Nx(H){return Zs(H)===vm}function Sd(H){if(!H)return!1;var re=Zs(H);return qx.indexOf(re)>=0?!0:hm(H)||dm(H)||Or(H)}function ym(H){return Te[Object.prototype.toString.call(H)]|0}function zx(H,re){var ie=re.length;switch(H.type){case qu:case Jc:case Td:case Zo:var Be=G.allocType(H.type,ie);Be.set(re),H.data=Be;break;case Lo:H.data=Zr(re);break;default:}}function gm(H,re){return G.allocType(H.type===Lo?Zo:H.type,re)}function Cd(H,re){H.type===Lo?(H.data=Zr(re),G.freeType(re)):H.data=re}function bm(H,re,ie,Be,We,$e){for(var Ye=H.width,gr=H.height,Rr=H.channels,Pr=Ye*gr*Rr,Nr=gm(H,Pr),Ct=0,mt=0;mt=1;)gr+=Ye*Rr*Rr,Rr/=2;return gr}else return Ye*ie*Be}function xm(H,re,ie,Be,We,$e,Ye){var gr={"don't care":Nu,"dont care":Nu,nice:$c,fast:Cx},Rr={repeat:kx,clamp:Md,mirror:om},Pr={nearest:Ru,linear:jc},Nr=e({mipmap:Vs,"nearest mipmap nearest":h0,"linear mipmap nearest":d0,"nearest mipmap linear":Pu,"linear mipmap linear":Vs},Pr),Ct={none:0,browser:um},mt={uint8:qu,rgba4:rm,rgb565:Vc,"rgb5 a1":Tx},Kr={alpha:Yc,luminance:Gs,"luminance alpha":s0,rgb:Us,rgba:eo,rgba4:bd,"rgb5 a1":es,rgb565:Eu},cr={};re.ext_srgb&&(Kr.srgb=rs,Kr.srgba=Ml),re.oes_texture_float&&(mt.float32=mt.float=Zo),re.oes_texture_half_float&&(mt.float16=mt["half float"]=Lo),re.webgl_depth_texture&&(e(Kr,{depth:u0,"depth stencil":f0}),e(mt,{uint16:Jc,uint32:Td,"depth stencil":xd})),re.webgl_compressed_texture_s3tc&&e(cr,{"rgb s3tc dxt1":Xc,"rgba s3tc dxt1":c0,"rgba s3tc dxt3":Ys,"rgba s3tc dxt5":Wc}),re.webgl_compressed_texture_atc&&e(cr,{"rgb atc":tm,"rgba atc explicit alpha":_d,"rgba atc interpolated alpha":Zc}),re.webgl_compressed_texture_pvrtc&&e(cr,{"rgb pvrtc 4bppv1":am,"rgb pvrtc 2bppv1":nm,"rgba pvrtc 4bppv1":wd,"rgba pvrtc 2bppv1":im}),re.webgl_compressed_texture_etc1&&(cr["rgb etc1"]=Ad);var Re=Array.prototype.slice.call(H.getParameter(Ba));Object.keys(cr).forEach(function(ne){var Je=cr[ne];Re.indexOf(Je)>=0&&(Kr[ne]=Je)});var tr=Object.keys(Kr);ie.textureFormats=tr;var Cr=[];Object.keys(Kr).forEach(function(ne){var Je=Kr[ne];Cr[Je]=ne});var Br=[];Object.keys(mt).forEach(function(ne){var Je=mt[ne];Br[Je]=ne});var wr=[];Object.keys(Pr).forEach(function(ne){var Je=Pr[ne];wr[Je]=ne});var tt=[];Object.keys(Nr).forEach(function(ne){var Je=Nr[ne];tt[Je]=ne});var Qr=[];Object.keys(Rr).forEach(function(ne){var Je=Rr[ne];Qr[Je]=ne});var Dt=tr.reduce(function(ne,Je){var je=Kr[Je];return je===Gs||je===Yc||je===Gs||je===s0||je===u0||je===f0||re.ext_srgb&&(je===rs||je===Ml)?ne[je]=je:je===es||Je.indexOf("rgba")>=0?ne[je]=eo:ne[je]=Us,ne},{});function br(){this.internalformat=eo,this.format=eo,this.type=qu,this.compressed=!1,this.premultiplyAlpha=!1,this.flipY=!1,this.unpackAlignment=1,this.colorSpace=um,this.width=0,this.height=0,this.channels=0}function hr(ne,Je){ne.internalformat=Je.internalformat,ne.format=Je.format,ne.type=Je.type,ne.compressed=Je.compressed,ne.premultiplyAlpha=Je.premultiplyAlpha,ne.flipY=Je.flipY,ne.unpackAlignment=Je.unpackAlignment,ne.colorSpace=Je.colorSpace,ne.width=Je.width,ne.height=Je.height,ne.channels=Je.channels}function ht(ne,Je){if(!(typeof Je!="object"||!Je)){if("premultiplyAlpha"in Je&&(ne.premultiplyAlpha=Je.premultiplyAlpha),"flipY"in Je&&(ne.flipY=Je.flipY),"alignment"in Je&&(ne.unpackAlignment=Je.alignment),"colorSpace"in Je&&(ne.colorSpace=Ct[Je.colorSpace]),"type"in Je){var je=Je.type;ne.type=mt[je]}var wt=ne.width,fa=ne.height,Ya=ne.channels,xt=!1;"shape"in Je?(wt=Je.shape[0],fa=Je.shape[1],Je.shape.length===3&&(Ya=Je.shape[2],xt=!0)):("radius"in Je&&(wt=fa=Je.radius),"width"in Je&&(wt=Je.width),"height"in Je&&(fa=Je.height),"channels"in Je&&(Ya=Je.channels,xt=!0)),ne.width=wt|0,ne.height=fa|0,ne.channels=Ya|0;var Q=!1;if("format"in Je){var oe=Je.format,me=ne.internalformat=Kr[oe];ne.format=Dt[me],oe in mt&&("type"in Je||(ne.type=mt[oe])),oe in cr&&(ne.compressed=!0),Q=!0}!xt&&Q?ne.channels=uo[ne.format]:xt&&!Q&&ne.channels!==so[ne.format]&&(ne.format=ne.internalformat=so[ne.channels])}}function $r(ne){H.pixelStorei(Ex,ne.flipY),H.pixelStorei(sm,ne.premultiplyAlpha),H.pixelStorei(p0,ne.colorSpace),H.pixelStorei(Lx,ne.unpackAlignment)}function Gr(){br.call(this),this.xOffset=0,this.yOffset=0,this.data=null,this.needsFree=!1,this.element=null,this.needsCopy=!1}function Wr(ne,Je){var je=null;if(Sd(Je)?je=Je:Je&&(ht(ne,Je),"x"in Je&&(ne.xOffset=Je.x|0),"y"in Je&&(ne.yOffset=Je.y|0),Sd(Je.data)&&(je=Je.data)),Je.copy){var wt=We.viewportWidth,fa=We.viewportHeight;ne.width=ne.width||wt-ne.xOffset,ne.height=ne.height||fa-ne.yOffset,ne.needsCopy=!0}else if(!je)ne.width=ne.width||1,ne.height=ne.height||1,ne.channels=ne.channels||4;else if(qr(je))ne.channels=ne.channels||4,ne.data=je,!("type"in Je)&&ne.type===qu&&(ne.type=ym(je));else if(hm(je))ne.channels=ne.channels||4,zx(ne,je),ne.alignment=1,ne.needsFree=!0;else if(Or(je)){var Ya=je.data;!Array.isArray(Ya)&&ne.type===qu&&(ne.type=ym(Ya));var xt=je.shape,Q=je.stride,oe,me,Ze,Ke,ze,Pe;xt.length===3?(Ze=xt[2],Pe=Q[2]):(Ze=1,Pe=1),oe=xt[0],me=xt[1],Ke=Q[0],ze=Q[1],ne.alignment=1,ne.width=oe,ne.height=me,ne.channels=Ze,ne.format=ne.internalformat=so[Ze],ne.needsFree=!0,bm(ne,Ya,Ke,ze,Pe,je.offset)}else if(pm(je)||mm(je)||Fx(je))pm(je)||mm(je)?ne.element=je:ne.element=je.canvas,ne.width=ne.element.width,ne.height=ne.element.height,ne.channels=4;else if(Rx(je))ne.element=je,ne.width=je.width,ne.height=je.height,ne.channels=4;else if(Px(je))ne.element=je,ne.width=je.naturalWidth,ne.height=je.naturalHeight,ne.channels=4;else if(Nx(je))ne.element=je,ne.width=je.videoWidth,ne.height=je.videoHeight,ne.channels=4;else if(dm(je)){var ke=ne.width||je[0].length,ve=ne.height||je.length,_e=ne.channels;hn(je[0][0])?_e=_e||je[0][0].length:_e=_e||1;for(var ue=Tr.shape(je),Oe=1,ar=0;ar>=fa,je.height>>=fa,Wr(je,wt[fa]),ne.mipmask|=1<=0&&!("faces"in Je)&&(ne.genMipmaps=!0)}if("mag"in Je){var wt=Je.mag;ne.magFilter=Pr[wt]}var fa=ne.wrapS,Ya=ne.wrapT;if("wrap"in Je){var xt=Je.wrap;typeof xt=="string"?fa=Ya=Rr[xt]:Array.isArray(xt)&&(fa=Rr[xt[0]],Ya=Rr[xt[1]])}else{if("wrapS"in Je){var Q=Je.wrapS;fa=Rr[Q]}if("wrapT"in Je){var oe=Je.wrapT;Ya=Rr[oe]}}if(ne.wrapS=fa,ne.wrapT=Ya,"anisotropic"in Je){var me=Je.anisotropic;ne.anisotropic=Je.anisotropic}if("mipmap"in Je){var Ze=!1;switch(typeof Je.mipmap){case"string":ne.mipmapHint=gr[Je.mipmap],ne.genMipmaps=!0,Ze=!0;break;case"boolean":Ze=ne.genMipmaps=Je.mipmap;break;case"object":ne.genMipmaps=!1,Ze=!0;break;default:}Ze&&!("min"in Je)&&(ne.minFilter=h0)}}function to(ne,Je){H.texParameteri(Je,Sx,ne.minFilter),H.texParameteri(Je,v0,ne.magFilter),H.texParameteri(Je,Fu,ne.wrapS),H.texParameteri(Je,Mx,ne.wrapT),re.ext_texture_filter_anisotropic&&H.texParameteri(Je,Dx,ne.anisotropic),ne.genMipmaps&&(H.hint(lm,ne.mipmapHint),H.generateMipmap(Je))}var vo=0,ti={},ai=ie.maxTextureUnits,pi=Array(ai).map(function(){return null});function $t(ne){br.call(this),this.mipmask=0,this.internalformat=eo,this.id=vo++,this.refCount=1,this.target=ne,this.texture=H.createTexture(),this.unit=-1,this.bindCount=0,this.texInfo=new Ga,Ye.profile&&(this.stats={size:0})}function wi(ne){H.activeTexture(Xs),H.bindTexture(ne.target,ne.texture)}function Wa(){var ne=pi[0];ne?H.bindTexture(ne.target,ne.texture):H.bindTexture(Ua,null)}function ao(ne){var Je=ne.texture,je=ne.unit,wt=ne.target;je>=0&&(H.activeTexture(Xs+je),H.bindTexture(wt,null),pi[je]=null),H.deleteTexture(Je),ne.texture=null,ne.params=null,ne.pixels=null,ne.refCount=0,delete ti[ne.id],$e.textureCount--}e($t.prototype,{bind:function(){var ne=this;ne.bindCount+=1;var Je=ne.unit;if(Je<0){for(var je=0;je0)continue;wt.unit=-1}pi[je]=ne,Je=je;break}Je>=ai,Ye.profile&&$e.maxTextureUnits>ze)-Ze,Pe.height=Pe.height||(je.height>>ze)-Ke,wi(je),Lt(Pe,Ua,Ze,Ke,ze),Wa(),bt(Pe),wt}function Ya(xt,Q){var oe=xt|0,me=Q|0||oe;if(oe===je.width&&me===je.height)return wt;wt.width=je.width=oe,wt.height=je.height=me,wi(je);for(var Ze=0;je.mipmask>>Ze;++Ze){var Ke=oe>>Ze,ze=me>>Ze;if(!Ke||!ze)break;H.texImage2D(Ua,Ze,je.format,Ke,ze,0,je.format,je.type,null)}return Wa(),Ye.profile&&(je.stats.size=y0(je.internalformat,je.type,oe,me,!1,!1)),wt}return wt(ne,Je),wt.subimage=fa,wt.resize=Ya,wt._reglType="texture2d",wt._texture=je,Ye.profile&&(wt.stats=je.stats),wt.destroy=function(){je.decRef()},wt}function po(ne,Je,je,wt,fa,Ya){var xt=new $t(Bn);ti[xt.id]=xt,$e.cubeCount++;var Q=new Array(6);function oe(Ke,ze,Pe,ke,ve,_e){var ue,Oe=xt.texInfo;for(Ga.call(Oe),ue=0;ue<6;++ue)Q[ue]=la();if(typeof Ke=="number"||!Ke){var ar=Ke|0||1;for(ue=0;ue<6;++ue)Ht(Q[ue],ar,ar)}else if(typeof Ke=="object")if(ze)ta(Q[0],Ke),ta(Q[1],ze),ta(Q[2],Pe),ta(Q[3],ke),ta(Q[4],ve),ta(Q[5],_e);else if(Gi(Oe,Ke),ht(xt,Ke),"faces"in Ke){var Er=Ke.faces;for(ue=0;ue<6;++ue)hr(Q[ue],xt),ta(Q[ue],Er[ue])}else for(ue=0;ue<6;++ue)ta(Q[ue],Ke);for(hr(xt,Q[0]),Oe.genMipmaps?xt.mipmask=(Q[0].width<<1)-1:xt.mipmask=Q[0].mipmask,xt.internalformat=Q[0].internalformat,oe.width=Q[0].width,oe.height=Q[0].height,wi(xt),ue=0;ue<6;++ue)kn(Q[ue],qi+ue);for(to(Oe,Bn),Wa(),Ye.profile&&(xt.stats.size=y0(xt.internalformat,xt.type,oe.width,oe.height,Oe.genMipmaps,!0)),oe.format=Cr[xt.internalformat],oe.type=Br[xt.type],oe.mag=wr[Oe.magFilter],oe.min=tt[Oe.minFilter],oe.wrapS=Qr[Oe.wrapS],oe.wrapT=Qr[Oe.wrapT],ue=0;ue<6;++ue)co(Q[ue]);return oe}function me(Ke,ze,Pe,ke,ve){var _e=Pe|0,ue=ke|0,Oe=ve|0,ar=rt();return hr(ar,xt),ar.width=0,ar.height=0,Wr(ar,ze),ar.width=ar.width||(xt.width>>Oe)-_e,ar.height=ar.height||(xt.height>>Oe)-ue,wi(xt),Lt(ar,qi+Ke,_e,ue,Oe),Wa(),bt(ar),oe}function Ze(Ke){var ze=Ke|0;if(ze!==xt.width){oe.width=xt.width=ze,oe.height=xt.height=ze,wi(xt);for(var Pe=0;Pe<6;++Pe)for(var ke=0;xt.mipmask>>ke;++ke)H.texImage2D(qi+Pe,ke,xt.format,ze>>ke,ze>>ke,0,xt.format,xt.type,null);return Wa(),Ye.profile&&(xt.stats.size=y0(xt.internalformat,xt.type,oe.width,oe.height,!1,!0)),oe}}return oe(ne,Je,je,wt,fa,Ya),oe.subimage=me,oe.resize=Ze,oe._reglType="textureCube",oe._texture=xt,Ye.profile&&(oe.stats=xt.stats),oe.destroy=function(){xt.decRef()},oe}function Zt(){for(var ne=0;ne>wt,je.height>>wt,0,je.internalformat,je.type,null);else for(var fa=0;fa<6;++fa)H.texImage2D(qi+fa,wt,je.internalformat,je.width>>wt,je.height>>wt,0,je.internalformat,je.type,null);to(je.texInfo,je.target)})}function sn(){for(var ne=0;ne=0?co=!0:Rr.indexOf(Ga)>=0&&(co=!1))),("depthTexture"in $t||"depthStencilTexture"in $t)&&(pi=!!($t.depthTexture||$t.depthStencilTexture)),"depth"in $t&&(typeof $t.depth=="boolean"?kn=$t.depth:(vo=$t.depth,di=!1)),"stencil"in $t&&(typeof $t.stencil=="boolean"?di=$t.stencil:(ti=$t.stencil,kn=!1)),"depthStencil"in $t&&(typeof $t.depthStencil=="boolean"?kn=di=$t.depthStencil:(ai=$t.depthStencil,kn=!1,di=!1))}var Wa=null,ao=null,ho=null,po=null;if(Array.isArray(la))Wa=la.map(cr);else if(la)Wa=[cr(la)];else for(Wa=new Array(to),Ot=0;Ot0&&(bt.depth=Wr[0].depth,bt.stencil=Wr[0].stencil,bt.depthStencil=Wr[0].depthStencil),Wr[rt]?Wr[rt](bt):Wr[rt]=hr(bt)}return e(dt,{width:Ot,height:Ot,color:Ga})}function Lt(Vt){var rt,bt=Vt|0;if(bt===dt.width)return dt;var Ot=dt.color;for(rt=0;rt=Ot.byteLength?Ht.subdata(Ot):(Ht.destroy(),hr.buffers[Vt]=null)),hr.buffers[Vt]||(Ht=hr.buffers[Vt]=We.create(rt,qm,!1,!0)),bt.buffer=We.getBuffer(Ht),bt.size=bt.buffer.dimension|0,bt.normalized=!1,bt.type=bt.buffer.dtype,bt.offset=0,bt.stride=0,bt.divisor=0,bt.state=1,dt[Vt]=1}else We.getBuffer(rt)?(bt.buffer=We.getBuffer(rt),bt.size=bt.buffer.dimension|0,bt.normalized=!1,bt.type=bt.buffer.dtype,bt.offset=0,bt.stride=0,bt.divisor=0,bt.state=1):We.getBuffer(rt.buffer)?(bt.buffer=We.getBuffer(rt.buffer),bt.size=(+rt.size||bt.buffer.dimension)|0,bt.normalized=!!rt.normalized||!1,"type"in rt?bt.type=vi[rt.type]:bt.type=bt.buffer.dtype,bt.offset=(rt.offset||0)|0,bt.stride=(rt.stride||0)|0,bt.divisor=(rt.divisor||0)|0,bt.state=1):"x"in rt&&(bt.x=+rt.x||0,bt.y=+rt.y||0,bt.z=+rt.z||0,bt.w=+rt.w||0,bt.state=2)}for(var ta=0;ta1)for(var $r=0;$rRe&&(Re=tr.stats.uniformsCount)}),Re},ie.getMaxAttributesCount=function(){var Re=0;return Nr.forEach(function(tr){tr.stats.attributesCount>Re&&(Re=tr.stats.attributesCount)}),Re});function cr(){We={},$e={};for(var Re=0;Re16&&(ie=Iu(ie,H.length*8));for(var Be=Array(16),We=Array(16),$e=0;$e<16;$e++)Be[$e]=ie[$e]^909522486,We[$e]=ie[$e]^1549556828;var Ye=Iu(Be.concat(Nd(re)),512+re.length*8);return Hm(Iu(We.concat(Ye),768))}function Bm(H){for(var re=Nm?"0123456789ABCDEF":"0123456789abcdef",ie="",Be,We=0;We>>4&15)+re.charAt(Be&15);return ie}function Im(H){for(var re="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ie="",Be=H.length,We=0;WeH.length*8?ie+=Jx:ie+=re.charAt($e>>>6*(3-Ye)&63);return ie}function Om(H,re){var ie=re.length,Be=Array(),We,$e,Ye,gr,Rr=Array(Math.ceil(H.length/2));for(We=0;We0;){for(gr=Array(),Ye=0,We=0;We0||$e>0)&&(gr[gr.length]=$e);Be[Be.length]=Ye,Rr=gr}var Pr="";for(We=Be.length-1;We>=0;We--)Pr+=re.charAt(Be[We]);var Nr=Math.ceil(H.length*8/(Math.log(re.length)/Math.log(2)));for(We=Pr.length;We>>6&31,128|Be&63):Be<=65535?re+=String.fromCharCode(224|Be>>>12&15,128|Be>>>6&63,128|Be&63):Be<=2097151&&(re+=String.fromCharCode(240|Be>>>18&7,128|Be>>>12&63,128|Be>>>6&63,128|Be&63));return re}function Nd(H){for(var re=Array(H.length>>2),ie=0;ie>5]|=(H.charCodeAt(ie/8)&255)<<24-ie%32;return re}function Hm(H){for(var re="",ie=0;ie>5]>>>24-ie%32&255);return re}function jo(H,re){return H>>>re|H<<32-re}function Um(H,re){return H>>>re}function Gm(H,re,ie){return H&re^~H&ie}function Ym(H,re,ie){return H&re^H&ie^re&ie}function zd(H){return jo(H,2)^jo(H,13)^jo(H,22)}function Vm(H){return jo(H,6)^jo(H,11)^jo(H,25)}function av(H){return jo(H,7)^jo(H,18)^Um(H,3)}function nv(H){return jo(H,17)^jo(H,19)^Um(H,10)}var Qx=new Array(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);function Iu(H,re){var ie=new Array(1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225),Be=new Array(64),We,$e,Ye,gr,Rr,Pr,Nr,Ct,mt,Kr,cr,Re;for(H[re>>5]|=128<<24-re%32,H[(re+64>>9<<4)+15]=re,mt=0;mt>16)+(re>>16)+(ie>>16);return Be<<16|ie&65535}function Ou(H){return Array.prototype.slice.call(H)}function Hu(H){return Ou(H).join("")}function Xm(H){var re=H&&H.cache,ie=0,Be=[],We=[],$e=[];function Ye(cr,Re){var tr=Re&&Re.stable;if(!tr){for(var Cr=0;Cr0&&(cr.push(Br,"="),cr.push.apply(cr,Ou(arguments)),cr.push(";")),Br}return e(Re,{def:Cr,toString:function(){return Hu([tr.length>0?"var "+tr.join(",")+";":"",Hu(cr)])}})}function Rr(){var cr=gr(),Re=gr(),tr=cr.toString,Cr=Re.toString;function Br(wr,tt){Re(wr,tt,"=",cr.def(wr,tt),";")}return e(function(){cr.apply(cr,Ou(arguments))},{def:cr.def,entry:cr,exit:Re,save:Br,set:function(wr,tt,Qr){Br(wr,tt),cr(wr,tt,"=",Qr,";")},toString:function(){return tr()+Cr()}})}function Pr(){var cr=Hu(arguments),Re=Rr(),tr=Rr(),Cr=Re.toString,Br=tr.toString;return e(Re,{then:function(){return Re.apply(Re,Ou(arguments)),this},else:function(){return tr.apply(tr,Ou(arguments)),this},toString:function(){var wr=Br();return wr&&(wr="else{"+wr+"}"),Hu(["if(",cr,"){",Cr(),"}",wr])}})}var Nr=gr(),Ct={};function mt(cr,Re){var tr=[];function Cr(){var Dt="a"+tr.length;return tr.push(Dt),Dt}Re=Re||0;for(var Br=0;Br[b.viewport.x,b.viewport.y,y.viewportWidth,y.viewportHeight]},attributes:{color:{buffer:o,offset:(y,b)=>b.offset*4,divisor:1},position:{buffer:n,offset:(y,b)=>b.offset*8,divisor:1},positionFract:{buffer:i,offset:(y,b)=>b.offset*8,divisor:1},error:{buffer:l,offset:(y,b)=>b.offset*16,divisor:1},direction:{buffer:s,stride:24,offset:0},lineOffset:{buffer:s,stride:24,offset:8},capOffset:{buffer:s,stride:24,offset:16}},primitive:"triangles",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:!1},scissor:{enable:!0,box:e.prop("viewport")},viewport:e.prop("viewport"),stencil:!1,instances:e.prop("count"),count:W$.length}),V$(c,{update:p,draw:v,destroy:m,regl:e,gl:t,canvas:t.canvas,groups:f}),c;function c(y){y?p(y):y===null&&m(),v()}function v(y){if(typeof y=="number")return d(y);y&&!Array.isArray(y)&&(y=[y]),e._refresh(),f.forEach((b,T)=>{if(b){if(y&&(y[T]?b.draw=!0:b.draw=!1),!b.draw){b.draw=!0;return}d(T)}})}function d(y){typeof y=="number"&&(y=f[y]),y!=null&&y&&y.count&&y.color&&y.opacity&&y.positions&&y.positions.length>1&&(y.scaleRatio=[y.scale[0]*y.viewport.width,y.scale[1]*y.viewport.height],a(y),y.after&&y.after(y))}function p(y){if(!y)return;y.length!=null?typeof y[0]=="number"&&(y=[{positions:y}]):Array.isArray(y)||(y=[y]);let b=0,T=0;if(c.groups=f=y.map((w,k)=>{let M=f[k];if(w)typeof w=="function"?w={after:w}:typeof w[0]=="number"&&(w={positions:w});else return M;return w=MMe(w,{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"}),M||(f[k]=M={id:k,scale:null,translate:null,scaleFract:null,translateFract:null,draw:!0},w=V$({},u,w)),TMe(M,w,[{lineWidth:C=>+C*.5,capSize:C=>+C*.5,opacity:parseFloat,errors:C=>(C=X$(C),T+=C.length,C),positions:(C,E)=>(C=X$(C,"float64"),E.count=Math.floor(C.length/2),E.bounds=wMe(C,2),E.offset=b,b+=E.count,C)},{color:(C,E)=>{let F=E.count;if(C||(C="transparent"),!Array.isArray(C)||typeof C[0]=="number"){let q=C;C=Array(F);for(let z=0;z{let P=E.bounds;return C||(C=P),E.scale=[1/(C[2]-C[0]),1/(C[3]-C[1])],E.translate=[-C[0],-C[1]],E.scaleFract=bT(E.scale),E.translateFract=bT(E.translate),C},viewport:C=>{let E;return Array.isArray(C)?E={x:C[0],y:C[1],width:C[2]-C[0],height:C[3]-C[1]}:C?(E={x:C.x||C.left||0,y:C.y||C.top||0},C.right?E.width=C.right-E.x:E.width=C.w||C.width||0,C.bottom?E.height=C.bottom-E.y:E.height=C.h||C.height||0):E={x:0,y:0,width:t.drawingBufferWidth,height:t.drawingBufferHeight},E}}]),M}),b||T){let w=f.reduce((E,F,P)=>E+(F?F.count:0),0),k=new Float64Array(w*2),M=new Uint8Array(w*4),C=new Float32Array(w*4);f.forEach((E,F)=>{if(!E)return;let{positions:P,count:q,offset:z,color:I,errors:U}=E;q&&(M.set(I,z*4),C.set(U,z*4),k.set(P,z*2))});var _=kMe(k);n(_);var x=bT(k,_);i(x),o(M),l(C)}}function m(){n.destroy(),i.destroy(),o.destroy(),l.destroy(),s.destroy()}}});var K$=B((QBe,$$)=>{var j$=/[\'\"]/;$$.exports=function(r){return r?(j$.test(r.charAt(0))&&(r=r.substr(1)),j$.test(r.charAt(r.length-1))&&(r=r.substr(0,r.length-1)),r):""}});var xT=B((eIe,CMe)=>{CMe.exports=["inherit","initial","unset"]});var _T=B((rIe,DMe)=>{DMe.exports=["caption","icon","menu","message-box","small-caption","status-bar"]});var wT=B((tIe,LMe)=>{LMe.exports=["normal","bold","bolder","lighter","100","200","300","400","500","600","700","800","900"]});var AT=B((aIe,EMe)=>{EMe.exports=["normal","italic","oblique"]});var TT=B((nIe,qMe)=>{qMe.exports=["normal","condensed","semi-condensed","extra-condensed","ultra-condensed","expanded","semi-expanded","extra-expanded","ultra-expanded"]});var tK=B((iIe,rK)=>{"use strict";function Q$(e,r){if(typeof e!="string")return[e];var t=[e];typeof r=="string"||Array.isArray(r)?r={brackets:r}:r||(r={});var a=r.brackets?Array.isArray(r.brackets)?r.brackets:[r.brackets]:["{}","[]","()"],n=r.escape||"___",i=!!r.flat;a.forEach(function(s){var u=new RegExp(["\\",s[0],"[^\\",s[0],"\\",s[1],"]*\\",s[1]].join("")),f=[];function c(v,d,p){var m=t.push(v.slice(s[0].length,-s[1].length))-1;return f.push(m),n+m+n}t.forEach(function(v,d){for(var p,m=0;v!=p;)if(p=v,v=v.replace(u,c),m++>1e4)throw Error("References have circular dependency. Please, check them.");t[d]=v}),f=f.reverse(),t=t.map(function(v){return f.forEach(function(d){v=v.replace(new RegExp("(\\"+n+d+"\\"+n+")","g"),s[0]+"$1"+s[1])}),v})});var o=new RegExp("\\"+n+"([0-9]+)\\"+n);function l(s,u,f){for(var c=[],v,d=0;v=o.exec(s);){if(d++>1e4)throw Error("Circular references in parenthesis");c.push(s.slice(0,v.index)),c.push(l(u[v[1]],u)),s=s.slice(v.index+v[0].length)}return c.push(s),c}return i?t:l(t[0],t)}function eK(e,r){if(r&&r.flat){var t=r&&r.escape||"___",a=e[0],n;if(!a)return"";for(var i=new RegExp("\\"+t+"([0-9]+)\\"+t),o=0;a!=n;){if(o++>1e4)throw Error("Circular references in "+e);n=a,a=a.replace(i,l)}return a}return e.reduce(function s(u,f){return Array.isArray(f)&&(f=f.reduce(s,"")),u+f},"");function l(s,u){if(e[u]==null)throw Error("Reference "+u+"is undefined");return e[u]}}function MT(e,r){return Array.isArray(e)?eK(e,r):Q$(e,r)}MT.parse=Q$;MT.stringify=eK;rK.exports=MT});var iK=B((oIe,nK)=>{"use strict";var aK=tK();nK.exports=function(r,t,a){if(r==null)throw Error("First argument should be a string");if(t==null)throw Error("Separator should be a string or a RegExp");a?(typeof a=="string"||Array.isArray(a))&&(a={ignore:a}):a={},a.escape==null&&(a.escape=!0),a.ignore==null?a.ignore=["[]","()","{}","<>",'""',"''","``","\u201C\u201D","\xAB\xBB"]:(typeof a.ignore=="string"&&(a.ignore=[a.ignore]),a.ignore=a.ignore.map(function(c){return c.length===1&&(c=c+c),c}));var n=aK.parse(r,{flat:!0,brackets:a.ignore}),i=n[0],o=i.split(t);if(a.escape){for(var l=[],s=0;s{FMe.exports=["xx-small","x-small","small","medium","large","x-large","xx-large","larger","smaller"]});var kT=B((sIe,lK)=>{"use strict";var RMe=oK();lK.exports={isSize:function(r){return/^[\d\.]/.test(r)||r.indexOf("/")!==-1||RMe.indexOf(r)!==-1}}});var cK=B((uIe,fK)=>{"use strict";var PMe=K$(),NMe=xT(),zMe=_T(),BMe=wT(),IMe=AT(),OMe=TT(),ST=iK(),HMe=kT().isSize;fK.exports=uK;var zp=uK.cache={};function uK(e){if(typeof e!="string")throw new Error("Font argument must be a string.");if(zp[e])return zp[e];if(e==="")throw new Error("Cannot parse an empty string.");if(zMe.indexOf(e)!==-1)return zp[e]={system:e};for(var r={style:"normal",variant:"normal",weight:"normal",stretch:"normal",lineHeight:"normal",size:"1rem",family:["serif"]},t=ST(e,/\s+/),a;a=t.shift();){if(NMe.indexOf(a)!==-1)return["style","variant","weight","stretch"].forEach(function(i){r[i]=a}),zp[e]=r;if(IMe.indexOf(a)!==-1){r.style=a;continue}if(a==="normal"||a==="small-caps"){r.variant=a;continue}if(OMe.indexOf(a)!==-1){r.stretch=a;continue}if(BMe.indexOf(a)!==-1){r.weight=a;continue}if(HMe(a)){var n=ST(a,"/");if(r.size=n[0],n[1]!=null?r.lineHeight=sK(n[1]):t[0]==="/"&&(t.shift(),r.lineHeight=sK(t.shift())),!t.length)throw new Error("Missing required font-family.");return r.family=ST(t.join(" "),/\s*,\s*/).map(PMe),zp[e]=r}throw new Error("Unknown or unsupported font token: "+a)}throw new Error("Missing required font-size.")}function sK(e){var r=parseFloat(e);return r.toString()===e?r:e}});var DT=B((fIe,vK)=>{"use strict";var UMe=Ns(),GMe=kT().isSize,YMe=Ip(xT()),VMe=Ip(_T()),XMe=Ip(wT()),WMe=Ip(AT()),ZMe=Ip(TT()),JMe={normal:1,"small-caps":1},jMe={serif:1,"sans-serif":1,monospace:1,cursive:1,fantasy:1,"system-ui":1},CT={style:"normal",variant:"normal",weight:"normal",stretch:"normal",size:"1rem",lineHeight:"normal",family:"serif"};vK.exports=function(r){if(r=UMe(r,{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"}),r.system)return r.system&&Bp(r.system,VMe),r.system;if(Bp(r.style,WMe),Bp(r.variant,JMe),Bp(r.weight,XMe),Bp(r.stretch,ZMe),r.size==null&&(r.size=CT.size),typeof r.size=="number"&&(r.size+="px"),!GMe)throw Error("Bad size value `"+r.size+"`");r.family||(r.family=CT.family),Array.isArray(r.family)&&(r.family.length||(r.family=[CT.family]),r.family=r.family.map(function(a){return jMe[a]?a:'"'+a+'"'}).join(", "));var t=[];return t.push(r.style),r.variant!==r.style&&t.push(r.variant),r.weight!==r.variant&&r.weight!==r.style&&t.push(r.weight),r.stretch!==r.weight&&r.stretch!==r.variant&&r.stretch!==r.style&&t.push(r.stretch),t.push(r.size+(r.lineHeight==null||r.lineHeight==="normal"||r.lineHeight+""=="1"?"":"/"+r.lineHeight)),t.push(r.family),t.filter(Boolean).join(" ")};function Bp(e,r){if(e&&!r[e]&&!YMe[e])throw Error("Unknown keyword `"+e+"`");return e}function Ip(e){for(var r={},t=0;t{"use strict";hK.exports={parse:cK(),stringify:DT()}});var qT=B((LT,ET)=>{(function(e,r){typeof LT=="object"&&typeof ET!="undefined"?ET.exports=r():e.createREGL=r()})(LT,(function(){"use strict";var e=function(H,te){for(var ie=Object.keys(te),Be=0;Be1&&te===ie&&(te==='"'||te==="'"))return['"'+o(H.substr(1,H.length-2))+'"'];var Be=/\[(false|true|null|\d+|'[^']*'|"[^"]*")\]/.exec(H);if(Be)return l(H.substr(0,Be.index)).concat(l(Be[1])).concat(l(H.substr(Be.index+Be[0].length)));var Ze=H.split(".");if(Ze.length===1)return['"'+o(H)+'"'];for(var Qe=[],Xe=0;Xe65535)<<4,H>>>=te,ie=(H>255)<<3,H>>>=ie,te|=ie,ie=(H>15)<<2,H>>>=ie,te|=ie,ie=(H>3)<<1,H>>>=ie,te|=ie,te|H>>1}function G(){var H=C(8,function(){return[]});function te(Qe){var Xe=V(Qe),yr=H[W(Xe)>>2];return yr.length>0?yr.pop():new ArrayBuffer(Xe)}function ie(Qe){H[W(Qe.byteLength)>>2].push(Qe)}function Be(Qe,Xe){var yr=null;switch(Qe){case E:yr=new Int8Array(te(Xe),0,Xe);break;case F:yr=new Uint8Array(te(Xe),0,Xe);break;case P:yr=new Int16Array(te(2*Xe),0,Xe);break;case q:yr=new Uint16Array(te(2*Xe),0,Xe);break;case z:yr=new Int32Array(te(4*Xe),0,Xe);break;case I:yr=new Uint32Array(te(4*Xe),0,Xe);break;case U:yr=new Float32Array(te(4*Xe),0,Xe);break;default:return null}return yr.length!==Xe?yr.subarray(0,Xe):yr}function Ze(Qe){ie(Qe.buffer)}return{alloc:te,free:ie,allocType:Be,freeType:Ze}}var Y=G();Y.zero=G();var Z=3408,j=3410,ee=3411,ye=3412,fe=3413,he=3414,ae=3415,Le=33901,ce=33902,Fe=3379,Re=3386,ge=34921,He=36347,ur=36348,qe=35661,Ue=35660,Ye=34930,We=36349,Ve=34076,ar=34024,Ie=7936,_r=7937,Pr=7938,Br=35724,$e=34047,mr=36063,Yr=34852,ue=3553,Ee=34067,Tr=34069,rt=33984,ot=6408,pe=5126,Ce=5121,lr=36160,wr=36053,fr=36064,kr=16384,qr=function(H,te){var ie=1;te.ext_texture_filter_anisotropic&&(ie=H.getParameter($e));var Be=1,Ze=1;te.webgl_draw_buffers&&(Be=H.getParameter(Yr),Ze=H.getParameter(mr));var Qe=!!te.oes_texture_float;if(Qe){var Xe=H.createTexture();H.bindTexture(ue,Xe),H.texImage2D(ue,0,ot,1,1,0,ot,pe,null);var yr=H.createFramebuffer();if(H.bindFramebuffer(lr,yr),H.framebufferTexture2D(lr,fr,ue,Xe,0),H.bindTexture(ue,null),H.checkFramebufferStatus(lr)!==wr)Qe=!1;else{H.viewport(0,0,1,1),H.clearColor(1,0,0,1),H.clear(kr);var Lr=Y.allocType(pe,4);H.readPixels(0,0,1,1,ot,pe,Lr),H.getError()?Qe=!1:(H.deleteFramebuffer(yr),H.deleteTexture(Xe),Qe=Lr[0]===1),Y.freeType(Lr)}}var Er=typeof navigator!="undefined"&&(/MSIE/.test(navigator.userAgent)||/Trident\//.test(navigator.appVersion)||/Edge/.test(navigator.userAgent)),Fr=!0;if(!Er){var Ct=H.createTexture(),mt=Y.allocType(Ce,36);H.activeTexture(rt),H.bindTexture(Ee,Ct),H.texImage2D(Tr,0,ot,3,3,0,ot,Ce,mt),Y.freeType(mt),H.bindTexture(Ee,null),H.deleteTexture(Ct),Fr=!H.getError()}return{colorBits:[H.getParameter(j),H.getParameter(ee),H.getParameter(ye),H.getParameter(fe)],depthBits:H.getParameter(he),stencilBits:H.getParameter(ae),subpixelBits:H.getParameter(Z),extensions:Object.keys(te).filter(function(jr){return!!te[jr]}),maxAnisotropic:ie,maxDrawbuffers:Be,maxColorAttachments:Ze,pointSizeDims:H.getParameter(Le),lineWidthDims:H.getParameter(ce),maxViewportDims:H.getParameter(Re),maxCombinedTextureUnits:H.getParameter(qe),maxCubeMapSize:H.getParameter(Ve),maxRenderbufferSize:H.getParameter(ar),maxTextureUnits:H.getParameter(Ye),maxTextureSize:H.getParameter(Fe),maxAttributes:H.getParameter(ge),maxVertexUniforms:H.getParameter(He),maxVertexTextureUnits:H.getParameter(Ue),maxVaryingVectors:H.getParameter(ur),maxFragmentUniforms:H.getParameter(We),glsl:H.getParameter(Br),renderer:H.getParameter(_r),vendor:H.getParameter(Ie),version:H.getParameter(Pr),readFloat:Qe,npotTextureCube:Fr}},$r=function(H){return H instanceof Uint8Array||H instanceof Uint16Array||H instanceof Uint32Array||H instanceof Int8Array||H instanceof Int16Array||H instanceof Int32Array||H instanceof Float32Array||H instanceof Float64Array||H instanceof Uint8ClampedArray};function tt(H){return!!H&&typeof H=="object"&&Array.isArray(H.shape)&&Array.isArray(H.stride)&&typeof H.offset=="number"&&H.shape.length===H.stride.length&&(Array.isArray(H.data)||$r(H.data))}var Ge=function(H){return Object.keys(H).map(function(te){return H[te]})},Mr={shape:le,flatten:lt};function rr(H,te,ie){for(var Be=0;Be0){var Dt;if(Array.isArray(nr[0])){Kr=si(nr);for(var gr=1,dr=1;dr0){if(typeof gr[0]=="number"){var Ur=Y.allocType(xr.dtype,gr.length);za(Ur,gr),Kr(Ur,ht),Y.freeType(Ur)}else if(Array.isArray(gr[0])||$r(gr[0])){Jr=si(gr);var Vr=gn(gr,Jr,xr.dtype);Kr(Vr,ht),Y.freeType(Vr)}}}else if(tt(gr)){Jr=gr.shape;var dt=gr.stride,Lt=0,Vt=0,et=0,bt=0;Jr.length===1?(Lt=Jr[0],Vt=1,et=dt[0],bt=0):Jr.length===2&&(Lt=Jr[0],Vt=Jr[1],et=dt[0],bt=dt[1]);var Ot=Array.isArray(gr.data)?xr.dtype:Aa(gr.data),Ht=Y.allocType(Ot,Lt*Vt);Vn(Ht,gr.data,Lt,Vt,et,bt,gr.offset),Kr(Ht,ht),Y.freeType(Ht)}return it}return Sr||it(Pe),it._reglType="buffer",it._buffer=xr,it.subdata=Dt,ie.profile&&(it.stats=xr.stats),it.destroy=function(){mt(xr)},it}function cr(){Ge(Qe).forEach(function(Pe){Pe.buffer=H.createBuffer(),H.bindBuffer(Pe.type,Pe.buffer),H.bufferData(Pe.type,Pe.persistentData||Pe.byteLength,Pe.usage)})}return ie.profile&&(te.getTotalBufferSize=function(){var Pe=0;return Object.keys(Qe).forEach(function(nr){Pe+=Qe[nr].stats.size}),Pe}),{create:jr,createStream:Lr,destroyStream:Er,clear:function(){Ge(Qe).forEach(mt),yr.forEach(mt)},getBuffer:function(Pe){return Pe&&Pe._buffer instanceof Xe?Pe._buffer:null},restore:cr,_initBuffer:Ct}}var Da=0,Ln=0,Fo=1,Qo=1,co=4,Mn=4,as={points:Da,point:Ln,lines:Fo,line:Qo,triangles:co,triangle:Mn,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},$n=0,ns=1,Ro=4,Kn=5120,kl=5121,Ys=5122,Po=5123,Sl=5124,Cl=5125,Pu=34963,Vc=35040,u0=35044;function f0(H,te,ie,Be){var Ze={},Qe=0,Xe={uint8:kl,uint16:Po};te.oes_element_index_uint&&(Xe.uint32=Cl);function yr(cr){this.id=Qe++,Ze[this.id]=this,this.buffer=cr,this.primType=Ro,this.vertCount=0,this.type=0}yr.prototype.bind=function(){this.buffer.bind()};var Lr=[];function Er(cr){var Pe=Lr.pop();return Pe||(Pe=new yr(ie.create(null,Pu,!0,!1)._buffer)),Ct(Pe,cr,Vc,-1,-1,0,0),Pe}function Fr(cr){Lr.push(cr)}function Ct(cr,Pe,nr,Sr,zr,xr,it){cr.buffer.bind();var Kr;if(Pe){var Dt=it;!it&&(!$r(Pe)||tt(Pe)&&!$r(Pe.data))&&(Dt=te.oes_element_index_uint?Cl:Po),ie._initBuffer(cr.buffer,Pe,nr,Dt,3)}else H.bufferData(Pu,xr,nr),cr.buffer.dtype=Kr||kl,cr.buffer.usage=nr,cr.buffer.dimension=3,cr.buffer.byteLength=xr;if(Kr=it,!it){switch(cr.buffer.dtype){case kl:case Kn:Kr=kl;break;case Po:case Ys:Kr=Po;break;case Cl:case Sl:Kr=Cl;break;default:}cr.buffer.dtype=Kr}cr.type=Kr;var gr=zr;gr<0&&(gr=cr.buffer.byteLength,Kr===Po?gr>>=1:Kr===Cl&&(gr>>=2)),cr.vertCount=gr;var dr=Sr;if(Sr<0){dr=Ro;var ht=cr.buffer.dimension;ht===1&&(dr=$n),ht===2&&(dr=ns),ht===3&&(dr=Ro)}cr.primType=dr}function mt(cr){Be.elementsCount--,delete Ze[cr.id],cr.buffer.destroy(),cr.buffer=null}function jr(cr,Pe){var nr=ie.create(null,Pu,!0),Sr=new yr(nr._buffer);Be.elementsCount++;function zr(xr){if(!xr)nr(),Sr.primType=Ro,Sr.vertCount=0,Sr.type=kl;else if(typeof xr=="number")nr(xr),Sr.primType=Ro,Sr.vertCount=xr|0,Sr.type=kl;else{var it=null,Kr=u0,Dt=-1,gr=-1,dr=0,ht=0;Array.isArray(xr)||$r(xr)||tt(xr)?it=xr:("data"in xr&&(it=xr.data),"usage"in xr&&(Kr=fn[xr.usage]),"primitive"in xr&&(Dt=as[xr.primitive]),"count"in xr&&(gr=xr.count|0),"type"in xr&&(ht=Xe[xr.type]),"length"in xr?dr=xr.length|0:(dr=gr,ht===Po||ht===Ys?dr*=2:(ht===Cl||ht===Sl)&&(dr*=4))),Ct(Sr,it,Kr,Dt,gr,dr,ht)}return zr}return zr(cr),zr._reglType="elements",zr._elements=Sr,zr.subdata=function(xr,it){return nr.subdata(xr,it),zr},zr.destroy=function(){mt(Sr)},zr}return{create:jr,createStream:Er,destroyStream:Fr,getElements:function(cr){return typeof cr=="function"&&cr._elements instanceof yr?cr._elements:null},clear:function(){Ge(Ze).forEach(mt)}}}var kt=new Float32Array(1),St=new Uint32Array(kt.buffer),xa=5123;function Wr(H){for(var te=Y.allocType(xa,H.length),ie=0;ie>>31<<15,Qe=(Be<<1>>>24)-127,Xe=Be>>13&1023;if(Qe<-24)te[ie]=Ze;else if(Qe<-14){var yr=-14-Qe;te[ie]=Ze+(Xe+1024>>yr)}else Qe>15?te[ie]=Ze+31744:te[ie]=Ze+(Qe+15<<10)+Xe}return te}function xn(H){return Array.isArray(H)||$r(H)}var Ba=34467,Ua=3553,Xn=34067,Ni=34069,no=6408,Xc=6406,Vs=6407,Xs=6409,c0=6410,yd=32854,is=32855,Nu=36194,rm=32819,Dx=32820,Wc=33635,gd=34042,v0=6402,h0=34041,os=35904,Dl=35906,No=36193,Zc=33776,d0=33777,Ws=33778,Jc=33779,tm=35986,bd=35987,jc=34798,am=35840,nm=35841,xd=35842,im=35843,_d=36196,zu=5121,$c=5123,wd=5125,el=5126,Bu=10242,Lx=10243,Ex=10497,Ad=33071,om=33648,p0=10240,qx=10241,Iu=9728,Kc=9729,m0=9984,y0=9985,Ou=9986,Zs=9987,lm=33170,Hu=4352,Fx=4353,Qc=4354,Rx=34046,Px=3317,Nx=37440,sm=37441,g0=37443,um=37444,Js=33984,fm=[m0,Ou,y0,Zs],vo=[0,Xs,c0,Vs,no],ho={};ho[Xs]=ho[Xc]=ho[v0]=1,ho[h0]=ho[c0]=2,ho[Vs]=ho[os]=3,ho[no]=ho[Dl]=4;function ls(H){return"[object "+H+"]"}var ev=ls("HTMLCanvasElement"),ss=ls("OffscreenCanvas"),b0=ls("CanvasRenderingContext2D"),Td=ls("ImageBitmap"),cm=ls("HTMLImageElement"),vm=ls("HTMLVideoElement"),zx=Object.keys(Te).concat([ev,ss,b0,Td,cm,vm]),js=[];js[zu]=1,js[el]=4,js[No]=2,js[$c]=2,js[wd]=4;var Qn=[];Qn[yd]=2,Qn[is]=2,Qn[Nu]=2,Qn[h0]=4,Qn[Zc]=.5,Qn[d0]=.5,Qn[Ws]=1,Qn[Jc]=1,Qn[tm]=.5,Qn[bd]=1,Qn[jc]=1,Qn[am]=.5,Qn[nm]=.25,Qn[xd]=.5,Qn[im]=.25,Qn[_d]=.5;function hm(H){return Array.isArray(H)&&(H.length===0||typeof H[0]=="number")}function dm(H){if(!Array.isArray(H))return!1;var te=H.length;return!(te===0||!xn(H[0]))}function $s(H){return Object.prototype.toString.call(H)}function pm(H){return $s(H)===ev}function mm(H){return $s(H)===ss}function Bx(H){return $s(H)===b0}function Ix(H){return $s(H)===Td}function Ox(H){return $s(H)===cm}function Hx(H){return $s(H)===vm}function Md(H){if(!H)return!1;var te=$s(H);return zx.indexOf(te)>=0?!0:hm(H)||dm(H)||tt(H)}function ym(H){return Te[Object.prototype.toString.call(H)]|0}function Ux(H,te){var ie=te.length;switch(H.type){case zu:case $c:case wd:case el:var Be=Y.allocType(H.type,ie);Be.set(te),H.data=Be;break;case No:H.data=Wr(te);break;default:}}function gm(H,te){return Y.allocType(H.type===No?el:H.type,te)}function kd(H,te){H.type===No?(H.data=Wr(te),Y.freeType(te)):H.data=te}function bm(H,te,ie,Be,Ze,Qe){for(var Xe=H.width,yr=H.height,Lr=H.channels,Er=Xe*yr*Lr,Fr=gm(H,Er),Ct=0,mt=0;mt=1;)yr+=Xe*Lr*Lr,Lr/=2;return yr}else return Xe*ie*Be}function xm(H,te,ie,Be,Ze,Qe,Xe){var yr={"don't care":Hu,"dont care":Hu,nice:Qc,fast:Fx},Lr={repeat:Ex,clamp:Ad,mirror:om},Er={nearest:Iu,linear:Kc},Fr=e({mipmap:Zs,"nearest mipmap nearest":m0,"linear mipmap nearest":y0,"nearest mipmap linear":Ou,"linear mipmap linear":Zs},Er),Ct={none:0,browser:um},mt={uint8:zu,rgba4:rm,rgb565:Wc,"rgb5 a1":Dx},jr={alpha:Xc,luminance:Xs,"luminance alpha":c0,rgb:Vs,rgba:no,rgba4:yd,"rgb5 a1":is,rgb565:Nu},cr={};te.ext_srgb&&(jr.srgb=os,jr.srgba=Dl),te.oes_texture_float&&(mt.float32=mt.float=el),te.oes_texture_half_float&&(mt.float16=mt["half float"]=No),te.webgl_depth_texture&&(e(jr,{depth:v0,"depth stencil":h0}),e(mt,{uint16:$c,uint32:wd,"depth stencil":gd})),te.webgl_compressed_texture_s3tc&&e(cr,{"rgb s3tc dxt1":Zc,"rgba s3tc dxt1":d0,"rgba s3tc dxt3":Ws,"rgba s3tc dxt5":Jc}),te.webgl_compressed_texture_atc&&e(cr,{"rgb atc":tm,"rgba atc explicit alpha":bd,"rgba atc interpolated alpha":jc}),te.webgl_compressed_texture_pvrtc&&e(cr,{"rgb pvrtc 4bppv1":am,"rgb pvrtc 2bppv1":nm,"rgba pvrtc 4bppv1":xd,"rgba pvrtc 2bppv1":im}),te.webgl_compressed_texture_etc1&&(cr["rgb etc1"]=_d);var Pe=Array.prototype.slice.call(H.getParameter(Ba));Object.keys(cr).forEach(function(ne){var je=cr[ne];Pe.indexOf(je)>=0&&(jr[ne]=je)});var nr=Object.keys(jr);ie.textureFormats=nr;var Sr=[];Object.keys(jr).forEach(function(ne){var je=jr[ne];Sr[je]=ne});var zr=[];Object.keys(mt).forEach(function(ne){var je=mt[ne];zr[je]=ne});var xr=[];Object.keys(Er).forEach(function(ne){var je=Er[ne];xr[je]=ne});var it=[];Object.keys(Fr).forEach(function(ne){var je=Fr[ne];it[je]=ne});var Kr=[];Object.keys(Lr).forEach(function(ne){var je=Lr[ne];Kr[je]=ne});var Dt=nr.reduce(function(ne,je){var Ke=jr[je];return Ke===Xs||Ke===Xc||Ke===Xs||Ke===c0||Ke===v0||Ke===h0||te.ext_srgb&&(Ke===os||Ke===Dl)?ne[Ke]=Ke:Ke===is||je.indexOf("rgba")>=0?ne[Ke]=no:ne[Ke]=Vs,ne},{});function gr(){this.internalformat=no,this.format=no,this.type=zu,this.compressed=!1,this.premultiplyAlpha=!1,this.flipY=!1,this.unpackAlignment=1,this.colorSpace=um,this.width=0,this.height=0,this.channels=0}function dr(ne,je){ne.internalformat=je.internalformat,ne.format=je.format,ne.type=je.type,ne.compressed=je.compressed,ne.premultiplyAlpha=je.premultiplyAlpha,ne.flipY=je.flipY,ne.unpackAlignment=je.unpackAlignment,ne.colorSpace=je.colorSpace,ne.width=je.width,ne.height=je.height,ne.channels=je.channels}function ht(ne,je){if(!(typeof je!="object"||!je)){if("premultiplyAlpha"in je&&(ne.premultiplyAlpha=je.premultiplyAlpha),"flipY"in je&&(ne.flipY=je.flipY),"alignment"in je&&(ne.unpackAlignment=je.alignment),"colorSpace"in je&&(ne.colorSpace=Ct[je.colorSpace]),"type"in je){var Ke=je.type;ne.type=mt[Ke]}var wt=ne.width,ha=ne.height,Ya=ne.channels,xt=!1;"shape"in je?(wt=je.shape[0],ha=je.shape[1],je.shape.length===3&&(Ya=je.shape[2],xt=!0)):("radius"in je&&(wt=ha=je.radius),"width"in je&&(wt=je.width),"height"in je&&(ha=je.height),"channels"in je&&(Ya=je.channels,xt=!0)),ne.width=wt|0,ne.height=ha|0,ne.channels=Ya|0;var Q=!1;if("format"in je){var oe=je.format,be=ne.internalformat=jr[oe];ne.format=Dt[be],oe in mt&&("type"in je||(ne.type=mt[oe])),oe in cr&&(ne.compressed=!0),Q=!0}!xt&&Q?ne.channels=ho[ne.format]:xt&&!Q&&ne.channels!==vo[ne.format]&&(ne.format=ne.internalformat=vo[ne.channels])}}function Jr(ne){H.pixelStorei(Nx,ne.flipY),H.pixelStorei(sm,ne.premultiplyAlpha),H.pixelStorei(g0,ne.colorSpace),H.pixelStorei(Px,ne.unpackAlignment)}function Ur(){gr.call(this),this.xOffset=0,this.yOffset=0,this.data=null,this.needsFree=!1,this.element=null,this.needsCopy=!1}function Vr(ne,je){var Ke=null;if(Md(je)?Ke=je:je&&(ht(ne,je),"x"in je&&(ne.xOffset=je.x|0),"y"in je&&(ne.yOffset=je.y|0),Md(je.data)&&(Ke=je.data)),je.copy){var wt=Ze.viewportWidth,ha=Ze.viewportHeight;ne.width=ne.width||wt-ne.xOffset,ne.height=ne.height||ha-ne.yOffset,ne.needsCopy=!0}else if(!Ke)ne.width=ne.width||1,ne.height=ne.height||1,ne.channels=ne.channels||4;else if($r(Ke))ne.channels=ne.channels||4,ne.data=Ke,!("type"in je)&&ne.type===zu&&(ne.type=ym(Ke));else if(hm(Ke))ne.channels=ne.channels||4,Ux(ne,Ke),ne.alignment=1,ne.needsFree=!0;else if(tt(Ke)){var Ya=Ke.data;!Array.isArray(Ya)&&ne.type===zu&&(ne.type=ym(Ya));var xt=Ke.shape,Q=Ke.stride,oe,be,Je,er,ze,Ne;xt.length===3?(Je=xt[2],Ne=Q[2]):(Je=1,Ne=1),oe=xt[0],be=xt[1],er=Q[0],ze=Q[1],ne.alignment=1,ne.width=oe,ne.height=be,ne.channels=Je,ne.format=ne.internalformat=vo[Je],ne.needsFree=!0,bm(ne,Ya,er,ze,Ne,Ke.offset)}else if(pm(Ke)||mm(Ke)||Bx(Ke))pm(Ke)||mm(Ke)?ne.element=Ke:ne.element=Ke.canvas,ne.width=ne.element.width,ne.height=ne.element.height,ne.channels=4;else if(Ix(Ke))ne.element=Ke,ne.width=Ke.width,ne.height=Ke.height,ne.channels=4;else if(Ox(Ke))ne.element=Ke,ne.width=Ke.naturalWidth,ne.height=Ke.naturalHeight,ne.channels=4;else if(Hx(Ke))ne.element=Ke,ne.width=Ke.videoWidth,ne.height=Ke.videoHeight,ne.channels=4;else if(dm(Ke)){var Me=ne.width||Ke[0].length,de=ne.height||Ke.length,Ae=ne.channels;xn(Ke[0][0])?Ae=Ae||Ke[0][0].length:Ae=Ae||1;for(var se=Mr.shape(Ke),Oe=1,ir=0;ir>=ha,Ke.height>>=ha,Vr(Ke,wt[ha]),ne.mipmask|=1<=0&&!("faces"in je)&&(ne.genMipmaps=!0)}if("mag"in je){var wt=je.mag;ne.magFilter=Er[wt]}var ha=ne.wrapS,Ya=ne.wrapT;if("wrap"in je){var xt=je.wrap;typeof xt=="string"?ha=Ya=Lr[xt]:Array.isArray(xt)&&(ha=Lr[xt[0]],Ya=Lr[xt[1]])}else{if("wrapS"in je){var Q=je.wrapS;ha=Lr[Q]}if("wrapT"in je){var oe=je.wrapT;Ya=Lr[oe]}}if(ne.wrapS=ha,ne.wrapT=Ya,"anisotropic"in je){var be=je.anisotropic;ne.anisotropic=je.anisotropic}if("mipmap"in je){var Je=!1;switch(typeof je.mipmap){case"string":ne.mipmapHint=yr[je.mipmap],ne.genMipmaps=!0,Je=!0;break;case"boolean":Je=ne.genMipmaps=je.mipmap;break;case"object":ne.genMipmaps=!1,Je=!0;break;default:}Je&&!("min"in je)&&(ne.minFilter=m0)}}function oo(ne,je){H.texParameteri(je,qx,ne.minFilter),H.texParameteri(je,p0,ne.magFilter),H.texParameteri(je,Bu,ne.wrapS),H.texParameteri(je,Lx,ne.wrapT),te.ext_texture_filter_anisotropic&&H.texParameteri(je,Rx,ne.anisotropic),ne.genMipmaps&&(H.hint(lm,ne.mipmapHint),H.generateMipmap(je))}var yo=0,fi={},ci=ie.maxTextureUnits,wi=Array(ci).map(function(){return null});function Qt(ne){gr.call(this),this.mipmask=0,this.internalformat=no,this.id=yo++,this.refCount=1,this.target=ne,this.texture=H.createTexture(),this.unit=-1,this.bindCount=0,this.texInfo=new Ga,Xe.profile&&(this.stats={size:0})}function Ci(ne){H.activeTexture(Js),H.bindTexture(ne.target,ne.texture)}function Za(){var ne=wi[0];ne?H.bindTexture(ne.target,ne.texture):H.bindTexture(Ua,null)}function lo(ne){var je=ne.texture,Ke=ne.unit,wt=ne.target;Ke>=0&&(H.activeTexture(Js+Ke),H.bindTexture(wt,null),wi[Ke]=null),H.deleteTexture(je),ne.texture=null,ne.params=null,ne.pixels=null,ne.refCount=0,delete fi[ne.id],Qe.textureCount--}e(Qt.prototype,{bind:function(){var ne=this;ne.bindCount+=1;var je=ne.unit;if(je<0){for(var Ke=0;Ke0)continue;wt.unit=-1}wi[Ke]=ne,je=Ke;break}je>=ci,Xe.profile&&Qe.maxTextureUnits>ze)-Je,Ne.height=Ne.height||(Ke.height>>ze)-er,Ci(Ke),Lt(Ne,Ua,Je,er,ze),Za(),bt(Ne),wt}function Ya(xt,Q){var oe=xt|0,be=Q|0||oe;if(oe===Ke.width&&be===Ke.height)return wt;wt.width=Ke.width=oe,wt.height=Ke.height=be,Ci(Ke);for(var Je=0;Ke.mipmask>>Je;++Je){var er=oe>>Je,ze=be>>Je;if(!er||!ze)break;H.texImage2D(Ua,Je,Ke.format,er,ze,0,Ke.format,Ke.type,null)}return Za(),Xe.profile&&(Ke.stats.size=x0(Ke.internalformat,Ke.type,oe,be,!1,!1)),wt}return wt(ne,je),wt.subimage=ha,wt.resize=Ya,wt._reglType="texture2d",wt._texture=Ke,Xe.profile&&(wt.stats=Ke.stats),wt.destroy=function(){Ke.decRef()},wt}function bo(ne,je,Ke,wt,ha,Ya){var xt=new Qt(Xn);fi[xt.id]=xt,Qe.cubeCount++;var Q=new Array(6);function oe(er,ze,Ne,Me,de,Ae){var se,Oe=xt.texInfo;for(Ga.call(Oe),se=0;se<6;++se)Q[se]=ua();if(typeof er=="number"||!er){var ir=er|0||1;for(se=0;se<6;++se)Ht(Q[se],ir,ir)}else if(typeof er=="object")if(ze)na(Q[0],er),na(Q[1],ze),na(Q[2],Ne),na(Q[3],Me),na(Q[4],de),na(Q[5],Ae);else if(Xi(Oe,er),ht(xt,er),"faces"in er){var Dr=er.faces;for(se=0;se<6;++se)dr(Q[se],xt),na(Q[se],Dr[se])}else for(se=0;se<6;++se)na(Q[se],er);for(dr(xt,Q[0]),Oe.genMipmaps?xt.mipmask=(Q[0].width<<1)-1:xt.mipmask=Q[0].mipmask,xt.internalformat=Q[0].internalformat,oe.width=Q[0].width,oe.height=Q[0].height,Ci(xt),se=0;se<6;++se)qn(Q[se],Ni+se);for(oo(Oe,Xn),Za(),Xe.profile&&(xt.stats.size=x0(xt.internalformat,xt.type,oe.width,oe.height,Oe.genMipmaps,!0)),oe.format=Sr[xt.internalformat],oe.type=zr[xt.type],oe.mag=xr[Oe.magFilter],oe.min=it[Oe.minFilter],oe.wrapS=Kr[Oe.wrapS],oe.wrapT=Kr[Oe.wrapT],se=0;se<6;++se)mo(Q[se]);return oe}function be(er,ze,Ne,Me,de){var Ae=Ne|0,se=Me|0,Oe=de|0,ir=et();return dr(ir,xt),ir.width=0,ir.height=0,Vr(ir,ze),ir.width=ir.width||(xt.width>>Oe)-Ae,ir.height=ir.height||(xt.height>>Oe)-se,Ci(xt),Lt(ir,Ni+er,Ae,se,Oe),Za(),bt(ir),oe}function Je(er){var ze=er|0;if(ze!==xt.width){oe.width=xt.width=ze,oe.height=xt.height=ze,Ci(xt);for(var Ne=0;Ne<6;++Ne)for(var Me=0;xt.mipmask>>Me;++Me)H.texImage2D(Ni+Ne,Me,xt.format,ze>>Me,ze>>Me,0,xt.format,xt.type,null);return Za(),Xe.profile&&(xt.stats.size=x0(xt.internalformat,xt.type,oe.width,oe.height,!1,!0)),oe}}return oe(ne,je,Ke,wt,ha,Ya),oe.subimage=be,oe.resize=Je,oe._reglType="textureCube",oe._texture=xt,Xe.profile&&(oe.stats=xt.stats),oe.destroy=function(){xt.decRef()},oe}function Jt(){for(var ne=0;ne>wt,Ke.height>>wt,0,Ke.internalformat,Ke.type,null);else for(var ha=0;ha<6;++ha)H.texImage2D(Ni+ha,wt,Ke.internalformat,Ke.width>>wt,Ke.height>>wt,0,Ke.internalformat,Ke.type,null);oo(Ke.texInfo,Ke.target)})}function cn(){for(var ne=0;ne=0?mo=!0:Lr.indexOf(Ga)>=0&&(mo=!1))),("depthTexture"in Qt||"depthStencilTexture"in Qt)&&(wi=!!(Qt.depthTexture||Qt.depthStencilTexture)),"depth"in Qt&&(typeof Qt.depth=="boolean"?qn=Qt.depth:(yo=Qt.depth,_i=!1)),"stencil"in Qt&&(typeof Qt.stencil=="boolean"?_i=Qt.stencil:(fi=Qt.stencil,qn=!1)),"depthStencil"in Qt&&(typeof Qt.depthStencil=="boolean"?qn=_i=Qt.depthStencil:(ci=Qt.depthStencil,qn=!1,_i=!1))}var Za=null,lo=null,go=null,bo=null;if(Array.isArray(ua))Za=ua.map(cr);else if(ua)Za=[cr(ua)];else for(Za=new Array(oo),Ot=0;Ot0&&(bt.depth=Vr[0].depth,bt.stencil=Vr[0].stencil,bt.depthStencil=Vr[0].depthStencil),Vr[et]?Vr[et](bt):Vr[et]=dr(bt)}return e(dt,{width:Ot,height:Ot,color:Ga})}function Lt(Vt){var et,bt=Vt|0;if(bt===dt.width)return dt;var Ot=dt.color;for(et=0;et=Ot.byteLength?Ht.subdata(Ot):(Ht.destroy(),dr.buffers[Vt]=null)),dr.buffers[Vt]||(Ht=dr.buffers[Vt]=Ze.create(et,qm,!1,!0)),bt.buffer=Ze.getBuffer(Ht),bt.size=bt.buffer.dimension|0,bt.normalized=!1,bt.type=bt.buffer.dtype,bt.offset=0,bt.stride=0,bt.divisor=0,bt.state=1,dt[Vt]=1}else Ze.getBuffer(et)?(bt.buffer=Ze.getBuffer(et),bt.size=bt.buffer.dimension|0,bt.normalized=!1,bt.type=bt.buffer.dtype,bt.offset=0,bt.stride=0,bt.divisor=0,bt.state=1):Ze.getBuffer(et.buffer)?(bt.buffer=Ze.getBuffer(et.buffer),bt.size=(+et.size||bt.buffer.dimension)|0,bt.normalized=!!et.normalized||!1,"type"in et?bt.type=Yn[et.type]:bt.type=bt.buffer.dtype,bt.offset=(et.offset||0)|0,bt.stride=(et.stride||0)|0,bt.divisor=(et.divisor||0)|0,bt.state=1):"x"in et&&(bt.x=+et.x||0,bt.y=+et.y||0,bt.z=+et.z||0,bt.w=+et.w||0,bt.state=2)}for(var na=0;na1)for(var Jr=0;JrPe&&(Pe=nr.stats.uniformsCount)}),Pe},ie.getMaxAttributesCount=function(){var Pe=0;return Fr.forEach(function(nr){nr.stats.attributesCount>Pe&&(Pe=nr.stats.attributesCount)}),Pe});function cr(){Ze={},Qe={};for(var Pe=0;Pe16&&(ie=Yu(ie,H.length*8));for(var Be=Array(16),Ze=Array(16),Qe=0;Qe<16;Qe++)Be[Qe]=ie[Qe]^909522486,Ze[Qe]=ie[Qe]^1549556828;var Xe=Yu(Be.concat(Rd(te)),512+te.length*8);return Hm(Yu(Ze.concat(Xe),768))}function Bm(H){for(var te=Nm?"0123456789ABCDEF":"0123456789abcdef",ie="",Be,Ze=0;Ze>>4&15)+te.charAt(Be&15);return ie}function Im(H){for(var te="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ie="",Be=H.length,Ze=0;ZeH.length*8?ie+=e_:ie+=te.charAt(Qe>>>6*(3-Xe)&63);return ie}function Om(H,te){var ie=te.length,Be=Array(),Ze,Qe,Xe,yr,Lr=Array(Math.ceil(H.length/2));for(Ze=0;Ze0;){for(yr=Array(),Xe=0,Ze=0;Ze0||Qe>0)&&(yr[yr.length]=Qe);Be[Be.length]=Xe,Lr=yr}var Er="";for(Ze=Be.length-1;Ze>=0;Ze--)Er+=te.charAt(Be[Ze]);var Fr=Math.ceil(H.length*8/(Math.log(te.length)/Math.log(2)));for(Ze=Er.length;Ze>>6&31,128|Be&63):Be<=65535?te+=String.fromCharCode(224|Be>>>12&15,128|Be>>>6&63,128|Be&63):Be<=2097151&&(te+=String.fromCharCode(240|Be>>>18&7,128|Be>>>12&63,128|Be>>>6&63,128|Be&63));return te}function Rd(H){for(var te=Array(H.length>>2),ie=0;ie>5]|=(H.charCodeAt(ie/8)&255)<<24-ie%32;return te}function Hm(H){for(var te="",ie=0;ie>5]>>>24-ie%32&255);return te}function tl(H,te){return H>>>te|H<<32-te}function Um(H,te){return H>>>te}function Gm(H,te,ie){return H&te^~H&ie}function Ym(H,te,ie){return H&te^H&ie^te&ie}function Pd(H){return tl(H,2)^tl(H,13)^tl(H,22)}function Vm(H){return tl(H,6)^tl(H,11)^tl(H,25)}function iv(H){return tl(H,7)^tl(H,18)^Um(H,3)}function ov(H){return tl(H,17)^tl(H,19)^Um(H,10)}var n_=new Array(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);function Yu(H,te){var ie=new Array(1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225),Be=new Array(64),Ze,Qe,Xe,yr,Lr,Er,Fr,Ct,mt,jr,cr,Pe;for(H[te>>5]|=128<<24-te%32,H[(te+64>>9<<4)+15]=te,mt=0;mt>16)+(te>>16)+(ie>>16);return Be<<16|ie&65535}function Vu(H){return Array.prototype.slice.call(H)}function Xu(H){return Vu(H).join("")}function Xm(H){var te=H&&H.cache,ie=0,Be=[],Ze=[],Qe=[];function Xe(cr,Pe){var nr=Pe&&Pe.stable;if(!nr){for(var Sr=0;Sr0&&(cr.push(zr,"="),cr.push.apply(cr,Vu(arguments)),cr.push(";")),zr}return e(Pe,{def:Sr,toString:function(){return Xu([nr.length>0?"var "+nr.join(",")+";":"",Xu(cr)])}})}function Lr(){var cr=yr(),Pe=yr(),nr=cr.toString,Sr=Pe.toString;function zr(xr,it){Pe(xr,it,"=",cr.def(xr,it),";")}return e(function(){cr.apply(cr,Vu(arguments))},{def:cr.def,entry:cr,exit:Pe,save:zr,set:function(xr,it,Kr){zr(xr,it),cr(xr,it,"=",Kr,";")},toString:function(){return nr()+Sr()}})}function Er(){var cr=Xu(arguments),Pe=Lr(),nr=Lr(),Sr=Pe.toString,zr=nr.toString;return e(Pe,{then:function(){return Pe.apply(Pe,Vu(arguments)),this},else:function(){return nr.apply(nr,Vu(arguments)),this},toString:function(){var xr=zr();return xr&&(xr="else{"+xr+"}"),Xu(["if(",cr,"){",Sr(),"}",xr])}})}var Fr=yr(),Ct={};function mt(cr,Pe){var nr=[];function Sr(){var Dt="a"+nr.length;return nr.push(Dt),Dt}Pe=Pe||0;for(var zr=0;zr":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},ce={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},ye={cw:A,ccw:S};function Ce(H){return Array.isArray(H)||qr(H)||Or(H)}function De(H){return H.sort(function(re,ie){return re===Sl?-1:ie===Sl?1:re=1,Be>=2,re)}else if(ie===lv){var We=H.data;return new he(We.thisDep,We.contextDep,We.propDep,re)}else{if(ie===Od)return new he(!1,!1,!1,re);if(ie===_0){for(var $e=!1,Ye=!1,gr=!1,Rr=0;Rr=1&&(Ye=!0),Nr>=2&&(gr=!0)}else Pr.type===lv&&($e=$e||Pr.data.thisDep,Ye=Ye||Pr.data.contextDep,gr=gr||Pr.data.propDep)}return new he($e,Ye,gr,re)}else return new he(ie===ov,ie===Wm,ie===iv,re)}}var Jr=new he(!1,!1,!1,function(){});function ct(H,re,ie,Be,We,$e,Ye,gr,Rr,Pr,Nr,Ct,mt,Kr,cr,Re){var tr=Pr.Record,Cr={add:32774,subtract:32778,"reverse subtract":32779};ie.ext_blend_minmax&&(Cr.min=D,Cr.max=L);var Br=ie.angle_instanced_arrays,wr=ie.webgl_draw_buffers,tt=ie.oes_vertex_array_object,Qr={dirty:!0,profile:Re.profile},Dt={},br=[],hr={},ht={};function $r(Q){return Q.replace(".","_")}function Gr(Q,oe,me){var Ze=$r(Q);br.push(Q),Dt[Ze]=Qr[Ze]=!!me,hr[Ze]=oe}function Wr(Q,oe,me){var Ze=$r(Q);br.push(Q),Array.isArray(me)?(Qr[Ze]=me.slice(),Dt[Ze]=me.slice()):Qr[Ze]=Dt[Ze]=me,ht[Ze]=oe}function dt(Q){return!!isNaN(Q)}Gr(Hd,a_),Gr(Zm,t_),Wr(Jm,"blendColor",[0,0,0,0]),Wr(Ud,"blendEquationSeparate",[Z,Z]),Wr(Gd,"blendFuncSeparate",[X,O,X,O]),Gr(Yd,ey,!0),Wr(Vd,"depthFunc",$),Wr(Xd,"depthRange",[0,1]),Wr(Wd,"depthMask",!0),Wr(Zd,Zd,[!0,!0,!0,!0]),Gr(w0,Qm),Wr(jm,"cullFace",g),Wr(Jd,Jd,S),Wr(sv,sv,1),Gr(jd,pv),Wr($d,"polygonOffset",[0,0]),Gr(A0,ty),Gr(T0,mv),Wr(uv,"sampleCoverage",[1,!1]),Gr(Kd,n_),Wr(fv,"stencilMask",-1),Wr(ro,"stencilFunc",[N,0,-1]),Wr(cv,"stencilOpSeparate",[h,R,R,R]),Wr(M0,"stencilOpSeparate",[g,R,R,R]),Gr(vv,ry),Wr(Uu,"scissor",[0,0,H.drawingBufferWidth,H.drawingBufferHeight]),Wr(Sl,Sl,[0,0,H.drawingBufferWidth,H.drawingBufferHeight]);var Lt={gl:H,context:mt,strings:re,next:Dt,current:Qr,draw:Ct,elements:$e,buffer:We,shader:Nr,attributes:Pr.state,vao:Pr,uniforms:Rr,framebuffer:gr,extensions:ie,timer:Kr,isBufferArgs:Ce},Vt={primTypes:Os,compareFuncs:ee,blendFuncs:Se,blendEquations:Cr,stencilOps:ce,glTypes:vi,orientationType:ye};wr&&(Vt.backBuffer=[g],Vt.drawBuffer=C(Be.maxDrawbuffers,function(Q){return Q===0?[0]:C(Q,function(oe){return xe+oe})}));var rt=0;function bt(){var Q=Xm({cache:cr}),oe=Q.link,me=Q.global;Q.id=rt++,Q.batchId="0";var Ze=oe(Lt),Ke=Q.shared={props:"a0"};Object.keys(Lt).forEach(function(_e){Ke[_e]=me.def(Ze,".",_e)});var ze=Q.next={},Pe=Q.current={};Object.keys(ht).forEach(function(_e){Array.isArray(Qr[_e])&&(ze[_e]=me.def(Ke.next,".",_e),Pe[_e]=me.def(Ke.current,".",_e))});var ke=Q.constants={};Object.keys(Vt).forEach(function(_e){ke[_e]=me.def(JSON.stringify(Vt[_e]))}),Q.invoke=function(_e,ue){switch(ue.type){case Id:var Oe=["this",Ke.context,Ke.props,Q.batchId];return _e.def(oe(ue.data),".call(",Oe.slice(0,Math.max(ue.data.length+1,4)),")");case iv:return _e.def(Ke.props,ue.data);case Wm:return _e.def(Ke.context,ue.data);case ov:return _e.def("this",ue.data);case lv:return ue.data.append(Q,_e),ue.data.ref;case Od:return ue.data.toString();case _0:return ue.data.map(function(ar){return Q.invoke(_e,ar)})}},Q.attribCache={};var ve={};return Q.scopeAttrib=function(_e){var ue=re.id(_e);if(ue in ve)return ve[ue];var Oe=Pr.scope[ue];Oe||(Oe=Pr.scope[ue]=new tr);var ar=ve[ue]=oe(Oe);return ar},Q}function Ot(Q){var oe=Q.static,me=Q.dynamic,Ze;if(hv in oe){var Ke=!!oe[hv];Ze=Ar(function(Pe,ke){return Ke}),Ze.enable=Ke}else if(hv in me){var ze=me[hv];Ze=zr(ze,function(Pe,ke){return Pe.invoke(ke,ze)})}return Ze}function Ht(Q,oe){var me=Q.static,Ze=Q.dynamic;if(Gu in me){var Ke=me[Gu];return Ke?(Ke=gr.getFramebuffer(Ke),Ar(function(Pe,ke){var ve=Pe.link(Ke),_e=Pe.shared;ke.set(_e.framebuffer,".next",ve);var ue=_e.context;return ke.set(ue,"."+os,ve+".width"),ke.set(ue,"."+ls,ve+".height"),ve})):Ar(function(Pe,ke){var ve=Pe.shared;ke.set(ve.framebuffer,".next","null");var _e=ve.context;return ke.set(_e,"."+os,_e+"."+e2),ke.set(_e,"."+ls,_e+"."+r2),"null"})}else if(Gu in Ze){var ze=Ze[Gu];return zr(ze,function(Pe,ke){var ve=Pe.invoke(ke,ze),_e=Pe.shared,ue=_e.framebuffer,Oe=ke.def(ue,".getFramebuffer(",ve,")");ke.set(ue,".next",Oe);var ar=_e.context;return ke.set(ar,"."+os,Oe+"?"+Oe+".width:"+ar+"."+e2),ke.set(ar,"."+ls,Oe+"?"+Oe+".height:"+ar+"."+r2),Oe})}else return null}function ta(Q,oe,me){var Ze=Q.static,Ke=Q.dynamic;function ze(ve){if(ve in Ze){var _e=Ze[ve],ue=!0,Oe=_e.x|0,ar=_e.y|0,Er,qt;return"width"in _e?Er=_e.width|0:ue=!1,"height"in _e?qt=_e.height|0:ue=!1,new he(!ue&&oe&&oe.thisDep,!ue&&oe&&oe.contextDep,!ue&&oe&&oe.propDep,function(Et,Mt){var Tt=Et.shared.context,ut=Er;"width"in _e||(ut=Mt.def(Tt,".",os,"-",Oe));var _t=qt;return"height"in _e||(_t=Mt.def(Tt,".",ls,"-",ar)),[Oe,ar,ut,_t]})}else if(ve in Ke){var pt=Ke[ve],st=zr(pt,function(Et,Mt){var Tt=Et.invoke(Mt,pt),ut=Et.shared.context,_t=Mt.def(Tt,".x|0"),At=Mt.def(Tt,".y|0"),Xt=Mt.def('"width" in ',Tt,"?",Tt,".width|0:","(",ut,".",os,"-",_t,")"),un=Mt.def('"height" in ',Tt,"?",Tt,".height|0:","(",ut,".",ls,"-",At,")");return[_t,At,Xt,un]});return oe&&(st.thisDep=st.thisDep||oe.thisDep,st.contextDep=st.contextDep||oe.contextDep,st.propDep=st.propDep||oe.propDep),st}else return oe?new he(oe.thisDep,oe.contextDep,oe.propDep,function(Et,Mt){var Tt=Et.shared.context;return[0,0,Mt.def(Tt,".",os),Mt.def(Tt,".",ls)]}):null}var Pe=ze(Sl);if(Pe){var ke=Pe;Pe=new he(Pe.thisDep,Pe.contextDep,Pe.propDep,function(ve,_e){var ue=ke.append(ve,_e),Oe=ve.shared.context;return _e.set(Oe,"."+e_,ue[2]),_e.set(Oe,"."+r_,ue[3]),ue})}return{viewport:Pe,scissor_box:ze(Uu)}}function kn(Q,oe){var me=Q.static,Ze=typeof me[Yu]=="string"&&typeof me[$s]=="string";if(Ze){if(Object.keys(oe.dynamic).length>0)return null;var Ke=oe.static,ze=Object.keys(Ke);if(ze.length>0&&typeof Ke[ze[0]]=="number"){for(var Pe=[],ke=0;ke"+_t+"?"+ue+".constant["+_t+"]:0;"}).join(""),"}}else{","if(",Er,"(",ue,".buffer)){",Et,"=",qt,".createStream(",Qs,",",ue,".buffer);","}else{",Et,"=",qt,".getBuffer(",ue,".buffer);","}",Mt,'="type" in ',ue,"?",ar.glTypes,"[",ue,".type]:",Et,".dtype;",pt.normalized,"=!!",ue,".normalized;");function Tt(ut){_e(pt[ut],"=",ue,".",ut,"|0;")}return Tt("size"),Tt("offset"),Tt("stride"),Tt("divisor"),_e("}}"),_e.exit("if(",pt.isStream,"){",qt,".destroyStream(",Et,");","}"),pt}Ke[ze]=zr(Pe,ke)}),Ke}function to(Q){var oe=Q.static,me=Q.dynamic,Ze={};return Object.keys(oe).forEach(function(Ke){var ze=oe[Ke];Ze[Ke]=Ar(function(Pe,ke){return typeof ze=="number"||typeof ze=="boolean"?""+ze:Pe.link(ze)})}),Object.keys(me).forEach(function(Ke){var ze=me[Ke];Ze[Ke]=zr(ze,function(Pe,ke){return Pe.invoke(ke,ze)})}),Ze}function vo(Q,oe,me,Ze,Ke){var ze=Q.static,Pe=Q.dynamic,ke=kn(Q,oe),ve=Ht(Q,Ke),_e=ta(Q,ve,Ke),ue=la(Q,Ke),Oe=co(Q,Ke),ar=di(Q,Ke,ke);function Er(Tt){var ut=_e[Tt];ut&&(Oe[Tt]=ut)}Er(Sl),Er($r(Uu));var qt=Object.keys(Oe).length>0,pt={framebuffer:ve,draw:ue,shader:ar,state:Oe,dirty:qt,scopeVAO:null,drawVAO:null,useVAO:!1,attributes:{}};if(pt.profile=Ot(Q,Ke),pt.uniforms=Ga(me,Ke),pt.drawVAO=pt.scopeVAO=ue.vao,!pt.drawVAO&&ar.program&&!ke&&ie.angle_instanced_arrays&&ue.static.elements){var st=!0,Et=ar.program.attributes.map(function(Tt){var ut=oe.static[Tt];return st=st&&!!ut,ut});if(st&&Et.length>0){var Mt=Pr.getVAO(Pr.createVAO({attributes:Et,elements:ue.static.elements}));pt.drawVAO=new he(null,null,null,function(Tt,ut){return Tt.link(Mt)}),pt.useVAO=!0}}return ke?pt.useVAO=!0:pt.attributes=Gi(oe,Ke),pt.context=to(Ze,Ke),pt}function ti(Q,oe,me){var Ze=Q.shared,Ke=Ze.context,ze=Q.scope();Object.keys(me).forEach(function(Pe){oe.save(Ke,"."+Pe);var ke=me[Pe],ve=ke.append(Q,oe);Array.isArray(ve)?ze(Ke,".",Pe,"=[",ve.join(),"];"):ze(Ke,".",Pe,"=",ve,";")}),oe(ze)}function ai(Q,oe,me,Ze){var Ke=Q.shared,ze=Ke.gl,Pe=Ke.framebuffer,ke;wr&&(ke=oe.def(Ke.extensions,".webgl_draw_buffers"));var ve=Q.constants,_e=ve.drawBuffer,ue=ve.backBuffer,Oe;me?Oe=me.append(Q,oe):Oe=oe.def(Pe,".next"),Ze||oe("if(",Oe,"!==",Pe,".cur){"),oe("if(",Oe,"){",ze,".bindFramebuffer(",K,",",Oe,".framebuffer);"),wr&&oe(ke,".drawBuffersWEBGL(",_e,"[",Oe,".colorAttachments.length]);"),oe("}else{",ze,".bindFramebuffer(",K,",null);"),wr&&oe(ke,".drawBuffersWEBGL(",ue,");"),oe("}",Pe,".cur=",Oe,";"),Ze||oe("}")}function pi(Q,oe,me){var Ze=Q.shared,Ke=Ze.gl,ze=Q.current,Pe=Q.next,ke=Ze.current,ve=Ze.next,_e=Q.cond(ke,".dirty");br.forEach(function(ue){var Oe=$r(ue);if(!(Oe in me.state)){var ar,Er;if(Oe in Pe){ar=Pe[Oe],Er=ze[Oe];var qt=C(Qr[Oe].length,function(st){return _e.def(ar,"[",st,"]")});_e(Q.cond(qt.map(function(st,Et){return st+"!=="+Er+"["+Et+"]"}).join("||")).then(Ke,".",ht[Oe],"(",qt,");",qt.map(function(st,Et){return Er+"["+Et+"]="+st}).join(";"),";"))}else{ar=_e.def(ve,".",Oe);var pt=Q.cond(ar,"!==",ke,".",Oe);_e(pt),Oe in hr?pt(Q.cond(ar).then(Ke,".enable(",hr[Oe],");").else(Ke,".disable(",hr[Oe],");"),ke,".",Oe,"=",ar,";"):pt(Ke,".",ht[Oe],"(",ar,");",ke,".",Oe,"=",ar,";")}}}),Object.keys(me.state).length===0&&_e(ke,".dirty=false;"),oe(_e)}function $t(Q,oe,me,Ze){var Ke=Q.shared,ze=Q.current,Pe=Ke.current,ke=Ke.gl,ve;De(Object.keys(me)).forEach(function(_e){var ue=me[_e];if(!(Ze&&!Ze(ue))){var Oe=ue.append(Q,oe);if(hr[_e]){var ar=hr[_e];lr(ue)?(ve=Q.link(Oe,{stable:!0}),oe(Q.cond(ve).then(ke,".enable(",ar,");").else(ke,".disable(",ar,");")),oe(Pe,".",_e,"=",ve,";")):(oe(Q.cond(Oe).then(ke,".enable(",ar,");").else(ke,".disable(",ar,");")),oe(Pe,".",_e,"=",Oe,";"))}else if(hn(Oe)){var Er=ze[_e];oe(ke,".",ht[_e],"(",Oe,");",Oe.map(function(qt,pt){return Er+"["+pt+"]="+qt}).join(";"),";")}else lr(ue)?(ve=Q.link(Oe,{stable:!0}),oe(ke,".",ht[_e],"(",ve,");",Pe,".",_e,"=",ve,";")):oe(ke,".",ht[_e],"(",Oe,");",Pe,".",_e,"=",Oe,";")}})}function wi(Q,oe){Br&&(Q.instancing=oe.def(Q.shared.extensions,".angle_instanced_arrays"))}function Wa(Q,oe,me,Ze,Ke){var ze=Q.shared,Pe=Q.stats,ke=ze.current,ve=ze.timer,_e=me.profile;function ue(){return typeof performance=="undefined"?"Date.now()":"performance.now()"}var Oe,ar;function Er(Tt){Oe=oe.def(),Tt(Oe,"=",ue(),";"),typeof Ke=="string"?Tt(Pe,".count+=",Ke,";"):Tt(Pe,".count++;"),Kr&&(Ze?(ar=oe.def(),Tt(ar,"=",ve,".getNumPendingQueries();")):Tt(ve,".beginQuery(",Pe,");"))}function qt(Tt){Tt(Pe,".cpuTime+=",ue(),"-",Oe,";"),Kr&&(Ze?Tt(ve,".pushScopeStats(",ar,",",ve,".getNumPendingQueries(),",Pe,");"):Tt(ve,".endQuery();"))}function pt(Tt){var ut=oe.def(ke,".profile");oe(ke,".profile=",Tt,";"),oe.exit(ke,".profile=",ut,";")}var st;if(_e){if(lr(_e)){_e.enable?(Er(oe),qt(oe.exit),pt("true")):pt("false");return}st=_e.append(Q,oe),pt(st)}else st=oe.def(ke,".profile");var Et=Q.block();Er(Et),oe("if(",st,"){",Et,"}");var Mt=Q.block();qt(Mt),oe.exit("if(",st,"){",Mt,"}")}function ao(Q,oe,me,Ze,Ke){var ze=Q.shared;function Pe(ve){switch(ve){case eu:case Wu:case Zu:return 2;case dn:case S0:case bv:return 3;case yv:case n2:case i2:return 4;default:return 1}}function ke(ve,_e,ue){var Oe=ze.gl,ar=oe.def(ve,".location"),Er=oe.def(ze.attributes,"[",ar,"]"),qt=ue.state,pt=ue.buffer,st=[ue.x,ue.y,ue.z,ue.w],Et=["buffer","normalized","offset","stride"];function Mt(){oe("if(!",Er,".buffer){",Oe,".enableVertexAttribArray(",ar,");}");var ut=ue.type,_t;if(ue.size?_t=oe.def(ue.size,"||",_e):_t=_e,oe("if(",Er,".type!==",ut,"||",Er,".size!==",_t,"||",Et.map(function(Xt){return Er+"."+Xt+"!=="+ue[Xt]}).join("||"),"){",Oe,".bindBuffer(",Qs,",",pt,".buffer);",Oe,".vertexAttribPointer(",[ar,_t,ut,ue.normalized,ue.stride,ue.offset],");",Er,".type=",ut,";",Er,".size=",_t,";",Et.map(function(Xt){return Er+"."+Xt+"="+ue[Xt]+";"}).join(""),"}"),Br){var At=ue.divisor;oe("if(",Er,".divisor!==",At,"){",Q.instancing,".vertexAttribDivisorANGLE(",[ar,At],");",Er,".divisor=",At,";}")}}function Tt(){oe("if(",Er,".buffer){",Oe,".disableVertexAttribArray(",ar,");",Er,".buffer=null;","}if(",js.map(function(ut,_t){return Er+"."+ut+"!=="+st[_t]}).join("||"),"){",Oe,".vertexAttrib4f(",ar,",",st,");",js.map(function(ut,_t){return Er+"."+ut+"="+st[_t]+";"}).join(""),"}")}qt===is?Mt():qt===x0?Tt():(oe("if(",qt,"===",is,"){"),Mt(),oe("}else{"),Tt(),oe("}"))}Ze.forEach(function(ve){var _e=ve.name,ue=me.attributes[_e],Oe;if(ue){if(!Ke(ue))return;Oe=ue.append(Q,oe)}else{if(!Ke(Jr))return;var ar=Q.scopeAttrib(_e);Oe={},Object.keys(new tr).forEach(function(Er){Oe[Er]=oe.def(ar,".",Er)})}ke(Q.link(ve),Pe(ve.info.type),Oe)})}function ho(Q,oe,me,Ze,Ke,ze){for(var Pe=Q.shared,ke=Pe.gl,ve,_e=0;_e1){for(var mo=[],ru=[],Ju=0;Ju<_t;++Ju)Array.isArray(st)?ru.push(st[Ju]):ru.push(oe.def(st+"["+Ju+"]")),ze&&mo.push(oe.def());ze&&oe("if(!",Q.batchId,"||",mo.map(function(Ko,c2){return Ko+"!=="+ru[c2]}).join("||"),"){",mo.map(function(Ko,c2){return Ko+"="+ru[c2]+";"}).join("")),oe(ke,".uniform",ve,"(",pt,",",ru.join(","),");"),ze&&oe("}")}else{if(ze){var ju=oe.def();oe("if(!",Q.batchId,"||",ju,"!==",st,"){",ju,"=",st,";")}oe(ke,".uniform",ve,"(",pt,",",st,");"),ze&&oe("}")}}}function po(Q,oe,me,Ze){var Ke=Q.shared,ze=Ke.gl,Pe=Ke.draw,ke=Ze.draw;function ve(){var _t=ke.elements,At,Xt=oe;return _t?((_t.contextDep&&Ze.contextDynamic||_t.propDep)&&(Xt=me),At=_t.append(Q,Xt),ke.elementsActive&&Xt("if("+At+")"+ze+".bindBuffer("+t2+","+At+".buffer.buffer);")):(At=Xt.def(),Xt(At,"=",Pe,".",Ks,";","if(",At,"){",ze,".bindBuffer(",t2,",",At,".buffer.buffer);}","else if(",Ke.vao,".currentVAO){",At,"=",Q.shared.elements+".getElements("+Ke.vao,".currentVAO.elements);",tt?"":"if("+At+")"+ze+".bindBuffer("+t2+","+At+".buffer.buffer);","}")),At}function _e(){var _t=ke.count,At,Xt=oe;return _t?((_t.contextDep&&Ze.contextDynamic||_t.propDep)&&(Xt=me),At=_t.append(Q,Xt)):At=Xt.def(Pe,".",Xu),At}var ue=ve();function Oe(_t){var At=ke[_t];return At?At.contextDep&&Ze.contextDynamic||At.propDep?At.append(Q,me):At.append(Q,oe):oe.def(Pe,".",_t)}var ar=Oe(Vu),Er=Oe(Qd),qt=_e();if(typeof qt=="number"){if(qt===0)return}else me("if(",qt,"){"),me.exit("}");var pt,st;Br&&(pt=Oe(Ui),st=Q.instancing);var Et=ue+".type",Mt=ke.elements&&lr(ke.elements)&&!ke.vaoActive;function Tt(){function _t(){me(st,".drawElementsInstancedANGLE(",[ar,qt,Et,Er+"<<(("+Et+"-"+Bd+")>>1)",pt],");")}function At(){me(st,".drawArraysInstancedANGLE(",[ar,Er,qt,pt],");")}ue&&ue!=="null"?Mt?_t():(me("if(",ue,"){"),_t(),me("}else{"),At(),me("}")):At()}function ut(){function _t(){me(ze+".drawElements("+[ar,qt,Et,Er+"<<(("+Et+"-"+Bd+")>>1)"]+");")}function At(){me(ze+".drawArrays("+[ar,Er,qt]+");")}ue&&ue!=="null"?Mt?_t():(me("if(",ue,"){"),_t(),me("}else{"),At(),me("}")):At()}Br&&(typeof pt!="number"||pt>=0)?typeof pt=="string"?(me("if(",pt,">0){"),Tt(),me("}else if(",pt,"<0){"),ut(),me("}")):Tt():ut()}function Zt(Q,oe,me,Ze,Ke){var ze=bt(),Pe=ze.proc("body",Ke);return Br&&(ze.instancing=Pe.def(ze.shared.extensions,".angle_instanced_arrays")),Q(ze,Pe,me,Ze),ze.compile().body}function pa(Q,oe,me,Ze){wi(Q,oe),me.useVAO?me.drawVAO?oe(Q.shared.vao,".setVAO(",me.drawVAO.append(Q,oe),");"):oe(Q.shared.vao,".setVAO(",Q.shared.vao,".targetVAO);"):(oe(Q.shared.vao,".setVAO(null);"),ao(Q,oe,me,Ze.attributes,function(){return!0})),ho(Q,oe,me,Ze.uniforms,function(){return!0},!1),po(Q,oe,oe,me)}function sn(Q,oe){var me=Q.proc("draw",1);wi(Q,me),ti(Q,me,oe.context),ai(Q,me,oe.framebuffer),pi(Q,me,oe),$t(Q,me,oe.state),Wa(Q,me,oe,!1,!0);var Ze=oe.shader.progVar.append(Q,me);if(me(Q.shared.gl,".useProgram(",Ze,".program);"),oe.shader.program)pa(Q,me,oe,oe.shader.program);else{me(Q.shared.vao,".setVAO(null);");var Ke=Q.global.def("{}"),ze=me.def(Ze,".id"),Pe=me.def(Ke,"[",ze,"]");me(Q.cond(Pe).then(Pe,".call(this,a0);").else(Pe,"=",Ke,"[",ze,"]=",Q.link(function(ke){return Zt(pa,Q,oe,ke,1)}),"(",Ze,");",Pe,".call(this,a0);"))}Object.keys(oe.state).length>0&&me(Q.shared.current,".dirty=true;"),Q.shared.vao&&me(Q.shared.vao,".setVAO(null);")}function ne(Q,oe,me,Ze){Q.batchId="a1",wi(Q,oe);function Ke(){return!0}ao(Q,oe,me,Ze.attributes,Ke),ho(Q,oe,me,Ze.uniforms,Ke,!1),po(Q,oe,oe,me)}function Je(Q,oe,me,Ze){wi(Q,oe);var Ke=me.contextDep,ze=oe.def(),Pe="a0",ke="a1",ve=oe.def();Q.shared.props=ve,Q.batchId=ze;var _e=Q.scope(),ue=Q.scope();oe(_e.entry,"for(",ze,"=0;",ze,"<",ke,";++",ze,"){",ve,"=",Pe,"[",ze,"];",ue,"}",_e.exit);function Oe(Et){return Et.contextDep&&Ke||Et.propDep}function ar(Et){return!Oe(Et)}if(me.needsContext&&ti(Q,ue,me.context),me.needsFramebuffer&&ai(Q,ue,me.framebuffer),$t(Q,ue,me.state,Oe),me.profile&&Oe(me.profile)&&Wa(Q,ue,me,!1,!0),Ze)me.useVAO?me.drawVAO?Oe(me.drawVAO)?ue(Q.shared.vao,".setVAO(",me.drawVAO.append(Q,ue),");"):_e(Q.shared.vao,".setVAO(",me.drawVAO.append(Q,_e),");"):_e(Q.shared.vao,".setVAO(",Q.shared.vao,".targetVAO);"):(_e(Q.shared.vao,".setVAO(null);"),ao(Q,_e,me,Ze.attributes,ar),ao(Q,ue,me,Ze.attributes,Oe)),ho(Q,_e,me,Ze.uniforms,ar,!1),ho(Q,ue,me,Ze.uniforms,Oe,!0),po(Q,_e,ue,me);else{var Er=Q.global.def("{}"),qt=me.shader.progVar.append(Q,ue),pt=ue.def(qt,".id"),st=ue.def(Er,"[",pt,"]");ue(Q.shared.gl,".useProgram(",qt,".program);","if(!",st,"){",st,"=",Er,"[",pt,"]=",Q.link(function(Et){return Zt(ne,Q,me,Et,2)}),"(",qt,");}",st,".call(this,a0[",ze,"],",ze,");")}}function je(Q,oe){var me=Q.proc("batch",2);Q.batchId="0",wi(Q,me);var Ze=!1,Ke=!0;Object.keys(oe.context).forEach(function(Er){Ze=Ze||oe.context[Er].propDep}),Ze||(ti(Q,me,oe.context),Ke=!1);var ze=oe.framebuffer,Pe=!1;ze?(ze.propDep?Ze=Pe=!0:ze.contextDep&&Ze&&(Pe=!0),Pe||ai(Q,me,ze)):ai(Q,me,null),oe.state.viewport&&oe.state.viewport.propDep&&(Ze=!0);function ke(Er){return Er.contextDep&&Ze||Er.propDep}pi(Q,me,oe),$t(Q,me,oe.state,function(Er){return!ke(Er)}),(!oe.profile||!ke(oe.profile))&&Wa(Q,me,oe,!1,"a1"),oe.contextDep=Ze,oe.needsContext=Ke,oe.needsFramebuffer=Pe;var ve=oe.shader.progVar;if(ve.contextDep&&Ze||ve.propDep)Je(Q,me,oe,null);else{var _e=ve.append(Q,me);if(me(Q.shared.gl,".useProgram(",_e,".program);"),oe.shader.program)Je(Q,me,oe,oe.shader.program);else{me(Q.shared.vao,".setVAO(null);");var ue=Q.global.def("{}"),Oe=me.def(_e,".id"),ar=me.def(ue,"[",Oe,"]");me(Q.cond(ar).then(ar,".call(this,a0,a1);").else(ar,"=",ue,"[",Oe,"]=",Q.link(function(Er){return Zt(Je,Q,oe,Er,2)}),"(",_e,");",ar,".call(this,a0,a1);"))}}Object.keys(oe.state).length>0&&me(Q.shared.current,".dirty=true;"),Q.shared.vao&&me(Q.shared.vao,".setVAO(null);")}function wt(Q,oe){var me=Q.proc("scope",3);Q.batchId="a2";var Ze=Q.shared,Ke=Ze.current;if(ti(Q,me,oe.context),oe.framebuffer&&oe.framebuffer.append(Q,me),De(Object.keys(oe.state)).forEach(function(ke){var ve=oe.state[ke],_e=ve.append(Q,me);hn(_e)?_e.forEach(function(ue,Oe){dt(ue)?me.set(Q.next[ke],"["+Oe+"]",ue):me.set(Q.next[ke],"["+Oe+"]",Q.link(ue,{stable:!0}))}):lr(ve)?me.set(Ze.next,"."+ke,Q.link(_e,{stable:!0})):me.set(Ze.next,"."+ke,_e)}),Wa(Q,me,oe,!0,!0),[Ks,Qd,Xu,Ui,Vu].forEach(function(ke){var ve=oe.draw[ke];if(ve){var _e=ve.append(Q,me);dt(_e)?me.set(Ze.draw,"."+ke,_e):me.set(Ze.draw,"."+ke,Q.link(_e),{stable:!0})}}),Object.keys(oe.uniforms).forEach(function(ke){var ve=oe.uniforms[ke].append(Q,me);Array.isArray(ve)&&(ve="["+ve.map(function(_e){return dt(_e)?_e:Q.link(_e,{stable:!0})})+"]"),me.set(Ze.uniforms,"["+Q.link(re.id(ke),{stable:!0})+"]",ve)}),Object.keys(oe.attributes).forEach(function(ke){var ve=oe.attributes[ke].append(Q,me),_e=Q.scopeAttrib(ke);Object.keys(new tr).forEach(function(ue){me.set(_e,"."+ue,ve[ue])})}),oe.scopeVAO){var ze=oe.scopeVAO.append(Q,me);dt(ze)?me.set(Ze.vao,".targetVAO",ze):me.set(Ze.vao,".targetVAO",Q.link(ze,{stable:!0}))}function Pe(ke){var ve=oe.shader[ke];if(ve){var _e=ve.append(Q,me);dt(_e)?me.set(Ze.shader,"."+ke,_e):me.set(Ze.shader,"."+ke,Q.link(_e,{stable:!0}))}}Pe($s),Pe(Yu),Object.keys(oe.state).length>0&&(me(Ke,".dirty=true;"),me.exit(Ke,".dirty=true;")),me("a1(",Q.shared.context,",a0,",Q.batchId,");")}function fa(Q){if(!(typeof Q!="object"||hn(Q))){for(var oe=Object.keys(Q),me=0;me=0;--Zt){var pa=Lt[Zt];pa&&pa(cr,null,0)}ie.flush(),Nr&&Nr.update()}function ta(){!Ot&&Lt.length>0&&(Ot=d.next(Ht))}function kn(){Ot&&(d.cancel(Ht),Ot=null)}function di(Zt){Zt.preventDefault(),We=!0,kn(),Vt.forEach(function(pa){pa()})}function la(Zt){ie.getError(),We=!1,$e.restore(),Dt.restore(),Br.restore(),br.restore(),hr.restore(),ht.restore(),tt.restore(),Nr&&Nr.restore(),$r.procs.refresh(),ta(),rt.forEach(function(pa){pa()})}dt&&(dt.addEventListener(Wt,di,!1),dt.addEventListener(ua,la,!1));function co(){Lt.length=0,kn(),dt&&(dt.removeEventListener(Wt,di),dt.removeEventListener(ua,la)),Dt.clear(),ht.clear(),hr.clear(),tt.clear(),br.clear(),wr.clear(),Br.clear(),Nr&&Nr.clear(),bt.forEach(function(Zt){Zt()})}function Ga(Zt){function pa(ze){var Pe=e({},ze);delete Pe.uniforms,delete Pe.attributes,delete Pe.context,delete Pe.vao,"stencil"in Pe&&Pe.stencil.op&&(Pe.stencil.opBack=Pe.stencil.opFront=Pe.stencil.op,delete Pe.stencil.op);function ke(ve){if(ve in Pe){var _e=Pe[ve];delete Pe[ve],Object.keys(_e).forEach(function(ue){Pe[ve+"."+ue]=_e[ue]})}}return ke("blend"),ke("depth"),ke("cull"),ke("stencil"),ke("polygonOffset"),ke("scissor"),ke("sample"),"vao"in ze&&(Pe.vao=ze.vao),Pe}function sn(ze,Pe){var ke={},ve={};return Object.keys(ze).forEach(function(_e){var ue=ze[_e];if(v.isDynamic(ue)){ve[_e]=v.unbox(ue,_e);return}else if(Pe&&Array.isArray(ue)){for(var Oe=0;Oe0)return Q.call(this,Ze(ze|0),ze|0)}else if(Array.isArray(ze)){if(ze.length)return Q.call(this,ze,ze.length)}else return xt.call(this,ze)}return e(Ke,{stats:fa,destroy:function(){Ya.destroy()}})}var Gi=ht.setFBO=Ga({framebuffer:v.define.call(null,Xa,"framebuffer")});function to(Zt,pa){var sn=0;$r.procs.poll();var ne=pa.color;ne&&(ie.clearColor(+ne[0]||0,+ne[1]||0,+ne[2]||0,+ne[3]||0),sn|=pn),"depth"in pa&&(ie.clearDepth(+pa.depth),sn|=Aa),"stencil"in pa&&(ie.clearStencil(pa.stencil|0),sn|=Hr),ie.clear(sn)}function vo(Zt){if("framebuffer"in Zt)if(Zt.framebuffer&&Zt.framebuffer_reglType==="framebufferCube")for(var pa=0;pa<6;++pa)Gi(e({framebuffer:Zt.framebuffer.faces[pa]},Zt),to);else Gi(Zt,to);else to(null,Zt)}function ti(Zt){Lt.push(Zt);function pa(){var sn=hi(Lt,Zt);function ne(){var Je=hi(Lt,ne);Lt[Je]=Lt[Lt.length-1],Lt.length-=1,Lt.length<=0&&kn()}Lt[sn]=ne}return ta(),{cancel:pa}}function ai(){var Zt=Wr.viewport,pa=Wr.scissor_box;Zt[0]=Zt[1]=pa[0]=pa[1]=0,cr.viewportWidth=cr.framebufferWidth=cr.drawingBufferWidth=Zt[2]=pa[2]=ie.drawingBufferWidth,cr.viewportHeight=cr.framebufferHeight=cr.drawingBufferHeight=Zt[3]=pa[3]=ie.drawingBufferHeight}function pi(){cr.tick+=1,cr.time=wi(),ai(),$r.procs.poll()}function $t(){br.refresh(),ai(),$r.procs.refresh(),Nr&&Nr.update()}function wi(){return(p()-Ct)/1e3}$t();function Wa(Zt,pa){var sn;switch(Zt){case"frame":return ti(pa);case"lost":sn=Vt;break;case"restore":sn=rt;break;case"destroy":sn=bt;break;default:}return sn.push(pa),{cancel:function(){for(var ne=0;ne=0},read:Gr,destroy:co,_gl:ie,_refresh:$t,poll:function(){pi(),Nr&&Nr.update()},now:wi,stats:gr,getCachedCode:ao,preloadCachedCode:ho});return re.onDone(null,po),po}return Fi}))});var hK=B((rIe,vK)=>{"use strict";var GMe=Es();vK.exports=function(r){if(r?typeof r=="string"&&(r={container:r}):r={},fK(r)?r={container:r}:YMe(r)?r={container:r}:VMe(r)?r={gl:r}:r=GMe(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=window.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}fK(r.container)?(r.canvas=r.container,r.container=r.canvas.parentNode):r.canvas||(r.canvas=cK(),r.container.appendChild(r.canvas),uK(r))}else if(!r.canvas)if(typeof document!="undefined")r.container=document.body||document.documentElement,r.canvas=cK(),r.container.appendChild(r.canvas),uK(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(n){}return r.gl}),r.gl};function uK(e){if(e.container)if(e.container==document.body)document.body.style.width||(e.canvas.width=e.width||e.pixelRatio*window.innerWidth),document.body.style.height||(e.canvas.height=e.height||e.pixelRatio*window.innerHeight);else{var r=e.container.getBoundingClientRect();e.canvas.width=e.width||r.right-r.left,e.canvas.height=e.height||r.bottom-r.top}}function fK(e){return typeof e.getContext=="function"&&"width"in e&&"height"in e}function YMe(e){return typeof e.nodeName=="string"&&typeof e.appendChild=="function"&&typeof e.getBoundingClientRect=="function"}function VMe(e){return typeof e.drawArrays=="function"||typeof e.drawElements=="function"}function cK(){var e=document.createElement("canvas");return e.style.position="absolute",e.style.top=0,e.style.left=0,e}});var pK=B((tIe,dK)=>{"use strict";var XMe=_T(),WMe=[32,126];dK.exports=ZMe;function ZMe(e){e=e||{};var r=e.shape?e.shape:e.canvas?[e.canvas.width,e.canvas.height]:[512,512],t=e.canvas||document.createElement("canvas"),a=e.font,n=typeof e.step=="number"?[e.step,e.step]:e.step||[32,32],i=e.chars||WMe;if(a&&typeof a!="string"&&(a=XMe(a)),!Array.isArray(i))i=String(i).split("");else if(i.length===2&&typeof i[0]=="number"&&typeof i[1]=="number"){for(var o=[],l=i[0],s=0;l<=i[1];l++)o[s++]=String.fromCharCode(l);i=o}r=r.slice(),t.width=r[0],t.height=r[1];var u=t.getContext("2d");u.fillStyle="#000",u.fillRect(0,0,t.width,t.height),u.font=a,u.textAlign="center",u.textBaseline="middle",u.fillStyle="#fff";for(var f=n[0]/2,c=n[1]/2,l=0;lr[0]-n[0]/2&&(f=n[0]/2,c+=n[1]);return t}});var kT=B(Gn=>{"use strict";"use restrict";var MT=32;Gn.INT_BITS=MT;Gn.INT_MAX=2147483647;Gn.INT_MIN=-1<0)-(e<0)};Gn.abs=function(e){var r=e>>MT-1;return(e^r)-r};Gn.min=function(e,r){return r^(e^r)&-(e65535)<<4,e>>>=r,t=(e>255)<<3,e>>>=t,r|=t,t=(e>15)<<2,e>>>=t,r|=t,t=(e>3)<<1,e>>>=t,r|=t,r|e>>1};Gn.log10=function(e){return e>=1e9?9:e>=1e8?8:e>=1e7?7:e>=1e6?6:e>=1e5?5:e>=1e4?4:e>=1e3?3:e>=100?2:e>=10?1:0};Gn.popCount=function(e){return e=e-(e>>>1&1431655765),e=(e&858993459)+(e>>>2&858993459),(e+(e>>>4)&252645135)*16843009>>>24};function mK(e){var r=32;return e&=-e,e&&r--,e&65535&&(r-=16),e&16711935&&(r-=8),e&252645135&&(r-=4),e&858993459&&(r-=2),e&1431655765&&(r-=1),r}Gn.countTrailingZeros=mK;Gn.nextPow2=function(e){return e+=e===0,--e,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e+1};Gn.prevPow2=function(e){return e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e-(e>>>1)};Gn.parity=function(e){return e^=e>>>16,e^=e>>>8,e^=e>>>4,e&=15,27030>>>e&1};var Op=new Array(256);(function(e){for(var r=0;r<256;++r){var t=r,a=r,n=7;for(t>>>=1;t;t>>>=1)a<<=1,a|=t&1,--n;e[r]=a<>>8&255]<<16|Op[e>>>16&255]<<8|Op[e>>>24&255]};Gn.interleave2=function(e,r){return e&=65535,e=(e|e<<8)&16711935,e=(e|e<<4)&252645135,e=(e|e<<2)&858993459,e=(e|e<<1)&1431655765,r&=65535,r=(r|r<<8)&16711935,r=(r|r<<4)&252645135,r=(r|r<<2)&858993459,r=(r|r<<1)&1431655765,e|r<<1};Gn.deinterleave2=function(e,r){return e=e>>>r&1431655765,e=(e|e>>>1)&858993459,e=(e|e>>>2)&252645135,e=(e|e>>>4)&16711935,e=(e|e>>>16)&65535,e<<16>>16};Gn.interleave3=function(e,r,t){return e&=1023,e=(e|e<<16)&4278190335,e=(e|e<<8)&251719695,e=(e|e<<4)&3272356035,e=(e|e<<2)&1227133513,r&=1023,r=(r|r<<16)&4278190335,r=(r|r<<8)&251719695,r=(r|r<<4)&3272356035,r=(r|r<<2)&1227133513,e|=r<<1,t&=1023,t=(t|t<<16)&4278190335,t=(t|t<<8)&251719695,t=(t|t<<4)&3272356035,t=(t|t<<2)&1227133513,e|t<<2};Gn.deinterleave3=function(e,r){return e=e>>>r&1227133513,e=(e|e>>>2)&3272356035,e=(e|e>>>4)&251719695,e=(e|e>>>8)&4278190335,e=(e|e>>>16)&1023,e<<22>>22};Gn.nextCombination=function(e){var r=e|e-1;return r+1|(~r&-~r)-1>>>mK(e)+1}});var bK=B((nIe,gK)=>{"use strict";function yK(e,r,t){var a=e[t]|0;if(a<=0)return[];var n=new Array(a),i;if(t===e.length-1)for(i=0;i0)return JMe(e|0,r);break;case"object":if(typeof e.length=="number")return yK(e,r,0);break}return[]}gK.exports=jMe});var wK=B(Gb=>{"use strict";Gb.byteLength=KMe;Gb.toByteArray=eke;Gb.fromByteArray=ake;var Fs=[],gl=[],$Me=typeof Uint8Array!="undefined"?Uint8Array:Array,ST="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(Fc=0,xK=ST.length;Fc0)throw new Error("Invalid string. Length must be a multiple of 4");var t=e.indexOf("=");t===-1&&(t=r);var a=t===r?0:4-t%4;return[t,a]}function KMe(e){var r=_K(e),t=r[0],a=r[1];return(t+a)*3/4-a}function QMe(e,r,t){return(r+t)*3/4-t}function eke(e){var r,t=_K(e),a=t[0],n=t[1],i=new $Me(QMe(e,a,n)),o=0,l=n>0?a-4:a,s;for(s=0;s>16&255,i[o++]=r>>8&255,i[o++]=r&255;return n===2&&(r=gl[e.charCodeAt(s)]<<2|gl[e.charCodeAt(s+1)]>>4,i[o++]=r&255),n===1&&(r=gl[e.charCodeAt(s)]<<10|gl[e.charCodeAt(s+1)]<<4|gl[e.charCodeAt(s+2)]>>2,i[o++]=r>>8&255,i[o++]=r&255),i}function rke(e){return Fs[e>>18&63]+Fs[e>>12&63]+Fs[e>>6&63]+Fs[e&63]}function tke(e,r,t){for(var a,n=[],i=r;il?l:o+i));return a===1?(r=e[t-1],n.push(Fs[r>>2]+Fs[r<<4&63]+"==")):a===2&&(r=(e[t-2]<<8)+e[t-1],n.push(Fs[r>>10]+Fs[r>>4&63]+Fs[r<<2&63]+"=")),n.join("")}});var AK=B(CT=>{CT.read=function(e,r,t,a,n){var i,o,l=n*8-a-1,s=(1<>1,f=-7,c=t?n-1:0,v=t?-1:1,d=e[r+c];for(c+=v,i=d&(1<<-f)-1,d>>=-f,f+=l;f>0;i=i*256+e[r+c],c+=v,f-=8);for(o=i&(1<<-f)-1,i>>=-f,f+=a;f>0;o=o*256+e[r+c],c+=v,f-=8);if(i===0)i=1-u;else{if(i===s)return o?NaN:(d?-1:1)*(1/0);o=o+Math.pow(2,a),i=i-u}return(d?-1:1)*o*Math.pow(2,i-a)};CT.write=function(e,r,t,a,n,i){var o,l,s,u=i*8-n-1,f=(1<>1,v=n===23?Math.pow(2,-24)-Math.pow(2,-77):0,d=a?0:i-1,p=a?1:-1,y=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(l=isNaN(r)?1:0,o=f):(o=Math.floor(Math.log(r)/Math.LN2),r*(s=Math.pow(2,-o))<1&&(o--,s*=2),o+c>=1?r+=v/s:r+=v*Math.pow(2,1-c),r*s>=2&&(o++,s/=2),o+c>=f?(l=0,o=f):o+c>=1?(l=(r*s-1)*Math.pow(2,n),o=o+c):(l=r*Math.pow(2,c-1)*Math.pow(2,n),o=0));n>=8;e[t+d]=l&255,d+=p,l/=256,n-=8);for(o=o<0;e[t+d]=o&255,d+=p,o/=256,u-=8);e[t+d-p]|=y*128}});var OK=B(ud=>{"use strict";var DT=wK(),ld=AK(),TK=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;ud.Buffer=xr;ud.SlowBuffer=uke;ud.INSPECT_MAX_BYTES=50;var Yb=2147483647;ud.kMaxLength=Yb;xr.TYPED_ARRAY_SUPPORT=nke();!xr.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&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 nke(){try{let e=new Uint8Array(1),r={foo:function(){return 42}};return Object.setPrototypeOf(r,Uint8Array.prototype),Object.setPrototypeOf(e,r),e.foo()===42}catch(e){return!1}}Object.defineProperty(xr.prototype,"parent",{enumerable:!0,get:function(){if(xr.isBuffer(this))return this.buffer}});Object.defineProperty(xr.prototype,"offset",{enumerable:!0,get:function(){if(xr.isBuffer(this))return this.byteOffset}});function Mu(e){if(e>Yb)throw new RangeError('The value "'+e+'" is invalid for option "size"');let r=new Uint8Array(e);return Object.setPrototypeOf(r,xr.prototype),r}function xr(e,r,t){if(typeof e=="number"){if(typeof r=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return FT(e)}return CK(e,r,t)}xr.poolSize=8192;function CK(e,r,t){if(typeof e=="string")return oke(e,r);if(ArrayBuffer.isView(e))return lke(e);if(e==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(Rs(e,ArrayBuffer)||e&&Rs(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(Rs(e,SharedArrayBuffer)||e&&Rs(e.buffer,SharedArrayBuffer)))return ET(e,r,t);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let a=e.valueOf&&e.valueOf();if(a!=null&&a!==e)return xr.from(a,r,t);let n=ske(e);if(n)return n;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return xr.from(e[Symbol.toPrimitive]("string"),r,t);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}xr.from=function(e,r,t){return CK(e,r,t)};Object.setPrototypeOf(xr.prototype,Uint8Array.prototype);Object.setPrototypeOf(xr,Uint8Array);function DK(e){if(typeof e!="number")throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function ike(e,r,t){return DK(e),e<=0?Mu(e):r!==void 0?typeof t=="string"?Mu(e).fill(r,t):Mu(e).fill(r):Mu(e)}xr.alloc=function(e,r,t){return ike(e,r,t)};function FT(e){return DK(e),Mu(e<0?0:RT(e)|0)}xr.allocUnsafe=function(e){return FT(e)};xr.allocUnsafeSlow=function(e){return FT(e)};function oke(e,r){if((typeof r!="string"||r==="")&&(r="utf8"),!xr.isEncoding(r))throw new TypeError("Unknown encoding: "+r);let t=LK(e,r)|0,a=Mu(t),n=a.write(e,r);return n!==t&&(a=a.slice(0,n)),a}function LT(e){let r=e.length<0?0:RT(e.length)|0,t=Mu(r);for(let a=0;a=Yb)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Yb.toString(16)+" bytes");return e|0}function uke(e){return+e!=e&&(e=0),xr.alloc(+e)}xr.isBuffer=function(r){return r!=null&&r._isBuffer===!0&&r!==xr.prototype};xr.compare=function(r,t){if(Rs(r,Uint8Array)&&(r=xr.from(r,r.offset,r.byteLength)),Rs(t,Uint8Array)&&(t=xr.from(t,t.offset,t.byteLength)),!xr.isBuffer(r)||!xr.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(r===t)return 0;let a=r.length,n=t.length;for(let i=0,o=Math.min(a,n);in.length?(xr.isBuffer(o)||(o=xr.from(o)),o.copy(n,i)):Uint8Array.prototype.set.call(n,o,i);else if(xr.isBuffer(o))o.copy(n,i);else throw new TypeError('"list" argument must be an Array of Buffers');i+=o.length}return n};function LK(e,r){if(xr.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||Rs(e,ArrayBuffer))return e.byteLength;if(typeof e!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);let t=e.length,a=arguments.length>2&&arguments[2]===!0;if(!a&&t===0)return 0;let n=!1;for(;;)switch(r){case"ascii":case"latin1":case"binary":return t;case"utf8":case"utf-8":return qT(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return t*2;case"hex":return t>>>1;case"base64":return IK(e).length;default:if(n)return a?-1:qT(e).length;r=(""+r).toLowerCase(),n=!0}}xr.byteLength=LK;function fke(e,r,t){let a=!1;if((r===void 0||r<0)&&(r=0),r>this.length||((t===void 0||t>this.length)&&(t=this.length),t<=0)||(t>>>=0,r>>>=0,t<=r))return"";for(e||(e="utf8");;)switch(e){case"hex":return xke(this,r,t);case"utf8":case"utf-8":return qK(this,r,t);case"ascii":return gke(this,r,t);case"latin1":case"binary":return bke(this,r,t);case"base64":return mke(this,r,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return _ke(this,r,t);default:if(a)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),a=!0}}xr.prototype._isBuffer=!0;function Rc(e,r,t){let a=e[r];e[r]=e[t],e[t]=a}xr.prototype.swap16=function(){let r=this.length;if(r%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;tt&&(r+=" ... "),""};TK&&(xr.prototype[TK]=xr.prototype.inspect);xr.prototype.compare=function(r,t,a,n,i){if(Rs(r,Uint8Array)&&(r=xr.from(r,r.offset,r.byteLength)),!xr.isBuffer(r))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof r);if(t===void 0&&(t=0),a===void 0&&(a=r?r.length:0),n===void 0&&(n=0),i===void 0&&(i=this.length),t<0||a>r.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&t>=a)return 0;if(n>=i)return-1;if(t>=a)return 1;if(t>>>=0,a>>>=0,n>>>=0,i>>>=0,this===r)return 0;let o=i-n,l=a-t,s=Math.min(o,l),u=this.slice(n,i),f=r.slice(t,a);for(let c=0;c2147483647?t=2147483647:t<-2147483648&&(t=-2147483648),t=+t,NT(t)&&(t=n?0:e.length-1),t<0&&(t=e.length+t),t>=e.length){if(n)return-1;t=e.length-1}else if(t<0)if(n)t=0;else return-1;if(typeof r=="string"&&(r=xr.from(r,a)),xr.isBuffer(r))return r.length===0?-1:MK(e,r,t,a,n);if(typeof r=="number")return r=r&255,typeof Uint8Array.prototype.indexOf=="function"?n?Uint8Array.prototype.indexOf.call(e,r,t):Uint8Array.prototype.lastIndexOf.call(e,r,t):MK(e,[r],t,a,n);throw new TypeError("val must be string, number or Buffer")}function MK(e,r,t,a,n){let i=1,o=e.length,l=r.length;if(a!==void 0&&(a=String(a).toLowerCase(),a==="ucs2"||a==="ucs-2"||a==="utf16le"||a==="utf-16le")){if(e.length<2||r.length<2)return-1;i=2,o/=2,l/=2,t/=2}function s(f,c){return i===1?f[c]:f.readUInt16BE(c*i)}let u;if(n){let f=-1;for(u=t;uo&&(t=o-l),u=t;u>=0;u--){let f=!0;for(let c=0;cn&&(a=n)):a=n;let i=r.length;a>i/2&&(a=i/2);let o;for(o=0;o>>0,isFinite(a)?(a=a>>>0,n===void 0&&(n="utf8")):(n=a,a=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let i=this.length-t;if((a===void 0||a>i)&&(a=i),r.length>0&&(a<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");let o=!1;for(;;)switch(n){case"hex":return cke(this,r,t,a);case"utf8":case"utf-8":return vke(this,r,t,a);case"ascii":case"latin1":case"binary":return hke(this,r,t,a);case"base64":return dke(this,r,t,a);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return pke(this,r,t,a);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}};xr.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function mke(e,r,t){return r===0&&t===e.length?DT.fromByteArray(e):DT.fromByteArray(e.slice(r,t))}function qK(e,r,t){t=Math.min(e.length,t);let a=[],n=r;for(;n239?4:i>223?3:i>191?2:1;if(n+l<=t){let s,u,f,c;switch(l){case 1:i<128&&(o=i);break;case 2:s=e[n+1],(s&192)===128&&(c=(i&31)<<6|s&63,c>127&&(o=c));break;case 3:s=e[n+1],u=e[n+2],(s&192)===128&&(u&192)===128&&(c=(i&15)<<12|(s&63)<<6|u&63,c>2047&&(c<55296||c>57343)&&(o=c));break;case 4:s=e[n+1],u=e[n+2],f=e[n+3],(s&192)===128&&(u&192)===128&&(f&192)===128&&(c=(i&15)<<18|(s&63)<<12|(u&63)<<6|f&63,c>65535&&c<1114112&&(o=c))}}o===null?(o=65533,l=1):o>65535&&(o-=65536,a.push(o>>>10&1023|55296),o=56320|o&1023),a.push(o),n+=l}return yke(a)}var kK=4096;function yke(e){let r=e.length;if(r<=kK)return String.fromCharCode.apply(String,e);let t="",a=0;for(;aa)&&(t=a);let n="";for(let i=r;ia&&(r=a),t<0?(t+=a,t<0&&(t=0)):t>a&&(t=a),tt)throw new RangeError("Trying to access beyond buffer length")}xr.prototype.readUintLE=xr.prototype.readUIntLE=function(r,t,a){r=r>>>0,t=t>>>0,a||Di(r,t,this.length);let n=this[r],i=1,o=0;for(;++o>>0,t=t>>>0,a||Di(r,t,this.length);let n=this[r+--t],i=1;for(;t>0&&(i*=256);)n+=this[r+--t]*i;return n};xr.prototype.readUint8=xr.prototype.readUInt8=function(r,t){return r=r>>>0,t||Di(r,1,this.length),this[r]};xr.prototype.readUint16LE=xr.prototype.readUInt16LE=function(r,t){return r=r>>>0,t||Di(r,2,this.length),this[r]|this[r+1]<<8};xr.prototype.readUint16BE=xr.prototype.readUInt16BE=function(r,t){return r=r>>>0,t||Di(r,2,this.length),this[r]<<8|this[r+1]};xr.prototype.readUint32LE=xr.prototype.readUInt32LE=function(r,t){return r=r>>>0,t||Di(r,4,this.length),(this[r]|this[r+1]<<8|this[r+2]<<16)+this[r+3]*16777216};xr.prototype.readUint32BE=xr.prototype.readUInt32BE=function(r,t){return r=r>>>0,t||Di(r,4,this.length),this[r]*16777216+(this[r+1]<<16|this[r+2]<<8|this[r+3])};xr.prototype.readBigUInt64LE=Vf(function(r){r=r>>>0,sd(r,"offset");let t=this[r],a=this[r+7];(t===void 0||a===void 0)&&Hp(r,this.length-8);let n=t+this[++r]*2**8+this[++r]*2**16+this[++r]*2**24,i=this[++r]+this[++r]*2**8+this[++r]*2**16+a*2**24;return BigInt(n)+(BigInt(i)<>>0,sd(r,"offset");let t=this[r],a=this[r+7];(t===void 0||a===void 0)&&Hp(r,this.length-8);let n=t*2**24+this[++r]*2**16+this[++r]*2**8+this[++r],i=this[++r]*2**24+this[++r]*2**16+this[++r]*2**8+a;return(BigInt(n)<>>0,t=t>>>0,a||Di(r,t,this.length);let n=this[r],i=1,o=0;for(;++o=i&&(n-=Math.pow(2,8*t)),n};xr.prototype.readIntBE=function(r,t,a){r=r>>>0,t=t>>>0,a||Di(r,t,this.length);let n=t,i=1,o=this[r+--n];for(;n>0&&(i*=256);)o+=this[r+--n]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*t)),o};xr.prototype.readInt8=function(r,t){return r=r>>>0,t||Di(r,1,this.length),this[r]&128?(255-this[r]+1)*-1:this[r]};xr.prototype.readInt16LE=function(r,t){r=r>>>0,t||Di(r,2,this.length);let a=this[r]|this[r+1]<<8;return a&32768?a|4294901760:a};xr.prototype.readInt16BE=function(r,t){r=r>>>0,t||Di(r,2,this.length);let a=this[r+1]|this[r]<<8;return a&32768?a|4294901760:a};xr.prototype.readInt32LE=function(r,t){return r=r>>>0,t||Di(r,4,this.length),this[r]|this[r+1]<<8|this[r+2]<<16|this[r+3]<<24};xr.prototype.readInt32BE=function(r,t){return r=r>>>0,t||Di(r,4,this.length),this[r]<<24|this[r+1]<<16|this[r+2]<<8|this[r+3]};xr.prototype.readBigInt64LE=Vf(function(r){r=r>>>0,sd(r,"offset");let t=this[r],a=this[r+7];(t===void 0||a===void 0)&&Hp(r,this.length-8);let n=this[r+4]+this[r+5]*2**8+this[r+6]*2**16+(a<<24);return(BigInt(n)<>>0,sd(r,"offset");let t=this[r],a=this[r+7];(t===void 0||a===void 0)&&Hp(r,this.length-8);let n=(t<<24)+this[++r]*2**16+this[++r]*2**8+this[++r];return(BigInt(n)<>>0,t||Di(r,4,this.length),ld.read(this,r,!0,23,4)};xr.prototype.readFloatBE=function(r,t){return r=r>>>0,t||Di(r,4,this.length),ld.read(this,r,!1,23,4)};xr.prototype.readDoubleLE=function(r,t){return r=r>>>0,t||Di(r,8,this.length),ld.read(this,r,!0,52,8)};xr.prototype.readDoubleBE=function(r,t){return r=r>>>0,t||Di(r,8,this.length),ld.read(this,r,!1,52,8)};function So(e,r,t,a,n,i){if(!xr.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>n||re.length)throw new RangeError("Index out of range")}xr.prototype.writeUintLE=xr.prototype.writeUIntLE=function(r,t,a,n){if(r=+r,t=t>>>0,a=a>>>0,!n){let l=Math.pow(2,8*a)-1;So(this,r,t,a,l,0)}let i=1,o=0;for(this[t]=r&255;++o>>0,a=a>>>0,!n){let l=Math.pow(2,8*a)-1;So(this,r,t,a,l,0)}let i=a-1,o=1;for(this[t+i]=r&255;--i>=0&&(o*=256);)this[t+i]=r/o&255;return t+a};xr.prototype.writeUint8=xr.prototype.writeUInt8=function(r,t,a){return r=+r,t=t>>>0,a||So(this,r,t,1,255,0),this[t]=r&255,t+1};xr.prototype.writeUint16LE=xr.prototype.writeUInt16LE=function(r,t,a){return r=+r,t=t>>>0,a||So(this,r,t,2,65535,0),this[t]=r&255,this[t+1]=r>>>8,t+2};xr.prototype.writeUint16BE=xr.prototype.writeUInt16BE=function(r,t,a){return r=+r,t=t>>>0,a||So(this,r,t,2,65535,0),this[t]=r>>>8,this[t+1]=r&255,t+2};xr.prototype.writeUint32LE=xr.prototype.writeUInt32LE=function(r,t,a){return r=+r,t=t>>>0,a||So(this,r,t,4,4294967295,0),this[t+3]=r>>>24,this[t+2]=r>>>16,this[t+1]=r>>>8,this[t]=r&255,t+4};xr.prototype.writeUint32BE=xr.prototype.writeUInt32BE=function(r,t,a){return r=+r,t=t>>>0,a||So(this,r,t,4,4294967295,0),this[t]=r>>>24,this[t+1]=r>>>16,this[t+2]=r>>>8,this[t+3]=r&255,t+4};function FK(e,r,t,a,n){BK(r,a,n,e,t,7);let i=Number(r&BigInt(4294967295));e[t++]=i,i=i>>8,e[t++]=i,i=i>>8,e[t++]=i,i=i>>8,e[t++]=i;let o=Number(r>>BigInt(32)&BigInt(4294967295));return e[t++]=o,o=o>>8,e[t++]=o,o=o>>8,e[t++]=o,o=o>>8,e[t++]=o,t}function RK(e,r,t,a,n){BK(r,a,n,e,t,7);let i=Number(r&BigInt(4294967295));e[t+7]=i,i=i>>8,e[t+6]=i,i=i>>8,e[t+5]=i,i=i>>8,e[t+4]=i;let o=Number(r>>BigInt(32)&BigInt(4294967295));return e[t+3]=o,o=o>>8,e[t+2]=o,o=o>>8,e[t+1]=o,o=o>>8,e[t]=o,t+8}xr.prototype.writeBigUInt64LE=Vf(function(r,t=0){return FK(this,r,t,BigInt(0),BigInt("0xffffffffffffffff"))});xr.prototype.writeBigUInt64BE=Vf(function(r,t=0){return RK(this,r,t,BigInt(0),BigInt("0xffffffffffffffff"))});xr.prototype.writeIntLE=function(r,t,a,n){if(r=+r,t=t>>>0,!n){let s=Math.pow(2,8*a-1);So(this,r,t,a,s-1,-s)}let i=0,o=1,l=0;for(this[t]=r&255;++i>0)-l&255;return t+a};xr.prototype.writeIntBE=function(r,t,a,n){if(r=+r,t=t>>>0,!n){let s=Math.pow(2,8*a-1);So(this,r,t,a,s-1,-s)}let i=a-1,o=1,l=0;for(this[t+i]=r&255;--i>=0&&(o*=256);)r<0&&l===0&&this[t+i+1]!==0&&(l=1),this[t+i]=(r/o>>0)-l&255;return t+a};xr.prototype.writeInt8=function(r,t,a){return r=+r,t=t>>>0,a||So(this,r,t,1,127,-128),r<0&&(r=255+r+1),this[t]=r&255,t+1};xr.prototype.writeInt16LE=function(r,t,a){return r=+r,t=t>>>0,a||So(this,r,t,2,32767,-32768),this[t]=r&255,this[t+1]=r>>>8,t+2};xr.prototype.writeInt16BE=function(r,t,a){return r=+r,t=t>>>0,a||So(this,r,t,2,32767,-32768),this[t]=r>>>8,this[t+1]=r&255,t+2};xr.prototype.writeInt32LE=function(r,t,a){return r=+r,t=t>>>0,a||So(this,r,t,4,2147483647,-2147483648),this[t]=r&255,this[t+1]=r>>>8,this[t+2]=r>>>16,this[t+3]=r>>>24,t+4};xr.prototype.writeInt32BE=function(r,t,a){return r=+r,t=t>>>0,a||So(this,r,t,4,2147483647,-2147483648),r<0&&(r=4294967295+r+1),this[t]=r>>>24,this[t+1]=r>>>16,this[t+2]=r>>>8,this[t+3]=r&255,t+4};xr.prototype.writeBigInt64LE=Vf(function(r,t=0){return FK(this,r,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});xr.prototype.writeBigInt64BE=Vf(function(r,t=0){return RK(this,r,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function PK(e,r,t,a,n,i){if(t+a>e.length)throw new RangeError("Index out of range");if(t<0)throw new RangeError("Index out of range")}function NK(e,r,t,a,n){return r=+r,t=t>>>0,n||PK(e,r,t,4,34028234663852886e22,-34028234663852886e22),ld.write(e,r,t,a,23,4),t+4}xr.prototype.writeFloatLE=function(r,t,a){return NK(this,r,t,!0,a)};xr.prototype.writeFloatBE=function(r,t,a){return NK(this,r,t,!1,a)};function zK(e,r,t,a,n){return r=+r,t=t>>>0,n||PK(e,r,t,8,17976931348623157e292,-17976931348623157e292),ld.write(e,r,t,a,52,8),t+8}xr.prototype.writeDoubleLE=function(r,t,a){return zK(this,r,t,!0,a)};xr.prototype.writeDoubleBE=function(r,t,a){return zK(this,r,t,!1,a)};xr.prototype.copy=function(r,t,a,n){if(!xr.isBuffer(r))throw new TypeError("argument should be a Buffer");if(a||(a=0),!n&&n!==0&&(n=this.length),t>=r.length&&(t=r.length),t||(t=0),n>0&&n=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),r.length-t>>0,a=a===void 0?this.length:a>>>0,r||(r=0);let i;if(typeof r=="number")for(i=t;i2**32?n=SK(String(t)):typeof t=="bigint"&&(n=String(t),(t>BigInt(2)**BigInt(32)||t<-(BigInt(2)**BigInt(32)))&&(n=SK(n)),n+="n"),a+=` It must be ${r}. Received ${n}`,a},RangeError);function SK(e){let r="",t=e.length,a=e[0]==="-"?1:0;for(;t>=a+4;t-=3)r=`_${e.slice(t-3,t)}${r}`;return`${e.slice(0,t)}${r}`}function wke(e,r,t){sd(r,"offset"),(e[r]===void 0||e[r+t]===void 0)&&Hp(r,e.length-(t+1))}function BK(e,r,t,a,n,i){if(e>t||e3?r===0||r===BigInt(0)?l=`>= 0${o} and < 2${o} ** ${(i+1)*8}${o}`:l=`>= -(2${o} ** ${(i+1)*8-1}${o}) and < 2 ** ${(i+1)*8-1}${o}`:l=`>= ${r}${o} and <= ${t}${o}`,new od.ERR_OUT_OF_RANGE("value",l,e)}wke(a,n,i)}function sd(e,r){if(typeof e!="number")throw new od.ERR_INVALID_ARG_TYPE(r,"number",e)}function Hp(e,r,t){throw Math.floor(e)!==e?(sd(e,t),new od.ERR_OUT_OF_RANGE(t||"offset","an integer",e)):r<0?new od.ERR_BUFFER_OUT_OF_BOUNDS:new od.ERR_OUT_OF_RANGE(t||"offset",`>= ${t?1:0} and <= ${r}`,e)}var Ake=/[^+/0-9A-Za-z-_]/g;function Tke(e){if(e=e.split("=")[0],e=e.trim().replace(Ake,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function qT(e,r){r=r||1/0;let t,a=e.length,n=null,i=[];for(let o=0;o55295&&t<57344){if(!n){if(t>56319){(r-=3)>-1&&i.push(239,191,189);continue}else if(o+1===a){(r-=3)>-1&&i.push(239,191,189);continue}n=t;continue}if(t<56320){(r-=3)>-1&&i.push(239,191,189),n=t;continue}t=(n-55296<<10|t-56320)+65536}else n&&(r-=3)>-1&&i.push(239,191,189);if(n=null,t<128){if((r-=1)<0)break;i.push(t)}else if(t<2048){if((r-=2)<0)break;i.push(t>>6|192,t&63|128)}else if(t<65536){if((r-=3)<0)break;i.push(t>>12|224,t>>6&63|128,t&63|128)}else if(t<1114112){if((r-=4)<0)break;i.push(t>>18|240,t>>12&63|128,t>>6&63|128,t&63|128)}else throw new Error("Invalid code point")}return i}function Mke(e){let r=[];for(let t=0;t>8,n=t%256,i.push(n),i.push(a);return i}function IK(e){return DT.toByteArray(Tke(e))}function Vb(e,r,t,a){let n;for(n=0;n=r.length||n>=e.length);++n)r[n+t]=e[n];return n}function Rs(e,r){return e instanceof r||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===r.name}function NT(e){return e!==e}var Ske=(function(){let e="0123456789abcdef",r=new Array(256);for(let t=0;t<16;++t){let a=t*16;for(let n=0;n<16;++n)r[a+n]=e[t]+e[n]}return r})();function Vf(e){return typeof BigInt=="undefined"?Cke:e}function Cke(){throw new Error("BigInt not supported")}});var rQ=B(Ta=>{"use strict";var Xf=kT(),Ii=bK(),HK=OK().Buffer;window.__TYPEDARRAY_POOL||(window.__TYPEDARRAY_POOL={UINT8:Ii([32,0]),UINT16:Ii([32,0]),UINT32:Ii([32,0]),BIGUINT64:Ii([32,0]),INT8:Ii([32,0]),INT16:Ii([32,0]),INT32:Ii([32,0]),BIGINT64:Ii([32,0]),FLOAT:Ii([32,0]),DOUBLE:Ii([32,0]),DATA:Ii([32,0]),UINT8C:Ii([32,0]),BUFFER:Ii([32,0])});var Dke=typeof Uint8ClampedArray!="undefined",Lke=typeof BigUint64Array!="undefined",Eke=typeof BigInt64Array!="undefined",ei=window.__TYPEDARRAY_POOL;ei.UINT8C||(ei.UINT8C=Ii([32,0]));ei.BIGUINT64||(ei.BIGUINT64=Ii([32,0]));ei.BIGINT64||(ei.BIGINT64=Ii([32,0]));ei.BUFFER||(ei.BUFFER=Ii([32,0]));var Xb=ei.DATA,Wb=ei.BUFFER;Ta.free=function(r){if(HK.isBuffer(r))Wb[Xf.log2(r.length)].push(r);else{if(Object.prototype.toString.call(r)!=="[object ArrayBuffer]"&&(r=r.buffer),!r)return;var t=r.length||r.byteLength,a=Xf.log2(t)|0;Xb[a].push(r)}};function UK(e){if(e){var r=e.length||e.byteLength,t=Xf.log2(r);Xb[t].push(e)}}function qke(e){UK(e.buffer)}Ta.freeUint8=Ta.freeUint16=Ta.freeUint32=Ta.freeBigUint64=Ta.freeInt8=Ta.freeInt16=Ta.freeInt32=Ta.freeBigInt64=Ta.freeFloat32=Ta.freeFloat=Ta.freeFloat64=Ta.freeDouble=Ta.freeUint8Clamped=Ta.freeDataView=qke;Ta.freeArrayBuffer=UK;Ta.freeBuffer=function(r){Wb[Xf.log2(r.length)].push(r)};Ta.malloc=function(r,t){if(t===void 0||t==="arraybuffer")return Co(r);switch(t){case"uint8":return zT(r);case"uint16":return GK(r);case"uint32":return YK(r);case"int8":return VK(r);case"int16":return XK(r);case"int32":return WK(r);case"float":case"float32":return ZK(r);case"double":case"float64":return JK(r);case"uint8_clamped":return jK(r);case"bigint64":return KK(r);case"biguint64":return $K(r);case"buffer":return eQ(r);case"data":case"dataview":return QK(r);default:return null}return null};function Co(r){var r=Xf.nextPow2(r),t=Xf.log2(r),a=Xb[t];return a.length>0?a.pop():new ArrayBuffer(r)}Ta.mallocArrayBuffer=Co;function zT(e){return new Uint8Array(Co(e),0,e)}Ta.mallocUint8=zT;function GK(e){return new Uint16Array(Co(2*e),0,e)}Ta.mallocUint16=GK;function YK(e){return new Uint32Array(Co(4*e),0,e)}Ta.mallocUint32=YK;function VK(e){return new Int8Array(Co(e),0,e)}Ta.mallocInt8=VK;function XK(e){return new Int16Array(Co(2*e),0,e)}Ta.mallocInt16=XK;function WK(e){return new Int32Array(Co(4*e),0,e)}Ta.mallocInt32=WK;function ZK(e){return new Float32Array(Co(4*e),0,e)}Ta.mallocFloat32=Ta.mallocFloat=ZK;function JK(e){return new Float64Array(Co(8*e),0,e)}Ta.mallocFloat64=Ta.mallocDouble=JK;function jK(e){return Dke?new Uint8ClampedArray(Co(e),0,e):zT(e)}Ta.mallocUint8Clamped=jK;function $K(e){return Lke?new BigUint64Array(Co(8*e),0,e):null}Ta.mallocBigUint64=$K;function KK(e){return Eke?new BigInt64Array(Co(8*e),0,e):null}Ta.mallocBigInt64=KK;function QK(e){return new DataView(Co(e),0,e)}Ta.mallocDataView=QK;function eQ(e){e=Xf.nextPow2(e);var r=Xf.log2(e),t=Wb[r];return t.length>0?t.pop():new HK(e)}Ta.mallocBuffer=eQ;Ta.clearCache=function(){for(var r=0;r<32;++r)ei.UINT8[r].length=0,ei.UINT16[r].length=0,ei.UINT32[r].length=0,ei.INT8[r].length=0,ei.INT16[r].length=0,ei.INT32[r].length=0,ei.FLOAT[r].length=0,ei.DOUBLE[r].length=0,ei.BIGUINT64[r].length=0,ei.BIGINT64[r].length=0,ei.UINT8C[r].length=0,Xb[r].length=0,Wb[r].length=0}});var aQ=B((fIe,tQ)=>{"use strict";var Fke=Object.prototype.toString;tQ.exports=function(e){var r;return Fke.call(e)==="[object Object]"&&(r=Object.getPrototypeOf(e),r===null||r===Object.getPrototypeOf({}))}});var BT=B((cIe,nQ)=>{nQ.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}});var lQ=B((vIe,oQ)=>{"use strict";var Rke=BT();oQ.exports=iQ;var Up=96;function IT(e,r){var t=Rke(getComputedStyle(e).getPropertyValue(r));return t[0]*iQ(t[1],e)}function Pke(e,r){var t=document.createElement("div");t.style["font-size"]="128"+e,r.appendChild(t);var a=IT(t,"font-size")/128;return r.removeChild(t),a}function iQ(e,r){switch(r=r||document.body,e=(e||"px").trim().toLowerCase(),(r===window||r===document)&&(r=document.body),e){case"%":return r.clientHeight/100;case"ch":case"ex":return Pke(e,r);case"em":return IT(r,"font-size");case"rem":return IT(document.body,"font-size");case"vw":return window.innerWidth/100;case"vh":return window.innerHeight/100;case"vmin":return Math.min(window.innerWidth,window.innerHeight)/100;case"vmax":return Math.max(window.innerWidth,window.innerHeight)/100;case"in":return Up;case"cm":return Up/2.54;case"mm":return Up/25.4;case"pt":return Up/72;case"pc":return Up/6}return 1}});var fQ=B((hIe,uQ)=>{"use strict";uQ.exports=jb;var Nke=jb.canvas=document.createElement("canvas"),Zb=Nke.getContext("2d"),sQ=Jb([32,126]);jb.createPairs=Jb;jb.ascii=sQ;function jb(e,r){Array.isArray(e)&&(e=e.join(", "));var t={},a,n=16,i=.05;r&&(r.length===2&&typeof r[0]=="number"?a=Jb(r):Array.isArray(r)?a=r:(r.o?a=Jb(r.o):r.pairs&&(a=r.pairs),r.fontSize&&(n=r.fontSize),r.threshold!=null&&(i=r.threshold))),a||(a=sQ),Zb.font=n+"px "+e;for(var o=0;on*i){var f=(u-s)/n;t[l]=f*1e3}}return t}function Jb(e){for(var r=[],t=e[0];t<=e[1];t++)for(var a=String.fromCharCode(t),n=e[0];n{"use strict";hQ.exports=Wf;Wf.canvas=document.createElement("canvas");Wf.cache={};function Wf(o,r){r||(r={}),(typeof o=="string"||Array.isArray(o))&&(r.family=o);var t=Array.isArray(r.family)?r.family.join(", "):r.family;if(!t)throw Error("`family` must be defined");var a=r.size||r.fontSize||r.em||48,n=r.weight||r.fontWeight||"",i=r.style||r.fontStyle||"",o=[i,n,a].join(" ")+"px "+t,l=r.origin||"top";if(Wf.cache[t]&&a<=Wf.cache[t].em)return cQ(Wf.cache[t],l);var s=r.canvas||Wf.canvas,u=s.getContext("2d"),f={upper:r.upper!==void 0?r.upper:"H",lower:r.lower!==void 0?r.lower:"x",descent:r.descent!==void 0?r.descent:"p",ascent:r.ascent!==void 0?r.ascent:"h",tittle:r.tittle!==void 0?r.tittle:"i",overshoot:r.overshoot!==void 0?r.overshoot:"O"},c=Math.ceil(a*1.5);s.height=c,s.width=c*.5,u.font=o;var v="H",d={top:0};u.clearRect(0,0,c,c),u.textBaseline="top",u.fillStyle="black",u.fillText(v,0,0);var p=Ps(u.getImageData(0,0,c,c));u.clearRect(0,0,c,c),u.textBaseline="bottom",u.fillText(v,0,c);var y=Ps(u.getImageData(0,0,c,c));d.lineHeight=d.bottom=c-y+p,u.clearRect(0,0,c,c),u.textBaseline="alphabetic",u.fillText(v,0,c);var m=Ps(u.getImageData(0,0,c,c)),b=c-m-1+p;d.baseline=d.alphabetic=b,u.clearRect(0,0,c,c),u.textBaseline="middle",u.fillText(v,0,c*.5);var T=Ps(u.getImageData(0,0,c,c));d.median=d.middle=c-T-1+p-c*.5,u.clearRect(0,0,c,c),u.textBaseline="hanging",u.fillText(v,0,c*.5);var _=Ps(u.getImageData(0,0,c,c));d.hanging=c-_-1+p-c*.5,u.clearRect(0,0,c,c),u.textBaseline="ideographic",u.fillText(v,0,c);var x=Ps(u.getImageData(0,0,c,c));if(d.ideographic=c-x-1+p,f.upper&&(u.clearRect(0,0,c,c),u.textBaseline="top",u.fillText(f.upper,0,0),d.upper=Ps(u.getImageData(0,0,c,c)),d.capHeight=d.baseline-d.upper),f.lower&&(u.clearRect(0,0,c,c),u.textBaseline="top",u.fillText(f.lower,0,0),d.lower=Ps(u.getImageData(0,0,c,c)),d.xHeight=d.baseline-d.lower),f.tittle&&(u.clearRect(0,0,c,c),u.textBaseline="top",u.fillText(f.tittle,0,0),d.tittle=Ps(u.getImageData(0,0,c,c))),f.ascent&&(u.clearRect(0,0,c,c),u.textBaseline="top",u.fillText(f.ascent,0,0),d.ascent=Ps(u.getImageData(0,0,c,c))),f.descent&&(u.clearRect(0,0,c,c),u.textBaseline="top",u.fillText(f.descent,0,0),d.descent=vQ(u.getImageData(0,0,c,c))),f.overshoot){u.clearRect(0,0,c,c),u.textBaseline="top",u.fillText(f.overshoot,0,0);var w=vQ(u.getImageData(0,0,c,c));d.overshoot=w-b}for(var k in d)d[k]/=a;return d.em=a,Wf.cache[t]=d,cQ(d,l)}function cQ(e,r){var t={};typeof r=="string"&&(r=e[r]);for(var a in e)a!=="em"&&(t[a]=e[a]-r);return t}function Ps(e){for(var r=e.height,t=e.data,a=3;a0;a-=4)if(t[a]!==0)return Math.floor((a-3)*.25/r)}});var gQ=B((pIe,yQ)=>{"use strict";var fd=sK(),zke=Es(),Bke=TT(),Ike=hK(),Oke=lT(),OT=kp(),Hke=pK(),Zf=rQ(),Uke=Wh(),Gke=aQ(),Yke=BT(),Vke=lQ(),Xke=fQ(),Wke=ci(),Zke=dQ(),Jke=Cc(),jke=kT(),pQ=jke.nextPow2,mQ=new Oke,Kb=!1;document.body&&($b=document.body.appendChild(document.createElement("div")),$b.style.font="italic small-caps bold condensed 16px/2 cursive",getComputedStyle($b).fontStretch&&(Kb=!0),document.body.removeChild($b));var $b,Na=function(r){$ke(r)?(r={regl:r},this.gl=r.regl._gl):this.gl=Ike(r),this.shader=mQ.get(this.gl),this.shader?this.regl=this.shader.regl:this.regl=r.regl||Bke({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(),mQ.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(Gke(r)?r:{})};Na.prototype.createShader=function(){var r=this.regl,t=r({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:r.prop("count"),offset:r.prop("offset"),attributes:{charOffset:{offset:4,stride:8,buffer:r.this("sizeBuffer")},width:{offset:0,stride:8,buffer:r.this("sizeBuffer")},char:r.this("charBuffer"),position:r.this("position")},uniforms:{atlasSize:function(n,i){return[i.atlas.width,i.atlas.height]},atlasDim:function(n,i){return[i.atlas.cols,i.atlas.rows]},atlas:function(n,i){return i.atlas.texture},charStep:function(n,i){return i.atlas.step},em:function(n,i){return i.atlas.em},color:r.prop("color"),opacity:r.prop("opacity"),viewport:r.this("viewportArray"),scale:r.this("scale"),align:r.prop("align"),baseline:r.prop("baseline"),translate:r.this("translate"),positionOffset:r.prop("positionOffset")},primitive:"points",viewport:r.this("viewport"),vert:` +`),nr;if(te&&(nr=r_(Pe),te[nr]))return te[nr].apply(null,Ze);var Sr=Function.apply(null,Be.concat(Pe));return te&&(te[nr]=Sr),Sr.apply(null,Ze)}return{global:Fr,link:Xe,block:yr,proc:mt,scope:Lr,cond:Er,compile:jr}}var Qs="xyzw".split(""),Nd=5121,fs=1,A0=2,zd=0,lv=1,Wm=2,sv=3,uv=4,Bd=5,T0=6,Id="dither",Zm="blend.enable",Jm="blend.color",Od="blend.equation",Hd="blend.func",Ud="depth.enable",Gd="depth.func",Yd="depth.range",Vd="depth.mask",Xd="colorMask",M0="cull.enable",jm="cull.face",Wd="frontFace",fv="lineWidth",Zd="polygonOffset.enable",Jd="polygonOffset.offset",k0="sample.alpha",S0="sample.enable",cv="sample.coverage",jd="stencil.enable",vv="stencil.mask",io="stencil.func",hv="stencil.opFront",C0="stencil.opBack",dv="scissor.enable",Wu="scissor.box",El="viewport",pv="profile",Zu="framebuffer",eu="vert",Ju="frag",ru="elements",ju="primitive",$u="count",$d="offset",Vi="instances",D0="vao",mv="Width",al="Height",cs=Zu+mv,vs=Zu+al,i_=El+mv,o_=El+al,$m="drawingBuffer",Kd=$m+mv,Qd=$m+al,Km=[Hd,Od,io,hv,C0,cv,El,Wu,Jd],tu=34962,e2=34963,Qm=2884,l_=3042,s_=3024,u_=2960,ey=2929,ry=3089,yv=32823,ty=32926,gv=32928,r2=5126,au=35664,_n=35665,bv=35666,hs=5124,Ku=35667,L0=35668,t2=35669,xv=35670,Qu=35671,_v=35672,a2=35673,n2=35674,i2=35675,o2=35676,E0=35678,l2=35680,s2=4,h=1028,g=1029,A=2304,S=2305,D=32775,L=32776,N=519,R=7680,O=0,X=1,J=32774,$=513,K=36160,we=36064,ke={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},re={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},ve={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},xe={cw:A,ccw:S};function Se(H){return Array.isArray(H)||$r(H)||tt(H)}function De(H){return H.sort(function(te,ie){return te===El?-1:ie===El?1:te=1,Be>=2,te)}else if(ie===uv){var Ze=H.data;return new me(Ze.thisDep,Ze.contextDep,Ze.propDep,te)}else{if(ie===Bd)return new me(!1,!1,!1,te);if(ie===T0){for(var Qe=!1,Xe=!1,yr=!1,Lr=0;Lr=1&&(Xe=!0),Fr>=2&&(yr=!0)}else Er.type===uv&&(Qe=Qe||Er.data.thisDep,Xe=Xe||Er.data.contextDep,yr=yr||Er.data.propDep)}return new me(Qe,Xe,yr,te)}else return new me(ie===sv,ie===Wm,ie===lv,te)}}var Zr=new me(!1,!1,!1,function(){});function ct(H,te,ie,Be,Ze,Qe,Xe,yr,Lr,Er,Fr,Ct,mt,jr,cr,Pe){var nr=Er.Record,Sr={add:32774,subtract:32778,"reverse subtract":32779};ie.ext_blend_minmax&&(Sr.min=D,Sr.max=L);var zr=ie.angle_instanced_arrays,xr=ie.webgl_draw_buffers,it=ie.oes_vertex_array_object,Kr={dirty:!0,profile:Pe.profile},Dt={},gr=[],dr={},ht={};function Jr(Q){return Q.replace(".","_")}function Ur(Q,oe,be){var Je=Jr(Q);gr.push(Q),Dt[Je]=Kr[Je]=!!be,dr[Je]=oe}function Vr(Q,oe,be){var Je=Jr(Q);gr.push(Q),Array.isArray(be)?(Kr[Je]=be.slice(),Dt[Je]=be.slice()):Kr[Je]=Dt[Je]=be,ht[Je]=oe}function dt(Q){return!!isNaN(Q)}Ur(Id,s_),Ur(Zm,l_),Vr(Jm,"blendColor",[0,0,0,0]),Vr(Od,"blendEquationSeparate",[J,J]),Vr(Hd,"blendFuncSeparate",[X,O,X,O]),Ur(Ud,ey,!0),Vr(Gd,"depthFunc",$),Vr(Yd,"depthRange",[0,1]),Vr(Vd,"depthMask",!0),Vr(Xd,Xd,[!0,!0,!0,!0]),Ur(M0,Qm),Vr(jm,"cullFace",g),Vr(Wd,Wd,S),Vr(fv,fv,1),Ur(Zd,yv),Vr(Jd,"polygonOffset",[0,0]),Ur(k0,ty),Ur(S0,gv),Vr(cv,"sampleCoverage",[1,!1]),Ur(jd,u_),Vr(vv,"stencilMask",-1),Vr(io,"stencilFunc",[N,0,-1]),Vr(hv,"stencilOpSeparate",[h,R,R,R]),Vr(C0,"stencilOpSeparate",[g,R,R,R]),Ur(dv,ry),Vr(Wu,"scissor",[0,0,H.drawingBufferWidth,H.drawingBufferHeight]),Vr(El,El,[0,0,H.drawingBufferWidth,H.drawingBufferHeight]);var Lt={gl:H,context:mt,strings:te,next:Dt,current:Kr,draw:Ct,elements:Qe,buffer:Ze,shader:Fr,attributes:Er.state,vao:Er,uniforms:Lr,framebuffer:yr,extensions:ie,timer:jr,isBufferArgs:Se},Vt={primTypes:as,compareFuncs:re,blendFuncs:ke,blendEquations:Sr,stencilOps:ve,glTypes:Yn,orientationType:xe};xr&&(Vt.backBuffer=[g],Vt.drawBuffer=C(Be.maxDrawbuffers,function(Q){return Q===0?[0]:C(Q,function(oe){return we+oe})}));var et=0;function bt(){var Q=Xm({cache:cr}),oe=Q.link,be=Q.global;Q.id=et++,Q.batchId="0";var Je=oe(Lt),er=Q.shared={props:"a0"};Object.keys(Lt).forEach(function(Ae){er[Ae]=be.def(Je,".",Ae)});var ze=Q.next={},Ne=Q.current={};Object.keys(ht).forEach(function(Ae){Array.isArray(Kr[Ae])&&(ze[Ae]=be.def(er.next,".",Ae),Ne[Ae]=be.def(er.current,".",Ae))});var Me=Q.constants={};Object.keys(Vt).forEach(function(Ae){Me[Ae]=be.def(JSON.stringify(Vt[Ae]))}),Q.invoke=function(Ae,se){switch(se.type){case zd:var Oe=["this",er.context,er.props,Q.batchId];return Ae.def(oe(se.data),".call(",Oe.slice(0,Math.max(se.data.length+1,4)),")");case lv:return Ae.def(er.props,se.data);case Wm:return Ae.def(er.context,se.data);case sv:return Ae.def("this",se.data);case uv:return se.data.append(Q,Ae),se.data.ref;case Bd:return se.data.toString();case T0:return se.data.map(function(ir){return Q.invoke(Ae,ir)})}},Q.attribCache={};var de={};return Q.scopeAttrib=function(Ae){var se=te.id(Ae);if(se in de)return de[se];var Oe=Er.scope[se];Oe||(Oe=Er.scope[se]=new nr);var ir=de[se]=oe(Oe);return ir},Q}function Ot(Q){var oe=Q.static,be=Q.dynamic,Je;if(pv in oe){var er=!!oe[pv];Je=Ar(function(Ne,Me){return er}),Je.enable=er}else if(pv in be){var ze=be[pv];Je=Nr(ze,function(Ne,Me){return Ne.invoke(Me,ze)})}return Je}function Ht(Q,oe){var be=Q.static,Je=Q.dynamic;if(Zu in be){var er=be[Zu];return er?(er=yr.getFramebuffer(er),Ar(function(Ne,Me){var de=Ne.link(er),Ae=Ne.shared;Me.set(Ae.framebuffer,".next",de);var se=Ae.context;return Me.set(se,"."+cs,de+".width"),Me.set(se,"."+vs,de+".height"),de})):Ar(function(Ne,Me){var de=Ne.shared;Me.set(de.framebuffer,".next","null");var Ae=de.context;return Me.set(Ae,"."+cs,Ae+"."+Kd),Me.set(Ae,"."+vs,Ae+"."+Qd),"null"})}else if(Zu in Je){var ze=Je[Zu];return Nr(ze,function(Ne,Me){var de=Ne.invoke(Me,ze),Ae=Ne.shared,se=Ae.framebuffer,Oe=Me.def(se,".getFramebuffer(",de,")");Me.set(se,".next",Oe);var ir=Ae.context;return Me.set(ir,"."+cs,Oe+"?"+Oe+".width:"+ir+"."+Kd),Me.set(ir,"."+vs,Oe+"?"+Oe+".height:"+ir+"."+Qd),Oe})}else return null}function na(Q,oe,be){var Je=Q.static,er=Q.dynamic;function ze(de){if(de in Je){var Ae=Je[de],se=!0,Oe=Ae.x|0,ir=Ae.y|0,Dr,qt;return"width"in Ae?Dr=Ae.width|0:se=!1,"height"in Ae?qt=Ae.height|0:se=!1,new me(!se&&oe&&oe.thisDep,!se&&oe&&oe.contextDep,!se&&oe&&oe.propDep,function(Et,Mt){var Tt=Et.shared.context,ft=Dr;"width"in Ae||(ft=Mt.def(Tt,".",cs,"-",Oe));var _t=qt;return"height"in Ae||(_t=Mt.def(Tt,".",vs,"-",ir)),[Oe,ir,ft,_t]})}else if(de in er){var pt=er[de],ut=Nr(pt,function(Et,Mt){var Tt=Et.invoke(Mt,pt),ft=Et.shared.context,_t=Mt.def(Tt,".x|0"),At=Mt.def(Tt,".y|0"),Xt=Mt.def('"width" in ',Tt,"?",Tt,".width|0:","(",ft,".",cs,"-",_t,")"),vn=Mt.def('"height" in ',Tt,"?",Tt,".height|0:","(",ft,".",vs,"-",At,")");return[_t,At,Xt,vn]});return oe&&(ut.thisDep=ut.thisDep||oe.thisDep,ut.contextDep=ut.contextDep||oe.contextDep,ut.propDep=ut.propDep||oe.propDep),ut}else return oe?new me(oe.thisDep,oe.contextDep,oe.propDep,function(Et,Mt){var Tt=Et.shared.context;return[0,0,Mt.def(Tt,".",cs),Mt.def(Tt,".",vs)]}):null}var Ne=ze(El);if(Ne){var Me=Ne;Ne=new me(Ne.thisDep,Ne.contextDep,Ne.propDep,function(de,Ae){var se=Me.append(de,Ae),Oe=de.shared.context;return Ae.set(Oe,"."+i_,se[2]),Ae.set(Oe,"."+o_,se[3]),se})}return{viewport:Ne,scissor_box:ze(Wu)}}function qn(Q,oe){var be=Q.static,Je=typeof be[Ju]=="string"&&typeof be[eu]=="string";if(Je){if(Object.keys(oe.dynamic).length>0)return null;var er=oe.static,ze=Object.keys(er);if(ze.length>0&&typeof er[ze[0]]=="number"){for(var Ne=[],Me=0;Me"+_t+"?"+se+".constant["+_t+"]:0;"}).join(""),"}}else{","if(",Dr,"(",se,".buffer)){",Et,"=",qt,".createStream(",tu,",",se,".buffer);","}else{",Et,"=",qt,".getBuffer(",se,".buffer);","}",Mt,'="type" in ',se,"?",ir.glTypes,"[",se,".type]:",Et,".dtype;",pt.normalized,"=!!",se,".normalized;");function Tt(ft){Ae(pt[ft],"=",se,".",ft,"|0;")}return Tt("size"),Tt("offset"),Tt("stride"),Tt("divisor"),Ae("}}"),Ae.exit("if(",pt.isStream,"){",qt,".destroyStream(",Et,");","}"),pt}er[ze]=Nr(Ne,Me)}),er}function oo(Q){var oe=Q.static,be=Q.dynamic,Je={};return Object.keys(oe).forEach(function(er){var ze=oe[er];Je[er]=Ar(function(Ne,Me){return typeof ze=="number"||typeof ze=="boolean"?""+ze:Ne.link(ze)})}),Object.keys(be).forEach(function(er){var ze=be[er];Je[er]=Nr(ze,function(Ne,Me){return Ne.invoke(Me,ze)})}),Je}function yo(Q,oe,be,Je,er){var ze=Q.static,Ne=Q.dynamic,Me=qn(Q,oe),de=Ht(Q,er),Ae=na(Q,de,er),se=ua(Q,er),Oe=mo(Q,er),ir=_i(Q,er,Me);function Dr(Tt){var ft=Ae[Tt];ft&&(Oe[Tt]=ft)}Dr(El),Dr(Jr(Wu));var qt=Object.keys(Oe).length>0,pt={framebuffer:de,draw:se,shader:ir,state:Oe,dirty:qt,scopeVAO:null,drawVAO:null,useVAO:!1,attributes:{}};if(pt.profile=Ot(Q,er),pt.uniforms=Ga(be,er),pt.drawVAO=pt.scopeVAO=se.vao,!pt.drawVAO&&ir.program&&!Me&&ie.angle_instanced_arrays&&se.static.elements){var ut=!0,Et=ir.program.attributes.map(function(Tt){var ft=oe.static[Tt];return ut=ut&&!!ft,ft});if(ut&&Et.length>0){var Mt=Er.getVAO(Er.createVAO({attributes:Et,elements:se.static.elements}));pt.drawVAO=new me(null,null,null,function(Tt,ft){return Tt.link(Mt)}),pt.useVAO=!0}}return Me?pt.useVAO=!0:pt.attributes=Xi(oe,er),pt.context=oo(Je,er),pt}function fi(Q,oe,be){var Je=Q.shared,er=Je.context,ze=Q.scope();Object.keys(be).forEach(function(Ne){oe.save(er,"."+Ne);var Me=be[Ne],de=Me.append(Q,oe);Array.isArray(de)?ze(er,".",Ne,"=[",de.join(),"];"):ze(er,".",Ne,"=",de,";")}),oe(ze)}function ci(Q,oe,be,Je){var er=Q.shared,ze=er.gl,Ne=er.framebuffer,Me;xr&&(Me=oe.def(er.extensions,".webgl_draw_buffers"));var de=Q.constants,Ae=de.drawBuffer,se=de.backBuffer,Oe;be?Oe=be.append(Q,oe):Oe=oe.def(Ne,".next"),Je||oe("if(",Oe,"!==",Ne,".cur){"),oe("if(",Oe,"){",ze,".bindFramebuffer(",K,",",Oe,".framebuffer);"),xr&&oe(Me,".drawBuffersWEBGL(",Ae,"[",Oe,".colorAttachments.length]);"),oe("}else{",ze,".bindFramebuffer(",K,",null);"),xr&&oe(Me,".drawBuffersWEBGL(",se,");"),oe("}",Ne,".cur=",Oe,";"),Je||oe("}")}function wi(Q,oe,be){var Je=Q.shared,er=Je.gl,ze=Q.current,Ne=Q.next,Me=Je.current,de=Je.next,Ae=Q.cond(Me,".dirty");gr.forEach(function(se){var Oe=Jr(se);if(!(Oe in be.state)){var ir,Dr;if(Oe in Ne){ir=Ne[Oe],Dr=ze[Oe];var qt=C(Kr[Oe].length,function(ut){return Ae.def(ir,"[",ut,"]")});Ae(Q.cond(qt.map(function(ut,Et){return ut+"!=="+Dr+"["+Et+"]"}).join("||")).then(er,".",ht[Oe],"(",qt,");",qt.map(function(ut,Et){return Dr+"["+Et+"]="+ut}).join(";"),";"))}else{ir=Ae.def(de,".",Oe);var pt=Q.cond(ir,"!==",Me,".",Oe);Ae(pt),Oe in dr?pt(Q.cond(ir).then(er,".enable(",dr[Oe],");").else(er,".disable(",dr[Oe],");"),Me,".",Oe,"=",ir,";"):pt(er,".",ht[Oe],"(",ir,");",Me,".",Oe,"=",ir,";")}}}),Object.keys(be.state).length===0&&Ae(Me,".dirty=false;"),oe(Ae)}function Qt(Q,oe,be,Je){var er=Q.shared,ze=Q.current,Ne=er.current,Me=er.gl,de;De(Object.keys(be)).forEach(function(Ae){var se=be[Ae];if(!(Je&&!Je(se))){var Oe=se.append(Q,oe);if(dr[Ae]){var ir=dr[Ae];sr(se)?(de=Q.link(Oe,{stable:!0}),oe(Q.cond(de).then(Me,".enable(",ir,");").else(Me,".disable(",ir,");")),oe(Ne,".",Ae,"=",de,";")):(oe(Q.cond(Oe).then(Me,".enable(",ir,");").else(Me,".disable(",ir,");")),oe(Ne,".",Ae,"=",Oe,";"))}else if(xn(Oe)){var Dr=ze[Ae];oe(Me,".",ht[Ae],"(",Oe,");",Oe.map(function(qt,pt){return Dr+"["+pt+"]="+qt}).join(";"),";")}else sr(se)?(de=Q.link(Oe,{stable:!0}),oe(Me,".",ht[Ae],"(",de,");",Ne,".",Ae,"=",de,";")):oe(Me,".",ht[Ae],"(",Oe,");",Ne,".",Ae,"=",Oe,";")}})}function Ci(Q,oe){zr&&(Q.instancing=oe.def(Q.shared.extensions,".angle_instanced_arrays"))}function Za(Q,oe,be,Je,er){var ze=Q.shared,Ne=Q.stats,Me=ze.current,de=ze.timer,Ae=be.profile;function se(){return typeof performance=="undefined"?"Date.now()":"performance.now()"}var Oe,ir;function Dr(Tt){Oe=oe.def(),Tt(Oe,"=",se(),";"),typeof er=="string"?Tt(Ne,".count+=",er,";"):Tt(Ne,".count++;"),jr&&(Je?(ir=oe.def(),Tt(ir,"=",de,".getNumPendingQueries();")):Tt(de,".beginQuery(",Ne,");"))}function qt(Tt){Tt(Ne,".cpuTime+=",se(),"-",Oe,";"),jr&&(Je?Tt(de,".pushScopeStats(",ir,",",de,".getNumPendingQueries(),",Ne,");"):Tt(de,".endQuery();"))}function pt(Tt){var ft=oe.def(Me,".profile");oe(Me,".profile=",Tt,";"),oe.exit(Me,".profile=",ft,";")}var ut;if(Ae){if(sr(Ae)){Ae.enable?(Dr(oe),qt(oe.exit),pt("true")):pt("false");return}ut=Ae.append(Q,oe),pt(ut)}else ut=oe.def(Me,".profile");var Et=Q.block();Dr(Et),oe("if(",ut,"){",Et,"}");var Mt=Q.block();qt(Mt),oe.exit("if(",ut,"){",Mt,"}")}function lo(Q,oe,be,Je,er){var ze=Q.shared;function Ne(de){switch(de){case au:case Ku:case Qu:return 2;case _n:case L0:case _v:return 3;case bv:case t2:case a2:return 4;default:return 1}}function Me(de,Ae,se){var Oe=ze.gl,ir=oe.def(de,".location"),Dr=oe.def(ze.attributes,"[",ir,"]"),qt=se.state,pt=se.buffer,ut=[se.x,se.y,se.z,se.w],Et=["buffer","normalized","offset","stride"];function Mt(){oe("if(!",Dr,".buffer){",Oe,".enableVertexAttribArray(",ir,");}");var ft=se.type,_t;if(se.size?_t=oe.def(se.size,"||",Ae):_t=Ae,oe("if(",Dr,".type!==",ft,"||",Dr,".size!==",_t,"||",Et.map(function(Xt){return Dr+"."+Xt+"!=="+se[Xt]}).join("||"),"){",Oe,".bindBuffer(",tu,",",pt,".buffer);",Oe,".vertexAttribPointer(",[ir,_t,ft,se.normalized,se.stride,se.offset],");",Dr,".type=",ft,";",Dr,".size=",_t,";",Et.map(function(Xt){return Dr+"."+Xt+"="+se[Xt]+";"}).join(""),"}"),zr){var At=se.divisor;oe("if(",Dr,".divisor!==",At,"){",Q.instancing,".vertexAttribDivisorANGLE(",[ir,At],");",Dr,".divisor=",At,";}")}}function Tt(){oe("if(",Dr,".buffer){",Oe,".disableVertexAttribArray(",ir,");",Dr,".buffer=null;","}if(",Qs.map(function(ft,_t){return Dr+"."+ft+"!=="+ut[_t]}).join("||"),"){",Oe,".vertexAttrib4f(",ir,",",ut,");",Qs.map(function(ft,_t){return Dr+"."+ft+"="+ut[_t]+";"}).join(""),"}")}qt===fs?Mt():qt===A0?Tt():(oe("if(",qt,"===",fs,"){"),Mt(),oe("}else{"),Tt(),oe("}"))}Je.forEach(function(de){var Ae=de.name,se=be.attributes[Ae],Oe;if(se){if(!er(se))return;Oe=se.append(Q,oe)}else{if(!er(Zr))return;var ir=Q.scopeAttrib(Ae);Oe={},Object.keys(new nr).forEach(function(Dr){Oe[Dr]=oe.def(ir,".",Dr)})}Me(Q.link(de),Ne(de.info.type),Oe)})}function go(Q,oe,be,Je,er,ze){for(var Ne=Q.shared,Me=Ne.gl,de,Ae=0;Ae1){for(var xo=[],nu=[],ef=0;ef<_t;++ef)Array.isArray(ut)?nu.push(ut[ef]):nu.push(oe.def(ut+"["+ef+"]")),ze&&xo.push(oe.def());ze&&oe("if(!",Q.batchId,"||",xo.map(function(nl,u2){return nl+"!=="+nu[u2]}).join("||"),"){",xo.map(function(nl,u2){return nl+"="+nu[u2]+";"}).join("")),oe(Me,".uniform",de,"(",pt,",",nu.join(","),");"),ze&&oe("}")}else{if(ze){var rf=oe.def();oe("if(!",Q.batchId,"||",rf,"!==",ut,"){",rf,"=",ut,";")}oe(Me,".uniform",de,"(",pt,",",ut,");"),ze&&oe("}")}}}function bo(Q,oe,be,Je){var er=Q.shared,ze=er.gl,Ne=er.draw,Me=Je.draw;function de(){var _t=Me.elements,At,Xt=oe;return _t?((_t.contextDep&&Je.contextDynamic||_t.propDep)&&(Xt=be),At=_t.append(Q,Xt),Me.elementsActive&&Xt("if("+At+")"+ze+".bindBuffer("+e2+","+At+".buffer.buffer);")):(At=Xt.def(),Xt(At,"=",Ne,".",ru,";","if(",At,"){",ze,".bindBuffer(",e2,",",At,".buffer.buffer);}","else if(",er.vao,".currentVAO){",At,"=",Q.shared.elements+".getElements("+er.vao,".currentVAO.elements);",it?"":"if("+At+")"+ze+".bindBuffer("+e2+","+At+".buffer.buffer);","}")),At}function Ae(){var _t=Me.count,At,Xt=oe;return _t?((_t.contextDep&&Je.contextDynamic||_t.propDep)&&(Xt=be),At=_t.append(Q,Xt)):At=Xt.def(Ne,".",$u),At}var se=de();function Oe(_t){var At=Me[_t];return At?At.contextDep&&Je.contextDynamic||At.propDep?At.append(Q,be):At.append(Q,oe):oe.def(Ne,".",_t)}var ir=Oe(ju),Dr=Oe($d),qt=Ae();if(typeof qt=="number"){if(qt===0)return}else be("if(",qt,"){"),be.exit("}");var pt,ut;zr&&(pt=Oe(Vi),ut=Q.instancing);var Et=se+".type",Mt=Me.elements&&sr(Me.elements)&&!Me.vaoActive;function Tt(){function _t(){be(ut,".drawElementsInstancedANGLE(",[ir,qt,Et,Dr+"<<(("+Et+"-"+Nd+")>>1)",pt],");")}function At(){be(ut,".drawArraysInstancedANGLE(",[ir,Dr,qt,pt],");")}se&&se!=="null"?Mt?_t():(be("if(",se,"){"),_t(),be("}else{"),At(),be("}")):At()}function ft(){function _t(){be(ze+".drawElements("+[ir,qt,Et,Dr+"<<(("+Et+"-"+Nd+")>>1)"]+");")}function At(){be(ze+".drawArrays("+[ir,Dr,qt]+");")}se&&se!=="null"?Mt?_t():(be("if(",se,"){"),_t(),be("}else{"),At(),be("}")):At()}zr&&(typeof pt!="number"||pt>=0)?typeof pt=="string"?(be("if(",pt,">0){"),Tt(),be("}else if(",pt,"<0){"),ft(),be("}")):Tt():ft()}function Jt(Q,oe,be,Je,er){var ze=bt(),Ne=ze.proc("body",er);return zr&&(ze.instancing=Ne.def(ze.shared.extensions,".angle_instanced_arrays")),Q(ze,Ne,be,Je),ze.compile().body}function ma(Q,oe,be,Je){Ci(Q,oe),be.useVAO?be.drawVAO?oe(Q.shared.vao,".setVAO(",be.drawVAO.append(Q,oe),");"):oe(Q.shared.vao,".setVAO(",Q.shared.vao,".targetVAO);"):(oe(Q.shared.vao,".setVAO(null);"),lo(Q,oe,be,Je.attributes,function(){return!0})),go(Q,oe,be,Je.uniforms,function(){return!0},!1),bo(Q,oe,oe,be)}function cn(Q,oe){var be=Q.proc("draw",1);Ci(Q,be),fi(Q,be,oe.context),ci(Q,be,oe.framebuffer),wi(Q,be,oe),Qt(Q,be,oe.state),Za(Q,be,oe,!1,!0);var Je=oe.shader.progVar.append(Q,be);if(be(Q.shared.gl,".useProgram(",Je,".program);"),oe.shader.program)ma(Q,be,oe,oe.shader.program);else{be(Q.shared.vao,".setVAO(null);");var er=Q.global.def("{}"),ze=be.def(Je,".id"),Ne=be.def(er,"[",ze,"]");be(Q.cond(Ne).then(Ne,".call(this,a0);").else(Ne,"=",er,"[",ze,"]=",Q.link(function(Me){return Jt(ma,Q,oe,Me,1)}),"(",Je,");",Ne,".call(this,a0);"))}Object.keys(oe.state).length>0&&be(Q.shared.current,".dirty=true;"),Q.shared.vao&&be(Q.shared.vao,".setVAO(null);")}function ne(Q,oe,be,Je){Q.batchId="a1",Ci(Q,oe);function er(){return!0}lo(Q,oe,be,Je.attributes,er),go(Q,oe,be,Je.uniforms,er,!1),bo(Q,oe,oe,be)}function je(Q,oe,be,Je){Ci(Q,oe);var er=be.contextDep,ze=oe.def(),Ne="a0",Me="a1",de=oe.def();Q.shared.props=de,Q.batchId=ze;var Ae=Q.scope(),se=Q.scope();oe(Ae.entry,"for(",ze,"=0;",ze,"<",Me,";++",ze,"){",de,"=",Ne,"[",ze,"];",se,"}",Ae.exit);function Oe(Et){return Et.contextDep&&er||Et.propDep}function ir(Et){return!Oe(Et)}if(be.needsContext&&fi(Q,se,be.context),be.needsFramebuffer&&ci(Q,se,be.framebuffer),Qt(Q,se,be.state,Oe),be.profile&&Oe(be.profile)&&Za(Q,se,be,!1,!0),Je)be.useVAO?be.drawVAO?Oe(be.drawVAO)?se(Q.shared.vao,".setVAO(",be.drawVAO.append(Q,se),");"):Ae(Q.shared.vao,".setVAO(",be.drawVAO.append(Q,Ae),");"):Ae(Q.shared.vao,".setVAO(",Q.shared.vao,".targetVAO);"):(Ae(Q.shared.vao,".setVAO(null);"),lo(Q,Ae,be,Je.attributes,ir),lo(Q,se,be,Je.attributes,Oe)),go(Q,Ae,be,Je.uniforms,ir,!1),go(Q,se,be,Je.uniforms,Oe,!0),bo(Q,Ae,se,be);else{var Dr=Q.global.def("{}"),qt=be.shader.progVar.append(Q,se),pt=se.def(qt,".id"),ut=se.def(Dr,"[",pt,"]");se(Q.shared.gl,".useProgram(",qt,".program);","if(!",ut,"){",ut,"=",Dr,"[",pt,"]=",Q.link(function(Et){return Jt(ne,Q,be,Et,2)}),"(",qt,");}",ut,".call(this,a0[",ze,"],",ze,");")}}function Ke(Q,oe){var be=Q.proc("batch",2);Q.batchId="0",Ci(Q,be);var Je=!1,er=!0;Object.keys(oe.context).forEach(function(Dr){Je=Je||oe.context[Dr].propDep}),Je||(fi(Q,be,oe.context),er=!1);var ze=oe.framebuffer,Ne=!1;ze?(ze.propDep?Je=Ne=!0:ze.contextDep&&Je&&(Ne=!0),Ne||ci(Q,be,ze)):ci(Q,be,null),oe.state.viewport&&oe.state.viewport.propDep&&(Je=!0);function Me(Dr){return Dr.contextDep&&Je||Dr.propDep}wi(Q,be,oe),Qt(Q,be,oe.state,function(Dr){return!Me(Dr)}),(!oe.profile||!Me(oe.profile))&&Za(Q,be,oe,!1,"a1"),oe.contextDep=Je,oe.needsContext=er,oe.needsFramebuffer=Ne;var de=oe.shader.progVar;if(de.contextDep&&Je||de.propDep)je(Q,be,oe,null);else{var Ae=de.append(Q,be);if(be(Q.shared.gl,".useProgram(",Ae,".program);"),oe.shader.program)je(Q,be,oe,oe.shader.program);else{be(Q.shared.vao,".setVAO(null);");var se=Q.global.def("{}"),Oe=be.def(Ae,".id"),ir=be.def(se,"[",Oe,"]");be(Q.cond(ir).then(ir,".call(this,a0,a1);").else(ir,"=",se,"[",Oe,"]=",Q.link(function(Dr){return Jt(je,Q,oe,Dr,2)}),"(",Ae,");",ir,".call(this,a0,a1);"))}}Object.keys(oe.state).length>0&&be(Q.shared.current,".dirty=true;"),Q.shared.vao&&be(Q.shared.vao,".setVAO(null);")}function wt(Q,oe){var be=Q.proc("scope",3);Q.batchId="a2";var Je=Q.shared,er=Je.current;if(fi(Q,be,oe.context),oe.framebuffer&&oe.framebuffer.append(Q,be),De(Object.keys(oe.state)).forEach(function(Me){var de=oe.state[Me],Ae=de.append(Q,be);xn(Ae)?Ae.forEach(function(se,Oe){dt(se)?be.set(Q.next[Me],"["+Oe+"]",se):be.set(Q.next[Me],"["+Oe+"]",Q.link(se,{stable:!0}))}):sr(de)?be.set(Je.next,"."+Me,Q.link(Ae,{stable:!0})):be.set(Je.next,"."+Me,Ae)}),Za(Q,be,oe,!0,!0),[ru,$d,$u,Vi,ju].forEach(function(Me){var de=oe.draw[Me];if(de){var Ae=de.append(Q,be);dt(Ae)?be.set(Je.draw,"."+Me,Ae):be.set(Je.draw,"."+Me,Q.link(Ae),{stable:!0})}}),Object.keys(oe.uniforms).forEach(function(Me){var de=oe.uniforms[Me].append(Q,be);Array.isArray(de)&&(de="["+de.map(function(Ae){return dt(Ae)?Ae:Q.link(Ae,{stable:!0})})+"]"),be.set(Je.uniforms,"["+Q.link(te.id(Me),{stable:!0})+"]",de)}),Object.keys(oe.attributes).forEach(function(Me){var de=oe.attributes[Me].append(Q,be),Ae=Q.scopeAttrib(Me);Object.keys(new nr).forEach(function(se){be.set(Ae,"."+se,de[se])})}),oe.scopeVAO){var ze=oe.scopeVAO.append(Q,be);dt(ze)?be.set(Je.vao,".targetVAO",ze):be.set(Je.vao,".targetVAO",Q.link(ze,{stable:!0}))}function Ne(Me){var de=oe.shader[Me];if(de){var Ae=de.append(Q,be);dt(Ae)?be.set(Je.shader,"."+Me,Ae):be.set(Je.shader,"."+Me,Q.link(Ae,{stable:!0}))}}Ne(eu),Ne(Ju),Object.keys(oe.state).length>0&&(be(er,".dirty=true;"),be.exit(er,".dirty=true;")),be("a1(",Q.shared.context,",a0,",Q.batchId,");")}function ha(Q){if(!(typeof Q!="object"||xn(Q))){for(var oe=Object.keys(Q),be=0;be=0;--Jt){var ma=Lt[Jt];ma&&ma(cr,null,0)}ie.flush(),Fr&&Fr.update()}function na(){!Ot&&Lt.length>0&&(Ot=d.next(Ht))}function qn(){Ot&&(d.cancel(Ht),Ot=null)}function _i(Jt){Jt.preventDefault(),Ze=!0,qn(),Vt.forEach(function(ma){ma()})}function ua(Jt){ie.getError(),Ze=!1,Qe.restore(),Dt.restore(),zr.restore(),gr.restore(),dr.restore(),ht.restore(),it.restore(),Fr&&Fr.restore(),Jr.procs.refresh(),na(),et.forEach(function(ma){ma()})}dt&&(dt.addEventListener(Wt,_i,!1),dt.addEventListener(va,ua,!1));function mo(){Lt.length=0,qn(),dt&&(dt.removeEventListener(Wt,_i),dt.removeEventListener(va,ua)),Dt.clear(),ht.clear(),dr.clear(),it.clear(),gr.clear(),xr.clear(),zr.clear(),Fr&&Fr.clear(),bt.forEach(function(Jt){Jt()})}function Ga(Jt){function ma(ze){var Ne=e({},ze);delete Ne.uniforms,delete Ne.attributes,delete Ne.context,delete Ne.vao,"stencil"in Ne&&Ne.stencil.op&&(Ne.stencil.opBack=Ne.stencil.opFront=Ne.stencil.op,delete Ne.stencil.op);function Me(de){if(de in Ne){var Ae=Ne[de];delete Ne[de],Object.keys(Ae).forEach(function(se){Ne[de+"."+se]=Ae[se]})}}return Me("blend"),Me("depth"),Me("cull"),Me("stencil"),Me("polygonOffset"),Me("scissor"),Me("sample"),"vao"in ze&&(Ne.vao=ze.vao),Ne}function cn(ze,Ne){var Me={},de={};return Object.keys(ze).forEach(function(Ae){var se=ze[Ae];if(v.isDynamic(se)){de[Ae]=v.unbox(se,Ae);return}else if(Ne&&Array.isArray(se)){for(var Oe=0;Oe0)return Q.call(this,Je(ze|0),ze|0)}else if(Array.isArray(ze)){if(ze.length)return Q.call(this,ze,ze.length)}else return xt.call(this,ze)}return e(er,{stats:ha,destroy:function(){Ya.destroy()}})}var Xi=ht.setFBO=Ga({framebuffer:v.define.call(null,Wa,"framebuffer")});function oo(Jt,ma){var cn=0;Jr.procs.poll();var ne=ma.color;ne&&(ie.clearColor(+ne[0]||0,+ne[1]||0,+ne[2]||0,+ne[3]||0),cn|=wn),"depth"in ma&&(ie.clearDepth(+ma.depth),cn|=Ta),"stencil"in ma&&(ie.clearStencil(ma.stencil|0),cn|=Or),ie.clear(cn)}function yo(Jt){if("framebuffer"in Jt)if(Jt.framebuffer&&Jt.framebuffer_reglType==="framebufferCube")for(var ma=0;ma<6;++ma)Xi(e({framebuffer:Jt.framebuffer.faces[ma]},Jt),oo);else Xi(Jt,oo);else oo(null,Jt)}function fi(Jt){Lt.push(Jt);function ma(){var cn=xi(Lt,Jt);function ne(){var je=xi(Lt,ne);Lt[je]=Lt[Lt.length-1],Lt.length-=1,Lt.length<=0&&qn()}Lt[cn]=ne}return na(),{cancel:ma}}function ci(){var Jt=Vr.viewport,ma=Vr.scissor_box;Jt[0]=Jt[1]=ma[0]=ma[1]=0,cr.viewportWidth=cr.framebufferWidth=cr.drawingBufferWidth=Jt[2]=ma[2]=ie.drawingBufferWidth,cr.viewportHeight=cr.framebufferHeight=cr.drawingBufferHeight=Jt[3]=ma[3]=ie.drawingBufferHeight}function wi(){cr.tick+=1,cr.time=Ci(),ci(),Jr.procs.poll()}function Qt(){gr.refresh(),ci(),Jr.procs.refresh(),Fr&&Fr.update()}function Ci(){return(p()-Ct)/1e3}Qt();function Za(Jt,ma){var cn;switch(Jt){case"frame":return fi(ma);case"lost":cn=Vt;break;case"restore":cn=et;break;case"destroy":cn=bt;break;default:}return cn.push(ma),{cancel:function(){for(var ne=0;ne=0},read:Ur,destroy:mo,_gl:ie,_refresh:Qt,poll:function(){wi(),Fr&&Fr.update()},now:Ci,stats:yr,getCachedCode:lo,preloadCachedCode:go});return te.onDone(null,bo),bo}return zi}))});var bK=B((vIe,gK)=>{"use strict";var $Me=Ns();gK.exports=function(r){if(r?typeof r=="string"&&(r={container:r}):r={},mK(r)?r={container:r}:KMe(r)?r={container:r}:QMe(r)?r={gl:r}:r=$Me(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=window.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}mK(r.container)?(r.canvas=r.container,r.container=r.canvas.parentNode):r.canvas||(r.canvas=yK(),r.container.appendChild(r.canvas),pK(r))}else if(!r.canvas)if(typeof document!="undefined")r.container=document.body||document.documentElement,r.canvas=yK(),r.container.appendChild(r.canvas),pK(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(n){}return r.gl}),r.gl};function pK(e){if(e.container)if(e.container==document.body)document.body.style.width||(e.canvas.width=e.width||e.pixelRatio*window.innerWidth),document.body.style.height||(e.canvas.height=e.height||e.pixelRatio*window.innerHeight);else{var r=e.container.getBoundingClientRect();e.canvas.width=e.width||r.right-r.left,e.canvas.height=e.height||r.bottom-r.top}}function mK(e){return typeof e.getContext=="function"&&"width"in e&&"height"in e}function KMe(e){return typeof e.nodeName=="string"&&typeof e.appendChild=="function"&&typeof e.getBoundingClientRect=="function"}function QMe(e){return typeof e.drawArrays=="function"||typeof e.drawElements=="function"}function yK(){var e=document.createElement("canvas");return e.style.position="absolute",e.style.top=0,e.style.left=0,e}});var _K=B((hIe,xK)=>{"use strict";var eke=DT(),rke=[32,126];xK.exports=tke;function tke(e){e=e||{};var r=e.shape?e.shape:e.canvas?[e.canvas.width,e.canvas.height]:[512,512],t=e.canvas||document.createElement("canvas"),a=e.font,n=typeof e.step=="number"?[e.step,e.step]:e.step||[32,32],i=e.chars||rke;if(a&&typeof a!="string"&&(a=eke(a)),!Array.isArray(i))i=String(i).split("");else if(i.length===2&&typeof i[0]=="number"&&typeof i[1]=="number"){for(var o=[],l=i[0],s=0;l<=i[1];l++)o[s++]=String.fromCharCode(l);i=o}r=r.slice(),t.width=r[0],t.height=r[1];var u=t.getContext("2d");u.fillStyle="#000",u.fillRect(0,0,t.width,t.height),u.font=a,u.textAlign="center",u.textBaseline="middle",u.fillStyle="#fff";for(var f=n[0]/2,c=n[1]/2,l=0;lr[0]-n[0]/2&&(f=n[0]/2,c+=n[1]);return t}});var RT=B(jn=>{"use strict";"use restrict";var FT=32;jn.INT_BITS=FT;jn.INT_MAX=2147483647;jn.INT_MIN=-1<0)-(e<0)};jn.abs=function(e){var r=e>>FT-1;return(e^r)-r};jn.min=function(e,r){return r^(e^r)&-(e65535)<<4,e>>>=r,t=(e>255)<<3,e>>>=t,r|=t,t=(e>15)<<2,e>>>=t,r|=t,t=(e>3)<<1,e>>>=t,r|=t,r|e>>1};jn.log10=function(e){return e>=1e9?9:e>=1e8?8:e>=1e7?7:e>=1e6?6:e>=1e5?5:e>=1e4?4:e>=1e3?3:e>=100?2:e>=10?1:0};jn.popCount=function(e){return e=e-(e>>>1&1431655765),e=(e&858993459)+(e>>>2&858993459),(e+(e>>>4)&252645135)*16843009>>>24};function wK(e){var r=32;return e&=-e,e&&r--,e&65535&&(r-=16),e&16711935&&(r-=8),e&252645135&&(r-=4),e&858993459&&(r-=2),e&1431655765&&(r-=1),r}jn.countTrailingZeros=wK;jn.nextPow2=function(e){return e+=e===0,--e,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e+1};jn.prevPow2=function(e){return e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e-(e>>>1)};jn.parity=function(e){return e^=e>>>16,e^=e>>>8,e^=e>>>4,e&=15,27030>>>e&1};var Op=new Array(256);(function(e){for(var r=0;r<256;++r){var t=r,a=r,n=7;for(t>>>=1;t;t>>>=1)a<<=1,a|=t&1,--n;e[r]=a<>>8&255]<<16|Op[e>>>16&255]<<8|Op[e>>>24&255]};jn.interleave2=function(e,r){return e&=65535,e=(e|e<<8)&16711935,e=(e|e<<4)&252645135,e=(e|e<<2)&858993459,e=(e|e<<1)&1431655765,r&=65535,r=(r|r<<8)&16711935,r=(r|r<<4)&252645135,r=(r|r<<2)&858993459,r=(r|r<<1)&1431655765,e|r<<1};jn.deinterleave2=function(e,r){return e=e>>>r&1431655765,e=(e|e>>>1)&858993459,e=(e|e>>>2)&252645135,e=(e|e>>>4)&16711935,e=(e|e>>>16)&65535,e<<16>>16};jn.interleave3=function(e,r,t){return e&=1023,e=(e|e<<16)&4278190335,e=(e|e<<8)&251719695,e=(e|e<<4)&3272356035,e=(e|e<<2)&1227133513,r&=1023,r=(r|r<<16)&4278190335,r=(r|r<<8)&251719695,r=(r|r<<4)&3272356035,r=(r|r<<2)&1227133513,e|=r<<1,t&=1023,t=(t|t<<16)&4278190335,t=(t|t<<8)&251719695,t=(t|t<<4)&3272356035,t=(t|t<<2)&1227133513,e|t<<2};jn.deinterleave3=function(e,r){return e=e>>>r&1227133513,e=(e|e>>>2)&3272356035,e=(e|e>>>4)&251719695,e=(e|e>>>8)&4278190335,e=(e|e>>>16)&1023,e<<22>>22};jn.nextCombination=function(e){var r=e|e-1;return r+1|(~r&-~r)-1>>>wK(e)+1}});var MK=B((pIe,TK)=>{"use strict";function AK(e,r,t){var a=e[t]|0;if(a<=0)return[];var n=new Array(a),i;if(t===e.length-1)for(i=0;i0)return ake(e|0,r);break;case"object":if(typeof e.length=="number")return AK(e,r,0);break}return[]}TK.exports=nke});var CK=B(Zb=>{"use strict";Zb.byteLength=oke;Zb.toByteArray=ske;Zb.fromByteArray=cke;var Bs=[],Al=[],ike=typeof Uint8Array!="undefined"?Uint8Array:Array,PT="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(Nc=0,kK=PT.length;Nc0)throw new Error("Invalid string. Length must be a multiple of 4");var t=e.indexOf("=");t===-1&&(t=r);var a=t===r?0:4-t%4;return[t,a]}function oke(e){var r=SK(e),t=r[0],a=r[1];return(t+a)*3/4-a}function lke(e,r,t){return(r+t)*3/4-t}function ske(e){var r,t=SK(e),a=t[0],n=t[1],i=new ike(lke(e,a,n)),o=0,l=n>0?a-4:a,s;for(s=0;s>16&255,i[o++]=r>>8&255,i[o++]=r&255;return n===2&&(r=Al[e.charCodeAt(s)]<<2|Al[e.charCodeAt(s+1)]>>4,i[o++]=r&255),n===1&&(r=Al[e.charCodeAt(s)]<<10|Al[e.charCodeAt(s+1)]<<4|Al[e.charCodeAt(s+2)]>>2,i[o++]=r>>8&255,i[o++]=r&255),i}function uke(e){return Bs[e>>18&63]+Bs[e>>12&63]+Bs[e>>6&63]+Bs[e&63]}function fke(e,r,t){for(var a,n=[],i=r;il?l:o+i));return a===1?(r=e[t-1],n.push(Bs[r>>2]+Bs[r<<4&63]+"==")):a===2&&(r=(e[t-2]<<8)+e[t-1],n.push(Bs[r>>10]+Bs[r>>4&63]+Bs[r<<2&63]+"=")),n.join("")}});var DK=B(NT=>{NT.read=function(e,r,t,a,n){var i,o,l=n*8-a-1,s=(1<>1,f=-7,c=t?n-1:0,v=t?-1:1,d=e[r+c];for(c+=v,i=d&(1<<-f)-1,d>>=-f,f+=l;f>0;i=i*256+e[r+c],c+=v,f-=8);for(o=i&(1<<-f)-1,i>>=-f,f+=a;f>0;o=o*256+e[r+c],c+=v,f-=8);if(i===0)i=1-u;else{if(i===s)return o?NaN:(d?-1:1)*(1/0);o=o+Math.pow(2,a),i=i-u}return(d?-1:1)*o*Math.pow(2,i-a)};NT.write=function(e,r,t,a,n,i){var o,l,s,u=i*8-n-1,f=(1<>1,v=n===23?Math.pow(2,-24)-Math.pow(2,-77):0,d=a?0:i-1,p=a?1:-1,m=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(l=isNaN(r)?1:0,o=f):(o=Math.floor(Math.log(r)/Math.LN2),r*(s=Math.pow(2,-o))<1&&(o--,s*=2),o+c>=1?r+=v/s:r+=v*Math.pow(2,1-c),r*s>=2&&(o++,s/=2),o+c>=f?(l=0,o=f):o+c>=1?(l=(r*s-1)*Math.pow(2,n),o=o+c):(l=r*Math.pow(2,c-1)*Math.pow(2,n),o=0));n>=8;e[t+d]=l&255,d+=p,l/=256,n-=8);for(o=o<0;e[t+d]=o&255,d+=p,o/=256,u-=8);e[t+d-p]|=m*128}});var XK=B(ld=>{"use strict";var zT=CK(),id=DK(),LK=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;ld.Buffer=br;ld.SlowBuffer=yke;ld.INSPECT_MAX_BYTES=50;var Jb=2147483647;ld.kMaxLength=Jb;br.TYPED_ARRAY_SUPPORT=vke();!br.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&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 vke(){try{let e=new Uint8Array(1),r={foo:function(){return 42}};return Object.setPrototypeOf(r,Uint8Array.prototype),Object.setPrototypeOf(e,r),e.foo()===42}catch(e){return!1}}Object.defineProperty(br.prototype,"parent",{enumerable:!0,get:function(){if(br.isBuffer(this))return this.buffer}});Object.defineProperty(br.prototype,"offset",{enumerable:!0,get:function(){if(br.isBuffer(this))return this.byteOffset}});function Lu(e){if(e>Jb)throw new RangeError('The value "'+e+'" is invalid for option "size"');let r=new Uint8Array(e);return Object.setPrototypeOf(r,br.prototype),r}function br(e,r,t){if(typeof e=="number"){if(typeof r=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return HT(e)}return RK(e,r,t)}br.poolSize=8192;function RK(e,r,t){if(typeof e=="string")return dke(e,r);if(ArrayBuffer.isView(e))return pke(e);if(e==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(Is(e,ArrayBuffer)||e&&Is(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(Is(e,SharedArrayBuffer)||e&&Is(e.buffer,SharedArrayBuffer)))return IT(e,r,t);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let a=e.valueOf&&e.valueOf();if(a!=null&&a!==e)return br.from(a,r,t);let n=mke(e);if(n)return n;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return br.from(e[Symbol.toPrimitive]("string"),r,t);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}br.from=function(e,r,t){return RK(e,r,t)};Object.setPrototypeOf(br.prototype,Uint8Array.prototype);Object.setPrototypeOf(br,Uint8Array);function PK(e){if(typeof e!="number")throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function hke(e,r,t){return PK(e),e<=0?Lu(e):r!==void 0?typeof t=="string"?Lu(e).fill(r,t):Lu(e).fill(r):Lu(e)}br.alloc=function(e,r,t){return hke(e,r,t)};function HT(e){return PK(e),Lu(e<0?0:UT(e)|0)}br.allocUnsafe=function(e){return HT(e)};br.allocUnsafeSlow=function(e){return HT(e)};function dke(e,r){if((typeof r!="string"||r==="")&&(r="utf8"),!br.isEncoding(r))throw new TypeError("Unknown encoding: "+r);let t=NK(e,r)|0,a=Lu(t),n=a.write(e,r);return n!==t&&(a=a.slice(0,n)),a}function BT(e){let r=e.length<0?0:UT(e.length)|0,t=Lu(r);for(let a=0;a=Jb)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Jb.toString(16)+" bytes");return e|0}function yke(e){return+e!=e&&(e=0),br.alloc(+e)}br.isBuffer=function(r){return r!=null&&r._isBuffer===!0&&r!==br.prototype};br.compare=function(r,t){if(Is(r,Uint8Array)&&(r=br.from(r,r.offset,r.byteLength)),Is(t,Uint8Array)&&(t=br.from(t,t.offset,t.byteLength)),!br.isBuffer(r)||!br.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(r===t)return 0;let a=r.length,n=t.length;for(let i=0,o=Math.min(a,n);in.length?(br.isBuffer(o)||(o=br.from(o)),o.copy(n,i)):Uint8Array.prototype.set.call(n,o,i);else if(br.isBuffer(o))o.copy(n,i);else throw new TypeError('"list" argument must be an Array of Buffers');i+=o.length}return n};function NK(e,r){if(br.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||Is(e,ArrayBuffer))return e.byteLength;if(typeof e!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);let t=e.length,a=arguments.length>2&&arguments[2]===!0;if(!a&&t===0)return 0;let n=!1;for(;;)switch(r){case"ascii":case"latin1":case"binary":return t;case"utf8":case"utf-8":return OT(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return t*2;case"hex":return t>>>1;case"base64":return VK(e).length;default:if(n)return a?-1:OT(e).length;r=(""+r).toLowerCase(),n=!0}}br.byteLength=NK;function gke(e,r,t){let a=!1;if((r===void 0||r<0)&&(r=0),r>this.length||((t===void 0||t>this.length)&&(t=this.length),t<=0)||(t>>>=0,r>>>=0,t<=r))return"";for(e||(e="utf8");;)switch(e){case"hex":return Cke(this,r,t);case"utf8":case"utf-8":return BK(this,r,t);case"ascii":return kke(this,r,t);case"latin1":case"binary":return Ske(this,r,t);case"base64":return Tke(this,r,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Dke(this,r,t);default:if(a)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),a=!0}}br.prototype._isBuffer=!0;function zc(e,r,t){let a=e[r];e[r]=e[t],e[t]=a}br.prototype.swap16=function(){let r=this.length;if(r%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;tt&&(r+=" ... "),""};LK&&(br.prototype[LK]=br.prototype.inspect);br.prototype.compare=function(r,t,a,n,i){if(Is(r,Uint8Array)&&(r=br.from(r,r.offset,r.byteLength)),!br.isBuffer(r))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof r);if(t===void 0&&(t=0),a===void 0&&(a=r?r.length:0),n===void 0&&(n=0),i===void 0&&(i=this.length),t<0||a>r.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&t>=a)return 0;if(n>=i)return-1;if(t>=a)return 1;if(t>>>=0,a>>>=0,n>>>=0,i>>>=0,this===r)return 0;let o=i-n,l=a-t,s=Math.min(o,l),u=this.slice(n,i),f=r.slice(t,a);for(let c=0;c2147483647?t=2147483647:t<-2147483648&&(t=-2147483648),t=+t,YT(t)&&(t=n?0:e.length-1),t<0&&(t=e.length+t),t>=e.length){if(n)return-1;t=e.length-1}else if(t<0)if(n)t=0;else return-1;if(typeof r=="string"&&(r=br.from(r,a)),br.isBuffer(r))return r.length===0?-1:EK(e,r,t,a,n);if(typeof r=="number")return r=r&255,typeof Uint8Array.prototype.indexOf=="function"?n?Uint8Array.prototype.indexOf.call(e,r,t):Uint8Array.prototype.lastIndexOf.call(e,r,t):EK(e,[r],t,a,n);throw new TypeError("val must be string, number or Buffer")}function EK(e,r,t,a,n){let i=1,o=e.length,l=r.length;if(a!==void 0&&(a=String(a).toLowerCase(),a==="ucs2"||a==="ucs-2"||a==="utf16le"||a==="utf-16le")){if(e.length<2||r.length<2)return-1;i=2,o/=2,l/=2,t/=2}function s(f,c){return i===1?f[c]:f.readUInt16BE(c*i)}let u;if(n){let f=-1;for(u=t;uo&&(t=o-l),u=t;u>=0;u--){let f=!0;for(let c=0;cn&&(a=n)):a=n;let i=r.length;a>i/2&&(a=i/2);let o;for(o=0;o>>0,isFinite(a)?(a=a>>>0,n===void 0&&(n="utf8")):(n=a,a=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let i=this.length-t;if((a===void 0||a>i)&&(a=i),r.length>0&&(a<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");let o=!1;for(;;)switch(n){case"hex":return bke(this,r,t,a);case"utf8":case"utf-8":return xke(this,r,t,a);case"ascii":case"latin1":case"binary":return _ke(this,r,t,a);case"base64":return wke(this,r,t,a);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ake(this,r,t,a);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}};br.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Tke(e,r,t){return r===0&&t===e.length?zT.fromByteArray(e):zT.fromByteArray(e.slice(r,t))}function BK(e,r,t){t=Math.min(e.length,t);let a=[],n=r;for(;n239?4:i>223?3:i>191?2:1;if(n+l<=t){let s,u,f,c;switch(l){case 1:i<128&&(o=i);break;case 2:s=e[n+1],(s&192)===128&&(c=(i&31)<<6|s&63,c>127&&(o=c));break;case 3:s=e[n+1],u=e[n+2],(s&192)===128&&(u&192)===128&&(c=(i&15)<<12|(s&63)<<6|u&63,c>2047&&(c<55296||c>57343)&&(o=c));break;case 4:s=e[n+1],u=e[n+2],f=e[n+3],(s&192)===128&&(u&192)===128&&(f&192)===128&&(c=(i&15)<<18|(s&63)<<12|(u&63)<<6|f&63,c>65535&&c<1114112&&(o=c))}}o===null?(o=65533,l=1):o>65535&&(o-=65536,a.push(o>>>10&1023|55296),o=56320|o&1023),a.push(o),n+=l}return Mke(a)}var qK=4096;function Mke(e){let r=e.length;if(r<=qK)return String.fromCharCode.apply(String,e);let t="",a=0;for(;aa)&&(t=a);let n="";for(let i=r;ia&&(r=a),t<0?(t+=a,t<0&&(t=0)):t>a&&(t=a),tt)throw new RangeError("Trying to access beyond buffer length")}br.prototype.readUintLE=br.prototype.readUIntLE=function(r,t,a){r=r>>>0,t=t>>>0,a||Pi(r,t,this.length);let n=this[r],i=1,o=0;for(;++o>>0,t=t>>>0,a||Pi(r,t,this.length);let n=this[r+--t],i=1;for(;t>0&&(i*=256);)n+=this[r+--t]*i;return n};br.prototype.readUint8=br.prototype.readUInt8=function(r,t){return r=r>>>0,t||Pi(r,1,this.length),this[r]};br.prototype.readUint16LE=br.prototype.readUInt16LE=function(r,t){return r=r>>>0,t||Pi(r,2,this.length),this[r]|this[r+1]<<8};br.prototype.readUint16BE=br.prototype.readUInt16BE=function(r,t){return r=r>>>0,t||Pi(r,2,this.length),this[r]<<8|this[r+1]};br.prototype.readUint32LE=br.prototype.readUInt32LE=function(r,t){return r=r>>>0,t||Pi(r,4,this.length),(this[r]|this[r+1]<<8|this[r+2]<<16)+this[r+3]*16777216};br.prototype.readUint32BE=br.prototype.readUInt32BE=function(r,t){return r=r>>>0,t||Pi(r,4,this.length),this[r]*16777216+(this[r+1]<<16|this[r+2]<<8|this[r+3])};br.prototype.readBigUInt64LE=jf(function(r){r=r>>>0,od(r,"offset");let t=this[r],a=this[r+7];(t===void 0||a===void 0)&&Hp(r,this.length-8);let n=t+this[++r]*2**8+this[++r]*2**16+this[++r]*2**24,i=this[++r]+this[++r]*2**8+this[++r]*2**16+a*2**24;return BigInt(n)+(BigInt(i)<>>0,od(r,"offset");let t=this[r],a=this[r+7];(t===void 0||a===void 0)&&Hp(r,this.length-8);let n=t*2**24+this[++r]*2**16+this[++r]*2**8+this[++r],i=this[++r]*2**24+this[++r]*2**16+this[++r]*2**8+a;return(BigInt(n)<>>0,t=t>>>0,a||Pi(r,t,this.length);let n=this[r],i=1,o=0;for(;++o=i&&(n-=Math.pow(2,8*t)),n};br.prototype.readIntBE=function(r,t,a){r=r>>>0,t=t>>>0,a||Pi(r,t,this.length);let n=t,i=1,o=this[r+--n];for(;n>0&&(i*=256);)o+=this[r+--n]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*t)),o};br.prototype.readInt8=function(r,t){return r=r>>>0,t||Pi(r,1,this.length),this[r]&128?(255-this[r]+1)*-1:this[r]};br.prototype.readInt16LE=function(r,t){r=r>>>0,t||Pi(r,2,this.length);let a=this[r]|this[r+1]<<8;return a&32768?a|4294901760:a};br.prototype.readInt16BE=function(r,t){r=r>>>0,t||Pi(r,2,this.length);let a=this[r+1]|this[r]<<8;return a&32768?a|4294901760:a};br.prototype.readInt32LE=function(r,t){return r=r>>>0,t||Pi(r,4,this.length),this[r]|this[r+1]<<8|this[r+2]<<16|this[r+3]<<24};br.prototype.readInt32BE=function(r,t){return r=r>>>0,t||Pi(r,4,this.length),this[r]<<24|this[r+1]<<16|this[r+2]<<8|this[r+3]};br.prototype.readBigInt64LE=jf(function(r){r=r>>>0,od(r,"offset");let t=this[r],a=this[r+7];(t===void 0||a===void 0)&&Hp(r,this.length-8);let n=this[r+4]+this[r+5]*2**8+this[r+6]*2**16+(a<<24);return(BigInt(n)<>>0,od(r,"offset");let t=this[r],a=this[r+7];(t===void 0||a===void 0)&&Hp(r,this.length-8);let n=(t<<24)+this[++r]*2**16+this[++r]*2**8+this[++r];return(BigInt(n)<>>0,t||Pi(r,4,this.length),id.read(this,r,!0,23,4)};br.prototype.readFloatBE=function(r,t){return r=r>>>0,t||Pi(r,4,this.length),id.read(this,r,!1,23,4)};br.prototype.readDoubleLE=function(r,t){return r=r>>>0,t||Pi(r,8,this.length),id.read(this,r,!0,52,8)};br.prototype.readDoubleBE=function(r,t){return r=r>>>0,t||Pi(r,8,this.length),id.read(this,r,!1,52,8)};function Eo(e,r,t,a,n,i){if(!br.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>n||re.length)throw new RangeError("Index out of range")}br.prototype.writeUintLE=br.prototype.writeUIntLE=function(r,t,a,n){if(r=+r,t=t>>>0,a=a>>>0,!n){let l=Math.pow(2,8*a)-1;Eo(this,r,t,a,l,0)}let i=1,o=0;for(this[t]=r&255;++o>>0,a=a>>>0,!n){let l=Math.pow(2,8*a)-1;Eo(this,r,t,a,l,0)}let i=a-1,o=1;for(this[t+i]=r&255;--i>=0&&(o*=256);)this[t+i]=r/o&255;return t+a};br.prototype.writeUint8=br.prototype.writeUInt8=function(r,t,a){return r=+r,t=t>>>0,a||Eo(this,r,t,1,255,0),this[t]=r&255,t+1};br.prototype.writeUint16LE=br.prototype.writeUInt16LE=function(r,t,a){return r=+r,t=t>>>0,a||Eo(this,r,t,2,65535,0),this[t]=r&255,this[t+1]=r>>>8,t+2};br.prototype.writeUint16BE=br.prototype.writeUInt16BE=function(r,t,a){return r=+r,t=t>>>0,a||Eo(this,r,t,2,65535,0),this[t]=r>>>8,this[t+1]=r&255,t+2};br.prototype.writeUint32LE=br.prototype.writeUInt32LE=function(r,t,a){return r=+r,t=t>>>0,a||Eo(this,r,t,4,4294967295,0),this[t+3]=r>>>24,this[t+2]=r>>>16,this[t+1]=r>>>8,this[t]=r&255,t+4};br.prototype.writeUint32BE=br.prototype.writeUInt32BE=function(r,t,a){return r=+r,t=t>>>0,a||Eo(this,r,t,4,4294967295,0),this[t]=r>>>24,this[t+1]=r>>>16,this[t+2]=r>>>8,this[t+3]=r&255,t+4};function IK(e,r,t,a,n){YK(r,a,n,e,t,7);let i=Number(r&BigInt(4294967295));e[t++]=i,i=i>>8,e[t++]=i,i=i>>8,e[t++]=i,i=i>>8,e[t++]=i;let o=Number(r>>BigInt(32)&BigInt(4294967295));return e[t++]=o,o=o>>8,e[t++]=o,o=o>>8,e[t++]=o,o=o>>8,e[t++]=o,t}function OK(e,r,t,a,n){YK(r,a,n,e,t,7);let i=Number(r&BigInt(4294967295));e[t+7]=i,i=i>>8,e[t+6]=i,i=i>>8,e[t+5]=i,i=i>>8,e[t+4]=i;let o=Number(r>>BigInt(32)&BigInt(4294967295));return e[t+3]=o,o=o>>8,e[t+2]=o,o=o>>8,e[t+1]=o,o=o>>8,e[t]=o,t+8}br.prototype.writeBigUInt64LE=jf(function(r,t=0){return IK(this,r,t,BigInt(0),BigInt("0xffffffffffffffff"))});br.prototype.writeBigUInt64BE=jf(function(r,t=0){return OK(this,r,t,BigInt(0),BigInt("0xffffffffffffffff"))});br.prototype.writeIntLE=function(r,t,a,n){if(r=+r,t=t>>>0,!n){let s=Math.pow(2,8*a-1);Eo(this,r,t,a,s-1,-s)}let i=0,o=1,l=0;for(this[t]=r&255;++i>0)-l&255;return t+a};br.prototype.writeIntBE=function(r,t,a,n){if(r=+r,t=t>>>0,!n){let s=Math.pow(2,8*a-1);Eo(this,r,t,a,s-1,-s)}let i=a-1,o=1,l=0;for(this[t+i]=r&255;--i>=0&&(o*=256);)r<0&&l===0&&this[t+i+1]!==0&&(l=1),this[t+i]=(r/o>>0)-l&255;return t+a};br.prototype.writeInt8=function(r,t,a){return r=+r,t=t>>>0,a||Eo(this,r,t,1,127,-128),r<0&&(r=255+r+1),this[t]=r&255,t+1};br.prototype.writeInt16LE=function(r,t,a){return r=+r,t=t>>>0,a||Eo(this,r,t,2,32767,-32768),this[t]=r&255,this[t+1]=r>>>8,t+2};br.prototype.writeInt16BE=function(r,t,a){return r=+r,t=t>>>0,a||Eo(this,r,t,2,32767,-32768),this[t]=r>>>8,this[t+1]=r&255,t+2};br.prototype.writeInt32LE=function(r,t,a){return r=+r,t=t>>>0,a||Eo(this,r,t,4,2147483647,-2147483648),this[t]=r&255,this[t+1]=r>>>8,this[t+2]=r>>>16,this[t+3]=r>>>24,t+4};br.prototype.writeInt32BE=function(r,t,a){return r=+r,t=t>>>0,a||Eo(this,r,t,4,2147483647,-2147483648),r<0&&(r=4294967295+r+1),this[t]=r>>>24,this[t+1]=r>>>16,this[t+2]=r>>>8,this[t+3]=r&255,t+4};br.prototype.writeBigInt64LE=jf(function(r,t=0){return IK(this,r,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});br.prototype.writeBigInt64BE=jf(function(r,t=0){return OK(this,r,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function HK(e,r,t,a,n,i){if(t+a>e.length)throw new RangeError("Index out of range");if(t<0)throw new RangeError("Index out of range")}function UK(e,r,t,a,n){return r=+r,t=t>>>0,n||HK(e,r,t,4,34028234663852886e22,-34028234663852886e22),id.write(e,r,t,a,23,4),t+4}br.prototype.writeFloatLE=function(r,t,a){return UK(this,r,t,!0,a)};br.prototype.writeFloatBE=function(r,t,a){return UK(this,r,t,!1,a)};function GK(e,r,t,a,n){return r=+r,t=t>>>0,n||HK(e,r,t,8,17976931348623157e292,-17976931348623157e292),id.write(e,r,t,a,52,8),t+8}br.prototype.writeDoubleLE=function(r,t,a){return GK(this,r,t,!0,a)};br.prototype.writeDoubleBE=function(r,t,a){return GK(this,r,t,!1,a)};br.prototype.copy=function(r,t,a,n){if(!br.isBuffer(r))throw new TypeError("argument should be a Buffer");if(a||(a=0),!n&&n!==0&&(n=this.length),t>=r.length&&(t=r.length),t||(t=0),n>0&&n=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),r.length-t>>0,a=a===void 0?this.length:a>>>0,r||(r=0);let i;if(typeof r=="number")for(i=t;i2**32?n=FK(String(t)):typeof t=="bigint"&&(n=String(t),(t>BigInt(2)**BigInt(32)||t<-(BigInt(2)**BigInt(32)))&&(n=FK(n)),n+="n"),a+=` It must be ${r}. Received ${n}`,a},RangeError);function FK(e){let r="",t=e.length,a=e[0]==="-"?1:0;for(;t>=a+4;t-=3)r=`_${e.slice(t-3,t)}${r}`;return`${e.slice(0,t)}${r}`}function Lke(e,r,t){od(r,"offset"),(e[r]===void 0||e[r+t]===void 0)&&Hp(r,e.length-(t+1))}function YK(e,r,t,a,n,i){if(e>t||e3?r===0||r===BigInt(0)?l=`>= 0${o} and < 2${o} ** ${(i+1)*8}${o}`:l=`>= -(2${o} ** ${(i+1)*8-1}${o}) and < 2 ** ${(i+1)*8-1}${o}`:l=`>= ${r}${o} and <= ${t}${o}`,new nd.ERR_OUT_OF_RANGE("value",l,e)}Lke(a,n,i)}function od(e,r){if(typeof e!="number")throw new nd.ERR_INVALID_ARG_TYPE(r,"number",e)}function Hp(e,r,t){throw Math.floor(e)!==e?(od(e,t),new nd.ERR_OUT_OF_RANGE(t||"offset","an integer",e)):r<0?new nd.ERR_BUFFER_OUT_OF_BOUNDS:new nd.ERR_OUT_OF_RANGE(t||"offset",`>= ${t?1:0} and <= ${r}`,e)}var Eke=/[^+/0-9A-Za-z-_]/g;function qke(e){if(e=e.split("=")[0],e=e.trim().replace(Eke,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function OT(e,r){r=r||1/0;let t,a=e.length,n=null,i=[];for(let o=0;o55295&&t<57344){if(!n){if(t>56319){(r-=3)>-1&&i.push(239,191,189);continue}else if(o+1===a){(r-=3)>-1&&i.push(239,191,189);continue}n=t;continue}if(t<56320){(r-=3)>-1&&i.push(239,191,189),n=t;continue}t=(n-55296<<10|t-56320)+65536}else n&&(r-=3)>-1&&i.push(239,191,189);if(n=null,t<128){if((r-=1)<0)break;i.push(t)}else if(t<2048){if((r-=2)<0)break;i.push(t>>6|192,t&63|128)}else if(t<65536){if((r-=3)<0)break;i.push(t>>12|224,t>>6&63|128,t&63|128)}else if(t<1114112){if((r-=4)<0)break;i.push(t>>18|240,t>>12&63|128,t>>6&63|128,t&63|128)}else throw new Error("Invalid code point")}return i}function Fke(e){let r=[];for(let t=0;t>8,n=t%256,i.push(n),i.push(a);return i}function VK(e){return zT.toByteArray(qke(e))}function jb(e,r,t,a){let n;for(n=0;n=r.length||n>=e.length);++n)r[n+t]=e[n];return n}function Is(e,r){return e instanceof r||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===r.name}function YT(e){return e!==e}var Pke=(function(){let e="0123456789abcdef",r=new Array(256);for(let t=0;t<16;++t){let a=t*16;for(let n=0;n<16;++n)r[a+n]=e[t]+e[n]}return r})();function jf(e){return typeof BigInt=="undefined"?Nke:e}function Nke(){throw new Error("BigInt not supported")}});var lQ=B(Ma=>{"use strict";var $f=RT(),Gi=MK(),WK=XK().Buffer;window.__TYPEDARRAY_POOL||(window.__TYPEDARRAY_POOL={UINT8:Gi([32,0]),UINT16:Gi([32,0]),UINT32:Gi([32,0]),BIGUINT64:Gi([32,0]),INT8:Gi([32,0]),INT16:Gi([32,0]),INT32:Gi([32,0]),BIGINT64:Gi([32,0]),FLOAT:Gi([32,0]),DOUBLE:Gi([32,0]),DATA:Gi([32,0]),UINT8C:Gi([32,0]),BUFFER:Gi([32,0])});var zke=typeof Uint8ClampedArray!="undefined",Bke=typeof BigUint64Array!="undefined",Ike=typeof BigInt64Array!="undefined",li=window.__TYPEDARRAY_POOL;li.UINT8C||(li.UINT8C=Gi([32,0]));li.BIGUINT64||(li.BIGUINT64=Gi([32,0]));li.BIGINT64||(li.BIGINT64=Gi([32,0]));li.BUFFER||(li.BUFFER=Gi([32,0]));var $b=li.DATA,Kb=li.BUFFER;Ma.free=function(r){if(WK.isBuffer(r))Kb[$f.log2(r.length)].push(r);else{if(Object.prototype.toString.call(r)!=="[object ArrayBuffer]"&&(r=r.buffer),!r)return;var t=r.length||r.byteLength,a=$f.log2(t)|0;$b[a].push(r)}};function ZK(e){if(e){var r=e.length||e.byteLength,t=$f.log2(r);$b[t].push(e)}}function Oke(e){ZK(e.buffer)}Ma.freeUint8=Ma.freeUint16=Ma.freeUint32=Ma.freeBigUint64=Ma.freeInt8=Ma.freeInt16=Ma.freeInt32=Ma.freeBigInt64=Ma.freeFloat32=Ma.freeFloat=Ma.freeFloat64=Ma.freeDouble=Ma.freeUint8Clamped=Ma.freeDataView=Oke;Ma.freeArrayBuffer=ZK;Ma.freeBuffer=function(r){Kb[$f.log2(r.length)].push(r)};Ma.malloc=function(r,t){if(t===void 0||t==="arraybuffer")return qo(r);switch(t){case"uint8":return VT(r);case"uint16":return JK(r);case"uint32":return jK(r);case"int8":return $K(r);case"int16":return KK(r);case"int32":return QK(r);case"float":case"float32":return eQ(r);case"double":case"float64":return rQ(r);case"uint8_clamped":return tQ(r);case"bigint64":return nQ(r);case"biguint64":return aQ(r);case"buffer":return oQ(r);case"data":case"dataview":return iQ(r);default:return null}return null};function qo(r){var r=$f.nextPow2(r),t=$f.log2(r),a=$b[t];return a.length>0?a.pop():new ArrayBuffer(r)}Ma.mallocArrayBuffer=qo;function VT(e){return new Uint8Array(qo(e),0,e)}Ma.mallocUint8=VT;function JK(e){return new Uint16Array(qo(2*e),0,e)}Ma.mallocUint16=JK;function jK(e){return new Uint32Array(qo(4*e),0,e)}Ma.mallocUint32=jK;function $K(e){return new Int8Array(qo(e),0,e)}Ma.mallocInt8=$K;function KK(e){return new Int16Array(qo(2*e),0,e)}Ma.mallocInt16=KK;function QK(e){return new Int32Array(qo(4*e),0,e)}Ma.mallocInt32=QK;function eQ(e){return new Float32Array(qo(4*e),0,e)}Ma.mallocFloat32=Ma.mallocFloat=eQ;function rQ(e){return new Float64Array(qo(8*e),0,e)}Ma.mallocFloat64=Ma.mallocDouble=rQ;function tQ(e){return zke?new Uint8ClampedArray(qo(e),0,e):VT(e)}Ma.mallocUint8Clamped=tQ;function aQ(e){return Bke?new BigUint64Array(qo(8*e),0,e):null}Ma.mallocBigUint64=aQ;function nQ(e){return Ike?new BigInt64Array(qo(8*e),0,e):null}Ma.mallocBigInt64=nQ;function iQ(e){return new DataView(qo(e),0,e)}Ma.mallocDataView=iQ;function oQ(e){e=$f.nextPow2(e);var r=$f.log2(e),t=Kb[r];return t.length>0?t.pop():new WK(e)}Ma.mallocBuffer=oQ;Ma.clearCache=function(){for(var r=0;r<32;++r)li.UINT8[r].length=0,li.UINT16[r].length=0,li.UINT32[r].length=0,li.INT8[r].length=0,li.INT16[r].length=0,li.INT32[r].length=0,li.FLOAT[r].length=0,li.DOUBLE[r].length=0,li.BIGUINT64[r].length=0,li.BIGINT64[r].length=0,li.UINT8C[r].length=0,$b[r].length=0,Kb[r].length=0}});var uQ=B((_Ie,sQ)=>{"use strict";var Hke=Object.prototype.toString;sQ.exports=function(e){var r;return Hke.call(e)==="[object Object]"&&(r=Object.getPrototypeOf(e),r===null||r===Object.getPrototypeOf({}))}});var XT=B((wIe,fQ)=>{fQ.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}});var hQ=B((AIe,vQ)=>{"use strict";var Uke=XT();vQ.exports=cQ;var Up=96;function WT(e,r){var t=Uke(getComputedStyle(e).getPropertyValue(r));return t[0]*cQ(t[1],e)}function Gke(e,r){var t=document.createElement("div");t.style["font-size"]="128"+e,r.appendChild(t);var a=WT(t,"font-size")/128;return r.removeChild(t),a}function cQ(e,r){switch(r=r||document.body,e=(e||"px").trim().toLowerCase(),(r===window||r===document)&&(r=document.body),e){case"%":return r.clientHeight/100;case"ch":case"ex":return Gke(e,r);case"em":return WT(r,"font-size");case"rem":return WT(document.body,"font-size");case"vw":return window.innerWidth/100;case"vh":return window.innerHeight/100;case"vmin":return Math.min(window.innerWidth,window.innerHeight)/100;case"vmax":return Math.max(window.innerWidth,window.innerHeight)/100;case"in":return Up;case"cm":return Up/2.54;case"mm":return Up/25.4;case"pt":return Up/72;case"pc":return Up/6}return 1}});var mQ=B((TIe,pQ)=>{"use strict";pQ.exports=rx;var Yke=rx.canvas=document.createElement("canvas"),Qb=Yke.getContext("2d"),dQ=ex([32,126]);rx.createPairs=ex;rx.ascii=dQ;function rx(e,r){Array.isArray(e)&&(e=e.join(", "));var t={},a,n=16,i=.05;r&&(r.length===2&&typeof r[0]=="number"?a=ex(r):Array.isArray(r)?a=r:(r.o?a=ex(r.o):r.pairs&&(a=r.pairs),r.fontSize&&(n=r.fontSize),r.threshold!=null&&(i=r.threshold))),a||(a=dQ),Qb.font=n+"px "+e;for(var o=0;on*i){var f=(u-s)/n;t[l]=f*1e3}}return t}function ex(e){for(var r=[],t=e[0];t<=e[1];t++)for(var a=String.fromCharCode(t),n=e[0];n{"use strict";bQ.exports=Kf;Kf.canvas=document.createElement("canvas");Kf.cache={};function Kf(o,r){r||(r={}),(typeof o=="string"||Array.isArray(o))&&(r.family=o);var t=Array.isArray(r.family)?r.family.join(", "):r.family;if(!t)throw Error("`family` must be defined");var a=r.size||r.fontSize||r.em||48,n=r.weight||r.fontWeight||"",i=r.style||r.fontStyle||"",o=[i,n,a].join(" ")+"px "+t,l=r.origin||"top";if(Kf.cache[t]&&a<=Kf.cache[t].em)return yQ(Kf.cache[t],l);var s=r.canvas||Kf.canvas,u=s.getContext("2d"),f={upper:r.upper!==void 0?r.upper:"H",lower:r.lower!==void 0?r.lower:"x",descent:r.descent!==void 0?r.descent:"p",ascent:r.ascent!==void 0?r.ascent:"h",tittle:r.tittle!==void 0?r.tittle:"i",overshoot:r.overshoot!==void 0?r.overshoot:"O"},c=Math.ceil(a*1.5);s.height=c,s.width=c*.5,u.font=o;var v="H",d={top:0};u.clearRect(0,0,c,c),u.textBaseline="top",u.fillStyle="black",u.fillText(v,0,0);var p=Os(u.getImageData(0,0,c,c));u.clearRect(0,0,c,c),u.textBaseline="bottom",u.fillText(v,0,c);var m=Os(u.getImageData(0,0,c,c));d.lineHeight=d.bottom=c-m+p,u.clearRect(0,0,c,c),u.textBaseline="alphabetic",u.fillText(v,0,c);var y=Os(u.getImageData(0,0,c,c)),b=c-y-1+p;d.baseline=d.alphabetic=b,u.clearRect(0,0,c,c),u.textBaseline="middle",u.fillText(v,0,c*.5);var T=Os(u.getImageData(0,0,c,c));d.median=d.middle=c-T-1+p-c*.5,u.clearRect(0,0,c,c),u.textBaseline="hanging",u.fillText(v,0,c*.5);var _=Os(u.getImageData(0,0,c,c));d.hanging=c-_-1+p-c*.5,u.clearRect(0,0,c,c),u.textBaseline="ideographic",u.fillText(v,0,c);var x=Os(u.getImageData(0,0,c,c));if(d.ideographic=c-x-1+p,f.upper&&(u.clearRect(0,0,c,c),u.textBaseline="top",u.fillText(f.upper,0,0),d.upper=Os(u.getImageData(0,0,c,c)),d.capHeight=d.baseline-d.upper),f.lower&&(u.clearRect(0,0,c,c),u.textBaseline="top",u.fillText(f.lower,0,0),d.lower=Os(u.getImageData(0,0,c,c)),d.xHeight=d.baseline-d.lower),f.tittle&&(u.clearRect(0,0,c,c),u.textBaseline="top",u.fillText(f.tittle,0,0),d.tittle=Os(u.getImageData(0,0,c,c))),f.ascent&&(u.clearRect(0,0,c,c),u.textBaseline="top",u.fillText(f.ascent,0,0),d.ascent=Os(u.getImageData(0,0,c,c))),f.descent&&(u.clearRect(0,0,c,c),u.textBaseline="top",u.fillText(f.descent,0,0),d.descent=gQ(u.getImageData(0,0,c,c))),f.overshoot){u.clearRect(0,0,c,c),u.textBaseline="top",u.fillText(f.overshoot,0,0);var w=gQ(u.getImageData(0,0,c,c));d.overshoot=w-b}for(var k in d)d[k]/=a;return d.em=a,Kf.cache[t]=d,yQ(d,l)}function yQ(e,r){var t={};typeof r=="string"&&(r=e[r]);for(var a in e)a!=="em"&&(t[a]=e[a]-r);return t}function Os(e){for(var r=e.height,t=e.data,a=3;a0;a-=4)if(t[a]!==0)return Math.floor((a-3)*.25/r)}});var TQ=B((kIe,AQ)=>{"use strict";var sd=dK(),Vke=Ns(),Xke=qT(),Wke=bK(),Zke=pT(),ZT=kp(),Jke=_K(),Qf=lQ(),jke=Vh(),$ke=uQ(),Kke=XT(),Qke=hQ(),eSe=mQ(),rSe=bi(),tSe=xQ(),aSe=Lc(),nSe=RT(),_Q=nSe.nextPow2,wQ=new Zke,ax=!1;document.body&&(tx=document.body.appendChild(document.createElement("div")),tx.style.font="italic small-caps bold condensed 16px/2 cursive",getComputedStyle(tx).fontStretch&&(ax=!0),document.body.removeChild(tx));var tx,Na=function(r){iSe(r)?(r={regl:r},this.gl=r.regl._gl):this.gl=Wke(r),this.shader=wQ.get(this.gl),this.shader?this.regl=this.shader.regl:this.regl=r.regl||Xke({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(),wQ.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($ke(r)?r:{})};Na.prototype.createShader=function(){var r=this.regl,t=r({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:r.prop("count"),offset:r.prop("offset"),attributes:{charOffset:{offset:4,stride:8,buffer:r.this("sizeBuffer")},width:{offset:0,stride:8,buffer:r.this("sizeBuffer")},char:r.this("charBuffer"),position:r.this("position")},uniforms:{atlasSize:function(n,i){return[i.atlas.width,i.atlas.height]},atlasDim:function(n,i){return[i.atlas.cols,i.atlas.rows]},atlas:function(n,i){return i.atlas.texture},charStep:function(n,i){return i.atlas.step},em:function(n,i){return i.atlas.em},color:r.prop("color"),opacity:r.prop("opacity"),viewport:r.this("viewportArray"),scale:r.this("scale"),align:r.prop("align"),baseline:r.prop("baseline"),translate:r.this("translate"),positionOffset:r.prop("positionOffset")},primitive:"points",viewport:r.this("viewport"),vert:` precision highp float; attribute float width, charOffset, char; attribute vec2 position; @@ -719,9 +719,9 @@ void main() { // color.rgb += (1. - color.rgb) * (1. - mask.rgb); gl_FragColor = color; - }`}),a={};return{regl:r,draw:t,atlas:a}};Na.prototype.update=function(r){var t=this;if(typeof r=="string")r={text:r};else if(!r)return;r=zke(r,{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),r.opacity!=null&&(Array.isArray(r.opacity)?this.opacity=r.opacity.map(function(se){return parseFloat(se)}):this.opacity=parseFloat(r.opacity)),r.viewport!=null&&(this.viewport=Uke(r.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]),r.kerning!=null&&(this.kerning=r.kerning),r.offset!=null&&(typeof r.offset=="number"&&(r.offset=[r.offset,0]),this.positionOffset=Jke(r.offset)),r.direction&&(this.direction=r.direction),r.range&&(this.range=r.range,this.scale=[1/(r.range[2]-r.range[0]),1/(r.range[3]-r.range[1])],this.translate=[-r.range[0],-r.range[1]]),r.scale&&(this.scale=r.scale),r.translate&&(this.translate=r.translate),this.scale||(this.scale=[1/this.viewport.width,1/this.viewport.height]),this.translate||(this.translate=[0,0]),!this.font.length&&!r.font&&(r.font=Na.baseFontSize+"px sans-serif");var a=!1,n=!1;if(r.font&&(Array.isArray(r.font)?r.font:[r.font]).forEach(function(se,we){if(typeof se=="string")try{se=fd.parse(se)}catch(Ve){se=fd.parse(Na.baseFontSize+"px "+se)}else{var te=se.style,Ee=se.weight,de=se.stretch,Ae=se.variant;se=fd.parse(fd.stringify(se)),te&&(se.style=te),Ee&&(se.weight=Ee),de&&(se.stretch=de),Ae&&(se.variant=Ae)}var Ue=fd.stringify({size:Na.baseFontSize,family:se.family,stretch:Kb?se.stretch:void 0,variant:se.variant,weight:se.weight,style:se.style}),ge=Yke(se.size),Ne=Math.round(ge[0]*Vke(ge[1]));if(Ne!==t.fontSize[we]&&(n=!0,t.fontSize[we]=Ne),(!t.font[we]||Ue!=t.font[we].baseString)&&(a=!0,t.font[we]=Na.fonts[Ue],!t.font[we])){var ir=se.family.join(", "),qe=[se.style];se.style!=se.variant&&qe.push(se.variant),se.variant!=se.weight&&qe.push(se.weight),Kb&&se.weight!=se.stretch&&qe.push(se.stretch),t.font[we]={baseString:Ue,family:ir,weight:se.weight,stretch:se.stretch,style:se.style,variant:se.variant,width:{},kerning:{},metrics:Zke(ir,{origin:"top",fontSize:Na.baseFontSize,fontStyle:qe.join(" ")})},Na.fonts[Ue]=t.font[we]}}),(a||n)&&this.font.forEach(function(se,we){var te=fd.stringify({size:t.fontSize[we],family:se.family,stretch:Kb?se.stretch:void 0,variant:se.variant,weight:se.weight,style:se.style});if(t.fontAtlas[we]=t.shader.atlas[te],!t.fontAtlas[we]){var Ee=se.metrics;t.shader.atlas[te]=t.fontAtlas[we]={fontString:te,step:Math.ceil(t.fontSize[we]*Ee.bottom*.5)*2,em:t.fontSize[we],cols:0,rows:0,height:0,width:0,chars:[],ids:{},texture:t.regl.texture()}}r.text==null&&(r.text=t.text)}),typeof r.text=="string"&&r.position&&r.position.length>2){for(var i=Array(r.position.length*.5),o=0;o2){for(var u=!r.position[0].length,f=Zf.mallocFloat(this.count*2),c=0,v=0;c1?t.align[we]:t.align[0]:t.align;if(typeof te=="number")return te;switch(te){case"right":case"end":return-se;case"center":case"centre":case"middle":return-se*.5}return 0})),this.baseline==null&&r.baseline==null&&(r.baseline=0),r.baseline!=null&&(this.baseline=r.baseline,Array.isArray(this.baseline)||(this.baseline=[this.baseline]),this.baselineOffset=this.baseline.map(function(se,we){var te=(t.font[we]||t.font[0]).metrics,Ee=0;return Ee+=te.bottom*.5,typeof se=="number"?Ee+=se-te.baseline:Ee+=-te[se],Ee*=-1,Ee})),r.color!=null)if(r.color||(r.color="transparent"),typeof r.color=="string"||!isNaN(r.color))this.color=OT(r.color,"uint8");else{var Y;if(typeof r.color[0]=="number"&&r.color.length>this.counts.length){var V=r.color.length;Y=Zf.mallocUint8(V);for(var J=(r.color.subarray||r.color.slice).bind(r.color),U=0;U4||this.baselineOffset.length>1||this.align&&this.align.length>1||this.fontAtlas.length>1||this.positionOffset.length>2;if(j){var ae=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(ae);for(var pe=0;pe1?this.counts[pe]:this.counts[0],offset:this.textOffsets.length>1?this.textOffsets[pe]:this.textOffsets[0],color:this.color?this.color.length<=4?this.color:this.color.subarray(pe*4,pe*4+4):[0,0,0,255],opacity:Array.isArray(this.opacity)?this.opacity[pe]:this.opacity,baseline:this.baselineOffset[pe]!=null?this.baselineOffset[pe]:this.baselineOffset[0],align:this.align?this.alignOffset[pe]!=null?this.alignOffset[pe]:this.alignOffset[0]:0,atlas:this.fontAtlas[pe]||this.fontAtlas[0],positionOffset:this.positionOffset.length>2?this.positionOffset.subarray(pe*2,pe*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=[]}};Na.prototype.destroy=function(){};Na.prototype.kerning=!0;Na.prototype.position={constant:new Float32Array(2)};Na.prototype.translate=null;Na.prototype.scale=null;Na.prototype.font=null;Na.prototype.text="";Na.prototype.positionOffset=[0,0];Na.prototype.opacity=1;Na.prototype.color=new Uint8Array([0,0,0,255]);Na.prototype.alignOffset=[0,0];Na.maxAtlasSize=1024;Na.atlasCanvas=document.createElement("canvas");Na.atlasContext=Na.atlasCanvas.getContext("2d",{alpha:!1});Na.baseFontSize=64;Na.fonts={};function $ke(e){return typeof e=="function"&&e._gl&&e.prop&&e.texture&&e.buffer}yQ.exports=Na});var _Q=B((mIe,xQ)=>{"use strict";var bQ=Kt(),Kke=function(){};xQ.exports=function(r){for(var t in r)typeof r[t]=="function"&&(r[t]=Kke);r.destroy=function(){r.container.parentNode.removeChild(r.container)};var a=document.createElement("div");a.className="no-webgl",a.style.cursor="pointer",a.style.fontSize="24px",a.style.color=bQ.defaults[0],a.style.position="absolute",a.style.left=a.style.top="0px",a.style.width=a.style.height="100%",a.style["background-color"]=bQ.lightLine,a.style["z-index"]=30;var n=document.createElement("p");return n.textContent="WebGL is not supported by your browser - visit https://get.webgl.org for more info",n.style.position="relative",n.style.top="50%",n.style.left="50%",n.style.height="30%",n.style.width="50%",n.style.margin="-15% 0 0 -25%",a.appendChild(n),r.container.appendChild(a),r.container.style.background="#FFFFFF",r.container.onclick=function(){window.open("https://get.webgl.org")},!1}});var Qb=B((yIe,wQ)=>{"use strict";var Qke=_Q(),eSe=TT();wQ.exports=function(r,t,a){var n=r._fullLayout,i=!0;return n._glcanvas.each(function(o){if(o.regl){o.regl.preloadCachedCode(a);return}if(!(o.pick&&!n._has("parcoords"))){try{o.regl=eSe({canvas:this,attributes:{antialias:!o.pick,preserveDrawingBuffer:!0},pixelRatio:r._context.plotGlPixelRatio||window.devicePixelRatio,extensions:t||[],cachedCode:a||{}})}catch(l){i=!1}o.regl||(i=!1),i&&this.addEventListener("webglcontextlost",function(l){r&&r.emit&&r.emit("plotly_webglcontextlost",{event:l,layer:o.key})},!1)}}),i||Qke({container:n._glcontainer.node()}),i}});var DQ=B((HT,CQ)=>{"use strict";var AQ=qA(),TQ=fT(),rSe=G$(),MQ=gQ(),kQ=nr(),tSe=Mf().selectMode,aSe=Qb(),nSe=yi(),iSe=a9(),oSe=LA().styleTextSelection,SQ={};function lSe(e,r,t,a){var n=e._size,i=e.width*a,o=e.height*a,l=n.l*a,s=n.b*a,u=n.r*a,f=n.t*a,c=n.w*a,v=n.h*a;return[l+r.domain[0]*c,s+t.domain[0]*v,i-u-(1-r.domain[1])*c,o-f-(1-t.domain[1])*v]}var HT=CQ.exports=function(r,t,a){if(a.length){var n=r._fullLayout,i=t._scene,o=t.xaxis,l=t.yaxis,s,u;if(i){var f=aSe(r,["ANGLE_instanced_arrays","OES_element_index_uint"],SQ);if(!f){i.init();return}var c=i.count,v=n._glcanvas.data()[0].regl;if(iSe(r,t,a),i.dirty){if((i.line2d||i.error2d)&&!(i.scatter2d||i.fill2d||i.glText)&&v.clear({color:!0,depth:!0}),i.error2d===!0&&(i.error2d=rSe(v)),i.line2d===!0&&(i.line2d=TQ(v)),i.scatter2d===!0&&(i.scatter2d=AQ(v)),i.fill2d===!0&&(i.fill2d=TQ(v)),i.glText===!0)for(i.glText=new Array(c),s=0;si.glText.length){var d=c-i.glText.length;for(s=0;sW&&(isNaN(G[j])||isNaN(G[j+1]));)j-=2;U.positions=G.slice(W,j+2)}return U}),i.line2d.update(i.lineOptions)),i.error2d){var m=(i.errorXOptions||[]).concat(i.errorYOptions||[]).map(function(U){return U||{positions:[],errors:[]}});i.error2d.update(m)}i.scatter2d&&i.scatter2d.update(i.markerOptions),i.fillOrder=kQ.repeat(null,c),i.fill2d&&(i.fillOptions=i.fillOptions.map(function(U,G){var W=a[G];if(!(!U||!W||!W[0]||!W[0].trace)){var j=W[0],ae=j.trace,pe=j.t,se=i.lineOptions[G],we,te,Ee=[];ae._ownfill&&Ee.push(G),ae._nexttrace&&Ee.push(G+1),Ee.length&&(i.fillOrder[G]=Ee);var de=[],Ae=se&&se.positions||pe.positions,Ue,ge;if(ae.fill==="tozeroy"){for(Ue=0;UeUe&&isNaN(Ae[ge+1]);)ge-=2;Ae[Ue+1]!==0&&(de=[Ae[Ue],0]),de=de.concat(Ae.slice(Ue,ge+2)),Ae[ge+1]!==0&&(de=de.concat([Ae[ge],0]))}else if(ae.fill==="tozerox"){for(Ue=0;UeUe&&isNaN(Ae[ge]);)ge-=2;Ae[Ue]!==0&&(de=[0,Ae[Ue+1]]),de=de.concat(Ae.slice(Ue,ge+2)),Ae[ge]!==0&&(de=de.concat([0,Ae[ge+1]]))}else if(ae.fill==="toself"||ae.fill==="tonext"){for(de=[],we=0,U.splitNull=!0,te=0;te-1;for(let[U]of a)if(U){var x=U.trace,w=U.t,k=w.index,M=x._length,C=w.x,E=w.y;if(x.selectedpoints||T||_){if(T||(T=!0),x.selectedpoints){var F=i.selectBatch[k]=x.selectedpoints,P={};for(u=0;u{"use strict";var LQ=bZ();LQ.plot=DQ();EQ.exports=LQ});var RQ=B((bIe,FQ)=>{"use strict";FQ.exports=qQ()});var UT=B((xIe,BQ)=>{"use strict";var sSe=Ef(),zQ=j0(),PQ=Q2().axisHoverFormat,{hovertemplateAttrs:uSe,templatefallbackAttrs:fSe}=Iv(),Gp=hb(),cSe=(jn(),vr(Jn)).idRegex,vSe=Ra().templatedArray,cd=Sn().extendFlat,ku=sSe.marker,hSe=ku.line,dSe=cd(zQ("marker.line",{editTypeOverride:"calc"}),{width:cd({},hSe.width,{editType:"calc"}),editType:"calc"}),ex=cd(zQ("marker"),{symbol:ku.symbol,angle:ku.angle,size:cd({},ku.size,{editType:"markerSize"}),sizeref:ku.sizeref,sizemin:ku.sizemin,sizemode:ku.sizemode,opacity:ku.opacity,colorbar:ku.colorbar,line:dSe,editType:"calc"});ex.color.editType=ex.cmin.editType=ex.cmax.editType="style";function NQ(e){return{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"subplotid",regex:cSe[e],editType:"plot"}}}BQ.exports={dimensions:vSe("dimension",{visible:{valType:"boolean",dflt:!0,editType:"calc"},label:{valType:"string",editType:"calc"},values:{valType:"data_array",editType:"calc+clearAxisTypes"},axis:{type:{valType:"enumerated",values:["linear","log","date","category"],editType:"calc+clearAxisTypes"},matches:{valType:"boolean",dflt:!0,editType:"calc"},editType:"calc+clearAxisTypes"},editType:"calc+clearAxisTypes"}),text:cd({},Gp.text,{}),hovertext:cd({},Gp.hovertext,{}),hovertemplate:uSe(),hovertemplatefallback:fSe(),xhoverformat:PQ("x"),yhoverformat:PQ("y"),marker:ex,xaxes:NQ("x"),yaxes:NQ("y"),diagonal:{visible:{valType:"boolean",dflt:!0,editType:"calc"},editType:"calc"},showupperhalf:{valType:"boolean",dflt:!0,editType:"calc"},showlowerhalf:{valType:"boolean",dflt:!0,editType:"calc"},selected:{marker:Gp.selected.marker,editType:"calc"},unselected:{marker:Gp.unselected.marker,editType:"calc"},opacity:Gp.opacity}});var GT=B((_Ie,IQ)=>{"use strict";IQ.exports=function(e,r,t,a){a||(a=1/0);var n,i;for(n=0;n{"use strict";var YT=nr(),pSe=Po(),OQ=UT(),mSe=yi(),ySe=x5(),gSe=GT(),bSe=db().isOpenSymbol;HQ.exports=function(r,t,a,n){function i(d,p){return YT.coerce(r,t,OQ,d,p)}var o=pSe(r,t,{name:"dimensions",handleItemDefaults:xSe}),l=i("diagonal.visible"),s=i("showupperhalf"),u=i("showlowerhalf"),f=gSe(t,o,"values");if(!f||!l&&!s&&!u){t.visible=!1;return}i("text"),i("hovertext"),i("hovertemplate"),i("hovertemplatefallback"),i("xhoverformat"),i("yhoverformat"),ySe(r,t,a,n,i,{noAngleRef:!0,noLineDash:!0,noStandOff:!0});var c=bSe(t.marker.symbol),v=mSe.isBubble(t);i("marker.line.width",c||v?1:0),_Se(r,t,n,i),YT.coerceSelectionMarkerOpacity(t,i)};function xSe(e,r){function t(n,i){return YT.coerce(e,r,OQ.dimensions,n,i)}t("label");var a=t("values");a&&a.length?t("visible"):r.visible=!1,t("axis.type"),t("axis.matches")}function _Se(e,r,t,a){var n=r.dimensions,i=n.length,o=r.showupperhalf,l=r.showlowerhalf,s=r.diagonal.visible,u,f,c=new Array(i),v=new Array(i);for(u=0;uf&&o||u{"use strict";var GQ=nr();YQ.exports=function(r,t){var a=r._fullLayout,n=t.uid,i=a._splomScenes;i||(i=a._splomScenes={});var o={dirty:!0,selectBatch:[],unselectBatch:[]},l={matrix:!1,selectBatch:[],unselectBatch:[]},s=i[t.uid];return s||(s=i[n]=GQ.extendFlat({},o,l),s.draw=function(){s.matrix&&s.matrix.draw&&(s.selectBatch.length||s.unselectBatch.length?s.matrix.draw(s.unselectBatch,s.selectBatch):s.matrix.draw()),s.dirty=!1},s.destroy=function(){s.matrix&&s.matrix.destroy&&s.matrix.destroy(),s.matrixOptions=null,s.selectBatch=null,s.unselectBatch=null,s=null}),s.dirty||GQ.extendFlat(s,o),s}});var ZQ=B((TIe,WQ)=>{"use strict";var VT=nr(),rx=fn(),wSe=Ch().calcMarkerSize,ASe=Ch().calcAxisExpansion,TSe=rp(),XQ=Mp().markerSelection,MSe=Mp().markerStyle,kSe=VQ(),SSe=(In(),vr(Wn)).BADNUM,CSe=(Xh(),vr(Vh)).TOO_MANY_POINTS;WQ.exports=function(r,t){var a=t.dimensions,n=t._length,i={},o=i.cdata=[],l=i.data=[],s=t._visibleDims=[],u,f,c,v,d;function p(_,x){for(var w=_.makeCalcdata({v:x.values,vcalendar:t.calendar},"v"),k=0;kCSe,b;for(m?b=i.sizeAvg||Math.max(i.size,3):b=wSe(t,n),f=0;f{(function(){var e,r,t,a,n,i;typeof performance!="undefined"&&performance!==null&&performance.now?Yp.exports=function(){return performance.now()}:typeof process!="undefined"&&process!==null&&process.hrtime?(Yp.exports=function(){return(e()-n)/1e6},r=process.hrtime,e=function(){var o;return o=r(),o[0]*1e9+o[1]},a=e(),i=process.uptime()*1e9,n=a-i):Date.now?(Yp.exports=function(){return Date.now()-t},t=Date.now()):(Yp.exports=function(){return new Date().getTime()-t},t=new Date().getTime())}).call(JQ)});var KQ=B((MIe,nx)=>{var DSe=jQ(),Su=window,tx=["moz","webkit"],hd="AnimationFrame",dd=Su["request"+hd],Vp=Su["cancel"+hd]||Su["cancelRequest"+hd];for(vd=0;!dd&&vd{QQ.exports=function(r,t){var a=typeof r=="number",n=typeof t=="number";a&&!n?(t=r,r=0):!a&&!n&&(r=0,t=0),r=r|0,t=t|0;var i=t-r;if(i<0)throw new Error("array length must be positive");for(var o=new Array(i),l=0,s=r;l{"use strict";var LSe=qA(),ESe=Es(),qSe=Sc(),ree=KQ(),FSe=eee(),WT=Wh(),RSe=Cc();aee.exports=jf;function jf(e,r){if(!(this instanceof jf))return new jf(e,r);this.traces=[],this.passes={},this.regl=e,this.scatter=LSe(e),this.canvas=this.scatter.canvas}jf.prototype.render=function(...e){return e.length&&this.update(...e),this.regl.attributes.preserveDrawingBuffer?this.draw():(this.dirty?this.planned==null&&(this.planned=ree(()=>{this.draw(),this.dirty=!0,this.planned=null})):(this.draw(),this.dirty=!0,ree(()=>{this.dirty=!1})),this)};jf.prototype.update=function(...e){if(!e.length)return;for(let a=0;am||!n.lower&&y{r[i+l]=a})}this.scatter.draw(...r)}return this};jf.prototype.destroy=function(){return this.traces.forEach(e=>{e.buffer&&e.buffer.destroy&&e.buffer.destroy()}),this.traces=null,this.passes=null,this.scatter.destroy(),this};function PSe(e,r,t){let a=e.id!=null?e.id:e,n=r,i=t;return a<<16|(n&255)<<8|i&255}function ix(e,r,t){let a,n,i,o,l,s,u,f,c=e[r],v=e[t];return c.length>2?(a=c[0],i=c[2],n=c[1],o=c[3]):c.length?(a=n=c[0],i=o=c[1]):(a=c.x,n=c.y,i=c.x+c.width,o=c.y+c.height),v.length>2?(l=v[0],u=v[2],s=v[1],f=v[3]):v.length?(l=s=v[0],u=f=v[1]):(l=v.x,s=v.y,u=v.x+v.width,f=v.y+v.height),[l,n,u,o]}function tee(e){if(typeof e=="number")return[e,e,e,e];if(e.length===2)return[e[0],e[1],e[0],e[1]];{let r=WT(e);return[r.x,r.y,r.x+r.width,r.y+r.height]}}});var oee=B((CIe,iee)=>{"use strict";var NSe=nee(),ZT=nr(),ox=fn(),zSe=Mf().selectMode;iee.exports=function(r,t,a){if(a.length)for(var n=0;n-1,P=zSe(f)||!!n.selectedpoints||F,q=!0;if(P){var z=n._length;if(n.selectedpoints){o.selectBatch=n.selectedpoints;var I=n.selectedpoints,Y={};for(d=0;d{"use strict";lee.getDimIndex=function(r,t){for(var a=t._id,n=a.charAt(0),i={x:0,y:1}[n],o=r._visibleDims,l=0;l{"use strict";var see=JT(),ISe=vA().calcHover,uee=Qa().getFromId,OSe=Sn().extendFlat;function HSe(e,r,t,a,n){n||(n={});var i=(a||"").charAt(0)==="x",o=(a||"").charAt(0)==="y",l=fee(e,r,t);if((i||o)&&n.hoversubplots==="axis"&&l[0])for(var s=(i?e.xa:e.ya)._subplotsWith,u=n.gd,f=OSe({},e),c=0;c{"use strict";var mee=nr(),hee=mee.pushUnique,dee=yi(),pee=JT();yee.exports=function(r,t){var a=r.cd,n=a[0].trace,i=a[0].t,o=r.scene,l=o.matrixOptions.cdata,s=r.xaxis,u=r.yaxis,f=[];if(!o)return f;var c=!dee.hasMarkers(n)&&!dee.hasText(n);if(n.visible!==!0||c)return f;var v=pee.getDimIndex(n,s),d=pee.getDimIndex(n,u);if(v===!1||d===!1)return f;var p=i.xpx[v],y=i.ypx[d],m=l[v],b=l[d],T=(r.scene.selectBatch||[]).slice(),_=[];if(t!==!1&&!t.degenerate)for(var x=0;x{"use strict";var bee=nr(),USe=rp(),GSe=Mp().markerStyle;xee.exports=function(r,t){var a=t.trace,n=r._fullLayout._splomScenes[a.uid];if(n){USe(r,a),bee.extendFlat(n.matrixOptions,GSe(r,a));var i=bee.extendFlat({},n.matrixOptions,n.viewOpts);n.matrix.update(i,null)}}});var Aee=B((FIe,wee)=>{"use strict";var YSe=Pt(),VSe=eA();wee.exports={moduleType:"trace",name:"splom",categories:["gl","regl","cartesian","symbols","showLegend","scatter-like"],attributes:UT(),supplyDefaults:UQ(),colorbar:S5(),calc:ZQ(),plot:oee(),hoverPoints:vee().hoverPoints,selectPoints:gee(),editStyle:_ee(),meta:{}};YSe.register(VSe)});var Dee=B((RIe,Cee)=>{"use strict";var XSe=fT(),WSe=Pt(),ZSe=Qb(),JSe=J2().getModuleCalcData,$f=lp(),Tee=fn().getFromId,Mee=Qa().shouldShowZeroLine,kee="splom",See={};function jSe(e){var r=e._fullLayout,t=WSe.getModule(kee),a=JSe(e.calcdata,t)[0],n=ZSe(e,["ANGLE_instanced_arrays","OES_element_index_uint"],See);n&&(r._hasOnlyLargeSploms&&jT(e),t.plot(e,{},a))}function $Se(e){var r=e.calcdata,t=e._fullLayout;t._hasOnlyLargeSploms&&jT(e);for(var a=0;a{"use strict";var Lee=Aee();Lee.basePlotModule=Dee(),Eee.exports=Lee});var Ree=B((NIe,Fee)=>{"use strict";Fee.exports=qee()});var QT=B((zIe,Pee)=>{"use strict";var rCe=j0(),$T=tl(),KT=Ai(),tCe=lb().attributes,lx=Sn().extendFlat,aCe=Ra().templatedArray;Pee.exports={domain:tCe({name:"parcoords",trace:!0,editType:"plot"}),labelangle:{valType:"angle",dflt:0,editType:"plot"},labelside:{valType:"enumerated",values:["top","bottom"],dflt:"top",editType:"plot"},labelfont:KT({editType:"plot"}),tickfont:KT({autoShadowDflt:!0,editType:"plot"}),rangefont:KT({editType:"plot"}),dimensions:aCe("dimension",{label:{valType:"string",editType:"plot"},tickvals:lx({},$T.tickvals,{editType:"plot"}),ticktext:lx({},$T.ticktext,{editType:"plot"}),tickformat:lx({},$T.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:lx({editType:"calc"},rCe("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"}}});var Xp={};Ja(Xp,{axisExtentOffset:()=>vCe,axisTitleOffset:()=>cCe,bar:()=>hCe,blockLineCount:()=>uCe,canvasPixelRatio:()=>sCe,cn:()=>dCe,id:()=>pCe,layers:()=>fCe,maxDimensionCount:()=>nCe,overdrag:()=>iCe,tickDistance:()=>lCe,verticalPadding:()=>oCe});var nCe,iCe,oCe,lCe,sCe,uCe,fCe,cCe,vCe,hCe,dCe,pCe,Wp=Za(()=>{"use strict";nCe=60,iCe=45,oCe=2,lCe=50,sCe=1,uCe=5e3,fCe=["contextLineLayer","focusLineLayer","pickLineLayer"],cCe=28,vCe=10,hCe={width:4,captureWidth:10,fillColor:"magenta",fillOpacity:1,snapDuration:150,snapRatio:.25,snapClose:.01,strokeOpacity:1,strokeWidth:1,handleHeight:8,handleOpacity:1,handleOverlap:0},dCe={axisExtentText:"axis-extent-text",parcoordsLineLayers:"parcoords-line-layers",parcoordsLineLayer:"parcoords-lines",parcoords:"parcoords",parcoordsControlView:"parcoords-control-view",yAxis:"y-axis",axisOverlays:"axis-overlays",axis:"axis",axisHeading:"axis-heading",axisTitle:"axis-title",axisExtent:"axis-extent",axisExtentTop:"axis-extent-top",axisExtentTopText:"axis-extent-top-text",axisExtentBottom:"axis-extent-bottom",axisExtentBottomText:"axis-extent-bottom-text",axisBrush:"axis-brush"},pCe={filterBarPattern:"filter-bar-pattern"}});var Zp=B((BIe,zee)=>{"use strict";var mCe=eg();function Nee(e){return[e]}zee.exports={keyFun:function(e){return e.key},repeat:Nee,descend:mCe,wrap:Nee,unwrap:function(e){return e[0]}}});var tM=B((IIe,Zee)=>{"use strict";var zn=(Wp(),vr(Xp)),Kl=ia(),yCe=Zp().keyFun,sx=Zp().repeat,pd=nr().sorterAsc,gCe=nr().strTranslate,Bee=zn.bar.snapRatio;function Iee(e,r){return e*(1-Bee)+r*Bee}var Oee=zn.bar.snapClose;function bCe(e,r){return e*(1-Oee)+r*Oee}function fx(e,r,t,a){if(xCe(t,a))return t;var n=e?-1:1,i=0,o=r.length-1;if(n<0){var l=i;i=o,o=l}for(var s=r[i],u=s,f=i;n*f=r[t][0]&&e<=r[t][1])return!0;return!1}function _Ce(e){e.attr("x",-zn.bar.captureWidth/2).attr("width",zn.bar.captureWidth)}function wCe(e){e.attr("visibility","visible").style("visibility","visible").attr("fill","yellow").attr("opacity",0)}function ACe(e){if(!e.brush.filterSpecified)return"0,"+e.height;for(var r=Hee(e.brush.filter.getConsolidated(),e.height),t=[0],a,n,i,o=r.length?r[0][0]:null,l=0;le[1]+t||r=.9*e[1]+.1*e[0]?"n":r<=.9*e[0]+.1*e[1]?"s":"ns"}function Uee(){Kl.select(document.body).style("cursor",null)}function rM(e){e.attr("stroke-dasharray",ACe)}function ux(e,r){var t=Kl.select(e).selectAll(".highlight, .highlight-shadow"),a=r?t.transition().duration(zn.bar.snapDuration).each("end",r):t;rM(a)}function Gee(e,r){var t=e.brush,a=t.filterSpecified,n=NaN,i={},o;if(a){var l=e.height,s=t.filter.getConsolidated(),u=Hee(s,l),f=NaN,c=NaN,v=NaN;for(o=0;o<=u.length;o++){var d=u[o];if(d&&d[0]<=r&&r<=d[1]){f=o;break}else if(c=o?o-1:NaN,d&&d[0]>r){v=o;break}}if(n=f,isNaN(n)&&(isNaN(c)||isNaN(v)?n=isNaN(c)?v:c:n=r-u[c][1]=T[0]&&b<=T[1]){i.clickableOrdinalRange=T;break}}}return i}function MCe(e,r){Kl.event.sourceEvent.stopPropagation();var t=r.height-Kl.mouse(e)[1]-2*zn.verticalPadding,a=r.unitToPaddedPx.invert(t),n=r.brush,i=Gee(r,t),o=i.interval,l=n.svgBrush;if(l.wasDragged=!1,l.grabbingBar=i.region==="ns",l.grabbingBar){var s=o.map(r.unitToPaddedPx);l.grabPoint=t-s[0]-zn.verticalPadding,l.barLength=s[1]-s[0]}l.clickableOrdinalRange=i.clickableOrdinalRange,l.stayingIntervals=r.multiselect&&n.filterSpecified?n.filter.getConsolidated():[],o&&(l.stayingIntervals=l.stayingIntervals.filter(function(u){return u[0]!==o[0]&&u[1]!==o[1]})),l.startExtent=i.region?o[i.region==="s"?1:0]:a,r.parent.inBrushDrag=!0,l.brushStartCallback()}function Yee(e,r){Kl.event.sourceEvent.stopPropagation();var t=r.height-Kl.mouse(e)[1]-2*zn.verticalPadding,a=r.brush.svgBrush;a.wasDragged=!0,a._dragging=!0,a.grabbingBar?a.newExtent=[t-a.grabPoint,t+a.barLength-a.grabPoint].map(r.unitToPaddedPx.invert):a.newExtent=[a.startExtent,r.unitToPaddedPx.invert(t)].sort(pd),r.brush.filterSpecified=!0,a.extent=a.stayingIntervals.concat([a.newExtent]),a.brushCallback(r),ux(e.parentNode)}function kCe(e,r){var t=r.brush,a=t.filter,n=t.svgBrush;n._dragging||(Vee(e,r),Yee(e,r),r.brush.svgBrush.wasDragged=!1),n._dragging=!1;var i=Kl.event;i.sourceEvent.stopPropagation();var o=n.grabbingBar;if(n.grabbingBar=!1,n.grabLocation=void 0,r.parent.inBrushDrag=!1,Uee(),!n.wasDragged){n.wasDragged=void 0,n.clickableOrdinalRange?t.filterSpecified&&r.multiselect?n.extent.push(n.clickableOrdinalRange):(n.extent=[n.clickableOrdinalRange],t.filterSpecified=!0):o?(n.extent=n.stayingIntervals,n.extent.length===0&&eM(t)):eM(t),n.brushCallback(r),ux(e.parentNode),n.brushEndCallback(t.filterSpecified?a.getConsolidated():[]);return}var l=function(){a.set(a.getConsolidated())};if(r.ordinal){var s=r.unitTickvals;s[s.length-1]n.newExtent[0];n.extent=n.stayingIntervals.concat(u?[n.newExtent]:[]),n.extent.length||eM(t),n.brushCallback(r),u?ux(e.parentNode,l):(l(),ux(e.parentNode))}else l();n.brushEndCallback(t.filterSpecified?a.getConsolidated():[])}function Vee(e,r){var t=r.height-Kl.mouse(e)[1]-2*zn.verticalPadding,a=Gee(r,t),n="crosshair";a.clickableOrdinalRange?n="pointer":a.region&&(n=a.region+"-resize"),Kl.select(document.body).style("cursor",n)}function SCe(e){e.on("mousemove",function(r){Kl.event.preventDefault(),r.parent.inBrushDrag||Vee(this,r)}).on("mouseleave",function(r){r.parent.inBrushDrag||Uee()}).call(Kl.behavior.drag().on("dragstart",function(r){MCe(this,r)}).on("drag",function(r){Yee(this,r)}).on("dragend",function(r){kCe(this,r)}))}function Xee(e,r){return e[0]-r[0]}function CCe(e,r,t){var a=t._context.staticPlot,n=e.selectAll(".background").data(sx);n.enter().append("rect").classed("background",!0).call(_Ce).call(wCe).style("pointer-events",a?"none":"auto").attr("transform",gCe(0,zn.verticalPadding)),n.call(SCe).attr("height",function(l){return l.height-zn.verticalPadding});var i=e.selectAll(".highlight-shadow").data(sx);i.enter().append("line").classed("highlight-shadow",!0).attr("x",-zn.bar.width/2).attr("stroke-width",zn.bar.width+zn.bar.strokeWidth).attr("stroke",r).attr("opacity",zn.bar.strokeOpacity).attr("stroke-linecap","butt"),i.attr("y1",function(l){return l.height}).call(rM);var o=e.selectAll(".highlight").data(sx);o.enter().append("line").classed("highlight",!0).attr("x",-zn.bar.width/2).attr("stroke-width",zn.bar.width-zn.bar.strokeWidth).attr("stroke",zn.bar.fillColor).attr("opacity",zn.bar.fillOpacity).attr("stroke-linecap","butt"),o.attr("y1",function(l){return l.height}).call(rM)}function DCe(e,r,t){var a=e.selectAll("."+zn.cn.axisBrush).data(sx,yCe);a.enter().append("g").classed(zn.cn.axisBrush,!0),CCe(a,r,t)}function LCe(e){return e.svgBrush.extent.map(function(r){return r.slice()})}function eM(e){e.filterSpecified=!1,e.svgBrush.extent=[[-1/0,1/0]]}function ECe(e){return function(t){var a=t.brush,n=LCe(a),i=n.slice();a.filter.set(i),e()}}function Wee(e){for(var r=e.slice(),t=[],a,n=r.shift();n;){for(a=n.slice();(n=r.shift())&&n[0]<=a[1];)a[1]=Math.max(a[1],n[1]);t.push(a)}return t.length===1&&t[0][0]>t[0][1]&&(t=[]),t}function qCe(){var e=[],r,t;return{set:function(a){e=a.map(function(n){return n.slice().sort(pd)}).sort(Xee),e.length===1&&e[0][0]===-1/0&&e[0][1]===1/0&&(e=[[0,-1]]),r=Wee(e),t=e.reduce(function(n,i){return[Math.min(n[0],i[0]),Math.max(n[1],i[1])]},[1/0,-1/0])},get:function(){return e.slice()},getConsolidated:function(){return r},getBounds:function(){return t}}}function FCe(e,r,t,a,n,i){var o=qCe();return o.set(t),{filter:o,filterSpecified:r,svgBrush:{extent:[],brushStartCallback:a,brushCallback:ECe(n),brushEndCallback:i}}}function RCe(e,r){if(Array.isArray(e[0])?(e=e.map(function(a){return a.sort(pd)}),r.multiselect?e=Wee(e.sort(Xee)):e=[e[0]]):e=[e.sort(pd)],r.tickvals){var t=r.tickvals.slice().sort(pd);if(e=e.map(function(a){var n=[fx(0,t,a[0],[]),fx(1,t,a[1],[])];if(n[1]>n[0])return n}).filter(function(a){return a}),!e.length)return}return e.length>1?e:e[0]}Zee.exports={makeBrush:FCe,ensureAxisBrush:DCe,cleanRanges:RCe}});var $ee=B((OIe,jee)=>{"use strict";var Kf=nr(),PCe=Nl().hasColorscale,NCe=eh(),zCe=lb().defaults,BCe=Po(),ICe=Qa(),Jee=QT(),OCe=tM(),aM=(Wp(),vr(Xp)).maxDimensionCount,HCe=GT();function UCe(e,r,t,a,n){var i=n("line.color",t);if(PCe(e,"line")&&Kf.isArrayOrTypedArray(i)){if(i.length)return n("line.colorscale"),NCe(e,r,a,n,{prefix:"line.",cLetter:"c"}),i.length;r.line.color=t}return 1/0}function GCe(e,r,t,a){function n(u,f){return Kf.coerce(e,r,Jee.dimensions,u,f)}var i=n("values"),o=n("visible");if(i&&i.length||(o=r.visible=!1),o){n("label"),n("tickvals"),n("ticktext"),n("tickformat");var l=n("range");r._ax={_id:"y",type:"linear",showexponent:"all",exponentformat:"B",range:l},ICe.setConvert(r._ax,a.layout),n("multiselect");var s=n("constraintrange");s&&(r.constraintrange=OCe.cleanRanges(s,r))}}jee.exports=function(r,t,a,n){function i(f,c){return Kf.coerce(r,t,Jee,f,c)}var o=r.dimensions;Array.isArray(o)&&o.length>aM&&(Kf.log("parcoords traces support up to "+aM+" dimensions at the moment"),o.splice(aM));var l=BCe(r,t,{name:"dimensions",layout:n,handleItemDefaults:GCe}),s=UCe(r,t,a,n,i);zCe(t,n,i),(!Array.isArray(l)||!l.length)&&(t.visible=!1),HCe(t,l,"values",s);var u=Kf.extendFlat({},n.font,{size:Math.round(n.font.size/1.2)});Kf.coerceFont(i,"labelfont",u),Kf.coerceFont(i,"tickfont",u,{autoShadowDflt:!0}),Kf.coerceFont(i,"rangefont",u),i("labelangle"),i("labelside"),i("unselected.line.color"),i("unselected.line.opacity")}});var Qee=B((HIe,Kee)=>{"use strict";var YCe=nr().isArrayOrTypedArray,nM=th(),VCe=Zp().wrap;Kee.exports=function(r,t){var a,n;return nM.hasColorscale(t,"line")&&YCe(t.line.color)?(a=t.line.color,n=nM.extractOpts(t.line).colorscale,nM.calc(r,t,{vals:a,containerStr:"line",cLetter:"c"})):(a=XCe(t._length),n=[[0,t.line.color],[1,t.line.color]]),VCe({lineColor:a,cscale:n})};function XCe(e){for(var r=new Array(e),t=0;t{"use strict";var WCe=nr().isTypedArray;cx.convertTypedArray=function(e){return WCe(e)?Array.prototype.slice.call(e):e};cx.isOrdinal=function(e){return!!e.tickvals};cx.isVisible=function(e){return e.visible||!("visible"in e)}});var ure=B((GIe,sre)=>{"use strict";var ZCe=["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(` -`),JCe=["precision highp float;","","varying vec4 fragColor;","","void main() {"," gl_FragColor = fragColor;","}"].join(` -`),Jp=(Wp(),vr(Xp)).maxDimensionCount,ire=nr(),ere=1e-6,vx=2048,jCe=new Uint8Array(4),rre=new Uint8Array(4),tre={shape:[256,1],format:"rgba",type:"uint8",mag:"nearest",min:"nearest"};function $Ce(e){e.read({x:0,y:0,width:1,height:1,data:jCe})}function ore(e,r,t,a,n){var i=e._gl;i.enable(i.SCISSOR_TEST),i.scissor(r,t,a,n),e.clear({color:[0,0,0,0],depth:1})}function KCe(e,r,t,a,n,i){var o=i.key;function l(s){var u=Math.min(a,n-s*a);s===0&&(window.cancelAnimationFrame(t.currentRafs[o]),delete t.currentRafs[o],ore(e,i.scissorX,i.scissorY,i.scissorWidth,i.viewBoxSize[1])),!t.clearOnly&&(i.count=2*u,i.offset=2*s*a,r(i),s*a+u>>8*r)%256/255}function rDe(e,r,t){for(var a=new Array(e*(Jp+4)),n=0,i=0;iV&&(V=C[q].dim1.canvasX,I=q);P===0&&ore(n,0,0,u.canvasWidth,u.canvasHeight);var J=_(t);for(q=0;q{"use strict";var bi=ia(),Cu=nr(),lM=Cu.isArrayOrTypedArray,pre=Cu.numberFormat,mre=Kt(),yre=Qa(),oDe=Cu.strRotate,Ns=Cu.strTranslate,lDe=Mi(),hx=Ca(),fre=th(),fM=Zp(),bl=fM.keyFun,zs=fM.repeat,gre=fM.unwrap,md=iM(),sa=(Wp(),vr(Xp)),bre=tM(),sDe=ure();function cre(e,r,t){return Cu.aggNums(e,null,r,t)}function xre(e,r){return cM(cre(Math.min,e,r),cre(Math.max,e,r))}function dx(e){var r=e.range;return r?cM(r[0],r[1]):xre(e.values,e._length)}function cM(e,r){return(isNaN(e)||!isFinite(e))&&(e=0),(isNaN(r)||!isFinite(r))&&(r=0),e===r&&(e===0?(e-=1,r+=1):(e*=.9,r*=1.1)),[e,r]}function uDe(e,r){return r?function(t,a){var n=r[a];return n==null?e(t):n}:e}function fDe(e,r,t,a,n){var i=dx(t);return a?bi.scale.ordinal().domain(a.map(uDe(pre(t.tickformat),n))).range(a.map(function(o){var l=(o-i[0])/(i[1]-i[0]);return e-r+l*(2*r-e)})):bi.scale.linear().domain(i).range([e-r,r])}function cDe(e,r){return bi.scale.linear().range([r,e-r])}function vDe(e,r){return bi.scale.linear().domain(dx(e)).range([r,1-r])}function hDe(e){if(e.tickvals){var r=dx(e);return bi.scale.ordinal().domain(e.tickvals).range(e.tickvals.map(function(t){return(t-r[0])/(r[1]-r[0])}))}}function dDe(e){var r=e.map(function(i){return i[0]}),t=e.map(function(i){let[o,l,s]=mre.rgbaArray(i[1]);return bi.rgb(o,l,s)}),a=function(i){return function(o){return o[i]}},n="rgb".split("").map(function(i){return bi.scale.linear().clamp(!0).domain(r).range(t.map(a(i)))});return function(i){return n.map(function(o){return o(i)})}}function uM(e){return e.dimensions.some(function(r){return r.brush.filterSpecified})}function pDe(e,r,t){var a=gre(r),n=a.trace,i=md.convertTypedArray(a.lineColor),o=n.line,l={color:mre.normalize(n.unselected.line.color),opacity:n.unselected.line.opacity},s=fre.extractOpts(o),u=s.reversescale?fre.flipScale(a.cscale):a.cscale,f=n.domain,c=n.dimensions,v=e.width,d=n.labelangle,p=n.labelside,y=n.labelfont,m=n.tickfont,b=n.rangefont,T=Cu.extendDeepNoArrays({},o,{color:i.map(bi.scale.linear().domain(dx({values:i,range:[s.min,s.max],_length:n._length}))),blockLineCount:sa.blockLineCount,canvasOverdrag:sa.overdrag*sa.canvasPixelRatio}),_=Math.floor(v*(f.x[1]-f.x[0])),x=Math.floor(e.height*(f.y[1]-f.y[0])),w=e.margin||{l:80,r:80,t:100,b:80},k=_,M=x;return{key:t,colCount:c.filter(md.isVisible).length,dimensions:c,tickDistance:sa.tickDistance,unitToColor:dDe(u),lines:T,deselectedLines:l,labelAngle:d,labelSide:p,labelFont:y,tickFont:m,rangeFont:b,layoutWidth:v,layoutHeight:e.height,domain:f,translateX:f.x[0]*v,translateY:e.height-f.y[1]*e.height,pad:w,canvasWidth:k*sa.canvasPixelRatio+2*T.canvasOverdrag,canvasHeight:M*sa.canvasPixelRatio,width:k,height:M,canvasPixelRatio:sa.canvasPixelRatio}}function mDe(e,r,t){var a=t.width,n=t.height,i=t.dimensions,o=t.canvasPixelRatio,l=function(v){return a*v/Math.max(1,t.colCount-1)},s=sa.verticalPadding/n,u=cDe(n,sa.verticalPadding),f={key:t.key,xScale:l,model:t,inBrushDrag:!1},c={};return f.dimensions=i.filter(md.isVisible).map(function(v,d){var p=vDe(v,s),y=c[v.label];c[v.label]=(y||0)+1;var m=v.label+(y?"__"+y:""),b=v.constraintrange,T=b&&b.length;T&&!lM(b[0])&&(b=[b]);var _=T?b.map(function(z){return z.map(p)}):[[-1/0,1/0]],x=function(){var z=f;z.focusLayer&&z.focusLayer.render(z.panels,!0);var I=uM(z);!e.contextShown()&&I?(z.contextLayer&&z.contextLayer.render(z.panels,!0),e.contextShown(!0)):e.contextShown()&&!I&&(z.contextLayer&&z.contextLayer.render(z.panels,!0,!0),e.contextShown(!1))},w=v.values;w.length>v._length&&(w=w.slice(0,v._length));var k=v.tickvals,M;function C(z,I){return{val:z,text:M[I]}}function E(z,I){return z.val-I.val}if(lM(k)&&k.length){Cu.isTypedArray(k)&&(k=Array.from(k)),M=v.ticktext,!lM(M)||!M.length?M=k.map(pre(v.tickformat)):M.length>k.length?M=M.slice(0,k.length):k.length>M.length&&(k=k.slice(0,M.length));for(var F=1;F=I||U>=Y)return;var G=q.lineLayer.readPixel(J,Y-1-U),W=G[3]!==0,j=W?G[2]+256*(G[1]+256*G[0]):null,ae={x:J,y:U,clientX:z.clientX,clientY:z.clientY,dataIndex:q.model.key,curveNumber:j};j!==p&&(W?n.hover(ae):n.unhover&&n.unhover(ae),p=j)}}),d.style("opacity",function(q){return q.pick?0:1}),l.style("background","rgba(255, 255, 255, 0)");var m=l.selectAll("."+sa.cn.parcoords).data(v,bl);m.exit().remove(),m.enter().append("g").classed(sa.cn.parcoords,!0).style("shape-rendering","crispEdges").style("pointer-events","none"),m.attr("transform",function(q){return Ns(q.model.translateX,q.model.translateY)});var b=m.selectAll("."+sa.cn.parcoordsControlView).data(zs,bl);b.enter().append("g").classed(sa.cn.parcoordsControlView,!0),b.attr("transform",function(q){return Ns(q.model.pad.l,q.model.pad.t)});var T=b.selectAll("."+sa.cn.yAxis).data(function(q){return q.dimensions},bl);T.enter().append("g").classed(sa.cn.yAxis,!0),b.each(function(q){sM(T,q,u)}),d.each(function(q){if(q.viewModel){!q.lineLayer||n?q.lineLayer=sDe(this,q):q.lineLayer.update(q),(q.key||q.key===0)&&(q.viewModel[q.key]=q.lineLayer);var z=!q.context||n;q.lineLayer.render(q.viewModel.panels,z)}}),T.attr("transform",function(q){return Ns(q.xScale(q.xIndex),0)}),T.call(bi.behavior.drag().origin(function(q){return q}).on("drag",function(q){var z=q.parent;c.linePickActive(!1),q.x=Math.max(-sa.overdrag,Math.min(q.model.width+sa.overdrag,bi.event.x)),q.canvasX=q.x*q.model.canvasPixelRatio,T.sort(function(I,Y){return I.x-Y.x}).each(function(I,Y){I.xIndex=Y,I.x=q===I?I.x:I.xScale(I.xIndex),I.canvasX=I.x*I.model.canvasPixelRatio}),sM(T,z,u),T.filter(function(I){return Math.abs(q.xIndex-I.xIndex)!==0}).attr("transform",function(I){return Ns(I.xScale(I.xIndex),0)}),bi.select(this).attr("transform",Ns(q.x,0)),T.each(function(I,Y,V){V===q.parent.key&&(z.dimensions[Y]=I)}),z.contextLayer&&z.contextLayer.render(z.panels,!1,!uM(z)),z.focusLayer.render&&z.focusLayer.render(z.panels)}).on("dragend",function(q){var z=q.parent;q.x=q.xScale(q.xIndex),q.canvasX=q.x*q.model.canvasPixelRatio,sM(T,z,u),bi.select(this).attr("transform",function(I){return Ns(I.x,0)}),z.contextLayer&&z.contextLayer.render(z.panels,!1,!uM(z)),z.focusLayer&&z.focusLayer.render(z.panels),z.pickLayer&&z.pickLayer.render(z.panels,!0),c.linePickActive(!0),n&&n.axesMoved&&n.axesMoved(z.key,z.dimensions.map(function(I){return I.crossfilterDimensionIndex}))})),T.exit().remove();var _=T.selectAll("."+sa.cn.axisOverlays).data(zs,bl);_.enter().append("g").classed(sa.cn.axisOverlays,!0),_.selectAll("."+sa.cn.axis).remove();var x=_.selectAll("."+sa.cn.axis).data(zs,bl);x.enter().append("g").classed(sa.cn.axis,!0),x.each(function(q){var z=q.model.height/q.model.tickDistance,I=q.domainScale,Y=I.domain();bi.select(this).call(bi.svg.axis().orient("left").tickSize(4).outerTickSize(2).ticks(z,q.tickFormat).tickValues(q.ordinal?Y:null).tickFormat(function(V){return md.isOrdinal(q)?V:_re(q.model.dimensions[q.visibleIndex],V)}).scale(I)),hx.font(x.selectAll("text"),q.model.tickFont)}),x.selectAll(".domain, .tick>line").attr("fill","none").attr("stroke","black").attr("stroke-opacity",.25).attr("stroke-width","1px"),x.selectAll("text").style("cursor","default");var w=_.selectAll("."+sa.cn.axisHeading).data(zs,bl);w.enter().append("g").classed(sa.cn.axisHeading,!0);var k=w.selectAll("."+sa.cn.axisTitle).data(zs,bl);k.enter().append("text").classed(sa.cn.axisTitle,!0).attr("text-anchor","middle").style("cursor","ew-resize").style("pointer-events",i?"none":"auto"),k.text(function(q){return q.label}).each(function(q){var z=bi.select(this);hx.font(z,q.model.labelFont),lDe.convertToTspans(z,r)}).attr("transform",function(q){var z=hre(q.model.labelAngle,q.model.labelSide),I=sa.axisTitleOffset;return(z.dir>0?"":Ns(0,2*I+q.model.height))+oDe(z.degrees)+Ns(-I*z.dx,-I*z.dy)}).attr("text-anchor",function(q){var z=hre(q.model.labelAngle,q.model.labelSide),I=Math.abs(z.dx),Y=Math.abs(z.dy);return 2*I>Y?z.dir*z.dx<0?"start":"end":"middle"});var M=_.selectAll("."+sa.cn.axisExtent).data(zs,bl);M.enter().append("g").classed(sa.cn.axisExtent,!0);var C=M.selectAll("."+sa.cn.axisExtentTop).data(zs,bl);C.enter().append("g").classed(sa.cn.axisExtentTop,!0),C.attr("transform",Ns(0,-sa.axisExtentOffset));var E=C.selectAll("."+sa.cn.axisExtentTopText).data(zs,bl);E.enter().append("text").classed(sa.cn.axisExtentTopText,!0).call(vre),E.text(function(q){return dre(q,!0)}).each(function(q){hx.font(bi.select(this),q.model.rangeFont)});var F=M.selectAll("."+sa.cn.axisExtentBottom).data(zs,bl);F.enter().append("g").classed(sa.cn.axisExtentBottom,!0),F.attr("transform",function(q){return Ns(0,q.model.height+sa.axisExtentOffset)});var P=F.selectAll("."+sa.cn.axisExtentBottomText).data(zs,bl);P.enter().append("text").classed(sa.cn.axisExtentBottomText,!0).attr("dy","0.75em").call(vre),P.text(function(q){return dre(q,!1)}).each(function(q){hx.font(bi.select(this),q.model.rangeFont)}),bre.ensureAxisBrush(_,f,r)}});var hM=B((vM,Sre)=>{"use strict";var bDe=Are(),xDe=Qb(),Tre=iM().isVisible,kre={};function Mre(e,r,t){var a=r.indexOf(t),n=e.indexOf(a);return n===-1&&(n+=r.length),n}function _De(e,r){return function(a,n){return Mre(e,r,a)-Mre(e,r,n)}}var vM=Sre.exports=function(r,t){var a=r._fullLayout,n=xDe(r,[],kre);if(n){var i={},o={},l={},s=a._size;t.forEach(function(d,p){var y=d[0].trace,m=l[p]=y.index;i[p]=r.data[m].dimensions,o[p]=r.data[m].dimensions.slice()});var u=function(d,p,y){var m=o[d][p],b=y.map(function(M){return M.slice()}),T="dimensions["+p+"].constraintrange",_=a._tracePreGUI[r._fullData[l[d]].uid];if(_[T]===void 0){var x=m.constraintrange;_[T]=x||null}var w=r._fullData[l[d]].dimensions[p];b.length?(b.length===1&&(b=b[0]),m.constraintrange=b,w.constraintrange=b.slice(),b=[b]):(delete m.constraintrange,delete w.constraintrange,b=null);var k={};k[T]=b,r.emit("plotly_restyle",[k,[l[d]]])},f=function(d){r.emit("plotly_hover",d)},c=function(d){r.emit("plotly_unhover",d)},v=function(d,p){var y=_De(p,o[d].filter(Tre));i[d].sort(y),o[d].filter(function(m){return!Tre(m)}).sort(function(m){return o[d].indexOf(m)}).forEach(function(m){i[d].splice(i[d].indexOf(m),1),i[d].splice(o[d].indexOf(m),0,m)}),r.emit("plotly_restyle",[{dimensions:[i[d]]},[l[d]]])};bDe(r,t,{width:s.w,height:s.h,margin:{t:s.t,r:s.r,b:s.b,l:s.l}},{filterChanged:u,hover:f,unhover:c,axesMoved:v})}};vM.reglPrecompiled=kre});var Dre=B(jp=>{"use strict";var Cre=ia(),wDe=J2().getModuleCalcData,ADe=hM(),TDe=(pf(),vr(df));jp.name="parcoords";jp.plot=function(e){var r=wDe(e.calcdata,"parcoords")[0];r.length&&ADe(e,r)};jp.clean=function(e,r,t,a){var n=a._has&&a._has("parcoords"),i=r._has&&r._has("parcoords");n&&!i&&(a._paperdiv.selectAll(".parcoords").remove(),a._glimages.selectAll("*").remove())};jp.toSVG=function(e){var r=e._fullLayout._glimages,t=Cre.select(e).selectAll(".svg-container"),a=t.filter(function(i,o){return o===t.size()-1}).selectAll(".gl-canvas-context, .gl-canvas-focus");function n(){var i=this,o=i.toDataURL("image/png"),l=r.append("svg:image");l.attr({xmlns:TDe.svg,"xlink:href":o,preserveAspectRatio:"none",x:0,y:0,width:i.style.width,height:i.style.height})}a.each(n),window.setTimeout(function(){Cre.selectAll("#filterBarPattern").attr("id","filterBarPattern")},60)}});var Ere=B((XIe,Lre)=>{"use strict";Lre.exports={attributes:QT(),supplyDefaults:$ee(),calc:Qee(),colorbar:{container:"line",min:"cmin",max:"cmax"},moduleType:"trace",name:"parcoords",basePlotModule:Dre(),categories:["gl","regl","noOpacity","noHover"],meta:{}}});var Rre=B((WIe,Fre)=>{"use strict";var qre=Ere();qre.plot=hM();Fre.exports=qre});var Nre=B((ZIe,Pre)=>{"use strict";Pre.exports=Rre()});var Oi=B((JIe,Bre)=>{var mx=ci();function zre(){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={}}mx(zre.prototype,{instance:function(e,r){e=(e||"gregorian").toLowerCase(),r=r||"";var t=this._localCals[e+"-"+r];if(!t&&this.calendars[e]&&(t=new this.calendars[e](r),this._localCals[e+"-"+r]=t),!t)throw(this.local.invalidCalendar||this.regionalOptions[""].invalidCalendar).replace(/\{0\}/,e);return t},newDate:function(e,r,t,a,n){return a=(e!=null&&e.year?e.calendar():typeof a=="string"?this.instance(a,n):a)||this.instance(),a.newDate(e,r,t)},substituteDigits:function(e){return function(r){return(r+"").replace(/[0-9]/g,function(t){return e[t]})}},substituteChineseDigits:function(e,r){return function(t){for(var a="",n=0;t>0;){var i=t%10;a=(i===0?"":e[i]+r[n])+a,n++,t=Math.floor(t/10)}return a.indexOf(e[1]+r[1])===0&&(a=a.substr(1)),a||e[0]}}});function dM(e,r,t,a){if(this._calendar=e,this._year=r,this._month=t,this._day=a,this._calendar._validateLevel===0&&!this._calendar.isValid(this._year,this._month,this._day))throw(Qt.local.invalidDate||Qt.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name)}function px(e,r){return e=""+e,"000000".substring(0,r-e.length)+e}mx(dM.prototype,{newDate:function(e,r,t){return this._calendar.newDate(e==null?this:e,r,t)},year:function(e){return arguments.length===0?this._year:this.set(e,"y")},month:function(e){return arguments.length===0?this._month:this.set(e,"m")},day:function(e){return arguments.length===0?this._day:this.set(e,"d")},date:function(e,r,t){if(!this._calendar.isValid(e,r,t))throw(Qt.local.invalidDate||Qt.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name);return this._year=e,this._month=r,this._day=t,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(e,r){return this._calendar.add(this,e,r)},set:function(e,r){return this._calendar.set(this,e,r)},compareTo:function(e){if(this._calendar.name!==e._calendar.name)throw(Qt.local.differentCalendars||Qt.regionalOptions[""].differentCalendars).replace(/\{0\}/,this._calendar.local.name).replace(/\{1\}/,e._calendar.local.name);var r=this._year!==e._year?this._year-e._year:this._month!==e._month?this.monthOfYear()-e.monthOfYear():this._day-e._day;return r===0?0:r<0?-1:1},calendar:function(){return this._calendar},toJD:function(){return this._calendar.toJD(this)},fromJD:function(e){return this._calendar.fromJD(e)},toJSDate:function(){return this._calendar.toJSDate(this)},fromJSDate:function(e){return this._calendar.fromJSDate(e)},toString:function(){return(this.year()<0?"-":"")+px(Math.abs(this.year()),4)+"-"+px(this.month(),2)+"-"+px(this.day(),2)}});function pM(){this.shortYearCutoff="+10"}mx(pM.prototype,{_validateLevel:0,newDate:function(e,r,t){return e==null?this.today():(e.year&&(this._validate(e,r,t,Qt.local.invalidDate||Qt.regionalOptions[""].invalidDate),t=e.day(),r=e.month(),e=e.year()),new dM(this,e,r,t))},today:function(){return this.fromJSDate(new Date)},epoch:function(e){var r=this._validate(e,this.minMonth,this.minDay,Qt.local.invalidYear||Qt.regionalOptions[""].invalidYear);return r.year()<0?this.local.epochs[0]:this.local.epochs[1]},formatYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Qt.local.invalidYear||Qt.regionalOptions[""].invalidYear);return(r.year()<0?"-":"")+px(Math.abs(r.year()),4)},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Qt.local.invalidYear||Qt.regionalOptions[""].invalidYear),12},monthOfYear:function(e,r){var t=this._validate(e,r,this.minDay,Qt.local.invalidMonth||Qt.regionalOptions[""].invalidMonth);return(t.month()+this.monthsInYear(t)-this.firstMonth)%this.monthsInYear(t)+this.minMonth},fromMonthOfYear:function(e,r){var t=(r+this.firstMonth-2*this.minMonth)%this.monthsInYear(e)+this.minMonth;return this._validate(e,t,this.minDay,Qt.local.invalidMonth||Qt.regionalOptions[""].invalidMonth),t},daysInYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Qt.local.invalidYear||Qt.regionalOptions[""].invalidYear);return this.leapYear(r)?366:365},dayOfYear:function(e,r,t){var a=this._validate(e,r,t,Qt.local.invalidDate||Qt.regionalOptions[""].invalidDate);return a.toJD()-this.newDate(a.year(),this.fromMonthOfYear(a.year(),this.minMonth),this.minDay).toJD()+1},daysInWeek:function(){return 7},dayOfWeek:function(e,r,t){var a=this._validate(e,r,t,Qt.local.invalidDate||Qt.regionalOptions[""].invalidDate);return(Math.floor(this.toJD(a))+2)%this.daysInWeek()},extraInfo:function(e,r,t){return this._validate(e,r,t,Qt.local.invalidDate||Qt.regionalOptions[""].invalidDate),{}},add:function(e,r,t){return this._validate(e,this.minMonth,this.minDay,Qt.local.invalidDate||Qt.regionalOptions[""].invalidDate),this._correctAdd(e,this._add(e,r,t),r,t)},_add:function(e,r,t){if(this._validateLevel++,t==="d"||t==="w"){var a=e.toJD()+r*(t==="w"?this.daysInWeek():1),n=e.calendar().fromJD(a);return this._validateLevel--,[n.year(),n.month(),n.day()]}try{var i=e.year()+(t==="y"?r:0),o=e.monthOfYear()+(t==="m"?r:0),n=e.day(),l=function(f){for(;oc-1+f.minMonth;)i++,o-=c,c=f.monthsInYear(i)};t==="y"?(e.month()!==this.fromMonthOfYear(i,o)&&(o=this.newDate(i,e.month(),this.minDay).monthOfYear()),o=Math.min(o,this.monthsInYear(i)),n=Math.min(n,this.daysInMonth(i,this.fromMonthOfYear(i,o)))):t==="m"&&(l(this),n=Math.min(n,this.daysInMonth(i,this.fromMonthOfYear(i,o))));var s=[i,this.fromMonthOfYear(i,o),n];return this._validateLevel--,s}catch(u){throw this._validateLevel--,u}},_correctAdd:function(e,r,t,a){if(!this.hasYearZero&&(a==="y"||a==="m")&&(r[0]===0||e.year()>0!=r[0]>0)){var n={y:[1,1,"y"],m:[1,this.monthsInYear(-1),"m"],w:[this.daysInWeek(),this.daysInYear(-1),"d"],d:[1,this.daysInYear(-1),"d"]}[a],i=t<0?-1:1;r=this._add(e,t*n[0]+i*n[1],n[2])}return e.date(r[0],r[1],r[2])},set:function(e,r,t){this._validate(e,this.minMonth,this.minDay,Qt.local.invalidDate||Qt.regionalOptions[""].invalidDate);var a=t==="y"?r:e.year(),n=t==="m"?r:e.month(),i=t==="d"?r:e.day();return(t==="y"||t==="m")&&(i=Math.min(i,this.daysInMonth(a,n))),e.date(a,n,i)},isValid:function(e,r,t){this._validateLevel++;var a=this.hasYearZero||e!==0;if(a){var n=this.newDate(e,r,this.minDay);a=r>=this.minMonth&&r-this.minMonth=this.minDay&&t-this.minDay13.5?13:1),u=n-(s>2.5?4716:4715);return u<=0&&u--,this.newDate(u,s,l)},toJSDate:function(e,r,t){var a=this._validate(e,r,t,Qt.local.invalidDate||Qt.regionalOptions[""].invalidDate),n=new Date(a.year(),a.month()-1,a.day());return n.setHours(0),n.setMinutes(0),n.setSeconds(0),n.setMilliseconds(0),n.setHours(n.getHours()>12?n.getHours()+2:0),n},fromJSDate:function(e){return this.newDate(e.getFullYear(),e.getMonth()+1,e.getDate())}});var Qt=Bre.exports=new zre;Qt.cdate=dM;Qt.baseCalendar=pM;Qt.calendars.gregorian=mM});var Ire=B(()=>{var yM=ci(),xi=Oi();yM(xi.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"});xi.local=xi.regionalOptions[""];yM(xi.cdate.prototype,{formatDate:function(e,r){return typeof e!="string"&&(r=e,e=""),this._calendar.formatDate(e||"",this,r)}});yM(xi.baseCalendar.prototype,{UNIX_EPOCH:xi.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:1440*60,TICKS_EPOCH:xi.instance().jdEpoch,TICKS_PER_DAY:1440*60*1e7,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(e,r,t){if(typeof e!="string"&&(t=r,r=e,e=""),!r)return"";if(r.calendar()!==this)throw xi.local.invalidFormat||xi.regionalOptions[""].invalidFormat;e=e||this.local.dateFormat,t=t||{};for(var a=t.dayNamesShort||this.local.dayNamesShort,n=t.dayNames||this.local.dayNames,i=t.monthNumbers||this.local.monthNumbers,o=t.monthNamesShort||this.local.monthNamesShort,l=t.monthNames||this.local.monthNames,s=t.calculateWeek||this.local.calculateWeek,u=function(x,w){for(var k=1;_+k1},f=function(x,w,k,M){var C=""+w;if(u(x,M))for(;C.length1},T=function(q,z){var I=b(q,z),Y=[2,3,I?4:2,I?4:2,10,11,20]["oyYJ@!".indexOf(q)+1],V=new RegExp("^-?\\d{1,"+Y+"}"),J=r.substring(C).match(V);if(!J)throw(xi.local.missingNumberAt||xi.regionalOptions[""].missingNumberAt).replace(/\{0\}/,C);return C+=J[0].length,parseInt(J[0],10)},_=this,x=function(){if(typeof l=="function"){b("m");var q=l.call(_,r.substring(C));return C+=q.length,q}return T("m")},w=function(q,z,I,Y){for(var V=b(q,Y)?I:z,J=0;J-1){v=1,d=p;for(var P=this.daysInMonth(c,v);d>P;P=this.daysInMonth(c,v))v++,d-=P}return f>-1?this.fromJD(f):this.newDate(c,v,d)},determineDate:function(e,r,t,a,n){t&&typeof t!="object"&&(n=a,a=t,t=null),typeof a!="string"&&(n=a,a="");var i=this,o=function(l){try{return i.parseDate(a,l,n)}catch(c){}l=l.toLowerCase();for(var s=(l.match(/^c/)&&t?t.newDate():null)||i.today(),u=/([+-]?[0-9]+)\s*(d|w|m|y)?/g,f=u.exec(l);f;)s.add(parseInt(f[1],10),f[2]||"d"),f=u.exec(l);return s};return r=r?r.newDate():null,e=e==null?r:typeof e=="string"?o(e):typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?r:i.today().add(e,"d"):i.newDate(e),e}})});var Ore=B(()=>{var Qf=Oi(),MDe=ci(),gM=Qf.instance();function yx(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}yx.prototype=new Qf.baseCalendar;MDe(yx.prototype,{name:"Chinese",jdEpoch:17214255e-1,hasYearZero:!1,minMonth:0,firstMonth:0,minDay:1,regionalOptions:{"":{name:"Chinese",epochs:["BEC","EC"],monthNumbers:function(e,r){if(typeof e=="string"){var t=e.match(SDe);return t?t[0]:""}var a=this._validateYear(e),n=e.month(),i=""+this.toChineseMonth(a,n);return r&&i.length<2&&(i="0"+i),this.isIntercalaryMonth(a,n)&&(i+="i"),i},monthNames:function(e){if(typeof e=="string"){var r=e.match(CDe);return r?r[0]:""}var t=this._validateYear(e),a=e.month(),n=this.toChineseMonth(t,a),i=["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"][n-1];return this.isIntercalaryMonth(t,a)&&(i="\u95F0"+i),i},monthNamesShort:function(e){if(typeof e=="string"){var r=e.match(DDe);return r?r[0]:""}var t=this._validateYear(e),a=e.month(),n=this.toChineseMonth(t,a),i=["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"][n-1];return this.isIntercalaryMonth(t,a)&&(i="\u95F0"+i),i},parseMonth:function(e,r){e=this._validateYear(e);var t=parseInt(r),a;if(isNaN(t))r[0]==="\u95F0"&&(a=!0,r=r.substring(1)),r[r.length-1]==="\u6708"&&(r=r.substring(0,r.length-1)),t=1+["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"].indexOf(r);else{var n=r[r.length-1];a=n==="i"||n==="I"}var i=this.toMonthIndex(e,t,a);return i},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(e,r){if(e.year&&(e=e.year()),typeof e!="number"||e<1888||e>2111)throw r.replace(/\{0\}/,this.local.name);return e},toMonthIndex:function(e,r,t){var a=this.intercalaryMonth(e),n=t&&r!==a;if(n||r<1||r>12)throw Qf.local.invalidMonth.replace(/\{0\}/,this.local.name);var i;return a?!t&&r<=a?i=r-1:i=r:i=r-1,i},toChineseMonth:function(e,r){e.year&&(e=e.year(),r=e.month());var t=this.intercalaryMonth(e),a=t?12:11;if(r<0||r>a)throw Qf.local.invalidMonth.replace(/\{0\}/,this.local.name);var n;return t?r>13;return t},isIntercalaryMonth:function(e,r){e.year&&(e=e.year(),r=e.month());var t=this.intercalaryMonth(e);return!!t&&t===r},leapYear:function(e){return this.intercalaryMonth(e)!==0},weekOfYear:function(e,r,t){var a=this._validateYear(e,Qf.local.invalidyear),n=r0[a-r0[0]],i=n>>9&4095,o=n>>5&15,l=n&31,s;s=gM.newDate(i,o,l),s.add(4-(s.dayOfWeek()||7),"d");var u=this.toJD(e,r,t)-s.toJD();return 1+Math.floor(u/7)},monthsInYear:function(e){return this.leapYear(e)?13:12},daysInMonth:function(e,r){e.year&&(r=e.month(),e=e.year()),e=this._validateYear(e);var t=e0[e-e0[0]],a=t>>13,n=a?12:11;if(r>n)throw Qf.local.invalidMonth.replace(/\{0\}/,this.local.name);var i=t&1<<12-r?30:29;return i},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var a=this._validate(e,i,t,Qf.local.invalidDate);e=this._validateYear(a.year()),r=a.month(),t=a.day();var n=this.isIntercalaryMonth(e,r),i=this.toChineseMonth(e,r),o=EDe(e,i,t,n);return gM.toJD(o.year,o.month,o.day)},fromJD:function(e){var r=gM.fromJD(e),t=LDe(r.year(),r.month(),r.day()),a=this.toMonthIndex(t.year,t.month,t.isIntercalary);return this.newDate(t.year,a,t.day)},fromString:function(e){var r=e.match(kDe),t=this._validateYear(+r[1]),a=+r[2],n=!!r[3],i=this.toMonthIndex(t,a,n),o=+r[4];return this.newDate(t,i,o)},add:function(e,r,t){var a=e.year(),n=e.month(),i=this.isIntercalaryMonth(a,n),o=this.toChineseMonth(a,n),l=Object.getPrototypeOf(yx.prototype).add.call(this,e,r,t);if(t==="y"){var s=l.year(),u=l.month(),f=this.isIntercalaryMonth(s,o),c=i&&f?this.toMonthIndex(s,o,!0):this.toMonthIndex(s,o,!1);c!==u&&l.month(c)}return l}});var kDe=/^\s*(-?\d\d\d\d|\d\d)[-/](\d?\d)([iI]?)[-/](\d?\d)/m,SDe=/^\d?\d[iI]?/m,CDe=/^闰?十?[一二三四五六七八九]?月/m,DDe=/^闰?十?[一二三四五六七八九]?/m;Qf.calendars.chinese=yx;var e0=[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],r0=[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 LDe(e,r,t,a){var n,i;if(typeof e=="object")n=e,i=r||{};else{var o=typeof e=="number"&&e>=1888&&e<=2111;if(!o)throw new Error("Solar year outside range 1888-2111");var l=typeof r=="number"&&r>=1&&r<=12;if(!l)throw new Error("Solar month outside range 1 - 12");var s=typeof t=="number"&&t>=1&&t<=31;if(!s)throw new Error("Solar day outside range 1 - 31");n={year:e,month:r,day:t},i=a||{}}var u=r0[n.year-r0[0]],f=n.year<<9|n.month<<5|n.day;i.year=f>=u?n.year:n.year-1,u=r0[i.year-r0[0]];var c=u>>9&4095,v=u>>5&15,d=u&31,p,y=new Date(c,v-1,d),m=new Date(n.year,n.month-1,n.day);p=Math.round((m-y)/(24*3600*1e3));var b=e0[i.year-e0[0]],T;for(T=0;T<13;T++){var _=b&1<<12-T?30:29;if(p<_)break;p-=_}var x=b>>13;return!x||T=1888&&e<=2111;if(!l)throw new Error("Lunar year outside range 1888-2111");var s=typeof r=="number"&&r>=1&&r<=12;if(!s)throw new Error("Lunar month outside range 1 - 12");var u=typeof t=="number"&&t>=1&&t<=30;if(!u)throw new Error("Lunar day outside range 1 - 30");var f;typeof a=="object"?(f=!1,i=a):(f=!!a,i=n||{}),o={year:e,month:r,day:t,isIntercalary:f}}var c;c=o.day-1;var v=e0[o.year-e0[0]],d=v>>13,p;d&&(o.month>d||o.isIntercalary)?p=o.month:p=o.month-1;for(var y=0;y>9&4095,_=b>>5&15,x=b&31,w=new Date(T,_-1,x+c);return i.year=w.getFullYear(),i.month=1+w.getMonth(),i.day=w.getDate(),i}});var Hre=B(()=>{var Pc=Oi(),qDe=ci();function bM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}bM.prototype=new Pc.baseCalendar;qDe(bM.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(t){var r=this._validate(t,this.minMonth,this.minDay,Pc.local.invalidYear),t=r.year()+(r.year()<0?1:0);return t%4===3||t%4===-1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Pc.local.invalidYear||Pc.regionalOptions[""].invalidYear),13},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Pc.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===13&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var a=this._validate(e,r,t,Pc.local.invalidDate);return e=a.year(),e<0&&e++,a.day()+(a.month()-1)*30+(e-1)*365+Math.floor(e/4)+this.jdEpoch-1},fromJD:function(e){var r=Math.floor(e)+.5-this.jdEpoch,t=Math.floor((r-Math.floor((r+366)/1461))/365)+1;t<=0&&t--,r=Math.floor(e)+.5-this.newDate(t,1,1).toJD();var a=Math.floor(r/30)+1,n=r-(a-1)*30+1;return this.newDate(t,a,n)}});Pc.calendars.coptic=bM});var Ure=B(()=>{var Du=Oi(),FDe=ci();function xM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}xM.prototype=new Du.baseCalendar;FDe(xM.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(e){return this._validate(e,this.minMonth,this.minDay,Du.local.invalidYear),!1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Du.local.invalidYear),13},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Du.local.invalidYear),400},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/8)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Du.local.invalidMonth);return this.daysPerMonth[t.month()-1]},daysInWeek:function(){return 8},dayOfWeek:function(e,r,t){var a=this._validate(e,r,t,Du.local.invalidDate);return(a.day()+1)%8},weekDay:function(e,r,t){var a=this.dayOfWeek(e,r,t);return a>=2&&a<=6},extraInfo:function(e,r,t){var a=this._validate(e,r,t,Du.local.invalidDate);return{century:RDe[Math.floor((a.year()-1)/100)+1]||""}},toJD:function(e,r,t){var a=this._validate(e,r,t,Du.local.invalidDate);return e=a.year()+(a.year()<0?1:0),r=a.month(),t=a.day(),t+(r>1?16:0)+(r>2?(r-2)*32:0)+(e-1)*400+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e+.5)-Math.floor(this.jdEpoch)-1;var r=Math.floor(e/400)+1;e-=(r-1)*400,e+=e>15?16:0;var t=Math.floor(e/32)+1,a=e-(t-1)*32+1;return this.newDate(r<=0?r-1:r,t,a)}});var RDe={20:"Fruitbat",21:"Anchovy"};Du.calendars.discworld=xM});var Gre=B(()=>{var Nc=Oi(),PDe=ci();function _M(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}_M.prototype=new Nc.baseCalendar;PDe(_M.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(t){var r=this._validate(t,this.minMonth,this.minDay,Nc.local.invalidYear),t=r.year()+(r.year()<0?1:0);return t%4===3||t%4===-1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Nc.local.invalidYear||Nc.regionalOptions[""].invalidYear),13},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Nc.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===13&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var a=this._validate(e,r,t,Nc.local.invalidDate);return e=a.year(),e<0&&e++,a.day()+(a.month()-1)*30+(e-1)*365+Math.floor(e/4)+this.jdEpoch-1},fromJD:function(e){var r=Math.floor(e)+.5-this.jdEpoch,t=Math.floor((r-Math.floor((r+366)/1461))/365)+1;t<=0&&t--,r=Math.floor(e)+.5-this.newDate(t,1,1).toJD();var a=Math.floor(r/30)+1,n=r-(a-1)*30+1;return this.newDate(t,a,n)}});Nc.calendars.ethiopian=_M});var Yre=B(()=>{var t0=Oi(),NDe=ci();function wM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}wM.prototype=new t0.baseCalendar;NDe(wM.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(e){var r=this._validate(e,this.minMonth,this.minDay,t0.local.invalidYear);return this._leapYear(r.year())},_leapYear:function(e){return e=e<0?e+1:e,gx(e*7+1,19)<7},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,t0.local.invalidYear),this._leapYear(e.year?e.year():e)?13:12},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,t0.local.invalidYear);return e=r.year(),this.toJD(e===-1?1:e+1,7,1)-this.toJD(e,7,1)},daysInMonth:function(e,r){return e.year&&(r=e.month(),e=e.year()),this._validate(e,r,this.minDay,t0.local.invalidMonth),r===12&&this.leapYear(e)||r===8&&gx(this.daysInYear(e),10)===5?30:r===9&&gx(this.daysInYear(e),10)===3?29:this.daysPerMonth[r-1]},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==6},extraInfo:function(e,r,t){var a=this._validate(e,r,t,t0.local.invalidDate);return{yearType:(this.leapYear(a)?"embolismic":"common")+" "+["deficient","regular","complete"][this.daysInYear(a)%10-3]}},toJD:function(e,r,t){var a=this._validate(e,r,t,t0.local.invalidDate);e=a.year(),r=a.month(),t=a.day();var n=e<=0?e+1:e,i=this.jdEpoch+this._delay1(n)+this._delay2(n)+t+1;if(r<7){for(var o=7;o<=this.monthsInYear(e);o++)i+=this.daysInMonth(e,o);for(var o=1;o=this.toJD(r===-1?1:r+1,7,1);)r++;for(var t=ethis.toJD(r,t,this.daysInMonth(r,t));)t++;var a=e-this.toJD(r,t,1)+1;return this.newDate(r,t,a)}});function gx(e,r){return e-r*Math.floor(e/r)}t0.calendars.hebrew=wM});var Vre=B(()=>{var $p=Oi(),zDe=ci();function AM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}AM.prototype=new $p.baseCalendar;zDe(AM.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\u012Bs","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(e){var r=this._validate(e,this.minMonth,this.minDay,$p.local.invalidYear);return(r.year()*11+14)%30<11},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInYear:function(e){return this.leapYear(e)?355:354},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,$p.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===12&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==5},toJD:function(e,r,t){var a=this._validate(e,r,t,$p.local.invalidDate);return e=a.year(),r=a.month(),t=a.day(),e=e<=0?e+1:e,t+Math.ceil(29.5*(r-1))+(e-1)*354+Math.floor((3+11*e)/30)+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e)+.5;var r=Math.floor((30*(e-this.jdEpoch)+10646)/10631);r=r<=0?r-1:r;var t=Math.min(12,Math.ceil((e-29-this.toJD(r,1,1))/29.5)+1),a=e-this.toJD(r,t,1)+1;return this.newDate(r,t,a)}});$p.calendars.islamic=AM});var Xre=B(()=>{var Kp=Oi(),BDe=ci();function TM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}TM.prototype=new Kp.baseCalendar;BDe(TM.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(t){var r=this._validate(t,this.minMonth,this.minDay,Kp.local.invalidYear),t=r.year()<0?r.year()+1:r.year();return t%4===0},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(4-(a.dayOfWeek()||7),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Kp.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===2&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var a=this._validate(e,r,t,Kp.local.invalidDate);return e=a.year(),r=a.month(),t=a.day(),e<0&&e++,r<=2&&(e--,r+=12),Math.floor(365.25*(e+4716))+Math.floor(30.6001*(r+1))+t-1524.5},fromJD:function(e){var r=Math.floor(e+.5),t=r+1524,a=Math.floor((t-122.1)/365.25),n=Math.floor(365.25*a),i=Math.floor((t-n)/30.6001),o=i-Math.floor(i<14?1:13),l=a-Math.floor(o>2?4716:4715),s=t-n-Math.floor(30.6001*i);return l<=0&&l--,this.newDate(l,o,s)}});Kp.calendars.julian=TM});var Zre=B(()=>{var xl=Oi(),IDe=ci();function kM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}kM.prototype=new xl.baseCalendar;IDe(kM.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(e){return this._validate(e,this.minMonth,this.minDay,xl.local.invalidYear),!1},formatYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,xl.local.invalidYear);e=r.year();var t=Math.floor(e/400);e=e%400,e+=e<0?400:0;var a=Math.floor(e/20);return t+"."+a+"."+e%20},forYear:function(e){if(e=e.split("."),e.length<3)throw"Invalid Mayan year";for(var r=0,t=0;t19||t>0&&a<0)throw"Invalid Mayan year";r=r*20+a}return r},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,xl.local.invalidYear),18},weekOfYear:function(e,r,t){return this._validate(e,r,t,xl.local.invalidDate),0},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,xl.local.invalidYear),360},daysInMonth:function(e,r){return this._validate(e,r,this.minDay,xl.local.invalidMonth),20},daysInWeek:function(){return 5},dayOfWeek:function(e,r,t){var a=this._validate(e,r,t,xl.local.invalidDate);return a.day()},weekDay:function(e,r,t){return this._validate(e,r,t,xl.local.invalidDate),!0},extraInfo:function(e,r,t){var a=this._validate(e,r,t,xl.local.invalidDate),n=a.toJD(),i=this._toHaab(n),o=this._toTzolkin(n);return{haabMonthName:this.local.haabMonths[i[0]-1],haabMonth:i[0],haabDay:i[1],tzolkinDayName:this.local.tzolkinMonths[o[0]-1],tzolkinDay:o[0],tzolkinTrecena:o[1]}},_toHaab:function(e){e-=this.jdEpoch;var r=MM(e+8+340,365);return[Math.floor(r/20)+1,MM(r,20)]},_toTzolkin:function(e){return e-=this.jdEpoch,[Wre(e+20,20),Wre(e+4,13)]},toJD:function(e,r,t){var a=this._validate(e,r,t,xl.local.invalidDate);return a.day()+a.month()*20+a.year()*360+this.jdEpoch},fromJD:function(e){e=Math.floor(e)+.5-this.jdEpoch;var r=Math.floor(e/360);e=e%360,e+=e<0?360:0;var t=Math.floor(e/20),a=e%20;return this.newDate(r,t,a)}});function MM(e,r){return e-r*Math.floor(e/r)}function Wre(e,r){return MM(e-1,r)+1}xl.calendars.mayan=kM});var jre=B(()=>{var zc=Oi(),ODe=ci();function SM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}SM.prototype=new zc.baseCalendar;var Jre=zc.instance("gregorian");ODe(SM.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(e){var r=this._validate(e,this.minMonth,this.minDay,zc.local.invalidYear||zc.regionalOptions[""].invalidYear);return Jre.leapYear(r.year()+(r.year()<1?1:0)+1469)},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(1-(a.dayOfWeek()||7),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,zc.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===12&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(n,r,t){var a=this._validate(n,r,t,zc.local.invalidMonth),n=a.year();n<0&&n++;for(var i=a.day(),o=1;o=this.toJD(r+1,1,1);)r++;for(var t=e-Math.floor(this.toJD(r,1,1)+.5)+1,a=1;t>this.daysInMonth(r,a);)t-=this.daysInMonth(r,a),a++;return this.newDate(r,a,t)}});zc.calendars.nanakshahi=SM});var $re=B(()=>{var Bc=Oi(),HDe=ci();function CM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}CM.prototype=new Bc.baseCalendar;HDe(CM.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(e){return this.daysInYear(e)!==this.daysPerYear},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Bc.local.invalidYear);if(e=r.year(),typeof this.NEPALI_CALENDAR_DATA[e]=="undefined")return this.daysPerYear;for(var t=0,a=this.minMonth;a<=12;a++)t+=this.NEPALI_CALENDAR_DATA[e][a];return t},daysInMonth:function(e,r){return e.year&&(r=e.month(),e=e.year()),this._validate(e,r,this.minDay,Bc.local.invalidMonth),typeof this.NEPALI_CALENDAR_DATA[e]=="undefined"?this.daysPerMonth[r-1]:this.NEPALI_CALENDAR_DATA[e][r]},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==6},toJD:function(e,r,t){var a=this._validate(e,r,t,Bc.local.invalidDate);e=a.year(),r=a.month(),t=a.day();var n=Bc.instance(),i=0,o=r,l=e;this._createMissingCalendarData(e);var s=e-(o>9||o===9&&t>=this.NEPALI_CALENDAR_DATA[l][0]?56:57);for(r!==9&&(i=t,o--);o!==9;)o<=0&&(o=12,l--),i+=this.NEPALI_CALENDAR_DATA[l][o],o--;return r===9?(i+=t-this.NEPALI_CALENDAR_DATA[l][0],i<0&&(i+=n.daysInYear(s))):i+=this.NEPALI_CALENDAR_DATA[l][9]-this.NEPALI_CALENDAR_DATA[l][0],n.newDate(s,1,1).add(i,"d").toJD()},fromJD:function(e){var r=Bc.instance(),t=r.fromJD(e),a=t.year(),n=t.dayOfYear(),i=a+56;this._createMissingCalendarData(i);for(var o=9,l=this.NEPALI_CALENDAR_DATA[i][0],s=this.NEPALI_CALENDAR_DATA[i][o]-l+1;n>s;)o++,o>12&&(o=1,i++),s+=this.NEPALI_CALENDAR_DATA[i][o];var u=this.NEPALI_CALENDAR_DATA[i][o]-(s-n);return this.newDate(i,o,u)},_createMissingCalendarData:function(e){var r=this.daysPerMonth.slice(0);r.unshift(17);for(var t=e-1;t{var yd=Oi(),UDe=ci();function xx(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}function bx(e){var r=e-475;e<0&&r++;var t=.242197,a=t*r,n=t*(r+1),i=a-Math.floor(a),o=n-Math.floor(n);return i>o}xx.prototype=new yd.baseCalendar;UDe(xx.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","Dey","Bahman","Esfand"],monthNamesShort:["Far","Ord","Kho","Tir","Mor","Sha","Meh","Aba","Aza","Dey","Bah","Esf"],dayNames:["Yekshanbeh","Doshanbeh","Seshanbeh","Chah\u0101rshanbeh","Panjshanbeh","Jom'eh","Shanbeh"],dayNamesShort:["Yek","Do","Se","Cha","Panj","Jom","Sha"],dayNamesMin:["Ye","Do","Se","Ch","Pa","Jo","Sh"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,yd.local.invalidYear);return bx(r.year())},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-((a.dayOfWeek()+1)%7),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,yd.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===12&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==5},toJD:function(e,r,t){var a=this._validate(e,r,t,yd.local.invalidDate);e=a.year(),r=a.month(),t=a.day();var n=0;if(e>0)for(var i=1;i0?e-1:e)*365+n+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e)+.5;var r=475+(e-this.toJD(475,1,1))/365.242197,t=Math.floor(r);t<=0&&t--,e>this.toJD(t,12,bx(t)?30:29)&&(t++,t===0&&t++);var a=e-this.toJD(t,1,1)+1,n=a<=186?Math.ceil(a/31):Math.ceil((a-6)/30),i=e-this.toJD(t,n,1)+1;return this.newDate(t,n,i)}});yd.calendars.persian=xx;yd.calendars.jalali=xx});var Qre=B(()=>{var Ic=Oi(),GDe=ci(),_x=Ic.instance();function DM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}DM.prototype=new Ic.baseCalendar;GDe(DM.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(t){var r=this._validate(t,this.minMonth,this.minDay,Ic.local.invalidYear),t=this._t2gYear(r.year());return _x.leapYear(t)},weekOfYear:function(n,r,t){var a=this._validate(n,this.minMonth,this.minDay,Ic.local.invalidYear),n=this._t2gYear(a.year());return _x.weekOfYear(n,a.month(),a.day())},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Ic.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===2&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(n,r,t){var a=this._validate(n,r,t,Ic.local.invalidDate),n=this._t2gYear(a.year());return _x.toJD(n,a.month(),a.day())},fromJD:function(e){var r=_x.fromJD(e),t=this._g2tYear(r.year());return this.newDate(t,r.month(),r.day())},_t2gYear:function(e){return e+this.yearsOffset+(e>=-this.yearsOffset&&e<=-1?1:0)},_g2tYear:function(e){return e-this.yearsOffset-(e>=1&&e<=this.yearsOffset?1:0)}});Ic.calendars.taiwan=DM});var ete=B(()=>{var Oc=Oi(),YDe=ci(),wx=Oc.instance();function LM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}LM.prototype=new Oc.baseCalendar;YDe(LM.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(t){var r=this._validate(t,this.minMonth,this.minDay,Oc.local.invalidYear),t=this._t2gYear(r.year());return wx.leapYear(t)},weekOfYear:function(n,r,t){var a=this._validate(n,this.minMonth,this.minDay,Oc.local.invalidYear),n=this._t2gYear(a.year());return wx.weekOfYear(n,a.month(),a.day())},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Oc.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===2&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(n,r,t){var a=this._validate(n,r,t,Oc.local.invalidDate),n=this._t2gYear(a.year());return wx.toJD(n,a.month(),a.day())},fromJD:function(e){var r=wx.fromJD(e),t=this._g2tYear(r.year());return this.newDate(t,r.month(),r.day())},_t2gYear:function(e){return e-this.yearsOffset-(e>=1&&e<=this.yearsOffset?1:0)},_g2tYear:function(e){return e+this.yearsOffset+(e>=-this.yearsOffset&&e<=-1?1:0)}});Oc.calendars.thai=LM});var rte=B(()=>{var Hc=Oi(),VDe=ci();function EM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}EM.prototype=new Hc.baseCalendar;VDe(EM.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\u0101th\u0101\u2019","Yawm al-Arba\u2018\u0101\u2019","Yawm al-Kham\u012Bs","Yawm al-Jum\u2018a","Yawm al-Sabt"],dayNamesMin:["Ah","Ith","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!0}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Hc.local.invalidYear);return this.daysInYear(r.year())===355},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInYear:function(e){for(var r=0,t=1;t<=12;t++)r+=this.daysInMonth(e,t);return r},daysInMonth:function(e,r){for(var t=this._validate(e,r,this.minDay,Hc.local.invalidMonth),a=t.toJD()-24e5+.5,n=0,i=0;ia)return a0[n]-a0[n-1];n++}return 30},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==5},toJD:function(e,r,t){var a=this._validate(e,r,t,Hc.local.invalidDate),n=12*(a.year()-1)+a.month()-15292,i=a.day()+a0[n-1]-1;return i+24e5-.5},fromJD:function(e){for(var r=e-24e5+.5,t=0,a=0;ar);a++)t++;var n=t+15292,i=Math.floor((n-1)/12),o=i+1,l=n-12*i,s=r-a0[t-1]+1;return this.newDate(o,l,s)},isValid:function(e,r,t){var a=Hc.baseCalendar.prototype.isValid.apply(this,arguments);return a&&(e=e.year!=null?e.year:e,a=e>=1276&&e<=1500),a},_validate:function(e,r,t,a){var n=Hc.baseCalendar.prototype._validate.apply(this,arguments);if(n.year<1276||n.year>1500)throw a.replace(/\{0\}/,this.local.name);return n}});Hc.calendars.ummalqura=EM;var a0=[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]});var ate=B((kOe,tte)=>{"use strict";tte.exports=Oi();Ire();Ore();Hre();Ure();Gre();Yre();Vre();Xre();Zre();jre();$re();Kre();Qre();ete();rte()});var fte=B((SOe,ute)=>{"use strict";var ite=ate(),Qp=nr(),ote=(In(),vr(Wn)),XDe=ote.EPOCHJD,WDe=ote.ONEDAY,RM={valType:"enumerated",values:Qp.sortObjectKeys(ite.calendars),editType:"calc",dflt:"gregorian"},lte=function(e,r,t,a){var n={};return n[t]=RM,Qp.coerce(e,r,n,t,a)},ZDe=function(e,r,t,a){for(var n=0;n{"use strict";cte.exports=fte()});var eLe=B((DOe,dte)=>{var hte=PX();hte.register([RQ(),Ree(),Nre(),vte()]);dte.exports=hte});return eLe();})(); + }`}),a={};return{regl:r,draw:t,atlas:a}};Na.prototype.update=function(r){var t=this;if(typeof r=="string")r={text:r};else if(!r)return;r=Vke(r,{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),r.opacity!=null&&(Array.isArray(r.opacity)?this.opacity=r.opacity.map(function(fe){return parseFloat(fe)}):this.opacity=parseFloat(r.opacity)),r.viewport!=null&&(this.viewport=jke(r.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]),r.kerning!=null&&(this.kerning=r.kerning),r.offset!=null&&(typeof r.offset=="number"&&(r.offset=[r.offset,0]),this.positionOffset=aSe(r.offset)),r.direction&&(this.direction=r.direction),r.range&&(this.range=r.range,this.scale=[1/(r.range[2]-r.range[0]),1/(r.range[3]-r.range[1])],this.translate=[-r.range[0],-r.range[1]]),r.scale&&(this.scale=r.scale),r.translate&&(this.translate=r.translate),this.scale||(this.scale=[1/this.viewport.width,1/this.viewport.height]),this.translate||(this.translate=[0,0]),!this.font.length&&!r.font&&(r.font=Na.baseFontSize+"px sans-serif");var a=!1,n=!1;if(r.font&&(Array.isArray(r.font)?r.font:[r.font]).forEach(function(fe,he){if(typeof fe=="string")try{fe=sd.parse(fe)}catch(Ue){fe=sd.parse(Na.baseFontSize+"px "+fe)}else{var ae=fe.style,Le=fe.weight,ce=fe.stretch,Fe=fe.variant;fe=sd.parse(sd.stringify(fe)),ae&&(fe.style=ae),Le&&(fe.weight=Le),ce&&(fe.stretch=ce),Fe&&(fe.variant=Fe)}var Re=sd.stringify({size:Na.baseFontSize,family:fe.family,stretch:ax?fe.stretch:void 0,variant:fe.variant,weight:fe.weight,style:fe.style}),ge=Kke(fe.size),He=Math.round(ge[0]*Qke(ge[1]));if(He!==t.fontSize[he]&&(n=!0,t.fontSize[he]=He),(!t.font[he]||Re!=t.font[he].baseString)&&(a=!0,t.font[he]=Na.fonts[Re],!t.font[he])){var ur=fe.family.join(", "),qe=[fe.style];fe.style!=fe.variant&&qe.push(fe.variant),fe.variant!=fe.weight&&qe.push(fe.weight),ax&&fe.weight!=fe.stretch&&qe.push(fe.stretch),t.font[he]={baseString:Re,family:ur,weight:fe.weight,stretch:fe.stretch,style:fe.style,variant:fe.variant,width:{},kerning:{},metrics:tSe(ur,{origin:"top",fontSize:Na.baseFontSize,fontStyle:qe.join(" ")})},Na.fonts[Re]=t.font[he]}}),(a||n)&&this.font.forEach(function(fe,he){var ae=sd.stringify({size:t.fontSize[he],family:fe.family,stretch:ax?fe.stretch:void 0,variant:fe.variant,weight:fe.weight,style:fe.style});if(t.fontAtlas[he]=t.shader.atlas[ae],!t.fontAtlas[he]){var Le=fe.metrics;t.shader.atlas[ae]=t.fontAtlas[he]={fontString:ae,step:Math.ceil(t.fontSize[he]*Le.bottom*.5)*2,em:t.fontSize[he],cols:0,rows:0,height:0,width:0,chars:[],ids:{},texture:t.regl.texture()}}r.text==null&&(r.text=t.text)}),typeof r.text=="string"&&r.position&&r.position.length>2){for(var i=Array(r.position.length*.5),o=0;o2){for(var u=!r.position[0].length,f=Qf.mallocFloat(this.count*2),c=0,v=0;c1?t.align[he]:t.align[0]:t.align;if(typeof ae=="number")return ae;switch(ae){case"right":case"end":return-fe;case"center":case"centre":case"middle":return-fe*.5}return 0})),this.baseline==null&&r.baseline==null&&(r.baseline=0),r.baseline!=null&&(this.baseline=r.baseline,Array.isArray(this.baseline)||(this.baseline=[this.baseline]),this.baselineOffset=this.baseline.map(function(fe,he){var ae=(t.font[he]||t.font[0]).metrics,Le=0;return Le+=ae.bottom*.5,typeof fe=="number"?Le+=fe-ae.baseline:Le+=-ae[fe],Le*=-1,Le})),r.color!=null)if(r.color||(r.color="transparent"),typeof r.color=="string"||!isNaN(r.color))this.color=ZT(r.color,"uint8");else{var U;if(typeof r.color[0]=="number"&&r.color.length>this.counts.length){var V=r.color.length;U=Qf.mallocUint8(V);for(var W=(r.color.subarray||r.color.slice).bind(r.color),G=0;G4||this.baselineOffset.length>1||this.align&&this.align.length>1||this.fontAtlas.length>1||this.positionOffset.length>2;if(j){var ee=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(ee);for(var ye=0;ye1?this.counts[ye]:this.counts[0],offset:this.textOffsets.length>1?this.textOffsets[ye]:this.textOffsets[0],color:this.color?this.color.length<=4?this.color:this.color.subarray(ye*4,ye*4+4):[0,0,0,255],opacity:Array.isArray(this.opacity)?this.opacity[ye]:this.opacity,baseline:this.baselineOffset[ye]!=null?this.baselineOffset[ye]:this.baselineOffset[0],align:this.align?this.alignOffset[ye]!=null?this.alignOffset[ye]:this.alignOffset[0]:0,atlas:this.fontAtlas[ye]||this.fontAtlas[0],positionOffset:this.positionOffset.length>2?this.positionOffset.subarray(ye*2,ye*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=[]}};Na.prototype.destroy=function(){};Na.prototype.kerning=!0;Na.prototype.position={constant:new Float32Array(2)};Na.prototype.translate=null;Na.prototype.scale=null;Na.prototype.font=null;Na.prototype.text="";Na.prototype.positionOffset=[0,0];Na.prototype.opacity=1;Na.prototype.color=new Uint8Array([0,0,0,255]);Na.prototype.alignOffset=[0,0];Na.maxAtlasSize=1024;Na.atlasCanvas=document.createElement("canvas");Na.atlasContext=Na.atlasCanvas.getContext("2d",{alpha:!1});Na.baseFontSize=64;Na.fonts={};function iSe(e){return typeof e=="function"&&e._gl&&e.prop&&e.texture&&e.buffer}AQ.exports=Na});var SQ=B((SIe,kQ)=>{"use strict";var MQ=Kt(),oSe=function(){};kQ.exports=function(r){for(var t in r)typeof r[t]=="function"&&(r[t]=oSe);r.destroy=function(){r.container.parentNode.removeChild(r.container)};var a=document.createElement("div");a.className="no-webgl",a.style.cursor="pointer",a.style.fontSize="24px",a.style.color=MQ.defaults[0],a.style.position="absolute",a.style.left=a.style.top="0px",a.style.width=a.style.height="100%",a.style["background-color"]=MQ.lightLine,a.style["z-index"]=30;var n=document.createElement("p");return n.textContent="WebGL is not supported by your browser - visit https://get.webgl.org for more info",n.style.position="relative",n.style.top="50%",n.style.left="50%",n.style.height="30%",n.style.width="50%",n.style.margin="-15% 0 0 -25%",a.appendChild(n),r.container.appendChild(a),r.container.style.background="#FFFFFF",r.container.onclick=function(){window.open("https://get.webgl.org")},!1}});var nx=B((CIe,CQ)=>{"use strict";var lSe=SQ(),sSe=qT();CQ.exports=function(r,t,a){var n=r._fullLayout,i=!0;return n._glcanvas.each(function(o){if(o.regl){o.regl.preloadCachedCode(a);return}if(!(o.pick&&!n._has("parcoords"))){try{o.regl=sSe({canvas:this,attributes:{antialias:!o.pick,preserveDrawingBuffer:!0},pixelRatio:r._context.plotGlPixelRatio||window.devicePixelRatio,extensions:t||[],cachedCode:a||{}})}catch(l){i=!1}o.regl||(i=!1),i&&this.addEventListener("webglcontextlost",function(l){r&&r.emit&&r.emit("plotly_webglcontextlost",{event:l,layer:o.key})},!1)}}),i||lSe({container:n._glcontainer.node()}),i}});var PQ=B((JT,RQ)=>{"use strict";var DQ=OA(),LQ=gT(),uSe=J$(),EQ=TQ(),qQ=or(),{rgbaString:fSe}=Kt(),cSe=Lf().selectMode,vSe=nx(),hSe=Ti(),dSe=c9(),pSe=BA().styleTextSelection,FQ={};function mSe(e,r,t,a){var n=e._size,i=e.width*a,o=e.height*a,l=n.l*a,s=n.b*a,u=n.r*a,f=n.t*a,c=n.w*a,v=n.h*a;return[l+r.domain[0]*c,s+t.domain[0]*v,i-u-(1-r.domain[1])*c,o-f-(1-t.domain[1])*v]}var JT=RQ.exports=function(r,t,a){if(a.length){var n=r._fullLayout,i=t._scene,o=t.xaxis,l=t.yaxis,s,u;if(i){var f=vSe(r,["ANGLE_instanced_arrays","OES_element_index_uint"],FQ);if(!f){i.init();return}var c=i.count,v=n._glcanvas.data()[0].regl;if(dSe(r,t,a),i.dirty){if((i.line2d||i.error2d)&&!(i.scatter2d||i.fill2d||i.glText)&&v.clear({color:!0,depth:!0}),i.error2d===!0&&(i.error2d=uSe(v)),i.line2d===!0&&(i.line2d=LQ(v)),i.scatter2d===!0&&(i.scatter2d=DQ(v)),i.fill2d===!0&&(i.fill2d=LQ(v)),i.glText===!0)for(i.glText=new Array(c),s=0;si.glText.length){var d=c-i.glText.length;for(s=0;sZ&&(isNaN(Y[j])||isNaN(Y[j+1]));)j-=2;G.positions=Y.slice(Z,j+2)}return G}),i.line2d.update(i.lineOptions)),i.error2d){var y=(i.errorXOptions||[]).concat(i.errorYOptions||[]).map(function(G){return G||{positions:[],errors:[]}});i.error2d.update(y)}i.scatter2d&&i.scatter2d.update(i.markerOptions),i.fillOrder=qQ.repeat(null,c),i.fill2d&&(i.fillOptions=i.fillOptions.map(function(G,Y){var Z=a[Y];if(!(!G||!Z||!Z[0]||!Z[0].trace)){var j=Z[0],ee=j.trace,ye=j.t,fe=i.lineOptions[Y],he,ae,Le=[];ee._ownfill&&Le.push(Y),ee._nexttrace&&Le.push(Y+1),Le.length&&(i.fillOrder[Y]=Le);var ce=[],Fe=fe&&fe.positions||ye.positions,Re,ge;if(ee.fill==="tozeroy"){for(Re=0;ReRe&&isNaN(Fe[ge+1]);)ge-=2;Fe[Re+1]!==0&&(ce=[Fe[Re],0]),ce=ce.concat(Fe.slice(Re,ge+2)),Fe[ge+1]!==0&&(ce=ce.concat([Fe[ge],0]))}else if(ee.fill==="tozerox"){for(Re=0;ReRe&&isNaN(Fe[ge]);)ge-=2;Fe[Re]!==0&&(ce=[0,Fe[Re+1]]),ce=ce.concat(Fe.slice(Re,ge+2)),Fe[ge]!==0&&(ce=ce.concat([0,Fe[ge+1]]))}else if(ee.fill==="toself"||ee.fill==="tonext"){for(ce=[],he=0,G.splitNull=!0,ae=0;ae-1;for(let[G]of a)if(G){var x=G.trace,w=G.t,k=w.index,M=x._length,C=w.x,E=w.y;if(x.selectedpoints||T||_){if(T||(T=!0),x.selectedpoints){var F=i.selectBatch[k]=x.selectedpoints,P={};for(u=0;u{"use strict";var NQ=MZ();NQ.plot=PQ();zQ.exports=NQ});var OQ=B((LIe,IQ)=>{"use strict";IQ.exports=BQ()});var jT=B((EIe,YQ)=>{"use strict";var ySe=Nf(),GQ=Q0(),HQ=$2().axisHoverFormat,{hovertemplateAttrs:gSe,templatefallbackAttrs:bSe}=Hv(),Gp=gb(),xSe=(ni(),vr(ai)).idRegex,_Se=Ra().templatedArray,ud=Fn().extendFlat,Eu=ySe.marker,wSe=Eu.line,ASe=ud(GQ("marker.line",{editTypeOverride:"calc"}),{width:ud({},wSe.width,{editType:"calc"}),editType:"calc"}),ix=ud(GQ("marker"),{symbol:Eu.symbol,angle:Eu.angle,size:ud({},Eu.size,{editType:"markerSize"}),sizeref:Eu.sizeref,sizemin:Eu.sizemin,sizemode:Eu.sizemode,opacity:Eu.opacity,colorbar:Eu.colorbar,line:ASe,editType:"calc"});ix.color.editType=ix.cmin.editType=ix.cmax.editType="style";function UQ(e){return{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"subplotid",regex:xSe[e],editType:"plot"}}}YQ.exports={dimensions:_Se("dimension",{visible:{valType:"boolean",dflt:!0,editType:"calc"},label:{valType:"string",editType:"calc"},values:{valType:"data_array",editType:"calc+clearAxisTypes"},axis:{type:{valType:"enumerated",values:["linear","log","date","category"],editType:"calc+clearAxisTypes"},matches:{valType:"boolean",dflt:!0,editType:"calc"},editType:"calc+clearAxisTypes"},editType:"calc+clearAxisTypes"}),text:ud({},Gp.text,{}),hovertext:ud({},Gp.hovertext,{}),hovertemplate:gSe(),hovertemplatefallback:bSe(),xhoverformat:HQ("x"),yhoverformat:HQ("y"),marker:ix,xaxes:UQ("x"),yaxes:UQ("y"),diagonal:{visible:{valType:"boolean",dflt:!0,editType:"calc"},editType:"calc"},showupperhalf:{valType:"boolean",dflt:!0,editType:"calc"},showlowerhalf:{valType:"boolean",dflt:!0,editType:"calc"},selected:{marker:Gp.selected.marker,editType:"calc"},unselected:{marker:Gp.unselected.marker,editType:"calc"},opacity:Gp.opacity}});var $T=B((qIe,VQ)=>{"use strict";VQ.exports=function(e,r,t,a){a||(a=1/0);var n,i;for(n=0;n{"use strict";var KT=or(),TSe=Oo(),XQ=jT(),MSe=Ti(),kSe=M5(),SSe=$T(),CSe=bb().isOpenSymbol;WQ.exports=function(r,t,a,n){function i(d,p){return KT.coerce(r,t,XQ,d,p)}var o=TSe(r,t,{name:"dimensions",handleItemDefaults:DSe}),l=i("diagonal.visible"),s=i("showupperhalf"),u=i("showlowerhalf"),f=SSe(t,o,"values");if(!f||!l&&!s&&!u){t.visible=!1;return}i("text"),i("hovertext"),i("hovertemplate"),i("hovertemplatefallback"),i("xhoverformat"),i("yhoverformat"),kSe(r,t,a,n,i,{noAngleRef:!0,noLineDash:!0,noStandOff:!0});var c=CSe(t.marker.symbol),v=MSe.isBubble(t);i("marker.line.width",c||v?1:0),LSe(r,t,n,i),KT.coerceSelectionMarkerOpacity(t,i)};function DSe(e,r){function t(n,i){return KT.coerce(e,r,XQ.dimensions,n,i)}t("label");var a=t("values");a&&a.length?t("visible"):r.visible=!1,t("axis.type"),t("axis.matches")}function LSe(e,r,t,a){var n=r.dimensions,i=n.length,o=r.showupperhalf,l=r.showlowerhalf,s=r.diagonal.visible,u,f,c=new Array(i),v=new Array(i);for(u=0;uf&&o||u{"use strict";var JQ=or();jQ.exports=function(r,t){var a=r._fullLayout,n=t.uid,i=a._splomScenes;i||(i=a._splomScenes={});var o={dirty:!0,selectBatch:[],unselectBatch:[]},l={matrix:!1,selectBatch:[],unselectBatch:[]},s=i[t.uid];return s||(s=i[n]=JQ.extendFlat({},o,l),s.draw=function(){s.matrix&&s.matrix.draw&&(s.selectBatch.length||s.unselectBatch.length?s.matrix.draw(s.unselectBatch,s.selectBatch):s.matrix.draw()),s.dirty=!1},s.destroy=function(){s.matrix&&s.matrix.destroy&&s.matrix.destroy(),s.matrixOptions=null,s.selectBatch=null,s.unselectBatch=null,s=null}),s.dirty||JQ.extendFlat(s,o),s}});var eee=B((PIe,QQ)=>{"use strict";var QT=or(),ox=hn(),ESe=Ch().calcMarkerSize,qSe=Ch().calcAxisExpansion,FSe=Q1(),KQ=Mp().markerSelection,RSe=Mp().markerStyle,PSe=$Q(),NSe=(Wn(),vr(ri)).BADNUM,zSe=(xp(),vr(bp)).TOO_MANY_POINTS;QQ.exports=function(r,t){var a=t.dimensions,n=t._length,i={},o=i.cdata=[],l=i.data=[],s=t._visibleDims=[],u,f,c,v,d;function p(_,x){for(var w=_.makeCalcdata({v:x.values,vcalendar:t.calendar},"v"),k=0;kzSe,b;for(y?b=i.sizeAvg||Math.max(i.size,3):b=ESe(t,n),f=0;f{(function(){var e,r,t,a,n,i;typeof performance!="undefined"&&performance!==null&&performance.now?Yp.exports=function(){return performance.now()}:typeof process!="undefined"&&process!==null&&process.hrtime?(Yp.exports=function(){return(e()-n)/1e6},r=process.hrtime,e=function(){var o;return o=r(),o[0]*1e9+o[1]},a=e(),i=process.uptime()*1e9,n=a-i):Date.now?(Yp.exports=function(){return Date.now()-t},t=Date.now()):(Yp.exports=function(){return new Date().getTime()-t},t=new Date().getTime())}).call(ree)});var nee=B((NIe,ux)=>{var BSe=tee(),qu=window,lx=["moz","webkit"],cd="AnimationFrame",vd=qu["request"+cd],Vp=qu["cancel"+cd]||qu["cancelRequest"+cd];for(fd=0;!vd&&fd{iee.exports=function(r,t){var a=typeof r=="number",n=typeof t=="number";a&&!n?(t=r,r=0):!a&&!n&&(r=0,t=0),r=r|0,t=t|0;var i=t-r;if(i<0)throw new Error("array length must be positive");for(var o=new Array(i),l=0,s=r;l{"use strict";var ISe=OA(),OSe=Ns(),HSe=Dc(),lee=nee(),USe=oee(),rM=Vh(),GSe=Lc();uee.exports=r0;function r0(e,r){if(!(this instanceof r0))return new r0(e,r);this.traces=[],this.passes={},this.regl=e,this.scatter=ISe(e),this.canvas=this.scatter.canvas}r0.prototype.render=function(...e){return e.length&&this.update(...e),this.regl.attributes.preserveDrawingBuffer?this.draw():(this.dirty?this.planned==null&&(this.planned=lee(()=>{this.draw(),this.dirty=!0,this.planned=null})):(this.draw(),this.dirty=!0,lee(()=>{this.dirty=!1})),this)};r0.prototype.update=function(...e){if(!e.length)return;for(let a=0;ay||!n.lower&&m{r[i+l]=a})}this.scatter.draw(...r)}return this};r0.prototype.destroy=function(){return this.traces.forEach(e=>{e.buffer&&e.buffer.destroy&&e.buffer.destroy()}),this.traces=null,this.passes=null,this.scatter.destroy(),this};function YSe(e,r,t){let a=e.id!=null?e.id:e,n=r,i=t;return a<<16|(n&255)<<8|i&255}function fx(e,r,t){let a,n,i,o,l,s,u,f,c=e[r],v=e[t];return c.length>2?(a=c[0],i=c[2],n=c[1],o=c[3]):c.length?(a=n=c[0],i=o=c[1]):(a=c.x,n=c.y,i=c.x+c.width,o=c.y+c.height),v.length>2?(l=v[0],u=v[2],s=v[1],f=v[3]):v.length?(l=s=v[0],u=f=v[1]):(l=v.x,s=v.y,u=v.x+v.width,f=v.y+v.height),[l,n,u,o]}function see(e){if(typeof e=="number")return[e,e,e,e];if(e.length===2)return[e[0],e[1],e[0],e[1]];{let r=rM(e);return[r.x,r.y,r.x+r.width,r.y+r.height]}}});var vee=B((IIe,cee)=>{"use strict";var VSe=fee(),tM=or(),cx=hn(),XSe=Lf().selectMode;cee.exports=function(r,t,a){if(a.length)for(var n=0;n-1,P=XSe(f)||!!n.selectedpoints||F,q=!0;if(P){var z=n._length;if(n.selectedpoints){o.selectBatch=n.selectedpoints;var I=n.selectedpoints,U={};for(d=0;d{"use strict";hee.getDimIndex=function(r,t){for(var a=t._id,n=a.charAt(0),i={x:0,y:1}[n],o=r._visibleDims,l=0;l{"use strict";var dee=aM(),ZSe=xA().calcHover,pee=en().getFromId,JSe=Fn().extendFlat;function jSe(e,r,t,a,n){n||(n={});var i=(a||"").charAt(0)==="x",o=(a||"").charAt(0)==="y",l=mee(e,r,t);if((i||o)&&n.hoversubplots==="axis"&&l[0])for(var s=(i?e.xa:e.ya)._subplotsWith,u=n.gd,f=JSe({},e),c=0;c{"use strict";var wee=or(),bee=wee.pushUnique,xee=Ti(),_ee=aM();Aee.exports=function(r,t){var a=r.cd,n=a[0].trace,i=a[0].t,o=r.scene,l=o.matrixOptions.cdata,s=r.xaxis,u=r.yaxis,f=[];if(!o)return f;var c=!xee.hasMarkers(n)&&!xee.hasText(n);if(n.visible!==!0||c)return f;var v=_ee.getDimIndex(n,s),d=_ee.getDimIndex(n,u);if(v===!1||d===!1)return f;var p=i.xpx[v],m=i.ypx[d],y=l[v],b=l[d],T=(r.scene.selectBatch||[]).slice(),_=[];if(t!==!1&&!t.degenerate)for(var x=0;x{"use strict";var Mee=or(),$Se=Q1(),KSe=Mp().markerStyle;kee.exports=function(r,t){var a=t.trace,n=r._fullLayout._splomScenes[a.uid];if(n){$Se(r,a),Mee.extendFlat(n.matrixOptions,KSe(r,a));var i=Mee.extendFlat({},n.matrixOptions,n.viewOpts);n.matrix.update(i,null)}}});var Dee=B((YIe,Cee)=>{"use strict";var QSe=Pt(),eCe=sA();Cee.exports={moduleType:"trace",name:"splom",categories:["gl","regl","cartesian","symbols","showLegend","scatter-like"],attributes:jT(),supplyDefaults:ZQ(),colorbar:q5(),calc:eee(),plot:vee(),hoverPoints:gee().hoverPoints,selectPoints:Tee(),editStyle:See(),meta:{}};QSe.register(eCe)});var Pee=B((VIe,Ree)=>{"use strict";var rCe=gT(),tCe=Pt(),{rgbaString:aCe}=Kt(),nCe=nx(),iCe=W2().getModuleCalcData,t0=ip(),Lee=hn().getFromId,Eee=en().shouldShowZeroLine,qee="splom",Fee={};function oCe(e){var r=e._fullLayout,t=tCe.getModule(qee),a=iCe(e.calcdata,t)[0],n=nCe(e,["ANGLE_instanced_arrays","OES_element_index_uint"],Fee);n&&(r._hasOnlyLargeSploms&&nM(e),t.plot(e,{},a))}function lCe(e){var r=e.calcdata,t=e._fullLayout;t._hasOnlyLargeSploms&&nM(e);for(var a=0;a{"use strict";var Nee=Dee();Nee.basePlotModule=Pee(),zee.exports=Nee});var Oee=B((WIe,Iee)=>{"use strict";Iee.exports=Bee()});var lM=B((ZIe,Hee)=>{"use strict";var cCe=Q0(),iM=sl(),oM=Di(),vCe=vb().attributes,vx=Fn().extendFlat,hCe=Ra().templatedArray;Hee.exports={domain:vCe({name:"parcoords",trace:!0,editType:"plot"}),labelangle:{valType:"angle",dflt:0,editType:"plot"},labelside:{valType:"enumerated",values:["top","bottom"],dflt:"top",editType:"plot"},labelfont:oM({editType:"plot"}),tickfont:oM({autoShadowDflt:!0,editType:"plot"}),rangefont:oM({editType:"plot"}),dimensions:hCe("dimension",{label:{valType:"string",editType:"plot"},tickvals:vx({},iM.tickvals,{editType:"plot"}),ticktext:vx({},iM.ticktext,{editType:"plot"}),tickformat:vx({},iM.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:vx({editType:"calc"},cCe("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"}}});var Xp={};ja(Xp,{axisExtentOffset:()=>wCe,axisTitleOffset:()=>_Ce,bar:()=>ACe,blockLineCount:()=>bCe,canvasPixelRatio:()=>gCe,cn:()=>TCe,id:()=>MCe,layers:()=>xCe,maxDimensionCount:()=>dCe,overdrag:()=>pCe,tickDistance:()=>yCe,verticalPadding:()=>mCe});var dCe,pCe,mCe,yCe,gCe,bCe,xCe,_Ce,wCe,ACe,TCe,MCe,Wp=Ja(()=>{"use strict";dCe=60,pCe=45,mCe=2,yCe=50,gCe=1,bCe=5e3,xCe=["contextLineLayer","focusLineLayer","pickLineLayer"],_Ce=28,wCe=10,ACe={width:4,captureWidth:10,fillColor:"magenta",fillOpacity:1,snapDuration:150,snapRatio:.25,snapClose:.01,strokeOpacity:1,strokeWidth:1,handleHeight:8,handleOpacity:1,handleOverlap:0},TCe={axisExtentText:"axis-extent-text",parcoordsLineLayers:"parcoords-line-layers",parcoordsLineLayer:"parcoords-lines",parcoords:"parcoords",parcoordsControlView:"parcoords-control-view",yAxis:"y-axis",axisOverlays:"axis-overlays",axis:"axis",axisHeading:"axis-heading",axisTitle:"axis-title",axisExtent:"axis-extent",axisExtentTop:"axis-extent-top",axisExtentTopText:"axis-extent-top-text",axisExtentBottom:"axis-extent-bottom",axisExtentBottomText:"axis-extent-bottom-text",axisBrush:"axis-brush"},MCe={filterBarPattern:"filter-bar-pattern"}});var Zp=B((JIe,Gee)=>{"use strict";var kCe=eg();function Uee(e){return[e]}Gee.exports={keyFun:function(e){return e.key},repeat:Uee,descend:kCe,wrap:Uee,unwrap:function(e){return e[0]}}});var fM=B((jIe,ere)=>{"use strict";var Gn=(Wp(),vr(Xp)),ts=la(),SCe=Zp().keyFun,hx=Zp().repeat,hd=or().sorterAsc,CCe=or().strTranslate,Yee=Gn.bar.snapRatio;function Vee(e,r){return e*(1-Yee)+r*Yee}var Xee=Gn.bar.snapClose;function DCe(e,r){return e*(1-Xee)+r*Xee}function px(e,r,t,a){if(LCe(t,a))return t;var n=e?-1:1,i=0,o=r.length-1;if(n<0){var l=i;i=o,o=l}for(var s=r[i],u=s,f=i;n*f=r[t][0]&&e<=r[t][1])return!0;return!1}function ECe(e){e.attr("x",-Gn.bar.captureWidth/2).attr("width",Gn.bar.captureWidth)}function qCe(e){e.attr("visibility","visible").style("visibility","visible").attr("fill","yellow").attr("opacity",0)}function FCe(e){if(!e.brush.filterSpecified)return"0,"+e.height;for(var r=Wee(e.brush.filter.getConsolidated(),e.height),t=[0],a,n,i,o=r.length?r[0][0]:null,l=0;le[1]+t||r=.9*e[1]+.1*e[0]?"n":r<=.9*e[0]+.1*e[1]?"s":"ns"}function Zee(){ts.select(document.body).style("cursor",null)}function uM(e){e.attr("stroke-dasharray",FCe)}function dx(e,r){var t=ts.select(e).selectAll(".highlight, .highlight-shadow"),a=r?t.transition().duration(Gn.bar.snapDuration).each("end",r):t;uM(a)}function Jee(e,r){var t=e.brush,a=t.filterSpecified,n=NaN,i={},o;if(a){var l=e.height,s=t.filter.getConsolidated(),u=Wee(s,l),f=NaN,c=NaN,v=NaN;for(o=0;o<=u.length;o++){var d=u[o];if(d&&d[0]<=r&&r<=d[1]){f=o;break}else if(c=o?o-1:NaN,d&&d[0]>r){v=o;break}}if(n=f,isNaN(n)&&(isNaN(c)||isNaN(v)?n=isNaN(c)?v:c:n=r-u[c][1]=T[0]&&b<=T[1]){i.clickableOrdinalRange=T;break}}}return i}function PCe(e,r){ts.event.sourceEvent.stopPropagation();var t=r.height-ts.mouse(e)[1]-2*Gn.verticalPadding,a=r.unitToPaddedPx.invert(t),n=r.brush,i=Jee(r,t),o=i.interval,l=n.svgBrush;if(l.wasDragged=!1,l.grabbingBar=i.region==="ns",l.grabbingBar){var s=o.map(r.unitToPaddedPx);l.grabPoint=t-s[0]-Gn.verticalPadding,l.barLength=s[1]-s[0]}l.clickableOrdinalRange=i.clickableOrdinalRange,l.stayingIntervals=r.multiselect&&n.filterSpecified?n.filter.getConsolidated():[],o&&(l.stayingIntervals=l.stayingIntervals.filter(function(u){return u[0]!==o[0]&&u[1]!==o[1]})),l.startExtent=i.region?o[i.region==="s"?1:0]:a,r.parent.inBrushDrag=!0,l.brushStartCallback()}function jee(e,r){ts.event.sourceEvent.stopPropagation();var t=r.height-ts.mouse(e)[1]-2*Gn.verticalPadding,a=r.brush.svgBrush;a.wasDragged=!0,a._dragging=!0,a.grabbingBar?a.newExtent=[t-a.grabPoint,t+a.barLength-a.grabPoint].map(r.unitToPaddedPx.invert):a.newExtent=[a.startExtent,r.unitToPaddedPx.invert(t)].sort(hd),r.brush.filterSpecified=!0,a.extent=a.stayingIntervals.concat([a.newExtent]),a.brushCallback(r),dx(e.parentNode)}function NCe(e,r){var t=r.brush,a=t.filter,n=t.svgBrush;n._dragging||($ee(e,r),jee(e,r),r.brush.svgBrush.wasDragged=!1),n._dragging=!1;var i=ts.event;i.sourceEvent.stopPropagation();var o=n.grabbingBar;if(n.grabbingBar=!1,n.grabLocation=void 0,r.parent.inBrushDrag=!1,Zee(),!n.wasDragged){n.wasDragged=void 0,n.clickableOrdinalRange?t.filterSpecified&&r.multiselect?n.extent.push(n.clickableOrdinalRange):(n.extent=[n.clickableOrdinalRange],t.filterSpecified=!0):o?(n.extent=n.stayingIntervals,n.extent.length===0&&sM(t)):sM(t),n.brushCallback(r),dx(e.parentNode),n.brushEndCallback(t.filterSpecified?a.getConsolidated():[]);return}var l=function(){a.set(a.getConsolidated())};if(r.ordinal){var s=r.unitTickvals;s[s.length-1]n.newExtent[0];n.extent=n.stayingIntervals.concat(u?[n.newExtent]:[]),n.extent.length||sM(t),n.brushCallback(r),u?dx(e.parentNode,l):(l(),dx(e.parentNode))}else l();n.brushEndCallback(t.filterSpecified?a.getConsolidated():[])}function $ee(e,r){var t=r.height-ts.mouse(e)[1]-2*Gn.verticalPadding,a=Jee(r,t),n="crosshair";a.clickableOrdinalRange?n="pointer":a.region&&(n=a.region+"-resize"),ts.select(document.body).style("cursor",n)}function zCe(e){e.on("mousemove",function(r){ts.event.preventDefault(),r.parent.inBrushDrag||$ee(this,r)}).on("mouseleave",function(r){r.parent.inBrushDrag||Zee()}).call(ts.behavior.drag().on("dragstart",function(r){PCe(this,r)}).on("drag",function(r){jee(this,r)}).on("dragend",function(r){NCe(this,r)}))}function Kee(e,r){return e[0]-r[0]}function BCe(e,r,t){var a=t._context.staticPlot,n=e.selectAll(".background").data(hx);n.enter().append("rect").classed("background",!0).call(ECe).call(qCe).style("pointer-events",a?"none":"auto").attr("transform",CCe(0,Gn.verticalPadding)),n.call(zCe).attr("height",function(l){return l.height-Gn.verticalPadding});var i=e.selectAll(".highlight-shadow").data(hx);i.enter().append("line").classed("highlight-shadow",!0).attr("x",-Gn.bar.width/2).attr("stroke-width",Gn.bar.width+Gn.bar.strokeWidth).attr("stroke",r).attr("opacity",Gn.bar.strokeOpacity).attr("stroke-linecap","butt"),i.attr("y1",function(l){return l.height}).call(uM);var o=e.selectAll(".highlight").data(hx);o.enter().append("line").classed("highlight",!0).attr("x",-Gn.bar.width/2).attr("stroke-width",Gn.bar.width-Gn.bar.strokeWidth).attr("stroke",Gn.bar.fillColor).attr("opacity",Gn.bar.fillOpacity).attr("stroke-linecap","butt"),o.attr("y1",function(l){return l.height}).call(uM)}function ICe(e,r,t){var a=e.selectAll("."+Gn.cn.axisBrush).data(hx,SCe);a.enter().append("g").classed(Gn.cn.axisBrush,!0),BCe(a,r,t)}function OCe(e){return e.svgBrush.extent.map(function(r){return r.slice()})}function sM(e){e.filterSpecified=!1,e.svgBrush.extent=[[-1/0,1/0]]}function HCe(e){return function(t){var a=t.brush,n=OCe(a),i=n.slice();a.filter.set(i),e()}}function Qee(e){for(var r=e.slice(),t=[],a,n=r.shift();n;){for(a=n.slice();(n=r.shift())&&n[0]<=a[1];)a[1]=Math.max(a[1],n[1]);t.push(a)}return t.length===1&&t[0][0]>t[0][1]&&(t=[]),t}function UCe(){var e=[],r,t;return{set:function(a){e=a.map(function(n){return n.slice().sort(hd)}).sort(Kee),e.length===1&&e[0][0]===-1/0&&e[0][1]===1/0&&(e=[[0,-1]]),r=Qee(e),t=e.reduce(function(n,i){return[Math.min(n[0],i[0]),Math.max(n[1],i[1])]},[1/0,-1/0])},get:function(){return e.slice()},getConsolidated:function(){return r},getBounds:function(){return t}}}function GCe(e,r,t,a,n,i){var o=UCe();return o.set(t),{filter:o,filterSpecified:r,svgBrush:{extent:[],brushStartCallback:a,brushCallback:HCe(n),brushEndCallback:i}}}function YCe(e,r){if(Array.isArray(e[0])?(e=e.map(function(a){return a.sort(hd)}),r.multiselect?e=Qee(e.sort(Kee)):e=[e[0]]):e=[e.sort(hd)],r.tickvals){var t=r.tickvals.slice().sort(hd);if(e=e.map(function(a){var n=[px(0,t,a[0],[]),px(1,t,a[1],[])];if(n[1]>n[0])return n}).filter(function(a){return a}),!e.length)return}return e.length>1?e:e[0]}ere.exports={makeBrush:GCe,ensureAxisBrush:ICe,cleanRanges:YCe}});var are=B(($Ie,tre)=>{"use strict";var a0=or(),VCe=Ol().hasColorscale,XCe=th(),WCe=vb().defaults,ZCe=Oo(),JCe=en(),rre=lM(),jCe=fM(),cM=(Wp(),vr(Xp)).maxDimensionCount,$Ce=$T();function KCe(e,r,t,a,n){var i=n("line.color",t);if(VCe(e,"line")&&a0.isArrayOrTypedArray(i)){if(i.length)return n("line.colorscale"),XCe(e,r,a,n,{prefix:"line.",cLetter:"c"}),i.length;r.line.color=t}return 1/0}function QCe(e,r,t,a){function n(u,f){return a0.coerce(e,r,rre.dimensions,u,f)}var i=n("values"),o=n("visible");if(i&&i.length||(o=r.visible=!1),o){n("label"),n("tickvals"),n("ticktext"),n("tickformat");var l=n("range");r._ax={_id:"y",type:"linear",showexponent:"all",exponentformat:"B",range:l},JCe.setConvert(r._ax,a.layout),n("multiselect");var s=n("constraintrange");s&&(r.constraintrange=jCe.cleanRanges(s,r))}}tre.exports=function(r,t,a,n){function i(f,c){return a0.coerce(r,t,rre,f,c)}var o=r.dimensions;Array.isArray(o)&&o.length>cM&&(a0.log("parcoords traces support up to "+cM+" dimensions at the moment"),o.splice(cM));var l=ZCe(r,t,{name:"dimensions",layout:n,handleItemDefaults:QCe}),s=KCe(r,t,a,n,i);WCe(t,n,i),(!Array.isArray(l)||!l.length)&&(t.visible=!1),$Ce(t,l,"values",s);var u=a0.extendFlat({},n.font,{size:Math.round(n.font.size/1.2)});a0.coerceFont(i,"labelfont",u),a0.coerceFont(i,"tickfont",u,{autoShadowDflt:!0}),a0.coerceFont(i,"rangefont",u),i("labelangle"),i("labelside"),i("unselected.line.color"),i("unselected.line.opacity")}});var ire=B((KIe,nre)=>{"use strict";var eDe=or().isArrayOrTypedArray,vM=nh(),rDe=Zp().wrap;nre.exports=function(r,t){var a,n;return vM.hasColorscale(t,"line")&&eDe(t.line.color)?(a=t.line.color,n=vM.extractOpts(t.line).colorscale,vM.calc(r,t,{vals:a,containerStr:"line",cLetter:"c"})):(a=tDe(t._length),n=[[0,t.line.color],[1,t.line.color]]),rDe({lineColor:a,cscale:n})};function tDe(e){for(var r=new Array(e),t=0;t{"use strict";var aDe=or().isTypedArray;mx.convertTypedArray=function(e){return aDe(e)?Array.prototype.slice.call(e):e};mx.isOrdinal=function(e){return!!e.tickvals};mx.isVisible=function(e){return e.visible||!("visible"in e)}});var pre=B((eOe,dre)=>{"use strict";var nDe=["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(` +`),iDe=["precision highp float;","","varying vec4 fragColor;","","void main() {"," gl_FragColor = fragColor;","}"].join(` +`),Jp=(Wp(),vr(Xp)).maxDimensionCount,cre=or(),ore=1e-6,yx=2048,oDe=new Uint8Array(4),lre=new Uint8Array(4),sre={shape:[256,1],format:"rgba",type:"uint8",mag:"nearest",min:"nearest"};function lDe(e){e.read({x:0,y:0,width:1,height:1,data:oDe})}function vre(e,r,t,a,n){var i=e._gl;i.enable(i.SCISSOR_TEST),i.scissor(r,t,a,n),e.clear({color:[0,0,0,0],depth:1})}function sDe(e,r,t,a,n,i){var o=i.key;function l(s){var u=Math.min(a,n-s*a);s===0&&(window.cancelAnimationFrame(t.currentRafs[o]),delete t.currentRafs[o],vre(e,i.scissorX,i.scissorY,i.scissorWidth,i.viewBoxSize[1])),!t.clearOnly&&(i.count=2*u,i.offset=2*s*a,r(i),s*a+u>>8*r)%256/255}function cDe(e,r,t){for(var a=new Array(e*(Jp+4)),n=0,i=0;iV&&(V=C[q].dim1.canvasX,I=q);P===0&&vre(n,0,0,u.canvasWidth,u.canvasHeight);var W=_(t);for(q=0;q{"use strict";var ki=la(),Fu=or(),pM=Fu.isArrayOrTypedArray,_re=Fu.numberFormat,wre=Kt(),Are=en(),mDe=Fu.strRotate,Hs=Fu.strTranslate,yDe=Ei(),gx=Sa(),mre=nh(),gM=Zp(),Tl=gM.keyFun,Us=gM.repeat,Tre=gM.unwrap,dd=hM(),fa=(Wp(),vr(Xp)),Mre=fM(),gDe=pre();function yre(e,r,t){return Fu.aggNums(e,null,r,t)}function kre(e,r){return bM(yre(Math.min,e,r),yre(Math.max,e,r))}function bx(e){var r=e.range;return r?bM(r[0],r[1]):kre(e.values,e._length)}function bM(e,r){return(isNaN(e)||!isFinite(e))&&(e=0),(isNaN(r)||!isFinite(r))&&(r=0),e===r&&(e===0?(e-=1,r+=1):(e*=.9,r*=1.1)),[e,r]}function bDe(e,r){return r?function(t,a){var n=r[a];return n==null?e(t):n}:e}function xDe(e,r,t,a,n){var i=bx(t);return a?ki.scale.ordinal().domain(a.map(bDe(_re(t.tickformat),n))).range(a.map(function(o){var l=(o-i[0])/(i[1]-i[0]);return e-r+l*(2*r-e)})):ki.scale.linear().domain(i).range([e-r,r])}function _De(e,r){return ki.scale.linear().range([r,e-r])}function wDe(e,r){return ki.scale.linear().domain(bx(e)).range([r,1-r])}function ADe(e){if(e.tickvals){var r=bx(e);return ki.scale.ordinal().domain(e.tickvals).range(e.tickvals.map(function(t){return(t-r[0])/(r[1]-r[0])}))}}function TDe(e){var r=e.map(function(i){return i[0]}),t=e.map(function(i){let[o,l,s]=wre.rgbaArray(i[1]);return ki.rgb(o,l,s)}),a=function(i){return function(o){return o[i]}},n="rgb".split("").map(function(i){return ki.scale.linear().clamp(!0).domain(r).range(t.map(a(i)))});return function(i){return n.map(function(o){return o(i)})}}function yM(e){return e.dimensions.some(function(r){return r.brush.filterSpecified})}function MDe(e,r,t){var a=Tre(r),n=a.trace,i=dd.convertTypedArray(a.lineColor),o=n.line,l={color:wre.normalize(n.unselected.line.color),opacity:n.unselected.line.opacity},s=mre.extractOpts(o),u=s.reversescale?mre.flipScale(a.cscale):a.cscale,f=n.domain,c=n.dimensions,v=e.width,d=n.labelangle,p=n.labelside,m=n.labelfont,y=n.tickfont,b=n.rangefont,T=Fu.extendDeepNoArrays({},o,{color:i.map(ki.scale.linear().domain(bx({values:i,range:[s.min,s.max],_length:n._length}))),blockLineCount:fa.blockLineCount,canvasOverdrag:fa.overdrag*fa.canvasPixelRatio}),_=Math.floor(v*(f.x[1]-f.x[0])),x=Math.floor(e.height*(f.y[1]-f.y[0])),w=e.margin||{l:80,r:80,t:100,b:80},k=_,M=x;return{key:t,colCount:c.filter(dd.isVisible).length,dimensions:c,tickDistance:fa.tickDistance,unitToColor:TDe(u),lines:T,deselectedLines:l,labelAngle:d,labelSide:p,labelFont:m,tickFont:y,rangeFont:b,layoutWidth:v,layoutHeight:e.height,domain:f,translateX:f.x[0]*v,translateY:e.height-f.y[1]*e.height,pad:w,canvasWidth:k*fa.canvasPixelRatio+2*T.canvasOverdrag,canvasHeight:M*fa.canvasPixelRatio,width:k,height:M,canvasPixelRatio:fa.canvasPixelRatio}}function kDe(e,r,t){var a=t.width,n=t.height,i=t.dimensions,o=t.canvasPixelRatio,l=function(v){return a*v/Math.max(1,t.colCount-1)},s=fa.verticalPadding/n,u=_De(n,fa.verticalPadding),f={key:t.key,xScale:l,model:t,inBrushDrag:!1},c={};return f.dimensions=i.filter(dd.isVisible).map(function(v,d){var p=wDe(v,s),m=c[v.label];c[v.label]=(m||0)+1;var y=v.label+(m?"__"+m:""),b=v.constraintrange,T=b&&b.length;T&&!pM(b[0])&&(b=[b]);var _=T?b.map(function(z){return z.map(p)}):[[-1/0,1/0]],x=function(){var z=f;z.focusLayer&&z.focusLayer.render(z.panels,!0);var I=yM(z);!e.contextShown()&&I?(z.contextLayer&&z.contextLayer.render(z.panels,!0),e.contextShown(!0)):e.contextShown()&&!I&&(z.contextLayer&&z.contextLayer.render(z.panels,!0,!0),e.contextShown(!1))},w=v.values;w.length>v._length&&(w=w.slice(0,v._length));var k=v.tickvals,M;function C(z,I){return{val:z,text:M[I]}}function E(z,I){return z.val-I.val}if(pM(k)&&k.length){Fu.isTypedArray(k)&&(k=Array.from(k)),M=v.ticktext,!pM(M)||!M.length?M=k.map(_re(v.tickformat)):M.length>k.length?M=M.slice(0,k.length):k.length>M.length&&(k=k.slice(0,M.length));for(var F=1;F=I||G>=U)return;var Y=q.lineLayer.readPixel(W,U-1-G),Z=Y[3]!==0,j=Z?Y[2]+256*(Y[1]+256*Y[0]):null,ee={x:W,y:G,clientX:z.clientX,clientY:z.clientY,dataIndex:q.model.key,curveNumber:j};j!==p&&(Z?n.hover(ee):n.unhover&&n.unhover(ee),p=j)}}),d.style("opacity",function(q){return q.pick?0:1}),l.style("background","rgba(255, 255, 255, 0)");var y=l.selectAll("."+fa.cn.parcoords).data(v,Tl);y.exit().remove(),y.enter().append("g").classed(fa.cn.parcoords,!0).style("shape-rendering","crispEdges").style("pointer-events","none"),y.attr("transform",function(q){return Hs(q.model.translateX,q.model.translateY)});var b=y.selectAll("."+fa.cn.parcoordsControlView).data(Us,Tl);b.enter().append("g").classed(fa.cn.parcoordsControlView,!0),b.attr("transform",function(q){return Hs(q.model.pad.l,q.model.pad.t)});var T=b.selectAll("."+fa.cn.yAxis).data(function(q){return q.dimensions},Tl);T.enter().append("g").classed(fa.cn.yAxis,!0),b.each(function(q){mM(T,q,u)}),d.each(function(q){if(q.viewModel){!q.lineLayer||n?q.lineLayer=gDe(this,q):q.lineLayer.update(q),(q.key||q.key===0)&&(q.viewModel[q.key]=q.lineLayer);var z=!q.context||n;q.lineLayer.render(q.viewModel.panels,z)}}),T.attr("transform",function(q){return Hs(q.xScale(q.xIndex),0)}),T.call(ki.behavior.drag().origin(function(q){return q}).on("drag",function(q){var z=q.parent;c.linePickActive(!1),q.x=Math.max(-fa.overdrag,Math.min(q.model.width+fa.overdrag,ki.event.x)),q.canvasX=q.x*q.model.canvasPixelRatio,T.sort(function(I,U){return I.x-U.x}).each(function(I,U){I.xIndex=U,I.x=q===I?I.x:I.xScale(I.xIndex),I.canvasX=I.x*I.model.canvasPixelRatio}),mM(T,z,u),T.filter(function(I){return Math.abs(q.xIndex-I.xIndex)!==0}).attr("transform",function(I){return Hs(I.xScale(I.xIndex),0)}),ki.select(this).attr("transform",Hs(q.x,0)),T.each(function(I,U,V){V===q.parent.key&&(z.dimensions[U]=I)}),z.contextLayer&&z.contextLayer.render(z.panels,!1,!yM(z)),z.focusLayer.render&&z.focusLayer.render(z.panels)}).on("dragend",function(q){var z=q.parent;q.x=q.xScale(q.xIndex),q.canvasX=q.x*q.model.canvasPixelRatio,mM(T,z,u),ki.select(this).attr("transform",function(I){return Hs(I.x,0)}),z.contextLayer&&z.contextLayer.render(z.panels,!1,!yM(z)),z.focusLayer&&z.focusLayer.render(z.panels),z.pickLayer&&z.pickLayer.render(z.panels,!0),c.linePickActive(!0),n&&n.axesMoved&&n.axesMoved(z.key,z.dimensions.map(function(I){return I.crossfilterDimensionIndex}))})),T.exit().remove();var _=T.selectAll("."+fa.cn.axisOverlays).data(Us,Tl);_.enter().append("g").classed(fa.cn.axisOverlays,!0),_.selectAll("."+fa.cn.axis).remove();var x=_.selectAll("."+fa.cn.axis).data(Us,Tl);x.enter().append("g").classed(fa.cn.axis,!0),x.each(function(q){var z=q.model.height/q.model.tickDistance,I=q.domainScale,U=I.domain();ki.select(this).call(ki.svg.axis().orient("left").tickSize(4).outerTickSize(2).ticks(z,q.tickFormat).tickValues(q.ordinal?U:null).tickFormat(function(V){return dd.isOrdinal(q)?V:Sre(q.model.dimensions[q.visibleIndex],V)}).scale(I)),gx.font(x.selectAll("text"),q.model.tickFont)}),x.selectAll(".domain, .tick>line").attr("fill","none").attr("stroke","black").attr("stroke-opacity",.25).attr("stroke-width","1px"),x.selectAll("text").style("cursor","default");var w=_.selectAll("."+fa.cn.axisHeading).data(Us,Tl);w.enter().append("g").classed(fa.cn.axisHeading,!0);var k=w.selectAll("."+fa.cn.axisTitle).data(Us,Tl);k.enter().append("text").classed(fa.cn.axisTitle,!0).attr("text-anchor","middle").style("cursor","ew-resize").style("pointer-events",i?"none":"auto"),k.text(function(q){return q.label}).each(function(q){var z=ki.select(this);gx.font(z,q.model.labelFont),yDe.convertToTspans(z,r)}).attr("transform",function(q){var z=bre(q.model.labelAngle,q.model.labelSide),I=fa.axisTitleOffset;return(z.dir>0?"":Hs(0,2*I+q.model.height))+mDe(z.degrees)+Hs(-I*z.dx,-I*z.dy)}).attr("text-anchor",function(q){var z=bre(q.model.labelAngle,q.model.labelSide),I=Math.abs(z.dx),U=Math.abs(z.dy);return 2*I>U?z.dir*z.dx<0?"start":"end":"middle"});var M=_.selectAll("."+fa.cn.axisExtent).data(Us,Tl);M.enter().append("g").classed(fa.cn.axisExtent,!0);var C=M.selectAll("."+fa.cn.axisExtentTop).data(Us,Tl);C.enter().append("g").classed(fa.cn.axisExtentTop,!0),C.attr("transform",Hs(0,-fa.axisExtentOffset));var E=C.selectAll("."+fa.cn.axisExtentTopText).data(Us,Tl);E.enter().append("text").classed(fa.cn.axisExtentTopText,!0).call(gre),E.text(function(q){return xre(q,!0)}).each(function(q){gx.font(ki.select(this),q.model.rangeFont)});var F=M.selectAll("."+fa.cn.axisExtentBottom).data(Us,Tl);F.enter().append("g").classed(fa.cn.axisExtentBottom,!0),F.attr("transform",function(q){return Hs(0,q.model.height+fa.axisExtentOffset)});var P=F.selectAll("."+fa.cn.axisExtentBottomText).data(Us,Tl);P.enter().append("text").classed(fa.cn.axisExtentBottomText,!0).attr("dy","0.75em").call(gre),P.text(function(q){return xre(q,!1)}).each(function(q){gx.font(ki.select(this),q.model.rangeFont)}),Mre.ensureAxisBrush(_,f,r)}});var _M=B((xM,Fre)=>{"use strict";var DDe=Dre(),LDe=nx(),Lre=hM().isVisible,qre={};function Ere(e,r,t){var a=r.indexOf(t),n=e.indexOf(a);return n===-1&&(n+=r.length),n}function EDe(e,r){return function(a,n){return Ere(e,r,a)-Ere(e,r,n)}}var xM=Fre.exports=function(r,t){var a=r._fullLayout,n=LDe(r,[],qre);if(n){var i={},o={},l={},s=a._size;t.forEach(function(d,p){var m=d[0].trace,y=l[p]=m.index;i[p]=r.data[y].dimensions,o[p]=r.data[y].dimensions.slice()});var u=function(d,p,m){var y=o[d][p],b=m.map(function(M){return M.slice()}),T="dimensions["+p+"].constraintrange",_=a._tracePreGUI[r._fullData[l[d]].uid];if(_[T]===void 0){var x=y.constraintrange;_[T]=x||null}var w=r._fullData[l[d]].dimensions[p];b.length?(b.length===1&&(b=b[0]),y.constraintrange=b,w.constraintrange=b.slice(),b=[b]):(delete y.constraintrange,delete w.constraintrange,b=null);var k={};k[T]=b,r.emit("plotly_restyle",[k,[l[d]]])},f=function(d){r.emit("plotly_hover",d)},c=function(d){r.emit("plotly_unhover",d)},v=function(d,p){var m=EDe(p,o[d].filter(Lre));i[d].sort(m),o[d].filter(function(y){return!Lre(y)}).sort(function(y){return o[d].indexOf(y)}).forEach(function(y){i[d].splice(i[d].indexOf(y),1),i[d].splice(o[d].indexOf(y),0,y)}),r.emit("plotly_restyle",[{dimensions:[i[d]]},[l[d]]])};DDe(r,t,{width:s.w,height:s.h,margin:{t:s.t,r:s.r,b:s.b,l:s.l}},{filterChanged:u,hover:f,unhover:c,axesMoved:v})}};xM.reglPrecompiled=qre});var Pre=B(jp=>{"use strict";var Rre=la(),qDe=W2().getModuleCalcData,FDe=_M(),RDe=(xf(),vr(bf));jp.name="parcoords";jp.plot=function(e){var r=qDe(e.calcdata,"parcoords")[0];r.length&&FDe(e,r)};jp.clean=function(e,r,t,a){var n=a._has&&a._has("parcoords"),i=r._has&&r._has("parcoords");n&&!i&&(a._paperdiv.selectAll(".parcoords").remove(),a._glimages.selectAll("*").remove())};jp.toSVG=function(e){var r=e._fullLayout._glimages,t=Rre.select(e).selectAll(".svg-container"),a=t.filter(function(i,o){return o===t.size()-1}).selectAll(".gl-canvas-context, .gl-canvas-focus");function n(){var i=this,o=i.toDataURL("image/png"),l=r.append("svg:image");l.attr({xmlns:RDe.svg,"xlink:href":o,preserveAspectRatio:"none",x:0,y:0,width:i.style.width,height:i.style.height})}a.each(n),window.setTimeout(function(){Rre.selectAll("#filterBarPattern").attr("id","filterBarPattern")},60)}});var zre=B((aOe,Nre)=>{"use strict";Nre.exports={attributes:lM(),supplyDefaults:are(),calc:ire(),colorbar:{container:"line",min:"cmin",max:"cmax"},moduleType:"trace",name:"parcoords",basePlotModule:Pre(),categories:["gl","regl","noOpacity","noHover"],meta:{}}});var Ore=B((nOe,Ire)=>{"use strict";var Bre=zre();Bre.plot=_M();Ire.exports=Bre});var Ure=B((iOe,Hre)=>{"use strict";Hre.exports=Ore()});var Yi=B((oOe,Yre)=>{var _x=bi();function Gre(){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={}}_x(Gre.prototype,{instance:function(e,r){e=(e||"gregorian").toLowerCase(),r=r||"";var t=this._localCals[e+"-"+r];if(!t&&this.calendars[e]&&(t=new this.calendars[e](r),this._localCals[e+"-"+r]=t),!t)throw(this.local.invalidCalendar||this.regionalOptions[""].invalidCalendar).replace(/\{0\}/,e);return t},newDate:function(e,r,t,a,n){return a=(e!=null&&e.year?e.calendar():typeof a=="string"?this.instance(a,n):a)||this.instance(),a.newDate(e,r,t)},substituteDigits:function(e){return function(r){return(r+"").replace(/[0-9]/g,function(t){return e[t]})}},substituteChineseDigits:function(e,r){return function(t){for(var a="",n=0;t>0;){var i=t%10;a=(i===0?"":e[i]+r[n])+a,n++,t=Math.floor(t/10)}return a.indexOf(e[1]+r[1])===0&&(a=a.substr(1)),a||e[0]}}});function wM(e,r,t,a){if(this._calendar=e,this._year=r,this._month=t,this._day=a,this._calendar._validateLevel===0&&!this._calendar.isValid(this._year,this._month,this._day))throw(ea.local.invalidDate||ea.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name)}function xx(e,r){return e=""+e,"000000".substring(0,r-e.length)+e}_x(wM.prototype,{newDate:function(e,r,t){return this._calendar.newDate(e==null?this:e,r,t)},year:function(e){return arguments.length===0?this._year:this.set(e,"y")},month:function(e){return arguments.length===0?this._month:this.set(e,"m")},day:function(e){return arguments.length===0?this._day:this.set(e,"d")},date:function(e,r,t){if(!this._calendar.isValid(e,r,t))throw(ea.local.invalidDate||ea.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name);return this._year=e,this._month=r,this._day=t,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(e,r){return this._calendar.add(this,e,r)},set:function(e,r){return this._calendar.set(this,e,r)},compareTo:function(e){if(this._calendar.name!==e._calendar.name)throw(ea.local.differentCalendars||ea.regionalOptions[""].differentCalendars).replace(/\{0\}/,this._calendar.local.name).replace(/\{1\}/,e._calendar.local.name);var r=this._year!==e._year?this._year-e._year:this._month!==e._month?this.monthOfYear()-e.monthOfYear():this._day-e._day;return r===0?0:r<0?-1:1},calendar:function(){return this._calendar},toJD:function(){return this._calendar.toJD(this)},fromJD:function(e){return this._calendar.fromJD(e)},toJSDate:function(){return this._calendar.toJSDate(this)},fromJSDate:function(e){return this._calendar.fromJSDate(e)},toString:function(){return(this.year()<0?"-":"")+xx(Math.abs(this.year()),4)+"-"+xx(this.month(),2)+"-"+xx(this.day(),2)}});function AM(){this.shortYearCutoff="+10"}_x(AM.prototype,{_validateLevel:0,newDate:function(e,r,t){return e==null?this.today():(e.year&&(this._validate(e,r,t,ea.local.invalidDate||ea.regionalOptions[""].invalidDate),t=e.day(),r=e.month(),e=e.year()),new wM(this,e,r,t))},today:function(){return this.fromJSDate(new Date)},epoch:function(e){var r=this._validate(e,this.minMonth,this.minDay,ea.local.invalidYear||ea.regionalOptions[""].invalidYear);return r.year()<0?this.local.epochs[0]:this.local.epochs[1]},formatYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,ea.local.invalidYear||ea.regionalOptions[""].invalidYear);return(r.year()<0?"-":"")+xx(Math.abs(r.year()),4)},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,ea.local.invalidYear||ea.regionalOptions[""].invalidYear),12},monthOfYear:function(e,r){var t=this._validate(e,r,this.minDay,ea.local.invalidMonth||ea.regionalOptions[""].invalidMonth);return(t.month()+this.monthsInYear(t)-this.firstMonth)%this.monthsInYear(t)+this.minMonth},fromMonthOfYear:function(e,r){var t=(r+this.firstMonth-2*this.minMonth)%this.monthsInYear(e)+this.minMonth;return this._validate(e,t,this.minDay,ea.local.invalidMonth||ea.regionalOptions[""].invalidMonth),t},daysInYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,ea.local.invalidYear||ea.regionalOptions[""].invalidYear);return this.leapYear(r)?366:365},dayOfYear:function(e,r,t){var a=this._validate(e,r,t,ea.local.invalidDate||ea.regionalOptions[""].invalidDate);return a.toJD()-this.newDate(a.year(),this.fromMonthOfYear(a.year(),this.minMonth),this.minDay).toJD()+1},daysInWeek:function(){return 7},dayOfWeek:function(e,r,t){var a=this._validate(e,r,t,ea.local.invalidDate||ea.regionalOptions[""].invalidDate);return(Math.floor(this.toJD(a))+2)%this.daysInWeek()},extraInfo:function(e,r,t){return this._validate(e,r,t,ea.local.invalidDate||ea.regionalOptions[""].invalidDate),{}},add:function(e,r,t){return this._validate(e,this.minMonth,this.minDay,ea.local.invalidDate||ea.regionalOptions[""].invalidDate),this._correctAdd(e,this._add(e,r,t),r,t)},_add:function(e,r,t){if(this._validateLevel++,t==="d"||t==="w"){var a=e.toJD()+r*(t==="w"?this.daysInWeek():1),n=e.calendar().fromJD(a);return this._validateLevel--,[n.year(),n.month(),n.day()]}try{var i=e.year()+(t==="y"?r:0),o=e.monthOfYear()+(t==="m"?r:0),n=e.day(),l=function(f){for(;oc-1+f.minMonth;)i++,o-=c,c=f.monthsInYear(i)};t==="y"?(e.month()!==this.fromMonthOfYear(i,o)&&(o=this.newDate(i,e.month(),this.minDay).monthOfYear()),o=Math.min(o,this.monthsInYear(i)),n=Math.min(n,this.daysInMonth(i,this.fromMonthOfYear(i,o)))):t==="m"&&(l(this),n=Math.min(n,this.daysInMonth(i,this.fromMonthOfYear(i,o))));var s=[i,this.fromMonthOfYear(i,o),n];return this._validateLevel--,s}catch(u){throw this._validateLevel--,u}},_correctAdd:function(e,r,t,a){if(!this.hasYearZero&&(a==="y"||a==="m")&&(r[0]===0||e.year()>0!=r[0]>0)){var n={y:[1,1,"y"],m:[1,this.monthsInYear(-1),"m"],w:[this.daysInWeek(),this.daysInYear(-1),"d"],d:[1,this.daysInYear(-1),"d"]}[a],i=t<0?-1:1;r=this._add(e,t*n[0]+i*n[1],n[2])}return e.date(r[0],r[1],r[2])},set:function(e,r,t){this._validate(e,this.minMonth,this.minDay,ea.local.invalidDate||ea.regionalOptions[""].invalidDate);var a=t==="y"?r:e.year(),n=t==="m"?r:e.month(),i=t==="d"?r:e.day();return(t==="y"||t==="m")&&(i=Math.min(i,this.daysInMonth(a,n))),e.date(a,n,i)},isValid:function(e,r,t){this._validateLevel++;var a=this.hasYearZero||e!==0;if(a){var n=this.newDate(e,r,this.minDay);a=r>=this.minMonth&&r-this.minMonth=this.minDay&&t-this.minDay13.5?13:1),u=n-(s>2.5?4716:4715);return u<=0&&u--,this.newDate(u,s,l)},toJSDate:function(e,r,t){var a=this._validate(e,r,t,ea.local.invalidDate||ea.regionalOptions[""].invalidDate),n=new Date(a.year(),a.month()-1,a.day());return n.setHours(0),n.setMinutes(0),n.setSeconds(0),n.setMilliseconds(0),n.setHours(n.getHours()>12?n.getHours()+2:0),n},fromJSDate:function(e){return this.newDate(e.getFullYear(),e.getMonth()+1,e.getDate())}});var ea=Yre.exports=new Gre;ea.cdate=wM;ea.baseCalendar=AM;ea.calendars.gregorian=TM});var Vre=B(()=>{var MM=bi(),Si=Yi();MM(Si.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"});Si.local=Si.regionalOptions[""];MM(Si.cdate.prototype,{formatDate:function(e,r){return typeof e!="string"&&(r=e,e=""),this._calendar.formatDate(e||"",this,r)}});MM(Si.baseCalendar.prototype,{UNIX_EPOCH:Si.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:1440*60,TICKS_EPOCH:Si.instance().jdEpoch,TICKS_PER_DAY:1440*60*1e7,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(e,r,t){if(typeof e!="string"&&(t=r,r=e,e=""),!r)return"";if(r.calendar()!==this)throw Si.local.invalidFormat||Si.regionalOptions[""].invalidFormat;e=e||this.local.dateFormat,t=t||{};for(var a=t.dayNamesShort||this.local.dayNamesShort,n=t.dayNames||this.local.dayNames,i=t.monthNumbers||this.local.monthNumbers,o=t.monthNamesShort||this.local.monthNamesShort,l=t.monthNames||this.local.monthNames,s=t.calculateWeek||this.local.calculateWeek,u=function(x,w){for(var k=1;_+k1},f=function(x,w,k,M){var C=""+w;if(u(x,M))for(;C.length1},T=function(q,z){var I=b(q,z),U=[2,3,I?4:2,I?4:2,10,11,20]["oyYJ@!".indexOf(q)+1],V=new RegExp("^-?\\d{1,"+U+"}"),W=r.substring(C).match(V);if(!W)throw(Si.local.missingNumberAt||Si.regionalOptions[""].missingNumberAt).replace(/\{0\}/,C);return C+=W[0].length,parseInt(W[0],10)},_=this,x=function(){if(typeof l=="function"){b("m");var q=l.call(_,r.substring(C));return C+=q.length,q}return T("m")},w=function(q,z,I,U){for(var V=b(q,U)?I:z,W=0;W-1){v=1,d=p;for(var P=this.daysInMonth(c,v);d>P;P=this.daysInMonth(c,v))v++,d-=P}return f>-1?this.fromJD(f):this.newDate(c,v,d)},determineDate:function(e,r,t,a,n){t&&typeof t!="object"&&(n=a,a=t,t=null),typeof a!="string"&&(n=a,a="");var i=this,o=function(l){try{return i.parseDate(a,l,n)}catch(c){}l=l.toLowerCase();for(var s=(l.match(/^c/)&&t?t.newDate():null)||i.today(),u=/([+-]?[0-9]+)\s*(d|w|m|y)?/g,f=u.exec(l);f;)s.add(parseInt(f[1],10),f[2]||"d"),f=u.exec(l);return s};return r=r?r.newDate():null,e=e==null?r:typeof e=="string"?o(e):typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?r:i.today().add(e,"d"):i.newDate(e),e}})});var Xre=B(()=>{var n0=Yi(),PDe=bi(),kM=n0.instance();function wx(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}wx.prototype=new n0.baseCalendar;PDe(wx.prototype,{name:"Chinese",jdEpoch:17214255e-1,hasYearZero:!1,minMonth:0,firstMonth:0,minDay:1,regionalOptions:{"":{name:"Chinese",epochs:["BEC","EC"],monthNumbers:function(e,r){if(typeof e=="string"){var t=e.match(zDe);return t?t[0]:""}var a=this._validateYear(e),n=e.month(),i=""+this.toChineseMonth(a,n);return r&&i.length<2&&(i="0"+i),this.isIntercalaryMonth(a,n)&&(i+="i"),i},monthNames:function(e){if(typeof e=="string"){var r=e.match(BDe);return r?r[0]:""}var t=this._validateYear(e),a=e.month(),n=this.toChineseMonth(t,a),i=["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"][n-1];return this.isIntercalaryMonth(t,a)&&(i="\u95F0"+i),i},monthNamesShort:function(e){if(typeof e=="string"){var r=e.match(IDe);return r?r[0]:""}var t=this._validateYear(e),a=e.month(),n=this.toChineseMonth(t,a),i=["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"][n-1];return this.isIntercalaryMonth(t,a)&&(i="\u95F0"+i),i},parseMonth:function(e,r){e=this._validateYear(e);var t=parseInt(r),a;if(isNaN(t))r[0]==="\u95F0"&&(a=!0,r=r.substring(1)),r[r.length-1]==="\u6708"&&(r=r.substring(0,r.length-1)),t=1+["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"].indexOf(r);else{var n=r[r.length-1];a=n==="i"||n==="I"}var i=this.toMonthIndex(e,t,a);return i},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(e,r){if(e.year&&(e=e.year()),typeof e!="number"||e<1888||e>2111)throw r.replace(/\{0\}/,this.local.name);return e},toMonthIndex:function(e,r,t){var a=this.intercalaryMonth(e),n=t&&r!==a;if(n||r<1||r>12)throw n0.local.invalidMonth.replace(/\{0\}/,this.local.name);var i;return a?!t&&r<=a?i=r-1:i=r:i=r-1,i},toChineseMonth:function(e,r){e.year&&(e=e.year(),r=e.month());var t=this.intercalaryMonth(e),a=t?12:11;if(r<0||r>a)throw n0.local.invalidMonth.replace(/\{0\}/,this.local.name);var n;return t?r>13;return t},isIntercalaryMonth:function(e,r){e.year&&(e=e.year(),r=e.month());var t=this.intercalaryMonth(e);return!!t&&t===r},leapYear:function(e){return this.intercalaryMonth(e)!==0},weekOfYear:function(e,r,t){var a=this._validateYear(e,n0.local.invalidyear),n=o0[a-o0[0]],i=n>>9&4095,o=n>>5&15,l=n&31,s;s=kM.newDate(i,o,l),s.add(4-(s.dayOfWeek()||7),"d");var u=this.toJD(e,r,t)-s.toJD();return 1+Math.floor(u/7)},monthsInYear:function(e){return this.leapYear(e)?13:12},daysInMonth:function(e,r){e.year&&(r=e.month(),e=e.year()),e=this._validateYear(e);var t=i0[e-i0[0]],a=t>>13,n=a?12:11;if(r>n)throw n0.local.invalidMonth.replace(/\{0\}/,this.local.name);var i=t&1<<12-r?30:29;return i},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var a=this._validate(e,i,t,n0.local.invalidDate);e=this._validateYear(a.year()),r=a.month(),t=a.day();var n=this.isIntercalaryMonth(e,r),i=this.toChineseMonth(e,r),o=HDe(e,i,t,n);return kM.toJD(o.year,o.month,o.day)},fromJD:function(e){var r=kM.fromJD(e),t=ODe(r.year(),r.month(),r.day()),a=this.toMonthIndex(t.year,t.month,t.isIntercalary);return this.newDate(t.year,a,t.day)},fromString:function(e){var r=e.match(NDe),t=this._validateYear(+r[1]),a=+r[2],n=!!r[3],i=this.toMonthIndex(t,a,n),o=+r[4];return this.newDate(t,i,o)},add:function(e,r,t){var a=e.year(),n=e.month(),i=this.isIntercalaryMonth(a,n),o=this.toChineseMonth(a,n),l=Object.getPrototypeOf(wx.prototype).add.call(this,e,r,t);if(t==="y"){var s=l.year(),u=l.month(),f=this.isIntercalaryMonth(s,o),c=i&&f?this.toMonthIndex(s,o,!0):this.toMonthIndex(s,o,!1);c!==u&&l.month(c)}return l}});var NDe=/^\s*(-?\d\d\d\d|\d\d)[-/](\d?\d)([iI]?)[-/](\d?\d)/m,zDe=/^\d?\d[iI]?/m,BDe=/^闰?十?[一二三四五六七八九]?月/m,IDe=/^闰?十?[一二三四五六七八九]?/m;n0.calendars.chinese=wx;var i0=[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],o0=[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 ODe(e,r,t,a){var n,i;if(typeof e=="object")n=e,i=r||{};else{var o=typeof e=="number"&&e>=1888&&e<=2111;if(!o)throw new Error("Solar year outside range 1888-2111");var l=typeof r=="number"&&r>=1&&r<=12;if(!l)throw new Error("Solar month outside range 1 - 12");var s=typeof t=="number"&&t>=1&&t<=31;if(!s)throw new Error("Solar day outside range 1 - 31");n={year:e,month:r,day:t},i=a||{}}var u=o0[n.year-o0[0]],f=n.year<<9|n.month<<5|n.day;i.year=f>=u?n.year:n.year-1,u=o0[i.year-o0[0]];var c=u>>9&4095,v=u>>5&15,d=u&31,p,m=new Date(c,v-1,d),y=new Date(n.year,n.month-1,n.day);p=Math.round((y-m)/(24*3600*1e3));var b=i0[i.year-i0[0]],T;for(T=0;T<13;T++){var _=b&1<<12-T?30:29;if(p<_)break;p-=_}var x=b>>13;return!x||T=1888&&e<=2111;if(!l)throw new Error("Lunar year outside range 1888-2111");var s=typeof r=="number"&&r>=1&&r<=12;if(!s)throw new Error("Lunar month outside range 1 - 12");var u=typeof t=="number"&&t>=1&&t<=30;if(!u)throw new Error("Lunar day outside range 1 - 30");var f;typeof a=="object"?(f=!1,i=a):(f=!!a,i=n||{}),o={year:e,month:r,day:t,isIntercalary:f}}var c;c=o.day-1;var v=i0[o.year-i0[0]],d=v>>13,p;d&&(o.month>d||o.isIntercalary)?p=o.month:p=o.month-1;for(var m=0;m>9&4095,_=b>>5&15,x=b&31,w=new Date(T,_-1,x+c);return i.year=w.getFullYear(),i.month=1+w.getMonth(),i.day=w.getDate(),i}});var Wre=B(()=>{var Bc=Yi(),UDe=bi();function SM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}SM.prototype=new Bc.baseCalendar;UDe(SM.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(t){var r=this._validate(t,this.minMonth,this.minDay,Bc.local.invalidYear),t=r.year()+(r.year()<0?1:0);return t%4===3||t%4===-1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Bc.local.invalidYear||Bc.regionalOptions[""].invalidYear),13},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Bc.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===13&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var a=this._validate(e,r,t,Bc.local.invalidDate);return e=a.year(),e<0&&e++,a.day()+(a.month()-1)*30+(e-1)*365+Math.floor(e/4)+this.jdEpoch-1},fromJD:function(e){var r=Math.floor(e)+.5-this.jdEpoch,t=Math.floor((r-Math.floor((r+366)/1461))/365)+1;t<=0&&t--,r=Math.floor(e)+.5-this.newDate(t,1,1).toJD();var a=Math.floor(r/30)+1,n=r-(a-1)*30+1;return this.newDate(t,a,n)}});Bc.calendars.coptic=SM});var Zre=B(()=>{var Ru=Yi(),GDe=bi();function CM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}CM.prototype=new Ru.baseCalendar;GDe(CM.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(e){return this._validate(e,this.minMonth,this.minDay,Ru.local.invalidYear),!1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Ru.local.invalidYear),13},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Ru.local.invalidYear),400},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/8)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Ru.local.invalidMonth);return this.daysPerMonth[t.month()-1]},daysInWeek:function(){return 8},dayOfWeek:function(e,r,t){var a=this._validate(e,r,t,Ru.local.invalidDate);return(a.day()+1)%8},weekDay:function(e,r,t){var a=this.dayOfWeek(e,r,t);return a>=2&&a<=6},extraInfo:function(e,r,t){var a=this._validate(e,r,t,Ru.local.invalidDate);return{century:YDe[Math.floor((a.year()-1)/100)+1]||""}},toJD:function(e,r,t){var a=this._validate(e,r,t,Ru.local.invalidDate);return e=a.year()+(a.year()<0?1:0),r=a.month(),t=a.day(),t+(r>1?16:0)+(r>2?(r-2)*32:0)+(e-1)*400+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e+.5)-Math.floor(this.jdEpoch)-1;var r=Math.floor(e/400)+1;e-=(r-1)*400,e+=e>15?16:0;var t=Math.floor(e/32)+1,a=e-(t-1)*32+1;return this.newDate(r<=0?r-1:r,t,a)}});var YDe={20:"Fruitbat",21:"Anchovy"};Ru.calendars.discworld=CM});var Jre=B(()=>{var Ic=Yi(),VDe=bi();function DM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}DM.prototype=new Ic.baseCalendar;VDe(DM.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(t){var r=this._validate(t,this.minMonth,this.minDay,Ic.local.invalidYear),t=r.year()+(r.year()<0?1:0);return t%4===3||t%4===-1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Ic.local.invalidYear||Ic.regionalOptions[""].invalidYear),13},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Ic.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===13&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var a=this._validate(e,r,t,Ic.local.invalidDate);return e=a.year(),e<0&&e++,a.day()+(a.month()-1)*30+(e-1)*365+Math.floor(e/4)+this.jdEpoch-1},fromJD:function(e){var r=Math.floor(e)+.5-this.jdEpoch,t=Math.floor((r-Math.floor((r+366)/1461))/365)+1;t<=0&&t--,r=Math.floor(e)+.5-this.newDate(t,1,1).toJD();var a=Math.floor(r/30)+1,n=r-(a-1)*30+1;return this.newDate(t,a,n)}});Ic.calendars.ethiopian=DM});var jre=B(()=>{var l0=Yi(),XDe=bi();function LM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}LM.prototype=new l0.baseCalendar;XDe(LM.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(e){var r=this._validate(e,this.minMonth,this.minDay,l0.local.invalidYear);return this._leapYear(r.year())},_leapYear:function(e){return e=e<0?e+1:e,Ax(e*7+1,19)<7},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,l0.local.invalidYear),this._leapYear(e.year?e.year():e)?13:12},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,l0.local.invalidYear);return e=r.year(),this.toJD(e===-1?1:e+1,7,1)-this.toJD(e,7,1)},daysInMonth:function(e,r){return e.year&&(r=e.month(),e=e.year()),this._validate(e,r,this.minDay,l0.local.invalidMonth),r===12&&this.leapYear(e)||r===8&&Ax(this.daysInYear(e),10)===5?30:r===9&&Ax(this.daysInYear(e),10)===3?29:this.daysPerMonth[r-1]},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==6},extraInfo:function(e,r,t){var a=this._validate(e,r,t,l0.local.invalidDate);return{yearType:(this.leapYear(a)?"embolismic":"common")+" "+["deficient","regular","complete"][this.daysInYear(a)%10-3]}},toJD:function(e,r,t){var a=this._validate(e,r,t,l0.local.invalidDate);e=a.year(),r=a.month(),t=a.day();var n=e<=0?e+1:e,i=this.jdEpoch+this._delay1(n)+this._delay2(n)+t+1;if(r<7){for(var o=7;o<=this.monthsInYear(e);o++)i+=this.daysInMonth(e,o);for(var o=1;o=this.toJD(r===-1?1:r+1,7,1);)r++;for(var t=ethis.toJD(r,t,this.daysInMonth(r,t));)t++;var a=e-this.toJD(r,t,1)+1;return this.newDate(r,t,a)}});function Ax(e,r){return e-r*Math.floor(e/r)}l0.calendars.hebrew=LM});var $re=B(()=>{var $p=Yi(),WDe=bi();function EM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}EM.prototype=new $p.baseCalendar;WDe(EM.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\u012Bs","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(e){var r=this._validate(e,this.minMonth,this.minDay,$p.local.invalidYear);return(r.year()*11+14)%30<11},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInYear:function(e){return this.leapYear(e)?355:354},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,$p.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===12&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==5},toJD:function(e,r,t){var a=this._validate(e,r,t,$p.local.invalidDate);return e=a.year(),r=a.month(),t=a.day(),e=e<=0?e+1:e,t+Math.ceil(29.5*(r-1))+(e-1)*354+Math.floor((3+11*e)/30)+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e)+.5;var r=Math.floor((30*(e-this.jdEpoch)+10646)/10631);r=r<=0?r-1:r;var t=Math.min(12,Math.ceil((e-29-this.toJD(r,1,1))/29.5)+1),a=e-this.toJD(r,t,1)+1;return this.newDate(r,t,a)}});$p.calendars.islamic=EM});var Kre=B(()=>{var Kp=Yi(),ZDe=bi();function qM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}qM.prototype=new Kp.baseCalendar;ZDe(qM.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(t){var r=this._validate(t,this.minMonth,this.minDay,Kp.local.invalidYear),t=r.year()<0?r.year()+1:r.year();return t%4===0},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(4-(a.dayOfWeek()||7),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Kp.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===2&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var a=this._validate(e,r,t,Kp.local.invalidDate);return e=a.year(),r=a.month(),t=a.day(),e<0&&e++,r<=2&&(e--,r+=12),Math.floor(365.25*(e+4716))+Math.floor(30.6001*(r+1))+t-1524.5},fromJD:function(e){var r=Math.floor(e+.5),t=r+1524,a=Math.floor((t-122.1)/365.25),n=Math.floor(365.25*a),i=Math.floor((t-n)/30.6001),o=i-Math.floor(i<14?1:13),l=a-Math.floor(o>2?4716:4715),s=t-n-Math.floor(30.6001*i);return l<=0&&l--,this.newDate(l,o,s)}});Kp.calendars.julian=qM});var ete=B(()=>{var Ml=Yi(),JDe=bi();function RM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}RM.prototype=new Ml.baseCalendar;JDe(RM.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(e){return this._validate(e,this.minMonth,this.minDay,Ml.local.invalidYear),!1},formatYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Ml.local.invalidYear);e=r.year();var t=Math.floor(e/400);e=e%400,e+=e<0?400:0;var a=Math.floor(e/20);return t+"."+a+"."+e%20},forYear:function(e){if(e=e.split("."),e.length<3)throw"Invalid Mayan year";for(var r=0,t=0;t19||t>0&&a<0)throw"Invalid Mayan year";r=r*20+a}return r},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Ml.local.invalidYear),18},weekOfYear:function(e,r,t){return this._validate(e,r,t,Ml.local.invalidDate),0},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Ml.local.invalidYear),360},daysInMonth:function(e,r){return this._validate(e,r,this.minDay,Ml.local.invalidMonth),20},daysInWeek:function(){return 5},dayOfWeek:function(e,r,t){var a=this._validate(e,r,t,Ml.local.invalidDate);return a.day()},weekDay:function(e,r,t){return this._validate(e,r,t,Ml.local.invalidDate),!0},extraInfo:function(e,r,t){var a=this._validate(e,r,t,Ml.local.invalidDate),n=a.toJD(),i=this._toHaab(n),o=this._toTzolkin(n);return{haabMonthName:this.local.haabMonths[i[0]-1],haabMonth:i[0],haabDay:i[1],tzolkinDayName:this.local.tzolkinMonths[o[0]-1],tzolkinDay:o[0],tzolkinTrecena:o[1]}},_toHaab:function(e){e-=this.jdEpoch;var r=FM(e+8+340,365);return[Math.floor(r/20)+1,FM(r,20)]},_toTzolkin:function(e){return e-=this.jdEpoch,[Qre(e+20,20),Qre(e+4,13)]},toJD:function(e,r,t){var a=this._validate(e,r,t,Ml.local.invalidDate);return a.day()+a.month()*20+a.year()*360+this.jdEpoch},fromJD:function(e){e=Math.floor(e)+.5-this.jdEpoch;var r=Math.floor(e/360);e=e%360,e+=e<0?360:0;var t=Math.floor(e/20),a=e%20;return this.newDate(r,t,a)}});function FM(e,r){return e-r*Math.floor(e/r)}function Qre(e,r){return FM(e-1,r)+1}Ml.calendars.mayan=RM});var tte=B(()=>{var Oc=Yi(),jDe=bi();function PM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}PM.prototype=new Oc.baseCalendar;var rte=Oc.instance("gregorian");jDe(PM.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(e){var r=this._validate(e,this.minMonth,this.minDay,Oc.local.invalidYear||Oc.regionalOptions[""].invalidYear);return rte.leapYear(r.year()+(r.year()<1?1:0)+1469)},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(1-(a.dayOfWeek()||7),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Oc.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===12&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(n,r,t){var a=this._validate(n,r,t,Oc.local.invalidMonth),n=a.year();n<0&&n++;for(var i=a.day(),o=1;o=this.toJD(r+1,1,1);)r++;for(var t=e-Math.floor(this.toJD(r,1,1)+.5)+1,a=1;t>this.daysInMonth(r,a);)t-=this.daysInMonth(r,a),a++;return this.newDate(r,a,t)}});Oc.calendars.nanakshahi=PM});var ate=B(()=>{var Hc=Yi(),$De=bi();function NM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}NM.prototype=new Hc.baseCalendar;$De(NM.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(e){return this.daysInYear(e)!==this.daysPerYear},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Hc.local.invalidYear);if(e=r.year(),typeof this.NEPALI_CALENDAR_DATA[e]=="undefined")return this.daysPerYear;for(var t=0,a=this.minMonth;a<=12;a++)t+=this.NEPALI_CALENDAR_DATA[e][a];return t},daysInMonth:function(e,r){return e.year&&(r=e.month(),e=e.year()),this._validate(e,r,this.minDay,Hc.local.invalidMonth),typeof this.NEPALI_CALENDAR_DATA[e]=="undefined"?this.daysPerMonth[r-1]:this.NEPALI_CALENDAR_DATA[e][r]},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==6},toJD:function(e,r,t){var a=this._validate(e,r,t,Hc.local.invalidDate);e=a.year(),r=a.month(),t=a.day();var n=Hc.instance(),i=0,o=r,l=e;this._createMissingCalendarData(e);var s=e-(o>9||o===9&&t>=this.NEPALI_CALENDAR_DATA[l][0]?56:57);for(r!==9&&(i=t,o--);o!==9;)o<=0&&(o=12,l--),i+=this.NEPALI_CALENDAR_DATA[l][o],o--;return r===9?(i+=t-this.NEPALI_CALENDAR_DATA[l][0],i<0&&(i+=n.daysInYear(s))):i+=this.NEPALI_CALENDAR_DATA[l][9]-this.NEPALI_CALENDAR_DATA[l][0],n.newDate(s,1,1).add(i,"d").toJD()},fromJD:function(e){var r=Hc.instance(),t=r.fromJD(e),a=t.year(),n=t.dayOfYear(),i=a+56;this._createMissingCalendarData(i);for(var o=9,l=this.NEPALI_CALENDAR_DATA[i][0],s=this.NEPALI_CALENDAR_DATA[i][o]-l+1;n>s;)o++,o>12&&(o=1,i++),s+=this.NEPALI_CALENDAR_DATA[i][o];var u=this.NEPALI_CALENDAR_DATA[i][o]-(s-n);return this.newDate(i,o,u)},_createMissingCalendarData:function(e){var r=this.daysPerMonth.slice(0);r.unshift(17);for(var t=e-1;t{var pd=Yi(),KDe=bi();function Mx(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}function Tx(e){var r=e-475;e<0&&r++;var t=.242197,a=t*r,n=t*(r+1),i=a-Math.floor(a),o=n-Math.floor(n);return i>o}Mx.prototype=new pd.baseCalendar;KDe(Mx.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","Dey","Bahman","Esfand"],monthNamesShort:["Far","Ord","Kho","Tir","Mor","Sha","Meh","Aba","Aza","Dey","Bah","Esf"],dayNames:["Yekshanbeh","Doshanbeh","Seshanbeh","Chah\u0101rshanbeh","Panjshanbeh","Jom'eh","Shanbeh"],dayNamesShort:["Yek","Do","Se","Cha","Panj","Jom","Sha"],dayNamesMin:["Ye","Do","Se","Ch","Pa","Jo","Sh"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,pd.local.invalidYear);return Tx(r.year())},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-((a.dayOfWeek()+1)%7),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,pd.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===12&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==5},toJD:function(e,r,t){var a=this._validate(e,r,t,pd.local.invalidDate);e=a.year(),r=a.month(),t=a.day();var n=0;if(e>0)for(var i=1;i0?e-1:e)*365+n+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e)+.5;var r=475+(e-this.toJD(475,1,1))/365.242197,t=Math.floor(r);t<=0&&t--,e>this.toJD(t,12,Tx(t)?30:29)&&(t++,t===0&&t++);var a=e-this.toJD(t,1,1)+1,n=a<=186?Math.ceil(a/31):Math.ceil((a-6)/30),i=e-this.toJD(t,n,1)+1;return this.newDate(t,n,i)}});pd.calendars.persian=Mx;pd.calendars.jalali=Mx});var ite=B(()=>{var Uc=Yi(),QDe=bi(),kx=Uc.instance();function zM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}zM.prototype=new Uc.baseCalendar;QDe(zM.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(t){var r=this._validate(t,this.minMonth,this.minDay,Uc.local.invalidYear),t=this._t2gYear(r.year());return kx.leapYear(t)},weekOfYear:function(n,r,t){var a=this._validate(n,this.minMonth,this.minDay,Uc.local.invalidYear),n=this._t2gYear(a.year());return kx.weekOfYear(n,a.month(),a.day())},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Uc.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===2&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(n,r,t){var a=this._validate(n,r,t,Uc.local.invalidDate),n=this._t2gYear(a.year());return kx.toJD(n,a.month(),a.day())},fromJD:function(e){var r=kx.fromJD(e),t=this._g2tYear(r.year());return this.newDate(t,r.month(),r.day())},_t2gYear:function(e){return e+this.yearsOffset+(e>=-this.yearsOffset&&e<=-1?1:0)},_g2tYear:function(e){return e-this.yearsOffset-(e>=1&&e<=this.yearsOffset?1:0)}});Uc.calendars.taiwan=zM});var ote=B(()=>{var Gc=Yi(),eLe=bi(),Sx=Gc.instance();function BM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}BM.prototype=new Gc.baseCalendar;eLe(BM.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(t){var r=this._validate(t,this.minMonth,this.minDay,Gc.local.invalidYear),t=this._t2gYear(r.year());return Sx.leapYear(t)},weekOfYear:function(n,r,t){var a=this._validate(n,this.minMonth,this.minDay,Gc.local.invalidYear),n=this._t2gYear(a.year());return Sx.weekOfYear(n,a.month(),a.day())},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Gc.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===2&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(n,r,t){var a=this._validate(n,r,t,Gc.local.invalidDate),n=this._t2gYear(a.year());return Sx.toJD(n,a.month(),a.day())},fromJD:function(e){var r=Sx.fromJD(e),t=this._g2tYear(r.year());return this.newDate(t,r.month(),r.day())},_t2gYear:function(e){return e-this.yearsOffset-(e>=1&&e<=this.yearsOffset?1:0)},_g2tYear:function(e){return e+this.yearsOffset+(e>=-this.yearsOffset&&e<=-1?1:0)}});Gc.calendars.thai=BM});var lte=B(()=>{var Yc=Yi(),rLe=bi();function IM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}IM.prototype=new Yc.baseCalendar;rLe(IM.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\u0101th\u0101\u2019","Yawm al-Arba\u2018\u0101\u2019","Yawm al-Kham\u012Bs","Yawm al-Jum\u2018a","Yawm al-Sabt"],dayNamesMin:["Ah","Ith","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!0}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Yc.local.invalidYear);return this.daysInYear(r.year())===355},weekOfYear:function(e,r,t){var a=this.newDate(e,r,t);return a.add(-a.dayOfWeek(),"d"),Math.floor((a.dayOfYear()-1)/7)+1},daysInYear:function(e){for(var r=0,t=1;t<=12;t++)r+=this.daysInMonth(e,t);return r},daysInMonth:function(e,r){for(var t=this._validate(e,r,this.minDay,Yc.local.invalidMonth),a=t.toJD()-24e5+.5,n=0,i=0;ia)return s0[n]-s0[n-1];n++}return 30},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==5},toJD:function(e,r,t){var a=this._validate(e,r,t,Yc.local.invalidDate),n=12*(a.year()-1)+a.month()-15292,i=a.day()+s0[n-1]-1;return i+24e5-.5},fromJD:function(e){for(var r=e-24e5+.5,t=0,a=0;ar);a++)t++;var n=t+15292,i=Math.floor((n-1)/12),o=i+1,l=n-12*i,s=r-s0[t-1]+1;return this.newDate(o,l,s)},isValid:function(e,r,t){var a=Yc.baseCalendar.prototype.isValid.apply(this,arguments);return a&&(e=e.year!=null?e.year:e,a=e>=1276&&e<=1500),a},_validate:function(e,r,t,a){var n=Yc.baseCalendar.prototype._validate.apply(this,arguments);if(n.year<1276||n.year>1500)throw a.replace(/\{0\}/,this.local.name);return n}});Yc.calendars.ummalqura=IM;var s0=[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]});var ute=B((zOe,ste)=>{"use strict";ste.exports=Yi();Vre();Xre();Wre();Zre();Jre();jre();$re();Kre();ete();tte();ate();nte();ite();ote();lte()});var mte=B((BOe,pte)=>{"use strict";var cte=ute(),Qp=or(),vte=(Wn(),vr(ri)),tLe=vte.EPOCHJD,aLe=vte.ONEDAY,UM={valType:"enumerated",values:Qp.sortObjectKeys(cte.calendars),editType:"calc",dflt:"gregorian"},hte=function(e,r,t,a){var n={};return n[t]=UM,Qp.coerce(e,r,n,t,a)},nLe=function(e,r,t,a){for(var n=0;n{"use strict";yte.exports=mte()});var fLe=B((OOe,xte)=>{var bte=HX();bte.register([OQ(),Oee(),Ure(),gte()]);xte.exports=bte});return fLe();})(); /*! Bundled license information: native-promise-only/lib/npo.src.js: diff --git a/dist/plotly-gl3d.js b/dist/plotly-gl3d.js index 4df2ccb6bf7..d4ca9ab3a46 100644 --- a/dist/plotly-gl3d.js +++ b/dist/plotly-gl3d.js @@ -1,5 +1,5 @@ /** -* plotly.js (gl3d) v4.1.2 +* plotly.js (gl3d) v4.2.0 * Copyright 2012-2026, Plotly, Inc. * All rights reserved. * Licensed under the MIT license @@ -110,7 +110,7 @@ var Plotly = (() => { var require_version = __commonJS({ "src/version.js"(exports) { "use strict"; - exports.version = "4.1.2"; + exports.version = "4.2.0"; } }); @@ -17760,9 +17760,9 @@ var Plotly = (() => { var require_maplibre_gl = __commonJS({ "node_modules/maplibre-gl/dist/maplibre-gl.css"() { (function() { - if (!document.getElementById("ce8d464691048653ffe3a57c6c18ab566e8366f186677868cf724621a857b4fe")) { + if (!document.getElementById("9f215cf04c5486422605d13261cb87401f4e7763b6296af81e98efbc0130da53")) { var e = document.createElement("style"); - e.id = "ce8d464691048653ffe3a57c6c18ab566e8366f186677868cf724621a857b4fe"; + e.id = "9f215cf04c5486422605d13261cb87401f4e7763b6296af81e98efbc0130da53"; e.textContent = `.maplibregl-map{font:12px/20px Helvetica Neue,Arial,Helvetica,sans-serif;overflow:hidden;position:relative;-webkit-tap-highlight-color:rgb(0 0 0/0);-webkit-touch-callout:none}.maplibregl-canvas{position:absolute;left:0;top:0}.maplibregl-map:fullscreen{width:100%;height:100%}.maplibregl-ctrl-group button.maplibregl-ctrl-compass{touch-action:none}.maplibregl-canvas-container.maplibregl-interactive,.maplibregl-ctrl-group button.maplibregl-ctrl-compass{cursor:grab;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-canvas-container.maplibregl-interactive.maplibregl-track-pointer{cursor:pointer}.maplibregl-canvas-container.maplibregl-interactive:active,.maplibregl-ctrl-group button.maplibregl-ctrl-compass:active{cursor:grabbing}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-canvas-container.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:pinch-zoom}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:none}.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures,.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-ctrl-bottom-left,.maplibregl-ctrl-bottom-right,.maplibregl-ctrl-top-left,.maplibregl-ctrl-top-right{position:absolute;pointer-events:none;z-index:2}.maplibregl-ctrl-top-left{top:0;left:0}.maplibregl-ctrl-top-right{top:0;right:0}.maplibregl-ctrl-bottom-left{bottom:0;left:0}.maplibregl-ctrl-bottom-right{right:0;bottom:0}.maplibregl-ctrl{clear:both;pointer-events:auto;transform:translate(0)}.maplibregl-ctrl-top-left .maplibregl-ctrl{margin:10px 0 0 10px;float:left}.maplibregl-ctrl-top-right .maplibregl-ctrl{margin:10px 10px 0 0;float:right}.maplibregl-ctrl-bottom-left .maplibregl-ctrl{margin:0 0 10px 10px;float:left}.maplibregl-ctrl-bottom-right .maplibregl-ctrl{margin:0 10px 10px 0;float:right}.maplibregl-ctrl-group{border-radius:4px;background:#fff}.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px rgba(0,0,0,.1)}@media (forced-colors:active){.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px ButtonText}}.maplibregl-ctrl-group button{width:29px;height:29px;display:block;padding:0;outline:none;border:0;box-sizing:border-box;background-color:transparent;cursor:pointer}.maplibregl-ctrl button{-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-ctrl-group button+button{border-top:1px solid #ddd}.maplibregl-ctrl button .maplibregl-ctrl-icon{display:block;width:100%;height:100%;background-repeat:no-repeat;background-position:50%}@media (forced-colors:active){.maplibregl-ctrl-icon{background-color:transparent}.maplibregl-ctrl-group button+button{border-top:1px solid ButtonText}}.maplibregl-ctrl button::-moz-focus-inner{border:0;padding:0}.maplibregl-ctrl-attrib-button:focus,.maplibregl-ctrl-group button:focus{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl button:disabled{cursor:not-allowed}.maplibregl-ctrl button:disabled .maplibregl-ctrl-icon{opacity:.25}@media (hover:hover){.maplibregl-ctrl button:not(:disabled):hover{background-color:rgba(0,0,0,.05)}}.maplibregl-ctrl button:not(:disabled):active{background-color:rgba(0,0,0,.05)}.maplibregl-ctrl-group button:focus:focus-visible{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl-group button:focus:not(:focus-visible){box-shadow:none}.maplibregl-ctrl-group button:focus:first-child{border-radius:4px 4px 0 0}.maplibregl-ctrl-group button:focus:last-child{border-radius:0 0 4px 4px}.maplibregl-ctrl-group button:focus:only-child{border-radius:inherit}.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M10%2013c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h9c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M14.5%208.5c-.75%200-1.5.75-1.5%201.5v3h-3c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h3v3c0%20.75.75%201.5%201.5%201.5S16%2019.75%2016%2019v-3h3c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013h-3v-3c0-.75-.75-1.5-1.5-1.5%22%2F%3E%3C%2Fsvg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M10%2013c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h9c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M14.5%208.5c-.75%200-1.5.75-1.5%201.5v3h-3c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h3v3c0%20.75.75%201.5%201.5%201.5S16%2019.75%2016%2019v-3h3c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013h-3v-3c0-.75-.75-1.5-1.5-1.5%22%2F%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M10%2013c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h9c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M14.5%208.5c-.75%200-1.5.75-1.5%201.5v3h-3c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h3v3c0%20.75.75%201.5%201.5%201.5S16%2019.75%2016%2019v-3h3c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013h-3v-3c0-.75-.75-1.5-1.5-1.5%22%2F%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M24%2016v5.5c0%201.75-.75%202.5-2.5%202.5H16v-1l3-1.5-4-5.5%201-1%205.5%204%201.5-3zM6%2016l1.5%203%205.5-4%201%201-4%205.5%203%201.5v1H7.5C5.75%2024%205%2023.25%205%2021.5V16zm7-11v1l-3%201.5%204%205.5-1%201-5.5-4L6%2013H5V7.5C5%205.75%205.75%205%207.5%205zm11%202.5c0-1.75-.75-2.5-2.5-2.5H16v1l3%201.5-4%205.5%201%201%205.5-4%201.5%203h1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M18.5%2016c-1.75%200-2.5.75-2.5%202.5V24h1l1.5-3%205.5%204%201-1-4-5.5%203-1.5v-1zM13%2018.5c0-1.75-.75-2.5-2.5-2.5H5v1l3%201.5L4%2024l1%201%205.5-4%201.5%203h1zm3-8c0%201.75.75%202.5%202.5%202.5H24v-1l-3-1.5L25%205l-1-1-5.5%204L17%205h-1zM10.5%2013c1.75%200%202.5-.75%202.5-2.5V5h-1l-1.5%203L5%204%204%205l4%205.5L5%2012v1z%22%2F%3E%3C%2Fsvg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M24%2016v5.5c0%201.75-.75%202.5-2.5%202.5H16v-1l3-1.5-4-5.5%201-1%205.5%204%201.5-3zM6%2016l1.5%203%205.5-4%201%201-4%205.5%203%201.5v1H7.5C5.75%2024%205%2023.25%205%2021.5V16zm7-11v1l-3%201.5%204%205.5-1%201-5.5-4L6%2013H5V7.5C5%205.75%205.75%205%207.5%205zm11%202.5c0-1.75-.75-2.5-2.5-2.5H16v1l3%201.5-4%205.5%201%201%205.5-4%201.5%203h1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M18.5%2016c-1.75%200-2.5.75-2.5%202.5V24h1l1.5-3%205.5%204%201-1-4-5.5%203-1.5v-1zM13%2018.5c0-1.75-.75-2.5-2.5-2.5H5v1l3%201.5L4%2024l1%201%205.5-4%201.5%203h1zm3-8c0%201.75.75%202.5%202.5%202.5H24v-1l-3-1.5L25%205l-1-1-5.5%204L17%205h-1zM10.5%2013c1.75%200%202.5-.75%202.5-2.5V5h-1l-1.5%203L5%204%204%205l4%205.5L5%2012v1z%22%2F%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M24%2016v5.5c0%201.75-.75%202.5-2.5%202.5H16v-1l3-1.5-4-5.5%201-1%205.5%204%201.5-3zM6%2016l1.5%203%205.5-4%201%201-4%205.5%203%201.5v1H7.5C5.75%2024%205%2023.25%205%2021.5V16zm7-11v1l-3%201.5%204%205.5-1%201-5.5-4L6%2013H5V7.5C5%205.75%205.75%205%207.5%205zm11%202.5c0-1.75-.75-2.5-2.5-2.5H16v1l3%201.5-4%205.5%201%201%205.5-4%201.5%203h1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M18.5%2016c-1.75%200-2.5.75-2.5%202.5V24h1l1.5-3%205.5%204%201-1-4-5.5%203-1.5v-1zM13%2018.5c0-1.75-.75-2.5-2.5-2.5H5v1l3%201.5L4%2024l1%201%205.5-4%201.5%203h1zm3-8c0%201.75.75%202.5%202.5%202.5H24v-1l-3-1.5L25%205l-1-1-5.5%204L17%205h-1zM10.5%2013c1.75%200%202.5-.75%202.5-2.5V5h-1l-1.5%203L5%204%204%205l4%205.5L5%2012v1z%22%2F%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22m10.5%2014%204-8%204%208z%22%2F%3E%3Cpath%20fill%3D%22%23ccc%22%20d%3D%22m10.5%2016%204%208%204-8z%22%2F%3E%3C%2Fsvg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22m10.5%2014%204-8%204%208z%22%2F%3E%3Cpath%20fill%3D%22%23ccc%22%20d%3D%22m10.5%2016%204%208%204-8z%22%2F%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22m10.5%2014%204-8%204%208z%22%2F%3E%3Cpath%20fill%3D%22%23ccc%22%20d%3D%22m10.5%2016%204%208%204-8z%22%2F%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-globe .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2222%22%20height%3D%2222%22%20fill%3D%22none%22%20stroke%3D%22%23333%22%20viewBox%3D%220%200%2022%2022%22%3E%3Ccircle%20cx%3D%2211%22%20cy%3D%2211%22%20r%3D%228.5%22%2F%3E%3Cpath%20d%3D%22M17.5%2011c0%204.819-3.02%208.5-6.5%208.5S4.5%2015.819%204.5%2011%207.52%202.5%2011%202.5s6.5%203.681%206.5%208.5Z%22%2F%3E%3Cpath%20d%3D%22M13.5%2011c0%202.447-.331%204.64-.853%206.206-.262.785-.562%201.384-.872%201.777-.314.399-.58.517-.775.517s-.461-.118-.775-.517c-.31-.393-.61-.992-.872-1.777C8.831%2015.64%208.5%2013.446%208.5%2011s.331-4.64.853-6.206c.262-.785.562-1.384.872-1.777.314-.399.58-.517.775-.517s.461.118.775.517c.31.393.61.992.872%201.777.522%201.565.853%203.76.853%206.206Z%22%2F%3E%3Cpath%20d%3D%22M11%207.5c-1.909%200-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3%201.3%200%200%201-.224-.138q.07-.058.224-.138c.299-.151.763-.302%201.379-.434C7.378%205.666%209.091%205.5%2011%205.5s3.622.166%204.845.428c.616.132%201.08.283%201.379.434.105.053.177.1.224.138q-.07.058-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm0%209c-1.909%200-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3%201.3%200%200%201-.224-.138%201.3%201.3%200%200%201%20.224-.138c.299-.151.763-.302%201.379-.434C7.378%2014.666%209.091%2014.5%2011%2014.5s3.622.166%204.845.428c.616.132%201.08.283%201.379.434.105.053.177.1.224.138a1.3%201.3%200%200%201-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm0-4c-2.46%200-4.672-.222-6.255-.574-.796-.177-1.406-.38-1.805-.59a1.5%201.5%200%200%201-.39-.272.3.3%200%200%201-.047-.064.3.3%200%200%201%20.048-.064c.066-.073.189-.167.389-.272.399-.21%201.009-.413%201.805-.59C6.328%209.722%208.54%209.5%2011%209.5s4.672.222%206.256.574c.795.177%201.405.38%201.804.59.2.105.323.2.39.272a.3.3%200%200%201%20.047.064.3.3%200%200%201-.048.064%201.4%201.4%200%200%201-.389.272c-.399.21-1.009.413-1.804.59-1.584.352-3.796.574-6.256.574Zm-8.501-1.51v.002zm0%20.018v.002zm17.002.002v-.002zm0-.018v-.002z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-globe-enabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2222%22%20height%3D%2222%22%20fill%3D%22none%22%20stroke%3D%22%2333b5e5%22%20viewBox%3D%220%200%2022%2022%22%3E%3Ccircle%20cx%3D%2211%22%20cy%3D%2211%22%20r%3D%228.5%22%2F%3E%3Cpath%20d%3D%22M17.5%2011c0%204.819-3.02%208.5-6.5%208.5S4.5%2015.819%204.5%2011%207.52%202.5%2011%202.5s6.5%203.681%206.5%208.5Z%22%2F%3E%3Cpath%20d%3D%22M13.5%2011c0%202.447-.331%204.64-.853%206.206-.262.785-.562%201.384-.872%201.777-.314.399-.58.517-.775.517s-.461-.118-.775-.517c-.31-.393-.61-.992-.872-1.777C8.831%2015.64%208.5%2013.446%208.5%2011s.331-4.64.853-6.206c.262-.785.562-1.384.872-1.777.314-.399.58-.517.775-.517s.461.118.775.517c.31.393.61.992.872%201.777.522%201.565.853%203.76.853%206.206Z%22%2F%3E%3Cpath%20d%3D%22M11%207.5c-1.909%200-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3%201.3%200%200%201-.224-.138q.07-.058.224-.138c.299-.151.763-.302%201.379-.434C7.378%205.666%209.091%205.5%2011%205.5s3.622.166%204.845.428c.616.132%201.08.283%201.379.434.105.053.177.1.224.138q-.07.058-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm0%209c-1.909%200-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3%201.3%200%200%201-.224-.138%201.3%201.3%200%200%201%20.224-.138c.299-.151.763-.302%201.379-.434C7.378%2014.666%209.091%2014.5%2011%2014.5s3.622.166%204.845.428c.616.132%201.08.283%201.379.434.105.053.177.1.224.138a1.3%201.3%200%200%201-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm0-4c-2.46%200-4.672-.222-6.255-.574-.796-.177-1.406-.38-1.805-.59a1.5%201.5%200%200%201-.39-.272.3.3%200%200%201-.047-.064.3.3%200%200%201%20.048-.064c.066-.073.189-.167.389-.272.399-.21%201.009-.413%201.805-.59C6.328%209.722%208.54%209.5%2011%209.5s4.672.222%206.256.574c.795.177%201.405.38%201.804.59.2.105.323.2.39.272a.3.3%200%200%201%20.047.064.3.3%200%200%201-.048.064%201.4%201.4%200%200%201-.389.272c-.399.21-1.009.413-1.804.59-1.584.352-3.796.574-6.256.574Zm-8.501-1.51v.002zm0%20.018v.002zm17.002.002v-.002zm0-.018v-.002z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-terrain .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2222%22%20height%3D%2222%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2022%2022%22%3E%3Cpath%20d%3D%22m1.754%2013.406%204.453-4.851%203.09%203.09%203.281%203.277.969-.969-3.309-3.312%203.844-4.121%206.148%206.886h1.082v-.855l-7.207-8.07-4.84%205.187L6.169%206.57l-5.48%205.965v.871ZM.688%2016.844h20.625v1.375H.688Zm0%200%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-terrain-enabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2222%22%20height%3D%2222%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2022%2022%22%3E%3Cpath%20d%3D%22m1.754%2013.406%204.453-4.851%203.09%203.09%203.281%203.277.969-.969-3.309-3.312%203.844-4.121%206.148%206.886h1.082v-.855l-7.207-8.07-4.84%205.187L6.169%206.57l-5.48%205.965v.871ZM.688%2016.844h20.625v1.375H.688Zm0%200%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23aaa%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3Cpath%20fill%3D%22red%22%20d%3D%22m14%205%201%201-9%209-1-1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23e58978%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23e54e33%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-waiting .maplibregl-ctrl-icon{animation:maplibregl-spin 2s linear infinite}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23999%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3Cpath%20fill%3D%22red%22%20d%3D%22m14%205%201%201-9%209-1-1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23e58978%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23e54e33%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23666%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3Cpath%20fill%3D%22red%22%20d%3D%22m14%205%201%201-9%209-1-1z%22%2F%3E%3C%2Fsvg%3E")}}@keyframes maplibregl-spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}a.maplibregl-ctrl-logo{width:88px;height:23px;margin:0 0 -4px -4px;display:block;background-repeat:no-repeat;cursor:pointer;overflow:hidden;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2288%22%20height%3D%2223%22%20fill%3D%22none%22%3E%3Cpath%20fill%3D%22%23000%22%20fill-opacity%3D%22.4%22%20fill-rule%3D%22evenodd%22%20d%3D%22M17.408%2016.796h-1.827l2.501-12.095h.198l3.324%206.533.988%202.19.988-2.19%203.258-6.533h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.929%205.644h-.098l-2.914-5.644-.757-1.71-.345%201.71zm1.958-3.42-.726%203.663a1.255%201.255%200%200%201-1.232%201.011h-1.827a1.255%201.255%200%200%201-1.229-1.509l2.501-12.095a1.255%201.255%200%200%201%201.23-1.001h.197a1.25%201.25%200%200%201%201.12.685l3.19%206.273%203.125-6.263a1.25%201.25%200%200%201%201.123-.695h.181a1.255%201.255%200%200%201%201.227.991l1.443%206.71a5%205%200%200%201%20.314-.787l.009-.016a4.6%204.6%200%200%201%201.777-1.887c.782-.46%201.668-.667%202.611-.667a4.6%204.6%200%200%201%201.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255%201.255%200%200%201%201.212.925%201.255%201.255%200%200%201%201.212-.925h1.711c.284%200%20.545.094.755.252.613-.3%201.312-.45%202.075-.45%201.356%200%202.557.445%203.482%201.4q.47.48.763%201.064V4.701a1.255%201.255%200%200%201%201.255-1.255h1.86A1.255%201.255%200%200%201%2054.44%204.7v9.194h2.217c.19%200%20.37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42%202.42%200%200%201-.682-1.71c0-.665.267-1.253.735-1.7a2.45%202.45%200%200%201%201.722-.674%202.43%202.43%200%200%201%201.705.675q.318.302.504.683V4.7a1.255%201.255%200%200%201%201.255-1.255h1.744A1.255%201.255%200%200%201%2065.812%204.7v3.335a4.8%204.8%200%200%201%201.526-.246c.938%200%201.817.214%202.59.69a4.47%204.47%200%200%201%201.67%201.743v-.98a1.255%201.255%200%200%201%201.256-1.256h1.777c.233%200%20.451.064.639.174a3.4%203.4%200%200%201%201.567-.372c.346%200%20.861.02%201.285.232a1.25%201.25%200%200%201%20.689%201.004%204.7%204.7%200%200%201%20.853-.588c.795-.44%201.675-.647%202.61-.647%201.385%200%202.65.39%203.525%201.396.836.938%201.168%202.173%201.168%203.528q-.001.515-.056%201.051a1.255%201.255%200%200%201-.947%201.09l.408.952a1.255%201.255%200%200%201-.477%201.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06%200-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8%205.8%200%200%201-.548-2.512q0-.429.053-.843a1.3%201.3%200%200%201-.333-.086l-.166-.004c-.223%200-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255%201.255%200%200%201-1.256%201.256h-1.777a1.255%201.255%200%200%201-1.256-1.256V15.69l-.032.057a4.8%204.8%200%200%201-1.86%201.833%205.04%205.04%200%200%201-2.484.634%204.5%204.5%200%200%201-1.935-.424%201.25%201.25%200%200%201-.764.258h-1.71a1.255%201.255%200%200%201-1.256-1.255V7.687a2.4%202.4%200%200%201-.428.625c.253.23.412.561.412.93v7.553a1.255%201.255%200%200%201-1.256%201.255h-1.843a1.25%201.25%200%200%201-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255%201.255%200%200%201-1.256-1.255v-1.251l-.061.117a4.7%204.7%200%200%201-1.782%201.884%204.77%204.77%200%200%201-2.485.67%205.6%205.6%200%200%201-1.485-.188l.009%202.764a1.255%201.255%200%200%201-1.255%201.259h-1.729a1.255%201.255%200%200%201-1.255-1.255v-3.537a1.255%201.255%200%200%201-1.167.793h-1.679a1.25%201.25%200%200%201-.77-.263%204.5%204.5%200%200%201-1.945.429c-.885%200-1.724-.21-2.495-.632l-.017-.01a5%205%200%200%201-1.081-.836%201.255%201.255%200%200%201-1.254%201.312h-1.81a1.255%201.255%200%200%201-1.228-.99l-.782-3.625-2.044%203.939a1.25%201.25%200%200%201-1.115.676h-.098a1.25%201.25%200%200%201-1.116-.68l-2.061-3.994zM35.92%2016.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033%201.332h1.678V9.242h-1.694l-.033%201.267q-.133-.329-.526-.658l-.032-.028a3.2%203.2%200%200%200-.668-.428l-.27-.12a3.3%203.3%200%200%200-1.235-.23q-1.136-.001-1.974.493a3.36%203.36%200%200%200-1.3%201.382q-.445.89-.444%202.074%200%201.2.51%202.107a3.8%203.8%200%200%200%201.382%201.381%203.9%203.9%200%200%200%201.893.477q.795%200%201.455-.33zm-2.789-5.38q-.576.675-.575%201.762%200%201.102.559%201.794.576.675%201.645.675a2.25%202.25%200%200%200%20.934-.19%202.2%202.2%200%200%200%20.468-.29l.178-.161a2.2%202.2%200%200%200%20.397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2%202.2%200%200%200-.633-.709l-.13-.086-.047-.028a2.1%202.1%200%200%200-1.073-.285q-1.052%200-1.629.692zm2.316%202.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96%200%200%200-.353-.389.85.85%200%200%200-.464-.127c-.4%200-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945%200%20.506.122.801.27.99.097.11.266.224.68.224.303%200%20.504-.09.687-.269zm7.545%201.705a2.6%202.6%200%200%200%20.331.423q.319.33.755.548l.173.074q.65.255%201.49.255%201.02%200%201.844-.493a3.45%203.45%200%200%200%201.316-1.4q.493-.904.493-2.089%200-1.909-.988-2.913-.988-1.02-2.584-1.02-.898%200-1.575.347a3%203%200%200%200-.415.262l-.199.166a3.4%203.4%200%200%200-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296%201.119.297%201.07%200%201.645-.675.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.435%200-.835.16a2%202%200%200%200-.284.136%202%202%200%200%200-.363.254%202.2%202.2%200%200%200-.46.569l-.082.162a2.6%202.6%200%200%200-.213%201.072v.115q0%20.707.296%201.267l.135.211zm.964-.818a1.1%201.1%200%200%200%20.367.385.94.94%200%200%200%20.476.118c.423%200%20.59-.117.687-.23.159-.194.28-.478.28-.95%200-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1%201%200%200%200-.503.135l-.012.007a.86.86%200%200%200-.335.343c-.073.133-.132.324-.132.614v.115a1.4%201.4%200%200%200%20.14.66zm15.7-6.222q.347-.346.346-.856a1.05%201.05%200%200%200-.345-.79%201.18%201.18%200%200%200-.84-.329q-.51%200-.855.33a1.05%201.05%200%200%200-.346.79q0%20.51.346.855.345.346.856.346.51%200%20.839-.346zm4.337%209.314.033-1.332q.191.403.59.747l.098.081a4%204%200%200%200%20.316.224l.223.122a3.2%203.2%200%200%200%201.44.322%203.8%203.8%200%200%200%201.875-.477%203.5%203.5%200%200%200%201.382-1.366q.527-.89.526-2.09%200-1.184-.444-2.073a3.24%203.24%200%200%200-1.283-1.399q-.823-.51-1.942-.51a3.5%203.5%200%200%200-1.527.344l-.086.043-.165.09a3%203%200%200%200-.33.214q-.432.315-.656.707a2%202%200%200%200-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5%202.5%200%200%200%20.566.7q.117.098.245.18l.144.08a2.1%202.1%200%200%200%20.975.232q1.07%200%201.645-.675.576-.69.576-1.778%200-1.102-.576-1.777-.56-.691-1.645-.692a2.2%202.2%200%200%200-1.015.235q-.22.113-.415.282l-.15.142a2.1%202.1%200%200%200-.42.594q-.223.479-.223%201.1v.115q0%20.705.293%201.26zm2.616-.293c.157-.191.28-.479.28-.967%200-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87%200%200%200-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0%20.285.057.499.144.669a1.1%201.1%200%200%200%20.367.405c.137.082.28.123.455.123.423%200%20.59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493%200%20.642.099l.247-1.794q-.196-.099-.717-.099a2.3%202.3%200%200%200-.545.063%202%202%200%200%200-.411.148%202.2%202.2%200%200%200-.4.249%202.5%202.5%200%200%200-.485.499%202.7%202.7%200%200%200-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5%201.5%200%200%201%20.466-.636%202.5%202.5%200%200%201%20.399-.253%202%202%200%200%201%20.224-.099zm9.784%202.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46%203.46%200%200%200-1.4%201.382q-.493.906-.493%202.106%200%201.07.428%201.975.428.89%201.332%201.432.906.526%202.255.526.973%200%201.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954%200-1.497-.444a1.6%201.6%200%200%201-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1%201%200%200%200-.156-.176q-.46-.428-1.316-.428-.986%200-1.494.604-.379.45-.494%201.234zm-27.053%202.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z%22%2F%3E%3Cpath%20fill%3D%22%23fff%22%20d%3D%22m19.63%2011.151-.757-1.71-.345%201.71-1.12%205.644h-1.827L18.083%204.7h.197l3.325%206.533.988%202.19.988-2.19L26.839%204.7h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.93%205.644h-.098l-2.913-5.644zm14.836%205.81q-1.02%200-1.893-.478a3.8%203.8%200%200%201-1.381-1.382q-.51-.906-.51-2.106%200-1.185.444-2.074a3.36%203.36%200%200%201%201.3-1.382q.839-.494%201.974-.494a3.3%203.3%200%200%201%201.234.231%203.3%203.3%200%200%201%20.97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02%201.053a3.17%203.17%200%200%201-1.662.444zm.296-1.482q.938%200%201.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2%202.2%200%200%200-.807-.872%202.1%202.1%200%200%200-1.119-.313q-1.053%200-1.629.692-.575.675-.575%201.76%200%201.103.559%201.795.577.675%201.645.675zm6.521-6.237h1.711v1.4q.906-1.597%202.83-1.597%201.596%200%202.584%201.02.988%201.005.988%202.914%200%201.185-.493%202.09a3.46%203.46%200%200%201-1.316%201.399%203.5%203.5%200%200%201-1.844.493q-.954%200-1.662-.329a2.67%202.67%200%200%201-1.086-.97l.017%205.134h-1.728zm4.048%206.22q1.07%200%201.645-.674.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.592%200-1.12.296-.51.28-.822.823-.296.527-.296%201.234v.115q0%20.708.296%201.267.313.543.823.855.51.296%201.119.297z%22%2F%3E%3Cpath%20fill%3D%22%23e1e3e9%22%20d%3D%22M51.325%204.7h1.86v10.45h3.473v1.646h-5.333zm7.12%204.542h1.843v7.553h-1.843zm.905-1.415a1.16%201.16%200%200%201-.856-.346%201.17%201.17%200%200%201-.346-.856%201.05%201.05%200%200%201%20.346-.79q.346-.329.856-.329.494%200%20.839.33a1.05%201.05%200%200%201%20.345.79%201.16%201.16%200%200%201-.345.855q-.33.346-.84.346zm7.875%209.133a3.17%203.17%200%200%201-1.662-.444q-.723-.46-1.004-1.053l-.033%201.332h-1.71V4.701h1.743v4.657l-.082%201.283q.279-.658%201.086-1.119a3.5%203.5%200%200%201%201.778-.477q1.119%200%201.942.51a3.24%203.24%200%200%201%201.283%201.4q.445.888.444%202.072%200%201.201-.526%202.09a3.5%203.5%200%200%201-1.382%201.366%203.8%203.8%200%200%201-1.876.477zm-.296-1.481q1.069%200%201.645-.675.577-.69.577-1.778%200-1.102-.577-1.776-.56-.691-1.645-.692a2.12%202.12%200%200%200-1.58.659q-.642.641-.642%201.694v.115q0%20.71.296%201.267a2.4%202.4%200%200%200%20.807.872%202.1%202.1%200%200%200%201.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14%202.14%200%200%201%201.349-.46q.527%200%20.724.098l-.247%201.794q-.149-.099-.642-.099-.774%200-1.416.494-.626.493-.626%201.58v3.883h-1.777V9.242zm9.534%207.718q-1.35%200-2.255-.526-.904-.543-1.332-1.432a4.6%204.6%200%200%201-.428-1.975q0-1.2.493-2.106a3.46%203.46%200%200%201%201.4-1.382q.889-.495%202.007-.494%201.744%200%202.584.97.855.956.856%202.7%200%20.444-.05.92h-5.43q.18%201.005.708%201.45.542.443%201.497.443.79%200%201.3-.131a4%204%200%200%200%20.938-.362l.542%201.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728%200-1.991%201.86z%22%2F%3E%3Cpath%20d%3D%22M5.074%2015.948a.484.657%200%200%200-.486.659v1.84a.484.657%200%200%200%20.486.659h4.101a.484.657%200%200%200%20.486-.659v-1.84a.484.657%200%200%200-.486-.659zm3.56%201.16H5.617v.838h3.017z%22%20style%3D%22fill%3A%23fff%3Bfill-rule%3Aevenodd%3Bstroke-width%3A1.03600001%22%2F%3E%3Cg%20style%3D%22stroke-width%3A1.12603545%22%3E%3Cpath%20d%3D%22M-9.408-1.416c-3.833-.025-7.056%202.912-7.08%206.615-.02%203.08%201.653%204.832%203.107%206.268.903.892%201.721%201.74%202.32%202.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87%201.87%200%200%200-.362%201.121l-.011%201.877c-.003.402.104.787.347%201.125.244.338.688.653%201.23.656l4.142.028c.542.003.99-.306%201.238-.641a1.87%201.87%200%200%200%20.363-1.121l.012-1.875a1.87%201.87%200%200%200-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145%201.425-1.983%202.348-2.87%201.473-1.414%203.18-3.149%203.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006%201.1v.002c3.274.02%205.92%202.532%205.9%205.6-.017%202.706-1.39%204.026-2.863%205.44-1.034.994-2.118%202.033-2.814%203.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34%200%200%201-.226.084.34.34%200%200%201-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067%202.7-5.545%205.975-5.523m-.02%202.826c-1.62-.01-2.944%201.315-2.955%202.96-.01%201.646%201.295%202.988%202.916%202.999h.002c1.621.01%202.943-1.316%202.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005%201.1c1.017.006%201.829.83%201.822%201.89s-.83%201.874-1.848%201.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874%201.848-1.868m-2.155%2011.857%204.14.025c.271.002.49.305.487.676l-.013%201.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668%22%20style%3D%22color%3A%23000%3Bfont-style%3Anormal%3Bfont-variant%3Anormal%3Bfont-weight%3A400%3Bfont-stretch%3Anormal%3Bfont-size%3Amedium%3Bline-height%3Anormal%3Bfont-family%3Asans-serif%3Bfont-variant-ligatures%3Anormal%3Bfont-variant-position%3Anormal%3Bfont-variant-caps%3Anormal%3Bfont-variant-numeric%3Anormal%3Bfont-variant-alternates%3Anormal%3Bfont-feature-settings%3Anormal%3Btext-indent%3A0%3Btext-align%3Astart%3Btext-decoration%3Anone%3Btext-decoration-line%3Anone%3Btext-decoration-style%3Asolid%3Btext-decoration-color%3A%23000%3Bletter-spacing%3Anormal%3Bword-spacing%3Anormal%3Btext-transform%3Anone%3Bwriting-mode%3Alr-tb%3Bdirection%3Altr%3Btext-orientation%3Amixed%3Bdominant-baseline%3Aauto%3Bbaseline-shift%3Abaseline%3Btext-anchor%3Astart%3Bwhite-space%3Anormal%3Bshape-padding%3A0%3Bclip-rule%3Aevenodd%3Bdisplay%3Ainline%3Boverflow%3Avisible%3Bvisibility%3Avisible%3Bopacity%3A1%3Bisolation%3Aauto%3Bmix-blend-mode%3Anormal%3Bcolor-interpolation%3AsRGB%3Bcolor-interpolation-filters%3AlinearRGB%3Bsolid-color%3A%23000%3Bsolid-opacity%3A1%3Bvector-effect%3Anone%3Bfill%3A%23000%3Bfill-opacity%3A.4%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-linecap%3Abutt%3Bstroke-linejoin%3Amiter%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-dashoffset%3A0%3Bstroke-opacity%3A1%3Bcolor-rendering%3Aauto%3Bimage-rendering%3Aauto%3Bshape-rendering%3Aauto%3Btext-rendering%3Aauto%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-9.415-.316C-12.69-.338-15.37%202.14-15.39%205.207c-.017%202.716%201.326%204.041%202.78%205.477%201.013%201%202.081%202.055%202.78%203.67l.092.076a.34.34%200%200%200%20.225.086.34.34%200%200%200%20.227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6%201.78-2.64%202.814-3.634%201.473-1.414%202.847-2.733%202.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057%208.784c1.621.011%202.944-1.315%202.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945%201.315-2.955%202.96s1.295%202.989%202.916%203%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23e1e3e9%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-11.594%2015.465c-.27-.002-.492.297-.494.668l-.012%201.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23fff%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E")}a.maplibregl-ctrl-logo.maplibregl-compact{width:14px}@media (forced-colors:active){a.maplibregl-ctrl-logo{background-color:transparent;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2288%22%20height%3D%2223%22%20fill%3D%22none%22%3E%3Cpath%20fill%3D%22%23000%22%20fill-opacity%3D%22.4%22%20fill-rule%3D%22evenodd%22%20d%3D%22M17.408%2016.796h-1.827l2.501-12.095h.198l3.324%206.533.988%202.19.988-2.19%203.258-6.533h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.929%205.644h-.098l-2.914-5.644-.757-1.71-.345%201.71zm1.958-3.42-.726%203.663a1.255%201.255%200%200%201-1.232%201.011h-1.827a1.255%201.255%200%200%201-1.229-1.509l2.501-12.095a1.255%201.255%200%200%201%201.23-1.001h.197a1.25%201.25%200%200%201%201.12.685l3.19%206.273%203.125-6.263a1.25%201.25%200%200%201%201.123-.695h.181a1.255%201.255%200%200%201%201.227.991l1.443%206.71a5%205%200%200%201%20.314-.787l.009-.016a4.6%204.6%200%200%201%201.777-1.887c.782-.46%201.668-.667%202.611-.667a4.6%204.6%200%200%201%201.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255%201.255%200%200%201%201.212.925%201.255%201.255%200%200%201%201.212-.925h1.711c.284%200%20.545.094.755.252.613-.3%201.312-.45%202.075-.45%201.356%200%202.557.445%203.482%201.4q.47.48.763%201.064V4.701a1.255%201.255%200%200%201%201.255-1.255h1.86A1.255%201.255%200%200%201%2054.44%204.7v9.194h2.217c.19%200%20.37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42%202.42%200%200%201-.682-1.71c0-.665.267-1.253.735-1.7a2.45%202.45%200%200%201%201.722-.674%202.43%202.43%200%200%201%201.705.675q.318.302.504.683V4.7a1.255%201.255%200%200%201%201.255-1.255h1.744A1.255%201.255%200%200%201%2065.812%204.7v3.335a4.8%204.8%200%200%201%201.526-.246c.938%200%201.817.214%202.59.69a4.47%204.47%200%200%201%201.67%201.743v-.98a1.255%201.255%200%200%201%201.256-1.256h1.777c.233%200%20.451.064.639.174a3.4%203.4%200%200%201%201.567-.372c.346%200%20.861.02%201.285.232a1.25%201.25%200%200%201%20.689%201.004%204.7%204.7%200%200%201%20.853-.588c.795-.44%201.675-.647%202.61-.647%201.385%200%202.65.39%203.525%201.396.836.938%201.168%202.173%201.168%203.528q-.001.515-.056%201.051a1.255%201.255%200%200%201-.947%201.09l.408.952a1.255%201.255%200%200%201-.477%201.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06%200-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8%205.8%200%200%201-.548-2.512q0-.429.053-.843a1.3%201.3%200%200%201-.333-.086l-.166-.004c-.223%200-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255%201.255%200%200%201-1.256%201.256h-1.777a1.255%201.255%200%200%201-1.256-1.256V15.69l-.032.057a4.8%204.8%200%200%201-1.86%201.833%205.04%205.04%200%200%201-2.484.634%204.5%204.5%200%200%201-1.935-.424%201.25%201.25%200%200%201-.764.258h-1.71a1.255%201.255%200%200%201-1.256-1.255V7.687a2.4%202.4%200%200%201-.428.625c.253.23.412.561.412.93v7.553a1.255%201.255%200%200%201-1.256%201.255h-1.843a1.25%201.25%200%200%201-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255%201.255%200%200%201-1.256-1.255v-1.251l-.061.117a4.7%204.7%200%200%201-1.782%201.884%204.77%204.77%200%200%201-2.485.67%205.6%205.6%200%200%201-1.485-.188l.009%202.764a1.255%201.255%200%200%201-1.255%201.259h-1.729a1.255%201.255%200%200%201-1.255-1.255v-3.537a1.255%201.255%200%200%201-1.167.793h-1.679a1.25%201.25%200%200%201-.77-.263%204.5%204.5%200%200%201-1.945.429c-.885%200-1.724-.21-2.495-.632l-.017-.01a5%205%200%200%201-1.081-.836%201.255%201.255%200%200%201-1.254%201.312h-1.81a1.255%201.255%200%200%201-1.228-.99l-.782-3.625-2.044%203.939a1.25%201.25%200%200%201-1.115.676h-.098a1.25%201.25%200%200%201-1.116-.68l-2.061-3.994zM35.92%2016.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033%201.332h1.678V9.242h-1.694l-.033%201.267q-.133-.329-.526-.658l-.032-.028a3.2%203.2%200%200%200-.668-.428l-.27-.12a3.3%203.3%200%200%200-1.235-.23q-1.136-.001-1.974.493a3.36%203.36%200%200%200-1.3%201.382q-.445.89-.444%202.074%200%201.2.51%202.107a3.8%203.8%200%200%200%201.382%201.381%203.9%203.9%200%200%200%201.893.477q.795%200%201.455-.33zm-2.789-5.38q-.576.675-.575%201.762%200%201.102.559%201.794.576.675%201.645.675a2.25%202.25%200%200%200%20.934-.19%202.2%202.2%200%200%200%20.468-.29l.178-.161a2.2%202.2%200%200%200%20.397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2%202.2%200%200%200-.633-.709l-.13-.086-.047-.028a2.1%202.1%200%200%200-1.073-.285q-1.052%200-1.629.692zm2.316%202.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96%200%200%200-.353-.389.85.85%200%200%200-.464-.127c-.4%200-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945%200%20.506.122.801.27.99.097.11.266.224.68.224.303%200%20.504-.09.687-.269zm7.545%201.705a2.6%202.6%200%200%200%20.331.423q.319.33.755.548l.173.074q.65.255%201.49.255%201.02%200%201.844-.493a3.45%203.45%200%200%200%201.316-1.4q.493-.904.493-2.089%200-1.909-.988-2.913-.988-1.02-2.584-1.02-.898%200-1.575.347a3%203%200%200%200-.415.262l-.199.166a3.4%203.4%200%200%200-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296%201.119.297%201.07%200%201.645-.675.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.435%200-.835.16a2%202%200%200%200-.284.136%202%202%200%200%200-.363.254%202.2%202.2%200%200%200-.46.569l-.082.162a2.6%202.6%200%200%200-.213%201.072v.115q0%20.707.296%201.267l.135.211zm.964-.818a1.1%201.1%200%200%200%20.367.385.94.94%200%200%200%20.476.118c.423%200%20.59-.117.687-.23.159-.194.28-.478.28-.95%200-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1%201%200%200%200-.503.135l-.012.007a.86.86%200%200%200-.335.343c-.073.133-.132.324-.132.614v.115a1.4%201.4%200%200%200%20.14.66zm15.7-6.222q.347-.346.346-.856a1.05%201.05%200%200%200-.345-.79%201.18%201.18%200%200%200-.84-.329q-.51%200-.855.33a1.05%201.05%200%200%200-.346.79q0%20.51.346.855.345.346.856.346.51%200%20.839-.346zm4.337%209.314.033-1.332q.191.403.59.747l.098.081a4%204%200%200%200%20.316.224l.223.122a3.2%203.2%200%200%200%201.44.322%203.8%203.8%200%200%200%201.875-.477%203.5%203.5%200%200%200%201.382-1.366q.527-.89.526-2.09%200-1.184-.444-2.073a3.24%203.24%200%200%200-1.283-1.399q-.823-.51-1.942-.51a3.5%203.5%200%200%200-1.527.344l-.086.043-.165.09a3%203%200%200%200-.33.214q-.432.315-.656.707a2%202%200%200%200-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5%202.5%200%200%200%20.566.7q.117.098.245.18l.144.08a2.1%202.1%200%200%200%20.975.232q1.07%200%201.645-.675.576-.69.576-1.778%200-1.102-.576-1.777-.56-.691-1.645-.692a2.2%202.2%200%200%200-1.015.235q-.22.113-.415.282l-.15.142a2.1%202.1%200%200%200-.42.594q-.223.479-.223%201.1v.115q0%20.705.293%201.26zm2.616-.293c.157-.191.28-.479.28-.967%200-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87%200%200%200-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0%20.285.057.499.144.669a1.1%201.1%200%200%200%20.367.405c.137.082.28.123.455.123.423%200%20.59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493%200%20.642.099l.247-1.794q-.196-.099-.717-.099a2.3%202.3%200%200%200-.545.063%202%202%200%200%200-.411.148%202.2%202.2%200%200%200-.4.249%202.5%202.5%200%200%200-.485.499%202.7%202.7%200%200%200-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5%201.5%200%200%201%20.466-.636%202.5%202.5%200%200%201%20.399-.253%202%202%200%200%201%20.224-.099zm9.784%202.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46%203.46%200%200%200-1.4%201.382q-.493.906-.493%202.106%200%201.07.428%201.975.428.89%201.332%201.432.906.526%202.255.526.973%200%201.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954%200-1.497-.444a1.6%201.6%200%200%201-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1%201%200%200%200-.156-.176q-.46-.428-1.316-.428-.986%200-1.494.604-.379.45-.494%201.234zm-27.053%202.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z%22%2F%3E%3Cpath%20fill%3D%22%23fff%22%20d%3D%22m19.63%2011.151-.757-1.71-.345%201.71-1.12%205.644h-1.827L18.083%204.7h.197l3.325%206.533.988%202.19.988-2.19L26.839%204.7h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.93%205.644h-.098l-2.913-5.644zm14.836%205.81q-1.02%200-1.893-.478a3.8%203.8%200%200%201-1.381-1.382q-.51-.906-.51-2.106%200-1.185.444-2.074a3.36%203.36%200%200%201%201.3-1.382q.839-.494%201.974-.494a3.3%203.3%200%200%201%201.234.231%203.3%203.3%200%200%201%20.97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02%201.053a3.17%203.17%200%200%201-1.662.444zm.296-1.482q.938%200%201.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2%202.2%200%200%200-.807-.872%202.1%202.1%200%200%200-1.119-.313q-1.053%200-1.629.692-.575.675-.575%201.76%200%201.103.559%201.795.577.675%201.645.675zm6.521-6.237h1.711v1.4q.906-1.597%202.83-1.597%201.596%200%202.584%201.02.988%201.005.988%202.914%200%201.185-.493%202.09a3.46%203.46%200%200%201-1.316%201.399%203.5%203.5%200%200%201-1.844.493q-.954%200-1.662-.329a2.67%202.67%200%200%201-1.086-.97l.017%205.134h-1.728zm4.048%206.22q1.07%200%201.645-.674.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.592%200-1.12.296-.51.28-.822.823-.296.527-.296%201.234v.115q0%20.708.296%201.267.313.543.823.855.51.296%201.119.297z%22%2F%3E%3Cpath%20fill%3D%22%23e1e3e9%22%20d%3D%22M51.325%204.7h1.86v10.45h3.473v1.646h-5.333zm7.12%204.542h1.843v7.553h-1.843zm.905-1.415a1.16%201.16%200%200%201-.856-.346%201.17%201.17%200%200%201-.346-.856%201.05%201.05%200%200%201%20.346-.79q.346-.329.856-.329.494%200%20.839.33a1.05%201.05%200%200%201%20.345.79%201.16%201.16%200%200%201-.345.855q-.33.346-.84.346zm7.875%209.133a3.17%203.17%200%200%201-1.662-.444q-.723-.46-1.004-1.053l-.033%201.332h-1.71V4.701h1.743v4.657l-.082%201.283q.279-.658%201.086-1.119a3.5%203.5%200%200%201%201.778-.477q1.119%200%201.942.51a3.24%203.24%200%200%201%201.283%201.4q.445.888.444%202.072%200%201.201-.526%202.09a3.5%203.5%200%200%201-1.382%201.366%203.8%203.8%200%200%201-1.876.477zm-.296-1.481q1.069%200%201.645-.675.577-.69.577-1.778%200-1.102-.577-1.776-.56-.691-1.645-.692a2.12%202.12%200%200%200-1.58.659q-.642.641-.642%201.694v.115q0%20.71.296%201.267a2.4%202.4%200%200%200%20.807.872%202.1%202.1%200%200%200%201.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14%202.14%200%200%201%201.349-.46q.527%200%20.724.098l-.247%201.794q-.149-.099-.642-.099-.774%200-1.416.494-.626.493-.626%201.58v3.883h-1.777V9.242zm9.534%207.718q-1.35%200-2.255-.526-.904-.543-1.332-1.432a4.6%204.6%200%200%201-.428-1.975q0-1.2.493-2.106a3.46%203.46%200%200%201%201.4-1.382q.889-.495%202.007-.494%201.744%200%202.584.97.855.956.856%202.7%200%20.444-.05.92h-5.43q.18%201.005.708%201.45.542.443%201.497.443.79%200%201.3-.131a4%204%200%200%200%20.938-.362l.542%201.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728%200-1.991%201.86z%22%2F%3E%3Cpath%20d%3D%22M5.074%2015.948a.484.657%200%200%200-.486.659v1.84a.484.657%200%200%200%20.486.659h4.101a.484.657%200%200%200%20.486-.659v-1.84a.484.657%200%200%200-.486-.659zm3.56%201.16H5.617v.838h3.017z%22%20style%3D%22fill%3A%23fff%3Bfill-rule%3Aevenodd%3Bstroke-width%3A1.03600001%22%2F%3E%3Cg%20style%3D%22stroke-width%3A1.12603545%22%3E%3Cpath%20d%3D%22M-9.408-1.416c-3.833-.025-7.056%202.912-7.08%206.615-.02%203.08%201.653%204.832%203.107%206.268.903.892%201.721%201.74%202.32%202.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87%201.87%200%200%200-.362%201.121l-.011%201.877c-.003.402.104.787.347%201.125.244.338.688.653%201.23.656l4.142.028c.542.003.99-.306%201.238-.641a1.87%201.87%200%200%200%20.363-1.121l.012-1.875a1.87%201.87%200%200%200-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145%201.425-1.983%202.348-2.87%201.473-1.414%203.18-3.149%203.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006%201.1v.002c3.274.02%205.92%202.532%205.9%205.6-.017%202.706-1.39%204.026-2.863%205.44-1.034.994-2.118%202.033-2.814%203.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34%200%200%201-.226.084.34.34%200%200%201-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067%202.7-5.545%205.975-5.523m-.02%202.826c-1.62-.01-2.944%201.315-2.955%202.96-.01%201.646%201.295%202.988%202.916%202.999h.002c1.621.01%202.943-1.316%202.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005%201.1c1.017.006%201.829.83%201.822%201.89s-.83%201.874-1.848%201.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874%201.848-1.868m-2.155%2011.857%204.14.025c.271.002.49.305.487.676l-.013%201.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668%22%20style%3D%22color%3A%23000%3Bfont-style%3Anormal%3Bfont-variant%3Anormal%3Bfont-weight%3A400%3Bfont-stretch%3Anormal%3Bfont-size%3Amedium%3Bline-height%3Anormal%3Bfont-family%3Asans-serif%3Bfont-variant-ligatures%3Anormal%3Bfont-variant-position%3Anormal%3Bfont-variant-caps%3Anormal%3Bfont-variant-numeric%3Anormal%3Bfont-variant-alternates%3Anormal%3Bfont-feature-settings%3Anormal%3Btext-indent%3A0%3Btext-align%3Astart%3Btext-decoration%3Anone%3Btext-decoration-line%3Anone%3Btext-decoration-style%3Asolid%3Btext-decoration-color%3A%23000%3Bletter-spacing%3Anormal%3Bword-spacing%3Anormal%3Btext-transform%3Anone%3Bwriting-mode%3Alr-tb%3Bdirection%3Altr%3Btext-orientation%3Amixed%3Bdominant-baseline%3Aauto%3Bbaseline-shift%3Abaseline%3Btext-anchor%3Astart%3Bwhite-space%3Anormal%3Bshape-padding%3A0%3Bclip-rule%3Aevenodd%3Bdisplay%3Ainline%3Boverflow%3Avisible%3Bvisibility%3Avisible%3Bopacity%3A1%3Bisolation%3Aauto%3Bmix-blend-mode%3Anormal%3Bcolor-interpolation%3AsRGB%3Bcolor-interpolation-filters%3AlinearRGB%3Bsolid-color%3A%23000%3Bsolid-opacity%3A1%3Bvector-effect%3Anone%3Bfill%3A%23000%3Bfill-opacity%3A.4%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-linecap%3Abutt%3Bstroke-linejoin%3Amiter%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-dashoffset%3A0%3Bstroke-opacity%3A1%3Bcolor-rendering%3Aauto%3Bimage-rendering%3Aauto%3Bshape-rendering%3Aauto%3Btext-rendering%3Aauto%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-9.415-.316C-12.69-.338-15.37%202.14-15.39%205.207c-.017%202.716%201.326%204.041%202.78%205.477%201.013%201%202.081%202.055%202.78%203.67l.092.076a.34.34%200%200%200%20.225.086.34.34%200%200%200%20.227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6%201.78-2.64%202.814-3.634%201.473-1.414%202.847-2.733%202.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057%208.784c1.621.011%202.944-1.315%202.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945%201.315-2.955%202.96s1.295%202.989%202.916%203%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23e1e3e9%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-11.594%2015.465c-.27-.002-.492.297-.494.668l-.012%201.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23fff%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){a.maplibregl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2288%22%20height%3D%2223%22%20fill%3D%22none%22%3E%3Cpath%20fill%3D%22%23000%22%20fill-opacity%3D%22.4%22%20fill-rule%3D%22evenodd%22%20d%3D%22M17.408%2016.796h-1.827l2.501-12.095h.198l3.324%206.533.988%202.19.988-2.19%203.258-6.533h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.929%205.644h-.098l-2.914-5.644-.757-1.71-.345%201.71zm1.958-3.42-.726%203.663a1.255%201.255%200%200%201-1.232%201.011h-1.827a1.255%201.255%200%200%201-1.229-1.509l2.501-12.095a1.255%201.255%200%200%201%201.23-1.001h.197a1.25%201.25%200%200%201%201.12.685l3.19%206.273%203.125-6.263a1.25%201.25%200%200%201%201.123-.695h.181a1.255%201.255%200%200%201%201.227.991l1.443%206.71a5%205%200%200%201%20.314-.787l.009-.016a4.6%204.6%200%200%201%201.777-1.887c.782-.46%201.668-.667%202.611-.667a4.6%204.6%200%200%201%201.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255%201.255%200%200%201%201.212.925%201.255%201.255%200%200%201%201.212-.925h1.711c.284%200%20.545.094.755.252.613-.3%201.312-.45%202.075-.45%201.356%200%202.557.445%203.482%201.4q.47.48.763%201.064V4.701a1.255%201.255%200%200%201%201.255-1.255h1.86A1.255%201.255%200%200%201%2054.44%204.7v9.194h2.217c.19%200%20.37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42%202.42%200%200%201-.682-1.71c0-.665.267-1.253.735-1.7a2.45%202.45%200%200%201%201.722-.674%202.43%202.43%200%200%201%201.705.675q.318.302.504.683V4.7a1.255%201.255%200%200%201%201.255-1.255h1.744A1.255%201.255%200%200%201%2065.812%204.7v3.335a4.8%204.8%200%200%201%201.526-.246c.938%200%201.817.214%202.59.69a4.47%204.47%200%200%201%201.67%201.743v-.98a1.255%201.255%200%200%201%201.256-1.256h1.777c.233%200%20.451.064.639.174a3.4%203.4%200%200%201%201.567-.372c.346%200%20.861.02%201.285.232a1.25%201.25%200%200%201%20.689%201.004%204.7%204.7%200%200%201%20.853-.588c.795-.44%201.675-.647%202.61-.647%201.385%200%202.65.39%203.525%201.396.836.938%201.168%202.173%201.168%203.528q-.001.515-.056%201.051a1.255%201.255%200%200%201-.947%201.09l.408.952a1.255%201.255%200%200%201-.477%201.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06%200-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8%205.8%200%200%201-.548-2.512q0-.429.053-.843a1.3%201.3%200%200%201-.333-.086l-.166-.004c-.223%200-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255%201.255%200%200%201-1.256%201.256h-1.777a1.255%201.255%200%200%201-1.256-1.256V15.69l-.032.057a4.8%204.8%200%200%201-1.86%201.833%205.04%205.04%200%200%201-2.484.634%204.5%204.5%200%200%201-1.935-.424%201.25%201.25%200%200%201-.764.258h-1.71a1.255%201.255%200%200%201-1.256-1.255V7.687a2.4%202.4%200%200%201-.428.625c.253.23.412.561.412.93v7.553a1.255%201.255%200%200%201-1.256%201.255h-1.843a1.25%201.25%200%200%201-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255%201.255%200%200%201-1.256-1.255v-1.251l-.061.117a4.7%204.7%200%200%201-1.782%201.884%204.77%204.77%200%200%201-2.485.67%205.6%205.6%200%200%201-1.485-.188l.009%202.764a1.255%201.255%200%200%201-1.255%201.259h-1.729a1.255%201.255%200%200%201-1.255-1.255v-3.537a1.255%201.255%200%200%201-1.167.793h-1.679a1.25%201.25%200%200%201-.77-.263%204.5%204.5%200%200%201-1.945.429c-.885%200-1.724-.21-2.495-.632l-.017-.01a5%205%200%200%201-1.081-.836%201.255%201.255%200%200%201-1.254%201.312h-1.81a1.255%201.255%200%200%201-1.228-.99l-.782-3.625-2.044%203.939a1.25%201.25%200%200%201-1.115.676h-.098a1.25%201.25%200%200%201-1.116-.68l-2.061-3.994zM35.92%2016.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033%201.332h1.678V9.242h-1.694l-.033%201.267q-.133-.329-.526-.658l-.032-.028a3.2%203.2%200%200%200-.668-.428l-.27-.12a3.3%203.3%200%200%200-1.235-.23q-1.136-.001-1.974.493a3.36%203.36%200%200%200-1.3%201.382q-.445.89-.444%202.074%200%201.2.51%202.107a3.8%203.8%200%200%200%201.382%201.381%203.9%203.9%200%200%200%201.893.477q.795%200%201.455-.33zm-2.789-5.38q-.576.675-.575%201.762%200%201.102.559%201.794.576.675%201.645.675a2.25%202.25%200%200%200%20.934-.19%202.2%202.2%200%200%200%20.468-.29l.178-.161a2.2%202.2%200%200%200%20.397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2%202.2%200%200%200-.633-.709l-.13-.086-.047-.028a2.1%202.1%200%200%200-1.073-.285q-1.052%200-1.629.692zm2.316%202.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96%200%200%200-.353-.389.85.85%200%200%200-.464-.127c-.4%200-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945%200%20.506.122.801.27.99.097.11.266.224.68.224.303%200%20.504-.09.687-.269zm7.545%201.705a2.6%202.6%200%200%200%20.331.423q.319.33.755.548l.173.074q.65.255%201.49.255%201.02%200%201.844-.493a3.45%203.45%200%200%200%201.316-1.4q.493-.904.493-2.089%200-1.909-.988-2.913-.988-1.02-2.584-1.02-.898%200-1.575.347a3%203%200%200%200-.415.262l-.199.166a3.4%203.4%200%200%200-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296%201.119.297%201.07%200%201.645-.675.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.435%200-.835.16a2%202%200%200%200-.284.136%202%202%200%200%200-.363.254%202.2%202.2%200%200%200-.46.569l-.082.162a2.6%202.6%200%200%200-.213%201.072v.115q0%20.707.296%201.267l.135.211zm.964-.818a1.1%201.1%200%200%200%20.367.385.94.94%200%200%200%20.476.118c.423%200%20.59-.117.687-.23.159-.194.28-.478.28-.95%200-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1%201%200%200%200-.503.135l-.012.007a.86.86%200%200%200-.335.343c-.073.133-.132.324-.132.614v.115a1.4%201.4%200%200%200%20.14.66zm15.7-6.222q.347-.346.346-.856a1.05%201.05%200%200%200-.345-.79%201.18%201.18%200%200%200-.84-.329q-.51%200-.855.33a1.05%201.05%200%200%200-.346.79q0%20.51.346.855.345.346.856.346.51%200%20.839-.346zm4.337%209.314.033-1.332q.191.403.59.747l.098.081a4%204%200%200%200%20.316.224l.223.122a3.2%203.2%200%200%200%201.44.322%203.8%203.8%200%200%200%201.875-.477%203.5%203.5%200%200%200%201.382-1.366q.527-.89.526-2.09%200-1.184-.444-2.073a3.24%203.24%200%200%200-1.283-1.399q-.823-.51-1.942-.51a3.5%203.5%200%200%200-1.527.344l-.086.043-.165.09a3%203%200%200%200-.33.214q-.432.315-.656.707a2%202%200%200%200-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5%202.5%200%200%200%20.566.7q.117.098.245.18l.144.08a2.1%202.1%200%200%200%20.975.232q1.07%200%201.645-.675.576-.69.576-1.778%200-1.102-.576-1.777-.56-.691-1.645-.692a2.2%202.2%200%200%200-1.015.235q-.22.113-.415.282l-.15.142a2.1%202.1%200%200%200-.42.594q-.223.479-.223%201.1v.115q0%20.705.293%201.26zm2.616-.293c.157-.191.28-.479.28-.967%200-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87%200%200%200-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0%20.285.057.499.144.669a1.1%201.1%200%200%200%20.367.405c.137.082.28.123.455.123.423%200%20.59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493%200%20.642.099l.247-1.794q-.196-.099-.717-.099a2.3%202.3%200%200%200-.545.063%202%202%200%200%200-.411.148%202.2%202.2%200%200%200-.4.249%202.5%202.5%200%200%200-.485.499%202.7%202.7%200%200%200-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5%201.5%200%200%201%20.466-.636%202.5%202.5%200%200%201%20.399-.253%202%202%200%200%201%20.224-.099zm9.784%202.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46%203.46%200%200%200-1.4%201.382q-.493.906-.493%202.106%200%201.07.428%201.975.428.89%201.332%201.432.906.526%202.255.526.973%200%201.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954%200-1.497-.444a1.6%201.6%200%200%201-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1%201%200%200%200-.156-.176q-.46-.428-1.316-.428-.986%200-1.494.604-.379.45-.494%201.234zm-27.053%202.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z%22%2F%3E%3Cpath%20fill%3D%22%23fff%22%20d%3D%22m19.63%2011.151-.757-1.71-.345%201.71-1.12%205.644h-1.827L18.083%204.7h.197l3.325%206.533.988%202.19.988-2.19L26.839%204.7h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.93%205.644h-.098l-2.913-5.644zm14.836%205.81q-1.02%200-1.893-.478a3.8%203.8%200%200%201-1.381-1.382q-.51-.906-.51-2.106%200-1.185.444-2.074a3.36%203.36%200%200%201%201.3-1.382q.839-.494%201.974-.494a3.3%203.3%200%200%201%201.234.231%203.3%203.3%200%200%201%20.97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02%201.053a3.17%203.17%200%200%201-1.662.444zm.296-1.482q.938%200%201.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2%202.2%200%200%200-.807-.872%202.1%202.1%200%200%200-1.119-.313q-1.053%200-1.629.692-.575.675-.575%201.76%200%201.103.559%201.795.577.675%201.645.675zm6.521-6.237h1.711v1.4q.906-1.597%202.83-1.597%201.596%200%202.584%201.02.988%201.005.988%202.914%200%201.185-.493%202.09a3.46%203.46%200%200%201-1.316%201.399%203.5%203.5%200%200%201-1.844.493q-.954%200-1.662-.329a2.67%202.67%200%200%201-1.086-.97l.017%205.134h-1.728zm4.048%206.22q1.07%200%201.645-.674.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.592%200-1.12.296-.51.28-.822.823-.296.527-.296%201.234v.115q0%20.708.296%201.267.313.543.823.855.51.296%201.119.297z%22%2F%3E%3Cpath%20fill%3D%22%23e1e3e9%22%20d%3D%22M51.325%204.7h1.86v10.45h3.473v1.646h-5.333zm7.12%204.542h1.843v7.553h-1.843zm.905-1.415a1.16%201.16%200%200%201-.856-.346%201.17%201.17%200%200%201-.346-.856%201.05%201.05%200%200%201%20.346-.79q.346-.329.856-.329.494%200%20.839.33a1.05%201.05%200%200%201%20.345.79%201.16%201.16%200%200%201-.345.855q-.33.346-.84.346zm7.875%209.133a3.17%203.17%200%200%201-1.662-.444q-.723-.46-1.004-1.053l-.033%201.332h-1.71V4.701h1.743v4.657l-.082%201.283q.279-.658%201.086-1.119a3.5%203.5%200%200%201%201.778-.477q1.119%200%201.942.51a3.24%203.24%200%200%201%201.283%201.4q.445.888.444%202.072%200%201.201-.526%202.09a3.5%203.5%200%200%201-1.382%201.366%203.8%203.8%200%200%201-1.876.477zm-.296-1.481q1.069%200%201.645-.675.577-.69.577-1.778%200-1.102-.577-1.776-.56-.691-1.645-.692a2.12%202.12%200%200%200-1.58.659q-.642.641-.642%201.694v.115q0%20.71.296%201.267a2.4%202.4%200%200%200%20.807.872%202.1%202.1%200%200%200%201.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14%202.14%200%200%201%201.349-.46q.527%200%20.724.098l-.247%201.794q-.149-.099-.642-.099-.774%200-1.416.494-.626.493-.626%201.58v3.883h-1.777V9.242zm9.534%207.718q-1.35%200-2.255-.526-.904-.543-1.332-1.432a4.6%204.6%200%200%201-.428-1.975q0-1.2.493-2.106a3.46%203.46%200%200%201%201.4-1.382q.889-.495%202.007-.494%201.744%200%202.584.97.855.956.856%202.7%200%20.444-.05.92h-5.43q.18%201.005.708%201.45.542.443%201.497.443.79%200%201.3-.131a4%204%200%200%200%20.938-.362l.542%201.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728%200-1.991%201.86z%22%2F%3E%3Cpath%20d%3D%22M5.074%2015.948a.484.657%200%200%200-.486.659v1.84a.484.657%200%200%200%20.486.659h4.101a.484.657%200%200%200%20.486-.659v-1.84a.484.657%200%200%200-.486-.659zm3.56%201.16H5.617v.838h3.017z%22%20style%3D%22fill%3A%23fff%3Bfill-rule%3Aevenodd%3Bstroke-width%3A1.03600001%22%2F%3E%3Cg%20style%3D%22stroke-width%3A1.12603545%22%3E%3Cpath%20d%3D%22M-9.408-1.416c-3.833-.025-7.056%202.912-7.08%206.615-.02%203.08%201.653%204.832%203.107%206.268.903.892%201.721%201.74%202.32%202.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87%201.87%200%200%200-.362%201.121l-.011%201.877c-.003.402.104.787.347%201.125.244.338.688.653%201.23.656l4.142.028c.542.003.99-.306%201.238-.641a1.87%201.87%200%200%200%20.363-1.121l.012-1.875a1.87%201.87%200%200%200-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145%201.425-1.983%202.348-2.87%201.473-1.414%203.18-3.149%203.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006%201.1v.002c3.274.02%205.92%202.532%205.9%205.6-.017%202.706-1.39%204.026-2.863%205.44-1.034.994-2.118%202.033-2.814%203.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34%200%200%201-.226.084.34.34%200%200%201-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067%202.7-5.545%205.975-5.523m-.02%202.826c-1.62-.01-2.944%201.315-2.955%202.96-.01%201.646%201.295%202.988%202.916%202.999h.002c1.621.01%202.943-1.316%202.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005%201.1c1.017.006%201.829.83%201.822%201.89s-.83%201.874-1.848%201.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874%201.848-1.868m-2.155%2011.857%204.14.025c.271.002.49.305.487.676l-.013%201.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668%22%20style%3D%22color%3A%23000%3Bfont-style%3Anormal%3Bfont-variant%3Anormal%3Bfont-weight%3A400%3Bfont-stretch%3Anormal%3Bfont-size%3Amedium%3Bline-height%3Anormal%3Bfont-family%3Asans-serif%3Bfont-variant-ligatures%3Anormal%3Bfont-variant-position%3Anormal%3Bfont-variant-caps%3Anormal%3Bfont-variant-numeric%3Anormal%3Bfont-variant-alternates%3Anormal%3Bfont-feature-settings%3Anormal%3Btext-indent%3A0%3Btext-align%3Astart%3Btext-decoration%3Anone%3Btext-decoration-line%3Anone%3Btext-decoration-style%3Asolid%3Btext-decoration-color%3A%23000%3Bletter-spacing%3Anormal%3Bword-spacing%3Anormal%3Btext-transform%3Anone%3Bwriting-mode%3Alr-tb%3Bdirection%3Altr%3Btext-orientation%3Amixed%3Bdominant-baseline%3Aauto%3Bbaseline-shift%3Abaseline%3Btext-anchor%3Astart%3Bwhite-space%3Anormal%3Bshape-padding%3A0%3Bclip-rule%3Aevenodd%3Bdisplay%3Ainline%3Boverflow%3Avisible%3Bvisibility%3Avisible%3Bopacity%3A1%3Bisolation%3Aauto%3Bmix-blend-mode%3Anormal%3Bcolor-interpolation%3AsRGB%3Bcolor-interpolation-filters%3AlinearRGB%3Bsolid-color%3A%23000%3Bsolid-opacity%3A1%3Bvector-effect%3Anone%3Bfill%3A%23000%3Bfill-opacity%3A.4%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-linecap%3Abutt%3Bstroke-linejoin%3Amiter%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-dashoffset%3A0%3Bstroke-opacity%3A1%3Bcolor-rendering%3Aauto%3Bimage-rendering%3Aauto%3Bshape-rendering%3Aauto%3Btext-rendering%3Aauto%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-9.415-.316C-12.69-.338-15.37%202.14-15.39%205.207c-.017%202.716%201.326%204.041%202.78%205.477%201.013%201%202.081%202.055%202.78%203.67l.092.076a.34.34%200%200%200%20.225.086.34.34%200%200%200%20.227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6%201.78-2.64%202.814-3.634%201.473-1.414%202.847-2.733%202.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057%208.784c1.621.011%202.944-1.315%202.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945%201.315-2.955%202.96s1.295%202.989%202.916%203%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23e1e3e9%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-11.594%2015.465c-.27-.002-.492.297-.494.668l-.012%201.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23fff%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl.maplibregl-ctrl-attrib{padding:0 5px;background-color:hsla(0,0%,100%,.5);margin:0}@media screen{.maplibregl-ctrl-attrib.maplibregl-compact{min-height:20px;padding:2px 24px 2px 0;margin:10px;position:relative;background-color:#fff;color:#000;border-radius:12px;box-sizing:content-box}.maplibregl-ctrl-attrib.maplibregl-compact-show{padding:2px 28px 2px 8px;visibility:visible}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact-show,.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact-show{padding:2px 8px 2px 28px;border-radius:12px}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-inner{display:none}.maplibregl-ctrl-attrib-button{display:none;cursor:pointer;position:absolute;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20fill-rule%3D%22evenodd%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M4%2010a6%206%200%201%200%2012%200%206%206%200%201%200-12%200m5-3a1%201%200%201%200%202%200%201%201%200%201%200-2%200m0%203a1%201%200%201%201%202%200v3a1%201%200%201%201-2%200%22%2F%3E%3C%2Fsvg%3E");background-color:hsla(0,0%,100%,.5);width:24px;height:24px;box-sizing:border-box;border-radius:12px;outline:none;top:0;right:0;border:0}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;list-style:none}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button::-webkit-details-marker{display:none}.maplibregl-ctrl-bottom-left .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-top-left .maplibregl-ctrl-attrib-button{left:0}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-inner{display:block}.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-button{background-color:rgba(0,0,0,.05)}.maplibregl-ctrl-bottom-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;right:0}.maplibregl-ctrl-top-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{top:0;right:0}.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{top:0;left:0}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;left:0}}@media screen and (forced-colors:active){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22%23fff%22%20fill-rule%3D%22evenodd%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M4%2010a6%206%200%201%200%2012%200%206%206%200%201%200-12%200m5-3a1%201%200%201%200%202%200%201%201%200%201%200-2%200m0%203a1%201%200%201%201%202%200v3a1%201%200%201%201-2%200%22%2F%3E%3C%2Fsvg%3E")}}@media screen and (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20fill-rule%3D%22evenodd%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M4%2010a6%206%200%201%200%2012%200%206%206%200%201%200-12%200m5-3a1%201%200%201%200%202%200%201%201%200%201%200-2%200m0%203a1%201%200%201%201%202%200v3a1%201%200%201%201-2%200%22%2F%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl-attrib a{color:rgba(0,0,0,.75);text-decoration:none}.maplibregl-ctrl-attrib a:hover{color:inherit;text-decoration:underline}.maplibregl-attrib-empty{display:none}.maplibregl-ctrl-scale{background-color:hsla(0,0%,100%,.75);font-size:10px;white-space:nowrap;border-color:#333;border-style:none solid solid;border-width:medium 2px 2px;padding:0 5px;color:#333;box-sizing:border-box}.maplibregl-popup{position:absolute;top:0;left:0;display:flex;will-change:transform;pointer-events:none}.maplibregl-popup-anchor-top,.maplibregl-popup-anchor-top-left,.maplibregl-popup-anchor-top-right{flex-direction:column}.maplibregl-popup-anchor-bottom,.maplibregl-popup-anchor-bottom-left,.maplibregl-popup-anchor-bottom-right{flex-direction:column-reverse}.maplibregl-popup-anchor-left{flex-direction:row}.maplibregl-popup-anchor-right{flex-direction:row-reverse}.maplibregl-popup-tip{width:0;height:0;border:10px solid transparent;z-index:1}.maplibregl-popup-anchor-top .maplibregl-popup-tip{align-self:center;border-top:none;border-bottom-color:#fff}.maplibregl-popup-anchor-top-left .maplibregl-popup-tip{align-self:flex-start;border-top:none;border-left:none;border-bottom-color:#fff}.maplibregl-popup-anchor-top-right .maplibregl-popup-tip{align-self:flex-end;border-top:none;border-right:none;border-bottom-color:#fff}.maplibregl-popup-anchor-bottom .maplibregl-popup-tip{align-self:center;border-bottom:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip{align-self:flex-start;border-bottom:none;border-left:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip{align-self:flex-end;border-bottom:none;border-right:none;border-top-color:#fff}.maplibregl-popup-anchor-left .maplibregl-popup-tip{align-self:center;border-left:none;border-right-color:#fff}.maplibregl-popup-anchor-right .maplibregl-popup-tip{align-self:center;border-right:none;border-left-color:#fff}[dir=rtl] .maplibregl-popup-anchor-left{flex-direction:row-reverse}[dir=rtl] .maplibregl-popup-anchor-right{flex-direction:row}[dir=rtl] .maplibregl-popup-anchor-top-left .maplibregl-popup-tip{align-self:flex-end}[dir=rtl] .maplibregl-popup-anchor-top-right .maplibregl-popup-tip{align-self:flex-start}[dir=rtl] .maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip{align-self:flex-end}[dir=rtl] .maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip{align-self:flex-start}.maplibregl-popup-close-button{position:absolute;right:0;top:0;border:0;border-radius:0 3px 0 0;cursor:pointer;background-color:transparent}.maplibregl-popup-close-button:hover{background-color:rgba(0,0,0,.05)}.maplibregl-popup-content{position:relative;background:#fff;border-radius:3px;box-shadow:0 1px 2px rgba(0,0,0,.1);padding:15px 10px;pointer-events:auto}.maplibregl-popup-anchor-top-left .maplibregl-popup-content{border-top-left-radius:0}.maplibregl-popup-anchor-top-right .maplibregl-popup-content{border-top-right-radius:0}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-content{border-bottom-left-radius:0}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-content{border-bottom-right-radius:0}.maplibregl-popup-track-pointer{display:none}.maplibregl-popup-track-pointer *{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-map:hover .maplibregl-popup-track-pointer{display:flex}.maplibregl-map:active .maplibregl-popup-track-pointer{display:none}.maplibregl-marker{position:absolute;top:0;left:0;will-change:transform;transition:opacity .2s}.maplibregl-marker-draggable{cursor:grab}.maplibregl-user-location-dot,.maplibregl-user-location-dot:before{background-color:#1da1f2;width:15px;height:15px;border-radius:50%}.maplibregl-user-location-dot:before{content:"";position:absolute;animation:maplibregl-user-location-dot-pulse 2s infinite}.maplibregl-user-location-dot:after{border-radius:50%;border:2px solid #fff;content:"";height:19px;left:-2px;position:absolute;top:-2px;width:19px;box-sizing:border-box;box-shadow:0 0 3px rgba(0,0,0,.35)}@media (prefers-reduced-motion:reduce){.maplibregl-user-location-dot:before{animation:none}}@keyframes maplibregl-user-location-dot-pulse{0%{transform:scale(1);opacity:1}70%{transform:scale(3);opacity:0}to{transform:scale(1);opacity:0}}.maplibregl-user-location-dot-stale{background-color:#aaa}.maplibregl-user-location-dot-stale:after{display:none}.maplibregl-user-location-accuracy-circle{background-color:#1da1f233;width:1px;height:1px;border-radius:100%}.maplibregl-crosshair,.maplibregl-crosshair .maplibregl-interactive,.maplibregl-crosshair .maplibregl-interactive:active{cursor:crosshair}.maplibregl-boxzoom{position:absolute;top:0;left:0;width:0;height:0;background:#fff;border:2px dotted #202020;opacity:.5}.maplibregl-cooperative-gesture-screen{background:rgba(0,0,0,.4);position:absolute;inset:0;display:flex;justify-content:center;align-items:center;color:#fff;padding:1rem;font-size:1.4em;line-height:1.2;opacity:0;pointer-events:none;transition:opacity 1s ease 1s;z-index:99999}.maplibregl-cooperative-gesture-screen.maplibregl-show{opacity:1;transition:opacity .05s}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:none}@media (hover:none),(pointer:coarse){.maplibregl-cooperative-gesture-screen .maplibregl-desktop-message{display:none}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:block}}.maplibregl-pseudo-fullscreen{position:fixed!important;width:100%!important;height:100%!important;top:0!important;left:0!important;z-index:99999}`; document.head.appendChild(e); } @@ -23898,6 +23898,55 @@ var Plotly = (() => { var FIND_TEX = /([^$]*)([$]+[^$]*[$]+)([^$]*)/; var matchTex = (str) => str ? str.match(FIND_TEX) : null; exports.matchTex = matchTex; + var isPureTex = (str) => { + var tex = matchTex(str); + return !!tex && !tex[1] && !tex[3]; + }; + exports.isPureTex = isPureTex; + function positionMathGroup(_context, svgClass, mathjaxGroup, newSvg, textAnchor, fontSize, width0, height0) { + var g = newSvg.select("g"); + var bb = g.node().getBoundingClientRect(); + var w = bb.width; + var h = bb.height; + var w0 = width0 === void 0 ? w : width0; + var h0 = height0 === void 0 ? h : height0; + if (w > w0 || h > h0) { + newSvg.style("overflow", "hidden"); + bb = newSvg.node().getBoundingClientRect(); + w = bb.width; + h = bb.height; + } + var x = +_context.attr("x"); + var y = +_context.attr("y"); + var textHeight = fontSize || _context.node().getBoundingClientRect().height; + var dy = -textHeight / 4; + if (svgClass[0] === "y") { + mathjaxGroup.attr({ + transform: "rotate(" + [-90, x, y] + ")" + strTranslate(-w / 2, dy - h / 2) + }); + } else if (svgClass[0] === "l") { + y = dy - h / 2; + } else if (svgClass[0] === "a" && svgClass.indexOf("atitle") !== 0) { + x = 0; + y = dy; + } else { + x = x - w * (textAnchor === "middle" ? 0.5 : textAnchor === "end" ? 1 : 0); + y = y + dy - h / 2; + } + newSvg.attr({ + x, + y + }); + } + function sanitizeMathJaxLinks(newSvg) { + newSvg.selectAll("a").each(function() { + var a = d3.select(this); + ["href", "xlink:href"].forEach(function(attrName) { + var href = a.attr(attrName); + if (href) a.attr(attrName, sanitizeHref(href) || null); + }); + }); + } exports.convertToTspans = function(_context, gd, _callback) { var str = _context.text(); var tex = !_context.attr("data-notex") && gd && gd._context.typesetMath && matchTex(str); @@ -23951,6 +24000,7 @@ var Plotly = (() => { "data-math": "Y" }); mathjaxGroup.node().appendChild(newSvg.node()); + sanitizeMathJaxLinks(newSvg); if (_glyphDefs && _glyphDefs.node()) { newSvg.node().insertBefore( _glyphDefs.node().cloneNode(true), @@ -23971,36 +24021,7 @@ var Plotly = (() => { var fill = _context.node().style.fill || "black"; var g = newSvg.select("g"); g.attr({ fill, stroke: fill }); - var bb = g.node().getBoundingClientRect(); - var w = bb.width; - var h = bb.height; - if (w > w0 || h > h0) { - newSvg.style("overflow", "hidden"); - bb = newSvg.node().getBoundingClientRect(); - w = bb.width; - h = bb.height; - } - var x = +_context.attr("x"); - var y = +_context.attr("y"); - var textHeight = fontSize || _context.node().getBoundingClientRect().height; - var dy = -textHeight / 4; - if (svgClass[0] === "y") { - mathjaxGroup.attr({ - transform: "rotate(" + [-90, x, y] + ")" + strTranslate(-w / 2, dy - h / 2) - }); - } else if (svgClass[0] === "l") { - y = dy - h / 2; - } else if (svgClass[0] === "a" && svgClass.indexOf("atitle") !== 0) { - x = 0; - y = dy; - } else { - x = x - w * (textAnchor === "middle" ? 0.5 : textAnchor === "end" ? 1 : 0); - y = y + dy - h / 2; - } - newSvg.attr({ - x, - y - }); + positionMathGroup(_context, svgClass, mathjaxGroup, newSvg, textAnchor, fontSize, w0, h0); if (_callback) _callback.call(_context, mathjaxGroup); resolve(mathjaxGroup); }); @@ -24008,6 +24029,24 @@ var Plotly = (() => { } else showText(); return _context; }; + exports.repositionMathGroup = function(_context) { + if (_context.empty()) return; + var svgClass = (_context.attr("class") ? _context.attr("class").split(" ")[0] : "text") + "-math"; + var parent = d3.select(_context.node().parentNode); + var mathjaxGroup = parent.select("g." + svgClass + "-group"); + var newSvg = mathjaxGroup.select("svg." + svgClass); + if (mathjaxGroup.empty() || newSvg.empty()) return; + var textAnchor = _context.attr("text-anchor"); + var fontSize = parseInt(_context.node().style.fontSize, 10); + positionMathGroup(_context, svgClass, mathjaxGroup, newSvg, textAnchor, fontSize); + }; + exports.getMathOrTextNode = function(textSel) { + var node = textSel.node(); + if (!node) return null; + var svgClass = (textSel.attr("class") ? textSel.attr("class").split(" ")[0] : "text") + "-math"; + var mathGroup = d3.select(node.parentNode).select("g." + svgClass + "-group"); + return mathGroup.empty() ? node : mathGroup.node(); + }; var LT_MATCH = /(<|<|<)/g; var GT_MATCH = /(>|>|>)/g; function cleanEscapesForTex(s) { @@ -30773,6 +30812,10 @@ var Plotly = (() => { if (((_b = ax.minor) == null ? void 0 : _b._tick0Init) === void 0) { mockAx.tick0 = ax.tick0; } + if (ax._useTicklabelIndex) { + autoTickRound(mockAx); + ax.minor._tickround = mockAx._tickround; + } }; function isMultiple(bigger, smaller) { return Math.abs((bigger / smaller + 0.5) % 1 - 0.5) < 1e-3; @@ -30860,24 +30903,32 @@ var Plotly = (() => { function positionPeriodTicks(tickVals, ax, definedDelta) { for (var i = 0; i < tickVals.length; i++) { var v = tickVals[i].value; - var a = i; - var b = i + 1; - if (i < tickVals.length - 1) { - a = i; - b = i + 1; - } else if (i > 0) { - a = i - 1; - b = i; + var A, B; + if (tickVals[i].periodEndTick != null) { + A = tickVals[i].value; + B = tickVals[i].periodEndTick.value; } else { - a = i; - b = i; + var a = i; + var b = i + 1; + if (i < tickVals.length - 1) { + a = i; + b = i + 1; + } else if (i > 0) { + a = i - 1; + b = i; + } else { + a = i; + b = i; + } + A = tickVals[a].value; + B = tickVals[b].value; } - var A = tickVals[a].value; - var B = tickVals[b].value; var actualDelta = Math.abs(B - A); var delta = definedDelta || actualDelta; var periodLength = 0; - if (delta >= ONEMINYEAR2) { + if (tickVals[i].periodEndTick != null) { + periodLength = actualDelta; + } else if (delta >= ONEMINYEAR2) { if (actualDelta >= ONEMINYEAR2 && actualDelta <= ONEMAXYEAR2) { periodLength = actualDelta; } else { @@ -30936,6 +30987,7 @@ var Plotly = (() => { var isPeriod = ax.ticklabelmode === "period"; var isReversed = ax.range[0] > ax.range[1]; var ticklabelIndex = !ax.ticklabelindex || Lib.isArrayOrTypedArray(ax.ticklabelindex) ? ax.ticklabelindex : [ax.ticklabelindex]; + ax._useTicklabelIndex = ticklabelIndex != null && ticklabelIndex !== 0; var rng = Lib.simpleMap(ax.range, ax.r2l, void 0, void 0, opts); var axrev = rng[1] < rng[0]; var minRange = Math.min(rng[0], rng[1]); @@ -30947,7 +30999,7 @@ var Plotly = (() => { var minorTickVals = []; var allTicklabelVals = []; var hasMinor = ax.minor && (ax.minor.ticks || ax.minor.showgrid); - var calcMinor = hasMinor || ticklabelIndex; + var calcMinor = hasMinor || ax._useTicklabelIndex; for (var major = 1; major >= (calcMinor ? 0 : 1); major--) { var isMinor = !major; if (major) { @@ -31017,7 +31069,7 @@ var Plotly = (() => { x = axes.tickIncrement(x, dtick, !axrev, calendar); } } - if ((major || ticklabelIndex) && isPeriod) { + if ((major || ax._useTicklabelIndex) && isPeriod) { x = axes.tickIncrement(x, dtick, !axrev, calendar); if (major) majorId--; } @@ -31052,72 +31104,82 @@ var Plotly = (() => { } } } + function findOverlappingTick(minorTick, majorTicks) { + const majorTick = majorTicks.find((majorTick2) => majorTick2.value === minorTick.value); + if (majorTick != null) { + return majorTick; + } + const epsilon2 = 1e7; + for (let i2 = 0; i2 < majorTicks.length; i2++) { + if (epsilon2 + majorTicks[i2].value === epsilon2 + minorTick.value) { + return majorTicks[i2]; + } + } + return null; + } + ; if (!minorTickVals || minorTickVals.length < 3) { - ticklabelIndex = false; + ax._useTicklabelIndex = false; } else { - var diff = (minorTickVals[2].value - minorTickVals[1].value) * (isReversed ? -1 : 1); + const diff = (minorTickVals[2].value - minorTickVals[1].value) * (isReversed ? -1 : 1); if (!periodCompatibleWithTickformat(diff, ax.tickformat)) { - ticklabelIndex = false; + ax._useTicklabelIndex = false; minorTickVals = minorTickVals.slice(1); } } - if (!ticklabelIndex) { + if (!ax._useTicklabelIndex) { allTicklabelVals = tickVals; } else { - var allTickVals = tickVals.concat(minorTickVals); + const filteredMinors = minorTickVals.filter((minor) => findOverlappingTick(minor, tickVals) == null); + const labelTickValsAscending = tickVals.concat(filteredMinors).sort((a, b) => a.value - b.value); if (isPeriod && tickVals.length) { - allTickVals = allTickVals.slice(1); - } - allTickVals = allTickVals.sort(function(a, b) { - return a.value - b.value; - }).filter(function(tick, index, self2) { - return index === 0 || tick.value !== self2[index - 1].value; - }); - var majorTickIndices = allTickVals.map(function(item, index) { - return item.minor === void 0 && !item.skipLabel ? index : null; - }).filter(function(index) { - return index !== null; - }); - majorTickIndices.forEach(function(majorIdx) { - ticklabelIndex.map(function(nextLabelIdx) { - var minorIdx = majorIdx + nextLabelIdx; - if (minorIdx >= 0 && minorIdx < allTickVals.length) { - Lib.pushUnique(allTicklabelVals, allTickVals[minorIdx]); - } - }); - }); - tickVals.forEach(function(tick) { - tick.skipLabel = allTicklabelVals.indexOf(tick) === -1; + tickVals[0].skipLabel = true; + } + tickVals.forEach(function(majorTick) { + if (!majorTick.skipLabel) { + ticklabelIndex.forEach((labelIndex) => { + if (labelIndex < 0) { + const smallerTicks = labelTickValsAscending.filter((minorTick) => minorTick.value <= majorTick.value); + const absLabelIndex = Math.abs(labelIndex); + const labeledTickIndex = smallerTicks.length - absLabelIndex - 1; + if (absLabelIndex < smallerTicks.length) { + const tickToLabel = smallerTicks[labeledTickIndex]; + allTicklabelVals.push(tickToLabel); + if (isPeriod) { + tickToLabel.periodEndTick = smallerTicks[labeledTickIndex + 1]; + } + } + } else { + const largerTicks = labelTickValsAscending.filter((minorTick) => minorTick.value >= majorTick.value); + if (labelIndex < largerTicks.length) { + const tickToLabel = largerTicks[labelIndex]; + allTicklabelVals.push(tickToLabel); + if (isPeriod && largerTicks[labelIndex + 1]) { + tickToLabel.periodEndTick = largerTicks[labelIndex + 1]; + } + } + } + }); + majorTick.skipLabel = true; + } }); + allTicklabelVals.forEach((t2) => t2.skipLabel = false); } if (hasMinor) { - var canOverlap = ax.minor.ticks === "inside" && ax.ticks === "outside" || ax.minor.ticks === "outside" && ax.ticks === "inside"; - if (!canOverlap) { - var majorValues = tickVals.map(function(d) { - return d.value; - }); + var allowedToOverlap = ax.minor.ticks === "inside" && ax.ticks === "outside" || ax.minor.ticks === "outside" && ax.ticks === "inside"; + if (!allowedToOverlap) { var list = []; for (var k = 0; k < minorTickVals.length; k++) { - var T = minorTickVals[k]; - var v = T.value; - if (majorValues.indexOf(v) !== -1) { - continue; + if (findOverlappingTick(minorTickVals[k], tickVals) == null) { + list.push(minorTickVals[k]); } - var found = false; - for (var q = 0; !found && q < tickVals.length; q++) { - if ( - // add 10e6 to eliminate problematic digits - 1e7 + tickVals[q].value === 1e7 + v - ) { - found = true; - } - } - if (!found) list.push(T); } minorTickVals = list; } } - if (isPeriod) positionPeriodTicks(allTicklabelVals, ax, ax._definedDelta); + if (isPeriod) { + positionPeriodTicks(allTicklabelVals, ax, ax._definedDelta); + } var i; if (ax.rangebreaks) { var flip = ax._id.charAt(0) === "y"; @@ -31180,7 +31242,7 @@ var Plotly = (() => { var _minor = tickVals[i].minor; var _value = tickVals[i].value; if (_minor) { - if (ticklabelIndex && allTicklabelVals.indexOf(tickVals[i]) !== -1) { + if (ax._useTicklabelIndex && allTicklabelVals.indexOf(tickVals[i]) !== -1) { t = setTickLabel(ax, tickVals[i]); } else { t = { x: _value }; @@ -31196,7 +31258,7 @@ var Plotly = (() => { ticksOut.push(t); } } - if (isPeriod && ticklabelIndex && minorTicks.length) { + if (isPeriod && ax._useTicklabelIndex && minorTicks.length) { minorTicks[0].noTick = true; } ticksOut = ticksOut.concat(minorTicks); @@ -31565,7 +31627,7 @@ var Plotly = (() => { }; } function formatDate(ax, out, hover, extraPrecision) { - var tr = ax._tickround; + var tr = ax._useTicklabelIndex ? ax.minor._tickround : ax._tickround; var fmt = hover && ax.hoverformat || axes.getTickFormat(ax); extraPrecision = !fmt && extraPrecision; if (extraPrecision) { @@ -33900,12 +33962,44 @@ var Plotly = (() => { } }); + // src/components/legend/constants.ts + var constants_exports3 = {}; + __export(constants_exports3, { + dfltFillHeight: () => dfltFillHeight, + itemGap: () => itemGap, + itemHeightPad: () => itemHeightPad, + itemMinHeight: () => itemMinHeight, + scrollBarColor: () => scrollBarColor, + scrollBarEnterAttrs: () => scrollBarEnterAttrs, + scrollBarMargin: () => scrollBarMargin, + scrollBarMinHeight: () => scrollBarMinHeight, + scrollBarWidth: () => scrollBarWidth, + titlePad: () => titlePad + }); + var scrollBarWidth, scrollBarMinHeight, scrollBarColor, scrollBarMargin, scrollBarEnterAttrs, titlePad, itemGap, dfltFillHeight, itemMinHeight, itemHeightPad; + var init_constants3 = __esm({ + "src/components/legend/constants.ts"() { + "use strict"; + scrollBarWidth = 6; + scrollBarMinHeight = 20; + scrollBarColor = "#808BA4"; + scrollBarMargin = 4; + scrollBarEnterAttrs = { rx: 20, ry: 3, width: 0, height: 0 }; + titlePad = 2; + itemGap = 5; + dfltFillHeight = 6; + itemMinHeight = 16; + itemHeightPad = 3; + } + }); + // src/components/legend/attributes.js var require_attributes9 = __commonJS({ "src/components/legend/attributes.js"(exports, module) { "use strict"; var fontAttrs = require_font_attributes(); var colorAttrs = require_attributes3(); + var { dfltFillHeight: dfltFillHeight2 } = (init_constants3(), __toCommonJS(constants_exports3)); module.exports = { // not really a 'subplot' attribute container, // but this is the flag we use to denote attributes that @@ -33989,6 +34083,12 @@ var Plotly = (() => { dflt: 30, editType: "legend" }, + itemheight: { + valType: "number", + min: dfltFillHeight2, + dflt: dfltFillHeight2, + editType: "legend" + }, itemclick: { valType: "enumerated", values: ["toggle", "toggleothers", false], @@ -34266,6 +34366,7 @@ var Plotly = (() => { coerce("indentation"); coerce("itemsizing"); coerce("itemwidth"); + coerce("itemheight"); coerce("itemclick"); coerce("itemdoubleclick"); const groupClick = coerce("groupclick"); @@ -34586,31 +34687,6 @@ var Plotly = (() => { } }); - // src/components/legend/constants.ts - var constants_exports3 = {}; - __export(constants_exports3, { - itemGap: () => itemGap, - scrollBarColor: () => scrollBarColor, - scrollBarEnterAttrs: () => scrollBarEnterAttrs, - scrollBarMargin: () => scrollBarMargin, - scrollBarMinHeight: () => scrollBarMinHeight, - scrollBarWidth: () => scrollBarWidth, - titlePad: () => titlePad - }); - var scrollBarWidth, scrollBarMinHeight, scrollBarColor, scrollBarMargin, scrollBarEnterAttrs, titlePad, itemGap; - var init_constants3 = __esm({ - "src/components/legend/constants.ts"() { - "use strict"; - scrollBarWidth = 6; - scrollBarMinHeight = 20; - scrollBarColor = "#808BA4"; - scrollBarMargin = 4; - scrollBarEnterAttrs = { rx: 20, ry: 3, width: 0, height: 0 }; - titlePad = 2; - itemGap = 5; - } - }); - // src/components/legend/get_legend_data.js var require_get_legend_data = __commonJS({ "src/components/legend/get_legend_data.js"(exports, module) { @@ -34855,6 +34931,7 @@ var Plotly = (() => { if (!legend) legend = fullLayout.legend; var constantItemSizing = legend.itemsizing === "constant"; var itemWidth = legend.itemwidth; + var itemHeight = legend.itemheight; var centerPos = (itemWidth + constants2.itemGap * 2) / 2; var centerTransform = strTranslate(centerPos, 0); var boundLineWidth = function(mlw, cont, max, cst) { @@ -34932,7 +35009,9 @@ var Plotly = (() => { var fill = this3.select(".legendfill").selectAll("path").data(showFill || showGradientFill ? [d] : []); fill.enter().append("path").classed("js-fill", true); fill.exit().remove(); - fill.attr("d", pathStart + "h" + itemWidth + "v6h-" + itemWidth + "z").call(fillStyle); + fill.attr("d", pathStart + "h" + itemWidth + "v" + itemHeight + "h-" + itemWidth + "z").call(fillStyle); + const fillShiftY = showFill || showGradientFill ? (constants2.dfltFillHeight - itemHeight) / 2 : 0; + this3.selectAll("g.legendfill, g.legendlines, g.legendsymbols").attr("transform", fillShiftY ? strTranslate(0, fillShiftY) : null); if (showLine || showGradientLine) { var lw = boundLineWidth(void 0, trace.line, MAX_LINE_WIDTH, CST_LINE_WIDTH); tMod = Lib.minExtend(trace, { line: { width: lw } }); @@ -35092,14 +35171,18 @@ var Plotly = (() => { var fillColor = mcc || d0.mc || marker.color; var markerPattern = marker.pattern; var pAttr = Drawing.getPatternAttr; - var patternShape = markerPattern && (pAttr(markerPattern.shape, 0, "") || pAttr(markerPattern.path, 0, "")); + let patternIndex = 0; + if (legend._inHover && d0._distinct && d0.index != null) { + patternIndex = d0.index; + } + const patternShape = markerPattern && (pAttr(markerPattern.shape, patternIndex, "") || pAttr(markerPattern.path, patternIndex, "")); if (patternShape) { - var patternBGColor = pAttr(markerPattern.bgcolor, 0, null); - var patternFGColor = pAttr(markerPattern.fgcolor, 0, null); + const patternBGColor = pAttr(markerPattern.bgcolor, patternIndex, null); + const patternFGColor = pAttr(markerPattern.fgcolor, patternIndex, null); var patternFGOpacity = markerPattern.fgopacity; - var patternSize = dimAttr(markerPattern.size, 8, 10); - var patternSolidity = dimAttr(markerPattern.solidity, 0.5, 1); - var patternID = "legend-" + trace.uid; + const patternSize = legend._inHover ? dimAttr(pAttr(markerPattern.size, patternIndex, 8), 8, 10) : dimAttr(markerPattern.size, 8, 10); + const patternSolidity = legend._inHover ? dimAttr(pAttr(markerPattern.solidity, patternIndex, 0.5), 0.5, 1) : dimAttr(markerPattern.solidity, 0.5, 1); + const patternID = legend._inHover ? `hover-${trace.uid}-${patternIndex}` : `legend-${trace.uid}`; p.call( Drawing.pattern, "legend", @@ -35921,7 +36004,7 @@ var Plotly = (() => { }); } function textLayout(s, g, gd, legendObj, aTitle) { - if (legendObj._inHover) s.attr("data-notex", true); + if (legendObj._inHover) s.attr("data-notex", svgTextUtils.isPureTex(s.text()) ? null : true); svgTextUtils.convertToTspans(s, gd, function() { computeTextDimensions(g, gd, legendObj, aTitle); }); @@ -35996,7 +36079,8 @@ var Plotly = (() => { legendObj._titleHeight = height; } else { legendItem.lineHeight = lineHeight; - legendItem.height = Math.max(height, 16) + 3; + const fillItemHeight = constants2.itemMinHeight + legendObj.itemheight - constants2.dfltFillHeight; + legendItem.height = Math.max(height, constants2.itemMinHeight, fillItemHeight) + constants2.itemHeightPad; legendItem.width = width; } } @@ -36188,6 +36272,13 @@ var Plotly = (() => { } Drawing.setRect(traceToggle, 0, -h / 2, w, h); }); + if (legendObj._inHover) { + const textRight = legendObj._width - bw2 - itemGap2 - titleSize[0]; + traces.each(function(d) { + if (d[0].textAlign !== "right") return; + d3.select(this).select("." + legendId + "text").attr("text-anchor", "end").call(svgTextUtils.positionText, textRight); + }); + } var titleEl = scrollBox.select("." + legendId + "titletext"); if (titleEl.node()) { horizontalAlignTitle(titleEl, legendObj, bw); @@ -36391,28 +36482,47 @@ var Plotly = (() => { outerContainer: opts.outerContainer || opts.container }); var hoverLabel = hoverText.hoverLabels; - var tooltipSpacing = 5; - var lastBottomY = 0; - var anchor = 0; - hoverLabel.sort(function(a, b) { - return a.y0 - b.y0; - }).each(function(d, i) { - var topY = d.y0 - d.by / 2; - if (topY - tooltipSpacing < lastBottomY) { - d.offset = lastBottomY - topY + tooltipSpacing; - } else { - d.offset = 0; - } - lastBottomY = topY + d.by + d.offset; - if (i === opts.anchorIndex || 0) anchor = d.offset; - }).each(function(d) { - d.offset -= anchor; - }); + function fixVerticalOverlap() { + var tooltipSpacing = 5; + var lastBottomY = 0; + var anchor = 0; + hoverLabel.sort(function(a, b) { + return a.y0 - b.y0; + }).each(function(d, i) { + var topY = d.y0 - d.by / 2; + if (topY - tooltipSpacing < lastBottomY) { + d.offset = lastBottomY - topY + tooltipSpacing; + } else { + d.offset = 0; + } + lastBottomY = topY + d.by + d.offset; + if (i === opts.anchorIndex || 0) anchor = d.offset; + }).each(function(d) { + d.offset -= anchor; + }); + } var scaleX = gd._fullLayout._invScaleX; var scaleY = gd._fullLayout._invScaleY; + fixVerticalOverlap(); alignHoverText(hoverLabel, rotateLabels, scaleX, scaleY); + if (hoverText.mathjaxPromise) { + hoverText.mathjaxPromise.then(function() { + fixVerticalOverlap(); + alignHoverText(hoverLabel, rotateLabels, scaleX, scaleY); + hoverLabel.each(function() { + var g = d3.select(this); + svgTextUtils.repositionMathGroup(g.select("text.nums")); + svgTextUtils.repositionMathGroup(g.select("text.name")); + }); + }); + } return multiHover ? hoverLabel : hoverLabel.node(); }; + function canSpikeToNonHoveredPoint(xa, ya) { + return Boolean( + (xa == null ? void 0 : xa.showspikes) && xa.spikesnap !== "hovered data" || (ya == null ? void 0 : ya.showspikes) && ya.spikesnap !== "hovered data" + ); + } function _hover(gd, evt, subplot, noHoverEvent, eventTarget) { if (!subplot) subplot = "xy"; if (typeof subplot === "string") { @@ -36425,6 +36535,7 @@ var Plotly = (() => { var plots = fullLayout._plots || []; var plotinfo = plots[subplot]; var hasCartesian = fullLayout._has("cartesian"); + var hasTernary = fullLayout._has("ternary"); var hovermode = evt.hovermode || fullLayout.hovermode; var hovermodeHasX = (hovermode || "").charAt(0) === "x"; var hovermodeHasY = (hovermode || "").charAt(0) === "y"; @@ -36487,6 +36598,7 @@ var Plotly = (() => { hLinePoint: null, vLinePoint: null }; + const ternarySpikePoints = {}; var hasOneHorizontalTrace = false; if (Array.isArray(evt)) { hovermode = "array"; @@ -36683,42 +36795,56 @@ var Plotly = (() => { hoverData.splice(0, closedataPreviousLength); distance = hoverData[0].distance; } - if (hasCartesian && spikedistance !== 0) { - if (hoverData.length === 0) { - pointData.distance = spikedistance; - pointData.index = false; - var closestPoints = trace._module.hoverPoints(pointData, xval, yval, "closest", { - hoverLayer: fullLayout._hoverlayer - }); - if (closestPoints) { - closestPoints = closestPoints.filter(function(point) { - return point.spikeDistance <= spikedistance; - }); + if (Registry.traceIs(trace, "ternary") && spikedistance !== 0) { + const ternary = pointData.subplot; + const needsClosestPoint = ["aaxis", "baxis", "caxis"].some((name5) => ternary[name5].showspikes && ternary[name5].spikesnap !== "hovered data"); + if (needsClosestPoint) { + let spikePoint = newPoints == null ? void 0 : newPoints[0]; + if (!Number.isFinite(spikePoint == null ? void 0 : spikePoint.spikeDistance)) { + const spikeData = Lib.extendFlat({}, pointData, { distance: spikedistance, index: false }); + const closestPoints2 = trace._module.hoverPoints(spikeData, xval, yval, "closest"); + spikePoint = closestPoints2 && closestPoints2[0]; } - if (closestPoints && closestPoints.length) { - var tmpPoint; - var closestVPoints = closestPoints.filter(function(point) { - return point.xa.showspikes && point.xa.spikesnap !== "hovered data"; - }); - if (closestVPoints.length) { - var closestVPt = closestVPoints[0]; - if (isNumeric2(closestVPt.x0) && isNumeric2(closestVPt.y0)) { - tmpPoint = fillSpikePoint(closestVPt); - if (!spikePoints.vLinePoint || spikePoints.vLinePoint.spikeDistance > tmpPoint.spikeDistance) { - spikePoints.vLinePoint = tmpPoint; - } + const previousSpikePoint = ternarySpikePoints[subplotId]; + if (spikePoint && spikePoint.index !== void 0 && spikePoint.index !== false && spikePoint.spikeDistance <= spikedistance && (!previousSpikePoint || spikePoint.spikeDistance < previousSpikePoint.spikeDistance)) { + ternarySpikePoints[subplotId] = spikePoint; + } + } + } + if (hasCartesian && hoverData.length === 0 && spikedistance !== 0 && canSpikeToNonHoveredPoint(pointData.xa, pointData.ya)) { + pointData.distance = spikedistance; + pointData.index = false; + var closestPoints = trace._module.hoverPoints(pointData, xval, yval, "closest", { + hoverLayer: fullLayout._hoverlayer + }); + if (closestPoints) { + closestPoints = closestPoints.filter(function(point) { + return point.spikeDistance <= spikedistance; + }); + } + if (closestPoints == null ? void 0 : closestPoints.length) { + var tmpPoint; + var closestVPoints = closestPoints.filter(function(point) { + return point.xa.showspikes && point.xa.spikesnap !== "hovered data"; + }); + if (closestVPoints.length) { + var closestVPt = closestVPoints[0]; + if (isNumeric2(closestVPt.x0) && isNumeric2(closestVPt.y0)) { + tmpPoint = fillSpikePoint(closestVPt); + if (!spikePoints.vLinePoint || spikePoints.vLinePoint.spikeDistance > tmpPoint.spikeDistance) { + spikePoints.vLinePoint = tmpPoint; } } - var closestHPoints = closestPoints.filter(function(point) { - return point.ya.showspikes && point.ya.spikesnap !== "hovered data"; - }); - if (closestHPoints.length) { - var closestHPt = closestHPoints[0]; - if (isNumeric2(closestHPt.x0) && isNumeric2(closestHPt.y0)) { - tmpPoint = fillSpikePoint(closestHPt); - if (!spikePoints.hLinePoint || spikePoints.hLinePoint.spikeDistance > tmpPoint.spikeDistance) { - spikePoints.hLinePoint = tmpPoint; - } + } + var closestHPoints = closestPoints.filter(function(point) { + return point.ya.showspikes && point.ya.spikesnap !== "hovered data"; + }); + if (closestHPoints.length) { + var closestHPt = closestHPoints[0]; + if (isNumeric2(closestHPt.x0) && isNumeric2(closestHPt.y0)) { + tmpPoint = fillSpikePoint(closestHPt); + if (!spikePoints.hLinePoint || spikePoints.hLinePoint.spikeDistance > tmpPoint.spikeDistance) { + spikePoints.hLinePoint = tmpPoint; } } } @@ -36727,6 +36853,18 @@ var Plotly = (() => { } } findHoverPoints(); + function updateTernarySpikelines() { + fullLayout._hoverlayer.selectAll(".ternary-spikes").remove(); + if (spikedistance === 0) return; + for (let i2 = 0; i2 < subplots.length; i2++) { + const id2 = subplots[i2]; + const ternary = fullLayout[id2] && fullLayout[id2]._subplot; + if (ternary && ternary.drawSpikelines) { + const point = hoverData.find((d) => d.trace.subplot === id2 && d.index !== void 0 && d.index !== false && d.spikeDistance <= spikedistance); + ternary.drawSpikelines(point, ternarySpikePoints[id2], xvalArray && xvalArray[i2], yvalArray && yvalArray[i2]); + } + } + } function selectClosestPoint(pointsData, spikedistance2, spikeOnWinning2) { var resultPoint = null; var minDistance = Infinity; @@ -36816,6 +36954,7 @@ var Plotly = (() => { emitHover([]); gd._hoverAnywhereActive = true; } + if (hasTernary) updateTernarySpikelines(); return result; } if (hasCartesian) { @@ -36823,6 +36962,7 @@ var Plotly = (() => { createSpikelines(gd, spikePoints, spikelineOpts); } } + if (hasTernary) updateTernarySpikelines(); if (helpers.isXYhover(_mode) && hoverData[0].length !== 0 && hoverData[0].trace.type !== "splom") { var winningPoint = hoverData[0]; if (multipleHoverPoints[winningPoint.trace.type]) { @@ -36912,6 +37052,18 @@ var Plotly = (() => { if (!helpers.isUnifiedHover(hovermode)) { hoverAvoidOverlaps(hoverLabels, rotateLabels, fullLayout, hoverText.commonLabelBoundingBox); alignHoverText(hoverLabels, rotateLabels, fullLayout._invScaleX, fullLayout._invScaleY); + if (hoverText.mathjaxPromise) { + hoverText.mathjaxPromise.then(function() { + if (gd._hoverdata !== newhoverdata) return; + hoverAvoidOverlaps(hoverLabels, rotateLabels, fullLayout, hoverText.commonLabelBoundingBox); + alignHoverText(hoverLabels, rotateLabels, fullLayout._invScaleX, fullLayout._invScaleY); + hoverLabels.each(function() { + var g = d3.select(this); + svgTextUtils.repositionMathGroup(g.select("text.nums")); + svgTextUtils.repositionMathGroup(g.select("text.name")); + }); + }); + } } if (eventTarget && eventTarget.tagName) { var hasClickToShow = Registry.getComponentMethod("annotations", "hasClickToShow")(gd, newhoverdata); @@ -36945,6 +37097,9 @@ var Plotly = (() => { return [d.trace.index, d.index, d.x0, d.y0, d.name, d.attr, d.xa ? d.xa._id : "", d.ya ? d.ya._id : ""].join(","); } var EXTRA_STRING_REGEX = /([\s\S]*)<\/extra>/; + function getHoverTextBBox(gd, textSel) { + return getBoundingClientRect(gd, svgTextUtils.getMathOrTextNode(textSel)); + } function createHoverText(hoverData, opts) { var gd = opts.gd; var fullLayout = gd._fullLayout; @@ -36955,6 +37110,7 @@ var Plotly = (() => { var outerContainer = opts.outerContainer; var commonLabelOpts = opts.commonLabelOpts || {}; if (hoverData.length === 0) return [[]]; + var mathjaxPromises = []; var fontFamily = opts.fontFamily || constants2.HOVERFONT; var fontSize = opts.fontSize || constants2.HOVERFONTSIZE; var fontWeight = opts.fontWeight || fullLayout.font.weight; @@ -37010,9 +37166,7 @@ var Plotly = (() => { var lpath = Lib.ensureSingle(label, "path", "", function(s) { s.style({ "stroke-width": "1px" }); }); - var ltext = Lib.ensureSingle(label, "text", "", function(s) { - s.attr("data-notex", 1); - }); + var ltext = Lib.ensureSingle(label, "text", ""); var commonBgColor = commonLabelOpts.bgcolor || Color.defaultLine; var commonStroke = commonLabelOpts.bordercolor || Color.contrast(commonBgColor); var contrastColor = Color.contrast(commonBgColor); @@ -37032,100 +37186,122 @@ var Plotly = (() => { fill: commonBgColor, stroke: commonStroke }); - ltext.text(t0).call(Drawing.font, commonLabelFont).call(svgTextUtils.positionText, 0, 0).call(svgTextUtils.convertToTspans, gd); - label.attr("transform", ""); - var tbb2 = getBoundingClientRect(gd, ltext.node()); - var lx2, ly2; - if (hovermode === "x") { - var topsign = xa.side === "top" ? "-" : ""; - ltext.attr("text-anchor", "middle").call( - svgTextUtils.positionText, - 0, - xa.side === "top" ? outerTop - tbb2.bottom - HOVERARROWSIZE2 - HOVERTEXTPAD2 : outerTop - tbb2.top + HOVERARROWSIZE2 + HOVERTEXTPAD2 - ); - lx2 = xa._offset + (c0.x0 + c0.x1) / 2; - ly2 = ya._offset + (xa.side === "top" ? 0 : ya._length); - var halfWidth = tbb2.width / 2 + HOVERTEXTPAD2; - var tooltipMidX = lx2; - if (lx2 < halfWidth) { - tooltipMidX = halfWidth; - } else if (lx2 > fullLayout.width - halfWidth) { - tooltipMidX = fullLayout.width - halfWidth; - } - lpath.attr( - "d", - "M" + (lx2 - tooltipMidX) + ",0L" + (lx2 - tooltipMidX + HOVERARROWSIZE2) + "," + topsign + HOVERARROWSIZE2 + "H" + halfWidth + "v" + topsign + (HOVERTEXTPAD2 * 2 + tbb2.height) + "H" + -halfWidth + "V" + topsign + HOVERARROWSIZE2 + "H" + (lx2 - tooltipMidX - HOVERARROWSIZE2) + "Z" - ); - lx2 = tooltipMidX; - commonLabelRect.minX = lx2 - halfWidth; - commonLabelRect.maxX = lx2 + halfWidth; - if (xa.side === "top") { - commonLabelRect.minY = ly2 - (HOVERTEXTPAD2 * 2 + tbb2.height); - commonLabelRect.maxY = ly2 - HOVERTEXTPAD2; - } else { - commonLabelRect.minY = ly2 + HOVERTEXTPAD2; - commonLabelRect.maxY = ly2 + (HOVERTEXTPAD2 * 2 + tbb2.height); - } - } else { - var anchor; - var sgn; - var leftsign; - if (ya.side === "right") { - anchor = "start"; - sgn = 1; - leftsign = ""; - lx2 = xa._offset + xa._length; - } else { - anchor = "end"; - sgn = -1; - leftsign = "-"; - lx2 = xa._offset; - } - ly2 = ya._offset + (c0.y0 + c0.y1) / 2; - ltext.attr("text-anchor", anchor); - lpath.attr( - "d", - "M0,0L" + leftsign + HOVERARROWSIZE2 + "," + HOVERARROWSIZE2 + "V" + (HOVERTEXTPAD2 + tbb2.height / 2) + "h" + leftsign + (HOVERTEXTPAD2 * 2 + tbb2.width) + "V-" + (HOVERTEXTPAD2 + tbb2.height / 2) + "H" + leftsign + HOVERARROWSIZE2 + "V-" + HOVERARROWSIZE2 + "Z" + var commonLabelTex = svgTextUtils.isPureTex(String(t0)); + var onCommonLabelReady; + if (commonLabelTex) { + mathjaxPromises.push( + new Promise(function(resolve) { + onCommonLabelReady = function() { + if (!ltext.node().parentNode) { + resolve(); + return; + } + positionCommonLabel(); + svgTextUtils.repositionMathGroup(ltext); + resolve(); + }; + }) ); - commonLabelRect.minY = ly2 - (HOVERTEXTPAD2 + tbb2.height / 2); - commonLabelRect.maxY = ly2 + (HOVERTEXTPAD2 + tbb2.height / 2); - if (ya.side === "right") { - commonLabelRect.minX = lx2 + HOVERARROWSIZE2; - commonLabelRect.maxX = lx2 + HOVERARROWSIZE2 + (HOVERTEXTPAD2 * 2 + tbb2.width); - } else { - commonLabelRect.minX = lx2 - HOVERARROWSIZE2 - (HOVERTEXTPAD2 * 2 + tbb2.width); - commonLabelRect.maxX = lx2 - HOVERARROWSIZE2; - } - var halfHeight = tbb2.height / 2; - var lty = outerTop - tbb2.top - halfHeight; - var clipId = "clip" + fullLayout._uid + "commonlabel" + ya._id; - var clipPath; - if (lx2 < tbb2.width + 2 * HOVERTEXTPAD2 + HOVERARROWSIZE2) { - clipPath = "M-" + (HOVERARROWSIZE2 + HOVERTEXTPAD2) + "-" + halfHeight + "h-" + (tbb2.width - HOVERTEXTPAD2) + "V" + halfHeight + "h" + (tbb2.width - HOVERTEXTPAD2) + "Z"; - var ltx = tbb2.width - lx2 + HOVERTEXTPAD2; - svgTextUtils.positionText(ltext, ltx, lty); - if (anchor === "end") { - ltext.selectAll("tspan").each(function() { - var s = d3.select(this); - var dummy = Drawing.tester.append("text").text(s.text()).call(Drawing.font, commonLabelFont); - var dummyBB = getBoundingClientRect(gd, dummy.node()); - if (Math.round(dummyBB.width) < Math.round(tbb2.width)) { - s.attr("x", ltx - dummyBB.width); - } - dummy.remove(); - }); + } + ltext.text(t0).call(Drawing.font, commonLabelFont).attr("data-notex", commonLabelTex ? null : 1).call(svgTextUtils.positionText, 0, 0).call(svgTextUtils.convertToTspans, gd, onCommonLabelReady); + positionCommonLabel(); + function positionCommonLabel() { + label.attr("transform", ""); + svgTextUtils.positionText(ltext, 0, 0); + svgTextUtils.repositionMathGroup(ltext); + var tbb2 = getHoverTextBBox(gd, ltext); + var lx2, ly2; + if (hovermode === "x") { + var topsign = xa.side === "top" ? "-" : ""; + ltext.attr("text-anchor", "middle").call( + svgTextUtils.positionText, + 0, + xa.side === "top" ? outerTop - tbb2.bottom - HOVERARROWSIZE2 - HOVERTEXTPAD2 : outerTop - tbb2.top + HOVERARROWSIZE2 + HOVERTEXTPAD2 + ); + lx2 = xa._offset + (c0.x0 + c0.x1) / 2; + ly2 = ya._offset + (xa.side === "top" ? 0 : ya._length); + var halfWidth = tbb2.width / 2 + HOVERTEXTPAD2; + var tooltipMidX = lx2; + if (lx2 < halfWidth) { + tooltipMidX = halfWidth; + } else if (lx2 > fullLayout.width - halfWidth) { + tooltipMidX = fullLayout.width - halfWidth; + } + lpath.attr( + "d", + "M" + (lx2 - tooltipMidX) + ",0L" + (lx2 - tooltipMidX + HOVERARROWSIZE2) + "," + topsign + HOVERARROWSIZE2 + "H" + halfWidth + "v" + topsign + (HOVERTEXTPAD2 * 2 + tbb2.height) + "H" + -halfWidth + "V" + topsign + HOVERARROWSIZE2 + "H" + (lx2 - tooltipMidX - HOVERARROWSIZE2) + "Z" + ); + lx2 = tooltipMidX; + commonLabelRect.minX = lx2 - halfWidth; + commonLabelRect.maxX = lx2 + halfWidth; + if (xa.side === "top") { + commonLabelRect.minY = ly2 - (HOVERTEXTPAD2 * 2 + tbb2.height); + commonLabelRect.maxY = ly2 - HOVERTEXTPAD2; + } else { + commonLabelRect.minY = ly2 + HOVERTEXTPAD2; + commonLabelRect.maxY = ly2 + (HOVERTEXTPAD2 * 2 + tbb2.height); } } else { - svgTextUtils.positionText(ltext, sgn * (HOVERTEXTPAD2 + HOVERARROWSIZE2), lty); - clipPath = null; + var anchor; + var sgn; + var leftsign; + if (ya.side === "right") { + anchor = "start"; + sgn = 1; + leftsign = ""; + lx2 = xa._offset + xa._length; + } else { + anchor = "end"; + sgn = -1; + leftsign = "-"; + lx2 = xa._offset; + } + ly2 = ya._offset + (c0.y0 + c0.y1) / 2; + ltext.attr("text-anchor", anchor); + lpath.attr( + "d", + "M0,0L" + leftsign + HOVERARROWSIZE2 + "," + HOVERARROWSIZE2 + "V" + (HOVERTEXTPAD2 + tbb2.height / 2) + "h" + leftsign + (HOVERTEXTPAD2 * 2 + tbb2.width) + "V-" + (HOVERTEXTPAD2 + tbb2.height / 2) + "H" + leftsign + HOVERARROWSIZE2 + "V-" + HOVERARROWSIZE2 + "Z" + ); + commonLabelRect.minY = ly2 - (HOVERTEXTPAD2 + tbb2.height / 2); + commonLabelRect.maxY = ly2 + (HOVERTEXTPAD2 + tbb2.height / 2); + if (ya.side === "right") { + commonLabelRect.minX = lx2 + HOVERARROWSIZE2; + commonLabelRect.maxX = lx2 + HOVERARROWSIZE2 + (HOVERTEXTPAD2 * 2 + tbb2.width); + } else { + commonLabelRect.minX = lx2 - HOVERARROWSIZE2 - (HOVERTEXTPAD2 * 2 + tbb2.width); + commonLabelRect.maxX = lx2 - HOVERARROWSIZE2; + } + var halfHeight = tbb2.height / 2; + var lty = outerTop - tbb2.top - halfHeight; + var clipId = "clip" + fullLayout._uid + "commonlabel" + ya._id; + var clipPath; + if (lx2 < tbb2.width + 2 * HOVERTEXTPAD2 + HOVERARROWSIZE2) { + clipPath = "M-" + (HOVERARROWSIZE2 + HOVERTEXTPAD2) + "-" + halfHeight + "h-" + (tbb2.width - HOVERTEXTPAD2) + "V" + halfHeight + "h" + (tbb2.width - HOVERTEXTPAD2) + "Z"; + var ltx = tbb2.width - lx2 + HOVERTEXTPAD2; + svgTextUtils.positionText(ltext, ltx, lty); + if (anchor === "end") { + ltext.selectAll("tspan").each(function() { + var s = d3.select(this); + var dummy = Drawing.tester.append("text").text(s.text()).call(Drawing.font, commonLabelFont); + var dummyBB = getBoundingClientRect(gd, dummy.node()); + if (Math.round(dummyBB.width) < Math.round(tbb2.width)) { + s.attr("x", ltx - dummyBB.width); + } + dummy.remove(); + }); + } + } else { + svgTextUtils.positionText(ltext, sgn * (HOVERTEXTPAD2 + HOVERARROWSIZE2), lty); + clipPath = null; + } + var textClip = fullLayout._topclips.selectAll("#" + clipId).data(clipPath ? [0] : []); + textClip.enter().append("clipPath").attr("id", clipId).append("path"); + textClip.exit().remove(); + textClip.select("path").attr("d", clipPath); + Drawing.setClipUrl(ltext, clipPath ? clipId : null, gd); } - var textClip = fullLayout._topclips.selectAll("#" + clipId).data(clipPath ? [0] : []); - textClip.enter().append("clipPath").attr("id", clipId).append("path"); - textClip.exit().remove(); - textClip.select("path").attr("d", clipPath); - Drawing.setClipUrl(ltext, clipPath ? clipId : null, gd); + label.attr("transform", strTranslate(lx2, ly2)); } - label.attr("transform", strTranslate(lx2, ly2)); }); if (helpers.isUnifiedHover(hovermode)) { container.selectAll("g.hovertext").remove(); @@ -37332,6 +37508,23 @@ var Plotly = (() => { var texts2 = getHoverLabelText(d, showCommonLabel, hovermode, fullLayout, t0, g); var text2 = texts2[0]; var name6 = texts2[1]; + var hasName = !!(name6 && name6 !== text2); + var numsTex = svgTextUtils.isPureTex(text2); + var nameTex = hasName && svgTextUtils.isPureTex(name6); + var pendingLabelParts = (numsTex ? 1 : 0) + (nameTex ? 1 : 0); + var onLabelPartReady; + if (pendingLabelParts) { + mathjaxPromises.push( + new Promise(function(resolve) { + onLabelPartReady = function() { + if (--pendingLabelParts === 0) { + if (g.node().parentNode) finalizePosition(); + resolve(); + } + }; + }) + ); + } var tx = g.select("text.nums").call(Drawing.font, { family: d.fontFamily || fontFamily, size: d.fontSize || fontSize, @@ -37342,11 +37535,9 @@ var Plotly = (() => { textcase: d.fontTextcase || fontTextcase, lineposition: d.fontLineposition || fontLineposition, shadow: d.fontShadow || fontShadow - }).text(text2).attr("data-notex", 1).call(svgTextUtils.positionText, 0, 0).call(svgTextUtils.convertToTspans, gd); + }).text(text2).attr("data-notex", numsTex ? null : 1).call(svgTextUtils.positionText, 0, 0).call(svgTextUtils.convertToTspans, gd, numsTex ? onLabelPartReady : void 0); var tx2 = g.select("text.name"); - var tx2width = 0; - var tx2height = 0; - if (name6 && name6 !== text2) { + if (hasName) { tx2.call(Drawing.font, { family: d.fontFamily || fontFamily, size: d.fontSize || fontSize, @@ -37357,75 +37548,90 @@ var Plotly = (() => { textcase: d.fontTextcase || fontTextcase, lineposition: d.fontLineposition || fontLineposition, shadow: d.fontShadow || fontShadow - }).text(name6).attr("data-notex", 1).call(svgTextUtils.positionText, 0, 0).call(svgTextUtils.convertToTspans, gd); - var t2bb = getBoundingClientRect(gd, tx2.node()); - tx2width = t2bb.width + 2 * HOVERTEXTPAD2; - tx2height = t2bb.height + 2 * HOVERTEXTPAD2; + }).text(name6).attr("data-notex", nameTex ? null : 1).call(svgTextUtils.positionText, 0, 0).call(svgTextUtils.convertToTspans, gd, nameTex ? onLabelPartReady : void 0); } else { tx2.remove(); g.select("rect").remove(); } - g.select("path").style({ - fill: numsColor, - stroke: contrastColor - }); - var htx = d.xa._offset + (d.x0 + d.x1) / 2; - var hty = d.ya._offset + (d.y0 + d.y1) / 2; - var dx = Math.abs(d.x1 - d.x0); - var dy = Math.abs(d.y1 - d.y0); - var tbb2 = getBoundingClientRect(gd, tx.node()); - var tbbWidth = tbb2.width / fullLayout._invScaleX; - var tbbHeight = tbb2.height / fullLayout._invScaleY; - d.ty0 = (outerTop - tbb2.top) / fullLayout._invScaleY; - d.bx = tbbWidth + 2 * HOVERTEXTPAD2; - d.by = Math.max(tbbHeight + 2 * HOVERTEXTPAD2, tx2height); - d.anchor = "start"; - d.txwidth = tbbWidth; - d.tx2width = tx2width; - d.offset = 0; - var txTotalWidth = (tbbWidth + HOVERARROWSIZE2 + HOVERTEXTPAD2 + tx2width) * fullLayout._invScaleX; - var anchorStartOK, anchorEndOK; - if (rotateLabels) { - d.pos = htx; - anchorStartOK = hty + dy / 2 + txTotalWidth <= outerHeight; - anchorEndOK = hty - dy / 2 - txTotalWidth >= 0; - if ((d.idealAlign === "top" || !anchorStartOK) && anchorEndOK) { - hty -= dy / 2; - d.anchor = "end"; - } else if (anchorStartOK) { - hty += dy / 2; - d.anchor = "start"; + finalizePosition(); + function finalizePosition() { + g.attr("transform", ""); + tx.call(svgTextUtils.positionText, 0, 0); + svgTextUtils.repositionMathGroup(tx); + if (hasName) { + tx2.call(svgTextUtils.positionText, 0, 0); + svgTextUtils.repositionMathGroup(tx2); + } + g.select("path").style({ + fill: numsColor, + stroke: contrastColor + }); + var htx = d.xa._offset + (d.x0 + d.x1) / 2; + var hty = d.ya._offset + (d.y0 + d.y1) / 2; + var dx = Math.abs(d.x1 - d.x0); + var dy = Math.abs(d.y1 - d.y0); + var tx2width = 0; + var tx2height = 0; + if (hasName) { + var t2bb = getHoverTextBBox(gd, tx2); + tx2width = t2bb.width + 2 * HOVERTEXTPAD2; + tx2height = t2bb.height + 2 * HOVERTEXTPAD2; + } + var tbb2 = getHoverTextBBox(gd, tx); + var tbbWidth = tbb2.width / fullLayout._invScaleX; + var tbbHeight = tbb2.height / fullLayout._invScaleY; + d.ty0 = (outerTop - tbb2.top) / fullLayout._invScaleY; + d.bx = tbbWidth + 2 * HOVERTEXTPAD2; + d.by = Math.max(tbbHeight + 2 * HOVERTEXTPAD2, tx2height); + d.anchor = "start"; + d.txwidth = tbbWidth; + d.tx2width = tx2width; + d.offset = 0; + var txTotalWidth = (tbbWidth + HOVERARROWSIZE2 + HOVERTEXTPAD2 + tx2width) * fullLayout._invScaleX; + var anchorStartOK, anchorEndOK; + if (rotateLabels) { + d.pos = htx; + anchorStartOK = hty + dy / 2 + txTotalWidth <= outerHeight; + anchorEndOK = hty - dy / 2 - txTotalWidth >= 0; + if ((d.idealAlign === "top" || !anchorStartOK) && anchorEndOK) { + hty -= dy / 2; + d.anchor = "end"; + } else if (anchorStartOK) { + hty += dy / 2; + d.anchor = "start"; + } else { + d.anchor = "middle"; + } + d.crossPos = hty; } else { - d.anchor = "middle"; + d.pos = hty; + anchorStartOK = htx + dx / 2 + txTotalWidth <= outerWidth; + anchorEndOK = htx - dx / 2 - txTotalWidth >= 0; + if ((d.idealAlign === "left" || !anchorStartOK) && anchorEndOK) { + htx -= dx / 2; + d.anchor = "end"; + } else if (anchorStartOK) { + htx += dx / 2; + d.anchor = "start"; + } else { + d.anchor = "middle"; + var txHalfWidth = txTotalWidth / 2; + var overflowR = htx + txHalfWidth - outerWidth; + var overflowL = htx - txHalfWidth; + if (overflowR > 0) htx -= overflowR; + if (overflowL < 0) htx += -overflowL; + } + d.crossPos = htx; } - d.crossPos = hty; - } else { - d.pos = hty; - anchorStartOK = htx + dx / 2 + txTotalWidth <= outerWidth; - anchorEndOK = htx - dx / 2 - txTotalWidth >= 0; - if ((d.idealAlign === "left" || !anchorStartOK) && anchorEndOK) { - htx -= dx / 2; - d.anchor = "end"; - } else if (anchorStartOK) { - htx += dx / 2; - d.anchor = "start"; - } else { - d.anchor = "middle"; - var txHalfWidth = txTotalWidth / 2; - var overflowR = htx + txHalfWidth - outerWidth; - var overflowL = htx - txHalfWidth; - if (overflowR > 0) htx -= overflowR; - if (overflowL < 0) htx += -overflowL; - } - d.crossPos = htx; - } - tx.attr("text-anchor", d.anchor); - if (tx2width) tx2.attr("text-anchor", d.anchor); - g.attr("transform", strTranslate(htx, hty) + (rotateLabels ? strRotate(YANGLE2) : "")); + tx.attr("text-anchor", d.anchor); + if (tx2width) tx2.attr("text-anchor", d.anchor); + g.attr("transform", strTranslate(htx, hty) + (rotateLabels ? strRotate(YANGLE2) : "")); + } }); return { hoverLabels, - commonLabelBoundingBox: commonLabelRect + commonLabelBoundingBox: commonLabelRect, + mathjaxPromise: mathjaxPromises.length ? Promise.all(mathjaxPromises) : null }; } function getHoverLabelText(d, showCommonLabel, hovermode, fullLayout, t0, g) { @@ -48788,7 +48994,7 @@ var Plotly = (() => { } function marginPushersAgain() { if (!Plots.didMarginChange(oldMargins, fullLayout._size)) return; - return Lib.syncOrAsync([marginPushers, subroutines.layoutStyles], gd); + return marginPushers(); } function positionAndAutorange() { if (!recalc) { diff --git a/dist/plotly-gl3d.min.js b/dist/plotly-gl3d.min.js index 3c608d3ed0b..e5afdd154af 100644 --- a/dist/plotly-gl3d.min.js +++ b/dist/plotly-gl3d.min.js @@ -1,5 +1,5 @@ /** -* plotly.js (gl3d - minified) v4.1.2 +* plotly.js (gl3d - minified) v4.2.0 * Copyright 2012-2026, Plotly, Inc. * All rights reserved. * Licensed under the MIT license @@ -12,17 +12,17 @@ root.moduleName = factory(); } } (typeof self !== "undefined" ? self : this, () => { -"use strict";var Plotly=(()=>{var zY=Object.create;var uf=Object.defineProperty,NY=Object.defineProperties,qY=Object.getOwnPropertyDescriptor,BY=Object.getOwnPropertyDescriptors,OY=Object.getOwnPropertyNames,Gv=Object.getOwnPropertySymbols,UY=Object.getPrototypeOf,ag=Object.prototype.hasOwnProperty,H_=Object.prototype.propertyIsEnumerable;var U_=(e,r,t)=>r in e?uf(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,_t=(e,r)=>{for(var t in r||(r={}))ag.call(r,t)&&U_(e,t,r[t]);if(Gv)for(var t of Gv(r))H_.call(r,t)&&U_(e,t,r[t]);return e},Bt=(e,r)=>NY(e,BY(r));var V_=(e,r)=>{var t={};for(var n in e)ag.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&Gv)for(var n of Gv(e))r.indexOf(n)<0&&H_.call(e,n)&&(t[n]=e[n]);return t};var Ot=(e,r,t)=>()=>{if(t)throw t[0];try{return e&&(r=e(e=0)),r}catch(n){throw t=[n],n}};var _e=(e,r)=>()=>{try{return r||e((r={exports:{}}).exports,r),r.exports}catch(t){throw r=0,t}},Ut=(e,r)=>{for(var t in r)uf(e,t,{get:r[t],enumerable:!0})},G_=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let a of OY(r))!ag.call(e,a)&&a!==t&&uf(e,a,{get:()=>r[a],enumerable:!(n=qY(r,a))||n.enumerable});return e};var Y_=(e,r,t)=>(t=e!=null?zY(UY(e)):{},G_(r||!e||!e.__esModule?uf(t,"default",{value:e,enumerable:!0}):t,e)),or=e=>G_(uf({},"__esModule",{value:!0}),e);var X_=(e,r,t)=>new Promise((n,a)=>{var o=u=>{try{l(t.next(u))}catch(s){a(s)}},i=u=>{try{l(t.throw(u))}catch(s){a(s)}},l=u=>u.done?n(u.value):Promise.resolve(u.value).then(o,i);l((t=t.apply(e,r)).next())});var ff=_e(W_=>{"use strict";W_.version="4.1.2"});var J_=_e((Z_,Yv)=>{(function(r,t,n){t[r]=t[r]||n(),typeof Yv!="undefined"&&Yv.exports&&(Yv.exports=t[r])})("Promise",typeof window!="undefined"?window:Z_,function(){"use strict";var r,t,n,a=Object.prototype.toString,o=typeof setImmediate!="undefined"?function(k){return setImmediate(k)}:setTimeout;try{Object.defineProperty({},"x",{}),r=function(k,S,b,T){return Object.defineProperty(k,S,{value:b,writable:!0,configurable:T!==!1})}}catch(m){r=function(S,b,T){return S[b]=T,S}}n=(function(){var k,S,b;function T(h,_){this.fn=h,this.self=_,this.next=void 0}return{add:function(_,y){b=new T(_,y),S?S.next=b:k=b,S=b,b=void 0},drain:function(){var _=k;for(k=S=t=void 0;_;)_.fn.call(_.self),_=_.next}}})();function i(m,k){n.add(m,k),t||(t=o(n.drain))}function l(m){var k,S=typeof m;return m!=null&&(S=="object"||S=="function")&&(k=m.then),typeof k=="function"?k:!1}function u(){for(var m=0;m0&&i(u,S))}catch(b){c.call(new x(S),b)}}}function c(m){var k=this;k.triggered||(k.triggered=!0,k.def&&(k=k.def),k.msg=m,k.state=2,k.chain.length>0&&i(u,k))}function p(m,k,S,b){for(var T=0;T{(function(){var e={version:"3.8.2"},r=[].slice,t=function(C){return r.call(C)},n=self.document;function a(C){return C&&(C.ownerDocument||C.document||C).documentElement}function o(C){return C&&(C.ownerDocument&&C.ownerDocument.defaultView||C.document&&C||C.defaultView)}if(n)try{t(n.documentElement.childNodes)[0].nodeType}catch(C){t=function(N){for(var U=N.length,H=new Array(U);U--;)H[U]=N[U];return H}}if(Date.now||(Date.now=function(){return+new Date}),n)try{n.createElement("DIV").style.setProperty("opacity",0,"")}catch(C){var i=this.Element.prototype,l=i.setAttribute,u=i.setAttributeNS,s=this.CSSStyleDeclaration.prototype,f=s.setProperty;i.setAttribute=function(N,U){l.call(this,N,U+"")},i.setAttributeNS=function(N,U,H){u.call(this,N,U,H+"")},s.setProperty=function(N,U,H){f.call(this,N,U+"",H)}}e.ascending=c;function c(C,N){return CN?1:C>=N?0:NaN}e.descending=function(C,N){return NC?1:N>=C?0:NaN},e.min=function(C,N){var U=-1,H=C.length,X,W;if(arguments.length===1){for(;++U=W){X=W;break}for(;++UW&&(X=W)}else{for(;++U=W){X=W;break}for(;++UW&&(X=W)}return X},e.max=function(C,N){var U=-1,H=C.length,X,W;if(arguments.length===1){for(;++U=W){X=W;break}for(;++UX&&(X=W)}else{for(;++U=W){X=W;break}for(;++UX&&(X=W)}return X},e.extent=function(C,N){var U=-1,H=C.length,X,W,se;if(arguments.length===1){for(;++U=W){X=se=W;break}for(;++UW&&(X=W),se=W){X=se=W;break}for(;++UW&&(X=W),se1)return se/(fe-1)},e.deviation=function(){var C=e.variance.apply(this,arguments);return C&&Math.sqrt(C)};function g(C){return{left:function(N,U,H,X){for(arguments.length<3&&(H=0),arguments.length<4&&(X=N.length);H>>1;C(N[W],U)<0?H=W+1:X=W}return H},right:function(N,U,H,X){for(arguments.length<3&&(H=0),arguments.length<4&&(X=N.length);H>>1;C(N[W],U)>0?X=W:H=W+1}return H}}}var w=g(c);e.bisectLeft=w.left,e.bisect=e.bisectRight=w.right,e.bisector=function(C){return g(C.length===1?function(N,U){return c(C(N),U)}:C)},e.shuffle=function(C,N,U){(H=arguments.length)<3&&(U=C.length,H<2&&(N=0));for(var H=U-N,X,W;H;)W=Math.random()*H--|0,X=C[H+N],C[H+N]=C[W+N],C[W+N]=X;return C},e.permute=function(C,N){for(var U=N.length,H=new Array(U);U--;)H[U]=C[N[U]];return H},e.pairs=function(C){for(var N=0,U=C.length-1,H,X=C[0],W=new Array(U<0?0:U);N=0;)for(se=C[N],U=se.length;--U>=0;)W[--X]=se[U];return W};var m=Math.abs;e.range=function(C,N,U){if(arguments.length<3&&(U=1,arguments.length<2&&(N=C,C=0)),(N-C)/U===1/0)throw new Error("infinite range");var H=[],X=k(m(U)),W=-1,se;if(C*=X,N*=X,U*=X,U<0)for(;(se=C+U*++W)>N;)H.push(se/X);else for(;(se=C+U*++W)=N.length)return X?X.call(C,fe):H?fe.sort(H):fe;for(var Me=-1,De=fe.length,Re=N[we++],Ge,Je,Ie,Ne=new b,Ue;++Me=N.length)return ne;var we=[],Me=U[fe++];return ne.forEach(function(De,Re){we.push({key:De,values:se(Re,fe)})}),Me?we.sort(function(De,Re){return Me(De.key,Re.key)}):we}return C.map=function(ne,fe){return W(fe,ne,0)},C.entries=function(ne){return se(W(e.map,ne,0),0)},C.key=function(ne){return N.push(ne),C},C.sortKeys=function(ne){return U[N.length-1]=ne,C},C.sortValues=function(ne){return H=ne,C},C.rollup=function(ne){return X=ne,C},C},e.set=function(C){var N=new R;if(C)for(var U=0,H=C.length;U=0&&(H=C.slice(U+1),C=C.slice(0,U)),C)return arguments.length<2?this[C].on(H):this[C].on(H,N);if(arguments.length===2){if(N==null)for(C in this)this.hasOwnProperty(C)&&this[C].on(H,null);return this}};function O(C){var N=[],U=new b;function H(){for(var X=N,W=-1,se=X.length,ne;++W=0&&(U=C.slice(0,N))!=="xmlns"&&(C=C.slice(N+1)),ae.hasOwnProperty(U)?{space:ae[U],local:C}:C}},Q.attr=function(C,N){if(arguments.length<2){if(typeof C=="string"){var U=this.node();return C=e.ns.qualify(C),C.local?U.getAttributeNS(C.space,C.local):U.getAttribute(C)}for(N in C)this.each(ce(N,C[N]));return this}return this.each(ce(C,N))};function ce(C,N){C=e.ns.qualify(C);function U(){this.removeAttribute(C)}function H(){this.removeAttributeNS(C.space,C.local)}function X(){this.setAttribute(C,N)}function W(){this.setAttributeNS(C.space,C.local,N)}function se(){var fe=N.apply(this,arguments);fe==null?this.removeAttribute(C):this.setAttribute(C,fe)}function ne(){var fe=N.apply(this,arguments);fe==null?this.removeAttributeNS(C.space,C.local):this.setAttributeNS(C.space,C.local,fe)}return N==null?C.local?H:U:typeof N=="function"?C.local?ne:se:C.local?W:X}function Te(C){return C.trim().replace(/\s+/g," ")}Q.classed=function(C,N){if(arguments.length<2){if(typeof C=="string"){var U=this.node(),H=(C=Se(C)).length,X=-1;if(N=U.classList){for(;++X=0;)(W=U[H])&&(X&&X!==W.nextSibling&&X.parentNode.insertBefore(W,X),X=W);return this},Q.sort=function(C){C=ve.apply(this,arguments);for(var N=-1,U=this.length;++N=N&&(N=X+1);!(fe=se[N])&&++N0&&(C=C.slice(0,X));var se=xe.get(C);se&&(C=se,W=Pe);function ne(){var Me=this[H];Me&&(this.removeEventListener(C,Me,Me.$),delete this[H])}function fe(){var Me=W(N,t(arguments));ne.call(this),this.addEventListener(C,this[H]=Me,Me.$=U),Me._=N}function we(){var Me=new RegExp("^__on([^.]+)"+e.requote(C)+"$"),De;for(var Re in this)if(De=Re.match(Me)){var Ge=this[Re];this.removeEventListener(De[1],Ge,Ge.$),delete this[Re]}}return X?N?fe:ne:N?F:we}var xe=e.map({mouseenter:"mouseover",mouseleave:"mouseout"});n&&xe.forEach(function(C){"on"+C in n&&xe.remove(C)});function Ae(C,N){return function(U){var H=e.event;e.event=U,N[0]=this.__data__;try{C.apply(this,N)}finally{e.event=H}}}function Pe(C,N){var U=Ae(C,N);return function(H){var X=this,W=H.relatedTarget;(!W||W!==X&&!(W.compareDocumentPosition(X)&8))&&U.call(X,H)}}var Fe,Ye=0;function qe(C){var N=".dragsuppress-"+ ++Ye,U="click"+N,H=e.select(o(C)).on("touchmove"+N,V).on("dragstart"+N,V).on("selectstart"+N,V);if(Fe==null&&(Fe="onselectstart"in C?!1:P(C.style,"userSelect")),Fe){var X=a(C).style,W=X[Fe];X[Fe]="none"}return function(se){if(H.on(N,null),Fe&&(X[Fe]=W),se){var ne=function(){H.on(U,null)};H.on(U,function(){V(),ne()},!0),setTimeout(ne,0)}}}e.mouse=function(C){return Oe(C,K())};var Be=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;function Oe(C,N){N.changedTouches&&(N=N.changedTouches[0]);var U=C.ownerSVGElement||C;if(U.createSVGPoint){var H=U.createSVGPoint();if(Be<0){var X=o(C);if(X.scrollX||X.scrollY){U=e.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var W=U[0][0].getScreenCTM();Be=!(W.f||W.e),U.remove()}}return Be?(H.x=N.pageX,H.y=N.pageY):(H.x=N.clientX,H.y=N.clientY),H=H.matrixTransform(C.getScreenCTM().inverse()),[H.x,H.y]}var se=C.getBoundingClientRect();return[N.clientX-se.left-C.clientLeft,N.clientY-se.top-C.clientTop]}e.touch=function(C,N,U){if(arguments.length<3&&(U=N,N=K().changedTouches),N){for(var H=0,X=N.length,W;H0?1:C<0?-1:0}function Mr(C,N,U){return(N[0]-C[0])*(U[1]-C[1])-(N[1]-C[1])*(U[0]-C[0])}function Gr(C){return C>1?0:C<-1?ir:Math.acos(C)}function Tr(C){return C>1?Ee:C<-1?-Ee:Math.asin(C)}function Fr(C){return((C=Math.exp(C))-1/C)/2}function jr(C){return((C=Math.exp(C))+1/C)/2}function Cr(C){return((C=Math.exp(2*C))-1)/(C+1)}function Zr(C){return(C=Math.sin(C/2))*C}var xt=Math.SQRT2,$r=2,ut=4;e.interpolateZoom=function(C,N){var U=C[0],H=C[1],X=C[2],W=N[0],se=N[1],ne=N[2],fe=W-U,we=se-H,Me=fe*fe+we*we,De,Re;if(Me0&&(cr=cr.transition().duration(se)),cr.call($e.event)}function br(){Ne&&Ne.domain(Ie.range().map(function(cr){return(cr-C.x)/C.k}).map(Ie.invert)),Ze&&Ze.domain(Ue.range().map(function(cr){return(cr-C.y)/C.k}).map(Ue.invert))}function xr(cr){ne++||cr({type:"zoomstart"})}function qr(cr){br(),cr({type:"zoom",scale:C.k,translate:[C.x,C.y]})}function wr(cr){--ne||(cr({type:"zoomend"}),U=null)}function Rr(){var cr=this,Br=Je.of(cr,arguments),Hr=0,ht=e.select(o(cr)).on(we,zn).on(Me,ra),Yt=Ve(e.mouse(cr)),cn=qe(cr);Ov.call(cr),xr(Br);function zn(){Hr=1,gr(e.mouse(cr),Yt),qr(Br)}function ra(){ht.on(we,null).on(Me,null),cn(Hr),wr(Br)}}function vt(){var cr=this,Br=Je.of(cr,arguments),Hr={},ht=0,Yt,cn=".zoom-"+e.event.changedTouches[0].identifier,zn="touchmove"+cn,ra="touchend"+cn,va=[],ta=e.select(cr),xa=qe(cr);_a(),xr(Br),ta.on(fe,null).on(Re,_a);function Un(){var bi=e.touches(cr);return Yt=C.k,bi.forEach(function(Nn){Nn.identifier in Hr&&(Hr[Nn.identifier]=Ve(Nn))}),bi}function _a(){var bi=e.event.target;e.select(bi).on(zn,as).on(ra,IY),va.push(bi);for(var Nn=e.event.changedTouches,$a=0,Ji=Nn.length;$a1){var is=Ka[0],rl=Ka[1],Vv=is[0]-rl[0],O_=is[1]-rl[1];ht=Vv*Vv+O_*O_}}function as(){var bi=e.touches(cr),Nn,$a,Ji,Ka;Ov.call(cr);for(var x0=0,is=bi.length;x01?1:N,U=U<0?0:U>1?1:U,X=U<=.5?U*(1+N):U+N-U*N,H=2*U-X;function W(ne){return ne>360?ne-=360:ne<0&&(ne+=360),ne<60?H+(X-H)*ne/60:ne<180?X:ne<240?H+(X-H)*(240-ne)/60:H}function se(ne){return Math.round(W(ne)*255)}return new yn(se(C+120),se(C),se(C-120))}e.hcl=it;function it(C,N,U){return this instanceof it?(this.h=+C,this.c=+N,void(this.l=+U)):arguments.length<2?C instanceof it?new it(C.h,C.c,C.l):C instanceof Ct?Yi(C.l,C.a,C.b):Yi((C=Tv((C=e.rgb(C)).r,C.g,C.b)).l,C.a,C.b):new it(C,N,U)}var Et=it.prototype=new tt;Et.brighter=function(C){return new it(this.h,this.c,Math.min(100,this.l+yt*(arguments.length?C:1)))},Et.darker=function(C){return new it(this.h,this.c,Math.max(0,this.l-yt*(arguments.length?C:1)))},Et.rgb=function(){return Kt(this.h,this.c,this.l).rgb()};function Kt(C,N,U){return isNaN(C)&&(C=0),isNaN(N)&&(N=0),new Ct(U,Math.cos(C*=ze)*N,Math.sin(C)*N)}e.lab=Ct;function Ct(C,N,U){return this instanceof Ct?(this.l=+C,this.a=+N,void(this.b=+U)):arguments.length<2?C instanceof Ct?new Ct(C.l,C.a,C.b):C instanceof it?Kt(C.h,C.c,C.l):Tv((C=yn(C)).r,C.g,C.b):new Ct(C,N,U)}var yt=18,Lt=.95047,Dt=1,ba=1.08883,jn=Ct.prototype=new tt;jn.brighter=function(C){return new Ct(Math.min(100,this.l+yt*(arguments.length?C:1)),this.a,this.b)},jn.darker=function(C){return new Ct(Math.max(0,this.l-yt*(arguments.length?C:1)),this.a,this.b)},jn.rgb=function(){return Wa(this.l,this.a,this.b)};function Wa(C,N,U){var H=(C+16)/116,X=H+N/500,W=H-U/200;return X=Ao(X)*Lt,H=Ao(H)*Dt,W=Ao(W)*ba,new yn(So(3.2404542*X-1.5371385*H-.4985314*W),So(-.969266*X+1.8760108*H+.041556*W),So(.0556434*X-.2040259*H+1.0572252*W))}function Yi(C,N,U){return C>0?new it(Math.atan2(U,N)*Qe,Math.sqrt(N*N+U*U),C):new it(NaN,NaN,C)}function Ao(C){return C>.206893034?C*C*C:(C-4/29)/7.787037}function ko(C){return C>.008856?Math.pow(C,1/3):7.787037*C+4/29}function So(C){return Math.round(255*(C<=.00304?12.92*C:1.055*Math.pow(C,1/2.4)-.055))}e.rgb=yn;function yn(C,N,U){return this instanceof yn?(this.r=~~C,this.g=~~N,void(this.b=~~U)):arguments.length<2?C instanceof yn?new yn(C.r,C.g,C.b):wv(""+C,yn,gt):new yn(C,N,U)}function Qo(C){return new yn(C>>16,C>>8&255,C&255)}function Xi(C){return Qo(C)+""}var Wi=yn.prototype=new tt;Wi.brighter=function(C){C=Math.pow(.7,arguments.length?C:1);var N=this.r,U=this.g,H=this.b,X=30;return!N&&!U&&!H?new yn(X,X,X):(N&&N>4,H=H>>4|H,X=fe&240,X=X>>4|X,W=fe&15,W=W<<4|W):C.length===7&&(H=(fe&16711680)>>16,X=(fe&65280)>>8,W=fe&255)),N(H,X,W))}function Mv(C,N,U){var H=Math.min(C/=255,N/=255,U/=255),X=Math.max(C,N,U),W=X-H,se,ne,fe=(X+H)/2;return W?(ne=fe<.5?W/(X+H):W/(2-X-H),C==X?se=(N-U)/W+(N0&&fe<1?0:se),new Ur(se,ne,fe)}function Tv(C,N,U){C=Ku(C),N=Ku(N),U=Ku(U);var H=ko((.4124564*C+.3575761*N+.1804375*U)/Lt),X=ko((.2126729*C+.7151522*N+.072175*U)/Dt),W=ko((.0193339*C+.119192*N+.9503041*U)/ba);return Ct(116*X-16,500*(H-X),200*(X-W))}function Ku(C){return(C/=255)<=.04045?C/12.92:Math.pow((C+.055)/1.055,2.4)}function Qu(C){var N=parseFloat(C);return C.charAt(C.length-1)==="%"?Math.round(N*2.55):N}var kr=e.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});kr.forEach(function(C,N){kr.set(C,Qo(N))});function Ar(C){return typeof C=="function"?C:function(){return C}}e.functor=Ar,e.xhr=dt(z);function dt(C){return function(N,U,H){return arguments.length===2&&typeof U=="function"&&(H=U,U=null),dr(N,U,C,H)}}function dr(C,N,U,H){var X={},W=e.dispatch("beforesend","progress","load","error"),se={},ne=new XMLHttpRequest,fe=null;self.XDomainRequest&&!("withCredentials"in ne)&&/^(http(s)?:)?\/\//.test(C)&&(ne=new XDomainRequest),"onload"in ne?ne.onload=ne.onerror=we:ne.onreadystatechange=function(){ne.readyState>3&&we()};function we(){var Me=ne.status,De;if(!Me&&Rt(ne)||Me>=200&&Me<300||Me===304){try{De=U.call(X,ne)}catch(Re){W.error.call(X,Re);return}W.load.call(X,De)}else W.error.call(X,ne)}return ne.onprogress=function(Me){var De=e.event;e.event=Me;try{W.progress.call(X,ne)}finally{e.event=De}},X.header=function(Me,De){return Me=(Me+"").toLowerCase(),arguments.length<2?se[Me]:(De==null?delete se[Me]:se[Me]=De+"",X)},X.mimeType=function(Me){return arguments.length?(N=Me==null?null:Me+"",X):N},X.responseType=function(Me){return arguments.length?(fe=Me,X):fe},X.response=function(Me){return U=Me,X},["get","post"].forEach(function(Me){X[Me]=function(){return X.send.apply(X,[Me].concat(t(arguments)))}}),X.send=function(Me,De,Re){if(arguments.length===2&&typeof De=="function"&&(Re=De,De=null),ne.open(Me,C,!0),N!=null&&!("accept"in se)&&(se.accept=N+",*/*"),ne.setRequestHeader)for(var Ge in se)ne.setRequestHeader(Ge,se[Ge]);return N!=null&&ne.overrideMimeType&&ne.overrideMimeType(N),fe!=null&&(ne.responseType=fe),Re!=null&&X.on("error",Re).on("load",function(Je){Re(null,Je)}),W.beforesend.call(X,ne),ne.send(De==null?null:De),X},X.abort=function(){return ne.abort(),X},e.rebind(X,W,"on"),H==null?X:X.get(ea(H))}function ea(C){return C.length===1?function(N,U){C(N==null?U:null)}:C}function Rt(C){var N=C.responseType;return N&&N!=="text"?C.response:C.responseText}e.dsv=function(C,N){var U=new RegExp('["'+C+` -]`),H=C.charCodeAt(0);function X(we,Me,De){arguments.length<3&&(De=Me,Me=null);var Re=dr(we,N,Me==null?W:se(Me),De);return Re.row=function(Ge){return arguments.length?Re.response((Me=Ge)==null?W:se(Ge)):Me},Re}function W(we){return X.parse(we.responseText)}function se(we){return function(Me){return X.parse(Me.responseText,we)}}X.parse=function(we,Me){var De;return X.parseRows(we,function(Re,Ge){if(De)return De(Re,Ge-1);var Je=function(Ie){for(var Ne={},Ue=Re.length,Ze=0;Ze=Je)return Re;if(Ze)return Ze=!1,De;var ar=Ie;if(we.charCodeAt(ar)===34){for(var hr=ar;hr++24?(isFinite(N)&&(clearTimeout(es),es=setTimeout(Lp,N)),Za=0):(Za=1,k6(Lp))}e.timer.flush=function(){S6(),C6()};function S6(){for(var C=Date.now(),N=Pn;N;)C>=N.t&&N.c(C-N.t)&&(N.c=null),N=N.n;return C}function C6(){for(var C,N=Pn,U=1/0;N;)N.c?(N.t=0;--ne)Ie.push(X[we[De[ne]][2]]);for(ne=+Ge;ne1&&Mr(C[U[H-2]],C[U[H-1]],C[X])<=0;)--H;U[H++]=X}return U.slice(0,H)}function qV(C,N){return C[0]-N[0]||C[1]-N[1]}e.geom.polygon=function(C){return q(C,kv),C};var kv=e.geom.polygon.prototype=[];kv.area=function(){for(var C=-1,N=this.length,U,H=this[N-1],X=0;++CXe)ne=ne.L;else if(se=N-HV(ne,U),se>Xe){if(!ne.R){H=ne;break}ne=ne.R}else{W>-Xe?(H=ne.P,X=ne):se>-Xe?(H=ne,X=ne.N):H=X=ne;break}var fe=F6(C);if(g0.insert(H,fe),!(!H&&!X)){if(H===X){m0(H),X=F6(H.site),g0.insert(fe,X),fe.edge=X.edge=rf(H.site,fe.site),y0(H),y0(X);return}if(!X){fe.edge=rf(H.site,fe.site);return}m0(H),m0(X);var we=H.site,Me=we.x,De=we.y,Re=C.x-Me,Ge=C.y-De,Je=X.site,Ie=Je.x-Me,Ne=Je.y-De,Ue=2*(Re*Ne-Ge*Ie),Ze=Re*Re+Ge*Ge,$e=Ie*Ie+Ne*Ne,Ve={x:(Ne*Ze-Ge*$e)/Ue+Me,y:(Re*$e-Ie*Ze)/Ue+De};Sv(X.edge,we,Je,Ve),fe.edge=rf(we,C,null,Ve),X.edge=rf(C,Je,null,Ve),y0(H),y0(X)}}function P6(C,N){var U=C.site,H=U.x,X=U.y,W=X-N;if(!W)return H;var se=C.P;if(!se)return-1/0;U=se.site;var ne=U.x,fe=U.y,we=fe-N;if(!we)return ne;var Me=ne-H,De=1/W-1/we,Re=Me/we;return De?(-Re+Math.sqrt(Re*Re-2*De*(Me*Me/(-2*we)-fe+we/2+X-W/2)))/De+H:(H+ne)/2}function HV(C,N){var U=C.N;if(U)return P6(U,N);var H=C.site;return H.y===N?H.x:1/0}function I6(C){this.site=C,this.edges=[]}I6.prototype.prepare=function(){for(var C=this.edges,N=C.length,U;N--;)U=C[N].edge,(!U.b||!U.a)&&C.splice(N,1);return C.sort(z6),C.length};function VV(C){for(var N=C[0][0],U=C[1][0],H=C[0][1],X=C[1][1],W,se,ne,fe,we=rs,Me=we.length,De,Re,Ge,Je,Ie,Ne;Me--;)if(De=we[Me],!(!De||!De.prepare()))for(Ge=De.edges,Je=Ge.length,Re=0;ReXe||m(fe-se)>Xe)&&(Ge.splice(Re,0,new Cv(ZV(De.site,Ne,m(ne-N)Xe?{x:N,y:m(W-N)Xe?{x:m(se-X)Xe?{x:U,y:m(W-U)Xe?{x:m(se-H)=-tr)){var Re=fe*fe+we*we,Ge=Me*Me+Ne*Ne,Je=(Ne*Re-we*Ge)/De,Ie=(fe*Ge-Me*Re)/De,Ne=Ie+ne,Ue=R6.pop()||new GV;Ue.arc=C,Ue.site=X,Ue.x=Je+se,Ue.y=Ne+Math.sqrt(Je*Je+Ie*Ie),Ue.cy=Ne,C.circle=Ue;for(var Ze=null,$e=ef._;$e;)if(Ue.y<$e.y||Ue.y===$e.y&&Ue.x<=$e.x)if($e.L)$e=$e.L;else{Ze=$e.P;break}else if($e.R)$e=$e.R;else{Ze=$e;break}ef.insert(Ze,Ue),Ze||(Fp=Ue)}}}}function m0(C){var N=C.circle;N&&(N.P||(Fp=N.N),ef.remove(N),R6.push(N),Ev(N),C.circle=null)}function YV(C,N,U,H){return function(X){var W=X.a,se=X.b,ne=W.x,fe=W.y,we=se.x,Me=se.y,De=0,Re=1,Ge=we-ne,Je=Me-fe,Ie;if(Ie=C-ne,!(!Ge&&Ie>0)){if(Ie/=Ge,Ge<0){if(Ie0){if(Ie>Re)return;Ie>De&&(De=Ie)}if(Ie=U-ne,!(!Ge&&Ie<0)){if(Ie/=Ge,Ge<0){if(Ie>Re)return;Ie>De&&(De=Ie)}else if(Ge>0){if(Ie0)){if(Ie/=Je,Je<0){if(Ie0){if(Ie>Re)return;Ie>De&&(De=Ie)}if(Ie=H-fe,!(!Je&&Ie<0)){if(Ie/=Je,Je<0){if(Ie>Re)return;Ie>De&&(De=Ie)}else if(Je>0){if(Ie0&&(X.a={x:ne+De*Ge,y:fe+De*Je}),Re<1&&(X.b={x:ne+Re*Ge,y:fe+Re*Je}),X}}}}}}function XV(C){for(var N=p0,U=YV(C[0][0],C[0][1],C[1][0],C[1][1]),H=N.length,X;H--;)X=N[H],(!WV(X,C)||!U(X)||m(X.a.x-X.b.x)=W)return;if(Me>Re){if(!H)H={x:Je,y:se};else if(H.y>=ne)return;U={x:Je,y:ne}}else{if(!H)H={x:Je,y:ne};else if(H.y1)if(Me>Re){if(!H)H={x:(se-Ue)/Ne,y:se};else if(H.y>=ne)return;U={x:(ne-Ue)/Ne,y:ne}}else{if(!H)H={x:(ne-Ue)/Ne,y:ne};else if(H.y=W)return;U={x:W,y:Ne*W+Ue}}else{if(!H)H={x:W,y:Ne*W+Ue};else if(H.x=Me&&Ue.x<=Re&&Ue.y>=De&&Ue.y<=Ge?[[Me,Ge],[Re,Ge],[Re,De],[Me,De]]:[];Ze.point=fe[Ie]}),we}function ne(fe){return fe.map(function(we,Me){return{x:Math.round(H(we,Me)/Xe)*Xe,y:Math.round(X(we,Me)/Xe)*Xe,i:Me}})}return se.links=function(fe){return zp(ne(fe)).edges.filter(function(we){return we.l&&we.r}).map(function(we){return{source:fe[we.l.i],target:fe[we.r.i]}})},se.triangles=function(fe){var we=[];return zp(ne(fe)).cells.forEach(function(Me,De){for(var Re=Me.site,Ge=Me.edges.sort(z6),Je=-1,Ie=Ge.length,Ne,Ue,Ze=Ge[Ie-1].edge,$e=Ze.l===Re?Ze.r:Ze.l;++Je$e&&($e=Me.x),Me.y>Ve&&(Ve=Me.y),Ge.push(Me.x),Je.push(Me.y);else for(Ie=0;Ie$e&&($e=ar),hr>Ve&&(Ve=hr),Ge.push(ar),Je.push(hr)}var gr=$e-Ue,pr=Ve-Ze;gr>pr?Ve=Ze+gr:$e=Ue+pr;function br(wr,Rr,vt,Qt,mt,cr,Br,Hr){if(!(isNaN(vt)||isNaN(Qt)))if(wr.leaf){var ht=wr.x,Yt=wr.y;if(ht!=null)if(m(ht-vt)+m(Yt-Qt)<.01)xr(wr,Rr,vt,Qt,mt,cr,Br,Hr);else{var cn=wr.point;wr.x=wr.y=wr.point=null,xr(wr,cn,ht,Yt,mt,cr,Br,Hr),xr(wr,Rr,vt,Qt,mt,cr,Br,Hr)}else wr.x=vt,wr.y=Qt,wr.point=Rr}else xr(wr,Rr,vt,Qt,mt,cr,Br,Hr)}function xr(wr,Rr,vt,Qt,mt,cr,Br,Hr){var ht=(mt+Br)*.5,Yt=(cr+Hr)*.5,cn=vt>=ht,zn=Qt>=Yt,ra=zn<<1|cn;wr.leaf=!1,wr=wr.nodes[ra]||(wr.nodes[ra]=B6()),cn?mt=ht:Br=ht,zn?cr=Yt:Hr=Yt,br(wr,Rr,vt,Qt,mt,cr,Br,Hr)}var qr=B6();if(qr.add=function(wr){br(qr,wr,+De(wr,++Ie),+Re(wr,Ie),Ue,Ze,$e,Ve)},qr.visit=function(wr){af(wr,qr,Ue,Ze,$e,Ve)},qr.find=function(wr){return jV(qr,wr[0],wr[1],Ue,Ze,$e,Ve)},Ie=-1,N==null){for(;++IeW||Re>se||Ge=ar,pr=U>=hr,br=pr<<1|gr,xr=br+4;brU&&(W=N.slice(U,W),ne[se]?ne[se]+=W:ne[++se]=W),(H=H[0])===(X=X[0])?ne[se]?ne[se]+=X:ne[++se]=X:(ne[++se]=null,fe.push({i:se,x:Co(H,X)})),U=Bp.lastIndex;return U=0&&!(H=e.interpolators[U](C,N)););return H}e.interpolators=[function(C,N){var U=typeof N;return(U==="string"?kr.has(N.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(N)?Np:U6:N instanceof tt?Np:Array.isArray(N)?Dv:U==="object"&&isNaN(N)?O6:Co)(C,N)}],e.interpolateArray=Dv;function Dv(C,N){var U=[],H=[],X=C.length,W=N.length,se=Math.min(C.length,N.length),ne;for(ne=0;ne=0?C.slice(0,N):C,H=N>=0?C.slice(N+1):"in";return U=eG.get(U)||H6,H=rG.get(H)||z,tG(H(U.apply(null,r.call(arguments,1))))};function tG(C){return function(N){return N<=0?0:N>=1?1:C(N)}}function V6(C){return function(N){return 1-C(1-N)}}function G6(C){return function(N){return .5*(N<.5?C(2*N):2-C(2-2*N))}}function nG(C){return C*C}function aG(C){return C*C*C}function iG(C){if(C<=0)return 0;if(C>=1)return 1;var N=C*C,U=N*C;return 4*(C<.5?U:3*(C-N)+U-.75)}function oG(C){return function(N){return Math.pow(N,C)}}function lG(C){return 1-Math.cos(C*Ee)}function sG(C){return Math.pow(2,10*(C-1))}function uG(C){return 1-Math.sqrt(1-C*C)}function fG(C,N){var U;return arguments.length<2&&(N=.45),arguments.length?U=N/je*Math.asin(1/C):(C=1,U=N/4),function(H){return 1+C*Math.pow(2,-10*H)*Math.sin((H-U)*je/N)}}function cG(C){return C||(C=1.70158),function(N){return N*N*((C+1)*N-C)}}function vG(C){return C<1/2.75?7.5625*C*C:C<2/2.75?7.5625*(C-=1.5/2.75)*C+.75:C<2.5/2.75?7.5625*(C-=2.25/2.75)*C+.9375:7.5625*(C-=2.625/2.75)*C+.984375}e.interpolateHcl=hG;function hG(C,N){C=e.hcl(C),N=e.hcl(N);var U=C.h,H=C.c,X=C.l,W=N.h-U,se=N.c-H,ne=N.l-X;return isNaN(se)&&(se=0,H=isNaN(H)?N.c:H),isNaN(W)?(W=0,U=isNaN(U)?N.h:U):W>180?W-=360:W<-180&&(W+=360),function(fe){return Kt(U+W*fe,H+se*fe,X+ne*fe)+""}}e.interpolateHsl=dG;function dG(C,N){C=e.hsl(C),N=e.hsl(N);var U=C.h,H=C.s,X=C.l,W=N.h-U,se=N.s-H,ne=N.l-X;return isNaN(se)&&(se=0,H=isNaN(H)?N.s:H),isNaN(W)?(W=0,U=isNaN(U)?N.h:U):W>180?W-=360:W<-180&&(W+=360),function(fe){return gt(U+W*fe,H+se*fe,X+ne*fe)+""}}e.interpolateLab=pG;function pG(C,N){C=e.lab(C),N=e.lab(N);var U=C.l,H=C.a,X=C.b,W=N.l-U,se=N.a-H,ne=N.b-X;return function(fe){return Wa(U+W*fe,H+se*fe,X+ne*fe)+""}}e.interpolateRound=Y6;function Y6(C,N){return N-=C,function(U){return Math.round(C+N*U)}}e.transform=function(C){var N=n.createElementNS(e.ns.prefix.svg,"g");return(e.transform=function(U){if(U!=null){N.setAttribute("transform",U);var H=N.transform.baseVal.consolidate()}return new X6(H?H.matrix:yG)})(C)};function X6(C){var N=[C.a,C.b],U=[C.c,C.d],H=Z6(N),X=W6(N,U),W=Z6(gG(U,N,-X))||0;N[0]*U[1]180?N+=360:N-C>180&&(C+=360),H.push({i:U.push(b0(U)+"rotate(",null,")")-2,x:Co(C,N)})):N&&U.push(b0(U)+"rotate("+N+")")}function xG(C,N,U,H){C!==N?H.push({i:U.push(b0(U)+"skewX(",null,")")-2,x:Co(C,N)}):N&&U.push(b0(U)+"skewX("+N+")")}function _G(C,N,U,H){if(C[0]!==N[0]||C[1]!==N[1]){var X=U.push(b0(U)+"scale(",null,",",null,")");H.push({i:X-4,x:Co(C[0],N[0])},{i:X-2,x:Co(C[1],N[1])})}else(N[0]!==1||N[1]!==1)&&U.push(b0(U)+"scale("+N+")")}function J6(C,N){var U=[],H=[];return C=e.transform(C),N=e.transform(N),mG(C.translate,N.translate,U,H),bG(C.rotate,N.rotate,U,H),xG(C.skew,N.skew,U,H),_G(C.scale,N.scale,U,H),C=N=null,function(X){for(var W=-1,se=H.length,ne;++W0?W=Ve:(U.c=null,U.t=NaN,U=null,N.end({type:"end",alpha:W=0})):Ve>0&&(N.start({type:"start",alpha:W=Ve}),U=Av(C.tick)),C):W},C.start=function(){var Ve,ar=Ge.length,hr=Je.length,gr=H[0],pr=H[1],br,xr;for(Ve=0;Ve=0;)W.push(Me=we[fe]),Me.parent=ne,Me.depth=ne.depth+1;U&&(ne.value=0),ne.children=we}else U&&(ne.value=+U.call(H,ne,ne.depth)||0),delete ne.children;return Zi(X,function(De){var Re,Ge;C&&(Re=De.children)&&Re.sort(C),U&&(Ge=De.parent)&&(Ge.value+=De.value)}),se}return H.sort=function(X){return arguments.length?(C=X,H):C},H.children=function(X){return arguments.length?(N=X,H):N},H.value=function(X){return arguments.length?(U=X,H):U},H.revalue=function(X){return U&&(lf(X,function(W){W.children&&(W.value=0)}),Zi(X,function(W){var se;W.children||(W.value=+U.call(H,W,W.depth)||0),(se=W.parent)&&(se.value+=W.value)})),X},H};function of(C,N){return e.rebind(C,N,"sort","children","value"),C.nodes=C,C.links=zG,C}function lf(C,N){for(var U=[C];(C=U.pop())!=null;)if(N(C),(X=C.children)&&(H=X.length))for(var H,X;--H>=0;)U.push(X[H])}function Zi(C,N){for(var U=[C],H=[];(C=U.pop())!=null;)if(H.push(C),(se=C.children)&&(W=se.length))for(var X=-1,W,se;++XX&&(X=ne),H.push(ne)}for(se=0;seH&&(U=N,H=X);return U}function VG(C){return C.reduce(GG,0)}function GG(C,N){return C+N[1]}e.layout.histogram=function(){var C=!0,N=Number,U=XG,H=YG;function X(W,Re){for(var ne=[],fe=W.map(N,this),we=U.call(this,fe,Re),Me=H.call(this,we,fe,Re),De,Re=-1,Ge=fe.length,Je=Me.length-1,Ie=C?1:1/Ge,Ne;++Re0)for(Re=-1;++Re=we[0]&&Ne<=we[1]&&(De=ne[e.bisect(Me,Ne,1,Je)-1],De.y+=Ie,De.push(W[Re]));return ne}return X.value=function(W){return arguments.length?(N=W,X):N},X.range=function(W){return arguments.length?(U=Ar(W),X):U},X.bins=function(W){return arguments.length?(H=typeof W=="number"?function(se){return j6(se,W)}:Ar(W),X):H},X.frequency=function(W){return arguments.length?(C=!!W,X):C},X};function YG(C,N){return j6(C,Math.ceil(Math.log(N.length)/Math.LN2+1))}function j6(C,N){for(var U=-1,H=+C[0],X=(C[1]-H)/N,W=[];++U<=N;)W[U]=X*U+H;return W}function XG(C){return[e.min(C),e.max(C)]}e.layout.pack=function(){var C=e.layout.hierarchy().sort(WG),N=0,U=[1,1],H;function X(W,se){var ne=C.call(this,W,se),fe=ne[0],we=U[0],Me=U[1],De=H==null?Math.sqrt:typeof H=="function"?H:function(){return H};if(fe.x=fe.y=0,Zi(fe,function(Ge){Ge.r=+De(Ge.value)}),Zi(fe,t_),N){var Re=N*(H?1:Math.max(2*fe.r/we,2*fe.r/Me))/2;Zi(fe,function(Ge){Ge.r+=Re}),Zi(fe,t_),Zi(fe,function(Ge){Ge.r-=Re})}return n_(fe,we/2,Me/2,H?1:1/Math.max(2*fe.r/we,2*fe.r/Me)),ne}return X.size=function(W){return arguments.length?(U=W,X):U},X.radius=function(W){return arguments.length?(H=W==null||typeof W=="function"?W:+W,X):H},X.padding=function(W){return arguments.length?(N=+W,X):N},of(X,C)};function WG(C,N){return C.value-N.value}function Hp(C,N){var U=C._pack_next;C._pack_next=N,N._pack_prev=C,N._pack_next=U,U._pack_prev=N}function e_(C,N){C._pack_next=N,N._pack_prev=C}function r_(C,N){var U=N.x-C.x,H=N.y-C.y,X=C.r+N.r;return .999*X*X>U*U+H*H}function t_(C){if(!(N=C.children)||!(Re=N.length))return;var N,U=1/0,H=-1/0,X=1/0,W=-1/0,se,ne,fe,we,Me,De,Re;function Ge(Ve){U=Math.min(Ve.x-Ve.r,U),H=Math.max(Ve.x+Ve.r,H),X=Math.min(Ve.y-Ve.r,X),W=Math.max(Ve.y+Ve.r,W)}if(N.forEach(ZG),se=N[0],se.x=-se.r,se.y=0,Ge(se),Re>1&&(ne=N[1],ne.x=ne.r,ne.y=0,Ge(ne),Re>2))for(fe=N[2],a_(se,ne,fe),Ge(fe),Hp(se,fe),se._pack_prev=fe,Hp(fe,ne),ne=se._pack_next,we=3;weNe.x&&(Ne=ar),ar.depth>Ue.depth&&(Ue=ar)});var Ze=N(Ie,Ne)/2-Ie.x,$e=U[0]/(Ne.x+N(Ne,Ie)/2+Ze),Ve=U[1]/(Ue.depth||1);lf(Ge,function(ar){ar.x=(ar.x+Ze)*$e,ar.y=ar.depth*Ve})}return Re}function W(Me){for(var De={A:null,children:[Me]},Re=[De],Ge;(Ge=Re.pop())!=null;)for(var Je=Ge.children,Ie,Ne=0,Ue=Je.length;Ne0&&($G(QG(Ie,Me,Re),Me,ar),Ue+=ar,Ze+=ar),$e+=Ie.m,Ue+=Ge.m,Ve+=Ne.m,Ze+=Je.m;Ie&&!Gp(Je)&&(Je.t=Ie,Je.m+=$e-Ze),Ge&&!Vp(Ne)&&(Ne.t=Ge,Ne.m+=Ue-Ve,Re=Me)}return Re}function we(Me){Me.x*=U[0],Me.y=Me.depth*U[1]}return X.separation=function(Me){return arguments.length?(N=Me,X):N},X.size=function(Me){return arguments.length?(H=(U=Me)==null?we:null,X):H?null:U},X.nodeSize=function(Me){return arguments.length?(H=(U=Me)==null?null:we,X):H?U:null},of(X,C)};function i_(C,N){return C.parent==N.parent?1:2}function Vp(C){var N=C.children;return N.length?N[0]:C.t}function Gp(C){var N=C.children,U;return(U=N.length)?N[U-1]:C.t}function $G(C,N,U){var H=U/(N.i-C.i);N.c-=H,N.s+=U,C.c+=H,N.z+=U,N.m+=U}function KG(C){for(var N=0,U=0,H=C.children,X=H.length,W;--X>=0;)W=H[X],W.z+=N,W.m+=N,N+=W.s+(U+=W.c)}function QG(C,N,U){return C.a.parent===N.parent?C.a:U}e.layout.cluster=function(){var C=e.layout.hierarchy().sort(null).value(null),N=i_,U=[1,1],H=!1;function X(W,se){var ne=C.call(this,W,se),fe=ne[0],we,Me=0;Zi(fe,function(Ie){var Ne=Ie.children;Ne&&Ne.length?(Ie.x=eY(Ne),Ie.y=jG(Ne)):(Ie.x=we?Me+=N(Ie,we):0,Ie.y=0,we=Ie)});var De=o_(fe),Re=l_(fe),Ge=De.x-N(De,Re)/2,Je=Re.x+N(Re,De)/2;return Zi(fe,H?function(Ie){Ie.x=(Ie.x-fe.x)*U[0],Ie.y=(fe.y-Ie.y)*U[1]}:function(Ie){Ie.x=(Ie.x-Ge)/(Je-Ge)*U[0],Ie.y=(1-(fe.y?Ie.y/fe.y:1))*U[1]}),ne}return X.separation=function(W){return arguments.length?(N=W,X):N},X.size=function(W){return arguments.length?(H=(U=W)==null,X):H?null:U},X.nodeSize=function(W){return arguments.length?(H=(U=W)!=null,X):H?U:null},of(X,C)};function jG(C){return 1+e.max(C,function(N){return N.y})}function eY(C){return C.reduce(function(N,U){return N+U.x},0)/C.length}function o_(C){var N=C.children;return N&&N.length?o_(N[0]):C}function l_(C){var N=C.children,U;return N&&(U=N.length)?l_(N[U-1]):C}e.layout.treemap=function(){var C=e.layout.hierarchy(),N=Math.round,U=[1,1],H=null,X=Yp,W=!1,se,ne="squarify",fe=.5*(1+Math.sqrt(5));function we(Ie,Ne){for(var Ue=-1,Ze=Ie.length,$e,Ve;++Ue0;)Ze.push(Ve=$e[pr-1]),Ze.area+=Ve.area,ne!=="squarify"||(hr=Re(Ze,gr))<=ar?($e.pop(),ar=hr):(Ze.area-=Ze.pop().area,Ge(Ze,gr,Ue,!1),gr=Math.min(Ue.dx,Ue.dy),Ze.length=Ze.area=0,ar=1/0);Ze.length&&(Ge(Ze,gr,Ue,!0),Ze.length=Ze.area=0),Ne.forEach(Me)}}function De(Ie){var Ne=Ie.children;if(Ne&&Ne.length){var Ue=X(Ie),Ze=Ne.slice(),$e,Ve=[];for(we(Ze,Ue.dx*Ue.dy/Ie.value),Ve.area=0;$e=Ze.pop();)Ve.push($e),Ve.area+=$e.area,$e.z!=null&&(Ge(Ve,$e.z?Ue.dx:Ue.dy,Ue,!Ze.length),Ve.length=Ve.area=0);Ne.forEach(De)}}function Re(Ie,Ne){for(var Ue=Ie.area,Ze,$e=0,Ve=1/0,ar=-1,hr=Ie.length;++ar$e&&($e=Ze));return Ue*=Ue,Ne*=Ne,Ue?Math.max(Ne*$e*fe/Ue,Ue/(Ne*Ve*fe)):1/0}function Ge(Ie,Ne,Ue,Ze){var $e=-1,Ve=Ie.length,ar=Ue.x,hr=Ue.y,gr=Ne?N(Ie.area/Ne):0,pr;if(Ne==Ue.dx){for((Ze||gr>Ue.dy)&&(gr=Ue.dy);++$eUe.dx)&&(gr=Ue.dx);++$e1);return C+N*H*Math.sqrt(-2*Math.log(W)/W)}},logNormal:function(){var C=e.random.normal.apply(e,arguments);return function(){return Math.exp(C())}},bates:function(C){var N=e.random.irwinHall(C);return function(){return N()/C}},irwinHall:function(C){return function(){for(var N=0,U=0;U2?nY:rY,we=H?MG:wG;return X=fe(C,N,we,U),W=fe(N,C,we,ts),ne}function ne(fe){return X(fe)}return ne.invert=function(fe){return W(fe)},ne.domain=function(fe){return arguments.length?(C=fe.map(Number),se()):C},ne.range=function(fe){return arguments.length?(N=fe,se()):N},ne.rangeRound=function(fe){return ne.range(fe).interpolate(Y6)},ne.clamp=function(fe){return arguments.length?(H=fe,se()):H},ne.interpolate=function(fe){return arguments.length?(U=fe,se()):U},ne.ticks=function(fe){return Zp(C,fe)},ne.tickFormat=function(fe,we){return d3_scale_linearTickFormat(C,fe,we)},ne.nice=function(fe){return v_(C,fe),se()},ne.copy=function(){return f_(C,N,U,H)},se()}function c_(C,N){return e.rebind(C,N,"range","rangeRound","interpolate","clamp")}function v_(C,N){return Xp(C,u_(Wp(C,N)[2])),Xp(C,u_(Wp(C,N)[2])),C}function Wp(C,N){N==null&&(N=10);var U=Rv(C),H=U[1]-U[0],X=Math.pow(10,Math.floor(Math.log(H/N)/Math.LN10)),W=N/H*X;return W<=.15?X*=10:W<=.35?X*=5:W<=.75&&(X*=2),U[0]=Math.ceil(U[0]/X)*X,U[1]=Math.floor(U[1]/X)*X+X*.5,U[2]=X,U}function Zp(C,N){return e.range.apply(e,Wp(C,N))}var aY={s:1,g:1,p:1,r:1,e:1};function h_(C){return-Math.floor(Math.log(C)/Math.LN10+.01)}function _be(C,N){var U=h_(N[2]);return C in aY?Math.abs(U-h_(Math.max(m(N[0]),m(N[1]))))+ +(C!=="e"):U-(C==="%")*2}e.scale.log=function(){return d_(e.scale.linear().domain([0,1]),10,!0,[1,10])};function d_(C,N,U,H){function X(ne){return(U?Math.log(ne<0?0:ne):-Math.log(ne>0?0:-ne))/Math.log(N)}function W(ne){return U?Math.pow(N,ne):-Math.pow(N,-ne)}function se(ne){return C(X(ne))}return se.invert=function(ne){return W(C.invert(ne))},se.domain=function(ne){return arguments.length?(U=ne[0]>=0,C.domain((H=ne.map(Number)).map(X)),se):H},se.base=function(ne){return arguments.length?(N=+ne,C.domain(H.map(X)),se):N},se.nice=function(){var ne=Xp(H.map(X),U?Math:iY);return C.domain(ne),H=ne.map(W),se},se.ticks=function(){var ne=Rv(H),fe=[],we=ne[0],Me=ne[1],De=Math.floor(X(we)),Re=Math.ceil(X(Me)),Ge=N%1?2:N;if(isFinite(Re-De)){if(U){for(;De0;Je--)fe.push(W(De)*Je);for(De=0;fe[De]Me;Re--);fe=fe.slice(De,Re)}return fe},se.copy=function(){return d_(C.copy(),N,U,H)},c_(se,C)}var iY={floor:function(C){return-Math.ceil(-C)},ceil:function(C){return-Math.floor(-C)}};e.scale.pow=function(){return p_(e.scale.linear(),1,[0,1])};function p_(C,N,U){var H=Pv(N),X=Pv(1/N);function W(se){return C(H(se))}return W.invert=function(se){return X(C.invert(se))},W.domain=function(se){return arguments.length?(C.domain((U=se.map(Number)).map(H)),W):U},W.ticks=function(se){return Zp(U,se)},W.tickFormat=function(se,ne){return d3_scale_linearTickFormat(U,se,ne)},W.nice=function(se){return W.domain(v_(U,se))},W.exponent=function(se){return arguments.length?(H=Pv(N=se),X=Pv(1/N),C.domain(U.map(H)),W):N},W.copy=function(){return p_(C.copy(),N,U)},c_(W,C)}function Pv(C){return function(N){return N<0?-Math.pow(-N,C):Math.pow(N,C)}}e.scale.sqrt=function(){return e.scale.pow().exponent(.5)},e.scale.ordinal=function(){return g_([],{t:"range",a:[[]]})};function g_(C,N){var U,H,X;function W(ne){return H[((U.get(ne)||(N.t==="range"?U.set(ne,C.push(ne)):NaN))-1)%H.length]}function se(ne,fe){return e.range(C.length).map(function(we){return ne+fe*we})}return W.domain=function(ne){if(!arguments.length)return C;C=[],U=new b;for(var fe=-1,we=ne.length,Me;++fe0?U[W-1]:C[0],WRe?0:1;if(Me=Ke)return fe(Me,Je)+(we?fe(we,1-Je):"")+"Z";var Ie,Ne,Ue,Ze,$e=0,Ve=0,ar,hr,gr,pr,br,xr,qr,wr,Rr=[];if((Ze=(+se.apply(this,arguments)||0)/2)&&(Ue=H===Iv?Math.sqrt(we*we+Me*Me):+H.apply(this,arguments),Je||(Ve*=-1),Me&&(Ve=Tr(Ue/Me*Math.sin(Ze))),we&&($e=Tr(Ue/we*Math.sin(Ze)))),Me){ar=Me*Math.cos(De+Ve),hr=Me*Math.sin(De+Ve),gr=Me*Math.cos(Re-Ve),pr=Me*Math.sin(Re-Ve);var vt=Math.abs(Re-De-2*Ve)<=ir?0:1;if(Ve&&zv(ar,hr,gr,pr)===Je^vt){var Qt=(De+Re)/2;ar=Me*Math.cos(Qt),hr=Me*Math.sin(Qt),gr=pr=null}}else ar=hr=0;if(we){br=we*Math.cos(Re-$e),xr=we*Math.sin(Re-$e),qr=we*Math.cos(De+$e),wr=we*Math.sin(De+$e);var mt=Math.abs(De-Re+2*$e)<=ir?0:1;if($e&&zv(br,xr,qr,wr)===1-Je^mt){var cr=(De+Re)/2;br=we*Math.cos(cr),xr=we*Math.sin(cr),qr=wr=null}}else br=xr=0;if(Ge>Xe&&(Ie=Math.min(Math.abs(Me-we)/2,+U.apply(this,arguments)))>.001){Ne=we0?0:1}function Nv(C,N,U,H,X){var W=C[0]-N[0],se=C[1]-N[1],ne=(X?H:-H)/Math.sqrt(W*W+se*se),fe=ne*se,we=-ne*W,Me=C[0]+fe,De=C[1]+we,Re=N[0]+fe,Ge=N[1]+we,Je=(Me+Re)/2,Ie=(De+Ge)/2,Ne=Re-Me,Ue=Ge-De,Ze=Ne*Ne+Ue*Ue,$e=U-H,Ve=Me*Ge-Re*De,ar=(Ue<0?-1:1)*Math.sqrt(Math.max(0,$e*$e*Ze-Ve*Ve)),hr=(Ve*Ue-Ne*ar)/Ze,gr=(-Ve*Ne-Ue*ar)/Ze,pr=(Ve*Ue+Ne*ar)/Ze,br=(-Ve*Ne+Ue*ar)/Ze,xr=hr-Je,qr=gr-Ie,wr=pr-Je,Rr=br-Ie;return xr*xr+qr*qr>wr*wr+Rr*Rr&&(hr=pr,gr=br),[[hr-fe,gr-we],[hr*U/$e,gr*U/$e]]}function M_(){return!0}function T_(C){var N=d0,U=ju,H=M_,X=mi,W=X.key,se=.7;function ne(fe){var we=[],Me=[],De=-1,Re=fe.length,Ge,Je=Ar(N),Ie=Ar(U);function Ne(){we.push("M",X(C(Me),se))}for(;++De1?C.join("L"):C+"Z"}function A_(C){return C.join("L")+"Z"}function dY(C){for(var N=0,U=C.length,H=C[0],X=[H[0],",",H[1]];++N1&&X.push("H",H[0]),X.join("")}function $p(C){for(var N=0,U=C.length,H=C[0],X=[H[0],",",H[1]];++N1){ne=N[1],W=C[fe],fe++,H+="C"+(X[0]+se[0])+","+(X[1]+se[1])+","+(W[0]-ne[0])+","+(W[1]-ne[1])+","+W[0]+","+W[1];for(var we=2;we9&&(W=U*3/Math.sqrt(W),se[ne]=W*H,se[ne+1]=W*X));for(ne=-1;++ne<=fe;)W=(C[Math.min(fe,ne+1)][0]-C[Math.max(0,ne-1)][0])/(6*(1+se[ne]*se[ne])),N.push([W||0,se[ne]*W||0]);return N}function MY(C){return C.length<3?mi(C):C[0]+qv(C,wY(C))}e.svg.line.radial=function(){var C=T_(E_);return C.radius=C.x,delete C.x,C.angle=C.y,delete C.y,C};function E_(C){for(var N,U=-1,H=C.length,X,W;++Uir)+",1 "+De}function we(Me,De,Re,Ge){return"Q 0,0 "+Ge}return W.radius=function(Me){return arguments.length?(U=Ar(Me),W):U},W.source=function(Me){return arguments.length?(C=Ar(Me),W):C},W.target=function(Me){return arguments.length?(N=Ar(Me),W):N},W.startAngle=function(Me){return arguments.length?(H=Ar(Me),W):H},W.endAngle=function(Me){return arguments.length?(X=Ar(Me),W):X},W};function TY(C){return C.radius}e.svg.diagonal=function(){var C=D_,N=R_,U=F_;function H(X,W){var se=C.call(this,X,W),ne=N.call(this,X,W),fe=(se.y+ne.y)/2,we=[se,{x:se.x,y:fe},{x:ne.x,y:fe},ne];return we=we.map(U),"M"+we[0]+"C"+we[1]+" "+we[2]+" "+we[3]}return H.source=function(X){return arguments.length?(C=Ar(X),H):C},H.target=function(X){return arguments.length?(N=Ar(X),H):N},H.projection=function(X){return arguments.length?(U=X,H):U},H};function F_(C){return[C.x,C.y]}e.svg.diagonal.radial=function(){var C=e.svg.diagonal(),N=F_,U=C.projection;return C.projection=function(H){return arguments.length?U(AY(N=H)):N},C};function AY(C){return function(){var N=C.apply(this,arguments),U=N[0],H=N[1]-Ee;return[U*Math.cos(H),U*Math.sin(H)]}}e.svg.symbol=function(){var C=SY,N=kY;function U(H,X){return(I_.get(C.call(this,H,X))||P_)(N.call(this,H,X))}return U.type=function(H){return arguments.length?(C=Ar(H),U):C},U.size=function(H){return arguments.length?(N=Ar(H),U):N},U};function kY(){return 64}function SY(){return"circle"}function P_(C){var N=Math.sqrt(C/ir);return"M0,"+N+"A"+N+","+N+" 0 1,1 0,"+-N+"A"+N+","+N+" 0 1,1 0,"+N+"Z"}var I_=e.map({circle:P_,cross:function(C){var N=Math.sqrt(C/5)/2;return"M"+-3*N+","+-N+"H"+-N+"V"+-3*N+"H"+N+"V"+-N+"H"+3*N+"V"+N+"H"+N+"V"+3*N+"H"+-N+"V"+N+"H"+-3*N+"Z"},diamond:function(C){var N=Math.sqrt(C/(2*z_)),U=N*z_;return"M0,"+-N+"L"+U+",0 0,"+N+" "+-U+",0Z"},square:function(C){var N=Math.sqrt(C)/2;return"M"+-N+","+-N+"L"+N+","+-N+" "+N+","+N+" "+-N+","+N+"Z"},"triangle-down":function(C){var N=Math.sqrt(C/Bv),U=N*Bv/2;return"M0,"+U+"L"+N+","+-U+" "+-N+","+-U+"Z"},"triangle-up":function(C){var N=Math.sqrt(C/Bv),U=N*Bv/2;return"M0,"+-U+"L"+N+","+U+" "+-N+","+U+"Z"}});e.svg.symbolTypes=I_.keys();var Bv=Math.sqrt(3),z_=Math.tan(30*ze);Q.transition=function(C){for(var N=ns||++q_,U=tg(C),H=[],X,W,se=Uv||{time:Date.now(),ease:iG,delay:0,duration:250},ne=-1,fe=this.length;++ne0;)De[--Ze].call(C,Ue);if(Ne>=1)return se.event&&se.event.end.call(C,C.__data__,N),--W.count?delete W[H]:delete C[U],1}se||(ne=X.time,fe=Av(Re,0,ne),se=W[H]={tween:new b,time:ne,timer:fe,delay:X.delay,duration:X.duration,ease:X.ease,index:N},X=null,++W.count)}e.svg.axis=function(){var C=e.scale.linear(),N=B_,U=6,H=6,X=3,W=[10],se=null,ne;function fe(we){we.each(function(){var Me=e.select(this),De=this.__chart__||C,Re=this.__chart__=C.copy(),Ge=se==null?Re.ticks?Re.ticks.apply(Re,W):Re.domain():se,Je=ne==null?Re.tickFormat?Re.tickFormat.apply(Re,W):z:ne,Ie=Me.selectAll(".tick").data(Ge,Re),Ne=Ie.enter().insert("g",".domain").attr("class","tick").style("opacity",Xe),Ue=e.transition(Ie.exit()).style("opacity",Xe).remove(),Ze=e.transition(Ie.order()).style("opacity",1),$e=Math.max(U,0)+X,Ve,ar=Fv(Re),hr=Me.selectAll(".domain").data([0]),gr=(hr.enter().append("path").attr("class","domain"),e.transition(hr));Ne.append("line"),Ne.append("text");var pr=Ne.select("line"),br=Ze.select("line"),xr=Ie.select("text").text(Je),qr=Ne.select("text"),wr=Ze.select("text"),Rr=N==="top"||N==="left"?-1:1,vt,Qt,mt,cr;if(N==="bottom"||N==="top"?(Ve=LY,vt="x",mt="y",Qt="x2",cr="y2",xr.attr("dy",Rr<0?"0em":".71em").style("text-anchor","middle"),gr.attr("d","M"+ar[0]+","+Rr*H+"V0H"+ar[1]+"V"+Rr*H)):(Ve=DY,vt="y",mt="x",Qt="y2",cr="x2",xr.attr("dy",".32em").style("text-anchor",Rr<0?"end":"start"),gr.attr("d","M"+Rr*H+","+ar[0]+"H0V"+ar[1]+"H"+Rr*H)),pr.attr(cr,Rr*U),qr.attr(mt,Rr*$e),br.attr(Qt,0).attr(cr,Rr*U),wr.attr(vt,0).attr(mt,Rr*$e),Re.rangeBand){var Br=Re,Hr=Br.rangeBand()/2;De=Re=function(ht){return Br(ht)+Hr}}else De.rangeBand?De=Re:Ue.call(Ve,Re,De);Ne.call(Ve,De,Re),Ze.call(Ve,Re,Re)})}return fe.scale=function(we){return arguments.length?(C=we,fe):C},fe.orient=function(we){return arguments.length?(N=we in EY?we+"":B_,fe):N},fe.ticks=function(){return arguments.length?(W=t(arguments),fe):W},fe.tickValues=function(we){return arguments.length?(se=we,fe):se},fe.tickFormat=function(we){return arguments.length?(ne=we,fe):ne},fe.tickSize=function(we){var Me=arguments.length;return Me?(U=+we,H=+arguments[Me-1],fe):U},fe.innerTickSize=function(we){return arguments.length?(U=+we,fe):U},fe.outerTickSize=function(we){return arguments.length?(H=+we,fe):H},fe.tickPadding=function(we){return arguments.length?(X=+we,fe):X},fe.tickSubdivide=function(){return arguments.length&&fe},fe};var B_="bottom",EY={top:1,right:1,bottom:1,left:1};function LY(C,N,U){C.attr("transform",function(H){var X=N(H);return"translate("+(isFinite(X)?X:U(H))+",0)"})}function DY(C,N,U){C.attr("transform",function(H){var X=N(H);return"translate(0,"+(isFinite(X)?X:U(H))+")"})}e.svg.brush=function(){var C=j(Me,"brushstart","brush","brushend"),N=null,U=null,H=[0,0],X=[0,0],W,se,ne=!0,fe=!0,we=ng[0];function Me(Ie){Ie.each(function(){var Ne=e.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",Je).on("touchstart.brush",Je),Ue=Ne.selectAll(".background").data([0]);Ue.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),Ne.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var Ze=Ne.selectAll(".resize").data(we,z);Ze.exit().remove(),Ze.enter().append("g").attr("class",function(hr){return"resize "+hr}).style("cursor",function(hr){return RY[hr]}).append("rect").attr("x",function(hr){return/[ew]$/.test(hr)?-3:null}).attr("y",function(hr){return/^[ns]/.test(hr)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),Ze.style("display",Me.empty()?"none":null);var $e=e.transition(Ne),Ve=e.transition(Ue),ar;N&&(ar=Fv(N),Ve.attr("x",ar[0]).attr("width",ar[1]-ar[0]),Re($e)),U&&(ar=Fv(U),Ve.attr("y",ar[0]).attr("height",ar[1]-ar[0]),Ge($e)),De($e)})}Me.event=function(Ie){Ie.each(function(){var Ne=C.of(this,arguments),Ue={x:H,y:X,i:W,j:se},Ze=this.__chart__||Ue;this.__chart__=Ue,ns?e.select(this).transition().each("start.brush",function(){W=Ze.i,se=Ze.j,H=Ze.x,X=Ze.y,Ne({type:"brushstart"})}).tween("brush:brush",function(){var $e=Dv(H,Ue.x),Ve=Dv(X,Ue.y);return W=se=null,function(ar){H=Ue.x=$e(ar),X=Ue.y=Ve(ar),Ne({type:"brush",mode:"resize"})}}).each("end.brush",function(){W=Ue.i,se=Ue.j,Ne({type:"brush",mode:"resize"}),Ne({type:"brushend"})}):(Ne({type:"brushstart"}),Ne({type:"brush",mode:"resize"}),Ne({type:"brushend"}))})};function De(Ie){Ie.selectAll(".resize").attr("transform",function(Ne){return"translate("+H[+/e$/.test(Ne)]+","+X[+/^s/.test(Ne)]+")"})}function Re(Ie){Ie.select(".extent").attr("x",H[0]),Ie.selectAll(".extent,.n>rect,.s>rect").attr("width",H[1]-H[0])}function Ge(Ie){Ie.select(".extent").attr("y",X[0]),Ie.selectAll(".extent,.e>rect,.w>rect").attr("height",X[1]-X[0])}function Je(){var Ie=this,Ne=e.select(e.event.target),Ue=C.of(Ie,arguments),Ze=e.select(Ie),$e=Ne.datum(),Ve=!/^(n|s)$/.test($e)&&N,ar=!/^(e|w)$/.test($e)&&U,hr=Ne.classed("extent"),gr=qe(Ie),pr,br=e.mouse(Ie),xr,qr=e.select(o(Ie)).on("keydown.brush",vt).on("keyup.brush",Qt);if(e.event.changedTouches?qr.on("touchmove.brush",mt).on("touchend.brush",Br):qr.on("mousemove.brush",mt).on("mouseup.brush",Br),Ze.interrupt().selectAll("*").interrupt(),hr)br[0]=H[0]-br[0],br[1]=X[0]-br[1];else if($e){var wr=+/w$/.test($e),Rr=+/^n/.test($e);xr=[H[1-wr]-br[0],X[1-Rr]-br[1]],br[0]=H[wr],br[1]=X[Rr]}else e.event.altKey&&(pr=br.slice());Ze.style("pointer-events","none").selectAll(".resize").style("display",null),e.select("body").style("cursor",Ne.style("cursor")),Ue({type:"brushstart"}),mt();function vt(){e.event.keyCode==32&&(hr||(pr=null,br[0]-=H[1],br[1]-=X[1],hr=2),V())}function Qt(){e.event.keyCode==32&&hr==2&&(br[0]+=H[1],br[1]+=X[1],hr=0,V())}function mt(){var Hr=e.mouse(Ie),ht=!1;xr&&(Hr[0]+=xr[0],Hr[1]+=xr[1]),hr||(e.event.altKey?(pr||(pr=[(H[0]+H[1])/2,(X[0]+X[1])/2]),br[0]=H[+(Hr[0]{(function(e,r){typeof Wv=="object"&&typeof $_!="undefined"?r(Wv):(e=e||self,r(e.d3=e.d3||{}))})(Wv,function(e){"use strict";var r=new Date,t=new Date;function n(oe,ve,he,me){function be(ye){return oe(ye=arguments.length===0?new Date:new Date(+ye)),ye}return be.floor=function(ye){return oe(ye=new Date(+ye)),ye},be.ceil=function(ye){return oe(ye=new Date(ye-1)),ve(ye,1),oe(ye),ye},be.round=function(ye){var de=be(ye),xe=be.ceil(ye);return ye-de0))return Ae;do Ae.push(Pe=new Date(+ye)),ve(ye,xe),oe(ye);while(Pe=de)for(;oe(de),!ye(de);)de.setTime(de-1)},function(de,xe){if(de>=de)if(xe<0)for(;++xe<=0;)for(;ve(de,-1),!ye(de););else for(;--xe>=0;)for(;ve(de,1),!ye(de););})},he&&(be.count=function(ye,de){return r.setTime(+ye),t.setTime(+de),oe(r),oe(t),Math.floor(he(r,t))},be.every=function(ye){return ye=Math.floor(ye),!isFinite(ye)||!(ye>0)?null:ye>1?be.filter(me?function(de){return me(de)%ye===0}:function(de){return be.count(0,de)%ye===0}):be}),be}var a=n(function(){},function(oe,ve){oe.setTime(+oe+ve)},function(oe,ve){return ve-oe});a.every=function(oe){return oe=Math.floor(oe),!isFinite(oe)||!(oe>0)?null:oe>1?n(function(ve){ve.setTime(Math.floor(ve/oe)*oe)},function(ve,he){ve.setTime(+ve+he*oe)},function(ve,he){return(he-ve)/oe}):a};var o=a.range,i=1e3,l=6e4,u=36e5,s=864e5,f=6048e5,c=n(function(oe){oe.setTime(oe-oe.getMilliseconds())},function(oe,ve){oe.setTime(+oe+ve*i)},function(oe,ve){return(ve-oe)/i},function(oe){return oe.getUTCSeconds()}),p=c.range,x=n(function(oe){oe.setTime(oe-oe.getMilliseconds()-oe.getSeconds()*i)},function(oe,ve){oe.setTime(+oe+ve*l)},function(oe,ve){return(ve-oe)/l},function(oe){return oe.getMinutes()}),g=x.range,w=n(function(oe){oe.setTime(oe-oe.getMilliseconds()-oe.getSeconds()*i-oe.getMinutes()*l)},function(oe,ve){oe.setTime(+oe+ve*u)},function(oe,ve){return(ve-oe)/u},function(oe){return oe.getHours()}),M=w.range,m=n(function(oe){oe.setHours(0,0,0,0)},function(oe,ve){oe.setDate(oe.getDate()+ve)},function(oe,ve){return(ve-oe-(ve.getTimezoneOffset()-oe.getTimezoneOffset())*l)/s},function(oe){return oe.getDate()-1}),k=m.range;function S(oe){return n(function(ve){ve.setDate(ve.getDate()-(ve.getDay()+7-oe)%7),ve.setHours(0,0,0,0)},function(ve,he){ve.setDate(ve.getDate()+he*7)},function(ve,he){return(he-ve-(he.getTimezoneOffset()-ve.getTimezoneOffset())*l)/f})}var b=S(0),T=S(1),h=S(2),_=S(3),y=S(4),v=S(5),A=S(6),d=b.range,D=T.range,E=h.range,R=_.range,z=y.range,I=v.range,P=A.range,L=n(function(oe){oe.setDate(1),oe.setHours(0,0,0,0)},function(oe,ve){oe.setMonth(oe.getMonth()+ve)},function(oe,ve){return ve.getMonth()-oe.getMonth()+(ve.getFullYear()-oe.getFullYear())*12},function(oe){return oe.getMonth()}),F=L.range,B=n(function(oe){oe.setMonth(0,1),oe.setHours(0,0,0,0)},function(oe,ve){oe.setFullYear(oe.getFullYear()+ve)},function(oe,ve){return ve.getFullYear()-oe.getFullYear()},function(oe){return oe.getFullYear()});B.every=function(oe){return!isFinite(oe=Math.floor(oe))||!(oe>0)?null:n(function(ve){ve.setFullYear(Math.floor(ve.getFullYear()/oe)*oe),ve.setMonth(0,1),ve.setHours(0,0,0,0)},function(ve,he){ve.setFullYear(ve.getFullYear()+he*oe)})};var O=B.range,V=n(function(oe){oe.setUTCSeconds(0,0)},function(oe,ve){oe.setTime(+oe+ve*l)},function(oe,ve){return(ve-oe)/l},function(oe){return oe.getUTCMinutes()}),K=V.range,j=n(function(oe){oe.setUTCMinutes(0,0,0)},function(oe,ve){oe.setTime(+oe+ve*u)},function(oe,ve){return(ve-oe)/u},function(oe){return oe.getUTCHours()}),G=j.range,q=n(function(oe){oe.setUTCHours(0,0,0,0)},function(oe,ve){oe.setUTCDate(oe.getUTCDate()+ve)},function(oe,ve){return(ve-oe)/s},function(oe){return oe.getUTCDate()-1}),J=q.range;function te(oe){return n(function(ve){ve.setUTCDate(ve.getUTCDate()-(ve.getUTCDay()+7-oe)%7),ve.setUTCHours(0,0,0,0)},function(ve,he){ve.setUTCDate(ve.getUTCDate()+he*7)},function(ve,he){return(he-ve)/f})}var Z=te(0),ie=te(1),Q=te(2),re=te(3),ue=te(4),ee=te(5),ae=te(6),ce=Z.range,Te=ie.range,ke=Q.range,Se=re.range,ge=ue.range,Le=ee.range,Ce=ae.range,le=n(function(oe){oe.setUTCDate(1),oe.setUTCHours(0,0,0,0)},function(oe,ve){oe.setUTCMonth(oe.getUTCMonth()+ve)},function(oe,ve){return ve.getUTCMonth()-oe.getUTCMonth()+(ve.getUTCFullYear()-oe.getUTCFullYear())*12},function(oe){return oe.getUTCMonth()}),Y=le.range,$=n(function(oe){oe.setUTCMonth(0,1),oe.setUTCHours(0,0,0,0)},function(oe,ve){oe.setUTCFullYear(oe.getUTCFullYear()+ve)},function(oe,ve){return ve.getUTCFullYear()-oe.getUTCFullYear()},function(oe){return oe.getUTCFullYear()});$.every=function(oe){return!isFinite(oe=Math.floor(oe))||!(oe>0)?null:n(function(ve){ve.setUTCFullYear(Math.floor(ve.getUTCFullYear()/oe)*oe),ve.setUTCMonth(0,1),ve.setUTCHours(0,0,0,0)},function(ve,he){ve.setUTCFullYear(ve.getUTCFullYear()+he*oe)})};var pe=$.range;e.timeDay=m,e.timeDays=k,e.timeFriday=v,e.timeFridays=I,e.timeHour=w,e.timeHours=M,e.timeInterval=n,e.timeMillisecond=a,e.timeMilliseconds=o,e.timeMinute=x,e.timeMinutes=g,e.timeMonday=T,e.timeMondays=D,e.timeMonth=L,e.timeMonths=F,e.timeSaturday=A,e.timeSaturdays=P,e.timeSecond=c,e.timeSeconds=p,e.timeSunday=b,e.timeSundays=d,e.timeThursday=y,e.timeThursdays=z,e.timeTuesday=h,e.timeTuesdays=E,e.timeWednesday=_,e.timeWednesdays=R,e.timeWeek=b,e.timeWeeks=d,e.timeYear=B,e.timeYears=O,e.utcDay=q,e.utcDays=J,e.utcFriday=ee,e.utcFridays=Le,e.utcHour=j,e.utcHours=G,e.utcMillisecond=a,e.utcMilliseconds=o,e.utcMinute=V,e.utcMinutes=K,e.utcMonday=ie,e.utcMondays=Te,e.utcMonth=le,e.utcMonths=Y,e.utcSaturday=ae,e.utcSaturdays=Ce,e.utcSecond=c,e.utcSeconds=p,e.utcSunday=Z,e.utcSundays=ce,e.utcThursday=ue,e.utcThursdays=ge,e.utcTuesday=Q,e.utcTuesdays=ke,e.utcWednesday=re,e.utcWednesdays=Se,e.utcWeek=Z,e.utcWeeks=ce,e.utcYear=$,e.utcYears=pe,Object.defineProperty(e,"__esModule",{value:!0})})});var _0=_e((Zv,K_)=>{(function(e,r){typeof Zv=="object"&&typeof K_!="undefined"?r(Zv,ig()):(e=e||self,r(e.d3=e.d3||{},e.d3))})(Zv,function(e,r){"use strict";function t(Ee){if(0<=Ee.y&&Ee.y<100){var ze=new Date(-1,Ee.m,Ee.d,Ee.H,Ee.M,Ee.S,Ee.L);return ze.setFullYear(Ee.y),ze}return new Date(Ee.y,Ee.m,Ee.d,Ee.H,Ee.M,Ee.S,Ee.L)}function n(Ee){if(0<=Ee.y&&Ee.y<100){var ze=new Date(Date.UTC(-1,Ee.m,Ee.d,Ee.H,Ee.M,Ee.S,Ee.L));return ze.setUTCFullYear(Ee.y),ze}return new Date(Date.UTC(Ee.y,Ee.m,Ee.d,Ee.H,Ee.M,Ee.S,Ee.L))}function a(Ee,ze,Qe){return{y:Ee,m:ze,d:Qe,H:0,M:0,S:0,L:0}}function o(Ee){var ze=Ee.dateTime,Qe=Ee.date,er=Ee.time,Mr=Ee.periods,Gr=Ee.days,Tr=Ee.shortDays,Fr=Ee.months,jr=Ee.shortMonths,Cr=p(Mr),Zr=x(Mr),xt=p(Gr),$r=x(Gr),ut=p(Tr),Fn=x(Tr),sr=p(Fr),Nr=x(Fr),tt=p(jr),Ur=x(jr),Yr={a:ko,A:So,b:yn,B:Qo,c:null,d:L,e:L,f:K,g:ee,G:ce,H:F,I:B,j:O,L:V,m:j,M:G,p:Xi,q:Wi,Q:qe,s:Be,S:q,u:J,U:te,V:ie,w:Q,W:re,x:null,X:null,y:ue,Y:ae,Z:Te,"%":Ye},gt={a:jo,A:wv,b:Mv,B:Tv,c:null,d:ke,e:ke,f:le,g:xe,G:Pe,H:Se,I:ge,j:Le,L:Ce,m:Y,M:$,p:Ku,q:Qu,Q:qe,s:Be,S:pe,u:oe,U:ve,V:me,w:be,W:ye,x:null,X:null,y:de,Y:Ae,Z:Fe,"%":Ye},it={a:Lt,A:Dt,b:ba,B:jn,c:Wa,d:y,e:y,f:R,g:b,G:S,H:A,I:A,j:v,L:E,m:_,M:d,p:yt,q:h,Q:I,s:P,S:D,u:w,U:M,V:m,w:g,W:k,x:Yi,X:Ao,y:b,Y:S,Z:T,"%":z};Yr.x=Et(Qe,Yr),Yr.X=Et(er,Yr),Yr.c=Et(ze,Yr),gt.x=Et(Qe,gt),gt.X=Et(er,gt),gt.c=Et(ze,gt);function Et(kr,Ar){return function(dt){var dr=[],ea=-1,Rt=0,Pn=kr.length,In,Za,es;for(dt instanceof Date||(dt=new Date(+dt));++ea53)return null;"w"in dr||(dr.w=1),"Z"in dr?(Rt=n(a(dr.y,0,1)),Pn=Rt.getUTCDay(),Rt=Pn>4||Pn===0?r.utcMonday.ceil(Rt):r.utcMonday(Rt),Rt=r.utcDay.offset(Rt,(dr.V-1)*7),dr.y=Rt.getUTCFullYear(),dr.m=Rt.getUTCMonth(),dr.d=Rt.getUTCDate()+(dr.w+6)%7):(Rt=t(a(dr.y,0,1)),Pn=Rt.getDay(),Rt=Pn>4||Pn===0?r.timeMonday.ceil(Rt):r.timeMonday(Rt),Rt=r.timeDay.offset(Rt,(dr.V-1)*7),dr.y=Rt.getFullYear(),dr.m=Rt.getMonth(),dr.d=Rt.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),Pn="Z"in dr?n(a(dr.y,0,1)).getUTCDay():t(a(dr.y,0,1)).getDay(),dr.m=0,dr.d="W"in dr?(dr.w+6)%7+dr.W*7-(Pn+5)%7:dr.w+dr.U*7-(Pn+6)%7);return"Z"in dr?(dr.H+=dr.Z/100|0,dr.M+=dr.Z%100,n(dr)):t(dr)}}function Ct(kr,Ar,dt,dr){for(var ea=0,Rt=Ar.length,Pn=dt.length,In,Za;ea=Pn)return-1;if(In=Ar.charCodeAt(ea++),In===37){if(In=Ar.charAt(ea++),Za=it[In in i?Ar.charAt(ea++):In],!Za||(dr=Za(kr,dt,dr))<0)return-1}else if(In!=dt.charCodeAt(dr++))return-1}return dr}function yt(kr,Ar,dt){var dr=Cr.exec(Ar.slice(dt));return dr?(kr.p=Zr[dr[0].toLowerCase()],dt+dr[0].length):-1}function Lt(kr,Ar,dt){var dr=ut.exec(Ar.slice(dt));return dr?(kr.w=Fn[dr[0].toLowerCase()],dt+dr[0].length):-1}function Dt(kr,Ar,dt){var dr=xt.exec(Ar.slice(dt));return dr?(kr.w=$r[dr[0].toLowerCase()],dt+dr[0].length):-1}function ba(kr,Ar,dt){var dr=tt.exec(Ar.slice(dt));return dr?(kr.m=Ur[dr[0].toLowerCase()],dt+dr[0].length):-1}function jn(kr,Ar,dt){var dr=sr.exec(Ar.slice(dt));return dr?(kr.m=Nr[dr[0].toLowerCase()],dt+dr[0].length):-1}function Wa(kr,Ar,dt){return Ct(kr,ze,Ar,dt)}function Yi(kr,Ar,dt){return Ct(kr,Qe,Ar,dt)}function Ao(kr,Ar,dt){return Ct(kr,er,Ar,dt)}function ko(kr){return Tr[kr.getDay()]}function So(kr){return Gr[kr.getDay()]}function yn(kr){return jr[kr.getMonth()]}function Qo(kr){return Fr[kr.getMonth()]}function Xi(kr){return Mr[+(kr.getHours()>=12)]}function Wi(kr){return 1+~~(kr.getMonth()/3)}function jo(kr){return Tr[kr.getUTCDay()]}function wv(kr){return Gr[kr.getUTCDay()]}function Mv(kr){return jr[kr.getUTCMonth()]}function Tv(kr){return Fr[kr.getUTCMonth()]}function Ku(kr){return Mr[+(kr.getUTCHours()>=12)]}function Qu(kr){return 1+~~(kr.getUTCMonth()/3)}return{format:function(kr){var Ar=Et(kr+="",Yr);return Ar.toString=function(){return kr},Ar},parse:function(kr){var Ar=Kt(kr+="",!1);return Ar.toString=function(){return kr},Ar},utcFormat:function(kr){var Ar=Et(kr+="",gt);return Ar.toString=function(){return kr},Ar},utcParse:function(kr){var Ar=Kt(kr+="",!0);return Ar.toString=function(){return kr},Ar}}}var i={"-":"",_:" ",0:"0"},l=/^\s*\d+/,u=/^%/,s=/[\\^$*+?|[\]().{}]/g;function f(Ee,ze,Qe){var er=Ee<0?"-":"",Mr=(er?-Ee:Ee)+"",Gr=Mr.length;return er+(Gr68?1900:2e3),Qe+er[0].length):-1}function T(Ee,ze,Qe){var er=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(ze.slice(Qe,Qe+6));return er?(Ee.Z=er[1]?0:-(er[2]+(er[3]||"00")),Qe+er[0].length):-1}function h(Ee,ze,Qe){var er=l.exec(ze.slice(Qe,Qe+1));return er?(Ee.q=er[0]*3-3,Qe+er[0].length):-1}function _(Ee,ze,Qe){var er=l.exec(ze.slice(Qe,Qe+2));return er?(Ee.m=er[0]-1,Qe+er[0].length):-1}function y(Ee,ze,Qe){var er=l.exec(ze.slice(Qe,Qe+2));return er?(Ee.d=+er[0],Qe+er[0].length):-1}function v(Ee,ze,Qe){var er=l.exec(ze.slice(Qe,Qe+3));return er?(Ee.m=0,Ee.d=+er[0],Qe+er[0].length):-1}function A(Ee,ze,Qe){var er=l.exec(ze.slice(Qe,Qe+2));return er?(Ee.H=+er[0],Qe+er[0].length):-1}function d(Ee,ze,Qe){var er=l.exec(ze.slice(Qe,Qe+2));return er?(Ee.M=+er[0],Qe+er[0].length):-1}function D(Ee,ze,Qe){var er=l.exec(ze.slice(Qe,Qe+2));return er?(Ee.S=+er[0],Qe+er[0].length):-1}function E(Ee,ze,Qe){var er=l.exec(ze.slice(Qe,Qe+3));return er?(Ee.L=+er[0],Qe+er[0].length):-1}function R(Ee,ze,Qe){var er=l.exec(ze.slice(Qe,Qe+6));return er?(Ee.L=Math.floor(er[0]/1e3),Qe+er[0].length):-1}function z(Ee,ze,Qe){var er=u.exec(ze.slice(Qe,Qe+1));return er?Qe+er[0].length:-1}function I(Ee,ze,Qe){var er=l.exec(ze.slice(Qe));return er?(Ee.Q=+er[0],Qe+er[0].length):-1}function P(Ee,ze,Qe){var er=l.exec(ze.slice(Qe));return er?(Ee.s=+er[0],Qe+er[0].length):-1}function L(Ee,ze){return f(Ee.getDate(),ze,2)}function F(Ee,ze){return f(Ee.getHours(),ze,2)}function B(Ee,ze){return f(Ee.getHours()%12||12,ze,2)}function O(Ee,ze){return f(1+r.timeDay.count(r.timeYear(Ee),Ee),ze,3)}function V(Ee,ze){return f(Ee.getMilliseconds(),ze,3)}function K(Ee,ze){return V(Ee,ze)+"000"}function j(Ee,ze){return f(Ee.getMonth()+1,ze,2)}function G(Ee,ze){return f(Ee.getMinutes(),ze,2)}function q(Ee,ze){return f(Ee.getSeconds(),ze,2)}function J(Ee){var ze=Ee.getDay();return ze===0?7:ze}function te(Ee,ze){return f(r.timeSunday.count(r.timeYear(Ee)-1,Ee),ze,2)}function Z(Ee){var ze=Ee.getDay();return ze>=4||ze===0?r.timeThursday(Ee):r.timeThursday.ceil(Ee)}function ie(Ee,ze){return Ee=Z(Ee),f(r.timeThursday.count(r.timeYear(Ee),Ee)+(r.timeYear(Ee).getDay()===4),ze,2)}function Q(Ee){return Ee.getDay()}function re(Ee,ze){return f(r.timeMonday.count(r.timeYear(Ee)-1,Ee),ze,2)}function ue(Ee,ze){return f(Ee.getFullYear()%100,ze,2)}function ee(Ee,ze){return Ee=Z(Ee),f(Ee.getFullYear()%100,ze,2)}function ae(Ee,ze){return f(Ee.getFullYear()%1e4,ze,4)}function ce(Ee,ze){var Qe=Ee.getDay();return Ee=Qe>=4||Qe===0?r.timeThursday(Ee):r.timeThursday.ceil(Ee),f(Ee.getFullYear()%1e4,ze,4)}function Te(Ee){var ze=Ee.getTimezoneOffset();return(ze>0?"-":(ze*=-1,"+"))+f(ze/60|0,"0",2)+f(ze%60,"0",2)}function ke(Ee,ze){return f(Ee.getUTCDate(),ze,2)}function Se(Ee,ze){return f(Ee.getUTCHours(),ze,2)}function ge(Ee,ze){return f(Ee.getUTCHours()%12||12,ze,2)}function Le(Ee,ze){return f(1+r.utcDay.count(r.utcYear(Ee),Ee),ze,3)}function Ce(Ee,ze){return f(Ee.getUTCMilliseconds(),ze,3)}function le(Ee,ze){return Ce(Ee,ze)+"000"}function Y(Ee,ze){return f(Ee.getUTCMonth()+1,ze,2)}function $(Ee,ze){return f(Ee.getUTCMinutes(),ze,2)}function pe(Ee,ze){return f(Ee.getUTCSeconds(),ze,2)}function oe(Ee){var ze=Ee.getUTCDay();return ze===0?7:ze}function ve(Ee,ze){return f(r.utcSunday.count(r.utcYear(Ee)-1,Ee),ze,2)}function he(Ee){var ze=Ee.getUTCDay();return ze>=4||ze===0?r.utcThursday(Ee):r.utcThursday.ceil(Ee)}function me(Ee,ze){return Ee=he(Ee),f(r.utcThursday.count(r.utcYear(Ee),Ee)+(r.utcYear(Ee).getUTCDay()===4),ze,2)}function be(Ee){return Ee.getUTCDay()}function ye(Ee,ze){return f(r.utcMonday.count(r.utcYear(Ee)-1,Ee),ze,2)}function de(Ee,ze){return f(Ee.getUTCFullYear()%100,ze,2)}function xe(Ee,ze){return Ee=he(Ee),f(Ee.getUTCFullYear()%100,ze,2)}function Ae(Ee,ze){return f(Ee.getUTCFullYear()%1e4,ze,4)}function Pe(Ee,ze){var Qe=Ee.getUTCDay();return Ee=Qe>=4||Qe===0?r.utcThursday(Ee):r.utcThursday.ceil(Ee),f(Ee.getUTCFullYear()%1e4,ze,4)}function Fe(){return"+0000"}function Ye(){return"%"}function qe(Ee){return+Ee}function Be(Ee){return Math.floor(+Ee/1e3)}var Oe;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(Ee){return Oe=o(Ee),e.timeFormat=Oe.format,e.timeParse=Oe.parse,e.utcFormat=Oe.utcFormat,e.utcParse=Oe.utcParse,Oe}var Xe="%Y-%m-%dT%H:%M:%S.%LZ";function tr(Ee){return Ee.toISOString()}var ir=Date.prototype.toISOString?tr:e.utcFormat(Xe);function je(Ee){var ze=new Date(Ee);return isNaN(ze)?null:ze}var Ke=+new Date("2000-01-01T00:00:00.000Z")?je:e.utcParse(Xe);e.isoFormat=ir,e.isoParse=Ke,e.timeFormatDefaultLocale=We,e.timeFormatLocale=o,Object.defineProperty(e,"__esModule",{value:!0})})});var og=_e((Jv,Q_)=>{(function(e,r){typeof Jv=="object"&&typeof Q_!="undefined"?r(Jv):(e=typeof globalThis!="undefined"?globalThis:e||self,r(e.d3=e.d3||{}))})(Jv,(function(e){"use strict";function r(_){return Math.abs(_=Math.round(_))>=1e21?_.toLocaleString("en").replace(/,/g,""):_.toString(10)}function t(_,y){if((v=(_=y?_.toExponential(y-1):_.toExponential()).indexOf("e"))<0)return null;var v,A=_.slice(0,v);return[A.length>1?A[0]+A.slice(2):A,+_.slice(v+1)]}function n(_){return _=t(Math.abs(_)),_?_[1]:NaN}function a(_,y){return function(v,A){for(var d=v.length,D=[],E=0,R=_[0],z=0;d>0&&R>0&&(z+R+1>A&&(R=Math.max(1,A-z)),D.push(v.substring(d-=R,d+R)),!((z+=R+1)>A));)R=_[E=(E+1)%_.length];return D.reverse().join(y)}}function o(_){return function(y){return y.replace(/[0-9]/g,function(v){return _[+v]})}}var i=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function l(_){if(!(y=i.exec(_)))throw new Error("invalid format: "+_);var y;return new u({fill:y[1],align:y[2],sign:y[3],symbol:y[4],zero:y[5],width:y[6],comma:y[7],precision:y[8]&&y[8].slice(1),trim:y[9],type:y[10]})}l.prototype=u.prototype;function u(_){this.fill=_.fill===void 0?" ":_.fill+"",this.align=_.align===void 0?">":_.align+"",this.sign=_.sign===void 0?"-":_.sign+"",this.symbol=_.symbol===void 0?"":_.symbol+"",this.zero=!!_.zero,this.width=_.width===void 0?void 0:+_.width,this.comma=!!_.comma,this.precision=_.precision===void 0?void 0:+_.precision,this.trim=!!_.trim,this.type=_.type===void 0?"":_.type+""}u.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 s(_){e:for(var y=_.length,v=1,A=-1,d;v0&&(A=0);break}return A>0?_.slice(0,A)+_.slice(d+1):_}var f;function c(_,y){var v=t(_,y);if(!v)return _+"";var A=v[0],d=v[1],D=d-(f=Math.max(-8,Math.min(8,Math.floor(d/3)))*3)+1,E=A.length;return D===E?A:D>E?A+new Array(D-E+1).join("0"):D>0?A.slice(0,D)+"."+A.slice(D):"0."+new Array(1-D).join("0")+t(_,Math.max(0,y+D-1))[0]}function p(_,y){var v=t(_,y);if(!v)return _+"";var A=v[0],d=v[1];return d<0?"0."+new Array(-d).join("0")+A:A.length>d+1?A.slice(0,d+1)+"."+A.slice(d+1):A+new Array(d-A.length+2).join("0")}var x={"%":function(_,y){return(_*100).toFixed(y)},b:function(_){return Math.round(_).toString(2)},c:function(_){return _+""},d:r,e:function(_,y){return _.toExponential(y)},f:function(_,y){return _.toFixed(y)},g:function(_,y){return _.toPrecision(y)},o:function(_){return Math.round(_).toString(8)},p:function(_,y){return p(_*100,y)},r:p,s:c,X:function(_){return Math.round(_).toString(16).toUpperCase()},x:function(_){return Math.round(_).toString(16)}};function g(_){return _}var w=Array.prototype.map,M=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function m(_){var y=_.grouping===void 0||_.thousands===void 0?g:a(w.call(_.grouping,Number),_.thousands+""),v=_.currency===void 0?"":_.currency[0]+"",A=_.currency===void 0?"":_.currency[1]+"",d=_.decimal===void 0?".":_.decimal+"",D=_.numerals===void 0?g:o(w.call(_.numerals,String)),E=_.percent===void 0?"%":_.percent+"",R=_.minus===void 0?"-":_.minus+"",z=_.nan===void 0?"NaN":_.nan+"";function I(L){L=l(L);var F=L.fill,B=L.align,O=L.sign,V=L.symbol,K=L.zero,j=L.width,G=L.comma,q=L.precision,J=L.trim,te=L.type;te==="n"?(G=!0,te="g"):x[te]||(q===void 0&&(q=12),J=!0,te="g"),(K||F==="0"&&B==="=")&&(K=!0,F="0",B="=");var Z=V==="$"?v:V==="#"&&/[boxX]/.test(te)?"0"+te.toLowerCase():"",ie=V==="$"?A:/[%p]/.test(te)?E:"",Q=x[te],re=/[defgprs%]/.test(te);q=q===void 0?6:/[gprs]/.test(te)?Math.max(1,Math.min(21,q)):Math.max(0,Math.min(20,q));function ue(ee){var ae=Z,ce=ie,Te,ke,Se;if(te==="c")ce=Q(ee)+ce,ee="";else{ee=+ee;var ge=ee<0||1/ee<0;if(ee=isNaN(ee)?z:Q(Math.abs(ee),q),J&&(ee=s(ee)),ge&&+ee==0&&O!=="+"&&(ge=!1),ae=(ge?O==="("?O:R:O==="-"||O==="("?"":O)+ae,ce=(te==="s"?M[8+f/3]:"")+ce+(ge&&O==="("?")":""),re){for(Te=-1,ke=ee.length;++TeSe||Se>57){ce=(Se===46?d+ee.slice(Te+1):ee.slice(Te))+ce,ee=ee.slice(0,Te);break}}}G&&!K&&(ee=y(ee,1/0));var Le=ae.length+ee.length+ce.length,Ce=Le>1)+ae+ee+ce+Ce.slice(Le);break;default:ee=Ce+ae+ee+ce;break}return D(ee)}return ue.toString=function(){return L+""},ue}function P(L,F){var B=I((L=l(L),L.type="f",L)),O=Math.max(-8,Math.min(8,Math.floor(n(F)/3)))*3,V=Math.pow(10,-O),K=M[8+O/3];return function(j){return B(V*j)+K}}return{format:I,formatPrefix:P}}var k;S({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function S(_){return k=m(_),e.format=k.format,e.formatPrefix=k.formatPrefix,k}function b(_){return Math.max(0,-n(Math.abs(_)))}function T(_,y){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(n(y)/3)))*3-n(Math.abs(_)))}function h(_,y){return _=Math.abs(_),y=Math.abs(y)-_,Math.max(0,n(y)-n(_))+1}e.FormatSpecifier=u,e.formatDefaultLocale=S,e.formatLocale=m,e.formatSpecifier=l,e.precisionFixed=b,e.precisionPrefix=T,e.precisionRound=h,Object.defineProperty(e,"__esModule",{value:!0})}))});var e7=_e((Abe,j_)=>{"use strict";j_.exports=function(e){for(var r=e.length,t,n=0;n13)&&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}});var ot=_e((kbe,r7)=>{"use strict";var HY=e7();r7.exports=function(e){var r=typeof e;if(r==="string"){var t=e;if(e=+e,e===0&&HY(t))return!1}else if(r!=="number")return!1;return e-e<1}});var Cn={};Ut(Cn,{ALMOST_EQUAL:()=>lX,BADNUM:()=>lg,EPOCHJD:()=>oX,FP_SAFE:()=>VY,LOG_CLIP:()=>sX,MINUS_SIGN:()=>uX,ONEAVGMONTH:()=>KY,ONEAVGQUARTER:()=>ZY,ONEAVGYEAR:()=>YY,ONEDAY:()=>eX,ONEHOUR:()=>rX,ONEMAXMONTH:()=>$Y,ONEMAXQUARTER:()=>WY,ONEMAXYEAR:()=>GY,ONEMICROSEC:()=>iX,ONEMILLI:()=>aX,ONEMIN:()=>tX,ONEMINMONTH:()=>QY,ONEMINQUARTER:()=>JY,ONEMINYEAR:()=>XY,ONESEC:()=>nX,ONEWEEK:()=>jY});var lg,VY,GY,YY,XY,WY,ZY,JY,$Y,KY,QY,jY,eX,rX,tX,nX,aX,iX,oX,lX,sX,uX,mn=Ot(()=>{"use strict";lg=void 0,VY=Number.MAX_VALUE*1e-4,GY=316224e5,YY=315576e5,XY=31536e6,WY=79488e5,ZY=78894e5,JY=76896e5,$Y=26784e5,KY=26298e5,QY=24192e5,jY=6048e5,eX=864e5,rX=36e5,tX=6e4,nX=1e3,aX=1,iX=.001,oX=24405875e-1,lX=1-1e-6,sX=10,uX="\u2212"});var sg=_e(($v,t7)=>{(function(e,r){typeof $v=="object"&&typeof t7!="undefined"?r($v):(e=typeof globalThis!="undefined"?globalThis:e||self,r(e["base64-arraybuffer"]={}))})($v,(function(e){"use strict";for(var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),n=0;n>2],f+=r[(l[u]&3)<<4|l[u+1]>>4],f+=r[(l[u+1]&15)<<2|l[u+2]>>6],f+=r[l[u+2]&63];return s%3===2?f=f.substring(0,f.length-1)+"=":s%3===1&&(f=f.substring(0,f.length-2)+"=="),f},o=function(i){var l=i.length*.75,u=i.length,s,f=0,c,p,x,g;i[i.length-1]==="="&&(l--,i[i.length-2]==="="&&l--);var w=new ArrayBuffer(l),M=new Uint8Array(w);for(s=0;s>4,M[f++]=(p&15)<<4|x>>2,M[f++]=(x&3)<<6|g&63;return w};e.decode=o,e.encode=a,Object.defineProperty(e,"__esModule",{value:!0})}))});var os=_e((Sbe,n7)=>{"use strict";n7.exports=function(r){return window&&window.process&&window.process.versions?Object.prototype.toString.call(r)==="[object Object]":Object.prototype.toString.call(r)==="[object Object]"&&Object.getPrototypeOf(r).hasOwnProperty("hasOwnProperty")}});var ha=_e(xi=>{"use strict";var fX=sg().decode,cX=os(),ug=Array.isArray,vX=ArrayBuffer,hX=DataView;function a7(e){return vX.isView(e)&&!(e instanceof hX)}xi.isTypedArray=a7;function Kv(e){return ug(e)||a7(e)}xi.isArrayOrTypedArray=Kv;function dX(e){return!Kv(e[0])}xi.isArray1D=dX;xi.ensureArray=function(e,r){return ug(e)||(e=[]),e.length=r,e};var En={u1c:typeof Uint8ClampedArray=="undefined"?void 0:Uint8ClampedArray,i1:typeof Int8Array=="undefined"?void 0:Int8Array,u1:typeof Uint8Array=="undefined"?void 0:Uint8Array,i2:typeof Int16Array=="undefined"?void 0:Int16Array,u2:typeof Uint16Array=="undefined"?void 0:Uint16Array,i4:typeof Int32Array=="undefined"?void 0:Int32Array,u4:typeof Uint32Array=="undefined"?void 0:Uint32Array,f4:typeof Float32Array=="undefined"?void 0:Float32Array,f8:typeof Float64Array=="undefined"?void 0:Float64Array};En.uint8c=En.u1c;En.uint8=En.u1;En.int8=En.i1;En.uint16=En.u2;En.int16=En.i2;En.uint32=En.u4;En.int32=En.i4;En.float32=En.f4;En.float64=En.f8;function fg(e){return e.constructor===ArrayBuffer}xi.isArrayBuffer=fg;xi.decodeTypedArraySpec=function(e){var r=[],t=pX(e),n=t.dtype,a=En[n];if(!a)throw new Error('Error in dtype: "'+n+'"');var o=a.BYTES_PER_ELEMENT,i=t.bdata;fg(i)||(i=fX(i));var l=t.shape===void 0?[i.byteLength/o]:(""+t.shape).split(",");l.reverse();var u=l.length,s,f,c=+l[0],p=o*c,x=0;if(u===1)r=new a(i);else if(u===2)for(s=+l[1],f=0;f{"use strict";var o7=ot(),vg=ha().isArrayOrTypedArray;f7.exports=function(r,t){if(o7(t))t=String(t);else if(typeof t!="string"||t.slice(-4)==="[-1]")throw"bad property string";var n=t.split("."),a,o,i,l;for(l=0;l{"use strict";var w0=Qv(),xX=/^\w*$/,_X=0,c7=1,jv=2,v7=3,ls=4;h7.exports=function(r,t,n,a){n=n||"name",a=a||"value";var o,i,l,u={};t&&t.length?(l=w0(r,t),i=l.get()):i=r,t=t||"";var s={};if(i)for(o=0;o2)return u[x]=u[x]|jv,c.set(p,null);if(f){for(o=x;o{"use strict";var wX=/^(.*)(\.[^\.\[\]]+|\[\d\])$/,MX=/^[^\.\[\]]+$/;p7.exports=function(e,r){for(;r;){var t=e.match(wX);if(t)e=t[1];else if(e.match(MX))e="";else throw new Error("bad relativeAttr call:"+[e,r]);if(r.charAt(0)==="^")r=r.slice(1);else break}return e&&r.charAt(0)!=="["?e+"."+r:e+r}});var eh=_e((Rbe,y7)=>{"use strict";var TX=ot();y7.exports=function(r,t){if(r>0)return Math.log(r)/Math.LN10;var n=Math.log(Math.min(t[0],t[1]))/Math.LN10;return TX(n)||(n=Math.log(Math.max(t[0],t[1]))/Math.LN10-6),n}});var x7=_e((Fbe,b7)=>{"use strict";var m7=ha().isArrayOrTypedArray,cf=os();b7.exports=function e(r,t){for(var n in t){var a=t[n],o=r[n];if(o!==a)if(n.charAt(0)==="_"||typeof a=="function"){if(n in r)continue;r[n]=a}else if(m7(a)&&m7(o)&&cf(a[0])){if(n==="customdata"||n==="ids")continue;for(var i=Math.min(a.length,o.length),l=0;lAX,modHalf:()=>kX});function AX(e,r){let t=e%r;return t<0?t+r:t}function kX(e,r){return Math.abs(e)>r/2?e-Math.round(e/r)*r:e}var T0=Ot(()=>{"use strict"});var Ft=_e(df=>{"use strict";var _7=os(),vf=Array.isArray;function SX(e,r){var t,n;for(t=0;t{"use strict";w7.exports=function(e){var r=e.variantValues,t=e.editType,n=e.colorEditType;n===void 0&&(n=t);var a={editType:t,valType:"integer",min:1,max:1e3,extras:["normal","bold"],dflt:"normal"};e.noNumericWeightValues&&(a.valType="enumerated",a.values=a.extras,a.extras=void 0,a.min=void 0,a.max=void 0);var o={family:{valType:"string",noBlank:!0,strict:!0,editType:t},size:{valType:"number",min:1,editType:t},color:{valType:"color",editType:n},weight:a,style:{editType:t,valType:"enumerated",values:["normal","italic"],dflt:"normal"},variant:e.noFontVariant?void 0:{editType:t,valType:"enumerated",values:r||["normal","small-caps","all-small-caps","all-petite-caps","petite-caps","unicase"],dflt:"normal"},textcase:e.noFontTextcase?void 0:{editType:t,valType:"enumerated",values:["normal","word caps","upper","lower"],dflt:"normal"},lineposition:e.noFontLineposition?void 0:{editType:t,valType:"flaglist",flags:["under","over","through"],extras:["none"],dflt:"none"},shadow:e.noFontShadow?void 0:{editType:t,valType:"string",dflt:e.autoShadowDflt?"auto":"none"},editType:t};return e.autoSize&&(o.size.dflt="auto"),e.autoColor&&(o.color.dflt="auto"),e.arrayOk&&(o.family.arrayOk=!0,o.weight.arrayOk=!0,o.style.arrayOk=!0,e.noFontVariant||(o.variant.arrayOk=!0),e.noFontTextcase||(o.textcase.arrayOk=!0),e.noFontLineposition||(o.lineposition.arrayOk=!0),e.noFontShadow||(o.shadow.arrayOk=!0),o.size.arrayOk=!0,o.color.arrayOk=!0),o}});var pf={};Ut(pf,{HOVERARROWSIZE:()=>EX,HOVERFONT:()=>RX,HOVERFONTSIZE:()=>DX,HOVERID:()=>PX,HOVERMINTIME:()=>FX,HOVERTEXTPAD:()=>LX,YANGLE:()=>CX});var CX,EX,LX,DX,RX,FX,PX,gf=Ot(()=>{"use strict";CX=60,EX=6,LX=3,DX=13,RX="Arial, sans-serif",FX=50,PX="-hover"});var ss=_e((zbe,A7)=>{"use strict";var M7=(gf(),or(pf)),T7=Hn(),hg=T7({editType:"none"});hg.family.dflt=M7.HOVERFONT;hg.size.dflt=M7.HOVERFONTSIZE;A7.exports={clickmode:{valType:"flaglist",flags:["event","select"],dflt:"event",editType:"plot",extras:["none"]},dragmode:{valType:"enumerated",values:["zoom","pan","select","lasso","drawclosedpath","drawopenpath","drawline","drawrect","drawcircle","orbit","turntable",!1],dflt:"zoom",editType:"modebar"},hovermode:{valType:"enumerated",values:["x","y","closest",!1,"x unified","y unified"],dflt:"closest",editType:"modebar"},hoversort:{valType:"enumerated",values:["trace","value descending","value ascending"],dflt:"trace",editType:"none"},hoversubplots:{valType:"enumerated",values:["single","overlaying","axis"],dflt:"overlaying",editType:"none"},hoveranywhere:{valType:"boolean",dflt:!1,editType:"none"},clickanywhere:{valType:"boolean",dflt:!1,editType:"none"},hoverdistance:{valType:"integer",min:-1,dflt:20,editType:"none"},spikedistance:{valType:"integer",min:-1,dflt:-1,editType:"none"},hoverlabel:{bgcolor:{valType:"color",editType:"none"},bordercolor:{valType:"color",editType:"none"},font:hg,grouptitlefont:T7({editType:"none"}),align:{valType:"enumerated",values:["left","right","auto"],dflt:"auto",editType:"none"},namelength:{valType:"integer",min:-1,dflt:15,editType:"none"},showarrow:{valType:"boolean",dflt:!0,editType:"none"},editType:"none"},selectdirection:{valType:"enumerated",values:["h","v","d","any"],dflt:"any",editType:"none"}}});var rh=_e((Nbe,k7)=>{"use strict";var IX=Hn(),yf=ss().hoverlabel,mf=Ft().extendFlat;k7.exports={hoverlabel:{bgcolor:mf({},yf.bgcolor,{arrayOk:!0}),bordercolor:mf({},yf.bordercolor,{arrayOk:!0}),font:IX({arrayOk:!0,editType:"none"}),align:mf({},yf.align,{arrayOk:!0}),namelength:mf({},yf.namelength,{arrayOk:!0}),showarrow:mf({},yf.showarrow),editType:"none"}}});var Vn=_e((qbe,S7)=>{"use strict";var zX=Hn(),NX=rh();S7.exports={type:{valType:"enumerated",values:[],dflt:"scatter",editType:"calc+clearAxisTypes",_noTemplating:!0},visible:{valType:"enumerated",values:[!0,!1,"legendonly"],dflt:!0,editType:"calc"},showlegend:{valType:"boolean",dflt:!0,editType:"style"},legend:{valType:"subplotid",dflt:"legend",editType:"style"},legendgroup:{valType:"string",dflt:"",editType:"style"},legendgrouptitle:{text:{valType:"string",dflt:"",editType:"style"},font:zX({editType:"style"}),editType:"style"},legendrank:{valType:"number",dflt:1e3,editType:"style"},legendwidth:{valType:"number",min:0,editType:"style"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"style"},name:{valType:"string",editType:"style"},uid:{valType:"string",editType:"plot",anim:!0},ids:{valType:"data_array",editType:"calc",anim:!0},customdata:{valType:"data_array",editType:"calc"},meta:{valType:"any",arrayOk:!0,editType:"plot"},selectedpoints:{valType:"any",editType:"calc"},hoverinfo:{valType:"flaglist",flags:["x","y","z","text","name"],extras:["all","none","skip"],arrayOk:!0,dflt:"all",editType:"none"},hoverlabel:NX.hoverlabel,uirevision:{valType:"any",editType:"none"}}});var b8=_e((Ybe,m8)=>{var i3=Object.defineProperty,qX=Object.getOwnPropertyDescriptor,BX=Object.getOwnPropertyNames,OX=Object.prototype.hasOwnProperty,UX=(e,r)=>{for(var t in r)i3(e,t,{get:r[t],enumerable:!0})},HX=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let a of BX(r))!OX.call(e,a)&&a!==t&&i3(e,a,{get:()=>r[a],enumerable:!(n=qX(r,a))||n.enumerable});return e},VX=e=>HX(i3({},"__esModule",{value:!0}),e),N7={};UX(N7,{a98:()=>P$,average:()=>BW,averageAngle:()=>Qi,averageNumber:()=>ew,blend:()=>qJ,blerp:()=>Bg,clampChroma:()=>a$,clampGamut:()=>R3,clampRgb:()=>n$,colorsNamed:()=>B7,convertA98ToXyz65:()=>Og,convertCubehelixToRgb:()=>Q7,convertDlchToLab65:()=>fh,convertHsiToRgb:()=>sw,convertHslToRgb:()=>cw,convertHsvToRgb:()=>c3,convertHwbToRgb:()=>pw,convertItpToXyz65:()=>Hg,convertJabToJch:()=>Gg,convertJabToRgb:()=>y3,convertJabToXyz65:()=>p3,convertJchToJab:()=>Yg,convertLab65ToDlch:()=>ch,convertLab65ToRgb:()=>kf,convertLab65ToXyz65:()=>s3,convertLabToLch:()=>Eo,convertLabToRgb:()=>b3,convertLabToXyz50:()=>_h,convertLchToLab:()=>Lo,convertLchuvToLuv:()=>w3,convertLrgbToOklab:()=>M3,convertLrgbToRgb:()=>ps,convertLuvToLchuv:()=>_3,convertLuvToXyz50:()=>hh,convertOkhslToOklab:()=>Zg,convertOkhsvToOklab:()=>$g,convertOklabToLrgb:()=>R0,convertOklabToOkhsl:()=>Wg,convertOklabToOkhsv:()=>Jg,convertOklabToRgb:()=>Ef,convertP3ToXyz65:()=>Kg,convertProphotoToXyz50:()=>e3,convertRec2020ToXyz65:()=>t3,convertRgbToCubehelix:()=>K7,convertRgbToHsi:()=>uw,convertRgbToHsl:()=>vw,convertRgbToHsv:()=>v3,convertRgbToHwb:()=>gw,convertRgbToJab:()=>g3,convertRgbToLab:()=>x3,convertRgbToLab65:()=>Sf,convertRgbToLrgb:()=>ds,convertRgbToOklab:()=>Cf,convertRgbToXyb:()=>Gw,convertRgbToXyz50:()=>D0,convertRgbToXyz65:()=>tl,convertRgbToYiq:()=>Kw,convertXybToRgb:()=>Yw,convertXyz50ToLab:()=>wh,convertXyz50ToLuv:()=>vh,convertXyz50ToProphoto:()=>jg,convertXyz50ToRgb:()=>L0,convertXyz50ToXyz65:()=>Jw,convertXyz65ToA98:()=>Ug,convertXyz65ToItp:()=>Vg,convertXyz65ToJab:()=>d3,convertXyz65ToLab65:()=>u3,convertXyz65ToP3:()=>Qg,convertXyz65ToRec2020:()=>r3,convertXyz65ToRgb:()=>nl,convertXyz65ToXyz50:()=>Zw,convertYiqToRgb:()=>Qw,converter:()=>Pt,cubehelix:()=>I$,differenceCie76:()=>RW,differenceCie94:()=>FW,differenceCiede2000:()=>PW,differenceCmc:()=>IW,differenceEuclidean:()=>E0,differenceHueChroma:()=>Af,differenceHueNaive:()=>j7,differenceHueSaturation:()=>Tf,differenceHyab:()=>zW,differenceItp:()=>qW,differenceKotsarenkoRamos:()=>NW,displayable:()=>D3,dlab:()=>z$,dlch:()=>N$,easingGamma:()=>h8,easingInOutSine:()=>R$,easingMidpoint:()=>o8,easingSmootherstep:()=>L$,easingSmoothstep:()=>S$,easingSmoothstepInverse:()=>C$,filterBrightness:()=>h$,filterContrast:()=>d$,filterDeficiencyDeuter:()=>A$,filterDeficiencyProt:()=>T$,filterDeficiencyTrit:()=>k$,filterGrayscale:()=>y$,filterHueRotate:()=>b$,filterInvert:()=>m$,filterSaturate:()=>g$,filterSepia:()=>p$,fixupAlpha:()=>xn,fixupHueDecreasing:()=>SW,fixupHueIncreasing:()=>kW,fixupHueLonger:()=>AW,fixupHueShorter:()=>Ki,formatCss:()=>DJ,formatHex:()=>RJ,formatHex8:()=>FJ,formatHsl:()=>IJ,formatRgb:()=>PJ,getMode:()=>na,hsi:()=>q$,hsl:()=>B$,hsv:()=>O$,hwb:()=>U$,inGamut:()=>Ah,interpolate:()=>WJ,interpolateWith:()=>s8,interpolateWithPremultipliedAlpha:()=>ZJ,interpolatorLinear:()=>_r,interpolatorPiecewise:()=>J7,interpolatorSplineBasis:()=>f8,interpolatorSplineBasisClosed:()=>c8,interpolatorSplineMonotone:()=>KJ,interpolatorSplineMonotone2:()=>QJ,interpolatorSplineMonotoneClosed:()=>jJ,interpolatorSplineNatural:()=>JJ,interpolatorSplineNaturalClosed:()=>$J,itp:()=>H$,jab:()=>V$,jch:()=>G$,lab:()=>Y$,lab65:()=>X$,lch:()=>W$,lch65:()=>Z$,lchuv:()=>J$,lerp:()=>fs,lrgb:()=>$$,luv:()=>K$,mapAlphaDivide:()=>i8,mapAlphaMultiply:()=>a8,mapTransferGamma:()=>VJ,mapTransferLinear:()=>C3,mapper:()=>Lf,modeA98:()=>$7,modeCubehelix:()=>rw,modeDlab:()=>ow,modeDlch:()=>lw,modeHsi:()=>fw,modeHsl:()=>f3,modeHsv:()=>h3,modeHwb:()=>mw,modeItp:()=>_w,modeJab:()=>ww,modeJch:()=>Mw,modeLab:()=>Mh,modeLab65:()=>Aw,modeLch:()=>Th,modeLch65:()=>Sw,modeLchuv:()=>Lw,modeLrgb:()=>Dw,modeLuv:()=>Rw,modeOkhsl:()=>Pw,modeOkhsv:()=>Iw,modeOklab:()=>Nw,modeOklch:()=>Bw,modeP3:()=>Ow,modeProphoto:()=>Uw,modeRec2020:()=>Hw,modeRgb:()=>hs,modeXyb:()=>Xw,modeXyz50:()=>Ww,modeXyz65:()=>$w,modeYiq:()=>jw,nearest:()=>l$,okhsl:()=>Q$,okhsv:()=>j$,oklab:()=>eK,oklch:()=>rK,p3:()=>tK,parse:()=>X7,parseHex:()=>U7,parseHsl:()=>dw,parseHslLegacy:()=>hw,parseHwb:()=>yw,parseLab:()=>Tw,parseLch:()=>kw,parseNamed:()=>O7,parseOklab:()=>zw,parseOklch:()=>qw,parseRgb:()=>W7,parseRgbLegacy:()=>H7,parseTransparent:()=>Z7,prophoto:()=>nK,random:()=>HJ,rec2020:()=>aK,removeParser:()=>nW,rgb:()=>iK,round:()=>e8,samples:()=>t$,serializeHex:()=>S3,serializeHex8:()=>r8,serializeHsl:()=>n8,serializeRgb:()=>t8,toGamut:()=>i$,trilerp:()=>dW,unlerp:()=>hW,useMode:()=>wt,useParser:()=>G7,wcagContrast:()=>F$,wcagLuminance:()=>a3,xyb:()=>oK,xyz50:()=>lK,xyz65:()=>sK,yiq:()=>uK});m8.exports=VX(N7);var GX=(e,r)=>{if(typeof e=="number"){if(r===3)return{mode:"rgb",r:(e>>8&15|e>>4&240)/255,g:(e>>4&15|e&240)/255,b:(e&15|e<<4&240)/255};if(r===4)return{mode:"rgb",r:(e>>12&15|e>>8&240)/255,g:(e>>8&15|e>>4&240)/255,b:(e>>4&15|e&240)/255,alpha:(e&15|e<<4&240)/255};if(r===6)return{mode:"rgb",r:(e>>16&255)/255,g:(e>>8&255)/255,b:(e&255)/255};if(r===8)return{mode:"rgb",r:(e>>24&255)/255,g:(e>>16&255)/255,b:(e>>8&255)/255,alpha:(e&255)/255}}},q7=GX,YX={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},B7=YX,XX=e=>q7(B7[e.toLowerCase()],6),O7=XX,WX=/^#?([0-9a-f]{8}|[0-9a-f]{6}|[0-9a-f]{4}|[0-9a-f]{3})$/i,ZX=e=>{let r;return(r=e.match(WX))?q7(parseInt(r[1],16),r[1].length):void 0},U7=ZX,wa="([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)",Bbe=`(?:${wa}|none)`,_f=`${wa}%`,Obe=`(?:${wa}%|none)`,o3=`(?:${wa}%|${wa})`,JX=`(?:${wa}%|${wa}|none)`,$X=`(?:${wa}(deg|grad|rad|turn)|${wa})`,Ube=`(?:${wa}(deg|grad|rad|turn)|${wa}|none)`,S0="\\s*,\\s*",Hbe=new RegExp("^"+JX+"$"),KX=new RegExp(`^rgba?\\(\\s*${wa}${S0}${wa}${S0}${wa}\\s*(?:,\\s*${o3}\\s*)?\\)$`),QX=new RegExp(`^rgba?\\(\\s*${_f}${S0}${_f}${S0}${_f}\\s*(?:,\\s*${o3}\\s*)?\\)$`),jX=e=>{let r={mode:"rgb"},t;if(t=e.match(KX))t[1]!==void 0&&(r.r=t[1]/255),t[2]!==void 0&&(r.g=t[2]/255),t[3]!==void 0&&(r.b=t[3]/255);else if(t=e.match(QX))t[1]!==void 0&&(r.r=t[1]/100),t[2]!==void 0&&(r.g=t[2]/100),t[3]!==void 0&&(r.b=t[3]/100);else return;return t[4]!==void 0?r.alpha=Math.max(0,Math.min(1,t[4]/100)):t[5]!==void 0&&(r.alpha=Math.max(0,Math.min(1,+t[5]))),r},H7=jX,eW=(e,r)=>e===void 0?void 0:typeof e!="object"?X7(e):e.mode!==void 0?e:r?Bt(_t({},e),{mode:r}):void 0,_i=eW,rW=(e="rgb")=>r=>(r=_i(r,e))!==void 0?r.mode===e?r:$i[r.mode][e]?$i[r.mode][e](r):e==="rgb"?$i[r.mode].rgb(r):$i.rgb[e]($i[r.mode].rgb(r)):void 0,Pt=rW,$i={},V7={},C0=[],l3={},tW=e=>e,wt=e=>($i[e.mode]=_t(_t({},$i[e.mode]),e.toMode),Object.keys(e.fromMode||{}).forEach(r=>{$i[r]||($i[r]={}),$i[r][e.mode]=e.fromMode[r]}),e.ranges||(e.ranges={}),e.difference||(e.difference={}),e.channels.forEach(r=>{if(e.ranges[r]===void 0&&(e.ranges[r]=[0,1]),!e.interpolate[r])throw new Error(`Missing interpolator for: ${r}`);typeof e.interpolate[r]=="function"&&(e.interpolate[r]={use:e.interpolate[r]}),e.interpolate[r].fixup||(e.interpolate[r].fixup=tW)}),V7[e.mode]=e,(e.parse||[]).forEach(r=>{G7(r,e.mode)}),Pt(e.mode)),na=e=>V7[e],G7=(e,r)=>{if(typeof e=="string"){if(!r)throw new Error("'mode' required when 'parser' is a string");l3[e]=r}else typeof e=="function"&&C0.indexOf(e)<0&&C0.push(e)},nW=e=>{if(typeof e=="string")delete l3[e];else if(typeof e=="function"){let r=C0.indexOf(e);r>0&&C0.splice(r,1)}},Ng=/[^\x00-\x7F]|[a-zA-Z_]/,aW=/[^\x00-\x7F]|[-\w]/,yr={Function:"function",Ident:"ident",Number:"number",Percentage:"percentage",ParenClose:")",None:"none",Hue:"hue",Alpha:"alpha"},Xr=0;function th(e){let r=e[Xr],t=e[Xr+1];return r==="-"||r==="+"?/\d/.test(t)||t==="."&&/\d/.test(e[Xr+2]):r==="."?/\d/.test(t):/\d/.test(r)}function qg(e){if(Xr>=e.length)return!1;let r=e[Xr];if(Ng.test(r))return!0;if(r==="-"){if(e.length-Xr<2)return!1;let t=e[Xr+1];return!!(t==="-"||Ng.test(t))}return!1}var iW={deg:1,rad:180/Math.PI,grad:9/10,turn:360};function bf(e){let r="";if((e[Xr]==="-"||e[Xr]==="+")&&(r+=e[Xr++]),r+=nh(e),e[Xr]==="."&&/\d/.test(e[Xr+1])&&(r+=e[Xr++]+nh(e)),(e[Xr]==="e"||e[Xr]==="E")&&((e[Xr+1]==="-"||e[Xr+1]==="+")&&/\d/.test(e[Xr+2])?r+=e[Xr++]+e[Xr++]+nh(e):/\d/.test(e[Xr+1])&&(r+=e[Xr++]+nh(e))),qg(e)){let t=oh(e);return t==="deg"||t==="rad"||t==="turn"||t==="grad"?{type:yr.Hue,value:r*iW[t]}:void 0}return e[Xr]==="%"?(Xr++,{type:yr.Percentage,value:+r}):{type:yr.Number,value:+r}}function nh(e){let r="";for(;/\d/.test(e[Xr]);)r+=e[Xr++];return r}function oh(e){let r="";for(;Xr4)){if(t.length===4){if(t[3].type!==yr.Alpha)return;t[3]=t[3].value}return t.length===3&&t.push({type:yr.None,value:void 0}),t.every(a=>a.type!==yr.Alpha)?t:void 0}}function uW(e,r){e._i=0;let t=e[e._i++];if(!t||t.type!==yr.Function)return;let n=Y7(e,r);if(n)return n.unshift(t.value),n}var fW=e=>{if(typeof e!="string")return;let r=lW(e),t=r?uW(r,!0):void 0,n,a=0,o=C0.length;for(;ae==="transparent"?{mode:"rgb",r:0,g:0,b:0,alpha:0}:void 0,Z7=vW,fs=(e,r,t)=>e+t*(r-e),hW=(e,r,t)=>(t-e)/(r-e),Bg=(e,r,t,n,a,o)=>fs(fs(e,r,a),fs(t,n,a),o),dW=(e,r,t,n,a,o,i,l,u,s,f)=>fs(Bg(e,r,t,n,u,s),Bg(a,o,i,l,u,s),f),pW=e=>{let r=[];for(let t=0;tr=>{let t=pW(r);return n=>{let a=n*t.length,o=n>=1?t.length-1:Math.max(Math.floor(a),0),i=t[o];return i===void 0?void 0:e(i[0],i[1],a-o)}},_r=J7(fs),xn=e=>{let r=!1,t=e.map(n=>n!==void 0?(r=!0,n):1);return r?t:e},gW={mode:"rgb",channels:["r","g","b","alpha"],parse:[W7,U7,H7,O7,Z7,"srgb"],serialize:"srgb",interpolate:{r:_r,g:_r,b:_r,alpha:{use:_r,fixup:xn}},gamut:!0,white:{r:1,g:1,b:1},black:{r:0,g:0,b:0}},hs=gW,dg=(e=0)=>Math.pow(Math.abs(e),563/256)*Math.sign(e),yW=e=>{let r=dg(e.r),t=dg(e.g),n=dg(e.b),a={mode:"xyz65",x:.5766690429101305*r+.1855582379065463*t+.1882286462349947*n,y:.297344975250536*r+.6273635662554661*t+.0752914584939979*n,z:.0270313613864123*r+.0706888525358272*t+.9913375368376386*n};return e.alpha!==void 0&&(a.alpha=e.alpha),a},Og=yW,pg=e=>Math.pow(Math.abs(e),256/563)*Math.sign(e),mW=({x:e,y:r,z:t,alpha:n})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let a={mode:"a98",r:pg(e*2.0415879038107465-r*.5650069742788597-.3447313507783297*t),g:pg(e*-.9692436362808798+r*1.8759675015077206+.0415550574071756*t),b:pg(e*.0134442806320312-r*.1183623922310184+1.0151749943912058*t)};return n!==void 0&&(a.alpha=n),a},Ug=mW,gg=(e=0)=>{let r=Math.abs(e);return r<=.04045?e/12.92:(Math.sign(e)||1)*Math.pow((r+.055)/1.055,2.4)},bW=({r:e,g:r,b:t,alpha:n})=>{let a={mode:"lrgb",r:gg(e),g:gg(r),b:gg(t)};return n!==void 0&&(a.alpha=n),a},ds=bW,xW=e=>{let{r,g:t,b:n,alpha:a}=ds(e),o={mode:"xyz65",x:.4123907992659593*r+.357584339383878*t+.1804807884018343*n,y:.2126390058715102*r+.715168678767756*t+.0721923153607337*n,z:.0193308187155918*r+.119194779794626*t+.9505321522496607*n};return a!==void 0&&(o.alpha=a),o},tl=xW,yg=(e=0)=>{let r=Math.abs(e);return r>.0031308?(Math.sign(e)||1)*(1.055*Math.pow(r,1/2.4)-.055):e*12.92},_W=({r:e,g:r,b:t,alpha:n},a="rgb")=>{let o={mode:a,r:yg(e),g:yg(r),b:yg(t)};return n!==void 0&&(o.alpha=n),o},ps=_W,wW=({x:e,y:r,z:t,alpha:n})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let a=ps({r:e*3.2409699419045226-r*1.537383177570094-.4986107602930034*t,g:e*-.9692436362808796+r*1.8759675015077204+.0415550574071756*t,b:e*.0556300796969936-r*.2039769588889765+1.0569715142428784*t});return n!==void 0&&(a.alpha=n),a},nl=wW,MW=Bt(_t({},hs),{mode:"a98",parse:["a98-rgb"],serialize:"a98-rgb",fromMode:{rgb:e=>Ug(tl(e)),xyz65:Ug},toMode:{rgb:e=>nl(Og(e)),xyz65:Og}}),$7=MW,TW=e=>(e=e%360)<0?e+360:e,Gn=TW,ph=(e,r)=>e.map((t,n,a)=>{if(t===void 0)return t;let o=Gn(t);return n===0||e[n-1]===void 0?o:r(o-Gn(a[n-1]))}).reduce((t,n)=>!t.length||n===void 0||t[t.length-1]===void 0?(t.push(n),t):(t.push(n+t[t.length-1]),t),[]),Ki=e=>ph(e,r=>Math.abs(r)<=180?r:r-360*Math.sign(r)),AW=e=>ph(e,r=>Math.abs(r)>=180||r===0?r:r-360*Math.sign(r)),kW=e=>ph(e,r=>r>=0?r:r+360),SW=e=>ph(e,r=>r<=0?r:r-360),qn=[-.14861,1.78277,-.29227,-.90649,1.97294,0],CW=Math.PI/180,EW=180/Math.PI,C7=qn[3]*qn[4],E7=qn[1]*qn[4],L7=qn[1]*qn[2]-qn[0]*qn[3],LW=({r:e,g:r,b:t,alpha:n})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let a=(L7*t+e*C7-r*E7)/(L7+C7-E7),o=t-a,i=(qn[4]*(r-a)-qn[2]*o)/qn[3],l={mode:"cubehelix",l:a,s:a===0||a===1?void 0:Math.sqrt(o*o+i*i)/(qn[4]*a*(1-a))};return l.s&&(l.h=Math.atan2(i,o)*EW-120),n!==void 0&&(l.alpha=n),l},K7=LW,DW=({h:e,s:r,l:t,alpha:n})=>{let a={mode:"rgb"};e=(e===void 0?0:e+120)*CW,t===void 0&&(t=0);let o=r===void 0?0:r*t*(1-t),i=Math.cos(e),l=Math.sin(e);return a.r=t+o*(qn[0]*i+qn[1]*l),a.g=t+o*(qn[2]*i+qn[3]*l),a.b=t+o*(qn[4]*i+qn[5]*l),n!==void 0&&(a.alpha=n),a},Q7=DW,Tf=(e,r)=>{if(e.h===void 0||r.h===void 0||!e.s||!r.s)return 0;let t=Gn(e.h),n=Gn(r.h),a=Math.sin((n-t+360)/2*Math.PI/180);return 2*Math.sqrt(e.s*r.s)*a},j7=(e,r)=>{if(e.h===void 0||r.h===void 0)return 0;let t=Gn(e.h),n=Gn(r.h);return Math.abs(n-t)>180?t-(n-360*Math.sign(n-t)):n-t},Af=(e,r)=>{if(e.h===void 0||r.h===void 0||!e.c||!r.c)return 0;let t=Gn(e.h),n=Gn(r.h),a=Math.sin((n-t+360)/2*Math.PI/180);return 2*Math.sqrt(e.c*r.c)*a},E0=(e="rgb",r=[1,1,1,0])=>{let t=na(e),n=t.channels,a=t.difference,o=Pt(e);return(i,l)=>{let u=o(i),s=o(l);return Math.sqrt(n.reduce((f,c,p)=>{let x=a[c]?a[c](u,s):u[c]-s[c];return f+(r[p]||0)*Math.pow(isNaN(x)?0:x,2)},0))}},RW=()=>E0("lab65"),FW=(e=1,r=.045,t=.015)=>{let n=Pt("lab65");return(a,o)=>{let i=n(a),l=n(o),u=i.l,s=i.a,f=i.b,c=Math.sqrt(s*s+f*f),p=l.l,x=l.a,g=l.b,w=Math.sqrt(x*x+g*g),M=Math.pow(u-p,2),m=Math.pow(c-w,2),k=Math.pow(s-x,2)+Math.pow(f-g,2)-m;return Math.sqrt(M/Math.pow(e,2)+m/Math.pow(1+r*c,2)+k/Math.pow(1+t*c,2))}},PW=(e=1,r=1,t=1)=>{let n=Pt("lab65");return(a,o)=>{let i=n(a),l=n(o),u=i.l,s=i.a,f=i.b,c=Math.sqrt(s*s+f*f),p=l.l,x=l.a,g=l.b,w=Math.sqrt(x*x+g*g),M=(c+w)/2,m=.5*(1-Math.sqrt(Math.pow(M,7)/(Math.pow(M,7)+Math.pow(25,7)))),k=s*(1+m),S=x*(1+m),b=Math.sqrt(k*k+f*f),T=Math.sqrt(S*S+g*g),h=Math.abs(k)+Math.abs(f)===0?0:Math.atan2(f,k);h+=(h<0)*2*Math.PI;let _=Math.abs(S)+Math.abs(g)===0?0:Math.atan2(g,S);_+=(_<0)*2*Math.PI;let y=p-u,v=T-b,A=b*T===0?0:_-h;A-=(A>Math.PI)*2*Math.PI,A+=(A<-Math.PI)*2*Math.PI;let d=2*Math.sqrt(b*T)*Math.sin(A/2),D=(u+p)/2,E=(b+T)/2,R;b*T===0?R=h+_:(R=(h+_)/2,R-=(Math.abs(h-_)>Math.PI)*Math.PI,R+=(R<0)*2*Math.PI);let z=Math.pow(D-50,2),I=1-.17*Math.cos(R-Math.PI/6)+.24*Math.cos(2*R)+.32*Math.cos(3*R+Math.PI/30)-.2*Math.cos(4*R-63*Math.PI/180),P=1+.015*z/Math.sqrt(20+z),L=1+.045*E,F=1+.015*E*I,B=30*Math.PI/180*Math.exp(-1*Math.pow((180/Math.PI*R-275)/25,2)),O=2*Math.sqrt(Math.pow(E,7)/(Math.pow(E,7)+Math.pow(25,7))),V=-1*Math.sin(2*B)*O;return Math.sqrt(Math.pow(y/(e*P),2)+Math.pow(v/(r*L),2)+Math.pow(d/(t*F),2)+V*v/(r*L)*d/(t*F))}},IW=(e=1,r=1)=>{let t=Pt("lab65");return(n,a)=>{let o=t(n),i=o.l,l=o.a,u=o.b,s=Math.sqrt(l*l+u*u),f=Math.atan2(u,l);f=f+2*Math.PI*(f<0);let c=t(a),p=c.l,x=c.a,g=c.b,w=Math.sqrt(x*x+g*g),M=Math.pow(i-p,2),m=Math.pow(s-w,2),k=Math.pow(l-x,2)+Math.pow(u-g,2)-m,S=Math.sqrt(Math.pow(s,4)/(Math.pow(s,4)+1900)),b=f>=164/180*Math.PI&&f<=345/180*Math.PI?.56+Math.abs(.2*Math.cos(f+168/180*Math.PI)):.36+Math.abs(.4*Math.cos(f+35/180*Math.PI)),T=i<16?.511:.040975*i/(1+.01765*i),h=.0638*s/(1+.0131*s)+.638,_=h*(S*b+1-S);return Math.sqrt(M/Math.pow(e*T,2)+m/Math.pow(r*h,2)+k/Math.pow(_,2))}},zW=()=>{let e=Pt("lab65");return(r,t)=>{let n=e(r),a=e(t),o=n.l-a.l,i=n.a-a.a,l=n.b-a.b;return Math.abs(o)+Math.sqrt(i*i+l*l)}},NW=()=>E0("yiq",[.5053,.299,.1957]),qW=()=>E0("itp",[518400,129600,518400]),Qi=e=>{let r=e.reduce((n,a)=>{if(a!==void 0){let o=a*Math.PI/180;n.sin+=Math.sin(o),n.cos+=Math.cos(o)}return n},{sin:0,cos:0}),t=Math.atan2(r.sin,r.cos)*180/Math.PI;return t<0?360+t:t},ew=e=>{let r=e.filter(t=>t!==void 0);return r.length?r.reduce((t,n)=>t+n,0)/r.length:void 0},mg=e=>typeof e=="function";function BW(e,r="rgb",t){let n=na(r),a=e.map(Pt(r));return n.channels.reduce((o,i)=>{let l=a.map(u=>u[i]).filter(u=>u!==void 0);if(l.length){let u;mg(t)?u=t:t&&mg(t[i])?u=t[i]:n.average&&mg(n.average[i])?u=n.average[i]:u=ew,o[i]=u(l,i)}return o},{mode:r})}var OW={mode:"cubehelix",channels:["h","s","l","alpha"],parse:["--cubehelix"],serialize:"--cubehelix",ranges:{h:[0,360],s:[0,4.614],l:[0,1]},fromMode:{rgb:K7},toMode:{rgb:Q7},interpolate:{h:{use:_r,fixup:Ki},s:_r,l:_r,alpha:{use:_r,fixup:xn}},difference:{h:Tf},average:{h:Qi}},rw=OW,UW=({l:e,a:r,b:t,alpha:n},a="lch")=>{r===void 0&&(r=0),t===void 0&&(t=0);let o=Math.sqrt(r*r+t*t),i={mode:a,l:e,c:o};return o&&(i.h=Gn(Math.atan2(t,r)*180/Math.PI)),n!==void 0&&(i.alpha=n),i},Eo=UW,HW=({l:e,c:r,h:t,alpha:n},a="lab")=>{t===void 0&&(t=0);let o={mode:a,l:e,a:r?r*Math.cos(t/180*Math.PI):0,b:r?r*Math.sin(t/180*Math.PI):0};return n!==void 0&&(o.alpha=n),o},Lo=HW,tw=Math.pow(29,3)/Math.pow(3,3),nw=Math.pow(6,3)/Math.pow(29,3),bn={X:.3457/.3585,Y:1,Z:(1-.3457-.3585)/.3585},k0={X:.3127/.329,Y:1,Z:(1-.3127-.329)/.329},Vbe=Math.pow(29,3)/Math.pow(3,3),Gbe=Math.pow(6,3)/Math.pow(29,3),bg=e=>Math.pow(e,3)>nw?Math.pow(e,3):(116*e-16)/tw,VW=({l:e,a:r,b:t,alpha:n})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let a=(e+16)/116,o=r/500+a,i=a-t/200,l={mode:"xyz65",x:bg(o)*k0.X,y:bg(a)*k0.Y,z:bg(i)*k0.Z};return n!==void 0&&(l.alpha=n),l},s3=VW,GW=e=>nl(s3(e)),kf=GW,xg=e=>e>nw?Math.cbrt(e):(tw*e+16)/116,YW=({x:e,y:r,z:t,alpha:n})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let a=xg(e/k0.X),o=xg(r/k0.Y),i=xg(t/k0.Z),l={mode:"lab65",l:116*o-16,a:500*(a-o),b:200*(o-i)};return n!==void 0&&(l.alpha=n),l},u3=YW,XW=e=>{let r=u3(tl(e));return e.r===e.b&&e.b===e.g&&(r.a=r.b=0),r},Sf=XW,lh=1,aw=1,Mf=26/180*Math.PI,sh=Math.cos(Mf),uh=Math.sin(Mf),iw=100/Math.log(139/100),WW=({l:e,c:r,h:t,alpha:n})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let a={mode:"lab65",l:(Math.exp(e*lh/iw)-1)/.0039},o=(Math.exp(.0435*r*aw*lh)-1)/.075,i=o*Math.cos(t/180*Math.PI-Mf),l=o*Math.sin(t/180*Math.PI-Mf);return a.a=i*sh-l/.83*uh,a.b=i*uh+l/.83*sh,n!==void 0&&(a.alpha=n),a},fh=WW,ZW=({l:e,a:r,b:t,alpha:n})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let a=r*sh+t*uh,o=.83*(t*sh-r*uh),i=Math.sqrt(a*a+o*o),l={mode:"dlch",l:iw/lh*Math.log(1+.0039*e),c:Math.log(1+.075*i)/(.0435*aw*lh)};return l.c&&(l.h=Gn((Math.atan2(o,a)+Mf)/Math.PI*180)),n!==void 0&&(l.alpha=n),l},ch=ZW,D7=e=>fh(Eo(e,"dlch")),R7=e=>Lo(ch(e),"dlab"),JW={mode:"dlab",parse:["--din99o-lab"],serialize:"--din99o-lab",toMode:{lab65:D7,rgb:e=>kf(D7(e))},fromMode:{lab65:R7,rgb:e=>R7(Sf(e))},channels:["l","a","b","alpha"],ranges:{l:[0,100],a:[-40.09,45.501],b:[-40.469,44.344]},interpolate:{l:_r,a:_r,b:_r,alpha:{use:_r,fixup:xn}}},ow=JW,$W={mode:"dlch",parse:["--din99o-lch"],serialize:"--din99o-lch",toMode:{lab65:fh,dlab:e=>Lo(e,"dlab"),rgb:e=>kf(fh(e))},fromMode:{lab65:ch,dlab:e=>Eo(e,"dlch"),rgb:e=>ch(Sf(e))},channels:["l","c","h","alpha"],ranges:{l:[0,100],c:[0,51.484],h:[0,360]},interpolate:{l:_r,c:_r,h:{use:_r,fixup:Ki},alpha:{use:_r,fixup:xn}},difference:{h:Af},average:{h:Qi}},lw=$W;function sw({h:e,s:r,i:t,alpha:n}){e=Gn(e!==void 0?e:0),r===void 0&&(r=0),t===void 0&&(t=0);let a=Math.abs(e/60%2-1),o;switch(Math.floor(e/60)){case 0:o={r:t*(1+r*(3/(2-a)-1)),g:t*(1+r*(3*(1-a)/(2-a)-1)),b:t*(1-r)};break;case 1:o={r:t*(1+r*(3*(1-a)/(2-a)-1)),g:t*(1+r*(3/(2-a)-1)),b:t*(1-r)};break;case 2:o={r:t*(1-r),g:t*(1+r*(3/(2-a)-1)),b:t*(1+r*(3*(1-a)/(2-a)-1))};break;case 3:o={r:t*(1-r),g:t*(1+r*(3*(1-a)/(2-a)-1)),b:t*(1+r*(3/(2-a)-1))};break;case 4:o={r:t*(1+r*(3*(1-a)/(2-a)-1)),g:t*(1-r),b:t*(1+r*(3/(2-a)-1))};break;case 5:o={r:t*(1+r*(3/(2-a)-1)),g:t*(1-r),b:t*(1+r*(3*(1-a)/(2-a)-1))};break;default:o={r:t*(1-r),g:t*(1-r),b:t*(1-r)}}return o.mode="rgb",n!==void 0&&(o.alpha=n),o}function uw({r:e,g:r,b:t,alpha:n}){e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let a=Math.max(e,r,t),o=Math.min(e,r,t),i={mode:"hsi",s:e+r+t===0?0:1-3*o/(e+r+t),i:(e+r+t)/3};return a-o!==0&&(i.h=(a===e?(r-t)/(a-o)+(r{switch(r){case"deg":return+e;case"rad":return e/Math.PI*180;case"grad":return e/10*9;case"turn":return e*360}},jW=QW,eZ=new RegExp(`^hsla?\\(\\s*${$X}${S0}${_f}${S0}${_f}\\s*(?:,\\s*${o3}\\s*)?\\)$`),rZ=e=>{let r=e.match(eZ);if(!r)return;let t={mode:"hsl"};return r[3]!==void 0?t.h=+r[3]:r[1]!==void 0&&r[2]!==void 0&&(t.h=jW(r[1],r[2])),r[4]!==void 0&&(t.s=Math.min(Math.max(0,r[4]/100),1)),r[5]!==void 0&&(t.l=Math.min(Math.max(0,r[5]/100),1)),r[6]!==void 0?t.alpha=Math.max(0,Math.min(1,r[6]/100)):r[7]!==void 0&&(t.alpha=Math.max(0,Math.min(1,+r[7]))),t},hw=rZ;function tZ(e,r){if(!r||r[0]!=="hsl"&&r[0]!=="hsla")return;let t={mode:"hsl"},[,n,a,o,i]=r;if(n.type!==yr.None){if(n.type===yr.Percentage)return;t.h=n.value}if(a.type!==yr.None){if(a.type===yr.Hue)return;t.s=a.value/100}if(o.type!==yr.None){if(o.type===yr.Hue)return;t.l=o.value/100}return i.type!==yr.None&&(t.alpha=Math.min(1,Math.max(0,i.type===yr.Number?i.value:i.value/100))),t}var dw=tZ,nZ={mode:"hsl",toMode:{rgb:cw},fromMode:{rgb:vw},channels:["h","s","l","alpha"],ranges:{h:[0,360]},gamut:"rgb",parse:[dw,hw],serialize:e=>`hsl(${e.h!==void 0?e.h:"none"} ${e.s!==void 0?e.s*100+"%":"none"} ${e.l!==void 0?e.l*100+"%":"none"}${e.alpha<1?` / ${e.alpha}`:""})`,interpolate:{h:{use:_r,fixup:Ki},s:_r,l:_r,alpha:{use:_r,fixup:xn}},difference:{h:Tf},average:{h:Qi}},f3=nZ;function c3({h:e,s:r,v:t,alpha:n}){e=Gn(e!==void 0?e:0),r===void 0&&(r=0),t===void 0&&(t=0);let a=Math.abs(e/60%2-1),o;switch(Math.floor(e/60)){case 0:o={r:t,g:t*(1-r*a),b:t*(1-r)};break;case 1:o={r:t*(1-r*a),g:t,b:t*(1-r)};break;case 2:o={r:t*(1-r),g:t,b:t*(1-r*a)};break;case 3:o={r:t*(1-r),g:t*(1-r*a),b:t};break;case 4:o={r:t*(1-r*a),g:t*(1-r),b:t};break;case 5:o={r:t,g:t*(1-r),b:t*(1-r*a)};break;default:o={r:t*(1-r),g:t*(1-r),b:t*(1-r)}}return o.mode="rgb",n!==void 0&&(o.alpha=n),o}function v3({r:e,g:r,b:t,alpha:n}){e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let a=Math.max(e,r,t),o=Math.min(e,r,t),i={mode:"hsv",s:a===0?0:1-o/a,v:a};return a-o!==0&&(i.h=(a===e?(r-t)/(a-o)+(r1){let a=r+t;r/=a,t/=a}return c3({h:e,s:t===1?1:1-r/(1-t),v:1-t,alpha:n})}function gw(e){let r=v3(e);if(r===void 0)return;let t=r.s!==void 0?r.s:0,n=r.v!==void 0?r.v:0,a={mode:"hwb",w:(1-t)*n,b:1-n};return r.h!==void 0&&(a.h=r.h),r.alpha!==void 0&&(a.alpha=r.alpha),a}function iZ(e,r){if(!r||r[0]!=="hwb")return;let t={mode:"hwb"},[,n,a,o,i]=r;if(n.type!==yr.None){if(n.type===yr.Percentage)return;t.h=n.value}if(a.type!==yr.None){if(a.type===yr.Hue)return;t.w=a.value/100}if(o.type!==yr.None){if(o.type===yr.Hue)return;t.b=o.value/100}return i.type!==yr.None&&(t.alpha=Math.min(1,Math.max(0,i.type===yr.Number?i.value:i.value/100))),t}var yw=iZ,oZ={mode:"hwb",toMode:{rgb:pw},fromMode:{rgb:gw},channels:["h","w","b","alpha"],ranges:{h:[0,360]},gamut:"rgb",parse:[yw],serialize:e=>`hwb(${e.h!==void 0?e.h:"none"} ${e.w!==void 0?e.w*100+"%":"none"} ${e.b!==void 0?e.b*100+"%":"none"}${e.alpha<1?` / ${e.alpha}`:""})`,interpolate:{h:{use:_r,fixup:Ki},w:_r,b:_r,alpha:{use:_r,fixup:xn}},difference:{h:j7},average:{h:Qi}},mw=oZ,bw=203,gh=.1593017578125,xw=78.84375,yh=.8359375,mh=18.8515625,bh=18.6875;function _g(e){if(e<0)return 0;let r=Math.pow(e,1/xw);return 1e4*Math.pow(Math.max(0,r-yh)/(mh-bh*r),1/gh)}function wg(e){if(e<0)return 0;let r=Math.pow(e/1e4,gh);return Math.pow((yh+mh*r)/(1+bh*r),xw)}var Mg=e=>Math.max(e/bw,0),lZ=({i:e,t:r,p:t,alpha:n})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let a=_g(e+.008609037037932761*r+.11102962500302593*t),o=_g(e-.00860903703793275*r-.11102962500302599*t),i=_g(e+.5600313357106791*r-.32062717498731885*t),l={mode:"xyz65",x:Mg(2.070152218389422*a-1.3263473389671556*o+.2066510476294051*i),y:Mg(.3647385209748074*a+.680566024947227*o-.0453045459220346*i),z:Mg(-.049747207535812*a-.0492609666966138*o+1.1880659249923042*i)};return n!==void 0&&(l.alpha=n),l},Hg=lZ,Tg=(e=0)=>Math.max(e*bw,0),sZ=({x:e,y:r,z:t,alpha:n})=>{let a=Tg(e),o=Tg(r),i=Tg(t),l=wg(.3592832590121217*a+.6976051147779502*o-.0358915932320289*i),u=wg(-.1920808463704995*a+1.1004767970374323*o+.0753748658519118*i),s=wg(.0070797844607477*a+.0748396662186366*o+.8433265453898765*i),f=.5*l+.5*u,c=1.61376953125*l-3.323486328125*u+1.709716796875*s,p=4.378173828125*l-4.24560546875*u-.132568359375*s,x={mode:"itp",i:f,t:c,p};return n!==void 0&&(x.alpha=n),x},Vg=sZ,uZ={mode:"itp",channels:["i","t","p","alpha"],parse:["--ictcp"],serialize:"--ictcp",toMode:{xyz65:Hg,rgb:e=>nl(Hg(e))},fromMode:{xyz65:Vg,rgb:e=>Vg(tl(e))},ranges:{i:[0,.581],t:[-.369,.272],p:[-.164,.331]},interpolate:{i:_r,t:_r,p:_r,alpha:{use:_r,fixup:xn}}},_w=uZ,fZ=134.03437499999998,cZ=16295499532821565e-27,Ag=e=>{if(e<0)return 0;let r=Math.pow(e/1e4,gh);return Math.pow((yh+mh*r)/(1+bh*r),fZ)},kg=(e=0)=>Math.max(e*203,0),vZ=({x:e,y:r,z:t,alpha:n})=>{e=kg(e),r=kg(r),t=kg(t);let a=1.15*e-.15*t,o=.66*r+.34*e,i=Ag(.41478972*a+.579999*o+.014648*t),l=Ag(-.20151*a+1.120649*o+.0531008*t),u=Ag(-.0166008*a+.2648*o+.6684799*t),s=(i+l)/2,f={mode:"jab",j:.44*s/(1-.56*s)-cZ,a:3.524*i-4.066708*l+.542708*u,b:.199076*i+1.096799*l-1.295875*u};return n!==void 0&&(f.alpha=n),f},d3=vZ,hZ=134.03437499999998,F7=16295499532821565e-27,Sg=e=>{if(e<0)return 0;let r=Math.pow(e,1/hZ);return 1e4*Math.pow((yh-r)/(bh*r-mh),1/gh)},Cg=e=>e/203,dZ=({j:e,a:r,b:t,alpha:n})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let a=(e+F7)/(.44+.56*(e+F7)),o=Sg(a+.13860504*r+.058047316*t),i=Sg(a-.13860504*r-.058047316*t),l=Sg(a-.096019242*r-.8118919*t),u={mode:"xyz65",x:Cg(1.661373024652174*o-.914523081304348*i+.23136208173913045*l),y:Cg(-.3250758611844533*o+1.571847026732543*i-.21825383453227928*l),z:Cg(-.090982811*o-.31272829*i+1.5227666*l)};return n!==void 0&&(u.alpha=n),u},p3=dZ,pZ=e=>{let r=d3(tl(e));return e.r===e.b&&e.b===e.g&&(r.a=r.b=0),r},g3=pZ,gZ=e=>nl(p3(e)),y3=gZ,yZ={mode:"jab",channels:["j","a","b","alpha"],parse:["--jzazbz"],serialize:"--jzazbz",fromMode:{rgb:g3,xyz65:d3},toMode:{rgb:y3,xyz65:p3},ranges:{j:[0,.222],a:[-.109,.129],b:[-.185,.134]},interpolate:{j:_r,a:_r,b:_r,alpha:{use:_r,fixup:xn}}},ww=yZ,mZ=({j:e,a:r,b:t,alpha:n})=>{r===void 0&&(r=0),t===void 0&&(t=0);let a=Math.sqrt(r*r+t*t),o={mode:"jch",j:e,c:a};return a&&(o.h=Gn(Math.atan2(t,r)*180/Math.PI)),n!==void 0&&(o.alpha=n),o},Gg=mZ,bZ=({j:e,c:r,h:t,alpha:n})=>{t===void 0&&(t=0);let a={mode:"jab",j:e,a:r?r*Math.cos(t/180*Math.PI):0,b:r?r*Math.sin(t/180*Math.PI):0};return n!==void 0&&(a.alpha=n),a},Yg=bZ,xZ={mode:"jch",parse:["--jzczhz"],serialize:"--jzczhz",toMode:{jab:Yg,rgb:e=>y3(Yg(e))},fromMode:{rgb:e=>Gg(g3(e)),jab:Gg},channels:["j","c","h","alpha"],ranges:{j:[0,.221],c:[0,.19],h:[0,360]},interpolate:{h:{use:_r,fixup:Ki},c:_r,j:_r,alpha:{use:_r,fixup:xn}},difference:{h:Af},average:{h:Qi}},Mw=xZ,xh=Math.pow(29,3)/Math.pow(3,3),m3=Math.pow(6,3)/Math.pow(29,3),Eg=e=>Math.pow(e,3)>m3?Math.pow(e,3):(116*e-16)/xh,_Z=({l:e,a:r,b:t,alpha:n})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let a=(e+16)/116,o=r/500+a,i=a-t/200,l={mode:"xyz50",x:Eg(o)*bn.X,y:Eg(a)*bn.Y,z:Eg(i)*bn.Z};return n!==void 0&&(l.alpha=n),l},_h=_Z,wZ=({x:e,y:r,z:t,alpha:n})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let a=ps({r:e*3.1341359569958707-r*1.6173863321612538-.4906619460083532*t,g:e*-.978795502912089+r*1.916254567259524+.03344273116131949*t,b:e*.07195537988411677-r*.2289768264158322+1.405386058324125*t});return n!==void 0&&(a.alpha=n),a},L0=wZ,MZ=e=>L0(_h(e)),b3=MZ,TZ=e=>{let{r,g:t,b:n,alpha:a}=ds(e),o={mode:"xyz50",x:.436065742824811*r+.3851514688337912*t+.14307845442264197*n,y:.22249319175623702*r+.7168870538238823*t+.06061979053616537*n,z:.013923904500943465*r+.09708128566574634*t+.7140993584005155*n};return a!==void 0&&(o.alpha=a),o},D0=TZ,Lg=e=>e>m3?Math.cbrt(e):(xh*e+16)/116,AZ=({x:e,y:r,z:t,alpha:n})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let a=Lg(e/bn.X),o=Lg(r/bn.Y),i=Lg(t/bn.Z),l={mode:"lab",l:116*o-16,a:500*(a-o),b:200*(o-i)};return n!==void 0&&(l.alpha=n),l},wh=AZ,kZ=e=>{let r=wh(D0(e));return e.r===e.b&&e.b===e.g&&(r.a=r.b=0),r},x3=kZ;function SZ(e,r){if(!r||r[0]!=="lab")return;let t={mode:"lab"},[,n,a,o,i]=r;if(!(n.type===yr.Hue||a.type===yr.Hue||o.type===yr.Hue))return n.type!==yr.None&&(t.l=Math.min(Math.max(0,n.value),100)),a.type!==yr.None&&(t.a=a.type===yr.Number?a.value:a.value*125/100),o.type!==yr.None&&(t.b=o.type===yr.Number?o.value:o.value*125/100),i.type!==yr.None&&(t.alpha=Math.min(1,Math.max(0,i.type===yr.Number?i.value:i.value/100))),t}var Tw=SZ,CZ={mode:"lab",toMode:{xyz50:_h,rgb:b3},fromMode:{xyz50:wh,rgb:x3},channels:["l","a","b","alpha"],ranges:{l:[0,100],a:[-125,125],b:[-125,125]},parse:[Tw],serialize:e=>`lab(${e.l!==void 0?e.l:"none"} ${e.a!==void 0?e.a:"none"} ${e.b!==void 0?e.b:"none"}${e.alpha<1?` / ${e.alpha}`:""})`,interpolate:{l:_r,a:_r,b:_r,alpha:{use:_r,fixup:xn}}},Mh=CZ,EZ=Bt(_t({},Mh),{mode:"lab65",parse:["--lab-d65"],serialize:"--lab-d65",toMode:{xyz65:s3,rgb:kf},fromMode:{xyz65:u3,rgb:Sf},ranges:{l:[0,100],a:[-125,125],b:[-125,125]}}),Aw=EZ;function LZ(e,r){if(!r||r[0]!=="lch")return;let t={mode:"lch"},[,n,a,o,i]=r;if(n.type!==yr.None){if(n.type===yr.Hue)return;t.l=Math.min(Math.max(0,n.value),100)}if(a.type!==yr.None&&(t.c=Math.max(0,a.type===yr.Number?a.value:a.value*150/100)),o.type!==yr.None){if(o.type===yr.Percentage)return;t.h=o.value}return i.type!==yr.None&&(t.alpha=Math.min(1,Math.max(0,i.type===yr.Number?i.value:i.value/100))),t}var kw=LZ,DZ={mode:"lch",toMode:{lab:Lo,rgb:e=>b3(Lo(e))},fromMode:{rgb:e=>Eo(x3(e)),lab:Eo},channels:["l","c","h","alpha"],ranges:{l:[0,100],c:[0,150],h:[0,360]},parse:[kw],serialize:e=>`lch(${e.l!==void 0?e.l:"none"} ${e.c!==void 0?e.c:"none"} ${e.h!==void 0?e.h:"none"}${e.alpha<1?` / ${e.alpha}`:""})`,interpolate:{h:{use:_r,fixup:Ki},c:_r,l:_r,alpha:{use:_r,fixup:xn}},difference:{h:Af},average:{h:Qi}},Th=DZ,RZ=Bt(_t({},Th),{mode:"lch65",parse:["--lch-d65"],serialize:"--lch-d65",toMode:{lab65:e=>Lo(e,"lab65"),rgb:e=>kf(Lo(e,"lab65"))},fromMode:{rgb:e=>Eo(Sf(e),"lch65"),lab65:e=>Eo(e,"lch65")},ranges:{l:[0,100],c:[0,150],h:[0,360]}}),Sw=RZ,FZ=({l:e,u:r,v:t,alpha:n})=>{r===void 0&&(r=0),t===void 0&&(t=0);let a=Math.sqrt(r*r+t*t),o={mode:"lchuv",l:e,c:a};return a&&(o.h=Gn(Math.atan2(t,r)*180/Math.PI)),n!==void 0&&(o.alpha=n),o},_3=FZ,PZ=({l:e,c:r,h:t,alpha:n})=>{t===void 0&&(t=0);let a={mode:"luv",l:e,u:r?r*Math.cos(t/180*Math.PI):0,v:r?r*Math.sin(t/180*Math.PI):0};return n!==void 0&&(a.alpha=n),a},w3=PZ,Cw=(e,r,t)=>4*e/(e+15*r+3*t),Ew=(e,r,t)=>9*r/(e+15*r+3*t),IZ=Cw(bn.X,bn.Y,bn.Z),zZ=Ew(bn.X,bn.Y,bn.Z),NZ=e=>e<=m3?xh*e:116*Math.cbrt(e)-16,qZ=({x:e,y:r,z:t,alpha:n})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let a=NZ(r/bn.Y),o=Cw(e,r,t),i=Ew(e,r,t);!isFinite(o)||!isFinite(i)?a=o=i=0:(o=13*a*(o-IZ),i=13*a*(i-zZ));let l={mode:"luv",l:a,u:o,v:i};return n!==void 0&&(l.alpha=n),l},vh=qZ,BZ=(e,r,t)=>4*e/(e+15*r+3*t),OZ=(e,r,t)=>9*r/(e+15*r+3*t),UZ=BZ(bn.X,bn.Y,bn.Z),HZ=OZ(bn.X,bn.Y,bn.Z),VZ=({l:e,u:r,v:t,alpha:n})=>{if(e===void 0&&(e=0),e===0)return{mode:"xyz50",x:0,y:0,z:0};r===void 0&&(r=0),t===void 0&&(t=0);let a=r/(13*e)+UZ,o=t/(13*e)+HZ,i=bn.Y*(e<=8?e/xh:Math.pow((e+16)/116,3)),l=i*(9*a)/(4*o),u=i*(12-3*a-20*o)/(4*o),s={mode:"xyz50",x:l,y:i,z:u};return n!==void 0&&(s.alpha=n),s},hh=VZ,GZ=e=>_3(vh(D0(e))),YZ=e=>L0(hh(w3(e))),XZ={mode:"lchuv",toMode:{luv:w3,rgb:YZ},fromMode:{rgb:GZ,luv:_3},channels:["l","c","h","alpha"],parse:["--lchuv"],serialize:"--lchuv",ranges:{l:[0,100],c:[0,176.956],h:[0,360]},interpolate:{h:{use:_r,fixup:Ki},c:_r,l:_r,alpha:{use:_r,fixup:xn}},difference:{h:Af},average:{h:Qi}},Lw=XZ,WZ=Bt(_t({},hs),{mode:"lrgb",toMode:{rgb:ps},fromMode:{rgb:ds},parse:["srgb-linear"],serialize:"srgb-linear"}),Dw=WZ,ZZ={mode:"luv",toMode:{xyz50:hh,rgb:e=>L0(hh(e))},fromMode:{xyz50:vh,rgb:e=>vh(D0(e))},channels:["l","u","v","alpha"],parse:["--luv"],serialize:"--luv",ranges:{l:[0,100],u:[-84.936,175.042],v:[-125.882,87.243]},interpolate:{l:_r,u:_r,v:_r,alpha:{use:_r,fixup:xn}}},Rw=ZZ,JZ=({r:e,g:r,b:t,alpha:n})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let a=Math.cbrt(.412221469470763*e+.5363325372617348*r+.0514459932675022*t),o=Math.cbrt(.2119034958178252*e+.6806995506452344*r+.1073969535369406*t),i=Math.cbrt(.0883024591900564*e+.2817188391361215*r+.6299787016738222*t),l={mode:"oklab",l:.210454268309314*a+.7936177747023054*o-.0040720430116193*i,a:1.9779985324311684*a-2.42859224204858*o+.450593709617411*i,b:.0259040424655478*a+.7827717124575296*o-.8086757549230774*i};return n!==void 0&&(l.alpha=n),l},M3=JZ,$Z=e=>{let r=M3(ds(e));return e.r===e.b&&e.b===e.g&&(r.a=r.b=0),r},Cf=$Z,KZ=({l:e,a:r,b:t,alpha:n})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let a=Math.pow(e+.3963377773761749*r+.2158037573099136*t,3),o=Math.pow(e-.1055613458156586*r-.0638541728258133*t,3),i=Math.pow(e-.0894841775298119*r-1.2914855480194092*t,3),l={mode:"lrgb",r:4.076741636075957*a-3.3077115392580616*o+.2309699031821044*i,g:-1.2684379732850317*a+2.6097573492876887*o-.3413193760026573*i,b:-.0041960761386756*a-.7034186179359362*o+1.7076146940746117*i};return n!==void 0&&(l.alpha=n),l},R0=KZ,QZ=e=>ps(R0(e)),Ef=QZ;function Xg(e){let n=1.170873786407767;return .5*(n*e-.206+Math.sqrt((n*e-.206)*(n*e-.206)+4*.03*n*e))}function dh(e){return(e*e+.206*e)/(1.170873786407767*(e+.03))}function jZ(e,r){let t,n,a,o,i,l,u,s;-1.88170328*e-.80936493*r>1?(t=1.19086277,n=1.76576728,a=.59662641,o=.75515197,i=.56771245,l=4.0767416621,u=-3.3077115913,s=.2309699292):1.81444104*e-1.19445276*r>1?(t=.73956515,n=-.45954404,a=.08285427,o=.1254107,i=.14503204,l=-1.2684380046,u=2.6097574011,s=-.3413193965):(t=1.35733652,n=-.00915799,a=-1.1513021,o=-.50559606,i=.00692167,l=-.0041960863,u=-.7034186147,s=1.707614701);let f=t+n*e+a*r+o*e*e+i*e*r,c=.3963377774*e+.2158037573*r,p=-.1055613458*e-.0638541728*r,x=-.0894841775*e-1.291485548*r;{let g=1+f*c,w=1+f*p,M=1+f*x,m=g*g*g,k=w*w*w,S=M*M*M,b=3*c*g*g,T=3*p*w*w,h=3*x*M*M,_=6*c*c*g,y=6*p*p*w,v=6*x*x*M,A=l*m+u*k+s*S,d=l*b+u*T+s*h,D=l*_+u*y+s*v;f=f-A*d/(d*d-.5*A*D)}return f}function T3(e,r){let t=jZ(e,r),n=R0({l:1,a:t*e,b:t*r}),a=Math.cbrt(1/Math.max(n.r,n.g,n.b)),o=a*t;return[a,o]}function eJ(e,r,t,n,a,o=null){o||(o=T3(e,r));let i;if((t-a)*o[1]-(o[0]-a)*n<=0)i=o[1]*a/(n*o[0]+o[1]*(a-t));else{i=o[1]*(a-1)/(n*(o[0]-1)+o[1]*(a-t));{let l=t-a,u=n,s=.3963377774*e+.2158037573*r,f=-.1055613458*e-.0638541728*r,c=-.0894841775*e-1.291485548*r,p=l+u*s,x=l+u*f,g=l+u*c;{let w=a*(1-i)+i*t,M=i*n,m=w+M*s,k=w+M*f,S=w+M*c,b=m*m*m,T=k*k*k,h=S*S*S,_=3*p*m*m,y=3*x*k*k,v=3*g*S*S,A=6*p*p*m,d=6*x*x*k,D=6*g*g*S,E=4.0767416621*b-3.3077115913*T+.2309699292*h-1,R=4.0767416621*_-3.3077115913*y+.2309699292*v,z=4.0767416621*A-3.3077115913*d+.2309699292*D,I=R/(R*R-.5*E*z),P=-E*I,L=-1.2684380046*b+2.6097574011*T-.3413193965*h-1,F=-1.2684380046*_+2.6097574011*y-.3413193965*v,B=-1.2684380046*A+2.6097574011*d-.3413193965*D,O=F/(F*F-.5*L*B),V=-L*O,K=-.0041960863*b-.7034186147*T+1.707614701*h-1,j=-.0041960863*_-.7034186147*y+1.707614701*v,G=-.0041960863*A-.7034186147*d+1.707614701*D,q=j/(j*j-.5*K*G),J=-K*q;P=I>=0?P:1e6,V=O>=0?V:1e6,J=q>=0?J:1e6,i+=Math.min(P,Math.min(V,J))}}}return i}function A3(e,r,t=null){t||(t=T3(e,r));let n=t[0],a=t[1];return[a/n,a/(1-n)]}function Fw(e,r,t){let n=T3(r,t),a=eJ(r,t,e,1,e,n),o=A3(r,t,n),i=.11516993+1/(7.4477897+4.1590124*t+r*(-2.19557347+1.75198401*t+r*(-2.13704948-10.02301043*t+r*(-4.24894561+5.38770819*t+4.69891013*r)))),l=.11239642+1/(1.6132032-.68124379*t+r*(.40370612+.90148123*t+r*(-.27087943+.6122399*t+r*(.00299215-.45399568*t-.14661872*r)))),u=a/Math.min(e*o[0],(1-e)*o[1]),s=e*i,f=(1-e)*l,c=.9*u*Math.sqrt(Math.sqrt(1/(1/(s*s*s*s)+1/(f*f*f*f))));return s=e*.4,f=(1-e)*.8,[Math.sqrt(1/(1/(s*s)+1/(f*f))),c,a]}function Wg(e){let r=e.l!==void 0?e.l:0,t=e.a!==void 0?e.a:0,n=e.b!==void 0?e.b:0,a={mode:"okhsl",l:Xg(r)};e.alpha!==void 0&&(a.alpha=e.alpha);let o=Math.sqrt(t*t+n*n);if(!o)return a.s=0,a;let[i,l,u]=Fw(r,t/o,n/o),s;if(oWg(Cf(e))},toMode:{oklab:Zg,rgb:e=>Ef(Zg(e))}}),Pw=rJ;function Jg(e){let r=e.l!==void 0?e.l:0,t=e.a!==void 0?e.a:0,n=e.b!==void 0?e.b:0,a=Math.sqrt(t*t+n*n),o=a?t/a:1,i=a?n/a:1,[l,u]=A3(o,i),s=.5,f=1-s/l,c=u/(a+r*u),p=c*r,x=c*a,g=dh(p),w=x*g/p,M=R0({l:g,a:o*w,b:i*w}),m=Math.cbrt(1/Math.max(M.r,M.g,M.b,0));r=r/m,a=a/m*Xg(r)/r,r=Xg(r);let k={mode:"okhsv",s:a?(s+u)*x/(u*s+u*f*x):0,v:r?r/p:0};return k.s&&(k.h=Gn(Math.atan2(n,t)*180/Math.PI)),e.alpha!==void 0&&(k.alpha=e.alpha),k}function $g(e){let r={mode:"oklab"};e.alpha!==void 0&&(r.alpha=e.alpha);let t=e.h!==void 0?e.h:0,n=e.s!==void 0?e.s:0,a=e.v!==void 0?e.v:0,o=Math.cos(t/180*Math.PI),i=Math.sin(t/180*Math.PI),[l,u]=A3(o,i),s=.5,f=1-s/l,c=1-n*s/(s+u-u*f*n),p=n*u*s/(s+u-u*f*n),x=dh(c),g=p*x/c,w=R0({l:x,a:o*g,b:i*g}),M=Math.cbrt(1/Math.max(w.r,w.g,w.b,0)),m=dh(a*c),k=p*m/c;return r.l=m*M,r.a=k*o*M,r.b=k*i*M,r}var tJ=Bt(_t({},h3),{mode:"okhsv",channels:["h","s","v","alpha"],parse:["--okhsv"],serialize:"--okhsv",fromMode:{oklab:Jg,rgb:e=>Jg(Cf(e))},toMode:{oklab:$g,rgb:e=>Ef($g(e))}}),Iw=tJ;function nJ(e,r){if(!r||r[0]!=="oklab")return;let t={mode:"oklab"},[,n,a,o,i]=r;if(!(n.type===yr.Hue||a.type===yr.Hue||o.type===yr.Hue))return n.type!==yr.None&&(t.l=Math.min(Math.max(0,n.type===yr.Number?n.value:n.value/100),1)),a.type!==yr.None&&(t.a=a.type===yr.Number?a.value:a.value*.4/100),o.type!==yr.None&&(t.b=o.type===yr.Number?o.value:o.value*.4/100),i.type!==yr.None&&(t.alpha=Math.min(1,Math.max(0,i.type===yr.Number?i.value:i.value/100))),t}var zw=nJ,aJ=Bt(_t({},Mh),{mode:"oklab",toMode:{lrgb:R0,rgb:Ef},fromMode:{lrgb:M3,rgb:Cf},ranges:{l:[0,1],a:[-.4,.4],b:[-.4,.4]},parse:[zw],serialize:e=>`oklab(${e.l!==void 0?e.l:"none"} ${e.a!==void 0?e.a:"none"} ${e.b!==void 0?e.b:"none"}${e.alpha<1?` / ${e.alpha}`:""})`}),Nw=aJ;function iJ(e,r){if(!r||r[0]!=="oklch")return;let t={mode:"oklch"},[,n,a,o,i]=r;if(n.type!==yr.None){if(n.type===yr.Hue)return;t.l=Math.min(Math.max(0,n.type===yr.Number?n.value:n.value/100),1)}if(a.type!==yr.None&&(t.c=Math.max(0,a.type===yr.Number?a.value:a.value*.4/100)),o.type!==yr.None){if(o.type===yr.Percentage)return;t.h=o.value}return i.type!==yr.None&&(t.alpha=Math.min(1,Math.max(0,i.type===yr.Number?i.value:i.value/100))),t}var qw=iJ,oJ=Bt(_t({},Th),{mode:"oklch",toMode:{oklab:e=>Lo(e,"oklab"),rgb:e=>Ef(Lo(e,"oklab"))},fromMode:{rgb:e=>Eo(Cf(e),"oklch"),oklab:e=>Eo(e,"oklch")},parse:[qw],serialize:e=>`oklch(${e.l!==void 0?e.l:"none"} ${e.c!==void 0?e.c:"none"} ${e.h!==void 0?e.h:"none"}${e.alpha<1?` / ${e.alpha}`:""})`,ranges:{l:[0,1],c:[0,.4],h:[0,360]}}),Bw=oJ,lJ=e=>{let{r,g:t,b:n,alpha:a}=ds(e),o={mode:"xyz65",x:.486570948648216*r+.265667693169093*t+.1982172852343625*n,y:.2289745640697487*r+.6917385218365062*t+.079286914093745*n,z:0*r+.0451133818589026*t+1.043944368900976*n};return a!==void 0&&(o.alpha=a),o},Kg=lJ,sJ=({x:e,y:r,z:t,alpha:n})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let a=ps({r:e*2.4934969119414263-r*.9313836179191242-.402710784450717*t,g:e*-.8294889695615749+r*1.7626640603183465+.0236246858419436*t,b:e*.0358458302437845-r*.0761723892680418+.9568845240076871*t},"p3");return n!==void 0&&(a.alpha=n),a},Qg=sJ,uJ=Bt(_t({},hs),{mode:"p3",parse:["display-p3"],serialize:"display-p3",fromMode:{rgb:e=>Qg(tl(e)),xyz65:Qg},toMode:{rgb:e=>nl(Kg(e)),xyz65:Kg}}),Ow=uJ,Dg=e=>{let r=Math.abs(e);return r>=1/512?Math.sign(e)*Math.pow(r,1/1.8):16*e},fJ=({x:e,y:r,z:t,alpha:n})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let a={mode:"prophoto",r:Dg(e*1.3457868816471585-r*.2555720873797946-.0511018649755453*t),g:Dg(e*-.5446307051249019+r*1.5082477428451466+.0205274474364214*t),b:Dg(e*0+r*0+1.2119675456389452*t)};return n!==void 0&&(a.alpha=n),a},jg=fJ,Rg=(e=0)=>{let r=Math.abs(e);return r>=16/512?Math.sign(e)*Math.pow(r,1.8):e/16},cJ=e=>{let r=Rg(e.r),t=Rg(e.g),n=Rg(e.b),a={mode:"xyz50",x:.7977666449006423*r+.1351812974005331*t+.0313477341283922*n,y:.2880748288194013*r+.7118352342418731*t+899369387256e-16*n,z:0*r+0*t+.8251046025104602*n};return e.alpha!==void 0&&(a.alpha=e.alpha),a},e3=cJ,vJ=Bt(_t({},hs),{mode:"prophoto",parse:["prophoto-rgb"],serialize:"prophoto-rgb",fromMode:{xyz50:jg,rgb:e=>jg(D0(e))},toMode:{xyz50:e3,rgb:e=>L0(e3(e))}}),Uw=vJ,P7=1.09929682680944,hJ=.018053968510807,Fg=e=>{let r=Math.abs(e);return r>hJ?(Math.sign(e)||1)*(P7*Math.pow(r,.45)-(P7-1)):4.5*e},dJ=({x:e,y:r,z:t,alpha:n})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let a={mode:"rec2020",r:Fg(e*1.7166511879712683-r*.3556707837763925-.2533662813736599*t),g:Fg(e*-.6666843518324893+r*1.6164812366349395+.0157685458139111*t),b:Fg(e*.0176398574453108-r*.0427706132578085+.9421031212354739*t)};return n!==void 0&&(a.alpha=n),a},r3=dJ,I7=1.09929682680944,pJ=.018053968510807,Pg=(e=0)=>{let r=Math.abs(e);return r{let r=Pg(e.r),t=Pg(e.g),n=Pg(e.b),a={mode:"xyz65",x:.6369580483012911*r+.1446169035862083*t+.1688809751641721*n,y:.262700212011267*r+.6779980715188708*t+.059301716469862*n,z:0*r+.0280726930490874*t+1.0609850577107909*n};return e.alpha!==void 0&&(a.alpha=e.alpha),a},t3=gJ,yJ=Bt(_t({},hs),{mode:"rec2020",fromMode:{xyz65:r3,rgb:e=>r3(tl(e))},toMode:{xyz65:t3,rgb:e=>nl(t3(e))},parse:["rec2020"],serialize:"rec2020"}),Hw=yJ,cs=.0037930732552754493,Vw=Math.cbrt(cs),Ig=e=>Math.cbrt(e)-Vw,mJ=e=>{let{r,g:t,b:n,alpha:a}=ds(e),o=Ig(.3*r+.622*t+.078*n+cs),i=Ig(.23*r+.692*t+.078*n+cs),l=Ig(.2434226892454782*r+.2047674442449682*t+.5518098665095535*n+cs),u={mode:"xyb",x:(o-i)/2,y:(o+i)/2,b:l-(o+i)/2};return a!==void 0&&(u.alpha=a),u},Gw=mJ,zg=e=>Math.pow(e+Vw,3),bJ=({x:e,y:r,b:t,alpha:n})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let a=zg(e+r)-cs,o=zg(r-e)-cs,i=zg(t+r)-cs,l=ps({r:11.031566904639861*a-9.866943908131562*o-.16462299650829934*i,g:-3.2541473810744237*a+4.418770377582723*o-.16462299650829934*i,b:-3.6588512867136815*a+2.7129230459360922*o+1.9459282407775895*i});return n!==void 0&&(l.alpha=n),l},Yw=bJ,xJ={mode:"xyb",channels:["x","y","b","alpha"],parse:["--xyb"],serialize:"--xyb",toMode:{rgb:Yw},fromMode:{rgb:Gw},ranges:{x:[-.0154,.0281],y:[0,.8453],b:[-.2778,.388]},interpolate:{x:_r,y:_r,b:_r,alpha:{use:_r,fixup:xn}}},Xw=xJ,_J={mode:"xyz50",parse:["xyz-d50"],serialize:"xyz-d50",toMode:{rgb:L0,lab:wh},fromMode:{rgb:D0,lab:_h},channels:["x","y","z","alpha"],ranges:{x:[0,.964],y:[0,.999],z:[0,.825]},interpolate:{x:_r,y:_r,z:_r,alpha:{use:_r,fixup:xn}}},Ww=_J,wJ=e=>{let{x:r,y:t,z:n,alpha:a}=e;r===void 0&&(r=0),t===void 0&&(t=0),n===void 0&&(n=0);let o={mode:"xyz50",x:1.0479298208405488*r+.0229467933410191*t-.0501922295431356*n,y:.0296278156881593*r+.990434484573249*t-.0170738250293851*n,z:-.0092430581525912*r+.0150551448965779*t+.7518742899580008*n};return a!==void 0&&(o.alpha=a),o},Zw=wJ,MJ=e=>{let{x:r,y:t,z:n,alpha:a}=e;r===void 0&&(r=0),t===void 0&&(t=0),n===void 0&&(n=0);let o={mode:"xyz65",x:.9554734527042182*r-.0230985368742614*t+.0632593086610217*n,y:-.0283697069632081*r+1.0099954580058226*t+.021041398966943*n,z:.0123140016883199*r-.0205076964334779*t+1.3303659366080753*n};return a!==void 0&&(o.alpha=a),o},Jw=MJ,TJ={mode:"xyz65",toMode:{rgb:nl,xyz50:Zw},fromMode:{rgb:tl,xyz50:Jw},ranges:{x:[0,.95],y:[0,1],z:[0,1.088]},channels:["x","y","z","alpha"],parse:["xyz","xyz-d65"],serialize:"xyz-d65",interpolate:{x:_r,y:_r,z:_r,alpha:{use:_r,fixup:xn}}},$w=TJ,AJ=({r:e,g:r,b:t,alpha:n})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let a={mode:"yiq",y:.29889531*e+.58662247*r+.11448223*t,i:.59597799*e-.2741761*r-.32180189*t,q:.21147017*e-.52261711*r+.31114694*t};return n!==void 0&&(a.alpha=n),a},Kw=AJ,kJ=({y:e,i:r,q:t,alpha:n})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let a={mode:"rgb",r:e+.95608445*r+.6208885*t,g:e-.27137664*r-.6486059*t,b:e-1.10561724*r+1.70250126*t};return n!==void 0&&(a.alpha=n),a},Qw=kJ,SJ={mode:"yiq",toMode:{rgb:Qw},fromMode:{rgb:Kw},channels:["y","i","q","alpha"],parse:["--yiq"],serialize:"--yiq",ranges:{i:[-.595,.595],q:[-.522,.522]},interpolate:{y:_r,i:_r,q:_r,alpha:{use:_r,fixup:xn}}},jw=SJ,CJ=(e,r)=>Math.round(e*(r=Math.pow(10,r)))/r,EJ=(e=4)=>r=>typeof r=="number"?CJ(r,e):r,e8=EJ,xf=e8(2),wf=e=>Math.max(0,Math.min(1,e||0)),vs=e=>Math.round(wf(e)*255),k3=Pt("rgb"),LJ=Pt("hsl"),S3=e=>{if(e===void 0)return;let r=vs(e.r),t=vs(e.g),n=vs(e.b);return"#"+(1<<24|r<<16|t<<8|n).toString(16).slice(1)},r8=e=>{if(e===void 0)return;let r=vs(e.alpha!==void 0?e.alpha:1);return S3(e)+(256|r).toString(16).slice(1)},t8=e=>{if(e===void 0)return;let r=vs(e.r),t=vs(e.g),n=vs(e.b);return e.alpha===void 0||e.alpha===1?`rgb(${r}, ${t}, ${n})`:`rgba(${r}, ${t}, ${n}, ${xf(wf(e.alpha))})`},n8=e=>{if(e===void 0)return;let r=xf(e.h||0),t=xf(wf(e.s)*100)+"%",n=xf(wf(e.l)*100)+"%";return e.alpha===void 0||e.alpha===1?`hsl(${r}, ${t}, ${n})`:`hsla(${r}, ${t}, ${n}, ${xf(wf(e.alpha))})`},DJ=e=>{let r=_i(e);if(!r)return;let t=na(r.mode);if(!t.serialize||typeof t.serialize=="string"){let n=`color(${t.serialize||`--${r.mode}`} `;return t.channels.forEach((a,o)=>{a!=="alpha"&&(n+=(o?" ":"")+(r[a]!==void 0?r[a]:"none"))}),r.alpha!==void 0&&r.alpha<1&&(n+=` / ${r.alpha}`),n+")"}if(typeof t.serialize=="function")return t.serialize(r)},RJ=e=>S3(k3(e)),FJ=e=>r8(k3(e)),PJ=e=>t8(k3(e)),IJ=e=>n8(LJ(e)),zJ={normal:(e,r)=>r,multiply:(e,r)=>e*r,screen:(e,r)=>e+r-e*r,"hard-light":(e,r)=>r<.5?e*2*r:2*r*(1-e)-1,overlay:(e,r)=>e<.5?r*2*e:2*e*(1-r)-1,darken:(e,r)=>Math.min(e,r),lighten:(e,r)=>Math.max(e,r),"color-dodge":(e,r)=>e===0?0:r===1?1:Math.min(1,e/(1-r)),"color-burn":(e,r)=>e===1?1:r===0?0:1-Math.min(1,(1-e)/r),"soft-light":(e,r)=>r<.5?e-(1-2*r)*e*(1-e):e+(2*r-1)*((e<.25?((16*e-12)*e+4)*e:Math.sqrt(e))-e),difference:(e,r)=>Math.abs(e-r),exclusion:(e,r)=>e+r-2*e*r},NJ=(e,r="normal",t="rgb")=>{let n=typeof r=="function"?r:zJ[r],a=Pt(t),o=na(t).channels;return e.map(l=>{let u=a(l);return u.alpha===void 0&&(u.alpha=1),u}).reduce((l,u)=>{if(l===void 0)return u;let s=u.alpha+l.alpha*(1-u.alpha);return o.reduce((f,c)=>(c!=="alpha"&&(s===0?f[c]=0:(f[c]=u.alpha*(1-l.alpha)*u[c]+u.alpha*l.alpha*n(l[c],u[c])+(1-u.alpha)*l.alpha*l[c],f[c]=Math.max(0,Math.min(1,f[c]/s)))),f),{mode:t,alpha:s})})},qJ=NJ,BJ=([e,r])=>e+Math.random()*(r-e),OJ=e=>Object.keys(e).reduce((r,t)=>{let n=e[t];return r[t]=Array.isArray(n)?n:[n,n],r},{}),UJ=(e="rgb",r={})=>{let t=na(e),n=OJ(r);return t.channels.reduce((a,o)=>((n.alpha||o!=="alpha")&&(a[o]=BJ(n[o]||t.ranges[o])),a),{mode:e})},HJ=UJ,Lf=(e,r="rgb",t=!1)=>{let n=r?na(r).channels:null,a=r?Pt(r):_i;return o=>{let i=a(o);if(!i)return;let l=(n||na(i.mode).channels).reduce((s,f)=>{let c=e(i[f],f,i,r);return c!==void 0&&!isNaN(c)&&(s[f]=c),s},{mode:i.mode});if(!t)return l;let u=_i(o);return u&&u.mode!==l.mode?Pt(u.mode)(l):l}},a8=(e,r,t)=>r!=="alpha"?(e||0)*(t.alpha!==void 0?t.alpha:1):e,i8=(e,r,t)=>r!=="alpha"&&t.alpha!==0?(e||0)/(t.alpha!==void 0?t.alpha:1):e,C3=(e=1,r=0)=>(t,n)=>n!=="alpha"?t*e+r:t,VJ=(e=1,r=1,t=0)=>(n,a)=>a!=="alpha"?e*Math.pow(n,r)+t:n,GJ=e=>{e[0]===void 0&&(e[0]=0),e[e.length-1]===void 0&&(e[e.length-1]=1);let r=1,t,n,a,o;for(;rr=>e<=0?1:e>=1?0:Math.pow(r,Math.log(.5)/Math.log(e)),o8=XJ,ah=e=>typeof e=="function",us=e=>e&&typeof e=="object",z7=e=>typeof e=="number",l8=(e,r="rgb",t,n)=>{let a=na(r),o=Pt(r),i=[],l=[],u={};e.forEach(p=>{Array.isArray(p)?(i.push(o(p[0])),l.push(p[1])):z7(p)||ah(p)?u[l.length]=p:(i.push(o(p)),l.push(void 0))}),YJ(l);let s=a.channels.reduce((p,x)=>{let g;return us(t)&&us(t[x])&&t[x].fixup?g=t[x].fixup:us(a.interpolate[x])&&a.interpolate[x].fixup?g=a.interpolate[x].fixup:g=w=>w,p[x]=g(i.map(w=>w[x])),p},{});if(n){let p=i.map((x,g)=>a.channels.reduce((w,M)=>(w[M]=s[M][g],w),{mode:r}));s=a.channels.reduce((x,g)=>(x[g]=p.map(w=>{let M=n(w[g],g,w,r);return isNaN(M)?void 0:M}),x),{})}let f=a.channels.reduce((p,x)=>{let g;return ah(t)?g=t:us(t)&&ah(t[x])?g=t[x]:us(t)&&us(t[x])&&t[x].use?g=t[x].use:ah(a.interpolate[x])?g=a.interpolate[x]:us(a.interpolate[x])&&(g=a.interpolate[x].use),p[x]=g(s[x]),p},{}),c=i.length-1;return p=>{if(p=Math.min(Math.max(0,p),1),p<=l[0])return i[0];if(p>l[c])return i[c];let x=0;for(;l[x]{let T=f[b](k);return T!==void 0&&(S[b]=T),S},{mode:r})}},WJ=(e,r="rgb",t)=>l8(e,r,t),s8=(e,r)=>(t,n="rgb",a)=>{let o=r?Lf(r,n):void 0,i=l8(t,n,a,e);return o?l=>o(i(l)):i},ZJ=s8(a8,i8),ih=(e,r)=>(e+r)%r,u8=(e,r,t,n,a)=>{let o=a*a,i=o*a;return((1-3*a+3*o-i)*e+(4-6*o+3*i)*r+(1+3*a+3*o-3*i)*t+i*n)/6},f8=e=>r=>{let t=e.length-1,n=r>=1?t-1:Math.max(0,Math.floor(r*t));return u8(n>0?e[n-1]:2*e[n]-e[n+1],e[n],e[n+1],nr=>{let t=e.length-1,n=Math.floor(r*t);return u8(e[ih(n-1,e.length)],e[ih(n,e.length)],e[ih(n+1,e.length)],e[ih(n+2,e.length)],(r-n/t)*t)},v8=e=>{let r,t=e.length-1,n=new Array(t),a=new Array(t),o=new Array(t);for(n[1]=1/4,a[1]=(6*e[1]-e[0])/4,r=2;r0&&(o[t-1]=a[t-1]),r=t-2;r>0;--r)o[r]=a[r]-n[r]*o[r+1];return o},JJ=e=>f8(v8(e)),$J=e=>c8(v8(e)),A0=Math.sign,n3=Math.min,Ra=Math.abs,E3=e=>{let r=e.length-1,t=[],n=[],a=[];for(let o=0;o0?.5*(e[o+1]-e[o-1])*r:void 0),a.push(o>0?(A0(t[o-1])+A0(t[o]))*n3(Ra(t[o-1]),Ra(t[o]),.5*Ra(n[o])):void 0);return[t,n,a]},L3=(e,r,t)=>{let n=e.length-1,a=n*n;return o=>{let i;o>=1?i=n-1:i=Math.max(0,Math.floor(o*n));let l=o-i/n,u=l*l,s=u*l;return(r[i]+r[i+1]-2*t[i])*a*s+(3*t[i]-2*r[i]-r[i+1])*n*u+r[i]*l+e[i]}},KJ=e=>{if(e.length<3)return _r(e);let r=e.length-1,[t,,n]=E3(e);return n[0]=t[0],n[r]=t[r-1],L3(e,n,t)},QJ=e=>{if(e.length<3)return _r(e);let r=e.length-1,[t,n,a]=E3(e);return n[0]=(e[1]*2-e[0]*1.5-e[2]*.5)*r,n[r]=(e[r]*1.5-e[r-1]*2+e[r-2]*.5)*r,a[0]=n[0]*t[0]<=0?0:Ra(n[0])>2*Ra(t[0])?2*t[0]:n[0],a[r]=n[r]*t[r-1]<=0?0:Ra(n[r])>2*Ra(t[r-1])?2*t[r-1]:n[r],L3(e,a,t)},jJ=e=>{let r=e.length-1,[t,n,a]=E3(e);n[0]=.5*(e[1]-e[r])*r,n[r]=.5*(e[0]-e[r-1])*r;let o=(e[0]-e[r])*r,i=o;return a[0]=(A0(o)+A0(t[0]))*n3(Ra(o),Ra(t[0]),.5*Ra(n[0])),a[r]=(A0(t[r-1])+A0(i))*n3(Ra(t[r-1]),Ra(i),.5*Ra(n[r])),L3(e,a,t)},e$=(e=1)=>e===1?r=>r:r=>Math.pow(r,e),h8=e$,r$=(e=2,r=1)=>{let t=h8(r);if(e<2)return e<1?[]:[t(.5)];let n=[];for(let a=0;a{let r={mode:e.mode,r:Math.max(0,Math.min(e.r!==void 0?e.r:0,1)),g:Math.max(0,Math.min(e.g!==void 0?e.g:0,1)),b:Math.max(0,Math.min(e.b!==void 0?e.b:0,1))};return e.alpha!==void 0&&(r.alpha=e.alpha),r},g8=e=>p8(d8(e)),y8=e=>e!==void 0&&(e.r===void 0||e.r>=0&&e.r<=1)&&(e.g===void 0||e.g>=0&&e.g<=1)&&(e.b===void 0||e.b>=0&&e.b<=1);function D3(e){return y8(d8(e))}function Ah(e="rgb"){let{gamut:r}=na(e);if(!r)return n=>!0;let t=Pt(typeof r=="string"?r:e);return n=>y8(t(n))}function n$(e){return e=_i(e),e===void 0||D3(e)?e:Pt(e.mode)(g8(e))}function R3(e="rgb"){let{gamut:r}=na(e);if(!r)return o=>_i(o);let t=typeof r=="string"?r:e,n=Pt(t),a=Ah(t);return o=>{let i=_i(o);if(!i)return;let l=n(i);if(a(l))return i;let u=p8(l);return i.mode===u.mode?u:Pt(i.mode)(u)}}function a$(e,r="lch",t="rgb"){e=_i(e);let n=t==="rgb"?D3:Ah(t),a=t==="rgb"?g8:R3(t);if(e===void 0||n(e))return e;let o=Pt(e.mode);e=Pt(r)(e);let i=Bt(_t({},e),{c:0});if(!n(i))return o(a(i));let l=0,u=e.c!==void 0?e.c:0,s=na(r).ranges.c,f=(s[1]-s[0])/Math.pow(2,13),c=i.c;for(;u-l>f;)i.c=l+(u-l)*.5,n(i)?(c=i.c,l=i.c):u=i.c;return o(n(i)?i:Bt(_t({},i),{c}))}function i$(e="rgb",r="oklch",t=E0("oklch"),n=.02){let a=Pt(e),o=na(e);if(!o.gamut)return f=>a(f);let i=Ah(e),l=R3(e),u=Pt(r),{ranges:s}=na(r);if(!s.l||!s.c)throw new Error("LCH-like space expected");return f=>{if(f=_i(f),f===void 0)return;let c=_t({},u(f));if(c.l===void 0&&(c.l=0),c.c===void 0&&(c.c=0),c.l>=s.l[1]){let M=Bt(_t({},o.white),{mode:e});return f.alpha!==void 0&&(M.alpha=f.alpha),M}if(c.l<=s.l[0]){let M=Bt(_t({},o.black),{mode:e});return f.alpha!==void 0&&(M.alpha=f.alpha),M}if(i(c))return a(c);let p=0,x=c.c,g=(s.c[1]-s.c[0])/4e3,w=l(c);for(;x-p>g;)c.c=(p+x)*.5,w=l(c),i(c)||t&&n>0&&t(c,w)<=n?p=c.c:x=c.c;return a(i(c)?c:w)}}var o$=(e,r=E0(),t=n=>n)=>{let n=e.map((a,o)=>({color:t(a),i:o}));return(a,o=1,i=1/0)=>(isFinite(o)&&(o=Math.max(1,Math.min(o,n.length-1))),n.forEach(l=>{l.d=r(a,l.color)}),n.sort((l,u)=>l.d-u.d).slice(0,o).filter(l=>l.de[l.i]))},l$=o$,F3=e=>Math.max(e,0),P3=e=>Math.max(Math.min(e,1),0),s$=(e,r,t)=>e===void 0||r===void 0?void 0:e+t*(r-e),u$=e=>{let r=1-P3(e);return[.393+.607*r,.769-.769*r,.189-.189*r,0,.349-.349*r,.686+.314*r,.168-.168*r,0,.272-.272*r,.534-.534*r,.131+.869*r,0,0,0,0,1]},f$=e=>{let r=F3(e);return[.213+.787*r,.715-.715*r,.072-.072*r,0,.213-.213*r,.715+.285*r,.072-.072*r,0,.213-.213*r,.715-.715*r,.072+.928*r,0,0,0,0,1]},c$=e=>{let r=1-P3(e);return[.2126+.7874*r,.7152-.7152*r,.0722-.0722*r,0,.2126-.2126*r,.7152+.2848*r,.0722-.0722*r,0,.2126-.2126*r,.7152-.7152*r,.0722+.9278*r,0,0,0,0,1]},v$=e=>{let r=Math.PI*e/180,t=Math.cos(r),n=Math.sin(r);return[.213+t*.787-n*.213,.715-t*.715-n*.715,.072-t*.072+n*.928,0,.213-t*.213+n*.143,.715+t*.285+n*.14,.072-t*.072-n*.283,0,.213-t*.213-n*.787,.715-t*.715+n*.715,.072+t*.928+n*.072,0,0,0,0,1]},kh=(e,r,t=!1)=>{let n=Pt(r),a=na(r).channels;return o=>{let i=n(o);if(!i)return;let l={mode:r},u,s=a.length;for(let c=0;c{let t=F3(e);return Lf(C3(t),r,!0)},d$=(e=1,r="rgb")=>{let t=F3(e);return Lf(C3(t,(1-t)/2),r,!0)},p$=(e=1,r="rgb")=>kh(u$(e),r,!0),g$=(e=1,r="rgb")=>kh(f$(e),r,!0),y$=(e=1,r="rgb")=>kh(c$(e),r,!0),m$=(e=1,r="rgb")=>{let t=P3(e);return Lf((n,a)=>a==="alpha"?n:s$(t,1-t,n),r,!0)},b$=(e=0,r="rgb")=>kh(v$(e),r,!0),x$=Pt("rgb"),_$=[[1,0,-0,0,1,0,-0,-0,1],[.856167,.182038,-.038205,.029342,.955115,.015544,-.00288,-.001563,1.004443],[.734766,.334872,-.069637,.05184,.919198,.028963,-.004928,-.004209,1.009137],[.630323,.465641,-.095964,.069181,.890046,.040773,-.006308,-.007724,1.014032],[.539009,.579343,-.118352,.082546,.866121,.051332,-.007136,-.011959,1.019095],[.458064,.679578,-.137642,.092785,.846313,.060902,-.007494,-.016807,1.024301],[.38545,.769005,-.154455,.100526,.829802,.069673,-.007442,-.02219,1.029632],[.319627,.849633,-.169261,.106241,.815969,.07779,-.007025,-.028051,1.035076],[.259411,.923008,-.18242,.110296,.80434,.085364,-.006276,-.034346,1.040622],[.203876,.990338,-.194214,.112975,.794542,.092483,-.005222,-.041043,1.046265],[.152286,1.052583,-.204868,.114503,.786281,.099216,-.003882,-.048116,1.051998]],w$=[[1,0,-0,0,1,0,-0,-0,1],[.866435,.177704,-.044139,.049567,.939063,.01137,-.003453,.007233,.99622],[.760729,.319078,-.079807,.090568,.889315,.020117,-.006027,.013325,.992702],[.675425,.43385,-.109275,.125303,.847755,.026942,-.00795,.018572,.989378],[.605511,.52856,-.134071,.155318,.812366,.032316,-.009376,.023176,.9862],[.547494,.607765,-.155259,.181692,.781742,.036566,-.01041,.027275,.983136],[.498864,.674741,-.173604,.205199,.754872,.039929,-.011131,.030969,.980162],[.457771,.731899,-.18967,.226409,.731012,.042579,-.011595,.034333,.977261],[.422823,.781057,-.203881,.245752,.709602,.044646,-.011843,.037423,.974421],[.392952,.82361,-.216562,.263559,.69021,.046232,-.01191,.040281,.97163],[.367322,.860646,-.227968,.280085,.672501,.047413,-.01182,.04294,.968881]],M$=[[1,0,-0,0,1,0,-0,-0,1],[.92667,.092514,-.019184,.021191,.964503,.014306,.008437,.054813,.93675],[.89572,.13333,-.02905,.029997,.9454,.024603,.013027,.104707,.882266],[.905871,.127791,-.033662,.026856,.941251,.031893,.01341,.148296,.838294],[.948035,.08949,-.037526,.014364,.946792,.038844,.010853,.193991,.795156],[1.017277,.027029,-.044306,-.006113,.958479,.047634,.006379,.248708,.744913],[1.104996,-.046633,-.058363,-.032137,.971635,.060503,.001336,.317922,.680742],[1.193214,-.109812,-.083402,-.058496,.97941,.079086,-.002346,.403492,.598854],[1.257728,-.139648,-.118081,-.078003,.975409,.102594,-.003316,.501214,.502102],[1.278864,-.125333,-.153531,-.084748,.957674,.127074,-989e-6,.601151,.399838],[1.255528,-.076749,-.178779,-.078411,.930809,.147602,.004733,.691367,.3039]],I3=(e,r)=>{let t=Math.max(0,Math.min(1,r)),n=Math.round(t/.1),a=Math.round(t%.1),o=e[n];if(a>0&&nfs(o[u],i[u],a))}return i=>{let l=_i(i);if(l===void 0)return;let{r:u,g:s,b:f}=x$(l),c={mode:"rgb",r:o[0]*u+o[1]*s+o[2]*f,g:o[3]*u+o[4]*s+o[5]*f,b:o[6]*u+o[7]*s+o[8]*f};return l.alpha!==void 0&&(c.alpha=l.alpha),Pt(l.mode)(c)}},T$=(e=1)=>I3(_$,e),A$=(e=1)=>I3(w$,e),k$=(e=1)=>I3(M$,e),S$=e=>e*e*(3-2*e),C$=e=>.5-Math.sin(Math.asin(1-2*e)/3),E$=e=>e*e*e*(e*(e*6-15)+10),L$=E$,D$=e=>(1-Math.cos(e*Math.PI))/2,R$=D$;function a3(e){let r=Pt("lrgb")(e);return .2126*r.r+.7152*r.g+.0722*r.b}function F$(e,r){let t=a3(e),n=a3(r);return(Math.max(t,n)+.05)/(Math.min(t,n)+.05)}var P$=wt($7),I$=wt(rw),z$=wt(ow),N$=wt(lw),q$=wt(fw),B$=wt(f3),O$=wt(h3),U$=wt(mw),H$=wt(_w),V$=wt(ww),G$=wt(Mw),Y$=wt(Mh),X$=wt(Aw),W$=wt(Th),Z$=wt(Sw),J$=wt(Lw),$$=wt(Dw),K$=wt(Rw),Q$=wt(Pw),j$=wt(Iw),eK=wt(Nw),rK=wt(Bw),tK=wt(Ow),nK=wt(Uw),aK=wt(Hw),iK=wt(hs),oK=wt(Xw),lK=wt(Ww),sK=wt($w),uK=wt(jw)});var z3={};Ut(z3,{default:()=>cK});var fK,cK,N3=Ot(()=>{"use strict";fK={format:{valType:"enumerated",values:["png","jpeg","webp","svg","full-json"],dflt:"png",description:"Sets the format of exported image."},width:{valType:"number",min:1,description:["Sets the exported image width.","Defaults to the value found in `layout.width`","If set to *null*, the exported image width will match the current graph width."].join(" ")},height:{valType:"number",min:1,description:["Sets the exported image height.","Defaults to the value found in `layout.height`","If set to *null*, the exported image height will match the current graph height."].join(" ")},scale:{valType:"number",min:0,dflt:1,description:["Sets a scaling for the generated image.","If set, all features of a graphs (e.g. text, line width)","are scaled, unlike simply setting","a bigger *width* and *height*."].join(" ")},setBackground:{valType:"any",dflt:!1,description:["Sets the image background mode.","By default, the image background is determined by `layout.paper_bgcolor`,","the *transparent* mode.","One might consider setting `setBackground` to *opaque*","when exporting a *jpeg* image as JPEGs do not support opacity."].join(" ")},imageDataOnly:{valType:"boolean",dflt:!1,description:["Determines whether or not the return value is prefixed by","the image format's corresponding 'data:image;' spec."].join(" ")}},cK=fK});var al=_e((Zbe,T8)=>{"use strict";var{format:vK,width:hK,height:dK,scale:pK}=(N3(),or(z3)).default,x8=pK,{dflt:Wbe}=x8,gK=V_(x8,["dflt"]),_8={staticPlot:{valType:"boolean",dflt:!1},typesetMath:{valType:"boolean",dflt:!0},plotlyServerURL:{valType:"string",dflt:"https://cloud.plotly.com/newchart"},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","map"],extras:[!0,!1],dflt:"gl3d+geo+map"},doubleClick:{valType:"enumerated",values:[!1,"reset","autosize","reset+autosize"],dflt:"reset+autosize"},doubleClickDelay:{valType:"number",dflt:500,min:0},showAxisDragHandles:{valType:"boolean",dflt:!0},showAxisRangeEntryBoxes:{valType:"boolean",dflt:!0},showTips:{valType:"boolean",dflt:!0},displayNotifier:{valType:"boolean",dflt:!0},displayModeBar:{valType:"enumerated",values:["hover",!0,!1],dflt:"hover"},showSendToCloud:{valType:"boolean",dflt:!0},modeBarButtonsToRemove:{valType:"any",dflt:[]},modeBarButtonsToAdd:{valType:"any",dflt:[]},modeBarButtons:{valType:"any",dflt:!1},toImageButtonOptions:{format:vK,filename:{valType:"string"},width:hK,height:dK,scale:gK},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/un/"},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},locale:{valType:"string",dflt:"en-US"},locales:{valType:"any",dflt:{}}},w8={};function M8(e,r){for(let t in e){let n=e[t];typeof n!="object"||n===null||(n.valType?"dflt"in n&&(r[t]=n.dflt):(r[t]||(r[t]={}),M8(n,r[t])))}}M8(_8,w8);T8.exports={configAttributes:_8,dfltConfig:w8}});var B3=_e(($be,A8)=>{"use strict";var q3=at(),yK=ot(),Df=[];A8.exports=function(e,r,t){var l;if(((l=t==null?void 0:t._context)==null?void 0:l.displayNotifier)===!1||Df.indexOf(e)!==-1)return;Df.push(e);var n=1e3;yK(r)?n=r:r==="long"&&(n=3e3);var a=q3.select("body").selectAll(".plotly-notifier").data([0]);a.enter().append("div").classed("plotly-notifier",!0);var o=a.selectAll(".notifier-note").data(Df);function i(u){u.duration(700).style("opacity",0).each("end",function(s){var f=Df.indexOf(s);f!==-1&&Df.splice(f,1),q3.select(this).remove()})}o.enter().append("div").classed("notifier-note",!0).style("opacity",0).each(function(u){var s=q3.select(this);s.append("button").classed("notifier-close",!0).html("×").on("click",function(){s.transition().call(i)});for(var f=s.append("p"),c=u.split(//g),p=0;p{"use strict";var F0=al().dfltConfig,O3=B3(),U3=k8.exports={};U3.log=function(){var e;if(F0.logging>1){var r=["LOG:"];for(e=0;e1){var t=[];for(e=0;e"),"long")}};U3.warn=function(){var e;if(F0.logging>0){var r=["WARN:"];for(e=0;e0){var t=[];for(e=0;e"),"stick")}};U3.error=function(){var e;if(F0.logging>0){var r=["ERROR:"];for(e=0;e0){var t=[];for(e=0;e"),"stick")}}});var ji=_e(gs=>{"use strict";gs.defaults=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"];gs.defaultLine="#444";gs.lightLine="#eee";gs.background="#fff";gs.borderLine="#BEC8D9";gs.lightFraction=1e3/11});var Wr=_e((jbe,I8)=>{"use strict";var{converter:S8,formatHex:mK,formatRgb:bK,wcagContrast:xK,wcagLuminance:_K}=b8(),{isArrayOrTypedArray:C8}=ha(),{warn:wK}=il(),{background:Ff,defaultLine:G3,defaults:MK,lightLine:TK}=ji(),E8=S8("rgb"),AK=S8("hsl"),L8=e=>{if(typeof e!="string")return;let r=e.trim().toLowerCase();if(!/^[0-9a-f]+$/.test(r))try{return E8(r)}catch(t){return}},aa=e=>e>0?e>1?1:e:0,kK={mode:"rgb",r:0,g:0,b:0,alpha:1},H3=e=>Math.round(e*255e6)/255e6,D8=e=>Bt(_t({},e),{r:H3(e.r),g:H3(e.g),b:H3(e.b)}),Fa=e=>bK(D8(e)),SK=e=>mK(D8(e)),CK=e=>{var r,t,n,a;return typeof e=="string"?`"${e}"`:C8(e)?`${(t=(r=e.constructor)==null?void 0:r.name)!=null?t:"Array"}(${e.length})`:typeof e=="object"?(a=(n=e.constructor)==null?void 0:n.name)!=null?a:"Object":`${typeof e} ${e}`},Xt=(e,r)=>{var n;let t=L8(e);return t?((n=t.alpha)!=null||(t.alpha=1),t):(!r&&e!=null&&wK(`Invalid color specifier: ${CK(e)}. Defaulting to "#000"`),kK)},Rf=e=>Fa(Bt(_t({},Xt(e)),{alpha:1})),EK=e=>e?Xt(e).alpha:0,R8=e=>C8(e)&&e.length>2&&Number.isFinite(e[0])&&Number.isFinite(e[1])&&Number.isFinite(e[2]),LK=e=>{let[r,t,n,a]=e,o=Math.max(r,t,n)>1?1/255:1,i=a!=null?a:1;return{mode:"rgb",r:r*o,g:t*o,b:n*o,alpha:i>1?i/255:i}},DK=(e,r)=>{let t=R8(e)?LK(e):Xt(e,!0),n=[aa(t.r),aa(t.g),aa(t.b),aa(t.alpha)];return r==="uint8"||r==="uint8_clamped"?Uint8Array.from(n,a=>Math.round(a*255)):r==="float32"?Float32Array.from(n):r==="float64"?Float64Array.from(n):n},RK=(e,r)=>Fa(Bt(_t({},Xt(e)),{alpha:aa(r)})),F8=(e,r)=>{let t=Xt(e),n=t.alpha;if(n===1)return Fa(t);let a=Xt(r||Ff),o=a.alpha,i=(l,u)=>(o===1?u:1-o+u*o)*(1-n)+l*n;return Fa({mode:"rgb",r:i(t.r,a.r),g:i(t.g,a.g),b:i(t.b,a.b)})},FK=(e,r,t)=>{let n=Xt(e),a=Xt(r),o=(i,l)=>t*i+(1-t)*l;return Fa({mode:"rgb",r:o(n.r,a.r),g:o(n.g,a.g),b:o(n.b,a.b)})},V3=(e,r)=>{let t=Xt(e),n=AK(t)||{mode:"hsl",h:0,s:0,l:0};return Fa(E8(Bt(_t({},n),{l:aa((n.l*100+r)/100),alpha:t.alpha})))},Sh=(e,r)=>xK(Xt(e),Xt(r)),P8=e=>Sh(e,Ff)>Sh(e,G3),PK=Fa(Xt(Ff)),IK=Fa(Xt(G3)),zK=(e,r,t)=>(Xt(e).alpha!==1&&(e=F8(e,Ff)),P8(e)?r?V3(e,r):PK:t?V3(e,-t):IK),NK=(e,r)=>{e.style({stroke:Rf(r),"stroke-opacity":Xt(r).alpha})},qK=(e,r)=>{e.style({fill:Rf(r),"fill-opacity":Xt(r).alpha})},BK=(e,r)=>!!(e&&r&&Rf(e)===Rf(r)),OK=e=>L8(e)!==void 0,UK=(e,r)=>{r=r===0?0:r||10;let t=Xt(e),n=r/100;return Fa(Bt(_t({},t),{r:aa(t.r+n),g:aa(t.g+n),b:aa(t.b+n)}))},HK=(e,r,t)=>{let n=Xt(e),a=Xt(r),o=t/100,i=a.alpha-n.alpha,l=2*o-1,u=((l*i===-1?l:(l+i)/(1+l*i))+1)/2,s=1-u,f=(c,p)=>s*c+u*p;return Fa({mode:"rgb",r:f(n.r,a.r),g:f(n.g,a.g),b:f(n.b,a.b),alpha:n.alpha*(1-o)+a.alpha*o})},VK=(e,r=["#000","#fff"])=>{let t,n=-1/0;for(let a of r){let o=Sh(e,a);o>n&&(n=o,t=Fa(Xt(a)))}return t},GK=e=>Fa(Xt(e)),YK=e=>SK(Xt(e)).toUpperCase(),XK=e=>{let r=Xt(e);return[aa(r.r)*255,aa(r.g)*255,aa(r.b)*255,aa(r.alpha)]},WK=([e,r,t,n])=>Fa({mode:"rgb",r:e/255,g:r/255,b:t/255,alpha:n}),ZK=e=>{let r=Xt(e);return _K({mode:"rgb",r:aa(r.r),g:aa(r.g),b:aa(r.b)})};I8.exports={addOpacity:RK,adjustLightness:V3,background:Ff,brighten:UK,combine:F8,contrast:zK,defaultLine:G3,defaults:MK,equals:BK,fill:qK,hexString:YK,interpolate:FK,isChannelArray:R8,isDark:P8,isValid:OK,lightLine:TK,luminosity:ZK,mix:HK,mostReadable:VK,normalize:DK,opacity:EK,parse:Xt,rgb:Rf,rgbaArray:XK,rgbaArrayToString:WK,rgbaString:GK,stroke:NK,wcagContrast:Sh}});var ys=_e((rxe,q8)=>{"use strict";var JK=Wr(),Ch={Greys:[[0,"rgb(0,0,0)"],[1,"rgb(255,255,255)"]],YlGnBu:[[0,"rgb(8,29,88)"],[.125,"rgb(37,52,148)"],[.25,"rgb(34,94,168)"],[.375,"rgb(29,145,192)"],[.5,"rgb(65,182,196)"],[.625,"rgb(127,205,187)"],[.75,"rgb(199,233,180)"],[.875,"rgb(237,248,217)"],[1,"rgb(255,255,217)"]],Greens:[[0,"rgb(0,68,27)"],[.125,"rgb(0,109,44)"],[.25,"rgb(35,139,69)"],[.375,"rgb(65,171,93)"],[.5,"rgb(116,196,118)"],[.625,"rgb(161,217,155)"],[.75,"rgb(199,233,192)"],[.875,"rgb(229,245,224)"],[1,"rgb(247,252,245)"]],YlOrRd:[[0,"rgb(128,0,38)"],[.125,"rgb(189,0,38)"],[.25,"rgb(227,26,28)"],[.375,"rgb(252,78,42)"],[.5,"rgb(253,141,60)"],[.625,"rgb(254,178,76)"],[.75,"rgb(254,217,118)"],[.875,"rgb(255,237,160)"],[1,"rgb(255,255,204)"]],Bluered:[[0,"rgb(0,0,255)"],[1,"rgb(255,0,0)"]],RdBu:[[0,"rgb(5,10,172)"],[.35,"rgb(106,137,247)"],[.5,"rgb(190,190,190)"],[.6,"rgb(220,170,132)"],[.7,"rgb(230,145,90)"],[1,"rgb(178,10,28)"]],Reds:[[0,"rgb(220,220,220)"],[.2,"rgb(245,195,157)"],[.4,"rgb(245,160,105)"],[1,"rgb(178,10,28)"]],Blues:[[0,"rgb(5,10,172)"],[.35,"rgb(40,60,190)"],[.5,"rgb(70,100,245)"],[.6,"rgb(90,120,245)"],[.7,"rgb(106,137,247)"],[1,"rgb(220,220,220)"]],Picnic:[[0,"rgb(0,0,255)"],[.1,"rgb(51,153,255)"],[.2,"rgb(102,204,255)"],[.3,"rgb(153,204,255)"],[.4,"rgb(204,204,255)"],[.5,"rgb(255,255,255)"],[.6,"rgb(255,204,255)"],[.7,"rgb(255,153,255)"],[.8,"rgb(255,102,204)"],[.9,"rgb(255,102,102)"],[1,"rgb(255,0,0)"]],Rainbow:[[0,"rgb(150,0,90)"],[.125,"rgb(0,0,200)"],[.25,"rgb(0,25,255)"],[.375,"rgb(0,152,255)"],[.5,"rgb(44,255,150)"],[.625,"rgb(151,255,0)"],[.75,"rgb(255,234,0)"],[.875,"rgb(255,111,0)"],[1,"rgb(255,0,0)"]],Portland:[[0,"rgb(12,51,131)"],[.25,"rgb(10,136,186)"],[.5,"rgb(242,211,56)"],[.75,"rgb(242,143,56)"],[1,"rgb(217,30,30)"]],Jet:[[0,"rgb(0,0,131)"],[.125,"rgb(0,60,170)"],[.375,"rgb(5,255,255)"],[.625,"rgb(255,255,0)"],[.875,"rgb(250,0,0)"],[1,"rgb(128,0,0)"]],Hot:[[0,"rgb(0,0,0)"],[.3,"rgb(230,0,0)"],[.6,"rgb(255,210,0)"],[1,"rgb(255,255,255)"]],Blackbody:[[0,"rgb(0,0,0)"],[.2,"rgb(230,0,0)"],[.4,"rgb(230,210,0)"],[.7,"rgb(255,255,255)"],[1,"rgb(160,200,255)"]],Earth:[[0,"rgb(0,0,130)"],[.1,"rgb(0,180,180)"],[.2,"rgb(40,210,40)"],[.4,"rgb(230,230,50)"],[.6,"rgb(120,70,20)"],[1,"rgb(255,255,255)"]],Electric:[[0,"rgb(0,0,0)"],[.15,"rgb(30,0,100)"],[.4,"rgb(120,0,100)"],[.6,"rgb(160,90,0)"],[.8,"rgb(230,200,0)"],[1,"rgb(255,250,220)"]],Viridis:[[0,"#440154"],[.06274509803921569,"#48186a"],[.12549019607843137,"#472d7b"],[.18823529411764706,"#424086"],[.25098039215686274,"#3b528b"],[.3137254901960784,"#33638d"],[.3764705882352941,"#2c728e"],[.4392156862745098,"#26828e"],[.5019607843137255,"#21918c"],[.5647058823529412,"#1fa088"],[.6274509803921569,"#28ae80"],[.6901960784313725,"#3fbc73"],[.7529411764705882,"#5ec962"],[.8156862745098039,"#84d44b"],[.8784313725490196,"#addc30"],[.9411764705882353,"#d8e219"],[1,"#fde725"]],Cividis:[[0,"rgb(0,32,76)"],[.058824,"rgb(0,42,102)"],[.117647,"rgb(0,52,110)"],[.176471,"rgb(39,63,108)"],[.235294,"rgb(60,74,107)"],[.294118,"rgb(76,85,107)"],[.352941,"rgb(91,95,109)"],[.411765,"rgb(104,106,112)"],[.470588,"rgb(117,117,117)"],[.529412,"rgb(131,129,120)"],[.588235,"rgb(146,140,120)"],[.647059,"rgb(161,152,118)"],[.705882,"rgb(176,165,114)"],[.764706,"rgb(192,177,109)"],[.823529,"rgb(209,191,102)"],[.882353,"rgb(225,204,92)"],[.941176,"rgb(243,219,79)"],[1,"rgb(255,233,69)"]]},z8=Ch.RdBu;function $K(e,r){if(r||(r=z8),!e)return r;function t(){try{e=Ch[e]||JSON.parse(e)}catch(n){e=r}}return typeof e=="string"&&(t(),typeof e=="string"&&t()),N8(e)?e:r}function N8(e){var r=0;if(!Array.isArray(e)||e.length<2||!e[0]||!e[e.length-1]||+e[0][0]!=0||+e[e.length-1][0]!=1)return!1;for(var t=0;teQ,HIDE_PLACEHOLDER:()=>jK,SHOW_PLACEHOLDER:()=>QK});var QK,jK,eQ,Lh=Ot(()=>{"use strict";QK=100,jK=1e3,eQ=.2});var Pf={};Ut(Pf,{counter:()=>ms});function ms(e,r="",t,n){let a=r+(t?"":"$"),o=n===!1?"":"^";return e==="xy"?new RegExp(o+"x"+Y3+"y"+Y3+a):new RegExp(o+e+Y3+a)}var Y3,P0=Ot(()=>{"use strict";Y3="([2-9]|[1-9][0-9]+)?"});var U8=_e(Ma=>{"use strict";var X3=ot(),B8=Ft().extendFlat,rQ=Vn(),tQ=ys(),W3=Wr(),nQ=(Lh(),or(Eh)).DESELECTDIM,I0=Qv(),O8=(P0(),or(Pf)).counter,aQ=(T0(),or(M0)).modHalf,wi=ha().isArrayOrTypedArray,ol=ha().isTypedArraySpec,ll=ha().decodeTypedArraySpec;Ma.valObjectMeta={data_array:{coerceFunction:function(e,r,t){r.set(wi(e)?e:ol(e)?ll(e):t)}},enumerated:{coerceFunction:function(e,r,t,n){n.coerceNumber&&(e=+e),n.values.indexOf(e)===-1?r.set(t):r.set(e)},validateFunction:function(e,r){r.coerceNumber&&(e=+e);for(var t=r.values,n=0;no===!0||o===!1;a(e)||n.arrayOk&&Array.isArray(e)&&e.length>0&&e.every(a)?r.set(e):r.set(t)}},number:{coerceFunction:function(e,r,t,n){ol(e)&&(e=ll(e)),!X3(e)||n.min!==void 0&&en.max?r.set(t):r.set(+e)}},integer:{coerceFunction:function(e,r,t,n){if((n.extras||[]).indexOf(e)!==-1){r.set(e);return}ol(e)&&(e=ll(e)),e%1||!X3(e)||n.min!==void 0&&en.max?r.set(t):r.set(+e)}},string:{coerceFunction:function(e,r,t,n){if(typeof e!="string"){var a=typeof e=="number";n.strict===!0||!a?r.set(t):r.set(String(e))}else n.noBlank&&!e?r.set(t):r.set(e)}},color:{coerceFunction:function(e,r,t){ol(e)&&(e=ll(e)),W3.isValid(e)?r.set(e):r.set(t)}},colorlist:{coerceFunction:function(e,r,t){!Array.isArray(e)||!e.length?r.set(t):e.every(n=>W3.isValid(n))?r.set(e):r.set(t)}},colorscale:{coerceFunction:function(e,r,t){r.set(tQ.get(e,t))}},angle:{coerceFunction:function(e,r,t){ol(e)&&(e=ll(e)),e==="auto"?r.set("auto"):X3(e)?r.set(aQ(+e,360)):r.set(t)}},subplotid:{coerceFunction:function(e,r,t,n){var a=n.regex||O8(t);let o=i=>typeof i=="string"&&a.test(i);o(e)||n.arrayOk&&wi(e)&&e.length>0&&e.every(o)?r.set(e):r.set(t)},validateFunction:function(e,r){var t=r.dflt;return e===t?!0:typeof e!="string"?!1:!!O8(t).test(e)}},flaglist:{coerceFunction:function(e,r,t,n){if((n.extras||[]).indexOf(e)!==-1){r.set(e);return}if(typeof e!="string"){r.set(t);return}for(var a=e.split("+"),o=0;o{"use strict";H8.exports=function(){}});var Z3=_e((axe,V8)=>{"use strict";V8.exports=function(r,t){if(t instanceof RegExp){for(var n=t.toString(),a=0;a{G8.exports=iQ;function iQ(){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}});var W8=_e((oxe,X8)=>{X8.exports=oQ;function oQ(e){var r=new Float32Array(16);return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4],r[5]=e[5],r[6]=e[6],r[7]=e[7],r[8]=e[8],r[9]=e[9],r[10]=e[10],r[11]=e[11],r[12]=e[12],r[13]=e[13],r[14]=e[14],r[15]=e[15],r}});var J8=_e((lxe,Z8)=>{Z8.exports=lQ;function lQ(e,r){return e[0]=r[0],e[1]=r[1],e[2]=r[2],e[3]=r[3],e[4]=r[4],e[5]=r[5],e[6]=r[6],e[7]=r[7],e[8]=r[8],e[9]=r[9],e[10]=r[10],e[11]=r[11],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15],e}});var J3=_e((sxe,$8)=>{$8.exports=sQ;function sQ(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}});var Q8=_e((uxe,K8)=>{K8.exports=uQ;function uQ(e,r){if(e===r){var t=r[1],n=r[2],a=r[3],o=r[6],i=r[7],l=r[11];e[1]=r[4],e[2]=r[8],e[3]=r[12],e[4]=t,e[6]=r[9],e[7]=r[13],e[8]=n,e[9]=o,e[11]=r[14],e[12]=a,e[13]=i,e[14]=l}else e[0]=r[0],e[1]=r[4],e[2]=r[8],e[3]=r[12],e[4]=r[1],e[5]=r[5],e[6]=r[9],e[7]=r[13],e[8]=r[2],e[9]=r[6],e[10]=r[10],e[11]=r[14],e[12]=r[3],e[13]=r[7],e[14]=r[11],e[15]=r[15];return e}});var e9=_e((fxe,j8)=>{j8.exports=fQ;function fQ(e,r){var t=r[0],n=r[1],a=r[2],o=r[3],i=r[4],l=r[5],u=r[6],s=r[7],f=r[8],c=r[9],p=r[10],x=r[11],g=r[12],w=r[13],M=r[14],m=r[15],k=t*l-n*i,S=t*u-a*i,b=t*s-o*i,T=n*u-a*l,h=n*s-o*l,_=a*s-o*u,y=f*w-c*g,v=f*M-p*g,A=f*m-x*g,d=c*M-p*w,D=c*m-x*w,E=p*m-x*M,R=k*E-S*D+b*d+T*A-h*v+_*y;return R?(R=1/R,e[0]=(l*E-u*D+s*d)*R,e[1]=(a*D-n*E-o*d)*R,e[2]=(w*_-M*h+m*T)*R,e[3]=(p*h-c*_-x*T)*R,e[4]=(u*A-i*E-s*v)*R,e[5]=(t*E-a*A+o*v)*R,e[6]=(M*b-g*_-m*S)*R,e[7]=(f*_-p*b+x*S)*R,e[8]=(i*D-l*A+s*y)*R,e[9]=(n*A-t*D-o*y)*R,e[10]=(g*h-w*b+m*k)*R,e[11]=(c*b-f*h-x*k)*R,e[12]=(l*v-i*d-u*y)*R,e[13]=(t*d-n*v+a*y)*R,e[14]=(w*S-g*T-M*k)*R,e[15]=(f*T-c*S+p*k)*R,e):null}});var t9=_e((cxe,r9)=>{r9.exports=cQ;function cQ(e,r){var t=r[0],n=r[1],a=r[2],o=r[3],i=r[4],l=r[5],u=r[6],s=r[7],f=r[8],c=r[9],p=r[10],x=r[11],g=r[12],w=r[13],M=r[14],m=r[15];return e[0]=l*(p*m-x*M)-c*(u*m-s*M)+w*(u*x-s*p),e[1]=-(n*(p*m-x*M)-c*(a*m-o*M)+w*(a*x-o*p)),e[2]=n*(u*m-s*M)-l*(a*m-o*M)+w*(a*s-o*u),e[3]=-(n*(u*x-s*p)-l*(a*x-o*p)+c*(a*s-o*u)),e[4]=-(i*(p*m-x*M)-f*(u*m-s*M)+g*(u*x-s*p)),e[5]=t*(p*m-x*M)-f*(a*m-o*M)+g*(a*x-o*p),e[6]=-(t*(u*m-s*M)-i*(a*m-o*M)+g*(a*s-o*u)),e[7]=t*(u*x-s*p)-i*(a*x-o*p)+f*(a*s-o*u),e[8]=i*(c*m-x*w)-f*(l*m-s*w)+g*(l*x-s*c),e[9]=-(t*(c*m-x*w)-f*(n*m-o*w)+g*(n*x-o*c)),e[10]=t*(l*m-s*w)-i*(n*m-o*w)+g*(n*s-o*l),e[11]=-(t*(l*x-s*c)-i*(n*x-o*c)+f*(n*s-o*l)),e[12]=-(i*(c*M-p*w)-f*(l*M-u*w)+g*(l*p-u*c)),e[13]=t*(c*M-p*w)-f*(n*M-a*w)+g*(n*p-a*c),e[14]=-(t*(l*M-u*w)-i*(n*M-a*w)+g*(n*u-a*l)),e[15]=t*(l*p-u*c)-i*(n*p-a*c)+f*(n*u-a*l),e}});var a9=_e((vxe,n9)=>{n9.exports=vQ;function vQ(e){var r=e[0],t=e[1],n=e[2],a=e[3],o=e[4],i=e[5],l=e[6],u=e[7],s=e[8],f=e[9],c=e[10],p=e[11],x=e[12],g=e[13],w=e[14],M=e[15],m=r*i-t*o,k=r*l-n*o,S=r*u-a*o,b=t*l-n*i,T=t*u-a*i,h=n*u-a*l,_=s*g-f*x,y=s*w-c*x,v=s*M-p*x,A=f*w-c*g,d=f*M-p*g,D=c*M-p*w;return m*D-k*d+S*A+b*v-T*y+h*_}});var o9=_e((hxe,i9)=>{i9.exports=hQ;function hQ(e,r,t){var n=r[0],a=r[1],o=r[2],i=r[3],l=r[4],u=r[5],s=r[6],f=r[7],c=r[8],p=r[9],x=r[10],g=r[11],w=r[12],M=r[13],m=r[14],k=r[15],S=t[0],b=t[1],T=t[2],h=t[3];return e[0]=S*n+b*l+T*c+h*w,e[1]=S*a+b*u+T*p+h*M,e[2]=S*o+b*s+T*x+h*m,e[3]=S*i+b*f+T*g+h*k,S=t[4],b=t[5],T=t[6],h=t[7],e[4]=S*n+b*l+T*c+h*w,e[5]=S*a+b*u+T*p+h*M,e[6]=S*o+b*s+T*x+h*m,e[7]=S*i+b*f+T*g+h*k,S=t[8],b=t[9],T=t[10],h=t[11],e[8]=S*n+b*l+T*c+h*w,e[9]=S*a+b*u+T*p+h*M,e[10]=S*o+b*s+T*x+h*m,e[11]=S*i+b*f+T*g+h*k,S=t[12],b=t[13],T=t[14],h=t[15],e[12]=S*n+b*l+T*c+h*w,e[13]=S*a+b*u+T*p+h*M,e[14]=S*o+b*s+T*x+h*m,e[15]=S*i+b*f+T*g+h*k,e}});var s9=_e((dxe,l9)=>{l9.exports=dQ;function dQ(e,r,t){var n=t[0],a=t[1],o=t[2],i,l,u,s,f,c,p,x,g,w,M,m;return r===e?(e[12]=r[0]*n+r[4]*a+r[8]*o+r[12],e[13]=r[1]*n+r[5]*a+r[9]*o+r[13],e[14]=r[2]*n+r[6]*a+r[10]*o+r[14],e[15]=r[3]*n+r[7]*a+r[11]*o+r[15]):(i=r[0],l=r[1],u=r[2],s=r[3],f=r[4],c=r[5],p=r[6],x=r[7],g=r[8],w=r[9],M=r[10],m=r[11],e[0]=i,e[1]=l,e[2]=u,e[3]=s,e[4]=f,e[5]=c,e[6]=p,e[7]=x,e[8]=g,e[9]=w,e[10]=M,e[11]=m,e[12]=i*n+f*a+g*o+r[12],e[13]=l*n+c*a+w*o+r[13],e[14]=u*n+p*a+M*o+r[14],e[15]=s*n+x*a+m*o+r[15]),e}});var f9=_e((pxe,u9)=>{u9.exports=pQ;function pQ(e,r,t){var n=t[0],a=t[1],o=t[2];return e[0]=r[0]*n,e[1]=r[1]*n,e[2]=r[2]*n,e[3]=r[3]*n,e[4]=r[4]*a,e[5]=r[5]*a,e[6]=r[6]*a,e[7]=r[7]*a,e[8]=r[8]*o,e[9]=r[9]*o,e[10]=r[10]*o,e[11]=r[11]*o,e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15],e}});var v9=_e((gxe,c9)=>{c9.exports=gQ;function gQ(e,r,t,n){var a=n[0],o=n[1],i=n[2],l=Math.sqrt(a*a+o*o+i*i),u,s,f,c,p,x,g,w,M,m,k,S,b,T,h,_,y,v,A,d,D,E,R,z;return Math.abs(l)<1e-6?null:(l=1/l,a*=l,o*=l,i*=l,u=Math.sin(t),s=Math.cos(t),f=1-s,c=r[0],p=r[1],x=r[2],g=r[3],w=r[4],M=r[5],m=r[6],k=r[7],S=r[8],b=r[9],T=r[10],h=r[11],_=a*a*f+s,y=o*a*f+i*u,v=i*a*f-o*u,A=a*o*f-i*u,d=o*o*f+s,D=i*o*f+a*u,E=a*i*f+o*u,R=o*i*f-a*u,z=i*i*f+s,e[0]=c*_+w*y+S*v,e[1]=p*_+M*y+b*v,e[2]=x*_+m*y+T*v,e[3]=g*_+k*y+h*v,e[4]=c*A+w*d+S*D,e[5]=p*A+M*d+b*D,e[6]=x*A+m*d+T*D,e[7]=g*A+k*d+h*D,e[8]=c*E+w*R+S*z,e[9]=p*E+M*R+b*z,e[10]=x*E+m*R+T*z,e[11]=g*E+k*R+h*z,r!==e&&(e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e)}});var d9=_e((yxe,h9)=>{h9.exports=yQ;function yQ(e,r,t){var n=Math.sin(t),a=Math.cos(t),o=r[4],i=r[5],l=r[6],u=r[7],s=r[8],f=r[9],c=r[10],p=r[11];return r!==e&&(e[0]=r[0],e[1]=r[1],e[2]=r[2],e[3]=r[3],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e[4]=o*a+s*n,e[5]=i*a+f*n,e[6]=l*a+c*n,e[7]=u*a+p*n,e[8]=s*a-o*n,e[9]=f*a-i*n,e[10]=c*a-l*n,e[11]=p*a-u*n,e}});var g9=_e((mxe,p9)=>{p9.exports=mQ;function mQ(e,r,t){var n=Math.sin(t),a=Math.cos(t),o=r[0],i=r[1],l=r[2],u=r[3],s=r[8],f=r[9],c=r[10],p=r[11];return r!==e&&(e[4]=r[4],e[5]=r[5],e[6]=r[6],e[7]=r[7],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e[0]=o*a-s*n,e[1]=i*a-f*n,e[2]=l*a-c*n,e[3]=u*a-p*n,e[8]=o*n+s*a,e[9]=i*n+f*a,e[10]=l*n+c*a,e[11]=u*n+p*a,e}});var m9=_e((bxe,y9)=>{y9.exports=bQ;function bQ(e,r,t){var n=Math.sin(t),a=Math.cos(t),o=r[0],i=r[1],l=r[2],u=r[3],s=r[4],f=r[5],c=r[6],p=r[7];return r!==e&&(e[8]=r[8],e[9]=r[9],e[10]=r[10],e[11]=r[11],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e[0]=o*a+s*n,e[1]=i*a+f*n,e[2]=l*a+c*n,e[3]=u*a+p*n,e[4]=s*a-o*n,e[5]=f*a-i*n,e[6]=c*a-l*n,e[7]=p*a-u*n,e}});var x9=_e((xxe,b9)=>{b9.exports=xQ;function xQ(e,r,t){var n,a,o,i=t[0],l=t[1],u=t[2],s=Math.sqrt(i*i+l*l+u*u);return Math.abs(s)<1e-6?null:(s=1/s,i*=s,l*=s,u*=s,n=Math.sin(r),a=Math.cos(r),o=1-a,e[0]=i*i*o+a,e[1]=l*i*o+u*n,e[2]=u*i*o-l*n,e[3]=0,e[4]=i*l*o-u*n,e[5]=l*l*o+a,e[6]=u*l*o+i*n,e[7]=0,e[8]=i*u*o+l*n,e[9]=l*u*o-i*n,e[10]=u*u*o+a,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e)}});var w9=_e((_xe,_9)=>{_9.exports=_Q;function _Q(e,r,t){var n=r[0],a=r[1],o=r[2],i=r[3],l=n+n,u=a+a,s=o+o,f=n*l,c=n*u,p=n*s,x=a*u,g=a*s,w=o*s,M=i*l,m=i*u,k=i*s;return e[0]=1-(x+w),e[1]=c+k,e[2]=p-m,e[3]=0,e[4]=c-k,e[5]=1-(f+w),e[6]=g+M,e[7]=0,e[8]=p+m,e[9]=g-M,e[10]=1-(f+x),e[11]=0,e[12]=t[0],e[13]=t[1],e[14]=t[2],e[15]=1,e}});var T9=_e((wxe,M9)=>{M9.exports=wQ;function wQ(e,r){return e[0]=r[0],e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=r[1],e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=r[2],e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var k9=_e((Mxe,A9)=>{A9.exports=MQ;function MQ(e,r){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]=r[0],e[13]=r[1],e[14]=r[2],e[15]=1,e}});var C9=_e((Txe,S9)=>{S9.exports=TQ;function TQ(e,r){var t=Math.sin(r),n=Math.cos(r);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=n,e[6]=t,e[7]=0,e[8]=0,e[9]=-t,e[10]=n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var L9=_e((Axe,E9)=>{E9.exports=AQ;function AQ(e,r){var t=Math.sin(r),n=Math.cos(r);return e[0]=n,e[1]=0,e[2]=-t,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=t,e[9]=0,e[10]=n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var R9=_e((kxe,D9)=>{D9.exports=kQ;function kQ(e,r){var t=Math.sin(r),n=Math.cos(r);return e[0]=n,e[1]=t,e[2]=0,e[3]=0,e[4]=-t,e[5]=n,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}});var P9=_e((Sxe,F9)=>{F9.exports=SQ;function SQ(e,r){var t=r[0],n=r[1],a=r[2],o=r[3],i=t+t,l=n+n,u=a+a,s=t*i,f=n*i,c=n*l,p=a*i,x=a*l,g=a*u,w=o*i,M=o*l,m=o*u;return e[0]=1-c-g,e[1]=f+m,e[2]=p-M,e[3]=0,e[4]=f-m,e[5]=1-s-g,e[6]=x+w,e[7]=0,e[8]=p+M,e[9]=x-w,e[10]=1-s-c,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var z9=_e((Cxe,I9)=>{I9.exports=CQ;function CQ(e,r,t,n,a,o,i){var l=1/(t-r),u=1/(a-n),s=1/(o-i);return e[0]=o*2*l,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=o*2*u,e[6]=0,e[7]=0,e[8]=(t+r)*l,e[9]=(a+n)*u,e[10]=(i+o)*s,e[11]=-1,e[12]=0,e[13]=0,e[14]=i*o*2*s,e[15]=0,e}});var q9=_e((Exe,N9)=>{N9.exports=EQ;function EQ(e,r,t,n,a){var o=1/Math.tan(r/2),i=1/(n-a);return e[0]=o/t,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=o,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=(a+n)*i,e[11]=-1,e[12]=0,e[13]=0,e[14]=2*a*n*i,e[15]=0,e}});var O9=_e((Lxe,B9)=>{B9.exports=LQ;function LQ(e,r,t,n){var a=Math.tan(r.upDegrees*Math.PI/180),o=Math.tan(r.downDegrees*Math.PI/180),i=Math.tan(r.leftDegrees*Math.PI/180),l=Math.tan(r.rightDegrees*Math.PI/180),u=2/(i+l),s=2/(a+o);return e[0]=u,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=s,e[6]=0,e[7]=0,e[8]=-((i-l)*u*.5),e[9]=(a-o)*s*.5,e[10]=n/(t-n),e[11]=-1,e[12]=0,e[13]=0,e[14]=n*t/(t-n),e[15]=0,e}});var H9=_e((Dxe,U9)=>{U9.exports=DQ;function DQ(e,r,t,n,a,o,i){var l=1/(r-t),u=1/(n-a),s=1/(o-i);return e[0]=-2*l,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*u,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*s,e[11]=0,e[12]=(r+t)*l,e[13]=(a+n)*u,e[14]=(i+o)*s,e[15]=1,e}});var G9=_e((Rxe,V9)=>{var RQ=J3();V9.exports=FQ;function FQ(e,r,t,n){var a,o,i,l,u,s,f,c,p,x,g=r[0],w=r[1],M=r[2],m=n[0],k=n[1],S=n[2],b=t[0],T=t[1],h=t[2];return Math.abs(g-b)<1e-6&&Math.abs(w-T)<1e-6&&Math.abs(M-h)<1e-6?RQ(e):(f=g-b,c=w-T,p=M-h,x=1/Math.sqrt(f*f+c*c+p*p),f*=x,c*=x,p*=x,a=k*p-S*c,o=S*f-m*p,i=m*c-k*f,x=Math.sqrt(a*a+o*o+i*i),x?(x=1/x,a*=x,o*=x,i*=x):(a=0,o=0,i=0),l=c*i-p*o,u=p*a-f*i,s=f*o-c*a,x=Math.sqrt(l*l+u*u+s*s),x?(x=1/x,l*=x,u*=x,s*=x):(l=0,u=0,s=0),e[0]=a,e[1]=l,e[2]=f,e[3]=0,e[4]=o,e[5]=u,e[6]=c,e[7]=0,e[8]=i,e[9]=s,e[10]=p,e[11]=0,e[12]=-(a*g+o*w+i*M),e[13]=-(l*g+u*w+s*M),e[14]=-(f*g+c*w+p*M),e[15]=1,e)}});var X9=_e((Fxe,Y9)=>{Y9.exports=PQ;function PQ(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]+")"}});var $3=_e((Pxe,W9)=>{W9.exports={create:Y8(),clone:W8(),copy:J8(),identity:J3(),transpose:Q8(),invert:e9(),adjoint:t9(),determinant:a9(),multiply:o9(),translate:s9(),scale:f9(),rotate:v9(),rotateX:d9(),rotateY:g9(),rotateZ:m9(),fromRotation:x9(),fromRotationTranslation:w9(),fromScaling:T9(),fromTranslation:k9(),fromXRotation:C9(),fromYRotation:L9(),fromZRotation:R9(),fromQuat:P9(),frustum:z9(),perspective:q9(),perspectiveFromFieldOfView:O9(),ortho:H9(),lookAt:G9(),str:X9()}});var Fh=_e(jt=>{"use strict";var IQ=$3();jt.init2dArray=function(e,r){for(var t=new Array(e),n=0;n{"use strict";var zQ=at(),Z9=il(),NQ=Fh(),qQ=$3();function BQ(e){var r;if(typeof e=="string"){if(r=document.getElementById(e),r===null)throw new Error("No DOM element with id '"+e+"' exists on the page.");return r}else if(e==null)throw new Error("DOM element provided is null or undefined");return e}function OQ(e){var r=zQ.select(e);return r.node()instanceof HTMLElement&&r.size()&&r.classed("js-plotly-plot")}function J9(e){var r=e&&e.parentNode;r&&r.removeChild(e)}function UQ(e,r){$9("global",e,r)}function $9(e,r,t){var n="plotly.js-style-"+e,a=document.getElementById(n);if(!(a&&a.matches(".no-inline-styles"))){a||(a=document.createElement("style"),a.setAttribute("id",n),a.appendChild(document.createTextNode("")),document.head.appendChild(a));var o=a.sheet;o?o.insertRule?o.insertRule(r+"{"+t+"}",0):o.addRule?o.addRule(r,t,0):Z9.warn("addStyleRule failed"):Z9.warn("Cannot addRelatedStyleRule, probably due to strict CSP...")}}function HQ(e){var r="plotly.js-style-"+e,t=document.getElementById(r);t&&J9(t)}function VQ(e,r,t,n,a,o){var i=n.split(":"),l=a.split(":"),u="data-btn-style-event-added";o||(o=document),o.querySelectorAll(e).forEach(function(s){s._hoverStyle={activeStyleParts:i,inactiveStyleParts:l},s.getAttribute(u)||(s.addEventListener("mouseenter",function(){var f=this._hoverStyle,c=this.querySelector(t);c&&(c.style[f.activeStyleParts[0]]=f.activeStyleParts[1])}),s.addEventListener("mouseleave",function(){var f=this._hoverStyle,c=this.querySelector(t);c&&(r&&this.matches(r)?c.style[f.activeStyleParts[0]]=f.activeStyleParts[1]:c.style[f.inactiveStyleParts[0]]=f.inactiveStyleParts[1])}),s.setAttribute(u,!0))})}function GQ(e){var r=Q9(e),t=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];return r.forEach(function(n){var a=K9(n);if(a){var o=NQ.convertCssMatrix(a);t=qQ.multiply(t,t,o)}}),t}function K9(e){var r=window.getComputedStyle(e,null),t=r.getPropertyValue("-webkit-transform")||r.getPropertyValue("-moz-transform")||r.getPropertyValue("-ms-transform")||r.getPropertyValue("-o-transform")||r.getPropertyValue("transform");return t==="none"?null:t.replace("matrix","").replace("3d","").slice(1,-1).split(",").map(function(n){return+n})}function Q9(e){for(var r=[];YQ(e);)r.push(e),e=e.parentNode,typeof ShadowRoot=="function"&&e instanceof ShadowRoot&&(e=e.host);return r}function YQ(e){return e&&(e instanceof Element||e instanceof HTMLElement)}function XQ(e,r){return e&&r&&e.top===r.top&&e.left===r.left&&e.right===r.right&&e.bottom===r.bottom}j9.exports={getGraphDiv:BQ,isPlotDiv:OQ,removeElement:J9,addStyleRule:UQ,addRelatedStyleRule:$9,deleteRelatedStyleRule:HQ,setStyleOnHover:VQ,getFullTransformMatrix:GQ,getElementTransformMatrix:K9,getElementAndAncestors:Q9,equalDomRects:XQ}});var zf=_e((Nxe,eM)=>{"use strict";eM.exports={mode:{valType:"enumerated",dflt:"afterall",values:["immediate","next","afterall"]},direction:{valType:"enumerated",values:["forward","reverse"],dflt:"forward"},fromcurrent:{valType:"boolean",dflt:!1},frame:{duration:{valType:"number",min:0,dflt:500},redraw:{valType:"boolean",dflt:!0}},transition:{duration:{valType:"number",min:0,dflt:500,editType:"none"},easing:{valType:"enumerated",dflt:"cubic-in-out",values:["linear","quad","cubic","sin","exp","circle","elastic","back","bounce","linear-in","quad-in","cubic-in","sin-in","exp-in","circle-in","elastic-in","back-in","bounce-in","linear-out","quad-out","cubic-out","sin-out","exp-out","circle-out","elastic-out","back-out","bounce-out","linear-in-out","quad-in-out","cubic-in-out","sin-in-out","exp-in-out","circle-in-out","elastic-in-out","back-in-out","bounce-in-out"],editType:"none"},ordering:{valType:"enumerated",values:["layout first","traces first"],dflt:"layout first",editType:"none"}}}});var ia=_e((qxe,lM)=>{"use strict";var tM=Ft().extendFlat,WQ=os(),nM={valType:"flaglist",extras:["none"],flags:["calc","clearAxisTypes","plot","style","markerSize","colorbars"]},aM={valType:"flaglist",extras:["none"],flags:["calc","plot","legend","ticks","axrange","layoutstyle","modebar","camera","arraydraw","colorbars"]},ZQ=nM.flags.slice().concat(["fullReplot"]),JQ=aM.flags.slice().concat("layoutReplot");lM.exports={traces:nM,layout:aM,traceFlags:function(){return rM(ZQ)},layoutFlags:function(){return rM(JQ)},update:function(e,r){var t=r.editType;if(t&&t!=="none")for(var n=t.split("+"),a=0;a{"use strict";K3.dash={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",editType:"style"};K3.pattern={shape:{valType:"enumerated",values:["","/","\\","x","-","|","+","."],dflt:"",arrayOk:!0,editType:"style"},path:{valType:"string",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"}});var Q3={};Ut(Q3,{DATE_FORMAT_LINK:()=>KQ,FORMAT_LINK:()=>$Q});var $Q,KQ,j3=Ot(()=>{"use strict";$Q="https://github.com/d3/d3-format/tree/v1.4.5#d3-format",KQ="https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format"});var Mi=_e(z0=>{"use strict";var{DATE_FORMAT_LINK:QQ,FORMAT_LINK:jQ}=(j3(),or(Q3)),ej=["Variables that can't be found will be replaced with the specifier.",'For example, a template of "data: %{x}, %{y}" will result in a value of "data: 1, %{y}" if x is 1 and y is missing.',"Variables with an undefined value will be replaced with the fallback value."].join(" ");function rj({supportOther:e}={}){return["Variables are inserted using %{variable},",'for example "y: %{y}"'+(e?" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown.":"."),`Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}".`,jQ,"for details on the formatting syntax.",`Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}".`,QQ,"for details on the date formatting syntax.",ej].join(" ")}z0.templateFormatStringDescription=rj;z0.hovertemplateAttrs=({editType:e="none",arrayOk:r}={},t={})=>_t({valType:"string",dflt:"",editType:e},r!==!1?{arrayOk:!0}:{});z0.texttemplateAttrs=({editType:e="calc",arrayOk:r}={},t={})=>_t({valType:"string",dflt:"",editType:e},r!==!1?{arrayOk:!0}:{});z0.shapeTexttemplateAttrs=({editType:e="arraydraw",newshape:r}={},t={})=>({valType:"string",dflt:"",editType:e});z0.templatefallbackAttrs=({editType:e="none"}={})=>({valType:"any",dflt:"-",editType:e})});var zh=_e((Hxe,hM)=>{"use strict";function ul(e,r){return r?r.d2l(e):e}function sM(e,r){return r?r.l2d(e):e}function tj(e){return e.x0}function nj(e){return e.x1}function aj(e){return e.y0}function ij(e){return e.y1}function uM(e){return e.x0shift||0}function fM(e){return e.x1shift||0}function cM(e){return e.y0shift||0}function vM(e){return e.y1shift||0}function Ph(e,r){return ul(e.x1,r)+fM(e)-ul(e.x0,r)-uM(e)}function Ih(e,r,t){return ul(e.y1,t)+vM(e)-ul(e.y0,t)-cM(e)}function oj(e,r){return Math.abs(Ph(e,r))}function lj(e,r,t){return Math.abs(Ih(e,r,t))}function sj(e,r,t){return e.type!=="line"?void 0:Math.sqrt(Math.pow(Ph(e,r),2)+Math.pow(Ih(e,r,t),2))}function uj(e,r){return sM((ul(e.x1,r)+fM(e)+ul(e.x0,r)+uM(e))/2,r)}function fj(e,r,t){return sM((ul(e.y1,t)+vM(e)+ul(e.y0,t)+cM(e))/2,t)}function cj(e,r,t){return e.type!=="line"?void 0:Ih(e,r,t)/Ph(e,r)}var vj=["x0","x1","y0","y1","dy","height","ycenter"],hj=["x0","x1","y0","y1","dx","width","xcenter"];hM.exports={x0:tj,x1:nj,y0:aj,y1:ij,slope:cj,dx:Ph,dy:Ih,width:oj,height:lj,length:sj,xcenter:uj,ycenter:fj,simpleXVariables:vj,simpleYVariables:hj}});var gM=_e((Vxe,pM)=>{"use strict";var dj=ia().overrideAll,bs=Vn(),dM=Hn(),pj=sl().dash,fl=Ft().extendFlat,{shapeTexttemplateAttrs:gj,templatefallbackAttrs:yj}=Mi(),mj=zh();pM.exports=dj({newshape:{visible:fl({},bs.visible,{}),showlegend:{valType:"boolean",dflt:!1},legend:fl({},bs.legend,{}),legendgroup:fl({},bs.legendgroup,{}),legendgrouptitle:{text:fl({},bs.legendgrouptitle.text,{}),font:dM({})},legendrank:fl({},bs.legendrank,{}),legendwidth:fl({},bs.legendwidth,{}),line:{color:{valType:"color"},width:{valType:"number",min:0,dflt:4},dash:fl({},pj,{dflt:"solid"})},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd"},opacity:{valType:"number",min:0,max:1,dflt:1},layer:{valType:"enumerated",values:["below","above","between"],dflt:"above"},drawdirection:{valType:"enumerated",values:["ortho","horizontal","vertical","diagonal"],dflt:"diagonal"},name:fl({},bs.name,{}),label:{text:{valType:"string",dflt:""},texttemplate:gj({newshape:!0},{keys:Object.keys(mj)}),texttemplatefallback:yj({editType:"arraydraw"}),font:dM({}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"]},textangle:{valType:"angle",dflt:"auto"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto"},yanchor:{valType:"enumerated",values:["top","middle","bottom"]},padding:{valType:"number",dflt:3,min:0}}},activeshape:{fillcolor:{valType:"color",dflt:"rgb(255,0,255)",description:"Sets the color filling the active shape' interior."},opacity:{valType:"number",min:0,max:1,dflt:.5}}},"none","from-root")});var mM=_e((Gxe,yM)=>{"use strict";var bj=sl().dash,xj=Ft().extendFlat;yM.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:xj({},bj,{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"}}});var Nh=_e((Yxe,bM)=>{"use strict";bM.exports=function(e){var r=e.editType;return{t:{valType:"number",dflt:0,editType:r},r:{valType:"number",dflt:0,editType:r},b:{valType:"number",dflt:0,editType:r},l:{valType:"number",dflt:0,editType:r},editType:r}}});var N0=_e((Xxe,MM)=>{"use strict";var ey=Hn(),_j=zf(),qh=ji(),xM=gM(),_M=mM(),wj=Nh(),wM=Ft().extendFlat,Bh=ey({editType:"calc"});Bh.family.dflt='"Open Sans", verdana, arial, sans-serif';Bh.size.dflt=12;Bh.color.dflt=qh.defaultLine;MM.exports={font:Bh,title:{text:{valType:"string",editType:"layoutstyle"},font:ey({editType:"layoutstyle"}),subtitle:{text:{valType:"string",editType:"layoutstyle"},font:ey({editType:"layoutstyle"}),editType:"layoutstyle"},xref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle"},yref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle"},x:{valType:"number",min:0,max:1,dflt:.5,editType:"layoutstyle"},y:{valType:"number",min:0,max:1,dflt:"auto",editType:"layoutstyle"},xanchor:{valType:"enumerated",dflt:"auto",values:["auto","left","center","right"],editType:"layoutstyle"},yanchor:{valType:"enumerated",dflt:"auto",values:["auto","top","middle","bottom"],editType:"layoutstyle"},pad:wM(wj({editType:"layoutstyle"}),{}),automargin:{valType:"boolean",dflt:!1,editType:"plot"},editType:"layoutstyle"},uniformtext:{mode:{valType:"enumerated",values:[!1,"hide","show"],dflt:!1,editType:"plot"},minsize:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"},autosize:{valType:"boolean",dflt:!1,editType:"none"},width:{valType:"number",min:10,dflt:700,editType:"plot"},height:{valType:"number",min:10,dflt:450,editType:"plot"},minreducedwidth:{valType:"number",min:2,dflt:64,editType:"plot"},minreducedheight:{valType:"number",min:2,dflt:64,editType:"plot"},margin:{l:{valType:"number",min:0,dflt:80,editType:"plot"},r:{valType:"number",min:0,dflt:80,editType:"plot"},t:{valType:"number",min:0,dflt:100,editType:"plot"},b:{valType:"number",min:0,dflt:80,editType:"plot"},pad:{valType:"number",min:0,dflt:0,editType:"plot"},autoexpand:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},computed:{valType:"any",editType:"none"},paper_bgcolor:{valType:"color",dflt:qh.background,editType:"plot"},plot_bgcolor:{valType:"color",dflt:qh.background,editType:"layoutstyle"},autotypenumbers:{valType:"enumerated",values:["convert types","strict"],dflt:"convert types",editType:"calc"},separators:{valType:"string",editType:"plot"},showlegend:{valType:"boolean",editType:"legend"},colorway:{valType:"colorlist",dflt:qh.defaults,editType:"calc"},datarevision:{valType:"any",editType:"calc"},uirevision:{valType:"any",editType:"none"},editrevision:{valType:"any",editType:"none"},selectionrevision:{valType:"any",editType:"none"},template:{valType:"any",editType:"calc"},newshape:xM.newshape,activeshape:xM.activeshape,newselection:_M.newselection,activeselection:_M.activeselection,meta:{valType:"any",arrayOk:!0,editType:"plot"},transition:wM({},_j.transition,{editType:"none"})}});var TM=_e(()=>{(function(){if(!document.getElementById("ce8d464691048653ffe3a57c6c18ab566e8366f186677868cf724621a857b4fe")){var e=document.createElement("style");e.id="ce8d464691048653ffe3a57c6c18ab566e8366f186677868cf724621a857b4fe",e.textContent='.maplibregl-map{font:12px/20px Helvetica Neue,Arial,Helvetica,sans-serif;overflow:hidden;position:relative;-webkit-tap-highlight-color:rgb(0 0 0/0);-webkit-touch-callout:none}.maplibregl-canvas{position:absolute;left:0;top:0}.maplibregl-map:fullscreen{width:100%;height:100%}.maplibregl-ctrl-group button.maplibregl-ctrl-compass{touch-action:none}.maplibregl-canvas-container.maplibregl-interactive,.maplibregl-ctrl-group button.maplibregl-ctrl-compass{cursor:grab;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-canvas-container.maplibregl-interactive.maplibregl-track-pointer{cursor:pointer}.maplibregl-canvas-container.maplibregl-interactive:active,.maplibregl-ctrl-group button.maplibregl-ctrl-compass:active{cursor:grabbing}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-canvas-container.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:pinch-zoom}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:none}.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures,.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-ctrl-bottom-left,.maplibregl-ctrl-bottom-right,.maplibregl-ctrl-top-left,.maplibregl-ctrl-top-right{position:absolute;pointer-events:none;z-index:2}.maplibregl-ctrl-top-left{top:0;left:0}.maplibregl-ctrl-top-right{top:0;right:0}.maplibregl-ctrl-bottom-left{bottom:0;left:0}.maplibregl-ctrl-bottom-right{right:0;bottom:0}.maplibregl-ctrl{clear:both;pointer-events:auto;transform:translate(0)}.maplibregl-ctrl-top-left .maplibregl-ctrl{margin:10px 0 0 10px;float:left}.maplibregl-ctrl-top-right .maplibregl-ctrl{margin:10px 10px 0 0;float:right}.maplibregl-ctrl-bottom-left .maplibregl-ctrl{margin:0 0 10px 10px;float:left}.maplibregl-ctrl-bottom-right .maplibregl-ctrl{margin:0 10px 10px 0;float:right}.maplibregl-ctrl-group{border-radius:4px;background:#fff}.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px rgba(0,0,0,.1)}@media (forced-colors:active){.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px ButtonText}}.maplibregl-ctrl-group button{width:29px;height:29px;display:block;padding:0;outline:none;border:0;box-sizing:border-box;background-color:transparent;cursor:pointer}.maplibregl-ctrl button{-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-ctrl-group button+button{border-top:1px solid #ddd}.maplibregl-ctrl button .maplibregl-ctrl-icon{display:block;width:100%;height:100%;background-repeat:no-repeat;background-position:50%}@media (forced-colors:active){.maplibregl-ctrl-icon{background-color:transparent}.maplibregl-ctrl-group button+button{border-top:1px solid ButtonText}}.maplibregl-ctrl button::-moz-focus-inner{border:0;padding:0}.maplibregl-ctrl-attrib-button:focus,.maplibregl-ctrl-group button:focus{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl button:disabled{cursor:not-allowed}.maplibregl-ctrl button:disabled .maplibregl-ctrl-icon{opacity:.25}@media (hover:hover){.maplibregl-ctrl button:not(:disabled):hover{background-color:rgba(0,0,0,.05)}}.maplibregl-ctrl button:not(:disabled):active{background-color:rgba(0,0,0,.05)}.maplibregl-ctrl-group button:focus:focus-visible{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl-group button:focus:not(:focus-visible){box-shadow:none}.maplibregl-ctrl-group button:focus:first-child{border-radius:4px 4px 0 0}.maplibregl-ctrl-group button:focus:last-child{border-radius:0 0 4px 4px}.maplibregl-ctrl-group button:focus:only-child{border-radius:inherit}.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M10%2013c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h9c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M14.5%208.5c-.75%200-1.5.75-1.5%201.5v3h-3c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h3v3c0%20.75.75%201.5%201.5%201.5S16%2019.75%2016%2019v-3h3c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013h-3v-3c0-.75-.75-1.5-1.5-1.5%22%2F%3E%3C%2Fsvg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M10%2013c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h9c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M14.5%208.5c-.75%200-1.5.75-1.5%201.5v3h-3c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h3v3c0%20.75.75%201.5%201.5%201.5S16%2019.75%2016%2019v-3h3c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013h-3v-3c0-.75-.75-1.5-1.5-1.5%22%2F%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M10%2013c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h9c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M14.5%208.5c-.75%200-1.5.75-1.5%201.5v3h-3c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h3v3c0%20.75.75%201.5%201.5%201.5S16%2019.75%2016%2019v-3h3c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013h-3v-3c0-.75-.75-1.5-1.5-1.5%22%2F%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M24%2016v5.5c0%201.75-.75%202.5-2.5%202.5H16v-1l3-1.5-4-5.5%201-1%205.5%204%201.5-3zM6%2016l1.5%203%205.5-4%201%201-4%205.5%203%201.5v1H7.5C5.75%2024%205%2023.25%205%2021.5V16zm7-11v1l-3%201.5%204%205.5-1%201-5.5-4L6%2013H5V7.5C5%205.75%205.75%205%207.5%205zm11%202.5c0-1.75-.75-2.5-2.5-2.5H16v1l3%201.5-4%205.5%201%201%205.5-4%201.5%203h1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M18.5%2016c-1.75%200-2.5.75-2.5%202.5V24h1l1.5-3%205.5%204%201-1-4-5.5%203-1.5v-1zM13%2018.5c0-1.75-.75-2.5-2.5-2.5H5v1l3%201.5L4%2024l1%201%205.5-4%201.5%203h1zm3-8c0%201.75.75%202.5%202.5%202.5H24v-1l-3-1.5L25%205l-1-1-5.5%204L17%205h-1zM10.5%2013c1.75%200%202.5-.75%202.5-2.5V5h-1l-1.5%203L5%204%204%205l4%205.5L5%2012v1z%22%2F%3E%3C%2Fsvg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M24%2016v5.5c0%201.75-.75%202.5-2.5%202.5H16v-1l3-1.5-4-5.5%201-1%205.5%204%201.5-3zM6%2016l1.5%203%205.5-4%201%201-4%205.5%203%201.5v1H7.5C5.75%2024%205%2023.25%205%2021.5V16zm7-11v1l-3%201.5%204%205.5-1%201-5.5-4L6%2013H5V7.5C5%205.75%205.75%205%207.5%205zm11%202.5c0-1.75-.75-2.5-2.5-2.5H16v1l3%201.5-4%205.5%201%201%205.5-4%201.5%203h1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M18.5%2016c-1.75%200-2.5.75-2.5%202.5V24h1l1.5-3%205.5%204%201-1-4-5.5%203-1.5v-1zM13%2018.5c0-1.75-.75-2.5-2.5-2.5H5v1l3%201.5L4%2024l1%201%205.5-4%201.5%203h1zm3-8c0%201.75.75%202.5%202.5%202.5H24v-1l-3-1.5L25%205l-1-1-5.5%204L17%205h-1zM10.5%2013c1.75%200%202.5-.75%202.5-2.5V5h-1l-1.5%203L5%204%204%205l4%205.5L5%2012v1z%22%2F%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M24%2016v5.5c0%201.75-.75%202.5-2.5%202.5H16v-1l3-1.5-4-5.5%201-1%205.5%204%201.5-3zM6%2016l1.5%203%205.5-4%201%201-4%205.5%203%201.5v1H7.5C5.75%2024%205%2023.25%205%2021.5V16zm7-11v1l-3%201.5%204%205.5-1%201-5.5-4L6%2013H5V7.5C5%205.75%205.75%205%207.5%205zm11%202.5c0-1.75-.75-2.5-2.5-2.5H16v1l3%201.5-4%205.5%201%201%205.5-4%201.5%203h1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M18.5%2016c-1.75%200-2.5.75-2.5%202.5V24h1l1.5-3%205.5%204%201-1-4-5.5%203-1.5v-1zM13%2018.5c0-1.75-.75-2.5-2.5-2.5H5v1l3%201.5L4%2024l1%201%205.5-4%201.5%203h1zm3-8c0%201.75.75%202.5%202.5%202.5H24v-1l-3-1.5L25%205l-1-1-5.5%204L17%205h-1zM10.5%2013c1.75%200%202.5-.75%202.5-2.5V5h-1l-1.5%203L5%204%204%205l4%205.5L5%2012v1z%22%2F%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22m10.5%2014%204-8%204%208z%22%2F%3E%3Cpath%20fill%3D%22%23ccc%22%20d%3D%22m10.5%2016%204%208%204-8z%22%2F%3E%3C%2Fsvg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22m10.5%2014%204-8%204%208z%22%2F%3E%3Cpath%20fill%3D%22%23ccc%22%20d%3D%22m10.5%2016%204%208%204-8z%22%2F%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22m10.5%2014%204-8%204%208z%22%2F%3E%3Cpath%20fill%3D%22%23ccc%22%20d%3D%22m10.5%2016%204%208%204-8z%22%2F%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-globe .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2222%22%20height%3D%2222%22%20fill%3D%22none%22%20stroke%3D%22%23333%22%20viewBox%3D%220%200%2022%2022%22%3E%3Ccircle%20cx%3D%2211%22%20cy%3D%2211%22%20r%3D%228.5%22%2F%3E%3Cpath%20d%3D%22M17.5%2011c0%204.819-3.02%208.5-6.5%208.5S4.5%2015.819%204.5%2011%207.52%202.5%2011%202.5s6.5%203.681%206.5%208.5Z%22%2F%3E%3Cpath%20d%3D%22M13.5%2011c0%202.447-.331%204.64-.853%206.206-.262.785-.562%201.384-.872%201.777-.314.399-.58.517-.775.517s-.461-.118-.775-.517c-.31-.393-.61-.992-.872-1.777C8.831%2015.64%208.5%2013.446%208.5%2011s.331-4.64.853-6.206c.262-.785.562-1.384.872-1.777.314-.399.58-.517.775-.517s.461.118.775.517c.31.393.61.992.872%201.777.522%201.565.853%203.76.853%206.206Z%22%2F%3E%3Cpath%20d%3D%22M11%207.5c-1.909%200-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3%201.3%200%200%201-.224-.138q.07-.058.224-.138c.299-.151.763-.302%201.379-.434C7.378%205.666%209.091%205.5%2011%205.5s3.622.166%204.845.428c.616.132%201.08.283%201.379.434.105.053.177.1.224.138q-.07.058-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm0%209c-1.909%200-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3%201.3%200%200%201-.224-.138%201.3%201.3%200%200%201%20.224-.138c.299-.151.763-.302%201.379-.434C7.378%2014.666%209.091%2014.5%2011%2014.5s3.622.166%204.845.428c.616.132%201.08.283%201.379.434.105.053.177.1.224.138a1.3%201.3%200%200%201-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm0-4c-2.46%200-4.672-.222-6.255-.574-.796-.177-1.406-.38-1.805-.59a1.5%201.5%200%200%201-.39-.272.3.3%200%200%201-.047-.064.3.3%200%200%201%20.048-.064c.066-.073.189-.167.389-.272.399-.21%201.009-.413%201.805-.59C6.328%209.722%208.54%209.5%2011%209.5s4.672.222%206.256.574c.795.177%201.405.38%201.804.59.2.105.323.2.39.272a.3.3%200%200%201%20.047.064.3.3%200%200%201-.048.064%201.4%201.4%200%200%201-.389.272c-.399.21-1.009.413-1.804.59-1.584.352-3.796.574-6.256.574Zm-8.501-1.51v.002zm0%20.018v.002zm17.002.002v-.002zm0-.018v-.002z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-globe-enabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2222%22%20height%3D%2222%22%20fill%3D%22none%22%20stroke%3D%22%2333b5e5%22%20viewBox%3D%220%200%2022%2022%22%3E%3Ccircle%20cx%3D%2211%22%20cy%3D%2211%22%20r%3D%228.5%22%2F%3E%3Cpath%20d%3D%22M17.5%2011c0%204.819-3.02%208.5-6.5%208.5S4.5%2015.819%204.5%2011%207.52%202.5%2011%202.5s6.5%203.681%206.5%208.5Z%22%2F%3E%3Cpath%20d%3D%22M13.5%2011c0%202.447-.331%204.64-.853%206.206-.262.785-.562%201.384-.872%201.777-.314.399-.58.517-.775.517s-.461-.118-.775-.517c-.31-.393-.61-.992-.872-1.777C8.831%2015.64%208.5%2013.446%208.5%2011s.331-4.64.853-6.206c.262-.785.562-1.384.872-1.777.314-.399.58-.517.775-.517s.461.118.775.517c.31.393.61.992.872%201.777.522%201.565.853%203.76.853%206.206Z%22%2F%3E%3Cpath%20d%3D%22M11%207.5c-1.909%200-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3%201.3%200%200%201-.224-.138q.07-.058.224-.138c.299-.151.763-.302%201.379-.434C7.378%205.666%209.091%205.5%2011%205.5s3.622.166%204.845.428c.616.132%201.08.283%201.379.434.105.053.177.1.224.138q-.07.058-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm0%209c-1.909%200-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3%201.3%200%200%201-.224-.138%201.3%201.3%200%200%201%20.224-.138c.299-.151.763-.302%201.379-.434C7.378%2014.666%209.091%2014.5%2011%2014.5s3.622.166%204.845.428c.616.132%201.08.283%201.379.434.105.053.177.1.224.138a1.3%201.3%200%200%201-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm0-4c-2.46%200-4.672-.222-6.255-.574-.796-.177-1.406-.38-1.805-.59a1.5%201.5%200%200%201-.39-.272.3.3%200%200%201-.047-.064.3.3%200%200%201%20.048-.064c.066-.073.189-.167.389-.272.399-.21%201.009-.413%201.805-.59C6.328%209.722%208.54%209.5%2011%209.5s4.672.222%206.256.574c.795.177%201.405.38%201.804.59.2.105.323.2.39.272a.3.3%200%200%201%20.047.064.3.3%200%200%201-.048.064%201.4%201.4%200%200%201-.389.272c-.399.21-1.009.413-1.804.59-1.584.352-3.796.574-6.256.574Zm-8.501-1.51v.002zm0%20.018v.002zm17.002.002v-.002zm0-.018v-.002z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-terrain .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2222%22%20height%3D%2222%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2022%2022%22%3E%3Cpath%20d%3D%22m1.754%2013.406%204.453-4.851%203.09%203.09%203.281%203.277.969-.969-3.309-3.312%203.844-4.121%206.148%206.886h1.082v-.855l-7.207-8.07-4.84%205.187L6.169%206.57l-5.48%205.965v.871ZM.688%2016.844h20.625v1.375H.688Zm0%200%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-terrain-enabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2222%22%20height%3D%2222%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2022%2022%22%3E%3Cpath%20d%3D%22m1.754%2013.406%204.453-4.851%203.09%203.09%203.281%203.277.969-.969-3.309-3.312%203.844-4.121%206.148%206.886h1.082v-.855l-7.207-8.07-4.84%205.187L6.169%206.57l-5.48%205.965v.871ZM.688%2016.844h20.625v1.375H.688Zm0%200%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23aaa%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3Cpath%20fill%3D%22red%22%20d%3D%22m14%205%201%201-9%209-1-1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23e58978%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23e54e33%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-waiting .maplibregl-ctrl-icon{animation:maplibregl-spin 2s linear infinite}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23999%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3Cpath%20fill%3D%22red%22%20d%3D%22m14%205%201%201-9%209-1-1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23e58978%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23e54e33%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23666%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3Cpath%20fill%3D%22red%22%20d%3D%22m14%205%201%201-9%209-1-1z%22%2F%3E%3C%2Fsvg%3E")}}@keyframes maplibregl-spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}a.maplibregl-ctrl-logo{width:88px;height:23px;margin:0 0 -4px -4px;display:block;background-repeat:no-repeat;cursor:pointer;overflow:hidden;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2288%22%20height%3D%2223%22%20fill%3D%22none%22%3E%3Cpath%20fill%3D%22%23000%22%20fill-opacity%3D%22.4%22%20fill-rule%3D%22evenodd%22%20d%3D%22M17.408%2016.796h-1.827l2.501-12.095h.198l3.324%206.533.988%202.19.988-2.19%203.258-6.533h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.929%205.644h-.098l-2.914-5.644-.757-1.71-.345%201.71zm1.958-3.42-.726%203.663a1.255%201.255%200%200%201-1.232%201.011h-1.827a1.255%201.255%200%200%201-1.229-1.509l2.501-12.095a1.255%201.255%200%200%201%201.23-1.001h.197a1.25%201.25%200%200%201%201.12.685l3.19%206.273%203.125-6.263a1.25%201.25%200%200%201%201.123-.695h.181a1.255%201.255%200%200%201%201.227.991l1.443%206.71a5%205%200%200%201%20.314-.787l.009-.016a4.6%204.6%200%200%201%201.777-1.887c.782-.46%201.668-.667%202.611-.667a4.6%204.6%200%200%201%201.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255%201.255%200%200%201%201.212.925%201.255%201.255%200%200%201%201.212-.925h1.711c.284%200%20.545.094.755.252.613-.3%201.312-.45%202.075-.45%201.356%200%202.557.445%203.482%201.4q.47.48.763%201.064V4.701a1.255%201.255%200%200%201%201.255-1.255h1.86A1.255%201.255%200%200%201%2054.44%204.7v9.194h2.217c.19%200%20.37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42%202.42%200%200%201-.682-1.71c0-.665.267-1.253.735-1.7a2.45%202.45%200%200%201%201.722-.674%202.43%202.43%200%200%201%201.705.675q.318.302.504.683V4.7a1.255%201.255%200%200%201%201.255-1.255h1.744A1.255%201.255%200%200%201%2065.812%204.7v3.335a4.8%204.8%200%200%201%201.526-.246c.938%200%201.817.214%202.59.69a4.47%204.47%200%200%201%201.67%201.743v-.98a1.255%201.255%200%200%201%201.256-1.256h1.777c.233%200%20.451.064.639.174a3.4%203.4%200%200%201%201.567-.372c.346%200%20.861.02%201.285.232a1.25%201.25%200%200%201%20.689%201.004%204.7%204.7%200%200%201%20.853-.588c.795-.44%201.675-.647%202.61-.647%201.385%200%202.65.39%203.525%201.396.836.938%201.168%202.173%201.168%203.528q-.001.515-.056%201.051a1.255%201.255%200%200%201-.947%201.09l.408.952a1.255%201.255%200%200%201-.477%201.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06%200-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8%205.8%200%200%201-.548-2.512q0-.429.053-.843a1.3%201.3%200%200%201-.333-.086l-.166-.004c-.223%200-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255%201.255%200%200%201-1.256%201.256h-1.777a1.255%201.255%200%200%201-1.256-1.256V15.69l-.032.057a4.8%204.8%200%200%201-1.86%201.833%205.04%205.04%200%200%201-2.484.634%204.5%204.5%200%200%201-1.935-.424%201.25%201.25%200%200%201-.764.258h-1.71a1.255%201.255%200%200%201-1.256-1.255V7.687a2.4%202.4%200%200%201-.428.625c.253.23.412.561.412.93v7.553a1.255%201.255%200%200%201-1.256%201.255h-1.843a1.25%201.25%200%200%201-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255%201.255%200%200%201-1.256-1.255v-1.251l-.061.117a4.7%204.7%200%200%201-1.782%201.884%204.77%204.77%200%200%201-2.485.67%205.6%205.6%200%200%201-1.485-.188l.009%202.764a1.255%201.255%200%200%201-1.255%201.259h-1.729a1.255%201.255%200%200%201-1.255-1.255v-3.537a1.255%201.255%200%200%201-1.167.793h-1.679a1.25%201.25%200%200%201-.77-.263%204.5%204.5%200%200%201-1.945.429c-.885%200-1.724-.21-2.495-.632l-.017-.01a5%205%200%200%201-1.081-.836%201.255%201.255%200%200%201-1.254%201.312h-1.81a1.255%201.255%200%200%201-1.228-.99l-.782-3.625-2.044%203.939a1.25%201.25%200%200%201-1.115.676h-.098a1.25%201.25%200%200%201-1.116-.68l-2.061-3.994zM35.92%2016.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033%201.332h1.678V9.242h-1.694l-.033%201.267q-.133-.329-.526-.658l-.032-.028a3.2%203.2%200%200%200-.668-.428l-.27-.12a3.3%203.3%200%200%200-1.235-.23q-1.136-.001-1.974.493a3.36%203.36%200%200%200-1.3%201.382q-.445.89-.444%202.074%200%201.2.51%202.107a3.8%203.8%200%200%200%201.382%201.381%203.9%203.9%200%200%200%201.893.477q.795%200%201.455-.33zm-2.789-5.38q-.576.675-.575%201.762%200%201.102.559%201.794.576.675%201.645.675a2.25%202.25%200%200%200%20.934-.19%202.2%202.2%200%200%200%20.468-.29l.178-.161a2.2%202.2%200%200%200%20.397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2%202.2%200%200%200-.633-.709l-.13-.086-.047-.028a2.1%202.1%200%200%200-1.073-.285q-1.052%200-1.629.692zm2.316%202.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96%200%200%200-.353-.389.85.85%200%200%200-.464-.127c-.4%200-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945%200%20.506.122.801.27.99.097.11.266.224.68.224.303%200%20.504-.09.687-.269zm7.545%201.705a2.6%202.6%200%200%200%20.331.423q.319.33.755.548l.173.074q.65.255%201.49.255%201.02%200%201.844-.493a3.45%203.45%200%200%200%201.316-1.4q.493-.904.493-2.089%200-1.909-.988-2.913-.988-1.02-2.584-1.02-.898%200-1.575.347a3%203%200%200%200-.415.262l-.199.166a3.4%203.4%200%200%200-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296%201.119.297%201.07%200%201.645-.675.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.435%200-.835.16a2%202%200%200%200-.284.136%202%202%200%200%200-.363.254%202.2%202.2%200%200%200-.46.569l-.082.162a2.6%202.6%200%200%200-.213%201.072v.115q0%20.707.296%201.267l.135.211zm.964-.818a1.1%201.1%200%200%200%20.367.385.94.94%200%200%200%20.476.118c.423%200%20.59-.117.687-.23.159-.194.28-.478.28-.95%200-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1%201%200%200%200-.503.135l-.012.007a.86.86%200%200%200-.335.343c-.073.133-.132.324-.132.614v.115a1.4%201.4%200%200%200%20.14.66zm15.7-6.222q.347-.346.346-.856a1.05%201.05%200%200%200-.345-.79%201.18%201.18%200%200%200-.84-.329q-.51%200-.855.33a1.05%201.05%200%200%200-.346.79q0%20.51.346.855.345.346.856.346.51%200%20.839-.346zm4.337%209.314.033-1.332q.191.403.59.747l.098.081a4%204%200%200%200%20.316.224l.223.122a3.2%203.2%200%200%200%201.44.322%203.8%203.8%200%200%200%201.875-.477%203.5%203.5%200%200%200%201.382-1.366q.527-.89.526-2.09%200-1.184-.444-2.073a3.24%203.24%200%200%200-1.283-1.399q-.823-.51-1.942-.51a3.5%203.5%200%200%200-1.527.344l-.086.043-.165.09a3%203%200%200%200-.33.214q-.432.315-.656.707a2%202%200%200%200-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5%202.5%200%200%200%20.566.7q.117.098.245.18l.144.08a2.1%202.1%200%200%200%20.975.232q1.07%200%201.645-.675.576-.69.576-1.778%200-1.102-.576-1.777-.56-.691-1.645-.692a2.2%202.2%200%200%200-1.015.235q-.22.113-.415.282l-.15.142a2.1%202.1%200%200%200-.42.594q-.223.479-.223%201.1v.115q0%20.705.293%201.26zm2.616-.293c.157-.191.28-.479.28-.967%200-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87%200%200%200-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0%20.285.057.499.144.669a1.1%201.1%200%200%200%20.367.405c.137.082.28.123.455.123.423%200%20.59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493%200%20.642.099l.247-1.794q-.196-.099-.717-.099a2.3%202.3%200%200%200-.545.063%202%202%200%200%200-.411.148%202.2%202.2%200%200%200-.4.249%202.5%202.5%200%200%200-.485.499%202.7%202.7%200%200%200-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5%201.5%200%200%201%20.466-.636%202.5%202.5%200%200%201%20.399-.253%202%202%200%200%201%20.224-.099zm9.784%202.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46%203.46%200%200%200-1.4%201.382q-.493.906-.493%202.106%200%201.07.428%201.975.428.89%201.332%201.432.906.526%202.255.526.973%200%201.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954%200-1.497-.444a1.6%201.6%200%200%201-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1%201%200%200%200-.156-.176q-.46-.428-1.316-.428-.986%200-1.494.604-.379.45-.494%201.234zm-27.053%202.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z%22%2F%3E%3Cpath%20fill%3D%22%23fff%22%20d%3D%22m19.63%2011.151-.757-1.71-.345%201.71-1.12%205.644h-1.827L18.083%204.7h.197l3.325%206.533.988%202.19.988-2.19L26.839%204.7h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.93%205.644h-.098l-2.913-5.644zm14.836%205.81q-1.02%200-1.893-.478a3.8%203.8%200%200%201-1.381-1.382q-.51-.906-.51-2.106%200-1.185.444-2.074a3.36%203.36%200%200%201%201.3-1.382q.839-.494%201.974-.494a3.3%203.3%200%200%201%201.234.231%203.3%203.3%200%200%201%20.97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02%201.053a3.17%203.17%200%200%201-1.662.444zm.296-1.482q.938%200%201.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2%202.2%200%200%200-.807-.872%202.1%202.1%200%200%200-1.119-.313q-1.053%200-1.629.692-.575.675-.575%201.76%200%201.103.559%201.795.577.675%201.645.675zm6.521-6.237h1.711v1.4q.906-1.597%202.83-1.597%201.596%200%202.584%201.02.988%201.005.988%202.914%200%201.185-.493%202.09a3.46%203.46%200%200%201-1.316%201.399%203.5%203.5%200%200%201-1.844.493q-.954%200-1.662-.329a2.67%202.67%200%200%201-1.086-.97l.017%205.134h-1.728zm4.048%206.22q1.07%200%201.645-.674.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.592%200-1.12.296-.51.28-.822.823-.296.527-.296%201.234v.115q0%20.708.296%201.267.313.543.823.855.51.296%201.119.297z%22%2F%3E%3Cpath%20fill%3D%22%23e1e3e9%22%20d%3D%22M51.325%204.7h1.86v10.45h3.473v1.646h-5.333zm7.12%204.542h1.843v7.553h-1.843zm.905-1.415a1.16%201.16%200%200%201-.856-.346%201.17%201.17%200%200%201-.346-.856%201.05%201.05%200%200%201%20.346-.79q.346-.329.856-.329.494%200%20.839.33a1.05%201.05%200%200%201%20.345.79%201.16%201.16%200%200%201-.345.855q-.33.346-.84.346zm7.875%209.133a3.17%203.17%200%200%201-1.662-.444q-.723-.46-1.004-1.053l-.033%201.332h-1.71V4.701h1.743v4.657l-.082%201.283q.279-.658%201.086-1.119a3.5%203.5%200%200%201%201.778-.477q1.119%200%201.942.51a3.24%203.24%200%200%201%201.283%201.4q.445.888.444%202.072%200%201.201-.526%202.09a3.5%203.5%200%200%201-1.382%201.366%203.8%203.8%200%200%201-1.876.477zm-.296-1.481q1.069%200%201.645-.675.577-.69.577-1.778%200-1.102-.577-1.776-.56-.691-1.645-.692a2.12%202.12%200%200%200-1.58.659q-.642.641-.642%201.694v.115q0%20.71.296%201.267a2.4%202.4%200%200%200%20.807.872%202.1%202.1%200%200%200%201.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14%202.14%200%200%201%201.349-.46q.527%200%20.724.098l-.247%201.794q-.149-.099-.642-.099-.774%200-1.416.494-.626.493-.626%201.58v3.883h-1.777V9.242zm9.534%207.718q-1.35%200-2.255-.526-.904-.543-1.332-1.432a4.6%204.6%200%200%201-.428-1.975q0-1.2.493-2.106a3.46%203.46%200%200%201%201.4-1.382q.889-.495%202.007-.494%201.744%200%202.584.97.855.956.856%202.7%200%20.444-.05.92h-5.43q.18%201.005.708%201.45.542.443%201.497.443.79%200%201.3-.131a4%204%200%200%200%20.938-.362l.542%201.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728%200-1.991%201.86z%22%2F%3E%3Cpath%20d%3D%22M5.074%2015.948a.484.657%200%200%200-.486.659v1.84a.484.657%200%200%200%20.486.659h4.101a.484.657%200%200%200%20.486-.659v-1.84a.484.657%200%200%200-.486-.659zm3.56%201.16H5.617v.838h3.017z%22%20style%3D%22fill%3A%23fff%3Bfill-rule%3Aevenodd%3Bstroke-width%3A1.03600001%22%2F%3E%3Cg%20style%3D%22stroke-width%3A1.12603545%22%3E%3Cpath%20d%3D%22M-9.408-1.416c-3.833-.025-7.056%202.912-7.08%206.615-.02%203.08%201.653%204.832%203.107%206.268.903.892%201.721%201.74%202.32%202.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87%201.87%200%200%200-.362%201.121l-.011%201.877c-.003.402.104.787.347%201.125.244.338.688.653%201.23.656l4.142.028c.542.003.99-.306%201.238-.641a1.87%201.87%200%200%200%20.363-1.121l.012-1.875a1.87%201.87%200%200%200-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145%201.425-1.983%202.348-2.87%201.473-1.414%203.18-3.149%203.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006%201.1v.002c3.274.02%205.92%202.532%205.9%205.6-.017%202.706-1.39%204.026-2.863%205.44-1.034.994-2.118%202.033-2.814%203.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34%200%200%201-.226.084.34.34%200%200%201-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067%202.7-5.545%205.975-5.523m-.02%202.826c-1.62-.01-2.944%201.315-2.955%202.96-.01%201.646%201.295%202.988%202.916%202.999h.002c1.621.01%202.943-1.316%202.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005%201.1c1.017.006%201.829.83%201.822%201.89s-.83%201.874-1.848%201.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874%201.848-1.868m-2.155%2011.857%204.14.025c.271.002.49.305.487.676l-.013%201.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668%22%20style%3D%22color%3A%23000%3Bfont-style%3Anormal%3Bfont-variant%3Anormal%3Bfont-weight%3A400%3Bfont-stretch%3Anormal%3Bfont-size%3Amedium%3Bline-height%3Anormal%3Bfont-family%3Asans-serif%3Bfont-variant-ligatures%3Anormal%3Bfont-variant-position%3Anormal%3Bfont-variant-caps%3Anormal%3Bfont-variant-numeric%3Anormal%3Bfont-variant-alternates%3Anormal%3Bfont-feature-settings%3Anormal%3Btext-indent%3A0%3Btext-align%3Astart%3Btext-decoration%3Anone%3Btext-decoration-line%3Anone%3Btext-decoration-style%3Asolid%3Btext-decoration-color%3A%23000%3Bletter-spacing%3Anormal%3Bword-spacing%3Anormal%3Btext-transform%3Anone%3Bwriting-mode%3Alr-tb%3Bdirection%3Altr%3Btext-orientation%3Amixed%3Bdominant-baseline%3Aauto%3Bbaseline-shift%3Abaseline%3Btext-anchor%3Astart%3Bwhite-space%3Anormal%3Bshape-padding%3A0%3Bclip-rule%3Aevenodd%3Bdisplay%3Ainline%3Boverflow%3Avisible%3Bvisibility%3Avisible%3Bopacity%3A1%3Bisolation%3Aauto%3Bmix-blend-mode%3Anormal%3Bcolor-interpolation%3AsRGB%3Bcolor-interpolation-filters%3AlinearRGB%3Bsolid-color%3A%23000%3Bsolid-opacity%3A1%3Bvector-effect%3Anone%3Bfill%3A%23000%3Bfill-opacity%3A.4%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-linecap%3Abutt%3Bstroke-linejoin%3Amiter%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-dashoffset%3A0%3Bstroke-opacity%3A1%3Bcolor-rendering%3Aauto%3Bimage-rendering%3Aauto%3Bshape-rendering%3Aauto%3Btext-rendering%3Aauto%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-9.415-.316C-12.69-.338-15.37%202.14-15.39%205.207c-.017%202.716%201.326%204.041%202.78%205.477%201.013%201%202.081%202.055%202.78%203.67l.092.076a.34.34%200%200%200%20.225.086.34.34%200%200%200%20.227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6%201.78-2.64%202.814-3.634%201.473-1.414%202.847-2.733%202.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057%208.784c1.621.011%202.944-1.315%202.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945%201.315-2.955%202.96s1.295%202.989%202.916%203%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23e1e3e9%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-11.594%2015.465c-.27-.002-.492.297-.494.668l-.012%201.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23fff%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E")}a.maplibregl-ctrl-logo.maplibregl-compact{width:14px}@media (forced-colors:active){a.maplibregl-ctrl-logo{background-color:transparent;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2288%22%20height%3D%2223%22%20fill%3D%22none%22%3E%3Cpath%20fill%3D%22%23000%22%20fill-opacity%3D%22.4%22%20fill-rule%3D%22evenodd%22%20d%3D%22M17.408%2016.796h-1.827l2.501-12.095h.198l3.324%206.533.988%202.19.988-2.19%203.258-6.533h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.929%205.644h-.098l-2.914-5.644-.757-1.71-.345%201.71zm1.958-3.42-.726%203.663a1.255%201.255%200%200%201-1.232%201.011h-1.827a1.255%201.255%200%200%201-1.229-1.509l2.501-12.095a1.255%201.255%200%200%201%201.23-1.001h.197a1.25%201.25%200%200%201%201.12.685l3.19%206.273%203.125-6.263a1.25%201.25%200%200%201%201.123-.695h.181a1.255%201.255%200%200%201%201.227.991l1.443%206.71a5%205%200%200%201%20.314-.787l.009-.016a4.6%204.6%200%200%201%201.777-1.887c.782-.46%201.668-.667%202.611-.667a4.6%204.6%200%200%201%201.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255%201.255%200%200%201%201.212.925%201.255%201.255%200%200%201%201.212-.925h1.711c.284%200%20.545.094.755.252.613-.3%201.312-.45%202.075-.45%201.356%200%202.557.445%203.482%201.4q.47.48.763%201.064V4.701a1.255%201.255%200%200%201%201.255-1.255h1.86A1.255%201.255%200%200%201%2054.44%204.7v9.194h2.217c.19%200%20.37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42%202.42%200%200%201-.682-1.71c0-.665.267-1.253.735-1.7a2.45%202.45%200%200%201%201.722-.674%202.43%202.43%200%200%201%201.705.675q.318.302.504.683V4.7a1.255%201.255%200%200%201%201.255-1.255h1.744A1.255%201.255%200%200%201%2065.812%204.7v3.335a4.8%204.8%200%200%201%201.526-.246c.938%200%201.817.214%202.59.69a4.47%204.47%200%200%201%201.67%201.743v-.98a1.255%201.255%200%200%201%201.256-1.256h1.777c.233%200%20.451.064.639.174a3.4%203.4%200%200%201%201.567-.372c.346%200%20.861.02%201.285.232a1.25%201.25%200%200%201%20.689%201.004%204.7%204.7%200%200%201%20.853-.588c.795-.44%201.675-.647%202.61-.647%201.385%200%202.65.39%203.525%201.396.836.938%201.168%202.173%201.168%203.528q-.001.515-.056%201.051a1.255%201.255%200%200%201-.947%201.09l.408.952a1.255%201.255%200%200%201-.477%201.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06%200-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8%205.8%200%200%201-.548-2.512q0-.429.053-.843a1.3%201.3%200%200%201-.333-.086l-.166-.004c-.223%200-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255%201.255%200%200%201-1.256%201.256h-1.777a1.255%201.255%200%200%201-1.256-1.256V15.69l-.032.057a4.8%204.8%200%200%201-1.86%201.833%205.04%205.04%200%200%201-2.484.634%204.5%204.5%200%200%201-1.935-.424%201.25%201.25%200%200%201-.764.258h-1.71a1.255%201.255%200%200%201-1.256-1.255V7.687a2.4%202.4%200%200%201-.428.625c.253.23.412.561.412.93v7.553a1.255%201.255%200%200%201-1.256%201.255h-1.843a1.25%201.25%200%200%201-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255%201.255%200%200%201-1.256-1.255v-1.251l-.061.117a4.7%204.7%200%200%201-1.782%201.884%204.77%204.77%200%200%201-2.485.67%205.6%205.6%200%200%201-1.485-.188l.009%202.764a1.255%201.255%200%200%201-1.255%201.259h-1.729a1.255%201.255%200%200%201-1.255-1.255v-3.537a1.255%201.255%200%200%201-1.167.793h-1.679a1.25%201.25%200%200%201-.77-.263%204.5%204.5%200%200%201-1.945.429c-.885%200-1.724-.21-2.495-.632l-.017-.01a5%205%200%200%201-1.081-.836%201.255%201.255%200%200%201-1.254%201.312h-1.81a1.255%201.255%200%200%201-1.228-.99l-.782-3.625-2.044%203.939a1.25%201.25%200%200%201-1.115.676h-.098a1.25%201.25%200%200%201-1.116-.68l-2.061-3.994zM35.92%2016.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033%201.332h1.678V9.242h-1.694l-.033%201.267q-.133-.329-.526-.658l-.032-.028a3.2%203.2%200%200%200-.668-.428l-.27-.12a3.3%203.3%200%200%200-1.235-.23q-1.136-.001-1.974.493a3.36%203.36%200%200%200-1.3%201.382q-.445.89-.444%202.074%200%201.2.51%202.107a3.8%203.8%200%200%200%201.382%201.381%203.9%203.9%200%200%200%201.893.477q.795%200%201.455-.33zm-2.789-5.38q-.576.675-.575%201.762%200%201.102.559%201.794.576.675%201.645.675a2.25%202.25%200%200%200%20.934-.19%202.2%202.2%200%200%200%20.468-.29l.178-.161a2.2%202.2%200%200%200%20.397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2%202.2%200%200%200-.633-.709l-.13-.086-.047-.028a2.1%202.1%200%200%200-1.073-.285q-1.052%200-1.629.692zm2.316%202.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96%200%200%200-.353-.389.85.85%200%200%200-.464-.127c-.4%200-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945%200%20.506.122.801.27.99.097.11.266.224.68.224.303%200%20.504-.09.687-.269zm7.545%201.705a2.6%202.6%200%200%200%20.331.423q.319.33.755.548l.173.074q.65.255%201.49.255%201.02%200%201.844-.493a3.45%203.45%200%200%200%201.316-1.4q.493-.904.493-2.089%200-1.909-.988-2.913-.988-1.02-2.584-1.02-.898%200-1.575.347a3%203%200%200%200-.415.262l-.199.166a3.4%203.4%200%200%200-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296%201.119.297%201.07%200%201.645-.675.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.435%200-.835.16a2%202%200%200%200-.284.136%202%202%200%200%200-.363.254%202.2%202.2%200%200%200-.46.569l-.082.162a2.6%202.6%200%200%200-.213%201.072v.115q0%20.707.296%201.267l.135.211zm.964-.818a1.1%201.1%200%200%200%20.367.385.94.94%200%200%200%20.476.118c.423%200%20.59-.117.687-.23.159-.194.28-.478.28-.95%200-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1%201%200%200%200-.503.135l-.012.007a.86.86%200%200%200-.335.343c-.073.133-.132.324-.132.614v.115a1.4%201.4%200%200%200%20.14.66zm15.7-6.222q.347-.346.346-.856a1.05%201.05%200%200%200-.345-.79%201.18%201.18%200%200%200-.84-.329q-.51%200-.855.33a1.05%201.05%200%200%200-.346.79q0%20.51.346.855.345.346.856.346.51%200%20.839-.346zm4.337%209.314.033-1.332q.191.403.59.747l.098.081a4%204%200%200%200%20.316.224l.223.122a3.2%203.2%200%200%200%201.44.322%203.8%203.8%200%200%200%201.875-.477%203.5%203.5%200%200%200%201.382-1.366q.527-.89.526-2.09%200-1.184-.444-2.073a3.24%203.24%200%200%200-1.283-1.399q-.823-.51-1.942-.51a3.5%203.5%200%200%200-1.527.344l-.086.043-.165.09a3%203%200%200%200-.33.214q-.432.315-.656.707a2%202%200%200%200-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5%202.5%200%200%200%20.566.7q.117.098.245.18l.144.08a2.1%202.1%200%200%200%20.975.232q1.07%200%201.645-.675.576-.69.576-1.778%200-1.102-.576-1.777-.56-.691-1.645-.692a2.2%202.2%200%200%200-1.015.235q-.22.113-.415.282l-.15.142a2.1%202.1%200%200%200-.42.594q-.223.479-.223%201.1v.115q0%20.705.293%201.26zm2.616-.293c.157-.191.28-.479.28-.967%200-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87%200%200%200-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0%20.285.057.499.144.669a1.1%201.1%200%200%200%20.367.405c.137.082.28.123.455.123.423%200%20.59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493%200%20.642.099l.247-1.794q-.196-.099-.717-.099a2.3%202.3%200%200%200-.545.063%202%202%200%200%200-.411.148%202.2%202.2%200%200%200-.4.249%202.5%202.5%200%200%200-.485.499%202.7%202.7%200%200%200-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5%201.5%200%200%201%20.466-.636%202.5%202.5%200%200%201%20.399-.253%202%202%200%200%201%20.224-.099zm9.784%202.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46%203.46%200%200%200-1.4%201.382q-.493.906-.493%202.106%200%201.07.428%201.975.428.89%201.332%201.432.906.526%202.255.526.973%200%201.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954%200-1.497-.444a1.6%201.6%200%200%201-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1%201%200%200%200-.156-.176q-.46-.428-1.316-.428-.986%200-1.494.604-.379.45-.494%201.234zm-27.053%202.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z%22%2F%3E%3Cpath%20fill%3D%22%23fff%22%20d%3D%22m19.63%2011.151-.757-1.71-.345%201.71-1.12%205.644h-1.827L18.083%204.7h.197l3.325%206.533.988%202.19.988-2.19L26.839%204.7h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.93%205.644h-.098l-2.913-5.644zm14.836%205.81q-1.02%200-1.893-.478a3.8%203.8%200%200%201-1.381-1.382q-.51-.906-.51-2.106%200-1.185.444-2.074a3.36%203.36%200%200%201%201.3-1.382q.839-.494%201.974-.494a3.3%203.3%200%200%201%201.234.231%203.3%203.3%200%200%201%20.97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02%201.053a3.17%203.17%200%200%201-1.662.444zm.296-1.482q.938%200%201.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2%202.2%200%200%200-.807-.872%202.1%202.1%200%200%200-1.119-.313q-1.053%200-1.629.692-.575.675-.575%201.76%200%201.103.559%201.795.577.675%201.645.675zm6.521-6.237h1.711v1.4q.906-1.597%202.83-1.597%201.596%200%202.584%201.02.988%201.005.988%202.914%200%201.185-.493%202.09a3.46%203.46%200%200%201-1.316%201.399%203.5%203.5%200%200%201-1.844.493q-.954%200-1.662-.329a2.67%202.67%200%200%201-1.086-.97l.017%205.134h-1.728zm4.048%206.22q1.07%200%201.645-.674.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.592%200-1.12.296-.51.28-.822.823-.296.527-.296%201.234v.115q0%20.708.296%201.267.313.543.823.855.51.296%201.119.297z%22%2F%3E%3Cpath%20fill%3D%22%23e1e3e9%22%20d%3D%22M51.325%204.7h1.86v10.45h3.473v1.646h-5.333zm7.12%204.542h1.843v7.553h-1.843zm.905-1.415a1.16%201.16%200%200%201-.856-.346%201.17%201.17%200%200%201-.346-.856%201.05%201.05%200%200%201%20.346-.79q.346-.329.856-.329.494%200%20.839.33a1.05%201.05%200%200%201%20.345.79%201.16%201.16%200%200%201-.345.855q-.33.346-.84.346zm7.875%209.133a3.17%203.17%200%200%201-1.662-.444q-.723-.46-1.004-1.053l-.033%201.332h-1.71V4.701h1.743v4.657l-.082%201.283q.279-.658%201.086-1.119a3.5%203.5%200%200%201%201.778-.477q1.119%200%201.942.51a3.24%203.24%200%200%201%201.283%201.4q.445.888.444%202.072%200%201.201-.526%202.09a3.5%203.5%200%200%201-1.382%201.366%203.8%203.8%200%200%201-1.876.477zm-.296-1.481q1.069%200%201.645-.675.577-.69.577-1.778%200-1.102-.577-1.776-.56-.691-1.645-.692a2.12%202.12%200%200%200-1.58.659q-.642.641-.642%201.694v.115q0%20.71.296%201.267a2.4%202.4%200%200%200%20.807.872%202.1%202.1%200%200%200%201.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14%202.14%200%200%201%201.349-.46q.527%200%20.724.098l-.247%201.794q-.149-.099-.642-.099-.774%200-1.416.494-.626.493-.626%201.58v3.883h-1.777V9.242zm9.534%207.718q-1.35%200-2.255-.526-.904-.543-1.332-1.432a4.6%204.6%200%200%201-.428-1.975q0-1.2.493-2.106a3.46%203.46%200%200%201%201.4-1.382q.889-.495%202.007-.494%201.744%200%202.584.97.855.956.856%202.7%200%20.444-.05.92h-5.43q.18%201.005.708%201.45.542.443%201.497.443.79%200%201.3-.131a4%204%200%200%200%20.938-.362l.542%201.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728%200-1.991%201.86z%22%2F%3E%3Cpath%20d%3D%22M5.074%2015.948a.484.657%200%200%200-.486.659v1.84a.484.657%200%200%200%20.486.659h4.101a.484.657%200%200%200%20.486-.659v-1.84a.484.657%200%200%200-.486-.659zm3.56%201.16H5.617v.838h3.017z%22%20style%3D%22fill%3A%23fff%3Bfill-rule%3Aevenodd%3Bstroke-width%3A1.03600001%22%2F%3E%3Cg%20style%3D%22stroke-width%3A1.12603545%22%3E%3Cpath%20d%3D%22M-9.408-1.416c-3.833-.025-7.056%202.912-7.08%206.615-.02%203.08%201.653%204.832%203.107%206.268.903.892%201.721%201.74%202.32%202.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87%201.87%200%200%200-.362%201.121l-.011%201.877c-.003.402.104.787.347%201.125.244.338.688.653%201.23.656l4.142.028c.542.003.99-.306%201.238-.641a1.87%201.87%200%200%200%20.363-1.121l.012-1.875a1.87%201.87%200%200%200-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145%201.425-1.983%202.348-2.87%201.473-1.414%203.18-3.149%203.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006%201.1v.002c3.274.02%205.92%202.532%205.9%205.6-.017%202.706-1.39%204.026-2.863%205.44-1.034.994-2.118%202.033-2.814%203.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34%200%200%201-.226.084.34.34%200%200%201-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067%202.7-5.545%205.975-5.523m-.02%202.826c-1.62-.01-2.944%201.315-2.955%202.96-.01%201.646%201.295%202.988%202.916%202.999h.002c1.621.01%202.943-1.316%202.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005%201.1c1.017.006%201.829.83%201.822%201.89s-.83%201.874-1.848%201.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874%201.848-1.868m-2.155%2011.857%204.14.025c.271.002.49.305.487.676l-.013%201.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668%22%20style%3D%22color%3A%23000%3Bfont-style%3Anormal%3Bfont-variant%3Anormal%3Bfont-weight%3A400%3Bfont-stretch%3Anormal%3Bfont-size%3Amedium%3Bline-height%3Anormal%3Bfont-family%3Asans-serif%3Bfont-variant-ligatures%3Anormal%3Bfont-variant-position%3Anormal%3Bfont-variant-caps%3Anormal%3Bfont-variant-numeric%3Anormal%3Bfont-variant-alternates%3Anormal%3Bfont-feature-settings%3Anormal%3Btext-indent%3A0%3Btext-align%3Astart%3Btext-decoration%3Anone%3Btext-decoration-line%3Anone%3Btext-decoration-style%3Asolid%3Btext-decoration-color%3A%23000%3Bletter-spacing%3Anormal%3Bword-spacing%3Anormal%3Btext-transform%3Anone%3Bwriting-mode%3Alr-tb%3Bdirection%3Altr%3Btext-orientation%3Amixed%3Bdominant-baseline%3Aauto%3Bbaseline-shift%3Abaseline%3Btext-anchor%3Astart%3Bwhite-space%3Anormal%3Bshape-padding%3A0%3Bclip-rule%3Aevenodd%3Bdisplay%3Ainline%3Boverflow%3Avisible%3Bvisibility%3Avisible%3Bopacity%3A1%3Bisolation%3Aauto%3Bmix-blend-mode%3Anormal%3Bcolor-interpolation%3AsRGB%3Bcolor-interpolation-filters%3AlinearRGB%3Bsolid-color%3A%23000%3Bsolid-opacity%3A1%3Bvector-effect%3Anone%3Bfill%3A%23000%3Bfill-opacity%3A.4%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-linecap%3Abutt%3Bstroke-linejoin%3Amiter%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-dashoffset%3A0%3Bstroke-opacity%3A1%3Bcolor-rendering%3Aauto%3Bimage-rendering%3Aauto%3Bshape-rendering%3Aauto%3Btext-rendering%3Aauto%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-9.415-.316C-12.69-.338-15.37%202.14-15.39%205.207c-.017%202.716%201.326%204.041%202.78%205.477%201.013%201%202.081%202.055%202.78%203.67l.092.076a.34.34%200%200%200%20.225.086.34.34%200%200%200%20.227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6%201.78-2.64%202.814-3.634%201.473-1.414%202.847-2.733%202.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057%208.784c1.621.011%202.944-1.315%202.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945%201.315-2.955%202.96s1.295%202.989%202.916%203%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23e1e3e9%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-11.594%2015.465c-.27-.002-.492.297-.494.668l-.012%201.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23fff%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){a.maplibregl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2288%22%20height%3D%2223%22%20fill%3D%22none%22%3E%3Cpath%20fill%3D%22%23000%22%20fill-opacity%3D%22.4%22%20fill-rule%3D%22evenodd%22%20d%3D%22M17.408%2016.796h-1.827l2.501-12.095h.198l3.324%206.533.988%202.19.988-2.19%203.258-6.533h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.929%205.644h-.098l-2.914-5.644-.757-1.71-.345%201.71zm1.958-3.42-.726%203.663a1.255%201.255%200%200%201-1.232%201.011h-1.827a1.255%201.255%200%200%201-1.229-1.509l2.501-12.095a1.255%201.255%200%200%201%201.23-1.001h.197a1.25%201.25%200%200%201%201.12.685l3.19%206.273%203.125-6.263a1.25%201.25%200%200%201%201.123-.695h.181a1.255%201.255%200%200%201%201.227.991l1.443%206.71a5%205%200%200%201%20.314-.787l.009-.016a4.6%204.6%200%200%201%201.777-1.887c.782-.46%201.668-.667%202.611-.667a4.6%204.6%200%200%201%201.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255%201.255%200%200%201%201.212.925%201.255%201.255%200%200%201%201.212-.925h1.711c.284%200%20.545.094.755.252.613-.3%201.312-.45%202.075-.45%201.356%200%202.557.445%203.482%201.4q.47.48.763%201.064V4.701a1.255%201.255%200%200%201%201.255-1.255h1.86A1.255%201.255%200%200%201%2054.44%204.7v9.194h2.217c.19%200%20.37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42%202.42%200%200%201-.682-1.71c0-.665.267-1.253.735-1.7a2.45%202.45%200%200%201%201.722-.674%202.43%202.43%200%200%201%201.705.675q.318.302.504.683V4.7a1.255%201.255%200%200%201%201.255-1.255h1.744A1.255%201.255%200%200%201%2065.812%204.7v3.335a4.8%204.8%200%200%201%201.526-.246c.938%200%201.817.214%202.59.69a4.47%204.47%200%200%201%201.67%201.743v-.98a1.255%201.255%200%200%201%201.256-1.256h1.777c.233%200%20.451.064.639.174a3.4%203.4%200%200%201%201.567-.372c.346%200%20.861.02%201.285.232a1.25%201.25%200%200%201%20.689%201.004%204.7%204.7%200%200%201%20.853-.588c.795-.44%201.675-.647%202.61-.647%201.385%200%202.65.39%203.525%201.396.836.938%201.168%202.173%201.168%203.528q-.001.515-.056%201.051a1.255%201.255%200%200%201-.947%201.09l.408.952a1.255%201.255%200%200%201-.477%201.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06%200-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8%205.8%200%200%201-.548-2.512q0-.429.053-.843a1.3%201.3%200%200%201-.333-.086l-.166-.004c-.223%200-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255%201.255%200%200%201-1.256%201.256h-1.777a1.255%201.255%200%200%201-1.256-1.256V15.69l-.032.057a4.8%204.8%200%200%201-1.86%201.833%205.04%205.04%200%200%201-2.484.634%204.5%204.5%200%200%201-1.935-.424%201.25%201.25%200%200%201-.764.258h-1.71a1.255%201.255%200%200%201-1.256-1.255V7.687a2.4%202.4%200%200%201-.428.625c.253.23.412.561.412.93v7.553a1.255%201.255%200%200%201-1.256%201.255h-1.843a1.25%201.25%200%200%201-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255%201.255%200%200%201-1.256-1.255v-1.251l-.061.117a4.7%204.7%200%200%201-1.782%201.884%204.77%204.77%200%200%201-2.485.67%205.6%205.6%200%200%201-1.485-.188l.009%202.764a1.255%201.255%200%200%201-1.255%201.259h-1.729a1.255%201.255%200%200%201-1.255-1.255v-3.537a1.255%201.255%200%200%201-1.167.793h-1.679a1.25%201.25%200%200%201-.77-.263%204.5%204.5%200%200%201-1.945.429c-.885%200-1.724-.21-2.495-.632l-.017-.01a5%205%200%200%201-1.081-.836%201.255%201.255%200%200%201-1.254%201.312h-1.81a1.255%201.255%200%200%201-1.228-.99l-.782-3.625-2.044%203.939a1.25%201.25%200%200%201-1.115.676h-.098a1.25%201.25%200%200%201-1.116-.68l-2.061-3.994zM35.92%2016.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033%201.332h1.678V9.242h-1.694l-.033%201.267q-.133-.329-.526-.658l-.032-.028a3.2%203.2%200%200%200-.668-.428l-.27-.12a3.3%203.3%200%200%200-1.235-.23q-1.136-.001-1.974.493a3.36%203.36%200%200%200-1.3%201.382q-.445.89-.444%202.074%200%201.2.51%202.107a3.8%203.8%200%200%200%201.382%201.381%203.9%203.9%200%200%200%201.893.477q.795%200%201.455-.33zm-2.789-5.38q-.576.675-.575%201.762%200%201.102.559%201.794.576.675%201.645.675a2.25%202.25%200%200%200%20.934-.19%202.2%202.2%200%200%200%20.468-.29l.178-.161a2.2%202.2%200%200%200%20.397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2%202.2%200%200%200-.633-.709l-.13-.086-.047-.028a2.1%202.1%200%200%200-1.073-.285q-1.052%200-1.629.692zm2.316%202.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96%200%200%200-.353-.389.85.85%200%200%200-.464-.127c-.4%200-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945%200%20.506.122.801.27.99.097.11.266.224.68.224.303%200%20.504-.09.687-.269zm7.545%201.705a2.6%202.6%200%200%200%20.331.423q.319.33.755.548l.173.074q.65.255%201.49.255%201.02%200%201.844-.493a3.45%203.45%200%200%200%201.316-1.4q.493-.904.493-2.089%200-1.909-.988-2.913-.988-1.02-2.584-1.02-.898%200-1.575.347a3%203%200%200%200-.415.262l-.199.166a3.4%203.4%200%200%200-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296%201.119.297%201.07%200%201.645-.675.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.435%200-.835.16a2%202%200%200%200-.284.136%202%202%200%200%200-.363.254%202.2%202.2%200%200%200-.46.569l-.082.162a2.6%202.6%200%200%200-.213%201.072v.115q0%20.707.296%201.267l.135.211zm.964-.818a1.1%201.1%200%200%200%20.367.385.94.94%200%200%200%20.476.118c.423%200%20.59-.117.687-.23.159-.194.28-.478.28-.95%200-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1%201%200%200%200-.503.135l-.012.007a.86.86%200%200%200-.335.343c-.073.133-.132.324-.132.614v.115a1.4%201.4%200%200%200%20.14.66zm15.7-6.222q.347-.346.346-.856a1.05%201.05%200%200%200-.345-.79%201.18%201.18%200%200%200-.84-.329q-.51%200-.855.33a1.05%201.05%200%200%200-.346.79q0%20.51.346.855.345.346.856.346.51%200%20.839-.346zm4.337%209.314.033-1.332q.191.403.59.747l.098.081a4%204%200%200%200%20.316.224l.223.122a3.2%203.2%200%200%200%201.44.322%203.8%203.8%200%200%200%201.875-.477%203.5%203.5%200%200%200%201.382-1.366q.527-.89.526-2.09%200-1.184-.444-2.073a3.24%203.24%200%200%200-1.283-1.399q-.823-.51-1.942-.51a3.5%203.5%200%200%200-1.527.344l-.086.043-.165.09a3%203%200%200%200-.33.214q-.432.315-.656.707a2%202%200%200%200-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5%202.5%200%200%200%20.566.7q.117.098.245.18l.144.08a2.1%202.1%200%200%200%20.975.232q1.07%200%201.645-.675.576-.69.576-1.778%200-1.102-.576-1.777-.56-.691-1.645-.692a2.2%202.2%200%200%200-1.015.235q-.22.113-.415.282l-.15.142a2.1%202.1%200%200%200-.42.594q-.223.479-.223%201.1v.115q0%20.705.293%201.26zm2.616-.293c.157-.191.28-.479.28-.967%200-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87%200%200%200-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0%20.285.057.499.144.669a1.1%201.1%200%200%200%20.367.405c.137.082.28.123.455.123.423%200%20.59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493%200%20.642.099l.247-1.794q-.196-.099-.717-.099a2.3%202.3%200%200%200-.545.063%202%202%200%200%200-.411.148%202.2%202.2%200%200%200-.4.249%202.5%202.5%200%200%200-.485.499%202.7%202.7%200%200%200-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5%201.5%200%200%201%20.466-.636%202.5%202.5%200%200%201%20.399-.253%202%202%200%200%201%20.224-.099zm9.784%202.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46%203.46%200%200%200-1.4%201.382q-.493.906-.493%202.106%200%201.07.428%201.975.428.89%201.332%201.432.906.526%202.255.526.973%200%201.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954%200-1.497-.444a1.6%201.6%200%200%201-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1%201%200%200%200-.156-.176q-.46-.428-1.316-.428-.986%200-1.494.604-.379.45-.494%201.234zm-27.053%202.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z%22%2F%3E%3Cpath%20fill%3D%22%23fff%22%20d%3D%22m19.63%2011.151-.757-1.71-.345%201.71-1.12%205.644h-1.827L18.083%204.7h.197l3.325%206.533.988%202.19.988-2.19L26.839%204.7h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.93%205.644h-.098l-2.913-5.644zm14.836%205.81q-1.02%200-1.893-.478a3.8%203.8%200%200%201-1.381-1.382q-.51-.906-.51-2.106%200-1.185.444-2.074a3.36%203.36%200%200%201%201.3-1.382q.839-.494%201.974-.494a3.3%203.3%200%200%201%201.234.231%203.3%203.3%200%200%201%20.97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02%201.053a3.17%203.17%200%200%201-1.662.444zm.296-1.482q.938%200%201.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2%202.2%200%200%200-.807-.872%202.1%202.1%200%200%200-1.119-.313q-1.053%200-1.629.692-.575.675-.575%201.76%200%201.103.559%201.795.577.675%201.645.675zm6.521-6.237h1.711v1.4q.906-1.597%202.83-1.597%201.596%200%202.584%201.02.988%201.005.988%202.914%200%201.185-.493%202.09a3.46%203.46%200%200%201-1.316%201.399%203.5%203.5%200%200%201-1.844.493q-.954%200-1.662-.329a2.67%202.67%200%200%201-1.086-.97l.017%205.134h-1.728zm4.048%206.22q1.07%200%201.645-.674.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.592%200-1.12.296-.51.28-.822.823-.296.527-.296%201.234v.115q0%20.708.296%201.267.313.543.823.855.51.296%201.119.297z%22%2F%3E%3Cpath%20fill%3D%22%23e1e3e9%22%20d%3D%22M51.325%204.7h1.86v10.45h3.473v1.646h-5.333zm7.12%204.542h1.843v7.553h-1.843zm.905-1.415a1.16%201.16%200%200%201-.856-.346%201.17%201.17%200%200%201-.346-.856%201.05%201.05%200%200%201%20.346-.79q.346-.329.856-.329.494%200%20.839.33a1.05%201.05%200%200%201%20.345.79%201.16%201.16%200%200%201-.345.855q-.33.346-.84.346zm7.875%209.133a3.17%203.17%200%200%201-1.662-.444q-.723-.46-1.004-1.053l-.033%201.332h-1.71V4.701h1.743v4.657l-.082%201.283q.279-.658%201.086-1.119a3.5%203.5%200%200%201%201.778-.477q1.119%200%201.942.51a3.24%203.24%200%200%201%201.283%201.4q.445.888.444%202.072%200%201.201-.526%202.09a3.5%203.5%200%200%201-1.382%201.366%203.8%203.8%200%200%201-1.876.477zm-.296-1.481q1.069%200%201.645-.675.577-.69.577-1.778%200-1.102-.577-1.776-.56-.691-1.645-.692a2.12%202.12%200%200%200-1.58.659q-.642.641-.642%201.694v.115q0%20.71.296%201.267a2.4%202.4%200%200%200%20.807.872%202.1%202.1%200%200%200%201.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14%202.14%200%200%201%201.349-.46q.527%200%20.724.098l-.247%201.794q-.149-.099-.642-.099-.774%200-1.416.494-.626.493-.626%201.58v3.883h-1.777V9.242zm9.534%207.718q-1.35%200-2.255-.526-.904-.543-1.332-1.432a4.6%204.6%200%200%201-.428-1.975q0-1.2.493-2.106a3.46%203.46%200%200%201%201.4-1.382q.889-.495%202.007-.494%201.744%200%202.584.97.855.956.856%202.7%200%20.444-.05.92h-5.43q.18%201.005.708%201.45.542.443%201.497.443.79%200%201.3-.131a4%204%200%200%200%20.938-.362l.542%201.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728%200-1.991%201.86z%22%2F%3E%3Cpath%20d%3D%22M5.074%2015.948a.484.657%200%200%200-.486.659v1.84a.484.657%200%200%200%20.486.659h4.101a.484.657%200%200%200%20.486-.659v-1.84a.484.657%200%200%200-.486-.659zm3.56%201.16H5.617v.838h3.017z%22%20style%3D%22fill%3A%23fff%3Bfill-rule%3Aevenodd%3Bstroke-width%3A1.03600001%22%2F%3E%3Cg%20style%3D%22stroke-width%3A1.12603545%22%3E%3Cpath%20d%3D%22M-9.408-1.416c-3.833-.025-7.056%202.912-7.08%206.615-.02%203.08%201.653%204.832%203.107%206.268.903.892%201.721%201.74%202.32%202.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87%201.87%200%200%200-.362%201.121l-.011%201.877c-.003.402.104.787.347%201.125.244.338.688.653%201.23.656l4.142.028c.542.003.99-.306%201.238-.641a1.87%201.87%200%200%200%20.363-1.121l.012-1.875a1.87%201.87%200%200%200-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145%201.425-1.983%202.348-2.87%201.473-1.414%203.18-3.149%203.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006%201.1v.002c3.274.02%205.92%202.532%205.9%205.6-.017%202.706-1.39%204.026-2.863%205.44-1.034.994-2.118%202.033-2.814%203.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34%200%200%201-.226.084.34.34%200%200%201-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067%202.7-5.545%205.975-5.523m-.02%202.826c-1.62-.01-2.944%201.315-2.955%202.96-.01%201.646%201.295%202.988%202.916%202.999h.002c1.621.01%202.943-1.316%202.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005%201.1c1.017.006%201.829.83%201.822%201.89s-.83%201.874-1.848%201.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874%201.848-1.868m-2.155%2011.857%204.14.025c.271.002.49.305.487.676l-.013%201.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668%22%20style%3D%22color%3A%23000%3Bfont-style%3Anormal%3Bfont-variant%3Anormal%3Bfont-weight%3A400%3Bfont-stretch%3Anormal%3Bfont-size%3Amedium%3Bline-height%3Anormal%3Bfont-family%3Asans-serif%3Bfont-variant-ligatures%3Anormal%3Bfont-variant-position%3Anormal%3Bfont-variant-caps%3Anormal%3Bfont-variant-numeric%3Anormal%3Bfont-variant-alternates%3Anormal%3Bfont-feature-settings%3Anormal%3Btext-indent%3A0%3Btext-align%3Astart%3Btext-decoration%3Anone%3Btext-decoration-line%3Anone%3Btext-decoration-style%3Asolid%3Btext-decoration-color%3A%23000%3Bletter-spacing%3Anormal%3Bword-spacing%3Anormal%3Btext-transform%3Anone%3Bwriting-mode%3Alr-tb%3Bdirection%3Altr%3Btext-orientation%3Amixed%3Bdominant-baseline%3Aauto%3Bbaseline-shift%3Abaseline%3Btext-anchor%3Astart%3Bwhite-space%3Anormal%3Bshape-padding%3A0%3Bclip-rule%3Aevenodd%3Bdisplay%3Ainline%3Boverflow%3Avisible%3Bvisibility%3Avisible%3Bopacity%3A1%3Bisolation%3Aauto%3Bmix-blend-mode%3Anormal%3Bcolor-interpolation%3AsRGB%3Bcolor-interpolation-filters%3AlinearRGB%3Bsolid-color%3A%23000%3Bsolid-opacity%3A1%3Bvector-effect%3Anone%3Bfill%3A%23000%3Bfill-opacity%3A.4%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-linecap%3Abutt%3Bstroke-linejoin%3Amiter%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-dashoffset%3A0%3Bstroke-opacity%3A1%3Bcolor-rendering%3Aauto%3Bimage-rendering%3Aauto%3Bshape-rendering%3Aauto%3Btext-rendering%3Aauto%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-9.415-.316C-12.69-.338-15.37%202.14-15.39%205.207c-.017%202.716%201.326%204.041%202.78%205.477%201.013%201%202.081%202.055%202.78%203.67l.092.076a.34.34%200%200%200%20.225.086.34.34%200%200%200%20.227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6%201.78-2.64%202.814-3.634%201.473-1.414%202.847-2.733%202.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057%208.784c1.621.011%202.944-1.315%202.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945%201.315-2.955%202.96s1.295%202.989%202.916%203%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23e1e3e9%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-11.594%2015.465c-.27-.002-.492.297-.494.668l-.012%201.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23fff%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl.maplibregl-ctrl-attrib{padding:0 5px;background-color:hsla(0,0%,100%,.5);margin:0}@media screen{.maplibregl-ctrl-attrib.maplibregl-compact{min-height:20px;padding:2px 24px 2px 0;margin:10px;position:relative;background-color:#fff;color:#000;border-radius:12px;box-sizing:content-box}.maplibregl-ctrl-attrib.maplibregl-compact-show{padding:2px 28px 2px 8px;visibility:visible}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact-show,.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact-show{padding:2px 8px 2px 28px;border-radius:12px}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-inner{display:none}.maplibregl-ctrl-attrib-button{display:none;cursor:pointer;position:absolute;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20fill-rule%3D%22evenodd%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M4%2010a6%206%200%201%200%2012%200%206%206%200%201%200-12%200m5-3a1%201%200%201%200%202%200%201%201%200%201%200-2%200m0%203a1%201%200%201%201%202%200v3a1%201%200%201%201-2%200%22%2F%3E%3C%2Fsvg%3E");background-color:hsla(0,0%,100%,.5);width:24px;height:24px;box-sizing:border-box;border-radius:12px;outline:none;top:0;right:0;border:0}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;list-style:none}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button::-webkit-details-marker{display:none}.maplibregl-ctrl-bottom-left .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-top-left .maplibregl-ctrl-attrib-button{left:0}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-inner{display:block}.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-button{background-color:rgba(0,0,0,.05)}.maplibregl-ctrl-bottom-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;right:0}.maplibregl-ctrl-top-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{top:0;right:0}.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{top:0;left:0}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;left:0}}@media screen and (forced-colors:active){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22%23fff%22%20fill-rule%3D%22evenodd%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M4%2010a6%206%200%201%200%2012%200%206%206%200%201%200-12%200m5-3a1%201%200%201%200%202%200%201%201%200%201%200-2%200m0%203a1%201%200%201%201%202%200v3a1%201%200%201%201-2%200%22%2F%3E%3C%2Fsvg%3E")}}@media screen and (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20fill-rule%3D%22evenodd%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M4%2010a6%206%200%201%200%2012%200%206%206%200%201%200-12%200m5-3a1%201%200%201%200%202%200%201%201%200%201%200-2%200m0%203a1%201%200%201%201%202%200v3a1%201%200%201%201-2%200%22%2F%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl-attrib a{color:rgba(0,0,0,.75);text-decoration:none}.maplibregl-ctrl-attrib a:hover{color:inherit;text-decoration:underline}.maplibregl-attrib-empty{display:none}.maplibregl-ctrl-scale{background-color:hsla(0,0%,100%,.75);font-size:10px;white-space:nowrap;border-color:#333;border-style:none solid solid;border-width:medium 2px 2px;padding:0 5px;color:#333;box-sizing:border-box}.maplibregl-popup{position:absolute;top:0;left:0;display:flex;will-change:transform;pointer-events:none}.maplibregl-popup-anchor-top,.maplibregl-popup-anchor-top-left,.maplibregl-popup-anchor-top-right{flex-direction:column}.maplibregl-popup-anchor-bottom,.maplibregl-popup-anchor-bottom-left,.maplibregl-popup-anchor-bottom-right{flex-direction:column-reverse}.maplibregl-popup-anchor-left{flex-direction:row}.maplibregl-popup-anchor-right{flex-direction:row-reverse}.maplibregl-popup-tip{width:0;height:0;border:10px solid transparent;z-index:1}.maplibregl-popup-anchor-top .maplibregl-popup-tip{align-self:center;border-top:none;border-bottom-color:#fff}.maplibregl-popup-anchor-top-left .maplibregl-popup-tip{align-self:flex-start;border-top:none;border-left:none;border-bottom-color:#fff}.maplibregl-popup-anchor-top-right .maplibregl-popup-tip{align-self:flex-end;border-top:none;border-right:none;border-bottom-color:#fff}.maplibregl-popup-anchor-bottom .maplibregl-popup-tip{align-self:center;border-bottom:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip{align-self:flex-start;border-bottom:none;border-left:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip{align-self:flex-end;border-bottom:none;border-right:none;border-top-color:#fff}.maplibregl-popup-anchor-left .maplibregl-popup-tip{align-self:center;border-left:none;border-right-color:#fff}.maplibregl-popup-anchor-right .maplibregl-popup-tip{align-self:center;border-right:none;border-left-color:#fff}[dir=rtl] .maplibregl-popup-anchor-left{flex-direction:row-reverse}[dir=rtl] .maplibregl-popup-anchor-right{flex-direction:row}[dir=rtl] .maplibregl-popup-anchor-top-left .maplibregl-popup-tip{align-self:flex-end}[dir=rtl] .maplibregl-popup-anchor-top-right .maplibregl-popup-tip{align-self:flex-start}[dir=rtl] .maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip{align-self:flex-end}[dir=rtl] .maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip{align-self:flex-start}.maplibregl-popup-close-button{position:absolute;right:0;top:0;border:0;border-radius:0 3px 0 0;cursor:pointer;background-color:transparent}.maplibregl-popup-close-button:hover{background-color:rgba(0,0,0,.05)}.maplibregl-popup-content{position:relative;background:#fff;border-radius:3px;box-shadow:0 1px 2px rgba(0,0,0,.1);padding:15px 10px;pointer-events:auto}.maplibregl-popup-anchor-top-left .maplibregl-popup-content{border-top-left-radius:0}.maplibregl-popup-anchor-top-right .maplibregl-popup-content{border-top-right-radius:0}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-content{border-bottom-left-radius:0}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-content{border-bottom-right-radius:0}.maplibregl-popup-track-pointer{display:none}.maplibregl-popup-track-pointer *{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-map:hover .maplibregl-popup-track-pointer{display:flex}.maplibregl-map:active .maplibregl-popup-track-pointer{display:none}.maplibregl-marker{position:absolute;top:0;left:0;will-change:transform;transition:opacity .2s}.maplibregl-marker-draggable{cursor:grab}.maplibregl-user-location-dot,.maplibregl-user-location-dot:before{background-color:#1da1f2;width:15px;height:15px;border-radius:50%}.maplibregl-user-location-dot:before{content:"";position:absolute;animation:maplibregl-user-location-dot-pulse 2s infinite}.maplibregl-user-location-dot:after{border-radius:50%;border:2px solid #fff;content:"";height:19px;left:-2px;position:absolute;top:-2px;width:19px;box-sizing:border-box;box-shadow:0 0 3px rgba(0,0,0,.35)}@media (prefers-reduced-motion:reduce){.maplibregl-user-location-dot:before{animation:none}}@keyframes maplibregl-user-location-dot-pulse{0%{transform:scale(1);opacity:1}70%{transform:scale(3);opacity:0}to{transform:scale(1);opacity:0}}.maplibregl-user-location-dot-stale{background-color:#aaa}.maplibregl-user-location-dot-stale:after{display:none}.maplibregl-user-location-accuracy-circle{background-color:#1da1f233;width:1px;height:1px;border-radius:100%}.maplibregl-crosshair,.maplibregl-crosshair .maplibregl-interactive,.maplibregl-crosshair .maplibregl-interactive:active{cursor:crosshair}.maplibregl-boxzoom{position:absolute;top:0;left:0;width:0;height:0;background:#fff;border:2px dotted #202020;opacity:.5}.maplibregl-cooperative-gesture-screen{background:rgba(0,0,0,.4);position:absolute;inset:0;display:flex;justify-content:center;align-items:center;color:#fff;padding:1rem;font-size:1.4em;line-height:1.2;opacity:0;pointer-events:none;transition:opacity 1s ease 1s;z-index:99999}.maplibregl-cooperative-gesture-screen.maplibregl-show{opacity:1;transition:opacity .05s}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:none}@media (hover:none),(pointer:coarse){.maplibregl-cooperative-gesture-screen .maplibregl-desktop-message{display:none}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:block}}.maplibregl-pseudo-fullscreen{position:fixed!important;width:100%!important;height:100%!important;top:0!important;left:0!important;z-index:99999}',document.head.appendChild(e)}})()});var Er=_e(Kr=>{"use strict";var ry=il(),AM=Rh(),kM=Z3(),Jxe=If().addStyleRule,SM=Ft(),Mj=Vn(),Tj=N0(),Aj=SM.extendFlat,ty=SM.extendDeepAll;Kr.modules={};Kr.allCategories={};Kr.allTypes=[];Kr.subplotsRegistry={};Kr.componentsRegistry={};Kr.layoutArrayContainers=[];Kr.layoutArrayRegexes=[];Kr.traceLayoutAttributes={};Kr.localeRegistry={};Kr.apiMethodRegistry={};Kr.collectableSubplotTypes=null;Kr.register=function(r){if(Kr.collectableSubplotTypes=null,r)r&&!Array.isArray(r)&&(r=[r]);else throw new Error("No argument passed to Plotly.register.");for(var t=0;t{"use strict";var Lj=_0().timeFormat,qM=ot(),ny=il(),vl=(T0(),or(M0)).mod,O0=(mn(),or(Cn)),Qa=O0.BADNUM,Ta=O0.ONEDAY,Nf=O0.ONEHOUR,cl=O0.ONEMIN,B0=O0.ONESEC,qf=O0.EPOCHJD,Do=Er(),RM=_0().utcFormat,Dj=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\d)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d(:?\d\d)?)?)?)?)?)?\s*$/m,Rj=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\di?)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d(:?\d\d)?)?)?)?)?)?\s*$/m,FM=new Date().getFullYear()-70;function Ro(e){return e&&Do.componentsRegistry.calendars&&typeof e=="string"&&e!=="gregorian"}en.dateTick0=function(e,r){var t=Fj(e,!!r);if(r<2)return t;var n=en.dateTime2ms(t,e);return n+=Ta*(r-1),en.ms2DateTime(n,0,e)};function Fj(e,r){return Ro(e)?r?Do.getComponentMethod("calendars","CANONICAL_SUNDAY")[e]:Do.getComponentMethod("calendars","CANONICAL_TICK")[e]:r?"2000-01-02":"2000-01-01"}en.dfltRange=function(e){return Ro(e)?Do.getComponentMethod("calendars","DFLTRANGE")[e]:["2000-01-01","2001-01-01"]};en.isJSDate=function(e){return typeof e=="object"&&e!==null&&typeof e.getTime=="function"};var Uh,Hh;en.dateTime2ms=function(e,r){if(en.isJSDate(e)){var t=e.getTimezoneOffset()*cl,n=(e.getUTCMinutes()-e.getMinutes())*cl+(e.getUTCSeconds()-e.getSeconds())*B0+(e.getUTCMilliseconds()-e.getMilliseconds());if(n){var a=3*cl;t=t-a/2+vl(n-t+a/2,a)}return e=Number(e)-t,e>=Uh&&e<=Hh?e:Qa}if(typeof e!="string"&&typeof e!="number")return Qa;e=String(e);var o=Ro(r),i=e.charAt(0);o&&(i==="G"||i==="g")&&(e=e.slice(1),r="");var l=o&&r.slice(0,7)==="chinese",u=e.match(l?Rj:Dj);if(!u)return Qa;var s=u[1],f=u[3]||"1",c=Number(u[5]||1),p=Number(u[7]||0),x=Number(u[9]||0),g=Number(u[11]||0);if(o){if(s.length===2)return Qa;s=Number(s);var w;try{var M=Do.getComponentMethod("calendars","getCal")(r);if(l){var m=f.charAt(f.length-1)==="i";f=parseInt(f,10),w=M.newDate(s,M.toMonthIndex(s,f,m),c)}else w=M.newDate(s,Number(f),c)}catch(S){return Qa}return w?(w.toJD()-qf)*Ta+p*Nf+x*cl+g*B0:Qa}s.length===2?s=(Number(s)+2e3-FM)%100+FM:s=Number(s),f-=1;var k=new Date(Date.UTC(2e3,f,c,p,x));return k.setUTCFullYear(s),k.getUTCMonth()!==f||k.getUTCDate()!==c?Qa:k.getTime()+g*B0};Uh=en.MIN_MS=en.dateTime2ms("-9999");Hh=en.MAX_MS=en.dateTime2ms("9999-12-31 23:59:59.9999");en.isDateTime=function(e,r){return en.dateTime2ms(e,r)!==Qa};function q0(e,r){return String(e+Math.pow(10,r)).slice(1)}var Oh=90*Ta,PM=3*Nf,IM=5*cl;en.ms2DateTime=function(e,r,t){if(typeof e!="number"||!(e>=Uh&&e<=Hh))return Qa;r||(r=0);var n=Math.floor(vl(e+.05,1)*10),a=Math.round(e-n/10),o,i,l,u,s,f;if(Ro(t)){var c=Math.floor(a/Ta)+qf,p=Math.floor(vl(e,Ta));try{o=Do.getComponentMethod("calendars","getCal")(t).fromJD(c).formatDate("yyyy-mm-dd")}catch(x){o=RM("G%Y-%m-%d")(new Date(a))}if(o.charAt(0)==="-")for(;o.length<11;)o="-0"+o.slice(1);else for(;o.length<10;)o="0"+o;i=r=Uh+Ta&&e<=Hh-Ta))return Qa;var r=Math.floor(vl(e+.05,1)*10),t=new Date(Math.round(e-r/10)),n=Lj("%Y-%m-%d")(t),a=t.getHours(),o=t.getMinutes(),i=t.getSeconds(),l=t.getUTCMilliseconds()*10+r;return BM(n,a,o,i,l)};function BM(e,r,t,n,a){if((r||t||n||a)&&(e+=" "+q0(r,2)+":"+q0(t,2),(n||a)&&(e+=":"+q0(n,2),a))){for(var o=4;a%10===0;)o-=1,a/=10;e+="."+q0(a,o)}return e}en.cleanDate=function(e,r,t){if(e===Qa)return r;if(en.isJSDate(e)||typeof e=="number"&&isFinite(e)){if(Ro(t))return ny.error("JS Dates and milliseconds are incompatible with world calendars",e),r;if(e=en.ms2DateTimeLocal(+e),!e&&r!==void 0)return r}else if(!en.isDateTime(e,t))return ny.error("unrecognized date",e),r;return e};var Pj=/%\d?f/g,Ij=/%h/g,zj={1:"1",2:"1",3:"2",4:"2"};function zM(e,r,t,n){e=e.replace(Pj,function(o){var i=Math.min(+o.charAt(1)||6,6),l=(r/1e3%1+2).toFixed(i).slice(2).replace(/0+$/,"")||"0";return l});var a=new Date(Math.floor(r+.05));if(e=e.replace(Ij,function(){return zj[t("%q")(a)]}),Ro(n))try{e=Do.getComponentMethod("calendars","worldCalFmt")(e,r,n)}catch(o){return"Invalid"}return t(e)(a)}var Nj=[59,59.9,59.99,59.999,59.9999];function qj(e,r){var t=vl(e+.05,Ta),n=q0(Math.floor(t/Nf),2)+":"+q0(vl(Math.floor(t/cl),60),2);if(r!=="M"){qM(r)||(r=0);var a=Math.min(vl(e/B0,60),Nj[r]),o=(100+a).toFixed(r).slice(1);r>0&&(o=o.replace(/0+$/,"").replace(/[\.]$/,"")),n+=":"+o}return n}en.formatDate=function(e,r,t,n,a,o){if(a=Ro(a)&&a,!r)if(t==="y")r=o.year;else if(t==="m")r=o.month;else if(t==="d")r=o.dayMonth+` -`+o.year;else return qj(e,t)+` -`+zM(o.dayMonthYear,e,n,a);return zM(r,e,n,a)};var NM=3*Ta;en.incrementMonth=function(e,r,t){t=Ro(t)&&t;var n=vl(e,Ta);if(e=Math.round(e-n),t)try{var a=Math.round(e/Ta)+qf,o=Do.getComponentMethod("calendars","getCal")(t),i=o.fromJD(a);return r%12?o.add(i,r,"m"):o.add(i,r/12,"y"),(i.toJD()-qf)*Ta+n}catch(u){ny.error("invalid ms "+e+" in calendar "+t)}var l=new Date(e+NM);return l.setUTCMonth(l.getUTCMonth()+r)+n-NM};en.findExactDates=function(e,r){for(var t=0,n=0,a=0,o=0,i,l,u=Ro(r)&&Do.getComponentMethod("calendars","getCal")(r),s=0;s{"use strict";UM.exports=function(r){return r}});var oy=_e(Fo=>{"use strict";var Bj=ot(),Oj=il(),Uj=ay(),Hj=(mn(),or(Cn)).BADNUM,iy=1e-9;Fo.findBin=function(e,r,t){if(Bj(r.start))return t?Math.ceil((e-r.start)/r.size-iy)-1:Math.floor((e-r.start)/r.size+iy);var n=0,a=r.length,o=0,i=a>1?(r[a-1]-r[0])/(a-1):1,l,u;for(i>=0?u=t?Vj:Gj:u=t?Xj:Yj,e+=i*iy*(t?-1:1)*(i>=0?1:-1);n90&&Oj.log("Long binary search..."),n-1};function Vj(e,r){return er}function Xj(e,r){return e>=r}Fo.sorterAsc=function(e,r){return e-r};Fo.sorterDes=function(e,r){return r-e};Fo.distinctVals=function(e){var r=e.slice();r.sort(Fo.sorterAsc);var t;for(t=r.length-1;t>-1&&r[t]===Hj;t--);for(var n=r[t]-r[0]||1,a=n/(t||1)/1e4,o=[],i,l=0;l<=t;l++){var u=r[l],s=u-i;i===void 0?(o.push(u),i=u):s>a&&(n=Math.min(n,s),o.push(u),i=u)}return{vals:o,minDiff:n}};Fo.roundUp=function(e,r,t){for(var n=0,a=r.length-1,o,i=0,l=t?0:1,u=t?1:0,s=t?Math.ceil:Math.floor;n0&&(n=1),t&&n)return e.sort(r)}return n?e:e.reverse()};Fo.findIndexOfMin=function(e,r){r=r||Uj;for(var t=1/0,n,a=0;aZj});function Wj(e){return Object.keys(e).sort()}var Zj,Gh=Ot(()=>{"use strict";Zj=Wj});var HM=_e(rn=>{"use strict";var Bf=ot(),Jj=ha().isArrayOrTypedArray;rn.aggNums=function(e,r,t,n){var a,o;if((!n||n>t.length)&&(n=t.length),Bf(r)||(r=!1),Jj(t[0])){for(o=new Array(n),a=0;ae.length-1)return e[e.length-1];var t=r%1;return t*e[Math.ceil(r)]+(1-t)*e[Math.floor(r)]}});var WM=_e((r4e,XM)=>{"use strict";var VM=(T0(),or(M0)),ly=VM.mod,$j=VM.modHalf,Of=Math.PI,hl=2*Of;function Kj(e){return e/180*Of}function Qj(e){return e/Of*180}function sy(e){return Math.abs(e[1]-e[0])>hl-1e-14}function GM(e,r){return $j(r-e,hl)}function jj(e,r){return Math.abs(GM(e,r))}function YM(e,r){if(sy(r))return!0;var t,n;r[0]n&&(n+=hl);var a=ly(e,hl),o=a+hl;return a>=t&&a<=n||o>=t&&o<=n}function eee(e,r,t,n){if(!YM(r,n))return!1;var a,o;return t[0]=a&&e<=o}function uy(e,r,t,n,a,o,i){a=a||0,o=o||0;var l=sy([t,n]),u,s,f,c,p;l?(u=0,s=Of,f=hl):t{"use strict";xs.isLeftAnchor=function(r){return r.xanchor==="left"||r.xanchor==="auto"&&r.x<=1/3};xs.isCenterAnchor=function(r){return r.xanchor==="center"||r.xanchor==="auto"&&r.x>1/3&&r.x<2/3};xs.isRightAnchor=function(r){return r.xanchor==="right"||r.xanchor==="auto"&&r.x>=2/3};xs.isTopAnchor=function(r){return r.yanchor==="top"||r.yanchor==="auto"&&r.y>=2/3};xs.isMiddleAnchor=function(r){return r.yanchor==="middle"||r.yanchor==="auto"&&r.y>1/3&&r.y<2/3};xs.isBottomAnchor=function(r){return r.yanchor==="bottom"||r.yanchor==="auto"&&r.y<=1/3}});var KM=_e(_s=>{"use strict";var fy=(T0(),or(M0)).mod;_s.segmentsIntersect=$M;function $M(e,r,t,n,a,o,i,l){var u=t-e,s=a-e,f=i-a,c=n-r,p=o-r,x=l-o,g=u*x-f*c;if(g===0)return null;var w=(s*x-f*p)/g,M=(s*c-u*p)/g;return M<0||M>1||w<0||w>1?null:{x:e+u*w,y:r+c*w}}_s.segmentDistance=function(r,t,n,a,o,i,l,u){if($M(r,t,n,a,o,i,l,u))return 0;var s=n-r,f=a-t,c=l-o,p=u-i,x=s*s+f*f,g=c*c+p*p,w=Math.min(Yh(s,f,x,o-r,i-t),Yh(s,f,x,l-r,u-t),Yh(c,p,g,r-o,t-i),Yh(c,p,g,n-o,a-i));return Math.sqrt(w)};function Yh(e,r,t,n,a){var o=n*e+a*r;if(o<0)return n*n+a*a;if(o>t){var i=n-e,l=a-r;return i*i+l*l}else{var u=n*r-a*e;return u*u/t}}var Xh,cy,JM;_s.getTextLocation=function(r,t,n,a){if((r!==cy||a!==JM)&&(Xh={},cy=r,JM=a),Xh[n])return Xh[n];var o=r.getPointAtLength(fy(n-a/2,t)),i=r.getPointAtLength(fy(n+a/2,t)),l=Math.atan((i.y-o.y)/(i.x-o.x)),u=r.getPointAtLength(fy(n,t)),s=(u.x*4+o.x+i.x)/6,f=(u.y*4+o.y+i.y)/6,c={x:s,y:f,theta:l};return Xh[n]=c,c};_s.clearLocationCache=function(){cy=null};_s.getVisibleSegment=function(r,t,n){var a=t.left,o=t.right,i=t.top,l=t.bottom,u=0,s=r.getTotalLength(),f=s,c,p;function x(w){var M=r.getPointAtLength(w);w===0?c=M:w===s&&(p=M);var m=M.xo?M.x-o:0,k=M.yl?M.y-l:0;return Math.sqrt(m*m+k*k)}for(var g=x(u);g;){if(u+=g+n,u>f)return;g=x(u)}for(g=x(f);g;){if(f-=g+n,u>f)return;g=x(f)}return{min:u,max:f,len:f-u,total:s,isClosed:u===0&&f===s&&Math.abs(c.x-p.x)<.1&&Math.abs(c.y-p.y)<.1}};_s.findPointOnPath=function(r,t,n,a){a=a||{};for(var o=a.pathLength||r.getTotalLength(),i=a.tolerance||.001,l=a.iterationLimit||30,u=r.getPointAtLength(0)[n]>r.getPointAtLength(o)[n]?-1:1,s=0,f=0,c=o,p,x,g;s0?c=p:f=p,s++}return x}});var Wh=_e(Uf=>{"use strict";var Po={};Uf.throttle=function(r,t,n){var a=Po[r],o=Date.now();if(!a){for(var i in Po)Po[i].tsa.ts+t){l();return}a.timer=setTimeout(function(){l(),a.timer=null},t)};Uf.done=function(e){var r=Po[e];return!r||!r.timer?Promise.resolve():new Promise(function(t){var n=r.onDone;r.onDone=function(){n&&n(),t(),r.onDone=null}})};Uf.clear=function(e){if(e)QM(Po[e]),delete Po[e];else for(var r in Po)Uf.clear(r)};function QM(e){e&&e.timer!==null&&(clearTimeout(e.timer),e.timer=null)}});var eT=_e((i4e,jM)=>{"use strict";jM.exports=function(r){r._clearResponsive&&(r._clearResponsive(),delete r._clearResponsive)}});var rT=_e((o4e,Zh)=>{"use strict";Zh.exports=vy;Zh.exports.isMobile=vy;Zh.exports.default=vy;var aee=/(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|redmi|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,iee=/CrOS/,oee=/android|ipad|playbook|silk/i;function vy(e){e||(e={});let r=e.ua;if(!r&&typeof navigator!="undefined"&&(r=navigator.userAgent),r&&r.headers&&typeof r.headers["user-agent"]=="string"&&(r=r.headers["user-agent"]),typeof r!="string")return!1;let t=aee.test(r)&&!iee.test(r)||!!e.tablet&&oee.test(r);return!t&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&r.indexOf("Macintosh")!==-1&&r.indexOf("Safari")!==-1&&(t=!0),t}});var nT=_e((l4e,tT)=>{"use strict";var lee=ot(),see=rT();tT.exports=function(r){var t;if(r&&r.hasOwnProperty("userAgent")?t=r.userAgent:t=uee(),typeof t!="string")return!0;var n=see({ua:{headers:{"user-agent":t}},tablet:!0,featureDetect:!1});if(!n)for(var a=t.split(" "),o=1;o-1;l--){var u=a[l];if(u.slice(0,8)==="Version/"){var s=u.slice(8).split(".")[0];if(lee(s)&&(s=+s),s>=13)return!0}}}return n};function uee(){var e;return typeof navigator!="undefined"&&(e=navigator.userAgent),e&&e.headers&&typeof e.headers["user-agent"]=="string"&&(e=e.headers["user-agent"]),e}});var iT=_e((s4e,aT)=>{"use strict";var fee=at();aT.exports=function(r,t,n){var a=r.selectAll("g."+n.replace(/\s/g,".")).data(t,function(i){return i[0].trace.uid});a.exit().remove(),a.enter().append("g").attr("class",n),a.order();var o=r.classed("rangeplot")?"nodeRangePlot3":"node3";return a.each(function(i){i[0][o]=fee.select(this)}),a}});var lT=_e((u4e,oT)=>{"use strict";var cee=Er();oT.exports=function(r,t){for(var n=r._context.locale,a=0;a<2;a++){for(var o=r._context.locales,i=0;i<2;i++){var l=(o[n]||{}).dictionary;if(l){var u=l[t];if(u)return u}o=cee.localeRegistry}var s=n.split("-")[0];if(s===n)break;n=s}return t}});var uT=_e((f4e,sT)=>{"use strict";sT.exports=function(r){for(var t={},n=[],a=0,o=0;o{"use strict";fT.exports=function(r){for(var t=dee(r)?hee:vee,n=[],a=0;a{"use strict";vT.exports=function(r,t){if(!t)return r;var n=1/Math.abs(t),a=n>1?(n*r+n*t)/n:r+t,o=String(a).length;if(o>16){var i=String(t).length,l=String(r).length;if(o>=l+i){var u=parseFloat(a).toPrecision(12);u.indexOf("e+")===-1&&(a=+u)}}return a}});var pT={};Ut(pT,{default:()=>yee});function gee(e){return typeof e=="string"&&(e=e.replace(pee,"")),(0,dT.default)(e)?Number(e):void 0}var dT,pee,yee,gT=Ot(()=>{"use strict";dT=Y_(ot());mn();pee=/^['"%,$#\s']+|[, ]|['"%,$#\s']+$/g;yee=gee});var bT=_e((d4e,mT)=>{"use strict";var mee=/<[^>]*>/g,bee=/[\p{S}\p{P}]/gu,xee=/[\p{Cc}\p{Cf}\uFE00-\uFE0F\u20E3]/gu,_ee=/�/g,wee=/\s+/g,Jh="-",yT=Jh.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),Mee=new RegExp(yT+"{3,}","g"),Tee=new RegExp(yT+"$","g"),Aee=60;function kee(e){return typeof e.toWellFormed=="function"?e.toWellFormed():new TextDecoder().decode(new TextEncoder().encode(e))}mT.exports=function(r,t=Aee){var n=kee(r!=null?r:"").replace(_ee,"").replace(mee," ").replace(bee,a=>a===Jh?a:"").toLowerCase().trim().replace(wee,Jh).replace(xee,"").replace(Mee,Jh);return n.length<=t?n:Array.from(n).slice(0,t).join("").replace(Tee,"")}});var rr=_e((p4e,DT)=>{"use strict";var Hf=at(),See=_0().utcFormat,Cee=og().format,AT=ot(),kT=(mn(),or(Cn)),ST=kT.FP_SAFE,Eee=-ST,xT=kT.BADNUM,He={};DT.exports=He;He.adjustFormat=function(r){if(!r||/^\d[.]\df/.test(r)||/[.]\d%/.test(r))return r;if(r==="0.f")return"~f";if(/^\d%/.test(r))return"~%";if(/^\ds/.test(r))return"~s";var t=(r.match(/^[+\-( ]?/)||[""])[0],n=r.slice(t.length);return!/^[~,.0$#]/.test(n)&&/[&fps]/.test(n)?t+"~"+n:r};var _T={};He.warnBadFormat=function(e){var r=String(e);_T[r]||(_T[r]=1,He.warn('encountered bad format: "'+r+'"'))};He.noFormat=function(e){return String(e)};He.numberFormat=function(e){var r;try{r=Cee(He.adjustFormat(e))}catch(t){return He.warnBadFormat(e),He.noFormat}return r};He.nestedProperty=Qv();He.keyedContainer=d7();He.relativeAttr=g7();He.isPlainObject=os();He.toLogRange=eh();He.relinkPrivateKeys=x7();var dl=ha();He.isArrayBuffer=dl.isArrayBuffer;He.isTypedArray=dl.isTypedArray;He.isArrayOrTypedArray=dl.isArrayOrTypedArray;He.isArray1D=dl.isArray1D;He.ensureArray=dl.ensureArray;He.concat=dl.concat;He.maxRowLength=dl.maxRowLength;He.minRowLength=dl.minRowLength;var CT=(T0(),or(M0));He.mod=CT.mod;He.modHalf=CT.modHalf;var pl=U8();He.valObjectMeta=pl.valObjectMeta;He.coerce=pl.coerce;He.coerce2=pl.coerce2;He.coerceFont=pl.coerceFont;He.coercePattern=pl.coercePattern;He.coerceHoverinfo=pl.coerceHoverinfo;He.coerceSelectionMarkerOpacity=pl.coerceSelectionMarkerOpacity;He.validate=pl.validate;var Pa=OM();He.dateTime2ms=Pa.dateTime2ms;He.isDateTime=Pa.isDateTime;He.ms2DateTime=Pa.ms2DateTime;He.ms2DateTimeLocal=Pa.ms2DateTimeLocal;He.cleanDate=Pa.cleanDate;He.isJSDate=Pa.isJSDate;He.formatDate=Pa.formatDate;He.incrementMonth=Pa.incrementMonth;He.dateTick0=Pa.dateTick0;He.dfltRange=Pa.dfltRange;He.findExactDates=Pa.findExactDates;He.MIN_MS=Pa.MIN_MS;He.MAX_MS=Pa.MAX_MS;var ws=oy();He.findBin=ws.findBin;He.sorterAsc=ws.sorterAsc;He.sorterDes=ws.sorterDes;He.distinctVals=ws.distinctVals;He.roundUp=ws.roundUp;He.sort=ws.sort;He.findIndexOfMin=ws.findIndexOfMin;He.sortObjectKeys=(Gh(),or(Vh)).default;var Io=HM();He.aggNums=Io.aggNums;He.len=Io.len;He.mean=Io.mean;He.geometricMean=Io.geometricMean;He.median=Io.median;He.midRange=Io.midRange;He.variance=Io.variance;He.stdev=Io.stdev;He.interp=Io.interp;var Ti=Fh();He.init2dArray=Ti.init2dArray;He.transposeRagged=Ti.transposeRagged;He.dot=Ti.dot;He.translationMatrix=Ti.translationMatrix;He.rotationMatrix=Ti.rotationMatrix;He.rotationXYMatrix=Ti.rotationXYMatrix;He.apply3DTransform=Ti.apply3DTransform;He.apply2DTransform=Ti.apply2DTransform;He.apply2DTransform2=Ti.apply2DTransform2;He.convertCssMatrix=Ti.convertCssMatrix;He.inverseTransformMatrix=Ti.inverseTransformMatrix;var eo=WM();He.deg2rad=eo.deg2rad;He.rad2deg=eo.rad2deg;He.angleDelta=eo.angleDelta;He.angleDist=eo.angleDist;He.isFullCircle=eo.isFullCircle;He.isAngleInsideSector=eo.isAngleInsideSector;He.isPtInsideSector=eo.isPtInsideSector;He.pathArc=eo.pathArc;He.pathSector=eo.pathSector;He.pathAnnulus=eo.pathAnnulus;var H0=ZM();He.isLeftAnchor=H0.isLeftAnchor;He.isCenterAnchor=H0.isCenterAnchor;He.isRightAnchor=H0.isRightAnchor;He.isTopAnchor=H0.isTopAnchor;He.isMiddleAnchor=H0.isMiddleAnchor;He.isBottomAnchor=H0.isBottomAnchor;var V0=KM();He.segmentsIntersect=V0.segmentsIntersect;He.segmentDistance=V0.segmentDistance;He.getTextLocation=V0.getTextLocation;He.clearLocationCache=V0.clearLocationCache;He.getVisibleSegment=V0.getVisibleSegment;He.findPointOnPath=V0.findPointOnPath;var Qh=Ft();He.extendFlat=Qh.extendFlat;He.extendDeep=Qh.extendDeep;He.extendDeepAll=Qh.extendDeepAll;He.extendDeepNoArrays=Qh.extendDeepNoArrays;var hy=il();He.log=hy.log;He.warn=hy.warn;He.error=hy.error;var Lee=(P0(),or(Pf));He.counterRegex=Lee.counter;var dy=Wh();He.throttle=dy.throttle;He.throttleDone=dy.done;He.clearThrottle=dy.clear;var Ai=If();He.getGraphDiv=Ai.getGraphDiv;He.isPlotDiv=Ai.isPlotDiv;He.removeElement=Ai.removeElement;He.addStyleRule=Ai.addStyleRule;He.addRelatedStyleRule=Ai.addRelatedStyleRule;He.deleteRelatedStyleRule=Ai.deleteRelatedStyleRule;He.setStyleOnHover=Ai.setStyleOnHover;He.getFullTransformMatrix=Ai.getFullTransformMatrix;He.getElementTransformMatrix=Ai.getElementTransformMatrix;He.getElementAndAncestors=Ai.getElementAndAncestors;He.equalDomRects=Ai.equalDomRects;He.clearResponsive=eT();He.preserveDrawingBuffer=nT();He.makeTraceGroups=iT();He._=lT();He.notifier=B3();He.filterUnique=uT();He.filterVisible=cT();He.pushUnique=Z3();He.increment=hT();He.cleanNumber=(gT(),or(pT)).default;He.slugify=bT();He.ensureNumber=function(r){return AT(r)?(r=Number(r),r>ST||r=r?!1:AT(e)&&e>=0&&e%1===0};He.noop=Rh();He.identity=ay();He.repeat=function(e,r){for(var t=new Array(r),n=0;nt?Math.max(t,Math.min(r,e)):Math.max(r,Math.min(t,e))};He.bBoxIntersect=function(e,r,t){return t=t||0,e.left<=r.right+t&&r.left<=e.right+t&&e.top<=r.bottom+t&&r.top<=e.bottom+t};He.simpleMap=function(e,r,t,n,a){for(var o=e.length,i=new Array(o),l=0;l=Math.pow(2,t)?a>10?(He.warn("randstr failed uniqueness"),i):e(r,t,n,(a||0)+1):i};He.OptionControl=function(e,r){e||(e={}),r||(r="opt");var t={};return t.optionList=[],t._newoption=function(n){n[r]=e,t[n.name]=n,t.optionList.push(n)},t["_"+r]=e,t};He.smooth=function(e,r){if(r=Math.round(r)||0,r<2)return e;var t=e.length,n=2*t,a=2*r-1,o=new Array(a),i=new Array(t),l,u,s,f;for(l=0;l=n&&(s-=n*Math.floor(s/n)),s<0?s=-1-s:s>=t&&(s=n-1-s),f+=e[s]*o[u];i[l]=f}return i};He.syncOrAsync=function(e,r,t){var n,a;function o(){return He.syncOrAsync(e,r,t)}for(;e.length;)if(a=e.splice(0,1)[0],n=a(r),n&&n.then)return n.then(o);return t&&t(r)};He.stripTrailingSlash=function(e){return e.slice(-1)==="/"?e.slice(0,-1):e};He.noneOrAll=function(e,r,t){if(e){var n=!1,a=!0,o,i;for(o=0;o0?a:0})};He.fillArray=function(e,r,t,n){if(n=n||He.identity,He.isArrayOrTypedArray(e))for(var a=0;aFee.test(window.navigator.userAgent);var Pee=/Firefox\/(\d+)\.\d+/;He.getFirefoxVersion=function(){var e=Pee.exec(window.navigator.userAgent);if(e&&e.length===2){var r=parseInt(e[1]);if(!isNaN(r))return r}return null};He.isD3Selection=function(e){return e instanceof Hf.selection};He.ensureSingle=function(e,r,t,n){var a=e.select(r+(t?"."+t:""));if(a.size())return a;var o=e.append(r);return t&&o.classed(t,!0),n&&o.call(n),o};He.ensureSingleById=function(e,r,t,n){var a=e.select(r+"#"+t);if(a.size())return a;var o=e.append(r).attr("id",t);return n&&o.call(n),o};He.objectFromPath=function(e,r){for(var t=e.split("."),n,a=n={},o=0;o1?a+i[1]:"";if(o&&(i.length>1||l.length>4||t))for(;n.test(l);)l=l.replace(n,"$1"+o+"$2");return l+u};He.TEMPLATE_STRING_REGEX=/%{([^\s%{}:]*)([:|\|][^}]*)?}/g;var LT=/^\w*$/;He.templateString=function(e,r){var t={};return e.replace(He.TEMPLATE_STRING_REGEX,function(n,a){var o;return LT.test(a)?o=r[a]:(t[a]=t[a]||He.nestedProperty(r,a).get,o=t[a](!0)),o!==void 0?o:""})};var Nee={max:10,count:0,name:"hovertemplate"};He.hovertemplateString=e=>py(Bt(_t({},e),{opts:Nee}));var qee={max:10,count:0,name:"texttemplate"};He.texttemplateString=e=>py(Bt(_t({},e),{opts:qee}));var Bee=/^(\S+)([\*\/])(-?\d+(\.\d+)?)$/;function Oee(e){var r=e.match(Bee);return r?{key:r[1],op:r[2],number:Number(r[3])}:{key:e,op:null,number:null}}var Uee={max:10,count:0,name:"texttemplate",parseMultDiv:!0};He.texttemplateStringForShapes=e=>py(Bt(_t({},e),{opts:Uee}));var wT=/^[:|\|]/;function py({data:e=[],locale:r,fallback:t,labels:n={},opts:a,template:o}){return o.replace(He.TEMPLATE_STRING_REGEX,(i,l,u)=>{let s=["xother","yother"].includes(l),f=["_xother","_yother"].includes(l),c=["_xother_","_yother_"].includes(l),p=["xother_","yother_"].includes(l),x=s||f||p||c;(f||c)&&(l=l.substring(1)),(p||c)&&(l=l.substring(0,l.length-1));let g=null,w=null;if(a.parseMultDiv){var M=Oee(l);l=M.key,g=M.op,w=M.number}let m;if(x){if(n[l]===void 0)return"";m=n[l]}else for(let T of e)if(T){if(T.hasOwnProperty(l)){m=T[l];break}if(LT.test(l)||(m=He.nestedProperty(T,l).get(!0)),m!==void 0)break}if(m===void 0){let{count:T,max:h,name:_}=a,y=t===!1?i:t;return T=Kh&&i<=MT,s=l>=Kh&&l<=MT;if(u&&(n=10*n+i-Kh),s&&(a=10*a+l-Kh),!u||!s){if(n!==a)return n-a;if(i!==l)return i-l}}return a-n};var U0=2e9;He.seedPseudoRandom=function(){U0=2e9};He.pseudoRandom=function(){var e=U0;return U0=(69069*U0+1)%4294967296,Math.abs(U0-e)<429496729?He.pseudoRandom():U0/4294967296};He.fillText=function(e,r,t){var n=Array.isArray(t)?function(i){t.push(i)}:function(i){t.text=i},a=He.extractOption(e,r,"htx","hovertext");if(He.isValidTextValue(a))return n(a);var o=He.extractOption(e,r,"tx","text");if(He.isValidTextValue(o))return n(o)};He.isValidTextValue=function(e){return e||e===0};He.formatPercent=function(e,r){r=r||0;for(var t=(Math.round(100*e*Math.pow(10,r))*Math.pow(.1,r)).toFixed(r)+"%",n=0;n1&&(s=1):s=0,He.strTranslate(a-s*(t+i),o-s*(n+l))+He.strScale(s)+(u?"rotate("+u+(r?"":" "+t+" "+n)+")":"")};He.setTransormAndDisplay=function(e,r){e.attr("transform",He.getTextTransform(r)),e.style("display",r.scale?null:"none")};He.ensureUniformFontSize=function(e,r){var t=He.extendFlat({},r);return t.size=Math.max(r.size,e._fullLayout.uniformtext.minsize||0),t};He.join2=function(e,r,t){var n=e.length;return n>1?e.slice(0,-1).join(r)+t+e[n-1]:e.join(r)};He.bigFont=function(e){return Math.round(1.2*e)};var TT=He.getFirefoxVersion(),Hee=TT!==null&&TT<86;He.getPositionFromD3Event=function(){return Hee?[Hf.event.layerX,Hf.event.layerY]:[Hf.event.offsetX,Hf.event.offsetY]}});var PT=_e(()=>{"use strict";var Vee=rr(),RT={"X,X div":'direction:ltr;font-family:"Open Sans",verdana,arial,sans-serif;margin:0;padding:0;border: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 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:focus-within .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-group a":"display:grid;place-content:center;","X .modebar-btn":"position:relative;font-size:16px;padding:3px 4px;height:22px;cursor:pointer;line-height:normal;box-sizing:border-box;border:none;background:rgba(0,0,0,0);","X .modebar-btn svg":"position:relative;","X .modebar-btn:focus-visible":"outline:1px solid #000;outline-offset:1px;border-radius:3px;","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;","X .plotly-cloud-dialog":'font-family:"Open Sans",verdana,arial,sans-serif;position:absolute;top:0;left:0;width:100%;height:100%;z-index:1001;display:flex;align-items:center;justify-content:center;background-color:rgba(0,0,0,.4);',"X .plotly-cloud-dialog .plotly-cloud-dialog-box":"box-sizing:border-box;min-width:300px;max-width:420px;padding:20px 24px;background-color:#fff;border:1px solid #e0e2e5;border-radius:4px;box-shadow:0 4px 16px rgba(0,0,0,.25);font-size:13px;color:#2a3f5f;","X .plotly-cloud-dialog .plotly-cloud-dialog-title":"font-size:16px;font-weight:bold;margin-bottom:12px;","X .plotly-cloud-dialog .plotly-cloud-dialog-message":"line-height:1.5;overflow-wrap:break-word;word-wrap:break-word;","X .plotly-cloud-dialog .plotly-cloud-dialog-message--hostname":"font-weight:bold;text-decoration:underline;","X .plotly-cloud-dialog .plotly-cloud-dialog-message--account":"margin-top:16px;padding:8px;border-radius:3px;font-size:.9em;background-color:#edf1f8;","X .plotly-cloud-dialog .plotly-cloud-dialog-buttons":"display:flex;justify-content:flex-end;margin-top:20px;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn":"font-family:inherit;font-size:13px;padding:7px 16px;margin-left:8px;border-radius:3px;border:1px solid rgba(0,0,0,0);cursor:pointer;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn:focus-visible":"outline:2px solid #447adb;outline-offset:1px;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn--cancel":"background-color:#f3f3f3;margin-left:auto;color:#777;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn--cancel:hover":"background-color:#e0e2e5;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn--confirm":"background-color:#447adb;color:#fff;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn--confirm:hover":"background-color:#1d3b84;",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(gy in RT)FT=gy.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier"),Vee.addStyleRule(FT,RT[gy]);var FT,gy});var yy=_e((b4e,IT)=>{IT.exports=!0});var by=_e((x4e,zT)=>{"use strict";var Gee=yy(),my;typeof window.matchMedia=="function"?my=!window.matchMedia("(hover: none)").matches:my=Gee;zT.exports=my});var r1=_e((_4e,xy)=>{"use strict";var G0=typeof Reflect=="object"?Reflect:null,NT=G0&&typeof G0.apply=="function"?G0.apply:function(r,t,n){return Function.prototype.apply.call(r,t,n)},jh;G0&&typeof G0.ownKeys=="function"?jh=G0.ownKeys:Object.getOwnPropertySymbols?jh=function(r){return Object.getOwnPropertyNames(r).concat(Object.getOwnPropertySymbols(r))}:jh=function(r){return Object.getOwnPropertyNames(r)};function Yee(e){console&&console.warn&&console.warn(e)}var BT=Number.isNaN||function(r){return r!==r};function It(){It.init.call(this)}xy.exports=It;xy.exports.once=Jee;It.EventEmitter=It;It.prototype._events=void 0;It.prototype._eventsCount=0;It.prototype._maxListeners=void 0;var qT=10;function e1(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(It,"defaultMaxListeners",{enumerable:!0,get:function(){return qT},set:function(e){if(typeof e!="number"||e<0||BT(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");qT=e}});It.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};It.prototype.setMaxListeners=function(r){if(typeof r!="number"||r<0||BT(r))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+r+".");return this._maxListeners=r,this};function OT(e){return e._maxListeners===void 0?It.defaultMaxListeners:e._maxListeners}It.prototype.getMaxListeners=function(){return OT(this)};It.prototype.emit=function(r){for(var t=[],n=1;n0&&(i=t[0]),i instanceof Error)throw i;var l=new Error("Unhandled error."+(i?" ("+i.message+")":""));throw l.context=i,l}var u=o[r];if(u===void 0)return!1;if(typeof u=="function")NT(u,this,t);else for(var s=u.length,f=YT(u,s),n=0;n0&&i.length>a&&!i.warned){i.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+i.length+" "+String(r)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=r,l.count=i.length,Yee(l)}return e}It.prototype.addListener=function(r,t){return UT(this,r,t,!1)};It.prototype.on=It.prototype.addListener;It.prototype.prependListener=function(r,t){return UT(this,r,t,!0)};function Xee(){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 HT(e,r,t){var n={fired:!1,wrapFn:void 0,target:e,type:r,listener:t},a=Xee.bind(n);return a.listener=t,n.wrapFn=a,a}It.prototype.once=function(r,t){return e1(t),this.on(r,HT(this,r,t)),this};It.prototype.prependOnceListener=function(r,t){return e1(t),this.prependListener(r,HT(this,r,t)),this};It.prototype.removeListener=function(r,t){var n,a,o,i,l;if(e1(t),a=this._events,a===void 0)return this;if(n=a[r],n===void 0)return this;if(n===t||n.listener===t)--this._eventsCount===0?this._events=Object.create(null):(delete a[r],a.removeListener&&this.emit("removeListener",r,n.listener||t));else if(typeof n!="function"){for(o=-1,i=n.length-1;i>=0;i--)if(n[i]===t||n[i].listener===t){l=n[i].listener,o=i;break}if(o<0)return this;o===0?n.shift():Wee(n,o),n.length===1&&(a[r]=n[0]),a.removeListener!==void 0&&this.emit("removeListener",r,l||t)}return this};It.prototype.off=It.prototype.removeListener;It.prototype.removeAllListeners=function(r){var t,n,a;if(n=this._events,n===void 0)return this;if(n.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):n[r]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete n[r]),this;if(arguments.length===0){var o=Object.keys(n),i;for(a=0;a=0;a--)this.removeListener(r,t[a]);return this};function VT(e,r,t){var n=e._events;if(n===void 0)return[];var a=n[r];return a===void 0?[]:typeof a=="function"?t?[a.listener||a]:[a]:t?Zee(a):YT(a,a.length)}It.prototype.listeners=function(r){return VT(this,r,!0)};It.prototype.rawListeners=function(r){return VT(this,r,!1)};It.listenerCount=function(e,r){return typeof e.listenerCount=="function"?e.listenerCount(r):GT.call(e,r)};It.prototype.listenerCount=GT;function GT(e){var r=this._events;if(r!==void 0){var t=r[e];if(typeof t=="function")return 1;if(t!==void 0)return t.length}return 0}It.prototype.eventNames=function(){return this._eventsCount>0?jh(this._events):[]};function YT(e,r){for(var t=new Array(r),n=0;n{"use strict";var _y=r1().EventEmitter,Kee={init:function(e){if(e._ev instanceof _y)return e;var r=new _y,t=new _y;return e._ev=r,e._internalEv=t,e.on=r.on.bind(r),e.once=r.once.bind(r),e.removeListener=r.removeListener.bind(r),e.removeAllListeners=r.removeAllListeners.bind(r),e._internalOn=t.on.bind(t),e._internalOnce=t.once.bind(t),e._removeInternalListener=t.removeListener.bind(t),e._removeAllInternalListeners=t.removeAllListeners.bind(t),e.emit=function(n,a){r.emit(n,a),t.emit(n,a)},typeof e.addEventListener=="function"&&e.addEventListener("wheel",()=>{},{passive:!0}),e},triggerHandler:function(e,r,t){var n,a=e._ev;if(!a)return;var o=a._events[r];if(!o)return;function i(u){if(u.listener){if(a.removeListener(r,u.listener),!u.fired)return u.fired=!0,u.listener.apply(a,[t])}else return u.apply(a,[t])}o=Array.isArray(o)?o:[o];var l;for(l=0;l{"use strict";var ZT=rr(),Qee=al().dfltConfig;function jee(e,r){for(var t=[],n,a=0;aQee.queueLength&&(e.undoQueue.queue.shift(),e.undoQueue.index--)};zo.startSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!0,e.undoQueue.beginSequence=!0};zo.stopSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!1,e.undoQueue.beginSequence=!1};zo.undo=function(r){var t,n;if(!(r.undoQueue===void 0||isNaN(r.undoQueue.index)||r.undoQueue.index<=0)){for(r.undoQueue.index--,t=r.undoQueue.queue[r.undoQueue.index],r.undoQueue.inSequence=!0,n=0;n=r.undoQueue.queue.length)){for(t=r.undoQueue.queue[r.undoQueue.index],r.undoQueue.inSequence=!0,n=0;n{"use strict";KT.exports={_isLinkedToArray:"frames_entry",group:{valType:"string"},name:{valType:"string"},traces:{valType:"any"},baseframe:{valType:"string"},data:{valType:"any"},layout:{valType:"any"}}});var W0=_e(vn=>{"use strict";var ja=Er(),Gf=rr(),n1=Vn(),My=N0(),ere=wy(),rre=zf(),tre=al().configAttributes,QT=ia(),ki=Gf.extendDeepAll,Y0=Gf.isPlainObject,nre=Gf.isArrayOrTypedArray,a1=Gf.nestedProperty,are=Gf.valObjectMeta,Ty="_isSubplotObj",i1="_isLinkedToArray",ire="_arrayAttrRegexps",eA="_deprecated",Ay=[Ty,i1,ire,eA];vn.IS_SUBPLOT_OBJ=Ty;vn.IS_LINKED_TO_ARRAY=i1;vn.DEPRECATED=eA;vn.UNDERSCORE_ATTRS=Ay;vn.get=function(){var e={};return ja.allTypes.forEach(function(r){e[r]=lre(r)}),{defs:{valObjects:are,metaKeys:Ay.concat(["description","role","editType","impliedEdits"]),editType:{traces:QT.traces,layout:QT.layout},impliedEdits:{}},traces:e,layout:sre(),frames:ure(),animation:X0(rre),config:X0(tre)}};vn.crawl=function(e,r,t,n){var a=t||0;n=n||"",Object.keys(e).forEach(function(o){var i=e[o];if(Ay.indexOf(o)===-1){var l=(n?n+".":"")+o;r(i,o,e,a,l),!vn.isValObject(i)&&Y0(i)&&o!=="impliedEdits"&&vn.crawl(i,r,a+1,l)}})};vn.isValObject=function(e){return e&&e.valType!==void 0};vn.findArrayAttributes=function(e){var r=[],t=[],n=[],a,o;function i(u,s,f,c){t=t.slice(0,c).concat([s]),n=n.slice(0,c).concat([u&&u._isLinkedToArray]);var p=u&&(u.valType==="data_array"||u.arrayOk===!0)&&!(t[c-1]==="colorbar"&&(s==="ticktext"||s==="tickvals"));p&&l(a,0,"")}function l(u,s,f){var c=u[t[s]],p=f+t[s];if(s===t.length-1)nre(c)&&r.push(o+p);else if(n[s]){if(Array.isArray(c))for(var x=0;x=o.length)return!1;if(e.dimensions===2){if(t++,r.length===t)return e;var i=r[t];if(!t1(i))return!1;e=o[a][i]}else e=o[a]}else e=o}}return e}function t1(e){return e===Math.round(e)&&e>=0}function lre(e){var r,t;r=ja.modules[e]._module,t=r.basePlotModule;var n={};n.type=null;var a=ki({},n1),o=ki({},r.attributes);vn.crawl(o,function(u,s,f,c,p){a1(a,p).set(void 0),u===void 0&&a1(o,p).set(void 0)}),ki(n,a),ja.traceIs(e,"noOpacity")&&delete n.opacity,ja.traceIs(e,"showLegend")||(delete n.showlegend,delete n.legendgroup),ja.traceIs(e,"noHover")&&(delete n.hoverinfo,delete n.hoverlabel),r.selectPoints||delete n.selectedpoints,ki(n,o),t.attributes&&ki(n,t.attributes),n.type=e;var i={meta:r.meta||{},categories:r.categories||{},animatable:!!r.animatable,type:e,attributes:X0(n)};if(r.layoutAttributes){var l={};ki(l,r.layoutAttributes),i.layoutAttributes=X0(l)}return r.animatable||vn.crawl(i,function(u){vn.isValObject(u)&&"anim"in u&&delete u.anim}),i}function sre(){var e={},r,t;ki(e,My);for(r in ja.subplotsRegistry)if(t=ja.subplotsRegistry[r],!!t.layoutAttributes)if(Array.isArray(t.attr))for(var n=0;n{"use strict";var Z0=rr(),dre=Vn(),yl="templateitemname",ky={name:{valType:"string",editType:"none"}};ky[yl]={valType:"string",editType:"calc"};Ms.templatedArray=function(e,r){return r._isLinkedToArray=e,r.name=ky.name,r[yl]=ky[yl],r};Ms.traceTemplater=function(e){var r={},t,n;for(t in e)n=e[t],Array.isArray(n)&&n.length&&(r[t]=0);function a(o){t=Z0.coerce(o,{},dre,"type");var i={type:t,_template:null};if(t in r){n=e[t];var l=r[t]%n.length;r[t]++,i._template=n[l]}return i}return{newTrace:a}};Ms.newContainer=function(e,r,t){var n=e._template,a=n&&(n[r]||t&&n[t]);Z0.isPlainObject(a)||(a=null);var o=e[r]={_template:a};return o};Ms.arrayTemplater=function(e,r,t){var n=e._template,a=n&&n[nA(r)],o=n&&n[r];(!Array.isArray(o)||!o.length)&&(o=[]);var i={};function l(s){var f={name:s.name,_input:s},c=f[yl]=s[yl];if(!tA(c))return f._template=a,f;for(var p=0;p=n&&(t._input||{})._templateitemname;o&&(a=n);var i=r+"["+a+"]",l;function u(){l={},o&&(l[i]={},l[i][yl]=o)}u();function s(x,g){l[x]=g}function f(x,g){o?Z0.nestedProperty(l[i],x).set(g):l[i+"."+x]=g}function c(){var x=l;return u(),x}function p(x,g){x&&f(x,g);var w=c();for(var M in w)Z0.nestedProperty(e,M).set(w[M])}return{modifyBase:s,modifyItem:f,getUpdateObj:c,applyUpdate:p}}});var _n={};Ut(_n,{AX_ID_PATTERN:()=>bre,AX_NAME_PATTERN:()=>xre,DFLTRANGEX:()=>Cre,DFLTRANGEY:()=>Ere,DRAGGERSIZE:()=>kre,HOUR_PATTERN:()=>wre,MINDRAG:()=>Tre,MINZOOM:()=>Are,REDRAWDELAY:()=>Sre,SUBPLOT_PATTERN:()=>_re,WEEKDAY_PATTERN:()=>Mre,attrRegex:()=>gre,clipOnAxisFalseQuery:()=>Dre,idRegex:()=>pre,layerValue2layerClass:()=>Rre,traceLayerClasses:()=>Lre,xAxisMatch:()=>yre,yAxisMatch:()=>mre,zindexSeparator:()=>Fre});var pre,gre,yre,mre,bre,xre,_re,wre,Mre,Tre,Are,kre,Sre,Cre,Ere,Lre,Dre,Rre,Fre,wn=Ot(()=>{"use strict";P0();pre={x:ms("x","( domain)?"),y:ms("y","( domain)?")},gre=ms("[xy]axis"),yre=ms("xaxis"),mre=ms("yaxis"),bre=/^[xyz][0-9]*( domain)?$/,xre=/^[xyz]axis[0-9]*$/,_re=/^x([0-9]*)y([0-9]*)$/,wre="hour",Mre="day of week",Tre=8,Are=20,kre=20,Sre=50,Cre=[-1,6],Ere=[-1,4],Lre=["imagelayer","heatmaplayer","contourcarpetlayer","contourlayer","funnellayer","waterfalllayer","barlayer","carpetlayer","violinlayer","boxlayer","ohlclayer","scattercarpetlayer","scatterlayer"],Dre=[".scatterlayer",".barlayer",".funnellayer",".waterfalllayer"],Rre={"above traces":"above","below traces":"below"},Fre="z"});var hn=_e(Aa=>{"use strict";var Pre=Er(),Sy=(wn(),or(_n));Aa.id2name=function(r){if(!(typeof r!="string"||!r.match(Sy.AX_ID_PATTERN))){var t=r.split(" ")[0].slice(1);return t==="1"&&(t=""),r.charAt(0)+"axis"+t}};Aa.name2id=function(r){if(r.match(Sy.AX_NAME_PATTERN)){var t=r.slice(5);return t==="1"&&(t=""),r.charAt(0)+t}};Aa.cleanId=function(r,t,n){var a=/( domain)$/.test(r);if(!(typeof r!="string"||!r.match(Sy.AX_ID_PATTERN))&&!(t&&r.charAt(0)!==t)&&!(a&&!n)){var o=r.split(" ")[0].slice(1).replace(/^0+/,"");return o==="1"&&(o=""),r.charAt(0)+o+(a&&n?" domain":"")}};Aa.list=function(e,r,t){var n=e._fullLayout;if(!n)return[];var a=Aa.listIds(e,r),o=new Array(a.length),i;for(i=0;in?1:-1:+(e.slice(1)||1)-+(r.slice(1)||1)};Aa.ref2id=function(e){return/^[xyz]/.test(e)?e.split(" ")[0]:!1};function aA(e,r){if(r&&r.length){for(var t=0;t{"use strict";function Ire(e){var r=e._fullLayout._zoomlayer;r&&r.selectAll(".outline-controllers").remove()}function zre(e){var r=e._fullLayout._zoomlayer;r&&r.selectAll(".select-outline").remove(),e._fullLayout._outlining=!1}iA.exports={clearOutlineControllers:Ire,clearOutline:zre}});var o1=_e((L4e,oA)=>{"use strict";oA.exports={scattermode:{valType:"enumerated",values:["group","overlay"],dflt:"overlay",editType:"calc"},scattergap:{valType:"number",min:0,max:1,editType:"calc"}}});var Yf=_e(s1=>{"use strict";var l1=Er(),D4e=(wn(),or(_n)).SUBPLOT_PATTERN;s1.getSubplotCalcData=function(e,r,t){var n=l1.subplotsRegistry[r];if(!n)return[];for(var a=n.attr,o=[],i=0;i{"use strict";var Nre=Er(),J0=rr();Ts.manageCommandObserver=function(e,r,t,n){var a={},o=!0;r&&r._commandObserver&&(a=r._commandObserver),a.cache||(a.cache={}),a.lookupTable={};var i=Ts.hasSimpleAPICommandBindings(e,t,a.lookupTable);if(r&&r._commandObserver){if(i)return a;if(r._commandObserver.remove)return r._commandObserver.remove(),r._commandObserver=null,a}if(i){lA(e,i,a.cache),a.check=function(){if(o){var f=lA(e,i,a.cache);return f.changed&&n&&a.lookupTable[f.value]!==void 0&&(a.disable(),Promise.resolve(n({value:f.value,type:i.type,prop:i.prop,traces:i.traces,index:a.lookupTable[f.value]})).then(a.enable,a.enable)),f.changed}};for(var l=["plotly_relayout","plotly_redraw","plotly_restyle","plotly_update","plotly_animatingframe","plotly_afterplot"],u=0;u0?".":"")+a;J0.isPlainObject(o)?Cy(o,r,i,n+1):r(i,a,o)}})}});var Mn=_e((I4e,xA)=>{"use strict";var P4e=at(),Bre=_0().timeFormatLocale,Ore=og().formatLocale,Xf=ot(),Ure=sg(),Hre=ff().version,lt=Er(),Vre=W0(),Gre=Mt(),mr=rr(),Yre=Wr(),cA=(mn(),or(Cn)).BADNUM,ka=hn(),Xre=ml().clearOutline,Wre=o1(),Ey=zf(),Zre=wy(),Jre=Yf().getModuleCalcData,vA=mr.relinkPrivateKeys,As=mr._,fr=xA.exports={};mr.extendFlat(fr,lt);fr.attributes=Vn();fr.attributes.type.values=fr.allTypes;fr.fontAttrs=Hn();fr.layoutAttributes=N0();var f1=fA();fr.executeAPICommand=f1.executeAPICommand;fr.computeAPICommandBindings=f1.computeAPICommandBindings;fr.manageCommandObserver=f1.manageCommandObserver;fr.hasSimpleAPICommandBindings=f1.hasSimpleAPICommandBindings;fr.redrawText=function(e){return e=mr.getGraphDiv(e),new Promise(function(r){setTimeout(function(){e._fullLayout&&(lt.getComponentMethod("annotations","draw")(e),lt.getComponentMethod("legend","draw")(e),lt.getComponentMethod("colorbar","draw")(e),r(fr.previousPromises(e)))},300)})};fr.resize=function(e){e=mr.getGraphDiv(e);var r,t=new Promise(function(n,a){(!e||mr.isHidden(e))&&a(new Error("Resize must be passed a displayed plot div element.")),e._redrawTimer&&clearTimeout(e._redrawTimer),e._resolveResize&&(r=e._resolveResize),e._resolveResize=n,e._redrawTimer=setTimeout(function(){if(!e.layout||e.layout.width&&e.layout.height||mr.isHidden(e)){n(e);return}delete e.layout.width,delete e.layout.height;var o=e.changed;e.autoplay=!0,lt.call("relayout",e,{autosize:!0}).then(function(){e.changed=o,e._resolveResize===n&&(delete e._resolveResize,n(e))})},100)});return r&&r(t),t};fr.previousPromises=function(e){if((e._promises||[]).length)return Promise.all(e._promises).then(function(){e._promises=[]})};fr.sendDataToCloud=function(e,r){e.emit("plotly_beforeexport");let t=new URL(r).origin;var n=fr.graphJson(e,!1,"object");n.version=Hre;var a=new URL(r);a.searchParams.set("origin",window.location.origin);var o=window.open(a.href,"_blank");if(!o){console.error("Unable to open Plotly Cloud (the popup may have been blocked)"),e.emit("plotly_exportfail");return}var i=function(l){l.origin===t&&l.data&&l.data.type==="CHART_AUTH_SUCCESS"&&(o.postMessage({type:"chart",chart:n},t),window.removeEventListener("message",i),e.emit("plotly_afterexport"))};return window.addEventListener("message",i),!1};var $re=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],Kre=["year","month","dayMonth","dayMonthYear"];fr.supplyDefaults=function(e,r){var t=r&&r.skipUpdateCalc,n=e._fullLayout||{};if(n._skipDefaults){delete n._skipDefaults;return}var a=e._fullLayout={},o=e.layout||{},i=e._fullData||[],l=e._fullData=[],u=e.data||[],s=e.calcdata||[],f=e._context||{},c;e._transitionData||fr.createTransitionData(e),a._dfltTitle={plot:As(e,"Click to enter Plot title"),subtitle:As(e,"Click to enter Plot subtitle"),x:As(e,"Click to enter X axis title"),y:As(e,"Click to enter Y axis title"),colorbar:As(e,"Click to enter Colorscale title"),annotation:As(e,"new text")},a._traceWord=As(e,"trace");var p=hA(e,$re);if(n._initialAutoSizeIsDone){var x=n.width,g=n.height;fr.supplyLayoutGlobalDefaults(o,a,p),o.width||(a.width=x),o.height||(a.height=g),fr.sanitizeMargins(a)}else{fr.supplyLayoutGlobalDefaults(o,a,p);var w=!o.width||!o.height,M=a.autosize,m=f.autosizable,k=w&&(M||m);k?fr.plotAutoSize(e,o,a):w&&fr.sanitizeMargins(a),!M&&w&&(o.width=a.width,o.height=a.height)}a._d3locale=ete(p,a.separators),a._extraFormat=hA(e,Kre),a._initialAutoSizeIsDone=!0,a._dataLength=u.length,a._modules=[],a._visibleModules=[],a._basePlotModules=[];var S=a._subplots=jre(),b=a._splomAxes={x:{},y:{}},T=a._splomSubplots={};a._splomGridDflt={},a._scatterStackOpts={},a._firstScatter={},a._alignmentOpts={},a._colorAxes={},a._requestRangeslider={},a._traceUids=Qre(i,u),fr.supplyDataDefaults(u,l,o,a);var h=Object.keys(b.x),_=Object.keys(b.y);if(h.length>1&&_.length>1){for(lt.getComponentMethod("grid","sizeDefaults")(o,a),c=0;c15&&_.length>15&&a.shapes.length===0&&a.images.length===0,fr.linkSubplots(l,a,i,n),fr.cleanPlot(l,a,i,n);var D=!!(n._has&&n._has("cartesian")),E=!!(a._has&&a._has("cartesian")),R=D,z=E;R&&!z?n._bgLayer.remove():z&&!R&&(a._shouldCreateBgLayer=!0),n._zoomlayer&&!e._dragging&&Xre({_fullLayout:n}),rte(l,a),vA(a,n),lt.getComponentMethod("colorscale","crossTraceDefaults")(l,a),a._preGUI||(a._preGUI={}),a._tracePreGUI||(a._tracePreGUI={});var I=a._tracePreGUI,P={},L;for(L in I)P[L]="old";for(c=0;c0){var f=1-2*o;i=Math.round(f*i),l=Math.round(f*l)}}var c=fr.layoutAttributes.width.min,p=fr.layoutAttributes.height.min;i1,g=!t.height&&Math.abs(n.height-l)>1;(g||x)&&(x&&(n.width=i),g&&(n.height=l)),r._initialAutoSize||(r._initialAutoSize={width:i,height:l}),fr.sanitizeMargins(n)};fr.supplyLayoutModuleDefaults=function(e,r,t,n){var a=lt.componentsRegistry,o=r._basePlotModules,i,l,u,s=lt.subplotsRegistry.cartesian;for(i in a)u=a[i],u.includeBasePlot&&u.includeBasePlot(e,r);o.length||o.push(s),r._has("cartesian")&&(lt.getComponentMethod("grid","contentDefaults")(e,r),s.finalizeSubplots(e,r));for(var f in r._subplots)r._subplots[f].sort(mr.subplotSort);for(l=0;l1&&(t.l/=M,t.r/=M)}if(p){var m=(t.t+t.b)/p;m>1&&(t.t/=m,t.b/=m)}var k=t.xl!==void 0?t.xl:t.x,S=t.xr!==void 0?t.xr:t.x,b=t.yt!==void 0?t.yt:t.y,T=t.yb!==void 0?t.yb:t.y;x[r]={l:{val:k,size:t.l+w},r:{val:S,size:t.r+w},b:{val:T,size:t.b+w},t:{val:b,size:t.t+w}},g[r]=1}if(!n._replotting)return fr.doAutoMargin(e)}};function nte(e){if("_redrawFromAutoMarginCount"in e._fullLayout)return!1;var r=ka.list(e,"",!0);for(var t in r)if(r[t].autoshift||r[t].shift)return!0;return!1}fr.doAutoMargin=function(e){var r=e._fullLayout,t=r.width,n=r.height;r._size||(r._size={}),gA(r);var a=r._size,o=r.margin,i={t:0,b:0,l:0,r:0},l=mr.extendFlat({},a),u=o.l,s=o.r,f=o.t,c=o.b,p=r._pushmargin,x=r._pushmarginIds,g=r.minreducedwidth,w=r.minreducedheight;if(o.autoexpand!==!1){for(var M in p)x[M]||delete p[M];var m=e._fullLayout._reservedMargin;for(var k in m)for(var S in m[k]){var b=m[k][S];i[S]=Math.max(i[S],b)}p.base={l:{val:0,size:u},r:{val:1,size:s},t:{val:1,size:f},b:{val:0,size:c}};for(var T in i){var h=0;for(var _ in p)_!=="base"&&Xf(p[_][T].size)&&(h=p[_][T].size>h?p[_][T].size:h);var y=Math.max(0,o[T]-h);i[T]=Math.max(0,i[T]-y)}for(var v in p){var A=p[v].l||{},d=p[v].b||{},D=A.val,E=A.size,R=d.val,z=d.size,I=t-i.r-i.l,P=n-i.t-i.b;for(var L in p){if(Xf(E)&&p[L].r){var F=p[L].r.val,B=p[L].r.size;if(F>D){var O=(E*F+(B-I)*D)/(F-D),V=(B*(1-D)+(E-I)*(1-F))/(F-D);O+V>u+s&&(u=O,s=V)}}if(Xf(z)&&p[L].t){var K=p[L].t.val,j=p[L].t.size;if(K>R){var G=(z*K+(j-P)*R)/(K-R),q=(j*(1-R)+(z-P)*(1-K))/(K-R);G+q>c+f&&(c=G,f=q)}}}}}var J=mr.constrain(t-o.l-o.r,yA,g),te=mr.constrain(n-o.t-o.b,mA,w),Z=Math.max(0,t-J),ie=Math.max(0,n-te);if(Z){var Q=(u+s)/Z;Q>1&&(u/=Q,s/=Q)}if(ie){var re=(c+f)/ie;re>1&&(c/=re,f/=re)}if(a.l=Math.round(u)+i.l,a.r=Math.round(s)+i.r,a.t=Math.round(f)+i.t,a.b=Math.round(c)+i.b,a.p=Math.round(o.pad),a.w=Math.round(t)-a.l-a.r,a.h=Math.round(n)-a.t-a.b,!r._replotting&&(fr.didMarginChange(l,a)||nte(e))){"_redrawFromAutoMarginCount"in r?r._redrawFromAutoMarginCount++:r._redrawFromAutoMarginCount=1;var ue=3*(1+Object.keys(x).length);if(r._redrawFromAutoMarginCount1)return!0}return!1};fr.graphJson=function(e,r=!1,t="json",n=!1,a=!1){(n&&r&&!e._fullData||n&&!r&&!e._fullLayout)&&fr.supplyDefaults(e);var o=n?e._fullData:e.data,i=n?e._fullLayout:e.layout,l=(e._transitionData||{})._frames;function u(c,p){if(typeof c=="function")return p?"_function_":null;if(mr.isPlainObject(c)){var x={};return Object.keys(c).sort().forEach(function(m){if(["_","["].indexOf(m.charAt(0))===-1){if(typeof c[m]=="function"){p&&(x[m]="_function");return}x[m]=u(c[m],p)}}),x}var g=Array.isArray(c),w=mr.isTypedArray(c);if((g||w)&&c.dtype&&c.shape){var M=c.bdata;return u({dtype:c.dtype,shape:c.shape,bdata:mr.isArrayBuffer(M)?Ure.encode(M):M},p)}return g?c.map(function(m){return u(m,p)}):w?mr.simpleMap(c,mr.identity):mr.isJSDate(c)?mr.ms2DateTimeLocal(+c):c}var s={data:(o||[]).map(function(c){var p=u(c);return r&&delete p.fit,p})};if(!r&&(s.layout=u(i),n)){var f=i._size;s.layout.computed={margin:{b:f.b,l:f.l,r:f.r,t:f.t}}}return l&&(s.frames=u(l)),a&&(s.config=u(e._context,!0)),t==="object"?s:JSON.stringify(s)};fr.modifyFrames=function(e,r){var t,n,a,o=e._transitionData._frames,i=e._transitionData._frameHash;for(t=0;t0&&(e._transitioningWithDuration=!0),e._transitionData._interruptCallbacks.push(function(){n=!0}),t.redraw&&e._transitionData._interruptCallbacks.push(function(){return lt.call("redraw",e)}),e._transitionData._interruptCallbacks.push(function(){e.emit("plotly_transitioninterrupted",[])});var p=0,x=0;function g(){return p++,function(){x++,!n&&x===p&&l(c)}}t.runFn(g),setTimeout(g())})}function l(c){if(e._transitionData)return o(e._transitionData._interruptCallbacks),Promise.resolve().then(function(){if(t.redraw)return lt.call("redraw",e)}).then(function(){e._transitioning=!1,e._transitioningWithDuration=!1,e.emit("plotly_transitioned",[])}).then(c)}function u(){if(e._transitionData)return e._transitioning=!1,a(e._transitionData._interruptCallbacks)}var s=[fr.previousPromises,u,t.prepareFn,fr.rehover,fr.reselect,i],f=mr.syncOrAsync(s,e);return(!f||!f.then)&&(f=Promise.resolve()),f.then(function(){return e})}fr.doCalcdata=function(e,r){var t=ka.list(e),n=e._fullData,a=e._fullLayout,o,i,l,u=new Array(n.length),s=(e.calcdata||[]).slice();for(e.calcdata=u,a._numBoxes=0,a._numViolins=0,a._violinScaleGroupStats={},e._hmpixcount=0,e._hmlumcount=0,a._piecolormap={},a._sunburstcolormap={},a._treemapcolormap={},a._iciclecolormap={},a._funnelareacolormap={},l=0;l_A,svgAttrs:()=>ute,xlink:()=>wA,xmlns:()=>ste});var ste,_A,wA,ute,xl=Ot(()=>{"use strict";ste="http://www.w3.org/2000/xmlns/",_A="http://www.w3.org/2000/svg",wA="http://www.w3.org/1999/xlink",ute={xmlns:_A,"xmlns:xlink":wA}});var Yn={};Ut(Yn,{CAP_SHIFT:()=>dte,FROM_BL:()=>fte,FROM_BR:()=>vte,FROM_TL:()=>cte,LINE_SPACING:()=>hte,MID_SHIFT:()=>pte,OPPOSITE_SIDE:()=>gte});var fte,cte,vte,hte,dte,pte,gte,Xn=Ot(()=>{"use strict";fte={left:0,center:.5,right:1,bottom:0,middle:.5,top:1},cte={left:0,center:.5,right:1,bottom:1,middle:.5,top:0},vte={left:1,center:.5,right:0,bottom:0,middle:.5,top:1},hte=1.3,dte=.7,pte=.35,gte={left:"right",right:"left",top:"bottom",bottom:"top"}});var Wn=_e(Ia=>{"use strict";var dn=at(),ei=rr(),yte=ei.strTranslate,Ly=(xl(),or(bl)),mte=(Xn(),or(Yn)).LINE_SPACING,bte=/([^$]*)([$]+[^$]*[$]+)([^$]*)/,CA=e=>e?e.match(bte):null;Ia.matchTex=CA;Ia.convertToTspans=function(e,r,t){var n=e.text(),a=!e.attr("data-notex")&&r&&r._context.typesetMath&&CA(n);a&&!Mte()&&(a=null);var o=dn.select(e.node().parentNode);if(o.empty())return;var i=e.attr("class")?e.attr("class").split(" ")[0]:"text";i+="-math",o.selectAll("svg."+i).remove(),o.selectAll("g."+i+"-group").remove(),e.style("display",null).attr({"data-unformatted":n,"data-math":"N"});function l(){o.empty()||(i=e.attr("class")+"-math",o.select("svg."+i).remove()),e.text("").style("white-space","pre");var u=Fte(e.node(),n);u&&e.style("pointer-events","all"),Ia.positionText(e),t&&t.call(e)}return a?(r&&r._promises||[]).push(new Promise(function(u){e.style("display","none");var s=parseInt(e.node().style.fontSize,10),f={fontSize:s},c=e.attr("text-anchor");Tte(a[2],f,function(p,x,g){o.selectAll("svg."+i).remove(),o.selectAll("g."+i+"-group").remove();var w=p&&p.select("svg");if(!w||!w.node()){l(),u();return}e.style("display","none");var M=o.append("g").classed(i+"-group",!0).attr({"pointer-events":"none","data-unformatted":n,"data-math":"Y"});M.node().appendChild(w.node()),x&&x.node()&&w.node().insertBefore(x.node().cloneNode(!0),w.node().firstChild);var m=g.width,k=g.height;w.attr({class:i,height:k,preserveAspectRatio:"xMinYMin meet"}).style({overflow:"visible","pointer-events":"none","font-size":f.fontSize+"px"});var S=e.node().style.fill||"black",b=w.select("g");b.attr({fill:S,stroke:S});var T=b.node().getBoundingClientRect(),h=T.width,_=T.height;(h>m||_>k)&&(w.style("overflow","hidden"),T=w.node().getBoundingClientRect(),h=T.width,_=T.height);var y=+e.attr("x"),v=+e.attr("y"),A=s||e.node().getBoundingClientRect().height,d=-A/4;i[0]==="y"?M.attr({transform:"rotate("+[-90,y,v]+")"+yte(-h/2,d-_/2)}):i[0]==="l"?v=d-_/2:i[0]==="a"&&i.indexOf("atitle")!==0?(y=0,v=d):(y=y-h*(c==="middle"?.5:c==="end"?1:0),v=v+d-_/2),w.attr({x:y,y:v}),t&&t.call(e,M),u(M)})})):l(),e};var xte=/(<|<|<)/g,_te=/(>|>|>)/g;function wte(e){return e.replace(xte,"\\lt ").replace(_te,"\\gt ")}var Dy=null,EA=()=>typeof MathJax!="undefined"&&MathJax.version?parseInt(MathJax.version.split(".")[0]):null,MA=!1,TA=!1;function Mte(){let e=EA();return e===3||e===4?!0:(e===null?MA||(MA=!0,ei.warn("MathJax is not loaded. Math equations will not be rendered.")):TA||(TA=!0,ei.warn("Unsupported MathJax version:",MathJax.version)),!1)}function Tte(e,r,t){let n=EA();var a;let o=function(){if(!Dy){let s=MathJax._.output.svg_ts.SVG,f=ei.extendFlat({},MathJax.config.svg,{fontCache:"local"});n===4&&(f.linebreaks=ei.extendFlat({},f.linebreaks,{inline:!1})),Dy=MathJax._.mathjax.mathjax.document(document,ei.extendFlat({},MathJax.config.options,{InputJax:MathJax.startup.input,OutputJax:new s(f)}))}let l="math-output-"+ei.randstr({},64);a=dn.select("body").append("div").attr({id:l}).style({visibility:"hidden",position:"absolute","font-size":r.fontSize+"px"});let u=wte(e).replace(/^\$+|\$+$/g,"");return MathJax._.mathjax.mathjax.handleRetriesFor(function(){return Dy.convert(u,{display:!1})}).then(function(s){a.node().appendChild(s)})},i=function(){let l=a.select(".MathJax"),u=!l.empty()&&a.select("svg").node();if(!u)ei.log("There was an error in the tex syntax.",e),t();else{let s=u.getBoundingClientRect(),f=l.select("defs");t(l,f,s)}a.remove()};Promise.resolve().then(o).then(i).catch(l=>{ei.log("MathJax typesetting failed.",e,l),a&&a.remove(),t()})}var LA={sup:"font-size:70%",sub:"font-size:70%",s:"text-decoration:line-through",u:"text-decoration:underline",b:"font-weight:bold",i:"font-style:italic",a:"cursor:pointer",span:"",em:"font-style:italic;font-weight:bold"},Ate={sub:"0.3em",sup:"-0.6em"},kte={sub:"-0.21em",sup:"0.42em"},AA="\u200B",kA=["http:","https:","mailto:","",void 0,":"],DA=Ia.NEWLINES=/(\r\n?|\n)/g,Fy=/(<[^<>]*>)/,Py=/<(\/?)([^ >]*)(\s+(.*))?>/i,Ste=//i;Ia.BR_TAG_ALL=//gi;var RA=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,FA=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,PA=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,Cte=/(^|[\s"'])popup\s*=\s*("([\w=,]*)"|'([\w=,]*)')/i;function ks(e,r){if(!e)return null;var t=e.match(r),n=t&&(t[3]||t[4]);return n&&c1(n)}var Ete=/(^|;)\s*color:/;Ia.plainText=function(e,r){r=r||{};for(var t=r.len!==void 0&&r.len!==-1?r.len:1/0,n=r.allowedTags!==void 0?r.allowedTags:["br"],a="...",o=a.length,i=e.split(Fy),l=[],u="",s=0,f=0;fo?l.push(c.slice(0,Math.max(0,w-o))+a):l.push(c.slice(0,w));break}u=""}}return l.join("")};var Lte={mu:"\u03BC",amp:"&",lt:"<",gt:">",nbsp:"\xA0",times:"\xD7",plusmn:"\xB1",deg:"\xB0"},Dte=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function c1(e){return e.replace(Dte,function(r,t){var n;return t.charAt(0)==="#"?n=Rte(t.charAt(1)==="x"?parseInt(t.slice(2),16):parseInt(t.slice(1),10)):n=Lte[t],n||r})}Ia.convertEntities=c1;function Rte(e){if(!(e>1114111)){var r=String.fromCodePoint;if(r)return r(e);var t=String.fromCharCode;return e<=65535?t(e):t((e>>10)+55232,e%1024+56320)}}function Fte(e,r){r=r.replace(DA," ");var t=!1,n=[],a,o=-1;function i(){o++;var h=document.createElementNS(Ly.svg,"tspan");dn.select(h).attr({class:"line",dy:o*mte+"em"}),e.appendChild(h),a=h;var _=n;if(n=[{node:h}],_.length>1)for(var y=1;y<_.length;y++)l(_[y])}function l(h){var _=h.type,y={},v;if(_==="a"){v="a";var A=h.target,d=h.href,D=h.popup;d&&(y={"xlink:xlink:show":A==="_blank"||A.charAt(0)!=="_"?"new":"replace",target:A,"xlink:xlink:href":d},D&&(y.onclick='window.open(this.href.baseVal,this.target.baseVal,"'+D+'");return false;'))}else v="tspan";h.style&&(y.style=h.style);var E=document.createElementNS(Ly.svg,v);if(_==="sup"||_==="sub"){u(a,AA),a.appendChild(E);var R=document.createElementNS(Ly.svg,"tspan");u(R,AA),dn.select(R).attr("dy",kte[_]),y.dy=Ate[_],a.appendChild(E),a.appendChild(R)}else a.appendChild(E);dn.select(E).attr(y),a=h.node=E,n.push(h)}function u(h,_){h.appendChild(document.createTextNode(_))}function s(h){if(n.length===1){ei.log("Ignoring unexpected end tag .",r);return}var _=n.pop();h!==_.type&&ei.log("Start tag <"+_.type+"> doesnt match end tag <"+h+">. Pretending it did match.",r),a=n[n.length-1].node}var f=Ste.test(r);f?i():(a=e,n=[{node:e}]);for(var c=r.split(Fy),p=0;p{"use strict";var Pte=at(),Zf=ot(),v1=rr(),Ss=Wr(),Ite=ys().isValid;function zte(e,r,t){var n=r?v1.nestedProperty(e,r).get()||{}:e,a=n[t||"color"];a&&a._inputArray&&(a=a._inputArray);var o=!1;if(v1.isArrayOrTypedArray(a)){for(var i=0;i=0;n--,a++){var o=e[n];t[a]=[1-o[0],o[1]]}return t}function OA(e,r){r=r||{};for(var t=e.domain,n=e.range,a=n.length,o=new Array(a),i=0;i{"use strict";var HA=(j3(),or(Q3)),qte=HA.FORMAT_LINK,Bte=HA.DATE_FORMAT_LINK;function Ote(e,r){return{valType:"string",dflt:"",editType:"none",description:(r?Iy:VA)("hover text",e)+["By default the values are formatted using "+(r?"generic number format":"`"+e+"axis.hoverformat`")+"."].join(" ")}}function Iy(e,r){return["Sets the "+e+" formatting rule"+(r?" for `"+r+"`":""),"using d3 formatting mini-languages","which are very similar to those in Python. For numbers, see: "+qte+"."].join(" ")}function VA(e,r){return Iy(e,r)+[" And for dates see: "+Bte+".","We add two items to d3's date formatter:","*%h* for half of the year as a decimal number as well as","*%{n}f* for fractional seconds","with n digits. For example, *2016-10-13 09:15:23.456* with tickformat","*%H~%M~%S.%2f* would display *09~15~23.46*"].join(" ")}GA.exports={axisHoverFormat:Ote,descriptionOnlyNumbers:Iy,descriptionWithDates:VA}});var ri=_e((O4e,lk)=>{"use strict";var YA=Hn(),$0=ji(),ok=sl().dash,Ny=Ft().extendFlat,XA=Mt().templatedArray,B4e=Mi().templateFormatStringDescription,WA=No().descriptionWithDates,Ute=(mn(),or(Cn)).ONEDAY,to=(wn(),or(_n)),Hte=to.HOUR_PATTERN,Vte=to.WEEKDAY_PATTERN,zy={valType:"enumerated",values:["auto","linear","array"],editType:"ticks",impliedEdits:{tick0:void 0,dtick:void 0}},Gte=Ny({},zy,{values:zy.values.slice().concat(["sync"])});function ZA(e){return{valType:"integer",min:0,dflt:e?5:0,editType:"ticks"}}var JA={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},$A={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},KA={valType:"data_array",editType:"ticks"},QA={valType:"enumerated",values:["outside","inside",""],editType:"ticks"};function jA(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=5),r}function ek(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=1),r}var rk={valType:"color",dflt:$0.defaultLine,editType:"ticks"},tk={valType:"color",dflt:$0.lightLine,editType:"ticks"};function nk(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=1),r}var ak=Ny({},ok,{editType:"ticks"}),ik={valType:"boolean",editType:"ticks"};lk.exports={visible:{valType:"boolean",editType:"plot"},color:{valType:"color",dflt:$0.defaultLine,editType:"ticks"},title:{text:{valType:"string",editType:"ticks"},font:YA({editType:"ticks",description:"Sets this axis' title font."}),standoff:{valType:"number",min:0,editType:"ticks"},editType:"ticks"},type:{valType:"enumerated",values:["-","linear","log","date","category","multicategory"],dflt:"-",editType:"calc",_noTemplating:!0},autotypenumbers:{valType:"enumerated",values:["convert types","strict"],dflt:"convert types",editType:"calc"},autorange:{valType:"enumerated",values:[!0,!1,"reversed","min reversed","max reversed","min","max"],dflt:!0,editType:"axrange",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},autorangeoptions:{minallowed:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},maxallowed:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},clipmin:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},clipmax:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},include:{valType:"any",arrayOk:!0,editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},editType:"plot"},rangemode:{valType:"enumerated",values:["normal","tozero","nonnegative"],dflt:"normal",editType:"plot"},range:{valType:"info_array",items:[{valType:"any",editType:"axrange",impliedEdits:{"^autorange":!1},anim:!0},{valType:"any",editType:"axrange",impliedEdits:{"^autorange":!1},anim:!0}],editType:"axrange",impliedEdits:{autorange:!1},anim:!0},minallowed:{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},maxallowed:{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},fixedrange:{valType:"boolean",dflt:!1,editType:"calc"},modebardisable:{valType:"flaglist",flags:["autoscale","zoominout"],extras:["none"],dflt:"none",editType:"modebar"},insiderange:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},scaleanchor:{valType:"enumerated",values:[to.idRegex.x.toString(),to.idRegex.y.toString(),!1],editType:"plot"},scaleratio:{valType:"number",min:0,dflt:1,editType:"plot"},constrain:{valType:"enumerated",values:["range","domain"],editType:"plot"},constraintoward:{valType:"enumerated",values:["left","center","right","top","middle","bottom"],editType:"plot"},matches:{valType:"enumerated",values:[to.idRegex.x.toString(),to.idRegex.y.toString()],editType:"calc"},rangebreaks:XA("rangebreak",{enabled:{valType:"boolean",dflt:!0,editType:"calc"},bounds:{valType:"info_array",items:[{valType:"any",editType:"calc"},{valType:"any",editType:"calc"}],editType:"calc"},pattern:{valType:"enumerated",values:[Vte,Hte,""],editType:"calc"},values:{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"any",editType:"calc"}},dvalue:{valType:"number",editType:"calc",min:0,dflt:Ute},editType:"calc"}),tickmode:Gte,nticks:ZA(),tick0:JA,dtick:$A,ticklabelstep:{valType:"integer",min:1,dflt:1,editType:"ticks"},tickvals:KA,ticktext:{valType:"data_array",editType:"ticks"},ticks:QA,tickson:{valType:"enumerated",values:["labels","boundaries"],dflt:"labels",editType:"ticks"},ticklabelmode:{valType:"enumerated",values:["instant","period"],dflt:"instant",editType:"ticks"},ticklabelposition:{valType:"enumerated",values:["outside","inside","outside top","inside top","outside left","inside left","outside right","inside right","outside bottom","inside bottom"],dflt:"outside",editType:"calc"},ticklabeloverflow:{valType:"enumerated",values:["allow","hide past div","hide past domain"],editType:"calc"},ticklabelshift:{valType:"integer",dflt:0,editType:"ticks"},ticklabelstandoff:{valType:"integer",dflt:0,editType:"ticks"},ticklabelindex:{valType:"integer",arrayOk:!0,editType:"calc"},mirror:{valType:"enumerated",values:[!0,"ticks",!1,"all","allticks"],dflt:!1,editType:"ticks+layoutstyle"},ticklen:jA(),tickwidth:ek(),tickcolor:rk,showticklabels:{valType:"boolean",dflt:!0,editType:"ticks"},labelalias:{valType:"any",dflt:!1,editType:"ticks"},automargin:{valType:"flaglist",flags:["height","width","left","right","top","bottom"],extras:[!0,!1],dflt:!1,editType:"ticks"},showspikes:{valType:"boolean",dflt:!1,editType:"modebar"},spikecolor:{valType:"color",dflt:null,editType:"none"},spikethickness:{valType:"number",dflt:3,editType:"none"},spikedash:Ny({},ok,{dflt:"dash",editType:"none"}),spikemode:{valType:"flaglist",flags:["toaxis","across","marker"],dflt:"toaxis",editType:"none"},spikesnap:{valType:"enumerated",values:["data","cursor","hovered data"],dflt:"hovered data",editType:"none"},tickfont:YA({editType:"ticks"}),tickangle:{valType:"angle",dflt:"auto",editType:"ticks"},autotickangles:{valType:"info_array",freeLength:!0,items:{valType:"angle"},dflt:[0,30,90],editType:"ticks"},tickprefix:{valType:"string",dflt:"",editType:"ticks"},showtickprefix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},ticksuffix:{valType:"string",dflt:"",editType:"ticks"},showticksuffix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},showexponent:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},exponentformat:{valType:"enumerated",values:["none","e","E","power","SI","B","SI extended"],dflt:"B",editType:"ticks"},minexponent:{valType:"number",dflt:3,min:0,editType:"ticks"},separatethousands:{valType:"boolean",dflt:!1,editType:"ticks"},tickformat:{valType:"string",dflt:"",editType:"ticks",description:WA("tick label")},tickformatstops:XA("tickformatstop",{enabled:{valType:"boolean",dflt:!0,editType:"ticks"},dtickrange:{valType:"info_array",items:[{valType:"any",editType:"ticks"},{valType:"any",editType:"ticks"}],editType:"ticks"},value:{valType:"string",dflt:"",editType:"ticks"},editType:"ticks"}),hoverformat:{valType:"string",dflt:"",editType:"none",description:WA("hover text")},unifiedhovertitle:{text:{valType:"string",dflt:"",editType:"none"},editType:"none"},showline:{valType:"boolean",dflt:!1,editType:"ticks+layoutstyle"},linecolor:{valType:"color",dflt:$0.defaultLine,editType:"layoutstyle"},linewidth:{valType:"number",min:0,dflt:1,editType:"ticks+layoutstyle"},showgrid:ik,gridcolor:tk,gridwidth:nk(),griddash:ak,zeroline:{valType:"boolean",editType:"ticks"},zerolinecolor:{valType:"color",dflt:$0.defaultLine,editType:"ticks"},zerolinelayer:{valType:"enumerated",values:["above traces","below traces"],dflt:"below traces",editType:"plot"},zerolinewidth:{valType:"number",dflt:1,editType:"ticks"},showdividers:{valType:"boolean",dflt:!0,editType:"ticks"},dividercolor:{valType:"color",dflt:$0.defaultLine,editType:"ticks"},dividerwidth:{valType:"number",dflt:1,editType:"ticks"},anchor:{valType:"enumerated",values:["free",to.idRegex.x.toString(),to.idRegex.y.toString()],editType:"plot"},side:{valType:"enumerated",values:["top","bottom","left","right"],editType:"plot"},overlaying:{valType:"enumerated",values:["free",to.idRegex.x.toString(),to.idRegex.y.toString()],editType:"plot"},minor:{tickmode:zy,nticks:ZA("minor"),tick0:JA,dtick:$A,tickvals:KA,ticks:QA,ticklen:jA("minor"),tickwidth:ek("minor"),tickcolor:rk,gridcolor:tk,gridwidth:nk("minor"),griddash:ak,showgrid:ik,editType:"ticks"},minorloglabels:{valType:"enumerated",values:["small digits","complete","none"],dflt:"small digits",editType:"calc"},layer:{valType:"enumerated",values:["above traces","below traces"],dflt:"above traces",editType:"plot"},domain:{valType:"info_array",items:[{valType:"number",min:0,max:1,editType:"plot"},{valType:"number",min:0,max:1,editType:"plot"}],dflt:[0,1],editType:"plot"},position:{valType:"number",min:0,max:1,dflt:0,editType:"plot"},autoshift:{valType:"boolean",dflt:!1,editType:"plot"},shift:{valType:"number",editType:"plot"},categoryorder:{valType:"enumerated",values:["trace","category ascending","category descending","array","total ascending","total descending","min ascending","min descending","max ascending","max descending","sum ascending","sum descending","mean ascending","mean descending","geometric mean ascending","geometric mean descending","median ascending","median descending"],dflt:"trace",editType:"calc"},categoryarray:{valType:"data_array",editType:"calc"},uirevision:{valType:"any",editType:"none"},editType:"calc"}});var h1=_e((U4e,uk)=>{"use strict";var zt=ri(),sk=Hn(),qy=Ft().extendFlat,Yte=ia().overrideAll;uk.exports=Yte({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:zt.linecolor,outlinewidth:zt.linewidth,bordercolor:zt.linecolor,borderwidth:{valType:"number",min:0,dflt:0},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},tickmode:zt.minor.tickmode,nticks:zt.nticks,tick0:zt.tick0,dtick:qy({},zt.dtick,{}),tickvals:zt.tickvals,ticktext:zt.ticktext,ticks:qy({},zt.ticks,{dflt:""}),ticklabeloverflow:qy({},zt.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:zt.ticklen,tickwidth:zt.tickwidth,tickcolor:zt.tickcolor,ticklabelstep:zt.ticklabelstep,showticklabels:zt.showticklabels,labelalias:zt.labelalias,tickfont:sk({description:"Sets the color bar's tick label font"}),tickangle:zt.tickangle,tickformat:zt.tickformat,tickformatstops:zt.tickformatstops,tickprefix:zt.tickprefix,showtickprefix:zt.showtickprefix,ticksuffix:zt.ticksuffix,showticksuffix:zt.showticksuffix,separatethousands:zt.separatethousands,exponentformat:zt.exponentformat,minexponent:zt.minexponent,showexponent:zt.showexponent,title:{text:{valType:"string"},font:sk({description:"Sets this color bar's title font."}),side:{valType:"enumerated",values:["right","top","bottom"]}}},"colorbars","from-root")});var Si=_e((V4e,ck)=>{"use strict";var Xte=h1(),Wte=(P0(),or(Pf)).counter,Zte=(Gh(),or(Vh)).default,fk=ys().scales,H4e=Zte(fk);function d1(e){return"`"+e+"`"}ck.exports=function(r,t){r=r||"",t=t||{};var n=t.cLetter||"c",a="onlyIfNumerical"in t?t.onlyIfNumerical:!!r,o="noScale"in t?t.noScale:r==="marker.line",i="showScaleDflt"in t?t.showScaleDflt:n==="z",l=typeof t.colorscaleDflt=="string"?fk[t.colorscaleDflt]:null,u=t.editTypeOverride||"",s=r?r+".":"",f,c;"colorAttr"in t?(f=t.colorAttr,c=t.colorAttr):(f={z:"z",c:"color"}[n],c="in "+d1(s+f));var p=a?" Has an effect only if "+c+" is set to a numerical array.":"",x=n+"auto",g=n+"min",w=n+"max",M=n+"mid",m=d1(s+x),k=d1(s+g),S=d1(s+w),b=k+" and "+S,T={};T[g]=T[w]=void 0;var h={};h[x]=!1;var _={};return f==="color"&&(_.color={valType:"color",arrayOk:!0,editType:u||"style"},t.anim&&(_.color.anim=!0)),_[x]={valType:"boolean",dflt:!0,editType:"calc",impliedEdits:T},_[g]={valType:"number",dflt:null,editType:u||"plot",impliedEdits:h},_[w]={valType:"number",dflt:null,editType:u||"plot",impliedEdits:h},_[M]={valType:"number",dflt:null,editType:"calc",impliedEdits:T},_.colorscale={valType:"colorscale",editType:"calc",dflt:l,impliedEdits:{autocolorscale:!1}},_.autocolorscale={valType:"boolean",dflt:t.autoColorDflt!==!1,editType:"calc",impliedEdits:{colorscale:void 0}},_.reversescale={valType:"boolean",dflt:!1,editType:"plot"},o||(_.showscale={valType:"boolean",dflt:i,editType:"calc"},_.colorbar=Xte),t.noColorAxis||(_.coloraxis={valType:"subplotid",regex:Wte("coloraxis"),dflt:null,editType:"calc"}),_}});var Oy=_e((G4e,vk)=>{"use strict";var Jte=Ft().extendFlat,$te=Si(),By=ys().scales;vk.exports={editType:"calc",colorscale:{editType:"calc",sequential:{valType:"colorscale",dflt:By.Reds,editType:"calc"},sequentialminus:{valType:"colorscale",dflt:By.Blues,editType:"calc"},diverging:{valType:"colorscale",dflt:By.RdBu,editType:"calc"}},coloraxis:Jte({_isSubplotObj:!0,editType:"calc"},$te("",{colorAttr:"corresponding trace color array(s)",noColorAxis:!0,showScaleDflt:!0}))}});var Uy=_e((Y4e,hk)=>{"use strict";var Kte=rr();hk.exports=function(r){return Kte.isPlainObject(r.colorbar)}});var Gy=_e(Vy=>{"use strict";var Hy=ot(),dk=rr(),pk=(mn(),or(Cn)),Qte=pk.ONEDAY,jte=pk.ONEWEEK;Vy.dtick=function(e,r){var t=r==="log",n=r==="date",a=r==="category",o=n?Qte:1;if(!e)return o;if(Hy(e))return e=Number(e),e<=0?o:a?Math.max(1,Math.round(e)):n?Math.max(.1,e):e;if(typeof e!="string"||!(n||t))return o;var i=e.charAt(0),l=e.slice(1);return l=Hy(l)?Number(l):0,l<=0||!(n&&i==="M"&&l===Math.round(l)||t&&i==="L"||t&&i==="D"&&(l===1||l===2))?o:e};Vy.tick0=function(e,r,t,n){if(r==="date")return dk.cleanDate(e,dk.dateTick0(t,n%jte===0?1:0));if(!(n==="D1"||n==="D2"))return Hy(e)?Number(e):0}});var Yy=_e((W4e,yk)=>{"use strict";var gk=Gy(),ene=rr().isArrayOrTypedArray,rne=ha().isTypedArraySpec,tne=ha().decodeTypedArraySpec;yk.exports=function(r,t,n,a,o={}){var i=o.isMinor,l=i?r.minor||{}:r,u=i?t.minor:t,s=i?"minor.":"";function f(b){var T=l[b];return rne(T)&&(T=tne(T)),T!==void 0?T:(u._template||{})[b]}var c=f("tick0"),p=f("dtick"),x=f("tickvals"),g=f("overlaying"),w=a==="category"||a==="multicategory",M;ene(x)?M="array":p?M="linear":g&&!w?M="sync":M="auto";var m=n(s+"tickmode",M);if(m==="auto"||m==="sync")n(s+"nticks");else if(m==="linear"){var k=u.dtick=gk.dtick(p,a);u.tick0=gk.tick0(c,a,t.calendar,k)}else if(a!=="multicategory"){var S=n(s+"tickvals");S===void 0?u.tickmode="auto":i||n("ticktext")}}});var Wy=_e((Z4e,bk)=>{"use strict";var Xy=rr(),mk=ri();bk.exports=function(r,t,n,a){var o=a.isMinor,i=o?r.minor||{}:r,l=o?t.minor:t,u=o?mk.minor:mk,s=o?"minor.":"",f=Xy.coerce2(i,l,u,"ticklen",o?(t.ticklen||5)*.6:void 0),c=Xy.coerce2(i,l,u,"tickwidth",o?t.tickwidth||1:void 0),p=Xy.coerce2(i,l,u,"tickcolor",(o?t.tickcolor:void 0)||l.color),x=n(s+"ticks",!o&&a.outerTicks||f||c||p?"outside":"");x||(delete l.ticklen,delete l.tickwidth,delete l.tickcolor)}});var Zy=_e((J4e,xk)=>{"use strict";xk.exports=function(r){var t=["showexponent","showtickprefix","showticksuffix"],n=t.filter(function(o){return r[o]!==void 0}),a=function(o){return r[o]===r[n[0]]};if(n.every(a)||n.length===1)return r[n[0]]}});var Ci=_e(($4e,_k)=>{"use strict";var p1=rr(),nne=Mt();_k.exports=function(r,t,n){var a=n.name,o=n.inclusionAttr||"visible",i=t[a],l=p1.isArrayOrTypedArray(r[a])?r[a]:[],u=t[a]=[],s=nne.arrayTemplater(t,a,o),f,c;for(f=0;f{"use strict";var Jy=rr(),ane=Wr().contrast,wk=ri(),ine=Zy(),one=Ci();Mk.exports=function(r,t,n,a,o){o||(o={});var i=n("labelalias");Jy.isPlainObject(i)||delete t.labelalias;var l=ine(r),u=n("showticklabels");if(u){o.noTicklabelshift||n("ticklabelshift"),o.noTicklabelstandoff||n("ticklabelstandoff");var s=o.font||{},f=t.color,c=t.ticklabelposition||"",p=c.indexOf("inside")!==-1?ane(o.bgColor):f&&f!==wk.color.dflt?f:s.color;if(Jy.coerceFont(n,"tickfont",s,{overrideDflt:{color:p}}),!o.noTicklabelstep&&a!=="multicategory"&&a!=="log"&&n("ticklabelstep"),!o.noAng){var x=n("tickangle");!o.noAutotickangles&&x==="auto"&&n("autotickangles")}if(a!=="category"){var g=n("tickformat");one(r,t,{name:"tickformatstops",inclusionAttr:"enabled",handleItemDefaults:lne}),t.tickformatstops.length||delete t.tickformatstops,!o.noExp&&!g&&a!=="date"&&(n("showexponent",l),n("exponentformat"),n("minexponent"),n("separatethousands"))}!o.noMinorloglabels&&a==="log"&&n("minorloglabels")}};function lne(e,r){function t(a,o){return Jy.coerce(e,r,wk.tickformatstops,a,o)}var n=t("enabled");n&&(t("dtickrange"),t("value"))}});var Ky=_e((Q4e,Tk)=>{"use strict";var sne=Zy();Tk.exports=function(r,t,n,a,o){o||(o={});var i=o.tickSuffixDflt,l=sne(r),u=n("tickprefix");u&&n("showtickprefix",l);var s=n("ticksuffix",i);s&&n("showticksuffix",l)}});var Qy=_e((j4e,Ak)=>{"use strict";var _l=rr(),une=Mt(),fne=Yy(),cne=Wy(),vne=$y(),hne=Ky(),dne=h1();Ak.exports=function(r,t,n){var a=une.newContainer(t,"colorbar"),o=r.colorbar||{};function i(d,D){return _l.coerce(o,a,dne,d,D)}var l=n.margin||{t:0,b:0,l:0,r:0},u=n.width-l.l-l.r,s=n.height-l.t-l.b,f=i("orientation"),c=f==="v",p=i("thicknessmode");i("thickness",p==="fraction"?30/(c?u:s):30);var x=i("lenmode");i("len",x==="fraction"?1:c?s:u);var g=i("yref"),w=i("xref"),M=g==="paper",m=w==="paper",k,S,b,T="left";c?(b="middle",T=m?"left":"right",k=m?1.02:1,S=.5):(b=M?"bottom":"top",T="center",k=.5,S=M?1.02:1),_l.coerce(o,a,{x:{valType:"number",min:m?-2:0,max:m?3:1,dflt:k}},"x"),_l.coerce(o,a,{y:{valType:"number",min:M?-2:0,max:M?3:1,dflt:S}},"y"),i("xanchor",T),i("xpad"),i("yanchor",b),i("ypad"),_l.noneOrAll(o,a,["x","y"]),i("outlinecolor"),i("outlinewidth"),i("bordercolor"),i("borderwidth"),i("bgcolor");var h=_l.coerce(o,a,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:c?["outside","inside","outside top","inside top","outside bottom","inside bottom"]:["outside","inside","outside left","inside left","outside right","inside right"]}},"ticklabelposition");i("ticklabeloverflow",h.indexOf("inside")!==-1?"hide past domain":"hide past div"),fne(o,a,i,"linear");var _=n.font,y={noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0,outerTicks:!1,font:_};h.indexOf("inside")!==-1&&(y.bgColor="black"),hne(o,a,i,"linear",y),vne(o,a,i,"linear",y),cne(o,a,i,"linear",y),i("title.text",n._dfltTitle.colorbar);var v=a.showticklabels?a.tickfont:_,A=_l.extendFlat({},_,{family:v.family,size:_l.bigFont(v.size)});_l.coerceFont(i,"title.font",A),i("title.side",c?"top":"right")}});var no=_e((e6e,Ck)=>{"use strict";var kk=ot(),em=rr(),pne=Uy(),gne=Qy(),Sk=ys().isValid,yne=Er().traceIs;function jy(e,r){var t=r.slice(0,r.length-1);return r?em.nestedProperty(e,t).get()||{}:e}Ck.exports=function e(r,t,n,a,o){var i=o.prefix,l=o.cLetter,u="_module"in t,s=jy(r,i),f=jy(t,i),c=jy(t._template||{},i)||{},p=function(){return delete r.coloraxis,delete t.coloraxis,e(r,t,n,a,o)};if(u){var x=n._colorAxes||{},g=a(i+"coloraxis");if(g){var w=yne(t,"contour")&&em.nestedProperty(t,"contours.coloring").get()||"heatmap",M=x[g];M?(M[2].push(p),M[0]!==w&&(M[0]=!1,em.warn(["Ignoring coloraxis:",g,"setting","as it is linked to incompatible colorscales."].join(" ")))):x[g]=[w,t,[p]];return}}var m=s[l+"min"],k=s[l+"max"],S=kk(m)&&kk(k)&&m{"use strict";var Ek=rr(),mne=Mt(),Lk=Oy(),bne=no();Dk.exports=function(r,t){function n(c,p){return Ek.coerce(r,t,Lk,c,p)}n("colorscale.sequential"),n("colorscale.sequentialminus"),n("colorscale.diverging");var a=t._colorAxes,o,i;function l(c,p){return Ek.coerce(o,i,Lk.coloraxis,c,p)}for(var u in a){var s=a[u];if(s[0])o=r[u]||{},i=mne.newContainer(t,u,"coloraxis"),i._name=u,bne(o,i,t,l,{prefix:"",cLetter:"c"});else{for(var f=0;f{"use strict";var xne=rr(),_ne=ro().hasColorscale,wne=ro().extractOpts;Fk.exports=function(r,t){function n(f,c){var p=f["_"+c];p!==void 0&&(f[c]=p)}function a(f,c){var p=c.container?xne.nestedProperty(f,c.container).get():f;if(p)if(p.coloraxis)p._colorAx=t[p.coloraxis];else{var x=wne(p),g=x.auto;(g||x.min===void 0)&&n(p,c.min),(g||x.max===void 0)&&n(p,c.max),x.autocolorscale&&n(p,"colorscale")}}for(var o=0;o{"use strict";var Ik=ot(),rm=rr(),Mne=ro().extractOpts;zk.exports=function(r,t,n){var a=r._fullLayout,o=n.vals,i=n.containerStr,l=i?rm.nestedProperty(t,i).get():t,u=Mne(l),s=u.auto!==!1,f=u.min,c=u.max,p=u.mid,x=function(){return rm.aggNums(Math.min,null,o)},g=function(){return rm.aggNums(Math.max,null,o)};if(f===void 0?f=x():s&&(l._colorAx&&Ik(f)?f=Math.min(f,x()):f=x()),c===void 0?c=g():s&&(l._colorAx&&Ik(c)?c=Math.max(c,g()):c=g()),s&&p!==void 0&&(c-p>p-f?f=p-(c-p):c-p=0?w=a.colorscale.sequential:w=a.colorscale.sequentialminus,u._sync("colorscale",w)}}});var ao=_e((a6e,Nk)=>{"use strict";var g1=ys(),K0=ro();Nk.exports={moduleType:"component",name:"colorscale",attributes:Si(),layoutAttributes:Oy(),supplyLayoutDefaults:Rk(),handleDefaults:no(),crossTraceDefaults:Pk(),calc:wl(),scales:g1.scales,defaultScale:g1.defaultScale,getScale:g1.get,isValidScale:g1.isValid,hasColorscale:K0.hasColorscale,extractOpts:K0.extractOpts,extractScale:K0.extractScale,flipScale:K0.flipScale,makeColorScaleFunc:K0.makeColorScaleFunc,makeColorScaleFuncFromTrace:K0.makeColorScaleFuncFromTrace}});var Sa=_e((i6e,Bk)=>{"use strict";var qk=rr(),Tne=ha().isTypedArraySpec;Bk.exports={hasLines:function(e){return e.visible&&e.mode&&e.mode.indexOf("lines")!==-1},hasMarkers:function(e){return e.visible&&(e.mode&&e.mode.indexOf("markers")!==-1||e.type==="splom")},hasText:function(e){return e.visible&&e.mode&&e.mode.indexOf("text")!==-1},isBubble:function(e){var r=e.marker;return qk.isPlainObject(r)&&(qk.isArrayOrTypedArray(r.size)||Tne(r.size))}}});var tm=_e((o6e,Ok)=>{"use strict";var Ane=ot();Ok.exports=function(r,t){t||(t=2);var n=r.marker,a=n.sizeref||1,o=n.sizemin||0,i=n.sizemode==="area"?function(l){return Math.sqrt(l/a)}:function(l){return l/a};return function(l){var u=i(l/t);return Ane(u)&&u>0?Math.max(u,o):0}}});var io=_e(Bn=>{"use strict";var Jf=rr();Bn.getSubplot=function(e){return e.subplot||e.xaxis+e.yaxis||e.geo};Bn.isTraceInSubplots=function(e,r){if(e.type==="splom"){for(var t=e.xaxes||[],n=e.yaxes||[],a=0;a=0&&t.index{var nm={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},Ene=/([astvzqmhlc])([^astvzqmhlc]*)/gi,Lne=/-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/gi;function Dne(e){let r=[];return e.replace(Ene,(t,n,a)=>{let o=n.toLowerCase(),i=n,l=Rne(a);for(o==="m"&&l.length>2&&(r.push([i,...l.splice(0,2)]),o="l",i=i==="m"?"l":"L");;){if(l.length===nm[o])return r.push([i,...l]),"";if(l.length{"use strict";var Fne=am(),lr=function(e,r){return r?Math.round(e*(r=Math.pow(10,r)))/r:Math.round(e)},Pr="M0,0Z",Gk=Math.sqrt(2),Ml=Math.sqrt(3),im=Math.PI,om=Math.cos,lm=Math.sin;Jk.exports={circle:{n:0,f:function(e,r,t){if(Ir(r))return Pr;var n=lr(e,2),a="M"+n+",0A"+n+","+n+" 0 1,1 0,-"+n+"A"+n+","+n+" 0 0,1 "+n+",0Z";return t?zr(r,t,a):a}},square:{n:1,f:function(e,r,t){if(Ir(r))return Pr;var n=lr(e,2);return zr(r,t,"M"+n+","+n+"H-"+n+"V-"+n+"H"+n+"Z")}},diamond:{n:2,f:function(e,r,t){if(Ir(r))return Pr;var n=lr(e*1.3,2);return zr(r,t,"M"+n+",0L0,"+n+"L-"+n+",0L0,-"+n+"Z")}},cross:{n:3,f:function(e,r,t){if(Ir(r))return Pr;var n=lr(e*.4,2),a=lr(e*1.2,2);return zr(r,t,"M"+a+","+n+"H"+n+"V"+a+"H-"+n+"V"+n+"H-"+a+"V-"+n+"H-"+n+"V-"+a+"H"+n+"V-"+n+"H"+a+"Z")}},x:{n:4,f:function(e,r,t){if(Ir(r))return Pr;var n=lr(e*.8/Gk,2),a="l"+n+","+n,o="l"+n+",-"+n,i="l-"+n+",-"+n,l="l-"+n+","+n;return zr(r,t,"M0,"+n+a+o+i+o+i+l+i+l+a+l+a+"Z")}},"triangle-up":{n:5,f:function(e,r,t){if(Ir(r))return Pr;var n=lr(e*2/Ml,2),a=lr(e/2,2),o=lr(e,2);return zr(r,t,"M-"+n+","+a+"H"+n+"L0,-"+o+"Z")}},"triangle-down":{n:6,f:function(e,r,t){if(Ir(r))return Pr;var n=lr(e*2/Ml,2),a=lr(e/2,2),o=lr(e,2);return zr(r,t,"M-"+n+",-"+a+"H"+n+"L0,"+o+"Z")}},"triangle-left":{n:7,f:function(e,r,t){if(Ir(r))return Pr;var n=lr(e*2/Ml,2),a=lr(e/2,2),o=lr(e,2);return zr(r,t,"M"+a+",-"+n+"V"+n+"L-"+o+",0Z")}},"triangle-right":{n:8,f:function(e,r,t){if(Ir(r))return Pr;var n=lr(e*2/Ml,2),a=lr(e/2,2),o=lr(e,2);return zr(r,t,"M-"+a+",-"+n+"V"+n+"L"+o+",0Z")}},"triangle-ne":{n:9,f:function(e,r,t){if(Ir(r))return Pr;var n=lr(e*.6,2),a=lr(e*1.2,2);return zr(r,t,"M-"+a+",-"+n+"H"+n+"V"+a+"Z")}},"triangle-se":{n:10,f:function(e,r,t){if(Ir(r))return Pr;var n=lr(e*.6,2),a=lr(e*1.2,2);return zr(r,t,"M"+n+",-"+a+"V"+n+"H-"+a+"Z")}},"triangle-sw":{n:11,f:function(e,r,t){if(Ir(r))return Pr;var n=lr(e*.6,2),a=lr(e*1.2,2);return zr(r,t,"M"+a+","+n+"H-"+n+"V-"+a+"Z")}},"triangle-nw":{n:12,f:function(e,r,t){if(Ir(r))return Pr;var n=lr(e*.6,2),a=lr(e*1.2,2);return zr(r,t,"M-"+n+","+a+"V-"+n+"H"+a+"Z")}},pentagon:{n:13,f:function(e,r,t){if(Ir(r))return Pr;var n=lr(e*.951,2),a=lr(e*.588,2),o=lr(-e,2),i=lr(e*-.309,2),l=lr(e*.809,2);return zr(r,t,"M"+n+","+i+"L"+a+","+l+"H-"+a+"L-"+n+","+i+"L0,"+o+"Z")}},hexagon:{n:14,f:function(e,r,t){if(Ir(r))return Pr;var n=lr(e,2),a=lr(e/2,2),o=lr(e*Ml/2,2);return zr(r,t,"M"+o+",-"+a+"V"+a+"L0,"+n+"L-"+o+","+a+"V-"+a+"L0,-"+n+"Z")}},hexagon2:{n:15,f:function(e,r,t){if(Ir(r))return Pr;var n=lr(e,2),a=lr(e/2,2),o=lr(e*Ml/2,2);return zr(r,t,"M-"+a+","+o+"H"+a+"L"+n+",0L"+a+",-"+o+"H-"+a+"L-"+n+",0Z")}},octagon:{n:16,f:function(e,r,t){if(Ir(r))return Pr;var n=lr(e*.924,2),a=lr(e*.383,2);return zr(r,t,"M-"+a+",-"+n+"H"+a+"L"+n+",-"+a+"V"+a+"L"+a+","+n+"H-"+a+"L-"+n+","+a+"V-"+a+"Z")}},star:{n:17,f:function(e,r,t){if(Ir(r))return Pr;var n=e*1.4,a=lr(n*.225,2),o=lr(n*.951,2),i=lr(n*.363,2),l=lr(n*.588,2),u=lr(-n,2),s=lr(n*-.309,2),f=lr(n*.118,2),c=lr(n*.809,2),p=lr(n*.382,2);return zr(r,t,"M"+a+","+s+"H"+o+"L"+i+","+f+"L"+l+","+c+"L0,"+p+"L-"+l+","+c+"L-"+i+","+f+"L-"+o+","+s+"H-"+a+"L0,"+u+"Z")}},hexagram:{n:18,f:function(e,r,t){if(Ir(r))return Pr;var n=lr(e*.66,2),a=lr(e*.38,2),o=lr(e*.76,2);return zr(r,t,"M-"+o+",0l-"+a+",-"+n+"h"+o+"l"+a+",-"+n+"l"+a+","+n+"h"+o+"l-"+a+","+n+"l"+a+","+n+"h-"+o+"l-"+a+","+n+"l-"+a+",-"+n+"h-"+o+"Z")}},"star-triangle-up":{n:19,f:function(e,r,t){if(Ir(r))return Pr;var n=lr(e*Ml*.8,2),a=lr(e*.8,2),o=lr(e*1.6,2),i=lr(e*4,2),l="A "+i+","+i+" 0 0 1 ";return zr(r,t,"M-"+n+","+a+l+n+","+a+l+"0,-"+o+l+"-"+n+","+a+"Z")}},"star-triangle-down":{n:20,f:function(e,r,t){if(Ir(r))return Pr;var n=lr(e*Ml*.8,2),a=lr(e*.8,2),o=lr(e*1.6,2),i=lr(e*4,2),l="A "+i+","+i+" 0 0 1 ";return zr(r,t,"M"+n+",-"+a+l+"-"+n+",-"+a+l+"0,"+o+l+n+",-"+a+"Z")}},"star-square":{n:21,f:function(e,r,t){if(Ir(r))return Pr;var n=lr(e*1.1,2),a=lr(e*2,2),o="A "+a+","+a+" 0 0 1 ";return zr(r,t,"M-"+n+",-"+n+o+"-"+n+","+n+o+n+","+n+o+n+",-"+n+o+"-"+n+",-"+n+"Z")}},"star-diamond":{n:22,f:function(e,r,t){if(Ir(r))return Pr;var n=lr(e*1.4,2),a=lr(e*1.9,2),o="A "+a+","+a+" 0 0 1 ";return zr(r,t,"M-"+n+",0"+o+"0,"+n+o+n+",0"+o+"0,-"+n+o+"-"+n+",0Z")}},"diamond-tall":{n:23,f:function(e,r,t){if(Ir(r))return Pr;var n=lr(e*.7,2),a=lr(e*1.4,2);return zr(r,t,"M0,"+a+"L"+n+",0L0,-"+a+"L-"+n+",0Z")}},"diamond-wide":{n:24,f:function(e,r,t){if(Ir(r))return Pr;var n=lr(e*1.4,2),a=lr(e*.7,2);return zr(r,t,"M0,"+a+"L"+n+",0L0,-"+a+"L-"+n+",0Z")}},hourglass:{n:25,f:function(e,r,t){if(Ir(r))return Pr;var n=lr(e,2);return zr(r,t,"M"+n+","+n+"H-"+n+"L"+n+",-"+n+"H-"+n+"Z")},noDot:!0},bowtie:{n:26,f:function(e,r,t){if(Ir(r))return Pr;var n=lr(e,2);return zr(r,t,"M"+n+","+n+"V-"+n+"L-"+n+","+n+"V-"+n+"Z")},noDot:!0},"circle-cross":{n:27,f:function(e,r,t){if(Ir(r))return Pr;var n=lr(e,2);return zr(r,t,"M0,"+n+"V-"+n+"M"+n+",0H-"+n+"M"+n+",0A"+n+","+n+" 0 1,1 0,-"+n+"A"+n+","+n+" 0 0,1 "+n+",0Z")},needLine:!0,noDot:!0},"circle-x":{n:28,f:function(e,r,t){if(Ir(r))return Pr;var n=lr(e,2),a=lr(e/Gk,2);return zr(r,t,"M"+a+","+a+"L-"+a+",-"+a+"M"+a+",-"+a+"L-"+a+","+a+"M"+n+",0A"+n+","+n+" 0 1,1 0,-"+n+"A"+n+","+n+" 0 0,1 "+n+",0Z")},needLine:!0,noDot:!0},"square-cross":{n:29,f:function(e,r,t){if(Ir(r))return Pr;var n=lr(e,2);return zr(r,t,"M0,"+n+"V-"+n+"M"+n+",0H-"+n+"M"+n+","+n+"H-"+n+"V-"+n+"H"+n+"Z")},needLine:!0,noDot:!0},"square-x":{n:30,f:function(e,r,t){if(Ir(r))return Pr;var n=lr(e,2);return zr(r,t,"M"+n+","+n+"L-"+n+",-"+n+"M"+n+",-"+n+"L-"+n+","+n+"M"+n+","+n+"H-"+n+"V-"+n+"H"+n+"Z")},needLine:!0,noDot:!0},"diamond-cross":{n:31,f:function(e,r,t){if(Ir(r))return Pr;var n=lr(e*1.3,2);return zr(r,t,"M"+n+",0L0,"+n+"L-"+n+",0L0,-"+n+"ZM0,-"+n+"V"+n+"M-"+n+",0H"+n)},needLine:!0,noDot:!0},"diamond-x":{n:32,f:function(e,r,t){if(Ir(r))return Pr;var n=lr(e*1.3,2),a=lr(e*.65,2);return zr(r,t,"M"+n+",0L0,"+n+"L-"+n+",0L0,-"+n+"ZM-"+a+",-"+a+"L"+a+","+a+"M-"+a+","+a+"L"+a+",-"+a)},needLine:!0,noDot:!0},"cross-thin":{n:33,f:function(e,r,t){if(Ir(r))return Pr;var n=lr(e*1.4,2);return zr(r,t,"M0,"+n+"V-"+n+"M"+n+",0H-"+n)},needLine:!0,noDot:!0,noFill:!0},"x-thin":{n:34,f:function(e,r,t){if(Ir(r))return Pr;var n=lr(e,2);return zr(r,t,"M"+n+","+n+"L-"+n+",-"+n+"M"+n+",-"+n+"L-"+n+","+n)},needLine:!0,noDot:!0,noFill:!0},asterisk:{n:35,f:function(e,r,t){if(Ir(r))return Pr;var n=lr(e*1.2,2),a=lr(e*.85,2);return zr(r,t,"M0,"+n+"V-"+n+"M"+n+",0H-"+n+"M"+a+","+a+"L-"+a+",-"+a+"M"+a+",-"+a+"L-"+a+","+a)},needLine:!0,noDot:!0,noFill:!0},hash:{n:36,f:function(e,r,t){if(Ir(r))return Pr;var n=lr(e/2,2),a=lr(e,2);return zr(r,t,"M"+n+","+a+"V-"+a+"M"+(n-a)+",-"+a+"V"+a+"M"+a+","+n+"H-"+a+"M-"+a+","+(n-a)+"H"+a)},needLine:!0,noFill:!0},"y-up":{n:37,f:function(e,r,t){if(Ir(r))return Pr;var n=lr(e*1.2,2),a=lr(e*1.6,2),o=lr(e*.8,2);return zr(r,t,"M-"+n+","+o+"L0,0M"+n+","+o+"L0,0M0,-"+a+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-down":{n:38,f:function(e,r,t){if(Ir(r))return Pr;var n=lr(e*1.2,2),a=lr(e*1.6,2),o=lr(e*.8,2);return zr(r,t,"M-"+n+",-"+o+"L0,0M"+n+",-"+o+"L0,0M0,"+a+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-left":{n:39,f:function(e,r,t){if(Ir(r))return Pr;var n=lr(e*1.2,2),a=lr(e*1.6,2),o=lr(e*.8,2);return zr(r,t,"M"+o+","+n+"L0,0M"+o+",-"+n+"L0,0M-"+a+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-right":{n:40,f:function(e,r,t){if(Ir(r))return Pr;var n=lr(e*1.2,2),a=lr(e*1.6,2),o=lr(e*.8,2);return zr(r,t,"M-"+o+","+n+"L0,0M-"+o+",-"+n+"L0,0M"+a+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"line-ew":{n:41,f:function(e,r,t){if(Ir(r))return Pr;var n=lr(e*1.4,2);return zr(r,t,"M"+n+",0H-"+n)},needLine:!0,noDot:!0,noFill:!0},"line-ns":{n:42,f:function(e,r,t){if(Ir(r))return Pr;var n=lr(e*1.4,2);return zr(r,t,"M0,"+n+"V-"+n)},needLine:!0,noDot:!0,noFill:!0},"line-ne":{n:43,f:function(e,r,t){if(Ir(r))return Pr;var n=lr(e,2);return zr(r,t,"M"+n+",-"+n+"L-"+n+","+n)},needLine:!0,noDot:!0,noFill:!0},"line-nw":{n:44,f:function(e,r,t){if(Ir(r))return Pr;var n=lr(e,2);return zr(r,t,"M"+n+","+n+"L-"+n+",-"+n)},needLine:!0,noDot:!0,noFill:!0},"arrow-up":{n:45,f:function(e,r,t){if(Ir(r))return Pr;var n=lr(e,2),a=lr(e*2,2);return zr(r,t,"M0,0L-"+n+","+a+"H"+n+"Z")},backoff:1,noDot:!0},"arrow-down":{n:46,f:function(e,r,t){if(Ir(r))return Pr;var n=lr(e,2),a=lr(e*2,2);return zr(r,t,"M0,0L-"+n+",-"+a+"H"+n+"Z")},noDot:!0},"arrow-left":{n:47,f:function(e,r,t){if(Ir(r))return Pr;var n=lr(e*2,2),a=lr(e,2);return zr(r,t,"M0,0L"+n+",-"+a+"V"+a+"Z")},noDot:!0},"arrow-right":{n:48,f:function(e,r,t){if(Ir(r))return Pr;var n=lr(e*2,2),a=lr(e,2);return zr(r,t,"M0,0L-"+n+",-"+a+"V"+a+"Z")},noDot:!0},"arrow-bar-up":{n:49,f:function(e,r,t){if(Ir(r))return Pr;var n=lr(e,2),a=lr(e*2,2);return zr(r,t,"M-"+n+",0H"+n+"M0,0L-"+n+","+a+"H"+n+"Z")},backoff:1,needLine:!0,noDot:!0},"arrow-bar-down":{n:50,f:function(e,r,t){if(Ir(r))return Pr;var n=lr(e,2),a=lr(e*2,2);return zr(r,t,"M-"+n+",0H"+n+"M0,0L-"+n+",-"+a+"H"+n+"Z")},needLine:!0,noDot:!0},"arrow-bar-left":{n:51,f:function(e,r,t){if(Ir(r))return Pr;var n=lr(e*2,2),a=lr(e,2);return zr(r,t,"M0,-"+a+"V"+a+"M0,0L"+n+",-"+a+"V"+a+"Z")},needLine:!0,noDot:!0},"arrow-bar-right":{n:52,f:function(e,r,t){if(Ir(r))return Pr;var n=lr(e*2,2),a=lr(e,2);return zr(r,t,"M0,-"+a+"V"+a+"M0,0L-"+n+",-"+a+"V"+a+"Z")},needLine:!0,noDot:!0},arrow:{n:53,f:function(e,r,t){if(Ir(r))return Pr;var n=im/2.5,a=2*e*om(n),o=2*e*lm(n);return zr(r,t,"M0,0L"+-a+","+o+"L"+a+","+o+"Z")},backoff:.9,noDot:!0},"arrow-wide":{n:54,f:function(e,r,t){if(Ir(r))return Pr;var n=im/4,a=2*e*om(n),o=2*e*lm(n);return zr(r,t,"M0,0L"+-a+","+o+"A "+2*e+","+2*e+" 0 0 1 "+a+","+o+"Z")},backoff:.4,noDot:!0}};function Ir(e){return e===null}var Yk,Xk,Wk,Zk;function zr(e,r,t){if((!e||e%360===0)&&!r)return t;if(Wk===e&&Zk===r&&Yk===t)return Xk;Wk=e,Zk=r,Yk=t;function n(M,m){var k=om(M),S=lm(M),b=m[0],T=m[1]+(r||0);return[b*k-T*S,b*S+T*k]}for(var a=e/180*im,o=0,i=0,l=Fne(t),u="",s=0;s{"use strict";var Tn=at(),bt=rr(),Pne=bt.numberFormat,Tl=ot(),m1=Er(),pn=Wr(),Ine=ao(),Kf=bt.strTranslate,b1=Wn(),zne=(xl(),or(bl)),Nne=(Xn(),or(Yn)),qne=Nne.LINE_SPACING,oS=(Lh(),or(Eh)).DESELECTDIM,Bne=Sa(),One=tm(),Une=io().appendArrayPointValue,ur={};gS.exports=ur;ur.font=function(e,r){var t=r.variant,n=r.style,a=r.weight,o=r.color,i=r.size,l=r.family,u=r.shadow,s=r.lineposition,f=r.textcase;l&&e.style("font-family",l),i+1&&e.style("font-size",i+"px"),o&&e.call(pn.fill,o),a&&e.style("font-weight",a),n&&e.style("font-style",n),t&&e.style("font-variant",t),f&&e.style("text-transform",sm(Vne(f))),u&&e.style("text-shadow",u==="auto"?b1.makeTextShadow(pn.contrast(o)):sm(u)),s&&e.style("text-decoration-line",sm(Gne(s)))};function sm(e){return e==="none"?void 0:e}var Hne={normal:"none",lower:"lowercase",upper:"uppercase","word caps":"capitalize"};function Vne(e){return Hne[e]}function Gne(e){return e.replace("under","underline").replace("over","overline").replace("through","line-through").split("+").join(" ")}ur.setPosition=function(e,r,t){e.attr("x",r).attr("y",t)};ur.setSize=function(e,r,t){e.attr("width",r).attr("height",t)};ur.setRect=function(e,r,t,n,a){e.call(ur.setPosition,r,t).call(ur.setSize,n,a)};ur.translatePoint=function(e,r,t,n){var a=t.c2p(e.x),o=n.c2p(e.y);if(Tl(a)&&Tl(o)&&r.node())r.node().nodeName==="text"?r.attr("x",a).attr("y",o):r.attr("transform",Kf(a,o));else return!1;return!0};ur.translatePoints=function(e,r,t){e.each(function(n){var a=Tn.select(this);ur.translatePoint(n,a,r,t)})};ur.hideOutsideRangePoint=function(e,r,t,n,a,o){r.attr("display",t.isPtWithinRange(e,a)&&n.isPtWithinRange(e,o)?null:"none")};ur.hideOutsideRangePoints=function(e,r){if(r._hasClipOnAxisFalse){var t=r.xaxis,n=r.yaxis;e.each(function(a){var o=a[0].trace,i=o.xcalendar,l=o.ycalendar,u=m1.traceIs(o,"bar-like")?".bartext":".point,.textpoint";e.selectAll(u).each(function(s){ur.hideOutsideRangePoint(s,Tn.select(this),t,n,i,l)})})}};ur.crispRound=function(e,r,t){return!r||!Tl(r)?t||0:e._context.staticPlot?r:r<1?1:Math.round(r)};ur.singleLineStyle=function(e,r,t,n,a){r.style("fill","none");var o=(((e||[])[0]||{}).trace||{}).line||{},i=t||o.width||0,l=a||o.dash||"";pn.stroke(r,n||o.color),ur.dashLine(r,l,i)};ur.lineGroupStyle=function(e,r,t,n){e.style("fill","none").each(function(a){var o=(((a||[])[0]||{}).trace||{}).line||{},i=r||o.width||0,l=n||o.dash||"";Tn.select(this).call(pn.stroke,t||o.color).call(ur.dashLine,l,i)})};ur.dashLine=function(e,r,t){t=+t||0,r=ur.dashStyle(r,t),e.style({"stroke-dasharray":r,"stroke-width":t+"px"})};ur.dashStyle=function(e,r){r=+r||1;var t=Math.max(r,3);return e==="solid"?e="":e==="dot"?e=t+"px,"+t+"px":e==="dash"?e=3*t+"px,"+3*t+"px":e==="longdash"?e=5*t+"px,"+5*t+"px":e==="dashdot"?e=3*t+"px,"+t+"px,"+t+"px,"+t+"px":e==="longdashdot"&&(e=5*t+"px,"+2*t+"px,"+t+"px,"+2*t+"px"),e};function lS(e,r,t,n){var a=r.fillpattern,o=r.fillgradient,i=ur.getPatternAttr,l=a&&(i(a.shape,0,"")||i(a.path,0,""));if(l){var u=i(a.bgcolor,0,null),s=i(a.fgcolor,0,null),f=a.fgopacity,c=i(a.size,0,8),p=i(a.solidity,0,.3),x=r.uid;ur.pattern(e,"point",t,x,l,c,p,void 0,a.fillmode,u,s,f)}else if(o&&o.type!=="none"){var g=o.type,w="scatterfill-"+r.uid;if(n&&(w="legendfill-"+r.uid),!n&&(o.start!==void 0||o.stop!==void 0)){var M,m;g==="horizontal"?(M={x:o.start,y:0},m={x:o.stop,y:0}):g==="vertical"&&(M={x:0,y:o.start},m={x:0,y:o.stop}),M.x=r._xA.c2p(M.x===void 0?r._extremes.x.min[0].val:M.x,!0),M.y=r._yA.c2p(M.y===void 0?r._extremes.y.min[0].val:M.y,!0),m.x=r._xA.c2p(m.x===void 0?r._extremes.x.max[0].val:m.x,!0),m.y=r._yA.c2p(m.y===void 0?r._extremes.y.max[0].val:m.y,!0),e.call(fS,t,w,"linear",o.colorscale,"fill",M,m,!0,!1)}else g==="horizontal"&&(g=g+"reversed"),e.call(ur.gradient,t,w,g,o.colorscale,"fill")}else r.fillcolor&&e.call(pn.fill,r.fillcolor)}ur.singleFillStyle=function(e,r){var t=Tn.select(e.node()),n=t.data(),a=((n[0]||[])[0]||{}).trace||{};lS(e,a,r,!1)};ur.fillGroupStyle=function(e,r,t){e.style("stroke-width",0).each(function(n){var a=Tn.select(this);n[0].trace&&lS(a,n[0].trace,r,t)})};var Kk=$k();ur.symbolNames=[];ur.symbolFuncs=[];ur.symbolBackOffs=[];ur.symbolNeedLines={};ur.symbolNoDot={};ur.symbolNoFill={};ur.symbolList=[];Object.keys(Kk).forEach(function(e){var r=Kk[e],t=r.n;ur.symbolList.push(t,String(t),e,t+100,String(t+100),e+"-open"),ur.symbolNames[t]=e,ur.symbolFuncs[t]=r.f,ur.symbolBackOffs[t]=r.backoff||0,r.needLine&&(ur.symbolNeedLines[t]=!0),r.noDot?ur.symbolNoDot[t]=!0:ur.symbolList.push(t+200,String(t+200),e+"-dot",t+300,String(t+300),e+"-open-dot"),r.noFill&&(ur.symbolNoFill[t]=!0)});var Yne=ur.symbolNames.length,Xne="M0,0.5L0.5,0L0,-0.5L-0.5,0Z";ur.symbolNumber=function(e){if(Tl(e))e=+e;else if(typeof e=="string"){var r=0;e.indexOf("-open")>0&&(r=100,e=e.replace("-open","")),e.indexOf("-dot")>0&&(r+=200,e=e.replace("-dot","")),e=ur.symbolNames.indexOf(e),e>=0&&(e+=r)}return e%100>=Yne||e>=400?0:Math.floor(Math.max(e,0))};function sS(e,r,t,n){var a=e%100;return ur.symbolFuncs[a](r,t,n)+(e>=200?Xne:"")}var Qk=Pne("~f"),uS={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}};ur.gradient=function(e,r,t,n,a,o){var i=uS[n];return fS(e,r,t,i.type,a,o,i.start,i.stop,!1,i.reversed)};function fS(e,r,t,n,a,o,i,l,u,s){var f=a.length,c;n==="linear"?c={node:"linearGradient",attrs:{x1:i.x,y1:i.y,x2:l.x,y2:l.y,gradientUnits:u?"userSpaceOnUse":"objectBoundingBox"},reversed:s}:n==="radial"&&(c={node:"radialGradient",reversed:s});for(var p=new Array(f),x=0;x=0&&e.i===void 0&&(e.i=o.i),r.style("opacity",n.selectedOpacityFn?n.selectedOpacityFn(e):e.mo===void 0?i.opacity:e.mo),n.ms2mrc){var u;e.ms==="various"||i.size==="various"?u=3:u=n.ms2mrc(e.ms),e.mrc=u,n.selectedSizeFn&&(u=e.mrc=n.selectedSizeFn(e));var s=ur.symbolNumber(e.mx||i.symbol)||0;e.om=s%200>=100;var f=pm(e,t),c=dm(e,t);r.attr("d",sS(s,u,f,c))}var p=!1,x,g,w;if(e.so)w=l.outlierwidth,g=l.outliercolor,x=i.outliercolor;else{var M=(l||{}).width;w=(e.mlw+1||M+1||(e.trace?(e.trace.marker.line||{}).width:0)+1)-1||0,"mlc"in e?g=e.mlcc=n.lineScale(e.mlc):bt.isArrayOrTypedArray(l.color)?g=pn.defaultLine:g=l.color,bt.isArrayOrTypedArray(i.color)&&(x=pn.defaultLine,p=!0),"mc"in e?x=e.mcc=n.markerScale(e.mc):x=i.color||i.colors||"rgba(0,0,0,0)",n.selectedColorFn&&(x=n.selectedColorFn(e))}let m=e.mld||(l||{}).dash;if(m&&ur.dashLine(r,m,w),e.om)r.call(pn.stroke,x).style({"stroke-width":(w||1)+"px",fill:"none"});else{r.style("stroke-width",(e.isBlank?0:w)+"px");var k=i.gradient,S=e.mgt;S?p=!0:S=k&&k.type,bt.isArrayOrTypedArray(S)&&(S=S[0],uS[S]||(S=0));var b=i.pattern,T=ur.getPatternAttr,h=b&&(T(b.shape,e.i,"")||T(b.path,e.i,""));if(S&&S!=="none"){var _=e.mgc;_?p=!0:_=k.color;var y=t.uid;p&&(y+="-"+e.i),ur.gradient(r,a,y,S,[[0,_],[1,x]],"fill")}else if(h){var v=!1,A=b.fgcolor;!A&&o&&o.color&&(A=o.color,v=!0);var d=T(A,e.i,o&&o.color||null),D=T(b.bgcolor,e.i,null),E=b.fgopacity,R=T(b.size,e.i,8),z=T(b.solidity,e.i,.3);v=v||e.mcc||bt.isArrayOrTypedArray(b.shape)||bt.isArrayOrTypedArray(b.path)||bt.isArrayOrTypedArray(b.bgcolor)||bt.isArrayOrTypedArray(b.fgcolor)||bt.isArrayOrTypedArray(b.size)||bt.isArrayOrTypedArray(b.solidity);var I=t.uid;v&&(I+="-"+e.i),ur.pattern(r,"point",a,I,h,R,z,e.mcc,b.fillmode,D,d,E)}else bt.isArrayOrTypedArray(x)?pn.fill(r,x[e.i]):pn.fill(r,x);w&&pn.stroke(r,g)}};ur.makePointStyleFns=function(e){var r={},t=e.marker;return r.markerScale=ur.tryColorscale(t,""),r.lineScale=ur.tryColorscale(t,"line"),m1.traceIs(e,"symbols")&&(r.ms2mrc=Bne.isBubble(e)?One(e):function(){return(t.size||6)/2}),e.selectedpoints&&bt.extendFlat(r,ur.makeSelectedPointStyleFns(e)),r};ur.makeSelectedPointStyleFns=function(e){var r={},t=e.selected||{},n=e.unselected||{},a=e.marker||{},o=t.marker||{},i=n.marker||{},l=a.opacity,u=o.opacity,s=i.opacity,f=u!==void 0,c=s!==void 0;(bt.isArrayOrTypedArray(l)||f||c)&&(r.selectedOpacityFn=function(b){var T=b.mo===void 0?a.opacity:b.mo;return b.selected?f?u:T:c?s:oS*T});var p=a.color,x=o.color,g=i.color;(x||g)&&(r.selectedColorFn=function(b){var T=b.mcc||p;return b.selected?x||T:g||T});var w=a.size,M=o.size,m=i.size,k=M!==void 0,S=m!==void 0;return m1.traceIs(e,"symbols")&&(k||S)&&(r.selectedSizeFn=function(b){var T=b.mrc||w/2;return b.selected?k?M/2:T:S?m/2:T}),r};ur.makeSelectedTextStyleFns=function(e){var r={},t=e.selected||{},n=e.unselected||{},a=e.textfont||{},o=t.textfont||{},i=n.textfont||{},l=a.color,u=o.color,s=i.color;return r.selectedTextColorFn=function(f){var c=f.tc||l;return f.selected?u||c:s||(u?c:pn.addOpacity(c,oS))},r};ur.selectedPointStyle=function(e,r){if(!(!e.size()||!r.selectedpoints)){var t=ur.makeSelectedPointStyleFns(r),n=r.marker||{},a=[];t.selectedOpacityFn&&a.push(function(o,i){o.style("opacity",t.selectedOpacityFn(i))}),t.selectedColorFn&&a.push(function(o,i){pn.fill(o,t.selectedColorFn(i))}),t.selectedSizeFn&&a.push(function(o,i){var l=i.mx||n.symbol||0,u=t.selectedSizeFn(i);o.attr("d",sS(ur.symbolNumber(l),u,pm(i,r),dm(i,r))),i.mrc2=u}),a.length&&e.each(function(o){for(var i=Tn.select(this),l=0;l0?t:0}ur.textPointStyle=function(e,r,t){if(e.size()){var n;if(r.selectedpoints){var a=ur.makeSelectedTextStyleFns(r);n=a.selectedTextColorFn}var o=r.texttemplate,i=t._fullLayout;e.each(function(l){var u=Tn.select(this),s=o?bt.extractOption(l,r,"txt","texttemplate"):bt.extractOption(l,r,"tx","text");if(!s&&s!==0){u.remove();return}if(o){var f=r._module.formatLabels,c=f?f(l,r,i):{},p={};Une(p,r,l.i),s=bt.texttemplateString({data:[p,l,r._meta],fallback:r.texttemplatefallback,labels:c,locale:i._d3locale,template:s})}var x=l.tp||r.textposition,g=vS(l,r),w=n?n(l):l.tc||r.textfont.color;u.call(ur.font,{family:l.tf||r.textfont.family,weight:l.tw||r.textfont.weight,style:l.ty||r.textfont.style,variant:l.tv||r.textfont.variant,textcase:l.tC||r.textfont.textcase,lineposition:l.tE||r.textfont.lineposition,shadow:l.tS||r.textfont.shadow,size:g,color:w}).text(s).call(b1.convertToTspans,t).call(cS,x,g,l.mrc)})}};ur.selectedTextStyle=function(e,r){if(!(!e.size()||!r.selectedpoints)){var t=ur.makeSelectedTextStyleFns(r);e.each(function(n){var a=Tn.select(this),o=t.selectedTextColorFn(n),i=n.tp||r.textposition,l=vS(n,r);pn.fill(a,o);var u=m1.traceIs(r,"bar-like");cS(a,i,l,n.mrc2||n.mrc,u)})}};var jk=.5;ur.smoothopen=function(e,r){if(e.length<3)return"M"+e.join("L");var t="M"+e[0],n=[],a;for(a=1;a=u||b>=f&&b<=u)&&(T<=c&&T>=s||T>=c&&T<=s)&&(e=[b,T])}return e}ur.applyBackoff=pS;ur.makeTester=function(){var e=bt.ensureSingleById(Tn.select("body"),"svg","js-plotly-tester",function(t){t.attr(zne.svgAttrs).style({position:"absolute",left:"-10000px",top:"-10000px",width:"9000px",height:"9000px","z-index":"1"})}),r=bt.ensureSingle(e,"path","js-reference-point",function(t){t.attr("d","M0,0H1V1H0Z").style({"stroke-width":0,fill:"black"})});ur.tester=e,ur.testref=r};ur.savedBBoxes={};var fm=0,Jne=1e4;ur.bBox=function(e,r,t){t||(t=eS(e));var n;if(t){if(n=ur.savedBBoxes[t],n)return bt.extendFlat({},n)}else if(e.childNodes.length===1){var a=e.childNodes[0];if(t=eS(a),t){var o=+a.getAttribute("x")||0,i=+a.getAttribute("y")||0,l=a.getAttribute("transform");if(!l){var u=ur.bBox(a,!1,t);return o&&(u.left+=o,u.right+=o),i&&(u.top+=i,u.bottom+=i),u}if(t+="~"+o+"~"+i+"~"+l,n=ur.savedBBoxes[t],n)return bt.extendFlat({},n)}}var s,f;r?s=e:(f=ur.tester.node(),s=e.cloneNode(!0),f.appendChild(s)),Tn.select(s).attr("transform",null).call(b1.positionText,0,0);var c=s.getBoundingClientRect(),p=ur.testref.node().getBoundingClientRect();r||f.removeChild(s);var x={height:c.height,width:c.width,left:c.left-p.left,top:c.top-p.top,right:c.right-p.left,bottom:c.bottom-p.top};return fm>=Jne&&(ur.savedBBoxes={},fm=0),t&&(ur.savedBBoxes[t]=x),fm++,bt.extendFlat({},x)};function eS(e){var r=e.getAttribute("data-unformatted");if(r!==null)return r+e.getAttribute("data-math")+e.getAttribute("text-anchor")+e.getAttribute("style")}ur.setClipUrl=function(e,r,t){e.attr("clip-path",hm(r,t))};function hm(e,r){if(!e)return null;var t=r._context,n=t._exportedPlot?"":t._baseUrl||"";return n?"url('"+n+"#"+e+"')":"url(#"+e+")"}ur.getTranslate=function(e){var r=/.*\btranslate\((-?\d*\.?\d*)[^-\d]*(-?\d*\.?\d*)[^\d].*/,t=e.attr?"attr":"getAttribute",n=e[t]("transform")||"",a=n.replace(r,function(o,i,l){return[i,l].join(" ")}).split(" ");return{x:+a[0]||0,y:+a[1]||0}};ur.setTranslate=function(e,r,t){var n=/(\btranslate\(.*?\);?)/,a=e.attr?"attr":"getAttribute",o=e.attr?"attr":"setAttribute",i=e[a]("transform")||"";return r=r||0,t=t||0,i=i.replace(n,"").trim(),i+=Kf(r,t),i=i.trim(),e[o]("transform",i),i};ur.getScale=function(e){var r=/.*\bscale\((\d*\.?\d*)[^\d]*(\d*\.?\d*)[^\d].*/,t=e.attr?"attr":"getAttribute",n=e[t]("transform")||"",a=n.replace(r,function(o,i,l){return[i,l].join(" ")}).split(" ");return{x:+a[0]||1,y:+a[1]||1}};ur.setScale=function(e,r,t){var n=/(\bscale\(.*?\);?)/,a=e.attr?"attr":"getAttribute",o=e.attr?"attr":"setAttribute",i=e[a]("transform")||"";return r=r||1,t=t||1,i=i.replace(n,"").trim(),i+="scale("+r+","+t+")",i=i.trim(),e[o]("transform",i),i};var $ne=/\s*sc.*/;ur.setPointGroupScale=function(e,r,t){if(r=r||1,t=t||1,!!e){var n=r===1&&t===1?"":"scale("+r+","+t+")";e.each(function(){var a=(this.getAttribute("transform")||"").replace($ne,"");a+=n,a=a.trim(),this.setAttribute("transform",a)})}};var Kne=/translate\([^)]*\)\s*$/;ur.setTextPointsScale=function(e,r,t){e&&e.each(function(){var n,a=Tn.select(this),o=a.select("text");if(o.node()){var i=parseFloat(o.attr("x")||0),l=parseFloat(o.attr("y")||0),u=(a.attr("transform")||"").match(Kne);r===1&&t===1?n=[]:n=[Kf(i,l),"scale("+r+","+t+")",Kf(-i,-l)],u&&n.push(u),a.attr("transform",n.join(""))}})};function dm(e,r){var t;return e&&(t=e.mf),t===void 0&&(t=r.marker&&r.marker.standoff||0),!r._geo&&!r._xA?-t:t}ur.getMarkerStandoff=dm;var $f=Math.atan2,Cs=Math.cos,j0=Math.sin;function rS(e,r){var t=r[0],n=r[1];return[t*Cs(e)-n*j0(e),t*j0(e)+n*Cs(e)]}var tS,nS,aS,iS,cm,vm;function pm(e,r){var t=e.ma;t===void 0&&(t=r.marker.angle,(!Tl(t)||bt.isArrayOrTypedArray(t))&&(t=0));var n,a,o=r.marker.angleref;if(o==="previous"||o==="north"){if(r._geo){var i=r._geo.project(e.lonlat);n=i[0],a=i[1]}else{var l=r._xA,u=r._yA;if(l&&u)n=l.c2p(e.x),a=u.c2p(e.y);else return 90}if(r._geo){var s=e.lonlat[0],f=e.lonlat[1],c=r._geo.project([s,f+1e-5]),p=r._geo.project([s+1e-5,f]),x=$f(p[1]-a,p[0]-n),g=$f(c[1]-a,c[0]-n),w;if(o==="north")w=t/180*Math.PI;else if(o==="previous"){var M=s/180*Math.PI,m=f/180*Math.PI,k=tS/180*Math.PI,S=nS/180*Math.PI,b=k-M,T=Cs(S)*j0(b),h=j0(S)*Cs(m)-Cs(S)*j0(m)*Cs(b);w=-$f(T,h)-Math.PI,tS=s,nS=f}var _=rS(x,[Cs(w),0]),y=rS(g,[j0(w),0]);t=$f(_[1]+y[1],_[0]+y[0])/Math.PI*180,o==="previous"&&!(vm===r.uid&&e.i===cm+1)&&(t=null)}if(o==="previous"&&!r._geo)if(vm===r.uid&&e.i===cm+1&&Tl(n)&&Tl(a)){var v=n-aS,A=a-iS,d=r.line&&r.line.shape||"",D=d.slice(d.length-1);D==="h"&&(A=0),D==="v"&&(v=0),t+=$f(A,v)/Math.PI*180+90}else t=null}return aS=n,iS=a,cm=e.i,vm=r.uid,t}ur.getMarkerAngle=pm});var Qf=_e((c6e,xS)=>{"use strict";var eu=at(),Qne=ot(),jne=Mn(),gm=Er(),Ds=rr(),yS=Ds.strTranslate,x1=Tt(),_1=Wr(),ru=Wn(),mS=(Lh(),or(Eh)),eae=(Xn(),or(Yn)).OPPOSITE_SIDE,bS=/ [XY][0-9]* /,ym=1.6,mm=1.6;function rae(e,r,t){var n=e._fullLayout,a=t.propContainer,o=t.propName,i=t.placeholder,l=t.traceIndex,u=t.avoid||{},s=t.attributes,f=t.transform,c=t.containerGroup,p=1,x=a.title,g=(x&&x.text?x.text:"").trim(),w=!1,M=x&&x.font?x.font:{},m=M.family,k=M.size,S=M.color,b=M.weight,T=M.style,h=M.variant,_=M.textcase,y=M.lineposition,v=M.shadow,A=t.subtitlePropName,d=!!A,D=t.subtitlePlaceholder,E=(a.title||{}).subtitle||{text:"",font:{}},R=(E.text||"").trim(),z=!1,I=1,P=E.font,L=P.family,F=P.size,B=P.color,O=P.weight,V=P.style,K=P.variant,j=P.textcase,G=P.lineposition,q=P.shadow,J;o==="title.text"?J="titleText":o.indexOf("axis")!==-1?J="axisTitleText":o.indexOf("colorbar")!==-1&&(J="colorbarTitleText");var te=e._context.edits[J];function Z(Ce,le){return Ce===void 0||le===void 0?!1:Ce.replace(bS," % ")===le.replace(bS," % ")}g===""?p=0:Z(g,i)&&(te||(g=""),p=.2,w=!0),d&&(R===""?I=0:Z(R,D)&&(te||(R=""),I=.2,z=!0)),t._meta?g=Ds.templateString(g,t._meta):n._meta&&(g=Ds.templateString(g,n._meta));var ie=g||R||te,Q;c||(c=Ds.ensureSingle(n._infolayer,"g","g-"+r),Q=n._hColorbarMoveTitle);var re=c.selectAll("text."+r).data(ie?[0]:[]);re.enter().append("text"),re.text(g).attr("class",r),re.exit().remove();var ue=null,ee=r+"-subtitle",ae=R||te;if(d&&(ue=c.selectAll("text."+ee).data(ae?[0]:[]),ue.enter().append("text"),ue.text(R).attr("class",ee),ue.exit().remove()),!ie)return c;function ce(Ce,le){Ds.syncOrAsync([Te,ke],{title:Ce,subtitle:le})}function Te(Ce){var le=Ce.title,Y=Ce.subtitle,$;!f&&Q&&(f={}),f?($="",f.rotate&&($+="rotate("+[f.rotate,s.x,s.y]+")"),(f.offset||Q)&&($+=yS(0,(f.offset||0)-(Q||0)))):$=null,le.attr("transform",$);function pe(ye){if(ye){var de=eu.select(ye.node().parentNode).select("."+ee);if(!de.empty()){var xe=ye.node().getBBox();if(xe.height){var Ae=xe.y+xe.height+ym*F;de.attr("y",Ae)}}}}if(le.style("opacity",p*_1.opacity(S)).call(x1.font,{color:_1.rgb(S),size:eu.round(k,2),family:m,weight:b,style:T,variant:h,textcase:_,shadow:v,lineposition:y}).attr(s).call(ru.convertToTspans,e,pe),Y&&!Y.empty()){var oe=c.select("."+r+"-math-group"),ve=le.node().getBBox(),he=oe.node()?oe.node().getBBox():void 0,me=he?he.y+he.height+ym*F:ve.y+ve.height+mm*F,be=Ds.extendFlat({},s,{y:me});Y.attr("transform",$),Y.style("opacity",I*_1.opacity(B)).call(x1.font,{color:_1.rgb(B),size:eu.round(F,2),family:L,weight:O,style:V,variant:K,textcase:j,shadow:q,lineposition:G}).attr(be).call(ru.convertToTspans,e)}return jne.previousPromises(e)}function ke(Ce){var le=Ce.title,Y=eu.select(le.node().parentNode);if(u&&u.selection&&u.side&&g){Y.attr("transform",null);var $=eae[u.side],pe=u.side==="left"||u.side==="top"?-1:1,oe=Qne(u.pad)?u.pad:2,ve=x1.bBox(Y.node()),he={t:0,b:0,l:0,r:0},me=e._fullLayout._reservedMargin;for(var be in me)for(var ye in me[be]){var de=me[be][ye];he[ye]=Math.max(he[ye],de)}var xe={left:he.l,top:he.t,right:n.width-he.r,bottom:n.height-he.b},Ae=u.maxShift||pe*(xe[u.side]-ve[u.side]),Pe=0;if(Ae<0)Pe=Ae;else{var Fe=u.offsetLeft||0,Ye=u.offsetTop||0;ve.left-=Fe,ve.right-=Fe,ve.top-=Ye,ve.bottom-=Ye,u.selection.each(function(){var Be=x1.bBox(this);Ds.bBoxIntersect(ve,Be,oe)&&(Pe=Math.max(Pe,pe*(Be[u.side]-ve[$])+oe))}),Pe=Math.min(Ae,Pe),a._titleScoot=Math.abs(Pe)}if(Pe>0||Ae<0){var qe={left:[-Pe,0],right:[Pe,0],top:[0,-Pe],bottom:[0,Pe]}[u.side];Y.attr("transform",yS(qe[0],qe[1]))}}}re.call(ce,ue);function Se(Ce,le){Ce.text(le).on("mouseover.opacity",function(){eu.select(this).transition().duration(mS.SHOW_PLACEHOLDER).style("opacity",1)}).on("mouseout.opacity",function(){eu.select(this).transition().duration(mS.HIDE_PLACEHOLDER).style("opacity",0)})}if(te&&(g?re.on(".opacity",null):(Se(re,i),w=!0),re.call(ru.makeEditable,{gd:e}).on("edit",function(Ce){l!==void 0?gm.call("_guiRestyle",e,o,Ce,l):gm.call("_guiRelayout",e,o,Ce)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(ce)}).on("input",function(Ce){this.text(Ce||" ").call(ru.positionText,s.x,s.y)}),d)){if(d&&!g){var ge=re.node().getBBox(),Le=ge.y+ge.height+mm*F;ue.attr("y",Le)}R?ue.on(".opacity",null):(Se(ue,D),z=!0),ue.call(ru.makeEditable,{gd:e}).on("edit",function(Ce){gm.call("_guiRelayout",e,"title.subtitle.text",Ce)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(ce)}).on("input",function(Ce){this.text(Ce||" ").call(ru.positionText,ue.attr("x"),ue.attr("y"))})}return re.classed("js-placeholder",w),ue&&!ue.empty()&&ue.classed("js-placeholder",z),c}xS.exports={draw:rae,SUBTITLE_PADDING_EM:mm,SUBTITLE_PADDING_MATHJAX_EM:ym}});var E1=_e((v6e,AS)=>{"use strict";var tae=at(),nae=_0().utcFormat,At=rr(),aae=At.numberFormat,oo=ot(),Al=At.cleanNumber,iae=At.ms2DateTime,_S=At.dateTime2ms,lo=At.ensureNumber,wS=At.isArrayOrTypedArray,kl=(mn(),or(Cn)),w1=kl.FP_SAFE,Ei=kl.BADNUM,oae=kl.LOG_CLIP,lae=kl.ONEWEEK,M1=kl.ONEDAY,T1=kl.ONEHOUR,MS=kl.ONEMIN,TS=kl.ONESEC,A1=hn(),C1=(wn(),or(_n)),k1=C1.HOUR_PATTERN,S1=C1.WEEKDAY_PATTERN;function jf(e){return Math.pow(10,e)}function bm(e){return e!=null}AS.exports=function(r,t){t=t||{};var n=r._id||"x",a=n.charAt(0);function o(b,T){if(b>0)return Math.log(b)/Math.LN10;if(b<=0&&T&&r.range&&r.range.length===2){var h=r.range[0],_=r.range[1];return .5*(h+_-2*oae*Math.abs(h-_))}else return Ei}function i(b,T,h,_){if((_||{}).msUTC&&oo(b))return+b;var y=_S(b,h||r.calendar);if(y===Ei)if(oo(b)){b=+b;var v=Math.floor(At.mod(b+.05,1)*10),A=Math.round(b-v/10);y=_S(new Date(A))+v/10}else return Ei;return y}function l(b,T,h){return iae(b,T,h||r.calendar)}function u(b){return r._categories[Math.round(b)]}function s(b){if(bm(b)){if(r._categoriesMap===void 0&&(r._categoriesMap={}),r._categoriesMap[b]!==void 0)return r._categoriesMap[b];r._categories.push(typeof b=="number"?String(b):b);var T=r._categories.length-1;return r._categoriesMap[b]=T,T}return Ei}function f(b,T){for(var h=new Array(T),_=0;_r.range[1]&&(h=!h);for(var _=h?-1:1,y=_*b,v=0,A=0;AD)v=A+1;else{v=y<(d+D)/2?A:A+1;break}}var E=r._B[v]||0;return isFinite(E)?g(b,r._m2,E):0},m=function(b){var T=r._rangebreaks.length;if(!T)return w(b,r._m,r._b);for(var h=0,_=0;_r._rangebreaks[_].pmax&&(h=_+1);return w(b,r._m2,r._B[h])}}r.c2l=r.type==="log"?o:lo,r.l2c=r.type==="log"?jf:lo,r.l2p=M,r.p2l=m,r.c2p=r.type==="log"?function(b,T){return M(o(b,T))}:M,r.p2c=r.type==="log"?function(b){return jf(m(b))}:m,["linear","-"].indexOf(r.type)!==-1?(r.d2r=r.r2d=r.d2c=r.r2c=r.d2l=r.r2l=Al,r.c2d=r.c2r=r.l2d=r.l2r=lo,r.d2p=r.r2p=function(b){return r.l2p(Al(b))},r.p2d=r.p2r=m,r.cleanPos=lo):r.type==="log"?(r.d2r=r.d2l=function(b,T){return o(Al(b),T)},r.r2d=r.r2c=function(b){return jf(Al(b))},r.d2c=r.r2l=Al,r.c2d=r.l2r=lo,r.c2r=o,r.l2d=jf,r.d2p=function(b,T){return r.l2p(r.d2r(b,T))},r.p2d=function(b){return jf(m(b))},r.r2p=function(b){return r.l2p(Al(b))},r.p2r=m,r.cleanPos=lo):r.type==="date"?(r.d2r=r.r2d=At.identity,r.d2c=r.r2c=r.d2l=r.r2l=i,r.c2d=r.c2r=r.l2d=r.l2r=l,r.d2p=r.r2p=function(b,T,h){return r.l2p(i(b,0,h))},r.p2d=r.p2r=function(b,T,h){return l(m(b),T,h)},r.cleanPos=function(b){return At.cleanDate(b,Ei,r.calendar)}):r.type==="category"?(r.d2c=r.d2l=s,r.r2d=r.c2d=r.l2d=u,r.d2r=r.d2l_noadd=p,r.r2c=function(b){var T=x(b);return T!==void 0?T:r.fraction2r(.5)},r.l2r=r.c2r=lo,r.r2l=x,r.d2p=function(b){return r.l2p(r.r2c(b))},r.p2d=function(b){return u(m(b))},r.r2p=r.d2p,r.p2r=m,r.cleanPos=function(b){return typeof b=="string"&&b!==""?b:lo(b)}):r.type==="multicategory"&&(r.r2d=r.c2d=r.l2d=u,r.d2r=r.d2l_noadd=p,r.r2c=function(b){var T=p(b);return T!==void 0?T:r.fraction2r(.5)},r.r2c_just_indices=c,r.l2r=r.c2r=lo,r.r2l=p,r.d2p=function(b){return r.l2p(r.r2c(b))},r.p2d=function(b){return u(m(b))},r.r2p=r.d2p,r.p2r=m,r.cleanPos=function(b){return Array.isArray(b)||typeof b=="string"&&b!==""?b:lo(b)},r.setupMultiCategory=function(b){var T=r._traceIndices,h,_,y=r._matchGroup;if(y&&r._categories.length===0){for(var v in y)if(v!==n){var A=t[A1.id2name(v)];T=T.concat(A._traceIndices)}}var d=[[0,{}],[0,{}]],D=[];for(h=0;hA[1]&&(_[v?0:1]=h,y[1]=A[1]),y[0]>=y[1])if(T!==void 0){var d=A[0]+1;h!==void 0&&(d=Math.min(d,A[1])),_[v?0:1]=r.l2r(d)}else h!==void 0&&(_[v?1:0]=r.l2r(A[1]-1))}},r.cleanRange=function(b,T){r._cleanRange(b,T),r.limitRange(b)},r._cleanRange=function(b,T){T||(T={}),b||(b="range");var h=At.nestedProperty(r,b).get(),_,y;if(r.type==="date"?y=At.dfltRange(r.calendar):a==="y"?y=C1.DFLTRANGEY:r._name==="realaxis"?y=[0,1]:y=T.dfltRange||C1.DFLTRANGEX,y=y.slice(),(r.rangemode==="tozero"||r.rangemode==="nonnegative")&&(y[0]=0),!h||h.length!==2){At.nestedProperty(r,b).set(y);return}var v=h[0]===null,A=h[1]===null;for(r.type==="date"&&!r.autorange&&(h[0]=At.cleanDate(h[0],Ei,r.calendar),h[1]=At.cleanDate(h[1],Ei,r.calendar)),_=0;_<2;_++)if(r.type==="date"){if(!At.isDateTime(h[_],r.calendar)){r[b]=y;break}if(r.r2l(h[0])===r.r2l(h[1])){var d=At.constrain(r.r2l(h[0]),At.MIN_MS+1e3,At.MAX_MS-1e3);h[0]=r.l2r(d-1e3),h[1]=r.l2r(d+1e3);break}}else{if(!oo(h[_]))if(!(v||A)&&oo(h[1-_]))h[_]=h[1-_]*(_?10:.1);else{r[b]=y;break}if(h[_]<-w1?h[_]=-w1:h[_]>w1&&(h[_]=w1),h[0]===h[1]){var D=Math.max(1,Math.abs(h[0]*1e-6));h[0]-=D,h[1]+=D}}},r.setScale=function(b){var T=t._size;if(r.overlaying){var h=A1.getFromId({_fullLayout:t},r.overlaying);r.domain=h.domain}var _=b&&r._r?"_r":"range",y=r.calendar;r.cleanRange(_);var v=r.r2l(r[_][0],y),A=r.r2l(r[_][1],y),d=a==="y";if(d?(r._offset=T.t+(1-r.domain[1])*T.h,r._length=T.h*(r.domain[1]-r.domain[0]),r._m=r._length/(v-A),r._b=-r._m*A):(r._offset=T.l+r.domain[0]*T.w,r._length=T.w*(r.domain[1]-r.domain[0]),r._m=r._length/(A-v),r._b=-r._m*v),r._rangebreaks=[],r._lBreaks=0,r._m2=0,r._B=[],r.rangebreaks){var D,E;if(r._rangebreaks=r.locateBreaks(Math.min(v,A),Math.max(v,A)),r._rangebreaks.length){for(D=0;DA&&(R=!R),R&&r._rangebreaks.reverse();var z=R?-1:1;for(r._m2=z*r._length/(Math.abs(A-v)-r._lBreaks),r._B.push(-r._m2*(d?A:v)),D=0;Dy&&(y+=7,v<_&&(v+=7));break;case k1:A=new Date(b);var R=A.getUTCHours(),z=A.getUTCMinutes(),I=A.getUTCSeconds(),P=A.getUTCMilliseconds();v=R+(z/60+I/3600+P/36e5),_>y&&(y+=24,v<_&&(v+=24));break;case"":v=b;break}if(v>=_&&v=_&&b=q.min&&(Vq.max&&(q.max=K),j=!1)}j&&A.push({min:V,max:K})}};for(h=0;h{"use strict";var kS=ot(),xm=rr(),sae=(mn(),or(Cn)).BADNUM,L1=xm.isArrayOrTypedArray,uae=xm.isDateTime,fae=xm.cleanNumber,SS=Math.round;ES.exports=function(r,t,n){var a=r,o=n.noMultiCategory;if(L1(a)&&!a.length)return"-";if(!o&&pae(a))return"multicategory";if(o&&Array.isArray(a[0])){for(var i=[],l=0;lo*2}function CS(e){return Math.max(1,(e-1)/1e3)}function dae(e,r){for(var t=e.length,n=CS(t),a=0,o=0,i={},l=0;la*2}function pae(e){return L1(e[0])&&L1(e[1])}});var tu=_e((d6e,NS)=>{"use strict";var gae=at(),FS=ot(),Sl=rr(),D1=(mn(),or(Cn)).FP_SAFE,yae=Er(),mae=Tt(),PS=hn(),bae=PS.getFromId,xae=PS.isLinked;NS.exports={applyAutorangeOptions:zS,getAutoRange:wm,makePadFn:Mm,doAutoRange:wae,findExtremes:Mae,concatExtremes:km};function wm(e,r){var t,n,a=[],o=e._fullLayout,i=Mm(o,r,0),l=Mm(o,r,1),u=km(e,r),s=u.min,f=u.max;if(s.length===0||f.length===0)return Sl.simpleMap(r.range,r.r2l);var c=s[0].val,p=f[0].val;for(t=1;t0&&(A=S-i(h)-l(_),A>b?d/A>T&&(y=h,v=_,T=d/A):d/S>T&&(y={val:h.val,nopad:1},v={val:_.val,nopad:1},T=d/S));function D(P,L){return Math.max(P,l(L))}if(c===p){var E=c-1,R=c+1;if(m)if(c===0)a=[0,1];else{var z=(c>0?f:s).reduce(D,0),I=c/(1-Math.min(.5,z/S));a=c>0?[0,I]:[I,0]}else k?a=[Math.max(0,E),Math.max(1,R)]:a=[E,R]}else m?(y.val>=0&&(y={val:0,nopad:1}),v.val<=0&&(v={val:0,nopad:1})):k&&(y.val-T*i(y)<0&&(y={val:0,nopad:1}),v.val<=0&&(v={val:1,nopad:1})),T=(v.val-y.val-LS(r,h.val,_.val))/(S-i(y)-l(v)),a=[y.val-T*i(y),v.val+T*l(v)];return a=zS(a,r),r.limitRange&&r.limitRange(),g&&a.reverse(),Sl.simpleMap(a,r.l2r||Number)}function LS(e,r,t){var n=0;if(e.rangebreaks)for(var a=e.locateBreaks(r,t),o=0;o0?t.ppadplus:t.ppadminus)||t.ppad||0),h=b((e._m>0?t.ppadminus:t.ppadplus)||t.ppad||0),_=b(t.vpadplus||t.vpad),y=b(t.vpadminus||t.vpad);if(!s){if(k=1/0,S=-1/0,u)for(c=0;c0&&(k=p),p>S&&p-D1&&(k=p),p>S&&p=d;c--)A(c);return{min:n,max:a,opts:t}}function Tm(e,r,t,n){IS(e,r,t,n,Tae)}function Am(e,r,t,n){IS(e,r,t,n,Aae)}function IS(e,r,t,n,a){for(var o=n.tozero,i=n.extrapad,l=!0,u=0;u=t&&(s.extrapad||!i)){l=!1;break}else a(r,s.val)&&s.pad<=t&&(i||!s.extrapad)&&(e.splice(u,1),u--)}if(l){var f=o&&r===0;e.push({val:r,pad:f?0:t,extrapad:f?!1:i})}}function RS(e){return FS(e)&&Math.abs(e)=r}function kae(e,r){var t=r.autorangeoptions;return t&&t.minallowed!==void 0&&R1(r,t.minallowed,t.maxallowed)?t.minallowed:t&&t.clipmin!==void 0&&R1(r,t.clipmin,t.clipmax)?Math.max(e,r.d2l(t.clipmin)):e}function Sae(e,r){var t=r.autorangeoptions;return t&&t.maxallowed!==void 0&&R1(r,t.minallowed,t.maxallowed)?t.maxallowed:t&&t.clipmax!==void 0&&R1(r,t.clipmin,t.clipmax)?Math.min(e,r.d2l(t.clipmax)):e}function R1(e,r,t){return r!==void 0&&t!==void 0?(r=e.d2l(r),t=e.d2l(t),r=u&&(o=u,t=u),i<=u&&(i=u,n=u)}}return t=kae(t,r),n=Sae(n,r),[t,n]}});var Ht=_e((g6e,oC)=>{"use strict";var ti=at(),tn=ot(),nu=Mn(),rc=Er(),Sr=rr(),au=Sr.strTranslate,Rs=Wn(),Cae=Qf(),tc=Wr(),za=Tt(),Eae=ri(),qS=Gy(),p6e=(wn(),or(_n)),On=(mn(),or(Cn)),Lae=On.ONEMAXYEAR,I1=On.ONEAVGYEAR,z1=On.ONEMINYEAR,Dae=On.ONEMAXQUARTER,Lm=On.ONEAVGQUARTER,N1=On.ONEMINQUARTER,Rae=On.ONEMAXMONTH,iu=On.ONEAVGMONTH,q1=On.ONEMINMONTH,Na=On.ONEWEEK,oa=On.ONEDAY,Cl=oa/2,uo=On.ONEHOUR,nc=On.ONEMIN,B1=On.ONESEC,Fae=On.ONEMILLI,Pae=On.ONEMICROSEC,Fs=On.MINUS_SIGN,U1=On.BADNUM,Dm={K:"zeroline"},Rm={K:"gridline",L:"path"},Fm={K:"minor-gridline",L:"path"},JS={K:"tick",L:"path"},BS={K:"tick",L:"text"},OS={width:["x","r","l","xl","xr"],height:["y","t","b","yt","yb"],right:["r","xr"],left:["l","xl"],top:["t","yt"],bottom:["b","yb"]},H1=(Xn(),or(Yn)),ec=H1.MID_SHIFT,Ps=H1.CAP_SHIFT,ac=H1.LINE_SPACING,Iae=H1.OPPOSITE_SIDE,O1=3,nr=oC.exports={};nr.setConvert=E1();var zae=_m(),fo=hn(),Nae=fo.idSort,qae=fo.isLinked;nr.id2name=fo.id2name;nr.name2id=fo.name2id;nr.cleanId=fo.cleanId;nr.list=fo.list;nr.listIds=fo.listIds;nr.getFromId=fo.getFromId;nr.getFromTrace=fo.getFromTrace;var $S=tu();nr.getAutoRange=$S.getAutoRange;nr.findExtremes=$S.findExtremes;var Bae=1e-4;function Nm(e){var r=(e[1]-e[0])*Bae;return[e[0]-r,e[1]+r]}function Oae(e,r,t){if(![t,e,r].every(tn)||t===0)return e;let n=Math.round((e-r)/t),a=r+n*t;return e!==a&&Math.abs(e-a)p+" domain")),u=u.concat(o||[]),f.length>i?(Sr.warn("Array attribute "+s+" has more entries than expected, truncating to "+i),f=f.slice(0,i)):f.length2e-6||((t-e._forceTick0)/e._minDtick%1+1.000001)%1>2e-6)&&(e._minDtick=0))};nr.saveRangeInitial=function(e,r){for(var t=nr.list(e,"",!0),n=!1,a=0;ac*.3||s(n)||s(a))){var p=t.dtick/2;e+=e+pi){var l=Number(t.slice(1));o.exactYears>i&&l%12===0?e=nr.tickIncrement(e,"M6","reverse")+oa*1.5:o.exactMonths>i?e=nr.tickIncrement(e,"M1","reverse")+oa*15.5:e-=Cl;var u=nr.tickIncrement(e,t);if(u<=n)return u}return e}nr.prepMinorTicks=function(e,r,t){var c,p;if(!((c=r.minor)!=null&&c.dtick)){delete e.dtick;var n=r.dtick&&tn(r._tmin),a;if(n){var o=nr.tickIncrement(r._tmin,r.dtick,!0);a=[r._tmin,o*.99+r._tmin*.01]}else{var i=Sr.simpleMap(r.range,r.r2l);a=[i[0],.8*i[0]+.2*i[1]]}if(e.range=Sr.simpleMap(a,r.l2r),e._isMinor=!0,nr.prepTicks(e,t),n){var l=tn(r.dtick),u=tn(e.dtick),s=l?r.dtick:+r.dtick.substring(1),f=u?e.dtick:+e.dtick.substring(1);l&&u?Sm(s,f)?s===2*Na&&f===2*oa&&(e.dtick=Na):s===2*Na&&f===3*oa?e.dtick=Na:s===Na&&!(r._input.minor||{}).nticks?e.dtick=oa:VS(s/f,2.5)?e.dtick=s/2:e.dtick=s:String(r.dtick).charAt(0)==="M"?u?e.dtick="M1":Sm(s,f)?s>=12&&f===2&&(e.dtick="M3"):e.dtick=r.dtick:String(e.dtick).charAt(0)==="L"?String(r.dtick).charAt(0)==="L"?Sm(s,f)||(e.dtick=VS(s/f,2.5)?r.dtick/2:r.dtick):e.dtick="D1":e.dtick==="D2"&&+r.dtick>1&&(e.dtick=1)}e.range=r.range}((p=r.minor)==null?void 0:p._tick0Init)===void 0&&(e.tick0=r.tick0)};function Sm(e,r){return Math.abs((e/r+.5)%1-.5)<.001}function VS(e,r){return Math.abs(e/r-1)<.001}nr.prepTicks=function(e,r){var t=Sr.simpleMap(e.range,e.r2l,void 0,void 0,r);if(e.tickmode==="auto"||!e.dtick){var n=e.nticks,a;n||(e.type==="category"||e.type==="multicategory"?(a=e.tickfont?Sr.bigFont(e.tickfont.size||12):15,n=e._length/a):(a=e._id.charAt(0)==="y"?40:80,n=Sr.constrain(e._length/a,4,9)+1),e._name==="radialaxis"&&(n*=2)),e.minor&&e.minor.tickmode!=="array"||e.tickmode==="array"&&(n*=100),e._roughDTick=Math.abs(t[1]-t[0])/n,nr.autoTicks(e,e._roughDTick),e._minDtick>0&&e.dtick0?(o=n-1,i=n):(o=n,i=n);var l=e[o].value,u=e[i].value,s=Math.abs(u-l),f=t||s,c=0;f>=z1?s>=z1&&s<=Lae?c=s:c=I1:t===Lm&&f>=N1?s>=N1&&s<=Dae?c=s:c=Lm:f>=q1?s>=q1&&s<=Rae?c=s:c=iu:t===Na&&f>=Na?c=Na:f>=oa?c=oa:t===Cl&&f>=Cl?c=Cl:t===uo&&f>=uo&&(c=uo);var p;c>=s&&(c=s,p=!0);var x=a+c;if(r.rangebreaks&&c>0){for(var g=84,w=0,M=0;MNa&&(c=s)}(c>0||n===0)&&(e[n].periodX=a+c/2)}}nr.calcTicks=function(r,t){for(var n=r.type,a=r.calendar,o=r.ticklabelstep,i=r.ticklabelmode==="period",l=r.range[0]>r.range[1],u=!r.ticklabelindex||Sr.isArrayOrTypedArray(r.ticklabelindex)?r.ticklabelindex:[r.ticklabelindex],s=Sr.simpleMap(r.range,r.r2l,void 0,void 0,t),f=s[1]=(b?0:1);T--){var h=!T;T?(r._dtickInit=r.dtick,r._tick0Init=r.tick0):b&&(r.minor._dtickInit=r.minor.dtick,r.minor._tick0Init=r.minor.tick0);var _=T?r:Sr.extendFlat({},r,b?r.minor:{minor:{}});if(h?nr.prepMinorTicks(_,r,t):nr.prepTicks(_,t),_.tickmode==="array"){T?(M=[],g=GS(r,!h)):(m=[],w=GS(r,!h));continue}if(_.tickmode==="sync"){M=[],g=Xae(r);continue}var y=Nm(s),v=y[0],A=y[1],d=tn(_.dtick),D=n==="log"&&!(d||_.dtick.charAt(0)==="L"),E=nr.tickFirst(_,t);if(T){if(r._tmin=E,E=A:z<=A;z=nr.tickIncrement(z,L,f,a)){if(T&&I++,_.rangebreaks&&!f){if(z=p)break}if(M.length>x||z===R)break;R=z;var B={value:Oae(z,F,L)};T?(z===E&&(B.first=!0),D&&z!==(z|0)&&(B.simpleLabel=!0),o>1&&I%o&&(B.skipLabel=!0),M.push(B)):(B.minor=!0,m.push(B))}}if(!m||m.length<3)u=!1;else{var O=(m[2].value-m[1].value)*(l?-1:1);yie(O,r.tickformat)||(u=!1,m=m.slice(1))}if(!u)k=M;else{var V=M.concat(m);i&&M.length&&(V=V.slice(1)),V=V.sort(function(le,Y){return le.value-Y.value}).filter(function(le,Y,$){return Y===0||le.value!==$[Y-1].value});var K=V.map(function(le,Y){return le.minor===void 0&&!le.skipLabel?Y:null}).filter(function(le){return le!==null});K.forEach(function(le){u.map(function(Y){var $=le+Y;$>=0&&$-1;re--){if(M[re].drop){M.splice(re,1);continue}M[re].value=Em(M[re].value,r);var ce=r.c2p(M[re].value);(ue?ae>ce-ee:aep||pep&&($.periodX=p),pea&&ga&&MI1)r/=I1,n=a(10),e.dtick="M"+12*so(r,n,F1);else if(o>iu)r/=iu,e.dtick="M"+so(r,1,YS);else if(o>oa){if(e.dtick=so(r,oa,e._hasDayOfWeekBreaks?[1,2,7,14]:Wae),!t){var i=nr.getTickFormat(e),l=e.ticklabelmode==="period";l&&(e._rawTick0=e.tick0),/%[uVW]/.test(i)?e.tick0=Sr.dateTick0(e.calendar,2):e.tick0=Sr.dateTick0(e.calendar,1),l&&(e._dowTick0=e.tick0)}}else o>uo?e.dtick=so(r,uo,YS):o>nc?e.dtick=so(r,nc,XS):o>B1?e.dtick=so(r,B1,XS):(n=a(10),e.dtick=so(r,n,F1))}else if(e.type==="log"){e.tick0=0;var u=Sr.simpleMap(e.range,e.r2l);if(e._isMinor&&(r*=1.5),r>.7)e.dtick=Math.ceil(r);else if(Math.abs(u[1]-u[0])<1){var s=1.5*Math.abs((u[1]-u[0])/r);r=Math.abs(Math.pow(10,u[1])-Math.pow(10,u[0]))/s,n=a(10),e.dtick="L"+so(r,n,F1)}else e.dtick=r>.3?"D2":"D1"}else e.type==="category"||e.type==="multicategory"?(e.tick0=0,e.dtick=Math.ceil(Math.max(r,1))):Um(e)?(e.tick0=0,n=1,e.dtick=so(r,n,Zae)):(e.tick0=0,n=a(10),e.dtick=so(r,n,F1));if(e.dtick===0&&(e.dtick=1),!tn(e.dtick)&&typeof e.dtick!="string"){var f=e.dtick;throw e.dtick=1,"ax.dtick error: "+String(f)}};function eC(e){var r=e.dtick;if(e._tickexponent=0,!tn(r)&&typeof r!="string"&&(r=1),(e.type==="category"||e.type==="multicategory")&&(e._tickround=null),e.type==="date"){var t=e.r2l(e.tick0),n=e.l2r(t).replace(/(^-|i)/g,""),a=n.length;if(String(r).charAt(0)==="M")a>10||n.slice(5)!=="01-01"?e._tickround="d":e._tickround=+r.slice(1)%12===0?"y":"m";else if(r>=oa&&a<=10||r>=oa*15)e._tickround="d";else if(r>=nc&&a<=16||r>=uo)e._tickround="M";else if(r>=B1&&a<=19||r>=nc)e._tickround="S";else{var o=e.l2r(t+r).replace(/^-/,"").length;e._tickround=Math.max(a,o)-20,e._tickround<0&&(e._tickround=4)}}else if(tn(r)||r.charAt(0)==="L"){var i=e.range.map(e.r2d||Number);tn(r)||(r=Number(r.slice(1))),e._tickround=2-Math.floor(Math.log(r)/Math.LN10+.01);var l=Math.max(Math.abs(i[0]),Math.abs(i[1])),u=Math.floor(Math.log(l)/Math.LN10+.01),s=e.minexponent===void 0?3:e.minexponent;Math.abs(u)>s&&(ou(e.exponentformat)&&e.exponentformat!=="SI extended"&&!qm(u)||ou(e.exponentformat)&&e.exponentformat==="SI extended"&&!Bm(u)?e._tickexponent=3*Math.round((u-1)/3):e._tickexponent=u)}else e._tickround=null}nr.tickIncrement=function(e,r,t,n){var a=t?-1:1;if(tn(r))return Sr.increment(e,a*r);var o=r.charAt(0),i=a*Number(r.slice(1));if(o==="M")return Sr.incrementMonth(e,i,n);if(o==="L")return Math.log(Math.pow(10,e)+i)/Math.LN10;if(o==="D"){var l=r==="D2"?jS:QS,u=e+a*.01,s=Sr.roundUp(Sr.mod(u,1),l,t);return Math.floor(u)+Math.log(ti.round(Math.pow(10,s),1))/Math.LN10}throw"unrecognized dtick "+String(r)};nr.tickFirst=function(e,r){var t=e.r2l||Number,n=Sr.simpleMap(e.range,t,void 0,void 0,r),a=n[1]=0&&b<=e._length?S:null};if(u&&Sr.isArrayOrTypedArray(e.ticktext)){var g=Sr.simpleMap(e.range,e.r2l),w=(Math.abs(g[1]-g[0])-(e._lBreaks||0))/1e4;for(p=0;p"+l;else{var s=oc(e),f=e._trueSide||e.side;(!s&&f==="top"||s&&f==="bottom")&&(i+="
")}r.text=i}function $ae(e,r,t,n,a){var o=e.dtick,i=r.x,l=e.tickformat,u=typeof o=="string"&&o.charAt(0);if(a==="never"&&(a=""),n&&u!=="L"&&(o="L3",u="L"),l||u==="L")r.text=ic(Math.pow(10,i),e,a,n);else if(tn(o)||u==="D"&&(e.minorloglabels==="complete"||Sr.mod(i+.01,1)<.1)){var s;e.minorloglabels==="complete"&&!(Sr.mod(i+.01,1)<.1)&&(s=!0,r.fontSize*=.75);var f=Math.pow(10,i).toExponential(0),c=f.split("e"),p=+c[1],x=Math.abs(p),g=e.exponentformat;g==="power"||ou(g)&&g!=="SI extended"&&qm(p)||ou(g)&&g==="SI extended"&&Bm(p)?(r.text=c[0],x>0&&(r.text+="x10"),r.text==="1x10"&&(r.text="10"),p!==0&&p!==1&&(r.text+=""+(p>0?"":Fs)+x+""),r.fontSize*=1.25):(g==="e"||g==="E")&&x>2?r.text=c[0]+g+(p>0?"+":Fs)+x:(r.text=ic(Math.pow(10,i),e,"","fakehover"),o==="D1"&&e._id.charAt(0)==="y"&&(r.dy-=r.fontSize/6))}else if(u==="D")r.text=e.minorloglabels==="none"?"":String(Math.round(Math.pow(10,Sr.mod(i,1)))),r.fontSize*=.75;else throw"unrecognized dtick "+String(o);if(e.dtick==="D1"){var w=String(r.text).charAt(0);(w==="0"||w==="1")&&(e._id.charAt(0)==="y"?r.dx-=r.fontSize/4:(r.dy+=r.fontSize/2,r.dx+=(e.range[1]>e.range[0]?1:-1)*r.fontSize*(i<0?.5:.25)))}}function Kae(e,r){var t=e._categories[Math.round(r.x)];t===void 0&&(t=""),r.text=String(t)}function Qae(e,r,t){var n=Math.round(r.x),a=e._categories[n]||[],o=a[1]===void 0?"":String(a[1]),i=a[0]===void 0?"":String(a[0]);t?r.text=i+" - "+o:(r.text=o,r.text2=i)}function jae(e,r,t,n,a){a==="never"?a="":e.showexponent==="all"&&Math.abs(r.x/e.dtick)<1e-6&&(a="hide"),r.text=ic(r.x,e,a,n)}function eie(e,r,t,n,a){if(e.thetaunit==="radians"&&!t){var o=r.x/180;if(o===0)r.text="0";else{var i=rie(o);if(i[1]>=100)r.text=ic(Sr.deg2rad(r.x),e,a,n);else{var l=r.x<0;i[1]===1?i[0]===1?r.text="\u03C0":r.text=i[0]+"\u03C0":r.text=["",i[0],"","\u2044","",i[1],"","\u03C0"].join(""),l&&(r.text=Fs+r.text)}}}else r.text=ic(r.x,e,a,n)}function rie(e){function r(l,u){return Math.abs(l-u)<=1e-6}function t(l,u){return r(u,0)?l:t(u,l%u)}function n(l){for(var u=1;!r(Math.round(l*u)/u,l);)u*=10;return u}var a=n(e),o=e*a,i=Math.abs(t(o,a));return[Math.round(o/i),Math.round(a/i)]}var tC=["f","p","n","\u03BC","m","","k","M","G","T"],tie=["q","r","y","z","a",...tC,"P","E","Z","Y","R","Q"],ou=e=>["SI","SI extended","B"].includes(e);function qm(e){return e>14||e<-15}function Bm(e){return e>32||e<-30}function nie(e,r){return ou(r)?!!(r==="SI extended"&&Bm(e)||r!=="SI extended"&&qm(e)):!1}function ic(e,r,t,n){var a=e<0,o=r._tickround,i=t||r.exponentformat||"B",l=r._tickexponent,u=nr.getTickFormat(r),s=r.separatethousands;if(n){var f={exponentformat:i,minexponent:r.minexponent,dtick:r.showexponent==="none"?r.dtick:tn(e)&&Math.abs(e)||1,range:r.showexponent==="none"?r.range.map(r.r2d):[0,e||1]};eC(f),o=(Number(f._tickround)||0)+4,l=f._tickexponent,r.hoverformat&&(u=r.hoverformat)}if(u)return r._numFormat(u)(e).replace(/-/g,Fs);i==="none"&&(l=0),e=Math.abs(e);let c=Math.pow(10,-o)/2;if(e"+p+"":i==="B"&&l===9?e+="B":ou(i)&&(e+=i==="SI extended"?tie[l/3+10]:tC[l/3+5])}return a?Fs+e:e}nr.getTickFormat=function(e){var r;function t(u){return typeof u!="string"?u:Number(u.replace("M",""))*iu}function n(u,s){var f=["L","D"];if(typeof u==typeof s){if(typeof u=="number")return u-s;var c=f.indexOf(u.charAt(0)),p=f.indexOf(s.charAt(0));return c===p?Number(u.replace(/(L|D)/g,""))-Number(s.replace(/(L|D)/g,"")):c-p}else return typeof u=="number"?1:-1}function a(u,s,f){var c=f||function(g){return g},p=s[0],x=s[1];return(!p&&typeof p!="number"||c(p)<=c(u))&&(!x&&typeof x!="number"||c(x)>=c(u))}function o(u,s){var f=s[0]===null,c=s[1]===null,p=n(u,s[0])>=0,x=n(u,s[1])<=0;return(f||p)&&(c||x)}var i,l;if(e.tickformatstops&&e.tickformatstops.length>0)switch(e.type){case"date":case"linear":{for(r=0;r=0&&a.unshift(a.splice(f,1).shift())}});var l={false:{left:0,right:0}};return Sr.syncOrAsync(a.map(function(u){return function(){if(u){var s=nr.getFromId(e,u);t||(t={}),t.axShifts=l,t.overlayingShiftedAx=i;var f=nr.drawOne(e,s,t);return s._shiftPusher&&zm(s,s._fullDepth||0,l,!0),s._r=s.range.slice(),s._rl=Sr.simpleMap(s._r,s.r2l),f}}}))};nr.drawOne=function(e,r,t){t=t||{};var n=t.axShifts||{},a=t.overlayingShiftedAx||[],o,i,l;r.setScale();var u=e._fullLayout,s=r._id,f=s.charAt(0),c=nr.counterLetter(s),p=u._plots[r._mainSubplot],x=r.zerolinelayer==="above traces";if(!p)return;if(r._shiftPusher=r.autoshift||a.indexOf(r._id)!==-1||a.indexOf(r.overlaying)!==-1,r._shiftPusher&r.anchor==="free"){var g=r.linewidth/2||0;r.ticks==="inside"&&(g+=r.ticklen),zm(r,g,n,!0),zm(r,r.shift||0,n,!1)}(t.skipTitle!==!0||r._shift===void 0)&&(r._shift=gie(r,n));var w=p[f+"axislayer"],M=r._mainLinePosition,m=M+=r._shift,k=r._mainMirrorPosition,S=r._vals=nr.calcTicks(r),b=[r.mirror,m,k].join("_");for(o=0;o0?Y.bottom-Ce:0,le))));var ve=0,he=0;if(r._shiftPusher&&(ve=Math.max(le,Y.height>0?ge==="l"?Ce-Y.left:Y.right-Ce:0),r.title.text!==u._dfltTitle[f]&&(he=(r._titleStandoff||0)+(r._titleScoot||0),ge==="l"&&(he+=ZS(r))),r._fullDepth=Math.max(ve,he)),r.automargin){$={x:0,y:0,r:0,l:0,t:0,b:0};var me=[0,1],be=typeof r._shift=="number"?r._shift:0;if(f==="x"){if(ge==="b"?$[ge]=r._depth:($[ge]=r._depth=Math.max(Y.width>0?Ce-Y.top:0,le),me.reverse()),Y.width>0){var ye=Y.right-(r._offset+r._length);ye>0&&($.xr=1,$.r=ye);var de=r._offset-Y.left;de>0&&($.xl=0,$.l=de)}}else if(ge==="l"?(r._depth=Math.max(Y.height>0?Ce-Y.left:0,le),$[ge]=r._depth-be):(r._depth=Math.max(Y.height>0?Y.right-Ce:0,le),$[ge]=r._depth+be,me.reverse()),Y.height>0){var xe=Y.bottom-(r._offset+r._length);xe>0&&($.yb=0,$.b=xe);var Ae=r._offset-Y.top;Ae>0&&($.yt=1,$.t=Ae)}$[c]=r.anchor==="free"?r.position:r._anchorAxis.domain[me[0]],r.title.text!==u._dfltTitle[f]&&($[ge]+=ZS(r)+(r.title.standoff||0)),r.mirror&&r.anchor!=="free"&&(pe={x:0,y:0,r:0,l:0,t:0,b:0},pe[Le]=r.linewidth,r.mirror&&r.mirror!==!0&&(pe[Le]+=le),r.mirror===!0||r.mirror==="ticks"?pe[c]=r._anchorAxis.domain[me[1]]:(r.mirror==="all"||r.mirror==="allticks")&&(pe[c]=[r._counterDomainMin,r._counterDomainMax][me[1]]))}Se&&(oe=rc.getComponentMethod("rangeslider","autoMarginOpts")(e,r)),typeof r.automargin=="string"&&(WS($,r.automargin),WS(pe,r.automargin)),nu.autoMargin(e,Om(r),$),nu.autoMargin(e,aC(r),pe),nu.autoMargin(e,iC(r),oe)}),Sr.syncOrAsync(Te)}};function WS(e,r){if(e){var t=Object.keys(OS).reduce(function(n,a){return r.indexOf(a)!==-1&&OS[a].forEach(function(o){n[o]=1}),n},{});Object.keys(e).forEach(function(n){t[n]||(n.length===1?e[n]=0:delete e[n])})}}function aie(e,r){var t=[],n,a=function(o,i){var l=o.xbnd[i];l!==null&&t.push(Sr.extendFlat({},o,{x:l}))};if(r.length){for(n=0;ne.range[1],l=e.ticklabelposition&&e.ticklabelposition.indexOf("inside")!==-1,u=!l;if(t){var s=i?-1:1;t=t*s}if(n){var f=e.side,c=l&&(f==="top"||f==="left")||u&&(f==="bottom"||f==="right")?1:-1;n=n*c}return e._id.charAt(0)==="x"?function(p){return au(a+e._offset+e.l2p(Pm(p))+t,o+n)}:function(p){return au(o+n,a+e._offset+e.l2p(Pm(p))+t)}};function Pm(e){return e.periodX!==void 0?e.periodX:e.x}function sie(e){var r=e.ticklabelposition||"",t=e.tickson||"",n=function(g){return r.indexOf(g)!==-1},a=n("top"),o=n("left"),i=n("right"),l=n("bottom"),u=n("inside"),s=t!=="boundaries"&&(l||o||a||i);if(!s&&!u)return[0,0];var f=e.side,c=s?(e.tickwidth||0)/2:0,p=O1,x=e.tickfont?e.tickfont.size:12;return(l||a)&&(c+=x*Ps,p+=(e.linewidth||0)/2),(o||i)&&(c+=(e.linewidth||0)/2,p+=O1),u&&f==="top"&&(p-=x*(1-Ps)),(o||a)&&(c=-c),(f==="bottom"||f==="right")&&(p=-p),[s?c:0,u?p:0]}nr.makeTickPath=function(e,r,t,n){n||(n={});var a=n.minor;if(a&&!e.minor)return"";var o=n.len!==void 0?n.len:a?e.minor.ticklen:e.ticklen,i=e._id.charAt(0),l=(e.linewidth||1)/2;return i==="x"?"M0,"+(r+l*t)+"v"+o*t:"M"+(r+l*t)+",0h"+o*t};nr.makeLabelFns=function(e,r,t){var n=e.ticklabelposition||"",a=e.tickson||"",o=function(E){return n.indexOf(E)!==-1},i=o("top"),l=o("left"),u=o("right"),s=o("bottom"),f=a!=="boundaries"&&(s||l||i||u),c=o("inside"),p=n==="inside"&&e.ticks==="inside"||!c&&e.ticks==="outside"&&a!=="boundaries",x=0,g=0,w=p?e.ticklen:0;if(c?w*=-1:f&&(w=0),p&&(x+=w,t)){var M=Sr.deg2rad(t);x=w*Math.cos(M)+1,g=w*Math.sin(M)}e.showticklabels&&(p||e.showline)&&(x+=.2*e.tickfont.size),x+=(e.linewidth||1)/2*(c?-1:1);var m={labelStandoff:x,labelShift:g},k,S,b,T,h=0,_=e.side,y=e._id.charAt(0),v=e.tickangle,A;if(y==="x")A=!c&&_==="bottom"||c&&_==="top",T=A?1:-1,c&&(T*=-1),k=g*T,S=r+x*T,b=A?1:-.2,Math.abs(v)===90&&(c?b+=ec:v===-90&&_==="bottom"?b=Ps:v===90&&_==="top"?b=ec:b=.5,h=ec/2*(v/90)),m.xFn=function(E){return E.dx+k+h*E.fontSize},m.yFn=function(E){return E.dy+S+E.fontSize*b},m.anchorFn=function(E,R){if(f){if(l)return"end";if(u)return"start"}return!tn(R)||R===0||R===180?"middle":R*T<0!==c?"end":"start"},m.heightFn=function(E,R,z){return R<-60||R>60?-.5*z:e.side==="top"!==c?-z:0};else if(y==="y"){if(A=!c&&_==="left"||c&&_==="right",T=A?1:-1,c&&(T*=-1),k=x,S=g*T,b=0,!c&&Math.abs(v)===90&&(v===-90&&_==="left"||v===90&&_==="right"?b=Ps:b=.5),c){var d=tn(v)?+v:0;if(d!==0){var D=Sr.deg2rad(d);h=Math.abs(Math.sin(D))*Ps*T,b=0}}m.xFn=function(E){return E.dx+r-(k+E.fontSize*b)*T+h*E.fontSize},m.yFn=function(E){return E.dy+S+E.fontSize*ec},m.anchorFn=function(E,R){return tn(R)&&Math.abs(R)===90?"middle":A?"end":"start"},m.heightFn=function(E,R,z){return e.side==="right"&&(R*=-1),R<-30?-z:R<30?-.5*z:0}}return m};function V1(e){return[e.text,e.x,e.axInfo,e.font,e.fontSize,e.fontColor].join("_")}nr.drawTicks=function(e,r,t){t=t||{};var n=r._id+"tick",a=[].concat(r.minor&&r.minor.ticks?t.vals.filter(function(i){return i.minor&&!i.noTick}):[]).concat(r.ticks?t.vals.filter(function(i){return!i.minor&&!i.noTick}):[]),o=t.layer.selectAll("path."+n).data(a,V1);o.exit().remove(),o.enter().append("path").classed(n,1).classed("ticks",1).classed("crisp",t.crisp!==!1).each(function(i){return tc.stroke(ti.select(this),i.minor?r.minor.tickcolor:r.tickcolor)}).style("stroke-width",function(i){return za.crispRound(e,i.minor?r.minor.tickwidth:r.tickwidth,1)+"px"}).attr("d",t.path).style("display",null),G1(r,[JS]),o.attr("transform",t.transFn)};nr.drawGrid=function(e,r,t){if(t=t||{},r.tickmode!=="sync"){var n=r._id+"grid",a=r.minor&&r.minor.showgrid,o=a?t.vals.filter(function(m){return m.minor}):[],i=r.showgrid?t.vals.filter(function(m){return!m.minor}):[],l=t.counterAxis;if(l&&nr.shouldShowZeroLine(e,r,l))for(var u=r.tickmode==="array",s=0;s=0;g--){var w=g?p:x;if(w){var M=w.selectAll("path."+n).data(g?i:o,V1);M.exit().remove(),M.enter().append("path").classed(n,1).classed("crisp",t.crisp!==!1),M.attr("transform",t.transFn).attr("d",t.path).each(function(m){return tc.stroke(ti.select(this),m.minor?r.minor.gridcolor:r.gridcolor||"#ddd")}).style("stroke-dasharray",function(m){return za.dashStyle(m.minor?r.minor.griddash:r.griddash,m.minor?r.minor.gridwidth:r.gridwidth)}).style("stroke-width",function(m){return(m.minor?c:r._gw)+"px"}).style("display",null),typeof t.path=="function"&&M.attr("d",t.path)}}G1(r,[Rm,Fm])}};nr.drawZeroLine=function(e,r,t){t=t||t;var n=r._id+"zl",a=nr.shouldShowZeroLine(e,r,t.counterAxis),o=t.layer.selectAll("path."+n).data(a?[{x:0,id:r._id}]:[]);o.exit().remove(),o.enter().append("path").classed(n,1).classed("zl",1).classed("crisp",t.crisp!==!1).each(function(){t.layer.selectAll("path").sort(function(i,l){return Nae(i.id,l.id)})}),o.attr("transform",t.transFn).attr("d",t.path).call(tc.stroke,r.zerolinecolor||tc.defaultLine).style("stroke-width",za.crispRound(e,r.zerolinewidth,r._gw||1)+"px").style("display",null),G1(r,[Dm])};nr.drawLabels=function(e,r,t){t=t||{};var n=e._fullLayout,a=r._id,o=r.zerolinelayer==="above traces",i=t.cls||a+"tick",l=t.vals.filter(function(F){return F.text}),u=t.labelFns,s=t.secondary?0:r.tickangle,f=(r._prevTickAngles||{})[i],c=t.layer.selectAll("g."+i).data(r.showticklabels?l:[],V1),p=[];c.enter().append("g").classed(i,1).append("text").attr("text-anchor","middle").each(function(F){var B=ti.select(this),O=e._promises.length;B.call(Rs.positionText,u.xFn(F),u.yFn(F)).call(za.font,{family:F.font,size:F.fontSize,color:F.fontColor,weight:F.fontWeight,style:F.fontStyle,variant:F.fontVariant,textcase:F.fontTextcase,lineposition:F.fontLineposition,shadow:F.fontShadow}).text(F.text).call(Rs.convertToTspans,e),e._promises[O]?p.push(e._promises.pop().then(function(){x(B,s)})):x(B,s)}),G1(r,[BS]),c.exit().remove(),t.repositionOnUpdate&&c.each(function(F){ti.select(this).select("text").call(Rs.positionText,u.xFn(F),u.yFn(F))});function x(F,B){F.each(function(O){var V=ti.select(this),K=V.select(".text-math-group"),j=u.anchorFn(O,B),G=t.transFn.call(V.node(),O)+(tn(B)&&+B!=0?" rotate("+B+","+u.xFn(O)+","+(u.yFn(O)-O.fontSize/2)+")":""),q=Rs.lineCount(V),J=ac*O.fontSize,te=u.heightFn(O,tn(B)?+B:0,(q-1)*J);if(te&&(G+=au(0,te)),K.empty()){var Z=V.select("text");Z.attr({transform:G,"text-anchor":j}),Z.style("display",null),r._adjustTickLabelsOverflow&&r._adjustTickLabelsOverflow()}else{var ie=za.bBox(K.node()).width,Q=ie*{end:-.5,start:.5}[j];K.attr("transform",G+au(Q,0))}})}r._adjustTickLabelsOverflow=function(){var F=r.ticklabeloverflow;if(!(!F||F==="allow")){var B=F.indexOf("hide")!==-1,O=r._id.charAt(0)==="x",V=0,K=O?e._fullLayout.width:e._fullLayout.height;if(F.indexOf("domain")!==-1){var j=Sr.simpleMap(r.range,r.r2l);V=r.l2p(j[0])+r._offset,K=r.l2p(j[1])+r._offset}var G=Math.min(V,K),q=Math.max(V,K),J=r.side,te=1/0,Z=-1/0;c.each(function(ue){var ee=ti.select(this),ae=ee.select(".text-math-group");if(ae.empty()){var ce=za.bBox(ee.node()),Te=0;O?(ce.right>q||ce.leftq||ce.top+(r.tickangle?0:ue.fontSize/4)r["_visibleLabelMin_"+j._id]?ee.style("display","none"):q.K==="tick"&&!G&&ee.node().style.display!=="none"&&ee.style("display",null)})})})})},x(c,f+1?f:s);function g(){return p.length&&Promise.all(p)}var w=null;function M(){if(x(c,s),l.length&&r.autotickangles&&(r.type!=="log"||String(r.dtick).charAt(0)!=="D")){w=r.autotickangles[0];var F=0,B=[],O,V=1;c.each(function($){F=Math.max(F,$.fontSize);var pe=r.l2p($.x),oe=Im(this),ve=za.bBox(oe.node());V=Math.max(V,Rs.lineCount(oe)),B.push({top:0,bottom:10,height:10,left:pe-ve.width/2,right:pe+ve.width/2+2,width:ve.width+2})});var K=(r.tickson==="boundaries"||r.showdividers)&&!t.secondary,j=l.length,G=Math.abs((l[j-1].x-l[0].x)*r._m)/(j-1),q=K?G/2:G,J=K?r.ticklen:F*1.25*V,te=Math.sqrt(Math.pow(q,2)+Math.pow(J,2)),Z=q/te,ie=r.autotickangles.map(function($){return $*Math.PI/180}),Q=ie.find(function($){return Math.abs(Math.cos($))<=Z});Q===void 0&&(Q=ie.reduce(function($,pe){return Math.abs(Math.cos($))I*z&&(D=z,v[y]=A[y]=E[y])}var P=Math.abs(D-d);P-T>0?(P-=T,T*=1+T/P):T=0,r._id.charAt(0)!=="y"&&(T=-T),v[_]=S.p2r(S.r2p(A[_])+h*T),S.autorange==="min"||S.autorange==="max reversed"?(v[0]=null,S._rangeInitial0=void 0,S._rangeInitial1=void 0):(S.autorange==="max"||S.autorange==="min reversed")&&(v[1]=null,S._rangeInitial0=void 0,S._rangeInitial1=void 0),n._insideTickLabelsUpdaterange[S._name+".range"]=v}var L=Sr.syncOrAsync(m);return L&&L.then&&e._promises.push(L),L};function uie(e,r,t){var n=r._id+"divider",a=t.vals,o=t.layer.selectAll("path."+n).data(a,V1);o.exit().remove(),o.enter().insert("path",":first-child").classed(n,1).classed("crisp",1).call(tc.stroke,r.dividercolor).style("stroke-width",za.crispRound(e,r.dividerwidth,1)+"px"),o.attr("transform",t.transFn).attr("d",t.path)}nr.getPxPosition=function(e,r){var t=e._fullLayout._size,n=r._id.charAt(0),a=r.side,o;if(r.anchor!=="free"?o=r._anchorAxis:n==="x"?o={_offset:t.t+(1-(r.position||0))*t.h,_length:0}:n==="y"&&(o={_offset:t.l+(r.position||0)*t.w+r._shift,_length:0}),a==="top"||a==="left")return o._offset;if(a==="bottom"||a==="right")return o._offset+o._length};function ZS(e){var r=e.title.font.size,t=(e.title.text.match(Rs.BR_TAG_ALL)||[]).length;return e.title.hasOwnProperty("standoff")?r*(Ps+t*ac):t?r*(t+1)*ac:r}function fie(e,r){var t=e._fullLayout,n=r._id,a=n.charAt(0),o=r.title.font.size,i,l=(r.title.text.match(Rs.BR_TAG_ALL)||[]).length;if(r.title.hasOwnProperty("standoff"))r.side==="bottom"||r.side==="right"?i=r._depth+r.title.standoff+o*Ps:(r.side==="top"||r.side==="left")&&(i=r._depth+r.title.standoff+o*(ec+l*ac));else{var u=oc(r);if(r.type==="multicategory")i=r._depth;else{var s=1.5*o;u&&(s=.5*o,r.ticks==="outside"&&(s+=r.ticklen)),i=10+s+(r.linewidth?r.linewidth-1:0)}u||(a==="x"?i+=r.side==="top"?o*(r.showticklabels?1:0):o*(r.showticklabels?1.5:.5):i+=r.side==="right"?o*(r.showticklabels?1:.5):o*(r.showticklabels?.5:0))}var f=nr.getPxPosition(e,r),c,p,x;a==="x"?(p=r._offset+r._length/2,x=r.side==="top"?f-i:f+i):(x=r._offset+r._length/2,p=r.side==="right"?f+i:f-i,c={rotate:"-90",offset:0});var g;if(r.type!=="multicategory"){var w=r._selections[r._id+"tick"];if(g={selection:w,side:r.side},w&&w.node()&&w.node().parentNode){var M=za.getTranslate(w.node().parentNode);g.offsetLeft=M.x,g.offsetTop=M.y}r.title.hasOwnProperty("standoff")&&(g.pad=0)}return r._titleStandoff=i,Cae.draw(e,n+"title",{propContainer:r,propName:r._name+".title.text",placeholder:t._dfltTitle[a],avoid:g,transform:c,attributes:{x:p,y:x,"text-anchor":"middle"}})}nr.shouldShowZeroLine=function(e,r,t){var n=Sr.simpleMap(r.range,r.r2l);return n[0]*n[1]<=0&&r.zeroline&&(r.type==="linear"||r.type==="-")&&!(r.rangebreaks&&r.maskBreaks(0)===U1)&&(nC(r,0)||!cie(e,r,t,n)||vie(e,r))};nr.clipEnds=function(e,r){return r.filter(function(t){return nC(e,t.x)})};function nC(e,r){var t=e.l2p(r);return t>1&&t1)for(a=1;a=a.min&&e=Pae:/%L/.test(r)?e>=Fae:/%[SX]/.test(r)?e>=B1:/%M/.test(r)?e>=nc:/%[HI]/.test(r)?e>=uo:/%p/.test(r)?e>=Cl:/%[Aadejuwx]/.test(r)?e>=oa:/%[UVW]/.test(r)?e>=Na:/%[Bbm]/.test(r)?e>=q1:/%[q]/.test(r)?e>=N1:/%[Yy]/.test(r)?e>=z1:!0}});var sC=_e((y6e,lC)=>{"use strict";lC.exports=function(r,t,n){var a,o;if(n){var i=t==="reversed"||t==="min reversed"||t==="max reversed";a=n[i?1:0],o=n[i?0:1]}var l=r("autorangeoptions.minallowed",o===null?a:void 0),u=r("autorangeoptions.maxallowed",a===null?o:void 0);l===void 0&&r("autorangeoptions.clipmin"),u===void 0&&r("autorangeoptions.clipmax"),r("autorangeoptions.include")}});var Hm=_e((m6e,uC)=>{"use strict";var mie=sC();uC.exports=function(r,t,n,a){var o=t._template||{},i=t.type||o.type||"-";n("minallowed"),n("maxallowed");var l=n("range");if(!l){var u;!a.noInsiderange&&i!=="log"&&(u=n("insiderange"),u&&(u[0]===null||u[1]===null)&&(t.insiderange=!1,u=void 0),u&&(l=n("range",u)))}var s=t.getAutorangeDflt(l,a),f=n("autorange",s),c;l&&(l[0]===null&&l[1]===null||(l[0]===null||l[1]===null)&&(f==="reversed"||f===!0)||l[0]!==null&&(f==="min"||f==="max reversed")||l[1]!==null&&(f==="max"||f==="min reversed"))&&(l=void 0,delete t.range,t.autorange=!0,c=!0),c||(s=t.getAutorangeDflt(l,a),f=n("autorange",s)),f&&(mie(n,f,l),(i==="linear"||i==="-")&&n("rangemode")),t.cleanRange()}});var cC=_e((b6e,fC)=>{var bie={left:0,top:0};fC.exports=xie;function xie(e,r,t){r=r||e.currentTarget||e.srcElement,Array.isArray(t)||(t=[0,0]);var n=e.clientX||0,a=e.clientY||0,o=_ie(r);return t[0]=n-o.left,t[1]=a-o.top,t}function _ie(e){return e===window||e===document||e===document.body?bie:e.getBoundingClientRect()}});var Y1=_e((x6e,vC)=>{"use strict";var wie=yy();function Mie(){var e=!1;try{var r=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("test",null,r),window.removeEventListener("test",null,r)}catch(t){e=!1}return e}vC.exports=wie&&Mie()});var dC=_e((_6e,hC)=>{"use strict";hC.exports=function(r,t,n,a,o){var i=(r-n)/(a-n),l=i+t/(a-n),u=(i+l)/2;return o==="left"||o==="bottom"?i:o==="center"||o==="middle"?u:o==="right"||o==="top"?l:i<2/3-u?i:l>4/3-u?l:u}});var yC=_e((w6e,gC)=>{"use strict";var pC=rr(),Tie=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];gC.exports=function(r,t,n,a){return n==="left"?r=0:n==="center"?r=1:n==="right"?r=2:r=pC.constrain(Math.floor(r*3),0,2),a==="bottom"?t=0:a==="middle"?t=1:a==="top"?t=2:t=pC.constrain(Math.floor(t*3),0,2),Tie[t][r]}});var bC=_e((M6e,mC)=>{"use strict";var Aie=Vf(),kie=Wh(),Sie=If().getGraphDiv,Cie=(gf(),or(pf)),Vm=mC.exports={};Vm.wrapped=function(e,r,t){var o;e=Sie(e),e._fullLayout&&kie.clear(e._fullLayout._uid+Cie.HOVERID);let n=e._hoverdata;Vm.raw(e,r,t)&&e._hoverAnywhereActive&&(e._hoverAnywhereActive=!1,(o=e._fullLayout)!=null&&o.hoveranywhere&&(r!=null&&r.target)&&!n&&e.emit("plotly_unhover",{event:r,points:[]}))};Vm.raw=function(r,t){var n=r._fullLayout,a=r._hoverdata;return t||(t={}),t.target&&!r._dragged&&Aie.triggerHandler(r,"plotly_beforehover",t)===!1?!1:(n._hoverlayer.selectAll("g").remove(),n._hoverlayer.selectAll("line").remove(),n._hoverlayer.selectAll("circle").remove(),r._hoverdata=void 0,t.target&&a&&r.emit("plotly_unhover",{event:t,points:a}),!0)}});var Li=_e((T6e,MC)=>{"use strict";var Eie=cC(),Gm=by(),Lie=Y1(),Die=rr().removeElement,Rie=(wn(),or(_n)),Is=MC.exports={};Is.align=dC();Is.getCursor=yC();var _C=bC();Is.unhover=_C.wrapped;Is.unhoverRaw=_C.raw;Is.init=function(r){var t=r.gd,n=1,a=t._context.doubleClickDelay,o=r.element,i,l,u,s,f,c,p,x;t._mouseDownTime||(t._mouseDownTime=0),o.style.pointerEvents="all",o.onmousedown=M,Lie?(o._ontouchstart&&o.removeEventListener("touchstart",o._ontouchstart),o._ontouchstart=M,o.addEventListener("touchstart",M,{passive:!1})):o.ontouchstart=M;function g(S,b,T){return Math.abs(S)a&&(n=Math.max(n-1,1)),t._dragged)r.doneFn&&r.doneFn();else{var b;c.target===p?b=c:(b={target:p,srcElement:p,toElement:p},Object.keys(c).concat(Object.keys(c.__proto__)).forEach(T=>{var h=c[T];!b[T]&&typeof h!="function"&&(b[T]=h)})),r.clickFn&&r.clickFn(n,b),x||p.dispatchEvent(new MouseEvent("click",S))}t._dragging=!1,t._dragged=!1}};function wC(){var e=document.createElement("div");e.className="dragcover";var r=e.style;return r.position="fixed",r.left=0,r.right=0,r.top=0,r.bottom=0,r.zIndex=999999999,r.background="none",document.body.appendChild(e),e}Is.coverSlip=wC;function xC(e){return Eie(e.changedTouches?e.changedTouches[0]:e,document.body)}});var El=_e((A6e,TC)=>{"use strict";TC.exports=function(r,t){(r.attr("class")||"").split(" ").forEach(function(n){n.indexOf("cursor-")===0&&r.classed(n,!1)}),t&&r.classed("cursor-"+t,!0)}});var SC=_e((k6e,kC)=>{"use strict";var Ym=El(),lc="data-savedcursor",AC="!!";kC.exports=function(r,t){var n=r.attr(lc);if(t){if(!n){for(var a=(r.attr("class")||"").split(" "),o=0;o{"use strict";var Xm=Hn(),Fie=ji();CC.exports={_isSubplotObj:!0,visible:{valType:"boolean",dflt:!0,editType:"legend"},bgcolor:{valType:"color",editType:"legend"},bordercolor:{valType:"color",dflt:Fie.defaultLine,editType:"legend"},maxheight:{valType:"number",min:0,editType:"legend"},borderwidth:{valType:"number",min:0,dflt:0,editType:"legend"},font:Xm({editType:"legend"}),grouptitlefont:Xm({editType:"legend"}),orientation:{valType:"enumerated",values:["v","h"],dflt:"v",editType:"legend"},traceorder:{valType:"flaglist",flags:["reversed","grouped"],extras:["normal"],editType:"legend"},tracegroupgap:{valType:"number",min:0,dflt:10,editType:"legend"},entrywidth:{valType:"number",min:0,editType:"legend"},entrywidthmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels",editType:"legend"},indentation:{valType:"number",min:-15,dflt:0,editType:"legend"},itemsizing:{valType:"enumerated",values:["trace","constant"],dflt:"trace",editType:"legend"},itemwidth:{valType:"number",min:30,dflt:30,editType:"legend"},itemclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggle",editType:"legend"},itemdoubleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggleothers",editType:"legend"},groupclick:{valType:"enumerated",values:["toggleitem","togglegroup"],dflt:"togglegroup",editType:"legend"},groupdoubleclick:{valType:"enumerated",values:["toggleitem","togglegroup"],editType:"legend"},titleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],editType:"legend"},titledoubleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],editType:"legend"},x:{valType:"number",editType:"legend"},xref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"legend"},y:{valType:"number",editType:"legend"},yref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],editType:"legend"},uirevision:{valType:"any",editType:"none"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"legend"},title:{text:{valType:"string",dflt:"",editType:"legend"},font:Xm({editType:"legend"}),side:{valType:"enumerated",values:["top","left","top left","top center","top right"],editType:"legend"},editType:"legend"},editType:"legend"}});var uc=_e(sc=>{"use strict";sc.isGrouped=function(r){return(r.traceorder||"").indexOf("grouped")!==-1};sc.isVertical=function(r){return r.orientation!=="h"};sc.isReversed=function(r){return(r.traceorder||"").indexOf("reversed")!==-1};sc.getId=function(r){return r._id||"legend"}});var Jm=_e((E6e,EC)=>{"use strict";var X1=Er(),qa=rr(),Pie=Mt(),Iie=Vn(),zie=Wm(),Nie=N0(),Zm=uc();function qie(e,r,t,n,a){var o=r[e]||{},i=Pie.newContainer(t,e);function l(B,O){return qa.coerce(o,i,zie,B,O)}var u=qa.coerceFont(l,"font",t.font);l("bgcolor",t.paper_bgcolor),l("bordercolor");var s=l("visible");if(!s)return;var f,c=function(B,O){var V=f._input,K=f;return qa.coerce(V,K,Iie,B,O)},p=t.font||{},x=qa.coerceFont(l,"grouptitlefont",p,{overrideDflt:{size:Math.round(p.size*1.1)}}),g=0,w=!1,M="normal",m=(t.shapes||[]).filter(function(B){return B.showlegend});function k(B){return X1.traceIs(B,"pie-like")&&B._length!=null&&(Array.isArray(B.legend)||Array.isArray(B.showlegend))}n.filter(k).forEach(function(B){B.visible&&g++;for(var O=0;OB.legend.length)for(var K=B.legend.length;K(e==="legend"?1:0));if(h===!1&&(t[e]=void 0),h===!1&&!o.uirevision||(l("uirevision",t.uirevision),h===!1))return;l("borderwidth");var _=l("orientation"),y=l("yref"),v=l("xref"),A=_==="h",d=y==="paper",D=v==="paper",E,R,z,I="left";A?(E=0,X1.getComponentMethod("rangeslider","isVisible")(r.xaxis)?d?(R=1.1,z="bottom"):(R=1,z="top"):d?(R=-.1,z="top"):(R=0,z="bottom")):(R=1,z="auto",D?E=1.02:(E=1,I="right")),qa.coerce(o,i,{x:{valType:"number",editType:"legend",min:D?-2:0,max:D?3:1,dflt:E}},"x"),qa.coerce(o,i,{y:{valType:"number",editType:"legend",min:d?-2:0,max:d?3:1,dflt:R}},"y"),l("traceorder",M),Zm.isGrouped(t[e])&&l("tracegroupgap"),l("entrywidth"),l("entrywidthmode"),l("indentation"),l("itemsizing"),l("itemwidth"),l("itemclick"),l("itemdoubleclick");let P=l("groupclick");l("groupdoubleclick",P),l("xanchor",I),l("yanchor",z),l("maxheight"),l("valign"),qa.noneOrAll(o,i,["x","y"]);var L=l("title.text");if(L){l("title.side",A?"left":"top");var F=qa.extendFlat({},u,{size:qa.bigFont(u.size)});qa.coerceFont(l,"title.font",F);let B=a>1;l("titleclick",B?"toggle":!1),l("titledoubleclick",B?"toggleothers":!1)}}EC.exports=function(r,t,n){var a,o=n.slice(),i=t.shapes;if(i)for(a=0;a{"use strict";var Ll=Er(),$m=rr(),Bie=$m.pushUnique,Oie=uc(),LC=!0;Km.handleItemClick=function(r,t,n,a,o){var i=t._fullLayout;if(t._dragged||t._editing)return;var l=r.data()[0][0];if(l.groupTitle&&l.noClick)return;let u=o===2?n.groupdoubleclick:n.groupclick;a==="toggle"&&n.itemdoubleclick==="toggleothers"&&LC&&t.data&&t._context.showTips&&($m.notifier($m._(t,"Double-click on legend to isolate one trace"),"long",t),LC=!1);var s=u==="togglegroup",f=i.hiddenlabels?i.hiddenlabels.slice():[],c=t._fullData;let p=(i.shapes||[]).filter(ke=>ke.showlegend||ke.legendgroup);var x=c.concat(p),g=l.trace;g._isShape&&(g=i.shapes[g.index]);var w=g.legendgroup,M,m,k,S,b,T,h={},_=[],y=[],v=[];function A(ke,Se){var ge=_.indexOf(ke),Le=h.visible;return Le||(Le=h.visible=[]),_.indexOf(ke)===-1&&(_.push(ke),ge=_.length-1),Le[ge]=Se,ge}var d=(i.shapes||[]).map(function(ke){return ke._input}),D=!1;function E(ke,Se){d[ke].visible=Se,D=!0}function R(ke,Se){if(!(l.groupTitle&&!s)){var ge=ke._isShape,Le=ke.index;Le===void 0&&(Le=ke._index);var Ce=ke.visible===!1?!1:Se;ge?E(Le,Ce):A(Le,Ce)}}var z=g.legend;if(!g._isShape&&Ll.traceIs(g,"pie-like")){var I=l.label,P=f.indexOf(I);if(a==="toggle")P===-1?f.push(I):f.splice(P,1);else if(a==="toggleothers"){var L=P!==-1,F=[];for(M=0;Mm.showlegend||m.legendgroup),u=o.concat(l);function s(m){return(m.legend||"legend")===i}var f,c;if(n==="toggle")f=!u.some(function(k){return s(k)&&k.visible===!0}),c=!1;else{let m=u.some(function(k){return!s(k)&&k.visible===!0&&k.showlegend!==!1});f=!0,c=!m}let p={visible:[]},x=[],g=(a.shapes||[]).map(function(m){return m._input});for(var w=!1,M=0;MWie,scrollBarColor:()=>Vie,scrollBarEnterAttrs:()=>Yie,scrollBarMargin:()=>Gie,scrollBarMinHeight:()=>Hie,scrollBarWidth:()=>Uie,titlePad:()=>Xie});var Uie,Hie,Vie,Gie,Yie,Xie,Wie,e5=Ot(()=>{"use strict";Uie=6,Hie=20,Vie="#808BA4",Gie=4,Yie={rx:20,ry:3,width:0,height:0},Xie=2,Wie=5});var FC=_e((D6e,RC)=>{"use strict";var{isArrayOrTypedArray:r5}=ha(),DC=Er(),t5=uc();RC.exports=function(r,t,n){var a=t._inHover,o=t5.isGrouped(t),i=t5.isReversed(t),l={},u=[],s=!1,f={},c=0,p=0,x,g;function w(B,O,V){if(t.visible!==!1&&!(n&&B!==t._id))if(O===""||!t5.isGrouped(t)){var K="~~i"+c;u.push(K),l[K]=[V],c++}else u.indexOf(O)===-1?(u.push(O),s=!0,l[O]=[V]):l[O].push(V)}for(x=0;xE&&(d=E)}v[x][0]._groupMinRank=d,v[x][0]._preGroupSort=x}var R=function(B,O){return B[0]._groupMinRank-O[0]._groupMinRank||B[0]._preGroupSort-O[0]._preGroupSort},z=function(B,O){var V=r5(B.trace.legendrank)?B.trace.legendrank[B.i]:B.trace.legendrank,K=r5(O.trace.legendrank)?O.trace.legendrank[O.i]:O.trace.legendrank;return V-K||B._preSort-O._preSort};for(v.forEach(function(B,O){B[0]._preGroupSort=O}),v.sort(R),x=0;x{"use strict";var W1=rr();function PC(e){return e.indexOf("e")!==-1?e.replace(/[.]?0+e/,"e"):e.indexOf(".")!==-1?e.replace(/[.]?0+$/,""):e}zs.formatPiePercent=function(r,t){var n=PC((r*100).toPrecision(3));return W1.numSeparate(n,t)+"%"};zs.formatPieValue=function(r,t){var n=PC(r.toPrecision(10));return W1.numSeparate(n,t)};zs.getFirstFilled=function(r,t){if(W1.isArrayOrTypedArray(r))for(var n=0;n{"use strict";var Zie=Tt(),Jie=Wr();IC.exports=function(r,t,n,a){var o=n.marker.pattern;o&&o.shape?Zie.pointStyle(r,n,a,t):Jie.fill(r,t.color)}});var OC=_e((P6e,BC)=>{"use strict";var NC=Wr(),qC=n5().castOption,$ie=zC();BC.exports=function(r,t,n,a){var o=n.marker.line,i=qC(o.color,t.pts)||NC.defaultLine,l=qC(o.width,t.pts)||0;r.call($ie,t,n,a).style("stroke-width",l).call(NC.stroke,i)}});var l5=_e((I6e,XC)=>{"use strict";var la=at(),a5=Er(),Zn=rr(),UC=Zn.strTranslate,Ba=Tt(),ni=Wr(),i5=ro().extractOpts,Z1=Sa(),Kie=OC(),Qie=n5().castOption,jie=(e5(),or(jm)),HC=12,VC=5,Ns=2,eoe=10,lu=5;XC.exports=function(r,t,n){var a=t._fullLayout;n||(n=a.legend);var o=n.itemsizing==="constant",i=n.itemwidth,l=(i+jie.itemGap*2)/2,u=UC(l,0),s=function(_,y,v,A){var d;if(_+1)d=_;else if(y&&y.width>0)d=y.width;else return 0;return o?A:Math.min(d,v)};r.each(function(_){var y=la.select(this),v=Zn.ensureSingle(y,"g","layers");v.style("opacity",_[0].trace.opacity);var A=n.indentation,d=n.valign,D=_[0].lineHeight,E=_[0].height;if(d==="middle"&&A===0||!D||!E)v.attr("transform",null);else{var R={top:1,bottom:-1}[d],z=R*(.5*(D-E+3))||0,I=n.indentation;v.attr("transform",UC(I,z))}var P=v.selectAll("g.legendfill").data([_]);P.enter().append("g").classed("legendfill",!0);var L=v.selectAll("g.legendlines").data([_]);L.enter().append("g").classed("legendlines",!0);var F=v.selectAll("g.legendsymbols").data([_]);F.enter().append("g").classed("legendsymbols",!0),F.selectAll("g.legendpoints").data([_]).enter().append("g").classed("legendpoints",!0)}).each(h).each(p).each(g).each(x).each(M).each(b).each(S).each(f).each(c).each(m).each(k);function f(_){var y=GC(_),v=y.showFill,A=y.showLine,d=y.showGradientLine,D=y.showGradientFill,E=y.anyFill,R=y.anyLine,z=_[0],I=z.trace,P,L,F=i5(I),B=F.colorscale,O=F.reversescale,V=function(Z){if(Z.size())if(v)Ba.fillGroupStyle(Z,t,!0);else{var ie="legendfill-"+I.uid;Ba.gradient(Z,t,ie,o5(O),B,"fill")}},K=function(Z){if(Z.size()){var ie="legendline-"+I.uid;Ba.lineGroupStyle(Z),Ba.gradient(Z,t,ie,o5(O),B,"stroke")}},j=Z1.hasMarkers(I)||!E?"M5,0":R?"M5,-2":"M5,-3",G=la.select(this),q=G.select(".legendfill").selectAll("path").data(v||D?[_]:[]);if(q.enter().append("path").classed("js-fill",!0),q.exit().remove(),q.attr("d",j+"h"+i+"v6h-"+i+"z").call(V),A||d){var J=s(void 0,I.line,eoe,VC);L=Zn.minExtend(I,{line:{width:J}}),P=[Zn.minExtend(z,{trace:L})]}var te=G.select(".legendlines").selectAll("path").data(A||d?[P]:[]);te.enter().append("path").classed("js-line",!0),te.exit().remove(),te.attr("d",j+(d?"l"+i+",0.0001":"h"+i)).call(A?Ba.lineGroupStyle:K)}function c(_){var y=GC(_),v=y.anyFill,A=y.anyLine,d=y.showLine,D=y.showMarker,E=_[0],R=E.trace,z=!D&&!A&&!v&&Z1.hasText(R),I,P;function L(J,te,Z,ie){var Q=Zn.nestedProperty(R,J).get(),re=Zn.isArrayOrTypedArray(Q)&&te?te(Q):Q;if(o&&re&&ie!==void 0&&(re=ie),Z){if(reZ[1])return Z[1]}return re}function F(J){return E._distinct&&E.index&&J[E.index]?J[E.index]:J[0]}if(D||z||d){var B={},O={};if(D){B.mc=L("marker.color",F);var V=R.type==="scattermap";B.mx=V?"circle":L("marker.symbol",F),B.mo=L("marker.opacity",Zn.mean,[.2,1]),B.mlc=L("marker.line.color",F),B.mlw=L("marker.line.width",Zn.mean,[0,5],Ns),B.mld=L("marker.line.dash",F),O.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var K=L("marker.size",Zn.mean,[2,16],HC);B.ms=K,O.marker.size=K}d&&(O.line={width:L("line.width",F,[0,10],VC)}),z&&(B.tx="Aa",B.tp=L("textposition",F),B.ts=10,B.tc=L("textfont.color",F),B.tf=L("textfont.family",F),B.tw=L("textfont.weight",F),B.ty=L("textfont.style",F),B.tv=L("textfont.variant",F),B.tC=L("textfont.textcase",F),B.tE=L("textfont.lineposition",F),B.tS=L("textfont.shadow",F)),I=[Zn.minExtend(E,B)],P=Zn.minExtend(R,O),P.selectedpoints=null,P.texttemplate=null}var j=la.select(this).select("g.legendpoints"),G=j.selectAll("path.scatterpts").data(D?I:[]);G.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",u),G.exit().remove(),G.call(Ba.pointStyle,P,t),D&&(I[0].mrc=3);var q=j.selectAll("g.pointtext").data(z?I:[]);q.enter().append("g").classed("pointtext",!0).append("text").attr("transform",u),q.exit().remove(),q.selectAll("text").call(Ba.textPointStyle,P,t)}function p(_){var y=_[0].trace,v=y.type==="waterfall";if(_[0]._distinct&&v){var A=_[0].trace[_[0].dir].marker;return _[0].mc=A.color,_[0].mlw=A.line.width,_[0].mlc=A.line.color,w(_,this,"waterfall")}var d=[];y.visible&&v&&(d=_[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 D=la.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data(d);D.enter().append("path").classed("legendwaterfall",!0).attr("transform",u).style("stroke-miterlimit",1),D.exit().remove(),D.each(function(E){var R=la.select(this),z=y[E[0]].marker,I=s(void 0,z.line,lu,Ns);R.attr("d",E[1]).style("stroke-width",I+"px").call(ni.fill,z.color),I&&R.call(ni.stroke,z.line.color)})}function x(_){w(_,this)}function g(_){w(_,this,"funnel")}function w(_,y,v){var A=_[0].trace,d=A.marker||{},D=d.line||{},E=d.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",R=v?A.visible&&A.type===v:a5.traceIs(A,"bar"),z=la.select(y).select("g.legendpoints").selectAll("path.legend"+v).data(R?[_]:[]);z.enter().append("path").classed("legend"+v,!0).attr("d",E).attr("transform",u),z.exit().remove(),z.each(function(I){var P=la.select(this),L=I[0],F=s(L.mlw,d.line,lu,Ns);P.style("stroke-width",F+"px");var B=L.mcc;if(!n._inHover&&"mc"in L){var O=i5(d),V=O.mid;V===void 0&&(V=(O.max+O.min)/2),B=Ba.tryColorscale(d,"")(V)}var K=B||L.mc||d.color,j=d.pattern,G=Ba.getPatternAttr,q=j&&(G(j.shape,0,"")||G(j.path,0,""));if(q){var J=G(j.bgcolor,0,null),te=G(j.fgcolor,0,null),Z=j.fgopacity,ie=YC(j.size,8,10),Q=YC(j.solidity,.5,1),re="legend-"+A.uid;P.call(Ba.pattern,"legend",t,re,q,ie,Q,B,j.fillmode,J,te,Z)}else P.call(ni.fill,K);F&&ni.stroke(P,L.mlc||D.color)})}function M(_){var y=_[0].trace,v=la.select(this).select("g.legendpoints").selectAll("path.legendbox").data(y.visible&&a5.traceIs(y,"box-violin")?[_]:[]);v.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform",u),v.exit().remove(),v.each(function(){var A=la.select(this);if((y.boxpoints==="all"||y.points==="all")&&ni.opacity(y.fillcolor)===0&&ni.opacity((y.line||{}).color)===0){var d=Zn.minExtend(y,{marker:{size:o?HC:Zn.constrain(y.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});v.call(Ba.pointStyle,d,t)}else{var D=s(void 0,y.line,lu,Ns);A.style("stroke-width",D+"px").call(ni.fill,y.fillcolor),D&&ni.stroke(A,y.line.color)}})}function m(_){var y=_[0].trace,v=la.select(this).select("g.legendpoints").selectAll("path.legendcandle").data(y.visible&&y.type==="candlestick"?[_,_]:[]);v.enter().append("path").classed("legendcandle",!0).attr("d",function(A,d){return d?"M-15,0H-8M-8,6V-6H8Z":"M15,0H8M8,-6V6H-8Z"}).attr("transform",u).style("stroke-miterlimit",1),v.exit().remove(),v.each(function(A,d){var D=la.select(this),E=y[d?"increasing":"decreasing"],R=s(void 0,E.line,lu,Ns);D.style("stroke-width",R+"px").call(ni.fill,E.fillcolor),R&&ni.stroke(D,E.line.color)})}function k(_){var y=_[0].trace,v=la.select(this).select("g.legendpoints").selectAll("path.legendohlc").data(y.visible&&y.type==="ohlc"?[_,_]:[]);v.enter().append("path").classed("legendohlc",!0).attr("d",function(A,d){return d?"M-15,0H0M-8,-6V0":"M15,0H0M8,6V0"}).attr("transform",u).style("stroke-miterlimit",1),v.exit().remove(),v.each(function(A,d){var D=la.select(this),E=y[d?"increasing":"decreasing"],R=s(void 0,E.line,lu,Ns);D.style("fill","none").call(Ba.dashLine,E.line.dash,R),R&&ni.stroke(D,E.line.color)})}function S(_){T(_,this,"pie")}function b(_){T(_,this,"funnelarea")}function T(_,y,v){var A=_[0],d=A.trace,D=v?d.visible&&d.type===v:a5.traceIs(d,v),E=la.select(y).select("g.legendpoints").selectAll("path.legend"+v).data(D?[_]:[]);if(E.enter().append("path").classed("legend"+v,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",u),E.exit().remove(),E.size()){var R=d.marker||{},z=s(Qie(R.line.width,A.pts),R.line,lu,Ns),I="pieLike",P=Zn.minExtend(d,{marker:{line:{width:z}}},I),L=Zn.minExtend(A,{trace:P},I);Kie(E,L,P,t)}}function h(_){var y=_[0].trace,v,A=[];if(y.visible)switch(y.type){case"histogram2d":case"heatmap":A=[["M-15,-2V4H15V-2Z"]],v=!0;break;case"choropleth":case"choroplethmap":A=[["M-6,-6V6H6V-6Z"]],v=!0;break;case"densitymap":A=[["M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"]],v="radial";break;case"cone":A=[["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"]],v=!1;break;case"streamtube":A=[["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"]],v=!1;break;case"surface":A=[["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"]],v=!0;break;case"mesh3d":A=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],v=!1;break;case"volume":A=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],v=!0;break;case"isosurface":A=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6 A12,24 0 0,0 6,-6 L0,6Z"]],v=!1;break}var d=la.select(this).select("g.legendpoints").selectAll("path.legend3dandfriends").data(A);d.enter().append("path").classed("legend3dandfriends",!0).attr("transform",u).style("stroke-miterlimit",1),d.exit().remove(),d.each(function(D,E){var R=la.select(this),z=i5(y),I=z.colorscale,P=z.reversescale,L=function(V){if(V.size()){var K="legendfill-"+y.uid;Ba.gradient(V,t,K,o5(P,v==="radial"),I,"fill")}},F;if(I){if(!v){var O=I.length;F=E===0?I[P?O-1:0][1]:E===1?I[P?0:O-1][1]:I[Math.floor((O-1)/2)][1]}}else{var B=y.vertexcolor||y.facecolor||y.color;F=Zn.isArrayOrTypedArray(B)?B[E]||B[0]:B}R.attr("d",D[0]),F?R.call(ni.fill,F):R.call(L)})}};function o5(e,r){var t=r?"radial":"horizontal";return t+(e?"":"reversed")}function GC(e){var r=e[0].trace,t=r.contours,n=Z1.hasLines(r)||r.visible&&r.type==="quiver",a=Z1.hasMarkers(r),o=r.visible&&r.fill&&r.fill!=="none",i=!1,l=!1;if(t){var u=t.coloring;u==="lines"?i=!0:n=u==="none"||u==="heatmap"||t.showlines,t.type==="constraint"?o=t._operation!=="=":(u==="fill"||u==="heatmap")&&(l=!0)}return{showMarker:a,showLine:n,showFill:o,showGradientLine:i,showGradientFill:l,anyLine:n||i,anyFill:o||l}}function YC(e,r,t){return e&&Zn.isArrayOrTypedArray(e)?r:e>t?t:e}});var c5=_e((z6e,rE)=>{"use strict";var da=at(),nn=rr(),u5=Mn(),qs=Er(),K1=Vf(),s5=Li(),an=Tt(),fc=Wr(),Bs=Wn(),WC=Qm().handleItemClick,ZC=Qm().handleTitleClick,sn=(e5(),or(jm)),f5=(Xn(),or(Yn)),jC=f5.LINE_SPACING,uu=f5.FROM_TL,JC=f5.FROM_BR,$C=FC(),roe=l5(),fu=uc(),su=1,toe=/^legend[0-9]*$/;rE.exports=function(r,t){if(t)KC(r,t);else{var n=r._fullLayout,a=n._legends,o=n._infolayer.selectAll('[class^="legend"]');o.each(function(){var s=da.select(this),f=s.attr("class"),c=f.split(" ")[0];c.match(toe)&&a.indexOf(c)===-1&&s.remove()});for(var i=0;i1)}var g=n.hiddenlabels||[];if(!l&&(!n.showlegend||!u.length))return i.selectAll("."+a).remove(),n._topdefs.select("#"+o).remove(),u5.autoMargin(e,a);var w=nn.ensureSingle(i,"g",a,function(y){l||y.attr("pointer-events","all")}),M=nn.ensureSingleById(n._topdefs,"clipPath",o,function(y){y.append("rect")}),m=nn.ensureSingle(w,"rect","bg",function(y){y.attr("shape-rendering","crispEdges")});m.call(fc.stroke,t.bordercolor).call(fc.fill,t.bgcolor).style("stroke-width",t.borderwidth+"px");var k=nn.ensureSingle(w,"g","scrollbox"),S=t.title;t._titleWidth=0,t._titleHeight=0;var b;S.text?(b=nn.ensureSingle(k,"text",a+"titletext"),b.attr("text-anchor","start").call(an.font,S.font).text(S.text),$1(b,k,e,t,su),!l&&(t.titleclick||t.titledoubleclick)&&ooe(k,e,t,a)):(k.selectAll("."+a+"titletext").remove(),k.selectAll("."+a+"titletoggle").remove());var T=nn.ensureSingle(w,"rect","scrollbar",function(y){y.attr(sn.scrollBarEnterAttrs).call(fc.fill,sn.scrollBarColor)}),h=k.selectAll("g.groups").data(u);h.enter().append("g").attr("class","groups"),h.exit().remove();var _=h.selectAll("g.traces").data(nn.identity);_.enter().append("g").attr("class","traces"),_.exit().remove(),_.style("opacity",function(y){let v=y[0],A=v.trace;if(v.groupTitle){let d=A.legendgroup,D=(n.shapes||[]).filter(function(R){return R.showlegend});return e._fullData.concat(D).some(function(R){return R.legendgroup===d&&(R.legend||"legend")===a&&R.visible===!0})?1:.5}return qs.traceIs(A,"pie-like")?g.indexOf(y[0].label)!==-1?.5:1:A.visible==="legendonly"?.5:1}).each(function(){da.select(this).call(aoe,e,t)}).call(roe,e,t).each(function(y){l||y[0].groupTitle&&t.groupclick==="toggleitem"||da.select(this).call(ioe,e,a)}),nn.syncOrAsync([u5.previousPromises,function(){return uoe(e,h,_,t,k)},function(){var y=n._size,v=t.borderwidth,A=t.xref==="paper",d=t.yref==="paper";if(S.text){let ae=(n.shapes||[]).filter(function(Te){return Te.showlegend}),ce=e._fullData.concat(ae).some(function(Te){let ke=Te.legend||"legend";var Se=Array.isArray(ke)?ke.includes(a):ke===a;return Se&&Te.visible===!0});b.style("opacity",ce?1:.5)}if(!l){var D,E;A?D=y.l+y.w*t.x-uu[Q1(t)]*t._width:D=n.width*t.x-uu[Q1(t)]*t._width,d?E=y.t+y.h*(1-t.y)-uu[j1(t)]*t._effHeight:E=n.height*(1-t.y)-uu[j1(t)]*t._effHeight;var R=foe(e,a,D,E);if(R)return;if(n.margin.autoexpand){var z=D,I=E;D=A?nn.constrain(D,0,n.width-t._width):z,E=d?nn.constrain(E,0,n.height-t._effHeight):I,D!==z&&nn.log("Constrain "+a+".x to make legend fit inside graph"),E!==I&&nn.log("Constrain "+a+".y to make legend fit inside graph")}an.setTranslate(w,D,E)}if(T.on(".drag",null),w.on("wheel",null),l||t._height<=t._maxHeight||e._context.staticPlot){var P=t._effHeight;l&&(P=t._height),m.attr({width:t._width-v,height:P-v,x:v/2,y:v/2}),an.setTranslate(k,0,0),M.select("rect").attr({width:t._width-2*v,height:P-2*v,x:v,y:v}),an.setClipUrl(k,o,e),an.setRect(T,0,0,0,0),delete t._scrollY}else{var L=Math.max(sn.scrollBarMinHeight,t._effHeight*t._effHeight/t._height),F=t._effHeight-L-2*sn.scrollBarMargin,B=t._height-t._effHeight,O=F/B,V=Math.min(t._scrollY||0,B);m.attr({width:t._width-2*v+sn.scrollBarWidth+sn.scrollBarMargin,height:t._effHeight-v,x:v/2,y:v/2}),M.select("rect").attr({width:t._width-2*v+sn.scrollBarWidth+sn.scrollBarMargin,height:t._effHeight-2*v,x:v,y:v+V}),an.setClipUrl(k,o,e),ie(V,L,O),w.on("wheel",function(){V=nn.constrain(t._scrollY+da.event.deltaY/B*F,0,B),ie(V,L,O),V!==0&&V!==B&&da.event.preventDefault()});var K,j,G,q=function(ae,ce,Te){var ke=(Te-ce)/O+ae;return nn.constrain(ke,0,B)},J=function(ae,ce,Te){var ke=(ce-Te)/O+ae;return nn.constrain(ke,0,B)},te=da.behavior.drag().on("dragstart",function(){var ae=da.event.sourceEvent;ae.type==="touchstart"?K=ae.changedTouches[0].clientY:K=ae.clientY,G=V}).on("drag",function(){var ae=da.event.sourceEvent;ae.buttons===2||ae.ctrlKey||(ae.type==="touchmove"?j=ae.changedTouches[0].clientY:j=ae.clientY,V=q(G,K,j),ie(V,L,O))});T.call(te);var Z=da.behavior.drag().on("dragstart",function(){var ae=da.event.sourceEvent;ae.type==="touchstart"&&(K=ae.changedTouches[0].clientY,G=V)}).on("drag",function(){var ae=da.event.sourceEvent;ae.type==="touchmove"&&(j=ae.changedTouches[0].clientY,V=J(G,K,j),ie(V,L,O))});k.call(Z)}function ie(ae,ce,Te){t._scrollY=e._fullLayout[a]._scrollY=ae,an.setTranslate(k,0,-ae),an.setRect(T,t._width,sn.scrollBarMargin+ae*Te,sn.scrollBarWidth,ce),M.select("rect").attr("y",v+ae)}if(e._context.edits.legendPosition){var Q,re,ue,ee;w.classed("cursor-move",!0),s5.init({element:w.node(),gd:e,prepFn:function(ae){if(ae.target!==T.node()){var ce=an.getTranslate(w);ue=ce.x,ee=ce.y}},moveFn:function(ae,ce){if(ue!==void 0&&ee!==void 0){var Te=ue+ae,ke=ee+ce;an.setTranslate(w,Te,ke),Q=s5.align(Te,t._width,y.l,y.l+y.w,t.xanchor),re=s5.align(ke+t._height,-t._height,y.t+y.h,y.t,t.yanchor)}},doneFn:function(){if(Q!==void 0&&re!==void 0){var ae={};ae[a+".x"]=Q,ae[a+".y"]=re,qs.call("_guiRelayout",e,ae)}},clickFn:function(ae,ce){var Te=i.selectAll("g.traces").filter(function(){var ke=this.getBoundingClientRect();return ce.clientX>=ke.left&&ce.clientX<=ke.right&&ce.clientY>=ke.top&&ce.clientY<=ke.bottom});Te.size()>0&&eE(e,t,Te,ae,ce)}})}}],e)}}function J1(e,r,t){var n=e[0],a=n.width,o=r.entrywidthmode,i=n.trace.legendwidth||r.entrywidth;return o==="fraction"?r._maxWidth*i:t+(i||a)}function eE(e,r,t,n,a){var o=e._fullLayout,i=t.data()[0][0].trace,l=r.itemclick,u=r.itemdoubleclick,s={event:a,node:t.node(),curveNumber:i.index,expandedIndex:i.index,data:e.data,layout:e.layout,frames:e._transitionData._frames,config:e._context,fullData:e._fullData,fullLayout:o};i._group&&(s.group=i._group),qs.traceIs(i,"pie-like")&&(s.label=t.datum()[0].label);var f=K1.triggerHandler(e,"plotly_legendclick",s);if(n===1){if(f===!1)return;r._clickTimeout=setTimeout(function(){e._fullLayout&&l&&WC(t,e,r,l,n)},e._context.doubleClickDelay)}else if(n===2){r._clickTimeout&&clearTimeout(r._clickTimeout),e._legendMouseDownTime=0;var c=K1.triggerHandler(e,"plotly_legenddoubleclick",s);c!==!1&&f!==!1&&u&&WC(t,e,r,u,n)}}function aoe(e,r,t){var n=fu.getId(t),a=e.data()[0][0],o=a.trace,i=qs.traceIs(o,"pie-like"),l=!t._inHover&&r._context.edits.legendText&&!i,u=t._maxNameLength,s,f;a.groupTitle?(s=a.groupTitle.text,f=a.groupTitle.font):(f=t.font,t.entries?s=a.text:(s=i?a.label:o.name,o._meta&&(s=nn.templateString(s,o._meta))));var c=nn.ensureSingle(e,"text",n+"text");c.attr("text-anchor","start").call(an.font,f).text(l?QC(s,u):s);var p=t.indentation+t.itemwidth+sn.itemGap*2;Bs.positionText(c,p,0),l?c.call(Bs.makeEditable,{gd:r,text:s}).call($1,e,r,t).on("edit",function(x){this.text(QC(x,u)).call($1,e,r,t);var g={};return g.name=x,a.trace._isShape?qs.call("_guiRelayout",r,"shapes["+o.index+"].name",g.name):qs.call("_guiRestyle",r,g,o.index)}):$1(c,e,r,t)}function QC(e,r){var t=Math.max(4,r);if(e&&e.trim().length>=t/2)return e;e=e||"";for(var n=t-e.length;n>0;n--)e+=" ";return e}function ioe(e,r,t){var n=r._context.doubleClickDelay,a,o=1,i=nn.ensureSingle(e,"rect",t+"toggle",function(l){r._context.staticPlot||l.style("cursor","pointer").attr("pointer-events","all"),l.call(fc.fill,"rgba(0,0,0,0)")});r._context.staticPlot||(i.on("mousedown",function(){a=new Date().getTime(),a-r._legendMouseDownTimen&&(o=Math.max(o-1,1)),eE(r,l,e,o,da.event)}}))}function ooe(e,r,t,n){if(r._fullData.some(function(s){let f=s.legend||"legend";return(Array.isArray(f)?f.includes(n):f===n)&&qs.traceIs(s,"pie-like")}))return;let o=r._context.doubleClickDelay;var i,l=1;let u=nn.ensureSingle(e,"rect",n+"titletoggle",function(s){r._context.staticPlot||s.style("cursor","pointer").attr("pointer-events","all"),s.call(fc.fill,"rgba(0,0,0,0)")});r._context.staticPlot||(u.on("mousedown",function(){i=new Date().getTime(),i-r._legendMouseDownTimeo&&(l=Math.max(l-1,1));let s={event:da.event,legendId:n,data:r.data,layout:r.layout,fullData:r._fullData,fullLayout:r._fullLayout};if(l===1&&t.titleclick){if(K1.triggerHandler(r,"plotly_legendtitleclick",s)===!1)return;t._titleClickTimeout=setTimeout(function(){r._fullLayout&&ZC(r,t,t.titleclick)},o)}else l===2&&(t._titleClickTimeout&&clearTimeout(t._titleClickTimeout),r._legendMouseDownTime=0,K1.triggerHandler(r,"plotly_legendtitledoubleclick",s)!==!1&&t.titledoubleclick&&ZC(r,t,t.titledoubleclick))}))}function $1(e,r,t,n,a){n._inHover&&e.attr("data-notex",!0),Bs.convertToTspans(e,t,function(){loe(r,t,n,a)})}function loe(e,r,t,n){var a=e.data()[0][0],o=a&&a.trace.showlegend;if(Array.isArray(o)&&(o=o[a.i]!==!1),!t._inHover&&a&&!o){e.remove();return}var i=e.select("g[class*=math-group]"),l=i.node(),u=fu.getId(t);t||(t=r._fullLayout[u]);var s=t.borderwidth,f;n===su?f=t.title.font:a.groupTitle?f=a.groupTitle.font:f=t.font;var c=f.size*jC,p,x;if(l){var g=an.bBox(l);p=g.height,x=g.width,n===su?an.setTranslate(i,s,s+p*.75):an.setTranslate(i,0,p*.25)}else{var w="."+u+(n===su?"title":"")+"text",M=e.select(w),m=Bs.lineCount(M),k=M.node();if(p=c*m,x=k?an.bBox(k).width:0,n===su)t.title.side==="left"&&(x+=sn.itemGap*2),Bs.positionText(M,s+sn.titlePad,s+c);else{var S=sn.itemGap*2+t.indentation+t.itemwidth;a.groupTitle&&(S=sn.itemGap,x-=t.indentation+t.itemwidth),Bs.positionText(M,S,-c*((m-1)/2-.3))}}n===su?(t._titleWidth=x,t._titleHeight=p):(a.lineHeight=c,a.height=Math.max(p,16)+3,a.width=x)}function soe(e){var r=0,t=0,n=e.title.side;return n&&(n.indexOf("left")!==-1&&(r=e._titleWidth),n.indexOf("top")!==-1&&(t=e._titleHeight)),[r,t]}function uoe(e,r,t,n,a){var o=e._fullLayout,i=fu.getId(n);n||(n=o[i]);var l=o._size,u=fu.isVertical(n),s=fu.isGrouped(n),f=n.entrywidthmode==="fraction",c=n.borderwidth,p=2*c,x=sn.itemGap,g=n.indentation+n.itemwidth+x*2,w=2*(c+x),M=j1(n),m=n.y<0||n.y===0&&M==="top",k=n.y>1||n.y===1&&M==="bottom",S=n.tracegroupgap,b={};let{orientation:T,yref:h}=n,{maxheight:_}=n,y=m||k||T!=="v"||h!=="paper";_||(_=y?.5:1);let v=y?o.height:l.h;n._maxHeight=Math.max(_>1?_:_*v,30);var A=0;n._width=0,n._height=0;var d=soe(n);if(u)t.each(function(ae){var ce=ae[0].height;an.setTranslate(this,c+d[0],c+d[1]+n._height+ce/2+x),n._height+=ce,n._width=Math.max(n._width,ae[0].width)}),A=g+n._width,n._width+=x+g+p,n._height+=w,s&&(r.each(function(ae,ce){an.setTranslate(this,0,ce*n.tracegroupgap)}),n._height+=(n._lgroupsLength-1)*n.tracegroupgap);else{var D=Q1(n),E=n.x<0||n.x===0&&D==="right",R=n.x>1||n.x===1&&D==="left",z=k||m,I=o.width/2;n._maxWidth=Math.max(E?z&&D==="left"?l.l+l.w:I:R?z&&D==="right"?l.r+l.w:I:l.w,2*g);var P=0,L=0;t.each(function(ae){var ce=J1(ae,n,g);P=Math.max(P,ce),L+=ce}),A=null;var F=0;if(s){var B=0,O=0,V=0;r.each(function(){var ae=0,ce=0;da.select(this).selectAll("g.traces").each(function(ke){var Se=J1(ke,n,g),ge=ke[0].height;an.setTranslate(this,d[0],d[1]+c+x+ge/2+ce),ce+=ge,ae=Math.max(ae,Se),b[ke[0].trace.legendgroup]=ae});var Te=ae+x;O>0&&Te+c+O>n._maxWidth?(F=Math.max(F,O),O=0,V+=B+S,B=ce):B=Math.max(B,ce),an.setTranslate(this,O,V),O+=Te}),n._width=Math.max(F,O)+c,n._height=V+B+w}else{var K=t.size(),j=L+p+(K-1)*x=n._maxWidth&&(F=Math.max(F,te),q=0,J+=G,n._height+=G,G=0),an.setTranslate(this,d[0]+c+q,d[1]+c+J+ce/2+x),te=q+Te+x,q+=ke,G=Math.max(G,ce)}),j?(n._width=q+p,n._height=G+w):(n._width=Math.max(F,te)+p,n._height+=G+w)}}n._width=Math.ceil(Math.max(n._width+d[0],n._titleWidth+2*(c+sn.titlePad))),n._height=Math.ceil(Math.max(n._height+d[1],n._titleHeight+2*(c+sn.itemGap))),n._effHeight=Math.min(n._height,n._maxHeight);var Z=e._context.edits,ie=Z.legendText||Z.legendPosition;t.each(function(ae){var ce=da.select(this).select("."+i+"toggle"),Te=ae[0].height,ke=ae[0].trace.legendgroup,Se=J1(ae,n,g);s&&ke!==""&&(Se=b[ke]);var ge=ie?g:A||Se;!u&&!f&&(ge+=x/2),an.setRect(ce,0,-Te/2,ge,Te)});var Q=a.select("."+i+"titletext");Q.node()&&noe(Q,n,c);var re=a.select("."+i+"titletoggle");if(re.size()&&Q.node()){var ue=Q.attr("x")||0,ee=sn.titlePad;an.setRect(re,ue-ee,c,n._titleWidth+2*ee,n._titleHeight+2*ee)}}function foe(e,r,t,n){var a=e._fullLayout,o=a[r],i=Q1(o),l=j1(o),u=o.xref==="paper",s=o.yref==="paper";e._fullLayout._reservedMargin[r]={};var f=o.y<.5?"b":"t",c=o.x<.5?"l":"r",p={r:a.width-t,l:t+o._width,b:a.height-n,t:n+o._effHeight};if(u&&s)return u5.autoMargin(e,r,{x:o.x,y:o.y,l:o._width*uu[i],r:o._width*JC[i],b:o._effHeight*JC[l],t:o._effHeight*uu[l]});u?e._fullLayout._reservedMargin[r][f]=p[f]:s||o.orientation==="v"?e._fullLayout._reservedMargin[r][c]=p[c]:e._fullLayout._reservedMargin[r][f]=p[f]}function Q1(e){return nn.isRightAnchor(e)?"right":nn.isCenterAnchor(e)?"center":"left"}function j1(e){return nn.isBottomAnchor(e)?"bottom":nn.isMiddleAnchor(e)?"middle":"top"}});var p5=_e(d5=>{"use strict";var Os=at(),qo=ot(),Wt=rr(),coe=Wt.pushUnique,v5=Wt.strTranslate,voe=Wt.strRotate,hoe=Vf(),ai=Wn(),doe=SC(),co=Tt(),un=Wr(),e2=Li(),vo=Ht(),poe=(wn(),or(_n)).zindexSeparator,vu=Er(),Oa=io(),Us=(gf(),or(pf)),goe=Jm(),yoe=c5(),uE=Us.YANGLE,h5=Math.PI*uE/180,moe=1/Math.sin(h5),boe=Math.cos(h5),xoe=Math.sin(h5),Nt=Us.HOVERARROWSIZE,et=Us.HOVERTEXTPAD,tE={box:!0,ohlc:!0,violin:!0,candlestick:!0},_oe={scatter:!0,scattergl:!0,splom:!0};function nE(e,r){return e.distance-r.distance}d5.hover=function(r,t,n,a){r=Wt.getGraphDiv(r);var o=t.target;Wt.throttle(r._fullLayout._uid+Us.HOVERID,Us.HOVERMINTIME,function(){woe(r,t,n,a,o)})};d5.loneHover=function(r,t){var n=!0;Array.isArray(r)||(n=!1,r=[r]);var a=t.gd,o=dE(a),i=pE(a),l=r.map(function(M){var m=M._x0||M.x0||M.x||0,k=M._x1||M.x1||M.x||0,S=M._y0||M.y0||M.y||0,b=M._y1||M.y1||M.y||0,T=M.eventData;if(T){var h=Math.min(m,k),_=Math.max(m,k),y=Math.min(S,b),v=Math.max(S,b),A=M.trace;if(vu.traceIs(A,"gl3d")){var d=a._fullLayout[A.scene]._scene.container,D=d.offsetLeft,E=d.offsetTop;h+=D,_+=D,y+=E,v+=E}T.bbox={x0:h+i,x1:_+i,y0:y+o,y1:v+o},T.xPixel=(m+k)/2,T.yPixel=(S+b)/2,t.inOut_bbox&&t.inOut_bbox.push(T.bbox)}else T=!1;return{color:M.color||un.defaultLine,x0:M.x0||M.x||0,x1:M.x1||M.x||0,y0:M.y0||M.y||0,y1:M.y1||M.y||0,xLabel:M.xLabel,yLabel:M.yLabel,zLabel:M.zLabel,text:M.text,name:M.name,idealAlign:M.idealAlign,borderColor:M.borderColor,fontFamily:M.fontFamily,fontSize:M.fontSize,fontColor:M.fontColor,fontWeight:M.fontWeight,fontStyle:M.fontStyle,fontVariant:M.fontVariant,nameLength:M.nameLength,textAlign:M.textAlign,trace:M.trace||{index:0,hoverinfo:""},xa:{_offset:0},ya:{_offset:0},index:0,hovertemplate:M.hovertemplate||!1,hovertemplateLabels:M.hovertemplateLabels||!1,eventData:T}}),u=!1,s=cE(l,{gd:a,hovermode:"closest",rotateLabels:u,bgColor:t.bgColor||un.background,container:Os.select(t.container),outerContainer:t.outerContainer||t.container}),f=s.hoverLabels,c=5,p=0,x=0;f.sort(function(M,m){return M.y0-m.y0}).each(function(M,m){var k=M.y0-M.by/2;k-c_[0]._length||ee<0||ee>y[0]._length)return e2.unhoverRaw(e,r)}if(r.pointerX=ue+_[0]._offset,r.pointerY=ee+y[0]._offset,"xval"in r?I=Oa.flat(o,r.xval):I=Oa.p2c(_,ue),"yval"in r?P=Oa.flat(o,r.yval):P=Oa.p2c(y,ee),e._hoverPointerX=r.pointerX,e._hoverPointerY=r.pointerY,!qo(I[0])||!qo(P[0]))return Wt.warn("Fx.hover failed",r,e),e2.unhoverRaw(e,r)}l.clickanywhere&&(e._hoverXVals=I,e._hoverYVals=P,e._hoverXAxes=_,e._hoverYAxes=y);var Te=1/0;function ke(sr,Nr){for(F=0;Fte&&(R.splice(0,te),Te=R[0].distance),c&&E!==0&&R.length===0){J.distance=E,J.index=!1;var it=O._module.hoverPoints(J,G,q,"closest",{hoverLayer:l._hoverlayer});if(it&&(it=it.filter(function(Dt){return Dt.spikeDistance<=E})),it&&it.length){var Et,Kt=it.filter(function(Dt){return Dt.xa.showspikes&&Dt.xa.spikesnap!=="hovered data"});if(Kt.length){var Ct=Kt[0];qo(Ct.x0)&&qo(Ct.y0)&&(Et=ge(Ct),(!Z.vLinePoint||Z.vLinePoint.spikeDistance>Et.spikeDistance)&&(Z.vLinePoint=Et))}var yt=it.filter(function(Dt){return Dt.ya.showspikes&&Dt.ya.spikesnap!=="hovered data"});if(yt.length){var Lt=yt[0];qo(Lt.x0)&&qo(Lt.y0)&&(Et=ge(Lt),(!Z.hLinePoint||Z.hLinePoint.spikeDistance>Et.spikeDistance)&&(Z.hLinePoint=Et))}}}}}ke();function Se(sr,Nr,tt){for(var Ur=null,Yr=1/0,gt,it=0;itsr.trace.index===de.trace.index):R=[de];var xe=R.length,Ae=sE("x",de,l),Pe=sE("y",de,l);ke(Ae,Pe);var Fe=[],Ye={},qe=0,Be=function(sr){var Nr=tE[sr.trace.type]?fE(sr):sr.trace.index;if(!Ye[Nr])qe++,Ye[Nr]=qe,Fe.push(sr);else{var tt=Ye[Nr]-1,Ur=Fe[tt];tt>0&&Math.abs(sr.distance)xe-1;Oe--)Be(R[Oe]);R=Fe,Y()}var We=e._hoverdata,Xe=[],tr=dE(e),ir=pE(e);for(let sr of R){var je=Oa.makeEventData(sr,sr.trace,sr.cd);if(sr.hovertemplate!==!1){var Ke=!1;sr.cd[sr.index]&&sr.cd[sr.index].ht&&(Ke=sr.cd[sr.index].ht),sr.hovertemplate=Ke||sr.trace.hovertemplate||!1}if(sr.xa&&sr.ya){var Ee=sr.x0+sr.xa._offset,ze=sr.x1+sr.xa._offset,Qe=sr.y0+sr.ya._offset,er=sr.y1+sr.ya._offset,Mr=Math.min(Ee,ze),Gr=Math.max(Ee,ze),Tr=Math.min(Qe,er),Fr=Math.max(Qe,er);je.bbox={x0:Mr+ir,x1:Gr+ir,y0:Tr+tr,y1:Fr+tr},je.xPixel=(Ee+ze)/2,je.yPixel=(Qe+er)/2}sr.eventData=[je],Xe.push(je)}e._hoverdata=Xe;var jr=p==="y"&&(z.length>1||R.length>1)||p==="closest"&&ie&&R.length>1,Cr=un.combine(l.plot_bgcolor||un.background,l.paper_bgcolor),Zr=cE(R,{gd:e,hovermode:p,rotateLabels:jr,bgColor:Cr,container:l._hoverlayer,outerContainer:l._paper.node(),commonLabelOpts:l.hoverlabel,hoverdistance:l.hoverdistance}),xt=Zr.hoverLabels;if(Oa.isUnifiedHover(p)||(Toe(xt,jr,l,Zr.commonLabelBoundingBox),hE(xt,jr,l._invScaleX,l._invScaleY)),a&&a.tagName){var $r=vu.getComponentMethod("annotations","hasClickToShow")(e,Xe);doe(Os.select(a),$r?"pointer":"")}var ut=Soe(e,r,We);if(!a||n||!ut&&!l.hoveranywhere)return;We&&ut&&e.emit("plotly_unhover",{event:r,points:We}),Fn(e._hoverdata);function Fn(sr){e.emit("plotly_hover",{event:r,points:sr,xaxes:_,yaxes:y,xvals:Oa.c2dApply(_,I),yvals:Oa.c2dApply(y,P),xPixel:r.pointerX,yPixel:r.pointerY})}}function fE(e){return[e.trace.index,e.index,e.x0,e.y0,e.name,e.attr,e.xa?e.xa._id:"",e.ya?e.ya._id:""].join(",")}var Moe=/([\s\S]*)<\/extra>/;function cE(e,r){var t=r.gd,n=t._fullLayout,a=r.hovermode,o=r.rotateLabels,i=r.bgColor,l=r.container,u=r.outerContainer,s=r.commonLabelOpts||{};if(e.length===0)return[[]];var f=r.fontFamily||Us.HOVERFONT,c=r.fontSize||Us.HOVERFONTSIZE,p=r.fontWeight||n.font.weight,x=r.fontStyle||n.font.style,g=r.fontVariant||n.font.variant,w=r.fontTextcase||n.font.textcase,M=r.fontLineposition||n.font.lineposition,m=r.fontShadow||n.font.shadow,k=e[0],S=k.xa,b=k.ya,T=a.charAt(0),h=T+"Label",_=k[h];if(_===void 0&&S.type==="multicategory")for(var y=0;yn.width-Xe&&(tr=n.width-Xe),ye.attr("d","M"+(Be-tr)+",0L"+(Be-tr+Nt)+","+We+Nt+"H"+Xe+"v"+We+(et*2+qe.height)+"H"+-Xe+"V"+We+Nt+"H"+(Be-tr-Nt)+"Z"),Be=tr,F.minX=Be-Xe,F.maxX=Be+Xe,S.side==="top"?(F.minY=Oe-(et*2+qe.height),F.maxY=Oe-et):(F.minY=Oe+et,F.maxY=Oe+(et*2+qe.height))}else{var ir,je,Ke;b.side==="right"?(ir="start",je=1,Ke="",Be=S._offset+S._length):(ir="end",je=-1,Ke="-",Be=S._offset),Oe=b._offset+(k.y0+k.y1)/2,de.attr("text-anchor",ir),ye.attr("d","M0,0L"+Ke+Nt+","+Nt+"V"+(et+qe.height/2)+"h"+Ke+(et*2+qe.width)+"V-"+(et+qe.height/2)+"H"+Ke+Nt+"V-"+Nt+"Z"),F.minY=Oe-(et+qe.height/2),F.maxY=Oe+(et+qe.height/2),b.side==="right"?(F.minX=Be+Nt,F.maxX=Be+Nt+(et*2+qe.width)):(F.minX=Be-Nt-(et*2+qe.width),F.maxX=Be-Nt);var Ee=qe.height/2,ze=A-qe.top-Ee,Qe="clip"+n._uid+"commonlabel"+b._id,er;if(Beye.hoverinfo!=="none");if(be.length===0)return[];var B=n.hoverlabel,O=B.font,V=be[0],K=((a==="x unified"?V.xa:V.ya).unifiedhovertitle||{}).text,j=K?Wt.hovertemplateString({data:a==="x unified"?[{xa:V.xa,x:V.xVal}]:[{ya:V.ya,y:V.yVal}],fallback:V.trace.hovertemplatefallback,locale:n._d3locale,template:K}):_,G={showlegend:!0,legend:{title:{text:j,font:O},font:O,bgcolor:B.bgcolor,bordercolor:B.bordercolor,borderwidth:1,tracegroupgap:7,traceorder:n.legend?n.legend.traceorder:void 0,orientation:"v"}},q={font:O};goe(G,q,t._fullData);var J=q.legend;J.entries=[];for(var te=0;te=0?ve=Y:$+ce=0?ve=$:pe+ce=0?he=Ce:le+Te=0?he=le:oe+Te=0,(be.idealAlign==="top"||!Tr)&&Fr?(Ke-=ze/2,be.anchor="end"):Tr?(Ke+=ze/2,be.anchor="start"):be.anchor="middle",be.crossPos=Ke;else{if(be.pos=Ke,Tr=je+Ee/2+Gr<=d,Fr=je-Ee/2-Gr>=0,(be.idealAlign==="left"||!Tr)&&Fr)je-=Ee/2,be.anchor="end";else if(Tr)je+=Ee/2,be.anchor="start";else{be.anchor="middle";var jr=Gr/2,Cr=je+jr-d,Zr=je-jr;Cr>0&&(je-=Cr),Zr<0&&(je+=-Zr)}be.crossPos=je}Oe.attr("text-anchor",be.anchor),Xe&&We.attr("text-anchor",be.anchor),ye.attr("transform",v5(je,Ke)+(o?voe(uE):""))}),{hoverLabels:me,commonLabelBoundingBox:F}}function aE(e,r,t,n,a,o){var c,p;var i="",l="";e.nameOverride!==void 0&&(e.name=e.nameOverride),e.name&&(e.trace._meta&&(e.name=Wt.templateString(e.name,e.trace._meta)),i=lE(e.name,e.nameLength));var u=t.charAt(0),s=u==="x"?"y":"x";e.zLabel!==void 0?(e.xLabel!==void 0&&(l+="x: "+e.xLabel+"
"),e.yLabel!==void 0&&(l+="y: "+e.yLabel+"
"),e.trace.type!=="choropleth"&&e.trace.type!=="choroplethmap"&&(l+=(l?"z: ":"")+e.zLabel)):r&&e[u+"Label"]===a?l=e[s+"Label"]||"":e.xLabel===void 0?e.yLabel!==void 0&&e.trace.type!=="scattercarpet"&&(l=e.yLabel):e.yLabel===void 0?l=e.xLabel:l="("+e.xLabel+", "+e.yLabel+")",(e.text||e.text===0)&&!Array.isArray(e.text)&&(l+=(l?"
":"")+e.text),e.extraText!==void 0&&(l+=(l?"
":"")+e.extraText),o&&l===""&&!e.hovertemplate&&(i===""&&o.remove(),l=i),(p=(c=e.trace)==null?void 0:c.hoverlabel)!=null&&p.split&&(e.hovertemplate="");let{hovertemplate:f=!1}=e;if(f){let x=e.hovertemplateLabels||e;e[u+"Label"]!==a&&(x[u+"other"]=x[u+"Val"],x[u+"otherLabel"]=x[u+"Label"]),l=Wt.hovertemplateString({data:[e.eventData[0]||{},e.trace._meta],fallback:e.trace.hovertemplatefallback,labels:x,locale:n._d3locale,template:f}),l=l.replace(Moe,(g,w)=>(i=lE(w,e.nameLength),""))}return[l,i]}function Toe(e,r,t,n){var a=r?"xa":"ya",o=r?"ya":"xa",i=0,l=1,u=e.size(),s=new Array(u),f=0,c=n.minX,p=n.maxX,x=n.minY,g=n.maxY,w=function(I){return I*t._invScaleX},M=function(I){return I*t._invScaleY};e.each(function(I){var P=I[a],L=I[o],F=P._id.charAt(0)==="x",B=P.range;f===0&&B&&B[0]>B[1]!==F&&(l=-1);var O=0,V=F?t.width:t.height;if(t.hovermode==="x"||t.hovermode==="y"){var K=vE(I,r),j=I.anchor,G=j==="end"?-1:1,q,J;if(j==="middle")q=I.crossPos+(F?M(K.y-I.by/2):w(I.bx/2+I.tx2width/2)),J=q+(F?M(I.by):w(I.bx));else if(F)q=I.crossPos+M(Nt+K.y)-M(I.by/2-Nt),J=q+M(I.by);else{var te=w(G*Nt+K.x),Z=te+w(G*I.bx);q=I.crossPos+Math.min(te,Z),J=I.crossPos+Math.max(te,Z)}F?x!==void 0&&g!==void 0&&Math.min(J,g)-Math.max(q,x)>1&&(L.side==="left"?(O=L._mainLinePosition,V=t.width):V=L._mainLinePosition):c!==void 0&&p!==void 0&&Math.min(J,p)-Math.max(q,c)>1&&(L.side==="top"?(O=L._mainLinePosition,V=t.height):V=L._mainLinePosition)}s[f++]=[{datum:I,traceIndex:I.trace.index,dp:0,pos:I.pos,posref:I.posref,size:I.by*(F?moe:1)/2,pmin:O,pmax:V}]}),s.sort(function(I,P){return I[0].posref-P[0].posref||l*(P[0].traceIndex-I[0].traceIndex)});var m,k,S,b,T,h,_;function y(I){var P=I[0],L=I[I.length-1];if(k=P.pmin-P.pos-P.dp+P.size,S=L.pos+L.dp+L.size-P.pmax,k>.01){for(T=I.length-1;T>=0;T--)I[T].dp+=k;m=!1}if(!(S<.01)){if(k<-.01){for(T=I.length-1;T>=0;T--)I[T].dp-=S;m=!1}if(m){var F=0;for(b=0;bP.pmax&&F++;for(b=I.length-1;b>=0&&!(F<=0);b--)h=I[b],h.pos>P.pmax-1&&(h.del=!0,F--);for(b=0;b=0;T--)I[T].dp-=S;for(b=I.length-1;b>=0&&!(F<=0);b--)h=I[b],h.pos+h.dp+h.size>P.pmax&&(h.del=!0,F--)}}}for(;!m&&i<=u;){for(i++,m=!0,b=0;b.01){for(T=A.length-1;T>=0;T--)A[T].dp+=k;for(v.push.apply(v,A),s.splice(b+1,1),_=0,T=v.length-1;T>=0;T--)_+=v[T].dp;for(S=_/v.length,T=v.length-1;T>=0;T--)v[T].dp-=S;m=!1}else b++}s.forEach(y)}for(b=s.length-1;b>=0;b--){var E=s[b];for(T=E.length-1;T>=0;T--){var R=E[T],z=R.datum;z.offset=R.dp,z.del=R.del}}}function vE(e,r){var t=0,n=e.offset;return r&&(n*=-xoe,t=e.offset*boe),{x:t,y:n}}function Aoe(e){var r={start:1,end:-1,middle:0}[e.anchor],t=r*(Nt+et),n=t+r*(e.txwidth+et),a=e.anchor==="middle";return a&&(t-=e.tx2width/2,n+=e.txwidth/2+et),{alignShift:r,textShiftX:t,text2ShiftX:n}}function hE(e,r,t,n){var a=function(i){return i*t},o=function(i){return i*n};e.each(function(i){var l=Os.select(this);if(i.del)return l.remove();var u=l.select("text.nums"),s=i.anchor,f=s==="end"?-1:1,c=Aoe(i),p=vE(i,r),x=p.x,g=p.y,w=s==="middle",M="hoverlabel"in i.trace?i.trace.hoverlabel.showarrow:!0,m;w?m="M-"+a(i.bx/2+i.tx2width/2)+","+o(g-i.by/2)+"h"+a(i.bx)+"v"+o(i.by)+"h-"+a(i.bx)+"Z":M?m="M0,0L"+a(f*Nt+x)+","+o(Nt+g)+"v"+o(i.by/2-Nt)+"h"+a(f*i.bx)+"v-"+o(i.by)+"H"+a(f*Nt+x)+"V"+o(g-Nt)+"Z":m="M"+a(f*Nt+x)+","+o(g-i.by/2)+"h"+a(f*i.bx)+"v"+o(i.by)+"h"+a(-f*i.bx)+"Z",l.select("path").attr("d",m);var k=x+c.textShiftX,S=g+i.ty0-i.by/2+et,b=i.textAlign||"auto";b!=="auto"&&(b==="left"&&s!=="start"?(u.attr("text-anchor","start"),k=w?-i.bx/2-i.tx2width/2+et:-i.bx-et):b==="right"&&s!=="end"&&(u.attr("text-anchor","end"),k=w?i.bx/2-i.tx2width/2-et:i.bx+et)),u.call(ai.positionText,a(k),o(S)),i.tx2width&&(l.select("text.name").call(ai.positionText,a(c.text2ShiftX+c.alignShift*et+x),o(g+i.ty0-i.by/2+et)),l.select("rect").call(co.setRect,a(c.text2ShiftX+(c.alignShift-1)*i.tx2width/2+x),o(g-i.by/2-1),a(i.tx2width),o(i.by+2)))})}function koe(e,r){var t=e.index,n=e.trace||{},a=e.cd[0],o=e.cd[t]||{};function i(p){return p||qo(p)&&p===0}var l=Array.isArray(t)?function(p,x){var g=Wt.castOption(a,t,p);return i(g)?g:Wt.extractOption({},n,"",x)}:function(p,x){return Wt.extractOption(o,n,p,x)};function u(p,x,g){var w=l(x,g);i(w)&&(e[p]=w)}if(u("hoverinfo","hi","hoverinfo"),u("bgcolor","hbg","hoverlabel.bgcolor"),u("borderColor","hbc","hoverlabel.bordercolor"),u("fontFamily","htf","hoverlabel.font.family"),u("fontSize","hts","hoverlabel.font.size"),u("fontColor","htc","hoverlabel.font.color"),u("fontWeight","htw","hoverlabel.font.weight"),u("fontStyle","hty","hoverlabel.font.style"),u("fontVariant","htv","hoverlabel.font.variant"),u("nameLength","hnl","hoverlabel.namelength"),u("textAlign","hta","hoverlabel.align"),e.posref=r==="y"||r==="closest"&&n.orientation==="h"?e.xa._offset+(e.x0+e.x1)/2:e.ya._offset+(e.y0+e.y1)/2,e.x0=Wt.constrain(e.x0,0,e.xa._length),e.x1=Wt.constrain(e.x1,0,e.xa._length),e.y0=Wt.constrain(e.y0,0,e.ya._length),e.y1=Wt.constrain(e.y1,0,e.ya._length),e.xLabelVal!==void 0&&(e.xLabel="xLabel"in e?e.xLabel:vo.hoverLabelText(e.xa,e.xLabelVal,n.xhoverformat),e.xVal=e.xa.c2d(e.xLabelVal)),e.yLabelVal!==void 0&&(e.yLabel="yLabel"in e?e.yLabel:vo.hoverLabelText(e.ya,e.yLabelVal,n.yhoverformat),e.yVal=e.ya.c2d(e.yLabelVal)),e.zLabelVal!==void 0&&e.zLabel===void 0&&(e.zLabel=String(e.zLabelVal)),!isNaN(e.xerr)&&!(e.xa.type==="log"&&e.xerr<=0)){var s=vo.tickText(e.xa,e.xa.c2l(e.xerr),"hover").text;e.xerrneg!==void 0?e.xLabel+=" +"+s+" / -"+vo.tickText(e.xa,e.xa.c2l(e.xerrneg),"hover").text:e.xLabel+=" \xB1 "+s,r==="x"&&(e.distance+=1)}if(!isNaN(e.yerr)&&!(e.ya.type==="log"&&e.yerr<=0)){var f=vo.tickText(e.ya,e.ya.c2l(e.yerr),"hover").text;e.yerrneg!==void 0?e.yLabel+=" +"+f+" / -"+vo.tickText(e.ya,e.ya.c2l(e.yerrneg),"hover").text:e.yLabel+=" \xB1 "+f,r==="y"&&(e.distance+=1)}var c=e.hoverinfo||e.trace.hoverinfo;return c&&c!=="all"&&(c=Array.isArray(c)?c:c.split("+"),c.indexOf("x")===-1&&(e.xLabel=void 0),c.indexOf("y")===-1&&(e.yLabel=void 0),c.indexOf("z")===-1&&(e.zLabel=void 0),c.indexOf("text")===-1&&(e.text=void 0),c.indexOf("name")===-1&&(e.name=void 0)),e}function iE(e,r,t){var n=t.container,a=t.fullLayout,o=a._size,i=t.event,l=!!r.hLinePoint,u=!!r.vLinePoint,s,f;if(n.selectAll(".spikeline").remove(),!!(u||l)){var c=un.combine(a.plot_bgcolor,a.paper_bgcolor);if(l){var p=r.hLinePoint,x,g;s=p&&p.xa,f=p&&p.ya;var w=f.spikesnap;w==="cursor"?(x=i.pointerX,g=i.pointerY):(x=s._offset+p.x,g=f._offset+p.y);var M=un.wcagContrast(p.color,c)<1.5?un.contrast(c):p.color,m=f.spikemode,k=f.spikethickness,S=f.spikecolor||M,b=vo.getPxPosition(e,f),T,h;if(m.indexOf("toaxis")!==-1||m.indexOf("across")!==-1){if(m.indexOf("toaxis")!==-1&&(T=b,h=x),m.indexOf("across")!==-1){var _=f._counterDomainMin,y=f._counterDomainMax;f.anchor==="free"&&(_=Math.min(_,f.position),y=Math.max(y,f.position)),T=o.l+_*o.w,h=o.l+y*o.w}n.insert("line",":first-child").attr({x1:T,x2:h,y1:g,y2:g,"stroke-width":k,stroke:S,"stroke-dasharray":co.dashStyle(f.spikedash,k)}).classed("spikeline",!0).classed("crisp",!0),n.insert("line",":first-child").attr({x1:T,x2:h,y1:g,y2:g,"stroke-width":k+2,stroke:c}).classed("spikeline",!0).classed("crisp",!0)}m.indexOf("marker")!==-1&&n.insert("circle",":first-child").attr({cx:b+(f.side!=="right"?k:-k),cy:g,r:k,fill:S}).classed("spikeline",!0)}if(u){var v=r.vLinePoint,A,d;s=v&&v.xa,f=v&&v.ya;var D=s.spikesnap;D==="cursor"?(A=i.pointerX,d=i.pointerY):(A=s._offset+v.x,d=f._offset+v.y);var E=un.wcagContrast(v.color,c)<1.5?un.contrast(c):v.color,R=s.spikemode,z=s.spikethickness,I=s.spikecolor||E,P=vo.getPxPosition(e,s),L,F;if(R.indexOf("toaxis")!==-1||R.indexOf("across")!==-1){if(R.indexOf("toaxis")!==-1&&(L=P,F=d),R.indexOf("across")!==-1){var B=s._counterDomainMin,O=s._counterDomainMax;s.anchor==="free"&&(B=Math.min(B,s.position),O=Math.max(O,s.position)),L=o.t+(1-O)*o.h,F=o.t+(1-B)*o.h}n.insert("line",":first-child").attr({x1:A,x2:A,y1:L,y2:F,"stroke-width":z,stroke:I,"stroke-dasharray":co.dashStyle(s.spikedash,z)}).classed("spikeline",!0).classed("crisp",!0),n.insert("line",":first-child").attr({x1:A,x2:A,y1:L,y2:F,"stroke-width":z+2,stroke:c}).classed("spikeline",!0).classed("crisp",!0)}R.indexOf("marker")!==-1&&n.insert("circle",":first-child").attr({cx:A,cy:P-(s.side!=="top"?z:-z),r:z,fill:I}).classed("spikeline",!0)}}}function Soe(e,r,t){if(!t||t.length!==e._hoverdata.length)return!0;for(var n=t.length-1;n>=0;n--){var a=t[n],o=e._hoverdata[n];if(a.curveNumber!==o.curveNumber||String(a.pointNumber)!==String(o.pointNumber)||String(a.pointNumbers)!==String(o.pointNumbers)||a.binNumber!==o.binNumber)return!0}return!1}function oE(e,r){return!r||r.vLinePoint!==e._spikepoints.vLinePoint||r.hLinePoint!==e._spikepoints.hLinePoint}function lE(e,r){return ai.plainText(e||"",{len:r,allowedTags:["br","sub","sup","b","i","em","s","u"]})}function Coe(e,r){for(var t=r.charAt(0),n=[],a=[],o=[],i=0;ie.offsetTop+e.clientTop,pE=e=>e.offsetLeft+e.clientLeft;function cu(e,r){var t=e._fullLayout,n=r.getBoundingClientRect(),a=n.left,o=n.top,i=a+n.width,l=o+n.height,u=Wt.apply3DTransform(t._invTransform)(a,o),s=Wt.apply3DTransform(t._invTransform)(i,l),f=u[0],c=u[1],p=s[0],x=s[1];return{x:f,y:c,width:p-f,height:x-c,top:Math.min(c,x),left:Math.min(f,p),right:Math.max(f,p),bottom:Math.max(c,x)}}});var r2=_e((q6e,gE)=>{"use strict";var Eoe=rr(),Loe=Wr(),Doe=io().isUnifiedHover;gE.exports=function(r,t,n,a){a=a||{};var o=t.legend;function i(l){a.font[l]||(a.font[l]=o?t.legend.font[l]:t.font[l])}t&&Doe(t.hovermode)&&(a.font||(a.font={}),i("size"),i("family"),i("color"),i("weight"),i("style"),i("variant"),o?(a.bgcolor||(a.bgcolor=Loe.combine(t.legend.bgcolor,t.paper_bgcolor)),a.bordercolor||(a.bordercolor=t.legend.bordercolor)):a.bgcolor||(a.bgcolor=t.paper_bgcolor)),n("hoverlabel.bgcolor",a.bgcolor),n("hoverlabel.bordercolor",a.bordercolor),n("hoverlabel.namelength",a.namelength),n("hoverlabel.showarrow",a.showarrow),Eoe.coerceFont(n,"hoverlabel.font",a.font),n("hoverlabel.align",a.align)}});var mE=_e((B6e,yE)=>{"use strict";var Roe=rr(),Foe=r2(),Poe=ss();yE.exports=function(r,t){function n(a,o){return Roe.coerce(r,t,Poe,a,o)}Foe(r,t,n)}});var _E=_e((O6e,xE)=>{"use strict";var bE=rr(),Ioe=rh(),zoe=r2();xE.exports=function(r,t,n,a){function o(l,u){return bE.coerce(r,t,Ioe,l,u)}var i=bE.extendFlat({},a.hoverlabel);t.hovertemplate&&(i.namelength=-1),zoe(r,t,o,i)}});var g5=_e((U6e,wE)=>{"use strict";var Noe=rr(),qoe=ss();wE.exports=function(r,t){function n(a,o){return t[a]!==void 0?t[a]:Noe.coerce(r,t,qoe,a,o)}return n("clickmode"),n("hoversubplots"),n("hoveranywhere"),n("clickanywhere"),n("hovermode")}});var AE=_e((H6e,TE)=>{"use strict";var ME=rr(),Boe=ss(),Ooe=g5(),Uoe=r2();TE.exports=function(r,t){function n(s,f){return ME.coerce(r,t,Boe,s,f)}var a=Ooe(r,t);a&&(n("hoverdistance"),n("spikedistance"),a.indexOf("unified")!==-1&&n("hoversort"));var o=n("dragmode");o==="select"&&n("selectdirection");var i=t._has("map"),l=t._has("geo"),u=t._basePlotModules.length;t.dragmode==="zoom"&&((i||l)&&u===1||i&&l&&u===2)&&(t.dragmode="pan"),Uoe(r,t,n),ME.coerceFont(n,"hoverlabel.grouptitlefont",t.hoverlabel.font)}});var CE=_e((V6e,SE)=>{"use strict";var y5=rr(),kE=Er();SE.exports=function(r){var t=r.calcdata,n=r._fullLayout;function a(s){return function(f){return y5.coerceHoverinfo({hoverinfo:f},{_module:s._module},n)}}for(var o=0;o{"use strict";var Voe=Er(),EE=io(),Goe=p5().hover;LE.exports=function(r,t,n){var a=Voe.getComponentMethod("annotations","onClick")(r,r._hoverdata),o=r._fullLayout;n!==void 0&&Goe(r,t,n,!0);function i(){var u,s,f,c,p,x;var l={points:r._hoverdata,event:t};(u=l.xaxes)!=null||(l.xaxes=r._hoverXAxes),(s=l.yaxes)!=null||(l.yaxes=r._hoverYAxes),(f=l.xvals)!=null||(l.xvals=r._hoverXVals&&EE.c2dApply(r._hoverXAxes,r._hoverXVals)),(c=l.yvals)!=null||(l.yvals=r._hoverYVals&&EE.c2dApply(r._hoverYAxes,r._hoverYVals)),(p=l.xPixel)!=null||(l.xPixel=r._hoverPointerX),(x=l.yPixel)!=null||(l.yPixel=r._hoverPointerY),r.emit("plotly_click",l)}(r._hoverdata||o.clickanywhere)&&t&&t.target&&(r._hoverdata||(r._hoverdata=[]),a&&a.then?a.then(i):i(),t.stopImmediatePropagation&&t.stopImmediatePropagation())}});var ho=_e((Y6e,PE)=>{"use strict";var Yoe=at(),t2=rr(),Xoe=Li(),cc=io(),RE=ss(),FE=p5();PE.exports={moduleType:"component",name:"fx",constants:(gf(),or(pf)),schema:{layout:RE},attributes:rh(),layoutAttributes:RE,supplyLayoutGlobalDefaults:mE(),supplyDefaults:_E(),supplyLayoutDefaults:AE(),calc:CE(),getDistanceFunction:cc.getDistanceFunction,getClosest:cc.getClosest,inbox:cc.inbox,quadrature:cc.quadrature,appendArrayPointValue:cc.appendArrayPointValue,castHoverOption:Zoe,castHoverinfo:Joe,hover:FE.hover,unhover:Xoe.unhover,loneHover:FE.loneHover,loneUnhover:Woe,click:DE()};function Woe(e){var r=t2.isD3Selection(e)?e:Yoe.select(e);r.selectAll("g.hovertext").remove(),r.selectAll(".spikeline").remove()}function Zoe(e,r,t){return t2.castOption(e,r,"hoverlabel."+t)}function Joe(e,r,t){function n(a){return t2.coerceHoverinfo({hoverinfo:a},{_module:e._module},r)}return t2.castOption(e,t,"hoverinfo",n)}});var hu=_e(Bo=>{"use strict";Bo.selectMode=function(e){return e==="lasso"||e==="select"};Bo.drawMode=function(e){return e==="drawclosedpath"||e==="drawopenpath"||e==="drawline"||e==="drawrect"||e==="drawcircle"};Bo.openMode=function(e){return e==="drawline"||e==="drawopenpath"};Bo.rectMode=function(e){return e==="select"||e==="drawline"||e==="drawrect"||e==="drawcircle"};Bo.freeMode=function(e){return e==="lasso"||e==="drawclosedpath"||e==="drawopenpath"};Bo.selectingOrDrawing=function(e){return Bo.freeMode(e)||Bo.rectMode(e)}});var n2=_e((W6e,IE)=>{"use strict";IE.exports=function(r){var t=r._fullLayout;t._glcanvas&&t._glcanvas.size()&&t._glcanvas.each(function(n){n.regl&&n.regl.clear({color:!0,depth:!0})})}});var a2=_e((Z6e,zE)=>{"use strict";zE.exports={undo:{width:857.1,height:1e3,path:"m857 350q0-87-34-166t-91-137-137-92-166-34q-96 0-183 41t-147 114q-4 6-4 13t5 11l76 77q6 5 14 5 9-1 13-7 41-53 100-82t126-29q58 0 110 23t92 61 61 91 22 111-22 111-61 91-92 61-110 23q-55 0-105-20t-90-57l77-77q17-16 8-38-10-23-33-23h-250q-15 0-25 11t-11 25v250q0 24 22 33 22 10 39-8l72-72q60 57 137 88t159 31q87 0 166-34t137-92 91-137 34-166z",transform:"matrix(1 0 0 -1 0 850)"},home:{width:928.6,height:1e3,path:"m786 296v-267q0-15-11-26t-25-10h-214v214h-143v-214h-214q-15 0-25 10t-11 26v267q0 1 0 2t0 2l321 264 321-264q1-1 1-4z m124 39l-34-41q-5-5-12-6h-2q-7 0-12 3l-386 322-386-322q-7-4-13-4-7 2-12 7l-35 41q-4 5-3 13t6 12l401 334q18 15 42 15t43-15l136-114v109q0 8 5 13t13 5h107q8 0 13-5t5-13v-227l122-102q5-5 6-12t-4-13z",transform:"matrix(1 0 0 -1 0 850)"},"camera-retro":{width:1e3,height:1e3,path:"m518 386q0 8-5 13t-13 5q-37 0-63-27t-26-63q0-8 5-13t13-5 12 5 5 13q0 23 16 38t38 16q8 0 13 5t5 13z m125-73q0-59-42-101t-101-42-101 42-42 101 42 101 101 42 101-42 42-101z m-572-320h858v71h-858v-71z m643 320q0 89-62 152t-152 62-151-62-63-152 63-151 151-63 152 63 62 151z m-571 358h214v72h-214v-72z m-72-107h858v143h-462l-36-71h-360v-72z m929 143v-714q0-30-21-51t-50-21h-858q-29 0-50 21t-21 51v714q0 30 21 51t50 21h858q29 0 50-21t21-51z",transform:"matrix(1 0 0 -1 0 850)"},curlybraces:{width:18,height:16,path:"M 9,4 C 7.354992,4 6,5.354992 6,7 V 9 C 6,9.2999997 5.8778068,9.8883542 5.5878906,10.291016 5.2979744,10.693677 4.9222213,11 4,11 a 1.0001,1.0001 0 0 0 0,2 c 0.2999997,0 0.8883542,0.122193 1.2910156,0.412109 C 5.693677,13.702026 6,14.077779 6,15 v 2 c 0,1.645008 1.354992,3 3,3 h 0.5 a 1,1 0 0 0 1,-1 1,1 0 0 0 -1,-1 H 9 C 8.4358712,18 8,17.564129 8,17 V 15 C 8,13.625876 7.3766799,12.602305 6.6113281,11.96875 6.8086352,11.794047 7.0679793,11.657537 7.2109375,11.458984 7.8210204,10.611647 8,9.6999993 8,9 V 7 C 8,6.4358712 8.4358712,6 9,6 h 0.5 a 1,1 0 0 0 1,-1 1,1 0 0 0 -1,-1 z m 5.5,0 a 1,1 0 0 0 -1,1 1,1 0 0 0 1,1 H 15 c 0.564129,0 1,0.4358712 1,1 v 2 c 0,0.6999993 0.17898,1.611647 0.789062,2.458984 0.142959,0.198553 0.402303,0.335063 0.59961,0.509766 C 16.62332,12.602305 16,13.625876 16,15 v 2 c 0,0.564129 -0.435871,1 -1,1 h -0.5 a 1,1 0 0 0 -1,1 1,1 0 0 0 1,1 H 15 c 1.645008,0 3,-1.354992 3,-3 v -2 c 0,-0.922221 0.306323,-1.297974 0.708984,-1.587891 C 19.111646,13.122193 19.7,13 20,13 a 1.0001,1.0001 0 0 0 0,-2 C 19.077779,11 18.702026,10.693677 18.412109,10.291016 18.122193,9.8883542 18,9.2999997 18,9 V 7 C 18,5.354992 16.645008,4 15,4 Z",transform:"translate(-3 -4)"},zoombox:{width:1e3,height:1e3,path:"m1000-25l-250 251c40 63 63 138 63 218 0 224-182 406-407 406-224 0-406-182-406-406s183-406 407-406c80 0 155 22 218 62l250-250 125 125z m-812 250l0 438 437 0 0-438-437 0z m62 375l313 0 0-312-313 0 0 312z",transform:"matrix(1 0 0 -1 0 850)"},pan:{width:1e3,height:1e3,path:"m1000 350l-187 188 0-125-250 0 0 250 125 0-188 187-187-187 125 0 0-250-250 0 0 125-188-188 186-187 0 125 252 0 0-250-125 0 187-188 188 188-125 0 0 250 250 0 0-126 187 188z",transform:"matrix(1 0 0 -1 0 850)"},zoom_plus:{width:875,height:1e3,path:"m1 787l0-875 875 0 0 875-875 0z m687-500l-187 0 0-187-125 0 0 187-188 0 0 125 188 0 0 187 125 0 0-187 187 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},zoom_minus:{width:875,height:1e3,path:"m0 788l0-876 875 0 0 876-875 0z m688-500l-500 0 0 125 500 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},autoscale:{width:1e3,height:1e3,path:"m250 850l-187 0-63 0 0-62 0-188 63 0 0 188 187 0 0 62z m688 0l-188 0 0-62 188 0 0-188 62 0 0 188 0 62-62 0z m-875-938l0 188-63 0 0-188 0-62 63 0 187 0 0 62-187 0z m875 188l0-188-188 0 0-62 188 0 62 0 0 62 0 188-62 0z m-125 188l-1 0-93-94-156 156 156 156 92-93 2 0 0 250-250 0 0-2 93-92-156-156-156 156 94 92 0 2-250 0 0-250 0 0 93 93 157-156-157-156-93 94 0 0 0-250 250 0 0 0-94 93 156 157 156-157-93-93 0 0 250 0 0 250z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_basic:{width:1500,height:1e3,path:"m375 725l0 0-375-375 375-374 0-1 1125 0 0 750-1125 0z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_compare:{width:1125,height:1e3,path:"m187 786l0 2-187-188 188-187 0 0 937 0 0 373-938 0z m0-499l0 1-187-188 188-188 0 0 937 0 0 376-938-1z",transform:"matrix(1 0 0 -1 0 850)"},plotlylogo:{width:1542,height:1e3,path:"m0-10h182v-140h-182v140z m228 146h183v-286h-183v286z m225 714h182v-1000h-182v1000z m225-285h182v-715h-182v715z m225 142h183v-857h-183v857z m231-428h182v-429h-182v429z m225-291h183v-138h-183v138z",transform:"matrix(1 0 0 -1 0 850)"},"z-axis":{width:1e3,height:1e3,path:"m833 5l-17 108v41l-130-65 130-66c0 0 0 38 0 39 0-1 36-14 39-25 4-15-6-22-16-30-15-12-39-16-56-20-90-22-187-23-279-23-261 0-341 34-353 59 3 60 228 110 228 110-140-8-351-35-351-116 0-120 293-142 474-142 155 0 477 22 477 142 0 50-74 79-163 96z m-374 94c-58-5-99-21-99-40 0-24 65-43 144-43 79 0 143 19 143 43 0 19-42 34-98 40v216h87l-132 135-133-135h88v-216z m167 515h-136v1c16 16 31 34 46 52l84 109v54h-230v-71h124v-1c-16-17-28-32-44-51l-89-114v-51h245v72z",transform:"matrix(1 0 0 -1 0 850)"},"3d_rotate":{width:1e3,height:1e3,path:"m922 660c-5 4-9 7-14 11-359 263-580-31-580-31l-102 28 58-400c0 1 1 1 2 2 118 108 351 249 351 249s-62 27-100 42c88 83 222 183 347 122 16-8 30-17 44-27-2 1-4 2-6 4z m36-329c0 0 64 229-88 296-62 27-124 14-175-11 157-78 225-208 249-266 8-19 11-31 11-31 2 5 6 15 11 32-5-13-8-20-8-20z m-775-239c70-31 117-50 198-32-121 80-199 346-199 346l-96-15-58-12c0 0 55-226 155-287z m603 133l-317-139c0 0 4-4 19-14 7-5 24-15 24-15s-177-147-389 4c235-287 536-112 536-112l31-22 100 299-4-1z m-298-153c6-4 14-9 24-15 0 0-17 10-24 15z",transform:"matrix(1 0 0 -1 0 850)"},camera:{width:1e3,height:1e3,path:"m500 450c-83 0-150-67-150-150 0-83 67-150 150-150 83 0 150 67 150 150 0 83-67 150-150 150z m400 150h-120c-16 0-34 13-39 29l-31 93c-6 15-23 28-40 28h-340c-16 0-34-13-39-28l-31-94c-6-15-23-28-40-28h-120c-55 0-100-45-100-100v-450c0-55 45-100 100-100h800c55 0 100 45 100 100v450c0 55-45 100-100 100z m-400-550c-138 0-250 112-250 250 0 138 112 250 250 250 138 0 250-112 250-250 0-138-112-250-250-250z m365 380c-19 0-35 16-35 35 0 19 16 35 35 35 19 0 35-16 35-35 0-19-16-35-35-35z",transform:"matrix(1 0 0 -1 0 850)"},movie:{width:1e3,height:1e3,path:"m938 413l-188-125c0 37-17 71-44 94 64 38 107 107 107 187 0 121-98 219-219 219-121 0-219-98-219-219 0-61 25-117 66-156h-115c30 33 49 76 49 125 0 103-84 187-187 187s-188-84-188-187c0-57 26-107 65-141-38-22-65-62-65-109v-250c0-70 56-126 125-126h500c69 0 125 56 125 126l188-126c34 0 62 28 62 63v375c0 35-28 63-62 63z m-750 0c-69 0-125 56-125 125s56 125 125 125 125-56 125-125-56-125-125-125z m406-1c-87 0-157 70-157 157 0 86 70 156 157 156s156-70 156-156-70-157-156-157z",transform:"matrix(1 0 0 -1 0 850)"},question:{width:857.1,height:1e3,path:"m500 82v107q0 8-5 13t-13 5h-107q-8 0-13-5t-5-13v-107q0-8 5-13t13-5h107q8 0 13 5t5 13z m143 375q0 49-31 91t-77 65-95 23q-136 0-207-119-9-14 4-24l74-55q4-4 10-4 9 0 14 7 30 38 48 51 19 14 48 14 27 0 48-15t21-33q0-21-11-34t-38-25q-35-16-65-48t-29-70v-20q0-8 5-13t13-5h107q8 0 13 5t5 13q0 10 12 27t30 28q18 10 28 16t25 19 25 27 16 34 7 45z m214-107q0-117-57-215t-156-156-215-58-216 58-155 156-58 215 58 215 155 156 216 58 215-58 156-156 57-215z",transform:"matrix(1 0 0 -1 0 850)"},disk:{width:857.1,height:1e3,path:"m214-7h429v214h-429v-214z m500 0h72v500q0 8-6 21t-11 20l-157 156q-5 6-19 12t-22 5v-232q0-22-15-38t-38-16h-322q-22 0-37 16t-16 38v232h-72v-714h72v232q0 22 16 38t37 16h465q22 0 38-16t15-38v-232z m-214 518v178q0 8-5 13t-13 5h-107q-7 0-13-5t-5-13v-178q0-8 5-13t13-5h107q7 0 13 5t5 13z m357-18v-518q0-22-15-38t-38-16h-750q-23 0-38 16t-16 38v750q0 22 16 38t38 16h517q23 0 50-12t42-26l156-157q16-15 27-42t11-49z",transform:"matrix(1 0 0 -1 0 850)"},cloudupload:{width:640,height:640,path:"M451.5 160C434.9 160 418.8 164.5 404.7 172.7C388.9 156.7 370.5 143.3 350.2 133.2C378.4 109.2 414.3 96 451.5 96C537.9 96 608 166 608 252.5C608 294 591.5 333.8 562.2 363.1L491.1 434.2C461.8 463.5 422 480 380.5 480C294.1 480 224 410 224 323.5C224 322 224 320.5 224.1 319C224.6 301.3 239.3 287.4 257 287.9C274.7 288.4 288.6 303.1 288.1 320.8C288.1 321.7 288.1 322.6 288.1 323.4C288.1 374.5 329.5 415.9 380.6 415.9C405.1 415.9 428.6 406.2 446 388.8L517.1 317.7C534.4 300.4 544.2 276.8 544.2 252.3C544.2 201.2 502.8 159.8 451.7 159.8zM307.2 237.3C305.3 236.5 303.4 235.4 301.7 234.2C289.1 227.7 274.7 224 259.6 224C235.1 224 211.6 233.7 194.2 251.1L123.1 322.2C105.8 339.5 96 363.1 96 387.6C96 438.7 137.4 480.1 188.5 480.1C205 480.1 221.1 475.7 235.2 467.5C251 483.5 269.4 496.9 289.8 507C261.6 530.9 225.8 544.2 188.5 544.2C102.1 544.2 32 474.2 32 387.7C32 346.2 48.5 306.4 77.8 277.1L148.9 206C178.2 176.7 218 160.2 259.5 160.2C346.1 160.2 416 230.8 416 317.1C416 318.4 416 319.7 416 321C415.6 338.7 400.9 352.6 383.2 352.2C365.5 351.8 351.6 337.1 352 319.4C352 318.6 352 317.9 352 317.1C352 283.4 334 253.8 307.2 237.5z",transform:"matrix(1 0 0 1 -15 -15)"},drawopenpath:{width:70,height:70,path:"M33.21,85.65a7.31,7.31,0,0,1-2.59-.48c-8.16-3.11-9.27-19.8-9.88-41.3-.1-3.58-.19-6.68-.35-9-.15-2.1-.67-3.48-1.43-3.79-2.13-.88-7.91,2.32-12,5.86L3,32.38c1.87-1.64,11.55-9.66,18.27-6.9,2.13.87,4.75,3.14,5.17,9,.17,2.43.26,5.59.36,9.25a224.17,224.17,0,0,0,1.5,23.4c1.54,10.76,4,12.22,4.48,12.4.84.32,2.79-.46,5.76-3.59L43,80.07C41.53,81.57,37.68,85.64,33.21,85.65ZM74.81,69a11.34,11.34,0,0,0,6.09-6.72L87.26,44.5,74.72,32,56.9,38.35c-2.37.86-5.57,3.42-6.61,6L38.65,72.14l8.42,8.43ZM55,46.27a7.91,7.91,0,0,1,3.64-3.17l14.8-5.3,8,8L76.11,60.6l-.06.19a6.37,6.37,0,0,1-3,3.43L48.25,74.59,44.62,71Zm16.57,7.82A6.9,6.9,0,1,0,64.64,61,6.91,6.91,0,0,0,71.54,54.09Zm-4.05,0a2.85,2.85,0,1,1-2.85-2.85A2.86,2.86,0,0,1,67.49,54.09Zm-4.13,5.22L60.5,56.45,44.26,72.7l2.86,2.86ZM97.83,35.67,84.14,22l-8.57,8.57L89.26,44.24Zm-13.69-8,8,8-2.85,2.85-8-8Z",transform:"matrix(1 0 0 1 -15 -15)"},drawclosedpath:{width:90,height:90,path:"M88.41,21.12a26.56,26.56,0,0,0-36.18,0l-2.07,2-2.07-2a26.57,26.57,0,0,0-36.18,0,23.74,23.74,0,0,0,0,34.8L48,90.12a3.22,3.22,0,0,0,4.42,0l36-34.21a23.73,23.73,0,0,0,0-34.79ZM84,51.24,50.16,83.35,16.35,51.25a17.28,17.28,0,0,1,0-25.47,20,20,0,0,1,27.3,0l4.29,4.07a3.23,3.23,0,0,0,4.44,0l4.29-4.07a20,20,0,0,1,27.3,0,17.27,17.27,0,0,1,0,25.46ZM66.76,47.68h-33v6.91h33ZM53.35,35H46.44V68h6.91Z",transform:"matrix(1 0 0 1 -5 -5)"},lasso:{width:1031,height:1e3,path:"m1018 538c-36 207-290 336-568 286-277-48-473-256-436-463 10-57 36-108 76-151-13-66 11-137 68-183 34-28 75-41 114-42l-55-70 0 0c-2-1-3-2-4-3-10-14-8-34 5-45 14-11 34-8 45 4 1 1 2 3 2 5l0 0 113 140c16 11 31 24 45 40 4 3 6 7 8 11 48-3 100 0 151 9 278 48 473 255 436 462z m-624-379c-80 14-149 48-197 96 42 42 109 47 156 9 33-26 47-66 41-105z m-187-74c-19 16-33 37-39 60 50-32 109-55 174-68-42-25-95-24-135 8z m360 75c-34-7-69-9-102-8 8 62-16 128-68 170-73 59-175 54-244-5-9 20-16 40-20 61-28 159 121 317 333 354s407-60 434-217c28-159-121-318-333-355z",transform:"matrix(1 0 0 -1 0 850)"},selectbox:{width:1e3,height:1e3,path:"m0 850l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-285l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z",transform:"matrix(1 0 0 -1 0 850)"},drawline:{width:70,height:70,path:"M60.64,62.3a11.29,11.29,0,0,0,6.09-6.72l6.35-17.72L60.54,25.31l-17.82,6.4c-2.36.86-5.57,3.41-6.6,6L24.48,65.5l8.42,8.42ZM40.79,39.63a7.89,7.89,0,0,1,3.65-3.17l14.79-5.31,8,8L61.94,54l-.06.19a6.44,6.44,0,0,1-3,3.43L34.07,68l-3.62-3.63Zm16.57,7.81a6.9,6.9,0,1,0-6.89,6.9A6.9,6.9,0,0,0,57.36,47.44Zm-4,0a2.86,2.86,0,1,1-2.85-2.85A2.86,2.86,0,0,1,53.32,47.44Zm-4.13,5.22L46.33,49.8,30.08,66.05l2.86,2.86ZM83.65,29,70,15.34,61.4,23.9,75.09,37.59ZM70,21.06l8,8-2.84,2.85-8-8ZM87,80.49H10.67V87H87Z",transform:"matrix(1 0 0 1 -15 -15)"},drawrect:{width:80,height:80,path:"M78,22V79H21V22H78m9-9H12V88H87V13ZM68,46.22H31V54H68ZM53,32H45.22V69H53Z",transform:"matrix(1 0 0 1 -10 -10)"},drawcircle:{width:80,height:80,path:"M50,84.72C26.84,84.72,8,69.28,8,50.3S26.84,15.87,50,15.87,92,31.31,92,50.3,73.16,84.72,50,84.72Zm0-60.59c-18.6,0-33.74,11.74-33.74,26.17S31.4,76.46,50,76.46,83.74,64.72,83.74,50.3,68.6,24.13,50,24.13Zm17.15,22h-34v7.11h34Zm-13.8-13H46.24v34h7.11Z",transform:"matrix(1 0 0 1 -10 -10)"},eraseshape:{width:80,height:80,path:"M82.77,78H31.85L6,49.57,31.85,21.14H82.77a8.72,8.72,0,0,1,8.65,8.77V69.24A8.72,8.72,0,0,1,82.77,78ZM35.46,69.84H82.77a.57.57,0,0,0,.49-.6V29.91a.57.57,0,0,0-.49-.61H35.46L17,49.57Zm32.68-34.7-24,24,5,5,24-24Zm-19,.53-5,5,24,24,5-5Z",transform:"matrix(1 0 0 1 -10 -10)"},spikeline:{width:1e3,height:1e3,path:"M512 409c0-57-46-104-103-104-57 0-104 47-104 104 0 57 47 103 104 103 57 0 103-46 103-103z m-327-39l92 0 0 92-92 0z m-185 0l92 0 0 92-92 0z m370-186l92 0 0 93-92 0z m0-184l92 0 0 92-92 0z",transform:"matrix(1.5 0 0 -1.5 0 850)"},pencil:{width:1792,height:1792,path:"M491 1536l91-91-235-235-91 91v107h128v128h107zm523-928q0-22-22-22-10 0-17 7l-542 542q-7 7-7 17 0 22 22 22 10 0 17-7l542-542q7-7 7-17zm-54-192l416 416-832 832h-416v-416zm683 96q0 53-37 90l-166 166-416-416 166-165q36-38 90-38 53 0 91 38l235 234q37 39 37 91z",transform:"matrix(1 0 0 1 0 1)"},newplotlylogo:{name:"newplotlylogo",svg:[""," plotly-logomark"," "," "," "," "," "," "," "," "," "," "," "," "," ",""].join("")}}});var i2={};Ut(i2,{CIRCLE_SIDES:()=>$oe,SQRT2:()=>nle,cos45:()=>rle,i000:()=>Koe,i090:()=>Qoe,i180:()=>joe,i270:()=>ele,sin45:()=>tle});var $oe,Koe,Qoe,joe,ele,rle,tle,nle,o2=Ot(()=>{"use strict";$oe=32,Koe=0,Qoe=8,joe=16,ele=24,rle=Math.cos(Math.PI/4),tle=Math.sin(Math.PI/4),nle=Math.sqrt(2)});var l2=_e((J6e,qE)=>{"use strict";var ale=rr().strTranslate;function NE(e,r){switch(e.type){case"log":return e.p2d(r);case"date":return e.p2r(r,0,e.calendar);default:return e.p2r(r)}}function ile(e,r){switch(e.type){case"log":return e.d2p(r);case"date":return e.r2p(r,0,e.calendar);default:return e.r2p(r)}}function ole(e){var r=e._id.charAt(0)==="y"?1:0;return function(t){return NE(e,t[r])}}function lle(e){return ale(e.xaxis._offset,e.yaxis._offset)}qE.exports={p2r:NE,r2p:ile,axValue:ole,getTransform:lle}});var Dl=_e(Oo=>{"use strict";var sle=am(),UE=(o2(),or(i2)),du=UE.CIRCLE_SIDES,m5=UE.SQRT2,HE=l2(),BE=HE.p2r,OE=HE.r2p,ule=[0,3,4,5,6,1,2],fle=[0,3,4,1,2];Oo.writePaths=function(e){var r=e.length;if(!r)return"M0,0Z";for(var t="",n=0;n0&&u{"use strict";var VE=hn(),ZE=hu(),cle=ZE.drawMode,vle=ZE.openMode,pu=(o2(),or(i2)),GE=pu.i000,YE=pu.i090,XE=pu.i180,WE=pu.i270,hle=pu.cos45,dle=pu.sin45,JE=l2(),u2=JE.p2r,Rl=JE.r2p,ple=ml(),gle=ple.clearOutline,f2=Dl(),yle=f2.readPaths,mle=f2.writePaths,ble=f2.ellipseOver,xle=f2.fixDatesForPaths;function _le(e,r){if(e.length){var t=e[0][0];if(t){var n=r.gd,a=r.isActiveShape,o=r.dragmode,i=(n.layout||{}).shapes||[];if(!cle(o)&&a!==void 0){var l=n._fullLayout._activeShapeIndex;if(l{"use strict";var wle=hu(),Mle=wle.selectMode,Tle=ml(),Ale=Tle.clearOutline,b5=Dl(),kle=b5.readPaths,Sle=b5.writePaths,Cle=b5.fixDatesForPaths;QE.exports=function(r,t){if(r.length){var n=r[0][0];if(n){var a=n.getAttribute("d"),o=t.gd,i=o._fullLayout.newselection,l=t.plotinfo,u=l.xaxis,s=l.yaxis,f=t.isActiveSelection,c=t.dragmode,p=(o.layout||{}).selections||[];if(!Mle(c)&&f!==void 0){var x=o._fullLayout._activeSelectionIndex;if(xFle,paramIsX:()=>Dle,paramIsY:()=>Rle,paramRE:()=>Lle,segmentRE:()=>Ele});var Ele,Lle,Dle,Rle,Fle,dc=Ot(()=>{"use strict";Ele=/[MLHVQCTSZ][^MLHVQCTSZ]*/g,Lle=/[^\s,]+/g,Dle={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:{}},Rle={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:3},Z:{}},Fle={M:2,L:2,H:1,V:1,Q:4,C:6,T:2,S:4,Z:0}});var Pl=_e(Ln=>{"use strict";var go=(dc(),or(hc)),jE=rr(),Fl=Ht();Ln.rangeToShapePosition=function(e){return e.type==="log"?e.r2d:function(r){return r}};Ln.shapePositionToRange=function(e){return e.type==="log"?e.d2r:function(r){return r}};Ln.decodeDate=function(e){return function(r){return r.replace&&(r=r.replace("_"," ")),e(r)}};Ln.encodeDate=function(e){return function(r){return e(r).replace(" ","_")}};Ln.extractPathCoords=function(e,r,t){var n=[],a=e.match(go.segmentRE);return a.forEach(function(o){var i=r[o.charAt(0)].drawn;if(i!==void 0){var l=o.slice(1).match(go.paramRE);if(!(!l||l.length{let l=i.charAt(0),u=a[l].drawn!==void 0;return o+(u?1:0)},0)};Ln.getDataToPixel=function(e,r,t,n,a){var o=e._fullLayout._size,i;if(r)if(a==="domain")i=function(u){return r._length*(n?1-u:u)+r._offset};else{var l=Ln.shapePositionToRange(r);i=function(u){var s=po(r,t);return r._offset+r.r2p(l(u,!0))+s},r.type==="date"&&(i=Ln.decodeDate(i))}else n?i=function(u){return o.t+o.h*(1-u)}:i=function(u){return o.l+o.w*u};return i};Ln.getPixelToData=function(e,r,t,n){var a=e._fullLayout._size,o;if(r)if(n==="domain")o=function(l){var u=(l-r._offset)/r._length;return t?1-u:u};else{var i=Ln.rangeToShapePosition(r);o=function(l){return i(r.p2r(l-r._offset))}}else t?o=function(l){return 1-(l-a.t)/a.h}:o=function(l){return(l-a.l)/a.w};return o};Ln.roundPositionForSharpStrokeRendering=function(e,r){var t=Math.round(r%2)===1,n=Math.round(e);return t?n+.5:n};Ln.makeShapesOptionsAndPlotinfo=function(e,r){var t=e._fullLayout.shapes[r]||{},n=e._fullLayout._plots[t.xref+t.yref],a=!!n;return a?n._hadPlotinfo=!0:(n={},t.xref&&t.xref!=="paper"&&(n.xaxis=e._fullLayout[t.xref+"axis"]),t.yref&&t.yref!=="paper"&&(n.yaxis=e._fullLayout[t.yref+"axis"])),n.xsizemode=t.xsizemode,n.ysizemode=t.ysizemode,n.xanchor=t.xanchor,n.yanchor=t.yanchor,{options:t,plotinfo:n}};Ln.makeSelectionsOptionsAndPlotinfo=function(e,r){var t=e._fullLayout.selections[r]||{},n=e._fullLayout._plots[t.xref+t.yref],a=!!n;return a?n._hadPlotinfo=!0:(n={},t.xref&&(n.xaxis=e._fullLayout[t.xref+"axis"]),t.yref&&(n.yaxis=e._fullLayout[t.yref+"axis"])),{options:t,plotinfo:n}};Ln.getPathString=function(e,r){let t=r.type,n=Fl.getRefType(r.xref),a=Fl.getRefType(r.yref),o=e._fullLayout._size;var i,l,u,s,f,c,p,x,g,w,M,m;function k(A,d,D,E){var R;if(A)if(d==="domain")E?R=function(z){return A._offset+A._length*(1-z)}:R=function(z){return A._offset+A._length*z};else{let z=Ln.shapePositionToRange(A);R=function(I){return A._offset+A.r2p(z(I,!0))},D==="path"&&A.type==="date"&&(R=Ln.decodeDate(R))}else E?R=function(z){return o.t+o.h*(1-z)}:R=function(z){return o.l+o.w*z};return R}if(n==="array"?(p=[],i=r.xref.map(function(A){return Fl.getFromId(e,A)}),p=r.xref.map(function(A,d){return k(i[d],Fl.getRefType(A),t,!1)})):(i=Fl.getFromId(e,r.xref),p=k(i,n,t,!1)),a==="array"?(x=[],l=r.yref.map(function(A){return Fl.getFromId(e,A)}),x=r.yref.map(function(A,d){return k(l[d],Fl.getRefType(A),t,!0)})):(l=Fl.getFromId(e,r.yref),x=k(l,a,t,!0)),t==="path")return Ple(r,p,x);if(n==="array")u=po(i[0],r.x0shift),s=po(i[1],r.x1shift),g=p[0](r.x0)+u,w=p[1](r.x1)+s;else if(u=po(i,r.x0shift),s=po(i,r.x1shift),r.xsizemode==="pixel"){let A=p(r.xanchor);g=A+r.x0+u,w=A+r.x1+s}else g=p(r.x0)+u,w=p(r.x1)+s;if(a==="array")f=po(l[0],r.y0shift),c=po(l[1],r.y1shift),M=x[0](r.y0)+f,m=x[1](r.y1)+c;else if(f=po(l,r.y0shift),c=po(l,r.y1shift),r.ysizemode==="pixel"){let A=x(r.yanchor);M=A-r.y0+f,m=A-r.y1+c}else M=x(r.y0)+f,m=x(r.y1)+c;if(t==="line")return"M"+g+","+M+"L"+w+","+m;if(t==="rect")return"M"+g+","+M+"H"+w+"V"+m+"H"+g+"Z";var S=(g+w)/2,b=(M+m)/2,T=Math.abs(S-g),h=Math.abs(b-M),_="A"+T+","+h,y=S+T+","+b,v=S+","+(b-h);return"M"+y+_+" 0 1,1 "+v+_+" 0 0,1 "+y+"Z"};function Ple(e,r,t){let n=e.path,a=e.xsizemode,o=e.ysizemode,i=e.xanchor,l=e.yanchor,u=Array.isArray(e.xref),s=Array.isArray(e.yref);var f=0,c=0;return n.replace(go.segmentRE,function(p){var x=0,g=p.charAt(0),w=go.paramIsX[g],M=go.paramIsY[g],m=go.numParams[g];let k=w.drawn!==void 0,S=M.drawn!==void 0,b=u?r[f]:r,T=s?t[c]:t;var h=p.slice(1).replace(go.paramRE,function(_){return w[x]?a==="pixel"?_=b(i)+Number(_):_=b(_):M[x]&&(o==="pixel"?_=T(l)-Number(_):_=T(_)),x++,x>m&&(_="X"),_});return x>m&&(h=h.replace(/[\s,]*X.*/,""),jE.log("Ignoring extra params in segment "+p)),k&&f++,S&&c++,g+h})}Ln.getPixelShift=po;function po(e,r){r=r||0;var t=0;return r&&e&&(e.type==="category"||e.type==="multicategory")&&(t=(e.r2p(1)-e.r2p(0))*r),t}});var _5=_e((e_e,tL)=>{"use strict";var Ile=rr(),yo=Ht(),eL=Wn(),rL=Tt(),zle=Dl().readPaths,Hs=Pl(),Nle=Hs.getPathString,pc=zh(),qle=(Xn(),or(Yn)).FROM_TL;tL.exports=function(r,t,n,a){if(a.selectAll(".shape-label").remove(),!!(n.label.text||n.label.texttemplate)){var o;if(n.label.texttemplate){var i={};if(n.type!=="path"){var l=yo.getFromId(r,n.xref),u=yo.getFromId(r,n.yref);let O=Array.isArray(n.xref),V=Array.isArray(n.yref);for(var s in pc){var f=typeof pc[s]=="function",c=!O||pc.simpleXVariables.includes(s),p=!V||pc.simpleYVariables.includes(s);if(f&&c&&p){var x=pc[s](n,l,u);x!==void 0&&(i[s]=x)}}}o=Ile.texttemplateStringForShapes({data:[i],fallback:n.label.texttemplatefallback,locale:r._fullLayout._d3locale,template:n.label.texttemplate})}else o=n.label.text;var g={"data-index":t},w=n.label.font,M={"data-notex":1},m=a.append("g").attr(g).classed("shape-label",!0),k=m.append("text").attr(M).classed("shape-label-text",!0).text(o),S,b,T,h;if(n.path){var _=Nle(r,n),y=zle(_,r);S=1/0,T=1/0,b=-1/0,h=-1/0;for(var v=0;vHs.getDataToPixel(r,ae,ee,!1,ce)(ue),re=(ue,ee,ae,ce)=>Hs.getDataToPixel(r,ae,ee,!0,ce)(ue);if(n.xsizemode==="pixel"){let ue=Q(n.xanchor,void 0,K,J),ee=Hs.getPixelShift(K,n.x0shift),ae=Hs.getPixelShift(K,n.x1shift);S=ue+n.x0+ee,b=ue+n.x1+ae}else S=Q(n.x0,n.x0shift,K,J),b=Q(n.x1,n.x1shift,j,te);if(n.ysizemode==="pixel"){let ue=re(n.yanchor,void 0,G,Z),ee=Hs.getPixelShift(G,n.y0shift),ae=Hs.getPixelShift(G,n.y1shift);T=ue-n.y0+ee,h=ue-n.y1+ae}else T=re(n.y0,n.y0shift,G,Z),h=re(n.y1,n.y1shift,q,ie)}var z=n.label.textangle;z==="auto"&&(n.type==="line"?z=Ble(S,T,b,h):z=0),k.call(function(O){return O.call(rL.font,w).attr({}),eL.convertToTspans(O,r),O});var I=rL.bBox(k.node()),P=Ole(S,T,b,h,n,z,I),L=P.textx,F=P.texty,B=P.xanchor;k.attr({"text-anchor":{left:"start",center:"middle",right:"end"}[B],y:F,x:L,transform:"rotate("+z+","+L+","+F+")"}).call(eL.positionText,L,F)}};function Ble(e,r,t,n){var a,o;return o=Math.abs(t-e),t>=e?a=r-n:a=n-r,-180/Math.PI*Math.atan2(a,o)}function Ole(e,r,t,n,a,o,i){var l=a.label.textposition,u=a.label.textangle,s=a.label.padding,f=a.type,c=Math.PI/180*o,p=Math.sin(c),x=Math.cos(c),g=a.label.xanchor,w=a.label.yanchor,M,m,k,S;if(f==="line"){l==="start"?(M=e,m=r):l==="end"?(M=t,m=n):(M=(e+t)/2,m=(r+n)/2),g==="auto"&&(l==="start"?u==="auto"?t>e?g="left":te?g="right":te?g="right":te?g="left":t{"use strict";var Ule=rr(),Hle=Ule.strTranslate,nL=Li(),oL=hu(),Vle=oL.drawMode,lL=oL.selectMode,sL=Er(),aL=Wr(),h2=(o2(),or(i2)),Gle=h2.i000,Yle=h2.i090,Xle=h2.i180,Wle=h2.i270,Zle=ml(),uL=Zle.clearOutlineControllers,M5=Dl(),v2=M5.pointsOnRectangle,w5=M5.pointsOnEllipse,Jle=M5.writePaths,$le=c2().newShapes,Kle=c2().createShapeObj,Qle=x5(),jle=_5();fL.exports=function e(r,t,n,a){a||(a=0);var o=n.gd;function i(){e(r,t,n,a++),(w5(r[0])||n.hasText)&&l({redrawing:!0})}function l(P){var L={};n.isActiveShape!==void 0&&(n.isActiveShape=!1,L=$le(t,n)),n.isActiveSelection!==void 0&&(n.isActiveSelection=!1,L=Qle(t,n),o._fullLayout._reselect=!0),Object.keys(L).length&&sL.call((P||{}).redrawing?"relayout":"_guiRelayout",o,L)}var u=o._fullLayout,s=u._zoomlayer,f=n.dragmode,c=Vle(f),p=lL(f);(c||p)&&(o._fullLayout._outlining=!0),uL(o),t.attr("d",Jle(r));var x,g,w,M,m;if(!a&&(n.isActiveShape||n.isActiveSelection)){m=ese([],r);var k=s.append("g").attr("class","outline-controllers");A(k),I()}if(c&&n.hasText){var S=s.select(".label-temp"),b=Kle(t,n,n.dragmode);jle(o,"label-temp",b,S)}function T(P){w=+P.srcElement.getAttribute("data-i"),M=+P.srcElement.getAttribute("data-j"),x[w][M].moveFn=h}function h(P,L){if(r.length){var F=m[w][M][1],B=m[w][M][2],O=r[w],V=O.length;if(v2(O)){var K=P,j=L;if(n.isActiveSelection){var G=iL(O,M);G[1]===O[M][1]?j=0:K=0}for(var q=0;q1&&!(P.length===2&&P[1][0]==="Z")&&(M===0&&(P[0][0]="M"),r[w]=P,i(),l())}}function v(P,L){if(P===2){w=+L.srcElement.getAttribute("data-i"),M=+L.srcElement.getAttribute("data-j");var F=r[w];!v2(F)&&!w5(F)&&y()}}function A(P){x=[];for(var L=0;L{"use strict";var tse=at(),gL=Er(),A5=rr(),Vs=Ht(),nse=Dl().readPaths,ase=d2(),g2=_5(),yL=ml().clearOutlineControllers,T5=Wr(),y2=Tt(),ise=Mt().arrayEditor,cL=Li(),vL=ho(),hL=El(),Gs=(dc(),or(hc)),Ca=Pl(),k5=Ca.getPathString;xL.exports={draw:S5,drawOne:mL,eraseActiveShape:fse,drawLabel:g2};function S5(e){var r=e._fullLayout;r._shapeUpperLayer.selectAll("path").remove(),r._shapeLowerLayer.selectAll("path").remove(),r._shapeUpperLayer.selectAll("text").remove(),r._shapeLowerLayer.selectAll("text").remove();for(var t in r._plots){var n=r._plots[t].shapelayer;n&&(n.selectAll("path").remove(),n.selectAll("text").remove())}for(var a=0;a{if(!e._dragging&&e._fullLayout.hoveranywhere){let i=a(o);i&&vL.hover(e,i,t.id)}}),n.addEventListener("click",o=>{if(!e._dragged&&e._fullLayout.clickanywhere){let i=a(o);i&&vL.click(e,i,t.id)}})}function bL(e,r,t){let n=t.xref,a=t.yref;if(Array.isArray(n)||Array.isArray(a)){let o="clip"+r._fullLayout._uid+"shape"+t._index,i=lse(r,n,a);A5.ensureSingleById(r._fullLayout._clips,"clipPath",o,function(l){l.append("rect")}).select("rect").attr(i),y2.setClipUrl(e,o,r)}else{let o=(n+a).replace(/paper/g,"").replace(/[xyz][0-9]* *domain/g,"");y2.setClipUrl(e,o?"clip"+r._fullLayout._uid+o:null,r)}}function lse(e,r,t){let n=e._fullLayout._size;function a(l,u){let s=(Array.isArray(l)?l:[l]).map(p=>Vs.getFromId(e,p)).filter(Boolean);if(!s.length)return u?[n.t,n.t+n.h]:[n.l,n.l+n.w];let f=s.map(function(p){return p._offset}),c=s.map(function(p){return p._offset+p._length});return[Math.min(...f),Math.max(...c)]}let o=a(r,!1),i=a(t,!0);return{x:o[0],y:i[0],width:o[1]-o[0],height:i[1]-i[0]}}function sse(e,r,t,n,a,o){var i=10,l=10,u=t.xsizemode==="pixel",s=t.ysizemode==="pixel",f=t.type==="line",c=t.type==="path",p=o.modifyItem,x,g,w,M,m,k,S,b,T,h,_,y,v,A,d,D=tse.select(r.node().parentNode),E=Vs.getFromId(e,t.xref),R=Vs.getRefType(t.xref),z=Vs.getFromId(e,t.yref),I=Vs.getRefType(t.yref),P=t.x0shift,L=t.x1shift,F=t.y0shift,B=t.y1shift,O=function(Se,ge){var Le=Ca.getDataToPixel(e,E,ge,!1,R);return Le(Se)},V=function(Se,ge){var Le=Ca.getDataToPixel(e,z,ge,!0,I);return Le(Se)},K=Ca.getPixelToData(e,E,!1,R),j=Ca.getPixelToData(e,z,!0,I),G=te(),q={element:G.node(),gd:e,prepFn:Q,doneFn:re,clickFn:ue},J;cL.init(q),G.node().onmousemove=ie;function te(){return f?Z():r}function Z(){var Se=10,ge=Math.max(t.line.width,Se),Le=a.append("g").attr("data-index",n).attr("drag-helper",!0);Le.append("path").attr("d",r.attr("d")).style({cursor:"move","stroke-width":ge,"stroke-opacity":"0"});var Ce={"fill-opacity":"0"},le=Math.max(ge/2,Se);return Le.append("circle").attr({"data-line-point":"start-point",cx:u?O(t.xanchor)+t.x0:O(t.x0,P),cy:s?V(t.yanchor)-t.y0:V(t.y0,F),r:le}).style(Ce).classed("cursor-grab",!0),Le.append("circle").attr({"data-line-point":"end-point",cx:u?O(t.xanchor)+t.x1:O(t.x1,L),cy:s?V(t.yanchor)-t.y1:V(t.y1,B),r:le}).style(Ce).classed("cursor-grab",!0),Le}function ie(Se){if(p2(e)){J=null;return}if(f)Se.target.tagName==="path"?J="move":J=Se.target.attributes["data-line-point"].value==="start-point"?"resize-over-start-point":"resize-over-end-point";else{var ge=q.element.getBoundingClientRect(),Le=ge.right-ge.left,Ce=ge.bottom-ge.top,le=Se.clientX-ge.left,Y=Se.clientY-ge.top,$=!c&&Le>i&&Ce>l&&!Se.shiftKey?cL.getCursor(le/Le,1-Y/Ce):"move";hL(r,$),J=$.split("-")[0]}}function Q(Se){p2(e)||(u&&(m=O(t.xanchor)),s&&(k=V(t.yanchor)),t.type==="path"?d=t.path:(x=u?t.x0:O(t.x0),g=s?t.y0:V(t.y0),w=u?t.x1:O(t.x1),M=s?t.y1:V(t.y1)),xM?(S=g,_="y0",b=M,y="y1"):(S=M,_="y1",b=g,y="y0"),ie(Se),ce(a,t),ke(r,t,e),q.moveFn=J==="move"?ee:ae,q.altKey=Se.altKey)}function re(){p2(e)||(hL(r),Te(a),bL(r,e,t),gL.call("_guiRelayout",e,o.getUpdateObj()))}function ue(){p2(e)||Te(a)}function ee(Se,ge){if(t.type==="path"){var Le=function(Y){return Y},Ce=Le,le=Le;u?p("xanchor",t.xanchor=K(m+Se)):(Ce=function($){return K(O($)+Se)},E&&E.type==="date"&&(Ce=Ca.encodeDate(Ce))),s?p("yanchor",t.yanchor=j(k+ge)):(le=function($){return j(V($)+ge)},z&&z.type==="date"&&(le=Ca.encodeDate(le))),p("path",t.path=dL(d,Ce,le))}else u?p("xanchor",t.xanchor=K(m+Se)):(p("x0",t.x0=K(x+Se)),p("x1",t.x1=K(w+Se))),s?p("yanchor",t.yanchor=j(k+ge)):(p("y0",t.y0=j(g+ge)),p("y1",t.y1=j(M+ge)));r.attr("d",k5(e,t)),ce(a,t),g2(e,n,t,D)}function ae(Se,ge){if(c){var Le=function(Fe){return Fe},Ce=Le,le=Le;u?p("xanchor",t.xanchor=K(m+Se)):(Ce=function(Ye){return K(O(Ye)+Se)},E&&E.type==="date"&&(Ce=Ca.encodeDate(Ce))),s?p("yanchor",t.yanchor=j(k+ge)):(le=function(Ye){return j(V(Ye)+ge)},z&&z.type==="date"&&(le=Ca.encodeDate(le))),p("path",t.path=dL(d,Ce,le))}else if(f){if(J==="resize-over-start-point"){var Y=x+Se,$=s?g-ge:g+ge;p("x0",t.x0=u?Y:K(Y)),p("y0",t.y0=s?$:j($))}else if(J==="resize-over-end-point"){var pe=w+Se,oe=s?M-ge:M+ge;p("x1",t.x1=u?pe:K(pe)),p("y1",t.y1=s?oe:j(oe))}}else{var ve=function(Fe){return J.indexOf(Fe)!==-1},he=ve("n"),me=ve("s"),be=ve("w"),ye=ve("e"),de=he?S+ge:S,xe=me?b+ge:b,Ae=be?T+Se:T,Pe=ye?h+Se:h;s&&(he&&(de=S-ge),me&&(xe=b-ge)),(!s&&xe-de>l||s&&de-xe>l)&&(p(_,t[_]=s?de:j(de)),p(y,t[y]=s?xe:j(xe))),Pe-Ae>i&&(p(v,t[v]=u?Ae:K(Ae)),p(A,t[A]=u?Pe:K(Pe)))}r.attr("d",k5(e,t)),ce(a,t),g2(e,n,t,D)}function ce(Se,ge){(u||s)&&Le();function Le(){var Ce=ge.type!=="path",le=Se.selectAll(".visual-cue").data([0]),Y=1;le.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":Y}).classed("visual-cue",!0);var $=O(u?ge.xanchor:A5.midRange(Ce?[ge.x0,ge.x1]:Ca.extractPathCoords(ge.path,Gs.paramIsX))),pe=V(s?ge.yanchor:A5.midRange(Ce?[ge.y0,ge.y1]:Ca.extractPathCoords(ge.path,Gs.paramIsY)));if($=Ca.roundPositionForSharpStrokeRendering($,Y),pe=Ca.roundPositionForSharpStrokeRendering(pe,Y),u&&s){var oe="M"+($-1-Y)+","+(pe-1-Y)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";le.attr("d",oe)}else if(u){var ve="M"+($-1-Y)+","+(pe-9-Y)+"v18 h2 v-18 Z";le.attr("d",ve)}else{var he="M"+($-9-Y)+","+(pe-1-Y)+"h18 v2 h-18 Z";le.attr("d",he)}}}function Te(Se){Se.selectAll(".visual-cue").remove()}function ke(Se,ge,Le){var Ce=ge.xref,le=ge.yref,Y=Vs.getFromId(Le,Ce),$=Vs.getFromId(Le,le),pe="";Ce!=="paper"&&!Y.autorange&&(pe+=Ce),le!=="paper"&&!$.autorange&&(pe+=le),y2.setClipUrl(Se,pe?"clip"+Le._fullLayout._uid+pe:null,Le)}}function dL(e,r,t){return e.replace(Gs.segmentRE,function(n){var a=0,o=n.charAt(0),i=Gs.paramIsX[o],l=Gs.paramIsY[o],u=Gs.numParams[o],s=n.slice(1).replace(Gs.paramRE,function(f){return a>=u||(i[a]?f=r(f):l[a]&&(f=t(f)),a++),f});return o+s})}function use(e,r){if(m2(e)){var t=r.node(),n=+t.getAttribute("data-index");if(n>=0){if(n===e._fullLayout._activeShapeIndex){pL(e);return}e._fullLayout._activeShapeIndex=n,e._fullLayout._deactivateShape=pL,S5(e)}}}function pL(e){if(m2(e)){var r=e._fullLayout._activeShapeIndex;r>=0&&(yL(e),delete e._fullLayout._activeShapeIndex,S5(e))}}function fse(e){if(m2(e)){yL(e);var r=e._fullLayout._activeShapeIndex,t=(e.layout||{}).shapes||[];if(r{"use strict";var gu=rr()._,cse=function(e){return{DIALOG_TITLE:gu(e,"Share chart"),DIALOG_MESSAGE_CLOUD:gu(e,"This chart will be uploaded to {Plotly Cloud} to create a sharing link. Only you can see it until you change its visibility."),DIALOG_MESSAGE_CLOUD_ACCOUNT:gu(e,"If you don't have a Plotly Cloud account yet, you'll have a chance to create one."),DIALOG_MESSAGE_OTHER:gu(e,"This chart will be sent to {serverUrl}."),DIALOG_CANCEL:gu(e,"Cancel"),DIALOG_CONFIRM:gu(e,"Share")}};_L.exports=cse});var AL=_e((a_e,TL)=>{"use strict";var ML=at(),{dfltConfig:vse}=al(),hse=wL(),dse=(e,r,t,n,a)=>{let o=hse(e),i=r.append("div").classed("plotly-cloud-dialog-box",!0);if(i.append("div").classed("plotly-cloud-dialog-title",!0).text(o.DIALOG_TITLE),t===vse.plotlyServerURL){let u=i.append("div").classed("plotly-cloud-dialog-message",!0),s=new URL(t).origin,f=o.DIALOG_MESSAGE_CLOUD.split(/(\{|\})/),c=f[0],p=f[2],x=f[4];u.append("span").text(c),u.append("a").classed("plotly-cloud-dialog-message--hostname",!0).attr("href",s).attr("target","_blank").text(p),u.append("span").text(x),u.append("div").classed("plotly-cloud-dialog-message--account",!0).text(o.DIALOG_MESSAGE_CLOUD_ACCOUNT)}else{let u=new URL(t),s=u.hostname,f=u.origin,c=o.DIALOG_MESSAGE_OTHER.split(/(\{|\})/),p=c[0],x=c[4],g=i.append("div").classed("plotly-cloud-dialog-message",!0);g.append("span").text(p),g.append("a").classed("plotly-cloud-dialog-message--hostname",!0).attr("href",f).attr("target","_blank").text(s),g.append("span").text(x)}let l=i.append("div").classed("plotly-cloud-dialog-buttons",!0);l.append("button").classed("plotly-cloud-dialog-btn",!0).classed("plotly-cloud-dialog-btn--cancel",!0).text(o.DIALOG_CANCEL).on("click",a),l.append("button").classed("plotly-cloud-dialog-btn",!0).classed("plotly-cloud-dialog-btn--confirm",!0).text(o.DIALOG_CONFIRM).on("click",n)},pse=(e,r,t)=>{let n=ML.select(e._fullLayout._paperdiv.node());n.selectAll(".plotly-cloud-dialog").remove();let a=n.append("div").classed("plotly-cloud-dialog",!0),o=()=>{a.remove(),document.removeEventListener("keydown",i)},i=l=>{(l.key==="Escape"||l.keyCode===27)&&o()};document.addEventListener("keydown",i),a.on("click",()=>{ML.event.target===a.node()&&o()}),dse(e,a,r,()=>{o(),t()},o)};TL.exports=pse});var L5=_e((i_e,RL)=>{"use strict";var Ua=Er(),gse=Mn(),SL=hn(),ft=a2(),yse=b2().eraseActiveShape,mse=AL(),yu=rr(),rt=yu._,st={};RL.exports=st;st.toImage={name:"toImage",title:function(e){var r=e._context.toImageButtonOptions||{},t=r.format||"png";return t==="png"?rt(e,"Download plot as a PNG"):rt(e,"Download plot")},icon:ft.camera,click:function(e){var r=e._context.toImageButtonOptions,t={format:r.format||"png"};yu.notifier(rt(e,"Preparing image - this may take a few seconds"),"long",e),["filename","width","height","scale"].forEach(function(n){n in r&&(t[n]=r[n])}),Ua.call("downloadImage",e,t).then(function(n){yu.notifier(rt(e,"Image download succeeded")+" - "+n,"long",e)}).catch(function(){yu.notifier(rt(e,"Sorry, there was a problem downloading your image!"),"long",e)})}};st.downloadJson={name:"downloadJson",title:function(e){return rt(e,"Download plot as JSON")},icon:ft.curlybraces,click:function(e){Ua.call("downloadImage",e,{format:"full-json"}).then(function(r){yu.notifier(rt(e,"JSON download succeeded")+" - "+r,"long",e)}).catch(function(){yu.notifier(rt(e,"Sorry, there was a problem downloading your JSON file!"),"long",e)})}};st.sendChartToCloud={name:"sendChartToCloud",title:function(e){return rt(e,"Share chart...")},icon:ft.cloudupload,click:function(e){var r=(window.PLOTLYENV||{}).BASE_URL||e._context.plotlyServerURL;if(!r){console.error("No destination URL provided (plotlyServerURL is empty)");return}var t;try{t=new URL(r)}catch(a){console.error("Invalid plotlyServerURL: "+r);return}let n=["http:","https:"];if(!n.includes(t.protocol)){console.error(`Invalid protocol '${t.protocol}' in plotlyServerURL '${r}'. Must be one of: ${n.join(", ")}`);return}mse(e,r,function(){gse.sendDataToCloud(e,r)})}};st.zoom2d={name:"zoom2d",_cat:"zoom",title:function(e){return rt(e,"Zoom")},attr:"dragmode",val:"zoom",icon:ft.zoombox,click:sa};st.pan2d={name:"pan2d",_cat:"pan",title:function(e){return rt(e,"Pan")},attr:"dragmode",val:"pan",icon:ft.pan,click:sa};st.select2d={name:"select2d",_cat:"select",title:function(e){return rt(e,"Box Select")},attr:"dragmode",val:"select",icon:ft.selectbox,click:sa};st.lasso2d={name:"lasso2d",_cat:"lasso",title:function(e){return rt(e,"Lasso Select")},attr:"dragmode",val:"lasso",icon:ft.lasso,click:sa};st.drawclosedpath={name:"drawclosedpath",title:function(e){return rt(e,"Draw closed freeform")},attr:"dragmode",val:"drawclosedpath",icon:ft.drawclosedpath,click:sa};st.drawopenpath={name:"drawopenpath",title:function(e){return rt(e,"Draw open freeform")},attr:"dragmode",val:"drawopenpath",icon:ft.drawopenpath,click:sa};st.drawline={name:"drawline",title:function(e){return rt(e,"Draw line")},attr:"dragmode",val:"drawline",icon:ft.drawline,click:sa};st.drawrect={name:"drawrect",title:function(e){return rt(e,"Draw rectangle")},attr:"dragmode",val:"drawrect",icon:ft.drawrect,click:sa};st.drawcircle={name:"drawcircle",title:function(e){return rt(e,"Draw circle")},attr:"dragmode",val:"drawcircle",icon:ft.drawcircle,click:sa};st.eraseshape={name:"eraseshape",title:function(e){return rt(e,"Erase active shape")},icon:ft.eraseshape,click:yse};st.zoomIn2d={name:"zoomIn2d",_cat:"zoomin",title:function(e){return rt(e,"Zoom in")},attr:"zoom",val:"in",icon:ft.zoom_plus,click:sa};st.zoomOut2d={name:"zoomOut2d",_cat:"zoomout",title:function(e){return rt(e,"Zoom out")},attr:"zoom",val:"out",icon:ft.zoom_minus,click:sa};st.autoScale2d={name:"autoScale2d",_cat:"autoscale",title:function(e){return rt(e,"Autoscale")},attr:"zoom",val:"auto",icon:ft.autoscale,click:sa};st.resetScale2d={name:"resetScale2d",_cat:"resetscale",title:function(e){return rt(e,"Reset axes")},attr:"zoom",val:"reset",icon:ft.home,click:sa};st.hoverClosestCartesian={name:"hoverClosestCartesian",_cat:"hoverclosest",title:function(e){return rt(e,"Show closest data on hover")},attr:"hovermode",val:"closest",icon:ft.tooltip_basic,gravity:"ne",click:sa};st.hoverCompareCartesian={name:"hoverCompareCartesian",_cat:"hoverCompare",title:function(e){return rt(e,"Compare data on hover")},attr:"hovermode",val:function(e){return e._fullLayout._isHoriz?"y":"x"},icon:ft.tooltip_compare,gravity:"ne",click:sa};function sa(e,r){var t=r.currentTarget,n=t.getAttribute("data-attr"),a=t.getAttribute("data-val")||!0,o=e._fullLayout,i={},l=SL.list(e,null,!0),u=o._cartesianSpikesEnabled,s,f;if(n==="zoom"){var c=a==="in"?.5:2,p=(1+c)/2,x=(1-c)/2,g,w;for(f=0;f-h),[w,M]=c.invert(f.midPt),{minscale:m}=s.projection,k=(l=s.projection.maxscale)!=null?l:1/0,S=Math.min(m,k),b=Math.max(m,k),T=a==="in"?kL*p:1/kL*p;T>b?T=b:T{"use strict";var FL=L5(),wse=Object.keys(FL),PL=["drawline","drawopenpath","drawclosedpath","drawcircle","drawrect","eraseshape"],IL=["v1hovermode","hoverclosest","hovercompare","togglehover","togglespikelines"].concat(PL,["downloadJson"]),mu=[],Mse=function(e){if(IL.indexOf(e._cat||e.name)===-1){var r=e.name,t=(e._cat||e.name).toLowerCase();mu.indexOf(r)===-1&&mu.push(r),mu.indexOf(t)===-1&&mu.push(t)}};wse.forEach(function(e){Mse(FL[e])});mu.sort();zL.exports={DRAW_MODES:PL,backButtons:IL,foreButtons:mu}});var F5={};Ut(F5,{default:()=>Ase});var R5,Tse,Ase,P5=Ot(()=>{"use strict";R5=Y_(D5()),Tse={editType:"modebar",orientation:{valType:"enumerated",values:["v","h"],dflt:"h",editType:"modebar",description:"Sets the orientation of the modebar."},bgcolor:{valType:"color",editType:"modebar",description:"Sets the background color of the modebar."},color:{valType:"color",editType:"modebar",description:"Sets the color of the icons in the modebar."},activecolor:{valType:"color",editType:"modebar",description:"Sets the color of the active or hovered on icons in the modebar."},uirevision:{valType:"any",editType:"none",description:["Controls persistence of user-driven changes related to the modebar,","including `hovermode`, `dragmode`, and `showspikes` at both the","root level and inside subplots. Defaults to `layout.uirevision`."].join(" ")},add:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar",description:["Determines which predefined modebar buttons to add.","Please note that these buttons will only be shown if they are","compatible with all trace types used in a graph.","Similar to `config.modeBarButtonsToAdd` option.",`This may include *${R5.default.backButtons.join("*, *")}*.`].join(" ")},remove:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar",description:["Determines which predefined modebar buttons to remove.","Similar to `config.modeBarButtonsToRemove` option.",`This may include *${R5.default.foreButtons.join("*, *")}*.`].join(" ")}},Ase=Tse});var qL=_e((l_e,NL)=>{"use strict";var kse=rr(),gc=Wr(),Sse=Mt(),Cse=(P5(),or(F5)).default;NL.exports=function(r,t){var n=r.modebar||{},a=Sse.newContainer(t,"modebar");function o(l,u){return kse.coerce(n,a,Cse,l,u)}o("orientation"),o("bgcolor",gc.addOpacity(t.paper_bgcolor,.5));var i=gc.contrast(gc.rgb(t.modebar.bgcolor));o("color",gc.addOpacity(i,.3)),o("activecolor",gc.addOpacity(i,.7)),o("uirevision",t.uirevision),o("add"),o("remove")}});var HL=_e((s_e,UL)=>{"use strict";var I5=at(),Ese=ot(),w2=rr(),BL=a2(),Lse=ff().version,Dse=new DOMParser;function OL(e){this.container=e.container,this.element=document.createElement("div"),this.update(e.graphInfo,e.buttons),this.container.appendChild(this.element)}var mo=OL.prototype;mo.update=function(e,r){this.graphInfo=e;var t=this.graphInfo._context,n=this.graphInfo._fullLayout,a="modebar-"+n._uid;this.element.setAttribute("id",a),this.element.setAttribute("role","toolbar"),this._uid=a,this.element.className="modebar modebar--custom",t.displayModeBar==="hover"&&(this.element.className+=" modebar--hover ease-bg"),n.modebar.orientation==="v"&&(this.element.className+=" vertical",r=r.reverse());var o=n.modebar,i="#"+a+" .modebar-group";document.querySelectorAll(i).forEach(function(c){c.style.backgroundColor=o.bgcolor});var l=!this.hasButtons(r),u=this.hasLogo!==t.displaylogo,s=this.locale!==t.locale;if(this.locale=t.locale,(l||u||s)&&(this.removeAllButtons(),this.updateButtons(r),t.watermark||t.displaylogo)){var f=this.getLogo();t.watermark&&(f.className=f.className+" watermark"),n.modebar.orientation==="v"?this.element.insertBefore(f,this.element.childNodes[0]):this.element.appendChild(f),this.hasLogo=!0}this.updateActiveButton(),w2.setStyleOnHover("#"+a+" .modebar-btn",".active",".icon path","fill: "+o.activecolor,"fill: "+o.color,this.element)};mo.updateButtons=function(e){var r=this;this.buttons=e,this.buttonElements=[],this.buttonsNames=[],this.buttons.forEach(function(t){var n=r.createGroup();t.forEach(function(a){var o=a.name;if(!o)throw new Error("must provide button 'name' in button config");if(r.buttonsNames.indexOf(o)!==-1)throw new Error("button name '"+o+"' is taken");r.buttonsNames.push(o);var i=r.createButton(a);r.buttonElements.push(i),n.appendChild(i)}),r.element.appendChild(n)})};mo.createGroup=function(){var e=document.createElement("div");e.className="modebar-group";var r=this.graphInfo._fullLayout.modebar;return e.style.backgroundColor=r.bgcolor,e};mo.createButton=function(e){var r=this,t=document.createElement("button");t.setAttribute("type","button"),t.setAttribute("rel","tooltip"),t.className="modebar-btn";var n=e.title;n===void 0?n=e.name:typeof n=="function"&&(n=n(this.graphInfo)),(n||n===0)&&(t.setAttribute("data-title",n),t.setAttribute("aria-label",n)),e.attr!==void 0&&t.setAttribute("data-attr",e.attr);var a=e.val;a!==void 0&&(typeof a=="function"&&(a=a(this.graphInfo)),t.setAttribute("data-val",a));var o=e.click;if(typeof o!="function")throw new Error("must provide button 'click' function in button config");t.addEventListener("click",function(l){e.click(r.graphInfo,l),r.updateActiveButton(l.currentTarget)}),t.setAttribute("data-toggle",e.toggle||!1),e.toggle&&I5.select(t).classed("active",!0);var i=e.icon;return typeof i=="function"?t.appendChild(i()):t.appendChild(this.createIcon(i||BL.question)),t.setAttribute("data-gravity",e.gravity||"n"),t};mo.createIcon=function(e){var r=Ese(e.height)?Number(e.height):e.ascent-e.descent,t="http://www.w3.org/2000/svg",n;if(e.path){n=document.createElementNS(t,"svg"),n.setAttribute("viewBox",[0,0,e.width,r].join(" ")),n.setAttribute("class","icon");var a=document.createElementNS(t,"path");a.setAttribute("d",e.path),e.transform?a.setAttribute("transform",e.transform):e.ascent!==void 0&&a.setAttribute("transform","matrix(1 0 0 -1 0 "+e.ascent+")"),n.appendChild(a)}if(e.svg){var o=Dse.parseFromString(e.svg,"application/xml");n=o.childNodes[0]}return n.setAttribute("height","1em"),n.setAttribute("width","1em"),n};mo.updateActiveButton=function(e){var r=this.graphInfo._fullLayout,t=e!==void 0?e.getAttribute("data-attr"):null;this.buttonElements.forEach(function(n){var a=n.getAttribute("data-val")||!0,o=n.getAttribute("data-attr"),i=n.getAttribute("data-toggle")==="true",l=I5.select(n),u=function(c,p){var x=r.modebar,g=c.querySelector(".icon path");g&&(p||c.matches(":hover")?g.style.fill=x.activecolor:g.style.fill=x.color)};if(i){if(o===t){var s=!l.classed("active");l.classed("active",s),u(n,s)}}else{var f=o===null?o:w2.nestedProperty(r,o).get();l.classed("active",f===a),u(n,f===a)}})};mo.hasButtons=function(e){var r=this.buttons;if(!r||e.length!==r.length)return!1;for(var t=0;t{"use strict";var Pse=hn(),VL=Sa(),z5=Er(),Ise=io().isUnifiedHover,zse=HL(),M2=L5(),Nse=D5().DRAW_MODES,qse=rr().extendDeep;GL.exports=function(r){var t=r._fullLayout,n=r._context,a=t._modeBar;if(!n.displayModeBar&&!n.watermark){a&&(a.destroy(),delete t._modeBar);return}if(!Array.isArray(n.modeBarButtonsToRemove))throw new Error(["*modeBarButtonsToRemove* configuration options","must be an array."].join(" "));if(!Array.isArray(n.modeBarButtonsToAdd))throw new Error(["*modeBarButtonsToAdd* configuration options","must be an array."].join(" "));var o=n.modeBarButtons,i;Array.isArray(o)&&o.length?i=Gse(o):!n.displayModeBar&&n.watermark?i=[]:i=Bse(r),a?a.update(r,i):t._modeBar=zse(r,i)};function Bse(e){var r=e._fullLayout,t=e._fullData,n=e._context;function a(L,F){if(typeof F=="string"){if(F.toLowerCase()===L.toLowerCase())return!0}else{var B=F.name,O=F._cat||F.name;if(B===L||O===L.toLowerCase())return!0}return!1}var o=r.modebar.add;typeof o=="string"&&(o=[o]);var i=r.modebar.remove;typeof i=="string"&&(i=[i]);var l=n.modeBarButtonsToAdd.concat(o.filter(function(L){for(var F=0;F1?(v=["toggleHover"],A=["resetViews"]):c?(y=["zoomInGeo","zoomOutGeo"],v=["hoverClosestGeo"],A=["resetGeo"]):f?(v=["hoverClosest3d"],A=["resetCameraDefault3d","resetCameraLastSave3d"]):w?(y=["zoomInMap","zoomOutMap"],v=["toggleHover"],A=["resetViewMap"]):p?v=["hoverClosestPie"]:k?(v=["hoverClosestCartesian","hoverCompareCartesian"],A=["resetViewSankey"]):v=["toggleHover"],s&&v.push("toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"),(Hse(t)||b)&&(v=[]),s&&!S&&(y=["zoomIn2d","zoomOut2d","autoScale2d"],A[0]!=="resetViews"&&(A=["resetScale2d"])),f?d=["zoom3d","pan3d","orbitRotation","tableRotation"]:s&&!S||g?d=["zoom2d","pan2d"]:w||c?d=["pan2d"]:M&&(d=["zoom2d"]),Use(t)&&d.push("select2d","lasso2d");var D=[],E=function(L){D.indexOf(L)===-1&&v.indexOf(L)!==-1&&D.push(L)};if(Array.isArray(l)){for(var R=[],z=0;z{"use strict";XL.exports={moduleType:"component",name:"modebar",layoutAttributes:(P5(),or(F5)).default,supplyLayoutDefaults:qL(),manage:YL()}});var q5=_e((c_e,WL)=>{"use strict";var Yse=(Xn(),or(Yn)).FROM_BL;WL.exports=function(r,t,n){n===void 0&&(n=Yse[r.constraintoward||"center"]);var a=[r.r2l(r.range[0]),r.r2l(r.range[1])],o=a[0]+(a[1]-a[0])*n;r.range=r._input.range=[r.l2r(o+(a[0]-o)*t),r.l2r(o+(a[1]-o)*t)],r.setScale()}});var mc=_e(yc=>{"use strict";var Ys=rr(),B5=tu(),Di=hn().id2name,Xse=ri(),ZL=q5(),Wse=E1(),Zse=(mn(),or(Cn)).ALMOST_EQUAL,Jse=(Xn(),or(Yn)).FROM_BL;yc.handleDefaults=function(e,r,t){var n=t.axIds,a=t.axHasImage,o=r._axisConstraintGroups=[],i=r._axisMatchGroups=[],l,u,s,f,c,p,x,g;for(l=0;lo?t.slice(o):n.slice(a))+i}function Kse(e,r){for(var t=r._size,n=t.h/t.w,a={},o=Object.keys(e),i=0;iZse*g&&!k)){for(o=0;oD&&BA&&(A=B);var V=(A-v)/(2*d);c/=V,v=u.l2r(v),A=u.l2r(A),u.range=u._input.range=h<_?[v,A]:[A,v]}$L(u,c)}}}};yc.getAxisGroup=function(r,t){for(var n=r._axisMatchGroups,a=0;a{"use strict";var A2=at(),ua=Er(),Ha=Mn(),ii=rr(),H5=Wn(),V5=n2(),bc=Wr(),bu=Tt(),QL=Qf(),nD=N5(),xc=Ht(),Uo=(Xn(),or(Yn)),aD=mc(),Qse=aD.enforce,jse=aD.clean,jL=tu().doAutoRange,iD="start",e0e="middle",oD="end",r0e=(wn(),or(_n)).zindexSeparator;An.layoutStyles=function(e){return ii.syncOrAsync([Ha.doAutoMargin,n0e],e)};function t0e(e,r,t){for(var n=0;n=e[1]||a[1]<=e[0])&&o[0]r[0])return!0}return!1}function n0e(e){var r=e._fullLayout,t=r._size,n=t.p,a=xc.list(e,"",!0),o,i,l,u,s,f;if(r._paperdiv.style({width:e._context.responsive&&r.autosize&&!e._context._hasZeroWidth&&!e.layout.width?"100%":r.width+"px",height:e._context.responsive&&r.autosize&&!e._context._hasZeroHeight&&!e.layout.height?"100%":r.height+"px"}).selectAll(".main-svg").call(bu.setSize,r.width,r.height),e._context.setBackground(e,r.paper_bgcolor),An.drawMainTitle(e),nD.manage(e),!r._has("cartesian"))return Ha.previousPromises(e);function c(Q,re,ue){var ee=Q._lw/2;if(Q._id.charAt(0)==="x"){if(re){if(ue==="top")return re._offset-n-ee}else return t.t+t.h*(1-(Q.position||0))+ee%1;return re._offset+re._length+n+ee}if(re){if(ue==="right")return re._offset+re._length+n+ee}else return t.l+t.w*(Q.position||0)+ee%1;return re._offset-n-ee}for(o=0;o0){l0e(e,o,s,u),l.attr({x:i,y:o,"text-anchor":n,dy:tD(r.yanchor)}).call(H5.positionText,i,o);var f=(r.text.match(H5.BR_TAG_ALL)||[]).length;if(f){var c=Uo.LINE_SPACING*f+Uo.MID_SHIFT;r.y===0&&(c=-c),l.selectAll(".line").each(function(){var M=+this.getAttribute("dy").slice(0,-2)-c+"em";this.setAttribute("dy",M)})}var p=A2.select(e).selectAll(".gtitle-subtitle");if(p.node()){var x=l.node().getBBox(),g=x.y+x.height,w=g+QL.SUBTITLE_PADDING_EM*r.subtitle.font.size;p.attr({x:i,y:w,"text-anchor":n,dy:tD(r.yanchor)}).call(H5.positionText,i,w)}}}};function a0e(e,r,t,n,a){var o=r.yref==="paper"?e._fullLayout._size.h:e._fullLayout.height,i=ii.isTopAnchor(r)?n:n-a,l=t==="b"?o-i:i;return ii.isTopAnchor(r)&&t==="t"||ii.isBottomAnchor(r)&&t==="b"?!1:l.5?"t":"b",i=e._fullLayout.margin[o],l=0;return r.yref==="paper"?l=t+r.pad.t+r.pad.b:r.yref==="container"&&(l=i0e(o,n,a,e._fullLayout.height,t)+r.pad.t+r.pad.b),l>i?l:0}function l0e(e,r,t,n){var a="title.automargin",o=e._fullLayout.title,i=o.y>.5?"t":"b",l={x:o.x,y:o.y,t:0,b:0},u={};o.yref==="paper"&&a0e(e,o,i,r,n)?l[i]=t:o.yref==="container"&&(u[i]=t,e._fullLayout._reservedMargin[a]=u),Ha.allowAutoMargin(e,a),Ha.autoMargin(e,a,l)}function s0e(e,r){var t=e.title,n=e._size,a=0;return r===iD?a=t.pad.l:r===oD&&(a=-t.pad.r),t.xref==="paper"?n.l+n.w*t.x+a:e.width*t.x+a}function u0e(e,r){var t=e.title,n=e._size,a=0;return r==="0em"||!r?a=-t.pad.b:r===Uo.CAP_SHIFT+"em"&&(a=t.pad.t),t.y==="auto"?n.t/2:t.yref==="paper"?n.t+n.h-n.h*t.y+a:e.height-e.height*t.y+a}function tD(e){return e==="top"?Uo.CAP_SHIFT+.3+"em":e==="bottom"?"-0.3em":Uo.MID_SHIFT+"em"}function f0e(e){var r=e.title,t=e0e;return ii.isRightAnchor(r)?t=oD:ii.isLeftAnchor(r)&&(t=iD),t}function c0e(e){var r=e.title,t="0em";return ii.isTopAnchor(r)?t=Uo.CAP_SHIFT+"em":ii.isMiddleAnchor(r)&&(t=Uo.MID_SHIFT+"em"),t}An.doTraceStyle=function(e){var r=e.calcdata,t=[],n;for(n=0;n{"use strict";var v0e=Dl().readPaths,h0e=d2(),lD=ml().clearOutlineControllers,G5=Wr(),sD=Tt(),d0e=Mt().arrayEditor,uD=Pl(),p0e=uD.getPathString;cD.exports={draw:S2,drawOne:fD,activateLastSelection:m0e};function S2(e){var r=e._fullLayout;lD(e),r._selectionLayer.selectAll("path").remove();for(var t in r._plots){var n=r._plots[t].selectionLayer;n&&n.selectAll("path").remove()}for(var a=0;a=0;M--){var m=i.append("path").attr(u).style("opacity",M?.1:s).call(G5.stroke,c).call(G5.fill,f).call(sD.dashLine,M?"solid":x,M?4+p:p);if(g0e(m,e,n),g){var k=d0e(e.layout,"selections",n);m.style({cursor:"move"});var S={element:m.node(),plotinfo:a,gd:e,editHelpers:k,isActiveSelection:!0},b=v0e(l,e);h0e(b,m,S)}else m.style("pointer-events",M?"all":"none");w[M]=m}var T=w[0],h=w[1];h.node().addEventListener("click",function(){return y0e(e,T)})}}function g0e(e,r,t){var n=t.xref+t.yref;sD.setClipUrl(e,"clip"+r._fullLayout._uid+n,r)}function y0e(e,r){if(C2(e)){var t=r.node(),n=+t.getAttribute("data-index");if(n>=0){if(n===e._fullLayout._activeSelectionIndex){Y5(e);return}e._fullLayout._activeSelectionIndex=n,e._fullLayout._deactivateSelection=Y5,S2(e)}}}function m0e(e){if(C2(e)){var r=e._fullLayout.selections.length-1;e._fullLayout._activeSelectionIndex=r,e._fullLayout._deactivateSelection=Y5,S2(e)}}function Y5(e){if(C2(e)){var r=e._fullLayout._activeSelectionIndex;r>=0&&(lD(e),delete e._fullLayout._activeSelectionIndex,S2(e))}}});var hD=_e((p_e,vD)=>{function b0e(){var e,r=0,t=!1;function n(a,o){return e.list.push({type:a,data:o?JSON.parse(JSON.stringify(o)):void 0}),e}return e={list:[],segmentId:function(){return r++},checkIntersection:function(a,o){return n("check",{seg1:a,seg2:o})},segmentChop:function(a,o){return n("div_seg",{seg:a,pt:o}),n("chop",{seg:a,pt:o})},statusRemove:function(a){return n("pop_seg",{seg:a})},segmentUpdate:function(a){return n("seg_update",{seg:a})},segmentNew:function(a,o){return n("new_seg",{seg:a,primary:o})},segmentRemove:function(a){return n("rem_seg",{seg:a})},tempStatus:function(a,o,i){return n("temp_status",{seg:a,above:o,below:i})},rewind:function(a){return n("rewind",{seg:a})},status:function(a,o,i){return n("status",{seg:a,above:o,below:i})},vert:function(a){return a===t?e:(t=a,n("vert",{x:a}))},log:function(a){return typeof a!="string"&&(a=JSON.stringify(a,!1," ")),n("log",{txt:a})},reset:function(){return n("reset")},selected:function(a){return n("selected",{segs:a})},chainStart:function(a){return n("chain_start",{seg:a})},chainRemoveHead:function(a,o){return n("chain_rem_head",{index:a,pt:o})},chainRemoveTail:function(a,o){return n("chain_rem_tail",{index:a,pt:o})},chainNew:function(a,o){return n("chain_new",{pt1:a,pt2:o})},chainMatch:function(a){return n("chain_match",{index:a})},chainClose:function(a){return n("chain_close",{index:a})},chainAddHead:function(a,o){return n("chain_add_head",{index:a,pt:o})},chainAddTail:function(a,o){return n("chain_add_tail",{index:a,pt:o})},chainConnect:function(a,o){return n("chain_con",{index1:a,index2:o})},chainReverse:function(a){return n("chain_rev",{index:a})},chainJoin:function(a,o){return n("chain_join",{index1:a,index2:o})},done:function(){return n("done")}},e}vD.exports=b0e});var pD=_e((g_e,dD)=>{function x0e(e){typeof e!="number"&&(e=1e-10);var r={epsilon:function(t){return typeof t=="number"&&(e=t),e},pointAboveOrOnLine:function(t,n,a){var o=n[0],i=n[1],l=a[0],u=a[1],s=t[0],f=t[1];return(l-o)*(f-i)-(u-i)*(s-o)>=-e},pointBetween:function(t,n,a){var o=t[1]-n[1],i=a[0]-n[0],l=t[0]-n[0],u=a[1]-n[1],s=l*i+o*u;if(s-e)},pointsSameX:function(t,n){return Math.abs(t[0]-n[0])e!=l-o>e&&(i-f)*(o-c)/(l-c)+f-a>e&&(u=!u),i=f,l=c}return u}};return r}dD.exports=x0e});var yD=_e((y_e,gD)=>{var _0e={create:function(){var e={root:{root:!0,next:null},exists:function(r){return!(r===null||r===e.root)},isEmpty:function(){return e.root.next===null},getHead:function(){return e.root.next},insertBefore:function(r,t){for(var n=e.root,a=e.root.next;a!==null;){if(t(a)){r.prev=a.prev,r.next=a,a.prev.next=r,a.prev=r;return}n=a,a=a.next}n.next=r,r.prev=n,r.next=null},findTransition:function(r){for(var t=e.root,n=e.root.next;n!==null&&!r(n);)t=n,n=n.next;return{before:t===e.root?null:t,after:n,insert:function(a){return a.prev=t,a.next=n,t.next=a,n!==null&&(n.prev=a),a}}}};return e},node:function(e){return e.prev=null,e.next=null,e.remove=function(){e.prev.next=e.next,e.next&&(e.next.prev=e.prev),e.prev=null,e.next=null},e}};gD.exports=_0e});var bD=_e((m_e,mD)=>{var _c=yD();function w0e(e,r,t){function n(g,w){return{id:t?t.segmentId():-1,start:g,end:w,myFill:{above:null,below:null},otherFill:null}}function a(g,w,M){return{id:t?t.segmentId():-1,start:g,end:w,myFill:{above:M.myFill.above,below:M.myFill.below},otherFill:null}}var o=_c.create();function i(g,w,M,m,k,S){var b=r.pointsCompare(w,k);return b!==0?b:r.pointsSame(M,S)?0:g!==m?g?1:-1:r.pointAboveOrOnLine(M,m?k:S,m?S:k)?1:-1}function l(g,w){o.insertBefore(g,function(M){var m=i(g.isStart,g.pt,w,M.isStart,M.pt,M.other.pt);return m<0})}function u(g,w){var M=_c.node({isStart:!0,pt:g.start,seg:g,primary:w,other:null,status:null});return l(M,g.end),M}function s(g,w,M){var m=_c.node({isStart:!1,pt:w.end,seg:w,primary:M,other:g,status:null});g.other=m,l(m,g.pt)}function f(g,w){var M=u(g,w);return s(M,g,w),M}function c(g,w){t&&t.segmentChop(g.seg,w),g.other.remove(),g.seg.end=w,g.other.pt=w,l(g.other,g.pt)}function p(g,w){var M=a(w,g.seg.end,g.seg);return c(g,w),f(M,g.primary)}function x(g,w){var M=_c.create();function m(z,I){var P=z.seg.start,L=z.seg.end,F=I.seg.start,B=I.seg.end;return r.pointsCollinear(P,F,B)?r.pointsCollinear(L,F,B)||r.pointAboveOrOnLine(L,F,B)?1:-1:r.pointAboveOrOnLine(P,F,B)?1:-1}function k(z){return M.findTransition(function(I){var P=m(z,I.ev);return P>0})}function S(z,I){var P=z.seg,L=I.seg,F=P.start,B=P.end,O=L.start,V=L.end;t&&t.checkIntersection(P,L);var K=r.linesIntersect(F,B,O,V);if(K===!1){if(!r.pointsCollinear(F,B,O)||r.pointsSame(F,V)||r.pointsSame(B,O))return!1;var j=r.pointsSame(F,O),G=r.pointsSame(B,V);if(j&&G)return I;var q=!j&&r.pointBetween(F,O,V),J=!G&&r.pointBetween(B,O,V);if(j)return J?p(I,B):p(z,V),I;q&&(G||(J?p(I,B):p(z,V)),p(I,F))}else K.alongA===0&&(K.alongB===-1?p(z,O):K.alongB===0?p(z,K.pt):K.alongB===1&&p(z,V)),K.alongB===0&&(K.alongA===-1?p(I,F):K.alongA===0?p(I,K.pt):K.alongA===1&&p(I,B));return!1}for(var b=[];!o.isEmpty();){var T=o.getHead();if(t&&t.vert(T.pt[0]),T.isStart){let z=function(){if(_){var I=S(T,_);if(I)return I}return y?S(T,y):!1};var R=z;t&&t.segmentNew(T.seg,T.primary);var h=k(T),_=h.before?h.before.ev:null,y=h.after?h.after.ev:null;t&&t.tempStatus(T.seg,_?_.seg:!1,y?y.seg:!1);var v=z();if(v){if(e){var A;T.seg.myFill.below===null?A=!0:A=T.seg.myFill.above!==T.seg.myFill.below,A&&(v.seg.myFill.above=!v.seg.myFill.above)}else v.seg.otherFill=T.seg.myFill;t&&t.segmentUpdate(v.seg),T.other.remove(),T.remove()}if(o.getHead()!==T){t&&t.rewind(T.seg);continue}if(e){var A;T.seg.myFill.below===null?A=!0:A=T.seg.myFill.above!==T.seg.myFill.below,y?T.seg.myFill.below=y.seg.myFill.above:T.seg.myFill.below=g,A?T.seg.myFill.above=!T.seg.myFill.below:T.seg.myFill.above=T.seg.myFill.below}else if(T.seg.otherFill===null){var d;y?T.primary===y.primary?d=y.seg.otherFill.above:d=y.seg.myFill.above:d=T.primary?w:g,T.seg.otherFill={above:d,below:d}}t&&t.status(T.seg,_?_.seg:!1,y?y.seg:!1),T.other.status=h.insert(_c.node({ev:T}))}else{var D=T.status;if(D===null)throw new Error("PolyBool: Zero-length segment detected; your epsilon is probably too small or too large");if(M.exists(D.prev)&&M.exists(D.next)&&S(D.prev.ev,D.next.ev),t&&t.statusRemove(D.ev.seg),D.remove(),!T.primary){var E=T.seg.myFill;T.seg.myFill=T.seg.otherFill,T.seg.otherFill=E}b.push(T.seg)}o.getHead().remove()}return t&&t.done(),b}return e?{addRegion:function(g){for(var w,M=g[g.length-1],m=0;m{function M0e(e,r,t){var n=[],a=[];return e.forEach(function(o){var i=o.start,l=o.end;if(r.pointsSame(i,l)){console.warn("PolyBool: Warning: Zero-length segment detected; your epsilon is probably too small or too large");return}t&&t.chainStart(o);var u={index:0,matches_head:!1,matches_pt1:!1},s={index:0,matches_head:!1,matches_pt1:!1},f=u;function c(R,z,I){return f.index=R,f.matches_head=z,f.matches_pt1=I,f===u?(f=s,!1):(f=null,!0)}for(var p=0;p{function wc(e,r,t){var n=[];return e.forEach(function(a){var o=(a.myFill.above?8:0)+(a.myFill.below?4:0)+(a.otherFill&&a.otherFill.above?2:0)+(a.otherFill&&a.otherFill.below?1:0);r[o]!==0&&n.push({id:t?t.segmentId():-1,start:a.start,end:a.end,myFill:{above:r[o]===1,below:r[o]===2},otherFill:null})}),t&&t.selected(n),n}var T0e={union:function(e,r){return wc(e,[0,2,1,0,2,2,0,0,1,0,1,0,0,0,0,0],r)},intersect:function(e,r){return wc(e,[0,0,0,0,0,2,0,2,0,0,1,1,0,2,1,0],r)},difference:function(e,r){return wc(e,[0,0,0,0,2,0,2,0,1,1,0,0,0,1,2,0],r)},differenceRev:function(e,r){return wc(e,[0,2,1,0,0,0,1,1,0,2,0,2,0,0,0,0],r)},xor:function(e,r){return wc(e,[0,2,1,0,2,0,0,1,1,0,0,2,0,1,2,0],r)}};wD.exports=T0e});var AD=_e((__e,TD)=>{var A0e={toPolygon:function(e,r){function t(o){if(o.length<=0)return e.segments({inverted:!1,regions:[]});function i(s){var f=s.slice(0,s.length-1);return e.segments({inverted:!1,regions:[f]})}for(var l=i(o[0]),u=1;u{var k0e=hD(),S0e=pD(),kD=bD(),C0e=_D(),Mc=MD(),SD=AD(),oi=!1,Tc=S0e(),Ea;Ea={buildLog:function(e){return e===!0?oi=k0e():e===!1&&(oi=!1),oi===!1?!1:oi.list},epsilon:function(e){return Tc.epsilon(e)},segments:function(e){var r=kD(!0,Tc,oi);return e.regions.forEach(r.addRegion),{segments:r.calculate(e.inverted),inverted:e.inverted}},combine:function(e,r){var t=kD(!1,Tc,oi);return{combined:t.calculate(e.segments,e.inverted,r.segments,r.inverted),inverted1:e.inverted,inverted2:r.inverted}},selectUnion:function(e){return{segments:Mc.union(e.combined,oi),inverted:e.inverted1||e.inverted2}},selectIntersect:function(e){return{segments:Mc.intersect(e.combined,oi),inverted:e.inverted1&&e.inverted2}},selectDifference:function(e){return{segments:Mc.difference(e.combined,oi),inverted:e.inverted1&&!e.inverted2}},selectDifferenceRev:function(e){return{segments:Mc.differenceRev(e.combined,oi),inverted:!e.inverted1&&e.inverted2}},selectXor:function(e){return{segments:Mc.xor(e.combined,oi),inverted:e.inverted1!==e.inverted2}},polygon:function(e){return{regions:C0e(e.segments,Tc,oi),inverted:e.inverted}},polygonFromGeoJSON:function(e){return SD.toPolygon(Ea,e)},polygonToGeoJSON:function(e){return SD.fromPolygon(Ea,Tc,e)},union:function(e,r){return Ac(e,r,Ea.selectUnion)},intersect:function(e,r){return Ac(e,r,Ea.selectIntersect)},difference:function(e,r){return Ac(e,r,Ea.selectDifference)},differenceRev:function(e,r){return Ac(e,r,Ea.selectDifferenceRev)},xor:function(e,r){return Ac(e,r,Ea.selectXor)}};function Ac(e,r,t){var n=Ea.segments(e),a=Ea.segments(r),o=Ea.combine(n,a),i=t(o);return Ea.polygon(i)}typeof window=="object"&&(window.PolyBool=Ea);CD.exports=Ea});var DD=_e((M_e,LD)=>{LD.exports=function(r,t,n,a){var o=r[0],i=r[1],l=!1;n===void 0&&(n=0),a===void 0&&(a=t.length);for(var u=a-n,s=0,f=u-1;si!=g>i&&o<(x-c)*(i-p)/(g-p)+c;w&&(l=!l)}return l}});var Z5=_e((T_e,RD)=>{"use strict";var W5=Fh().dot,E2=(mn(),or(Cn)).BADNUM,L2=RD.exports={};L2.tester=function(r){var t=r.slice(),n=t[0][0],a=n,o=t[0][1],i=o,l;for((t[t.length-1][0]!==t[0][0]||t[t.length-1][1]!==t[0][1])&&t.push(t[0]),l=1;la||m===E2||mi||w&&s(g))}function c(g,w){var M=g[0],m=g[1];if(M===E2||Ma||m===E2||mi)return!1;var k=t.length,S=t[0][0],b=t[0][1],T=0,h,_,y,v,A;for(h=1;hMath.max(_,S)||m>Math.max(y,b)))if(ml||Math.abs(W5(c,s))>a)return!0;return!1};L2.filter=function(r,t){var n=[r[0]],a=0,o=0;function i(u){r.push(u);var s=n.length,f=a;n.splice(o+1);for(var c=f+1;c1){var l=r.pop();i(l)}return{addPt:i,raw:r,filtered:n}}});var FD={};Ut(FD,{BENDPX:()=>E0e,MINSELECT:()=>L0e,SELECTDELAY:()=>D0e,SELECTID:()=>R0e});var E0e,L0e,D0e,R0e,PD=Ot(()=>{"use strict";E0e=1.5,L0e=12,D0e=100,R0e="-select"});var tR=_e((A_e,rR)=>{"use strict";var ID=ED(),F0e=DD(),Cc=Er(),P0e=Tt().dashStyle,kc=Wr(),I0e=ho(),z0e=io().makeEventData,Fc=hu(),N0e=Fc.freeMode,q0e=Fc.rectMode,Ec=Fc.drawMode,Q5=Fc.openMode,j5=Fc.selectMode,zD=Pl(),ND=(dc(),or(hc)),HD=d2(),VD=ml().clearOutline,GD=Dl(),J5=GD.handleEllipse,B0e=GD.readPaths,O0e=c2().newShapes,U0e=x5(),H0e=X5().activateLastSelection,R2=rr(),V0e=R2.sorterAsc,YD=Z5(),Sc=Wh(),li=hn().getFromId,G0e=n2(),Y0e=k2().redrawReglTraces,F2=(PD(),or(FD)),bo=F2.MINSELECT,X0e=YD.filter,eb=YD.tester,rb=l2(),qD=rb.p2r,W0e=rb.axValue,Z0e=rb.getTransform;function tb(e){return e.subplot!==void 0}function J0e(e,r,t,n,a){var o=!tb(n),i=N0e(a),l=q0e(a),u=Q5(a),s=Ec(a),f=j5(a),c=a==="drawline",p=a==="drawcircle",x=c||p,g=n.gd,w=g._fullLayout,M=f&&w.newselection.mode==="immediate"&&o,m=w._zoomlayer,k=n.element.getBoundingClientRect(),S=n.plotinfo,b=Z0e(S),T=r-k.left,h=t-k.top;w._calcInverseTransform(g);var _=R2.apply3DTransform(w._invTransform)(T,h);T=_[0],h=_[1];var y=w._invScaleX,v=w._invScaleY,A=T,d=h,D="M"+T+","+h,E=n.xaxes[0],R=n.yaxes[0],z=E._length,I=R._length,P=e.altKey&&!(Ec(a)&&u),L,F,B,O,V,K,j;WD(e,g,n),i&&(L=X0e([[T,h]],F2.BENDPX));var G=m.selectAll("path.select-outline-"+S.id).data([1]),q=s?w.newshape:w.newselection;s&&(n.hasText=q.label.text||q.label.texttemplate);var J=s&&!u?q.fillcolor:"rgba(0,0,0,0)",te=q.line.color||(o?kc.contrast(g._fullLayout.plot_bgcolor):"#7f7f7f");G.enter().append("path").attr("class","select-outline select-outline-"+S.id).style({opacity:s?q.opacity/2:1,"stroke-dasharray":P0e(q.line.dash,q.line.width),"stroke-width":q.line.width+"px","shape-rendering":"crispEdges"}).call(kc.stroke,te).call(kc.fill,J).attr("fill-rule","evenodd").classed("cursor-move",!!s).attr("transform",b).attr("d",D+"Z");var Z=m.append("path").attr("class","zoombox-corners").style({fill:kc.background,stroke:kc.defaultLine,"stroke-width":1}).attr("transform",b).attr("d","M0,0Z");if(s&&n.hasText){var ie=m.select(".label-temp");ie.empty()&&(ie=m.append("g").classed("label-temp",!0).classed("select-outline",!0).style({opacity:.8}))}var Q=w._uid+F2.SELECTID,re=[],ue=P2(g,n.xaxes,n.yaxes,n.subplot);M&&!e.shiftKey&&(n._clearSubplotSelections=function(){if(o){var ae=E._id,ce=R._id;QD(g,ae,ce,ue);for(var Te=(g.layout||{}).selections||[],ke=[],Se=!1,ge=0;ge=0){g._fullLayout._deactivateShape(g);return}if(!s){var Te=w.clickmode;Sc.done(Q).then(function(){if(Sc.clear(Q),ae===2){for(G.remove(),V=0;V-1&&XD(ce,g,n.xaxes,n.yaxes,n.subplot,n,G),Te==="event"&&Rc(g,void 0);I0e.click(g,ce,S.id)}).catch(R2.error)}},n.doneFn=function(){Z.remove(),Sc.done(Q).then(function(){Sc.clear(Q),!M&&O&&n.selectionDefs&&(O.subtract=P,n.selectionDefs.push(O),n.mergedPolygons.length=0,[].push.apply(n.mergedPolygons,B)),(M||s)&&Lc(n,M),n.doneFnCompleted&&n.doneFnCompleted(re),f&&Rc(g,j)}).catch(R2.error)}}function XD(e,r,t,n,a,o,i){var l=r._hoverdata,u=r._fullLayout,s=u.clickmode,f=s.indexOf("event")>-1,c=[],p,x,g,w,M,m,k,S,b,T;if(eue(l)){WD(e,r,o),p=P2(r,t,n,a);var h=rue(l,p),_=h.pointNumbers.length>0;if(_?tue(p,h):nue(p)&&(k=OD(h))){for(i&&i.remove(),T=0;T=0}function j0e(e){return e._fullLayout._activeSelectionIndex>=0}function Lc(e,r){var t=e.dragmode,n=e.plotinfo,a=e.gd;Q0e(a)&&a._fullLayout._deactivateShape(a),j0e(a)&&a._fullLayout._deactivateSelection(a);var o=a._fullLayout,i=o._zoomlayer,l=Ec(t),u=j5(t);if(l||u){var s=i.selectAll(".select-outline-"+n.id);if(s&&a._fullLayout._outlining){var f;l&&(f=O0e(s,e)),f&&Cc.call("_guiRelayout",a,{shapes:f});var c;u&&!tb(e)&&(c=U0e(s,e)),c&&(a._fullLayout._noEmitSelectedAtStart=!0,Cc.call("_guiRelayout",a,{selections:c}).then(function(){r&&H0e(a)})),a._fullLayout._outlining=!1}}n.selection={},n.selection.selectionDefs=e.selectionDefs=[],n.selection.mergedPolygons=e.mergedPolygons=[]}function BD(e){return e._id}function P2(e,r,t,n){if(!e.calcdata)return[];var a=[],o=r.map(BD),i=t.map(BD),l,u,s;for(s=0;s0,o=a?n[0]:t;return r.selectedpoints?r.selectedpoints.indexOf(o)>-1:!1}function tue(e,r){var t=[],n,a,o,i;for(i=0;i0&&t.push(n);if(t.length===1&&(o=t[0]===r.searchInfo,o&&(a=r.searchInfo.cd[0].trace,a.selectedpoints.length===r.pointNumbers.length))){for(i=0;i1||(r+=n.selectedpoints.length,r>1)))return!1;return r===1}function Dc(e,r,t){var n,a;for(n=0;n-1&&r;if(!i&&r){var ae=UD(e,!0);if(ae.length){var ce=ae[0].xref,Te=ae[0].yref;if(ce&&Te){var ke=jD(ae),Se=eR([li(e,ce,"x"),li(e,Te,"y")]);Se(re,ke)}}e._fullLayout._noEmitSelectedAtStart?e._fullLayout._noEmitSelectedAtStart=!1:ee&&Rc(e,re),p._reselect=!1}if(!i&&p._deselect){var ge=p._deselect;l=ge.xref,u=ge.yref,oue(l,u,f)||QD(e,l,u,n),ee&&(re.points.length?Rc(e,re):ib(e)),p._deselect=!1}return{eventData:re,selectionTesters:t}}function iue(e){var r=e.calcdata;if(r)for(var t=0;t{"use strict";nR.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}]});var Pc={};Ut(Pc,{axisRefDescription:()=>cue});function cue(e,r,t){return[`If set to a ${e} axis id (e.g. *${e}* or *${e}2*),`,`the \`${e}\` position refers to a ${e} coordinate.`,`If set to *paper*, the \`${e}\` position refers to the distance from the`,`${r} of the plotting area in normalized coordinates where *0* (*1*) corresponds`,`to the ${r} (${t}). If set to a ${e} 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 ${r} of the domain of that`,`axis: e.g., *${e}2 domain* refers to the domain of the second ${e}`,`axis and a ${e} position of 0.5 refers to the point between the ${r}`,`and the ${t} of the domain of the second ${e} axis.`].join(" ")}var Ic=Ot(()=>{"use strict"});var xu=_e((C_e,oR)=>{"use strict";var aR=ob(),iR=Hn(),I2=(wn(),or(_n)),vue=Mt().templatedArray,S_e=(Ic(),or(Pc));oR.exports=vue("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:iR({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:aR.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:aR.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",I2.idRegex.x.toString()],editType:"calc"},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",I2.idRegex.y.toString()],editType:"calc"},xref:{valType:"enumerated",values:["paper",I2.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",I2.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:iR({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc"})});var z2={};Ut(z2,{PTS_LINESONLY:()=>hue,eventDataKeys:()=>yue,maxScreensAway:()=>gue,minTolerance:()=>due,toleranceGrowth:()=>pue});var hue,due,pue,gue,yue,N2=Ot(()=>{"use strict";hue=20,due=.2,pue=10,gue=20,yue=[]});var sR=_e((E_e,lR)=>{"use strict";lR.exports=function(r){return{valType:"color",editType:"style",anim:!0}}});var Xs=_e((L_e,gR)=>{"use strict";var uR=No().axisHoverFormat,{hovertemplateAttrs:mue,texttemplateAttrs:bue,templatefallbackAttrs:fR}=Mi(),cR=Si(),xue=Hn(),vR=sl().dash,_ue=sl().pattern,wue=Tt(),Mue=(N2(),or(z2)),zc=Ft().extendFlat,Tue=sR();function hR(e){return{valType:"any",dflt:0,editType:"calc"}}function dR(e){return{valType:"any",editType:"calc"}}function pR(e){return{valType:"enumerated",values:["start","middle","end"],dflt:"middle",editType:"calc"}}gR.exports={x:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0},x0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",anim:!0},dx:{valType:"number",dflt:1,editType:"calc",anim:!0},y:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0},y0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",anim:!0},dy:{valType:"number",dflt:1,editType:"calc",anim:!0},xperiod:hR("x"),yperiod:hR("y"),xperiod0:dR("x0"),yperiod0:dR("y0"),xperiodalignment:pR("x"),yperiodalignment:pR("y"),xhoverformat:uR("x"),yhoverformat:uR("y"),offsetgroup:{valType:"string",dflt:"",editType:"calc"},alignmentgroup:{valType:"string",dflt:"",editType:"calc"},stackgroup:{valType:"string",dflt:"",editType:"calc"},orientation:{valType:"enumerated",values:["v","h"],editType:"calc"},groupnorm:{valType:"enumerated",values:["","fraction","percent"],dflt:"",editType:"calc"},stackgaps:{valType:"enumerated",values:["infer zero","interpolate"],dflt:"infer zero",editType:"calc"},text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},texttemplate:bue(),texttemplatefallback:fR({editType:"calc"}),hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"style"},mode:{valType:"flaglist",flags:["lines","markers","text"],extras:["none"],editType:"calc"},hoveron:{valType:"flaglist",flags:["points","fills"],editType:"style"},hovertemplate:mue({},{keys:Mue.eventDataKeys}),hovertemplatefallback:fR(),line:{color:{valType:"color",editType:"style",anim:!0},width:{valType:"number",min:0,dflt:2,editType:"style",anim:!0},shape:{valType:"enumerated",values:["linear","spline","hv","vh","hvh","vhv"],dflt:"linear",editType:"plot"},smoothing:{valType:"number",min:0,max:1.3,dflt:1,editType:"plot"},dash:zc({},vR,{editType:"style"}),backoff:{valType:"number",min:0,dflt:"auto",arrayOk:!0,editType:"plot"},simplify:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},connectgaps:{valType:"boolean",dflt:!1,editType:"calc"},cliponaxis:{valType:"boolean",dflt:!0,editType:"plot"},fill:{valType:"enumerated",values:["none","tozeroy","tozerox","tonexty","tonextx","toself","tonext"],editType:"calc"},fillcolor:Tue(!0),fillgradient:zc({type:{valType:"enumerated",values:["radial","horizontal","vertical","none"],dflt:"none",editType:"calc"},start:{valType:"number",editType:"calc"},stop:{valType:"number",editType:"calc"},colorscale:{valType:"colorscale",editType:"style"},editType:"calc"}),fillpattern:_ue,marker:zc({symbol:{valType:"enumerated",values:wue.symbolList,dflt:"circle",arrayOk:!0,editType:"style"},opacity:{valType:"number",min:0,max:1,arrayOk:!0,editType:"style",anim:!0},angle:{valType:"angle",dflt:0,arrayOk:!0,editType:"plot",anim:!1},angleref:{valType:"enumerated",values:["previous","up"],dflt:"up",editType:"plot",anim:!1},standoff:{valType:"number",min:0,dflt:0,arrayOk:!0,editType:"plot",anim:!0},size:{valType:"number",min:0,dflt:6,arrayOk:!0,editType:"calc",anim:!0},maxdisplayed:{valType:"number",min:0,dflt:0,editType:"plot"},sizeref:{valType:"number",dflt:1,editType:"calc"},sizemin:{valType:"number",min:0,dflt:0,editType:"calc"},sizemode:{valType:"enumerated",values:["diameter","area"],dflt:"diameter",editType:"calc"},line:zc({width:{valType:"number",min:0,arrayOk:!0,editType:"style",anim:!0},dash:zc({},vR,{arrayOk:!0}),editType:"calc"},cR("marker.line",{anim:!0})),gradient:{type:{valType:"enumerated",values:["radial","horizontal","vertical","none"],arrayOk:!0,dflt:"none",editType:"calc"},color:{valType:"color",arrayOk:!0,editType:"calc"},editType:"calc"},editType:"calc"},cR("marker",{anim:!0})),selected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style"},color:{valType:"color",editType:"style"},size:{valType:"number",min:0,editType:"style"},editType:"style"},textfont:{color:{valType:"color",editType:"style"},editType:"style"},editType:"style"},unselected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style"},color:{valType:"color",editType:"style"},size:{valType:"number",min:0,editType:"style"},editType:"style"},textfont:{color:{valType:"color",editType:"style"},editType:"style"},editType:"style"},textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right"],dflt:"middle center",arrayOk:!0,editType:"calc"},textfont:xue({editType:"calc",colorEditType:"style",arrayOk:!0}),zorder:{valType:"integer",dflt:0,editType:"plot"}}});var lb=_e((R_e,bR)=>{"use strict";var yR=xu(),mR=Xs().line,Aue=sl().dash,q2=Ft().extendFlat,kue=ia().overrideAll,Sue=Mt().templatedArray,D_e=(Ic(),or(Pc));bR.exports=kue(Sue("selection",{type:{valType:"enumerated",values:["rect","path"]},xref:q2({},yR.xref,{}),yref:q2({},yR.yref,{}),x0:{valType:"any"},x1:{valType:"any"},y0:{valType:"any"},y1:{valType:"any"},path:{valType:"string",editType:"arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:.7,editType:"arraydraw"},line:{color:mR.color,width:q2({},mR.width,{min:1,dflt:1}),dash:q2({},Aue,{dflt:"dot"})}}),"arraydraw","from-root")});var MR=_e((F_e,wR)=>{"use strict";var xR=rr(),B2=Ht(),Cue=Ci(),Eue=lb(),_R=Pl();wR.exports=function(r,t){Cue(r,t,{name:"selections",handleItemDefaults:Lue});for(var n=t.selections,a=0;a{"use strict";TR.exports=function(r,t,n){n("newselection.mode");var a=n("newselection.line.width");a&&(n("newselection.line.color"),n("newselection.line.dash")),n("activeselection.fillcolor"),n("activeselection.opacity")}});var Nc=_e((I_e,CR)=>{"use strict";var Due=Er(),kR=rr(),SR=hn();CR.exports=function(r){return function(n,a){var o=n[r];if(Array.isArray(o))for(var i=Due.subplotsRegistry.cartesian,l=i.idRegex,u=a._subplots,s=u.xaxis,f=u.yaxis,c=u.cartesian,p=a._has("cartesian"),x=0;x{"use strict";var ER=X5(),qc=tR();LR.exports={moduleType:"component",name:"selections",layoutAttributes:lb(),supplyLayoutDefaults:MR(),supplyDrawNewSelectionDefaults:AR(),includeBasePlot:Nc()("selections"),draw:ER.draw,drawOne:ER.drawOne,reselect:qc.reselect,prepSelect:qc.prepSelect,clearOutline:qc.clearOutline,clearSelectionsCache:qc.clearSelectionsCache,selectOnClick:qc.selectOnClick}});var $R=_e((N_e,JR)=>{"use strict";var hb=at(),si=rr(),DR=si.numberFormat,Rue=Y1(),O2=Er(),BR=si.strTranslate,Fue=Wn(),ub=Wr(),zl=Tt(),Pue=ho(),RR=Ht(),Iue=El(),zue=Li(),OR=hu(),U2=OR.selectingOrDrawing,Nue=OR.freeMode,que=(Xn(),or(Yn)).FROM_TL,Bue=n2(),Oue=k2().redrawReglTraces,Uue=Mn(),fb=hn().getFromId,Hue=_u().prepSelect,Vue=_u().clearOutline,Gue=_u().selectOnClick,sb=q5(),db=(wn(),or(_n)),FR=db.MINDRAG,pa=db.MINZOOM,PR=!0;function Yue(e,r,t,n,a,o,i,l){var u=e._fullLayout._zoomlayer,s=i+l==="nsew",f=(i+l).length===1,c,p,x,g,w,M,m,k,S,b,T,h,_,y,v,A,d,D,E,R,z,I,P;t+=r.yaxis._shift;function L(){if(c=r.xaxis,p=r.yaxis,S=c._length,b=p._length,m=c._offset,k=p._offset,x={},x[c._id]=c,g={},g[p._id]=p,i&&l)for(var ye=r.overlays,de=0;de=0){xe._fullLayout._deactivateShape(xe);return}var Ae=xe._fullLayout.clickmode;if(vb(xe),ye===2&&!f&&pe(),s)Ae.indexOf("select")>-1&&Gue(de,xe,w,M,r.id,O),Ae.indexOf("event")>-1&&Pue.click(xe,de,r.id);else if(ye===1&&f){var Pe=i?p:c,Fe=i==="s"||l==="w"?0:1,Ye=Pe._name+".range["+Fe+"]",qe=Xue(Pe,Fe),Be="left",Oe="middle";if(Pe.fixedrange)return;i?(Oe=i==="n"?"top":"bottom",Pe.side==="right"&&(Be="right")):l==="e"&&(Be="right"),xe._context.showAxisRangeEntryBoxes&&hb.select(B).call(Fue.makeEditable,{gd:xe,immediate:!0,background:xe._fullLayout.paper_bgcolor,text:String(qe),fill:Pe.tickfont?Pe.tickfont.color:"#444",horizontalAlign:Be,verticalAlign:Oe}).on("edit",function(We){var Xe=Pe.d2r(We);Xe!==void 0&&O2.call("_guiRelayout",xe,Ye,Xe)})}}zue.init(O);var j,G,q,J,te,Z,ie,Q,re,ue;function ee(ye,de,xe){var Ae=B.getBoundingClientRect();j=de-Ae.left,G=xe-Ae.top,e._fullLayout._calcInverseTransform(e);var Pe=si.apply3DTransform(e._fullLayout._invTransform)(j,G);j=Pe[0],G=Pe[1],q={l:j,r:j,w:0,t:G,b:G,h:0},J=e._hmpixcount?e._hmlumcount/e._hmpixcount:ub.luminosity(e._fullLayout.plot_bgcolor),te="M0,0H"+S+"V"+b+"H0V0",Z=!1,ie="xy",ue=!1,Q=VR(u,J,m,k,te),re=GR(u,m,k)}function ae(ye,de){if(e._transitioningWithDuration)return!1;var xe=Math.max(0,Math.min(S,I*ye+j)),Ae=Math.max(0,Math.min(b,P*de+G)),Pe=Math.abs(xe-j),Fe=Math.abs(Ae-G);q.l=Math.min(j,xe),q.r=Math.max(j,xe),q.t=Math.min(G,Ae),q.b=Math.max(G,Ae);function Ye(){ie="",q.r=q.l,q.t=q.b,re.attr("d","M0,0Z")}if(T.isSubplotConstrained)Pe>pa||Fe>pa?(ie="xy",Pe/S>Fe/b?(Fe=Pe*b/S,G>Ae?q.t=G-Fe:q.b=G+Fe):(Pe=Fe*S/b,j>xe?q.l=j-Pe:q.r=j+Pe),re.attr("d",H2(q))):Ye();else if(h.isSubplotConstrained)if(Pe>pa||Fe>pa){ie="xy";var qe=Math.min(q.l/S,(b-q.b)/b),Be=Math.max(q.r/S,(b-q.t)/b);q.l=qe*S,q.r=Be*S,q.b=(1-qe)*b,q.t=(1-Be)*b,re.attr("d",H2(q))}else Ye();else!y||Fe0){var We;if(h.isSubplotConstrained||!_&&y.length===1){for(We=0;We1&&(Ye.maxallowed!==void 0&&A===(Ye.range[0]1&&(qe.maxallowed!==void 0&&d===(qe.range[0]=0?Math.min(e,.9):1/(1/Math.max(e,-.3)+3.222))}function Zue(e,r,t){return e?e==="nsew"?t?"":r==="pan"?"move":"crosshair":e.toLowerCase()+"-resize":"pointer"}function VR(e,r,t,n,a){return e.append("path").attr("class","zoombox").style({fill:r>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("transform",BR(t,n)).attr("d",a+"Z")}function GR(e,r,t){return e.append("path").attr("class","zoombox-corners").style({fill:ub.background,stroke:ub.defaultLine,"stroke-width":1,opacity:0}).attr("transform",BR(r,t)).attr("d","M0,0Z")}function YR(e,r,t,n,a,o){e.attr("d",n+"M"+t.l+","+t.t+"v"+t.h+"h"+t.w+"v-"+t.h+"h-"+t.w+"Z"),XR(e,r,a,o)}function XR(e,r,t,n){t||(e.transition().style("fill",n>.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),r.transition().style("opacity",1).duration(200))}function vb(e){hb.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function WR(e){PR&&e.data&&e._context.showTips&&(si.notifier(si._(e,"Double-click to zoom back out"),"long",e),PR=!1)}function Jue(e,r){return"M"+(e.l-.5)+","+(r-pa-.5)+"h-3v"+(2*pa+1)+"h3ZM"+(e.r+.5)+","+(r-pa-.5)+"h3v"+(2*pa+1)+"h-3Z"}function $ue(e,r){return"M"+(r-pa-.5)+","+(e.t-.5)+"v-3h"+(2*pa+1)+"v3ZM"+(r-pa-.5)+","+(e.b+.5)+"v3h"+(2*pa+1)+"v-3Z"}function H2(e){var r=Math.floor(Math.min(e.b-e.t,e.r-e.l,pa)/2);return"M"+(e.l-3.5)+","+(e.t-.5+r)+"h3v"+-r+"h"+r+"v-3h-"+(r+3)+"ZM"+(e.r+3.5)+","+(e.t-.5+r)+"h-3v"+-r+"h"+-r+"v-3h"+(r+3)+"ZM"+(e.r+3.5)+","+(e.b+.5-r)+"h-3v"+r+"h"+-r+"v3h"+(r+3)+"ZM"+(e.l-3.5)+","+(e.b+.5-r)+"h3v"+r+"h"+r+"v3h-"+(r+3)+"Z"}function NR(e,r,t,n,a){for(var o=!1,i={},l={},u,s,f,c,p=(a||{}).xaHash,x=(a||{}).yaHash,g=0;g{"use strict";var Kue=at(),V2=ho(),Que=Li(),jue=El(),Ri=$R().makeDragBox,kn=(wn(),or(_n)).DRAGGERSIZE;G2.initInteractions=function(r){var t=r._fullLayout;if(r._context.staticPlot){Kue.select(r).selectAll(".drag").remove();return}if(!(!t._has("cartesian")&&!t._has("splom"))){var n=Object.keys(t._plots||{}).sort(function(o,i){if((t._plots[o].mainplot&&!0)===(t._plots[i].mainplot&&!0)){var l=o.split("y"),u=i.split("y");return l[0]===u[0]?Number(l[1]||1)-Number(u[1]||1):Number(l[0]||1)-Number(u[0]||1)}return t._plots[o].mainplot?1:-1});n.forEach(function(o){var i=t._plots[o],l=i.xaxis,u=i.yaxis;if(!i.mainplot){var s=Ri(r,i,l._offset,u._offset,l._length,u._length,"ns","ew");s.onmousemove=function(p){r._fullLayout._rehover=function(){r._fullLayout._hoversubplot===o&&r._fullLayout._plots[o]&&V2.hover(r,p,o)},V2.hover(r,p,o),r._fullLayout._lasthover=s,r._fullLayout._hoversubplot=o},s.onmouseout=function(p){r._dragging||(r._fullLayout._hoversubplot=null,Que.unhover(r,p))},r._context.showAxisDragHandles&&(Ri(r,i,l._offset-kn,u._offset-kn,kn,kn,"n","w"),Ri(r,i,l._offset+l._length,u._offset-kn,kn,kn,"n","e"),Ri(r,i,l._offset-kn,u._offset+u._length,kn,kn,"s","w"),Ri(r,i,l._offset+l._length,u._offset+u._length,kn,kn,"s","e"))}if(r._context.showAxisDragHandles){if(o===l._mainSubplot){var f=l._mainLinePosition;l.side==="top"&&(f-=kn),Ri(r,i,l._offset+l._length*.1,f,l._length*.8,kn,"","ew"),Ri(r,i,l._offset,f,l._length*.1,kn,"","w"),Ri(r,i,l._offset+l._length*.9,f,l._length*.1,kn,"","e")}if(o===u._mainSubplot){var c=u._mainLinePosition;u.side!=="right"&&(c-=kn),Ri(r,i,c,u._offset+u._length*.1,kn,u._length*.8,"ns",""),Ri(r,i,c,u._offset+u._length*.9,kn,u._length*.1,"s",""),Ri(r,i,c,u._offset,kn,u._length*.1,"n","")}}});var a=t._hoverlayer.node();a.onmousemove=function(o){o.target=r._fullLayout._lasthover,V2.hover(r,o,t._hoversubplot)},a.onclick=function(o){o.target=r._fullLayout._lasthover,V2.click(r,o)},a.onmousedown=function(o){r._fullLayout._lasthover.onmousedown(o)},G2.updateFx(r)}};G2.updateFx=function(e){var r=e._fullLayout,t=r.dragmode==="pan"?"move":"crosshair";jue(r._draggers,t)}});var jR=_e((B_e,QR)=>{"use strict";var KR=Er();QR.exports=function(r){for(var t=KR.layoutArrayContainers,n=KR.layoutArrayRegexes,a=r.split("[")[0],o,i,l=0;l{"use strict";var efe=os(),gb=Rh(),Bc=il(),rfe=oy().sorterAsc,yb=Er();Oc.containerArrayMatch=jR();var tfe=Oc.isAddVal=function(r){return r==="add"||efe(r)},eF=Oc.isRemoveVal=function(r){return r===null||r==="remove"};Oc.applyContainerArrayChanges=function(r,t,n,a,o){var i=t.astr,l=yb.getComponentMethod(i,"supplyLayoutDefaults"),u=yb.getComponentMethod(i,"draw"),s=yb.getComponentMethod(i,"drawOne"),f=a.replot||a.recalc||l===gb||u===gb,c=r.layout,p=r._fullLayout;if(n[""]){Object.keys(n).length>1&&Bc.warn("Full array edits are incompatible with other edits",i);var x=n[""][""];if(eF(x))t.set(null);else if(Array.isArray(x))t.set(x);else return Bc.warn("Unrecognized full array edit value",i,x),!0;return f?!1:(l(c,p),u(r),!0)}var g=Object.keys(n).map(Number).sort(rfe),w=t.get(),M=w||[],m=o(p,i).get(),k=[],S=-1,b=M.length,T,h,_,y,v,A,d,D;for(T=0;TM.length-(d?0:1)){Bc.warn("index out of range",i,_);continue}if(A!==void 0)v.length>1&&Bc.warn("Insertion & removal are incompatible with edits to the same index.",i,_),eF(A)?k.push(_):d?(A==="add"&&(A={}),M.splice(_,0,A),m&&m.splice(_,0,{})):Bc.warn("Unrecognized full object edit value",i,_,A),S===-1&&(S=_);else for(h=0;h=0;T--)M.splice(k[T],1),m&&m.splice(k[T],1);if(M.length?w||t.set(M):t.set(null),f)return!1;if(l(c,p),s!==gb){var E;if(S===-1)E=g;else{for(b=Math.max(M.length,b),E=[],T=0;T=S));T++)E.push(_);for(T=S;T{"use strict";var iF=ot(),oF=Er(),fa=rr(),Uc=Mn(),lF=hn(),Hc=lF.cleanId,nfe=lF.getFromTrace,mb=oF.traceIs,afe=["x","y","z"];ui.clearPromiseQueue=function(e){Array.isArray(e._promises)&&e._promises.length>0&&fa.log("Clearing previous rejected promises from queue."),e._promises=[]};ui.cleanLayout=function(e){var r,t;e||(e={}),e.xaxis1&&(e.xaxis||(e.xaxis=e.xaxis1),delete e.xaxis1),e.yaxis1&&(e.yaxis||(e.yaxis=e.yaxis1),delete e.yaxis1),e.scene1&&(e.scene||(e.scene=e.scene1),delete e.scene1);var n=(Uc.subplotsRegistry.cartesian||{}).attrRegex,a=(Uc.subplotsRegistry.polar||{}).attrRegex,o=(Uc.subplotsRegistry.ternary||{}).attrRegex,i=(Uc.subplotsRegistry.gl3d||{}).attrRegex,l=Object.keys(e);for(r=0;r3?(M.x=1.02,M.xanchor="left"):M.x<-2&&(M.x=-.02,M.xanchor="right"),M.y>3?(M.y=1.02,M.yanchor="bottom"):M.y<-2&&(M.y=-.02,M.yanchor="top")),e.dragmode==="rotate"&&(e.dragmode="orbit"),e.template&&e.template.layout&&ui.cleanLayout(e.template.layout),e};function wu(e,r,t=!1){var n=e[r],a=r.charAt(0);t&&Array.isArray(n)||n&&n!=="paper"&&(e[r]=Hc(n,a,!0))}ui.cleanData=function(e){for(var r=0;r0)return e.slice(0,r)}ui.hasParent=function(e,r){for(var t=aF(r);t;){if(t in e)return!0;t=aF(t)}return!1};ui.clearAxisTypes=function(e,r,t){for(var n=0;n{let t=(...n)=>n.every(a=>fa.isPlainObject(a))||n.every(a=>Array.isArray(a));if([e,r].every(n=>Array.isArray(n))){if(e.length!==r.length)return!1;for(let n=0;nfa.isPlainObject(n))){if(Object.keys(e).length!==Object.keys(r).length)return!1;for(let n in e){if(n.startsWith("_"))continue;let a=e[n],o=r[n];if(a!==o&&!(t(a,o)?bb(a,o):!1))return!1}return!0}return!1};ui.collectionsAreEqual=bb});var Tb=_e(nt=>{"use strict";var J2=at(),lfe=ot(),sfe=by(),vr=rr(),kt=vr.nestedProperty,_b=Vf(),ga=$T(),fi=Er(),td=W0(),Dr=Mn(),ca=Ht(),ufe=Hm(),ffe=ri(),W2=Tt(),cfe=Wr(),vfe=pb().initInteractions,hfe=(xl(),or(bl)),dfe=_u().clearOutline,hF=al().dfltConfig,X2=rF(),on=sF(),pt=k2(),Nl=ia(),pfe=(wn(),or(_n)).AX_NAME_PATTERN,xb=0,uF=5;function gfe(e,r,t,n){var a;if(e=vr.getGraphDiv(e),_b.init(e),vr.isPlainObject(r)){var o=r;r=o.data,t=o.layout,n=o.config,a=o.frames}var i=_b.triggerHandler(e,"plotly_beforeplot",[r,t,n]);if(i===!1)return Promise.reject();!r&&!t&&!vr.isPlotDiv(e)&&vr.warn("Calling _doPlot as if redrawing but this container doesn't yet have a plot.",e);function l(){if(a)return nt.addFrames(e,a)}pF(e,n),t||(t={}),J2.select(e).classed("js-plotly-plot",!0),W2.makeTester(),Array.isArray(e._promises)||(e._promises=[]);var u=(e.data||[]).length===0&&Array.isArray(r);Array.isArray(r)&&(on.cleanData(r),u?e.data=r:e.data.push.apply(e.data,r),e.empty=!1),(!e.layout||u)&&(e.layout=on.cleanLayout(t)),Dr.supplyDefaults(e);var s=e._fullLayout,f=s._has("cartesian");s._replotting=!0,(u||s._shouldCreateBgLayer)&&(Ofe(e),s._shouldCreateBgLayer&&delete s._shouldCreateBgLayer),W2.initGradients(e),W2.initPatterns(e),u&&ca.saveShowSpikeInitial(e);var c=!e.calcdata||e.calcdata.length!==(e._fullData||[]).length;c&&Dr.doCalcdata(e);for(var p=0;p{vr.isHidden(e)||Dr.resize(e)};if(e._context.fillFrame||typeof ResizeObserver=="undefined")window.addEventListener("resize",y),e._clearResponsive=()=>window.removeEventListener("resize",y);else{let v=e.offsetWidth,A=e.offsetHeight,d=new ResizeObserver(()=>{let D=e.offsetWidth,E=e.offsetHeight,R=Math.abs(D-v)>1||Math.abs(E-A)>1;v=D,A=E,R&&D&&E&&y()});d.observe(e),e._clearResponsive=()=>d.disconnect()}}}else vr.clearResponsive(e);let x=document.fonts?[...document.fonts].filter(y=>y.status!=="loaded"):[];var g=vr.extendFlat({},s._size),w=0;function M(){for(var y=s._basePlotModules,v=0;v["loaded","loading"].includes(a.status));if(!t.length)return;let n={};e._fontLoadToken=n,yield Promise.all(t.map(a=>a.loaded.catch(()=>{}))),e._fontLoadToken===n&&(delete e._fontLoadToken,W2.savedBBoxes={},nt._doPlot(e))})}function Gc(e){var r=e._fullLayout;r._redrawFromAutoMarginCount?r._redrawFromAutoMarginCount--:e.emit("plotly_afterplot")}function mfe(e){return vr.extendFlat(hF,e)}function dF(e,r){try{e._fullLayout._paper.style("background",r)}catch(t){vr.error(t)}}function bfe(e,r){var t=cfe.combine(r,"white");dF(e,t)}function pF(e,r){if(!e._context){e._context=vr.extendDeep({},hF);var t=J2.select("base");e._context._baseUrl=t.size()&&t.attr("href")?window.location.href.split("#")[0]:""}var n=e._context,a,o,i;if(r){for(o=Object.keys(r),a=0;a=e.data.length||a<-e.data.length)throw new Error(t+" must be valid indices for gd.data.");if(r.indexOf(a,n+1)>-1||a>=0&&r.indexOf(-e.data.length+a)>-1||a<0&&r.indexOf(e.data.length+a)>-1)throw new Error("each index in "+t+" must be unique.")}}function gF(e,r,t){if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(typeof r=="undefined")throw new Error("currentIndices is a required argument.");if(Array.isArray(r)||(r=[r]),K2(e,r,"currentIndices"),typeof t!="undefined"&&!Array.isArray(t)&&(t=[t]),typeof t!="undefined"&&K2(e,t,"newIndices"),typeof t!="undefined"&&r.length!==t.length)throw new Error("current and new indices must be of equal length.")}function wfe(e,r,t){var n,a;if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(typeof r=="undefined")throw new Error("traces must be defined.");for(Array.isArray(r)||(r=[r]),n=0;n=0&&f=0&&f0&&typeof y.parts[d]!="string";)d--;var D=y.parts[d],E=y.parts[d-1]+"."+D,R=y.parts.slice(0,d).join("."),z=kt(e.layout,R).get(),I=kt(n,R).get(),P=y.get();if(v!==void 0){m[_]=v,k[_]=D==="reverse"?v:Ho(P);var L=td.getLayoutValObject(n,y.parts);if(L&&L.impliedEdits&&v!==null)for(var F in L.impliedEdits)S(vr.relativeAttr(_,F),L.impliedEdits[F]);if(["width","height"].indexOf(_)!==-1)if(v){S("autosize",null);var B=_==="height"?"width":"height";S(B,n[B])}else n[_]=e._initialAutoSize[_];else if(_==="autosize")S("width",v?null:n.width),S("height",v?null:n.height);else if(E.match(AF))h(E),kt(n,R+"._inputRange").set(null);else if(E.match(kF)){h(E),kt(n,R+"._inputRange").set(null);var O=kt(n,R).get();O._inputDomain&&(O._input.domain=O._inputDomain.slice())}else E.match(kfe)&&kt(n,R+"._inputDomain").set(null);if(D==="type"){T=z;var V=I.type==="linear"&&v==="log",K=I.type==="log"&&v==="linear";if(V||K){if(!T||!T.range)S(R+".autorange",!0);else if(I.autorange)V&&(T.range=T.range[1]>T.range[0]?[1,2]:[2,1]);else{var j=T.range[0],G=T.range[1];V?(j<=0&&G<=0&&S(R+".autorange",!0),j<=0?j=G/1e6:G<=0&&(G=j/1e6),S(R+".range[0]",Math.log(j)/Math.LN10),S(R+".range[1]",Math.log(G)/Math.LN10)):(S(R+".range[0]",Math.pow(10,j)),S(R+".range[1]",Math.pow(10,G)))}Array.isArray(n._subplots.polar)&&n._subplots.polar.length&&n[y.parts[0]]&&y.parts[1]==="radialaxis"&&delete n[y.parts[0]]._subplot.viewInitial["radialaxis.range"],fi.getComponentMethod("annotations","convertCoords")(e,I,v,S),fi.getComponentMethod("images","convertCoords")(e,I,v,S)}else S(R+".autorange",!0),S(R+".range",null);kt(n,R+"._inputRange").set(null)}else if(D.match(pfe)){var q=kt(n,_).get(),J=(v||{}).type;(!J||J==="-")&&(J="linear"),fi.getComponentMethod("annotations","convertCoords")(e,q,J,S),fi.getComponentMethod("images","convertCoords")(e,q,J,S)}var te=X2.containerArrayMatch(_);if(te){f=te.array,c=te.index;var Z=te.property,ie=L||{editType:"calc"};c!==""&&Z===""&&(X2.isAddVal(v)?k[_]=null:X2.isRemoveVal(v)?k[_]=(kt(t,f).get()||[])[c]:vr.warn("unrecognized full object value",r)),Nl.update(M,ie),s[f]||(s[f]={});var Q=s[f][c];Q||(Q=s[f][c]={}),Q[Z]=v,delete r[_]}else D==="reverse"?(z.range?z.range.reverse():(S(R+".autorange",!0),z.range=[1,0]),I.autorange?M.calc=!0:M.plot=!0):(_==="dragmode"&&(v===!1&&P!==!1||v!==!1&&P===!1)||n._has("scatter-like")&&n._has("regl")&&_==="dragmode"&&(v==="lasso"||v==="select")&&!(P==="lasso"||P==="select")?M.plot=!0:L?Nl.update(M,L):M.calc=!0,y.set(v))}}for(f in s){var re=X2.applyContainerArrayChanges(e,o(t,f),s[f],M,o);re||(M.plot=!0)}for(var ue in b){T=ca.getFromId(e,ue);var ee=T&&T._constraintGroup;if(ee){M.calc=!0;for(var ae in ee)b[ae]||(ca.getFromId(e,ae)._constraintShrinkable=!0)}}(CF(e)||r.height||r.width)&&(M.plot=!0);var ce=n.shapes;for(c=0;c1;)if(n.pop(),t=kt(r,n.join(".")+".uirevision").get(),t!==void 0)return t;return r.uirevision}function Efe(e,r){for(var t=0;t[R,e._ev.listeners(R)]);o=nt.newPlot(e,r,t,n).then(()=>{for(let[R,z]of E)z.forEach(I=>e.on(R,I));return nt.react(e,r,t,n)})}else{e.data=r||[],on.cleanData(e.data),e.layout=t||{},on.cleanLayout(e.layout),Dfe(e.data,e.layout,l,u),Dr.supplyDefaults(e,{skipUpdateCalc:!0});var c=e._fullData,p=e._fullLayout,x=p.datarevision===void 0,g=p.transition,w=Pfe(e,u,p,x,g),M=w.newDataRevision,m=Ffe(e,l,c,x,g,M);if(CF(e)&&(w.layoutReplot=!0),m.calc||w.calc){e.calcdata=void 0;for(var k=Object.getOwnPropertyNames(p),S=0;S(f||e.emit("plotly_react",{config:n,data:r,layout:t}),e))}function Ffe(e,r,t,n,a,o){var i=r.length===t.length;if(!a&&!i)return{fullReplot:!0,calc:!0};var l=Nl.traceFlags();l.arrays={},l.nChanges=0,l.nChangesAnim=0;var u,s;function f(x){var g=td.getTraceValObject(s,x);return!s._module.animatable&&g.anim&&(g.anim=!1),g}var c={getValObject:f,flags:l,immutable:n,transition:a,newDataRevision:o,gd:e},p={};for(u=0;u=a.length?a[0]:a[s]:a}function l(s){return Array.isArray(o)?s>=o.length?o[0]:o[s]:o}function u(s,f){var c=0;return function(){if(s&&++c===f)return s()}}return new Promise(function(s,f){function c(){if(n._frameQueue.length!==0){for(;n._frameQueue.length;){var D=n._frameQueue.pop();D.onInterrupt&&D.onInterrupt()}e.emit("plotly_animationinterrupted",[])}}function p(D){if(D.length!==0){for(var E=0;En._timeToNext&&g()};D()}var M=0;function m(D){return Array.isArray(a)?M>=a.length?D.transitionOpts=a[M]:D.transitionOpts=a[0]:D.transitionOpts=a,M++,D}var k,S,b=[],T=r==null,h=Array.isArray(r),_=!T&&!h&&vr.isPlainObject(r);if(_)b.push({type:"object",data:m(vr.extendFlat({},r))});else if(T||["string","number"].indexOf(typeof r)!==-1)for(k=0;k0&&AA)&&d.push(S);b=d}}b.length>0?p(b):(e.emit("plotly_animated"),s())})}function zfe(e,r,t){if(e=vr.getGraphDiv(e),r==null)return Promise.resolve();if(!vr.isPlotDiv(e))throw new Error("This element is not a Plotly plot: "+e+". It's likely that you've failed to create a plot before adding frames. For more details, see https://plotly.com/javascript/animations/");var n,a,o,i,l=e._transitionData._frames,u=e._transitionData._frameHash;if(!Array.isArray(r))throw new Error("addFrames failure: frameList must be an Array of frame definitions"+r);var s=l.length+r.length*2,f=[],c={};for(n=r.length-1;n>=0;n--)if(vr.isPlainObject(r[n])){var p=r[n].name,x=(u[p]||c[p]||{}).name,g=r[n].name,w=u[x]||c[x];x&&g&&typeof g=="number"&&w&&xby.index?-1:_.index=0;n--){if(a=f[n].frame,typeof a.name=="number"&&vr.warn("Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings"),!a.name)for(;u[a.name="frame "+e._transitionData._counter++];);if(u[a.name]){for(o=0;o=0;t--)n=r[t],o.push({type:"delete",index:n}),i.unshift({type:"insert",index:n,value:a[n]});var l=Dr.modifyFrames,u=Dr.modifyFrames,s=[e,i],f=[e,o];return ga&&ga.add(e,l,s,u,f),Dr.modifyFrames(e,o)}function qfe(e){e=vr.getGraphDiv(e);var r=e._fullLayout||{},t=e._fullData||[];return Dr.cleanPlot([],{},t,r),Dr.purge(e),_b.purge(e),r._container&&r._container.remove(),delete e._context,e}function Bfe(e){var r=e._fullLayout,t=e.getBoundingClientRect();if(!vr.equalDomRects(t,r._lastBBox)){var n=r._invTransform=vr.inverseTransformMatrix(vr.getFullTransformMatrix(e));r._invScaleX=Math.sqrt(n[0][0]*n[0][0]+n[0][1]*n[0][1]+n[0][2]*n[0][2]),r._invScaleY=Math.sqrt(n[1][0]*n[1][0]+n[1][1]*n[1][1]+n[1][2]*n[1][2]),r._lastBBox=t}}function Ofe(e){var r=J2.select(e),t=e._fullLayout;if(t._calcInverseTransform=Bfe,t._calcInverseTransform(e),t._container=r.selectAll(".plot-container").data([0]),t._container.enter().insert("div",":first-child").classed("plot-container",!0).classed("plotly",!0).style({width:"100%",height:"100%"}),t._paperdiv=t._container.selectAll(".svg-container").data([0]),t._paperdiv.enter().append("div").classed("user-select-none",!0).classed("svg-container",!0).style("position","relative"),t._glcontainer=t._paperdiv.selectAll(".gl-container").data([{}]),t._glcontainer.enter().append("div").classed("gl-container",!0),t._paperdiv.selectAll(".main-svg").remove(),t._paperdiv.select(".modebar-container").remove(),t._paper=t._paperdiv.insert("svg",":first-child").classed("main-svg",!0),t._toppaper=t._paperdiv.append("svg").classed("main-svg",!0),t._modebardiv=t._paperdiv.append("div"),delete t._modeBar,t._hoverpaper=t._paperdiv.append("svg").classed("main-svg",!0),!t._uid){var n={};J2.selectAll("defs").each(function(){this.id&&(n[this.id.split("-")[1]]=1)}),t._uid=vr.randstr(n)}t._paperdiv.selectAll(".main-svg").attr(hfe.svgAttrs),t._defs=t._paper.append("defs").attr("id","defs-"+t._uid),t._clips=t._defs.append("g").classed("clips",!0),t._topdefs=t._toppaper.append("defs").attr("id","topdefs-"+t._uid),t._topclips=t._topdefs.append("g").classed("clips",!0),t._bgLayer=t._paper.append("g").classed("bglayer",!0),t._draggers=t._paper.append("g").classed("draglayer",!0);var a=t._paper.append("g").classed("layer-below",!0);t._imageLowerLayer=a.append("g").classed("imagelayer",!0),t._shapeLowerLayer=a.append("g").classed("shapelayer",!0),t._cartesianlayer=t._paper.append("g").classed("cartesianlayer",!0),t._polarlayer=t._paper.append("g").classed("polarlayer",!0),t._smithlayer=t._paper.append("g").classed("smithlayer",!0),t._ternarylayer=t._paper.append("g").classed("ternarylayer",!0),t._geolayer=t._paper.append("g").classed("geolayer",!0),t._funnelarealayer=t._paper.append("g").classed("funnelarealayer",!0),t._pielayer=t._paper.append("g").classed("pielayer",!0),t._iciclelayer=t._paper.append("g").classed("iciclelayer",!0),t._treemaplayer=t._paper.append("g").classed("treemaplayer",!0),t._sunburstlayer=t._paper.append("g").classed("sunburstlayer",!0),t._indicatorlayer=t._toppaper.append("g").classed("indicatorlayer",!0),t._glimages=t._paper.append("g").classed("glimages",!0);var o=t._toppaper.append("g").classed("layer-above",!0);t._imageUpperLayer=o.append("g").classed("imagelayer",!0),t._shapeUpperLayer=o.append("g").classed("shapelayer",!0),t._selectionLayer=t._toppaper.append("g").classed("selectionlayer",!0),t._infolayer=t._toppaper.append("g").classed("infolayer",!0),t._menulayer=t._toppaper.append("g").classed("menulayer",!0),t._zoomlayer=t._toppaper.append("g").classed("zoomlayer",!0),t._hoverlayer=t._hoverpaper.append("g").classed("hoverlayer",!0),t._modebardiv.classed("modebar-container",!0).style("position","absolute").style("top","0px").style("right","0px"),e.emit("plotly_framework")}nt.animate=Ife;nt.addFrames=zfe;nt.deleteFrames=Nfe;nt.addTraces=_F;nt.deleteTraces=wF;nt.extendTraces=bF;nt.moveTraces=wb;nt.prependTraces=xF;nt.newPlot=_fe;nt._doPlot=gfe;nt.purge=qfe;nt.react=Rfe;nt.redraw=xfe;nt.relayout=Vc;nt.restyle=Q2;nt.setPlotConfig=mfe;nt.update=ed;nt._guiRelayout=Mb(Vc);nt._guiRestyle=Mb(Q2);nt._guiUpdate=Mb(ed);nt._storeDirectGUIEdit=Afe});var Ws=_e(ci=>{"use strict";var Ufe=Er();ci.getDelay=function(e){return e._has&&(e._has("gl3d")||e._has("map"))?500:0};ci.getRedrawFunc=function(e){return function(){Ufe.getComponentMethod("colorbar","draw")(e)}};ci.encodeSVG=function(e){return"data:image/svg+xml,"+encodeURIComponent(e)};ci.encodeJSON=function(e){return"data:application/json,"+encodeURIComponent(e)};var EF=window.URL||window.webkitURL;ci.createObjectURL=function(e){return EF.createObjectURL(e)};ci.revokeObjectURL=function(e){return EF.revokeObjectURL(e)};ci.createBlob=function(e,r){if(r==="svg")return new window.Blob([e],{type:"image/svg+xml;charset=utf-8"});if(r==="full-json")return new window.Blob([e],{type:"application/json;charset=utf-8"});var t=Hfe(window.atob(e));return new window.Blob([t],{type:"image/"+r})};ci.octetStream=function(e){document.location.href="data:application/octet-stream"+e};ci.getPlotTitle=function(e){var n,a,o,i;var r=e._fullLayout;if(r){var t=(n=r.title)==null?void 0:n.text;return t===((a=r._dfltTitle)==null?void 0:a.plot)?void 0:t}return(i=(o=e.layout)==null?void 0:o.title)==null?void 0:i.text};ci.getPlotSubtitle=function(e){var n,a,o,i,l,u;var r=e._fullLayout;if(r){var t=(a=(n=r.title)==null?void 0:n.subtitle)==null?void 0:a.text;return t===((o=r._dfltTitle)==null?void 0:o.subtitle)?void 0:t}return(u=(l=(i=e.layout)==null?void 0:i.title)==null?void 0:l.subtitle)==null?void 0:u.text};function Hfe(e){for(var r=e.length,t=new ArrayBuffer(r),n=new Uint8Array(t),a=0;a{"use strict";var kb=at(),Y_e=rr(),Vfe=Tt(),Gfe=Wr(),X_e=(xl(),or(bl)),Ab=/"/g,Zs="TOBESTRIPPED",Yfe=new RegExp(`("${Zs})|(${Zs}")|("${Zs})|(${Zs}")`,"g"),Xfe=["&","&","&",""",""",""","'","'","'"],Wfe=["<","<","<"],Zfe=[">",">",">"];function Jfe(e){let r=kb.select("body").append("div").style({display:"none"}).html(""),t=e.replace(/(&[^;]*;)/gi,n=>{let a=n.toLowerCase();return Xfe.includes(a)?n:Wfe.includes(a)?"<":Zfe.includes(a)?">":n.includes("<")||n.includes(">")?"":r.html(n).text()});return r.remove(),t}function $fe(e){return e.replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&")}LF.exports=function(r,t,n){var a=r._fullLayout,o=a._paper,i=a._toppaper,l=a.width,u=a.height,s;o.insert("rect",":first-child").call(Vfe.setRect,0,0,l,u).call(Gfe.fill,a.paper_bgcolor);var f=a._basePlotModules||[];for(s=0;s{"use strict";var Kfe=rr(),Qfe=r1().EventEmitter,Yc=Ws();function jfe(e){var r=e.emitter||new Qfe,t=new Promise(function(n,a){var o=window.Image,i=e.svg,l=e.format||"png",u=e.canvas,s=e.scale||1,f=e.width||300,c=e.height||150,p=s*f,x=s*c,g=u.getContext("2d",{willReadFrequently:!0}),w=new o,M,m;l==="svg"||Kfe.isSafari()?m=Yc.encodeSVG(i):(M=Yc.createBlob(i,"svg"),m=Yc.createObjectURL(M)),u.width=p,u.height=x,w.onload=function(){var k;switch(M=null,Yc.revokeObjectURL(m),l!=="svg"&&g.drawImage(w,0,0,p,x),l){case"jpeg":k=u.toDataURL("image/jpeg");break;case"png":k=u.toDataURL("image/png");break;case"webp":k=u.toDataURL("image/webp");break;case"svg":k=m;break;default:var S="Image format is not jpeg, png, svg or webp.";if(a(new Error(S)),!e.promise)return r.emit("error",S)}n(k),e.promise||r.emit("success",k)},w.onerror=function(k){if(M=null,Yc.revokeObjectURL(m),a(k),!e.promise)return r.emit("error",k)},w.src=m});return e.promise?t:r}DF.exports=jfe});var Cb=_e((J_e,PF)=>{"use strict";var RF=ot(),FF=Tb(),ece=Mn(),xo=rr(),Xc=Ws(),rce=ad(),tce=id(),nce=ff().version,Sb=(N3(),or(z3)).default;function ace(e,r){r=r||{};var t,n,a,o;xo.isPlainObject(e)?(t=e.data||[],n=e.layout||{},a=e.config||{},o={}):(e=xo.getGraphDiv(e),t=xo.extendDeep([],e.data),n=xo.extendDeep({},e.layout),a=e._context,o=e._fullLayout||{});function i(h){return!(h in r)||xo.validate(r[h],Sb[h])}if(!i("width")&&r.width!==null||!i("height")&&r.height!==null)throw new Error("Height and width should be pixel values.");if(!i("format"))throw new Error("Export format is not "+xo.join2(Sb.format.values,", "," or ")+".");var l={};function u(h,_){return xo.coerce(r,l,Sb,h,_)}var s=u("format"),f=u("width"),c=u("height"),p=u("scale"),x=u("setBackground"),g=u("imageDataOnly"),w=document.createElement("div");w.style.position="absolute",w.style.left="-5000px",document.body.appendChild(w);var M=xo.extendFlat({},n);f?M.width=f:r.width===null&&RF(o.width)&&(M.width=o.width),c?M.height=c:r.height===null&&RF(o.height)&&(M.height=o.height);var m=xo.extendFlat({},a,{_exportedPlot:!0,staticPlot:!0,setBackground:x}),k=Xc.getRedrawFunc(w);function S(){return new Promise(function(h){setTimeout(h,Xc.getDelay(w._fullLayout))})}function b(){return new Promise(function(h,_){var y=rce(w,s,p),v=w._fullLayout.width,A=w._fullLayout.height;function d(){FF.purge(w),document.body.removeChild(w)}if(s==="full-json"){var D=ece.graphJson(w,!1,"object",!0,!0);return D.version=nce,D=JSON.stringify(D),d(),h(g?D:Xc.encodeJSON(D))}if(d(),s==="svg")return h(g?y:Xc.encodeSVG(y));var E=document.createElement("canvas");E.id=xo.randstr(),tce({format:s,width:v,height:A,scale:p,canvas:E,svg:y,promise:!0}).then(h).catch(_)})}function T(h){return g?h.replace(Xc.IMAGE_URL_PREFIX,""):h}return new Promise(function(h,_){FF.newPlot(w,t,M,m).then(k).then(S).then(b).then(function(y){h(T(y))}).catch(function(y){_(y)})})}PF.exports=ace});var NF=_e(($_e,zF)=>{"use strict";var vi=rr(),ice=Mn(),oce=W0(),lce=al().dfltConfig,Fi=vi.isPlainObject,$s=Array.isArray,Eb=vi.isArrayOrTypedArray;zF.exports=function(r,t){r===void 0&&(r=[]),t===void 0&&(t={});var n=oce.get(),a=[],o={_context:vi.extendFlat({},lce)},i,l;$s(r)?(o.data=vi.extendDeep([],r),i=r):(o.data=[],i=[],a.push(Sn("array","data"))),Fi(t)?(o.layout=vi.extendDeep({},t),l=t):(o.layout={},l={},arguments.length>1&&a.push(Sn("object","layout"))),ice.supplyDefaults(o);for(var u=o._fullData,s=i.length,f=0;fc.length&&n.push(Sn("unused",a,s.concat(c.length)));var m=c.length,k=Array.isArray(M);k&&(m=Math.min(m,M.length));var S,b,T,h,_;if(p.dimensions===2)for(b=0;bc[b].length&&n.push(Sn("unused",a,s.concat(b,c[b].length)));var y=c[b].length;for(S=0;S<(k?Math.min(y,M[b].length):y);S++)T=k?M[b][S]:M,h=f[b][S],_=c[b][S],vi.validate(h,T)?_!==h&&_!==+h&&n.push(Sn("dynamic",a,s.concat(b,S),h,_)):n.push(Sn("value",a,s.concat(b,S),h))}else n.push(Sn("array",a,s.concat(b),f[b]));else for(b=0;b{"use strict";var dce=rr(),ld=Ws();function pce(e,r,t){var n=document.createElement("a"),a="download"in n,o=new Promise(function(i,l){var u,s;if(a)return u=ld.createBlob(e,t),s=ld.createObjectURL(u),n.href=s,n.download=r,document.body.appendChild(n),n.click(),document.body.removeChild(n),ld.revokeObjectURL(s),u=null,i(r);if(dce.isSafari()){var f=t==="svg"?",":";base64,";return ld.octetStream(f+encodeURIComponent(e)),i(r)}l(new Error("download error"))});return o}qF.exports=pce});var Lb=_e((Q_e,VF)=>{"use strict";var sd=rr(),OF=Wn(),gce=Cb(),yce=BF(),UF=Ws(),HF=40;function mce(e,r){var t;return sd.isPlainObject(e)||(t=sd.getGraphDiv(e)),r=r||{},r.format=r.format||"png",r.width=r.width||null,r.height=r.height||null,r.imageDataOnly=!0,new Promise(function(n,a){t&&t._snapshotInProgress&&a(new Error("Image capture already in progress.")),t&&(t._snapshotInProgress=!0);var o=gce(e,r),i=r.filename||e.fn;if(!i){let u=UF.getPlotTitle(e);if(u&&!OF.matchTex(u))i=sd.slugify(u,HF);else{let s=UF.getPlotSubtitle(e);s&&!OF.matchTex(s)&&(i=sd.slugify(s,HF))}}var l=i||"plot-image";l+="."+r.format.replace("-","."),o.then(function(u){return t&&(t._snapshotInProgress=!1),yce(u,l,r.format)}).then(function(u){n(u)}).catch(function(u){t&&(t._snapshotInProgress=!1),a(u)})})}VF.exports=mce});var ZF=_e(Db=>{"use strict";var La=rr(),Da=La.isPlainObject,GF=W0(),YF=Mn(),bce=Vn(),XF=Mt(),WF=al().dfltConfig;Db.makeTemplate=function(e){e=La.isPlainObject(e)?e:La.getGraphDiv(e),e=La.extendDeep({_context:WF},{data:e.data,layout:e.layout}),YF.supplyDefaults(e);var r=e.data||[],t=e.layout||{};t._basePlotModules=e._fullLayout._basePlotModules,t._modules=e._fullLayout._modules;var n={data:{},layout:{}};r.forEach(function(x){var g={};Wc(x,g,_ce.bind(null,x));var w=La.coerce(x,{},bce,"type"),M=n.data[w];M||(M=n.data[w]=[]),M.push(g)}),Wc(t,n.layout,xce.bind(null,t)),delete n.layout.template;var a=t.template;if(Da(a)){var o=a.layout,i,l,u,s,f,c;Da(o)&&ud(o,n.layout);var p=a.data;if(Da(p)){for(l in n.data)if(u=p[l],Array.isArray(u)){for(f=n.data[l],c=f.length,s=u.length,i=0;im?i.push({code:"unused",traceType:x,templateCount:M,dataCount:m}):m>M&&i.push({code:"reused",traceType:x,templateCount:M,dataCount:m})}}function k(S,b){for(var T in S)if(T.charAt(0)!=="_"){var h=S[T],_=hi(S,T,b);Da(h)?(Array.isArray(S)&&h._template===!1&&h.templateitemname&&i.push({code:"missing",path:_,templateitemname:h.templateitemname}),k(h,_)):Array.isArray(h)&&wce(h)&&k(h,_)}}if(k({data:u,layout:l},""),i.length)return i.map(Mce)};function wce(e){for(var r=0;r{"use strict";var gn=Tb();qt._doPlot=gn._doPlot;qt.newPlot=gn.newPlot;qt.restyle=gn.restyle;qt.relayout=gn.relayout;qt.redraw=gn.redraw;qt.update=gn.update;qt._guiRestyle=gn._guiRestyle;qt._guiRelayout=gn._guiRelayout;qt._guiUpdate=gn._guiUpdate;qt._storeDirectGUIEdit=gn._storeDirectGUIEdit;qt.react=gn.react;qt.extendTraces=gn.extendTraces;qt.prependTraces=gn.prependTraces;qt.addTraces=gn.addTraces;qt.deleteTraces=gn.deleteTraces;qt.moveTraces=gn.moveTraces;qt.purge=gn.purge;qt.addFrames=gn.addFrames;qt.deleteFrames=gn.deleteFrames;qt.animate=gn.animate;qt.setPlotConfig=gn.setPlotConfig;var Tce=If().getGraphDiv,Ace=b2().eraseActiveShape;qt.deleteActiveShape=function(e){return Ace(Tce(e))};qt.toImage=Cb();qt.validate=NF();qt.downloadImage=Lb();var JF=ZF();qt.makeTemplate=JF.makeTemplate;qt.validateTemplate=JF.validateTemplate});var QF=_e((r7e,KF)=>{"use strict";var Rb=rr(),kce=Er();KF.exports=function(r,t,n,a){var o=a("x"),i=a("y"),l,u=kce.getComponentMethod("calendars","handleTraceDefaults");if(u(r,t,["x","y"],n),o){var s=Rb.minRowLength(o);i?l=Math.min(s,Rb.minRowLength(i)):(l=s,a("y0"),a("dy"))}else{if(!i)return 0;l=Rb.minRowLength(i),a("x0"),a("dx")}return t._length=l,l}});var tP=_e((t7e,rP)=>{"use strict";var jF=rr().dateTick0,Sce=(mn(),or(Cn)),Cce=Sce.ONEWEEK;function eP(e,r){return e%Cce===0?jF(r,1):jF(r,0)}rP.exports=function(r,t,n,a,o){if(o||(o={x:!0,y:!0}),o.x){var i=a("xperiod");i&&(a("xperiod0",eP(i,t.xcalendar)),a("xperiodalignment"))}if(o.y){var l=a("yperiod");l&&(a("yperiod0",eP(l,t.ycalendar)),a("yperiodalignment"))}}});var iP=_e((n7e,aP)=>{"use strict";var nP=["orientation","groupnorm","stackgaps"];aP.exports=function(r,t,n,a){var o=n._scatterStackOpts,i=a("stackgroup");if(i){var l=t.xaxis+t.yaxis,u=o[l];u||(u=o[l]={});var s=u[i],f=!1;s?s.traces.push(t):(s=u[i]={traceIndices:[],traces:[t]},f=!0);for(var c={orientation:t.x&&!t.y?"h":"v"},p=0;p{"use strict";var oP=Wr(),lP=ro().hasColorscale,sP=no(),Ece=Sa();uP.exports=function(r,t,n,a,o,i={}){var l=Ece.isBubble(r),u=(r.line||{}).color,s;if(u&&(n=u),o("marker.symbol"),o("marker.opacity",l?.7:1),o("marker.size"),i.noAngle||(o("marker.angle"),i.noAngleRef||o("marker.angleref"),i.noStandOff||o("marker.standoff")),o("marker.color",n),lP(r,"marker")&&sP(r,t,a,o,{prefix:"marker.",cLetter:"c"}),i.noSelect||(o("selected.marker.color"),o("unselected.marker.color"),o("selected.marker.size"),o("unselected.marker.size")),i.noLine||(u&&!Array.isArray(u)&&t.marker.color!==u?s=u:l?s=oP.background:s=oP.defaultLine,o("marker.line.color",s),lP(r,"marker.line")&&sP(r,t,a,o,{prefix:"marker.line.",cLetter:"c"}),o("marker.line.width",l?1:0),i.noLineDash||o("marker.line.dash")),l&&(o("marker.sizeref"),o("marker.sizemin"),o("marker.sizemode")),i.gradient){var f=o("marker.gradient.type");f!=="none"&&o("marker.gradient.color")}}});var Pb=_e((i7e,fP)=>{"use strict";var Lce=rr().isArrayOrTypedArray,Dce=ro().hasColorscale,Rce=no();fP.exports=function(r,t,n,a,o,i){i||(i={});var l=(r.marker||{}).color;if(l&&l._inputArray&&(l=l._inputArray),o("line.color",n),Dce(r,"line"))Rce(r,t,a,o,{prefix:"line.",cLetter:"c"});else{var u=(Lce(l)?!1:l)||n;o("line.color",u)}o("line.width"),i.noDash||o("line.dash"),i.backoff&&o("line.backoff")}});var vP=_e((o7e,cP)=>{"use strict";cP.exports=function(r,t,n){var a=n("line.shape");a==="spline"&&n("line.smoothing")}});var Ib=_e((l7e,hP)=>{"use strict";var Fce=rr();hP.exports=function(e,r,t,n,a){a=a||{},n("textposition"),Fce.coerceFont(n,"textfont",a.font||t.font,a),a.noSelect||(n("selected.textfont.color"),n("unselected.textfont.color"))}});var gP=_e((s7e,pP)=>{"use strict";var cd=Wr(),dP=rr().isArrayOrTypedArray;function Pce(e){for(var r=cd.interpolate(e[0][1],e[1][1],.5),t=2;t{"use strict";var yP=rr(),Ice=Er(),zce=Xs(),Nce=(N2(),or(z2)),Mu=Sa(),qce=QF(),Bce=tP(),Oce=iP(),Uce=Fb(),Hce=Pb(),mP=vP(),Vce=Ib(),Gce=gP(),Yce=rr().coercePattern;bP.exports=function(r,t,n,a){function o(x,g){return yP.coerce(r,t,zce,x,g)}var i=qce(r,t,a,o);if(i||(t.visible=!1),!!t.visible){Bce(r,t,a,o),o("xhoverformat"),o("yhoverformat"),o("zorder");var l=Oce(r,t,a,o);a.scattermode==="group"&&t.orientation===void 0&&o("orientation","v");var u=!l&&i{"use strict";var Xce=mc().getAxisGroup;_P.exports=function(r,t,n,a,o){var i=t.orientation,l=t[{v:"x",h:"y"}[i]+"axis"],u=Xce(n,l)+i,s=n._alignmentOpts||{},f=a("alignmentgroup"),c=s[u];c||(c=s[u]={});var p=c[f];p?p.traces.push(t):p=c[f]={traces:[t],alignmentIndex:Object.keys(c).length,offsetGroups:{}};var x=a("offsetgroup")||"",g=p.offsetGroups,w=g[x];t._offsetIndex=0,(o!=="group"||x)&&(w||(w=g[x]={offsetIndex:Object.keys(g).length}),t._offsetIndex=w.offsetIndex)}});var TP=_e((c7e,MP)=>{"use strict";var Wce=rr(),Zce=wP(),Jce=Xs();MP.exports=function(r,t){var n,a,o,i=t.scattermode;function l(p){return Wce.coerce(a._input,a,Jce,p)}if(t.scattermode==="group")for(o=0;o=0;f--){var c=r[f];if(c.type==="scatter"&&c.xaxis===u.xaxis&&c.yaxis===u.yaxis){c.opacity=void 0;break}}}}}});var kP=_e((v7e,AP)=>{"use strict";var $ce=rr(),Kce=o1();AP.exports=function(e,r){function t(a,o){return $ce.coerce(e,r,Kce,a,o)}var n=r.barmode==="group";r.scattermode==="group"&&t("scattergap",n?r.bargap:.2)}});var EP=_e((h7e,CP)=>{"use strict";var Qce=ot(),SP=rr(),jce=SP.dateTime2ms,vd=SP.incrementMonth,eve=(mn(),or(Cn)),rve=eve.ONEAVGMONTH;CP.exports=function(r,t,n,a){if(t.type!=="date")return{vals:a};var o=r[n+"periodalignment"];if(!o)return{vals:a};var i=r[n+"period"],l;if(Qce(i)){if(i=+i,i<=0)return{vals:a}}else if(typeof i=="string"&&i.charAt(0)==="M"){var u=+i.substring(1);if(u>0&&Math.round(u)===u)l=u;else return{vals:a}}for(var s=t.calendar,f=o==="start",c=o==="end",p=r[n+"period0"],x=jce(p,s)||0,g=[],w=[],M=[],m=a.length,k=0;kS;)h=vd(h,-l,s);for(;h<=S;)h=vd(h,l,s);T=vd(h,-l,s)}else{for(b=Math.round((S-x)/i),h=x+b*i;h>S;)h-=i;for(;h<=S;)h+=i;T=h-i}g[k]=f?T:c?h:(T+h)/2,w[k]=T,M[k]=h}return{vals:g,starts:w,ends:M}}});var qb=_e((d7e,DP)=>{"use strict";var zb=ro().hasColorscale,Nb=wl(),LP=Sa();DP.exports=function(r,t){LP.hasLines(t)&&zb(t,"line")&&Nb(r,t,{vals:t.line.color,containerStr:"line",cLetter:"c"}),LP.hasMarkers(t)&&(zb(t,"marker")&&Nb(r,t,{vals:t.marker.color,containerStr:"marker",cLetter:"c"}),zb(t,"marker.line")&&Nb(r,t,{vals:t.marker.line.color,containerStr:"marker.line",cLetter:"c"}))}});var hd=_e((p7e,RP)=>{"use strict";var Zt=rr();RP.exports=function(r,t){for(var n=0;n{"use strict";var FP=rr();PP.exports=function(r,t){FP.isArrayOrTypedArray(t.selectedpoints)&&FP.tagSelected(r,t)}});var Vb=_e((y7e,HP)=>{"use strict";var zP=ot(),Ob=rr(),Zc=Ht(),NP=EP(),Bb=(mn(),or(Cn)).BADNUM,Ub=Sa(),tve=qb(),nve=hd(),ave=IP();function ive(e,r){var t=e._fullLayout,n=r._xA=Zc.getFromId(e,r.xaxis||"x","x"),a=r._yA=Zc.getFromId(e,r.yaxis||"y","y"),o=n.makeCalcdata(r,"x"),i=a.makeCalcdata(r,"y"),l=NP(r,n,"x",o),u=NP(r,a,"y",i),s=l.vals,f=u.vals,c=r._length,p=new Array(c),x=r.ids,g=Hb(r,t,n,a),w=!1,M,m,k,S,b,T;OP(t,r);var h="x",_="y",y;if(g)Ob.pushUnique(g.traceIndices,r.index),M=g.orientation==="v",M?(_="s",y="x"):(h="s",y="y"),b=g.stackgaps==="interpolate";else{var v=BP(r,c);qP(e,r,n,a,s,f,v)}var A=!!r.xperiodalignment,d=!!r.yperiodalignment;for(m=0;mm&&p[S].gap;)S--;for(T=p[S].s,k=p.length-1;k>S;k--)p[k].s=T;for(;m{"use strict";VP.exports=dd;var ove=rr().distinctVals;function dd(e,r){this.traces=e,this.sepNegVal=r.sepNegVal,this.overlapNoMerge=r.overlapNoMerge;for(var t=1/0,n=r.posAxis._id.charAt(0),a=[],o=0;olve,eventDataKeys:()=>sve});var lve,sve,XP=Ot(()=>{"use strict";lve=3,sve=["value","label"]});var KP=_e((b7e,$P)=>{"use strict";var di=ot(),{isArrayOrTypedArray:Vo}=rr(),{BADNUM:Tu}=(mn(),or(Cn)),uve=Er(),Jc=Ht(),{getAxisGroup:fve}=mc(),pd=GP(),{TEXTPAD:cve}=(XP(),or(YP)),{LINE_SPACING:vve}=(Xn(),or(Yn)),{BR_TAG_ALL:hve}=Wn();function dve(e,r){for(var t=r.xaxis,n=r.yaxis,a=e._fullLayout,o=e._fullData,i=e.calcdata,l=[],u=[],s=0;su+i||!di(l))}for(var f=0;fn(o))):n(e.text);let a=e.outsidetextfont.size*vve*t+cve;return{ppadplus:r.some(o=>o.s<0)?a:0,ppadminus:r.some(o=>o.s>=0)?a:0}}return{ppadplus:void 0,ppadminus:void 0}}function Tve(e,r,t,n){for(var a=Au(n),o=0;o{"use strict";var QP=Vb(),jP=KP().setGroupPositions;function kve(e,r){for(var t=r.xaxis,n=r.yaxis,a=e._fullLayout,o=e._fullData,i=e.calcdata,l=[],u=[],s=0;sv[f]&&f{"use strict";var Cve=Tt(),iI=(mn(),or(Cn)),$c=iI.BADNUM,oI=iI.LOG_CLIP,tI=oI+.5,nI=oI-.5,gd=rr(),Eve=gd.segmentsIntersect,aI=gd.constrain,$b=(N2(),or(z2));lI.exports=function(r,t){var n=t.trace||{},a=t.xaxis,o=t.yaxis,i=a.type==="log",l=o.type==="log",u=a._length,s=o._length,f=t.backoff,c=n.marker,p=t.connectGaps,x=t.baseTolerance,g=t.shape,w=g==="linear",M=n.fill&&n.fill!=="none",m=[],k=$b.minTolerance,S=r.length,b=new Array(S),T=0,h,_,y,v,A,d,D,E,R,z,I,P,L,F,B,O;function V(Oe){var We=r[Oe];if(!We)return!1;var Xe=t.linearized?a.l2p(We.x):a.c2p(We.x),tr=t.linearized?o.l2p(We.y):o.c2p(We.y);if(Xe===$c){if(i&&(Xe=a.c2p(We.x,!0)),Xe===$c)return!1;l&&tr===$c&&(Xe*=Math.abs(a._m*s*(a._m>0?tI:nI)/(o._m*u*(o._m>0?tI:nI)))),Xe*=1e3}if(tr===$c){if(l&&(tr=o.c2p(We.y,!0)),tr===$c)return!1;tr*=1e3}return[Xe,tr]}function K(Oe,We,Xe,tr){var ir=Xe-Oe,je=tr-We,Ke=.5-Oe,Ee=.5-We,ze=ir*ir+je*je,Qe=ir*Ke+je*Ee;if(Qe>0&&Qe1||Math.abs(Ke.y-Xe[0][1])>1)&&(Ke=[Ke.x,Ke.y],tr&&J(Ke,Oe)ie||Oe[1]re)return[aI(Oe[0],Z,ie),aI(Oe[1],Q,re)]}function Ce(Oe,We){if(Oe[0]===We[0]&&(Oe[0]===Z||Oe[0]===ie)||Oe[1]===We[1]&&(Oe[1]===Q||Oe[1]===re))return!0}function le(Oe,We){var Xe=[],tr=Le(Oe),ir=Le(We);return tr&&ir&&Ce(tr,ir)||(tr&&Xe.push(tr),ir&&Xe.push(ir)),Xe}function Y(Oe,We,Xe){return function(tr,ir){var je=Le(tr),Ke=Le(ir),Ee=[];if(je&&Ke&&Ce(je,Ke))return Ee;je&&Ee.push(je),Ke&&Ee.push(Ke);var ze=2*gd.constrain((tr[Oe]+ir[Oe])/2,We,Xe)-((je||tr)[Oe]+(Ke||ir)[Oe]);if(ze){var Qe;je&&Ke?Qe=ze>0==je[Oe]>Ke[Oe]?je:Ke:Qe=je||Ke,Qe[Oe]+=ze}return Ee}}var $;g==="linear"||g==="spline"?$=ge:g==="hv"||g==="vh"?$=le:g==="hvh"?$=Y(0,Z,ie):g==="vhv"&&($=Y(1,Q,re));function pe(Oe,We){var Xe=We[0]-Oe[0],tr=(We[1]-Oe[1])/Xe,ir=(Oe[1]*We[0]-We[1]*Oe[0])/Xe;return ir>0?[tr>0?Z:ie,re]:[tr>0?ie:Z,Q]}function oe(Oe){var We=Oe[0],Xe=Oe[1],tr=We===b[T-1][0],ir=Xe===b[T-1][1];if(!(tr&&ir))if(T>1){var je=We===b[T-2][0],Ke=Xe===b[T-2][1];tr&&(We===Z||We===ie)&&je?Ke?T--:b[T-1]=Oe:ir&&(Xe===Q||Xe===re)&&Ke?je?T--:b[T-1]=Oe:b[T++]=Oe}else b[T++]=Oe}function ve(Oe){b[T-1][0]!==Oe[0]&&b[T-1][1]!==Oe[1]&&oe([ce,Te]),oe(Oe),ke=null,ce=Te=0}var he=gd.isArrayOrTypedArray(c);function me(Oe){if(Oe&&f&&(Oe.i=h,Oe.d=r,Oe.trace=n,Oe.marker=he?c[Oe.i]:c,Oe.backoff=f),j=Oe[0]/u,G=Oe[1]/s,ee=Oe[0]ie?ie:0,ae=Oe[1]re?re:0,ee||ae){if(!T)b[T++]=[ee||Oe[0],ae||Oe[1]];else if(ke){var We=$(ke,Oe);We.length>1&&(ve(We[0]),b[T++]=We[1])}else Se=$(b[T-1],Oe)[0],b[T++]=Se;var Xe=b[T-1];ee&&ae&&(Xe[0]!==ee||Xe[1]!==ae)?(ke&&(ce!==ee&&Te!==ae?oe(ce&&Te?pe(ke,Oe):[ce||ee,Te||ae]):ce&&Te&&oe([ce,Te])),oe([ee,ae])):ce-ee&&Te-ae&&oe([ee||ce,ae||Te]),ke=Oe,ce=ee,Te=ae}else ke&&ve($(ke,Oe)[0]),b[T++]=Oe}for(h=0;hq(d,be))break;y=d,L=R[0]*E[0]+R[1]*E[1],L>I?(I=L,v=d,D=!1):L=r.length||!d)break;me(d),_=d}}ke&&oe([ce||ke[0],Te||ke[1]]),m.push(b.slice(0,T))}var ye=g.slice(g.length-1);if(f&&ye!=="h"&&ye!=="v"){for(var de=!1,xe=-1,Ae=[],Pe=0;Pe{"use strict";var uI={tonextx:1,tonexty:1,tonext:1};fI.exports=function(r,t,n){var a,o,i,l,u,s={},f=!1,c=-1,p=0,x=-1;for(o=0;o=0?u=x:(u=x=p,p++),u{"use strict";var Pi=at(),Lve=Er(),Kc=rr(),ku=Kc.ensureSingle,hI=Kc.identity,Jt=Tt(),Su=Sa(),Dve=sI(),Rve=cI(),yd=Z5().tester;dI.exports=function(r,t,n,a,o,i){var l,u,s=!o,f=!!o&&o.duration>0,c=Rve(r,t,n);if(l=a.selectAll("g.trace").data(c,function(x){return x[0].trace.uid}),l.enter().append("g").attr("class",function(x){return"trace scatter trace"+x[0].trace.uid}).style("stroke-miterlimit",2),l.order(),Fve(r,l,t),f){i&&(u=i());var p=Pi.transition().duration(o.duration).ease(o.easing).each("end",function(){u&&u()}).each("interrupt",function(){u&&u()});p.each(function(){a.selectAll("g.trace").each(function(x,g){vI(r,g,t,x,c,this,o)})})}else l.each(function(x,g){vI(r,g,t,x,c,this,o)});s&&l.exit().remove(),a.selectAll("path:not([d])").remove()};function Fve(e,r,t){r.each(function(n){var a=ku(Pi.select(this),"g","fills");Jt.setClipUrl(a,t.layerClipId,e);var o=n[0].trace;o._ownFill=null,o._nextFill=null;var i=[];o._ownfill&&i.push("_ownFill"),o._nexttrace&&i.push("_nextFill");var l=a.selectAll("g").data(i,hI);l.enter().append("g"),l.exit().remove(),l.order().each(function(u){o[u]=ku(Pi.select(this),"path","js-fill")})})}function vI(e,r,t,n,a,o,i){var l=e._context.staticPlot,u;Pve(e,r,t,n,a);var s=!!i&&i.duration>0;function f(Y){return s?Y.transition():Y}var c=t.xaxis,p=t.yaxis,x=n[0].trace,g=x.line,w=Pi.select(o),M=ku(w,"g","errorbars"),m=ku(w,"g","lines"),k=ku(w,"g","points"),S=ku(w,"g","text");if(Lve.getComponentMethod("errorbars","plot")(e,M,t,i),x.visible!==!0)return;f(w).style("opacity",x.opacity);var b,T,h=x.fill.charAt(x.fill.length-1);h!=="x"&&h!=="y"&&(h="");var _,y;h==="y"?(_=1,y=p.c2p(0,!0)):h==="x"&&(_=0,y=c.c2p(0,!0)),n[0][t.isRangePlot?"nodeRangePlot3":"node3"]=w;var v="",A=[],d=x._prevtrace,D=null,E=null;d&&(v=d._prevRevpath||"",T=d._nextFill,A=d._ownPolygons,D=d._fillsegments,E=d._fillElement);var R,z,I="",P="",L,F,B,O,V,K,j=[];x._polygons=[];var G=[],q=[],J=Kc.noop;if(b=x._ownFill,Su.hasLines(x)||x.fill!=="none"){T&&T.datum(n),["hv","vh","hvh","vhv"].indexOf(g.shape)!==-1?(L=Jt.steps(g.shape),F=Jt.steps(g.shape.split("").reverse().join(""))):g.shape==="spline"?L=F=function(Y){var $=Y[Y.length-1];return Y.length>1&&Y[0][0]===$[0]&&Y[0][1]===$[1]?Jt.smoothclosed(Y.slice(1),g.smoothing):Jt.smoothopen(Y,g.smoothing)}:L=F=function(Y){return"M"+Y.join("L")},B=function(Y){return F(Y.reverse())},q=Dve(n,{xaxis:c,yaxis:p,trace:x,connectGaps:x.connectgaps,baseTolerance:Math.max(g.width||1,3)/4,shape:g.shape,backoff:g.backoff,simplify:g.simplify,fill:x.fill}),G=new Array(q.length);var te=0;for(u=0;u=l[0]&&w.x<=l[1]&&w.y>=u[0]&&w.y<=u[1]}),p=Math.ceil(c.length/f),x=0;a.forEach(function(w,M){var m=w[0].trace;Su.hasMarkers(m)&&m.marker.maxdisplayed>0&&M{"use strict";gI.exports={container:"marker",min:"cmin",max:"cmax"}});var bI=_e((A7e,mI)=>{"use strict";var md=Ht();mI.exports=function(r,t,n){var a={},o={_fullLayout:n},i=md.getFromTrace(o,t,"x"),l=md.getFromTrace(o,t,"y"),u=r.orig_x;u===void 0&&(u=r.x);var s=r.orig_y;return s===void 0&&(s=r.y),a.xLabel=md.tickText(i,i.c2l(u),!0).text,a.yLabel=md.tickText(l,l.c2l(s),!0).text,a}});var ex=_e((k7e,xI)=>{"use strict";var Kb=at(),Cu=Tt(),Ive=Er();function zve(e){var r=Kb.select(e).selectAll("g.trace.scatter");r.style("opacity",function(t){return t[0].trace.opacity}),r.selectAll("g.points").each(function(t){var n=Kb.select(this),a=t.trace||t[0].trace;Qb(n,a,e)}),r.selectAll("g.text").each(function(t){var n=Kb.select(this),a=t.trace||t[0].trace;jb(n,a,e)}),r.selectAll("g.trace path.js-line").call(Cu.lineGroupStyle),r.selectAll("g.trace path.js-fill").call(Cu.fillGroupStyle,e,!1),Ive.getComponentMethod("errorbars","style")(r)}function Qb(e,r,t){Cu.pointStyle(e.selectAll("path.point"),r,t)}function jb(e,r,t){Cu.textPointStyle(e.selectAll("text"),r,t)}function Nve(e,r,t){var n=r[0].trace;n.selectedpoints?(Cu.selectedPointStyle(t.selectAll("path.point"),n),Cu.selectedTextStyle(t.selectAll("text"),n)):(Qb(t,n,e),jb(t,n,e))}xI.exports={style:zve,stylePoints:Qb,styleText:jb,styleOnSelect:Nve}});var wI=_e((S7e,_I)=>{"use strict";var Eu=Wr(),qve=Sa();_I.exports=function(r,t){var n,a;if(r.mode==="lines")return n=r.line.color,n&&Eu.opacity(n)?n:r.fillcolor;if(r.mode==="none")return r.fill?r.fillcolor:"";var o=t.mcc||t.mc||(r.marker||{}).color,i=t.mlcc||((r.marker||{}).line||{}).color;return a=o&&Eu.opacity(o)?o:i&&Eu.opacity(i)&&(t.mlw||((r.marker||{}).line||{}).width)?i:"",a?Eu.opacity(a)<.3?Eu.addOpacity(a,.3):a:(n=(r.line||{}).color,n&&Eu.opacity(n)&&qve.hasLines(r)&&r.line.width?n:r.fillcolor)}});var AI=_e((C7e,TI)=>{"use strict";var bd=rr(),MI=ho(),Bve=Er(),Ove=wI(),rx=Wr(),Uve=bd.fillText;TI.exports=function(r,t,n,a){var o=r.cd,i=o[0].trace,l=r.xa,u=r.ya,s=l.c2p(t),f=u.c2p(n),c=[s,f],p=i.hoveron||"",x=i.mode.indexOf("markers")!==-1?3:.5,g=!!i.xperiodalignment,w=!!i.yperiodalignment;if(p.indexOf("points")!==-1){var M=function(P){if(g){var L=l.c2p(P.xStart),F=l.c2p(P.xEnd);return s>=Math.min(L,F)&&s<=Math.max(L,F)?0:1/0}var B=Math.max(3,P.mrc||0),O=1-1/B,V=Math.abs(l.c2p(P.x)-s);return V=Math.min(L,F)&&f<=Math.max(L,F)?0:1/0}var B=Math.max(3,P.mrc||0),O=1-1/B,V=Math.abs(u.c2p(P.y)-f);return Vj!=re>=j&&(Z=J[q-1][0],ie=J[q][0],re-Q&&(te=Z+(ie-Z)*(j-Q)/(re-Q),B=Math.min(B,te),O=Math.max(O,te)));return B=Math.max(B,0),O=Math.min(O,l._length),{x0:B,x1:O,y0:j,y1:j}}if(p.indexOf("fills")!==-1&&i._fillElement){var R=D(i._fillElement)&&!D(i._fillExclusionElement);if(R){var z=E(i._polygons);z===null&&(z={x0:c[0],x1:c[0],y0:c[1],y1:c[1]});var I=rx.defaultLine;return rx.opacity(i.fillcolor)?I=i.fillcolor:rx.opacity((i.line||{}).color)&&(I=i.line.color),bd.extendFlat(r,{distance:r.maxHoverDistance,x0:z.x0,x1:z.x1,y0:z.y0,y1:z.y1,color:I,hovertemplate:!1}),delete r.index,i.text&&!bd.isArrayOrTypedArray(i.text)?r.text=String(i.text):r.text=i.name,[r]}}}});var CI=_e((E7e,SI)=>{"use strict";var kI=Sa();SI.exports=function(r,t){var n=r.cd,a=r.xaxis,o=r.yaxis,i=[],l=n[0].trace,u,s,f,c,p=l.mode&&!kI.hasMarkers(l)&&!kI.hasText(l);if(p)return[];if(t===!1)for(u=0;u{"use strict";EI.exports={xaxis:{valType:"subplotid",dflt:"x",editType:"calc+clearAxisTypes"},yaxis:{valType:"subplotid",dflt:"y",editType:"calc+clearAxisTypes"}}});var nx=_e((D7e,FI)=>{"use strict";var xd=Er().traceIs,tx=_m();FI.exports=function(r,t,n,a){n("autotypenumbers",a.autotypenumbersDflt);var o=n("type",(a.splomStash||{}).type);o==="-"&&(Hve(t,a.data),t.type==="-"?t.type="linear":r.type=t.type)};function Hve(e,r){if(e.type==="-"){var t=e._id,n=t.charAt(0),a;t.indexOf("scene")!==-1&&(t=n);var o=Vve(r,t,n);if(o){if(o.type==="histogram"&&n==={v:"y",h:"x"}[o.orientation||"v"]){e.type="linear";return}var i=n+"calendar",l=o[i],u={noMultiCategory:!xd(o,"cartesian")||xd(o,"noMultiCategory")};if(o.type==="box"&&o._hasPreCompStats&&n==={h:"x",v:"y"}[o.orientation||"v"]&&(u.noMultiCategory=!0),u.autotypenumbers=e.autotypenumbers,RI(o,n)){var s=DI(o),f=[];for(a=0;a0&&(a["_"+t+"axes"]||{})[r])return a;if((a[t+"axis"]||t)===r){if(RI(a,t))return a;if((a[t]||[]).length||a[t+"0"])return a}}}function DI(e){return{v:"x",h:"y"}[e.orientation||"v"]}function RI(e,r){var t=DI(e),n=xd(e,"box-violin");return n&&r===t&&e[t]===void 0&&e[t+"0"]===void 0}});var II=_e((R7e,PI)=>{"use strict";var Gve=ha().isTypedArraySpec;function Yve(e,r){var t=r.dataAttr||e._id.charAt(0),n={},a,o,i;if(r.axData)a=r.axData;else for(a=[],o=0;o0||Gve(o),l;i&&(l="array");var u=n("categoryorder",l),s;u==="array"&&(s=n("categoryarray")),!i&&u==="array"&&(u=t.categoryorder="trace"),u==="trace"?t._initialCategories=[]:u==="array"?t._initialCategories=s.slice():(s=Yve(t,a).sort(),u==="category ascending"?t._initialCategories=s:u==="category descending"&&(t._initialCategories=s.reverse()))}}});var qI=_e((F7e,NI)=>{"use strict";var zI=Wr(),Xve=ji(),Wve=rr();NI.exports=function(r,t,n,a){a=a||{};var o=a.dfltColor;function i(y,v){return Wve.coerce2(r,t,a.attributes,y,v)}var l=i("linecolor",o),u=i("linewidth"),s=n("showline",a.showLine||!!l||!!u);s||(delete t.linecolor,delete t.linewidth);var f=zI.mix(o,a.bgColor,a.blend||Xve.lightFraction),c=i("gridcolor",f),p=i("gridwidth"),x=i("griddash"),g=n("showgrid",a.showGrid||!!c||!!p||!!x);if(g||(delete t.gridcolor,delete t.gridwidth,delete t.griddash),a.hasMinor){var w=zI.mix(t.gridcolor,a.bgColor,67),M=i("minor.gridcolor",w),m=i("minor.gridwidth",t.gridwidth||1),k=i("minor.griddash",t.griddash||"solid"),S=n("minor.showgrid",!!M||!!m||!!k);S||(delete t.minor.gridcolor,delete t.minor.gridwidth,delete t.minor.griddash)}if(!a.noZeroLine){var b=i("zerolinelayer"),T=i("zerolinecolor",o),h=i("zerolinewidth"),_=n("zeroline",a.showGrid||!!T||!!h);_||(delete t.zerolinelayer,delete t.zerolinecolor,delete t.zerolinewidth)}}});var wd=_e((P7e,GI)=>{"use strict";var BI=ot(),Zve=Er(),Qc=rr(),Jve=Mt(),$ve=Ci(),ax=ri(),OI=Yy(),UI=Wy(),Kve=$y(),Qve=Ky(),jve=II(),ehe=qI(),rhe=Hm(),HI=E1(),_d=(wn(),or(_n)).WEEKDAY_PATTERN,the=(wn(),or(_n)).HOUR_PATTERN;GI.exports=function(r,t,n,a,o){var i=a.letter,l=a.font||{},u=a.splomStash||{},s=n("visible",!a.visibleDflt),f=t._template||{},c=t.type||f.type||"-",p;if(c==="date"){var x=Zve.getComponentMethod("calendars","handleDefaults");x(r,t,"calendar",a.calendar),a.noTicklabelmode||(p=n("ticklabelmode"))}!a.noTicklabelindex&&(c==="date"||c==="linear")&&n("ticklabelindex");var g="";(!a.noTicklabelposition||c==="multicategory")&&(g=Qc.coerce(r,t,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:p==="period"?["outside","inside"]:i==="x"?["outside","inside","outside left","inside left","outside right","inside right"]:["outside","inside","outside top","inside top","outside bottom","inside bottom"]}},"ticklabelposition")),a.noTicklabeloverflow||n("ticklabeloverflow",g.indexOf("inside")!==-1?"hide past domain":c==="category"||c==="multicategory"?"allow":"hide past div"),HI(t,o),rhe(r,t,n,a),jve(r,t,n,a),a.noHover||(c!=="category"&&n("hoverformat"),a.noUnifiedhovertitle||n("unifiedhovertitle.text"));var w=n("color"),M=w!==ax.color.dflt?w:l.color,m=u.label||o._dfltTitle[i];if(Qve(r,t,n,c,a),!s)return t;n("title.text",m),Qc.coerceFont(n,"title.font",l,{overrideDflt:{size:Qc.bigFont(l.size),color:M}}),OI(r,t,n,c);var k=a.hasMinor;if(k&&(Jve.newContainer(t,"minor"),OI(r,t,n,c,{isMinor:!0})),Kve(r,t,n,c,a),UI(r,t,n,a),k){var S=a.isMinor;a.isMinor=!0,UI(r,t,n,a),a.isMinor=S}ehe(r,t,n,{dfltColor:w,bgColor:a.bgColor,showGrid:a.showGrid,hasMinor:k,attributes:ax}),k&&t.ticklabelindex==null&&!t.minor.ticks&&!t.minor.showgrid&&delete t.minor,(t.showline||t.ticks)&&n("mirror");var b=c==="multicategory";if(!a.noTickson&&(c==="category"||b)&&(t.ticks||t.showgrid)&&(b?(n("tickson","boundaries"),delete t.ticklabelposition):n("tickson")),b){var T=n("showdividers");T&&(n("dividercolor"),n("dividerwidth"))}if(c==="date")if($ve(r,t,{name:"rangebreaks",inclusionAttr:"enabled",handleItemDefaults:nhe}),!t.rangebreaks.length)delete t.rangebreaks;else{for(var h=0;h=2){var i="",l,u;if(o.length===2){for(l=0;l<2;l++)if(u=VI(o[l]),u){i=_d;break}}var s=n("pattern",i);if(s===_d)for(l=0;l<2;l++)u=VI(o[l]),u&&(r.bounds[l]=o[l]=u-1);if(s)for(l=0;l<2;l++)switch(u=o[l],s){case _d:if(!BI(u)){r.enabled=!1;return}if(u=+u,u!==Math.floor(u)||u<0||u>=7){r.enabled=!1;return}r.bounds[l]=o[l]=u;break;case the:if(!BI(u)){r.enabled=!1;return}if(u=+u,u<0||u>24){r.enabled=!1;return}r.bounds[l]=o[l]=u;break}if(t.autorange===!1){var f=t.range;if(f[0]f[1]){r.enabled=!1;return}}else if(o[0]>f[0]&&o[1]{"use strict";var ihe=ot(),Md=rr();YI.exports=function(r,t,n,a){var o=a.counterAxes||[],i=a.overlayableAxes||[],l=a.letter,u=a.grid,s=a.overlayingDomain,f,c,p,x,g,w;u&&(c=u._domains[l][u._axisMap[t._id]],f=u._anchors[t._id],c&&(p=u[l+"side"].split(" ")[0],x=u.domain[l][p==="right"||p==="top"?1:0])),c=c||[0,1],f=f||(ihe(r.position)?"free":o[0]||"free"),p=p||(l==="x"?"bottom":"left"),x=x||0,g=0,w=!1;var M=Md.coerce(r,t,{anchor:{valType:"enumerated",values:["free"].concat(o),dflt:f}},"anchor"),m=Md.coerce(r,t,{side:{valType:"enumerated",values:l==="x"?["bottom","top"]:["left","right"],dflt:p}},"side");if(M==="free"){if(l==="y"){var k=n("autoshift");k&&(x=m==="left"?s[0]:s[1],w=t.automargin?t.automargin:!0,g=m==="left"?-3:3),n("shift",g)}n("position",x)}n("automargin",w);var S=!1;if(i.length&&(S=Md.coerce(r,t,{overlaying:{valType:"enumerated",values:[!1].concat(i),dflt:!1}},"overlaying")),!S){var b=n("domain",c);b[0]>b[1]-1/4096&&(t.domain=c),Md.noneOrAll(r.domain,t.domain,c),t.tickmode==="sync"&&(t.tickmode="auto")}return n("layer"),t}});var ez=_e((z7e,jI)=>{"use strict";var Ks=rr(),XI=Wr(),ohe=io().isUnifiedHover,lhe=g5(),WI=Mt(),she=N0(),ZI=ri(),uhe=nx(),JI=wd(),fhe=mc(),$I=ix(),lx=hn(),_o=lx.id2name,KI=lx.name2id,che=(wn(),or(_n)).AX_ID_PATTERN,QI=Er(),Td=QI.traceIs,ox=QI.getComponentMethod;function Ad(e,r,t){Array.isArray(e[r])?e[r].push(t):e[r]=[t]}jI.exports=function(r,t,n){var a=t.autotypenumbers,o={},i={},l={},u={},s={},f={},c={},p={},x={},g={},w,M;for(w=0;w{"use strict";var vhe=at(),rz=Er(),kd=rr(),Va=Tt(),Sd=Ht();tz.exports=function(r,t,n,a){var o=r._fullLayout;if(t.length===0){Sd.redrawComponents(r);return}function i(M){var m=M.xaxis,k=M.yaxis;o._defs.select("#"+M.clipId+"> rect").call(Va.setTranslate,0,0).call(Va.setScale,1,1),M.plot.call(Va.setTranslate,m._offset,k._offset).call(Va.setScale,1,1);var S=M.plot.selectAll(".scatterlayer .trace");S.selectAll(".point").call(Va.setPointGroupScale,1,1),S.selectAll(".textpoint").call(Va.setTextPointsScale,1,1),S.call(Va.hideOutsideRangePoints,M)}function l(M,m){var k=M.plotinfo,S=k.xaxis,b=k.yaxis,T=S._length,h=b._length,_=!!M.xr1,y=!!M.yr1,v=[];if(_){var A=kd.simpleMap(M.xr0,S.r2l),d=kd.simpleMap(M.xr1,S.r2l),D=A[1]-A[0],E=d[1]-d[0];v[0]=(A[0]*(1-m)+m*d[0]-A[0])/(A[1]-A[0])*T,v[2]=T*(1-m+m*E/D),S.range[0]=S.l2r(A[0]*(1-m)+m*d[0]),S.range[1]=S.l2r(A[1]*(1-m)+m*d[1])}else v[0]=0,v[2]=T;if(y){var R=kd.simpleMap(M.yr0,b.r2l),z=kd.simpleMap(M.yr1,b.r2l),I=R[1]-R[0],P=z[1]-z[0];v[1]=(R[1]*(1-m)+m*z[1]-R[1])/(R[0]-R[1])*h,v[3]=h*(1-m+m*P/I),b.range[0]=S.l2r(R[0]*(1-m)+m*z[0]),b.range[1]=b.l2r(R[1]*(1-m)+m*z[1])}else v[1]=0,v[3]=h;Sd.drawOne(r,S,{skipTitle:!0}),Sd.drawOne(r,b,{skipTitle:!0}),Sd.redrawComponents(r,[S._id,b._id]);var L=_?T/v[2]:1,F=y?h/v[3]:1,B=_?v[0]:0,O=y?v[1]:0,V=_?v[0]/v[2]*T:0,K=y?v[1]/v[3]*h:0,j=S._offset-V,G=b._offset-K;k.clipRect.call(Va.setTranslate,B,O).call(Va.setScale,1/L,1/F),k.plot.call(Va.setTranslate,j,G).call(Va.setScale,L,F),Va.setPointGroupScale(k.zoomScalePts,1/L,1/F),Va.setTextPointsScale(k.zoomScaleTxt,1/L,1/F)}var u;a&&(u=a());function s(){for(var M={},m=0;mn.duration?(s(),x=window.cancelAnimationFrame(w)):x=window.requestAnimationFrame(w)}return c=Date.now(),x=window.requestAnimationFrame(w),Promise.resolve()}});var sx=_e(Jn=>{"use strict";var Ed=at(),az=Er(),Qs=rr(),hhe=Mn(),dhe=Tt(),iz=Yf().getModuleCalcData,ql=hn(),Ii=(wn(),or(_n)),phe=(xl(),or(bl)),ct=Qs.ensureSingle;function Cd(e,r,t){return Qs.ensureSingle(e,r,t,function(n){n.datum(t)})}var js=Ii.zindexSeparator;Jn.name="cartesian";Jn.attr=["xaxis","yaxis"];Jn.idRoot=["x","y"];Jn.idRegex=Ii.idRegex;Jn.attrRegex=Ii.attrRegex;Jn.attributes=LI();Jn.layoutAttributes=ri();Jn.supplyLayoutDefaults=ez();Jn.transitionAxes=nz();Jn.finalizeSubplots=function(e,r){var t=r._subplots,n=t.xaxis,a=t.yaxis,o=t.cartesian,i=o,l={},u={},s,f,c;for(s=0;s0){var x=p.id;if(x.indexOf(js)!==-1)continue;x+=js+(s+1),p=Qs.extendFlat({},p,{id:x,plot:a._cartesianlayer.selectAll(".subplot").select("."+x)})}for(var g=[],w,M=0;M1&&(T+=js+b),S.push(l+T),i=0;i1,c=r.mainplotinfo;if(!r.mainplot||f)if(s)r.xlines=ct(n,"path","xlines-above"),r.ylines=ct(n,"path","ylines-above"),r.xaxislayer=ct(n,"g","xaxislayer-above"),r.yaxislayer=ct(n,"g","yaxislayer-above");else{if(!i){var p=ct(n,"g","layer-subplot");r.shapelayer=ct(p,"g","shapelayer"),r.imagelayer=ct(p,"g","imagelayer"),c&&f?(r.minorGridlayer=c.minorGridlayer,r.gridlayer=c.gridlayer,r.zerolinelayer=c.zerolinelayer):(r.minorGridlayer=ct(n,"g","minor-gridlayer"),r.gridlayer=ct(n,"g","gridlayer"),r.zerolinelayer=ct(n,"g","zerolinelayer"));var x=ct(n,"g","layer-between");r.shapelayerBetween=ct(x,"g","shapelayer"),r.imagelayerBetween=ct(x,"g","imagelayer"),ct(n,"path","xlines-below"),ct(n,"path","ylines-below"),r.overlinesBelow=ct(n,"g","overlines-below"),ct(n,"g","xaxislayer-below"),ct(n,"g","yaxislayer-below"),r.overaxesBelow=ct(n,"g","overaxes-below")}r.overplot=ct(n,"g","overplot"),r.plot=ct(r.overplot,"g",a),c&&f?r.zerolinelayerAbove=c.zerolinelayerAbove:r.zerolinelayerAbove=ct(n,"g","zerolinelayer-above"),i||(r.xlines=ct(n,"path","xlines-above"),r.ylines=ct(n,"path","ylines-above"),r.overlinesAbove=ct(n,"g","overlines-above"),ct(n,"g","xaxislayer-above"),ct(n,"g","yaxislayer-above"),r.overaxesAbove=ct(n,"g","overaxes-above"),r.xlines=n.select(".xlines-"+l),r.ylines=n.select(".ylines-"+u),r.xaxislayer=n.select(".xaxislayer-"+l),r.yaxislayer=n.select(".yaxislayer-"+u))}else{var g=c.plotgroup,w=a+"-x",M=a+"-y";r.minorGridlayer=c.minorGridlayer,r.gridlayer=c.gridlayer,r.zerolinelayer=c.zerolinelayer,r.zerolinelayerAbove=c.zerolinelayerAbove,ct(c.overlinesBelow,"path",w),ct(c.overlinesBelow,"path",M),ct(c.overaxesBelow,"g",w),ct(c.overaxesBelow,"g",M),r.plot=ct(c.overplot,"g",a),ct(c.overlinesAbove,"path",w),ct(c.overlinesAbove,"path",M),ct(c.overaxesAbove,"g",w),ct(c.overaxesAbove,"g",M),r.xlines=g.select(".overlines-"+l).select("."+w),r.ylines=g.select(".overlines-"+u).select("."+M),r.xaxislayer=g.select(".overaxes-"+l).select("."+w),r.yaxislayer=g.select(".overaxes-"+u).select("."+M)}i||(s||(Cd(r.minorGridlayer,"g",r.xaxis._id),Cd(r.minorGridlayer,"g",r.yaxis._id),r.minorGridlayer.selectAll("g").map(function(m){return m[0]}).sort(ql.idSort),Cd(r.gridlayer,"g",r.xaxis._id),Cd(r.gridlayer,"g",r.yaxis._id),r.gridlayer.selectAll("g").map(function(m){return m[0]}).sort(ql.idSort)),r.xlines.style("fill","none").classed("crisp",!0),r.ylines.style("fill","none").classed("crisp",!0))}function sz(e,r){if(e){var t={};e.each(function(u){var s=u[0],f=Ed.select(this);f.remove(),uz(s,r),t[s]=!0});for(var n in r._plots)for(var a=r._plots[n],o=a.overlays||[],i=0;i{"use strict";var Ld=Sa();fz.exports={hasLines:Ld.hasLines,hasMarkers:Ld.hasMarkers,hasText:Ld.hasText,isBubble:Ld.isBubble,attributes:Xs(),layoutAttributes:o1(),supplyDefaults:xP(),crossTraceDefaults:TP(),supplyLayoutDefaults:kP(),calc:Vb().calc,crossTraceCalc:rI(),arraysToCalcdata:hd(),plot:pI(),colorbar:yI(),formatLabels:bI(),style:ex().style,styleOnSelect:ex().styleOnSelect,hoverPoints:AI(),selectPoints:CI(),animatable:!0,moduleType:"trace",name:"scatter",basePlotModule:sx(),categories:["cartesian","svg","symbols","errorBarsOK","showLegend","scatter-like","zoomScale"],meta:{}}});var dz=_e((O7e,hz)=>{"use strict";var yhe=at(),mhe=Wr(),vz=ob(),ux=rr(),bhe=ux.strScale,xhe=ux.strRotate,_he=ux.strTranslate;hz.exports=function(r,t,n){var a=r.node(),o=vz[n.arrowhead||0],i=vz[n.startarrowhead||0],l=(n.arrowwidth||1)*(n.arrowsize||1),u=(n.arrowwidth||1)*(n.startarrowsize||1),s=t.indexOf("start")>=0,f=t.indexOf("end")>=0,c=o.backoff*l+n.standoff,p=i.backoff*u+n.startstandoff,x,g,w,M;if(a.nodeName==="line"){x={x:+r.attr("x1"),y:+r.attr("y1")},g={x:+r.attr("x2"),y:+r.attr("y2")};var m=x.x-g.x,k=x.y-g.y;if(w=Math.atan2(k,m),M=w+Math.PI,c&&p&&c+p>Math.sqrt(m*m+k*k)){R();return}if(c){if(c*c>m*m+k*k){R();return}var S=c*Math.cos(w),b=c*Math.sin(w);g.x+=S,g.y+=b,r.attr({x2:g.x,y2:g.y})}if(p){if(p*p>m*m+k*k){R();return}var T=p*Math.cos(w),h=p*Math.sin(w);x.x-=T,x.y-=h,r.attr({x1:x.x,y1:x.y})}}else if(a.nodeName==="path"){var _=a.getTotalLength(),y="";if(_{"use strict";var pz=at(),fx=Er(),whe=Mn(),Ol=rr(),cx=Ol.strTranslate,ev=Ht(),e0=Wr(),Go=Tt(),gz=ho(),vx=Wn(),hx=El(),jc=Li(),Mhe=Mt().arrayEditor,The=dz();bz.exports={draw:Ahe,drawOne:yz,drawRaw:mz};function Ahe(e){var r=e._fullLayout;r._infolayer.selectAll(".annotation").remove();for(var t=0;t2/3?ir="right":ir="center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[ir]}for(var Q=!1,re=["x","y"],ue=0;ue1)&&(ce===ae?(be=Te.r2fraction(r["a"+ee]),(be<0||be>1)&&(Q=!0)):Q=!0),$=Te._offset+Te.r2p(r[ee]),ve=.5}else{var ye=me==="domain";ee==="x"?(oe=r[ee],$=ye?Te._offset+Te._length*oe:$=l.l+l.w*oe):(oe=1-r[ee],$=ye?Te._offset+Te._length*oe:$=l.t+l.h*oe),ve=r.showarrow?.5:oe}if(r.showarrow){Y.head=$;var de=r["a"+ee];if(he=Se*ie(.5,r.xanchor)-ge*ie(.5,r.yanchor),ce===ae){var xe=ev.getRefType(ce);xe==="domain"?(ee==="y"&&(de=1-de),Y.tail=Te._offset+Te._length*de):xe==="paper"?ee==="y"?(de=1-de,Y.tail=l.t+l.h*de):Y.tail=l.l+l.w*de:Y.tail=Te._offset+Te.r2p(de),pe=he}else Y.tail=$+de,pe=he+de;Y.text=Y.tail+he;var Ae=i[ee==="x"?"width":"height"];if(ae==="paper"&&(Y.head=Ol.constrain(Y.head,1,Ae-1)),ce==="pixel"){var Pe=-Math.max(Y.tail-3,Y.text),Fe=Math.min(Y.tail+3,Y.text)-Ae;Pe>0?(Y.tail+=Pe,Y.text+=Pe):Fe>0&&(Y.tail-=Fe,Y.text-=Fe)}Y.tail+=le,Y.head+=le}else he=Le*ie(ve,Ce),pe=he,Y.text=$+he;Y.text+=le,he+=le,pe+=le,r["_"+ee+"padplus"]=Le/2+pe,r["_"+ee+"padminus"]=Le/2-pe,r["_"+ee+"size"]=Le,r["_"+ee+"shift"]=he}if(Q){_.remove();return}var Ye=0,qe=0;if(r.align!=="left"&&(Ye=(q-j)*(r.align==="center"?.5:1)),r.valign!=="top"&&(qe=(J-G)*(r.valign==="middle"?.5:1)),V)O.select("svg").attr({x:A+Ye-1,y:A+qe}).call(Go.setClipUrl,D?w:null,e);else{var Be=A+qe-K.top,Oe=A+Ye-K.left;I.call(vx.positionText,Oe,Be).call(Go.setClipUrl,D?w:null,e)}E.select("rect").call(Go.setRect,A,A,q,J),d.call(Go.setRect,y/2,y/2,te-y,Z-y),_.call(Go.setTranslate,Math.round(M.x.text-te/2),Math.round(M.y.text-Z/2)),S.attr({transform:"rotate("+m+","+M.x.text+","+M.y.text+")"});var We=function(tr,ir){k.selectAll(".annotation-arrow-g").remove();var je=M.x.head,Ke=M.y.head,Ee=M.x.tail+tr,ze=M.y.tail+ir,Qe=M.x.text+tr,er=M.y.text+ir,Mr=Ol.rotationXYMatrix(m,Qe,er),Gr=Ol.apply2DTransform(Mr),Tr=Ol.apply2DTransform2(Mr),Fr=+d.attr("width"),jr=+d.attr("height"),Cr=Qe-.5*Fr,Zr=Cr+Fr,xt=er-.5*jr,$r=xt+jr,ut=[[Cr,xt,Cr,$r],[Cr,$r,Zr,$r],[Zr,$r,Zr,xt],[Zr,xt,Cr,xt]].map(Tr);if(!ut.reduce(function(yt,Lt){return yt^!!Ol.segmentsIntersect(je,Ke,je+1e6,Ke+1e6,Lt[0],Lt[1],Lt[2],Lt[3])},!1)){ut.forEach(function(yt){var Lt=Ol.segmentsIntersect(Ee,ze,je,Ke,yt[0],yt[1],yt[2],yt[3]);Lt&&(Ee=Lt.x,ze=Lt.y)});var Fn=r.arrowwidth,sr=r.arrowcolor,Nr=r.arrowside,tt=k.append("g").style({opacity:e0.opacity(sr)}).classed("annotation-arrow-g",!0),Ur=tt.append("path").attr("d","M"+Ee+","+ze+"L"+je+","+Ke).style("stroke-width",Fn+"px").call(e0.stroke,e0.rgb(sr));if(The(Ur,Nr,r),u.annotationPosition&&Ur.node().parentNode&&!n){var Yr=je,gt=Ke;if(r.standoff){var it=Math.sqrt(Math.pow(je-Ee,2)+Math.pow(Ke-ze,2));Yr+=r.standoff*(Ee-je)/it,gt+=r.standoff*(ze-Ke)/it}var Et=tt.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(Ee-Yr)+","+(ze-gt),transform:cx(Yr,gt)}).style("stroke-width",Fn+6+"px").call(e0.stroke,"rgba(0,0,0,0)").call(e0.fill,"rgba(0,0,0,0)"),Kt,Ct;jc.init({element:Et.node(),gd:e,prepFn:function(){var yt=Go.getTranslate(_);Kt=yt.x,Ct=yt.y,a&&a.autorange&&p(a._name+".autorange",!0),o&&o.autorange&&p(o._name+".autorange",!0)},moveFn:function(yt,Lt){var Dt=Gr(Kt,Ct),ba=Dt[0]+yt,jn=Dt[1]+Lt;_.call(Go.setTranslate,ba,jn),x("x",Bl(a,yt,"x",l,r)),x("y",Bl(o,Lt,"y",l,r)),r.axref===r.xref&&x("ax",Bl(a,yt,"ax",l,r)),r.ayref===r.yref&&x("ay",Bl(o,Lt,"ay",l,r)),tt.attr("transform",cx(yt,Lt)),S.attr({transform:"rotate("+m+","+ba+","+jn+")"})},doneFn:function(){fx.call("_guiRelayout",e,g());var yt=document.querySelector(".js-notes-box-panel");yt&&yt.redraw(yt.selectedObj)}})}}};if(r.showarrow&&We(0,0),b){var Xe;jc.init({element:_.node(),gd:e,prepFn:function(){Xe=S.attr("transform")},moveFn:function(tr,ir){var je="pointer";if(r.showarrow)r.axref===r.xref?x("ax",Bl(a,tr,"ax",l,r)):x("ax",r.ax+tr),r.ayref===r.yref?x("ay",Bl(o,ir,"ay",l.w,r)):x("ay",r.ay+ir),We(tr,ir);else{if(n)return;var Ke,Ee;if(a)Ke=Bl(a,tr,"x",l,r);else{var ze=r._xsize/l.w,Qe=r.x+(r._xshift-r.xshift)/l.w-ze/2;Ke=jc.align(Qe+tr/l.w,ze,0,1,r.xanchor)}if(o)Ee=Bl(o,ir,"y",l,r);else{var er=r._ysize/l.h,Mr=r.y-(r._yshift+r.yshift)/l.h-er/2;Ee=jc.align(Mr-ir/l.h,er,0,1,r.yanchor)}x("x",Ke),x("y",Ee),(!a||!o)&&(je=jc.getCursor(a?.5:Ke,o?.5:Ee,r.xanchor,r.yanchor))}S.attr({transform:cx(tr,ir)+Xe}),hx(_,je)},clickFn:function(tr,ir){r.captureevents&&e.emit("plotly_clickannotation",h(ir))},doneFn:function(){hx(_),fx.call("_guiRelayout",e,g());var tr=document.querySelector(".js-notes-box-panel");tr&&tr.redraw(tr.selectedObj)}})}}u.annotationText?I.call(vx.makeEditable,{delegate:_,gd:e}).call(P).on("edit",function(F){r.text=F,this.call(P),x("text",F),a&&a.autorange&&p(a._name+".autorange",!0),o&&o.autorange&&p(o._name+".autorange",!0),fx.call("_guiRelayout",e,g())}):I.call(P)}});var Az=_e((H7e,Tz)=>{"use strict";var xz=rr(),khe=Er(),_z=Mt().arrayEditor;Tz.exports={hasClickToShow:She,onClick:Che};function She(e,r){var t=Mz(e,r);return t.on.length>0||t.explicitOff.length>0}function Che(e,r){var t=Mz(e,r),n=t.on,a=t.off.concat(t.explicitOff),o={},i=e._fullLayout.annotations,l,u;if(n.length||a.length){for(l=0;l{"use strict";var dx=rr(),Lu=Wr();kz.exports=function(r,t,n,a){a("opacity");var o=a("bgcolor"),i=a("bordercolor"),l=Lu.opacity(i);a("borderpad");var u=a("borderwidth"),s=a("showarrow");a("text",s?" ":n._dfltTitle.annotation),a("textangle"),dx.coerceFont(a,"font",n.font),a("width"),a("align");var f=a("height");if(f&&a("valign"),s){var c=a("arrowside"),p,x;c.indexOf("end")!==-1&&(p=a("arrowhead"),x=a("arrowsize")),c.indexOf("start")!==-1&&(a("startarrowhead",p),a("startarrowsize",x)),a("arrowcolor",l?t.bordercolor:Lu.defaultLine),a("arrowwidth",(l&&u||1)*2),a("standoff"),a("startstandoff")}var g=a("hovertext"),w=n.hoverlabel||{};if(g){var M=a("hoverlabel.bgcolor",w.bgcolor||(Lu.opacity(o)?Lu.rgb(o):Lu.defaultLine)),m=a("hoverlabel.bordercolor",w.bordercolor||Lu.contrast(M)),k=dx.extendFlat({},w.font);k.color||(k.color=m),dx.coerceFont(a,"hoverlabel.font",k)}a("captureevents",!!g)}});var Cz=_e((G7e,Sz)=>{"use strict";var gx=rr(),r0=Ht(),Ehe=Ci(),Lhe=px(),Dhe=xu();Sz.exports=function(r,t){Ehe(r,t,{name:"annotations",handleItemDefaults:Rhe})};function Rhe(e,r,t){function n(S,b){return gx.coerce(e,r,Dhe,S,b)}var a=n("visible"),o=n("clicktoshow");if(a||o){Lhe(e,r,t,n);for(var i=r.showarrow,l=["x","y"],u=[-10,-30],s={_fullLayout:t},f=0;f<2;f++){var c=l[f],p=r0.coerceRef(e,r,s,c,"","paper");if(p!=="paper"){var x=r0.getFromId(s,p);x._annIndices.push(r._index)}if(r0.coercePosition(r,s,n,p,c,.5),i){var g="a"+c,w=r0.coerceRef(e,r,s,g,"pixel",["pixel","paper"]);w!=="pixel"&&w!==p&&(w=r[g]="pixel");var M=w==="pixel"?u[f]:.4;r0.coercePosition(r,s,n,w,g,M)}n(c+"anchor"),n(c+"shift")}if(gx.noneOrAll(e,r,["x","y"]),i&&gx.noneOrAll(e,r,["ax","ay"]),o){var m=n("xclick"),k=n("yclick");r._xclick=m===void 0?r.x:r0.cleanPosition(m,s,r.xref),r._yclick=k===void 0?r.y:r0.cleanPosition(k,s,r.yref)}}}});var Dz=_e((Y7e,Lz)=>{"use strict";var yx=rr(),t0=Ht(),Fhe=Dd().draw;Lz.exports=function(r){var t=r._fullLayout,n=yx.filterVisible(t.annotations);if(n.length&&r._fullData.length)return yx.syncOrAsync([Fhe,Phe],r)};function Phe(e){var r=e._fullLayout;yx.filterVisible(r.annotations).forEach(function(t){var n=t0.getFromId(e,t.xref),a=t0.getFromId(e,t.yref),o=t0.getRefType(t.xref),i=t0.getRefType(t.yref);t._extremes={},o==="range"&&Ez(t,n),i==="range"&&Ez(t,a)})}function Ez(e,r){var t=r._id,n=t.charAt(0),a=e[n],o=e["a"+n],i=e[n+"ref"],l=e["a"+n+"ref"],u=e["_"+n+"padplus"],s=e["_"+n+"padminus"],f={x:1,y:-1}[n]*e[n+"shift"],c=3*e.arrowsize*e.arrowwidth||0,p=c+f,x=c-f,g=3*e.startarrowsize*e.arrowwidth||0,w=g+f,M=g-f,m;if(l===i){var k=t0.findExtremes(r,[r.r2c(a)],{ppadplus:p,ppadminus:x}),S=t0.findExtremes(r,[r.r2c(o)],{ppadplus:Math.max(u,w),ppadminus:Math.max(s,M)});m={min:[k.min[0],S.min[0]],max:[k.max[0],S.max[0]]}}else w=o?w+o:w,M=o?M-o:M,m=t0.findExtremes(r,[r.r2c(a)],{ppadplus:Math.max(u,p,w),ppadminus:Math.max(s,x,M)});e._extremes[t]=m}});var Fz=_e((X7e,Rz)=>{"use strict";var Ihe=ot(),zhe=eh();Rz.exports=function(r,t,n,a){t=t||{};var o=n==="log"&&t.type==="linear",i=n==="linear"&&t.type==="log";if(!(o||i))return;var l=r._fullLayout.annotations,u=t._id.charAt(0),s,f;function c(x){var g=s[x],w=null;o?w=zhe(g,t.range):w=Math.pow(10,g),Ihe(w)||(w=null),a(f+x,w)}for(var p=0;p{"use strict";var mx=Dd(),Pz=Az();Iz.exports={moduleType:"component",name:"annotations",layoutAttributes:xu(),supplyLayoutDefaults:Cz(),includeBasePlot:Nc()("annotations"),calcAutorange:Dz(),draw:mx.draw,drawOne:mx.drawOne,drawRaw:mx.drawRaw,hasClickToShow:Pz.hasClickToShow,onClick:Pz.onClick,convertCoords:Fz()}});var Rd=_e((Z7e,Nz)=>{"use strict";var St=xu(),Nhe=ia().overrideAll,qhe=Mt().templatedArray;Nz.exports=Nhe(qhe("annotation",{visible:St.visible,x:{valType:"any"},y:{valType:"any"},z:{valType:"any"},ax:{valType:"number"},ay:{valType:"number"},xanchor:St.xanchor,xshift:St.xshift,yanchor:St.yanchor,yshift:St.yshift,text:St.text,textangle:St.textangle,font:St.font,width:St.width,height:St.height,opacity:St.opacity,align:St.align,valign:St.valign,bgcolor:St.bgcolor,bordercolor:St.bordercolor,borderpad:St.borderpad,borderwidth:St.borderwidth,showarrow:St.showarrow,arrowcolor:St.arrowcolor,arrowhead:St.arrowhead,startarrowhead:St.startarrowhead,arrowside:St.arrowside,arrowsize:St.arrowsize,startarrowsize:St.startarrowsize,arrowwidth:St.arrowwidth,standoff:St.standoff,startstandoff:St.startstandoff,hovertext:St.hovertext,hoverlabel:St.hoverlabel,captureevents:St.captureevents}),"calc","from-root")});var Bz=_e((J7e,qz)=>{"use strict";var bx=rr(),Bhe=Ht(),Ohe=Ci(),Uhe=px(),Hhe=Rd();qz.exports=function(r,t,n){Ohe(r,t,{name:"annotations",handleItemDefaults:Vhe,fullLayout:n.fullLayout})};function Vhe(e,r,t,n){function a(l,u){return bx.coerce(e,r,Hhe,l,u)}function o(l){var u=l+"axis",s={_fullLayout:{}};return s._fullLayout[u]=t[u],Bhe.coercePosition(r,s,a,l,l,.5)}var i=a("visible");i&&(Uhe(e,r,n.fullLayout,a),o("x"),o("y"),o("z"),bx.noneOrAll(e,r,["x","y","z"]),r.xref="x",r.yref="y",r.zref="z",a("xanchor"),a("yanchor"),a("xshift"),a("yshift"),r.showarrow&&(r.axref="pixel",r.ayref="pixel",a("ax",-10),a("ay",-30),bx.noneOrAll(e,r,["ax","ay"])))}});var Vz=_e(($7e,Hz)=>{"use strict";var Oz=rr(),Uz=Ht();Hz.exports=function(r){for(var t=r.fullSceneLayout,n=t.annotations,a=0;a{"use strict";function xx(e,r){var t=[0,0,0,0],n,a;for(n=0;n<4;++n)for(a=0;a<4;++a)t[a]+=e[4*n+a]*r[n];return t}function Yhe(e,r){var t=xx(e.projection,xx(e.view,xx(e.model,[r[0],r[1],r[2],1])));return t}Gz.exports=Yhe});var Xz=_e((Q7e,Yz)=>{"use strict";var Xhe=Dd().drawRaw,Whe=_x(),Zhe=["x","y","z"];Yz.exports=function(r){for(var t=r.fullSceneLayout,n=r.dataScale,a=t.annotations,o=0;o1){l=!0;break}}l?r.fullLayout._infolayer.select(".annotation-"+r.id+'[data-index="'+o+'"]').remove():(i._pdata=Whe(r.glplot.cameraParams,[t.xaxis.r2l(i.x)*n[0],t.yaxis.r2l(i.y)*n[1],t.zaxis.r2l(i.z)*n[2]]),Xhe(r.graphDiv,i,o,r.id,i._xa,i._ya))}}});var Jz=_e((j7e,Zz)=>{"use strict";var Jhe=Er(),Wz=rr();Zz.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:Rd()}}},layoutAttributes:Rd(),handleDefaults:Bz(),includeBasePlot:$he,convert:Vz(),draw:Xz()};function $he(e,r){var t=Jhe.subplotsRegistry.gl3d;if(t)for(var n=t.attrRegex,a=Object.keys(e),o=0;o{"use strict";var ewe=(wn(),or(_n)),$z=Hn(),Kz=Xs().line,Khe=sl().dash,zi=Ft().extendFlat,Qhe=Mt().templatedArray,rwe=(Ic(),or(Pc)),Du=Vn(),Qz=xu(),{shapeTexttemplateAttrs:jhe,templatefallbackAttrs:e1e}=Mi(),r1e=zh();jz.exports=Qhe("shape",{visible:zi({},Du.visible,{editType:"calc+arraydraw"}),showlegend:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},legend:zi({},Du.legend,{editType:"calc+arraydraw"}),legendgroup:zi({},Du.legendgroup,{editType:"calc+arraydraw"}),legendgrouptitle:{text:zi({},Du.legendgrouptitle.text,{editType:"calc+arraydraw"}),font:$z({editType:"calc+arraydraw"}),editType:"calc+arraydraw"},legendrank:zi({},Du.legendrank,{editType:"calc+arraydraw"}),legendwidth:zi({},Du.legendwidth,{editType:"calc+arraydraw"}),type:{valType:"enumerated",values:["circle","rect","path","line"],editType:"calc+arraydraw"},layer:{valType:"enumerated",values:["below","above","between"],dflt:"above",editType:"arraydraw"},xref:zi({},Qz.xref,{arrayOk:!0}),xsizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},xanchor:{valType:"any",editType:"calc+arraydraw"},x0:{valType:"any",editType:"calc+arraydraw"},x1:{valType:"any",editType:"calc+arraydraw"},x0shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},x1shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},yref:zi({},Qz.yref,{arrayOk:!0}),ysizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},yanchor:{valType:"any",editType:"calc+arraydraw"},y0:{valType:"any",editType:"calc+arraydraw"},y1:{valType:"any",editType:"calc+arraydraw"},y0shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},y1shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},path:{valType:"string",editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},line:{color:zi({},Kz.color,{editType:"arraydraw"}),width:zi({},Kz.width,{editType:"calc+arraydraw"}),dash:zi({},Khe,{editType:"arraydraw"}),editType:"calc+arraydraw"},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd",editType:"arraydraw"},editable:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},label:{text:{valType:"string",dflt:"",editType:"arraydraw"},texttemplate:jhe({},{keys:Object.keys(r1e)}),texttemplatefallback:e1e({editType:"arraydraw"}),font:$z({editType:"calc+arraydraw",colorEditType:"arraydraw"}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"],editType:"arraydraw"},textangle:{valType:"angle",dflt:"auto",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],editType:"calc+arraydraw"},padding:{valType:"number",dflt:3,min:0,editType:"arraydraw"},editType:"arraydraw"},editType:"arraydraw"})});var rN=_e((nwe,eN)=>{"use strict";var Ru=rr(),Ga=Ht(),t1e=Ci(),n1e=wx(),rv=Pl();eN.exports=function(r,t){t1e(r,t,{name:"shapes",handleItemDefaults:i1e})};function a1e(e,r){return e?"bottom":r.indexOf("top")!==-1?"top":r.indexOf("bottom")!==-1?"bottom":"middle"}function i1e(e,r,t){function n(S,b){return Ru.coerce(e,r,n1e,S,b)}r._isShape=!0;var a=n("visible");if(!a)return;var o=n("showlegend");n("legend"),n("legendgroup"),o&&(n("legendwidth"),n("legendgrouptitle.text"),Ru.coerceFont(n,"legendgrouptitle.font"),n("legendrank"));var i=n("path"),l=i?"path":"rect",u=n("type",l),s=u!=="path";s&&delete r.path,n("editable"),n("layer"),n("opacity"),n("fillcolor"),n("fillrule");var f=n("line.width");f&&(n("line.color"),n("line.dash"));var c=n("xsizemode"),p=n("ysizemode");let x=[.25,.75],g=[0,10];["x","y"].forEach(S=>{var b=S+"anchor",T=S==="x"?c:p,h={_fullLayout:t},_,y,v,A;let d=S+"ref",D=e[d];if(Array.isArray(D)&&D.length>0){let E=rv.countDefiningCoords(u,i,S);A=Ga.coerceRefArray(e,r,h,S,void 0,"paper",E),r["_"+S+"refArray"]=!0}else A=Ga.coerceRef(e,r,h,S,void 0,"paper");if(Array.isArray(A))A.forEach(function(E){Ga.getRefType(E)==="range"&&(_=Ga.getFromId(h,E),_&&_._shapeIndices.indexOf(r._index)===-1&&_._shapeIndices.push(r._index))}),s&&[0,1].forEach(function(E){let R=A[E];Ga.getRefType(R)==="range"?(_=Ga.getFromId(h,R),y=rv.shapePositionToRange(_),v=rv.rangeToShapePosition(_),(_.type==="category"||_.type==="multicategory")&&n(S+E+"shift")):y=v=Ru.identity;let I=S+E,P=e[I];if(e[I]=y(e[I],!0),T==="pixel"?n(I,g[E]):Ga.coercePosition(r,h,n,R,I,x[E]),r[I]=v(r[I]),e[I]=P,E===0&&T==="pixel"){let L=e[b];e[b]=y(e[b],!0),Ga.coercePosition(r,h,n,R,b,.25),r[b]=v(r[b]),e[b]=L}});else{if(Ga.getRefType(A)==="range"?(_=Ga.getFromId(h,A),_._shapeIndices.push(r._index),v=rv.rangeToShapePosition(_),y=rv.shapePositionToRange(_),s&&(_.type==="category"||_.type==="multicategory")&&(n(S+"0shift"),n(S+"1shift"))):y=v=Ru.identity,s){let R=S+"0",z=S+"1",I=e[R],P=e[z];e[R]=y(e[R],!0),e[z]=y(e[z],!0),T==="pixel"?(n(R,g[0]),n(z,g[1])):(Ga.coercePosition(r,h,n,A,R,x[0]),Ga.coercePosition(r,h,n,A,z,x[1])),r[R]=v(r[R]),r[z]=v(r[z]),e[R]=I,e[z]=P}if(T==="pixel"){let R=e[b];e[b]=y(e[b],!0),Ga.coercePosition(r,h,n,A,b,.25),r[b]=v(r[b]),e[b]=R}}}),s&&Ru.noneOrAll(e,r,["x0","x1","y0","y1"]);var w=u==="line",M,m;if(s&&(M=n("label.texttemplate"),n("label.texttemplatefallback")),M||(m=n("label.text")),m||M){n("label.textangle");var k=n("label.textposition",w?"middle":"middle center");n("label.xanchor"),n("label.yanchor",a1e(w,k)),n("label.padding"),Ru.coerceFont(n,"label.font",t.font)}}});var aN=_e((awe,nN)=>{"use strict";var o1e=Wr(),tN=rr();function l1e(e,r){return e?"bottom":r.indexOf("top")!==-1?"top":r.indexOf("bottom")!==-1?"bottom":"middle"}nN.exports=function(r,t,n){n("newshape.visible"),n("newshape.name"),n("newshape.showlegend"),n("newshape.legend"),n("newshape.legendwidth"),n("newshape.legendgroup"),n("newshape.legendgrouptitle.text"),tN.coerceFont(n,"newshape.legendgrouptitle.font"),n("newshape.legendrank"),n("newshape.drawdirection"),n("newshape.layer"),n("newshape.fillcolor"),n("newshape.fillrule"),n("newshape.opacity");var a=n("newshape.line.width");if(a){var o=(r||{}).plot_bgcolor||"#FFF";n("newshape.line.color",o1e.contrast(o)),n("newshape.line.dash")}var i=r.dragmode==="drawline",l=n("newshape.label.text"),u=n("newshape.label.texttemplate");if(n("newshape.label.texttemplatefallback"),l||u){n("newshape.label.textangle");var s=n("newshape.label.textposition",i?"middle":"middle center");n("newshape.label.xanchor"),n("newshape.label.yanchor",l1e(i,s)),n("newshape.label.padding"),tN.coerceFont(n,"newshape.label.font",t.font)}n("activeshape.fillcolor"),n("activeshape.opacity")}});var cN=_e((iwe,fN)=>{"use strict";var Mx=rr(),pi=Ht(),wo=(dc(),or(hc)),Tx=Pl();fN.exports=function(r){var t=r._fullLayout,n=Mx.filterVisible(t.shapes);if(!(!n.length||!r._fullData.length))for(var a=0;a{i=pi.getFromId(r,c),o._extremes[i._id]=pi.findExtremes(i,p,oN(o))})}else o.xref!=="paper"&&u!=="domain"&&(i=pi.getFromId(r,o.xref),l=sN(i,o,wo.paramIsX),l&&(o._extremes[i._id]=pi.findExtremes(i,l,oN(o))));if(s==="array"){let f=iN(r,o,"y");Object.entries(f).forEach(([c,p])=>{i=pi.getFromId(r,c),o._extremes[i._id]=pi.findExtremes(i,p,lN(o))})}else o.yref!=="paper"&&s!=="domain"&&(i=pi.getFromId(r,o.yref),l=sN(i,o,wo.paramIsY),l&&(o._extremes[i._id]=pi.findExtremes(i,l,lN(o))))}};function iN(e,r,t){let n=r[t+"ref"],a=t==="x"?wo.paramIsX:wo.paramIsY;function o(c,p){c==="paper"||pi.getRefType(c)==="domain"||(i[c]||(i[c]=[]),i[c].push(p))}let i={};if(r.type==="path"&&r.path){let c=r.path.match(wo.segmentRE)||[];for(var l=0,u=0;ug&&(o(n[l],w[g]),l++)}}else o(n[0],r[t+"0"]),o(n[1],r[t+"1"]);let s={};for(let c in i){let p=pi.getFromId(e,c);if(p){var f=p.type==="category"||p.type==="multicategory"?p.r2c:p.d2c;p.type==="date"&&(f=Tx.decodeDate(f)),s[p._id]=i[c].map(f)}}return s}function oN(e){return uN(e.line.width,e.xsizemode,e.x0,e.x1,e.path,!1)}function lN(e){return uN(e.line.width,e.ysizemode,e.y0,e.y1,e.path,!0)}function uN(e,r,t,n,a,o){var i=e/2,l=o;if(r==="pixel"){var u=a?Tx.extractPathCoords(a,o?wo.paramIsY:wo.paramIsX):[t,n],s=Mx.aggNums(Math.max,null,u),f=Mx.aggNums(Math.min,null,u),c=f<0?Math.abs(f)+i:i,p=s>0?s+i:i;return{ppad:i,ppadplus:l?c:p,ppadminus:l?p:c}}else return{ppad:i}}function sN(e,r,t){var n=e._id.charAt(0)==="x"?"x":"y",a=e.type==="category"||e.type==="multicategory",o,i,l=0,u=0,s=a?e.r2c:e.d2c,f=r[n+"sizemode"]==="scaled";if(f?(o=r[n+"0"],i=r[n+"1"],a&&(l=r[n+"0shift"],u=r[n+"1shift"])):(o=r[n+"anchor"],i=r[n+"anchor"]),o!==void 0)return[s(o)+l,s(i)+u];if(r.path){var c=1/0,p=-1/0,x=r.path.match(wo.segmentRE),g,w,M,m,k;for(e.type==="date"&&(s=Tx.decodeDate(s)),g=0;gp&&(p=k)));if(p>=c)return[c,p]}}});var dN=_e((owe,hN)=>{"use strict";var vN=b2();hN.exports={moduleType:"component",name:"shapes",layoutAttributes:wx(),supplyLayoutDefaults:rN(),supplyDrawNewShapeDefaults:aN(),includeBasePlot:Nc()("shapes"),calcAutorange:cN(),draw:vN.draw,drawOne:vN.drawOne}});var Ax=_e((swe,gN)=>{"use strict";var pN=(wn(),or(_n)),s1e=Mt().templatedArray,lwe=(Ic(),or(Pc));gN.exports=s1e("image",{visible:{valType:"boolean",dflt:!0,editType:"arraydraw"},source:{valType:"string",editType:"arraydraw"},layer:{valType:"enumerated",values:["below","above"],dflt:"above",editType:"arraydraw"},sizex:{valType:"number",dflt:0,editType:"arraydraw"},sizey:{valType:"number",dflt:0,editType:"arraydraw"},sizing:{valType:"enumerated",values:["fill","contain","stretch"],dflt:"contain",editType:"arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},x:{valType:"any",dflt:0,editType:"arraydraw"},y:{valType:"any",dflt:0,editType:"arraydraw"},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left",editType:"arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],dflt:"top",editType:"arraydraw"},xref:{valType:"enumerated",values:["paper",pN.idRegex.x.toString()],dflt:"paper",editType:"arraydraw"},yref:{valType:"enumerated",values:["paper",pN.idRegex.y.toString()],dflt:"paper",editType:"arraydraw"},editType:"arraydraw"})});var mN=_e((uwe,yN)=>{"use strict";var u1e=rr(),kx=Ht(),f1e=Ci(),c1e=Ax(),v1e="images";yN.exports=function(r,t){var n={name:v1e,handleItemDefaults:h1e};f1e(r,t,n)};function h1e(e,r,t){function n(p,x){return u1e.coerce(e,r,c1e,p,x)}var a=n("source"),o=n("visible",!!a);if(!o)return r;n("layer"),n("xanchor"),n("yanchor"),n("sizex"),n("sizey"),n("sizing"),n("opacity");for(var i={_fullLayout:t},l=["x","y"],u=0;u<2;u++){var s=l[u],f=kx.coerceRef(e,r,i,s,"paper",void 0);if(f!=="paper"){var c=kx.getFromId(i,f);c._imgIndices.push(r._index)}kx.coercePosition(r,i,n,f,s,0)}return r}});var wN=_e((fwe,_N)=>{"use strict";var bN=at(),d1e=Tt(),Fu=Ht(),xN=hn(),p1e=(xl(),or(bl));_N.exports=function(r){var t=r._fullLayout,n=[],a={},o=[],i,l;for(l=0;l{"use strict";var MN=ot(),g1e=eh();TN.exports=function(r,t,n,a){t=t||{};var o=n==="log"&&t.type==="linear",i=n==="linear"&&t.type==="log";if(o||i){for(var l=r._fullLayout.images,u=t._id.charAt(0),s,f,c=0;c{"use strict";kN.exports={moduleType:"component",name:"images",layoutAttributes:Ax(),supplyLayoutDefaults:mN(),includeBasePlot:Nc()("images"),draw:wN(),convertCoords:AN()}});var Fd={};Ut(Fd,{activeColor:()=>U1e,arrowOffsetX:()=>q1e,arrowPadX:()=>F1e,arrowSymbol:()=>V1e,autoMarginIdRoot:()=>C1e,blankHeaderOpts:()=>E1e,buttonClassName:()=>T1e,containerClassName:()=>m1e,dropdownButtonClassName:()=>M1e,dropdownButtonGroupClassName:()=>w1e,gapButton:()=>O1e,gapButtonHeader:()=>B1e,headerArrowClassName:()=>_1e,headerClassName:()=>x1e,headerGroupClassName:()=>b1e,hoverColor:()=>H1e,itemRectClassName:()=>A1e,itemTextClassName:()=>k1e,menuIndexAttrName:()=>S1e,minHeight:()=>D1e,minWidth:()=>L1e,name:()=>y1e,rx:()=>P1e,ry:()=>I1e,textOffsetX:()=>z1e,textOffsetY:()=>N1e,textPadX:()=>R1e});var y1e,m1e,b1e,x1e,_1e,w1e,M1e,T1e,A1e,k1e,S1e,C1e,E1e,L1e,D1e,R1e,F1e,P1e,I1e,z1e,N1e,q1e,B1e,O1e,U1e,H1e,V1e,Pd=Ot(()=>{"use strict";y1e="updatemenus",m1e="updatemenu-container",b1e="updatemenu-header-group",x1e="updatemenu-header",_1e="updatemenu-header-arrow",w1e="updatemenu-dropdown-button-group",M1e="updatemenu-dropdown-button",T1e="updatemenu-button",A1e="updatemenu-item-rect",k1e="updatemenu-item-text",S1e="updatemenu-active-index",C1e="updatemenu-",E1e={label:" "},L1e=30,D1e=30,R1e=24,F1e=16,P1e=2,I1e=2,z1e=12,N1e=3,q1e=4,B1e=5,O1e=2,U1e="#F4FAFF",H1e="#F4FAFF",V1e={left:"\u25C4",right:"\u25BA",up:"\u25B2",down:"\u25BC"}});var Sx=_e((hwe,EN)=>{"use strict";var G1e=Hn(),Y1e=ji(),X1e=Ft().extendFlat,W1e=ia().overrideAll,Z1e=Nh(),CN=Mt().templatedArray,J1e=CN("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}});EN.exports=W1e(CN("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:J1e,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:X1e(Z1e({editType:"arraydraw"}),{}),font:G1e({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:Y1e.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")});var FN=_e((dwe,RN)=>{"use strict";var Id=rr(),LN=Ci(),DN=Sx(),$1e=(Pd(),or(Fd)),K1e=$1e.name,Q1e=DN.buttons;RN.exports=function(r,t){var n={name:K1e,handleItemDefaults:j1e};LN(r,t,n)};function j1e(e,r,t){function n(i,l){return Id.coerce(e,r,DN,i,l)}var a=LN(e,r,{name:"buttons",handleItemDefaults:e2e}),o=n("visible",a.length>0);o&&(n("active"),n("direction"),n("type"),n("showactive"),n("x"),n("y"),Id.noneOrAll(e,r,["x","y"]),n("xanchor"),n("yanchor"),n("pad.t"),n("pad.r"),n("pad.b"),n("pad.l"),Id.coerceFont(n,"font",t.font),n("bgcolor",t.paper_bgcolor),n("bordercolor"),n("borderwidth"))}function e2e(e,r){function t(a,o){return Id.coerce(e,r,Q1e,a,o)}var n=t("visible",e.method==="skip"||Array.isArray(e.args));n&&(t("method"),t("args"),t("args2"),t("label"),t("execute"))}});var zN=_e((pwe,IN)=>{"use strict";IN.exports=Gt;var Ni=at(),PN=Wr(),Pu=Tt(),zd=rr();function Gt(e,r,t){this.gd=e,this.container=r,this.id=t,this.position=null,this.translateX=null,this.translateY=null,this.hbar=null,this.vbar=null,this.bg=this.container.selectAll("rect.scrollbox-bg").data([0]),this.bg.exit().on(".drag",null).on("wheel",null).remove(),this.bg.enter().append("rect").classed("scrollbox-bg",!0).style("pointer-events","all").attr({opacity:0,x:0,y:0,width:0,height:0})}Gt.barWidth=2;Gt.barLength=20;Gt.barRadius=2;Gt.barPad=1;Gt.barColor="#808BA4";Gt.prototype.enable=function(r,t,n){var a=this.gd._fullLayout,o=a.width,i=a.height;this.position=r;var l=this.position.l,u=this.position.w,s=this.position.t,f=this.position.h,c=this.position.direction,p=c==="down",x=c==="left",g=c==="right",w=c==="up",M=u,m=f,k,S,b,T;!p&&!x&&!g&&!w&&(this.position.direction="down",p=!0);var h=p||w;h?(k=l,S=k+M,p?(b=s,T=Math.min(b+m,i),m=T-b):(T=s+m,b=Math.max(T-m,0),m=T-b)):(b=s,T=b+m,x?(S=l+M,k=Math.max(S-M,0),M=S-k):(k=l,S=Math.min(k+M,o),M=S-k)),this._box={l:k,t:b,w:M,h:m};var _=u>M,y=Gt.barLength+2*Gt.barPad,v=Gt.barWidth+2*Gt.barPad,A=l,d=s+f;d+v>i&&(d=i-v);var D=this.container.selectAll("rect.scrollbar-horizontal").data(_?[0]:[]);D.exit().on(".drag",null).remove(),D.enter().append("rect").classed("scrollbar-horizontal",!0).call(PN.fill,Gt.barColor),_?(this.hbar=D.attr({rx:Gt.barRadius,ry:Gt.barRadius,x:A,y:d,width:y,height:v}),this._hbarXMin=A+y/2,this._hbarTranslateMax=M-y):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var E=f>m,R=Gt.barWidth+2*Gt.barPad,z=Gt.barLength+2*Gt.barPad,I=l+u,P=s;I+R>o&&(I=o-R);var L=this.container.selectAll("rect.scrollbar-vertical").data(E?[0]:[]);L.exit().on(".drag",null).remove(),L.enter().append("rect").classed("scrollbar-vertical",!0).call(PN.fill,Gt.barColor),E?(this.vbar=L.attr({rx:Gt.barRadius,ry:Gt.barRadius,x:I,y:P,width:R,height:z}),this._vbarYMin=P+z/2,this._vbarTranslateMax=m-z):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var F=this.id,B=k-.5,O=E?S+R+.5:S+.5,V=b-.5,K=_?T+v+.5:T+.5,j=a._topdefs.selectAll("#"+F).data(_||E?[0]:[]);if(j.exit().remove(),j.enter().append("clipPath").attr("id",F).append("rect"),_||E?(this._clipRect=j.select("rect").attr({x:Math.floor(B),y:Math.floor(V),width:Math.ceil(O)-Math.floor(B),height:Math.ceil(K)-Math.floor(V)}),this.container.call(Pu.setClipUrl,F,this.gd),this.bg.attr({x:l,y:s,width:u,height:f})):(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(Pu.setClipUrl,null),delete this._clipRect),_||E){var G=Ni.behavior.drag().on("dragstart",function(){Ni.event.sourceEvent.preventDefault()}).on("drag",this._onBoxDrag.bind(this));this.container.on("wheel",null).on("wheel",this._onBoxWheel.bind(this)).on(".drag",null).call(G);var q=Ni.behavior.drag().on("dragstart",function(){Ni.event.sourceEvent.preventDefault(),Ni.event.sourceEvent.stopPropagation()}).on("drag",this._onBarDrag.bind(this));_&&this.hbar.on(".drag",null).call(q),E&&this.vbar.on(".drag",null).call(q)}this.setTranslate(t,n)};Gt.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(Pu.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)};Gt.prototype._onBoxDrag=function(){var r=this.translateX,t=this.translateY;this.hbar&&(r-=Ni.event.dx),this.vbar&&(t-=Ni.event.dy),this.setTranslate(r,t)};Gt.prototype._onBoxWheel=function(){var r=this.translateX,t=this.translateY;this.hbar&&(r+=Ni.event.deltaY),this.vbar&&(t+=Ni.event.deltaY),this.setTranslate(r,t)};Gt.prototype._onBarDrag=function(){var r=this.translateX,t=this.translateY;if(this.hbar){var n=r+this._hbarXMin,a=n+this._hbarTranslateMax,o=zd.constrain(Ni.event.x,n,a),i=(o-n)/(a-n),l=this.position.w-this._box.w;r=i*l}if(this.vbar){var u=t+this._vbarYMin,s=u+this._vbarTranslateMax,f=zd.constrain(Ni.event.y,u,s),c=(f-u)/(s-u),p=this.position.h-this._box.h;t=c*p}this.setTranslate(r,t)};Gt.prototype.setTranslate=function(r,t){var n=this.position.w-this._box.w,a=this.position.h-this._box.h;if(r=zd.constrain(r||0,0,n),t=zd.constrain(t||0,0,a),this.translateX=r,this.translateY=t,this.container.call(Pu.setTranslate,this._box.l-this.position.l-r,this._box.t-this.position.t-t),this._clipRect&&this._clipRect.attr({x:Math.floor(this.position.l+r-.5),y:Math.floor(this.position.t+t-.5)}),this.hbar){var o=r/n;this.hbar.call(Pu.setTranslate,r+o*this._hbarTranslateMax,t)}if(this.vbar){var i=t/a;this.vbar.call(Pu.setTranslate,r,t+i*this._vbarTranslateMax)}}});var XN=_e((gwe,YN)=>{"use strict";var Iu=at(),tv=Mn(),nv=Wr(),zu=Tt(),Ya=rr(),Nd=Wn(),r2e=Mt().arrayEditor,qN=(Xn(),or(Yn)).LINE_SPACING,Lr=(Pd(),or(Fd)),t2e=zN();YN.exports=function(r){var t=r._fullLayout,n=Ya.filterVisible(t[Lr.name]);function a(p){tv.autoMargin(r,VN(p))}var o=t._menulayer.selectAll("g."+Lr.containerClassName).data(n.length>0?[0]:[]);if(o.enter().append("g").classed(Lr.containerClassName,!0).style("cursor","pointer"),o.exit().each(function(){Iu.select(this).selectAll("g."+Lr.headerGroupClassName).each(a)}).remove(),n.length!==0){var i=o.selectAll("g."+Lr.headerGroupClassName).data(n,n2e);i.enter().append("g").classed(Lr.headerGroupClassName,!0);for(var l=Ya.ensureSingle(o,"g",Lr.dropdownButtonGroupClassName,function(p){p.style("pointer-events","all")}),u=0;u{"use strict";var f2e=(Pd(),or(Fd));WN.exports={moduleType:"component",name:f2e.name,layoutAttributes:Sx(),supplyLayoutDefaults:FN(),draw:XN()}});var iv={};Ut(iv,{arrowOffsetX:()=>L2e,autoMarginIdRoot:()=>k2e,containerClassName:()=>v2e,currentValueClass:()=>M2e,currentValueInset:()=>nde,currentValuePadding:()=>tde,gripBgActiveColor:()=>X2e,gripBgColor:()=>Y2e,gripBorder:()=>H2e,gripBorderColor:()=>G2e,gripBorderWidth:()=>V2e,gripHeight:()=>U2e,gripRadius:()=>B2e,gripRectClass:()=>y2e,gripWidth:()=>O2e,groupClassName:()=>h2e,inputAreaClass:()=>d2e,inputProxyClass:()=>b2e,labelClass:()=>w2e,labelGroupClass:()=>_2e,labelOffset:()=>Z2e,labelPadding:()=>W2e,labelsClass:()=>x2e,menuIndexAttrName:()=>A2e,minHeight:()=>C2e,minWidth:()=>S2e,minorTickColor:()=>ede,minorTickLength:()=>rde,minorTickOffset:()=>j2e,name:()=>c2e,railBgColor:()=>z2e,railBorder:()=>F2e,railBorderColor:()=>I2e,railBorderWidth:()=>P2e,railHeight:()=>T2e,railInset:()=>N2e,railRadius:()=>D2e,railRectClass:()=>p2e,railTouchRectClass:()=>g2e,railWidth:()=>R2e,stepInset:()=>q2e,textPadX:()=>E2e,tickColor:()=>$2e,tickLength:()=>Q2e,tickOffset:()=>K2e,tickRectClass:()=>m2e,tickWidth:()=>J2e});var c2e,v2e,h2e,d2e,p2e,g2e,y2e,m2e,b2e,x2e,_2e,w2e,M2e,T2e,A2e,k2e,S2e,C2e,E2e,L2e,D2e,R2e,F2e,P2e,I2e,z2e,N2e,q2e,B2e,O2e,U2e,H2e,V2e,G2e,Y2e,X2e,W2e,Z2e,J2e,$2e,K2e,Q2e,j2e,ede,rde,tde,nde,ov=Ot(()=>{"use strict";c2e="sliders",v2e="slider-container",h2e="slider-group",d2e="slider-input-area",p2e="slider-rail-rect",g2e="slider-rail-touch-rect",y2e="slider-grip-rect",m2e="slider-tick-rect",b2e="slider-input-proxy",x2e="slider-labels",_2e="slider-label-group",w2e="slider-label",M2e="slider-current-value",T2e=5,A2e="slider-active-index",k2e="slider-",S2e=30,C2e=30,E2e=40,L2e=4,D2e=2,R2e=5,F2e=4,P2e=1,I2e="#bec8d9",z2e="#f8fafc",N2e=8,q2e=10,B2e=10,O2e=20,U2e=20,H2e=20,V2e=1,G2e="#bec8d9",Y2e="#f6f8fa",X2e="#dbdde0",W2e=8,Z2e=0,J2e=1,$2e="#333",K2e=25,Q2e=7,j2e=25,ede="#333",rde=4,tde=8,nde=0});var Dx=_e((mwe,KN)=>{"use strict";var JN=Hn(),ade=Nh(),ide=Ft().extendDeepAll,ode=ia().overrideAll,lde=zf(),$N=Mt().templatedArray,n0=(ov(),or(iv)),sde=$N("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}});KN.exports=ode($N("slider",{visible:{valType:"boolean",dflt:!0},active:{valType:"number",min:0,dflt:0},steps:sde,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:ide(ade({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:lde.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:JN({})},font:JN({}),activebgcolor:{valType:"color",dflt:n0.gripBgActiveColor},bgcolor:{valType:"color",dflt:n0.railBgColor},bordercolor:{valType:"color",dflt:n0.railBorderColor},borderwidth:{valType:"number",min:0,dflt:n0.railBorderWidth},ticklen:{valType:"number",min:0,dflt:n0.tickLength},tickcolor:{valType:"color",dflt:n0.tickColor},tickwidth:{valType:"number",min:0,dflt:1},minorticklen:{valType:"number",min:0,dflt:n0.minorTickLength}}),"arraydraw","from-root")});var rq=_e((bwe,eq)=>{"use strict";var Nu=rr(),QN=Ci(),jN=Dx(),ude=(ov(),or(iv)),fde=ude.name,cde=jN.steps;eq.exports=function(r,t){QN(r,t,{name:fde,handleItemDefaults:vde})};function vde(e,r,t){function n(c,p){return Nu.coerce(e,r,jN,c,p)}for(var a=QN(e,r,{name:"steps",handleItemDefaults:hde}),o=0,i=0;i{"use strict";var qi=at(),qd=Mn(),Ul=Wr(),Bi=Tt(),Xa=rr(),dde=Xa.strTranslate,lv=Wn(),pde=Mt().arrayEditor,Vr=(ov(),or(iv)),Px=(Xn(),or(Yn)),aq=Px.LINE_SPACING,Rx=Px.FROM_TL,Fx=Px.FROM_BR;fq.exports=function(r){var t=r._context.staticPlot,n=r._fullLayout,a=gde(n,r),o=n._infolayer.selectAll("g."+Vr.containerClassName).data(a.length>0?[0]:[]);o.enter().append("g").classed(Vr.containerClassName,!0).style("cursor",t?null:"ew-resize");function i(f){f._commandObserver&&(f._commandObserver.remove(),delete f._commandObserver),qd.autoMargin(r,iq(f))}if(o.exit().each(function(){qi.select(this).selectAll("g."+Vr.groupClassName).each(i)}).remove(),a.length!==0){var l=o.selectAll("g."+Vr.groupClassName).data(a,yde);l.enter().append("g").classed(Vr.groupClassName,!0),l.exit().each(i).remove();for(var u=0;u0&&(l=l.transition().duration(r.transition.duration).ease(r.transition.easing)),l.attr("transform",dde(i-Vr.gripWidth*.5,r._dims.currentValueTotalHeight))}}function Ix(e,r){var t=e._dims;return t.inputAreaStart+Vr.stepInset+(t.inputAreaLength-2*Vr.stepInset)*Math.min(1,Math.max(0,r))}function nq(e,r){var t=e._dims;return Math.min(1,Math.max(0,(r-Vr.stepInset-t.inputAreaStart)/(t.inputAreaLength-2*Vr.stepInset-2*t.inputAreaStart)))}function Tde(e,r,t){var n=t._dims,a=Xa.ensureSingle(e,"rect",Vr.railTouchRectClass,function(o){o.call(sq,r,e,t).style("pointer-events","all")});a.attr({width:n.inputAreaLength,height:Math.max(n.inputAreaWidth,Vr.tickOffset+t.ticklen+n.labelHeight)}).call(Ul.fill,t.bgcolor).attr("opacity",0),Bi.setTranslate(a,0,n.currentValueTotalHeight)}function Ade(e,r){var t=r._dims,n=t.inputAreaLength-Vr.railInset*2,a=Xa.ensureSingle(e,"rect",Vr.railRectClass);a.attr({width:n,height:Vr.railWidth,rx:Vr.railRadius,ry:Vr.railRadius,"shape-rendering":"crispEdges"}).call(Ul.stroke,r.bordercolor).call(Ul.fill,r.bgcolor).style("stroke-width",r.borderwidth+"px"),Bi.setTranslate(a,Vr.railInset,(t.inputAreaWidth-Vr.railWidth)*.5+t.currentValueTotalHeight)}});var hq=_e((_we,vq)=>{"use strict";var kde=(ov(),or(iv));vq.exports={moduleType:"component",name:kde.name,layoutAttributes:Dx(),supplyLayoutDefaults:rq(),draw:cq()}});var Od=_e((wwe,pq)=>{"use strict";var dq=ji();pq.exports={bgcolor:{valType:"color",dflt:dq.background,editType:"plot"},bordercolor:{valType:"color",dflt:dq.defaultLine,editType:"plot"},borderwidth:{valType:"integer",dflt:0,min:0,editType:"plot"},autorange:{valType:"boolean",dflt:!0,editType:"calc",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},range:{valType:"info_array",items:[{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}},{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}}],editType:"calc",impliedEdits:{autorange:!1}},thickness:{valType:"number",dflt:.15,min:0,max:1,editType:"plot"},visible:{valType:"boolean",dflt:!0,editType:"calc"},editType:"calc"}});var zx=_e((Mwe,gq)=>{"use strict";gq.exports={_isSubplotObj:!0,rangemode:{valType:"enumerated",values:["auto","fixed","match"],dflt:"match",editType:"calc"},range:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},editType:"calc"}});var Ud={};Ut(Ud,{bgClassName:()=>Ede,containerClassName:()=>Cde,extraPad:()=>Qde,grabAreaCursor:()=>Wde,grabAreaFill:()=>Xde,grabAreaMaxClassName:()=>qde,grabAreaMinClassName:()=>Ide,grabAreaWidth:()=>Zde,grabberMaxClassName:()=>Nde,grabberMinClassName:()=>Pde,handleMaxClassName:()=>Bde,handleMinClassName:()=>zde,handleRadius:()=>$de,handleStrokeWidth:()=>Kde,handleWidth:()=>Jde,maskColor:()=>Hde,maskMaxClassName:()=>Rde,maskMaxOppAxisClassName:()=>Ude,maskMinClassName:()=>Dde,maskMinOppAxisClassName:()=>Ode,maskOppAxisColor:()=>Vde,name:()=>Sde,rangePlotClassName:()=>Lde,slideBoxClassName:()=>Fde,slideBoxCursor:()=>Yde,slideBoxFill:()=>Gde});var Sde,Cde,Ede,Lde,Dde,Rde,Fde,Pde,Ide,zde,Nde,qde,Bde,Ode,Ude,Hde,Vde,Gde,Yde,Xde,Wde,Zde,Jde,$de,Kde,Qde,Hd=Ot(()=>{"use strict";Sde="rangeslider",Cde="rangeslider-container",Ede="rangeslider-bg",Lde="rangeslider-rangeplot",Dde="rangeslider-mask-min",Rde="rangeslider-mask-max",Fde="rangeslider-slidebox",Pde="rangeslider-grabber-min",Ide="rangeslider-grabarea-min",zde="rangeslider-handle-min",Nde="rangeslider-grabber-max",qde="rangeslider-grabarea-max",Bde="rangeslider-handle-max",Ode="rangeslider-mask-min-opp-axis",Ude="rangeslider-mask-max-opp-axis",Hde="rgba(0,0,0,0.4)",Vde="rgba(0,0,0,0.2)",Gde="transparent",Yde="ew-resize",Xde="transparent",Wde="col-resize",Zde=10,Jde=4,$de=1,Kde=1,Qde=15});var bq=_e(Gd=>{"use strict";var jde=hn(),epe=Wn(),yq=(Hd(),or(Ud)),rpe=(Xn(),or(Yn)).LINE_SPACING,Vd=yq.name;function mq(e){var r=e&&e[Vd];return r&&r.visible}Gd.isVisible=mq;Gd.makeData=function(e){for(var r=jde.list({_fullLayout:e},"x",!0),t=e.margin,n=[],a=0;a{"use strict";var Yd=rr(),xq=Mt(),_q=hn(),tpe=Od(),npe=zx();wq.exports=function(r,t,n){var a=r[n],o=t[n];if(!(a.rangeslider||t._requestRangeslider[o._id]))return;Yd.isPlainObject(a.rangeslider)||(a.rangeslider={});var i=a.rangeslider,l=xq.newContainer(o,"rangeslider");function u(T,h){return Yd.coerce(i,l,tpe,T,h)}var s,f;function c(T,h){return Yd.coerce(s,f,npe,T,h)}var p=u("visible");if(p){u("bgcolor",t.plot_bgcolor),u("bordercolor"),u("borderwidth"),u("thickness"),u("autorange",!o.isValidRange(i.range)),u("range");var x=t._subplots;if(x)for(var g=x.cartesian.filter(function(T){return T.slice(0,Math.max(0,T.indexOf("y")))===_q.name2id(n)}).map(function(T){return T.slice(T.indexOf("y"),T.length)}),w=Yd.simpleMap(g,_q.id2name),M=0;M{"use strict";var ape=hn().list,ipe=tu().getAutoRange,ope=(Hd(),or(Ud));Tq.exports=function(r){for(var t=ape(r,"x",!0),n=0;n{"use strict";var Xd=at(),lpe=Er(),spe=Mn(),$t=rr(),Wd=$t.strTranslate,Sq=Tt(),Hl=Wr(),upe=Qf(),fpe=sx(),Nx=hn(),cpe=Li(),vpe=El(),Qr=(Hd(),or(Ud));Cq.exports=function(e){for(var r=e._fullLayout,t=r._rangeSliderData,n=0;n=L.max)I=d[P+1];else if(z=L.pmax)I=d[P+1];else if(z0?e.touches[0].clientX:0}function hpe(e,r,t,n){if(r._context.staticPlot)return;var a=e.select("rect."+Qr.slideBoxClassName).node(),o=e.select("rect."+Qr.grabAreaMinClassName).node(),i=e.select("rect."+Qr.grabAreaMaxClassName).node();function l(){var u=Xd.event,s=u.target,f=kq(u),c=f-e.node().getBoundingClientRect().left,p=n.d2p(t._rl[0]),x=n.d2p(t._rl[1]),g=cpe.coverSlip();this.addEventListener("touchmove",w),this.addEventListener("touchend",M),g.addEventListener("mousemove",w),g.addEventListener("mouseup",M);function w(m){var k=kq(m),S=+k-f,b,T,h;switch(s){case a:if(h="ew-resize",p+S>t._length||x+S<0)return;b=p+S,T=x+S;break;case o:if(h="col-resize",p+S>t._length)return;b=p+S,T=x;break;case i:if(h="col-resize",x+S<0)return;b=p,T=x+S;break;default:h="ew-resize",b=c,T=c+S;break}if(T{"use strict";var Mpe=rr(),Tpe=Od(),Ape=zx(),qx=bq();Lq.exports={moduleType:"component",name:"rangeslider",schema:{subplots:{xaxis:{rangeslider:Mpe.extendFlat({},Tpe,{yaxis:Ape})}}},layoutAttributes:Od(),handleDefaults:Mq(),calcAutorange:Aq(),draw:Eq(),isVisible:qx.isVisible,makeData:qx.makeData,autoMarginOpts:qx.autoMarginOpts}});var Zd=_e((Ewe,Fq)=>{"use strict";var kpe=Hn(),Rq=ji(),Spe=Mt().templatedArray,Cpe=Spe("button",{visible:{valType:"boolean",dflt:!0,editType:"plot"},step:{valType:"enumerated",values:["month","year","day","hour","minute","second","all"],dflt:"month",editType:"plot"},stepmode:{valType:"enumerated",values:["backward","todate"],dflt:"backward",editType:"plot"},count:{valType:"number",min:0,dflt:1,editType:"plot"},label:{valType:"string",editType:"plot"},editType:"plot"});Fq.exports={visible:{valType:"boolean",editType:"plot"},buttons:Cpe,x:{valType:"number",min:-2,max:3,editType:"plot"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"plot"},y:{valType:"number",min:-2,max:3,editType:"plot"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"bottom",editType:"plot"},font:kpe({editType:"plot"}),bgcolor:{valType:"color",dflt:Rq.lightLine,editType:"plot"},activecolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:Rq.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"}});var Bx={};Ut(Bx,{darkAmount:()=>Ppe,lightAmount:()=>Fpe,minButtonWidth:()=>Lpe,rx:()=>Dpe,ry:()=>Rpe,yPad:()=>Epe});var Epe,Lpe,Dpe,Rpe,Fpe,Ppe,Ox=Ot(()=>{"use strict";Epe=.02,Lpe=30,Dpe=3,Rpe=3,Fpe=25,Ppe=10});var zq=_e((Lwe,Iq)=>{"use strict";var Jd=rr(),Ipe=Wr(),zpe=Mt(),Npe=Ci(),Pq=Zd(),Ux=(Ox(),or(Bx));Iq.exports=function(r,t,n,a,o){var i=r.rangeselector||{},l=zpe.newContainer(t,"rangeselector");function u(x,g){return Jd.coerce(i,l,Pq,x,g)}var s=Npe(i,l,{name:"buttons",handleItemDefaults:qpe,calendar:o}),f=u("visible",s.length>0);if(f){var c=Bpe(t,n,a);u("x",c[0]),u("y",c[1]),Jd.noneOrAll(r,t,["x","y"]),u("xanchor"),u("yanchor"),Jd.coerceFont(u,"font",n.font);var p=u("bgcolor");u("activecolor",Ipe.contrast(p,Ux.lightAmount,Ux.darkAmount)),u("bordercolor"),u("borderwidth")}};function qpe(e,r,t,n){var a=n.calendar;function o(u,s){return Jd.coerce(e,r,Pq.buttons,u,s)}var i=o("visible");if(i){var l=o("step");l!=="all"&&(a&&a!=="gregorian"&&(l==="month"||l==="year")?r.stepmode="backward":o("stepmode"),o("count")),o("label")}}function Bpe(e,r,t){for(var n=t.filter(function(l){return r[l].anchor===e._id}),a=0,o=0;o{"use strict";var Ope=ig(),Upe=rr().titleCase;Nq.exports=function(r,t){var n=r._name,a={};if(t.step==="all")a[n+".autorange"]=!0;else{var o=Hpe(r,t);a[n+".range[0]"]=o[0],a[n+".range[1]"]=o[1]}return a};function Hpe(e,r){var t=e.range,n=new Date(e.r2l(t[1])),a=r.step,o=Ope["utc"+Upe(a)],i=r.count,l;switch(r.stepmode){case"backward":l=e.l2r(+o.offset(n,-i));break;case"todate":var u=o.offset(n,-i);l=e.l2r(+o.ceil(u));break}var s=t[1];return[l,s]}});var Xq=_e((Rwe,Yq)=>{"use strict";var Kd=at(),Vpe=Er(),Gpe=Mn(),Bq=Wr(),Gq=Tt(),Yo=rr(),Oq=Yo.strTranslate,$d=Wn(),Ype=hn(),Gx=(Xn(),or(Yn)),Uq=Gx.LINE_SPACING,Hq=Gx.FROM_TL,Vq=Gx.FROM_BR,Vx=(Ox(),or(Bx)),Xpe=qq();Yq.exports=function(r){var t=r._fullLayout,n=t._infolayer.selectAll(".rangeselector").data(Wpe(r),Zpe);n.enter().append("g").classed("rangeselector",!0),n.exit().remove(),n.style({cursor:"pointer","pointer-events":"all"}),n.each(function(a){var o=Kd.select(this),i=a,l=i.rangeselector,u=o.selectAll("g.button").data(Yo.filterVisible(l.buttons));u.enter().append("g").classed("button",!0),u.exit().remove(),u.each(function(s){var f=Kd.select(this),c=Xpe(i,s);s._isActive=Jpe(i,s,c),f.call(Hx,l,s),f.call(Kpe,l,s,r),f.on("click",function(){r._dragged||Vpe.call("_guiRelayout",r,c)}),f.on("mouseover",function(){s._isHovered=!0,f.call(Hx,l,s)}),f.on("mouseout",function(){s._isHovered=!1,f.call(Hx,l,s)})}),jpe(r,u,l,i._name,o)})};function Wpe(e){for(var r=Ype.list(e,"x",!0),t=[],n=0;n{"use strict";Wq.exports={moduleType:"component",name:"rangeselector",schema:{subplots:{xaxis:{rangeselector:Zd()}}},layoutAttributes:Zd(),handleDefaults:zq(),draw:Xq()}});var Qd=_e(Yx=>{"use strict";var Jq=Ft().extendFlat;Yx.attributes=function(e,r){e=e||{},r=r||{};var t={valType:"info_array",editType:e.editType,items:[{valType:"number",min:0,max:1,editType:e.editType},{valType:"number",min:0,max:1,editType:e.editType}],dflt:[0,1]},n=e.name?e.name+" ":"",a=e.trace?"trace":"subplot",o=r.description?" "+r.description:"",i={x:Jq({},t,{}),y:Jq({},t,{}),editType:e.editType};return e.noGridCell||(i.row={valType:"integer",min:0,dflt:0,editType:e.editType},i.column={valType:"integer",min:0,dflt:0,editType:e.editType}),i};Yx.defaults=function(e,r,t,n){var a=n&&n.x||[0,1],o=n&&n.y||[0,1],i=r.grid;if(i){var l=t("domain.column");l!==void 0&&(l{"use strict";var ege=rr(),rge=(P0(),or(Pf)).counter,tge=Qd().attributes,$q=(wn(),or(_n)).idRegex,nge=Mt(),Xx={rows:{valType:"integer",min:1,editType:"plot"},roworder:{valType:"enumerated",values:["top to bottom","bottom to top"],dflt:"top to bottom",editType:"plot"},columns:{valType:"integer",min:1,editType:"plot"},subplots:{valType:"info_array",freeLength:!0,dimensions:2,items:{valType:"enumerated",values:[rge("xy").toString(),""],editType:"plot"},editType:"plot"},xaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[$q.x.toString(),""],editType:"plot"},editType:"plot"},yaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[$q.y.toString(),""],editType:"plot"},editType:"plot"},pattern:{valType:"enumerated",values:["independent","coupled"],dflt:"coupled",editType:"plot"},xgap:{valType:"number",min:0,max:1,editType:"plot"},ygap:{valType:"number",min:0,max:1,editType:"plot"},domain:tge({name:"grid",editType:"plot",noGridCell:!0},{}),xside:{valType:"enumerated",values:["bottom","bottom plot","top plot","top"],dflt:"bottom plot",editType:"plot"},yside:{valType:"enumerated",values:["left","left plot","right plot","right"],dflt:"left plot",editType:"plot"},editType:"plot"};function jd(e,r,t){var n=r[t+"axes"],a=Object.keys((e._splomAxes||{})[t]||{});if(Array.isArray(n))return n;if(a.length)return a}function age(e,r){var t=e.grid||{},n=jd(r,t,"x"),a=jd(r,t,"y");if(!e.grid&&!n&&!a)return;var o=Array.isArray(t.subplots)&&Array.isArray(t.subplots[0]),i=Array.isArray(n),l=Array.isArray(a),u=i&&n!==t.xaxes&&l&&a!==t.yaxes,s,f;o?(s=t.subplots.length,f=t.subplots[0].length):(l&&(s=a.length),i&&(f=n.length));var c=nge.newContainer(r,"grid");function p(h,_){return ege.coerce(t,c,Xx,h,_)}var x=p("rows",s),g=p("columns",f);if(!(x*g>1)){delete r.grid;return}if(!o&&!i&&!l){var w=p("pattern")==="independent";w&&(o=!0)}c._hasSubplotGrid=o;var M=p("roworder"),m=M==="top to bottom",k=o?.2:.1,S=o?.3:.1,b,T;u&&r._splomGridDflt&&(b=r._splomGridDflt.xside,T=r._splomGridDflt.yside),c._domains={x:Kq("x",p,k,b,g),y:Kq("y",p,S,T,x,m)}}function Kq(e,r,t,n,a,o){var i=r(e+"gap",t),l=r("domain."+e);r(e+"side",n);for(var u=new Array(a),s=l[0],f=(l[1]-s)/(a-i),c=f*(1-i),p=0;p{"use strict";rB.exports={visible:{valType:"boolean",editType:"calc"},type:{valType:"enumerated",values:["percent","constant","sqrt","data"],editType:"calc"},symmetric:{valType:"boolean",editType:"calc"},array:{valType:"data_array",editType:"calc"},arrayminus:{valType:"data_array",editType:"calc"},value:{valType:"number",min:0,dflt:10,editType:"calc"},valueminus:{valType:"number",min:0,dflt:10,editType:"calc"},traceref:{valType:"integer",min:0,dflt:0,editType:"style"},tracerefminus:{valType:"integer",min:0,dflt:0,editType:"style"},copy_ystyle:{valType:"boolean",editType:"plot"},copy_zstyle:{valType:"boolean",editType:"style"},color:{valType:"color",editType:"style"},thickness:{valType:"number",min:0,dflt:2,editType:"style"},width:{valType:"number",min:0,editType:"plot"},editType:"calc"}});var aB=_e((Nwe,nB)=>{"use strict";var tB=ot(),oge=Er(),lge=rr(),sge=Mt(),uge=Wx();nB.exports=function(e,r,t,n){var a="error_"+n.axis,o=sge.newContainer(r,a),i=e[a]||{};function l(g,w){return lge.coerce(i,o,uge,g,w)}var u=i.array!==void 0||i.value!==void 0||i.type==="sqrt",s=l("visible",u);if(s!==!1){var f=l("type","array"in i?"data":"percent"),c=!0;f!=="sqrt"&&(c=l("symmetric",!((f==="data"?"arrayminus":"valueminus")in i))),f==="data"?(l("array"),l("traceref"),c||(l("arrayminus"),l("tracerefminus"))):(f==="percent"||f==="constant")&&(l("value"),c||l("valueminus"));var p="copy_"+n.inherit+"style";if(n.inherit){var x=r["error_"+n.inherit];(x||{}).visible&&l(p,!(i.color||tB(i.thickness)||tB(i.width)))}(!n.inherit||!o[p])&&(l("color",t),l("thickness"),l("width",oge.traceIs(r,"gl3d")?0:4))}}});var Zx=_e((qwe,oB)=>{"use strict";oB.exports=function(r){var t=r.type,n=r.symmetric;if(t==="data"){var a=r.array||[];if(n)return function(s,f){var c=+a[f];return[c,c]};var o=r.arrayminus||[];return function(s,f){var c=+a[f],p=+o[f];return!isNaN(c)||!isNaN(p)?[p||0,c||0]:[NaN,NaN]}}else{var i=iB(t,r.value),l=iB(t,r.valueminus);return n||r.valueminus===void 0?function(s){var f=i(s);return[f,f]}:function(s){return[l(s),i(s)]}}};function iB(e,r){if(e==="percent")return function(t){return Math.abs(t*r/100)};if(e==="constant")return function(){return Math.abs(r)};if(e==="sqrt")return function(t){return Math.sqrt(Math.abs(t))}}});var uB=_e((Bwe,sB)=>{"use strict";var Jx=ot(),fge=Er(),$x=Ht(),cge=rr(),vge=Zx();sB.exports=function(r){for(var t=r.calcdata,n=0;n{"use strict";var fB=at(),Vl=ot(),hge=Tt(),dge=Sa();cB.exports=function(r,t,n,a){var o,i=n.xaxis,l=n.yaxis,u=a&&a.duration>0,s=r._context.staticPlot;t.each(function(f){var c=f[0].trace,p=c.error_x||{},x=c.error_y||{},g;c.ids&&(g=function(k){return k.id});var w=dge.hasMarkers(c)&&c.marker.maxdisplayed>0;!x.visible&&!p.visible&&(f=[]);var M=fB.select(this).selectAll("g.errorbar").data(f,g);if(M.exit().remove(),!!f.length){p.visible||M.selectAll("path.xerror").remove(),x.visible||M.selectAll("path.yerror").remove(),M.style("opacity",1);var m=M.enter().append("g").classed("errorbar",!0);u&&m.style("opacity",0).transition().duration(a.duration).style("opacity",1),hge.setClipUrl(M,n.layerClipId,r),M.each(function(k){var S=fB.select(this),b=pge(k,i,l);if(!(w&&!k.vis)){var T,h=S.select("path.yerror");if(x.visible&&Vl(b.x)&&Vl(b.yh)&&Vl(b.ys)){var _=x.width;T="M"+(b.x-_)+","+b.yh+"h"+2*_+"m-"+_+",0V"+b.ys,b.noYS||(T+="m-"+_+",0h"+2*_),o=!h.size(),o?h=S.append("path").style("vector-effect",s?"none":"non-scaling-stroke").classed("yerror",!0):u&&(h=h.transition().duration(a.duration).ease(a.easing)),h.attr("d",T)}else h.remove();var y=S.select("path.xerror");if(p.visible&&Vl(b.y)&&Vl(b.xh)&&Vl(b.xs)){var v=(p.copy_ystyle?x:p).width;T="M"+b.xh+","+(b.y-v)+"v"+2*v+"m0,-"+v+"H"+b.xs,b.noXS||(T+="m0,-"+v+"v"+2*v),o=!y.size(),o?y=S.append("path").style("vector-effect",s?"none":"non-scaling-stroke").classed("xerror",!0):u&&(y=y.transition().duration(a.duration).ease(a.easing)),y.attr("d",T)}else y.remove()}})}})};function pge(e,r,t){var n={x:r.c2p(e.x),y:t.c2p(e.y)};return e.yh!==void 0&&(n.yh=t.c2p(e.yh),n.ys=t.c2p(e.ys),Vl(n.ys)||(n.noYS=!0,n.ys=t.c2p(e.ys,!0))),e.xh!==void 0&&(n.xh=r.c2p(e.xh),n.xs=r.c2p(e.xs),Vl(n.xs)||(n.noXS=!0,n.xs=r.c2p(e.xs,!0))),n}});var pB=_e((Uwe,dB)=>{"use strict";var gge=at(),hB=Wr();dB.exports=function(r){r.each(function(t){var n=t[0].trace,a=n.error_y||{},o=n.error_x||{},i=gge.select(this);i.selectAll("path.yerror").style("stroke-width",a.thickness+"px").call(hB.stroke,a.color),o.copy_ystyle&&(o=a),i.selectAll("path.xerror").style("stroke-width",o.thickness+"px").call(hB.stroke,o.color)})}});var mB=_e((Hwe,yB)=>{"use strict";var sv=rr(),gB=ia().overrideAll,uv=Wx(),a0={error_x:sv.extendFlat({},uv),error_y:sv.extendFlat({},uv)};delete a0.error_x.copy_zstyle;delete a0.error_y.copy_zstyle;delete a0.error_y.copy_ystyle;var fv={error_x:sv.extendFlat({},uv),error_y:sv.extendFlat({},uv),error_z:sv.extendFlat({},uv)};delete fv.error_x.copy_ystyle;delete fv.error_y.copy_ystyle;delete fv.error_z.copy_ystyle;delete fv.error_z.copy_zstyle;yB.exports={moduleType:"component",name:"errorbars",schema:{traces:{scatter:a0,bar:a0,histogram:a0,scatter3d:gB(fv,"calc","nested"),scattergl:gB(a0,"calc","nested")}},supplyDefaults:aB(),calc:uB(),makeComputeError:Zx(),plot:vB(),style:pB(),hoverInfo:yge};function yge(e,r,t){(r.error_y||{}).visible&&(t.yerr=e.yh-e.y,r.error_y.symmetric||(t.yerrneg=e.y-e.ys)),(r.error_x||{}).visible&&(t.xerr=e.xh-e.x,r.error_x.symmetric||(t.xerrneg=e.x-e.xs))}});var bB={};Ut(bB,{cn:()=>mge});var mge,xB=Ot(()=>{"use strict";mge={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"}});var CB=_e((Vwe,SB)=>{"use strict";var Gl=at(),rp=Mn(),_B=Er(),Xo=Ht(),ep=Li(),gi=rr(),Ui=gi.strTranslate,kB=Ft().extendFlat,Kx=El(),Oi=Tt(),qu=Wr(),bge=Qf(),xge=Wn(),_ge=ro().flipScale,wge=wd(),Mge=ix(),Tge=ri(),jx=(Xn(),or(Yn)),wB=jx.LINE_SPACING,MB=jx.FROM_TL,TB=jx.FROM_BR,Vt=(xB(),or(bB)).cn;function Age(e){var r=e._fullLayout,t=r._infolayer.selectAll("g."+Vt.colorbar).data(kge(e),function(n){return n._id});t.enter().append("g").attr("class",function(n){return n._id}).classed(Vt.colorbar,!0),t.each(function(n){var a=Gl.select(this);gi.ensureSingle(a,"rect",Vt.cbbg),gi.ensureSingle(a,"g",Vt.cbfills),gi.ensureSingle(a,"g",Vt.cblines),gi.ensureSingle(a,"g",Vt.cbaxis,function(i){i.classed(Vt.crisp,!0)}),gi.ensureSingle(a,"g",Vt.cbtitleunshift,function(i){i.append("g").classed(Vt.cbtitle,!0)}),gi.ensureSingle(a,"rect",Vt.cboutline);var o=Sge(a,n,e);o&&o.then&&(e._promises||[]).push(o),e._context.edits.colorbarPosition&&Cge(a,n,e)}),t.exit().each(function(n){rp.autoMargin(e,n._id)}).remove(),t.order()}function kge(e){var r=e._fullLayout,t=e.calcdata,n=[],a,o,i,l;function u(S){return kB(S,{_fillcolor:null,_line:{color:null,width:null,dash:null},_levels:{start:null,end:null,size:null},_filllevels:null,_fillgradient:null,_zrange:null})}function s(){typeof l.calc=="function"?l.calc(e,i,a):(a._fillgradient=o.reversescale?_ge(o.colorscale):o.colorscale,a._zrange=[o[l.min],o[l.max]])}for(var f=0;f[Math.min(e[0]+r,e[1]),e[1]],AB=(e,r)=>[e[0],Math.max(e[1]-r,e[0])];function Sge(e,r,t){var n=r.orientation==="v",a=r.len,o=r.lenmode,i=r.thickness,l=r.thicknessmode,u=r.outlinewidth,s=r.borderwidth,f=r.bgcolor,c=r.xanchor,p=r.yanchor,x=r.xpad,g=r.ypad,w=r.x,M=n?r.y:1-r.y,m=r.yref==="paper",k=r.xref==="paper",S=t._fullLayout,b=S._size,T=r._fillcolor,h=r._line,_=r.title,y=_.side,v=r._zrange||Gl.extent((typeof T=="function"?T:h.color).domain()),A=typeof h.color=="function"?h.color:function(){return h.color},d=typeof T=="function"?T:function(){return T},D=r._levels,E=Ege(t,r,v),R=E.fill,z=E.line,I=Math.round(i*(l==="fraction"?n?b.w:b.h:1)),P=I/(n?b.w:b.h),L=Math.round(a*(o==="fraction"?n?b.h:b.w:1)),F=L/(n?b.h:b.w),B=k?b.w:t._fullLayout.width,O=m?b.h:t._fullLayout.height,V=Math.round(n?w*B+x:M*O+g),K={center:.5,right:1}[c]||0,j={top:1,middle:.5}[p]||0,G=n?w-K*P:M-j*P,q=n?M-j*F:w-K*F,J=Math.round(n?O*(1-q):B*q);r._lenFrac=F,r._thickFrac=P,r._uFrac=G,r._vFrac=q;var te=r._axis=Lge(t,r,v);te.position=P+(n?w+x/b.w:M+g/b.h);var Z=["top","bottom"].indexOf(y)!==-1;if(n&&Z&&(te.title.side=y,te.titlex=w+x/b.w,te.titley=q+(_.side==="top"?F-g/b.h:g/b.h)),!n&&!Z&&(te.title.side=y,te.titley=M+g/b.h,te.titlex=q+x/b.w),h.color&&r.tickmode==="auto"){te.tickmode="linear",te.tick0=D.start;var ie=D.size,Q=gi.constrain(L/50,4,15)+1,re=(v[1]-v[0])/((r.nticks||Q)*ie);if(re>1){var ue=Math.pow(10,Math.floor(Math.log(re)/Math.LN10));ie*=ue*gi.roundUp(re/ue,[2,5,10]),(Math.abs(D.start)/D.size+1e-6)%1<2e-6&&(te.tick0=0)}te.dtick=ie}var ee=n?g/b.h:x/b.w;te.domain=AB(Qx([q,q+F],ee),ee),te.setScale(),e.attr("transform",Ui(Math.round(b.l),Math.round(b.t)));var ae=e.select("."+Vt.cbtitleunshift).attr("transform",Ui(-Math.round(b.l),-Math.round(b.t))),ce=te.ticklabelposition,Te=te.title.font.size,ke=e.select("."+Vt.cbaxis),Se,ge=0,Le=0;function Ce(oe,ve){var he={propContainer:te,propName:r._propPrefix+"title.text",traceIndex:r._traceIndex,_meta:r._meta,placeholder:S._dfltTitle.colorbar,containerGroup:e.select("."+Vt.cbtitle)},me=oe.charAt(0)==="h"?oe.slice(1):"h"+oe;e.selectAll("."+me+",."+me+"-math-group").remove(),bge.draw(t,oe,kB(he,ve||{}))}function le(){if(n&&Z||!n&&!Z){var oe,ve;y==="top"&&(oe=x+b.l+B*w,ve=g+b.t+O*(1-q-F)+3+Te*.75),y==="bottom"&&(oe=x+b.l+B*w,ve=g+b.t+O*(1-q)-3-Te*.25),y==="right"&&(ve=g+b.t+O*M+3+Te*.75,oe=x+b.l+B*q),Ce(te._id+"title",{attributes:{x:oe,y:ve,"text-anchor":n?"start":"middle"}})}}function Y(){if(n&&!Z||!n&&Z){var oe=te.position||0,ve=te._offset+te._length/2,he,me;if(y==="right")me=ve,he=b.l+B*oe+10+Te*(te.showticklabels?1:.5);else if(he=ve,y==="bottom"&&(me=b.t+O*oe+10+(ce.indexOf("inside")===-1?te.tickfont.size:0)+(te.ticks!=="inside"&&r.ticklen||0)),y==="top"){var be=_.text.split("
").length;me=b.t+O*oe+10-I-wB*Te*be}Ce((n?"h":"v")+te._id+"title",{avoid:{selection:Gl.select(t).selectAll("g."+te._id+"tick"),side:y,offsetTop:n?0:b.t,offsetLeft:n?b.l:0,maxShift:n?S.width:S.height},attributes:{x:he,y:me,"text-anchor":"middle"},transform:{rotate:n?-90:0,offset:0}})}}function $(){if(!n&&!Z||n&&Z){var oe=e.select("."+Vt.cbtitle),ve=oe.select("text"),he=[-u/2,u/2],me=oe.select(".h"+te._id+"title-math-group").node(),be=15.6;ve.node()&&(be=parseInt(ve.node().style.fontSize,10)*wB);var ye;if(me?(ye=Oi.bBox(me),Le=ye.width,ge=ye.height,ge>be&&(he[1]-=(ge-be)/2)):ve.node()&&!ve.classed(Vt.jsPlaceholder)&&(ye=Oi.bBox(ve.node()),Le=ye.width,ge=ye.height),n){if(ge){if(ge+=5,y==="top")te.domain=AB(te.domain,ge/b.h),he[1]*=-1;else{te.domain=Qx(te.domain,ge/b.h);var de=xge.lineCount(ve);he[1]+=(1-de)*be}oe.attr("transform",Ui(he[0],he[1])),te.setScale()}}else Le&&(y==="right"&&(te.domain=Qx(te.domain,(Le+Te/2)/b.w)),oe.attr("transform",Ui(he[0],he[1])),te.setScale())}e.selectAll("."+Vt.cbfills+",."+Vt.cblines).attr("transform",n?Ui(0,Math.round(b.h*(1-te.domain[1]))):Ui(Math.round(b.w*te.domain[0]),0)),ke.attr("transform",n?Ui(0,Math.round(-b.t)):Ui(Math.round(-b.l),0));var xe=e.select("."+Vt.cbfills).selectAll("rect."+Vt.cbfill).attr("style","").data(R);xe.enter().append("rect").classed(Vt.cbfill,!0).attr("style",""),xe.exit().remove();var Ae=v.map(te.c2p).map(Math.round).sort(function(Be,Oe){return Be-Oe});xe.each(function(Be,Oe){var We=[Oe===0?v[0]:(R[Oe]+R[Oe-1])/2,Oe===R.length-1?v[1]:(R[Oe]+R[Oe+1])/2].map(te.c2p).map(Math.round);n&&(We[1]=gi.constrain(We[1]+(We[1]>We[0])?1:-1,Ae[0],Ae[1]));var Xe=Gl.select(this).attr(n?"x":"y",V).attr(n?"y":"x",Gl.min(We)).attr(n?"width":"height",Math.max(I,2)).attr(n?"height":"width",Math.max(Gl.max(We)-Gl.min(We),2));if(r._fillgradient)Oi.gradient(Xe,t,r._id,n?"vertical":"horizontalreversed",r._fillgradient,"fill");else{var tr=d(Be).replace("e-","");Xe.attr("fill",qu.hexString(tr))}});var Pe=e.select("."+Vt.cblines).selectAll("path."+Vt.cbline).data(h.color&&h.width?z:[]);Pe.enter().append("path").classed(Vt.cbline,!0),Pe.exit().remove(),Pe.each(function(Be){var Oe=V,We=Math.round(te.c2p(Be))+h.width/2%1;Gl.select(this).attr("d","M"+(n?Oe+","+We:We+","+Oe)+(n?"h":"v")+I).call(Oi.lineGroupStyle,h.width,A(Be),h.dash)}),ke.selectAll("g."+te._id+"tick,path").remove();var Fe=V+I+(u||0)/2-(r.ticks==="outside"?1:0),Ye=Xo.calcTicks(te),qe=Xo.getTickSigns(te)[2];return Xo.drawTicks(t,te,{vals:te.ticks==="inside"?Xo.clipEnds(te,Ye):Ye,layer:ke,path:Xo.makeTickPath(te,Fe,qe),transFn:Xo.makeTransTickFn(te)}),Xo.drawLabels(t,te,{vals:Ye,layer:ke,transFn:Xo.makeTransTickLabelFn(te),labelFns:Xo.makeLabelFns(te,Fe)})}function pe(){var oe,ve=I+u/2;ce.indexOf("inside")===-1&&(oe=Oi.bBox(ke.node()),ve+=n?oe.width:oe.height),Se=ae.select("text");var he=0,me=n&&y==="top",be=!n&&y==="right",ye=0;if(Se.node()&&!Se.classed(Vt.jsPlaceholder)){var de,xe=ae.select(".h"+te._id+"title-math-group").node();xe&&(n&&Z||!n&&!Z)?(oe=Oi.bBox(xe),he=oe.width,de=oe.height):(oe=Oi.bBox(ae.node()),he=oe.right-b.l-(n?V:J),de=oe.bottom-b.t-(n?J:V),!n&&y==="top"&&(ve+=oe.height,ye=oe.height)),be&&(Se.attr("transform",Ui(he/2+Te/2,0)),he*=2),ve=Math.max(ve,n?he:de)}var Ae=(n?x:g)*2+ve+s+u/2,Pe=0;!n&&_.text&&p==="bottom"&&M<=0&&(Pe=Ae/2,Ae+=Pe,ye+=Pe),S._hColorbarMoveTitle=Pe,S._hColorbarMoveCBTitle=ye;var Fe=s+u,Ye=(n?V:J)-Fe/2-(n?x:0),qe=(n?J:V)-(n?L:g+ye-Pe);e.select("."+Vt.cbbg).attr("x",Ye).attr("y",qe).attr(n?"width":"height",Math.max(Ae-Pe,2)).attr(n?"height":"width",Math.max(L+Fe,2)).call(qu.fill,f).call(qu.stroke,r.bordercolor).style("stroke-width",s);var Be=be?Math.max(he-10,0):0;e.selectAll("."+Vt.cboutline).attr("x",(n?V:J+x)+Be).attr("y",(n?J+g-L:V)+(me?ge:0)).attr(n?"width":"height",Math.max(I,2)).attr(n?"height":"width",Math.max(L-(n?2*g+ge:2*x+Be),2)).call(qu.stroke,r.outlinecolor).style({fill:"none","stroke-width":u});var Oe=n?K*Ae:0,We=n?0:(1-j)*Ae-ye;if(Oe=k?b.l-Oe:-Oe,We=m?b.t-We:-We,e.attr("transform",Ui(Oe,We)),!n&&(s||qu.opacity(f)&&!qu.equals(S.paper_bgcolor,f))){var Xe=ke.selectAll("text"),tr=Xe[0].length,ir=e.select("."+Vt.cbbg).node(),je=Oi.bBox(ir),Ke=Oi.getTranslate(e),Ee=2;Xe.each(function(Zr,xt){var $r=0,ut=tr-1;if(xt===$r||xt===ut){var Fn=Oi.bBox(this),sr=Oi.getTranslate(this),Nr;if(xt===ut){var tt=Fn.right+sr.x,Ur=je.right+Ke.x+J-s-Ee+w;Nr=Ur-tt,Nr>0&&(Nr=0)}else if(xt===$r){var Yr=Fn.left+sr.x,gt=je.left+Ke.x+J+s+Ee;Nr=gt-Yr,Nr<0&&(Nr=0)}Nr&&(tr<3?this.setAttribute("transform","translate("+Nr+",0) "+this.getAttribute("transform")):this.setAttribute("visibility","hidden"))}})}var ze={},Qe=MB[c],er=TB[c],Mr=MB[p],Gr=TB[p],Tr=Ae-I;n?(o==="pixels"?(ze.y=M,ze.t=L*Mr,ze.b=L*Gr):(ze.t=ze.b=0,ze.yt=M+a*Mr,ze.yb=M-a*Gr),l==="pixels"?(ze.x=w,ze.l=Ae*Qe,ze.r=Ae*er):(ze.l=Tr*Qe,ze.r=Tr*er,ze.xl=w-i*Qe,ze.xr=w+i*er)):(o==="pixels"?(ze.x=w,ze.l=L*Qe,ze.r=L*er):(ze.l=ze.r=0,ze.xl=w+a*Qe,ze.xr=w-a*er),l==="pixels"?(ze.y=1-M,ze.t=Ae*Mr,ze.b=Ae*Gr):(ze.t=Tr*Mr,ze.b=Tr*Gr,ze.yt=M-i*Mr,ze.yb=M+i*Gr));var Fr=r.y<.5?"b":"t",jr=r.x<.5?"l":"r";t._fullLayout._reservedMargin[r._id]={};var Cr={r:S.width-Ye-Oe,l:Ye+ze.r,b:S.height-qe-We,t:qe+ze.b};k&&m?rp.autoMargin(t,r._id,ze):k?t._fullLayout._reservedMargin[r._id][Fr]=Cr[Fr]:m||n?t._fullLayout._reservedMargin[r._id][jr]=Cr[jr]:t._fullLayout._reservedMargin[r._id][Fr]=Cr[Fr]}return gi.syncOrAsync([rp.previousPromises,le,$,Y,rp.previousPromises,pe],t)}function Cge(e,r,t){var n=r.orientation==="v",a=t._fullLayout,o=a._size,i,l,u;ep.init({element:e.node(),gd:t,prepFn:function(){i=e.attr("transform"),Kx(e)},moveFn:function(s,f){e.attr("transform",i+Ui(s,f)),l=ep.align((n?r._uFrac:r._vFrac)+s/o.w,n?r._thickFrac:r._lenFrac,0,1,r.xanchor),u=ep.align((n?r._vFrac:1-r._uFrac)-f/o.h,n?r._lenFrac:r._thickFrac,0,1,r.yanchor);var c=ep.getCursor(l,u,r.xanchor,r.yanchor);Kx(e,c)},doneFn:function(){if(Kx(e),l!==void 0&&u!==void 0){var s={};s[r._propPrefix+"x"]=l,s[r._propPrefix+"y"]=u,r._traceIndex!==void 0?_B.call("_guiRestyle",t,s,r._traceIndex):_B.call("_guiRelayout",t,s)}}})}function Ege(e,r,t){var n=r._levels,a=[],o=[],i,l,u=n.end+n.size/100,s=n.size,f=1.001*t[0]-.001*t[1],c=1.001*t[1]-.001*t[0];for(l=0;l<1e5&&(i=n.start+l*s,!(s>0?i>=u:i<=u));l++)i>f&&i0?i>=u:i<=u));l++)i>t[0]&&i{"use strict";EB.exports={moduleType:"component",name:"colorbar",attributes:h1(),supplyDefaults:Qy(),draw:CB().draw,hasColorbar:Uy()}});var RB=_e((Ywe,DB)=>{"use strict";DB.exports={moduleType:"component",name:"legend",layoutAttributes:Wm(),supplyLayoutDefaults:Jm(),draw:c5(),style:l5()}});var PB=_e((Xwe,FB)=>{"use strict";FB.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"}}});var zB=_e((Wwe,IB)=>{"use strict";IB.exports={moduleType:"locale",name:"en-US",dictionary:{"Click to enter Colorscale title":"Click to enter Colorscale title"},format:{date:"%m/%d/%Y"}}});var r4=_e((Zwe,OB)=>{"use strict";var Dge=Er(),BB=rr(),e4=BB.extendFlat,NB=BB.extendDeep;function qB(e){var r;switch(e){case"themes__thumb":r={autosize:!0,width:150,height:150,title:{text:""},showlegend:!1,margin:{l:5,r:5,t:5,b:5,pad:0},annotations:[]};break;case"thumbnail":r={title:{text:""},showlegend:!1,borderwidth:0,bordercolor:"",margin:{l:1,r:1,t:1,b:1,pad:0},annotations:[]};break;default:r={}}return r}function Rge(e){var r=["xaxis","yaxis","zaxis"];return r.indexOf(e.slice(0,5))>-1}OB.exports=function(r,t){var n,a=r.data,o=r.layout,i=NB([],a),l=NB({},o,qB(t.tileClass)),u=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 s=Object.keys(l);for(n=0;n{"use strict";var Fge=r1().EventEmitter,Pge=Er(),Ige=rr(),UB=Ws(),zge=r4(),Nge=ad(),qge=id();function Bge(e,r){var t=new Fge,n=zge(e,{format:"png"}),a=n.gd;a.style.position="absolute",a.style.left="-5000px",document.body.appendChild(a);function o(){var l=UB.getDelay(a._fullLayout);setTimeout(function(){var u=Nge(a),s=document.createElement("canvas");s.id=Ige.randstr(),t=qge({format:r.format,width:a._fullLayout.width,height:a._fullLayout.height,canvas:s,emitter:t,svg:u}),t.clean=function(){a&&document.body.removeChild(a)}},l)}var i=UB.getRedrawFunc(a);return Pge.call("_doPlot",a,n.data,n.layout,n.config).then(i).then(o).catch(function(l){t.emit("error",l)}),t}HB.exports=Bge});var XB=_e(($we,YB)=>{"use strict";var GB=Ws(),Oge={getDelay:GB.getDelay,getRedrawFunc:GB.getRedrawFunc,clone:r4(),toSVG:ad(),svgToImg:id(),toImage:VB(),downloadImage:Lb()};YB.exports=Oge});var ZB=_e(Wo=>{"use strict";Wo.version=ff().version;J_();PT();var Uge=Er(),cv=Wo.register=Uge.register,n4=$F(),WB=Object.keys(n4);for(tp=0;tp{"use strict";JB.exports=ZB()});var Dn=_e((jwe,KB)=>{"use strict";(()=>{var e={3065(a,o,i){a.exports={alpha_shape:i(3502),convex_hull:i(7352),delaunay_triangulate:i(7642),gl_cone3d:i(6405),gl_error3d:i(9165),gl_line3d:i(5714),gl_mesh3d:i(7201),gl_plot3d:i(4100),gl_scatter3d:i(8418),gl_streamtube3d:i(7815),gl_surface3d:i(9499),ndarray:i(9618),ndarray_linear_interpolate:i(4317)}},6296(a,o,i){"use strict";a.exports=p;var l=i(7261),u=i(9977),s=i(1811);function f(x,g){this._controllerNames=Object.keys(x),this._controllerList=this._controllerNames.map(function(w){return x[w]}),this._mode=g,this._active=x[g],this._active||(this._mode="turntable",this._active=x.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(x){for(var g=this._controllerList,w=0;w0)throw new Error("Invalid string. Length must be a multiple of 4");var T=S.indexOf("=");T===-1&&(T=b);var h=T===b?0:4-T%4;return[T,h]}function x(S){var b=p(S),T=b[0],h=b[1];return(T+h)*3/4-h}function g(S,b,T){return(b+T)*3/4-T}function w(S){var b,T=p(S),h=T[0],_=T[1],y=new u(g(S,h,_)),v=0,A=_>0?h-4:h,d;for(d=0;d>16&255,y[v++]=b>>8&255,y[v++]=b&255;return _===2&&(b=l[S.charCodeAt(d)]<<2|l[S.charCodeAt(d+1)]>>4,y[v++]=b&255),_===1&&(b=l[S.charCodeAt(d)]<<10|l[S.charCodeAt(d+1)]<<4|l[S.charCodeAt(d+2)]>>2,y[v++]=b>>8&255,y[v++]=b&255),y}function M(S){return i[S>>18&63]+i[S>>12&63]+i[S>>6&63]+i[S&63]}function m(S,b,T){for(var h,_=[],y=b;yA?A:v+y));return h===1?(b=S[T-1],_.push(i[b>>2]+i[b<<4&63]+"==")):h===2&&(b=(S[T-2]<<8)+S[T-1],_.push(i[b>>10]+i[b>>4&63]+i[b<<2&63]+"=")),_.join("")}},3865(a,o,i){"use strict";var l=i(869);a.exports=u;function u(s,f){return l(s[0].mul(f[1]).add(f[0].mul(s[1])),s[1].mul(f[1]))}},1318(a){"use strict";a.exports=o;function o(i,l){return i[0].mul(l[1]).cmp(l[0].mul(i[1]))}},8697(a,o,i){"use strict";var l=i(869);a.exports=u;function u(s,f){return l(s[0].mul(f[1]),s[1].mul(f[0]))}},7842(a,o,i){"use strict";var l=i(6330),u=i(1533),s=i(2651),f=i(6768),c=i(869),p=i(8697);a.exports=x;function x(g,w){if(l(g))return w?p(g,x(w)):[g[0].clone(),g[1].clone()];var M=0,m,k;if(u(g))m=g.clone();else if(typeof g=="string")m=f(g);else{if(g===0)return[s(0),s(1)];if(g===Math.floor(g))m=s(g);else{for(;g!==Math.floor(g);)g=g*Math.pow(2,256),M-=256;m=s(g)}}if(l(w))m.mul(w[1]),k=w[0].clone();else if(u(w))k=w.clone();else if(typeof w=="string")k=f(w);else if(!w)k=s(1);else if(w===Math.floor(w))k=s(w);else{for(;w!==Math.floor(w);)w=w*Math.pow(2,256),M+=256;k=s(w)}return M>0?m=m.ushln(M):M<0&&(k=k.ushln(-M)),c(m,k)}},6330(a,o,i){"use strict";var l=i(1533);a.exports=u;function u(s){return Array.isArray(s)&&s.length===2&&l(s[0])&&l(s[1])}},5716(a,o,i){"use strict";var l=i(6859);a.exports=u;function u(s){return s.cmp(new l(0))}},1369(a,o,i){"use strict";var l=i(5716);a.exports=u;function u(s){var f=s.length,c=s.words,p=0;if(f===1)p=c[0];else if(f===2)p=c[0]+c[1]*67108864;else for(var x=0;x20?52:p+32}},1533(a,o,i){"use strict";var l=i(6859);a.exports=u;function u(s){return s&&typeof s=="object"&&!!s.words}},2651(a,o,i){"use strict";var l=i(6859),u=i(2361);a.exports=s;function s(f){var c=u.exponent(f);return c<52?new l(f):new l(f*Math.pow(2,52-c)).ushln(c-52)}},869(a,o,i){"use strict";var l=i(2651),u=i(5716);a.exports=s;function s(f,c){var p=u(f),x=u(c);if(p===0)return[l(0),l(1)];if(x===0)return[l(0),l(0)];x<0&&(f=f.neg(),c=c.neg());var g=f.gcd(c);return g.cmpn(1)?[f.div(g),c.div(g)]:[f,c]}},6768(a,o,i){"use strict";var l=i(6859);a.exports=u;function u(s){return new l(s)}},6504(a,o,i){"use strict";var l=i(869);a.exports=u;function u(s,f){return l(s[0].mul(f[0]),s[1].mul(f[1]))}},7721(a,o,i){"use strict";var l=i(5716);a.exports=u;function u(s){return l(s[0])*l(s[1])}},5572(a,o,i){"use strict";var l=i(869);a.exports=u;function u(s,f){return l(s[0].mul(f[1]).sub(s[1].mul(f[0])),s[1].mul(f[1]))}},946(a,o,i){"use strict";var l=i(1369),u=i(4025);a.exports=s;function s(f){var c=f[0],p=f[1];if(c.cmpn(0)===0)return 0;var x=c.abs().divmod(p.abs()),g=x.div,w=l(g),M=x.mod,m=c.negative!==p.negative?-1:1;if(M.cmpn(0)===0)return m*w;if(w){var k=u(w)+4,S=l(M.ushln(k).divRound(p));return m*(w+S*Math.pow(2,-k))}else{var b=p.bitLength()-M.bitLength()+53,S=l(M.ushln(b).divRound(p));return b<1023?m*S*Math.pow(2,-b):(S*=Math.pow(2,-1023),m*S*Math.pow(2,1023-b))}}},2478(a){"use strict";function o(c,p,x,g,w){for(var M=w+1;g<=w;){var m=g+w>>>1,k=c[m],S=x!==void 0?x(k,p):k-p;S>=0?(M=m,w=m-1):g=m+1}return M}function i(c,p,x,g,w){for(var M=w+1;g<=w;){var m=g+w>>>1,k=c[m],S=x!==void 0?x(k,p):k-p;S>0?(M=m,w=m-1):g=m+1}return M}function l(c,p,x,g,w){for(var M=g-1;g<=w;){var m=g+w>>>1,k=c[m],S=x!==void 0?x(k,p):k-p;S<0?(M=m,g=m+1):w=m-1}return M}function u(c,p,x,g,w){for(var M=g-1;g<=w;){var m=g+w>>>1,k=c[m],S=x!==void 0?x(k,p):k-p;S<=0?(M=m,g=m+1):w=m-1}return M}function s(c,p,x,g,w){for(;g<=w;){var M=g+w>>>1,m=c[M],k=x!==void 0?x(m,p):m-p;if(k===0)return M;k<=0?g=M+1:w=M-1}return-1}function f(c,p,x,g,w,M){return typeof x=="function"?M(c,p,x,g===void 0?0:g|0,w===void 0?c.length-1:w|0):M(c,p,void 0,x===void 0?0:x|0,g===void 0?c.length-1:g|0)}a.exports={ge:function(c,p,x,g,w){return f(c,p,x,g,w,o)},gt:function(c,p,x,g,w){return f(c,p,x,g,w,i)},lt:function(c,p,x,g,w){return f(c,p,x,g,w,l)},le:function(c,p,x,g,w){return f(c,p,x,g,w,u)},eq:function(c,p,x,g,w){return f(c,p,x,g,w,s)}}},8828(a,o){"use strict";"use restrict";var i=32;o.INT_BITS=i,o.INT_MAX=2147483647,o.INT_MIN=-1<0)-(s<0)},o.abs=function(s){var f=s>>i-1;return(s^f)-f},o.min=function(s,f){return f^(s^f)&-(s65535)<<4,s>>>=f,c=(s>255)<<3,s>>>=c,f|=c,c=(s>15)<<2,s>>>=c,f|=c,c=(s>3)<<1,s>>>=c,f|=c,f|s>>1},o.log10=function(s){return s>=1e9?9:s>=1e8?8:s>=1e7?7:s>=1e6?6:s>=1e5?5:s>=1e4?4:s>=1e3?3:s>=100?2:s>=10?1:0},o.popCount=function(s){return s=s-(s>>>1&1431655765),s=(s&858993459)+(s>>>2&858993459),(s+(s>>>4)&252645135)*16843009>>>24};function l(s){var f=32;return s&=-s,s&&f--,s&65535&&(f-=16),s&16711935&&(f-=8),s&252645135&&(f-=4),s&858993459&&(f-=2),s&1431655765&&(f-=1),f}o.countTrailingZeros=l,o.nextPow2=function(s){return s+=s===0,--s,s|=s>>>1,s|=s>>>2,s|=s>>>4,s|=s>>>8,s|=s>>>16,s+1},o.prevPow2=function(s){return s|=s>>>1,s|=s>>>2,s|=s>>>4,s|=s>>>8,s|=s>>>16,s-(s>>>1)},o.parity=function(s){return s^=s>>>16,s^=s>>>8,s^=s>>>4,s&=15,27030>>>s&1};var u=new Array(256);(function(s){for(var f=0;f<256;++f){var c=f,p=f,x=7;for(c>>>=1;c;c>>>=1)p<<=1,p|=c&1,--x;s[f]=p<>>8&255]<<16|u[s>>>16&255]<<8|u[s>>>24&255]},o.interleave2=function(s,f){return s&=65535,s=(s|s<<8)&16711935,s=(s|s<<4)&252645135,s=(s|s<<2)&858993459,s=(s|s<<1)&1431655765,f&=65535,f=(f|f<<8)&16711935,f=(f|f<<4)&252645135,f=(f|f<<2)&858993459,f=(f|f<<1)&1431655765,s|f<<1},o.deinterleave2=function(s,f){return s=s>>>f&1431655765,s=(s|s>>>1)&858993459,s=(s|s>>>2)&252645135,s=(s|s>>>4)&16711935,s=(s|s>>>16)&65535,s<<16>>16},o.interleave3=function(s,f,c){return s&=1023,s=(s|s<<16)&4278190335,s=(s|s<<8)&251719695,s=(s|s<<4)&3272356035,s=(s|s<<2)&1227133513,f&=1023,f=(f|f<<16)&4278190335,f=(f|f<<8)&251719695,f=(f|f<<4)&3272356035,f=(f|f<<2)&1227133513,s|=f<<1,c&=1023,c=(c|c<<16)&4278190335,c=(c|c<<8)&251719695,c=(c|c<<4)&3272356035,c=(c|c<<2)&1227133513,s|c<<2},o.deinterleave3=function(s,f){return s=s>>>f&1227133513,s=(s|s>>>2)&3272356035,s=(s|s>>>4)&251719695,s=(s|s>>>8)&4278190335,s=(s|s>>>16)&1023,s<<22>>22},o.nextCombination=function(s){var f=s|s-1;return f+1|(~f&-~f)-1>>>l(s)+1}},6859(a,o,i){a=i.nmd(a),(function(l,u){"use strict";function s(P,L){if(!P)throw new Error(L||"Assertion failed")}function f(P,L){P.super_=L;var F=function(){};F.prototype=L.prototype,P.prototype=new F,P.prototype.constructor=P}function c(P,L,F){if(c.isBN(P))return P;this.negative=0,this.words=null,this.length=0,this.red=null,P!==null&&((L==="le"||L==="be")&&(F=L,L=10),this._init(P||0,L||10,F||"be"))}typeof l=="object"?l.exports=c:u.BN=c,c.BN=c,c.wordSize=26;var p;try{typeof window!="undefined"&&typeof window.Buffer!="undefined"?p=window.Buffer:p=i(7790).Buffer}catch(P){}c.isBN=function(L){return L instanceof c?!0:L!==null&&typeof L=="object"&&L.constructor.wordSize===c.wordSize&&Array.isArray(L.words)},c.max=function(L,F){return L.cmp(F)>0?L:F},c.min=function(L,F){return L.cmp(F)<0?L:F},c.prototype._init=function(L,F,B){if(typeof L=="number")return this._initNumber(L,F,B);if(typeof L=="object")return this._initArray(L,F,B);F==="hex"&&(F=16),s(F===(F|0)&&F>=2&&F<=36),L=L.toString().replace(/\s+/g,"");var O=0;L[0]==="-"&&(O++,this.negative=1),O=0;O-=3)K=L[O]|L[O-1]<<8|L[O-2]<<16,this.words[V]|=K<>>26-j&67108863,j+=24,j>=26&&(j-=26,V++);else if(B==="le")for(O=0,V=0;O>>26-j&67108863,j+=24,j>=26&&(j-=26,V++);return this.strip()};function x(P,L){var F=P.charCodeAt(L);return F>=65&&F<=70?F-55:F>=97&&F<=102?F-87:F-48&15}function g(P,L,F){var B=x(P,F);return F-1>=L&&(B|=x(P,F-1)<<4),B}c.prototype._parseHex=function(L,F,B){this.length=Math.ceil((L.length-F)/6),this.words=new Array(this.length);for(var O=0;O=F;O-=2)j=g(L,F,O)<=18?(V-=18,K+=1,this.words[K]|=j>>>26):V+=8;else{var G=L.length-F;for(O=G%2===0?F+1:F;O=18?(V-=18,K+=1,this.words[K]|=j>>>26):V+=8}this.strip()};function w(P,L,F,B){for(var O=0,V=Math.min(P.length,F),K=L;K=49?O+=j-49+10:j>=17?O+=j-17+10:O+=j}return O}c.prototype._parseBase=function(L,F,B){this.words=[0],this.length=1;for(var O=0,V=1;V<=67108863;V*=F)O++;O--,V=V/F|0;for(var K=L.length-B,j=K%O,G=Math.min(K,K-j)+B,q=0,J=B;J1&&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 M=["","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"],m=[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],k=[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(L,F){L=L||10,F=F|0||1;var B;if(L===16||L==="hex"){B="";for(var O=0,V=0,K=0;K>>24-O&16777215,O+=2,O>=26&&(O-=26,K--),V!==0||K!==this.length-1?B=M[6-G.length]+G+B:B=G+B}for(V!==0&&(B=V.toString(16)+B);B.length%F!==0;)B="0"+B;return this.negative!==0&&(B="-"+B),B}if(L===(L|0)&&L>=2&&L<=36){var q=m[L],J=k[L];B="";var te=this.clone();for(te.negative=0;!te.isZero();){var Z=te.modn(J).toString(L);te=te.idivn(J),te.isZero()?B=Z+B:B=M[q-Z.length]+Z+B}for(this.isZero()&&(B="0"+B);B.length%F!==0;)B="0"+B;return this.negative!==0&&(B="-"+B),B}s(!1,"Base should be between 2 and 36")},c.prototype.toNumber=function(){var L=this.words[0];return this.length===2?L+=this.words[1]*67108864:this.length===3&&this.words[2]===1?L+=4503599627370496+this.words[1]*67108864:this.length>2&&s(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-L:L},c.prototype.toJSON=function(){return this.toString(16)},c.prototype.toBuffer=function(L,F){return s(typeof p!="undefined"),this.toArrayLike(p,L,F)},c.prototype.toArray=function(L,F){return this.toArrayLike(Array,L,F)},c.prototype.toArrayLike=function(L,F,B){var O=this.byteLength(),V=B||Math.max(1,O);s(O<=V,"byte array longer than desired length"),s(V>0,"Requested array length <= 0"),this.strip();var K=F==="le",j=new L(V),G,q,J=this.clone();if(K){for(q=0;!J.isZero();q++)G=J.andln(255),J.iushrn(8),j[q]=G;for(;q=4096&&(B+=13,F>>>=13),F>=64&&(B+=7,F>>>=7),F>=8&&(B+=4,F>>>=4),F>=2&&(B+=2,F>>>=2),B+F},c.prototype._zeroBits=function(L){if(L===0)return 26;var F=L,B=0;return(F&8191)===0&&(B+=13,F>>>=13),(F&127)===0&&(B+=7,F>>>=7),(F&15)===0&&(B+=4,F>>>=4),(F&3)===0&&(B+=2,F>>>=2),(F&1)===0&&B++,B},c.prototype.bitLength=function(){var L=this.words[this.length-1],F=this._countBits(L);return(this.length-1)*26+F};function S(P){for(var L=new Array(P.bitLength()),F=0;F>>O}return L}c.prototype.zeroBits=function(){if(this.isZero())return 0;for(var L=0,F=0;FL.length?this.clone().ior(L):L.clone().ior(this)},c.prototype.uor=function(L){return this.length>L.length?this.clone().iuor(L):L.clone().iuor(this)},c.prototype.iuand=function(L){var F;this.length>L.length?F=L:F=this;for(var B=0;BL.length?this.clone().iand(L):L.clone().iand(this)},c.prototype.uand=function(L){return this.length>L.length?this.clone().iuand(L):L.clone().iuand(this)},c.prototype.iuxor=function(L){var F,B;this.length>L.length?(F=this,B=L):(F=L,B=this);for(var O=0;OL.length?this.clone().ixor(L):L.clone().ixor(this)},c.prototype.uxor=function(L){return this.length>L.length?this.clone().iuxor(L):L.clone().iuxor(this)},c.prototype.inotn=function(L){s(typeof L=="number"&&L>=0);var F=Math.ceil(L/26)|0,B=L%26;this._expand(F),B>0&&F--;for(var O=0;O0&&(this.words[O]=~this.words[O]&67108863>>26-B,O++);O=0);var B=L/26|0,O=L%26;return this._expand(B+1),F?this.words[B]=this.words[B]|1<L.length?(B=this,O=L):(B=L,O=this);for(var V=0,K=0;K>>26;for(;V!==0&&K>>26;if(this.length=B.length,V!==0)this.words[this.length]=V,this.length++;else if(B!==this)for(;KL.length?this.clone().iadd(L):L.clone().iadd(this)},c.prototype.isub=function(L){if(L.negative!==0){L.negative=0;var F=this.iadd(L);return L.negative=1,F._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(L),this.negative=1,this._normSign();var B=this.cmp(L);if(B===0)return this.negative=0,this.length=1,this.words[0]=0,this;var O,V;B>0?(O=this,V=L):(O=L,V=this);for(var K=0,j=0;j>26,this.words[j]=F&67108863;for(;K!==0&&j>26,this.words[j]=F&67108863;if(K===0&&j>>26,te=G&67108863,Z=Math.min(q,L.length-1),ie=Math.max(0,q-P.length+1);ie<=Z;ie++){var Q=q-ie|0;O=P.words[Q]|0,V=L.words[ie]|0,K=O*V+te,J+=K/67108864|0,te=K&67108863}F.words[q]=te|0,G=J|0}return G!==0?F.words[q]=G|0:F.length--,F.strip()}var T=function(L,F,B){var O=L.words,V=F.words,K=B.words,j=0,G,q,J,te=O[0]|0,Z=te&8191,ie=te>>>13,Q=O[1]|0,re=Q&8191,ue=Q>>>13,ee=O[2]|0,ae=ee&8191,ce=ee>>>13,Te=O[3]|0,ke=Te&8191,Se=Te>>>13,ge=O[4]|0,Le=ge&8191,Ce=ge>>>13,le=O[5]|0,Y=le&8191,$=le>>>13,pe=O[6]|0,oe=pe&8191,ve=pe>>>13,he=O[7]|0,me=he&8191,be=he>>>13,ye=O[8]|0,de=ye&8191,xe=ye>>>13,Ae=O[9]|0,Pe=Ae&8191,Fe=Ae>>>13,Ye=V[0]|0,qe=Ye&8191,Be=Ye>>>13,Oe=V[1]|0,We=Oe&8191,Xe=Oe>>>13,tr=V[2]|0,ir=tr&8191,je=tr>>>13,Ke=V[3]|0,Ee=Ke&8191,ze=Ke>>>13,Qe=V[4]|0,er=Qe&8191,Mr=Qe>>>13,Gr=V[5]|0,Tr=Gr&8191,Fr=Gr>>>13,jr=V[6]|0,Cr=jr&8191,Zr=jr>>>13,xt=V[7]|0,$r=xt&8191,ut=xt>>>13,Fn=V[8]|0,sr=Fn&8191,Nr=Fn>>>13,tt=V[9]|0,Ur=tt&8191,Yr=tt>>>13;B.negative=L.negative^F.negative,B.length=19,G=Math.imul(Z,qe),q=Math.imul(Z,Be),q=q+Math.imul(ie,qe)|0,J=Math.imul(ie,Be);var gt=(j+G|0)+((q&8191)<<13)|0;j=(J+(q>>>13)|0)+(gt>>>26)|0,gt&=67108863,G=Math.imul(re,qe),q=Math.imul(re,Be),q=q+Math.imul(ue,qe)|0,J=Math.imul(ue,Be),G=G+Math.imul(Z,We)|0,q=q+Math.imul(Z,Xe)|0,q=q+Math.imul(ie,We)|0,J=J+Math.imul(ie,Xe)|0;var it=(j+G|0)+((q&8191)<<13)|0;j=(J+(q>>>13)|0)+(it>>>26)|0,it&=67108863,G=Math.imul(ae,qe),q=Math.imul(ae,Be),q=q+Math.imul(ce,qe)|0,J=Math.imul(ce,Be),G=G+Math.imul(re,We)|0,q=q+Math.imul(re,Xe)|0,q=q+Math.imul(ue,We)|0,J=J+Math.imul(ue,Xe)|0,G=G+Math.imul(Z,ir)|0,q=q+Math.imul(Z,je)|0,q=q+Math.imul(ie,ir)|0,J=J+Math.imul(ie,je)|0;var Et=(j+G|0)+((q&8191)<<13)|0;j=(J+(q>>>13)|0)+(Et>>>26)|0,Et&=67108863,G=Math.imul(ke,qe),q=Math.imul(ke,Be),q=q+Math.imul(Se,qe)|0,J=Math.imul(Se,Be),G=G+Math.imul(ae,We)|0,q=q+Math.imul(ae,Xe)|0,q=q+Math.imul(ce,We)|0,J=J+Math.imul(ce,Xe)|0,G=G+Math.imul(re,ir)|0,q=q+Math.imul(re,je)|0,q=q+Math.imul(ue,ir)|0,J=J+Math.imul(ue,je)|0,G=G+Math.imul(Z,Ee)|0,q=q+Math.imul(Z,ze)|0,q=q+Math.imul(ie,Ee)|0,J=J+Math.imul(ie,ze)|0;var Kt=(j+G|0)+((q&8191)<<13)|0;j=(J+(q>>>13)|0)+(Kt>>>26)|0,Kt&=67108863,G=Math.imul(Le,qe),q=Math.imul(Le,Be),q=q+Math.imul(Ce,qe)|0,J=Math.imul(Ce,Be),G=G+Math.imul(ke,We)|0,q=q+Math.imul(ke,Xe)|0,q=q+Math.imul(Se,We)|0,J=J+Math.imul(Se,Xe)|0,G=G+Math.imul(ae,ir)|0,q=q+Math.imul(ae,je)|0,q=q+Math.imul(ce,ir)|0,J=J+Math.imul(ce,je)|0,G=G+Math.imul(re,Ee)|0,q=q+Math.imul(re,ze)|0,q=q+Math.imul(ue,Ee)|0,J=J+Math.imul(ue,ze)|0,G=G+Math.imul(Z,er)|0,q=q+Math.imul(Z,Mr)|0,q=q+Math.imul(ie,er)|0,J=J+Math.imul(ie,Mr)|0;var Ct=(j+G|0)+((q&8191)<<13)|0;j=(J+(q>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,G=Math.imul(Y,qe),q=Math.imul(Y,Be),q=q+Math.imul($,qe)|0,J=Math.imul($,Be),G=G+Math.imul(Le,We)|0,q=q+Math.imul(Le,Xe)|0,q=q+Math.imul(Ce,We)|0,J=J+Math.imul(Ce,Xe)|0,G=G+Math.imul(ke,ir)|0,q=q+Math.imul(ke,je)|0,q=q+Math.imul(Se,ir)|0,J=J+Math.imul(Se,je)|0,G=G+Math.imul(ae,Ee)|0,q=q+Math.imul(ae,ze)|0,q=q+Math.imul(ce,Ee)|0,J=J+Math.imul(ce,ze)|0,G=G+Math.imul(re,er)|0,q=q+Math.imul(re,Mr)|0,q=q+Math.imul(ue,er)|0,J=J+Math.imul(ue,Mr)|0,G=G+Math.imul(Z,Tr)|0,q=q+Math.imul(Z,Fr)|0,q=q+Math.imul(ie,Tr)|0,J=J+Math.imul(ie,Fr)|0;var yt=(j+G|0)+((q&8191)<<13)|0;j=(J+(q>>>13)|0)+(yt>>>26)|0,yt&=67108863,G=Math.imul(oe,qe),q=Math.imul(oe,Be),q=q+Math.imul(ve,qe)|0,J=Math.imul(ve,Be),G=G+Math.imul(Y,We)|0,q=q+Math.imul(Y,Xe)|0,q=q+Math.imul($,We)|0,J=J+Math.imul($,Xe)|0,G=G+Math.imul(Le,ir)|0,q=q+Math.imul(Le,je)|0,q=q+Math.imul(Ce,ir)|0,J=J+Math.imul(Ce,je)|0,G=G+Math.imul(ke,Ee)|0,q=q+Math.imul(ke,ze)|0,q=q+Math.imul(Se,Ee)|0,J=J+Math.imul(Se,ze)|0,G=G+Math.imul(ae,er)|0,q=q+Math.imul(ae,Mr)|0,q=q+Math.imul(ce,er)|0,J=J+Math.imul(ce,Mr)|0,G=G+Math.imul(re,Tr)|0,q=q+Math.imul(re,Fr)|0,q=q+Math.imul(ue,Tr)|0,J=J+Math.imul(ue,Fr)|0,G=G+Math.imul(Z,Cr)|0,q=q+Math.imul(Z,Zr)|0,q=q+Math.imul(ie,Cr)|0,J=J+Math.imul(ie,Zr)|0;var Lt=(j+G|0)+((q&8191)<<13)|0;j=(J+(q>>>13)|0)+(Lt>>>26)|0,Lt&=67108863,G=Math.imul(me,qe),q=Math.imul(me,Be),q=q+Math.imul(be,qe)|0,J=Math.imul(be,Be),G=G+Math.imul(oe,We)|0,q=q+Math.imul(oe,Xe)|0,q=q+Math.imul(ve,We)|0,J=J+Math.imul(ve,Xe)|0,G=G+Math.imul(Y,ir)|0,q=q+Math.imul(Y,je)|0,q=q+Math.imul($,ir)|0,J=J+Math.imul($,je)|0,G=G+Math.imul(Le,Ee)|0,q=q+Math.imul(Le,ze)|0,q=q+Math.imul(Ce,Ee)|0,J=J+Math.imul(Ce,ze)|0,G=G+Math.imul(ke,er)|0,q=q+Math.imul(ke,Mr)|0,q=q+Math.imul(Se,er)|0,J=J+Math.imul(Se,Mr)|0,G=G+Math.imul(ae,Tr)|0,q=q+Math.imul(ae,Fr)|0,q=q+Math.imul(ce,Tr)|0,J=J+Math.imul(ce,Fr)|0,G=G+Math.imul(re,Cr)|0,q=q+Math.imul(re,Zr)|0,q=q+Math.imul(ue,Cr)|0,J=J+Math.imul(ue,Zr)|0,G=G+Math.imul(Z,$r)|0,q=q+Math.imul(Z,ut)|0,q=q+Math.imul(ie,$r)|0,J=J+Math.imul(ie,ut)|0;var Dt=(j+G|0)+((q&8191)<<13)|0;j=(J+(q>>>13)|0)+(Dt>>>26)|0,Dt&=67108863,G=Math.imul(de,qe),q=Math.imul(de,Be),q=q+Math.imul(xe,qe)|0,J=Math.imul(xe,Be),G=G+Math.imul(me,We)|0,q=q+Math.imul(me,Xe)|0,q=q+Math.imul(be,We)|0,J=J+Math.imul(be,Xe)|0,G=G+Math.imul(oe,ir)|0,q=q+Math.imul(oe,je)|0,q=q+Math.imul(ve,ir)|0,J=J+Math.imul(ve,je)|0,G=G+Math.imul(Y,Ee)|0,q=q+Math.imul(Y,ze)|0,q=q+Math.imul($,Ee)|0,J=J+Math.imul($,ze)|0,G=G+Math.imul(Le,er)|0,q=q+Math.imul(Le,Mr)|0,q=q+Math.imul(Ce,er)|0,J=J+Math.imul(Ce,Mr)|0,G=G+Math.imul(ke,Tr)|0,q=q+Math.imul(ke,Fr)|0,q=q+Math.imul(Se,Tr)|0,J=J+Math.imul(Se,Fr)|0,G=G+Math.imul(ae,Cr)|0,q=q+Math.imul(ae,Zr)|0,q=q+Math.imul(ce,Cr)|0,J=J+Math.imul(ce,Zr)|0,G=G+Math.imul(re,$r)|0,q=q+Math.imul(re,ut)|0,q=q+Math.imul(ue,$r)|0,J=J+Math.imul(ue,ut)|0,G=G+Math.imul(Z,sr)|0,q=q+Math.imul(Z,Nr)|0,q=q+Math.imul(ie,sr)|0,J=J+Math.imul(ie,Nr)|0;var ba=(j+G|0)+((q&8191)<<13)|0;j=(J+(q>>>13)|0)+(ba>>>26)|0,ba&=67108863,G=Math.imul(Pe,qe),q=Math.imul(Pe,Be),q=q+Math.imul(Fe,qe)|0,J=Math.imul(Fe,Be),G=G+Math.imul(de,We)|0,q=q+Math.imul(de,Xe)|0,q=q+Math.imul(xe,We)|0,J=J+Math.imul(xe,Xe)|0,G=G+Math.imul(me,ir)|0,q=q+Math.imul(me,je)|0,q=q+Math.imul(be,ir)|0,J=J+Math.imul(be,je)|0,G=G+Math.imul(oe,Ee)|0,q=q+Math.imul(oe,ze)|0,q=q+Math.imul(ve,Ee)|0,J=J+Math.imul(ve,ze)|0,G=G+Math.imul(Y,er)|0,q=q+Math.imul(Y,Mr)|0,q=q+Math.imul($,er)|0,J=J+Math.imul($,Mr)|0,G=G+Math.imul(Le,Tr)|0,q=q+Math.imul(Le,Fr)|0,q=q+Math.imul(Ce,Tr)|0,J=J+Math.imul(Ce,Fr)|0,G=G+Math.imul(ke,Cr)|0,q=q+Math.imul(ke,Zr)|0,q=q+Math.imul(Se,Cr)|0,J=J+Math.imul(Se,Zr)|0,G=G+Math.imul(ae,$r)|0,q=q+Math.imul(ae,ut)|0,q=q+Math.imul(ce,$r)|0,J=J+Math.imul(ce,ut)|0,G=G+Math.imul(re,sr)|0,q=q+Math.imul(re,Nr)|0,q=q+Math.imul(ue,sr)|0,J=J+Math.imul(ue,Nr)|0,G=G+Math.imul(Z,Ur)|0,q=q+Math.imul(Z,Yr)|0,q=q+Math.imul(ie,Ur)|0,J=J+Math.imul(ie,Yr)|0;var jn=(j+G|0)+((q&8191)<<13)|0;j=(J+(q>>>13)|0)+(jn>>>26)|0,jn&=67108863,G=Math.imul(Pe,We),q=Math.imul(Pe,Xe),q=q+Math.imul(Fe,We)|0,J=Math.imul(Fe,Xe),G=G+Math.imul(de,ir)|0,q=q+Math.imul(de,je)|0,q=q+Math.imul(xe,ir)|0,J=J+Math.imul(xe,je)|0,G=G+Math.imul(me,Ee)|0,q=q+Math.imul(me,ze)|0,q=q+Math.imul(be,Ee)|0,J=J+Math.imul(be,ze)|0,G=G+Math.imul(oe,er)|0,q=q+Math.imul(oe,Mr)|0,q=q+Math.imul(ve,er)|0,J=J+Math.imul(ve,Mr)|0,G=G+Math.imul(Y,Tr)|0,q=q+Math.imul(Y,Fr)|0,q=q+Math.imul($,Tr)|0,J=J+Math.imul($,Fr)|0,G=G+Math.imul(Le,Cr)|0,q=q+Math.imul(Le,Zr)|0,q=q+Math.imul(Ce,Cr)|0,J=J+Math.imul(Ce,Zr)|0,G=G+Math.imul(ke,$r)|0,q=q+Math.imul(ke,ut)|0,q=q+Math.imul(Se,$r)|0,J=J+Math.imul(Se,ut)|0,G=G+Math.imul(ae,sr)|0,q=q+Math.imul(ae,Nr)|0,q=q+Math.imul(ce,sr)|0,J=J+Math.imul(ce,Nr)|0,G=G+Math.imul(re,Ur)|0,q=q+Math.imul(re,Yr)|0,q=q+Math.imul(ue,Ur)|0,J=J+Math.imul(ue,Yr)|0;var Wa=(j+G|0)+((q&8191)<<13)|0;j=(J+(q>>>13)|0)+(Wa>>>26)|0,Wa&=67108863,G=Math.imul(Pe,ir),q=Math.imul(Pe,je),q=q+Math.imul(Fe,ir)|0,J=Math.imul(Fe,je),G=G+Math.imul(de,Ee)|0,q=q+Math.imul(de,ze)|0,q=q+Math.imul(xe,Ee)|0,J=J+Math.imul(xe,ze)|0,G=G+Math.imul(me,er)|0,q=q+Math.imul(me,Mr)|0,q=q+Math.imul(be,er)|0,J=J+Math.imul(be,Mr)|0,G=G+Math.imul(oe,Tr)|0,q=q+Math.imul(oe,Fr)|0,q=q+Math.imul(ve,Tr)|0,J=J+Math.imul(ve,Fr)|0,G=G+Math.imul(Y,Cr)|0,q=q+Math.imul(Y,Zr)|0,q=q+Math.imul($,Cr)|0,J=J+Math.imul($,Zr)|0,G=G+Math.imul(Le,$r)|0,q=q+Math.imul(Le,ut)|0,q=q+Math.imul(Ce,$r)|0,J=J+Math.imul(Ce,ut)|0,G=G+Math.imul(ke,sr)|0,q=q+Math.imul(ke,Nr)|0,q=q+Math.imul(Se,sr)|0,J=J+Math.imul(Se,Nr)|0,G=G+Math.imul(ae,Ur)|0,q=q+Math.imul(ae,Yr)|0,q=q+Math.imul(ce,Ur)|0,J=J+Math.imul(ce,Yr)|0;var Yi=(j+G|0)+((q&8191)<<13)|0;j=(J+(q>>>13)|0)+(Yi>>>26)|0,Yi&=67108863,G=Math.imul(Pe,Ee),q=Math.imul(Pe,ze),q=q+Math.imul(Fe,Ee)|0,J=Math.imul(Fe,ze),G=G+Math.imul(de,er)|0,q=q+Math.imul(de,Mr)|0,q=q+Math.imul(xe,er)|0,J=J+Math.imul(xe,Mr)|0,G=G+Math.imul(me,Tr)|0,q=q+Math.imul(me,Fr)|0,q=q+Math.imul(be,Tr)|0,J=J+Math.imul(be,Fr)|0,G=G+Math.imul(oe,Cr)|0,q=q+Math.imul(oe,Zr)|0,q=q+Math.imul(ve,Cr)|0,J=J+Math.imul(ve,Zr)|0,G=G+Math.imul(Y,$r)|0,q=q+Math.imul(Y,ut)|0,q=q+Math.imul($,$r)|0,J=J+Math.imul($,ut)|0,G=G+Math.imul(Le,sr)|0,q=q+Math.imul(Le,Nr)|0,q=q+Math.imul(Ce,sr)|0,J=J+Math.imul(Ce,Nr)|0,G=G+Math.imul(ke,Ur)|0,q=q+Math.imul(ke,Yr)|0,q=q+Math.imul(Se,Ur)|0,J=J+Math.imul(Se,Yr)|0;var Ao=(j+G|0)+((q&8191)<<13)|0;j=(J+(q>>>13)|0)+(Ao>>>26)|0,Ao&=67108863,G=Math.imul(Pe,er),q=Math.imul(Pe,Mr),q=q+Math.imul(Fe,er)|0,J=Math.imul(Fe,Mr),G=G+Math.imul(de,Tr)|0,q=q+Math.imul(de,Fr)|0,q=q+Math.imul(xe,Tr)|0,J=J+Math.imul(xe,Fr)|0,G=G+Math.imul(me,Cr)|0,q=q+Math.imul(me,Zr)|0,q=q+Math.imul(be,Cr)|0,J=J+Math.imul(be,Zr)|0,G=G+Math.imul(oe,$r)|0,q=q+Math.imul(oe,ut)|0,q=q+Math.imul(ve,$r)|0,J=J+Math.imul(ve,ut)|0,G=G+Math.imul(Y,sr)|0,q=q+Math.imul(Y,Nr)|0,q=q+Math.imul($,sr)|0,J=J+Math.imul($,Nr)|0,G=G+Math.imul(Le,Ur)|0,q=q+Math.imul(Le,Yr)|0,q=q+Math.imul(Ce,Ur)|0,J=J+Math.imul(Ce,Yr)|0;var ko=(j+G|0)+((q&8191)<<13)|0;j=(J+(q>>>13)|0)+(ko>>>26)|0,ko&=67108863,G=Math.imul(Pe,Tr),q=Math.imul(Pe,Fr),q=q+Math.imul(Fe,Tr)|0,J=Math.imul(Fe,Fr),G=G+Math.imul(de,Cr)|0,q=q+Math.imul(de,Zr)|0,q=q+Math.imul(xe,Cr)|0,J=J+Math.imul(xe,Zr)|0,G=G+Math.imul(me,$r)|0,q=q+Math.imul(me,ut)|0,q=q+Math.imul(be,$r)|0,J=J+Math.imul(be,ut)|0,G=G+Math.imul(oe,sr)|0,q=q+Math.imul(oe,Nr)|0,q=q+Math.imul(ve,sr)|0,J=J+Math.imul(ve,Nr)|0,G=G+Math.imul(Y,Ur)|0,q=q+Math.imul(Y,Yr)|0,q=q+Math.imul($,Ur)|0,J=J+Math.imul($,Yr)|0;var So=(j+G|0)+((q&8191)<<13)|0;j=(J+(q>>>13)|0)+(So>>>26)|0,So&=67108863,G=Math.imul(Pe,Cr),q=Math.imul(Pe,Zr),q=q+Math.imul(Fe,Cr)|0,J=Math.imul(Fe,Zr),G=G+Math.imul(de,$r)|0,q=q+Math.imul(de,ut)|0,q=q+Math.imul(xe,$r)|0,J=J+Math.imul(xe,ut)|0,G=G+Math.imul(me,sr)|0,q=q+Math.imul(me,Nr)|0,q=q+Math.imul(be,sr)|0,J=J+Math.imul(be,Nr)|0,G=G+Math.imul(oe,Ur)|0,q=q+Math.imul(oe,Yr)|0,q=q+Math.imul(ve,Ur)|0,J=J+Math.imul(ve,Yr)|0;var yn=(j+G|0)+((q&8191)<<13)|0;j=(J+(q>>>13)|0)+(yn>>>26)|0,yn&=67108863,G=Math.imul(Pe,$r),q=Math.imul(Pe,ut),q=q+Math.imul(Fe,$r)|0,J=Math.imul(Fe,ut),G=G+Math.imul(de,sr)|0,q=q+Math.imul(de,Nr)|0,q=q+Math.imul(xe,sr)|0,J=J+Math.imul(xe,Nr)|0,G=G+Math.imul(me,Ur)|0,q=q+Math.imul(me,Yr)|0,q=q+Math.imul(be,Ur)|0,J=J+Math.imul(be,Yr)|0;var Qo=(j+G|0)+((q&8191)<<13)|0;j=(J+(q>>>13)|0)+(Qo>>>26)|0,Qo&=67108863,G=Math.imul(Pe,sr),q=Math.imul(Pe,Nr),q=q+Math.imul(Fe,sr)|0,J=Math.imul(Fe,Nr),G=G+Math.imul(de,Ur)|0,q=q+Math.imul(de,Yr)|0,q=q+Math.imul(xe,Ur)|0,J=J+Math.imul(xe,Yr)|0;var Xi=(j+G|0)+((q&8191)<<13)|0;j=(J+(q>>>13)|0)+(Xi>>>26)|0,Xi&=67108863,G=Math.imul(Pe,Ur),q=Math.imul(Pe,Yr),q=q+Math.imul(Fe,Ur)|0,J=Math.imul(Fe,Yr);var Wi=(j+G|0)+((q&8191)<<13)|0;return j=(J+(q>>>13)|0)+(Wi>>>26)|0,Wi&=67108863,K[0]=gt,K[1]=it,K[2]=Et,K[3]=Kt,K[4]=Ct,K[5]=yt,K[6]=Lt,K[7]=Dt,K[8]=ba,K[9]=jn,K[10]=Wa,K[11]=Yi,K[12]=Ao,K[13]=ko,K[14]=So,K[15]=yn,K[16]=Qo,K[17]=Xi,K[18]=Wi,j!==0&&(K[19]=j,B.length++),B};Math.imul||(T=b);function h(P,L,F){F.negative=L.negative^P.negative,F.length=P.length+L.length;for(var B=0,O=0,V=0;V>>26)|0,O+=K>>>26,K&=67108863}F.words[V]=j,B=K,K=O}return B!==0?F.words[V]=B:F.length--,F.strip()}function _(P,L,F){var B=new y;return B.mulp(P,L,F)}c.prototype.mulTo=function(L,F){var B,O=this.length+L.length;return this.length===10&&L.length===10?B=T(this,L,F):O<63?B=b(this,L,F):O<1024?B=h(this,L,F):B=_(this,L,F),B};function y(P,L){this.x=P,this.y=L}y.prototype.makeRBT=function(L){for(var F=new Array(L),B=c.prototype._countBits(L)-1,O=0;O>=1;return O},y.prototype.permute=function(L,F,B,O,V,K){for(var j=0;j>>1)V++;return 1<>>13,B[2*K+1]=V&8191,V=V>>>13;for(K=2*F;K>=26,F+=O/67108864|0,F+=V>>>26,this.words[B]=V&67108863}return F!==0&&(this.words[B]=F,this.length++),L===0&&(this.length=1,this._normSign()),this},c.prototype.muln=function(L){return this.clone().imuln(L)},c.prototype.sqr=function(){return this.mul(this)},c.prototype.isqr=function(){return this.imul(this.clone())},c.prototype.pow=function(L){var F=S(L);if(F.length===0)return new c(1);for(var B=this,O=0;O=0);var F=L%26,B=(L-F)/26,O=67108863>>>26-F<<26-F,V;if(F!==0){var K=0;for(V=0;V>>26-F}K&&(this.words[V]=K,this.length++)}if(B!==0){for(V=this.length-1;V>=0;V--)this.words[V+B]=this.words[V];for(V=0;V=0);var O;F?O=(F-F%26)/26:O=0;var V=L%26,K=Math.min((L-V)/26,this.length),j=67108863^67108863>>>V<K)for(this.length-=K,q=0;q=0&&(J!==0||q>=O);q--){var te=this.words[q]|0;this.words[q]=J<<26-V|te>>>V,J=te&j}return G&&J!==0&&(G.words[G.length++]=J),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},c.prototype.ishrn=function(L,F,B){return s(this.negative===0),this.iushrn(L,F,B)},c.prototype.shln=function(L){return this.clone().ishln(L)},c.prototype.ushln=function(L){return this.clone().iushln(L)},c.prototype.shrn=function(L){return this.clone().ishrn(L)},c.prototype.ushrn=function(L){return this.clone().iushrn(L)},c.prototype.testn=function(L){s(typeof L=="number"&&L>=0);var F=L%26,B=(L-F)/26,O=1<=0);var F=L%26,B=(L-F)/26;if(s(this.negative===0,"imaskn works only with positive numbers"),this.length<=B)return this;if(F!==0&&B++,this.length=Math.min(B,this.length),F!==0){var O=67108863^67108863>>>F<=67108864;F++)this.words[F]-=67108864,F===this.length-1?this.words[F+1]=1:this.words[F+1]++;return this.length=Math.max(this.length,F+1),this},c.prototype.isubn=function(L){if(s(typeof L=="number"),s(L<67108864),L<0)return this.iaddn(-L);if(this.negative!==0)return this.negative=0,this.iaddn(L),this.negative=1,this;if(this.words[0]-=L,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var F=0;F>26)-(G/67108864|0),this.words[V+B]=K&67108863}for(;V>26,this.words[V+B]=K&67108863;if(j===0)return this.strip();for(s(j===-1),j=0,V=0;V>26,this.words[V]=K&67108863;return this.negative=1,this.strip()},c.prototype._wordDiv=function(L,F){var B=this.length-L.length,O=this.clone(),V=L,K=V.words[V.length-1]|0,j=this._countBits(K);B=26-j,B!==0&&(V=V.ushln(B),O.iushln(B),K=V.words[V.length-1]|0);var G=O.length-V.length,q;if(F!=="mod"){q=new c(null),q.length=G+1,q.words=new Array(q.length);for(var J=0;J=0;Z--){var ie=(O.words[V.length+Z]|0)*67108864+(O.words[V.length+Z-1]|0);for(ie=Math.min(ie/K|0,67108863),O._ishlnsubmul(V,ie,Z);O.negative!==0;)ie--,O.negative=0,O._ishlnsubmul(V,1,Z),O.isZero()||(O.negative^=1);q&&(q.words[Z]=ie)}return q&&q.strip(),O.strip(),F!=="div"&&B!==0&&O.iushrn(B),{div:q||null,mod:O}},c.prototype.divmod=function(L,F,B){if(s(!L.isZero()),this.isZero())return{div:new c(0),mod:new c(0)};var O,V,K;return this.negative!==0&&L.negative===0?(K=this.neg().divmod(L,F),F!=="mod"&&(O=K.div.neg()),F!=="div"&&(V=K.mod.neg(),B&&V.negative!==0&&V.iadd(L)),{div:O,mod:V}):this.negative===0&&L.negative!==0?(K=this.divmod(L.neg(),F),F!=="mod"&&(O=K.div.neg()),{div:O,mod:K.mod}):(this.negative&L.negative)!==0?(K=this.neg().divmod(L.neg(),F),F!=="div"&&(V=K.mod.neg(),B&&V.negative!==0&&V.isub(L)),{div:K.div,mod:V}):L.length>this.length||this.cmp(L)<0?{div:new c(0),mod:this}:L.length===1?F==="div"?{div:this.divn(L.words[0]),mod:null}:F==="mod"?{div:null,mod:new c(this.modn(L.words[0]))}:{div:this.divn(L.words[0]),mod:new c(this.modn(L.words[0]))}:this._wordDiv(L,F)},c.prototype.div=function(L){return this.divmod(L,"div",!1).div},c.prototype.mod=function(L){return this.divmod(L,"mod",!1).mod},c.prototype.umod=function(L){return this.divmod(L,"mod",!0).mod},c.prototype.divRound=function(L){var F=this.divmod(L);if(F.mod.isZero())return F.div;var B=F.mod.abs(),O=L.abs().iushrn(1),V=L.words[0]&1,K=B.cmp(O);if(K<0||V===1&&K===0)return F.div;var j=new c(1);return j.negative=this.negative^L.negative,F.div.iadd(j)},c.prototype.modn=function(L){s(L<=67108863);for(var F=(1<<26)%L,B=0,O=this.length-1;O>=0;O--)B=(F*B+(this.words[O]|0))%L;return B},c.prototype.idivn=function(L){s(L<=67108863);for(var F=0,B=this.length-1;B>=0;B--){var O=(this.words[B]|0)+F*67108864;this.words[B]=O/L|0,F=O%L}return this.strip()},c.prototype.divn=function(L){return this.clone().idivn(L)},c.prototype.egcd=function(L){s(L.negative===0),s(!L.isZero());var F=this,B=L.clone();F.negative!==0?F=F.umod(L):F=F.clone();for(var O=new c(1),V=new c(0),K=new c(0),j=new c(1),G=0;F.isEven()&&B.isEven();)F.iushrn(1),B.iushrn(1),++G;for(var q=B.clone(),J=F.clone();!F.isZero();){for(var te=0,Z=1;(F.words[0]&Z)===0&&te<26;++te,Z<<=1);if(te>0)for(F.iushrn(te);te-- >0;)(O.isOdd()||V.isOdd())&&(O.iadd(q),V.isub(J)),O.iushrn(1),V.iushrn(1);for(var ie=0,Q=1;(B.words[0]&Q)===0&&ie<26;++ie,Q<<=1);if(ie>0)for(B.iushrn(ie);ie-- >0;)(K.isOdd()||j.isOdd())&&(K.iadd(q),j.isub(J)),K.iushrn(1),j.iushrn(1);F.cmp(B)>=0?(F.isub(B),O.isub(K),V.isub(j)):(B.isub(F),K.isub(O),j.isub(V))}return{a:K,b:j,gcd:B.iushln(G)}},c.prototype._invmp=function(L){s(L.negative===0),s(!L.isZero());var F=this,B=L.clone();F.negative!==0?F=F.umod(L):F=F.clone();for(var O=new c(1),V=new c(0),K=B.clone();F.cmpn(1)>0&&B.cmpn(1)>0;){for(var j=0,G=1;(F.words[0]&G)===0&&j<26;++j,G<<=1);if(j>0)for(F.iushrn(j);j-- >0;)O.isOdd()&&O.iadd(K),O.iushrn(1);for(var q=0,J=1;(B.words[0]&J)===0&&q<26;++q,J<<=1);if(q>0)for(B.iushrn(q);q-- >0;)V.isOdd()&&V.iadd(K),V.iushrn(1);F.cmp(B)>=0?(F.isub(B),O.isub(V)):(B.isub(F),V.isub(O))}var te;return F.cmpn(1)===0?te=O:te=V,te.cmpn(0)<0&&te.iadd(L),te},c.prototype.gcd=function(L){if(this.isZero())return L.abs();if(L.isZero())return this.abs();var F=this.clone(),B=L.clone();F.negative=0,B.negative=0;for(var O=0;F.isEven()&&B.isEven();O++)F.iushrn(1),B.iushrn(1);do{for(;F.isEven();)F.iushrn(1);for(;B.isEven();)B.iushrn(1);var V=F.cmp(B);if(V<0){var K=F;F=B,B=K}else if(V===0||B.cmpn(1)===0)break;F.isub(B)}while(!0);return B.iushln(O)},c.prototype.invm=function(L){return this.egcd(L).a.umod(L)},c.prototype.isEven=function(){return(this.words[0]&1)===0},c.prototype.isOdd=function(){return(this.words[0]&1)===1},c.prototype.andln=function(L){return this.words[0]&L},c.prototype.bincn=function(L){s(typeof L=="number");var F=L%26,B=(L-F)/26,O=1<>>26,j&=67108863,this.words[K]=j}return V!==0&&(this.words[K]=V,this.length++),this},c.prototype.isZero=function(){return this.length===1&&this.words[0]===0},c.prototype.cmpn=function(L){var F=L<0;if(this.negative!==0&&!F)return-1;if(this.negative===0&&F)return 1;this.strip();var B;if(this.length>1)B=1;else{F&&(L=-L),s(L<=67108863,"Number is too big");var O=this.words[0]|0;B=O===L?0:OL.length)return 1;if(this.length=0;B--){var O=this.words[B]|0,V=L.words[B]|0;if(O!==V){OV&&(F=1);break}}return F},c.prototype.gtn=function(L){return this.cmpn(L)===1},c.prototype.gt=function(L){return this.cmp(L)===1},c.prototype.gten=function(L){return this.cmpn(L)>=0},c.prototype.gte=function(L){return this.cmp(L)>=0},c.prototype.ltn=function(L){return this.cmpn(L)===-1},c.prototype.lt=function(L){return this.cmp(L)===-1},c.prototype.lten=function(L){return this.cmpn(L)<=0},c.prototype.lte=function(L){return this.cmp(L)<=0},c.prototype.eqn=function(L){return this.cmpn(L)===0},c.prototype.eq=function(L){return this.cmp(L)===0},c.red=function(L){return new z(L)},c.prototype.toRed=function(L){return s(!this.red,"Already a number in reduction context"),s(this.negative===0,"red works only with positives"),L.convertTo(this)._forceRed(L)},c.prototype.fromRed=function(){return s(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},c.prototype._forceRed=function(L){return this.red=L,this},c.prototype.forceRed=function(L){return s(!this.red,"Already a number in reduction context"),this._forceRed(L)},c.prototype.redAdd=function(L){return s(this.red,"redAdd works only with red numbers"),this.red.add(this,L)},c.prototype.redIAdd=function(L){return s(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,L)},c.prototype.redSub=function(L){return s(this.red,"redSub works only with red numbers"),this.red.sub(this,L)},c.prototype.redISub=function(L){return s(this.red,"redISub works only with red numbers"),this.red.isub(this,L)},c.prototype.redShl=function(L){return s(this.red,"redShl works only with red numbers"),this.red.shl(this,L)},c.prototype.redMul=function(L){return s(this.red,"redMul works only with red numbers"),this.red._verify2(this,L),this.red.mul(this,L)},c.prototype.redIMul=function(L){return s(this.red,"redMul works only with red numbers"),this.red._verify2(this,L),this.red.imul(this,L)},c.prototype.redSqr=function(){return s(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},c.prototype.redISqr=function(){return s(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},c.prototype.redSqrt=function(){return s(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},c.prototype.redInvm=function(){return s(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},c.prototype.redNeg=function(){return s(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},c.prototype.redPow=function(L){return s(this.red&&!L.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,L)};var v={k256:null,p224:null,p192:null,p25519:null};function A(P,L){this.name=P,this.p=new c(L,16),this.n=this.p.bitLength(),this.k=new c(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}A.prototype._tmp=function(){var L=new c(null);return L.words=new Array(Math.ceil(this.n/13)),L},A.prototype.ireduce=function(L){var F=L,B;do this.split(F,this.tmp),F=this.imulK(F),F=F.iadd(this.tmp),B=F.bitLength();while(B>this.n);var O=B0?F.isub(this.p):F.strip!==void 0?F.strip():F._strip(),F},A.prototype.split=function(L,F){L.iushrn(this.n,0,F)},A.prototype.imulK=function(L){return L.imul(this.k)};function d(){A.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}f(d,A),d.prototype.split=function(L,F){for(var B=4194303,O=Math.min(L.length,9),V=0;V>>22,K=j}K>>>=22,L.words[V-10]=K,K===0&&L.length>10?L.length-=10:L.length-=9},d.prototype.imulK=function(L){L.words[L.length]=0,L.words[L.length+1]=0,L.length+=2;for(var F=0,B=0;B>>=26,L.words[B]=V,F=O}return F!==0&&(L.words[L.length++]=F),L},c._prime=function(L){if(v[L])return v[L];var F;if(L==="k256")F=new d;else if(L==="p224")F=new D;else if(L==="p192")F=new E;else if(L==="p25519")F=new R;else throw new Error("Unknown prime "+L);return v[L]=F,F};function z(P){if(typeof P=="string"){var L=c._prime(P);this.m=L.p,this.prime=L}else s(P.gtn(1),"modulus must be greater than 1"),this.m=P,this.prime=null}z.prototype._verify1=function(L){s(L.negative===0,"red works only with positives"),s(L.red,"red works only with red numbers")},z.prototype._verify2=function(L,F){s((L.negative|F.negative)===0,"red works only with positives"),s(L.red&&L.red===F.red,"red works only with red numbers")},z.prototype.imod=function(L){return this.prime?this.prime.ireduce(L)._forceRed(this):L.umod(this.m)._forceRed(this)},z.prototype.neg=function(L){return L.isZero()?L.clone():this.m.sub(L)._forceRed(this)},z.prototype.add=function(L,F){this._verify2(L,F);var B=L.add(F);return B.cmp(this.m)>=0&&B.isub(this.m),B._forceRed(this)},z.prototype.iadd=function(L,F){this._verify2(L,F);var B=L.iadd(F);return B.cmp(this.m)>=0&&B.isub(this.m),B},z.prototype.sub=function(L,F){this._verify2(L,F);var B=L.sub(F);return B.cmpn(0)<0&&B.iadd(this.m),B._forceRed(this)},z.prototype.isub=function(L,F){this._verify2(L,F);var B=L.isub(F);return B.cmpn(0)<0&&B.iadd(this.m),B},z.prototype.shl=function(L,F){return this._verify1(L),this.imod(L.ushln(F))},z.prototype.imul=function(L,F){return this._verify2(L,F),this.imod(L.imul(F))},z.prototype.mul=function(L,F){return this._verify2(L,F),this.imod(L.mul(F))},z.prototype.isqr=function(L){return this.imul(L,L.clone())},z.prototype.sqr=function(L){return this.mul(L,L)},z.prototype.sqrt=function(L){if(L.isZero())return L.clone();var F=this.m.andln(3);if(s(F%2===1),F===3){var B=this.m.add(new c(1)).iushrn(2);return this.pow(L,B)}for(var O=this.m.subn(1),V=0;!O.isZero()&&O.andln(1)===0;)V++,O.iushrn(1);s(!O.isZero());var K=new c(1).toRed(this),j=K.redNeg(),G=this.m.subn(1).iushrn(1),q=this.m.bitLength();for(q=new c(2*q*q).toRed(this);this.pow(q,G).cmp(j)!==0;)q.redIAdd(j);for(var J=this.pow(q,O),te=this.pow(L,O.addn(1).iushrn(1)),Z=this.pow(L,O),ie=V;Z.cmp(K)!==0;){for(var Q=Z,re=0;Q.cmp(K)!==0;re++)Q=Q.redSqr();s(re=0;V--){for(var J=F.words[V],te=q-1;te>=0;te--){var Z=J>>te&1;if(K!==O[0]&&(K=this.sqr(K)),Z===0&&j===0){G=0;continue}j<<=1,j|=Z,G++,!(G!==B&&(V!==0||te!==0))&&(K=this.mul(K,O[j]),G=0,j=0)}q=26}return K},z.prototype.convertTo=function(L){var F=L.umod(this.m);return F===L?F.clone():F},z.prototype.convertFrom=function(L){var F=L.clone();return F.red=null,F},c.mont=function(L){return new I(L)};function I(P){z.call(this,P),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(I,z),I.prototype.convertTo=function(L){return this.imod(L.ushln(this.shift))},I.prototype.convertFrom=function(L){var F=this.imod(L.mul(this.rinv));return F.red=null,F},I.prototype.imul=function(L,F){if(L.isZero()||F.isZero())return L.words[0]=0,L.length=1,L;var B=L.imul(F),O=B.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),V=B.isub(O).iushrn(this.shift),K=V;return V.cmp(this.m)>=0?K=V.isub(this.m):V.cmpn(0)<0&&(K=V.iadd(this.m)),K._forceRed(this)},I.prototype.mul=function(L,F){if(L.isZero()||F.isZero())return new c(0)._forceRed(this);var B=L.mul(F),O=B.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),V=B.isub(O).iushrn(this.shift),K=V;return V.cmp(this.m)>=0?K=V.isub(this.m):V.cmpn(0)<0&&(K=V.iadd(this.m)),K._forceRed(this)},I.prototype.invm=function(L){var F=this.imod(L._invmp(this.m).mul(this.r2));return F._forceRed(this)}})(a,this)},6204(a){"use strict";a.exports=o;function o(i){var l,u,s,f=i.length,c=0;for(l=0;l>>1;if(!(y<=0)){var v,A=l.mallocDouble(2*y*h),d=l.mallocInt32(h);if(h=c(k,y,A,d),h>0){if(y===1&&T)u.init(h),v=u.sweepComplete(y,b,0,h,A,d,0,h,A,d);else{var D=l.mallocDouble(2*y*_),E=l.mallocInt32(_);_=c(S,y,D,E),_>0&&(u.init(h+_),y===1?v=u.sweepBipartite(y,b,0,h,A,d,0,_,D,E):v=s(y,b,T,h,A,d,_,D,E),l.free(D),l.free(E))}l.free(A),l.free(d)}return v}}}var x;function g(k,S){x.push([k,S])}function w(k){return x=[],p(k,k,g,!0),x}function M(k,S){return x=[],p(k,S,g,!1),x}function m(k,S,b){switch(arguments.length){case 1:return w(k);case 2:return typeof S=="function"?p(k,k,S,!0):M(k,S);case 3:return p(k,S,b,!1);default:throw new Error("box-intersect: Invalid arguments")}}},2455(a,o){"use strict";function i(){function s(p,x,g,w,M,m,k,S,b,T,h){for(var _=2*p,y=w,v=_*w;yb-S?s(p,x,g,w,M,m,k,S,b,T,h):f(p,x,g,w,M,m,k,S,b,T,h)}return c}function l(){function s(g,w,M,m,k,S,b,T,h,_,y){for(var v=2*g,A=m,d=v*m;A_-h?m?s(g,w,M,k,S,b,T,h,_,y,v):f(g,w,M,k,S,b,T,h,_,y,v):m?c(g,w,M,k,S,b,T,h,_,y,v):p(g,w,M,k,S,b,T,h,_,y,v)}return x}function u(s){return s?i():l()}o.partial=u(!1),o.full=u(!0)},7150(a,o,i){"use strict";a.exports=P;var l=i(1888),u=i(8828),s=i(2455),f=s.partial,c=s.full,p=i(855),x=i(3545),g=i(8105),w=128,M=1<<22,m=1<<22,k=g("!(lo>=p0)&&!(p1>=hi)"),S=g("lo===p0"),b=g("lo0;){J-=1;var ie=J*y,Q=d[ie],re=d[ie+1],ue=d[ie+2],ee=d[ie+3],ae=d[ie+4],ce=d[ie+5],Te=J*v,ke=D[Te],Se=D[Te+1],ge=ce&1,Le=!!(ce&16),Ce=V,le=K,Y=G,$=q;if(ge&&(Ce=G,le=q,Y=V,$=K),!(ce&2&&(ue=b(L,Q,re,ue,Ce,le,Se),re>=ue))&&!(ce&4&&(re=T(L,Q,re,ue,Ce,le,ke),re>=ue))){var pe=ue-re,oe=ae-ee;if(Le){if(L*pe*(pe+oe)g&&M[_+x]>T;--h,_-=k){for(var y=_,v=_+k,A=0;A>>1,T=2*p,h=b,_=M[T*b+x];k=D?(h=d,_=D):A>=R?(h=v,_=A):(h=E,_=R):D>=R?(h=d,_=D):R>=A?(h=v,_=A):(h=E,_=R);for(var P=T*(S-1),L=T*h,z=0;z=p0)&&!(p1>=hi)":x};function i(g){return o[g]}function l(g,w,M,m,k,S,b){for(var T=2*g,h=T*M,_=h,y=M,v=w,A=g+w,d=M;m>d;++d,h+=T){var D=k[h+v];if(D===b)if(y===d)y+=1,_+=T;else{for(var E=0;T>E;++E){var R=k[h+E];k[h+E]=k[_],k[_++]=R}var z=S[d];S[d]=S[y],S[y++]=z}}return y}function u(g,w,M,m,k,S,b){for(var T=2*g,h=T*M,_=h,y=M,v=w,A=g+w,d=M;m>d;++d,h+=T){var D=k[h+v];if(DE;++E){var R=k[h+E];k[h+E]=k[_],k[_++]=R}var z=S[d];S[d]=S[y],S[y++]=z}}return y}function s(g,w,M,m,k,S,b){for(var T=2*g,h=T*M,_=h,y=M,v=w,A=g+w,d=M;m>d;++d,h+=T){var D=k[h+A];if(D<=b)if(y===d)y+=1,_+=T;else{for(var E=0;T>E;++E){var R=k[h+E];k[h+E]=k[_],k[_++]=R}var z=S[d];S[d]=S[y],S[y++]=z}}return y}function f(g,w,M,m,k,S,b){for(var T=2*g,h=T*M,_=h,y=M,v=w,A=g+w,d=M;m>d;++d,h+=T){var D=k[h+A];if(D<=b)if(y===d)y+=1,_+=T;else{for(var E=0;T>E;++E){var R=k[h+E];k[h+E]=k[_],k[_++]=R}var z=S[d];S[d]=S[y],S[y++]=z}}return y}function c(g,w,M,m,k,S,b){for(var T=2*g,h=T*M,_=h,y=M,v=w,A=g+w,d=M;m>d;++d,h+=T){var D=k[h+v],E=k[h+A];if(D<=b&&b<=E)if(y===d)y+=1,_+=T;else{for(var R=0;T>R;++R){var z=k[h+R];k[h+R]=k[_],k[_++]=z}var I=S[d];S[d]=S[y],S[y++]=I}}return y}function p(g,w,M,m,k,S,b){for(var T=2*g,h=T*M,_=h,y=M,v=w,A=g+w,d=M;m>d;++d,h+=T){var D=k[h+v],E=k[h+A];if(DR;++R){var z=k[h+R];k[h+R]=k[_],k[_++]=z}var I=S[d];S[d]=S[y],S[y++]=I}}return y}function x(g,w,M,m,k,S,b,T){for(var h=2*g,_=h*M,y=_,v=M,A=w,d=g+w,D=M;m>D;++D,_+=h){var E=k[_+A],R=k[_+d];if(!(E>=b)&&!(T>=R))if(v===D)v+=1,y+=h;else{for(var z=0;h>z;++z){var I=k[_+z];k[_+z]=k[y],k[y++]=I}var P=S[D];S[D]=S[v],S[v++]=P}}return v}},4192(a){"use strict";a.exports=i;var o=32;function i(w,M){M<=4*o?l(0,M-1,w):g(0,M-1,w)}function l(w,M,m){for(var k=2*(w+1),S=w+1;S<=M;++S){for(var b=m[k++],T=m[k++],h=S,_=k-2;h-- >w;){var y=m[_-2],v=m[_-1];if(ym[M+1]:!0}function x(w,M,m,k){w*=2;var S=k[w];return S>1,h=T-k,_=T+k,y=S,v=h,A=T,d=_,D=b,E=w+1,R=M-1,z=0;p(y,v,m)&&(z=y,y=v,v=z),p(d,D,m)&&(z=d,d=D,D=z),p(y,A,m)&&(z=y,y=A,A=z),p(v,A,m)&&(z=v,v=A,A=z),p(y,d,m)&&(z=y,y=d,d=z),p(A,d,m)&&(z=A,A=d,d=z),p(v,D,m)&&(z=v,v=D,D=z),p(v,A,m)&&(z=v,v=A,A=z),p(d,D,m)&&(z=d,d=D,D=z);for(var I=m[2*v],P=m[2*v+1],L=m[2*d],F=m[2*d+1],B=2*y,O=2*A,V=2*D,K=2*S,j=2*T,G=2*b,q=0;q<2;++q){var J=m[B+q],te=m[O+q],Z=m[V+q];m[K+q]=J,m[j+q]=te,m[G+q]=Z}s(h,w,m),s(_,M,m);for(var ie=E;ie<=R;++ie)if(x(ie,I,P,m))ie!==E&&u(ie,E,m),++E;else if(!x(ie,L,F,m))for(;;)if(x(R,L,F,m)){x(R,I,P,m)?(f(ie,E,R,m),++E,--R):(u(ie,R,m),--R);break}else{if(--R>>1;s(k,te);for(var Z=0,ie=0,j=0;j=f)Q=Q-f|0,b(g,w,ie--,Q);else if(Q>=0)b(p,x,Z--,Q);else if(Q<=-f){Q=-Q-f|0;for(var re=0;re>>1;s(k,te);for(var Z=0,ie=0,Q=0,j=0;j>1===k[2*j+3]>>1&&(ue=2,j+=1),re<0){for(var ee=-(re>>1)-1,ae=0;ae>1)-1;ue===0?b(p,x,Z--,ee):ue===1?b(g,w,ie--,ee):ue===2&&b(M,m,Q--,ee)}}}function y(A,d,D,E,R,z,I,P,L,F,B,O){var V=0,K=2*A,j=d,G=d+A,q=1,J=1;E?J=f:q=f;for(var te=R;te>>1;s(k,re);for(var ue=0,te=0;te=f?(ae=!E,Z-=f):(ae=!!E,Z-=1),ae)T(p,x,ue++,Z);else{var ce=O[Z],Te=K*Z,ke=B[Te+d+1],Se=B[Te+d+1+A];e:for(var ge=0;ge>>1;s(k,Z);for(var ie=0,G=0;G=f)p[ie++]=q-f;else{q-=1;var re=B[q],ue=V*q,ee=F[ue+d+1],ae=F[ue+d+1+A];e:for(var ce=0;ce=0;--ce)if(p[ce]===q){for(var ge=ce+1;gec)throw new RangeError('The value "'+le+'" is invalid for option "size"');var Y=new Uint8Array(le);return Object.setPrototypeOf(Y,g.prototype),Y}function g(le,Y,$){if(typeof le=="number"){if(typeof Y=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return k(le)}return w(le,Y,$)}g.poolSize=8192;function w(le,Y,$){if(typeof le=="string")return S(le,Y);if(ArrayBuffer.isView(le))return T(le);if(le==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof le);if(ge(le,ArrayBuffer)||le&&ge(le.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(ge(le,SharedArrayBuffer)||le&&ge(le.buffer,SharedArrayBuffer)))return h(le,Y,$);if(typeof le=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var pe=le.valueOf&&le.valueOf();if(pe!=null&&pe!==le)return g.from(pe,Y,$);var oe=_(le);if(oe)return oe;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof le[Symbol.toPrimitive]=="function")return g.from(le[Symbol.toPrimitive]("string"),Y,$);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof le)}g.from=function(le,Y,$){return w(le,Y,$)},Object.setPrototypeOf(g.prototype,Uint8Array.prototype),Object.setPrototypeOf(g,Uint8Array);function M(le){if(typeof le!="number")throw new TypeError('"size" argument must be of type number');if(le<0)throw new RangeError('The value "'+le+'" is invalid for option "size"')}function m(le,Y,$){return M(le),le<=0?x(le):Y!==void 0?typeof $=="string"?x(le).fill(Y,$):x(le).fill(Y):x(le)}g.alloc=function(le,Y,$){return m(le,Y,$)};function k(le){return M(le),x(le<0?0:y(le)|0)}g.allocUnsafe=function(le){return k(le)},g.allocUnsafeSlow=function(le){return k(le)};function S(le,Y){if((typeof Y!="string"||Y==="")&&(Y="utf8"),!g.isEncoding(Y))throw new TypeError("Unknown encoding: "+Y);var $=A(le,Y)|0,pe=x($),oe=pe.write(le,Y);return oe!==$&&(pe=pe.slice(0,oe)),pe}function b(le){for(var Y=le.length<0?0:y(le.length)|0,$=x(Y),pe=0;pe=c)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+c.toString(16)+" bytes");return le|0}function v(le){return+le!=le&&(le=0),g.alloc(+le)}g.isBuffer=function(Y){return Y!=null&&Y._isBuffer===!0&&Y!==g.prototype},g.compare=function(Y,$){if(ge(Y,Uint8Array)&&(Y=g.from(Y,Y.offset,Y.byteLength)),ge($,Uint8Array)&&($=g.from($,$.offset,$.byteLength)),!g.isBuffer(Y)||!g.isBuffer($))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(Y===$)return 0;for(var pe=Y.length,oe=$.length,ve=0,he=Math.min(pe,oe);veoe.length?g.from(he).copy(oe,ve):Uint8Array.prototype.set.call(oe,he,ve);else if(g.isBuffer(he))he.copy(oe,ve);else throw new TypeError('"list" argument must be an Array of Buffers');ve+=he.length}return oe};function A(le,Y){if(g.isBuffer(le))return le.length;if(ArrayBuffer.isView(le)||ge(le,ArrayBuffer))return le.byteLength;if(typeof le!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof le);var $=le.length,pe=arguments.length>2&&arguments[2]===!0;if(!pe&&$===0)return 0;for(var oe=!1;;)switch(Y){case"ascii":case"latin1":case"binary":return $;case"utf8":case"utf-8":return ae(le).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return $*2;case"hex":return $>>>1;case"base64":return ke(le).length;default:if(oe)return pe?-1:ae(le).length;Y=(""+Y).toLowerCase(),oe=!0}}g.byteLength=A;function d(le,Y,$){var pe=!1;if((Y===void 0||Y<0)&&(Y=0),Y>this.length||(($===void 0||$>this.length)&&($=this.length),$<=0)||($>>>=0,Y>>>=0,$<=Y))return"";for(le||(le="utf8");;)switch(le){case"hex":return q(this,Y,$);case"utf8":case"utf-8":return O(this,Y,$);case"ascii":return j(this,Y,$);case"latin1":case"binary":return G(this,Y,$);case"base64":return B(this,Y,$);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return J(this,Y,$);default:if(pe)throw new TypeError("Unknown encoding: "+le);le=(le+"").toLowerCase(),pe=!0}}g.prototype._isBuffer=!0;function D(le,Y,$){var pe=le[Y];le[Y]=le[$],le[$]=pe}g.prototype.swap16=function(){var Y=this.length;if(Y%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var $=0;$$&&(Y+=" ... "),""},f&&(g.prototype[f]=g.prototype.inspect),g.prototype.compare=function(Y,$,pe,oe,ve){if(ge(Y,Uint8Array)&&(Y=g.from(Y,Y.offset,Y.byteLength)),!g.isBuffer(Y))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof Y);if($===void 0&&($=0),pe===void 0&&(pe=Y?Y.length:0),oe===void 0&&(oe=0),ve===void 0&&(ve=this.length),$<0||pe>Y.length||oe<0||ve>this.length)throw new RangeError("out of range index");if(oe>=ve&&$>=pe)return 0;if(oe>=ve)return-1;if($>=pe)return 1;if($>>>=0,pe>>>=0,oe>>>=0,ve>>>=0,this===Y)return 0;for(var he=ve-oe,me=pe-$,be=Math.min(he,me),ye=this.slice(oe,ve),de=Y.slice($,pe),xe=0;xe2147483647?$=2147483647:$<-2147483648&&($=-2147483648),$=+$,Le($)&&($=oe?0:le.length-1),$<0&&($=le.length+$),$>=le.length){if(oe)return-1;$=le.length-1}else if($<0)if(oe)$=0;else return-1;if(typeof Y=="string"&&(Y=g.from(Y,pe)),g.isBuffer(Y))return Y.length===0?-1:R(le,Y,$,pe,oe);if(typeof Y=="number")return Y=Y&255,typeof Uint8Array.prototype.indexOf=="function"?oe?Uint8Array.prototype.indexOf.call(le,Y,$):Uint8Array.prototype.lastIndexOf.call(le,Y,$):R(le,[Y],$,pe,oe);throw new TypeError("val must be string, number or Buffer")}function R(le,Y,$,pe,oe){var ve=1,he=le.length,me=Y.length;if(pe!==void 0&&(pe=String(pe).toLowerCase(),pe==="ucs2"||pe==="ucs-2"||pe==="utf16le"||pe==="utf-16le")){if(le.length<2||Y.length<2)return-1;ve=2,he/=2,me/=2,$/=2}function be(Pe,Fe){return ve===1?Pe[Fe]:Pe.readUInt16BE(Fe*ve)}var ye;if(oe){var de=-1;for(ye=$;yehe&&($=he-me),ye=$;ye>=0;ye--){for(var xe=!0,Ae=0;Aeoe&&(pe=oe)):pe=oe;var ve=Y.length;pe>ve/2&&(pe=ve/2);for(var he=0;he>>0,isFinite(pe)?(pe=pe>>>0,oe===void 0&&(oe="utf8")):(oe=pe,pe=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var ve=this.length-$;if((pe===void 0||pe>ve)&&(pe=ve),Y.length>0&&(pe<0||$<0)||$>this.length)throw new RangeError("Attempt to write outside buffer bounds");oe||(oe="utf8");for(var he=!1;;)switch(oe){case"hex":return z(this,Y,$,pe);case"utf8":case"utf-8":return I(this,Y,$,pe);case"ascii":case"latin1":case"binary":return P(this,Y,$,pe);case"base64":return L(this,Y,$,pe);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return F(this,Y,$,pe);default:if(he)throw new TypeError("Unknown encoding: "+oe);oe=(""+oe).toLowerCase(),he=!0}},g.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function B(le,Y,$){return Y===0&&$===le.length?u.fromByteArray(le):u.fromByteArray(le.slice(Y,$))}function O(le,Y,$){$=Math.min(le.length,$);for(var pe=[],oe=Y;oe<$;){var ve=le[oe],he=null,me=ve>239?4:ve>223?3:ve>191?2:1;if(oe+me<=$){var be,ye,de,xe;switch(me){case 1:ve<128&&(he=ve);break;case 2:be=le[oe+1],(be&192)===128&&(xe=(ve&31)<<6|be&63,xe>127&&(he=xe));break;case 3:be=le[oe+1],ye=le[oe+2],(be&192)===128&&(ye&192)===128&&(xe=(ve&15)<<12|(be&63)<<6|ye&63,xe>2047&&(xe<55296||xe>57343)&&(he=xe));break;case 4:be=le[oe+1],ye=le[oe+2],de=le[oe+3],(be&192)===128&&(ye&192)===128&&(de&192)===128&&(xe=(ve&15)<<18|(be&63)<<12|(ye&63)<<6|de&63,xe>65535&&xe<1114112&&(he=xe))}}he===null?(he=65533,me=1):he>65535&&(he-=65536,pe.push(he>>>10&1023|55296),he=56320|he&1023),pe.push(he),oe+=me}return K(pe)}var V=4096;function K(le){var Y=le.length;if(Y<=V)return String.fromCharCode.apply(String,le);for(var $="",pe=0;pepe)&&($=pe);for(var oe="",ve=Y;ve<$;++ve)oe+=Ce[le[ve]];return oe}function J(le,Y,$){for(var pe=le.slice(Y,$),oe="",ve=0;vepe&&(Y=pe),$<0?($+=pe,$<0&&($=0)):$>pe&&($=pe),$$)throw new RangeError("Trying to access beyond buffer length")}g.prototype.readUintLE=g.prototype.readUIntLE=function(Y,$,pe){Y=Y>>>0,$=$>>>0,pe||te(Y,$,this.length);for(var oe=this[Y],ve=1,he=0;++he<$&&(ve*=256);)oe+=this[Y+he]*ve;return oe},g.prototype.readUintBE=g.prototype.readUIntBE=function(Y,$,pe){Y=Y>>>0,$=$>>>0,pe||te(Y,$,this.length);for(var oe=this[Y+--$],ve=1;$>0&&(ve*=256);)oe+=this[Y+--$]*ve;return oe},g.prototype.readUint8=g.prototype.readUInt8=function(Y,$){return Y=Y>>>0,$||te(Y,1,this.length),this[Y]},g.prototype.readUint16LE=g.prototype.readUInt16LE=function(Y,$){return Y=Y>>>0,$||te(Y,2,this.length),this[Y]|this[Y+1]<<8},g.prototype.readUint16BE=g.prototype.readUInt16BE=function(Y,$){return Y=Y>>>0,$||te(Y,2,this.length),this[Y]<<8|this[Y+1]},g.prototype.readUint32LE=g.prototype.readUInt32LE=function(Y,$){return Y=Y>>>0,$||te(Y,4,this.length),(this[Y]|this[Y+1]<<8|this[Y+2]<<16)+this[Y+3]*16777216},g.prototype.readUint32BE=g.prototype.readUInt32BE=function(Y,$){return Y=Y>>>0,$||te(Y,4,this.length),this[Y]*16777216+(this[Y+1]<<16|this[Y+2]<<8|this[Y+3])},g.prototype.readIntLE=function(Y,$,pe){Y=Y>>>0,$=$>>>0,pe||te(Y,$,this.length);for(var oe=this[Y],ve=1,he=0;++he<$&&(ve*=256);)oe+=this[Y+he]*ve;return ve*=128,oe>=ve&&(oe-=Math.pow(2,8*$)),oe},g.prototype.readIntBE=function(Y,$,pe){Y=Y>>>0,$=$>>>0,pe||te(Y,$,this.length);for(var oe=$,ve=1,he=this[Y+--oe];oe>0&&(ve*=256);)he+=this[Y+--oe]*ve;return ve*=128,he>=ve&&(he-=Math.pow(2,8*$)),he},g.prototype.readInt8=function(Y,$){return Y=Y>>>0,$||te(Y,1,this.length),this[Y]&128?(255-this[Y]+1)*-1:this[Y]},g.prototype.readInt16LE=function(Y,$){Y=Y>>>0,$||te(Y,2,this.length);var pe=this[Y]|this[Y+1]<<8;return pe&32768?pe|4294901760:pe},g.prototype.readInt16BE=function(Y,$){Y=Y>>>0,$||te(Y,2,this.length);var pe=this[Y+1]|this[Y]<<8;return pe&32768?pe|4294901760:pe},g.prototype.readInt32LE=function(Y,$){return Y=Y>>>0,$||te(Y,4,this.length),this[Y]|this[Y+1]<<8|this[Y+2]<<16|this[Y+3]<<24},g.prototype.readInt32BE=function(Y,$){return Y=Y>>>0,$||te(Y,4,this.length),this[Y]<<24|this[Y+1]<<16|this[Y+2]<<8|this[Y+3]},g.prototype.readFloatLE=function(Y,$){return Y=Y>>>0,$||te(Y,4,this.length),s.read(this,Y,!0,23,4)},g.prototype.readFloatBE=function(Y,$){return Y=Y>>>0,$||te(Y,4,this.length),s.read(this,Y,!1,23,4)},g.prototype.readDoubleLE=function(Y,$){return Y=Y>>>0,$||te(Y,8,this.length),s.read(this,Y,!0,52,8)},g.prototype.readDoubleBE=function(Y,$){return Y=Y>>>0,$||te(Y,8,this.length),s.read(this,Y,!1,52,8)};function Z(le,Y,$,pe,oe,ve){if(!g.isBuffer(le))throw new TypeError('"buffer" argument must be a Buffer instance');if(Y>oe||Yle.length)throw new RangeError("Index out of range")}g.prototype.writeUintLE=g.prototype.writeUIntLE=function(Y,$,pe,oe){if(Y=+Y,$=$>>>0,pe=pe>>>0,!oe){var ve=Math.pow(2,8*pe)-1;Z(this,Y,$,pe,ve,0)}var he=1,me=0;for(this[$]=Y&255;++me>>0,pe=pe>>>0,!oe){var ve=Math.pow(2,8*pe)-1;Z(this,Y,$,pe,ve,0)}var he=pe-1,me=1;for(this[$+he]=Y&255;--he>=0&&(me*=256);)this[$+he]=Y/me&255;return $+pe},g.prototype.writeUint8=g.prototype.writeUInt8=function(Y,$,pe){return Y=+Y,$=$>>>0,pe||Z(this,Y,$,1,255,0),this[$]=Y&255,$+1},g.prototype.writeUint16LE=g.prototype.writeUInt16LE=function(Y,$,pe){return Y=+Y,$=$>>>0,pe||Z(this,Y,$,2,65535,0),this[$]=Y&255,this[$+1]=Y>>>8,$+2},g.prototype.writeUint16BE=g.prototype.writeUInt16BE=function(Y,$,pe){return Y=+Y,$=$>>>0,pe||Z(this,Y,$,2,65535,0),this[$]=Y>>>8,this[$+1]=Y&255,$+2},g.prototype.writeUint32LE=g.prototype.writeUInt32LE=function(Y,$,pe){return Y=+Y,$=$>>>0,pe||Z(this,Y,$,4,4294967295,0),this[$+3]=Y>>>24,this[$+2]=Y>>>16,this[$+1]=Y>>>8,this[$]=Y&255,$+4},g.prototype.writeUint32BE=g.prototype.writeUInt32BE=function(Y,$,pe){return Y=+Y,$=$>>>0,pe||Z(this,Y,$,4,4294967295,0),this[$]=Y>>>24,this[$+1]=Y>>>16,this[$+2]=Y>>>8,this[$+3]=Y&255,$+4},g.prototype.writeIntLE=function(Y,$,pe,oe){if(Y=+Y,$=$>>>0,!oe){var ve=Math.pow(2,8*pe-1);Z(this,Y,$,pe,ve-1,-ve)}var he=0,me=1,be=0;for(this[$]=Y&255;++he>0)-be&255;return $+pe},g.prototype.writeIntBE=function(Y,$,pe,oe){if(Y=+Y,$=$>>>0,!oe){var ve=Math.pow(2,8*pe-1);Z(this,Y,$,pe,ve-1,-ve)}var he=pe-1,me=1,be=0;for(this[$+he]=Y&255;--he>=0&&(me*=256);)Y<0&&be===0&&this[$+he+1]!==0&&(be=1),this[$+he]=(Y/me>>0)-be&255;return $+pe},g.prototype.writeInt8=function(Y,$,pe){return Y=+Y,$=$>>>0,pe||Z(this,Y,$,1,127,-128),Y<0&&(Y=255+Y+1),this[$]=Y&255,$+1},g.prototype.writeInt16LE=function(Y,$,pe){return Y=+Y,$=$>>>0,pe||Z(this,Y,$,2,32767,-32768),this[$]=Y&255,this[$+1]=Y>>>8,$+2},g.prototype.writeInt16BE=function(Y,$,pe){return Y=+Y,$=$>>>0,pe||Z(this,Y,$,2,32767,-32768),this[$]=Y>>>8,this[$+1]=Y&255,$+2},g.prototype.writeInt32LE=function(Y,$,pe){return Y=+Y,$=$>>>0,pe||Z(this,Y,$,4,2147483647,-2147483648),this[$]=Y&255,this[$+1]=Y>>>8,this[$+2]=Y>>>16,this[$+3]=Y>>>24,$+4},g.prototype.writeInt32BE=function(Y,$,pe){return Y=+Y,$=$>>>0,pe||Z(this,Y,$,4,2147483647,-2147483648),Y<0&&(Y=4294967295+Y+1),this[$]=Y>>>24,this[$+1]=Y>>>16,this[$+2]=Y>>>8,this[$+3]=Y&255,$+4};function ie(le,Y,$,pe,oe,ve){if($+pe>le.length)throw new RangeError("Index out of range");if($<0)throw new RangeError("Index out of range")}function Q(le,Y,$,pe,oe){return Y=+Y,$=$>>>0,oe||ie(le,Y,$,4,34028234663852886e22,-34028234663852886e22),s.write(le,Y,$,pe,23,4),$+4}g.prototype.writeFloatLE=function(Y,$,pe){return Q(this,Y,$,!0,pe)},g.prototype.writeFloatBE=function(Y,$,pe){return Q(this,Y,$,!1,pe)};function re(le,Y,$,pe,oe){return Y=+Y,$=$>>>0,oe||ie(le,Y,$,8,17976931348623157e292,-17976931348623157e292),s.write(le,Y,$,pe,52,8),$+8}g.prototype.writeDoubleLE=function(Y,$,pe){return re(this,Y,$,!0,pe)},g.prototype.writeDoubleBE=function(Y,$,pe){return re(this,Y,$,!1,pe)},g.prototype.copy=function(Y,$,pe,oe){if(!g.isBuffer(Y))throw new TypeError("argument should be a Buffer");if(pe||(pe=0),!oe&&oe!==0&&(oe=this.length),$>=Y.length&&($=Y.length),$||($=0),oe>0&&oe=this.length)throw new RangeError("Index out of range");if(oe<0)throw new RangeError("sourceEnd out of bounds");oe>this.length&&(oe=this.length),Y.length-$>>0,pe=pe===void 0?this.length:pe>>>0,Y||(Y=0);var he;if(typeof Y=="number")for(he=$;he55295&&$<57344){if(!oe){if($>56319){(Y-=3)>-1&&ve.push(239,191,189);continue}else if(he+1===pe){(Y-=3)>-1&&ve.push(239,191,189);continue}oe=$;continue}if($<56320){(Y-=3)>-1&&ve.push(239,191,189),oe=$;continue}$=(oe-55296<<10|$-56320)+65536}else oe&&(Y-=3)>-1&&ve.push(239,191,189);if(oe=null,$<128){if((Y-=1)<0)break;ve.push($)}else if($<2048){if((Y-=2)<0)break;ve.push($>>6|192,$&63|128)}else if($<65536){if((Y-=3)<0)break;ve.push($>>12|224,$>>6&63|128,$&63|128)}else if($<1114112){if((Y-=4)<0)break;ve.push($>>18|240,$>>12&63|128,$>>6&63|128,$&63|128)}else throw new Error("Invalid code point")}return ve}function ce(le){for(var Y=[],$=0;$>8,oe=$%256,ve.push(oe),ve.push(pe);return ve}function ke(le){return u.toByteArray(ee(le))}function Se(le,Y,$,pe){for(var oe=0;oe=Y.length||oe>=le.length);++oe)Y[oe+$]=le[oe];return oe}function ge(le,Y){return le instanceof Y||le!=null&&le.constructor!=null&&le.constructor.name!=null&&le.constructor.name===Y.name}function Le(le){return le!==le}var Ce=(function(){for(var le="0123456789abcdef",Y=new Array(256),$=0;$<16;++$)for(var pe=$*16,oe=0;oe<16;++oe)Y[pe+oe]=le[$]+le[oe];return Y})()},2538(a,o,i){"use strict";var l=i(8902),u=i(5542),s=i(2272),f=i(5023);a.exports=w;function c(M){return[Math.min(M[0],M[1]),Math.max(M[0],M[1])]}function p(M,m){return M[0]-m[0]||M[1]-m[1]}function x(M){return M.map(c).sort(p)}function g(M,m,k){return m in M?M[m]:k}function w(M,m,k){Array.isArray(m)?(k=k||{},m=m||[]):(k=m||{},m=[]);var S=!!g(k,"delaunay",!0),b=!!g(k,"interior",!0),T=!!g(k,"exterior",!0),h=!!g(k,"infinity",!1);if(!b&&!T||M.length===0)return[];var _=l(M,m);if(S||b!==T||h){for(var y=u(M.length,x(m)),v=0;v<_.length;++v){var A=_[v];y.addTriangle(A[0],A[1],A[2])}return S&&s(M,y),T?b?h?f(y,0,h):y.cells():f(y,1,h):f(y,-1)}else return _}},2272(a,o,i){"use strict";var l=i(2646)[4],u=i(2478);a.exports=f;function s(c,p,x,g,w,M){var m=p.opposite(g,w);if(!(m<0)){if(w0;){for(var S=x.pop(),M=x.pop(),b=-1,T=-1,m=w[M],_=1;_=0||(p.flip(M,S),s(c,p,x,b,M,T),s(c,p,x,M,T,b),s(c,p,x,T,S,b),s(c,p,x,S,b,T))}}},5023(a,o,i){"use strict";var l=i(2478);a.exports=x;function u(g,w,M,m,k,S,b){this.cells=g,this.neighbor=w,this.flags=m,this.constraint=M,this.active=k,this.next=S,this.boundary=b}var s=u.prototype;function f(g,w){return g[0]-w[0]||g[1]-w[1]||g[2]-w[2]}s.locate=(function(){var g=[0,0,0];return function(w,M,m){var k=w,S=M,b=m;return M0||b.length>0;){for(;S.length>0;){var v=S.pop();if(T[v]!==-k){T[v]=k;for(var A=h[v],d=0;d<3;++d){var D=y[3*v+d];D>=0&&T[D]===0&&(_[3*v+d]?b.push(D):(S.push(D),T[D]=k))}}}var E=b;b=S,S=E,b.length=0,k=-k}var R=p(h,T,w);return M?R.concat(m.boundary):R}},8902(a,o,i){"use strict";var l=i(2478),u=i(3250)[3],s=0,f=1,c=2;a.exports=b;function p(T,h,_,y,v){this.a=T,this.b=h,this.idx=_,this.lowerIds=y,this.upperIds=v}function x(T,h,_,y){this.a=T,this.b=h,this.type=_,this.idx=y}function g(T,h){var _=T.a[0]-h.a[0]||T.a[1]-h.a[1]||T.type-h.type;return _||T.type!==s&&(_=u(T.a,T.b,h.b),_)?_:T.idx-h.idx}function w(T,h){return u(T.a,T.b,h)}function M(T,h,_,y,v){for(var A=l.lt(h,y,w),d=l.gt(h,y,w),D=A;D1&&u(_[R[I-2]],_[R[I-1]],y)>0;)T.push([R[I-1],R[I-2],v]),I-=1;R.length=I,R.push(v);for(var z=E.upperIds,I=z.length;I>1&&u(_[z[I-2]],_[z[I-1]],y)<0;)T.push([z[I-2],z[I-1],v]),I-=1;z.length=I,z.push(v)}}function m(T,h){var _;return T.a[0]E[0]&&v.push(new x(E,D,c,A),new x(D,E,f,A))}v.sort(g);for(var R=v[0].a[0]-(1+Math.abs(v[0].a[0]))*Math.pow(2,-52),z=[new p([R,1],[R,0],-1,[],[],[],[])],I=[],A=0,P=v.length;A=0}})(),s.removeTriangle=function(p,x,g){var w=this.stars;f(w[p],x,g),f(w[x],g,p),f(w[g],p,x)},s.addTriangle=function(p,x,g){var w=this.stars;w[p].push(x,g),w[x].push(g,p),w[g].push(p,x)},s.opposite=function(p,x){for(var g=this.stars[x],w=1,M=g.length;w=0;--L){var J=I[L];F=J[0];var te=R[F],Z=te[0],ie=te[1],Q=E[Z],re=E[ie];if((Q[0]-re[0]||Q[1]-re[1])<0){var ue=Z;Z=ie,ie=ue}te[0]=Z;var ee=te[1]=J[1],ae;for(P&&(ae=te[2]);L>0&&I[L-1][0]===F;){var J=I[--L],ce=J[1];P?R.push([ee,ce,ae]):R.push([ee,ce]),ee=ce}P?R.push([ee,ie,ae]):R.push([ee,ie])}return B}function h(E,R,z){for(var I=R.length,P=new l(I),L=[],F=0;FR[2]?1:0)}function v(E,R,z){if(E.length!==0){if(R)for(var I=0;I0||F.length>0}function D(E,R,z){var I;if(z){I=R;for(var P=new Array(R.length),L=0;LT+1)throw new Error(S+" map requires nshades to be at least size "+k.length);Array.isArray(x.alpha)?x.alpha.length!==2?h=[1,1]:h=x.alpha.slice():typeof x.alpha=="number"?h=[x.alpha,x.alpha]:h=[1,1],g=k.map(function(D){return Math.round(D.index*T)}),h[0]=Math.min(Math.max(h[0],0),1),h[1]=Math.min(Math.max(h[1],0),1);var y=k.map(function(D,E){var R=k[E].index,z=k[E].rgb.slice();return z.length===4&&z[3]>=0&&z[3]<=1||(z[3]=h[0]+(h[1]-h[0])*R),z}),v=[];for(_=0;_=0}function x(g,w,M,m){var k=l(w,M,m);if(k===0){var S=u(l(g,w,M)),b=u(l(g,w,m));if(S===b){if(S===0){var T=p(g,w,M),h=p(g,w,m);return T===h?0:T?1:-1}return 0}else{if(b===0)return S>0||p(g,w,m)?-1:1;if(S===0)return b>0||p(g,w,M)?1:-1}return u(b-S)}var _=l(g,w,M);if(_>0)return k>0&&l(g,w,m)>0?1:-1;if(_<0)return k>0||l(g,w,m)>0?1:-1;var y=l(g,w,m);return y>0||p(g,w,M)?1:-1}},8572(a){"use strict";a.exports=function(i){return i<0?-1:i>0?1:0}},8507(a){a.exports=l;var o=Math.min;function i(u,s){return u-s}function l(u,s){var f=u.length,c=u.length-s.length;if(c)return c;switch(f){case 0:return 0;case 1:return u[0]-s[0];case 2:return u[0]+u[1]-s[0]-s[1]||o(u[0],u[1])-o(s[0],s[1]);case 3:var p=u[0]+u[1],x=s[0]+s[1];if(c=p+u[2]-(x+s[2]),c)return c;var g=o(u[0],u[1]),w=o(s[0],s[1]);return o(g,u[2])-o(w,s[2])||o(g+u[2],p)-o(w+s[2],x);case 4:var M=u[0],m=u[1],k=u[2],S=u[3],b=s[0],T=s[1],h=s[2],_=s[3];return M+m+k+S-(b+T+h+_)||o(M,m,k,S)-o(b,T,h,_,b)||o(M+m,M+k,M+S,m+k,m+S,k+S)-o(b+T,b+h,b+_,T+h,T+_,h+_)||o(M+m+k,M+m+S,M+k+S,m+k+S)-o(b+T+h,b+T+_,b+h+_,T+h+_);default:for(var y=u.slice().sort(i),v=s.slice().sort(i),A=0;Ai[u][0]&&(u=s);return lu?[[u],[l]]:[[l]]}},4750(a,o,i){"use strict";a.exports=u;var l=i(3090);function u(s){var f=l(s),c=f.length;if(c<=2)return[];for(var p=new Array(c),x=f[c-1],g=0;g=x[b]&&(S+=1);m[k]=S}}return p}function c(p,x){try{return l(p,!0)}catch(m){var g=u(p);if(g.length<=x)return[];var w=s(p,g),M=l(w,!0);return f(M,g)}}},4769(a){"use strict";function o(l,u,s,f,c,p){var x=6*c*c-6*c,g=3*c*c-4*c+1,w=-6*c*c+6*c,M=3*c*c-2*c;if(l.length){p||(p=new Array(l.length));for(var m=l.length-1;m>=0;--m)p[m]=x*l[m]+g*u[m]+w*s[m]+M*f[m];return p}return x*l+g*u+w*s[m]+M*f}function i(l,u,s,f,c,p){var x=c-1,g=c*c,w=x*x,M=(1+2*c)*w,m=c*w,k=g*(3-2*c),S=g*x;if(l.length){p||(p=new Array(l.length));for(var b=l.length-1;b>=0;--b)p[b]=M*l[b]+m*u[b]+k*s[b]+S*f[b];return p}return M*l+m*u+k*s+S*f}a.exports=i,a.exports.derivative=o},7642(a,o,i){"use strict";var l=i(8954),u=i(1682);a.exports=p;function s(x,g){this.point=x,this.index=g}function f(x,g){for(var w=x.point,M=g.point,m=w.length,k=0;k=2)return!1;z[P]=L}return!0}):R=R.filter(function(z){for(var I=0;I<=M;++I){var P=A[z[I]];if(P<0)return!1;z[I]=P}return!0}),M&1)for(var S=0;S>>31},a.exports.exponent=function(k){var S=a.exports.hi(k);return(S<<1>>>21)-1023},a.exports.fraction=function(k){var S=a.exports.lo(k),b=a.exports.hi(k),T=b&(1<<20)-1;return b&2146435072&&(T+=1048576),[S,T]},a.exports.denormalized=function(k){var S=a.exports.hi(k);return!(S&2146435072)}},1338(a){"use strict";function o(u,s,f){var c=u[f]|0;if(c<=0)return[];var p=new Array(c),x;if(f===u.length-1)for(x=0;x0)return i(u|0,s);break;case"object":if(typeof u.length=="number")return o(u,s,0);break}return[]}a.exports=l},3134(a,o,i){"use strict";a.exports=u;var l=i(1682);function u(s,f){var c=s.length;if(typeof f!="number"){f=0;for(var p=0;p=M-1)for(var _=S.length-1,v=g-w[M-1],y=0;y=M-1)for(var h=S.length-1,_=g-w[M-1],y=0;y=0;--M)if(g[--w])return!1;return!0},c.jump=function(g){var w=this.lastT(),M=this.dimension;if(!(g0;--y)m.push(s(T[y-1],h[y-1],arguments[y])),k.push(0)}},c.push=function(g){var w=this.lastT(),M=this.dimension;if(!(g1e-6?1/b:0;this._time.push(g);for(var v=M;v>0;--v){var A=s(h[v-1],_[v-1],arguments[v]);m.push(A),k.push((A-m[S++])*y)}}},c.set=function(g){var w=this.dimension;if(!(g0;--T)M.push(s(S[T-1],b[T-1],arguments[T])),m.push(0)}},c.move=function(g){var w=this.lastT(),M=this.dimension;if(!(g<=w||arguments.length!==M+1)){var m=this._state,k=this._velocity,S=m.length-this.dimension,b=this.bounds,T=b[0],h=b[1],_=g-w,y=_>1e-6?1/_:0;this._time.push(g);for(var v=M;v>0;--v){var A=arguments[v];m.push(s(T[v-1],h[v-1],m[S++]+A)),k.push(A*y)}}},c.idle=function(g){var w=this.lastT();if(!(g=0;--y)m.push(s(T[y],h[y],m[S]+_*k[S])),k.push(0),S+=1}};function p(g){for(var w=new Array(g),M=0;M=0;--E){var v=A[E];d[E]<=0?A[E]=new l(v._color,v.key,v.value,A[E+1],v.right,v._count+1):A[E]=new l(v._color,v.key,v.value,v.left,A[E+1],v._count+1)}for(var E=A.length-1;E>1;--E){var R=A[E-1],v=A[E];if(R._color===i||v._color===i)break;var z=A[E-2];if(z.left===R)if(R.left===v){var I=z.right;if(I&&I._color===o)R._color=i,z.right=s(i,I),z._color=o,E-=1;else{if(z._color=o,z.left=R.right,R._color=i,R.right=z,A[E-2]=R,A[E-1]=v,f(z),f(R),E>=3){var P=A[E-3];P.left===z?P.left=R:P.right=R}break}}else{var I=z.right;if(I&&I._color===o)R._color=i,z.right=s(i,I),z._color=o,E-=1;else{if(R.right=v.left,z._color=o,z.left=v.right,v._color=i,v.left=R,v.right=z,A[E-2]=v,A[E-1]=R,f(z),f(R),f(v),E>=3){var P=A[E-3];P.left===z?P.left=v:P.right=v}break}}else if(R.right===v){var I=z.left;if(I&&I._color===o)R._color=i,z.left=s(i,I),z._color=o,E-=1;else{if(z._color=o,z.right=R.left,R._color=i,R.left=z,A[E-2]=R,A[E-1]=v,f(z),f(R),E>=3){var P=A[E-3];P.right===z?P.right=R:P.left=R}break}}else{var I=z.left;if(I&&I._color===o)R._color=i,z.left=s(i,I),z._color=o,E-=1;else{if(R.left=v.right,z._color=o,z.right=v.left,v._color=i,v.right=R,v.left=z,A[E-2]=v,A[E-1]=R,f(z),f(R),f(v),E>=3){var P=A[E-3];P.right===z?P.right=v:P.left=v}break}}}return A[0]._color=i,new c(y,A[0])};function x(h,_){if(_.left){var y=x(h,_.left);if(y)return y}var y=h(_.key,_.value);if(y)return y;if(_.right)return x(h,_.right)}function g(h,_,y,v){var A=_(h,v.key);if(A<=0){if(v.left){var d=g(h,_,y,v.left);if(d)return d}var d=y(v.key,v.value);if(d)return d}if(v.right)return g(h,_,y,v.right)}function w(h,_,y,v,A){var d=y(h,A.key),D=y(_,A.key),E;if(d<=0&&(A.left&&(E=w(h,_,y,v,A.left),E)||D>0&&(E=v(A.key,A.value),E)))return E;if(D>0&&A.right)return w(h,_,y,v,A.right)}p.forEach=function(_,y,v){if(this.root)switch(arguments.length){case 1:return x(_,this.root);case 2:return g(y,this._compare,_,this.root);case 3:return this._compare(y,v)>=0?void 0:w(y,v,this._compare,_,this.root)}},Object.defineProperty(p,"begin",{get:function(){for(var h=[],_=this.root;_;)h.push(_),_=_.left;return new M(this,h)}}),Object.defineProperty(p,"end",{get:function(){for(var h=[],_=this.root;_;)h.push(_),_=_.right;return new M(this,h)}}),p.at=function(h){if(h<0)return new M(this,[]);for(var _=this.root,y=[];;){if(y.push(_),_.left){if(h<_.left._count){_=_.left;continue}h-=_.left._count}if(!h)return new M(this,y);if(h-=1,_.right){if(h>=_.right._count)break;_=_.right}else break}return new M(this,[])},p.ge=function(h){for(var _=this._compare,y=this.root,v=[],A=0;y;){var d=_(h,y.key);v.push(y),d<=0&&(A=v.length),d<=0?y=y.left:y=y.right}return v.length=A,new M(this,v)},p.gt=function(h){for(var _=this._compare,y=this.root,v=[],A=0;y;){var d=_(h,y.key);v.push(y),d<0&&(A=v.length),d<0?y=y.left:y=y.right}return v.length=A,new M(this,v)},p.lt=function(h){for(var _=this._compare,y=this.root,v=[],A=0;y;){var d=_(h,y.key);v.push(y),d>0&&(A=v.length),d<=0?y=y.left:y=y.right}return v.length=A,new M(this,v)},p.le=function(h){for(var _=this._compare,y=this.root,v=[],A=0;y;){var d=_(h,y.key);v.push(y),d>=0&&(A=v.length),d<0?y=y.left:y=y.right}return v.length=A,new M(this,v)},p.find=function(h){for(var _=this._compare,y=this.root,v=[];y;){var A=_(h,y.key);if(v.push(y),A===0)return new M(this,v);A<=0?y=y.left:y=y.right}return new M(this,[])},p.remove=function(h){var _=this.find(h);return _?_.remove():this},p.get=function(h){for(var _=this._compare,y=this.root;y;){var v=_(h,y.key);if(v===0)return y.value;v<=0?y=y.left:y=y.right}};function M(h,_){this.tree=h,this._stack=_}var m=M.prototype;Object.defineProperty(m,"valid",{get:function(){return this._stack.length>0}}),Object.defineProperty(m,"node",{get:function(){return this._stack.length>0?this._stack[this._stack.length-1]:null},enumerable:!0}),m.clone=function(){return new M(this.tree,this._stack.slice())};function k(h,_){h.key=_.key,h.value=_.value,h.left=_.left,h.right=_.right,h._color=_._color,h._count=_._count}function S(h){for(var _,y,v,A,d=h.length-1;d>=0;--d){if(_=h[d],d===0){_._color=i;return}if(y=h[d-1],y.left===_){if(v=y.right,v.right&&v.right._color===o){if(v=y.right=u(v),A=v.right=u(v.right),y.right=v.left,v.left=y,v.right=A,v._color=y._color,_._color=i,y._color=i,A._color=i,f(y),f(v),d>1){var D=h[d-2];D.left===y?D.left=v:D.right=v}h[d-1]=v;return}else if(v.left&&v.left._color===o){if(v=y.right=u(v),A=v.left=u(v.left),y.right=A.left,v.left=A.right,A.left=y,A.right=v,A._color=y._color,y._color=i,v._color=i,_._color=i,f(y),f(v),f(A),d>1){var D=h[d-2];D.left===y?D.left=A:D.right=A}h[d-1]=A;return}if(v._color===i)if(y._color===o){y._color=i,y.right=s(o,v);return}else{y.right=s(o,v);continue}else{if(v=u(v),y.right=v.left,v.left=y,v._color=y._color,y._color=o,f(y),f(v),d>1){var D=h[d-2];D.left===y?D.left=v:D.right=v}h[d-1]=v,h[d]=y,d+11){var D=h[d-2];D.right===y?D.right=v:D.left=v}h[d-1]=v;return}else if(v.right&&v.right._color===o){if(v=y.left=u(v),A=v.right=u(v.right),y.left=A.right,v.right=A.left,A.right=y,A.left=v,A._color=y._color,y._color=i,v._color=i,_._color=i,f(y),f(v),f(A),d>1){var D=h[d-2];D.right===y?D.right=A:D.left=A}h[d-1]=A;return}if(v._color===i)if(y._color===o){y._color=i,y.left=s(o,v);return}else{y.left=s(o,v);continue}else{if(v=u(v),y.left=v.right,v.right=y,v._color=y._color,y._color=o,f(y),f(v),d>1){var D=h[d-2];D.right===y?D.right=v:D.left=v}h[d-1]=v,h[d]=y,d+1=0;--v){var y=h[v];y.left===h[v+1]?_[v]=new l(y._color,y.key,y.value,_[v+1],y.right,y._count):_[v]=new l(y._color,y.key,y.value,y.left,_[v+1],y._count)}if(y=_[_.length-1],y.left&&y.right){var A=_.length;for(y=y.left;y.right;)_.push(y),y=y.right;var d=_[A-1];_.push(new l(y._color,d.key,d.value,y.left,y.right,y._count)),_[A-1].key=y.key,_[A-1].value=y.value;for(var v=_.length-2;v>=A;--v)y=_[v],_[v]=new l(y._color,y.key,y.value,y.left,_[v+1],y._count);_[A-1].left=_[A]}if(y=_[_.length-1],y._color===o){var D=_[_.length-2];D.left===y?D.left=null:D.right===y&&(D.right=null),_.pop();for(var v=0;v<_.length;++v)_[v]._count--;return new c(this.tree._compare,_[0])}else if(y.left||y.right){y.left?k(y,y.left):y.right&&k(y,y.right),y._color=i;for(var v=0;v<_.length-1;++v)_[v]._count--;return new c(this.tree._compare,_[0])}else{if(_.length===1)return new c(this.tree._compare,null);for(var v=0;v<_.length;++v)_[v]._count--;var E=_[_.length-2];S(_),E.left===y?E.left=null:E.right=null}return new c(this.tree._compare,_[0])},Object.defineProperty(m,"key",{get:function(){if(this._stack.length>0)return this._stack[this._stack.length-1].key},enumerable:!0}),Object.defineProperty(m,"value",{get:function(){if(this._stack.length>0)return this._stack[this._stack.length-1].value},enumerable:!0}),Object.defineProperty(m,"index",{get:function(){var h=0,_=this._stack;if(_.length===0){var y=this.tree.root;return y?y._count:0}else _[_.length-1].left&&(h=_[_.length-1].left._count);for(var v=_.length-2;v>=0;--v)_[v+1]===_[v].right&&(++h,_[v].left&&(h+=_[v].left._count));return h},enumerable:!0}),m.next=function(){var h=this._stack;if(h.length!==0){var _=h[h.length-1];if(_.right)for(_=_.right;_;)h.push(_),_=_.left;else for(h.pop();h.length>0&&h[h.length-1].right===_;)_=h[h.length-1],h.pop()}},Object.defineProperty(m,"hasNext",{get:function(){var h=this._stack;if(h.length===0)return!1;if(h[h.length-1].right)return!0;for(var _=h.length-1;_>0;--_)if(h[_-1].left===h[_])return!0;return!1}}),m.update=function(h){var _=this._stack;if(_.length===0)throw new Error("Can't update empty node!");var y=new Array(_.length),v=_[_.length-1];y[y.length-1]=new l(v._color,v.key,h,v.left,v.right,v._count);for(var A=_.length-2;A>=0;--A)v=_[A],v.left===_[A+1]?y[A]=new l(v._color,v.key,v.value,y[A+1],v.right,v._count):y[A]=new l(v._color,v.key,v.value,v.left,y[A+1],v._count);return new c(this.tree._compare,y[0])},m.prev=function(){var h=this._stack;if(h.length!==0){var _=h[h.length-1];if(_.left)for(_=_.left;_;)h.push(_),_=_.right;else for(h.pop();h.length>0&&h[h.length-1].left===_;)_=h[h.length-1],h.pop()}},Object.defineProperty(m,"hasPrev",{get:function(){var h=this._stack;if(h.length===0)return!1;if(h[h.length-1].left)return!0;for(var _=h.length-1;_>0;--_)if(h[_-1].right===h[_])return!0;return!1}});function b(h,_){return h<_?-1:h>_?1:0}function T(h){return new c(h||b,null)}},3837(a,o,i){"use strict";a.exports=E;var l=i(4935),u=i(501),s=i(5304),f=i(6429),c=i(6444),p=new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]),x=ArrayBuffer,g=DataView;function w(R){return x.isView(R)&&!(R instanceof g)}function M(R){return Array.isArray(R)||w(R)}function m(R,z){return R[0]=z[0],R[1]=z[1],R[2]=z[2],R}function k(R){this.gl=R,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.tickFontStyle=["normal","normal","normal"],this.tickFontWeight=["normal","normal","normal"],this.tickFontVariant=["normal","normal","normal"],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","sans-serif","sans-serif"],this.labelFontStyle=["normal","normal","normal"],this.labelFontWeight=["normal","normal","normal"],this.labelFontVariant=["normal","normal","normal"],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=s(R)}var S=k.prototype;S.update=function(R){R=R||{};function z(Z,ie,Q){if(Q in R){var re=R[Q],ue=this[Q],ee;(Z?M(re)&&M(re[0]):M(re))?this[Q]=ee=[ie(re[0]),ie(re[1]),ie(re[2])]:this[Q]=ee=[ie(re),ie(re),ie(re)];for(var ae=0;ae<3;++ae)if(ee[ae]!==ue[ae])return!0}return!1}var I=z.bind(this,!1,Number),P=z.bind(this,!1,Boolean),L=z.bind(this,!1,String),F=z.bind(this,!0,function(Z){if(M(Z)){if(Z.length===3)return[+Z[0],+Z[1],+Z[2],1];if(Z.length===4)return[+Z[0],+Z[1],+Z[2],+Z[3]]}return[0,0,0,1]}),B,O=!1,V=!1;if("bounds"in R)for(var K=R.bounds,j=0;j<2;++j)for(var G=0;G<3;++G)K[j][G]!==this.bounds[j][G]&&(V=!0),this.bounds[j][G]=K[j][G];if("ticks"in R){B=R.ticks,O=!0,this.autoTicks=!1;for(var j=0;j<3;++j)this.tickSpacing[j]=0}else I("tickSpacing")&&(this.autoTicks=!0,V=!0);if(this._firstInit&&("ticks"in R||"tickSpacing"in R||(this.autoTicks=!0),V=!0,O=!0,this._firstInit=!1),V&&this.autoTicks&&(B=c.create(this.bounds,this.tickSpacing),O=!0),O){for(var j=0;j<3;++j)B[j].sort(function(ie,Q){return ie.x-Q.x});c.equal(B,this.ticks)?O=!1:this.ticks=B}P("tickEnable"),L("tickFont")&&(O=!0),L("tickFontStyle")&&(O=!0),L("tickFontWeight")&&(O=!0),L("tickFontVariant")&&(O=!0),I("tickSize"),I("tickAngle"),I("tickPad"),F("tickColor");var q=L("labels");L("labelFont")&&(q=!0),L("labelFontStyle")&&(q=!0),L("labelFontWeight")&&(q=!0),L("labelFontVariant")&&(q=!0),P("labelEnable"),I("labelSize"),I("labelPad"),F("labelColor"),P("lineEnable"),P("lineMirror"),I("lineWidth"),F("lineColor"),P("lineTickEnable"),P("lineTickMirror"),I("lineTickLength"),I("lineTickWidth"),F("lineTickColor"),P("gridEnable"),I("gridWidth"),F("gridColor"),P("zeroEnable"),F("zeroLineColor"),I("zeroLineWidth"),P("backgroundEnable"),F("backgroundColor");var J=[{family:this.labelFont[0],style:this.labelFontStyle[0],weight:this.labelFontWeight[0],variant:this.labelFontVariant[0]},{family:this.labelFont[1],style:this.labelFontStyle[1],weight:this.labelFontWeight[1],variant:this.labelFontVariant[1]},{family:this.labelFont[2],style:this.labelFontStyle[2],weight:this.labelFontWeight[2],variant:this.labelFontVariant[2]}],te=[{family:this.tickFont[0],style:this.tickFontStyle[0],weight:this.tickFontWeight[0],variant:this.tickFontVariant[0]},{family:this.tickFont[1],style:this.tickFontStyle[1],weight:this.tickFontWeight[1],variant:this.tickFontVariant[1]},{family:this.tickFont[2],style:this.tickFontStyle[2],weight:this.tickFontWeight[2],variant:this.tickFontVariant[2]}];this._text?this._text&&(q||O)&&this._text.update(this.bounds,this.labels,J,this.ticks,te):this._text=l(this.gl,this.bounds,this.labels,J,this.ticks,te),this._lines&&O&&(this._lines.dispose(),this._lines=null),this._lines||(this._lines=u(this.gl,this.bounds,this.ticks))};function b(){this.primalOffset=[0,0,0],this.primalMinor=[0,0,0],this.mirrorOffset=[0,0,0],this.mirrorMinor=[0,0,0]}var T=[new b,new b,new b];function h(R,z,I,P,L){for(var F=R.primalOffset,B=R.primalMinor,O=R.mirrorOffset,V=R.mirrorMinor,K=P[z],j=0;j<3;++j)if(z!==j){var G=F,q=O,J=B,te=V;K&1<0?(J[j]=-1,te[j]=0):(J[j]=0,te[j]=1)}}var _=[0,0,0],y={model:p,view:p,projection:p,_ortho:!1};S.isOpaque=function(){return!0},S.isTransparent=function(){return!1},S.drawTransparent=function(R){};var v=0,A=[0,0,0],d=[0,0,0],D=[0,0,0];S.draw=function(R){R=R||y;for(var Q=this.gl,z=R.model||p,I=R.view||p,P=R.projection||p,L=this.bounds,F=R._ortho||!1,B=f(z,I,P,L,F),O=B.cubeEdges,V=B.axis,K=I[12],j=I[13],G=I[14],q=I[15],J=F?2:1,te=J*this.pixelRatio*(P[3]*K+P[7]*j+P[11]*G+P[15]*q)/Q.drawingBufferHeight,Z=0;Z<3;++Z)this.lastCubeProps.cubeEdges[Z]=O[Z],this.lastCubeProps.axis[Z]=V[Z];for(var ie=T,Z=0;Z<3;++Z)h(T[Z],Z,this.bounds,O,V);for(var Q=this.gl,re=_,Z=0;Z<3;++Z)this.backgroundEnable[Z]?re[Z]=V[Z]:re[Z]=0;this._background.draw(z,I,P,L,re,this.backgroundColor),this._lines.bind(z,I,P,this);for(var Z=0;Z<3;++Z){var ue=[0,0,0];V[Z]>0?ue[Z]=L[1][Z]:ue[Z]=L[0][Z];for(var ee=0;ee<2;++ee){var ae=(Z+1+ee)%3,ce=(Z+1+(ee^1))%3;this.gridEnable[ae]&&this._lines.drawGrid(ae,ce,this.bounds,ue,this.gridColor[ae],this.gridWidth[ae]*this.pixelRatio)}for(var ee=0;ee<2;++ee){var ae=(Z+1+ee)%3,ce=(Z+1+(ee^1))%3;this.zeroEnable[ce]&&Math.min(L[0][ce],L[1][ce])<=0&&Math.max(L[0][ce],L[1][ce])>=0&&this._lines.drawZero(ae,ce,this.bounds,ue,this.zeroLineColor[ce],this.zeroLineWidth[ce]*this.pixelRatio)}}for(var Z=0;Z<3;++Z){this.lineEnable[Z]&&this._lines.drawAxisLine(Z,this.bounds,ie[Z].primalOffset,this.lineColor[Z],this.lineWidth[Z]*this.pixelRatio),this.lineMirror[Z]&&this._lines.drawAxisLine(Z,this.bounds,ie[Z].mirrorOffset,this.lineColor[Z],this.lineWidth[Z]*this.pixelRatio);for(var Te=m(A,ie[Z].primalMinor),ke=m(d,ie[Z].mirrorMinor),Se=this.lineTickLength,ee=0;ee<3;++ee){var ge=te/z[5*ee];Te[ee]*=Se[ee]*ge,ke[ee]*=Se[ee]*ge}this.lineTickEnable[Z]&&this._lines.drawAxisTicks(Z,ie[Z].primalOffset,Te,this.lineTickColor[Z],this.lineTickWidth[Z]*this.pixelRatio),this.lineTickMirror[Z]&&this._lines.drawAxisTicks(Z,ie[Z].mirrorOffset,ke,this.lineTickColor[Z],this.lineTickWidth[Z]*this.pixelRatio)}this._lines.unbind(),this._text.bind(z,I,P,this.pixelRatio);var Le,Ce=.5,le,Y;function $(be){Y=[0,0,0],Y[be]=1}function pe(be,ye,de){var xe=(be+1)%3,Ae=(be+2)%3,Pe=ye[xe],Fe=ye[Ae],Ye=de[xe],qe=de[Ae];if(Pe>0&&qe>0){$(xe);return}else if(Pe>0&&qe<0){$(xe);return}else if(Pe<0&&qe>0){$(xe);return}else if(Pe<0&&qe<0){$(xe);return}else if(Fe>0&&Ye>0){$(Ae);return}else if(Fe>0&&Ye<0){$(Ae);return}else if(Fe<0&&Ye>0){$(Ae);return}else if(Fe<0&&Ye<0){$(Ae);return}}for(var Z=0;Z<3;++Z){for(var oe=ie[Z].primalMinor,ve=ie[Z].mirrorMinor,he=m(D,ie[Z].primalOffset),ee=0;ee<3;++ee)this.lineTickEnable[Z]&&(he[ee]+=te*oe[ee]*Math.max(this.lineTickLength[ee],0)/z[5*ee]);var me=[0,0,0];if(me[Z]=1,this.tickEnable[Z]){this.tickAngle[Z]===-3600?(this.tickAngle[Z]=0,this.tickAlign[Z]="auto"):this.tickAlign[Z]=-1,le=1,Le=[this.tickAlign[Z],Ce,le],Le[0]==="auto"?Le[0]=v:Le[0]=parseInt(""+Le[0]),Y=[0,0,0],pe(Z,oe,ve);for(var ee=0;ee<3;++ee)he[ee]+=te*oe[ee]*this.tickPad[ee]/z[5*ee];this._text.drawTicks(Z,this.tickSize[Z],this.tickAngle[Z],he,this.tickColor[Z],me,Y,Le)}if(this.labelEnable[Z]){le=0,Y=[0,0,0],this.labels[Z].length>4&&($(Z),le=1),Le=[this.labelAlign[Z],Ce,le],Le[0]==="auto"?Le[0]=v:Le[0]=parseInt(""+Le[0]);for(var ee=0;ee<3;++ee)he[ee]+=te*oe[ee]*this.labelPad[ee]/z[5*ee];he[Z]+=.5*(L[0][Z]+L[1][Z]),this._text.drawLabel(Z,this.labelSize[Z],this.labelAngle[Z],he,this.labelColor[Z],[0,0,0],Y,Le)}}this._text.unbind()},S.dispose=function(){this._text.dispose(),this._lines.dispose(),this._background.dispose(),this._lines=null,this._text=null,this._background=null,this.gl=null};function E(R,z){var I=new k(R);return I.update(z),I}},5304(a,o,i){"use strict";a.exports=p;var l=i(2762),u=i(8116),s=i(1879).bg;function f(x,g,w,M){this.gl=x,this.buffer=g,this.vao=w,this.shader=M}var c=f.prototype;c.draw=function(x,g,w,M,m,k){for(var S=!1,b=0;b<3;++b)S=S||m[b];if(S){var T=this.gl;T.enable(T.POLYGON_OFFSET_FILL),T.polygonOffset(1,2),this.shader.bind(),this.shader.uniforms={model:x,view:g,projection:w,bounds:M,enable:m,colors:k},this.vao.bind(),this.vao.draw(this.gl.TRIANGLES,36),this.vao.unbind(),T.disable(T.POLYGON_OFFSET_FILL)}},c.dispose=function(){this.vao.dispose(),this.buffer.dispose(),this.shader.dispose()};function p(x){for(var g=[],w=[],M=0,m=0;m<3;++m)for(var k=(m+1)%3,S=(m+2)%3,b=[0,0,0],T=[0,0,0],h=-1;h<=1;h+=2){w.push(M,M+2,M+1,M+1,M+2,M+3),b[m]=h,T[m]=h;for(var _=-1;_<=1;_+=2){b[k]=_;for(var y=-1;y<=1;y+=2)b[S]=y,g.push(b[0],b[1],b[2],T[0],T[1],T[2]),M+=1}var v=k;k=S,S=v}var A=l(x,new Float32Array(g)),d=l(x,new Uint16Array(w),x.ELEMENT_ARRAY_BUFFER),D=u(x,[{buffer:A,type:x.FLOAT,size:3,offset:0,stride:24},{buffer:A,type:x.FLOAT,size:3,offset:12,stride:24}],d),E=s(x);return E.attributes.position.location=0,E.attributes.normal.location=1,new f(x,A,D,E)}},6429(a,o,i){"use strict";a.exports=h;var l=i(8828),u=i(6760),s=i(5202),f=i(3250),c=new Array(16),p=new Array(8),x=new Array(8),g=new Array(3),w=[0,0,0];(function(){for(var _=0;_<8;++_)p[_]=[1,1,1,1],x[_]=[1,1,1]})();function M(_,y,v){for(var A=0;A<4;++A){_[A]=v[12+A];for(var d=0;d<3;++d)_[A]+=y[d]*v[4*d+A]}}var m=[[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 k(_){for(var y=0;yV&&(I|=1<V){I|=1<x[E][1])&&(ie=E);for(var Q=-1,E=0;E<3;++E){var re=ie^1<x[ue][0]&&(ue=re)}}var ee=S;ee[0]=ee[1]=ee[2]=0,ee[l.log2(Q^ie)]=ie&Q,ee[l.log2(ie^ue)]=ie&ue;var ae=ue^7;ae===I||ae===Z?(ae=Q^7,ee[l.log2(ue^ae)]=ae&ue):ee[l.log2(Q^ae)]=ae&Q;for(var ce=b,Te=I,F=0;F<3;++F)Te&1<{var UY=Object.create;var sf=Object.defineProperty,HY=Object.defineProperties,VY=Object.getOwnPropertyDescriptor,GY=Object.getOwnPropertyDescriptors,YY=Object.getOwnPropertyNames,Vv=Object.getOwnPropertySymbols,XY=Object.getPrototypeOf,sg=Object.prototype.hasOwnProperty,J_=Object.prototype.propertyIsEnumerable;var Z_=(e,r,t)=>r in e?sf(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,wt=(e,r)=>{for(var t in r||(r={}))sg.call(r,t)&&Z_(e,t,r[t]);if(Vv)for(var t of Vv(r))J_.call(r,t)&&Z_(e,t,r[t]);return e},Ot=(e,r)=>HY(e,GY(r));var $_=(e,r)=>{var t={};for(var n in e)sg.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&Vv)for(var n of Vv(e))r.indexOf(n)<0&&J_.call(e,n)&&(t[n]=e[n]);return t};var Ut=(e,r,t)=>()=>{if(t)throw t[0];try{return e&&(r=e(e=0)),r}catch(n){throw t=[n],n}};var xe=(e,r)=>()=>{try{return r||e((r={exports:{}}).exports,r),r.exports}catch(t){throw r=0,t}},Ht=(e,r)=>{for(var t in r)sf(e,t,{get:r[t],enumerable:!0})},K_=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let a of YY(r))!sg.call(e,a)&&a!==t&&sf(e,a,{get:()=>r[a],enumerable:!(n=VY(r,a))||n.enumerable});return e};var Q_=(e,r,t)=>(t=e!=null?UY(XY(e)):{},K_(r||!e||!e.__esModule?sf(t,"default",{value:e,enumerable:!0}):t,e)),or=e=>K_(sf({},"__esModule",{value:!0}),e);var j_=(e,r,t)=>new Promise((n,a)=>{var o=u=>{try{l(t.next(u))}catch(s){a(s)}},i=u=>{try{l(t.throw(u))}catch(s){a(s)}},l=u=>u.done?n(u.value):Promise.resolve(u.value).then(o,i);l((t=t.apply(e,r)).next())});var uf=xe(e7=>{"use strict";e7.version="4.2.0"});var t7=xe((r7,Gv)=>{(function(r,t,n){t[r]=t[r]||n(),typeof Gv!="undefined"&&Gv.exports&&(Gv.exports=t[r])})("Promise",typeof window!="undefined"?window:r7,function(){"use strict";var r,t,n,a=Object.prototype.toString,o=typeof setImmediate!="undefined"?function(k){return setImmediate(k)}:setTimeout;try{Object.defineProperty({},"x",{}),r=function(k,S,b,M){return Object.defineProperty(k,S,{value:b,writable:!0,configurable:M!==!1})}}catch(m){r=function(S,b,M){return S[b]=M,S}}n=(function(){var k,S,b;function M(d,w){this.fn=d,this.self=w,this.next=void 0}return{add:function(w,y){b=new M(w,y),S?S.next=b:k=b,S=b,b=void 0},drain:function(){var w=k;for(k=S=t=void 0;w;)w.fn.call(w.self),w=w.next}}})();function i(m,k){n.add(m,k),t||(t=o(n.drain))}function l(m){var k,S=typeof m;return m!=null&&(S=="object"||S=="function")&&(k=m.then),typeof k=="function"?k:!1}function u(){for(var m=0;m0&&i(u,S))}catch(b){c.call(new x(S),b)}}}function c(m){var k=this;k.triggered||(k.triggered=!0,k.def&&(k=k.def),k.msg=m,k.state=2,k.chain.length>0&&i(u,k))}function g(m,k,S,b){for(var M=0;M{(function(){var e={version:"3.8.2"},r=[].slice,t=function(C){return r.call(C)},n=self.document;function a(C){return C&&(C.ownerDocument||C.document||C).documentElement}function o(C){return C&&(C.ownerDocument&&C.ownerDocument.defaultView||C.document&&C||C.defaultView)}if(n)try{t(n.documentElement.childNodes)[0].nodeType}catch(C){t=function(N){for(var U=N.length,H=new Array(U);U--;)H[U]=N[U];return H}}if(Date.now||(Date.now=function(){return+new Date}),n)try{n.createElement("DIV").style.setProperty("opacity",0,"")}catch(C){var i=this.Element.prototype,l=i.setAttribute,u=i.setAttributeNS,s=this.CSSStyleDeclaration.prototype,f=s.setProperty;i.setAttribute=function(N,U){l.call(this,N,U+"")},i.setAttributeNS=function(N,U,H){u.call(this,N,U,H+"")},s.setProperty=function(N,U,H){f.call(this,N,U+"",H)}}e.ascending=c;function c(C,N){return CN?1:C>=N?0:NaN}e.descending=function(C,N){return NC?1:N>=C?0:NaN},e.min=function(C,N){var U=-1,H=C.length,Y,W;if(arguments.length===1){for(;++U=W){Y=W;break}for(;++UW&&(Y=W)}else{for(;++U=W){Y=W;break}for(;++UW&&(Y=W)}return Y},e.max=function(C,N){var U=-1,H=C.length,Y,W;if(arguments.length===1){for(;++U=W){Y=W;break}for(;++UY&&(Y=W)}else{for(;++U=W){Y=W;break}for(;++UY&&(Y=W)}return Y},e.extent=function(C,N){var U=-1,H=C.length,Y,W,le;if(arguments.length===1){for(;++U=W){Y=le=W;break}for(;++UW&&(Y=W),le=W){Y=le=W;break}for(;++UW&&(Y=W),le1)return le/(ce-1)},e.deviation=function(){var C=e.variance.apply(this,arguments);return C&&Math.sqrt(C)};function h(C){return{left:function(N,U,H,Y){for(arguments.length<3&&(H=0),arguments.length<4&&(Y=N.length);H>>1;C(N[W],U)<0?H=W+1:Y=W}return H},right:function(N,U,H,Y){for(arguments.length<3&&(H=0),arguments.length<4&&(Y=N.length);H>>1;C(N[W],U)>0?Y=W:H=W+1}return H}}}var _=h(c);e.bisectLeft=_.left,e.bisect=e.bisectRight=_.right,e.bisector=function(C){return h(C.length===1?function(N,U){return c(C(N),U)}:C)},e.shuffle=function(C,N,U){(H=arguments.length)<3&&(U=C.length,H<2&&(N=0));for(var H=U-N,Y,W;H;)W=Math.random()*H--|0,Y=C[H+N],C[H+N]=C[W+N],C[W+N]=Y;return C},e.permute=function(C,N){for(var U=N.length,H=new Array(U);U--;)H[U]=C[N[U]];return H},e.pairs=function(C){for(var N=0,U=C.length-1,H,Y=C[0],W=new Array(U<0?0:U);N=0;)for(le=C[N],U=le.length;--U>=0;)W[--Y]=le[U];return W};var m=Math.abs;e.range=function(C,N,U){if(arguments.length<3&&(U=1,arguments.length<2&&(N=C,C=0)),(N-C)/U===1/0)throw new Error("infinite range");var H=[],Y=k(m(U)),W=-1,le;if(C*=Y,N*=Y,U*=Y,U<0)for(;(le=C+U*++W)>N;)H.push(le/Y);else for(;(le=C+U*++W)=N.length)return Y?Y.call(C,ce):H?ce.sort(H):ce;for(var Me=-1,De=ce.length,Fe=N[_e++],Ge,Je,Ie,Ne=new b,Be;++Me=N.length)return ne;var _e=[],Me=U[ce++];return ne.forEach(function(De,Fe){_e.push({key:De,values:le(Fe,ce)})}),Me?_e.sort(function(De,Fe){return Me(De.key,Fe.key)}):_e}return C.map=function(ne,ce){return W(ce,ne,0)},C.entries=function(ne){return le(W(e.map,ne,0),0)},C.key=function(ne){return N.push(ne),C},C.sortKeys=function(ne){return U[N.length-1]=ne,C},C.sortValues=function(ne){return H=ne,C},C.rollup=function(ne){return Y=ne,C},C},e.set=function(C){var N=new R;if(C)for(var U=0,H=C.length;U=0&&(H=C.slice(U+1),C=C.slice(0,U)),C)return arguments.length<2?this[C].on(H):this[C].on(H,N);if(arguments.length===2){if(N==null)for(C in this)this.hasOwnProperty(C)&&this[C].on(H,null);return this}};function O(C){var N=[],U=new b;function H(){for(var Y=N,W=-1,le=Y.length,ne;++W=0&&(U=C.slice(0,N))!=="xmlns"&&(C=C.slice(N+1)),ie.hasOwnProperty(U)?{space:ie[U],local:C}:C}},Q.attr=function(C,N){if(arguments.length<2){if(typeof C=="string"){var U=this.node();return C=e.ns.qualify(C),C.local?U.getAttributeNS(C.space,C.local):U.getAttribute(C)}for(N in C)this.each(fe(N,C[N]));return this}return this.each(fe(C,N))};function fe(C,N){C=e.ns.qualify(C);function U(){this.removeAttribute(C)}function H(){this.removeAttributeNS(C.space,C.local)}function Y(){this.setAttribute(C,N)}function W(){this.setAttributeNS(C.space,C.local,N)}function le(){var ce=N.apply(this,arguments);ce==null?this.removeAttribute(C):this.setAttribute(C,ce)}function ne(){var ce=N.apply(this,arguments);ce==null?this.removeAttributeNS(C.space,C.local):this.setAttributeNS(C.space,C.local,ce)}return N==null?C.local?H:U:typeof N=="function"?C.local?ne:le:C.local?W:Y}function we(C){return C.trim().replace(/\s+/g," ")}Q.classed=function(C,N){if(arguments.length<2){if(typeof C=="string"){var U=this.node(),H=(C=ke(C)).length,Y=-1;if(N=U.classList){for(;++Y=0;)(W=U[H])&&(Y&&Y!==W.nextSibling&&Y.parentNode.insertBefore(W,Y),Y=W);return this},Q.sort=function(C){C=de.apply(this,arguments);for(var N=-1,U=this.length;++N=N&&(N=Y+1);!(ce=le[N])&&++N0&&(C=C.slice(0,Y));var le=be.get(C);le&&(C=le,W=Re);function ne(){var Me=this[H];Me&&(this.removeEventListener(C,Me,Me.$),delete this[H])}function ce(){var Me=W(N,t(arguments));ne.call(this),this.addEventListener(C,this[H]=Me,Me.$=U),Me._=N}function _e(){var Me=new RegExp("^__on([^.]+)"+e.requote(C)+"$"),De;for(var Fe in this)if(De=Fe.match(Me)){var Ge=this[Fe];this.removeEventListener(De[1],Ge,Ge.$),delete this[Fe]}}return Y?N?ce:ne:N?I:_e}var be=e.map({mouseenter:"mouseover",mouseleave:"mouseout"});n&&be.forEach(function(C){"on"+C in n&&be.remove(C)});function Ae(C,N){return function(U){var H=e.event;e.event=U,N[0]=this.__data__;try{C.apply(this,N)}finally{e.event=H}}}function Re(C,N){var U=Ae(C,N);return function(H){var Y=this,W=H.relatedTarget;(!W||W!==Y&&!(W.compareDocumentPosition(Y)&8))&&U.call(Y,H)}}var Pe,Ye=0;function Ve(C){var N=".dragsuppress-"+ ++Ye,U="click"+N,H=e.select(o(C)).on("touchmove"+N,G).on("dragstart"+N,G).on("selectstart"+N,G);if(Pe==null&&(Pe="onselectstart"in C?!1:P(C.style,"userSelect")),Pe){var Y=a(C).style,W=Y[Pe];Y[Pe]="none"}return function(le){if(H.on(N,null),Pe&&(Y[Pe]=W),le){var ne=function(){H.on(U,null)};H.on(U,function(){G(),ne()},!0),setTimeout(ne,0)}}}e.mouse=function(C){return qe(C,J())};var Ue=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;function qe(C,N){N.changedTouches&&(N=N.changedTouches[0]);var U=C.ownerSVGElement||C;if(U.createSVGPoint){var H=U.createSVGPoint();if(Ue<0){var Y=o(C);if(Y.scrollX||Y.scrollY){U=e.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var W=U[0][0].getScreenCTM();Ue=!(W.f||W.e),U.remove()}}return Ue?(H.x=N.pageX,H.y=N.pageY):(H.x=N.clientX,H.y=N.clientY),H=H.matrixTransform(C.getScreenCTM().inverse()),[H.x,H.y]}var le=C.getBoundingClientRect();return[N.clientX-le.left-C.clientLeft,N.clientY-le.top-C.clientTop]}e.touch=function(C,N,U){if(arguments.length<3&&(U=N,N=J().changedTouches),N){for(var H=0,Y=N.length,W;H0?1:C<0?-1:0}function wr(C,N,U){return(N[0]-C[0])*(U[1]-C[1])-(N[1]-C[1])*(U[0]-C[0])}function Xr(C){return C>1?0:C<-1?nr:Math.acos(C)}function Tr(C){return C>1?Ce:C<-1?-Ce:Math.asin(C)}function Pr(C){return((C=Math.exp(C))-1/C)/2}function at(C){return((C=Math.exp(C))+1/C)/2}function Ar(C){return((C=Math.exp(2*C))-1)/(C+1)}function Hr(C){return(C=Math.sin(C/2))*C}var ot=Math.SQRT2,Ir=2,Jr=4;e.interpolateZoom=function(C,N){var U=C[0],H=C[1],Y=C[2],W=N[0],le=N[1],ne=N[2],ce=W-U,_e=le-H,Me=ce*ce+_e*_e,De,Fe;if(Me0&&(cr=cr.transition().duration(le)),cr.call($e.event)}function br(){Ne&&Ne.domain(Ie.range().map(function(cr){return(cr-C.x)/C.k}).map(Ie.invert)),Ze&&Ze.domain(Be.range().map(function(cr){return(cr-C.y)/C.k}).map(Be.invert))}function xr(cr){ne++||cr({type:"zoomstart"})}function Br(cr){br(),cr({type:"zoom",scale:C.k,translate:[C.x,C.y]})}function Mr(cr){--ne||(cr({type:"zoomend"}),U=null)}function Fr(){var cr=this,Or=Je.of(cr,arguments),Gr=0,gt=e.select(o(cr)).on(_e,Bn).on(Me,ia),$t=He(e.mouse(cr)),gn=Ve(cr);Bv.call(cr),xr(Or);function Bn(){Gr=1,gr(e.mouse(cr),$t),Br(Or)}function ia(){gt.on(_e,null).on(Me,null),gn(Gr),Mr(Or)}}function pt(){var cr=this,Or=Je.of(cr,arguments),Gr={},gt=0,$t,gn=".zoom-"+e.event.changedTouches[0].identifier,Bn="touchmove"+gn,ia="touchend"+gn,ma=[],oa=e.select(cr),Ta=Ve(cr);Aa(),xr(Or),oa.on(ce,null).on(Fe,Aa);function Xn(){var Mi=e.touches(cr);return $t=C.k,Mi.forEach(function(On){On.identifier in Gr&&(Gr[On.identifier]=He(On))}),Mi}function Aa(){var Mi=e.event.target;e.select(Mi).on(Bn,os).on(ia,OY),ma.push(Mi);for(var On=e.event.changedTouches,ja=0,Qi=On.length;ja1){var ls=ei[0],nl=ei[1],Hv=ls[0]-nl[0],W_=ls[1]-nl[1];gt=Hv*Hv+W_*W_}}function os(){var Mi=e.touches(cr),On,ja,Qi,ei;Bv.call(cr);for(var _0=0,ls=Mi.length;_01?1:N,U=U<0?0:U>1?1:U,Y=U<=.5?U*(1+N):U+N-U*N,H=2*U-Y;function W(ne){return ne>360?ne-=360:ne<0&&(ne+=360),ne<60?H+(Y-H)*ne/60:ne<180?Y:ne<240?H+(Y-H)*(240-ne)/60:H}function le(ne){return Math.round(W(ne)*255)}return new nn(le(C+120),le(C),le(C-120))}e.hcl=st;function st(C,N,U){return this instanceof st?(this.h=+C,this.c=+N,void(this.l=+U)):arguments.length<2?C instanceof st?new st(C.h,C.c,C.l):C instanceof it?xi(C.l,C.a,C.b):xi((C=Mv((C=e.rgb(C)).r,C.g,C.b)).l,C.a,C.b):new st(C,N,U)}var mt=st.prototype=new qt;mt.brighter=function(C){return new st(this.h,this.c,Math.min(100,this.l+vt*(arguments.length?C:1)))},mt.darker=function(C){return new st(this.h,this.c,Math.max(0,this.l-vt*(arguments.length?C:1)))},mt.rgb=function(){return St(this.h,this.c,this.l).rgb()};function St(C,N,U){return isNaN(C)&&(C=0),isNaN(N)&&(N=0),new it(U,Math.cos(C*=ze)*N,Math.sin(C)*N)}e.lab=it;function it(C,N,U){return this instanceof it?(this.l=+C,this.a=+N,void(this.b=+U)):arguments.length<2?C instanceof it?new it(C.l,C.a,C.b):C instanceof st?St(C.h,C.c,C.l):Mv((C=nn(C)).r,C.g,C.b):new it(C,N,U)}var vt=18,Bt=.95047,Gn=1,Yn=1.08883,_n=it.prototype=new qt;_n.brighter=function(C){return new it(Math.min(100,this.l+vt*(arguments.length?C:1)),this.a,this.b)},_n.darker=function(C){return new it(Math.max(0,this.l-vt*(arguments.length?C:1)),this.a,this.b)},_n.rgb=function(){return Ct(this.l,this.a,this.b)};function Ct(C,N,U){var H=(C+16)/116,Y=H+N/500,W=H-U/200;return Y=tn(Y)*Bt,H=tn(H)*Gn,W=tn(W)*Yn,new nn(_i(3.2404542*Y-1.5371385*H-.4985314*W),_i(-.969266*Y+1.8760108*H+.041556*W),_i(.0556434*Y-.2040259*H+1.0572252*W))}function xi(C,N,U){return C>0?new st(Math.atan2(U,N)*Ke,Math.sqrt(N*N+U*U),C):new st(NaN,NaN,C)}function tn(C){return C>.206893034?C*C*C:(C-4/29)/7.787037}function $a(C){return C>.008856?Math.pow(C,1/3):7.787037*C+4/29}function _i(C){return Math.round(255*(C<=.00304?12.92*C:1.055*Math.pow(C,1/2.4)-.055))}e.rgb=nn;function nn(C,N,U){return this instanceof nn?(this.r=~~C,this.g=~~N,void(this.b=~~U)):arguments.length<2?C instanceof nn?new nn(C.r,C.g,C.b):_v(""+C,nn,Vr):new nn(C,N,U)}function el(C){return new nn(C>>16,C>>8&255,C&255)}function Ji(C){return el(C)+""}var $i=nn.prototype=new qt;$i.brighter=function(C){C=Math.pow(.7,arguments.length?C:1);var N=this.r,U=this.g,H=this.b,Y=30;return!N&&!U&&!H?new nn(Y,Y,Y):(N&&N>4,H=H>>4|H,Y=ce&240,Y=Y>>4|Y,W=ce&15,W=W<<4|W):C.length===7&&(H=(ce&16711680)>>16,Y=(ce&65280)>>8,W=ce&255)),N(H,Y,W))}function wv(C,N,U){var H=Math.min(C/=255,N/=255,U/=255),Y=Math.max(C,N,U),W=Y-H,le,ne,ce=(Y+H)/2;return W?(ne=ce<.5?W/(Y+H):W/(2-Y-H),C==Y?le=(N-U)/W+(N0&&ce<1?0:le),new lr(le,ne,ce)}function Mv(C,N,U){C=$u(C),N=$u(N),U=$u(U);var H=$a((.4124564*C+.3575761*N+.1804375*U)/Bt),Y=$a((.2126729*C+.7151522*N+.072175*U)/Gn),W=$a((.0193339*C+.119192*N+.9503041*U)/Yn);return it(116*Y-16,500*(H-Y),200*(Y-W))}function $u(C){return(C/=255)<=.04045?C/12.92:Math.pow((C+.055)/1.055,2.4)}function Ku(C){var N=parseFloat(C);return C.charAt(C.length-1)==="%"?Math.round(N*2.55):N}var Sr=e.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});Sr.forEach(function(C,N){Sr.set(C,el(N))});function kr(C){return typeof C=="function"?C:function(){return C}}e.functor=kr,e.xhr=yt(F);function yt(C){return function(N,U,H){return arguments.length===2&&typeof U=="function"&&(H=U,U=null),dr(N,U,C,H)}}function dr(C,N,U,H){var Y={},W=e.dispatch("beforesend","progress","load","error"),le={},ne=new XMLHttpRequest,ce=null;self.XDomainRequest&&!("withCredentials"in ne)&&/^(http(s)?:)?\/\//.test(C)&&(ne=new XDomainRequest),"onload"in ne?ne.onload=ne.onerror=_e:ne.onreadystatechange=function(){ne.readyState>3&&_e()};function _e(){var Me=ne.status,De;if(!Me&&Dt(ne)||Me>=200&&Me<300||Me===304){try{De=U.call(Y,ne)}catch(Fe){W.error.call(Y,Fe);return}W.load.call(Y,De)}else W.error.call(Y,ne)}return ne.onprogress=function(Me){var De=e.event;e.event=Me;try{W.progress.call(Y,ne)}finally{e.event=De}},Y.header=function(Me,De){return Me=(Me+"").toLowerCase(),arguments.length<2?le[Me]:(De==null?delete le[Me]:le[Me]=De+"",Y)},Y.mimeType=function(Me){return arguments.length?(N=Me==null?null:Me+"",Y):N},Y.responseType=function(Me){return arguments.length?(ce=Me,Y):ce},Y.response=function(Me){return U=Me,Y},["get","post"].forEach(function(Me){Y[Me]=function(){return Y.send.apply(Y,[Me].concat(t(arguments)))}}),Y.send=function(Me,De,Fe){if(arguments.length===2&&typeof De=="function"&&(Fe=De,De=null),ne.open(Me,C,!0),N!=null&&!("accept"in le)&&(le.accept=N+",*/*"),ne.setRequestHeader)for(var Ge in le)ne.setRequestHeader(Ge,le[Ge]);return N!=null&&ne.overrideMimeType&&ne.overrideMimeType(N),ce!=null&&(ne.responseType=ce),Fe!=null&&Y.on("error",Fe).on("load",function(Je){Fe(null,Je)}),W.beforesend.call(Y,ne),ne.send(De==null?null:De),Y},Y.abort=function(){return ne.abort(),Y},e.rebind(Y,W,"on"),H==null?Y:Y.get(aa(H))}function aa(C){return C.length===1?function(N,U){C(N==null?U:null)}:C}function Dt(C){var N=C.responseType;return N&&N!=="text"?C.response:C.responseText}e.dsv=function(C,N){var U=new RegExp('["'+C+` +]`),H=C.charCodeAt(0);function Y(_e,Me,De){arguments.length<3&&(De=Me,Me=null);var Fe=dr(_e,N,Me==null?W:le(Me),De);return Fe.row=function(Ge){return arguments.length?Fe.response((Me=Ge)==null?W:le(Ge)):Me},Fe}function W(_e){return Y.parse(_e.responseText)}function le(_e){return function(Me){return Y.parse(Me.responseText,_e)}}Y.parse=function(_e,Me){var De;return Y.parseRows(_e,function(Fe,Ge){if(De)return De(Fe,Ge-1);var Je=function(Ie){for(var Ne={},Be=Fe.length,Ze=0;Ze=Je)return Fe;if(Ze)return Ze=!1,De;var ir=Ie;if(_e.charCodeAt(ir)===34){for(var hr=ir;hr++24?(isFinite(N)&&(clearTimeout(ts),ts=setTimeout(Pp,N)),Ka=0):(Ka=1,F6(Pp))}e.timer.flush=function(){P6(),I6()};function P6(){for(var C=Date.now(),N=Nn;N;)C>=N.t&&N.c(C-N.t)&&(N.c=null),N=N.n;return C}function I6(){for(var C,N=Nn,U=1/0;N;)N.c?(N.t=0;--ne)Ie.push(Y[_e[De[ne]][2]]);for(ne=+Ge;ne1&&wr(C[U[H-2]],C[U[H-1]],C[Y])<=0;)--H;U[H++]=Y}return U.slice(0,H)}function VV(C,N){return C[0]-N[0]||C[1]-N[1]}e.geom.polygon=function(C){return q(C,Av),C};var Av=e.geom.polygon.prototype=[];Av.area=function(){for(var C=-1,N=this.length,U,H=this[N-1],Y=0;++CXe)ne=ne.L;else if(le=N-WV(ne,U),le>Xe){if(!ne.R){H=ne;break}ne=ne.R}else{W>-Xe?(H=ne.P,Y=ne):le>-Xe?(H=ne,Y=ne.N):H=Y=ne;break}var ce=O6(C);if(y0.insert(H,ce),!(!H&&!Y)){if(H===Y){b0(H),Y=O6(H.site),y0.insert(ce,Y),ce.edge=Y.edge=ef(H.site,ce.site),m0(H),m0(Y);return}if(!Y){ce.edge=ef(H.site,ce.site);return}b0(H),b0(Y);var _e=H.site,Me=_e.x,De=_e.y,Fe=C.x-Me,Ge=C.y-De,Je=Y.site,Ie=Je.x-Me,Ne=Je.y-De,Be=2*(Fe*Ne-Ge*Ie),Ze=Fe*Fe+Ge*Ge,$e=Ie*Ie+Ne*Ne,He={x:(Ne*Ze-Ge*$e)/Be+Me,y:(Fe*$e-Ie*Ze)/Be+De};kv(Y.edge,_e,Je,He),ce.edge=ef(_e,C,null,He),Y.edge=ef(C,Je,null,He),m0(H),m0(Y)}}function U6(C,N){var U=C.site,H=U.x,Y=U.y,W=Y-N;if(!W)return H;var le=C.P;if(!le)return-1/0;U=le.site;var ne=U.x,ce=U.y,_e=ce-N;if(!_e)return ne;var Me=ne-H,De=1/W-1/_e,Fe=Me/_e;return De?(-Fe+Math.sqrt(Fe*Fe-2*De*(Me*Me/(-2*_e)-ce+_e/2+Y-W/2)))/De+H:(H+ne)/2}function WV(C,N){var U=C.N;if(U)return U6(U,N);var H=C.site;return H.y===N?H.x:1/0}function H6(C){this.site=C,this.edges=[]}H6.prototype.prepare=function(){for(var C=this.edges,N=C.length,U;N--;)U=C[N].edge,(!U.b||!U.a)&&C.splice(N,1);return C.sort(V6),C.length};function ZV(C){for(var N=C[0][0],U=C[1][0],H=C[0][1],Y=C[1][1],W,le,ne,ce,_e=ns,Me=_e.length,De,Fe,Ge,Je,Ie,Ne;Me--;)if(De=_e[Me],!(!De||!De.prepare()))for(Ge=De.edges,Je=Ge.length,Fe=0;FeXe||m(ce-le)>Xe)&&(Ge.splice(Fe,0,new Sv(jV(De.site,Ne,m(ne-N)Xe?{x:N,y:m(W-N)Xe?{x:m(le-Y)Xe?{x:U,y:m(W-U)Xe?{x:m(le-H)=-er)){var Fe=ce*ce+_e*_e,Ge=Me*Me+Ne*Ne,Je=(Ne*Fe-_e*Ge)/De,Ie=(ce*Ge-Me*Fe)/De,Ne=Ie+ne,Be=B6.pop()||new JV;Be.arc=C,Be.site=Y,Be.x=Je+le,Be.y=Ne+Math.sqrt(Je*Je+Ie*Ie),Be.cy=Ne,C.circle=Be;for(var Ze=null,$e=ju._;$e;)if(Be.y<$e.y||Be.y===$e.y&&Be.x<=$e.x)if($e.L)$e=$e.L;else{Ze=$e.P;break}else if($e.R)$e=$e.R;else{Ze=$e;break}ju.insert(Ze,Be),Ze||(Np=Be)}}}}function b0(C){var N=C.circle;N&&(N.P||(Np=N.N),ju.remove(N),B6.push(N),Cv(N),C.circle=null)}function $V(C,N,U,H){return function(Y){var W=Y.a,le=Y.b,ne=W.x,ce=W.y,_e=le.x,Me=le.y,De=0,Fe=1,Ge=_e-ne,Je=Me-ce,Ie;if(Ie=C-ne,!(!Ge&&Ie>0)){if(Ie/=Ge,Ge<0){if(Ie0){if(Ie>Fe)return;Ie>De&&(De=Ie)}if(Ie=U-ne,!(!Ge&&Ie<0)){if(Ie/=Ge,Ge<0){if(Ie>Fe)return;Ie>De&&(De=Ie)}else if(Ge>0){if(Ie0)){if(Ie/=Je,Je<0){if(Ie0){if(Ie>Fe)return;Ie>De&&(De=Ie)}if(Ie=H-ce,!(!Je&&Ie<0)){if(Ie/=Je,Je<0){if(Ie>Fe)return;Ie>De&&(De=Ie)}else if(Je>0){if(Ie0&&(Y.a={x:ne+De*Ge,y:ce+De*Je}),Fe<1&&(Y.b={x:ne+Fe*Ge,y:ce+Fe*Je}),Y}}}}}}function KV(C){for(var N=g0,U=$V(C[0][0],C[0][1],C[1][0],C[1][1]),H=N.length,Y;H--;)Y=N[H],(!QV(Y,C)||!U(Y)||m(Y.a.x-Y.b.x)=W)return;if(Me>Fe){if(!H)H={x:Je,y:le};else if(H.y>=ne)return;U={x:Je,y:ne}}else{if(!H)H={x:Je,y:ne};else if(H.y1)if(Me>Fe){if(!H)H={x:(le-Be)/Ne,y:le};else if(H.y>=ne)return;U={x:(ne-Be)/Ne,y:ne}}else{if(!H)H={x:(ne-Be)/Ne,y:ne};else if(H.y=W)return;U={x:W,y:Ne*W+Be}}else{if(!H)H={x:W,y:Ne*W+Be};else if(H.x=Me&&Be.x<=Fe&&Be.y>=De&&Be.y<=Ge?[[Me,Ge],[Fe,Ge],[Fe,De],[Me,De]]:[];Ze.point=ce[Ie]}),_e}function ne(ce){return ce.map(function(_e,Me){return{x:Math.round(H(_e,Me)/Xe)*Xe,y:Math.round(Y(_e,Me)/Xe)*Xe,i:Me}})}return le.links=function(ce){return Op(ne(ce)).edges.filter(function(_e){return _e.l&&_e.r}).map(function(_e){return{source:ce[_e.l.i],target:ce[_e.r.i]}})},le.triangles=function(ce){var _e=[];return Op(ne(ce)).cells.forEach(function(Me,De){for(var Fe=Me.site,Ge=Me.edges.sort(V6),Je=-1,Ie=Ge.length,Ne,Be,Ze=Ge[Ie-1].edge,$e=Ze.l===Fe?Ze.r:Ze.l;++Je$e&&($e=Me.x),Me.y>He&&(He=Me.y),Ge.push(Me.x),Je.push(Me.y);else for(Ie=0;Ie$e&&($e=ir),hr>He&&(He=hr),Ge.push(ir),Je.push(hr)}var gr=$e-Be,pr=He-Ze;gr>pr?He=Ze+gr:$e=Be+pr;function br(Mr,Fr,pt,an,bt,cr,Or,Gr){if(!(isNaN(pt)||isNaN(an)))if(Mr.leaf){var gt=Mr.x,$t=Mr.y;if(gt!=null)if(m(gt-pt)+m($t-an)<.01)xr(Mr,Fr,pt,an,bt,cr,Or,Gr);else{var gn=Mr.point;Mr.x=Mr.y=Mr.point=null,xr(Mr,gn,gt,$t,bt,cr,Or,Gr),xr(Mr,Fr,pt,an,bt,cr,Or,Gr)}else Mr.x=pt,Mr.y=an,Mr.point=Fr}else xr(Mr,Fr,pt,an,bt,cr,Or,Gr)}function xr(Mr,Fr,pt,an,bt,cr,Or,Gr){var gt=(bt+Or)*.5,$t=(cr+Gr)*.5,gn=pt>=gt,Bn=an>=$t,ia=Bn<<1|gn;Mr.leaf=!1,Mr=Mr.nodes[ia]||(Mr.nodes[ia]=X6()),gn?bt=gt:Or=gt,Bn?cr=$t:Gr=$t,br(Mr,Fr,pt,an,bt,cr,Or,Gr)}var Br=X6();if(Br.add=function(Mr){br(Br,Mr,+De(Mr,++Ie),+Fe(Mr,Ie),Be,Ze,$e,He)},Br.visit=function(Mr){nf(Mr,Br,Be,Ze,$e,He)},Br.find=function(Mr){return aG(Br,Mr[0],Mr[1],Be,Ze,$e,He)},Ie=-1,N==null){for(;++IeW||Fe>le||Ge=ir,pr=U>=hr,br=pr<<1|gr,xr=br+4;brU&&(W=N.slice(U,W),ne[le]?ne[le]+=W:ne[++le]=W),(H=H[0])===(Y=Y[0])?ne[le]?ne[le]+=Y:ne[++le]=Y:(ne[++le]=null,ce.push({i:le,x:Co(H,Y)})),U=Vp.lastIndex;return U=0&&!(H=e.interpolators[U](C,N)););return H}e.interpolators=[function(C,N){var U=typeof N;return(U==="string"?Sr.has(N.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(N)?Up:Z6:N instanceof qt?Up:Array.isArray(N)?Lv:U==="object"&&isNaN(N)?W6:Co)(C,N)}],e.interpolateArray=Lv;function Lv(C,N){var U=[],H=[],Y=C.length,W=N.length,le=Math.min(C.length,N.length),ne;for(ne=0;ne=0?C.slice(0,N):C,H=N>=0?C.slice(N+1):"in";return U=iG.get(U)||J6,H=oG.get(H)||F,lG(H(U.apply(null,r.call(arguments,1))))};function lG(C){return function(N){return N<=0?0:N>=1?1:C(N)}}function $6(C){return function(N){return 1-C(1-N)}}function K6(C){return function(N){return .5*(N<.5?C(2*N):2-C(2-2*N))}}function sG(C){return C*C}function uG(C){return C*C*C}function fG(C){if(C<=0)return 0;if(C>=1)return 1;var N=C*C,U=N*C;return 4*(C<.5?U:3*(C-N)+U-.75)}function cG(C){return function(N){return Math.pow(N,C)}}function vG(C){return 1-Math.cos(C*Ce)}function hG(C){return Math.pow(2,10*(C-1))}function dG(C){return 1-Math.sqrt(1-C*C)}function pG(C,N){var U;return arguments.length<2&&(N=.45),arguments.length?U=N/rr*Math.asin(1/C):(C=1,U=N/4),function(H){return 1+C*Math.pow(2,-10*H)*Math.sin((H-U)*rr/N)}}function gG(C){return C||(C=1.70158),function(N){return N*N*((C+1)*N-C)}}function yG(C){return C<1/2.75?7.5625*C*C:C<2/2.75?7.5625*(C-=1.5/2.75)*C+.75:C<2.5/2.75?7.5625*(C-=2.25/2.75)*C+.9375:7.5625*(C-=2.625/2.75)*C+.984375}e.interpolateHcl=mG;function mG(C,N){C=e.hcl(C),N=e.hcl(N);var U=C.h,H=C.c,Y=C.l,W=N.h-U,le=N.c-H,ne=N.l-Y;return isNaN(le)&&(le=0,H=isNaN(H)?N.c:H),isNaN(W)?(W=0,U=isNaN(U)?N.h:U):W>180?W-=360:W<-180&&(W+=360),function(ce){return St(U+W*ce,H+le*ce,Y+ne*ce)+""}}e.interpolateHsl=bG;function bG(C,N){C=e.hsl(C),N=e.hsl(N);var U=C.h,H=C.s,Y=C.l,W=N.h-U,le=N.s-H,ne=N.l-Y;return isNaN(le)&&(le=0,H=isNaN(H)?N.s:H),isNaN(W)?(W=0,U=isNaN(U)?N.h:U):W>180?W-=360:W<-180&&(W+=360),function(ce){return Vr(U+W*ce,H+le*ce,Y+ne*ce)+""}}e.interpolateLab=xG;function xG(C,N){C=e.lab(C),N=e.lab(N);var U=C.l,H=C.a,Y=C.b,W=N.l-U,le=N.a-H,ne=N.b-Y;return function(ce){return Ct(U+W*ce,H+le*ce,Y+ne*ce)+""}}e.interpolateRound=Q6;function Q6(C,N){return N-=C,function(U){return Math.round(C+N*U)}}e.transform=function(C){var N=n.createElementNS(e.ns.prefix.svg,"g");return(e.transform=function(U){if(U!=null){N.setAttribute("transform",U);var H=N.transform.baseVal.consolidate()}return new j6(H?H.matrix:wG)})(C)};function j6(C){var N=[C.a,C.b],U=[C.c,C.d],H=r_(N),Y=e_(N,U),W=r_(_G(U,N,-Y))||0;N[0]*U[1]180?N+=360:N-C>180&&(C+=360),H.push({i:U.push(x0(U)+"rotate(",null,")")-2,x:Co(C,N)})):N&&U.push(x0(U)+"rotate("+N+")")}function AG(C,N,U,H){C!==N?H.push({i:U.push(x0(U)+"skewX(",null,")")-2,x:Co(C,N)}):N&&U.push(x0(U)+"skewX("+N+")")}function kG(C,N,U,H){if(C[0]!==N[0]||C[1]!==N[1]){var Y=U.push(x0(U)+"scale(",null,",",null,")");H.push({i:Y-4,x:Co(C[0],N[0])},{i:Y-2,x:Co(C[1],N[1])})}else(N[0]!==1||N[1]!==1)&&U.push(x0(U)+"scale("+N+")")}function t_(C,N){var U=[],H=[];return C=e.transform(C),N=e.transform(N),MG(C.translate,N.translate,U,H),TG(C.rotate,N.rotate,U,H),AG(C.skew,N.skew,U,H),kG(C.scale,N.scale,U,H),C=N=null,function(Y){for(var W=-1,le=H.length,ne;++W0?W=He:(U.c=null,U.t=NaN,U=null,N.end({type:"end",alpha:W=0})):He>0&&(N.start({type:"start",alpha:W=He}),U=Tv(C.tick)),C):W},C.start=function(){var He,ir=Ge.length,hr=Je.length,gr=H[0],pr=H[1],br,xr;for(He=0;He=0;)W.push(Me=_e[ce]),Me.parent=ne,Me.depth=ne.depth+1;U&&(ne.value=0),ne.children=_e}else U&&(ne.value=+U.call(H,ne,ne.depth)||0),delete ne.children;return Ki(Y,function(De){var Fe,Ge;C&&(Fe=De.children)&&Fe.sort(C),U&&(Ge=De.parent)&&(Ge.value+=De.value)}),le}return H.sort=function(Y){return arguments.length?(C=Y,H):C},H.children=function(Y){return arguments.length?(N=Y,H):N},H.value=function(Y){return arguments.length?(U=Y,H):U},H.revalue=function(Y){return U&&(of(Y,function(W){W.children&&(W.value=0)}),Ki(Y,function(W){var le;W.children||(W.value=+U.call(H,W,W.depth)||0),(le=W.parent)&&(le.value+=W.value)})),Y},H};function af(C,N){return e.rebind(C,N,"sort","children","value"),C.nodes=C,C.links=UG,C}function of(C,N){for(var U=[C];(C=U.pop())!=null;)if(N(C),(Y=C.children)&&(H=Y.length))for(var H,Y;--H>=0;)U.push(Y[H])}function Ki(C,N){for(var U=[C],H=[];(C=U.pop())!=null;)if(H.push(C),(le=C.children)&&(W=le.length))for(var Y=-1,W,le;++YY&&(Y=ne),H.push(ne)}for(le=0;leH&&(U=N,H=Y);return U}function ZG(C){return C.reduce(JG,0)}function JG(C,N){return C+N[1]}e.layout.histogram=function(){var C=!0,N=Number,U=KG,H=$G;function Y(W,Fe){for(var ne=[],ce=W.map(N,this),_e=U.call(this,ce,Fe),Me=H.call(this,_e,ce,Fe),De,Fe=-1,Ge=ce.length,Je=Me.length-1,Ie=C?1:1/Ge,Ne;++Fe0)for(Fe=-1;++Fe=_e[0]&&Ne<=_e[1]&&(De=ne[e.bisect(Me,Ne,1,Je)-1],De.y+=Ie,De.push(W[Fe]));return ne}return Y.value=function(W){return arguments.length?(N=W,Y):N},Y.range=function(W){return arguments.length?(U=kr(W),Y):U},Y.bins=function(W){return arguments.length?(H=typeof W=="number"?function(le){return o_(le,W)}:kr(W),Y):H},Y.frequency=function(W){return arguments.length?(C=!!W,Y):C},Y};function $G(C,N){return o_(C,Math.ceil(Math.log(N.length)/Math.LN2+1))}function o_(C,N){for(var U=-1,H=+C[0],Y=(C[1]-H)/N,W=[];++U<=N;)W[U]=Y*U+H;return W}function KG(C){return[e.min(C),e.max(C)]}e.layout.pack=function(){var C=e.layout.hierarchy().sort(QG),N=0,U=[1,1],H;function Y(W,le){var ne=C.call(this,W,le),ce=ne[0],_e=U[0],Me=U[1],De=H==null?Math.sqrt:typeof H=="function"?H:function(){return H};if(ce.x=ce.y=0,Ki(ce,function(Ge){Ge.r=+De(Ge.value)}),Ki(ce,u_),N){var Fe=N*(H?1:Math.max(2*ce.r/_e,2*ce.r/Me))/2;Ki(ce,function(Ge){Ge.r+=Fe}),Ki(ce,u_),Ki(ce,function(Ge){Ge.r-=Fe})}return f_(ce,_e/2,Me/2,H?1:1/Math.max(2*ce.r/_e,2*ce.r/Me)),ne}return Y.size=function(W){return arguments.length?(U=W,Y):U},Y.radius=function(W){return arguments.length?(H=W==null||typeof W=="function"?W:+W,Y):H},Y.padding=function(W){return arguments.length?(N=+W,Y):N},af(Y,C)};function QG(C,N){return C.value-N.value}function Xp(C,N){var U=C._pack_next;C._pack_next=N,N._pack_prev=C,N._pack_next=U,U._pack_prev=N}function l_(C,N){C._pack_next=N,N._pack_prev=C}function s_(C,N){var U=N.x-C.x,H=N.y-C.y,Y=C.r+N.r;return .999*Y*Y>U*U+H*H}function u_(C){if(!(N=C.children)||!(Fe=N.length))return;var N,U=1/0,H=-1/0,Y=1/0,W=-1/0,le,ne,ce,_e,Me,De,Fe;function Ge(He){U=Math.min(He.x-He.r,U),H=Math.max(He.x+He.r,H),Y=Math.min(He.y-He.r,Y),W=Math.max(He.y+He.r,W)}if(N.forEach(jG),le=N[0],le.x=-le.r,le.y=0,Ge(le),Fe>1&&(ne=N[1],ne.x=ne.r,ne.y=0,Ge(ne),Fe>2))for(ce=N[2],c_(le,ne,ce),Ge(ce),Xp(le,ce),le._pack_prev=ce,Xp(ce,ne),ne=le._pack_next,_e=3;_eNe.x&&(Ne=ir),ir.depth>Be.depth&&(Be=ir)});var Ze=N(Ie,Ne)/2-Ie.x,$e=U[0]/(Ne.x+N(Ne,Ie)/2+Ze),He=U[1]/(Be.depth||1);of(Ge,function(ir){ir.x=(ir.x+Ze)*$e,ir.y=ir.depth*He})}return Fe}function W(Me){for(var De={A:null,children:[Me]},Fe=[De],Ge;(Ge=Fe.pop())!=null;)for(var Je=Ge.children,Ie,Ne=0,Be=Je.length;Ne0&&(rY(nY(Ie,Me,Fe),Me,ir),Be+=ir,Ze+=ir),$e+=Ie.m,Be+=Ge.m,He+=Ne.m,Ze+=Je.m;Ie&&!Zp(Je)&&(Je.t=Ie,Je.m+=$e-Ze),Ge&&!Wp(Ne)&&(Ne.t=Ge,Ne.m+=Be-He,Fe=Me)}return Fe}function _e(Me){Me.x*=U[0],Me.y=Me.depth*U[1]}return Y.separation=function(Me){return arguments.length?(N=Me,Y):N},Y.size=function(Me){return arguments.length?(H=(U=Me)==null?_e:null,Y):H?null:U},Y.nodeSize=function(Me){return arguments.length?(H=(U=Me)==null?null:_e,Y):H?U:null},af(Y,C)};function v_(C,N){return C.parent==N.parent?1:2}function Wp(C){var N=C.children;return N.length?N[0]:C.t}function Zp(C){var N=C.children,U;return(U=N.length)?N[U-1]:C.t}function rY(C,N,U){var H=U/(N.i-C.i);N.c-=H,N.s+=U,C.c+=H,N.z+=U,N.m+=U}function tY(C){for(var N=0,U=0,H=C.children,Y=H.length,W;--Y>=0;)W=H[Y],W.z+=N,W.m+=N,N+=W.s+(U+=W.c)}function nY(C,N,U){return C.a.parent===N.parent?C.a:U}e.layout.cluster=function(){var C=e.layout.hierarchy().sort(null).value(null),N=v_,U=[1,1],H=!1;function Y(W,le){var ne=C.call(this,W,le),ce=ne[0],_e,Me=0;Ki(ce,function(Ie){var Ne=Ie.children;Ne&&Ne.length?(Ie.x=iY(Ne),Ie.y=aY(Ne)):(Ie.x=_e?Me+=N(Ie,_e):0,Ie.y=0,_e=Ie)});var De=h_(ce),Fe=d_(ce),Ge=De.x-N(De,Fe)/2,Je=Fe.x+N(Fe,De)/2;return Ki(ce,H?function(Ie){Ie.x=(Ie.x-ce.x)*U[0],Ie.y=(ce.y-Ie.y)*U[1]}:function(Ie){Ie.x=(Ie.x-Ge)/(Je-Ge)*U[0],Ie.y=(1-(ce.y?Ie.y/ce.y:1))*U[1]}),ne}return Y.separation=function(W){return arguments.length?(N=W,Y):N},Y.size=function(W){return arguments.length?(H=(U=W)==null,Y):H?null:U},Y.nodeSize=function(W){return arguments.length?(H=(U=W)!=null,Y):H?U:null},af(Y,C)};function aY(C){return 1+e.max(C,function(N){return N.y})}function iY(C){return C.reduce(function(N,U){return N+U.x},0)/C.length}function h_(C){var N=C.children;return N&&N.length?h_(N[0]):C}function d_(C){var N=C.children,U;return N&&(U=N.length)?d_(N[U-1]):C}e.layout.treemap=function(){var C=e.layout.hierarchy(),N=Math.round,U=[1,1],H=null,Y=Jp,W=!1,le,ne="squarify",ce=.5*(1+Math.sqrt(5));function _e(Ie,Ne){for(var Be=-1,Ze=Ie.length,$e,He;++Be0;)Ze.push(He=$e[pr-1]),Ze.area+=He.area,ne!=="squarify"||(hr=Fe(Ze,gr))<=ir?($e.pop(),ir=hr):(Ze.area-=Ze.pop().area,Ge(Ze,gr,Be,!1),gr=Math.min(Be.dx,Be.dy),Ze.length=Ze.area=0,ir=1/0);Ze.length&&(Ge(Ze,gr,Be,!0),Ze.length=Ze.area=0),Ne.forEach(Me)}}function De(Ie){var Ne=Ie.children;if(Ne&&Ne.length){var Be=Y(Ie),Ze=Ne.slice(),$e,He=[];for(_e(Ze,Be.dx*Be.dy/Ie.value),He.area=0;$e=Ze.pop();)He.push($e),He.area+=$e.area,$e.z!=null&&(Ge(He,$e.z?Be.dx:Be.dy,Be,!Ze.length),He.length=He.area=0);Ne.forEach(De)}}function Fe(Ie,Ne){for(var Be=Ie.area,Ze,$e=0,He=1/0,ir=-1,hr=Ie.length;++ir$e&&($e=Ze));return Be*=Be,Ne*=Ne,Be?Math.max(Ne*$e*ce/Be,Be/(Ne*He*ce)):1/0}function Ge(Ie,Ne,Be,Ze){var $e=-1,He=Ie.length,ir=Be.x,hr=Be.y,gr=Ne?N(Ie.area/Ne):0,pr;if(Ne==Be.dx){for((Ze||gr>Be.dy)&&(gr=Be.dy);++$eBe.dx)&&(gr=Be.dx);++$e1);return C+N*H*Math.sqrt(-2*Math.log(W)/W)}},logNormal:function(){var C=e.random.normal.apply(e,arguments);return function(){return Math.exp(C())}},bates:function(C){var N=e.random.irwinHall(C);return function(){return N()/C}},irwinHall:function(C){return function(){for(var N=0,U=0;U2?sY:oY,_e=H?CG:SG;return Y=ce(C,N,_e,U),W=ce(N,C,_e,as),ne}function ne(ce){return Y(ce)}return ne.invert=function(ce){return W(ce)},ne.domain=function(ce){return arguments.length?(C=ce.map(Number),le()):C},ne.range=function(ce){return arguments.length?(N=ce,le()):N},ne.rangeRound=function(ce){return ne.range(ce).interpolate(Q6)},ne.clamp=function(ce){return arguments.length?(H=ce,le()):H},ne.interpolate=function(ce){return arguments.length?(U=ce,le()):U},ne.ticks=function(ce){return Qp(C,ce)},ne.tickFormat=function(ce,_e){return d3_scale_linearTickFormat(C,ce,_e)},ne.nice=function(ce){return b_(C,ce),le()},ne.copy=function(){return y_(C,N,U,H)},le()}function m_(C,N){return e.rebind(C,N,"range","rangeRound","interpolate","clamp")}function b_(C,N){return $p(C,g_(Kp(C,N)[2])),$p(C,g_(Kp(C,N)[2])),C}function Kp(C,N){N==null&&(N=10);var U=Dv(C),H=U[1]-U[0],Y=Math.pow(10,Math.floor(Math.log(H/N)/Math.LN10)),W=N/H*Y;return W<=.15?Y*=10:W<=.35?Y*=5:W<=.75&&(Y*=2),U[0]=Math.ceil(U[0]/Y)*Y,U[1]=Math.floor(U[1]/Y)*Y+Y*.5,U[2]=Y,U}function Qp(C,N){return e.range.apply(e,Kp(C,N))}var uY={s:1,g:1,p:1,r:1,e:1};function x_(C){return-Math.floor(Math.log(C)/Math.LN10+.01)}function Lbe(C,N){var U=x_(N[2]);return C in uY?Math.abs(U-x_(Math.max(m(N[0]),m(N[1]))))+ +(C!=="e"):U-(C==="%")*2}e.scale.log=function(){return __(e.scale.linear().domain([0,1]),10,!0,[1,10])};function __(C,N,U,H){function Y(ne){return(U?Math.log(ne<0?0:ne):-Math.log(ne>0?0:-ne))/Math.log(N)}function W(ne){return U?Math.pow(N,ne):-Math.pow(N,-ne)}function le(ne){return C(Y(ne))}return le.invert=function(ne){return W(C.invert(ne))},le.domain=function(ne){return arguments.length?(U=ne[0]>=0,C.domain((H=ne.map(Number)).map(Y)),le):H},le.base=function(ne){return arguments.length?(N=+ne,C.domain(H.map(Y)),le):N},le.nice=function(){var ne=$p(H.map(Y),U?Math:fY);return C.domain(ne),H=ne.map(W),le},le.ticks=function(){var ne=Dv(H),ce=[],_e=ne[0],Me=ne[1],De=Math.floor(Y(_e)),Fe=Math.ceil(Y(Me)),Ge=N%1?2:N;if(isFinite(Fe-De)){if(U){for(;De0;Je--)ce.push(W(De)*Je);for(De=0;ce[De]<_e;De++);for(Fe=ce.length;ce[Fe-1]>Me;Fe--);ce=ce.slice(De,Fe)}return ce},le.copy=function(){return __(C.copy(),N,U,H)},m_(le,C)}var fY={floor:function(C){return-Math.ceil(-C)},ceil:function(C){return-Math.floor(-C)}};e.scale.pow=function(){return w_(e.scale.linear(),1,[0,1])};function w_(C,N,U){var H=Fv(N),Y=Fv(1/N);function W(le){return C(H(le))}return W.invert=function(le){return Y(C.invert(le))},W.domain=function(le){return arguments.length?(C.domain((U=le.map(Number)).map(H)),W):U},W.ticks=function(le){return Qp(U,le)},W.tickFormat=function(le,ne){return d3_scale_linearTickFormat(U,le,ne)},W.nice=function(le){return W.domain(b_(U,le))},W.exponent=function(le){return arguments.length?(H=Fv(N=le),Y=Fv(1/N),C.domain(U.map(H)),W):N},W.copy=function(){return w_(C.copy(),N,U)},m_(W,C)}function Fv(C){return function(N){return N<0?-Math.pow(-N,C):Math.pow(N,C)}}e.scale.sqrt=function(){return e.scale.pow().exponent(.5)},e.scale.ordinal=function(){return M_([],{t:"range",a:[[]]})};function M_(C,N){var U,H,Y;function W(ne){return H[((U.get(ne)||(N.t==="range"?U.set(ne,C.push(ne)):NaN))-1)%H.length]}function le(ne,ce){return e.range(C.length).map(function(_e){return ne+ce*_e})}return W.domain=function(ne){if(!arguments.length)return C;C=[],U=new b;for(var ce=-1,_e=ne.length,Me;++ce<_e;)U.has(Me=ne[ce])||U.set(Me,C.push(Me));return W[N.t].apply(W,N.a)},W.range=function(ne){return arguments.length?(H=ne,Y=0,N={t:"range",a:arguments},W):H},W.rangePoints=function(ne,ce){arguments.length<2&&(ce=0);var _e=ne[0],Me=ne[1],De=C.length<2?(_e=(_e+Me)/2,0):(Me-_e)/(C.length-1+ce);return H=le(_e+De*ce/2,De),Y=0,N={t:"rangePoints",a:arguments},W},W.rangeRoundPoints=function(ne,ce){arguments.length<2&&(ce=0);var _e=ne[0],Me=ne[1],De=C.length<2?(_e=Me=Math.round((_e+Me)/2),0):(Me-_e)/(C.length-1+ce)|0;return H=le(_e+Math.round(De*ce/2+(Me-_e-(C.length-1+ce)*De)/2),De),Y=0,N={t:"rangeRoundPoints",a:arguments},W},W.rangeBands=function(ne,ce,_e){arguments.length<2&&(ce=0),arguments.length<3&&(_e=ce);var Me=ne[1]0?U[W-1]:C[0],WFe?0:1;if(Me<_e&&(Ie=Me,Me=_e,_e=Ie),Ge>=Qe)return ce(Me,Je)+(_e?ce(_e,1-Je):"")+"Z";var Ie,Ne,Be,Ze,$e=0,He=0,ir,hr,gr,pr,br,xr,Br,Mr,Fr=[];if((Ze=(+le.apply(this,arguments)||0)/2)&&(Be=H===Pv?Math.sqrt(_e*_e+Me*Me):+H.apply(this,arguments),Je||(He*=-1),Me&&(He=Tr(Be/Me*Math.sin(Ze))),_e&&($e=Tr(Be/_e*Math.sin(Ze)))),Me){ir=Me*Math.cos(De+He),hr=Me*Math.sin(De+He),gr=Me*Math.cos(Fe-He),pr=Me*Math.sin(Fe-He);var pt=Math.abs(Fe-De-2*He)<=nr?0:1;if(He&&Iv(ir,hr,gr,pr)===Je^pt){var an=(De+Fe)/2;ir=Me*Math.cos(an),hr=Me*Math.sin(an),gr=pr=null}}else ir=hr=0;if(_e){br=_e*Math.cos(Fe-$e),xr=_e*Math.sin(Fe-$e),Br=_e*Math.cos(De+$e),Mr=_e*Math.sin(De+$e);var bt=Math.abs(De-Fe+2*$e)<=nr?0:1;if($e&&Iv(br,xr,Br,Mr)===1-Je^bt){var cr=(De+Fe)/2;br=_e*Math.cos(cr),xr=_e*Math.sin(cr),Br=Mr=null}}else br=xr=0;if(Ge>Xe&&(Ie=Math.min(Math.abs(Me-_e)/2,+U.apply(this,arguments)))>.001){Ne=_e0?0:1}function zv(C,N,U,H,Y){var W=C[0]-N[0],le=C[1]-N[1],ne=(Y?H:-H)/Math.sqrt(W*W+le*le),ce=ne*le,_e=-ne*W,Me=C[0]+ce,De=C[1]+_e,Fe=N[0]+ce,Ge=N[1]+_e,Je=(Me+Fe)/2,Ie=(De+Ge)/2,Ne=Fe-Me,Be=Ge-De,Ze=Ne*Ne+Be*Be,$e=U-H,He=Me*Ge-Fe*De,ir=(Be<0?-1:1)*Math.sqrt(Math.max(0,$e*$e*Ze-He*He)),hr=(He*Be-Ne*ir)/Ze,gr=(-He*Ne-Be*ir)/Ze,pr=(He*Be+Ne*ir)/Ze,br=(-He*Ne+Be*ir)/Ze,xr=hr-Je,Br=gr-Ie,Mr=pr-Je,Fr=br-Ie;return xr*xr+Br*Br>Mr*Mr+Fr*Fr&&(hr=pr,gr=br),[[hr-ce,gr-_e],[hr*U/$e,gr*U/$e]]}function L_(){return!0}function D_(C){var N=p0,U=Qu,H=L_,Y=wi,W=Y.key,le=.7;function ne(ce){var _e=[],Me=[],De=-1,Fe=ce.length,Ge,Je=kr(N),Ie=kr(U);function Ne(){_e.push("M",Y(C(Me),le))}for(;++De1?C.join("L"):C+"Z"}function R_(C){return C.join("L")+"Z"}function bY(C){for(var N=0,U=C.length,H=C[0],Y=[H[0],",",H[1]];++N1&&Y.push("H",H[0]),Y.join("")}function eg(C){for(var N=0,U=C.length,H=C[0],Y=[H[0],",",H[1]];++N1){ne=N[1],W=C[ce],ce++,H+="C"+(Y[0]+le[0])+","+(Y[1]+le[1])+","+(W[0]-ne[0])+","+(W[1]-ne[1])+","+W[0]+","+W[1];for(var _e=2;_e9&&(W=U*3/Math.sqrt(W),le[ne]=W*H,le[ne+1]=W*Y));for(ne=-1;++ne<=ce;)W=(C[Math.min(ce,ne+1)][0]-C[Math.max(0,ne-1)][0])/(6*(1+le[ne]*le[ne])),N.push([W||0,le[ne]*W||0]);return N}function CY(C){return C.length<3?wi(C):C[0]+Nv(C,SY(C))}e.svg.line.radial=function(){var C=D_(z_);return C.radius=C.x,delete C.x,C.angle=C.y,delete C.y,C};function z_(C){for(var N,U=-1,H=C.length,Y,W;++Unr)+",1 "+De}function _e(Me,De,Fe,Ge){return"Q 0,0 "+Ge}return W.radius=function(Me){return arguments.length?(U=kr(Me),W):U},W.source=function(Me){return arguments.length?(C=kr(Me),W):C},W.target=function(Me){return arguments.length?(N=kr(Me),W):N},W.startAngle=function(Me){return arguments.length?(H=kr(Me),W):H},W.endAngle=function(Me){return arguments.length?(Y=kr(Me),W):Y},W};function EY(C){return C.radius}e.svg.diagonal=function(){var C=q_,N=B_,U=O_;function H(Y,W){var le=C.call(this,Y,W),ne=N.call(this,Y,W),ce=(le.y+ne.y)/2,_e=[le,{x:le.x,y:ce},{x:ne.x,y:ce},ne];return _e=_e.map(U),"M"+_e[0]+"C"+_e[1]+" "+_e[2]+" "+_e[3]}return H.source=function(Y){return arguments.length?(C=kr(Y),H):C},H.target=function(Y){return arguments.length?(N=kr(Y),H):N},H.projection=function(Y){return arguments.length?(U=Y,H):U},H};function O_(C){return[C.x,C.y]}e.svg.diagonal.radial=function(){var C=e.svg.diagonal(),N=O_,U=C.projection;return C.projection=function(H){return arguments.length?U(LY(N=H)):N},C};function LY(C){return function(){var N=C.apply(this,arguments),U=N[0],H=N[1]-Ce;return[U*Math.cos(H),U*Math.sin(H)]}}e.svg.symbol=function(){var C=RY,N=DY;function U(H,Y){return(H_.get(C.call(this,H,Y))||U_)(N.call(this,H,Y))}return U.type=function(H){return arguments.length?(C=kr(H),U):C},U.size=function(H){return arguments.length?(N=kr(H),U):N},U};function DY(){return 64}function RY(){return"circle"}function U_(C){var N=Math.sqrt(C/nr);return"M0,"+N+"A"+N+","+N+" 0 1,1 0,"+-N+"A"+N+","+N+" 0 1,1 0,"+N+"Z"}var H_=e.map({circle:U_,cross:function(C){var N=Math.sqrt(C/5)/2;return"M"+-3*N+","+-N+"H"+-N+"V"+-3*N+"H"+N+"V"+-N+"H"+3*N+"V"+N+"H"+N+"V"+3*N+"H"+-N+"V"+N+"H"+-3*N+"Z"},diamond:function(C){var N=Math.sqrt(C/(2*V_)),U=N*V_;return"M0,"+-N+"L"+U+",0 0,"+N+" "+-U+",0Z"},square:function(C){var N=Math.sqrt(C)/2;return"M"+-N+","+-N+"L"+N+","+-N+" "+N+","+N+" "+-N+","+N+"Z"},"triangle-down":function(C){var N=Math.sqrt(C/qv),U=N*qv/2;return"M0,"+U+"L"+N+","+-U+" "+-N+","+-U+"Z"},"triangle-up":function(C){var N=Math.sqrt(C/qv),U=N*qv/2;return"M0,"+-U+"L"+N+","+U+" "+-N+","+U+"Z"}});e.svg.symbolTypes=H_.keys();var qv=Math.sqrt(3),V_=Math.tan(30*ze);Q.transition=function(C){for(var N=is||++Y_,U=og(C),H=[],Y,W,le=Ov||{time:Date.now(),ease:fG,delay:0,duration:250},ne=-1,ce=this.length;++ne0;)De[--Ze].call(C,Be);if(Ne>=1)return le.event&&le.event.end.call(C,C.__data__,N),--W.count?delete W[H]:delete C[U],1}le||(ne=Y.time,ce=Tv(Fe,0,ne),le=W[H]={tween:new b,time:ne,timer:ce,delay:Y.delay,duration:Y.duration,ease:Y.ease,index:N},Y=null,++W.count)}e.svg.axis=function(){var C=e.scale.linear(),N=X_,U=6,H=6,Y=3,W=[10],le=null,ne;function ce(_e){_e.each(function(){var Me=e.select(this),De=this.__chart__||C,Fe=this.__chart__=C.copy(),Ge=le==null?Fe.ticks?Fe.ticks.apply(Fe,W):Fe.domain():le,Je=ne==null?Fe.tickFormat?Fe.tickFormat.apply(Fe,W):F:ne,Ie=Me.selectAll(".tick").data(Ge,Fe),Ne=Ie.enter().insert("g",".domain").attr("class","tick").style("opacity",Xe),Be=e.transition(Ie.exit()).style("opacity",Xe).remove(),Ze=e.transition(Ie.order()).style("opacity",1),$e=Math.max(U,0)+Y,He,ir=Rv(Fe),hr=Me.selectAll(".domain").data([0]),gr=(hr.enter().append("path").attr("class","domain"),e.transition(hr));Ne.append("line"),Ne.append("text");var pr=Ne.select("line"),br=Ze.select("line"),xr=Ie.select("text").text(Je),Br=Ne.select("text"),Mr=Ze.select("text"),Fr=N==="top"||N==="left"?-1:1,pt,an,bt,cr;if(N==="bottom"||N==="top"?(He=IY,pt="x",bt="y",an="x2",cr="y2",xr.attr("dy",Fr<0?"0em":".71em").style("text-anchor","middle"),gr.attr("d","M"+ir[0]+","+Fr*H+"V0H"+ir[1]+"V"+Fr*H)):(He=zY,pt="y",bt="x",an="y2",cr="x2",xr.attr("dy",".32em").style("text-anchor",Fr<0?"end":"start"),gr.attr("d","M"+Fr*H+","+ir[0]+"H0V"+ir[1]+"H"+Fr*H)),pr.attr(cr,Fr*U),Br.attr(bt,Fr*$e),br.attr(an,0).attr(cr,Fr*U),Mr.attr(pt,0).attr(bt,Fr*$e),Fe.rangeBand){var Or=Fe,Gr=Or.rangeBand()/2;De=Fe=function(gt){return Or(gt)+Gr}}else De.rangeBand?De=Fe:Be.call(He,Fe,De);Ne.call(He,De,Fe),Ze.call(He,Fe,Fe)})}return ce.scale=function(_e){return arguments.length?(C=_e,ce):C},ce.orient=function(_e){return arguments.length?(N=_e in PY?_e+"":X_,ce):N},ce.ticks=function(){return arguments.length?(W=t(arguments),ce):W},ce.tickValues=function(_e){return arguments.length?(le=_e,ce):le},ce.tickFormat=function(_e){return arguments.length?(ne=_e,ce):ne},ce.tickSize=function(_e){var Me=arguments.length;return Me?(U=+_e,H=+arguments[Me-1],ce):U},ce.innerTickSize=function(_e){return arguments.length?(U=+_e,ce):U},ce.outerTickSize=function(_e){return arguments.length?(H=+_e,ce):H},ce.tickPadding=function(_e){return arguments.length?(Y=+_e,ce):Y},ce.tickSubdivide=function(){return arguments.length&&ce},ce};var X_="bottom",PY={top:1,right:1,bottom:1,left:1};function IY(C,N,U){C.attr("transform",function(H){var Y=N(H);return"translate("+(isFinite(Y)?Y:U(H))+",0)"})}function zY(C,N,U){C.attr("transform",function(H){var Y=N(H);return"translate(0,"+(isFinite(Y)?Y:U(H))+")"})}e.svg.brush=function(){var C=j(Me,"brushstart","brush","brushend"),N=null,U=null,H=[0,0],Y=[0,0],W,le,ne=!0,ce=!0,_e=lg[0];function Me(Ie){Ie.each(function(){var Ne=e.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",Je).on("touchstart.brush",Je),Be=Ne.selectAll(".background").data([0]);Be.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),Ne.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var Ze=Ne.selectAll(".resize").data(_e,F);Ze.exit().remove(),Ze.enter().append("g").attr("class",function(hr){return"resize "+hr}).style("cursor",function(hr){return NY[hr]}).append("rect").attr("x",function(hr){return/[ew]$/.test(hr)?-3:null}).attr("y",function(hr){return/^[ns]/.test(hr)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),Ze.style("display",Me.empty()?"none":null);var $e=e.transition(Ne),He=e.transition(Be),ir;N&&(ir=Rv(N),He.attr("x",ir[0]).attr("width",ir[1]-ir[0]),Fe($e)),U&&(ir=Rv(U),He.attr("y",ir[0]).attr("height",ir[1]-ir[0]),Ge($e)),De($e)})}Me.event=function(Ie){Ie.each(function(){var Ne=C.of(this,arguments),Be={x:H,y:Y,i:W,j:le},Ze=this.__chart__||Be;this.__chart__=Be,is?e.select(this).transition().each("start.brush",function(){W=Ze.i,le=Ze.j,H=Ze.x,Y=Ze.y,Ne({type:"brushstart"})}).tween("brush:brush",function(){var $e=Lv(H,Be.x),He=Lv(Y,Be.y);return W=le=null,function(ir){H=Be.x=$e(ir),Y=Be.y=He(ir),Ne({type:"brush",mode:"resize"})}}).each("end.brush",function(){W=Be.i,le=Be.j,Ne({type:"brush",mode:"resize"}),Ne({type:"brushend"})}):(Ne({type:"brushstart"}),Ne({type:"brush",mode:"resize"}),Ne({type:"brushend"}))})};function De(Ie){Ie.selectAll(".resize").attr("transform",function(Ne){return"translate("+H[+/e$/.test(Ne)]+","+Y[+/^s/.test(Ne)]+")"})}function Fe(Ie){Ie.select(".extent").attr("x",H[0]),Ie.selectAll(".extent,.n>rect,.s>rect").attr("width",H[1]-H[0])}function Ge(Ie){Ie.select(".extent").attr("y",Y[0]),Ie.selectAll(".extent,.e>rect,.w>rect").attr("height",Y[1]-Y[0])}function Je(){var Ie=this,Ne=e.select(e.event.target),Be=C.of(Ie,arguments),Ze=e.select(Ie),$e=Ne.datum(),He=!/^(n|s)$/.test($e)&&N,ir=!/^(e|w)$/.test($e)&&U,hr=Ne.classed("extent"),gr=Ve(Ie),pr,br=e.mouse(Ie),xr,Br=e.select(o(Ie)).on("keydown.brush",pt).on("keyup.brush",an);if(e.event.changedTouches?Br.on("touchmove.brush",bt).on("touchend.brush",Or):Br.on("mousemove.brush",bt).on("mouseup.brush",Or),Ze.interrupt().selectAll("*").interrupt(),hr)br[0]=H[0]-br[0],br[1]=Y[0]-br[1];else if($e){var Mr=+/w$/.test($e),Fr=+/^n/.test($e);xr=[H[1-Mr]-br[0],Y[1-Fr]-br[1]],br[0]=H[Mr],br[1]=Y[Fr]}else e.event.altKey&&(pr=br.slice());Ze.style("pointer-events","none").selectAll(".resize").style("display",null),e.select("body").style("cursor",Ne.style("cursor")),Be({type:"brushstart"}),bt();function pt(){e.event.keyCode==32&&(hr||(pr=null,br[0]-=H[1],br[1]-=Y[1],hr=2),G())}function an(){e.event.keyCode==32&&hr==2&&(br[0]+=H[1],br[1]+=Y[1],hr=0,G())}function bt(){var Gr=e.mouse(Ie),gt=!1;xr&&(Gr[0]+=xr[0],Gr[1]+=xr[1]),hr||(e.event.altKey?(pr||(pr=[(H[0]+H[1])/2,(Y[0]+Y[1])/2]),br[0]=H[+(Gr[0]{(function(e,r){typeof Xv=="object"&&typeof n7!="undefined"?r(Xv):(e=e||self,r(e.d3=e.d3||{}))})(Xv,function(e){"use strict";var r=new Date,t=new Date;function n(oe,de,pe,me){function Se(ve){return oe(ve=arguments.length===0?new Date:new Date(+ve)),ve}return Se.floor=function(ve){return oe(ve=new Date(+ve)),ve},Se.ceil=function(ve){return oe(ve=new Date(ve-1)),de(ve,1),oe(ve),ve},Se.round=function(ve){var he=Se(ve),be=Se.ceil(ve);return ve-he0))return Ae;do Ae.push(Re=new Date(+ve)),de(ve,be),oe(ve);while(Re=he)for(;oe(he),!ve(he);)he.setTime(he-1)},function(he,be){if(he>=he)if(be<0)for(;++be<=0;)for(;de(he,-1),!ve(he););else for(;--be>=0;)for(;de(he,1),!ve(he););})},pe&&(Se.count=function(ve,he){return r.setTime(+ve),t.setTime(+he),oe(r),oe(t),Math.floor(pe(r,t))},Se.every=function(ve){return ve=Math.floor(ve),!isFinite(ve)||!(ve>0)?null:ve>1?Se.filter(me?function(he){return me(he)%ve===0}:function(he){return Se.count(0,he)%ve===0}):Se}),Se}var a=n(function(){},function(oe,de){oe.setTime(+oe+de)},function(oe,de){return de-oe});a.every=function(oe){return oe=Math.floor(oe),!isFinite(oe)||!(oe>0)?null:oe>1?n(function(de){de.setTime(Math.floor(de/oe)*oe)},function(de,pe){de.setTime(+de+pe*oe)},function(de,pe){return(pe-de)/oe}):a};var o=a.range,i=1e3,l=6e4,u=36e5,s=864e5,f=6048e5,c=n(function(oe){oe.setTime(oe-oe.getMilliseconds())},function(oe,de){oe.setTime(+oe+de*i)},function(oe,de){return(de-oe)/i},function(oe){return oe.getUTCSeconds()}),g=c.range,x=n(function(oe){oe.setTime(oe-oe.getMilliseconds()-oe.getSeconds()*i)},function(oe,de){oe.setTime(+oe+de*l)},function(oe,de){return(de-oe)/l},function(oe){return oe.getMinutes()}),h=x.range,_=n(function(oe){oe.setTime(oe-oe.getMilliseconds()-oe.getSeconds()*i-oe.getMinutes()*l)},function(oe,de){oe.setTime(+oe+de*u)},function(oe,de){return(de-oe)/u},function(oe){return oe.getHours()}),T=_.range,m=n(function(oe){oe.setHours(0,0,0,0)},function(oe,de){oe.setDate(oe.getDate()+de)},function(oe,de){return(de-oe-(de.getTimezoneOffset()-oe.getTimezoneOffset())*l)/s},function(oe){return oe.getDate()-1}),k=m.range;function S(oe){return n(function(de){de.setDate(de.getDate()-(de.getDay()+7-oe)%7),de.setHours(0,0,0,0)},function(de,pe){de.setDate(de.getDate()+pe*7)},function(de,pe){return(pe-de-(pe.getTimezoneOffset()-de.getTimezoneOffset())*l)/f})}var b=S(0),M=S(1),d=S(2),w=S(3),y=S(4),v=S(5),A=S(6),p=b.range,D=M.range,E=d.range,R=w.range,F=y.range,z=v.range,P=A.range,L=n(function(oe){oe.setDate(1),oe.setHours(0,0,0,0)},function(oe,de){oe.setMonth(oe.getMonth()+de)},function(oe,de){return de.getMonth()-oe.getMonth()+(de.getFullYear()-oe.getFullYear())*12},function(oe){return oe.getMonth()}),I=L.range,B=n(function(oe){oe.setMonth(0,1),oe.setHours(0,0,0,0)},function(oe,de){oe.setFullYear(oe.getFullYear()+de)},function(oe,de){return de.getFullYear()-oe.getFullYear()},function(oe){return oe.getFullYear()});B.every=function(oe){return!isFinite(oe=Math.floor(oe))||!(oe>0)?null:n(function(de){de.setFullYear(Math.floor(de.getFullYear()/oe)*oe),de.setMonth(0,1),de.setHours(0,0,0,0)},function(de,pe){de.setFullYear(de.getFullYear()+pe*oe)})};var O=B.range,G=n(function(oe){oe.setUTCSeconds(0,0)},function(oe,de){oe.setTime(+oe+de*l)},function(oe,de){return(de-oe)/l},function(oe){return oe.getUTCMinutes()}),J=G.range,j=n(function(oe){oe.setUTCMinutes(0,0,0)},function(oe,de){oe.setTime(+oe+de*u)},function(oe,de){return(de-oe)/u},function(oe){return oe.getUTCHours()}),V=j.range,q=n(function(oe){oe.setUTCHours(0,0,0,0)},function(oe,de){oe.setUTCDate(oe.getUTCDate()+de)},function(oe,de){return(de-oe)/s},function(oe){return oe.getUTCDate()-1}),Z=q.range;function re(oe){return n(function(de){de.setUTCDate(de.getUTCDate()-(de.getUTCDay()+7-oe)%7),de.setUTCHours(0,0,0,0)},function(de,pe){de.setUTCDate(de.getUTCDate()+pe*7)},function(de,pe){return(pe-de)/f})}var $=re(0),ae=re(1),Q=re(2),te=re(3),ue=re(4),ee=re(5),ie=re(6),fe=$.range,we=ae.range,Te=Q.range,ke=te.range,ge=ue.range,Ee=ee.range,Le=ie.range,se=n(function(oe){oe.setUTCDate(1),oe.setUTCHours(0,0,0,0)},function(oe,de){oe.setUTCMonth(oe.getUTCMonth()+de)},function(oe,de){return de.getUTCMonth()-oe.getUTCMonth()+(de.getUTCFullYear()-oe.getUTCFullYear())*12},function(oe){return oe.getUTCMonth()}),X=se.range,K=n(function(oe){oe.setUTCMonth(0,1),oe.setUTCHours(0,0,0,0)},function(oe,de){oe.setUTCFullYear(oe.getUTCFullYear()+de)},function(oe,de){return de.getUTCFullYear()-oe.getUTCFullYear()},function(oe){return oe.getUTCFullYear()});K.every=function(oe){return!isFinite(oe=Math.floor(oe))||!(oe>0)?null:n(function(de){de.setUTCFullYear(Math.floor(de.getUTCFullYear()/oe)*oe),de.setUTCMonth(0,1),de.setUTCHours(0,0,0,0)},function(de,pe){de.setUTCFullYear(de.getUTCFullYear()+pe*oe)})};var ye=K.range;e.timeDay=m,e.timeDays=k,e.timeFriday=v,e.timeFridays=z,e.timeHour=_,e.timeHours=T,e.timeInterval=n,e.timeMillisecond=a,e.timeMilliseconds=o,e.timeMinute=x,e.timeMinutes=h,e.timeMonday=M,e.timeMondays=D,e.timeMonth=L,e.timeMonths=I,e.timeSaturday=A,e.timeSaturdays=P,e.timeSecond=c,e.timeSeconds=g,e.timeSunday=b,e.timeSundays=p,e.timeThursday=y,e.timeThursdays=F,e.timeTuesday=d,e.timeTuesdays=E,e.timeWednesday=w,e.timeWednesdays=R,e.timeWeek=b,e.timeWeeks=p,e.timeYear=B,e.timeYears=O,e.utcDay=q,e.utcDays=Z,e.utcFriday=ee,e.utcFridays=Ee,e.utcHour=j,e.utcHours=V,e.utcMillisecond=a,e.utcMilliseconds=o,e.utcMinute=G,e.utcMinutes=J,e.utcMonday=ae,e.utcMondays=we,e.utcMonth=se,e.utcMonths=X,e.utcSaturday=ie,e.utcSaturdays=Le,e.utcSecond=c,e.utcSeconds=g,e.utcSunday=$,e.utcSundays=fe,e.utcThursday=ue,e.utcThursdays=ge,e.utcTuesday=Q,e.utcTuesdays=Te,e.utcWednesday=te,e.utcWednesdays=ke,e.utcWeek=$,e.utcWeeks=fe,e.utcYear=K,e.utcYears=ye,Object.defineProperty(e,"__esModule",{value:!0})})});var w0=xe((Wv,a7)=>{(function(e,r){typeof Wv=="object"&&typeof a7!="undefined"?r(Wv,ug()):(e=e||self,r(e.d3=e.d3||{},e.d3))})(Wv,function(e,r){"use strict";function t(Ce){if(0<=Ce.y&&Ce.y<100){var ze=new Date(-1,Ce.m,Ce.d,Ce.H,Ce.M,Ce.S,Ce.L);return ze.setFullYear(Ce.y),ze}return new Date(Ce.y,Ce.m,Ce.d,Ce.H,Ce.M,Ce.S,Ce.L)}function n(Ce){if(0<=Ce.y&&Ce.y<100){var ze=new Date(Date.UTC(-1,Ce.m,Ce.d,Ce.H,Ce.M,Ce.S,Ce.L));return ze.setUTCFullYear(Ce.y),ze}return new Date(Date.UTC(Ce.y,Ce.m,Ce.d,Ce.H,Ce.M,Ce.S,Ce.L))}function a(Ce,ze,Ke){return{y:Ce,m:ze,d:Ke,H:0,M:0,S:0,L:0}}function o(Ce){var ze=Ce.dateTime,Ke=Ce.date,je=Ce.time,wr=Ce.periods,Xr=Ce.days,Tr=Ce.shortDays,Pr=Ce.months,at=Ce.shortMonths,Ar=g(wr),Hr=x(wr),ot=g(Xr),Ir=x(Xr),Jr=g(Tr),Xt=x(Tr),tt=g(Pr),Kr=x(Pr),qt=g(at),lr=x(at),Dr={a:$a,A:_i,b:nn,B:el,c:null,d:L,e:L,f:J,g:ee,G:fe,H:I,I:B,j:O,L:G,m:j,M:V,p:Ji,q:$i,Q:Ve,s:Ue,S:q,u:Z,U:re,V:ae,w:Q,W:te,x:null,X:null,y:ue,Y:ie,Z:we,"%":Ye},Vr={a:rl,A:_v,b:wv,B:Mv,c:null,d:Te,e:Te,f:se,g:be,G:Re,H:ke,I:ge,j:Ee,L:Le,m:X,M:K,p:$u,q:Ku,Q:Ve,s:Ue,S:ye,u:oe,U:de,V:me,w:Se,W:ve,x:null,X:null,y:he,Y:Ae,Z:Pe,"%":Ye},st={a:Bt,A:Gn,b:Yn,B:_n,c:Ct,d:y,e:y,f:R,g:b,G:S,H:A,I:A,j:v,L:E,m:w,M:p,p:vt,q:d,Q:z,s:P,S:D,u:_,U:T,V:m,w:h,W:k,x:xi,X:tn,y:b,Y:S,Z:M,"%":F};Dr.x=mt(Ke,Dr),Dr.X=mt(je,Dr),Dr.c=mt(ze,Dr),Vr.x=mt(Ke,Vr),Vr.X=mt(je,Vr),Vr.c=mt(ze,Vr);function mt(Sr,kr){return function(yt){var dr=[],aa=-1,Dt=0,Nn=Sr.length,qn,Ka,ts;for(yt instanceof Date||(yt=new Date(+yt));++aa53)return null;"w"in dr||(dr.w=1),"Z"in dr?(Dt=n(a(dr.y,0,1)),Nn=Dt.getUTCDay(),Dt=Nn>4||Nn===0?r.utcMonday.ceil(Dt):r.utcMonday(Dt),Dt=r.utcDay.offset(Dt,(dr.V-1)*7),dr.y=Dt.getUTCFullYear(),dr.m=Dt.getUTCMonth(),dr.d=Dt.getUTCDate()+(dr.w+6)%7):(Dt=t(a(dr.y,0,1)),Nn=Dt.getDay(),Dt=Nn>4||Nn===0?r.timeMonday.ceil(Dt):r.timeMonday(Dt),Dt=r.timeDay.offset(Dt,(dr.V-1)*7),dr.y=Dt.getFullYear(),dr.m=Dt.getMonth(),dr.d=Dt.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),Nn="Z"in dr?n(a(dr.y,0,1)).getUTCDay():t(a(dr.y,0,1)).getDay(),dr.m=0,dr.d="W"in dr?(dr.w+6)%7+dr.W*7-(Nn+5)%7:dr.w+dr.U*7-(Nn+6)%7);return"Z"in dr?(dr.H+=dr.Z/100|0,dr.M+=dr.Z%100,n(dr)):t(dr)}}function it(Sr,kr,yt,dr){for(var aa=0,Dt=kr.length,Nn=yt.length,qn,Ka;aa=Nn)return-1;if(qn=kr.charCodeAt(aa++),qn===37){if(qn=kr.charAt(aa++),Ka=st[qn in i?kr.charAt(aa++):qn],!Ka||(dr=Ka(Sr,yt,dr))<0)return-1}else if(qn!=yt.charCodeAt(dr++))return-1}return dr}function vt(Sr,kr,yt){var dr=Ar.exec(kr.slice(yt));return dr?(Sr.p=Hr[dr[0].toLowerCase()],yt+dr[0].length):-1}function Bt(Sr,kr,yt){var dr=Jr.exec(kr.slice(yt));return dr?(Sr.w=Xt[dr[0].toLowerCase()],yt+dr[0].length):-1}function Gn(Sr,kr,yt){var dr=ot.exec(kr.slice(yt));return dr?(Sr.w=Ir[dr[0].toLowerCase()],yt+dr[0].length):-1}function Yn(Sr,kr,yt){var dr=qt.exec(kr.slice(yt));return dr?(Sr.m=lr[dr[0].toLowerCase()],yt+dr[0].length):-1}function _n(Sr,kr,yt){var dr=tt.exec(kr.slice(yt));return dr?(Sr.m=Kr[dr[0].toLowerCase()],yt+dr[0].length):-1}function Ct(Sr,kr,yt){return it(Sr,ze,kr,yt)}function xi(Sr,kr,yt){return it(Sr,Ke,kr,yt)}function tn(Sr,kr,yt){return it(Sr,je,kr,yt)}function $a(Sr){return Tr[Sr.getDay()]}function _i(Sr){return Xr[Sr.getDay()]}function nn(Sr){return at[Sr.getMonth()]}function el(Sr){return Pr[Sr.getMonth()]}function Ji(Sr){return wr[+(Sr.getHours()>=12)]}function $i(Sr){return 1+~~(Sr.getMonth()/3)}function rl(Sr){return Tr[Sr.getUTCDay()]}function _v(Sr){return Xr[Sr.getUTCDay()]}function wv(Sr){return at[Sr.getUTCMonth()]}function Mv(Sr){return Pr[Sr.getUTCMonth()]}function $u(Sr){return wr[+(Sr.getUTCHours()>=12)]}function Ku(Sr){return 1+~~(Sr.getUTCMonth()/3)}return{format:function(Sr){var kr=mt(Sr+="",Dr);return kr.toString=function(){return Sr},kr},parse:function(Sr){var kr=St(Sr+="",!1);return kr.toString=function(){return Sr},kr},utcFormat:function(Sr){var kr=mt(Sr+="",Vr);return kr.toString=function(){return Sr},kr},utcParse:function(Sr){var kr=St(Sr+="",!0);return kr.toString=function(){return Sr},kr}}}var i={"-":"",_:" ",0:"0"},l=/^\s*\d+/,u=/^%/,s=/[\\^$*+?|[\]().{}]/g;function f(Ce,ze,Ke){var je=Ce<0?"-":"",wr=(je?-Ce:Ce)+"",Xr=wr.length;return je+(Xr68?1900:2e3),Ke+je[0].length):-1}function M(Ce,ze,Ke){var je=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(ze.slice(Ke,Ke+6));return je?(Ce.Z=je[1]?0:-(je[2]+(je[3]||"00")),Ke+je[0].length):-1}function d(Ce,ze,Ke){var je=l.exec(ze.slice(Ke,Ke+1));return je?(Ce.q=je[0]*3-3,Ke+je[0].length):-1}function w(Ce,ze,Ke){var je=l.exec(ze.slice(Ke,Ke+2));return je?(Ce.m=je[0]-1,Ke+je[0].length):-1}function y(Ce,ze,Ke){var je=l.exec(ze.slice(Ke,Ke+2));return je?(Ce.d=+je[0],Ke+je[0].length):-1}function v(Ce,ze,Ke){var je=l.exec(ze.slice(Ke,Ke+3));return je?(Ce.m=0,Ce.d=+je[0],Ke+je[0].length):-1}function A(Ce,ze,Ke){var je=l.exec(ze.slice(Ke,Ke+2));return je?(Ce.H=+je[0],Ke+je[0].length):-1}function p(Ce,ze,Ke){var je=l.exec(ze.slice(Ke,Ke+2));return je?(Ce.M=+je[0],Ke+je[0].length):-1}function D(Ce,ze,Ke){var je=l.exec(ze.slice(Ke,Ke+2));return je?(Ce.S=+je[0],Ke+je[0].length):-1}function E(Ce,ze,Ke){var je=l.exec(ze.slice(Ke,Ke+3));return je?(Ce.L=+je[0],Ke+je[0].length):-1}function R(Ce,ze,Ke){var je=l.exec(ze.slice(Ke,Ke+6));return je?(Ce.L=Math.floor(je[0]/1e3),Ke+je[0].length):-1}function F(Ce,ze,Ke){var je=u.exec(ze.slice(Ke,Ke+1));return je?Ke+je[0].length:-1}function z(Ce,ze,Ke){var je=l.exec(ze.slice(Ke));return je?(Ce.Q=+je[0],Ke+je[0].length):-1}function P(Ce,ze,Ke){var je=l.exec(ze.slice(Ke));return je?(Ce.s=+je[0],Ke+je[0].length):-1}function L(Ce,ze){return f(Ce.getDate(),ze,2)}function I(Ce,ze){return f(Ce.getHours(),ze,2)}function B(Ce,ze){return f(Ce.getHours()%12||12,ze,2)}function O(Ce,ze){return f(1+r.timeDay.count(r.timeYear(Ce),Ce),ze,3)}function G(Ce,ze){return f(Ce.getMilliseconds(),ze,3)}function J(Ce,ze){return G(Ce,ze)+"000"}function j(Ce,ze){return f(Ce.getMonth()+1,ze,2)}function V(Ce,ze){return f(Ce.getMinutes(),ze,2)}function q(Ce,ze){return f(Ce.getSeconds(),ze,2)}function Z(Ce){var ze=Ce.getDay();return ze===0?7:ze}function re(Ce,ze){return f(r.timeSunday.count(r.timeYear(Ce)-1,Ce),ze,2)}function $(Ce){var ze=Ce.getDay();return ze>=4||ze===0?r.timeThursday(Ce):r.timeThursday.ceil(Ce)}function ae(Ce,ze){return Ce=$(Ce),f(r.timeThursday.count(r.timeYear(Ce),Ce)+(r.timeYear(Ce).getDay()===4),ze,2)}function Q(Ce){return Ce.getDay()}function te(Ce,ze){return f(r.timeMonday.count(r.timeYear(Ce)-1,Ce),ze,2)}function ue(Ce,ze){return f(Ce.getFullYear()%100,ze,2)}function ee(Ce,ze){return Ce=$(Ce),f(Ce.getFullYear()%100,ze,2)}function ie(Ce,ze){return f(Ce.getFullYear()%1e4,ze,4)}function fe(Ce,ze){var Ke=Ce.getDay();return Ce=Ke>=4||Ke===0?r.timeThursday(Ce):r.timeThursday.ceil(Ce),f(Ce.getFullYear()%1e4,ze,4)}function we(Ce){var ze=Ce.getTimezoneOffset();return(ze>0?"-":(ze*=-1,"+"))+f(ze/60|0,"0",2)+f(ze%60,"0",2)}function Te(Ce,ze){return f(Ce.getUTCDate(),ze,2)}function ke(Ce,ze){return f(Ce.getUTCHours(),ze,2)}function ge(Ce,ze){return f(Ce.getUTCHours()%12||12,ze,2)}function Ee(Ce,ze){return f(1+r.utcDay.count(r.utcYear(Ce),Ce),ze,3)}function Le(Ce,ze){return f(Ce.getUTCMilliseconds(),ze,3)}function se(Ce,ze){return Le(Ce,ze)+"000"}function X(Ce,ze){return f(Ce.getUTCMonth()+1,ze,2)}function K(Ce,ze){return f(Ce.getUTCMinutes(),ze,2)}function ye(Ce,ze){return f(Ce.getUTCSeconds(),ze,2)}function oe(Ce){var ze=Ce.getUTCDay();return ze===0?7:ze}function de(Ce,ze){return f(r.utcSunday.count(r.utcYear(Ce)-1,Ce),ze,2)}function pe(Ce){var ze=Ce.getUTCDay();return ze>=4||ze===0?r.utcThursday(Ce):r.utcThursday.ceil(Ce)}function me(Ce,ze){return Ce=pe(Ce),f(r.utcThursday.count(r.utcYear(Ce),Ce)+(r.utcYear(Ce).getUTCDay()===4),ze,2)}function Se(Ce){return Ce.getUTCDay()}function ve(Ce,ze){return f(r.utcMonday.count(r.utcYear(Ce)-1,Ce),ze,2)}function he(Ce,ze){return f(Ce.getUTCFullYear()%100,ze,2)}function be(Ce,ze){return Ce=pe(Ce),f(Ce.getUTCFullYear()%100,ze,2)}function Ae(Ce,ze){return f(Ce.getUTCFullYear()%1e4,ze,4)}function Re(Ce,ze){var Ke=Ce.getUTCDay();return Ce=Ke>=4||Ke===0?r.utcThursday(Ce):r.utcThursday.ceil(Ce),f(Ce.getUTCFullYear()%1e4,ze,4)}function Pe(){return"+0000"}function Ye(){return"%"}function Ve(Ce){return+Ce}function Ue(Ce){return Math.floor(+Ce/1e3)}var qe;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(Ce){return qe=o(Ce),e.timeFormat=qe.format,e.timeParse=qe.parse,e.utcFormat=qe.utcFormat,e.utcParse=qe.utcParse,qe}var Xe="%Y-%m-%dT%H:%M:%S.%LZ";function er(Ce){return Ce.toISOString()}var nr=Date.prototype.toISOString?er:e.utcFormat(Xe);function rr(Ce){var ze=new Date(Ce);return isNaN(ze)?null:ze}var Qe=+new Date("2000-01-01T00:00:00.000Z")?rr:e.utcParse(Xe);e.isoFormat=nr,e.isoParse=Qe,e.timeFormatDefaultLocale=We,e.timeFormatLocale=o,Object.defineProperty(e,"__esModule",{value:!0})})});var fg=xe((Zv,i7)=>{(function(e,r){typeof Zv=="object"&&typeof i7!="undefined"?r(Zv):(e=typeof globalThis!="undefined"?globalThis:e||self,r(e.d3=e.d3||{}))})(Zv,(function(e){"use strict";function r(w){return Math.abs(w=Math.round(w))>=1e21?w.toLocaleString("en").replace(/,/g,""):w.toString(10)}function t(w,y){if((v=(w=y?w.toExponential(y-1):w.toExponential()).indexOf("e"))<0)return null;var v,A=w.slice(0,v);return[A.length>1?A[0]+A.slice(2):A,+w.slice(v+1)]}function n(w){return w=t(Math.abs(w)),w?w[1]:NaN}function a(w,y){return function(v,A){for(var p=v.length,D=[],E=0,R=w[0],F=0;p>0&&R>0&&(F+R+1>A&&(R=Math.max(1,A-F)),D.push(v.substring(p-=R,p+R)),!((F+=R+1)>A));)R=w[E=(E+1)%w.length];return D.reverse().join(y)}}function o(w){return function(y){return y.replace(/[0-9]/g,function(v){return w[+v]})}}var i=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function l(w){if(!(y=i.exec(w)))throw new Error("invalid format: "+w);var y;return new u({fill:y[1],align:y[2],sign:y[3],symbol:y[4],zero:y[5],width:y[6],comma:y[7],precision:y[8]&&y[8].slice(1),trim:y[9],type:y[10]})}l.prototype=u.prototype;function u(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+""}u.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 s(w){e:for(var y=w.length,v=1,A=-1,p;v0&&(A=0);break}return A>0?w.slice(0,A)+w.slice(p+1):w}var f;function c(w,y){var v=t(w,y);if(!v)return w+"";var A=v[0],p=v[1],D=p-(f=Math.max(-8,Math.min(8,Math.floor(p/3)))*3)+1,E=A.length;return D===E?A:D>E?A+new Array(D-E+1).join("0"):D>0?A.slice(0,D)+"."+A.slice(D):"0."+new Array(1-D).join("0")+t(w,Math.max(0,y+D-1))[0]}function g(w,y){var v=t(w,y);if(!v)return w+"";var A=v[0],p=v[1];return p<0?"0."+new Array(-p).join("0")+A:A.length>p+1?A.slice(0,p+1)+"."+A.slice(p+1):A+new Array(p-A.length+2).join("0")}var x={"%":function(w,y){return(w*100).toFixed(y)},b:function(w){return Math.round(w).toString(2)},c:function(w){return w+""},d:r,e:function(w,y){return w.toExponential(y)},f:function(w,y){return w.toFixed(y)},g:function(w,y){return w.toPrecision(y)},o:function(w){return Math.round(w).toString(8)},p:function(w,y){return g(w*100,y)},r:g,s:c,X:function(w){return Math.round(w).toString(16).toUpperCase()},x:function(w){return Math.round(w).toString(16)}};function h(w){return w}var _=Array.prototype.map,T=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function m(w){var y=w.grouping===void 0||w.thousands===void 0?h:a(_.call(w.grouping,Number),w.thousands+""),v=w.currency===void 0?"":w.currency[0]+"",A=w.currency===void 0?"":w.currency[1]+"",p=w.decimal===void 0?".":w.decimal+"",D=w.numerals===void 0?h:o(_.call(w.numerals,String)),E=w.percent===void 0?"%":w.percent+"",R=w.minus===void 0?"-":w.minus+"",F=w.nan===void 0?"NaN":w.nan+"";function z(L){L=l(L);var I=L.fill,B=L.align,O=L.sign,G=L.symbol,J=L.zero,j=L.width,V=L.comma,q=L.precision,Z=L.trim,re=L.type;re==="n"?(V=!0,re="g"):x[re]||(q===void 0&&(q=12),Z=!0,re="g"),(J||I==="0"&&B==="=")&&(J=!0,I="0",B="=");var $=G==="$"?v:G==="#"&&/[boxX]/.test(re)?"0"+re.toLowerCase():"",ae=G==="$"?A:/[%p]/.test(re)?E:"",Q=x[re],te=/[defgprs%]/.test(re);q=q===void 0?6:/[gprs]/.test(re)?Math.max(1,Math.min(21,q)):Math.max(0,Math.min(20,q));function ue(ee){var ie=$,fe=ae,we,Te,ke;if(re==="c")fe=Q(ee)+fe,ee="";else{ee=+ee;var ge=ee<0||1/ee<0;if(ee=isNaN(ee)?F:Q(Math.abs(ee),q),Z&&(ee=s(ee)),ge&&+ee==0&&O!=="+"&&(ge=!1),ie=(ge?O==="("?O:R:O==="-"||O==="("?"":O)+ie,fe=(re==="s"?T[8+f/3]:"")+fe+(ge&&O==="("?")":""),te){for(we=-1,Te=ee.length;++weke||ke>57){fe=(ke===46?p+ee.slice(we+1):ee.slice(we))+fe,ee=ee.slice(0,we);break}}}V&&!J&&(ee=y(ee,1/0));var Ee=ie.length+ee.length+fe.length,Le=Ee>1)+ie+ee+fe+Le.slice(Ee);break;default:ee=Le+ie+ee+fe;break}return D(ee)}return ue.toString=function(){return L+""},ue}function P(L,I){var B=z((L=l(L),L.type="f",L)),O=Math.max(-8,Math.min(8,Math.floor(n(I)/3)))*3,G=Math.pow(10,-O),J=T[8+O/3];return function(j){return B(G*j)+J}}return{format:z,formatPrefix:P}}var k;S({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function S(w){return k=m(w),e.format=k.format,e.formatPrefix=k.formatPrefix,k}function b(w){return Math.max(0,-n(Math.abs(w)))}function M(w,y){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(n(y)/3)))*3-n(Math.abs(w)))}function d(w,y){return w=Math.abs(w),y=Math.abs(y)-w,Math.max(0,n(y)-n(w))+1}e.FormatSpecifier=u,e.formatDefaultLocale=S,e.formatLocale=m,e.formatSpecifier=l,e.precisionFixed=b,e.precisionPrefix=M,e.precisionRound=d,Object.defineProperty(e,"__esModule",{value:!0})}))});var l7=xe((Pbe,o7)=>{"use strict";o7.exports=function(e){for(var r=e.length,t,n=0;n13)&&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}});var ut=xe((Ibe,s7)=>{"use strict";var WY=l7();s7.exports=function(e){var r=typeof e;if(r==="string"){var t=e;if(e=+e,e===0&&WY(t))return!1}else if(r!=="number")return!1;return e-e<1}});var Rn={};Ht(Rn,{ALMOST_EQUAL:()=>vX,BADNUM:()=>cg,EPOCHJD:()=>cX,FP_SAFE:()=>ZY,LOG_CLIP:()=>hX,MINUS_SIGN:()=>dX,ONEAVGMONTH:()=>tX,ONEAVGQUARTER:()=>jY,ONEAVGYEAR:()=>$Y,ONEDAY:()=>iX,ONEHOUR:()=>oX,ONEMAXMONTH:()=>rX,ONEMAXQUARTER:()=>QY,ONEMAXYEAR:()=>JY,ONEMICROSEC:()=>fX,ONEMILLI:()=>uX,ONEMIN:()=>lX,ONEMINMONTH:()=>nX,ONEMINQUARTER:()=>eX,ONEMINYEAR:()=>KY,ONESEC:()=>sX,ONEWEEK:()=>aX});var cg,ZY,JY,$Y,KY,QY,jY,eX,rX,tX,nX,aX,iX,oX,lX,sX,uX,fX,cX,vX,hX,dX,wn=Ut(()=>{"use strict";cg=void 0,ZY=Number.MAX_VALUE*1e-4,JY=316224e5,$Y=315576e5,KY=31536e6,QY=79488e5,jY=78894e5,eX=76896e5,rX=26784e5,tX=26298e5,nX=24192e5,aX=6048e5,iX=864e5,oX=36e5,lX=6e4,sX=1e3,uX=1,fX=.001,cX=24405875e-1,vX=1-1e-6,hX=10,dX="\u2212"});var vg=xe((Jv,u7)=>{(function(e,r){typeof Jv=="object"&&typeof u7!="undefined"?r(Jv):(e=typeof globalThis!="undefined"?globalThis:e||self,r(e["base64-arraybuffer"]={}))})(Jv,(function(e){"use strict";for(var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),n=0;n>2],f+=r[(l[u]&3)<<4|l[u+1]>>4],f+=r[(l[u+1]&15)<<2|l[u+2]>>6],f+=r[l[u+2]&63];return s%3===2?f=f.substring(0,f.length-1)+"=":s%3===1&&(f=f.substring(0,f.length-2)+"=="),f},o=function(i){var l=i.length*.75,u=i.length,s,f=0,c,g,x,h;i[i.length-1]==="="&&(l--,i[i.length-2]==="="&&l--);var _=new ArrayBuffer(l),T=new Uint8Array(_);for(s=0;s>4,T[f++]=(g&15)<<4|x>>2,T[f++]=(x&3)<<6|h&63;return _};e.decode=o,e.encode=a,Object.defineProperty(e,"__esModule",{value:!0})}))});var ss=xe((zbe,f7)=>{"use strict";f7.exports=function(r){return window&&window.process&&window.process.versions?Object.prototype.toString.call(r)==="[object Object]":Object.prototype.toString.call(r)==="[object Object]"&&Object.getPrototypeOf(r).hasOwnProperty("hasOwnProperty")}});var ba=xe(Ti=>{"use strict";var pX=vg().decode,gX=ss(),hg=Array.isArray,yX=ArrayBuffer,mX=DataView;function c7(e){return yX.isView(e)&&!(e instanceof mX)}Ti.isTypedArray=c7;function $v(e){return hg(e)||c7(e)}Ti.isArrayOrTypedArray=$v;function bX(e){return!$v(e[0])}Ti.isArray1D=bX;Ti.ensureArray=function(e,r){return hg(e)||(e=[]),e.length=r,e};var Fn={u1c:typeof Uint8ClampedArray=="undefined"?void 0:Uint8ClampedArray,i1:typeof Int8Array=="undefined"?void 0:Int8Array,u1:typeof Uint8Array=="undefined"?void 0:Uint8Array,i2:typeof Int16Array=="undefined"?void 0:Int16Array,u2:typeof Uint16Array=="undefined"?void 0:Uint16Array,i4:typeof Int32Array=="undefined"?void 0:Int32Array,u4:typeof Uint32Array=="undefined"?void 0:Uint32Array,f4:typeof Float32Array=="undefined"?void 0:Float32Array,f8:typeof Float64Array=="undefined"?void 0:Float64Array};Fn.uint8c=Fn.u1c;Fn.uint8=Fn.u1;Fn.int8=Fn.i1;Fn.uint16=Fn.u2;Fn.int16=Fn.i2;Fn.uint32=Fn.u4;Fn.int32=Fn.i4;Fn.float32=Fn.f4;Fn.float64=Fn.f8;function dg(e){return e.constructor===ArrayBuffer}Ti.isArrayBuffer=dg;Ti.decodeTypedArraySpec=function(e){var r=[],t=xX(e),n=t.dtype,a=Fn[n];if(!a)throw new Error('Error in dtype: "'+n+'"');var o=a.BYTES_PER_ELEMENT,i=t.bdata;dg(i)||(i=pX(i));var l=t.shape===void 0?[i.byteLength/o]:(""+t.shape).split(",");l.reverse();var u=l.length,s,f,c=+l[0],g=o*c,x=0;if(u===1)r=new a(i);else if(u===2)for(s=+l[1],f=0;f{"use strict";var h7=ut(),gg=ba().isArrayOrTypedArray;y7.exports=function(r,t){if(h7(t))t=String(t);else if(typeof t!="string"||t.slice(-4)==="[-1]")throw"bad property string";var n=t.split("."),a,o,i,l;for(l=0;l{"use strict";var M0=Kv(),AX=/^\w*$/,kX=0,m7=1,Qv=2,b7=3,us=4;x7.exports=function(r,t,n,a){n=n||"name",a=a||"value";var o,i,l,u={};t&&t.length?(l=M0(r,t),i=l.get()):i=r,t=t||"";var s={};if(i)for(o=0;o2)return u[x]=u[x]|Qv,c.set(g,null);if(f){for(o=x;o{"use strict";var SX=/^(.*)(\.[^\.\[\]]+|\[\d\])$/,CX=/^[^\.\[\]]+$/;w7.exports=function(e,r){for(;r;){var t=e.match(SX);if(t)e=t[1];else if(e.match(CX))e="";else throw new Error("bad relativeAttr call:"+[e,r]);if(r.charAt(0)==="^")r=r.slice(1);else break}return e&&r.charAt(0)!=="["?e+"."+r:e+r}});var jv=xe((Ube,T7)=>{"use strict";var EX=ut();T7.exports=function(r,t){if(r>0)return Math.log(r)/Math.LN10;var n=Math.log(Math.min(t[0],t[1]))/Math.LN10;return EX(n)||(n=Math.log(Math.max(t[0],t[1]))/Math.LN10-6),n}});var S7=xe((Hbe,k7)=>{"use strict";var A7=ba().isArrayOrTypedArray,ff=ss();k7.exports=function e(r,t){for(var n in t){var a=t[n],o=r[n];if(o!==a)if(n.charAt(0)==="_"||typeof a=="function"){if(n in r)continue;r[n]=a}else if(A7(a)&&A7(o)&&ff(a[0])){if(n==="customdata"||n==="ids")continue;for(var i=Math.min(a.length,o.length),l=0;lLX,modHalf:()=>DX});function LX(e,r){let t=e%r;return t<0?t+r:t}function DX(e,r){return Math.abs(e)>r/2?e-Math.round(e/r)*r:e}var A0=Ut(()=>{"use strict"});var Rt=xe(hf=>{"use strict";var C7=ss(),cf=Array.isArray;function RX(e,r){var t,n;for(t=0;t{"use strict";E7.exports=function(e){var r=e.variantValues,t=e.editType,n=e.colorEditType;n===void 0&&(n=t);var a={editType:t,valType:"integer",min:1,max:1e3,extras:["normal","bold"],dflt:"normal"};e.noNumericWeightValues&&(a.valType="enumerated",a.values=a.extras,a.extras=void 0,a.min=void 0,a.max=void 0);var o={family:{valType:"string",noBlank:!0,strict:!0,editType:t},size:{valType:"number",min:1,editType:t},color:{valType:"color",editType:n},weight:a,style:{editType:t,valType:"enumerated",values:["normal","italic"],dflt:"normal"},variant:e.noFontVariant?void 0:{editType:t,valType:"enumerated",values:r||["normal","small-caps","all-small-caps","all-petite-caps","petite-caps","unicase"],dflt:"normal"},textcase:e.noFontTextcase?void 0:{editType:t,valType:"enumerated",values:["normal","word caps","upper","lower"],dflt:"normal"},lineposition:e.noFontLineposition?void 0:{editType:t,valType:"flaglist",flags:["under","over","through"],extras:["none"],dflt:"none"},shadow:e.noFontShadow?void 0:{editType:t,valType:"string",dflt:e.autoShadowDflt?"auto":"none"},editType:t};return e.autoSize&&(o.size.dflt="auto"),e.autoColor&&(o.color.dflt="auto"),e.arrayOk&&(o.family.arrayOk=!0,o.weight.arrayOk=!0,o.style.arrayOk=!0,e.noFontVariant||(o.variant.arrayOk=!0),e.noFontTextcase||(o.textcase.arrayOk=!0),e.noFontLineposition||(o.lineposition.arrayOk=!0),e.noFontShadow||(o.shadow.arrayOk=!0),o.size.arrayOk=!0,o.color.arrayOk=!0),o}});var df={};Ht(df,{HOVERARROWSIZE:()=>PX,HOVERFONT:()=>NX,HOVERFONTSIZE:()=>zX,HOVERID:()=>BX,HOVERMINTIME:()=>qX,HOVERTEXTPAD:()=>IX,YANGLE:()=>FX});var FX,PX,IX,zX,NX,qX,BX,pf=Ut(()=>{"use strict";FX=60,PX=6,IX=3,zX=13,NX="Arial, sans-serif",qX=50,BX="-hover"});var fs=xe((Ybe,R7)=>{"use strict";var L7=(pf(),or(df)),D7=Wn(),yg=D7({editType:"none"});yg.family.dflt=L7.HOVERFONT;yg.size.dflt=L7.HOVERFONTSIZE;R7.exports={clickmode:{valType:"flaglist",flags:["event","select"],dflt:"event",editType:"plot",extras:["none"]},dragmode:{valType:"enumerated",values:["zoom","pan","select","lasso","drawclosedpath","drawopenpath","drawline","drawrect","drawcircle","orbit","turntable",!1],dflt:"zoom",editType:"modebar"},hovermode:{valType:"enumerated",values:["x","y","closest",!1,"x unified","y unified"],dflt:"closest",editType:"modebar"},hoversort:{valType:"enumerated",values:["trace","value descending","value ascending"],dflt:"trace",editType:"none"},hoversubplots:{valType:"enumerated",values:["single","overlaying","axis"],dflt:"overlaying",editType:"none"},hoveranywhere:{valType:"boolean",dflt:!1,editType:"none"},clickanywhere:{valType:"boolean",dflt:!1,editType:"none"},hoverdistance:{valType:"integer",min:-1,dflt:20,editType:"none"},spikedistance:{valType:"integer",min:-1,dflt:-1,editType:"none"},hoverlabel:{bgcolor:{valType:"color",editType:"none"},bordercolor:{valType:"color",editType:"none"},font:yg,grouptitlefont:D7({editType:"none"}),align:{valType:"enumerated",values:["left","right","auto"],dflt:"auto",editType:"none"},namelength:{valType:"integer",min:-1,dflt:15,editType:"none"},showarrow:{valType:"boolean",dflt:!0,editType:"none"},editType:"none"},selectdirection:{valType:"enumerated",values:["h","v","d","any"],dflt:"any",editType:"none"}}});var eh=xe((Xbe,F7)=>{"use strict";var OX=Wn(),gf=fs().hoverlabel,yf=Rt().extendFlat;F7.exports={hoverlabel:{bgcolor:yf({},gf.bgcolor,{arrayOk:!0}),bordercolor:yf({},gf.bordercolor,{arrayOk:!0}),font:OX({arrayOk:!0,editType:"none"}),align:yf({},gf.align,{arrayOk:!0}),namelength:yf({},gf.namelength,{arrayOk:!0}),showarrow:yf({},gf.showarrow),editType:"none"}}});var Zn=xe((Wbe,P7)=>{"use strict";var UX=Wn(),HX=eh();P7.exports={type:{valType:"enumerated",values:[],dflt:"scatter",editType:"calc+clearAxisTypes",_noTemplating:!0},visible:{valType:"enumerated",values:[!0,!1,"legendonly"],dflt:!0,editType:"calc"},showlegend:{valType:"boolean",dflt:!0,editType:"style"},legend:{valType:"subplotid",dflt:"legend",editType:"style"},legendgroup:{valType:"string",dflt:"",editType:"style"},legendgrouptitle:{text:{valType:"string",dflt:"",editType:"style"},font:UX({editType:"style"}),editType:"style"},legendrank:{valType:"number",dflt:1e3,editType:"style"},legendwidth:{valType:"number",min:0,editType:"style"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"style"},name:{valType:"string",editType:"style"},uid:{valType:"string",editType:"plot",anim:!0},ids:{valType:"data_array",editType:"calc",anim:!0},customdata:{valType:"data_array",editType:"calc"},meta:{valType:"any",arrayOk:!0,editType:"plot"},selectedpoints:{valType:"any",editType:"calc"},hoverinfo:{valType:"flaglist",flags:["x","y","z","text","name"],extras:["all","none","skip"],arrayOk:!0,dflt:"all",editType:"none"},hoverlabel:HX.hoverlabel,uirevision:{valType:"any",editType:"none"}}});var k8=xe((exe,A8)=>{var u3=Object.defineProperty,VX=Object.getOwnPropertyDescriptor,GX=Object.getOwnPropertyNames,YX=Object.prototype.hasOwnProperty,XX=(e,r)=>{for(var t in r)u3(e,t,{get:r[t],enumerable:!0})},WX=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let a of GX(r))!YX.call(e,a)&&a!==t&&u3(e,a,{get:()=>r[a],enumerable:!(n=VX(r,a))||n.enumerable});return e},ZX=e=>WX(u3({},"__esModule",{value:!0}),e),G7={};XX(G7,{a98:()=>B$,average:()=>GW,averageAngle:()=>ro,averageNumber:()=>lw,blend:()=>VJ,blerp:()=>Vg,clampChroma:()=>u$,clampGamut:()=>z3,clampRgb:()=>s$,colorsNamed:()=>X7,convertA98ToXyz65:()=>Gg,convertCubehelixToRgb:()=>iw,convertDlchToLab65:()=>uh,convertHsiToRgb:()=>pw,convertHslToRgb:()=>mw,convertHsvToRgb:()=>p3,convertHwbToRgb:()=>ww,convertItpToXyz65:()=>Xg,convertJabToJch:()=>Zg,convertJabToRgb:()=>_3,convertJabToXyz65:()=>b3,convertJchToJab:()=>Jg,convertLab65ToDlch:()=>fh,convertLab65ToRgb:()=>Af,convertLab65ToXyz65:()=>v3,convertLabToLch:()=>Eo,convertLabToRgb:()=>M3,convertLabToXyz50:()=>xh,convertLchToLab:()=>Lo,convertLchuvToLuv:()=>k3,convertLrgbToOklab:()=>S3,convertLrgbToRgb:()=>ys,convertLuvToLchuv:()=>A3,convertLuvToXyz50:()=>vh,convertOkhslToOklab:()=>Qg,convertOkhsvToOklab:()=>e3,convertOklabToLrgb:()=>F0,convertOklabToOkhsl:()=>Kg,convertOklabToOkhsv:()=>jg,convertOklabToRgb:()=>Cf,convertP3ToXyz65:()=>r3,convertProphotoToXyz50:()=>a3,convertRec2020ToXyz65:()=>o3,convertRgbToCubehelix:()=>aw,convertRgbToHsi:()=>gw,convertRgbToHsl:()=>bw,convertRgbToHsv:()=>g3,convertRgbToHwb:()=>Mw,convertRgbToJab:()=>x3,convertRgbToLab:()=>T3,convertRgbToLab65:()=>kf,convertRgbToLrgb:()=>gs,convertRgbToOklab:()=>Sf,convertRgbToXyb:()=>Kw,convertRgbToXyz50:()=>R0,convertRgbToXyz65:()=>al,convertRgbToYiq:()=>a8,convertXybToRgb:()=>Qw,convertXyz50ToLab:()=>_h,convertXyz50ToLuv:()=>ch,convertXyz50ToProphoto:()=>n3,convertXyz50ToRgb:()=>D0,convertXyz50ToXyz65:()=>t8,convertXyz65ToA98:()=>Yg,convertXyz65ToItp:()=>Wg,convertXyz65ToJab:()=>m3,convertXyz65ToLab65:()=>h3,convertXyz65ToP3:()=>t3,convertXyz65ToRec2020:()=>i3,convertXyz65ToRgb:()=>il,convertXyz65ToXyz50:()=>r8,convertYiqToRgb:()=>i8,converter:()=>Ft,cubehelix:()=>O$,differenceCie76:()=>NW,differenceCie94:()=>qW,differenceCiede2000:()=>BW,differenceCmc:()=>OW,differenceEuclidean:()=>L0,differenceHueChroma:()=>Tf,differenceHueNaive:()=>ow,differenceHueSaturation:()=>Mf,differenceHyab:()=>UW,differenceItp:()=>VW,differenceKotsarenkoRamos:()=>HW,displayable:()=>I3,dlab:()=>U$,dlch:()=>H$,easingGamma:()=>x8,easingInOutSine:()=>N$,easingMidpoint:()=>h8,easingSmootherstep:()=>I$,easingSmoothstep:()=>R$,easingSmoothstepInverse:()=>F$,filterBrightness:()=>m$,filterContrast:()=>b$,filterDeficiencyDeuter:()=>L$,filterDeficiencyProt:()=>E$,filterDeficiencyTrit:()=>D$,filterGrayscale:()=>w$,filterHueRotate:()=>T$,filterInvert:()=>M$,filterSaturate:()=>_$,filterSepia:()=>x$,fixupAlpha:()=>Tn,fixupHueDecreasing:()=>RW,fixupHueIncreasing:()=>DW,fixupHueLonger:()=>LW,fixupHueShorter:()=>eo,formatCss:()=>zJ,formatHex:()=>NJ,formatHex8:()=>qJ,formatHsl:()=>OJ,formatRgb:()=>BJ,getMode:()=>la,hsi:()=>V$,hsl:()=>G$,hsv:()=>Y$,hwb:()=>X$,inGamut:()=>Th,interpolate:()=>QJ,interpolateWith:()=>p8,interpolateWithPremultipliedAlpha:()=>jJ,interpolatorLinear:()=>_r,interpolatorPiecewise:()=>tw,interpolatorSplineBasis:()=>y8,interpolatorSplineBasisClosed:()=>m8,interpolatorSplineMonotone:()=>t$,interpolatorSplineMonotone2:()=>n$,interpolatorSplineMonotoneClosed:()=>a$,interpolatorSplineNatural:()=>e$,interpolatorSplineNaturalClosed:()=>r$,itp:()=>W$,jab:()=>Z$,jch:()=>J$,lab:()=>$$,lab65:()=>K$,lch:()=>Q$,lch65:()=>j$,lchuv:()=>eK,lerp:()=>vs,lrgb:()=>rK,luv:()=>tK,mapAlphaDivide:()=>v8,mapAlphaMultiply:()=>c8,mapTransferGamma:()=>ZJ,mapTransferLinear:()=>R3,mapper:()=>Ef,modeA98:()=>nw,modeCubehelix:()=>sw,modeDlab:()=>hw,modeDlch:()=>dw,modeHsi:()=>yw,modeHsl:()=>d3,modeHsv:()=>y3,modeHwb:()=>Aw,modeItp:()=>Cw,modeJab:()=>Ew,modeJch:()=>Lw,modeLab:()=>wh,modeLab65:()=>Rw,modeLch:()=>Mh,modeLch65:()=>Pw,modeLchuv:()=>Nw,modeLrgb:()=>qw,modeLuv:()=>Bw,modeOkhsl:()=>Uw,modeOkhsv:()=>Hw,modeOklab:()=>Gw,modeOklch:()=>Xw,modeP3:()=>Ww,modeProphoto:()=>Zw,modeRec2020:()=>Jw,modeRgb:()=>ps,modeXyb:()=>jw,modeXyz50:()=>e8,modeXyz65:()=>n8,modeYiq:()=>o8,nearest:()=>v$,okhsl:()=>nK,okhsv:()=>aK,oklab:()=>iK,oklch:()=>oK,p3:()=>lK,parse:()=>j7,parseHex:()=>Z7,parseHsl:()=>_w,parseHslLegacy:()=>xw,parseHwb:()=>Tw,parseLab:()=>Dw,parseLch:()=>Fw,parseNamed:()=>W7,parseOklab:()=>Vw,parseOklch:()=>Yw,parseRgb:()=>ew,parseRgbLegacy:()=>J7,parseTransparent:()=>rw,prophoto:()=>sK,random:()=>WJ,rec2020:()=>uK,removeParser:()=>sW,rgb:()=>fK,round:()=>l8,samples:()=>l$,serializeHex:()=>D3,serializeHex8:()=>s8,serializeHsl:()=>f8,serializeRgb:()=>u8,toGamut:()=>f$,trilerp:()=>bW,unlerp:()=>mW,useMode:()=>Mt,useParser:()=>K7,wcagContrast:()=>q$,wcagLuminance:()=>s3,xyb:()=>cK,xyz50:()=>vK,xyz65:()=>hK,yiq:()=>dK});A8.exports=ZX(G7);var JX=(e,r)=>{if(typeof e=="number"){if(r===3)return{mode:"rgb",r:(e>>8&15|e>>4&240)/255,g:(e>>4&15|e&240)/255,b:(e&15|e<<4&240)/255};if(r===4)return{mode:"rgb",r:(e>>12&15|e>>8&240)/255,g:(e>>8&15|e>>4&240)/255,b:(e>>4&15|e&240)/255,alpha:(e&15|e<<4&240)/255};if(r===6)return{mode:"rgb",r:(e>>16&255)/255,g:(e>>8&255)/255,b:(e&255)/255};if(r===8)return{mode:"rgb",r:(e>>24&255)/255,g:(e>>16&255)/255,b:(e>>8&255)/255,alpha:(e&255)/255}}},Y7=JX,$X={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},X7=$X,KX=e=>Y7(X7[e.toLowerCase()],6),W7=KX,QX=/^#?([0-9a-f]{8}|[0-9a-f]{6}|[0-9a-f]{4}|[0-9a-f]{3})$/i,jX=e=>{let r;return(r=e.match(QX))?Y7(parseInt(r[1],16),r[1].length):void 0},Z7=jX,ka="([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)",Zbe=`(?:${ka}|none)`,xf=`${ka}%`,Jbe=`(?:${ka}%|none)`,f3=`(?:${ka}%|${ka})`,eW=`(?:${ka}%|${ka}|none)`,rW=`(?:${ka}(deg|grad|rad|turn)|${ka})`,$be=`(?:${ka}(deg|grad|rad|turn)|${ka}|none)`,C0="\\s*,\\s*",Kbe=new RegExp("^"+eW+"$"),tW=new RegExp(`^rgba?\\(\\s*${ka}${C0}${ka}${C0}${ka}\\s*(?:,\\s*${f3}\\s*)?\\)$`),nW=new RegExp(`^rgba?\\(\\s*${xf}${C0}${xf}${C0}${xf}\\s*(?:,\\s*${f3}\\s*)?\\)$`),aW=e=>{let r={mode:"rgb"},t;if(t=e.match(tW))t[1]!==void 0&&(r.r=t[1]/255),t[2]!==void 0&&(r.g=t[2]/255),t[3]!==void 0&&(r.b=t[3]/255);else if(t=e.match(nW))t[1]!==void 0&&(r.r=t[1]/100),t[2]!==void 0&&(r.g=t[2]/100),t[3]!==void 0&&(r.b=t[3]/100);else return;return t[4]!==void 0?r.alpha=Math.max(0,Math.min(1,t[4]/100)):t[5]!==void 0&&(r.alpha=Math.max(0,Math.min(1,+t[5]))),r},J7=aW,iW=(e,r)=>e===void 0?void 0:typeof e!="object"?j7(e):e.mode!==void 0?e:r?Ot(wt({},e),{mode:r}):void 0,Ai=iW,oW=(e="rgb")=>r=>(r=Ai(r,e))!==void 0?r.mode===e?r:ji[r.mode][e]?ji[r.mode][e](r):e==="rgb"?ji[r.mode].rgb(r):ji.rgb[e](ji[r.mode].rgb(r)):void 0,Ft=oW,ji={},$7={},E0=[],c3={},lW=e=>e,Mt=e=>(ji[e.mode]=wt(wt({},ji[e.mode]),e.toMode),Object.keys(e.fromMode||{}).forEach(r=>{ji[r]||(ji[r]={}),ji[r][e.mode]=e.fromMode[r]}),e.ranges||(e.ranges={}),e.difference||(e.difference={}),e.channels.forEach(r=>{if(e.ranges[r]===void 0&&(e.ranges[r]=[0,1]),!e.interpolate[r])throw new Error(`Missing interpolator for: ${r}`);typeof e.interpolate[r]=="function"&&(e.interpolate[r]={use:e.interpolate[r]}),e.interpolate[r].fixup||(e.interpolate[r].fixup=lW)}),$7[e.mode]=e,(e.parse||[]).forEach(r=>{K7(r,e.mode)}),Ft(e.mode)),la=e=>$7[e],K7=(e,r)=>{if(typeof e=="string"){if(!r)throw new Error("'mode' required when 'parser' is a string");c3[e]=r}else typeof e=="function"&&E0.indexOf(e)<0&&E0.push(e)},sW=e=>{if(typeof e=="string")delete c3[e];else if(typeof e=="function"){let r=E0.indexOf(e);r>0&&E0.splice(r,1)}},Ug=/[^\x00-\x7F]|[a-zA-Z_]/,uW=/[^\x00-\x7F]|[-\w]/,yr={Function:"function",Ident:"ident",Number:"number",Percentage:"percentage",ParenClose:")",None:"none",Hue:"hue",Alpha:"alpha"},Wr=0;function rh(e){let r=e[Wr],t=e[Wr+1];return r==="-"||r==="+"?/\d/.test(t)||t==="."&&/\d/.test(e[Wr+2]):r==="."?/\d/.test(t):/\d/.test(r)}function Hg(e){if(Wr>=e.length)return!1;let r=e[Wr];if(Ug.test(r))return!0;if(r==="-"){if(e.length-Wr<2)return!1;let t=e[Wr+1];return!!(t==="-"||Ug.test(t))}return!1}var fW={deg:1,rad:180/Math.PI,grad:9/10,turn:360};function mf(e){let r="";if((e[Wr]==="-"||e[Wr]==="+")&&(r+=e[Wr++]),r+=th(e),e[Wr]==="."&&/\d/.test(e[Wr+1])&&(r+=e[Wr++]+th(e)),(e[Wr]==="e"||e[Wr]==="E")&&((e[Wr+1]==="-"||e[Wr+1]==="+")&&/\d/.test(e[Wr+2])?r+=e[Wr++]+e[Wr++]+th(e):/\d/.test(e[Wr+1])&&(r+=e[Wr++]+th(e))),Hg(e)){let t=ih(e);return t==="deg"||t==="rad"||t==="turn"||t==="grad"?{type:yr.Hue,value:r*fW[t]}:void 0}return e[Wr]==="%"?(Wr++,{type:yr.Percentage,value:+r}):{type:yr.Number,value:+r}}function th(e){let r="";for(;/\d/.test(e[Wr]);)r+=e[Wr++];return r}function ih(e){let r="";for(;Wr4)){if(t.length===4){if(t[3].type!==yr.Alpha)return;t[3]=t[3].value}return t.length===3&&t.push({type:yr.None,value:void 0}),t.every(a=>a.type!==yr.Alpha)?t:void 0}}function dW(e,r){e._i=0;let t=e[e._i++];if(!t||t.type!==yr.Function)return;let n=Q7(e,r);if(n)return n.unshift(t.value),n}var pW=e=>{if(typeof e!="string")return;let r=vW(e),t=r?dW(r,!0):void 0,n,a=0,o=E0.length;for(;ae==="transparent"?{mode:"rgb",r:0,g:0,b:0,alpha:0}:void 0,rw=yW,vs=(e,r,t)=>e+t*(r-e),mW=(e,r,t)=>(t-e)/(r-e),Vg=(e,r,t,n,a,o)=>vs(vs(e,r,a),vs(t,n,a),o),bW=(e,r,t,n,a,o,i,l,u,s,f)=>vs(Vg(e,r,t,n,u,s),Vg(a,o,i,l,u,s),f),xW=e=>{let r=[];for(let t=0;tr=>{let t=xW(r);return n=>{let a=n*t.length,o=n>=1?t.length-1:Math.max(Math.floor(a),0),i=t[o];return i===void 0?void 0:e(i[0],i[1],a-o)}},_r=tw(vs),Tn=e=>{let r=!1,t=e.map(n=>n!==void 0?(r=!0,n):1);return r?t:e},_W={mode:"rgb",channels:["r","g","b","alpha"],parse:[ew,Z7,J7,W7,rw,"srgb"],serialize:"srgb",interpolate:{r:_r,g:_r,b:_r,alpha:{use:_r,fixup:Tn}},gamut:!0,white:{r:1,g:1,b:1},black:{r:0,g:0,b:0}},ps=_W,mg=(e=0)=>Math.pow(Math.abs(e),563/256)*Math.sign(e),wW=e=>{let r=mg(e.r),t=mg(e.g),n=mg(e.b),a={mode:"xyz65",x:.5766690429101305*r+.1855582379065463*t+.1882286462349947*n,y:.297344975250536*r+.6273635662554661*t+.0752914584939979*n,z:.0270313613864123*r+.0706888525358272*t+.9913375368376386*n};return e.alpha!==void 0&&(a.alpha=e.alpha),a},Gg=wW,bg=e=>Math.pow(Math.abs(e),256/563)*Math.sign(e),MW=({x:e,y:r,z:t,alpha:n})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let a={mode:"a98",r:bg(e*2.0415879038107465-r*.5650069742788597-.3447313507783297*t),g:bg(e*-.9692436362808798+r*1.8759675015077206+.0415550574071756*t),b:bg(e*.0134442806320312-r*.1183623922310184+1.0151749943912058*t)};return n!==void 0&&(a.alpha=n),a},Yg=MW,xg=(e=0)=>{let r=Math.abs(e);return r<=.04045?e/12.92:(Math.sign(e)||1)*Math.pow((r+.055)/1.055,2.4)},TW=({r:e,g:r,b:t,alpha:n})=>{let a={mode:"lrgb",r:xg(e),g:xg(r),b:xg(t)};return n!==void 0&&(a.alpha=n),a},gs=TW,AW=e=>{let{r,g:t,b:n,alpha:a}=gs(e),o={mode:"xyz65",x:.4123907992659593*r+.357584339383878*t+.1804807884018343*n,y:.2126390058715102*r+.715168678767756*t+.0721923153607337*n,z:.0193308187155918*r+.119194779794626*t+.9505321522496607*n};return a!==void 0&&(o.alpha=a),o},al=AW,_g=(e=0)=>{let r=Math.abs(e);return r>.0031308?(Math.sign(e)||1)*(1.055*Math.pow(r,1/2.4)-.055):e*12.92},kW=({r:e,g:r,b:t,alpha:n},a="rgb")=>{let o={mode:a,r:_g(e),g:_g(r),b:_g(t)};return n!==void 0&&(o.alpha=n),o},ys=kW,SW=({x:e,y:r,z:t,alpha:n})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let a=ys({r:e*3.2409699419045226-r*1.537383177570094-.4986107602930034*t,g:e*-.9692436362808796+r*1.8759675015077204+.0415550574071756*t,b:e*.0556300796969936-r*.2039769588889765+1.0569715142428784*t});return n!==void 0&&(a.alpha=n),a},il=SW,CW=Ot(wt({},ps),{mode:"a98",parse:["a98-rgb"],serialize:"a98-rgb",fromMode:{rgb:e=>Yg(al(e)),xyz65:Yg},toMode:{rgb:e=>il(Gg(e)),xyz65:Gg}}),nw=CW,EW=e=>(e=e%360)<0?e+360:e,Jn=EW,dh=(e,r)=>e.map((t,n,a)=>{if(t===void 0)return t;let o=Jn(t);return n===0||e[n-1]===void 0?o:r(o-Jn(a[n-1]))}).reduce((t,n)=>!t.length||n===void 0||t[t.length-1]===void 0?(t.push(n),t):(t.push(n+t[t.length-1]),t),[]),eo=e=>dh(e,r=>Math.abs(r)<=180?r:r-360*Math.sign(r)),LW=e=>dh(e,r=>Math.abs(r)>=180||r===0?r:r-360*Math.sign(r)),DW=e=>dh(e,r=>r>=0?r:r+360),RW=e=>dh(e,r=>r<=0?r:r-360),Un=[-.14861,1.78277,-.29227,-.90649,1.97294,0],FW=Math.PI/180,PW=180/Math.PI,I7=Un[3]*Un[4],z7=Un[1]*Un[4],N7=Un[1]*Un[2]-Un[0]*Un[3],IW=({r:e,g:r,b:t,alpha:n})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let a=(N7*t+e*I7-r*z7)/(N7+I7-z7),o=t-a,i=(Un[4]*(r-a)-Un[2]*o)/Un[3],l={mode:"cubehelix",l:a,s:a===0||a===1?void 0:Math.sqrt(o*o+i*i)/(Un[4]*a*(1-a))};return l.s&&(l.h=Math.atan2(i,o)*PW-120),n!==void 0&&(l.alpha=n),l},aw=IW,zW=({h:e,s:r,l:t,alpha:n})=>{let a={mode:"rgb"};e=(e===void 0?0:e+120)*FW,t===void 0&&(t=0);let o=r===void 0?0:r*t*(1-t),i=Math.cos(e),l=Math.sin(e);return a.r=t+o*(Un[0]*i+Un[1]*l),a.g=t+o*(Un[2]*i+Un[3]*l),a.b=t+o*(Un[4]*i+Un[5]*l),n!==void 0&&(a.alpha=n),a},iw=zW,Mf=(e,r)=>{if(e.h===void 0||r.h===void 0||!e.s||!r.s)return 0;let t=Jn(e.h),n=Jn(r.h),a=Math.sin((n-t+360)/2*Math.PI/180);return 2*Math.sqrt(e.s*r.s)*a},ow=(e,r)=>{if(e.h===void 0||r.h===void 0)return 0;let t=Jn(e.h),n=Jn(r.h);return Math.abs(n-t)>180?t-(n-360*Math.sign(n-t)):n-t},Tf=(e,r)=>{if(e.h===void 0||r.h===void 0||!e.c||!r.c)return 0;let t=Jn(e.h),n=Jn(r.h),a=Math.sin((n-t+360)/2*Math.PI/180);return 2*Math.sqrt(e.c*r.c)*a},L0=(e="rgb",r=[1,1,1,0])=>{let t=la(e),n=t.channels,a=t.difference,o=Ft(e);return(i,l)=>{let u=o(i),s=o(l);return Math.sqrt(n.reduce((f,c,g)=>{let x=a[c]?a[c](u,s):u[c]-s[c];return f+(r[g]||0)*Math.pow(isNaN(x)?0:x,2)},0))}},NW=()=>L0("lab65"),qW=(e=1,r=.045,t=.015)=>{let n=Ft("lab65");return(a,o)=>{let i=n(a),l=n(o),u=i.l,s=i.a,f=i.b,c=Math.sqrt(s*s+f*f),g=l.l,x=l.a,h=l.b,_=Math.sqrt(x*x+h*h),T=Math.pow(u-g,2),m=Math.pow(c-_,2),k=Math.pow(s-x,2)+Math.pow(f-h,2)-m;return Math.sqrt(T/Math.pow(e,2)+m/Math.pow(1+r*c,2)+k/Math.pow(1+t*c,2))}},BW=(e=1,r=1,t=1)=>{let n=Ft("lab65");return(a,o)=>{let i=n(a),l=n(o),u=i.l,s=i.a,f=i.b,c=Math.sqrt(s*s+f*f),g=l.l,x=l.a,h=l.b,_=Math.sqrt(x*x+h*h),T=(c+_)/2,m=.5*(1-Math.sqrt(Math.pow(T,7)/(Math.pow(T,7)+Math.pow(25,7)))),k=s*(1+m),S=x*(1+m),b=Math.sqrt(k*k+f*f),M=Math.sqrt(S*S+h*h),d=Math.abs(k)+Math.abs(f)===0?0:Math.atan2(f,k);d+=(d<0)*2*Math.PI;let w=Math.abs(S)+Math.abs(h)===0?0:Math.atan2(h,S);w+=(w<0)*2*Math.PI;let y=g-u,v=M-b,A=b*M===0?0:w-d;A-=(A>Math.PI)*2*Math.PI,A+=(A<-Math.PI)*2*Math.PI;let p=2*Math.sqrt(b*M)*Math.sin(A/2),D=(u+g)/2,E=(b+M)/2,R;b*M===0?R=d+w:(R=(d+w)/2,R-=(Math.abs(d-w)>Math.PI)*Math.PI,R+=(R<0)*2*Math.PI);let F=Math.pow(D-50,2),z=1-.17*Math.cos(R-Math.PI/6)+.24*Math.cos(2*R)+.32*Math.cos(3*R+Math.PI/30)-.2*Math.cos(4*R-63*Math.PI/180),P=1+.015*F/Math.sqrt(20+F),L=1+.045*E,I=1+.015*E*z,B=30*Math.PI/180*Math.exp(-1*Math.pow((180/Math.PI*R-275)/25,2)),O=2*Math.sqrt(Math.pow(E,7)/(Math.pow(E,7)+Math.pow(25,7))),G=-1*Math.sin(2*B)*O;return Math.sqrt(Math.pow(y/(e*P),2)+Math.pow(v/(r*L),2)+Math.pow(p/(t*I),2)+G*v/(r*L)*p/(t*I))}},OW=(e=1,r=1)=>{let t=Ft("lab65");return(n,a)=>{let o=t(n),i=o.l,l=o.a,u=o.b,s=Math.sqrt(l*l+u*u),f=Math.atan2(u,l);f=f+2*Math.PI*(f<0);let c=t(a),g=c.l,x=c.a,h=c.b,_=Math.sqrt(x*x+h*h),T=Math.pow(i-g,2),m=Math.pow(s-_,2),k=Math.pow(l-x,2)+Math.pow(u-h,2)-m,S=Math.sqrt(Math.pow(s,4)/(Math.pow(s,4)+1900)),b=f>=164/180*Math.PI&&f<=345/180*Math.PI?.56+Math.abs(.2*Math.cos(f+168/180*Math.PI)):.36+Math.abs(.4*Math.cos(f+35/180*Math.PI)),M=i<16?.511:.040975*i/(1+.01765*i),d=.0638*s/(1+.0131*s)+.638,w=d*(S*b+1-S);return Math.sqrt(T/Math.pow(e*M,2)+m/Math.pow(r*d,2)+k/Math.pow(w,2))}},UW=()=>{let e=Ft("lab65");return(r,t)=>{let n=e(r),a=e(t),o=n.l-a.l,i=n.a-a.a,l=n.b-a.b;return Math.abs(o)+Math.sqrt(i*i+l*l)}},HW=()=>L0("yiq",[.5053,.299,.1957]),VW=()=>L0("itp",[518400,129600,518400]),ro=e=>{let r=e.reduce((n,a)=>{if(a!==void 0){let o=a*Math.PI/180;n.sin+=Math.sin(o),n.cos+=Math.cos(o)}return n},{sin:0,cos:0}),t=Math.atan2(r.sin,r.cos)*180/Math.PI;return t<0?360+t:t},lw=e=>{let r=e.filter(t=>t!==void 0);return r.length?r.reduce((t,n)=>t+n,0)/r.length:void 0},wg=e=>typeof e=="function";function GW(e,r="rgb",t){let n=la(r),a=e.map(Ft(r));return n.channels.reduce((o,i)=>{let l=a.map(u=>u[i]).filter(u=>u!==void 0);if(l.length){let u;wg(t)?u=t:t&&wg(t[i])?u=t[i]:n.average&&wg(n.average[i])?u=n.average[i]:u=lw,o[i]=u(l,i)}return o},{mode:r})}var YW={mode:"cubehelix",channels:["h","s","l","alpha"],parse:["--cubehelix"],serialize:"--cubehelix",ranges:{h:[0,360],s:[0,4.614],l:[0,1]},fromMode:{rgb:aw},toMode:{rgb:iw},interpolate:{h:{use:_r,fixup:eo},s:_r,l:_r,alpha:{use:_r,fixup:Tn}},difference:{h:Mf},average:{h:ro}},sw=YW,XW=({l:e,a:r,b:t,alpha:n},a="lch")=>{r===void 0&&(r=0),t===void 0&&(t=0);let o=Math.sqrt(r*r+t*t),i={mode:a,l:e,c:o};return o&&(i.h=Jn(Math.atan2(t,r)*180/Math.PI)),n!==void 0&&(i.alpha=n),i},Eo=XW,WW=({l:e,c:r,h:t,alpha:n},a="lab")=>{t===void 0&&(t=0);let o={mode:a,l:e,a:r?r*Math.cos(t/180*Math.PI):0,b:r?r*Math.sin(t/180*Math.PI):0};return n!==void 0&&(o.alpha=n),o},Lo=WW,uw=Math.pow(29,3)/Math.pow(3,3),fw=Math.pow(6,3)/Math.pow(29,3),Mn={X:.3457/.3585,Y:1,Z:(1-.3457-.3585)/.3585},S0={X:.3127/.329,Y:1,Z:(1-.3127-.329)/.329},Qbe=Math.pow(29,3)/Math.pow(3,3),jbe=Math.pow(6,3)/Math.pow(29,3),Mg=e=>Math.pow(e,3)>fw?Math.pow(e,3):(116*e-16)/uw,ZW=({l:e,a:r,b:t,alpha:n})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let a=(e+16)/116,o=r/500+a,i=a-t/200,l={mode:"xyz65",x:Mg(o)*S0.X,y:Mg(a)*S0.Y,z:Mg(i)*S0.Z};return n!==void 0&&(l.alpha=n),l},v3=ZW,JW=e=>il(v3(e)),Af=JW,Tg=e=>e>fw?Math.cbrt(e):(uw*e+16)/116,$W=({x:e,y:r,z:t,alpha:n})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let a=Tg(e/S0.X),o=Tg(r/S0.Y),i=Tg(t/S0.Z),l={mode:"lab65",l:116*o-16,a:500*(a-o),b:200*(o-i)};return n!==void 0&&(l.alpha=n),l},h3=$W,KW=e=>{let r=h3(al(e));return e.r===e.b&&e.b===e.g&&(r.a=r.b=0),r},kf=KW,oh=1,cw=1,wf=26/180*Math.PI,lh=Math.cos(wf),sh=Math.sin(wf),vw=100/Math.log(139/100),QW=({l:e,c:r,h:t,alpha:n})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let a={mode:"lab65",l:(Math.exp(e*oh/vw)-1)/.0039},o=(Math.exp(.0435*r*cw*oh)-1)/.075,i=o*Math.cos(t/180*Math.PI-wf),l=o*Math.sin(t/180*Math.PI-wf);return a.a=i*lh-l/.83*sh,a.b=i*sh+l/.83*lh,n!==void 0&&(a.alpha=n),a},uh=QW,jW=({l:e,a:r,b:t,alpha:n})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let a=r*lh+t*sh,o=.83*(t*lh-r*sh),i=Math.sqrt(a*a+o*o),l={mode:"dlch",l:vw/oh*Math.log(1+.0039*e),c:Math.log(1+.075*i)/(.0435*cw*oh)};return l.c&&(l.h=Jn((Math.atan2(o,a)+wf)/Math.PI*180)),n!==void 0&&(l.alpha=n),l},fh=jW,q7=e=>uh(Eo(e,"dlch")),B7=e=>Lo(fh(e),"dlab"),eZ={mode:"dlab",parse:["--din99o-lab"],serialize:"--din99o-lab",toMode:{lab65:q7,rgb:e=>Af(q7(e))},fromMode:{lab65:B7,rgb:e=>B7(kf(e))},channels:["l","a","b","alpha"],ranges:{l:[0,100],a:[-40.09,45.501],b:[-40.469,44.344]},interpolate:{l:_r,a:_r,b:_r,alpha:{use:_r,fixup:Tn}}},hw=eZ,rZ={mode:"dlch",parse:["--din99o-lch"],serialize:"--din99o-lch",toMode:{lab65:uh,dlab:e=>Lo(e,"dlab"),rgb:e=>Af(uh(e))},fromMode:{lab65:fh,dlab:e=>Eo(e,"dlch"),rgb:e=>fh(kf(e))},channels:["l","c","h","alpha"],ranges:{l:[0,100],c:[0,51.484],h:[0,360]},interpolate:{l:_r,c:_r,h:{use:_r,fixup:eo},alpha:{use:_r,fixup:Tn}},difference:{h:Tf},average:{h:ro}},dw=rZ;function pw({h:e,s:r,i:t,alpha:n}){e=Jn(e!==void 0?e:0),r===void 0&&(r=0),t===void 0&&(t=0);let a=Math.abs(e/60%2-1),o;switch(Math.floor(e/60)){case 0:o={r:t*(1+r*(3/(2-a)-1)),g:t*(1+r*(3*(1-a)/(2-a)-1)),b:t*(1-r)};break;case 1:o={r:t*(1+r*(3*(1-a)/(2-a)-1)),g:t*(1+r*(3/(2-a)-1)),b:t*(1-r)};break;case 2:o={r:t*(1-r),g:t*(1+r*(3/(2-a)-1)),b:t*(1+r*(3*(1-a)/(2-a)-1))};break;case 3:o={r:t*(1-r),g:t*(1+r*(3*(1-a)/(2-a)-1)),b:t*(1+r*(3/(2-a)-1))};break;case 4:o={r:t*(1+r*(3*(1-a)/(2-a)-1)),g:t*(1-r),b:t*(1+r*(3/(2-a)-1))};break;case 5:o={r:t*(1+r*(3/(2-a)-1)),g:t*(1-r),b:t*(1+r*(3*(1-a)/(2-a)-1))};break;default:o={r:t*(1-r),g:t*(1-r),b:t*(1-r)}}return o.mode="rgb",n!==void 0&&(o.alpha=n),o}function gw({r:e,g:r,b:t,alpha:n}){e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let a=Math.max(e,r,t),o=Math.min(e,r,t),i={mode:"hsi",s:e+r+t===0?0:1-3*o/(e+r+t),i:(e+r+t)/3};return a-o!==0&&(i.h=(a===e?(r-t)/(a-o)+(r{switch(r){case"deg":return+e;case"rad":return e/Math.PI*180;case"grad":return e/10*9;case"turn":return e*360}},aZ=nZ,iZ=new RegExp(`^hsla?\\(\\s*${rW}${C0}${xf}${C0}${xf}\\s*(?:,\\s*${f3}\\s*)?\\)$`),oZ=e=>{let r=e.match(iZ);if(!r)return;let t={mode:"hsl"};return r[3]!==void 0?t.h=+r[3]:r[1]!==void 0&&r[2]!==void 0&&(t.h=aZ(r[1],r[2])),r[4]!==void 0&&(t.s=Math.min(Math.max(0,r[4]/100),1)),r[5]!==void 0&&(t.l=Math.min(Math.max(0,r[5]/100),1)),r[6]!==void 0?t.alpha=Math.max(0,Math.min(1,r[6]/100)):r[7]!==void 0&&(t.alpha=Math.max(0,Math.min(1,+r[7]))),t},xw=oZ;function lZ(e,r){if(!r||r[0]!=="hsl"&&r[0]!=="hsla")return;let t={mode:"hsl"},[,n,a,o,i]=r;if(n.type!==yr.None){if(n.type===yr.Percentage)return;t.h=n.value}if(a.type!==yr.None){if(a.type===yr.Hue)return;t.s=a.value/100}if(o.type!==yr.None){if(o.type===yr.Hue)return;t.l=o.value/100}return i.type!==yr.None&&(t.alpha=Math.min(1,Math.max(0,i.type===yr.Number?i.value:i.value/100))),t}var _w=lZ,sZ={mode:"hsl",toMode:{rgb:mw},fromMode:{rgb:bw},channels:["h","s","l","alpha"],ranges:{h:[0,360]},gamut:"rgb",parse:[_w,xw],serialize:e=>`hsl(${e.h!==void 0?e.h:"none"} ${e.s!==void 0?e.s*100+"%":"none"} ${e.l!==void 0?e.l*100+"%":"none"}${e.alpha<1?` / ${e.alpha}`:""})`,interpolate:{h:{use:_r,fixup:eo},s:_r,l:_r,alpha:{use:_r,fixup:Tn}},difference:{h:Mf},average:{h:ro}},d3=sZ;function p3({h:e,s:r,v:t,alpha:n}){e=Jn(e!==void 0?e:0),r===void 0&&(r=0),t===void 0&&(t=0);let a=Math.abs(e/60%2-1),o;switch(Math.floor(e/60)){case 0:o={r:t,g:t*(1-r*a),b:t*(1-r)};break;case 1:o={r:t*(1-r*a),g:t,b:t*(1-r)};break;case 2:o={r:t*(1-r),g:t,b:t*(1-r*a)};break;case 3:o={r:t*(1-r),g:t*(1-r*a),b:t};break;case 4:o={r:t*(1-r*a),g:t*(1-r),b:t};break;case 5:o={r:t,g:t*(1-r),b:t*(1-r*a)};break;default:o={r:t*(1-r),g:t*(1-r),b:t*(1-r)}}return o.mode="rgb",n!==void 0&&(o.alpha=n),o}function g3({r:e,g:r,b:t,alpha:n}){e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let a=Math.max(e,r,t),o=Math.min(e,r,t),i={mode:"hsv",s:a===0?0:1-o/a,v:a};return a-o!==0&&(i.h=(a===e?(r-t)/(a-o)+(r1){let a=r+t;r/=a,t/=a}return p3({h:e,s:t===1?1:1-r/(1-t),v:1-t,alpha:n})}function Mw(e){let r=g3(e);if(r===void 0)return;let t=r.s!==void 0?r.s:0,n=r.v!==void 0?r.v:0,a={mode:"hwb",w:(1-t)*n,b:1-n};return r.h!==void 0&&(a.h=r.h),r.alpha!==void 0&&(a.alpha=r.alpha),a}function fZ(e,r){if(!r||r[0]!=="hwb")return;let t={mode:"hwb"},[,n,a,o,i]=r;if(n.type!==yr.None){if(n.type===yr.Percentage)return;t.h=n.value}if(a.type!==yr.None){if(a.type===yr.Hue)return;t.w=a.value/100}if(o.type!==yr.None){if(o.type===yr.Hue)return;t.b=o.value/100}return i.type!==yr.None&&(t.alpha=Math.min(1,Math.max(0,i.type===yr.Number?i.value:i.value/100))),t}var Tw=fZ,cZ={mode:"hwb",toMode:{rgb:ww},fromMode:{rgb:Mw},channels:["h","w","b","alpha"],ranges:{h:[0,360]},gamut:"rgb",parse:[Tw],serialize:e=>`hwb(${e.h!==void 0?e.h:"none"} ${e.w!==void 0?e.w*100+"%":"none"} ${e.b!==void 0?e.b*100+"%":"none"}${e.alpha<1?` / ${e.alpha}`:""})`,interpolate:{h:{use:_r,fixup:eo},w:_r,b:_r,alpha:{use:_r,fixup:Tn}},difference:{h:ow},average:{h:ro}},Aw=cZ,kw=203,ph=.1593017578125,Sw=78.84375,gh=.8359375,yh=18.8515625,mh=18.6875;function Ag(e){if(e<0)return 0;let r=Math.pow(e,1/Sw);return 1e4*Math.pow(Math.max(0,r-gh)/(yh-mh*r),1/ph)}function kg(e){if(e<0)return 0;let r=Math.pow(e/1e4,ph);return Math.pow((gh+yh*r)/(1+mh*r),Sw)}var Sg=e=>Math.max(e/kw,0),vZ=({i:e,t:r,p:t,alpha:n})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let a=Ag(e+.008609037037932761*r+.11102962500302593*t),o=Ag(e-.00860903703793275*r-.11102962500302599*t),i=Ag(e+.5600313357106791*r-.32062717498731885*t),l={mode:"xyz65",x:Sg(2.070152218389422*a-1.3263473389671556*o+.2066510476294051*i),y:Sg(.3647385209748074*a+.680566024947227*o-.0453045459220346*i),z:Sg(-.049747207535812*a-.0492609666966138*o+1.1880659249923042*i)};return n!==void 0&&(l.alpha=n),l},Xg=vZ,Cg=(e=0)=>Math.max(e*kw,0),hZ=({x:e,y:r,z:t,alpha:n})=>{let a=Cg(e),o=Cg(r),i=Cg(t),l=kg(.3592832590121217*a+.6976051147779502*o-.0358915932320289*i),u=kg(-.1920808463704995*a+1.1004767970374323*o+.0753748658519118*i),s=kg(.0070797844607477*a+.0748396662186366*o+.8433265453898765*i),f=.5*l+.5*u,c=1.61376953125*l-3.323486328125*u+1.709716796875*s,g=4.378173828125*l-4.24560546875*u-.132568359375*s,x={mode:"itp",i:f,t:c,p:g};return n!==void 0&&(x.alpha=n),x},Wg=hZ,dZ={mode:"itp",channels:["i","t","p","alpha"],parse:["--ictcp"],serialize:"--ictcp",toMode:{xyz65:Xg,rgb:e=>il(Xg(e))},fromMode:{xyz65:Wg,rgb:e=>Wg(al(e))},ranges:{i:[0,.581],t:[-.369,.272],p:[-.164,.331]},interpolate:{i:_r,t:_r,p:_r,alpha:{use:_r,fixup:Tn}}},Cw=dZ,pZ=134.03437499999998,gZ=16295499532821565e-27,Eg=e=>{if(e<0)return 0;let r=Math.pow(e/1e4,ph);return Math.pow((gh+yh*r)/(1+mh*r),pZ)},Lg=(e=0)=>Math.max(e*203,0),yZ=({x:e,y:r,z:t,alpha:n})=>{e=Lg(e),r=Lg(r),t=Lg(t);let a=1.15*e-.15*t,o=.66*r+.34*e,i=Eg(.41478972*a+.579999*o+.014648*t),l=Eg(-.20151*a+1.120649*o+.0531008*t),u=Eg(-.0166008*a+.2648*o+.6684799*t),s=(i+l)/2,f={mode:"jab",j:.44*s/(1-.56*s)-gZ,a:3.524*i-4.066708*l+.542708*u,b:.199076*i+1.096799*l-1.295875*u};return n!==void 0&&(f.alpha=n),f},m3=yZ,mZ=134.03437499999998,O7=16295499532821565e-27,Dg=e=>{if(e<0)return 0;let r=Math.pow(e,1/mZ);return 1e4*Math.pow((gh-r)/(mh*r-yh),1/ph)},Rg=e=>e/203,bZ=({j:e,a:r,b:t,alpha:n})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let a=(e+O7)/(.44+.56*(e+O7)),o=Dg(a+.13860504*r+.058047316*t),i=Dg(a-.13860504*r-.058047316*t),l=Dg(a-.096019242*r-.8118919*t),u={mode:"xyz65",x:Rg(1.661373024652174*o-.914523081304348*i+.23136208173913045*l),y:Rg(-.3250758611844533*o+1.571847026732543*i-.21825383453227928*l),z:Rg(-.090982811*o-.31272829*i+1.5227666*l)};return n!==void 0&&(u.alpha=n),u},b3=bZ,xZ=e=>{let r=m3(al(e));return e.r===e.b&&e.b===e.g&&(r.a=r.b=0),r},x3=xZ,_Z=e=>il(b3(e)),_3=_Z,wZ={mode:"jab",channels:["j","a","b","alpha"],parse:["--jzazbz"],serialize:"--jzazbz",fromMode:{rgb:x3,xyz65:m3},toMode:{rgb:_3,xyz65:b3},ranges:{j:[0,.222],a:[-.109,.129],b:[-.185,.134]},interpolate:{j:_r,a:_r,b:_r,alpha:{use:_r,fixup:Tn}}},Ew=wZ,MZ=({j:e,a:r,b:t,alpha:n})=>{r===void 0&&(r=0),t===void 0&&(t=0);let a=Math.sqrt(r*r+t*t),o={mode:"jch",j:e,c:a};return a&&(o.h=Jn(Math.atan2(t,r)*180/Math.PI)),n!==void 0&&(o.alpha=n),o},Zg=MZ,TZ=({j:e,c:r,h:t,alpha:n})=>{t===void 0&&(t=0);let a={mode:"jab",j:e,a:r?r*Math.cos(t/180*Math.PI):0,b:r?r*Math.sin(t/180*Math.PI):0};return n!==void 0&&(a.alpha=n),a},Jg=TZ,AZ={mode:"jch",parse:["--jzczhz"],serialize:"--jzczhz",toMode:{jab:Jg,rgb:e=>_3(Jg(e))},fromMode:{rgb:e=>Zg(x3(e)),jab:Zg},channels:["j","c","h","alpha"],ranges:{j:[0,.221],c:[0,.19],h:[0,360]},interpolate:{h:{use:_r,fixup:eo},c:_r,j:_r,alpha:{use:_r,fixup:Tn}},difference:{h:Tf},average:{h:ro}},Lw=AZ,bh=Math.pow(29,3)/Math.pow(3,3),w3=Math.pow(6,3)/Math.pow(29,3),Fg=e=>Math.pow(e,3)>w3?Math.pow(e,3):(116*e-16)/bh,kZ=({l:e,a:r,b:t,alpha:n})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let a=(e+16)/116,o=r/500+a,i=a-t/200,l={mode:"xyz50",x:Fg(o)*Mn.X,y:Fg(a)*Mn.Y,z:Fg(i)*Mn.Z};return n!==void 0&&(l.alpha=n),l},xh=kZ,SZ=({x:e,y:r,z:t,alpha:n})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let a=ys({r:e*3.1341359569958707-r*1.6173863321612538-.4906619460083532*t,g:e*-.978795502912089+r*1.916254567259524+.03344273116131949*t,b:e*.07195537988411677-r*.2289768264158322+1.405386058324125*t});return n!==void 0&&(a.alpha=n),a},D0=SZ,CZ=e=>D0(xh(e)),M3=CZ,EZ=e=>{let{r,g:t,b:n,alpha:a}=gs(e),o={mode:"xyz50",x:.436065742824811*r+.3851514688337912*t+.14307845442264197*n,y:.22249319175623702*r+.7168870538238823*t+.06061979053616537*n,z:.013923904500943465*r+.09708128566574634*t+.7140993584005155*n};return a!==void 0&&(o.alpha=a),o},R0=EZ,Pg=e=>e>w3?Math.cbrt(e):(bh*e+16)/116,LZ=({x:e,y:r,z:t,alpha:n})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let a=Pg(e/Mn.X),o=Pg(r/Mn.Y),i=Pg(t/Mn.Z),l={mode:"lab",l:116*o-16,a:500*(a-o),b:200*(o-i)};return n!==void 0&&(l.alpha=n),l},_h=LZ,DZ=e=>{let r=_h(R0(e));return e.r===e.b&&e.b===e.g&&(r.a=r.b=0),r},T3=DZ;function RZ(e,r){if(!r||r[0]!=="lab")return;let t={mode:"lab"},[,n,a,o,i]=r;if(!(n.type===yr.Hue||a.type===yr.Hue||o.type===yr.Hue))return n.type!==yr.None&&(t.l=Math.min(Math.max(0,n.value),100)),a.type!==yr.None&&(t.a=a.type===yr.Number?a.value:a.value*125/100),o.type!==yr.None&&(t.b=o.type===yr.Number?o.value:o.value*125/100),i.type!==yr.None&&(t.alpha=Math.min(1,Math.max(0,i.type===yr.Number?i.value:i.value/100))),t}var Dw=RZ,FZ={mode:"lab",toMode:{xyz50:xh,rgb:M3},fromMode:{xyz50:_h,rgb:T3},channels:["l","a","b","alpha"],ranges:{l:[0,100],a:[-125,125],b:[-125,125]},parse:[Dw],serialize:e=>`lab(${e.l!==void 0?e.l:"none"} ${e.a!==void 0?e.a:"none"} ${e.b!==void 0?e.b:"none"}${e.alpha<1?` / ${e.alpha}`:""})`,interpolate:{l:_r,a:_r,b:_r,alpha:{use:_r,fixup:Tn}}},wh=FZ,PZ=Ot(wt({},wh),{mode:"lab65",parse:["--lab-d65"],serialize:"--lab-d65",toMode:{xyz65:v3,rgb:Af},fromMode:{xyz65:h3,rgb:kf},ranges:{l:[0,100],a:[-125,125],b:[-125,125]}}),Rw=PZ;function IZ(e,r){if(!r||r[0]!=="lch")return;let t={mode:"lch"},[,n,a,o,i]=r;if(n.type!==yr.None){if(n.type===yr.Hue)return;t.l=Math.min(Math.max(0,n.value),100)}if(a.type!==yr.None&&(t.c=Math.max(0,a.type===yr.Number?a.value:a.value*150/100)),o.type!==yr.None){if(o.type===yr.Percentage)return;t.h=o.value}return i.type!==yr.None&&(t.alpha=Math.min(1,Math.max(0,i.type===yr.Number?i.value:i.value/100))),t}var Fw=IZ,zZ={mode:"lch",toMode:{lab:Lo,rgb:e=>M3(Lo(e))},fromMode:{rgb:e=>Eo(T3(e)),lab:Eo},channels:["l","c","h","alpha"],ranges:{l:[0,100],c:[0,150],h:[0,360]},parse:[Fw],serialize:e=>`lch(${e.l!==void 0?e.l:"none"} ${e.c!==void 0?e.c:"none"} ${e.h!==void 0?e.h:"none"}${e.alpha<1?` / ${e.alpha}`:""})`,interpolate:{h:{use:_r,fixup:eo},c:_r,l:_r,alpha:{use:_r,fixup:Tn}},difference:{h:Tf},average:{h:ro}},Mh=zZ,NZ=Ot(wt({},Mh),{mode:"lch65",parse:["--lch-d65"],serialize:"--lch-d65",toMode:{lab65:e=>Lo(e,"lab65"),rgb:e=>Af(Lo(e,"lab65"))},fromMode:{rgb:e=>Eo(kf(e),"lch65"),lab65:e=>Eo(e,"lch65")},ranges:{l:[0,100],c:[0,150],h:[0,360]}}),Pw=NZ,qZ=({l:e,u:r,v:t,alpha:n})=>{r===void 0&&(r=0),t===void 0&&(t=0);let a=Math.sqrt(r*r+t*t),o={mode:"lchuv",l:e,c:a};return a&&(o.h=Jn(Math.atan2(t,r)*180/Math.PI)),n!==void 0&&(o.alpha=n),o},A3=qZ,BZ=({l:e,c:r,h:t,alpha:n})=>{t===void 0&&(t=0);let a={mode:"luv",l:e,u:r?r*Math.cos(t/180*Math.PI):0,v:r?r*Math.sin(t/180*Math.PI):0};return n!==void 0&&(a.alpha=n),a},k3=BZ,Iw=(e,r,t)=>4*e/(e+15*r+3*t),zw=(e,r,t)=>9*r/(e+15*r+3*t),OZ=Iw(Mn.X,Mn.Y,Mn.Z),UZ=zw(Mn.X,Mn.Y,Mn.Z),HZ=e=>e<=w3?bh*e:116*Math.cbrt(e)-16,VZ=({x:e,y:r,z:t,alpha:n})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let a=HZ(r/Mn.Y),o=Iw(e,r,t),i=zw(e,r,t);!isFinite(o)||!isFinite(i)?a=o=i=0:(o=13*a*(o-OZ),i=13*a*(i-UZ));let l={mode:"luv",l:a,u:o,v:i};return n!==void 0&&(l.alpha=n),l},ch=VZ,GZ=(e,r,t)=>4*e/(e+15*r+3*t),YZ=(e,r,t)=>9*r/(e+15*r+3*t),XZ=GZ(Mn.X,Mn.Y,Mn.Z),WZ=YZ(Mn.X,Mn.Y,Mn.Z),ZZ=({l:e,u:r,v:t,alpha:n})=>{if(e===void 0&&(e=0),e===0)return{mode:"xyz50",x:0,y:0,z:0};r===void 0&&(r=0),t===void 0&&(t=0);let a=r/(13*e)+XZ,o=t/(13*e)+WZ,i=Mn.Y*(e<=8?e/bh:Math.pow((e+16)/116,3)),l=i*(9*a)/(4*o),u=i*(12-3*a-20*o)/(4*o),s={mode:"xyz50",x:l,y:i,z:u};return n!==void 0&&(s.alpha=n),s},vh=ZZ,JZ=e=>A3(ch(R0(e))),$Z=e=>D0(vh(k3(e))),KZ={mode:"lchuv",toMode:{luv:k3,rgb:$Z},fromMode:{rgb:JZ,luv:A3},channels:["l","c","h","alpha"],parse:["--lchuv"],serialize:"--lchuv",ranges:{l:[0,100],c:[0,176.956],h:[0,360]},interpolate:{h:{use:_r,fixup:eo},c:_r,l:_r,alpha:{use:_r,fixup:Tn}},difference:{h:Tf},average:{h:ro}},Nw=KZ,QZ=Ot(wt({},ps),{mode:"lrgb",toMode:{rgb:ys},fromMode:{rgb:gs},parse:["srgb-linear"],serialize:"srgb-linear"}),qw=QZ,jZ={mode:"luv",toMode:{xyz50:vh,rgb:e=>D0(vh(e))},fromMode:{xyz50:ch,rgb:e=>ch(R0(e))},channels:["l","u","v","alpha"],parse:["--luv"],serialize:"--luv",ranges:{l:[0,100],u:[-84.936,175.042],v:[-125.882,87.243]},interpolate:{l:_r,u:_r,v:_r,alpha:{use:_r,fixup:Tn}}},Bw=jZ,eJ=({r:e,g:r,b:t,alpha:n})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let a=Math.cbrt(.412221469470763*e+.5363325372617348*r+.0514459932675022*t),o=Math.cbrt(.2119034958178252*e+.6806995506452344*r+.1073969535369406*t),i=Math.cbrt(.0883024591900564*e+.2817188391361215*r+.6299787016738222*t),l={mode:"oklab",l:.210454268309314*a+.7936177747023054*o-.0040720430116193*i,a:1.9779985324311684*a-2.42859224204858*o+.450593709617411*i,b:.0259040424655478*a+.7827717124575296*o-.8086757549230774*i};return n!==void 0&&(l.alpha=n),l},S3=eJ,rJ=e=>{let r=S3(gs(e));return e.r===e.b&&e.b===e.g&&(r.a=r.b=0),r},Sf=rJ,tJ=({l:e,a:r,b:t,alpha:n})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let a=Math.pow(e+.3963377773761749*r+.2158037573099136*t,3),o=Math.pow(e-.1055613458156586*r-.0638541728258133*t,3),i=Math.pow(e-.0894841775298119*r-1.2914855480194092*t,3),l={mode:"lrgb",r:4.076741636075957*a-3.3077115392580616*o+.2309699031821044*i,g:-1.2684379732850317*a+2.6097573492876887*o-.3413193760026573*i,b:-.0041960761386756*a-.7034186179359362*o+1.7076146940746117*i};return n!==void 0&&(l.alpha=n),l},F0=tJ,nJ=e=>ys(F0(e)),Cf=nJ;function $g(e){let n=1.170873786407767;return .5*(n*e-.206+Math.sqrt((n*e-.206)*(n*e-.206)+4*.03*n*e))}function hh(e){return(e*e+.206*e)/(1.170873786407767*(e+.03))}function aJ(e,r){let t,n,a,o,i,l,u,s;-1.88170328*e-.80936493*r>1?(t=1.19086277,n=1.76576728,a=.59662641,o=.75515197,i=.56771245,l=4.0767416621,u=-3.3077115913,s=.2309699292):1.81444104*e-1.19445276*r>1?(t=.73956515,n=-.45954404,a=.08285427,o=.1254107,i=.14503204,l=-1.2684380046,u=2.6097574011,s=-.3413193965):(t=1.35733652,n=-.00915799,a=-1.1513021,o=-.50559606,i=.00692167,l=-.0041960863,u=-.7034186147,s=1.707614701);let f=t+n*e+a*r+o*e*e+i*e*r,c=.3963377774*e+.2158037573*r,g=-.1055613458*e-.0638541728*r,x=-.0894841775*e-1.291485548*r;{let h=1+f*c,_=1+f*g,T=1+f*x,m=h*h*h,k=_*_*_,S=T*T*T,b=3*c*h*h,M=3*g*_*_,d=3*x*T*T,w=6*c*c*h,y=6*g*g*_,v=6*x*x*T,A=l*m+u*k+s*S,p=l*b+u*M+s*d,D=l*w+u*y+s*v;f=f-A*p/(p*p-.5*A*D)}return f}function C3(e,r){let t=aJ(e,r),n=F0({l:1,a:t*e,b:t*r}),a=Math.cbrt(1/Math.max(n.r,n.g,n.b)),o=a*t;return[a,o]}function iJ(e,r,t,n,a,o=null){o||(o=C3(e,r));let i;if((t-a)*o[1]-(o[0]-a)*n<=0)i=o[1]*a/(n*o[0]+o[1]*(a-t));else{i=o[1]*(a-1)/(n*(o[0]-1)+o[1]*(a-t));{let l=t-a,u=n,s=.3963377774*e+.2158037573*r,f=-.1055613458*e-.0638541728*r,c=-.0894841775*e-1.291485548*r,g=l+u*s,x=l+u*f,h=l+u*c;{let _=a*(1-i)+i*t,T=i*n,m=_+T*s,k=_+T*f,S=_+T*c,b=m*m*m,M=k*k*k,d=S*S*S,w=3*g*m*m,y=3*x*k*k,v=3*h*S*S,A=6*g*g*m,p=6*x*x*k,D=6*h*h*S,E=4.0767416621*b-3.3077115913*M+.2309699292*d-1,R=4.0767416621*w-3.3077115913*y+.2309699292*v,F=4.0767416621*A-3.3077115913*p+.2309699292*D,z=R/(R*R-.5*E*F),P=-E*z,L=-1.2684380046*b+2.6097574011*M-.3413193965*d-1,I=-1.2684380046*w+2.6097574011*y-.3413193965*v,B=-1.2684380046*A+2.6097574011*p-.3413193965*D,O=I/(I*I-.5*L*B),G=-L*O,J=-.0041960863*b-.7034186147*M+1.707614701*d-1,j=-.0041960863*w-.7034186147*y+1.707614701*v,V=-.0041960863*A-.7034186147*p+1.707614701*D,q=j/(j*j-.5*J*V),Z=-J*q;P=z>=0?P:1e6,G=O>=0?G:1e6,Z=q>=0?Z:1e6,i+=Math.min(P,Math.min(G,Z))}}}return i}function E3(e,r,t=null){t||(t=C3(e,r));let n=t[0],a=t[1];return[a/n,a/(1-n)]}function Ow(e,r,t){let n=C3(r,t),a=iJ(r,t,e,1,e,n),o=E3(r,t,n),i=.11516993+1/(7.4477897+4.1590124*t+r*(-2.19557347+1.75198401*t+r*(-2.13704948-10.02301043*t+r*(-4.24894561+5.38770819*t+4.69891013*r)))),l=.11239642+1/(1.6132032-.68124379*t+r*(.40370612+.90148123*t+r*(-.27087943+.6122399*t+r*(.00299215-.45399568*t-.14661872*r)))),u=a/Math.min(e*o[0],(1-e)*o[1]),s=e*i,f=(1-e)*l,c=.9*u*Math.sqrt(Math.sqrt(1/(1/(s*s*s*s)+1/(f*f*f*f))));return s=e*.4,f=(1-e)*.8,[Math.sqrt(1/(1/(s*s)+1/(f*f))),c,a]}function Kg(e){let r=e.l!==void 0?e.l:0,t=e.a!==void 0?e.a:0,n=e.b!==void 0?e.b:0,a={mode:"okhsl",l:$g(r)};e.alpha!==void 0&&(a.alpha=e.alpha);let o=Math.sqrt(t*t+n*n);if(!o)return a.s=0,a;let[i,l,u]=Ow(r,t/o,n/o),s;if(oKg(Sf(e))},toMode:{oklab:Qg,rgb:e=>Cf(Qg(e))}}),Uw=oJ;function jg(e){let r=e.l!==void 0?e.l:0,t=e.a!==void 0?e.a:0,n=e.b!==void 0?e.b:0,a=Math.sqrt(t*t+n*n),o=a?t/a:1,i=a?n/a:1,[l,u]=E3(o,i),s=.5,f=1-s/l,c=u/(a+r*u),g=c*r,x=c*a,h=hh(g),_=x*h/g,T=F0({l:h,a:o*_,b:i*_}),m=Math.cbrt(1/Math.max(T.r,T.g,T.b,0));r=r/m,a=a/m*$g(r)/r,r=$g(r);let k={mode:"okhsv",s:a?(s+u)*x/(u*s+u*f*x):0,v:r?r/g:0};return k.s&&(k.h=Jn(Math.atan2(n,t)*180/Math.PI)),e.alpha!==void 0&&(k.alpha=e.alpha),k}function e3(e){let r={mode:"oklab"};e.alpha!==void 0&&(r.alpha=e.alpha);let t=e.h!==void 0?e.h:0,n=e.s!==void 0?e.s:0,a=e.v!==void 0?e.v:0,o=Math.cos(t/180*Math.PI),i=Math.sin(t/180*Math.PI),[l,u]=E3(o,i),s=.5,f=1-s/l,c=1-n*s/(s+u-u*f*n),g=n*u*s/(s+u-u*f*n),x=hh(c),h=g*x/c,_=F0({l:x,a:o*h,b:i*h}),T=Math.cbrt(1/Math.max(_.r,_.g,_.b,0)),m=hh(a*c),k=g*m/c;return r.l=m*T,r.a=k*o*T,r.b=k*i*T,r}var lJ=Ot(wt({},y3),{mode:"okhsv",channels:["h","s","v","alpha"],parse:["--okhsv"],serialize:"--okhsv",fromMode:{oklab:jg,rgb:e=>jg(Sf(e))},toMode:{oklab:e3,rgb:e=>Cf(e3(e))}}),Hw=lJ;function sJ(e,r){if(!r||r[0]!=="oklab")return;let t={mode:"oklab"},[,n,a,o,i]=r;if(!(n.type===yr.Hue||a.type===yr.Hue||o.type===yr.Hue))return n.type!==yr.None&&(t.l=Math.min(Math.max(0,n.type===yr.Number?n.value:n.value/100),1)),a.type!==yr.None&&(t.a=a.type===yr.Number?a.value:a.value*.4/100),o.type!==yr.None&&(t.b=o.type===yr.Number?o.value:o.value*.4/100),i.type!==yr.None&&(t.alpha=Math.min(1,Math.max(0,i.type===yr.Number?i.value:i.value/100))),t}var Vw=sJ,uJ=Ot(wt({},wh),{mode:"oklab",toMode:{lrgb:F0,rgb:Cf},fromMode:{lrgb:S3,rgb:Sf},ranges:{l:[0,1],a:[-.4,.4],b:[-.4,.4]},parse:[Vw],serialize:e=>`oklab(${e.l!==void 0?e.l:"none"} ${e.a!==void 0?e.a:"none"} ${e.b!==void 0?e.b:"none"}${e.alpha<1?` / ${e.alpha}`:""})`}),Gw=uJ;function fJ(e,r){if(!r||r[0]!=="oklch")return;let t={mode:"oklch"},[,n,a,o,i]=r;if(n.type!==yr.None){if(n.type===yr.Hue)return;t.l=Math.min(Math.max(0,n.type===yr.Number?n.value:n.value/100),1)}if(a.type!==yr.None&&(t.c=Math.max(0,a.type===yr.Number?a.value:a.value*.4/100)),o.type!==yr.None){if(o.type===yr.Percentage)return;t.h=o.value}return i.type!==yr.None&&(t.alpha=Math.min(1,Math.max(0,i.type===yr.Number?i.value:i.value/100))),t}var Yw=fJ,cJ=Ot(wt({},Mh),{mode:"oklch",toMode:{oklab:e=>Lo(e,"oklab"),rgb:e=>Cf(Lo(e,"oklab"))},fromMode:{rgb:e=>Eo(Sf(e),"oklch"),oklab:e=>Eo(e,"oklch")},parse:[Yw],serialize:e=>`oklch(${e.l!==void 0?e.l:"none"} ${e.c!==void 0?e.c:"none"} ${e.h!==void 0?e.h:"none"}${e.alpha<1?` / ${e.alpha}`:""})`,ranges:{l:[0,1],c:[0,.4],h:[0,360]}}),Xw=cJ,vJ=e=>{let{r,g:t,b:n,alpha:a}=gs(e),o={mode:"xyz65",x:.486570948648216*r+.265667693169093*t+.1982172852343625*n,y:.2289745640697487*r+.6917385218365062*t+.079286914093745*n,z:0*r+.0451133818589026*t+1.043944368900976*n};return a!==void 0&&(o.alpha=a),o},r3=vJ,hJ=({x:e,y:r,z:t,alpha:n})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let a=ys({r:e*2.4934969119414263-r*.9313836179191242-.402710784450717*t,g:e*-.8294889695615749+r*1.7626640603183465+.0236246858419436*t,b:e*.0358458302437845-r*.0761723892680418+.9568845240076871*t},"p3");return n!==void 0&&(a.alpha=n),a},t3=hJ,dJ=Ot(wt({},ps),{mode:"p3",parse:["display-p3"],serialize:"display-p3",fromMode:{rgb:e=>t3(al(e)),xyz65:t3},toMode:{rgb:e=>il(r3(e)),xyz65:r3}}),Ww=dJ,Ig=e=>{let r=Math.abs(e);return r>=1/512?Math.sign(e)*Math.pow(r,1/1.8):16*e},pJ=({x:e,y:r,z:t,alpha:n})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let a={mode:"prophoto",r:Ig(e*1.3457868816471585-r*.2555720873797946-.0511018649755453*t),g:Ig(e*-.5446307051249019+r*1.5082477428451466+.0205274474364214*t),b:Ig(e*0+r*0+1.2119675456389452*t)};return n!==void 0&&(a.alpha=n),a},n3=pJ,zg=(e=0)=>{let r=Math.abs(e);return r>=16/512?Math.sign(e)*Math.pow(r,1.8):e/16},gJ=e=>{let r=zg(e.r),t=zg(e.g),n=zg(e.b),a={mode:"xyz50",x:.7977666449006423*r+.1351812974005331*t+.0313477341283922*n,y:.2880748288194013*r+.7118352342418731*t+899369387256e-16*n,z:0*r+0*t+.8251046025104602*n};return e.alpha!==void 0&&(a.alpha=e.alpha),a},a3=gJ,yJ=Ot(wt({},ps),{mode:"prophoto",parse:["prophoto-rgb"],serialize:"prophoto-rgb",fromMode:{xyz50:n3,rgb:e=>n3(R0(e))},toMode:{xyz50:a3,rgb:e=>D0(a3(e))}}),Zw=yJ,U7=1.09929682680944,mJ=.018053968510807,Ng=e=>{let r=Math.abs(e);return r>mJ?(Math.sign(e)||1)*(U7*Math.pow(r,.45)-(U7-1)):4.5*e},bJ=({x:e,y:r,z:t,alpha:n})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let a={mode:"rec2020",r:Ng(e*1.7166511879712683-r*.3556707837763925-.2533662813736599*t),g:Ng(e*-.6666843518324893+r*1.6164812366349395+.0157685458139111*t),b:Ng(e*.0176398574453108-r*.0427706132578085+.9421031212354739*t)};return n!==void 0&&(a.alpha=n),a},i3=bJ,H7=1.09929682680944,xJ=.018053968510807,qg=(e=0)=>{let r=Math.abs(e);return r{let r=qg(e.r),t=qg(e.g),n=qg(e.b),a={mode:"xyz65",x:.6369580483012911*r+.1446169035862083*t+.1688809751641721*n,y:.262700212011267*r+.6779980715188708*t+.059301716469862*n,z:0*r+.0280726930490874*t+1.0609850577107909*n};return e.alpha!==void 0&&(a.alpha=e.alpha),a},o3=_J,wJ=Ot(wt({},ps),{mode:"rec2020",fromMode:{xyz65:i3,rgb:e=>i3(al(e))},toMode:{xyz65:o3,rgb:e=>il(o3(e))},parse:["rec2020"],serialize:"rec2020"}),Jw=wJ,hs=.0037930732552754493,$w=Math.cbrt(hs),Bg=e=>Math.cbrt(e)-$w,MJ=e=>{let{r,g:t,b:n,alpha:a}=gs(e),o=Bg(.3*r+.622*t+.078*n+hs),i=Bg(.23*r+.692*t+.078*n+hs),l=Bg(.2434226892454782*r+.2047674442449682*t+.5518098665095535*n+hs),u={mode:"xyb",x:(o-i)/2,y:(o+i)/2,b:l-(o+i)/2};return a!==void 0&&(u.alpha=a),u},Kw=MJ,Og=e=>Math.pow(e+$w,3),TJ=({x:e,y:r,b:t,alpha:n})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let a=Og(e+r)-hs,o=Og(r-e)-hs,i=Og(t+r)-hs,l=ys({r:11.031566904639861*a-9.866943908131562*o-.16462299650829934*i,g:-3.2541473810744237*a+4.418770377582723*o-.16462299650829934*i,b:-3.6588512867136815*a+2.7129230459360922*o+1.9459282407775895*i});return n!==void 0&&(l.alpha=n),l},Qw=TJ,AJ={mode:"xyb",channels:["x","y","b","alpha"],parse:["--xyb"],serialize:"--xyb",toMode:{rgb:Qw},fromMode:{rgb:Kw},ranges:{x:[-.0154,.0281],y:[0,.8453],b:[-.2778,.388]},interpolate:{x:_r,y:_r,b:_r,alpha:{use:_r,fixup:Tn}}},jw=AJ,kJ={mode:"xyz50",parse:["xyz-d50"],serialize:"xyz-d50",toMode:{rgb:D0,lab:_h},fromMode:{rgb:R0,lab:xh},channels:["x","y","z","alpha"],ranges:{x:[0,.964],y:[0,.999],z:[0,.825]},interpolate:{x:_r,y:_r,z:_r,alpha:{use:_r,fixup:Tn}}},e8=kJ,SJ=e=>{let{x:r,y:t,z:n,alpha:a}=e;r===void 0&&(r=0),t===void 0&&(t=0),n===void 0&&(n=0);let o={mode:"xyz50",x:1.0479298208405488*r+.0229467933410191*t-.0501922295431356*n,y:.0296278156881593*r+.990434484573249*t-.0170738250293851*n,z:-.0092430581525912*r+.0150551448965779*t+.7518742899580008*n};return a!==void 0&&(o.alpha=a),o},r8=SJ,CJ=e=>{let{x:r,y:t,z:n,alpha:a}=e;r===void 0&&(r=0),t===void 0&&(t=0),n===void 0&&(n=0);let o={mode:"xyz65",x:.9554734527042182*r-.0230985368742614*t+.0632593086610217*n,y:-.0283697069632081*r+1.0099954580058226*t+.021041398966943*n,z:.0123140016883199*r-.0205076964334779*t+1.3303659366080753*n};return a!==void 0&&(o.alpha=a),o},t8=CJ,EJ={mode:"xyz65",toMode:{rgb:il,xyz50:r8},fromMode:{rgb:al,xyz50:t8},ranges:{x:[0,.95],y:[0,1],z:[0,1.088]},channels:["x","y","z","alpha"],parse:["xyz","xyz-d65"],serialize:"xyz-d65",interpolate:{x:_r,y:_r,z:_r,alpha:{use:_r,fixup:Tn}}},n8=EJ,LJ=({r:e,g:r,b:t,alpha:n})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let a={mode:"yiq",y:.29889531*e+.58662247*r+.11448223*t,i:.59597799*e-.2741761*r-.32180189*t,q:.21147017*e-.52261711*r+.31114694*t};return n!==void 0&&(a.alpha=n),a},a8=LJ,DJ=({y:e,i:r,q:t,alpha:n})=>{e===void 0&&(e=0),r===void 0&&(r=0),t===void 0&&(t=0);let a={mode:"rgb",r:e+.95608445*r+.6208885*t,g:e-.27137664*r-.6486059*t,b:e-1.10561724*r+1.70250126*t};return n!==void 0&&(a.alpha=n),a},i8=DJ,RJ={mode:"yiq",toMode:{rgb:i8},fromMode:{rgb:a8},channels:["y","i","q","alpha"],parse:["--yiq"],serialize:"--yiq",ranges:{i:[-.595,.595],q:[-.522,.522]},interpolate:{y:_r,i:_r,q:_r,alpha:{use:_r,fixup:Tn}}},o8=RJ,FJ=(e,r)=>Math.round(e*(r=Math.pow(10,r)))/r,PJ=(e=4)=>r=>typeof r=="number"?FJ(r,e):r,l8=PJ,bf=l8(2),_f=e=>Math.max(0,Math.min(1,e||0)),ds=e=>Math.round(_f(e)*255),L3=Ft("rgb"),IJ=Ft("hsl"),D3=e=>{if(e===void 0)return;let r=ds(e.r),t=ds(e.g),n=ds(e.b);return"#"+(1<<24|r<<16|t<<8|n).toString(16).slice(1)},s8=e=>{if(e===void 0)return;let r=ds(e.alpha!==void 0?e.alpha:1);return D3(e)+(256|r).toString(16).slice(1)},u8=e=>{if(e===void 0)return;let r=ds(e.r),t=ds(e.g),n=ds(e.b);return e.alpha===void 0||e.alpha===1?`rgb(${r}, ${t}, ${n})`:`rgba(${r}, ${t}, ${n}, ${bf(_f(e.alpha))})`},f8=e=>{if(e===void 0)return;let r=bf(e.h||0),t=bf(_f(e.s)*100)+"%",n=bf(_f(e.l)*100)+"%";return e.alpha===void 0||e.alpha===1?`hsl(${r}, ${t}, ${n})`:`hsla(${r}, ${t}, ${n}, ${bf(_f(e.alpha))})`},zJ=e=>{let r=Ai(e);if(!r)return;let t=la(r.mode);if(!t.serialize||typeof t.serialize=="string"){let n=`color(${t.serialize||`--${r.mode}`} `;return t.channels.forEach((a,o)=>{a!=="alpha"&&(n+=(o?" ":"")+(r[a]!==void 0?r[a]:"none"))}),r.alpha!==void 0&&r.alpha<1&&(n+=` / ${r.alpha}`),n+")"}if(typeof t.serialize=="function")return t.serialize(r)},NJ=e=>D3(L3(e)),qJ=e=>s8(L3(e)),BJ=e=>u8(L3(e)),OJ=e=>f8(IJ(e)),UJ={normal:(e,r)=>r,multiply:(e,r)=>e*r,screen:(e,r)=>e+r-e*r,"hard-light":(e,r)=>r<.5?e*2*r:2*r*(1-e)-1,overlay:(e,r)=>e<.5?r*2*e:2*e*(1-r)-1,darken:(e,r)=>Math.min(e,r),lighten:(e,r)=>Math.max(e,r),"color-dodge":(e,r)=>e===0?0:r===1?1:Math.min(1,e/(1-r)),"color-burn":(e,r)=>e===1?1:r===0?0:1-Math.min(1,(1-e)/r),"soft-light":(e,r)=>r<.5?e-(1-2*r)*e*(1-e):e+(2*r-1)*((e<.25?((16*e-12)*e+4)*e:Math.sqrt(e))-e),difference:(e,r)=>Math.abs(e-r),exclusion:(e,r)=>e+r-2*e*r},HJ=(e,r="normal",t="rgb")=>{let n=typeof r=="function"?r:UJ[r],a=Ft(t),o=la(t).channels;return e.map(l=>{let u=a(l);return u.alpha===void 0&&(u.alpha=1),u}).reduce((l,u)=>{if(l===void 0)return u;let s=u.alpha+l.alpha*(1-u.alpha);return o.reduce((f,c)=>(c!=="alpha"&&(s===0?f[c]=0:(f[c]=u.alpha*(1-l.alpha)*u[c]+u.alpha*l.alpha*n(l[c],u[c])+(1-u.alpha)*l.alpha*l[c],f[c]=Math.max(0,Math.min(1,f[c]/s)))),f),{mode:t,alpha:s})})},VJ=HJ,GJ=([e,r])=>e+Math.random()*(r-e),YJ=e=>Object.keys(e).reduce((r,t)=>{let n=e[t];return r[t]=Array.isArray(n)?n:[n,n],r},{}),XJ=(e="rgb",r={})=>{let t=la(e),n=YJ(r);return t.channels.reduce((a,o)=>((n.alpha||o!=="alpha")&&(a[o]=GJ(n[o]||t.ranges[o])),a),{mode:e})},WJ=XJ,Ef=(e,r="rgb",t=!1)=>{let n=r?la(r).channels:null,a=r?Ft(r):Ai;return o=>{let i=a(o);if(!i)return;let l=(n||la(i.mode).channels).reduce((s,f)=>{let c=e(i[f],f,i,r);return c!==void 0&&!isNaN(c)&&(s[f]=c),s},{mode:i.mode});if(!t)return l;let u=Ai(o);return u&&u.mode!==l.mode?Ft(u.mode)(l):l}},c8=(e,r,t)=>r!=="alpha"?(e||0)*(t.alpha!==void 0?t.alpha:1):e,v8=(e,r,t)=>r!=="alpha"&&t.alpha!==0?(e||0)/(t.alpha!==void 0?t.alpha:1):e,R3=(e=1,r=0)=>(t,n)=>n!=="alpha"?t*e+r:t,ZJ=(e=1,r=1,t=0)=>(n,a)=>a!=="alpha"?e*Math.pow(n,r)+t:n,JJ=e=>{e[0]===void 0&&(e[0]=0),e[e.length-1]===void 0&&(e[e.length-1]=1);let r=1,t,n,a,o;for(;rr=>e<=0?1:e>=1?0:Math.pow(r,Math.log(.5)/Math.log(e)),h8=KJ,nh=e=>typeof e=="function",cs=e=>e&&typeof e=="object",V7=e=>typeof e=="number",d8=(e,r="rgb",t,n)=>{let a=la(r),o=Ft(r),i=[],l=[],u={};e.forEach(g=>{Array.isArray(g)?(i.push(o(g[0])),l.push(g[1])):V7(g)||nh(g)?u[l.length]=g:(i.push(o(g)),l.push(void 0))}),$J(l);let s=a.channels.reduce((g,x)=>{let h;return cs(t)&&cs(t[x])&&t[x].fixup?h=t[x].fixup:cs(a.interpolate[x])&&a.interpolate[x].fixup?h=a.interpolate[x].fixup:h=_=>_,g[x]=h(i.map(_=>_[x])),g},{});if(n){let g=i.map((x,h)=>a.channels.reduce((_,T)=>(_[T]=s[T][h],_),{mode:r}));s=a.channels.reduce((x,h)=>(x[h]=g.map(_=>{let T=n(_[h],h,_,r);return isNaN(T)?void 0:T}),x),{})}let f=a.channels.reduce((g,x)=>{let h;return nh(t)?h=t:cs(t)&&nh(t[x])?h=t[x]:cs(t)&&cs(t[x])&&t[x].use?h=t[x].use:nh(a.interpolate[x])?h=a.interpolate[x]:cs(a.interpolate[x])&&(h=a.interpolate[x].use),g[x]=h(s[x]),g},{}),c=i.length-1;return g=>{if(g=Math.min(Math.max(0,g),1),g<=l[0])return i[0];if(g>l[c])return i[c];let x=0;for(;l[x]{let M=f[b](k);return M!==void 0&&(S[b]=M),S},{mode:r})}},QJ=(e,r="rgb",t)=>d8(e,r,t),p8=(e,r)=>(t,n="rgb",a)=>{let o=r?Ef(r,n):void 0,i=d8(t,n,a,e);return o?l=>o(i(l)):i},jJ=p8(c8,v8),ah=(e,r)=>(e+r)%r,g8=(e,r,t,n,a)=>{let o=a*a,i=o*a;return((1-3*a+3*o-i)*e+(4-6*o+3*i)*r+(1+3*a+3*o-3*i)*t+i*n)/6},y8=e=>r=>{let t=e.length-1,n=r>=1?t-1:Math.max(0,Math.floor(r*t));return g8(n>0?e[n-1]:2*e[n]-e[n+1],e[n],e[n+1],nr=>{let t=e.length-1,n=Math.floor(r*t);return g8(e[ah(n-1,e.length)],e[ah(n,e.length)],e[ah(n+1,e.length)],e[ah(n+2,e.length)],(r-n/t)*t)},b8=e=>{let r,t=e.length-1,n=new Array(t),a=new Array(t),o=new Array(t);for(n[1]=1/4,a[1]=(6*e[1]-e[0])/4,r=2;r0&&(o[t-1]=a[t-1]),r=t-2;r>0;--r)o[r]=a[r]-n[r]*o[r+1];return o},e$=e=>y8(b8(e)),r$=e=>m8(b8(e)),k0=Math.sign,l3=Math.min,za=Math.abs,F3=e=>{let r=e.length-1,t=[],n=[],a=[];for(let o=0;o0?.5*(e[o+1]-e[o-1])*r:void 0),a.push(o>0?(k0(t[o-1])+k0(t[o]))*l3(za(t[o-1]),za(t[o]),.5*za(n[o])):void 0);return[t,n,a]},P3=(e,r,t)=>{let n=e.length-1,a=n*n;return o=>{let i;o>=1?i=n-1:i=Math.max(0,Math.floor(o*n));let l=o-i/n,u=l*l,s=u*l;return(r[i]+r[i+1]-2*t[i])*a*s+(3*t[i]-2*r[i]-r[i+1])*n*u+r[i]*l+e[i]}},t$=e=>{if(e.length<3)return _r(e);let r=e.length-1,[t,,n]=F3(e);return n[0]=t[0],n[r]=t[r-1],P3(e,n,t)},n$=e=>{if(e.length<3)return _r(e);let r=e.length-1,[t,n,a]=F3(e);return n[0]=(e[1]*2-e[0]*1.5-e[2]*.5)*r,n[r]=(e[r]*1.5-e[r-1]*2+e[r-2]*.5)*r,a[0]=n[0]*t[0]<=0?0:za(n[0])>2*za(t[0])?2*t[0]:n[0],a[r]=n[r]*t[r-1]<=0?0:za(n[r])>2*za(t[r-1])?2*t[r-1]:n[r],P3(e,a,t)},a$=e=>{let r=e.length-1,[t,n,a]=F3(e);n[0]=.5*(e[1]-e[r])*r,n[r]=.5*(e[0]-e[r-1])*r;let o=(e[0]-e[r])*r,i=o;return a[0]=(k0(o)+k0(t[0]))*l3(za(o),za(t[0]),.5*za(n[0])),a[r]=(k0(t[r-1])+k0(i))*l3(za(t[r-1]),za(i),.5*za(n[r])),P3(e,a,t)},i$=(e=1)=>e===1?r=>r:r=>Math.pow(r,e),x8=i$,o$=(e=2,r=1)=>{let t=x8(r);if(e<2)return e<1?[]:[t(.5)];let n=[];for(let a=0;a{let r={mode:e.mode,r:Math.max(0,Math.min(e.r!==void 0?e.r:0,1)),g:Math.max(0,Math.min(e.g!==void 0?e.g:0,1)),b:Math.max(0,Math.min(e.b!==void 0?e.b:0,1))};return e.alpha!==void 0&&(r.alpha=e.alpha),r},M8=e=>w8(_8(e)),T8=e=>e!==void 0&&(e.r===void 0||e.r>=0&&e.r<=1)&&(e.g===void 0||e.g>=0&&e.g<=1)&&(e.b===void 0||e.b>=0&&e.b<=1);function I3(e){return T8(_8(e))}function Th(e="rgb"){let{gamut:r}=la(e);if(!r)return n=>!0;let t=Ft(typeof r=="string"?r:e);return n=>T8(t(n))}function s$(e){return e=Ai(e),e===void 0||I3(e)?e:Ft(e.mode)(M8(e))}function z3(e="rgb"){let{gamut:r}=la(e);if(!r)return o=>Ai(o);let t=typeof r=="string"?r:e,n=Ft(t),a=Th(t);return o=>{let i=Ai(o);if(!i)return;let l=n(i);if(a(l))return i;let u=w8(l);return i.mode===u.mode?u:Ft(i.mode)(u)}}function u$(e,r="lch",t="rgb"){e=Ai(e);let n=t==="rgb"?I3:Th(t),a=t==="rgb"?M8:z3(t);if(e===void 0||n(e))return e;let o=Ft(e.mode);e=Ft(r)(e);let i=Ot(wt({},e),{c:0});if(!n(i))return o(a(i));let l=0,u=e.c!==void 0?e.c:0,s=la(r).ranges.c,f=(s[1]-s[0])/Math.pow(2,13),c=i.c;for(;u-l>f;)i.c=l+(u-l)*.5,n(i)?(c=i.c,l=i.c):u=i.c;return o(n(i)?i:Ot(wt({},i),{c}))}function f$(e="rgb",r="oklch",t=L0("oklch"),n=.02){let a=Ft(e),o=la(e);if(!o.gamut)return f=>a(f);let i=Th(e),l=z3(e),u=Ft(r),{ranges:s}=la(r);if(!s.l||!s.c)throw new Error("LCH-like space expected");return f=>{if(f=Ai(f),f===void 0)return;let c=wt({},u(f));if(c.l===void 0&&(c.l=0),c.c===void 0&&(c.c=0),c.l>=s.l[1]){let T=Ot(wt({},o.white),{mode:e});return f.alpha!==void 0&&(T.alpha=f.alpha),T}if(c.l<=s.l[0]){let T=Ot(wt({},o.black),{mode:e});return f.alpha!==void 0&&(T.alpha=f.alpha),T}if(i(c))return a(c);let g=0,x=c.c,h=(s.c[1]-s.c[0])/4e3,_=l(c);for(;x-g>h;)c.c=(g+x)*.5,_=l(c),i(c)||t&&n>0&&t(c,_)<=n?g=c.c:x=c.c;return a(i(c)?c:_)}}var c$=(e,r=L0(),t=n=>n)=>{let n=e.map((a,o)=>({color:t(a),i:o}));return(a,o=1,i=1/0)=>(isFinite(o)&&(o=Math.max(1,Math.min(o,n.length-1))),n.forEach(l=>{l.d=r(a,l.color)}),n.sort((l,u)=>l.d-u.d).slice(0,o).filter(l=>l.de[l.i]))},v$=c$,N3=e=>Math.max(e,0),q3=e=>Math.max(Math.min(e,1),0),h$=(e,r,t)=>e===void 0||r===void 0?void 0:e+t*(r-e),d$=e=>{let r=1-q3(e);return[.393+.607*r,.769-.769*r,.189-.189*r,0,.349-.349*r,.686+.314*r,.168-.168*r,0,.272-.272*r,.534-.534*r,.131+.869*r,0,0,0,0,1]},p$=e=>{let r=N3(e);return[.213+.787*r,.715-.715*r,.072-.072*r,0,.213-.213*r,.715+.285*r,.072-.072*r,0,.213-.213*r,.715-.715*r,.072+.928*r,0,0,0,0,1]},g$=e=>{let r=1-q3(e);return[.2126+.7874*r,.7152-.7152*r,.0722-.0722*r,0,.2126-.2126*r,.7152+.2848*r,.0722-.0722*r,0,.2126-.2126*r,.7152-.7152*r,.0722+.9278*r,0,0,0,0,1]},y$=e=>{let r=Math.PI*e/180,t=Math.cos(r),n=Math.sin(r);return[.213+t*.787-n*.213,.715-t*.715-n*.715,.072-t*.072+n*.928,0,.213-t*.213+n*.143,.715+t*.285+n*.14,.072-t*.072-n*.283,0,.213-t*.213-n*.787,.715-t*.715+n*.715,.072+t*.928+n*.072,0,0,0,0,1]},Ah=(e,r,t=!1)=>{let n=Ft(r),a=la(r).channels;return o=>{let i=n(o);if(!i)return;let l={mode:r},u,s=a.length;for(let c=0;c{let t=N3(e);return Ef(R3(t),r,!0)},b$=(e=1,r="rgb")=>{let t=N3(e);return Ef(R3(t,(1-t)/2),r,!0)},x$=(e=1,r="rgb")=>Ah(d$(e),r,!0),_$=(e=1,r="rgb")=>Ah(p$(e),r,!0),w$=(e=1,r="rgb")=>Ah(g$(e),r,!0),M$=(e=1,r="rgb")=>{let t=q3(e);return Ef((n,a)=>a==="alpha"?n:h$(t,1-t,n),r,!0)},T$=(e=0,r="rgb")=>Ah(y$(e),r,!0),A$=Ft("rgb"),k$=[[1,0,-0,0,1,0,-0,-0,1],[.856167,.182038,-.038205,.029342,.955115,.015544,-.00288,-.001563,1.004443],[.734766,.334872,-.069637,.05184,.919198,.028963,-.004928,-.004209,1.009137],[.630323,.465641,-.095964,.069181,.890046,.040773,-.006308,-.007724,1.014032],[.539009,.579343,-.118352,.082546,.866121,.051332,-.007136,-.011959,1.019095],[.458064,.679578,-.137642,.092785,.846313,.060902,-.007494,-.016807,1.024301],[.38545,.769005,-.154455,.100526,.829802,.069673,-.007442,-.02219,1.029632],[.319627,.849633,-.169261,.106241,.815969,.07779,-.007025,-.028051,1.035076],[.259411,.923008,-.18242,.110296,.80434,.085364,-.006276,-.034346,1.040622],[.203876,.990338,-.194214,.112975,.794542,.092483,-.005222,-.041043,1.046265],[.152286,1.052583,-.204868,.114503,.786281,.099216,-.003882,-.048116,1.051998]],S$=[[1,0,-0,0,1,0,-0,-0,1],[.866435,.177704,-.044139,.049567,.939063,.01137,-.003453,.007233,.99622],[.760729,.319078,-.079807,.090568,.889315,.020117,-.006027,.013325,.992702],[.675425,.43385,-.109275,.125303,.847755,.026942,-.00795,.018572,.989378],[.605511,.52856,-.134071,.155318,.812366,.032316,-.009376,.023176,.9862],[.547494,.607765,-.155259,.181692,.781742,.036566,-.01041,.027275,.983136],[.498864,.674741,-.173604,.205199,.754872,.039929,-.011131,.030969,.980162],[.457771,.731899,-.18967,.226409,.731012,.042579,-.011595,.034333,.977261],[.422823,.781057,-.203881,.245752,.709602,.044646,-.011843,.037423,.974421],[.392952,.82361,-.216562,.263559,.69021,.046232,-.01191,.040281,.97163],[.367322,.860646,-.227968,.280085,.672501,.047413,-.01182,.04294,.968881]],C$=[[1,0,-0,0,1,0,-0,-0,1],[.92667,.092514,-.019184,.021191,.964503,.014306,.008437,.054813,.93675],[.89572,.13333,-.02905,.029997,.9454,.024603,.013027,.104707,.882266],[.905871,.127791,-.033662,.026856,.941251,.031893,.01341,.148296,.838294],[.948035,.08949,-.037526,.014364,.946792,.038844,.010853,.193991,.795156],[1.017277,.027029,-.044306,-.006113,.958479,.047634,.006379,.248708,.744913],[1.104996,-.046633,-.058363,-.032137,.971635,.060503,.001336,.317922,.680742],[1.193214,-.109812,-.083402,-.058496,.97941,.079086,-.002346,.403492,.598854],[1.257728,-.139648,-.118081,-.078003,.975409,.102594,-.003316,.501214,.502102],[1.278864,-.125333,-.153531,-.084748,.957674,.127074,-989e-6,.601151,.399838],[1.255528,-.076749,-.178779,-.078411,.930809,.147602,.004733,.691367,.3039]],B3=(e,r)=>{let t=Math.max(0,Math.min(1,r)),n=Math.round(t/.1),a=Math.round(t%.1),o=e[n];if(a>0&&nvs(o[u],i[u],a))}return i=>{let l=Ai(i);if(l===void 0)return;let{r:u,g:s,b:f}=A$(l),c={mode:"rgb",r:o[0]*u+o[1]*s+o[2]*f,g:o[3]*u+o[4]*s+o[5]*f,b:o[6]*u+o[7]*s+o[8]*f};return l.alpha!==void 0&&(c.alpha=l.alpha),Ft(l.mode)(c)}},E$=(e=1)=>B3(k$,e),L$=(e=1)=>B3(S$,e),D$=(e=1)=>B3(C$,e),R$=e=>e*e*(3-2*e),F$=e=>.5-Math.sin(Math.asin(1-2*e)/3),P$=e=>e*e*e*(e*(e*6-15)+10),I$=P$,z$=e=>(1-Math.cos(e*Math.PI))/2,N$=z$;function s3(e){let r=Ft("lrgb")(e);return .2126*r.r+.7152*r.g+.0722*r.b}function q$(e,r){let t=s3(e),n=s3(r);return(Math.max(t,n)+.05)/(Math.min(t,n)+.05)}var B$=Mt(nw),O$=Mt(sw),U$=Mt(hw),H$=Mt(dw),V$=Mt(yw),G$=Mt(d3),Y$=Mt(y3),X$=Mt(Aw),W$=Mt(Cw),Z$=Mt(Ew),J$=Mt(Lw),$$=Mt(wh),K$=Mt(Rw),Q$=Mt(Mh),j$=Mt(Pw),eK=Mt(Nw),rK=Mt(qw),tK=Mt(Bw),nK=Mt(Uw),aK=Mt(Hw),iK=Mt(Gw),oK=Mt(Xw),lK=Mt(Ww),sK=Mt(Zw),uK=Mt(Jw),fK=Mt(ps),cK=Mt(jw),vK=Mt(e8),hK=Mt(n8),dK=Mt(o8)});var O3={};Ht(O3,{default:()=>gK});var pK,gK,U3=Ut(()=>{"use strict";pK={format:{valType:"enumerated",values:["png","jpeg","webp","svg","full-json"],dflt:"png",description:"Sets the format of exported image."},width:{valType:"number",min:1,description:["Sets the exported image width.","Defaults to the value found in `layout.width`","If set to *null*, the exported image width will match the current graph width."].join(" ")},height:{valType:"number",min:1,description:["Sets the exported image height.","Defaults to the value found in `layout.height`","If set to *null*, the exported image height will match the current graph height."].join(" ")},scale:{valType:"number",min:0,dflt:1,description:["Sets a scaling for the generated image.","If set, all features of a graphs (e.g. text, line width)","are scaled, unlike simply setting","a bigger *width* and *height*."].join(" ")},setBackground:{valType:"any",dflt:!1,description:["Sets the image background mode.","By default, the image background is determined by `layout.paper_bgcolor`,","the *transparent* mode.","One might consider setting `setBackground` to *opaque*","when exporting a *jpeg* image as JPEGs do not support opacity."].join(" ")},imageDataOnly:{valType:"boolean",dflt:!1,description:["Determines whether or not the return value is prefixed by","the image format's corresponding 'data:image;' spec."].join(" ")}},gK=pK});var ol=xe((nxe,D8)=>{"use strict";var{format:yK,width:mK,height:bK,scale:xK}=(U3(),or(O3)).default,S8=xK,{dflt:txe}=S8,_K=$_(S8,["dflt"]),C8={staticPlot:{valType:"boolean",dflt:!1},typesetMath:{valType:"boolean",dflt:!0},plotlyServerURL:{valType:"string",dflt:"https://cloud.plotly.com/newchart"},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","map"],extras:[!0,!1],dflt:"gl3d+geo+map"},doubleClick:{valType:"enumerated",values:[!1,"reset","autosize","reset+autosize"],dflt:"reset+autosize"},doubleClickDelay:{valType:"number",dflt:500,min:0},showAxisDragHandles:{valType:"boolean",dflt:!0},showAxisRangeEntryBoxes:{valType:"boolean",dflt:!0},showTips:{valType:"boolean",dflt:!0},displayNotifier:{valType:"boolean",dflt:!0},displayModeBar:{valType:"enumerated",values:["hover",!0,!1],dflt:"hover"},showSendToCloud:{valType:"boolean",dflt:!0},modeBarButtonsToRemove:{valType:"any",dflt:[]},modeBarButtonsToAdd:{valType:"any",dflt:[]},modeBarButtons:{valType:"any",dflt:!1},toImageButtonOptions:{format:yK,filename:{valType:"string"},width:mK,height:bK,scale:_K},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/un/"},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},locale:{valType:"string",dflt:"en-US"},locales:{valType:"any",dflt:{}}},E8={};function L8(e,r){for(let t in e){let n=e[t];typeof n!="object"||n===null||(n.valType?"dflt"in n&&(r[t]=n.dflt):(r[t]||(r[t]={}),L8(n,r[t])))}}L8(C8,E8);D8.exports={configAttributes:C8,dfltConfig:E8}});var V3=xe((ixe,R8)=>{"use strict";var H3=lt(),wK=ut(),Lf=[];R8.exports=function(e,r,t){var l;if(((l=t==null?void 0:t._context)==null?void 0:l.displayNotifier)===!1||Lf.indexOf(e)!==-1)return;Lf.push(e);var n=1e3;wK(r)?n=r:r==="long"&&(n=3e3);var a=H3.select("body").selectAll(".plotly-notifier").data([0]);a.enter().append("div").classed("plotly-notifier",!0);var o=a.selectAll(".notifier-note").data(Lf);function i(u){u.duration(700).style("opacity",0).each("end",function(s){var f=Lf.indexOf(s);f!==-1&&Lf.splice(f,1),H3.select(this).remove()})}o.enter().append("div").classed("notifier-note",!0).style("opacity",0).each(function(u){var s=H3.select(this);s.append("button").classed("notifier-close",!0).html("×").on("click",function(){s.transition().call(i)});for(var f=s.append("p"),c=u.split(//g),g=0;g{"use strict";var P0=ol().dfltConfig,G3=V3(),Y3=F8.exports={};Y3.log=function(){var e;if(P0.logging>1){var r=["LOG:"];for(e=0;e1){var t=[];for(e=0;e"),"long")}};Y3.warn=function(){var e;if(P0.logging>0){var r=["WARN:"];for(e=0;e0){var t=[];for(e=0;e"),"stick")}};Y3.error=function(){var e;if(P0.logging>0){var r=["ERROR:"];for(e=0;e0){var t=[];for(e=0;e"),"stick")}}});var to=xe(ms=>{"use strict";ms.defaults=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"];ms.defaultLine="#444";ms.lightLine="#eee";ms.background="#fff";ms.borderLine="#BEC8D9";ms.lightFraction=1e3/11});var Zr=xe((sxe,H8)=>{"use strict";var{converter:P8,formatHex:MK,formatRgb:TK,wcagContrast:AK,wcagLuminance:kK}=k8(),{isArrayOrTypedArray:I8}=ba(),{warn:SK}=ll(),{background:Rf,defaultLine:Z3,defaults:CK,lightLine:EK}=to(),z8=P8("rgb"),LK=P8("hsl"),N8=e=>{if(typeof e!="string")return;let r=e.trim().toLowerCase();if(!/^[0-9a-f]+$/.test(r))try{return z8(r)}catch(t){return}},sa=e=>e>0?e>1?1:e:0,DK={mode:"rgb",r:0,g:0,b:0,alpha:1},X3=e=>Math.round(e*255e6)/255e6,q8=e=>Ot(wt({},e),{r:X3(e.r),g:X3(e.g),b:X3(e.b)}),Na=e=>TK(q8(e)),RK=e=>MK(q8(e)),FK=e=>{var r,t,n,a;return typeof e=="string"?`"${e}"`:I8(e)?`${(t=(r=e.constructor)==null?void 0:r.name)!=null?t:"Array"}(${e.length})`:typeof e=="object"?(a=(n=e.constructor)==null?void 0:n.name)!=null?a:"Object":`${typeof e} ${e}`},Kt=(e,r)=>{var n;let t=N8(e);return t?((n=t.alpha)!=null||(t.alpha=1),t):(!r&&e!=null&&SK(`Invalid color specifier: ${FK(e)}. Defaulting to "#000"`),DK)},Df=e=>Na(Ot(wt({},Kt(e)),{alpha:1})),PK=e=>e?Kt(e).alpha:0,B8=e=>I8(e)&&e.length>2&&Number.isFinite(e[0])&&Number.isFinite(e[1])&&Number.isFinite(e[2]),IK=e=>{let[r,t,n,a]=e,o=Math.max(r,t,n)>1?1/255:1,i=a!=null?a:1;return{mode:"rgb",r:r*o,g:t*o,b:n*o,alpha:i>1?i/255:i}},zK=(e,r)=>{let t=B8(e)?IK(e):Kt(e,!0),n=[sa(t.r),sa(t.g),sa(t.b),sa(t.alpha)];return r==="uint8"||r==="uint8_clamped"?Uint8Array.from(n,a=>Math.round(a*255)):r==="float32"?Float32Array.from(n):r==="float64"?Float64Array.from(n):n},NK=(e,r)=>Na(Ot(wt({},Kt(e)),{alpha:sa(r)})),O8=(e,r)=>{let t=Kt(e),n=t.alpha;if(n===1)return Na(t);let a=Kt(r||Rf),o=a.alpha,i=(l,u)=>(o===1?u:1-o+u*o)*(1-n)+l*n;return Na({mode:"rgb",r:i(t.r,a.r),g:i(t.g,a.g),b:i(t.b,a.b)})},qK=(e,r,t)=>{let n=Kt(e),a=Kt(r),o=(i,l)=>t*i+(1-t)*l;return Na({mode:"rgb",r:o(n.r,a.r),g:o(n.g,a.g),b:o(n.b,a.b)})},W3=(e,r)=>{let t=Kt(e),n=LK(t)||{mode:"hsl",h:0,s:0,l:0};return Na(z8(Ot(wt({},n),{l:sa((n.l*100+r)/100),alpha:t.alpha})))},kh=(e,r)=>AK(Kt(e),Kt(r)),U8=e=>kh(e,Rf)>kh(e,Z3),BK=Na(Kt(Rf)),OK=Na(Kt(Z3)),UK=(e,r,t)=>(Kt(e).alpha!==1&&(e=O8(e,Rf)),U8(e)?r?W3(e,r):BK:t?W3(e,-t):OK),HK=(e,r)=>{e.style({stroke:Df(r),"stroke-opacity":Kt(r).alpha})},VK=(e,r)=>{e.style({fill:Df(r),"fill-opacity":Kt(r).alpha})},GK=(e,r)=>!!(e&&r&&Df(e)===Df(r)),YK=e=>N8(e)!==void 0,XK=(e,r)=>{r=r===0?0:r||10;let t=Kt(e),n=r/100;return Na(Ot(wt({},t),{r:sa(t.r+n),g:sa(t.g+n),b:sa(t.b+n)}))},WK=(e,r,t)=>{let n=Kt(e),a=Kt(r),o=t/100,i=a.alpha-n.alpha,l=2*o-1,u=((l*i===-1?l:(l+i)/(1+l*i))+1)/2,s=1-u,f=(c,g)=>s*c+u*g;return Na({mode:"rgb",r:f(n.r,a.r),g:f(n.g,a.g),b:f(n.b,a.b),alpha:n.alpha*(1-o)+a.alpha*o})},ZK=(e,r=["#000","#fff"])=>{let t,n=-1/0;for(let a of r){let o=kh(e,a);o>n&&(n=o,t=Na(Kt(a)))}return t},JK=e=>Na(Kt(e)),$K=e=>RK(Kt(e)).toUpperCase(),KK=e=>{let r=Kt(e);return[sa(r.r)*255,sa(r.g)*255,sa(r.b)*255,sa(r.alpha)]},QK=([e,r,t,n])=>Na({mode:"rgb",r:e/255,g:r/255,b:t/255,alpha:n}),jK=e=>{let r=Kt(e);return kK({mode:"rgb",r:sa(r.r),g:sa(r.g),b:sa(r.b)})};H8.exports={addOpacity:NK,adjustLightness:W3,background:Rf,brighten:XK,combine:O8,contrast:UK,defaultLine:Z3,defaults:CK,equals:GK,fill:VK,hexString:$K,interpolate:qK,isChannelArray:B8,isDark:U8,isValid:YK,lightLine:EK,luminosity:jK,mix:WK,mostReadable:ZK,normalize:zK,opacity:PK,parse:Kt,rgb:Df,rgbaArray:KK,rgbaArrayToString:QK,rgbaString:JK,stroke:HK,wcagContrast:kh}});var bs=xe((fxe,Y8)=>{"use strict";var eQ=Zr(),Sh={Greys:[[0,"rgb(0,0,0)"],[1,"rgb(255,255,255)"]],YlGnBu:[[0,"rgb(8,29,88)"],[.125,"rgb(37,52,148)"],[.25,"rgb(34,94,168)"],[.375,"rgb(29,145,192)"],[.5,"rgb(65,182,196)"],[.625,"rgb(127,205,187)"],[.75,"rgb(199,233,180)"],[.875,"rgb(237,248,217)"],[1,"rgb(255,255,217)"]],Greens:[[0,"rgb(0,68,27)"],[.125,"rgb(0,109,44)"],[.25,"rgb(35,139,69)"],[.375,"rgb(65,171,93)"],[.5,"rgb(116,196,118)"],[.625,"rgb(161,217,155)"],[.75,"rgb(199,233,192)"],[.875,"rgb(229,245,224)"],[1,"rgb(247,252,245)"]],YlOrRd:[[0,"rgb(128,0,38)"],[.125,"rgb(189,0,38)"],[.25,"rgb(227,26,28)"],[.375,"rgb(252,78,42)"],[.5,"rgb(253,141,60)"],[.625,"rgb(254,178,76)"],[.75,"rgb(254,217,118)"],[.875,"rgb(255,237,160)"],[1,"rgb(255,255,204)"]],Bluered:[[0,"rgb(0,0,255)"],[1,"rgb(255,0,0)"]],RdBu:[[0,"rgb(5,10,172)"],[.35,"rgb(106,137,247)"],[.5,"rgb(190,190,190)"],[.6,"rgb(220,170,132)"],[.7,"rgb(230,145,90)"],[1,"rgb(178,10,28)"]],Reds:[[0,"rgb(220,220,220)"],[.2,"rgb(245,195,157)"],[.4,"rgb(245,160,105)"],[1,"rgb(178,10,28)"]],Blues:[[0,"rgb(5,10,172)"],[.35,"rgb(40,60,190)"],[.5,"rgb(70,100,245)"],[.6,"rgb(90,120,245)"],[.7,"rgb(106,137,247)"],[1,"rgb(220,220,220)"]],Picnic:[[0,"rgb(0,0,255)"],[.1,"rgb(51,153,255)"],[.2,"rgb(102,204,255)"],[.3,"rgb(153,204,255)"],[.4,"rgb(204,204,255)"],[.5,"rgb(255,255,255)"],[.6,"rgb(255,204,255)"],[.7,"rgb(255,153,255)"],[.8,"rgb(255,102,204)"],[.9,"rgb(255,102,102)"],[1,"rgb(255,0,0)"]],Rainbow:[[0,"rgb(150,0,90)"],[.125,"rgb(0,0,200)"],[.25,"rgb(0,25,255)"],[.375,"rgb(0,152,255)"],[.5,"rgb(44,255,150)"],[.625,"rgb(151,255,0)"],[.75,"rgb(255,234,0)"],[.875,"rgb(255,111,0)"],[1,"rgb(255,0,0)"]],Portland:[[0,"rgb(12,51,131)"],[.25,"rgb(10,136,186)"],[.5,"rgb(242,211,56)"],[.75,"rgb(242,143,56)"],[1,"rgb(217,30,30)"]],Jet:[[0,"rgb(0,0,131)"],[.125,"rgb(0,60,170)"],[.375,"rgb(5,255,255)"],[.625,"rgb(255,255,0)"],[.875,"rgb(250,0,0)"],[1,"rgb(128,0,0)"]],Hot:[[0,"rgb(0,0,0)"],[.3,"rgb(230,0,0)"],[.6,"rgb(255,210,0)"],[1,"rgb(255,255,255)"]],Blackbody:[[0,"rgb(0,0,0)"],[.2,"rgb(230,0,0)"],[.4,"rgb(230,210,0)"],[.7,"rgb(255,255,255)"],[1,"rgb(160,200,255)"]],Earth:[[0,"rgb(0,0,130)"],[.1,"rgb(0,180,180)"],[.2,"rgb(40,210,40)"],[.4,"rgb(230,230,50)"],[.6,"rgb(120,70,20)"],[1,"rgb(255,255,255)"]],Electric:[[0,"rgb(0,0,0)"],[.15,"rgb(30,0,100)"],[.4,"rgb(120,0,100)"],[.6,"rgb(160,90,0)"],[.8,"rgb(230,200,0)"],[1,"rgb(255,250,220)"]],Viridis:[[0,"#440154"],[.06274509803921569,"#48186a"],[.12549019607843137,"#472d7b"],[.18823529411764706,"#424086"],[.25098039215686274,"#3b528b"],[.3137254901960784,"#33638d"],[.3764705882352941,"#2c728e"],[.4392156862745098,"#26828e"],[.5019607843137255,"#21918c"],[.5647058823529412,"#1fa088"],[.6274509803921569,"#28ae80"],[.6901960784313725,"#3fbc73"],[.7529411764705882,"#5ec962"],[.8156862745098039,"#84d44b"],[.8784313725490196,"#addc30"],[.9411764705882353,"#d8e219"],[1,"#fde725"]],Cividis:[[0,"rgb(0,32,76)"],[.058824,"rgb(0,42,102)"],[.117647,"rgb(0,52,110)"],[.176471,"rgb(39,63,108)"],[.235294,"rgb(60,74,107)"],[.294118,"rgb(76,85,107)"],[.352941,"rgb(91,95,109)"],[.411765,"rgb(104,106,112)"],[.470588,"rgb(117,117,117)"],[.529412,"rgb(131,129,120)"],[.588235,"rgb(146,140,120)"],[.647059,"rgb(161,152,118)"],[.705882,"rgb(176,165,114)"],[.764706,"rgb(192,177,109)"],[.823529,"rgb(209,191,102)"],[.882353,"rgb(225,204,92)"],[.941176,"rgb(243,219,79)"],[1,"rgb(255,233,69)"]]},V8=Sh.RdBu;function rQ(e,r){if(r||(r=V8),!e)return r;function t(){try{e=Sh[e]||JSON.parse(e)}catch(n){e=r}}return typeof e=="string"&&(t(),typeof e=="string"&&t()),G8(e)?e:r}function G8(e){var r=0;if(!Array.isArray(e)||e.length<2||!e[0]||!e[e.length-1]||+e[0][0]!=0||+e[e.length-1][0]!=1)return!1;for(var t=0;tiQ,HIDE_PLACEHOLDER:()=>aQ,SHOW_PLACEHOLDER:()=>nQ});var nQ,aQ,iQ,Eh=Ut(()=>{"use strict";nQ=100,aQ=1e3,iQ=.2});var Ff={};Ht(Ff,{counter:()=>xs});function xs(e,r="",t,n){let a=r+(t?"":"$"),o=n===!1?"":"^";return e==="xy"?new RegExp(o+"x"+J3+"y"+J3+a):new RegExp(o+e+J3+a)}var J3,I0=Ut(()=>{"use strict";J3="([2-9]|[1-9][0-9]+)?"});var Z8=xe(Sa=>{"use strict";var $3=ut(),X8=Rt().extendFlat,oQ=Zn(),lQ=bs(),K3=Zr(),sQ=(Eh(),or(Ch)).DESELECTDIM,z0=Kv(),W8=(I0(),or(Ff)).counter,uQ=(A0(),or(T0)).modHalf,ki=ba().isArrayOrTypedArray,sl=ba().isTypedArraySpec,ul=ba().decodeTypedArraySpec;Sa.valObjectMeta={data_array:{coerceFunction:function(e,r,t){r.set(ki(e)?e:sl(e)?ul(e):t)}},enumerated:{coerceFunction:function(e,r,t,n){n.coerceNumber&&(e=+e),n.values.indexOf(e)===-1?r.set(t):r.set(e)},validateFunction:function(e,r){r.coerceNumber&&(e=+e);for(var t=r.values,n=0;no===!0||o===!1;a(e)||n.arrayOk&&Array.isArray(e)&&e.length>0&&e.every(a)?r.set(e):r.set(t)}},number:{coerceFunction:function(e,r,t,n){sl(e)&&(e=ul(e)),!$3(e)||n.min!==void 0&&en.max?r.set(t):r.set(+e)}},integer:{coerceFunction:function(e,r,t,n){if((n.extras||[]).indexOf(e)!==-1){r.set(e);return}sl(e)&&(e=ul(e)),e%1||!$3(e)||n.min!==void 0&&en.max?r.set(t):r.set(+e)}},string:{coerceFunction:function(e,r,t,n){if(typeof e!="string"){var a=typeof e=="number";n.strict===!0||!a?r.set(t):r.set(String(e))}else n.noBlank&&!e?r.set(t):r.set(e)}},color:{coerceFunction:function(e,r,t){sl(e)&&(e=ul(e)),K3.isValid(e)?r.set(e):r.set(t)}},colorlist:{coerceFunction:function(e,r,t){!Array.isArray(e)||!e.length?r.set(t):e.every(n=>K3.isValid(n))?r.set(e):r.set(t)}},colorscale:{coerceFunction:function(e,r,t){r.set(lQ.get(e,t))}},angle:{coerceFunction:function(e,r,t){sl(e)&&(e=ul(e)),e==="auto"?r.set("auto"):$3(e)?r.set(uQ(+e,360)):r.set(t)}},subplotid:{coerceFunction:function(e,r,t,n){var a=n.regex||W8(t);let o=i=>typeof i=="string"&&a.test(i);o(e)||n.arrayOk&&ki(e)&&e.length>0&&e.every(o)?r.set(e):r.set(t)},validateFunction:function(e,r){var t=r.dflt;return e===t?!0:typeof e!="string"?!1:!!W8(t).test(e)}},flaglist:{coerceFunction:function(e,r,t,n){if((n.extras||[]).indexOf(e)!==-1){r.set(e);return}if(typeof e!="string"){r.set(t);return}for(var a=e.split("+"),o=0;o{"use strict";J8.exports=function(){}});var Q3=xe((hxe,$8)=>{"use strict";$8.exports=function(r,t){if(t instanceof RegExp){for(var n=t.toString(),a=0;a{K8.exports=fQ;function fQ(){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}});var e9=xe((pxe,j8)=>{j8.exports=cQ;function cQ(e){var r=new Float32Array(16);return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4],r[5]=e[5],r[6]=e[6],r[7]=e[7],r[8]=e[8],r[9]=e[9],r[10]=e[10],r[11]=e[11],r[12]=e[12],r[13]=e[13],r[14]=e[14],r[15]=e[15],r}});var t9=xe((gxe,r9)=>{r9.exports=vQ;function vQ(e,r){return e[0]=r[0],e[1]=r[1],e[2]=r[2],e[3]=r[3],e[4]=r[4],e[5]=r[5],e[6]=r[6],e[7]=r[7],e[8]=r[8],e[9]=r[9],e[10]=r[10],e[11]=r[11],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15],e}});var j3=xe((yxe,n9)=>{n9.exports=hQ;function hQ(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}});var i9=xe((mxe,a9)=>{a9.exports=dQ;function dQ(e,r){if(e===r){var t=r[1],n=r[2],a=r[3],o=r[6],i=r[7],l=r[11];e[1]=r[4],e[2]=r[8],e[3]=r[12],e[4]=t,e[6]=r[9],e[7]=r[13],e[8]=n,e[9]=o,e[11]=r[14],e[12]=a,e[13]=i,e[14]=l}else e[0]=r[0],e[1]=r[4],e[2]=r[8],e[3]=r[12],e[4]=r[1],e[5]=r[5],e[6]=r[9],e[7]=r[13],e[8]=r[2],e[9]=r[6],e[10]=r[10],e[11]=r[14],e[12]=r[3],e[13]=r[7],e[14]=r[11],e[15]=r[15];return e}});var l9=xe((bxe,o9)=>{o9.exports=pQ;function pQ(e,r){var t=r[0],n=r[1],a=r[2],o=r[3],i=r[4],l=r[5],u=r[6],s=r[7],f=r[8],c=r[9],g=r[10],x=r[11],h=r[12],_=r[13],T=r[14],m=r[15],k=t*l-n*i,S=t*u-a*i,b=t*s-o*i,M=n*u-a*l,d=n*s-o*l,w=a*s-o*u,y=f*_-c*h,v=f*T-g*h,A=f*m-x*h,p=c*T-g*_,D=c*m-x*_,E=g*m-x*T,R=k*E-S*D+b*p+M*A-d*v+w*y;return R?(R=1/R,e[0]=(l*E-u*D+s*p)*R,e[1]=(a*D-n*E-o*p)*R,e[2]=(_*w-T*d+m*M)*R,e[3]=(g*d-c*w-x*M)*R,e[4]=(u*A-i*E-s*v)*R,e[5]=(t*E-a*A+o*v)*R,e[6]=(T*b-h*w-m*S)*R,e[7]=(f*w-g*b+x*S)*R,e[8]=(i*D-l*A+s*y)*R,e[9]=(n*A-t*D-o*y)*R,e[10]=(h*d-_*b+m*k)*R,e[11]=(c*b-f*d-x*k)*R,e[12]=(l*v-i*p-u*y)*R,e[13]=(t*p-n*v+a*y)*R,e[14]=(_*S-h*M-T*k)*R,e[15]=(f*M-c*S+g*k)*R,e):null}});var u9=xe((xxe,s9)=>{s9.exports=gQ;function gQ(e,r){var t=r[0],n=r[1],a=r[2],o=r[3],i=r[4],l=r[5],u=r[6],s=r[7],f=r[8],c=r[9],g=r[10],x=r[11],h=r[12],_=r[13],T=r[14],m=r[15];return e[0]=l*(g*m-x*T)-c*(u*m-s*T)+_*(u*x-s*g),e[1]=-(n*(g*m-x*T)-c*(a*m-o*T)+_*(a*x-o*g)),e[2]=n*(u*m-s*T)-l*(a*m-o*T)+_*(a*s-o*u),e[3]=-(n*(u*x-s*g)-l*(a*x-o*g)+c*(a*s-o*u)),e[4]=-(i*(g*m-x*T)-f*(u*m-s*T)+h*(u*x-s*g)),e[5]=t*(g*m-x*T)-f*(a*m-o*T)+h*(a*x-o*g),e[6]=-(t*(u*m-s*T)-i*(a*m-o*T)+h*(a*s-o*u)),e[7]=t*(u*x-s*g)-i*(a*x-o*g)+f*(a*s-o*u),e[8]=i*(c*m-x*_)-f*(l*m-s*_)+h*(l*x-s*c),e[9]=-(t*(c*m-x*_)-f*(n*m-o*_)+h*(n*x-o*c)),e[10]=t*(l*m-s*_)-i*(n*m-o*_)+h*(n*s-o*l),e[11]=-(t*(l*x-s*c)-i*(n*x-o*c)+f*(n*s-o*l)),e[12]=-(i*(c*T-g*_)-f*(l*T-u*_)+h*(l*g-u*c)),e[13]=t*(c*T-g*_)-f*(n*T-a*_)+h*(n*g-a*c),e[14]=-(t*(l*T-u*_)-i*(n*T-a*_)+h*(n*u-a*l)),e[15]=t*(l*g-u*c)-i*(n*g-a*c)+f*(n*u-a*l),e}});var c9=xe((_xe,f9)=>{f9.exports=yQ;function yQ(e){var r=e[0],t=e[1],n=e[2],a=e[3],o=e[4],i=e[5],l=e[6],u=e[7],s=e[8],f=e[9],c=e[10],g=e[11],x=e[12],h=e[13],_=e[14],T=e[15],m=r*i-t*o,k=r*l-n*o,S=r*u-a*o,b=t*l-n*i,M=t*u-a*i,d=n*u-a*l,w=s*h-f*x,y=s*_-c*x,v=s*T-g*x,A=f*_-c*h,p=f*T-g*h,D=c*T-g*_;return m*D-k*p+S*A+b*v-M*y+d*w}});var h9=xe((wxe,v9)=>{v9.exports=mQ;function mQ(e,r,t){var n=r[0],a=r[1],o=r[2],i=r[3],l=r[4],u=r[5],s=r[6],f=r[7],c=r[8],g=r[9],x=r[10],h=r[11],_=r[12],T=r[13],m=r[14],k=r[15],S=t[0],b=t[1],M=t[2],d=t[3];return e[0]=S*n+b*l+M*c+d*_,e[1]=S*a+b*u+M*g+d*T,e[2]=S*o+b*s+M*x+d*m,e[3]=S*i+b*f+M*h+d*k,S=t[4],b=t[5],M=t[6],d=t[7],e[4]=S*n+b*l+M*c+d*_,e[5]=S*a+b*u+M*g+d*T,e[6]=S*o+b*s+M*x+d*m,e[7]=S*i+b*f+M*h+d*k,S=t[8],b=t[9],M=t[10],d=t[11],e[8]=S*n+b*l+M*c+d*_,e[9]=S*a+b*u+M*g+d*T,e[10]=S*o+b*s+M*x+d*m,e[11]=S*i+b*f+M*h+d*k,S=t[12],b=t[13],M=t[14],d=t[15],e[12]=S*n+b*l+M*c+d*_,e[13]=S*a+b*u+M*g+d*T,e[14]=S*o+b*s+M*x+d*m,e[15]=S*i+b*f+M*h+d*k,e}});var p9=xe((Mxe,d9)=>{d9.exports=bQ;function bQ(e,r,t){var n=t[0],a=t[1],o=t[2],i,l,u,s,f,c,g,x,h,_,T,m;return r===e?(e[12]=r[0]*n+r[4]*a+r[8]*o+r[12],e[13]=r[1]*n+r[5]*a+r[9]*o+r[13],e[14]=r[2]*n+r[6]*a+r[10]*o+r[14],e[15]=r[3]*n+r[7]*a+r[11]*o+r[15]):(i=r[0],l=r[1],u=r[2],s=r[3],f=r[4],c=r[5],g=r[6],x=r[7],h=r[8],_=r[9],T=r[10],m=r[11],e[0]=i,e[1]=l,e[2]=u,e[3]=s,e[4]=f,e[5]=c,e[6]=g,e[7]=x,e[8]=h,e[9]=_,e[10]=T,e[11]=m,e[12]=i*n+f*a+h*o+r[12],e[13]=l*n+c*a+_*o+r[13],e[14]=u*n+g*a+T*o+r[14],e[15]=s*n+x*a+m*o+r[15]),e}});var y9=xe((Txe,g9)=>{g9.exports=xQ;function xQ(e,r,t){var n=t[0],a=t[1],o=t[2];return e[0]=r[0]*n,e[1]=r[1]*n,e[2]=r[2]*n,e[3]=r[3]*n,e[4]=r[4]*a,e[5]=r[5]*a,e[6]=r[6]*a,e[7]=r[7]*a,e[8]=r[8]*o,e[9]=r[9]*o,e[10]=r[10]*o,e[11]=r[11]*o,e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15],e}});var b9=xe((Axe,m9)=>{m9.exports=_Q;function _Q(e,r,t,n){var a=n[0],o=n[1],i=n[2],l=Math.sqrt(a*a+o*o+i*i),u,s,f,c,g,x,h,_,T,m,k,S,b,M,d,w,y,v,A,p,D,E,R,F;return Math.abs(l)<1e-6?null:(l=1/l,a*=l,o*=l,i*=l,u=Math.sin(t),s=Math.cos(t),f=1-s,c=r[0],g=r[1],x=r[2],h=r[3],_=r[4],T=r[5],m=r[6],k=r[7],S=r[8],b=r[9],M=r[10],d=r[11],w=a*a*f+s,y=o*a*f+i*u,v=i*a*f-o*u,A=a*o*f-i*u,p=o*o*f+s,D=i*o*f+a*u,E=a*i*f+o*u,R=o*i*f-a*u,F=i*i*f+s,e[0]=c*w+_*y+S*v,e[1]=g*w+T*y+b*v,e[2]=x*w+m*y+M*v,e[3]=h*w+k*y+d*v,e[4]=c*A+_*p+S*D,e[5]=g*A+T*p+b*D,e[6]=x*A+m*p+M*D,e[7]=h*A+k*p+d*D,e[8]=c*E+_*R+S*F,e[9]=g*E+T*R+b*F,e[10]=x*E+m*R+M*F,e[11]=h*E+k*R+d*F,r!==e&&(e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e)}});var _9=xe((kxe,x9)=>{x9.exports=wQ;function wQ(e,r,t){var n=Math.sin(t),a=Math.cos(t),o=r[4],i=r[5],l=r[6],u=r[7],s=r[8],f=r[9],c=r[10],g=r[11];return r!==e&&(e[0]=r[0],e[1]=r[1],e[2]=r[2],e[3]=r[3],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e[4]=o*a+s*n,e[5]=i*a+f*n,e[6]=l*a+c*n,e[7]=u*a+g*n,e[8]=s*a-o*n,e[9]=f*a-i*n,e[10]=c*a-l*n,e[11]=g*a-u*n,e}});var M9=xe((Sxe,w9)=>{w9.exports=MQ;function MQ(e,r,t){var n=Math.sin(t),a=Math.cos(t),o=r[0],i=r[1],l=r[2],u=r[3],s=r[8],f=r[9],c=r[10],g=r[11];return r!==e&&(e[4]=r[4],e[5]=r[5],e[6]=r[6],e[7]=r[7],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e[0]=o*a-s*n,e[1]=i*a-f*n,e[2]=l*a-c*n,e[3]=u*a-g*n,e[8]=o*n+s*a,e[9]=i*n+f*a,e[10]=l*n+c*a,e[11]=u*n+g*a,e}});var A9=xe((Cxe,T9)=>{T9.exports=TQ;function TQ(e,r,t){var n=Math.sin(t),a=Math.cos(t),o=r[0],i=r[1],l=r[2],u=r[3],s=r[4],f=r[5],c=r[6],g=r[7];return r!==e&&(e[8]=r[8],e[9]=r[9],e[10]=r[10],e[11]=r[11],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e[0]=o*a+s*n,e[1]=i*a+f*n,e[2]=l*a+c*n,e[3]=u*a+g*n,e[4]=s*a-o*n,e[5]=f*a-i*n,e[6]=c*a-l*n,e[7]=g*a-u*n,e}});var S9=xe((Exe,k9)=>{k9.exports=AQ;function AQ(e,r,t){var n,a,o,i=t[0],l=t[1],u=t[2],s=Math.sqrt(i*i+l*l+u*u);return Math.abs(s)<1e-6?null:(s=1/s,i*=s,l*=s,u*=s,n=Math.sin(r),a=Math.cos(r),o=1-a,e[0]=i*i*o+a,e[1]=l*i*o+u*n,e[2]=u*i*o-l*n,e[3]=0,e[4]=i*l*o-u*n,e[5]=l*l*o+a,e[6]=u*l*o+i*n,e[7]=0,e[8]=i*u*o+l*n,e[9]=l*u*o-i*n,e[10]=u*u*o+a,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e)}});var E9=xe((Lxe,C9)=>{C9.exports=kQ;function kQ(e,r,t){var n=r[0],a=r[1],o=r[2],i=r[3],l=n+n,u=a+a,s=o+o,f=n*l,c=n*u,g=n*s,x=a*u,h=a*s,_=o*s,T=i*l,m=i*u,k=i*s;return e[0]=1-(x+_),e[1]=c+k,e[2]=g-m,e[3]=0,e[4]=c-k,e[5]=1-(f+_),e[6]=h+T,e[7]=0,e[8]=g+m,e[9]=h-T,e[10]=1-(f+x),e[11]=0,e[12]=t[0],e[13]=t[1],e[14]=t[2],e[15]=1,e}});var D9=xe((Dxe,L9)=>{L9.exports=SQ;function SQ(e,r){return e[0]=r[0],e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=r[1],e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=r[2],e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var F9=xe((Rxe,R9)=>{R9.exports=CQ;function CQ(e,r){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]=r[0],e[13]=r[1],e[14]=r[2],e[15]=1,e}});var I9=xe((Fxe,P9)=>{P9.exports=EQ;function EQ(e,r){var t=Math.sin(r),n=Math.cos(r);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=n,e[6]=t,e[7]=0,e[8]=0,e[9]=-t,e[10]=n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var N9=xe((Pxe,z9)=>{z9.exports=LQ;function LQ(e,r){var t=Math.sin(r),n=Math.cos(r);return e[0]=n,e[1]=0,e[2]=-t,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=t,e[9]=0,e[10]=n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var B9=xe((Ixe,q9)=>{q9.exports=DQ;function DQ(e,r){var t=Math.sin(r),n=Math.cos(r);return e[0]=n,e[1]=t,e[2]=0,e[3]=0,e[4]=-t,e[5]=n,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}});var U9=xe((zxe,O9)=>{O9.exports=RQ;function RQ(e,r){var t=r[0],n=r[1],a=r[2],o=r[3],i=t+t,l=n+n,u=a+a,s=t*i,f=n*i,c=n*l,g=a*i,x=a*l,h=a*u,_=o*i,T=o*l,m=o*u;return e[0]=1-c-h,e[1]=f+m,e[2]=g-T,e[3]=0,e[4]=f-m,e[5]=1-s-h,e[6]=x+_,e[7]=0,e[8]=g+T,e[9]=x-_,e[10]=1-s-c,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var V9=xe((Nxe,H9)=>{H9.exports=FQ;function FQ(e,r,t,n,a,o,i){var l=1/(t-r),u=1/(a-n),s=1/(o-i);return e[0]=o*2*l,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=o*2*u,e[6]=0,e[7]=0,e[8]=(t+r)*l,e[9]=(a+n)*u,e[10]=(i+o)*s,e[11]=-1,e[12]=0,e[13]=0,e[14]=i*o*2*s,e[15]=0,e}});var Y9=xe((qxe,G9)=>{G9.exports=PQ;function PQ(e,r,t,n,a){var o=1/Math.tan(r/2),i=1/(n-a);return e[0]=o/t,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=o,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=(a+n)*i,e[11]=-1,e[12]=0,e[13]=0,e[14]=2*a*n*i,e[15]=0,e}});var W9=xe((Bxe,X9)=>{X9.exports=IQ;function IQ(e,r,t,n){var a=Math.tan(r.upDegrees*Math.PI/180),o=Math.tan(r.downDegrees*Math.PI/180),i=Math.tan(r.leftDegrees*Math.PI/180),l=Math.tan(r.rightDegrees*Math.PI/180),u=2/(i+l),s=2/(a+o);return e[0]=u,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=s,e[6]=0,e[7]=0,e[8]=-((i-l)*u*.5),e[9]=(a-o)*s*.5,e[10]=n/(t-n),e[11]=-1,e[12]=0,e[13]=0,e[14]=n*t/(t-n),e[15]=0,e}});var J9=xe((Oxe,Z9)=>{Z9.exports=zQ;function zQ(e,r,t,n,a,o,i){var l=1/(r-t),u=1/(n-a),s=1/(o-i);return e[0]=-2*l,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*u,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*s,e[11]=0,e[12]=(r+t)*l,e[13]=(a+n)*u,e[14]=(i+o)*s,e[15]=1,e}});var K9=xe((Uxe,$9)=>{var NQ=j3();$9.exports=qQ;function qQ(e,r,t,n){var a,o,i,l,u,s,f,c,g,x,h=r[0],_=r[1],T=r[2],m=n[0],k=n[1],S=n[2],b=t[0],M=t[1],d=t[2];return Math.abs(h-b)<1e-6&&Math.abs(_-M)<1e-6&&Math.abs(T-d)<1e-6?NQ(e):(f=h-b,c=_-M,g=T-d,x=1/Math.sqrt(f*f+c*c+g*g),f*=x,c*=x,g*=x,a=k*g-S*c,o=S*f-m*g,i=m*c-k*f,x=Math.sqrt(a*a+o*o+i*i),x?(x=1/x,a*=x,o*=x,i*=x):(a=0,o=0,i=0),l=c*i-g*o,u=g*a-f*i,s=f*o-c*a,x=Math.sqrt(l*l+u*u+s*s),x?(x=1/x,l*=x,u*=x,s*=x):(l=0,u=0,s=0),e[0]=a,e[1]=l,e[2]=f,e[3]=0,e[4]=o,e[5]=u,e[6]=c,e[7]=0,e[8]=i,e[9]=s,e[10]=g,e[11]=0,e[12]=-(a*h+o*_+i*T),e[13]=-(l*h+u*_+s*T),e[14]=-(f*h+c*_+g*T),e[15]=1,e)}});var j9=xe((Hxe,Q9)=>{Q9.exports=BQ;function BQ(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]+")"}});var ey=xe((Vxe,eM)=>{eM.exports={create:Q8(),clone:e9(),copy:t9(),identity:j3(),transpose:i9(),invert:l9(),adjoint:u9(),determinant:c9(),multiply:h9(),translate:p9(),scale:y9(),rotate:b9(),rotateX:_9(),rotateY:M9(),rotateZ:A9(),fromRotation:S9(),fromRotationTranslation:E9(),fromScaling:D9(),fromTranslation:F9(),fromXRotation:I9(),fromYRotation:N9(),fromZRotation:B9(),fromQuat:U9(),frustum:V9(),perspective:Y9(),perspectiveFromFieldOfView:W9(),ortho:J9(),lookAt:K9(),str:j9()}});var Rh=xe(on=>{"use strict";var OQ=ey();on.init2dArray=function(e,r){for(var t=new Array(e),n=0;n{"use strict";var UQ=lt(),rM=ll(),HQ=Rh(),VQ=ey();function GQ(e){var r;if(typeof e=="string"){if(r=document.getElementById(e),r===null)throw new Error("No DOM element with id '"+e+"' exists on the page.");return r}else if(e==null)throw new Error("DOM element provided is null or undefined");return e}function YQ(e){var r=UQ.select(e);return r.node()instanceof HTMLElement&&r.size()&&r.classed("js-plotly-plot")}function tM(e){var r=e&&e.parentNode;r&&r.removeChild(e)}function XQ(e,r){nM("global",e,r)}function nM(e,r,t){var n="plotly.js-style-"+e,a=document.getElementById(n);if(!(a&&a.matches(".no-inline-styles"))){a||(a=document.createElement("style"),a.setAttribute("id",n),a.appendChild(document.createTextNode("")),document.head.appendChild(a));var o=a.sheet;o?o.insertRule?o.insertRule(r+"{"+t+"}",0):o.addRule?o.addRule(r,t,0):rM.warn("addStyleRule failed"):rM.warn("Cannot addRelatedStyleRule, probably due to strict CSP...")}}function WQ(e){var r="plotly.js-style-"+e,t=document.getElementById(r);t&&tM(t)}function ZQ(e,r,t,n,a,o){var i=n.split(":"),l=a.split(":"),u="data-btn-style-event-added";o||(o=document),o.querySelectorAll(e).forEach(function(s){s._hoverStyle={activeStyleParts:i,inactiveStyleParts:l},s.getAttribute(u)||(s.addEventListener("mouseenter",function(){var f=this._hoverStyle,c=this.querySelector(t);c&&(c.style[f.activeStyleParts[0]]=f.activeStyleParts[1])}),s.addEventListener("mouseleave",function(){var f=this._hoverStyle,c=this.querySelector(t);c&&(r&&this.matches(r)?c.style[f.activeStyleParts[0]]=f.activeStyleParts[1]:c.style[f.inactiveStyleParts[0]]=f.inactiveStyleParts[1])}),s.setAttribute(u,!0))})}function JQ(e){var r=iM(e),t=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];return r.forEach(function(n){var a=aM(n);if(a){var o=HQ.convertCssMatrix(a);t=VQ.multiply(t,t,o)}}),t}function aM(e){var r=window.getComputedStyle(e,null),t=r.getPropertyValue("-webkit-transform")||r.getPropertyValue("-moz-transform")||r.getPropertyValue("-ms-transform")||r.getPropertyValue("-o-transform")||r.getPropertyValue("transform");return t==="none"?null:t.replace("matrix","").replace("3d","").slice(1,-1).split(",").map(function(n){return+n})}function iM(e){for(var r=[];$Q(e);)r.push(e),e=e.parentNode,typeof ShadowRoot=="function"&&e instanceof ShadowRoot&&(e=e.host);return r}function $Q(e){return e&&(e instanceof Element||e instanceof HTMLElement)}function KQ(e,r){return e&&r&&e.top===r.top&&e.left===r.left&&e.right===r.right&&e.bottom===r.bottom}oM.exports={getGraphDiv:GQ,isPlotDiv:YQ,removeElement:tM,addStyleRule:XQ,addRelatedStyleRule:nM,deleteRelatedStyleRule:WQ,setStyleOnHover:ZQ,getFullTransformMatrix:JQ,getElementTransformMatrix:aM,getElementAndAncestors:iM,equalDomRects:KQ}});var If=xe((Xxe,lM)=>{"use strict";lM.exports={mode:{valType:"enumerated",dflt:"afterall",values:["immediate","next","afterall"]},direction:{valType:"enumerated",values:["forward","reverse"],dflt:"forward"},fromcurrent:{valType:"boolean",dflt:!1},frame:{duration:{valType:"number",min:0,dflt:500},redraw:{valType:"boolean",dflt:!0}},transition:{duration:{valType:"number",min:0,dflt:500,editType:"none"},easing:{valType:"enumerated",dflt:"cubic-in-out",values:["linear","quad","cubic","sin","exp","circle","elastic","back","bounce","linear-in","quad-in","cubic-in","sin-in","exp-in","circle-in","elastic-in","back-in","bounce-in","linear-out","quad-out","cubic-out","sin-out","exp-out","circle-out","elastic-out","back-out","bounce-out","linear-in-out","quad-in-out","cubic-in-out","sin-in-out","exp-in-out","circle-in-out","elastic-in-out","back-in-out","bounce-in-out"],editType:"none"},ordering:{valType:"enumerated",values:["layout first","traces first"],dflt:"layout first",editType:"none"}}}});var ua=xe((Wxe,dM)=>{"use strict";var uM=Rt().extendFlat,QQ=ss(),fM={valType:"flaglist",extras:["none"],flags:["calc","clearAxisTypes","plot","style","markerSize","colorbars"]},cM={valType:"flaglist",extras:["none"],flags:["calc","plot","legend","ticks","axrange","layoutstyle","modebar","camera","arraydraw","colorbars"]},jQ=fM.flags.slice().concat(["fullReplot"]),ej=cM.flags.slice().concat("layoutReplot");dM.exports={traces:fM,layout:cM,traceFlags:function(){return sM(jQ)},layoutFlags:function(){return sM(ej)},update:function(e,r){var t=r.editType;if(t&&t!=="none")for(var n=t.split("+"),a=0;a{"use strict";ry.dash={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",editType:"style"};ry.pattern={shape:{valType:"enumerated",values:["","/","\\","x","-","|","+","."],dflt:"",arrayOk:!0,editType:"style"},path:{valType:"string",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"}});var ty={};Ht(ty,{DATE_FORMAT_LINK:()=>tj,FORMAT_LINK:()=>rj});var rj,tj,ny=Ut(()=>{"use strict";rj="https://github.com/d3/d3-format/tree/v1.4.5#d3-format",tj="https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format"});var Si=xe(N0=>{"use strict";var{DATE_FORMAT_LINK:nj,FORMAT_LINK:aj}=(ny(),or(ty)),ij=["Variables that can't be found will be replaced with the specifier.",'For example, a template of "data: %{x}, %{y}" will result in a value of "data: 1, %{y}" if x is 1 and y is missing.',"Variables with an undefined value will be replaced with the fallback value."].join(" ");function oj({supportOther:e}={}){return["Variables are inserted using %{variable},",'for example "y: %{y}"'+(e?" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown.":"."),`Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}".`,aj,"for details on the formatting syntax.",`Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}".`,nj,"for details on the date formatting syntax.",ij].join(" ")}N0.templateFormatStringDescription=oj;N0.hovertemplateAttrs=({editType:e="none",arrayOk:r}={},t={})=>wt({valType:"string",dflt:"",editType:e},r!==!1?{arrayOk:!0}:{});N0.texttemplateAttrs=({editType:e="calc",arrayOk:r}={},t={})=>wt({valType:"string",dflt:"",editType:e},r!==!1?{arrayOk:!0}:{});N0.shapeTexttemplateAttrs=({editType:e="arraydraw",newshape:r}={},t={})=>({valType:"string",dflt:"",editType:e});N0.templatefallbackAttrs=({editType:e="none"}={})=>({valType:"any",dflt:"-",editType:e})});var Ih=xe((Kxe,xM)=>{"use strict";function cl(e,r){return r?r.d2l(e):e}function pM(e,r){return r?r.l2d(e):e}function lj(e){return e.x0}function sj(e){return e.x1}function uj(e){return e.y0}function fj(e){return e.y1}function gM(e){return e.x0shift||0}function yM(e){return e.x1shift||0}function mM(e){return e.y0shift||0}function bM(e){return e.y1shift||0}function Fh(e,r){return cl(e.x1,r)+yM(e)-cl(e.x0,r)-gM(e)}function Ph(e,r,t){return cl(e.y1,t)+bM(e)-cl(e.y0,t)-mM(e)}function cj(e,r){return Math.abs(Fh(e,r))}function vj(e,r,t){return Math.abs(Ph(e,r,t))}function hj(e,r,t){return e.type!=="line"?void 0:Math.sqrt(Math.pow(Fh(e,r),2)+Math.pow(Ph(e,r,t),2))}function dj(e,r){return pM((cl(e.x1,r)+yM(e)+cl(e.x0,r)+gM(e))/2,r)}function pj(e,r,t){return pM((cl(e.y1,t)+bM(e)+cl(e.y0,t)+mM(e))/2,t)}function gj(e,r,t){return e.type!=="line"?void 0:Ph(e,r,t)/Fh(e,r)}var yj=["x0","x1","y0","y1","dy","height","ycenter"],mj=["x0","x1","y0","y1","dx","width","xcenter"];xM.exports={x0:lj,x1:sj,y0:uj,y1:fj,slope:gj,dx:Fh,dy:Ph,width:cj,height:vj,length:hj,xcenter:dj,ycenter:pj,simpleXVariables:yj,simpleYVariables:mj}});var MM=xe((Qxe,wM)=>{"use strict";var bj=ua().overrideAll,_s=Zn(),_M=Wn(),xj=fl().dash,vl=Rt().extendFlat,{shapeTexttemplateAttrs:_j,templatefallbackAttrs:wj}=Si(),Mj=Ih();wM.exports=bj({newshape:{visible:vl({},_s.visible,{}),showlegend:{valType:"boolean",dflt:!1},legend:vl({},_s.legend,{}),legendgroup:vl({},_s.legendgroup,{}),legendgrouptitle:{text:vl({},_s.legendgrouptitle.text,{}),font:_M({})},legendrank:vl({},_s.legendrank,{}),legendwidth:vl({},_s.legendwidth,{}),line:{color:{valType:"color"},width:{valType:"number",min:0,dflt:4},dash:vl({},xj,{dflt:"solid"})},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd"},opacity:{valType:"number",min:0,max:1,dflt:1},layer:{valType:"enumerated",values:["below","above","between"],dflt:"above"},drawdirection:{valType:"enumerated",values:["ortho","horizontal","vertical","diagonal"],dflt:"diagonal"},name:vl({},_s.name,{}),label:{text:{valType:"string",dflt:""},texttemplate:_j({newshape:!0},{keys:Object.keys(Mj)}),texttemplatefallback:wj({editType:"arraydraw"}),font:_M({}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"]},textangle:{valType:"angle",dflt:"auto"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto"},yanchor:{valType:"enumerated",values:["top","middle","bottom"]},padding:{valType:"number",dflt:3,min:0}}},activeshape:{fillcolor:{valType:"color",dflt:"rgb(255,0,255)",description:"Sets the color filling the active shape' interior."},opacity:{valType:"number",min:0,max:1,dflt:.5}}},"none","from-root")});var AM=xe((jxe,TM)=>{"use strict";var Tj=fl().dash,Aj=Rt().extendFlat;TM.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:Aj({},Tj,{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"}}});var zh=xe((e4e,kM)=>{"use strict";kM.exports=function(e){var r=e.editType;return{t:{valType:"number",dflt:0,editType:r},r:{valType:"number",dflt:0,editType:r},b:{valType:"number",dflt:0,editType:r},l:{valType:"number",dflt:0,editType:r},editType:r}}});var q0=xe((r4e,LM)=>{"use strict";var ay=Wn(),kj=If(),Nh=to(),SM=MM(),CM=AM(),Sj=zh(),EM=Rt().extendFlat,qh=ay({editType:"calc"});qh.family.dflt='"Open Sans", verdana, arial, sans-serif';qh.size.dflt=12;qh.color.dflt=Nh.defaultLine;LM.exports={font:qh,title:{text:{valType:"string",editType:"layoutstyle"},font:ay({editType:"layoutstyle"}),subtitle:{text:{valType:"string",editType:"layoutstyle"},font:ay({editType:"layoutstyle"}),editType:"layoutstyle"},xref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle"},yref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle"},x:{valType:"number",min:0,max:1,dflt:.5,editType:"layoutstyle"},y:{valType:"number",min:0,max:1,dflt:"auto",editType:"layoutstyle"},xanchor:{valType:"enumerated",dflt:"auto",values:["auto","left","center","right"],editType:"layoutstyle"},yanchor:{valType:"enumerated",dflt:"auto",values:["auto","top","middle","bottom"],editType:"layoutstyle"},pad:EM(Sj({editType:"layoutstyle"}),{}),automargin:{valType:"boolean",dflt:!1,editType:"plot"},editType:"layoutstyle"},uniformtext:{mode:{valType:"enumerated",values:[!1,"hide","show"],dflt:!1,editType:"plot"},minsize:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"},autosize:{valType:"boolean",dflt:!1,editType:"none"},width:{valType:"number",min:10,dflt:700,editType:"plot"},height:{valType:"number",min:10,dflt:450,editType:"plot"},minreducedwidth:{valType:"number",min:2,dflt:64,editType:"plot"},minreducedheight:{valType:"number",min:2,dflt:64,editType:"plot"},margin:{l:{valType:"number",min:0,dflt:80,editType:"plot"},r:{valType:"number",min:0,dflt:80,editType:"plot"},t:{valType:"number",min:0,dflt:100,editType:"plot"},b:{valType:"number",min:0,dflt:80,editType:"plot"},pad:{valType:"number",min:0,dflt:0,editType:"plot"},autoexpand:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},computed:{valType:"any",editType:"none"},paper_bgcolor:{valType:"color",dflt:Nh.background,editType:"plot"},plot_bgcolor:{valType:"color",dflt:Nh.background,editType:"layoutstyle"},autotypenumbers:{valType:"enumerated",values:["convert types","strict"],dflt:"convert types",editType:"calc"},separators:{valType:"string",editType:"plot"},showlegend:{valType:"boolean",editType:"legend"},colorway:{valType:"colorlist",dflt:Nh.defaults,editType:"calc"},datarevision:{valType:"any",editType:"calc"},uirevision:{valType:"any",editType:"none"},editrevision:{valType:"any",editType:"none"},selectionrevision:{valType:"any",editType:"none"},template:{valType:"any",editType:"calc"},newshape:SM.newshape,activeshape:SM.activeshape,newselection:CM.newselection,activeselection:CM.activeselection,meta:{valType:"any",arrayOk:!0,editType:"plot"},transition:EM({},kj.transition,{editType:"none"})}});var DM=xe(()=>{(function(){if(!document.getElementById("9f215cf04c5486422605d13261cb87401f4e7763b6296af81e98efbc0130da53")){var e=document.createElement("style");e.id="9f215cf04c5486422605d13261cb87401f4e7763b6296af81e98efbc0130da53",e.textContent='.maplibregl-map{font:12px/20px Helvetica Neue,Arial,Helvetica,sans-serif;overflow:hidden;position:relative;-webkit-tap-highlight-color:rgb(0 0 0/0);-webkit-touch-callout:none}.maplibregl-canvas{position:absolute;left:0;top:0}.maplibregl-map:fullscreen{width:100%;height:100%}.maplibregl-ctrl-group button.maplibregl-ctrl-compass{touch-action:none}.maplibregl-canvas-container.maplibregl-interactive,.maplibregl-ctrl-group button.maplibregl-ctrl-compass{cursor:grab;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-canvas-container.maplibregl-interactive.maplibregl-track-pointer{cursor:pointer}.maplibregl-canvas-container.maplibregl-interactive:active,.maplibregl-ctrl-group button.maplibregl-ctrl-compass:active{cursor:grabbing}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-canvas-container.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:pinch-zoom}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:none}.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures,.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-ctrl-bottom-left,.maplibregl-ctrl-bottom-right,.maplibregl-ctrl-top-left,.maplibregl-ctrl-top-right{position:absolute;pointer-events:none;z-index:2}.maplibregl-ctrl-top-left{top:0;left:0}.maplibregl-ctrl-top-right{top:0;right:0}.maplibregl-ctrl-bottom-left{bottom:0;left:0}.maplibregl-ctrl-bottom-right{right:0;bottom:0}.maplibregl-ctrl{clear:both;pointer-events:auto;transform:translate(0)}.maplibregl-ctrl-top-left .maplibregl-ctrl{margin:10px 0 0 10px;float:left}.maplibregl-ctrl-top-right .maplibregl-ctrl{margin:10px 10px 0 0;float:right}.maplibregl-ctrl-bottom-left .maplibregl-ctrl{margin:0 0 10px 10px;float:left}.maplibregl-ctrl-bottom-right .maplibregl-ctrl{margin:0 10px 10px 0;float:right}.maplibregl-ctrl-group{border-radius:4px;background:#fff}.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px rgba(0,0,0,.1)}@media (forced-colors:active){.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px ButtonText}}.maplibregl-ctrl-group button{width:29px;height:29px;display:block;padding:0;outline:none;border:0;box-sizing:border-box;background-color:transparent;cursor:pointer}.maplibregl-ctrl button{-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-ctrl-group button+button{border-top:1px solid #ddd}.maplibregl-ctrl button .maplibregl-ctrl-icon{display:block;width:100%;height:100%;background-repeat:no-repeat;background-position:50%}@media (forced-colors:active){.maplibregl-ctrl-icon{background-color:transparent}.maplibregl-ctrl-group button+button{border-top:1px solid ButtonText}}.maplibregl-ctrl button::-moz-focus-inner{border:0;padding:0}.maplibregl-ctrl-attrib-button:focus,.maplibregl-ctrl-group button:focus{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl button:disabled{cursor:not-allowed}.maplibregl-ctrl button:disabled .maplibregl-ctrl-icon{opacity:.25}@media (hover:hover){.maplibregl-ctrl button:not(:disabled):hover{background-color:rgba(0,0,0,.05)}}.maplibregl-ctrl button:not(:disabled):active{background-color:rgba(0,0,0,.05)}.maplibregl-ctrl-group button:focus:focus-visible{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl-group button:focus:not(:focus-visible){box-shadow:none}.maplibregl-ctrl-group button:focus:first-child{border-radius:4px 4px 0 0}.maplibregl-ctrl-group button:focus:last-child{border-radius:0 0 4px 4px}.maplibregl-ctrl-group button:focus:only-child{border-radius:inherit}.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M10%2013c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h9c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M14.5%208.5c-.75%200-1.5.75-1.5%201.5v3h-3c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h3v3c0%20.75.75%201.5%201.5%201.5S16%2019.75%2016%2019v-3h3c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013h-3v-3c0-.75-.75-1.5-1.5-1.5%22%2F%3E%3C%2Fsvg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M10%2013c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h9c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M14.5%208.5c-.75%200-1.5.75-1.5%201.5v3h-3c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h3v3c0%20.75.75%201.5%201.5%201.5S16%2019.75%2016%2019v-3h3c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013h-3v-3c0-.75-.75-1.5-1.5-1.5%22%2F%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M10%2013c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h9c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M14.5%208.5c-.75%200-1.5.75-1.5%201.5v3h-3c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h3v3c0%20.75.75%201.5%201.5%201.5S16%2019.75%2016%2019v-3h3c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013h-3v-3c0-.75-.75-1.5-1.5-1.5%22%2F%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M24%2016v5.5c0%201.75-.75%202.5-2.5%202.5H16v-1l3-1.5-4-5.5%201-1%205.5%204%201.5-3zM6%2016l1.5%203%205.5-4%201%201-4%205.5%203%201.5v1H7.5C5.75%2024%205%2023.25%205%2021.5V16zm7-11v1l-3%201.5%204%205.5-1%201-5.5-4L6%2013H5V7.5C5%205.75%205.75%205%207.5%205zm11%202.5c0-1.75-.75-2.5-2.5-2.5H16v1l3%201.5-4%205.5%201%201%205.5-4%201.5%203h1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M18.5%2016c-1.75%200-2.5.75-2.5%202.5V24h1l1.5-3%205.5%204%201-1-4-5.5%203-1.5v-1zM13%2018.5c0-1.75-.75-2.5-2.5-2.5H5v1l3%201.5L4%2024l1%201%205.5-4%201.5%203h1zm3-8c0%201.75.75%202.5%202.5%202.5H24v-1l-3-1.5L25%205l-1-1-5.5%204L17%205h-1zM10.5%2013c1.75%200%202.5-.75%202.5-2.5V5h-1l-1.5%203L5%204%204%205l4%205.5L5%2012v1z%22%2F%3E%3C%2Fsvg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M24%2016v5.5c0%201.75-.75%202.5-2.5%202.5H16v-1l3-1.5-4-5.5%201-1%205.5%204%201.5-3zM6%2016l1.5%203%205.5-4%201%201-4%205.5%203%201.5v1H7.5C5.75%2024%205%2023.25%205%2021.5V16zm7-11v1l-3%201.5%204%205.5-1%201-5.5-4L6%2013H5V7.5C5%205.75%205.75%205%207.5%205zm11%202.5c0-1.75-.75-2.5-2.5-2.5H16v1l3%201.5-4%205.5%201%201%205.5-4%201.5%203h1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M18.5%2016c-1.75%200-2.5.75-2.5%202.5V24h1l1.5-3%205.5%204%201-1-4-5.5%203-1.5v-1zM13%2018.5c0-1.75-.75-2.5-2.5-2.5H5v1l3%201.5L4%2024l1%201%205.5-4%201.5%203h1zm3-8c0%201.75.75%202.5%202.5%202.5H24v-1l-3-1.5L25%205l-1-1-5.5%204L17%205h-1zM10.5%2013c1.75%200%202.5-.75%202.5-2.5V5h-1l-1.5%203L5%204%204%205l4%205.5L5%2012v1z%22%2F%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M24%2016v5.5c0%201.75-.75%202.5-2.5%202.5H16v-1l3-1.5-4-5.5%201-1%205.5%204%201.5-3zM6%2016l1.5%203%205.5-4%201%201-4%205.5%203%201.5v1H7.5C5.75%2024%205%2023.25%205%2021.5V16zm7-11v1l-3%201.5%204%205.5-1%201-5.5-4L6%2013H5V7.5C5%205.75%205.75%205%207.5%205zm11%202.5c0-1.75-.75-2.5-2.5-2.5H16v1l3%201.5-4%205.5%201%201%205.5-4%201.5%203h1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M18.5%2016c-1.75%200-2.5.75-2.5%202.5V24h1l1.5-3%205.5%204%201-1-4-5.5%203-1.5v-1zM13%2018.5c0-1.75-.75-2.5-2.5-2.5H5v1l3%201.5L4%2024l1%201%205.5-4%201.5%203h1zm3-8c0%201.75.75%202.5%202.5%202.5H24v-1l-3-1.5L25%205l-1-1-5.5%204L17%205h-1zM10.5%2013c1.75%200%202.5-.75%202.5-2.5V5h-1l-1.5%203L5%204%204%205l4%205.5L5%2012v1z%22%2F%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22m10.5%2014%204-8%204%208z%22%2F%3E%3Cpath%20fill%3D%22%23ccc%22%20d%3D%22m10.5%2016%204%208%204-8z%22%2F%3E%3C%2Fsvg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22m10.5%2014%204-8%204%208z%22%2F%3E%3Cpath%20fill%3D%22%23ccc%22%20d%3D%22m10.5%2016%204%208%204-8z%22%2F%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22m10.5%2014%204-8%204%208z%22%2F%3E%3Cpath%20fill%3D%22%23ccc%22%20d%3D%22m10.5%2016%204%208%204-8z%22%2F%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-globe .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2222%22%20height%3D%2222%22%20fill%3D%22none%22%20stroke%3D%22%23333%22%20viewBox%3D%220%200%2022%2022%22%3E%3Ccircle%20cx%3D%2211%22%20cy%3D%2211%22%20r%3D%228.5%22%2F%3E%3Cpath%20d%3D%22M17.5%2011c0%204.819-3.02%208.5-6.5%208.5S4.5%2015.819%204.5%2011%207.52%202.5%2011%202.5s6.5%203.681%206.5%208.5Z%22%2F%3E%3Cpath%20d%3D%22M13.5%2011c0%202.447-.331%204.64-.853%206.206-.262.785-.562%201.384-.872%201.777-.314.399-.58.517-.775.517s-.461-.118-.775-.517c-.31-.393-.61-.992-.872-1.777C8.831%2015.64%208.5%2013.446%208.5%2011s.331-4.64.853-6.206c.262-.785.562-1.384.872-1.777.314-.399.58-.517.775-.517s.461.118.775.517c.31.393.61.992.872%201.777.522%201.565.853%203.76.853%206.206Z%22%2F%3E%3Cpath%20d%3D%22M11%207.5c-1.909%200-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3%201.3%200%200%201-.224-.138q.07-.058.224-.138c.299-.151.763-.302%201.379-.434C7.378%205.666%209.091%205.5%2011%205.5s3.622.166%204.845.428c.616.132%201.08.283%201.379.434.105.053.177.1.224.138q-.07.058-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm0%209c-1.909%200-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3%201.3%200%200%201-.224-.138%201.3%201.3%200%200%201%20.224-.138c.299-.151.763-.302%201.379-.434C7.378%2014.666%209.091%2014.5%2011%2014.5s3.622.166%204.845.428c.616.132%201.08.283%201.379.434.105.053.177.1.224.138a1.3%201.3%200%200%201-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm0-4c-2.46%200-4.672-.222-6.255-.574-.796-.177-1.406-.38-1.805-.59a1.5%201.5%200%200%201-.39-.272.3.3%200%200%201-.047-.064.3.3%200%200%201%20.048-.064c.066-.073.189-.167.389-.272.399-.21%201.009-.413%201.805-.59C6.328%209.722%208.54%209.5%2011%209.5s4.672.222%206.256.574c.795.177%201.405.38%201.804.59.2.105.323.2.39.272a.3.3%200%200%201%20.047.064.3.3%200%200%201-.048.064%201.4%201.4%200%200%201-.389.272c-.399.21-1.009.413-1.804.59-1.584.352-3.796.574-6.256.574Zm-8.501-1.51v.002zm0%20.018v.002zm17.002.002v-.002zm0-.018v-.002z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-globe-enabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2222%22%20height%3D%2222%22%20fill%3D%22none%22%20stroke%3D%22%2333b5e5%22%20viewBox%3D%220%200%2022%2022%22%3E%3Ccircle%20cx%3D%2211%22%20cy%3D%2211%22%20r%3D%228.5%22%2F%3E%3Cpath%20d%3D%22M17.5%2011c0%204.819-3.02%208.5-6.5%208.5S4.5%2015.819%204.5%2011%207.52%202.5%2011%202.5s6.5%203.681%206.5%208.5Z%22%2F%3E%3Cpath%20d%3D%22M13.5%2011c0%202.447-.331%204.64-.853%206.206-.262.785-.562%201.384-.872%201.777-.314.399-.58.517-.775.517s-.461-.118-.775-.517c-.31-.393-.61-.992-.872-1.777C8.831%2015.64%208.5%2013.446%208.5%2011s.331-4.64.853-6.206c.262-.785.562-1.384.872-1.777.314-.399.58-.517.775-.517s.461.118.775.517c.31.393.61.992.872%201.777.522%201.565.853%203.76.853%206.206Z%22%2F%3E%3Cpath%20d%3D%22M11%207.5c-1.909%200-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3%201.3%200%200%201-.224-.138q.07-.058.224-.138c.299-.151.763-.302%201.379-.434C7.378%205.666%209.091%205.5%2011%205.5s3.622.166%204.845.428c.616.132%201.08.283%201.379.434.105.053.177.1.224.138q-.07.058-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm0%209c-1.909%200-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3%201.3%200%200%201-.224-.138%201.3%201.3%200%200%201%20.224-.138c.299-.151.763-.302%201.379-.434C7.378%2014.666%209.091%2014.5%2011%2014.5s3.622.166%204.845.428c.616.132%201.08.283%201.379.434.105.053.177.1.224.138a1.3%201.3%200%200%201-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm0-4c-2.46%200-4.672-.222-6.255-.574-.796-.177-1.406-.38-1.805-.59a1.5%201.5%200%200%201-.39-.272.3.3%200%200%201-.047-.064.3.3%200%200%201%20.048-.064c.066-.073.189-.167.389-.272.399-.21%201.009-.413%201.805-.59C6.328%209.722%208.54%209.5%2011%209.5s4.672.222%206.256.574c.795.177%201.405.38%201.804.59.2.105.323.2.39.272a.3.3%200%200%201%20.047.064.3.3%200%200%201-.048.064%201.4%201.4%200%200%201-.389.272c-.399.21-1.009.413-1.804.59-1.584.352-3.796.574-6.256.574Zm-8.501-1.51v.002zm0%20.018v.002zm17.002.002v-.002zm0-.018v-.002z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-terrain .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2222%22%20height%3D%2222%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2022%2022%22%3E%3Cpath%20d%3D%22m1.754%2013.406%204.453-4.851%203.09%203.09%203.281%203.277.969-.969-3.309-3.312%203.844-4.121%206.148%206.886h1.082v-.855l-7.207-8.07-4.84%205.187L6.169%206.57l-5.48%205.965v.871ZM.688%2016.844h20.625v1.375H.688Zm0%200%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-terrain-enabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2222%22%20height%3D%2222%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2022%2022%22%3E%3Cpath%20d%3D%22m1.754%2013.406%204.453-4.851%203.09%203.09%203.281%203.277.969-.969-3.309-3.312%203.844-4.121%206.148%206.886h1.082v-.855l-7.207-8.07-4.84%205.187L6.169%206.57l-5.48%205.965v.871ZM.688%2016.844h20.625v1.375H.688Zm0%200%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23aaa%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3Cpath%20fill%3D%22red%22%20d%3D%22m14%205%201%201-9%209-1-1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23e58978%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23e54e33%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-waiting .maplibregl-ctrl-icon{animation:maplibregl-spin 2s linear infinite}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23999%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3Cpath%20fill%3D%22red%22%20d%3D%22m14%205%201%201-9%209-1-1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23e58978%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23e54e33%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23666%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3Cpath%20fill%3D%22red%22%20d%3D%22m14%205%201%201-9%209-1-1z%22%2F%3E%3C%2Fsvg%3E")}}@keyframes maplibregl-spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}a.maplibregl-ctrl-logo{width:88px;height:23px;margin:0 0 -4px -4px;display:block;background-repeat:no-repeat;cursor:pointer;overflow:hidden;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2288%22%20height%3D%2223%22%20fill%3D%22none%22%3E%3Cpath%20fill%3D%22%23000%22%20fill-opacity%3D%22.4%22%20fill-rule%3D%22evenodd%22%20d%3D%22M17.408%2016.796h-1.827l2.501-12.095h.198l3.324%206.533.988%202.19.988-2.19%203.258-6.533h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.929%205.644h-.098l-2.914-5.644-.757-1.71-.345%201.71zm1.958-3.42-.726%203.663a1.255%201.255%200%200%201-1.232%201.011h-1.827a1.255%201.255%200%200%201-1.229-1.509l2.501-12.095a1.255%201.255%200%200%201%201.23-1.001h.197a1.25%201.25%200%200%201%201.12.685l3.19%206.273%203.125-6.263a1.25%201.25%200%200%201%201.123-.695h.181a1.255%201.255%200%200%201%201.227.991l1.443%206.71a5%205%200%200%201%20.314-.787l.009-.016a4.6%204.6%200%200%201%201.777-1.887c.782-.46%201.668-.667%202.611-.667a4.6%204.6%200%200%201%201.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255%201.255%200%200%201%201.212.925%201.255%201.255%200%200%201%201.212-.925h1.711c.284%200%20.545.094.755.252.613-.3%201.312-.45%202.075-.45%201.356%200%202.557.445%203.482%201.4q.47.48.763%201.064V4.701a1.255%201.255%200%200%201%201.255-1.255h1.86A1.255%201.255%200%200%201%2054.44%204.7v9.194h2.217c.19%200%20.37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42%202.42%200%200%201-.682-1.71c0-.665.267-1.253.735-1.7a2.45%202.45%200%200%201%201.722-.674%202.43%202.43%200%200%201%201.705.675q.318.302.504.683V4.7a1.255%201.255%200%200%201%201.255-1.255h1.744A1.255%201.255%200%200%201%2065.812%204.7v3.335a4.8%204.8%200%200%201%201.526-.246c.938%200%201.817.214%202.59.69a4.47%204.47%200%200%201%201.67%201.743v-.98a1.255%201.255%200%200%201%201.256-1.256h1.777c.233%200%20.451.064.639.174a3.4%203.4%200%200%201%201.567-.372c.346%200%20.861.02%201.285.232a1.25%201.25%200%200%201%20.689%201.004%204.7%204.7%200%200%201%20.853-.588c.795-.44%201.675-.647%202.61-.647%201.385%200%202.65.39%203.525%201.396.836.938%201.168%202.173%201.168%203.528q-.001.515-.056%201.051a1.255%201.255%200%200%201-.947%201.09l.408.952a1.255%201.255%200%200%201-.477%201.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06%200-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8%205.8%200%200%201-.548-2.512q0-.429.053-.843a1.3%201.3%200%200%201-.333-.086l-.166-.004c-.223%200-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255%201.255%200%200%201-1.256%201.256h-1.777a1.255%201.255%200%200%201-1.256-1.256V15.69l-.032.057a4.8%204.8%200%200%201-1.86%201.833%205.04%205.04%200%200%201-2.484.634%204.5%204.5%200%200%201-1.935-.424%201.25%201.25%200%200%201-.764.258h-1.71a1.255%201.255%200%200%201-1.256-1.255V7.687a2.4%202.4%200%200%201-.428.625c.253.23.412.561.412.93v7.553a1.255%201.255%200%200%201-1.256%201.255h-1.843a1.25%201.25%200%200%201-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255%201.255%200%200%201-1.256-1.255v-1.251l-.061.117a4.7%204.7%200%200%201-1.782%201.884%204.77%204.77%200%200%201-2.485.67%205.6%205.6%200%200%201-1.485-.188l.009%202.764a1.255%201.255%200%200%201-1.255%201.259h-1.729a1.255%201.255%200%200%201-1.255-1.255v-3.537a1.255%201.255%200%200%201-1.167.793h-1.679a1.25%201.25%200%200%201-.77-.263%204.5%204.5%200%200%201-1.945.429c-.885%200-1.724-.21-2.495-.632l-.017-.01a5%205%200%200%201-1.081-.836%201.255%201.255%200%200%201-1.254%201.312h-1.81a1.255%201.255%200%200%201-1.228-.99l-.782-3.625-2.044%203.939a1.25%201.25%200%200%201-1.115.676h-.098a1.25%201.25%200%200%201-1.116-.68l-2.061-3.994zM35.92%2016.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033%201.332h1.678V9.242h-1.694l-.033%201.267q-.133-.329-.526-.658l-.032-.028a3.2%203.2%200%200%200-.668-.428l-.27-.12a3.3%203.3%200%200%200-1.235-.23q-1.136-.001-1.974.493a3.36%203.36%200%200%200-1.3%201.382q-.445.89-.444%202.074%200%201.2.51%202.107a3.8%203.8%200%200%200%201.382%201.381%203.9%203.9%200%200%200%201.893.477q.795%200%201.455-.33zm-2.789-5.38q-.576.675-.575%201.762%200%201.102.559%201.794.576.675%201.645.675a2.25%202.25%200%200%200%20.934-.19%202.2%202.2%200%200%200%20.468-.29l.178-.161a2.2%202.2%200%200%200%20.397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2%202.2%200%200%200-.633-.709l-.13-.086-.047-.028a2.1%202.1%200%200%200-1.073-.285q-1.052%200-1.629.692zm2.316%202.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96%200%200%200-.353-.389.85.85%200%200%200-.464-.127c-.4%200-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945%200%20.506.122.801.27.99.097.11.266.224.68.224.303%200%20.504-.09.687-.269zm7.545%201.705a2.6%202.6%200%200%200%20.331.423q.319.33.755.548l.173.074q.65.255%201.49.255%201.02%200%201.844-.493a3.45%203.45%200%200%200%201.316-1.4q.493-.904.493-2.089%200-1.909-.988-2.913-.988-1.02-2.584-1.02-.898%200-1.575.347a3%203%200%200%200-.415.262l-.199.166a3.4%203.4%200%200%200-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296%201.119.297%201.07%200%201.645-.675.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.435%200-.835.16a2%202%200%200%200-.284.136%202%202%200%200%200-.363.254%202.2%202.2%200%200%200-.46.569l-.082.162a2.6%202.6%200%200%200-.213%201.072v.115q0%20.707.296%201.267l.135.211zm.964-.818a1.1%201.1%200%200%200%20.367.385.94.94%200%200%200%20.476.118c.423%200%20.59-.117.687-.23.159-.194.28-.478.28-.95%200-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1%201%200%200%200-.503.135l-.012.007a.86.86%200%200%200-.335.343c-.073.133-.132.324-.132.614v.115a1.4%201.4%200%200%200%20.14.66zm15.7-6.222q.347-.346.346-.856a1.05%201.05%200%200%200-.345-.79%201.18%201.18%200%200%200-.84-.329q-.51%200-.855.33a1.05%201.05%200%200%200-.346.79q0%20.51.346.855.345.346.856.346.51%200%20.839-.346zm4.337%209.314.033-1.332q.191.403.59.747l.098.081a4%204%200%200%200%20.316.224l.223.122a3.2%203.2%200%200%200%201.44.322%203.8%203.8%200%200%200%201.875-.477%203.5%203.5%200%200%200%201.382-1.366q.527-.89.526-2.09%200-1.184-.444-2.073a3.24%203.24%200%200%200-1.283-1.399q-.823-.51-1.942-.51a3.5%203.5%200%200%200-1.527.344l-.086.043-.165.09a3%203%200%200%200-.33.214q-.432.315-.656.707a2%202%200%200%200-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5%202.5%200%200%200%20.566.7q.117.098.245.18l.144.08a2.1%202.1%200%200%200%20.975.232q1.07%200%201.645-.675.576-.69.576-1.778%200-1.102-.576-1.777-.56-.691-1.645-.692a2.2%202.2%200%200%200-1.015.235q-.22.113-.415.282l-.15.142a2.1%202.1%200%200%200-.42.594q-.223.479-.223%201.1v.115q0%20.705.293%201.26zm2.616-.293c.157-.191.28-.479.28-.967%200-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87%200%200%200-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0%20.285.057.499.144.669a1.1%201.1%200%200%200%20.367.405c.137.082.28.123.455.123.423%200%20.59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493%200%20.642.099l.247-1.794q-.196-.099-.717-.099a2.3%202.3%200%200%200-.545.063%202%202%200%200%200-.411.148%202.2%202.2%200%200%200-.4.249%202.5%202.5%200%200%200-.485.499%202.7%202.7%200%200%200-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5%201.5%200%200%201%20.466-.636%202.5%202.5%200%200%201%20.399-.253%202%202%200%200%201%20.224-.099zm9.784%202.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46%203.46%200%200%200-1.4%201.382q-.493.906-.493%202.106%200%201.07.428%201.975.428.89%201.332%201.432.906.526%202.255.526.973%200%201.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954%200-1.497-.444a1.6%201.6%200%200%201-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1%201%200%200%200-.156-.176q-.46-.428-1.316-.428-.986%200-1.494.604-.379.45-.494%201.234zm-27.053%202.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z%22%2F%3E%3Cpath%20fill%3D%22%23fff%22%20d%3D%22m19.63%2011.151-.757-1.71-.345%201.71-1.12%205.644h-1.827L18.083%204.7h.197l3.325%206.533.988%202.19.988-2.19L26.839%204.7h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.93%205.644h-.098l-2.913-5.644zm14.836%205.81q-1.02%200-1.893-.478a3.8%203.8%200%200%201-1.381-1.382q-.51-.906-.51-2.106%200-1.185.444-2.074a3.36%203.36%200%200%201%201.3-1.382q.839-.494%201.974-.494a3.3%203.3%200%200%201%201.234.231%203.3%203.3%200%200%201%20.97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02%201.053a3.17%203.17%200%200%201-1.662.444zm.296-1.482q.938%200%201.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2%202.2%200%200%200-.807-.872%202.1%202.1%200%200%200-1.119-.313q-1.053%200-1.629.692-.575.675-.575%201.76%200%201.103.559%201.795.577.675%201.645.675zm6.521-6.237h1.711v1.4q.906-1.597%202.83-1.597%201.596%200%202.584%201.02.988%201.005.988%202.914%200%201.185-.493%202.09a3.46%203.46%200%200%201-1.316%201.399%203.5%203.5%200%200%201-1.844.493q-.954%200-1.662-.329a2.67%202.67%200%200%201-1.086-.97l.017%205.134h-1.728zm4.048%206.22q1.07%200%201.645-.674.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.592%200-1.12.296-.51.28-.822.823-.296.527-.296%201.234v.115q0%20.708.296%201.267.313.543.823.855.51.296%201.119.297z%22%2F%3E%3Cpath%20fill%3D%22%23e1e3e9%22%20d%3D%22M51.325%204.7h1.86v10.45h3.473v1.646h-5.333zm7.12%204.542h1.843v7.553h-1.843zm.905-1.415a1.16%201.16%200%200%201-.856-.346%201.17%201.17%200%200%201-.346-.856%201.05%201.05%200%200%201%20.346-.79q.346-.329.856-.329.494%200%20.839.33a1.05%201.05%200%200%201%20.345.79%201.16%201.16%200%200%201-.345.855q-.33.346-.84.346zm7.875%209.133a3.17%203.17%200%200%201-1.662-.444q-.723-.46-1.004-1.053l-.033%201.332h-1.71V4.701h1.743v4.657l-.082%201.283q.279-.658%201.086-1.119a3.5%203.5%200%200%201%201.778-.477q1.119%200%201.942.51a3.24%203.24%200%200%201%201.283%201.4q.445.888.444%202.072%200%201.201-.526%202.09a3.5%203.5%200%200%201-1.382%201.366%203.8%203.8%200%200%201-1.876.477zm-.296-1.481q1.069%200%201.645-.675.577-.69.577-1.778%200-1.102-.577-1.776-.56-.691-1.645-.692a2.12%202.12%200%200%200-1.58.659q-.642.641-.642%201.694v.115q0%20.71.296%201.267a2.4%202.4%200%200%200%20.807.872%202.1%202.1%200%200%200%201.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14%202.14%200%200%201%201.349-.46q.527%200%20.724.098l-.247%201.794q-.149-.099-.642-.099-.774%200-1.416.494-.626.493-.626%201.58v3.883h-1.777V9.242zm9.534%207.718q-1.35%200-2.255-.526-.904-.543-1.332-1.432a4.6%204.6%200%200%201-.428-1.975q0-1.2.493-2.106a3.46%203.46%200%200%201%201.4-1.382q.889-.495%202.007-.494%201.744%200%202.584.97.855.956.856%202.7%200%20.444-.05.92h-5.43q.18%201.005.708%201.45.542.443%201.497.443.79%200%201.3-.131a4%204%200%200%200%20.938-.362l.542%201.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728%200-1.991%201.86z%22%2F%3E%3Cpath%20d%3D%22M5.074%2015.948a.484.657%200%200%200-.486.659v1.84a.484.657%200%200%200%20.486.659h4.101a.484.657%200%200%200%20.486-.659v-1.84a.484.657%200%200%200-.486-.659zm3.56%201.16H5.617v.838h3.017z%22%20style%3D%22fill%3A%23fff%3Bfill-rule%3Aevenodd%3Bstroke-width%3A1.03600001%22%2F%3E%3Cg%20style%3D%22stroke-width%3A1.12603545%22%3E%3Cpath%20d%3D%22M-9.408-1.416c-3.833-.025-7.056%202.912-7.08%206.615-.02%203.08%201.653%204.832%203.107%206.268.903.892%201.721%201.74%202.32%202.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87%201.87%200%200%200-.362%201.121l-.011%201.877c-.003.402.104.787.347%201.125.244.338.688.653%201.23.656l4.142.028c.542.003.99-.306%201.238-.641a1.87%201.87%200%200%200%20.363-1.121l.012-1.875a1.87%201.87%200%200%200-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145%201.425-1.983%202.348-2.87%201.473-1.414%203.18-3.149%203.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006%201.1v.002c3.274.02%205.92%202.532%205.9%205.6-.017%202.706-1.39%204.026-2.863%205.44-1.034.994-2.118%202.033-2.814%203.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34%200%200%201-.226.084.34.34%200%200%201-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067%202.7-5.545%205.975-5.523m-.02%202.826c-1.62-.01-2.944%201.315-2.955%202.96-.01%201.646%201.295%202.988%202.916%202.999h.002c1.621.01%202.943-1.316%202.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005%201.1c1.017.006%201.829.83%201.822%201.89s-.83%201.874-1.848%201.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874%201.848-1.868m-2.155%2011.857%204.14.025c.271.002.49.305.487.676l-.013%201.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668%22%20style%3D%22color%3A%23000%3Bfont-style%3Anormal%3Bfont-variant%3Anormal%3Bfont-weight%3A400%3Bfont-stretch%3Anormal%3Bfont-size%3Amedium%3Bline-height%3Anormal%3Bfont-family%3Asans-serif%3Bfont-variant-ligatures%3Anormal%3Bfont-variant-position%3Anormal%3Bfont-variant-caps%3Anormal%3Bfont-variant-numeric%3Anormal%3Bfont-variant-alternates%3Anormal%3Bfont-feature-settings%3Anormal%3Btext-indent%3A0%3Btext-align%3Astart%3Btext-decoration%3Anone%3Btext-decoration-line%3Anone%3Btext-decoration-style%3Asolid%3Btext-decoration-color%3A%23000%3Bletter-spacing%3Anormal%3Bword-spacing%3Anormal%3Btext-transform%3Anone%3Bwriting-mode%3Alr-tb%3Bdirection%3Altr%3Btext-orientation%3Amixed%3Bdominant-baseline%3Aauto%3Bbaseline-shift%3Abaseline%3Btext-anchor%3Astart%3Bwhite-space%3Anormal%3Bshape-padding%3A0%3Bclip-rule%3Aevenodd%3Bdisplay%3Ainline%3Boverflow%3Avisible%3Bvisibility%3Avisible%3Bopacity%3A1%3Bisolation%3Aauto%3Bmix-blend-mode%3Anormal%3Bcolor-interpolation%3AsRGB%3Bcolor-interpolation-filters%3AlinearRGB%3Bsolid-color%3A%23000%3Bsolid-opacity%3A1%3Bvector-effect%3Anone%3Bfill%3A%23000%3Bfill-opacity%3A.4%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-linecap%3Abutt%3Bstroke-linejoin%3Amiter%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-dashoffset%3A0%3Bstroke-opacity%3A1%3Bcolor-rendering%3Aauto%3Bimage-rendering%3Aauto%3Bshape-rendering%3Aauto%3Btext-rendering%3Aauto%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-9.415-.316C-12.69-.338-15.37%202.14-15.39%205.207c-.017%202.716%201.326%204.041%202.78%205.477%201.013%201%202.081%202.055%202.78%203.67l.092.076a.34.34%200%200%200%20.225.086.34.34%200%200%200%20.227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6%201.78-2.64%202.814-3.634%201.473-1.414%202.847-2.733%202.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057%208.784c1.621.011%202.944-1.315%202.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945%201.315-2.955%202.96s1.295%202.989%202.916%203%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23e1e3e9%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-11.594%2015.465c-.27-.002-.492.297-.494.668l-.012%201.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23fff%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E")}a.maplibregl-ctrl-logo.maplibregl-compact{width:14px}@media (forced-colors:active){a.maplibregl-ctrl-logo{background-color:transparent;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2288%22%20height%3D%2223%22%20fill%3D%22none%22%3E%3Cpath%20fill%3D%22%23000%22%20fill-opacity%3D%22.4%22%20fill-rule%3D%22evenodd%22%20d%3D%22M17.408%2016.796h-1.827l2.501-12.095h.198l3.324%206.533.988%202.19.988-2.19%203.258-6.533h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.929%205.644h-.098l-2.914-5.644-.757-1.71-.345%201.71zm1.958-3.42-.726%203.663a1.255%201.255%200%200%201-1.232%201.011h-1.827a1.255%201.255%200%200%201-1.229-1.509l2.501-12.095a1.255%201.255%200%200%201%201.23-1.001h.197a1.25%201.25%200%200%201%201.12.685l3.19%206.273%203.125-6.263a1.25%201.25%200%200%201%201.123-.695h.181a1.255%201.255%200%200%201%201.227.991l1.443%206.71a5%205%200%200%201%20.314-.787l.009-.016a4.6%204.6%200%200%201%201.777-1.887c.782-.46%201.668-.667%202.611-.667a4.6%204.6%200%200%201%201.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255%201.255%200%200%201%201.212.925%201.255%201.255%200%200%201%201.212-.925h1.711c.284%200%20.545.094.755.252.613-.3%201.312-.45%202.075-.45%201.356%200%202.557.445%203.482%201.4q.47.48.763%201.064V4.701a1.255%201.255%200%200%201%201.255-1.255h1.86A1.255%201.255%200%200%201%2054.44%204.7v9.194h2.217c.19%200%20.37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42%202.42%200%200%201-.682-1.71c0-.665.267-1.253.735-1.7a2.45%202.45%200%200%201%201.722-.674%202.43%202.43%200%200%201%201.705.675q.318.302.504.683V4.7a1.255%201.255%200%200%201%201.255-1.255h1.744A1.255%201.255%200%200%201%2065.812%204.7v3.335a4.8%204.8%200%200%201%201.526-.246c.938%200%201.817.214%202.59.69a4.47%204.47%200%200%201%201.67%201.743v-.98a1.255%201.255%200%200%201%201.256-1.256h1.777c.233%200%20.451.064.639.174a3.4%203.4%200%200%201%201.567-.372c.346%200%20.861.02%201.285.232a1.25%201.25%200%200%201%20.689%201.004%204.7%204.7%200%200%201%20.853-.588c.795-.44%201.675-.647%202.61-.647%201.385%200%202.65.39%203.525%201.396.836.938%201.168%202.173%201.168%203.528q-.001.515-.056%201.051a1.255%201.255%200%200%201-.947%201.09l.408.952a1.255%201.255%200%200%201-.477%201.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06%200-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8%205.8%200%200%201-.548-2.512q0-.429.053-.843a1.3%201.3%200%200%201-.333-.086l-.166-.004c-.223%200-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255%201.255%200%200%201-1.256%201.256h-1.777a1.255%201.255%200%200%201-1.256-1.256V15.69l-.032.057a4.8%204.8%200%200%201-1.86%201.833%205.04%205.04%200%200%201-2.484.634%204.5%204.5%200%200%201-1.935-.424%201.25%201.25%200%200%201-.764.258h-1.71a1.255%201.255%200%200%201-1.256-1.255V7.687a2.4%202.4%200%200%201-.428.625c.253.23.412.561.412.93v7.553a1.255%201.255%200%200%201-1.256%201.255h-1.843a1.25%201.25%200%200%201-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255%201.255%200%200%201-1.256-1.255v-1.251l-.061.117a4.7%204.7%200%200%201-1.782%201.884%204.77%204.77%200%200%201-2.485.67%205.6%205.6%200%200%201-1.485-.188l.009%202.764a1.255%201.255%200%200%201-1.255%201.259h-1.729a1.255%201.255%200%200%201-1.255-1.255v-3.537a1.255%201.255%200%200%201-1.167.793h-1.679a1.25%201.25%200%200%201-.77-.263%204.5%204.5%200%200%201-1.945.429c-.885%200-1.724-.21-2.495-.632l-.017-.01a5%205%200%200%201-1.081-.836%201.255%201.255%200%200%201-1.254%201.312h-1.81a1.255%201.255%200%200%201-1.228-.99l-.782-3.625-2.044%203.939a1.25%201.25%200%200%201-1.115.676h-.098a1.25%201.25%200%200%201-1.116-.68l-2.061-3.994zM35.92%2016.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033%201.332h1.678V9.242h-1.694l-.033%201.267q-.133-.329-.526-.658l-.032-.028a3.2%203.2%200%200%200-.668-.428l-.27-.12a3.3%203.3%200%200%200-1.235-.23q-1.136-.001-1.974.493a3.36%203.36%200%200%200-1.3%201.382q-.445.89-.444%202.074%200%201.2.51%202.107a3.8%203.8%200%200%200%201.382%201.381%203.9%203.9%200%200%200%201.893.477q.795%200%201.455-.33zm-2.789-5.38q-.576.675-.575%201.762%200%201.102.559%201.794.576.675%201.645.675a2.25%202.25%200%200%200%20.934-.19%202.2%202.2%200%200%200%20.468-.29l.178-.161a2.2%202.2%200%200%200%20.397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2%202.2%200%200%200-.633-.709l-.13-.086-.047-.028a2.1%202.1%200%200%200-1.073-.285q-1.052%200-1.629.692zm2.316%202.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96%200%200%200-.353-.389.85.85%200%200%200-.464-.127c-.4%200-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945%200%20.506.122.801.27.99.097.11.266.224.68.224.303%200%20.504-.09.687-.269zm7.545%201.705a2.6%202.6%200%200%200%20.331.423q.319.33.755.548l.173.074q.65.255%201.49.255%201.02%200%201.844-.493a3.45%203.45%200%200%200%201.316-1.4q.493-.904.493-2.089%200-1.909-.988-2.913-.988-1.02-2.584-1.02-.898%200-1.575.347a3%203%200%200%200-.415.262l-.199.166a3.4%203.4%200%200%200-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296%201.119.297%201.07%200%201.645-.675.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.435%200-.835.16a2%202%200%200%200-.284.136%202%202%200%200%200-.363.254%202.2%202.2%200%200%200-.46.569l-.082.162a2.6%202.6%200%200%200-.213%201.072v.115q0%20.707.296%201.267l.135.211zm.964-.818a1.1%201.1%200%200%200%20.367.385.94.94%200%200%200%20.476.118c.423%200%20.59-.117.687-.23.159-.194.28-.478.28-.95%200-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1%201%200%200%200-.503.135l-.012.007a.86.86%200%200%200-.335.343c-.073.133-.132.324-.132.614v.115a1.4%201.4%200%200%200%20.14.66zm15.7-6.222q.347-.346.346-.856a1.05%201.05%200%200%200-.345-.79%201.18%201.18%200%200%200-.84-.329q-.51%200-.855.33a1.05%201.05%200%200%200-.346.79q0%20.51.346.855.345.346.856.346.51%200%20.839-.346zm4.337%209.314.033-1.332q.191.403.59.747l.098.081a4%204%200%200%200%20.316.224l.223.122a3.2%203.2%200%200%200%201.44.322%203.8%203.8%200%200%200%201.875-.477%203.5%203.5%200%200%200%201.382-1.366q.527-.89.526-2.09%200-1.184-.444-2.073a3.24%203.24%200%200%200-1.283-1.399q-.823-.51-1.942-.51a3.5%203.5%200%200%200-1.527.344l-.086.043-.165.09a3%203%200%200%200-.33.214q-.432.315-.656.707a2%202%200%200%200-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5%202.5%200%200%200%20.566.7q.117.098.245.18l.144.08a2.1%202.1%200%200%200%20.975.232q1.07%200%201.645-.675.576-.69.576-1.778%200-1.102-.576-1.777-.56-.691-1.645-.692a2.2%202.2%200%200%200-1.015.235q-.22.113-.415.282l-.15.142a2.1%202.1%200%200%200-.42.594q-.223.479-.223%201.1v.115q0%20.705.293%201.26zm2.616-.293c.157-.191.28-.479.28-.967%200-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87%200%200%200-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0%20.285.057.499.144.669a1.1%201.1%200%200%200%20.367.405c.137.082.28.123.455.123.423%200%20.59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493%200%20.642.099l.247-1.794q-.196-.099-.717-.099a2.3%202.3%200%200%200-.545.063%202%202%200%200%200-.411.148%202.2%202.2%200%200%200-.4.249%202.5%202.5%200%200%200-.485.499%202.7%202.7%200%200%200-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5%201.5%200%200%201%20.466-.636%202.5%202.5%200%200%201%20.399-.253%202%202%200%200%201%20.224-.099zm9.784%202.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46%203.46%200%200%200-1.4%201.382q-.493.906-.493%202.106%200%201.07.428%201.975.428.89%201.332%201.432.906.526%202.255.526.973%200%201.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954%200-1.497-.444a1.6%201.6%200%200%201-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1%201%200%200%200-.156-.176q-.46-.428-1.316-.428-.986%200-1.494.604-.379.45-.494%201.234zm-27.053%202.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z%22%2F%3E%3Cpath%20fill%3D%22%23fff%22%20d%3D%22m19.63%2011.151-.757-1.71-.345%201.71-1.12%205.644h-1.827L18.083%204.7h.197l3.325%206.533.988%202.19.988-2.19L26.839%204.7h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.93%205.644h-.098l-2.913-5.644zm14.836%205.81q-1.02%200-1.893-.478a3.8%203.8%200%200%201-1.381-1.382q-.51-.906-.51-2.106%200-1.185.444-2.074a3.36%203.36%200%200%201%201.3-1.382q.839-.494%201.974-.494a3.3%203.3%200%200%201%201.234.231%203.3%203.3%200%200%201%20.97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02%201.053a3.17%203.17%200%200%201-1.662.444zm.296-1.482q.938%200%201.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2%202.2%200%200%200-.807-.872%202.1%202.1%200%200%200-1.119-.313q-1.053%200-1.629.692-.575.675-.575%201.76%200%201.103.559%201.795.577.675%201.645.675zm6.521-6.237h1.711v1.4q.906-1.597%202.83-1.597%201.596%200%202.584%201.02.988%201.005.988%202.914%200%201.185-.493%202.09a3.46%203.46%200%200%201-1.316%201.399%203.5%203.5%200%200%201-1.844.493q-.954%200-1.662-.329a2.67%202.67%200%200%201-1.086-.97l.017%205.134h-1.728zm4.048%206.22q1.07%200%201.645-.674.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.592%200-1.12.296-.51.28-.822.823-.296.527-.296%201.234v.115q0%20.708.296%201.267.313.543.823.855.51.296%201.119.297z%22%2F%3E%3Cpath%20fill%3D%22%23e1e3e9%22%20d%3D%22M51.325%204.7h1.86v10.45h3.473v1.646h-5.333zm7.12%204.542h1.843v7.553h-1.843zm.905-1.415a1.16%201.16%200%200%201-.856-.346%201.17%201.17%200%200%201-.346-.856%201.05%201.05%200%200%201%20.346-.79q.346-.329.856-.329.494%200%20.839.33a1.05%201.05%200%200%201%20.345.79%201.16%201.16%200%200%201-.345.855q-.33.346-.84.346zm7.875%209.133a3.17%203.17%200%200%201-1.662-.444q-.723-.46-1.004-1.053l-.033%201.332h-1.71V4.701h1.743v4.657l-.082%201.283q.279-.658%201.086-1.119a3.5%203.5%200%200%201%201.778-.477q1.119%200%201.942.51a3.24%203.24%200%200%201%201.283%201.4q.445.888.444%202.072%200%201.201-.526%202.09a3.5%203.5%200%200%201-1.382%201.366%203.8%203.8%200%200%201-1.876.477zm-.296-1.481q1.069%200%201.645-.675.577-.69.577-1.778%200-1.102-.577-1.776-.56-.691-1.645-.692a2.12%202.12%200%200%200-1.58.659q-.642.641-.642%201.694v.115q0%20.71.296%201.267a2.4%202.4%200%200%200%20.807.872%202.1%202.1%200%200%200%201.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14%202.14%200%200%201%201.349-.46q.527%200%20.724.098l-.247%201.794q-.149-.099-.642-.099-.774%200-1.416.494-.626.493-.626%201.58v3.883h-1.777V9.242zm9.534%207.718q-1.35%200-2.255-.526-.904-.543-1.332-1.432a4.6%204.6%200%200%201-.428-1.975q0-1.2.493-2.106a3.46%203.46%200%200%201%201.4-1.382q.889-.495%202.007-.494%201.744%200%202.584.97.855.956.856%202.7%200%20.444-.05.92h-5.43q.18%201.005.708%201.45.542.443%201.497.443.79%200%201.3-.131a4%204%200%200%200%20.938-.362l.542%201.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728%200-1.991%201.86z%22%2F%3E%3Cpath%20d%3D%22M5.074%2015.948a.484.657%200%200%200-.486.659v1.84a.484.657%200%200%200%20.486.659h4.101a.484.657%200%200%200%20.486-.659v-1.84a.484.657%200%200%200-.486-.659zm3.56%201.16H5.617v.838h3.017z%22%20style%3D%22fill%3A%23fff%3Bfill-rule%3Aevenodd%3Bstroke-width%3A1.03600001%22%2F%3E%3Cg%20style%3D%22stroke-width%3A1.12603545%22%3E%3Cpath%20d%3D%22M-9.408-1.416c-3.833-.025-7.056%202.912-7.08%206.615-.02%203.08%201.653%204.832%203.107%206.268.903.892%201.721%201.74%202.32%202.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87%201.87%200%200%200-.362%201.121l-.011%201.877c-.003.402.104.787.347%201.125.244.338.688.653%201.23.656l4.142.028c.542.003.99-.306%201.238-.641a1.87%201.87%200%200%200%20.363-1.121l.012-1.875a1.87%201.87%200%200%200-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145%201.425-1.983%202.348-2.87%201.473-1.414%203.18-3.149%203.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006%201.1v.002c3.274.02%205.92%202.532%205.9%205.6-.017%202.706-1.39%204.026-2.863%205.44-1.034.994-2.118%202.033-2.814%203.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34%200%200%201-.226.084.34.34%200%200%201-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067%202.7-5.545%205.975-5.523m-.02%202.826c-1.62-.01-2.944%201.315-2.955%202.96-.01%201.646%201.295%202.988%202.916%202.999h.002c1.621.01%202.943-1.316%202.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005%201.1c1.017.006%201.829.83%201.822%201.89s-.83%201.874-1.848%201.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874%201.848-1.868m-2.155%2011.857%204.14.025c.271.002.49.305.487.676l-.013%201.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668%22%20style%3D%22color%3A%23000%3Bfont-style%3Anormal%3Bfont-variant%3Anormal%3Bfont-weight%3A400%3Bfont-stretch%3Anormal%3Bfont-size%3Amedium%3Bline-height%3Anormal%3Bfont-family%3Asans-serif%3Bfont-variant-ligatures%3Anormal%3Bfont-variant-position%3Anormal%3Bfont-variant-caps%3Anormal%3Bfont-variant-numeric%3Anormal%3Bfont-variant-alternates%3Anormal%3Bfont-feature-settings%3Anormal%3Btext-indent%3A0%3Btext-align%3Astart%3Btext-decoration%3Anone%3Btext-decoration-line%3Anone%3Btext-decoration-style%3Asolid%3Btext-decoration-color%3A%23000%3Bletter-spacing%3Anormal%3Bword-spacing%3Anormal%3Btext-transform%3Anone%3Bwriting-mode%3Alr-tb%3Bdirection%3Altr%3Btext-orientation%3Amixed%3Bdominant-baseline%3Aauto%3Bbaseline-shift%3Abaseline%3Btext-anchor%3Astart%3Bwhite-space%3Anormal%3Bshape-padding%3A0%3Bclip-rule%3Aevenodd%3Bdisplay%3Ainline%3Boverflow%3Avisible%3Bvisibility%3Avisible%3Bopacity%3A1%3Bisolation%3Aauto%3Bmix-blend-mode%3Anormal%3Bcolor-interpolation%3AsRGB%3Bcolor-interpolation-filters%3AlinearRGB%3Bsolid-color%3A%23000%3Bsolid-opacity%3A1%3Bvector-effect%3Anone%3Bfill%3A%23000%3Bfill-opacity%3A.4%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-linecap%3Abutt%3Bstroke-linejoin%3Amiter%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-dashoffset%3A0%3Bstroke-opacity%3A1%3Bcolor-rendering%3Aauto%3Bimage-rendering%3Aauto%3Bshape-rendering%3Aauto%3Btext-rendering%3Aauto%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-9.415-.316C-12.69-.338-15.37%202.14-15.39%205.207c-.017%202.716%201.326%204.041%202.78%205.477%201.013%201%202.081%202.055%202.78%203.67l.092.076a.34.34%200%200%200%20.225.086.34.34%200%200%200%20.227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6%201.78-2.64%202.814-3.634%201.473-1.414%202.847-2.733%202.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057%208.784c1.621.011%202.944-1.315%202.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945%201.315-2.955%202.96s1.295%202.989%202.916%203%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23e1e3e9%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-11.594%2015.465c-.27-.002-.492.297-.494.668l-.012%201.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23fff%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){a.maplibregl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2288%22%20height%3D%2223%22%20fill%3D%22none%22%3E%3Cpath%20fill%3D%22%23000%22%20fill-opacity%3D%22.4%22%20fill-rule%3D%22evenodd%22%20d%3D%22M17.408%2016.796h-1.827l2.501-12.095h.198l3.324%206.533.988%202.19.988-2.19%203.258-6.533h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.929%205.644h-.098l-2.914-5.644-.757-1.71-.345%201.71zm1.958-3.42-.726%203.663a1.255%201.255%200%200%201-1.232%201.011h-1.827a1.255%201.255%200%200%201-1.229-1.509l2.501-12.095a1.255%201.255%200%200%201%201.23-1.001h.197a1.25%201.25%200%200%201%201.12.685l3.19%206.273%203.125-6.263a1.25%201.25%200%200%201%201.123-.695h.181a1.255%201.255%200%200%201%201.227.991l1.443%206.71a5%205%200%200%201%20.314-.787l.009-.016a4.6%204.6%200%200%201%201.777-1.887c.782-.46%201.668-.667%202.611-.667a4.6%204.6%200%200%201%201.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255%201.255%200%200%201%201.212.925%201.255%201.255%200%200%201%201.212-.925h1.711c.284%200%20.545.094.755.252.613-.3%201.312-.45%202.075-.45%201.356%200%202.557.445%203.482%201.4q.47.48.763%201.064V4.701a1.255%201.255%200%200%201%201.255-1.255h1.86A1.255%201.255%200%200%201%2054.44%204.7v9.194h2.217c.19%200%20.37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42%202.42%200%200%201-.682-1.71c0-.665.267-1.253.735-1.7a2.45%202.45%200%200%201%201.722-.674%202.43%202.43%200%200%201%201.705.675q.318.302.504.683V4.7a1.255%201.255%200%200%201%201.255-1.255h1.744A1.255%201.255%200%200%201%2065.812%204.7v3.335a4.8%204.8%200%200%201%201.526-.246c.938%200%201.817.214%202.59.69a4.47%204.47%200%200%201%201.67%201.743v-.98a1.255%201.255%200%200%201%201.256-1.256h1.777c.233%200%20.451.064.639.174a3.4%203.4%200%200%201%201.567-.372c.346%200%20.861.02%201.285.232a1.25%201.25%200%200%201%20.689%201.004%204.7%204.7%200%200%201%20.853-.588c.795-.44%201.675-.647%202.61-.647%201.385%200%202.65.39%203.525%201.396.836.938%201.168%202.173%201.168%203.528q-.001.515-.056%201.051a1.255%201.255%200%200%201-.947%201.09l.408.952a1.255%201.255%200%200%201-.477%201.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06%200-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8%205.8%200%200%201-.548-2.512q0-.429.053-.843a1.3%201.3%200%200%201-.333-.086l-.166-.004c-.223%200-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255%201.255%200%200%201-1.256%201.256h-1.777a1.255%201.255%200%200%201-1.256-1.256V15.69l-.032.057a4.8%204.8%200%200%201-1.86%201.833%205.04%205.04%200%200%201-2.484.634%204.5%204.5%200%200%201-1.935-.424%201.25%201.25%200%200%201-.764.258h-1.71a1.255%201.255%200%200%201-1.256-1.255V7.687a2.4%202.4%200%200%201-.428.625c.253.23.412.561.412.93v7.553a1.255%201.255%200%200%201-1.256%201.255h-1.843a1.25%201.25%200%200%201-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255%201.255%200%200%201-1.256-1.255v-1.251l-.061.117a4.7%204.7%200%200%201-1.782%201.884%204.77%204.77%200%200%201-2.485.67%205.6%205.6%200%200%201-1.485-.188l.009%202.764a1.255%201.255%200%200%201-1.255%201.259h-1.729a1.255%201.255%200%200%201-1.255-1.255v-3.537a1.255%201.255%200%200%201-1.167.793h-1.679a1.25%201.25%200%200%201-.77-.263%204.5%204.5%200%200%201-1.945.429c-.885%200-1.724-.21-2.495-.632l-.017-.01a5%205%200%200%201-1.081-.836%201.255%201.255%200%200%201-1.254%201.312h-1.81a1.255%201.255%200%200%201-1.228-.99l-.782-3.625-2.044%203.939a1.25%201.25%200%200%201-1.115.676h-.098a1.25%201.25%200%200%201-1.116-.68l-2.061-3.994zM35.92%2016.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033%201.332h1.678V9.242h-1.694l-.033%201.267q-.133-.329-.526-.658l-.032-.028a3.2%203.2%200%200%200-.668-.428l-.27-.12a3.3%203.3%200%200%200-1.235-.23q-1.136-.001-1.974.493a3.36%203.36%200%200%200-1.3%201.382q-.445.89-.444%202.074%200%201.2.51%202.107a3.8%203.8%200%200%200%201.382%201.381%203.9%203.9%200%200%200%201.893.477q.795%200%201.455-.33zm-2.789-5.38q-.576.675-.575%201.762%200%201.102.559%201.794.576.675%201.645.675a2.25%202.25%200%200%200%20.934-.19%202.2%202.2%200%200%200%20.468-.29l.178-.161a2.2%202.2%200%200%200%20.397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2%202.2%200%200%200-.633-.709l-.13-.086-.047-.028a2.1%202.1%200%200%200-1.073-.285q-1.052%200-1.629.692zm2.316%202.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96%200%200%200-.353-.389.85.85%200%200%200-.464-.127c-.4%200-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945%200%20.506.122.801.27.99.097.11.266.224.68.224.303%200%20.504-.09.687-.269zm7.545%201.705a2.6%202.6%200%200%200%20.331.423q.319.33.755.548l.173.074q.65.255%201.49.255%201.02%200%201.844-.493a3.45%203.45%200%200%200%201.316-1.4q.493-.904.493-2.089%200-1.909-.988-2.913-.988-1.02-2.584-1.02-.898%200-1.575.347a3%203%200%200%200-.415.262l-.199.166a3.4%203.4%200%200%200-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296%201.119.297%201.07%200%201.645-.675.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.435%200-.835.16a2%202%200%200%200-.284.136%202%202%200%200%200-.363.254%202.2%202.2%200%200%200-.46.569l-.082.162a2.6%202.6%200%200%200-.213%201.072v.115q0%20.707.296%201.267l.135.211zm.964-.818a1.1%201.1%200%200%200%20.367.385.94.94%200%200%200%20.476.118c.423%200%20.59-.117.687-.23.159-.194.28-.478.28-.95%200-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1%201%200%200%200-.503.135l-.012.007a.86.86%200%200%200-.335.343c-.073.133-.132.324-.132.614v.115a1.4%201.4%200%200%200%20.14.66zm15.7-6.222q.347-.346.346-.856a1.05%201.05%200%200%200-.345-.79%201.18%201.18%200%200%200-.84-.329q-.51%200-.855.33a1.05%201.05%200%200%200-.346.79q0%20.51.346.855.345.346.856.346.51%200%20.839-.346zm4.337%209.314.033-1.332q.191.403.59.747l.098.081a4%204%200%200%200%20.316.224l.223.122a3.2%203.2%200%200%200%201.44.322%203.8%203.8%200%200%200%201.875-.477%203.5%203.5%200%200%200%201.382-1.366q.527-.89.526-2.09%200-1.184-.444-2.073a3.24%203.24%200%200%200-1.283-1.399q-.823-.51-1.942-.51a3.5%203.5%200%200%200-1.527.344l-.086.043-.165.09a3%203%200%200%200-.33.214q-.432.315-.656.707a2%202%200%200%200-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5%202.5%200%200%200%20.566.7q.117.098.245.18l.144.08a2.1%202.1%200%200%200%20.975.232q1.07%200%201.645-.675.576-.69.576-1.778%200-1.102-.576-1.777-.56-.691-1.645-.692a2.2%202.2%200%200%200-1.015.235q-.22.113-.415.282l-.15.142a2.1%202.1%200%200%200-.42.594q-.223.479-.223%201.1v.115q0%20.705.293%201.26zm2.616-.293c.157-.191.28-.479.28-.967%200-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87%200%200%200-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0%20.285.057.499.144.669a1.1%201.1%200%200%200%20.367.405c.137.082.28.123.455.123.423%200%20.59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493%200%20.642.099l.247-1.794q-.196-.099-.717-.099a2.3%202.3%200%200%200-.545.063%202%202%200%200%200-.411.148%202.2%202.2%200%200%200-.4.249%202.5%202.5%200%200%200-.485.499%202.7%202.7%200%200%200-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5%201.5%200%200%201%20.466-.636%202.5%202.5%200%200%201%20.399-.253%202%202%200%200%201%20.224-.099zm9.784%202.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46%203.46%200%200%200-1.4%201.382q-.493.906-.493%202.106%200%201.07.428%201.975.428.89%201.332%201.432.906.526%202.255.526.973%200%201.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954%200-1.497-.444a1.6%201.6%200%200%201-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1%201%200%200%200-.156-.176q-.46-.428-1.316-.428-.986%200-1.494.604-.379.45-.494%201.234zm-27.053%202.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z%22%2F%3E%3Cpath%20fill%3D%22%23fff%22%20d%3D%22m19.63%2011.151-.757-1.71-.345%201.71-1.12%205.644h-1.827L18.083%204.7h.197l3.325%206.533.988%202.19.988-2.19L26.839%204.7h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.93%205.644h-.098l-2.913-5.644zm14.836%205.81q-1.02%200-1.893-.478a3.8%203.8%200%200%201-1.381-1.382q-.51-.906-.51-2.106%200-1.185.444-2.074a3.36%203.36%200%200%201%201.3-1.382q.839-.494%201.974-.494a3.3%203.3%200%200%201%201.234.231%203.3%203.3%200%200%201%20.97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02%201.053a3.17%203.17%200%200%201-1.662.444zm.296-1.482q.938%200%201.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2%202.2%200%200%200-.807-.872%202.1%202.1%200%200%200-1.119-.313q-1.053%200-1.629.692-.575.675-.575%201.76%200%201.103.559%201.795.577.675%201.645.675zm6.521-6.237h1.711v1.4q.906-1.597%202.83-1.597%201.596%200%202.584%201.02.988%201.005.988%202.914%200%201.185-.493%202.09a3.46%203.46%200%200%201-1.316%201.399%203.5%203.5%200%200%201-1.844.493q-.954%200-1.662-.329a2.67%202.67%200%200%201-1.086-.97l.017%205.134h-1.728zm4.048%206.22q1.07%200%201.645-.674.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.592%200-1.12.296-.51.28-.822.823-.296.527-.296%201.234v.115q0%20.708.296%201.267.313.543.823.855.51.296%201.119.297z%22%2F%3E%3Cpath%20fill%3D%22%23e1e3e9%22%20d%3D%22M51.325%204.7h1.86v10.45h3.473v1.646h-5.333zm7.12%204.542h1.843v7.553h-1.843zm.905-1.415a1.16%201.16%200%200%201-.856-.346%201.17%201.17%200%200%201-.346-.856%201.05%201.05%200%200%201%20.346-.79q.346-.329.856-.329.494%200%20.839.33a1.05%201.05%200%200%201%20.345.79%201.16%201.16%200%200%201-.345.855q-.33.346-.84.346zm7.875%209.133a3.17%203.17%200%200%201-1.662-.444q-.723-.46-1.004-1.053l-.033%201.332h-1.71V4.701h1.743v4.657l-.082%201.283q.279-.658%201.086-1.119a3.5%203.5%200%200%201%201.778-.477q1.119%200%201.942.51a3.24%203.24%200%200%201%201.283%201.4q.445.888.444%202.072%200%201.201-.526%202.09a3.5%203.5%200%200%201-1.382%201.366%203.8%203.8%200%200%201-1.876.477zm-.296-1.481q1.069%200%201.645-.675.577-.69.577-1.778%200-1.102-.577-1.776-.56-.691-1.645-.692a2.12%202.12%200%200%200-1.58.659q-.642.641-.642%201.694v.115q0%20.71.296%201.267a2.4%202.4%200%200%200%20.807.872%202.1%202.1%200%200%200%201.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14%202.14%200%200%201%201.349-.46q.527%200%20.724.098l-.247%201.794q-.149-.099-.642-.099-.774%200-1.416.494-.626.493-.626%201.58v3.883h-1.777V9.242zm9.534%207.718q-1.35%200-2.255-.526-.904-.543-1.332-1.432a4.6%204.6%200%200%201-.428-1.975q0-1.2.493-2.106a3.46%203.46%200%200%201%201.4-1.382q.889-.495%202.007-.494%201.744%200%202.584.97.855.956.856%202.7%200%20.444-.05.92h-5.43q.18%201.005.708%201.45.542.443%201.497.443.79%200%201.3-.131a4%204%200%200%200%20.938-.362l.542%201.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728%200-1.991%201.86z%22%2F%3E%3Cpath%20d%3D%22M5.074%2015.948a.484.657%200%200%200-.486.659v1.84a.484.657%200%200%200%20.486.659h4.101a.484.657%200%200%200%20.486-.659v-1.84a.484.657%200%200%200-.486-.659zm3.56%201.16H5.617v.838h3.017z%22%20style%3D%22fill%3A%23fff%3Bfill-rule%3Aevenodd%3Bstroke-width%3A1.03600001%22%2F%3E%3Cg%20style%3D%22stroke-width%3A1.12603545%22%3E%3Cpath%20d%3D%22M-9.408-1.416c-3.833-.025-7.056%202.912-7.08%206.615-.02%203.08%201.653%204.832%203.107%206.268.903.892%201.721%201.74%202.32%202.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87%201.87%200%200%200-.362%201.121l-.011%201.877c-.003.402.104.787.347%201.125.244.338.688.653%201.23.656l4.142.028c.542.003.99-.306%201.238-.641a1.87%201.87%200%200%200%20.363-1.121l.012-1.875a1.87%201.87%200%200%200-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145%201.425-1.983%202.348-2.87%201.473-1.414%203.18-3.149%203.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006%201.1v.002c3.274.02%205.92%202.532%205.9%205.6-.017%202.706-1.39%204.026-2.863%205.44-1.034.994-2.118%202.033-2.814%203.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34%200%200%201-.226.084.34.34%200%200%201-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067%202.7-5.545%205.975-5.523m-.02%202.826c-1.62-.01-2.944%201.315-2.955%202.96-.01%201.646%201.295%202.988%202.916%202.999h.002c1.621.01%202.943-1.316%202.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005%201.1c1.017.006%201.829.83%201.822%201.89s-.83%201.874-1.848%201.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874%201.848-1.868m-2.155%2011.857%204.14.025c.271.002.49.305.487.676l-.013%201.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668%22%20style%3D%22color%3A%23000%3Bfont-style%3Anormal%3Bfont-variant%3Anormal%3Bfont-weight%3A400%3Bfont-stretch%3Anormal%3Bfont-size%3Amedium%3Bline-height%3Anormal%3Bfont-family%3Asans-serif%3Bfont-variant-ligatures%3Anormal%3Bfont-variant-position%3Anormal%3Bfont-variant-caps%3Anormal%3Bfont-variant-numeric%3Anormal%3Bfont-variant-alternates%3Anormal%3Bfont-feature-settings%3Anormal%3Btext-indent%3A0%3Btext-align%3Astart%3Btext-decoration%3Anone%3Btext-decoration-line%3Anone%3Btext-decoration-style%3Asolid%3Btext-decoration-color%3A%23000%3Bletter-spacing%3Anormal%3Bword-spacing%3Anormal%3Btext-transform%3Anone%3Bwriting-mode%3Alr-tb%3Bdirection%3Altr%3Btext-orientation%3Amixed%3Bdominant-baseline%3Aauto%3Bbaseline-shift%3Abaseline%3Btext-anchor%3Astart%3Bwhite-space%3Anormal%3Bshape-padding%3A0%3Bclip-rule%3Aevenodd%3Bdisplay%3Ainline%3Boverflow%3Avisible%3Bvisibility%3Avisible%3Bopacity%3A1%3Bisolation%3Aauto%3Bmix-blend-mode%3Anormal%3Bcolor-interpolation%3AsRGB%3Bcolor-interpolation-filters%3AlinearRGB%3Bsolid-color%3A%23000%3Bsolid-opacity%3A1%3Bvector-effect%3Anone%3Bfill%3A%23000%3Bfill-opacity%3A.4%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-linecap%3Abutt%3Bstroke-linejoin%3Amiter%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-dashoffset%3A0%3Bstroke-opacity%3A1%3Bcolor-rendering%3Aauto%3Bimage-rendering%3Aauto%3Bshape-rendering%3Aauto%3Btext-rendering%3Aauto%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-9.415-.316C-12.69-.338-15.37%202.14-15.39%205.207c-.017%202.716%201.326%204.041%202.78%205.477%201.013%201%202.081%202.055%202.78%203.67l.092.076a.34.34%200%200%200%20.225.086.34.34%200%200%200%20.227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6%201.78-2.64%202.814-3.634%201.473-1.414%202.847-2.733%202.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057%208.784c1.621.011%202.944-1.315%202.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945%201.315-2.955%202.96s1.295%202.989%202.916%203%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23e1e3e9%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-11.594%2015.465c-.27-.002-.492.297-.494.668l-.012%201.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23fff%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl.maplibregl-ctrl-attrib{padding:0 5px;background-color:hsla(0,0%,100%,.5);margin:0}@media screen{.maplibregl-ctrl-attrib.maplibregl-compact{min-height:20px;padding:2px 24px 2px 0;margin:10px;position:relative;background-color:#fff;color:#000;border-radius:12px;box-sizing:content-box}.maplibregl-ctrl-attrib.maplibregl-compact-show{padding:2px 28px 2px 8px;visibility:visible}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact-show,.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact-show{padding:2px 8px 2px 28px;border-radius:12px}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-inner{display:none}.maplibregl-ctrl-attrib-button{display:none;cursor:pointer;position:absolute;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20fill-rule%3D%22evenodd%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M4%2010a6%206%200%201%200%2012%200%206%206%200%201%200-12%200m5-3a1%201%200%201%200%202%200%201%201%200%201%200-2%200m0%203a1%201%200%201%201%202%200v3a1%201%200%201%201-2%200%22%2F%3E%3C%2Fsvg%3E");background-color:hsla(0,0%,100%,.5);width:24px;height:24px;box-sizing:border-box;border-radius:12px;outline:none;top:0;right:0;border:0}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;list-style:none}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button::-webkit-details-marker{display:none}.maplibregl-ctrl-bottom-left .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-top-left .maplibregl-ctrl-attrib-button{left:0}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-inner{display:block}.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-button{background-color:rgba(0,0,0,.05)}.maplibregl-ctrl-bottom-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;right:0}.maplibregl-ctrl-top-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{top:0;right:0}.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{top:0;left:0}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;left:0}}@media screen and (forced-colors:active){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22%23fff%22%20fill-rule%3D%22evenodd%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M4%2010a6%206%200%201%200%2012%200%206%206%200%201%200-12%200m5-3a1%201%200%201%200%202%200%201%201%200%201%200-2%200m0%203a1%201%200%201%201%202%200v3a1%201%200%201%201-2%200%22%2F%3E%3C%2Fsvg%3E")}}@media screen and (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20fill-rule%3D%22evenodd%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M4%2010a6%206%200%201%200%2012%200%206%206%200%201%200-12%200m5-3a1%201%200%201%200%202%200%201%201%200%201%200-2%200m0%203a1%201%200%201%201%202%200v3a1%201%200%201%201-2%200%22%2F%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl-attrib a{color:rgba(0,0,0,.75);text-decoration:none}.maplibregl-ctrl-attrib a:hover{color:inherit;text-decoration:underline}.maplibregl-attrib-empty{display:none}.maplibregl-ctrl-scale{background-color:hsla(0,0%,100%,.75);font-size:10px;white-space:nowrap;border-color:#333;border-style:none solid solid;border-width:medium 2px 2px;padding:0 5px;color:#333;box-sizing:border-box}.maplibregl-popup{position:absolute;top:0;left:0;display:flex;will-change:transform;pointer-events:none}.maplibregl-popup-anchor-top,.maplibregl-popup-anchor-top-left,.maplibregl-popup-anchor-top-right{flex-direction:column}.maplibregl-popup-anchor-bottom,.maplibregl-popup-anchor-bottom-left,.maplibregl-popup-anchor-bottom-right{flex-direction:column-reverse}.maplibregl-popup-anchor-left{flex-direction:row}.maplibregl-popup-anchor-right{flex-direction:row-reverse}.maplibregl-popup-tip{width:0;height:0;border:10px solid transparent;z-index:1}.maplibregl-popup-anchor-top .maplibregl-popup-tip{align-self:center;border-top:none;border-bottom-color:#fff}.maplibregl-popup-anchor-top-left .maplibregl-popup-tip{align-self:flex-start;border-top:none;border-left:none;border-bottom-color:#fff}.maplibregl-popup-anchor-top-right .maplibregl-popup-tip{align-self:flex-end;border-top:none;border-right:none;border-bottom-color:#fff}.maplibregl-popup-anchor-bottom .maplibregl-popup-tip{align-self:center;border-bottom:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip{align-self:flex-start;border-bottom:none;border-left:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip{align-self:flex-end;border-bottom:none;border-right:none;border-top-color:#fff}.maplibregl-popup-anchor-left .maplibregl-popup-tip{align-self:center;border-left:none;border-right-color:#fff}.maplibregl-popup-anchor-right .maplibregl-popup-tip{align-self:center;border-right:none;border-left-color:#fff}[dir=rtl] .maplibregl-popup-anchor-left{flex-direction:row-reverse}[dir=rtl] .maplibregl-popup-anchor-right{flex-direction:row}[dir=rtl] .maplibregl-popup-anchor-top-left .maplibregl-popup-tip{align-self:flex-end}[dir=rtl] .maplibregl-popup-anchor-top-right .maplibregl-popup-tip{align-self:flex-start}[dir=rtl] .maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip{align-self:flex-end}[dir=rtl] .maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip{align-self:flex-start}.maplibregl-popup-close-button{position:absolute;right:0;top:0;border:0;border-radius:0 3px 0 0;cursor:pointer;background-color:transparent}.maplibregl-popup-close-button:hover{background-color:rgba(0,0,0,.05)}.maplibregl-popup-content{position:relative;background:#fff;border-radius:3px;box-shadow:0 1px 2px rgba(0,0,0,.1);padding:15px 10px;pointer-events:auto}.maplibregl-popup-anchor-top-left .maplibregl-popup-content{border-top-left-radius:0}.maplibregl-popup-anchor-top-right .maplibregl-popup-content{border-top-right-radius:0}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-content{border-bottom-left-radius:0}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-content{border-bottom-right-radius:0}.maplibregl-popup-track-pointer{display:none}.maplibregl-popup-track-pointer *{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-map:hover .maplibregl-popup-track-pointer{display:flex}.maplibregl-map:active .maplibregl-popup-track-pointer{display:none}.maplibregl-marker{position:absolute;top:0;left:0;will-change:transform;transition:opacity .2s}.maplibregl-marker-draggable{cursor:grab}.maplibregl-user-location-dot,.maplibregl-user-location-dot:before{background-color:#1da1f2;width:15px;height:15px;border-radius:50%}.maplibregl-user-location-dot:before{content:"";position:absolute;animation:maplibregl-user-location-dot-pulse 2s infinite}.maplibregl-user-location-dot:after{border-radius:50%;border:2px solid #fff;content:"";height:19px;left:-2px;position:absolute;top:-2px;width:19px;box-sizing:border-box;box-shadow:0 0 3px rgba(0,0,0,.35)}@media (prefers-reduced-motion:reduce){.maplibregl-user-location-dot:before{animation:none}}@keyframes maplibregl-user-location-dot-pulse{0%{transform:scale(1);opacity:1}70%{transform:scale(3);opacity:0}to{transform:scale(1);opacity:0}}.maplibregl-user-location-dot-stale{background-color:#aaa}.maplibregl-user-location-dot-stale:after{display:none}.maplibregl-user-location-accuracy-circle{background-color:#1da1f233;width:1px;height:1px;border-radius:100%}.maplibregl-crosshair,.maplibregl-crosshair .maplibregl-interactive,.maplibregl-crosshair .maplibregl-interactive:active{cursor:crosshair}.maplibregl-boxzoom{position:absolute;top:0;left:0;width:0;height:0;background:#fff;border:2px dotted #202020;opacity:.5}.maplibregl-cooperative-gesture-screen{background:rgba(0,0,0,.4);position:absolute;inset:0;display:flex;justify-content:center;align-items:center;color:#fff;padding:1rem;font-size:1.4em;line-height:1.2;opacity:0;pointer-events:none;transition:opacity 1s ease 1s;z-index:99999}.maplibregl-cooperative-gesture-screen.maplibregl-show{opacity:1;transition:opacity .05s}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:none}@media (hover:none),(pointer:coarse){.maplibregl-cooperative-gesture-screen .maplibregl-desktop-message{display:none}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:block}}.maplibregl-pseudo-fullscreen{position:fixed!important;width:100%!important;height:100%!important;top:0!important;left:0!important;z-index:99999}',document.head.appendChild(e)}})()});var Cr=xe(Qr=>{"use strict";var iy=ll(),RM=Dh(),FM=Q3(),a4e=Pf().addStyleRule,PM=Rt(),Cj=Zn(),Ej=q0(),Lj=PM.extendFlat,oy=PM.extendDeepAll;Qr.modules={};Qr.allCategories={};Qr.allTypes=[];Qr.subplotsRegistry={};Qr.componentsRegistry={};Qr.layoutArrayContainers=[];Qr.layoutArrayRegexes=[];Qr.traceLayoutAttributes={};Qr.localeRegistry={};Qr.apiMethodRegistry={};Qr.collectableSubplotTypes=null;Qr.register=function(r){if(Qr.collectableSubplotTypes=null,r)r&&!Array.isArray(r)&&(r=[r]);else throw new Error("No argument passed to Plotly.register.");for(var t=0;t{"use strict";var Ij=w0().timeFormat,YM=ut(),ly=ll(),dl=(A0(),or(T0)).mod,U0=(wn(),or(Rn)),ri=U0.BADNUM,Ca=U0.ONEDAY,zf=U0.ONEHOUR,hl=U0.ONEMIN,O0=U0.ONESEC,Nf=U0.EPOCHJD,Do=Cr(),BM=w0().utcFormat,zj=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\d)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d(:?\d\d)?)?)?)?)?)?\s*$/m,Nj=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\di?)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d(:?\d\d)?)?)?)?)?)?\s*$/m,OM=new Date().getFullYear()-70;function Ro(e){return e&&Do.componentsRegistry.calendars&&typeof e=="string"&&e!=="gregorian"}ln.dateTick0=function(e,r){var t=qj(e,!!r);if(r<2)return t;var n=ln.dateTime2ms(t,e);return n+=Ca*(r-1),ln.ms2DateTime(n,0,e)};function qj(e,r){return Ro(e)?r?Do.getComponentMethod("calendars","CANONICAL_SUNDAY")[e]:Do.getComponentMethod("calendars","CANONICAL_TICK")[e]:r?"2000-01-02":"2000-01-01"}ln.dfltRange=function(e){return Ro(e)?Do.getComponentMethod("calendars","DFLTRANGE")[e]:["2000-01-01","2001-01-01"]};ln.isJSDate=function(e){return typeof e=="object"&&e!==null&&typeof e.getTime=="function"};var Oh,Uh;ln.dateTime2ms=function(e,r){if(ln.isJSDate(e)){var t=e.getTimezoneOffset()*hl,n=(e.getUTCMinutes()-e.getMinutes())*hl+(e.getUTCSeconds()-e.getSeconds())*O0+(e.getUTCMilliseconds()-e.getMilliseconds());if(n){var a=3*hl;t=t-a/2+dl(n-t+a/2,a)}return e=Number(e)-t,e>=Oh&&e<=Uh?e:ri}if(typeof e!="string"&&typeof e!="number")return ri;e=String(e);var o=Ro(r),i=e.charAt(0);o&&(i==="G"||i==="g")&&(e=e.slice(1),r="");var l=o&&r.slice(0,7)==="chinese",u=e.match(l?Nj:zj);if(!u)return ri;var s=u[1],f=u[3]||"1",c=Number(u[5]||1),g=Number(u[7]||0),x=Number(u[9]||0),h=Number(u[11]||0);if(o){if(s.length===2)return ri;s=Number(s);var _;try{var T=Do.getComponentMethod("calendars","getCal")(r);if(l){var m=f.charAt(f.length-1)==="i";f=parseInt(f,10),_=T.newDate(s,T.toMonthIndex(s,f,m),c)}else _=T.newDate(s,Number(f),c)}catch(S){return ri}return _?(_.toJD()-Nf)*Ca+g*zf+x*hl+h*O0:ri}s.length===2?s=(Number(s)+2e3-OM)%100+OM:s=Number(s),f-=1;var k=new Date(Date.UTC(2e3,f,c,g,x));return k.setUTCFullYear(s),k.getUTCMonth()!==f||k.getUTCDate()!==c?ri:k.getTime()+h*O0};Oh=ln.MIN_MS=ln.dateTime2ms("-9999");Uh=ln.MAX_MS=ln.dateTime2ms("9999-12-31 23:59:59.9999");ln.isDateTime=function(e,r){return ln.dateTime2ms(e,r)!==ri};function B0(e,r){return String(e+Math.pow(10,r)).slice(1)}var Bh=90*Ca,UM=3*zf,HM=5*hl;ln.ms2DateTime=function(e,r,t){if(typeof e!="number"||!(e>=Oh&&e<=Uh))return ri;r||(r=0);var n=Math.floor(dl(e+.05,1)*10),a=Math.round(e-n/10),o,i,l,u,s,f;if(Ro(t)){var c=Math.floor(a/Ca)+Nf,g=Math.floor(dl(e,Ca));try{o=Do.getComponentMethod("calendars","getCal")(t).fromJD(c).formatDate("yyyy-mm-dd")}catch(x){o=BM("G%Y-%m-%d")(new Date(a))}if(o.charAt(0)==="-")for(;o.length<11;)o="-0"+o.slice(1);else for(;o.length<10;)o="0"+o;i=r=Oh+Ca&&e<=Uh-Ca))return ri;var r=Math.floor(dl(e+.05,1)*10),t=new Date(Math.round(e-r/10)),n=Ij("%Y-%m-%d")(t),a=t.getHours(),o=t.getMinutes(),i=t.getSeconds(),l=t.getUTCMilliseconds()*10+r;return XM(n,a,o,i,l)};function XM(e,r,t,n,a){if((r||t||n||a)&&(e+=" "+B0(r,2)+":"+B0(t,2),(n||a)&&(e+=":"+B0(n,2),a))){for(var o=4;a%10===0;)o-=1,a/=10;e+="."+B0(a,o)}return e}ln.cleanDate=function(e,r,t){if(e===ri)return r;if(ln.isJSDate(e)||typeof e=="number"&&isFinite(e)){if(Ro(t))return ly.error("JS Dates and milliseconds are incompatible with world calendars",e),r;if(e=ln.ms2DateTimeLocal(+e),!e&&r!==void 0)return r}else if(!ln.isDateTime(e,t))return ly.error("unrecognized date",e),r;return e};var Bj=/%\d?f/g,Oj=/%h/g,Uj={1:"1",2:"1",3:"2",4:"2"};function VM(e,r,t,n){e=e.replace(Bj,function(o){var i=Math.min(+o.charAt(1)||6,6),l=(r/1e3%1+2).toFixed(i).slice(2).replace(/0+$/,"")||"0";return l});var a=new Date(Math.floor(r+.05));if(e=e.replace(Oj,function(){return Uj[t("%q")(a)]}),Ro(n))try{e=Do.getComponentMethod("calendars","worldCalFmt")(e,r,n)}catch(o){return"Invalid"}return t(e)(a)}var Hj=[59,59.9,59.99,59.999,59.9999];function Vj(e,r){var t=dl(e+.05,Ca),n=B0(Math.floor(t/zf),2)+":"+B0(dl(Math.floor(t/hl),60),2);if(r!=="M"){YM(r)||(r=0);var a=Math.min(dl(e/O0,60),Hj[r]),o=(100+a).toFixed(r).slice(1);r>0&&(o=o.replace(/0+$/,"").replace(/[\.]$/,"")),n+=":"+o}return n}ln.formatDate=function(e,r,t,n,a,o){if(a=Ro(a)&&a,!r)if(t==="y")r=o.year;else if(t==="m")r=o.month;else if(t==="d")r=o.dayMonth+` +`+o.year;else return Vj(e,t)+` +`+VM(o.dayMonthYear,e,n,a);return VM(r,e,n,a)};var GM=3*Ca;ln.incrementMonth=function(e,r,t){t=Ro(t)&&t;var n=dl(e,Ca);if(e=Math.round(e-n),t)try{var a=Math.round(e/Ca)+Nf,o=Do.getComponentMethod("calendars","getCal")(t),i=o.fromJD(a);return r%12?o.add(i,r,"m"):o.add(i,r/12,"y"),(i.toJD()-Nf)*Ca+n}catch(u){ly.error("invalid ms "+e+" in calendar "+t)}var l=new Date(e+GM);return l.setUTCMonth(l.getUTCMonth()+r)+n-GM};ln.findExactDates=function(e,r){for(var t=0,n=0,a=0,o=0,i,l,u=Ro(r)&&Do.getComponentMethod("calendars","getCal")(r),s=0;s{"use strict";ZM.exports=function(r){return r}});var fy=xe(Fo=>{"use strict";var Gj=ut(),Yj=ll(),Xj=sy(),Wj=(wn(),or(Rn)).BADNUM,uy=1e-9;Fo.findBin=function(e,r,t){if(Gj(r.start))return t?Math.ceil((e-r.start)/r.size-uy)-1:Math.floor((e-r.start)/r.size+uy);var n=0,a=r.length,o=0,i=a>1?(r[a-1]-r[0])/(a-1):1,l,u;for(i>=0?u=t?Zj:Jj:u=t?Kj:$j,e+=i*uy*(t?-1:1)*(i>=0?1:-1);n90&&Yj.log("Long binary search..."),n-1};function Zj(e,r){return er}function Kj(e,r){return e>=r}Fo.sorterAsc=function(e,r){return e-r};Fo.sorterDes=function(e,r){return r-e};Fo.distinctVals=function(e){var r=e.slice();r.sort(Fo.sorterAsc);var t;for(t=r.length-1;t>-1&&r[t]===Wj;t--);for(var n=r[t]-r[0]||1,a=n/(t||1)/1e4,o=[],i,l=0;l<=t;l++){var u=r[l],s=u-i;i===void 0?(o.push(u),i=u):s>a&&(n=Math.min(n,s),o.push(u),i=u)}return{vals:o,minDiff:n}};Fo.roundUp=function(e,r,t){for(var n=0,a=r.length-1,o,i=0,l=t?0:1,u=t?1:0,s=t?Math.ceil:Math.floor;n0&&(n=1),t&&n)return e.sort(r)}return n?e:e.reverse()};Fo.findIndexOfMin=function(e,r){r=r||Xj;for(var t=1/0,n,a=0;ajj});function Qj(e){return Object.keys(e).sort()}var jj,Vh=Ut(()=>{"use strict";jj=Qj});var JM=xe(sn=>{"use strict";var qf=ut(),eee=ba().isArrayOrTypedArray;sn.aggNums=function(e,r,t,n){var a,o;if((!n||n>t.length)&&(n=t.length),qf(r)||(r=!1),eee(t[0])){for(o=new Array(n),a=0;ae.length-1)return e[e.length-1];var t=r%1;return t*e[Math.ceil(r)]+(1-t)*e[Math.floor(r)]}});var eT=xe((f4e,jM)=>{"use strict";var $M=(A0(),or(T0)),cy=$M.mod,ree=$M.modHalf,Bf=Math.PI,pl=2*Bf;function tee(e){return e/180*Bf}function nee(e){return e/Bf*180}function vy(e){return Math.abs(e[1]-e[0])>pl-1e-14}function KM(e,r){return ree(r-e,pl)}function aee(e,r){return Math.abs(KM(e,r))}function QM(e,r){if(vy(r))return!0;var t,n;r[0]n&&(n+=pl);var a=cy(e,pl),o=a+pl;return a>=t&&a<=n||o>=t&&o<=n}function iee(e,r,t,n){if(!QM(r,n))return!1;var a,o;return t[0]=a&&e<=o}function hy(e,r,t,n,a,o,i){a=a||0,o=o||0;var l=vy([t,n]),u,s,f,c,g;l?(u=0,s=Bf,f=pl):t{"use strict";ws.isLeftAnchor=function(r){return r.xanchor==="left"||r.xanchor==="auto"&&r.x<=1/3};ws.isCenterAnchor=function(r){return r.xanchor==="center"||r.xanchor==="auto"&&r.x>1/3&&r.x<2/3};ws.isRightAnchor=function(r){return r.xanchor==="right"||r.xanchor==="auto"&&r.x>=2/3};ws.isTopAnchor=function(r){return r.yanchor==="top"||r.yanchor==="auto"&&r.y>=2/3};ws.isMiddleAnchor=function(r){return r.yanchor==="middle"||r.yanchor==="auto"&&r.y>1/3&&r.y<2/3};ws.isBottomAnchor=function(r){return r.yanchor==="bottom"||r.yanchor==="auto"&&r.y<=1/3}});var aT=xe(Ms=>{"use strict";var dy=(A0(),or(T0)).mod;Ms.segmentsIntersect=nT;function nT(e,r,t,n,a,o,i,l){var u=t-e,s=a-e,f=i-a,c=n-r,g=o-r,x=l-o,h=u*x-f*c;if(h===0)return null;var _=(s*x-f*g)/h,T=(s*c-u*g)/h;return T<0||T>1||_<0||_>1?null:{x:e+u*_,y:r+c*_}}Ms.segmentDistance=function(r,t,n,a,o,i,l,u){if(nT(r,t,n,a,o,i,l,u))return 0;var s=n-r,f=a-t,c=l-o,g=u-i,x=s*s+f*f,h=c*c+g*g,_=Math.min(Gh(s,f,x,o-r,i-t),Gh(s,f,x,l-r,u-t),Gh(c,g,h,r-o,t-i),Gh(c,g,h,n-o,a-i));return Math.sqrt(_)};function Gh(e,r,t,n,a){var o=n*e+a*r;if(o<0)return n*n+a*a;if(o>t){var i=n-e,l=a-r;return i*i+l*l}else{var u=n*r-a*e;return u*u/t}}var Yh,py,tT;Ms.getTextLocation=function(r,t,n,a){if((r!==py||a!==tT)&&(Yh={},py=r,tT=a),Yh[n])return Yh[n];var o=r.getPointAtLength(dy(n-a/2,t)),i=r.getPointAtLength(dy(n+a/2,t)),l=Math.atan((i.y-o.y)/(i.x-o.x)),u=r.getPointAtLength(dy(n,t)),s=(u.x*4+o.x+i.x)/6,f=(u.y*4+o.y+i.y)/6,c={x:s,y:f,theta:l};return Yh[n]=c,c};Ms.clearLocationCache=function(){py=null};Ms.getVisibleSegment=function(r,t,n){var a=t.left,o=t.right,i=t.top,l=t.bottom,u=0,s=r.getTotalLength(),f=s,c,g;function x(_){var T=r.getPointAtLength(_);_===0?c=T:_===s&&(g=T);var m=T.xo?T.x-o:0,k=T.yl?T.y-l:0;return Math.sqrt(m*m+k*k)}for(var h=x(u);h;){if(u+=h+n,u>f)return;h=x(u)}for(h=x(f);h;){if(f-=h+n,u>f)return;h=x(f)}return{min:u,max:f,len:f-u,total:s,isClosed:u===0&&f===s&&Math.abs(c.x-g.x)<.1&&Math.abs(c.y-g.y)<.1}};Ms.findPointOnPath=function(r,t,n,a){a=a||{};for(var o=a.pathLength||r.getTotalLength(),i=a.tolerance||.001,l=a.iterationLimit||30,u=r.getPointAtLength(0)[n]>r.getPointAtLength(o)[n]?-1:1,s=0,f=0,c=o,g,x,h;s0?c=g:f=g,s++}return x}});var Xh=xe(Of=>{"use strict";var Po={};Of.throttle=function(r,t,n){var a=Po[r],o=Date.now();if(!a){for(var i in Po)Po[i].tsa.ts+t){l();return}a.timer=setTimeout(function(){l(),a.timer=null},t)};Of.done=function(e){var r=Po[e];return!r||!r.timer?Promise.resolve():new Promise(function(t){var n=r.onDone;r.onDone=function(){n&&n(),t(),r.onDone=null}})};Of.clear=function(e){if(e)iT(Po[e]),delete Po[e];else for(var r in Po)Of.clear(r)};function iT(e){e&&e.timer!==null&&(clearTimeout(e.timer),e.timer=null)}});var lT=xe((d4e,oT)=>{"use strict";oT.exports=function(r){r._clearResponsive&&(r._clearResponsive(),delete r._clearResponsive)}});var sT=xe((p4e,Wh)=>{"use strict";Wh.exports=gy;Wh.exports.isMobile=gy;Wh.exports.default=gy;var uee=/(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|redmi|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,fee=/CrOS/,cee=/android|ipad|playbook|silk/i;function gy(e){e||(e={});let r=e.ua;if(!r&&typeof navigator!="undefined"&&(r=navigator.userAgent),r&&r.headers&&typeof r.headers["user-agent"]=="string"&&(r=r.headers["user-agent"]),typeof r!="string")return!1;let t=uee.test(r)&&!fee.test(r)||!!e.tablet&&cee.test(r);return!t&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&r.indexOf("Macintosh")!==-1&&r.indexOf("Safari")!==-1&&(t=!0),t}});var fT=xe((g4e,uT)=>{"use strict";var vee=ut(),hee=sT();uT.exports=function(r){var t;if(r&&r.hasOwnProperty("userAgent")?t=r.userAgent:t=dee(),typeof t!="string")return!0;var n=hee({ua:{headers:{"user-agent":t}},tablet:!0,featureDetect:!1});if(!n)for(var a=t.split(" "),o=1;o-1;l--){var u=a[l];if(u.slice(0,8)==="Version/"){var s=u.slice(8).split(".")[0];if(vee(s)&&(s=+s),s>=13)return!0}}}return n};function dee(){var e;return typeof navigator!="undefined"&&(e=navigator.userAgent),e&&e.headers&&typeof e.headers["user-agent"]=="string"&&(e=e.headers["user-agent"]),e}});var vT=xe((y4e,cT)=>{"use strict";var pee=lt();cT.exports=function(r,t,n){var a=r.selectAll("g."+n.replace(/\s/g,".")).data(t,function(i){return i[0].trace.uid});a.exit().remove(),a.enter().append("g").attr("class",n),a.order();var o=r.classed("rangeplot")?"nodeRangePlot3":"node3";return a.each(function(i){i[0][o]=pee.select(this)}),a}});var dT=xe((m4e,hT)=>{"use strict";var gee=Cr();hT.exports=function(r,t){for(var n=r._context.locale,a=0;a<2;a++){for(var o=r._context.locales,i=0;i<2;i++){var l=(o[n]||{}).dictionary;if(l){var u=l[t];if(u)return u}o=gee.localeRegistry}var s=n.split("-")[0];if(s===n)break;n=s}return t}});var gT=xe((b4e,pT)=>{"use strict";pT.exports=function(r){for(var t={},n=[],a=0,o=0;o{"use strict";yT.exports=function(r){for(var t=bee(r)?mee:yee,n=[],a=0;a{"use strict";bT.exports=function(r,t){if(!t)return r;var n=1/Math.abs(t),a=n>1?(n*r+n*t)/n:r+t,o=String(a).length;if(o>16){var i=String(t).length,l=String(r).length;if(o>=l+i){var u=parseFloat(a).toPrecision(12);u.indexOf("e+")===-1&&(a=+u)}}return a}});var wT={};Ht(wT,{default:()=>wee});function _ee(e){return typeof e=="string"&&(e=e.replace(xee,"")),(0,_T.default)(e)?Number(e):void 0}var _T,xee,wee,MT=Ut(()=>{"use strict";_T=Q_(ut());wn();xee=/^['"%,$#\s']+|[, ]|['"%,$#\s']+$/g;wee=_ee});var kT=xe((M4e,AT)=>{"use strict";var Mee=/<[^>]*>/g,Tee=/[\p{S}\p{P}]/gu,Aee=/[\p{Cc}\p{Cf}\uFE00-\uFE0F\u20E3]/gu,kee=/�/g,See=/\s+/g,Zh="-",TT=Zh.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),Cee=new RegExp(TT+"{3,}","g"),Eee=new RegExp(TT+"$","g"),Lee=60;function Dee(e){return typeof e.toWellFormed=="function"?e.toWellFormed():new TextDecoder().decode(new TextEncoder().encode(e))}AT.exports=function(r,t=Lee){var n=Dee(r!=null?r:"").replace(kee,"").replace(Mee," ").replace(Tee,a=>a===Zh?a:"").toLowerCase().trim().replace(See,Zh).replace(Aee,"").replace(Cee,Zh);return n.length<=t?n:Array.from(n).slice(0,t).join("").replace(Eee,"")}});var tr=xe((T4e,qT)=>{"use strict";var Uf=lt(),Ree=w0().utcFormat,Fee=fg().format,RT=ut(),FT=(wn(),or(Rn)),PT=FT.FP_SAFE,Pee=-PT,ST=FT.BADNUM,Oe={};qT.exports=Oe;Oe.adjustFormat=function(r){if(!r||/^\d[.]\df/.test(r)||/[.]\d%/.test(r))return r;if(r==="0.f")return"~f";if(/^\d%/.test(r))return"~%";if(/^\ds/.test(r))return"~s";var t=(r.match(/^[+\-( ]?/)||[""])[0],n=r.slice(t.length);return!/^[~,.0$#]/.test(n)&&/[&fps]/.test(n)?t+"~"+n:r};var CT={};Oe.warnBadFormat=function(e){var r=String(e);CT[r]||(CT[r]=1,Oe.warn('encountered bad format: "'+r+'"'))};Oe.noFormat=function(e){return String(e)};Oe.numberFormat=function(e){var r;try{r=Fee(Oe.adjustFormat(e))}catch(t){return Oe.warnBadFormat(e),Oe.noFormat}return r};Oe.nestedProperty=Kv();Oe.keyedContainer=_7();Oe.relativeAttr=M7();Oe.isPlainObject=ss();Oe.toLogRange=jv();Oe.relinkPrivateKeys=S7();var yl=ba();Oe.isArrayBuffer=yl.isArrayBuffer;Oe.isTypedArray=yl.isTypedArray;Oe.isArrayOrTypedArray=yl.isArrayOrTypedArray;Oe.isArray1D=yl.isArray1D;Oe.ensureArray=yl.ensureArray;Oe.concat=yl.concat;Oe.maxRowLength=yl.maxRowLength;Oe.minRowLength=yl.minRowLength;var IT=(A0(),or(T0));Oe.mod=IT.mod;Oe.modHalf=IT.modHalf;var ml=Z8();Oe.valObjectMeta=ml.valObjectMeta;Oe.coerce=ml.coerce;Oe.coerce2=ml.coerce2;Oe.coerceFont=ml.coerceFont;Oe.coercePattern=ml.coercePattern;Oe.coerceHoverinfo=ml.coerceHoverinfo;Oe.coerceSelectionMarkerOpacity=ml.coerceSelectionMarkerOpacity;Oe.validate=ml.validate;var qa=WM();Oe.dateTime2ms=qa.dateTime2ms;Oe.isDateTime=qa.isDateTime;Oe.ms2DateTime=qa.ms2DateTime;Oe.ms2DateTimeLocal=qa.ms2DateTimeLocal;Oe.cleanDate=qa.cleanDate;Oe.isJSDate=qa.isJSDate;Oe.formatDate=qa.formatDate;Oe.incrementMonth=qa.incrementMonth;Oe.dateTick0=qa.dateTick0;Oe.dfltRange=qa.dfltRange;Oe.findExactDates=qa.findExactDates;Oe.MIN_MS=qa.MIN_MS;Oe.MAX_MS=qa.MAX_MS;var Ts=fy();Oe.findBin=Ts.findBin;Oe.sorterAsc=Ts.sorterAsc;Oe.sorterDes=Ts.sorterDes;Oe.distinctVals=Ts.distinctVals;Oe.roundUp=Ts.roundUp;Oe.sort=Ts.sort;Oe.findIndexOfMin=Ts.findIndexOfMin;Oe.sortObjectKeys=(Vh(),or(Hh)).default;var Io=JM();Oe.aggNums=Io.aggNums;Oe.len=Io.len;Oe.mean=Io.mean;Oe.geometricMean=Io.geometricMean;Oe.median=Io.median;Oe.midRange=Io.midRange;Oe.variance=Io.variance;Oe.stdev=Io.stdev;Oe.interp=Io.interp;var Ci=Rh();Oe.init2dArray=Ci.init2dArray;Oe.transposeRagged=Ci.transposeRagged;Oe.dot=Ci.dot;Oe.translationMatrix=Ci.translationMatrix;Oe.rotationMatrix=Ci.rotationMatrix;Oe.rotationXYMatrix=Ci.rotationXYMatrix;Oe.apply3DTransform=Ci.apply3DTransform;Oe.apply2DTransform=Ci.apply2DTransform;Oe.apply2DTransform2=Ci.apply2DTransform2;Oe.convertCssMatrix=Ci.convertCssMatrix;Oe.inverseTransformMatrix=Ci.inverseTransformMatrix;var no=eT();Oe.deg2rad=no.deg2rad;Oe.rad2deg=no.rad2deg;Oe.angleDelta=no.angleDelta;Oe.angleDist=no.angleDist;Oe.isFullCircle=no.isFullCircle;Oe.isAngleInsideSector=no.isAngleInsideSector;Oe.isPtInsideSector=no.isPtInsideSector;Oe.pathArc=no.pathArc;Oe.pathSector=no.pathSector;Oe.pathAnnulus=no.pathAnnulus;var V0=rT();Oe.isLeftAnchor=V0.isLeftAnchor;Oe.isCenterAnchor=V0.isCenterAnchor;Oe.isRightAnchor=V0.isRightAnchor;Oe.isTopAnchor=V0.isTopAnchor;Oe.isMiddleAnchor=V0.isMiddleAnchor;Oe.isBottomAnchor=V0.isBottomAnchor;var G0=aT();Oe.segmentsIntersect=G0.segmentsIntersect;Oe.segmentDistance=G0.segmentDistance;Oe.getTextLocation=G0.getTextLocation;Oe.clearLocationCache=G0.clearLocationCache;Oe.getVisibleSegment=G0.getVisibleSegment;Oe.findPointOnPath=G0.findPointOnPath;var Kh=Rt();Oe.extendFlat=Kh.extendFlat;Oe.extendDeep=Kh.extendDeep;Oe.extendDeepAll=Kh.extendDeepAll;Oe.extendDeepNoArrays=Kh.extendDeepNoArrays;var yy=ll();Oe.log=yy.log;Oe.warn=yy.warn;Oe.error=yy.error;var Iee=(I0(),or(Ff));Oe.counterRegex=Iee.counter;var my=Xh();Oe.throttle=my.throttle;Oe.throttleDone=my.done;Oe.clearThrottle=my.clear;var Ei=Pf();Oe.getGraphDiv=Ei.getGraphDiv;Oe.isPlotDiv=Ei.isPlotDiv;Oe.removeElement=Ei.removeElement;Oe.addStyleRule=Ei.addStyleRule;Oe.addRelatedStyleRule=Ei.addRelatedStyleRule;Oe.deleteRelatedStyleRule=Ei.deleteRelatedStyleRule;Oe.setStyleOnHover=Ei.setStyleOnHover;Oe.getFullTransformMatrix=Ei.getFullTransformMatrix;Oe.getElementTransformMatrix=Ei.getElementTransformMatrix;Oe.getElementAndAncestors=Ei.getElementAndAncestors;Oe.equalDomRects=Ei.equalDomRects;Oe.clearResponsive=lT();Oe.preserveDrawingBuffer=fT();Oe.makeTraceGroups=vT();Oe._=dT();Oe.notifier=V3();Oe.filterUnique=gT();Oe.filterVisible=mT();Oe.pushUnique=Q3();Oe.increment=xT();Oe.cleanNumber=(MT(),or(wT)).default;Oe.slugify=kT();Oe.ensureNumber=function(r){return RT(r)?(r=Number(r),r>PT||r=r?!1:RT(e)&&e>=0&&e%1===0};Oe.noop=Dh();Oe.identity=sy();Oe.repeat=function(e,r){for(var t=new Array(r),n=0;nt?Math.max(t,Math.min(r,e)):Math.max(r,Math.min(t,e))};Oe.bBoxIntersect=function(e,r,t){return t=t||0,e.left<=r.right+t&&r.left<=e.right+t&&e.top<=r.bottom+t&&r.top<=e.bottom+t};Oe.simpleMap=function(e,r,t,n,a){for(var o=e.length,i=new Array(o),l=0;l=Math.pow(2,t)?a>10?(Oe.warn("randstr failed uniqueness"),i):e(r,t,n,(a||0)+1):i};Oe.OptionControl=function(e,r){e||(e={}),r||(r="opt");var t={};return t.optionList=[],t._newoption=function(n){n[r]=e,t[n.name]=n,t.optionList.push(n)},t["_"+r]=e,t};Oe.smooth=function(e,r){if(r=Math.round(r)||0,r<2)return e;var t=e.length,n=2*t,a=2*r-1,o=new Array(a),i=new Array(t),l,u,s,f;for(l=0;l=n&&(s-=n*Math.floor(s/n)),s<0?s=-1-s:s>=t&&(s=n-1-s),f+=e[s]*o[u];i[l]=f}return i};Oe.syncOrAsync=function(e,r,t){var n,a;function o(){return Oe.syncOrAsync(e,r,t)}for(;e.length;)if(a=e.splice(0,1)[0],n=a(r),n&&n.then)return n.then(o);return t&&t(r)};Oe.stripTrailingSlash=function(e){return e.slice(-1)==="/"?e.slice(0,-1):e};Oe.noneOrAll=function(e,r,t){if(e){var n=!1,a=!0,o,i;for(o=0;o0?a:0})};Oe.fillArray=function(e,r,t,n){if(n=n||Oe.identity,Oe.isArrayOrTypedArray(e))for(var a=0;aqee.test(window.navigator.userAgent);var Bee=/Firefox\/(\d+)\.\d+/;Oe.getFirefoxVersion=function(){var e=Bee.exec(window.navigator.userAgent);if(e&&e.length===2){var r=parseInt(e[1]);if(!isNaN(r))return r}return null};Oe.isD3Selection=function(e){return e instanceof Uf.selection};Oe.ensureSingle=function(e,r,t,n){var a=e.select(r+(t?"."+t:""));if(a.size())return a;var o=e.append(r);return t&&o.classed(t,!0),n&&o.call(n),o};Oe.ensureSingleById=function(e,r,t,n){var a=e.select(r+"#"+t);if(a.size())return a;var o=e.append(r).attr("id",t);return n&&o.call(n),o};Oe.objectFromPath=function(e,r){for(var t=e.split("."),n,a=n={},o=0;o1?a+i[1]:"";if(o&&(i.length>1||l.length>4||t))for(;n.test(l);)l=l.replace(n,"$1"+o+"$2");return l+u};Oe.TEMPLATE_STRING_REGEX=/%{([^\s%{}:]*)([:|\|][^}]*)?}/g;var NT=/^\w*$/;Oe.templateString=function(e,r){var t={};return e.replace(Oe.TEMPLATE_STRING_REGEX,function(n,a){var o;return NT.test(a)?o=r[a]:(t[a]=t[a]||Oe.nestedProperty(r,a).get,o=t[a](!0)),o!==void 0?o:""})};var Hee={max:10,count:0,name:"hovertemplate"};Oe.hovertemplateString=e=>by(Ot(wt({},e),{opts:Hee}));var Vee={max:10,count:0,name:"texttemplate"};Oe.texttemplateString=e=>by(Ot(wt({},e),{opts:Vee}));var Gee=/^(\S+)([\*\/])(-?\d+(\.\d+)?)$/;function Yee(e){var r=e.match(Gee);return r?{key:r[1],op:r[2],number:Number(r[3])}:{key:e,op:null,number:null}}var Xee={max:10,count:0,name:"texttemplate",parseMultDiv:!0};Oe.texttemplateStringForShapes=e=>by(Ot(wt({},e),{opts:Xee}));var ET=/^[:|\|]/;function by({data:e=[],locale:r,fallback:t,labels:n={},opts:a,template:o}){return o.replace(Oe.TEMPLATE_STRING_REGEX,(i,l,u)=>{let s=["xother","yother"].includes(l),f=["_xother","_yother"].includes(l),c=["_xother_","_yother_"].includes(l),g=["xother_","yother_"].includes(l),x=s||f||g||c;(f||c)&&(l=l.substring(1)),(g||c)&&(l=l.substring(0,l.length-1));let h=null,_=null;if(a.parseMultDiv){var T=Yee(l);l=T.key,h=T.op,_=T.number}let m;if(x){if(n[l]===void 0)return"";m=n[l]}else for(let M of e)if(M){if(M.hasOwnProperty(l)){m=M[l];break}if(NT.test(l)||(m=Oe.nestedProperty(M,l).get(!0)),m!==void 0)break}if(m===void 0){let{count:M,max:d,name:w}=a,y=t===!1?i:t;return M=$h&&i<=LT,s=l>=$h&&l<=LT;if(u&&(n=10*n+i-$h),s&&(a=10*a+l-$h),!u||!s){if(n!==a)return n-a;if(i!==l)return i-l}}return a-n};var H0=2e9;Oe.seedPseudoRandom=function(){H0=2e9};Oe.pseudoRandom=function(){var e=H0;return H0=(69069*H0+1)%4294967296,Math.abs(H0-e)<429496729?Oe.pseudoRandom():H0/4294967296};Oe.fillText=function(e,r,t){var n=Array.isArray(t)?function(i){t.push(i)}:function(i){t.text=i},a=Oe.extractOption(e,r,"htx","hovertext");if(Oe.isValidTextValue(a))return n(a);var o=Oe.extractOption(e,r,"tx","text");if(Oe.isValidTextValue(o))return n(o)};Oe.isValidTextValue=function(e){return e||e===0};Oe.formatPercent=function(e,r){r=r||0;for(var t=(Math.round(100*e*Math.pow(10,r))*Math.pow(.1,r)).toFixed(r)+"%",n=0;n1&&(s=1):s=0,Oe.strTranslate(a-s*(t+i),o-s*(n+l))+Oe.strScale(s)+(u?"rotate("+u+(r?"":" "+t+" "+n)+")":"")};Oe.setTransormAndDisplay=function(e,r){e.attr("transform",Oe.getTextTransform(r)),e.style("display",r.scale?null:"none")};Oe.ensureUniformFontSize=function(e,r){var t=Oe.extendFlat({},r);return t.size=Math.max(r.size,e._fullLayout.uniformtext.minsize||0),t};Oe.join2=function(e,r,t){var n=e.length;return n>1?e.slice(0,-1).join(r)+t+e[n-1]:e.join(r)};Oe.bigFont=function(e){return Math.round(1.2*e)};var DT=Oe.getFirefoxVersion(),Wee=DT!==null&&DT<86;Oe.getPositionFromD3Event=function(){return Wee?[Uf.event.layerX,Uf.event.layerY]:[Uf.event.offsetX,Uf.event.offsetY]}});var UT=xe(()=>{"use strict";var Zee=tr(),BT={"X,X div":'direction:ltr;font-family:"Open Sans",verdana,arial,sans-serif;margin:0;padding:0;border: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 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:focus-within .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-group a":"display:grid;place-content:center;","X .modebar-btn":"position:relative;font-size:16px;padding:3px 4px;height:22px;cursor:pointer;line-height:normal;box-sizing:border-box;border:none;background:rgba(0,0,0,0);","X .modebar-btn svg":"position:relative;","X .modebar-btn:focus-visible":"outline:1px solid #000;outline-offset:1px;border-radius:3px;","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;","X .plotly-cloud-dialog":'font-family:"Open Sans",verdana,arial,sans-serif;position:absolute;top:0;left:0;width:100%;height:100%;z-index:1001;display:flex;align-items:center;justify-content:center;background-color:rgba(0,0,0,.4);',"X .plotly-cloud-dialog .plotly-cloud-dialog-box":"box-sizing:border-box;min-width:300px;max-width:420px;padding:20px 24px;background-color:#fff;border:1px solid #e0e2e5;border-radius:4px;box-shadow:0 4px 16px rgba(0,0,0,.25);font-size:13px;color:#2a3f5f;","X .plotly-cloud-dialog .plotly-cloud-dialog-title":"font-size:16px;font-weight:bold;margin-bottom:12px;","X .plotly-cloud-dialog .plotly-cloud-dialog-message":"line-height:1.5;overflow-wrap:break-word;word-wrap:break-word;","X .plotly-cloud-dialog .plotly-cloud-dialog-message--hostname":"font-weight:bold;text-decoration:underline;","X .plotly-cloud-dialog .plotly-cloud-dialog-message--account":"margin-top:16px;padding:8px;border-radius:3px;font-size:.9em;background-color:#edf1f8;","X .plotly-cloud-dialog .plotly-cloud-dialog-buttons":"display:flex;justify-content:flex-end;margin-top:20px;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn":"font-family:inherit;font-size:13px;padding:7px 16px;margin-left:8px;border-radius:3px;border:1px solid rgba(0,0,0,0);cursor:pointer;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn:focus-visible":"outline:2px solid #447adb;outline-offset:1px;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn--cancel":"background-color:#f3f3f3;margin-left:auto;color:#777;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn--cancel:hover":"background-color:#e0e2e5;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn--confirm":"background-color:#447adb;color:#fff;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn--confirm:hover":"background-color:#1d3b84;",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(xy in BT)OT=xy.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier"),Zee.addStyleRule(OT,BT[xy]);var OT,xy});var _y=xe((C4e,HT)=>{HT.exports=!0});var My=xe((E4e,VT)=>{"use strict";var Jee=_y(),wy;typeof window.matchMedia=="function"?wy=!window.matchMedia("(hover: none)").matches:wy=Jee;VT.exports=wy});var e1=xe((L4e,Ty)=>{"use strict";var Y0=typeof Reflect=="object"?Reflect:null,GT=Y0&&typeof Y0.apply=="function"?Y0.apply:function(r,t,n){return Function.prototype.apply.call(r,t,n)},Qh;Y0&&typeof Y0.ownKeys=="function"?Qh=Y0.ownKeys:Object.getOwnPropertySymbols?Qh=function(r){return Object.getOwnPropertyNames(r).concat(Object.getOwnPropertySymbols(r))}:Qh=function(r){return Object.getOwnPropertyNames(r)};function $ee(e){console&&console.warn&&console.warn(e)}var XT=Number.isNaN||function(r){return r!==r};function Pt(){Pt.init.call(this)}Ty.exports=Pt;Ty.exports.once=ere;Pt.EventEmitter=Pt;Pt.prototype._events=void 0;Pt.prototype._eventsCount=0;Pt.prototype._maxListeners=void 0;var YT=10;function jh(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(Pt,"defaultMaxListeners",{enumerable:!0,get:function(){return YT},set:function(e){if(typeof e!="number"||e<0||XT(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");YT=e}});Pt.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};Pt.prototype.setMaxListeners=function(r){if(typeof r!="number"||r<0||XT(r))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+r+".");return this._maxListeners=r,this};function WT(e){return e._maxListeners===void 0?Pt.defaultMaxListeners:e._maxListeners}Pt.prototype.getMaxListeners=function(){return WT(this)};Pt.prototype.emit=function(r){for(var t=[],n=1;n0&&(i=t[0]),i instanceof Error)throw i;var l=new Error("Unhandled error."+(i?" ("+i.message+")":""));throw l.context=i,l}var u=o[r];if(u===void 0)return!1;if(typeof u=="function")GT(u,this,t);else for(var s=u.length,f=QT(u,s),n=0;n0&&i.length>a&&!i.warned){i.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+i.length+" "+String(r)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=r,l.count=i.length,$ee(l)}return e}Pt.prototype.addListener=function(r,t){return ZT(this,r,t,!1)};Pt.prototype.on=Pt.prototype.addListener;Pt.prototype.prependListener=function(r,t){return ZT(this,r,t,!0)};function Kee(){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 JT(e,r,t){var n={fired:!1,wrapFn:void 0,target:e,type:r,listener:t},a=Kee.bind(n);return a.listener=t,n.wrapFn=a,a}Pt.prototype.once=function(r,t){return jh(t),this.on(r,JT(this,r,t)),this};Pt.prototype.prependOnceListener=function(r,t){return jh(t),this.prependListener(r,JT(this,r,t)),this};Pt.prototype.removeListener=function(r,t){var n,a,o,i,l;if(jh(t),a=this._events,a===void 0)return this;if(n=a[r],n===void 0)return this;if(n===t||n.listener===t)--this._eventsCount===0?this._events=Object.create(null):(delete a[r],a.removeListener&&this.emit("removeListener",r,n.listener||t));else if(typeof n!="function"){for(o=-1,i=n.length-1;i>=0;i--)if(n[i]===t||n[i].listener===t){l=n[i].listener,o=i;break}if(o<0)return this;o===0?n.shift():Qee(n,o),n.length===1&&(a[r]=n[0]),a.removeListener!==void 0&&this.emit("removeListener",r,l||t)}return this};Pt.prototype.off=Pt.prototype.removeListener;Pt.prototype.removeAllListeners=function(r){var t,n,a;if(n=this._events,n===void 0)return this;if(n.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):n[r]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete n[r]),this;if(arguments.length===0){var o=Object.keys(n),i;for(a=0;a=0;a--)this.removeListener(r,t[a]);return this};function $T(e,r,t){var n=e._events;if(n===void 0)return[];var a=n[r];return a===void 0?[]:typeof a=="function"?t?[a.listener||a]:[a]:t?jee(a):QT(a,a.length)}Pt.prototype.listeners=function(r){return $T(this,r,!0)};Pt.prototype.rawListeners=function(r){return $T(this,r,!1)};Pt.listenerCount=function(e,r){return typeof e.listenerCount=="function"?e.listenerCount(r):KT.call(e,r)};Pt.prototype.listenerCount=KT;function KT(e){var r=this._events;if(r!==void 0){var t=r[e];if(typeof t=="function")return 1;if(t!==void 0)return t.length}return 0}Pt.prototype.eventNames=function(){return this._eventsCount>0?Qh(this._events):[]};function QT(e,r){for(var t=new Array(r),n=0;n{"use strict";var Ay=e1().EventEmitter,tre={init:function(e){if(e._ev instanceof Ay)return e;var r=new Ay,t=new Ay;return e._ev=r,e._internalEv=t,e.on=r.on.bind(r),e.once=r.once.bind(r),e.removeListener=r.removeListener.bind(r),e.removeAllListeners=r.removeAllListeners.bind(r),e._internalOn=t.on.bind(t),e._internalOnce=t.once.bind(t),e._removeInternalListener=t.removeListener.bind(t),e._removeAllInternalListeners=t.removeAllListeners.bind(t),e.emit=function(n,a){r.emit(n,a),t.emit(n,a)},typeof e.addEventListener=="function"&&e.addEventListener("wheel",()=>{},{passive:!0}),e},triggerHandler:function(e,r,t){var n,a=e._ev;if(!a)return;var o=a._events[r];if(!o)return;function i(u){if(u.listener){if(a.removeListener(r,u.listener),!u.fired)return u.fired=!0,u.listener.apply(a,[t])}else return u.apply(a,[t])}o=Array.isArray(o)?o:[o];var l;for(l=0;l{"use strict";var rA=tr(),nre=ol().dfltConfig;function are(e,r){for(var t=[],n,a=0;anre.queueLength&&(e.undoQueue.queue.shift(),e.undoQueue.index--)};zo.startSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!0,e.undoQueue.beginSequence=!0};zo.stopSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!1,e.undoQueue.beginSequence=!1};zo.undo=function(r){var t,n;if(!(r.undoQueue===void 0||isNaN(r.undoQueue.index)||r.undoQueue.index<=0)){for(r.undoQueue.index--,t=r.undoQueue.queue[r.undoQueue.index],r.undoQueue.inSequence=!0,n=0;n=r.undoQueue.queue.length)){for(t=r.undoQueue.queue[r.undoQueue.index],r.undoQueue.inSequence=!0,n=0;n{"use strict";aA.exports={_isLinkedToArray:"frames_entry",group:{valType:"string"},name:{valType:"string"},traces:{valType:"any"},baseframe:{valType:"string"},data:{valType:"any"},layout:{valType:"any"}}});var Z0=xe(yn=>{"use strict";var ti=Cr(),Vf=tr(),t1=Zn(),Sy=q0(),ire=ky(),ore=If(),lre=ol().configAttributes,iA=ua(),Li=Vf.extendDeepAll,X0=Vf.isPlainObject,sre=Vf.isArrayOrTypedArray,n1=Vf.nestedProperty,ure=Vf.valObjectMeta,Cy="_isSubplotObj",a1="_isLinkedToArray",fre="_arrayAttrRegexps",lA="_deprecated",Ey=[Cy,a1,fre,lA];yn.IS_SUBPLOT_OBJ=Cy;yn.IS_LINKED_TO_ARRAY=a1;yn.DEPRECATED=lA;yn.UNDERSCORE_ATTRS=Ey;yn.get=function(){var e={};return ti.allTypes.forEach(function(r){e[r]=vre(r)}),{defs:{valObjects:ure,metaKeys:Ey.concat(["description","role","editType","impliedEdits"]),editType:{traces:iA.traces,layout:iA.layout},impliedEdits:{}},traces:e,layout:hre(),frames:dre(),animation:W0(ore),config:W0(lre)}};yn.crawl=function(e,r,t,n){var a=t||0;n=n||"",Object.keys(e).forEach(function(o){var i=e[o];if(Ey.indexOf(o)===-1){var l=(n?n+".":"")+o;r(i,o,e,a,l),!yn.isValObject(i)&&X0(i)&&o!=="impliedEdits"&&yn.crawl(i,r,a+1,l)}})};yn.isValObject=function(e){return e&&e.valType!==void 0};yn.findArrayAttributes=function(e){var r=[],t=[],n=[],a,o;function i(u,s,f,c){t=t.slice(0,c).concat([s]),n=n.slice(0,c).concat([u&&u._isLinkedToArray]);var g=u&&(u.valType==="data_array"||u.arrayOk===!0)&&!(t[c-1]==="colorbar"&&(s==="ticktext"||s==="tickvals"));g&&l(a,0,"")}function l(u,s,f){var c=u[t[s]],g=f+t[s];if(s===t.length-1)sre(c)&&r.push(o+g);else if(n[s]){if(Array.isArray(c))for(var x=0;x=o.length)return!1;if(e.dimensions===2){if(t++,r.length===t)return e;var i=r[t];if(!r1(i))return!1;e=o[a][i]}else e=o[a]}else e=o}}return e}function r1(e){return e===Math.round(e)&&e>=0}function vre(e){var r,t;r=ti.modules[e]._module,t=r.basePlotModule;var n={};n.type=null;var a=Li({},t1),o=Li({},r.attributes);yn.crawl(o,function(u,s,f,c,g){n1(a,g).set(void 0),u===void 0&&n1(o,g).set(void 0)}),Li(n,a),ti.traceIs(e,"noOpacity")&&delete n.opacity,ti.traceIs(e,"showLegend")||(delete n.showlegend,delete n.legendgroup),ti.traceIs(e,"noHover")&&(delete n.hoverinfo,delete n.hoverlabel),r.selectPoints||delete n.selectedpoints,Li(n,o),t.attributes&&Li(n,t.attributes),n.type=e;var i={meta:r.meta||{},categories:r.categories||{},animatable:!!r.animatable,type:e,attributes:W0(n)};if(r.layoutAttributes){var l={};Li(l,r.layoutAttributes),i.layoutAttributes=W0(l)}return r.animatable||yn.crawl(i,function(u){yn.isValObject(u)&&"anim"in u&&delete u.anim}),i}function hre(){var e={},r,t;Li(e,Sy);for(r in ti.subplotsRegistry)if(t=ti.subplotsRegistry[r],!!t.layoutAttributes)if(Array.isArray(t.attr))for(var n=0;n{"use strict";var J0=tr(),bre=Zn(),bl="templateitemname",Ly={name:{valType:"string",editType:"none"}};Ly[bl]={valType:"string",editType:"calc"};As.templatedArray=function(e,r){return r._isLinkedToArray=e,r.name=Ly.name,r[bl]=Ly[bl],r};As.traceTemplater=function(e){var r={},t,n;for(t in e)n=e[t],Array.isArray(n)&&n.length&&(r[t]=0);function a(o){t=J0.coerce(o,{},bre,"type");var i={type:t,_template:null};if(t in r){n=e[t];var l=r[t]%n.length;r[t]++,i._template=n[l]}return i}return{newTrace:a}};As.newContainer=function(e,r,t){var n=e._template,a=n&&(n[r]||t&&n[t]);J0.isPlainObject(a)||(a=null);var o=e[r]={_template:a};return o};As.arrayTemplater=function(e,r,t){var n=e._template,a=n&&n[fA(r)],o=n&&n[r];(!Array.isArray(o)||!o.length)&&(o=[]);var i={};function l(s){var f={name:s.name,_input:s},c=f[bl]=s[bl];if(!uA(c))return f._template=a,f;for(var g=0;g=n&&(t._input||{})._templateitemname;o&&(a=n);var i=r+"["+a+"]",l;function u(){l={},o&&(l[i]={},l[i][bl]=o)}u();function s(x,h){l[x]=h}function f(x,h){o?J0.nestedProperty(l[i],x).set(h):l[i+"."+x]=h}function c(){var x=l;return u(),x}function g(x,h){x&&f(x,h);var _=c();for(var T in _)J0.nestedProperty(e,T).set(_[T])}return{modifyBase:s,modifyItem:f,getUpdateObj:c,applyUpdate:g}}});var An={};Ht(An,{AX_ID_PATTERN:()=>Tre,AX_NAME_PATTERN:()=>Are,DFLTRANGEX:()=>Fre,DFLTRANGEY:()=>Pre,DRAGGERSIZE:()=>Dre,HOUR_PATTERN:()=>Sre,MINDRAG:()=>Ere,MINZOOM:()=>Lre,REDRAWDELAY:()=>Rre,SUBPLOT_PATTERN:()=>kre,WEEKDAY_PATTERN:()=>Cre,attrRegex:()=>_re,clipOnAxisFalseQuery:()=>zre,idRegex:()=>xre,layerValue2layerClass:()=>Nre,traceLayerClasses:()=>Ire,xAxisMatch:()=>wre,yAxisMatch:()=>Mre,zindexSeparator:()=>qre});var xre,_re,wre,Mre,Tre,Are,kre,Sre,Cre,Ere,Lre,Dre,Rre,Fre,Pre,Ire,zre,Nre,qre,kn=Ut(()=>{"use strict";I0();xre={x:xs("x","( domain)?"),y:xs("y","( domain)?")},_re=xs("[xy]axis"),wre=xs("xaxis"),Mre=xs("yaxis"),Tre=/^[xyz][0-9]*( domain)?$/,Are=/^[xyz]axis[0-9]*$/,kre=/^x([0-9]*)y([0-9]*)$/,Sre="hour",Cre="day of week",Ere=8,Lre=20,Dre=20,Rre=50,Fre=[-1,6],Pre=[-1,4],Ire=["imagelayer","heatmaplayer","contourcarpetlayer","contourlayer","funnellayer","waterfalllayer","barlayer","carpetlayer","violinlayer","boxlayer","ohlclayer","scattercarpetlayer","scatterlayer"],zre=[".scatterlayer",".barlayer",".funnellayer",".waterfalllayer"],Nre={"above traces":"above","below traces":"below"},qre="z"});var mn=xe(Ea=>{"use strict";var Bre=Cr(),Dy=(kn(),or(An));Ea.id2name=function(r){if(!(typeof r!="string"||!r.match(Dy.AX_ID_PATTERN))){var t=r.split(" ")[0].slice(1);return t==="1"&&(t=""),r.charAt(0)+"axis"+t}};Ea.name2id=function(r){if(r.match(Dy.AX_NAME_PATTERN)){var t=r.slice(5);return t==="1"&&(t=""),r.charAt(0)+t}};Ea.cleanId=function(r,t,n){var a=/( domain)$/.test(r);if(!(typeof r!="string"||!r.match(Dy.AX_ID_PATTERN))&&!(t&&r.charAt(0)!==t)&&!(a&&!n)){var o=r.split(" ")[0].slice(1).replace(/^0+/,"");return o==="1"&&(o=""),r.charAt(0)+o+(a&&n?" domain":"")}};Ea.list=function(e,r,t){var n=e._fullLayout;if(!n)return[];var a=Ea.listIds(e,r),o=new Array(a.length),i;for(i=0;in?1:-1:+(e.slice(1)||1)-+(r.slice(1)||1)};Ea.ref2id=function(e){return/^[xyz]/.test(e)?e.split(" ")[0]:!1};function cA(e,r){if(r&&r.length){for(var t=0;t{"use strict";function Ore(e){var r=e._fullLayout._zoomlayer;r&&r.selectAll(".outline-controllers").remove()}function Ure(e){var r=e._fullLayout._zoomlayer;r&&r.selectAll(".select-outline").remove(),e._fullLayout._outlining=!1}vA.exports={clearOutlineControllers:Ore,clearOutline:Ure}});var i1=xe((B4e,hA)=>{"use strict";hA.exports={scattermode:{valType:"enumerated",values:["group","overlay"],dflt:"overlay",editType:"calc"},scattergap:{valType:"number",min:0,max:1,editType:"calc"}}});var Gf=xe(l1=>{"use strict";var o1=Cr(),O4e=(kn(),or(An)).SUBPLOT_PATTERN;l1.getSubplotCalcData=function(e,r,t){var n=o1.subplotsRegistry[r];if(!n)return[];for(var a=n.attr,o=[],i=0;i{"use strict";var Hre=Cr(),$0=tr();ks.manageCommandObserver=function(e,r,t,n){var a={},o=!0;r&&r._commandObserver&&(a=r._commandObserver),a.cache||(a.cache={}),a.lookupTable={};var i=ks.hasSimpleAPICommandBindings(e,t,a.lookupTable);if(r&&r._commandObserver){if(i)return a;if(r._commandObserver.remove)return r._commandObserver.remove(),r._commandObserver=null,a}if(i){dA(e,i,a.cache),a.check=function(){if(o){var f=dA(e,i,a.cache);return f.changed&&n&&a.lookupTable[f.value]!==void 0&&(a.disable(),Promise.resolve(n({value:f.value,type:i.type,prop:i.prop,traces:i.traces,index:a.lookupTable[f.value]})).then(a.enable,a.enable)),f.changed}};for(var l=["plotly_relayout","plotly_redraw","plotly_restyle","plotly_update","plotly_animatingframe","plotly_afterplot"],u=0;u0?".":"")+a;$0.isPlainObject(o)?Ry(o,r,i,n+1):r(i,a,o)}})}});var Sn=xe((G4e,SA)=>{"use strict";var V4e=lt(),Gre=w0().timeFormatLocale,Yre=fg().formatLocale,Yf=ut(),Xre=vg(),Wre=uf().version,ft=Cr(),Zre=Z0(),Jre=Tt(),mr=tr(),$re=Zr(),mA=(wn(),or(Rn)).BADNUM,La=mn(),Kre=xl().clearOutline,Qre=i1(),Fy=If(),jre=ky(),ete=Gf().getModuleCalcData,bA=mr.relinkPrivateKeys,Ss=mr._,fr=SA.exports={};mr.extendFlat(fr,ft);fr.attributes=Zn();fr.attributes.type.values=fr.allTypes;fr.fontAttrs=Wn();fr.layoutAttributes=q0();var u1=yA();fr.executeAPICommand=u1.executeAPICommand;fr.computeAPICommandBindings=u1.computeAPICommandBindings;fr.manageCommandObserver=u1.manageCommandObserver;fr.hasSimpleAPICommandBindings=u1.hasSimpleAPICommandBindings;fr.redrawText=function(e){return e=mr.getGraphDiv(e),new Promise(function(r){setTimeout(function(){e._fullLayout&&(ft.getComponentMethod("annotations","draw")(e),ft.getComponentMethod("legend","draw")(e),ft.getComponentMethod("colorbar","draw")(e),r(fr.previousPromises(e)))},300)})};fr.resize=function(e){e=mr.getGraphDiv(e);var r,t=new Promise(function(n,a){(!e||mr.isHidden(e))&&a(new Error("Resize must be passed a displayed plot div element.")),e._redrawTimer&&clearTimeout(e._redrawTimer),e._resolveResize&&(r=e._resolveResize),e._resolveResize=n,e._redrawTimer=setTimeout(function(){if(!e.layout||e.layout.width&&e.layout.height||mr.isHidden(e)){n(e);return}delete e.layout.width,delete e.layout.height;var o=e.changed;e.autoplay=!0,ft.call("relayout",e,{autosize:!0}).then(function(){e.changed=o,e._resolveResize===n&&(delete e._resolveResize,n(e))})},100)});return r&&r(t),t};fr.previousPromises=function(e){if((e._promises||[]).length)return Promise.all(e._promises).then(function(){e._promises=[]})};fr.sendDataToCloud=function(e,r){e.emit("plotly_beforeexport");let t=new URL(r).origin;var n=fr.graphJson(e,!1,"object");n.version=Wre;var a=new URL(r);a.searchParams.set("origin",window.location.origin);var o=window.open(a.href,"_blank");if(!o){console.error("Unable to open Plotly Cloud (the popup may have been blocked)"),e.emit("plotly_exportfail");return}var i=function(l){l.origin===t&&l.data&&l.data.type==="CHART_AUTH_SUCCESS"&&(o.postMessage({type:"chart",chart:n},t),window.removeEventListener("message",i),e.emit("plotly_afterexport"))};return window.addEventListener("message",i),!1};var rte=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],tte=["year","month","dayMonth","dayMonthYear"];fr.supplyDefaults=function(e,r){var t=r&&r.skipUpdateCalc,n=e._fullLayout||{};if(n._skipDefaults){delete n._skipDefaults;return}var a=e._fullLayout={},o=e.layout||{},i=e._fullData||[],l=e._fullData=[],u=e.data||[],s=e.calcdata||[],f=e._context||{},c;e._transitionData||fr.createTransitionData(e),a._dfltTitle={plot:Ss(e,"Click to enter Plot title"),subtitle:Ss(e,"Click to enter Plot subtitle"),x:Ss(e,"Click to enter X axis title"),y:Ss(e,"Click to enter Y axis title"),colorbar:Ss(e,"Click to enter Colorscale title"),annotation:Ss(e,"new text")},a._traceWord=Ss(e,"trace");var g=xA(e,rte);if(n._initialAutoSizeIsDone){var x=n.width,h=n.height;fr.supplyLayoutGlobalDefaults(o,a,g),o.width||(a.width=x),o.height||(a.height=h),fr.sanitizeMargins(a)}else{fr.supplyLayoutGlobalDefaults(o,a,g);var _=!o.width||!o.height,T=a.autosize,m=f.autosizable,k=_&&(T||m);k?fr.plotAutoSize(e,o,a):_&&fr.sanitizeMargins(a),!T&&_&&(o.width=a.width,o.height=a.height)}a._d3locale=ite(g,a.separators),a._extraFormat=xA(e,tte),a._initialAutoSizeIsDone=!0,a._dataLength=u.length,a._modules=[],a._visibleModules=[],a._basePlotModules=[];var S=a._subplots=ate(),b=a._splomAxes={x:{},y:{}},M=a._splomSubplots={};a._splomGridDflt={},a._scatterStackOpts={},a._firstScatter={},a._alignmentOpts={},a._colorAxes={},a._requestRangeslider={},a._traceUids=nte(i,u),fr.supplyDataDefaults(u,l,o,a);var d=Object.keys(b.x),w=Object.keys(b.y);if(d.length>1&&w.length>1){for(ft.getComponentMethod("grid","sizeDefaults")(o,a),c=0;c15&&w.length>15&&a.shapes.length===0&&a.images.length===0,fr.linkSubplots(l,a,i,n),fr.cleanPlot(l,a,i,n);var D=!!(n._has&&n._has("cartesian")),E=!!(a._has&&a._has("cartesian")),R=D,F=E;R&&!F?n._bgLayer.remove():F&&!R&&(a._shouldCreateBgLayer=!0),n._zoomlayer&&!e._dragging&&Kre({_fullLayout:n}),ote(l,a),bA(a,n),ft.getComponentMethod("colorscale","crossTraceDefaults")(l,a),a._preGUI||(a._preGUI={}),a._tracePreGUI||(a._tracePreGUI={});var z=a._tracePreGUI,P={},L;for(L in z)P[L]="old";for(c=0;c0){var f=1-2*o;i=Math.round(f*i),l=Math.round(f*l)}}var c=fr.layoutAttributes.width.min,g=fr.layoutAttributes.height.min;i1,h=!t.height&&Math.abs(n.height-l)>1;(h||x)&&(x&&(n.width=i),h&&(n.height=l)),r._initialAutoSize||(r._initialAutoSize={width:i,height:l}),fr.sanitizeMargins(n)};fr.supplyLayoutModuleDefaults=function(e,r,t,n){var a=ft.componentsRegistry,o=r._basePlotModules,i,l,u,s=ft.subplotsRegistry.cartesian;for(i in a)u=a[i],u.includeBasePlot&&u.includeBasePlot(e,r);o.length||o.push(s),r._has("cartesian")&&(ft.getComponentMethod("grid","contentDefaults")(e,r),s.finalizeSubplots(e,r));for(var f in r._subplots)r._subplots[f].sort(mr.subplotSort);for(l=0;l1&&(t.l/=T,t.r/=T)}if(g){var m=(t.t+t.b)/g;m>1&&(t.t/=m,t.b/=m)}var k=t.xl!==void 0?t.xl:t.x,S=t.xr!==void 0?t.xr:t.x,b=t.yt!==void 0?t.yt:t.y,M=t.yb!==void 0?t.yb:t.y;x[r]={l:{val:k,size:t.l+_},r:{val:S,size:t.r+_},b:{val:M,size:t.b+_},t:{val:b,size:t.t+_}},h[r]=1}if(!n._replotting)return fr.doAutoMargin(e)}};function ste(e){if("_redrawFromAutoMarginCount"in e._fullLayout)return!1;var r=La.list(e,"",!0);for(var t in r)if(r[t].autoshift||r[t].shift)return!0;return!1}fr.doAutoMargin=function(e){var r=e._fullLayout,t=r.width,n=r.height;r._size||(r._size={}),MA(r);var a=r._size,o=r.margin,i={t:0,b:0,l:0,r:0},l=mr.extendFlat({},a),u=o.l,s=o.r,f=o.t,c=o.b,g=r._pushmargin,x=r._pushmarginIds,h=r.minreducedwidth,_=r.minreducedheight;if(o.autoexpand!==!1){for(var T in g)x[T]||delete g[T];var m=e._fullLayout._reservedMargin;for(var k in m)for(var S in m[k]){var b=m[k][S];i[S]=Math.max(i[S],b)}g.base={l:{val:0,size:u},r:{val:1,size:s},t:{val:1,size:f},b:{val:0,size:c}};for(var M in i){var d=0;for(var w in g)w!=="base"&&Yf(g[w][M].size)&&(d=g[w][M].size>d?g[w][M].size:d);var y=Math.max(0,o[M]-d);i[M]=Math.max(0,i[M]-y)}for(var v in g){var A=g[v].l||{},p=g[v].b||{},D=A.val,E=A.size,R=p.val,F=p.size,z=t-i.r-i.l,P=n-i.t-i.b;for(var L in g){if(Yf(E)&&g[L].r){var I=g[L].r.val,B=g[L].r.size;if(I>D){var O=(E*I+(B-z)*D)/(I-D),G=(B*(1-D)+(E-z)*(1-I))/(I-D);O+G>u+s&&(u=O,s=G)}}if(Yf(F)&&g[L].t){var J=g[L].t.val,j=g[L].t.size;if(J>R){var V=(F*J+(j-P)*R)/(J-R),q=(j*(1-R)+(F-P)*(1-J))/(J-R);V+q>c+f&&(c=V,f=q)}}}}}var Z=mr.constrain(t-o.l-o.r,TA,h),re=mr.constrain(n-o.t-o.b,AA,_),$=Math.max(0,t-Z),ae=Math.max(0,n-re);if($){var Q=(u+s)/$;Q>1&&(u/=Q,s/=Q)}if(ae){var te=(c+f)/ae;te>1&&(c/=te,f/=te)}if(a.l=Math.round(u)+i.l,a.r=Math.round(s)+i.r,a.t=Math.round(f)+i.t,a.b=Math.round(c)+i.b,a.p=Math.round(o.pad),a.w=Math.round(t)-a.l-a.r,a.h=Math.round(n)-a.t-a.b,!r._replotting&&(fr.didMarginChange(l,a)||ste(e))){"_redrawFromAutoMarginCount"in r?r._redrawFromAutoMarginCount++:r._redrawFromAutoMarginCount=1;var ue=3*(1+Object.keys(x).length);if(r._redrawFromAutoMarginCount1)return!0}return!1};fr.graphJson=function(e,r=!1,t="json",n=!1,a=!1){(n&&r&&!e._fullData||n&&!r&&!e._fullLayout)&&fr.supplyDefaults(e);var o=n?e._fullData:e.data,i=n?e._fullLayout:e.layout,l=(e._transitionData||{})._frames;function u(c,g){if(typeof c=="function")return g?"_function_":null;if(mr.isPlainObject(c)){var x={};return Object.keys(c).sort().forEach(function(m){if(["_","["].indexOf(m.charAt(0))===-1){if(typeof c[m]=="function"){g&&(x[m]="_function");return}x[m]=u(c[m],g)}}),x}var h=Array.isArray(c),_=mr.isTypedArray(c);if((h||_)&&c.dtype&&c.shape){var T=c.bdata;return u({dtype:c.dtype,shape:c.shape,bdata:mr.isArrayBuffer(T)?Xre.encode(T):T},g)}return h?c.map(function(m){return u(m,g)}):_?mr.simpleMap(c,mr.identity):mr.isJSDate(c)?mr.ms2DateTimeLocal(+c):c}var s={data:(o||[]).map(function(c){var g=u(c);return r&&delete g.fit,g})};if(!r&&(s.layout=u(i),n)){var f=i._size;s.layout.computed={margin:{b:f.b,l:f.l,r:f.r,t:f.t}}}return l&&(s.frames=u(l)),a&&(s.config=u(e._context,!0)),t==="object"?s:JSON.stringify(s)};fr.modifyFrames=function(e,r){var t,n,a,o=e._transitionData._frames,i=e._transitionData._frameHash;for(t=0;t0&&(e._transitioningWithDuration=!0),e._transitionData._interruptCallbacks.push(function(){n=!0}),t.redraw&&e._transitionData._interruptCallbacks.push(function(){return ft.call("redraw",e)}),e._transitionData._interruptCallbacks.push(function(){e.emit("plotly_transitioninterrupted",[])});var g=0,x=0;function h(){return g++,function(){x++,!n&&x===g&&l(c)}}t.runFn(h),setTimeout(h())})}function l(c){if(e._transitionData)return o(e._transitionData._interruptCallbacks),Promise.resolve().then(function(){if(t.redraw)return ft.call("redraw",e)}).then(function(){e._transitioning=!1,e._transitioningWithDuration=!1,e.emit("plotly_transitioned",[])}).then(c)}function u(){if(e._transitionData)return e._transitioning=!1,a(e._transitionData._interruptCallbacks)}var s=[fr.previousPromises,u,t.prepareFn,fr.rehover,fr.reselect,i],f=mr.syncOrAsync(s,e);return(!f||!f.then)&&(f=Promise.resolve()),f.then(function(){return e})}fr.doCalcdata=function(e,r){var t=La.list(e),n=e._fullData,a=e._fullLayout,o,i,l,u=new Array(n.length),s=(e.calcdata||[]).slice();for(e.calcdata=u,a._numBoxes=0,a._numViolins=0,a._violinScaleGroupStats={},e._hmpixcount=0,e._hmlumcount=0,a._piecolormap={},a._sunburstcolormap={},a._treemapcolormap={},a._iciclecolormap={},a._funnelareacolormap={},l=0;lCA,svgAttrs:()=>dte,xlink:()=>EA,xmlns:()=>hte});var hte,CA,EA,dte,wl=Ut(()=>{"use strict";hte="http://www.w3.org/2000/xmlns/",CA="http://www.w3.org/2000/svg",EA="http://www.w3.org/1999/xlink",dte={xmlns:CA,"xmlns:xlink":EA}});var $n={};Ht($n,{CAP_SHIFT:()=>bte,FROM_BL:()=>pte,FROM_BR:()=>yte,FROM_TL:()=>gte,LINE_SPACING:()=>mte,MID_SHIFT:()=>xte,OPPOSITE_SIDE:()=>_te});var pte,gte,yte,mte,bte,xte,_te,Kn=Ut(()=>{"use strict";pte={left:0,center:.5,right:1,bottom:0,middle:.5,top:1},gte={left:0,center:.5,right:1,bottom:1,middle:.5,top:0},yte={left:1,center:.5,right:0,bottom:0,middle:.5,top:1},mte=1.3,bte=.7,xte=.35,_te={left:"right",right:"left",top:"bottom",bottom:"top"}});var Qn=xe(fa=>{"use strict";var jt=lt(),ni=tr(),wte=ni.strTranslate,Py=(wl(),or(_l)),Mte=(Kn(),or($n)).LINE_SPACING,Tte=/([^$]*)([$]+[^$]*[$]+)([^$]*)/,Ny=e=>e?e.match(Tte):null;fa.matchTex=Ny;var Ate=e=>{var r=Ny(e);return!!r&&!r[1]&&!r[3]};fa.isPureTex=Ate;function IA(e,r,t,n,a,o,i,l){var u=n.select("g"),s=u.node().getBoundingClientRect(),f=s.width,c=s.height,g=i===void 0?f:i,x=l===void 0?c:l;(f>g||c>x)&&(n.style("overflow","hidden"),s=n.node().getBoundingClientRect(),f=s.width,c=s.height);var h=+e.attr("x"),_=+e.attr("y"),T=o||e.node().getBoundingClientRect().height,m=-T/4;r[0]==="y"?t.attr({transform:"rotate("+[-90,h,_]+")"+wte(-f/2,m-c/2)}):r[0]==="l"?_=m-c/2:r[0]==="a"&&r.indexOf("atitle")!==0?(h=0,_=m):(h=h-f*(a==="middle"?.5:a==="end"?1:0),_=_+m-c/2),n.attr({x:h,y:_})}function kte(e){e.selectAll("a").each(function(){var r=jt.select(this);["href","xlink:href"].forEach(function(t){var n=r.attr(t);n&&r.attr(t,Oy(n)||null)})})}fa.convertToTspans=function(e,r,t){var n=e.text(),a=!e.attr("data-notex")&&r&&r._context.typesetMath&&Ny(n);a&&!Lte()&&(a=null);var o=jt.select(e.node().parentNode);if(o.empty())return;var i=e.attr("class")?e.attr("class").split(" ")[0]:"text";i+="-math",o.selectAll("svg."+i).remove(),o.selectAll("g."+i+"-group").remove(),e.style("display",null).attr({"data-unformatted":n,"data-math":"N"});function l(){o.empty()||(i=e.attr("class")+"-math",o.select("svg."+i).remove()),e.text("").style("white-space","pre");var u=Ote(e.node(),n);u&&e.style("pointer-events","all"),fa.positionText(e),t&&t.call(e)}return a?(r&&r._promises||[]).push(new Promise(function(u){e.style("display","none");var s=parseInt(e.node().style.fontSize,10),f={fontSize:s},c=e.attr("text-anchor");Dte(a[2],f,function(g,x,h){o.selectAll("svg."+i).remove(),o.selectAll("g."+i+"-group").remove();var _=g&&g.select("svg");if(!_||!_.node()){l(),u();return}e.style("display","none");var T=o.append("g").classed(i+"-group",!0).attr({"pointer-events":"none","data-unformatted":n,"data-math":"Y"});T.node().appendChild(_.node()),kte(_),x&&x.node()&&_.node().insertBefore(x.node().cloneNode(!0),_.node().firstChild);var m=h.width,k=h.height;_.attr({class:i,height:k,preserveAspectRatio:"xMinYMin meet"}).style({overflow:"visible","pointer-events":"none","font-size":f.fontSize+"px"});var S=e.node().style.fill||"black",b=_.select("g");b.attr({fill:S,stroke:S}),IA(e,i,T,_,c,s,m,k),t&&t.call(e,T),u(T)})})):l(),e};fa.repositionMathGroup=function(e){if(!e.empty()){var r=(e.attr("class")?e.attr("class").split(" ")[0]:"text")+"-math",t=jt.select(e.node().parentNode),n=t.select("g."+r+"-group"),a=n.select("svg."+r);if(!(n.empty()||a.empty())){var o=e.attr("text-anchor"),i=parseInt(e.node().style.fontSize,10);IA(e,r,n,a,o,i)}}};fa.getMathOrTextNode=function(e){var r=e.node();if(!r)return null;var t=(e.attr("class")?e.attr("class").split(" ")[0]:"text")+"-math",n=jt.select(r.parentNode).select("g."+t+"-group");return n.empty()?r:n.node()};var Ste=/(<|<|<)/g,Cte=/(>|>|>)/g;function Ete(e){return e.replace(Ste,"\\lt ").replace(Cte,"\\gt ")}var Iy=null,zA=()=>typeof MathJax!="undefined"&&MathJax.version?parseInt(MathJax.version.split(".")[0]):null,LA=!1,DA=!1;function Lte(){let e=zA();return e===3||e===4?!0:(e===null?LA||(LA=!0,ni.warn("MathJax is not loaded. Math equations will not be rendered.")):DA||(DA=!0,ni.warn("Unsupported MathJax version:",MathJax.version)),!1)}function Dte(e,r,t){let n=zA();var a;let o=function(){if(!Iy){let s=MathJax._.output.svg_ts.SVG,f=ni.extendFlat({},MathJax.config.svg,{fontCache:"local"});n===4&&(f.linebreaks=ni.extendFlat({},f.linebreaks,{inline:!1})),Iy=MathJax._.mathjax.mathjax.document(document,ni.extendFlat({},MathJax.config.options,{InputJax:MathJax.startup.input,OutputJax:new s(f)}))}let l="math-output-"+ni.randstr({},64);a=jt.select("body").append("div").attr({id:l}).style({visibility:"hidden",position:"absolute","font-size":r.fontSize+"px"});let u=Ete(e).replace(/^\$+|\$+$/g,"");return MathJax._.mathjax.mathjax.handleRetriesFor(function(){return Iy.convert(u,{display:!1})}).then(function(s){a.node().appendChild(s)})},i=function(){let l=a.select(".MathJax"),u=!l.empty()&&a.select("svg").node();if(!u)ni.log("There was an error in the tex syntax.",e),t();else{let s=u.getBoundingClientRect(),f=l.select("defs");t(l,f,s)}a.remove()};Promise.resolve().then(o).then(i).catch(l=>{ni.log("MathJax typesetting failed.",e,l),a&&a.remove(),t()})}var NA={sup:"font-size:70%",sub:"font-size:70%",s:"text-decoration:line-through",u:"text-decoration:underline",b:"font-weight:bold",i:"font-style:italic",a:"cursor:pointer",span:"",em:"font-style:italic;font-weight:bold"},Rte={sub:"0.3em",sup:"-0.6em"},Fte={sub:"-0.21em",sup:"0.42em"},RA="\u200B",FA=["http:","https:","mailto:","",void 0,":"],qA=fa.NEWLINES=/(\r\n?|\n)/g,qy=/(<[^<>]*>)/,By=/<(\/?)([^ >]*)(\s+(.*))?>/i,Pte=//i;fa.BR_TAG_ALL=//gi;var BA=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,OA=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,UA=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,Ite=/(^|[\s"'])popup\s*=\s*("([\w=,]*)"|'([\w=,]*)')/i;function Cs(e,r){if(!e)return null;var t=e.match(r),n=t&&(t[3]||t[4]);return n&&f1(n)}var zte=/(^|;)\s*color:/;fa.plainText=function(e,r){r=r||{};for(var t=r.len!==void 0&&r.len!==-1?r.len:1/0,n=r.allowedTags!==void 0?r.allowedTags:["br"],a="...",o=a.length,i=e.split(qy),l=[],u="",s=0,f=0;fo?l.push(c.slice(0,Math.max(0,_-o))+a):l.push(c.slice(0,_));break}u=""}}return l.join("")};var Nte={mu:"\u03BC",amp:"&",lt:"<",gt:">",nbsp:"\xA0",times:"\xD7",plusmn:"\xB1",deg:"\xB0"},qte=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function f1(e){return e.replace(qte,function(r,t){var n;return t.charAt(0)==="#"?n=Bte(t.charAt(1)==="x"?parseInt(t.slice(2),16):parseInt(t.slice(1),10)):n=Nte[t],n||r})}fa.convertEntities=f1;function Bte(e){if(!(e>1114111)){var r=String.fromCodePoint;if(r)return r(e);var t=String.fromCharCode;return e<=65535?t(e):t((e>>10)+55232,e%1024+56320)}}function Ote(e,r){r=r.replace(qA," ");var t=!1,n=[],a,o=-1;function i(){o++;var d=document.createElementNS(Py.svg,"tspan");jt.select(d).attr({class:"line",dy:o*Mte+"em"}),e.appendChild(d),a=d;var w=n;if(n=[{node:d}],w.length>1)for(var y=1;y.",r);return}var w=n.pop();d!==w.type&&ni.log("Start tag <"+w.type+"> doesnt match end tag <"+d+">. Pretending it did match.",r),a=n[n.length-1].node}var f=Pte.test(r);f?i():(a=e,n=[{node:e}]);for(var c=r.split(qy),g=0;g{"use strict";var Ute=lt(),Wf=ut(),c1=tr(),Es=Zr(),Hte=bs().isValid;function Vte(e,r,t){var n=r?c1.nestedProperty(e,r).get()||{}:e,a=n[t||"color"];a&&a._inputArray&&(a=a._inputArray);var o=!1;if(c1.isArrayOrTypedArray(a)){for(var i=0;i=0;n--,a++){var o=e[n];t[a]=[1-o[0],o[1]]}return t}function XA(e,r){r=r||{};for(var t=e.domain,n=e.range,a=n.length,o=new Array(a),i=0;i{"use strict";var ZA=(ny(),or(ty)),Yte=ZA.FORMAT_LINK,Xte=ZA.DATE_FORMAT_LINK;function Wte(e,r){return{valType:"string",dflt:"",editType:"none",description:(r?Uy:JA)("hover text",e)+["By default the values are formatted using "+(r?"generic number format":"`"+e+"axis.hoverformat`")+"."].join(" ")}}function Uy(e,r){return["Sets the "+e+" formatting rule"+(r?" for `"+r+"`":""),"using d3 formatting mini-languages","which are very similar to those in Python. For numbers, see: "+Yte+"."].join(" ")}function JA(e,r){return Uy(e,r)+[" And for dates see: "+Xte+".","We add two items to d3's date formatter:","*%h* for half of the year as a decimal number as well as","*%{n}f* for fractional seconds","with n digits. For example, *2016-10-13 09:15:23.456* with tickformat","*%H~%M~%S.%2f* would display *09~15~23.46*"].join(" ")}$A.exports={axisHoverFormat:Wte,descriptionOnlyNumbers:Uy,descriptionWithDates:JA}});var ai=xe((J4e,hk)=>{"use strict";var KA=Wn(),K0=to(),vk=fl().dash,Vy=Rt().extendFlat,QA=Tt().templatedArray,Z4e=Si().templateFormatStringDescription,jA=No().descriptionWithDates,Zte=(wn(),or(Rn)).ONEDAY,io=(kn(),or(An)),Jte=io.HOUR_PATTERN,$te=io.WEEKDAY_PATTERN,Hy={valType:"enumerated",values:["auto","linear","array"],editType:"ticks",impliedEdits:{tick0:void 0,dtick:void 0}},Kte=Vy({},Hy,{values:Hy.values.slice().concat(["sync"])});function ek(e){return{valType:"integer",min:0,dflt:e?5:0,editType:"ticks"}}var rk={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},tk={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},nk={valType:"data_array",editType:"ticks"},ak={valType:"enumerated",values:["outside","inside",""],editType:"ticks"};function ik(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=5),r}function ok(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=1),r}var lk={valType:"color",dflt:K0.defaultLine,editType:"ticks"},sk={valType:"color",dflt:K0.lightLine,editType:"ticks"};function uk(e){var r={valType:"number",min:0,editType:"ticks"};return e||(r.dflt=1),r}var fk=Vy({},vk,{editType:"ticks"}),ck={valType:"boolean",editType:"ticks"};hk.exports={visible:{valType:"boolean",editType:"plot"},color:{valType:"color",dflt:K0.defaultLine,editType:"ticks"},title:{text:{valType:"string",editType:"ticks"},font:KA({editType:"ticks",description:"Sets this axis' title font."}),standoff:{valType:"number",min:0,editType:"ticks"},editType:"ticks"},type:{valType:"enumerated",values:["-","linear","log","date","category","multicategory"],dflt:"-",editType:"calc",_noTemplating:!0},autotypenumbers:{valType:"enumerated",values:["convert types","strict"],dflt:"convert types",editType:"calc"},autorange:{valType:"enumerated",values:[!0,!1,"reversed","min reversed","max reversed","min","max"],dflt:!0,editType:"axrange",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},autorangeoptions:{minallowed:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},maxallowed:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},clipmin:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},clipmax:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},include:{valType:"any",arrayOk:!0,editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},editType:"plot"},rangemode:{valType:"enumerated",values:["normal","tozero","nonnegative"],dflt:"normal",editType:"plot"},range:{valType:"info_array",items:[{valType:"any",editType:"axrange",impliedEdits:{"^autorange":!1},anim:!0},{valType:"any",editType:"axrange",impliedEdits:{"^autorange":!1},anim:!0}],editType:"axrange",impliedEdits:{autorange:!1},anim:!0},minallowed:{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},maxallowed:{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},fixedrange:{valType:"boolean",dflt:!1,editType:"calc"},modebardisable:{valType:"flaglist",flags:["autoscale","zoominout"],extras:["none"],dflt:"none",editType:"modebar"},insiderange:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},scaleanchor:{valType:"enumerated",values:[io.idRegex.x.toString(),io.idRegex.y.toString(),!1],editType:"plot"},scaleratio:{valType:"number",min:0,dflt:1,editType:"plot"},constrain:{valType:"enumerated",values:["range","domain"],editType:"plot"},constraintoward:{valType:"enumerated",values:["left","center","right","top","middle","bottom"],editType:"plot"},matches:{valType:"enumerated",values:[io.idRegex.x.toString(),io.idRegex.y.toString()],editType:"calc"},rangebreaks:QA("rangebreak",{enabled:{valType:"boolean",dflt:!0,editType:"calc"},bounds:{valType:"info_array",items:[{valType:"any",editType:"calc"},{valType:"any",editType:"calc"}],editType:"calc"},pattern:{valType:"enumerated",values:[$te,Jte,""],editType:"calc"},values:{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"any",editType:"calc"}},dvalue:{valType:"number",editType:"calc",min:0,dflt:Zte},editType:"calc"}),tickmode:Kte,nticks:ek(),tick0:rk,dtick:tk,ticklabelstep:{valType:"integer",min:1,dflt:1,editType:"ticks"},tickvals:nk,ticktext:{valType:"data_array",editType:"ticks"},ticks:ak,tickson:{valType:"enumerated",values:["labels","boundaries"],dflt:"labels",editType:"ticks"},ticklabelmode:{valType:"enumerated",values:["instant","period"],dflt:"instant",editType:"ticks"},ticklabelposition:{valType:"enumerated",values:["outside","inside","outside top","inside top","outside left","inside left","outside right","inside right","outside bottom","inside bottom"],dflt:"outside",editType:"calc"},ticklabeloverflow:{valType:"enumerated",values:["allow","hide past div","hide past domain"],editType:"calc"},ticklabelshift:{valType:"integer",dflt:0,editType:"ticks"},ticklabelstandoff:{valType:"integer",dflt:0,editType:"ticks"},ticklabelindex:{valType:"integer",arrayOk:!0,editType:"calc"},mirror:{valType:"enumerated",values:[!0,"ticks",!1,"all","allticks"],dflt:!1,editType:"ticks+layoutstyle"},ticklen:ik(),tickwidth:ok(),tickcolor:lk,showticklabels:{valType:"boolean",dflt:!0,editType:"ticks"},labelalias:{valType:"any",dflt:!1,editType:"ticks"},automargin:{valType:"flaglist",flags:["height","width","left","right","top","bottom"],extras:[!0,!1],dflt:!1,editType:"ticks"},showspikes:{valType:"boolean",dflt:!1,editType:"modebar"},spikecolor:{valType:"color",dflt:null,editType:"none"},spikethickness:{valType:"number",dflt:3,editType:"none"},spikedash:Vy({},vk,{dflt:"dash",editType:"none"}),spikemode:{valType:"flaglist",flags:["toaxis","across","marker"],dflt:"toaxis",editType:"none"},spikesnap:{valType:"enumerated",values:["data","cursor","hovered data"],dflt:"hovered data",editType:"none"},tickfont:KA({editType:"ticks"}),tickangle:{valType:"angle",dflt:"auto",editType:"ticks"},autotickangles:{valType:"info_array",freeLength:!0,items:{valType:"angle"},dflt:[0,30,90],editType:"ticks"},tickprefix:{valType:"string",dflt:"",editType:"ticks"},showtickprefix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},ticksuffix:{valType:"string",dflt:"",editType:"ticks"},showticksuffix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},showexponent:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},exponentformat:{valType:"enumerated",values:["none","e","E","power","SI","B","SI extended"],dflt:"B",editType:"ticks"},minexponent:{valType:"number",dflt:3,min:0,editType:"ticks"},separatethousands:{valType:"boolean",dflt:!1,editType:"ticks"},tickformat:{valType:"string",dflt:"",editType:"ticks",description:jA("tick label")},tickformatstops:QA("tickformatstop",{enabled:{valType:"boolean",dflt:!0,editType:"ticks"},dtickrange:{valType:"info_array",items:[{valType:"any",editType:"ticks"},{valType:"any",editType:"ticks"}],editType:"ticks"},value:{valType:"string",dflt:"",editType:"ticks"},editType:"ticks"}),hoverformat:{valType:"string",dflt:"",editType:"none",description:jA("hover text")},unifiedhovertitle:{text:{valType:"string",dflt:"",editType:"none"},editType:"none"},showline:{valType:"boolean",dflt:!1,editType:"ticks+layoutstyle"},linecolor:{valType:"color",dflt:K0.defaultLine,editType:"layoutstyle"},linewidth:{valType:"number",min:0,dflt:1,editType:"ticks+layoutstyle"},showgrid:ck,gridcolor:sk,gridwidth:uk(),griddash:fk,zeroline:{valType:"boolean",editType:"ticks"},zerolinecolor:{valType:"color",dflt:K0.defaultLine,editType:"ticks"},zerolinelayer:{valType:"enumerated",values:["above traces","below traces"],dflt:"below traces",editType:"plot"},zerolinewidth:{valType:"number",dflt:1,editType:"ticks"},showdividers:{valType:"boolean",dflt:!0,editType:"ticks"},dividercolor:{valType:"color",dflt:K0.defaultLine,editType:"ticks"},dividerwidth:{valType:"number",dflt:1,editType:"ticks"},anchor:{valType:"enumerated",values:["free",io.idRegex.x.toString(),io.idRegex.y.toString()],editType:"plot"},side:{valType:"enumerated",values:["top","bottom","left","right"],editType:"plot"},overlaying:{valType:"enumerated",values:["free",io.idRegex.x.toString(),io.idRegex.y.toString()],editType:"plot"},minor:{tickmode:Hy,nticks:ek("minor"),tick0:rk,dtick:tk,tickvals:nk,ticks:ak,ticklen:ik("minor"),tickwidth:ok("minor"),tickcolor:lk,gridcolor:sk,gridwidth:uk("minor"),griddash:fk,showgrid:ck,editType:"ticks"},minorloglabels:{valType:"enumerated",values:["small digits","complete","none"],dflt:"small digits",editType:"calc"},layer:{valType:"enumerated",values:["above traces","below traces"],dflt:"above traces",editType:"plot"},domain:{valType:"info_array",items:[{valType:"number",min:0,max:1,editType:"plot"},{valType:"number",min:0,max:1,editType:"plot"}],dflt:[0,1],editType:"plot"},position:{valType:"number",min:0,max:1,dflt:0,editType:"plot"},autoshift:{valType:"boolean",dflt:!1,editType:"plot"},shift:{valType:"number",editType:"plot"},categoryorder:{valType:"enumerated",values:["trace","category ascending","category descending","array","total ascending","total descending","min ascending","min descending","max ascending","max descending","sum ascending","sum descending","mean ascending","mean descending","geometric mean ascending","geometric mean descending","median ascending","median descending"],dflt:"trace",editType:"calc"},categoryarray:{valType:"data_array",editType:"calc"},uirevision:{valType:"any",editType:"none"},editType:"calc"}});var v1=xe(($4e,pk)=>{"use strict";var It=ai(),dk=Wn(),Gy=Rt().extendFlat,Qte=ua().overrideAll;pk.exports=Qte({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:It.linecolor,outlinewidth:It.linewidth,bordercolor:It.linecolor,borderwidth:{valType:"number",min:0,dflt:0},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},tickmode:It.minor.tickmode,nticks:It.nticks,tick0:It.tick0,dtick:Gy({},It.dtick,{}),tickvals:It.tickvals,ticktext:It.ticktext,ticks:Gy({},It.ticks,{dflt:""}),ticklabeloverflow:Gy({},It.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:It.ticklen,tickwidth:It.tickwidth,tickcolor:It.tickcolor,ticklabelstep:It.ticklabelstep,showticklabels:It.showticklabels,labelalias:It.labelalias,tickfont:dk({description:"Sets the color bar's tick label font"}),tickangle:It.tickangle,tickformat:It.tickformat,tickformatstops:It.tickformatstops,tickprefix:It.tickprefix,showtickprefix:It.showtickprefix,ticksuffix:It.ticksuffix,showticksuffix:It.showticksuffix,separatethousands:It.separatethousands,exponentformat:It.exponentformat,minexponent:It.minexponent,showexponent:It.showexponent,title:{text:{valType:"string"},font:dk({description:"Sets this color bar's title font."}),side:{valType:"enumerated",values:["right","top","bottom"]}}},"colorbars","from-root")});var Di=xe((Q4e,yk)=>{"use strict";var jte=v1(),ene=(I0(),or(Ff)).counter,rne=(Vh(),or(Hh)).default,gk=bs().scales,K4e=rne(gk);function h1(e){return"`"+e+"`"}yk.exports=function(r,t){r=r||"",t=t||{};var n=t.cLetter||"c",a="onlyIfNumerical"in t?t.onlyIfNumerical:!!r,o="noScale"in t?t.noScale:r==="marker.line",i="showScaleDflt"in t?t.showScaleDflt:n==="z",l=typeof t.colorscaleDflt=="string"?gk[t.colorscaleDflt]:null,u=t.editTypeOverride||"",s=r?r+".":"",f,c;"colorAttr"in t?(f=t.colorAttr,c=t.colorAttr):(f={z:"z",c:"color"}[n],c="in "+h1(s+f));var g=a?" Has an effect only if "+c+" is set to a numerical array.":"",x=n+"auto",h=n+"min",_=n+"max",T=n+"mid",m=h1(s+x),k=h1(s+h),S=h1(s+_),b=k+" and "+S,M={};M[h]=M[_]=void 0;var d={};d[x]=!1;var w={};return f==="color"&&(w.color={valType:"color",arrayOk:!0,editType:u||"style"},t.anim&&(w.color.anim=!0)),w[x]={valType:"boolean",dflt:!0,editType:"calc",impliedEdits:M},w[h]={valType:"number",dflt:null,editType:u||"plot",impliedEdits:d},w[_]={valType:"number",dflt:null,editType:u||"plot",impliedEdits:d},w[T]={valType:"number",dflt:null,editType:"calc",impliedEdits:M},w.colorscale={valType:"colorscale",editType:"calc",dflt:l,impliedEdits:{autocolorscale:!1}},w.autocolorscale={valType:"boolean",dflt:t.autoColorDflt!==!1,editType:"calc",impliedEdits:{colorscale:void 0}},w.reversescale={valType:"boolean",dflt:!1,editType:"plot"},o||(w.showscale={valType:"boolean",dflt:i,editType:"calc"},w.colorbar=jte),t.noColorAxis||(w.coloraxis={valType:"subplotid",regex:ene("coloraxis"),dflt:null,editType:"calc"}),w}});var Xy=xe((j4e,mk)=>{"use strict";var tne=Rt().extendFlat,nne=Di(),Yy=bs().scales;mk.exports={editType:"calc",colorscale:{editType:"calc",sequential:{valType:"colorscale",dflt:Yy.Reds,editType:"calc"},sequentialminus:{valType:"colorscale",dflt:Yy.Blues,editType:"calc"},diverging:{valType:"colorscale",dflt:Yy.RdBu,editType:"calc"}},coloraxis:tne({_isSubplotObj:!0,editType:"calc"},nne("",{colorAttr:"corresponding trace color array(s)",noColorAxis:!0,showScaleDflt:!0}))}});var Wy=xe((e6e,bk)=>{"use strict";var ane=tr();bk.exports=function(r){return ane.isPlainObject(r.colorbar)}});var $y=xe(Jy=>{"use strict";var Zy=ut(),xk=tr(),_k=(wn(),or(Rn)),ine=_k.ONEDAY,one=_k.ONEWEEK;Jy.dtick=function(e,r){var t=r==="log",n=r==="date",a=r==="category",o=n?ine:1;if(!e)return o;if(Zy(e))return e=Number(e),e<=0?o:a?Math.max(1,Math.round(e)):n?Math.max(.1,e):e;if(typeof e!="string"||!(n||t))return o;var i=e.charAt(0),l=e.slice(1);return l=Zy(l)?Number(l):0,l<=0||!(n&&i==="M"&&l===Math.round(l)||t&&i==="L"||t&&i==="D"&&(l===1||l===2))?o:e};Jy.tick0=function(e,r,t,n){if(r==="date")return xk.cleanDate(e,xk.dateTick0(t,n%one===0?1:0));if(!(n==="D1"||n==="D2"))return Zy(e)?Number(e):0}});var Ky=xe((t6e,Mk)=>{"use strict";var wk=$y(),lne=tr().isArrayOrTypedArray,sne=ba().isTypedArraySpec,une=ba().decodeTypedArraySpec;Mk.exports=function(r,t,n,a,o={}){var i=o.isMinor,l=i?r.minor||{}:r,u=i?t.minor:t,s=i?"minor.":"";function f(b){var M=l[b];return sne(M)&&(M=une(M)),M!==void 0?M:(u._template||{})[b]}var c=f("tick0"),g=f("dtick"),x=f("tickvals"),h=f("overlaying"),_=a==="category"||a==="multicategory",T;lne(x)?T="array":g?T="linear":h&&!_?T="sync":T="auto";var m=n(s+"tickmode",T);if(m==="auto"||m==="sync")n(s+"nticks");else if(m==="linear"){var k=u.dtick=wk.dtick(g,a);u.tick0=wk.tick0(c,a,t.calendar,k)}else if(a!=="multicategory"){var S=n(s+"tickvals");S===void 0?u.tickmode="auto":i||n("ticktext")}}});var jy=xe((n6e,Ak)=>{"use strict";var Qy=tr(),Tk=ai();Ak.exports=function(r,t,n,a){var o=a.isMinor,i=o?r.minor||{}:r,l=o?t.minor:t,u=o?Tk.minor:Tk,s=o?"minor.":"",f=Qy.coerce2(i,l,u,"ticklen",o?(t.ticklen||5)*.6:void 0),c=Qy.coerce2(i,l,u,"tickwidth",o?t.tickwidth||1:void 0),g=Qy.coerce2(i,l,u,"tickcolor",(o?t.tickcolor:void 0)||l.color),x=n(s+"ticks",!o&&a.outerTicks||f||c||g?"outside":"");x||(delete l.ticklen,delete l.tickwidth,delete l.tickcolor)}});var em=xe((a6e,kk)=>{"use strict";kk.exports=function(r){var t=["showexponent","showtickprefix","showticksuffix"],n=t.filter(function(o){return r[o]!==void 0}),a=function(o){return r[o]===r[n[0]]};if(n.every(a)||n.length===1)return r[n[0]]}});var Ri=xe((i6e,Sk)=>{"use strict";var d1=tr(),fne=Tt();Sk.exports=function(r,t,n){var a=n.name,o=n.inclusionAttr||"visible",i=t[a],l=d1.isArrayOrTypedArray(r[a])?r[a]:[],u=t[a]=[],s=fne.arrayTemplater(t,a,o),f,c;for(f=0;f{"use strict";var rm=tr(),cne=Zr().contrast,Ck=ai(),vne=em(),hne=Ri();Ek.exports=function(r,t,n,a,o){o||(o={});var i=n("labelalias");rm.isPlainObject(i)||delete t.labelalias;var l=vne(r),u=n("showticklabels");if(u){o.noTicklabelshift||n("ticklabelshift"),o.noTicklabelstandoff||n("ticklabelstandoff");var s=o.font||{},f=t.color,c=t.ticklabelposition||"",g=c.indexOf("inside")!==-1?cne(o.bgColor):f&&f!==Ck.color.dflt?f:s.color;if(rm.coerceFont(n,"tickfont",s,{overrideDflt:{color:g}}),!o.noTicklabelstep&&a!=="multicategory"&&a!=="log"&&n("ticklabelstep"),!o.noAng){var x=n("tickangle");!o.noAutotickangles&&x==="auto"&&n("autotickangles")}if(a!=="category"){var h=n("tickformat");hne(r,t,{name:"tickformatstops",inclusionAttr:"enabled",handleItemDefaults:dne}),t.tickformatstops.length||delete t.tickformatstops,!o.noExp&&!h&&a!=="date"&&(n("showexponent",l),n("exponentformat"),n("minexponent"),n("separatethousands"))}!o.noMinorloglabels&&a==="log"&&n("minorloglabels")}};function dne(e,r){function t(a,o){return rm.coerce(e,r,Ck.tickformatstops,a,o)}var n=t("enabled");n&&(t("dtickrange"),t("value"))}});var nm=xe((l6e,Lk)=>{"use strict";var pne=em();Lk.exports=function(r,t,n,a,o){o||(o={});var i=o.tickSuffixDflt,l=pne(r),u=n("tickprefix");u&&n("showtickprefix",l);var s=n("ticksuffix",i);s&&n("showticksuffix",l)}});var am=xe((s6e,Dk)=>{"use strict";var Ml=tr(),gne=Tt(),yne=Ky(),mne=jy(),bne=tm(),xne=nm(),_ne=v1();Dk.exports=function(r,t,n){var a=gne.newContainer(t,"colorbar"),o=r.colorbar||{};function i(p,D){return Ml.coerce(o,a,_ne,p,D)}var l=n.margin||{t:0,b:0,l:0,r:0},u=n.width-l.l-l.r,s=n.height-l.t-l.b,f=i("orientation"),c=f==="v",g=i("thicknessmode");i("thickness",g==="fraction"?30/(c?u:s):30);var x=i("lenmode");i("len",x==="fraction"?1:c?s:u);var h=i("yref"),_=i("xref"),T=h==="paper",m=_==="paper",k,S,b,M="left";c?(b="middle",M=m?"left":"right",k=m?1.02:1,S=.5):(b=T?"bottom":"top",M="center",k=.5,S=T?1.02:1),Ml.coerce(o,a,{x:{valType:"number",min:m?-2:0,max:m?3:1,dflt:k}},"x"),Ml.coerce(o,a,{y:{valType:"number",min:T?-2:0,max:T?3:1,dflt:S}},"y"),i("xanchor",M),i("xpad"),i("yanchor",b),i("ypad"),Ml.noneOrAll(o,a,["x","y"]),i("outlinecolor"),i("outlinewidth"),i("bordercolor"),i("borderwidth"),i("bgcolor");var d=Ml.coerce(o,a,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:c?["outside","inside","outside top","inside top","outside bottom","inside bottom"]:["outside","inside","outside left","inside left","outside right","inside right"]}},"ticklabelposition");i("ticklabeloverflow",d.indexOf("inside")!==-1?"hide past domain":"hide past div"),yne(o,a,i,"linear");var w=n.font,y={noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0,outerTicks:!1,font:w};d.indexOf("inside")!==-1&&(y.bgColor="black"),xne(o,a,i,"linear",y),bne(o,a,i,"linear",y),mne(o,a,i,"linear",y),i("title.text",n._dfltTitle.colorbar);var v=a.showticklabels?a.tickfont:w,A=Ml.extendFlat({},w,{family:v.family,size:Ml.bigFont(v.size)});Ml.coerceFont(i,"title.font",A),i("title.side",c?"top":"right")}});var oo=xe((u6e,Pk)=>{"use strict";var Rk=ut(),om=tr(),wne=Wy(),Mne=am(),Fk=bs().isValid,Tne=Cr().traceIs;function im(e,r){var t=r.slice(0,r.length-1);return r?om.nestedProperty(e,t).get()||{}:e}Pk.exports=function e(r,t,n,a,o){var i=o.prefix,l=o.cLetter,u="_module"in t,s=im(r,i),f=im(t,i),c=im(t._template||{},i)||{},g=function(){return delete r.coloraxis,delete t.coloraxis,e(r,t,n,a,o)};if(u){var x=n._colorAxes||{},h=a(i+"coloraxis");if(h){var _=Tne(t,"contour")&&om.nestedProperty(t,"contours.coloring").get()||"heatmap",T=x[h];T?(T[2].push(g),T[0]!==_&&(T[0]=!1,om.warn(["Ignoring coloraxis:",h,"setting","as it is linked to incompatible colorscales."].join(" ")))):x[h]=[_,t,[g]];return}}var m=s[l+"min"],k=s[l+"max"],S=Rk(m)&&Rk(k)&&m{"use strict";var Ik=tr(),Ane=Tt(),zk=Xy(),kne=oo();Nk.exports=function(r,t){function n(c,g){return Ik.coerce(r,t,zk,c,g)}n("colorscale.sequential"),n("colorscale.sequentialminus"),n("colorscale.diverging");var a=t._colorAxes,o,i;function l(c,g){return Ik.coerce(o,i,zk.coloraxis,c,g)}for(var u in a){var s=a[u];if(s[0])o=r[u]||{},i=Ane.newContainer(t,u,"coloraxis"),i._name=u,kne(o,i,t,l,{prefix:"",cLetter:"c"});else{for(var f=0;f{"use strict";var Sne=tr(),Cne=ao().hasColorscale,Ene=ao().extractOpts;Bk.exports=function(r,t){function n(f,c){var g=f["_"+c];g!==void 0&&(f[c]=g)}function a(f,c){var g=c.container?Sne.nestedProperty(f,c.container).get():f;if(g)if(g.coloraxis)g._colorAx=t[g.coloraxis];else{var x=Ene(g),h=x.auto;(h||x.min===void 0)&&n(g,c.min),(h||x.max===void 0)&&n(g,c.max),x.autocolorscale&&n(g,"colorscale")}}for(var o=0;o{"use strict";var Uk=ut(),lm=tr(),Lne=ao().extractOpts;Hk.exports=function(r,t,n){var a=r._fullLayout,o=n.vals,i=n.containerStr,l=i?lm.nestedProperty(t,i).get():t,u=Lne(l),s=u.auto!==!1,f=u.min,c=u.max,g=u.mid,x=function(){return lm.aggNums(Math.min,null,o)},h=function(){return lm.aggNums(Math.max,null,o)};if(f===void 0?f=x():s&&(l._colorAx&&Uk(f)?f=Math.min(f,x()):f=x()),c===void 0?c=h():s&&(l._colorAx&&Uk(c)?c=Math.max(c,h()):c=h()),s&&g!==void 0&&(c-g>g-f?f=g-(c-g):c-g=0?_=a.colorscale.sequential:_=a.colorscale.sequentialminus,u._sync("colorscale",_)}}});var lo=xe((h6e,Vk)=>{"use strict";var p1=bs(),Q0=ao();Vk.exports={moduleType:"component",name:"colorscale",attributes:Di(),layoutAttributes:Xy(),supplyLayoutDefaults:qk(),handleDefaults:oo(),crossTraceDefaults:Ok(),calc:Tl(),scales:p1.scales,defaultScale:p1.defaultScale,getScale:p1.get,isValidScale:p1.isValid,hasColorscale:Q0.hasColorscale,extractOpts:Q0.extractOpts,extractScale:Q0.extractScale,flipScale:Q0.flipScale,makeColorScaleFunc:Q0.makeColorScaleFunc,makeColorScaleFuncFromTrace:Q0.makeColorScaleFuncFromTrace}});var Da=xe((d6e,Yk)=>{"use strict";var Gk=tr(),Dne=ba().isTypedArraySpec;Yk.exports={hasLines:function(e){return e.visible&&e.mode&&e.mode.indexOf("lines")!==-1},hasMarkers:function(e){return e.visible&&(e.mode&&e.mode.indexOf("markers")!==-1||e.type==="splom")},hasText:function(e){return e.visible&&e.mode&&e.mode.indexOf("text")!==-1},isBubble:function(e){var r=e.marker;return Gk.isPlainObject(r)&&(Gk.isArrayOrTypedArray(r.size)||Dne(r.size))}}});var sm=xe((p6e,Xk)=>{"use strict";var Rne=ut();Xk.exports=function(r,t){t||(t=2);var n=r.marker,a=n.sizeref||1,o=n.sizemin||0,i=n.sizemode==="area"?function(l){return Math.sqrt(l/a)}:function(l){return l/a};return function(l){var u=i(l/t);return Rne(u)&&u>0?Math.max(u,o):0}}});var so=xe(Hn=>{"use strict";var Zf=tr();Hn.getSubplot=function(e){return e.subplot||e.xaxis+e.yaxis||e.geo};Hn.isTraceInSubplots=function(e,r){if(e.type==="splom"){for(var t=e.xaxes||[],n=e.yaxes||[],a=0;a=0&&t.index{var um={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},zne=/([astvzqmhlc])([^astvzqmhlc]*)/gi,Nne=/-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/gi;function qne(e){let r=[];return e.replace(zne,(t,n,a)=>{let o=n.toLowerCase(),i=n,l=Bne(a);for(o==="m"&&l.length>2&&(r.push([i,...l.splice(0,2)]),o="l",i=i==="m"?"l":"L");;){if(l.length===um[o])return r.push([i,...l]),"";if(l.length{"use strict";var One=fm(),sr=function(e,r){return r?Math.round(e*(r=Math.pow(10,r)))/r:Math.round(e)},zr="M0,0Z",$k=Math.sqrt(2),Al=Math.sqrt(3),cm=Math.PI,vm=Math.cos,hm=Math.sin;rS.exports={circle:{n:0,f:function(e,r,t){if(Nr(r))return zr;var n=sr(e,2),a="M"+n+",0A"+n+","+n+" 0 1,1 0,-"+n+"A"+n+","+n+" 0 0,1 "+n+",0Z";return t?qr(r,t,a):a}},square:{n:1,f:function(e,r,t){if(Nr(r))return zr;var n=sr(e,2);return qr(r,t,"M"+n+","+n+"H-"+n+"V-"+n+"H"+n+"Z")}},diamond:{n:2,f:function(e,r,t){if(Nr(r))return zr;var n=sr(e*1.3,2);return qr(r,t,"M"+n+",0L0,"+n+"L-"+n+",0L0,-"+n+"Z")}},cross:{n:3,f:function(e,r,t){if(Nr(r))return zr;var n=sr(e*.4,2),a=sr(e*1.2,2);return qr(r,t,"M"+a+","+n+"H"+n+"V"+a+"H-"+n+"V"+n+"H-"+a+"V-"+n+"H-"+n+"V-"+a+"H"+n+"V-"+n+"H"+a+"Z")}},x:{n:4,f:function(e,r,t){if(Nr(r))return zr;var n=sr(e*.8/$k,2),a="l"+n+","+n,o="l"+n+",-"+n,i="l-"+n+",-"+n,l="l-"+n+","+n;return qr(r,t,"M0,"+n+a+o+i+o+i+l+i+l+a+l+a+"Z")}},"triangle-up":{n:5,f:function(e,r,t){if(Nr(r))return zr;var n=sr(e*2/Al,2),a=sr(e/2,2),o=sr(e,2);return qr(r,t,"M-"+n+","+a+"H"+n+"L0,-"+o+"Z")}},"triangle-down":{n:6,f:function(e,r,t){if(Nr(r))return zr;var n=sr(e*2/Al,2),a=sr(e/2,2),o=sr(e,2);return qr(r,t,"M-"+n+",-"+a+"H"+n+"L0,"+o+"Z")}},"triangle-left":{n:7,f:function(e,r,t){if(Nr(r))return zr;var n=sr(e*2/Al,2),a=sr(e/2,2),o=sr(e,2);return qr(r,t,"M"+a+",-"+n+"V"+n+"L-"+o+",0Z")}},"triangle-right":{n:8,f:function(e,r,t){if(Nr(r))return zr;var n=sr(e*2/Al,2),a=sr(e/2,2),o=sr(e,2);return qr(r,t,"M-"+a+",-"+n+"V"+n+"L"+o+",0Z")}},"triangle-ne":{n:9,f:function(e,r,t){if(Nr(r))return zr;var n=sr(e*.6,2),a=sr(e*1.2,2);return qr(r,t,"M-"+a+",-"+n+"H"+n+"V"+a+"Z")}},"triangle-se":{n:10,f:function(e,r,t){if(Nr(r))return zr;var n=sr(e*.6,2),a=sr(e*1.2,2);return qr(r,t,"M"+n+",-"+a+"V"+n+"H-"+a+"Z")}},"triangle-sw":{n:11,f:function(e,r,t){if(Nr(r))return zr;var n=sr(e*.6,2),a=sr(e*1.2,2);return qr(r,t,"M"+a+","+n+"H-"+n+"V-"+a+"Z")}},"triangle-nw":{n:12,f:function(e,r,t){if(Nr(r))return zr;var n=sr(e*.6,2),a=sr(e*1.2,2);return qr(r,t,"M-"+n+","+a+"V-"+n+"H"+a+"Z")}},pentagon:{n:13,f:function(e,r,t){if(Nr(r))return zr;var n=sr(e*.951,2),a=sr(e*.588,2),o=sr(-e,2),i=sr(e*-.309,2),l=sr(e*.809,2);return qr(r,t,"M"+n+","+i+"L"+a+","+l+"H-"+a+"L-"+n+","+i+"L0,"+o+"Z")}},hexagon:{n:14,f:function(e,r,t){if(Nr(r))return zr;var n=sr(e,2),a=sr(e/2,2),o=sr(e*Al/2,2);return qr(r,t,"M"+o+",-"+a+"V"+a+"L0,"+n+"L-"+o+","+a+"V-"+a+"L0,-"+n+"Z")}},hexagon2:{n:15,f:function(e,r,t){if(Nr(r))return zr;var n=sr(e,2),a=sr(e/2,2),o=sr(e*Al/2,2);return qr(r,t,"M-"+a+","+o+"H"+a+"L"+n+",0L"+a+",-"+o+"H-"+a+"L-"+n+",0Z")}},octagon:{n:16,f:function(e,r,t){if(Nr(r))return zr;var n=sr(e*.924,2),a=sr(e*.383,2);return qr(r,t,"M-"+a+",-"+n+"H"+a+"L"+n+",-"+a+"V"+a+"L"+a+","+n+"H-"+a+"L-"+n+","+a+"V-"+a+"Z")}},star:{n:17,f:function(e,r,t){if(Nr(r))return zr;var n=e*1.4,a=sr(n*.225,2),o=sr(n*.951,2),i=sr(n*.363,2),l=sr(n*.588,2),u=sr(-n,2),s=sr(n*-.309,2),f=sr(n*.118,2),c=sr(n*.809,2),g=sr(n*.382,2);return qr(r,t,"M"+a+","+s+"H"+o+"L"+i+","+f+"L"+l+","+c+"L0,"+g+"L-"+l+","+c+"L-"+i+","+f+"L-"+o+","+s+"H-"+a+"L0,"+u+"Z")}},hexagram:{n:18,f:function(e,r,t){if(Nr(r))return zr;var n=sr(e*.66,2),a=sr(e*.38,2),o=sr(e*.76,2);return qr(r,t,"M-"+o+",0l-"+a+",-"+n+"h"+o+"l"+a+",-"+n+"l"+a+","+n+"h"+o+"l-"+a+","+n+"l"+a+","+n+"h-"+o+"l-"+a+","+n+"l-"+a+",-"+n+"h-"+o+"Z")}},"star-triangle-up":{n:19,f:function(e,r,t){if(Nr(r))return zr;var n=sr(e*Al*.8,2),a=sr(e*.8,2),o=sr(e*1.6,2),i=sr(e*4,2),l="A "+i+","+i+" 0 0 1 ";return qr(r,t,"M-"+n+","+a+l+n+","+a+l+"0,-"+o+l+"-"+n+","+a+"Z")}},"star-triangle-down":{n:20,f:function(e,r,t){if(Nr(r))return zr;var n=sr(e*Al*.8,2),a=sr(e*.8,2),o=sr(e*1.6,2),i=sr(e*4,2),l="A "+i+","+i+" 0 0 1 ";return qr(r,t,"M"+n+",-"+a+l+"-"+n+",-"+a+l+"0,"+o+l+n+",-"+a+"Z")}},"star-square":{n:21,f:function(e,r,t){if(Nr(r))return zr;var n=sr(e*1.1,2),a=sr(e*2,2),o="A "+a+","+a+" 0 0 1 ";return qr(r,t,"M-"+n+",-"+n+o+"-"+n+","+n+o+n+","+n+o+n+",-"+n+o+"-"+n+",-"+n+"Z")}},"star-diamond":{n:22,f:function(e,r,t){if(Nr(r))return zr;var n=sr(e*1.4,2),a=sr(e*1.9,2),o="A "+a+","+a+" 0 0 1 ";return qr(r,t,"M-"+n+",0"+o+"0,"+n+o+n+",0"+o+"0,-"+n+o+"-"+n+",0Z")}},"diamond-tall":{n:23,f:function(e,r,t){if(Nr(r))return zr;var n=sr(e*.7,2),a=sr(e*1.4,2);return qr(r,t,"M0,"+a+"L"+n+",0L0,-"+a+"L-"+n+",0Z")}},"diamond-wide":{n:24,f:function(e,r,t){if(Nr(r))return zr;var n=sr(e*1.4,2),a=sr(e*.7,2);return qr(r,t,"M0,"+a+"L"+n+",0L0,-"+a+"L-"+n+",0Z")}},hourglass:{n:25,f:function(e,r,t){if(Nr(r))return zr;var n=sr(e,2);return qr(r,t,"M"+n+","+n+"H-"+n+"L"+n+",-"+n+"H-"+n+"Z")},noDot:!0},bowtie:{n:26,f:function(e,r,t){if(Nr(r))return zr;var n=sr(e,2);return qr(r,t,"M"+n+","+n+"V-"+n+"L-"+n+","+n+"V-"+n+"Z")},noDot:!0},"circle-cross":{n:27,f:function(e,r,t){if(Nr(r))return zr;var n=sr(e,2);return qr(r,t,"M0,"+n+"V-"+n+"M"+n+",0H-"+n+"M"+n+",0A"+n+","+n+" 0 1,1 0,-"+n+"A"+n+","+n+" 0 0,1 "+n+",0Z")},needLine:!0,noDot:!0},"circle-x":{n:28,f:function(e,r,t){if(Nr(r))return zr;var n=sr(e,2),a=sr(e/$k,2);return qr(r,t,"M"+a+","+a+"L-"+a+",-"+a+"M"+a+",-"+a+"L-"+a+","+a+"M"+n+",0A"+n+","+n+" 0 1,1 0,-"+n+"A"+n+","+n+" 0 0,1 "+n+",0Z")},needLine:!0,noDot:!0},"square-cross":{n:29,f:function(e,r,t){if(Nr(r))return zr;var n=sr(e,2);return qr(r,t,"M0,"+n+"V-"+n+"M"+n+",0H-"+n+"M"+n+","+n+"H-"+n+"V-"+n+"H"+n+"Z")},needLine:!0,noDot:!0},"square-x":{n:30,f:function(e,r,t){if(Nr(r))return zr;var n=sr(e,2);return qr(r,t,"M"+n+","+n+"L-"+n+",-"+n+"M"+n+",-"+n+"L-"+n+","+n+"M"+n+","+n+"H-"+n+"V-"+n+"H"+n+"Z")},needLine:!0,noDot:!0},"diamond-cross":{n:31,f:function(e,r,t){if(Nr(r))return zr;var n=sr(e*1.3,2);return qr(r,t,"M"+n+",0L0,"+n+"L-"+n+",0L0,-"+n+"ZM0,-"+n+"V"+n+"M-"+n+",0H"+n)},needLine:!0,noDot:!0},"diamond-x":{n:32,f:function(e,r,t){if(Nr(r))return zr;var n=sr(e*1.3,2),a=sr(e*.65,2);return qr(r,t,"M"+n+",0L0,"+n+"L-"+n+",0L0,-"+n+"ZM-"+a+",-"+a+"L"+a+","+a+"M-"+a+","+a+"L"+a+",-"+a)},needLine:!0,noDot:!0},"cross-thin":{n:33,f:function(e,r,t){if(Nr(r))return zr;var n=sr(e*1.4,2);return qr(r,t,"M0,"+n+"V-"+n+"M"+n+",0H-"+n)},needLine:!0,noDot:!0,noFill:!0},"x-thin":{n:34,f:function(e,r,t){if(Nr(r))return zr;var n=sr(e,2);return qr(r,t,"M"+n+","+n+"L-"+n+",-"+n+"M"+n+",-"+n+"L-"+n+","+n)},needLine:!0,noDot:!0,noFill:!0},asterisk:{n:35,f:function(e,r,t){if(Nr(r))return zr;var n=sr(e*1.2,2),a=sr(e*.85,2);return qr(r,t,"M0,"+n+"V-"+n+"M"+n+",0H-"+n+"M"+a+","+a+"L-"+a+",-"+a+"M"+a+",-"+a+"L-"+a+","+a)},needLine:!0,noDot:!0,noFill:!0},hash:{n:36,f:function(e,r,t){if(Nr(r))return zr;var n=sr(e/2,2),a=sr(e,2);return qr(r,t,"M"+n+","+a+"V-"+a+"M"+(n-a)+",-"+a+"V"+a+"M"+a+","+n+"H-"+a+"M-"+a+","+(n-a)+"H"+a)},needLine:!0,noFill:!0},"y-up":{n:37,f:function(e,r,t){if(Nr(r))return zr;var n=sr(e*1.2,2),a=sr(e*1.6,2),o=sr(e*.8,2);return qr(r,t,"M-"+n+","+o+"L0,0M"+n+","+o+"L0,0M0,-"+a+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-down":{n:38,f:function(e,r,t){if(Nr(r))return zr;var n=sr(e*1.2,2),a=sr(e*1.6,2),o=sr(e*.8,2);return qr(r,t,"M-"+n+",-"+o+"L0,0M"+n+",-"+o+"L0,0M0,"+a+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-left":{n:39,f:function(e,r,t){if(Nr(r))return zr;var n=sr(e*1.2,2),a=sr(e*1.6,2),o=sr(e*.8,2);return qr(r,t,"M"+o+","+n+"L0,0M"+o+",-"+n+"L0,0M-"+a+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-right":{n:40,f:function(e,r,t){if(Nr(r))return zr;var n=sr(e*1.2,2),a=sr(e*1.6,2),o=sr(e*.8,2);return qr(r,t,"M-"+o+","+n+"L0,0M-"+o+",-"+n+"L0,0M"+a+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"line-ew":{n:41,f:function(e,r,t){if(Nr(r))return zr;var n=sr(e*1.4,2);return qr(r,t,"M"+n+",0H-"+n)},needLine:!0,noDot:!0,noFill:!0},"line-ns":{n:42,f:function(e,r,t){if(Nr(r))return zr;var n=sr(e*1.4,2);return qr(r,t,"M0,"+n+"V-"+n)},needLine:!0,noDot:!0,noFill:!0},"line-ne":{n:43,f:function(e,r,t){if(Nr(r))return zr;var n=sr(e,2);return qr(r,t,"M"+n+",-"+n+"L-"+n+","+n)},needLine:!0,noDot:!0,noFill:!0},"line-nw":{n:44,f:function(e,r,t){if(Nr(r))return zr;var n=sr(e,2);return qr(r,t,"M"+n+","+n+"L-"+n+",-"+n)},needLine:!0,noDot:!0,noFill:!0},"arrow-up":{n:45,f:function(e,r,t){if(Nr(r))return zr;var n=sr(e,2),a=sr(e*2,2);return qr(r,t,"M0,0L-"+n+","+a+"H"+n+"Z")},backoff:1,noDot:!0},"arrow-down":{n:46,f:function(e,r,t){if(Nr(r))return zr;var n=sr(e,2),a=sr(e*2,2);return qr(r,t,"M0,0L-"+n+",-"+a+"H"+n+"Z")},noDot:!0},"arrow-left":{n:47,f:function(e,r,t){if(Nr(r))return zr;var n=sr(e*2,2),a=sr(e,2);return qr(r,t,"M0,0L"+n+",-"+a+"V"+a+"Z")},noDot:!0},"arrow-right":{n:48,f:function(e,r,t){if(Nr(r))return zr;var n=sr(e*2,2),a=sr(e,2);return qr(r,t,"M0,0L-"+n+",-"+a+"V"+a+"Z")},noDot:!0},"arrow-bar-up":{n:49,f:function(e,r,t){if(Nr(r))return zr;var n=sr(e,2),a=sr(e*2,2);return qr(r,t,"M-"+n+",0H"+n+"M0,0L-"+n+","+a+"H"+n+"Z")},backoff:1,needLine:!0,noDot:!0},"arrow-bar-down":{n:50,f:function(e,r,t){if(Nr(r))return zr;var n=sr(e,2),a=sr(e*2,2);return qr(r,t,"M-"+n+",0H"+n+"M0,0L-"+n+",-"+a+"H"+n+"Z")},needLine:!0,noDot:!0},"arrow-bar-left":{n:51,f:function(e,r,t){if(Nr(r))return zr;var n=sr(e*2,2),a=sr(e,2);return qr(r,t,"M0,-"+a+"V"+a+"M0,0L"+n+",-"+a+"V"+a+"Z")},needLine:!0,noDot:!0},"arrow-bar-right":{n:52,f:function(e,r,t){if(Nr(r))return zr;var n=sr(e*2,2),a=sr(e,2);return qr(r,t,"M0,-"+a+"V"+a+"M0,0L-"+n+",-"+a+"V"+a+"Z")},needLine:!0,noDot:!0},arrow:{n:53,f:function(e,r,t){if(Nr(r))return zr;var n=cm/2.5,a=2*e*vm(n),o=2*e*hm(n);return qr(r,t,"M0,0L"+-a+","+o+"L"+a+","+o+"Z")},backoff:.9,noDot:!0},"arrow-wide":{n:54,f:function(e,r,t){if(Nr(r))return zr;var n=cm/4,a=2*e*vm(n),o=2*e*hm(n);return qr(r,t,"M0,0L"+-a+","+o+"A "+2*e+","+2*e+" 0 0 1 "+a+","+o+"Z")},backoff:.4,noDot:!0}};function Nr(e){return e===null}var Kk,Qk,jk,eS;function qr(e,r,t){if((!e||e%360===0)&&!r)return t;if(jk===e&&eS===r&&Kk===t)return Qk;jk=e,eS=r,Kk=t;function n(T,m){var k=vm(T),S=hm(T),b=m[0],M=m[1]+(r||0);return[b*k-M*S,b*S+M*k]}for(var a=e/180*cm,o=0,i=0,l=One(t),u="",s=0;s{"use strict";var Cn=lt(),xt=tr(),Une=xt.numberFormat,kl=ut(),y1=Cr(),bn=Zr(),Hne=lo(),$f=xt.strTranslate,m1=Qn(),Vne=(wl(),or(_l)),Gne=(Kn(),or($n)),Yne=Gne.LINE_SPACING,vS=(Eh(),or(Ch)).DESELECTDIM,Xne=Da(),Wne=sm(),Zne=so().appendArrayPointValue,ur={};wS.exports=ur;ur.font=function(e,r){var t=r.variant,n=r.style,a=r.weight,o=r.color,i=r.size,l=r.family,u=r.shadow,s=r.lineposition,f=r.textcase;l&&e.style("font-family",l),i+1&&e.style("font-size",i+"px"),o&&e.call(bn.fill,o),a&&e.style("font-weight",a),n&&e.style("font-style",n),t&&e.style("font-variant",t),f&&e.style("text-transform",dm($ne(f))),u&&e.style("text-shadow",u==="auto"?m1.makeTextShadow(bn.contrast(o)):dm(u)),s&&e.style("text-decoration-line",dm(Kne(s)))};function dm(e){return e==="none"?void 0:e}var Jne={normal:"none",lower:"lowercase",upper:"uppercase","word caps":"capitalize"};function $ne(e){return Jne[e]}function Kne(e){return e.replace("under","underline").replace("over","overline").replace("through","line-through").split("+").join(" ")}ur.setPosition=function(e,r,t){e.attr("x",r).attr("y",t)};ur.setSize=function(e,r,t){e.attr("width",r).attr("height",t)};ur.setRect=function(e,r,t,n,a){e.call(ur.setPosition,r,t).call(ur.setSize,n,a)};ur.translatePoint=function(e,r,t,n){var a=t.c2p(e.x),o=n.c2p(e.y);if(kl(a)&&kl(o)&&r.node())r.node().nodeName==="text"?r.attr("x",a).attr("y",o):r.attr("transform",$f(a,o));else return!1;return!0};ur.translatePoints=function(e,r,t){e.each(function(n){var a=Cn.select(this);ur.translatePoint(n,a,r,t)})};ur.hideOutsideRangePoint=function(e,r,t,n,a,o){r.attr("display",t.isPtWithinRange(e,a)&&n.isPtWithinRange(e,o)?null:"none")};ur.hideOutsideRangePoints=function(e,r){if(r._hasClipOnAxisFalse){var t=r.xaxis,n=r.yaxis;e.each(function(a){var o=a[0].trace,i=o.xcalendar,l=o.ycalendar,u=y1.traceIs(o,"bar-like")?".bartext":".point,.textpoint";e.selectAll(u).each(function(s){ur.hideOutsideRangePoint(s,Cn.select(this),t,n,i,l)})})}};ur.crispRound=function(e,r,t){return!r||!kl(r)?t||0:e._context.staticPlot?r:r<1?1:Math.round(r)};ur.singleLineStyle=function(e,r,t,n,a){r.style("fill","none");var o=(((e||[])[0]||{}).trace||{}).line||{},i=t||o.width||0,l=a||o.dash||"";bn.stroke(r,n||o.color),ur.dashLine(r,l,i)};ur.lineGroupStyle=function(e,r,t,n){e.style("fill","none").each(function(a){var o=(((a||[])[0]||{}).trace||{}).line||{},i=r||o.width||0,l=n||o.dash||"";Cn.select(this).call(bn.stroke,t||o.color).call(ur.dashLine,l,i)})};ur.dashLine=function(e,r,t){t=+t||0,r=ur.dashStyle(r,t),e.style({"stroke-dasharray":r,"stroke-width":t+"px"})};ur.dashStyle=function(e,r){r=+r||1;var t=Math.max(r,3);return e==="solid"?e="":e==="dot"?e=t+"px,"+t+"px":e==="dash"?e=3*t+"px,"+3*t+"px":e==="longdash"?e=5*t+"px,"+5*t+"px":e==="dashdot"?e=3*t+"px,"+t+"px,"+t+"px,"+t+"px":e==="longdashdot"&&(e=5*t+"px,"+2*t+"px,"+t+"px,"+2*t+"px"),e};function hS(e,r,t,n){var a=r.fillpattern,o=r.fillgradient,i=ur.getPatternAttr,l=a&&(i(a.shape,0,"")||i(a.path,0,""));if(l){var u=i(a.bgcolor,0,null),s=i(a.fgcolor,0,null),f=a.fgopacity,c=i(a.size,0,8),g=i(a.solidity,0,.3),x=r.uid;ur.pattern(e,"point",t,x,l,c,g,void 0,a.fillmode,u,s,f)}else if(o&&o.type!=="none"){var h=o.type,_="scatterfill-"+r.uid;if(n&&(_="legendfill-"+r.uid),!n&&(o.start!==void 0||o.stop!==void 0)){var T,m;h==="horizontal"?(T={x:o.start,y:0},m={x:o.stop,y:0}):h==="vertical"&&(T={x:0,y:o.start},m={x:0,y:o.stop}),T.x=r._xA.c2p(T.x===void 0?r._extremes.x.min[0].val:T.x,!0),T.y=r._yA.c2p(T.y===void 0?r._extremes.y.min[0].val:T.y,!0),m.x=r._xA.c2p(m.x===void 0?r._extremes.x.max[0].val:m.x,!0),m.y=r._yA.c2p(m.y===void 0?r._extremes.y.max[0].val:m.y,!0),e.call(gS,t,_,"linear",o.colorscale,"fill",T,m,!0,!1)}else h==="horizontal"&&(h=h+"reversed"),e.call(ur.gradient,t,_,h,o.colorscale,"fill")}else r.fillcolor&&e.call(bn.fill,r.fillcolor)}ur.singleFillStyle=function(e,r){var t=Cn.select(e.node()),n=t.data(),a=((n[0]||[])[0]||{}).trace||{};hS(e,a,r,!1)};ur.fillGroupStyle=function(e,r,t){e.style("stroke-width",0).each(function(n){var a=Cn.select(this);n[0].trace&&hS(a,n[0].trace,r,t)})};var nS=tS();ur.symbolNames=[];ur.symbolFuncs=[];ur.symbolBackOffs=[];ur.symbolNeedLines={};ur.symbolNoDot={};ur.symbolNoFill={};ur.symbolList=[];Object.keys(nS).forEach(function(e){var r=nS[e],t=r.n;ur.symbolList.push(t,String(t),e,t+100,String(t+100),e+"-open"),ur.symbolNames[t]=e,ur.symbolFuncs[t]=r.f,ur.symbolBackOffs[t]=r.backoff||0,r.needLine&&(ur.symbolNeedLines[t]=!0),r.noDot?ur.symbolNoDot[t]=!0:ur.symbolList.push(t+200,String(t+200),e+"-dot",t+300,String(t+300),e+"-open-dot"),r.noFill&&(ur.symbolNoFill[t]=!0)});var Qne=ur.symbolNames.length,jne="M0,0.5L0.5,0L0,-0.5L-0.5,0Z";ur.symbolNumber=function(e){if(kl(e))e=+e;else if(typeof e=="string"){var r=0;e.indexOf("-open")>0&&(r=100,e=e.replace("-open","")),e.indexOf("-dot")>0&&(r+=200,e=e.replace("-dot","")),e=ur.symbolNames.indexOf(e),e>=0&&(e+=r)}return e%100>=Qne||e>=400?0:Math.floor(Math.max(e,0))};function dS(e,r,t,n){var a=e%100;return ur.symbolFuncs[a](r,t,n)+(e>=200?jne:"")}var aS=Une("~f"),pS={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}};ur.gradient=function(e,r,t,n,a,o){var i=pS[n];return gS(e,r,t,i.type,a,o,i.start,i.stop,!1,i.reversed)};function gS(e,r,t,n,a,o,i,l,u,s){var f=a.length,c;n==="linear"?c={node:"linearGradient",attrs:{x1:i.x,y1:i.y,x2:l.x,y2:l.y,gradientUnits:u?"userSpaceOnUse":"objectBoundingBox"},reversed:s}:n==="radial"&&(c={node:"radialGradient",reversed:s});for(var g=new Array(f),x=0;x=0&&e.i===void 0&&(e.i=o.i),r.style("opacity",n.selectedOpacityFn?n.selectedOpacityFn(e):e.mo===void 0?i.opacity:e.mo),n.ms2mrc){var u;e.ms==="various"||i.size==="various"?u=3:u=n.ms2mrc(e.ms),e.mrc=u,n.selectedSizeFn&&(u=e.mrc=n.selectedSizeFn(e));var s=ur.symbolNumber(e.mx||i.symbol)||0;e.om=s%200>=100;var f=_m(e,t),c=xm(e,t);r.attr("d",dS(s,u,f,c))}var g=!1,x,h,_;if(e.so)_=l.outlierwidth,h=l.outliercolor,x=i.outliercolor;else{var T=(l||{}).width;_=(e.mlw+1||T+1||(e.trace?(e.trace.marker.line||{}).width:0)+1)-1||0,"mlc"in e?h=e.mlcc=n.lineScale(e.mlc):xt.isArrayOrTypedArray(l.color)?h=bn.defaultLine:h=l.color,xt.isArrayOrTypedArray(i.color)&&(x=bn.defaultLine,g=!0),"mc"in e?x=e.mcc=n.markerScale(e.mc):x=i.color||i.colors||"rgba(0,0,0,0)",n.selectedColorFn&&(x=n.selectedColorFn(e))}let m=e.mld||(l||{}).dash;if(m&&ur.dashLine(r,m,_),e.om)r.call(bn.stroke,x).style({"stroke-width":(_||1)+"px",fill:"none"});else{r.style("stroke-width",(e.isBlank?0:_)+"px");var k=i.gradient,S=e.mgt;S?g=!0:S=k&&k.type,xt.isArrayOrTypedArray(S)&&(S=S[0],pS[S]||(S=0));var b=i.pattern,M=ur.getPatternAttr,d=b&&(M(b.shape,e.i,"")||M(b.path,e.i,""));if(S&&S!=="none"){var w=e.mgc;w?g=!0:w=k.color;var y=t.uid;g&&(y+="-"+e.i),ur.gradient(r,a,y,S,[[0,w],[1,x]],"fill")}else if(d){var v=!1,A=b.fgcolor;!A&&o&&o.color&&(A=o.color,v=!0);var p=M(A,e.i,o&&o.color||null),D=M(b.bgcolor,e.i,null),E=b.fgopacity,R=M(b.size,e.i,8),F=M(b.solidity,e.i,.3);v=v||e.mcc||xt.isArrayOrTypedArray(b.shape)||xt.isArrayOrTypedArray(b.path)||xt.isArrayOrTypedArray(b.bgcolor)||xt.isArrayOrTypedArray(b.fgcolor)||xt.isArrayOrTypedArray(b.size)||xt.isArrayOrTypedArray(b.solidity);var z=t.uid;v&&(z+="-"+e.i),ur.pattern(r,"point",a,z,d,R,F,e.mcc,b.fillmode,D,p,E)}else xt.isArrayOrTypedArray(x)?bn.fill(r,x[e.i]):bn.fill(r,x);_&&bn.stroke(r,h)}};ur.makePointStyleFns=function(e){var r={},t=e.marker;return r.markerScale=ur.tryColorscale(t,""),r.lineScale=ur.tryColorscale(t,"line"),y1.traceIs(e,"symbols")&&(r.ms2mrc=Xne.isBubble(e)?Wne(e):function(){return(t.size||6)/2}),e.selectedpoints&&xt.extendFlat(r,ur.makeSelectedPointStyleFns(e)),r};ur.makeSelectedPointStyleFns=function(e){var r={},t=e.selected||{},n=e.unselected||{},a=e.marker||{},o=t.marker||{},i=n.marker||{},l=a.opacity,u=o.opacity,s=i.opacity,f=u!==void 0,c=s!==void 0;(xt.isArrayOrTypedArray(l)||f||c)&&(r.selectedOpacityFn=function(b){var M=b.mo===void 0?a.opacity:b.mo;return b.selected?f?u:M:c?s:vS*M});var g=a.color,x=o.color,h=i.color;(x||h)&&(r.selectedColorFn=function(b){var M=b.mcc||g;return b.selected?x||M:h||M});var _=a.size,T=o.size,m=i.size,k=T!==void 0,S=m!==void 0;return y1.traceIs(e,"symbols")&&(k||S)&&(r.selectedSizeFn=function(b){var M=b.mrc||_/2;return b.selected?k?T/2:M:S?m/2:M}),r};ur.makeSelectedTextStyleFns=function(e){var r={},t=e.selected||{},n=e.unselected||{},a=e.textfont||{},o=t.textfont||{},i=n.textfont||{},l=a.color,u=o.color,s=i.color;return r.selectedTextColorFn=function(f){var c=f.tc||l;return f.selected?u||c:s||(u?c:bn.addOpacity(c,vS))},r};ur.selectedPointStyle=function(e,r){if(!(!e.size()||!r.selectedpoints)){var t=ur.makeSelectedPointStyleFns(r),n=r.marker||{},a=[];t.selectedOpacityFn&&a.push(function(o,i){o.style("opacity",t.selectedOpacityFn(i))}),t.selectedColorFn&&a.push(function(o,i){bn.fill(o,t.selectedColorFn(i))}),t.selectedSizeFn&&a.push(function(o,i){var l=i.mx||n.symbol||0,u=t.selectedSizeFn(i);o.attr("d",dS(ur.symbolNumber(l),u,_m(i,r),xm(i,r))),i.mrc2=u}),a.length&&e.each(function(o){for(var i=Cn.select(this),l=0;l0?t:0}ur.textPointStyle=function(e,r,t){if(e.size()){var n;if(r.selectedpoints){var a=ur.makeSelectedTextStyleFns(r);n=a.selectedTextColorFn}var o=r.texttemplate,i=t._fullLayout;e.each(function(l){var u=Cn.select(this),s=o?xt.extractOption(l,r,"txt","texttemplate"):xt.extractOption(l,r,"tx","text");if(!s&&s!==0){u.remove();return}if(o){var f=r._module.formatLabels,c=f?f(l,r,i):{},g={};Zne(g,r,l.i),s=xt.texttemplateString({data:[g,l,r._meta],fallback:r.texttemplatefallback,labels:c,locale:i._d3locale,template:s})}var x=l.tp||r.textposition,h=mS(l,r),_=n?n(l):l.tc||r.textfont.color;u.call(ur.font,{family:l.tf||r.textfont.family,weight:l.tw||r.textfont.weight,style:l.ty||r.textfont.style,variant:l.tv||r.textfont.variant,textcase:l.tC||r.textfont.textcase,lineposition:l.tE||r.textfont.lineposition,shadow:l.tS||r.textfont.shadow,size:h,color:_}).text(s).call(m1.convertToTspans,t).call(yS,x,h,l.mrc)})}};ur.selectedTextStyle=function(e,r){if(!(!e.size()||!r.selectedpoints)){var t=ur.makeSelectedTextStyleFns(r);e.each(function(n){var a=Cn.select(this),o=t.selectedTextColorFn(n),i=n.tp||r.textposition,l=mS(n,r);bn.fill(a,o);var u=y1.traceIs(r,"bar-like");yS(a,i,l,n.mrc2||n.mrc,u)})}};var iS=.5;ur.smoothopen=function(e,r){if(e.length<3)return"M"+e.join("L");var t="M"+e[0],n=[],a;for(a=1;a=u||b>=f&&b<=u)&&(M<=c&&M>=s||M>=c&&M<=s)&&(e=[b,M])}return e}ur.applyBackoff=_S;ur.makeTester=function(){var e=xt.ensureSingleById(Cn.select("body"),"svg","js-plotly-tester",function(t){t.attr(Vne.svgAttrs).style({position:"absolute",left:"-10000px",top:"-10000px",width:"9000px",height:"9000px","z-index":"1"})}),r=xt.ensureSingle(e,"path","js-reference-point",function(t){t.attr("d","M0,0H1V1H0Z").style({"stroke-width":0,fill:"black"})});ur.tester=e,ur.testref=r};ur.savedBBoxes={};var gm=0,tae=1e4;ur.bBox=function(e,r,t){t||(t=oS(e));var n;if(t){if(n=ur.savedBBoxes[t],n)return xt.extendFlat({},n)}else if(e.childNodes.length===1){var a=e.childNodes[0];if(t=oS(a),t){var o=+a.getAttribute("x")||0,i=+a.getAttribute("y")||0,l=a.getAttribute("transform");if(!l){var u=ur.bBox(a,!1,t);return o&&(u.left+=o,u.right+=o),i&&(u.top+=i,u.bottom+=i),u}if(t+="~"+o+"~"+i+"~"+l,n=ur.savedBBoxes[t],n)return xt.extendFlat({},n)}}var s,f;r?s=e:(f=ur.tester.node(),s=e.cloneNode(!0),f.appendChild(s)),Cn.select(s).attr("transform",null).call(m1.positionText,0,0);var c=s.getBoundingClientRect(),g=ur.testref.node().getBoundingClientRect();r||f.removeChild(s);var x={height:c.height,width:c.width,left:c.left-g.left,top:c.top-g.top,right:c.right-g.left,bottom:c.bottom-g.top};return gm>=tae&&(ur.savedBBoxes={},gm=0),t&&(ur.savedBBoxes[t]=x),gm++,xt.extendFlat({},x)};function oS(e){var r=e.getAttribute("data-unformatted");if(r!==null)return r+e.getAttribute("data-math")+e.getAttribute("text-anchor")+e.getAttribute("style")}ur.setClipUrl=function(e,r,t){e.attr("clip-path",bm(r,t))};function bm(e,r){if(!e)return null;var t=r._context,n=t._exportedPlot?"":t._baseUrl||"";return n?"url('"+n+"#"+e+"')":"url(#"+e+")"}ur.getTranslate=function(e){var r=/.*\btranslate\((-?\d*\.?\d*)[^-\d]*(-?\d*\.?\d*)[^\d].*/,t=e.attr?"attr":"getAttribute",n=e[t]("transform")||"",a=n.replace(r,function(o,i,l){return[i,l].join(" ")}).split(" ");return{x:+a[0]||0,y:+a[1]||0}};ur.setTranslate=function(e,r,t){var n=/(\btranslate\(.*?\);?)/,a=e.attr?"attr":"getAttribute",o=e.attr?"attr":"setAttribute",i=e[a]("transform")||"";return r=r||0,t=t||0,i=i.replace(n,"").trim(),i+=$f(r,t),i=i.trim(),e[o]("transform",i),i};ur.getScale=function(e){var r=/.*\bscale\((\d*\.?\d*)[^\d]*(\d*\.?\d*)[^\d].*/,t=e.attr?"attr":"getAttribute",n=e[t]("transform")||"",a=n.replace(r,function(o,i,l){return[i,l].join(" ")}).split(" ");return{x:+a[0]||1,y:+a[1]||1}};ur.setScale=function(e,r,t){var n=/(\bscale\(.*?\);?)/,a=e.attr?"attr":"getAttribute",o=e.attr?"attr":"setAttribute",i=e[a]("transform")||"";return r=r||1,t=t||1,i=i.replace(n,"").trim(),i+="scale("+r+","+t+")",i=i.trim(),e[o]("transform",i),i};var nae=/\s*sc.*/;ur.setPointGroupScale=function(e,r,t){if(r=r||1,t=t||1,!!e){var n=r===1&&t===1?"":"scale("+r+","+t+")";e.each(function(){var a=(this.getAttribute("transform")||"").replace(nae,"");a+=n,a=a.trim(),this.setAttribute("transform",a)})}};var aae=/translate\([^)]*\)\s*$/;ur.setTextPointsScale=function(e,r,t){e&&e.each(function(){var n,a=Cn.select(this),o=a.select("text");if(o.node()){var i=parseFloat(o.attr("x")||0),l=parseFloat(o.attr("y")||0),u=(a.attr("transform")||"").match(aae);r===1&&t===1?n=[]:n=[$f(i,l),"scale("+r+","+t+")",$f(-i,-l)],u&&n.push(u),a.attr("transform",n.join(""))}})};function xm(e,r){var t;return e&&(t=e.mf),t===void 0&&(t=r.marker&&r.marker.standoff||0),!r._geo&&!r._xA?-t:t}ur.getMarkerStandoff=xm;var Jf=Math.atan2,Ls=Math.cos,eu=Math.sin;function lS(e,r){var t=r[0],n=r[1];return[t*Ls(e)-n*eu(e),t*eu(e)+n*Ls(e)]}var sS,uS,fS,cS,ym,mm;function _m(e,r){var t=e.ma;t===void 0&&(t=r.marker.angle,(!kl(t)||xt.isArrayOrTypedArray(t))&&(t=0));var n,a,o=r.marker.angleref;if(o==="previous"||o==="north"){if(r._geo){var i=r._geo.project(e.lonlat);n=i[0],a=i[1]}else{var l=r._xA,u=r._yA;if(l&&u)n=l.c2p(e.x),a=u.c2p(e.y);else return 90}if(r._geo){var s=e.lonlat[0],f=e.lonlat[1],c=r._geo.project([s,f+1e-5]),g=r._geo.project([s+1e-5,f]),x=Jf(g[1]-a,g[0]-n),h=Jf(c[1]-a,c[0]-n),_;if(o==="north")_=t/180*Math.PI;else if(o==="previous"){var T=s/180*Math.PI,m=f/180*Math.PI,k=sS/180*Math.PI,S=uS/180*Math.PI,b=k-T,M=Ls(S)*eu(b),d=eu(S)*Ls(m)-Ls(S)*eu(m)*Ls(b);_=-Jf(M,d)-Math.PI,sS=s,uS=f}var w=lS(x,[Ls(_),0]),y=lS(h,[eu(_),0]);t=Jf(w[1]+y[1],w[0]+y[0])/Math.PI*180,o==="previous"&&!(mm===r.uid&&e.i===ym+1)&&(t=null)}if(o==="previous"&&!r._geo)if(mm===r.uid&&e.i===ym+1&&kl(n)&&kl(a)){var v=n-fS,A=a-cS,p=r.line&&r.line.shape||"",D=p.slice(p.length-1);D==="h"&&(A=0),D==="v"&&(v=0),t+=Jf(A,v)/Math.PI*180+90}else t=null}return fS=n,cS=a,ym=e.i,mm=r.uid,t}ur.getMarkerAngle=_m});var Kf=xe((x6e,kS)=>{"use strict";var ru=lt(),iae=ut(),oae=Sn(),wm=Cr(),Fs=tr(),MS=Fs.strTranslate,b1=At(),x1=Zr(),tu=Qn(),TS=(Eh(),or(Ch)),lae=(Kn(),or($n)).OPPOSITE_SIDE,AS=/ [XY][0-9]* /,Mm=1.6,Tm=1.6;function sae(e,r,t){var n=e._fullLayout,a=t.propContainer,o=t.propName,i=t.placeholder,l=t.traceIndex,u=t.avoid||{},s=t.attributes,f=t.transform,c=t.containerGroup,g=1,x=a.title,h=(x&&x.text?x.text:"").trim(),_=!1,T=x&&x.font?x.font:{},m=T.family,k=T.size,S=T.color,b=T.weight,M=T.style,d=T.variant,w=T.textcase,y=T.lineposition,v=T.shadow,A=t.subtitlePropName,p=!!A,D=t.subtitlePlaceholder,E=(a.title||{}).subtitle||{text:"",font:{}},R=(E.text||"").trim(),F=!1,z=1,P=E.font,L=P.family,I=P.size,B=P.color,O=P.weight,G=P.style,J=P.variant,j=P.textcase,V=P.lineposition,q=P.shadow,Z;o==="title.text"?Z="titleText":o.indexOf("axis")!==-1?Z="axisTitleText":o.indexOf("colorbar")!==-1&&(Z="colorbarTitleText");var re=e._context.edits[Z];function $(Le,se){return Le===void 0||se===void 0?!1:Le.replace(AS," % ")===se.replace(AS," % ")}h===""?g=0:$(h,i)&&(re||(h=""),g=.2,_=!0),p&&(R===""?z=0:$(R,D)&&(re||(R=""),z=.2,F=!0)),t._meta?h=Fs.templateString(h,t._meta):n._meta&&(h=Fs.templateString(h,n._meta));var ae=h||R||re,Q;c||(c=Fs.ensureSingle(n._infolayer,"g","g-"+r),Q=n._hColorbarMoveTitle);var te=c.selectAll("text."+r).data(ae?[0]:[]);te.enter().append("text"),te.text(h).attr("class",r),te.exit().remove();var ue=null,ee=r+"-subtitle",ie=R||re;if(p&&(ue=c.selectAll("text."+ee).data(ie?[0]:[]),ue.enter().append("text"),ue.text(R).attr("class",ee),ue.exit().remove()),!ae)return c;function fe(Le,se){Fs.syncOrAsync([we,Te],{title:Le,subtitle:se})}function we(Le){var se=Le.title,X=Le.subtitle,K;!f&&Q&&(f={}),f?(K="",f.rotate&&(K+="rotate("+[f.rotate,s.x,s.y]+")"),(f.offset||Q)&&(K+=MS(0,(f.offset||0)-(Q||0)))):K=null,se.attr("transform",K);function ye(ve){if(ve){var he=ru.select(ve.node().parentNode).select("."+ee);if(!he.empty()){var be=ve.node().getBBox();if(be.height){var Ae=be.y+be.height+Mm*I;he.attr("y",Ae)}}}}if(se.style("opacity",g*x1.opacity(S)).call(b1.font,{color:x1.rgb(S),size:ru.round(k,2),family:m,weight:b,style:M,variant:d,textcase:w,shadow:v,lineposition:y}).attr(s).call(tu.convertToTspans,e,ye),X&&!X.empty()){var oe=c.select("."+r+"-math-group"),de=se.node().getBBox(),pe=oe.node()?oe.node().getBBox():void 0,me=pe?pe.y+pe.height+Mm*I:de.y+de.height+Tm*I,Se=Fs.extendFlat({},s,{y:me});X.attr("transform",K),X.style("opacity",z*x1.opacity(B)).call(b1.font,{color:x1.rgb(B),size:ru.round(I,2),family:L,weight:O,style:G,variant:J,textcase:j,shadow:q,lineposition:V}).attr(Se).call(tu.convertToTspans,e)}return oae.previousPromises(e)}function Te(Le){var se=Le.title,X=ru.select(se.node().parentNode);if(u&&u.selection&&u.side&&h){X.attr("transform",null);var K=lae[u.side],ye=u.side==="left"||u.side==="top"?-1:1,oe=iae(u.pad)?u.pad:2,de=b1.bBox(X.node()),pe={t:0,b:0,l:0,r:0},me=e._fullLayout._reservedMargin;for(var Se in me)for(var ve in me[Se]){var he=me[Se][ve];pe[ve]=Math.max(pe[ve],he)}var be={left:pe.l,top:pe.t,right:n.width-pe.r,bottom:n.height-pe.b},Ae=u.maxShift||ye*(be[u.side]-de[u.side]),Re=0;if(Ae<0)Re=Ae;else{var Pe=u.offsetLeft||0,Ye=u.offsetTop||0;de.left-=Pe,de.right-=Pe,de.top-=Ye,de.bottom-=Ye,u.selection.each(function(){var Ue=b1.bBox(this);Fs.bBoxIntersect(de,Ue,oe)&&(Re=Math.max(Re,ye*(Ue[u.side]-de[K])+oe))}),Re=Math.min(Ae,Re),a._titleScoot=Math.abs(Re)}if(Re>0||Ae<0){var Ve={left:[-Re,0],right:[Re,0],top:[0,-Re],bottom:[0,Re]}[u.side];X.attr("transform",MS(Ve[0],Ve[1]))}}}te.call(fe,ue);function ke(Le,se){Le.text(se).on("mouseover.opacity",function(){ru.select(this).transition().duration(TS.SHOW_PLACEHOLDER).style("opacity",1)}).on("mouseout.opacity",function(){ru.select(this).transition().duration(TS.HIDE_PLACEHOLDER).style("opacity",0)})}if(re&&(h?te.on(".opacity",null):(ke(te,i),_=!0),te.call(tu.makeEditable,{gd:e}).on("edit",function(Le){l!==void 0?wm.call("_guiRestyle",e,o,Le,l):wm.call("_guiRelayout",e,o,Le)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(fe)}).on("input",function(Le){this.text(Le||" ").call(tu.positionText,s.x,s.y)}),p)){if(p&&!h){var ge=te.node().getBBox(),Ee=ge.y+ge.height+Tm*I;ue.attr("y",Ee)}R?ue.on(".opacity",null):(ke(ue,D),F=!0),ue.call(tu.makeEditable,{gd:e}).on("edit",function(Le){wm.call("_guiRelayout",e,"title.subtitle.text",Le)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(fe)}).on("input",function(Le){this.text(Le||" ").call(tu.positionText,ue.attr("x"),ue.attr("y"))})}return te.classed("js-placeholder",_),ue&&!ue.empty()&&ue.classed("js-placeholder",F),c}kS.exports={draw:sae,SUBTITLE_PADDING_EM:Tm,SUBTITLE_PADDING_MATHJAX_EM:Mm}});var C1=xe((_6e,DS)=>{"use strict";var uae=lt(),fae=w0().utcFormat,kt=tr(),cae=kt.numberFormat,uo=ut(),Sl=kt.cleanNumber,vae=kt.ms2DateTime,SS=kt.dateTime2ms,fo=kt.ensureNumber,CS=kt.isArrayOrTypedArray,Cl=(wn(),or(Rn)),_1=Cl.FP_SAFE,Fi=Cl.BADNUM,hae=Cl.LOG_CLIP,dae=Cl.ONEWEEK,w1=Cl.ONEDAY,M1=Cl.ONEHOUR,ES=Cl.ONEMIN,LS=Cl.ONESEC,T1=mn(),S1=(kn(),or(An)),A1=S1.HOUR_PATTERN,k1=S1.WEEKDAY_PATTERN;function Qf(e){return Math.pow(10,e)}function Am(e){return e!=null}DS.exports=function(r,t){t=t||{};var n=r._id||"x",a=n.charAt(0);function o(b,M){if(b>0)return Math.log(b)/Math.LN10;if(b<=0&&M&&r.range&&r.range.length===2){var d=r.range[0],w=r.range[1];return .5*(d+w-2*hae*Math.abs(d-w))}else return Fi}function i(b,M,d,w){if((w||{}).msUTC&&uo(b))return+b;var y=SS(b,d||r.calendar);if(y===Fi)if(uo(b)){b=+b;var v=Math.floor(kt.mod(b+.05,1)*10),A=Math.round(b-v/10);y=SS(new Date(A))+v/10}else return Fi;return y}function l(b,M,d){return vae(b,M,d||r.calendar)}function u(b){return r._categories[Math.round(b)]}function s(b){if(Am(b)){if(r._categoriesMap===void 0&&(r._categoriesMap={}),r._categoriesMap[b]!==void 0)return r._categoriesMap[b];r._categories.push(typeof b=="number"?String(b):b);var M=r._categories.length-1;return r._categoriesMap[b]=M,M}return Fi}function f(b,M){for(var d=new Array(M),w=0;wr.range[1]&&(d=!d);for(var w=d?-1:1,y=w*b,v=0,A=0;AD)v=A+1;else{v=y<(p+D)/2?A:A+1;break}}var E=r._B[v]||0;return isFinite(E)?h(b,r._m2,E):0},m=function(b){var M=r._rangebreaks.length;if(!M)return _(b,r._m,r._b);for(var d=0,w=0;wr._rangebreaks[w].pmax&&(d=w+1);return _(b,r._m2,r._B[d])}}r.c2l=r.type==="log"?o:fo,r.l2c=r.type==="log"?Qf:fo,r.l2p=T,r.p2l=m,r.c2p=r.type==="log"?function(b,M){return T(o(b,M))}:T,r.p2c=r.type==="log"?function(b){return Qf(m(b))}:m,["linear","-"].indexOf(r.type)!==-1?(r.d2r=r.r2d=r.d2c=r.r2c=r.d2l=r.r2l=Sl,r.c2d=r.c2r=r.l2d=r.l2r=fo,r.d2p=r.r2p=function(b){return r.l2p(Sl(b))},r.p2d=r.p2r=m,r.cleanPos=fo):r.type==="log"?(r.d2r=r.d2l=function(b,M){return o(Sl(b),M)},r.r2d=r.r2c=function(b){return Qf(Sl(b))},r.d2c=r.r2l=Sl,r.c2d=r.l2r=fo,r.c2r=o,r.l2d=Qf,r.d2p=function(b,M){return r.l2p(r.d2r(b,M))},r.p2d=function(b){return Qf(m(b))},r.r2p=function(b){return r.l2p(Sl(b))},r.p2r=m,r.cleanPos=fo):r.type==="date"?(r.d2r=r.r2d=kt.identity,r.d2c=r.r2c=r.d2l=r.r2l=i,r.c2d=r.c2r=r.l2d=r.l2r=l,r.d2p=r.r2p=function(b,M,d){return r.l2p(i(b,0,d))},r.p2d=r.p2r=function(b,M,d){return l(m(b),M,d)},r.cleanPos=function(b){return kt.cleanDate(b,Fi,r.calendar)}):r.type==="category"?(r.d2c=r.d2l=s,r.r2d=r.c2d=r.l2d=u,r.d2r=r.d2l_noadd=g,r.r2c=function(b){var M=x(b);return M!==void 0?M:r.fraction2r(.5)},r.l2r=r.c2r=fo,r.r2l=x,r.d2p=function(b){return r.l2p(r.r2c(b))},r.p2d=function(b){return u(m(b))},r.r2p=r.d2p,r.p2r=m,r.cleanPos=function(b){return typeof b=="string"&&b!==""?b:fo(b)}):r.type==="multicategory"&&(r.r2d=r.c2d=r.l2d=u,r.d2r=r.d2l_noadd=g,r.r2c=function(b){var M=g(b);return M!==void 0?M:r.fraction2r(.5)},r.r2c_just_indices=c,r.l2r=r.c2r=fo,r.r2l=g,r.d2p=function(b){return r.l2p(r.r2c(b))},r.p2d=function(b){return u(m(b))},r.r2p=r.d2p,r.p2r=m,r.cleanPos=function(b){return Array.isArray(b)||typeof b=="string"&&b!==""?b:fo(b)},r.setupMultiCategory=function(b){var M=r._traceIndices,d,w,y=r._matchGroup;if(y&&r._categories.length===0){for(var v in y)if(v!==n){var A=t[T1.id2name(v)];M=M.concat(A._traceIndices)}}var p=[[0,{}],[0,{}]],D=[];for(d=0;dA[1]&&(w[v?0:1]=d,y[1]=A[1]),y[0]>=y[1])if(M!==void 0){var p=A[0]+1;d!==void 0&&(p=Math.min(p,A[1])),w[v?0:1]=r.l2r(p)}else d!==void 0&&(w[v?1:0]=r.l2r(A[1]-1))}},r.cleanRange=function(b,M){r._cleanRange(b,M),r.limitRange(b)},r._cleanRange=function(b,M){M||(M={}),b||(b="range");var d=kt.nestedProperty(r,b).get(),w,y;if(r.type==="date"?y=kt.dfltRange(r.calendar):a==="y"?y=S1.DFLTRANGEY:r._name==="realaxis"?y=[0,1]:y=M.dfltRange||S1.DFLTRANGEX,y=y.slice(),(r.rangemode==="tozero"||r.rangemode==="nonnegative")&&(y[0]=0),!d||d.length!==2){kt.nestedProperty(r,b).set(y);return}var v=d[0]===null,A=d[1]===null;for(r.type==="date"&&!r.autorange&&(d[0]=kt.cleanDate(d[0],Fi,r.calendar),d[1]=kt.cleanDate(d[1],Fi,r.calendar)),w=0;w<2;w++)if(r.type==="date"){if(!kt.isDateTime(d[w],r.calendar)){r[b]=y;break}if(r.r2l(d[0])===r.r2l(d[1])){var p=kt.constrain(r.r2l(d[0]),kt.MIN_MS+1e3,kt.MAX_MS-1e3);d[0]=r.l2r(p-1e3),d[1]=r.l2r(p+1e3);break}}else{if(!uo(d[w]))if(!(v||A)&&uo(d[1-w]))d[w]=d[1-w]*(w?10:.1);else{r[b]=y;break}if(d[w]<-_1?d[w]=-_1:d[w]>_1&&(d[w]=_1),d[0]===d[1]){var D=Math.max(1,Math.abs(d[0]*1e-6));d[0]-=D,d[1]+=D}}},r.setScale=function(b){var M=t._size;if(r.overlaying){var d=T1.getFromId({_fullLayout:t},r.overlaying);r.domain=d.domain}var w=b&&r._r?"_r":"range",y=r.calendar;r.cleanRange(w);var v=r.r2l(r[w][0],y),A=r.r2l(r[w][1],y),p=a==="y";if(p?(r._offset=M.t+(1-r.domain[1])*M.h,r._length=M.h*(r.domain[1]-r.domain[0]),r._m=r._length/(v-A),r._b=-r._m*A):(r._offset=M.l+r.domain[0]*M.w,r._length=M.w*(r.domain[1]-r.domain[0]),r._m=r._length/(A-v),r._b=-r._m*v),r._rangebreaks=[],r._lBreaks=0,r._m2=0,r._B=[],r.rangebreaks){var D,E;if(r._rangebreaks=r.locateBreaks(Math.min(v,A),Math.max(v,A)),r._rangebreaks.length){for(D=0;DA&&(R=!R),R&&r._rangebreaks.reverse();var F=R?-1:1;for(r._m2=F*r._length/(Math.abs(A-v)-r._lBreaks),r._B.push(-r._m2*(p?A:v)),D=0;Dy&&(y+=7,vy&&(y+=24,v=w&&v=w&&b=q.min&&(Gq.max&&(q.max=J),j=!1)}j&&A.push({min:G,max:J})}};for(d=0;d{"use strict";var RS=ut(),km=tr(),pae=(wn(),or(Rn)).BADNUM,E1=km.isArrayOrTypedArray,gae=km.isDateTime,yae=km.cleanNumber,FS=Math.round;IS.exports=function(r,t,n){var a=r,o=n.noMultiCategory;if(E1(a)&&!a.length)return"-";if(!o&&wae(a))return"multicategory";if(o&&Array.isArray(a[0])){for(var i=[],l=0;lo*2}function PS(e){return Math.max(1,(e-1)/1e3)}function _ae(e,r){for(var t=e.length,n=PS(t),a=0,o=0,i={},l=0;la*2}function wae(e){return E1(e[0])&&E1(e[1])}});var nu=xe((M6e,VS)=>{"use strict";var Mae=lt(),BS=ut(),El=tr(),L1=(wn(),or(Rn)).FP_SAFE,Tae=Cr(),Aae=At(),OS=mn(),kae=OS.getFromId,Sae=OS.isLinked;VS.exports={applyAutorangeOptions:HS,getAutoRange:Cm,makePadFn:Em,doAutoRange:Eae,findExtremes:Lae,concatExtremes:Rm};function Cm(e,r){var t,n,a=[],o=e._fullLayout,i=Em(o,r,0),l=Em(o,r,1),u=Rm(e,r),s=u.min,f=u.max;if(s.length===0||f.length===0)return El.simpleMap(r.range,r.r2l);var c=s[0].val,g=f[0].val;for(t=1;t0&&(A=S-i(d)-l(w),A>b?p/A>M&&(y=d,v=w,M=p/A):p/S>M&&(y={val:d.val,nopad:1},v={val:w.val,nopad:1},M=p/S));function D(P,L){return Math.max(P,l(L))}if(c===g){var E=c-1,R=c+1;if(m)if(c===0)a=[0,1];else{var F=(c>0?f:s).reduce(D,0),z=c/(1-Math.min(.5,F/S));a=c>0?[0,z]:[z,0]}else k?a=[Math.max(0,E),Math.max(1,R)]:a=[E,R]}else m?(y.val>=0&&(y={val:0,nopad:1}),v.val<=0&&(v={val:0,nopad:1})):k&&(y.val-M*i(y)<0&&(y={val:0,nopad:1}),v.val<=0&&(v={val:1,nopad:1})),M=(v.val-y.val-zS(r,d.val,w.val))/(S-i(y)-l(v)),a=[y.val-M*i(y),v.val+M*l(v)];return a=HS(a,r),r.limitRange&&r.limitRange(),h&&a.reverse(),El.simpleMap(a,r.l2r||Number)}function zS(e,r,t){var n=0;if(e.rangebreaks)for(var a=e.locateBreaks(r,t),o=0;o0?t.ppadplus:t.ppadminus)||t.ppad||0),d=b((e._m>0?t.ppadminus:t.ppadplus)||t.ppad||0),w=b(t.vpadplus||t.vpad),y=b(t.vpadminus||t.vpad);if(!s){if(k=1/0,S=-1/0,u)for(c=0;c0&&(k=g),g>S&&g-L1&&(k=g),g>S&&g=p;c--)A(c);return{min:n,max:a,opts:t}}function Lm(e,r,t,n){US(e,r,t,n,Dae)}function Dm(e,r,t,n){US(e,r,t,n,Rae)}function US(e,r,t,n,a){for(var o=n.tozero,i=n.extrapad,l=!0,u=0;u=t&&(s.extrapad||!i)){l=!1;break}else a(r,s.val)&&s.pad<=t&&(i||!s.extrapad)&&(e.splice(u,1),u--)}if(l){var f=o&&r===0;e.push({val:r,pad:f?0:t,extrapad:f?!1:i})}}function qS(e){return BS(e)&&Math.abs(e)=r}function Fae(e,r){var t=r.autorangeoptions;return t&&t.minallowed!==void 0&&D1(r,t.minallowed,t.maxallowed)?t.minallowed:t&&t.clipmin!==void 0&&D1(r,t.clipmin,t.clipmax)?Math.max(e,r.d2l(t.clipmin)):e}function Pae(e,r){var t=r.autorangeoptions;return t&&t.maxallowed!==void 0&&D1(r,t.minallowed,t.maxallowed)?t.maxallowed:t&&t.clipmax!==void 0&&D1(r,t.clipmin,t.clipmax)?Math.min(e,r.d2l(t.clipmax)):e}function D1(e,r,t){return r!==void 0&&t!==void 0?(r=e.d2l(r),t=e.d2l(t),r=u&&(o=u,t=u),i<=u&&(i=u,n=u)}}return t=Fae(t,r),n=Pae(n,r),[t,n]}});var Vt=xe((A6e,cC)=>{"use strict";var ii=lt(),un=ut(),au=Sn(),ec=Cr(),Er=tr(),iu=Er.strTranslate,Ps=Qn(),Iae=Kf(),rc=Zr(),Ba=At(),zae=ai(),GS=$y(),T6e=(kn(),or(An)),Vn=(wn(),or(Rn)),Nae=Vn.ONEMAXYEAR,P1=Vn.ONEAVGYEAR,I1=Vn.ONEMINYEAR,qae=Vn.ONEMAXQUARTER,zm=Vn.ONEAVGQUARTER,z1=Vn.ONEMINQUARTER,Bae=Vn.ONEMAXMONTH,ou=Vn.ONEAVGMONTH,N1=Vn.ONEMINMONTH,Oa=Vn.ONEWEEK,ca=Vn.ONEDAY,Ll=ca/2,vo=Vn.ONEHOUR,tc=Vn.ONEMIN,q1=Vn.ONESEC,Oae=Vn.ONEMILLI,Uae=Vn.ONEMICROSEC,Is=Vn.MINUS_SIGN,O1=Vn.BADNUM,Nm={K:"zeroline"},qm={K:"gridline",L:"path"},Bm={K:"minor-gridline",L:"path"},rC={K:"tick",L:"path"},YS={K:"tick",L:"text"},XS={width:["x","r","l","xl","xr"],height:["y","t","b","yt","yb"],right:["r","xr"],left:["l","xl"],top:["t","yt"],bottom:["b","yb"]},U1=(Kn(),or($n)),jf=U1.MID_SHIFT,zs=U1.CAP_SHIFT,nc=U1.LINE_SPACING,Hae=U1.OPPOSITE_SIDE,B1=3,ar=cC.exports={};ar.setConvert=C1();var Vae=Sm(),ho=mn(),Gae=ho.idSort,Yae=ho.isLinked;ar.id2name=ho.id2name;ar.name2id=ho.name2id;ar.cleanId=ho.cleanId;ar.list=ho.list;ar.listIds=ho.listIds;ar.getFromId=ho.getFromId;ar.getFromTrace=ho.getFromTrace;var tC=nu();ar.getAutoRange=tC.getAutoRange;ar.findExtremes=tC.findExtremes;var Xae=1e-4;function Vm(e){var r=(e[1]-e[0])*Xae;return[e[0]-r,e[1]+r]}function Wae(e,r,t){if(![t,e,r].every(un)||t===0)return e;let n=Math.round((e-r)/t),a=r+n*t;return e!==a&&Math.abs(e-a)g+" domain")),u=u.concat(o||[]),f.length>i?(Er.warn("Array attribute "+s+" has more entries than expected, truncating to "+i),f=f.slice(0,i)):f.length2e-6||((t-e._forceTick0)/e._minDtick%1+1.000001)%1>2e-6)&&(e._minDtick=0))};ar.saveRangeInitial=function(e,r){for(var t=ar.list(e,"",!0),n=!1,a=0;ac*.3||s(n)||s(a))){var g=t.dtick/2;e+=e+gi){var l=Number(t.slice(1));o.exactYears>i&&l%12===0?e=ar.tickIncrement(e,"M6","reverse")+ca*1.5:o.exactMonths>i?e=ar.tickIncrement(e,"M1","reverse")+ca*15.5:e-=Ll;var u=ar.tickIncrement(e,t);if(u<=n)return u}return e}ar.prepMinorTicks=function(e,r,t){var c,g;if(!((c=r.minor)!=null&&c.dtick)){delete e.dtick;var n=r.dtick&&un(r._tmin),a;if(n){var o=ar.tickIncrement(r._tmin,r.dtick,!0);a=[r._tmin,o*.99+r._tmin*.01]}else{var i=Er.simpleMap(r.range,r.r2l);a=[i[0],.8*i[0]+.2*i[1]]}if(e.range=Er.simpleMap(a,r.l2r),e._isMinor=!0,ar.prepTicks(e,t),n){var l=un(r.dtick),u=un(e.dtick),s=l?r.dtick:+r.dtick.substring(1),f=u?e.dtick:+e.dtick.substring(1);l&&u?Fm(s,f)?s===2*Oa&&f===2*ca&&(e.dtick=Oa):s===2*Oa&&f===3*ca?e.dtick=Oa:s===Oa&&!(r._input.minor||{}).nticks?e.dtick=ca:JS(s/f,2.5)?e.dtick=s/2:e.dtick=s:String(r.dtick).charAt(0)==="M"?u?e.dtick="M1":Fm(s,f)?s>=12&&f===2&&(e.dtick="M3"):e.dtick=r.dtick:String(e.dtick).charAt(0)==="L"?String(r.dtick).charAt(0)==="L"?Fm(s,f)||(e.dtick=JS(s/f,2.5)?r.dtick/2:r.dtick):e.dtick="D1":e.dtick==="D2"&&+r.dtick>1&&(e.dtick=1)}e.range=r.range}((g=r.minor)==null?void 0:g._tick0Init)===void 0&&(e.tick0=r.tick0),r._useTicklabelIndex&&(Gm(e),r.minor._tickround=e._tickround)};function Fm(e,r){return Math.abs((e/r+.5)%1-.5)<.001}function JS(e,r){return Math.abs(e/r-1)<.001}ar.prepTicks=function(e,r){var t=Er.simpleMap(e.range,e.r2l,void 0,void 0,r);if(e.tickmode==="auto"||!e.dtick){var n=e.nticks,a;n||(e.type==="category"||e.type==="multicategory"?(a=e.tickfont?Er.bigFont(e.tickfont.size||12):15,n=e._length/a):(a=e._id.charAt(0)==="y"?40:80,n=Er.constrain(e._length/a,4,9)+1),e._name==="radialaxis"&&(n*=2)),e.minor&&e.minor.tickmode!=="array"||e.tickmode==="array"&&(n*=100),e._roughDTick=Math.abs(t[1]-t[0])/n,ar.autoTicks(e,e._roughDTick),e._minDtick>0&&e.dtick0?(l=n-1,u=n):(l=n,u=n),o=e[l].value,i=e[u].value}var s=Math.abs(i-o),f=t||s,c=0;e[n].periodEndTick!=null?c=s:f>=I1?s>=I1&&s<=Nae?c=s:c=P1:t===zm&&f>=z1?s>=z1&&s<=qae?c=s:c=zm:f>=N1?s>=N1&&s<=Bae?c=s:c=ou:t===Oa&&f>=Oa?c=Oa:f>=ca?c=ca:t===Ll&&f>=Ll?c=Ll:t===vo&&f>=vo&&(c=vo);var g;c>=s&&(c=s,g=!0);var x=a+c;if(r.rangebreaks&&c>0){for(var h=84,_=0,T=0;TOa&&(c=s)}(c>0||n===0)&&(e[n].periodX=a+c/2)}}ar.calcTicks=function(r,t){var n=r.type,a=r.calendar,o=r.ticklabelstep,i=r.ticklabelmode==="period",l=r.range[0]>r.range[1],u=!r.ticklabelindex||Er.isArrayOrTypedArray(r.ticklabelindex)?r.ticklabelindex:[r.ticklabelindex];r._useTicklabelIndex=u!=null&&u!==0;for(var s=Er.simpleMap(r.range,r.r2l,void 0,void 0,t),f=s[1]=(b?0:1);M--){var d=!M;M?(r._dtickInit=r.dtick,r._tick0Init=r.tick0):b&&(r.minor._dtickInit=r.minor.dtick,r.minor._tick0Init=r.minor.tick0);var w=M?r:Er.extendFlat({},r,b?r.minor:{minor:{}});if(d?ar.prepMinorTicks(w,r,t):ar.prepTicks(w,t),w.tickmode==="array"){M?(T=[],h=$S(r,!d)):(m=[],_=$S(r,!d));continue}if(w.tickmode==="sync"){T=[],h=jae(r);continue}var y=Vm(s),v=y[0],A=y[1],p=un(w.dtick),D=n==="log"&&!(p||w.dtick.charAt(0)==="L"),E=ar.tickFirst(w,t);if(M){if(r._tmin=E,E=A:F<=A;F=ar.tickIncrement(F,L,f,a)){if(M&&z++,w.rangebreaks&&!f){if(F=g)break}if(T.length>x||F===R)break;R=F;var B={value:Wae(F,I,L)};M?(F===E&&(B.first=!0),D&&F!==(F|0)&&(B.simpleLabel=!0),o>1&&z%o&&(B.skipLabel=!0),T.push(B)):(B.minor=!0,m.push(B))}}function O(fe,we){let Te=we.find(ge=>ge.value===fe.value);if(Te!=null)return Te;let ke=1e7;for(let ge=0;geO(Te,T)==null),we=T.concat(fe).sort((Te,ke)=>Te.value-ke.value);i&&T.length&&(T[0].skipLabel=!0),T.forEach(function(Te){Te.skipLabel||(u.forEach(ke=>{if(ke<0){let ge=we.filter(se=>se.value<=Te.value),Ee=Math.abs(ke),Le=ge.length-Ee-1;if(EeEe.value>=Te.value);if(keTe.skipLabel=!1)}if(S){var G=r.minor.ticks==="inside"&&r.ticks==="outside"||r.minor.ticks==="outside"&&r.ticks==="inside";if(!G){for(var J=[],j=0;j-1;V--){if(T[V].drop){T.splice(V,1);continue}T[V].value=Im(T[V].value,r);var $=r.c2p(T[V].value);(q?re>$-Z:re<$+Z)?T.splice(f?V+1:V,1):re=$}}Zm(r)&&Math.abs(s[1]-s[0])===360&&T.pop(),r._tmax=(T[T.length-1]||{}).value,T.length&&(T[T.length-1].last=!0),r._prevDateHead="",r._inCalcTicks=!0;var ae,Q=function(fe){fe.text="",r._prevDateHead=ae};T=T.concat(m);function te(fe,we){var Te=ar.tickText(fe,we.value,!1,we.simpleLabel,{first:we.first,last:we.last}),ke=we.periodX;return ke!==void 0&&(Te.periodX=ke,(ke>g||keg&&(Te.periodX=g),kea&&ha&&TP1)r/=P1,n=a(10),e.dtick="M"+12*co(r,n,R1);else if(o>ou)r/=ou,e.dtick="M"+co(r,1,KS);else if(o>ca){if(e.dtick=co(r,ca,e._hasDayOfWeekBreaks?[1,2,7,14]:eie),!t){var i=ar.getTickFormat(e),l=e.ticklabelmode==="period";l&&(e._rawTick0=e.tick0),/%[uVW]/.test(i)?e.tick0=Er.dateTick0(e.calendar,2):e.tick0=Er.dateTick0(e.calendar,1),l&&(e._dowTick0=e.tick0)}}else o>vo?e.dtick=co(r,vo,KS):o>tc?e.dtick=co(r,tc,QS):o>q1?e.dtick=co(r,q1,QS):(n=a(10),e.dtick=co(r,n,R1))}else if(e.type==="log"){e.tick0=0;var u=Er.simpleMap(e.range,e.r2l);if(e._isMinor&&(r*=1.5),r>.7)e.dtick=Math.ceil(r);else if(Math.abs(u[1]-u[0])<1){var s=1.5*Math.abs((u[1]-u[0])/r);r=Math.abs(Math.pow(10,u[1])-Math.pow(10,u[0]))/s,n=a(10),e.dtick="L"+co(r,n,R1)}else e.dtick=r>.3?"D2":"D1"}else e.type==="category"||e.type==="multicategory"?(e.tick0=0,e.dtick=Math.ceil(Math.max(r,1))):Zm(e)?(e.tick0=0,n=1,e.dtick=co(r,n,rie)):(e.tick0=0,n=a(10),e.dtick=co(r,n,R1));if(e.dtick===0&&(e.dtick=1),!un(e.dtick)&&typeof e.dtick!="string"){var f=e.dtick;throw e.dtick=1,"ax.dtick error: "+String(f)}};function Gm(e){var r=e.dtick;if(e._tickexponent=0,!un(r)&&typeof r!="string"&&(r=1),(e.type==="category"||e.type==="multicategory")&&(e._tickround=null),e.type==="date"){var t=e.r2l(e.tick0),n=e.l2r(t).replace(/(^-|i)/g,""),a=n.length;if(String(r).charAt(0)==="M")a>10||n.slice(5)!=="01-01"?e._tickround="d":e._tickround=+r.slice(1)%12===0?"y":"m";else if(r>=ca&&a<=10||r>=ca*15)e._tickround="d";else if(r>=tc&&a<=16||r>=vo)e._tickround="M";else if(r>=q1&&a<=19||r>=tc)e._tickround="S";else{var o=e.l2r(t+r).replace(/^-/,"").length;e._tickround=Math.max(a,o)-20,e._tickround<0&&(e._tickround=4)}}else if(un(r)||r.charAt(0)==="L"){var i=e.range.map(e.r2d||Number);un(r)||(r=Number(r.slice(1))),e._tickround=2-Math.floor(Math.log(r)/Math.LN10+.01);var l=Math.max(Math.abs(i[0]),Math.abs(i[1])),u=Math.floor(Math.log(l)/Math.LN10+.01),s=e.minexponent===void 0?3:e.minexponent;Math.abs(u)>s&&(lu(e.exponentformat)&&e.exponentformat!=="SI extended"&&!Ym(u)||lu(e.exponentformat)&&e.exponentformat==="SI extended"&&!Xm(u)?e._tickexponent=3*Math.round((u-1)/3):e._tickexponent=u)}else e._tickround=null}ar.tickIncrement=function(e,r,t,n){var a=t?-1:1;if(un(r))return Er.increment(e,a*r);var o=r.charAt(0),i=a*Number(r.slice(1));if(o==="M")return Er.incrementMonth(e,i,n);if(o==="L")return Math.log(Math.pow(10,e)+i)/Math.LN10;if(o==="D"){var l=r==="D2"?iC:aC,u=e+a*.01,s=Er.roundUp(Er.mod(u,1),l,t);return Math.floor(u)+Math.log(ii.round(Math.pow(10,s),1))/Math.LN10}throw"unrecognized dtick "+String(r)};ar.tickFirst=function(e,r){var t=e.r2l||Number,n=Er.simpleMap(e.range,t,void 0,void 0,r),a=n[1]=0&&b<=e._length?S:null};if(u&&Er.isArrayOrTypedArray(e.ticktext)){var h=Er.simpleMap(e.range,e.r2l),_=(Math.abs(h[1]-h[0])-(e._lBreaks||0))/1e4;for(g=0;g"+l;else{var s=ic(e),f=e._trueSide||e.side;(!s&&f==="top"||s&&f==="bottom")&&(i+="
")}r.text=i}function nie(e,r,t,n,a){var o=e.dtick,i=r.x,l=e.tickformat,u=typeof o=="string"&&o.charAt(0);if(a==="never"&&(a=""),n&&u!=="L"&&(o="L3",u="L"),l||u==="L")r.text=ac(Math.pow(10,i),e,a,n);else if(un(o)||u==="D"&&(e.minorloglabels==="complete"||Er.mod(i+.01,1)<.1)){var s;e.minorloglabels==="complete"&&!(Er.mod(i+.01,1)<.1)&&(s=!0,r.fontSize*=.75);var f=Math.pow(10,i).toExponential(0),c=f.split("e"),g=+c[1],x=Math.abs(g),h=e.exponentformat;h==="power"||lu(h)&&h!=="SI extended"&&Ym(g)||lu(h)&&h==="SI extended"&&Xm(g)?(r.text=c[0],x>0&&(r.text+="x10"),r.text==="1x10"&&(r.text="10"),g!==0&&g!==1&&(r.text+=""+(g>0?"":Is)+x+""),r.fontSize*=1.25):(h==="e"||h==="E")&&x>2?r.text=c[0]+h+(g>0?"+":Is)+x:(r.text=ac(Math.pow(10,i),e,"","fakehover"),o==="D1"&&e._id.charAt(0)==="y"&&(r.dy-=r.fontSize/6))}else if(u==="D")r.text=e.minorloglabels==="none"?"":String(Math.round(Math.pow(10,Er.mod(i,1)))),r.fontSize*=.75;else throw"unrecognized dtick "+String(o);if(e.dtick==="D1"){var _=String(r.text).charAt(0);(_==="0"||_==="1")&&(e._id.charAt(0)==="y"?r.dx-=r.fontSize/4:(r.dy+=r.fontSize/2,r.dx+=(e.range[1]>e.range[0]?1:-1)*r.fontSize*(i<0?.5:.25)))}}function aie(e,r){var t=e._categories[Math.round(r.x)];t===void 0&&(t=""),r.text=String(t)}function iie(e,r,t){var n=Math.round(r.x),a=e._categories[n]||[],o=a[1]===void 0?"":String(a[1]),i=a[0]===void 0?"":String(a[0]);t?r.text=i+" - "+o:(r.text=o,r.text2=i)}function oie(e,r,t,n,a){a==="never"?a="":e.showexponent==="all"&&Math.abs(r.x/e.dtick)<1e-6&&(a="hide"),r.text=ac(r.x,e,a,n)}function lie(e,r,t,n,a){if(e.thetaunit==="radians"&&!t){var o=r.x/180;if(o===0)r.text="0";else{var i=sie(o);if(i[1]>=100)r.text=ac(Er.deg2rad(r.x),e,a,n);else{var l=r.x<0;i[1]===1?i[0]===1?r.text="\u03C0":r.text=i[0]+"\u03C0":r.text=["",i[0],"","\u2044","",i[1],"","\u03C0"].join(""),l&&(r.text=Is+r.text)}}}else r.text=ac(r.x,e,a,n)}function sie(e){function r(l,u){return Math.abs(l-u)<=1e-6}function t(l,u){return r(u,0)?l:t(u,l%u)}function n(l){for(var u=1;!r(Math.round(l*u)/u,l);)u*=10;return u}var a=n(e),o=e*a,i=Math.abs(t(o,a));return[Math.round(o/i),Math.round(a/i)]}var lC=["f","p","n","\u03BC","m","","k","M","G","T"],uie=["q","r","y","z","a",...lC,"P","E","Z","Y","R","Q"],lu=e=>["SI","SI extended","B"].includes(e);function Ym(e){return e>14||e<-15}function Xm(e){return e>32||e<-30}function fie(e,r){return lu(r)?!!(r==="SI extended"&&Xm(e)||r!=="SI extended"&&Ym(e)):!1}function ac(e,r,t,n){var a=e<0,o=r._tickround,i=t||r.exponentformat||"B",l=r._tickexponent,u=ar.getTickFormat(r),s=r.separatethousands;if(n){var f={exponentformat:i,minexponent:r.minexponent,dtick:r.showexponent==="none"?r.dtick:un(e)&&Math.abs(e)||1,range:r.showexponent==="none"?r.range.map(r.r2d):[0,e||1]};Gm(f),o=(Number(f._tickround)||0)+4,l=f._tickexponent,r.hoverformat&&(u=r.hoverformat)}if(u)return r._numFormat(u)(e).replace(/-/g,Is);i==="none"&&(l=0),e=Math.abs(e);let c=Math.pow(10,-o)/2;if(e"+g+"":i==="B"&&l===9?e+="B":lu(i)&&(e+=i==="SI extended"?uie[l/3+10]:lC[l/3+5])}return a?Is+e:e}ar.getTickFormat=function(e){var r;function t(u){return typeof u!="string"?u:Number(u.replace("M",""))*ou}function n(u,s){var f=["L","D"];if(typeof u==typeof s){if(typeof u=="number")return u-s;var c=f.indexOf(u.charAt(0)),g=f.indexOf(s.charAt(0));return c===g?Number(u.replace(/(L|D)/g,""))-Number(s.replace(/(L|D)/g,"")):c-g}else return typeof u=="number"?1:-1}function a(u,s,f){var c=f||function(h){return h},g=s[0],x=s[1];return(!g&&typeof g!="number"||c(g)<=c(u))&&(!x&&typeof x!="number"||c(x)>=c(u))}function o(u,s){var f=s[0]===null,c=s[1]===null,g=n(u,s[0])>=0,x=n(u,s[1])<=0;return(f||g)&&(c||x)}var i,l;if(e.tickformatstops&&e.tickformatstops.length>0)switch(e.type){case"date":case"linear":{for(r=0;r=0&&a.unshift(a.splice(f,1).shift())}});var l={false:{left:0,right:0}};return Er.syncOrAsync(a.map(function(u){return function(){if(u){var s=ar.getFromId(e,u);t||(t={}),t.axShifts=l,t.overlayingShiftedAx=i;var f=ar.drawOne(e,s,t);return s._shiftPusher&&Hm(s,s._fullDepth||0,l,!0),s._r=s.range.slice(),s._rl=Er.simpleMap(s._r,s.r2l),f}}}))};ar.drawOne=function(e,r,t){t=t||{};var n=t.axShifts||{},a=t.overlayingShiftedAx||[],o,i,l;r.setScale();var u=e._fullLayout,s=r._id,f=s.charAt(0),c=ar.counterLetter(s),g=u._plots[r._mainSubplot],x=r.zerolinelayer==="above traces";if(!g)return;if(r._shiftPusher=r.autoshift||a.indexOf(r._id)!==-1||a.indexOf(r.overlaying)!==-1,r._shiftPusher&r.anchor==="free"){var h=r.linewidth/2||0;r.ticks==="inside"&&(h+=r.ticklen),Hm(r,h,n,!0),Hm(r,r.shift||0,n,!1)}(t.skipTitle!==!0||r._shift===void 0)&&(r._shift=Mie(r,n));var _=g[f+"axislayer"],T=r._mainLinePosition,m=T+=r._shift,k=r._mainMirrorPosition,S=r._vals=ar.calcTicks(r),b=[r.mirror,m,k].join("_");for(o=0;o0?X.bottom-Le:0,se))));var de=0,pe=0;if(r._shiftPusher&&(de=Math.max(se,X.height>0?ge==="l"?Le-X.left:X.right-Le:0),r.title.text!==u._dfltTitle[f]&&(pe=(r._titleStandoff||0)+(r._titleScoot||0),ge==="l"&&(pe+=eC(r))),r._fullDepth=Math.max(de,pe)),r.automargin){K={x:0,y:0,r:0,l:0,t:0,b:0};var me=[0,1],Se=typeof r._shift=="number"?r._shift:0;if(f==="x"){if(ge==="b"?K[ge]=r._depth:(K[ge]=r._depth=Math.max(X.width>0?Le-X.top:0,se),me.reverse()),X.width>0){var ve=X.right-(r._offset+r._length);ve>0&&(K.xr=1,K.r=ve);var he=r._offset-X.left;he>0&&(K.xl=0,K.l=he)}}else if(ge==="l"?(r._depth=Math.max(X.height>0?Le-X.left:0,se),K[ge]=r._depth-Se):(r._depth=Math.max(X.height>0?X.right-Le:0,se),K[ge]=r._depth+Se,me.reverse()),X.height>0){var be=X.bottom-(r._offset+r._length);be>0&&(K.yb=0,K.b=be);var Ae=r._offset-X.top;Ae>0&&(K.yt=1,K.t=Ae)}K[c]=r.anchor==="free"?r.position:r._anchorAxis.domain[me[0]],r.title.text!==u._dfltTitle[f]&&(K[ge]+=eC(r)+(r.title.standoff||0)),r.mirror&&r.anchor!=="free"&&(ye={x:0,y:0,r:0,l:0,t:0,b:0},ye[Ee]=r.linewidth,r.mirror&&r.mirror!==!0&&(ye[Ee]+=se),r.mirror===!0||r.mirror==="ticks"?ye[c]=r._anchorAxis.domain[me[1]]:(r.mirror==="all"||r.mirror==="allticks")&&(ye[c]=[r._counterDomainMin,r._counterDomainMax][me[1]]))}ke&&(oe=ec.getComponentMethod("rangeslider","autoMarginOpts")(e,r)),typeof r.automargin=="string"&&(jS(K,r.automargin),jS(ye,r.automargin)),au.autoMargin(e,Wm(r),K),au.autoMargin(e,uC(r),ye),au.autoMargin(e,fC(r),oe)}),Er.syncOrAsync(we)}};function jS(e,r){if(e){var t=Object.keys(XS).reduce(function(n,a){return r.indexOf(a)!==-1&&XS[a].forEach(function(o){n[o]=1}),n},{});Object.keys(e).forEach(function(n){t[n]||(n.length===1?e[n]=0:delete e[n])})}}function cie(e,r){var t=[],n,a=function(o,i){var l=o.xbnd[i];l!==null&&t.push(Er.extendFlat({},o,{x:l}))};if(r.length){for(n=0;ne.range[1],l=e.ticklabelposition&&e.ticklabelposition.indexOf("inside")!==-1,u=!l;if(t){var s=i?-1:1;t=t*s}if(n){var f=e.side,c=l&&(f==="top"||f==="left")||u&&(f==="bottom"||f==="right")?1:-1;n=n*c}return e._id.charAt(0)==="x"?function(g){return iu(a+e._offset+e.l2p(Om(g))+t,o+n)}:function(g){return iu(o+n,a+e._offset+e.l2p(Om(g))+t)}};function Om(e){return e.periodX!==void 0?e.periodX:e.x}function pie(e){var r=e.ticklabelposition||"",t=e.tickson||"",n=function(h){return r.indexOf(h)!==-1},a=n("top"),o=n("left"),i=n("right"),l=n("bottom"),u=n("inside"),s=t!=="boundaries"&&(l||o||a||i);if(!s&&!u)return[0,0];var f=e.side,c=s?(e.tickwidth||0)/2:0,g=B1,x=e.tickfont?e.tickfont.size:12;return(l||a)&&(c+=x*zs,g+=(e.linewidth||0)/2),(o||i)&&(c+=(e.linewidth||0)/2,g+=B1),u&&f==="top"&&(g-=x*(1-zs)),(o||a)&&(c=-c),(f==="bottom"||f==="right")&&(g=-g),[s?c:0,u?g:0]}ar.makeTickPath=function(e,r,t,n){n||(n={});var a=n.minor;if(a&&!e.minor)return"";var o=n.len!==void 0?n.len:a?e.minor.ticklen:e.ticklen,i=e._id.charAt(0),l=(e.linewidth||1)/2;return i==="x"?"M0,"+(r+l*t)+"v"+o*t:"M"+(r+l*t)+",0h"+o*t};ar.makeLabelFns=function(e,r,t){var n=e.ticklabelposition||"",a=e.tickson||"",o=function(E){return n.indexOf(E)!==-1},i=o("top"),l=o("left"),u=o("right"),s=o("bottom"),f=a!=="boundaries"&&(s||l||i||u),c=o("inside"),g=n==="inside"&&e.ticks==="inside"||!c&&e.ticks==="outside"&&a!=="boundaries",x=0,h=0,_=g?e.ticklen:0;if(c?_*=-1:f&&(_=0),g&&(x+=_,t)){var T=Er.deg2rad(t);x=_*Math.cos(T)+1,h=_*Math.sin(T)}e.showticklabels&&(g||e.showline)&&(x+=.2*e.tickfont.size),x+=(e.linewidth||1)/2*(c?-1:1);var m={labelStandoff:x,labelShift:h},k,S,b,M,d=0,w=e.side,y=e._id.charAt(0),v=e.tickangle,A;if(y==="x")A=!c&&w==="bottom"||c&&w==="top",M=A?1:-1,c&&(M*=-1),k=h*M,S=r+x*M,b=A?1:-.2,Math.abs(v)===90&&(c?b+=jf:v===-90&&w==="bottom"?b=zs:v===90&&w==="top"?b=jf:b=.5,d=jf/2*(v/90)),m.xFn=function(E){return E.dx+k+d*E.fontSize},m.yFn=function(E){return E.dy+S+E.fontSize*b},m.anchorFn=function(E,R){if(f){if(l)return"end";if(u)return"start"}return!un(R)||R===0||R===180?"middle":R*M<0!==c?"end":"start"},m.heightFn=function(E,R,F){return R<-60||R>60?-.5*F:e.side==="top"!==c?-F:0};else if(y==="y"){if(A=!c&&w==="left"||c&&w==="right",M=A?1:-1,c&&(M*=-1),k=x,S=h*M,b=0,!c&&Math.abs(v)===90&&(v===-90&&w==="left"||v===90&&w==="right"?b=zs:b=.5),c){var p=un(v)?+v:0;if(p!==0){var D=Er.deg2rad(p);d=Math.abs(Math.sin(D))*zs*M,b=0}}m.xFn=function(E){return E.dx+r-(k+E.fontSize*b)*M+d*E.fontSize},m.yFn=function(E){return E.dy+S+E.fontSize*jf},m.anchorFn=function(E,R){return un(R)&&Math.abs(R)===90?"middle":A?"end":"start"},m.heightFn=function(E,R,F){return e.side==="right"&&(R*=-1),R<-30?-F:R<30?-.5*F:0}}return m};function H1(e){return[e.text,e.x,e.axInfo,e.font,e.fontSize,e.fontColor].join("_")}ar.drawTicks=function(e,r,t){t=t||{};var n=r._id+"tick",a=[].concat(r.minor&&r.minor.ticks?t.vals.filter(function(i){return i.minor&&!i.noTick}):[]).concat(r.ticks?t.vals.filter(function(i){return!i.minor&&!i.noTick}):[]),o=t.layer.selectAll("path."+n).data(a,H1);o.exit().remove(),o.enter().append("path").classed(n,1).classed("ticks",1).classed("crisp",t.crisp!==!1).each(function(i){return rc.stroke(ii.select(this),i.minor?r.minor.tickcolor:r.tickcolor)}).style("stroke-width",function(i){return Ba.crispRound(e,i.minor?r.minor.tickwidth:r.tickwidth,1)+"px"}).attr("d",t.path).style("display",null),V1(r,[rC]),o.attr("transform",t.transFn)};ar.drawGrid=function(e,r,t){if(t=t||{},r.tickmode!=="sync"){var n=r._id+"grid",a=r.minor&&r.minor.showgrid,o=a?t.vals.filter(function(m){return m.minor}):[],i=r.showgrid?t.vals.filter(function(m){return!m.minor}):[],l=t.counterAxis;if(l&&ar.shouldShowZeroLine(e,r,l))for(var u=r.tickmode==="array",s=0;s=0;h--){var _=h?g:x;if(_){var T=_.selectAll("path."+n).data(h?i:o,H1);T.exit().remove(),T.enter().append("path").classed(n,1).classed("crisp",t.crisp!==!1),T.attr("transform",t.transFn).attr("d",t.path).each(function(m){return rc.stroke(ii.select(this),m.minor?r.minor.gridcolor:r.gridcolor||"#ddd")}).style("stroke-dasharray",function(m){return Ba.dashStyle(m.minor?r.minor.griddash:r.griddash,m.minor?r.minor.gridwidth:r.gridwidth)}).style("stroke-width",function(m){return(m.minor?c:r._gw)+"px"}).style("display",null),typeof t.path=="function"&&T.attr("d",t.path)}}V1(r,[qm,Bm])}};ar.drawZeroLine=function(e,r,t){t=t||t;var n=r._id+"zl",a=ar.shouldShowZeroLine(e,r,t.counterAxis),o=t.layer.selectAll("path."+n).data(a?[{x:0,id:r._id}]:[]);o.exit().remove(),o.enter().append("path").classed(n,1).classed("zl",1).classed("crisp",t.crisp!==!1).each(function(){t.layer.selectAll("path").sort(function(i,l){return Gae(i.id,l.id)})}),o.attr("transform",t.transFn).attr("d",t.path).call(rc.stroke,r.zerolinecolor||rc.defaultLine).style("stroke-width",Ba.crispRound(e,r.zerolinewidth,r._gw||1)+"px").style("display",null),V1(r,[Nm])};ar.drawLabels=function(e,r,t){t=t||{};var n=e._fullLayout,a=r._id,o=r.zerolinelayer==="above traces",i=t.cls||a+"tick",l=t.vals.filter(function(I){return I.text}),u=t.labelFns,s=t.secondary?0:r.tickangle,f=(r._prevTickAngles||{})[i],c=t.layer.selectAll("g."+i).data(r.showticklabels?l:[],H1),g=[];c.enter().append("g").classed(i,1).append("text").attr("text-anchor","middle").each(function(I){var B=ii.select(this),O=e._promises.length;B.call(Ps.positionText,u.xFn(I),u.yFn(I)).call(Ba.font,{family:I.font,size:I.fontSize,color:I.fontColor,weight:I.fontWeight,style:I.fontStyle,variant:I.fontVariant,textcase:I.fontTextcase,lineposition:I.fontLineposition,shadow:I.fontShadow}).text(I.text).call(Ps.convertToTspans,e),e._promises[O]?g.push(e._promises.pop().then(function(){x(B,s)})):x(B,s)}),V1(r,[YS]),c.exit().remove(),t.repositionOnUpdate&&c.each(function(I){ii.select(this).select("text").call(Ps.positionText,u.xFn(I),u.yFn(I))});function x(I,B){I.each(function(O){var G=ii.select(this),J=G.select(".text-math-group"),j=u.anchorFn(O,B),V=t.transFn.call(G.node(),O)+(un(B)&&+B!=0?" rotate("+B+","+u.xFn(O)+","+(u.yFn(O)-O.fontSize/2)+")":""),q=Ps.lineCount(G),Z=nc*O.fontSize,re=u.heightFn(O,un(B)?+B:0,(q-1)*Z);if(re&&(V+=iu(0,re)),J.empty()){var $=G.select("text");$.attr({transform:V,"text-anchor":j}),$.style("display",null),r._adjustTickLabelsOverflow&&r._adjustTickLabelsOverflow()}else{var ae=Ba.bBox(J.node()).width,Q=ae*{end:-.5,start:.5}[j];J.attr("transform",V+iu(Q,0))}})}r._adjustTickLabelsOverflow=function(){var I=r.ticklabeloverflow;if(!(!I||I==="allow")){var B=I.indexOf("hide")!==-1,O=r._id.charAt(0)==="x",G=0,J=O?e._fullLayout.width:e._fullLayout.height;if(I.indexOf("domain")!==-1){var j=Er.simpleMap(r.range,r.r2l);G=r.l2p(j[0])+r._offset,J=r.l2p(j[1])+r._offset}var V=Math.min(G,J),q=Math.max(G,J),Z=r.side,re=1/0,$=-1/0;c.each(function(ue){var ee=ii.select(this),ie=ee.select(".text-math-group");if(ie.empty()){var fe=Ba.bBox(ee.node()),we=0;O?(fe.right>q||fe.leftq||fe.top+(r.tickangle?0:ue.fontSize/4)r["_visibleLabelMin_"+j._id]?ee.style("display","none"):q.K==="tick"&&!V&&ee.node().style.display!=="none"&&ee.style("display",null)})})})})},x(c,f+1?f:s);function h(){return g.length&&Promise.all(g)}var _=null;function T(){if(x(c,s),l.length&&r.autotickangles&&(r.type!=="log"||String(r.dtick).charAt(0)!=="D")){_=r.autotickangles[0];var I=0,B=[],O,G=1;c.each(function(K){I=Math.max(I,K.fontSize);var ye=r.l2p(K.x),oe=Um(this),de=Ba.bBox(oe.node());G=Math.max(G,Ps.lineCount(oe)),B.push({top:0,bottom:10,height:10,left:ye-de.width/2,right:ye+de.width/2+2,width:de.width+2})});var J=(r.tickson==="boundaries"||r.showdividers)&&!t.secondary,j=l.length,V=Math.abs((l[j-1].x-l[0].x)*r._m)/(j-1),q=J?V/2:V,Z=J?r.ticklen:I*1.25*G,re=Math.sqrt(Math.pow(q,2)+Math.pow(Z,2)),$=q/re,ae=r.autotickangles.map(function(K){return K*Math.PI/180}),Q=ae.find(function(K){return Math.abs(Math.cos(K))<=$});Q===void 0&&(Q=ae.reduce(function(K,ye){return Math.abs(Math.cos(K))z*F&&(D=F,v[y]=A[y]=E[y])}var P=Math.abs(D-p);P-M>0?(P-=M,M*=1+M/P):M=0,r._id.charAt(0)!=="y"&&(M=-M),v[w]=S.p2r(S.r2p(A[w])+d*M),S.autorange==="min"||S.autorange==="max reversed"?(v[0]=null,S._rangeInitial0=void 0,S._rangeInitial1=void 0):(S.autorange==="max"||S.autorange==="min reversed")&&(v[1]=null,S._rangeInitial0=void 0,S._rangeInitial1=void 0),n._insideTickLabelsUpdaterange[S._name+".range"]=v}var L=Er.syncOrAsync(m);return L&&L.then&&e._promises.push(L),L};function gie(e,r,t){var n=r._id+"divider",a=t.vals,o=t.layer.selectAll("path."+n).data(a,H1);o.exit().remove(),o.enter().insert("path",":first-child").classed(n,1).classed("crisp",1).call(rc.stroke,r.dividercolor).style("stroke-width",Ba.crispRound(e,r.dividerwidth,1)+"px"),o.attr("transform",t.transFn).attr("d",t.path)}ar.getPxPosition=function(e,r){var t=e._fullLayout._size,n=r._id.charAt(0),a=r.side,o;if(r.anchor!=="free"?o=r._anchorAxis:n==="x"?o={_offset:t.t+(1-(r.position||0))*t.h,_length:0}:n==="y"&&(o={_offset:t.l+(r.position||0)*t.w+r._shift,_length:0}),a==="top"||a==="left")return o._offset;if(a==="bottom"||a==="right")return o._offset+o._length};function eC(e){var r=e.title.font.size,t=(e.title.text.match(Ps.BR_TAG_ALL)||[]).length;return e.title.hasOwnProperty("standoff")?r*(zs+t*nc):t?r*(t+1)*nc:r}function yie(e,r){var t=e._fullLayout,n=r._id,a=n.charAt(0),o=r.title.font.size,i,l=(r.title.text.match(Ps.BR_TAG_ALL)||[]).length;if(r.title.hasOwnProperty("standoff"))r.side==="bottom"||r.side==="right"?i=r._depth+r.title.standoff+o*zs:(r.side==="top"||r.side==="left")&&(i=r._depth+r.title.standoff+o*(jf+l*nc));else{var u=ic(r);if(r.type==="multicategory")i=r._depth;else{var s=1.5*o;u&&(s=.5*o,r.ticks==="outside"&&(s+=r.ticklen)),i=10+s+(r.linewidth?r.linewidth-1:0)}u||(a==="x"?i+=r.side==="top"?o*(r.showticklabels?1:0):o*(r.showticklabels?1.5:.5):i+=r.side==="right"?o*(r.showticklabels?1:.5):o*(r.showticklabels?.5:0))}var f=ar.getPxPosition(e,r),c,g,x;a==="x"?(g=r._offset+r._length/2,x=r.side==="top"?f-i:f+i):(x=r._offset+r._length/2,g=r.side==="right"?f+i:f-i,c={rotate:"-90",offset:0});var h;if(r.type!=="multicategory"){var _=r._selections[r._id+"tick"];if(h={selection:_,side:r.side},_&&_.node()&&_.node().parentNode){var T=Ba.getTranslate(_.node().parentNode);h.offsetLeft=T.x,h.offsetTop=T.y}r.title.hasOwnProperty("standoff")&&(h.pad=0)}return r._titleStandoff=i,Iae.draw(e,n+"title",{propContainer:r,propName:r._name+".title.text",placeholder:t._dfltTitle[a],avoid:h,transform:c,attributes:{x:g,y:x,"text-anchor":"middle"}})}ar.shouldShowZeroLine=function(e,r,t){var n=Er.simpleMap(r.range,r.r2l);return n[0]*n[1]<=0&&r.zeroline&&(r.type==="linear"||r.type==="-")&&!(r.rangebreaks&&r.maskBreaks(0)===O1)&&(sC(r,0)||!mie(e,r,t,n)||bie(e,r))};ar.clipEnds=function(e,r){return r.filter(function(t){return sC(e,t.x)})};function sC(e,r){var t=e.l2p(r);return t>1&&t1)for(a=1;a=a.min&&e=Uae:/%L/.test(r)?e>=Oae:/%[SX]/.test(r)?e>=q1:/%M/.test(r)?e>=tc:/%[HI]/.test(r)?e>=vo:/%p/.test(r)?e>=Ll:/%[Aadejuwx]/.test(r)?e>=ca:/%[UVW]/.test(r)?e>=Oa:/%[Bbm]/.test(r)?e>=N1:/%[q]/.test(r)?e>=z1:/%[Yy]/.test(r)?e>=I1:!0}});var hC=xe((k6e,vC)=>{"use strict";vC.exports=function(r,t,n){var a,o;if(n){var i=t==="reversed"||t==="min reversed"||t==="max reversed";a=n[i?1:0],o=n[i?0:1]}var l=r("autorangeoptions.minallowed",o===null?a:void 0),u=r("autorangeoptions.maxallowed",a===null?o:void 0);l===void 0&&r("autorangeoptions.clipmin"),u===void 0&&r("autorangeoptions.clipmax"),r("autorangeoptions.include")}});var Jm=xe((S6e,dC)=>{"use strict";var Aie=hC();dC.exports=function(r,t,n,a){var o=t._template||{},i=t.type||o.type||"-";n("minallowed"),n("maxallowed");var l=n("range");if(!l){var u;!a.noInsiderange&&i!=="log"&&(u=n("insiderange"),u&&(u[0]===null||u[1]===null)&&(t.insiderange=!1,u=void 0),u&&(l=n("range",u)))}var s=t.getAutorangeDflt(l,a),f=n("autorange",s),c;l&&(l[0]===null&&l[1]===null||(l[0]===null||l[1]===null)&&(f==="reversed"||f===!0)||l[0]!==null&&(f==="min"||f==="max reversed")||l[1]!==null&&(f==="max"||f==="min reversed"))&&(l=void 0,delete t.range,t.autorange=!0,c=!0),c||(s=t.getAutorangeDflt(l,a),f=n("autorange",s)),f&&(Aie(n,f,l),(i==="linear"||i==="-")&&n("rangemode")),t.cleanRange()}});var gC=xe((C6e,pC)=>{var kie={left:0,top:0};pC.exports=Sie;function Sie(e,r,t){r=r||e.currentTarget||e.srcElement,Array.isArray(t)||(t=[0,0]);var n=e.clientX||0,a=e.clientY||0,o=Cie(r);return t[0]=n-o.left,t[1]=a-o.top,t}function Cie(e){return e===window||e===document||e===document.body?kie:e.getBoundingClientRect()}});var G1=xe((E6e,yC)=>{"use strict";var Eie=_y();function Lie(){var e=!1;try{var r=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("test",null,r),window.removeEventListener("test",null,r)}catch(t){e=!1}return e}yC.exports=Eie&&Lie()});var bC=xe((L6e,mC)=>{"use strict";mC.exports=function(r,t,n,a,o){var i=(r-n)/(a-n),l=i+t/(a-n),u=(i+l)/2;return o==="left"||o==="bottom"?i:o==="center"||o==="middle"?u:o==="right"||o==="top"?l:i<2/3-u?i:l>4/3-u?l:u}});var wC=xe((D6e,_C)=>{"use strict";var xC=tr(),Die=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];_C.exports=function(r,t,n,a){return n==="left"?r=0:n==="center"?r=1:n==="right"?r=2:r=xC.constrain(Math.floor(r*3),0,2),a==="bottom"?t=0:a==="middle"?t=1:a==="top"?t=2:t=xC.constrain(Math.floor(t*3),0,2),Die[t][r]}});var TC=xe((R6e,MC)=>{"use strict";var Rie=Hf(),Fie=Xh(),Pie=Pf().getGraphDiv,Iie=(pf(),or(df)),$m=MC.exports={};$m.wrapped=function(e,r,t){var o;e=Pie(e),e._fullLayout&&Fie.clear(e._fullLayout._uid+Iie.HOVERID);let n=e._hoverdata;$m.raw(e,r,t)&&e._hoverAnywhereActive&&(e._hoverAnywhereActive=!1,(o=e._fullLayout)!=null&&o.hoveranywhere&&(r!=null&&r.target)&&!n&&e.emit("plotly_unhover",{event:r,points:[]}))};$m.raw=function(r,t){var n=r._fullLayout,a=r._hoverdata;return t||(t={}),t.target&&!r._dragged&&Rie.triggerHandler(r,"plotly_beforehover",t)===!1?!1:(n._hoverlayer.selectAll("g").remove(),n._hoverlayer.selectAll("line").remove(),n._hoverlayer.selectAll("circle").remove(),r._hoverdata=void 0,t.target&&a&&r.emit("plotly_unhover",{event:t,points:a}),!0)}});var Pi=xe((F6e,CC)=>{"use strict";var zie=gC(),Km=My(),Nie=G1(),qie=tr().removeElement,Bie=(kn(),or(An)),Ns=CC.exports={};Ns.align=bC();Ns.getCursor=wC();var kC=TC();Ns.unhover=kC.wrapped;Ns.unhoverRaw=kC.raw;Ns.init=function(r){var t=r.gd,n=1,a=t._context.doubleClickDelay,o=r.element,i,l,u,s,f,c,g,x;t._mouseDownTime||(t._mouseDownTime=0),o.style.pointerEvents="all",o.onmousedown=T,Nie?(o._ontouchstart&&o.removeEventListener("touchstart",o._ontouchstart),o._ontouchstart=T,o.addEventListener("touchstart",T,{passive:!1})):o.ontouchstart=T;function h(S,b,M){return Math.abs(S)a&&(n=Math.max(n-1,1)),t._dragged)r.doneFn&&r.doneFn();else{var b;c.target===g?b=c:(b={target:g,srcElement:g,toElement:g},Object.keys(c).concat(Object.keys(c.__proto__)).forEach(M=>{var d=c[M];!b[M]&&typeof d!="function"&&(b[M]=d)})),r.clickFn&&r.clickFn(n,b),x||g.dispatchEvent(new MouseEvent("click",S))}t._dragging=!1,t._dragged=!1}};function SC(){var e=document.createElement("div");e.className="dragcover";var r=e.style;return r.position="fixed",r.left=0,r.right=0,r.top=0,r.bottom=0,r.zIndex=999999999,r.background="none",document.body.appendChild(e),e}Ns.coverSlip=SC;function AC(e){return zie(e.changedTouches?e.changedTouches[0]:e,document.body)}});var Dl=xe((P6e,EC)=>{"use strict";EC.exports=function(r,t){(r.attr("class")||"").split(" ").forEach(function(n){n.indexOf("cursor-")===0&&r.classed(n,!1)}),t&&r.classed("cursor-"+t,!0)}});var RC=xe((I6e,DC)=>{"use strict";var Qm=Dl(),oc="data-savedcursor",LC="!!";DC.exports=function(r,t){var n=r.attr(oc);if(t){if(!n){for(var a=(r.attr("class")||"").split(" "),o=0;oWie,itemGap:()=>Xie,itemHeightPad:()=>Jie,itemMinHeight:()=>Zie,scrollBarColor:()=>Hie,scrollBarEnterAttrs:()=>Gie,scrollBarMargin:()=>Vie,scrollBarMinHeight:()=>Uie,scrollBarWidth:()=>Oie,titlePad:()=>Yie});var Oie,Uie,Hie,Vie,Gie,Yie,Xie,Wie,Zie,Jie,X1=Ut(()=>{"use strict";Oie=6,Uie=20,Hie="#808BA4",Vie=4,Gie={rx:20,ry:3,width:0,height:0},Yie=2,Xie=5,Wie=6,Zie=16,Jie=3});var e5=xe((z6e,PC)=>{"use strict";var jm=Wn(),$ie=to(),{dfltFillHeight:FC}=(X1(),or(Y1));PC.exports={_isSubplotObj:!0,visible:{valType:"boolean",dflt:!0,editType:"legend"},bgcolor:{valType:"color",editType:"legend"},bordercolor:{valType:"color",dflt:$ie.defaultLine,editType:"legend"},maxheight:{valType:"number",min:0,editType:"legend"},borderwidth:{valType:"number",min:0,dflt:0,editType:"legend"},font:jm({editType:"legend"}),grouptitlefont:jm({editType:"legend"}),orientation:{valType:"enumerated",values:["v","h"],dflt:"v",editType:"legend"},traceorder:{valType:"flaglist",flags:["reversed","grouped"],extras:["normal"],editType:"legend"},tracegroupgap:{valType:"number",min:0,dflt:10,editType:"legend"},entrywidth:{valType:"number",min:0,editType:"legend"},entrywidthmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels",editType:"legend"},indentation:{valType:"number",min:-15,dflt:0,editType:"legend"},itemsizing:{valType:"enumerated",values:["trace","constant"],dflt:"trace",editType:"legend"},itemwidth:{valType:"number",min:30,dflt:30,editType:"legend"},itemheight:{valType:"number",min:FC,dflt:FC,editType:"legend"},itemclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggle",editType:"legend"},itemdoubleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggleothers",editType:"legend"},groupclick:{valType:"enumerated",values:["toggleitem","togglegroup"],dflt:"togglegroup",editType:"legend"},groupdoubleclick:{valType:"enumerated",values:["toggleitem","togglegroup"],editType:"legend"},titleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],editType:"legend"},titledoubleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],editType:"legend"},x:{valType:"number",editType:"legend"},xref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"legend"},y:{valType:"number",editType:"legend"},yref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],editType:"legend"},uirevision:{valType:"any",editType:"none"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"legend"},title:{text:{valType:"string",dflt:"",editType:"legend"},font:jm({editType:"legend"}),side:{valType:"enumerated",values:["top","left","top left","top center","top right"],editType:"legend"},editType:"legend"},editType:"legend"}});var sc=xe(lc=>{"use strict";lc.isGrouped=function(r){return(r.traceorder||"").indexOf("grouped")!==-1};lc.isVertical=function(r){return r.orientation!=="h"};lc.isReversed=function(r){return(r.traceorder||"").indexOf("reversed")!==-1};lc.getId=function(r){return r._id||"legend"}});var t5=xe((q6e,IC)=>{"use strict";var W1=Cr(),Ua=tr(),Kie=Tt(),Qie=Zn(),jie=e5(),eoe=q0(),r5=sc();function roe(e,r,t,n,a){var o=r[e]||{},i=Kie.newContainer(t,e);function l(B,O){return Ua.coerce(o,i,jie,B,O)}var u=Ua.coerceFont(l,"font",t.font);l("bgcolor",t.paper_bgcolor),l("bordercolor");var s=l("visible");if(!s)return;var f,c=function(B,O){var G=f._input,J=f;return Ua.coerce(G,J,Qie,B,O)},g=t.font||{},x=Ua.coerceFont(l,"grouptitlefont",g,{overrideDflt:{size:Math.round(g.size*1.1)}}),h=0,_=!1,T="normal",m=(t.shapes||[]).filter(function(B){return B.showlegend});function k(B){return W1.traceIs(B,"pie-like")&&B._length!=null&&(Array.isArray(B.legend)||Array.isArray(B.showlegend))}n.filter(k).forEach(function(B){B.visible&&h++;for(var O=0;OB.legend.length)for(var J=B.legend.length;J(e==="legend"?1:0));if(d===!1&&(t[e]=void 0),d===!1&&!o.uirevision||(l("uirevision",t.uirevision),d===!1))return;l("borderwidth");var w=l("orientation"),y=l("yref"),v=l("xref"),A=w==="h",p=y==="paper",D=v==="paper",E,R,F,z="left";A?(E=0,W1.getComponentMethod("rangeslider","isVisible")(r.xaxis)?p?(R=1.1,F="bottom"):(R=1,F="top"):p?(R=-.1,F="top"):(R=0,F="bottom")):(R=1,F="auto",D?E=1.02:(E=1,z="right")),Ua.coerce(o,i,{x:{valType:"number",editType:"legend",min:D?-2:0,max:D?3:1,dflt:E}},"x"),Ua.coerce(o,i,{y:{valType:"number",editType:"legend",min:p?-2:0,max:p?3:1,dflt:R}},"y"),l("traceorder",T),r5.isGrouped(t[e])&&l("tracegroupgap"),l("entrywidth"),l("entrywidthmode"),l("indentation"),l("itemsizing"),l("itemwidth"),l("itemheight"),l("itemclick"),l("itemdoubleclick");let P=l("groupclick");l("groupdoubleclick",P),l("xanchor",z),l("yanchor",F),l("maxheight"),l("valign"),Ua.noneOrAll(o,i,["x","y"]);var L=l("title.text");if(L){l("title.side",A?"left":"top");var I=Ua.extendFlat({},u,{size:Ua.bigFont(u.size)});Ua.coerceFont(l,"title.font",I);let B=a>1;l("titleclick",B?"toggle":!1),l("titledoubleclick",B?"toggleothers":!1)}}IC.exports=function(r,t,n){var a,o=n.slice(),i=t.shapes;if(i)for(a=0;a{"use strict";var Rl=Cr(),n5=tr(),toe=n5.pushUnique,noe=sc(),zC=!0;a5.handleItemClick=function(r,t,n,a,o){var i=t._fullLayout;if(t._dragged||t._editing)return;var l=r.data()[0][0];if(l.groupTitle&&l.noClick)return;let u=o===2?n.groupdoubleclick:n.groupclick;a==="toggle"&&n.itemdoubleclick==="toggleothers"&&zC&&t.data&&t._context.showTips&&(n5.notifier(n5._(t,"Double-click on legend to isolate one trace"),"long",t),zC=!1);var s=u==="togglegroup",f=i.hiddenlabels?i.hiddenlabels.slice():[],c=t._fullData;let g=(i.shapes||[]).filter(Te=>Te.showlegend||Te.legendgroup);var x=c.concat(g),h=l.trace;h._isShape&&(h=i.shapes[h.index]);var _=h.legendgroup,T,m,k,S,b,M,d={},w=[],y=[],v=[];function A(Te,ke){var ge=w.indexOf(Te),Ee=d.visible;return Ee||(Ee=d.visible=[]),w.indexOf(Te)===-1&&(w.push(Te),ge=w.length-1),Ee[ge]=ke,ge}var p=(i.shapes||[]).map(function(Te){return Te._input}),D=!1;function E(Te,ke){p[Te].visible=ke,D=!0}function R(Te,ke){if(!(l.groupTitle&&!s)){var ge=Te._isShape,Ee=Te.index;Ee===void 0&&(Ee=Te._index);var Le=Te.visible===!1?!1:ke;ge?E(Ee,Le):A(Ee,Le)}}var F=h.legend;if(!h._isShape&&Rl.traceIs(h,"pie-like")){var z=l.label,P=f.indexOf(z);if(a==="toggle")P===-1?f.push(z):f.splice(P,1);else if(a==="toggleothers"){var L=P!==-1,I=[];for(T=0;Tm.showlegend||m.legendgroup),u=o.concat(l);function s(m){return(m.legend||"legend")===i}var f,c;if(n==="toggle")f=!u.some(function(k){return s(k)&&k.visible===!0}),c=!1;else{let m=u.some(function(k){return!s(k)&&k.visible===!0&&k.showlegend!==!1});f=!0,c=!m}let g={visible:[]},x=[],h=(a.shapes||[]).map(function(m){return m._input});for(var _=!1,T=0;T{"use strict";var{isArrayOrTypedArray:o5}=ba(),NC=Cr(),l5=sc();qC.exports=function(r,t,n){var a=t._inHover,o=l5.isGrouped(t),i=l5.isReversed(t),l={},u=[],s=!1,f={},c=0,g=0,x,h;function _(B,O,G){if(t.visible!==!1&&!(n&&B!==t._id))if(O===""||!l5.isGrouped(t)){var J="~~i"+c;u.push(J),l[J]=[G],c++}else u.indexOf(O)===-1?(u.push(O),s=!0,l[O]=[G]):l[O].push(G)}for(x=0;xE&&(p=E)}v[x][0]._groupMinRank=p,v[x][0]._preGroupSort=x}var R=function(B,O){return B[0]._groupMinRank-O[0]._groupMinRank||B[0]._preGroupSort-O[0]._preGroupSort},F=function(B,O){var G=o5(B.trace.legendrank)?B.trace.legendrank[B.i]:B.trace.legendrank,J=o5(O.trace.legendrank)?O.trace.legendrank[O.i]:O.trace.legendrank;return G-J||B._preSort-O._preSort};for(v.forEach(function(B,O){B[0]._preGroupSort=O}),v.sort(R),x=0;x{"use strict";var Z1=tr();function OC(e){return e.indexOf("e")!==-1?e.replace(/[.]?0+e/,"e"):e.indexOf(".")!==-1?e.replace(/[.]?0+$/,""):e}qs.formatPiePercent=function(r,t){var n=OC((r*100).toPrecision(3));return Z1.numSeparate(n,t)+"%"};qs.formatPieValue=function(r,t){var n=OC(r.toPrecision(10));return Z1.numSeparate(n,t)};qs.getFirstFilled=function(r,t){if(Z1.isArrayOrTypedArray(r))for(var n=0;n{"use strict";var aoe=At(),ioe=Zr();UC.exports=function(r,t,n,a){var o=n.marker.pattern;o&&o.shape?aoe.pointStyle(r,n,a,t):ioe.fill(r,t.color)}});var XC=xe((V6e,YC)=>{"use strict";var VC=Zr(),GC=s5().castOption,ooe=HC();YC.exports=function(r,t,n,a){var o=n.marker.line,i=GC(o.color,t.pts)||VC.defaultLine,l=GC(o.width,t.pts)||0;r.call(ooe,t,n,a).style("stroke-width",l).call(VC.stroke,i)}});var h5=xe((G6e,KC)=>{"use strict";var va=lt(),u5=Cr(),jn=tr(),f5=jn.strTranslate,Ha=At(),oi=Zr(),c5=ao().extractOpts,$1=Da(),loe=XC(),soe=s5().castOption,WC=(X1(),or(Y1)),ZC=12,JC=5,Bs=2,uoe=10,su=5;KC.exports=function(r,t,n){var a=t._fullLayout;n||(n=a.legend);var o=n.itemsizing==="constant",i=n.itemwidth,l=n.itemheight,u=(i+WC.itemGap*2)/2,s=f5(u,0),f=function(y,v,A,p){var D;if(y+1)D=y;else if(v&&v.width>0)D=v.width;else return 0;return o?p:Math.min(D,A)};r.each(function(y){var v=va.select(this),A=jn.ensureSingle(v,"g","layers");A.style("opacity",y[0].trace.opacity);var p=n.indentation,D=n.valign,E=y[0].lineHeight,R=y[0].height;if(D==="middle"&&p===0||!E||!R)A.attr("transform",null);else{var F={top:1,bottom:-1}[D],z=F*(.5*(E-R+3))||0,P=n.indentation;A.attr("transform",f5(P,z))}var L=A.selectAll("g.legendfill").data([y]);L.enter().append("g").classed("legendfill",!0);var I=A.selectAll("g.legendlines").data([y]);I.enter().append("g").classed("legendlines",!0);var B=A.selectAll("g.legendsymbols").data([y]);B.enter().append("g").classed("legendsymbols",!0),B.selectAll("g.legendpoints").data([y]).enter().append("g").classed("legendpoints",!0)}).each(w).each(x).each(_).each(h).each(m).each(M).each(b).each(c).each(g).each(k).each(S);function c(y){var v=$C(y),A=v.showFill,p=v.showLine,D=v.showGradientLine,E=v.showGradientFill,R=v.anyFill,F=v.anyLine,z=y[0],P=z.trace,L,I,B=c5(P),O=B.colorscale,G=B.reversescale,J=function(Q){if(Q.size())if(A)Ha.fillGroupStyle(Q,t,!0);else{var te="legendfill-"+P.uid;Ha.gradient(Q,t,te,v5(G),O,"fill")}},j=function(Q){if(Q.size()){var te="legendline-"+P.uid;Ha.lineGroupStyle(Q),Ha.gradient(Q,t,te,v5(G),O,"stroke")}},V=$1.hasMarkers(P)||!R?"M5,0":F?"M5,-2":"M5,-3",q=va.select(this),Z=q.select(".legendfill").selectAll("path").data(A||E?[y]:[]);Z.enter().append("path").classed("js-fill",!0),Z.exit().remove(),Z.attr("d",V+"h"+i+"v"+l+"h-"+i+"z").call(J);let re=A||E?(WC.dfltFillHeight-l)/2:0;if(q.selectAll("g.legendfill, g.legendlines, g.legendsymbols").attr("transform",re?f5(0,re):null),p||D){var $=f(void 0,P.line,uoe,JC);I=jn.minExtend(P,{line:{width:$}}),L=[jn.minExtend(z,{trace:I})]}var ae=q.select(".legendlines").selectAll("path").data(p||D?[L]:[]);ae.enter().append("path").classed("js-line",!0),ae.exit().remove(),ae.attr("d",V+(D?"l"+i+",0.0001":"h"+i)).call(p?Ha.lineGroupStyle:j)}function g(y){var v=$C(y),A=v.anyFill,p=v.anyLine,D=v.showLine,E=v.showMarker,R=y[0],F=R.trace,z=!E&&!p&&!A&&$1.hasText(F),P,L;function I(re,$,ae,Q){var te=jn.nestedProperty(F,re).get(),ue=jn.isArrayOrTypedArray(te)&&$?$(te):te;if(o&&ue&&Q!==void 0&&(ue=Q),ae){if(ueae[1])return ae[1]}return ue}function B(re){return R._distinct&&R.index&&re[R.index]?re[R.index]:re[0]}if(E||z||D){var O={},G={};if(E){O.mc=I("marker.color",B);var J=F.type==="scattermap";O.mx=J?"circle":I("marker.symbol",B),O.mo=I("marker.opacity",jn.mean,[.2,1]),O.mlc=I("marker.line.color",B),O.mlw=I("marker.line.width",jn.mean,[0,5],Bs),O.mld=I("marker.line.dash",B),G.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var j=I("marker.size",jn.mean,[2,16],ZC);O.ms=j,G.marker.size=j}D&&(G.line={width:I("line.width",B,[0,10],JC)}),z&&(O.tx="Aa",O.tp=I("textposition",B),O.ts=10,O.tc=I("textfont.color",B),O.tf=I("textfont.family",B),O.tw=I("textfont.weight",B),O.ty=I("textfont.style",B),O.tv=I("textfont.variant",B),O.tC=I("textfont.textcase",B),O.tE=I("textfont.lineposition",B),O.tS=I("textfont.shadow",B)),P=[jn.minExtend(R,O)],L=jn.minExtend(F,G),L.selectedpoints=null,L.texttemplate=null}var V=va.select(this).select("g.legendpoints"),q=V.selectAll("path.scatterpts").data(E?P:[]);q.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",s),q.exit().remove(),q.call(Ha.pointStyle,L,t),E&&(P[0].mrc=3);var Z=V.selectAll("g.pointtext").data(z?P:[]);Z.enter().append("g").classed("pointtext",!0).append("text").attr("transform",s),Z.exit().remove(),Z.selectAll("text").call(Ha.textPointStyle,L,t)}function x(y){var v=y[0].trace,A=v.type==="waterfall";if(y[0]._distinct&&A){var p=y[0].trace[y[0].dir].marker;return y[0].mc=p.color,y[0].mlw=p.line.width,y[0].mlc=p.line.color,T(y,this,"waterfall")}var D=[];v.visible&&A&&(D=y[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 E=va.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data(D);E.enter().append("path").classed("legendwaterfall",!0).attr("transform",s).style("stroke-miterlimit",1),E.exit().remove(),E.each(function(R){var F=va.select(this),z=v[R[0]].marker,P=f(void 0,z.line,su,Bs);F.attr("d",R[1]).style("stroke-width",P+"px").call(oi.fill,z.color),P&&F.call(oi.stroke,z.line.color)})}function h(y){T(y,this)}function _(y){T(y,this,"funnel")}function T(y,v,A){var p=y[0].trace,D=p.marker||{},E=D.line||{},R=D.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",F=A?p.visible&&p.type===A:u5.traceIs(p,"bar"),z=va.select(v).select("g.legendpoints").selectAll("path.legend"+A).data(F?[y]:[]);z.enter().append("path").classed("legend"+A,!0).attr("d",R).attr("transform",s),z.exit().remove(),z.each(function(P){var L=va.select(this),I=P[0],B=f(I.mlw,D.line,su,Bs);L.style("stroke-width",B+"px");var O=I.mcc;if(!n._inHover&&"mc"in I){var G=c5(D),J=G.mid;J===void 0&&(J=(G.max+G.min)/2),O=Ha.tryColorscale(D,"")(J)}var j=O||I.mc||D.color,V=D.pattern,q=Ha.getPatternAttr;let Z=0;n._inHover&&I._distinct&&I.index!=null&&(Z=I.index);let re=V&&(q(V.shape,Z,"")||q(V.path,Z,""));if(re){let ae=q(V.bgcolor,Z,null),Q=q(V.fgcolor,Z,null);var $=V.fgopacity;let te=n._inHover?J1(q(V.size,Z,8),8,10):J1(V.size,8,10),ue=n._inHover?J1(q(V.solidity,Z,.5),.5,1):J1(V.solidity,.5,1),ee=n._inHover?`hover-${p.uid}-${Z}`:`legend-${p.uid}`;L.call(Ha.pattern,"legend",t,ee,re,te,ue,O,V.fillmode,ae,Q,$)}else L.call(oi.fill,j);B&&oi.stroke(L,I.mlc||E.color)})}function m(y){var v=y[0].trace,A=va.select(this).select("g.legendpoints").selectAll("path.legendbox").data(v.visible&&u5.traceIs(v,"box-violin")?[y]:[]);A.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform",s),A.exit().remove(),A.each(function(){var p=va.select(this);if((v.boxpoints==="all"||v.points==="all")&&oi.opacity(v.fillcolor)===0&&oi.opacity((v.line||{}).color)===0){var D=jn.minExtend(v,{marker:{size:o?ZC:jn.constrain(v.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});A.call(Ha.pointStyle,D,t)}else{var E=f(void 0,v.line,su,Bs);p.style("stroke-width",E+"px").call(oi.fill,v.fillcolor),E&&oi.stroke(p,v.line.color)}})}function k(y){var v=y[0].trace,A=va.select(this).select("g.legendpoints").selectAll("path.legendcandle").data(v.visible&&v.type==="candlestick"?[y,y]:[]);A.enter().append("path").classed("legendcandle",!0).attr("d",function(p,D){return D?"M-15,0H-8M-8,6V-6H8Z":"M15,0H8M8,-6V6H-8Z"}).attr("transform",s).style("stroke-miterlimit",1),A.exit().remove(),A.each(function(p,D){var E=va.select(this),R=v[D?"increasing":"decreasing"],F=f(void 0,R.line,su,Bs);E.style("stroke-width",F+"px").call(oi.fill,R.fillcolor),F&&oi.stroke(E,R.line.color)})}function S(y){var v=y[0].trace,A=va.select(this).select("g.legendpoints").selectAll("path.legendohlc").data(v.visible&&v.type==="ohlc"?[y,y]:[]);A.enter().append("path").classed("legendohlc",!0).attr("d",function(p,D){return D?"M-15,0H0M-8,-6V0":"M15,0H0M8,6V0"}).attr("transform",s).style("stroke-miterlimit",1),A.exit().remove(),A.each(function(p,D){var E=va.select(this),R=v[D?"increasing":"decreasing"],F=f(void 0,R.line,su,Bs);E.style("fill","none").call(Ha.dashLine,R.line.dash,F),F&&oi.stroke(E,R.line.color)})}function b(y){d(y,this,"pie")}function M(y){d(y,this,"funnelarea")}function d(y,v,A){var p=y[0],D=p.trace,E=A?D.visible&&D.type===A:u5.traceIs(D,A),R=va.select(v).select("g.legendpoints").selectAll("path.legend"+A).data(E?[y]:[]);if(R.enter().append("path").classed("legend"+A,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",s),R.exit().remove(),R.size()){var F=D.marker||{},z=f(soe(F.line.width,p.pts),F.line,su,Bs),P="pieLike",L=jn.minExtend(D,{marker:{line:{width:z}}},P),I=jn.minExtend(p,{trace:L},P);loe(R,I,L,t)}}function w(y){var v=y[0].trace,A,p=[];if(v.visible)switch(v.type){case"histogram2d":case"heatmap":p=[["M-15,-2V4H15V-2Z"]],A=!0;break;case"choropleth":case"choroplethmap":p=[["M-6,-6V6H6V-6Z"]],A=!0;break;case"densitymap":p=[["M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"]],A="radial";break;case"cone":p=[["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"]],A=!1;break;case"streamtube":p=[["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"]],A=!1;break;case"surface":p=[["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"]],A=!0;break;case"mesh3d":p=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],A=!1;break;case"volume":p=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],A=!0;break;case"isosurface":p=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6 A12,24 0 0,0 6,-6 L0,6Z"]],A=!1;break}var D=va.select(this).select("g.legendpoints").selectAll("path.legend3dandfriends").data(p);D.enter().append("path").classed("legend3dandfriends",!0).attr("transform",s).style("stroke-miterlimit",1),D.exit().remove(),D.each(function(E,R){var F=va.select(this),z=c5(v),P=z.colorscale,L=z.reversescale,I=function(J){if(J.size()){var j="legendfill-"+v.uid;Ha.gradient(J,t,j,v5(L,A==="radial"),P,"fill")}},B;if(P){if(!A){var G=P.length;B=R===0?P[L?G-1:0][1]:R===1?P[L?0:G-1][1]:P[Math.floor((G-1)/2)][1]}}else{var O=v.vertexcolor||v.facecolor||v.color;B=jn.isArrayOrTypedArray(O)?O[R]||O[0]:O}F.attr("d",E[0]),B?F.call(oi.fill,B):F.call(I)})}};function v5(e,r){var t=r?"radial":"horizontal";return t+(e?"":"reversed")}function $C(e){var r=e[0].trace,t=r.contours,n=$1.hasLines(r)||r.visible&&r.type==="quiver",a=$1.hasMarkers(r),o=r.visible&&r.fill&&r.fill!=="none",i=!1,l=!1;if(t){var u=t.coloring;u==="lines"?i=!0:n=u==="none"||u==="heatmap"||t.showlines,t.type==="constraint"?o=t._operation!=="=":(u==="fill"||u==="heatmap")&&(l=!0)}return{showMarker:a,showLine:n,showFill:o,showGradientLine:i,showGradientFill:l,anyLine:n||i,anyFill:o||l}}function J1(e,r,t){return e&&jn.isArrayOrTypedArray(e)?r:e>t?t:e}});var y5=xe((Y6e,oE)=>{"use strict";var ha=lt(),fn=tr(),p5=Sn(),Os=Cr(),j1=Hf(),d5=Pi(),cn=At(),uc=Zr(),qo=Qn(),QC=i5().handleItemClick,jC=i5().handleTitleClick,Wt=(X1(),or(Y1)),g5=(Kn(),or($n)),aE=g5.LINE_SPACING,fu=g5.FROM_TL,eE=g5.FROM_BR,rE=BC(),foe=h5(),cu=sc(),uu=1,coe=/^legend[0-9]*$/;oE.exports=function(r,t){if(t)tE(r,t);else{var n=r._fullLayout,a=n._legends,o=n._infolayer.selectAll('[class^="legend"]');o.each(function(){var s=ha.select(this),f=s.attr("class"),c=f.split(" ")[0];c.match(coe)&&a.indexOf(c)===-1&&s.remove()});for(var i=0;i1)}var h=n.hiddenlabels||[];if(!l&&(!n.showlegend||!u.length))return i.selectAll("."+a).remove(),n._topdefs.select("#"+o).remove(),p5.autoMargin(e,a);var _=fn.ensureSingle(i,"g",a,function(y){l||y.attr("pointer-events","all")}),T=fn.ensureSingleById(n._topdefs,"clipPath",o,function(y){y.append("rect")}),m=fn.ensureSingle(_,"rect","bg",function(y){y.attr("shape-rendering","crispEdges")});m.call(uc.stroke,t.bordercolor).call(uc.fill,t.bgcolor).style("stroke-width",t.borderwidth+"px");var k=fn.ensureSingle(_,"g","scrollbox"),S=t.title;t._titleWidth=0,t._titleHeight=0;var b;S.text?(b=fn.ensureSingle(k,"text",a+"titletext"),b.attr("text-anchor","start").call(cn.font,S.font).text(S.text),Q1(b,k,e,t,uu),!l&&(t.titleclick||t.titledoubleclick)&&poe(k,e,t,a)):(k.selectAll("."+a+"titletext").remove(),k.selectAll("."+a+"titletoggle").remove());var M=fn.ensureSingle(_,"rect","scrollbar",function(y){y.attr(Wt.scrollBarEnterAttrs).call(uc.fill,Wt.scrollBarColor)}),d=k.selectAll("g.groups").data(u);d.enter().append("g").attr("class","groups"),d.exit().remove();var w=d.selectAll("g.traces").data(fn.identity);w.enter().append("g").attr("class","traces"),w.exit().remove(),w.style("opacity",function(y){let v=y[0],A=v.trace;if(v.groupTitle){let p=A.legendgroup,D=(n.shapes||[]).filter(function(R){return R.showlegend});return e._fullData.concat(D).some(function(R){return R.legendgroup===p&&(R.legend||"legend")===a&&R.visible===!0})?1:.5}return Os.traceIs(A,"pie-like")?h.indexOf(y[0].label)!==-1?.5:1:A.visible==="legendonly"?.5:1}).each(function(){ha.select(this).call(hoe,e,t)}).call(foe,e,t).each(function(y){l||y[0].groupTitle&&t.groupclick==="toggleitem"||ha.select(this).call(doe,e,a)}),fn.syncOrAsync([p5.previousPromises,function(){return moe(e,d,w,t,k)},function(){var y=n._size,v=t.borderwidth,A=t.xref==="paper",p=t.yref==="paper";if(S.text){let ie=(n.shapes||[]).filter(function(we){return we.showlegend}),fe=e._fullData.concat(ie).some(function(we){let Te=we.legend||"legend";var ke=Array.isArray(Te)?Te.includes(a):Te===a;return ke&&we.visible===!0});b.style("opacity",fe?1:.5)}if(!l){var D,E;A?D=y.l+y.w*t.x-fu[e2(t)]*t._width:D=n.width*t.x-fu[e2(t)]*t._width,p?E=y.t+y.h*(1-t.y)-fu[r2(t)]*t._effHeight:E=n.height*(1-t.y)-fu[r2(t)]*t._effHeight;var R=boe(e,a,D,E);if(R)return;if(n.margin.autoexpand){var F=D,z=E;D=A?fn.constrain(D,0,n.width-t._width):F,E=p?fn.constrain(E,0,n.height-t._effHeight):z,D!==F&&fn.log("Constrain "+a+".x to make legend fit inside graph"),E!==z&&fn.log("Constrain "+a+".y to make legend fit inside graph")}cn.setTranslate(_,D,E)}if(M.on(".drag",null),_.on("wheel",null),l||t._height<=t._maxHeight||e._context.staticPlot){var P=t._effHeight;l&&(P=t._height),m.attr({width:t._width-v,height:P-v,x:v/2,y:v/2}),cn.setTranslate(k,0,0),T.select("rect").attr({width:t._width-2*v,height:P-2*v,x:v,y:v}),cn.setClipUrl(k,o,e),cn.setRect(M,0,0,0,0),delete t._scrollY}else{var L=Math.max(Wt.scrollBarMinHeight,t._effHeight*t._effHeight/t._height),I=t._effHeight-L-2*Wt.scrollBarMargin,B=t._height-t._effHeight,O=I/B,G=Math.min(t._scrollY||0,B);m.attr({width:t._width-2*v+Wt.scrollBarWidth+Wt.scrollBarMargin,height:t._effHeight-v,x:v/2,y:v/2}),T.select("rect").attr({width:t._width-2*v+Wt.scrollBarWidth+Wt.scrollBarMargin,height:t._effHeight-2*v,x:v,y:v+G}),cn.setClipUrl(k,o,e),ae(G,L,O),_.on("wheel",function(){G=fn.constrain(t._scrollY+ha.event.deltaY/B*I,0,B),ae(G,L,O),G!==0&&G!==B&&ha.event.preventDefault()});var J,j,V,q=function(ie,fe,we){var Te=(we-fe)/O+ie;return fn.constrain(Te,0,B)},Z=function(ie,fe,we){var Te=(fe-we)/O+ie;return fn.constrain(Te,0,B)},re=ha.behavior.drag().on("dragstart",function(){var ie=ha.event.sourceEvent;ie.type==="touchstart"?J=ie.changedTouches[0].clientY:J=ie.clientY,V=G}).on("drag",function(){var ie=ha.event.sourceEvent;ie.buttons===2||ie.ctrlKey||(ie.type==="touchmove"?j=ie.changedTouches[0].clientY:j=ie.clientY,G=q(V,J,j),ae(G,L,O))});M.call(re);var $=ha.behavior.drag().on("dragstart",function(){var ie=ha.event.sourceEvent;ie.type==="touchstart"&&(J=ie.changedTouches[0].clientY,V=G)}).on("drag",function(){var ie=ha.event.sourceEvent;ie.type==="touchmove"&&(j=ie.changedTouches[0].clientY,G=Z(V,J,j),ae(G,L,O))});k.call($)}function ae(ie,fe,we){t._scrollY=e._fullLayout[a]._scrollY=ie,cn.setTranslate(k,0,-ie),cn.setRect(M,t._width,Wt.scrollBarMargin+ie*we,Wt.scrollBarWidth,fe),T.select("rect").attr("y",v+ie)}if(e._context.edits.legendPosition){var Q,te,ue,ee;_.classed("cursor-move",!0),d5.init({element:_.node(),gd:e,prepFn:function(ie){if(ie.target!==M.node()){var fe=cn.getTranslate(_);ue=fe.x,ee=fe.y}},moveFn:function(ie,fe){if(ue!==void 0&&ee!==void 0){var we=ue+ie,Te=ee+fe;cn.setTranslate(_,we,Te),Q=d5.align(we,t._width,y.l,y.l+y.w,t.xanchor),te=d5.align(Te+t._height,-t._height,y.t+y.h,y.t,t.yanchor)}},doneFn:function(){if(Q!==void 0&&te!==void 0){var ie={};ie[a+".x"]=Q,ie[a+".y"]=te,Os.call("_guiRelayout",e,ie)}},clickFn:function(ie,fe){var we=i.selectAll("g.traces").filter(function(){var Te=this.getBoundingClientRect();return fe.clientX>=Te.left&&fe.clientX<=Te.right&&fe.clientY>=Te.top&&fe.clientY<=Te.bottom});we.size()>0&&iE(e,t,we,ie,fe)}})}}],e)}}function K1(e,r,t){var n=e[0],a=n.width,o=r.entrywidthmode,i=n.trace.legendwidth||r.entrywidth;return o==="fraction"?r._maxWidth*i:t+(i||a)}function iE(e,r,t,n,a){var o=e._fullLayout,i=t.data()[0][0].trace,l=r.itemclick,u=r.itemdoubleclick,s={event:a,node:t.node(),curveNumber:i.index,expandedIndex:i.index,data:e.data,layout:e.layout,frames:e._transitionData._frames,config:e._context,fullData:e._fullData,fullLayout:o};i._group&&(s.group=i._group),Os.traceIs(i,"pie-like")&&(s.label=t.datum()[0].label);var f=j1.triggerHandler(e,"plotly_legendclick",s);if(n===1){if(f===!1)return;r._clickTimeout=setTimeout(function(){e._fullLayout&&l&&QC(t,e,r,l,n)},e._context.doubleClickDelay)}else if(n===2){r._clickTimeout&&clearTimeout(r._clickTimeout),e._legendMouseDownTime=0;var c=j1.triggerHandler(e,"plotly_legenddoubleclick",s);c!==!1&&f!==!1&&u&&QC(t,e,r,u,n)}}function hoe(e,r,t){var n=cu.getId(t),a=e.data()[0][0],o=a.trace,i=Os.traceIs(o,"pie-like"),l=!t._inHover&&r._context.edits.legendText&&!i,u=t._maxNameLength,s,f;a.groupTitle?(s=a.groupTitle.text,f=a.groupTitle.font):(f=t.font,t.entries?s=a.text:(s=i?a.label:o.name,o._meta&&(s=fn.templateString(s,o._meta))));var c=fn.ensureSingle(e,"text",n+"text");c.attr("text-anchor","start").call(cn.font,f).text(l?nE(s,u):s);var g=t.indentation+t.itemwidth+Wt.itemGap*2;qo.positionText(c,g,0),l?c.call(qo.makeEditable,{gd:r,text:s}).call(Q1,e,r,t).on("edit",function(x){this.text(nE(x,u)).call(Q1,e,r,t);var h={};return h.name=x,a.trace._isShape?Os.call("_guiRelayout",r,"shapes["+o.index+"].name",h.name):Os.call("_guiRestyle",r,h,o.index)}):Q1(c,e,r,t)}function nE(e,r){var t=Math.max(4,r);if(e&&e.trim().length>=t/2)return e;e=e||"";for(var n=t-e.length;n>0;n--)e+=" ";return e}function doe(e,r,t){var n=r._context.doubleClickDelay,a,o=1,i=fn.ensureSingle(e,"rect",t+"toggle",function(l){r._context.staticPlot||l.style("cursor","pointer").attr("pointer-events","all"),l.call(uc.fill,"rgba(0,0,0,0)")});r._context.staticPlot||(i.on("mousedown",function(){a=new Date().getTime(),a-r._legendMouseDownTimen&&(o=Math.max(o-1,1)),iE(r,l,e,o,ha.event)}}))}function poe(e,r,t,n){if(r._fullData.some(function(s){let f=s.legend||"legend";return(Array.isArray(f)?f.includes(n):f===n)&&Os.traceIs(s,"pie-like")}))return;let o=r._context.doubleClickDelay;var i,l=1;let u=fn.ensureSingle(e,"rect",n+"titletoggle",function(s){r._context.staticPlot||s.style("cursor","pointer").attr("pointer-events","all"),s.call(uc.fill,"rgba(0,0,0,0)")});r._context.staticPlot||(u.on("mousedown",function(){i=new Date().getTime(),i-r._legendMouseDownTimeo&&(l=Math.max(l-1,1));let s={event:ha.event,legendId:n,data:r.data,layout:r.layout,fullData:r._fullData,fullLayout:r._fullLayout};if(l===1&&t.titleclick){if(j1.triggerHandler(r,"plotly_legendtitleclick",s)===!1)return;t._titleClickTimeout=setTimeout(function(){r._fullLayout&&jC(r,t,t.titleclick)},o)}else l===2&&(t._titleClickTimeout&&clearTimeout(t._titleClickTimeout),r._legendMouseDownTime=0,j1.triggerHandler(r,"plotly_legendtitledoubleclick",s)!==!1&&t.titledoubleclick&&jC(r,t,t.titledoubleclick))}))}function Q1(e,r,t,n,a){n._inHover&&e.attr("data-notex",qo.isPureTex(e.text())?null:!0),qo.convertToTspans(e,t,function(){goe(r,t,n,a)})}function goe(e,r,t,n){var a=e.data()[0][0],o=a&&a.trace.showlegend;if(Array.isArray(o)&&(o=o[a.i]!==!1),!t._inHover&&a&&!o){e.remove();return}var i=e.select("g[class*=math-group]"),l=i.node(),u=cu.getId(t);t||(t=r._fullLayout[u]);var s=t.borderwidth,f;n===uu?f=t.title.font:a.groupTitle?f=a.groupTitle.font:f=t.font;var c=f.size*aE,g,x;if(l){var h=cn.bBox(l);g=h.height,x=h.width,n===uu?cn.setTranslate(i,s,s+g*.75):cn.setTranslate(i,0,g*.25)}else{var _="."+u+(n===uu?"title":"")+"text",T=e.select(_),m=qo.lineCount(T),k=T.node();if(g=c*m,x=k?cn.bBox(k).width:0,n===uu)t.title.side==="left"&&(x+=Wt.itemGap*2),qo.positionText(T,s+Wt.titlePad,s+c);else{var S=Wt.itemGap*2+t.indentation+t.itemwidth;a.groupTitle&&(S=Wt.itemGap,x-=t.indentation+t.itemwidth),qo.positionText(T,S,-c*((m-1)/2-.3))}}if(n===uu)t._titleWidth=x,t._titleHeight=g;else{a.lineHeight=c;let b=Wt.itemMinHeight+t.itemheight-Wt.dfltFillHeight;a.height=Math.max(g,Wt.itemMinHeight,b)+Wt.itemHeightPad,a.width=x}}function yoe(e){var r=0,t=0,n=e.title.side;return n&&(n.indexOf("left")!==-1&&(r=e._titleWidth),n.indexOf("top")!==-1&&(t=e._titleHeight)),[r,t]}function moe(e,r,t,n,a){var o=e._fullLayout,i=cu.getId(n);n||(n=o[i]);var l=o._size,u=cu.isVertical(n),s=cu.isGrouped(n),f=n.entrywidthmode==="fraction",c=n.borderwidth,g=2*c,x=Wt.itemGap,h=n.indentation+n.itemwidth+x*2,_=2*(c+x),T=r2(n),m=n.y<0||n.y===0&&T==="top",k=n.y>1||n.y===1&&T==="bottom",S=n.tracegroupgap,b={};let{orientation:M,yref:d}=n,{maxheight:w}=n,y=m||k||M!=="v"||d!=="paper";w||(w=y?.5:1);let v=y?o.height:l.h;n._maxHeight=Math.max(w>1?w:w*v,30);var A=0;n._width=0,n._height=0;var p=yoe(n);if(u)t.each(function(ie){var fe=ie[0].height;cn.setTranslate(this,c+p[0],c+p[1]+n._height+fe/2+x),n._height+=fe,n._width=Math.max(n._width,ie[0].width)}),A=h+n._width,n._width+=x+h+g,n._height+=_,s&&(r.each(function(ie,fe){cn.setTranslate(this,0,fe*n.tracegroupgap)}),n._height+=(n._lgroupsLength-1)*n.tracegroupgap);else{var D=e2(n),E=n.x<0||n.x===0&&D==="right",R=n.x>1||n.x===1&&D==="left",F=k||m,z=o.width/2;n._maxWidth=Math.max(E?F&&D==="left"?l.l+l.w:z:R?F&&D==="right"?l.r+l.w:z:l.w,2*h);var P=0,L=0;t.each(function(ie){var fe=K1(ie,n,h);P=Math.max(P,fe),L+=fe}),A=null;var I=0;if(s){var B=0,O=0,G=0;r.each(function(){var ie=0,fe=0;ha.select(this).selectAll("g.traces").each(function(Te){var ke=K1(Te,n,h),ge=Te[0].height;cn.setTranslate(this,p[0],p[1]+c+x+ge/2+fe),fe+=ge,ie=Math.max(ie,ke),b[Te[0].trace.legendgroup]=ie});var we=ie+x;O>0&&we+c+O>n._maxWidth?(I=Math.max(I,O),O=0,G+=B+S,B=fe):B=Math.max(B,fe),cn.setTranslate(this,O,G),O+=we}),n._width=Math.max(I,O)+c,n._height=G+B+_}else{var J=t.size(),j=L+g+(J-1)*x=n._maxWidth&&(I=Math.max(I,re),q=0,Z+=V,n._height+=V,V=0),cn.setTranslate(this,p[0]+c+q,p[1]+c+Z+fe/2+x),re=q+we+x,q+=Te,V=Math.max(V,fe)}),j?(n._width=q+g,n._height=V+_):(n._width=Math.max(I,re)+g,n._height+=V+_)}}n._width=Math.ceil(Math.max(n._width+p[0],n._titleWidth+2*(c+Wt.titlePad))),n._height=Math.ceil(Math.max(n._height+p[1],n._titleHeight+2*(c+Wt.itemGap))),n._effHeight=Math.min(n._height,n._maxHeight);var $=e._context.edits,ae=$.legendText||$.legendPosition;if(t.each(function(ie){var fe=ha.select(this).select("."+i+"toggle"),we=ie[0].height,Te=ie[0].trace.legendgroup,ke=K1(ie,n,h);s&&Te!==""&&(ke=b[Te]);var ge=ae?h:A||ke;!u&&!f&&(ge+=x/2),cn.setRect(fe,0,-we/2,ge,we)}),n._inHover){let ie=n._width-g-x-p[0];t.each(function(fe){fe[0].textAlign==="right"&&ha.select(this).select("."+i+"text").attr("text-anchor","end").call(qo.positionText,ie)})}var Q=a.select("."+i+"titletext");Q.node()&&voe(Q,n,c);var te=a.select("."+i+"titletoggle");if(te.size()&&Q.node()){var ue=Q.attr("x")||0,ee=Wt.titlePad;cn.setRect(te,ue-ee,c,n._titleWidth+2*ee,n._titleHeight+2*ee)}}function boe(e,r,t,n){var a=e._fullLayout,o=a[r],i=e2(o),l=r2(o),u=o.xref==="paper",s=o.yref==="paper";e._fullLayout._reservedMargin[r]={};var f=o.y<.5?"b":"t",c=o.x<.5?"l":"r",g={r:a.width-t,l:t+o._width,b:a.height-n,t:n+o._effHeight};if(u&&s)return p5.autoMargin(e,r,{x:o.x,y:o.y,l:o._width*fu[i],r:o._width*eE[i],b:o._effHeight*eE[l],t:o._effHeight*fu[l]});u?e._fullLayout._reservedMargin[r][f]=g[f]:s||o.orientation==="v"?e._fullLayout._reservedMargin[r][c]=g[c]:e._fullLayout._reservedMargin[r][f]=g[f]}function e2(e){return fn.isRightAnchor(e)?"right":fn.isCenterAnchor(e)?"center":"left"}function r2(e){return fn.isBottomAnchor(e)?"bottom":fn.isMiddleAnchor(e)?"middle":"top"}});var w5=xe(_5=>{"use strict";var Oo=lt(),Bo=ut(),Zt=tr(),xoe=Zt.pushUnique,m5=Zt.strTranslate,_oe=Zt.strRotate,woe=Hf(),Gt=Qn(),Moe=RC(),po=At(),dn=Zr(),t2=Pi(),go=Vt(),Toe=(kn(),or(An)).zindexSeparator,Us=Cr(),Va=so(),Hs=(pf(),or(df)),Aoe=t5(),koe=y5(),pE=Hs.YANGLE,x5=Math.PI*pE/180,Soe=1/Math.sin(x5),Coe=Math.cos(x5),Eoe=Math.sin(x5),zt=Hs.HOVERARROWSIZE,et=Hs.HOVERTEXTPAD,lE={box:!0,ohlc:!0,violin:!0,candlestick:!0},Loe={scatter:!0,scattergl:!0,splom:!0};function sE(e,r){return e.distance-r.distance}_5.hover=function(r,t,n,a){r=Zt.getGraphDiv(r);var o=t.target;Zt.throttle(r._fullLayout._uid+Hs.HOVERID,Hs.HOVERMINTIME,function(){Roe(r,t,n,a,o)})};_5.loneHover=function(r,t){var n=!0;Array.isArray(r)||(n=!1,r=[r]);var a=t.gd,o=bE(a),i=xE(a),l=r.map(function(h){var _=h._x0||h.x0||h.x||0,T=h._x1||h.x1||h.x||0,m=h._y0||h.y0||h.y||0,k=h._y1||h.y1||h.y||0,S=h.eventData;if(S){var b=Math.min(_,T),M=Math.max(_,T),d=Math.min(m,k),w=Math.max(m,k),y=h.trace;if(Us.traceIs(y,"gl3d")){var v=a._fullLayout[y.scene]._scene.container,A=v.offsetLeft,p=v.offsetTop;b+=A,M+=A,d+=p,w+=p}S.bbox={x0:b+i,x1:M+i,y0:d+o,y1:w+o},S.xPixel=(_+T)/2,S.yPixel=(m+k)/2,t.inOut_bbox&&t.inOut_bbox.push(S.bbox)}else S=!1;return{color:h.color||dn.defaultLine,x0:h.x0||h.x||0,x1:h.x1||h.x||0,y0:h.y0||h.y||0,y1:h.y1||h.y||0,xLabel:h.xLabel,yLabel:h.yLabel,zLabel:h.zLabel,text:h.text,name:h.name,idealAlign:h.idealAlign,borderColor:h.borderColor,fontFamily:h.fontFamily,fontSize:h.fontSize,fontColor:h.fontColor,fontWeight:h.fontWeight,fontStyle:h.fontStyle,fontVariant:h.fontVariant,nameLength:h.nameLength,textAlign:h.textAlign,trace:h.trace||{index:0,hoverinfo:""},xa:{_offset:0},ya:{_offset:0},index:0,hovertemplate:h.hovertemplate||!1,hovertemplateLabels:h.hovertemplateLabels||!1,eventData:S}}),u=!1,s=yE(l,{gd:a,hovermode:"closest",rotateLabels:u,bgColor:t.bgColor||dn.background,container:Oo.select(t.container),outerContainer:t.outerContainer||t.container}),f=s.hoverLabels;function c(){var h=5,_=0,T=0;f.sort(function(m,k){return m.y0-k.y0}).each(function(m,k){var S=m.y0-m.by/2;S-h<_?m.offset=_-S+h:m.offset=0,_=S+m.by+m.offset,k===t.anchorIndex&&(T=m.offset)}).each(function(m){m.offset-=T})}var g=a._fullLayout._invScaleX,x=a._fullLayout._invScaleY;return c(),a2(f,u,g,x),s.mathjaxPromise&&s.mathjaxPromise.then(function(){c(),a2(f,u,g,x),f.each(function(){var h=Oo.select(this);Gt.repositionMathGroup(h.select("text.nums")),Gt.repositionMathGroup(h.select("text.name"))})}),n?f:f.node()};function Doe(e,r){return!!(e!=null&&e.showspikes&&e.spikesnap!=="hovered data"||r!=null&&r.showspikes&&r.spikesnap!=="hovered data")}function Roe(e,r,t,n,a){t||(t="xy"),typeof t=="string"&&(t=t.split(Toe)[0]);var o=Array.isArray(t)?t:[t],i,l=e._fullLayout,u=l.hoversubplots,s=l._plots||[],f=s[t],c=l._has("cartesian"),g=l._has("ternary"),x=r.hovermode||l.hovermode,h=(x||"").charAt(0)==="x",_=(x||"").charAt(0)==="y",T,m;if(c&&(h||_)&&u==="axis"){for(var k=o.length,S=0;Sy[0]._length||fe<0||fe>v[0]._length)return t2.unhoverRaw(e,r)}if(r.pointerX=ie+y[0]._offset,r.pointerY=fe+v[0]._offset,"xval"in r?P=Va.flat(o,r.xval):P=Va.p2c(y,ie),"yval"in r?L=Va.flat(o,r.yval):L=Va.p2c(v,fe),e._hoverPointerX=r.pointerX,e._hoverPointerY=r.pointerY,!Bo(P[0])||!Bo(L[0]))return Zt.warn("Fx.hover failed",r,e),t2.unhoverRaw(e,r)}l.clickanywhere&&(e._hoverXVals=P,e._hoverYVals=L,e._hoverXAxes=y,e._hoverYAxes=v);var ke=1/0;function ge(lr,Dr){for(B=0;B$&&(F.splice(0,$),ke=F[0].distance),Us.traceIs(G,"ternary")&&R!==0){let Ct=re.subplot;if(["aaxis","baxis","caxis"].some(tn=>Ct[tn].showspikes&&Ct[tn].spikesnap!=="hovered data")){let tn=st==null?void 0:st[0];if(!Number.isFinite(tn==null?void 0:tn.spikeDistance)){let _i=Zt.extendFlat({},re,{distance:R,index:!1}),nn=G._module.hoverPoints(_i,q,Z,"closest");tn=nn&&nn[0]}let $a=Q[J];tn&&tn.index!==void 0&&tn.index!==!1&&tn.spikeDistance<=R&&(!$a||tn.spikeDistance<$a.spikeDistance)&&(Q[J]=tn)}}if(c&&F.length===0&&R!==0&&Doe(re.xa,re.ya)){re.distance=R,re.index=!1;var it=G._module.hoverPoints(re,q,Z,"closest",{hoverLayer:l._hoverlayer});if(it&&(it=it.filter(function(Ct){return Ct.spikeDistance<=R})),it!=null&&it.length){var vt,Bt=it.filter(function(Ct){return Ct.xa.showspikes&&Ct.xa.spikesnap!=="hovered data"});if(Bt.length){var Gn=Bt[0];Bo(Gn.x0)&&Bo(Gn.y0)&&(vt=se(Gn),(!ae.vLinePoint||ae.vLinePoint.spikeDistance>vt.spikeDistance)&&(ae.vLinePoint=vt))}var Yn=it.filter(function(Ct){return Ct.ya.showspikes&&Ct.ya.spikesnap!=="hovered data"});if(Yn.length){var _n=Yn[0];Bo(_n.x0)&&Bo(_n.y0)&&(vt=se(_n),(!ae.hLinePoint||ae.hLinePoint.spikeDistance>vt.spikeDistance)&&(ae.hLinePoint=vt))}}}}}ge();function Ee(){if(l._hoverlayer.selectAll(".ternary-spikes").remove(),R!==0)for(let lr=0;lrmt.trace.subplot===Dr&&mt.index!==void 0&&mt.index!==!1&&mt.spikeDistance<=R);Vr.drawSpikelines(st,Q[Dr],P&&P[lr],L&&L[lr])}}}function Le(lr,Dr,Vr){for(var st=null,mt=1/0,St,it=0;itlr.trace.index===Re.trace.index):F=[Re];var Pe=F.length,Ye=dE("x",Re,l),Ve=dE("y",Re,l);ge(Ye,Ve);var Ue=[],qe={},We=0,Xe=function(lr){var Dr=lE[lr.trace.type]?gE(lr):lr.trace.index;if(!qe[Dr])We++,qe[Dr]=We,Ue.push(lr);else{var Vr=qe[Dr]-1,st=Ue[Vr];Vr>0&&Math.abs(lr.distance)Pe-1;er--)Xe(F[er]);F=Ue,oe()}var nr=e._hoverdata,rr=[],Qe=bE(e),Ce=xE(e);for(let lr of F){var ze=Va.makeEventData(lr,lr.trace,lr.cd);if(lr.hovertemplate!==!1){var Ke=!1;lr.cd[lr.index]&&lr.cd[lr.index].ht&&(Ke=lr.cd[lr.index].ht),lr.hovertemplate=Ke||lr.trace.hovertemplate||!1}if(lr.xa&&lr.ya){var je=lr.x0+lr.xa._offset,wr=lr.x1+lr.xa._offset,Xr=lr.y0+lr.ya._offset,Tr=lr.y1+lr.ya._offset,Pr=Math.min(je,wr),at=Math.max(je,wr),Ar=Math.min(Xr,Tr),Hr=Math.max(Xr,Tr);ze.bbox={x0:Pr+Ce,x1:at+Ce,y0:Ar+Qe,y1:Hr+Qe},ze.xPixel=(je+wr)/2,ze.yPixel=(Xr+Tr)/2}lr.eventData=[ze],rr.push(ze)}e._hoverdata=rr;var ot=x==="y"&&(z.length>1||F.length>1)||x==="closest"&&te&&F.length>1,Ir=dn.combine(l.plot_bgcolor||dn.background,l.paper_bgcolor),Jr=yE(F,{gd:e,hovermode:x,rotateLabels:ot,bgColor:Ir,container:l._hoverlayer,outerContainer:l._paper.node(),commonLabelOpts:l.hoverlabel,hoverdistance:l.hoverdistance}),Xt=Jr.hoverLabels;if(Va.isUnifiedHover(x)||(fE(Xt,ot,l,Jr.commonLabelBoundingBox),a2(Xt,ot,l._invScaleX,l._invScaleY),Jr.mathjaxPromise&&Jr.mathjaxPromise.then(function(){e._hoverdata===rr&&(fE(Xt,ot,l,Jr.commonLabelBoundingBox),a2(Xt,ot,l._invScaleX,l._invScaleY),Xt.each(function(){var lr=Oo.select(this);Gt.repositionMathGroup(lr.select("text.nums")),Gt.repositionMathGroup(lr.select("text.name"))}))})),a&&a.tagName){var tt=Us.getComponentMethod("annotations","hasClickToShow")(e,rr);Moe(Oo.select(a),tt?"pointer":"")}var Kr=zoe(e,r,nr);if(!a||n||!Kr&&!l.hoveranywhere)return;nr&&Kr&&e.emit("plotly_unhover",{event:r,points:nr}),qt(e._hoverdata);function qt(lr){e.emit("plotly_hover",{event:r,points:lr,xaxes:y,yaxes:v,xvals:Va.c2dApply(y,P),yvals:Va.c2dApply(v,L),xPixel:r.pointerX,yPixel:r.pointerY})}}function gE(e){return[e.trace.index,e.index,e.x0,e.y0,e.name,e.attr,e.xa?e.xa._id:"",e.ya?e.ya._id:""].join(",")}var Foe=/([\s\S]*)<\/extra>/;function b5(e,r){return n2(e,Gt.getMathOrTextNode(r))}function yE(e,r){var t=r.gd,n=t._fullLayout,a=r.hovermode,o=r.rotateLabels,i=r.bgColor,l=r.container,u=r.outerContainer,s=r.commonLabelOpts||{};if(e.length===0)return[[]];var f=[],c=r.fontFamily||Hs.HOVERFONT,g=r.fontSize||Hs.HOVERFONTSIZE,x=r.fontWeight||n.font.weight,h=r.fontStyle||n.font.style,_=r.fontVariant||n.font.variant,T=r.fontTextcase||n.font.textcase,m=r.fontLineposition||n.font.lineposition,k=r.fontShadow||n.font.shadow,S=e[0],b=S.xa,M=S.ya,d=a.charAt(0),w=d+"Label",y=S[w];if(y===void 0&&b.type==="multicategory")for(var v=0;vn.width-Qe&&(Ce=n.width-Qe),he.attr("d","M"+(er-Ce)+",0L"+(er-Ce+zt)+","+rr+zt+"H"+Qe+"v"+rr+(et*2+Xe.height)+"H"+-Qe+"V"+rr+zt+"H"+(er-Ce-zt)+"Z"),er=Ce,B.minX=er-Qe,B.maxX=er+Qe,b.side==="top"?(B.minY=nr-(et*2+Xe.height),B.maxY=nr-et):(B.minY=nr+et,B.maxY=nr+(et*2+Xe.height))}else{var ze,Ke,je;M.side==="right"?(ze="start",Ke=1,je="",er=b._offset+b._length):(ze="end",Ke=-1,je="-",er=b._offset),nr=M._offset+(S.y0+S.y1)/2,be.attr("text-anchor",ze),he.attr("d","M0,0L"+je+zt+","+zt+"V"+(et+Xe.height/2)+"h"+je+(et*2+Xe.width)+"V-"+(et+Xe.height/2)+"H"+je+zt+"V-"+zt+"Z"),B.minY=nr-(et+Xe.height/2),B.maxY=nr+(et+Xe.height/2),M.side==="right"?(B.minX=er+zt,B.maxX=er+zt+(et*2+Xe.width)):(B.minX=er-zt-(et*2+Xe.width),B.maxX=er-zt);var wr=Xe.height/2,Xr=p-Xe.top-wr,Tr="clip"+n._uid+"commonlabel"+M._id,Pr;if(erhe.hoverinfo!=="none");if(ve.length===0)return[];var O=n.hoverlabel,G=O.font,J=ve[0],j=((a==="x unified"?J.xa:J.ya).unifiedhovertitle||{}).text,V=j?Zt.hovertemplateString({data:a==="x unified"?[{xa:J.xa,x:J.xVal}]:[{ya:J.ya,y:J.yVal}],fallback:J.trace.hovertemplatefallback,locale:n._d3locale,template:j}):y,q={showlegend:!0,legend:{title:{text:V,font:G},font:G,bgcolor:O.bgcolor,bordercolor:O.bordercolor,borderwidth:1,tracegroupgap:7,traceorder:n.legend?n.legend.traceorder:void 0,orientation:"v"}},Z={font:G};Aoe(q,Z,t._fullData);var re=Z.legend;re.entries=[];for(var $=0;$=0?pe=K:ye+we=0?pe=ye:oe+we=0?me=se:X+Te=0?me=X:de+Te=0,(ve.idealAlign==="top"||!Jr)&&Xt?(je-=Xr/2,ve.anchor="end"):Jr?(je+=Xr/2,ve.anchor="start"):ve.anchor="middle",ve.crossPos=je;else{if(ve.pos=je,Jr=Ke+wr/2+Ir<=D,Xt=Ke-wr/2-Ir>=0,(ve.idealAlign==="left"||!Jr)&&Xt)Ke-=wr/2,ve.anchor="end";else if(Jr)Ke+=wr/2,ve.anchor="start";else{ve.anchor="middle";var tt=Ir/2,Kr=Ke+tt-D,qt=Ke-tt;Kr>0&&(Ke-=Kr),qt<0&&(Ke+=-qt)}ve.crossPos=Ke}Qe.attr("text-anchor",ve.anchor),Tr&&Ce.attr("text-anchor",ve.anchor),he.attr("transform",m5(Ke,je)+(o?_oe(pE):""))}}),{hoverLabels:Se,commonLabelBoundingBox:B,mathjaxPromise:f.length?Promise.all(f):null}}function uE(e,r,t,n,a,o){var c,g;var i="",l="";e.nameOverride!==void 0&&(e.name=e.nameOverride),e.name&&(e.trace._meta&&(e.name=Zt.templateString(e.name,e.trace._meta)),i=hE(e.name,e.nameLength));var u=t.charAt(0),s=u==="x"?"y":"x";e.zLabel!==void 0?(e.xLabel!==void 0&&(l+="x: "+e.xLabel+"
"),e.yLabel!==void 0&&(l+="y: "+e.yLabel+"
"),e.trace.type!=="choropleth"&&e.trace.type!=="choroplethmap"&&(l+=(l?"z: ":"")+e.zLabel)):r&&e[u+"Label"]===a?l=e[s+"Label"]||"":e.xLabel===void 0?e.yLabel!==void 0&&e.trace.type!=="scattercarpet"&&(l=e.yLabel):e.yLabel===void 0?l=e.xLabel:l="("+e.xLabel+", "+e.yLabel+")",(e.text||e.text===0)&&!Array.isArray(e.text)&&(l+=(l?"
":"")+e.text),e.extraText!==void 0&&(l+=(l?"
":"")+e.extraText),o&&l===""&&!e.hovertemplate&&(i===""&&o.remove(),l=i),(g=(c=e.trace)==null?void 0:c.hoverlabel)!=null&&g.split&&(e.hovertemplate="");let{hovertemplate:f=!1}=e;if(f){let x=e.hovertemplateLabels||e;e[u+"Label"]!==a&&(x[u+"other"]=x[u+"Val"],x[u+"otherLabel"]=x[u+"Label"]),l=Zt.hovertemplateString({data:[e.eventData[0]||{},e.trace._meta],fallback:e.trace.hovertemplatefallback,labels:x,locale:n._d3locale,template:f}),l=l.replace(Foe,(h,_)=>(i=hE(_,e.nameLength),""))}return[l,i]}function fE(e,r,t,n){var a=r?"xa":"ya",o=r?"ya":"xa",i=0,l=1,u=e.size(),s=new Array(u),f=0,c=n.minX,g=n.maxX,x=n.minY,h=n.maxY,_=function(z){return z*t._invScaleX},T=function(z){return z*t._invScaleY};e.each(function(z){var P=z[a],L=z[o],I=P._id.charAt(0)==="x",B=P.range;f===0&&B&&B[0]>B[1]!==I&&(l=-1);var O=0,G=I?t.width:t.height;if(t.hovermode==="x"||t.hovermode==="y"){var J=mE(z,r),j=z.anchor,V=j==="end"?-1:1,q,Z;if(j==="middle")q=z.crossPos+(I?T(J.y-z.by/2):_(z.bx/2+z.tx2width/2)),Z=q+(I?T(z.by):_(z.bx));else if(I)q=z.crossPos+T(zt+J.y)-T(z.by/2-zt),Z=q+T(z.by);else{var re=_(V*zt+J.x),$=re+_(V*z.bx);q=z.crossPos+Math.min(re,$),Z=z.crossPos+Math.max(re,$)}I?x!==void 0&&h!==void 0&&Math.min(Z,h)-Math.max(q,x)>1&&(L.side==="left"?(O=L._mainLinePosition,G=t.width):G=L._mainLinePosition):c!==void 0&&g!==void 0&&Math.min(Z,g)-Math.max(q,c)>1&&(L.side==="top"?(O=L._mainLinePosition,G=t.height):G=L._mainLinePosition)}s[f++]=[{datum:z,traceIndex:z.trace.index,dp:0,pos:z.pos,posref:z.posref,size:z.by*(I?Soe:1)/2,pmin:O,pmax:G}]}),s.sort(function(z,P){return z[0].posref-P[0].posref||l*(P[0].traceIndex-z[0].traceIndex)});var m,k,S,b,M,d,w;function y(z){var P=z[0],L=z[z.length-1];if(k=P.pmin-P.pos-P.dp+P.size,S=L.pos+L.dp+L.size-P.pmax,k>.01){for(M=z.length-1;M>=0;M--)z[M].dp+=k;m=!1}if(!(S<.01)){if(k<-.01){for(M=z.length-1;M>=0;M--)z[M].dp-=S;m=!1}if(m){var I=0;for(b=0;bP.pmax&&I++;for(b=z.length-1;b>=0&&!(I<=0);b--)d=z[b],d.pos>P.pmax-1&&(d.del=!0,I--);for(b=0;b=0;M--)z[M].dp-=S;for(b=z.length-1;b>=0&&!(I<=0);b--)d=z[b],d.pos+d.dp+d.size>P.pmax&&(d.del=!0,I--)}}}for(;!m&&i<=u;){for(i++,m=!0,b=0;b.01){for(M=A.length-1;M>=0;M--)A[M].dp+=k;for(v.push.apply(v,A),s.splice(b+1,1),w=0,M=v.length-1;M>=0;M--)w+=v[M].dp;for(S=w/v.length,M=v.length-1;M>=0;M--)v[M].dp-=S;m=!1}else b++}s.forEach(y)}for(b=s.length-1;b>=0;b--){var E=s[b];for(M=E.length-1;M>=0;M--){var R=E[M],F=R.datum;F.offset=R.dp,F.del=R.del}}}function mE(e,r){var t=0,n=e.offset;return r&&(n*=-Eoe,t=e.offset*Coe),{x:t,y:n}}function Poe(e){var r={start:1,end:-1,middle:0}[e.anchor],t=r*(zt+et),n=t+r*(e.txwidth+et),a=e.anchor==="middle";return a&&(t-=e.tx2width/2,n+=e.txwidth/2+et),{alignShift:r,textShiftX:t,text2ShiftX:n}}function a2(e,r,t,n){var a=function(i){return i*t},o=function(i){return i*n};e.each(function(i){var l=Oo.select(this);if(i.del)return l.remove();var u=l.select("text.nums"),s=i.anchor,f=s==="end"?-1:1,c=Poe(i),g=mE(i,r),x=g.x,h=g.y,_=s==="middle",T="hoverlabel"in i.trace?i.trace.hoverlabel.showarrow:!0,m;_?m="M-"+a(i.bx/2+i.tx2width/2)+","+o(h-i.by/2)+"h"+a(i.bx)+"v"+o(i.by)+"h-"+a(i.bx)+"Z":T?m="M0,0L"+a(f*zt+x)+","+o(zt+h)+"v"+o(i.by/2-zt)+"h"+a(f*i.bx)+"v-"+o(i.by)+"H"+a(f*zt+x)+"V"+o(h-zt)+"Z":m="M"+a(f*zt+x)+","+o(h-i.by/2)+"h"+a(f*i.bx)+"v"+o(i.by)+"h"+a(-f*i.bx)+"Z",l.select("path").attr("d",m);var k=x+c.textShiftX,S=h+i.ty0-i.by/2+et,b=i.textAlign||"auto";b!=="auto"&&(b==="left"&&s!=="start"?(u.attr("text-anchor","start"),k=_?-i.bx/2-i.tx2width/2+et:-i.bx-et):b==="right"&&s!=="end"&&(u.attr("text-anchor","end"),k=_?i.bx/2-i.tx2width/2-et:i.bx+et)),u.call(Gt.positionText,a(k),o(S)),i.tx2width&&(l.select("text.name").call(Gt.positionText,a(c.text2ShiftX+c.alignShift*et+x),o(h+i.ty0-i.by/2+et)),l.select("rect").call(po.setRect,a(c.text2ShiftX+(c.alignShift-1)*i.tx2width/2+x),o(h-i.by/2-1),a(i.tx2width),o(i.by+2)))})}function Ioe(e,r){var t=e.index,n=e.trace||{},a=e.cd[0],o=e.cd[t]||{};function i(g){return g||Bo(g)&&g===0}var l=Array.isArray(t)?function(g,x){var h=Zt.castOption(a,t,g);return i(h)?h:Zt.extractOption({},n,"",x)}:function(g,x){return Zt.extractOption(o,n,g,x)};function u(g,x,h){var _=l(x,h);i(_)&&(e[g]=_)}if(u("hoverinfo","hi","hoverinfo"),u("bgcolor","hbg","hoverlabel.bgcolor"),u("borderColor","hbc","hoverlabel.bordercolor"),u("fontFamily","htf","hoverlabel.font.family"),u("fontSize","hts","hoverlabel.font.size"),u("fontColor","htc","hoverlabel.font.color"),u("fontWeight","htw","hoverlabel.font.weight"),u("fontStyle","hty","hoverlabel.font.style"),u("fontVariant","htv","hoverlabel.font.variant"),u("nameLength","hnl","hoverlabel.namelength"),u("textAlign","hta","hoverlabel.align"),e.posref=r==="y"||r==="closest"&&n.orientation==="h"?e.xa._offset+(e.x0+e.x1)/2:e.ya._offset+(e.y0+e.y1)/2,e.x0=Zt.constrain(e.x0,0,e.xa._length),e.x1=Zt.constrain(e.x1,0,e.xa._length),e.y0=Zt.constrain(e.y0,0,e.ya._length),e.y1=Zt.constrain(e.y1,0,e.ya._length),e.xLabelVal!==void 0&&(e.xLabel="xLabel"in e?e.xLabel:go.hoverLabelText(e.xa,e.xLabelVal,n.xhoverformat),e.xVal=e.xa.c2d(e.xLabelVal)),e.yLabelVal!==void 0&&(e.yLabel="yLabel"in e?e.yLabel:go.hoverLabelText(e.ya,e.yLabelVal,n.yhoverformat),e.yVal=e.ya.c2d(e.yLabelVal)),e.zLabelVal!==void 0&&e.zLabel===void 0&&(e.zLabel=String(e.zLabelVal)),!isNaN(e.xerr)&&!(e.xa.type==="log"&&e.xerr<=0)){var s=go.tickText(e.xa,e.xa.c2l(e.xerr),"hover").text;e.xerrneg!==void 0?e.xLabel+=" +"+s+" / -"+go.tickText(e.xa,e.xa.c2l(e.xerrneg),"hover").text:e.xLabel+=" \xB1 "+s,r==="x"&&(e.distance+=1)}if(!isNaN(e.yerr)&&!(e.ya.type==="log"&&e.yerr<=0)){var f=go.tickText(e.ya,e.ya.c2l(e.yerr),"hover").text;e.yerrneg!==void 0?e.yLabel+=" +"+f+" / -"+go.tickText(e.ya,e.ya.c2l(e.yerrneg),"hover").text:e.yLabel+=" \xB1 "+f,r==="y"&&(e.distance+=1)}var c=e.hoverinfo||e.trace.hoverinfo;return c&&c!=="all"&&(c=Array.isArray(c)?c:c.split("+"),c.indexOf("x")===-1&&(e.xLabel=void 0),c.indexOf("y")===-1&&(e.yLabel=void 0),c.indexOf("z")===-1&&(e.zLabel=void 0),c.indexOf("text")===-1&&(e.text=void 0),c.indexOf("name")===-1&&(e.name=void 0)),e}function cE(e,r,t){var n=t.container,a=t.fullLayout,o=a._size,i=t.event,l=!!r.hLinePoint,u=!!r.vLinePoint,s,f;if(n.selectAll(".spikeline").remove(),!!(u||l)){var c=dn.combine(a.plot_bgcolor,a.paper_bgcolor);if(l){var g=r.hLinePoint,x,h;s=g&&g.xa,f=g&&g.ya;var _=f.spikesnap;_==="cursor"?(x=i.pointerX,h=i.pointerY):(x=s._offset+g.x,h=f._offset+g.y);var T=dn.wcagContrast(g.color,c)<1.5?dn.contrast(c):g.color,m=f.spikemode,k=f.spikethickness,S=f.spikecolor||T,b=go.getPxPosition(e,f),M,d;if(m.indexOf("toaxis")!==-1||m.indexOf("across")!==-1){if(m.indexOf("toaxis")!==-1&&(M=b,d=x),m.indexOf("across")!==-1){var w=f._counterDomainMin,y=f._counterDomainMax;f.anchor==="free"&&(w=Math.min(w,f.position),y=Math.max(y,f.position)),M=o.l+w*o.w,d=o.l+y*o.w}n.insert("line",":first-child").attr({x1:M,x2:d,y1:h,y2:h,"stroke-width":k,stroke:S,"stroke-dasharray":po.dashStyle(f.spikedash,k)}).classed("spikeline",!0).classed("crisp",!0),n.insert("line",":first-child").attr({x1:M,x2:d,y1:h,y2:h,"stroke-width":k+2,stroke:c}).classed("spikeline",!0).classed("crisp",!0)}m.indexOf("marker")!==-1&&n.insert("circle",":first-child").attr({cx:b+(f.side!=="right"?k:-k),cy:h,r:k,fill:S}).classed("spikeline",!0)}if(u){var v=r.vLinePoint,A,p;s=v&&v.xa,f=v&&v.ya;var D=s.spikesnap;D==="cursor"?(A=i.pointerX,p=i.pointerY):(A=s._offset+v.x,p=f._offset+v.y);var E=dn.wcagContrast(v.color,c)<1.5?dn.contrast(c):v.color,R=s.spikemode,F=s.spikethickness,z=s.spikecolor||E,P=go.getPxPosition(e,s),L,I;if(R.indexOf("toaxis")!==-1||R.indexOf("across")!==-1){if(R.indexOf("toaxis")!==-1&&(L=P,I=p),R.indexOf("across")!==-1){var B=s._counterDomainMin,O=s._counterDomainMax;s.anchor==="free"&&(B=Math.min(B,s.position),O=Math.max(O,s.position)),L=o.t+(1-O)*o.h,I=o.t+(1-B)*o.h}n.insert("line",":first-child").attr({x1:A,x2:A,y1:L,y2:I,"stroke-width":F,stroke:z,"stroke-dasharray":po.dashStyle(s.spikedash,F)}).classed("spikeline",!0).classed("crisp",!0),n.insert("line",":first-child").attr({x1:A,x2:A,y1:L,y2:I,"stroke-width":F+2,stroke:c}).classed("spikeline",!0).classed("crisp",!0)}R.indexOf("marker")!==-1&&n.insert("circle",":first-child").attr({cx:A,cy:P-(s.side!=="top"?F:-F),r:F,fill:z}).classed("spikeline",!0)}}}function zoe(e,r,t){if(!t||t.length!==e._hoverdata.length)return!0;for(var n=t.length-1;n>=0;n--){var a=t[n],o=e._hoverdata[n];if(a.curveNumber!==o.curveNumber||String(a.pointNumber)!==String(o.pointNumber)||String(a.pointNumbers)!==String(o.pointNumbers)||a.binNumber!==o.binNumber)return!0}return!1}function vE(e,r){return!r||r.vLinePoint!==e._spikepoints.vLinePoint||r.hLinePoint!==e._spikepoints.hLinePoint}function hE(e,r){return Gt.plainText(e||"",{len:r,allowedTags:["br","sub","sup","b","i","em","s","u"]})}function Noe(e,r){for(var t=r.charAt(0),n=[],a=[],o=[],i=0;ie.offsetTop+e.clientTop,xE=e=>e.offsetLeft+e.clientLeft;function n2(e,r){var t=e._fullLayout,n=r.getBoundingClientRect(),a=n.left,o=n.top,i=a+n.width,l=o+n.height,u=Zt.apply3DTransform(t._invTransform)(a,o),s=Zt.apply3DTransform(t._invTransform)(i,l),f=u[0],c=u[1],g=s[0],x=s[1];return{x:f,y:c,width:g-f,height:x-c,top:Math.min(c,x),left:Math.min(f,g),right:Math.max(f,g),bottom:Math.max(c,x)}}});var i2=xe((W6e,_E)=>{"use strict";var qoe=tr(),Boe=Zr(),Ooe=so().isUnifiedHover;_E.exports=function(r,t,n,a){a=a||{};var o=t.legend;function i(l){a.font[l]||(a.font[l]=o?t.legend.font[l]:t.font[l])}t&&Ooe(t.hovermode)&&(a.font||(a.font={}),i("size"),i("family"),i("color"),i("weight"),i("style"),i("variant"),o?(a.bgcolor||(a.bgcolor=Boe.combine(t.legend.bgcolor,t.paper_bgcolor)),a.bordercolor||(a.bordercolor=t.legend.bordercolor)):a.bgcolor||(a.bgcolor=t.paper_bgcolor)),n("hoverlabel.bgcolor",a.bgcolor),n("hoverlabel.bordercolor",a.bordercolor),n("hoverlabel.namelength",a.namelength),n("hoverlabel.showarrow",a.showarrow),qoe.coerceFont(n,"hoverlabel.font",a.font),n("hoverlabel.align",a.align)}});var ME=xe((Z6e,wE)=>{"use strict";var Uoe=tr(),Hoe=i2(),Voe=fs();wE.exports=function(r,t){function n(a,o){return Uoe.coerce(r,t,Voe,a,o)}Hoe(r,t,n)}});var kE=xe((J6e,AE)=>{"use strict";var TE=tr(),Goe=eh(),Yoe=i2();AE.exports=function(r,t,n,a){function o(l,u){return TE.coerce(r,t,Goe,l,u)}var i=TE.extendFlat({},a.hoverlabel);t.hovertemplate&&(i.namelength=-1),Yoe(r,t,o,i)}});var M5=xe(($6e,SE)=>{"use strict";var Xoe=tr(),Woe=fs();SE.exports=function(r,t){function n(a,o){return t[a]!==void 0?t[a]:Xoe.coerce(r,t,Woe,a,o)}return n("clickmode"),n("hoversubplots"),n("hoveranywhere"),n("clickanywhere"),n("hovermode")}});var LE=xe((K6e,EE)=>{"use strict";var CE=tr(),Zoe=fs(),Joe=M5(),$oe=i2();EE.exports=function(r,t){function n(s,f){return CE.coerce(r,t,Zoe,s,f)}var a=Joe(r,t);a&&(n("hoverdistance"),n("spikedistance"),a.indexOf("unified")!==-1&&n("hoversort"));var o=n("dragmode");o==="select"&&n("selectdirection");var i=t._has("map"),l=t._has("geo"),u=t._basePlotModules.length;t.dragmode==="zoom"&&((i||l)&&u===1||i&&l&&u===2)&&(t.dragmode="pan"),$oe(r,t,n),CE.coerceFont(n,"hoverlabel.grouptitlefont",t.hoverlabel.font)}});var FE=xe((Q6e,RE)=>{"use strict";var T5=tr(),DE=Cr();RE.exports=function(r){var t=r.calcdata,n=r._fullLayout;function a(s){return function(f){return T5.coerceHoverinfo({hoverinfo:f},{_module:s._module},n)}}for(var o=0;o{"use strict";var Qoe=Cr(),PE=so(),joe=w5().hover;IE.exports=function(r,t,n){var a=Qoe.getComponentMethod("annotations","onClick")(r,r._hoverdata),o=r._fullLayout;n!==void 0&&joe(r,t,n,!0);function i(){var u,s,f,c,g,x;var l={points:r._hoverdata,event:t};(u=l.xaxes)!=null||(l.xaxes=r._hoverXAxes),(s=l.yaxes)!=null||(l.yaxes=r._hoverYAxes),(f=l.xvals)!=null||(l.xvals=r._hoverXVals&&PE.c2dApply(r._hoverXAxes,r._hoverXVals)),(c=l.yvals)!=null||(l.yvals=r._hoverYVals&&PE.c2dApply(r._hoverYAxes,r._hoverYVals)),(g=l.xPixel)!=null||(l.xPixel=r._hoverPointerX),(x=l.yPixel)!=null||(l.yPixel=r._hoverPointerY),r.emit("plotly_click",l)}(r._hoverdata||o.clickanywhere)&&t&&t.target&&(r._hoverdata||(r._hoverdata=[]),a&&a.then?a.then(i):i(),t.stopImmediatePropagation&&t.stopImmediatePropagation())}});var yo=xe((e_e,BE)=>{"use strict";var ele=lt(),o2=tr(),rle=Pi(),fc=so(),NE=fs(),qE=w5();BE.exports={moduleType:"component",name:"fx",constants:(pf(),or(df)),schema:{layout:NE},attributes:eh(),layoutAttributes:NE,supplyLayoutGlobalDefaults:ME(),supplyDefaults:kE(),supplyLayoutDefaults:LE(),calc:FE(),getDistanceFunction:fc.getDistanceFunction,getClosest:fc.getClosest,inbox:fc.inbox,quadrature:fc.quadrature,appendArrayPointValue:fc.appendArrayPointValue,castHoverOption:nle,castHoverinfo:ale,hover:qE.hover,unhover:rle.unhover,loneHover:qE.loneHover,loneUnhover:tle,click:zE()};function tle(e){var r=o2.isD3Selection(e)?e:ele.select(e);r.selectAll("g.hovertext").remove(),r.selectAll(".spikeline").remove()}function nle(e,r,t){return o2.castOption(e,r,"hoverlabel."+t)}function ale(e,r,t){function n(a){return o2.coerceHoverinfo({hoverinfo:a},{_module:e._module},r)}return o2.castOption(e,t,"hoverinfo",n)}});var vu=xe(Uo=>{"use strict";Uo.selectMode=function(e){return e==="lasso"||e==="select"};Uo.drawMode=function(e){return e==="drawclosedpath"||e==="drawopenpath"||e==="drawline"||e==="drawrect"||e==="drawcircle"};Uo.openMode=function(e){return e==="drawline"||e==="drawopenpath"};Uo.rectMode=function(e){return e==="select"||e==="drawline"||e==="drawrect"||e==="drawcircle"};Uo.freeMode=function(e){return e==="lasso"||e==="drawclosedpath"||e==="drawopenpath"};Uo.selectingOrDrawing=function(e){return Uo.freeMode(e)||Uo.rectMode(e)}});var l2=xe((t_e,OE)=>{"use strict";OE.exports=function(r){var t=r._fullLayout;t._glcanvas&&t._glcanvas.size()&&t._glcanvas.each(function(n){n.regl&&n.regl.clear({color:!0,depth:!0})})}});var s2=xe((n_e,UE)=>{"use strict";UE.exports={undo:{width:857.1,height:1e3,path:"m857 350q0-87-34-166t-91-137-137-92-166-34q-96 0-183 41t-147 114q-4 6-4 13t5 11l76 77q6 5 14 5 9-1 13-7 41-53 100-82t126-29q58 0 110 23t92 61 61 91 22 111-22 111-61 91-92 61-110 23q-55 0-105-20t-90-57l77-77q17-16 8-38-10-23-33-23h-250q-15 0-25 11t-11 25v250q0 24 22 33 22 10 39-8l72-72q60 57 137 88t159 31q87 0 166-34t137-92 91-137 34-166z",transform:"matrix(1 0 0 -1 0 850)"},home:{width:928.6,height:1e3,path:"m786 296v-267q0-15-11-26t-25-10h-214v214h-143v-214h-214q-15 0-25 10t-11 26v267q0 1 0 2t0 2l321 264 321-264q1-1 1-4z m124 39l-34-41q-5-5-12-6h-2q-7 0-12 3l-386 322-386-322q-7-4-13-4-7 2-12 7l-35 41q-4 5-3 13t6 12l401 334q18 15 42 15t43-15l136-114v109q0 8 5 13t13 5h107q8 0 13-5t5-13v-227l122-102q5-5 6-12t-4-13z",transform:"matrix(1 0 0 -1 0 850)"},"camera-retro":{width:1e3,height:1e3,path:"m518 386q0 8-5 13t-13 5q-37 0-63-27t-26-63q0-8 5-13t13-5 12 5 5 13q0 23 16 38t38 16q8 0 13 5t5 13z m125-73q0-59-42-101t-101-42-101 42-42 101 42 101 101 42 101-42 42-101z m-572-320h858v71h-858v-71z m643 320q0 89-62 152t-152 62-151-62-63-152 63-151 151-63 152 63 62 151z m-571 358h214v72h-214v-72z m-72-107h858v143h-462l-36-71h-360v-72z m929 143v-714q0-30-21-51t-50-21h-858q-29 0-50 21t-21 51v714q0 30 21 51t50 21h858q29 0 50-21t21-51z",transform:"matrix(1 0 0 -1 0 850)"},curlybraces:{width:18,height:16,path:"M 9,4 C 7.354992,4 6,5.354992 6,7 V 9 C 6,9.2999997 5.8778068,9.8883542 5.5878906,10.291016 5.2979744,10.693677 4.9222213,11 4,11 a 1.0001,1.0001 0 0 0 0,2 c 0.2999997,0 0.8883542,0.122193 1.2910156,0.412109 C 5.693677,13.702026 6,14.077779 6,15 v 2 c 0,1.645008 1.354992,3 3,3 h 0.5 a 1,1 0 0 0 1,-1 1,1 0 0 0 -1,-1 H 9 C 8.4358712,18 8,17.564129 8,17 V 15 C 8,13.625876 7.3766799,12.602305 6.6113281,11.96875 6.8086352,11.794047 7.0679793,11.657537 7.2109375,11.458984 7.8210204,10.611647 8,9.6999993 8,9 V 7 C 8,6.4358712 8.4358712,6 9,6 h 0.5 a 1,1 0 0 0 1,-1 1,1 0 0 0 -1,-1 z m 5.5,0 a 1,1 0 0 0 -1,1 1,1 0 0 0 1,1 H 15 c 0.564129,0 1,0.4358712 1,1 v 2 c 0,0.6999993 0.17898,1.611647 0.789062,2.458984 0.142959,0.198553 0.402303,0.335063 0.59961,0.509766 C 16.62332,12.602305 16,13.625876 16,15 v 2 c 0,0.564129 -0.435871,1 -1,1 h -0.5 a 1,1 0 0 0 -1,1 1,1 0 0 0 1,1 H 15 c 1.645008,0 3,-1.354992 3,-3 v -2 c 0,-0.922221 0.306323,-1.297974 0.708984,-1.587891 C 19.111646,13.122193 19.7,13 20,13 a 1.0001,1.0001 0 0 0 0,-2 C 19.077779,11 18.702026,10.693677 18.412109,10.291016 18.122193,9.8883542 18,9.2999997 18,9 V 7 C 18,5.354992 16.645008,4 15,4 Z",transform:"translate(-3 -4)"},zoombox:{width:1e3,height:1e3,path:"m1000-25l-250 251c40 63 63 138 63 218 0 224-182 406-407 406-224 0-406-182-406-406s183-406 407-406c80 0 155 22 218 62l250-250 125 125z m-812 250l0 438 437 0 0-438-437 0z m62 375l313 0 0-312-313 0 0 312z",transform:"matrix(1 0 0 -1 0 850)"},pan:{width:1e3,height:1e3,path:"m1000 350l-187 188 0-125-250 0 0 250 125 0-188 187-187-187 125 0 0-250-250 0 0 125-188-188 186-187 0 125 252 0 0-250-125 0 187-188 188 188-125 0 0 250 250 0 0-126 187 188z",transform:"matrix(1 0 0 -1 0 850)"},zoom_plus:{width:875,height:1e3,path:"m1 787l0-875 875 0 0 875-875 0z m687-500l-187 0 0-187-125 0 0 187-188 0 0 125 188 0 0 187 125 0 0-187 187 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},zoom_minus:{width:875,height:1e3,path:"m0 788l0-876 875 0 0 876-875 0z m688-500l-500 0 0 125 500 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},autoscale:{width:1e3,height:1e3,path:"m250 850l-187 0-63 0 0-62 0-188 63 0 0 188 187 0 0 62z m688 0l-188 0 0-62 188 0 0-188 62 0 0 188 0 62-62 0z m-875-938l0 188-63 0 0-188 0-62 63 0 187 0 0 62-187 0z m875 188l0-188-188 0 0-62 188 0 62 0 0 62 0 188-62 0z m-125 188l-1 0-93-94-156 156 156 156 92-93 2 0 0 250-250 0 0-2 93-92-156-156-156 156 94 92 0 2-250 0 0-250 0 0 93 93 157-156-157-156-93 94 0 0 0-250 250 0 0 0-94 93 156 157 156-157-93-93 0 0 250 0 0 250z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_basic:{width:1500,height:1e3,path:"m375 725l0 0-375-375 375-374 0-1 1125 0 0 750-1125 0z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_compare:{width:1125,height:1e3,path:"m187 786l0 2-187-188 188-187 0 0 937 0 0 373-938 0z m0-499l0 1-187-188 188-188 0 0 937 0 0 376-938-1z",transform:"matrix(1 0 0 -1 0 850)"},plotlylogo:{width:1542,height:1e3,path:"m0-10h182v-140h-182v140z m228 146h183v-286h-183v286z m225 714h182v-1000h-182v1000z m225-285h182v-715h-182v715z m225 142h183v-857h-183v857z m231-428h182v-429h-182v429z m225-291h183v-138h-183v138z",transform:"matrix(1 0 0 -1 0 850)"},"z-axis":{width:1e3,height:1e3,path:"m833 5l-17 108v41l-130-65 130-66c0 0 0 38 0 39 0-1 36-14 39-25 4-15-6-22-16-30-15-12-39-16-56-20-90-22-187-23-279-23-261 0-341 34-353 59 3 60 228 110 228 110-140-8-351-35-351-116 0-120 293-142 474-142 155 0 477 22 477 142 0 50-74 79-163 96z m-374 94c-58-5-99-21-99-40 0-24 65-43 144-43 79 0 143 19 143 43 0 19-42 34-98 40v216h87l-132 135-133-135h88v-216z m167 515h-136v1c16 16 31 34 46 52l84 109v54h-230v-71h124v-1c-16-17-28-32-44-51l-89-114v-51h245v72z",transform:"matrix(1 0 0 -1 0 850)"},"3d_rotate":{width:1e3,height:1e3,path:"m922 660c-5 4-9 7-14 11-359 263-580-31-580-31l-102 28 58-400c0 1 1 1 2 2 118 108 351 249 351 249s-62 27-100 42c88 83 222 183 347 122 16-8 30-17 44-27-2 1-4 2-6 4z m36-329c0 0 64 229-88 296-62 27-124 14-175-11 157-78 225-208 249-266 8-19 11-31 11-31 2 5 6 15 11 32-5-13-8-20-8-20z m-775-239c70-31 117-50 198-32-121 80-199 346-199 346l-96-15-58-12c0 0 55-226 155-287z m603 133l-317-139c0 0 4-4 19-14 7-5 24-15 24-15s-177-147-389 4c235-287 536-112 536-112l31-22 100 299-4-1z m-298-153c6-4 14-9 24-15 0 0-17 10-24 15z",transform:"matrix(1 0 0 -1 0 850)"},camera:{width:1e3,height:1e3,path:"m500 450c-83 0-150-67-150-150 0-83 67-150 150-150 83 0 150 67 150 150 0 83-67 150-150 150z m400 150h-120c-16 0-34 13-39 29l-31 93c-6 15-23 28-40 28h-340c-16 0-34-13-39-28l-31-94c-6-15-23-28-40-28h-120c-55 0-100-45-100-100v-450c0-55 45-100 100-100h800c55 0 100 45 100 100v450c0 55-45 100-100 100z m-400-550c-138 0-250 112-250 250 0 138 112 250 250 250 138 0 250-112 250-250 0-138-112-250-250-250z m365 380c-19 0-35 16-35 35 0 19 16 35 35 35 19 0 35-16 35-35 0-19-16-35-35-35z",transform:"matrix(1 0 0 -1 0 850)"},movie:{width:1e3,height:1e3,path:"m938 413l-188-125c0 37-17 71-44 94 64 38 107 107 107 187 0 121-98 219-219 219-121 0-219-98-219-219 0-61 25-117 66-156h-115c30 33 49 76 49 125 0 103-84 187-187 187s-188-84-188-187c0-57 26-107 65-141-38-22-65-62-65-109v-250c0-70 56-126 125-126h500c69 0 125 56 125 126l188-126c34 0 62 28 62 63v375c0 35-28 63-62 63z m-750 0c-69 0-125 56-125 125s56 125 125 125 125-56 125-125-56-125-125-125z m406-1c-87 0-157 70-157 157 0 86 70 156 157 156s156-70 156-156-70-157-156-157z",transform:"matrix(1 0 0 -1 0 850)"},question:{width:857.1,height:1e3,path:"m500 82v107q0 8-5 13t-13 5h-107q-8 0-13-5t-5-13v-107q0-8 5-13t13-5h107q8 0 13 5t5 13z m143 375q0 49-31 91t-77 65-95 23q-136 0-207-119-9-14 4-24l74-55q4-4 10-4 9 0 14 7 30 38 48 51 19 14 48 14 27 0 48-15t21-33q0-21-11-34t-38-25q-35-16-65-48t-29-70v-20q0-8 5-13t13-5h107q8 0 13 5t5 13q0 10 12 27t30 28q18 10 28 16t25 19 25 27 16 34 7 45z m214-107q0-117-57-215t-156-156-215-58-216 58-155 156-58 215 58 215 155 156 216 58 215-58 156-156 57-215z",transform:"matrix(1 0 0 -1 0 850)"},disk:{width:857.1,height:1e3,path:"m214-7h429v214h-429v-214z m500 0h72v500q0 8-6 21t-11 20l-157 156q-5 6-19 12t-22 5v-232q0-22-15-38t-38-16h-322q-22 0-37 16t-16 38v232h-72v-714h72v232q0 22 16 38t37 16h465q22 0 38-16t15-38v-232z m-214 518v178q0 8-5 13t-13 5h-107q-7 0-13-5t-5-13v-178q0-8 5-13t13-5h107q7 0 13 5t5 13z m357-18v-518q0-22-15-38t-38-16h-750q-23 0-38 16t-16 38v750q0 22 16 38t38 16h517q23 0 50-12t42-26l156-157q16-15 27-42t11-49z",transform:"matrix(1 0 0 -1 0 850)"},cloudupload:{width:640,height:640,path:"M451.5 160C434.9 160 418.8 164.5 404.7 172.7C388.9 156.7 370.5 143.3 350.2 133.2C378.4 109.2 414.3 96 451.5 96C537.9 96 608 166 608 252.5C608 294 591.5 333.8 562.2 363.1L491.1 434.2C461.8 463.5 422 480 380.5 480C294.1 480 224 410 224 323.5C224 322 224 320.5 224.1 319C224.6 301.3 239.3 287.4 257 287.9C274.7 288.4 288.6 303.1 288.1 320.8C288.1 321.7 288.1 322.6 288.1 323.4C288.1 374.5 329.5 415.9 380.6 415.9C405.1 415.9 428.6 406.2 446 388.8L517.1 317.7C534.4 300.4 544.2 276.8 544.2 252.3C544.2 201.2 502.8 159.8 451.7 159.8zM307.2 237.3C305.3 236.5 303.4 235.4 301.7 234.2C289.1 227.7 274.7 224 259.6 224C235.1 224 211.6 233.7 194.2 251.1L123.1 322.2C105.8 339.5 96 363.1 96 387.6C96 438.7 137.4 480.1 188.5 480.1C205 480.1 221.1 475.7 235.2 467.5C251 483.5 269.4 496.9 289.8 507C261.6 530.9 225.8 544.2 188.5 544.2C102.1 544.2 32 474.2 32 387.7C32 346.2 48.5 306.4 77.8 277.1L148.9 206C178.2 176.7 218 160.2 259.5 160.2C346.1 160.2 416 230.8 416 317.1C416 318.4 416 319.7 416 321C415.6 338.7 400.9 352.6 383.2 352.2C365.5 351.8 351.6 337.1 352 319.4C352 318.6 352 317.9 352 317.1C352 283.4 334 253.8 307.2 237.5z",transform:"matrix(1 0 0 1 -15 -15)"},drawopenpath:{width:70,height:70,path:"M33.21,85.65a7.31,7.31,0,0,1-2.59-.48c-8.16-3.11-9.27-19.8-9.88-41.3-.1-3.58-.19-6.68-.35-9-.15-2.1-.67-3.48-1.43-3.79-2.13-.88-7.91,2.32-12,5.86L3,32.38c1.87-1.64,11.55-9.66,18.27-6.9,2.13.87,4.75,3.14,5.17,9,.17,2.43.26,5.59.36,9.25a224.17,224.17,0,0,0,1.5,23.4c1.54,10.76,4,12.22,4.48,12.4.84.32,2.79-.46,5.76-3.59L43,80.07C41.53,81.57,37.68,85.64,33.21,85.65ZM74.81,69a11.34,11.34,0,0,0,6.09-6.72L87.26,44.5,74.72,32,56.9,38.35c-2.37.86-5.57,3.42-6.61,6L38.65,72.14l8.42,8.43ZM55,46.27a7.91,7.91,0,0,1,3.64-3.17l14.8-5.3,8,8L76.11,60.6l-.06.19a6.37,6.37,0,0,1-3,3.43L48.25,74.59,44.62,71Zm16.57,7.82A6.9,6.9,0,1,0,64.64,61,6.91,6.91,0,0,0,71.54,54.09Zm-4.05,0a2.85,2.85,0,1,1-2.85-2.85A2.86,2.86,0,0,1,67.49,54.09Zm-4.13,5.22L60.5,56.45,44.26,72.7l2.86,2.86ZM97.83,35.67,84.14,22l-8.57,8.57L89.26,44.24Zm-13.69-8,8,8-2.85,2.85-8-8Z",transform:"matrix(1 0 0 1 -15 -15)"},drawclosedpath:{width:90,height:90,path:"M88.41,21.12a26.56,26.56,0,0,0-36.18,0l-2.07,2-2.07-2a26.57,26.57,0,0,0-36.18,0,23.74,23.74,0,0,0,0,34.8L48,90.12a3.22,3.22,0,0,0,4.42,0l36-34.21a23.73,23.73,0,0,0,0-34.79ZM84,51.24,50.16,83.35,16.35,51.25a17.28,17.28,0,0,1,0-25.47,20,20,0,0,1,27.3,0l4.29,4.07a3.23,3.23,0,0,0,4.44,0l4.29-4.07a20,20,0,0,1,27.3,0,17.27,17.27,0,0,1,0,25.46ZM66.76,47.68h-33v6.91h33ZM53.35,35H46.44V68h6.91Z",transform:"matrix(1 0 0 1 -5 -5)"},lasso:{width:1031,height:1e3,path:"m1018 538c-36 207-290 336-568 286-277-48-473-256-436-463 10-57 36-108 76-151-13-66 11-137 68-183 34-28 75-41 114-42l-55-70 0 0c-2-1-3-2-4-3-10-14-8-34 5-45 14-11 34-8 45 4 1 1 2 3 2 5l0 0 113 140c16 11 31 24 45 40 4 3 6 7 8 11 48-3 100 0 151 9 278 48 473 255 436 462z m-624-379c-80 14-149 48-197 96 42 42 109 47 156 9 33-26 47-66 41-105z m-187-74c-19 16-33 37-39 60 50-32 109-55 174-68-42-25-95-24-135 8z m360 75c-34-7-69-9-102-8 8 62-16 128-68 170-73 59-175 54-244-5-9 20-16 40-20 61-28 159 121 317 333 354s407-60 434-217c28-159-121-318-333-355z",transform:"matrix(1 0 0 -1 0 850)"},selectbox:{width:1e3,height:1e3,path:"m0 850l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-285l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z",transform:"matrix(1 0 0 -1 0 850)"},drawline:{width:70,height:70,path:"M60.64,62.3a11.29,11.29,0,0,0,6.09-6.72l6.35-17.72L60.54,25.31l-17.82,6.4c-2.36.86-5.57,3.41-6.6,6L24.48,65.5l8.42,8.42ZM40.79,39.63a7.89,7.89,0,0,1,3.65-3.17l14.79-5.31,8,8L61.94,54l-.06.19a6.44,6.44,0,0,1-3,3.43L34.07,68l-3.62-3.63Zm16.57,7.81a6.9,6.9,0,1,0-6.89,6.9A6.9,6.9,0,0,0,57.36,47.44Zm-4,0a2.86,2.86,0,1,1-2.85-2.85A2.86,2.86,0,0,1,53.32,47.44Zm-4.13,5.22L46.33,49.8,30.08,66.05l2.86,2.86ZM83.65,29,70,15.34,61.4,23.9,75.09,37.59ZM70,21.06l8,8-2.84,2.85-8-8ZM87,80.49H10.67V87H87Z",transform:"matrix(1 0 0 1 -15 -15)"},drawrect:{width:80,height:80,path:"M78,22V79H21V22H78m9-9H12V88H87V13ZM68,46.22H31V54H68ZM53,32H45.22V69H53Z",transform:"matrix(1 0 0 1 -10 -10)"},drawcircle:{width:80,height:80,path:"M50,84.72C26.84,84.72,8,69.28,8,50.3S26.84,15.87,50,15.87,92,31.31,92,50.3,73.16,84.72,50,84.72Zm0-60.59c-18.6,0-33.74,11.74-33.74,26.17S31.4,76.46,50,76.46,83.74,64.72,83.74,50.3,68.6,24.13,50,24.13Zm17.15,22h-34v7.11h34Zm-13.8-13H46.24v34h7.11Z",transform:"matrix(1 0 0 1 -10 -10)"},eraseshape:{width:80,height:80,path:"M82.77,78H31.85L6,49.57,31.85,21.14H82.77a8.72,8.72,0,0,1,8.65,8.77V69.24A8.72,8.72,0,0,1,82.77,78ZM35.46,69.84H82.77a.57.57,0,0,0,.49-.6V29.91a.57.57,0,0,0-.49-.61H35.46L17,49.57Zm32.68-34.7-24,24,5,5,24-24Zm-19,.53-5,5,24,24,5-5Z",transform:"matrix(1 0 0 1 -10 -10)"},spikeline:{width:1e3,height:1e3,path:"M512 409c0-57-46-104-103-104-57 0-104 47-104 104 0 57 47 103 104 103 57 0 103-46 103-103z m-327-39l92 0 0 92-92 0z m-185 0l92 0 0 92-92 0z m370-186l92 0 0 93-92 0z m0-184l92 0 0 92-92 0z",transform:"matrix(1.5 0 0 -1.5 0 850)"},pencil:{width:1792,height:1792,path:"M491 1536l91-91-235-235-91 91v107h128v128h107zm523-928q0-22-22-22-10 0-17 7l-542 542q-7 7-7 17 0 22 22 22 10 0 17-7l542-542q7-7 7-17zm-54-192l416 416-832 832h-416v-416zm683 96q0 53-37 90l-166 166-416-416 166-165q36-38 90-38 53 0 91 38l235 234q37 39 37 91z",transform:"matrix(1 0 0 1 0 1)"},newplotlylogo:{name:"newplotlylogo",svg:[""," plotly-logomark"," "," "," "," "," "," "," "," "," "," "," "," "," ",""].join("")}}});var u2={};Ht(u2,{CIRCLE_SIDES:()=>ile,SQRT2:()=>vle,cos45:()=>fle,i000:()=>ole,i090:()=>lle,i180:()=>sle,i270:()=>ule,sin45:()=>cle});var ile,ole,lle,sle,ule,fle,cle,vle,f2=Ut(()=>{"use strict";ile=32,ole=0,lle=8,sle=16,ule=24,fle=Math.cos(Math.PI/4),cle=Math.sin(Math.PI/4),vle=Math.sqrt(2)});var c2=xe((a_e,VE)=>{"use strict";var hle=tr().strTranslate;function HE(e,r){switch(e.type){case"log":return e.p2d(r);case"date":return e.p2r(r,0,e.calendar);default:return e.p2r(r)}}function dle(e,r){switch(e.type){case"log":return e.d2p(r);case"date":return e.r2p(r,0,e.calendar);default:return e.r2p(r)}}function ple(e){var r=e._id.charAt(0)==="y"?1:0;return function(t){return HE(e,t[r])}}function gle(e){return hle(e.xaxis._offset,e.yaxis._offset)}VE.exports={p2r:HE,r2p:dle,axValue:ple,getTransform:gle}});var Fl=xe(Ho=>{"use strict";var yle=fm(),XE=(f2(),or(u2)),hu=XE.CIRCLE_SIDES,A5=XE.SQRT2,WE=c2(),GE=WE.p2r,YE=WE.r2p,mle=[0,3,4,5,6,1,2],ble=[0,3,4,1,2];Ho.writePaths=function(e){var r=e.length;if(!r)return"M0,0Z";for(var t="",n=0;n0&&u{"use strict";var ZE=mn(),jE=vu(),xle=jE.drawMode,_le=jE.openMode,du=(f2(),or(u2)),JE=du.i000,$E=du.i090,KE=du.i180,QE=du.i270,wle=du.cos45,Mle=du.sin45,eL=c2(),h2=eL.p2r,Pl=eL.r2p,Tle=xl(),Ale=Tle.clearOutline,d2=Fl(),kle=d2.readPaths,Sle=d2.writePaths,Cle=d2.ellipseOver,Ele=d2.fixDatesForPaths;function Lle(e,r){if(e.length){var t=e[0][0];if(t){var n=r.gd,a=r.isActiveShape,o=r.dragmode,i=(n.layout||{}).shapes||[];if(!xle(o)&&a!==void 0){var l=n._fullLayout._activeShapeIndex;if(l{"use strict";var Dle=vu(),Rle=Dle.selectMode,Fle=xl(),Ple=Fle.clearOutline,k5=Fl(),Ile=k5.readPaths,zle=k5.writePaths,Nle=k5.fixDatesForPaths;nL.exports=function(r,t){if(r.length){var n=r[0][0];if(n){var a=n.getAttribute("d"),o=t.gd,i=o._fullLayout.newselection,l=t.plotinfo,u=l.xaxis,s=l.yaxis,f=t.isActiveSelection,c=t.dragmode,g=(o.layout||{}).selections||[];if(!Rle(c)&&f!==void 0){var x=o._fullLayout._activeSelectionIndex;if(xHle,paramIsX:()=>Ole,paramIsY:()=>Ule,paramRE:()=>Ble,segmentRE:()=>qle});var qle,Ble,Ole,Ule,Hle,hc=Ut(()=>{"use strict";qle=/[MLHVQCTSZ][^MLHVQCTSZ]*/g,Ble=/[^\s,]+/g,Ole={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:{}},Ule={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:3},Z:{}},Hle={M:2,L:2,H:1,V:1,Q:4,C:6,T:2,S:4,Z:0}});var zl=xe(Pn=>{"use strict";var bo=(hc(),or(vc)),aL=tr(),Il=Vt();Pn.rangeToShapePosition=function(e){return e.type==="log"?e.r2d:function(r){return r}};Pn.shapePositionToRange=function(e){return e.type==="log"?e.d2r:function(r){return r}};Pn.decodeDate=function(e){return function(r){return r.replace&&(r=r.replace("_"," ")),e(r)}};Pn.encodeDate=function(e){return function(r){return e(r).replace(" ","_")}};Pn.extractPathCoords=function(e,r,t){var n=[],a=e.match(bo.segmentRE);return a.forEach(function(o){var i=r[o.charAt(0)].drawn;if(i!==void 0){var l=o.slice(1).match(bo.paramRE);if(!(!l||l.length{let l=i.charAt(0),u=a[l].drawn!==void 0;return o+(u?1:0)},0)};Pn.getDataToPixel=function(e,r,t,n,a){var o=e._fullLayout._size,i;if(r)if(a==="domain")i=function(u){return r._length*(n?1-u:u)+r._offset};else{var l=Pn.shapePositionToRange(r);i=function(u){var s=mo(r,t);return r._offset+r.r2p(l(u,!0))+s},r.type==="date"&&(i=Pn.decodeDate(i))}else n?i=function(u){return o.t+o.h*(1-u)}:i=function(u){return o.l+o.w*u};return i};Pn.getPixelToData=function(e,r,t,n){var a=e._fullLayout._size,o;if(r)if(n==="domain")o=function(l){var u=(l-r._offset)/r._length;return t?1-u:u};else{var i=Pn.rangeToShapePosition(r);o=function(l){return i(r.p2r(l-r._offset))}}else t?o=function(l){return 1-(l-a.t)/a.h}:o=function(l){return(l-a.l)/a.w};return o};Pn.roundPositionForSharpStrokeRendering=function(e,r){var t=Math.round(r%2)===1,n=Math.round(e);return t?n+.5:n};Pn.makeShapesOptionsAndPlotinfo=function(e,r){var t=e._fullLayout.shapes[r]||{},n=e._fullLayout._plots[t.xref+t.yref],a=!!n;return a?n._hadPlotinfo=!0:(n={},t.xref&&t.xref!=="paper"&&(n.xaxis=e._fullLayout[t.xref+"axis"]),t.yref&&t.yref!=="paper"&&(n.yaxis=e._fullLayout[t.yref+"axis"])),n.xsizemode=t.xsizemode,n.ysizemode=t.ysizemode,n.xanchor=t.xanchor,n.yanchor=t.yanchor,{options:t,plotinfo:n}};Pn.makeSelectionsOptionsAndPlotinfo=function(e,r){var t=e._fullLayout.selections[r]||{},n=e._fullLayout._plots[t.xref+t.yref],a=!!n;return a?n._hadPlotinfo=!0:(n={},t.xref&&(n.xaxis=e._fullLayout[t.xref+"axis"]),t.yref&&(n.yaxis=e._fullLayout[t.yref+"axis"])),{options:t,plotinfo:n}};Pn.getPathString=function(e,r){let t=r.type,n=Il.getRefType(r.xref),a=Il.getRefType(r.yref),o=e._fullLayout._size;var i,l,u,s,f,c,g,x,h,_,T,m;function k(A,p,D,E){var R;if(A)if(p==="domain")E?R=function(F){return A._offset+A._length*(1-F)}:R=function(F){return A._offset+A._length*F};else{let F=Pn.shapePositionToRange(A);R=function(z){return A._offset+A.r2p(F(z,!0))},D==="path"&&A.type==="date"&&(R=Pn.decodeDate(R))}else E?R=function(F){return o.t+o.h*(1-F)}:R=function(F){return o.l+o.w*F};return R}if(n==="array"?(g=[],i=r.xref.map(function(A){return Il.getFromId(e,A)}),g=r.xref.map(function(A,p){return k(i[p],Il.getRefType(A),t,!1)})):(i=Il.getFromId(e,r.xref),g=k(i,n,t,!1)),a==="array"?(x=[],l=r.yref.map(function(A){return Il.getFromId(e,A)}),x=r.yref.map(function(A,p){return k(l[p],Il.getRefType(A),t,!0)})):(l=Il.getFromId(e,r.yref),x=k(l,a,t,!0)),t==="path")return Vle(r,g,x);if(n==="array")u=mo(i[0],r.x0shift),s=mo(i[1],r.x1shift),h=g[0](r.x0)+u,_=g[1](r.x1)+s;else if(u=mo(i,r.x0shift),s=mo(i,r.x1shift),r.xsizemode==="pixel"){let A=g(r.xanchor);h=A+r.x0+u,_=A+r.x1+s}else h=g(r.x0)+u,_=g(r.x1)+s;if(a==="array")f=mo(l[0],r.y0shift),c=mo(l[1],r.y1shift),T=x[0](r.y0)+f,m=x[1](r.y1)+c;else if(f=mo(l,r.y0shift),c=mo(l,r.y1shift),r.ysizemode==="pixel"){let A=x(r.yanchor);T=A-r.y0+f,m=A-r.y1+c}else T=x(r.y0)+f,m=x(r.y1)+c;if(t==="line")return"M"+h+","+T+"L"+_+","+m;if(t==="rect")return"M"+h+","+T+"H"+_+"V"+m+"H"+h+"Z";var S=(h+_)/2,b=(T+m)/2,M=Math.abs(S-h),d=Math.abs(b-T),w="A"+M+","+d,y=S+M+","+b,v=S+","+(b-d);return"M"+y+w+" 0 1,1 "+v+w+" 0 0,1 "+y+"Z"};function Vle(e,r,t){let n=e.path,a=e.xsizemode,o=e.ysizemode,i=e.xanchor,l=e.yanchor,u=Array.isArray(e.xref),s=Array.isArray(e.yref);var f=0,c=0;return n.replace(bo.segmentRE,function(g){var x=0,h=g.charAt(0),_=bo.paramIsX[h],T=bo.paramIsY[h],m=bo.numParams[h];let k=_.drawn!==void 0,S=T.drawn!==void 0,b=u?r[f]:r,M=s?t[c]:t;var d=g.slice(1).replace(bo.paramRE,function(w){return _[x]?a==="pixel"?w=b(i)+Number(w):w=b(w):T[x]&&(o==="pixel"?w=M(l)-Number(w):w=M(w)),x++,x>m&&(w="X"),w});return x>m&&(d=d.replace(/[\s,]*X.*/,""),aL.log("Ignoring extra params in segment "+g)),k&&f++,S&&c++,h+d})}Pn.getPixelShift=mo;function mo(e,r){r=r||0;var t=0;return r&&e&&(e.type==="category"||e.type==="multicategory")&&(t=(e.r2p(1)-e.r2p(0))*r),t}});var C5=xe((u_e,lL)=>{"use strict";var Gle=tr(),xo=Vt(),iL=Qn(),oL=At(),Yle=Fl().readPaths,Vs=zl(),Xle=Vs.getPathString,dc=Ih(),Wle=(Kn(),or($n)).FROM_TL;lL.exports=function(r,t,n,a){if(a.selectAll(".shape-label").remove(),!!(n.label.text||n.label.texttemplate)){var o;if(n.label.texttemplate){var i={};if(n.type!=="path"){var l=xo.getFromId(r,n.xref),u=xo.getFromId(r,n.yref);let O=Array.isArray(n.xref),G=Array.isArray(n.yref);for(var s in dc){var f=typeof dc[s]=="function",c=!O||dc.simpleXVariables.includes(s),g=!G||dc.simpleYVariables.includes(s);if(f&&c&&g){var x=dc[s](n,l,u);x!==void 0&&(i[s]=x)}}}o=Gle.texttemplateStringForShapes({data:[i],fallback:n.label.texttemplatefallback,locale:r._fullLayout._d3locale,template:n.label.texttemplate})}else o=n.label.text;var h={"data-index":t},_=n.label.font,T={"data-notex":1},m=a.append("g").attr(h).classed("shape-label",!0),k=m.append("text").attr(T).classed("shape-label-text",!0).text(o),S,b,M,d;if(n.path){var w=Xle(r,n),y=Yle(w,r);S=1/0,M=1/0,b=-1/0,d=-1/0;for(var v=0;vVs.getDataToPixel(r,ie,ee,!1,fe)(ue),te=(ue,ee,ie,fe)=>Vs.getDataToPixel(r,ie,ee,!0,fe)(ue);if(n.xsizemode==="pixel"){let ue=Q(n.xanchor,void 0,J,Z),ee=Vs.getPixelShift(J,n.x0shift),ie=Vs.getPixelShift(J,n.x1shift);S=ue+n.x0+ee,b=ue+n.x1+ie}else S=Q(n.x0,n.x0shift,J,Z),b=Q(n.x1,n.x1shift,j,re);if(n.ysizemode==="pixel"){let ue=te(n.yanchor,void 0,V,$),ee=Vs.getPixelShift(V,n.y0shift),ie=Vs.getPixelShift(V,n.y1shift);M=ue-n.y0+ee,d=ue-n.y1+ie}else M=te(n.y0,n.y0shift,V,$),d=te(n.y1,n.y1shift,q,ae)}var F=n.label.textangle;F==="auto"&&(n.type==="line"?F=Zle(S,M,b,d):F=0),k.call(function(O){return O.call(oL.font,_).attr({}),iL.convertToTspans(O,r),O});var z=oL.bBox(k.node()),P=Jle(S,M,b,d,n,F,z),L=P.textx,I=P.texty,B=P.xanchor;k.attr({"text-anchor":{left:"start",center:"middle",right:"end"}[B],y:I,x:L,transform:"rotate("+F+","+L+","+I+")"}).call(iL.positionText,L,I)}};function Zle(e,r,t,n){var a,o;return o=Math.abs(t-e),t>=e?a=r-n:a=n-r,-180/Math.PI*Math.atan2(a,o)}function Jle(e,r,t,n,a,o,i){var l=a.label.textposition,u=a.label.textangle,s=a.label.padding,f=a.type,c=Math.PI/180*o,g=Math.sin(c),x=Math.cos(c),h=a.label.xanchor,_=a.label.yanchor,T,m,k,S;if(f==="line"){l==="start"?(T=e,m=r):l==="end"?(T=t,m=n):(T=(e+t)/2,m=(r+n)/2),h==="auto"&&(l==="start"?u==="auto"?t>e?h="left":te?h="right":te?h="right":te?h="left":t{"use strict";var $le=tr(),Kle=$le.strTranslate,sL=Pi(),cL=vu(),Qle=cL.drawMode,vL=cL.selectMode,hL=Cr(),uL=Zr(),y2=(f2(),or(u2)),jle=y2.i000,ese=y2.i090,rse=y2.i180,tse=y2.i270,nse=xl(),dL=nse.clearOutlineControllers,L5=Fl(),g2=L5.pointsOnRectangle,E5=L5.pointsOnEllipse,ase=L5.writePaths,ise=p2().newShapes,ose=p2().createShapeObj,lse=S5(),sse=C5();pL.exports=function e(r,t,n,a){a||(a=0);var o=n.gd;function i(){e(r,t,n,a++),(E5(r[0])||n.hasText)&&l({redrawing:!0})}function l(P){var L={};n.isActiveShape!==void 0&&(n.isActiveShape=!1,L=ise(t,n)),n.isActiveSelection!==void 0&&(n.isActiveSelection=!1,L=lse(t,n),o._fullLayout._reselect=!0),Object.keys(L).length&&hL.call((P||{}).redrawing?"relayout":"_guiRelayout",o,L)}var u=o._fullLayout,s=u._zoomlayer,f=n.dragmode,c=Qle(f),g=vL(f);(c||g)&&(o._fullLayout._outlining=!0),dL(o),t.attr("d",ase(r));var x,h,_,T,m;if(!a&&(n.isActiveShape||n.isActiveSelection)){m=use([],r);var k=s.append("g").attr("class","outline-controllers");A(k),z()}if(c&&n.hasText){var S=s.select(".label-temp"),b=ose(t,n,n.dragmode);sse(o,"label-temp",b,S)}function M(P){_=+P.srcElement.getAttribute("data-i"),T=+P.srcElement.getAttribute("data-j"),x[_][T].moveFn=d}function d(P,L){if(r.length){var I=m[_][T][1],B=m[_][T][2],O=r[_],G=O.length;if(g2(O)){var J=P,j=L;if(n.isActiveSelection){var V=fL(O,T);V[1]===O[T][1]?j=0:J=0}for(var q=0;q1&&!(P.length===2&&P[1][0]==="Z")&&(T===0&&(P[0][0]="M"),r[_]=P,i(),l())}}function v(P,L){if(P===2){_=+L.srcElement.getAttribute("data-i"),T=+L.srcElement.getAttribute("data-j");var I=r[_];!g2(I)&&!E5(I)&&y()}}function A(P){x=[];for(var L=0;L{"use strict";var cse=lt(),_L=Cr(),R5=tr(),Gs=Vt(),vse=Fl().readPaths,hse=m2(),x2=C5(),wL=xl().clearOutlineControllers,D5=Zr(),_2=At(),dse=Tt().arrayEditor,gL=Pi(),yL=yo(),mL=Dl(),Ys=(hc(),or(vc)),Ra=zl(),F5=Ra.getPathString;AL.exports={draw:P5,drawOne:ML,eraseActiveShape:bse,drawLabel:x2};function P5(e){var r=e._fullLayout;r._shapeUpperLayer.selectAll("path").remove(),r._shapeLowerLayer.selectAll("path").remove(),r._shapeUpperLayer.selectAll("text").remove(),r._shapeLowerLayer.selectAll("text").remove();for(var t in r._plots){var n=r._plots[t].shapelayer;n&&(n.selectAll("path").remove(),n.selectAll("text").remove())}for(var a=0;a{if(!e._dragging&&e._fullLayout.hoveranywhere){let i=a(o);i&&yL.hover(e,i,t.id)}}),n.addEventListener("click",o=>{if(!e._dragged&&e._fullLayout.clickanywhere){let i=a(o);i&&yL.click(e,i,t.id)}})}function TL(e,r,t){let n=t.xref,a=t.yref;if(Array.isArray(n)||Array.isArray(a)){let o="clip"+r._fullLayout._uid+"shape"+t._index,i=gse(r,n,a);R5.ensureSingleById(r._fullLayout._clips,"clipPath",o,function(l){l.append("rect")}).select("rect").attr(i),_2.setClipUrl(e,o,r)}else{let o=(n+a).replace(/paper/g,"").replace(/[xyz][0-9]* *domain/g,"");_2.setClipUrl(e,o?"clip"+r._fullLayout._uid+o:null,r)}}function gse(e,r,t){let n=e._fullLayout._size;function a(l,u){let s=(Array.isArray(l)?l:[l]).map(g=>Gs.getFromId(e,g)).filter(Boolean);if(!s.length)return u?[n.t,n.t+n.h]:[n.l,n.l+n.w];let f=s.map(function(g){return g._offset}),c=s.map(function(g){return g._offset+g._length});return[Math.min(...f),Math.max(...c)]}let o=a(r,!1),i=a(t,!0);return{x:o[0],y:i[0],width:o[1]-o[0],height:i[1]-i[0]}}function yse(e,r,t,n,a,o){var i=10,l=10,u=t.xsizemode==="pixel",s=t.ysizemode==="pixel",f=t.type==="line",c=t.type==="path",g=o.modifyItem,x,h,_,T,m,k,S,b,M,d,w,y,v,A,p,D=cse.select(r.node().parentNode),E=Gs.getFromId(e,t.xref),R=Gs.getRefType(t.xref),F=Gs.getFromId(e,t.yref),z=Gs.getRefType(t.yref),P=t.x0shift,L=t.x1shift,I=t.y0shift,B=t.y1shift,O=function(ke,ge){var Ee=Ra.getDataToPixel(e,E,ge,!1,R);return Ee(ke)},G=function(ke,ge){var Ee=Ra.getDataToPixel(e,F,ge,!0,z);return Ee(ke)},J=Ra.getPixelToData(e,E,!1,R),j=Ra.getPixelToData(e,F,!0,z),V=re(),q={element:V.node(),gd:e,prepFn:Q,doneFn:te,clickFn:ue},Z;gL.init(q),V.node().onmousemove=ae;function re(){return f?$():r}function $(){var ke=10,ge=Math.max(t.line.width,ke),Ee=a.append("g").attr("data-index",n).attr("drag-helper",!0);Ee.append("path").attr("d",r.attr("d")).style({cursor:"move","stroke-width":ge,"stroke-opacity":"0"});var Le={"fill-opacity":"0"},se=Math.max(ge/2,ke);return Ee.append("circle").attr({"data-line-point":"start-point",cx:u?O(t.xanchor)+t.x0:O(t.x0,P),cy:s?G(t.yanchor)-t.y0:G(t.y0,I),r:se}).style(Le).classed("cursor-grab",!0),Ee.append("circle").attr({"data-line-point":"end-point",cx:u?O(t.xanchor)+t.x1:O(t.x1,L),cy:s?G(t.yanchor)-t.y1:G(t.y1,B),r:se}).style(Le).classed("cursor-grab",!0),Ee}function ae(ke){if(b2(e)){Z=null;return}if(f)ke.target.tagName==="path"?Z="move":Z=ke.target.attributes["data-line-point"].value==="start-point"?"resize-over-start-point":"resize-over-end-point";else{var ge=q.element.getBoundingClientRect(),Ee=ge.right-ge.left,Le=ge.bottom-ge.top,se=ke.clientX-ge.left,X=ke.clientY-ge.top,K=!c&&Ee>i&&Le>l&&!ke.shiftKey?gL.getCursor(se/Ee,1-X/Le):"move";mL(r,K),Z=K.split("-")[0]}}function Q(ke){b2(e)||(u&&(m=O(t.xanchor)),s&&(k=G(t.yanchor)),t.type==="path"?p=t.path:(x=u?t.x0:O(t.x0),h=s?t.y0:G(t.y0),_=u?t.x1:O(t.x1),T=s?t.y1:G(t.y1)),x<_?(M=x,v="x0",d=_,A="x1"):(M=_,v="x1",d=x,A="x0"),!s&&hT?(S=h,w="y0",b=T,y="y1"):(S=T,w="y1",b=h,y="y0"),ae(ke),fe(a,t),Te(r,t,e),q.moveFn=Z==="move"?ee:ie,q.altKey=ke.altKey)}function te(){b2(e)||(mL(r),we(a),TL(r,e,t),_L.call("_guiRelayout",e,o.getUpdateObj()))}function ue(){b2(e)||we(a)}function ee(ke,ge){if(t.type==="path"){var Ee=function(X){return X},Le=Ee,se=Ee;u?g("xanchor",t.xanchor=J(m+ke)):(Le=function(K){return J(O(K)+ke)},E&&E.type==="date"&&(Le=Ra.encodeDate(Le))),s?g("yanchor",t.yanchor=j(k+ge)):(se=function(K){return j(G(K)+ge)},F&&F.type==="date"&&(se=Ra.encodeDate(se))),g("path",t.path=bL(p,Le,se))}else u?g("xanchor",t.xanchor=J(m+ke)):(g("x0",t.x0=J(x+ke)),g("x1",t.x1=J(_+ke))),s?g("yanchor",t.yanchor=j(k+ge)):(g("y0",t.y0=j(h+ge)),g("y1",t.y1=j(T+ge)));r.attr("d",F5(e,t)),fe(a,t),x2(e,n,t,D)}function ie(ke,ge){if(c){var Ee=function(Pe){return Pe},Le=Ee,se=Ee;u?g("xanchor",t.xanchor=J(m+ke)):(Le=function(Ye){return J(O(Ye)+ke)},E&&E.type==="date"&&(Le=Ra.encodeDate(Le))),s?g("yanchor",t.yanchor=j(k+ge)):(se=function(Ye){return j(G(Ye)+ge)},F&&F.type==="date"&&(se=Ra.encodeDate(se))),g("path",t.path=bL(p,Le,se))}else if(f){if(Z==="resize-over-start-point"){var X=x+ke,K=s?h-ge:h+ge;g("x0",t.x0=u?X:J(X)),g("y0",t.y0=s?K:j(K))}else if(Z==="resize-over-end-point"){var ye=_+ke,oe=s?T-ge:T+ge;g("x1",t.x1=u?ye:J(ye)),g("y1",t.y1=s?oe:j(oe))}}else{var de=function(Pe){return Z.indexOf(Pe)!==-1},pe=de("n"),me=de("s"),Se=de("w"),ve=de("e"),he=pe?S+ge:S,be=me?b+ge:b,Ae=Se?M+ke:M,Re=ve?d+ke:d;s&&(pe&&(he=S-ge),me&&(be=b-ge)),(!s&&be-he>l||s&&he-be>l)&&(g(w,t[w]=s?he:j(he)),g(y,t[y]=s?be:j(be))),Re-Ae>i&&(g(v,t[v]=u?Ae:J(Ae)),g(A,t[A]=u?Re:J(Re)))}r.attr("d",F5(e,t)),fe(a,t),x2(e,n,t,D)}function fe(ke,ge){(u||s)&&Ee();function Ee(){var Le=ge.type!=="path",se=ke.selectAll(".visual-cue").data([0]),X=1;se.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":X}).classed("visual-cue",!0);var K=O(u?ge.xanchor:R5.midRange(Le?[ge.x0,ge.x1]:Ra.extractPathCoords(ge.path,Ys.paramIsX))),ye=G(s?ge.yanchor:R5.midRange(Le?[ge.y0,ge.y1]:Ra.extractPathCoords(ge.path,Ys.paramIsY)));if(K=Ra.roundPositionForSharpStrokeRendering(K,X),ye=Ra.roundPositionForSharpStrokeRendering(ye,X),u&&s){var oe="M"+(K-1-X)+","+(ye-1-X)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";se.attr("d",oe)}else if(u){var de="M"+(K-1-X)+","+(ye-9-X)+"v18 h2 v-18 Z";se.attr("d",de)}else{var pe="M"+(K-9-X)+","+(ye-1-X)+"h18 v2 h-18 Z";se.attr("d",pe)}}}function we(ke){ke.selectAll(".visual-cue").remove()}function Te(ke,ge,Ee){var Le=ge.xref,se=ge.yref,X=Gs.getFromId(Ee,Le),K=Gs.getFromId(Ee,se),ye="";Le!=="paper"&&!X.autorange&&(ye+=Le),se!=="paper"&&!K.autorange&&(ye+=se),_2.setClipUrl(ke,ye?"clip"+Ee._fullLayout._uid+ye:null,Ee)}}function bL(e,r,t){return e.replace(Ys.segmentRE,function(n){var a=0,o=n.charAt(0),i=Ys.paramIsX[o],l=Ys.paramIsY[o],u=Ys.numParams[o],s=n.slice(1).replace(Ys.paramRE,function(f){return a>=u||(i[a]?f=r(f):l[a]&&(f=t(f)),a++),f});return o+s})}function mse(e,r){if(w2(e)){var t=r.node(),n=+t.getAttribute("data-index");if(n>=0){if(n===e._fullLayout._activeShapeIndex){xL(e);return}e._fullLayout._activeShapeIndex=n,e._fullLayout._deactivateShape=xL,P5(e)}}}function xL(e){if(w2(e)){var r=e._fullLayout._activeShapeIndex;r>=0&&(wL(e),delete e._fullLayout._activeShapeIndex,P5(e))}}function bse(e){if(w2(e)){wL(e);var r=e._fullLayout._activeShapeIndex,t=(e.layout||{}).shapes||[];if(r{"use strict";var pu=tr()._,xse=function(e){return{DIALOG_TITLE:pu(e,"Share chart"),DIALOG_MESSAGE_CLOUD:pu(e,"This chart will be uploaded to {Plotly Cloud} to create a sharing link. Only you can see it until you change its visibility."),DIALOG_MESSAGE_CLOUD_ACCOUNT:pu(e,"If you don't have a Plotly Cloud account yet, you'll have a chance to create one."),DIALOG_MESSAGE_OTHER:pu(e,"This chart will be sent to {serverUrl}."),DIALOG_CANCEL:pu(e,"Cancel"),DIALOG_CONFIRM:pu(e,"Share")}};kL.exports=xse});var LL=xe((h_e,EL)=>{"use strict";var CL=lt(),{dfltConfig:_se}=ol(),wse=SL(),Mse=(e,r,t,n,a)=>{let o=wse(e),i=r.append("div").classed("plotly-cloud-dialog-box",!0);if(i.append("div").classed("plotly-cloud-dialog-title",!0).text(o.DIALOG_TITLE),t===_se.plotlyServerURL){let u=i.append("div").classed("plotly-cloud-dialog-message",!0),s=new URL(t).origin,f=o.DIALOG_MESSAGE_CLOUD.split(/(\{|\})/),c=f[0],g=f[2],x=f[4];u.append("span").text(c),u.append("a").classed("plotly-cloud-dialog-message--hostname",!0).attr("href",s).attr("target","_blank").text(g),u.append("span").text(x),u.append("div").classed("plotly-cloud-dialog-message--account",!0).text(o.DIALOG_MESSAGE_CLOUD_ACCOUNT)}else{let u=new URL(t),s=u.hostname,f=u.origin,c=o.DIALOG_MESSAGE_OTHER.split(/(\{|\})/),g=c[0],x=c[4],h=i.append("div").classed("plotly-cloud-dialog-message",!0);h.append("span").text(g),h.append("a").classed("plotly-cloud-dialog-message--hostname",!0).attr("href",f).attr("target","_blank").text(s),h.append("span").text(x)}let l=i.append("div").classed("plotly-cloud-dialog-buttons",!0);l.append("button").classed("plotly-cloud-dialog-btn",!0).classed("plotly-cloud-dialog-btn--cancel",!0).text(o.DIALOG_CANCEL).on("click",a),l.append("button").classed("plotly-cloud-dialog-btn",!0).classed("plotly-cloud-dialog-btn--confirm",!0).text(o.DIALOG_CONFIRM).on("click",n)},Tse=(e,r,t)=>{let n=CL.select(e._fullLayout._paperdiv.node());n.selectAll(".plotly-cloud-dialog").remove();let a=n.append("div").classed("plotly-cloud-dialog",!0),o=()=>{a.remove(),document.removeEventListener("keydown",i)},i=l=>{(l.key==="Escape"||l.keyCode===27)&&o()};document.addEventListener("keydown",i),a.on("click",()=>{CL.event.target===a.node()&&o()}),Mse(e,a,r,()=>{o(),t()},o)};EL.exports=Tse});var N5=xe((d_e,NL)=>{"use strict";var Ga=Cr(),Ase=Sn(),RL=mn(),ht=s2(),kse=M2().eraseActiveShape,Sse=LL(),gu=tr(),rt=gu._,ct={};NL.exports=ct;ct.toImage={name:"toImage",title:function(e){var r=e._context.toImageButtonOptions||{},t=r.format||"png";return t==="png"?rt(e,"Download plot as a PNG"):rt(e,"Download plot")},icon:ht.camera,click:function(e){var r=e._context.toImageButtonOptions,t={format:r.format||"png"};gu.notifier(rt(e,"Preparing image - this may take a few seconds"),"long",e),["filename","width","height","scale"].forEach(function(n){n in r&&(t[n]=r[n])}),Ga.call("downloadImage",e,t).then(function(n){gu.notifier(rt(e,"Image download succeeded")+" - "+n,"long",e)}).catch(function(){gu.notifier(rt(e,"Sorry, there was a problem downloading your image!"),"long",e)})}};ct.downloadJson={name:"downloadJson",title:function(e){return rt(e,"Download plot as JSON")},icon:ht.curlybraces,click:function(e){Ga.call("downloadImage",e,{format:"full-json"}).then(function(r){gu.notifier(rt(e,"JSON download succeeded")+" - "+r,"long",e)}).catch(function(){gu.notifier(rt(e,"Sorry, there was a problem downloading your JSON file!"),"long",e)})}};ct.sendChartToCloud={name:"sendChartToCloud",title:function(e){return rt(e,"Share chart...")},icon:ht.cloudupload,click:function(e){var r=(window.PLOTLYENV||{}).BASE_URL||e._context.plotlyServerURL;if(!r){console.error("No destination URL provided (plotlyServerURL is empty)");return}var t;try{t=new URL(r)}catch(a){console.error("Invalid plotlyServerURL: "+r);return}let n=["http:","https:"];if(!n.includes(t.protocol)){console.error(`Invalid protocol '${t.protocol}' in plotlyServerURL '${r}'. Must be one of: ${n.join(", ")}`);return}Sse(e,r,function(){Ase.sendDataToCloud(e,r)})}};ct.zoom2d={name:"zoom2d",_cat:"zoom",title:function(e){return rt(e,"Zoom")},attr:"dragmode",val:"zoom",icon:ht.zoombox,click:da};ct.pan2d={name:"pan2d",_cat:"pan",title:function(e){return rt(e,"Pan")},attr:"dragmode",val:"pan",icon:ht.pan,click:da};ct.select2d={name:"select2d",_cat:"select",title:function(e){return rt(e,"Box Select")},attr:"dragmode",val:"select",icon:ht.selectbox,click:da};ct.lasso2d={name:"lasso2d",_cat:"lasso",title:function(e){return rt(e,"Lasso Select")},attr:"dragmode",val:"lasso",icon:ht.lasso,click:da};ct.drawclosedpath={name:"drawclosedpath",title:function(e){return rt(e,"Draw closed freeform")},attr:"dragmode",val:"drawclosedpath",icon:ht.drawclosedpath,click:da};ct.drawopenpath={name:"drawopenpath",title:function(e){return rt(e,"Draw open freeform")},attr:"dragmode",val:"drawopenpath",icon:ht.drawopenpath,click:da};ct.drawline={name:"drawline",title:function(e){return rt(e,"Draw line")},attr:"dragmode",val:"drawline",icon:ht.drawline,click:da};ct.drawrect={name:"drawrect",title:function(e){return rt(e,"Draw rectangle")},attr:"dragmode",val:"drawrect",icon:ht.drawrect,click:da};ct.drawcircle={name:"drawcircle",title:function(e){return rt(e,"Draw circle")},attr:"dragmode",val:"drawcircle",icon:ht.drawcircle,click:da};ct.eraseshape={name:"eraseshape",title:function(e){return rt(e,"Erase active shape")},icon:ht.eraseshape,click:kse};ct.zoomIn2d={name:"zoomIn2d",_cat:"zoomin",title:function(e){return rt(e,"Zoom in")},attr:"zoom",val:"in",icon:ht.zoom_plus,click:da};ct.zoomOut2d={name:"zoomOut2d",_cat:"zoomout",title:function(e){return rt(e,"Zoom out")},attr:"zoom",val:"out",icon:ht.zoom_minus,click:da};ct.autoScale2d={name:"autoScale2d",_cat:"autoscale",title:function(e){return rt(e,"Autoscale")},attr:"zoom",val:"auto",icon:ht.autoscale,click:da};ct.resetScale2d={name:"resetScale2d",_cat:"resetscale",title:function(e){return rt(e,"Reset axes")},attr:"zoom",val:"reset",icon:ht.home,click:da};ct.hoverClosestCartesian={name:"hoverClosestCartesian",_cat:"hoverclosest",title:function(e){return rt(e,"Show closest data on hover")},attr:"hovermode",val:"closest",icon:ht.tooltip_basic,gravity:"ne",click:da};ct.hoverCompareCartesian={name:"hoverCompareCartesian",_cat:"hoverCompare",title:function(e){return rt(e,"Compare data on hover")},attr:"hovermode",val:function(e){return e._fullLayout._isHoriz?"y":"x"},icon:ht.tooltip_compare,gravity:"ne",click:da};function da(e,r){var t=r.currentTarget,n=t.getAttribute("data-attr"),a=t.getAttribute("data-val")||!0,o=e._fullLayout,i={},l=RL.list(e,null,!0),u=o._cartesianSpikesEnabled,s,f;if(n==="zoom"){var c=a==="in"?.5:2,g=(1+c)/2,x=(1-c)/2,h,_;for(f=0;f-d),[_,T]=c.invert(f.midPt),{minscale:m}=s.projection,k=(l=s.projection.maxscale)!=null?l:1/0,S=Math.min(m,k),b=Math.max(m,k),M=a==="in"?DL*g:1/DL*g;M>b?M=b:M{"use strict";var qL=N5(),Dse=Object.keys(qL),BL=["drawline","drawopenpath","drawclosedpath","drawcircle","drawrect","eraseshape"],OL=["v1hovermode","hoverclosest","hovercompare","togglehover","togglespikelines"].concat(BL,["downloadJson"]),yu=[],Rse=function(e){if(OL.indexOf(e._cat||e.name)===-1){var r=e.name,t=(e._cat||e.name).toLowerCase();yu.indexOf(r)===-1&&yu.push(r),yu.indexOf(t)===-1&&yu.push(t)}};Dse.forEach(function(e){Rse(qL[e])});yu.sort();UL.exports={DRAW_MODES:BL,backButtons:OL,foreButtons:yu}});var O5={};Ht(O5,{default:()=>Pse});var B5,Fse,Pse,U5=Ut(()=>{"use strict";B5=Q_(q5()),Fse={editType:"modebar",orientation:{valType:"enumerated",values:["v","h"],dflt:"h",editType:"modebar",description:"Sets the orientation of the modebar."},bgcolor:{valType:"color",editType:"modebar",description:"Sets the background color of the modebar."},color:{valType:"color",editType:"modebar",description:"Sets the color of the icons in the modebar."},activecolor:{valType:"color",editType:"modebar",description:"Sets the color of the active or hovered on icons in the modebar."},uirevision:{valType:"any",editType:"none",description:["Controls persistence of user-driven changes related to the modebar,","including `hovermode`, `dragmode`, and `showspikes` at both the","root level and inside subplots. Defaults to `layout.uirevision`."].join(" ")},add:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar",description:["Determines which predefined modebar buttons to add.","Please note that these buttons will only be shown if they are","compatible with all trace types used in a graph.","Similar to `config.modeBarButtonsToAdd` option.",`This may include *${B5.default.backButtons.join("*, *")}*.`].join(" ")},remove:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar",description:["Determines which predefined modebar buttons to remove.","Similar to `config.modeBarButtonsToRemove` option.",`This may include *${B5.default.foreButtons.join("*, *")}*.`].join(" ")}},Pse=Fse});var VL=xe((g_e,HL)=>{"use strict";var Ise=tr(),pc=Zr(),zse=Tt(),Nse=(U5(),or(O5)).default;HL.exports=function(r,t){var n=r.modebar||{},a=zse.newContainer(t,"modebar");function o(l,u){return Ise.coerce(n,a,Nse,l,u)}o("orientation"),o("bgcolor",pc.addOpacity(t.paper_bgcolor,.5));var i=pc.contrast(pc.rgb(t.modebar.bgcolor));o("color",pc.addOpacity(i,.3)),o("activecolor",pc.addOpacity(i,.7)),o("uirevision",t.uirevision),o("add"),o("remove")}});var WL=xe((y_e,XL)=>{"use strict";var H5=lt(),qse=ut(),k2=tr(),GL=s2(),Bse=uf().version,Ose=new DOMParser;function YL(e){this.container=e.container,this.element=document.createElement("div"),this.update(e.graphInfo,e.buttons),this.container.appendChild(this.element)}var _o=YL.prototype;_o.update=function(e,r){this.graphInfo=e;var t=this.graphInfo._context,n=this.graphInfo._fullLayout,a="modebar-"+n._uid;this.element.setAttribute("id",a),this.element.setAttribute("role","toolbar"),this._uid=a,this.element.className="modebar modebar--custom",t.displayModeBar==="hover"&&(this.element.className+=" modebar--hover ease-bg"),n.modebar.orientation==="v"&&(this.element.className+=" vertical",r=r.reverse());var o=n.modebar,i="#"+a+" .modebar-group";document.querySelectorAll(i).forEach(function(c){c.style.backgroundColor=o.bgcolor});var l=!this.hasButtons(r),u=this.hasLogo!==t.displaylogo,s=this.locale!==t.locale;if(this.locale=t.locale,(l||u||s)&&(this.removeAllButtons(),this.updateButtons(r),t.watermark||t.displaylogo)){var f=this.getLogo();t.watermark&&(f.className=f.className+" watermark"),n.modebar.orientation==="v"?this.element.insertBefore(f,this.element.childNodes[0]):this.element.appendChild(f),this.hasLogo=!0}this.updateActiveButton(),k2.setStyleOnHover("#"+a+" .modebar-btn",".active",".icon path","fill: "+o.activecolor,"fill: "+o.color,this.element)};_o.updateButtons=function(e){var r=this;this.buttons=e,this.buttonElements=[],this.buttonsNames=[],this.buttons.forEach(function(t){var n=r.createGroup();t.forEach(function(a){var o=a.name;if(!o)throw new Error("must provide button 'name' in button config");if(r.buttonsNames.indexOf(o)!==-1)throw new Error("button name '"+o+"' is taken");r.buttonsNames.push(o);var i=r.createButton(a);r.buttonElements.push(i),n.appendChild(i)}),r.element.appendChild(n)})};_o.createGroup=function(){var e=document.createElement("div");e.className="modebar-group";var r=this.graphInfo._fullLayout.modebar;return e.style.backgroundColor=r.bgcolor,e};_o.createButton=function(e){var r=this,t=document.createElement("button");t.setAttribute("type","button"),t.setAttribute("rel","tooltip"),t.className="modebar-btn";var n=e.title;n===void 0?n=e.name:typeof n=="function"&&(n=n(this.graphInfo)),(n||n===0)&&(t.setAttribute("data-title",n),t.setAttribute("aria-label",n)),e.attr!==void 0&&t.setAttribute("data-attr",e.attr);var a=e.val;a!==void 0&&(typeof a=="function"&&(a=a(this.graphInfo)),t.setAttribute("data-val",a));var o=e.click;if(typeof o!="function")throw new Error("must provide button 'click' function in button config");t.addEventListener("click",function(l){e.click(r.graphInfo,l),r.updateActiveButton(l.currentTarget)}),t.setAttribute("data-toggle",e.toggle||!1),e.toggle&&H5.select(t).classed("active",!0);var i=e.icon;return typeof i=="function"?t.appendChild(i()):t.appendChild(this.createIcon(i||GL.question)),t.setAttribute("data-gravity",e.gravity||"n"),t};_o.createIcon=function(e){var r=qse(e.height)?Number(e.height):e.ascent-e.descent,t="http://www.w3.org/2000/svg",n;if(e.path){n=document.createElementNS(t,"svg"),n.setAttribute("viewBox",[0,0,e.width,r].join(" ")),n.setAttribute("class","icon");var a=document.createElementNS(t,"path");a.setAttribute("d",e.path),e.transform?a.setAttribute("transform",e.transform):e.ascent!==void 0&&a.setAttribute("transform","matrix(1 0 0 -1 0 "+e.ascent+")"),n.appendChild(a)}if(e.svg){var o=Ose.parseFromString(e.svg,"application/xml");n=o.childNodes[0]}return n.setAttribute("height","1em"),n.setAttribute("width","1em"),n};_o.updateActiveButton=function(e){var r=this.graphInfo._fullLayout,t=e!==void 0?e.getAttribute("data-attr"):null;this.buttonElements.forEach(function(n){var a=n.getAttribute("data-val")||!0,o=n.getAttribute("data-attr"),i=n.getAttribute("data-toggle")==="true",l=H5.select(n),u=function(c,g){var x=r.modebar,h=c.querySelector(".icon path");h&&(g||c.matches(":hover")?h.style.fill=x.activecolor:h.style.fill=x.color)};if(i){if(o===t){var s=!l.classed("active");l.classed("active",s),u(n,s)}}else{var f=o===null?o:k2.nestedProperty(r,o).get();l.classed("active",f===a),u(n,f===a)}})};_o.hasButtons=function(e){var r=this.buttons;if(!r||e.length!==r.length)return!1;for(var t=0;t{"use strict";var Vse=mn(),ZL=Da(),V5=Cr(),Gse=so().isUnifiedHover,Yse=WL(),S2=N5(),Xse=q5().DRAW_MODES,Wse=tr().extendDeep;JL.exports=function(r){var t=r._fullLayout,n=r._context,a=t._modeBar;if(!n.displayModeBar&&!n.watermark){a&&(a.destroy(),delete t._modeBar);return}if(!Array.isArray(n.modeBarButtonsToRemove))throw new Error(["*modeBarButtonsToRemove* configuration options","must be an array."].join(" "));if(!Array.isArray(n.modeBarButtonsToAdd))throw new Error(["*modeBarButtonsToAdd* configuration options","must be an array."].join(" "));var o=n.modeBarButtons,i;Array.isArray(o)&&o.length?i=jse(o):!n.displayModeBar&&n.watermark?i=[]:i=Zse(r),a?a.update(r,i):t._modeBar=Yse(r,i)};function Zse(e){var r=e._fullLayout,t=e._fullData,n=e._context;function a(L,I){if(typeof I=="string"){if(I.toLowerCase()===L.toLowerCase())return!0}else{var B=I.name,O=I._cat||I.name;if(B===L||O===L.toLowerCase())return!0}return!1}var o=r.modebar.add;typeof o=="string"&&(o=[o]);var i=r.modebar.remove;typeof i=="string"&&(i=[i]);var l=n.modeBarButtonsToAdd.concat(o.filter(function(L){for(var I=0;I1?(v=["toggleHover"],A=["resetViews"]):c?(y=["zoomInGeo","zoomOutGeo"],v=["hoverClosestGeo"],A=["resetGeo"]):f?(v=["hoverClosest3d"],A=["resetCameraDefault3d","resetCameraLastSave3d"]):_?(y=["zoomInMap","zoomOutMap"],v=["toggleHover"],A=["resetViewMap"]):g?v=["hoverClosestPie"]:k?(v=["hoverClosestCartesian","hoverCompareCartesian"],A=["resetViewSankey"]):v=["toggleHover"],s&&v.push("toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"),(Kse(t)||b)&&(v=[]),s&&!S&&(y=["zoomIn2d","zoomOut2d","autoScale2d"],A[0]!=="resetViews"&&(A=["resetScale2d"])),f?p=["zoom3d","pan3d","orbitRotation","tableRotation"]:s&&!S||h?p=["zoom2d","pan2d"]:_||c?p=["pan2d"]:T&&(p=["zoom2d"]),$se(t)&&p.push("select2d","lasso2d");var D=[],E=function(L){D.indexOf(L)===-1&&v.indexOf(L)!==-1&&D.push(L)};if(Array.isArray(l)){for(var R=[],F=0;F{"use strict";KL.exports={moduleType:"component",name:"modebar",layoutAttributes:(U5(),or(O5)).default,supplyLayoutDefaults:VL(),manage:$L()}});var Y5=xe((x_e,QL)=>{"use strict";var e0e=(Kn(),or($n)).FROM_BL;QL.exports=function(r,t,n){n===void 0&&(n=e0e[r.constraintoward||"center"]);var a=[r.r2l(r.range[0]),r.r2l(r.range[1])],o=a[0]+(a[1]-a[0])*n;r.range=r._input.range=[r.l2r(o+(a[0]-o)*t),r.l2r(o+(a[1]-o)*t)],r.setScale()}});var yc=xe(gc=>{"use strict";var Xs=tr(),X5=nu(),Ii=mn().id2name,r0e=ai(),jL=Y5(),t0e=C1(),n0e=(wn(),or(Rn)).ALMOST_EQUAL,a0e=(Kn(),or($n)).FROM_BL;gc.handleDefaults=function(e,r,t){var n=t.axIds,a=t.axHasImage,o=r._axisConstraintGroups=[],i=r._axisMatchGroups=[],l,u,s,f,c,g,x,h;for(l=0;lo?t.slice(o):n.slice(a))+i}function o0e(e,r){for(var t=r._size,n=t.h/t.w,a={},o=Object.keys(e),i=0;in0e*h&&!k)){for(o=0;oD&&BA&&(A=B);var G=(A-v)/(2*p);c/=G,v=u.l2r(v),A=u.l2r(A),u.range=u._input.range=d{"use strict";var E2=lt(),pa=Cr(),Ya=Sn(),li=tr(),J5=Qn(),$5=l2(),mc=Zr(),mu=At(),nD=Kf(),sD=G5(),bc=Vt(),Vo=(Kn(),or($n)),uD=yc(),l0e=uD.enforce,s0e=uD.clean,aD=nu().doAutoRange,fD="start",u0e="middle",cD="end",f0e=(kn(),or(An)).zindexSeparator;En.layoutStyles=function(e){return li.syncOrAsync([Ya.doAutoMargin,v0e],e)};function c0e(e,r,t){for(var n=0;n=e[1]||a[1]<=e[0])&&o[0]r[0])return!0}return!1}function v0e(e){var r=e._fullLayout,t=r._size,n=t.p,a=bc.list(e,"",!0),o,i,l,u,s,f;if(r._paperdiv.style({width:e._context.responsive&&r.autosize&&!e._context._hasZeroWidth&&!e.layout.width?"100%":r.width+"px",height:e._context.responsive&&r.autosize&&!e._context._hasZeroHeight&&!e.layout.height?"100%":r.height+"px"}).selectAll(".main-svg").call(mu.setSize,r.width,r.height),e._context.setBackground(e,r.paper_bgcolor),En.drawMainTitle(e),sD.manage(e),!r._has("cartesian"))return Ya.previousPromises(e);function c(Q,te,ue){var ee=Q._lw/2;if(Q._id.charAt(0)==="x"){if(te){if(ue==="top")return te._offset-n-ee}else return t.t+t.h*(1-(Q.position||0))+ee%1;return te._offset+te._length+n+ee}if(te){if(ue==="right")return te._offset+te._length+n+ee}else return t.l+t.w*(Q.position||0)+ee%1;return te._offset-n-ee}for(o=0;o0){g0e(e,o,s,u),l.attr({x:i,y:o,"text-anchor":n,dy:lD(r.yanchor)}).call(J5.positionText,i,o);var f=(r.text.match(J5.BR_TAG_ALL)||[]).length;if(f){var c=Vo.LINE_SPACING*f+Vo.MID_SHIFT;r.y===0&&(c=-c),l.selectAll(".line").each(function(){var T=+this.getAttribute("dy").slice(0,-2)-c+"em";this.setAttribute("dy",T)})}var g=E2.select(e).selectAll(".gtitle-subtitle");if(g.node()){var x=l.node().getBBox(),h=x.y+x.height,_=h+nD.SUBTITLE_PADDING_EM*r.subtitle.font.size;g.attr({x:i,y:_,"text-anchor":n,dy:lD(r.yanchor)}).call(J5.positionText,i,_)}}}};function h0e(e,r,t,n,a){var o=r.yref==="paper"?e._fullLayout._size.h:e._fullLayout.height,i=li.isTopAnchor(r)?n:n-a,l=t==="b"?o-i:i;return li.isTopAnchor(r)&&t==="t"||li.isBottomAnchor(r)&&t==="b"?!1:l.5?"t":"b",i=e._fullLayout.margin[o],l=0;return r.yref==="paper"?l=t+r.pad.t+r.pad.b:r.yref==="container"&&(l=d0e(o,n,a,e._fullLayout.height,t)+r.pad.t+r.pad.b),l>i?l:0}function g0e(e,r,t,n){var a="title.automargin",o=e._fullLayout.title,i=o.y>.5?"t":"b",l={x:o.x,y:o.y,t:0,b:0},u={};o.yref==="paper"&&h0e(e,o,i,r,n)?l[i]=t:o.yref==="container"&&(u[i]=t,e._fullLayout._reservedMargin[a]=u),Ya.allowAutoMargin(e,a),Ya.autoMargin(e,a,l)}function y0e(e,r){var t=e.title,n=e._size,a=0;return r===fD?a=t.pad.l:r===cD&&(a=-t.pad.r),t.xref==="paper"?n.l+n.w*t.x+a:e.width*t.x+a}function m0e(e,r){var t=e.title,n=e._size,a=0;return r==="0em"||!r?a=-t.pad.b:r===Vo.CAP_SHIFT+"em"&&(a=t.pad.t),t.y==="auto"?n.t/2:t.yref==="paper"?n.t+n.h-n.h*t.y+a:e.height-e.height*t.y+a}function lD(e){return e==="top"?Vo.CAP_SHIFT+.3+"em":e==="bottom"?"-0.3em":Vo.MID_SHIFT+"em"}function b0e(e){var r=e.title,t=u0e;return li.isRightAnchor(r)?t=cD:li.isLeftAnchor(r)&&(t=fD),t}function x0e(e){var r=e.title,t="0em";return li.isTopAnchor(r)?t=Vo.CAP_SHIFT+"em":li.isMiddleAnchor(r)&&(t=Vo.MID_SHIFT+"em"),t}En.doTraceStyle=function(e){var r=e.calcdata,t=[],n;for(n=0;n{"use strict";var _0e=Fl().readPaths,w0e=m2(),vD=xl().clearOutlineControllers,K5=Zr(),hD=At(),M0e=Tt().arrayEditor,dD=zl(),T0e=dD.getPathString;gD.exports={draw:D2,drawOne:pD,activateLastSelection:S0e};function D2(e){var r=e._fullLayout;vD(e),r._selectionLayer.selectAll("path").remove();for(var t in r._plots){var n=r._plots[t].selectionLayer;n&&n.selectAll("path").remove()}for(var a=0;a=0;T--){var m=i.append("path").attr(u).style("opacity",T?.1:s).call(K5.stroke,c).call(K5.fill,f).call(hD.dashLine,T?"solid":x,T?4+g:g);if(A0e(m,e,n),h){var k=M0e(e.layout,"selections",n);m.style({cursor:"move"});var S={element:m.node(),plotinfo:a,gd:e,editHelpers:k,isActiveSelection:!0},b=_0e(l,e);w0e(b,m,S)}else m.style("pointer-events",T?"all":"none");_[T]=m}var M=_[0],d=_[1];d.node().addEventListener("click",function(){return k0e(e,M)})}}function A0e(e,r,t){var n=t.xref+t.yref;hD.setClipUrl(e,"clip"+r._fullLayout._uid+n,r)}function k0e(e,r){if(R2(e)){var t=r.node(),n=+t.getAttribute("data-index");if(n>=0){if(n===e._fullLayout._activeSelectionIndex){Q5(e);return}e._fullLayout._activeSelectionIndex=n,e._fullLayout._deactivateSelection=Q5,D2(e)}}}function S0e(e){if(R2(e)){var r=e._fullLayout.selections.length-1;e._fullLayout._activeSelectionIndex=r,e._fullLayout._deactivateSelection=Q5,D2(e)}}function Q5(e){if(R2(e)){var r=e._fullLayout._activeSelectionIndex;r>=0&&(vD(e),delete e._fullLayout._activeSelectionIndex,D2(e))}}});var mD=xe((T_e,yD)=>{function C0e(){var e,r=0,t=!1;function n(a,o){return e.list.push({type:a,data:o?JSON.parse(JSON.stringify(o)):void 0}),e}return e={list:[],segmentId:function(){return r++},checkIntersection:function(a,o){return n("check",{seg1:a,seg2:o})},segmentChop:function(a,o){return n("div_seg",{seg:a,pt:o}),n("chop",{seg:a,pt:o})},statusRemove:function(a){return n("pop_seg",{seg:a})},segmentUpdate:function(a){return n("seg_update",{seg:a})},segmentNew:function(a,o){return n("new_seg",{seg:a,primary:o})},segmentRemove:function(a){return n("rem_seg",{seg:a})},tempStatus:function(a,o,i){return n("temp_status",{seg:a,above:o,below:i})},rewind:function(a){return n("rewind",{seg:a})},status:function(a,o,i){return n("status",{seg:a,above:o,below:i})},vert:function(a){return a===t?e:(t=a,n("vert",{x:a}))},log:function(a){return typeof a!="string"&&(a=JSON.stringify(a,!1," ")),n("log",{txt:a})},reset:function(){return n("reset")},selected:function(a){return n("selected",{segs:a})},chainStart:function(a){return n("chain_start",{seg:a})},chainRemoveHead:function(a,o){return n("chain_rem_head",{index:a,pt:o})},chainRemoveTail:function(a,o){return n("chain_rem_tail",{index:a,pt:o})},chainNew:function(a,o){return n("chain_new",{pt1:a,pt2:o})},chainMatch:function(a){return n("chain_match",{index:a})},chainClose:function(a){return n("chain_close",{index:a})},chainAddHead:function(a,o){return n("chain_add_head",{index:a,pt:o})},chainAddTail:function(a,o){return n("chain_add_tail",{index:a,pt:o})},chainConnect:function(a,o){return n("chain_con",{index1:a,index2:o})},chainReverse:function(a){return n("chain_rev",{index:a})},chainJoin:function(a,o){return n("chain_join",{index1:a,index2:o})},done:function(){return n("done")}},e}yD.exports=C0e});var xD=xe((A_e,bD)=>{function E0e(e){typeof e!="number"&&(e=1e-10);var r={epsilon:function(t){return typeof t=="number"&&(e=t),e},pointAboveOrOnLine:function(t,n,a){var o=n[0],i=n[1],l=a[0],u=a[1],s=t[0],f=t[1];return(l-o)*(f-i)-(u-i)*(s-o)>=-e},pointBetween:function(t,n,a){var o=t[1]-n[1],i=a[0]-n[0],l=t[0]-n[0],u=a[1]-n[1],s=l*i+o*u;if(s-e)},pointsSameX:function(t,n){return Math.abs(t[0]-n[0])e!=l-o>e&&(i-f)*(o-c)/(l-c)+f-a>e&&(u=!u),i=f,l=c}return u}};return r}bD.exports=E0e});var wD=xe((k_e,_D)=>{var L0e={create:function(){var e={root:{root:!0,next:null},exists:function(r){return!(r===null||r===e.root)},isEmpty:function(){return e.root.next===null},getHead:function(){return e.root.next},insertBefore:function(r,t){for(var n=e.root,a=e.root.next;a!==null;){if(t(a)){r.prev=a.prev,r.next=a,a.prev.next=r,a.prev=r;return}n=a,a=a.next}n.next=r,r.prev=n,r.next=null},findTransition:function(r){for(var t=e.root,n=e.root.next;n!==null&&!r(n);)t=n,n=n.next;return{before:t===e.root?null:t,after:n,insert:function(a){return a.prev=t,a.next=n,t.next=a,n!==null&&(n.prev=a),a}}}};return e},node:function(e){return e.prev=null,e.next=null,e.remove=function(){e.prev.next=e.next,e.next&&(e.next.prev=e.prev),e.prev=null,e.next=null},e}};_D.exports=L0e});var TD=xe((S_e,MD)=>{var xc=wD();function D0e(e,r,t){function n(h,_){return{id:t?t.segmentId():-1,start:h,end:_,myFill:{above:null,below:null},otherFill:null}}function a(h,_,T){return{id:t?t.segmentId():-1,start:h,end:_,myFill:{above:T.myFill.above,below:T.myFill.below},otherFill:null}}var o=xc.create();function i(h,_,T,m,k,S){var b=r.pointsCompare(_,k);return b!==0?b:r.pointsSame(T,S)?0:h!==m?h?1:-1:r.pointAboveOrOnLine(T,m?k:S,m?S:k)?1:-1}function l(h,_){o.insertBefore(h,function(T){var m=i(h.isStart,h.pt,_,T.isStart,T.pt,T.other.pt);return m<0})}function u(h,_){var T=xc.node({isStart:!0,pt:h.start,seg:h,primary:_,other:null,status:null});return l(T,h.end),T}function s(h,_,T){var m=xc.node({isStart:!1,pt:_.end,seg:_,primary:T,other:h,status:null});h.other=m,l(m,h.pt)}function f(h,_){var T=u(h,_);return s(T,h,_),T}function c(h,_){t&&t.segmentChop(h.seg,_),h.other.remove(),h.seg.end=_,h.other.pt=_,l(h.other,h.pt)}function g(h,_){var T=a(_,h.seg.end,h.seg);return c(h,_),f(T,h.primary)}function x(h,_){var T=xc.create();function m(F,z){var P=F.seg.start,L=F.seg.end,I=z.seg.start,B=z.seg.end;return r.pointsCollinear(P,I,B)?r.pointsCollinear(L,I,B)||r.pointAboveOrOnLine(L,I,B)?1:-1:r.pointAboveOrOnLine(P,I,B)?1:-1}function k(F){return T.findTransition(function(z){var P=m(F,z.ev);return P>0})}function S(F,z){var P=F.seg,L=z.seg,I=P.start,B=P.end,O=L.start,G=L.end;t&&t.checkIntersection(P,L);var J=r.linesIntersect(I,B,O,G);if(J===!1){if(!r.pointsCollinear(I,B,O)||r.pointsSame(I,G)||r.pointsSame(B,O))return!1;var j=r.pointsSame(I,O),V=r.pointsSame(B,G);if(j&&V)return z;var q=!j&&r.pointBetween(I,O,G),Z=!V&&r.pointBetween(B,O,G);if(j)return Z?g(z,B):g(F,G),z;q&&(V||(Z?g(z,B):g(F,G)),g(z,I))}else J.alongA===0&&(J.alongB===-1?g(F,O):J.alongB===0?g(F,J.pt):J.alongB===1&&g(F,G)),J.alongB===0&&(J.alongA===-1?g(z,I):J.alongA===0?g(z,J.pt):J.alongA===1&&g(z,B));return!1}for(var b=[];!o.isEmpty();){var M=o.getHead();if(t&&t.vert(M.pt[0]),M.isStart){let F=function(){if(w){var z=S(M,w);if(z)return z}return y?S(M,y):!1};var R=F;t&&t.segmentNew(M.seg,M.primary);var d=k(M),w=d.before?d.before.ev:null,y=d.after?d.after.ev:null;t&&t.tempStatus(M.seg,w?w.seg:!1,y?y.seg:!1);var v=F();if(v){if(e){var A;M.seg.myFill.below===null?A=!0:A=M.seg.myFill.above!==M.seg.myFill.below,A&&(v.seg.myFill.above=!v.seg.myFill.above)}else v.seg.otherFill=M.seg.myFill;t&&t.segmentUpdate(v.seg),M.other.remove(),M.remove()}if(o.getHead()!==M){t&&t.rewind(M.seg);continue}if(e){var A;M.seg.myFill.below===null?A=!0:A=M.seg.myFill.above!==M.seg.myFill.below,y?M.seg.myFill.below=y.seg.myFill.above:M.seg.myFill.below=h,A?M.seg.myFill.above=!M.seg.myFill.below:M.seg.myFill.above=M.seg.myFill.below}else if(M.seg.otherFill===null){var p;y?M.primary===y.primary?p=y.seg.otherFill.above:p=y.seg.myFill.above:p=M.primary?_:h,M.seg.otherFill={above:p,below:p}}t&&t.status(M.seg,w?w.seg:!1,y?y.seg:!1),M.other.status=d.insert(xc.node({ev:M}))}else{var D=M.status;if(D===null)throw new Error("PolyBool: Zero-length segment detected; your epsilon is probably too small or too large");if(T.exists(D.prev)&&T.exists(D.next)&&S(D.prev.ev,D.next.ev),t&&t.statusRemove(D.ev.seg),D.remove(),!M.primary){var E=M.seg.myFill;M.seg.myFill=M.seg.otherFill,M.seg.otherFill=E}b.push(M.seg)}o.getHead().remove()}return t&&t.done(),b}return e?{addRegion:function(h){for(var _,T=h[h.length-1],m=0;m{function R0e(e,r,t){var n=[],a=[];return e.forEach(function(o){var i=o.start,l=o.end;if(r.pointsSame(i,l)){console.warn("PolyBool: Warning: Zero-length segment detected; your epsilon is probably too small or too large");return}t&&t.chainStart(o);var u={index:0,matches_head:!1,matches_pt1:!1},s={index:0,matches_head:!1,matches_pt1:!1},f=u;function c(R,F,z){return f.index=R,f.matches_head=F,f.matches_pt1=z,f===u?(f=s,!1):(f=null,!0)}for(var g=0;g{function _c(e,r,t){var n=[];return e.forEach(function(a){var o=(a.myFill.above?8:0)+(a.myFill.below?4:0)+(a.otherFill&&a.otherFill.above?2:0)+(a.otherFill&&a.otherFill.below?1:0);r[o]!==0&&n.push({id:t?t.segmentId():-1,start:a.start,end:a.end,myFill:{above:r[o]===1,below:r[o]===2},otherFill:null})}),t&&t.selected(n),n}var F0e={union:function(e,r){return _c(e,[0,2,1,0,2,2,0,0,1,0,1,0,0,0,0,0],r)},intersect:function(e,r){return _c(e,[0,0,0,0,0,2,0,2,0,0,1,1,0,2,1,0],r)},difference:function(e,r){return _c(e,[0,0,0,0,2,0,2,0,1,1,0,0,0,1,2,0],r)},differenceRev:function(e,r){return _c(e,[0,2,1,0,0,0,1,1,0,2,0,2,0,0,0,0],r)},xor:function(e,r){return _c(e,[0,2,1,0,2,0,0,1,1,0,0,2,0,1,2,0],r)}};SD.exports=F0e});var LD=xe((L_e,ED)=>{var P0e={toPolygon:function(e,r){function t(o){if(o.length<=0)return e.segments({inverted:!1,regions:[]});function i(s){var f=s.slice(0,s.length-1);return e.segments({inverted:!1,regions:[f]})}for(var l=i(o[0]),u=1;u{var I0e=mD(),z0e=xD(),DD=TD(),N0e=kD(),wc=CD(),RD=LD(),si=!1,Mc=z0e(),Fa;Fa={buildLog:function(e){return e===!0?si=I0e():e===!1&&(si=!1),si===!1?!1:si.list},epsilon:function(e){return Mc.epsilon(e)},segments:function(e){var r=DD(!0,Mc,si);return e.regions.forEach(r.addRegion),{segments:r.calculate(e.inverted),inverted:e.inverted}},combine:function(e,r){var t=DD(!1,Mc,si);return{combined:t.calculate(e.segments,e.inverted,r.segments,r.inverted),inverted1:e.inverted,inverted2:r.inverted}},selectUnion:function(e){return{segments:wc.union(e.combined,si),inverted:e.inverted1||e.inverted2}},selectIntersect:function(e){return{segments:wc.intersect(e.combined,si),inverted:e.inverted1&&e.inverted2}},selectDifference:function(e){return{segments:wc.difference(e.combined,si),inverted:e.inverted1&&!e.inverted2}},selectDifferenceRev:function(e){return{segments:wc.differenceRev(e.combined,si),inverted:!e.inverted1&&e.inverted2}},selectXor:function(e){return{segments:wc.xor(e.combined,si),inverted:e.inverted1!==e.inverted2}},polygon:function(e){return{regions:N0e(e.segments,Mc,si),inverted:e.inverted}},polygonFromGeoJSON:function(e){return RD.toPolygon(Fa,e)},polygonToGeoJSON:function(e){return RD.fromPolygon(Fa,Mc,e)},union:function(e,r){return Tc(e,r,Fa.selectUnion)},intersect:function(e,r){return Tc(e,r,Fa.selectIntersect)},difference:function(e,r){return Tc(e,r,Fa.selectDifference)},differenceRev:function(e,r){return Tc(e,r,Fa.selectDifferenceRev)},xor:function(e,r){return Tc(e,r,Fa.selectXor)}};function Tc(e,r,t){var n=Fa.segments(e),a=Fa.segments(r),o=Fa.combine(n,a),i=t(o);return Fa.polygon(i)}typeof window=="object"&&(window.PolyBool=Fa);FD.exports=Fa});var zD=xe((R_e,ID)=>{ID.exports=function(r,t,n,a){var o=r[0],i=r[1],l=!1;n===void 0&&(n=0),a===void 0&&(a=t.length);for(var u=a-n,s=0,f=u-1;si!=h>i&&o<(x-c)*(i-g)/(h-g)+c;_&&(l=!l)}return l}});var rb=xe((F_e,ND)=>{"use strict";var eb=Rh().dot,F2=(wn(),or(Rn)).BADNUM,P2=ND.exports={};P2.tester=function(r){var t=r.slice(),n=t[0][0],a=n,o=t[0][1],i=o,l;for((t[t.length-1][0]!==t[0][0]||t[t.length-1][1]!==t[0][1])&&t.push(t[0]),l=1;la||m===F2||mi||_&&s(h))}function c(h,_){var T=h[0],m=h[1];if(T===F2||Ta||m===F2||mi)return!1;var k=t.length,S=t[0][0],b=t[0][1],M=0,d,w,y,v,A;for(d=1;dMath.max(w,S)||m>Math.max(y,b)))if(ml||Math.abs(eb(c,s))>a)return!0;return!1};P2.filter=function(r,t){var n=[r[0]],a=0,o=0;function i(u){r.push(u);var s=n.length,f=a;n.splice(o+1);for(var c=f+1;c1){var l=r.pop();i(l)}return{addPt:i,raw:r,filtered:n}}});var qD={};Ht(qD,{BENDPX:()=>q0e,MINSELECT:()=>B0e,SELECTDELAY:()=>O0e,SELECTID:()=>U0e});var q0e,B0e,O0e,U0e,BD=Ut(()=>{"use strict";q0e=1.5,B0e=12,O0e=100,U0e="-select"});var lR=xe((P_e,oR)=>{"use strict";var OD=PD(),H0e=zD(),Sc=Cr(),V0e=At().dashStyle,Ac=Zr(),G0e=yo(),Y0e=so().makeEventData,Rc=vu(),X0e=Rc.freeMode,W0e=Rc.rectMode,Cc=Rc.drawMode,ib=Rc.openMode,ob=Rc.selectMode,UD=zl(),HD=(hc(),or(vc)),WD=m2(),ZD=xl().clearOutline,JD=Fl(),tb=JD.handleEllipse,Z0e=JD.readPaths,J0e=p2().newShapes,$0e=S5(),K0e=j5().activateLastSelection,z2=tr(),Q0e=z2.sorterAsc,$D=rb(),kc=Xh(),ui=mn().getFromId,j0e=l2(),eue=L2().redrawReglTraces,N2=(BD(),or(qD)),wo=N2.MINSELECT,rue=$D.filter,lb=$D.tester,sb=c2(),VD=sb.p2r,tue=sb.axValue,nue=sb.getTransform;function ub(e){return e.subplot!==void 0}function aue(e,r,t,n,a){var o=!ub(n),i=X0e(a),l=W0e(a),u=ib(a),s=Cc(a),f=ob(a),c=a==="drawline",g=a==="drawcircle",x=c||g,h=n.gd,_=h._fullLayout,T=f&&_.newselection.mode==="immediate"&&o,m=_._zoomlayer,k=n.element.getBoundingClientRect(),S=n.plotinfo,b=nue(S),M=r-k.left,d=t-k.top;_._calcInverseTransform(h);var w=z2.apply3DTransform(_._invTransform)(M,d);M=w[0],d=w[1];var y=_._invScaleX,v=_._invScaleY,A=M,p=d,D="M"+M+","+d,E=n.xaxes[0],R=n.yaxes[0],F=E._length,z=R._length,P=e.altKey&&!(Cc(a)&&u),L,I,B,O,G,J,j;QD(e,h,n),i&&(L=rue([[M,d]],N2.BENDPX));var V=m.selectAll("path.select-outline-"+S.id).data([1]),q=s?_.newshape:_.newselection;s&&(n.hasText=q.label.text||q.label.texttemplate);var Z=s&&!u?q.fillcolor:"rgba(0,0,0,0)",re=q.line.color||(o?Ac.contrast(h._fullLayout.plot_bgcolor):"#7f7f7f");V.enter().append("path").attr("class","select-outline select-outline-"+S.id).style({opacity:s?q.opacity/2:1,"stroke-dasharray":V0e(q.line.dash,q.line.width),"stroke-width":q.line.width+"px","shape-rendering":"crispEdges"}).call(Ac.stroke,re).call(Ac.fill,Z).attr("fill-rule","evenodd").classed("cursor-move",!!s).attr("transform",b).attr("d",D+"Z");var $=m.append("path").attr("class","zoombox-corners").style({fill:Ac.background,stroke:Ac.defaultLine,"stroke-width":1}).attr("transform",b).attr("d","M0,0Z");if(s&&n.hasText){var ae=m.select(".label-temp");ae.empty()&&(ae=m.append("g").classed("label-temp",!0).classed("select-outline",!0).style({opacity:.8}))}var Q=_._uid+N2.SELECTID,te=[],ue=q2(h,n.xaxes,n.yaxes,n.subplot);T&&!e.shiftKey&&(n._clearSubplotSelections=function(){if(o){var ie=E._id,fe=R._id;nR(h,ie,fe,ue);for(var we=(h.layout||{}).selections||[],Te=[],ke=!1,ge=0;ge=0){h._fullLayout._deactivateShape(h);return}if(!s){var we=_.clickmode;kc.done(Q).then(function(){if(kc.clear(Q),ie===2){for(V.remove(),G=0;G-1&&KD(fe,h,n.xaxes,n.yaxes,n.subplot,n,V),we==="event"&&Dc(h,void 0);G0e.click(h,fe,S.id)}).catch(z2.error)}},n.doneFn=function(){$.remove(),kc.done(Q).then(function(){kc.clear(Q),!T&&O&&n.selectionDefs&&(O.subtract=P,n.selectionDefs.push(O),n.mergedPolygons.length=0,[].push.apply(n.mergedPolygons,B)),(T||s)&&Ec(n,T),n.doneFnCompleted&&n.doneFnCompleted(te),f&&Dc(h,j)}).catch(z2.error)}}function KD(e,r,t,n,a,o,i){var l=r._hoverdata,u=r._fullLayout,s=u.clickmode,f=s.indexOf("event")>-1,c=[],g,x,h,_,T,m,k,S,b,M;if(uue(l)){QD(e,r,o),g=q2(r,t,n,a);var d=fue(l,g),w=d.pointNumbers.length>0;if(w?cue(g,d):vue(g)&&(k=YD(d))){for(i&&i.remove(),M=0;M=0}function sue(e){return e._fullLayout._activeSelectionIndex>=0}function Ec(e,r){var t=e.dragmode,n=e.plotinfo,a=e.gd;lue(a)&&a._fullLayout._deactivateShape(a),sue(a)&&a._fullLayout._deactivateSelection(a);var o=a._fullLayout,i=o._zoomlayer,l=Cc(t),u=ob(t);if(l||u){var s=i.selectAll(".select-outline-"+n.id);if(s&&a._fullLayout._outlining){var f;l&&(f=J0e(s,e)),f&&Sc.call("_guiRelayout",a,{shapes:f});var c;u&&!ub(e)&&(c=$0e(s,e)),c&&(a._fullLayout._noEmitSelectedAtStart=!0,Sc.call("_guiRelayout",a,{selections:c}).then(function(){r&&K0e(a)})),a._fullLayout._outlining=!1}}n.selection={},n.selection.selectionDefs=e.selectionDefs=[],n.selection.mergedPolygons=e.mergedPolygons=[]}function GD(e){return e._id}function q2(e,r,t,n){if(!e.calcdata)return[];var a=[],o=r.map(GD),i=t.map(GD),l,u,s;for(s=0;s0,o=a?n[0]:t;return r.selectedpoints?r.selectedpoints.indexOf(o)>-1:!1}function cue(e,r){var t=[],n,a,o,i;for(i=0;i0&&t.push(n);if(t.length===1&&(o=t[0]===r.searchInfo,o&&(a=r.searchInfo.cd[0].trace,a.selectedpoints.length===r.pointNumbers.length))){for(i=0;i1||(r+=n.selectedpoints.length,r>1)))return!1;return r===1}function Lc(e,r,t){var n,a;for(n=0;n-1&&r;if(!i&&r){var ie=XD(e,!0);if(ie.length){var fe=ie[0].xref,we=ie[0].yref;if(fe&&we){var Te=aR(ie),ke=iR([ui(e,fe,"x"),ui(e,we,"y")]);ke(te,Te)}}e._fullLayout._noEmitSelectedAtStart?e._fullLayout._noEmitSelectedAtStart=!1:ee&&Dc(e,te),g._reselect=!1}if(!i&&g._deselect){var ge=g._deselect;l=ge.xref,u=ge.yref,pue(l,u,f)||nR(e,l,u,n),ee&&(te.points.length?Dc(e,te):vb(e)),g._deselect=!1}return{eventData:te,selectionTesters:t}}function due(e){var r=e.calcdata;if(r)for(var t=0;t{"use strict";sR.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}]});var Fc={};Ht(Fc,{axisRefDescription:()=>xue});function xue(e,r,t){return[`If set to a ${e} axis id (e.g. *${e}* or *${e}2*),`,`the \`${e}\` position refers to a ${e} coordinate.`,`If set to *paper*, the \`${e}\` position refers to the distance from the`,`${r} of the plotting area in normalized coordinates where *0* (*1*) corresponds`,`to the ${r} (${t}). If set to a ${e} 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 ${r} of the domain of that`,`axis: e.g., *${e}2 domain* refers to the domain of the second ${e}`,`axis and a ${e} position of 0.5 refers to the point between the ${r}`,`and the ${t} of the domain of the second ${e} axis.`].join(" ")}var Pc=Ut(()=>{"use strict"});var bu=xe((N_e,cR)=>{"use strict";var uR=hb(),fR=Wn(),B2=(kn(),or(An)),_ue=Tt().templatedArray,z_e=(Pc(),or(Fc));cR.exports=_ue("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:fR({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:uR.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:uR.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",B2.idRegex.x.toString()],editType:"calc"},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",B2.idRegex.y.toString()],editType:"calc"},xref:{valType:"enumerated",values:["paper",B2.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",B2.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:fR({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc"})});var O2={};Ht(O2,{PTS_LINESONLY:()=>wue,eventDataKeys:()=>kue,maxScreensAway:()=>Aue,minTolerance:()=>Mue,toleranceGrowth:()=>Tue});var wue,Mue,Tue,Aue,kue,U2=Ut(()=>{"use strict";wue=20,Mue=.2,Tue=10,Aue=20,kue=[]});var hR=xe((q_e,vR)=>{"use strict";vR.exports=function(r){return{valType:"color",editType:"style",anim:!0}}});var Ws=xe((B_e,_R)=>{"use strict";var dR=No().axisHoverFormat,{hovertemplateAttrs:Sue,texttemplateAttrs:Cue,templatefallbackAttrs:pR}=Si(),gR=Di(),Eue=Wn(),yR=fl().dash,Lue=fl().pattern,Due=At(),Rue=(U2(),or(O2)),Ic=Rt().extendFlat,Fue=hR();function mR(e){return{valType:"any",dflt:0,editType:"calc"}}function bR(e){return{valType:"any",editType:"calc"}}function xR(e){return{valType:"enumerated",values:["start","middle","end"],dflt:"middle",editType:"calc"}}_R.exports={x:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0},x0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",anim:!0},dx:{valType:"number",dflt:1,editType:"calc",anim:!0},y:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0},y0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",anim:!0},dy:{valType:"number",dflt:1,editType:"calc",anim:!0},xperiod:mR("x"),yperiod:mR("y"),xperiod0:bR("x0"),yperiod0:bR("y0"),xperiodalignment:xR("x"),yperiodalignment:xR("y"),xhoverformat:dR("x"),yhoverformat:dR("y"),offsetgroup:{valType:"string",dflt:"",editType:"calc"},alignmentgroup:{valType:"string",dflt:"",editType:"calc"},stackgroup:{valType:"string",dflt:"",editType:"calc"},orientation:{valType:"enumerated",values:["v","h"],editType:"calc"},groupnorm:{valType:"enumerated",values:["","fraction","percent"],dflt:"",editType:"calc"},stackgaps:{valType:"enumerated",values:["infer zero","interpolate"],dflt:"infer zero",editType:"calc"},text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},texttemplate:Cue(),texttemplatefallback:pR({editType:"calc"}),hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"style"},mode:{valType:"flaglist",flags:["lines","markers","text"],extras:["none"],editType:"calc"},hoveron:{valType:"flaglist",flags:["points","fills"],editType:"style"},hovertemplate:Sue({},{keys:Rue.eventDataKeys}),hovertemplatefallback:pR(),line:{color:{valType:"color",editType:"style",anim:!0},width:{valType:"number",min:0,dflt:2,editType:"style",anim:!0},shape:{valType:"enumerated",values:["linear","spline","hv","vh","hvh","vhv"],dflt:"linear",editType:"plot"},smoothing:{valType:"number",min:0,max:1.3,dflt:1,editType:"plot"},dash:Ic({},yR,{editType:"style"}),backoff:{valType:"number",min:0,dflt:"auto",arrayOk:!0,editType:"plot"},simplify:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},connectgaps:{valType:"boolean",dflt:!1,editType:"calc"},cliponaxis:{valType:"boolean",dflt:!0,editType:"plot"},fill:{valType:"enumerated",values:["none","tozeroy","tozerox","tonexty","tonextx","toself","tonext"],editType:"calc"},fillcolor:Fue(!0),fillgradient:Ic({type:{valType:"enumerated",values:["radial","horizontal","vertical","none"],dflt:"none",editType:"calc"},start:{valType:"number",editType:"calc"},stop:{valType:"number",editType:"calc"},colorscale:{valType:"colorscale",editType:"style"},editType:"calc"}),fillpattern:Lue,marker:Ic({symbol:{valType:"enumerated",values:Due.symbolList,dflt:"circle",arrayOk:!0,editType:"style"},opacity:{valType:"number",min:0,max:1,arrayOk:!0,editType:"style",anim:!0},angle:{valType:"angle",dflt:0,arrayOk:!0,editType:"plot",anim:!1},angleref:{valType:"enumerated",values:["previous","up"],dflt:"up",editType:"plot",anim:!1},standoff:{valType:"number",min:0,dflt:0,arrayOk:!0,editType:"plot",anim:!0},size:{valType:"number",min:0,dflt:6,arrayOk:!0,editType:"calc",anim:!0},maxdisplayed:{valType:"number",min:0,dflt:0,editType:"plot"},sizeref:{valType:"number",dflt:1,editType:"calc"},sizemin:{valType:"number",min:0,dflt:0,editType:"calc"},sizemode:{valType:"enumerated",values:["diameter","area"],dflt:"diameter",editType:"calc"},line:Ic({width:{valType:"number",min:0,arrayOk:!0,editType:"style",anim:!0},dash:Ic({},yR,{arrayOk:!0}),editType:"calc"},gR("marker.line",{anim:!0})),gradient:{type:{valType:"enumerated",values:["radial","horizontal","vertical","none"],arrayOk:!0,dflt:"none",editType:"calc"},color:{valType:"color",arrayOk:!0,editType:"calc"},editType:"calc"},editType:"calc"},gR("marker",{anim:!0})),selected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style"},color:{valType:"color",editType:"style"},size:{valType:"number",min:0,editType:"style"},editType:"style"},textfont:{color:{valType:"color",editType:"style"},editType:"style"},editType:"style"},unselected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style"},color:{valType:"color",editType:"style"},size:{valType:"number",min:0,editType:"style"},editType:"style"},textfont:{color:{valType:"color",editType:"style"},editType:"style"},editType:"style"},textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right"],dflt:"middle center",arrayOk:!0,editType:"calc"},textfont:Eue({editType:"calc",colorEditType:"style",arrayOk:!0}),zorder:{valType:"integer",dflt:0,editType:"plot"}}});var db=xe((U_e,TR)=>{"use strict";var wR=bu(),MR=Ws().line,Pue=fl().dash,H2=Rt().extendFlat,Iue=ua().overrideAll,zue=Tt().templatedArray,O_e=(Pc(),or(Fc));TR.exports=Iue(zue("selection",{type:{valType:"enumerated",values:["rect","path"]},xref:H2({},wR.xref,{}),yref:H2({},wR.yref,{}),x0:{valType:"any"},x1:{valType:"any"},y0:{valType:"any"},y1:{valType:"any"},path:{valType:"string",editType:"arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:.7,editType:"arraydraw"},line:{color:MR.color,width:H2({},MR.width,{min:1,dflt:1}),dash:H2({},Pue,{dflt:"dot"})}}),"arraydraw","from-root")});var CR=xe((H_e,SR)=>{"use strict";var AR=tr(),V2=Vt(),Nue=Ri(),que=db(),kR=zl();SR.exports=function(r,t){Nue(r,t,{name:"selections",handleItemDefaults:Bue});for(var n=t.selections,a=0;a{"use strict";ER.exports=function(r,t,n){n("newselection.mode");var a=n("newselection.line.width");a&&(n("newselection.line.color"),n("newselection.line.dash")),n("activeselection.fillcolor"),n("activeselection.opacity")}});var zc=xe((G_e,FR)=>{"use strict";var Oue=Cr(),DR=tr(),RR=mn();FR.exports=function(r){return function(n,a){var o=n[r];if(Array.isArray(o))for(var i=Oue.subplotsRegistry.cartesian,l=i.idRegex,u=a._subplots,s=u.xaxis,f=u.yaxis,c=u.cartesian,g=a._has("cartesian"),x=0;x{"use strict";var PR=j5(),Nc=lR();IR.exports={moduleType:"component",name:"selections",layoutAttributes:db(),supplyLayoutDefaults:CR(),supplyDrawNewSelectionDefaults:LR(),includeBasePlot:zc()("selections"),draw:PR.draw,drawOne:PR.drawOne,reselect:Nc.reselect,prepSelect:Nc.prepSelect,clearOutline:Nc.clearOutline,clearSelectionsCache:Nc.clearSelectionsCache,selectOnClick:Nc.selectOnClick}});var rF=xe((X_e,eF)=>{"use strict";var xb=lt(),fi=tr(),zR=fi.numberFormat,Uue=G1(),G2=Cr(),GR=fi.strTranslate,Hue=Qn(),gb=Zr(),ql=At(),Vue=yo(),NR=Vt(),Gue=Dl(),Yue=Pi(),YR=vu(),Y2=YR.selectingOrDrawing,Xue=YR.freeMode,Wue=(Kn(),or($n)).FROM_TL,Zue=l2(),Jue=L2().redrawReglTraces,$ue=Sn(),yb=mn().getFromId,Kue=xu().prepSelect,Que=xu().clearOutline,jue=xu().selectOnClick,pb=Y5(),_b=(kn(),or(An)),qR=_b.MINDRAG,xa=_b.MINZOOM,BR=!0;function efe(e,r,t,n,a,o,i,l){var u=e._fullLayout._zoomlayer,s=i+l==="nsew",f=(i+l).length===1,c,g,x,h,_,T,m,k,S,b,M,d,w,y,v,A,p,D,E,R,F,z,P;t+=r.yaxis._shift;function L(){if(c=r.xaxis,g=r.yaxis,S=c._length,b=g._length,m=c._offset,k=g._offset,x={},x[c._id]=c,h={},h[g._id]=g,i&&l)for(var ve=r.overlays,he=0;he=0){be._fullLayout._deactivateShape(be);return}var Ae=be._fullLayout.clickmode;if(bb(be),ve===2&&!f&&ye(),s)Ae.indexOf("select")>-1&&jue(he,be,_,T,r.id,O),Ae.indexOf("event")>-1&&Vue.click(be,he,r.id);else if(ve===1&&f){var Re=i?g:c,Pe=i==="s"||l==="w"?0:1,Ye=Re._name+".range["+Pe+"]",Ve=rfe(Re,Pe),Ue="left",qe="middle";if(Re.fixedrange)return;i?(qe=i==="n"?"top":"bottom",Re.side==="right"&&(Ue="right")):l==="e"&&(Ue="right"),be._context.showAxisRangeEntryBoxes&&xb.select(B).call(Hue.makeEditable,{gd:be,immediate:!0,background:be._fullLayout.paper_bgcolor,text:String(Ve),fill:Re.tickfont?Re.tickfont.color:"#444",horizontalAlign:Ue,verticalAlign:qe}).on("edit",function(We){var Xe=Re.d2r(We);Xe!==void 0&&G2.call("_guiRelayout",be,Ye,Xe)})}}Yue.init(O);var j,V,q,Z,re,$,ae,Q,te,ue;function ee(ve,he,be){var Ae=B.getBoundingClientRect();j=he-Ae.left,V=be-Ae.top,e._fullLayout._calcInverseTransform(e);var Re=fi.apply3DTransform(e._fullLayout._invTransform)(j,V);j=Re[0],V=Re[1],q={l:j,r:j,w:0,t:V,b:V,h:0},Z=e._hmpixcount?e._hmlumcount/e._hmpixcount:gb.luminosity(e._fullLayout.plot_bgcolor),re="M0,0H"+S+"V"+b+"H0V0",$=!1,ae="xy",ue=!1,Q=ZR(u,Z,m,k,re),te=JR(u,m,k)}function ie(ve,he){if(e._transitioningWithDuration)return!1;var be=Math.max(0,Math.min(S,z*ve+j)),Ae=Math.max(0,Math.min(b,P*he+V)),Re=Math.abs(be-j),Pe=Math.abs(Ae-V);q.l=Math.min(j,be),q.r=Math.max(j,be),q.t=Math.min(V,Ae),q.b=Math.max(V,Ae);function Ye(){ae="",q.r=q.l,q.t=q.b,te.attr("d","M0,0Z")}if(M.isSubplotConstrained)Re>xa||Pe>xa?(ae="xy",Re/S>Pe/b?(Pe=Re*b/S,V>Ae?q.t=V-Pe:q.b=V+Pe):(Re=Pe*S/b,j>be?q.l=j-Re:q.r=j+Re),te.attr("d",X2(q))):Ye();else if(d.isSubplotConstrained)if(Re>xa||Pe>xa){ae="xy";var Ve=Math.min(q.l/S,(b-q.b)/b),Ue=Math.max(q.r/S,(b-q.t)/b);q.l=Ve*S,q.r=Ue*S,q.b=(1-Ve)*b,q.t=(1-Ue)*b,te.attr("d",X2(q))}else Ye();else!y||Pe0){var We;if(d.isSubplotConstrained||!w&&y.length===1){for(We=0;We<_.length;We++)_[We].range=_[We]._r.slice(),pb(_[We],1-he/b);ve=he*S/b,Ue=ve/2}if(d.isSubplotConstrained||!y&&w.length===1){for(We=0;We1&&(Ye.maxallowed!==void 0&&A===(Ye.range[0]1&&(Ve.maxallowed!==void 0&&p===(Ve.range[0]=0?Math.min(e,.9):1/(1/Math.max(e,-.3)+3.222))}function nfe(e,r,t){return e?e==="nsew"?t?"":r==="pan"?"move":"crosshair":e.toLowerCase()+"-resize":"pointer"}function ZR(e,r,t,n,a){return e.append("path").attr("class","zoombox").style({fill:r>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("transform",GR(t,n)).attr("d",a+"Z")}function JR(e,r,t){return e.append("path").attr("class","zoombox-corners").style({fill:gb.background,stroke:gb.defaultLine,"stroke-width":1,opacity:0}).attr("transform",GR(r,t)).attr("d","M0,0Z")}function $R(e,r,t,n,a,o){e.attr("d",n+"M"+t.l+","+t.t+"v"+t.h+"h"+t.w+"v-"+t.h+"h-"+t.w+"Z"),KR(e,r,a,o)}function KR(e,r,t,n){t||(e.transition().style("fill",n>.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),r.transition().style("opacity",1).duration(200))}function bb(e){xb.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function QR(e){BR&&e.data&&e._context.showTips&&(fi.notifier(fi._(e,"Double-click to zoom back out"),"long",e),BR=!1)}function afe(e,r){return"M"+(e.l-.5)+","+(r-xa-.5)+"h-3v"+(2*xa+1)+"h3ZM"+(e.r+.5)+","+(r-xa-.5)+"h3v"+(2*xa+1)+"h-3Z"}function ife(e,r){return"M"+(r-xa-.5)+","+(e.t-.5)+"v-3h"+(2*xa+1)+"v3ZM"+(r-xa-.5)+","+(e.b+.5)+"v3h"+(2*xa+1)+"v-3Z"}function X2(e){var r=Math.floor(Math.min(e.b-e.t,e.r-e.l,xa)/2);return"M"+(e.l-3.5)+","+(e.t-.5+r)+"h3v"+-r+"h"+r+"v-3h-"+(r+3)+"ZM"+(e.r+3.5)+","+(e.t-.5+r)+"h-3v"+-r+"h"+-r+"v-3h"+(r+3)+"ZM"+(e.r+3.5)+","+(e.b+.5-r)+"h-3v"+r+"h"+-r+"v3h"+(r+3)+"ZM"+(e.l-3.5)+","+(e.b+.5-r)+"h3v"+r+"h"+r+"v3h-"+(r+3)+"Z"}function HR(e,r,t,n,a){for(var o=!1,i={},l={},u,s,f,c,g=(a||{}).xaHash,x=(a||{}).yaHash,h=0;h{"use strict";var ofe=lt(),W2=yo(),lfe=Pi(),sfe=Dl(),zi=rF().makeDragBox,Ln=(kn(),or(An)).DRAGGERSIZE;Z2.initInteractions=function(r){var t=r._fullLayout;if(r._context.staticPlot){ofe.select(r).selectAll(".drag").remove();return}if(!(!t._has("cartesian")&&!t._has("splom"))){var n=Object.keys(t._plots||{}).sort(function(o,i){if((t._plots[o].mainplot&&!0)===(t._plots[i].mainplot&&!0)){var l=o.split("y"),u=i.split("y");return l[0]===u[0]?Number(l[1]||1)-Number(u[1]||1):Number(l[0]||1)-Number(u[0]||1)}return t._plots[o].mainplot?1:-1});n.forEach(function(o){var i=t._plots[o],l=i.xaxis,u=i.yaxis;if(!i.mainplot){var s=zi(r,i,l._offset,u._offset,l._length,u._length,"ns","ew");s.onmousemove=function(g){r._fullLayout._rehover=function(){r._fullLayout._hoversubplot===o&&r._fullLayout._plots[o]&&W2.hover(r,g,o)},W2.hover(r,g,o),r._fullLayout._lasthover=s,r._fullLayout._hoversubplot=o},s.onmouseout=function(g){r._dragging||(r._fullLayout._hoversubplot=null,lfe.unhover(r,g))},r._context.showAxisDragHandles&&(zi(r,i,l._offset-Ln,u._offset-Ln,Ln,Ln,"n","w"),zi(r,i,l._offset+l._length,u._offset-Ln,Ln,Ln,"n","e"),zi(r,i,l._offset-Ln,u._offset+u._length,Ln,Ln,"s","w"),zi(r,i,l._offset+l._length,u._offset+u._length,Ln,Ln,"s","e"))}if(r._context.showAxisDragHandles){if(o===l._mainSubplot){var f=l._mainLinePosition;l.side==="top"&&(f-=Ln),zi(r,i,l._offset+l._length*.1,f,l._length*.8,Ln,"","ew"),zi(r,i,l._offset,f,l._length*.1,Ln,"","w"),zi(r,i,l._offset+l._length*.9,f,l._length*.1,Ln,"","e")}if(o===u._mainSubplot){var c=u._mainLinePosition;u.side!=="right"&&(c-=Ln),zi(r,i,c,u._offset+u._length*.1,Ln,u._length*.8,"ns",""),zi(r,i,c,u._offset+u._length*.9,Ln,u._length*.1,"s",""),zi(r,i,c,u._offset,Ln,u._length*.1,"n","")}}});var a=t._hoverlayer.node();a.onmousemove=function(o){o.target=r._fullLayout._lasthover,W2.hover(r,o,t._hoversubplot)},a.onclick=function(o){o.target=r._fullLayout._lasthover,W2.click(r,o)},a.onmousedown=function(o){r._fullLayout._lasthover.onmousedown(o)},Z2.updateFx(r)}};Z2.updateFx=function(e){var r=e._fullLayout,t=r.dragmode==="pan"?"move":"crosshair";sfe(r._draggers,t)}});var aF=xe((Z_e,nF)=>{"use strict";var tF=Cr();nF.exports=function(r){for(var t=tF.layoutArrayContainers,n=tF.layoutArrayRegexes,a=r.split("[")[0],o,i,l=0;l{"use strict";var ufe=ss(),Mb=Dh(),qc=ll(),ffe=fy().sorterAsc,Tb=Cr();Bc.containerArrayMatch=aF();var cfe=Bc.isAddVal=function(r){return r==="add"||ufe(r)},iF=Bc.isRemoveVal=function(r){return r===null||r==="remove"};Bc.applyContainerArrayChanges=function(r,t,n,a,o){var i=t.astr,l=Tb.getComponentMethod(i,"supplyLayoutDefaults"),u=Tb.getComponentMethod(i,"draw"),s=Tb.getComponentMethod(i,"drawOne"),f=a.replot||a.recalc||l===Mb||u===Mb,c=r.layout,g=r._fullLayout;if(n[""]){Object.keys(n).length>1&&qc.warn("Full array edits are incompatible with other edits",i);var x=n[""][""];if(iF(x))t.set(null);else if(Array.isArray(x))t.set(x);else return qc.warn("Unrecognized full array edit value",i,x),!0;return f?!1:(l(c,g),u(r),!0)}var h=Object.keys(n).map(Number).sort(ffe),_=t.get(),T=_||[],m=o(g,i).get(),k=[],S=-1,b=T.length,M,d,w,y,v,A,p,D;for(M=0;MT.length-(p?0:1)){qc.warn("index out of range",i,w);continue}if(A!==void 0)v.length>1&&qc.warn("Insertion & removal are incompatible with edits to the same index.",i,w),iF(A)?k.push(w):p?(A==="add"&&(A={}),T.splice(w,0,A),m&&m.splice(w,0,{})):qc.warn("Unrecognized full object edit value",i,w,A),S===-1&&(S=w);else for(d=0;d=0;M--)T.splice(k[M],1),m&&m.splice(k[M],1);if(T.length?_||t.set(T):t.set(null),f)return!1;if(l(c,g),s!==Mb){var E;if(S===-1)E=h;else{for(b=Math.max(T.length,b),E=[],M=0;M=S));M++)E.push(w);for(M=S;M{"use strict";var fF=ut(),cF=Cr(),ga=tr(),Oc=Sn(),vF=mn(),Uc=vF.cleanId,vfe=vF.getFromTrace,Ab=cF.traceIs,hfe=["x","y","z"];ci.clearPromiseQueue=function(e){Array.isArray(e._promises)&&e._promises.length>0&&ga.log("Clearing previous rejected promises from queue."),e._promises=[]};ci.cleanLayout=function(e){var r,t;e||(e={}),e.xaxis1&&(e.xaxis||(e.xaxis=e.xaxis1),delete e.xaxis1),e.yaxis1&&(e.yaxis||(e.yaxis=e.yaxis1),delete e.yaxis1),e.scene1&&(e.scene||(e.scene=e.scene1),delete e.scene1);var n=(Oc.subplotsRegistry.cartesian||{}).attrRegex,a=(Oc.subplotsRegistry.polar||{}).attrRegex,o=(Oc.subplotsRegistry.ternary||{}).attrRegex,i=(Oc.subplotsRegistry.gl3d||{}).attrRegex,l=Object.keys(e);for(r=0;r3?(T.x=1.02,T.xanchor="left"):T.x<-2&&(T.x=-.02,T.xanchor="right"),T.y>3?(T.y=1.02,T.yanchor="bottom"):T.y<-2&&(T.y=-.02,T.yanchor="top")),e.dragmode==="rotate"&&(e.dragmode="orbit"),e.template&&e.template.layout&&ci.cleanLayout(e.template.layout),e};function _u(e,r,t=!1){var n=e[r],a=r.charAt(0);t&&Array.isArray(n)||n&&n!=="paper"&&(e[r]=Uc(n,a,!0))}ci.cleanData=function(e){for(var r=0;r0)return e.slice(0,r)}ci.hasParent=function(e,r){for(var t=uF(r);t;){if(t in e)return!0;t=uF(t)}return!1};ci.clearAxisTypes=function(e,r,t){for(var n=0;n{let t=(...n)=>n.every(a=>ga.isPlainObject(a))||n.every(a=>Array.isArray(a));if([e,r].every(n=>Array.isArray(n))){if(e.length!==r.length)return!1;for(let n=0;nga.isPlainObject(n))){if(Object.keys(e).length!==Object.keys(r).length)return!1;for(let n in e){if(n.startsWith("_"))continue;let a=e[n],o=r[n];if(a!==o&&!(t(a,o)?kb(a,o):!1))return!1}return!0}return!1};ci.collectionsAreEqual=kb});var Db=xe(nt=>{"use strict";var j2=lt(),gfe=ut(),yfe=My(),vr=tr(),Et=vr.nestedProperty,Cb=Hf(),_a=nA(),vi=Cr(),od=Z0(),Rr=Sn(),ya=Vt(),mfe=Jm(),bfe=ai(),K2=At(),xfe=Zr(),_fe=wb().initInteractions,wfe=(wl(),or(_l)),Mfe=xu().clearOutline,mF=ol().dfltConfig,$2=oF(),vn=hF(),_t=L2(),Bl=ua(),Tfe=(kn(),or(An)).AX_NAME_PATTERN,Sb=0,dF=5;function Afe(e,r,t,n){var a;if(e=vr.getGraphDiv(e),Cb.init(e),vr.isPlainObject(r)){var o=r;r=o.data,t=o.layout,n=o.config,a=o.frames}var i=Cb.triggerHandler(e,"plotly_beforeplot",[r,t,n]);if(i===!1)return Promise.reject();!r&&!t&&!vr.isPlotDiv(e)&&vr.warn("Calling _doPlot as if redrawing but this container doesn't yet have a plot.",e);function l(){if(a)return nt.addFrames(e,a)}xF(e,n),t||(t={}),j2.select(e).classed("js-plotly-plot",!0),K2.makeTester(),Array.isArray(e._promises)||(e._promises=[]);var u=(e.data||[]).length===0&&Array.isArray(r);Array.isArray(r)&&(vn.cleanData(r),u?e.data=r:e.data.push.apply(e.data,r),e.empty=!1),(!e.layout||u)&&(e.layout=vn.cleanLayout(t)),Rr.supplyDefaults(e);var s=e._fullLayout,f=s._has("cartesian");s._replotting=!0,(u||s._shouldCreateBgLayer)&&(Jfe(e),s._shouldCreateBgLayer&&delete s._shouldCreateBgLayer),K2.initGradients(e),K2.initPatterns(e),u&&ya.saveShowSpikeInitial(e);var c=!e.calcdata||e.calcdata.length!==(e._fullData||[]).length;c&&Rr.doCalcdata(e);for(var g=0;g{vr.isHidden(e)||Rr.resize(e)};if(e._context.fillFrame||typeof ResizeObserver=="undefined")window.addEventListener("resize",y),e._clearResponsive=()=>window.removeEventListener("resize",y);else{let v=e.offsetWidth,A=e.offsetHeight,p=new ResizeObserver(()=>{let D=e.offsetWidth,E=e.offsetHeight,R=Math.abs(D-v)>1||Math.abs(E-A)>1;v=D,A=E,R&&D&&E&&y()});p.observe(e),e._clearResponsive=()=>p.disconnect()}}}else vr.clearResponsive(e);let x=document.fonts?[...document.fonts].filter(y=>y.status!=="loaded"):[];var h=vr.extendFlat({},s._size),_=0;function T(){for(var y=s._basePlotModules,v=0;v["loaded","loading"].includes(a.status));if(!t.length)return;let n={};e._fontLoadToken=n,yield Promise.all(t.map(a=>a.loaded.catch(()=>{}))),e._fontLoadToken===n&&(delete e._fontLoadToken,K2.savedBBoxes={},nt._doPlot(e))})}function Vc(e){var r=e._fullLayout;r._redrawFromAutoMarginCount?r._redrawFromAutoMarginCount--:e.emit("plotly_afterplot")}function Sfe(e){return vr.extendFlat(mF,e)}function bF(e,r){try{e._fullLayout._paper.style("background",r)}catch(t){vr.error(t)}}function Cfe(e,r){var t=xfe.combine(r,"white");bF(e,t)}function xF(e,r){if(!e._context){e._context=vr.extendDeep({},mF);var t=j2.select("base");e._context._baseUrl=t.size()&&t.attr("href")?window.location.href.split("#")[0]:""}var n=e._context,a,o,i;if(r){for(o=Object.keys(r),a=0;a=e.data.length||a<-e.data.length)throw new Error(t+" must be valid indices for gd.data.");if(r.indexOf(a,n+1)>-1||a>=0&&r.indexOf(-e.data.length+a)>-1||a<0&&r.indexOf(e.data.length+a)>-1)throw new Error("each index in "+t+" must be unique.")}}function _F(e,r,t){if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(typeof r=="undefined")throw new Error("currentIndices is a required argument.");if(Array.isArray(r)||(r=[r]),rd(e,r,"currentIndices"),typeof t!="undefined"&&!Array.isArray(t)&&(t=[t]),typeof t!="undefined"&&rd(e,t,"newIndices"),typeof t!="undefined"&&r.length!==t.length)throw new Error("current and new indices must be of equal length.")}function Dfe(e,r,t){var n,a;if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(typeof r=="undefined")throw new Error("traces must be defined.");for(Array.isArray(r)||(r=[r]),n=0;n=0&&f=0&&f0&&typeof y.parts[p]!="string";)p--;var D=y.parts[p],E=y.parts[p-1]+"."+D,R=y.parts.slice(0,p).join("."),F=Et(e.layout,R).get(),z=Et(n,R).get(),P=y.get();if(v!==void 0){m[w]=v,k[w]=D==="reverse"?v:Go(P);var L=od.getLayoutValObject(n,y.parts);if(L&&L.impliedEdits&&v!==null)for(var I in L.impliedEdits)S(vr.relativeAttr(w,I),L.impliedEdits[I]);if(["width","height"].indexOf(w)!==-1)if(v){S("autosize",null);var B=w==="height"?"width":"height";S(B,n[B])}else n[w]=e._initialAutoSize[w];else if(w==="autosize")S("width",v?null:n.width),S("height",v?null:n.height);else if(E.match(LF))d(E),Et(n,R+"._inputRange").set(null);else if(E.match(DF)){d(E),Et(n,R+"._inputRange").set(null);var O=Et(n,R).get();O._inputDomain&&(O._input.domain=O._inputDomain.slice())}else E.match(Ife)&&Et(n,R+"._inputDomain").set(null);if(D==="type"){M=F;var G=z.type==="linear"&&v==="log",J=z.type==="log"&&v==="linear";if(G||J){if(!M||!M.range)S(R+".autorange",!0);else if(z.autorange)G&&(M.range=M.range[1]>M.range[0]?[1,2]:[2,1]);else{var j=M.range[0],V=M.range[1];G?(j<=0&&V<=0&&S(R+".autorange",!0),j<=0?j=V/1e6:V<=0&&(V=j/1e6),S(R+".range[0]",Math.log(j)/Math.LN10),S(R+".range[1]",Math.log(V)/Math.LN10)):(S(R+".range[0]",Math.pow(10,j)),S(R+".range[1]",Math.pow(10,V)))}Array.isArray(n._subplots.polar)&&n._subplots.polar.length&&n[y.parts[0]]&&y.parts[1]==="radialaxis"&&delete n[y.parts[0]]._subplot.viewInitial["radialaxis.range"],vi.getComponentMethod("annotations","convertCoords")(e,z,v,S),vi.getComponentMethod("images","convertCoords")(e,z,v,S)}else S(R+".autorange",!0),S(R+".range",null);Et(n,R+"._inputRange").set(null)}else if(D.match(Tfe)){var q=Et(n,w).get(),Z=(v||{}).type;(!Z||Z==="-")&&(Z="linear"),vi.getComponentMethod("annotations","convertCoords")(e,q,Z,S),vi.getComponentMethod("images","convertCoords")(e,q,Z,S)}var re=$2.containerArrayMatch(w);if(re){f=re.array,c=re.index;var $=re.property,ae=L||{editType:"calc"};c!==""&&$===""&&($2.isAddVal(v)?k[w]=null:$2.isRemoveVal(v)?k[w]=(Et(t,f).get()||[])[c]:vr.warn("unrecognized full object value",r)),Bl.update(T,ae),s[f]||(s[f]={});var Q=s[f][c];Q||(Q=s[f][c]={}),Q[$]=v,delete r[w]}else D==="reverse"?(F.range?F.range.reverse():(S(R+".autorange",!0),F.range=[1,0]),z.autorange?T.calc=!0:T.plot=!0):(w==="dragmode"&&(v===!1&&P!==!1||v!==!1&&P===!1)||n._has("scatter-like")&&n._has("regl")&&w==="dragmode"&&(v==="lasso"||v==="select")&&!(P==="lasso"||P==="select")?T.plot=!0:L?Bl.update(T,L):T.calc=!0,y.set(v))}}for(f in s){var te=$2.applyContainerArrayChanges(e,o(t,f),s[f],T,o);te||(T.plot=!0)}for(var ue in b){M=ya.getFromId(e,ue);var ee=M&&M._constraintGroup;if(ee){T.calc=!0;for(var ie in ee)b[ie]||(ya.getFromId(e,ie)._constraintShrinkable=!0)}}(FF(e)||r.height||r.width)&&(T.plot=!0);var fe=n.shapes;for(c=0;c1;)if(n.pop(),t=Et(r,n.join(".")+".uirevision").get(),t!==void 0)return t;return r.uirevision}function qfe(e,r){for(var t=0;t[R,e._ev.listeners(R)]);o=nt.newPlot(e,r,t,n).then(()=>{for(let[R,F]of E)F.forEach(z=>e.on(R,z));return nt.react(e,r,t,n)})}else{e.data=r||[],vn.cleanData(e.data),e.layout=t||{},vn.cleanLayout(e.layout),Ofe(e.data,e.layout,l,u),Rr.supplyDefaults(e,{skipUpdateCalc:!0});var c=e._fullData,g=e._fullLayout,x=g.datarevision===void 0,h=g.transition,_=Vfe(e,u,g,x,h),T=_.newDataRevision,m=Hfe(e,l,c,x,h,T);if(FF(e)&&(_.layoutReplot=!0),m.calc||_.calc){e.calcdata=void 0;for(var k=Object.getOwnPropertyNames(g),S=0;S(f||e.emit("plotly_react",{config:n,data:r,layout:t}),e))}function Hfe(e,r,t,n,a,o){var i=r.length===t.length;if(!a&&!i)return{fullReplot:!0,calc:!0};var l=Bl.traceFlags();l.arrays={},l.nChanges=0,l.nChangesAnim=0;var u,s;function f(x){var h=od.getTraceValObject(s,x);return!s._module.animatable&&h.anim&&(h.anim=!1),h}var c={getValObject:f,flags:l,immutable:n,transition:a,newDataRevision:o,gd:e},g={};for(u=0;u=a.length?a[0]:a[s]:a}function l(s){return Array.isArray(o)?s>=o.length?o[0]:o[s]:o}function u(s,f){var c=0;return function(){if(s&&++c===f)return s()}}return new Promise(function(s,f){function c(){if(n._frameQueue.length!==0){for(;n._frameQueue.length;){var D=n._frameQueue.pop();D.onInterrupt&&D.onInterrupt()}e.emit("plotly_animationinterrupted",[])}}function g(D){if(D.length!==0){for(var E=0;En._timeToNext&&h()};D()}var T=0;function m(D){return Array.isArray(a)?T>=a.length?D.transitionOpts=a[T]:D.transitionOpts=a[0]:D.transitionOpts=a,T++,D}var k,S,b=[],M=r==null,d=Array.isArray(r),w=!M&&!d&&vr.isPlainObject(r);if(w)b.push({type:"object",data:m(vr.extendFlat({},r))});else if(M||["string","number"].indexOf(typeof r)!==-1)for(k=0;k0&&AA)&&p.push(S);b=p}}b.length>0?g(b):(e.emit("plotly_animated"),s())})}function Yfe(e,r,t){if(e=vr.getGraphDiv(e),r==null)return Promise.resolve();if(!vr.isPlotDiv(e))throw new Error("This element is not a Plotly plot: "+e+". It's likely that you've failed to create a plot before adding frames. For more details, see https://plotly.com/javascript/animations/");var n,a,o,i,l=e._transitionData._frames,u=e._transitionData._frameHash;if(!Array.isArray(r))throw new Error("addFrames failure: frameList must be an Array of frame definitions"+r);var s=l.length+r.length*2,f=[],c={};for(n=r.length-1;n>=0;n--)if(vr.isPlainObject(r[n])){var g=r[n].name,x=(u[g]||c[g]||{}).name,h=r[n].name,_=u[x]||c[x];x&&h&&typeof h=="number"&&_&&Sby.index?-1:w.index=0;n--){if(a=f[n].frame,typeof a.name=="number"&&vr.warn("Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings"),!a.name)for(;u[a.name="frame "+e._transitionData._counter++];);if(u[a.name]){for(o=0;o=0;t--)n=r[t],o.push({type:"delete",index:n}),i.unshift({type:"insert",index:n,value:a[n]});var l=Rr.modifyFrames,u=Rr.modifyFrames,s=[e,i],f=[e,o];return _a&&_a.add(e,l,s,u,f),Rr.modifyFrames(e,o)}function Wfe(e){e=vr.getGraphDiv(e);var r=e._fullLayout||{},t=e._fullData||[];return Rr.cleanPlot([],{},t,r),Rr.purge(e),Cb.purge(e),r._container&&r._container.remove(),delete e._context,e}function Zfe(e){var r=e._fullLayout,t=e.getBoundingClientRect();if(!vr.equalDomRects(t,r._lastBBox)){var n=r._invTransform=vr.inverseTransformMatrix(vr.getFullTransformMatrix(e));r._invScaleX=Math.sqrt(n[0][0]*n[0][0]+n[0][1]*n[0][1]+n[0][2]*n[0][2]),r._invScaleY=Math.sqrt(n[1][0]*n[1][0]+n[1][1]*n[1][1]+n[1][2]*n[1][2]),r._lastBBox=t}}function Jfe(e){var r=j2.select(e),t=e._fullLayout;if(t._calcInverseTransform=Zfe,t._calcInverseTransform(e),t._container=r.selectAll(".plot-container").data([0]),t._container.enter().insert("div",":first-child").classed("plot-container",!0).classed("plotly",!0).style({width:"100%",height:"100%"}),t._paperdiv=t._container.selectAll(".svg-container").data([0]),t._paperdiv.enter().append("div").classed("user-select-none",!0).classed("svg-container",!0).style("position","relative"),t._glcontainer=t._paperdiv.selectAll(".gl-container").data([{}]),t._glcontainer.enter().append("div").classed("gl-container",!0),t._paperdiv.selectAll(".main-svg").remove(),t._paperdiv.select(".modebar-container").remove(),t._paper=t._paperdiv.insert("svg",":first-child").classed("main-svg",!0),t._toppaper=t._paperdiv.append("svg").classed("main-svg",!0),t._modebardiv=t._paperdiv.append("div"),delete t._modeBar,t._hoverpaper=t._paperdiv.append("svg").classed("main-svg",!0),!t._uid){var n={};j2.selectAll("defs").each(function(){this.id&&(n[this.id.split("-")[1]]=1)}),t._uid=vr.randstr(n)}t._paperdiv.selectAll(".main-svg").attr(wfe.svgAttrs),t._defs=t._paper.append("defs").attr("id","defs-"+t._uid),t._clips=t._defs.append("g").classed("clips",!0),t._topdefs=t._toppaper.append("defs").attr("id","topdefs-"+t._uid),t._topclips=t._topdefs.append("g").classed("clips",!0),t._bgLayer=t._paper.append("g").classed("bglayer",!0),t._draggers=t._paper.append("g").classed("draglayer",!0);var a=t._paper.append("g").classed("layer-below",!0);t._imageLowerLayer=a.append("g").classed("imagelayer",!0),t._shapeLowerLayer=a.append("g").classed("shapelayer",!0),t._cartesianlayer=t._paper.append("g").classed("cartesianlayer",!0),t._polarlayer=t._paper.append("g").classed("polarlayer",!0),t._smithlayer=t._paper.append("g").classed("smithlayer",!0),t._ternarylayer=t._paper.append("g").classed("ternarylayer",!0),t._geolayer=t._paper.append("g").classed("geolayer",!0),t._funnelarealayer=t._paper.append("g").classed("funnelarealayer",!0),t._pielayer=t._paper.append("g").classed("pielayer",!0),t._iciclelayer=t._paper.append("g").classed("iciclelayer",!0),t._treemaplayer=t._paper.append("g").classed("treemaplayer",!0),t._sunburstlayer=t._paper.append("g").classed("sunburstlayer",!0),t._indicatorlayer=t._toppaper.append("g").classed("indicatorlayer",!0),t._glimages=t._paper.append("g").classed("glimages",!0);var o=t._toppaper.append("g").classed("layer-above",!0);t._imageUpperLayer=o.append("g").classed("imagelayer",!0),t._shapeUpperLayer=o.append("g").classed("shapelayer",!0),t._selectionLayer=t._toppaper.append("g").classed("selectionlayer",!0),t._infolayer=t._toppaper.append("g").classed("infolayer",!0),t._menulayer=t._toppaper.append("g").classed("menulayer",!0),t._zoomlayer=t._toppaper.append("g").classed("zoomlayer",!0),t._hoverlayer=t._hoverpaper.append("g").classed("hoverlayer",!0),t._modebardiv.classed("modebar-container",!0).style("position","absolute").style("top","0px").style("right","0px"),e.emit("plotly_framework")}nt.animate=Gfe;nt.addFrames=Yfe;nt.deleteFrames=Xfe;nt.addTraces=kF;nt.deleteTraces=SF;nt.extendTraces=TF;nt.moveTraces=Eb;nt.prependTraces=AF;nt.newPlot=Lfe;nt._doPlot=Afe;nt.purge=Wfe;nt.react=Ufe;nt.redraw=Efe;nt.relayout=Hc;nt.restyle=td;nt.setPlotConfig=Sfe;nt.update=ad;nt._guiRelayout=Lb(Hc);nt._guiRestyle=Lb(td);nt._guiUpdate=Lb(ad);nt._storeDirectGUIEdit=Pfe});var Zs=xe(hi=>{"use strict";var $fe=Cr();hi.getDelay=function(e){return e._has&&(e._has("gl3d")||e._has("map"))?500:0};hi.getRedrawFunc=function(e){return function(){$fe.getComponentMethod("colorbar","draw")(e)}};hi.encodeSVG=function(e){return"data:image/svg+xml,"+encodeURIComponent(e)};hi.encodeJSON=function(e){return"data:application/json,"+encodeURIComponent(e)};var PF=window.URL||window.webkitURL;hi.createObjectURL=function(e){return PF.createObjectURL(e)};hi.revokeObjectURL=function(e){return PF.revokeObjectURL(e)};hi.createBlob=function(e,r){if(r==="svg")return new window.Blob([e],{type:"image/svg+xml;charset=utf-8"});if(r==="full-json")return new window.Blob([e],{type:"application/json;charset=utf-8"});var t=Kfe(window.atob(e));return new window.Blob([t],{type:"image/"+r})};hi.octetStream=function(e){document.location.href="data:application/octet-stream"+e};hi.getPlotTitle=function(e){var n,a,o,i;var r=e._fullLayout;if(r){var t=(n=r.title)==null?void 0:n.text;return t===((a=r._dfltTitle)==null?void 0:a.plot)?void 0:t}return(i=(o=e.layout)==null?void 0:o.title)==null?void 0:i.text};hi.getPlotSubtitle=function(e){var n,a,o,i,l,u;var r=e._fullLayout;if(r){var t=(a=(n=r.title)==null?void 0:n.subtitle)==null?void 0:a.text;return t===((o=r._dfltTitle)==null?void 0:o.subtitle)?void 0:t}return(u=(l=(i=e.layout)==null?void 0:i.title)==null?void 0:l.subtitle)==null?void 0:u.text};function Kfe(e){for(var r=e.length,t=new ArrayBuffer(r),n=new Uint8Array(t),a=0;a{"use strict";var Fb=lt(),e7e=tr(),Qfe=At(),jfe=Zr(),r7e=(wl(),or(_l)),Rb=/"/g,Js="TOBESTRIPPED",ece=new RegExp(`("${Js})|(${Js}")|("${Js})|(${Js}")`,"g"),rce=["&","&","&",""",""",""","'","'","'"],tce=["<","<","<"],nce=[">",">",">"];function ace(e){let r=Fb.select("body").append("div").style({display:"none"}).html(""),t=e.replace(/(&[^;]*;)/gi,n=>{let a=n.toLowerCase();return rce.includes(a)?n:tce.includes(a)?"<":nce.includes(a)?">":n.includes("<")||n.includes(">")?"":r.html(n).text()});return r.remove(),t}function ice(e){return e.replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&")}IF.exports=function(r,t,n){var a=r._fullLayout,o=a._paper,i=a._toppaper,l=a.width,u=a.height,s;o.insert("rect",":first-child").call(Qfe.setRect,0,0,l,u).call(jfe.fill,a.paper_bgcolor);var f=a._basePlotModules||[];for(s=0;s{"use strict";var oce=tr(),lce=e1().EventEmitter,Gc=Zs();function sce(e){var r=e.emitter||new lce,t=new Promise(function(n,a){var o=window.Image,i=e.svg,l=e.format||"png",u=e.canvas,s=e.scale||1,f=e.width||300,c=e.height||150,g=s*f,x=s*c,h=u.getContext("2d",{willReadFrequently:!0}),_=new o,T,m;l==="svg"||oce.isSafari()?m=Gc.encodeSVG(i):(T=Gc.createBlob(i,"svg"),m=Gc.createObjectURL(T)),u.width=g,u.height=x,_.onload=function(){var k;switch(T=null,Gc.revokeObjectURL(m),l!=="svg"&&h.drawImage(_,0,0,g,x),l){case"jpeg":k=u.toDataURL("image/jpeg");break;case"png":k=u.toDataURL("image/png");break;case"webp":k=u.toDataURL("image/webp");break;case"svg":k=m;break;default:var S="Image format is not jpeg, png, svg or webp.";if(a(new Error(S)),!e.promise)return r.emit("error",S)}n(k),e.promise||r.emit("success",k)},_.onerror=function(k){if(T=null,Gc.revokeObjectURL(m),a(k),!e.promise)return r.emit("error",k)},_.src=m});return e.promise?t:r}zF.exports=sce});var Ib=xe((a7e,BF)=>{"use strict";var NF=ut(),qF=Db(),uce=Sn(),Mo=tr(),Yc=Zs(),fce=sd(),cce=ud(),vce=uf().version,Pb=(U3(),or(O3)).default;function hce(e,r){r=r||{};var t,n,a,o;Mo.isPlainObject(e)?(t=e.data||[],n=e.layout||{},a=e.config||{},o={}):(e=Mo.getGraphDiv(e),t=Mo.extendDeep([],e.data),n=Mo.extendDeep({},e.layout),a=e._context,o=e._fullLayout||{});function i(d){return!(d in r)||Mo.validate(r[d],Pb[d])}if(!i("width")&&r.width!==null||!i("height")&&r.height!==null)throw new Error("Height and width should be pixel values.");if(!i("format"))throw new Error("Export format is not "+Mo.join2(Pb.format.values,", "," or ")+".");var l={};function u(d,w){return Mo.coerce(r,l,Pb,d,w)}var s=u("format"),f=u("width"),c=u("height"),g=u("scale"),x=u("setBackground"),h=u("imageDataOnly"),_=document.createElement("div");_.style.position="absolute",_.style.left="-5000px",document.body.appendChild(_);var T=Mo.extendFlat({},n);f?T.width=f:r.width===null&&NF(o.width)&&(T.width=o.width),c?T.height=c:r.height===null&&NF(o.height)&&(T.height=o.height);var m=Mo.extendFlat({},a,{_exportedPlot:!0,staticPlot:!0,setBackground:x}),k=Yc.getRedrawFunc(_);function S(){return new Promise(function(d){setTimeout(d,Yc.getDelay(_._fullLayout))})}function b(){return new Promise(function(d,w){var y=fce(_,s,g),v=_._fullLayout.width,A=_._fullLayout.height;function p(){qF.purge(_),document.body.removeChild(_)}if(s==="full-json"){var D=uce.graphJson(_,!1,"object",!0,!0);return D.version=vce,D=JSON.stringify(D),p(),d(h?D:Yc.encodeJSON(D))}if(p(),s==="svg")return d(h?y:Yc.encodeSVG(y));var E=document.createElement("canvas");E.id=Mo.randstr(),cce({format:s,width:v,height:A,scale:g,canvas:E,svg:y,promise:!0}).then(d).catch(w)})}function M(d){return h?d.replace(Yc.IMAGE_URL_PREFIX,""):d}return new Promise(function(d,w){qF.newPlot(_,t,T,m).then(k).then(S).then(b).then(function(y){d(M(y))}).catch(function(y){w(y)})})}BF.exports=hce});var HF=xe((i7e,UF)=>{"use strict";var di=tr(),dce=Sn(),pce=Z0(),gce=ol().dfltConfig,Ni=di.isPlainObject,Ks=Array.isArray,zb=di.isArrayOrTypedArray;UF.exports=function(r,t){r===void 0&&(r=[]),t===void 0&&(t={});var n=pce.get(),a=[],o={_context:di.extendFlat({},gce)},i,l;Ks(r)?(o.data=di.extendDeep([],r),i=r):(o.data=[],i=[],a.push(Dn("array","data"))),Ni(t)?(o.layout=di.extendDeep({},t),l=t):(o.layout={},l={},arguments.length>1&&a.push(Dn("object","layout"))),dce.supplyDefaults(o);for(var u=o._fullData,s=i.length,f=0;fc.length&&n.push(Dn("unused",a,s.concat(c.length)));var m=c.length,k=Array.isArray(T);k&&(m=Math.min(m,T.length));var S,b,M,d,w;if(g.dimensions===2)for(b=0;bc[b].length&&n.push(Dn("unused",a,s.concat(b,c[b].length)));var y=c[b].length;for(S=0;S<(k?Math.min(y,T[b].length):y);S++)M=k?T[b][S]:T,d=f[b][S],w=c[b][S],di.validate(d,M)?w!==d&&w!==+d&&n.push(Dn("dynamic",a,s.concat(b,S),d,w)):n.push(Dn("value",a,s.concat(b,S),d))}else n.push(Dn("array",a,s.concat(b),f[b]));else for(b=0;b{"use strict";var Mce=tr(),cd=Zs();function Tce(e,r,t){var n=document.createElement("a"),a="download"in n,o=new Promise(function(i,l){var u,s;if(a)return u=cd.createBlob(e,t),s=cd.createObjectURL(u),n.href=s,n.download=r,document.body.appendChild(n),n.click(),document.body.removeChild(n),cd.revokeObjectURL(s),u=null,i(r);if(Mce.isSafari()){var f=t==="svg"?",":";base64,";return cd.octetStream(f+encodeURIComponent(e)),i(r)}l(new Error("download error"))});return o}VF.exports=Tce});var Nb=xe((l7e,ZF)=>{"use strict";var vd=tr(),YF=Qn(),Ace=Ib(),kce=GF(),XF=Zs(),WF=40;function Sce(e,r){var t;return vd.isPlainObject(e)||(t=vd.getGraphDiv(e)),r=r||{},r.format=r.format||"png",r.width=r.width||null,r.height=r.height||null,r.imageDataOnly=!0,new Promise(function(n,a){t&&t._snapshotInProgress&&a(new Error("Image capture already in progress.")),t&&(t._snapshotInProgress=!0);var o=Ace(e,r),i=r.filename||e.fn;if(!i){let u=XF.getPlotTitle(e);if(u&&!YF.matchTex(u))i=vd.slugify(u,WF);else{let s=XF.getPlotSubtitle(e);s&&!YF.matchTex(s)&&(i=vd.slugify(s,WF))}}var l=i||"plot-image";l+="."+r.format.replace("-","."),o.then(function(u){return t&&(t._snapshotInProgress=!1),kce(u,l,r.format)}).then(function(u){n(u)}).catch(function(u){t&&(t._snapshotInProgress=!1),a(u)})})}ZF.exports=Sce});var jF=xe(qb=>{"use strict";var Pa=tr(),Ia=Pa.isPlainObject,JF=Z0(),$F=Sn(),Cce=Zn(),KF=Tt(),QF=ol().dfltConfig;qb.makeTemplate=function(e){e=Pa.isPlainObject(e)?e:Pa.getGraphDiv(e),e=Pa.extendDeep({_context:QF},{data:e.data,layout:e.layout}),$F.supplyDefaults(e);var r=e.data||[],t=e.layout||{};t._basePlotModules=e._fullLayout._basePlotModules,t._modules=e._fullLayout._modules;var n={data:{},layout:{}};r.forEach(function(x){var h={};Xc(x,h,Lce.bind(null,x));var _=Pa.coerce(x,{},Cce,"type"),T=n.data[_];T||(T=n.data[_]=[]),T.push(h)}),Xc(t,n.layout,Ece.bind(null,t)),delete n.layout.template;var a=t.template;if(Ia(a)){var o=a.layout,i,l,u,s,f,c;Ia(o)&&hd(o,n.layout);var g=a.data;if(Ia(g)){for(l in n.data)if(u=g[l],Array.isArray(u)){for(f=n.data[l],c=f.length,s=u.length,i=0;im?i.push({code:"unused",traceType:x,templateCount:T,dataCount:m}):m>T&&i.push({code:"reused",traceType:x,templateCount:T,dataCount:m})}}function k(S,b){for(var M in S)if(M.charAt(0)!=="_"){var d=S[M],w=pi(S,M,b);Ia(d)?(Array.isArray(S)&&d._template===!1&&d.templateitemname&&i.push({code:"missing",path:w,templateitemname:d.templateitemname}),k(d,w)):Array.isArray(d)&&Dce(d)&&k(d,w)}}if(k({data:u,layout:l},""),i.length)return i.map(Rce)};function Dce(e){for(var r=0;r{"use strict";var xn=Db();Nt._doPlot=xn._doPlot;Nt.newPlot=xn.newPlot;Nt.restyle=xn.restyle;Nt.relayout=xn.relayout;Nt.redraw=xn.redraw;Nt.update=xn.update;Nt._guiRestyle=xn._guiRestyle;Nt._guiRelayout=xn._guiRelayout;Nt._guiUpdate=xn._guiUpdate;Nt._storeDirectGUIEdit=xn._storeDirectGUIEdit;Nt.react=xn.react;Nt.extendTraces=xn.extendTraces;Nt.prependTraces=xn.prependTraces;Nt.addTraces=xn.addTraces;Nt.deleteTraces=xn.deleteTraces;Nt.moveTraces=xn.moveTraces;Nt.purge=xn.purge;Nt.addFrames=xn.addFrames;Nt.deleteFrames=xn.deleteFrames;Nt.animate=xn.animate;Nt.setPlotConfig=xn.setPlotConfig;var Fce=Pf().getGraphDiv,Pce=M2().eraseActiveShape;Nt.deleteActiveShape=function(e){return Pce(Fce(e))};Nt.toImage=Ib();Nt.validate=HF();Nt.downloadImage=Nb();var eP=jF();Nt.makeTemplate=eP.makeTemplate;Nt.validateTemplate=eP.validateTemplate});var nP=xe((f7e,tP)=>{"use strict";var Bb=tr(),Ice=Cr();tP.exports=function(r,t,n,a){var o=a("x"),i=a("y"),l,u=Ice.getComponentMethod("calendars","handleTraceDefaults");if(u(r,t,["x","y"],n),o){var s=Bb.minRowLength(o);i?l=Math.min(s,Bb.minRowLength(i)):(l=s,a("y0"),a("dy"))}else{if(!i)return 0;l=Bb.minRowLength(i),a("x0"),a("dx")}return t._length=l,l}});var lP=xe((c7e,oP)=>{"use strict";var aP=tr().dateTick0,zce=(wn(),or(Rn)),Nce=zce.ONEWEEK;function iP(e,r){return e%Nce===0?aP(r,1):aP(r,0)}oP.exports=function(r,t,n,a,o){if(o||(o={x:!0,y:!0}),o.x){var i=a("xperiod");i&&(a("xperiod0",iP(i,t.xcalendar)),a("xperiodalignment"))}if(o.y){var l=a("yperiod");l&&(a("yperiod0",iP(l,t.ycalendar)),a("yperiodalignment"))}}});var fP=xe((v7e,uP)=>{"use strict";var sP=["orientation","groupnorm","stackgaps"];uP.exports=function(r,t,n,a){var o=n._scatterStackOpts,i=a("stackgroup");if(i){var l=t.xaxis+t.yaxis,u=o[l];u||(u=o[l]={});var s=u[i],f=!1;s?s.traces.push(t):(s=u[i]={traceIndices:[],traces:[t]},f=!0);for(var c={orientation:t.x&&!t.y?"h":"v"},g=0;g{"use strict";var cP=Zr(),vP=ao().hasColorscale,hP=oo(),qce=Da();dP.exports=function(r,t,n,a,o,i={}){var l=qce.isBubble(r),u=(r.line||{}).color,s;if(u&&(n=u),o("marker.symbol"),o("marker.opacity",l?.7:1),o("marker.size"),i.noAngle||(o("marker.angle"),i.noAngleRef||o("marker.angleref"),i.noStandOff||o("marker.standoff")),o("marker.color",n),vP(r,"marker")&&hP(r,t,a,o,{prefix:"marker.",cLetter:"c"}),i.noSelect||(o("selected.marker.color"),o("unselected.marker.color"),o("selected.marker.size"),o("unselected.marker.size")),i.noLine||(u&&!Array.isArray(u)&&t.marker.color!==u?s=u:l?s=cP.background:s=cP.defaultLine,o("marker.line.color",s),vP(r,"marker.line")&&hP(r,t,a,o,{prefix:"marker.line.",cLetter:"c"}),o("marker.line.width",l?1:0),i.noLineDash||o("marker.line.dash")),l&&(o("marker.sizeref"),o("marker.sizemin"),o("marker.sizemode")),i.gradient){var f=o("marker.gradient.type");f!=="none"&&o("marker.gradient.color")}}});var Ub=xe((d7e,pP)=>{"use strict";var Bce=tr().isArrayOrTypedArray,Oce=ao().hasColorscale,Uce=oo();pP.exports=function(r,t,n,a,o,i){i||(i={});var l=(r.marker||{}).color;if(l&&l._inputArray&&(l=l._inputArray),o("line.color",n),Oce(r,"line"))Uce(r,t,a,o,{prefix:"line.",cLetter:"c"});else{var u=(Bce(l)?!1:l)||n;o("line.color",u)}o("line.width"),i.noDash||o("line.dash"),i.backoff&&o("line.backoff")}});var yP=xe((p7e,gP)=>{"use strict";gP.exports=function(r,t,n){var a=n("line.shape");a==="spline"&&n("line.smoothing")}});var Hb=xe((g7e,mP)=>{"use strict";var Hce=tr();mP.exports=function(e,r,t,n,a){a=a||{},n("textposition"),Hce.coerceFont(n,"textfont",a.font||t.font,a),a.noSelect||(n("selected.textfont.color"),n("unselected.textfont.color"))}});var _P=xe((y7e,xP)=>{"use strict";var pd=Zr(),bP=tr().isArrayOrTypedArray;function Vce(e){for(var r=pd.interpolate(e[0][1],e[1][1],.5),t=2;t{"use strict";var wP=tr(),Gce=Cr(),Yce=Ws(),Xce=(U2(),or(O2)),wu=Da(),Wce=nP(),Zce=lP(),Jce=fP(),$ce=Ob(),Kce=Ub(),MP=yP(),Qce=Hb(),jce=_P(),eve=tr().coercePattern;TP.exports=function(r,t,n,a){function o(x,h){return wP.coerce(r,t,Yce,x,h)}var i=Wce(r,t,a,o);if(i||(t.visible=!1),!!t.visible){Zce(r,t,a,o),o("xhoverformat"),o("yhoverformat"),o("zorder");var l=Jce(r,t,a,o);a.scattermode==="group"&&t.orientation===void 0&&o("orientation","v");var u=!l&&i{"use strict";var rve=yc().getAxisGroup;kP.exports=function(r,t,n,a,o){var i=t.orientation,l=t[{v:"x",h:"y"}[i]+"axis"],u=rve(n,l)+i,s=n._alignmentOpts||{},f=a("alignmentgroup"),c=s[u];c||(c=s[u]={});var g=c[f];g?g.traces.push(t):g=c[f]={traces:[t],alignmentIndex:Object.keys(c).length,offsetGroups:{}};var x=a("offsetgroup")||"",h=g.offsetGroups,_=h[x];t._offsetIndex=0,(o!=="group"||x)&&(_||(_=h[x]={offsetIndex:Object.keys(h).length}),t._offsetIndex=_.offsetIndex)}});var EP=xe((x7e,CP)=>{"use strict";var tve=tr(),nve=SP(),ave=Ws();CP.exports=function(r,t){var n,a,o,i=t.scattermode;function l(g){return tve.coerce(a._input,a,ave,g)}if(t.scattermode==="group")for(o=0;o=0;f--){var c=r[f];if(c.type==="scatter"&&c.xaxis===u.xaxis&&c.yaxis===u.yaxis){c.opacity=void 0;break}}}}}});var DP=xe((_7e,LP)=>{"use strict";var ive=tr(),ove=i1();LP.exports=function(e,r){function t(a,o){return ive.coerce(e,r,ove,a,o)}var n=r.barmode==="group";r.scattermode==="group"&&t("scattergap",n?r.bargap:.2)}});var PP=xe((w7e,FP)=>{"use strict";var lve=ut(),RP=tr(),sve=RP.dateTime2ms,gd=RP.incrementMonth,uve=(wn(),or(Rn)),fve=uve.ONEAVGMONTH;FP.exports=function(r,t,n,a){if(t.type!=="date")return{vals:a};var o=r[n+"periodalignment"];if(!o)return{vals:a};var i=r[n+"period"],l;if(lve(i)){if(i=+i,i<=0)return{vals:a}}else if(typeof i=="string"&&i.charAt(0)==="M"){var u=+i.substring(1);if(u>0&&Math.round(u)===u)l=u;else return{vals:a}}for(var s=t.calendar,f=o==="start",c=o==="end",g=r[n+"period0"],x=sve(g,s)||0,h=[],_=[],T=[],m=a.length,k=0;kS;)d=gd(d,-l,s);for(;d<=S;)d=gd(d,l,s);M=gd(d,-l,s)}else{for(b=Math.round((S-x)/i),d=x+b*i;d>S;)d-=i;for(;d<=S;)d+=i;M=d-i}h[k]=f?M:c?d:(M+d)/2,_[k]=M,T[k]=d}return{vals:h,starts:_,ends:T}}});var Yb=xe((M7e,zP)=>{"use strict";var Vb=ao().hasColorscale,Gb=Tl(),IP=Da();zP.exports=function(r,t){IP.hasLines(t)&&Vb(t,"line")&&Gb(r,t,{vals:t.line.color,containerStr:"line",cLetter:"c"}),IP.hasMarkers(t)&&(Vb(t,"marker")&&Gb(r,t,{vals:t.marker.color,containerStr:"marker",cLetter:"c"}),Vb(t,"marker.line")&&Gb(r,t,{vals:t.marker.line.color,containerStr:"marker.line",cLetter:"c"}))}});var yd=xe((T7e,NP)=>{"use strict";var Qt=tr();NP.exports=function(r,t){for(var n=0;n{"use strict";var qP=tr();BP.exports=function(r,t){qP.isArrayOrTypedArray(t.selectedpoints)&&qP.tagSelected(r,t)}});var $b=xe((k7e,WP)=>{"use strict";var UP=ut(),Wb=tr(),Wc=Vt(),HP=PP(),Xb=(wn(),or(Rn)).BADNUM,Zb=Da(),cve=Yb(),vve=yd(),hve=OP();function dve(e,r){var t=e._fullLayout,n=r._xA=Wc.getFromId(e,r.xaxis||"x","x"),a=r._yA=Wc.getFromId(e,r.yaxis||"y","y"),o=n.makeCalcdata(r,"x"),i=a.makeCalcdata(r,"y"),l=HP(r,n,"x",o),u=HP(r,a,"y",i),s=l.vals,f=u.vals,c=r._length,g=new Array(c),x=r.ids,h=Jb(r,t,n,a),_=!1,T,m,k,S,b,M;YP(t,r);var d="x",w="y",y;if(h)Wb.pushUnique(h.traceIndices,r.index),T=h.orientation==="v",T?(w="s",y="x"):(d="s",y="y"),b=h.stackgaps==="interpolate";else{var v=GP(r,c);VP(e,r,n,a,s,f,v)}var A=!!r.xperiodalignment,p=!!r.yperiodalignment;for(m=0;mm&&g[S].gap;)S--;for(M=g[S].s,k=g.length-1;k>S;k--)g[k].s=M;for(;m{"use strict";ZP.exports=md;var pve=tr().distinctVals;function md(e,r){this.traces=e,this.sepNegVal=r.sepNegVal,this.overlapNoMerge=r.overlapNoMerge;for(var t=1/0,n=r.posAxis._id.charAt(0),a=[],o=0;ogve,eventDataKeys:()=>yve});var gve,yve,KP=Ut(()=>{"use strict";gve=3,yve=["value","label"]});var tI=xe((C7e,rI)=>{"use strict";var gi=ut(),{isArrayOrTypedArray:Yo}=tr(),{BADNUM:Mu}=(wn(),or(Rn)),mve=Cr(),Zc=Vt(),{getAxisGroup:bve}=yc(),bd=JP(),{TEXTPAD:xve}=(KP(),or($P)),{LINE_SPACING:_ve}=(Kn(),or($n)),{BR_TAG_ALL:wve}=Qn();function Mve(e,r){for(var t=r.xaxis,n=r.yaxis,a=e._fullLayout,o=e._fullData,i=e.calcdata,l=[],u=[],s=0;su+i||!gi(l))}for(var f=0;fn(o))):n(e.text);let a=e.outsidetextfont.size*_ve*t+xve;return{ppadplus:r.some(o=>o.s<0)?a:0,ppadminus:r.some(o=>o.s>=0)?a:0}}return{ppadplus:void 0,ppadminus:void 0}}function Fve(e,r,t,n){for(var a=Tu(n),o=0;o{"use strict";var nI=$b(),aI=tI().setGroupPositions;function Ive(e,r){for(var t=r.xaxis,n=r.yaxis,a=e._fullLayout,o=e._fullData,i=e.calcdata,l=[],u=[],s=0;sv[f]&&f{"use strict";var Nve=At(),fI=(wn(),or(Rn)),Jc=fI.BADNUM,cI=fI.LOG_CLIP,lI=cI+.5,sI=cI-.5,xd=tr(),qve=xd.segmentsIntersect,uI=xd.constrain,nx=(U2(),or(O2));vI.exports=function(r,t){var n=t.trace||{},a=t.xaxis,o=t.yaxis,i=a.type==="log",l=o.type==="log",u=a._length,s=o._length,f=t.backoff,c=n.marker,g=t.connectGaps,x=t.baseTolerance,h=t.shape,_=h==="linear",T=n.fill&&n.fill!=="none",m=[],k=nx.minTolerance,S=r.length,b=new Array(S),M=0,d,w,y,v,A,p,D,E,R,F,z,P,L,I,B,O;function G(qe){var We=r[qe];if(!We)return!1;var Xe=t.linearized?a.l2p(We.x):a.c2p(We.x),er=t.linearized?o.l2p(We.y):o.c2p(We.y);if(Xe===Jc){if(i&&(Xe=a.c2p(We.x,!0)),Xe===Jc)return!1;l&&er===Jc&&(Xe*=Math.abs(a._m*s*(a._m>0?lI:sI)/(o._m*u*(o._m>0?lI:sI)))),Xe*=1e3}if(er===Jc){if(l&&(er=o.c2p(We.y,!0)),er===Jc)return!1;er*=1e3}return[Xe,er]}function J(qe,We,Xe,er){var nr=Xe-qe,rr=er-We,Qe=.5-qe,Ce=.5-We,ze=nr*nr+rr*rr,Ke=nr*Qe+rr*Ce;if(Ke>0&&Ke1||Math.abs(Qe.y-Xe[0][1])>1)&&(Qe=[Qe.x,Qe.y],er&&Z(Qe,qe)ae||qe[1]te)return[uI(qe[0],$,ae),uI(qe[1],Q,te)]}function Le(qe,We){if(qe[0]===We[0]&&(qe[0]===$||qe[0]===ae)||qe[1]===We[1]&&(qe[1]===Q||qe[1]===te))return!0}function se(qe,We){var Xe=[],er=Ee(qe),nr=Ee(We);return er&&nr&&Le(er,nr)||(er&&Xe.push(er),nr&&Xe.push(nr)),Xe}function X(qe,We,Xe){return function(er,nr){var rr=Ee(er),Qe=Ee(nr),Ce=[];if(rr&&Qe&&Le(rr,Qe))return Ce;rr&&Ce.push(rr),Qe&&Ce.push(Qe);var ze=2*xd.constrain((er[qe]+nr[qe])/2,We,Xe)-((rr||er)[qe]+(Qe||nr)[qe]);if(ze){var Ke;rr&&Qe?Ke=ze>0==rr[qe]>Qe[qe]?rr:Qe:Ke=rr||Qe,Ke[qe]+=ze}return Ce}}var K;h==="linear"||h==="spline"?K=ge:h==="hv"||h==="vh"?K=se:h==="hvh"?K=X(0,$,ae):h==="vhv"&&(K=X(1,Q,te));function ye(qe,We){var Xe=We[0]-qe[0],er=(We[1]-qe[1])/Xe,nr=(qe[1]*We[0]-We[1]*qe[0])/Xe;return nr>0?[er>0?$:ae,te]:[er>0?ae:$,Q]}function oe(qe){var We=qe[0],Xe=qe[1],er=We===b[M-1][0],nr=Xe===b[M-1][1];if(!(er&&nr))if(M>1){var rr=We===b[M-2][0],Qe=Xe===b[M-2][1];er&&(We===$||We===ae)&&rr?Qe?M--:b[M-1]=qe:nr&&(Xe===Q||Xe===te)&&Qe?rr?M--:b[M-1]=qe:b[M++]=qe}else b[M++]=qe}function de(qe){b[M-1][0]!==qe[0]&&b[M-1][1]!==qe[1]&&oe([fe,we]),oe(qe),Te=null,fe=we=0}var pe=xd.isArrayOrTypedArray(c);function me(qe){if(qe&&f&&(qe.i=d,qe.d=r,qe.trace=n,qe.marker=pe?c[qe.i]:c,qe.backoff=f),j=qe[0]/u,V=qe[1]/s,ee=qe[0]<$?$:qe[0]>ae?ae:0,ie=qe[1]te?te:0,ee||ie){if(!M)b[M++]=[ee||qe[0],ie||qe[1]];else if(Te){var We=K(Te,qe);We.length>1&&(de(We[0]),b[M++]=We[1])}else ke=K(b[M-1],qe)[0],b[M++]=ke;var Xe=b[M-1];ee&&ie&&(Xe[0]!==ee||Xe[1]!==ie)?(Te&&(fe!==ee&&we!==ie?oe(fe&&we?ye(Te,qe):[fe||ee,we||ie]):fe&&we&&oe([fe,we])),oe([ee,ie])):fe-ee&&we-ie&&oe([ee||fe,ie||we]),Te=qe,fe=ee,we=ie}else Te&&de(K(Te,qe)[0]),b[M++]=qe}for(d=0;dq(p,Se))break;y=p,L=R[0]*E[0]+R[1]*E[1],L>z?(z=L,v=p,D=!1):L=r.length||!p)break;me(p),w=p}}Te&&oe([fe||Te[0],we||Te[1]]),m.push(b.slice(0,M))}var ve=h.slice(h.length-1);if(f&&ve!=="h"&&ve!=="v"){for(var he=!1,be=-1,Ae=[],Re=0;Re{"use strict";var dI={tonextx:1,tonexty:1,tonext:1};pI.exports=function(r,t,n){var a,o,i,l,u,s={},f=!1,c=-1,g=0,x=-1;for(o=0;o=0?u=x:(u=x=g,g++),u{"use strict";var qi=lt(),Bve=Cr(),$c=tr(),Au=$c.ensureSingle,mI=$c.identity,en=At(),ku=Da(),Ove=hI(),Uve=gI(),_d=rb().tester;bI.exports=function(r,t,n,a,o,i){var l,u,s=!o,f=!!o&&o.duration>0,c=Uve(r,t,n);if(l=a.selectAll("g.trace").data(c,function(x){return x[0].trace.uid}),l.enter().append("g").attr("class",function(x){return"trace scatter trace"+x[0].trace.uid}).style("stroke-miterlimit",2),l.order(),Hve(r,l,t),f){i&&(u=i());var g=qi.transition().duration(o.duration).ease(o.easing).each("end",function(){u&&u()}).each("interrupt",function(){u&&u()});g.each(function(){a.selectAll("g.trace").each(function(x,h){yI(r,h,t,x,c,this,o)})})}else l.each(function(x,h){yI(r,h,t,x,c,this,o)});s&&l.exit().remove(),a.selectAll("path:not([d])").remove()};function Hve(e,r,t){r.each(function(n){var a=Au(qi.select(this),"g","fills");en.setClipUrl(a,t.layerClipId,e);var o=n[0].trace;o._ownFill=null,o._nextFill=null;var i=[];o._ownfill&&i.push("_ownFill"),o._nexttrace&&i.push("_nextFill");var l=a.selectAll("g").data(i,mI);l.enter().append("g"),l.exit().remove(),l.order().each(function(u){o[u]=Au(qi.select(this),"path","js-fill")})})}function yI(e,r,t,n,a,o,i){var l=e._context.staticPlot,u;Vve(e,r,t,n,a);var s=!!i&&i.duration>0;function f(X){return s?X.transition():X}var c=t.xaxis,g=t.yaxis,x=n[0].trace,h=x.line,_=qi.select(o),T=Au(_,"g","errorbars"),m=Au(_,"g","lines"),k=Au(_,"g","points"),S=Au(_,"g","text");if(Bve.getComponentMethod("errorbars","plot")(e,T,t,i),x.visible!==!0)return;f(_).style("opacity",x.opacity);var b,M,d=x.fill.charAt(x.fill.length-1);d!=="x"&&d!=="y"&&(d="");var w,y;d==="y"?(w=1,y=g.c2p(0,!0)):d==="x"&&(w=0,y=c.c2p(0,!0)),n[0][t.isRangePlot?"nodeRangePlot3":"node3"]=_;var v="",A=[],p=x._prevtrace,D=null,E=null;p&&(v=p._prevRevpath||"",M=p._nextFill,A=p._ownPolygons,D=p._fillsegments,E=p._fillElement);var R,F,z="",P="",L,I,B,O,G,J,j=[];x._polygons=[];var V=[],q=[],Z=$c.noop;if(b=x._ownFill,ku.hasLines(x)||x.fill!=="none"){M&&M.datum(n),["hv","vh","hvh","vhv"].indexOf(h.shape)!==-1?(L=en.steps(h.shape),I=en.steps(h.shape.split("").reverse().join(""))):h.shape==="spline"?L=I=function(X){var K=X[X.length-1];return X.length>1&&X[0][0]===K[0]&&X[0][1]===K[1]?en.smoothclosed(X.slice(1),h.smoothing):en.smoothopen(X,h.smoothing)}:L=I=function(X){return"M"+X.join("L")},B=function(X){return I(X.reverse())},q=Ove(n,{xaxis:c,yaxis:g,trace:x,connectGaps:x.connectgaps,baseTolerance:Math.max(h.width||1,3)/4,shape:h.shape,backoff:h.backoff,simplify:h.simplify,fill:x.fill}),V=new Array(q.length);var re=0;for(u=0;u=l[0]&&_.x<=l[1]&&_.y>=u[0]&&_.y<=u[1]}),g=Math.ceil(c.length/f),x=0;a.forEach(function(_,T){var m=_[0].trace;ku.hasMarkers(m)&&m.marker.maxdisplayed>0&&T{"use strict";_I.exports={container:"marker",min:"cmin",max:"cmax"}});var TI=xe((P7e,MI)=>{"use strict";var wd=Vt();MI.exports=function(r,t,n){var a={},o={_fullLayout:n},i=wd.getFromTrace(o,t,"x"),l=wd.getFromTrace(o,t,"y"),u=r.orig_x;u===void 0&&(u=r.x);var s=r.orig_y;return s===void 0&&(s=r.y),a.xLabel=wd.tickText(i,i.c2l(u),!0).text,a.yLabel=wd.tickText(l,l.c2l(s),!0).text,a}});var lx=xe((I7e,AI)=>{"use strict";var ax=lt(),Su=At(),Gve=Cr();function Yve(e){var r=ax.select(e).selectAll("g.trace.scatter");r.style("opacity",function(t){return t[0].trace.opacity}),r.selectAll("g.points").each(function(t){var n=ax.select(this),a=t.trace||t[0].trace;ix(n,a,e)}),r.selectAll("g.text").each(function(t){var n=ax.select(this),a=t.trace||t[0].trace;ox(n,a,e)}),r.selectAll("g.trace path.js-line").call(Su.lineGroupStyle),r.selectAll("g.trace path.js-fill").call(Su.fillGroupStyle,e,!1),Gve.getComponentMethod("errorbars","style")(r)}function ix(e,r,t){Su.pointStyle(e.selectAll("path.point"),r,t)}function ox(e,r,t){Su.textPointStyle(e.selectAll("text"),r,t)}function Xve(e,r,t){var n=r[0].trace;n.selectedpoints?(Su.selectedPointStyle(t.selectAll("path.point"),n),Su.selectedTextStyle(t.selectAll("text"),n)):(ix(t,n,e),ox(t,n,e))}AI.exports={style:Yve,stylePoints:ix,styleText:ox,styleOnSelect:Xve}});var SI=xe((z7e,kI)=>{"use strict";var Cu=Zr(),Wve=Da();kI.exports=function(r,t){var n,a;if(r.mode==="lines")return n=r.line.color,n&&Cu.opacity(n)?n:r.fillcolor;if(r.mode==="none")return r.fill?r.fillcolor:"";var o=t.mcc||t.mc||(r.marker||{}).color,i=t.mlcc||((r.marker||{}).line||{}).color;return a=o&&Cu.opacity(o)?o:i&&Cu.opacity(i)&&(t.mlw||((r.marker||{}).line||{}).width)?i:"",a?Cu.opacity(a)<.3?Cu.addOpacity(a,.3):a:(n=(r.line||{}).color,n&&Cu.opacity(n)&&Wve.hasLines(r)&&r.line.width?n:r.fillcolor)}});var LI=xe((N7e,EI)=>{"use strict";var Md=tr(),CI=yo(),Zve=Cr(),Jve=SI(),sx=Zr(),$ve=Md.fillText;EI.exports=function(r,t,n,a){var o=r.cd,i=o[0].trace,l=r.xa,u=r.ya,s=l.c2p(t),f=u.c2p(n),c=[s,f],g=i.hoveron||"",x=i.mode.indexOf("markers")!==-1?3:.5,h=!!i.xperiodalignment,_=!!i.yperiodalignment;if(g.indexOf("points")!==-1){var T=function(P){if(h){var L=l.c2p(P.xStart),I=l.c2p(P.xEnd);return s>=Math.min(L,I)&&s<=Math.max(L,I)?0:1/0}var B=Math.max(3,P.mrc||0),O=1-1/B,G=Math.abs(l.c2p(P.x)-s);return G=Math.min(L,I)&&f<=Math.max(L,I)?0:1/0}var B=Math.max(3,P.mrc||0),O=1-1/B,G=Math.abs(u.c2p(P.y)-f);return Gj!=te>=j&&($=Z[q-1][0],ae=Z[q][0],te-Q&&(re=$+(ae-$)*(j-Q)/(te-Q),B=Math.min(B,re),O=Math.max(O,re)));return B=Math.max(B,0),O=Math.min(O,l._length),{x0:B,x1:O,y0:j,y1:j}}if(g.indexOf("fills")!==-1&&i._fillElement){var R=D(i._fillElement)&&!D(i._fillExclusionElement);if(R){var F=E(i._polygons);F===null&&(F={x0:c[0],x1:c[0],y0:c[1],y1:c[1]});var z=sx.defaultLine;return sx.opacity(i.fillcolor)?z=i.fillcolor:sx.opacity((i.line||{}).color)&&(z=i.line.color),Md.extendFlat(r,{distance:r.maxHoverDistance,x0:F.x0,x1:F.x1,y0:F.y0,y1:F.y1,color:z,hovertemplate:!1}),delete r.index,i.text&&!Md.isArrayOrTypedArray(i.text)?r.text=String(i.text):r.text=i.name,[r]}}}});var FI=xe((q7e,RI)=>{"use strict";var DI=Da();RI.exports=function(r,t){var n=r.cd,a=r.xaxis,o=r.yaxis,i=[],l=n[0].trace,u,s,f,c,g=l.mode&&!DI.hasMarkers(l)&&!DI.hasText(l);if(g)return[];if(t===!1)for(u=0;u{"use strict";PI.exports={xaxis:{valType:"subplotid",dflt:"x",editType:"calc+clearAxisTypes"},yaxis:{valType:"subplotid",dflt:"y",editType:"calc+clearAxisTypes"}}});var fx=xe((O7e,qI)=>{"use strict";var Td=Cr().traceIs,ux=Sm();qI.exports=function(r,t,n,a){n("autotypenumbers",a.autotypenumbersDflt);var o=n("type",(a.splomStash||{}).type);o==="-"&&(Kve(t,a.data),t.type==="-"?t.type="linear":r.type=t.type)};function Kve(e,r){if(e.type==="-"){var t=e._id,n=t.charAt(0),a;t.indexOf("scene")!==-1&&(t=n);var o=Qve(r,t,n);if(o){if(o.type==="histogram"&&n==={v:"y",h:"x"}[o.orientation||"v"]){e.type="linear";return}var i=n+"calendar",l=o[i],u={noMultiCategory:!Td(o,"cartesian")||Td(o,"noMultiCategory")};if(o.type==="box"&&o._hasPreCompStats&&n==={h:"x",v:"y"}[o.orientation||"v"]&&(u.noMultiCategory=!0),u.autotypenumbers=e.autotypenumbers,NI(o,n)){var s=zI(o),f=[];for(a=0;a0&&(a["_"+t+"axes"]||{})[r])return a;if((a[t+"axis"]||t)===r){if(NI(a,t))return a;if((a[t]||[]).length||a[t+"0"])return a}}}function zI(e){return{v:"x",h:"y"}[e.orientation||"v"]}function NI(e,r){var t=zI(e),n=Td(e,"box-violin");return n&&r===t&&e[t]===void 0&&e[t+"0"]===void 0}});var OI=xe((U7e,BI)=>{"use strict";var jve=ba().isTypedArraySpec;function ehe(e,r){var t=r.dataAttr||e._id.charAt(0),n={},a,o,i;if(r.axData)a=r.axData;else for(a=[],o=0;o0||jve(o),l;i&&(l="array");var u=n("categoryorder",l),s;u==="array"&&(s=n("categoryarray")),!i&&u==="array"&&(u=t.categoryorder="trace"),u==="trace"?t._initialCategories=[]:u==="array"?t._initialCategories=s.slice():(s=ehe(t,a).sort(),u==="category ascending"?t._initialCategories=s:u==="category descending"&&(t._initialCategories=s.reverse()))}}});var VI=xe((H7e,HI)=>{"use strict";var UI=Zr(),rhe=to(),the=tr();HI.exports=function(r,t,n,a){a=a||{};var o=a.dfltColor;function i(y,v){return the.coerce2(r,t,a.attributes,y,v)}var l=i("linecolor",o),u=i("linewidth"),s=n("showline",a.showLine||!!l||!!u);s||(delete t.linecolor,delete t.linewidth);var f=UI.mix(o,a.bgColor,a.blend||rhe.lightFraction),c=i("gridcolor",f),g=i("gridwidth"),x=i("griddash"),h=n("showgrid",a.showGrid||!!c||!!g||!!x);if(h||(delete t.gridcolor,delete t.gridwidth,delete t.griddash),a.hasMinor){var _=UI.mix(t.gridcolor,a.bgColor,67),T=i("minor.gridcolor",_),m=i("minor.gridwidth",t.gridwidth||1),k=i("minor.griddash",t.griddash||"solid"),S=n("minor.showgrid",!!T||!!m||!!k);S||(delete t.minor.gridcolor,delete t.minor.gridwidth,delete t.minor.griddash)}if(!a.noZeroLine){var b=i("zerolinelayer"),M=i("zerolinecolor",o),d=i("zerolinewidth"),w=n("zeroline",a.showGrid||!!M||!!d);w||(delete t.zerolinelayer,delete t.zerolinecolor,delete t.zerolinewidth)}}});var kd=xe((V7e,JI)=>{"use strict";var GI=ut(),nhe=Cr(),Kc=tr(),ahe=Tt(),ihe=Ri(),cx=ai(),YI=Ky(),XI=jy(),ohe=tm(),lhe=nm(),she=OI(),uhe=VI(),fhe=Jm(),WI=C1(),Ad=(kn(),or(An)).WEEKDAY_PATTERN,che=(kn(),or(An)).HOUR_PATTERN;JI.exports=function(r,t,n,a,o){var i=a.letter,l=a.font||{},u=a.splomStash||{},s=n("visible",!a.visibleDflt),f=t._template||{},c=t.type||f.type||"-",g;if(c==="date"){var x=nhe.getComponentMethod("calendars","handleDefaults");x(r,t,"calendar",a.calendar),a.noTicklabelmode||(g=n("ticklabelmode"))}!a.noTicklabelindex&&(c==="date"||c==="linear")&&n("ticklabelindex");var h="";(!a.noTicklabelposition||c==="multicategory")&&(h=Kc.coerce(r,t,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:g==="period"?["outside","inside"]:i==="x"?["outside","inside","outside left","inside left","outside right","inside right"]:["outside","inside","outside top","inside top","outside bottom","inside bottom"]}},"ticklabelposition")),a.noTicklabeloverflow||n("ticklabeloverflow",h.indexOf("inside")!==-1?"hide past domain":c==="category"||c==="multicategory"?"allow":"hide past div"),WI(t,o),fhe(r,t,n,a),she(r,t,n,a),a.noHover||(c!=="category"&&n("hoverformat"),a.noUnifiedhovertitle||n("unifiedhovertitle.text"));var _=n("color"),T=_!==cx.color.dflt?_:l.color,m=u.label||o._dfltTitle[i];if(lhe(r,t,n,c,a),!s)return t;n("title.text",m),Kc.coerceFont(n,"title.font",l,{overrideDflt:{size:Kc.bigFont(l.size),color:T}}),YI(r,t,n,c);var k=a.hasMinor;if(k&&(ahe.newContainer(t,"minor"),YI(r,t,n,c,{isMinor:!0})),ohe(r,t,n,c,a),XI(r,t,n,a),k){var S=a.isMinor;a.isMinor=!0,XI(r,t,n,a),a.isMinor=S}uhe(r,t,n,{dfltColor:_,bgColor:a.bgColor,showGrid:a.showGrid,hasMinor:k,attributes:cx}),k&&t.ticklabelindex==null&&!t.minor.ticks&&!t.minor.showgrid&&delete t.minor,(t.showline||t.ticks)&&n("mirror");var b=c==="multicategory";if(!a.noTickson&&(c==="category"||b)&&(t.ticks||t.showgrid)&&(b?(n("tickson","boundaries"),delete t.ticklabelposition):n("tickson")),b){var M=n("showdividers");M&&(n("dividercolor"),n("dividerwidth"))}if(c==="date")if(ihe(r,t,{name:"rangebreaks",inclusionAttr:"enabled",handleItemDefaults:vhe}),!t.rangebreaks.length)delete t.rangebreaks;else{for(var d=0;d=2){var i="",l,u;if(o.length===2){for(l=0;l<2;l++)if(u=ZI(o[l]),u){i=Ad;break}}var s=n("pattern",i);if(s===Ad)for(l=0;l<2;l++)u=ZI(o[l]),u&&(r.bounds[l]=o[l]=u-1);if(s)for(l=0;l<2;l++)switch(u=o[l],s){case Ad:if(!GI(u)){r.enabled=!1;return}if(u=+u,u!==Math.floor(u)||u<0||u>=7){r.enabled=!1;return}r.bounds[l]=o[l]=u;break;case che:if(!GI(u)){r.enabled=!1;return}if(u=+u,u<0||u>24){r.enabled=!1;return}r.bounds[l]=o[l]=u;break}if(t.autorange===!1){var f=t.range;if(f[0]f[1]){r.enabled=!1;return}}else if(o[0]>f[0]&&o[1]{"use strict";var dhe=ut(),Sd=tr();$I.exports=function(r,t,n,a){var o=a.counterAxes||[],i=a.overlayableAxes||[],l=a.letter,u=a.grid,s=a.overlayingDomain,f,c,g,x,h,_;u&&(c=u._domains[l][u._axisMap[t._id]],f=u._anchors[t._id],c&&(g=u[l+"side"].split(" ")[0],x=u.domain[l][g==="right"||g==="top"?1:0])),c=c||[0,1],f=f||(dhe(r.position)?"free":o[0]||"free"),g=g||(l==="x"?"bottom":"left"),x=x||0,h=0,_=!1;var T=Sd.coerce(r,t,{anchor:{valType:"enumerated",values:["free"].concat(o),dflt:f}},"anchor"),m=Sd.coerce(r,t,{side:{valType:"enumerated",values:l==="x"?["bottom","top"]:["left","right"],dflt:g}},"side");if(T==="free"){if(l==="y"){var k=n("autoshift");k&&(x=m==="left"?s[0]:s[1],_=t.automargin?t.automargin:!0,h=m==="left"?-3:3),n("shift",h)}n("position",x)}n("automargin",_);var S=!1;if(i.length&&(S=Sd.coerce(r,t,{overlaying:{valType:"enumerated",values:[!1].concat(i),dflt:!1}},"overlaying")),!S){var b=n("domain",c);b[0]>b[1]-1/4096&&(t.domain=c),Sd.noneOrAll(r.domain,t.domain,c),t.tickmode==="sync"&&(t.tickmode="auto")}return n("layer"),t}});var iz=xe((Y7e,az)=>{"use strict";var Qs=tr(),KI=Zr(),phe=so().isUnifiedHover,ghe=M5(),QI=Tt(),yhe=q0(),jI=ai(),mhe=fx(),ez=kd(),bhe=yc(),rz=vx(),dx=mn(),To=dx.id2name,tz=dx.name2id,xhe=(kn(),or(An)).AX_ID_PATTERN,nz=Cr(),Cd=nz.traceIs,hx=nz.getComponentMethod;function Ed(e,r,t){Array.isArray(e[r])?e[r].push(t):e[r]=[t]}az.exports=function(r,t,n){var a=t.autotypenumbers,o={},i={},l={},u={},s={},f={},c={},g={},x={},h={},_,T;for(_=0;_{"use strict";var _he=lt(),oz=Cr(),Ld=tr(),Xa=At(),Dd=Vt();lz.exports=function(r,t,n,a){var o=r._fullLayout;if(t.length===0){Dd.redrawComponents(r);return}function i(T){var m=T.xaxis,k=T.yaxis;o._defs.select("#"+T.clipId+"> rect").call(Xa.setTranslate,0,0).call(Xa.setScale,1,1),T.plot.call(Xa.setTranslate,m._offset,k._offset).call(Xa.setScale,1,1);var S=T.plot.selectAll(".scatterlayer .trace");S.selectAll(".point").call(Xa.setPointGroupScale,1,1),S.selectAll(".textpoint").call(Xa.setTextPointsScale,1,1),S.call(Xa.hideOutsideRangePoints,T)}function l(T,m){var k=T.plotinfo,S=k.xaxis,b=k.yaxis,M=S._length,d=b._length,w=!!T.xr1,y=!!T.yr1,v=[];if(w){var A=Ld.simpleMap(T.xr0,S.r2l),p=Ld.simpleMap(T.xr1,S.r2l),D=A[1]-A[0],E=p[1]-p[0];v[0]=(A[0]*(1-m)+m*p[0]-A[0])/(A[1]-A[0])*M,v[2]=M*(1-m+m*E/D),S.range[0]=S.l2r(A[0]*(1-m)+m*p[0]),S.range[1]=S.l2r(A[1]*(1-m)+m*p[1])}else v[0]=0,v[2]=M;if(y){var R=Ld.simpleMap(T.yr0,b.r2l),F=Ld.simpleMap(T.yr1,b.r2l),z=R[1]-R[0],P=F[1]-F[0];v[1]=(R[1]*(1-m)+m*F[1]-R[1])/(R[0]-R[1])*d,v[3]=d*(1-m+m*P/z),b.range[0]=S.l2r(R[0]*(1-m)+m*F[0]),b.range[1]=b.l2r(R[1]*(1-m)+m*F[1])}else v[1]=0,v[3]=d;Dd.drawOne(r,S,{skipTitle:!0}),Dd.drawOne(r,b,{skipTitle:!0}),Dd.redrawComponents(r,[S._id,b._id]);var L=w?M/v[2]:1,I=y?d/v[3]:1,B=w?v[0]:0,O=y?v[1]:0,G=w?v[0]/v[2]*M:0,J=y?v[1]/v[3]*d:0,j=S._offset-G,V=b._offset-J;k.clipRect.call(Xa.setTranslate,B,O).call(Xa.setScale,1/L,1/I),k.plot.call(Xa.setTranslate,j,V).call(Xa.setScale,L,I),Xa.setPointGroupScale(k.zoomScalePts,1/L,1/I),Xa.setTextPointsScale(k.zoomScaleTxt,1/L,1/I)}var u;a&&(u=a());function s(){for(var T={},m=0;mn.duration?(s(),x=window.cancelAnimationFrame(_)):x=window.requestAnimationFrame(_)}return c=Date.now(),x=window.requestAnimationFrame(_),Promise.resolve()}});var px=xe(ea=>{"use strict";var Fd=lt(),uz=Cr(),js=tr(),whe=Sn(),Mhe=At(),fz=Gf().getModuleCalcData,Ol=mn(),Bi=(kn(),or(An)),The=(wl(),or(_l)),dt=js.ensureSingle;function Rd(e,r,t){return js.ensureSingle(e,r,t,function(n){n.datum(t)})}var e0=Bi.zindexSeparator;ea.name="cartesian";ea.attr=["xaxis","yaxis"];ea.idRoot=["x","y"];ea.idRegex=Bi.idRegex;ea.attrRegex=Bi.attrRegex;ea.attributes=II();ea.layoutAttributes=ai();ea.supplyLayoutDefaults=iz();ea.transitionAxes=sz();ea.finalizeSubplots=function(e,r){var t=r._subplots,n=t.xaxis,a=t.yaxis,o=t.cartesian,i=o,l={},u={},s,f,c;for(s=0;s0){var x=g.id;if(x.indexOf(e0)!==-1)continue;x+=e0+(s+1),g=js.extendFlat({},g,{id:x,plot:a._cartesianlayer.selectAll(".subplot").select("."+x)})}for(var h=[],_,T=0;T1&&(M+=e0+b),S.push(l+M),i=0;i1,c=r.mainplotinfo;if(!r.mainplot||f)if(s)r.xlines=dt(n,"path","xlines-above"),r.ylines=dt(n,"path","ylines-above"),r.xaxislayer=dt(n,"g","xaxislayer-above"),r.yaxislayer=dt(n,"g","yaxislayer-above");else{if(!i){var g=dt(n,"g","layer-subplot");r.shapelayer=dt(g,"g","shapelayer"),r.imagelayer=dt(g,"g","imagelayer"),c&&f?(r.minorGridlayer=c.minorGridlayer,r.gridlayer=c.gridlayer,r.zerolinelayer=c.zerolinelayer):(r.minorGridlayer=dt(n,"g","minor-gridlayer"),r.gridlayer=dt(n,"g","gridlayer"),r.zerolinelayer=dt(n,"g","zerolinelayer"));var x=dt(n,"g","layer-between");r.shapelayerBetween=dt(x,"g","shapelayer"),r.imagelayerBetween=dt(x,"g","imagelayer"),dt(n,"path","xlines-below"),dt(n,"path","ylines-below"),r.overlinesBelow=dt(n,"g","overlines-below"),dt(n,"g","xaxislayer-below"),dt(n,"g","yaxislayer-below"),r.overaxesBelow=dt(n,"g","overaxes-below")}r.overplot=dt(n,"g","overplot"),r.plot=dt(r.overplot,"g",a),c&&f?r.zerolinelayerAbove=c.zerolinelayerAbove:r.zerolinelayerAbove=dt(n,"g","zerolinelayer-above"),i||(r.xlines=dt(n,"path","xlines-above"),r.ylines=dt(n,"path","ylines-above"),r.overlinesAbove=dt(n,"g","overlines-above"),dt(n,"g","xaxislayer-above"),dt(n,"g","yaxislayer-above"),r.overaxesAbove=dt(n,"g","overaxes-above"),r.xlines=n.select(".xlines-"+l),r.ylines=n.select(".ylines-"+u),r.xaxislayer=n.select(".xaxislayer-"+l),r.yaxislayer=n.select(".yaxislayer-"+u))}else{var h=c.plotgroup,_=a+"-x",T=a+"-y";r.minorGridlayer=c.minorGridlayer,r.gridlayer=c.gridlayer,r.zerolinelayer=c.zerolinelayer,r.zerolinelayerAbove=c.zerolinelayerAbove,dt(c.overlinesBelow,"path",_),dt(c.overlinesBelow,"path",T),dt(c.overaxesBelow,"g",_),dt(c.overaxesBelow,"g",T),r.plot=dt(c.overplot,"g",a),dt(c.overlinesAbove,"path",_),dt(c.overlinesAbove,"path",T),dt(c.overaxesAbove,"g",_),dt(c.overaxesAbove,"g",T),r.xlines=h.select(".overlines-"+l).select("."+_),r.ylines=h.select(".overlines-"+u).select("."+T),r.xaxislayer=h.select(".overaxes-"+l).select("."+_),r.yaxislayer=h.select(".overaxes-"+u).select("."+T)}i||(s||(Rd(r.minorGridlayer,"g",r.xaxis._id),Rd(r.minorGridlayer,"g",r.yaxis._id),r.minorGridlayer.selectAll("g").map(function(m){return m[0]}).sort(Ol.idSort),Rd(r.gridlayer,"g",r.xaxis._id),Rd(r.gridlayer,"g",r.yaxis._id),r.gridlayer.selectAll("g").map(function(m){return m[0]}).sort(Ol.idSort)),r.xlines.style("fill","none").classed("crisp",!0),r.ylines.style("fill","none").classed("crisp",!0))}function hz(e,r){if(e){var t={};e.each(function(u){var s=u[0],f=Fd.select(this);f.remove(),dz(s,r),t[s]=!0});for(var n in r._plots)for(var a=r._plots[n],o=a.overlays||[],i=0;i{"use strict";var Pd=Da();pz.exports={hasLines:Pd.hasLines,hasMarkers:Pd.hasMarkers,hasText:Pd.hasText,isBubble:Pd.isBubble,attributes:Ws(),layoutAttributes:i1(),supplyDefaults:AP(),crossTraceDefaults:EP(),supplyLayoutDefaults:DP(),calc:$b().calc,crossTraceCalc:oI(),arraysToCalcdata:yd(),plot:xI(),colorbar:wI(),formatLabels:TI(),style:lx().style,styleOnSelect:lx().styleOnSelect,hoverPoints:LI(),selectPoints:FI(),animatable:!0,moduleType:"trace",name:"scatter",basePlotModule:px(),categories:["cartesian","svg","symbols","errorBarsOK","showLegend","scatter-like","zoomScale"],meta:{}}});var bz=xe((J7e,mz)=>{"use strict";var khe=lt(),She=Zr(),yz=hb(),gx=tr(),Che=gx.strScale,Ehe=gx.strRotate,Lhe=gx.strTranslate;mz.exports=function(r,t,n){var a=r.node(),o=yz[n.arrowhead||0],i=yz[n.startarrowhead||0],l=(n.arrowwidth||1)*(n.arrowsize||1),u=(n.arrowwidth||1)*(n.startarrowsize||1),s=t.indexOf("start")>=0,f=t.indexOf("end")>=0,c=o.backoff*l+n.standoff,g=i.backoff*u+n.startstandoff,x,h,_,T;if(a.nodeName==="line"){x={x:+r.attr("x1"),y:+r.attr("y1")},h={x:+r.attr("x2"),y:+r.attr("y2")};var m=x.x-h.x,k=x.y-h.y;if(_=Math.atan2(k,m),T=_+Math.PI,c&&g&&c+g>Math.sqrt(m*m+k*k)){R();return}if(c){if(c*c>m*m+k*k){R();return}var S=c*Math.cos(_),b=c*Math.sin(_);h.x+=S,h.y+=b,r.attr({x2:h.x,y2:h.y})}if(g){if(g*g>m*m+k*k){R();return}var M=g*Math.cos(_),d=g*Math.sin(_);x.x-=M,x.y-=d,r.attr({x1:x.x,y1:x.y})}}else if(a.nodeName==="path"){var w=a.getTotalLength(),y="";if(w{"use strict";var xz=lt(),yx=Cr(),Dhe=Sn(),Hl=tr(),mx=Hl.strTranslate,jc=Vt(),r0=Zr(),Xo=At(),_z=yo(),bx=Qn(),xx=Dl(),Qc=Pi(),Rhe=Tt().arrayEditor,Fhe=bz();Tz.exports={draw:Phe,drawOne:wz,drawRaw:Mz};function Phe(e){var r=e._fullLayout;r._infolayer.selectAll(".annotation").remove();for(var t=0;t2/3?nr="right":nr="center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[nr]}for(var Q=!1,te=["x","y"],ue=0;ue1)&&(fe===ie?(Se=we.r2fraction(r["a"+ee]),(Se<0||Se>1)&&(Q=!0)):Q=!0),K=we._offset+we.r2p(r[ee]),de=.5}else{var ve=me==="domain";ee==="x"?(oe=r[ee],K=ve?we._offset+we._length*oe:K=l.l+l.w*oe):(oe=1-r[ee],K=ve?we._offset+we._length*oe:K=l.t+l.h*oe),de=r.showarrow?.5:oe}if(r.showarrow){X.head=K;var he=r["a"+ee];if(pe=ke*ae(.5,r.xanchor)-ge*ae(.5,r.yanchor),fe===ie){var be=jc.getRefType(fe);be==="domain"?(ee==="y"&&(he=1-he),X.tail=we._offset+we._length*he):be==="paper"?ee==="y"?(he=1-he,X.tail=l.t+l.h*he):X.tail=l.l+l.w*he:X.tail=we._offset+we.r2p(he),ye=pe}else X.tail=K+he,ye=pe+he;X.text=X.tail+pe;var Ae=i[ee==="x"?"width":"height"];if(ie==="paper"&&(X.head=Hl.constrain(X.head,1,Ae-1)),fe==="pixel"){var Re=-Math.max(X.tail-3,X.text),Pe=Math.min(X.tail+3,X.text)-Ae;Re>0?(X.tail+=Re,X.text+=Re):Pe>0&&(X.tail-=Pe,X.text-=Pe)}X.tail+=se,X.head+=se}else pe=Ee*ae(de,Le),ye=pe,X.text=K+pe;X.text+=se,pe+=se,ye+=se,r["_"+ee+"padplus"]=Ee/2+ye,r["_"+ee+"padminus"]=Ee/2-ye,r["_"+ee+"size"]=Ee,r["_"+ee+"shift"]=pe}if(Q){w.remove();return}var Ye=0,Ve=0;if(r.align!=="left"&&(Ye=(q-j)*(r.align==="center"?.5:1)),r.valign!=="top"&&(Ve=(Z-V)*(r.valign==="middle"?.5:1)),G)O.select("svg").attr({x:A+Ye-1,y:A+Ve}).call(Xo.setClipUrl,D?_:null,e);else{var Ue=A+Ve-J.top,qe=A+Ye-J.left;z.call(bx.positionText,qe,Ue).call(Xo.setClipUrl,D?_:null,e)}E.select("rect").call(Xo.setRect,A,A,q,Z),p.call(Xo.setRect,y/2,y/2,re-y,$-y),w.call(Xo.setTranslate,Math.round(T.x.text-re/2),Math.round(T.y.text-$/2)),S.attr({transform:"rotate("+m+","+T.x.text+","+T.y.text+")"});var We=function(er,nr){k.selectAll(".annotation-arrow-g").remove();var rr=T.x.head,Qe=T.y.head,Ce=T.x.tail+er,ze=T.y.tail+nr,Ke=T.x.text+er,je=T.y.text+nr,wr=Hl.rotationXYMatrix(m,Ke,je),Xr=Hl.apply2DTransform(wr),Tr=Hl.apply2DTransform2(wr),Pr=+p.attr("width"),at=+p.attr("height"),Ar=Ke-.5*Pr,Hr=Ar+Pr,ot=je-.5*at,Ir=ot+at,Jr=[[Ar,ot,Ar,Ir],[Ar,Ir,Hr,Ir],[Hr,Ir,Hr,ot],[Hr,ot,Ar,ot]].map(Tr);if(!Jr.reduce(function(vt,Bt){return vt^!!Hl.segmentsIntersect(rr,Qe,rr+1e6,Qe+1e6,Bt[0],Bt[1],Bt[2],Bt[3])},!1)){Jr.forEach(function(vt){var Bt=Hl.segmentsIntersect(Ce,ze,rr,Qe,vt[0],vt[1],vt[2],vt[3]);Bt&&(Ce=Bt.x,ze=Bt.y)});var Xt=r.arrowwidth,tt=r.arrowcolor,Kr=r.arrowside,qt=k.append("g").style({opacity:r0.opacity(tt)}).classed("annotation-arrow-g",!0),lr=qt.append("path").attr("d","M"+Ce+","+ze+"L"+rr+","+Qe).style("stroke-width",Xt+"px").call(r0.stroke,r0.rgb(tt));if(Fhe(lr,Kr,r),u.annotationPosition&&lr.node().parentNode&&!n){var Dr=rr,Vr=Qe;if(r.standoff){var st=Math.sqrt(Math.pow(rr-Ce,2)+Math.pow(Qe-ze,2));Dr+=r.standoff*(Ce-rr)/st,Vr+=r.standoff*(ze-Qe)/st}var mt=qt.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(Ce-Dr)+","+(ze-Vr),transform:mx(Dr,Vr)}).style("stroke-width",Xt+6+"px").call(r0.stroke,"rgba(0,0,0,0)").call(r0.fill,"rgba(0,0,0,0)"),St,it;Qc.init({element:mt.node(),gd:e,prepFn:function(){var vt=Xo.getTranslate(w);St=vt.x,it=vt.y,a&&a.autorange&&g(a._name+".autorange",!0),o&&o.autorange&&g(o._name+".autorange",!0)},moveFn:function(vt,Bt){var Gn=Xr(St,it),Yn=Gn[0]+vt,_n=Gn[1]+Bt;w.call(Xo.setTranslate,Yn,_n),x("x",Ul(a,vt,"x",l,r)),x("y",Ul(o,Bt,"y",l,r)),r.axref===r.xref&&x("ax",Ul(a,vt,"ax",l,r)),r.ayref===r.yref&&x("ay",Ul(o,Bt,"ay",l,r)),qt.attr("transform",mx(vt,Bt)),S.attr({transform:"rotate("+m+","+Yn+","+_n+")"})},doneFn:function(){yx.call("_guiRelayout",e,h());var vt=document.querySelector(".js-notes-box-panel");vt&&vt.redraw(vt.selectedObj)}})}}};if(r.showarrow&&We(0,0),b){var Xe;Qc.init({element:w.node(),gd:e,prepFn:function(){Xe=S.attr("transform")},moveFn:function(er,nr){var rr="pointer";if(r.showarrow)r.axref===r.xref?x("ax",Ul(a,er,"ax",l,r)):x("ax",r.ax+er),r.ayref===r.yref?x("ay",Ul(o,nr,"ay",l.w,r)):x("ay",r.ay+nr),We(er,nr);else{if(n)return;var Qe,Ce;if(a)Qe=Ul(a,er,"x",l,r);else{var ze=r._xsize/l.w,Ke=r.x+(r._xshift-r.xshift)/l.w-ze/2;Qe=Qc.align(Ke+er/l.w,ze,0,1,r.xanchor)}if(o)Ce=Ul(o,nr,"y",l,r);else{var je=r._ysize/l.h,wr=r.y-(r._yshift+r.yshift)/l.h-je/2;Ce=Qc.align(wr-nr/l.h,je,0,1,r.yanchor)}x("x",Qe),x("y",Ce),(!a||!o)&&(rr=Qc.getCursor(a?.5:Qe,o?.5:Ce,r.xanchor,r.yanchor))}S.attr({transform:mx(er,nr)+Xe}),xx(w,rr)},clickFn:function(er,nr){r.captureevents&&e.emit("plotly_clickannotation",d(nr))},doneFn:function(){xx(w),yx.call("_guiRelayout",e,h());var er=document.querySelector(".js-notes-box-panel");er&&er.redraw(er.selectedObj)}})}}u.annotationText?z.call(bx.makeEditable,{delegate:w,gd:e}).call(P).on("edit",function(I){r.text=I,this.call(P),x("text",I),a&&a.autorange&&g(a._name+".autorange",!0),o&&o.autorange&&g(o._name+".autorange",!0),yx.call("_guiRelayout",e,h())}):z.call(P)}});var Lz=xe((K7e,Ez)=>{"use strict";var Az=tr(),Ihe=Cr(),kz=Tt().arrayEditor;Ez.exports={hasClickToShow:zhe,onClick:Nhe};function zhe(e,r){var t=Cz(e,r);return t.on.length>0||t.explicitOff.length>0}function Nhe(e,r){var t=Cz(e,r),n=t.on,a=t.off.concat(t.explicitOff),o={},i=e._fullLayout.annotations,l,u;if(n.length||a.length){for(l=0;l{"use strict";var _x=tr(),Eu=Zr();Dz.exports=function(r,t,n,a){a("opacity");var o=a("bgcolor"),i=a("bordercolor"),l=Eu.opacity(i);a("borderpad");var u=a("borderwidth"),s=a("showarrow");a("text",s?" ":n._dfltTitle.annotation),a("textangle"),_x.coerceFont(a,"font",n.font),a("width"),a("align");var f=a("height");if(f&&a("valign"),s){var c=a("arrowside"),g,x;c.indexOf("end")!==-1&&(g=a("arrowhead"),x=a("arrowsize")),c.indexOf("start")!==-1&&(a("startarrowhead",g),a("startarrowsize",x)),a("arrowcolor",l?t.bordercolor:Eu.defaultLine),a("arrowwidth",(l&&u||1)*2),a("standoff"),a("startstandoff")}var h=a("hovertext"),_=n.hoverlabel||{};if(h){var T=a("hoverlabel.bgcolor",_.bgcolor||(Eu.opacity(o)?Eu.rgb(o):Eu.defaultLine)),m=a("hoverlabel.bordercolor",_.bordercolor||Eu.contrast(T)),k=_x.extendFlat({},_.font);k.color||(k.color=m),_x.coerceFont(a,"hoverlabel.font",k)}a("captureevents",!!h)}});var Fz=xe((j7e,Rz)=>{"use strict";var Mx=tr(),t0=Vt(),qhe=Ri(),Bhe=wx(),Ohe=bu();Rz.exports=function(r,t){qhe(r,t,{name:"annotations",handleItemDefaults:Uhe})};function Uhe(e,r,t){function n(S,b){return Mx.coerce(e,r,Ohe,S,b)}var a=n("visible"),o=n("clicktoshow");if(a||o){Bhe(e,r,t,n);for(var i=r.showarrow,l=["x","y"],u=[-10,-30],s={_fullLayout:t},f=0;f<2;f++){var c=l[f],g=t0.coerceRef(e,r,s,c,"","paper");if(g!=="paper"){var x=t0.getFromId(s,g);x._annIndices.push(r._index)}if(t0.coercePosition(r,s,n,g,c,.5),i){var h="a"+c,_=t0.coerceRef(e,r,s,h,"pixel",["pixel","paper"]);_!=="pixel"&&_!==g&&(_=r[h]="pixel");var T=_==="pixel"?u[f]:.4;t0.coercePosition(r,s,n,_,h,T)}n(c+"anchor"),n(c+"shift")}if(Mx.noneOrAll(e,r,["x","y"]),i&&Mx.noneOrAll(e,r,["ax","ay"]),o){var m=n("xclick"),k=n("yclick");r._xclick=m===void 0?r.x:t0.cleanPosition(m,s,r.xref),r._yclick=k===void 0?r.y:t0.cleanPosition(k,s,r.yref)}}}});var zz=xe((ewe,Iz)=>{"use strict";var Tx=tr(),n0=Vt(),Hhe=Id().draw;Iz.exports=function(r){var t=r._fullLayout,n=Tx.filterVisible(t.annotations);if(n.length&&r._fullData.length)return Tx.syncOrAsync([Hhe,Vhe],r)};function Vhe(e){var r=e._fullLayout;Tx.filterVisible(r.annotations).forEach(function(t){var n=n0.getFromId(e,t.xref),a=n0.getFromId(e,t.yref),o=n0.getRefType(t.xref),i=n0.getRefType(t.yref);t._extremes={},o==="range"&&Pz(t,n),i==="range"&&Pz(t,a)})}function Pz(e,r){var t=r._id,n=t.charAt(0),a=e[n],o=e["a"+n],i=e[n+"ref"],l=e["a"+n+"ref"],u=e["_"+n+"padplus"],s=e["_"+n+"padminus"],f={x:1,y:-1}[n]*e[n+"shift"],c=3*e.arrowsize*e.arrowwidth||0,g=c+f,x=c-f,h=3*e.startarrowsize*e.arrowwidth||0,_=h+f,T=h-f,m;if(l===i){var k=n0.findExtremes(r,[r.r2c(a)],{ppadplus:g,ppadminus:x}),S=n0.findExtremes(r,[r.r2c(o)],{ppadplus:Math.max(u,_),ppadminus:Math.max(s,T)});m={min:[k.min[0],S.min[0]],max:[k.max[0],S.max[0]]}}else _=o?_+o:_,T=o?T-o:T,m=n0.findExtremes(r,[r.r2c(a)],{ppadplus:Math.max(u,g,_),ppadminus:Math.max(s,x,T)});e._extremes[t]=m}});var qz=xe((rwe,Nz)=>{"use strict";var Ghe=ut(),Yhe=jv();Nz.exports=function(r,t,n,a){t=t||{};var o=n==="log"&&t.type==="linear",i=n==="linear"&&t.type==="log";if(!(o||i))return;var l=r._fullLayout.annotations,u=t._id.charAt(0),s,f;function c(x){var h=s[x],_=null;o?_=Yhe(h,t.range):_=Math.pow(10,h),Ghe(_)||(_=null),a(f+x,_)}for(var g=0;g{"use strict";var Ax=Id(),Bz=Lz();Oz.exports={moduleType:"component",name:"annotations",layoutAttributes:bu(),supplyLayoutDefaults:Fz(),includeBasePlot:zc()("annotations"),calcAutorange:zz(),draw:Ax.draw,drawOne:Ax.drawOne,drawRaw:Ax.drawRaw,hasClickToShow:Bz.hasClickToShow,onClick:Bz.onClick,convertCoords:qz()}});var zd=xe((nwe,Hz)=>{"use strict";var Lt=bu(),Xhe=ua().overrideAll,Whe=Tt().templatedArray;Hz.exports=Xhe(Whe("annotation",{visible:Lt.visible,x:{valType:"any"},y:{valType:"any"},z:{valType:"any"},ax:{valType:"number"},ay:{valType:"number"},xanchor:Lt.xanchor,xshift:Lt.xshift,yanchor:Lt.yanchor,yshift:Lt.yshift,text:Lt.text,textangle:Lt.textangle,font:Lt.font,width:Lt.width,height:Lt.height,opacity:Lt.opacity,align:Lt.align,valign:Lt.valign,bgcolor:Lt.bgcolor,bordercolor:Lt.bordercolor,borderpad:Lt.borderpad,borderwidth:Lt.borderwidth,showarrow:Lt.showarrow,arrowcolor:Lt.arrowcolor,arrowhead:Lt.arrowhead,startarrowhead:Lt.startarrowhead,arrowside:Lt.arrowside,arrowsize:Lt.arrowsize,startarrowsize:Lt.startarrowsize,arrowwidth:Lt.arrowwidth,standoff:Lt.standoff,startstandoff:Lt.startstandoff,hovertext:Lt.hovertext,hoverlabel:Lt.hoverlabel,captureevents:Lt.captureevents}),"calc","from-root")});var Gz=xe((awe,Vz)=>{"use strict";var kx=tr(),Zhe=Vt(),Jhe=Ri(),$he=wx(),Khe=zd();Vz.exports=function(r,t,n){Jhe(r,t,{name:"annotations",handleItemDefaults:Qhe,fullLayout:n.fullLayout})};function Qhe(e,r,t,n){function a(l,u){return kx.coerce(e,r,Khe,l,u)}function o(l){var u=l+"axis",s={_fullLayout:{}};return s._fullLayout[u]=t[u],Zhe.coercePosition(r,s,a,l,l,.5)}var i=a("visible");i&&($he(e,r,n.fullLayout,a),o("x"),o("y"),o("z"),kx.noneOrAll(e,r,["x","y","z"]),r.xref="x",r.yref="y",r.zref="z",a("xanchor"),a("yanchor"),a("xshift"),a("yshift"),r.showarrow&&(r.axref="pixel",r.ayref="pixel",a("ax",-10),a("ay",-30),kx.noneOrAll(e,r,["ax","ay"])))}});var Zz=xe((iwe,Wz)=>{"use strict";var Yz=tr(),Xz=Vt();Wz.exports=function(r){for(var t=r.fullSceneLayout,n=t.annotations,a=0;a{"use strict";function Sx(e,r){var t=[0,0,0,0],n,a;for(n=0;n<4;++n)for(a=0;a<4;++a)t[a]+=e[4*n+a]*r[n];return t}function e1e(e,r){var t=Sx(e.projection,Sx(e.view,Sx(e.model,[r[0],r[1],r[2],1])));return t}Jz.exports=e1e});var Kz=xe((lwe,$z)=>{"use strict";var r1e=Id().drawRaw,t1e=Cx(),n1e=["x","y","z"];$z.exports=function(r){for(var t=r.fullSceneLayout,n=r.dataScale,a=t.annotations,o=0;o1){l=!0;break}}l?r.fullLayout._infolayer.select(".annotation-"+r.id+'[data-index="'+o+'"]').remove():(i._pdata=t1e(r.glplot.cameraParams,[t.xaxis.r2l(i.x)*n[0],t.yaxis.r2l(i.y)*n[1],t.zaxis.r2l(i.z)*n[2]]),r1e(r.graphDiv,i,o,r.id,i._xa,i._ya))}}});var eN=xe((swe,jz)=>{"use strict";var a1e=Cr(),Qz=tr();jz.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:zd()}}},layoutAttributes:zd(),handleDefaults:Gz(),includeBasePlot:i1e,convert:Zz(),draw:Kz()};function i1e(e,r){var t=a1e.subplotsRegistry.gl3d;if(t)for(var n=t.attrRegex,a=Object.keys(e),o=0;o{"use strict";var uwe=(kn(),or(An)),rN=Wn(),tN=Ws().line,o1e=fl().dash,Oi=Rt().extendFlat,l1e=Tt().templatedArray,fwe=(Pc(),or(Fc)),Lu=Zn(),nN=bu(),{shapeTexttemplateAttrs:s1e,templatefallbackAttrs:u1e}=Si(),f1e=Ih();aN.exports=l1e("shape",{visible:Oi({},Lu.visible,{editType:"calc+arraydraw"}),showlegend:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},legend:Oi({},Lu.legend,{editType:"calc+arraydraw"}),legendgroup:Oi({},Lu.legendgroup,{editType:"calc+arraydraw"}),legendgrouptitle:{text:Oi({},Lu.legendgrouptitle.text,{editType:"calc+arraydraw"}),font:rN({editType:"calc+arraydraw"}),editType:"calc+arraydraw"},legendrank:Oi({},Lu.legendrank,{editType:"calc+arraydraw"}),legendwidth:Oi({},Lu.legendwidth,{editType:"calc+arraydraw"}),type:{valType:"enumerated",values:["circle","rect","path","line"],editType:"calc+arraydraw"},layer:{valType:"enumerated",values:["below","above","between"],dflt:"above",editType:"arraydraw"},xref:Oi({},nN.xref,{arrayOk:!0}),xsizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},xanchor:{valType:"any",editType:"calc+arraydraw"},x0:{valType:"any",editType:"calc+arraydraw"},x1:{valType:"any",editType:"calc+arraydraw"},x0shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},x1shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},yref:Oi({},nN.yref,{arrayOk:!0}),ysizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},yanchor:{valType:"any",editType:"calc+arraydraw"},y0:{valType:"any",editType:"calc+arraydraw"},y1:{valType:"any",editType:"calc+arraydraw"},y0shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},y1shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},path:{valType:"string",editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},line:{color:Oi({},tN.color,{editType:"arraydraw"}),width:Oi({},tN.width,{editType:"calc+arraydraw"}),dash:Oi({},o1e,{editType:"arraydraw"}),editType:"calc+arraydraw"},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd",editType:"arraydraw"},editable:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},label:{text:{valType:"string",dflt:"",editType:"arraydraw"},texttemplate:s1e({},{keys:Object.keys(f1e)}),texttemplatefallback:u1e({editType:"arraydraw"}),font:rN({editType:"calc+arraydraw",colorEditType:"arraydraw"}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"],editType:"arraydraw"},textangle:{valType:"angle",dflt:"auto",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],editType:"calc+arraydraw"},padding:{valType:"number",dflt:3,min:0,editType:"arraydraw"},editType:"arraydraw"},editType:"arraydraw"})});var oN=xe((vwe,iN)=>{"use strict";var Du=tr(),Wa=Vt(),c1e=Ri(),v1e=Ex(),ev=zl();iN.exports=function(r,t){c1e(r,t,{name:"shapes",handleItemDefaults:d1e})};function h1e(e,r){return e?"bottom":r.indexOf("top")!==-1?"top":r.indexOf("bottom")!==-1?"bottom":"middle"}function d1e(e,r,t){function n(S,b){return Du.coerce(e,r,v1e,S,b)}r._isShape=!0;var a=n("visible");if(!a)return;var o=n("showlegend");n("legend"),n("legendgroup"),o&&(n("legendwidth"),n("legendgrouptitle.text"),Du.coerceFont(n,"legendgrouptitle.font"),n("legendrank"));var i=n("path"),l=i?"path":"rect",u=n("type",l),s=u!=="path";s&&delete r.path,n("editable"),n("layer"),n("opacity"),n("fillcolor"),n("fillrule");var f=n("line.width");f&&(n("line.color"),n("line.dash"));var c=n("xsizemode"),g=n("ysizemode");let x=[.25,.75],h=[0,10];["x","y"].forEach(S=>{var b=S+"anchor",M=S==="x"?c:g,d={_fullLayout:t},w,y,v,A;let p=S+"ref",D=e[p];if(Array.isArray(D)&&D.length>0){let E=ev.countDefiningCoords(u,i,S);A=Wa.coerceRefArray(e,r,d,S,void 0,"paper",E),r["_"+S+"refArray"]=!0}else A=Wa.coerceRef(e,r,d,S,void 0,"paper");if(Array.isArray(A))A.forEach(function(E){Wa.getRefType(E)==="range"&&(w=Wa.getFromId(d,E),w&&w._shapeIndices.indexOf(r._index)===-1&&w._shapeIndices.push(r._index))}),s&&[0,1].forEach(function(E){let R=A[E];Wa.getRefType(R)==="range"?(w=Wa.getFromId(d,R),y=ev.shapePositionToRange(w),v=ev.rangeToShapePosition(w),(w.type==="category"||w.type==="multicategory")&&n(S+E+"shift")):y=v=Du.identity;let z=S+E,P=e[z];if(e[z]=y(e[z],!0),M==="pixel"?n(z,h[E]):Wa.coercePosition(r,d,n,R,z,x[E]),r[z]=v(r[z]),e[z]=P,E===0&&M==="pixel"){let L=e[b];e[b]=y(e[b],!0),Wa.coercePosition(r,d,n,R,b,.25),r[b]=v(r[b]),e[b]=L}});else{if(Wa.getRefType(A)==="range"?(w=Wa.getFromId(d,A),w._shapeIndices.push(r._index),v=ev.rangeToShapePosition(w),y=ev.shapePositionToRange(w),s&&(w.type==="category"||w.type==="multicategory")&&(n(S+"0shift"),n(S+"1shift"))):y=v=Du.identity,s){let R=S+"0",F=S+"1",z=e[R],P=e[F];e[R]=y(e[R],!0),e[F]=y(e[F],!0),M==="pixel"?(n(R,h[0]),n(F,h[1])):(Wa.coercePosition(r,d,n,A,R,x[0]),Wa.coercePosition(r,d,n,A,F,x[1])),r[R]=v(r[R]),r[F]=v(r[F]),e[R]=z,e[F]=P}if(M==="pixel"){let R=e[b];e[b]=y(e[b],!0),Wa.coercePosition(r,d,n,A,b,.25),r[b]=v(r[b]),e[b]=R}}}),s&&Du.noneOrAll(e,r,["x0","x1","y0","y1"]);var _=u==="line",T,m;if(s&&(T=n("label.texttemplate"),n("label.texttemplatefallback")),T||(m=n("label.text")),m||T){n("label.textangle");var k=n("label.textposition",_?"middle":"middle center");n("label.xanchor"),n("label.yanchor",h1e(_,k)),n("label.padding"),Du.coerceFont(n,"label.font",t.font)}}});var uN=xe((hwe,sN)=>{"use strict";var p1e=Zr(),lN=tr();function g1e(e,r){return e?"bottom":r.indexOf("top")!==-1?"top":r.indexOf("bottom")!==-1?"bottom":"middle"}sN.exports=function(r,t,n){n("newshape.visible"),n("newshape.name"),n("newshape.showlegend"),n("newshape.legend"),n("newshape.legendwidth"),n("newshape.legendgroup"),n("newshape.legendgrouptitle.text"),lN.coerceFont(n,"newshape.legendgrouptitle.font"),n("newshape.legendrank"),n("newshape.drawdirection"),n("newshape.layer"),n("newshape.fillcolor"),n("newshape.fillrule"),n("newshape.opacity");var a=n("newshape.line.width");if(a){var o=(r||{}).plot_bgcolor||"#FFF";n("newshape.line.color",p1e.contrast(o)),n("newshape.line.dash")}var i=r.dragmode==="drawline",l=n("newshape.label.text"),u=n("newshape.label.texttemplate");if(n("newshape.label.texttemplatefallback"),l||u){n("newshape.label.textangle");var s=n("newshape.label.textposition",i?"middle":"middle center");n("newshape.label.xanchor"),n("newshape.label.yanchor",g1e(i,s)),n("newshape.label.padding"),lN.coerceFont(n,"newshape.label.font",t.font)}n("activeshape.fillcolor"),n("activeshape.opacity")}});var gN=xe((dwe,pN)=>{"use strict";var Lx=tr(),yi=Vt(),Ao=(hc(),or(vc)),Dx=zl();pN.exports=function(r){var t=r._fullLayout,n=Lx.filterVisible(t.shapes);if(!(!n.length||!r._fullData.length))for(var a=0;a{i=yi.getFromId(r,c),o._extremes[i._id]=yi.findExtremes(i,g,cN(o))})}else o.xref!=="paper"&&u!=="domain"&&(i=yi.getFromId(r,o.xref),l=hN(i,o,Ao.paramIsX),l&&(o._extremes[i._id]=yi.findExtremes(i,l,cN(o))));if(s==="array"){let f=fN(r,o,"y");Object.entries(f).forEach(([c,g])=>{i=yi.getFromId(r,c),o._extremes[i._id]=yi.findExtremes(i,g,vN(o))})}else o.yref!=="paper"&&s!=="domain"&&(i=yi.getFromId(r,o.yref),l=hN(i,o,Ao.paramIsY),l&&(o._extremes[i._id]=yi.findExtremes(i,l,vN(o))))}};function fN(e,r,t){let n=r[t+"ref"],a=t==="x"?Ao.paramIsX:Ao.paramIsY;function o(c,g){c==="paper"||yi.getRefType(c)==="domain"||(i[c]||(i[c]=[]),i[c].push(g))}let i={};if(r.type==="path"&&r.path){let c=r.path.match(Ao.segmentRE)||[];for(var l=0,u=0;uh&&(o(n[l],_[h]),l++)}}else o(n[0],r[t+"0"]),o(n[1],r[t+"1"]);let s={};for(let c in i){let g=yi.getFromId(e,c);if(g){var f=g.type==="category"||g.type==="multicategory"?g.r2c:g.d2c;g.type==="date"&&(f=Dx.decodeDate(f)),s[g._id]=i[c].map(f)}}return s}function cN(e){return dN(e.line.width,e.xsizemode,e.x0,e.x1,e.path,!1)}function vN(e){return dN(e.line.width,e.ysizemode,e.y0,e.y1,e.path,!0)}function dN(e,r,t,n,a,o){var i=e/2,l=o;if(r==="pixel"){var u=a?Dx.extractPathCoords(a,o?Ao.paramIsY:Ao.paramIsX):[t,n],s=Lx.aggNums(Math.max,null,u),f=Lx.aggNums(Math.min,null,u),c=f<0?Math.abs(f)+i:i,g=s>0?s+i:i;return{ppad:i,ppadplus:l?c:g,ppadminus:l?g:c}}else return{ppad:i}}function hN(e,r,t){var n=e._id.charAt(0)==="x"?"x":"y",a=e.type==="category"||e.type==="multicategory",o,i,l=0,u=0,s=a?e.r2c:e.d2c,f=r[n+"sizemode"]==="scaled";if(f?(o=r[n+"0"],i=r[n+"1"],a&&(l=r[n+"0shift"],u=r[n+"1shift"])):(o=r[n+"anchor"],i=r[n+"anchor"]),o!==void 0)return[s(o)+l,s(i)+u];if(r.path){var c=1/0,g=-1/0,x=r.path.match(Ao.segmentRE),h,_,T,m,k;for(e.type==="date"&&(s=Dx.decodeDate(s)),h=0;hg&&(g=k)));if(g>=c)return[c,g]}}});var bN=xe((pwe,mN)=>{"use strict";var yN=M2();mN.exports={moduleType:"component",name:"shapes",layoutAttributes:Ex(),supplyLayoutDefaults:oN(),supplyDrawNewShapeDefaults:uN(),includeBasePlot:zc()("shapes"),calcAutorange:gN(),draw:yN.draw,drawOne:yN.drawOne}});var Rx=xe((ywe,_N)=>{"use strict";var xN=(kn(),or(An)),y1e=Tt().templatedArray,gwe=(Pc(),or(Fc));_N.exports=y1e("image",{visible:{valType:"boolean",dflt:!0,editType:"arraydraw"},source:{valType:"string",editType:"arraydraw"},layer:{valType:"enumerated",values:["below","above"],dflt:"above",editType:"arraydraw"},sizex:{valType:"number",dflt:0,editType:"arraydraw"},sizey:{valType:"number",dflt:0,editType:"arraydraw"},sizing:{valType:"enumerated",values:["fill","contain","stretch"],dflt:"contain",editType:"arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},x:{valType:"any",dflt:0,editType:"arraydraw"},y:{valType:"any",dflt:0,editType:"arraydraw"},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left",editType:"arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],dflt:"top",editType:"arraydraw"},xref:{valType:"enumerated",values:["paper",xN.idRegex.x.toString()],dflt:"paper",editType:"arraydraw"},yref:{valType:"enumerated",values:["paper",xN.idRegex.y.toString()],dflt:"paper",editType:"arraydraw"},editType:"arraydraw"})});var MN=xe((mwe,wN)=>{"use strict";var m1e=tr(),Fx=Vt(),b1e=Ri(),x1e=Rx(),_1e="images";wN.exports=function(r,t){var n={name:_1e,handleItemDefaults:w1e};b1e(r,t,n)};function w1e(e,r,t){function n(g,x){return m1e.coerce(e,r,x1e,g,x)}var a=n("source"),o=n("visible",!!a);if(!o)return r;n("layer"),n("xanchor"),n("yanchor"),n("sizex"),n("sizey"),n("sizing"),n("opacity");for(var i={_fullLayout:t},l=["x","y"],u=0;u<2;u++){var s=l[u],f=Fx.coerceRef(e,r,i,s,"paper",void 0);if(f!=="paper"){var c=Fx.getFromId(i,f);c._imgIndices.push(r._index)}Fx.coercePosition(r,i,n,f,s,0)}return r}});var SN=xe((bwe,kN)=>{"use strict";var TN=lt(),M1e=At(),Ru=Vt(),AN=mn(),T1e=(wl(),or(_l));kN.exports=function(r){var t=r._fullLayout,n=[],a={},o=[],i,l;for(l=0;l{"use strict";var CN=ut(),A1e=jv();EN.exports=function(r,t,n,a){t=t||{};var o=n==="log"&&t.type==="linear",i=n==="linear"&&t.type==="log";if(o||i){for(var l=r._fullLayout.images,u=t._id.charAt(0),s,f,c=0;c{"use strict";DN.exports={moduleType:"component",name:"images",layoutAttributes:Rx(),supplyLayoutDefaults:MN(),includeBasePlot:zc()("images"),draw:SN(),convertCoords:LN()}});var Nd={};Ht(Nd,{activeColor:()=>$1e,arrowOffsetX:()=>W1e,arrowPadX:()=>H1e,arrowSymbol:()=>Q1e,autoMarginIdRoot:()=>N1e,blankHeaderOpts:()=>q1e,buttonClassName:()=>F1e,containerClassName:()=>S1e,dropdownButtonClassName:()=>R1e,dropdownButtonGroupClassName:()=>D1e,gapButton:()=>J1e,gapButtonHeader:()=>Z1e,headerArrowClassName:()=>L1e,headerClassName:()=>E1e,headerGroupClassName:()=>C1e,hoverColor:()=>K1e,itemRectClassName:()=>P1e,itemTextClassName:()=>I1e,menuIndexAttrName:()=>z1e,minHeight:()=>O1e,minWidth:()=>B1e,name:()=>k1e,rx:()=>V1e,ry:()=>G1e,textOffsetX:()=>Y1e,textOffsetY:()=>X1e,textPadX:()=>U1e});var k1e,S1e,C1e,E1e,L1e,D1e,R1e,F1e,P1e,I1e,z1e,N1e,q1e,B1e,O1e,U1e,H1e,V1e,G1e,Y1e,X1e,W1e,Z1e,J1e,$1e,K1e,Q1e,qd=Ut(()=>{"use strict";k1e="updatemenus",S1e="updatemenu-container",C1e="updatemenu-header-group",E1e="updatemenu-header",L1e="updatemenu-header-arrow",D1e="updatemenu-dropdown-button-group",R1e="updatemenu-dropdown-button",F1e="updatemenu-button",P1e="updatemenu-item-rect",I1e="updatemenu-item-text",z1e="updatemenu-active-index",N1e="updatemenu-",q1e={label:" "},B1e=30,O1e=30,U1e=24,H1e=16,V1e=2,G1e=2,Y1e=12,X1e=3,W1e=4,Z1e=5,J1e=2,$1e="#F4FAFF",K1e="#F4FAFF",Q1e={left:"\u25C4",right:"\u25BA",up:"\u25B2",down:"\u25BC"}});var Px=xe((wwe,PN)=>{"use strict";var j1e=Wn(),e2e=to(),r2e=Rt().extendFlat,t2e=ua().overrideAll,n2e=zh(),FN=Tt().templatedArray,a2e=FN("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}});PN.exports=t2e(FN("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:a2e,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:r2e(n2e({editType:"arraydraw"}),{}),font:j1e({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:e2e.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")});var qN=xe((Mwe,NN)=>{"use strict";var Bd=tr(),IN=Ri(),zN=Px(),i2e=(qd(),or(Nd)),o2e=i2e.name,l2e=zN.buttons;NN.exports=function(r,t){var n={name:o2e,handleItemDefaults:s2e};IN(r,t,n)};function s2e(e,r,t){function n(i,l){return Bd.coerce(e,r,zN,i,l)}var a=IN(e,r,{name:"buttons",handleItemDefaults:u2e}),o=n("visible",a.length>0);o&&(n("active"),n("direction"),n("type"),n("showactive"),n("x"),n("y"),Bd.noneOrAll(e,r,["x","y"]),n("xanchor"),n("yanchor"),n("pad.t"),n("pad.r"),n("pad.b"),n("pad.l"),Bd.coerceFont(n,"font",t.font),n("bgcolor",t.paper_bgcolor),n("bordercolor"),n("borderwidth"))}function u2e(e,r){function t(a,o){return Bd.coerce(e,r,l2e,a,o)}var n=t("visible",e.method==="skip"||Array.isArray(e.args));n&&(t("method"),t("args"),t("args2"),t("label"),t("execute"))}});var UN=xe((Twe,ON)=>{"use strict";ON.exports=Jt;var Ui=lt(),BN=Zr(),Fu=At(),Od=tr();function Jt(e,r,t){this.gd=e,this.container=r,this.id=t,this.position=null,this.translateX=null,this.translateY=null,this.hbar=null,this.vbar=null,this.bg=this.container.selectAll("rect.scrollbox-bg").data([0]),this.bg.exit().on(".drag",null).on("wheel",null).remove(),this.bg.enter().append("rect").classed("scrollbox-bg",!0).style("pointer-events","all").attr({opacity:0,x:0,y:0,width:0,height:0})}Jt.barWidth=2;Jt.barLength=20;Jt.barRadius=2;Jt.barPad=1;Jt.barColor="#808BA4";Jt.prototype.enable=function(r,t,n){var a=this.gd._fullLayout,o=a.width,i=a.height;this.position=r;var l=this.position.l,u=this.position.w,s=this.position.t,f=this.position.h,c=this.position.direction,g=c==="down",x=c==="left",h=c==="right",_=c==="up",T=u,m=f,k,S,b,M;!g&&!x&&!h&&!_&&(this.position.direction="down",g=!0);var d=g||_;d?(k=l,S=k+T,g?(b=s,M=Math.min(b+m,i),m=M-b):(M=s+m,b=Math.max(M-m,0),m=M-b)):(b=s,M=b+m,x?(S=l+T,k=Math.max(S-T,0),T=S-k):(k=l,S=Math.min(k+T,o),T=S-k)),this._box={l:k,t:b,w:T,h:m};var w=u>T,y=Jt.barLength+2*Jt.barPad,v=Jt.barWidth+2*Jt.barPad,A=l,p=s+f;p+v>i&&(p=i-v);var D=this.container.selectAll("rect.scrollbar-horizontal").data(w?[0]:[]);D.exit().on(".drag",null).remove(),D.enter().append("rect").classed("scrollbar-horizontal",!0).call(BN.fill,Jt.barColor),w?(this.hbar=D.attr({rx:Jt.barRadius,ry:Jt.barRadius,x:A,y:p,width:y,height:v}),this._hbarXMin=A+y/2,this._hbarTranslateMax=T-y):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var E=f>m,R=Jt.barWidth+2*Jt.barPad,F=Jt.barLength+2*Jt.barPad,z=l+u,P=s;z+R>o&&(z=o-R);var L=this.container.selectAll("rect.scrollbar-vertical").data(E?[0]:[]);L.exit().on(".drag",null).remove(),L.enter().append("rect").classed("scrollbar-vertical",!0).call(BN.fill,Jt.barColor),E?(this.vbar=L.attr({rx:Jt.barRadius,ry:Jt.barRadius,x:z,y:P,width:R,height:F}),this._vbarYMin=P+F/2,this._vbarTranslateMax=m-F):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var I=this.id,B=k-.5,O=E?S+R+.5:S+.5,G=b-.5,J=w?M+v+.5:M+.5,j=a._topdefs.selectAll("#"+I).data(w||E?[0]:[]);if(j.exit().remove(),j.enter().append("clipPath").attr("id",I).append("rect"),w||E?(this._clipRect=j.select("rect").attr({x:Math.floor(B),y:Math.floor(G),width:Math.ceil(O)-Math.floor(B),height:Math.ceil(J)-Math.floor(G)}),this.container.call(Fu.setClipUrl,I,this.gd),this.bg.attr({x:l,y:s,width:u,height:f})):(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(Fu.setClipUrl,null),delete this._clipRect),w||E){var V=Ui.behavior.drag().on("dragstart",function(){Ui.event.sourceEvent.preventDefault()}).on("drag",this._onBoxDrag.bind(this));this.container.on("wheel",null).on("wheel",this._onBoxWheel.bind(this)).on(".drag",null).call(V);var q=Ui.behavior.drag().on("dragstart",function(){Ui.event.sourceEvent.preventDefault(),Ui.event.sourceEvent.stopPropagation()}).on("drag",this._onBarDrag.bind(this));w&&this.hbar.on(".drag",null).call(q),E&&this.vbar.on(".drag",null).call(q)}this.setTranslate(t,n)};Jt.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(Fu.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)};Jt.prototype._onBoxDrag=function(){var r=this.translateX,t=this.translateY;this.hbar&&(r-=Ui.event.dx),this.vbar&&(t-=Ui.event.dy),this.setTranslate(r,t)};Jt.prototype._onBoxWheel=function(){var r=this.translateX,t=this.translateY;this.hbar&&(r+=Ui.event.deltaY),this.vbar&&(t+=Ui.event.deltaY),this.setTranslate(r,t)};Jt.prototype._onBarDrag=function(){var r=this.translateX,t=this.translateY;if(this.hbar){var n=r+this._hbarXMin,a=n+this._hbarTranslateMax,o=Od.constrain(Ui.event.x,n,a),i=(o-n)/(a-n),l=this.position.w-this._box.w;r=i*l}if(this.vbar){var u=t+this._vbarYMin,s=u+this._vbarTranslateMax,f=Od.constrain(Ui.event.y,u,s),c=(f-u)/(s-u),g=this.position.h-this._box.h;t=c*g}this.setTranslate(r,t)};Jt.prototype.setTranslate=function(r,t){var n=this.position.w-this._box.w,a=this.position.h-this._box.h;if(r=Od.constrain(r||0,0,n),t=Od.constrain(t||0,0,a),this.translateX=r,this.translateY=t,this.container.call(Fu.setTranslate,this._box.l-this.position.l-r,this._box.t-this.position.t-t),this._clipRect&&this._clipRect.attr({x:Math.floor(this.position.l+r-.5),y:Math.floor(this.position.t+t-.5)}),this.hbar){var o=r/n;this.hbar.call(Fu.setTranslate,r+o*this._hbarTranslateMax,t)}if(this.vbar){var i=t/a;this.vbar.call(Fu.setTranslate,r,t+i*this._vbarTranslateMax)}}});var KN=xe((Awe,$N)=>{"use strict";var Pu=lt(),rv=Sn(),tv=Zr(),Iu=At(),Za=tr(),Ud=Qn(),f2e=Tt().arrayEditor,VN=(Kn(),or($n)).LINE_SPACING,Lr=(qd(),or(Nd)),c2e=UN();$N.exports=function(r){var t=r._fullLayout,n=Za.filterVisible(t[Lr.name]);function a(g){rv.autoMargin(r,ZN(g))}var o=t._menulayer.selectAll("g."+Lr.containerClassName).data(n.length>0?[0]:[]);if(o.enter().append("g").classed(Lr.containerClassName,!0).style("cursor","pointer"),o.exit().each(function(){Pu.select(this).selectAll("g."+Lr.headerGroupClassName).each(a)}).remove(),n.length!==0){var i=o.selectAll("g."+Lr.headerGroupClassName).data(n,v2e);i.enter().append("g").classed(Lr.headerGroupClassName,!0);for(var l=Za.ensureSingle(o,"g",Lr.dropdownButtonGroupClassName,function(g){g.style("pointer-events","all")}),u=0;u{"use strict";var b2e=(qd(),or(Nd));QN.exports={moduleType:"component",name:b2e.name,layoutAttributes:Px(),supplyLayoutDefaults:qN(),draw:KN()}});var av={};Ht(av,{arrowOffsetX:()=>B2e,autoMarginIdRoot:()=>I2e,containerClassName:()=>_2e,currentValueClass:()=>R2e,currentValueInset:()=>vde,currentValuePadding:()=>cde,gripBgActiveColor:()=>rde,gripBgColor:()=>ede,gripBorder:()=>K2e,gripBorderColor:()=>j2e,gripBorderWidth:()=>Q2e,gripHeight:()=>$2e,gripRadius:()=>Z2e,gripRectClass:()=>k2e,gripWidth:()=>J2e,groupClassName:()=>w2e,inputAreaClass:()=>M2e,inputProxyClass:()=>C2e,labelClass:()=>D2e,labelGroupClass:()=>L2e,labelOffset:()=>nde,labelPadding:()=>tde,labelsClass:()=>E2e,menuIndexAttrName:()=>P2e,minHeight:()=>N2e,minWidth:()=>z2e,minorTickColor:()=>ude,minorTickLength:()=>fde,minorTickOffset:()=>sde,name:()=>x2e,railBgColor:()=>Y2e,railBorder:()=>H2e,railBorderColor:()=>G2e,railBorderWidth:()=>V2e,railHeight:()=>F2e,railInset:()=>X2e,railRadius:()=>O2e,railRectClass:()=>T2e,railTouchRectClass:()=>A2e,railWidth:()=>U2e,stepInset:()=>W2e,textPadX:()=>q2e,tickColor:()=>ide,tickLength:()=>lde,tickOffset:()=>ode,tickRectClass:()=>S2e,tickWidth:()=>ade});var x2e,_2e,w2e,M2e,T2e,A2e,k2e,S2e,C2e,E2e,L2e,D2e,R2e,F2e,P2e,I2e,z2e,N2e,q2e,B2e,O2e,U2e,H2e,V2e,G2e,Y2e,X2e,W2e,Z2e,J2e,$2e,K2e,Q2e,j2e,ede,rde,tde,nde,ade,ide,ode,lde,sde,ude,fde,cde,vde,iv=Ut(()=>{"use strict";x2e="sliders",_2e="slider-container",w2e="slider-group",M2e="slider-input-area",T2e="slider-rail-rect",A2e="slider-rail-touch-rect",k2e="slider-grip-rect",S2e="slider-tick-rect",C2e="slider-input-proxy",E2e="slider-labels",L2e="slider-label-group",D2e="slider-label",R2e="slider-current-value",F2e=5,P2e="slider-active-index",I2e="slider-",z2e=30,N2e=30,q2e=40,B2e=4,O2e=2,U2e=5,H2e=4,V2e=1,G2e="#bec8d9",Y2e="#f8fafc",X2e=8,W2e=10,Z2e=10,J2e=20,$2e=20,K2e=20,Q2e=1,j2e="#bec8d9",ede="#f6f8fa",rde="#dbdde0",tde=8,nde=0,ade=1,ide="#333",ode=25,lde=7,sde=25,ude="#333",fde=4,cde=8,vde=0});var qx=xe((Swe,tq)=>{"use strict";var eq=Wn(),hde=zh(),dde=Rt().extendDeepAll,pde=ua().overrideAll,gde=If(),rq=Tt().templatedArray,a0=(iv(),or(av)),yde=rq("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}});tq.exports=pde(rq("slider",{visible:{valType:"boolean",dflt:!0},active:{valType:"number",min:0,dflt:0},steps:yde,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:dde(hde({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:gde.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:eq({})},font:eq({}),activebgcolor:{valType:"color",dflt:a0.gripBgActiveColor},bgcolor:{valType:"color",dflt:a0.railBgColor},bordercolor:{valType:"color",dflt:a0.railBorderColor},borderwidth:{valType:"number",min:0,dflt:a0.railBorderWidth},ticklen:{valType:"number",min:0,dflt:a0.tickLength},tickcolor:{valType:"color",dflt:a0.tickColor},tickwidth:{valType:"number",min:0,dflt:1},minorticklen:{valType:"number",min:0,dflt:a0.minorTickLength}}),"arraydraw","from-root")});var oq=xe((Cwe,iq)=>{"use strict";var zu=tr(),nq=Ri(),aq=qx(),mde=(iv(),or(av)),bde=mde.name,xde=aq.steps;iq.exports=function(r,t){nq(r,t,{name:bde,handleItemDefaults:_de})};function _de(e,r,t){function n(c,g){return zu.coerce(e,r,aq,c,g)}for(var a=nq(e,r,{name:"steps",handleItemDefaults:wde}),o=0,i=0;i{"use strict";var Hi=lt(),Hd=Sn(),Vl=Zr(),Vi=At(),Ja=tr(),Mde=Ja.strTranslate,ov=Qn(),Tde=Tt().arrayEditor,Yr=(iv(),or(av)),Ux=(Kn(),or($n)),uq=Ux.LINE_SPACING,Bx=Ux.FROM_TL,Ox=Ux.FROM_BR;pq.exports=function(r){var t=r._context.staticPlot,n=r._fullLayout,a=Ade(n,r),o=n._infolayer.selectAll("g."+Yr.containerClassName).data(a.length>0?[0]:[]);o.enter().append("g").classed(Yr.containerClassName,!0).style("cursor",t?null:"ew-resize");function i(f){f._commandObserver&&(f._commandObserver.remove(),delete f._commandObserver),Hd.autoMargin(r,fq(f))}if(o.exit().each(function(){Hi.select(this).selectAll("g."+Yr.groupClassName).each(i)}).remove(),a.length!==0){var l=o.selectAll("g."+Yr.groupClassName).data(a,kde);l.enter().append("g").classed(Yr.groupClassName,!0),l.exit().each(i).remove();for(var u=0;u0&&(l=l.transition().duration(r.transition.duration).ease(r.transition.easing)),l.attr("transform",Mde(i-Yr.gripWidth*.5,r._dims.currentValueTotalHeight))}}function Hx(e,r){var t=e._dims;return t.inputAreaStart+Yr.stepInset+(t.inputAreaLength-2*Yr.stepInset)*Math.min(1,Math.max(0,r))}function sq(e,r){var t=e._dims;return Math.min(1,Math.max(0,(r-Yr.stepInset-t.inputAreaStart)/(t.inputAreaLength-2*Yr.stepInset-2*t.inputAreaStart)))}function Fde(e,r,t){var n=t._dims,a=Ja.ensureSingle(e,"rect",Yr.railTouchRectClass,function(o){o.call(hq,r,e,t).style("pointer-events","all")});a.attr({width:n.inputAreaLength,height:Math.max(n.inputAreaWidth,Yr.tickOffset+t.ticklen+n.labelHeight)}).call(Vl.fill,t.bgcolor).attr("opacity",0),Vi.setTranslate(a,0,n.currentValueTotalHeight)}function Pde(e,r){var t=r._dims,n=t.inputAreaLength-Yr.railInset*2,a=Ja.ensureSingle(e,"rect",Yr.railRectClass);a.attr({width:n,height:Yr.railWidth,rx:Yr.railRadius,ry:Yr.railRadius,"shape-rendering":"crispEdges"}).call(Vl.stroke,r.bordercolor).call(Vl.fill,r.bgcolor).style("stroke-width",r.borderwidth+"px"),Vi.setTranslate(a,Yr.railInset,(t.inputAreaWidth-Yr.railWidth)*.5+t.currentValueTotalHeight)}});var mq=xe((Lwe,yq)=>{"use strict";var Ide=(iv(),or(av));yq.exports={moduleType:"component",name:Ide.name,layoutAttributes:qx(),supplyLayoutDefaults:oq(),draw:gq()}});var Gd=xe((Dwe,xq)=>{"use strict";var bq=to();xq.exports={bgcolor:{valType:"color",dflt:bq.background,editType:"plot"},bordercolor:{valType:"color",dflt:bq.defaultLine,editType:"plot"},borderwidth:{valType:"integer",dflt:0,min:0,editType:"plot"},autorange:{valType:"boolean",dflt:!0,editType:"calc",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},range:{valType:"info_array",items:[{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}},{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}}],editType:"calc",impliedEdits:{autorange:!1}},thickness:{valType:"number",dflt:.15,min:0,max:1,editType:"plot"},visible:{valType:"boolean",dflt:!0,editType:"calc"},editType:"calc"}});var Vx=xe((Rwe,_q)=>{"use strict";_q.exports={_isSubplotObj:!0,rangemode:{valType:"enumerated",values:["auto","fixed","match"],dflt:"match",editType:"calc"},range:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},editType:"calc"}});var Yd={};Ht(Yd,{bgClassName:()=>qde,containerClassName:()=>Nde,extraPad:()=>lpe,grabAreaCursor:()=>tpe,grabAreaFill:()=>rpe,grabAreaMaxClassName:()=>Wde,grabAreaMinClassName:()=>Gde,grabAreaWidth:()=>npe,grabberMaxClassName:()=>Xde,grabberMinClassName:()=>Vde,handleMaxClassName:()=>Zde,handleMinClassName:()=>Yde,handleRadius:()=>ipe,handleStrokeWidth:()=>ope,handleWidth:()=>ape,maskColor:()=>Kde,maskMaxClassName:()=>Ude,maskMaxOppAxisClassName:()=>$de,maskMinClassName:()=>Ode,maskMinOppAxisClassName:()=>Jde,maskOppAxisColor:()=>Qde,name:()=>zde,rangePlotClassName:()=>Bde,slideBoxClassName:()=>Hde,slideBoxCursor:()=>epe,slideBoxFill:()=>jde});var zde,Nde,qde,Bde,Ode,Ude,Hde,Vde,Gde,Yde,Xde,Wde,Zde,Jde,$de,Kde,Qde,jde,epe,rpe,tpe,npe,ape,ipe,ope,lpe,Xd=Ut(()=>{"use strict";zde="rangeslider",Nde="rangeslider-container",qde="rangeslider-bg",Bde="rangeslider-rangeplot",Ode="rangeslider-mask-min",Ude="rangeslider-mask-max",Hde="rangeslider-slidebox",Vde="rangeslider-grabber-min",Gde="rangeslider-grabarea-min",Yde="rangeslider-handle-min",Xde="rangeslider-grabber-max",Wde="rangeslider-grabarea-max",Zde="rangeslider-handle-max",Jde="rangeslider-mask-min-opp-axis",$de="rangeslider-mask-max-opp-axis",Kde="rgba(0,0,0,0.4)",Qde="rgba(0,0,0,0.2)",jde="transparent",epe="ew-resize",rpe="transparent",tpe="col-resize",npe=10,ape=4,ipe=1,ope=1,lpe=15});var Tq=xe(Zd=>{"use strict";var spe=mn(),upe=Qn(),wq=(Xd(),or(Yd)),fpe=(Kn(),or($n)).LINE_SPACING,Wd=wq.name;function Mq(e){var r=e&&e[Wd];return r&&r.visible}Zd.isVisible=Mq;Zd.makeData=function(e){for(var r=spe.list({_fullLayout:e},"x",!0),t=e.margin,n=[],a=0;a{"use strict";var Jd=tr(),Aq=Tt(),kq=mn(),cpe=Gd(),vpe=Vx();Sq.exports=function(r,t,n){var a=r[n],o=t[n];if(!(a.rangeslider||t._requestRangeslider[o._id]))return;Jd.isPlainObject(a.rangeslider)||(a.rangeslider={});var i=a.rangeslider,l=Aq.newContainer(o,"rangeslider");function u(M,d){return Jd.coerce(i,l,cpe,M,d)}var s,f;function c(M,d){return Jd.coerce(s,f,vpe,M,d)}var g=u("visible");if(g){u("bgcolor",t.plot_bgcolor),u("bordercolor"),u("borderwidth"),u("thickness"),u("autorange",!o.isValidRange(i.range)),u("range");var x=t._subplots;if(x)for(var h=x.cartesian.filter(function(M){return M.slice(0,Math.max(0,M.indexOf("y")))===kq.name2id(n)}).map(function(M){return M.slice(M.indexOf("y"),M.length)}),_=Jd.simpleMap(h,kq.id2name),T=0;T<_.length;T++){var m=_[T];s=i[m]||{},f=Aq.newContainer(l,m,"yaxis");var k=t[m],S;s.range&&k.isValidRange(s.range)&&(S="fixed");var b=c("rangemode",S);b!=="match"&&c("range",k.range.slice())}l._input=i}}});var Lq=xe((Iwe,Eq)=>{"use strict";var hpe=mn().list,dpe=nu().getAutoRange,ppe=(Xd(),or(Yd));Eq.exports=function(r){for(var t=hpe(r,"x",!0),n=0;n{"use strict";var $d=lt(),gpe=Cr(),ype=Sn(),rn=tr(),Kd=rn.strTranslate,Rq=At(),Gl=Zr(),mpe=Kf(),bpe=px(),Gx=mn(),xpe=Pi(),_pe=Dl(),jr=(Xd(),or(Yd));Fq.exports=function(e){for(var r=e._fullLayout,t=r._rangeSliderData,n=0;n=L.max)z=p[P+1];else if(F=L.pmax)z=p[P+1];else if(F0?e.touches[0].clientX:0}function wpe(e,r,t,n){if(r._context.staticPlot)return;var a=e.select("rect."+jr.slideBoxClassName).node(),o=e.select("rect."+jr.grabAreaMinClassName).node(),i=e.select("rect."+jr.grabAreaMaxClassName).node();function l(){var u=$d.event,s=u.target,f=Dq(u),c=f-e.node().getBoundingClientRect().left,g=n.d2p(t._rl[0]),x=n.d2p(t._rl[1]),h=xpe.coverSlip();this.addEventListener("touchmove",_),this.addEventListener("touchend",T),h.addEventListener("mousemove",_),h.addEventListener("mouseup",T);function _(m){var k=Dq(m),S=+k-f,b,M,d;switch(s){case a:if(d="ew-resize",g+S>t._length||x+S<0)return;b=g+S,M=x+S;break;case o:if(d="col-resize",g+S>t._length)return;b=g+S,M=x;break;case i:if(d="col-resize",x+S<0)return;b=g,M=x+S;break;default:d="ew-resize",b=c,M=c+S;break}if(M{"use strict";var Rpe=tr(),Fpe=Gd(),Ppe=Vx(),Yx=Tq();Iq.exports={moduleType:"component",name:"rangeslider",schema:{subplots:{xaxis:{rangeslider:Rpe.extendFlat({},Fpe,{yaxis:Ppe})}}},layoutAttributes:Gd(),handleDefaults:Cq(),calcAutorange:Lq(),draw:Pq(),isVisible:Yx.isVisible,makeData:Yx.makeData,autoMarginOpts:Yx.autoMarginOpts}});var Qd=xe((qwe,qq)=>{"use strict";var Ipe=Wn(),Nq=to(),zpe=Tt().templatedArray,Npe=zpe("button",{visible:{valType:"boolean",dflt:!0,editType:"plot"},step:{valType:"enumerated",values:["month","year","day","hour","minute","second","all"],dflt:"month",editType:"plot"},stepmode:{valType:"enumerated",values:["backward","todate"],dflt:"backward",editType:"plot"},count:{valType:"number",min:0,dflt:1,editType:"plot"},label:{valType:"string",editType:"plot"},editType:"plot"});qq.exports={visible:{valType:"boolean",editType:"plot"},buttons:Npe,x:{valType:"number",min:-2,max:3,editType:"plot"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"plot"},y:{valType:"number",min:-2,max:3,editType:"plot"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"bottom",editType:"plot"},font:Ipe({editType:"plot"}),bgcolor:{valType:"color",dflt:Nq.lightLine,editType:"plot"},activecolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:Nq.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"}});var Xx={};Ht(Xx,{darkAmount:()=>Vpe,lightAmount:()=>Hpe,minButtonWidth:()=>Bpe,rx:()=>Ope,ry:()=>Upe,yPad:()=>qpe});var qpe,Bpe,Ope,Upe,Hpe,Vpe,Wx=Ut(()=>{"use strict";qpe=.02,Bpe=30,Ope=3,Upe=3,Hpe=25,Vpe=10});var Uq=xe((Bwe,Oq)=>{"use strict";var jd=tr(),Gpe=Zr(),Ype=Tt(),Xpe=Ri(),Bq=Qd(),Zx=(Wx(),or(Xx));Oq.exports=function(r,t,n,a,o){var i=r.rangeselector||{},l=Ype.newContainer(t,"rangeselector");function u(x,h){return jd.coerce(i,l,Bq,x,h)}var s=Xpe(i,l,{name:"buttons",handleItemDefaults:Wpe,calendar:o}),f=u("visible",s.length>0);if(f){var c=Zpe(t,n,a);u("x",c[0]),u("y",c[1]),jd.noneOrAll(r,t,["x","y"]),u("xanchor"),u("yanchor"),jd.coerceFont(u,"font",n.font);var g=u("bgcolor");u("activecolor",Gpe.contrast(g,Zx.lightAmount,Zx.darkAmount)),u("bordercolor"),u("borderwidth")}};function Wpe(e,r,t,n){var a=n.calendar;function o(u,s){return jd.coerce(e,r,Bq.buttons,u,s)}var i=o("visible");if(i){var l=o("step");l!=="all"&&(a&&a!=="gregorian"&&(l==="month"||l==="year")?r.stepmode="backward":o("stepmode"),o("count")),o("label")}}function Zpe(e,r,t){for(var n=t.filter(function(l){return r[l].anchor===e._id}),a=0,o=0;o{"use strict";var Jpe=ug(),$pe=tr().titleCase;Hq.exports=function(r,t){var n=r._name,a={};if(t.step==="all")a[n+".autorange"]=!0;else{var o=Kpe(r,t);a[n+".range[0]"]=o[0],a[n+".range[1]"]=o[1]}return a};function Kpe(e,r){var t=e.range,n=new Date(e.r2l(t[1])),a=r.step,o=Jpe["utc"+$pe(a)],i=r.count,l;switch(r.stepmode){case"backward":l=e.l2r(+o.offset(n,-i));break;case"todate":var u=o.offset(n,-i);l=e.l2r(+o.ceil(u));break}var s=t[1];return[l,s]}});var Kq=xe((Uwe,$q)=>{"use strict";var rp=lt(),Qpe=Cr(),jpe=Sn(),Gq=Zr(),Jq=At(),Wo=tr(),Yq=Wo.strTranslate,ep=Qn(),ege=mn(),Kx=(Kn(),or($n)),Xq=Kx.LINE_SPACING,Wq=Kx.FROM_TL,Zq=Kx.FROM_BR,$x=(Wx(),or(Xx)),rge=Vq();$q.exports=function(r){var t=r._fullLayout,n=t._infolayer.selectAll(".rangeselector").data(tge(r),nge);n.enter().append("g").classed("rangeselector",!0),n.exit().remove(),n.style({cursor:"pointer","pointer-events":"all"}),n.each(function(a){var o=rp.select(this),i=a,l=i.rangeselector,u=o.selectAll("g.button").data(Wo.filterVisible(l.buttons));u.enter().append("g").classed("button",!0),u.exit().remove(),u.each(function(s){var f=rp.select(this),c=rge(i,s);s._isActive=age(i,s,c),f.call(Jx,l,s),f.call(oge,l,s,r),f.on("click",function(){r._dragged||Qpe.call("_guiRelayout",r,c)}),f.on("mouseover",function(){s._isHovered=!0,f.call(Jx,l,s)}),f.on("mouseout",function(){s._isHovered=!1,f.call(Jx,l,s)})}),sge(r,u,l,i._name,o)})};function tge(e){for(var r=ege.list(e,"x",!0),t=[],n=0;n{"use strict";Qq.exports={moduleType:"component",name:"rangeselector",schema:{subplots:{xaxis:{rangeselector:Qd()}}},layoutAttributes:Qd(),handleDefaults:Uq(),draw:Kq()}});var tp=xe(Qx=>{"use strict";var eB=Rt().extendFlat;Qx.attributes=function(e,r){e=e||{},r=r||{};var t={valType:"info_array",editType:e.editType,items:[{valType:"number",min:0,max:1,editType:e.editType},{valType:"number",min:0,max:1,editType:e.editType}],dflt:[0,1]},n=e.name?e.name+" ":"",a=e.trace?"trace":"subplot",o=r.description?" "+r.description:"",i={x:eB({},t,{}),y:eB({},t,{}),editType:e.editType};return e.noGridCell||(i.row={valType:"integer",min:0,dflt:0,editType:e.editType},i.column={valType:"integer",min:0,dflt:0,editType:e.editType}),i};Qx.defaults=function(e,r,t,n){var a=n&&n.x||[0,1],o=n&&n.y||[0,1],i=r.grid;if(i){var l=t("domain.column");l!==void 0&&(l{"use strict";var uge=tr(),fge=(I0(),or(Ff)).counter,cge=tp().attributes,rB=(kn(),or(An)).idRegex,vge=Tt(),jx={rows:{valType:"integer",min:1,editType:"plot"},roworder:{valType:"enumerated",values:["top to bottom","bottom to top"],dflt:"top to bottom",editType:"plot"},columns:{valType:"integer",min:1,editType:"plot"},subplots:{valType:"info_array",freeLength:!0,dimensions:2,items:{valType:"enumerated",values:[fge("xy").toString(),""],editType:"plot"},editType:"plot"},xaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[rB.x.toString(),""],editType:"plot"},editType:"plot"},yaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[rB.y.toString(),""],editType:"plot"},editType:"plot"},pattern:{valType:"enumerated",values:["independent","coupled"],dflt:"coupled",editType:"plot"},xgap:{valType:"number",min:0,max:1,editType:"plot"},ygap:{valType:"number",min:0,max:1,editType:"plot"},domain:cge({name:"grid",editType:"plot",noGridCell:!0},{}),xside:{valType:"enumerated",values:["bottom","bottom plot","top plot","top"],dflt:"bottom plot",editType:"plot"},yside:{valType:"enumerated",values:["left","left plot","right plot","right"],dflt:"left plot",editType:"plot"},editType:"plot"};function np(e,r,t){var n=r[t+"axes"],a=Object.keys((e._splomAxes||{})[t]||{});if(Array.isArray(n))return n;if(a.length)return a}function hge(e,r){var t=e.grid||{},n=np(r,t,"x"),a=np(r,t,"y");if(!e.grid&&!n&&!a)return;var o=Array.isArray(t.subplots)&&Array.isArray(t.subplots[0]),i=Array.isArray(n),l=Array.isArray(a),u=i&&n!==t.xaxes&&l&&a!==t.yaxes,s,f;o?(s=t.subplots.length,f=t.subplots[0].length):(l&&(s=a.length),i&&(f=n.length));var c=vge.newContainer(r,"grid");function g(d,w){return uge.coerce(t,c,jx,d,w)}var x=g("rows",s),h=g("columns",f);if(!(x*h>1)){delete r.grid;return}if(!o&&!i&&!l){var _=g("pattern")==="independent";_&&(o=!0)}c._hasSubplotGrid=o;var T=g("roworder"),m=T==="top to bottom",k=o?.2:.1,S=o?.3:.1,b,M;u&&r._splomGridDflt&&(b=r._splomGridDflt.xside,M=r._splomGridDflt.yside),c._domains={x:tB("x",g,k,b,h),y:tB("y",g,S,M,x,m)}}function tB(e,r,t,n,a,o){var i=r(e+"gap",t),l=r("domain."+e);r(e+"side",n);for(var u=new Array(a),s=l[0],f=(l[1]-s)/(a-i),c=f*(1-i),g=0;g{"use strict";oB.exports={visible:{valType:"boolean",editType:"calc"},type:{valType:"enumerated",values:["percent","constant","sqrt","data"],editType:"calc"},symmetric:{valType:"boolean",editType:"calc"},array:{valType:"data_array",editType:"calc"},arrayminus:{valType:"data_array",editType:"calc"},value:{valType:"number",min:0,dflt:10,editType:"calc"},valueminus:{valType:"number",min:0,dflt:10,editType:"calc"},traceref:{valType:"integer",min:0,dflt:0,editType:"style"},tracerefminus:{valType:"integer",min:0,dflt:0,editType:"style"},copy_ystyle:{valType:"boolean",editType:"plot"},copy_zstyle:{valType:"boolean",editType:"style"},color:{valType:"color",editType:"style"},thickness:{valType:"number",min:0,dflt:2,editType:"style"},width:{valType:"number",min:0,editType:"plot"},editType:"calc"}});var uB=xe((Xwe,sB)=>{"use strict";var lB=ut(),pge=Cr(),gge=tr(),yge=Tt(),mge=e4();sB.exports=function(e,r,t,n){var a="error_"+n.axis,o=yge.newContainer(r,a),i=e[a]||{};function l(h,_){return gge.coerce(i,o,mge,h,_)}var u=i.array!==void 0||i.value!==void 0||i.type==="sqrt",s=l("visible",u);if(s!==!1){var f=l("type","array"in i?"data":"percent"),c=!0;f!=="sqrt"&&(c=l("symmetric",!((f==="data"?"arrayminus":"valueminus")in i))),f==="data"?(l("array"),l("traceref"),c||(l("arrayminus"),l("tracerefminus"))):(f==="percent"||f==="constant")&&(l("value"),c||l("valueminus"));var g="copy_"+n.inherit+"style";if(n.inherit){var x=r["error_"+n.inherit];(x||{}).visible&&l(g,!(i.color||lB(i.thickness)||lB(i.width)))}(!n.inherit||!o[g])&&(l("color",t),l("thickness"),l("width",pge.traceIs(r,"gl3d")?0:4))}}});var r4=xe((Wwe,cB)=>{"use strict";cB.exports=function(r){var t=r.type,n=r.symmetric;if(t==="data"){var a=r.array||[];if(n)return function(s,f){var c=+a[f];return[c,c]};var o=r.arrayminus||[];return function(s,f){var c=+a[f],g=+o[f];return!isNaN(c)||!isNaN(g)?[g||0,c||0]:[NaN,NaN]}}else{var i=fB(t,r.value),l=fB(t,r.valueminus);return n||r.valueminus===void 0?function(s){var f=i(s);return[f,f]}:function(s){return[l(s),i(s)]}}};function fB(e,r){if(e==="percent")return function(t){return Math.abs(t*r/100)};if(e==="constant")return function(){return Math.abs(r)};if(e==="sqrt")return function(t){return Math.sqrt(Math.abs(t))}}});var dB=xe((Zwe,hB)=>{"use strict";var t4=ut(),bge=Cr(),n4=Vt(),xge=tr(),_ge=r4();hB.exports=function(r){for(var t=r.calcdata,n=0;n{"use strict";var pB=lt(),Yl=ut(),wge=At(),Mge=Da();gB.exports=function(r,t,n,a){var o,i=n.xaxis,l=n.yaxis,u=a&&a.duration>0,s=r._context.staticPlot;t.each(function(f){var c=f[0].trace,g=c.error_x||{},x=c.error_y||{},h;c.ids&&(h=function(k){return k.id});var _=Mge.hasMarkers(c)&&c.marker.maxdisplayed>0;!x.visible&&!g.visible&&(f=[]);var T=pB.select(this).selectAll("g.errorbar").data(f,h);if(T.exit().remove(),!!f.length){g.visible||T.selectAll("path.xerror").remove(),x.visible||T.selectAll("path.yerror").remove(),T.style("opacity",1);var m=T.enter().append("g").classed("errorbar",!0);u&&m.style("opacity",0).transition().duration(a.duration).style("opacity",1),wge.setClipUrl(T,n.layerClipId,r),T.each(function(k){var S=pB.select(this),b=Tge(k,i,l);if(!(_&&!k.vis)){var M,d=S.select("path.yerror");if(x.visible&&Yl(b.x)&&Yl(b.yh)&&Yl(b.ys)){var w=x.width;M="M"+(b.x-w)+","+b.yh+"h"+2*w+"m-"+w+",0V"+b.ys,b.noYS||(M+="m-"+w+",0h"+2*w),o=!d.size(),o?d=S.append("path").style("vector-effect",s?"none":"non-scaling-stroke").classed("yerror",!0):u&&(d=d.transition().duration(a.duration).ease(a.easing)),d.attr("d",M)}else d.remove();var y=S.select("path.xerror");if(g.visible&&Yl(b.y)&&Yl(b.xh)&&Yl(b.xs)){var v=(g.copy_ystyle?x:g).width;M="M"+b.xh+","+(b.y-v)+"v"+2*v+"m0,-"+v+"H"+b.xs,b.noXS||(M+="m0,-"+v+"v"+2*v),o=!y.size(),o?y=S.append("path").style("vector-effect",s?"none":"non-scaling-stroke").classed("xerror",!0):u&&(y=y.transition().duration(a.duration).ease(a.easing)),y.attr("d",M)}else y.remove()}})}})};function Tge(e,r,t){var n={x:r.c2p(e.x),y:t.c2p(e.y)};return e.yh!==void 0&&(n.yh=t.c2p(e.yh),n.ys=t.c2p(e.ys),Yl(n.ys)||(n.noYS=!0,n.ys=t.c2p(e.ys,!0))),e.xh!==void 0&&(n.xh=r.c2p(e.xh),n.xs=r.c2p(e.xs),Yl(n.xs)||(n.noXS=!0,n.xs=r.c2p(e.xs,!0))),n}});var xB=xe(($we,bB)=>{"use strict";var Age=lt(),mB=Zr();bB.exports=function(r){r.each(function(t){var n=t[0].trace,a=n.error_y||{},o=n.error_x||{},i=Age.select(this);i.selectAll("path.yerror").style("stroke-width",a.thickness+"px").call(mB.stroke,a.color),o.copy_ystyle&&(o=a),i.selectAll("path.xerror").style("stroke-width",o.thickness+"px").call(mB.stroke,o.color)})}});var MB=xe((Kwe,wB)=>{"use strict";var lv=tr(),_B=ua().overrideAll,sv=e4(),i0={error_x:lv.extendFlat({},sv),error_y:lv.extendFlat({},sv)};delete i0.error_x.copy_zstyle;delete i0.error_y.copy_zstyle;delete i0.error_y.copy_ystyle;var uv={error_x:lv.extendFlat({},sv),error_y:lv.extendFlat({},sv),error_z:lv.extendFlat({},sv)};delete uv.error_x.copy_ystyle;delete uv.error_y.copy_ystyle;delete uv.error_z.copy_ystyle;delete uv.error_z.copy_zstyle;wB.exports={moduleType:"component",name:"errorbars",schema:{traces:{scatter:i0,bar:i0,histogram:i0,scatter3d:_B(uv,"calc","nested"),scattergl:_B(i0,"calc","nested")}},supplyDefaults:uB(),calc:dB(),makeComputeError:r4(),plot:yB(),style:xB(),hoverInfo:kge};function kge(e,r,t){(r.error_y||{}).visible&&(t.yerr=e.yh-e.y,r.error_y.symmetric||(t.yerrneg=e.y-e.ys)),(r.error_x||{}).visible&&(t.xerr=e.xh-e.x,r.error_x.symmetric||(t.xerrneg=e.x-e.xs))}});var TB={};Ht(TB,{cn:()=>Sge});var Sge,AB=Ut(()=>{"use strict";Sge={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"}});var FB=xe((Qwe,RB)=>{"use strict";var Xl=lt(),ip=Sn(),kB=Cr(),Zo=Vt(),ap=Pi(),mi=tr(),Yi=mi.strTranslate,DB=Rt().extendFlat,a4=Dl(),Gi=At(),Nu=Zr(),Cge=Kf(),Ege=Qn(),Lge=ao().flipScale,Dge=kd(),Rge=vx(),Fge=ai(),o4=(Kn(),or($n)),SB=o4.LINE_SPACING,CB=o4.FROM_TL,EB=o4.FROM_BR,Yt=(AB(),or(TB)).cn;function Pge(e){var r=e._fullLayout,t=r._infolayer.selectAll("g."+Yt.colorbar).data(Ige(e),function(n){return n._id});t.enter().append("g").attr("class",function(n){return n._id}).classed(Yt.colorbar,!0),t.each(function(n){var a=Xl.select(this);mi.ensureSingle(a,"rect",Yt.cbbg),mi.ensureSingle(a,"g",Yt.cbfills),mi.ensureSingle(a,"g",Yt.cblines),mi.ensureSingle(a,"g",Yt.cbaxis,function(i){i.classed(Yt.crisp,!0)}),mi.ensureSingle(a,"g",Yt.cbtitleunshift,function(i){i.append("g").classed(Yt.cbtitle,!0)}),mi.ensureSingle(a,"rect",Yt.cboutline);var o=zge(a,n,e);o&&o.then&&(e._promises||[]).push(o),e._context.edits.colorbarPosition&&Nge(a,n,e)}),t.exit().each(function(n){ip.autoMargin(e,n._id)}).remove(),t.order()}function Ige(e){var r=e._fullLayout,t=e.calcdata,n=[],a,o,i,l;function u(S){return DB(S,{_fillcolor:null,_line:{color:null,width:null,dash:null},_levels:{start:null,end:null,size:null},_filllevels:null,_fillgradient:null,_zrange:null})}function s(){typeof l.calc=="function"?l.calc(e,i,a):(a._fillgradient=o.reversescale?Lge(o.colorscale):o.colorscale,a._zrange=[o[l.min],o[l.max]])}for(var f=0;f[Math.min(e[0]+r,e[1]),e[1]],LB=(e,r)=>[e[0],Math.max(e[1]-r,e[0])];function zge(e,r,t){var n=r.orientation==="v",a=r.len,o=r.lenmode,i=r.thickness,l=r.thicknessmode,u=r.outlinewidth,s=r.borderwidth,f=r.bgcolor,c=r.xanchor,g=r.yanchor,x=r.xpad,h=r.ypad,_=r.x,T=n?r.y:1-r.y,m=r.yref==="paper",k=r.xref==="paper",S=t._fullLayout,b=S._size,M=r._fillcolor,d=r._line,w=r.title,y=w.side,v=r._zrange||Xl.extent((typeof M=="function"?M:d.color).domain()),A=typeof d.color=="function"?d.color:function(){return d.color},p=typeof M=="function"?M:function(){return M},D=r._levels,E=qge(t,r,v),R=E.fill,F=E.line,z=Math.round(i*(l==="fraction"?n?b.w:b.h:1)),P=z/(n?b.w:b.h),L=Math.round(a*(o==="fraction"?n?b.h:b.w:1)),I=L/(n?b.h:b.w),B=k?b.w:t._fullLayout.width,O=m?b.h:t._fullLayout.height,G=Math.round(n?_*B+x:T*O+h),J={center:.5,right:1}[c]||0,j={top:1,middle:.5}[g]||0,V=n?_-J*P:T-j*P,q=n?T-j*I:_-J*I,Z=Math.round(n?O*(1-q):B*q);r._lenFrac=I,r._thickFrac=P,r._uFrac=V,r._vFrac=q;var re=r._axis=Bge(t,r,v);re.position=P+(n?_+x/b.w:T+h/b.h);var $=["top","bottom"].indexOf(y)!==-1;if(n&&$&&(re.title.side=y,re.titlex=_+x/b.w,re.titley=q+(w.side==="top"?I-h/b.h:h/b.h)),!n&&!$&&(re.title.side=y,re.titley=T+h/b.h,re.titlex=q+x/b.w),d.color&&r.tickmode==="auto"){re.tickmode="linear",re.tick0=D.start;var ae=D.size,Q=mi.constrain(L/50,4,15)+1,te=(v[1]-v[0])/((r.nticks||Q)*ae);if(te>1){var ue=Math.pow(10,Math.floor(Math.log(te)/Math.LN10));ae*=ue*mi.roundUp(te/ue,[2,5,10]),(Math.abs(D.start)/D.size+1e-6)%1<2e-6&&(re.tick0=0)}re.dtick=ae}var ee=n?h/b.h:x/b.w;re.domain=LB(i4([q,q+I],ee),ee),re.setScale(),e.attr("transform",Yi(Math.round(b.l),Math.round(b.t)));var ie=e.select("."+Yt.cbtitleunshift).attr("transform",Yi(-Math.round(b.l),-Math.round(b.t))),fe=re.ticklabelposition,we=re.title.font.size,Te=e.select("."+Yt.cbaxis),ke,ge=0,Ee=0;function Le(oe,de){var pe={propContainer:re,propName:r._propPrefix+"title.text",traceIndex:r._traceIndex,_meta:r._meta,placeholder:S._dfltTitle.colorbar,containerGroup:e.select("."+Yt.cbtitle)},me=oe.charAt(0)==="h"?oe.slice(1):"h"+oe;e.selectAll("."+me+",."+me+"-math-group").remove(),Cge.draw(t,oe,DB(pe,de||{}))}function se(){if(n&&$||!n&&!$){var oe,de;y==="top"&&(oe=x+b.l+B*_,de=h+b.t+O*(1-q-I)+3+we*.75),y==="bottom"&&(oe=x+b.l+B*_,de=h+b.t+O*(1-q)-3-we*.25),y==="right"&&(de=h+b.t+O*T+3+we*.75,oe=x+b.l+B*q),Le(re._id+"title",{attributes:{x:oe,y:de,"text-anchor":n?"start":"middle"}})}}function X(){if(n&&!$||!n&&$){var oe=re.position||0,de=re._offset+re._length/2,pe,me;if(y==="right")me=de,pe=b.l+B*oe+10+we*(re.showticklabels?1:.5);else if(pe=de,y==="bottom"&&(me=b.t+O*oe+10+(fe.indexOf("inside")===-1?re.tickfont.size:0)+(re.ticks!=="inside"&&r.ticklen||0)),y==="top"){var Se=w.text.split("
").length;me=b.t+O*oe+10-z-SB*we*Se}Le((n?"h":"v")+re._id+"title",{avoid:{selection:Xl.select(t).selectAll("g."+re._id+"tick"),side:y,offsetTop:n?0:b.t,offsetLeft:n?b.l:0,maxShift:n?S.width:S.height},attributes:{x:pe,y:me,"text-anchor":"middle"},transform:{rotate:n?-90:0,offset:0}})}}function K(){if(!n&&!$||n&&$){var oe=e.select("."+Yt.cbtitle),de=oe.select("text"),pe=[-u/2,u/2],me=oe.select(".h"+re._id+"title-math-group").node(),Se=15.6;de.node()&&(Se=parseInt(de.node().style.fontSize,10)*SB);var ve;if(me?(ve=Gi.bBox(me),Ee=ve.width,ge=ve.height,ge>Se&&(pe[1]-=(ge-Se)/2)):de.node()&&!de.classed(Yt.jsPlaceholder)&&(ve=Gi.bBox(de.node()),Ee=ve.width,ge=ve.height),n){if(ge){if(ge+=5,y==="top")re.domain=LB(re.domain,ge/b.h),pe[1]*=-1;else{re.domain=i4(re.domain,ge/b.h);var he=Ege.lineCount(de);pe[1]+=(1-he)*Se}oe.attr("transform",Yi(pe[0],pe[1])),re.setScale()}}else Ee&&(y==="right"&&(re.domain=i4(re.domain,(Ee+we/2)/b.w)),oe.attr("transform",Yi(pe[0],pe[1])),re.setScale())}e.selectAll("."+Yt.cbfills+",."+Yt.cblines).attr("transform",n?Yi(0,Math.round(b.h*(1-re.domain[1]))):Yi(Math.round(b.w*re.domain[0]),0)),Te.attr("transform",n?Yi(0,Math.round(-b.t)):Yi(Math.round(-b.l),0));var be=e.select("."+Yt.cbfills).selectAll("rect."+Yt.cbfill).attr("style","").data(R);be.enter().append("rect").classed(Yt.cbfill,!0).attr("style",""),be.exit().remove();var Ae=v.map(re.c2p).map(Math.round).sort(function(Ue,qe){return Ue-qe});be.each(function(Ue,qe){var We=[qe===0?v[0]:(R[qe]+R[qe-1])/2,qe===R.length-1?v[1]:(R[qe]+R[qe+1])/2].map(re.c2p).map(Math.round);n&&(We[1]=mi.constrain(We[1]+(We[1]>We[0])?1:-1,Ae[0],Ae[1]));var Xe=Xl.select(this).attr(n?"x":"y",G).attr(n?"y":"x",Xl.min(We)).attr(n?"width":"height",Math.max(z,2)).attr(n?"height":"width",Math.max(Xl.max(We)-Xl.min(We),2));if(r._fillgradient)Gi.gradient(Xe,t,r._id,n?"vertical":"horizontalreversed",r._fillgradient,"fill");else{var er=p(Ue).replace("e-","");Xe.attr("fill",Nu.hexString(er))}});var Re=e.select("."+Yt.cblines).selectAll("path."+Yt.cbline).data(d.color&&d.width?F:[]);Re.enter().append("path").classed(Yt.cbline,!0),Re.exit().remove(),Re.each(function(Ue){var qe=G,We=Math.round(re.c2p(Ue))+d.width/2%1;Xl.select(this).attr("d","M"+(n?qe+","+We:We+","+qe)+(n?"h":"v")+z).call(Gi.lineGroupStyle,d.width,A(Ue),d.dash)}),Te.selectAll("g."+re._id+"tick,path").remove();var Pe=G+z+(u||0)/2-(r.ticks==="outside"?1:0),Ye=Zo.calcTicks(re),Ve=Zo.getTickSigns(re)[2];return Zo.drawTicks(t,re,{vals:re.ticks==="inside"?Zo.clipEnds(re,Ye):Ye,layer:Te,path:Zo.makeTickPath(re,Pe,Ve),transFn:Zo.makeTransTickFn(re)}),Zo.drawLabels(t,re,{vals:Ye,layer:Te,transFn:Zo.makeTransTickLabelFn(re),labelFns:Zo.makeLabelFns(re,Pe)})}function ye(){var oe,de=z+u/2;fe.indexOf("inside")===-1&&(oe=Gi.bBox(Te.node()),de+=n?oe.width:oe.height),ke=ie.select("text");var pe=0,me=n&&y==="top",Se=!n&&y==="right",ve=0;if(ke.node()&&!ke.classed(Yt.jsPlaceholder)){var he,be=ie.select(".h"+re._id+"title-math-group").node();be&&(n&&$||!n&&!$)?(oe=Gi.bBox(be),pe=oe.width,he=oe.height):(oe=Gi.bBox(ie.node()),pe=oe.right-b.l-(n?G:Z),he=oe.bottom-b.t-(n?Z:G),!n&&y==="top"&&(de+=oe.height,ve=oe.height)),Se&&(ke.attr("transform",Yi(pe/2+we/2,0)),pe*=2),de=Math.max(de,n?pe:he)}var Ae=(n?x:h)*2+de+s+u/2,Re=0;!n&&w.text&&g==="bottom"&&T<=0&&(Re=Ae/2,Ae+=Re,ve+=Re),S._hColorbarMoveTitle=Re,S._hColorbarMoveCBTitle=ve;var Pe=s+u,Ye=(n?G:Z)-Pe/2-(n?x:0),Ve=(n?Z:G)-(n?L:h+ve-Re);e.select("."+Yt.cbbg).attr("x",Ye).attr("y",Ve).attr(n?"width":"height",Math.max(Ae-Re,2)).attr(n?"height":"width",Math.max(L+Pe,2)).call(Nu.fill,f).call(Nu.stroke,r.bordercolor).style("stroke-width",s);var Ue=Se?Math.max(pe-10,0):0;e.selectAll("."+Yt.cboutline).attr("x",(n?G:Z+x)+Ue).attr("y",(n?Z+h-L:G)+(me?ge:0)).attr(n?"width":"height",Math.max(z,2)).attr(n?"height":"width",Math.max(L-(n?2*h+ge:2*x+Ue),2)).call(Nu.stroke,r.outlinecolor).style({fill:"none","stroke-width":u});var qe=n?J*Ae:0,We=n?0:(1-j)*Ae-ve;if(qe=k?b.l-qe:-qe,We=m?b.t-We:-We,e.attr("transform",Yi(qe,We)),!n&&(s||Nu.opacity(f)&&!Nu.equals(S.paper_bgcolor,f))){var Xe=Te.selectAll("text"),er=Xe[0].length,nr=e.select("."+Yt.cbbg).node(),rr=Gi.bBox(nr),Qe=Gi.getTranslate(e),Ce=2;Xe.each(function(Hr,ot){var Ir=0,Jr=er-1;if(ot===Ir||ot===Jr){var Xt=Gi.bBox(this),tt=Gi.getTranslate(this),Kr;if(ot===Jr){var qt=Xt.right+tt.x,lr=rr.right+Qe.x+Z-s-Ce+_;Kr=lr-qt,Kr>0&&(Kr=0)}else if(ot===Ir){var Dr=Xt.left+tt.x,Vr=rr.left+Qe.x+Z+s+Ce;Kr=Vr-Dr,Kr<0&&(Kr=0)}Kr&&(er<3?this.setAttribute("transform","translate("+Kr+",0) "+this.getAttribute("transform")):this.setAttribute("visibility","hidden"))}})}var ze={},Ke=CB[c],je=EB[c],wr=CB[g],Xr=EB[g],Tr=Ae-z;n?(o==="pixels"?(ze.y=T,ze.t=L*wr,ze.b=L*Xr):(ze.t=ze.b=0,ze.yt=T+a*wr,ze.yb=T-a*Xr),l==="pixels"?(ze.x=_,ze.l=Ae*Ke,ze.r=Ae*je):(ze.l=Tr*Ke,ze.r=Tr*je,ze.xl=_-i*Ke,ze.xr=_+i*je)):(o==="pixels"?(ze.x=_,ze.l=L*Ke,ze.r=L*je):(ze.l=ze.r=0,ze.xl=_+a*Ke,ze.xr=_-a*je),l==="pixels"?(ze.y=1-T,ze.t=Ae*wr,ze.b=Ae*Xr):(ze.t=Tr*wr,ze.b=Tr*Xr,ze.yt=T-i*wr,ze.yb=T+i*Xr));var Pr=r.y<.5?"b":"t",at=r.x<.5?"l":"r";t._fullLayout._reservedMargin[r._id]={};var Ar={r:S.width-Ye-qe,l:Ye+ze.r,b:S.height-Ve-We,t:Ve+ze.b};k&&m?ip.autoMargin(t,r._id,ze):k?t._fullLayout._reservedMargin[r._id][Pr]=Ar[Pr]:m||n?t._fullLayout._reservedMargin[r._id][at]=Ar[at]:t._fullLayout._reservedMargin[r._id][Pr]=Ar[Pr]}return mi.syncOrAsync([ip.previousPromises,se,K,X,ip.previousPromises,ye],t)}function Nge(e,r,t){var n=r.orientation==="v",a=t._fullLayout,o=a._size,i,l,u;ap.init({element:e.node(),gd:t,prepFn:function(){i=e.attr("transform"),a4(e)},moveFn:function(s,f){e.attr("transform",i+Yi(s,f)),l=ap.align((n?r._uFrac:r._vFrac)+s/o.w,n?r._thickFrac:r._lenFrac,0,1,r.xanchor),u=ap.align((n?r._vFrac:1-r._uFrac)-f/o.h,n?r._lenFrac:r._thickFrac,0,1,r.yanchor);var c=ap.getCursor(l,u,r.xanchor,r.yanchor);a4(e,c)},doneFn:function(){if(a4(e),l!==void 0&&u!==void 0){var s={};s[r._propPrefix+"x"]=l,s[r._propPrefix+"y"]=u,r._traceIndex!==void 0?kB.call("_guiRestyle",t,s,r._traceIndex):kB.call("_guiRelayout",t,s)}}})}function qge(e,r,t){var n=r._levels,a=[],o=[],i,l,u=n.end+n.size/100,s=n.size,f=1.001*t[0]-.001*t[1],c=1.001*t[1]-.001*t[0];for(l=0;l<1e5&&(i=n.start+l*s,!(s>0?i>=u:i<=u));l++)i>f&&i0?i>=u:i<=u));l++)i>t[0]&&i{"use strict";PB.exports={moduleType:"component",name:"colorbar",attributes:v1(),supplyDefaults:am(),draw:FB().draw,hasColorbar:Wy()}});var NB=xe((e8e,zB)=>{"use strict";zB.exports={moduleType:"component",name:"legend",layoutAttributes:e5(),supplyLayoutDefaults:t5(),draw:y5(),style:h5()}});var BB=xe((r8e,qB)=>{"use strict";qB.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"}}});var UB=xe((t8e,OB)=>{"use strict";OB.exports={moduleType:"locale",name:"en-US",dictionary:{"Click to enter Colorscale title":"Click to enter Colorscale title"},format:{date:"%m/%d/%Y"}}});var s4=xe((n8e,YB)=>{"use strict";var Oge=Cr(),GB=tr(),l4=GB.extendFlat,HB=GB.extendDeep;function VB(e){var r;switch(e){case"themes__thumb":r={autosize:!0,width:150,height:150,title:{text:""},showlegend:!1,margin:{l:5,r:5,t:5,b:5,pad:0},annotations:[]};break;case"thumbnail":r={title:{text:""},showlegend:!1,borderwidth:0,bordercolor:"",margin:{l:1,r:1,t:1,b:1,pad:0},annotations:[]};break;default:r={}}return r}function Uge(e){var r=["xaxis","yaxis","zaxis"];return r.indexOf(e.slice(0,5))>-1}YB.exports=function(r,t){var n,a=r.data,o=r.layout,i=HB([],a),l=HB({},o,VB(t.tileClass)),u=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 s=Object.keys(l);for(n=0;n{"use strict";var Hge=e1().EventEmitter,Vge=Cr(),Gge=tr(),XB=Zs(),Yge=s4(),Xge=sd(),Wge=ud();function Zge(e,r){var t=new Hge,n=Yge(e,{format:"png"}),a=n.gd;a.style.position="absolute",a.style.left="-5000px",document.body.appendChild(a);function o(){var l=XB.getDelay(a._fullLayout);setTimeout(function(){var u=Xge(a),s=document.createElement("canvas");s.id=Gge.randstr(),t=Wge({format:r.format,width:a._fullLayout.width,height:a._fullLayout.height,canvas:s,emitter:t,svg:u}),t.clean=function(){a&&document.body.removeChild(a)}},l)}var i=XB.getRedrawFunc(a);return Vge.call("_doPlot",a,n.data,n.layout,n.config).then(i).then(o).catch(function(l){t.emit("error",l)}),t}WB.exports=Zge});var KB=xe((i8e,$B)=>{"use strict";var JB=Zs(),Jge={getDelay:JB.getDelay,getRedrawFunc:JB.getRedrawFunc,clone:s4(),toSVG:sd(),svgToImg:ud(),toImage:ZB(),downloadImage:Nb()};$B.exports=Jge});var jB=xe(Jo=>{"use strict";Jo.version=uf().version;t7();UT();var $ge=Cr(),fv=Jo.register=$ge.register,f4=rP(),QB=Object.keys(f4);for(op=0;op{"use strict";eO.exports=jB()});var In=xe((s8e,tO)=>{"use strict";(()=>{var e={3065(a,o,i){a.exports={alpha_shape:i(3502),convex_hull:i(7352),delaunay_triangulate:i(7642),gl_cone3d:i(6405),gl_error3d:i(9165),gl_line3d:i(5714),gl_mesh3d:i(7201),gl_plot3d:i(4100),gl_scatter3d:i(8418),gl_streamtube3d:i(7815),gl_surface3d:i(9499),ndarray:i(9618),ndarray_linear_interpolate:i(4317)}},6296(a,o,i){"use strict";a.exports=g;var l=i(7261),u=i(9977),s=i(1811);function f(x,h){this._controllerNames=Object.keys(x),this._controllerList=this._controllerNames.map(function(_){return x[_]}),this._mode=h,this._active=x[h],this._active||(this._mode="turntable",this._active=x.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(x){for(var h=this._controllerList,_=0;_0)throw new Error("Invalid string. Length must be a multiple of 4");var M=S.indexOf("=");M===-1&&(M=b);var d=M===b?0:4-M%4;return[M,d]}function x(S){var b=g(S),M=b[0],d=b[1];return(M+d)*3/4-d}function h(S,b,M){return(b+M)*3/4-M}function _(S){var b,M=g(S),d=M[0],w=M[1],y=new u(h(S,d,w)),v=0,A=w>0?d-4:d,p;for(p=0;p>16&255,y[v++]=b>>8&255,y[v++]=b&255;return w===2&&(b=l[S.charCodeAt(p)]<<2|l[S.charCodeAt(p+1)]>>4,y[v++]=b&255),w===1&&(b=l[S.charCodeAt(p)]<<10|l[S.charCodeAt(p+1)]<<4|l[S.charCodeAt(p+2)]>>2,y[v++]=b>>8&255,y[v++]=b&255),y}function T(S){return i[S>>18&63]+i[S>>12&63]+i[S>>6&63]+i[S&63]}function m(S,b,M){for(var d,w=[],y=b;yA?A:v+y));return d===1?(b=S[M-1],w.push(i[b>>2]+i[b<<4&63]+"==")):d===2&&(b=(S[M-2]<<8)+S[M-1],w.push(i[b>>10]+i[b>>4&63]+i[b<<2&63]+"=")),w.join("")}},3865(a,o,i){"use strict";var l=i(869);a.exports=u;function u(s,f){return l(s[0].mul(f[1]).add(f[0].mul(s[1])),s[1].mul(f[1]))}},1318(a){"use strict";a.exports=o;function o(i,l){return i[0].mul(l[1]).cmp(l[0].mul(i[1]))}},8697(a,o,i){"use strict";var l=i(869);a.exports=u;function u(s,f){return l(s[0].mul(f[1]),s[1].mul(f[0]))}},7842(a,o,i){"use strict";var l=i(6330),u=i(1533),s=i(2651),f=i(6768),c=i(869),g=i(8697);a.exports=x;function x(h,_){if(l(h))return _?g(h,x(_)):[h[0].clone(),h[1].clone()];var T=0,m,k;if(u(h))m=h.clone();else if(typeof h=="string")m=f(h);else{if(h===0)return[s(0),s(1)];if(h===Math.floor(h))m=s(h);else{for(;h!==Math.floor(h);)h=h*Math.pow(2,256),T-=256;m=s(h)}}if(l(_))m.mul(_[1]),k=_[0].clone();else if(u(_))k=_.clone();else if(typeof _=="string")k=f(_);else if(!_)k=s(1);else if(_===Math.floor(_))k=s(_);else{for(;_!==Math.floor(_);)_=_*Math.pow(2,256),T+=256;k=s(_)}return T>0?m=m.ushln(T):T<0&&(k=k.ushln(-T)),c(m,k)}},6330(a,o,i){"use strict";var l=i(1533);a.exports=u;function u(s){return Array.isArray(s)&&s.length===2&&l(s[0])&&l(s[1])}},5716(a,o,i){"use strict";var l=i(6859);a.exports=u;function u(s){return s.cmp(new l(0))}},1369(a,o,i){"use strict";var l=i(5716);a.exports=u;function u(s){var f=s.length,c=s.words,g=0;if(f===1)g=c[0];else if(f===2)g=c[0]+c[1]*67108864;else for(var x=0;x20?52:g+32}},1533(a,o,i){"use strict";var l=i(6859);a.exports=u;function u(s){return s&&typeof s=="object"&&!!s.words}},2651(a,o,i){"use strict";var l=i(6859),u=i(2361);a.exports=s;function s(f){var c=u.exponent(f);return c<52?new l(f):new l(f*Math.pow(2,52-c)).ushln(c-52)}},869(a,o,i){"use strict";var l=i(2651),u=i(5716);a.exports=s;function s(f,c){var g=u(f),x=u(c);if(g===0)return[l(0),l(1)];if(x===0)return[l(0),l(0)];x<0&&(f=f.neg(),c=c.neg());var h=f.gcd(c);return h.cmpn(1)?[f.div(h),c.div(h)]:[f,c]}},6768(a,o,i){"use strict";var l=i(6859);a.exports=u;function u(s){return new l(s)}},6504(a,o,i){"use strict";var l=i(869);a.exports=u;function u(s,f){return l(s[0].mul(f[0]),s[1].mul(f[1]))}},7721(a,o,i){"use strict";var l=i(5716);a.exports=u;function u(s){return l(s[0])*l(s[1])}},5572(a,o,i){"use strict";var l=i(869);a.exports=u;function u(s,f){return l(s[0].mul(f[1]).sub(s[1].mul(f[0])),s[1].mul(f[1]))}},946(a,o,i){"use strict";var l=i(1369),u=i(4025);a.exports=s;function s(f){var c=f[0],g=f[1];if(c.cmpn(0)===0)return 0;var x=c.abs().divmod(g.abs()),h=x.div,_=l(h),T=x.mod,m=c.negative!==g.negative?-1:1;if(T.cmpn(0)===0)return m*_;if(_){var k=u(_)+4,S=l(T.ushln(k).divRound(g));return m*(_+S*Math.pow(2,-k))}else{var b=g.bitLength()-T.bitLength()+53,S=l(T.ushln(b).divRound(g));return b<1023?m*S*Math.pow(2,-b):(S*=Math.pow(2,-1023),m*S*Math.pow(2,1023-b))}}},2478(a){"use strict";function o(c,g,x,h,_){for(var T=_+1;h<=_;){var m=h+_>>>1,k=c[m],S=x!==void 0?x(k,g):k-g;S>=0?(T=m,_=m-1):h=m+1}return T}function i(c,g,x,h,_){for(var T=_+1;h<=_;){var m=h+_>>>1,k=c[m],S=x!==void 0?x(k,g):k-g;S>0?(T=m,_=m-1):h=m+1}return T}function l(c,g,x,h,_){for(var T=h-1;h<=_;){var m=h+_>>>1,k=c[m],S=x!==void 0?x(k,g):k-g;S<0?(T=m,h=m+1):_=m-1}return T}function u(c,g,x,h,_){for(var T=h-1;h<=_;){var m=h+_>>>1,k=c[m],S=x!==void 0?x(k,g):k-g;S<=0?(T=m,h=m+1):_=m-1}return T}function s(c,g,x,h,_){for(;h<=_;){var T=h+_>>>1,m=c[T],k=x!==void 0?x(m,g):m-g;if(k===0)return T;k<=0?h=T+1:_=T-1}return-1}function f(c,g,x,h,_,T){return typeof x=="function"?T(c,g,x,h===void 0?0:h|0,_===void 0?c.length-1:_|0):T(c,g,void 0,x===void 0?0:x|0,h===void 0?c.length-1:h|0)}a.exports={ge:function(c,g,x,h,_){return f(c,g,x,h,_,o)},gt:function(c,g,x,h,_){return f(c,g,x,h,_,i)},lt:function(c,g,x,h,_){return f(c,g,x,h,_,l)},le:function(c,g,x,h,_){return f(c,g,x,h,_,u)},eq:function(c,g,x,h,_){return f(c,g,x,h,_,s)}}},8828(a,o){"use strict";"use restrict";var i=32;o.INT_BITS=i,o.INT_MAX=2147483647,o.INT_MIN=-1<0)-(s<0)},o.abs=function(s){var f=s>>i-1;return(s^f)-f},o.min=function(s,f){return f^(s^f)&-(s65535)<<4,s>>>=f,c=(s>255)<<3,s>>>=c,f|=c,c=(s>15)<<2,s>>>=c,f|=c,c=(s>3)<<1,s>>>=c,f|=c,f|s>>1},o.log10=function(s){return s>=1e9?9:s>=1e8?8:s>=1e7?7:s>=1e6?6:s>=1e5?5:s>=1e4?4:s>=1e3?3:s>=100?2:s>=10?1:0},o.popCount=function(s){return s=s-(s>>>1&1431655765),s=(s&858993459)+(s>>>2&858993459),(s+(s>>>4)&252645135)*16843009>>>24};function l(s){var f=32;return s&=-s,s&&f--,s&65535&&(f-=16),s&16711935&&(f-=8),s&252645135&&(f-=4),s&858993459&&(f-=2),s&1431655765&&(f-=1),f}o.countTrailingZeros=l,o.nextPow2=function(s){return s+=s===0,--s,s|=s>>>1,s|=s>>>2,s|=s>>>4,s|=s>>>8,s|=s>>>16,s+1},o.prevPow2=function(s){return s|=s>>>1,s|=s>>>2,s|=s>>>4,s|=s>>>8,s|=s>>>16,s-(s>>>1)},o.parity=function(s){return s^=s>>>16,s^=s>>>8,s^=s>>>4,s&=15,27030>>>s&1};var u=new Array(256);(function(s){for(var f=0;f<256;++f){var c=f,g=f,x=7;for(c>>>=1;c;c>>>=1)g<<=1,g|=c&1,--x;s[f]=g<>>8&255]<<16|u[s>>>16&255]<<8|u[s>>>24&255]},o.interleave2=function(s,f){return s&=65535,s=(s|s<<8)&16711935,s=(s|s<<4)&252645135,s=(s|s<<2)&858993459,s=(s|s<<1)&1431655765,f&=65535,f=(f|f<<8)&16711935,f=(f|f<<4)&252645135,f=(f|f<<2)&858993459,f=(f|f<<1)&1431655765,s|f<<1},o.deinterleave2=function(s,f){return s=s>>>f&1431655765,s=(s|s>>>1)&858993459,s=(s|s>>>2)&252645135,s=(s|s>>>4)&16711935,s=(s|s>>>16)&65535,s<<16>>16},o.interleave3=function(s,f,c){return s&=1023,s=(s|s<<16)&4278190335,s=(s|s<<8)&251719695,s=(s|s<<4)&3272356035,s=(s|s<<2)&1227133513,f&=1023,f=(f|f<<16)&4278190335,f=(f|f<<8)&251719695,f=(f|f<<4)&3272356035,f=(f|f<<2)&1227133513,s|=f<<1,c&=1023,c=(c|c<<16)&4278190335,c=(c|c<<8)&251719695,c=(c|c<<4)&3272356035,c=(c|c<<2)&1227133513,s|c<<2},o.deinterleave3=function(s,f){return s=s>>>f&1227133513,s=(s|s>>>2)&3272356035,s=(s|s>>>4)&251719695,s=(s|s>>>8)&4278190335,s=(s|s>>>16)&1023,s<<22>>22},o.nextCombination=function(s){var f=s|s-1;return f+1|(~f&-~f)-1>>>l(s)+1}},6859(a,o,i){a=i.nmd(a),(function(l,u){"use strict";function s(P,L){if(!P)throw new Error(L||"Assertion failed")}function f(P,L){P.super_=L;var I=function(){};I.prototype=L.prototype,P.prototype=new I,P.prototype.constructor=P}function c(P,L,I){if(c.isBN(P))return P;this.negative=0,this.words=null,this.length=0,this.red=null,P!==null&&((L==="le"||L==="be")&&(I=L,L=10),this._init(P||0,L||10,I||"be"))}typeof l=="object"?l.exports=c:u.BN=c,c.BN=c,c.wordSize=26;var g;try{typeof window!="undefined"&&typeof window.Buffer!="undefined"?g=window.Buffer:g=i(7790).Buffer}catch(P){}c.isBN=function(L){return L instanceof c?!0:L!==null&&typeof L=="object"&&L.constructor.wordSize===c.wordSize&&Array.isArray(L.words)},c.max=function(L,I){return L.cmp(I)>0?L:I},c.min=function(L,I){return L.cmp(I)<0?L:I},c.prototype._init=function(L,I,B){if(typeof L=="number")return this._initNumber(L,I,B);if(typeof L=="object")return this._initArray(L,I,B);I==="hex"&&(I=16),s(I===(I|0)&&I>=2&&I<=36),L=L.toString().replace(/\s+/g,"");var O=0;L[0]==="-"&&(O++,this.negative=1),O=0;O-=3)J=L[O]|L[O-1]<<8|L[O-2]<<16,this.words[G]|=J<>>26-j&67108863,j+=24,j>=26&&(j-=26,G++);else if(B==="le")for(O=0,G=0;O>>26-j&67108863,j+=24,j>=26&&(j-=26,G++);return this.strip()};function x(P,L){var I=P.charCodeAt(L);return I>=65&&I<=70?I-55:I>=97&&I<=102?I-87:I-48&15}function h(P,L,I){var B=x(P,I);return I-1>=L&&(B|=x(P,I-1)<<4),B}c.prototype._parseHex=function(L,I,B){this.length=Math.ceil((L.length-I)/6),this.words=new Array(this.length);for(var O=0;O=I;O-=2)j=h(L,I,O)<=18?(G-=18,J+=1,this.words[J]|=j>>>26):G+=8;else{var V=L.length-I;for(O=V%2===0?I+1:I;O=18?(G-=18,J+=1,this.words[J]|=j>>>26):G+=8}this.strip()};function _(P,L,I,B){for(var O=0,G=Math.min(P.length,I),J=L;J=49?O+=j-49+10:j>=17?O+=j-17+10:O+=j}return O}c.prototype._parseBase=function(L,I,B){this.words=[0],this.length=1;for(var O=0,G=1;G<=67108863;G*=I)O++;O--,G=G/I|0;for(var J=L.length-B,j=J%O,V=Math.min(J,J-j)+B,q=0,Z=B;Z1&&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 T=["","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"],m=[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],k=[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(L,I){L=L||10,I=I|0||1;var B;if(L===16||L==="hex"){B="";for(var O=0,G=0,J=0;J>>24-O&16777215,O+=2,O>=26&&(O-=26,J--),G!==0||J!==this.length-1?B=T[6-V.length]+V+B:B=V+B}for(G!==0&&(B=G.toString(16)+B);B.length%I!==0;)B="0"+B;return this.negative!==0&&(B="-"+B),B}if(L===(L|0)&&L>=2&&L<=36){var q=m[L],Z=k[L];B="";var re=this.clone();for(re.negative=0;!re.isZero();){var $=re.modn(Z).toString(L);re=re.idivn(Z),re.isZero()?B=$+B:B=T[q-$.length]+$+B}for(this.isZero()&&(B="0"+B);B.length%I!==0;)B="0"+B;return this.negative!==0&&(B="-"+B),B}s(!1,"Base should be between 2 and 36")},c.prototype.toNumber=function(){var L=this.words[0];return this.length===2?L+=this.words[1]*67108864:this.length===3&&this.words[2]===1?L+=4503599627370496+this.words[1]*67108864:this.length>2&&s(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-L:L},c.prototype.toJSON=function(){return this.toString(16)},c.prototype.toBuffer=function(L,I){return s(typeof g!="undefined"),this.toArrayLike(g,L,I)},c.prototype.toArray=function(L,I){return this.toArrayLike(Array,L,I)},c.prototype.toArrayLike=function(L,I,B){var O=this.byteLength(),G=B||Math.max(1,O);s(O<=G,"byte array longer than desired length"),s(G>0,"Requested array length <= 0"),this.strip();var J=I==="le",j=new L(G),V,q,Z=this.clone();if(J){for(q=0;!Z.isZero();q++)V=Z.andln(255),Z.iushrn(8),j[q]=V;for(;q=4096&&(B+=13,I>>>=13),I>=64&&(B+=7,I>>>=7),I>=8&&(B+=4,I>>>=4),I>=2&&(B+=2,I>>>=2),B+I},c.prototype._zeroBits=function(L){if(L===0)return 26;var I=L,B=0;return(I&8191)===0&&(B+=13,I>>>=13),(I&127)===0&&(B+=7,I>>>=7),(I&15)===0&&(B+=4,I>>>=4),(I&3)===0&&(B+=2,I>>>=2),(I&1)===0&&B++,B},c.prototype.bitLength=function(){var L=this.words[this.length-1],I=this._countBits(L);return(this.length-1)*26+I};function S(P){for(var L=new Array(P.bitLength()),I=0;I>>O}return L}c.prototype.zeroBits=function(){if(this.isZero())return 0;for(var L=0,I=0;IL.length?this.clone().ior(L):L.clone().ior(this)},c.prototype.uor=function(L){return this.length>L.length?this.clone().iuor(L):L.clone().iuor(this)},c.prototype.iuand=function(L){var I;this.length>L.length?I=L:I=this;for(var B=0;BL.length?this.clone().iand(L):L.clone().iand(this)},c.prototype.uand=function(L){return this.length>L.length?this.clone().iuand(L):L.clone().iuand(this)},c.prototype.iuxor=function(L){var I,B;this.length>L.length?(I=this,B=L):(I=L,B=this);for(var O=0;OL.length?this.clone().ixor(L):L.clone().ixor(this)},c.prototype.uxor=function(L){return this.length>L.length?this.clone().iuxor(L):L.clone().iuxor(this)},c.prototype.inotn=function(L){s(typeof L=="number"&&L>=0);var I=Math.ceil(L/26)|0,B=L%26;this._expand(I),B>0&&I--;for(var O=0;O0&&(this.words[O]=~this.words[O]&67108863>>26-B,O++);O=0);var B=L/26|0,O=L%26;return this._expand(B+1),I?this.words[B]=this.words[B]|1<L.length?(B=this,O=L):(B=L,O=this);for(var G=0,J=0;J>>26;for(;G!==0&&J>>26;if(this.length=B.length,G!==0)this.words[this.length]=G,this.length++;else if(B!==this)for(;JL.length?this.clone().iadd(L):L.clone().iadd(this)},c.prototype.isub=function(L){if(L.negative!==0){L.negative=0;var I=this.iadd(L);return L.negative=1,I._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(L),this.negative=1,this._normSign();var B=this.cmp(L);if(B===0)return this.negative=0,this.length=1,this.words[0]=0,this;var O,G;B>0?(O=this,G=L):(O=L,G=this);for(var J=0,j=0;j>26,this.words[j]=I&67108863;for(;J!==0&&j>26,this.words[j]=I&67108863;if(J===0&&j>>26,re=V&67108863,$=Math.min(q,L.length-1),ae=Math.max(0,q-P.length+1);ae<=$;ae++){var Q=q-ae|0;O=P.words[Q]|0,G=L.words[ae]|0,J=O*G+re,Z+=J/67108864|0,re=J&67108863}I.words[q]=re|0,V=Z|0}return V!==0?I.words[q]=V|0:I.length--,I.strip()}var M=function(L,I,B){var O=L.words,G=I.words,J=B.words,j=0,V,q,Z,re=O[0]|0,$=re&8191,ae=re>>>13,Q=O[1]|0,te=Q&8191,ue=Q>>>13,ee=O[2]|0,ie=ee&8191,fe=ee>>>13,we=O[3]|0,Te=we&8191,ke=we>>>13,ge=O[4]|0,Ee=ge&8191,Le=ge>>>13,se=O[5]|0,X=se&8191,K=se>>>13,ye=O[6]|0,oe=ye&8191,de=ye>>>13,pe=O[7]|0,me=pe&8191,Se=pe>>>13,ve=O[8]|0,he=ve&8191,be=ve>>>13,Ae=O[9]|0,Re=Ae&8191,Pe=Ae>>>13,Ye=G[0]|0,Ve=Ye&8191,Ue=Ye>>>13,qe=G[1]|0,We=qe&8191,Xe=qe>>>13,er=G[2]|0,nr=er&8191,rr=er>>>13,Qe=G[3]|0,Ce=Qe&8191,ze=Qe>>>13,Ke=G[4]|0,je=Ke&8191,wr=Ke>>>13,Xr=G[5]|0,Tr=Xr&8191,Pr=Xr>>>13,at=G[6]|0,Ar=at&8191,Hr=at>>>13,ot=G[7]|0,Ir=ot&8191,Jr=ot>>>13,Xt=G[8]|0,tt=Xt&8191,Kr=Xt>>>13,qt=G[9]|0,lr=qt&8191,Dr=qt>>>13;B.negative=L.negative^I.negative,B.length=19,V=Math.imul($,Ve),q=Math.imul($,Ue),q=q+Math.imul(ae,Ve)|0,Z=Math.imul(ae,Ue);var Vr=(j+V|0)+((q&8191)<<13)|0;j=(Z+(q>>>13)|0)+(Vr>>>26)|0,Vr&=67108863,V=Math.imul(te,Ve),q=Math.imul(te,Ue),q=q+Math.imul(ue,Ve)|0,Z=Math.imul(ue,Ue),V=V+Math.imul($,We)|0,q=q+Math.imul($,Xe)|0,q=q+Math.imul(ae,We)|0,Z=Z+Math.imul(ae,Xe)|0;var st=(j+V|0)+((q&8191)<<13)|0;j=(Z+(q>>>13)|0)+(st>>>26)|0,st&=67108863,V=Math.imul(ie,Ve),q=Math.imul(ie,Ue),q=q+Math.imul(fe,Ve)|0,Z=Math.imul(fe,Ue),V=V+Math.imul(te,We)|0,q=q+Math.imul(te,Xe)|0,q=q+Math.imul(ue,We)|0,Z=Z+Math.imul(ue,Xe)|0,V=V+Math.imul($,nr)|0,q=q+Math.imul($,rr)|0,q=q+Math.imul(ae,nr)|0,Z=Z+Math.imul(ae,rr)|0;var mt=(j+V|0)+((q&8191)<<13)|0;j=(Z+(q>>>13)|0)+(mt>>>26)|0,mt&=67108863,V=Math.imul(Te,Ve),q=Math.imul(Te,Ue),q=q+Math.imul(ke,Ve)|0,Z=Math.imul(ke,Ue),V=V+Math.imul(ie,We)|0,q=q+Math.imul(ie,Xe)|0,q=q+Math.imul(fe,We)|0,Z=Z+Math.imul(fe,Xe)|0,V=V+Math.imul(te,nr)|0,q=q+Math.imul(te,rr)|0,q=q+Math.imul(ue,nr)|0,Z=Z+Math.imul(ue,rr)|0,V=V+Math.imul($,Ce)|0,q=q+Math.imul($,ze)|0,q=q+Math.imul(ae,Ce)|0,Z=Z+Math.imul(ae,ze)|0;var St=(j+V|0)+((q&8191)<<13)|0;j=(Z+(q>>>13)|0)+(St>>>26)|0,St&=67108863,V=Math.imul(Ee,Ve),q=Math.imul(Ee,Ue),q=q+Math.imul(Le,Ve)|0,Z=Math.imul(Le,Ue),V=V+Math.imul(Te,We)|0,q=q+Math.imul(Te,Xe)|0,q=q+Math.imul(ke,We)|0,Z=Z+Math.imul(ke,Xe)|0,V=V+Math.imul(ie,nr)|0,q=q+Math.imul(ie,rr)|0,q=q+Math.imul(fe,nr)|0,Z=Z+Math.imul(fe,rr)|0,V=V+Math.imul(te,Ce)|0,q=q+Math.imul(te,ze)|0,q=q+Math.imul(ue,Ce)|0,Z=Z+Math.imul(ue,ze)|0,V=V+Math.imul($,je)|0,q=q+Math.imul($,wr)|0,q=q+Math.imul(ae,je)|0,Z=Z+Math.imul(ae,wr)|0;var it=(j+V|0)+((q&8191)<<13)|0;j=(Z+(q>>>13)|0)+(it>>>26)|0,it&=67108863,V=Math.imul(X,Ve),q=Math.imul(X,Ue),q=q+Math.imul(K,Ve)|0,Z=Math.imul(K,Ue),V=V+Math.imul(Ee,We)|0,q=q+Math.imul(Ee,Xe)|0,q=q+Math.imul(Le,We)|0,Z=Z+Math.imul(Le,Xe)|0,V=V+Math.imul(Te,nr)|0,q=q+Math.imul(Te,rr)|0,q=q+Math.imul(ke,nr)|0,Z=Z+Math.imul(ke,rr)|0,V=V+Math.imul(ie,Ce)|0,q=q+Math.imul(ie,ze)|0,q=q+Math.imul(fe,Ce)|0,Z=Z+Math.imul(fe,ze)|0,V=V+Math.imul(te,je)|0,q=q+Math.imul(te,wr)|0,q=q+Math.imul(ue,je)|0,Z=Z+Math.imul(ue,wr)|0,V=V+Math.imul($,Tr)|0,q=q+Math.imul($,Pr)|0,q=q+Math.imul(ae,Tr)|0,Z=Z+Math.imul(ae,Pr)|0;var vt=(j+V|0)+((q&8191)<<13)|0;j=(Z+(q>>>13)|0)+(vt>>>26)|0,vt&=67108863,V=Math.imul(oe,Ve),q=Math.imul(oe,Ue),q=q+Math.imul(de,Ve)|0,Z=Math.imul(de,Ue),V=V+Math.imul(X,We)|0,q=q+Math.imul(X,Xe)|0,q=q+Math.imul(K,We)|0,Z=Z+Math.imul(K,Xe)|0,V=V+Math.imul(Ee,nr)|0,q=q+Math.imul(Ee,rr)|0,q=q+Math.imul(Le,nr)|0,Z=Z+Math.imul(Le,rr)|0,V=V+Math.imul(Te,Ce)|0,q=q+Math.imul(Te,ze)|0,q=q+Math.imul(ke,Ce)|0,Z=Z+Math.imul(ke,ze)|0,V=V+Math.imul(ie,je)|0,q=q+Math.imul(ie,wr)|0,q=q+Math.imul(fe,je)|0,Z=Z+Math.imul(fe,wr)|0,V=V+Math.imul(te,Tr)|0,q=q+Math.imul(te,Pr)|0,q=q+Math.imul(ue,Tr)|0,Z=Z+Math.imul(ue,Pr)|0,V=V+Math.imul($,Ar)|0,q=q+Math.imul($,Hr)|0,q=q+Math.imul(ae,Ar)|0,Z=Z+Math.imul(ae,Hr)|0;var Bt=(j+V|0)+((q&8191)<<13)|0;j=(Z+(q>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,V=Math.imul(me,Ve),q=Math.imul(me,Ue),q=q+Math.imul(Se,Ve)|0,Z=Math.imul(Se,Ue),V=V+Math.imul(oe,We)|0,q=q+Math.imul(oe,Xe)|0,q=q+Math.imul(de,We)|0,Z=Z+Math.imul(de,Xe)|0,V=V+Math.imul(X,nr)|0,q=q+Math.imul(X,rr)|0,q=q+Math.imul(K,nr)|0,Z=Z+Math.imul(K,rr)|0,V=V+Math.imul(Ee,Ce)|0,q=q+Math.imul(Ee,ze)|0,q=q+Math.imul(Le,Ce)|0,Z=Z+Math.imul(Le,ze)|0,V=V+Math.imul(Te,je)|0,q=q+Math.imul(Te,wr)|0,q=q+Math.imul(ke,je)|0,Z=Z+Math.imul(ke,wr)|0,V=V+Math.imul(ie,Tr)|0,q=q+Math.imul(ie,Pr)|0,q=q+Math.imul(fe,Tr)|0,Z=Z+Math.imul(fe,Pr)|0,V=V+Math.imul(te,Ar)|0,q=q+Math.imul(te,Hr)|0,q=q+Math.imul(ue,Ar)|0,Z=Z+Math.imul(ue,Hr)|0,V=V+Math.imul($,Ir)|0,q=q+Math.imul($,Jr)|0,q=q+Math.imul(ae,Ir)|0,Z=Z+Math.imul(ae,Jr)|0;var Gn=(j+V|0)+((q&8191)<<13)|0;j=(Z+(q>>>13)|0)+(Gn>>>26)|0,Gn&=67108863,V=Math.imul(he,Ve),q=Math.imul(he,Ue),q=q+Math.imul(be,Ve)|0,Z=Math.imul(be,Ue),V=V+Math.imul(me,We)|0,q=q+Math.imul(me,Xe)|0,q=q+Math.imul(Se,We)|0,Z=Z+Math.imul(Se,Xe)|0,V=V+Math.imul(oe,nr)|0,q=q+Math.imul(oe,rr)|0,q=q+Math.imul(de,nr)|0,Z=Z+Math.imul(de,rr)|0,V=V+Math.imul(X,Ce)|0,q=q+Math.imul(X,ze)|0,q=q+Math.imul(K,Ce)|0,Z=Z+Math.imul(K,ze)|0,V=V+Math.imul(Ee,je)|0,q=q+Math.imul(Ee,wr)|0,q=q+Math.imul(Le,je)|0,Z=Z+Math.imul(Le,wr)|0,V=V+Math.imul(Te,Tr)|0,q=q+Math.imul(Te,Pr)|0,q=q+Math.imul(ke,Tr)|0,Z=Z+Math.imul(ke,Pr)|0,V=V+Math.imul(ie,Ar)|0,q=q+Math.imul(ie,Hr)|0,q=q+Math.imul(fe,Ar)|0,Z=Z+Math.imul(fe,Hr)|0,V=V+Math.imul(te,Ir)|0,q=q+Math.imul(te,Jr)|0,q=q+Math.imul(ue,Ir)|0,Z=Z+Math.imul(ue,Jr)|0,V=V+Math.imul($,tt)|0,q=q+Math.imul($,Kr)|0,q=q+Math.imul(ae,tt)|0,Z=Z+Math.imul(ae,Kr)|0;var Yn=(j+V|0)+((q&8191)<<13)|0;j=(Z+(q>>>13)|0)+(Yn>>>26)|0,Yn&=67108863,V=Math.imul(Re,Ve),q=Math.imul(Re,Ue),q=q+Math.imul(Pe,Ve)|0,Z=Math.imul(Pe,Ue),V=V+Math.imul(he,We)|0,q=q+Math.imul(he,Xe)|0,q=q+Math.imul(be,We)|0,Z=Z+Math.imul(be,Xe)|0,V=V+Math.imul(me,nr)|0,q=q+Math.imul(me,rr)|0,q=q+Math.imul(Se,nr)|0,Z=Z+Math.imul(Se,rr)|0,V=V+Math.imul(oe,Ce)|0,q=q+Math.imul(oe,ze)|0,q=q+Math.imul(de,Ce)|0,Z=Z+Math.imul(de,ze)|0,V=V+Math.imul(X,je)|0,q=q+Math.imul(X,wr)|0,q=q+Math.imul(K,je)|0,Z=Z+Math.imul(K,wr)|0,V=V+Math.imul(Ee,Tr)|0,q=q+Math.imul(Ee,Pr)|0,q=q+Math.imul(Le,Tr)|0,Z=Z+Math.imul(Le,Pr)|0,V=V+Math.imul(Te,Ar)|0,q=q+Math.imul(Te,Hr)|0,q=q+Math.imul(ke,Ar)|0,Z=Z+Math.imul(ke,Hr)|0,V=V+Math.imul(ie,Ir)|0,q=q+Math.imul(ie,Jr)|0,q=q+Math.imul(fe,Ir)|0,Z=Z+Math.imul(fe,Jr)|0,V=V+Math.imul(te,tt)|0,q=q+Math.imul(te,Kr)|0,q=q+Math.imul(ue,tt)|0,Z=Z+Math.imul(ue,Kr)|0,V=V+Math.imul($,lr)|0,q=q+Math.imul($,Dr)|0,q=q+Math.imul(ae,lr)|0,Z=Z+Math.imul(ae,Dr)|0;var _n=(j+V|0)+((q&8191)<<13)|0;j=(Z+(q>>>13)|0)+(_n>>>26)|0,_n&=67108863,V=Math.imul(Re,We),q=Math.imul(Re,Xe),q=q+Math.imul(Pe,We)|0,Z=Math.imul(Pe,Xe),V=V+Math.imul(he,nr)|0,q=q+Math.imul(he,rr)|0,q=q+Math.imul(be,nr)|0,Z=Z+Math.imul(be,rr)|0,V=V+Math.imul(me,Ce)|0,q=q+Math.imul(me,ze)|0,q=q+Math.imul(Se,Ce)|0,Z=Z+Math.imul(Se,ze)|0,V=V+Math.imul(oe,je)|0,q=q+Math.imul(oe,wr)|0,q=q+Math.imul(de,je)|0,Z=Z+Math.imul(de,wr)|0,V=V+Math.imul(X,Tr)|0,q=q+Math.imul(X,Pr)|0,q=q+Math.imul(K,Tr)|0,Z=Z+Math.imul(K,Pr)|0,V=V+Math.imul(Ee,Ar)|0,q=q+Math.imul(Ee,Hr)|0,q=q+Math.imul(Le,Ar)|0,Z=Z+Math.imul(Le,Hr)|0,V=V+Math.imul(Te,Ir)|0,q=q+Math.imul(Te,Jr)|0,q=q+Math.imul(ke,Ir)|0,Z=Z+Math.imul(ke,Jr)|0,V=V+Math.imul(ie,tt)|0,q=q+Math.imul(ie,Kr)|0,q=q+Math.imul(fe,tt)|0,Z=Z+Math.imul(fe,Kr)|0,V=V+Math.imul(te,lr)|0,q=q+Math.imul(te,Dr)|0,q=q+Math.imul(ue,lr)|0,Z=Z+Math.imul(ue,Dr)|0;var Ct=(j+V|0)+((q&8191)<<13)|0;j=(Z+(q>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,V=Math.imul(Re,nr),q=Math.imul(Re,rr),q=q+Math.imul(Pe,nr)|0,Z=Math.imul(Pe,rr),V=V+Math.imul(he,Ce)|0,q=q+Math.imul(he,ze)|0,q=q+Math.imul(be,Ce)|0,Z=Z+Math.imul(be,ze)|0,V=V+Math.imul(me,je)|0,q=q+Math.imul(me,wr)|0,q=q+Math.imul(Se,je)|0,Z=Z+Math.imul(Se,wr)|0,V=V+Math.imul(oe,Tr)|0,q=q+Math.imul(oe,Pr)|0,q=q+Math.imul(de,Tr)|0,Z=Z+Math.imul(de,Pr)|0,V=V+Math.imul(X,Ar)|0,q=q+Math.imul(X,Hr)|0,q=q+Math.imul(K,Ar)|0,Z=Z+Math.imul(K,Hr)|0,V=V+Math.imul(Ee,Ir)|0,q=q+Math.imul(Ee,Jr)|0,q=q+Math.imul(Le,Ir)|0,Z=Z+Math.imul(Le,Jr)|0,V=V+Math.imul(Te,tt)|0,q=q+Math.imul(Te,Kr)|0,q=q+Math.imul(ke,tt)|0,Z=Z+Math.imul(ke,Kr)|0,V=V+Math.imul(ie,lr)|0,q=q+Math.imul(ie,Dr)|0,q=q+Math.imul(fe,lr)|0,Z=Z+Math.imul(fe,Dr)|0;var xi=(j+V|0)+((q&8191)<<13)|0;j=(Z+(q>>>13)|0)+(xi>>>26)|0,xi&=67108863,V=Math.imul(Re,Ce),q=Math.imul(Re,ze),q=q+Math.imul(Pe,Ce)|0,Z=Math.imul(Pe,ze),V=V+Math.imul(he,je)|0,q=q+Math.imul(he,wr)|0,q=q+Math.imul(be,je)|0,Z=Z+Math.imul(be,wr)|0,V=V+Math.imul(me,Tr)|0,q=q+Math.imul(me,Pr)|0,q=q+Math.imul(Se,Tr)|0,Z=Z+Math.imul(Se,Pr)|0,V=V+Math.imul(oe,Ar)|0,q=q+Math.imul(oe,Hr)|0,q=q+Math.imul(de,Ar)|0,Z=Z+Math.imul(de,Hr)|0,V=V+Math.imul(X,Ir)|0,q=q+Math.imul(X,Jr)|0,q=q+Math.imul(K,Ir)|0,Z=Z+Math.imul(K,Jr)|0,V=V+Math.imul(Ee,tt)|0,q=q+Math.imul(Ee,Kr)|0,q=q+Math.imul(Le,tt)|0,Z=Z+Math.imul(Le,Kr)|0,V=V+Math.imul(Te,lr)|0,q=q+Math.imul(Te,Dr)|0,q=q+Math.imul(ke,lr)|0,Z=Z+Math.imul(ke,Dr)|0;var tn=(j+V|0)+((q&8191)<<13)|0;j=(Z+(q>>>13)|0)+(tn>>>26)|0,tn&=67108863,V=Math.imul(Re,je),q=Math.imul(Re,wr),q=q+Math.imul(Pe,je)|0,Z=Math.imul(Pe,wr),V=V+Math.imul(he,Tr)|0,q=q+Math.imul(he,Pr)|0,q=q+Math.imul(be,Tr)|0,Z=Z+Math.imul(be,Pr)|0,V=V+Math.imul(me,Ar)|0,q=q+Math.imul(me,Hr)|0,q=q+Math.imul(Se,Ar)|0,Z=Z+Math.imul(Se,Hr)|0,V=V+Math.imul(oe,Ir)|0,q=q+Math.imul(oe,Jr)|0,q=q+Math.imul(de,Ir)|0,Z=Z+Math.imul(de,Jr)|0,V=V+Math.imul(X,tt)|0,q=q+Math.imul(X,Kr)|0,q=q+Math.imul(K,tt)|0,Z=Z+Math.imul(K,Kr)|0,V=V+Math.imul(Ee,lr)|0,q=q+Math.imul(Ee,Dr)|0,q=q+Math.imul(Le,lr)|0,Z=Z+Math.imul(Le,Dr)|0;var $a=(j+V|0)+((q&8191)<<13)|0;j=(Z+(q>>>13)|0)+($a>>>26)|0,$a&=67108863,V=Math.imul(Re,Tr),q=Math.imul(Re,Pr),q=q+Math.imul(Pe,Tr)|0,Z=Math.imul(Pe,Pr),V=V+Math.imul(he,Ar)|0,q=q+Math.imul(he,Hr)|0,q=q+Math.imul(be,Ar)|0,Z=Z+Math.imul(be,Hr)|0,V=V+Math.imul(me,Ir)|0,q=q+Math.imul(me,Jr)|0,q=q+Math.imul(Se,Ir)|0,Z=Z+Math.imul(Se,Jr)|0,V=V+Math.imul(oe,tt)|0,q=q+Math.imul(oe,Kr)|0,q=q+Math.imul(de,tt)|0,Z=Z+Math.imul(de,Kr)|0,V=V+Math.imul(X,lr)|0,q=q+Math.imul(X,Dr)|0,q=q+Math.imul(K,lr)|0,Z=Z+Math.imul(K,Dr)|0;var _i=(j+V|0)+((q&8191)<<13)|0;j=(Z+(q>>>13)|0)+(_i>>>26)|0,_i&=67108863,V=Math.imul(Re,Ar),q=Math.imul(Re,Hr),q=q+Math.imul(Pe,Ar)|0,Z=Math.imul(Pe,Hr),V=V+Math.imul(he,Ir)|0,q=q+Math.imul(he,Jr)|0,q=q+Math.imul(be,Ir)|0,Z=Z+Math.imul(be,Jr)|0,V=V+Math.imul(me,tt)|0,q=q+Math.imul(me,Kr)|0,q=q+Math.imul(Se,tt)|0,Z=Z+Math.imul(Se,Kr)|0,V=V+Math.imul(oe,lr)|0,q=q+Math.imul(oe,Dr)|0,q=q+Math.imul(de,lr)|0,Z=Z+Math.imul(de,Dr)|0;var nn=(j+V|0)+((q&8191)<<13)|0;j=(Z+(q>>>13)|0)+(nn>>>26)|0,nn&=67108863,V=Math.imul(Re,Ir),q=Math.imul(Re,Jr),q=q+Math.imul(Pe,Ir)|0,Z=Math.imul(Pe,Jr),V=V+Math.imul(he,tt)|0,q=q+Math.imul(he,Kr)|0,q=q+Math.imul(be,tt)|0,Z=Z+Math.imul(be,Kr)|0,V=V+Math.imul(me,lr)|0,q=q+Math.imul(me,Dr)|0,q=q+Math.imul(Se,lr)|0,Z=Z+Math.imul(Se,Dr)|0;var el=(j+V|0)+((q&8191)<<13)|0;j=(Z+(q>>>13)|0)+(el>>>26)|0,el&=67108863,V=Math.imul(Re,tt),q=Math.imul(Re,Kr),q=q+Math.imul(Pe,tt)|0,Z=Math.imul(Pe,Kr),V=V+Math.imul(he,lr)|0,q=q+Math.imul(he,Dr)|0,q=q+Math.imul(be,lr)|0,Z=Z+Math.imul(be,Dr)|0;var Ji=(j+V|0)+((q&8191)<<13)|0;j=(Z+(q>>>13)|0)+(Ji>>>26)|0,Ji&=67108863,V=Math.imul(Re,lr),q=Math.imul(Re,Dr),q=q+Math.imul(Pe,lr)|0,Z=Math.imul(Pe,Dr);var $i=(j+V|0)+((q&8191)<<13)|0;return j=(Z+(q>>>13)|0)+($i>>>26)|0,$i&=67108863,J[0]=Vr,J[1]=st,J[2]=mt,J[3]=St,J[4]=it,J[5]=vt,J[6]=Bt,J[7]=Gn,J[8]=Yn,J[9]=_n,J[10]=Ct,J[11]=xi,J[12]=tn,J[13]=$a,J[14]=_i,J[15]=nn,J[16]=el,J[17]=Ji,J[18]=$i,j!==0&&(J[19]=j,B.length++),B};Math.imul||(M=b);function d(P,L,I){I.negative=L.negative^P.negative,I.length=P.length+L.length;for(var B=0,O=0,G=0;G>>26)|0,O+=J>>>26,J&=67108863}I.words[G]=j,B=J,J=O}return B!==0?I.words[G]=B:I.length--,I.strip()}function w(P,L,I){var B=new y;return B.mulp(P,L,I)}c.prototype.mulTo=function(L,I){var B,O=this.length+L.length;return this.length===10&&L.length===10?B=M(this,L,I):O<63?B=b(this,L,I):O<1024?B=d(this,L,I):B=w(this,L,I),B};function y(P,L){this.x=P,this.y=L}y.prototype.makeRBT=function(L){for(var I=new Array(L),B=c.prototype._countBits(L)-1,O=0;O>=1;return O},y.prototype.permute=function(L,I,B,O,G,J){for(var j=0;j>>1)G++;return 1<>>13,B[2*J+1]=G&8191,G=G>>>13;for(J=2*I;J>=26,I+=O/67108864|0,I+=G>>>26,this.words[B]=G&67108863}return I!==0&&(this.words[B]=I,this.length++),L===0&&(this.length=1,this._normSign()),this},c.prototype.muln=function(L){return this.clone().imuln(L)},c.prototype.sqr=function(){return this.mul(this)},c.prototype.isqr=function(){return this.imul(this.clone())},c.prototype.pow=function(L){var I=S(L);if(I.length===0)return new c(1);for(var B=this,O=0;O=0);var I=L%26,B=(L-I)/26,O=67108863>>>26-I<<26-I,G;if(I!==0){var J=0;for(G=0;G>>26-I}J&&(this.words[G]=J,this.length++)}if(B!==0){for(G=this.length-1;G>=0;G--)this.words[G+B]=this.words[G];for(G=0;G=0);var O;I?O=(I-I%26)/26:O=0;var G=L%26,J=Math.min((L-G)/26,this.length),j=67108863^67108863>>>G<J)for(this.length-=J,q=0;q=0&&(Z!==0||q>=O);q--){var re=this.words[q]|0;this.words[q]=Z<<26-G|re>>>G,Z=re&j}return V&&Z!==0&&(V.words[V.length++]=Z),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},c.prototype.ishrn=function(L,I,B){return s(this.negative===0),this.iushrn(L,I,B)},c.prototype.shln=function(L){return this.clone().ishln(L)},c.prototype.ushln=function(L){return this.clone().iushln(L)},c.prototype.shrn=function(L){return this.clone().ishrn(L)},c.prototype.ushrn=function(L){return this.clone().iushrn(L)},c.prototype.testn=function(L){s(typeof L=="number"&&L>=0);var I=L%26,B=(L-I)/26,O=1<=0);var I=L%26,B=(L-I)/26;if(s(this.negative===0,"imaskn works only with positive numbers"),this.length<=B)return this;if(I!==0&&B++,this.length=Math.min(B,this.length),I!==0){var O=67108863^67108863>>>I<=67108864;I++)this.words[I]-=67108864,I===this.length-1?this.words[I+1]=1:this.words[I+1]++;return this.length=Math.max(this.length,I+1),this},c.prototype.isubn=function(L){if(s(typeof L=="number"),s(L<67108864),L<0)return this.iaddn(-L);if(this.negative!==0)return this.negative=0,this.iaddn(L),this.negative=1,this;if(this.words[0]-=L,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var I=0;I>26)-(V/67108864|0),this.words[G+B]=J&67108863}for(;G>26,this.words[G+B]=J&67108863;if(j===0)return this.strip();for(s(j===-1),j=0,G=0;G>26,this.words[G]=J&67108863;return this.negative=1,this.strip()},c.prototype._wordDiv=function(L,I){var B=this.length-L.length,O=this.clone(),G=L,J=G.words[G.length-1]|0,j=this._countBits(J);B=26-j,B!==0&&(G=G.ushln(B),O.iushln(B),J=G.words[G.length-1]|0);var V=O.length-G.length,q;if(I!=="mod"){q=new c(null),q.length=V+1,q.words=new Array(q.length);for(var Z=0;Z=0;$--){var ae=(O.words[G.length+$]|0)*67108864+(O.words[G.length+$-1]|0);for(ae=Math.min(ae/J|0,67108863),O._ishlnsubmul(G,ae,$);O.negative!==0;)ae--,O.negative=0,O._ishlnsubmul(G,1,$),O.isZero()||(O.negative^=1);q&&(q.words[$]=ae)}return q&&q.strip(),O.strip(),I!=="div"&&B!==0&&O.iushrn(B),{div:q||null,mod:O}},c.prototype.divmod=function(L,I,B){if(s(!L.isZero()),this.isZero())return{div:new c(0),mod:new c(0)};var O,G,J;return this.negative!==0&&L.negative===0?(J=this.neg().divmod(L,I),I!=="mod"&&(O=J.div.neg()),I!=="div"&&(G=J.mod.neg(),B&&G.negative!==0&&G.iadd(L)),{div:O,mod:G}):this.negative===0&&L.negative!==0?(J=this.divmod(L.neg(),I),I!=="mod"&&(O=J.div.neg()),{div:O,mod:J.mod}):(this.negative&L.negative)!==0?(J=this.neg().divmod(L.neg(),I),I!=="div"&&(G=J.mod.neg(),B&&G.negative!==0&&G.isub(L)),{div:J.div,mod:G}):L.length>this.length||this.cmp(L)<0?{div:new c(0),mod:this}:L.length===1?I==="div"?{div:this.divn(L.words[0]),mod:null}:I==="mod"?{div:null,mod:new c(this.modn(L.words[0]))}:{div:this.divn(L.words[0]),mod:new c(this.modn(L.words[0]))}:this._wordDiv(L,I)},c.prototype.div=function(L){return this.divmod(L,"div",!1).div},c.prototype.mod=function(L){return this.divmod(L,"mod",!1).mod},c.prototype.umod=function(L){return this.divmod(L,"mod",!0).mod},c.prototype.divRound=function(L){var I=this.divmod(L);if(I.mod.isZero())return I.div;var B=I.mod.abs(),O=L.abs().iushrn(1),G=L.words[0]&1,J=B.cmp(O);if(J<0||G===1&&J===0)return I.div;var j=new c(1);return j.negative=this.negative^L.negative,I.div.iadd(j)},c.prototype.modn=function(L){s(L<=67108863);for(var I=(1<<26)%L,B=0,O=this.length-1;O>=0;O--)B=(I*B+(this.words[O]|0))%L;return B},c.prototype.idivn=function(L){s(L<=67108863);for(var I=0,B=this.length-1;B>=0;B--){var O=(this.words[B]|0)+I*67108864;this.words[B]=O/L|0,I=O%L}return this.strip()},c.prototype.divn=function(L){return this.clone().idivn(L)},c.prototype.egcd=function(L){s(L.negative===0),s(!L.isZero());var I=this,B=L.clone();I.negative!==0?I=I.umod(L):I=I.clone();for(var O=new c(1),G=new c(0),J=new c(0),j=new c(1),V=0;I.isEven()&&B.isEven();)I.iushrn(1),B.iushrn(1),++V;for(var q=B.clone(),Z=I.clone();!I.isZero();){for(var re=0,$=1;(I.words[0]&$)===0&&re<26;++re,$<<=1);if(re>0)for(I.iushrn(re);re-- >0;)(O.isOdd()||G.isOdd())&&(O.iadd(q),G.isub(Z)),O.iushrn(1),G.iushrn(1);for(var ae=0,Q=1;(B.words[0]&Q)===0&&ae<26;++ae,Q<<=1);if(ae>0)for(B.iushrn(ae);ae-- >0;)(J.isOdd()||j.isOdd())&&(J.iadd(q),j.isub(Z)),J.iushrn(1),j.iushrn(1);I.cmp(B)>=0?(I.isub(B),O.isub(J),G.isub(j)):(B.isub(I),J.isub(O),j.isub(G))}return{a:J,b:j,gcd:B.iushln(V)}},c.prototype._invmp=function(L){s(L.negative===0),s(!L.isZero());var I=this,B=L.clone();I.negative!==0?I=I.umod(L):I=I.clone();for(var O=new c(1),G=new c(0),J=B.clone();I.cmpn(1)>0&&B.cmpn(1)>0;){for(var j=0,V=1;(I.words[0]&V)===0&&j<26;++j,V<<=1);if(j>0)for(I.iushrn(j);j-- >0;)O.isOdd()&&O.iadd(J),O.iushrn(1);for(var q=0,Z=1;(B.words[0]&Z)===0&&q<26;++q,Z<<=1);if(q>0)for(B.iushrn(q);q-- >0;)G.isOdd()&&G.iadd(J),G.iushrn(1);I.cmp(B)>=0?(I.isub(B),O.isub(G)):(B.isub(I),G.isub(O))}var re;return I.cmpn(1)===0?re=O:re=G,re.cmpn(0)<0&&re.iadd(L),re},c.prototype.gcd=function(L){if(this.isZero())return L.abs();if(L.isZero())return this.abs();var I=this.clone(),B=L.clone();I.negative=0,B.negative=0;for(var O=0;I.isEven()&&B.isEven();O++)I.iushrn(1),B.iushrn(1);do{for(;I.isEven();)I.iushrn(1);for(;B.isEven();)B.iushrn(1);var G=I.cmp(B);if(G<0){var J=I;I=B,B=J}else if(G===0||B.cmpn(1)===0)break;I.isub(B)}while(!0);return B.iushln(O)},c.prototype.invm=function(L){return this.egcd(L).a.umod(L)},c.prototype.isEven=function(){return(this.words[0]&1)===0},c.prototype.isOdd=function(){return(this.words[0]&1)===1},c.prototype.andln=function(L){return this.words[0]&L},c.prototype.bincn=function(L){s(typeof L=="number");var I=L%26,B=(L-I)/26,O=1<>>26,j&=67108863,this.words[J]=j}return G!==0&&(this.words[J]=G,this.length++),this},c.prototype.isZero=function(){return this.length===1&&this.words[0]===0},c.prototype.cmpn=function(L){var I=L<0;if(this.negative!==0&&!I)return-1;if(this.negative===0&&I)return 1;this.strip();var B;if(this.length>1)B=1;else{I&&(L=-L),s(L<=67108863,"Number is too big");var O=this.words[0]|0;B=O===L?0:OL.length)return 1;if(this.length=0;B--){var O=this.words[B]|0,G=L.words[B]|0;if(O!==G){OG&&(I=1);break}}return I},c.prototype.gtn=function(L){return this.cmpn(L)===1},c.prototype.gt=function(L){return this.cmp(L)===1},c.prototype.gten=function(L){return this.cmpn(L)>=0},c.prototype.gte=function(L){return this.cmp(L)>=0},c.prototype.ltn=function(L){return this.cmpn(L)===-1},c.prototype.lt=function(L){return this.cmp(L)===-1},c.prototype.lten=function(L){return this.cmpn(L)<=0},c.prototype.lte=function(L){return this.cmp(L)<=0},c.prototype.eqn=function(L){return this.cmpn(L)===0},c.prototype.eq=function(L){return this.cmp(L)===0},c.red=function(L){return new F(L)},c.prototype.toRed=function(L){return s(!this.red,"Already a number in reduction context"),s(this.negative===0,"red works only with positives"),L.convertTo(this)._forceRed(L)},c.prototype.fromRed=function(){return s(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},c.prototype._forceRed=function(L){return this.red=L,this},c.prototype.forceRed=function(L){return s(!this.red,"Already a number in reduction context"),this._forceRed(L)},c.prototype.redAdd=function(L){return s(this.red,"redAdd works only with red numbers"),this.red.add(this,L)},c.prototype.redIAdd=function(L){return s(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,L)},c.prototype.redSub=function(L){return s(this.red,"redSub works only with red numbers"),this.red.sub(this,L)},c.prototype.redISub=function(L){return s(this.red,"redISub works only with red numbers"),this.red.isub(this,L)},c.prototype.redShl=function(L){return s(this.red,"redShl works only with red numbers"),this.red.shl(this,L)},c.prototype.redMul=function(L){return s(this.red,"redMul works only with red numbers"),this.red._verify2(this,L),this.red.mul(this,L)},c.prototype.redIMul=function(L){return s(this.red,"redMul works only with red numbers"),this.red._verify2(this,L),this.red.imul(this,L)},c.prototype.redSqr=function(){return s(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},c.prototype.redISqr=function(){return s(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},c.prototype.redSqrt=function(){return s(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},c.prototype.redInvm=function(){return s(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},c.prototype.redNeg=function(){return s(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},c.prototype.redPow=function(L){return s(this.red&&!L.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,L)};var v={k256:null,p224:null,p192:null,p25519:null};function A(P,L){this.name=P,this.p=new c(L,16),this.n=this.p.bitLength(),this.k=new c(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}A.prototype._tmp=function(){var L=new c(null);return L.words=new Array(Math.ceil(this.n/13)),L},A.prototype.ireduce=function(L){var I=L,B;do this.split(I,this.tmp),I=this.imulK(I),I=I.iadd(this.tmp),B=I.bitLength();while(B>this.n);var O=B0?I.isub(this.p):I.strip!==void 0?I.strip():I._strip(),I},A.prototype.split=function(L,I){L.iushrn(this.n,0,I)},A.prototype.imulK=function(L){return L.imul(this.k)};function p(){A.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}f(p,A),p.prototype.split=function(L,I){for(var B=4194303,O=Math.min(L.length,9),G=0;G>>22,J=j}J>>>=22,L.words[G-10]=J,J===0&&L.length>10?L.length-=10:L.length-=9},p.prototype.imulK=function(L){L.words[L.length]=0,L.words[L.length+1]=0,L.length+=2;for(var I=0,B=0;B>>=26,L.words[B]=G,I=O}return I!==0&&(L.words[L.length++]=I),L},c._prime=function(L){if(v[L])return v[L];var I;if(L==="k256")I=new p;else if(L==="p224")I=new D;else if(L==="p192")I=new E;else if(L==="p25519")I=new R;else throw new Error("Unknown prime "+L);return v[L]=I,I};function F(P){if(typeof P=="string"){var L=c._prime(P);this.m=L.p,this.prime=L}else s(P.gtn(1),"modulus must be greater than 1"),this.m=P,this.prime=null}F.prototype._verify1=function(L){s(L.negative===0,"red works only with positives"),s(L.red,"red works only with red numbers")},F.prototype._verify2=function(L,I){s((L.negative|I.negative)===0,"red works only with positives"),s(L.red&&L.red===I.red,"red works only with red numbers")},F.prototype.imod=function(L){return this.prime?this.prime.ireduce(L)._forceRed(this):L.umod(this.m)._forceRed(this)},F.prototype.neg=function(L){return L.isZero()?L.clone():this.m.sub(L)._forceRed(this)},F.prototype.add=function(L,I){this._verify2(L,I);var B=L.add(I);return B.cmp(this.m)>=0&&B.isub(this.m),B._forceRed(this)},F.prototype.iadd=function(L,I){this._verify2(L,I);var B=L.iadd(I);return B.cmp(this.m)>=0&&B.isub(this.m),B},F.prototype.sub=function(L,I){this._verify2(L,I);var B=L.sub(I);return B.cmpn(0)<0&&B.iadd(this.m),B._forceRed(this)},F.prototype.isub=function(L,I){this._verify2(L,I);var B=L.isub(I);return B.cmpn(0)<0&&B.iadd(this.m),B},F.prototype.shl=function(L,I){return this._verify1(L),this.imod(L.ushln(I))},F.prototype.imul=function(L,I){return this._verify2(L,I),this.imod(L.imul(I))},F.prototype.mul=function(L,I){return this._verify2(L,I),this.imod(L.mul(I))},F.prototype.isqr=function(L){return this.imul(L,L.clone())},F.prototype.sqr=function(L){return this.mul(L,L)},F.prototype.sqrt=function(L){if(L.isZero())return L.clone();var I=this.m.andln(3);if(s(I%2===1),I===3){var B=this.m.add(new c(1)).iushrn(2);return this.pow(L,B)}for(var O=this.m.subn(1),G=0;!O.isZero()&&O.andln(1)===0;)G++,O.iushrn(1);s(!O.isZero());var J=new c(1).toRed(this),j=J.redNeg(),V=this.m.subn(1).iushrn(1),q=this.m.bitLength();for(q=new c(2*q*q).toRed(this);this.pow(q,V).cmp(j)!==0;)q.redIAdd(j);for(var Z=this.pow(q,O),re=this.pow(L,O.addn(1).iushrn(1)),$=this.pow(L,O),ae=G;$.cmp(J)!==0;){for(var Q=$,te=0;Q.cmp(J)!==0;te++)Q=Q.redSqr();s(te=0;G--){for(var Z=I.words[G],re=q-1;re>=0;re--){var $=Z>>re&1;if(J!==O[0]&&(J=this.sqr(J)),$===0&&j===0){V=0;continue}j<<=1,j|=$,V++,!(V!==B&&(G!==0||re!==0))&&(J=this.mul(J,O[j]),V=0,j=0)}q=26}return J},F.prototype.convertTo=function(L){var I=L.umod(this.m);return I===L?I.clone():I},F.prototype.convertFrom=function(L){var I=L.clone();return I.red=null,I},c.mont=function(L){return new z(L)};function z(P){F.call(this,P),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(z,F),z.prototype.convertTo=function(L){return this.imod(L.ushln(this.shift))},z.prototype.convertFrom=function(L){var I=this.imod(L.mul(this.rinv));return I.red=null,I},z.prototype.imul=function(L,I){if(L.isZero()||I.isZero())return L.words[0]=0,L.length=1,L;var B=L.imul(I),O=B.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),G=B.isub(O).iushrn(this.shift),J=G;return G.cmp(this.m)>=0?J=G.isub(this.m):G.cmpn(0)<0&&(J=G.iadd(this.m)),J._forceRed(this)},z.prototype.mul=function(L,I){if(L.isZero()||I.isZero())return new c(0)._forceRed(this);var B=L.mul(I),O=B.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),G=B.isub(O).iushrn(this.shift),J=G;return G.cmp(this.m)>=0?J=G.isub(this.m):G.cmpn(0)<0&&(J=G.iadd(this.m)),J._forceRed(this)},z.prototype.invm=function(L){var I=this.imod(L._invmp(this.m).mul(this.r2));return I._forceRed(this)}})(a,this)},6204(a){"use strict";a.exports=o;function o(i){var l,u,s,f=i.length,c=0;for(l=0;l>>1;if(!(y<=0)){var v,A=l.mallocDouble(2*y*d),p=l.mallocInt32(d);if(d=c(k,y,A,p),d>0){if(y===1&&M)u.init(d),v=u.sweepComplete(y,b,0,d,A,p,0,d,A,p);else{var D=l.mallocDouble(2*y*w),E=l.mallocInt32(w);w=c(S,y,D,E),w>0&&(u.init(d+w),y===1?v=u.sweepBipartite(y,b,0,d,A,p,0,w,D,E):v=s(y,b,M,d,A,p,w,D,E),l.free(D),l.free(E))}l.free(A),l.free(p)}return v}}}var x;function h(k,S){x.push([k,S])}function _(k){return x=[],g(k,k,h,!0),x}function T(k,S){return x=[],g(k,S,h,!1),x}function m(k,S,b){switch(arguments.length){case 1:return _(k);case 2:return typeof S=="function"?g(k,k,S,!0):T(k,S);case 3:return g(k,S,b,!1);default:throw new Error("box-intersect: Invalid arguments")}}},2455(a,o){"use strict";function i(){function s(g,x,h,_,T,m,k,S,b,M,d){for(var w=2*g,y=_,v=w*_;yb-S?s(g,x,h,_,T,m,k,S,b,M,d):f(g,x,h,_,T,m,k,S,b,M,d)}return c}function l(){function s(h,_,T,m,k,S,b,M,d,w,y){for(var v=2*h,A=m,p=v*m;Aw-d?m?s(h,_,T,k,S,b,M,d,w,y,v):f(h,_,T,k,S,b,M,d,w,y,v):m?c(h,_,T,k,S,b,M,d,w,y,v):g(h,_,T,k,S,b,M,d,w,y,v)}return x}function u(s){return s?i():l()}o.partial=u(!1),o.full=u(!0)},7150(a,o,i){"use strict";a.exports=P;var l=i(1888),u=i(8828),s=i(2455),f=s.partial,c=s.full,g=i(855),x=i(3545),h=i(8105),_=128,T=1<<22,m=1<<22,k=h("!(lo>=p0)&&!(p1>=hi)"),S=h("lo===p0"),b=h("lo0;){Z-=1;var ae=Z*y,Q=p[ae],te=p[ae+1],ue=p[ae+2],ee=p[ae+3],ie=p[ae+4],fe=p[ae+5],we=Z*v,Te=D[we],ke=D[we+1],ge=fe&1,Ee=!!(fe&16),Le=G,se=J,X=V,K=q;if(ge&&(Le=V,se=q,X=G,K=J),!(fe&2&&(ue=b(L,Q,te,ue,Le,se,ke),te>=ue))&&!(fe&4&&(te=M(L,Q,te,ue,Le,se,Te),te>=ue))){var ye=ue-te,oe=ie-ee;if(Ee){if(L*ye*(ye+oe)h&&T[w+x]>M;--d,w-=k){for(var y=w,v=w+k,A=0;A>>1,M=2*g,d=b,w=T[M*b+x];k=D?(d=p,w=D):A>=R?(d=v,w=A):(d=E,w=R):D>=R?(d=p,w=D):R>=A?(d=v,w=A):(d=E,w=R);for(var P=M*(S-1),L=M*d,F=0;F=p0)&&!(p1>=hi)":x};function i(h){return o[h]}function l(h,_,T,m,k,S,b){for(var M=2*h,d=M*T,w=d,y=T,v=_,A=h+_,p=T;m>p;++p,d+=M){var D=k[d+v];if(D===b)if(y===p)y+=1,w+=M;else{for(var E=0;M>E;++E){var R=k[d+E];k[d+E]=k[w],k[w++]=R}var F=S[p];S[p]=S[y],S[y++]=F}}return y}function u(h,_,T,m,k,S,b){for(var M=2*h,d=M*T,w=d,y=T,v=_,A=h+_,p=T;m>p;++p,d+=M){var D=k[d+v];if(DE;++E){var R=k[d+E];k[d+E]=k[w],k[w++]=R}var F=S[p];S[p]=S[y],S[y++]=F}}return y}function s(h,_,T,m,k,S,b){for(var M=2*h,d=M*T,w=d,y=T,v=_,A=h+_,p=T;m>p;++p,d+=M){var D=k[d+A];if(D<=b)if(y===p)y+=1,w+=M;else{for(var E=0;M>E;++E){var R=k[d+E];k[d+E]=k[w],k[w++]=R}var F=S[p];S[p]=S[y],S[y++]=F}}return y}function f(h,_,T,m,k,S,b){for(var M=2*h,d=M*T,w=d,y=T,v=_,A=h+_,p=T;m>p;++p,d+=M){var D=k[d+A];if(D<=b)if(y===p)y+=1,w+=M;else{for(var E=0;M>E;++E){var R=k[d+E];k[d+E]=k[w],k[w++]=R}var F=S[p];S[p]=S[y],S[y++]=F}}return y}function c(h,_,T,m,k,S,b){for(var M=2*h,d=M*T,w=d,y=T,v=_,A=h+_,p=T;m>p;++p,d+=M){var D=k[d+v],E=k[d+A];if(D<=b&&b<=E)if(y===p)y+=1,w+=M;else{for(var R=0;M>R;++R){var F=k[d+R];k[d+R]=k[w],k[w++]=F}var z=S[p];S[p]=S[y],S[y++]=z}}return y}function g(h,_,T,m,k,S,b){for(var M=2*h,d=M*T,w=d,y=T,v=_,A=h+_,p=T;m>p;++p,d+=M){var D=k[d+v],E=k[d+A];if(DR;++R){var F=k[d+R];k[d+R]=k[w],k[w++]=F}var z=S[p];S[p]=S[y],S[y++]=z}}return y}function x(h,_,T,m,k,S,b,M){for(var d=2*h,w=d*T,y=w,v=T,A=_,p=h+_,D=T;m>D;++D,w+=d){var E=k[w+A],R=k[w+p];if(!(E>=b)&&!(M>=R))if(v===D)v+=1,y+=d;else{for(var F=0;d>F;++F){var z=k[w+F];k[w+F]=k[y],k[y++]=z}var P=S[D];S[D]=S[v],S[v++]=P}}return v}},4192(a){"use strict";a.exports=i;var o=32;function i(_,T){T<=4*o?l(0,T-1,_):h(0,T-1,_)}function l(_,T,m){for(var k=2*(_+1),S=_+1;S<=T;++S){for(var b=m[k++],M=m[k++],d=S,w=k-2;d-- >_;){var y=m[w-2],v=m[w-1];if(ym[T+1]:!0}function x(_,T,m,k){_*=2;var S=k[_];return S>1,d=M-k,w=M+k,y=S,v=d,A=M,p=w,D=b,E=_+1,R=T-1,F=0;g(y,v,m)&&(F=y,y=v,v=F),g(p,D,m)&&(F=p,p=D,D=F),g(y,A,m)&&(F=y,y=A,A=F),g(v,A,m)&&(F=v,v=A,A=F),g(y,p,m)&&(F=y,y=p,p=F),g(A,p,m)&&(F=A,A=p,p=F),g(v,D,m)&&(F=v,v=D,D=F),g(v,A,m)&&(F=v,v=A,A=F),g(p,D,m)&&(F=p,p=D,D=F);for(var z=m[2*v],P=m[2*v+1],L=m[2*p],I=m[2*p+1],B=2*y,O=2*A,G=2*D,J=2*S,j=2*M,V=2*b,q=0;q<2;++q){var Z=m[B+q],re=m[O+q],$=m[G+q];m[J+q]=Z,m[j+q]=re,m[V+q]=$}s(d,_,m),s(w,T,m);for(var ae=E;ae<=R;++ae)if(x(ae,z,P,m))ae!==E&&u(ae,E,m),++E;else if(!x(ae,L,I,m))for(;;)if(x(R,L,I,m)){x(R,z,P,m)?(f(ae,E,R,m),++E,--R):(u(ae,R,m),--R);break}else{if(--R>>1;s(k,re);for(var $=0,ae=0,j=0;j=f)Q=Q-f|0,b(h,_,ae--,Q);else if(Q>=0)b(g,x,$--,Q);else if(Q<=-f){Q=-Q-f|0;for(var te=0;te<$;++te){var ue=p(g[te],Q);if(ue!==void 0)return ue}M(h,_,ae++,Q)}else{Q=-Q-1|0;for(var te=0;te>>1;s(k,re);for(var $=0,ae=0,Q=0,j=0;j>1===k[2*j+3]>>1&&(ue=2,j+=1),te<0){for(var ee=-(te>>1)-1,ie=0;ie>1)-1;ue===0?b(g,x,$--,ee):ue===1?b(h,_,ae--,ee):ue===2&&b(T,m,Q--,ee)}}}function y(A,p,D,E,R,F,z,P,L,I,B,O){var G=0,J=2*A,j=p,V=p+A,q=1,Z=1;E?Z=f:q=f;for(var re=R;re>>1;s(k,te);for(var ue=0,re=0;re=f?(ie=!E,$-=f):(ie=!!E,$-=1),ie)M(g,x,ue++,$);else{var fe=O[$],we=J*$,Te=B[we+p+1],ke=B[we+p+1+A];e:for(var ge=0;ge>>1;s(k,$);for(var ae=0,V=0;V<$;++V){var Q=k[2*V+1]|0;if(Q<0){var q=-Q;if(q>=f)g[ae++]=q-f;else{q-=1;var te=B[q],ue=G*q,ee=I[ue+p+1],ie=I[ue+p+1+A];e:for(var fe=0;fe=0;--fe)if(g[fe]===q){for(var ge=fe+1;gec)throw new RangeError('The value "'+se+'" is invalid for option "size"');var X=new Uint8Array(se);return Object.setPrototypeOf(X,h.prototype),X}function h(se,X,K){if(typeof se=="number"){if(typeof X=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return k(se)}return _(se,X,K)}h.poolSize=8192;function _(se,X,K){if(typeof se=="string")return S(se,X);if(ArrayBuffer.isView(se))return M(se);if(se==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof se);if(ge(se,ArrayBuffer)||se&&ge(se.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(ge(se,SharedArrayBuffer)||se&&ge(se.buffer,SharedArrayBuffer)))return d(se,X,K);if(typeof se=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var ye=se.valueOf&&se.valueOf();if(ye!=null&&ye!==se)return h.from(ye,X,K);var oe=w(se);if(oe)return oe;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof se[Symbol.toPrimitive]=="function")return h.from(se[Symbol.toPrimitive]("string"),X,K);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof se)}h.from=function(se,X,K){return _(se,X,K)},Object.setPrototypeOf(h.prototype,Uint8Array.prototype),Object.setPrototypeOf(h,Uint8Array);function T(se){if(typeof se!="number")throw new TypeError('"size" argument must be of type number');if(se<0)throw new RangeError('The value "'+se+'" is invalid for option "size"')}function m(se,X,K){return T(se),se<=0?x(se):X!==void 0?typeof K=="string"?x(se).fill(X,K):x(se).fill(X):x(se)}h.alloc=function(se,X,K){return m(se,X,K)};function k(se){return T(se),x(se<0?0:y(se)|0)}h.allocUnsafe=function(se){return k(se)},h.allocUnsafeSlow=function(se){return k(se)};function S(se,X){if((typeof X!="string"||X==="")&&(X="utf8"),!h.isEncoding(X))throw new TypeError("Unknown encoding: "+X);var K=A(se,X)|0,ye=x(K),oe=ye.write(se,X);return oe!==K&&(ye=ye.slice(0,oe)),ye}function b(se){for(var X=se.length<0?0:y(se.length)|0,K=x(X),ye=0;ye=c)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+c.toString(16)+" bytes");return se|0}function v(se){return+se!=se&&(se=0),h.alloc(+se)}h.isBuffer=function(X){return X!=null&&X._isBuffer===!0&&X!==h.prototype},h.compare=function(X,K){if(ge(X,Uint8Array)&&(X=h.from(X,X.offset,X.byteLength)),ge(K,Uint8Array)&&(K=h.from(K,K.offset,K.byteLength)),!h.isBuffer(X)||!h.isBuffer(K))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(X===K)return 0;for(var ye=X.length,oe=K.length,de=0,pe=Math.min(ye,oe);deoe.length?h.from(pe).copy(oe,de):Uint8Array.prototype.set.call(oe,pe,de);else if(h.isBuffer(pe))pe.copy(oe,de);else throw new TypeError('"list" argument must be an Array of Buffers');de+=pe.length}return oe};function A(se,X){if(h.isBuffer(se))return se.length;if(ArrayBuffer.isView(se)||ge(se,ArrayBuffer))return se.byteLength;if(typeof se!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof se);var K=se.length,ye=arguments.length>2&&arguments[2]===!0;if(!ye&&K===0)return 0;for(var oe=!1;;)switch(X){case"ascii":case"latin1":case"binary":return K;case"utf8":case"utf-8":return ie(se).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return K*2;case"hex":return K>>>1;case"base64":return Te(se).length;default:if(oe)return ye?-1:ie(se).length;X=(""+X).toLowerCase(),oe=!0}}h.byteLength=A;function p(se,X,K){var ye=!1;if((X===void 0||X<0)&&(X=0),X>this.length||((K===void 0||K>this.length)&&(K=this.length),K<=0)||(K>>>=0,X>>>=0,K<=X))return"";for(se||(se="utf8");;)switch(se){case"hex":return q(this,X,K);case"utf8":case"utf-8":return O(this,X,K);case"ascii":return j(this,X,K);case"latin1":case"binary":return V(this,X,K);case"base64":return B(this,X,K);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Z(this,X,K);default:if(ye)throw new TypeError("Unknown encoding: "+se);se=(se+"").toLowerCase(),ye=!0}}h.prototype._isBuffer=!0;function D(se,X,K){var ye=se[X];se[X]=se[K],se[K]=ye}h.prototype.swap16=function(){var X=this.length;if(X%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var K=0;KK&&(X+=" ... "),""},f&&(h.prototype[f]=h.prototype.inspect),h.prototype.compare=function(X,K,ye,oe,de){if(ge(X,Uint8Array)&&(X=h.from(X,X.offset,X.byteLength)),!h.isBuffer(X))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof X);if(K===void 0&&(K=0),ye===void 0&&(ye=X?X.length:0),oe===void 0&&(oe=0),de===void 0&&(de=this.length),K<0||ye>X.length||oe<0||de>this.length)throw new RangeError("out of range index");if(oe>=de&&K>=ye)return 0;if(oe>=de)return-1;if(K>=ye)return 1;if(K>>>=0,ye>>>=0,oe>>>=0,de>>>=0,this===X)return 0;for(var pe=de-oe,me=ye-K,Se=Math.min(pe,me),ve=this.slice(oe,de),he=X.slice(K,ye),be=0;be2147483647?K=2147483647:K<-2147483648&&(K=-2147483648),K=+K,Ee(K)&&(K=oe?0:se.length-1),K<0&&(K=se.length+K),K>=se.length){if(oe)return-1;K=se.length-1}else if(K<0)if(oe)K=0;else return-1;if(typeof X=="string"&&(X=h.from(X,ye)),h.isBuffer(X))return X.length===0?-1:R(se,X,K,ye,oe);if(typeof X=="number")return X=X&255,typeof Uint8Array.prototype.indexOf=="function"?oe?Uint8Array.prototype.indexOf.call(se,X,K):Uint8Array.prototype.lastIndexOf.call(se,X,K):R(se,[X],K,ye,oe);throw new TypeError("val must be string, number or Buffer")}function R(se,X,K,ye,oe){var de=1,pe=se.length,me=X.length;if(ye!==void 0&&(ye=String(ye).toLowerCase(),ye==="ucs2"||ye==="ucs-2"||ye==="utf16le"||ye==="utf-16le")){if(se.length<2||X.length<2)return-1;de=2,pe/=2,me/=2,K/=2}function Se(Re,Pe){return de===1?Re[Pe]:Re.readUInt16BE(Pe*de)}var ve;if(oe){var he=-1;for(ve=K;vepe&&(K=pe-me),ve=K;ve>=0;ve--){for(var be=!0,Ae=0;Aeoe&&(ye=oe)):ye=oe;var de=X.length;ye>de/2&&(ye=de/2);for(var pe=0;pe>>0,isFinite(ye)?(ye=ye>>>0,oe===void 0&&(oe="utf8")):(oe=ye,ye=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var de=this.length-K;if((ye===void 0||ye>de)&&(ye=de),X.length>0&&(ye<0||K<0)||K>this.length)throw new RangeError("Attempt to write outside buffer bounds");oe||(oe="utf8");for(var pe=!1;;)switch(oe){case"hex":return F(this,X,K,ye);case"utf8":case"utf-8":return z(this,X,K,ye);case"ascii":case"latin1":case"binary":return P(this,X,K,ye);case"base64":return L(this,X,K,ye);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,X,K,ye);default:if(pe)throw new TypeError("Unknown encoding: "+oe);oe=(""+oe).toLowerCase(),pe=!0}},h.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function B(se,X,K){return X===0&&K===se.length?u.fromByteArray(se):u.fromByteArray(se.slice(X,K))}function O(se,X,K){K=Math.min(se.length,K);for(var ye=[],oe=X;oe239?4:de>223?3:de>191?2:1;if(oe+me<=K){var Se,ve,he,be;switch(me){case 1:de<128&&(pe=de);break;case 2:Se=se[oe+1],(Se&192)===128&&(be=(de&31)<<6|Se&63,be>127&&(pe=be));break;case 3:Se=se[oe+1],ve=se[oe+2],(Se&192)===128&&(ve&192)===128&&(be=(de&15)<<12|(Se&63)<<6|ve&63,be>2047&&(be<55296||be>57343)&&(pe=be));break;case 4:Se=se[oe+1],ve=se[oe+2],he=se[oe+3],(Se&192)===128&&(ve&192)===128&&(he&192)===128&&(be=(de&15)<<18|(Se&63)<<12|(ve&63)<<6|he&63,be>65535&&be<1114112&&(pe=be))}}pe===null?(pe=65533,me=1):pe>65535&&(pe-=65536,ye.push(pe>>>10&1023|55296),pe=56320|pe&1023),ye.push(pe),oe+=me}return J(ye)}var G=4096;function J(se){var X=se.length;if(X<=G)return String.fromCharCode.apply(String,se);for(var K="",ye=0;yeye)&&(K=ye);for(var oe="",de=X;deye&&(X=ye),K<0?(K+=ye,K<0&&(K=0)):K>ye&&(K=ye),KK)throw new RangeError("Trying to access beyond buffer length")}h.prototype.readUintLE=h.prototype.readUIntLE=function(X,K,ye){X=X>>>0,K=K>>>0,ye||re(X,K,this.length);for(var oe=this[X],de=1,pe=0;++pe>>0,K=K>>>0,ye||re(X,K,this.length);for(var oe=this[X+--K],de=1;K>0&&(de*=256);)oe+=this[X+--K]*de;return oe},h.prototype.readUint8=h.prototype.readUInt8=function(X,K){return X=X>>>0,K||re(X,1,this.length),this[X]},h.prototype.readUint16LE=h.prototype.readUInt16LE=function(X,K){return X=X>>>0,K||re(X,2,this.length),this[X]|this[X+1]<<8},h.prototype.readUint16BE=h.prototype.readUInt16BE=function(X,K){return X=X>>>0,K||re(X,2,this.length),this[X]<<8|this[X+1]},h.prototype.readUint32LE=h.prototype.readUInt32LE=function(X,K){return X=X>>>0,K||re(X,4,this.length),(this[X]|this[X+1]<<8|this[X+2]<<16)+this[X+3]*16777216},h.prototype.readUint32BE=h.prototype.readUInt32BE=function(X,K){return X=X>>>0,K||re(X,4,this.length),this[X]*16777216+(this[X+1]<<16|this[X+2]<<8|this[X+3])},h.prototype.readIntLE=function(X,K,ye){X=X>>>0,K=K>>>0,ye||re(X,K,this.length);for(var oe=this[X],de=1,pe=0;++pe=de&&(oe-=Math.pow(2,8*K)),oe},h.prototype.readIntBE=function(X,K,ye){X=X>>>0,K=K>>>0,ye||re(X,K,this.length);for(var oe=K,de=1,pe=this[X+--oe];oe>0&&(de*=256);)pe+=this[X+--oe]*de;return de*=128,pe>=de&&(pe-=Math.pow(2,8*K)),pe},h.prototype.readInt8=function(X,K){return X=X>>>0,K||re(X,1,this.length),this[X]&128?(255-this[X]+1)*-1:this[X]},h.prototype.readInt16LE=function(X,K){X=X>>>0,K||re(X,2,this.length);var ye=this[X]|this[X+1]<<8;return ye&32768?ye|4294901760:ye},h.prototype.readInt16BE=function(X,K){X=X>>>0,K||re(X,2,this.length);var ye=this[X+1]|this[X]<<8;return ye&32768?ye|4294901760:ye},h.prototype.readInt32LE=function(X,K){return X=X>>>0,K||re(X,4,this.length),this[X]|this[X+1]<<8|this[X+2]<<16|this[X+3]<<24},h.prototype.readInt32BE=function(X,K){return X=X>>>0,K||re(X,4,this.length),this[X]<<24|this[X+1]<<16|this[X+2]<<8|this[X+3]},h.prototype.readFloatLE=function(X,K){return X=X>>>0,K||re(X,4,this.length),s.read(this,X,!0,23,4)},h.prototype.readFloatBE=function(X,K){return X=X>>>0,K||re(X,4,this.length),s.read(this,X,!1,23,4)},h.prototype.readDoubleLE=function(X,K){return X=X>>>0,K||re(X,8,this.length),s.read(this,X,!0,52,8)},h.prototype.readDoubleBE=function(X,K){return X=X>>>0,K||re(X,8,this.length),s.read(this,X,!1,52,8)};function $(se,X,K,ye,oe,de){if(!h.isBuffer(se))throw new TypeError('"buffer" argument must be a Buffer instance');if(X>oe||Xse.length)throw new RangeError("Index out of range")}h.prototype.writeUintLE=h.prototype.writeUIntLE=function(X,K,ye,oe){if(X=+X,K=K>>>0,ye=ye>>>0,!oe){var de=Math.pow(2,8*ye)-1;$(this,X,K,ye,de,0)}var pe=1,me=0;for(this[K]=X&255;++me>>0,ye=ye>>>0,!oe){var de=Math.pow(2,8*ye)-1;$(this,X,K,ye,de,0)}var pe=ye-1,me=1;for(this[K+pe]=X&255;--pe>=0&&(me*=256);)this[K+pe]=X/me&255;return K+ye},h.prototype.writeUint8=h.prototype.writeUInt8=function(X,K,ye){return X=+X,K=K>>>0,ye||$(this,X,K,1,255,0),this[K]=X&255,K+1},h.prototype.writeUint16LE=h.prototype.writeUInt16LE=function(X,K,ye){return X=+X,K=K>>>0,ye||$(this,X,K,2,65535,0),this[K]=X&255,this[K+1]=X>>>8,K+2},h.prototype.writeUint16BE=h.prototype.writeUInt16BE=function(X,K,ye){return X=+X,K=K>>>0,ye||$(this,X,K,2,65535,0),this[K]=X>>>8,this[K+1]=X&255,K+2},h.prototype.writeUint32LE=h.prototype.writeUInt32LE=function(X,K,ye){return X=+X,K=K>>>0,ye||$(this,X,K,4,4294967295,0),this[K+3]=X>>>24,this[K+2]=X>>>16,this[K+1]=X>>>8,this[K]=X&255,K+4},h.prototype.writeUint32BE=h.prototype.writeUInt32BE=function(X,K,ye){return X=+X,K=K>>>0,ye||$(this,X,K,4,4294967295,0),this[K]=X>>>24,this[K+1]=X>>>16,this[K+2]=X>>>8,this[K+3]=X&255,K+4},h.prototype.writeIntLE=function(X,K,ye,oe){if(X=+X,K=K>>>0,!oe){var de=Math.pow(2,8*ye-1);$(this,X,K,ye,de-1,-de)}var pe=0,me=1,Se=0;for(this[K]=X&255;++pe>0)-Se&255;return K+ye},h.prototype.writeIntBE=function(X,K,ye,oe){if(X=+X,K=K>>>0,!oe){var de=Math.pow(2,8*ye-1);$(this,X,K,ye,de-1,-de)}var pe=ye-1,me=1,Se=0;for(this[K+pe]=X&255;--pe>=0&&(me*=256);)X<0&&Se===0&&this[K+pe+1]!==0&&(Se=1),this[K+pe]=(X/me>>0)-Se&255;return K+ye},h.prototype.writeInt8=function(X,K,ye){return X=+X,K=K>>>0,ye||$(this,X,K,1,127,-128),X<0&&(X=255+X+1),this[K]=X&255,K+1},h.prototype.writeInt16LE=function(X,K,ye){return X=+X,K=K>>>0,ye||$(this,X,K,2,32767,-32768),this[K]=X&255,this[K+1]=X>>>8,K+2},h.prototype.writeInt16BE=function(X,K,ye){return X=+X,K=K>>>0,ye||$(this,X,K,2,32767,-32768),this[K]=X>>>8,this[K+1]=X&255,K+2},h.prototype.writeInt32LE=function(X,K,ye){return X=+X,K=K>>>0,ye||$(this,X,K,4,2147483647,-2147483648),this[K]=X&255,this[K+1]=X>>>8,this[K+2]=X>>>16,this[K+3]=X>>>24,K+4},h.prototype.writeInt32BE=function(X,K,ye){return X=+X,K=K>>>0,ye||$(this,X,K,4,2147483647,-2147483648),X<0&&(X=4294967295+X+1),this[K]=X>>>24,this[K+1]=X>>>16,this[K+2]=X>>>8,this[K+3]=X&255,K+4};function ae(se,X,K,ye,oe,de){if(K+ye>se.length)throw new RangeError("Index out of range");if(K<0)throw new RangeError("Index out of range")}function Q(se,X,K,ye,oe){return X=+X,K=K>>>0,oe||ae(se,X,K,4,34028234663852886e22,-34028234663852886e22),s.write(se,X,K,ye,23,4),K+4}h.prototype.writeFloatLE=function(X,K,ye){return Q(this,X,K,!0,ye)},h.prototype.writeFloatBE=function(X,K,ye){return Q(this,X,K,!1,ye)};function te(se,X,K,ye,oe){return X=+X,K=K>>>0,oe||ae(se,X,K,8,17976931348623157e292,-17976931348623157e292),s.write(se,X,K,ye,52,8),K+8}h.prototype.writeDoubleLE=function(X,K,ye){return te(this,X,K,!0,ye)},h.prototype.writeDoubleBE=function(X,K,ye){return te(this,X,K,!1,ye)},h.prototype.copy=function(X,K,ye,oe){if(!h.isBuffer(X))throw new TypeError("argument should be a Buffer");if(ye||(ye=0),!oe&&oe!==0&&(oe=this.length),K>=X.length&&(K=X.length),K||(K=0),oe>0&&oe=this.length)throw new RangeError("Index out of range");if(oe<0)throw new RangeError("sourceEnd out of bounds");oe>this.length&&(oe=this.length),X.length-K>>0,ye=ye===void 0?this.length:ye>>>0,X||(X=0);var pe;if(typeof X=="number")for(pe=K;pe55295&&K<57344){if(!oe){if(K>56319){(X-=3)>-1&&de.push(239,191,189);continue}else if(pe+1===ye){(X-=3)>-1&&de.push(239,191,189);continue}oe=K;continue}if(K<56320){(X-=3)>-1&&de.push(239,191,189),oe=K;continue}K=(oe-55296<<10|K-56320)+65536}else oe&&(X-=3)>-1&&de.push(239,191,189);if(oe=null,K<128){if((X-=1)<0)break;de.push(K)}else if(K<2048){if((X-=2)<0)break;de.push(K>>6|192,K&63|128)}else if(K<65536){if((X-=3)<0)break;de.push(K>>12|224,K>>6&63|128,K&63|128)}else if(K<1114112){if((X-=4)<0)break;de.push(K>>18|240,K>>12&63|128,K>>6&63|128,K&63|128)}else throw new Error("Invalid code point")}return de}function fe(se){for(var X=[],K=0;K>8,oe=K%256,de.push(oe),de.push(ye);return de}function Te(se){return u.toByteArray(ee(se))}function ke(se,X,K,ye){for(var oe=0;oe=X.length||oe>=se.length);++oe)X[oe+K]=se[oe];return oe}function ge(se,X){return se instanceof X||se!=null&&se.constructor!=null&&se.constructor.name!=null&&se.constructor.name===X.name}function Ee(se){return se!==se}var Le=(function(){for(var se="0123456789abcdef",X=new Array(256),K=0;K<16;++K)for(var ye=K*16,oe=0;oe<16;++oe)X[ye+oe]=se[K]+se[oe];return X})()},2538(a,o,i){"use strict";var l=i(8902),u=i(5542),s=i(2272),f=i(5023);a.exports=_;function c(T){return[Math.min(T[0],T[1]),Math.max(T[0],T[1])]}function g(T,m){return T[0]-m[0]||T[1]-m[1]}function x(T){return T.map(c).sort(g)}function h(T,m,k){return m in T?T[m]:k}function _(T,m,k){Array.isArray(m)?(k=k||{},m=m||[]):(k=m||{},m=[]);var S=!!h(k,"delaunay",!0),b=!!h(k,"interior",!0),M=!!h(k,"exterior",!0),d=!!h(k,"infinity",!1);if(!b&&!M||T.length===0)return[];var w=l(T,m);if(S||b!==M||d){for(var y=u(T.length,x(m)),v=0;v0;){for(var S=x.pop(),T=x.pop(),b=-1,M=-1,m=_[T],w=1;w=0||(g.flip(T,S),s(c,g,x,b,T,M),s(c,g,x,T,M,b),s(c,g,x,M,S,b),s(c,g,x,S,b,M))}}},5023(a,o,i){"use strict";var l=i(2478);a.exports=x;function u(h,_,T,m,k,S,b){this.cells=h,this.neighbor=_,this.flags=m,this.constraint=T,this.active=k,this.next=S,this.boundary=b}var s=u.prototype;function f(h,_){return h[0]-_[0]||h[1]-_[1]||h[2]-_[2]}s.locate=(function(){var h=[0,0,0];return function(_,T,m){var k=_,S=T,b=m;return T0||b.length>0;){for(;S.length>0;){var v=S.pop();if(M[v]!==-k){M[v]=k;for(var A=d[v],p=0;p<3;++p){var D=y[3*v+p];D>=0&&M[D]===0&&(w[3*v+p]?b.push(D):(S.push(D),M[D]=k))}}}var E=b;b=S,S=E,b.length=0,k=-k}var R=g(d,M,_);return T?R.concat(m.boundary):R}},8902(a,o,i){"use strict";var l=i(2478),u=i(3250)[3],s=0,f=1,c=2;a.exports=b;function g(M,d,w,y,v){this.a=M,this.b=d,this.idx=w,this.lowerIds=y,this.upperIds=v}function x(M,d,w,y){this.a=M,this.b=d,this.type=w,this.idx=y}function h(M,d){var w=M.a[0]-d.a[0]||M.a[1]-d.a[1]||M.type-d.type;return w||M.type!==s&&(w=u(M.a,M.b,d.b),w)?w:M.idx-d.idx}function _(M,d){return u(M.a,M.b,d)}function T(M,d,w,y,v){for(var A=l.lt(d,y,_),p=l.gt(d,y,_),D=A;D1&&u(w[R[z-2]],w[R[z-1]],y)>0;)M.push([R[z-1],R[z-2],v]),z-=1;R.length=z,R.push(v);for(var F=E.upperIds,z=F.length;z>1&&u(w[F[z-2]],w[F[z-1]],y)<0;)M.push([F[z-2],F[z-1],v]),z-=1;F.length=z,F.push(v)}}function m(M,d){var w;return M.a[0]E[0]&&v.push(new x(E,D,c,A),new x(D,E,f,A))}v.sort(h);for(var R=v[0].a[0]-(1+Math.abs(v[0].a[0]))*Math.pow(2,-52),F=[new g([R,1],[R,0],-1,[],[],[],[])],z=[],A=0,P=v.length;A=0}})(),s.removeTriangle=function(g,x,h){var _=this.stars;f(_[g],x,h),f(_[x],h,g),f(_[h],g,x)},s.addTriangle=function(g,x,h){var _=this.stars;_[g].push(x,h),_[x].push(h,g),_[h].push(g,x)},s.opposite=function(g,x){for(var h=this.stars[x],_=1,T=h.length;_=0;--L){var Z=z[L];I=Z[0];var re=R[I],$=re[0],ae=re[1],Q=E[$],te=E[ae];if((Q[0]-te[0]||Q[1]-te[1])<0){var ue=$;$=ae,ae=ue}re[0]=$;var ee=re[1]=Z[1],ie;for(P&&(ie=re[2]);L>0&&z[L-1][0]===I;){var Z=z[--L],fe=Z[1];P?R.push([ee,fe,ie]):R.push([ee,fe]),ee=fe}P?R.push([ee,ae,ie]):R.push([ee,ae])}return B}function d(E,R,F){for(var z=R.length,P=new l(z),L=[],I=0;IR[2]?1:0)}function v(E,R,F){if(E.length!==0){if(R)for(var z=0;z0||I.length>0}function D(E,R,F){var z;if(F){z=R;for(var P=new Array(R.length),L=0;LM+1)throw new Error(S+" map requires nshades to be at least size "+k.length);Array.isArray(x.alpha)?x.alpha.length!==2?d=[1,1]:d=x.alpha.slice():typeof x.alpha=="number"?d=[x.alpha,x.alpha]:d=[1,1],h=k.map(function(D){return Math.round(D.index*M)}),d[0]=Math.min(Math.max(d[0],0),1),d[1]=Math.min(Math.max(d[1],0),1);var y=k.map(function(D,E){var R=k[E].index,F=k[E].rgb.slice();return F.length===4&&F[3]>=0&&F[3]<=1||(F[3]=d[0]+(d[1]-d[0])*R),F}),v=[];for(w=0;w=0}function x(h,_,T,m){var k=l(_,T,m);if(k===0){var S=u(l(h,_,T)),b=u(l(h,_,m));if(S===b){if(S===0){var M=g(h,_,T),d=g(h,_,m);return M===d?0:M?1:-1}return 0}else{if(b===0)return S>0||g(h,_,m)?-1:1;if(S===0)return b>0||g(h,_,T)?1:-1}return u(b-S)}var w=l(h,_,T);if(w>0)return k>0&&l(h,_,m)>0?1:-1;if(w<0)return k>0||l(h,_,m)>0?1:-1;var y=l(h,_,m);return y>0||g(h,_,T)?1:-1}},8572(a){"use strict";a.exports=function(i){return i<0?-1:i>0?1:0}},8507(a){a.exports=l;var o=Math.min;function i(u,s){return u-s}function l(u,s){var f=u.length,c=u.length-s.length;if(c)return c;switch(f){case 0:return 0;case 1:return u[0]-s[0];case 2:return u[0]+u[1]-s[0]-s[1]||o(u[0],u[1])-o(s[0],s[1]);case 3:var g=u[0]+u[1],x=s[0]+s[1];if(c=g+u[2]-(x+s[2]),c)return c;var h=o(u[0],u[1]),_=o(s[0],s[1]);return o(h,u[2])-o(_,s[2])||o(h+u[2],g)-o(_+s[2],x);case 4:var T=u[0],m=u[1],k=u[2],S=u[3],b=s[0],M=s[1],d=s[2],w=s[3];return T+m+k+S-(b+M+d+w)||o(T,m,k,S)-o(b,M,d,w,b)||o(T+m,T+k,T+S,m+k,m+S,k+S)-o(b+M,b+d,b+w,M+d,M+w,d+w)||o(T+m+k,T+m+S,T+k+S,m+k+S)-o(b+M+d,b+M+w,b+d+w,M+d+w);default:for(var y=u.slice().sort(i),v=s.slice().sort(i),A=0;Ai[u][0]&&(u=s);return lu?[[u],[l]]:[[l]]}},4750(a,o,i){"use strict";a.exports=u;var l=i(3090);function u(s){var f=l(s),c=f.length;if(c<=2)return[];for(var g=new Array(c),x=f[c-1],h=0;h=x[b]&&(S+=1);m[k]=S}}return g}function c(g,x){try{return l(g,!0)}catch(m){var h=u(g);if(h.length<=x)return[];var _=s(g,h),T=l(_,!0);return f(T,h)}}},4769(a){"use strict";function o(l,u,s,f,c,g){var x=6*c*c-6*c,h=3*c*c-4*c+1,_=-6*c*c+6*c,T=3*c*c-2*c;if(l.length){g||(g=new Array(l.length));for(var m=l.length-1;m>=0;--m)g[m]=x*l[m]+h*u[m]+_*s[m]+T*f[m];return g}return x*l+h*u+_*s[m]+T*f}function i(l,u,s,f,c,g){var x=c-1,h=c*c,_=x*x,T=(1+2*c)*_,m=c*_,k=h*(3-2*c),S=h*x;if(l.length){g||(g=new Array(l.length));for(var b=l.length-1;b>=0;--b)g[b]=T*l[b]+m*u[b]+k*s[b]+S*f[b];return g}return T*l+m*u+k*s+S*f}a.exports=i,a.exports.derivative=o},7642(a,o,i){"use strict";var l=i(8954),u=i(1682);a.exports=g;function s(x,h){this.point=x,this.index=h}function f(x,h){for(var _=x.point,T=h.point,m=_.length,k=0;k=2)return!1;F[P]=L}return!0}):R=R.filter(function(F){for(var z=0;z<=T;++z){var P=A[F[z]];if(P<0)return!1;F[z]=P}return!0}),T&1)for(var S=0;S>>31},a.exports.exponent=function(k){var S=a.exports.hi(k);return(S<<1>>>21)-1023},a.exports.fraction=function(k){var S=a.exports.lo(k),b=a.exports.hi(k),M=b&(1<<20)-1;return b&2146435072&&(M+=1048576),[S,M]},a.exports.denormalized=function(k){var S=a.exports.hi(k);return!(S&2146435072)}},1338(a){"use strict";function o(u,s,f){var c=u[f]|0;if(c<=0)return[];var g=new Array(c),x;if(f===u.length-1)for(x=0;x0)return i(u|0,s);break;case"object":if(typeof u.length=="number")return o(u,s,0);break}return[]}a.exports=l},3134(a,o,i){"use strict";a.exports=u;var l=i(1682);function u(s,f){var c=s.length;if(typeof f!="number"){f=0;for(var g=0;g=T-1)for(var w=S.length-1,v=h-_[T-1],y=0;y=T-1)for(var d=S.length-1,w=h-_[T-1],y=0;y=0;--T)if(h[--_])return!1;return!0},c.jump=function(h){var _=this.lastT(),T=this.dimension;if(!(h<_||arguments.length!==T+1)){var m=this._state,k=this._velocity,S=m.length-this.dimension,b=this.bounds,M=b[0],d=b[1];this._time.push(_,h);for(var w=0;w<2;++w)for(var y=0;y0;--y)m.push(s(M[y-1],d[y-1],arguments[y])),k.push(0)}},c.push=function(h){var _=this.lastT(),T=this.dimension;if(!(h<_||arguments.length!==T+1)){var m=this._state,k=this._velocity,S=m.length-this.dimension,b=h-_,M=this.bounds,d=M[0],w=M[1],y=b>1e-6?1/b:0;this._time.push(h);for(var v=T;v>0;--v){var A=s(d[v-1],w[v-1],arguments[v]);m.push(A),k.push((A-m[S++])*y)}}},c.set=function(h){var _=this.dimension;if(!(h0;--M)T.push(s(S[M-1],b[M-1],arguments[M])),m.push(0)}},c.move=function(h){var _=this.lastT(),T=this.dimension;if(!(h<=_||arguments.length!==T+1)){var m=this._state,k=this._velocity,S=m.length-this.dimension,b=this.bounds,M=b[0],d=b[1],w=h-_,y=w>1e-6?1/w:0;this._time.push(h);for(var v=T;v>0;--v){var A=arguments[v];m.push(s(M[v-1],d[v-1],m[S++]+A)),k.push(A*y)}}},c.idle=function(h){var _=this.lastT();if(!(h<_)){var T=this.dimension,m=this._state,k=this._velocity,S=m.length-T,b=this.bounds,M=b[0],d=b[1],w=h-_;this._time.push(h);for(var y=T-1;y>=0;--y)m.push(s(M[y],d[y],m[S]+w*k[S])),k.push(0),S+=1}};function g(h){for(var _=new Array(h),T=0;T=0;--E){var v=A[E];p[E]<=0?A[E]=new l(v._color,v.key,v.value,A[E+1],v.right,v._count+1):A[E]=new l(v._color,v.key,v.value,v.left,A[E+1],v._count+1)}for(var E=A.length-1;E>1;--E){var R=A[E-1],v=A[E];if(R._color===i||v._color===i)break;var F=A[E-2];if(F.left===R)if(R.left===v){var z=F.right;if(z&&z._color===o)R._color=i,F.right=s(i,z),F._color=o,E-=1;else{if(F._color=o,F.left=R.right,R._color=i,R.right=F,A[E-2]=R,A[E-1]=v,f(F),f(R),E>=3){var P=A[E-3];P.left===F?P.left=R:P.right=R}break}}else{var z=F.right;if(z&&z._color===o)R._color=i,F.right=s(i,z),F._color=o,E-=1;else{if(R.right=v.left,F._color=o,F.left=v.right,v._color=i,v.left=R,v.right=F,A[E-2]=v,A[E-1]=R,f(F),f(R),f(v),E>=3){var P=A[E-3];P.left===F?P.left=v:P.right=v}break}}else if(R.right===v){var z=F.left;if(z&&z._color===o)R._color=i,F.left=s(i,z),F._color=o,E-=1;else{if(F._color=o,F.right=R.left,R._color=i,R.left=F,A[E-2]=R,A[E-1]=v,f(F),f(R),E>=3){var P=A[E-3];P.right===F?P.right=R:P.left=R}break}}else{var z=F.left;if(z&&z._color===o)R._color=i,F.left=s(i,z),F._color=o,E-=1;else{if(R.left=v.right,F._color=o,F.right=v.left,v._color=i,v.right=R,v.left=F,A[E-2]=v,A[E-1]=R,f(F),f(R),f(v),E>=3){var P=A[E-3];P.right===F?P.right=v:P.left=v}break}}}return A[0]._color=i,new c(y,A[0])};function x(d,w){if(w.left){var y=x(d,w.left);if(y)return y}var y=d(w.key,w.value);if(y)return y;if(w.right)return x(d,w.right)}function h(d,w,y,v){var A=w(d,v.key);if(A<=0){if(v.left){var p=h(d,w,y,v.left);if(p)return p}var p=y(v.key,v.value);if(p)return p}if(v.right)return h(d,w,y,v.right)}function _(d,w,y,v,A){var p=y(d,A.key),D=y(w,A.key),E;if(p<=0&&(A.left&&(E=_(d,w,y,v,A.left),E)||D>0&&(E=v(A.key,A.value),E)))return E;if(D>0&&A.right)return _(d,w,y,v,A.right)}g.forEach=function(w,y,v){if(this.root)switch(arguments.length){case 1:return x(w,this.root);case 2:return h(y,this._compare,w,this.root);case 3:return this._compare(y,v)>=0?void 0:_(y,v,this._compare,w,this.root)}},Object.defineProperty(g,"begin",{get:function(){for(var d=[],w=this.root;w;)d.push(w),w=w.left;return new T(this,d)}}),Object.defineProperty(g,"end",{get:function(){for(var d=[],w=this.root;w;)d.push(w),w=w.right;return new T(this,d)}}),g.at=function(d){if(d<0)return new T(this,[]);for(var w=this.root,y=[];;){if(y.push(w),w.left){if(d=w.right._count)break;w=w.right}else break}return new T(this,[])},g.ge=function(d){for(var w=this._compare,y=this.root,v=[],A=0;y;){var p=w(d,y.key);v.push(y),p<=0&&(A=v.length),p<=0?y=y.left:y=y.right}return v.length=A,new T(this,v)},g.gt=function(d){for(var w=this._compare,y=this.root,v=[],A=0;y;){var p=w(d,y.key);v.push(y),p<0&&(A=v.length),p<0?y=y.left:y=y.right}return v.length=A,new T(this,v)},g.lt=function(d){for(var w=this._compare,y=this.root,v=[],A=0;y;){var p=w(d,y.key);v.push(y),p>0&&(A=v.length),p<=0?y=y.left:y=y.right}return v.length=A,new T(this,v)},g.le=function(d){for(var w=this._compare,y=this.root,v=[],A=0;y;){var p=w(d,y.key);v.push(y),p>=0&&(A=v.length),p<0?y=y.left:y=y.right}return v.length=A,new T(this,v)},g.find=function(d){for(var w=this._compare,y=this.root,v=[];y;){var A=w(d,y.key);if(v.push(y),A===0)return new T(this,v);A<=0?y=y.left:y=y.right}return new T(this,[])},g.remove=function(d){var w=this.find(d);return w?w.remove():this},g.get=function(d){for(var w=this._compare,y=this.root;y;){var v=w(d,y.key);if(v===0)return y.value;v<=0?y=y.left:y=y.right}};function T(d,w){this.tree=d,this._stack=w}var m=T.prototype;Object.defineProperty(m,"valid",{get:function(){return this._stack.length>0}}),Object.defineProperty(m,"node",{get:function(){return this._stack.length>0?this._stack[this._stack.length-1]:null},enumerable:!0}),m.clone=function(){return new T(this.tree,this._stack.slice())};function k(d,w){d.key=w.key,d.value=w.value,d.left=w.left,d.right=w.right,d._color=w._color,d._count=w._count}function S(d){for(var w,y,v,A,p=d.length-1;p>=0;--p){if(w=d[p],p===0){w._color=i;return}if(y=d[p-1],y.left===w){if(v=y.right,v.right&&v.right._color===o){if(v=y.right=u(v),A=v.right=u(v.right),y.right=v.left,v.left=y,v.right=A,v._color=y._color,w._color=i,y._color=i,A._color=i,f(y),f(v),p>1){var D=d[p-2];D.left===y?D.left=v:D.right=v}d[p-1]=v;return}else if(v.left&&v.left._color===o){if(v=y.right=u(v),A=v.left=u(v.left),y.right=A.left,v.left=A.right,A.left=y,A.right=v,A._color=y._color,y._color=i,v._color=i,w._color=i,f(y),f(v),f(A),p>1){var D=d[p-2];D.left===y?D.left=A:D.right=A}d[p-1]=A;return}if(v._color===i)if(y._color===o){y._color=i,y.right=s(o,v);return}else{y.right=s(o,v);continue}else{if(v=u(v),y.right=v.left,v.left=y,v._color=y._color,y._color=o,f(y),f(v),p>1){var D=d[p-2];D.left===y?D.left=v:D.right=v}d[p-1]=v,d[p]=y,p+11){var D=d[p-2];D.right===y?D.right=v:D.left=v}d[p-1]=v;return}else if(v.right&&v.right._color===o){if(v=y.left=u(v),A=v.right=u(v.right),y.left=A.right,v.right=A.left,A.right=y,A.left=v,A._color=y._color,y._color=i,v._color=i,w._color=i,f(y),f(v),f(A),p>1){var D=d[p-2];D.right===y?D.right=A:D.left=A}d[p-1]=A;return}if(v._color===i)if(y._color===o){y._color=i,y.left=s(o,v);return}else{y.left=s(o,v);continue}else{if(v=u(v),y.left=v.right,v.right=y,v._color=y._color,y._color=o,f(y),f(v),p>1){var D=d[p-2];D.right===y?D.right=v:D.left=v}d[p-1]=v,d[p]=y,p+1=0;--v){var y=d[v];y.left===d[v+1]?w[v]=new l(y._color,y.key,y.value,w[v+1],y.right,y._count):w[v]=new l(y._color,y.key,y.value,y.left,w[v+1],y._count)}if(y=w[w.length-1],y.left&&y.right){var A=w.length;for(y=y.left;y.right;)w.push(y),y=y.right;var p=w[A-1];w.push(new l(y._color,p.key,p.value,y.left,y.right,y._count)),w[A-1].key=y.key,w[A-1].value=y.value;for(var v=w.length-2;v>=A;--v)y=w[v],w[v]=new l(y._color,y.key,y.value,y.left,w[v+1],y._count);w[A-1].left=w[A]}if(y=w[w.length-1],y._color===o){var D=w[w.length-2];D.left===y?D.left=null:D.right===y&&(D.right=null),w.pop();for(var v=0;v0)return this._stack[this._stack.length-1].key},enumerable:!0}),Object.defineProperty(m,"value",{get:function(){if(this._stack.length>0)return this._stack[this._stack.length-1].value},enumerable:!0}),Object.defineProperty(m,"index",{get:function(){var d=0,w=this._stack;if(w.length===0){var y=this.tree.root;return y?y._count:0}else w[w.length-1].left&&(d=w[w.length-1].left._count);for(var v=w.length-2;v>=0;--v)w[v+1]===w[v].right&&(++d,w[v].left&&(d+=w[v].left._count));return d},enumerable:!0}),m.next=function(){var d=this._stack;if(d.length!==0){var w=d[d.length-1];if(w.right)for(w=w.right;w;)d.push(w),w=w.left;else for(d.pop();d.length>0&&d[d.length-1].right===w;)w=d[d.length-1],d.pop()}},Object.defineProperty(m,"hasNext",{get:function(){var d=this._stack;if(d.length===0)return!1;if(d[d.length-1].right)return!0;for(var w=d.length-1;w>0;--w)if(d[w-1].left===d[w])return!0;return!1}}),m.update=function(d){var w=this._stack;if(w.length===0)throw new Error("Can't update empty node!");var y=new Array(w.length),v=w[w.length-1];y[y.length-1]=new l(v._color,v.key,d,v.left,v.right,v._count);for(var A=w.length-2;A>=0;--A)v=w[A],v.left===w[A+1]?y[A]=new l(v._color,v.key,v.value,y[A+1],v.right,v._count):y[A]=new l(v._color,v.key,v.value,v.left,y[A+1],v._count);return new c(this.tree._compare,y[0])},m.prev=function(){var d=this._stack;if(d.length!==0){var w=d[d.length-1];if(w.left)for(w=w.left;w;)d.push(w),w=w.right;else for(d.pop();d.length>0&&d[d.length-1].left===w;)w=d[d.length-1],d.pop()}},Object.defineProperty(m,"hasPrev",{get:function(){var d=this._stack;if(d.length===0)return!1;if(d[d.length-1].left)return!0;for(var w=d.length-1;w>0;--w)if(d[w-1].right===d[w])return!0;return!1}});function b(d,w){return dw?1:0}function M(d){return new c(d||b,null)}},3837(a,o,i){"use strict";a.exports=E;var l=i(4935),u=i(501),s=i(5304),f=i(6429),c=i(6444),g=new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]),x=ArrayBuffer,h=DataView;function _(R){return x.isView(R)&&!(R instanceof h)}function T(R){return Array.isArray(R)||_(R)}function m(R,F){return R[0]=F[0],R[1]=F[1],R[2]=F[2],R}function k(R){this.gl=R,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.tickFontStyle=["normal","normal","normal"],this.tickFontWeight=["normal","normal","normal"],this.tickFontVariant=["normal","normal","normal"],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","sans-serif","sans-serif"],this.labelFontStyle=["normal","normal","normal"],this.labelFontWeight=["normal","normal","normal"],this.labelFontVariant=["normal","normal","normal"],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=s(R)}var S=k.prototype;S.update=function(R){R=R||{};function F($,ae,Q){if(Q in R){var te=R[Q],ue=this[Q],ee;($?T(te)&&T(te[0]):T(te))?this[Q]=ee=[ae(te[0]),ae(te[1]),ae(te[2])]:this[Q]=ee=[ae(te),ae(te),ae(te)];for(var ie=0;ie<3;++ie)if(ee[ie]!==ue[ie])return!0}return!1}var z=F.bind(this,!1,Number),P=F.bind(this,!1,Boolean),L=F.bind(this,!1,String),I=F.bind(this,!0,function($){if(T($)){if($.length===3)return[+$[0],+$[1],+$[2],1];if($.length===4)return[+$[0],+$[1],+$[2],+$[3]]}return[0,0,0,1]}),B,O=!1,G=!1;if("bounds"in R)for(var J=R.bounds,j=0;j<2;++j)for(var V=0;V<3;++V)J[j][V]!==this.bounds[j][V]&&(G=!0),this.bounds[j][V]=J[j][V];if("ticks"in R){B=R.ticks,O=!0,this.autoTicks=!1;for(var j=0;j<3;++j)this.tickSpacing[j]=0}else z("tickSpacing")&&(this.autoTicks=!0,G=!0);if(this._firstInit&&("ticks"in R||"tickSpacing"in R||(this.autoTicks=!0),G=!0,O=!0,this._firstInit=!1),G&&this.autoTicks&&(B=c.create(this.bounds,this.tickSpacing),O=!0),O){for(var j=0;j<3;++j)B[j].sort(function(ae,Q){return ae.x-Q.x});c.equal(B,this.ticks)?O=!1:this.ticks=B}P("tickEnable"),L("tickFont")&&(O=!0),L("tickFontStyle")&&(O=!0),L("tickFontWeight")&&(O=!0),L("tickFontVariant")&&(O=!0),z("tickSize"),z("tickAngle"),z("tickPad"),I("tickColor");var q=L("labels");L("labelFont")&&(q=!0),L("labelFontStyle")&&(q=!0),L("labelFontWeight")&&(q=!0),L("labelFontVariant")&&(q=!0),P("labelEnable"),z("labelSize"),z("labelPad"),I("labelColor"),P("lineEnable"),P("lineMirror"),z("lineWidth"),I("lineColor"),P("lineTickEnable"),P("lineTickMirror"),z("lineTickLength"),z("lineTickWidth"),I("lineTickColor"),P("gridEnable"),z("gridWidth"),I("gridColor"),P("zeroEnable"),I("zeroLineColor"),z("zeroLineWidth"),P("backgroundEnable"),I("backgroundColor");var Z=[{family:this.labelFont[0],style:this.labelFontStyle[0],weight:this.labelFontWeight[0],variant:this.labelFontVariant[0]},{family:this.labelFont[1],style:this.labelFontStyle[1],weight:this.labelFontWeight[1],variant:this.labelFontVariant[1]},{family:this.labelFont[2],style:this.labelFontStyle[2],weight:this.labelFontWeight[2],variant:this.labelFontVariant[2]}],re=[{family:this.tickFont[0],style:this.tickFontStyle[0],weight:this.tickFontWeight[0],variant:this.tickFontVariant[0]},{family:this.tickFont[1],style:this.tickFontStyle[1],weight:this.tickFontWeight[1],variant:this.tickFontVariant[1]},{family:this.tickFont[2],style:this.tickFontStyle[2],weight:this.tickFontWeight[2],variant:this.tickFontVariant[2]}];this._text?this._text&&(q||O)&&this._text.update(this.bounds,this.labels,Z,this.ticks,re):this._text=l(this.gl,this.bounds,this.labels,Z,this.ticks,re),this._lines&&O&&(this._lines.dispose(),this._lines=null),this._lines||(this._lines=u(this.gl,this.bounds,this.ticks))};function b(){this.primalOffset=[0,0,0],this.primalMinor=[0,0,0],this.mirrorOffset=[0,0,0],this.mirrorMinor=[0,0,0]}var M=[new b,new b,new b];function d(R,F,z,P,L){for(var I=R.primalOffset,B=R.primalMinor,O=R.mirrorOffset,G=R.mirrorMinor,J=P[F],j=0;j<3;++j)if(F!==j){var V=I,q=O,Z=B,re=G;J&1<0?(Z[j]=-1,re[j]=0):(Z[j]=0,re[j]=1)}}var w=[0,0,0],y={model:g,view:g,projection:g,_ortho:!1};S.isOpaque=function(){return!0},S.isTransparent=function(){return!1},S.drawTransparent=function(R){};var v=0,A=[0,0,0],p=[0,0,0],D=[0,0,0];S.draw=function(R){R=R||y;for(var Q=this.gl,F=R.model||g,z=R.view||g,P=R.projection||g,L=this.bounds,I=R._ortho||!1,B=f(F,z,P,L,I),O=B.cubeEdges,G=B.axis,J=z[12],j=z[13],V=z[14],q=z[15],Z=I?2:1,re=Z*this.pixelRatio*(P[3]*J+P[7]*j+P[11]*V+P[15]*q)/Q.drawingBufferHeight,$=0;$<3;++$)this.lastCubeProps.cubeEdges[$]=O[$],this.lastCubeProps.axis[$]=G[$];for(var ae=M,$=0;$<3;++$)d(M[$],$,this.bounds,O,G);for(var Q=this.gl,te=w,$=0;$<3;++$)this.backgroundEnable[$]?te[$]=G[$]:te[$]=0;this._background.draw(F,z,P,L,te,this.backgroundColor),this._lines.bind(F,z,P,this);for(var $=0;$<3;++$){var ue=[0,0,0];G[$]>0?ue[$]=L[1][$]:ue[$]=L[0][$];for(var ee=0;ee<2;++ee){var ie=($+1+ee)%3,fe=($+1+(ee^1))%3;this.gridEnable[ie]&&this._lines.drawGrid(ie,fe,this.bounds,ue,this.gridColor[ie],this.gridWidth[ie]*this.pixelRatio)}for(var ee=0;ee<2;++ee){var ie=($+1+ee)%3,fe=($+1+(ee^1))%3;this.zeroEnable[fe]&&Math.min(L[0][fe],L[1][fe])<=0&&Math.max(L[0][fe],L[1][fe])>=0&&this._lines.drawZero(ie,fe,this.bounds,ue,this.zeroLineColor[fe],this.zeroLineWidth[fe]*this.pixelRatio)}}for(var $=0;$<3;++$){this.lineEnable[$]&&this._lines.drawAxisLine($,this.bounds,ae[$].primalOffset,this.lineColor[$],this.lineWidth[$]*this.pixelRatio),this.lineMirror[$]&&this._lines.drawAxisLine($,this.bounds,ae[$].mirrorOffset,this.lineColor[$],this.lineWidth[$]*this.pixelRatio);for(var we=m(A,ae[$].primalMinor),Te=m(p,ae[$].mirrorMinor),ke=this.lineTickLength,ee=0;ee<3;++ee){var ge=re/F[5*ee];we[ee]*=ke[ee]*ge,Te[ee]*=ke[ee]*ge}this.lineTickEnable[$]&&this._lines.drawAxisTicks($,ae[$].primalOffset,we,this.lineTickColor[$],this.lineTickWidth[$]*this.pixelRatio),this.lineTickMirror[$]&&this._lines.drawAxisTicks($,ae[$].mirrorOffset,Te,this.lineTickColor[$],this.lineTickWidth[$]*this.pixelRatio)}this._lines.unbind(),this._text.bind(F,z,P,this.pixelRatio);var Ee,Le=.5,se,X;function K(Se){X=[0,0,0],X[Se]=1}function ye(Se,ve,he){var be=(Se+1)%3,Ae=(Se+2)%3,Re=ve[be],Pe=ve[Ae],Ye=he[be],Ve=he[Ae];if(Re>0&&Ve>0){K(be);return}else if(Re>0&&Ve<0){K(be);return}else if(Re<0&&Ve>0){K(be);return}else if(Re<0&&Ve<0){K(be);return}else if(Pe>0&&Ye>0){K(Ae);return}else if(Pe>0&&Ye<0){K(Ae);return}else if(Pe<0&&Ye>0){K(Ae);return}else if(Pe<0&&Ye<0){K(Ae);return}}for(var $=0;$<3;++$){for(var oe=ae[$].primalMinor,de=ae[$].mirrorMinor,pe=m(D,ae[$].primalOffset),ee=0;ee<3;++ee)this.lineTickEnable[$]&&(pe[ee]+=re*oe[ee]*Math.max(this.lineTickLength[ee],0)/F[5*ee]);var me=[0,0,0];if(me[$]=1,this.tickEnable[$]){this.tickAngle[$]===-3600?(this.tickAngle[$]=0,this.tickAlign[$]="auto"):this.tickAlign[$]=-1,se=1,Ee=[this.tickAlign[$],Le,se],Ee[0]==="auto"?Ee[0]=v:Ee[0]=parseInt(""+Ee[0]),X=[0,0,0],ye($,oe,de);for(var ee=0;ee<3;++ee)pe[ee]+=re*oe[ee]*this.tickPad[ee]/F[5*ee];this._text.drawTicks($,this.tickSize[$],this.tickAngle[$],pe,this.tickColor[$],me,X,Ee)}if(this.labelEnable[$]){se=0,X=[0,0,0],this.labels[$].length>4&&(K($),se=1),Ee=[this.labelAlign[$],Le,se],Ee[0]==="auto"?Ee[0]=v:Ee[0]=parseInt(""+Ee[0]);for(var ee=0;ee<3;++ee)pe[ee]+=re*oe[ee]*this.labelPad[ee]/F[5*ee];pe[$]+=.5*(L[0][$]+L[1][$]),this._text.drawLabel($,this.labelSize[$],this.labelAngle[$],pe,this.labelColor[$],[0,0,0],X,Ee)}}this._text.unbind()},S.dispose=function(){this._text.dispose(),this._lines.dispose(),this._background.dispose(),this._lines=null,this._text=null,this._background=null,this.gl=null};function E(R,F){var z=new k(R);return z.update(F),z}},5304(a,o,i){"use strict";a.exports=g;var l=i(2762),u=i(8116),s=i(1879).bg;function f(x,h,_,T){this.gl=x,this.buffer=h,this.vao=_,this.shader=T}var c=f.prototype;c.draw=function(x,h,_,T,m,k){for(var S=!1,b=0;b<3;++b)S=S||m[b];if(S){var M=this.gl;M.enable(M.POLYGON_OFFSET_FILL),M.polygonOffset(1,2),this.shader.bind(),this.shader.uniforms={model:x,view:h,projection:_,bounds:T,enable:m,colors:k},this.vao.bind(),this.vao.draw(this.gl.TRIANGLES,36),this.vao.unbind(),M.disable(M.POLYGON_OFFSET_FILL)}},c.dispose=function(){this.vao.dispose(),this.buffer.dispose(),this.shader.dispose()};function g(x){for(var h=[],_=[],T=0,m=0;m<3;++m)for(var k=(m+1)%3,S=(m+2)%3,b=[0,0,0],M=[0,0,0],d=-1;d<=1;d+=2){_.push(T,T+2,T+1,T+1,T+2,T+3),b[m]=d,M[m]=d;for(var w=-1;w<=1;w+=2){b[k]=w;for(var y=-1;y<=1;y+=2)b[S]=y,h.push(b[0],b[1],b[2],M[0],M[1],M[2]),T+=1}var v=k;k=S,S=v}var A=l(x,new Float32Array(h)),p=l(x,new Uint16Array(_),x.ELEMENT_ARRAY_BUFFER),D=u(x,[{buffer:A,type:x.FLOAT,size:3,offset:0,stride:24},{buffer:A,type:x.FLOAT,size:3,offset:12,stride:24}],p),E=s(x);return E.attributes.position.location=0,E.attributes.normal.location=1,new f(x,A,D,E)}},6429(a,o,i){"use strict";a.exports=d;var l=i(8828),u=i(6760),s=i(5202),f=i(3250),c=new Array(16),g=new Array(8),x=new Array(8),h=new Array(3),_=[0,0,0];(function(){for(var w=0;w<8;++w)g[w]=[1,1,1,1],x[w]=[1,1,1]})();function T(w,y,v){for(var A=0;A<4;++A){w[A]=v[12+A];for(var p=0;p<3;++p)w[A]+=y[p]*v[4*p+A]}}var m=[[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 k(w){for(var y=0;yG&&(z|=1<G){z|=1<x[E][1])&&(ae=E);for(var Q=-1,E=0;E<3;++E){var te=ae^1<x[ue][0]&&(ue=te)}}var ee=S;ee[0]=ee[1]=ee[2]=0,ee[l.log2(Q^ae)]=ae&Q,ee[l.log2(ae^ue)]=ae&ue;var ie=ue^7;ie===z||ie===$?(ie=Q^7,ee[l.log2(ue^ie)]=ie&ue):ee[l.log2(Q^ie)]=ie&Q;for(var fe=b,we=z,I=0;I<3;++I)we&1<=0;--ee){var ae=Z[ue[ee]];y.push(te*ae[0],-te*ae[1],F)}}for(var A=[0,0,0],d=[0,0,0],D=[0,0,0],E=[0,0,0],R=1.25,z={breaklines:!0,bolds:!0,italics:!0,subscripts:!0,superscripts:!0},I=0;I<3;++I){D[I]=y.length/x|0,v(.5*(S[0][I]+S[1][I]),b[I],T[I],12,R,z),E[I]=(y.length/x|0)-D[I],A[I]=y.length/x|0;for(var P=0;P=0&&(x=c.length-p-1);var g=Math.pow(10,x),w=Math.round(s*f*g),M=w+"";if(M.indexOf("e")>=0)return M;var m=w/g,k=w%g;w<0?(m=-Math.ceil(m)|0,k=-k|0):(m=Math.floor(m)|0,k=k|0);var S=""+m;if(w<0&&(S="-"+S),x){for(var b=""+k;b.length=s[0][p];--w)x.push({x:w*f[p],text:i(f[p],w)});c.push(x)}return c}function u(s,f){for(var c=0;c<3;++c){if(s[c].length!==f[c].length)return!1;for(var p=0;pS)throw new Error("gl-buffer: If resizing buffer, must not specify offset");return m.bufferSubData(k,h,T),S}function g(m,k){for(var S=l.malloc(m.length,k),b=m.length,T=0;T=0;--b){if(k[b]!==S)return!1;S*=m[b]}return!0}p.update=function(m,k){if(typeof k!="number"&&(k=-1),this.bind(),typeof m=="object"&&typeof m.shape!="undefined"){var S=m.dtype;if(f.indexOf(S)<0&&(S="float32"),this.type===this.gl.ELEMENT_ARRAY_BUFFER){var b=gl.getExtension("OES_element_index_uint");b&&S!=="uint16"?S="uint32":S="uint16"}if(S===m.dtype&&w(m.shape,m.stride))m.offset===0&&m.data.length===m.shape[0]?this.length=x(this.gl,this.type,this.length,this.usage,m.data,k):this.length=x(this.gl,this.type,this.length,this.usage,m.data.subarray(m.offset,m.shape[0]),k);else{var T=l.malloc(m.size,S),h=s(T,m.shape);u.assign(h,m),k<0?this.length=x(this.gl,this.type,this.length,this.usage,T,k):this.length=x(this.gl,this.type,this.length,this.usage,T.subarray(0,m.size),k),l.free(T)}}else if(Array.isArray(m)){var _;this.type===this.gl.ELEMENT_ARRAY_BUFFER?_=g(m,"uint16"):_=g(m,"float32"),k<0?this.length=x(this.gl,this.type,this.length,this.usage,_,k):this.length=x(this.gl,this.type,this.length,this.usage,_.subarray(0,m.length),k),l.free(_)}else if(typeof m=="object"&&typeof m.length=="number")this.length=x(this.gl,this.type,this.length,this.usage,m,k);else if(typeof m=="number"||m===void 0){if(k>=0)throw new Error("gl-buffer: Cannot specify offset when resizing buffer");m=m|0,m<=0&&(m=1),this.gl.bufferData(this.type,m|0,this.usage),this.length=m}else throw new Error("gl-buffer: Invalid data type")};function M(m,k,S,b){if(S=S||m.ARRAY_BUFFER,b=b||m.DYNAMIC_DRAW,S!==m.ARRAY_BUFFER&&S!==m.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(b!==m.DYNAMIC_DRAW&&b!==m.STATIC_DRAW&&b!==m.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 T=m.createBuffer(),h=new c(m,S,T,0,b);return h.update(k),h}a.exports=M},6405(a,o,i){"use strict";var l=i(2931);a.exports=function(s,f){var c=s.positions,p=s.vectors,x={positions:[],vertexIntensity:[],vertexIntensityBounds:s.vertexIntensityBounds,vectors:[],cells:[],coneOffset:s.coneOffset,colormap:s.colormap};if(s.positions.length===0)return f&&(f[0]=[0,0,0],f[1]=[0,0,0]),x;for(var g=0,w=1/0,M=-1/0,m=1/0,k=-1/0,S=1/0,b=-1/0,T=null,h=null,_=[],y=1/0,v=!1,A=s.coneSizemode==="raw",d=0;dg&&(g=l.length(E)),d&&!A){var R=2*l.distance(T,D)/(l.length(h)+l.length(E));R?(y=Math.min(y,R),v=!1):v=!0}v||(T=D,h=E),_.push(E)}var z=[w,m,S],I=[M,k,b];f&&(f[0]=z,f[1]=I),g===0&&(g=1);var P=1/g;isFinite(y)||(y=1),x.vectorScale=y;var L=s.coneSize||(A?1:.5);s.absoluteConeSize&&(L=s.absoluteConeSize*P),x.coneScale=L;for(var d=0,F=0;d=1},m.isTransparent=function(){return this.opacity<1},m.pickSlots=1,m.setPickBase=function(_){this.pickId=_};function k(_){for(var y=g({colormap:_,nshades:256,format:"rgba"}),v=new Uint8Array(256*4),A=0;A<256;++A){for(var d=y[A],D=0;D<3;++D)v[4*A+D]=d[D];v[4*A+3]=d[3]*255}return x(v,[256,256,4],[4,0,1])}function S(_){for(var y=_.length,v=new Array(y),A=0;A0){var F=this.triShader;F.bind(),F.uniforms=R,this.triangleVAO.bind(),y.drawArrays(y.TRIANGLES,0,this.triangleCount*3),this.triangleVAO.unbind()}},m.drawPick=function(_){_=_||{};for(var y=this.gl,v=_.model||w,A=_.view||w,d=_.projection||w,D=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],E=0;E<3;++E)D[0][E]=Math.max(D[0][E],this.clipBounds[0][E]),D[1][E]=Math.min(D[1][E],this.clipBounds[1][E]);this._model=[].slice.call(v),this._view=[].slice.call(A),this._projection=[].slice.call(d),this._resolution=[y.drawingBufferWidth,y.drawingBufferHeight];var R={model:v,view:A,projection:d,clipBounds:D,tubeScale:this.tubeScale,vectorScale:this.vectorScale,coneScale:this.coneScale,coneOffset:this.coneOffset,pickId:this.pickId/255},z=this.pickShader;z.bind(),z.uniforms=R,this.triangleCount>0&&(this.triangleVAO.bind(),y.drawArrays(y.TRIANGLES,0,this.triangleCount*3),this.triangleVAO.unbind())},m.pick=function(_){if(!_||_.id!==this.pickId)return null;var y=_.value[0]+256*_.value[1]+65536*_.value[2],v=this.cells[y],A=this.positions[v[1]].slice(0,3),d={position:A,dataCoordinate:A,index:Math.floor(v[1]/48)};return this.traceType==="cone"?d.index=Math.floor(v[1]/48):this.traceType==="streamtube"&&(d.intensity=this.intensity[v[1]],d.velocity=this.vectors[v[1]].slice(0,3),d.divergence=this.vectors[v[1]][3],d.index=y),d},m.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 b(_,y){var v=l(_,y.meshShader.vertex,y.meshShader.fragment,null,y.meshShader.attributes);return v.attributes.position.location=0,v.attributes.color.location=2,v.attributes.uv.location=3,v.attributes.vector.location=4,v}function T(_,y){var v=l(_,y.pickShader.vertex,y.pickShader.fragment,null,y.pickShader.attributes);return v.attributes.position.location=0,v.attributes.id.location=1,v.attributes.vector.location=4,v}function h(_,y,v){var A=v.shaders;arguments.length===1&&(y=_,_=y.gl);var d=b(_,A),D=T(_,A),E=f(_,x(new Uint8Array([255,255,255,255]),[1,1,4]));E.generateMipmap(),E.minFilter=_.LINEAR_MIPMAP_LINEAR,E.magFilter=_.LINEAR;var R=u(_),z=u(_),I=u(_),P=u(_),L=u(_),F=s(_,[{buffer:R,type:_.FLOAT,size:4},{buffer:L,type:_.UNSIGNED_BYTE,size:4,normalized:!0},{buffer:I,type:_.FLOAT,size:4},{buffer:P,type:_.FLOAT,size:2},{buffer:z,type:_.FLOAT,size:4}]),B=new M(_,E,d,D,R,z,L,I,P,F,v.traceType||"cone");return B.update(y),B}a.exports=h},614(a,o,i){var l=i(3236),u=l([`precision highp float; +}`]);o.bg=function(_){return u(_,x,h,null,[{name:"position",type:"vec3"},{name:"normal",type:"vec3"}])}},4935(a,o,i){"use strict";a.exports=k;var l=i(2762),u=i(8116),s=i(4359),f=i(1879).Q,c=window||process.global||{},g=c.__TEXT_CACHE||{};c.__TEXT_CACHE={};var x=3;function h(S,b,M,d){this.gl=S,this.shader=b,this.buffer=M,this.vao=d,this.tickOffset=this.tickCount=this.labelOffset=this.labelCount=null}var _=h.prototype,T=[0,0];_.bind=function(S,b,M,d){this.vao.bind(),this.shader.bind();var w=this.shader.uniforms;w.model=S,w.view=b,w.projection=M,w.pixelScale=d,T[0]=this.gl.drawingBufferWidth,T[1]=this.gl.drawingBufferHeight,this.shader.uniforms.resolution=T},_.unbind=function(){this.vao.unbind()},_.update=function(S,b,M,d,w){var y=[];function v(I,B,O,G,J,j){var V=[O.style,O.weight,O.variant,O.family].join("_"),q=g[V];q||(q=g[V]={});var Z=q[B];Z||(Z=q[B]=m(B,{triangles:!0,font:O.family,fontStyle:O.style,fontWeight:O.weight,fontVariant:O.variant,textAlign:"center",textBaseline:"middle",lineSpacing:J,styletags:j}));for(var re=(G||12)/12,$=Z.positions,ae=Z.cells,Q=0,te=ae.length;Q=0;--ee){var ie=$[ue[ee]];y.push(re*ie[0],-re*ie[1],I)}}for(var A=[0,0,0],p=[0,0,0],D=[0,0,0],E=[0,0,0],R=1.25,F={breaklines:!0,bolds:!0,italics:!0,subscripts:!0,superscripts:!0},z=0;z<3;++z){D[z]=y.length/x|0,v(.5*(S[0][z]+S[1][z]),b[z],M[z],12,R,F),E[z]=(y.length/x|0)-D[z],A[z]=y.length/x|0;for(var P=0;P=0&&(x=c.length-g-1);var h=Math.pow(10,x),_=Math.round(s*f*h),T=_+"";if(T.indexOf("e")>=0)return T;var m=_/h,k=_%h;_<0?(m=-Math.ceil(m)|0,k=-k|0):(m=Math.floor(m)|0,k=k|0);var S=""+m;if(_<0&&(S="-"+S),x){for(var b=""+k;b.length=s[0][g];--_)x.push({x:_*f[g],text:i(f[g],_)});c.push(x)}return c}function u(s,f){for(var c=0;c<3;++c){if(s[c].length!==f[c].length)return!1;for(var g=0;gS)throw new Error("gl-buffer: If resizing buffer, must not specify offset");return m.bufferSubData(k,d,M),S}function h(m,k){for(var S=l.malloc(m.length,k),b=m.length,M=0;M=0;--b){if(k[b]!==S)return!1;S*=m[b]}return!0}g.update=function(m,k){if(typeof k!="number"&&(k=-1),this.bind(),typeof m=="object"&&typeof m.shape!="undefined"){var S=m.dtype;if(f.indexOf(S)<0&&(S="float32"),this.type===this.gl.ELEMENT_ARRAY_BUFFER){var b=gl.getExtension("OES_element_index_uint");b&&S!=="uint16"?S="uint32":S="uint16"}if(S===m.dtype&&_(m.shape,m.stride))m.offset===0&&m.data.length===m.shape[0]?this.length=x(this.gl,this.type,this.length,this.usage,m.data,k):this.length=x(this.gl,this.type,this.length,this.usage,m.data.subarray(m.offset,m.shape[0]),k);else{var M=l.malloc(m.size,S),d=s(M,m.shape);u.assign(d,m),k<0?this.length=x(this.gl,this.type,this.length,this.usage,M,k):this.length=x(this.gl,this.type,this.length,this.usage,M.subarray(0,m.size),k),l.free(M)}}else if(Array.isArray(m)){var w;this.type===this.gl.ELEMENT_ARRAY_BUFFER?w=h(m,"uint16"):w=h(m,"float32"),k<0?this.length=x(this.gl,this.type,this.length,this.usage,w,k):this.length=x(this.gl,this.type,this.length,this.usage,w.subarray(0,m.length),k),l.free(w)}else if(typeof m=="object"&&typeof m.length=="number")this.length=x(this.gl,this.type,this.length,this.usage,m,k);else if(typeof m=="number"||m===void 0){if(k>=0)throw new Error("gl-buffer: Cannot specify offset when resizing buffer");m=m|0,m<=0&&(m=1),this.gl.bufferData(this.type,m|0,this.usage),this.length=m}else throw new Error("gl-buffer: Invalid data type")};function T(m,k,S,b){if(S=S||m.ARRAY_BUFFER,b=b||m.DYNAMIC_DRAW,S!==m.ARRAY_BUFFER&&S!==m.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(b!==m.DYNAMIC_DRAW&&b!==m.STATIC_DRAW&&b!==m.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 M=m.createBuffer(),d=new c(m,S,M,0,b);return d.update(k),d}a.exports=T},6405(a,o,i){"use strict";var l=i(2931);a.exports=function(s,f){var c=s.positions,g=s.vectors,x={positions:[],vertexIntensity:[],vertexIntensityBounds:s.vertexIntensityBounds,vectors:[],cells:[],coneOffset:s.coneOffset,colormap:s.colormap};if(s.positions.length===0)return f&&(f[0]=[0,0,0],f[1]=[0,0,0]),x;for(var h=0,_=1/0,T=-1/0,m=1/0,k=-1/0,S=1/0,b=-1/0,M=null,d=null,w=[],y=1/0,v=!1,A=s.coneSizemode==="raw",p=0;ph&&(h=l.length(E)),p&&!A){var R=2*l.distance(M,D)/(l.length(d)+l.length(E));R?(y=Math.min(y,R),v=!1):v=!0}v||(M=D,d=E),w.push(E)}var F=[_,m,S],z=[T,k,b];f&&(f[0]=F,f[1]=z),h===0&&(h=1);var P=1/h;isFinite(y)||(y=1),x.vectorScale=y;var L=s.coneSize||(A?1:.5);s.absoluteConeSize&&(L=s.absoluteConeSize*P),x.coneScale=L;for(var p=0,I=0;p=1},m.isTransparent=function(){return this.opacity<1},m.pickSlots=1,m.setPickBase=function(w){this.pickId=w};function k(w){for(var y=h({colormap:w,nshades:256,format:"rgba"}),v=new Uint8Array(256*4),A=0;A<256;++A){for(var p=y[A],D=0;D<3;++D)v[4*A+D]=p[D];v[4*A+3]=p[3]*255}return x(v,[256,256,4],[4,0,1])}function S(w){for(var y=w.length,v=new Array(y),A=0;A0){var I=this.triShader;I.bind(),I.uniforms=R,this.triangleVAO.bind(),y.drawArrays(y.TRIANGLES,0,this.triangleCount*3),this.triangleVAO.unbind()}},m.drawPick=function(w){w=w||{};for(var y=this.gl,v=w.model||_,A=w.view||_,p=w.projection||_,D=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],E=0;E<3;++E)D[0][E]=Math.max(D[0][E],this.clipBounds[0][E]),D[1][E]=Math.min(D[1][E],this.clipBounds[1][E]);this._model=[].slice.call(v),this._view=[].slice.call(A),this._projection=[].slice.call(p),this._resolution=[y.drawingBufferWidth,y.drawingBufferHeight];var R={model:v,view:A,projection:p,clipBounds:D,tubeScale:this.tubeScale,vectorScale:this.vectorScale,coneScale:this.coneScale,coneOffset:this.coneOffset,pickId:this.pickId/255},F=this.pickShader;F.bind(),F.uniforms=R,this.triangleCount>0&&(this.triangleVAO.bind(),y.drawArrays(y.TRIANGLES,0,this.triangleCount*3),this.triangleVAO.unbind())},m.pick=function(w){if(!w||w.id!==this.pickId)return null;var y=w.value[0]+256*w.value[1]+65536*w.value[2],v=this.cells[y],A=this.positions[v[1]].slice(0,3),p={position:A,dataCoordinate:A,index:Math.floor(v[1]/48)};return this.traceType==="cone"?p.index=Math.floor(v[1]/48):this.traceType==="streamtube"&&(p.intensity=this.intensity[v[1]],p.velocity=this.vectors[v[1]].slice(0,3),p.divergence=this.vectors[v[1]][3],p.index=y),p},m.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 b(w,y){var v=l(w,y.meshShader.vertex,y.meshShader.fragment,null,y.meshShader.attributes);return v.attributes.position.location=0,v.attributes.color.location=2,v.attributes.uv.location=3,v.attributes.vector.location=4,v}function M(w,y){var v=l(w,y.pickShader.vertex,y.pickShader.fragment,null,y.pickShader.attributes);return v.attributes.position.location=0,v.attributes.id.location=1,v.attributes.vector.location=4,v}function d(w,y,v){var A=v.shaders;arguments.length===1&&(y=w,w=y.gl);var p=b(w,A),D=M(w,A),E=f(w,x(new Uint8Array([255,255,255,255]),[1,1,4]));E.generateMipmap(),E.minFilter=w.LINEAR_MIPMAP_LINEAR,E.magFilter=w.LINEAR;var R=u(w),F=u(w),z=u(w),P=u(w),L=u(w),I=s(w,[{buffer:R,type:w.FLOAT,size:4},{buffer:L,type:w.UNSIGNED_BYTE,size:4,normalized:!0},{buffer:z,type:w.FLOAT,size:4},{buffer:P,type:w.FLOAT,size:2},{buffer:F,type:w.FLOAT,size:4}]),B=new T(w,E,p,D,R,F,L,z,P,I,v.traceType||"cone");return B.update(y),B}a.exports=d},614(a,o,i){var l=i(3236),u=l([`precision highp float; precision highp float; #define GLSLIFY 1 @@ -577,7 +577,7 @@ void main() { if (outOfRange(clipBounds[0], clipBounds[1], f_position)) discard; gl_FragColor = vec4(pickId, f_id.xyz); -}`]);o.meshShader={vertex:u,fragment:s,attributes:[{name:"position",type:"vec4"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"},{name:"vector",type:"vec3"}]},o.pickShader={vertex:f,fragment:c,attributes:[{name:"position",type:"vec4"},{name:"id",type:"vec4"},{name:"vector",type:"vec3"}]}},737(a){a.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"}},5171(a,o,i){var l=i(737);a.exports=function(s){return l[s]}},9165(a,o,i){"use strict";a.exports=M;var l=i(2762),u=i(8116),s=i(3436),f=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function c(m,k,S,b){this.gl=m,this.shader=b,this.buffer=k,this.vao=S,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 p=c.prototype;p.isOpaque=function(){return!this.hasAlpha},p.isTransparent=function(){return this.hasAlpha},p.drawTransparent=p.draw=function(m){var k=this.gl,S=this.shader.uniforms;this.shader.bind();var b=S.view=m.view||f,T=S.projection=m.projection||f;S.model=m.model||f,S.clipBounds=this.clipBounds,S.opacity=this.opacity;var h=b[12],_=b[13],y=b[14],v=b[15],A=m._ortho||!1,d=A?2:1,D=d*this.pixelRatio*(T[3]*h+T[7]*_+T[11]*y+T[15]*v)/k.drawingBufferHeight;this.vao.bind();for(var E=0;E<3;++E)k.lineWidth(this.lineWidth[E]*this.pixelRatio),S.capSize=this.capSize[E]*D,this.lineCount[E]&&k.drawArrays(k.LINES,this.lineOffset[E],this.lineCount[E]);this.vao.unbind()};function x(m,k){for(var S=0;S<3;++S)m[0][S]=Math.min(m[0][S],k[S]),m[1][S]=Math.max(m[1][S],k[S])}var g=(function(){for(var m=new Array(3),k=0;k<3;++k){for(var S=[],b=1;b<=2;++b)for(var T=-1;T<=1;T+=2){var h=(b+k)%3,_=[0,0,0];_[h]=T,S.push(_)}m[k]=S}return m})();function w(m,k,S,b){for(var T=g[b],h=0;h0){var R=A.slice();R[y]+=D[1][y],T.push(A[0],A[1],A[2],E[0],E[1],E[2],E[3],0,0,0,R[0],R[1],R[2],E[0],E[1],E[2],E[3],0,0,0),x(this.bounds,R),_+=2+w(T,R,E,y)}}}this.lineCount[y]=_-this.lineOffset[y]}this.buffer.update(T)}},p.dispose=function(){this.shader.dispose(),this.buffer.dispose(),this.vao.dispose()};function M(m){var k=m.gl,S=l(k),b=u(k,[{buffer:S,type:k.FLOAT,size:3,offset:0,stride:40},{buffer:S,type:k.FLOAT,size:4,offset:12,stride:40},{buffer:S,type:k.FLOAT,size:3,offset:28,stride:40}]),T=s(k);T.attributes.position.location=0,T.attributes.color.location=1,T.attributes.offset.location=2;var h=new c(k,S,b,T);return h.update(m),h}},3436(a,o,i){"use strict";var l=i(3236),u=i(9405),s=l([`precision highp float; +}`]);o.meshShader={vertex:u,fragment:s,attributes:[{name:"position",type:"vec4"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"},{name:"vector",type:"vec3"}]},o.pickShader={vertex:f,fragment:c,attributes:[{name:"position",type:"vec4"},{name:"id",type:"vec4"},{name:"vector",type:"vec3"}]}},737(a){a.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"}},5171(a,o,i){var l=i(737);a.exports=function(s){return l[s]}},9165(a,o,i){"use strict";a.exports=T;var l=i(2762),u=i(8116),s=i(3436),f=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function c(m,k,S,b){this.gl=m,this.shader=b,this.buffer=k,this.vao=S,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 g=c.prototype;g.isOpaque=function(){return!this.hasAlpha},g.isTransparent=function(){return this.hasAlpha},g.drawTransparent=g.draw=function(m){var k=this.gl,S=this.shader.uniforms;this.shader.bind();var b=S.view=m.view||f,M=S.projection=m.projection||f;S.model=m.model||f,S.clipBounds=this.clipBounds,S.opacity=this.opacity;var d=b[12],w=b[13],y=b[14],v=b[15],A=m._ortho||!1,p=A?2:1,D=p*this.pixelRatio*(M[3]*d+M[7]*w+M[11]*y+M[15]*v)/k.drawingBufferHeight;this.vao.bind();for(var E=0;E<3;++E)k.lineWidth(this.lineWidth[E]*this.pixelRatio),S.capSize=this.capSize[E]*D,this.lineCount[E]&&k.drawArrays(k.LINES,this.lineOffset[E],this.lineCount[E]);this.vao.unbind()};function x(m,k){for(var S=0;S<3;++S)m[0][S]=Math.min(m[0][S],k[S]),m[1][S]=Math.max(m[1][S],k[S])}var h=(function(){for(var m=new Array(3),k=0;k<3;++k){for(var S=[],b=1;b<=2;++b)for(var M=-1;M<=1;M+=2){var d=(b+k)%3,w=[0,0,0];w[d]=M,S.push(w)}m[k]=S}return m})();function _(m,k,S,b){for(var M=h[b],d=0;d0){var R=A.slice();R[y]+=D[1][y],M.push(A[0],A[1],A[2],E[0],E[1],E[2],E[3],0,0,0,R[0],R[1],R[2],E[0],E[1],E[2],E[3],0,0,0),x(this.bounds,R),w+=2+_(M,R,E,y)}}}this.lineCount[y]=w-this.lineOffset[y]}this.buffer.update(M)}},g.dispose=function(){this.shader.dispose(),this.buffer.dispose(),this.vao.dispose()};function T(m){var k=m.gl,S=l(k),b=u(k,[{buffer:S,type:k.FLOAT,size:3,offset:0,stride:40},{buffer:S,type:k.FLOAT,size:4,offset:12,stride:40},{buffer:S,type:k.FLOAT,size:3,offset:28,stride:40}]),M=s(k);M.attributes.position.location=0,M.attributes.color.location=1,M.attributes.offset.location=2;var d=new c(k,S,b,M);return d.update(m),d}},3436(a,o,i){"use strict";var l=i(3236),u=i(9405),s=l([`precision highp float; #define GLSLIFY 1 attribute vec3 position, offset; @@ -628,11 +628,11 @@ void main() { ) discard; gl_FragColor = opacity * fragColor; -}`]);a.exports=function(c){return u(c,s,f,null,[{name:"position",type:"vec3"},{name:"color",type:"vec4"},{name:"offset",type:"vec3"}])}},2260(a,o,i){"use strict";var l=i(7766);a.exports=_;var u=null,s,f,c,p;function x(y){var v=y.getParameter(y.FRAMEBUFFER_BINDING),A=y.getParameter(y.RENDERBUFFER_BINDING),d=y.getParameter(y.TEXTURE_BINDING_2D);return[v,A,d]}function g(y,v){y.bindFramebuffer(y.FRAMEBUFFER,v[0]),y.bindRenderbuffer(y.RENDERBUFFER,v[1]),y.bindTexture(y.TEXTURE_2D,v[2])}function w(y,v){var A=y.getParameter(v.MAX_COLOR_ATTACHMENTS_WEBGL);u=new Array(A+1);for(var d=0;d<=A;++d){for(var D=new Array(A),E=0;E1&&z.drawBuffersWEBGL(u[R]);var B=A.getExtension("WEBGL_depth_texture");B?I?y.depth=m(A,D,E,B.UNSIGNED_INT_24_8_WEBGL,A.DEPTH_STENCIL,A.DEPTH_STENCIL_ATTACHMENT):P&&(y.depth=m(A,D,E,A.UNSIGNED_SHORT,A.DEPTH_COMPONENT,A.DEPTH_ATTACHMENT)):P&&I?y._depth_rb=k(A,D,E,A.DEPTH_STENCIL,A.DEPTH_STENCIL_ATTACHMENT):P?y._depth_rb=k(A,D,E,A.DEPTH_COMPONENT16,A.DEPTH_ATTACHMENT):I&&(y._depth_rb=k(A,D,E,A.STENCIL_INDEX,A.STENCIL_ATTACHMENT));var O=A.checkFramebufferStatus(A.FRAMEBUFFER);if(O!==A.FRAMEBUFFER_COMPLETE){y._destroyed=!0,A.bindFramebuffer(A.FRAMEBUFFER,null),A.deleteFramebuffer(y.handle),y.handle=null,y.depth&&(y.depth.dispose(),y.depth=null),y._depth_rb&&(A.deleteRenderbuffer(y._depth_rb),y._depth_rb=null);for(var F=0;FD||A<0||A>D)throw new Error("gl-fbo: Can't resize FBO, invalid dimensions");y._shape[0]=v,y._shape[1]=A;for(var E=x(d),R=0;RE||A<0||A>E)throw new Error("gl-fbo: Parameters are too large for FBO");d=d||{};var R=1;if("color"in d){if(R=Math.max(d.color|0,0),R<0)throw new Error("gl-fbo: Must specify a nonnegative number of colors");if(R>1)if(D){if(R>y.getParameter(D.MAX_COLOR_ATTACHMENTS_WEBGL))throw new Error("gl-fbo: Context does not support "+R+" draw buffers")}else throw new Error("gl-fbo: Multiple draw buffer extension not supported")}var z=y.UNSIGNED_BYTE,I=y.getExtension("OES_texture_float");if(d.float&&R>0){if(!I)throw new Error("gl-fbo: Context does not support floating point textures");z=y.FLOAT}else d.preferFloat&&R>0&&I&&(z=y.FLOAT);var P=!0;"depth"in d&&(P=!!d.depth);var L=!1;return"stencil"in d&&(L=!!d.stencil),new b(y,v,A,z,R,P,L,D)}},2992(a,o,i){var l=i(3387).sprintf,u=i(5171),s=i(1848),f=i(1085);a.exports=c;function c(p,x,g){"use strict";var w=s(x)||"of unknown name (see npm glsl-shader-name)",M="unknown type";g!==void 0&&(M=g===u.FRAGMENT_SHADER?"fragment":"vertex");for(var m=l(`Error compiling %s shader %s: -`,M,w),k=l("%s%s",m,p),S=p.split(` -`),b={},T=0;T1&&F.drawBuffersWEBGL(u[R]);var B=A.getExtension("WEBGL_depth_texture");B?z?y.depth=m(A,D,E,B.UNSIGNED_INT_24_8_WEBGL,A.DEPTH_STENCIL,A.DEPTH_STENCIL_ATTACHMENT):P&&(y.depth=m(A,D,E,A.UNSIGNED_SHORT,A.DEPTH_COMPONENT,A.DEPTH_ATTACHMENT)):P&&z?y._depth_rb=k(A,D,E,A.DEPTH_STENCIL,A.DEPTH_STENCIL_ATTACHMENT):P?y._depth_rb=k(A,D,E,A.DEPTH_COMPONENT16,A.DEPTH_ATTACHMENT):z&&(y._depth_rb=k(A,D,E,A.STENCIL_INDEX,A.STENCIL_ATTACHMENT));var O=A.checkFramebufferStatus(A.FRAMEBUFFER);if(O!==A.FRAMEBUFFER_COMPLETE){y._destroyed=!0,A.bindFramebuffer(A.FRAMEBUFFER,null),A.deleteFramebuffer(y.handle),y.handle=null,y.depth&&(y.depth.dispose(),y.depth=null),y._depth_rb&&(A.deleteRenderbuffer(y._depth_rb),y._depth_rb=null);for(var I=0;ID||A<0||A>D)throw new Error("gl-fbo: Can't resize FBO, invalid dimensions");y._shape[0]=v,y._shape[1]=A;for(var E=x(p),R=0;RE||A<0||A>E)throw new Error("gl-fbo: Parameters are too large for FBO");p=p||{};var R=1;if("color"in p){if(R=Math.max(p.color|0,0),R<0)throw new Error("gl-fbo: Must specify a nonnegative number of colors");if(R>1)if(D){if(R>y.getParameter(D.MAX_COLOR_ATTACHMENTS_WEBGL))throw new Error("gl-fbo: Context does not support "+R+" draw buffers")}else throw new Error("gl-fbo: Multiple draw buffer extension not supported")}var F=y.UNSIGNED_BYTE,z=y.getExtension("OES_texture_float");if(p.float&&R>0){if(!z)throw new Error("gl-fbo: Context does not support floating point textures");F=y.FLOAT}else p.preferFloat&&R>0&&z&&(F=y.FLOAT);var P=!0;"depth"in p&&(P=!!p.depth);var L=!1;return"stencil"in p&&(L=!!p.stencil),new b(y,v,A,F,R,P,L,D)}},2992(a,o,i){var l=i(3387).sprintf,u=i(5171),s=i(1848),f=i(1085);a.exports=c;function c(g,x,h){"use strict";var _=s(x)||"of unknown name (see npm glsl-shader-name)",T="unknown type";h!==void 0&&(T=h===u.FRAGMENT_SHADER?"fragment":"vertex");for(var m=l(`Error compiling %s shader %s: +`,T,_),k=l("%s%s",m,g),S=g.split(` +`),b={},M=0;M0){for(var G=0;G<24;++G)E.push(E[E.length-12]);P+=2,V=!0}continue e}L[0][d]=Math.min(L[0][d],K[d],j[d]),L[1][d]=Math.max(L[1][d],K[d],j[d])}var q,J;Array.isArray(B[0])?(q=B.length>A-1?B[A-1]:B.length>0?B[B.length-1]:[0,0,0,1],J=B.length>A?B[A]:B.length>0?B[B.length-1]:[0,0,0,1]):q=J=B,q.length===3&&(q=[q[0],q[1],q[2],1]),J.length===3&&(J=[J[0],J[1],J[2],1]),!this.hasAlpha&&q[3]<1&&(this.hasAlpha=!0);var te;Array.isArray(O)?te=O.length>A-1?O[A-1]:O.length>0?O[O.length-1]:[0,0,0,1]:te=O;var Z=I;if(I+=S(K,j),V){for(d=0;d<2;++d)E.push(K[0],K[1],K[2],j[0],j[1],j[2],Z,te,q[0],q[1],q[2],q[3]);P+=2,V=!1}E.push(K[0],K[1],K[2],j[0],j[1],j[2],Z,te,q[0],q[1],q[2],q[3],K[0],K[1],K[2],j[0],j[1],j[2],Z,-te,q[0],q[1],q[2],q[3],j[0],j[1],j[2],K[0],K[1],K[2],I,-te,J[0],J[1],J[2],J[3],j[0],j[1],j[2],K[0],K[1],K[2],I,te,J[0],J[1],J[2],J[3]),P+=4}}if(this.buffer.update(E),R.push(I),z.push(F[F.length-1].slice()),this.bounds=L,this.vertexCount=P,this.points=z,this.arcLength=R,"dashes"in v){var ie=v.dashes,Q=ie.slice();for(Q.unshift(0),A=1;A1.0001)return null;d+=A[T]}return Math.abs(d-1)>.001?null:[h,p(g,A),A]}},840(a,o,i){var l=i(3236),u=l([`precision highp float; +}`]),g=[{name:"position",type:"vec3"},{name:"nextPosition",type:"vec3"},{name:"arcLength",type:"float"},{name:"lineWidth",type:"float"},{name:"color",type:"vec4"}];o.createShader=function(x){return u(x,s,f,null,g)},o.createPickShader=function(x){return u(x,s,c,null,g)}},5714(a,o,i){"use strict";a.exports=y;var l=i(2762),u=i(8116),s=i(7766),f=new Uint8Array(4),c=new Float32Array(f.buffer);function g(v,A,p,D){return f[0]=D,f[1]=p,f[2]=A,f[3]=v,c[0]}var x=i(2478),h=i(9618),_=i(7319),T=_.createShader,m=_.createPickShader,k=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function S(v,A){for(var p=0,D=0;D<3;++D){var E=v[D]-A[D];p+=E*E}return Math.sqrt(p)}function b(v){for(var A=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],p=0;p<3;++p)A[0][p]=Math.max(v[0][p],A[0][p]),A[1][p]=Math.min(v[1][p],A[1][p]);return A}function M(v,A,p,D){this.arcLength=v,this.position=A,this.index=p,this.dataCoordinate=D}function d(v,A,p,D,E,R){this.gl=v,this.shader=A,this.pickShader=p,this.buffer=D,this.vao=E,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=R,this.dashScale=1,this.opacity=1,this.hasAlpha=!1,this.dirty=!0,this.pixelRatio=1}var w=d.prototype;w.isTransparent=function(){return this.hasAlpha},w.isOpaque=function(){return!this.hasAlpha},w.pickSlots=1,w.setPickBase=function(v){this.pickId=v},w.drawTransparent=w.draw=function(v){if(this.vertexCount){var A=this.gl,p=this.shader,D=this.vao;p.bind(),p.uniforms={model:v.model||k,view:v.view||k,projection:v.projection||k,clipBounds:b(this.clipBounds),dashTexture:this.texture.bind(),dashScale:this.dashScale/this.arcLength[this.arcLength.length-1],opacity:this.opacity,screenShape:[A.drawingBufferWidth,A.drawingBufferHeight],pixelRatio:this.pixelRatio},D.bind(),D.draw(A.TRIANGLE_STRIP,this.vertexCount),D.unbind()}},w.drawPick=function(v){if(this.vertexCount){var A=this.gl,p=this.pickShader,D=this.vao;p.bind(),p.uniforms={model:v.model||k,view:v.view||k,projection:v.projection||k,pickId:this.pickId,clipBounds:b(this.clipBounds),screenShape:[A.drawingBufferWidth,A.drawingBufferHeight],pixelRatio:this.pixelRatio},D.bind(),D.draw(A.TRIANGLE_STRIP,this.vertexCount),D.unbind()}},w.update=function(v){var A,p;this.dirty=!0;var D=!!v.connectGaps;"dashScale"in v&&(this.dashScale=v.dashScale),this.hasAlpha=!1,"opacity"in v&&(this.opacity=+v.opacity,this.opacity<1&&(this.hasAlpha=!0));var E=[],R=[],F=[],z=0,P=0,L=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],I=v.position||v.positions;if(I){var B=v.color||v.colors||[0,0,0,1],O=v.lineWidth||1,G=!1;e:for(A=1;A0){for(var V=0;V<24;++V)E.push(E[E.length-12]);P+=2,G=!0}continue e}L[0][p]=Math.min(L[0][p],J[p],j[p]),L[1][p]=Math.max(L[1][p],J[p],j[p])}var q,Z;Array.isArray(B[0])?(q=B.length>A-1?B[A-1]:B.length>0?B[B.length-1]:[0,0,0,1],Z=B.length>A?B[A]:B.length>0?B[B.length-1]:[0,0,0,1]):q=Z=B,q.length===3&&(q=[q[0],q[1],q[2],1]),Z.length===3&&(Z=[Z[0],Z[1],Z[2],1]),!this.hasAlpha&&q[3]<1&&(this.hasAlpha=!0);var re;Array.isArray(O)?re=O.length>A-1?O[A-1]:O.length>0?O[O.length-1]:[0,0,0,1]:re=O;var $=z;if(z+=S(J,j),G){for(p=0;p<2;++p)E.push(J[0],J[1],J[2],j[0],j[1],j[2],$,re,q[0],q[1],q[2],q[3]);P+=2,G=!1}E.push(J[0],J[1],J[2],j[0],j[1],j[2],$,re,q[0],q[1],q[2],q[3],J[0],J[1],J[2],j[0],j[1],j[2],$,-re,q[0],q[1],q[2],q[3],j[0],j[1],j[2],J[0],J[1],J[2],z,-re,Z[0],Z[1],Z[2],Z[3],j[0],j[1],j[2],J[0],J[1],J[2],z,re,Z[0],Z[1],Z[2],Z[3]),P+=4}}if(this.buffer.update(E),R.push(z),F.push(I[I.length-1].slice()),this.bounds=L,this.vertexCount=P,this.points=F,this.arcLength=R,"dashes"in v){var ae=v.dashes,Q=ae.slice();for(Q.unshift(0),A=1;A1.0001)return null;p+=A[M]}return Math.abs(p-1)>.001?null:[d,g(h,A),A]}},840(a,o,i){var l=i(3236),u=l([`precision highp float; #define GLSLIFY 1 attribute vec3 position, normal; @@ -993,7 +993,7 @@ void main() { if (outOfRange(clipBounds[0], clipBounds[1], f_data)) discard; gl_FragColor = f_color * texture2D(texture, f_uv) * opacity; -}`]),p=l([`precision highp float; +}`]),g=l([`precision highp float; #define GLSLIFY 1 bool outOfRange(float a, float b, float p) { @@ -1052,7 +1052,7 @@ void main() { discard; } gl_FragColor = f_color * texture2D(texture, f_uv) * opacity; -}`]),g=l([`precision highp float; +}`]),h=l([`precision highp float; #define GLSLIFY 1 attribute vec3 position; @@ -1067,7 +1067,7 @@ void main() { gl_Position = projection * (view * (model * vec4(position, 1.0))); f_id = id; f_position = position; -}`]),w=l([`precision highp float; +}`]),_=l([`precision highp float; #define GLSLIFY 1 bool outOfRange(float a, float b, float p) { @@ -1100,7 +1100,7 @@ void main() { if (outOfRange(clipBounds[0], clipBounds[1], f_position)) discard; gl_FragColor = vec4(pickId, f_id.xyz); -}`]),M=l([`precision highp float; +}`]),T=l([`precision highp float; #define GLSLIFY 1 bool outOfRange(float a, float b, float p) { @@ -1160,7 +1160,7 @@ uniform vec3 contourColor; void main() { gl_FragColor = vec4(contourColor, 1.0); } -`]);o.meshShader={vertex:u,fragment:s,attributes:[{name:"position",type:"vec3"},{name:"normal",type:"vec3"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"}]},o.wireShader={vertex:f,fragment:c,attributes:[{name:"position",type:"vec3"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"}]},o.pointShader={vertex:p,fragment:x,attributes:[{name:"position",type:"vec3"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"},{name:"pointSize",type:"float"}]},o.pickShader={vertex:g,fragment:w,attributes:[{name:"position",type:"vec3"},{name:"id",type:"vec4"}]},o.pointPickShader={vertex:M,fragment:w,attributes:[{name:"position",type:"vec3"},{name:"pointSize",type:"float"},{name:"id",type:"vec4"}]},o.contourShader={vertex:m,fragment:k,attributes:[{name:"position",type:"vec3"}]}},7201(a,o,i){"use strict";var l=1e-6,u=1e-6,s=i(9405),f=i(2762),c=i(8116),p=i(7766),x=i(8406),g=i(6760),w=i(7608),M=i(9618),m=i(6729),k=i(7765),S=i(1888),b=i(840),T=i(7626),h=b.meshShader,_=b.wireShader,y=b.pointShader,v=b.pickShader,A=b.pointPickShader,d=b.contourShader,D=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function E(G,q,J,te,Z,ie,Q,re,ue,ee,ae,ce,Te,ke,Se,ge,Le,Ce,le,Y,$,pe,oe,ve,he,me,be){this.gl=G,this.pixelRatio=1,this.cells=[],this.positions=[],this.intensity=[],this.texture=q,this.dirty=!0,this.triShader=J,this.lineShader=te,this.pointShader=Z,this.pickShader=ie,this.pointPickShader=Q,this.contourShader=re,this.trianglePositions=ue,this.triangleColors=ae,this.triangleNormals=Te,this.triangleUVs=ce,this.triangleIds=ee,this.triangleVAO=ke,this.triangleCount=0,this.lineWidth=1,this.edgePositions=Se,this.edgeColors=Le,this.edgeUVs=Ce,this.edgeIds=ge,this.edgeVAO=le,this.edgeCount=0,this.pointPositions=Y,this.pointColors=pe,this.pointUVs=oe,this.pointSizes=ve,this.pointIds=$,this.pointVAO=he,this.pointCount=0,this.contourLineWidth=1,this.contourPositions=me,this.contourVAO=be,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=D,this._view=D,this._projection=D,this._resolution=[1,1]}var R=E.prototype;R.isOpaque=function(){return!this.hasAlpha},R.isTransparent=function(){return this.hasAlpha},R.pickSlots=1,R.setPickBase=function(G){this.pickId=G};function z(G,q){if(!q||!q.length)return 1;for(var J=0;JG&&J>0){var te=(q[J][0]-G)/(q[J][0]-q[J-1][0]);return q[J][1]*(1-te)+te*q[J-1][1]}}return 1}function I(G,q){for(var J=m({colormap:G,nshades:256,format:"rgba"}),te=new Uint8Array(256*4),Z=0;Z<256;++Z){for(var ie=J[Z],Q=0;Q<3;++Q)te[4*Z+Q]=ie[Q];q?te[4*Z+3]=255*z(Z/255,q):te[4*Z+3]=255*ie[3]}return M(te,[256,256,4],[4,0,1])}function P(G){for(var q=G.length,J=new Array(q),te=0;te0){var Te=this.triShader;Te.bind(),Te.uniforms=re,this.triangleVAO.bind(),q.drawArrays(q.TRIANGLES,0,this.triangleCount*3),this.triangleVAO.unbind()}if(this.edgeCount>0&&this.lineWidth>0){var Te=this.lineShader;Te.bind(),Te.uniforms=re,this.edgeVAO.bind(),q.lineWidth(this.lineWidth*this.pixelRatio),q.drawArrays(q.LINES,0,this.edgeCount*2),this.edgeVAO.unbind()}if(this.pointCount>0){var Te=this.pointShader;Te.bind(),Te.uniforms=re,this.pointVAO.bind(),q.drawArrays(q.POINTS,0,this.pointCount),this.pointVAO.unbind()}if(this.contourEnable&&this.contourCount>0&&this.contourLineWidth>0){var Te=this.contourShader;Te.bind(),Te.uniforms=re,this.contourVAO.bind(),q.drawArrays(q.LINES,0,this.contourCount),this.contourVAO.unbind()}},R.drawPick=function(G){G=G||{};for(var q=this.gl,J=G.model||D,te=G.view||D,Z=G.projection||D,ie=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],Q=0;Q<3;++Q)ie[0][Q]=Math.max(ie[0][Q],this.clipBounds[0][Q]),ie[1][Q]=Math.min(ie[1][Q],this.clipBounds[1][Q]);this._model=[].slice.call(J),this._view=[].slice.call(te),this._projection=[].slice.call(Z),this._resolution=[q.drawingBufferWidth,q.drawingBufferHeight];var re={model:J,view:te,projection:Z,clipBounds:ie,pickId:this.pickId/255},ue=this.pickShader;if(ue.bind(),ue.uniforms=re,this.triangleCount>0&&(this.triangleVAO.bind(),q.drawArrays(q.TRIANGLES,0,this.triangleCount*3),this.triangleVAO.unbind()),this.edgeCount>0&&(this.edgeVAO.bind(),q.lineWidth(this.lineWidth*this.pixelRatio),q.drawArrays(q.LINES,0,this.edgeCount*2),this.edgeVAO.unbind()),this.pointCount>0){var ue=this.pointPickShader;ue.bind(),ue.uniforms=re,this.pointVAO.bind(),q.drawArrays(q.POINTS,0,this.pointCount),this.pointVAO.unbind()}},R.pick=function(G){if(!G||G.id!==this.pickId)return null;for(var q=G.value[0]+256*G.value[1]+65536*G.value[2],J=this.cells[q],te=this.positions,Z=new Array(J.length),ie=0;ieMath.abs(v))m.rotate(D,0,0,-y*A*Math.PI*h.rotateSpeed/window.innerWidth);else if(!h._ortho){var E=-h.zoomSpeed*d*v/window.innerHeight*(D-m.lastT())/20;m.pan(D,0,0,S*(Math.exp(E)-1))}}},!0)},h.enableMouseListeners(),h}},799(a,o,i){var l=i(3236),u=i(9405),s=l([`precision mediump float; +`]);o.meshShader={vertex:u,fragment:s,attributes:[{name:"position",type:"vec3"},{name:"normal",type:"vec3"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"}]},o.wireShader={vertex:f,fragment:c,attributes:[{name:"position",type:"vec3"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"}]},o.pointShader={vertex:g,fragment:x,attributes:[{name:"position",type:"vec3"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"},{name:"pointSize",type:"float"}]},o.pickShader={vertex:h,fragment:_,attributes:[{name:"position",type:"vec3"},{name:"id",type:"vec4"}]},o.pointPickShader={vertex:T,fragment:_,attributes:[{name:"position",type:"vec3"},{name:"pointSize",type:"float"},{name:"id",type:"vec4"}]},o.contourShader={vertex:m,fragment:k,attributes:[{name:"position",type:"vec3"}]}},7201(a,o,i){"use strict";var l=1e-6,u=1e-6,s=i(9405),f=i(2762),c=i(8116),g=i(7766),x=i(8406),h=i(6760),_=i(7608),T=i(9618),m=i(6729),k=i(7765),S=i(1888),b=i(840),M=i(7626),d=b.meshShader,w=b.wireShader,y=b.pointShader,v=b.pickShader,A=b.pointPickShader,p=b.contourShader,D=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function E(V,q,Z,re,$,ae,Q,te,ue,ee,ie,fe,we,Te,ke,ge,Ee,Le,se,X,K,ye,oe,de,pe,me,Se){this.gl=V,this.pixelRatio=1,this.cells=[],this.positions=[],this.intensity=[],this.texture=q,this.dirty=!0,this.triShader=Z,this.lineShader=re,this.pointShader=$,this.pickShader=ae,this.pointPickShader=Q,this.contourShader=te,this.trianglePositions=ue,this.triangleColors=ie,this.triangleNormals=we,this.triangleUVs=fe,this.triangleIds=ee,this.triangleVAO=Te,this.triangleCount=0,this.lineWidth=1,this.edgePositions=ke,this.edgeColors=Ee,this.edgeUVs=Le,this.edgeIds=ge,this.edgeVAO=se,this.edgeCount=0,this.pointPositions=X,this.pointColors=ye,this.pointUVs=oe,this.pointSizes=de,this.pointIds=K,this.pointVAO=pe,this.pointCount=0,this.contourLineWidth=1,this.contourPositions=me,this.contourVAO=Se,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=D,this._view=D,this._projection=D,this._resolution=[1,1]}var R=E.prototype;R.isOpaque=function(){return!this.hasAlpha},R.isTransparent=function(){return this.hasAlpha},R.pickSlots=1,R.setPickBase=function(V){this.pickId=V};function F(V,q){if(!q||!q.length)return 1;for(var Z=0;ZV&&Z>0){var re=(q[Z][0]-V)/(q[Z][0]-q[Z-1][0]);return q[Z][1]*(1-re)+re*q[Z-1][1]}}return 1}function z(V,q){for(var Z=m({colormap:V,nshades:256,format:"rgba"}),re=new Uint8Array(256*4),$=0;$<256;++$){for(var ae=Z[$],Q=0;Q<3;++Q)re[4*$+Q]=ae[Q];q?re[4*$+3]=255*F($/255,q):re[4*$+3]=255*ae[3]}return T(re,[256,256,4],[4,0,1])}function P(V){for(var q=V.length,Z=new Array(q),re=0;re0){var we=this.triShader;we.bind(),we.uniforms=te,this.triangleVAO.bind(),q.drawArrays(q.TRIANGLES,0,this.triangleCount*3),this.triangleVAO.unbind()}if(this.edgeCount>0&&this.lineWidth>0){var we=this.lineShader;we.bind(),we.uniforms=te,this.edgeVAO.bind(),q.lineWidth(this.lineWidth*this.pixelRatio),q.drawArrays(q.LINES,0,this.edgeCount*2),this.edgeVAO.unbind()}if(this.pointCount>0){var we=this.pointShader;we.bind(),we.uniforms=te,this.pointVAO.bind(),q.drawArrays(q.POINTS,0,this.pointCount),this.pointVAO.unbind()}if(this.contourEnable&&this.contourCount>0&&this.contourLineWidth>0){var we=this.contourShader;we.bind(),we.uniforms=te,this.contourVAO.bind(),q.drawArrays(q.LINES,0,this.contourCount),this.contourVAO.unbind()}},R.drawPick=function(V){V=V||{};for(var q=this.gl,Z=V.model||D,re=V.view||D,$=V.projection||D,ae=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],Q=0;Q<3;++Q)ae[0][Q]=Math.max(ae[0][Q],this.clipBounds[0][Q]),ae[1][Q]=Math.min(ae[1][Q],this.clipBounds[1][Q]);this._model=[].slice.call(Z),this._view=[].slice.call(re),this._projection=[].slice.call($),this._resolution=[q.drawingBufferWidth,q.drawingBufferHeight];var te={model:Z,view:re,projection:$,clipBounds:ae,pickId:this.pickId/255},ue=this.pickShader;if(ue.bind(),ue.uniforms=te,this.triangleCount>0&&(this.triangleVAO.bind(),q.drawArrays(q.TRIANGLES,0,this.triangleCount*3),this.triangleVAO.unbind()),this.edgeCount>0&&(this.edgeVAO.bind(),q.lineWidth(this.lineWidth*this.pixelRatio),q.drawArrays(q.LINES,0,this.edgeCount*2),this.edgeVAO.unbind()),this.pointCount>0){var ue=this.pointPickShader;ue.bind(),ue.uniforms=te,this.pointVAO.bind(),q.drawArrays(q.POINTS,0,this.pointCount),this.pointVAO.unbind()}},R.pick=function(V){if(!V||V.id!==this.pickId)return null;for(var q=V.value[0]+256*V.value[1]+65536*V.value[2],Z=this.cells[q],re=this.positions,$=new Array(Z.length),ae=0;aeMath.abs(v))m.rotate(D,0,0,-y*A*Math.PI*d.rotateSpeed/window.innerWidth);else if(!d._ortho){var E=-d.zoomSpeed*p*v/window.innerHeight*(D-m.lastT())/20;m.pan(D,0,0,S*(Math.exp(E)-1))}}},!0)},d.enableMouseListeners(),d}},799(a,o,i){var l=i(3236),u=i(9405),s=l([`precision mediump float; #define GLSLIFY 1 attribute vec2 position; varying vec2 uv; @@ -1176,7 +1176,7 @@ varying vec2 uv; void main() { vec4 accum = texture2D(accumBuffer, 0.5 * (uv + 1.0)); gl_FragColor = min(vec4(1,1,1,1), accum); -}`]);a.exports=function(c){return u(c,s,f,null,[{name:"position",type:"vec2"}])}},4100(a,o,i){"use strict";var l=i(4437),u=i(3837),s=i(5445),f=i(4449),c=i(3589),p=i(2260),x=i(7169),g=i(351),w=i(4772),M=i(4040),m=i(799),k=i(2431)({tablet:!0,featureDetect:!0});a.exports={createScene:_,createCamera:l};function S(){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 b(v,A){var d=null;try{d=v.getContext("webgl",A),d||(d=v.getContext("experimental-webgl",A))}catch(D){return null}return d}function T(v){var A=Math.round(Math.log(Math.abs(v))/Math.log(10));if(A<0){var d=Math.round(Math.pow(10,-A));return Math.ceil(v*d)/d}else if(A>0){var d=Math.round(Math.pow(10,A));return Math.ceil(v/d)*d}return Math.ceil(v)}function h(v){return typeof v=="boolean"?v:!0}function _(v){v=v||{},v.camera=v.camera||{};var A=v.canvas;if(!A)if(A=document.createElement("canvas"),v.container){var d=v.container;d.appendChild(A)}else document.body.appendChild(A);var D=v.gl;if(D||(v.glOptions&&(k=!!v.glOptions.preserveDrawingBuffer),D=b(A,v.glOptions||{premultipliedAlpha:!0,antialias:!0,preserveDrawingBuffer:k})),!D)throw new Error("webgl not supported");var E=v.bounds||[[-10,-10,-10],[10,10,10]],R=new S,z=p(D,D.drawingBufferWidth,D.drawingBufferHeight,{preferFloat:!k}),I=m(D),P=v.cameraObject&&v.cameraObject._ortho===!0||v.camera.projection&&v.camera.projection.type==="orthographic"||!1,L={eye:v.camera.eye||[2,0,0],center:v.camera.center||[0,0,0],up:v.camera.up||[0,1,0],zoomMin:v.camera.zoomMax||.1,zoomMax:v.camera.zoomMin||100,mode:v.camera.mode||"turntable",_ortho:P},F=v.axes||{},B=u(D,F);B.enable=!F.disable;var O=v.spikes||{},V=f(D,O),K=[],j=[],G=[],q=[],J=!0,Q=!0,te=new Array(16),Z=new Array(16),ie={view:null,projection:te,model:Z,_ortho:!1},Q=!0,re=[D.drawingBufferWidth,D.drawingBufferHeight],ue=v.cameraObject||l(A,L),ee={gl:D,contextLost:!1,pixelRatio:v.pixelRatio||1,canvas:A,selection:R,camera:ue,axes:B,axesPixels:null,spikes:V,bounds:E,objects:K,shape:re,aspect:v.aspectRatio||[1,1,1],pickRadius:v.pickRadius||10,zNear:v.zNear||.01,zFar:v.zFar||1e3,fovy:v.fovy||Math.PI/4,clearColor:v.clearColor||[0,0,0,0],autoResize:h(v.autoResize),autoBounds:h(v.autoBounds),autoScale:!!v.autoScale,autoCenter:h(v.autoCenter),clipToBounds:h(v.clipToBounds),snapToData:!!v.snapToData,onselect:v.onselect||null,onrender:v.onrender||null,onclick:v.onclick||null,cameraParams:ie,oncontextloss:null,mouseListener:null,_stopped:!1,getAspectratio:function(){return{x:this.aspect[0],y:this.aspect[1],z:this.aspect[2]}},setAspectratio:function(Y){this.aspect[0]=Y.x,this.aspect[1]=Y.y,this.aspect[2]=Y.z,Q=!0},setBounds:function(Y,$){this.bounds[0][Y]=$.min,this.bounds[1][Y]=$.max},setClearColor:function(Y){this.clearColor=Y},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)}},ae=[D.drawingBufferWidth/ee.pixelRatio|0,D.drawingBufferHeight/ee.pixelRatio|0];function ce(){if(!ee._stopped&&ee.autoResize){var Y=A.parentNode,$=1,pe=1;Y&&Y!==document.body?($=Y.clientWidth,pe=Y.clientHeight):($=window.innerWidth,pe=window.innerHeight);var oe=Math.ceil($*ee.pixelRatio)|0,ve=Math.ceil(pe*ee.pixelRatio)|0;if(oe!==A.width||ve!==A.height){A.width=oe,A.height=ve;var he=A.style;he.position=he.position||"absolute",he.left="0px",he.top="0px",he.width=$+"px",he.height=pe+"px",J=!0}}}ee.autoResize&&ce(),window.addEventListener("resize",ce);function Te(){for(var Y=K.length,$=q.length,pe=0;pe<$;++pe)G[pe]=0;e:for(var pe=0;pe0&&G[$-1]===0;)G.pop(),q.pop().dispose()}ee.update=function(Y){ee._stopped||(Y=Y||{},J=!0,Q=!0)},ee.add=function(Y){ee._stopped||(Y.axes=B,K.push(Y),j.push(-1),J=!0,Q=!0,Te())},ee.remove=function(Y){if(!ee._stopped){var $=K.indexOf(Y);$<0||(K.splice($,1),j.pop(),J=!0,Q=!0,Te())}},ee.dispose=function(){if(!ee._stopped&&(ee._stopped=!0,window.removeEventListener("resize",ce),A.removeEventListener("webglcontextlost",ke),ee.mouseListener.enabled=!1,!ee.contextLost)){B.dispose(),V.dispose();for(var Y=0;YR.distance)continue;for(var de=0;de1e-6?(k=Math.acos(S),b=Math.sin(k),T=Math.sin((1-s)*k)/b,h=Math.sin(s*k)/b):(T=1-s,h=s),i[0]=T*f+h*g,i[1]=T*c+h*w,i[2]=T*p+h*M,i[3]=T*x+h*m,i}},5964(a){"use strict";a.exports=function(o){return!o&&o!==0?"":o.toString()}},9366(a,o,i){"use strict";var l=i(4359);a.exports=s;var u={};function s(f,c,p){var x=[c.style,c.weight,c.variant,c.family].join("_"),g=u[x];if(g||(g=u[x]={}),f in g)return g[f];var w={textAlign:"center",textBaseline:"middle",lineHeight:1,font:c.family,fontStyle:c.style,fontWeight:c.weight,fontVariant:c.variant,lineSpacing:1.25,styletags:{breaklines:!0,bolds:!0,italics:!0,subscripts:!0,superscripts:!0}};w.triangles=!0;var M=l(f,w);w.triangles=!1;var m=l(f,w),k,S;if(p&&p!==1){for(k=0;k0){var p=Math.round(Math.pow(10,A));return Math.ceil(v/p)*p}return Math.ceil(v)}function d(v){return typeof v=="boolean"?v:!0}function w(v){v=v||{},v.camera=v.camera||{};var A=v.canvas;if(!A)if(A=document.createElement("canvas"),v.container){var p=v.container;p.appendChild(A)}else document.body.appendChild(A);var D=v.gl;if(D||(v.glOptions&&(k=!!v.glOptions.preserveDrawingBuffer),D=b(A,v.glOptions||{premultipliedAlpha:!0,antialias:!0,preserveDrawingBuffer:k})),!D)throw new Error("webgl not supported");var E=v.bounds||[[-10,-10,-10],[10,10,10]],R=new S,F=g(D,D.drawingBufferWidth,D.drawingBufferHeight,{preferFloat:!k}),z=m(D),P=v.cameraObject&&v.cameraObject._ortho===!0||v.camera.projection&&v.camera.projection.type==="orthographic"||!1,L={eye:v.camera.eye||[2,0,0],center:v.camera.center||[0,0,0],up:v.camera.up||[0,1,0],zoomMin:v.camera.zoomMax||.1,zoomMax:v.camera.zoomMin||100,mode:v.camera.mode||"turntable",_ortho:P},I=v.axes||{},B=u(D,I);B.enable=!I.disable;var O=v.spikes||{},G=f(D,O),J=[],j=[],V=[],q=[],Z=!0,Q=!0,re=new Array(16),$=new Array(16),ae={view:null,projection:re,model:$,_ortho:!1},Q=!0,te=[D.drawingBufferWidth,D.drawingBufferHeight],ue=v.cameraObject||l(A,L),ee={gl:D,contextLost:!1,pixelRatio:v.pixelRatio||1,canvas:A,selection:R,camera:ue,axes:B,axesPixels:null,spikes:G,bounds:E,objects:J,shape:te,aspect:v.aspectRatio||[1,1,1],pickRadius:v.pickRadius||10,zNear:v.zNear||.01,zFar:v.zFar||1e3,fovy:v.fovy||Math.PI/4,clearColor:v.clearColor||[0,0,0,0],autoResize:d(v.autoResize),autoBounds:d(v.autoBounds),autoScale:!!v.autoScale,autoCenter:d(v.autoCenter),clipToBounds:d(v.clipToBounds),snapToData:!!v.snapToData,onselect:v.onselect||null,onrender:v.onrender||null,onclick:v.onclick||null,cameraParams:ae,oncontextloss:null,mouseListener:null,_stopped:!1,getAspectratio:function(){return{x:this.aspect[0],y:this.aspect[1],z:this.aspect[2]}},setAspectratio:function(X){this.aspect[0]=X.x,this.aspect[1]=X.y,this.aspect[2]=X.z,Q=!0},setBounds:function(X,K){this.bounds[0][X]=K.min,this.bounds[1][X]=K.max},setClearColor:function(X){this.clearColor=X},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)}},ie=[D.drawingBufferWidth/ee.pixelRatio|0,D.drawingBufferHeight/ee.pixelRatio|0];function fe(){if(!ee._stopped&&ee.autoResize){var X=A.parentNode,K=1,ye=1;X&&X!==document.body?(K=X.clientWidth,ye=X.clientHeight):(K=window.innerWidth,ye=window.innerHeight);var oe=Math.ceil(K*ee.pixelRatio)|0,de=Math.ceil(ye*ee.pixelRatio)|0;if(oe!==A.width||de!==A.height){A.width=oe,A.height=de;var pe=A.style;pe.position=pe.position||"absolute",pe.left="0px",pe.top="0px",pe.width=K+"px",pe.height=ye+"px",Z=!0}}}ee.autoResize&&fe(),window.addEventListener("resize",fe);function we(){for(var X=J.length,K=q.length,ye=0;ye0&&V[K-1]===0;)V.pop(),q.pop().dispose()}ee.update=function(X){ee._stopped||(X=X||{},Z=!0,Q=!0)},ee.add=function(X){ee._stopped||(X.axes=B,J.push(X),j.push(-1),Z=!0,Q=!0,we())},ee.remove=function(X){if(!ee._stopped){var K=J.indexOf(X);K<0||(J.splice(K,1),j.pop(),Z=!0,Q=!0,we())}},ee.dispose=function(){if(!ee._stopped&&(ee._stopped=!0,window.removeEventListener("resize",fe),A.removeEventListener("webglcontextlost",Te),ee.mouseListener.enabled=!1,!ee.contextLost)){B.dispose(),G.dispose();for(var X=0;XR.distance)continue;for(var he=0;he1e-6?(k=Math.acos(S),b=Math.sin(k),M=Math.sin((1-s)*k)/b,d=Math.sin(s*k)/b):(M=1-s,d=s),i[0]=M*f+d*h,i[1]=M*c+d*_,i[2]=M*g+d*T,i[3]=M*x+d*m,i}},5964(a){"use strict";a.exports=function(o){return!o&&o!==0?"":o.toString()}},9366(a,o,i){"use strict";var l=i(4359);a.exports=s;var u={};function s(f,c,g){var x=[c.style,c.weight,c.variant,c.family].join("_"),h=u[x];if(h||(h=u[x]={}),f in h)return h[f];var _={textAlign:"center",textBaseline:"middle",lineHeight:1,font:c.family,fontStyle:c.style,fontWeight:c.weight,fontVariant:c.variant,lineSpacing:1.25,styletags:{breaklines:!0,bolds:!0,italics:!0,subscripts:!0,superscripts:!0}};_.triangles=!0;var T=l(f,_);_.triangles=!1;var m=l(f,_),k,S;if(g&&g!==1){for(k=0;k1?1:Z}function y(Z,ie,Q,re,ue,ee,ae,ce,Te,ke,Se,ge){this.gl=Z,this.pixelRatio=1,this.shader=ie,this.orthoShader=Q,this.projectShader=re,this.pointBuffer=ue,this.colorBuffer=ee,this.glyphBuffer=ae,this.idBuffer=ce,this.vao=Te,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=ke,this.pickOrthoShader=Se,this.pickProjectShader=ge,this.points=[],this._selectResult=new h(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 v=y.prototype;v.pickSlots=1,v.setPickBase=function(Z){this.pickId=Z},v.isTransparent=function(){if(this.hasAlpha)return!0;for(var Z=0;Z<3;++Z)if(this.axesProject[Z]&&this.projectHasAlpha)return!0;return!1},v.isOpaque=function(){if(!this.hasAlpha)return!0;for(var Z=0;Z<3;++Z)if(this.axesProject[Z]&&!this.projectHasAlpha)return!0;return!1};var A=[0,0],d=[0,0,0],D=[0,0,0],E=[0,0,0,1],R=[0,0,0,1],z=w.slice(),I=[0,0,0],P=[[0,0,0],[0,0,0]];function L(Z){return Z[0]=Z[1]=Z[2]=0,Z}function F(Z,ie){return Z[0]=ie[0],Z[1]=ie[1],Z[2]=ie[2],Z[3]=1,Z}function B(Z,ie,Q,re){return Z[0]=ie[0],Z[1]=ie[1],Z[2]=ie[2],Z[Q]=re,Z}function O(Z){for(var ie=P,Q=0;Q<2;++Q)for(var re=0;re<3;++re)ie[Q][re]=Math.max(Math.min(Z[Q][re],1e8),-1e8);return ie}function V(Z,ie,Q,re){var ue=ie.axesProject,ee=ie.gl,ae=Z.uniforms,ce=Q.model||w,Te=Q.view||w,ke=Q.projection||w,Se=ie.axesBounds,ge=O(ie.clipBounds),Le;ie.axes&&ie.axes.lastCubeProps?Le=ie.axes.lastCubeProps.axis:Le=[1,1,1],A[0]=2/ee.drawingBufferWidth,A[1]=2/ee.drawingBufferHeight,Z.bind(),ae.view=Te,ae.projection=ke,ae.screenSize=A,ae.highlightId=ie.highlightId,ae.highlightScale=ie.highlightScale,ae.clipBounds=ge,ae.pickGroup=ie.pickId/255,ae.pixelRatio=re;for(var Ce=0;Ce<3;++Ce)if(ue[Ce]){ae.scale=ie.projectScale[Ce],ae.opacity=ie.projectOpacity[Ce];for(var le=z,Y=0;Y<16;++Y)le[Y]=0;for(var Y=0;Y<4;++Y)le[5*Y]=1;le[5*Ce]=0,Le[Ce]<0?le[12+Ce]=Se[0][Ce]:le[12+Ce]=Se[1][Ce],c(le,ce,le),ae.model=le;var $=(Ce+1)%3,pe=(Ce+2)%3,oe=L(d),ve=L(D);oe[$]=1,ve[pe]=1;var he=T(ke,Te,ce,F(E,oe)),me=T(ke,Te,ce,F(R,ve));if(Math.abs(he[1])>Math.abs(me[1])){var be=he;he=me,me=be,be=oe,oe=ve,ve=be;var ye=$;$=pe,pe=ye}he[0]<0&&(oe[$]=-1),me[1]>0&&(ve[pe]=-1);for(var de=0,xe=0,Y=0;Y<4;++Y)de+=Math.pow(ce[4*$+Y],2),xe+=Math.pow(ce[4*pe+Y],2);oe[$]/=Math.sqrt(de),ve[pe]/=Math.sqrt(xe),ae.axes[0]=oe,ae.axes[1]=ve,ae.fragClipBounds[0]=B(I,ge[0],Ce,-1e8),ae.fragClipBounds[1]=B(I,ge[1],Ce,1e8),ie.vao.bind(),ie.vao.draw(ee.TRIANGLES,ie.vertexCount),ie.lineWidth>0&&(ee.lineWidth(ie.lineWidth*re),ie.vao.draw(ee.LINES,ie.lineVertexCount,ie.vertexCount)),ie.vao.unbind()}}var K=[-1e8,-1e8,-1e8],j=[1e8,1e8,1e8],G=[K,j];function q(Z,ie,Q,re,ue,ee,ae){var ce=Q.gl;if((ee===Q.projectHasAlpha||ae)&&V(ie,Q,re,ue),ee===Q.hasAlpha||ae){Z.bind();var Te=Z.uniforms;Te.model=re.model||w,Te.view=re.view||w,Te.projection=re.projection||w,A[0]=2/ce.drawingBufferWidth,A[1]=2/ce.drawingBufferHeight,Te.screenSize=A,Te.highlightId=Q.highlightId,Te.highlightScale=Q.highlightScale,Te.fragClipBounds=G,Te.clipBounds=Q.axes.bounds,Te.opacity=Q.opacity,Te.pickGroup=Q.pickId/255,Te.pixelRatio=ue,Q.vao.bind(),Q.vao.draw(ce.TRIANGLES,Q.vertexCount),Q.lineWidth>0&&(ce.lineWidth(Q.lineWidth*ue),Q.vao.draw(ce.LINES,Q.lineVertexCount,Q.vertexCount)),Q.vao.unbind()}}v.draw=function(Z){var ie=this.useOrtho?this.orthoShader:this.shader;q(ie,this.projectShader,this,Z,this.pixelRatio,!1,!1)},v.drawTransparent=function(Z){var ie=this.useOrtho?this.orthoShader:this.shader;q(ie,this.projectShader,this,Z,this.pixelRatio,!0,!1)},v.drawPick=function(Z){var ie=this.useOrtho?this.pickOrthoShader:this.pickPerspectiveShader;q(ie,this.pickProjectShader,this,Z,1,!0,!0)},v.pick=function(Z){if(!Z||Z.id!==this.pickId)return null;var ie=Z.value[2]+(Z.value[1]<<8)+(Z.value[0]<<16);if(ie>=this.pointCount||ie<0)return null;var Q=this.points[ie],re=this._selectResult;re.index=ie;for(var ue=0;ue<3;++ue)re.position[ue]=re.dataCoordinate[ue]=Q[ue];return re},v.highlight=function(Z){if(!Z)this.highlightId=[1,1,1,1];else{var ie=Z.index,Q=ie&255,re=ie>>8&255,ue=ie>>16&255;this.highlightId=[Q/255,re/255,ue/255,0]}};function J(Z,ie,Q,re){var ue;S(Z)?ie0){var Be=0,Oe=pe,We=[0,0,0,1],Xe=[0,0,0,1],tr=S(Le)&&S(Le[0]),ir=S(Y)&&S(Y[0]);e:for(var re=0;re0?1-xe[0][0]:Mr<0?1+xe[1][0]:1,Gr*=Gr>0?1-xe[0][1]:Gr<0?1+xe[1][1]:1;for(var Tr=[Mr,Gr],xt=ye.cells||[],$r=ye.positions||[],me=0;methis.buffer.length){u.free(this.buffer);for(var S=this.buffer=u.mallocUint8(f(k*m*4)),b=0;bS)for(m=S;mk)for(m=k;m=0){for(var P=I.type.charAt(I.type.length-1)|0,L=new Array(P),F=0;F=0;)B+=1;R[z]=B}var O=new Array(S.length);function V(){h.program=f.program(_,h._vref,h._fref,E,R);for(var K=0;K=0){var v=_.charCodeAt(_.length-1)-48;if(v<2||v>4)throw new l("","Invalid data type for attribute "+h+": "+_);c(g,w,y[0],m,v,k,h)}else if(_.indexOf("mat")>=0){var v=_.charCodeAt(_.length-1)-48;if(v<2||v>4)throw new l("","Invalid data type for attribute "+h+": "+_);p(g,w,y,m,v,k,h)}else throw new l("","Unknown data type for attribute "+h+": "+_);break}}return k}},3327(a,o,i){"use strict";var l=i(216),u=i(8866);a.exports=c;function s(p){return function(){return p}}function f(p,x){for(var g=new Array(p),w=0;w4)throw new u("","Invalid data type");switch(B.charAt(0)){case"b":case"i":p["uniform"+O+"iv"](w[R],z);break;case"v":p["uniform"+O+"fv"](w[R],z);break;default:throw new u("","Unrecognized data type for vector "+name+": "+B)}}else if(B.indexOf("mat")===0&&B.length===4){if(O=B.charCodeAt(B.length-1)-48,O<2||O>4)throw new u("","Invalid uniform dimension type for matrix "+name+": "+B);p["uniformMatrix"+O+"fv"](w[R],!1,z);break}else throw new u("","Unknown uniform data type for "+name+": "+B)}}}}}function k(_,y){if(typeof y!="object")return[[_,y]];var v=[];for(var A in y){var d=y[A],D=_;parseInt(A)+""===A?D+="["+A+"]":D+="."+A,typeof d=="object"?v.push.apply(v,k(D,d)):v.push([D,d])}return v}function S(_){switch(_){case"bool":return!1;case"int":case"sampler2D":case"samplerCube":return 0;case"float":return 0;default:var y=_.indexOf("vec");if(0<=y&&y<=1&&_.length===4+y){var v=_.charCodeAt(_.length-1)-48;if(v<2||v>4)throw new u("","Invalid data type");return _.charAt(0)==="b"?f(v,!1):f(v,0)}else if(_.indexOf("mat")===0&&_.length===4){var v=_.charCodeAt(_.length-1)-48;if(v<2||v>4)throw new u("","Invalid uniform dimension type for matrix "+name+": "+_);return f(v*v,0)}else throw new u("","Unknown uniform data type for "+name+": "+_)}}function b(_,y,v){if(typeof v=="object"){var A=T(v);Object.defineProperty(_,y,{get:s(A),set:m(v),enumerable:!0,configurable:!1})}else w[v]?Object.defineProperty(_,y,{get:M(v),set:m(v),enumerable:!0,configurable:!1}):_[y]=S(g[v].type)}function T(_){var y;if(Array.isArray(_)){y=new Array(_.length);for(var v=0;v<_.length;++v)b(y,v,_[v])}else{y={};for(var A in _)b(y,A,_[A])}return y}var h=l(g,!0);return{get:s(T(h)),set:m(h),enumerable:!0,configurable:!0}}},216(a){"use strict";a.exports=o;function o(i,l){for(var u={},s=0;s1){g[0]in p||(p[g[0]]=[]),p=p[g[0]];for(var w=1;w1)for(var k=0;k1?1:$}function y($,ae,Q,te,ue,ee,ie,fe,we,Te,ke,ge){this.gl=$,this.pixelRatio=1,this.shader=ae,this.orthoShader=Q,this.projectShader=te,this.pointBuffer=ue,this.colorBuffer=ee,this.glyphBuffer=ie,this.idBuffer=fe,this.vao=we,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=Te,this.pickOrthoShader=ke,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 v=y.prototype;v.pickSlots=1,v.setPickBase=function($){this.pickId=$},v.isTransparent=function(){if(this.hasAlpha)return!0;for(var $=0;$<3;++$)if(this.axesProject[$]&&this.projectHasAlpha)return!0;return!1},v.isOpaque=function(){if(!this.hasAlpha)return!0;for(var $=0;$<3;++$)if(this.axesProject[$]&&!this.projectHasAlpha)return!0;return!1};var A=[0,0],p=[0,0,0],D=[0,0,0],E=[0,0,0,1],R=[0,0,0,1],F=_.slice(),z=[0,0,0],P=[[0,0,0],[0,0,0]];function L($){return $[0]=$[1]=$[2]=0,$}function I($,ae){return $[0]=ae[0],$[1]=ae[1],$[2]=ae[2],$[3]=1,$}function B($,ae,Q,te){return $[0]=ae[0],$[1]=ae[1],$[2]=ae[2],$[Q]=te,$}function O($){for(var ae=P,Q=0;Q<2;++Q)for(var te=0;te<3;++te)ae[Q][te]=Math.max(Math.min($[Q][te],1e8),-1e8);return ae}function G($,ae,Q,te){var ue=ae.axesProject,ee=ae.gl,ie=$.uniforms,fe=Q.model||_,we=Q.view||_,Te=Q.projection||_,ke=ae.axesBounds,ge=O(ae.clipBounds),Ee;ae.axes&&ae.axes.lastCubeProps?Ee=ae.axes.lastCubeProps.axis:Ee=[1,1,1],A[0]=2/ee.drawingBufferWidth,A[1]=2/ee.drawingBufferHeight,$.bind(),ie.view=we,ie.projection=Te,ie.screenSize=A,ie.highlightId=ae.highlightId,ie.highlightScale=ae.highlightScale,ie.clipBounds=ge,ie.pickGroup=ae.pickId/255,ie.pixelRatio=te;for(var Le=0;Le<3;++Le)if(ue[Le]){ie.scale=ae.projectScale[Le],ie.opacity=ae.projectOpacity[Le];for(var se=F,X=0;X<16;++X)se[X]=0;for(var X=0;X<4;++X)se[5*X]=1;se[5*Le]=0,Ee[Le]<0?se[12+Le]=ke[0][Le]:se[12+Le]=ke[1][Le],c(se,fe,se),ie.model=se;var K=(Le+1)%3,ye=(Le+2)%3,oe=L(p),de=L(D);oe[K]=1,de[ye]=1;var pe=M(Te,we,fe,I(E,oe)),me=M(Te,we,fe,I(R,de));if(Math.abs(pe[1])>Math.abs(me[1])){var Se=pe;pe=me,me=Se,Se=oe,oe=de,de=Se;var ve=K;K=ye,ye=ve}pe[0]<0&&(oe[K]=-1),me[1]>0&&(de[ye]=-1);for(var he=0,be=0,X=0;X<4;++X)he+=Math.pow(fe[4*K+X],2),be+=Math.pow(fe[4*ye+X],2);oe[K]/=Math.sqrt(he),de[ye]/=Math.sqrt(be),ie.axes[0]=oe,ie.axes[1]=de,ie.fragClipBounds[0]=B(z,ge[0],Le,-1e8),ie.fragClipBounds[1]=B(z,ge[1],Le,1e8),ae.vao.bind(),ae.vao.draw(ee.TRIANGLES,ae.vertexCount),ae.lineWidth>0&&(ee.lineWidth(ae.lineWidth*te),ae.vao.draw(ee.LINES,ae.lineVertexCount,ae.vertexCount)),ae.vao.unbind()}}var J=[-1e8,-1e8,-1e8],j=[1e8,1e8,1e8],V=[J,j];function q($,ae,Q,te,ue,ee,ie){var fe=Q.gl;if((ee===Q.projectHasAlpha||ie)&&G(ae,Q,te,ue),ee===Q.hasAlpha||ie){$.bind();var we=$.uniforms;we.model=te.model||_,we.view=te.view||_,we.projection=te.projection||_,A[0]=2/fe.drawingBufferWidth,A[1]=2/fe.drawingBufferHeight,we.screenSize=A,we.highlightId=Q.highlightId,we.highlightScale=Q.highlightScale,we.fragClipBounds=V,we.clipBounds=Q.axes.bounds,we.opacity=Q.opacity,we.pickGroup=Q.pickId/255,we.pixelRatio=ue,Q.vao.bind(),Q.vao.draw(fe.TRIANGLES,Q.vertexCount),Q.lineWidth>0&&(fe.lineWidth(Q.lineWidth*ue),Q.vao.draw(fe.LINES,Q.lineVertexCount,Q.vertexCount)),Q.vao.unbind()}}v.draw=function($){var ae=this.useOrtho?this.orthoShader:this.shader;q(ae,this.projectShader,this,$,this.pixelRatio,!1,!1)},v.drawTransparent=function($){var ae=this.useOrtho?this.orthoShader:this.shader;q(ae,this.projectShader,this,$,this.pixelRatio,!0,!1)},v.drawPick=function($){var ae=this.useOrtho?this.pickOrthoShader:this.pickPerspectiveShader;q(ae,this.pickProjectShader,this,$,1,!0,!0)},v.pick=function($){if(!$||$.id!==this.pickId)return null;var ae=$.value[2]+($.value[1]<<8)+($.value[0]<<16);if(ae>=this.pointCount||ae<0)return null;var Q=this.points[ae],te=this._selectResult;te.index=ae;for(var ue=0;ue<3;++ue)te.position[ue]=te.dataCoordinate[ue]=Q[ue];return te},v.highlight=function($){if(!$)this.highlightId=[1,1,1,1];else{var ae=$.index,Q=ae&255,te=ae>>8&255,ue=ae>>16&255;this.highlightId=[Q/255,te/255,ue/255,0]}};function Z($,ae,Q,te){var ue;S($)?ae<$.length?ue=$[ae]:ue=void 0:ue=$,ue=h(ue);var ee=!0;l(ue)&&(ue="\u25BC",ee=!1),Q||(Q={});var ie=Q.family;S(ie)&&(ie=ie[ae]),ie||(ie="normal");var fe=Q.weight;S(fe)&&(fe=fe[ae]),fe||(fe="normal");var we=Q.style;S(we)&&(we=we[ae]),we||(we="normal");var Te=Q.variant;S(Te)&&(Te=Te[ae]),Te||(Te="normal");var ke=x(ue,{family:ie,weight:fe,style:we,variant:Te},te),ke=x(ue,Q,te);return{mesh:ke[0],lines:ke[1],bounds:ke[2],visible:ee}}v.update=function($){if($=$||{},"perspective"in $&&(this.useOrtho=!$.perspective),"orthographic"in $&&(this.useOrtho=!!$.orthographic),"lineWidth"in $&&(this.lineWidth=$.lineWidth),"project"in $)if(S($.project))this.axesProject=$.project;else{var ae=!!$.project;this.axesProject=[ae,ae,ae]}if("projectScale"in $)if(S($.projectScale))this.projectScale=$.projectScale.slice();else{var Q=+$.projectScale;this.projectScale=[Q,Q,Q]}if(this.projectHasAlpha=!1,"projectOpacity"in $){if(S($.projectOpacity))this.projectOpacity=$.projectOpacity.slice();else{var Q=+$.projectOpacity;this.projectOpacity=[Q,Q,Q]}for(var te=0;te<3;++te)this.projectOpacity[te]=w(this.projectOpacity[te]),this.projectOpacity[te]<1&&(this.projectHasAlpha=!0)}this.hasAlpha=!1,"opacity"in $&&(this.opacity=w($.opacity),this.opacity<1&&(this.hasAlpha=!0)),this.dirty=!0;var ue=$.position,ee={family:$.font||"normal",style:$.fontStyle||"normal",weight:$.fontWeight||"normal",variant:$.fontVariant||"normal"},ie=$.alignment||[0,0],fe,we;if(ie.length===2)fe=ie[0],we=ie[1];else{fe=[],we=[];for(var te=0;te0){var Ue=0,qe=ye,We=[0,0,0,1],Xe=[0,0,0,1],er=S(Ee)&&S(Ee[0]),nr=S(X)&&S(X[0]);e:for(var te=0;te0?1-be[0][0]:wr<0?1+be[1][0]:1,Xr*=Xr>0?1-be[0][1]:Xr<0?1+be[1][1]:1;for(var Tr=[wr,Xr],ot=ve.cells||[],Ir=ve.positions||[],me=0;methis.buffer.length){u.free(this.buffer);for(var S=this.buffer=u.mallocUint8(f(k*m*4)),b=0;bS)for(m=S;mk)for(m=k;m=0){for(var P=z.type.charAt(z.type.length-1)|0,L=new Array(P),I=0;I=0;)B+=1;R[F]=B}var O=new Array(S.length);function G(){d.program=f.program(w,d._vref,d._fref,E,R);for(var J=0;J=0){var v=w.charCodeAt(w.length-1)-48;if(v<2||v>4)throw new l("","Invalid data type for attribute "+d+": "+w);c(h,_,y[0],m,v,k,d)}else if(w.indexOf("mat")>=0){var v=w.charCodeAt(w.length-1)-48;if(v<2||v>4)throw new l("","Invalid data type for attribute "+d+": "+w);g(h,_,y,m,v,k,d)}else throw new l("","Unknown data type for attribute "+d+": "+w);break}}return k}},3327(a,o,i){"use strict";var l=i(216),u=i(8866);a.exports=c;function s(g){return function(){return g}}function f(g,x){for(var h=new Array(g),_=0;_4)throw new u("","Invalid data type");switch(B.charAt(0)){case"b":case"i":g["uniform"+O+"iv"](_[R],F);break;case"v":g["uniform"+O+"fv"](_[R],F);break;default:throw new u("","Unrecognized data type for vector "+name+": "+B)}}else if(B.indexOf("mat")===0&&B.length===4){if(O=B.charCodeAt(B.length-1)-48,O<2||O>4)throw new u("","Invalid uniform dimension type for matrix "+name+": "+B);g["uniformMatrix"+O+"fv"](_[R],!1,F);break}else throw new u("","Unknown uniform data type for "+name+": "+B)}}}}}function k(w,y){if(typeof y!="object")return[[w,y]];var v=[];for(var A in y){var p=y[A],D=w;parseInt(A)+""===A?D+="["+A+"]":D+="."+A,typeof p=="object"?v.push.apply(v,k(D,p)):v.push([D,p])}return v}function S(w){switch(w){case"bool":return!1;case"int":case"sampler2D":case"samplerCube":return 0;case"float":return 0;default:var y=w.indexOf("vec");if(0<=y&&y<=1&&w.length===4+y){var v=w.charCodeAt(w.length-1)-48;if(v<2||v>4)throw new u("","Invalid data type");return w.charAt(0)==="b"?f(v,!1):f(v,0)}else if(w.indexOf("mat")===0&&w.length===4){var v=w.charCodeAt(w.length-1)-48;if(v<2||v>4)throw new u("","Invalid uniform dimension type for matrix "+name+": "+w);return f(v*v,0)}else throw new u("","Unknown uniform data type for "+name+": "+w)}}function b(w,y,v){if(typeof v=="object"){var A=M(v);Object.defineProperty(w,y,{get:s(A),set:m(v),enumerable:!0,configurable:!1})}else _[v]?Object.defineProperty(w,y,{get:T(v),set:m(v),enumerable:!0,configurable:!1}):w[y]=S(h[v].type)}function M(w){var y;if(Array.isArray(w)){y=new Array(w.length);for(var v=0;v1){h[0]in g||(g[h[0]]=[]),g=g[h[0]];for(var _=1;_1)for(var k=0;k0)for(var q=0;qT)return _-1}return _},x=function(b,T,h){return bh?h:b},g=function(b,T,h){var _=T.vectors,y=T.meshgrid,v=b[0],A=b[1],d=b[2],D=y[0].length,E=y[1].length,R=y[2].length,z=p(y[0],v),I=p(y[1],A),P=p(y[2],d),L=z+1,F=I+1,B=P+1;if(z=x(z,0,D-1),L=x(L,0,D-1),I=x(I,0,E-1),F=x(F,0,E-1),P=x(P,0,R-1),B=x(B,0,R-1),z<0||I<0||P<0||L>D-1||F>E-1||B>R-1)return l.create();var O=y[0][z],V=y[0][L],K=y[1][I],j=y[1][F],G=y[2][P],q=y[2][B],J=(v-O)/(V-O),te=(A-K)/(j-K),Z=(d-G)/(q-G);isFinite(J)||(J=.5),isFinite(te)||(te=.5),isFinite(Z)||(Z=.5);var ie,Q,re,ue,ee,ae;switch(h.reversedX&&(z=D-1-z,L=D-1-L),h.reversedY&&(I=E-1-I,F=E-1-F),h.reversedZ&&(P=R-1-P,B=R-1-B),h.filled){case 5:ee=P,ae=B,re=I*R,ue=F*R,ie=z*R*E,Q=L*R*E;break;case 4:ee=P,ae=B,ie=z*R,Q=L*R,re=I*R*D,ue=F*R*D;break;case 3:re=I,ue=F,ee=P*E,ae=B*E,ie=z*E*R,Q=L*E*R;break;case 2:re=I,ue=F,ie=z*E,Q=L*E,ee=P*E*D,ae=B*E*D;break;case 1:ie=z,Q=L,ee=P*D,ae=B*D,re=I*D*R,ue=F*D*R;break;default:ie=z,Q=L,re=I*D,ue=F*D,ee=P*D*E,ae=B*D*E;break}var ce=_[ie+re+ee],Te=_[ie+re+ae],ke=_[ie+ue+ee],Se=_[ie+ue+ae],ge=_[Q+re+ee],Le=_[Q+re+ae],Ce=_[Q+ue+ee],le=_[Q+ue+ae],Y=l.create(),$=l.create(),pe=l.create(),oe=l.create();l.lerp(Y,ce,ge,J),l.lerp($,Te,Le,J),l.lerp(pe,ke,Ce,J),l.lerp(oe,Se,le,J);var ve=l.create(),he=l.create();l.lerp(ve,Y,pe,te),l.lerp(he,$,oe,te);var me=l.create();return l.lerp(me,ve,he,Z),me},w=function(b,T){var h=T[0],_=T[1],y=T[2];return b[0]=h<0?-h:h,b[1]=_<0?-_:_,b[2]=y<0?-y:y,b},M=function(b){var T=1/0;b.sort(function(v,A){return v-A});for(var h=b.length,_=1;_L||leF||YB)},V=l.distance(T[0],T[1]),K=10*V/_,j=K*K,G=1,q=0,J=h.length;J>1&&(G=m(h));for(var te=0;teq&&(q=ce),ee.push(ce),R.push({points:ie,velocities:Q,divergences:ee});for(var Te=0;Te<_*100&&ie.length<_&&O(Z);){Te++;var ke=l.clone(re),Se=l.squaredLength(ke);if(Se===0)break;if(Se>j&&l.scale(ke,ke,K/Math.sqrt(Se)),l.add(ke,ke,Z),re=D(ke),l.squaredDistance(ue,ke)-j>-1e-4*j){ie.push(ke),ue=ke,Q.push(re);var ae=E(ke,re),ce=l.length(ae);isFinite(ce)&&ce>q&&(q=ce),ee.push(ce)}Z=ke}}var ge=c(R,b.colormap,q,G);return v?ge.tubeScale=v:(q===0&&(q=1),ge.tubeScale=y*.5*G/q),ge};var k=i(6740),S=i(6405).createMesh;a.exports.createTubeMesh=function(b,T){return S(b,T,{shaders:k,traceType:"streamtube"})}},990(a,o,i){var l=i(9405),u=i(3236),s=u([`precision highp float; +}`]);o.meshShader={vertex:u,fragment:s,attributes:[{name:"position",type:"vec4"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"},{name:"vector",type:"vec4"}]},o.pickShader={vertex:f,fragment:c,attributes:[{name:"position",type:"vec4"},{name:"id",type:"vec4"},{name:"vector",type:"vec4"}]}},7815(a,o,i){"use strict";var l=i(2931),u=i(9970),s=["xyz","xzy","yxz","yzx","zxy","zyx"],f=function(b,M,d,w){for(var y=b.points,v=b.velocities,A=b.divergences,p=[],D=[],E=[],R=[],F=[],z=[],P=0,L=0,I=u.create(),B=u.create(),O=8,G=0;G0)for(var q=0;qM)return w-1}return w},x=function(b,M,d){return bd?d:b},h=function(b,M,d){var w=M.vectors,y=M.meshgrid,v=b[0],A=b[1],p=b[2],D=y[0].length,E=y[1].length,R=y[2].length,F=g(y[0],v),z=g(y[1],A),P=g(y[2],p),L=F+1,I=z+1,B=P+1;if(F=x(F,0,D-1),L=x(L,0,D-1),z=x(z,0,E-1),I=x(I,0,E-1),P=x(P,0,R-1),B=x(B,0,R-1),F<0||z<0||P<0||L>D-1||I>E-1||B>R-1)return l.create();var O=y[0][F],G=y[0][L],J=y[1][z],j=y[1][I],V=y[2][P],q=y[2][B],Z=(v-O)/(G-O),re=(A-J)/(j-J),$=(p-V)/(q-V);isFinite(Z)||(Z=.5),isFinite(re)||(re=.5),isFinite($)||($=.5);var ae,Q,te,ue,ee,ie;switch(d.reversedX&&(F=D-1-F,L=D-1-L),d.reversedY&&(z=E-1-z,I=E-1-I),d.reversedZ&&(P=R-1-P,B=R-1-B),d.filled){case 5:ee=P,ie=B,te=z*R,ue=I*R,ae=F*R*E,Q=L*R*E;break;case 4:ee=P,ie=B,ae=F*R,Q=L*R,te=z*R*D,ue=I*R*D;break;case 3:te=z,ue=I,ee=P*E,ie=B*E,ae=F*E*R,Q=L*E*R;break;case 2:te=z,ue=I,ae=F*E,Q=L*E,ee=P*E*D,ie=B*E*D;break;case 1:ae=F,Q=L,ee=P*D,ie=B*D,te=z*D*R,ue=I*D*R;break;default:ae=F,Q=L,te=z*D,ue=I*D,ee=P*D*E,ie=B*D*E;break}var fe=w[ae+te+ee],we=w[ae+te+ie],Te=w[ae+ue+ee],ke=w[ae+ue+ie],ge=w[Q+te+ee],Ee=w[Q+te+ie],Le=w[Q+ue+ee],se=w[Q+ue+ie],X=l.create(),K=l.create(),ye=l.create(),oe=l.create();l.lerp(X,fe,ge,Z),l.lerp(K,we,Ee,Z),l.lerp(ye,Te,Le,Z),l.lerp(oe,ke,se,Z);var de=l.create(),pe=l.create();l.lerp(de,X,ye,re),l.lerp(pe,K,oe,re);var me=l.create();return l.lerp(me,de,pe,$),me},_=function(b,M){var d=M[0],w=M[1],y=M[2];return b[0]=d<0?-d:d,b[1]=w<0?-w:w,b[2]=y<0?-y:y,b},T=function(b){var M=1/0;b.sort(function(v,A){return v-A});for(var d=b.length,w=1;wL||seI||XB)},G=l.distance(M[0],M[1]),J=10*G/w,j=J*J,V=1,q=0,Z=d.length;Z>1&&(V=m(d));for(var re=0;req&&(q=fe),ee.push(fe),R.push({points:ae,velocities:Q,divergences:ee});for(var we=0;wej&&l.scale(Te,Te,J/Math.sqrt(ke)),l.add(Te,Te,$),te=D(Te),l.squaredDistance(ue,Te)-j>-1e-4*j){ae.push(Te),ue=Te,Q.push(te);var ie=E(Te,te),fe=l.length(ie);isFinite(fe)&&fe>q&&(q=fe),ee.push(fe)}$=Te}}var ge=c(R,b.colormap,q,V);return v?ge.tubeScale=v:(q===0&&(q=1),ge.tubeScale=y*.5*V/q),ge};var k=i(6740),S=i(6405).createMesh;a.exports.createTubeMesh=function(b,M){return S(b,M,{shaders:k,traceType:"streamtube"})}},990(a,o,i){var l=i(9405),u=i(3236),s=u([`precision highp float; #define GLSLIFY 1 attribute vec4 uv; @@ -1876,7 +1876,7 @@ void main() { eyeDirection = vec3(0,1,0); lightDirection = vec3(0,0,1); } -`]),p=u([`precision highp float; +`]),g=u([`precision highp float; #define GLSLIFY 1 bool outOfRange(float a, float b, float p) { @@ -1923,13 +1923,13 @@ void main() { vec2 uy = splitFloat(planeCoordinate.y / shape.y); gl_FragColor = vec4(pickId, ux.x, uy.x, ux.y + (uy.y/16.0)); } -`]);o.createShader=function(x){var g=l(x,s,f,null,[{name:"uv",type:"vec4"},{name:"f",type:"vec3"},{name:"normal",type:"vec3"}]);return g.attributes.uv.location=0,g.attributes.f.location=1,g.attributes.normal.location=2,g},o.createPickShader=function(x){var g=l(x,s,p,null,[{name:"uv",type:"vec4"},{name:"f",type:"vec3"},{name:"normal",type:"vec3"}]);return g.attributes.uv.location=0,g.attributes.f.location=1,g.attributes.normal.location=2,g},o.createContourShader=function(x){var g=l(x,c,f,null,[{name:"uv",type:"vec4"},{name:"f",type:"float"}]);return g.attributes.uv.location=0,g.attributes.f.location=1,g},o.createPickContourShader=function(x){var g=l(x,c,p,null,[{name:"uv",type:"vec4"},{name:"f",type:"float"}]);return g.attributes.uv.location=0,g.attributes.f.location=1,g}},9499(a,o,i){"use strict";a.exports=ie;var l=i(8828),u=i(2762),s=i(8116),f=i(7766),c=i(1888),p=i(6729),x=i(5298),g=i(9994),w=i(9618),M=i(3711),m=i(6760),k=i(7608),S=i(2478),b=i(6199),T=i(990),h=T.createShader,_=T.createContourShader,y=T.createPickShader,v=T.createPickContourShader,A=40,d=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],D=[[0,0],[0,1],[1,0],[1,1],[1,0],[0,1]],E=[[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 Q=0;Q<3;++Q){var re=E[Q],ue=(Q+1)%3,ee=(Q+2)%3;re[ue+0]=1,re[ee+3]=1,re[Q+6]=1}})();function R(Q,re,ue,ee,ae){this.position=Q,this.index=re,this.uv=ue,this.level=ee,this.dataCoordinate=ae}var z=256;function I(Q,re,ue,ee,ae,ce,Te,ke,Se,ge,Le,Ce,le,Y,$){this.gl=Q,this.shape=re,this.bounds=ue,this.objectOffset=$,this.intensityBounds=[],this._shader=ee,this._pickShader=ae,this._coordinateBuffer=ce,this._vao=Te,this._colorMap=ke,this._contourShader=Se,this._contourPickShader=ge,this._contourBuffer=Le,this._contourVAO=Ce,this._contourOffsets=[[],[],[]],this._contourCounts=[[],[],[]],this._vertexCount=0,this._pickResult=new R([0,0,0],[0,0],[0,0],[0,0,0],[0,0,0]),this._dynamicBuffer=le,this._dynamicVAO=Y,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=[w(c.mallocFloat(1024),[0,0]),w(c.mallocFloat(1024),[0,0]),w(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 P=I.prototype;P.genColormap=function(Q,re){var ue=!1,ee=g([p({colormap:Q,nshades:z,format:"rgba"}).map(function(ae,ce){var Te=re?L(ce/255,re):ae[3];return Te<1&&(ue=!0),[ae[0],ae[1],ae[2],255*Te]})]);return x.divseq(ee,255),this.hasAlphaScale=ue,ee},P.isTransparent=function(){return this.opacity<1||this.hasAlphaScale},P.isOpaque=function(){return!this.isTransparent()},P.pickSlots=1,P.setPickBase=function(Q){this.pickId=Q};function L(Q,re){if(!re||!re.length)return 1;for(var ue=0;ueQ&&ue>0){var ee=(re[ue][0]-Q)/(re[ue][0]-re[ue-1][0]);return re[ue][1]*(1-ee)+ee*re[ue-1][1]}}return 1}var F=[0,0,0],B={showSurface:!1,showContour:!1,projections:[d.slice(),d.slice(),d.slice()],clipBounds:[[[0,0,0],[0,0,0]],[[0,0,0],[0,0,0]],[[0,0,0],[0,0,0]]]};function O(Q,re){var ue,ee,ae,ce=re.axes&&re.axes.lastCubeProps.axis||F,Te=re.showSurface,ke=re.showContour;for(ue=0;ue<3;++ue)for(Te=Te||re.surfaceProject[ue],ee=0;ee<3;++ee)ke=ke||re.contourProject[ue][ee];for(ue=0;ue<3;++ue){var Se=B.projections[ue];for(ee=0;ee<16;++ee)Se[ee]=0;for(ee=0;ee<4;++ee)Se[5*ee]=1;Se[5*ue]=0,Se[12+ue]=re.axesBounds[+(ce[ue]>0)][ue],m(Se,Q.model,Se);var ge=B.clipBounds[ue];for(ae=0;ae<2;++ae)for(ee=0;ee<3;++ee)ge[ae][ee]=Q.clipBounds[ae][ee];ge[0][ue]=-1e8,ge[1][ue]=1e8}return B.showSurface=Te,B.showContour=ke,B}var V={model:d,view:d,projection:d,inverseModel:d.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},K=d.slice(),j=[1,0,0,0,1,0,0,0,1];function G(Q,re){Q=Q||{};var ue=this.gl;ue.disable(ue.CULL_FACE),this._colorMap.bind(0);var ee=V;ee.model=Q.model||d,ee.view=Q.view||d,ee.projection=Q.projection||d,ee.lowerBound=[this.bounds[0][0],this.bounds[0][1],this.colorBounds[0]||this.bounds[0][2]],ee.upperBound=[this.bounds[1][0],this.bounds[1][1],this.colorBounds[1]||this.bounds[1][2]],ee.objectOffset=this.objectOffset,ee.contourColor=this.contourColor[0],ee.inverseModel=k(ee.inverseModel,ee.model);for(var ae=0;ae<2;++ae)for(var ce=ee.clipBounds[ae],Te=0;Te<3;++Te)ce[Te]=Math.min(Math.max(this.clipBounds[ae][Te],-1e8),1e8);ee.kambient=this.ambientLight,ee.kdiffuse=this.diffuseLight,ee.kspecular=this.specularLight,ee.roughness=this.roughness,ee.fresnel=this.fresnel,ee.opacity=this.opacity,ee.height=0,ee.permutation=j,ee.vertexColor=this.vertexColor;var ke=K;for(m(ke,ee.view,ee.model),m(ke,ee.projection,ke),k(ke,ke),ae=0;ae<3;++ae)ee.eyePosition[ae]=ke[12+ae]/ke[15];var Se=ke[15];for(ae=0;ae<3;++ae)Se+=this.lightPosition[ae]*ke[4*ae+3];for(ae=0;ae<3;++ae){var ge=ke[12+ae];for(Te=0;Te<3;++Te)ge+=ke[4*Te+ae]*this.lightPosition[Te];ee.lightPosition[ae]=ge/Se}var Le=O(ee,this);if(Le.showSurface){for(this._shader.bind(),this._shader.uniforms=ee,this._vao.bind(),this.showSurface&&this._vertexCount&&this._vao.draw(ue.TRIANGLES,this._vertexCount),ae=0;ae<3;++ae)!this.surfaceProject[ae]||!this.vertexCount||(this._shader.uniforms.model=Le.projections[ae],this._shader.uniforms.clipBounds=Le.clipBounds[ae],this._vao.draw(ue.TRIANGLES,this._vertexCount));this._vao.unbind()}if(Le.showContour){var Ce=this._contourShader;ee.kambient=1,ee.kdiffuse=0,ee.kspecular=0,ee.opacity=1,Ce.bind(),Ce.uniforms=ee;var le=this._contourVAO;for(le.bind(),ae=0;ae<3;++ae)for(Ce.uniforms.permutation=E[ae],ue.lineWidth(this.contourWidth[ae]*this.pixelRatio),Te=0;Te>4)/16)/255,ae=Math.floor(ee),ce=ee-ae,Te=re[1]*(Q.value[1]+(Q.value[2]&15)/16)/255,ke=Math.floor(Te),Se=Te-ke;ae+=1,ke+=1;var ge=ue.position;ge[0]=ge[1]=ge[2]=0;for(var Le=0;Le<2;++Le)for(var Ce=Le?ce:1-ce,le=0;le<2;++le)for(var Y=le?Se:1-Se,$=ae+Le,pe=ke+le,oe=Ce*Y,ve=0;ve<3;++ve)ge[ve]+=this._field[ve].get($,pe)*oe;for(var he=this._pickResult.level,me=0;me<3;++me)if(he[me]=S.le(this.contourLevels[me],ge[me]),he[me]<0)this.contourLevels[me].length>0&&(he[me]=0);else if(he[me]Math.abs(ye-ge[me])&&(he[me]+=1)}for(ue.index[0]=ce<.5?ae:ae+1,ue.index[1]=Se<.5?ke:ke+1,ue.uv[0]=ee/re[0],ue.uv[1]=Te/re[1],ve=0;ve<3;++ve)ue.dataCoordinate[ve]=this._field[ve].get(ue.index[0],ue.index[1]);return ue},P.padField=function(Q,re){var ue=re.shape.slice(),ee=Q.shape.slice();x.assign(Q.lo(1,1).hi(ue[0],ue[1]),re),x.assign(Q.lo(1).hi(ue[0],1),re.hi(ue[0],1)),x.assign(Q.lo(1,ee[1]-1).hi(ue[0],1),re.lo(0,ue[1]-1).hi(ue[0],1)),x.assign(Q.lo(0,1).hi(1,ue[1]),re.hi(1)),x.assign(Q.lo(ee[0]-1,1).hi(1,ue[1]),re.lo(ue[0]-1)),Q.set(0,0,re.get(0,0)),Q.set(0,ee[1]-1,re.get(0,ue[1]-1)),Q.set(ee[0]-1,0,re.get(ue[0]-1,0)),Q.set(ee[0]-1,ee[1]-1,re.get(ue[0]-1,ue[1]-1))};function J(Q,re){return Array.isArray(Q)?[re(Q[0]),re(Q[1]),re(Q[2])]:[re(Q),re(Q),re(Q)]}function te(Q){return Array.isArray(Q)?Q.length===3?[Q[0],Q[1],Q[2],1]:[Q[0],Q[1],Q[2],Q[3]]:[0,0,0,1]}function Z(Q){if(Array.isArray(Q)){if(Array.isArray(Q))return[te(Q[0]),te(Q[1]),te(Q[2])];var re=te(Q);return[re.slice(),re.slice(),re.slice()]}}P.update=function(Q){Q=Q||{},this.objectOffset=Q.objectOffset||this.objectOffset,this.dirty=!0,"contourWidth"in Q&&(this.contourWidth=J(Q.contourWidth,Number)),"showContour"in Q&&(this.showContour=J(Q.showContour,Boolean)),"showSurface"in Q&&(this.showSurface=!!Q.showSurface),"contourTint"in Q&&(this.contourTint=J(Q.contourTint,Boolean)),"contourColor"in Q&&(this.contourColor=Z(Q.contourColor)),"contourProject"in Q&&(this.contourProject=J(Q.contourProject,function(Wa){return J(Wa,Boolean)})),"surfaceProject"in Q&&(this.surfaceProject=Q.surfaceProject),"dynamicColor"in Q&&(this.dynamicColor=Z(Q.dynamicColor)),"dynamicTint"in Q&&(this.dynamicTint=J(Q.dynamicTint,Number)),"dynamicWidth"in Q&&(this.dynamicWidth=J(Q.dynamicWidth,Number)),"opacity"in Q&&(this.opacity=Q.opacity),"opacityscale"in Q&&(this.opacityscale=Q.opacityscale),"colorBounds"in Q&&(this.colorBounds=Q.colorBounds),"vertexColor"in Q&&(this.vertexColor=Q.vertexColor?1:0),"colormap"in Q&&this._colorMap.setPixels(this.genColormap(Q.colormap,this.opacityscale));var re=Q.field||Q.coords&&Q.coords[2]||null,ue=!1;if(re||(this._field[2].shape[0]||this._field[2].shape[2]?re=this._field[2].lo(1,1).hi(this._field[2].shape[0]-2,this._field[2].shape[1]-2):re=this._field[2].hi(0,0)),"field"in Q||"coords"in Q){var ee=(re.shape[0]+2)*(re.shape[1]+2);ee>this._field[2].data.length&&(c.freeFloat(this._field[2].data),this._field[2].data=c.mallocFloat(l.nextPow2(ee))),this._field[2]=w(this._field[2].data,[re.shape[0]+2,re.shape[1]+2]),this.padField(this._field[2],re),this.shape=re.shape.slice();for(var ae=this.shape,ce=0;ce<2;++ce)this._field[2].size>this._field[ce].data.length&&(c.freeFloat(this._field[ce].data),this._field[ce].data=c.mallocFloat(this._field[2].size)),this._field[ce]=w(this._field[ce].data,[ae[0]+2,ae[1]+2]);if(Q.coords){var Te=Q.coords;if(!Array.isArray(Te)||Te.length!==3)throw new Error("gl-surface: invalid coordinates for x/y");for(ce=0;ce<2;++ce){var ke=Te[ce];for(le=0;le<2;++le)if(ke.shape[le]!==ae[le])throw new Error("gl-surface: coords have incorrect shape");this.padField(this._field[ce],ke)}}else if(Q.ticks){var Se=Q.ticks;if(!Array.isArray(Se)||Se.length!==2)throw new Error("gl-surface: invalid ticks");for(ce=0;ce<2;++ce){var ge=Se[ce];if((Array.isArray(ge)||ge.length)&&(ge=w(ge)),ge.shape[0]!==ae[ce])throw new Error("gl-surface: invalid tick length");var Le=w(ge.data,ae);Le.stride[ce]=ge.stride[0],Le.stride[ce^1]=0,this.padField(this._field[ce],Le)}}else{for(ce=0;ce<2;++ce){var Ce=[0,0];Ce[ce]=1,this._field[ce]=w(this._field[ce].data,[ae[0]+2,ae[1]+2],Ce,0)}this._field[0].set(0,0,0);for(var le=0;le0){for(var ba=0;ba<5;++ba)Fr.pop();tr-=1}continue e}}}xt.push(tr)}this._contourOffsets[jr]=Zr,this._contourCounts[jr]=xt}var jn=c.mallocFloat(Fr.length);for(ce=0;ceR||D<0||D>R)throw new Error("gl-texture2d: Invalid texture size");return A._shape=[d,D],A.bind(),E.texImage2D(E.TEXTURE_2D,0,A.format,d,D,0,A.format,A.type,null),A._mipLevels=[0],A}function m(A,d,D,E,R,z){this.gl=A,this.handle=d,this.format=R,this.type=z,this._shape=[D,E],this._mipLevels=[0],this._magFilter=A.NEAREST,this._minFilter=A.NEAREST,this._wrapS=A.CLAMP_TO_EDGE,this._wrapT=A.CLAMP_TO_EDGE,this._anisoSamples=1;var I=this,P=[this._wrapS,this._wrapT];Object.defineProperties(P,[{get:function(){return I._wrapS},set:function(F){return I.wrapS=F}},{get:function(){return I._wrapT},set:function(F){return I.wrapT=F}}]),this._wrapVector=P;var L=[this._shape[0],this._shape[1]];Object.defineProperties(L,[{get:function(){return I._shape[0]},set:function(F){return I.width=F}},{get:function(){return I._shape[1]},set:function(F){return I.height=F}}]),this._shapeVector=L}var k=m.prototype;Object.defineProperties(k,{minFilter:{get:function(){return this._minFilter},set:function(A){this.bind();var d=this.gl;if(this.type===d.FLOAT&&f.indexOf(A)>=0&&(d.getExtension("OES_texture_float_linear")||(A=d.NEAREST)),c.indexOf(A)<0)throw new Error("gl-texture2d: Unknown filter mode "+A);return d.texParameteri(d.TEXTURE_2D,d.TEXTURE_MIN_FILTER,A),this._minFilter=A}},magFilter:{get:function(){return this._magFilter},set:function(A){this.bind();var d=this.gl;if(this.type===d.FLOAT&&f.indexOf(A)>=0&&(d.getExtension("OES_texture_float_linear")||(A=d.NEAREST)),c.indexOf(A)<0)throw new Error("gl-texture2d: Unknown filter mode "+A);return d.texParameteri(d.TEXTURE_2D,d.TEXTURE_MAG_FILTER,A),this._magFilter=A}},mipSamples:{get:function(){return this._anisoSamples},set:function(A){var d=this._anisoSamples;if(this._anisoSamples=Math.max(A,1)|0,d!==this._anisoSamples){var D=this.gl.getExtension("EXT_texture_filter_anisotropic");D&&this.gl.texParameterf(this.gl.TEXTURE_2D,D.TEXTURE_MAX_ANISOTROPY_EXT,this._anisoSamples)}return this._anisoSamples}},wrapS:{get:function(){return this._wrapS},set:function(A){if(this.bind(),p.indexOf(A)<0)throw new Error("gl-texture2d: Unknown wrap mode "+A);return this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_WRAP_S,A),this._wrapS=A}},wrapT:{get:function(){return this._wrapT},set:function(A){if(this.bind(),p.indexOf(A)<0)throw new Error("gl-texture2d: Unknown wrap mode "+A);return this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_WRAP_T,A),this._wrapT=A}},wrap:{get:function(){return this._wrapVector},set:function(A){if(Array.isArray(A)||(A=[A,A]),A.length!==2)throw new Error("gl-texture2d: Must specify wrap mode for rows and columns");for(var d=0;d<2;++d)if(p.indexOf(A[d])<0)throw new Error("gl-texture2d: Unknown wrap mode "+A);this._wrapS=A[0],this._wrapT=A[1];var D=this.gl;return this.bind(),D.texParameteri(D.TEXTURE_2D,D.TEXTURE_WRAP_S,this._wrapS),D.texParameteri(D.TEXTURE_2D,D.TEXTURE_WRAP_T,this._wrapT),A}},shape:{get:function(){return this._shapeVector},set:function(A){if(!Array.isArray(A))A=[A|0,A|0];else if(A.length!==2)throw new Error("gl-texture2d: Invalid texture shape");return M(this,A[0]|0,A[1]|0),[A[0]|0,A[1]|0]}},width:{get:function(){return this._shape[0]},set:function(A){return A=A|0,M(this,A,this._shape[1]),A}},height:{get:function(){return this._shape[1]},set:function(A){return A=A|0,M(this,this._shape[0],A),A}}}),k.bind=function(A){var d=this.gl;return A!==void 0&&d.activeTexture(d.TEXTURE0+(A|0)),d.bindTexture(d.TEXTURE_2D,this.handle),A!==void 0?A|0:d.getParameter(d.ACTIVE_TEXTURE)-d.TEXTURE0},k.dispose=function(){this.gl.deleteTexture(this.handle)},k.generateMipmap=function(){this.bind(),this.gl.generateMipmap(this.gl.TEXTURE_2D);for(var A=Math.min(this._shape[0],this._shape[1]),d=0;A>0;++d,A>>>=1)this._mipLevels.indexOf(d)<0&&this._mipLevels.push(d)},k.setPixels=function(A,d,D,E){var R=this.gl;this.bind(),Array.isArray(d)?(E=D,D=d[1]|0,d=d[0]|0):(d=d||0,D=D||0),E=E||0;var z=g(A)?A:A.raw;if(z){var I=this._mipLevels.indexOf(E)<0;I?(R.texImage2D(R.TEXTURE_2D,0,this.format,this.format,this.type,z),this._mipLevels.push(E)):R.texSubImage2D(R.TEXTURE_2D,E,d,D,this.format,this.type,z)}else if(A.shape&&A.stride&&A.data){if(A.shape.length<2||d+A.shape[1]>this._shape[1]>>>E||D+A.shape[0]>this._shape[0]>>>E||d<0||D<0)throw new Error("gl-texture2d: Texture dimensions are out of bounds");b(R,d,D,E,this.format,this.type,this._mipLevels,A)}else throw new Error("gl-texture2d: Unsupported data type")};function S(A,d){return A.length===3?d[2]===1&&d[1]===A[0]*A[2]&&d[0]===A[2]:d[0]===1&&d[1]===A[0]}function b(A,d,D,E,R,z,I,P){var L=P.dtype,F=P.shape.slice();if(F.length<2||F.length>3)throw new Error("gl-texture2d: Invalid ndarray, must be 2d or 3d");var B=0,O=0,V=S(F,P.stride.slice());L==="float32"?B=A.FLOAT:L==="float64"?(B=A.FLOAT,V=!1,L="float32"):L==="uint8"?B=A.UNSIGNED_BYTE:(B=A.UNSIGNED_BYTE,V=!1,L="uint8");var K=1;if(F.length===2)O=A.LUMINANCE,F=[F[0],F[1],1],P=l(P.data,F,[P.stride[0],P.stride[1],1],P.offset);else if(F.length===3){if(F[2]===1)O=A.ALPHA;else if(F[2]===2)O=A.LUMINANCE_ALPHA;else if(F[2]===3)O=A.RGB;else if(F[2]===4)O=A.RGBA;else throw new Error("gl-texture2d: Invalid shape for pixel coords");K=F[2]}else throw new Error("gl-texture2d: Invalid shape for texture");if((O===A.LUMINANCE||O===A.ALPHA)&&(R===A.LUMINANCE||R===A.ALPHA)&&(O=R),O!==R)throw new Error("gl-texture2d: Incompatible texture format for setPixels");var j=P.size,G=I.indexOf(E)<0;if(G&&I.push(E),B===z&&V)P.offset===0&&P.data.length===j?G?A.texImage2D(A.TEXTURE_2D,E,R,F[0],F[1],0,R,z,P.data):A.texSubImage2D(A.TEXTURE_2D,E,d,D,F[0],F[1],R,z,P.data):G?A.texImage2D(A.TEXTURE_2D,E,R,F[0],F[1],0,R,z,P.data.subarray(P.offset,P.offset+j)):A.texSubImage2D(A.TEXTURE_2D,E,d,D,F[0],F[1],R,z,P.data.subarray(P.offset,P.offset+j));else{var q;z===A.FLOAT?q=s.mallocFloat32(j):q=s.mallocUint8(j);var J=l(q,F,[F[2],F[2]*F[0],1]);B===A.FLOAT&&z===A.UNSIGNED_BYTE?w(J,P):u.assign(J,P),G?A.texImage2D(A.TEXTURE_2D,E,R,F[0],F[1],0,R,z,q.subarray(0,j)):A.texSubImage2D(A.TEXTURE_2D,E,d,D,F[0],F[1],R,z,q.subarray(0,j)),z===A.FLOAT?s.freeFloat32(q):s.freeUint8(q)}}function T(A){var d=A.createTexture();return A.bindTexture(A.TEXTURE_2D,d),A.texParameteri(A.TEXTURE_2D,A.TEXTURE_MIN_FILTER,A.NEAREST),A.texParameteri(A.TEXTURE_2D,A.TEXTURE_MAG_FILTER,A.NEAREST),A.texParameteri(A.TEXTURE_2D,A.TEXTURE_WRAP_S,A.CLAMP_TO_EDGE),A.texParameteri(A.TEXTURE_2D,A.TEXTURE_WRAP_T,A.CLAMP_TO_EDGE),d}function h(A,d,D,E,R){var z=A.getParameter(A.MAX_TEXTURE_SIZE);if(d<0||d>z||D<0||D>z)throw new Error("gl-texture2d: Invalid texture shape");if(R===A.FLOAT&&!A.getExtension("OES_texture_float"))throw new Error("gl-texture2d: Floating point textures not supported on this platform");var I=T(A);return A.texImage2D(A.TEXTURE_2D,0,E,d,D,0,E,R,null),new m(A,I,d,D,E,R)}function _(A,d,D,E,R,z){var I=T(A);return A.texImage2D(A.TEXTURE_2D,0,R,R,z,d),new m(A,I,D,E,R,z)}function y(A,d){var D=d.dtype,E=d.shape.slice(),R=A.getParameter(A.MAX_TEXTURE_SIZE);if(E[0]<0||E[0]>R||E[1]<0||E[1]>R)throw new Error("gl-texture2d: Invalid texture size");var z=S(E,d.stride.slice()),I=0;D==="float32"?I=A.FLOAT:D==="float64"?(I=A.FLOAT,z=!1,D="float32"):D==="uint8"?I=A.UNSIGNED_BYTE:(I=A.UNSIGNED_BYTE,z=!1,D="uint8");var P=0;if(E.length===2)P=A.LUMINANCE,E=[E[0],E[1],1],d=l(d.data,E,[d.stride[0],d.stride[1],1],d.offset);else if(E.length===3)if(E[2]===1)P=A.ALPHA;else if(E[2]===2)P=A.LUMINANCE_ALPHA;else if(E[2]===3)P=A.RGB;else if(E[2]===4)P=A.RGBA;else throw new Error("gl-texture2d: Invalid shape for pixel coords");else throw new Error("gl-texture2d: Invalid shape for texture");I===A.FLOAT&&!A.getExtension("OES_texture_float")&&(I=A.UNSIGNED_BYTE,z=!1);var L,F,B=d.size;if(z)d.offset===0&&d.data.length===B?L=d.data:L=d.data.subarray(d.offset,d.offset+B);else{var O=[E[2],E[2]*E[0],1];F=s.malloc(B,D);var V=l(F,E,O,0);(D==="float32"||D==="float64")&&I===A.UNSIGNED_BYTE?w(V,d):u.assign(V,d),L=F.subarray(0,B)}var K=T(A);return A.texImage2D(A.TEXTURE_2D,0,P,E[0],E[1],0,P,I,L),z||s.free(F),new m(A,K,E[0],E[1],P,I)}function v(A){if(arguments.length<=1)throw new Error("gl-texture2d: Missing arguments for texture2d constructor");if(f||x(A),typeof arguments[1]=="number")return h(A,arguments[1],arguments[2],arguments[3]||A.RGBA,arguments[4]||A.UNSIGNED_BYTE);if(Array.isArray(arguments[1]))return h(A,arguments[1][0]|0,arguments[1][1]|0,arguments[2]||A.RGBA,arguments[3]||A.UNSIGNED_BYTE);if(typeof arguments[1]=="object"){var d=arguments[1],D=g(d)?d:d.raw;if(D)return _(A,D,d.width|0,d.height|0,arguments[2]||A.RGBA,arguments[3]||A.UNSIGNED_BYTE);if(d.shape&&d.data&&d.stride)return y(A,d)}throw new Error("gl-texture2d: Invalid arguments for texture2d constructor")}},1433(a){"use strict";function o(i,l,u){l?l.bind():i.bindBuffer(i.ELEMENT_ARRAY_BUFFER,null);var s=i.getParameter(i.MAX_VERTEX_ATTRIBS)|0;if(u){if(u.length>s)throw new Error("gl-vao: Too many vertex attributes");for(var f=0;f1?0:Math.acos(w)}},9226(a){a.exports=o;function o(i,l){return i[0]=Math.ceil(l[0]),i[1]=Math.ceil(l[1]),i[2]=Math.ceil(l[2]),i}},3126(a){a.exports=o;function o(i){var l=new Float32Array(3);return l[0]=i[0],l[1]=i[1],l[2]=i[2],l}},3990(a){a.exports=o;function o(i,l){return i[0]=l[0],i[1]=l[1],i[2]=l[2],i}},1091(a){a.exports=o;function o(){var i=new Float32Array(3);return i[0]=0,i[1]=0,i[2]=0,i}},5911(a){a.exports=o;function o(i,l,u){var s=l[0],f=l[1],c=l[2],p=u[0],x=u[1],g=u[2];return i[0]=f*g-c*x,i[1]=c*p-s*g,i[2]=s*x-f*p,i}},5455(a,o,i){a.exports=i(7056)},7056(a){a.exports=o;function o(i,l){var u=l[0]-i[0],s=l[1]-i[1],f=l[2]-i[2];return Math.sqrt(u*u+s*s+f*f)}},4008(a,o,i){a.exports=i(6690)},6690(a){a.exports=o;function o(i,l,u){return i[0]=l[0]/u[0],i[1]=l[1]/u[1],i[2]=l[2]/u[2],i}},244(a){a.exports=o;function o(i,l){return i[0]*l[0]+i[1]*l[1]+i[2]*l[2]}},2613(a){a.exports=1e-6},9922(a,o,i){a.exports=u;var l=i(2613);function u(s,f){var c=s[0],p=s[1],x=s[2],g=f[0],w=f[1],M=f[2];return Math.abs(c-g)<=l*Math.max(1,Math.abs(c),Math.abs(g))&&Math.abs(p-w)<=l*Math.max(1,Math.abs(p),Math.abs(w))&&Math.abs(x-M)<=l*Math.max(1,Math.abs(x),Math.abs(M))}},9265(a){a.exports=o;function o(i,l){return i[0]===l[0]&&i[1]===l[1]&&i[2]===l[2]}},2681(a){a.exports=o;function o(i,l){return i[0]=Math.floor(l[0]),i[1]=Math.floor(l[1]),i[2]=Math.floor(l[2]),i}},5137(a,o,i){a.exports=u;var l=i(1091)();function u(s,f,c,p,x,g){var w,M;for(f||(f=3),c||(c=0),p?M=Math.min(p*f+c,s.length):M=s.length,w=c;w0&&(c=1/Math.sqrt(c),i[0]=l[0]*c,i[1]=l[1]*c,i[2]=l[2]*c),i}},7636(a){a.exports=o;function o(i,l){l=l||1;var u=Math.random()*2*Math.PI,s=Math.random()*2-1,f=Math.sqrt(1-s*s)*l;return i[0]=Math.cos(u)*f,i[1]=Math.sin(u)*f,i[2]=s*l,i}},6894(a){a.exports=o;function o(i,l,u,s){var f=u[1],c=u[2],p=l[1]-f,x=l[2]-c,g=Math.sin(s),w=Math.cos(s);return i[0]=l[0],i[1]=f+p*w-x*g,i[2]=c+p*g+x*w,i}},109(a){a.exports=o;function o(i,l,u,s){var f=u[0],c=u[2],p=l[0]-f,x=l[2]-c,g=Math.sin(s),w=Math.cos(s);return i[0]=f+x*g+p*w,i[1]=l[1],i[2]=c+x*w-p*g,i}},8692(a){a.exports=o;function o(i,l,u,s){var f=u[0],c=u[1],p=l[0]-f,x=l[1]-c,g=Math.sin(s),w=Math.cos(s);return i[0]=f+p*w-x*g,i[1]=c+p*g+x*w,i[2]=l[2],i}},2447(a){a.exports=o;function o(i,l){return i[0]=Math.round(l[0]),i[1]=Math.round(l[1]),i[2]=Math.round(l[2]),i}},6621(a){a.exports=o;function o(i,l,u){return i[0]=l[0]*u,i[1]=l[1]*u,i[2]=l[2]*u,i}},8489(a){a.exports=o;function o(i,l,u,s){return i[0]=l[0]+u[0]*s,i[1]=l[1]+u[1]*s,i[2]=l[2]+u[2]*s,i}},1463(a){a.exports=o;function o(i,l,u,s){return i[0]=l,i[1]=u,i[2]=s,i}},6141(a,o,i){a.exports=i(2953)},5486(a,o,i){a.exports=i(3066)},2953(a){a.exports=o;function o(i,l){var u=l[0]-i[0],s=l[1]-i[1],f=l[2]-i[2];return u*u+s*s+f*f}},3066(a){a.exports=o;function o(i){var l=i[0],u=i[1],s=i[2];return l*l+u*u+s*s}},2229(a,o,i){a.exports=i(6843)},6843(a){a.exports=o;function o(i,l,u){return i[0]=l[0]-u[0],i[1]=l[1]-u[1],i[2]=l[2]-u[2],i}},492(a){a.exports=o;function o(i,l,u){var s=l[0],f=l[1],c=l[2];return i[0]=s*u[0]+f*u[3]+c*u[6],i[1]=s*u[1]+f*u[4]+c*u[7],i[2]=s*u[2]+f*u[5]+c*u[8],i}},5673(a){a.exports=o;function o(i,l,u){var s=l[0],f=l[1],c=l[2],p=u[3]*s+u[7]*f+u[11]*c+u[15];return p=p||1,i[0]=(u[0]*s+u[4]*f+u[8]*c+u[12])/p,i[1]=(u[1]*s+u[5]*f+u[9]*c+u[13])/p,i[2]=(u[2]*s+u[6]*f+u[10]*c+u[14])/p,i}},264(a){a.exports=o;function o(i,l,u){var s=l[0],f=l[1],c=l[2],p=u[0],x=u[1],g=u[2],w=u[3],M=x*c-g*f,m=g*s-p*c,k=p*f-x*s;return M*=2,m*=2,k*=2,i[0]=s+w*M+x*k-g*m,i[1]=f+w*m+g*M-p*k,i[2]=c+w*k+p*m-x*M,i}},4361(a){a.exports=o;function o(i,l,u){return i[0]=l[0]+u[0],i[1]=l[1]+u[1],i[2]=l[2]+u[2],i[3]=l[3]+u[3],i}},2335(a){a.exports=o;function o(i){var l=new Float32Array(4);return l[0]=i[0],l[1]=i[1],l[2]=i[2],l[3]=i[3],l}},2933(a){a.exports=o;function o(i,l){return i[0]=l[0],i[1]=l[1],i[2]=l[2],i[3]=l[3],i}},7536(a){a.exports=o;function o(){var i=new Float32Array(4);return i[0]=0,i[1]=0,i[2]=0,i[3]=0,i}},4691(a){a.exports=o;function o(i,l){var u=l[0]-i[0],s=l[1]-i[1],f=l[2]-i[2],c=l[3]-i[3];return Math.sqrt(u*u+s*s+f*f+c*c)}},1373(a){a.exports=o;function o(i,l,u){return i[0]=l[0]/u[0],i[1]=l[1]/u[1],i[2]=l[2]/u[2],i[3]=l[3]/u[3],i}},3750(a){a.exports=o;function o(i,l){return i[0]*l[0]+i[1]*l[1]+i[2]*l[2]+i[3]*l[3]}},3390(a){a.exports=o;function o(i,l,u,s){var f=new Float32Array(4);return f[0]=i,f[1]=l,f[2]=u,f[3]=s,f}},9970(a,o,i){a.exports={create:i(7536),clone:i(2335),fromValues:i(3390),copy:i(2933),set:i(4578),add:i(4361),subtract:i(6860),multiply:i(3576),divide:i(1373),min:i(2334),max:i(160),scale:i(9288),scaleAndAdd:i(4844),distance:i(4691),squaredDistance:i(7960),length:i(6808),squaredLength:i(483),negate:i(1498),inverse:i(4494),normalize:i(5177),dot:i(3750),lerp:i(2573),random:i(9131),transformMat4:i(5352),transformQuat:i(4041)}},4494(a){a.exports=o;function o(i,l){return i[0]=1/l[0],i[1]=1/l[1],i[2]=1/l[2],i[3]=1/l[3],i}},6808(a){a.exports=o;function o(i){var l=i[0],u=i[1],s=i[2],f=i[3];return Math.sqrt(l*l+u*u+s*s+f*f)}},2573(a){a.exports=o;function o(i,l,u,s){var f=l[0],c=l[1],p=l[2],x=l[3];return i[0]=f+s*(u[0]-f),i[1]=c+s*(u[1]-c),i[2]=p+s*(u[2]-p),i[3]=x+s*(u[3]-x),i}},160(a){a.exports=o;function o(i,l,u){return i[0]=Math.max(l[0],u[0]),i[1]=Math.max(l[1],u[1]),i[2]=Math.max(l[2],u[2]),i[3]=Math.max(l[3],u[3]),i}},2334(a){a.exports=o;function o(i,l,u){return i[0]=Math.min(l[0],u[0]),i[1]=Math.min(l[1],u[1]),i[2]=Math.min(l[2],u[2]),i[3]=Math.min(l[3],u[3]),i}},3576(a){a.exports=o;function o(i,l,u){return i[0]=l[0]*u[0],i[1]=l[1]*u[1],i[2]=l[2]*u[2],i[3]=l[3]*u[3],i}},1498(a){a.exports=o;function o(i,l){return i[0]=-l[0],i[1]=-l[1],i[2]=-l[2],i[3]=-l[3],i}},5177(a){a.exports=o;function o(i,l){var u=l[0],s=l[1],f=l[2],c=l[3],p=u*u+s*s+f*f+c*c;return p>0&&(p=1/Math.sqrt(p),i[0]=u*p,i[1]=s*p,i[2]=f*p,i[3]=c*p),i}},9131(a,o,i){var l=i(5177),u=i(9288);a.exports=s;function s(f,c){return c=c||1,f[0]=Math.random(),f[1]=Math.random(),f[2]=Math.random(),f[3]=Math.random(),l(f,f),u(f,f,c),f}},9288(a){a.exports=o;function o(i,l,u){return i[0]=l[0]*u,i[1]=l[1]*u,i[2]=l[2]*u,i[3]=l[3]*u,i}},4844(a){a.exports=o;function o(i,l,u,s){return i[0]=l[0]+u[0]*s,i[1]=l[1]+u[1]*s,i[2]=l[2]+u[2]*s,i[3]=l[3]+u[3]*s,i}},4578(a){a.exports=o;function o(i,l,u,s,f){return i[0]=l,i[1]=u,i[2]=s,i[3]=f,i}},7960(a){a.exports=o;function o(i,l){var u=l[0]-i[0],s=l[1]-i[1],f=l[2]-i[2],c=l[3]-i[3];return u*u+s*s+f*f+c*c}},483(a){a.exports=o;function o(i){var l=i[0],u=i[1],s=i[2],f=i[3];return l*l+u*u+s*s+f*f}},6860(a){a.exports=o;function o(i,l,u){return i[0]=l[0]-u[0],i[1]=l[1]-u[1],i[2]=l[2]-u[2],i[3]=l[3]-u[3],i}},5352(a){a.exports=o;function o(i,l,u){var s=l[0],f=l[1],c=l[2],p=l[3];return i[0]=u[0]*s+u[4]*f+u[8]*c+u[12]*p,i[1]=u[1]*s+u[5]*f+u[9]*c+u[13]*p,i[2]=u[2]*s+u[6]*f+u[10]*c+u[14]*p,i[3]=u[3]*s+u[7]*f+u[11]*c+u[15]*p,i}},4041(a){a.exports=o;function o(i,l,u){var s=l[0],f=l[1],c=l[2],p=u[0],x=u[1],g=u[2],w=u[3],M=w*s+x*c-g*f,m=w*f+g*s-p*c,k=w*c+p*f-x*s,S=-p*s-x*f-g*c;return i[0]=M*w+S*-p+m*-g-k*-x,i[1]=m*w+S*-x+k*-p-M*-g,i[2]=k*w+S*-g+M*-x-m*-p,i[3]=l[3],i}},1848(a,o,i){var l=i(4905),u=i(6468);a.exports=s;function s(f){for(var c=Array.isArray(f)?f:l(f),p=0;p0)continue;me=oe.slice(0,1).join("")}return ue(me),j+=me.length,L=L.slice(me.length),L.length}while(!0)}function le(){return/[^a-fA-F0-9]/.test(I)?(ue(L.join("")),z=p,E):(L.push(I),P=I,E+1)}function Y(){return I==="."||/[eE]/.test(I)?(L.push(I),z=S,P=I,E+1):I==="x"&&L.length===1&&L[0]==="0"?(z=v,L.push(I),P=I,E+1):/[^\d]/.test(I)?(ue(L.join("")),z=p,E):(L.push(I),P=I,E+1)}function $(){return I==="f"&&(L.push(I),P=I,E+=1),/[eE]/.test(I)||(I==="-"||I==="+")&&/[eE]/.test(P)?(L.push(I),P=I,E+1):/[^\d]/.test(I)?(ue(L.join("")),z=p,E):(L.push(I),P=I,E+1)}function pe(){if(/[^\d\w_]/.test(I)){var oe=L.join("");return re[oe]?z=h:Q[oe]?z=T:z=b,ue(L.join("")),z=p,E}return L.push(I),P=I,E+1}}},3508(a,o,i){var l=i(6852);l=l.slice().filter(function(u){return!/^(gl\_|texture)/.test(u)}),a.exports=l.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"])},6852(a){a.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"]},7932(a,o,i){var l=i(620);a.exports=l.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"])},620(a){a.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"]},7827(a){a.exports=["<<=",">>=","++","--","<<",">>","<=",">=","==","!=","&&","||","+=","-=","*=","/=","%=","&=","^^","^=","|=","(",")","[","]",".","!","~","*","/","%","+","-","<",">","&","^","|","?",":","=",",",";","{","}"]},4905(a,o,i){var l=i(5874);a.exports=u;function u(s,f){var c=l(f),p=[];return p=p.concat(c(s)),p=p.concat(c(null)),p}},3236(a){a.exports=function(o){typeof o=="string"&&(o=[o]);for(var i=[].slice.call(arguments,1),l=[],u=0;u>1,M=-7,m=u?f-1:0,k=u?-1:1,S=i[l+m];for(m+=k,c=S&(1<<-M)-1,S>>=-M,M+=x;M>0;c=c*256+i[l+m],m+=k,M-=8);for(p=c&(1<<-M)-1,c>>=-M,M+=s;M>0;p=p*256+i[l+m],m+=k,M-=8);if(c===0)c=1-w;else{if(c===g)return p?NaN:(S?-1:1)*(1/0);p=p+Math.pow(2,s),c=c-w}return(S?-1:1)*p*Math.pow(2,c-s)},o.write=function(i,l,u,s,f,c){var p,x,g,w=c*8-f-1,M=(1<>1,k=f===23?Math.pow(2,-24)-Math.pow(2,-77):0,S=s?0:c-1,b=s?1:-1,T=l<0||l===0&&1/l<0?1:0;for(l=Math.abs(l),isNaN(l)||l===1/0?(x=isNaN(l)?1:0,p=M):(p=Math.floor(Math.log(l)/Math.LN2),l*(g=Math.pow(2,-p))<1&&(p--,g*=2),p+m>=1?l+=k/g:l+=k*Math.pow(2,1-m),l*g>=2&&(p++,g/=2),p+m>=M?(x=0,p=M):p+m>=1?(x=(l*g-1)*Math.pow(2,f),p=p+m):(x=l*Math.pow(2,m-1)*Math.pow(2,f),p=0));f>=8;i[u+S]=x&255,S+=b,x/=256,f-=8);for(p=p<0;i[u+S]=p&255,S+=b,p/=256,w-=8);i[u+S-b]|=T*128}},8954(a,o,i){"use strict";a.exports=m;var l=i(3250),u=i(6803).Fw;function s(k,S,b){this.vertices=k,this.adjacent=S,this.boundary=b,this.lastVisited=-1}s.prototype.flip=function(){var k=this.vertices[0];this.vertices[0]=this.vertices[1],this.vertices[1]=k;var S=this.adjacent[0];this.adjacent[0]=this.adjacent[1],this.adjacent[1]=S};function f(k,S,b){this.vertices=k,this.cell=S,this.index=b}function c(k,S){return u(k.vertices,S.vertices)}function p(k){return function(){var S=this.tuple;return k.apply(this,S)}}function x(k){var S=l[k+1];return S||(S=l),p(S)}var g=[];function w(k,S,b){this.dimension=k,this.vertices=S,this.simplices=b,this.interior=b.filter(function(_){return!_.boundary}),this.tuple=new Array(k+1);for(var T=0;T<=k;++T)this.tuple[T]=this.vertices[T];var h=g[k];h||(h=g[k]=x(k)),this.orient=h}var M=w.prototype;M.handleBoundaryDegeneracy=function(k,S){var b=this.dimension,T=this.vertices.length-1,h=this.tuple,_=this.vertices,y=[k];for(k.lastVisited=-T;y.length>0;){k=y.pop();for(var v=k.adjacent,A=0;A<=b;++A){var d=v[A];if(!(!d.boundary||d.lastVisited<=-T)){for(var D=d.vertices,E=0;E<=b;++E){var R=D[E];R<0?h[E]=S:h[E]=_[R]}var z=this.orient();if(z>0)return d;d.lastVisited=-T,z===0&&y.push(d)}}}return null},M.walk=function(k,S){var b=this.vertices.length-1,T=this.dimension,h=this.vertices,_=this.tuple,y=S?this.interior.length*Math.random()|0:this.interior.length-1,v=this.interior[y];e:for(;!v.boundary;){for(var A=v.vertices,d=v.adjacent,D=0;D<=T;++D)_[D]=h[A[D]];v.lastVisited=b;for(var D=0;D<=T;++D){var E=d[D];if(!(E.lastVisited>=b)){var R=_[D];_[D]=k;var z=this.orient();if(_[D]=R,z<0){v=E;continue e}else E.boundary?E.lastVisited=-b:E.lastVisited=b}}return}return v},M.addPeaks=function(k,S){var b=this.vertices.length-1,T=this.dimension,h=this.vertices,_=this.tuple,y=this.interior,v=this.simplices,A=[S];S.lastVisited=b,S.vertices[S.vertices.indexOf(-1)]=b,S.boundary=!1,y.push(S);for(var d=[];A.length>0;){var S=A.pop(),D=S.vertices,E=S.adjacent,R=D.indexOf(b);if(!(R<0)){for(var z=0;z<=T;++z)if(z!==R){var I=E[z];if(!(!I.boundary||I.lastVisited>=b)){var P=I.vertices;if(I.lastVisited!==-b){for(var L=0,F=0;F<=T;++F)P[F]<0?(L=F,_[F]=k):_[F]=h[P[F]];var B=this.orient();if(B>0){P[L]=b,I.boundary=!1,y.push(I),A.push(I),I.lastVisited=b;continue}else I.lastVisited=-b}var O=I.adjacent,V=D.slice(),K=E.slice(),j=new s(V,K,!0);v.push(j);var G=O.indexOf(S);if(!(G<0)){O[G]=j,K[R]=I,V[z]=-1,K[z]=S,E[z]=j,j.flip();for(var F=0;F<=T;++F){var q=V[F];if(!(q<0||q===b)){for(var J=new Array(T-1),te=0,Z=0;Z<=T;++Z){var ie=V[Z];ie<0||Z===F||(J[te++]=ie)}d.push(new f(J,j,F))}}}}}}}d.sort(c);for(var z=0;z+1=0?y[A++]=v[D]:d=D&1;if(d===(k&1)){var E=y[0];y[0]=y[1],y[1]=E}S.push(y)}}return S};function m(k,S){var b=k.length;if(b===0)throw new Error("Must have at least d+1 points");var T=k[0].length;if(b<=T)throw new Error("Must input at least d+1 points");var h=k.slice(0,T+1),_=l.apply(void 0,h);if(_===0)throw new Error("Input not in general position");for(var y=new Array(T+1),v=0;v<=T;++v)y[v]=v;_<0&&(y[0]=1,y[1]=0);for(var A=new s(y,new Array(T+1),!1),d=A.adjacent,D=new Array(T+2),v=0;v<=T;++v){for(var E=y.slice(),R=0;R<=T;++R)R===v&&(E[R]=-1);var z=E[0];E[0]=E[1],E[1]=z;var I=new s(E,new Array(T+1),!0);d[v]=I,D[v]=I}D[T+1]=A;for(var v=0;v<=T;++v)for(var E=d[v].vertices,P=d[v].adjacent,R=0;R<=T;++R){var L=E[R];if(L<0){P[R]=A;continue}for(var F=0;F<=T;++F)d[F].vertices.indexOf(L)<0&&(P[R]=d[F])}for(var B=new w(T,h,D),O=!!S,v=T+1;v3*(D+1)?w(this,d):this.left.insert(d):this.left=_([d]);else if(d[0]>this.mid)this.right?4*(this.right.count+1)>3*(D+1)?w(this,d):this.right.insert(d):this.right=_([d]);else{var E=l.ge(this.leftPoints,d,T),R=l.ge(this.rightPoints,d,h);this.leftPoints.splice(E,0,d),this.rightPoints.splice(R,0,d)}},p.remove=function(d){var D=this.count-this.leftPoints;if(d[1]3*(D-1))return M(this,d);var R=this.left.remove(d);return R===f?(this.left=null,this.count-=1,s):(R===s&&(this.count-=1),R)}else if(d[0]>this.mid){if(!this.right)return u;var z=this.left?this.left.count:0;if(4*z>3*(D-1))return M(this,d);var R=this.right.remove(d);return R===f?(this.right=null,this.count-=1,s):(R===s&&(this.count-=1),R)}else{if(this.count===1)return this.leftPoints[0]===d?f:u;if(this.leftPoints.length===1&&this.leftPoints[0]===d){if(this.left&&this.right){for(var I=this,P=this.left;P.right;)I=P,P=P.right;if(I===this)P.right=this.right;else{var L=this.left,R=this.right;I.count-=P.count,I.right=P.left,P.left=L,P.right=R}x(this,P),this.count=(this.left?this.left.count:0)+(this.right?this.right.count:0)+this.leftPoints.length}else this.left?x(this,this.left):x(this,this.right);return s}for(var L=l.ge(this.leftPoints,d,T);L=0&&d[R][1]>=D;--R){var z=E(d[R]);if(z)return z}}function S(d,D){for(var E=0;Ethis.mid){if(this.right){var E=this.right.queryPoint(d,D);if(E)return E}return k(this.rightPoints,d,D)}else return S(this.leftPoints,D)},p.queryInterval=function(d,D,E){if(dthis.mid&&this.right){var R=this.right.queryInterval(d,D,E);if(R)return R}return Dthis.mid?k(this.rightPoints,d,E):S(this.leftPoints,E)};function b(d,D){return d-D}function T(d,D){var E=d[0]-D[0];return E||d[1]-D[1]}function h(d,D){var E=d[1]-D[1];return E||d[0]-D[0]}function _(d){if(d.length===0)return null;for(var D=[],E=0;E>1],z=[],I=[],P=[],E=0;E1&&f.indexOf("Macintosh")!==-1&&f.indexOf("Safari")!==-1&&(c=!0),c}},5219(a){"use strict";a.exports=function(o){for(var i=o.length,l,u=0;u13)&&l!==32&&l!==133&&l!==160&&l!==5760&&l!==6158&&(l<8192||l>8205)&&l!==8232&&l!==8233&&l!==8239&&l!==8287&&l!==8288&&l!==12288&&l!==65279)return!1;return!0}},395(a){function o(i,l,u){return i*(1-u)+l*u}a.exports=o},2652(a,o,i){var l=i(4335),u=i(6864),s=i(1903),f=i(9921),c=i(7608),p=i(5665),x={length:i(1387),normalize:i(3536),dot:i(244),cross:i(5911)},g=u(),w=u(),M=[0,0,0,0],m=[[0,0,0],[0,0,0],[0,0,0]],k=[0,0,0];a.exports=function(_,y,v,A,d,D){if(y||(y=[0,0,0]),v||(v=[0,0,0]),A||(A=[0,0,0]),d||(d=[0,0,0,1]),D||(D=[0,0,0,1]),!l(g,_)||(s(w,g),w[3]=0,w[7]=0,w[11]=0,w[15]=1,Math.abs(f(w)<1e-8)))return!1;var E=g[3],R=g[7],z=g[11],I=g[12],P=g[13],L=g[14],F=g[15];if(E!==0||R!==0||z!==0){M[0]=E,M[1]=R,M[2]=z,M[3]=F;var B=c(w,w);if(!B)return!1;p(w,w),S(d,M,w)}else d[0]=d[1]=d[2]=0,d[3]=1;if(y[0]=I,y[1]=P,y[2]=L,b(m,g),v[0]=x.length(m[0]),x.normalize(m[0],m[0]),A[0]=x.dot(m[0],m[1]),T(m[1],m[1],m[0],1,-A[0]),v[1]=x.length(m[1]),x.normalize(m[1],m[1]),A[0]/=v[1],A[1]=x.dot(m[0],m[2]),T(m[2],m[2],m[0],1,-A[1]),A[2]=x.dot(m[1],m[2]),T(m[2],m[2],m[1],1,-A[2]),v[2]=x.length(m[2]),x.normalize(m[2],m[2]),A[1]/=v[2],A[2]/=v[2],x.cross(k,m[1],m[2]),x.dot(m[0],k)<0)for(var O=0;O<3;O++)v[O]*=-1,m[O][0]*=-1,m[O][1]*=-1,m[O][2]*=-1;return D[0]=.5*Math.sqrt(Math.max(1+m[0][0]-m[1][1]-m[2][2],0)),D[1]=.5*Math.sqrt(Math.max(1-m[0][0]+m[1][1]-m[2][2],0)),D[2]=.5*Math.sqrt(Math.max(1-m[0][0]-m[1][1]+m[2][2],0)),D[3]=.5*Math.sqrt(Math.max(1+m[0][0]+m[1][1]+m[2][2],0)),m[2][1]>m[1][2]&&(D[0]=-D[0]),m[0][2]>m[2][0]&&(D[1]=-D[1]),m[1][0]>m[0][1]&&(D[2]=-D[2]),!0};function S(h,_,y){var v=_[0],A=_[1],d=_[2],D=_[3];return h[0]=y[0]*v+y[4]*A+y[8]*d+y[12]*D,h[1]=y[1]*v+y[5]*A+y[9]*d+y[13]*D,h[2]=y[2]*v+y[6]*A+y[10]*d+y[14]*D,h[3]=y[3]*v+y[7]*A+y[11]*d+y[15]*D,h}function b(h,_){h[0][0]=_[0],h[0][1]=_[1],h[0][2]=_[2],h[1][0]=_[4],h[1][1]=_[5],h[1][2]=_[6],h[2][0]=_[8],h[2][1]=_[9],h[2][2]=_[10]}function T(h,_,y,v,A){h[0]=_[0]*v+y[0]*A,h[1]=_[1]*v+y[1]*A,h[2]=_[2]*v+y[2]*A}},4335(a){a.exports=function(i,l){var u=l[15];if(u===0)return!1;for(var s=1/u,f=0;f<16;f++)i[f]=l[f]*s;return!0}},7442(a,o,i){var l=i(6658),u=i(7182),s=i(2652),f=i(9921),c=i(8648),p=M(),x=M(),g=M();a.exports=w;function w(S,b,T,h){if(f(b)===0||f(T)===0)return!1;var _=s(b,p.translate,p.scale,p.skew,p.perspective,p.quaternion),y=s(T,x.translate,x.scale,x.skew,x.perspective,x.quaternion);return!_||!y?!1:(l(g.translate,p.translate,x.translate,h),l(g.skew,p.skew,x.skew,h),l(g.scale,p.scale,x.scale,h),l(g.perspective,p.perspective,x.perspective,h),c(g.quaternion,p.quaternion,x.quaternion,h),u(S,g.translate,g.scale,g.skew,g.perspective,g.quaternion),!0)}function M(){return{translate:m(),scale:m(1),skew:m(),perspective:k(),quaternion:k()}}function m(S){return[S||0,S||0,S||0]}function k(){return[0,0,0,1]}},7182(a,o,i){var l={identity:i(7894),translate:i(7656),multiply:i(6760),create:i(6864),scale:i(2504),fromRotationTranslation:i(6743)},u=l.create(),s=l.create();a.exports=function(c,p,x,g,w,M){return l.identity(c),l.fromRotationTranslation(c,M,p),c[3]=w[0],c[7]=w[1],c[11]=w[2],c[15]=w[3],l.identity(s),g[2]!==0&&(s[9]=g[2],l.multiply(c,c,s)),g[1]!==0&&(s[9]=0,s[8]=g[1],l.multiply(c,c,s)),g[0]!==0&&(s[8]=0,s[4]=g[0],l.multiply(c,c,s)),l.scale(c,c,x),c}},1811(a,o,i){"use strict";var l=i(2478),u=i(7442),s=i(7608),f=i(5567),c=i(2408),p=i(7089),x=i(6582),g=i(7656),w=i(2504),M=i(3536),m=[0,0,0];a.exports=T;function k(h){this._components=h.slice(),this._time=[0],this.prevMatrix=h.slice(),this.nextMatrix=h.slice(),this.computedMatrix=h.slice(),this.computedInverse=h.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 S=k.prototype;S.recalcMatrix=function(h){var _=this._time,y=l.le(_,h),v=this.computedMatrix;if(!(y<0)){var A=this._components;if(y===_.length-1)for(var d=16*y,D=0;D<16;++D)v[D]=A[d++];else{for(var E=_[y+1]-_[y],d=16*y,R=this.prevMatrix,z=!0,D=0;D<16;++D)R[D]=A[d++];for(var I=this.nextMatrix,D=0;D<16;++D)I[D]=A[d++],z=z&&R[D]===I[D];if(E<1e-6||z)for(var D=0;D<16;++D)v[D]=R[D];else u(v,R,I,(h-_[y])/E)}var P=this.computedUp;P[0]=v[1],P[1]=v[5],P[2]=v[9],M(P,P);var L=this.computedInverse;s(L,v);var F=this.computedEye,B=L[15];F[0]=L[12]/B,F[1]=L[13]/B,F[2]=L[14]/B;for(var O=this.computedCenter,V=Math.exp(this.computedRadius[0]),D=0;D<3;++D)O[D]=F[D]-v[2+4*D]*V}},S.idle=function(h){if(!(h1&&l(s[x[m-2]],s[x[m-1]],M)<=0;)m-=1,x.pop();for(x.push(w),m=g.length;m>1&&l(s[g[m-2]],s[g[m-1]],M)>=0;)m-=1,g.pop();g.push(w)}for(var k=new Array(g.length+x.length-2),S=0,c=0,b=x.length;c0;--T)k[S++]=g[T];return k}},351(a,o,i){"use strict";a.exports=u;var l=i(4687);function u(s,f){f||(f=s,s=window);var c=0,p=0,x=0,g={shift:!1,alt:!1,control:!1,meta:!1},w=!1;function M(d){var D=!1;return"altKey"in d&&(D=D||d.altKey!==g.alt,g.alt=!!d.altKey),"shiftKey"in d&&(D=D||d.shiftKey!==g.shift,g.shift=!!d.shiftKey),"ctrlKey"in d&&(D=D||d.ctrlKey!==g.control,g.control=!!d.ctrlKey),"metaKey"in d&&(D=D||d.metaKey!==g.meta,g.meta=!!d.metaKey),D}function m(d,D){var E=l.x(D),R=l.y(D);"buttons"in D&&(d=D.buttons|0),(d!==c||E!==p||R!==x||M(D))&&(c=d|0,p=E||0,x=R||0,f&&f(c,p,x,g))}function k(d){m(0,d)}function S(){(c||p||x||g.shift||g.alt||g.meta||g.control)&&(p=x=0,c=0,g.shift=g.alt=g.control=g.meta=!1,f&&f(0,0,0,g))}function b(d){M(d)&&f&&f(c,p,x,g)}function T(d){l.buttons(d)===0?m(0,d):m(c,d)}function h(d){m(c|l.buttons(d),d)}function _(d){m(c&~l.buttons(d),d)}function y(){w||(w=!0,s.addEventListener("mousemove",T),s.addEventListener("mousedown",h),s.addEventListener("mouseup",_),s.addEventListener("mouseleave",k),s.addEventListener("mouseenter",k),s.addEventListener("mouseout",k),s.addEventListener("mouseover",k),s.addEventListener("blur",S),s.addEventListener("keyup",b),s.addEventListener("keydown",b),s.addEventListener("keypress",b),s!==window&&(window.addEventListener("blur",S),window.addEventListener("keyup",b),window.addEventListener("keydown",b),window.addEventListener("keypress",b)))}function v(){w&&(w=!1,s.removeEventListener("mousemove",T),s.removeEventListener("mousedown",h),s.removeEventListener("mouseup",_),s.removeEventListener("mouseleave",k),s.removeEventListener("mouseenter",k),s.removeEventListener("mouseout",k),s.removeEventListener("mouseover",k),s.removeEventListener("blur",S),s.removeEventListener("keyup",b),s.removeEventListener("keydown",b),s.removeEventListener("keypress",b),s!==window&&(window.removeEventListener("blur",S),window.removeEventListener("keyup",b),window.removeEventListener("keydown",b),window.removeEventListener("keypress",b)))}y();var A={element:s};return Object.defineProperties(A,{enabled:{get:function(){return w},set:function(d){d?y():v()},enumerable:!0},buttons:{get:function(){return c},enumerable:!0},x:{get:function(){return p},enumerable:!0},y:{get:function(){return x},enumerable:!0},mods:{get:function(){return g},enumerable:!0}}),A}},24(a){var o={left:0,top:0};a.exports=i;function i(u,s,f){s=s||u.currentTarget||u.srcElement,Array.isArray(f)||(f=[0,0]);var c=u.clientX||0,p=u.clientY||0,x=l(s);return f[0]=c-x.left,f[1]=p-x.top,f}function l(u){return u===window||u===document||u===document.body?o:u.getBoundingClientRect()}},4687(a,o){"use strict";function i(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(K=1,q[te++]=g(y[D],S,b,T),D+=B,h>0)for(V=1,E=y[D],Z=q[te]=g(E,S,b,T),re=q[te+ie],ae=q[te+ue],ke=q[te+ce],(Z!==re||Z!==ae||Z!==ke)&&(z=y[D+R],P=y[D+I],F=y[D+L],p(V,K,E,z,P,F,Z,re,ae,ke,S,b,T),Se=J[te]=j++),te+=1,D+=B,V=2;V0)for(V=1,E=y[D],Z=q[te]=g(E,S,b,T),re=q[te+ie],ae=q[te+ue],ke=q[te+ce],(Z!==re||Z!==ae||Z!==ke)&&(z=y[D+R],P=y[D+I],F=y[D+L],p(V,K,E,z,P,F,Z,re,ae,ke,S,b,T),Se=J[te]=j++,ke!==ae&&x(J[te+ue],Se,P,F,ae,ke,S,b,T)),te+=1,D+=B,V=2;V0){if(V=1,q[te++]=g(y[D],S,b,T),D+=B,_>0)for(K=1,E=y[D],Z=q[te]=g(E,S,b,T),ae=q[te+ue],re=q[te+ie],ke=q[te+ce],(Z!==ae||Z!==re||Z!==ke)&&(z=y[D+R],P=y[D+I],F=y[D+L],p(V,K,E,z,P,F,Z,ae,re,ke,S,b,T),Se=J[te]=j++),te+=1,D+=B,K=2;K<_;++K)E=y[D],Z=q[te]=g(E,S,b,T),ae=q[te+ue],re=q[te+ie],ke=q[te+ce],(Z!==ae||Z!==re||Z!==ke)&&(z=y[D+R],P=y[D+I],F=y[D+L],p(V,K,E,z,P,F,Z,ae,re,ke,S,b,T),Se=J[te]=j++,ke!==re&&x(J[te+ie],Se,P,F,re,ke,S,b,T)),te+=1,D+=B;for(D+=O,te=0,ge=ue,ue=ee,ee=ge,ge=ie,ie=Q,Q=ge,ge=ce,ce=Te,Te=ge,V=2;V0)for(K=1,E=y[D],Z=q[te]=g(E,S,b,T),ae=q[te+ue],re=q[te+ie],ke=q[te+ce],(Z!==ae||Z!==re||Z!==ke)&&(z=y[D+R],P=y[D+I],F=y[D+L],p(V,K,E,z,P,F,Z,ae,re,ke,S,b,T),Se=J[te]=j++,ke!==ae&&x(J[te+ue],Se,F,z,ke,ae,S,b,T)),te+=1,D+=B,K=2;K<_;++K)E=y[D],Z=q[te]=g(E,S,b,T),ae=q[te+ue],re=q[te+ie],ke=q[te+ce],(Z!==ae||Z!==re||Z!==ke)&&(z=y[D+R],P=y[D+I],F=y[D+L],p(V,K,E,z,P,F,Z,ae,re,ke,S,b,T),Se=J[te]=j++,ke!==re&&x(J[te+ie],Se,P,F,re,ke,S,b,T),ke!==ae&&x(J[te+ue],Se,F,z,ke,ae,S,b,T)),te+=1,D+=B;V&1&&(te=0),ge=ue,ue=ee,ee=ge,ge=ie,ie=Q,Q=ge,ge=ce,ce=Te,Te=ge,D+=O}}M(J),M(q)}}};function s(c,p,x,g,w,M){var m=[M,w].join(","),k=u[m];return k(c,p,x,l.mallocUint32,l.freeUint32)}function f(c){function p(S){throw new Error("ndarray-extract-contour: "+S)}typeof c!="object"&&p("Must specify arguments");var x=c.order;Array.isArray(x)||p("Must specify order");var g=c.arrayArguments||1;g<1&&p("Must have at least one array argument");var w=c.scalarArguments||0;w<0&&p("Scalar arg count must be > 0"),typeof c.vertex!="function"&&p("Must specify vertex creation function"),typeof c.cell!="function"&&p("Must specify cell creation function"),typeof c.phase!="function"&&p("Must specify phase function");for(var M=c.getters||[],m=new Array(g),k=0;k=0?m[k]=!0:m[k]=!1;return s(c.vertex,c.cell,c.phase,w,x,m)}},6199(a,o,i){"use strict";var l=i(1338),u={zero:function(T,h,_,y){var v=T[0],A=_[0];y|=0;var d=0,D=A;for(d=0;d2&&d[1]>2&&y(A.pick(-1,-1).lo(1,1).hi(d[0]-2,d[1]-2),v.pick(-1,-1,0).lo(1,1).hi(d[0]-2,d[1]-2),v.pick(-1,-1,1).lo(1,1).hi(d[0]-2,d[1]-2)),d[1]>2&&(_(A.pick(0,-1).lo(1).hi(d[1]-2),v.pick(0,-1,1).lo(1).hi(d[1]-2)),h(v.pick(0,-1,0).lo(1).hi(d[1]-2))),d[1]>2&&(_(A.pick(d[0]-1,-1).lo(1).hi(d[1]-2),v.pick(d[0]-1,-1,1).lo(1).hi(d[1]-2)),h(v.pick(d[0]-1,-1,0).lo(1).hi(d[1]-2))),d[0]>2&&(_(A.pick(-1,0).lo(1).hi(d[0]-2),v.pick(-1,0,0).lo(1).hi(d[0]-2)),h(v.pick(-1,0,1).lo(1).hi(d[0]-2))),d[0]>2&&(_(A.pick(-1,d[1]-1).lo(1).hi(d[0]-2),v.pick(-1,d[1]-1,0).lo(1).hi(d[0]-2)),h(v.pick(-1,d[1]-1,1).lo(1).hi(d[0]-2))),v.set(0,0,0,0),v.set(0,0,1,0),v.set(d[0]-1,0,0,0),v.set(d[0]-1,0,1,0),v.set(0,d[1]-1,0,0),v.set(0,d[1]-1,1,0),v.set(d[0]-1,d[1]-1,0,0),v.set(d[0]-1,d[1]-1,1,0),v}}function b(T){var h=T.join(),d=g[h];if(d)return d;for(var _=T.length,y=[M,m],v=1;v<=_;++v)y.push(k(v));var A=S,d=A.apply(void 0,y);return g[h]=d,d}a.exports=function(h,_,y){if(Array.isArray(y)||(typeof y=="string"?y=l(_.dimension,y):y=l(_.dimension,"clamp")),_.size===0)return h;if(_.dimension===0)return h.set(0),h;var v=b(y);return v(h,_)}},4317(a){"use strict";function o(f,c){var p=Math.floor(c),x=c-p,g=0<=p&&p0;){P<64?(h=P,P=0):(h=64,P-=64);for(var L=g[1]|0;L>0;){L<64?(_=L,L=0):(_=64,L-=64),m=z+P*v+L*A,b=I+P*D+L*E;var F=0,B=0,O=0,V=d,K=v-y*d,j=A-h*v,G=R,q=D-y*R,J=E-h*D;for(O=0;O<_;++O){for(B=0;B0;){E<64?(h=E,E=0):(h=64,E-=64);for(var R=g[0]|0;R>0;){R<64?(T=R,R=0):(T=64,R-=64),m=d+E*y+R*_,b=D+E*A+R*v;var z=0,I=0,P=y,L=_-h*y,F=A,B=v-h*A;for(I=0;I0;){I<64?(_=I,I=0):(_=64,I-=64);for(var P=g[0]|0;P>0;){P<64?(T=P,P=0):(T=64,P-=64);for(var L=g[1]|0;L>0;){L<64?(h=L,L=0):(h=64,L-=64),m=R+I*A+P*y+L*v,b=z+I*E+P*d+L*D;var F=0,B=0,O=0,V=A,K=y-_*A,j=v-T*y,G=E,q=d-_*E,J=D-T*d;for(O=0;Ok;){F=0,B=z-h;r:for(P=0;PV)break r;B+=d,F+=D}for(F=z,B=z-h,P=0;P>1,L=P-R,F=P+R,B=z,O=L,V=P,K=F,j=I,G=S+1,q=b-1,J=!0,te,Z,ie,Q,re,ue,ee,ae,ce,Te=0,ke=0,Se=0,ge,Le,Ce,le,Y,$,pe,oe,ve,he,me,be,ye,de,xe,Ae,Pe=A,Fe=M(Pe),Ye=M(Pe);Le=_*B,Ce=_*O,Ae=h;e:for(ge=0;ge0){Z=B,B=O,O=Z;break e}if(Se<0)break e;Ae+=D}Le=_*K,Ce=_*j,Ae=h;e:for(ge=0;ge0){Z=K,K=j,j=Z;break e}if(Se<0)break e;Ae+=D}Le=_*B,Ce=_*V,Ae=h;e:for(ge=0;ge0){Z=B,B=V,V=Z;break e}if(Se<0)break e;Ae+=D}Le=_*O,Ce=_*V,Ae=h;e:for(ge=0;ge0){Z=O,O=V,V=Z;break e}if(Se<0)break e;Ae+=D}Le=_*B,Ce=_*K,Ae=h;e:for(ge=0;ge0){Z=B,B=K,K=Z;break e}if(Se<0)break e;Ae+=D}Le=_*V,Ce=_*K,Ae=h;e:for(ge=0;ge0){Z=V,V=K,K=Z;break e}if(Se<0)break e;Ae+=D}Le=_*O,Ce=_*j,Ae=h;e:for(ge=0;ge0){Z=O,O=j,j=Z;break e}if(Se<0)break e;Ae+=D}Le=_*O,Ce=_*V,Ae=h;e:for(ge=0;ge0){Z=O,O=V,V=Z;break e}if(Se<0)break e;Ae+=D}Le=_*K,Ce=_*j,Ae=h;e:for(ge=0;ge0){Z=K,K=j,j=Z;break e}if(Se<0)break e;Ae+=D}for(Le=_*B,Ce=_*O,le=_*V,Y=_*K,$=_*j,pe=_*z,oe=_*P,ve=_*I,xe=0,Ae=h,ge=0;ge0)q--;else if(Se<0){for(Le=_*ue,Ce=_*G,le=_*q,Ae=h,ge=0;ge0)for(;;){ee=h+q*_,xe=0;e:for(ge=0;ge0){if(--qI){e:for(;;){for(ee=h+G*_,xe=0,Ae=h,ge=0;ge1&&k?b(m,k[0],k[1]):b(m)}var x={"uint32,1,0":function(w,M){return function(m){var k=m.data,S=m.offset|0,b=m.shape,T=m.stride,h=T[0]|0,_=b[0]|0,y=T[1]|0,v=b[1]|0,A=y,d=y,D=1;_<=32?w(0,_-1,k,S,h,y,_,v,A,d,D):M(0,_-1,k,S,h,y,_,v,A,d,D)}}};function g(w,M){var m=[M,w].join(","),k=x[m],S=f(w,M),b=p(w,M,S);return k(S,b)}a.exports=g},446(a,o,i){"use strict";var l=i(7640),u={};function s(f){var c=f.order,p=f.dtype,x=[c,p],g=x.join(":"),w=u[g];return w||(u[g]=w=l(c,p)),w(f),f}a.exports=s},9618(a,o,i){var l=i(7163),u=typeof Float64Array!="undefined";function s(M,m){return M[0]-m[0]}function f(){var M=this.stride,m=new Array(M.length),k;for(k=0;k=0&&(y=h|0,_+=A*y,v-=y),new S(this.data,v,A,_)},b.step=function(h){var _=this.shape[0],y=this.stride[0],v=this.offset,A=0,d=Math.ceil;return typeof h=="number"&&(A=h|0,A<0?(v+=y*(_-1),_=d(-_/A)):_=d(_/A),y*=A),new S(this.data,_,y,v)},b.transpose=function(h){h=h===void 0?0:h|0;var _=this.shape,y=this.stride;return new S(this.data,_[h],y[h],this.offset)},b.pick=function(h){var _=[],y=[],v=this.offset;typeof h=="number"&&h>=0?v=v+this.stride[0]*h|0:(_.push(this.shape[0]),y.push(this.stride[0]));var A=m[_.length+1];return A(this.data,_,y,v)},function(h,_,y,v){return new S(h,_[0],y[0],v)}},2:function(M,m,k){function S(T,h,_,y,v,A){this.data=T,this.shape=[h,_],this.stride=[y,v],this.offset=A|0}var b=S.prototype;return b.dtype=M,b.dimension=2,Object.defineProperty(b,"size",{get:function(){return this.shape[0]*this.shape[1]}}),Object.defineProperty(b,"order",{get:function(){return Math.abs(this.stride[0])>Math.abs(this.stride[1])?[1,0]:[0,1]}}),b.set=function(h,_,y){return M==="generic"?this.data.set(this.offset+this.stride[0]*h+this.stride[1]*_,y):this.data[this.offset+this.stride[0]*h+this.stride[1]*_]=y},b.get=function(h,_){return M==="generic"?this.data.get(this.offset+this.stride[0]*h+this.stride[1]*_):this.data[this.offset+this.stride[0]*h+this.stride[1]*_]},b.index=function(h,_){return this.offset+this.stride[0]*h+this.stride[1]*_},b.hi=function(h,_){return new S(this.data,typeof h!="number"||h<0?this.shape[0]:h|0,typeof _!="number"||_<0?this.shape[1]:_|0,this.stride[0],this.stride[1],this.offset)},b.lo=function(h,_){var y=this.offset,v=0,A=this.shape[0],d=this.shape[1],D=this.stride[0],E=this.stride[1];return typeof h=="number"&&h>=0&&(v=h|0,y+=D*v,A-=v),typeof _=="number"&&_>=0&&(v=_|0,y+=E*v,d-=v),new S(this.data,A,d,D,E,y)},b.step=function(h,_){var y=this.shape[0],v=this.shape[1],A=this.stride[0],d=this.stride[1],D=this.offset,E=0,R=Math.ceil;return typeof h=="number"&&(E=h|0,E<0?(D+=A*(y-1),y=R(-y/E)):y=R(y/E),A*=E),typeof _=="number"&&(E=_|0,E<0?(D+=d*(v-1),v=R(-v/E)):v=R(v/E),d*=E),new S(this.data,y,v,A,d,D)},b.transpose=function(h,_){h=h===void 0?0:h|0,_=_===void 0?1:_|0;var y=this.shape,v=this.stride;return new S(this.data,y[h],y[_],v[h],v[_],this.offset)},b.pick=function(h,_){var y=[],v=[],A=this.offset;typeof h=="number"&&h>=0?A=A+this.stride[0]*h|0:(y.push(this.shape[0]),v.push(this.stride[0])),typeof _=="number"&&_>=0?A=A+this.stride[1]*_|0:(y.push(this.shape[1]),v.push(this.stride[1]));var d=m[y.length+1];return d(this.data,y,v,A)},function(h,_,y,v){return new S(h,_[0],_[1],y[0],y[1],v)}},3:function(M,m,k){function S(T,h,_,y,v,A,d,D){this.data=T,this.shape=[h,_,y],this.stride=[v,A,d],this.offset=D|0}var b=S.prototype;return b.dtype=M,b.dimension=3,Object.defineProperty(b,"size",{get:function(){return this.shape[0]*this.shape[1]*this.shape[2]}}),Object.defineProperty(b,"order",{get:function(){var h=Math.abs(this.stride[0]),_=Math.abs(this.stride[1]),y=Math.abs(this.stride[2]);return h>_?_>y?[2,1,0]:h>y?[1,2,0]:[1,0,2]:h>y?[2,0,1]:y>_?[0,1,2]:[0,2,1]}}),b.set=function(h,_,y,v){return M==="generic"?this.data.set(this.offset+this.stride[0]*h+this.stride[1]*_+this.stride[2]*y,v):this.data[this.offset+this.stride[0]*h+this.stride[1]*_+this.stride[2]*y]=v},b.get=function(h,_,y){return M==="generic"?this.data.get(this.offset+this.stride[0]*h+this.stride[1]*_+this.stride[2]*y):this.data[this.offset+this.stride[0]*h+this.stride[1]*_+this.stride[2]*y]},b.index=function(h,_,y){return this.offset+this.stride[0]*h+this.stride[1]*_+this.stride[2]*y},b.hi=function(h,_,y){return new S(this.data,typeof h!="number"||h<0?this.shape[0]:h|0,typeof _!="number"||_<0?this.shape[1]:_|0,typeof y!="number"||y<0?this.shape[2]:y|0,this.stride[0],this.stride[1],this.stride[2],this.offset)},b.lo=function(h,_,y){var v=this.offset,A=0,d=this.shape[0],D=this.shape[1],E=this.shape[2],R=this.stride[0],z=this.stride[1],I=this.stride[2];return typeof h=="number"&&h>=0&&(A=h|0,v+=R*A,d-=A),typeof _=="number"&&_>=0&&(A=_|0,v+=z*A,D-=A),typeof y=="number"&&y>=0&&(A=y|0,v+=I*A,E-=A),new S(this.data,d,D,E,R,z,I,v)},b.step=function(h,_,y){var v=this.shape[0],A=this.shape[1],d=this.shape[2],D=this.stride[0],E=this.stride[1],R=this.stride[2],z=this.offset,I=0,P=Math.ceil;return typeof h=="number"&&(I=h|0,I<0?(z+=D*(v-1),v=P(-v/I)):v=P(v/I),D*=I),typeof _=="number"&&(I=_|0,I<0?(z+=E*(A-1),A=P(-A/I)):A=P(A/I),E*=I),typeof y=="number"&&(I=y|0,I<0?(z+=R*(d-1),d=P(-d/I)):d=P(d/I),R*=I),new S(this.data,v,A,d,D,E,R,z)},b.transpose=function(h,_,y){h=h===void 0?0:h|0,_=_===void 0?1:_|0,y=y===void 0?2:y|0;var v=this.shape,A=this.stride;return new S(this.data,v[h],v[_],v[y],A[h],A[_],A[y],this.offset)},b.pick=function(h,_,y){var v=[],A=[],d=this.offset;typeof h=="number"&&h>=0?d=d+this.stride[0]*h|0:(v.push(this.shape[0]),A.push(this.stride[0])),typeof _=="number"&&_>=0?d=d+this.stride[1]*_|0:(v.push(this.shape[1]),A.push(this.stride[1])),typeof y=="number"&&y>=0?d=d+this.stride[2]*y|0:(v.push(this.shape[2]),A.push(this.stride[2]));var D=m[v.length+1];return D(this.data,v,A,d)},function(h,_,y,v){return new S(h,_[0],_[1],_[2],y[0],y[1],y[2],v)}},4:function(M,m,k){function S(T,h,_,y,v,A,d,D,E,R){this.data=T,this.shape=[h,_,y,v],this.stride=[A,d,D,E],this.offset=R|0}var b=S.prototype;return b.dtype=M,b.dimension=4,Object.defineProperty(b,"size",{get:function(){return this.shape[0]*this.shape[1]*this.shape[2]*this.shape[3]}}),Object.defineProperty(b,"order",{get:k}),b.set=function(h,_,y,v,A){return M==="generic"?this.data.set(this.offset+this.stride[0]*h+this.stride[1]*_+this.stride[2]*y+this.stride[3]*v,A):this.data[this.offset+this.stride[0]*h+this.stride[1]*_+this.stride[2]*y+this.stride[3]*v]=A},b.get=function(h,_,y,v){return M==="generic"?this.data.get(this.offset+this.stride[0]*h+this.stride[1]*_+this.stride[2]*y+this.stride[3]*v):this.data[this.offset+this.stride[0]*h+this.stride[1]*_+this.stride[2]*y+this.stride[3]*v]},b.index=function(h,_,y,v){return this.offset+this.stride[0]*h+this.stride[1]*_+this.stride[2]*y+this.stride[3]*v},b.hi=function(h,_,y,v){return new S(this.data,typeof h!="number"||h<0?this.shape[0]:h|0,typeof _!="number"||_<0?this.shape[1]:_|0,typeof y!="number"||y<0?this.shape[2]:y|0,typeof v!="number"||v<0?this.shape[3]:v|0,this.stride[0],this.stride[1],this.stride[2],this.stride[3],this.offset)},b.lo=function(h,_,y,v){var A=this.offset,d=0,D=this.shape[0],E=this.shape[1],R=this.shape[2],z=this.shape[3],I=this.stride[0],P=this.stride[1],L=this.stride[2],F=this.stride[3];return typeof h=="number"&&h>=0&&(d=h|0,A+=I*d,D-=d),typeof _=="number"&&_>=0&&(d=_|0,A+=P*d,E-=d),typeof y=="number"&&y>=0&&(d=y|0,A+=L*d,R-=d),typeof v=="number"&&v>=0&&(d=v|0,A+=F*d,z-=d),new S(this.data,D,E,R,z,I,P,L,F,A)},b.step=function(h,_,y,v){var A=this.shape[0],d=this.shape[1],D=this.shape[2],E=this.shape[3],R=this.stride[0],z=this.stride[1],I=this.stride[2],P=this.stride[3],L=this.offset,F=0,B=Math.ceil;return typeof h=="number"&&(F=h|0,F<0?(L+=R*(A-1),A=B(-A/F)):A=B(A/F),R*=F),typeof _=="number"&&(F=_|0,F<0?(L+=z*(d-1),d=B(-d/F)):d=B(d/F),z*=F),typeof y=="number"&&(F=y|0,F<0?(L+=I*(D-1),D=B(-D/F)):D=B(D/F),I*=F),typeof v=="number"&&(F=v|0,F<0?(L+=P*(E-1),E=B(-E/F)):E=B(E/F),P*=F),new S(this.data,A,d,D,E,R,z,I,P,L)},b.transpose=function(h,_,y,v){h=h===void 0?0:h|0,_=_===void 0?1:_|0,y=y===void 0?2:y|0,v=v===void 0?3:v|0;var A=this.shape,d=this.stride;return new S(this.data,A[h],A[_],A[y],A[v],d[h],d[_],d[y],d[v],this.offset)},b.pick=function(h,_,y,v){var A=[],d=[],D=this.offset;typeof h=="number"&&h>=0?D=D+this.stride[0]*h|0:(A.push(this.shape[0]),d.push(this.stride[0])),typeof _=="number"&&_>=0?D=D+this.stride[1]*_|0:(A.push(this.shape[1]),d.push(this.stride[1])),typeof y=="number"&&y>=0?D=D+this.stride[2]*y|0:(A.push(this.shape[2]),d.push(this.stride[2])),typeof v=="number"&&v>=0?D=D+this.stride[3]*v|0:(A.push(this.shape[3]),d.push(this.stride[3]));var E=m[A.length+1];return E(this.data,A,d,D)},function(h,_,y,v){return new S(h,_[0],_[1],_[2],_[3],y[0],y[1],y[2],y[3],v)}},5:function(m,k,S){function b(h,_,y,v,A,d,D,E,R,z,I,P){this.data=h,this.shape=[_,y,v,A,d],this.stride=[D,E,R,z,I],this.offset=P|0}var T=b.prototype;return T.dtype=m,T.dimension=5,Object.defineProperty(T,"size",{get:function(){return this.shape[0]*this.shape[1]*this.shape[2]*this.shape[3]*this.shape[4]}}),Object.defineProperty(T,"order",{get:S}),T.set=function(_,y,v,A,d,D){return m==="generic"?this.data.set(this.offset+this.stride[0]*_+this.stride[1]*y+this.stride[2]*v+this.stride[3]*A+this.stride[4]*d,D):this.data[this.offset+this.stride[0]*_+this.stride[1]*y+this.stride[2]*v+this.stride[3]*A+this.stride[4]*d]=D},T.get=function(_,y,v,A,d){return m==="generic"?this.data.get(this.offset+this.stride[0]*_+this.stride[1]*y+this.stride[2]*v+this.stride[3]*A+this.stride[4]*d):this.data[this.offset+this.stride[0]*_+this.stride[1]*y+this.stride[2]*v+this.stride[3]*A+this.stride[4]*d]},T.index=function(_,y,v,A,d){return this.offset+this.stride[0]*_+this.stride[1]*y+this.stride[2]*v+this.stride[3]*A+this.stride[4]*d},T.hi=function(_,y,v,A,d){return new b(this.data,typeof _!="number"||_<0?this.shape[0]:_|0,typeof y!="number"||y<0?this.shape[1]:y|0,typeof v!="number"||v<0?this.shape[2]:v|0,typeof A!="number"||A<0?this.shape[3]:A|0,typeof d!="number"||d<0?this.shape[4]:d|0,this.stride[0],this.stride[1],this.stride[2],this.stride[3],this.stride[4],this.offset)},T.lo=function(_,y,v,A,d){var D=this.offset,E=0,R=this.shape[0],z=this.shape[1],I=this.shape[2],P=this.shape[3],L=this.shape[4],F=this.stride[0],B=this.stride[1],O=this.stride[2],V=this.stride[3],K=this.stride[4];return typeof _=="number"&&_>=0&&(E=_|0,D+=F*E,R-=E),typeof y=="number"&&y>=0&&(E=y|0,D+=B*E,z-=E),typeof v=="number"&&v>=0&&(E=v|0,D+=O*E,I-=E),typeof A=="number"&&A>=0&&(E=A|0,D+=V*E,P-=E),typeof d=="number"&&d>=0&&(E=d|0,D+=K*E,L-=E),new b(this.data,R,z,I,P,L,F,B,O,V,K,D)},T.step=function(_,y,v,A,d){var D=this.shape[0],E=this.shape[1],R=this.shape[2],z=this.shape[3],I=this.shape[4],P=this.stride[0],L=this.stride[1],F=this.stride[2],B=this.stride[3],O=this.stride[4],V=this.offset,K=0,j=Math.ceil;return typeof _=="number"&&(K=_|0,K<0?(V+=P*(D-1),D=j(-D/K)):D=j(D/K),P*=K),typeof y=="number"&&(K=y|0,K<0?(V+=L*(E-1),E=j(-E/K)):E=j(E/K),L*=K),typeof v=="number"&&(K=v|0,K<0?(V+=F*(R-1),R=j(-R/K)):R=j(R/K),F*=K),typeof A=="number"&&(K=A|0,K<0?(V+=B*(z-1),z=j(-z/K)):z=j(z/K),B*=K),typeof d=="number"&&(K=d|0,K<0?(V+=O*(I-1),I=j(-I/K)):I=j(I/K),O*=K),new b(this.data,D,E,R,z,I,P,L,F,B,O,V)},T.transpose=function(_,y,v,A,d){_=_===void 0?0:_|0,y=y===void 0?1:y|0,v=v===void 0?2:v|0,A=A===void 0?3:A|0,d=d===void 0?4:d|0;var D=this.shape,E=this.stride;return new b(this.data,D[_],D[y],D[v],D[A],D[d],E[_],E[y],E[v],E[A],E[d],this.offset)},T.pick=function(_,y,v,A,d){var D=[],E=[],R=this.offset;typeof _=="number"&&_>=0?R=R+this.stride[0]*_|0:(D.push(this.shape[0]),E.push(this.stride[0])),typeof y=="number"&&y>=0?R=R+this.stride[1]*y|0:(D.push(this.shape[1]),E.push(this.stride[1])),typeof v=="number"&&v>=0?R=R+this.stride[2]*v|0:(D.push(this.shape[2]),E.push(this.stride[2])),typeof A=="number"&&A>=0?R=R+this.stride[3]*A|0:(D.push(this.shape[3]),E.push(this.stride[3])),typeof d=="number"&&d>=0?R=R+this.stride[4]*d|0:(D.push(this.shape[4]),E.push(this.stride[4]));var z=k[D.length+1];return z(this.data,D,E,R)},function(_,y,v,A){return new b(_,y[0],y[1],y[2],y[3],y[4],v[0],v[1],v[2],v[3],v[4],A)}}};function p(M,m){var k=m===-1?"T":String(m),S=c[k];return m===-1?S(M):m===0?S(M,g[M][0]):S(M,g[M],f)}function x(M){if(l(M))return"buffer";if(u)switch(Object.prototype.toString.call(M)){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(M)?"array":"generic"}var g={generic:[],buffer:[],array:[],float32:[],float64:[],int8:[],int16:[],int32:[],uint8_clamped:[],uint8:[],uint16:[],uint32:[],bigint64:[],biguint64:[]};function w(M,m,k,S){if(M===void 0){var v=g.array[0];return v([])}else typeof M=="number"&&(M=[M]);m===void 0&&(m=[M.length]);var b=m.length;if(k===void 0){k=new Array(b);for(var T=b-1,h=1;T>=0;--T)k[T]=h,h*=m[T]}if(S===void 0){S=0;for(var T=0;T>>0;a.exports=f;function f(c,p){if(isNaN(c)||isNaN(p))return NaN;if(c===p)return c;if(c===0)return p<0?-u:u;var x=l.hi(c),g=l.lo(c);return p>c==c>0?g===s?(x+=1,g=0):g+=1:g===0?(g=s,x-=1):g-=1,l.pack(g,x)}},8406(a,o){var i=1e-6,l=1e-6;o.vertexNormals=function(u,s,f){for(var c=s.length,p=new Array(c),x=f===void 0?i:f,g=0;gx)for(var D=p[m],E=1/Math.sqrt(y*A),d=0;d<3;++d){var R=(d+1)%3,z=(d+2)%3;D[d]+=E*(v[R]*_[z]-v[z]*_[R])}}for(var g=0;gx)for(var E=1/Math.sqrt(I),d=0;d<3;++d)D[d]*=E;else for(var d=0;d<3;++d)D[d]=0}return p},o.faceNormals=function(u,s,f){for(var c=u.length,p=new Array(c),x=f===void 0?l:f,g=0;gx?T=1/Math.sqrt(T):T=0;for(var m=0;m<3;++m)b[m]*=T;p[g]=b}return p}},4081(a){"use strict";a.exports=o;function o(i,l,u,s,f,c,p,x,g,w){var M=l+c+w;if(m>0){var m=Math.sqrt(M+1);i[0]=.5*(p-g)/m,i[1]=.5*(x-s)/m,i[2]=.5*(u-c)/m,i[3]=.5*m}else{var k=Math.max(l,c,w),m=Math.sqrt(2*k-M+1);l>=k?(i[0]=.5*m,i[1]=.5*(f+u)/m,i[2]=.5*(x+s)/m,i[3]=.5*(p-g)/m):c>=k?(i[0]=.5*(u+f)/m,i[1]=.5*m,i[2]=.5*(g+p)/m,i[3]=.5*(x-s)/m):(i[0]=.5*(s+x)/m,i[1]=.5*(p+g)/m,i[2]=.5*m,i[3]=.5*(u-f)/m)}return i}},9977(a,o,i){"use strict";a.exports=m;var l=i(9215),u=i(6582),s=i(7399),f=i(7608),c=i(4081);function p(k,S,b){return Math.sqrt(Math.pow(k,2)+Math.pow(S,2)+Math.pow(b,2))}function x(k,S,b,T){return Math.sqrt(Math.pow(k,2)+Math.pow(S,2)+Math.pow(b,2)+Math.pow(T,2))}function g(k,S){var b=S[0],T=S[1],h=S[2],_=S[3],y=x(b,T,h,_);y>1e-6?(k[0]=b/y,k[1]=T/y,k[2]=h/y,k[3]=_/y):(k[0]=k[1]=k[2]=0,k[3]=1)}function w(k,S,b){this.radius=l([b]),this.center=l(S),this.rotation=l(k),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 M=w.prototype;M.lastT=function(){return Math.max(this.radius.lastT(),this.center.lastT(),this.rotation.lastT())},M.recalcMatrix=function(k){this.radius.curve(k),this.center.curve(k),this.rotation.curve(k);var S=this.computedRotation;g(S,S);var b=this.computedMatrix;s(b,S);var T=this.computedCenter,h=this.computedEye,_=this.computedUp,y=Math.exp(this.computedRadius[0]);h[0]=T[0]+y*b[2],h[1]=T[1]+y*b[6],h[2]=T[2]+y*b[10],_[0]=b[1],_[1]=b[5],_[2]=b[9];for(var v=0;v<3;++v){for(var A=0,d=0;d<3;++d)A+=b[v+4*d]*h[d];b[12+v]=-A}},M.getMatrix=function(k,S){this.recalcMatrix(k);var b=this.computedMatrix;if(S){for(var T=0;T<16;++T)S[T]=b[T];return S}return b},M.idle=function(k){this.center.idle(k),this.radius.idle(k),this.rotation.idle(k)},M.flush=function(k){this.center.flush(k),this.radius.flush(k),this.rotation.flush(k)},M.pan=function(k,S,b,T){S=S||0,b=b||0,T=T||0,this.recalcMatrix(k);var h=this.computedMatrix,_=h[1],y=h[5],v=h[9],A=p(_,y,v);_/=A,y/=A,v/=A;var d=h[0],D=h[4],E=h[8],R=d*_+D*y+E*v;d-=_*R,D-=y*R,E-=v*R;var z=p(d,D,E);d/=z,D/=z,E/=z;var I=h[2],P=h[6],L=h[10],F=I*_+P*y+L*v,B=I*d+P*D+L*E;I-=F*_+B*d,P-=F*y+B*D,L-=F*v+B*E;var O=p(I,P,L);I/=O,P/=O,L/=O;var V=d*S+_*b,K=D*S+y*b,j=E*S+v*b;this.center.move(k,V,K,j);var G=Math.exp(this.computedRadius[0]);G=Math.max(1e-4,G+T),this.radius.set(k,Math.log(G))},M.rotate=function(k,S,b,T){this.recalcMatrix(k),S=S||0,b=b||0;var h=this.computedMatrix,_=h[0],y=h[4],v=h[8],A=h[1],d=h[5],D=h[9],E=h[2],R=h[6],z=h[10],I=S*_+b*A,P=S*y+b*d,L=S*v+b*D,F=-(R*L-z*P),B=-(z*I-E*L),O=-(E*P-R*I),V=Math.sqrt(Math.max(0,1-Math.pow(F,2)-Math.pow(B,2)-Math.pow(O,2))),K=x(F,B,O,V);K>1e-6?(F/=K,B/=K,O/=K,V/=K):(F=B=O=0,V=1);var j=this.computedRotation,G=j[0],q=j[1],J=j[2],te=j[3],Z=G*V+te*F+q*O-J*B,ie=q*V+te*B+J*F-G*O,Q=J*V+te*O+G*B-q*F,re=te*V-G*F-q*B-J*O;if(T){F=E,B=R,O=z;var ue=Math.sin(T)/p(F,B,O);F*=ue,B*=ue,O*=ue,V=Math.cos(S),Z=Z*V+re*F+ie*O-Q*B,ie=ie*V+re*B+Q*F-Z*O,Q=Q*V+re*O+Z*B-ie*F,re=re*V-Z*F-ie*B-Q*O}var ee=x(Z,ie,Q,re);ee>1e-6?(Z/=ee,ie/=ee,Q/=ee,re/=ee):(Z=ie=Q=0,re=1),this.rotation.set(k,Z,ie,Q,re)},M.lookAt=function(k,S,b,T){this.recalcMatrix(k),b=b||this.computedCenter,S=S||this.computedEye,T=T||this.computedUp;var h=this.computedMatrix;u(h,S,b,T);var _=this.computedRotation;c(_,h[0],h[1],h[2],h[4],h[5],h[6],h[8],h[9],h[10]),g(_,_),this.rotation.set(k,_[0],_[1],_[2],_[3]);for(var y=0,v=0;v<3;++v)y+=Math.pow(b[v]-S[v],2);this.radius.set(k,.5*Math.log(Math.max(y,1e-6))),this.center.set(k,b[0],b[1],b[2])},M.translate=function(k,S,b,T){this.center.move(k,S||0,b||0,T||0)},M.setMatrix=function(k,S){var b=this.computedRotation;c(b,S[0],S[1],S[2],S[4],S[5],S[6],S[8],S[9],S[10]),g(b,b),this.rotation.set(k,b[0],b[1],b[2],b[3]);var T=this.computedMatrix;f(T,S);var h=T[15];if(Math.abs(h)>1e-6){var _=T[12]/h,y=T[13]/h,v=T[14]/h;this.recalcMatrix(k);var A=Math.exp(this.computedRadius[0]);this.center.set(k,_-T[2]*A,y-T[6]*A,v-T[10]*A),this.radius.idle(k)}else this.center.idle(k),this.radius.idle(k)},M.setDistance=function(k,S){S>0&&this.radius.set(k,Math.log(S))},M.setDistanceLimits=function(k,S){k>0?k=Math.log(k):k=-1/0,S>0?S=Math.log(S):S=1/0,S=Math.max(S,k),this.radius.bounds[0][0]=k,this.radius.bounds[1][0]=S},M.getDistanceLimits=function(k){var S=this.radius.bounds;return k?(k[0]=Math.exp(S[0][0]),k[1]=Math.exp(S[1][0]),k):[Math.exp(S[0][0]),Math.exp(S[1][0])]},M.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]}},M.fromJSON=function(k){var S=this.lastT(),b=k.center;b&&this.center.set(S,b[0],b[1],b[2]);var T=k.rotation;T&&this.rotation.set(S,T[0],T[1],T[2],T[3]);var h=k.distance;h&&h>0&&this.radius.set(S,Math.log(h)),this.setDistanceLimits(k.zoomMin,k.zoomMax)};function m(k){k=k||{};var S=k.center||[0,0,0],b=k.rotation||[0,0,0,1],T=k.radius||1;S=[].slice.call(S,0,3),b=[].slice.call(b,0,4),g(b,b);var h=new w(b,S,Math.log(T));return h.setDistanceLimits(k.zoomMin,k.zoomMax),("eye"in k||"up"in k)&&h.lookAt(0,k.eye,k.center,k.up),h}},1371(a,o,i){"use strict";var l=i(3233);a.exports=function(s,f,c){return c=typeof c!="undefined"?c+"":" ",l(c,f)+s}},3202(a){a.exports=function(i,l){l||(l=[0,""]),i=String(i);var u=parseFloat(i,10);return l[0]=u,l[1]=i.match(/[\d.\-\+]*\s*(.*)/)[1]||"",l}},3088(a,o,i){"use strict";a.exports=u;var l=i(3140);function u(s,f){for(var c=f.length|0,p=s.length,x=[new Array(c),new Array(c)],g=0;g0){D=x[z][A][0],R=z;break}E=D[R^1];for(var I=0;I<2;++I)for(var P=x[I][A],L=0;L0&&(D=F,E=B,R=I)}return d||D&&m(D,R),E}function S(v,A){var d=x[A][v][0],D=[v];m(d,A);for(var E=d[A^1],R=A;;){for(;E!==v;)D.push(E),E=k(D[D.length-2],E,!1);if(x[0][v].length+x[1][v].length===0)break;var z=D[D.length-1],I=v,P=D[1],L=k(z,I,!0);if(l(f[z],f[I],f[P],f[L])<0)break;D.push(v),E=k(z,I)}return D}function b(v,A){return A[1]===A[A.length-1]}for(var g=0;g0;){var _=x[0][g].length,y=S(g,T);b(h,y)?h.push.apply(h,y):(h.length>0&&M.push(h),h=y)}h.length>0&&M.push(h)}return M}},5609(a,o,i){"use strict";a.exports=u;var l=i(3134);function u(s,f){for(var c=l(s,f.length),p=new Array(f.length),x=new Array(f.length),g=[],w=0;w0;){var m=g.pop();p[m]=!1;for(var k=c[m],w=0;w0}_=_.filter(y);for(var v=_.length,A=new Array(v),d=new Array(v),h=0;h0;){var ee=Q.pop(),ae=K[ee];p(ae,function(ge,Le){return ge-Le});var ce=ae.length,Te=re[ee],ke;if(Te===0){var P=_[ee];ke=[P]}for(var h=0;h=0)&&(re[Se]=Te^1,Q.push(Se),Te===0)){var P=_[Se];ie(P)||(P.reverse(),ke.push(P))}}Te===0&&ue.push(ke)}return ue}},5085(a,o,i){a.exports=k;var l=i(3250)[3],u=i(4209),s=i(3352),f=i(2478);function c(){return!0}function p(S){return function(b,T){var h=S[b];return h?!!h.queryPoint(T,c):!1}}function x(S){for(var b={},T=0;T0&&b[h]===T[0])_=S[h-1];else return 1;for(var y=1;_;){var v=_.key,A=l(T,v[0],v[1]);if(v[0][0]0)y=-1,_=_.right;else return 0;else if(A>0)_=_.left;else if(A<0)y=1,_=_.right;else return 0}return y}}function w(S){return 1}function M(S){return function(T){return S(T[0],T[1])?0:1}}function m(S,b){return function(h){return S(h[0],h[1])?0:b(h)}}function k(S){for(var b=S.length,T=[],h=[],_=0,y=0;y=w?(v=1,d=w+2*k+b):(v=-k/w,d=k*v+b)):(v=0,S>=0?(A=0,d=b):-S>=m?(A=1,d=m+2*S+b):(A=-S/m,d=S*A+b));else if(A<0)A=0,k>=0?(v=0,d=b):-k>=w?(v=1,d=w+2*k+b):(v=-k/w,d=k*v+b);else{var D=1/y;v*=D,A*=D,d=v*(w*v+M*A+2*k)+A*(M*v+m*A+2*S)+b}else{var E,R,z,I;v<0?(E=M+k,R=m+S,R>E?(z=R-E,I=w-2*M+m,z>=I?(v=1,A=0,d=w+2*k+b):(v=z/I,A=1-v,d=v*(w*v+M*A+2*k)+A*(M*v+m*A+2*S)+b)):(v=0,R<=0?(A=1,d=m+2*S+b):S>=0?(A=0,d=b):(A=-S/m,d=S*A+b))):A<0?(E=M+S,R=w+k,R>E?(z=R-E,I=w-2*M+m,z>=I?(A=1,v=0,d=m+2*S+b):(A=z/I,v=1-A,d=v*(w*v+M*A+2*k)+A*(M*v+m*A+2*S)+b)):(A=0,R<=0?(v=1,d=w+2*k+b):k>=0?(v=0,d=b):(v=-k/w,d=k*v+b))):(z=m+S-M-k,z<=0?(v=0,A=1,d=m+2*S+b):(I=w-2*M+m,z>=I?(v=1,A=0,d=w+2*k+b):(v=z/I,A=1-v,d=v*(w*v+M*A+2*k)+A*(M*v+m*A+2*S)+b)))}for(var P=1-v-A,g=0;g0){var m=c[x-1];if(l(w,m)===0&&s(m)!==M){x-=1;continue}}c[x++]=w}}return c.length=x,c}},3233(a){"use strict";var o="",i;a.exports=l;function l(u,s){if(typeof u!="string")throw new TypeError("expected a string");if(s===1)return u;if(s===2)return u+u;var f=u.length*s;if(i!==u||typeof i=="undefined")i=u,o="";else if(o.length>=f)return o.substr(0,f);for(;f>o.length&&s>1;)s&1&&(o+=u),s>>=1,u+=u;return o+=u,o=o.substr(0,f),o}},3025(a,o,i){a.exports=i.g.performance&&i.g.performance.now?function(){return performance.now()}:Date.now||function(){return+new Date}},7004(a){"use strict";a.exports=o;function o(i){for(var l=i.length,u=i[i.length-1],s=l,f=l-2;f>=0;--f){var c=u,p=i[f];u=c+p;var x=u-c,g=p-x;g&&(i[--s]=u,u=g)}for(var w=0,f=s;f0){if(R<=0)return z;I=E+R}else if(E<0){if(R>=0)return z;I=-(E+R)}else return z;var P=x*I;return z>=P||z<=-P?z:S(A,d,D)},function(A,d,D,E){var R=A[0]-E[0],z=d[0]-E[0],I=D[0]-E[0],P=A[1]-E[1],L=d[1]-E[1],F=D[1]-E[1],B=A[2]-E[2],O=d[2]-E[2],V=D[2]-E[2],K=z*F,j=I*L,G=I*P,q=R*F,J=R*L,te=z*P,Z=B*(K-j)+O*(G-q)+V*(J-te),ie=(Math.abs(K)+Math.abs(j))*Math.abs(B)+(Math.abs(G)+Math.abs(q))*Math.abs(O)+(Math.abs(J)+Math.abs(te))*Math.abs(V),Q=g*ie;return Z>Q||-Z>Q?Z:b(A,d,D,E)}];function h(v){var A=T[v.length];return A||(A=T[v.length]=k(v.length)),A.apply(void 0,v)}function _(v,A,d,D,E,R,z){return function(P,L,F,B,O){switch(arguments.length){case 0:case 1:return 0;case 2:return D(P,L);case 3:return E(P,L,F);case 4:return R(P,L,F,B);case 5:return z(P,L,F,B,O)}for(var V=new Array(arguments.length),K=0;K0&&w>0||g<0&&w<0)return!1;var M=l(p,f,c),m=l(x,f,c);return M>0&&m>0||M<0&&m<0?!1:g===0&&w===0&&M===0&&m===0?u(f,c,p,x):!0}},8545(a){"use strict";a.exports=i;function o(l,u){var s=l+u,f=s-l,c=s-f,p=u-f,x=l-c,g=x+p;return g?[g,s]:[s]}function i(l,u){var s=l.length|0,f=u.length|0;if(s===1&&f===1)return o(l[0],-u[0]);var c=s+f,p=new Array(c),x=0,g=0,w=0,M=Math.abs,m=l[g],k=M(m),S=-u[w],b=M(S),T,h;k=f?(T=m,g+=1,g=f?(T=m,g+=1,g>1,S=c[2*k+1];if(S===w)return k;w>1,S=c[2*k+1];if(S===w)return k;w>1,S=c[2*k+1];if(S===w)return k;w>1,S=c[2*k+1];if(S===w)return k;w>1,I=x(A[z],d);I<=0?(I===0&&(R=z),D=z+1):I>0&&(E=z-1)}return R}l=m;function k(A,d){for(var D=new Array(A.length),E=0,R=D.length;E=A.length||x(A[K],z)!==0););}return D}l=k;function S(A,d){if(!d)return k(M(T(A,0)),A,0);for(var D=new Array(d),E=0;E>>F&1&&L.push(R[F]);d.push(L)}return w(d)}l=b;function T(A,d){if(d<0)return[];for(var D=[],E=(1<0)-(s<0)},o.abs=function(s){var f=s>>i-1;return(s^f)-f},o.min=function(s,f){return f^(s^f)&-(s65535)<<4,s>>>=f,c=(s>255)<<3,s>>>=c,f|=c,c=(s>15)<<2,s>>>=c,f|=c,c=(s>3)<<1,s>>>=c,f|=c,f|s>>1},o.log10=function(s){return s>=1e9?9:s>=1e8?8:s>=1e7?7:s>=1e6?6:s>=1e5?5:s>=1e4?4:s>=1e3?3:s>=100?2:s>=10?1:0},o.popCount=function(s){return s=s-(s>>>1&1431655765),s=(s&858993459)+(s>>>2&858993459),(s+(s>>>4)&252645135)*16843009>>>24};function l(s){var f=32;return s&=-s,s&&f--,s&65535&&(f-=16),s&16711935&&(f-=8),s&252645135&&(f-=4),s&858993459&&(f-=2),s&1431655765&&(f-=1),f}o.countTrailingZeros=l,o.nextPow2=function(s){return s+=s===0,--s,s|=s>>>1,s|=s>>>2,s|=s>>>4,s|=s>>>8,s|=s>>>16,s+1},o.prevPow2=function(s){return s|=s>>>1,s|=s>>>2,s|=s>>>4,s|=s>>>8,s|=s>>>16,s-(s>>>1)},o.parity=function(s){return s^=s>>>16,s^=s>>>8,s^=s>>>4,s&=15,27030>>>s&1};var u=new Array(256);(function(s){for(var f=0;f<256;++f){var c=f,p=f,x=7;for(c>>>=1;c;c>>>=1)p<<=1,p|=c&1,--x;s[f]=p<>>8&255]<<16|u[s>>>16&255]<<8|u[s>>>24&255]},o.interleave2=function(s,f){return s&=65535,s=(s|s<<8)&16711935,s=(s|s<<4)&252645135,s=(s|s<<2)&858993459,s=(s|s<<1)&1431655765,f&=65535,f=(f|f<<8)&16711935,f=(f|f<<4)&252645135,f=(f|f<<2)&858993459,f=(f|f<<1)&1431655765,s|f<<1},o.deinterleave2=function(s,f){return s=s>>>f&1431655765,s=(s|s>>>1)&858993459,s=(s|s>>>2)&252645135,s=(s|s>>>4)&16711935,s=(s|s>>>16)&65535,s<<16>>16},o.interleave3=function(s,f,c){return s&=1023,s=(s|s<<16)&4278190335,s=(s|s<<8)&251719695,s=(s|s<<4)&3272356035,s=(s|s<<2)&1227133513,f&=1023,f=(f|f<<16)&4278190335,f=(f|f<<8)&251719695,f=(f|f<<4)&3272356035,f=(f|f<<2)&1227133513,s|=f<<1,c&=1023,c=(c|c<<16)&4278190335,c=(c|c<<8)&251719695,c=(c|c<<4)&3272356035,c=(c|c<<2)&1227133513,s|c<<2},o.deinterleave3=function(s,f){return s=s>>>f&1227133513,s=(s|s>>>2)&3272356035,s=(s|s>>>4)&251719695,s=(s|s>>>8)&4278190335,s=(s|s>>>16)&1023,s<<22>>22},o.nextCombination=function(s){var f=s|s-1;return f+1|(~f&-~f)-1>>>l(s)+1}},2014(a,o,i){"use strict";"use restrict";var l=i(3105),u=i(4623);function s(v){for(var A=0,d=Math.max,D=0,E=v.length;D>1,z=p(v[R],A);z<=0?(z===0&&(E=R),d=R+1):z>0&&(D=R-1)}return E}o.findCell=M;function m(v,A){for(var d=new Array(v.length),D=0,E=d.length;D=v.length||p(v[V],R)!==0););}return d}o.incidence=m;function k(v,A){if(!A)return m(w(b(v,0)),v,0);for(var d=new Array(A),D=0;D>>L&1&&P.push(E[L]);A.push(P)}return g(A)}o.explode=S;function b(v,A){if(A<0)return[];for(var d=[],D=(1<>1:(q>>1)-1}function D(q){for(var J=A(q);;){var te=J,Z=2*q+1,ie=2*(q+1),Q=q;if(Z0;){var te=d(q);if(te>=0){var Z=A(te);if(J0){var q=P[0];return v(0,B-1),B-=1,D(0),q}return-1}function z(q,J){var te=P[q];return k[te]===J?q:(k[te]=-1/0,E(q),R(),k[te]=J,B+=1,E(B-1))}function I(q){if(!S[q]){S[q]=!0;var J=M[q],te=m[q];M[te]>=0&&(M[te]=J),m[J]>=0&&(m[J]=te),L[J]>=0&&z(L[J],y(J)),L[te]>=0&&z(L[te],y(te))}}for(var P=[],L=new Array(g),b=0;b>1;b>=0;--b)D(b);for(;;){var O=R();if(O<0||k[O]>x)break;I(O)}for(var V=[],b=0;b=0&&te>=0&&J!==te){var Z=L[J],ie=L[te];Z!==ie&&G.push([Z,ie])}}),u.unique(u.normalize(G)),{positions:V,edges:G}}},1303(a,o,i){"use strict";a.exports=s;var l=i(3250);function u(f,c){var p,x;if(c[0][0]c[1][0])p=c[1],x=c[0];else{var g=Math.min(f[0][1],f[1][1]),w=Math.max(f[0][1],f[1][1]),M=Math.min(c[0][1],c[1][1]),m=Math.max(c[0][1],c[1][1]);return wm?g-m:w-m}var k,S;f[0][1]c[1][0])p=c[1],x=c[0];else return u(c,f);var g,w;if(f[0][0]f[1][0])g=f[1],w=f[0];else return-u(f,c);var M=l(p,x,w),m=l(p,x,g);if(M<0){if(m<=0)return M}else if(M>0){if(m>=0)return M}else if(m)return m;if(M=l(w,g,x),m=l(w,g,p),M<0){if(m<=0)return M}else if(M>0){if(m>=0)return M}else if(m)return m;return x[0]-w[0]}},4209(a,o,i){"use strict";a.exports=m;var l=i(2478),u=i(3840),s=i(3250),f=i(1303);function c(k,S,b){this.slabs=k,this.coordinates=S,this.horizontal=b}var p=c.prototype;function x(k,S){return k.y-S}function g(k,S){for(var b=null;k;){var T=k.key,h,_;T[0][0]0)if(S[0]!==T[1][0])b=k,k=k.right;else{var v=g(k.right,S);if(v)return v;k=k.left}else{if(S[0]!==T[1][0])return k;var v=g(k.right,S);if(v)return v;k=k.left}}return b}p.castUp=function(k){var S=l.le(this.coordinates,k[0]);if(S<0)return-1;var b=this.slabs[S],T=g(this.slabs[S],k),h=-1;if(T&&(h=T.value),this.coordinates[S]===k[0]){var _=null;if(T&&(_=T.key),S>0){var y=g(this.slabs[S-1],k);y&&(_?f(y.key,_)>0&&(_=y.key,h=y.value):(h=y.value,_=y.key))}var v=this.horizontal[S];if(v.length>0){var A=l.ge(v,k[1],x);if(A=v.length)return h;d=v[A]}}if(d.start)if(_){var D=s(_[0],_[1],[k[0],d.y]);_[0][0]>_[1][0]&&(D=-D),D>0&&(h=d.index)}else h=d.index;else d.y!==k[1]&&(h=d.index)}}}return h};function w(k,S,b,T){this.y=k,this.index=S,this.start=b,this.closed=T}function M(k,S,b,T){this.x=k,this.segment=S,this.create=b,this.index=T}function m(k){for(var S=k.length,b=2*S,T=new Array(b),h=0;h1&&(S=1);for(var b=1-S,T=g.length,h=new Array(T),_=0;_0||k>0&&h<0){var _=f(S,h,b,k);M.push(_),m.push(_.slice())}h<0?m.push(b.slice()):h>0?M.push(b.slice()):(M.push(b.slice()),m.push(b.slice())),k=h}return{positive:M,negative:m}}function p(g,w){for(var M=[],m=s(g[g.length-1],w),k=g[g.length-1],S=g[0],b=0;b0||m>0&&T<0)&&M.push(f(k,T,S,m)),T>=0&&M.push(S.slice()),m=T}return M}function x(g,w){for(var M=[],m=s(g[g.length-1],w),k=g[g.length-1],S=g[0],b=0;b0||m>0&&T<0)&&M.push(f(k,T,S,m)),T<=0&&M.push(S.slice()),m=T}return M}},3387(a,o,i){var l;(function(){"use strict";var u={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 s(g){return c(x(g),arguments)}function f(g,w){return s.apply(null,[g].concat(w||[]))}function c(g,w){var M=1,m=g.length,k,S="",b,T,h,_,y,v,A,d;for(b=0;b=0),h.type){case"b":k=parseInt(k,10).toString(2);break;case"c":k=String.fromCharCode(parseInt(k,10));break;case"d":case"i":k=parseInt(k,10);break;case"j":k=JSON.stringify(k,null,h.width?parseInt(h.width):0);break;case"e":k=h.precision?parseFloat(k).toExponential(h.precision):parseFloat(k).toExponential();break;case"f":k=h.precision?parseFloat(k).toFixed(h.precision):parseFloat(k);break;case"g":k=h.precision?String(Number(k.toPrecision(h.precision))):parseFloat(k);break;case"o":k=(parseInt(k,10)>>>0).toString(8);break;case"s":k=String(k),k=h.precision?k.substring(0,h.precision):k;break;case"t":k=String(!!k),k=h.precision?k.substring(0,h.precision):k;break;case"T":k=Object.prototype.toString.call(k).slice(8,-1).toLowerCase(),k=h.precision?k.substring(0,h.precision):k;break;case"u":k=parseInt(k,10)>>>0;break;case"v":k=k.valueOf(),k=h.precision?k.substring(0,h.precision):k;break;case"x":k=(parseInt(k,10)>>>0).toString(16);break;case"X":k=(parseInt(k,10)>>>0).toString(16).toUpperCase();break}u.json.test(h.type)?S+=k:(u.number.test(h.type)&&(!A||h.sign)?(d=A?"+":"-",k=k.toString().replace(u.sign,"")):d="",y=h.pad_char?h.pad_char==="0"?"0":h.pad_char.charAt(1):" ",v=h.width-(d+k).length,_=h.width&&v>0?y.repeat(v):"",S+=h.align?d+k+_:y==="0"?d+_+k:_+d+k)}return S}var p=Object.create(null);function x(g){if(p[g])return p[g];for(var w=g,M,m=[],k=0;w;){if((M=u.text.exec(w))!==null)m.push(M[0]);else if((M=u.modulo.exec(w))!==null)m.push("%");else if((M=u.placeholder.exec(w))!==null){if(M[2]){k|=1;var S=[],b=M[2],T=[];if((T=u.key.exec(b))!==null)for(S.push(T[1]);(b=b.substring(T[0].length))!=="";)if((T=u.key_access.exec(b))!==null)S.push(T[1]);else if((T=u.index_access.exec(b))!==null)S.push(T[1]);else throw new SyntaxError("[sprintf] failed to parse named argument key");else throw new SyntaxError("[sprintf] failed to parse named argument key");M[2]=S}else k|=2;if(k===3)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");m.push({placeholder:M[0],param_no:M[1],keys:M[2],sign:M[3],pad_char:M[4],align:M[5],width:M[6],precision:M[7],type:M[8]})}else throw new SyntaxError("[sprintf] unexpected placeholder");w=w.substring(M[0].length)}return p[g]=m}o.sprintf=s,o.vsprintf=f,typeof window!="undefined"&&(window.sprintf=s,window.vsprintf=f,l=(function(){return{sprintf:s,vsprintf:f}}).call(o,i,o,a),l!==void 0&&(a.exports=l))})()},3711(a,o,i){"use strict";a.exports=x;var l=i(2640),u=i(781),s={"2d":function(g,w,M){var m=g({order:w,scalarArguments:3,getters:M==="generic"?[0]:void 0,phase:function(S,b,T,h){return S>h|0},vertex:function(S,b,T,h,_,y,v,A,d,D,E,R,z){var I=(v<<0)+(A<<1)+(d<<2)+(D<<3)|0;if(!(I===0||I===15))switch(I){case 0:E.push([S-.5,b-.5]);break;case 1:E.push([S-.25-.25*(h+T-2*z)/(T-h),b-.25-.25*(_+T-2*z)/(T-_)]);break;case 2:E.push([S-.75-.25*(-h-T+2*z)/(h-T),b-.25-.25*(y+h-2*z)/(h-y)]);break;case 3:E.push([S-.5,b-.5-.5*(_+T+y+h-4*z)/(T-_+h-y)]);break;case 4:E.push([S-.25-.25*(y+_-2*z)/(_-y),b-.75-.25*(-_-T+2*z)/(_-T)]);break;case 5:E.push([S-.5-.5*(h+T+y+_-4*z)/(T-h+_-y),b-.5]);break;case 6:E.push([S-.5-.25*(-h-T+y+_)/(h-T+_-y),b-.5-.25*(-_-T+y+h)/(_-T+h-y)]);break;case 7:E.push([S-.75-.25*(y+_-2*z)/(_-y),b-.75-.25*(y+h-2*z)/(h-y)]);break;case 8:E.push([S-.75-.25*(-y-_+2*z)/(y-_),b-.75-.25*(-y-h+2*z)/(y-h)]);break;case 9:E.push([S-.5-.25*(h+T+-y-_)/(T-h+y-_),b-.5-.25*(_+T+-y-h)/(T-_+y-h)]);break;case 10:E.push([S-.5-.5*(-h-T+-y-_+4*z)/(h-T+y-_),b-.5]);break;case 11:E.push([S-.25-.25*(-y-_+2*z)/(y-_),b-.75-.25*(_+T-2*z)/(T-_)]);break;case 12:E.push([S-.5,b-.5-.5*(-_-T+-y-h+4*z)/(_-T+y-h)]);break;case 13:E.push([S-.75-.25*(h+T-2*z)/(T-h),b-.25-.25*(-y-h+2*z)/(y-h)]);break;case 14:E.push([S-.25-.25*(-h-T+2*z)/(h-T),b-.25-.25*(-_-T+2*z)/(_-T)]);break;case 15:E.push([S-.5,b-.5]);break}},cell:function(S,b,T,h,_,y,v,A,d){_?A.push([S,b]):A.push([b,S])}});return function(k,S){var b=[],T=[];return m(k,b,T,S),{positions:b,cells:T}}}};function f(g,w){var M=g.length+"d",m=s[M];if(m)return m(l,g,w)}function c(g,w){for(var M=u(g,w),m=M.length,k=new Array(m),S=new Array(m),b=0;bMath.max(h,_)?y[2]=1:h>Math.max(T,_)?y[0]=1:y[1]=1;for(var v=0,A=0,d=0;d<3;++d)v+=b[d]*b[d],A+=y[d]*b[d];for(var d=0;d<3;++d)y[d]-=A/v*b[d];return c(y,y),y}function M(b,T,h,_,y,v,A,d){this.center=l(h),this.up=l(_),this.right=l(y),this.radius=l([v]),this.angle=l([A,d]),this.angle.bounds=[[-1/0,-Math.PI/2],[1/0,Math.PI/2]],this.setDistanceLimits(b,T),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 D=0;D<16;++D)this.computedMatrix[D]=.5;this.recalcMatrix(0)}var m=M.prototype;m.setDistanceLimits=function(b,T){b>0?b=Math.log(b):b=-1/0,T>0?T=Math.log(T):T=1/0,T=Math.max(T,b),this.radius.bounds[0][0]=b,this.radius.bounds[1][0]=T},m.getDistanceLimits=function(b){var T=this.radius.bounds[0];return b?(b[0]=Math.exp(T[0][0]),b[1]=Math.exp(T[1][0]),b):[Math.exp(T[0][0]),Math.exp(T[1][0])]},m.recalcMatrix=function(b){this.center.curve(b),this.up.curve(b),this.right.curve(b),this.radius.curve(b),this.angle.curve(b);for(var T=this.computedUp,h=this.computedRight,_=0,y=0,v=0;v<3;++v)y+=T[v]*h[v],_+=T[v]*T[v];for(var A=Math.sqrt(_),d=0,v=0;v<3;++v)h[v]-=T[v]*y/_,d+=h[v]*h[v],T[v]/=A;for(var D=Math.sqrt(d),v=0;v<3;++v)h[v]/=D;var E=this.computedToward;f(E,T,h),c(E,E);for(var R=Math.exp(this.computedRadius[0]),z=this.computedAngle[0],I=this.computedAngle[1],P=Math.cos(z),L=Math.sin(z),F=Math.cos(I),B=Math.sin(I),O=this.computedCenter,V=P*F,K=L*F,j=B,G=-P*B,q=-L*B,J=F,te=this.computedEye,Z=this.computedMatrix,v=0;v<3;++v){var ie=V*h[v]+K*E[v]+j*T[v];Z[4*v+1]=G*h[v]+q*E[v]+J*T[v],Z[4*v+2]=ie,Z[4*v+3]=0}var Q=Z[1],re=Z[5],ue=Z[9],ee=Z[2],ae=Z[6],ce=Z[10],Te=re*ce-ue*ae,ke=ue*ee-Q*ce,Se=Q*ae-re*ee,ge=x(Te,ke,Se);Te/=ge,ke/=ge,Se/=ge,Z[0]=Te,Z[4]=ke,Z[8]=Se;for(var v=0;v<3;++v)te[v]=O[v]+Z[2+4*v]*R;for(var v=0;v<3;++v){for(var d=0,Le=0;Le<3;++Le)d+=Z[v+4*Le]*te[Le];Z[12+v]=-d}Z[15]=1},m.getMatrix=function(b,T){this.recalcMatrix(b);var h=this.computedMatrix;if(T){for(var _=0;_<16;++_)T[_]=h[_];return T}return h};var k=[0,0,0];m.rotate=function(b,T,h,_){if(this.angle.move(b,T,h),_){this.recalcMatrix(b);var y=this.computedMatrix;k[0]=y[2],k[1]=y[6],k[2]=y[10];for(var v=this.computedUp,A=this.computedRight,d=this.computedToward,D=0;D<3;++D)y[4*D]=v[D],y[4*D+1]=A[D],y[4*D+2]=d[D];s(y,y,_,k);for(var D=0;D<3;++D)v[D]=y[4*D],A[D]=y[4*D+1];this.up.set(b,v[0],v[1],v[2]),this.right.set(b,A[0],A[1],A[2])}},m.pan=function(b,T,h,_){T=T||0,h=h||0,_=_||0,this.recalcMatrix(b);var y=this.computedMatrix,v=Math.exp(this.computedRadius[0]),A=y[1],d=y[5],D=y[9],E=x(A,d,D);A/=E,d/=E,D/=E;var R=y[0],z=y[4],I=y[8],P=R*A+z*d+I*D;R-=A*P,z-=d*P,I-=D*P;var L=x(R,z,I);R/=L,z/=L,I/=L;var F=R*T+A*h,B=z*T+d*h,O=I*T+D*h;this.center.move(b,F,B,O);var V=Math.exp(this.computedRadius[0]);V=Math.max(1e-4,V+_),this.radius.set(b,Math.log(V))},m.translate=function(b,T,h,_){this.center.move(b,T||0,h||0,_||0)},m.setMatrix=function(b,T,h,_){var y=1;typeof h=="number"&&(y=h|0),(y<0||y>3)&&(y=1);var v=(y+2)%3,A=(y+1)%3;T||(this.recalcMatrix(b),T=this.computedMatrix);var d=T[y],D=T[y+4],E=T[y+8];if(_){var z=Math.abs(d),I=Math.abs(D),P=Math.abs(E),L=Math.max(z,I,P);z===L?(d=d<0?-1:1,D=E=0):P===L?(E=E<0?-1:1,d=D=0):(D=D<0?-1:1,d=E=0)}else{var R=x(d,D,E);d/=R,D/=R,E/=R}var F=T[v],B=T[v+4],O=T[v+8],V=F*d+B*D+O*E;F-=d*V,B-=D*V,O-=E*V;var K=x(F,B,O);F/=K,B/=K,O/=K;var j=D*O-E*B,G=E*F-d*O,q=d*B-D*F,J=x(j,G,q);j/=J,G/=J,q/=J,this.center.jump(b,pe,oe,ve),this.radius.idle(b),this.up.jump(b,d,D,E),this.right.jump(b,F,B,O);var te,Z;if(y===2){var ie=T[1],Q=T[5],re=T[9],ue=ie*F+Q*B+re*O,ee=ie*j+Q*G+re*q;ke<0?te=-Math.PI/2:te=Math.PI/2,Z=Math.atan2(ee,ue)}else{var ae=T[2],ce=T[6],Te=T[10],ke=ae*d+ce*D+Te*E,Se=ae*F+ce*B+Te*O,ge=ae*j+ce*G+Te*q;te=Math.asin(g(ke)),Z=Math.atan2(ge,Se)}this.angle.jump(b,Z,te),this.recalcMatrix(b);var Le=T[2],Ce=T[6],le=T[10],Y=this.computedMatrix;u(Y,T);var $=Y[15],pe=Y[12]/$,oe=Y[13]/$,ve=Y[14]/$,he=Math.exp(this.computedRadius[0]);this.center.jump(b,pe-Le*he,oe-Ce*he,ve-le*he)},m.lastT=function(){return Math.max(this.center.lastT(),this.up.lastT(),this.right.lastT(),this.radius.lastT(),this.angle.lastT())},m.idle=function(b){this.center.idle(b),this.up.idle(b),this.right.idle(b),this.radius.idle(b),this.angle.idle(b)},m.flush=function(b){this.center.flush(b),this.up.flush(b),this.right.flush(b),this.radius.flush(b),this.angle.flush(b)},m.setDistance=function(b,T){T>0&&this.radius.set(b,Math.log(T))},m.lookAt=function(b,T,h,_){this.recalcMatrix(b),T=T||this.computedEye,h=h||this.computedCenter,_=_||this.computedUp;var y=_[0],v=_[1],A=_[2],d=x(y,v,A);if(!(d<1e-6)){y/=d,v/=d,A/=d;var D=T[0]-h[0],E=T[1]-h[1],R=T[2]-h[2],z=x(D,E,R);if(!(z<1e-6)){D/=z,E/=z,R/=z;var I=this.computedRight,P=I[0],L=I[1],F=I[2],B=y*P+v*L+A*F;P-=B*y,L-=B*v,F-=B*A;var O=x(P,L,F);if(!(O<.01&&(P=v*R-A*E,L=A*D-y*R,F=y*E-v*D,O=x(P,L,F),O<1e-6))){P/=O,L/=O,F/=O,this.up.set(b,y,v,A),this.right.set(b,P,L,F),this.center.set(b,h[0],h[1],h[2]),this.radius.set(b,Math.log(z));var V=v*F-A*L,K=A*P-y*F,j=y*L-v*P,G=x(V,K,j);V/=G,K/=G,j/=G;var q=y*D+v*E+A*R,J=P*D+L*E+F*R,te=V*D+K*E+j*R,Z=Math.asin(g(q)),ie=Math.atan2(te,J),Q=this.angle._state,re=Q[Q.length-1],ue=Q[Q.length-2];re=re%(2*Math.PI);var ee=Math.abs(re+2*Math.PI-ie),ae=Math.abs(re-ie),ce=Math.abs(re-2*Math.PI-ie);ee0?F.pop():new ArrayBuffer(P)}o.mallocArrayBuffer=k;function S(I){return new Uint8Array(k(I),0,I)}o.mallocUint8=S;function b(I){return new Uint16Array(k(2*I),0,I)}o.mallocUint16=b;function T(I){return new Uint32Array(k(4*I),0,I)}o.mallocUint32=T;function h(I){return new Int8Array(k(I),0,I)}o.mallocInt8=h;function _(I){return new Int16Array(k(2*I),0,I)}o.mallocInt16=_;function y(I){return new Int32Array(k(4*I),0,I)}o.mallocInt32=y;function v(I){return new Float32Array(k(4*I),0,I)}o.mallocFloat32=o.mallocFloat=v;function A(I){return new Float64Array(k(8*I),0,I)}o.mallocFloat64=o.mallocDouble=A;function d(I){return f?new Uint8ClampedArray(k(I),0,I):S(I)}o.mallocUint8Clamped=d;function D(I){return c?new BigUint64Array(k(8*I),0,I):null}o.mallocBigUint64=D;function E(I){return p?new BigInt64Array(k(8*I),0,I):null}o.mallocBigInt64=E;function R(I){return new DataView(k(I),0,I)}o.mallocDataView=R;function z(I){I=l.nextPow2(I);var P=l.log2(I),L=w[P];return L.length>0?L.pop():new s(I)}o.mallocBuffer=z,o.clearCache=function(){for(var P=0;P<32;++P)x.UINT8[P].length=0,x.UINT16[P].length=0,x.UINT32[P].length=0,x.INT8[P].length=0,x.INT16[P].length=0,x.INT32[P].length=0,x.FLOAT[P].length=0,x.DOUBLE[P].length=0,x.BIGUINT64[P].length=0,x.BIGINT64[P].length=0,x.UINT8C[P].length=0,g[P].length=0,w[P].length=0}},1755(a){"use strict";"use restrict";a.exports=o;function o(l){this.roots=new Array(l),this.ranks=new Array(l);for(var u=0;u",F="",B=L.length,O=F.length,V=z[0]===k||z[0]===T,K=0,j=-O;K>-1&&(K=I.indexOf(L,K),!(K===-1||(j=I.indexOf(F,K+B),j===-1)||j<=K));){for(var G=K;G=j)P[G]=null,I=I.substr(0,G)+" "+I.substr(G+1);else if(P[G]!==null){var q=P[G].indexOf(z[0]);q===-1?P[G]+=z:V&&(P[G]=P[G].substr(0,q+1)+(1+parseInt(P[G][q+1]))+P[G].substr(q+2))}var J=K+B,te=I.substr(J,j-J),Z=te.indexOf(L);Z!==-1?K=Z:K=j+O}return P}function y(R,z,I){for(var P=z.textAlign||"start",L=z.textBaseline||"alphabetic",F=[1<<30,1<<30],B=[0,0],O=R.length,V=0;V/g,` -`):I=I.replace(/\/g," ");var B="",O=[];for(re=0;re-1?parseInt(oe[1+me]):0,de=be>-1?parseInt(ve[1+be]):0;ye!==de&&(he=he.replace(Se(),"?px "),ae*=Math.pow(.75,de-ye),he=he.replace("?px ",Se())),ee+=.25*q*(de-ye)}if(F.superscripts===!0){var xe=oe.indexOf(k),Ae=ve.indexOf(k),Pe=xe>-1?parseInt(oe[1+xe]):0,Fe=Ae>-1?parseInt(ve[1+Ae]):0;Pe!==Fe&&(he=he.replace(Se(),"?px "),ae*=Math.pow(.75,Fe-Pe),he=he.replace("?px ",Se())),ee-=.25*q*(Fe-Pe)}if(F.bolds===!0){var Ye=oe.indexOf(g)>-1,qe=ve.indexOf(g)>-1;!Ye&&qe&&(Be?he=he.replace("italic ","italic bold "):he="bold "+he),Ye&&!qe&&(he=he.replace("bold ",""))}if(F.italics===!0){var Be=oe.indexOf(M)>-1,Oe=ve.indexOf(M)>-1;!Be&&Oe&&(he="italic "+he),Be&&!Oe&&(he=he.replace("italic ",""))}z.font=he}for(Q=0;Q0&&(L=P.size),P.lineSpacing&&P.lineSpacing>0&&(F=P.lineSpacing),P.styletags&&P.styletags.breaklines&&(B.breaklines=!!P.styletags.breaklines),P.styletags&&P.styletags.bolds&&(B.bolds=!!P.styletags.bolds),P.styletags&&P.styletags.italics&&(B.italics=!!P.styletags.italics),P.styletags&&P.styletags.subscripts&&(B.subscripts=!!P.styletags.subscripts),P.styletags&&P.styletags.superscripts&&(B.superscripts=!!P.styletags.superscripts)),I.font=[P.fontStyle,P.fontVariant,P.fontWeight,L+"px",P.font].filter(function(V){return V}).join(" "),I.textAlign="start",I.textBaseline="alphabetic",I.direction="ltr";var O=v(z,I,R,L,F,B);return D(O,P,L)}},1538(a){(function(){"use strict";if(typeof ses!="undefined"&&ses.ok&&!ses.ok())return;function i(d){d.permitHostObjects___&&d.permitHostObjects___(i)}typeof ses!="undefined"&&(ses.weakMapPermitHostObjects=i);var l=!1;if(typeof WeakMap=="function"){var u=WeakMap;if(!(typeof navigator!="undefined"&&/Firefox/.test(navigator.userAgent))){var s=new u,f=Object.freeze({});if(s.set(f,1),s.get(f)!==1)l=!0;else{a.exports=WeakMap;return}}}var c=Object.prototype.hasOwnProperty,p=Object.getOwnPropertyNames,x=Object.defineProperty,g=Object.isExtensible,w="weakmap:",M=w+"ident:"+Math.random()+"___";if(typeof crypto!="undefined"&&typeof crypto.getRandomValues=="function"&&typeof ArrayBuffer=="function"&&typeof Uint8Array=="function"){var m=new ArrayBuffer(25),k=new Uint8Array(m);crypto.getRandomValues(k),M=w+"rand:"+Array.prototype.map.call(k,function(d){return(d%36).toString(36)}).join("")+"___"}function S(d){return!(d.substr(0,w.length)==w&&d.substr(d.length-3)==="___")}if(x(Object,"getOwnPropertyNames",{value:function(D){return p(D).filter(S)}}),"getPropertyNames"in Object){var b=Object.getPropertyNames;x(Object,"getPropertyNames",{value:function(D){return b(D).filter(S)}})}function T(d){if(d!==Object(d))throw new TypeError("Not an object: "+d);var D=d[M];if(D&&D.key===d)return D;if(g(d)){D={key:d};try{return x(d,M,{value:D,writable:!1,enumerable:!1,configurable:!1}),D}catch(E){return}}}(function(){var d=Object.freeze;x(Object,"freeze",{value:function(z){return T(z),d(z)}});var D=Object.seal;x(Object,"seal",{value:function(z){return T(z),D(z)}});var E=Object.preventExtensions;x(Object,"preventExtensions",{value:function(z){return T(z),E(z)}})})();function h(d){return d.prototype=null,Object.freeze(d)}var _=!1;function y(){!_&&typeof console!="undefined"&&(_=!0,console.warn("WeakMap should be invoked as new WeakMap(), not WeakMap(). This will be an error in the future."))}var v=0,A=function(){this instanceof A||y();var d=[],D=[],E=v++;function R(L,F){var B,O=T(L);return O?E in O?O[E]:F:(B=d.indexOf(L),B>=0?D[B]:F)}function z(L){var F=T(L);return F?E in F:d.indexOf(L)>=0}function I(L,F){var B,O=T(L);return O?O[E]=F:(B=d.indexOf(L),B>=0?D[B]=F:(B=d.length,D[B]=F,d[B]=L)),this}function P(L){var F=T(L),B,O;return F?E in F&&delete F[E]:(B=d.indexOf(L),B<0?!1:(O=d.length-1,d[B]=void 0,D[B]=D[O],d[B]=d[O],d.length=O,D.length=O,!0))}return Object.create(A.prototype,{get___:{value:h(R)},has___:{value:h(z)},set___:{value:h(I)},delete___:{value:h(P)}})};A.prototype=Object.create(Object.prototype,{get:{value:function(D,E){return this.get___(D,E)},writable:!0,configurable:!0},has:{value:function(D){return this.has___(D)},writable:!0,configurable:!0},set:{value:function(D,E){return this.set___(D,E)},writable:!0,configurable:!0},delete:{value:function(D){return this.delete___(D)},writable:!0,configurable:!0}}),typeof u=="function"?(function(){l&&typeof Proxy!="undefined"&&(Proxy=void 0);function d(){this instanceof A||y();var D=new u,E=void 0,R=!1;function z(F,B){return E?D.has(F)?D.get(F):E.get___(F,B):D.get(F,B)}function I(F){return D.has(F)||(E?E.has___(F):!1)}var P;l?P=function(F,B){return D.set(F,B),D.has(F)||(E||(E=new A),E.set(F,B)),this}:P=function(F,B){if(R)try{D.set(F,B)}catch(O){E||(E=new A),E.set___(F,B)}else D.set(F,B);return this};function L(F){var B=!!D.delete(F);return E&&E.delete___(F)||B}return Object.create(A.prototype,{get___:{value:h(z)},has___:{value:h(I)},set___:{value:h(P)},delete___:{value:h(L)},permitHostObjects___:{value:h(function(F){if(F===i)R=!0;else throw new Error("bogus call to permitHostObjects___")})}})}d.prototype=A.prototype,a.exports=d,Object.defineProperty(WeakMap.prototype,"constructor",{value:WeakMap,enumerable:!1,configurable:!0,writable:!0})})():(typeof Proxy!="undefined"&&(Proxy=void 0),a.exports=A)})()},236(a,o,i){var l=i(8284);a.exports=u;function u(){var s={};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(s);return c&&c.identity===s?c:l(f,s)}}},8284(a){a.exports=o;function o(i,l){var u={identity:l},s=i.valueOf;return Object.defineProperty(i,"valueOf",{value:function(f){return f!==l?s.apply(this,arguments):u},writable:!0}),u}},606(a,o,i){var l=i(236);a.exports=u;function u(){var s=l();return{get:function(f,c){var p=s(f);return p.hasOwnProperty("value")?p.value:c},set:function(f,c){return s(f).value=c,this},has:function(f){return"value"in s(f)},delete:function(f){return delete s(f).value}}}},3349(a){"use strict";function o(){return function(c,p,x,g,w,M){var m=c[0],k=x[0],S=[0],b=k;g|=0;var T=0,h=k;for(T=0;T=0!=y>=0&&w.push(S[0]+.5+.5*(_+y)/(_-y))}g+=h,++S[0]}}}function i(){return o()}var l=i;function u(c){var p={};return function(g,w,M){var m=g.dtype,k=g.order,S=[m,k.join()].join(),b=p[S];return b||(p[S]=b=c([m,k])),b(g.shape.slice(0),g.data,g.stride,g.offset|0,w,M)}}function s(c){return u(l.bind(void 0,c))}function f(c){return s({funcName:c.funcName})}a.exports=f({funcName:"zeroCrossings"})},781(a,o,i){"use strict";a.exports=u;var l=i(3349);function u(s,f){var c=[];return f=+f||0,l(s.hi(s.shape[0]-1),c,f),c}},7790(){}};let r={};function t(a){let o=r[a];if(o!==void 0)return o.exports;let i=r[a]={id:a,loaded:!1,exports:{}};return e[a].call(i.exports,i,i.exports,t),i.loaded=!0,i.exports}t.g=(function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch(a){if(typeof window=="object")return window}})(),t.nmd=a=>(a.paths=[],a.children||(a.children=[]),a);let n=t(3065);KB.exports=n})()});var Zo=_e((e8e,QB)=>{"use strict";var{normalize:Hge}=Wr();function Vge(e){return e?Hge(e):[0,0,0,1]}QB.exports=Vge});var Yl=_e((r8e,aO)=>{"use strict";var tO=ot(),ap=ao(),Ou=Wr(),Gge=ji().defaultLine,jB=ha().isArrayOrTypedArray,i4=Ou.normalize(Gge),nO=1;function eO(e,r){return[e[0],e[1],e[2],e[3]*r]}function a4(e){return tO(e)||!Ou.isChannelArray(e)&&!Ou.isValid(e)?i4:Ou.normalize(e)}function rO(e){return tO(e)?e:nO}function Yge(e,r,t){var n=e.color;n&&n._inputArray&&(n=n._inputArray);var a=jB(n),o=jB(r),i=ap.extractOpts(e),l=[],u,s,f,c,p;if(i.colorscale!==void 0?u=ap.makeColorScaleFuncFromTrace(e):u=a4,a?s=(g,w)=>g[w]===void 0?i4:i.colorscale===void 0?u(g[w]):Ou.normalize(u(g[w])):s=a4,o?f=function(g,w){return g[w]===void 0?nO:rO(g[w])}:f=rO,a||o)for(var x=0;xZge});var Wge,Zge,l4=Ot(()=>{"use strict";Wge={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]},Zge=Wge});var ip={};Ut(ip,{default:()=>$ge});var Jge,$ge,op=Ot(()=>{"use strict";Jge={circle:"\u25CF","circle-open":"\u25CB",square:"\u25A0","square-open":"\u25A1",diamond:"\u25C6","diamond-open":"\u25C7",cross:"+",x:"\u274C"},$ge=Jge});var oO=_e((t8e,iO)=>{"use strict";var Kge=Er();function s4(e,r,t,n){if(!r||!r.visible)return null;for(var a=Kge.getComponentMethod("errorbars","makeComputeError")(r),o=new Array(e.length),i=0;i0){var c=n.c2l(s);n._lowerLogErrorBound||(n._lowerLogErrorBound=c),n._lowerErrorBound=Math.min(n._lowerLogErrorBound,c)}}else o[i]=[-l[0]*t,l[1]*t]}return o}function Qge(e){for(var r=0;r{"use strict";var e3e=Dn().gl_line3d,lO=Dn().gl_scatter3d,r3e=Dn().gl_error3d,t3e=Dn().gl_mesh3d,n3e=Dn().delaunay_triangulate,Jo=rr(),vO=Zo(),lp=Yl().formatColor,a3e=tm(),u4=(l4(),or(o4)).default,i3e=(op(),or(ip)).default,o3e=Ht(),l3e=io().appendArrayPointValue,s3e=oO();function hO(e,r){this.scene=e,this.uid=r,this.linePlot=null,this.scatterPlot=null,this.errorBars=null,this.textMarkers=null,this.delaunayMesh=null,this.color=null,this.mode="",this.dataPoints=[],this.axesBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.textLabels=null,this.data=null}var c4=hO.prototype;c4.handlePick=function(e){if(e.object&&(e.object===this.linePlot||e.object===this.delaunayMesh||e.object===this.textMarkers||e.object===this.scatterPlot)){var r=e.index=e.data.index;return e.object.highlight&&e.object.highlight(null),this.scatterPlot&&(e.object=this.scatterPlot,this.scatterPlot.highlight(e.data)),e.textLabel="",this.textLabels&&(Jo.isArrayOrTypedArray(this.textLabels)?(this.textLabels[r]||this.textLabels[r]===0)&&(e.textLabel=this.textLabels[r]):e.textLabel=this.textLabels),e.traceCoordinate=[this.data.x[r],this.data.y[r],this.data.z[r]],!0}};function u3e(e,r,t){var n=(t+1)%3,a=(t+2)%3,o=[],i=[],l;for(l=0;l-1?-1:e.indexOf("right")>-1?1:0}function uO(e){return e==null?0:e.indexOf("top")>-1?-1:e.indexOf("bottom")>-1?1:0}function c3e(e){var r=0,t=0,n=[r,t];if(Array.isArray(e))for(var a=0;a=0){var s=u3e(l.position,l.delaunayColor,l.delaunayAxis);s.opacity=e.opacity,this.delaunayMesh?this.delaunayMesh.update(s):(s.gl=r,this.delaunayMesh=t3e(s),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)};c4.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 p3e(e,r){var t=new hO(e,r.uid);return t.update(r),t}dO.exports=p3e});var g4=_e((a8e,bO)=>{"use strict";var $o=Xs(),g3e=Hn(),p4=Si(),v4=No().axisHoverFormat,{hovertemplateAttrs:y3e,texttemplateAttrs:m3e,templatefallbackAttrs:gO}=Mi(),yO=Vn(),b3e=(l4(),or(o4)).default,x3e=(op(),or(ip)).default,Hi=Ft().extendFlat,_3e=ia().overrideAll,mO=(Gh(),or(Vh)).default,w3e=$o.line,i0=$o.marker,M3e=i0.line,T3e=Hi({width:w3e.width,dash:{valType:"enumerated",values:mO(b3e),dflt:"solid"}},p4("line"));function h4(e){return{show:{valType:"boolean",dflt:!1},opacity:{valType:"number",min:0,max:1,dflt:1},scale:{valType:"number",min:0,max:10,dflt:2/3}}}var d4=bO.exports=_3e({x:$o.x,y:$o.y,z:{valType:"data_array"},text:Hi({},$o.text,{}),texttemplate:m3e(),texttemplatefallback:gO({editType:"calc"}),hovertext:Hi({},$o.hovertext,{}),hovertemplate:y3e(),hovertemplatefallback:gO(),xhoverformat:v4("x"),yhoverformat:v4("y"),zhoverformat:v4("z"),mode:Hi({},$o.mode,{dflt:"lines+markers"}),surfaceaxis:{valType:"enumerated",values:[-1,0,1,2],dflt:-1},surfacecolor:{valType:"color"},projection:{x:h4("x"),y:h4("y"),z:h4("z")},connectgaps:$o.connectgaps,line:T3e,marker:Hi({symbol:{valType:"enumerated",values:mO(x3e),dflt:"circle",arrayOk:!0},size:Hi({},i0.size,{dflt:8}),sizeref:i0.sizeref,sizemin:i0.sizemin,sizemode:i0.sizemode,opacity:Hi({},i0.opacity,{arrayOk:!1}),colorbar:i0.colorbar,line:Hi({width:Hi({},M3e.width,{arrayOk:!1})},p4("marker.line"))},p4("marker")),textposition:Hi({},$o.textposition,{dflt:"top center"}),textfont:g3e({noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0,editType:"calc",colorEditType:"style",arrayOk:!0,variantValues:["normal","small-caps"]}),opacity:yO.opacity,hoverinfo:Hi({},yO.hoverinfo)},"calc","nested");d4.x.editType=d4.y.editType=d4.z.editType="calc+clearAxisTypes"});var wO=_e((i8e,_O)=>{"use strict";var xO=Er(),A3e=rr(),y4=Sa(),k3e=Fb(),S3e=Pb(),C3e=Ib(),E3e=g4();_O.exports=function(r,t,n,a){function o(x,g){return A3e.coerce(r,t,E3e,x,g)}var i=L3e(r,t,o,a);if(!i){t.visible=!1;return}o("text"),o("hovertext"),o("hovertemplate"),o("hovertemplatefallback"),o("xhoverformat"),o("yhoverformat"),o("zhoverformat"),o("mode"),y4.hasMarkers(t)&&k3e(r,t,n,a,o,{noAngle:!0,noLineDash:!0,noSelect:!0}),y4.hasLines(t)&&(o("connectgaps"),S3e(r,t,n,a,o)),y4.hasText(t)&&(o("texttemplate"),o("texttemplatefallback"),C3e(r,t,a,o,{noSelect:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0}));var l=(t.line||{}).color,u=(t.marker||{}).color;o("surfaceaxis")>=0&&o("surfacecolor",l||u);for(var s=["x","y","z"],f=0;f<3;++f){var c="projection."+s[f];o(c+".show")&&(o(c+".opacity"),o(c+".scale"))}var p=xO.getComponentMethod("errorbars","supplyDefaults");p(r,t,l||u||n,{axis:"z"}),p(r,t,l||u||n,{axis:"y",inherit:"z"}),p(r,t,l||u||n,{axis:"x",inherit:"z"})};function L3e(e,r,t,n){var a=0,o=t("x"),i=t("y"),l=t("z"),u=xO.getComponentMethod("calendars","handleTraceDefaults");return u(e,r,["x","y","z"],n),o&&i&&l&&(a=Math.min(o.length,i.length,l.length),r._length=r._xlength=r._ylength=r._zlength=a),a}});var TO=_e((o8e,MO)=>{"use strict";var D3e=hd(),R3e=qb();MO.exports=function(r,t){var n=[{x:!1,y:!1,trace:t,t:{}}];return D3e(n,t),R3e(r,t),n}});var kO=_e((l8e,AO)=>{AO.exports=F3e;function F3e(e,r){if(typeof e!="string")throw new TypeError("must specify type string");if(r=r||{},typeof document=="undefined"&&!r.canvas)return null;var t=r.canvas||document.createElement("canvas");typeof r.width=="number"&&(t.width=r.width),typeof r.height=="number"&&(t.height=r.height);var n=r,a;try{var o=[e];e.indexOf("webgl")===0&&o.push("experimental-"+e);for(var i=0;i{var P3e=kO();SO.exports=function(r){return P3e("webgl",r)}});var DO=_e((u8e,LO)=>{"use strict";var EO=Wr(),I3e=function(){};LO.exports=function(r){for(var t in r)typeof r[t]=="function"&&(r[t]=I3e);r.destroy=function(){r.container.parentNode.removeChild(r.container)};var n=document.createElement("div");n.className="no-webgl",n.style.cursor="pointer",n.style.fontSize="24px",n.style.color=EO.defaults[0],n.style.position="absolute",n.style.left=n.style.top="0px",n.style.width=n.style.height="100%",n.style["background-color"]=EO.lightLine,n.style["z-index"]=30;var a=document.createElement("p");return a.textContent="WebGL is not supported by your browser - visit https://get.webgl.org for more info",a.style.position="relative",a.style.top="50%",a.style.left="50%",a.style.height="30%",a.style.width="50%",a.style.margin="-15% 0 0 -25%",n.appendChild(a),r.container.appendChild(n),r.container.style.background="#FFFFFF",r.container.onclick=function(){window.open("https://get.webgl.org")},!1}});var PO=_e((f8e,FO)=>{"use strict";var o0=Zo(),z3e=rr(),N3e=["xaxis","yaxis","zaxis"];function RO(){this.bounds=[[-10,-10,-10],[10,10,10]],this.ticks=[[],[],[]],this.tickEnable=[!0,!0,!0],this.tickFont=["sans-serif","sans-serif","sans-serif"],this.tickSize=[12,12,12],this.tickFontWeight=["normal","normal","normal","normal"],this.tickFontStyle=["normal","normal","normal","normal"],this.tickFontVariant=["normal","normal","normal","normal"],this.tickAngle=[0,0,0],this.tickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.tickPad=[18,18,18],this.labels=["x","y","z"],this.labelEnable=[!0,!0,!0],this.labelFont=["Open Sans","Open Sans","Open Sans"],this.labelSize=[20,20,20],this.labelFontWeight=["normal","normal","normal","normal"],this.labelFontStyle=["normal","normal","normal","normal"],this.labelFontVariant=["normal","normal","normal","normal"],this.labelColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.labelPad=[30,30,30],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=[10,10,10],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=[!0,!0,!0],this.backgroundColor=[[.8,.8,.8,.5],[.8,.8,.8,.5],[.8,.8,.8,.5]],this._defaultTickPad=this.tickPad.slice(),this._defaultLabelPad=this.labelPad.slice(),this._defaultLineTickLength=this.lineTickLength.slice()}var q3e=RO.prototype;q3e.merge=function(e,r){for(var t=this,n=0;n<3;++n){var a=r[N3e[n]];if(!a.visible){t.tickEnable[n]=!1,t.labelEnable[n]=!1,t.lineEnable[n]=!1,t.lineTickEnable[n]=!1,t.gridEnable[n]=!1,t.zeroEnable[n]=!1,t.backgroundEnable[n]=!1;continue}t.labels[n]=e._meta?z3e.templateString(a.title.text,e._meta):a.title.text,"font"in a.title&&(a.title.font.color&&(t.labelColor[n]=o0(a.title.font.color)),a.title.font.family&&(t.labelFont[n]=a.title.font.family),a.title.font.size&&(t.labelSize[n]=a.title.font.size),a.title.font.weight&&(t.labelFontWeight[n]=a.title.font.weight),a.title.font.style&&(t.labelFontStyle[n]=a.title.font.style),a.title.font.variant&&(t.labelFontVariant[n]=a.title.font.variant)),"showline"in a&&(t.lineEnable[n]=a.showline),"linecolor"in a&&(t.lineColor[n]=o0(a.linecolor)),"linewidth"in a&&(t.lineWidth[n]=a.linewidth),"showgrid"in a&&(t.gridEnable[n]=a.showgrid),"gridcolor"in a&&(t.gridColor[n]=o0(a.gridcolor)),"gridwidth"in a&&(t.gridWidth[n]=a.gridwidth),a.type==="log"?t.zeroEnable[n]=!1:"zeroline"in a&&(t.zeroEnable[n]=a.zeroline),"zerolinecolor"in a&&(t.zeroLineColor[n]=o0(a.zerolinecolor)),"zerolinewidth"in a&&(t.zeroLineWidth[n]=a.zerolinewidth),"ticks"in a&&a.ticks?t.lineTickEnable[n]=!0:t.lineTickEnable[n]=!1,"ticklen"in a&&(t.lineTickLength[n]=t._defaultLineTickLength[n]=a.ticklen),"tickcolor"in a&&(t.lineTickColor[n]=o0(a.tickcolor)),"tickwidth"in a&&(t.lineTickWidth[n]=a.tickwidth),"tickangle"in a&&(t.tickAngle[n]=a.tickangle==="auto"?-3600:Math.PI*-a.tickangle/180),"showticklabels"in a&&(t.tickEnable[n]=a.showticklabels),"tickfont"in a&&(a.tickfont.color&&(t.tickColor[n]=o0(a.tickfont.color)),a.tickfont.family&&(t.tickFont[n]=a.tickfont.family),a.tickfont.size&&(t.tickSize[n]=a.tickfont.size),a.tickfont.weight&&(t.tickFontWeight[n]=a.tickfont.weight),a.tickfont.style&&(t.tickFontStyle[n]=a.tickfont.style),a.tickfont.variant&&(t.tickFontVariant[n]=a.tickfont.variant)),"mirror"in a?["ticks","all","allticks"].indexOf(a.mirror)!==-1?(t.lineTickMirror[n]=!0,t.lineMirror[n]=!0):a.mirror===!0?(t.lineTickMirror[n]=!1,t.lineMirror[n]=!0):(t.lineTickMirror[n]=!1,t.lineMirror[n]=!1):t.lineMirror[n]=!1,"showbackground"in a&&a.showbackground!==!1?(t.backgroundEnable[n]=!0,t.backgroundColor[n]=o0(a.backgroundcolor)):t.backgroundEnable[n]=!1}};function B3e(e,r){var t=new RO;return t.merge(e,r),t}FO.exports=B3e});var NO=_e((c8e,zO)=>{"use strict";var O3e=Zo(),U3e=["xaxis","yaxis","zaxis"];function IO(){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 H3e=IO.prototype;H3e.merge=function(e){for(var r=0;r<3;++r){var t=e[U3e[r]];if(!t.visible){this.enabled[r]=!1,this.drawSides[r]=!1;continue}this.enabled[r]=t.showspikes,this.colors[r]=O3e(t.spikecolor),this.drawSides[r]=t.spikesides,this.lineWidth[r]=t.spikethickness}};function V3e(e){var r=new IO;return r.merge(e),r}zO.exports=V3e});var OO=_e((v8e,BO)=>{"use strict";BO.exports=Z3e;var qO=Ht(),G3e=rr(),Y3e=["xaxis","yaxis","zaxis"],X3e=[0,0,0];function W3e(e){for(var r=new Array(3),t=0;t<3;++t){for(var n=e[t],a=new Array(n.length),o=0;o/g," "));a[o]=s,i.tickmode=l}}r.ticks=a;for(var o=0;o<3;++o){X3e[o]=.5*(e.glplot.bounds[0][o]+e.glplot.bounds[1][o]);for(var f=0;f<2;++f)r.bounds[f][o]=e.glplot.bounds[f][o]}e.contourLevels=W3e(a)}});var WO=_e((h8e,XO)=>{"use strict";var VO=Dn().gl_plot3d,J3e=VO.createCamera,UO=VO.createScene,$3e=CO(),K3e=Y1(),fp=Er(),ya=rr(),up=ya.preserveDrawingBuffer(),cp=Ht(),Vi=ho(),Q3e=Zo(),j3e=DO(),eye=_x(),rye=PO(),tye=NO(),nye=OO(),aye=tu().applyAutorangeOptions,vv,sp,GO=!1;function YO(e,r){var t=document.createElement("div"),n=e.container;this.graphDiv=e.graphDiv;var a=document.createElementNS("http://www.w3.org/2000/svg","svg");a.style.position="absolute",a.style.top=a.style.left="0px",a.style.width=a.style.height="100%",a.style["z-index"]=20,a.style["pointer-events"]="none",t.appendChild(a),this.svgContainer=a,t.id=e.id,t.style.position="absolute",t.style.top=t.style.left="0px",t.style.width=t.style.height="100%",n.appendChild(t),this.fullLayout=r,this.id=e.id||"scene",this.fullSceneLayout=r[this.id],this.plotArgs=[[],{},{}],this.axesOptions=rye(r,r[this.id]),this.spikeOptions=tye(r[this.id]),this.container=t,this.staticMode=!!e.staticPlot,this.pixelRatio=this.pixelRatio||e.plotGlPixelRatio||2,this.dataScale=[1,1,1],this.contourLevels=[[],[],[]],this.convertAnnotations=fp.getComponentMethod("annotations3d","convert"),this.drawAnnotations=fp.getComponentMethod("annotations3d","draw"),this.initializeGLPlot()}var $n=YO.prototype;$n.prepareOptions=function(){var e=this,r={canvas:e.canvas,gl:e.gl,glOptions:{preserveDrawingBuffer:up,premultipliedAlpha:!0,antialias:!0},container:e.container,axes:e.axesOptions,spikes:e.spikeOptions,pickRadius:10,snapToData:!0,autoScale:!0,autoBounds:!1,cameraObject:e.camera,pixelRatio:e.pixelRatio};if(e.staticMode){if(!sp&&(vv=document.createElement("canvas"),sp=$3e({canvas:vv,preserveDrawingBuffer:!0,premultipliedAlpha:!0,antialias:!0}),!sp))throw new Error("error creating static canvas/context for image server");r.gl=sp,r.canvas=vv}return r};var HO=!0;$n.tryCreatePlot=function(){var e=this,r=e.prepareOptions(),t=!0;try{e.glplot=UO(r)}catch(n){if(e.staticMode||!HO||up)t=!1;else{ya.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{up=r.glOptions.preserveDrawingBuffer=!0,e.glplot=UO(r)}catch(a){up=r.glOptions.preserveDrawingBuffer=!1,t=!1}}}return HO=!1,t};$n.initializeGLCamera=function(){var e=this,r=e.fullSceneLayout.camera,t=r.projection.type==="orthographic";e.camera=J3e(e.container,{center:[r.center.x,r.center.y,r.center.z],eye:[r.eye.x,r.eye.y,r.eye.z],up:[r.up.x,r.up.y,r.up.z],_ortho:t,zoomMin:.01,zoomMax:100,mode:"orbit"})};$n.initializeGLPlot=function(){var e=this;e.initializeGLCamera();var r=e.tryCreatePlot();if(!r)return j3e(e);e.traces={},e.make4thDimension();var t=e.graphDiv,n=t.layout,a=function(){var i={};return e.isCameraChanged(n)&&(i[e.id+".camera"]=e.getCamera()),e.isAspectChanged(n)&&(i[e.id+".aspectratio"]=e.glplot.getAspectratio(),n[e.id].aspectmode!=="manual"&&(e.fullSceneLayout.aspectmode=n[e.id].aspectmode=i[e.id+".aspectmode"]="manual")),i},o=function(i){if(i.fullSceneLayout.dragmode!==!1){var l=a();i.saveLayout(n),i.graphDiv.emit("plotly_relayout",l)}};return e.glplot.canvas&&(e.glplot.canvas.addEventListener("mouseup",function(){o(e)}),e.glplot.canvas.addEventListener("touchstart",function(){GO=!0}),e.glplot.canvas.addEventListener("wheel",function(i){if(t._context._scrollZoom.gl3d){if(e.camera._ortho){var l=i.deltaX>i.deltaY?1.1:.9090909090909091,u=e.glplot.getAspectratio();e.glplot.setAspectratio({x:l*u.x,y:l*u.y,z:l*u.z})}o(e)}},K3e?{passive:!1}:!1),e.glplot.canvas.addEventListener("mousemove",function(){if(e.fullSceneLayout.dragmode!==!1&&e.camera.mouseListener.buttons!==0){var i=a();e.graphDiv.emit("plotly_relayouting",i)}}),e.staticMode||e.glplot.canvas.addEventListener("webglcontextlost",function(i){t&&t.emit&&t.emit("plotly_webglcontextlost",{event:i,layer:e.id})},!1)),e.glplot.oncontextloss=function(){e.recoverContext()},e.glplot.onrender=function(){e.render()},!0};$n.render=function(){var e=this,r=e.graphDiv,t,n=e.svgContainer,a=e.container.getBoundingClientRect();r._fullLayout._calcInverseTransform(r);var o=r._fullLayout._invScaleX,i=r._fullLayout._invScaleY,l=a.width*o,u=a.height*i;n.setAttributeNS(null,"viewBox","0 0 "+l+" "+u),n.setAttributeNS(null,"width",l),n.setAttributeNS(null,"height",u),nye(e),e.glplot.axes.update(e.axesOptions);for(var s=Object.keys(e.traces),f=null,c=e.glplot.selection,p=0;p")):t.type==="isosurface"||t.type==="volume"?(m.valueLabel=cp.hoverLabelText(e._mockAxis,e._mockAxis.d2l(c.traceCoordinate[3]),t.valuehoverformat),h.push("value: "+m.valueLabel),c.textLabel&&h.push(c.textLabel),T=h.join("
")):T=c.textLabel;var _={x:c.traceCoordinate[0],y:c.traceCoordinate[1],z:c.traceCoordinate[2],data:w._input,fullData:w,curveNumber:w.index,pointNumber:M};Vi.appendArrayPointValue(_,w,M),t._module.eventData&&(_=w._module.eventData(_,c,w,{},M));var y={points:[_]};if(e.fullSceneLayout.hovermode){var v=[];Vi.loneHover({trace:w,x:(.5+.5*g[0]/g[3])*l,y:(.5-.5*g[1]/g[3])*u,xLabel:m.xLabel,yLabel:m.yLabel,zLabel:m.zLabel,text:T,name:f.name,color:Vi.castHoverOption(w,M,"bgcolor")||f.color,borderColor:Vi.castHoverOption(w,M,"bordercolor"),fontFamily:Vi.castHoverOption(w,M,"font.family"),fontSize:Vi.castHoverOption(w,M,"font.size"),fontColor:Vi.castHoverOption(w,M,"font.color"),nameLength:Vi.castHoverOption(w,M,"namelength"),textAlign:Vi.castHoverOption(w,M,"align"),hovertemplate:ya.castOption(w,M,"hovertemplate"),hovertemplateLabels:ya.extendFlat({},_,m),eventData:[_]},{container:n,gd:r,inOut_bbox:v}),_.bbox=v[0]}c.distance<5&&(c.buttons||GO)?r.emit("plotly_click",y):r.emit("plotly_hover",y),this.oldEventData=y}else Vi.loneUnhover(n),this.oldEventData&&r.emit("plotly_unhover",this.oldEventData),this.oldEventData=void 0;e.drawAnnotations(e)};$n.recoverContext=function(){var e=this;e.glplot.dispose();var r=function(){if(e.glplot.gl.isContextLost()){requestAnimationFrame(r);return}if(!e.initializeGLPlot()){ya.error("Catastrophic and unrecoverable WebGL error. Context lost.");return}e.plot.apply(e,e.plotArgs)};requestAnimationFrame(r)};var hv=["xaxis","yaxis","zaxis"];function iye(e,r,t){for(var n=e.fullSceneLayout,a=0;a<3;a++){var o=hv[a],i=o.charAt(0),l=n[o],u=r[i],s=r[i+"calendar"],f=r["_"+i+"length"];if(!ya.isArrayOrTypedArray(u))t[0][a]=Math.min(t[0][a],0),t[1][a]=Math.max(t[1][a],f-1);else for(var c,p=0;p<(f||u.length);p++)if(ya.isArrayOrTypedArray(u[p]))for(var x=0;xw[1][i])w[0][i]=-1,w[1][i]=1;else{var d=w[1][i]-w[0][i];w[0][i]-=d/32,w[1][i]+=d/32}if(k=[w[0][i],w[1][i]],k=aye(k,u),w[0][i]=k[0],w[1][i]=k[1],u.isReversed()){var D=w[0][i];w[0][i]=w[1][i],w[1][i]=D}}else k=u.range,w[0][i]=u.r2l(k[0]),w[1][i]=u.r2l(k[1]);w[0][i]===w[1][i]&&(w[0][i]-=1,w[1][i]+=1),M[i]=w[1][i]-w[0][i],u.range=[w[0][i],w[1][i]],u.limitRange(),n.glplot.setBounds(i,{min:u.range[0]*x[i],max:u.range[1]*x[i]})}var E,R=f.aspectmode;if(R==="cube")E=[1,1,1];else if(R==="manual"){var z=f.aspectratio;E=[z.x,z.y,z.z]}else if(R==="auto"||R==="data"){var I=[1,1,1];for(i=0;i<3;++i){u=f[hv[i]],s=u.type;var P=m[s];I[i]=Math.pow(P.acc,1/P.count)/x[i]}R==="data"||Math.max.apply(null,I)/Math.min.apply(null,I)<=4?E=I:E=[1,1,1]}else throw new Error("scene.js aspectRatio was not one of the enumerated types");f.aspectratio.x=c.aspectratio.x=E[0],f.aspectratio.y=c.aspectratio.y=E[1],f.aspectratio.z=c.aspectratio.z=E[2],n.glplot.setAspectratio(f.aspectratio),n.viewInitial.aspectratio||(n.viewInitial.aspectratio={x:f.aspectratio.x,y:f.aspectratio.y,z:f.aspectratio.z}),n.viewInitial.aspectmode||(n.viewInitial.aspectmode=f.aspectmode);var L=f.domain||null,F=r._size||null;if(L&&F){var B=n.container.style;B.position="absolute",B.left=F.l+L.x[0]*F.w+"px",B.top=F.t+(1-L.y[1])*F.h+"px",B.width=F.w*(L.x[1]-L.x[0])+"px",B.height=F.h*(L.y[1]-L.y[0])+"px"}n.glplot.redraw()}};$n.destroy=function(){var e=this;e.glplot&&(e.camera.mouseListener.enabled=!1,e.container.removeEventListener("wheel",e.camera.wheelListener),e.camera=null,e.glplot.dispose(),e.container.parentNode.removeChild(e.container),e.glplot=null)};function lye(e){return[[e.eye.x,e.eye.y,e.eye.z],[e.center.x,e.center.y,e.center.z],[e.up.x,e.up.y,e.up.z]]}function sye(e){return{up:{x:e.up[0],y:e.up[1],z:e.up[2]},center:{x:e.center[0],y:e.center[1],z:e.center[2]},eye:{x:e.eye[0],y:e.eye[1],z:e.eye[2]},projection:{type:e._ortho===!0?"orthographic":"perspective"}}}$n.getCamera=function(){var e=this;return e.camera.view.recalcMatrix(e.camera.view.lastT()),sye(e.camera)};$n.setViewport=function(e){var r=this,t=e.camera;r.camera.lookAt.apply(this,lye(t)),r.glplot.setAspectratio(e.aspectratio);var n=t.projection.type==="orthographic",a=r.camera._ortho;n!==a&&(r.glplot.redraw(),r.glplot.clearRGBA(),r.glplot.dispose(),r.initializeGLPlot())};$n.isCameraChanged=function(e){var r=this,t=r.getCamera(),n=ya.nestedProperty(e,r.id+".camera"),a=n.get();function o(s,f,c,p){var x=["up","center","eye"],g=["x","y","z"];return f[x[c]]&&s[x[c]][g[p]]===f[x[c]][g[p]]}var i=!1;if(a===void 0)i=!0;else{for(var l=0;l<3;l++)for(var u=0;u<3;u++)if(!o(t,a,l,u)){i=!0;break}(!a.projection||t.projection&&t.projection.type!==a.projection.type)&&(i=!0)}return i};$n.isAspectChanged=function(e){var r=this,t=r.glplot.getAspectratio(),n=ya.nestedProperty(e,r.id+".aspectratio"),a=n.get();return a===void 0||a.x!==t.x||a.y!==t.y||a.z!==t.z};$n.saveLayout=function(e){var r=this,t=r.fullLayout,n,a,o,i,l,u,s=r.isCameraChanged(e),f=r.isAspectChanged(e),c=s||f;if(c){var p={};if(s&&(n=r.getCamera(),a=ya.nestedProperty(e,r.id+".camera"),o=a.get(),p[r.id+".camera"]=o),f&&(i=r.glplot.getAspectratio(),l=ya.nestedProperty(e,r.id+".aspectratio"),u=l.get(),p[r.id+".aspectratio"]=u),fp.call("_storeDirectGUIEdit",e,t._preGUI,p),s){a.set(n);var x=ya.nestedProperty(t,r.id+".camera");x.set(n)}if(f){l.set(i);var g=ya.nestedProperty(t,r.id+".aspectratio");g.set(i),r.glplot.redraw()}}return c};$n.updateFx=function(e,r){var t=this,n=t.camera;if(n)if(e==="orbit")n.mode="orbit",n.keyBindingMode="rotate";else if(e==="turntable"){n.up=[0,0,1],n.mode="turntable",n.keyBindingMode="rotate";var a=t.graphDiv,o=a._fullLayout,i=t.fullSceneLayout.camera,l=i.up.x,u=i.up.y,s=i.up.z;if(s/Math.sqrt(l*l+u*u+s*s)<.999){var f=t.id+".camera.up",c={x:0,y:0,z:1},p={};p[f]=c;var x=a.layout;fp.call("_storeDirectGUIEdit",x,o._preGUI,p),i.up=c,ya.nestedProperty(x,f).set(c)}}else n.keyBindingMode=e;t.fullSceneLayout.hovermode=r};function uye(e,r,t){for(var n=0,a=t-1;n0)for(var l=255/i,u=0;u<3;++u)e[o+u]=Math.min(l*e[o+u],255)}}$n.toImage=function(e){var r=this;e||(e="png"),r.staticMode&&r.container.appendChild(vv),r.glplot.redraw();var t=r.glplot.gl,n=t.drawingBufferWidth,a=t.drawingBufferHeight;t.bindFramebuffer(t.FRAMEBUFFER,null);var o=new Uint8Array(n*a*4);t.readPixels(0,0,n,a,t.RGBA,t.UNSIGNED_BYTE,o),uye(o,n,a),fye(o,n,a);var i=document.createElement("canvas");i.width=n,i.height=a;var l=i.getContext("2d",{willReadFrequently:!0}),u=l.createImageData(n,a);u.data.set(o),l.putImageData(u,0,0);var s;switch(e){case"jpeg":s=i.toDataURL("image/jpeg");break;case"webp":s=i.toDataURL("image/webp");break;default:s=i.toDataURL("image/png")}return r.staticMode&&r.container.removeChild(vv),s};$n.setConvert=function(){for(var e=this,r=0;r<3;r++){var t=e.fullSceneLayout[hv[r]];cp.setConvert(t,e.fullLayout),t.setScale=ya.noop}};$n.make4thDimension=function(){var e=this,r=e.graphDiv,t=r._fullLayout;e._mockAxis={type:"linear",showexponent:"all",exponentformat:"B"},cp.setConvert(e._mockAxis,t)};XO.exports=YO});var JO=_e((d8e,ZO)=>{"use strict";ZO.exports={scene:{valType:"subplotid",dflt:"scene",editType:"calc+clearAxisTypes"}}});var b4=_e((p8e,$O)=>{"use strict";var cye=Wr(),Or=ri(),m4=Ft().extendFlat,vye=ia().overrideAll;$O.exports=vye({visible:Or.visible,showspikes:{valType:"boolean",dflt:!0},spikesides:{valType:"boolean",dflt:!0},spikethickness:{valType:"number",min:0,dflt:2},spikecolor:{valType:"color",dflt:cye.defaultLine},showbackground:{valType:"boolean",dflt:!1},backgroundcolor:{valType:"color",dflt:"rgba(204, 204, 204, 0.5)"},showaxeslabels:{valType:"boolean",dflt:!0},color:Or.color,categoryorder:Or.categoryorder,categoryarray:Or.categoryarray,title:{text:Or.title.text,font:Or.title.font},type:m4({},Or.type,{values:["-","linear","log","date","category"]}),autotypenumbers:Or.autotypenumbers,autorange:Or.autorange,autorangeoptions:{minallowed:Or.autorangeoptions.minallowed,maxallowed:Or.autorangeoptions.maxallowed,clipmin:Or.autorangeoptions.clipmin,clipmax:Or.autorangeoptions.clipmax,include:Or.autorangeoptions.include,editType:"plot"},rangemode:Or.rangemode,minallowed:Or.minallowed,maxallowed:Or.maxallowed,range:m4({},Or.range,{items:[{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}}],anim:!1}),tickmode:Or.minor.tickmode,nticks:Or.nticks,tick0:Or.tick0,dtick:Or.dtick,tickvals:Or.tickvals,ticktext:Or.ticktext,ticks:Or.ticks,mirror:Or.mirror,ticklen:Or.ticklen,tickwidth:Or.tickwidth,tickcolor:Or.tickcolor,showticklabels:Or.showticklabels,labelalias:Or.labelalias,tickfont:Or.tickfont,tickangle:Or.tickangle,tickprefix:Or.tickprefix,showtickprefix:Or.showtickprefix,ticksuffix:Or.ticksuffix,showticksuffix:Or.showticksuffix,showexponent:Or.showexponent,exponentformat:Or.exponentformat,minexponent:Or.minexponent,separatethousands:Or.separatethousands,tickformat:Or.tickformat,tickformatstops:Or.tickformatstops,hoverformat:Or.hoverformat,showline:Or.showline,linecolor:Or.linecolor,linewidth:Or.linewidth,showgrid:Or.showgrid,gridcolor:m4({},Or.gridcolor,{dflt:"rgb(204, 204, 204)"}),gridwidth:Or.gridwidth,zeroline:Or.zeroline,zerolinecolor:Or.zerolinecolor,zerolinewidth:Or.zerolinewidth},"plot","from-root")});var M4=_e((g8e,KO)=>{"use strict";var x4=b4(),hye=Qd().attributes,_4=Ft().extendFlat,dye=rr().counterRegex;function w4(e,r,t){return{x:{valType:"number",dflt:e,editType:"camera"},y:{valType:"number",dflt:r,editType:"camera"},z:{valType:"number",dflt:t,editType:"camera"},editType:"camera"}}KO.exports={_arrayAttrRegexps:[dye("scene",".annotations",!0)],bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"plot"},camera:{up:_4(w4(0,0,1),{}),center:_4(w4(0,0,0),{}),eye:_4(w4(1.25,1.25,1.25),{}),projection:{type:{valType:"enumerated",values:["perspective","orthographic"],dflt:"perspective",editType:"calc"},editType:"calc"},editType:"camera"},domain:hye({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:x4,yaxis:x4,zaxis:x4,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"}});var jO=_e((y8e,QO)=>{"use strict";var pye=rr(),gye=Mt(),yye=Qd().defaults;QO.exports=function(r,t,n,a){var o=a.type,i=a.attributes,l=a.handleDefaults,u=a.partition||"x",s=t._subplots[o],f=s.length,c=f&&s[0].replace(/\d+$/,""),p,x;function g(k,S){return pye.coerce(p,x,i,k,S)}for(var w=0;w{"use strict";var mye=Wr(),eU=rr(),bye=Mt(),xye=b4(),_ye=nx(),wye=wd(),rU=["xaxis","yaxis","zaxis"],Mye=13600/187;tU.exports=function(r,t,n){var a,o;function i(s,f){return eU.coerce(a,o,xye,s,f)}for(var l=0;l{"use strict";var Tye=rr(),Aye=Wr(),kye=Er(),Sye=jO(),Cye=nU(),aU=M4(),Eye=Yf().getSubplotData,iU="gl3d";oU.exports=function(r,t,n){var a=t._basePlotModules.length>1;function o(i){if(!a){var l=Tye.validate(r[i],aU[i]);if(l)return r[i]}}Sye(r,t,n,{type:iU,attributes:aU,handleDefaults:Lye,fullLayout:t,font:t.font,fullData:n,getDfltFromLayout:o,autotypenumbersDflt:t.autotypenumbers,paper_bgcolor:t.paper_bgcolor,calendar:t.calendar})};function Lye(e,r,t,n){for(var a=t("bgcolor"),o=Aye.combine(a,n.paper_bgcolor),i=["up","center","eye"],l=0;l.999)&&(p="turntable")}else p="turntable";t("dragmode",p),t("hovermode",n.getDfltFromLayout("hovermode"))}});var Xl=_e(ma=>{"use strict";var Dye=ia().overrideAll,Rye=ss(),Fye=WO(),Pye=Yf().getSubplotData,Iye=rr(),zye=(xl(),or(bl)),Uu="gl3d",T4="scene";ma.name=Uu;ma.attr=T4;ma.idRoot=T4;ma.idRegex=ma.attrRegex=Iye.counterRegex("scene");ma.attributes=JO();ma.layoutAttributes=M4();ma.baseLayoutAttrOverrides=Dye({hoverlabel:Rye.hoverlabel},"plot","nested");ma.supplyLayoutDefaults=lU();ma.plot=function(r){for(var t=r._fullLayout,n=r._fullData,a=t._subplots[Uu],o=0;o{"use strict";sU.exports={plot:pO(),attributes:g4(),markerSymbols:(op(),or(ip)).default,supplyDefaults:wO(),colorbar:[{container:"marker",min:"cmin",max:"cmax"},{container:"line",min:"cmin",max:"cmax"}],calc:TO(),moduleType:"trace",name:"scatter3d",basePlotModule:Xl(),categories:["gl3d","symbols","showLegend","scatter-like"],meta:{}}});var cU=_e((w8e,fU)=>{"use strict";fU.exports=uU()});var dv=_e((M8e,dU)=>{"use strict";var vU=Wr(),Nye=Si(),A4=No().axisHoverFormat,{hovertemplateAttrs:qye,templatefallbackAttrs:Bye}=Mi(),hU=Vn(),k4=Ft().extendFlat,Oye=ia().overrideAll;function S4(e){return{valType:"boolean",dflt:!1}}function C4(e){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:S4("x"),y:S4("y"),z:S4("z")},color:{valType:"color",dflt:vU.defaultLine},usecolormap:{valType:"boolean",dflt:!1},width:{valType:"number",min:1,max:16,dflt:2},highlight:{valType:"boolean",dflt:!0},highlightcolor:{valType:"color",dflt:vU.defaultLine},highlightwidth:{valType:"number",min:1,max:16,dflt:2}}}var E4=dU.exports=Oye(k4({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:qye(),hovertemplatefallback:Bye(),xhoverformat:A4("x"),yhoverformat:A4("y"),zhoverformat:A4("z"),connectgaps:{valType:"boolean",dflt:!1,editType:"calc"},surfacecolor:{valType:"data_array"}},Nye("",{colorAttr:"z or surfacecolor",showScaleDflt:!0,autoColorDflt:!1,editTypeOverride:"calc"}),{contours:{x:C4("x"),y:C4("y"),z:C4("z")},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,description:"Represents the level that incident rays are reflected in a single direction, causing shine."},roughness:{valType:"number",min:0,max:1,dflt:.5,description:"Alters specular reflection; the rougher the surface, the wider and less contrasty the shine."},fresnel:{valType:"number",min:0,max:5,dflt:.2}},opacity:{valType:"number",min:0,max:1,dflt:1},opacityscale:{valType:"any",editType:"calc"},hoverinfo:k4({},hU.hoverinfo),showlegend:k4({},hU.showlegend,{dflt:!1})}),"calc","nested");E4.x.editType=E4.y.editType=E4.z.editType="calc+clearAxisTypes"});var D4=_e((T8e,yU)=>{"use strict";var Uye=Er(),pU=rr(),Hye=no(),Vye=dv(),L4=.1;function Gye(e,r){for(var t=[],n=32,a=0;a{"use strict";var mU=wl();bU.exports=function(r,t){t.surfacecolor?mU(r,t,{vals:t.surfacecolor,containerStr:"",cLetter:"c"}):mU(r,t,{vals:t.z,containerStr:"",cLetter:"c"})}});var TU=_e((k8e,MU)=>{"use strict";var Wye=rr(),_U=.01,Zye=[[-1,0],[1,0],[0,-1],[0,1]];function Jye(e){return .5-.25*Math.min(1,e*.5)}MU.exports=function(r,t){var n=1,a;for(wU(r,t),a=0;a_U;a++)n=wU(r,t,Jye(n));return n>_U&&Wye.log("interp2d didn't converge quickly",n),r};function wU(e,r,t){var n=0,a,o,i,l,u,s,f,c,p,x,g,w,M;for(l=0;lw&&(n=Math.max(n,Math.abs(e[o][i]-g)/(M-w))))}return n}});var kU=_e((S8e,AU)=>{"use strict";var $ye=rr().maxRowLength;AU.exports=function(r){var t=[],n={},a=[],o=r[0],i=[],l=[0,0,0],u=$ye(r),s,f,c,p,x,g,w,M;for(f=0;f=0;x--)p=a[x],f=p[0],c=p[1],g=((n[[f-1,c]]||l)[2]+(n[[f+1,c]]||l)[2]+(n[[f,c-1]]||l)[2]+(n[[f,c+1]]||l)[2])/20,g&&(w[p]=[f,c,g],a.splice(x,1),M=!0);if(!M)throw"findEmpties iterated with no new neighbors";for(p in w)n[p]=w[p],t.push(w[p])}return t.sort(function(m,k){return k[2]-m[2]})}});var RU=_e((C8e,DU)=>{"use strict";var Kye=Dn().gl_surface3d,Hu=Dn().ndarray,Qye=Dn().ndarray_linear_interpolate.d2,jye=TU(),eme=kU(),pv=rr().isArrayOrTypedArray,rme=Yl().parseColorScale,SU=Zo(),tme=ao().extractOpts;function EU(e,r,t){this.scene=e,this.uid=t,this.surface=r,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 Gi=EU.prototype;Gi.getXat=function(e,r,t,n){var a=pv(this.data.x)?pv(this.data.x[0])?this.data.x[r][e]:this.data.x[e]:e;return t===void 0?a:n.d2l(a,0,t)};Gi.getYat=function(e,r,t,n){var a=pv(this.data.y)?pv(this.data.y[0])?this.data.y[r][e]:this.data.y[r]:r;return t===void 0?a:n.d2l(a,0,t)};Gi.getZat=function(e,r,t,n){var a=this.data.z[r][e];return a===null&&this.data.connectgaps&&this.data._interpolatedZ&&(a=this.data._interpolatedZ[r][e]),t===void 0?a:n.d2l(a,0,t)};Gi.handlePick=function(e){if(e.object===this.surface){var r=(e.data.index[0]-1)/this.dataScaleX-1,t=(e.data.index[1]-1)/this.dataScaleY-1,n=Math.max(Math.min(Math.round(r),this.data.z[0].length-1),0),a=Math.max(Math.min(Math.round(t),this.data._ylength-1),0);e.index=[n,a],e.traceCoordinate=[this.getXat(n,a),this.getYat(n,a),this.getZat(n,a)],e.dataCoordinate=[this.getXat(n,a,this.data.xcalendar,this.scene.fullSceneLayout.xaxis),this.getYat(n,a,this.data.ycalendar,this.scene.fullSceneLayout.yaxis),this.getZat(n,a,this.data.zcalendar,this.scene.fullSceneLayout.zaxis)];for(var o=0;o<3;o++){var i=e.dataCoordinate[o];i!=null&&(e.dataCoordinate[o]*=this.scene.dataScale[o])}var l=this.data.hovertext||this.data.text;return pv(l)&&l[a]&&l[a][n]!==void 0?e.textLabel=l[a][n]:l?e.textLabel=l:e.textLabel="",e.data.dataCoordinate=e.dataCoordinate.slice(),this.surface.highlight(e.data),this.scene.glplot.spikes.position=e.dataCoordinate,!0}};function nme(e){var r=e[0].rgb,t=e[e.length-1].rgb;return r[0]===t[0]&&r[1]===t[1]&&r[2]===t[2]&&r[3]===t[3]}var Vu=[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 ame(e,r){if(e0){t=Vu[n];break}return t}function ome(e,r){if(!(e<1||r<1)){for(var t=R4(e),n=R4(r),a=1,o=0;ovp;)n--,n/=ime(n),n++,n1?a:1};function sme(e,r,t){var n=t[8]+t[2]*r[0]+t[5]*r[1];return e[0]=(t[6]+t[0]*r[0]+t[3]*r[1])/n,e[1]=(t[7]+t[1]*r[0]+t[4]*r[1])/n,e}function ume(e,r,t){return fme(e,r,sme,t),e}function fme(e,r,t,n){for(var a=[0,0],o=e.shape[0],i=e.shape[1],l=0;l0&&this.contourStart[n]!==null&&this.contourEnd[n]!==null&&this.contourEnd[n]>this.contourStart[n]))for(r[n]=!0,a=this.contourStart[n];ap&&(this.minValues[s]=p),this.maxValues[s]{"use strict";FU.exports={attributes:dv(),supplyDefaults:D4().supplyDefaults,colorbar:{min:"cmin",max:"cmax"},calc:xU(),plot:RU(),moduleType:"trace",name:"surface",basePlotModule:Xl(),categories:["gl3d","2dMap","showLegend"],meta:{}}});var zU=_e((L8e,IU)=>{"use strict";IU.exports=PU()});var Gu=_e((D8e,qU)=>{"use strict";var hme=Si(),F4=No().axisHoverFormat,{hovertemplateAttrs:dme,templatefallbackAttrs:pme}=Mi(),Wl=dv(),NU=Vn(),Zl=Ft().extendFlat;qU.exports=Zl({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:dme({editType:"calc"}),hovertemplatefallback:pme({editType:"calc"}),xhoverformat:F4("x"),yhoverformat:F4("y"),zhoverformat:F4("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"}},hme("",{colorAttr:"`intensity`",showScaleDflt:!0,editTypeOverride:"calc"}),{opacity:Wl.opacity,flatshading:{valType:"boolean",dflt:!1,editType:"calc"},contour:{show:Zl({},Wl.contours.x.show,{}),color:Wl.contours.x.color,width:Wl.contours.x.width,editType:"calc"},lightposition:{x:Zl({},Wl.lightposition.x,{dflt:1e5}),y:Zl({},Wl.lightposition.y,{dflt:1e5}),z:Zl({},Wl.lightposition.z,{dflt:0}),editType:"calc"},lighting:Zl({vertexnormalsepsilon:{valType:"number",min:0,max:1,dflt:1e-12,editType:"calc",description:"Epsilon for vertex normals calculation avoids math issues arising from degenerate geometry."},facenormalsepsilon:{valType:"number",min:0,max:1,dflt:1e-6,editType:"calc",description:"Epsilon for face normals calculation avoids math issues arising from degenerate geometry."},editType:"calc"},Wl.lighting),hoverinfo:Zl({},NU.hoverinfo,{editType:"calc"}),showlegend:Zl({},NU.showlegend,{dflt:!1})})});var dp=_e((R8e,OU)=>{"use strict";var gme=Si(),hp=No().axisHoverFormat,{hovertemplateAttrs:yme,templatefallbackAttrs:mme}=Mi(),gv=Gu(),BU=Vn(),P4=Ft().extendFlat,bme=ia().overrideAll;function I4(e){return{show:{valType:"boolean",dflt:!1},locations:{valType:"data_array",dflt:[]},fill:{valType:"number",min:0,max:1,dflt:1}}}function z4(e){return{show:{valType:"boolean",dflt:!0},fill:{valType:"number",min:0,max:1,dflt:1}}}var Yu=OU.exports=bme(P4({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:I4("x"),y:I4("y"),z:I4("z")},caps:{x:z4("x"),y:z4("y"),z:z4("z")},text:{valType:"string",dflt:"",arrayOk:!0},hovertext:{valType:"string",dflt:"",arrayOk:!0},hovertemplate:yme(),hovertemplatefallback:mme(),xhoverformat:hp("x"),yhoverformat:hp("y"),zhoverformat:hp("z"),valuehoverformat:hp("value",1),showlegend:P4({},BU.showlegend,{dflt:!1})},gme("",{colorAttr:"`value`",showScaleDflt:!0,editTypeOverride:"calc"}),{opacity:gv.opacity,lightposition:gv.lightposition,lighting:gv.lighting,flatshading:gv.flatshading,contour:gv.contour,hoverinfo:P4({},BU.hoverinfo)}),"calc","nested");Yu.flatshading.dflt=!0;Yu.lighting.facenormalsepsilon.dflt=0;Yu.x.editType=Yu.y.editType=Yu.z.editType=Yu.value.editType="calc+clearAxisTypes"});var N4=_e((F8e,HU)=>{"use strict";var xme=rr(),_me=Er(),wme=dp(),Mme=no();function Tme(e,r,t,n){function a(o,i){return xme.coerce(e,r,wme,o,i)}UU(e,r,t,n,a)}function UU(e,r,t,n,a){var o=a("isomin"),i=a("isomax");i!=null&&o!==void 0&&o!==null&&o>i&&(r.isomin=null,r.isomax=null);var l=a("x"),u=a("y"),s=a("z"),f=a("value");if(!l||!l.length||!u||!u.length||!s||!s.length||!f||!f.length){r.visible=!1;return}var c=_me.getComponentMethod("calendars","handleTraceDefaults");c(e,r,["x","y","z"],n),a("valuehoverformat"),["x","y","z"].forEach(function(w){a(w+"hoverformat");var M="caps."+w,m=a(M+".show");m&&a(M+".fill");var k="slices."+w,S=a(k+".show");S&&(a(k+".fill"),a(k+".locations"))});var p=a("spaceframe.show");p&&a("spaceframe.fill");var x=a("surface.show");x&&(a("surface.count"),a("surface.fill"),a("surface.pattern"));var g=a("contour.show");g&&(a("contour.color"),a("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(w){a(w)}),Mme(e,r,n,a,{prefix:"",cLetter:"c"}),r._length=null}HU.exports={supplyDefaults:Tme,supplyIsoDefaults:UU}});var pp=_e((P8e,GU)=>{"use strict";var B4=rr(),Ame=wl();function kme(e,r){r._len=Math.min(r.u.length,r.v.length,r.w.length,r.x.length,r.y.length,r.z.length),r._u=Mo(r.u,r._len),r._v=Mo(r.v,r._len),r._w=Mo(r.w,r._len),r._x=Mo(r.x,r._len),r._y=Mo(r.y,r._len),r._z=Mo(r.z,r._len);var t=VU(r);r._gridFill=t.fill,r._Xs=t.Xs,r._Ys=t.Ys,r._Zs=t.Zs,r._len=t.len;var n=0,a,o,i;r.starts&&(a=Mo(r.starts.x||[]),o=Mo(r.starts.y||[]),i=Mo(r.starts.z||[]),n=Math.min(a.length,o.length,i.length)),r._startsX=a||[],r._startsY=o||[],r._startsZ=i||[];var l=0,u=1/0,s;for(s=0;s1&&(S=r[a-1],T=t[a-1],_=n[a-1]),o=0;oS?"-":"+")+"x"),g=g.replace("y",(b>T?"-":"+")+"y"),g=g.replace("z",(h>_?"-":"+")+"z");var d=function(){a=0,y=[],v=[],A=[]};(!a||a{"use strict";var Sme=wl(),Cme=pp().processGrid,gp=pp().filter;YU.exports=function(r,t){t._len=Math.min(t.x.length,t.y.length,t.z.length,t.value.length),t._x=gp(t.x,t._len),t._y=gp(t.y,t._len),t._z=gp(t.z,t._len),t._value=gp(t.value,t._len);var n=Cme(t);t._gridFill=n.fill,t._Xs=n.Xs,t._Ys=n.Ys,t._Zs=n.Zs,t._len=n.len;for(var a=1/0,o=-1/0,i=0;i{"use strict";XU.exports=function(r,t,n,a){a=a||r.length;for(var o=new Array(a),i=0;i{"use strict";var Eme=Dn().gl_mesh3d,Lme=Yl().parseColorScale,Dme=rr().isArrayOrTypedArray,Rme=Zo(),Fme=ao().extractOpts,WU=Xu(),yv=function(e,r){for(var t=r.length-1;t>0;t--){var n=Math.min(r[t],r[t-1]),a=Math.max(r[t],r[t-1]);if(a>n&&n-1}function O(he,me){return he===null?me:he}function V(he,me,be){d();var ye=[me],de=[be];if(P>=1)ye=[me],de=[be];else if(P>0){var xe=F(me,be);ye=xe.xyzv,de=xe.abc}for(var Ae=0;Ae-1?be[Fe]:A(Ye,qe,Be);We>-1?Pe[Fe]=We:Pe[Fe]=E(Ye,qe,Be,O(he,Oe))}R(Pe[0],Pe[1],Pe[2])}}function K(he,me,be){var ye=function(de,xe,Ae){V(he,[me[de],me[xe],me[Ae]],[be[de],be[xe],be[Ae]])};ye(0,1,2),ye(2,3,0)}function j(he,me,be){var ye=function(de,xe,Ae){V(he,[me[de],me[xe],me[Ae]],[be[de],be[xe],be[Ae]])};ye(0,1,2),ye(3,0,1),ye(2,3,0),ye(1,2,3)}function G(he,me,be,ye){var de=he[3];deye&&(de=ye);for(var xe=(he[3]-de)/(he[3]-me[3]+1e-9),Ae=[],Pe=0;Pe<4;Pe++)Ae[Pe]=(1-xe)*he[Pe]+xe*me[Pe];return Ae}function q(he,me,be){return he>=me&&he<=be}function J(he){var me=.001*(T-b);return he>=b-me&&he<=T+me}function te(he){for(var me=[],be=0;be<4;be++){var ye=he[be];me.push([e._x[ye],e._y[ye],e._z[ye],e._value[ye]])}return me}var Z=3;function ie(he,me,be,ye,de,xe){xe||(xe=1),be=[-1,-1,-1];var Ae=!1,Pe=[q(me[0][3],ye,de),q(me[1][3],ye,de),q(me[2][3],ye,de)];if(!Pe[0]&&!Pe[1]&&!Pe[2])return!1;var Fe=function(qe,Be,Oe){return J(Be[0][3])&&J(Be[1][3])&&J(Be[2][3])?(V(qe,Be,Oe),!0):xePe?[k,xe]:[xe,S];Ce(me,Fe[0],Fe[1])}}var Ye=[[Math.min(b,S),Math.max(b,S)],[Math.min(k,T),Math.max(k,T)]];["x","y","z"].forEach(function(qe){for(var Be=[],Oe=0;Oe0&&(Ke.push(Qe.id),qe==="x"?Ee.push([Qe.distRatio,0,0]):qe==="y"?Ee.push([0,Qe.distRatio,0]):Ee.push([0,0,Qe.distRatio]))}else qe==="x"?je=pe(1,x-1):qe==="y"?je=pe(1,g-1):je=pe(1,w-1);Ke.length>0&&(qe==="x"?Be[We]=le(he,Ke,Xe,tr,Ee,Be[We]):qe==="y"?Be[We]=Y(he,Ke,Xe,tr,Ee,Be[We]):Be[We]=$(he,Ke,Xe,tr,Ee,Be[We]),We++),je.length>0&&(qe==="x"?Be[We]=Te(he,je,Xe,tr,Be[We]):qe==="y"?Be[We]=ke(he,je,Xe,tr,Be[We]):Be[We]=Se(he,je,Xe,tr,Be[We]),We++)}var er=e.caps[qe];er.show&&er.fill&&(L(er.fill),qe==="x"?Be[We]=Te(he,[0,x-1],Xe,tr,Be[We]):qe==="y"?Be[We]=ke(he,[0,g-1],Xe,tr,Be[We]):Be[We]=Se(he,[0,w-1],Xe,tr,Be[We]),We++)}}),l===0&&D(),e._meshX=h,e._meshY=_,e._meshZ=y,e._meshIntensity=v,e._Xs=f,e._Ys=c,e._Zs=p}return ve(),e}function Ime(e,r){var t=e.glplot.gl,n=Eme({gl:t}),a=new ZU(e,n,r.uid);return n._trace=a,a.update(r),e.glplot.add(n),a}$U.exports={findNearestOnAxis:yv,generateIsoMeshes:JU,createIsosurfaceTrace:Ime}});var QU=_e((q8e,KU)=>{"use strict";KU.exports={attributes:dp(),supplyDefaults:N4().supplyDefaults,calc:O4(),colorbar:{min:"cmin",max:"cmax"},plot:yp().createIsosurfaceTrace,moduleType:"trace",name:"isosurface",basePlotModule:Xl(),categories:["gl3d","showLegend"],meta:{}}});var eH=_e((B8e,jU)=>{"use strict";jU.exports=QU()});var V4=_e((O8e,tH)=>{"use strict";var zme=Si(),ln=dp(),Nme=dv(),rH=Vn(),H4=Ft().extendFlat,qme=ia().overrideAll,mp=tH.exports=qme(H4({x:ln.x,y:ln.y,z:ln.z,value:ln.value,isomin:ln.isomin,isomax:ln.isomax,surface:ln.surface,spaceframe:{show:{valType:"boolean",dflt:!1},fill:{valType:"number",min:0,max:1,dflt:1}},slices:ln.slices,caps:ln.caps,text:ln.text,hovertext:ln.hovertext,xhoverformat:ln.xhoverformat,yhoverformat:ln.yhoverformat,zhoverformat:ln.zhoverformat,valuehoverformat:ln.valuehoverformat,hovertemplate:ln.hovertemplate,hovertemplatefallback:ln.hovertemplatefallback},zme("",{colorAttr:"`value`",showScaleDflt:!0,editTypeOverride:"calc"}),{colorbar:ln.colorbar,opacity:ln.opacity,opacityscale:Nme.opacityscale,lightposition:ln.lightposition,lighting:ln.lighting,flatshading:ln.flatshading,contour:ln.contour,hoverinfo:H4({},rH.hoverinfo),showlegend:H4({},rH.showlegend,{dflt:!1})}),"calc","nested");mp.x.editType=mp.y.editType=mp.z.editType=mp.value.editType="calc+clearAxisTypes"});var aH=_e((U8e,nH)=>{"use strict";var Bme=rr(),Ome=V4(),Ume=N4().supplyIsoDefaults,Hme=D4().opacityscaleDefaults;nH.exports=function(r,t,n,a){function o(i,l){return Bme.coerce(r,t,Ome,i,l)}Ume(r,t,n,a,o),Hme(r,t,a,o)}});var sH=_e((H8e,lH)=>{"use strict";var Vme=Dn().gl_mesh3d,Gme=Yl().parseColorScale,Yme=rr().isArrayOrTypedArray,Xme=Zo(),Wme=ao().extractOpts,iH=Xu(),G4=yp().findNearestOnAxis,Zme=yp().generateIsoMeshes;function oH(e,r,t){this.scene=e,this.uid=t,this.mesh=r,this.name="",this.data=null,this.showContour=!1}var Y4=oH.prototype;Y4.handlePick=function(e){if(e.object===this.mesh){var r=e.data.index,t=this.data._meshX[r],n=this.data._meshY[r],a=this.data._meshZ[r],o=this.data._Ys.length,i=this.data._Zs.length,l=G4(t,this.data._Xs).id,u=G4(n,this.data._Ys).id,s=G4(a,this.data._Zs).id,f=e.index=s+i*u+i*o*l;e.traceCoordinate=[this.data._meshX[f],this.data._meshY[f],this.data._meshZ[f],this.data._value[f]];var c=this.data.hovertext||this.data.text;return Yme(c)&&c[f]!==void 0?e.textLabel=c[f]:c&&(e.textLabel=c),!0}};Y4.update=function(e){var r=this.scene,t=r.fullSceneLayout;this.data=Zme(e);function n(u,s,f,c){return s.map(function(p){return u.d2l(p,0,c)*f})}var a=iH(n(t.xaxis,e._meshX,r.dataScale[0],e.xcalendar),n(t.yaxis,e._meshY,r.dataScale[1],e.ycalendar),n(t.zaxis,e._meshZ,r.dataScale[2],e.zcalendar)),o=iH(e._meshI,e._meshJ,e._meshK),i={positions:a,cells:o,lightPosition:[e.lightposition.x,e.lightposition.y,e.lightposition.z],ambient:e.lighting.ambient,diffuse:e.lighting.diffuse,specular:e.lighting.specular,roughness:e.lighting.roughness,fresnel:e.lighting.fresnel,vertexNormalsEpsilon:e.lighting.vertexnormalsepsilon,faceNormalsEpsilon:e.lighting.facenormalsepsilon,opacity:e.opacity,opacityscale:e.opacityscale,contourEnable:e.contour.show,contourColor:Xme(e.contour.color).slice(0,3),contourWidth:e.contour.width,useFacetNormals:e.flatshading},l=Wme(e);i.vertexIntensity=e._meshIntensity,i.vertexIntensityBounds=[l.min,l.max],i.colormap=Gme(e),this.mesh.update(i)};Y4.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()};function Jme(e,r){var t=e.glplot.gl,n=Vme({gl:t}),a=new oH(e,n,r.uid);return n._trace=a,a.update(r),e.glplot.add(n),a}lH.exports=Jme});var fH=_e((V8e,uH)=>{"use strict";uH.exports={attributes:V4(),supplyDefaults:aH(),calc:O4(),colorbar:{min:"cmin",max:"cmax"},plot:sH(),moduleType:"trace",name:"volume",basePlotModule:Xl(),categories:["gl3d","showLegend"],meta:{}}});var vH=_e((G8e,cH)=>{"use strict";cH.exports=fH()});var pH=_e((Y8e,dH)=>{"use strict";var $me=Er(),hH=rr(),Kme=no(),Qme=Gu();dH.exports=function(r,t,n,a){function o(f,c){return hH.coerce(r,t,Qme,f,c)}function i(f){var c=f.map(function(p){var x=o(p);return x&&hH.isArrayOrTypedArray(x)?x:null});return c.every(function(p){return p&&p.length===c[0].length})&&c}var l=i(["x","y","z"]);if(!l){t.visible=!1;return}if(i(["i","j","k"]),t.i&&(!t.j||!t.k)||t.j&&(!t.k||!t.i)||t.k&&(!t.i||!t.j)){t.visible=!1;return}var u=$me.getComponentMethod("calendars","handleTraceDefaults");u(r,t,["x","y","z"],a),["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(f){o(f)});var s=o("contour.show");s&&(o("contour.color"),o("contour.width")),"intensity"in r?(o("intensity"),o("intensitymode"),Kme(r,t,a,o,{prefix:"",cLetter:"c"})):(t.showscale=!1,"facecolor"in r?o("facecolor"):"vertexcolor"in r?o("vertexcolor"):o("color",n)),o("text"),o("hovertext"),o("hovertemplate"),o("hovertemplatefallback"),o("xhoverformat"),o("yhoverformat"),o("zhoverformat"),t._length=null}});var yH=_e((X8e,gH)=>{"use strict";var jme=wl();gH.exports=function(r,t){t.intensity&&jme(r,t,{vals:t.intensity,containerStr:"",cLetter:"c"})}});var wH=_e((W8e,_H)=>{"use strict";var e5e=Dn().gl_mesh3d,r5e=Dn().delaunay_triangulate,t5e=Dn().alpha_shape,n5e=Dn().convex_hull,a5e=Yl().parseColorScale,i5e=rr().isArrayOrTypedArray,J4=Zo(),o5e=ao().extractOpts,mH=Xu();function xH(e,r,t){this.scene=e,this.uid=t,this.mesh=r,this.name="",this.color="#fff",this.data=null,this.showContour=!1}var $4=xH.prototype;$4.handlePick=function(e){if(e.object===this.mesh){var r=e.index=e.data.index;e.data._cellCenter?e.traceCoordinate=e.data.dataCoordinate:e.traceCoordinate=[this.data.x[r],this.data.y[r],this.data.z[r]];var t=this.data.hovertext||this.data.text;return i5e(t)&&t[r]!==void 0?e.textLabel=t[r]:t&&(e.textLabel=t),!0}};function bH(e){for(var r=[],t=e.length,n=0;n=r-.5)return!1;return!0}$4.update=function(e){var r=this.scene,t=r.fullSceneLayout;this.data=e;var n=e.x.length,a=mH(X4(t.xaxis,e.x,r.dataScale[0],e.xcalendar),X4(t.yaxis,e.y,r.dataScale[1],e.ycalendar),X4(t.zaxis,e.z,r.dataScale[2],e.zcalendar)),o;if(e.i&&e.j&&e.k){if(e.i.length!==e.j.length||e.j.length!==e.k.length||!Z4(e.i,n)||!Z4(e.j,n)||!Z4(e.k,n))return;o=mH(W4(e.i),W4(e.j),W4(e.k))}else e.alphahull===0?o=n5e(a):e.alphahull>0?o=t5e(e.alphahull,a):o=l5e(e.delaunayaxis,a);var i={positions:a,cells:o,lightPosition:[e.lightposition.x,e.lightposition.y,e.lightposition.z],ambient:e.lighting.ambient,diffuse:e.lighting.diffuse,specular:e.lighting.specular,roughness:e.lighting.roughness,fresnel:e.lighting.fresnel,vertexNormalsEpsilon:e.lighting.vertexnormalsepsilon,faceNormalsEpsilon:e.lighting.facenormalsepsilon,opacity:e.opacity,contourEnable:e.contour.show,contourColor:J4(e.contour.color).slice(0,3),contourWidth:e.contour.width,useFacetNormals:e.flatshading};if(e.intensity){var l=o5e(e);this.color="#fff";var u=e.intensitymode;i[u+"Intensity"]=e.intensity,i[u+"IntensityBounds"]=[l.min,l.max],i.colormap=a5e(e)}else e.vertexcolor?(this.color=e.vertexcolor[0],i.vertexColors=bH(e.vertexcolor)):e.facecolor?(this.color=e.facecolor[0],i.cellColors=bH(e.facecolor)):(this.color=e.color,i.meshColor=J4(e.color));this.mesh.update(i)};$4.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()};function s5e(e,r){var t=e.glplot.gl,n=e5e({gl:t}),a=new xH(e,n,r.uid);return n._trace=a,a.update(r),e.glplot.add(n),a}_H.exports=s5e});var TH=_e((Z8e,MH)=>{"use strict";MH.exports={attributes:Gu(),supplyDefaults:pH(),calc:yH(),colorbar:{min:"cmin",max:"cmax"},plot:wH(),moduleType:"trace",name:"mesh3d",basePlotModule:Xl(),categories:["gl3d","showLegend"],meta:{}}});var kH=_e((J8e,AH)=>{"use strict";AH.exports=TH()});var Q4=_e(($8e,CH)=>{"use strict";var u5e=Si(),Wu=No().axisHoverFormat,{hovertemplateAttrs:f5e,templatefallbackAttrs:c5e}=Mi(),v5e=Gu(),SH=Vn(),K4=Ft().extendFlat,bp={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","raw"],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:f5e({editType:"calc"},{keys:["norm"]}),hovertemplatefallback:c5e({editType:"calc"}),uhoverformat:Wu("u",1),vhoverformat:Wu("v",1),whoverformat:Wu("w",1),xhoverformat:Wu("x"),yhoverformat:Wu("y"),zhoverformat:Wu("z"),showlegend:K4({},SH.showlegend,{dflt:!1})};K4(bp,u5e("",{colorAttr:"u/v/w norm",showScaleDflt:!0,editTypeOverride:"calc"}));var h5e=["opacity","lightposition","lighting"];h5e.forEach(function(e){bp[e]=v5e[e]});bp.hoverinfo=K4({},SH.hoverinfo,{editType:"calc",flags:["x","y","z","u","v","w","norm","text","name"],dflt:"x+y+z+norm+text+name"});CH.exports=bp});var LH=_e((K8e,EH)=>{"use strict";var d5e=rr(),p5e=no(),g5e=Q4();EH.exports=function(r,t,n,a){function o(x,g){return d5e.coerce(r,t,g5e,x,g)}var i=o("u"),l=o("v"),u=o("w"),s=o("x"),f=o("y"),c=o("z");if(!i||!i.length||!l||!l.length||!u||!u.length||!s||!s.length||!f||!f.length||!c||!c.length){t.visible=!1;return}var p=o("sizemode");o("sizeref",p==="raw"?1:.5),o("anchor"),o("lighting.ambient"),o("lighting.diffuse"),o("lighting.specular"),o("lighting.roughness"),o("lighting.fresnel"),o("lightposition.x"),o("lightposition.y"),o("lightposition.z"),p5e(r,t,a,o,{prefix:"",cLetter:"c"}),o("text"),o("hovertext"),o("hovertemplate"),o("hovertemplatefallback"),o("uhoverformat"),o("vhoverformat"),o("whoverformat"),o("xhoverformat"),o("yhoverformat"),o("zhoverformat"),t._length=null}});var RH=_e((Q8e,DH)=>{"use strict";var y5e=wl();DH.exports=function(r,t){for(var n=t.u,a=t.v,o=t.w,i=Math.min(t.x.length,t.y.length,t.z.length,n.length,a.length,o.length),l=-1/0,u=1/0,s=0;s{"use strict";var m5e=Dn().gl_cone3d,b5e=Dn().gl_cone3d.createConeMesh,x5e=rr().simpleMap,_5e=Yl().parseColorScale,w5e=ao().extractOpts,M5e=rr().isArrayOrTypedArray,FH=Xu();function PH(e,r){this.scene=e,this.uid=r,this.mesh=null,this.data=null}var j4=PH.prototype;j4.handlePick=function(e){if(e.object===this.mesh){var r=e.index=e.data.index,t=this.data.x[r],n=this.data.y[r],a=this.data.z[r],o=this.data.u[r],i=this.data.v[r],l=this.data.w[r];e.traceCoordinate=[t,n,a,o,i,l,Math.sqrt(o*o+i*i+l*l)];var u=this.data.hovertext||this.data.text;return M5e(u)&&u[r]!==void 0?e.textLabel=u[r]:u&&(e.textLabel=u),!0}};var T5e={xaxis:0,yaxis:1,zaxis:2},A5e={tip:1,tail:0,cm:.25,center:.5},k5e={tip:1,tail:1,cm:.75,center:.5};function IH(e,r){var t=e.fullSceneLayout,n=e.dataScale,a={};function o(f,c){var p=t[c],x=n[T5e[c]];return x5e(f,function(g){return p.d2l(g)*x})}a.vectors=FH(o(r.u,"xaxis"),o(r.v,"yaxis"),o(r.w,"zaxis"),r._len),a.positions=FH(o(r.x,"xaxis"),o(r.y,"yaxis"),o(r.z,"zaxis"),r._len);var i=w5e(r);a.colormap=_5e(r),a.vertexIntensityBounds=[i.min/r._normMax,i.max/r._normMax],a.coneOffset=A5e[r.anchor];var l=r.sizemode;l==="scaled"?a.coneSize=r.sizeref||.5:l==="absolute"?a.coneSize=r.sizeref&&r._normMax?r.sizeref/r._normMax:.5:l==="raw"&&(a.coneSize=r.sizeref),a.coneSizemode=l;var u=m5e(a),s=r.lightposition;return u.lightPosition=[s.x,s.y,s.z],u.ambient=r.lighting.ambient,u.diffuse=r.lighting.diffuse,u.specular=r.lighting.specular,u.roughness=r.lighting.roughness,u.fresnel=r.lighting.fresnel,u.opacity=r.opacity,r._pad=k5e[r.anchor]*u.vectorScale*u.coneScale*r._normMax,u}j4.update=function(e){this.data=e;var r=IH(this.scene,e);this.mesh.update(r)};j4.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()};function S5e(e,r){var t=e.glplot.gl,n=IH(e,r),a=b5e(t,n),o=new PH(e,r.uid);return o.mesh=a,o.data=r,a._trace=o,e.glplot.add(a),o}zH.exports=S5e});var BH=_e((e9e,qH)=>{"use strict";qH.exports={moduleType:"trace",name:"cone",basePlotModule:Xl(),categories:["gl3d","showLegend"],attributes:Q4(),supplyDefaults:LH(),colorbar:{min:"cmin",max:"cmax"},calc:RH(),plot:NH(),eventData:function(e,r){return e.norm=r.traceCoordinate[6],e},meta:{}}});var UH=_e((r9e,OH)=>{"use strict";OH.exports=BH()});var r6=_e((t9e,VH)=>{"use strict";var C5e=Si(),Zu=No().axisHoverFormat,{hovertemplateAttrs:E5e,templatefallbackAttrs:L5e}=Mi(),D5e=Gu(),HH=Vn(),e6=Ft().extendFlat,xp={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"},starts:{x:{valType:"data_array",editType:"calc"},y:{valType:"data_array",editType:"calc"},z:{valType:"data_array",editType:"calc"},editType:"calc"},maxdisplayed:{valType:"integer",min:0,dflt:1e3,editType:"calc"},sizeref:{valType:"number",editType:"calc",min:0,dflt:1},text:{valType:"string",dflt:"",editType:"calc"},hovertext:{valType:"string",dflt:"",editType:"calc"},hovertemplate:E5e({editType:"calc"},{keys:["tubex","tubey","tubez","tubeu","tubev","tubew","norm","divergence"]}),hovertemplatefallback:L5e({editType:"calc"}),uhoverformat:Zu("u",1),vhoverformat:Zu("v",1),whoverformat:Zu("w",1),xhoverformat:Zu("x"),yhoverformat:Zu("y"),zhoverformat:Zu("z"),showlegend:e6({},HH.showlegend,{dflt:!1})};e6(xp,C5e("",{colorAttr:"u/v/w norm",showScaleDflt:!0,editTypeOverride:"calc"}));var R5e=["opacity","lightposition","lighting"];R5e.forEach(function(e){xp[e]=D5e[e]});xp.hoverinfo=e6({},HH.hoverinfo,{editType:"calc",flags:["x","y","z","u","v","w","norm","divergence","text","name"],dflt:"x+y+z+norm+text+name"});VH.exports=xp});var YH=_e((n9e,GH)=>{"use strict";var F5e=rr(),P5e=no(),I5e=r6();GH.exports=function(r,t,n,a){function o(p,x){return F5e.coerce(r,t,I5e,p,x)}var i=o("u"),l=o("v"),u=o("w"),s=o("x"),f=o("y"),c=o("z");if(!i||!i.length||!l||!l.length||!u||!u.length||!s||!s.length||!f||!f.length||!c||!c.length){t.visible=!1;return}o("starts.x"),o("starts.y"),o("starts.z"),o("maxdisplayed"),o("sizeref"),o("lighting.ambient"),o("lighting.diffuse"),o("lighting.specular"),o("lighting.roughness"),o("lighting.fresnel"),o("lightposition.x"),o("lightposition.y"),o("lightposition.z"),P5e(r,t,a,o,{prefix:"",cLetter:"c"}),o("text"),o("hovertext"),o("hovertemplate"),o("hovertemplatefallback"),o("uhoverformat"),o("vhoverformat"),o("whoverformat"),o("xhoverformat"),o("yhoverformat"),o("zhoverformat"),t._length=null}});var jH=_e((a9e,QH)=>{"use strict";var ZH=Dn().gl_streamtube3d,z5e=ZH.createTubeMesh,N5e=rr(),q5e=Yl().parseColorScale,B5e=ao().extractOpts,XH=Xu(),JH={xaxis:0,yaxis:1,zaxis:2};function $H(e,r){this.scene=e,this.uid=r,this.mesh=null,this.data=null}var n6=$H.prototype;n6.handlePick=function(e){var r=this.scene.fullSceneLayout,t=this.scene.dataScale;function n(i,l){var u=r[l],s=t[JH[l]];return u.l2c(i)/s}if(e.object===this.mesh){var a=e.data.position,o=e.data.velocity;return e.traceCoordinate=[n(a[0],"xaxis"),n(a[1],"yaxis"),n(a[2],"zaxis"),n(o[0],"xaxis"),n(o[1],"yaxis"),n(o[2],"zaxis"),e.data.intensity*this.data._normMax,e.data.divergence],e.textLabel=this.data.hovertext||this.data.text,!0}};function WH(e){var r=e.length,t;return r>2?t=e.slice(1,r-1):r===2?t=[(e[0]+e[1])/2]:t=e,t}function t6(e){var r=e.length;return r===1?[.5,.5]:[e[1]-e[0],e[r-1]-e[r-2]]}function KH(e,r){var t=e.fullSceneLayout,n=e.dataScale,a=r._len,o={};function i(D,E){var R=t[E],z=n[JH[E]];return N5e.simpleMap(D,function(I){return R.d2l(I)*z})}if(o.vectors=XH(i(r._u,"xaxis"),i(r._v,"yaxis"),i(r._w,"zaxis"),a),!a)return{positions:[],cells:[]};var l=i(r._Xs,"xaxis"),u=i(r._Ys,"yaxis"),s=i(r._Zs,"zaxis");o.meshgrid=[l,u,s],o.gridFill=r._gridFill;var f=r._slen;if(f)o.startingPositions=XH(i(r._startsX,"xaxis"),i(r._startsY,"yaxis"),i(r._startsZ,"zaxis"));else{for(var c=u[0],p=WH(l),x=WH(s),g=new Array(p.length*x.length),w=0,M=0;M{"use strict";eV.exports={moduleType:"trace",name:"streamtube",basePlotModule:Xl(),categories:["gl3d","showLegend"],attributes:r6(),supplyDefaults:YH(),colorbar:{min:"cmin",max:"cmax"},calc:pp().calc,plot:jH(),eventData:function(e,r){return e.tubex=e.x,e.tubey=e.y,e.tubez=e.z,e.tubeu=r.traceCoordinate[3],e.tubev=r.traceCoordinate[4],e.tubew=r.traceCoordinate[5],e.norm=r.traceCoordinate[6],e.divergence=r.traceCoordinate[7],delete e.x,delete e.y,delete e.z,e},meta:{}}});var nV=_e((o9e,tV)=>{"use strict";tV.exports=rV()});var Kn=_e((l9e,iV)=>{"use strict";var aV=Object.getOwnPropertySymbols,U5e=Object.prototype.hasOwnProperty,H5e=Object.prototype.propertyIsEnumerable;function V5e(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function G5e(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var r={},t=0;t<10;t++)r["_"+String.fromCharCode(t)]=t;var n=Object.getOwnPropertyNames(r).map(function(o){return r[o]});if(n.join("")!=="0123456789")return!1;var a={};return"abcdefghijklmnopqrst".split("").forEach(function(o){a[o]=o}),Object.keys(Object.assign({},a)).join("")==="abcdefghijklmnopqrst"}catch(o){return!1}}iV.exports=G5e()?Object.assign:function(e,r){for(var t,n=V5e(e),a,o=1;o{var wp=Kn();function oV(){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={}}wp(oV.prototype,{instance:function(e,r){e=(e||"gregorian").toLowerCase(),r=r||"";var t=this._localCals[e+"-"+r];if(!t&&this.calendars[e]&&(t=new this.calendars[e](r),this._localCals[e+"-"+r]=t),!t)throw(this.local.invalidCalendar||this.regionalOptions[""].invalidCalendar).replace(/\{0\}/,e);return t},newDate:function(e,r,t,n,a){return n=(e!=null&&e.year?e.calendar():typeof n=="string"?this.instance(n,a):n)||this.instance(),n.newDate(e,r,t)},substituteDigits:function(e){return function(r){return(r+"").replace(/[0-9]/g,function(t){return e[t]})}},substituteChineseDigits:function(e,r){return function(t){for(var n="",a=0;t>0;){var o=t%10;n=(o===0?"":e[o]+r[a])+n,a++,t=Math.floor(t/10)}return n.indexOf(e[1]+r[1])===0&&(n=n.substr(1)),n||e[0]}}});function a6(e,r,t,n){if(this._calendar=e,this._year=r,this._month=t,this._day=n,this._calendar._validateLevel===0&&!this._calendar.isValid(this._year,this._month,this._day))throw(Jr.local.invalidDate||Jr.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name)}function _p(e,r){return e=""+e,"000000".substring(0,r-e.length)+e}wp(a6.prototype,{newDate:function(e,r,t){return this._calendar.newDate(e==null?this:e,r,t)},year:function(e){return arguments.length===0?this._year:this.set(e,"y")},month:function(e){return arguments.length===0?this._month:this.set(e,"m")},day:function(e){return arguments.length===0?this._day:this.set(e,"d")},date:function(e,r,t){if(!this._calendar.isValid(e,r,t))throw(Jr.local.invalidDate||Jr.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name);return this._year=e,this._month=r,this._day=t,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(e,r){return this._calendar.add(this,e,r)},set:function(e,r){return this._calendar.set(this,e,r)},compareTo:function(e){if(this._calendar.name!==e._calendar.name)throw(Jr.local.differentCalendars||Jr.regionalOptions[""].differentCalendars).replace(/\{0\}/,this._calendar.local.name).replace(/\{1\}/,e._calendar.local.name);var r=this._year!==e._year?this._year-e._year:this._month!==e._month?this.monthOfYear()-e.monthOfYear():this._day-e._day;return r===0?0:r<0?-1:1},calendar:function(){return this._calendar},toJD:function(){return this._calendar.toJD(this)},fromJD:function(e){return this._calendar.fromJD(e)},toJSDate:function(){return this._calendar.toJSDate(this)},fromJSDate:function(e){return this._calendar.fromJSDate(e)},toString:function(){return(this.year()<0?"-":"")+_p(Math.abs(this.year()),4)+"-"+_p(this.month(),2)+"-"+_p(this.day(),2)}});function i6(){this.shortYearCutoff="+10"}wp(i6.prototype,{_validateLevel:0,newDate:function(e,r,t){return e==null?this.today():(e.year&&(this._validate(e,r,t,Jr.local.invalidDate||Jr.regionalOptions[""].invalidDate),t=e.day(),r=e.month(),e=e.year()),new a6(this,e,r,t))},today:function(){return this.fromJSDate(new Date)},epoch:function(e){var r=this._validate(e,this.minMonth,this.minDay,Jr.local.invalidYear||Jr.regionalOptions[""].invalidYear);return r.year()<0?this.local.epochs[0]:this.local.epochs[1]},formatYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Jr.local.invalidYear||Jr.regionalOptions[""].invalidYear);return(r.year()<0?"-":"")+_p(Math.abs(r.year()),4)},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Jr.local.invalidYear||Jr.regionalOptions[""].invalidYear),12},monthOfYear:function(e,r){var t=this._validate(e,r,this.minDay,Jr.local.invalidMonth||Jr.regionalOptions[""].invalidMonth);return(t.month()+this.monthsInYear(t)-this.firstMonth)%this.monthsInYear(t)+this.minMonth},fromMonthOfYear:function(e,r){var t=(r+this.firstMonth-2*this.minMonth)%this.monthsInYear(e)+this.minMonth;return this._validate(e,t,this.minDay,Jr.local.invalidMonth||Jr.regionalOptions[""].invalidMonth),t},daysInYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Jr.local.invalidYear||Jr.regionalOptions[""].invalidYear);return this.leapYear(r)?366:365},dayOfYear:function(e,r,t){var n=this._validate(e,r,t,Jr.local.invalidDate||Jr.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(e,r,t){var n=this._validate(e,r,t,Jr.local.invalidDate||Jr.regionalOptions[""].invalidDate);return(Math.floor(this.toJD(n))+2)%this.daysInWeek()},extraInfo:function(e,r,t){return this._validate(e,r,t,Jr.local.invalidDate||Jr.regionalOptions[""].invalidDate),{}},add:function(e,r,t){return this._validate(e,this.minMonth,this.minDay,Jr.local.invalidDate||Jr.regionalOptions[""].invalidDate),this._correctAdd(e,this._add(e,r,t),r,t)},_add:function(e,r,t){if(this._validateLevel++,t==="d"||t==="w"){var n=e.toJD()+r*(t==="w"?this.daysInWeek():1),a=e.calendar().fromJD(n);return this._validateLevel--,[a.year(),a.month(),a.day()]}try{var o=e.year()+(t==="y"?r:0),i=e.monthOfYear()+(t==="m"?r:0),a=e.day(),l=function(f){for(;ic-1+f.minMonth;)o++,i-=c,c=f.monthsInYear(o)};t==="y"?(e.month()!==this.fromMonthOfYear(o,i)&&(i=this.newDate(o,e.month(),this.minDay).monthOfYear()),i=Math.min(i,this.monthsInYear(o)),a=Math.min(a,this.daysInMonth(o,this.fromMonthOfYear(o,i)))):t==="m"&&(l(this),a=Math.min(a,this.daysInMonth(o,this.fromMonthOfYear(o,i))));var u=[o,this.fromMonthOfYear(o,i),a];return this._validateLevel--,u}catch(s){throw this._validateLevel--,s}},_correctAdd:function(e,r,t,n){if(!this.hasYearZero&&(n==="y"||n==="m")&&(r[0]===0||e.year()>0!=r[0]>0)){var a={y:[1,1,"y"],m:[1,this.monthsInYear(-1),"m"],w:[this.daysInWeek(),this.daysInYear(-1),"d"],d:[1,this.daysInYear(-1),"d"]}[n],o=t<0?-1:1;r=this._add(e,t*a[0]+o*a[1],a[2])}return e.date(r[0],r[1],r[2])},set:function(e,r,t){this._validate(e,this.minMonth,this.minDay,Jr.local.invalidDate||Jr.regionalOptions[""].invalidDate);var n=t==="y"?r:e.year(),a=t==="m"?r:e.month(),o=t==="d"?r:e.day();return(t==="y"||t==="m")&&(o=Math.min(o,this.daysInMonth(n,a))),e.date(n,a,o)},isValid:function(e,r,t){this._validateLevel++;var n=this.hasYearZero||e!==0;if(n){var a=this.newDate(e,r,this.minDay);n=r>=this.minMonth&&r-this.minMonth=this.minDay&&t-this.minDay13.5?13:1),s=a-(u>2.5?4716:4715);return s<=0&&s--,this.newDate(s,u,l)},toJSDate:function(e,r,t){var n=this._validate(e,r,t,Jr.local.invalidDate||Jr.regionalOptions[""].invalidDate),a=new Date(n.year(),n.month()-1,n.day());return a.setHours(0),a.setMinutes(0),a.setSeconds(0),a.setMilliseconds(0),a.setHours(a.getHours()>12?a.getHours()+2:0),a},fromJSDate:function(e){return this.newDate(e.getFullYear(),e.getMonth()+1,e.getDate())}});var Jr=lV.exports=new oV;Jr.cdate=a6;Jr.baseCalendar=i6;Jr.calendars.gregorian=o6});var sV=_e(()=>{var l6=Kn(),Rn=Qn();l6(Rn.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"});Rn.local=Rn.regionalOptions[""];l6(Rn.cdate.prototype,{formatDate:function(e,r){return typeof e!="string"&&(r=e,e=""),this._calendar.formatDate(e||"",this,r)}});l6(Rn.baseCalendar.prototype,{UNIX_EPOCH:Rn.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:1440*60,TICKS_EPOCH:Rn.instance().jdEpoch,TICKS_PER_DAY:1440*60*1e7,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(e,r,t){if(typeof e!="string"&&(t=r,r=e,e=""),!r)return"";if(r.calendar()!==this)throw Rn.local.invalidFormat||Rn.regionalOptions[""].invalidFormat;e=e||this.local.dateFormat,t=t||{};for(var n=t.dayNamesShort||this.local.dayNamesShort,a=t.dayNames||this.local.dayNames,o=t.monthNumbers||this.local.monthNumbers,i=t.monthNamesShort||this.local.monthNamesShort,l=t.monthNames||this.local.monthNames,u=t.calculateWeek||this.local.calculateWeek,s=function(b,T){for(var h=1;S+h1},f=function(b,T,h,_){var y=""+T;if(s(b,_))for(;y.length1},k=function(D,E){var R=m(D,E),z=[2,3,R?4:2,R?4:2,10,11,20]["oyYJ@!".indexOf(D)+1],I=new RegExp("^-?\\d{1,"+z+"}"),P=r.substring(y).match(I);if(!P)throw(Rn.local.missingNumberAt||Rn.regionalOptions[""].missingNumberAt).replace(/\{0\}/,y);return y+=P[0].length,parseInt(P[0],10)},S=this,b=function(){if(typeof l=="function"){m("m");var D=l.call(S,r.substring(y));return y+=D.length,D}return k("m")},T=function(D,E,R,z){for(var I=m(D,z)?R:E,P=0;P-1){p=1,x=g;for(var d=this.daysInMonth(c,p);x>d;d=this.daysInMonth(c,p))p++,x-=d}return f>-1?this.fromJD(f):this.newDate(c,p,x)},determineDate:function(e,r,t,n,a){t&&typeof t!="object"&&(a=n,n=t,t=null),typeof n!="string"&&(a=n,n="");var o=this,i=function(l){try{return o.parseDate(n,l,a)}catch(c){}l=l.toLowerCase();for(var u=(l.match(/^c/)&&t?t.newDate():null)||o.today(),s=/([+-]?[0-9]+)\s*(d|w|m|y)?/g,f=s.exec(l);f;)u.add(parseInt(f[1],10),f[2]||"d"),f=s.exec(l);return u};return r=r?r.newDate():null,e=e==null?r:typeof e=="string"?i(e):typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?r:o.today().add(e,"d"):o.newDate(e),e}})});var uV=_e(()=>{var Jl=Qn(),Y5e=Kn(),s6=Jl.instance();function Mp(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}Mp.prototype=new Jl.baseCalendar;Y5e(Mp.prototype,{name:"Chinese",jdEpoch:17214255e-1,hasYearZero:!1,minMonth:0,firstMonth:0,minDay:1,regionalOptions:{"":{name:"Chinese",epochs:["BEC","EC"],monthNumbers:function(e,r){if(typeof e=="string"){var t=e.match(W5e);return t?t[0]:""}var n=this._validateYear(e),a=e.month(),o=""+this.toChineseMonth(n,a);return r&&o.length<2&&(o="0"+o),this.isIntercalaryMonth(n,a)&&(o+="i"),o},monthNames:function(e){if(typeof e=="string"){var r=e.match(Z5e);return r?r[0]:""}var t=this._validateYear(e),n=e.month(),a=this.toChineseMonth(t,n),o=["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"][a-1];return this.isIntercalaryMonth(t,n)&&(o="\u95F0"+o),o},monthNamesShort:function(e){if(typeof e=="string"){var r=e.match(J5e);return r?r[0]:""}var t=this._validateYear(e),n=e.month(),a=this.toChineseMonth(t,n),o=["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"][a-1];return this.isIntercalaryMonth(t,n)&&(o="\u95F0"+o),o},parseMonth:function(e,r){e=this._validateYear(e);var t=parseInt(r),n;if(isNaN(t))r[0]==="\u95F0"&&(n=!0,r=r.substring(1)),r[r.length-1]==="\u6708"&&(r=r.substring(0,r.length-1)),t=1+["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"].indexOf(r);else{var a=r[r.length-1];n=a==="i"||a==="I"}var o=this.toMonthIndex(e,t,n);return o},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(e,r){if(e.year&&(e=e.year()),typeof e!="number"||e<1888||e>2111)throw r.replace(/\{0\}/,this.local.name);return e},toMonthIndex:function(e,r,t){var n=this.intercalaryMonth(e),a=t&&r!==n;if(a||r<1||r>12)throw Jl.local.invalidMonth.replace(/\{0\}/,this.local.name);var o;return n?!t&&r<=n?o=r-1:o=r:o=r-1,o},toChineseMonth:function(e,r){e.year&&(e=e.year(),r=e.month());var t=this.intercalaryMonth(e),n=t?12:11;if(r<0||r>n)throw Jl.local.invalidMonth.replace(/\{0\}/,this.local.name);var a;return t?r>13;return t},isIntercalaryMonth:function(e,r){e.year&&(e=e.year(),r=e.month());var t=this.intercalaryMonth(e);return!!t&&t===r},leapYear:function(e){return this.intercalaryMonth(e)!==0},weekOfYear:function(e,r,t){var n=this._validateYear(e,Jl.local.invalidyear),a=Kl[n-Kl[0]],o=a>>9&4095,i=a>>5&15,l=a&31,u;u=s6.newDate(o,i,l),u.add(4-(u.dayOfWeek()||7),"d");var s=this.toJD(e,r,t)-u.toJD();return 1+Math.floor(s/7)},monthsInYear:function(e){return this.leapYear(e)?13:12},daysInMonth:function(e,r){e.year&&(r=e.month(),e=e.year()),e=this._validateYear(e);var t=$l[e-$l[0]],n=t>>13,a=n?12:11;if(r>a)throw Jl.local.invalidMonth.replace(/\{0\}/,this.local.name);var o=t&1<<12-r?30:29;return o},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var n=this._validate(e,o,t,Jl.local.invalidDate);e=this._validateYear(n.year()),r=n.month(),t=n.day();var a=this.isIntercalaryMonth(e,r),o=this.toChineseMonth(e,r),i=K5e(e,o,t,a);return s6.toJD(i.year,i.month,i.day)},fromJD:function(e){var r=s6.fromJD(e),t=$5e(r.year(),r.month(),r.day()),n=this.toMonthIndex(t.year,t.month,t.isIntercalary);return this.newDate(t.year,n,t.day)},fromString:function(e){var r=e.match(X5e),t=this._validateYear(+r[1]),n=+r[2],a=!!r[3],o=this.toMonthIndex(t,n,a),i=+r[4];return this.newDate(t,o,i)},add:function(e,r,t){var n=e.year(),a=e.month(),o=this.isIntercalaryMonth(n,a),i=this.toChineseMonth(n,a),l=Object.getPrototypeOf(Mp.prototype).add.call(this,e,r,t);if(t==="y"){var u=l.year(),s=l.month(),f=this.isIntercalaryMonth(u,i),c=o&&f?this.toMonthIndex(u,i,!0):this.toMonthIndex(u,i,!1);c!==s&&l.month(c)}return l}});var X5e=/^\s*(-?\d\d\d\d|\d\d)[-/](\d?\d)([iI]?)[-/](\d?\d)/m,W5e=/^\d?\d[iI]?/m,Z5e=/^闰?十?[一二三四五六七八九]?月/m,J5e=/^闰?十?[一二三四五六七八九]?/m;Jl.calendars.chinese=Mp;var $l=[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],Kl=[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 $5e(e,r,t,n){var a,o;if(typeof e=="object")a=e,o=r||{};else{var i=typeof e=="number"&&e>=1888&&e<=2111;if(!i)throw new Error("Solar year outside range 1888-2111");var l=typeof r=="number"&&r>=1&&r<=12;if(!l)throw new Error("Solar month outside range 1 - 12");var u=typeof t=="number"&&t>=1&&t<=31;if(!u)throw new Error("Solar day outside range 1 - 31");a={year:e,month:r,day:t},o=n||{}}var s=Kl[a.year-Kl[0]],f=a.year<<9|a.month<<5|a.day;o.year=f>=s?a.year:a.year-1,s=Kl[o.year-Kl[0]];var c=s>>9&4095,p=s>>5&15,x=s&31,g,w=new Date(c,p-1,x),M=new Date(a.year,a.month-1,a.day);g=Math.round((M-w)/(24*3600*1e3));var m=$l[o.year-$l[0]],k;for(k=0;k<13;k++){var S=m&1<<12-k?30:29;if(g>13;return!b||k=1888&&e<=2111;if(!l)throw new Error("Lunar year outside range 1888-2111");var u=typeof r=="number"&&r>=1&&r<=12;if(!u)throw new Error("Lunar month outside range 1 - 12");var s=typeof t=="number"&&t>=1&&t<=30;if(!s)throw new Error("Lunar day outside range 1 - 30");var f;typeof n=="object"?(f=!1,o=n):(f=!!n,o=a||{}),i={year:e,month:r,day:t,isIntercalary:f}}var c;c=i.day-1;var p=$l[i.year-$l[0]],x=p>>13,g;x&&(i.month>x||i.isIntercalary)?g=i.month:g=i.month-1;for(var w=0;w>9&4095,S=m>>5&15,b=m&31,T=new Date(k,S-1,b+c);return o.year=T.getFullYear(),o.month=1+T.getMonth(),o.day=T.getDate(),o}});var fV=_e(()=>{var l0=Qn(),Q5e=Kn();function u6(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}u6.prototype=new l0.baseCalendar;Q5e(u6.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(t){var r=this._validate(t,this.minMonth,this.minDay,l0.local.invalidYear),t=r.year()+(r.year()<0?1:0);return t%4===3||t%4===-1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,l0.local.invalidYear||l0.regionalOptions[""].invalidYear),13},weekOfYear:function(e,r,t){var n=this.newDate(e,r,t);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,l0.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===13&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var n=this._validate(e,r,t,l0.local.invalidDate);return e=n.year(),e<0&&e++,n.day()+(n.month()-1)*30+(e-1)*365+Math.floor(e/4)+this.jdEpoch-1},fromJD:function(e){var r=Math.floor(e)+.5-this.jdEpoch,t=Math.floor((r-Math.floor((r+366)/1461))/365)+1;t<=0&&t--,r=Math.floor(e)+.5-this.newDate(t,1,1).toJD();var n=Math.floor(r/30)+1,a=r-(n-1)*30+1;return this.newDate(t,n,a)}});l0.calendars.coptic=u6});var cV=_e(()=>{var Ko=Qn(),j5e=Kn();function f6(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}f6.prototype=new Ko.baseCalendar;j5e(f6.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(e){return this._validate(e,this.minMonth,this.minDay,Ko.local.invalidYear),!1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Ko.local.invalidYear),13},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Ko.local.invalidYear),400},weekOfYear:function(e,r,t){var n=this.newDate(e,r,t);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/8)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Ko.local.invalidMonth);return this.daysPerMonth[t.month()-1]},daysInWeek:function(){return 8},dayOfWeek:function(e,r,t){var n=this._validate(e,r,t,Ko.local.invalidDate);return(n.day()+1)%8},weekDay:function(e,r,t){var n=this.dayOfWeek(e,r,t);return n>=2&&n<=6},extraInfo:function(e,r,t){var n=this._validate(e,r,t,Ko.local.invalidDate);return{century:ebe[Math.floor((n.year()-1)/100)+1]||""}},toJD:function(e,r,t){var n=this._validate(e,r,t,Ko.local.invalidDate);return e=n.year()+(n.year()<0?1:0),r=n.month(),t=n.day(),t+(r>1?16:0)+(r>2?(r-2)*32:0)+(e-1)*400+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e+.5)-Math.floor(this.jdEpoch)-1;var r=Math.floor(e/400)+1;e-=(r-1)*400,e+=e>15?16:0;var t=Math.floor(e/32)+1,n=e-(t-1)*32+1;return this.newDate(r<=0?r-1:r,t,n)}});var ebe={20:"Fruitbat",21:"Anchovy"};Ko.calendars.discworld=f6});var vV=_e(()=>{var s0=Qn(),rbe=Kn();function c6(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}c6.prototype=new s0.baseCalendar;rbe(c6.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(t){var r=this._validate(t,this.minMonth,this.minDay,s0.local.invalidYear),t=r.year()+(r.year()<0?1:0);return t%4===3||t%4===-1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,s0.local.invalidYear||s0.regionalOptions[""].invalidYear),13},weekOfYear:function(e,r,t){var n=this.newDate(e,r,t);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,s0.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===13&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var n=this._validate(e,r,t,s0.local.invalidDate);return e=n.year(),e<0&&e++,n.day()+(n.month()-1)*30+(e-1)*365+Math.floor(e/4)+this.jdEpoch-1},fromJD:function(e){var r=Math.floor(e)+.5-this.jdEpoch,t=Math.floor((r-Math.floor((r+366)/1461))/365)+1;t<=0&&t--,r=Math.floor(e)+.5-this.newDate(t,1,1).toJD();var n=Math.floor(r/30)+1,a=r-(n-1)*30+1;return this.newDate(t,n,a)}});s0.calendars.ethiopian=c6});var hV=_e(()=>{var Ql=Qn(),tbe=Kn();function v6(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}v6.prototype=new Ql.baseCalendar;tbe(v6.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(e){var r=this._validate(e,this.minMonth,this.minDay,Ql.local.invalidYear);return this._leapYear(r.year())},_leapYear:function(e){return e=e<0?e+1:e,Tp(e*7+1,19)<7},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Ql.local.invalidYear),this._leapYear(e.year?e.year():e)?13:12},weekOfYear:function(e,r,t){var n=this.newDate(e,r,t);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Ql.local.invalidYear);return e=r.year(),this.toJD(e===-1?1:e+1,7,1)-this.toJD(e,7,1)},daysInMonth:function(e,r){return e.year&&(r=e.month(),e=e.year()),this._validate(e,r,this.minDay,Ql.local.invalidMonth),r===12&&this.leapYear(e)||r===8&&Tp(this.daysInYear(e),10)===5?30:r===9&&Tp(this.daysInYear(e),10)===3?29:this.daysPerMonth[r-1]},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==6},extraInfo:function(e,r,t){var n=this._validate(e,r,t,Ql.local.invalidDate);return{yearType:(this.leapYear(n)?"embolismic":"common")+" "+["deficient","regular","complete"][this.daysInYear(n)%10-3]}},toJD:function(e,r,t){var n=this._validate(e,r,t,Ql.local.invalidDate);e=n.year(),r=n.month(),t=n.day();var a=e<=0?e+1:e,o=this.jdEpoch+this._delay1(a)+this._delay2(a)+t+1;if(r<7){for(var i=7;i<=this.monthsInYear(e);i++)o+=this.daysInMonth(e,i);for(var i=1;i=this.toJD(r===-1?1:r+1,7,1);)r++;for(var t=ethis.toJD(r,t,this.daysInMonth(r,t));)t++;var n=e-this.toJD(r,t,1)+1;return this.newDate(r,t,n)}});function Tp(e,r){return e-r*Math.floor(e/r)}Ql.calendars.hebrew=v6});var dV=_e(()=>{var mv=Qn(),nbe=Kn();function h6(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}h6.prototype=new mv.baseCalendar;nbe(h6.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\u012Bs","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(e){var r=this._validate(e,this.minMonth,this.minDay,mv.local.invalidYear);return(r.year()*11+14)%30<11},weekOfYear:function(e,r,t){var n=this.newDate(e,r,t);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(e){return this.leapYear(e)?355:354},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,mv.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===12&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==5},toJD:function(e,r,t){var n=this._validate(e,r,t,mv.local.invalidDate);return e=n.year(),r=n.month(),t=n.day(),e=e<=0?e+1:e,t+Math.ceil(29.5*(r-1))+(e-1)*354+Math.floor((3+11*e)/30)+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e)+.5;var r=Math.floor((30*(e-this.jdEpoch)+10646)/10631);r=r<=0?r-1:r;var t=Math.min(12,Math.ceil((e-29-this.toJD(r,1,1))/29.5)+1),n=e-this.toJD(r,t,1)+1;return this.newDate(r,t,n)}});mv.calendars.islamic=h6});var pV=_e(()=>{var bv=Qn(),abe=Kn();function d6(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}d6.prototype=new bv.baseCalendar;abe(d6.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(t){var r=this._validate(t,this.minMonth,this.minDay,bv.local.invalidYear),t=r.year()<0?r.year()+1:r.year();return t%4===0},weekOfYear:function(e,r,t){var n=this.newDate(e,r,t);return n.add(4-(n.dayOfWeek()||7),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,bv.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===2&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var n=this._validate(e,r,t,bv.local.invalidDate);return e=n.year(),r=n.month(),t=n.day(),e<0&&e++,r<=2&&(e--,r+=12),Math.floor(365.25*(e+4716))+Math.floor(30.6001*(r+1))+t-1524.5},fromJD:function(e){var r=Math.floor(e+.5),t=r+1524,n=Math.floor((t-122.1)/365.25),a=Math.floor(365.25*n),o=Math.floor((t-a)/30.6001),i=o-Math.floor(o<14?1:13),l=n-Math.floor(i>2?4716:4715),u=t-a-Math.floor(30.6001*o);return l<=0&&l--,this.newDate(l,i,u)}});bv.calendars.julian=d6});var yV=_e(()=>{var yi=Qn(),ibe=Kn();function g6(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}g6.prototype=new yi.baseCalendar;ibe(g6.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(e){return this._validate(e,this.minMonth,this.minDay,yi.local.invalidYear),!1},formatYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,yi.local.invalidYear);e=r.year();var t=Math.floor(e/400);e=e%400,e+=e<0?400:0;var n=Math.floor(e/20);return t+"."+n+"."+e%20},forYear:function(e){if(e=e.split("."),e.length<3)throw"Invalid Mayan year";for(var r=0,t=0;t19||t>0&&n<0)throw"Invalid Mayan year";r=r*20+n}return r},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,yi.local.invalidYear),18},weekOfYear:function(e,r,t){return this._validate(e,r,t,yi.local.invalidDate),0},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,yi.local.invalidYear),360},daysInMonth:function(e,r){return this._validate(e,r,this.minDay,yi.local.invalidMonth),20},daysInWeek:function(){return 5},dayOfWeek:function(e,r,t){var n=this._validate(e,r,t,yi.local.invalidDate);return n.day()},weekDay:function(e,r,t){return this._validate(e,r,t,yi.local.invalidDate),!0},extraInfo:function(e,r,t){var n=this._validate(e,r,t,yi.local.invalidDate),a=n.toJD(),o=this._toHaab(a),i=this._toTzolkin(a);return{haabMonthName:this.local.haabMonths[o[0]-1],haabMonth:o[0],haabDay:o[1],tzolkinDayName:this.local.tzolkinMonths[i[0]-1],tzolkinDay:i[0],tzolkinTrecena:i[1]}},_toHaab:function(e){e-=this.jdEpoch;var r=p6(e+8+340,365);return[Math.floor(r/20)+1,p6(r,20)]},_toTzolkin:function(e){return e-=this.jdEpoch,[gV(e+20,20),gV(e+4,13)]},toJD:function(e,r,t){var n=this._validate(e,r,t,yi.local.invalidDate);return n.day()+n.month()*20+n.year()*360+this.jdEpoch},fromJD:function(e){e=Math.floor(e)+.5-this.jdEpoch;var r=Math.floor(e/360);e=e%360,e+=e<0?360:0;var t=Math.floor(e/20),n=e%20;return this.newDate(r,t,n)}});function p6(e,r){return e-r*Math.floor(e/r)}function gV(e,r){return p6(e-1,r)+1}yi.calendars.mayan=g6});var bV=_e(()=>{var u0=Qn(),obe=Kn();function y6(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}y6.prototype=new u0.baseCalendar;var mV=u0.instance("gregorian");obe(y6.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(e){var r=this._validate(e,this.minMonth,this.minDay,u0.local.invalidYear||u0.regionalOptions[""].invalidYear);return mV.leapYear(r.year()+(r.year()<1?1:0)+1469)},weekOfYear:function(e,r,t){var n=this.newDate(e,r,t);return n.add(1-(n.dayOfWeek()||7),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,u0.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===12&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(a,r,t){var n=this._validate(a,r,t,u0.local.invalidMonth),a=n.year();a<0&&a++;for(var o=n.day(),i=1;i=this.toJD(r+1,1,1);)r++;for(var t=e-Math.floor(this.toJD(r,1,1)+.5)+1,n=1;t>this.daysInMonth(r,n);)t-=this.daysInMonth(r,n),n++;return this.newDate(r,n,t)}});u0.calendars.nanakshahi=y6});var xV=_e(()=>{var f0=Qn(),lbe=Kn();function m6(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}m6.prototype=new f0.baseCalendar;lbe(m6.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(e){return this.daysInYear(e)!==this.daysPerYear},weekOfYear:function(e,r,t){var n=this.newDate(e,r,t);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,f0.local.invalidYear);if(e=r.year(),typeof this.NEPALI_CALENDAR_DATA[e]=="undefined")return this.daysPerYear;for(var t=0,n=this.minMonth;n<=12;n++)t+=this.NEPALI_CALENDAR_DATA[e][n];return t},daysInMonth:function(e,r){return e.year&&(r=e.month(),e=e.year()),this._validate(e,r,this.minDay,f0.local.invalidMonth),typeof this.NEPALI_CALENDAR_DATA[e]=="undefined"?this.daysPerMonth[r-1]:this.NEPALI_CALENDAR_DATA[e][r]},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==6},toJD:function(e,r,t){var n=this._validate(e,r,t,f0.local.invalidDate);e=n.year(),r=n.month(),t=n.day();var a=f0.instance(),o=0,i=r,l=e;this._createMissingCalendarData(e);var u=e-(i>9||i===9&&t>=this.NEPALI_CALENDAR_DATA[l][0]?56:57);for(r!==9&&(o=t,i--);i!==9;)i<=0&&(i=12,l--),o+=this.NEPALI_CALENDAR_DATA[l][i],i--;return r===9?(o+=t-this.NEPALI_CALENDAR_DATA[l][0],o<0&&(o+=a.daysInYear(u))):o+=this.NEPALI_CALENDAR_DATA[l][9]-this.NEPALI_CALENDAR_DATA[l][0],a.newDate(u,1,1).add(o,"d").toJD()},fromJD:function(e){var r=f0.instance(),t=r.fromJD(e),n=t.year(),a=t.dayOfYear(),o=n+56;this._createMissingCalendarData(o);for(var i=9,l=this.NEPALI_CALENDAR_DATA[o][0],u=this.NEPALI_CALENDAR_DATA[o][i]-l+1;a>u;)i++,i>12&&(i=1,o++),u+=this.NEPALI_CALENDAR_DATA[o][i];var s=this.NEPALI_CALENDAR_DATA[o][i]-(u-a);return this.newDate(o,i,s)},_createMissingCalendarData:function(e){var r=this.daysPerMonth.slice(0);r.unshift(17);for(var t=e-1;t{var Ju=Qn(),sbe=Kn();function kp(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}function Ap(e){var r=e-475;e<0&&r++;var t=.242197,n=t*r,a=t*(r+1),o=n-Math.floor(n),i=a-Math.floor(a);return o>i}kp.prototype=new Ju.baseCalendar;sbe(kp.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","Dey","Bahman","Esfand"],monthNamesShort:["Far","Ord","Kho","Tir","Mor","Sha","Meh","Aba","Aza","Dey","Bah","Esf"],dayNames:["Yekshanbeh","Doshanbeh","Seshanbeh","Chah\u0101rshanbeh","Panjshanbeh","Jom'eh","Shanbeh"],dayNamesShort:["Yek","Do","Se","Cha","Panj","Jom","Sha"],dayNamesMin:["Ye","Do","Se","Ch","Pa","Jo","Sh"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Ju.local.invalidYear);return Ap(r.year())},weekOfYear:function(e,r,t){var n=this.newDate(e,r,t);return n.add(-((n.dayOfWeek()+1)%7),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Ju.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===12&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==5},toJD:function(e,r,t){var n=this._validate(e,r,t,Ju.local.invalidDate);e=n.year(),r=n.month(),t=n.day();var a=0;if(e>0)for(var o=1;o0?e-1:e)*365+a+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e)+.5;var r=475+(e-this.toJD(475,1,1))/365.242197,t=Math.floor(r);t<=0&&t--,e>this.toJD(t,12,Ap(t)?30:29)&&(t++,t===0&&t++);var n=e-this.toJD(t,1,1)+1,a=n<=186?Math.ceil(n/31):Math.ceil((n-6)/30),o=e-this.toJD(t,a,1)+1;return this.newDate(t,a,o)}});Ju.calendars.persian=kp;Ju.calendars.jalali=kp});var wV=_e(()=>{var c0=Qn(),ube=Kn(),Sp=c0.instance();function b6(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}b6.prototype=new c0.baseCalendar;ube(b6.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(t){var r=this._validate(t,this.minMonth,this.minDay,c0.local.invalidYear),t=this._t2gYear(r.year());return Sp.leapYear(t)},weekOfYear:function(a,r,t){var n=this._validate(a,this.minMonth,this.minDay,c0.local.invalidYear),a=this._t2gYear(n.year());return Sp.weekOfYear(a,n.month(),n.day())},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,c0.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===2&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(a,r,t){var n=this._validate(a,r,t,c0.local.invalidDate),a=this._t2gYear(n.year());return Sp.toJD(a,n.month(),n.day())},fromJD:function(e){var r=Sp.fromJD(e),t=this._g2tYear(r.year());return this.newDate(t,r.month(),r.day())},_t2gYear:function(e){return e+this.yearsOffset+(e>=-this.yearsOffset&&e<=-1?1:0)},_g2tYear:function(e){return e-this.yearsOffset-(e>=1&&e<=this.yearsOffset?1:0)}});c0.calendars.taiwan=b6});var MV=_e(()=>{var v0=Qn(),fbe=Kn(),Cp=v0.instance();function x6(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}x6.prototype=new v0.baseCalendar;fbe(x6.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(t){var r=this._validate(t,this.minMonth,this.minDay,v0.local.invalidYear),t=this._t2gYear(r.year());return Cp.leapYear(t)},weekOfYear:function(a,r,t){var n=this._validate(a,this.minMonth,this.minDay,v0.local.invalidYear),a=this._t2gYear(n.year());return Cp.weekOfYear(a,n.month(),n.day())},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,v0.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===2&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(a,r,t){var n=this._validate(a,r,t,v0.local.invalidDate),a=this._t2gYear(n.year());return Cp.toJD(a,n.month(),n.day())},fromJD:function(e){var r=Cp.fromJD(e),t=this._g2tYear(r.year());return this.newDate(t,r.month(),r.day())},_t2gYear:function(e){return e-this.yearsOffset-(e>=1&&e<=this.yearsOffset?1:0)},_g2tYear:function(e){return e+this.yearsOffset+(e>=-this.yearsOffset&&e<=-1?1:0)}});v0.calendars.thai=x6});var TV=_e(()=>{var h0=Qn(),cbe=Kn();function _6(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}_6.prototype=new h0.baseCalendar;cbe(_6.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\u0101th\u0101\u2019","Yawm al-Arba\u2018\u0101\u2019","Yawm al-Kham\u012Bs","Yawm al-Jum\u2018a","Yawm al-Sabt"],dayNamesMin:["Ah","Ith","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!0}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,h0.local.invalidYear);return this.daysInYear(r.year())===355},weekOfYear:function(e,r,t){var n=this.newDate(e,r,t);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(e){for(var r=0,t=1;t<=12;t++)r+=this.daysInMonth(e,t);return r},daysInMonth:function(e,r){for(var t=this._validate(e,r,this.minDay,h0.local.invalidMonth),n=t.toJD()-24e5+.5,a=0,o=0;on)return jl[a]-jl[a-1];a++}return 30},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==5},toJD:function(e,r,t){var n=this._validate(e,r,t,h0.local.invalidDate),a=12*(n.year()-1)+n.month()-15292,o=n.day()+jl[a-1]-1;return o+24e5-.5},fromJD:function(e){for(var r=e-24e5+.5,t=0,n=0;nr);n++)t++;var a=t+15292,o=Math.floor((a-1)/12),i=o+1,l=a-12*o,u=r-jl[t-1]+1;return this.newDate(i,l,u)},isValid:function(e,r,t){var n=h0.baseCalendar.prototype.isValid.apply(this,arguments);return n&&(e=e.year!=null?e.year:e,n=e>=1276&&e<=1500),n},_validate:function(e,r,t,n){var a=h0.baseCalendar.prototype._validate.apply(this,arguments);if(a.year<1276||a.year>1500)throw n.replace(/\{0\}/,this.local.name);return a}});h0.calendars.ummalqura=_6;var jl=[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]});var kV=_e((B9e,AV)=>{"use strict";AV.exports=Qn();sV();uV();fV();cV();vV();hV();dV();pV();yV();bV();xV();_V();wV();MV();TV()});var FV=_e((O9e,RV)=>{"use strict";var CV=kV(),xv=rr(),EV=(mn(),or(Cn)),vbe=EV.EPOCHJD,hbe=EV.ONEDAY,T6={valType:"enumerated",values:xv.sortObjectKeys(CV.calendars),editType:"calc",dflt:"gregorian"},LV=function(e,r,t,n){var a={};return a[t]=T6,xv.coerce(e,r,a,t,n)},dbe=function(e,r,t,n){for(var a=0;a{"use strict";PV.exports=FV()});var xbe=_e((H9e,NV)=>{var zV=$B();zV.register([cU(),zU(),eH(),vH(),kH(),UH(),nV(),IV()]);NV.exports=zV});return xbe();})(); +`]);o.createShader=function(x){var h=l(x,s,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},o.createPickShader=function(x){var h=l(x,s,g,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},o.createContourShader=function(x){var h=l(x,c,f,null,[{name:"uv",type:"vec4"},{name:"f",type:"float"}]);return h.attributes.uv.location=0,h.attributes.f.location=1,h},o.createPickContourShader=function(x){var h=l(x,c,g,null,[{name:"uv",type:"vec4"},{name:"f",type:"float"}]);return h.attributes.uv.location=0,h.attributes.f.location=1,h}},9499(a,o,i){"use strict";a.exports=ae;var l=i(8828),u=i(2762),s=i(8116),f=i(7766),c=i(1888),g=i(6729),x=i(5298),h=i(9994),_=i(9618),T=i(3711),m=i(6760),k=i(7608),S=i(2478),b=i(6199),M=i(990),d=M.createShader,w=M.createContourShader,y=M.createPickShader,v=M.createPickContourShader,A=40,p=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],D=[[0,0],[0,1],[1,0],[1,1],[1,0],[0,1]],E=[[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 Q=0;Q<3;++Q){var te=E[Q],ue=(Q+1)%3,ee=(Q+2)%3;te[ue+0]=1,te[ee+3]=1,te[Q+6]=1}})();function R(Q,te,ue,ee,ie){this.position=Q,this.index=te,this.uv=ue,this.level=ee,this.dataCoordinate=ie}var F=256;function z(Q,te,ue,ee,ie,fe,we,Te,ke,ge,Ee,Le,se,X,K){this.gl=Q,this.shape=te,this.bounds=ue,this.objectOffset=K,this.intensityBounds=[],this._shader=ee,this._pickShader=ie,this._coordinateBuffer=fe,this._vao=we,this._colorMap=Te,this._contourShader=ke,this._contourPickShader=ge,this._contourBuffer=Ee,this._contourVAO=Le,this._contourOffsets=[[],[],[]],this._contourCounts=[[],[],[]],this._vertexCount=0,this._pickResult=new R([0,0,0],[0,0],[0,0],[0,0,0],[0,0,0]),this._dynamicBuffer=se,this._dynamicVAO=X,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=[_(c.mallocFloat(1024),[0,0]),_(c.mallocFloat(1024),[0,0]),_(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 P=z.prototype;P.genColormap=function(Q,te){var ue=!1,ee=h([g({colormap:Q,nshades:F,format:"rgba"}).map(function(ie,fe){var we=te?L(fe/255,te):ie[3];return we<1&&(ue=!0),[ie[0],ie[1],ie[2],255*we]})]);return x.divseq(ee,255),this.hasAlphaScale=ue,ee},P.isTransparent=function(){return this.opacity<1||this.hasAlphaScale},P.isOpaque=function(){return!this.isTransparent()},P.pickSlots=1,P.setPickBase=function(Q){this.pickId=Q};function L(Q,te){if(!te||!te.length)return 1;for(var ue=0;ueQ&&ue>0){var ee=(te[ue][0]-Q)/(te[ue][0]-te[ue-1][0]);return te[ue][1]*(1-ee)+ee*te[ue-1][1]}}return 1}var I=[0,0,0],B={showSurface:!1,showContour:!1,projections:[p.slice(),p.slice(),p.slice()],clipBounds:[[[0,0,0],[0,0,0]],[[0,0,0],[0,0,0]],[[0,0,0],[0,0,0]]]};function O(Q,te){var ue,ee,ie,fe=te.axes&&te.axes.lastCubeProps.axis||I,we=te.showSurface,Te=te.showContour;for(ue=0;ue<3;++ue)for(we=we||te.surfaceProject[ue],ee=0;ee<3;++ee)Te=Te||te.contourProject[ue][ee];for(ue=0;ue<3;++ue){var ke=B.projections[ue];for(ee=0;ee<16;++ee)ke[ee]=0;for(ee=0;ee<4;++ee)ke[5*ee]=1;ke[5*ue]=0,ke[12+ue]=te.axesBounds[+(fe[ue]>0)][ue],m(ke,Q.model,ke);var ge=B.clipBounds[ue];for(ie=0;ie<2;++ie)for(ee=0;ee<3;++ee)ge[ie][ee]=Q.clipBounds[ie][ee];ge[0][ue]=-1e8,ge[1][ue]=1e8}return B.showSurface=we,B.showContour=Te,B}var G={model:p,view:p,projection:p,inverseModel:p.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},J=p.slice(),j=[1,0,0,0,1,0,0,0,1];function V(Q,te){Q=Q||{};var ue=this.gl;ue.disable(ue.CULL_FACE),this._colorMap.bind(0);var ee=G;ee.model=Q.model||p,ee.view=Q.view||p,ee.projection=Q.projection||p,ee.lowerBound=[this.bounds[0][0],this.bounds[0][1],this.colorBounds[0]||this.bounds[0][2]],ee.upperBound=[this.bounds[1][0],this.bounds[1][1],this.colorBounds[1]||this.bounds[1][2]],ee.objectOffset=this.objectOffset,ee.contourColor=this.contourColor[0],ee.inverseModel=k(ee.inverseModel,ee.model);for(var ie=0;ie<2;++ie)for(var fe=ee.clipBounds[ie],we=0;we<3;++we)fe[we]=Math.min(Math.max(this.clipBounds[ie][we],-1e8),1e8);ee.kambient=this.ambientLight,ee.kdiffuse=this.diffuseLight,ee.kspecular=this.specularLight,ee.roughness=this.roughness,ee.fresnel=this.fresnel,ee.opacity=this.opacity,ee.height=0,ee.permutation=j,ee.vertexColor=this.vertexColor;var Te=J;for(m(Te,ee.view,ee.model),m(Te,ee.projection,Te),k(Te,Te),ie=0;ie<3;++ie)ee.eyePosition[ie]=Te[12+ie]/Te[15];var ke=Te[15];for(ie=0;ie<3;++ie)ke+=this.lightPosition[ie]*Te[4*ie+3];for(ie=0;ie<3;++ie){var ge=Te[12+ie];for(we=0;we<3;++we)ge+=Te[4*we+ie]*this.lightPosition[we];ee.lightPosition[ie]=ge/ke}var Ee=O(ee,this);if(Ee.showSurface){for(this._shader.bind(),this._shader.uniforms=ee,this._vao.bind(),this.showSurface&&this._vertexCount&&this._vao.draw(ue.TRIANGLES,this._vertexCount),ie=0;ie<3;++ie)!this.surfaceProject[ie]||!this.vertexCount||(this._shader.uniforms.model=Ee.projections[ie],this._shader.uniforms.clipBounds=Ee.clipBounds[ie],this._vao.draw(ue.TRIANGLES,this._vertexCount));this._vao.unbind()}if(Ee.showContour){var Le=this._contourShader;ee.kambient=1,ee.kdiffuse=0,ee.kspecular=0,ee.opacity=1,Le.bind(),Le.uniforms=ee;var se=this._contourVAO;for(se.bind(),ie=0;ie<3;++ie)for(Le.uniforms.permutation=E[ie],ue.lineWidth(this.contourWidth[ie]*this.pixelRatio),we=0;we>4)/16)/255,ie=Math.floor(ee),fe=ee-ie,we=te[1]*(Q.value[1]+(Q.value[2]&15)/16)/255,Te=Math.floor(we),ke=we-Te;ie+=1,Te+=1;var ge=ue.position;ge[0]=ge[1]=ge[2]=0;for(var Ee=0;Ee<2;++Ee)for(var Le=Ee?fe:1-fe,se=0;se<2;++se)for(var X=se?ke:1-ke,K=ie+Ee,ye=Te+se,oe=Le*X,de=0;de<3;++de)ge[de]+=this._field[de].get(K,ye)*oe;for(var pe=this._pickResult.level,me=0;me<3;++me)if(pe[me]=S.le(this.contourLevels[me],ge[me]),pe[me]<0)this.contourLevels[me].length>0&&(pe[me]=0);else if(pe[me]Math.abs(ve-ge[me])&&(pe[me]+=1)}for(ue.index[0]=fe<.5?ie:ie+1,ue.index[1]=ke<.5?Te:Te+1,ue.uv[0]=ee/te[0],ue.uv[1]=we/te[1],de=0;de<3;++de)ue.dataCoordinate[de]=this._field[de].get(ue.index[0],ue.index[1]);return ue},P.padField=function(Q,te){var ue=te.shape.slice(),ee=Q.shape.slice();x.assign(Q.lo(1,1).hi(ue[0],ue[1]),te),x.assign(Q.lo(1).hi(ue[0],1),te.hi(ue[0],1)),x.assign(Q.lo(1,ee[1]-1).hi(ue[0],1),te.lo(0,ue[1]-1).hi(ue[0],1)),x.assign(Q.lo(0,1).hi(1,ue[1]),te.hi(1)),x.assign(Q.lo(ee[0]-1,1).hi(1,ue[1]),te.lo(ue[0]-1)),Q.set(0,0,te.get(0,0)),Q.set(0,ee[1]-1,te.get(0,ue[1]-1)),Q.set(ee[0]-1,0,te.get(ue[0]-1,0)),Q.set(ee[0]-1,ee[1]-1,te.get(ue[0]-1,ue[1]-1))};function Z(Q,te){return Array.isArray(Q)?[te(Q[0]),te(Q[1]),te(Q[2])]:[te(Q),te(Q),te(Q)]}function re(Q){return Array.isArray(Q)?Q.length===3?[Q[0],Q[1],Q[2],1]:[Q[0],Q[1],Q[2],Q[3]]:[0,0,0,1]}function $(Q){if(Array.isArray(Q)){if(Array.isArray(Q))return[re(Q[0]),re(Q[1]),re(Q[2])];var te=re(Q);return[te.slice(),te.slice(),te.slice()]}}P.update=function(Q){Q=Q||{},this.objectOffset=Q.objectOffset||this.objectOffset,this.dirty=!0,"contourWidth"in Q&&(this.contourWidth=Z(Q.contourWidth,Number)),"showContour"in Q&&(this.showContour=Z(Q.showContour,Boolean)),"showSurface"in Q&&(this.showSurface=!!Q.showSurface),"contourTint"in Q&&(this.contourTint=Z(Q.contourTint,Boolean)),"contourColor"in Q&&(this.contourColor=$(Q.contourColor)),"contourProject"in Q&&(this.contourProject=Z(Q.contourProject,function(Ct){return Z(Ct,Boolean)})),"surfaceProject"in Q&&(this.surfaceProject=Q.surfaceProject),"dynamicColor"in Q&&(this.dynamicColor=$(Q.dynamicColor)),"dynamicTint"in Q&&(this.dynamicTint=Z(Q.dynamicTint,Number)),"dynamicWidth"in Q&&(this.dynamicWidth=Z(Q.dynamicWidth,Number)),"opacity"in Q&&(this.opacity=Q.opacity),"opacityscale"in Q&&(this.opacityscale=Q.opacityscale),"colorBounds"in Q&&(this.colorBounds=Q.colorBounds),"vertexColor"in Q&&(this.vertexColor=Q.vertexColor?1:0),"colormap"in Q&&this._colorMap.setPixels(this.genColormap(Q.colormap,this.opacityscale));var te=Q.field||Q.coords&&Q.coords[2]||null,ue=!1;if(te||(this._field[2].shape[0]||this._field[2].shape[2]?te=this._field[2].lo(1,1).hi(this._field[2].shape[0]-2,this._field[2].shape[1]-2):te=this._field[2].hi(0,0)),"field"in Q||"coords"in Q){var ee=(te.shape[0]+2)*(te.shape[1]+2);ee>this._field[2].data.length&&(c.freeFloat(this._field[2].data),this._field[2].data=c.mallocFloat(l.nextPow2(ee))),this._field[2]=_(this._field[2].data,[te.shape[0]+2,te.shape[1]+2]),this.padField(this._field[2],te),this.shape=te.shape.slice();for(var ie=this.shape,fe=0;fe<2;++fe)this._field[2].size>this._field[fe].data.length&&(c.freeFloat(this._field[fe].data),this._field[fe].data=c.mallocFloat(this._field[2].size)),this._field[fe]=_(this._field[fe].data,[ie[0]+2,ie[1]+2]);if(Q.coords){var we=Q.coords;if(!Array.isArray(we)||we.length!==3)throw new Error("gl-surface: invalid coordinates for x/y");for(fe=0;fe<2;++fe){var Te=we[fe];for(se=0;se<2;++se)if(Te.shape[se]!==ie[se])throw new Error("gl-surface: coords have incorrect shape");this.padField(this._field[fe],Te)}}else if(Q.ticks){var ke=Q.ticks;if(!Array.isArray(ke)||ke.length!==2)throw new Error("gl-surface: invalid ticks");for(fe=0;fe<2;++fe){var ge=ke[fe];if((Array.isArray(ge)||ge.length)&&(ge=_(ge)),ge.shape[0]!==ie[fe])throw new Error("gl-surface: invalid tick length");var Ee=_(ge.data,ie);Ee.stride[fe]=ge.stride[0],Ee.stride[fe^1]=0,this.padField(this._field[fe],Ee)}}else{for(fe=0;fe<2;++fe){var Le=[0,0];Le[fe]=1,this._field[fe]=_(this._field[fe].data,[ie[0]+2,ie[1]+2],Le,0)}this._field[0].set(0,0,0);for(var se=0;se0){for(var Yn=0;Yn<5;++Yn)Pr.pop();er-=1}continue e}}}ot.push(er)}this._contourOffsets[at]=Hr,this._contourCounts[at]=ot}var _n=c.mallocFloat(Pr.length);for(fe=0;feR||D<0||D>R)throw new Error("gl-texture2d: Invalid texture size");return A._shape=[p,D],A.bind(),E.texImage2D(E.TEXTURE_2D,0,A.format,p,D,0,A.format,A.type,null),A._mipLevels=[0],A}function m(A,p,D,E,R,F){this.gl=A,this.handle=p,this.format=R,this.type=F,this._shape=[D,E],this._mipLevels=[0],this._magFilter=A.NEAREST,this._minFilter=A.NEAREST,this._wrapS=A.CLAMP_TO_EDGE,this._wrapT=A.CLAMP_TO_EDGE,this._anisoSamples=1;var z=this,P=[this._wrapS,this._wrapT];Object.defineProperties(P,[{get:function(){return z._wrapS},set:function(I){return z.wrapS=I}},{get:function(){return z._wrapT},set:function(I){return z.wrapT=I}}]),this._wrapVector=P;var L=[this._shape[0],this._shape[1]];Object.defineProperties(L,[{get:function(){return z._shape[0]},set:function(I){return z.width=I}},{get:function(){return z._shape[1]},set:function(I){return z.height=I}}]),this._shapeVector=L}var k=m.prototype;Object.defineProperties(k,{minFilter:{get:function(){return this._minFilter},set:function(A){this.bind();var p=this.gl;if(this.type===p.FLOAT&&f.indexOf(A)>=0&&(p.getExtension("OES_texture_float_linear")||(A=p.NEAREST)),c.indexOf(A)<0)throw new Error("gl-texture2d: Unknown filter mode "+A);return p.texParameteri(p.TEXTURE_2D,p.TEXTURE_MIN_FILTER,A),this._minFilter=A}},magFilter:{get:function(){return this._magFilter},set:function(A){this.bind();var p=this.gl;if(this.type===p.FLOAT&&f.indexOf(A)>=0&&(p.getExtension("OES_texture_float_linear")||(A=p.NEAREST)),c.indexOf(A)<0)throw new Error("gl-texture2d: Unknown filter mode "+A);return p.texParameteri(p.TEXTURE_2D,p.TEXTURE_MAG_FILTER,A),this._magFilter=A}},mipSamples:{get:function(){return this._anisoSamples},set:function(A){var p=this._anisoSamples;if(this._anisoSamples=Math.max(A,1)|0,p!==this._anisoSamples){var D=this.gl.getExtension("EXT_texture_filter_anisotropic");D&&this.gl.texParameterf(this.gl.TEXTURE_2D,D.TEXTURE_MAX_ANISOTROPY_EXT,this._anisoSamples)}return this._anisoSamples}},wrapS:{get:function(){return this._wrapS},set:function(A){if(this.bind(),g.indexOf(A)<0)throw new Error("gl-texture2d: Unknown wrap mode "+A);return this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_WRAP_S,A),this._wrapS=A}},wrapT:{get:function(){return this._wrapT},set:function(A){if(this.bind(),g.indexOf(A)<0)throw new Error("gl-texture2d: Unknown wrap mode "+A);return this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_WRAP_T,A),this._wrapT=A}},wrap:{get:function(){return this._wrapVector},set:function(A){if(Array.isArray(A)||(A=[A,A]),A.length!==2)throw new Error("gl-texture2d: Must specify wrap mode for rows and columns");for(var p=0;p<2;++p)if(g.indexOf(A[p])<0)throw new Error("gl-texture2d: Unknown wrap mode "+A);this._wrapS=A[0],this._wrapT=A[1];var D=this.gl;return this.bind(),D.texParameteri(D.TEXTURE_2D,D.TEXTURE_WRAP_S,this._wrapS),D.texParameteri(D.TEXTURE_2D,D.TEXTURE_WRAP_T,this._wrapT),A}},shape:{get:function(){return this._shapeVector},set:function(A){if(!Array.isArray(A))A=[A|0,A|0];else if(A.length!==2)throw new Error("gl-texture2d: Invalid texture shape");return T(this,A[0]|0,A[1]|0),[A[0]|0,A[1]|0]}},width:{get:function(){return this._shape[0]},set:function(A){return A=A|0,T(this,A,this._shape[1]),A}},height:{get:function(){return this._shape[1]},set:function(A){return A=A|0,T(this,this._shape[0],A),A}}}),k.bind=function(A){var p=this.gl;return A!==void 0&&p.activeTexture(p.TEXTURE0+(A|0)),p.bindTexture(p.TEXTURE_2D,this.handle),A!==void 0?A|0:p.getParameter(p.ACTIVE_TEXTURE)-p.TEXTURE0},k.dispose=function(){this.gl.deleteTexture(this.handle)},k.generateMipmap=function(){this.bind(),this.gl.generateMipmap(this.gl.TEXTURE_2D);for(var A=Math.min(this._shape[0],this._shape[1]),p=0;A>0;++p,A>>>=1)this._mipLevels.indexOf(p)<0&&this._mipLevels.push(p)},k.setPixels=function(A,p,D,E){var R=this.gl;this.bind(),Array.isArray(p)?(E=D,D=p[1]|0,p=p[0]|0):(p=p||0,D=D||0),E=E||0;var F=h(A)?A:A.raw;if(F){var z=this._mipLevels.indexOf(E)<0;z?(R.texImage2D(R.TEXTURE_2D,0,this.format,this.format,this.type,F),this._mipLevels.push(E)):R.texSubImage2D(R.TEXTURE_2D,E,p,D,this.format,this.type,F)}else if(A.shape&&A.stride&&A.data){if(A.shape.length<2||p+A.shape[1]>this._shape[1]>>>E||D+A.shape[0]>this._shape[0]>>>E||p<0||D<0)throw new Error("gl-texture2d: Texture dimensions are out of bounds");b(R,p,D,E,this.format,this.type,this._mipLevels,A)}else throw new Error("gl-texture2d: Unsupported data type")};function S(A,p){return A.length===3?p[2]===1&&p[1]===A[0]*A[2]&&p[0]===A[2]:p[0]===1&&p[1]===A[0]}function b(A,p,D,E,R,F,z,P){var L=P.dtype,I=P.shape.slice();if(I.length<2||I.length>3)throw new Error("gl-texture2d: Invalid ndarray, must be 2d or 3d");var B=0,O=0,G=S(I,P.stride.slice());L==="float32"?B=A.FLOAT:L==="float64"?(B=A.FLOAT,G=!1,L="float32"):L==="uint8"?B=A.UNSIGNED_BYTE:(B=A.UNSIGNED_BYTE,G=!1,L="uint8");var J=1;if(I.length===2)O=A.LUMINANCE,I=[I[0],I[1],1],P=l(P.data,I,[P.stride[0],P.stride[1],1],P.offset);else if(I.length===3){if(I[2]===1)O=A.ALPHA;else if(I[2]===2)O=A.LUMINANCE_ALPHA;else if(I[2]===3)O=A.RGB;else if(I[2]===4)O=A.RGBA;else throw new Error("gl-texture2d: Invalid shape for pixel coords");J=I[2]}else throw new Error("gl-texture2d: Invalid shape for texture");if((O===A.LUMINANCE||O===A.ALPHA)&&(R===A.LUMINANCE||R===A.ALPHA)&&(O=R),O!==R)throw new Error("gl-texture2d: Incompatible texture format for setPixels");var j=P.size,V=z.indexOf(E)<0;if(V&&z.push(E),B===F&&G)P.offset===0&&P.data.length===j?V?A.texImage2D(A.TEXTURE_2D,E,R,I[0],I[1],0,R,F,P.data):A.texSubImage2D(A.TEXTURE_2D,E,p,D,I[0],I[1],R,F,P.data):V?A.texImage2D(A.TEXTURE_2D,E,R,I[0],I[1],0,R,F,P.data.subarray(P.offset,P.offset+j)):A.texSubImage2D(A.TEXTURE_2D,E,p,D,I[0],I[1],R,F,P.data.subarray(P.offset,P.offset+j));else{var q;F===A.FLOAT?q=s.mallocFloat32(j):q=s.mallocUint8(j);var Z=l(q,I,[I[2],I[2]*I[0],1]);B===A.FLOAT&&F===A.UNSIGNED_BYTE?_(Z,P):u.assign(Z,P),V?A.texImage2D(A.TEXTURE_2D,E,R,I[0],I[1],0,R,F,q.subarray(0,j)):A.texSubImage2D(A.TEXTURE_2D,E,p,D,I[0],I[1],R,F,q.subarray(0,j)),F===A.FLOAT?s.freeFloat32(q):s.freeUint8(q)}}function M(A){var p=A.createTexture();return A.bindTexture(A.TEXTURE_2D,p),A.texParameteri(A.TEXTURE_2D,A.TEXTURE_MIN_FILTER,A.NEAREST),A.texParameteri(A.TEXTURE_2D,A.TEXTURE_MAG_FILTER,A.NEAREST),A.texParameteri(A.TEXTURE_2D,A.TEXTURE_WRAP_S,A.CLAMP_TO_EDGE),A.texParameteri(A.TEXTURE_2D,A.TEXTURE_WRAP_T,A.CLAMP_TO_EDGE),p}function d(A,p,D,E,R){var F=A.getParameter(A.MAX_TEXTURE_SIZE);if(p<0||p>F||D<0||D>F)throw new Error("gl-texture2d: Invalid texture shape");if(R===A.FLOAT&&!A.getExtension("OES_texture_float"))throw new Error("gl-texture2d: Floating point textures not supported on this platform");var z=M(A);return A.texImage2D(A.TEXTURE_2D,0,E,p,D,0,E,R,null),new m(A,z,p,D,E,R)}function w(A,p,D,E,R,F){var z=M(A);return A.texImage2D(A.TEXTURE_2D,0,R,R,F,p),new m(A,z,D,E,R,F)}function y(A,p){var D=p.dtype,E=p.shape.slice(),R=A.getParameter(A.MAX_TEXTURE_SIZE);if(E[0]<0||E[0]>R||E[1]<0||E[1]>R)throw new Error("gl-texture2d: Invalid texture size");var F=S(E,p.stride.slice()),z=0;D==="float32"?z=A.FLOAT:D==="float64"?(z=A.FLOAT,F=!1,D="float32"):D==="uint8"?z=A.UNSIGNED_BYTE:(z=A.UNSIGNED_BYTE,F=!1,D="uint8");var P=0;if(E.length===2)P=A.LUMINANCE,E=[E[0],E[1],1],p=l(p.data,E,[p.stride[0],p.stride[1],1],p.offset);else if(E.length===3)if(E[2]===1)P=A.ALPHA;else if(E[2]===2)P=A.LUMINANCE_ALPHA;else if(E[2]===3)P=A.RGB;else if(E[2]===4)P=A.RGBA;else throw new Error("gl-texture2d: Invalid shape for pixel coords");else throw new Error("gl-texture2d: Invalid shape for texture");z===A.FLOAT&&!A.getExtension("OES_texture_float")&&(z=A.UNSIGNED_BYTE,F=!1);var L,I,B=p.size;if(F)p.offset===0&&p.data.length===B?L=p.data:L=p.data.subarray(p.offset,p.offset+B);else{var O=[E[2],E[2]*E[0],1];I=s.malloc(B,D);var G=l(I,E,O,0);(D==="float32"||D==="float64")&&z===A.UNSIGNED_BYTE?_(G,p):u.assign(G,p),L=I.subarray(0,B)}var J=M(A);return A.texImage2D(A.TEXTURE_2D,0,P,E[0],E[1],0,P,z,L),F||s.free(I),new m(A,J,E[0],E[1],P,z)}function v(A){if(arguments.length<=1)throw new Error("gl-texture2d: Missing arguments for texture2d constructor");if(f||x(A),typeof arguments[1]=="number")return d(A,arguments[1],arguments[2],arguments[3]||A.RGBA,arguments[4]||A.UNSIGNED_BYTE);if(Array.isArray(arguments[1]))return d(A,arguments[1][0]|0,arguments[1][1]|0,arguments[2]||A.RGBA,arguments[3]||A.UNSIGNED_BYTE);if(typeof arguments[1]=="object"){var p=arguments[1],D=h(p)?p:p.raw;if(D)return w(A,D,p.width|0,p.height|0,arguments[2]||A.RGBA,arguments[3]||A.UNSIGNED_BYTE);if(p.shape&&p.data&&p.stride)return y(A,p)}throw new Error("gl-texture2d: Invalid arguments for texture2d constructor")}},1433(a){"use strict";function o(i,l,u){l?l.bind():i.bindBuffer(i.ELEMENT_ARRAY_BUFFER,null);var s=i.getParameter(i.MAX_VERTEX_ATTRIBS)|0;if(u){if(u.length>s)throw new Error("gl-vao: Too many vertex attributes");for(var f=0;f1?0:Math.acos(_)}},9226(a){a.exports=o;function o(i,l){return i[0]=Math.ceil(l[0]),i[1]=Math.ceil(l[1]),i[2]=Math.ceil(l[2]),i}},3126(a){a.exports=o;function o(i){var l=new Float32Array(3);return l[0]=i[0],l[1]=i[1],l[2]=i[2],l}},3990(a){a.exports=o;function o(i,l){return i[0]=l[0],i[1]=l[1],i[2]=l[2],i}},1091(a){a.exports=o;function o(){var i=new Float32Array(3);return i[0]=0,i[1]=0,i[2]=0,i}},5911(a){a.exports=o;function o(i,l,u){var s=l[0],f=l[1],c=l[2],g=u[0],x=u[1],h=u[2];return i[0]=f*h-c*x,i[1]=c*g-s*h,i[2]=s*x-f*g,i}},5455(a,o,i){a.exports=i(7056)},7056(a){a.exports=o;function o(i,l){var u=l[0]-i[0],s=l[1]-i[1],f=l[2]-i[2];return Math.sqrt(u*u+s*s+f*f)}},4008(a,o,i){a.exports=i(6690)},6690(a){a.exports=o;function o(i,l,u){return i[0]=l[0]/u[0],i[1]=l[1]/u[1],i[2]=l[2]/u[2],i}},244(a){a.exports=o;function o(i,l){return i[0]*l[0]+i[1]*l[1]+i[2]*l[2]}},2613(a){a.exports=1e-6},9922(a,o,i){a.exports=u;var l=i(2613);function u(s,f){var c=s[0],g=s[1],x=s[2],h=f[0],_=f[1],T=f[2];return Math.abs(c-h)<=l*Math.max(1,Math.abs(c),Math.abs(h))&&Math.abs(g-_)<=l*Math.max(1,Math.abs(g),Math.abs(_))&&Math.abs(x-T)<=l*Math.max(1,Math.abs(x),Math.abs(T))}},9265(a){a.exports=o;function o(i,l){return i[0]===l[0]&&i[1]===l[1]&&i[2]===l[2]}},2681(a){a.exports=o;function o(i,l){return i[0]=Math.floor(l[0]),i[1]=Math.floor(l[1]),i[2]=Math.floor(l[2]),i}},5137(a,o,i){a.exports=u;var l=i(1091)();function u(s,f,c,g,x,h){var _,T;for(f||(f=3),c||(c=0),g?T=Math.min(g*f+c,s.length):T=s.length,_=c;_0&&(c=1/Math.sqrt(c),i[0]=l[0]*c,i[1]=l[1]*c,i[2]=l[2]*c),i}},7636(a){a.exports=o;function o(i,l){l=l||1;var u=Math.random()*2*Math.PI,s=Math.random()*2-1,f=Math.sqrt(1-s*s)*l;return i[0]=Math.cos(u)*f,i[1]=Math.sin(u)*f,i[2]=s*l,i}},6894(a){a.exports=o;function o(i,l,u,s){var f=u[1],c=u[2],g=l[1]-f,x=l[2]-c,h=Math.sin(s),_=Math.cos(s);return i[0]=l[0],i[1]=f+g*_-x*h,i[2]=c+g*h+x*_,i}},109(a){a.exports=o;function o(i,l,u,s){var f=u[0],c=u[2],g=l[0]-f,x=l[2]-c,h=Math.sin(s),_=Math.cos(s);return i[0]=f+x*h+g*_,i[1]=l[1],i[2]=c+x*_-g*h,i}},8692(a){a.exports=o;function o(i,l,u,s){var f=u[0],c=u[1],g=l[0]-f,x=l[1]-c,h=Math.sin(s),_=Math.cos(s);return i[0]=f+g*_-x*h,i[1]=c+g*h+x*_,i[2]=l[2],i}},2447(a){a.exports=o;function o(i,l){return i[0]=Math.round(l[0]),i[1]=Math.round(l[1]),i[2]=Math.round(l[2]),i}},6621(a){a.exports=o;function o(i,l,u){return i[0]=l[0]*u,i[1]=l[1]*u,i[2]=l[2]*u,i}},8489(a){a.exports=o;function o(i,l,u,s){return i[0]=l[0]+u[0]*s,i[1]=l[1]+u[1]*s,i[2]=l[2]+u[2]*s,i}},1463(a){a.exports=o;function o(i,l,u,s){return i[0]=l,i[1]=u,i[2]=s,i}},6141(a,o,i){a.exports=i(2953)},5486(a,o,i){a.exports=i(3066)},2953(a){a.exports=o;function o(i,l){var u=l[0]-i[0],s=l[1]-i[1],f=l[2]-i[2];return u*u+s*s+f*f}},3066(a){a.exports=o;function o(i){var l=i[0],u=i[1],s=i[2];return l*l+u*u+s*s}},2229(a,o,i){a.exports=i(6843)},6843(a){a.exports=o;function o(i,l,u){return i[0]=l[0]-u[0],i[1]=l[1]-u[1],i[2]=l[2]-u[2],i}},492(a){a.exports=o;function o(i,l,u){var s=l[0],f=l[1],c=l[2];return i[0]=s*u[0]+f*u[3]+c*u[6],i[1]=s*u[1]+f*u[4]+c*u[7],i[2]=s*u[2]+f*u[5]+c*u[8],i}},5673(a){a.exports=o;function o(i,l,u){var s=l[0],f=l[1],c=l[2],g=u[3]*s+u[7]*f+u[11]*c+u[15];return g=g||1,i[0]=(u[0]*s+u[4]*f+u[8]*c+u[12])/g,i[1]=(u[1]*s+u[5]*f+u[9]*c+u[13])/g,i[2]=(u[2]*s+u[6]*f+u[10]*c+u[14])/g,i}},264(a){a.exports=o;function o(i,l,u){var s=l[0],f=l[1],c=l[2],g=u[0],x=u[1],h=u[2],_=u[3],T=x*c-h*f,m=h*s-g*c,k=g*f-x*s;return T*=2,m*=2,k*=2,i[0]=s+_*T+x*k-h*m,i[1]=f+_*m+h*T-g*k,i[2]=c+_*k+g*m-x*T,i}},4361(a){a.exports=o;function o(i,l,u){return i[0]=l[0]+u[0],i[1]=l[1]+u[1],i[2]=l[2]+u[2],i[3]=l[3]+u[3],i}},2335(a){a.exports=o;function o(i){var l=new Float32Array(4);return l[0]=i[0],l[1]=i[1],l[2]=i[2],l[3]=i[3],l}},2933(a){a.exports=o;function o(i,l){return i[0]=l[0],i[1]=l[1],i[2]=l[2],i[3]=l[3],i}},7536(a){a.exports=o;function o(){var i=new Float32Array(4);return i[0]=0,i[1]=0,i[2]=0,i[3]=0,i}},4691(a){a.exports=o;function o(i,l){var u=l[0]-i[0],s=l[1]-i[1],f=l[2]-i[2],c=l[3]-i[3];return Math.sqrt(u*u+s*s+f*f+c*c)}},1373(a){a.exports=o;function o(i,l,u){return i[0]=l[0]/u[0],i[1]=l[1]/u[1],i[2]=l[2]/u[2],i[3]=l[3]/u[3],i}},3750(a){a.exports=o;function o(i,l){return i[0]*l[0]+i[1]*l[1]+i[2]*l[2]+i[3]*l[3]}},3390(a){a.exports=o;function o(i,l,u,s){var f=new Float32Array(4);return f[0]=i,f[1]=l,f[2]=u,f[3]=s,f}},9970(a,o,i){a.exports={create:i(7536),clone:i(2335),fromValues:i(3390),copy:i(2933),set:i(4578),add:i(4361),subtract:i(6860),multiply:i(3576),divide:i(1373),min:i(2334),max:i(160),scale:i(9288),scaleAndAdd:i(4844),distance:i(4691),squaredDistance:i(7960),length:i(6808),squaredLength:i(483),negate:i(1498),inverse:i(4494),normalize:i(5177),dot:i(3750),lerp:i(2573),random:i(9131),transformMat4:i(5352),transformQuat:i(4041)}},4494(a){a.exports=o;function o(i,l){return i[0]=1/l[0],i[1]=1/l[1],i[2]=1/l[2],i[3]=1/l[3],i}},6808(a){a.exports=o;function o(i){var l=i[0],u=i[1],s=i[2],f=i[3];return Math.sqrt(l*l+u*u+s*s+f*f)}},2573(a){a.exports=o;function o(i,l,u,s){var f=l[0],c=l[1],g=l[2],x=l[3];return i[0]=f+s*(u[0]-f),i[1]=c+s*(u[1]-c),i[2]=g+s*(u[2]-g),i[3]=x+s*(u[3]-x),i}},160(a){a.exports=o;function o(i,l,u){return i[0]=Math.max(l[0],u[0]),i[1]=Math.max(l[1],u[1]),i[2]=Math.max(l[2],u[2]),i[3]=Math.max(l[3],u[3]),i}},2334(a){a.exports=o;function o(i,l,u){return i[0]=Math.min(l[0],u[0]),i[1]=Math.min(l[1],u[1]),i[2]=Math.min(l[2],u[2]),i[3]=Math.min(l[3],u[3]),i}},3576(a){a.exports=o;function o(i,l,u){return i[0]=l[0]*u[0],i[1]=l[1]*u[1],i[2]=l[2]*u[2],i[3]=l[3]*u[3],i}},1498(a){a.exports=o;function o(i,l){return i[0]=-l[0],i[1]=-l[1],i[2]=-l[2],i[3]=-l[3],i}},5177(a){a.exports=o;function o(i,l){var u=l[0],s=l[1],f=l[2],c=l[3],g=u*u+s*s+f*f+c*c;return g>0&&(g=1/Math.sqrt(g),i[0]=u*g,i[1]=s*g,i[2]=f*g,i[3]=c*g),i}},9131(a,o,i){var l=i(5177),u=i(9288);a.exports=s;function s(f,c){return c=c||1,f[0]=Math.random(),f[1]=Math.random(),f[2]=Math.random(),f[3]=Math.random(),l(f,f),u(f,f,c),f}},9288(a){a.exports=o;function o(i,l,u){return i[0]=l[0]*u,i[1]=l[1]*u,i[2]=l[2]*u,i[3]=l[3]*u,i}},4844(a){a.exports=o;function o(i,l,u,s){return i[0]=l[0]+u[0]*s,i[1]=l[1]+u[1]*s,i[2]=l[2]+u[2]*s,i[3]=l[3]+u[3]*s,i}},4578(a){a.exports=o;function o(i,l,u,s,f){return i[0]=l,i[1]=u,i[2]=s,i[3]=f,i}},7960(a){a.exports=o;function o(i,l){var u=l[0]-i[0],s=l[1]-i[1],f=l[2]-i[2],c=l[3]-i[3];return u*u+s*s+f*f+c*c}},483(a){a.exports=o;function o(i){var l=i[0],u=i[1],s=i[2],f=i[3];return l*l+u*u+s*s+f*f}},6860(a){a.exports=o;function o(i,l,u){return i[0]=l[0]-u[0],i[1]=l[1]-u[1],i[2]=l[2]-u[2],i[3]=l[3]-u[3],i}},5352(a){a.exports=o;function o(i,l,u){var s=l[0],f=l[1],c=l[2],g=l[3];return i[0]=u[0]*s+u[4]*f+u[8]*c+u[12]*g,i[1]=u[1]*s+u[5]*f+u[9]*c+u[13]*g,i[2]=u[2]*s+u[6]*f+u[10]*c+u[14]*g,i[3]=u[3]*s+u[7]*f+u[11]*c+u[15]*g,i}},4041(a){a.exports=o;function o(i,l,u){var s=l[0],f=l[1],c=l[2],g=u[0],x=u[1],h=u[2],_=u[3],T=_*s+x*c-h*f,m=_*f+h*s-g*c,k=_*c+g*f-x*s,S=-g*s-x*f-h*c;return i[0]=T*_+S*-g+m*-h-k*-x,i[1]=m*_+S*-x+k*-g-T*-h,i[2]=k*_+S*-h+T*-x-m*-g,i[3]=l[3],i}},1848(a,o,i){var l=i(4905),u=i(6468);a.exports=s;function s(f){for(var c=Array.isArray(f)?f:l(f),g=0;g0)continue;me=oe.slice(0,1).join("")}return ue(me),j+=me.length,L=L.slice(me.length),L.length}while(!0)}function se(){return/[^a-fA-F0-9]/.test(z)?(ue(L.join("")),F=g,E):(L.push(z),P=z,E+1)}function X(){return z==="."||/[eE]/.test(z)?(L.push(z),F=S,P=z,E+1):z==="x"&&L.length===1&&L[0]==="0"?(F=v,L.push(z),P=z,E+1):/[^\d]/.test(z)?(ue(L.join("")),F=g,E):(L.push(z),P=z,E+1)}function K(){return z==="f"&&(L.push(z),P=z,E+=1),/[eE]/.test(z)||(z==="-"||z==="+")&&/[eE]/.test(P)?(L.push(z),P=z,E+1):/[^\d]/.test(z)?(ue(L.join("")),F=g,E):(L.push(z),P=z,E+1)}function ye(){if(/[^\d\w_]/.test(z)){var oe=L.join("");return te[oe]?F=d:Q[oe]?F=M:F=b,ue(L.join("")),F=g,E}return L.push(z),P=z,E+1}}},3508(a,o,i){var l=i(6852);l=l.slice().filter(function(u){return!/^(gl\_|texture)/.test(u)}),a.exports=l.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"])},6852(a){a.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"]},7932(a,o,i){var l=i(620);a.exports=l.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"])},620(a){a.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"]},7827(a){a.exports=["<<=",">>=","++","--","<<",">>","<=",">=","==","!=","&&","||","+=","-=","*=","/=","%=","&=","^^","^=","|=","(",")","[","]",".","!","~","*","/","%","+","-","<",">","&","^","|","?",":","=",",",";","{","}"]},4905(a,o,i){var l=i(5874);a.exports=u;function u(s,f){var c=l(f),g=[];return g=g.concat(c(s)),g=g.concat(c(null)),g}},3236(a){a.exports=function(o){typeof o=="string"&&(o=[o]);for(var i=[].slice.call(arguments,1),l=[],u=0;u>1,T=-7,m=u?f-1:0,k=u?-1:1,S=i[l+m];for(m+=k,c=S&(1<<-T)-1,S>>=-T,T+=x;T>0;c=c*256+i[l+m],m+=k,T-=8);for(g=c&(1<<-T)-1,c>>=-T,T+=s;T>0;g=g*256+i[l+m],m+=k,T-=8);if(c===0)c=1-_;else{if(c===h)return g?NaN:(S?-1:1)*(1/0);g=g+Math.pow(2,s),c=c-_}return(S?-1:1)*g*Math.pow(2,c-s)},o.write=function(i,l,u,s,f,c){var g,x,h,_=c*8-f-1,T=(1<<_)-1,m=T>>1,k=f===23?Math.pow(2,-24)-Math.pow(2,-77):0,S=s?0:c-1,b=s?1:-1,M=l<0||l===0&&1/l<0?1:0;for(l=Math.abs(l),isNaN(l)||l===1/0?(x=isNaN(l)?1:0,g=T):(g=Math.floor(Math.log(l)/Math.LN2),l*(h=Math.pow(2,-g))<1&&(g--,h*=2),g+m>=1?l+=k/h:l+=k*Math.pow(2,1-m),l*h>=2&&(g++,h/=2),g+m>=T?(x=0,g=T):g+m>=1?(x=(l*h-1)*Math.pow(2,f),g=g+m):(x=l*Math.pow(2,m-1)*Math.pow(2,f),g=0));f>=8;i[u+S]=x&255,S+=b,x/=256,f-=8);for(g=g<0;i[u+S]=g&255,S+=b,g/=256,_-=8);i[u+S-b]|=M*128}},8954(a,o,i){"use strict";a.exports=m;var l=i(3250),u=i(6803).Fw;function s(k,S,b){this.vertices=k,this.adjacent=S,this.boundary=b,this.lastVisited=-1}s.prototype.flip=function(){var k=this.vertices[0];this.vertices[0]=this.vertices[1],this.vertices[1]=k;var S=this.adjacent[0];this.adjacent[0]=this.adjacent[1],this.adjacent[1]=S};function f(k,S,b){this.vertices=k,this.cell=S,this.index=b}function c(k,S){return u(k.vertices,S.vertices)}function g(k){return function(){var S=this.tuple;return k.apply(this,S)}}function x(k){var S=l[k+1];return S||(S=l),g(S)}var h=[];function _(k,S,b){this.dimension=k,this.vertices=S,this.simplices=b,this.interior=b.filter(function(w){return!w.boundary}),this.tuple=new Array(k+1);for(var M=0;M<=k;++M)this.tuple[M]=this.vertices[M];var d=h[k];d||(d=h[k]=x(k)),this.orient=d}var T=_.prototype;T.handleBoundaryDegeneracy=function(k,S){var b=this.dimension,M=this.vertices.length-1,d=this.tuple,w=this.vertices,y=[k];for(k.lastVisited=-M;y.length>0;){k=y.pop();for(var v=k.adjacent,A=0;A<=b;++A){var p=v[A];if(!(!p.boundary||p.lastVisited<=-M)){for(var D=p.vertices,E=0;E<=b;++E){var R=D[E];R<0?d[E]=S:d[E]=w[R]}var F=this.orient();if(F>0)return p;p.lastVisited=-M,F===0&&y.push(p)}}}return null},T.walk=function(k,S){var b=this.vertices.length-1,M=this.dimension,d=this.vertices,w=this.tuple,y=S?this.interior.length*Math.random()|0:this.interior.length-1,v=this.interior[y];e:for(;!v.boundary;){for(var A=v.vertices,p=v.adjacent,D=0;D<=M;++D)w[D]=d[A[D]];v.lastVisited=b;for(var D=0;D<=M;++D){var E=p[D];if(!(E.lastVisited>=b)){var R=w[D];w[D]=k;var F=this.orient();if(w[D]=R,F<0){v=E;continue e}else E.boundary?E.lastVisited=-b:E.lastVisited=b}}return}return v},T.addPeaks=function(k,S){var b=this.vertices.length-1,M=this.dimension,d=this.vertices,w=this.tuple,y=this.interior,v=this.simplices,A=[S];S.lastVisited=b,S.vertices[S.vertices.indexOf(-1)]=b,S.boundary=!1,y.push(S);for(var p=[];A.length>0;){var S=A.pop(),D=S.vertices,E=S.adjacent,R=D.indexOf(b);if(!(R<0)){for(var F=0;F<=M;++F)if(F!==R){var z=E[F];if(!(!z.boundary||z.lastVisited>=b)){var P=z.vertices;if(z.lastVisited!==-b){for(var L=0,I=0;I<=M;++I)P[I]<0?(L=I,w[I]=k):w[I]=d[P[I]];var B=this.orient();if(B>0){P[L]=b,z.boundary=!1,y.push(z),A.push(z),z.lastVisited=b;continue}else z.lastVisited=-b}var O=z.adjacent,G=D.slice(),J=E.slice(),j=new s(G,J,!0);v.push(j);var V=O.indexOf(S);if(!(V<0)){O[V]=j,J[R]=z,G[F]=-1,J[F]=S,E[F]=j,j.flip();for(var I=0;I<=M;++I){var q=G[I];if(!(q<0||q===b)){for(var Z=new Array(M-1),re=0,$=0;$<=M;++$){var ae=G[$];ae<0||$===I||(Z[re++]=ae)}p.push(new f(Z,j,I))}}}}}}}p.sort(c);for(var F=0;F+1=0?y[A++]=v[D]:p=D&1;if(p===(k&1)){var E=y[0];y[0]=y[1],y[1]=E}S.push(y)}}return S};function m(k,S){var b=k.length;if(b===0)throw new Error("Must have at least d+1 points");var M=k[0].length;if(b<=M)throw new Error("Must input at least d+1 points");var d=k.slice(0,M+1),w=l.apply(void 0,d);if(w===0)throw new Error("Input not in general position");for(var y=new Array(M+1),v=0;v<=M;++v)y[v]=v;w<0&&(y[0]=1,y[1]=0);for(var A=new s(y,new Array(M+1),!1),p=A.adjacent,D=new Array(M+2),v=0;v<=M;++v){for(var E=y.slice(),R=0;R<=M;++R)R===v&&(E[R]=-1);var F=E[0];E[0]=E[1],E[1]=F;var z=new s(E,new Array(M+1),!0);p[v]=z,D[v]=z}D[M+1]=A;for(var v=0;v<=M;++v)for(var E=p[v].vertices,P=p[v].adjacent,R=0;R<=M;++R){var L=E[R];if(L<0){P[R]=A;continue}for(var I=0;I<=M;++I)p[I].vertices.indexOf(L)<0&&(P[R]=p[I])}for(var B=new _(M,d,D),O=!!S,v=M+1;v3*(D+1)?_(this,p):this.left.insert(p):this.left=w([p]);else if(p[0]>this.mid)this.right?4*(this.right.count+1)>3*(D+1)?_(this,p):this.right.insert(p):this.right=w([p]);else{var E=l.ge(this.leftPoints,p,M),R=l.ge(this.rightPoints,p,d);this.leftPoints.splice(E,0,p),this.rightPoints.splice(R,0,p)}},g.remove=function(p){var D=this.count-this.leftPoints;if(p[1]3*(D-1))return T(this,p);var R=this.left.remove(p);return R===f?(this.left=null,this.count-=1,s):(R===s&&(this.count-=1),R)}else if(p[0]>this.mid){if(!this.right)return u;var F=this.left?this.left.count:0;if(4*F>3*(D-1))return T(this,p);var R=this.right.remove(p);return R===f?(this.right=null,this.count-=1,s):(R===s&&(this.count-=1),R)}else{if(this.count===1)return this.leftPoints[0]===p?f:u;if(this.leftPoints.length===1&&this.leftPoints[0]===p){if(this.left&&this.right){for(var z=this,P=this.left;P.right;)z=P,P=P.right;if(z===this)P.right=this.right;else{var L=this.left,R=this.right;z.count-=P.count,z.right=P.left,P.left=L,P.right=R}x(this,P),this.count=(this.left?this.left.count:0)+(this.right?this.right.count:0)+this.leftPoints.length}else this.left?x(this,this.left):x(this,this.right);return s}for(var L=l.ge(this.leftPoints,p,M);L=0&&p[R][1]>=D;--R){var F=E(p[R]);if(F)return F}}function S(p,D){for(var E=0;Ethis.mid){if(this.right){var E=this.right.queryPoint(p,D);if(E)return E}return k(this.rightPoints,p,D)}else return S(this.leftPoints,D)},g.queryInterval=function(p,D,E){if(pthis.mid&&this.right){var R=this.right.queryInterval(p,D,E);if(R)return R}return Dthis.mid?k(this.rightPoints,p,E):S(this.leftPoints,E)};function b(p,D){return p-D}function M(p,D){var E=p[0]-D[0];return E||p[1]-D[1]}function d(p,D){var E=p[1]-D[1];return E||p[0]-D[0]}function w(p){if(p.length===0)return null;for(var D=[],E=0;E>1],F=[],z=[],P=[],E=0;E1&&f.indexOf("Macintosh")!==-1&&f.indexOf("Safari")!==-1&&(c=!0),c}},5219(a){"use strict";a.exports=function(o){for(var i=o.length,l,u=0;u13)&&l!==32&&l!==133&&l!==160&&l!==5760&&l!==6158&&(l<8192||l>8205)&&l!==8232&&l!==8233&&l!==8239&&l!==8287&&l!==8288&&l!==12288&&l!==65279)return!1;return!0}},395(a){function o(i,l,u){return i*(1-u)+l*u}a.exports=o},2652(a,o,i){var l=i(4335),u=i(6864),s=i(1903),f=i(9921),c=i(7608),g=i(5665),x={length:i(1387),normalize:i(3536),dot:i(244),cross:i(5911)},h=u(),_=u(),T=[0,0,0,0],m=[[0,0,0],[0,0,0],[0,0,0]],k=[0,0,0];a.exports=function(w,y,v,A,p,D){if(y||(y=[0,0,0]),v||(v=[0,0,0]),A||(A=[0,0,0]),p||(p=[0,0,0,1]),D||(D=[0,0,0,1]),!l(h,w)||(s(_,h),_[3]=0,_[7]=0,_[11]=0,_[15]=1,Math.abs(f(_)<1e-8)))return!1;var E=h[3],R=h[7],F=h[11],z=h[12],P=h[13],L=h[14],I=h[15];if(E!==0||R!==0||F!==0){T[0]=E,T[1]=R,T[2]=F,T[3]=I;var B=c(_,_);if(!B)return!1;g(_,_),S(p,T,_)}else p[0]=p[1]=p[2]=0,p[3]=1;if(y[0]=z,y[1]=P,y[2]=L,b(m,h),v[0]=x.length(m[0]),x.normalize(m[0],m[0]),A[0]=x.dot(m[0],m[1]),M(m[1],m[1],m[0],1,-A[0]),v[1]=x.length(m[1]),x.normalize(m[1],m[1]),A[0]/=v[1],A[1]=x.dot(m[0],m[2]),M(m[2],m[2],m[0],1,-A[1]),A[2]=x.dot(m[1],m[2]),M(m[2],m[2],m[1],1,-A[2]),v[2]=x.length(m[2]),x.normalize(m[2],m[2]),A[1]/=v[2],A[2]/=v[2],x.cross(k,m[1],m[2]),x.dot(m[0],k)<0)for(var O=0;O<3;O++)v[O]*=-1,m[O][0]*=-1,m[O][1]*=-1,m[O][2]*=-1;return D[0]=.5*Math.sqrt(Math.max(1+m[0][0]-m[1][1]-m[2][2],0)),D[1]=.5*Math.sqrt(Math.max(1-m[0][0]+m[1][1]-m[2][2],0)),D[2]=.5*Math.sqrt(Math.max(1-m[0][0]-m[1][1]+m[2][2],0)),D[3]=.5*Math.sqrt(Math.max(1+m[0][0]+m[1][1]+m[2][2],0)),m[2][1]>m[1][2]&&(D[0]=-D[0]),m[0][2]>m[2][0]&&(D[1]=-D[1]),m[1][0]>m[0][1]&&(D[2]=-D[2]),!0};function S(d,w,y){var v=w[0],A=w[1],p=w[2],D=w[3];return d[0]=y[0]*v+y[4]*A+y[8]*p+y[12]*D,d[1]=y[1]*v+y[5]*A+y[9]*p+y[13]*D,d[2]=y[2]*v+y[6]*A+y[10]*p+y[14]*D,d[3]=y[3]*v+y[7]*A+y[11]*p+y[15]*D,d}function b(d,w){d[0][0]=w[0],d[0][1]=w[1],d[0][2]=w[2],d[1][0]=w[4],d[1][1]=w[5],d[1][2]=w[6],d[2][0]=w[8],d[2][1]=w[9],d[2][2]=w[10]}function M(d,w,y,v,A){d[0]=w[0]*v+y[0]*A,d[1]=w[1]*v+y[1]*A,d[2]=w[2]*v+y[2]*A}},4335(a){a.exports=function(i,l){var u=l[15];if(u===0)return!1;for(var s=1/u,f=0;f<16;f++)i[f]=l[f]*s;return!0}},7442(a,o,i){var l=i(6658),u=i(7182),s=i(2652),f=i(9921),c=i(8648),g=T(),x=T(),h=T();a.exports=_;function _(S,b,M,d){if(f(b)===0||f(M)===0)return!1;var w=s(b,g.translate,g.scale,g.skew,g.perspective,g.quaternion),y=s(M,x.translate,x.scale,x.skew,x.perspective,x.quaternion);return!w||!y?!1:(l(h.translate,g.translate,x.translate,d),l(h.skew,g.skew,x.skew,d),l(h.scale,g.scale,x.scale,d),l(h.perspective,g.perspective,x.perspective,d),c(h.quaternion,g.quaternion,x.quaternion,d),u(S,h.translate,h.scale,h.skew,h.perspective,h.quaternion),!0)}function T(){return{translate:m(),scale:m(1),skew:m(),perspective:k(),quaternion:k()}}function m(S){return[S||0,S||0,S||0]}function k(){return[0,0,0,1]}},7182(a,o,i){var l={identity:i(7894),translate:i(7656),multiply:i(6760),create:i(6864),scale:i(2504),fromRotationTranslation:i(6743)},u=l.create(),s=l.create();a.exports=function(c,g,x,h,_,T){return l.identity(c),l.fromRotationTranslation(c,T,g),c[3]=_[0],c[7]=_[1],c[11]=_[2],c[15]=_[3],l.identity(s),h[2]!==0&&(s[9]=h[2],l.multiply(c,c,s)),h[1]!==0&&(s[9]=0,s[8]=h[1],l.multiply(c,c,s)),h[0]!==0&&(s[8]=0,s[4]=h[0],l.multiply(c,c,s)),l.scale(c,c,x),c}},1811(a,o,i){"use strict";var l=i(2478),u=i(7442),s=i(7608),f=i(5567),c=i(2408),g=i(7089),x=i(6582),h=i(7656),_=i(2504),T=i(3536),m=[0,0,0];a.exports=M;function k(d){this._components=d.slice(),this._time=[0],this.prevMatrix=d.slice(),this.nextMatrix=d.slice(),this.computedMatrix=d.slice(),this.computedInverse=d.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 S=k.prototype;S.recalcMatrix=function(d){var w=this._time,y=l.le(w,d),v=this.computedMatrix;if(!(y<0)){var A=this._components;if(y===w.length-1)for(var p=16*y,D=0;D<16;++D)v[D]=A[p++];else{for(var E=w[y+1]-w[y],p=16*y,R=this.prevMatrix,F=!0,D=0;D<16;++D)R[D]=A[p++];for(var z=this.nextMatrix,D=0;D<16;++D)z[D]=A[p++],F=F&&R[D]===z[D];if(E<1e-6||F)for(var D=0;D<16;++D)v[D]=R[D];else u(v,R,z,(d-w[y])/E)}var P=this.computedUp;P[0]=v[1],P[1]=v[5],P[2]=v[9],T(P,P);var L=this.computedInverse;s(L,v);var I=this.computedEye,B=L[15];I[0]=L[12]/B,I[1]=L[13]/B,I[2]=L[14]/B;for(var O=this.computedCenter,G=Math.exp(this.computedRadius[0]),D=0;D<3;++D)O[D]=I[D]-v[2+4*D]*G}},S.idle=function(d){if(!(d1&&l(s[x[m-2]],s[x[m-1]],T)<=0;)m-=1,x.pop();for(x.push(_),m=h.length;m>1&&l(s[h[m-2]],s[h[m-1]],T)>=0;)m-=1,h.pop();h.push(_)}for(var k=new Array(h.length+x.length-2),S=0,c=0,b=x.length;c0;--M)k[S++]=h[M];return k}},351(a,o,i){"use strict";a.exports=u;var l=i(4687);function u(s,f){f||(f=s,s=window);var c=0,g=0,x=0,h={shift:!1,alt:!1,control:!1,meta:!1},_=!1;function T(p){var D=!1;return"altKey"in p&&(D=D||p.altKey!==h.alt,h.alt=!!p.altKey),"shiftKey"in p&&(D=D||p.shiftKey!==h.shift,h.shift=!!p.shiftKey),"ctrlKey"in p&&(D=D||p.ctrlKey!==h.control,h.control=!!p.ctrlKey),"metaKey"in p&&(D=D||p.metaKey!==h.meta,h.meta=!!p.metaKey),D}function m(p,D){var E=l.x(D),R=l.y(D);"buttons"in D&&(p=D.buttons|0),(p!==c||E!==g||R!==x||T(D))&&(c=p|0,g=E||0,x=R||0,f&&f(c,g,x,h))}function k(p){m(0,p)}function S(){(c||g||x||h.shift||h.alt||h.meta||h.control)&&(g=x=0,c=0,h.shift=h.alt=h.control=h.meta=!1,f&&f(0,0,0,h))}function b(p){T(p)&&f&&f(c,g,x,h)}function M(p){l.buttons(p)===0?m(0,p):m(c,p)}function d(p){m(c|l.buttons(p),p)}function w(p){m(c&~l.buttons(p),p)}function y(){_||(_=!0,s.addEventListener("mousemove",M),s.addEventListener("mousedown",d),s.addEventListener("mouseup",w),s.addEventListener("mouseleave",k),s.addEventListener("mouseenter",k),s.addEventListener("mouseout",k),s.addEventListener("mouseover",k),s.addEventListener("blur",S),s.addEventListener("keyup",b),s.addEventListener("keydown",b),s.addEventListener("keypress",b),s!==window&&(window.addEventListener("blur",S),window.addEventListener("keyup",b),window.addEventListener("keydown",b),window.addEventListener("keypress",b)))}function v(){_&&(_=!1,s.removeEventListener("mousemove",M),s.removeEventListener("mousedown",d),s.removeEventListener("mouseup",w),s.removeEventListener("mouseleave",k),s.removeEventListener("mouseenter",k),s.removeEventListener("mouseout",k),s.removeEventListener("mouseover",k),s.removeEventListener("blur",S),s.removeEventListener("keyup",b),s.removeEventListener("keydown",b),s.removeEventListener("keypress",b),s!==window&&(window.removeEventListener("blur",S),window.removeEventListener("keyup",b),window.removeEventListener("keydown",b),window.removeEventListener("keypress",b)))}y();var A={element:s};return Object.defineProperties(A,{enabled:{get:function(){return _},set:function(p){p?y():v()},enumerable:!0},buttons:{get:function(){return c},enumerable:!0},x:{get:function(){return g},enumerable:!0},y:{get:function(){return x},enumerable:!0},mods:{get:function(){return h},enumerable:!0}}),A}},24(a){var o={left:0,top:0};a.exports=i;function i(u,s,f){s=s||u.currentTarget||u.srcElement,Array.isArray(f)||(f=[0,0]);var c=u.clientX||0,g=u.clientY||0,x=l(s);return f[0]=c-x.left,f[1]=g-x.top,f}function l(u){return u===window||u===document||u===document.body?o:u.getBoundingClientRect()}},4687(a,o){"use strict";function i(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(J=1,q[re++]=h(y[D],S,b,M),D+=B,d>0)for(G=1,E=y[D],$=q[re]=h(E,S,b,M),te=q[re+ae],ie=q[re+ue],Te=q[re+fe],($!==te||$!==ie||$!==Te)&&(F=y[D+R],P=y[D+z],I=y[D+L],g(G,J,E,F,P,I,$,te,ie,Te,S,b,M),ke=Z[re]=j++),re+=1,D+=B,G=2;G0)for(G=1,E=y[D],$=q[re]=h(E,S,b,M),te=q[re+ae],ie=q[re+ue],Te=q[re+fe],($!==te||$!==ie||$!==Te)&&(F=y[D+R],P=y[D+z],I=y[D+L],g(G,J,E,F,P,I,$,te,ie,Te,S,b,M),ke=Z[re]=j++,Te!==ie&&x(Z[re+ue],ke,P,I,ie,Te,S,b,M)),re+=1,D+=B,G=2;G0){if(G=1,q[re++]=h(y[D],S,b,M),D+=B,w>0)for(J=1,E=y[D],$=q[re]=h(E,S,b,M),ie=q[re+ue],te=q[re+ae],Te=q[re+fe],($!==ie||$!==te||$!==Te)&&(F=y[D+R],P=y[D+z],I=y[D+L],g(G,J,E,F,P,I,$,ie,te,Te,S,b,M),ke=Z[re]=j++),re+=1,D+=B,J=2;J0)for(J=1,E=y[D],$=q[re]=h(E,S,b,M),ie=q[re+ue],te=q[re+ae],Te=q[re+fe],($!==ie||$!==te||$!==Te)&&(F=y[D+R],P=y[D+z],I=y[D+L],g(G,J,E,F,P,I,$,ie,te,Te,S,b,M),ke=Z[re]=j++,Te!==ie&&x(Z[re+ue],ke,I,F,Te,ie,S,b,M)),re+=1,D+=B,J=2;J 0"),typeof c.vertex!="function"&&g("Must specify vertex creation function"),typeof c.cell!="function"&&g("Must specify cell creation function"),typeof c.phase!="function"&&g("Must specify phase function");for(var T=c.getters||[],m=new Array(h),k=0;k=0?m[k]=!0:m[k]=!1;return s(c.vertex,c.cell,c.phase,_,x,m)}},6199(a,o,i){"use strict";var l=i(1338),u={zero:function(M,d,w,y){var v=M[0],A=w[0];y|=0;var p=0,D=A;for(p=0;p2&&p[1]>2&&y(A.pick(-1,-1).lo(1,1).hi(p[0]-2,p[1]-2),v.pick(-1,-1,0).lo(1,1).hi(p[0]-2,p[1]-2),v.pick(-1,-1,1).lo(1,1).hi(p[0]-2,p[1]-2)),p[1]>2&&(w(A.pick(0,-1).lo(1).hi(p[1]-2),v.pick(0,-1,1).lo(1).hi(p[1]-2)),d(v.pick(0,-1,0).lo(1).hi(p[1]-2))),p[1]>2&&(w(A.pick(p[0]-1,-1).lo(1).hi(p[1]-2),v.pick(p[0]-1,-1,1).lo(1).hi(p[1]-2)),d(v.pick(p[0]-1,-1,0).lo(1).hi(p[1]-2))),p[0]>2&&(w(A.pick(-1,0).lo(1).hi(p[0]-2),v.pick(-1,0,0).lo(1).hi(p[0]-2)),d(v.pick(-1,0,1).lo(1).hi(p[0]-2))),p[0]>2&&(w(A.pick(-1,p[1]-1).lo(1).hi(p[0]-2),v.pick(-1,p[1]-1,0).lo(1).hi(p[0]-2)),d(v.pick(-1,p[1]-1,1).lo(1).hi(p[0]-2))),v.set(0,0,0,0),v.set(0,0,1,0),v.set(p[0]-1,0,0,0),v.set(p[0]-1,0,1,0),v.set(0,p[1]-1,0,0),v.set(0,p[1]-1,1,0),v.set(p[0]-1,p[1]-1,0,0),v.set(p[0]-1,p[1]-1,1,0),v}}function b(M){var d=M.join(),p=h[d];if(p)return p;for(var w=M.length,y=[T,m],v=1;v<=w;++v)y.push(k(v));var A=S,p=A.apply(void 0,y);return h[d]=p,p}a.exports=function(d,w,y){if(Array.isArray(y)||(typeof y=="string"?y=l(w.dimension,y):y=l(w.dimension,"clamp")),w.size===0)return d;if(w.dimension===0)return d.set(0),d;var v=b(y);return v(d,w)}},4317(a){"use strict";function o(f,c){var g=Math.floor(c),x=c-g,h=0<=g&&g0;){P<64?(d=P,P=0):(d=64,P-=64);for(var L=h[1]|0;L>0;){L<64?(w=L,L=0):(w=64,L-=64),m=F+P*v+L*A,b=z+P*D+L*E;var I=0,B=0,O=0,G=p,J=v-y*p,j=A-d*v,V=R,q=D-y*R,Z=E-d*D;for(O=0;O0;){E<64?(d=E,E=0):(d=64,E-=64);for(var R=h[0]|0;R>0;){R<64?(M=R,R=0):(M=64,R-=64),m=p+E*y+R*w,b=D+E*A+R*v;var F=0,z=0,P=y,L=w-d*y,I=A,B=v-d*A;for(z=0;z0;){z<64?(w=z,z=0):(w=64,z-=64);for(var P=h[0]|0;P>0;){P<64?(M=P,P=0):(M=64,P-=64);for(var L=h[1]|0;L>0;){L<64?(d=L,L=0):(d=64,L-=64),m=R+z*A+P*y+L*v,b=F+z*E+P*p+L*D;var I=0,B=0,O=0,G=A,J=y-w*A,j=v-M*y,V=E,q=p-w*E,Z=D-M*p;for(O=0;Ok;){I=0,B=F-d;r:for(P=0;PG)break r;B+=p,I+=D}for(I=F,B=F-d,P=0;P>1,L=P-R,I=P+R,B=F,O=L,G=P,J=I,j=z,V=S+1,q=b-1,Z=!0,re,$,ae,Q,te,ue,ee,ie,fe,we=0,Te=0,ke=0,ge,Ee,Le,se,X,K,ye,oe,de,pe,me,Se,ve,he,be,Ae,Re=A,Pe=T(Re),Ye=T(Re);Ee=w*B,Le=w*O,Ae=d;e:for(ge=0;ge0){$=B,B=O,O=$;break e}if(ke<0)break e;Ae+=D}Ee=w*J,Le=w*j,Ae=d;e:for(ge=0;ge0){$=J,J=j,j=$;break e}if(ke<0)break e;Ae+=D}Ee=w*B,Le=w*G,Ae=d;e:for(ge=0;ge0){$=B,B=G,G=$;break e}if(ke<0)break e;Ae+=D}Ee=w*O,Le=w*G,Ae=d;e:for(ge=0;ge0){$=O,O=G,G=$;break e}if(ke<0)break e;Ae+=D}Ee=w*B,Le=w*J,Ae=d;e:for(ge=0;ge0){$=B,B=J,J=$;break e}if(ke<0)break e;Ae+=D}Ee=w*G,Le=w*J,Ae=d;e:for(ge=0;ge0){$=G,G=J,J=$;break e}if(ke<0)break e;Ae+=D}Ee=w*O,Le=w*j,Ae=d;e:for(ge=0;ge0){$=O,O=j,j=$;break e}if(ke<0)break e;Ae+=D}Ee=w*O,Le=w*G,Ae=d;e:for(ge=0;ge0){$=O,O=G,G=$;break e}if(ke<0)break e;Ae+=D}Ee=w*J,Le=w*j,Ae=d;e:for(ge=0;ge0){$=J,J=j,j=$;break e}if(ke<0)break e;Ae+=D}for(Ee=w*B,Le=w*O,se=w*G,X=w*J,K=w*j,ye=w*F,oe=w*P,de=w*z,be=0,Ae=d,ge=0;ge0)q--;else if(ke<0){for(Ee=w*ue,Le=w*V,se=w*q,Ae=d,ge=0;ge0)for(;;){ee=d+q*w,be=0;e:for(ge=0;ge0){if(--qz){e:for(;;){for(ee=d+V*w,be=0,Ae=d,ge=0;ge1&&k?b(m,k[0],k[1]):b(m)}var x={"uint32,1,0":function(_,T){return function(m){var k=m.data,S=m.offset|0,b=m.shape,M=m.stride,d=M[0]|0,w=b[0]|0,y=M[1]|0,v=b[1]|0,A=y,p=y,D=1;w<=32?_(0,w-1,k,S,d,y,w,v,A,p,D):T(0,w-1,k,S,d,y,w,v,A,p,D)}}};function h(_,T){var m=[T,_].join(","),k=x[m],S=f(_,T),b=g(_,T,S);return k(S,b)}a.exports=h},446(a,o,i){"use strict";var l=i(7640),u={};function s(f){var c=f.order,g=f.dtype,x=[c,g],h=x.join(":"),_=u[h];return _||(u[h]=_=l(c,g)),_(f),f}a.exports=s},9618(a,o,i){var l=i(7163),u=typeof Float64Array!="undefined";function s(T,m){return T[0]-m[0]}function f(){var T=this.stride,m=new Array(T.length),k;for(k=0;k=0&&(y=d|0,w+=A*y,v-=y),new S(this.data,v,A,w)},b.step=function(d){var w=this.shape[0],y=this.stride[0],v=this.offset,A=0,p=Math.ceil;return typeof d=="number"&&(A=d|0,A<0?(v+=y*(w-1),w=p(-w/A)):w=p(w/A),y*=A),new S(this.data,w,y,v)},b.transpose=function(d){d=d===void 0?0:d|0;var w=this.shape,y=this.stride;return new S(this.data,w[d],y[d],this.offset)},b.pick=function(d){var w=[],y=[],v=this.offset;typeof d=="number"&&d>=0?v=v+this.stride[0]*d|0:(w.push(this.shape[0]),y.push(this.stride[0]));var A=m[w.length+1];return A(this.data,w,y,v)},function(d,w,y,v){return new S(d,w[0],y[0],v)}},2:function(T,m,k){function S(M,d,w,y,v,A){this.data=M,this.shape=[d,w],this.stride=[y,v],this.offset=A|0}var b=S.prototype;return b.dtype=T,b.dimension=2,Object.defineProperty(b,"size",{get:function(){return this.shape[0]*this.shape[1]}}),Object.defineProperty(b,"order",{get:function(){return Math.abs(this.stride[0])>Math.abs(this.stride[1])?[1,0]:[0,1]}}),b.set=function(d,w,y){return T==="generic"?this.data.set(this.offset+this.stride[0]*d+this.stride[1]*w,y):this.data[this.offset+this.stride[0]*d+this.stride[1]*w]=y},b.get=function(d,w){return T==="generic"?this.data.get(this.offset+this.stride[0]*d+this.stride[1]*w):this.data[this.offset+this.stride[0]*d+this.stride[1]*w]},b.index=function(d,w){return this.offset+this.stride[0]*d+this.stride[1]*w},b.hi=function(d,w){return new S(this.data,typeof d!="number"||d<0?this.shape[0]:d|0,typeof w!="number"||w<0?this.shape[1]:w|0,this.stride[0],this.stride[1],this.offset)},b.lo=function(d,w){var y=this.offset,v=0,A=this.shape[0],p=this.shape[1],D=this.stride[0],E=this.stride[1];return typeof d=="number"&&d>=0&&(v=d|0,y+=D*v,A-=v),typeof w=="number"&&w>=0&&(v=w|0,y+=E*v,p-=v),new S(this.data,A,p,D,E,y)},b.step=function(d,w){var y=this.shape[0],v=this.shape[1],A=this.stride[0],p=this.stride[1],D=this.offset,E=0,R=Math.ceil;return typeof d=="number"&&(E=d|0,E<0?(D+=A*(y-1),y=R(-y/E)):y=R(y/E),A*=E),typeof w=="number"&&(E=w|0,E<0?(D+=p*(v-1),v=R(-v/E)):v=R(v/E),p*=E),new S(this.data,y,v,A,p,D)},b.transpose=function(d,w){d=d===void 0?0:d|0,w=w===void 0?1:w|0;var y=this.shape,v=this.stride;return new S(this.data,y[d],y[w],v[d],v[w],this.offset)},b.pick=function(d,w){var y=[],v=[],A=this.offset;typeof d=="number"&&d>=0?A=A+this.stride[0]*d|0:(y.push(this.shape[0]),v.push(this.stride[0])),typeof w=="number"&&w>=0?A=A+this.stride[1]*w|0:(y.push(this.shape[1]),v.push(this.stride[1]));var p=m[y.length+1];return p(this.data,y,v,A)},function(d,w,y,v){return new S(d,w[0],w[1],y[0],y[1],v)}},3:function(T,m,k){function S(M,d,w,y,v,A,p,D){this.data=M,this.shape=[d,w,y],this.stride=[v,A,p],this.offset=D|0}var b=S.prototype;return b.dtype=T,b.dimension=3,Object.defineProperty(b,"size",{get:function(){return this.shape[0]*this.shape[1]*this.shape[2]}}),Object.defineProperty(b,"order",{get:function(){var d=Math.abs(this.stride[0]),w=Math.abs(this.stride[1]),y=Math.abs(this.stride[2]);return d>w?w>y?[2,1,0]:d>y?[1,2,0]:[1,0,2]:d>y?[2,0,1]:y>w?[0,1,2]:[0,2,1]}}),b.set=function(d,w,y,v){return T==="generic"?this.data.set(this.offset+this.stride[0]*d+this.stride[1]*w+this.stride[2]*y,v):this.data[this.offset+this.stride[0]*d+this.stride[1]*w+this.stride[2]*y]=v},b.get=function(d,w,y){return T==="generic"?this.data.get(this.offset+this.stride[0]*d+this.stride[1]*w+this.stride[2]*y):this.data[this.offset+this.stride[0]*d+this.stride[1]*w+this.stride[2]*y]},b.index=function(d,w,y){return this.offset+this.stride[0]*d+this.stride[1]*w+this.stride[2]*y},b.hi=function(d,w,y){return new S(this.data,typeof d!="number"||d<0?this.shape[0]:d|0,typeof w!="number"||w<0?this.shape[1]:w|0,typeof y!="number"||y<0?this.shape[2]:y|0,this.stride[0],this.stride[1],this.stride[2],this.offset)},b.lo=function(d,w,y){var v=this.offset,A=0,p=this.shape[0],D=this.shape[1],E=this.shape[2],R=this.stride[0],F=this.stride[1],z=this.stride[2];return typeof d=="number"&&d>=0&&(A=d|0,v+=R*A,p-=A),typeof w=="number"&&w>=0&&(A=w|0,v+=F*A,D-=A),typeof y=="number"&&y>=0&&(A=y|0,v+=z*A,E-=A),new S(this.data,p,D,E,R,F,z,v)},b.step=function(d,w,y){var v=this.shape[0],A=this.shape[1],p=this.shape[2],D=this.stride[0],E=this.stride[1],R=this.stride[2],F=this.offset,z=0,P=Math.ceil;return typeof d=="number"&&(z=d|0,z<0?(F+=D*(v-1),v=P(-v/z)):v=P(v/z),D*=z),typeof w=="number"&&(z=w|0,z<0?(F+=E*(A-1),A=P(-A/z)):A=P(A/z),E*=z),typeof y=="number"&&(z=y|0,z<0?(F+=R*(p-1),p=P(-p/z)):p=P(p/z),R*=z),new S(this.data,v,A,p,D,E,R,F)},b.transpose=function(d,w,y){d=d===void 0?0:d|0,w=w===void 0?1:w|0,y=y===void 0?2:y|0;var v=this.shape,A=this.stride;return new S(this.data,v[d],v[w],v[y],A[d],A[w],A[y],this.offset)},b.pick=function(d,w,y){var v=[],A=[],p=this.offset;typeof d=="number"&&d>=0?p=p+this.stride[0]*d|0:(v.push(this.shape[0]),A.push(this.stride[0])),typeof w=="number"&&w>=0?p=p+this.stride[1]*w|0:(v.push(this.shape[1]),A.push(this.stride[1])),typeof y=="number"&&y>=0?p=p+this.stride[2]*y|0:(v.push(this.shape[2]),A.push(this.stride[2]));var D=m[v.length+1];return D(this.data,v,A,p)},function(d,w,y,v){return new S(d,w[0],w[1],w[2],y[0],y[1],y[2],v)}},4:function(T,m,k){function S(M,d,w,y,v,A,p,D,E,R){this.data=M,this.shape=[d,w,y,v],this.stride=[A,p,D,E],this.offset=R|0}var b=S.prototype;return b.dtype=T,b.dimension=4,Object.defineProperty(b,"size",{get:function(){return this.shape[0]*this.shape[1]*this.shape[2]*this.shape[3]}}),Object.defineProperty(b,"order",{get:k}),b.set=function(d,w,y,v,A){return T==="generic"?this.data.set(this.offset+this.stride[0]*d+this.stride[1]*w+this.stride[2]*y+this.stride[3]*v,A):this.data[this.offset+this.stride[0]*d+this.stride[1]*w+this.stride[2]*y+this.stride[3]*v]=A},b.get=function(d,w,y,v){return T==="generic"?this.data.get(this.offset+this.stride[0]*d+this.stride[1]*w+this.stride[2]*y+this.stride[3]*v):this.data[this.offset+this.stride[0]*d+this.stride[1]*w+this.stride[2]*y+this.stride[3]*v]},b.index=function(d,w,y,v){return this.offset+this.stride[0]*d+this.stride[1]*w+this.stride[2]*y+this.stride[3]*v},b.hi=function(d,w,y,v){return new S(this.data,typeof d!="number"||d<0?this.shape[0]:d|0,typeof w!="number"||w<0?this.shape[1]:w|0,typeof y!="number"||y<0?this.shape[2]:y|0,typeof v!="number"||v<0?this.shape[3]:v|0,this.stride[0],this.stride[1],this.stride[2],this.stride[3],this.offset)},b.lo=function(d,w,y,v){var A=this.offset,p=0,D=this.shape[0],E=this.shape[1],R=this.shape[2],F=this.shape[3],z=this.stride[0],P=this.stride[1],L=this.stride[2],I=this.stride[3];return typeof d=="number"&&d>=0&&(p=d|0,A+=z*p,D-=p),typeof w=="number"&&w>=0&&(p=w|0,A+=P*p,E-=p),typeof y=="number"&&y>=0&&(p=y|0,A+=L*p,R-=p),typeof v=="number"&&v>=0&&(p=v|0,A+=I*p,F-=p),new S(this.data,D,E,R,F,z,P,L,I,A)},b.step=function(d,w,y,v){var A=this.shape[0],p=this.shape[1],D=this.shape[2],E=this.shape[3],R=this.stride[0],F=this.stride[1],z=this.stride[2],P=this.stride[3],L=this.offset,I=0,B=Math.ceil;return typeof d=="number"&&(I=d|0,I<0?(L+=R*(A-1),A=B(-A/I)):A=B(A/I),R*=I),typeof w=="number"&&(I=w|0,I<0?(L+=F*(p-1),p=B(-p/I)):p=B(p/I),F*=I),typeof y=="number"&&(I=y|0,I<0?(L+=z*(D-1),D=B(-D/I)):D=B(D/I),z*=I),typeof v=="number"&&(I=v|0,I<0?(L+=P*(E-1),E=B(-E/I)):E=B(E/I),P*=I),new S(this.data,A,p,D,E,R,F,z,P,L)},b.transpose=function(d,w,y,v){d=d===void 0?0:d|0,w=w===void 0?1:w|0,y=y===void 0?2:y|0,v=v===void 0?3:v|0;var A=this.shape,p=this.stride;return new S(this.data,A[d],A[w],A[y],A[v],p[d],p[w],p[y],p[v],this.offset)},b.pick=function(d,w,y,v){var A=[],p=[],D=this.offset;typeof d=="number"&&d>=0?D=D+this.stride[0]*d|0:(A.push(this.shape[0]),p.push(this.stride[0])),typeof w=="number"&&w>=0?D=D+this.stride[1]*w|0:(A.push(this.shape[1]),p.push(this.stride[1])),typeof y=="number"&&y>=0?D=D+this.stride[2]*y|0:(A.push(this.shape[2]),p.push(this.stride[2])),typeof v=="number"&&v>=0?D=D+this.stride[3]*v|0:(A.push(this.shape[3]),p.push(this.stride[3]));var E=m[A.length+1];return E(this.data,A,p,D)},function(d,w,y,v){return new S(d,w[0],w[1],w[2],w[3],y[0],y[1],y[2],y[3],v)}},5:function(m,k,S){function b(d,w,y,v,A,p,D,E,R,F,z,P){this.data=d,this.shape=[w,y,v,A,p],this.stride=[D,E,R,F,z],this.offset=P|0}var M=b.prototype;return M.dtype=m,M.dimension=5,Object.defineProperty(M,"size",{get:function(){return this.shape[0]*this.shape[1]*this.shape[2]*this.shape[3]*this.shape[4]}}),Object.defineProperty(M,"order",{get:S}),M.set=function(w,y,v,A,p,D){return m==="generic"?this.data.set(this.offset+this.stride[0]*w+this.stride[1]*y+this.stride[2]*v+this.stride[3]*A+this.stride[4]*p,D):this.data[this.offset+this.stride[0]*w+this.stride[1]*y+this.stride[2]*v+this.stride[3]*A+this.stride[4]*p]=D},M.get=function(w,y,v,A,p){return m==="generic"?this.data.get(this.offset+this.stride[0]*w+this.stride[1]*y+this.stride[2]*v+this.stride[3]*A+this.stride[4]*p):this.data[this.offset+this.stride[0]*w+this.stride[1]*y+this.stride[2]*v+this.stride[3]*A+this.stride[4]*p]},M.index=function(w,y,v,A,p){return this.offset+this.stride[0]*w+this.stride[1]*y+this.stride[2]*v+this.stride[3]*A+this.stride[4]*p},M.hi=function(w,y,v,A,p){return new b(this.data,typeof w!="number"||w<0?this.shape[0]:w|0,typeof y!="number"||y<0?this.shape[1]:y|0,typeof v!="number"||v<0?this.shape[2]:v|0,typeof A!="number"||A<0?this.shape[3]:A|0,typeof p!="number"||p<0?this.shape[4]:p|0,this.stride[0],this.stride[1],this.stride[2],this.stride[3],this.stride[4],this.offset)},M.lo=function(w,y,v,A,p){var D=this.offset,E=0,R=this.shape[0],F=this.shape[1],z=this.shape[2],P=this.shape[3],L=this.shape[4],I=this.stride[0],B=this.stride[1],O=this.stride[2],G=this.stride[3],J=this.stride[4];return typeof w=="number"&&w>=0&&(E=w|0,D+=I*E,R-=E),typeof y=="number"&&y>=0&&(E=y|0,D+=B*E,F-=E),typeof v=="number"&&v>=0&&(E=v|0,D+=O*E,z-=E),typeof A=="number"&&A>=0&&(E=A|0,D+=G*E,P-=E),typeof p=="number"&&p>=0&&(E=p|0,D+=J*E,L-=E),new b(this.data,R,F,z,P,L,I,B,O,G,J,D)},M.step=function(w,y,v,A,p){var D=this.shape[0],E=this.shape[1],R=this.shape[2],F=this.shape[3],z=this.shape[4],P=this.stride[0],L=this.stride[1],I=this.stride[2],B=this.stride[3],O=this.stride[4],G=this.offset,J=0,j=Math.ceil;return typeof w=="number"&&(J=w|0,J<0?(G+=P*(D-1),D=j(-D/J)):D=j(D/J),P*=J),typeof y=="number"&&(J=y|0,J<0?(G+=L*(E-1),E=j(-E/J)):E=j(E/J),L*=J),typeof v=="number"&&(J=v|0,J<0?(G+=I*(R-1),R=j(-R/J)):R=j(R/J),I*=J),typeof A=="number"&&(J=A|0,J<0?(G+=B*(F-1),F=j(-F/J)):F=j(F/J),B*=J),typeof p=="number"&&(J=p|0,J<0?(G+=O*(z-1),z=j(-z/J)):z=j(z/J),O*=J),new b(this.data,D,E,R,F,z,P,L,I,B,O,G)},M.transpose=function(w,y,v,A,p){w=w===void 0?0:w|0,y=y===void 0?1:y|0,v=v===void 0?2:v|0,A=A===void 0?3:A|0,p=p===void 0?4:p|0;var D=this.shape,E=this.stride;return new b(this.data,D[w],D[y],D[v],D[A],D[p],E[w],E[y],E[v],E[A],E[p],this.offset)},M.pick=function(w,y,v,A,p){var D=[],E=[],R=this.offset;typeof w=="number"&&w>=0?R=R+this.stride[0]*w|0:(D.push(this.shape[0]),E.push(this.stride[0])),typeof y=="number"&&y>=0?R=R+this.stride[1]*y|0:(D.push(this.shape[1]),E.push(this.stride[1])),typeof v=="number"&&v>=0?R=R+this.stride[2]*v|0:(D.push(this.shape[2]),E.push(this.stride[2])),typeof A=="number"&&A>=0?R=R+this.stride[3]*A|0:(D.push(this.shape[3]),E.push(this.stride[3])),typeof p=="number"&&p>=0?R=R+this.stride[4]*p|0:(D.push(this.shape[4]),E.push(this.stride[4]));var F=k[D.length+1];return F(this.data,D,E,R)},function(w,y,v,A){return new b(w,y[0],y[1],y[2],y[3],y[4],v[0],v[1],v[2],v[3],v[4],A)}}};function g(T,m){var k=m===-1?"T":String(m),S=c[k];return m===-1?S(T):m===0?S(T,h[T][0]):S(T,h[T],f)}function x(T){if(l(T))return"buffer";if(u)switch(Object.prototype.toString.call(T)){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(T)?"array":"generic"}var h={generic:[],buffer:[],array:[],float32:[],float64:[],int8:[],int16:[],int32:[],uint8_clamped:[],uint8:[],uint16:[],uint32:[],bigint64:[],biguint64:[]};function _(T,m,k,S){if(T===void 0){var v=h.array[0];return v([])}else typeof T=="number"&&(T=[T]);m===void 0&&(m=[T.length]);var b=m.length;if(k===void 0){k=new Array(b);for(var M=b-1,d=1;M>=0;--M)k[M]=d,d*=m[M]}if(S===void 0){S=0;for(var M=0;M>>0;a.exports=f;function f(c,g){if(isNaN(c)||isNaN(g))return NaN;if(c===g)return c;if(c===0)return g<0?-u:u;var x=l.hi(c),h=l.lo(c);return g>c==c>0?h===s?(x+=1,h=0):h+=1:h===0?(h=s,x-=1):h-=1,l.pack(h,x)}},8406(a,o){var i=1e-6,l=1e-6;o.vertexNormals=function(u,s,f){for(var c=s.length,g=new Array(c),x=f===void 0?i:f,h=0;hx)for(var D=g[m],E=1/Math.sqrt(y*A),p=0;p<3;++p){var R=(p+1)%3,F=(p+2)%3;D[p]+=E*(v[R]*w[F]-v[F]*w[R])}}for(var h=0;hx)for(var E=1/Math.sqrt(z),p=0;p<3;++p)D[p]*=E;else for(var p=0;p<3;++p)D[p]=0}return g},o.faceNormals=function(u,s,f){for(var c=u.length,g=new Array(c),x=f===void 0?l:f,h=0;hx?M=1/Math.sqrt(M):M=0;for(var m=0;m<3;++m)b[m]*=M;g[h]=b}return g}},4081(a){"use strict";a.exports=o;function o(i,l,u,s,f,c,g,x,h,_){var T=l+c+_;if(m>0){var m=Math.sqrt(T+1);i[0]=.5*(g-h)/m,i[1]=.5*(x-s)/m,i[2]=.5*(u-c)/m,i[3]=.5*m}else{var k=Math.max(l,c,_),m=Math.sqrt(2*k-T+1);l>=k?(i[0]=.5*m,i[1]=.5*(f+u)/m,i[2]=.5*(x+s)/m,i[3]=.5*(g-h)/m):c>=k?(i[0]=.5*(u+f)/m,i[1]=.5*m,i[2]=.5*(h+g)/m,i[3]=.5*(x-s)/m):(i[0]=.5*(s+x)/m,i[1]=.5*(g+h)/m,i[2]=.5*m,i[3]=.5*(u-f)/m)}return i}},9977(a,o,i){"use strict";a.exports=m;var l=i(9215),u=i(6582),s=i(7399),f=i(7608),c=i(4081);function g(k,S,b){return Math.sqrt(Math.pow(k,2)+Math.pow(S,2)+Math.pow(b,2))}function x(k,S,b,M){return Math.sqrt(Math.pow(k,2)+Math.pow(S,2)+Math.pow(b,2)+Math.pow(M,2))}function h(k,S){var b=S[0],M=S[1],d=S[2],w=S[3],y=x(b,M,d,w);y>1e-6?(k[0]=b/y,k[1]=M/y,k[2]=d/y,k[3]=w/y):(k[0]=k[1]=k[2]=0,k[3]=1)}function _(k,S,b){this.radius=l([b]),this.center=l(S),this.rotation=l(k),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 T=_.prototype;T.lastT=function(){return Math.max(this.radius.lastT(),this.center.lastT(),this.rotation.lastT())},T.recalcMatrix=function(k){this.radius.curve(k),this.center.curve(k),this.rotation.curve(k);var S=this.computedRotation;h(S,S);var b=this.computedMatrix;s(b,S);var M=this.computedCenter,d=this.computedEye,w=this.computedUp,y=Math.exp(this.computedRadius[0]);d[0]=M[0]+y*b[2],d[1]=M[1]+y*b[6],d[2]=M[2]+y*b[10],w[0]=b[1],w[1]=b[5],w[2]=b[9];for(var v=0;v<3;++v){for(var A=0,p=0;p<3;++p)A+=b[v+4*p]*d[p];b[12+v]=-A}},T.getMatrix=function(k,S){this.recalcMatrix(k);var b=this.computedMatrix;if(S){for(var M=0;M<16;++M)S[M]=b[M];return S}return b},T.idle=function(k){this.center.idle(k),this.radius.idle(k),this.rotation.idle(k)},T.flush=function(k){this.center.flush(k),this.radius.flush(k),this.rotation.flush(k)},T.pan=function(k,S,b,M){S=S||0,b=b||0,M=M||0,this.recalcMatrix(k);var d=this.computedMatrix,w=d[1],y=d[5],v=d[9],A=g(w,y,v);w/=A,y/=A,v/=A;var p=d[0],D=d[4],E=d[8],R=p*w+D*y+E*v;p-=w*R,D-=y*R,E-=v*R;var F=g(p,D,E);p/=F,D/=F,E/=F;var z=d[2],P=d[6],L=d[10],I=z*w+P*y+L*v,B=z*p+P*D+L*E;z-=I*w+B*p,P-=I*y+B*D,L-=I*v+B*E;var O=g(z,P,L);z/=O,P/=O,L/=O;var G=p*S+w*b,J=D*S+y*b,j=E*S+v*b;this.center.move(k,G,J,j);var V=Math.exp(this.computedRadius[0]);V=Math.max(1e-4,V+M),this.radius.set(k,Math.log(V))},T.rotate=function(k,S,b,M){this.recalcMatrix(k),S=S||0,b=b||0;var d=this.computedMatrix,w=d[0],y=d[4],v=d[8],A=d[1],p=d[5],D=d[9],E=d[2],R=d[6],F=d[10],z=S*w+b*A,P=S*y+b*p,L=S*v+b*D,I=-(R*L-F*P),B=-(F*z-E*L),O=-(E*P-R*z),G=Math.sqrt(Math.max(0,1-Math.pow(I,2)-Math.pow(B,2)-Math.pow(O,2))),J=x(I,B,O,G);J>1e-6?(I/=J,B/=J,O/=J,G/=J):(I=B=O=0,G=1);var j=this.computedRotation,V=j[0],q=j[1],Z=j[2],re=j[3],$=V*G+re*I+q*O-Z*B,ae=q*G+re*B+Z*I-V*O,Q=Z*G+re*O+V*B-q*I,te=re*G-V*I-q*B-Z*O;if(M){I=E,B=R,O=F;var ue=Math.sin(M)/g(I,B,O);I*=ue,B*=ue,O*=ue,G=Math.cos(S),$=$*G+te*I+ae*O-Q*B,ae=ae*G+te*B+Q*I-$*O,Q=Q*G+te*O+$*B-ae*I,te=te*G-$*I-ae*B-Q*O}var ee=x($,ae,Q,te);ee>1e-6?($/=ee,ae/=ee,Q/=ee,te/=ee):($=ae=Q=0,te=1),this.rotation.set(k,$,ae,Q,te)},T.lookAt=function(k,S,b,M){this.recalcMatrix(k),b=b||this.computedCenter,S=S||this.computedEye,M=M||this.computedUp;var d=this.computedMatrix;u(d,S,b,M);var w=this.computedRotation;c(w,d[0],d[1],d[2],d[4],d[5],d[6],d[8],d[9],d[10]),h(w,w),this.rotation.set(k,w[0],w[1],w[2],w[3]);for(var y=0,v=0;v<3;++v)y+=Math.pow(b[v]-S[v],2);this.radius.set(k,.5*Math.log(Math.max(y,1e-6))),this.center.set(k,b[0],b[1],b[2])},T.translate=function(k,S,b,M){this.center.move(k,S||0,b||0,M||0)},T.setMatrix=function(k,S){var b=this.computedRotation;c(b,S[0],S[1],S[2],S[4],S[5],S[6],S[8],S[9],S[10]),h(b,b),this.rotation.set(k,b[0],b[1],b[2],b[3]);var M=this.computedMatrix;f(M,S);var d=M[15];if(Math.abs(d)>1e-6){var w=M[12]/d,y=M[13]/d,v=M[14]/d;this.recalcMatrix(k);var A=Math.exp(this.computedRadius[0]);this.center.set(k,w-M[2]*A,y-M[6]*A,v-M[10]*A),this.radius.idle(k)}else this.center.idle(k),this.radius.idle(k)},T.setDistance=function(k,S){S>0&&this.radius.set(k,Math.log(S))},T.setDistanceLimits=function(k,S){k>0?k=Math.log(k):k=-1/0,S>0?S=Math.log(S):S=1/0,S=Math.max(S,k),this.radius.bounds[0][0]=k,this.radius.bounds[1][0]=S},T.getDistanceLimits=function(k){var S=this.radius.bounds;return k?(k[0]=Math.exp(S[0][0]),k[1]=Math.exp(S[1][0]),k):[Math.exp(S[0][0]),Math.exp(S[1][0])]},T.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]}},T.fromJSON=function(k){var S=this.lastT(),b=k.center;b&&this.center.set(S,b[0],b[1],b[2]);var M=k.rotation;M&&this.rotation.set(S,M[0],M[1],M[2],M[3]);var d=k.distance;d&&d>0&&this.radius.set(S,Math.log(d)),this.setDistanceLimits(k.zoomMin,k.zoomMax)};function m(k){k=k||{};var S=k.center||[0,0,0],b=k.rotation||[0,0,0,1],M=k.radius||1;S=[].slice.call(S,0,3),b=[].slice.call(b,0,4),h(b,b);var d=new _(b,S,Math.log(M));return d.setDistanceLimits(k.zoomMin,k.zoomMax),("eye"in k||"up"in k)&&d.lookAt(0,k.eye,k.center,k.up),d}},1371(a,o,i){"use strict";var l=i(3233);a.exports=function(s,f,c){return c=typeof c!="undefined"?c+"":" ",l(c,f)+s}},3202(a){a.exports=function(i,l){l||(l=[0,""]),i=String(i);var u=parseFloat(i,10);return l[0]=u,l[1]=i.match(/[\d.\-\+]*\s*(.*)/)[1]||"",l}},3088(a,o,i){"use strict";a.exports=u;var l=i(3140);function u(s,f){for(var c=f.length|0,g=s.length,x=[new Array(c),new Array(c)],h=0;h0){D=x[F][A][0],R=F;break}E=D[R^1];for(var z=0;z<2;++z)for(var P=x[z][A],L=0;L0&&(D=I,E=B,R=z)}return p||D&&m(D,R),E}function S(v,A){var p=x[A][v][0],D=[v];m(p,A);for(var E=p[A^1],R=A;;){for(;E!==v;)D.push(E),E=k(D[D.length-2],E,!1);if(x[0][v].length+x[1][v].length===0)break;var F=D[D.length-1],z=v,P=D[1],L=k(F,z,!0);if(l(f[F],f[z],f[P],f[L])<0)break;D.push(v),E=k(F,z)}return D}function b(v,A){return A[1]===A[A.length-1]}for(var h=0;h0;){var w=x[0][h].length,y=S(h,M);b(d,y)?d.push.apply(d,y):(d.length>0&&T.push(d),d=y)}d.length>0&&T.push(d)}return T}},5609(a,o,i){"use strict";a.exports=u;var l=i(3134);function u(s,f){for(var c=l(s,f.length),g=new Array(f.length),x=new Array(f.length),h=[],_=0;_0;){var m=h.pop();g[m]=!1;for(var k=c[m],_=0;_0}w=w.filter(y);for(var v=w.length,A=new Array(v),p=new Array(v),d=0;d0;){var ee=Q.pop(),ie=J[ee];g(ie,function(ge,Ee){return ge-Ee});var fe=ie.length,we=te[ee],Te;if(we===0){var P=w[ee];Te=[P]}for(var d=0;d=0)&&(te[ke]=we^1,Q.push(ke),we===0)){var P=w[ke];ae(P)||(P.reverse(),Te.push(P))}}we===0&&ue.push(Te)}return ue}},5085(a,o,i){a.exports=k;var l=i(3250)[3],u=i(4209),s=i(3352),f=i(2478);function c(){return!0}function g(S){return function(b,M){var d=S[b];return d?!!d.queryPoint(M,c):!1}}function x(S){for(var b={},M=0;M0&&b[d]===M[0])w=S[d-1];else return 1;for(var y=1;w;){var v=w.key,A=l(M,v[0],v[1]);if(v[0][0]0)y=-1,w=w.right;else return 0;else if(A>0)w=w.left;else if(A<0)y=1,w=w.right;else return 0}return y}}function _(S){return 1}function T(S){return function(M){return S(M[0],M[1])?0:1}}function m(S,b){return function(d){return S(d[0],d[1])?0:b(d)}}function k(S){for(var b=S.length,M=[],d=[],w=0,y=0;y=_?(v=1,p=_+2*k+b):(v=-k/_,p=k*v+b)):(v=0,S>=0?(A=0,p=b):-S>=m?(A=1,p=m+2*S+b):(A=-S/m,p=S*A+b));else if(A<0)A=0,k>=0?(v=0,p=b):-k>=_?(v=1,p=_+2*k+b):(v=-k/_,p=k*v+b);else{var D=1/y;v*=D,A*=D,p=v*(_*v+T*A+2*k)+A*(T*v+m*A+2*S)+b}else{var E,R,F,z;v<0?(E=T+k,R=m+S,R>E?(F=R-E,z=_-2*T+m,F>=z?(v=1,A=0,p=_+2*k+b):(v=F/z,A=1-v,p=v*(_*v+T*A+2*k)+A*(T*v+m*A+2*S)+b)):(v=0,R<=0?(A=1,p=m+2*S+b):S>=0?(A=0,p=b):(A=-S/m,p=S*A+b))):A<0?(E=T+S,R=_+k,R>E?(F=R-E,z=_-2*T+m,F>=z?(A=1,v=0,p=m+2*S+b):(A=F/z,v=1-A,p=v*(_*v+T*A+2*k)+A*(T*v+m*A+2*S)+b)):(A=0,R<=0?(v=1,p=_+2*k+b):k>=0?(v=0,p=b):(v=-k/_,p=k*v+b))):(F=m+S-T-k,F<=0?(v=0,A=1,p=m+2*S+b):(z=_-2*T+m,F>=z?(v=1,A=0,p=_+2*k+b):(v=F/z,A=1-v,p=v*(_*v+T*A+2*k)+A*(T*v+m*A+2*S)+b)))}for(var P=1-v-A,h=0;h0){var m=c[x-1];if(l(_,m)===0&&s(m)!==T){x-=1;continue}}c[x++]=_}}return c.length=x,c}},3233(a){"use strict";var o="",i;a.exports=l;function l(u,s){if(typeof u!="string")throw new TypeError("expected a string");if(s===1)return u;if(s===2)return u+u;var f=u.length*s;if(i!==u||typeof i=="undefined")i=u,o="";else if(o.length>=f)return o.substr(0,f);for(;f>o.length&&s>1;)s&1&&(o+=u),s>>=1,u+=u;return o+=u,o=o.substr(0,f),o}},3025(a,o,i){a.exports=i.g.performance&&i.g.performance.now?function(){return performance.now()}:Date.now||function(){return+new Date}},7004(a){"use strict";a.exports=o;function o(i){for(var l=i.length,u=i[i.length-1],s=l,f=l-2;f>=0;--f){var c=u,g=i[f];u=c+g;var x=u-c,h=g-x;h&&(i[--s]=u,u=h)}for(var _=0,f=s;f0){if(R<=0)return F;z=E+R}else if(E<0){if(R>=0)return F;z=-(E+R)}else return F;var P=x*z;return F>=P||F<=-P?F:S(A,p,D)},function(A,p,D,E){var R=A[0]-E[0],F=p[0]-E[0],z=D[0]-E[0],P=A[1]-E[1],L=p[1]-E[1],I=D[1]-E[1],B=A[2]-E[2],O=p[2]-E[2],G=D[2]-E[2],J=F*I,j=z*L,V=z*P,q=R*I,Z=R*L,re=F*P,$=B*(J-j)+O*(V-q)+G*(Z-re),ae=(Math.abs(J)+Math.abs(j))*Math.abs(B)+(Math.abs(V)+Math.abs(q))*Math.abs(O)+(Math.abs(Z)+Math.abs(re))*Math.abs(G),Q=h*ae;return $>Q||-$>Q?$:b(A,p,D,E)}];function d(v){var A=M[v.length];return A||(A=M[v.length]=k(v.length)),A.apply(void 0,v)}function w(v,A,p,D,E,R,F){return function(P,L,I,B,O){switch(arguments.length){case 0:case 1:return 0;case 2:return D(P,L);case 3:return E(P,L,I);case 4:return R(P,L,I,B);case 5:return F(P,L,I,B,O)}for(var G=new Array(arguments.length),J=0;J0&&_>0||h<0&&_<0)return!1;var T=l(g,f,c),m=l(x,f,c);return T>0&&m>0||T<0&&m<0?!1:h===0&&_===0&&T===0&&m===0?u(f,c,g,x):!0}},8545(a){"use strict";a.exports=i;function o(l,u){var s=l+u,f=s-l,c=s-f,g=u-f,x=l-c,h=x+g;return h?[h,s]:[s]}function i(l,u){var s=l.length|0,f=u.length|0;if(s===1&&f===1)return o(l[0],-u[0]);var c=s+f,g=new Array(c),x=0,h=0,_=0,T=Math.abs,m=l[h],k=T(m),S=-u[_],b=T(S),M,d;k=f?(M=m,h+=1,h=f?(M=m,h+=1,h>1,S=c[2*k+1];if(S===_)return k;_>1,S=c[2*k+1];if(S===_)return k;_>1,S=c[2*k+1];if(S===_)return k;_>1,S=c[2*k+1];if(S===_)return k;_>1,z=x(A[F],p);z<=0?(z===0&&(R=F),D=F+1):z>0&&(E=F-1)}return R}l=m;function k(A,p){for(var D=new Array(A.length),E=0,R=D.length;E=A.length||x(A[J],F)!==0););}return D}l=k;function S(A,p){if(!p)return k(T(M(A,0)),A,0);for(var D=new Array(p),E=0;E>>I&1&&L.push(R[I]);p.push(L)}return _(p)}l=b;function M(A,p){if(p<0)return[];for(var D=[],E=(1<0)-(s<0)},o.abs=function(s){var f=s>>i-1;return(s^f)-f},o.min=function(s,f){return f^(s^f)&-(s65535)<<4,s>>>=f,c=(s>255)<<3,s>>>=c,f|=c,c=(s>15)<<2,s>>>=c,f|=c,c=(s>3)<<1,s>>>=c,f|=c,f|s>>1},o.log10=function(s){return s>=1e9?9:s>=1e8?8:s>=1e7?7:s>=1e6?6:s>=1e5?5:s>=1e4?4:s>=1e3?3:s>=100?2:s>=10?1:0},o.popCount=function(s){return s=s-(s>>>1&1431655765),s=(s&858993459)+(s>>>2&858993459),(s+(s>>>4)&252645135)*16843009>>>24};function l(s){var f=32;return s&=-s,s&&f--,s&65535&&(f-=16),s&16711935&&(f-=8),s&252645135&&(f-=4),s&858993459&&(f-=2),s&1431655765&&(f-=1),f}o.countTrailingZeros=l,o.nextPow2=function(s){return s+=s===0,--s,s|=s>>>1,s|=s>>>2,s|=s>>>4,s|=s>>>8,s|=s>>>16,s+1},o.prevPow2=function(s){return s|=s>>>1,s|=s>>>2,s|=s>>>4,s|=s>>>8,s|=s>>>16,s-(s>>>1)},o.parity=function(s){return s^=s>>>16,s^=s>>>8,s^=s>>>4,s&=15,27030>>>s&1};var u=new Array(256);(function(s){for(var f=0;f<256;++f){var c=f,g=f,x=7;for(c>>>=1;c;c>>>=1)g<<=1,g|=c&1,--x;s[f]=g<>>8&255]<<16|u[s>>>16&255]<<8|u[s>>>24&255]},o.interleave2=function(s,f){return s&=65535,s=(s|s<<8)&16711935,s=(s|s<<4)&252645135,s=(s|s<<2)&858993459,s=(s|s<<1)&1431655765,f&=65535,f=(f|f<<8)&16711935,f=(f|f<<4)&252645135,f=(f|f<<2)&858993459,f=(f|f<<1)&1431655765,s|f<<1},o.deinterleave2=function(s,f){return s=s>>>f&1431655765,s=(s|s>>>1)&858993459,s=(s|s>>>2)&252645135,s=(s|s>>>4)&16711935,s=(s|s>>>16)&65535,s<<16>>16},o.interleave3=function(s,f,c){return s&=1023,s=(s|s<<16)&4278190335,s=(s|s<<8)&251719695,s=(s|s<<4)&3272356035,s=(s|s<<2)&1227133513,f&=1023,f=(f|f<<16)&4278190335,f=(f|f<<8)&251719695,f=(f|f<<4)&3272356035,f=(f|f<<2)&1227133513,s|=f<<1,c&=1023,c=(c|c<<16)&4278190335,c=(c|c<<8)&251719695,c=(c|c<<4)&3272356035,c=(c|c<<2)&1227133513,s|c<<2},o.deinterleave3=function(s,f){return s=s>>>f&1227133513,s=(s|s>>>2)&3272356035,s=(s|s>>>4)&251719695,s=(s|s>>>8)&4278190335,s=(s|s>>>16)&1023,s<<22>>22},o.nextCombination=function(s){var f=s|s-1;return f+1|(~f&-~f)-1>>>l(s)+1}},2014(a,o,i){"use strict";"use restrict";var l=i(3105),u=i(4623);function s(v){for(var A=0,p=Math.max,D=0,E=v.length;D>1,F=g(v[R],A);F<=0?(F===0&&(E=R),p=R+1):F>0&&(D=R-1)}return E}o.findCell=T;function m(v,A){for(var p=new Array(v.length),D=0,E=p.length;D=v.length||g(v[G],R)!==0););}return p}o.incidence=m;function k(v,A){if(!A)return m(_(b(v,0)),v,0);for(var p=new Array(A),D=0;D>>L&1&&P.push(E[L]);A.push(P)}return h(A)}o.explode=S;function b(v,A){if(A<0)return[];for(var p=[],D=(1<>1:(q>>1)-1}function D(q){for(var Z=A(q);;){var re=Z,$=2*q+1,ae=2*(q+1),Q=q;if($0;){var re=p(q);if(re>=0){var $=A(re);if(Z<$){v(q,re),q=re;continue}}return q}}function R(){if(B>0){var q=P[0];return v(0,B-1),B-=1,D(0),q}return-1}function F(q,Z){var re=P[q];return k[re]===Z?q:(k[re]=-1/0,E(q),R(),k[re]=Z,B+=1,E(B-1))}function z(q){if(!S[q]){S[q]=!0;var Z=T[q],re=m[q];T[re]>=0&&(T[re]=Z),m[Z]>=0&&(m[Z]=re),L[Z]>=0&&F(L[Z],y(Z)),L[re]>=0&&F(L[re],y(re))}}for(var P=[],L=new Array(h),b=0;b>1;b>=0;--b)D(b);for(;;){var O=R();if(O<0||k[O]>x)break;z(O)}for(var G=[],b=0;b=0&&re>=0&&Z!==re){var $=L[Z],ae=L[re];$!==ae&&V.push([$,ae])}}),u.unique(u.normalize(V)),{positions:G,edges:V}}},1303(a,o,i){"use strict";a.exports=s;var l=i(3250);function u(f,c){var g,x;if(c[0][0]c[1][0])g=c[1],x=c[0];else{var h=Math.min(f[0][1],f[1][1]),_=Math.max(f[0][1],f[1][1]),T=Math.min(c[0][1],c[1][1]),m=Math.max(c[0][1],c[1][1]);return _m?h-m:_-m}var k,S;f[0][1]c[1][0])g=c[1],x=c[0];else return u(c,f);var h,_;if(f[0][0]f[1][0])h=f[1],_=f[0];else return-u(f,c);var T=l(g,x,_),m=l(g,x,h);if(T<0){if(m<=0)return T}else if(T>0){if(m>=0)return T}else if(m)return m;if(T=l(_,h,x),m=l(_,h,g),T<0){if(m<=0)return T}else if(T>0){if(m>=0)return T}else if(m)return m;return x[0]-_[0]}},4209(a,o,i){"use strict";a.exports=m;var l=i(2478),u=i(3840),s=i(3250),f=i(1303);function c(k,S,b){this.slabs=k,this.coordinates=S,this.horizontal=b}var g=c.prototype;function x(k,S){return k.y-S}function h(k,S){for(var b=null;k;){var M=k.key,d,w;M[0][0]0)if(S[0]!==M[1][0])b=k,k=k.right;else{var v=h(k.right,S);if(v)return v;k=k.left}else{if(S[0]!==M[1][0])return k;var v=h(k.right,S);if(v)return v;k=k.left}}return b}g.castUp=function(k){var S=l.le(this.coordinates,k[0]);if(S<0)return-1;var b=this.slabs[S],M=h(this.slabs[S],k),d=-1;if(M&&(d=M.value),this.coordinates[S]===k[0]){var w=null;if(M&&(w=M.key),S>0){var y=h(this.slabs[S-1],k);y&&(w?f(y.key,w)>0&&(w=y.key,d=y.value):(d=y.value,w=y.key))}var v=this.horizontal[S];if(v.length>0){var A=l.ge(v,k[1],x);if(A=v.length)return d;p=v[A]}}if(p.start)if(w){var D=s(w[0],w[1],[k[0],p.y]);w[0][0]>w[1][0]&&(D=-D),D>0&&(d=p.index)}else d=p.index;else p.y!==k[1]&&(d=p.index)}}}return d};function _(k,S,b,M){this.y=k,this.index=S,this.start=b,this.closed=M}function T(k,S,b,M){this.x=k,this.segment=S,this.create=b,this.index=M}function m(k){for(var S=k.length,b=2*S,M=new Array(b),d=0;d1&&(S=1);for(var b=1-S,M=h.length,d=new Array(M),w=0;w0||k>0&&d<0){var w=f(S,d,b,k);T.push(w),m.push(w.slice())}d<0?m.push(b.slice()):d>0?T.push(b.slice()):(T.push(b.slice()),m.push(b.slice())),k=d}return{positive:T,negative:m}}function g(h,_){for(var T=[],m=s(h[h.length-1],_),k=h[h.length-1],S=h[0],b=0;b0||m>0&&M<0)&&T.push(f(k,M,S,m)),M>=0&&T.push(S.slice()),m=M}return T}function x(h,_){for(var T=[],m=s(h[h.length-1],_),k=h[h.length-1],S=h[0],b=0;b0||m>0&&M<0)&&T.push(f(k,M,S,m)),M<=0&&T.push(S.slice()),m=M}return T}},3387(a,o,i){var l;(function(){"use strict";var u={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 s(h){return c(x(h),arguments)}function f(h,_){return s.apply(null,[h].concat(_||[]))}function c(h,_){var T=1,m=h.length,k,S="",b,M,d,w,y,v,A,p;for(b=0;b=0),d.type){case"b":k=parseInt(k,10).toString(2);break;case"c":k=String.fromCharCode(parseInt(k,10));break;case"d":case"i":k=parseInt(k,10);break;case"j":k=JSON.stringify(k,null,d.width?parseInt(d.width):0);break;case"e":k=d.precision?parseFloat(k).toExponential(d.precision):parseFloat(k).toExponential();break;case"f":k=d.precision?parseFloat(k).toFixed(d.precision):parseFloat(k);break;case"g":k=d.precision?String(Number(k.toPrecision(d.precision))):parseFloat(k);break;case"o":k=(parseInt(k,10)>>>0).toString(8);break;case"s":k=String(k),k=d.precision?k.substring(0,d.precision):k;break;case"t":k=String(!!k),k=d.precision?k.substring(0,d.precision):k;break;case"T":k=Object.prototype.toString.call(k).slice(8,-1).toLowerCase(),k=d.precision?k.substring(0,d.precision):k;break;case"u":k=parseInt(k,10)>>>0;break;case"v":k=k.valueOf(),k=d.precision?k.substring(0,d.precision):k;break;case"x":k=(parseInt(k,10)>>>0).toString(16);break;case"X":k=(parseInt(k,10)>>>0).toString(16).toUpperCase();break}u.json.test(d.type)?S+=k:(u.number.test(d.type)&&(!A||d.sign)?(p=A?"+":"-",k=k.toString().replace(u.sign,"")):p="",y=d.pad_char?d.pad_char==="0"?"0":d.pad_char.charAt(1):" ",v=d.width-(p+k).length,w=d.width&&v>0?y.repeat(v):"",S+=d.align?p+k+w:y==="0"?p+w+k:w+p+k)}return S}var g=Object.create(null);function x(h){if(g[h])return g[h];for(var _=h,T,m=[],k=0;_;){if((T=u.text.exec(_))!==null)m.push(T[0]);else if((T=u.modulo.exec(_))!==null)m.push("%");else if((T=u.placeholder.exec(_))!==null){if(T[2]){k|=1;var S=[],b=T[2],M=[];if((M=u.key.exec(b))!==null)for(S.push(M[1]);(b=b.substring(M[0].length))!=="";)if((M=u.key_access.exec(b))!==null)S.push(M[1]);else if((M=u.index_access.exec(b))!==null)S.push(M[1]);else throw new SyntaxError("[sprintf] failed to parse named argument key");else throw new SyntaxError("[sprintf] failed to parse named argument key");T[2]=S}else k|=2;if(k===3)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");m.push({placeholder:T[0],param_no:T[1],keys:T[2],sign:T[3],pad_char:T[4],align:T[5],width:T[6],precision:T[7],type:T[8]})}else throw new SyntaxError("[sprintf] unexpected placeholder");_=_.substring(T[0].length)}return g[h]=m}o.sprintf=s,o.vsprintf=f,typeof window!="undefined"&&(window.sprintf=s,window.vsprintf=f,l=(function(){return{sprintf:s,vsprintf:f}}).call(o,i,o,a),l!==void 0&&(a.exports=l))})()},3711(a,o,i){"use strict";a.exports=x;var l=i(2640),u=i(781),s={"2d":function(h,_,T){var m=h({order:_,scalarArguments:3,getters:T==="generic"?[0]:void 0,phase:function(S,b,M,d){return S>d|0},vertex:function(S,b,M,d,w,y,v,A,p,D,E,R,F){var z=(v<<0)+(A<<1)+(p<<2)+(D<<3)|0;if(!(z===0||z===15))switch(z){case 0:E.push([S-.5,b-.5]);break;case 1:E.push([S-.25-.25*(d+M-2*F)/(M-d),b-.25-.25*(w+M-2*F)/(M-w)]);break;case 2:E.push([S-.75-.25*(-d-M+2*F)/(d-M),b-.25-.25*(y+d-2*F)/(d-y)]);break;case 3:E.push([S-.5,b-.5-.5*(w+M+y+d-4*F)/(M-w+d-y)]);break;case 4:E.push([S-.25-.25*(y+w-2*F)/(w-y),b-.75-.25*(-w-M+2*F)/(w-M)]);break;case 5:E.push([S-.5-.5*(d+M+y+w-4*F)/(M-d+w-y),b-.5]);break;case 6:E.push([S-.5-.25*(-d-M+y+w)/(d-M+w-y),b-.5-.25*(-w-M+y+d)/(w-M+d-y)]);break;case 7:E.push([S-.75-.25*(y+w-2*F)/(w-y),b-.75-.25*(y+d-2*F)/(d-y)]);break;case 8:E.push([S-.75-.25*(-y-w+2*F)/(y-w),b-.75-.25*(-y-d+2*F)/(y-d)]);break;case 9:E.push([S-.5-.25*(d+M+-y-w)/(M-d+y-w),b-.5-.25*(w+M+-y-d)/(M-w+y-d)]);break;case 10:E.push([S-.5-.5*(-d-M+-y-w+4*F)/(d-M+y-w),b-.5]);break;case 11:E.push([S-.25-.25*(-y-w+2*F)/(y-w),b-.75-.25*(w+M-2*F)/(M-w)]);break;case 12:E.push([S-.5,b-.5-.5*(-w-M+-y-d+4*F)/(w-M+y-d)]);break;case 13:E.push([S-.75-.25*(d+M-2*F)/(M-d),b-.25-.25*(-y-d+2*F)/(y-d)]);break;case 14:E.push([S-.25-.25*(-d-M+2*F)/(d-M),b-.25-.25*(-w-M+2*F)/(w-M)]);break;case 15:E.push([S-.5,b-.5]);break}},cell:function(S,b,M,d,w,y,v,A,p){w?A.push([S,b]):A.push([b,S])}});return function(k,S){var b=[],M=[];return m(k,b,M,S),{positions:b,cells:M}}}};function f(h,_){var T=h.length+"d",m=s[T];if(m)return m(l,h,_)}function c(h,_){for(var T=u(h,_),m=T.length,k=new Array(m),S=new Array(m),b=0;bMath.max(d,w)?y[2]=1:d>Math.max(M,w)?y[0]=1:y[1]=1;for(var v=0,A=0,p=0;p<3;++p)v+=b[p]*b[p],A+=y[p]*b[p];for(var p=0;p<3;++p)y[p]-=A/v*b[p];return c(y,y),y}function T(b,M,d,w,y,v,A,p){this.center=l(d),this.up=l(w),this.right=l(y),this.radius=l([v]),this.angle=l([A,p]),this.angle.bounds=[[-1/0,-Math.PI/2],[1/0,Math.PI/2]],this.setDistanceLimits(b,M),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 D=0;D<16;++D)this.computedMatrix[D]=.5;this.recalcMatrix(0)}var m=T.prototype;m.setDistanceLimits=function(b,M){b>0?b=Math.log(b):b=-1/0,M>0?M=Math.log(M):M=1/0,M=Math.max(M,b),this.radius.bounds[0][0]=b,this.radius.bounds[1][0]=M},m.getDistanceLimits=function(b){var M=this.radius.bounds[0];return b?(b[0]=Math.exp(M[0][0]),b[1]=Math.exp(M[1][0]),b):[Math.exp(M[0][0]),Math.exp(M[1][0])]},m.recalcMatrix=function(b){this.center.curve(b),this.up.curve(b),this.right.curve(b),this.radius.curve(b),this.angle.curve(b);for(var M=this.computedUp,d=this.computedRight,w=0,y=0,v=0;v<3;++v)y+=M[v]*d[v],w+=M[v]*M[v];for(var A=Math.sqrt(w),p=0,v=0;v<3;++v)d[v]-=M[v]*y/w,p+=d[v]*d[v],M[v]/=A;for(var D=Math.sqrt(p),v=0;v<3;++v)d[v]/=D;var E=this.computedToward;f(E,M,d),c(E,E);for(var R=Math.exp(this.computedRadius[0]),F=this.computedAngle[0],z=this.computedAngle[1],P=Math.cos(F),L=Math.sin(F),I=Math.cos(z),B=Math.sin(z),O=this.computedCenter,G=P*I,J=L*I,j=B,V=-P*B,q=-L*B,Z=I,re=this.computedEye,$=this.computedMatrix,v=0;v<3;++v){var ae=G*d[v]+J*E[v]+j*M[v];$[4*v+1]=V*d[v]+q*E[v]+Z*M[v],$[4*v+2]=ae,$[4*v+3]=0}var Q=$[1],te=$[5],ue=$[9],ee=$[2],ie=$[6],fe=$[10],we=te*fe-ue*ie,Te=ue*ee-Q*fe,ke=Q*ie-te*ee,ge=x(we,Te,ke);we/=ge,Te/=ge,ke/=ge,$[0]=we,$[4]=Te,$[8]=ke;for(var v=0;v<3;++v)re[v]=O[v]+$[2+4*v]*R;for(var v=0;v<3;++v){for(var p=0,Ee=0;Ee<3;++Ee)p+=$[v+4*Ee]*re[Ee];$[12+v]=-p}$[15]=1},m.getMatrix=function(b,M){this.recalcMatrix(b);var d=this.computedMatrix;if(M){for(var w=0;w<16;++w)M[w]=d[w];return M}return d};var k=[0,0,0];m.rotate=function(b,M,d,w){if(this.angle.move(b,M,d),w){this.recalcMatrix(b);var y=this.computedMatrix;k[0]=y[2],k[1]=y[6],k[2]=y[10];for(var v=this.computedUp,A=this.computedRight,p=this.computedToward,D=0;D<3;++D)y[4*D]=v[D],y[4*D+1]=A[D],y[4*D+2]=p[D];s(y,y,w,k);for(var D=0;D<3;++D)v[D]=y[4*D],A[D]=y[4*D+1];this.up.set(b,v[0],v[1],v[2]),this.right.set(b,A[0],A[1],A[2])}},m.pan=function(b,M,d,w){M=M||0,d=d||0,w=w||0,this.recalcMatrix(b);var y=this.computedMatrix,v=Math.exp(this.computedRadius[0]),A=y[1],p=y[5],D=y[9],E=x(A,p,D);A/=E,p/=E,D/=E;var R=y[0],F=y[4],z=y[8],P=R*A+F*p+z*D;R-=A*P,F-=p*P,z-=D*P;var L=x(R,F,z);R/=L,F/=L,z/=L;var I=R*M+A*d,B=F*M+p*d,O=z*M+D*d;this.center.move(b,I,B,O);var G=Math.exp(this.computedRadius[0]);G=Math.max(1e-4,G+w),this.radius.set(b,Math.log(G))},m.translate=function(b,M,d,w){this.center.move(b,M||0,d||0,w||0)},m.setMatrix=function(b,M,d,w){var y=1;typeof d=="number"&&(y=d|0),(y<0||y>3)&&(y=1);var v=(y+2)%3,A=(y+1)%3;M||(this.recalcMatrix(b),M=this.computedMatrix);var p=M[y],D=M[y+4],E=M[y+8];if(w){var F=Math.abs(p),z=Math.abs(D),P=Math.abs(E),L=Math.max(F,z,P);F===L?(p=p<0?-1:1,D=E=0):P===L?(E=E<0?-1:1,p=D=0):(D=D<0?-1:1,p=E=0)}else{var R=x(p,D,E);p/=R,D/=R,E/=R}var I=M[v],B=M[v+4],O=M[v+8],G=I*p+B*D+O*E;I-=p*G,B-=D*G,O-=E*G;var J=x(I,B,O);I/=J,B/=J,O/=J;var j=D*O-E*B,V=E*I-p*O,q=p*B-D*I,Z=x(j,V,q);j/=Z,V/=Z,q/=Z,this.center.jump(b,ye,oe,de),this.radius.idle(b),this.up.jump(b,p,D,E),this.right.jump(b,I,B,O);var re,$;if(y===2){var ae=M[1],Q=M[5],te=M[9],ue=ae*I+Q*B+te*O,ee=ae*j+Q*V+te*q;Te<0?re=-Math.PI/2:re=Math.PI/2,$=Math.atan2(ee,ue)}else{var ie=M[2],fe=M[6],we=M[10],Te=ie*p+fe*D+we*E,ke=ie*I+fe*B+we*O,ge=ie*j+fe*V+we*q;re=Math.asin(h(Te)),$=Math.atan2(ge,ke)}this.angle.jump(b,$,re),this.recalcMatrix(b);var Ee=M[2],Le=M[6],se=M[10],X=this.computedMatrix;u(X,M);var K=X[15],ye=X[12]/K,oe=X[13]/K,de=X[14]/K,pe=Math.exp(this.computedRadius[0]);this.center.jump(b,ye-Ee*pe,oe-Le*pe,de-se*pe)},m.lastT=function(){return Math.max(this.center.lastT(),this.up.lastT(),this.right.lastT(),this.radius.lastT(),this.angle.lastT())},m.idle=function(b){this.center.idle(b),this.up.idle(b),this.right.idle(b),this.radius.idle(b),this.angle.idle(b)},m.flush=function(b){this.center.flush(b),this.up.flush(b),this.right.flush(b),this.radius.flush(b),this.angle.flush(b)},m.setDistance=function(b,M){M>0&&this.radius.set(b,Math.log(M))},m.lookAt=function(b,M,d,w){this.recalcMatrix(b),M=M||this.computedEye,d=d||this.computedCenter,w=w||this.computedUp;var y=w[0],v=w[1],A=w[2],p=x(y,v,A);if(!(p<1e-6)){y/=p,v/=p,A/=p;var D=M[0]-d[0],E=M[1]-d[1],R=M[2]-d[2],F=x(D,E,R);if(!(F<1e-6)){D/=F,E/=F,R/=F;var z=this.computedRight,P=z[0],L=z[1],I=z[2],B=y*P+v*L+A*I;P-=B*y,L-=B*v,I-=B*A;var O=x(P,L,I);if(!(O<.01&&(P=v*R-A*E,L=A*D-y*R,I=y*E-v*D,O=x(P,L,I),O<1e-6))){P/=O,L/=O,I/=O,this.up.set(b,y,v,A),this.right.set(b,P,L,I),this.center.set(b,d[0],d[1],d[2]),this.radius.set(b,Math.log(F));var G=v*I-A*L,J=A*P-y*I,j=y*L-v*P,V=x(G,J,j);G/=V,J/=V,j/=V;var q=y*D+v*E+A*R,Z=P*D+L*E+I*R,re=G*D+J*E+j*R,$=Math.asin(h(q)),ae=Math.atan2(re,Z),Q=this.angle._state,te=Q[Q.length-1],ue=Q[Q.length-2];te=te%(2*Math.PI);var ee=Math.abs(te+2*Math.PI-ae),ie=Math.abs(te-ae),fe=Math.abs(te-2*Math.PI-ae);ee0?I.pop():new ArrayBuffer(P)}o.mallocArrayBuffer=k;function S(z){return new Uint8Array(k(z),0,z)}o.mallocUint8=S;function b(z){return new Uint16Array(k(2*z),0,z)}o.mallocUint16=b;function M(z){return new Uint32Array(k(4*z),0,z)}o.mallocUint32=M;function d(z){return new Int8Array(k(z),0,z)}o.mallocInt8=d;function w(z){return new Int16Array(k(2*z),0,z)}o.mallocInt16=w;function y(z){return new Int32Array(k(4*z),0,z)}o.mallocInt32=y;function v(z){return new Float32Array(k(4*z),0,z)}o.mallocFloat32=o.mallocFloat=v;function A(z){return new Float64Array(k(8*z),0,z)}o.mallocFloat64=o.mallocDouble=A;function p(z){return f?new Uint8ClampedArray(k(z),0,z):S(z)}o.mallocUint8Clamped=p;function D(z){return c?new BigUint64Array(k(8*z),0,z):null}o.mallocBigUint64=D;function E(z){return g?new BigInt64Array(k(8*z),0,z):null}o.mallocBigInt64=E;function R(z){return new DataView(k(z),0,z)}o.mallocDataView=R;function F(z){z=l.nextPow2(z);var P=l.log2(z),L=_[P];return L.length>0?L.pop():new s(z)}o.mallocBuffer=F,o.clearCache=function(){for(var P=0;P<32;++P)x.UINT8[P].length=0,x.UINT16[P].length=0,x.UINT32[P].length=0,x.INT8[P].length=0,x.INT16[P].length=0,x.INT32[P].length=0,x.FLOAT[P].length=0,x.DOUBLE[P].length=0,x.BIGUINT64[P].length=0,x.BIGINT64[P].length=0,x.UINT8C[P].length=0,h[P].length=0,_[P].length=0}},1755(a){"use strict";"use restrict";a.exports=o;function o(l){this.roots=new Array(l),this.ranks=new Array(l);for(var u=0;u",I="",B=L.length,O=I.length,G=F[0]===k||F[0]===M,J=0,j=-O;J>-1&&(J=z.indexOf(L,J),!(J===-1||(j=z.indexOf(I,J+B),j===-1)||j<=J));){for(var V=J;V=j)P[V]=null,z=z.substr(0,V)+" "+z.substr(V+1);else if(P[V]!==null){var q=P[V].indexOf(F[0]);q===-1?P[V]+=F:G&&(P[V]=P[V].substr(0,q+1)+(1+parseInt(P[V][q+1]))+P[V].substr(q+2))}var Z=J+B,re=z.substr(Z,j-Z),$=re.indexOf(L);$!==-1?J=$:J=j+O}return P}function y(R,F,z){for(var P=F.textAlign||"start",L=F.textBaseline||"alphabetic",I=[1<<30,1<<30],B=[0,0],O=R.length,G=0;G/g,` +`):z=z.replace(/\/g," ");var B="",O=[];for(te=0;te-1?parseInt(oe[1+me]):0,he=Se>-1?parseInt(de[1+Se]):0;ve!==he&&(pe=pe.replace(ke(),"?px "),ie*=Math.pow(.75,he-ve),pe=pe.replace("?px ",ke())),ee+=.25*q*(he-ve)}if(I.superscripts===!0){var be=oe.indexOf(k),Ae=de.indexOf(k),Re=be>-1?parseInt(oe[1+be]):0,Pe=Ae>-1?parseInt(de[1+Ae]):0;Re!==Pe&&(pe=pe.replace(ke(),"?px "),ie*=Math.pow(.75,Pe-Re),pe=pe.replace("?px ",ke())),ee-=.25*q*(Pe-Re)}if(I.bolds===!0){var Ye=oe.indexOf(h)>-1,Ve=de.indexOf(h)>-1;!Ye&&Ve&&(Ue?pe=pe.replace("italic ","italic bold "):pe="bold "+pe),Ye&&!Ve&&(pe=pe.replace("bold ",""))}if(I.italics===!0){var Ue=oe.indexOf(T)>-1,qe=de.indexOf(T)>-1;!Ue&&qe&&(pe="italic "+pe),Ue&&!qe&&(pe=pe.replace("italic ",""))}F.font=pe}for(Q=0;Q0&&(L=P.size),P.lineSpacing&&P.lineSpacing>0&&(I=P.lineSpacing),P.styletags&&P.styletags.breaklines&&(B.breaklines=!!P.styletags.breaklines),P.styletags&&P.styletags.bolds&&(B.bolds=!!P.styletags.bolds),P.styletags&&P.styletags.italics&&(B.italics=!!P.styletags.italics),P.styletags&&P.styletags.subscripts&&(B.subscripts=!!P.styletags.subscripts),P.styletags&&P.styletags.superscripts&&(B.superscripts=!!P.styletags.superscripts)),z.font=[P.fontStyle,P.fontVariant,P.fontWeight,L+"px",P.font].filter(function(G){return G}).join(" "),z.textAlign="start",z.textBaseline="alphabetic",z.direction="ltr";var O=v(F,z,R,L,I,B);return D(O,P,L)}},1538(a){(function(){"use strict";if(typeof ses!="undefined"&&ses.ok&&!ses.ok())return;function i(p){p.permitHostObjects___&&p.permitHostObjects___(i)}typeof ses!="undefined"&&(ses.weakMapPermitHostObjects=i);var l=!1;if(typeof WeakMap=="function"){var u=WeakMap;if(!(typeof navigator!="undefined"&&/Firefox/.test(navigator.userAgent))){var s=new u,f=Object.freeze({});if(s.set(f,1),s.get(f)!==1)l=!0;else{a.exports=WeakMap;return}}}var c=Object.prototype.hasOwnProperty,g=Object.getOwnPropertyNames,x=Object.defineProperty,h=Object.isExtensible,_="weakmap:",T=_+"ident:"+Math.random()+"___";if(typeof crypto!="undefined"&&typeof crypto.getRandomValues=="function"&&typeof ArrayBuffer=="function"&&typeof Uint8Array=="function"){var m=new ArrayBuffer(25),k=new Uint8Array(m);crypto.getRandomValues(k),T=_+"rand:"+Array.prototype.map.call(k,function(p){return(p%36).toString(36)}).join("")+"___"}function S(p){return!(p.substr(0,_.length)==_&&p.substr(p.length-3)==="___")}if(x(Object,"getOwnPropertyNames",{value:function(D){return g(D).filter(S)}}),"getPropertyNames"in Object){var b=Object.getPropertyNames;x(Object,"getPropertyNames",{value:function(D){return b(D).filter(S)}})}function M(p){if(p!==Object(p))throw new TypeError("Not an object: "+p);var D=p[T];if(D&&D.key===p)return D;if(h(p)){D={key:p};try{return x(p,T,{value:D,writable:!1,enumerable:!1,configurable:!1}),D}catch(E){return}}}(function(){var p=Object.freeze;x(Object,"freeze",{value:function(F){return M(F),p(F)}});var D=Object.seal;x(Object,"seal",{value:function(F){return M(F),D(F)}});var E=Object.preventExtensions;x(Object,"preventExtensions",{value:function(F){return M(F),E(F)}})})();function d(p){return p.prototype=null,Object.freeze(p)}var w=!1;function y(){!w&&typeof console!="undefined"&&(w=!0,console.warn("WeakMap should be invoked as new WeakMap(), not WeakMap(). This will be an error in the future."))}var v=0,A=function(){this instanceof A||y();var p=[],D=[],E=v++;function R(L,I){var B,O=M(L);return O?E in O?O[E]:I:(B=p.indexOf(L),B>=0?D[B]:I)}function F(L){var I=M(L);return I?E in I:p.indexOf(L)>=0}function z(L,I){var B,O=M(L);return O?O[E]=I:(B=p.indexOf(L),B>=0?D[B]=I:(B=p.length,D[B]=I,p[B]=L)),this}function P(L){var I=M(L),B,O;return I?E in I&&delete I[E]:(B=p.indexOf(L),B<0?!1:(O=p.length-1,p[B]=void 0,D[B]=D[O],p[B]=p[O],p.length=O,D.length=O,!0))}return Object.create(A.prototype,{get___:{value:d(R)},has___:{value:d(F)},set___:{value:d(z)},delete___:{value:d(P)}})};A.prototype=Object.create(Object.prototype,{get:{value:function(D,E){return this.get___(D,E)},writable:!0,configurable:!0},has:{value:function(D){return this.has___(D)},writable:!0,configurable:!0},set:{value:function(D,E){return this.set___(D,E)},writable:!0,configurable:!0},delete:{value:function(D){return this.delete___(D)},writable:!0,configurable:!0}}),typeof u=="function"?(function(){l&&typeof Proxy!="undefined"&&(Proxy=void 0);function p(){this instanceof A||y();var D=new u,E=void 0,R=!1;function F(I,B){return E?D.has(I)?D.get(I):E.get___(I,B):D.get(I,B)}function z(I){return D.has(I)||(E?E.has___(I):!1)}var P;l?P=function(I,B){return D.set(I,B),D.has(I)||(E||(E=new A),E.set(I,B)),this}:P=function(I,B){if(R)try{D.set(I,B)}catch(O){E||(E=new A),E.set___(I,B)}else D.set(I,B);return this};function L(I){var B=!!D.delete(I);return E&&E.delete___(I)||B}return Object.create(A.prototype,{get___:{value:d(F)},has___:{value:d(z)},set___:{value:d(P)},delete___:{value:d(L)},permitHostObjects___:{value:d(function(I){if(I===i)R=!0;else throw new Error("bogus call to permitHostObjects___")})}})}p.prototype=A.prototype,a.exports=p,Object.defineProperty(WeakMap.prototype,"constructor",{value:WeakMap,enumerable:!1,configurable:!0,writable:!0})})():(typeof Proxy!="undefined"&&(Proxy=void 0),a.exports=A)})()},236(a,o,i){var l=i(8284);a.exports=u;function u(){var s={};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(s);return c&&c.identity===s?c:l(f,s)}}},8284(a){a.exports=o;function o(i,l){var u={identity:l},s=i.valueOf;return Object.defineProperty(i,"valueOf",{value:function(f){return f!==l?s.apply(this,arguments):u},writable:!0}),u}},606(a,o,i){var l=i(236);a.exports=u;function u(){var s=l();return{get:function(f,c){var g=s(f);return g.hasOwnProperty("value")?g.value:c},set:function(f,c){return s(f).value=c,this},has:function(f){return"value"in s(f)},delete:function(f){return delete s(f).value}}}},3349(a){"use strict";function o(){return function(c,g,x,h,_,T){var m=c[0],k=x[0],S=[0],b=k;h|=0;var M=0,d=k;for(M=0;M=0!=y>=0&&_.push(S[0]+.5+.5*(w+y)/(w-y))}h+=d,++S[0]}}}function i(){return o()}var l=i;function u(c){var g={};return function(h,_,T){var m=h.dtype,k=h.order,S=[m,k.join()].join(),b=g[S];return b||(g[S]=b=c([m,k])),b(h.shape.slice(0),h.data,h.stride,h.offset|0,_,T)}}function s(c){return u(l.bind(void 0,c))}function f(c){return s({funcName:c.funcName})}a.exports=f({funcName:"zeroCrossings"})},781(a,o,i){"use strict";a.exports=u;var l=i(3349);function u(s,f){var c=[];return f=+f||0,l(s.hi(s.shape[0]-1),c,f),c}},7790(){}};let r={};function t(a){let o=r[a];if(o!==void 0)return o.exports;let i=r[a]={id:a,loaded:!1,exports:{}};return e[a].call(i.exports,i,i.exports,t),i.loaded=!0,i.exports}t.g=(function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch(a){if(typeof window=="object")return window}})(),t.nmd=a=>(a.paths=[],a.children||(a.children=[]),a);let n=t(3065);tO.exports=n})()});var $o=xe((u8e,nO)=>{"use strict";var{normalize:Kge}=Zr();function Qge(e){return e?Kge(e):[0,0,0,1]}nO.exports=Qge});var Wl=xe((f8e,uO)=>{"use strict";var lO=ut(),sp=lo(),Bu=Zr(),jge=to().defaultLine,aO=ba().isArrayOrTypedArray,v4=Bu.normalize(jge),sO=1;function iO(e,r){return[e[0],e[1],e[2],e[3]*r]}function c4(e){return lO(e)||!Bu.isChannelArray(e)&&!Bu.isValid(e)?v4:Bu.normalize(e)}function oO(e){return lO(e)?e:sO}function e3e(e,r,t){var n=e.color;n&&n._inputArray&&(n=n._inputArray);var a=aO(n),o=aO(r),i=sp.extractOpts(e),l=[],u,s,f,c,g;if(i.colorscale!==void 0?u=sp.makeColorScaleFuncFromTrace(e):u=c4,a?s=(h,_)=>h[_]===void 0?v4:i.colorscale===void 0?u(h[_]):Bu.normalize(u(h[_])):s=c4,o?f=function(h,_){return h[_]===void 0?sO:oO(h[_])}:f=oO,a||o)for(var x=0;xn3e});var t3e,n3e,d4=Ut(()=>{"use strict";t3e={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]},n3e=t3e});var up={};Ht(up,{default:()=>i3e});var a3e,i3e,fp=Ut(()=>{"use strict";a3e={circle:"\u25CF","circle-open":"\u25CB",square:"\u25A0","square-open":"\u25A1",diamond:"\u25C6","diamond-open":"\u25C7",cross:"+",x:"\u274C"},i3e=a3e});var cO=xe((c8e,fO)=>{"use strict";var o3e=Cr();function p4(e,r,t,n){if(!r||!r.visible)return null;for(var a=o3e.getComponentMethod("errorbars","makeComputeError")(r),o=new Array(e.length),i=0;i0){var c=n.c2l(s);n._lowerLogErrorBound||(n._lowerLogErrorBound=c),n._lowerErrorBound=Math.min(n._lowerLogErrorBound,c)}}else o[i]=[-l[0]*t,l[1]*t]}return o}function l3e(e){for(var r=0;r{"use strict";var u3e=In().gl_line3d,vO=In().gl_scatter3d,f3e=In().gl_error3d,c3e=In().gl_mesh3d,v3e=In().delaunay_triangulate,Ko=tr(),yO=$o(),cp=Wl().formatColor,h3e=sm(),g4=(d4(),or(h4)).default,d3e=(fp(),or(up)).default,p3e=Vt(),g3e=so().appendArrayPointValue,y3e=cO();function mO(e,r){this.scene=e,this.uid=r,this.linePlot=null,this.scatterPlot=null,this.errorBars=null,this.textMarkers=null,this.delaunayMesh=null,this.color=null,this.mode="",this.dataPoints=[],this.axesBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.textLabels=null,this.data=null}var m4=mO.prototype;m4.handlePick=function(e){if(e.object&&(e.object===this.linePlot||e.object===this.delaunayMesh||e.object===this.textMarkers||e.object===this.scatterPlot)){var r=e.index=e.data.index;return e.object.highlight&&e.object.highlight(null),this.scatterPlot&&(e.object=this.scatterPlot,this.scatterPlot.highlight(e.data)),e.textLabel="",this.textLabels&&(Ko.isArrayOrTypedArray(this.textLabels)?(this.textLabels[r]||this.textLabels[r]===0)&&(e.textLabel=this.textLabels[r]):e.textLabel=this.textLabels),e.traceCoordinate=[this.data.x[r],this.data.y[r],this.data.z[r]],!0}};function m3e(e,r,t){var n=(t+1)%3,a=(t+2)%3,o=[],i=[],l;for(l=0;l-1?-1:e.indexOf("right")>-1?1:0}function dO(e){return e==null?0:e.indexOf("top")>-1?-1:e.indexOf("bottom")>-1?1:0}function x3e(e){var r=0,t=0,n=[r,t];if(Array.isArray(e))for(var a=0;a=0){var s=m3e(l.position,l.delaunayColor,l.delaunayAxis);s.opacity=e.opacity,this.delaunayMesh?this.delaunayMesh.update(s):(s.gl=r,this.delaunayMesh=c3e(s),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)};m4.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 T3e(e,r){var t=new mO(e,r.uid);return t.update(r),t}bO.exports=T3e});var M4=xe((h8e,TO)=>{"use strict";var Qo=Ws(),A3e=Wn(),w4=Di(),b4=No().axisHoverFormat,{hovertemplateAttrs:k3e,texttemplateAttrs:S3e,templatefallbackAttrs:_O}=Si(),wO=Zn(),C3e=(d4(),or(h4)).default,E3e=(fp(),or(up)).default,Xi=Rt().extendFlat,L3e=ua().overrideAll,MO=(Vh(),or(Hh)).default,D3e=Qo.line,o0=Qo.marker,R3e=o0.line,F3e=Xi({width:D3e.width,dash:{valType:"enumerated",values:MO(C3e),dflt:"solid"}},w4("line"));function x4(e){return{show:{valType:"boolean",dflt:!1},opacity:{valType:"number",min:0,max:1,dflt:1},scale:{valType:"number",min:0,max:10,dflt:2/3}}}var _4=TO.exports=L3e({x:Qo.x,y:Qo.y,z:{valType:"data_array"},text:Xi({},Qo.text,{}),texttemplate:S3e(),texttemplatefallback:_O({editType:"calc"}),hovertext:Xi({},Qo.hovertext,{}),hovertemplate:k3e(),hovertemplatefallback:_O(),xhoverformat:b4("x"),yhoverformat:b4("y"),zhoverformat:b4("z"),mode:Xi({},Qo.mode,{dflt:"lines+markers"}),surfaceaxis:{valType:"enumerated",values:[-1,0,1,2],dflt:-1},surfacecolor:{valType:"color"},projection:{x:x4("x"),y:x4("y"),z:x4("z")},connectgaps:Qo.connectgaps,line:F3e,marker:Xi({symbol:{valType:"enumerated",values:MO(E3e),dflt:"circle",arrayOk:!0},size:Xi({},o0.size,{dflt:8}),sizeref:o0.sizeref,sizemin:o0.sizemin,sizemode:o0.sizemode,opacity:Xi({},o0.opacity,{arrayOk:!1}),colorbar:o0.colorbar,line:Xi({width:Xi({},R3e.width,{arrayOk:!1})},w4("marker.line"))},w4("marker")),textposition:Xi({},Qo.textposition,{dflt:"top center"}),textfont:A3e({noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0,editType:"calc",colorEditType:"style",arrayOk:!0,variantValues:["normal","small-caps"]}),opacity:wO.opacity,hoverinfo:Xi({},wO.hoverinfo)},"calc","nested");_4.x.editType=_4.y.editType=_4.z.editType="calc+clearAxisTypes"});var SO=xe((d8e,kO)=>{"use strict";var AO=Cr(),P3e=tr(),T4=Da(),I3e=Ob(),z3e=Ub(),N3e=Hb(),q3e=M4();kO.exports=function(r,t,n,a){function o(x,h){return P3e.coerce(r,t,q3e,x,h)}var i=B3e(r,t,o,a);if(!i){t.visible=!1;return}o("text"),o("hovertext"),o("hovertemplate"),o("hovertemplatefallback"),o("xhoverformat"),o("yhoverformat"),o("zhoverformat"),o("mode"),T4.hasMarkers(t)&&I3e(r,t,n,a,o,{noAngle:!0,noLineDash:!0,noSelect:!0}),T4.hasLines(t)&&(o("connectgaps"),z3e(r,t,n,a,o)),T4.hasText(t)&&(o("texttemplate"),o("texttemplatefallback"),N3e(r,t,a,o,{noSelect:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0}));var l=(t.line||{}).color,u=(t.marker||{}).color;o("surfaceaxis")>=0&&o("surfacecolor",l||u);for(var s=["x","y","z"],f=0;f<3;++f){var c="projection."+s[f];o(c+".show")&&(o(c+".opacity"),o(c+".scale"))}var g=AO.getComponentMethod("errorbars","supplyDefaults");g(r,t,l||u||n,{axis:"z"}),g(r,t,l||u||n,{axis:"y",inherit:"z"}),g(r,t,l||u||n,{axis:"x",inherit:"z"})};function B3e(e,r,t,n){var a=0,o=t("x"),i=t("y"),l=t("z"),u=AO.getComponentMethod("calendars","handleTraceDefaults");return u(e,r,["x","y","z"],n),o&&i&&l&&(a=Math.min(o.length,i.length,l.length),r._length=r._xlength=r._ylength=r._zlength=a),a}});var EO=xe((p8e,CO)=>{"use strict";var O3e=yd(),U3e=Yb();CO.exports=function(r,t){var n=[{x:!1,y:!1,trace:t,t:{}}];return O3e(n,t),U3e(r,t),n}});var DO=xe((g8e,LO)=>{LO.exports=H3e;function H3e(e,r){if(typeof e!="string")throw new TypeError("must specify type string");if(r=r||{},typeof document=="undefined"&&!r.canvas)return null;var t=r.canvas||document.createElement("canvas");typeof r.width=="number"&&(t.width=r.width),typeof r.height=="number"&&(t.height=r.height);var n=r,a;try{var o=[e];e.indexOf("webgl")===0&&o.push("experimental-"+e);for(var i=0;i{var V3e=DO();RO.exports=function(r){return V3e("webgl",r)}});var zO=xe((m8e,IO)=>{"use strict";var PO=Zr(),G3e=function(){};IO.exports=function(r){for(var t in r)typeof r[t]=="function"&&(r[t]=G3e);r.destroy=function(){r.container.parentNode.removeChild(r.container)};var n=document.createElement("div");n.className="no-webgl",n.style.cursor="pointer",n.style.fontSize="24px",n.style.color=PO.defaults[0],n.style.position="absolute",n.style.left=n.style.top="0px",n.style.width=n.style.height="100%",n.style["background-color"]=PO.lightLine,n.style["z-index"]=30;var a=document.createElement("p");return a.textContent="WebGL is not supported by your browser - visit https://get.webgl.org for more info",a.style.position="relative",a.style.top="50%",a.style.left="50%",a.style.height="30%",a.style.width="50%",a.style.margin="-15% 0 0 -25%",n.appendChild(a),r.container.appendChild(n),r.container.style.background="#FFFFFF",r.container.onclick=function(){window.open("https://get.webgl.org")},!1}});var BO=xe((b8e,qO)=>{"use strict";var l0=$o(),Y3e=tr(),X3e=["xaxis","yaxis","zaxis"];function NO(){this.bounds=[[-10,-10,-10],[10,10,10]],this.ticks=[[],[],[]],this.tickEnable=[!0,!0,!0],this.tickFont=["sans-serif","sans-serif","sans-serif"],this.tickSize=[12,12,12],this.tickFontWeight=["normal","normal","normal","normal"],this.tickFontStyle=["normal","normal","normal","normal"],this.tickFontVariant=["normal","normal","normal","normal"],this.tickAngle=[0,0,0],this.tickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.tickPad=[18,18,18],this.labels=["x","y","z"],this.labelEnable=[!0,!0,!0],this.labelFont=["Open Sans","Open Sans","Open Sans"],this.labelSize=[20,20,20],this.labelFontWeight=["normal","normal","normal","normal"],this.labelFontStyle=["normal","normal","normal","normal"],this.labelFontVariant=["normal","normal","normal","normal"],this.labelColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.labelPad=[30,30,30],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=[10,10,10],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=[!0,!0,!0],this.backgroundColor=[[.8,.8,.8,.5],[.8,.8,.8,.5],[.8,.8,.8,.5]],this._defaultTickPad=this.tickPad.slice(),this._defaultLabelPad=this.labelPad.slice(),this._defaultLineTickLength=this.lineTickLength.slice()}var W3e=NO.prototype;W3e.merge=function(e,r){for(var t=this,n=0;n<3;++n){var a=r[X3e[n]];if(!a.visible){t.tickEnable[n]=!1,t.labelEnable[n]=!1,t.lineEnable[n]=!1,t.lineTickEnable[n]=!1,t.gridEnable[n]=!1,t.zeroEnable[n]=!1,t.backgroundEnable[n]=!1;continue}t.labels[n]=e._meta?Y3e.templateString(a.title.text,e._meta):a.title.text,"font"in a.title&&(a.title.font.color&&(t.labelColor[n]=l0(a.title.font.color)),a.title.font.family&&(t.labelFont[n]=a.title.font.family),a.title.font.size&&(t.labelSize[n]=a.title.font.size),a.title.font.weight&&(t.labelFontWeight[n]=a.title.font.weight),a.title.font.style&&(t.labelFontStyle[n]=a.title.font.style),a.title.font.variant&&(t.labelFontVariant[n]=a.title.font.variant)),"showline"in a&&(t.lineEnable[n]=a.showline),"linecolor"in a&&(t.lineColor[n]=l0(a.linecolor)),"linewidth"in a&&(t.lineWidth[n]=a.linewidth),"showgrid"in a&&(t.gridEnable[n]=a.showgrid),"gridcolor"in a&&(t.gridColor[n]=l0(a.gridcolor)),"gridwidth"in a&&(t.gridWidth[n]=a.gridwidth),a.type==="log"?t.zeroEnable[n]=!1:"zeroline"in a&&(t.zeroEnable[n]=a.zeroline),"zerolinecolor"in a&&(t.zeroLineColor[n]=l0(a.zerolinecolor)),"zerolinewidth"in a&&(t.zeroLineWidth[n]=a.zerolinewidth),"ticks"in a&&a.ticks?t.lineTickEnable[n]=!0:t.lineTickEnable[n]=!1,"ticklen"in a&&(t.lineTickLength[n]=t._defaultLineTickLength[n]=a.ticklen),"tickcolor"in a&&(t.lineTickColor[n]=l0(a.tickcolor)),"tickwidth"in a&&(t.lineTickWidth[n]=a.tickwidth),"tickangle"in a&&(t.tickAngle[n]=a.tickangle==="auto"?-3600:Math.PI*-a.tickangle/180),"showticklabels"in a&&(t.tickEnable[n]=a.showticklabels),"tickfont"in a&&(a.tickfont.color&&(t.tickColor[n]=l0(a.tickfont.color)),a.tickfont.family&&(t.tickFont[n]=a.tickfont.family),a.tickfont.size&&(t.tickSize[n]=a.tickfont.size),a.tickfont.weight&&(t.tickFontWeight[n]=a.tickfont.weight),a.tickfont.style&&(t.tickFontStyle[n]=a.tickfont.style),a.tickfont.variant&&(t.tickFontVariant[n]=a.tickfont.variant)),"mirror"in a?["ticks","all","allticks"].indexOf(a.mirror)!==-1?(t.lineTickMirror[n]=!0,t.lineMirror[n]=!0):a.mirror===!0?(t.lineTickMirror[n]=!1,t.lineMirror[n]=!0):(t.lineTickMirror[n]=!1,t.lineMirror[n]=!1):t.lineMirror[n]=!1,"showbackground"in a&&a.showbackground!==!1?(t.backgroundEnable[n]=!0,t.backgroundColor[n]=l0(a.backgroundcolor)):t.backgroundEnable[n]=!1}};function Z3e(e,r){var t=new NO;return t.merge(e,r),t}qO.exports=Z3e});var HO=xe((x8e,UO)=>{"use strict";var J3e=$o(),$3e=["xaxis","yaxis","zaxis"];function OO(){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 K3e=OO.prototype;K3e.merge=function(e){for(var r=0;r<3;++r){var t=e[$3e[r]];if(!t.visible){this.enabled[r]=!1,this.drawSides[r]=!1;continue}this.enabled[r]=t.showspikes,this.colors[r]=J3e(t.spikecolor),this.drawSides[r]=t.spikesides,this.lineWidth[r]=t.spikethickness}};function Q3e(e){var r=new OO;return r.merge(e),r}UO.exports=Q3e});var YO=xe((_8e,GO)=>{"use strict";GO.exports=nye;var VO=Vt(),j3e=tr(),eye=["xaxis","yaxis","zaxis"],rye=[0,0,0];function tye(e){for(var r=new Array(3),t=0;t<3;++t){for(var n=e[t],a=new Array(n.length),o=0;o/g," "));a[o]=s,i.tickmode=l}}r.ticks=a;for(var o=0;o<3;++o){rye[o]=.5*(e.glplot.bounds[0][o]+e.glplot.bounds[1][o]);for(var f=0;f<2;++f)r.bounds[f][o]=e.glplot.bounds[f][o]}e.contourLevels=tye(a)}});var QO=xe((w8e,KO)=>{"use strict";var ZO=In().gl_plot3d,aye=ZO.createCamera,XO=ZO.createScene,iye=FO(),oye=G1(),dp=Cr(),wa=tr(),hp=wa.preserveDrawingBuffer(),pp=Vt(),Wi=yo(),lye=$o(),sye=zO(),uye=Cx(),fye=BO(),cye=HO(),vye=YO(),hye=nu().applyAutorangeOptions,cv,vp,JO=!1;function $O(e,r){var t=document.createElement("div"),n=e.container;this.graphDiv=e.graphDiv;var a=document.createElementNS("http://www.w3.org/2000/svg","svg");a.style.position="absolute",a.style.top=a.style.left="0px",a.style.width=a.style.height="100%",a.style["z-index"]=20,a.style["pointer-events"]="none",t.appendChild(a),this.svgContainer=a,t.id=e.id,t.style.position="absolute",t.style.top=t.style.left="0px",t.style.width=t.style.height="100%",n.appendChild(t),this.fullLayout=r,this.id=e.id||"scene",this.fullSceneLayout=r[this.id],this.plotArgs=[[],{},{}],this.axesOptions=fye(r,r[this.id]),this.spikeOptions=cye(r[this.id]),this.container=t,this.staticMode=!!e.staticPlot,this.pixelRatio=this.pixelRatio||e.plotGlPixelRatio||2,this.dataScale=[1,1,1],this.contourLevels=[[],[],[]],this.convertAnnotations=dp.getComponentMethod("annotations3d","convert"),this.drawAnnotations=dp.getComponentMethod("annotations3d","draw"),this.initializeGLPlot()}var ra=$O.prototype;ra.prepareOptions=function(){var e=this,r={canvas:e.canvas,gl:e.gl,glOptions:{preserveDrawingBuffer:hp,premultipliedAlpha:!0,antialias:!0},container:e.container,axes:e.axesOptions,spikes:e.spikeOptions,pickRadius:10,snapToData:!0,autoScale:!0,autoBounds:!1,cameraObject:e.camera,pixelRatio:e.pixelRatio};if(e.staticMode){if(!vp&&(cv=document.createElement("canvas"),vp=iye({canvas:cv,preserveDrawingBuffer:!0,premultipliedAlpha:!0,antialias:!0}),!vp))throw new Error("error creating static canvas/context for image server");r.gl=vp,r.canvas=cv}return r};var WO=!0;ra.tryCreatePlot=function(){var e=this,r=e.prepareOptions(),t=!0;try{e.glplot=XO(r)}catch(n){if(e.staticMode||!WO||hp)t=!1;else{wa.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{hp=r.glOptions.preserveDrawingBuffer=!0,e.glplot=XO(r)}catch(a){hp=r.glOptions.preserveDrawingBuffer=!1,t=!1}}}return WO=!1,t};ra.initializeGLCamera=function(){var e=this,r=e.fullSceneLayout.camera,t=r.projection.type==="orthographic";e.camera=aye(e.container,{center:[r.center.x,r.center.y,r.center.z],eye:[r.eye.x,r.eye.y,r.eye.z],up:[r.up.x,r.up.y,r.up.z],_ortho:t,zoomMin:.01,zoomMax:100,mode:"orbit"})};ra.initializeGLPlot=function(){var e=this;e.initializeGLCamera();var r=e.tryCreatePlot();if(!r)return sye(e);e.traces={},e.make4thDimension();var t=e.graphDiv,n=t.layout,a=function(){var i={};return e.isCameraChanged(n)&&(i[e.id+".camera"]=e.getCamera()),e.isAspectChanged(n)&&(i[e.id+".aspectratio"]=e.glplot.getAspectratio(),n[e.id].aspectmode!=="manual"&&(e.fullSceneLayout.aspectmode=n[e.id].aspectmode=i[e.id+".aspectmode"]="manual")),i},o=function(i){if(i.fullSceneLayout.dragmode!==!1){var l=a();i.saveLayout(n),i.graphDiv.emit("plotly_relayout",l)}};return e.glplot.canvas&&(e.glplot.canvas.addEventListener("mouseup",function(){o(e)}),e.glplot.canvas.addEventListener("touchstart",function(){JO=!0}),e.glplot.canvas.addEventListener("wheel",function(i){if(t._context._scrollZoom.gl3d){if(e.camera._ortho){var l=i.deltaX>i.deltaY?1.1:.9090909090909091,u=e.glplot.getAspectratio();e.glplot.setAspectratio({x:l*u.x,y:l*u.y,z:l*u.z})}o(e)}},oye?{passive:!1}:!1),e.glplot.canvas.addEventListener("mousemove",function(){if(e.fullSceneLayout.dragmode!==!1&&e.camera.mouseListener.buttons!==0){var i=a();e.graphDiv.emit("plotly_relayouting",i)}}),e.staticMode||e.glplot.canvas.addEventListener("webglcontextlost",function(i){t&&t.emit&&t.emit("plotly_webglcontextlost",{event:i,layer:e.id})},!1)),e.glplot.oncontextloss=function(){e.recoverContext()},e.glplot.onrender=function(){e.render()},!0};ra.render=function(){var e=this,r=e.graphDiv,t,n=e.svgContainer,a=e.container.getBoundingClientRect();r._fullLayout._calcInverseTransform(r);var o=r._fullLayout._invScaleX,i=r._fullLayout._invScaleY,l=a.width*o,u=a.height*i;n.setAttributeNS(null,"viewBox","0 0 "+l+" "+u),n.setAttributeNS(null,"width",l),n.setAttributeNS(null,"height",u),vye(e),e.glplot.axes.update(e.axesOptions);for(var s=Object.keys(e.traces),f=null,c=e.glplot.selection,g=0;g")):t.type==="isosurface"||t.type==="volume"?(m.valueLabel=pp.hoverLabelText(e._mockAxis,e._mockAxis.d2l(c.traceCoordinate[3]),t.valuehoverformat),d.push("value: "+m.valueLabel),c.textLabel&&d.push(c.textLabel),M=d.join("
")):M=c.textLabel;var w={x:c.traceCoordinate[0],y:c.traceCoordinate[1],z:c.traceCoordinate[2],data:_._input,fullData:_,curveNumber:_.index,pointNumber:T};Wi.appendArrayPointValue(w,_,T),t._module.eventData&&(w=_._module.eventData(w,c,_,{},T));var y={points:[w]};if(e.fullSceneLayout.hovermode){var v=[];Wi.loneHover({trace:_,x:(.5+.5*h[0]/h[3])*l,y:(.5-.5*h[1]/h[3])*u,xLabel:m.xLabel,yLabel:m.yLabel,zLabel:m.zLabel,text:M,name:f.name,color:Wi.castHoverOption(_,T,"bgcolor")||f.color,borderColor:Wi.castHoverOption(_,T,"bordercolor"),fontFamily:Wi.castHoverOption(_,T,"font.family"),fontSize:Wi.castHoverOption(_,T,"font.size"),fontColor:Wi.castHoverOption(_,T,"font.color"),nameLength:Wi.castHoverOption(_,T,"namelength"),textAlign:Wi.castHoverOption(_,T,"align"),hovertemplate:wa.castOption(_,T,"hovertemplate"),hovertemplateLabels:wa.extendFlat({},w,m),eventData:[w]},{container:n,gd:r,inOut_bbox:v}),w.bbox=v[0]}c.distance<5&&(c.buttons||JO)?r.emit("plotly_click",y):r.emit("plotly_hover",y),this.oldEventData=y}else Wi.loneUnhover(n),this.oldEventData&&r.emit("plotly_unhover",this.oldEventData),this.oldEventData=void 0;e.drawAnnotations(e)};ra.recoverContext=function(){var e=this;e.glplot.dispose();var r=function(){if(e.glplot.gl.isContextLost()){requestAnimationFrame(r);return}if(!e.initializeGLPlot()){wa.error("Catastrophic and unrecoverable WebGL error. Context lost.");return}e.plot.apply(e,e.plotArgs)};requestAnimationFrame(r)};var vv=["xaxis","yaxis","zaxis"];function dye(e,r,t){for(var n=e.fullSceneLayout,a=0;a<3;a++){var o=vv[a],i=o.charAt(0),l=n[o],u=r[i],s=r[i+"calendar"],f=r["_"+i+"length"];if(!wa.isArrayOrTypedArray(u))t[0][a]=Math.min(t[0][a],0),t[1][a]=Math.max(t[1][a],f-1);else for(var c,g=0;g<(f||u.length);g++)if(wa.isArrayOrTypedArray(u[g]))for(var x=0;x_[1][i])_[0][i]=-1,_[1][i]=1;else{var p=_[1][i]-_[0][i];_[0][i]-=p/32,_[1][i]+=p/32}if(k=[_[0][i],_[1][i]],k=hye(k,u),_[0][i]=k[0],_[1][i]=k[1],u.isReversed()){var D=_[0][i];_[0][i]=_[1][i],_[1][i]=D}}else k=u.range,_[0][i]=u.r2l(k[0]),_[1][i]=u.r2l(k[1]);_[0][i]===_[1][i]&&(_[0][i]-=1,_[1][i]+=1),T[i]=_[1][i]-_[0][i],u.range=[_[0][i],_[1][i]],u.limitRange(),n.glplot.setBounds(i,{min:u.range[0]*x[i],max:u.range[1]*x[i]})}var E,R=f.aspectmode;if(R==="cube")E=[1,1,1];else if(R==="manual"){var F=f.aspectratio;E=[F.x,F.y,F.z]}else if(R==="auto"||R==="data"){var z=[1,1,1];for(i=0;i<3;++i){u=f[vv[i]],s=u.type;var P=m[s];z[i]=Math.pow(P.acc,1/P.count)/x[i]}R==="data"||Math.max.apply(null,z)/Math.min.apply(null,z)<=4?E=z:E=[1,1,1]}else throw new Error("scene.js aspectRatio was not one of the enumerated types");f.aspectratio.x=c.aspectratio.x=E[0],f.aspectratio.y=c.aspectratio.y=E[1],f.aspectratio.z=c.aspectratio.z=E[2],n.glplot.setAspectratio(f.aspectratio),n.viewInitial.aspectratio||(n.viewInitial.aspectratio={x:f.aspectratio.x,y:f.aspectratio.y,z:f.aspectratio.z}),n.viewInitial.aspectmode||(n.viewInitial.aspectmode=f.aspectmode);var L=f.domain||null,I=r._size||null;if(L&&I){var B=n.container.style;B.position="absolute",B.left=I.l+L.x[0]*I.w+"px",B.top=I.t+(1-L.y[1])*I.h+"px",B.width=I.w*(L.x[1]-L.x[0])+"px",B.height=I.h*(L.y[1]-L.y[0])+"px"}n.glplot.redraw()}};ra.destroy=function(){var e=this;e.glplot&&(e.camera.mouseListener.enabled=!1,e.container.removeEventListener("wheel",e.camera.wheelListener),e.camera=null,e.glplot.dispose(),e.container.parentNode.removeChild(e.container),e.glplot=null)};function gye(e){return[[e.eye.x,e.eye.y,e.eye.z],[e.center.x,e.center.y,e.center.z],[e.up.x,e.up.y,e.up.z]]}function yye(e){return{up:{x:e.up[0],y:e.up[1],z:e.up[2]},center:{x:e.center[0],y:e.center[1],z:e.center[2]},eye:{x:e.eye[0],y:e.eye[1],z:e.eye[2]},projection:{type:e._ortho===!0?"orthographic":"perspective"}}}ra.getCamera=function(){var e=this;return e.camera.view.recalcMatrix(e.camera.view.lastT()),yye(e.camera)};ra.setViewport=function(e){var r=this,t=e.camera;r.camera.lookAt.apply(this,gye(t)),r.glplot.setAspectratio(e.aspectratio);var n=t.projection.type==="orthographic",a=r.camera._ortho;n!==a&&(r.glplot.redraw(),r.glplot.clearRGBA(),r.glplot.dispose(),r.initializeGLPlot())};ra.isCameraChanged=function(e){var r=this,t=r.getCamera(),n=wa.nestedProperty(e,r.id+".camera"),a=n.get();function o(s,f,c,g){var x=["up","center","eye"],h=["x","y","z"];return f[x[c]]&&s[x[c]][h[g]]===f[x[c]][h[g]]}var i=!1;if(a===void 0)i=!0;else{for(var l=0;l<3;l++)for(var u=0;u<3;u++)if(!o(t,a,l,u)){i=!0;break}(!a.projection||t.projection&&t.projection.type!==a.projection.type)&&(i=!0)}return i};ra.isAspectChanged=function(e){var r=this,t=r.glplot.getAspectratio(),n=wa.nestedProperty(e,r.id+".aspectratio"),a=n.get();return a===void 0||a.x!==t.x||a.y!==t.y||a.z!==t.z};ra.saveLayout=function(e){var r=this,t=r.fullLayout,n,a,o,i,l,u,s=r.isCameraChanged(e),f=r.isAspectChanged(e),c=s||f;if(c){var g={};if(s&&(n=r.getCamera(),a=wa.nestedProperty(e,r.id+".camera"),o=a.get(),g[r.id+".camera"]=o),f&&(i=r.glplot.getAspectratio(),l=wa.nestedProperty(e,r.id+".aspectratio"),u=l.get(),g[r.id+".aspectratio"]=u),dp.call("_storeDirectGUIEdit",e,t._preGUI,g),s){a.set(n);var x=wa.nestedProperty(t,r.id+".camera");x.set(n)}if(f){l.set(i);var h=wa.nestedProperty(t,r.id+".aspectratio");h.set(i),r.glplot.redraw()}}return c};ra.updateFx=function(e,r){var t=this,n=t.camera;if(n)if(e==="orbit")n.mode="orbit",n.keyBindingMode="rotate";else if(e==="turntable"){n.up=[0,0,1],n.mode="turntable",n.keyBindingMode="rotate";var a=t.graphDiv,o=a._fullLayout,i=t.fullSceneLayout.camera,l=i.up.x,u=i.up.y,s=i.up.z;if(s/Math.sqrt(l*l+u*u+s*s)<.999){var f=t.id+".camera.up",c={x:0,y:0,z:1},g={};g[f]=c;var x=a.layout;dp.call("_storeDirectGUIEdit",x,o._preGUI,g),i.up=c,wa.nestedProperty(x,f).set(c)}}else n.keyBindingMode=e;t.fullSceneLayout.hovermode=r};function mye(e,r,t){for(var n=0,a=t-1;n0)for(var l=255/i,u=0;u<3;++u)e[o+u]=Math.min(l*e[o+u],255)}}ra.toImage=function(e){var r=this;e||(e="png"),r.staticMode&&r.container.appendChild(cv),r.glplot.redraw();var t=r.glplot.gl,n=t.drawingBufferWidth,a=t.drawingBufferHeight;t.bindFramebuffer(t.FRAMEBUFFER,null);var o=new Uint8Array(n*a*4);t.readPixels(0,0,n,a,t.RGBA,t.UNSIGNED_BYTE,o),mye(o,n,a),bye(o,n,a);var i=document.createElement("canvas");i.width=n,i.height=a;var l=i.getContext("2d",{willReadFrequently:!0}),u=l.createImageData(n,a);u.data.set(o),l.putImageData(u,0,0);var s;switch(e){case"jpeg":s=i.toDataURL("image/jpeg");break;case"webp":s=i.toDataURL("image/webp");break;default:s=i.toDataURL("image/png")}return r.staticMode&&r.container.removeChild(cv),s};ra.setConvert=function(){for(var e=this,r=0;r<3;r++){var t=e.fullSceneLayout[vv[r]];pp.setConvert(t,e.fullLayout),t.setScale=wa.noop}};ra.make4thDimension=function(){var e=this,r=e.graphDiv,t=r._fullLayout;e._mockAxis={type:"linear",showexponent:"all",exponentformat:"B"},pp.setConvert(e._mockAxis,t)};KO.exports=$O});var eU=xe((M8e,jO)=>{"use strict";jO.exports={scene:{valType:"subplotid",dflt:"scene",editType:"calc+clearAxisTypes"}}});var k4=xe((T8e,rU)=>{"use strict";var xye=Zr(),Ur=ai(),A4=Rt().extendFlat,_ye=ua().overrideAll;rU.exports=_ye({visible:Ur.visible,showspikes:{valType:"boolean",dflt:!0},spikesides:{valType:"boolean",dflt:!0},spikethickness:{valType:"number",min:0,dflt:2},spikecolor:{valType:"color",dflt:xye.defaultLine},showbackground:{valType:"boolean",dflt:!1},backgroundcolor:{valType:"color",dflt:"rgba(204, 204, 204, 0.5)"},showaxeslabels:{valType:"boolean",dflt:!0},color:Ur.color,categoryorder:Ur.categoryorder,categoryarray:Ur.categoryarray,title:{text:Ur.title.text,font:Ur.title.font},type:A4({},Ur.type,{values:["-","linear","log","date","category"]}),autotypenumbers:Ur.autotypenumbers,autorange:Ur.autorange,autorangeoptions:{minallowed:Ur.autorangeoptions.minallowed,maxallowed:Ur.autorangeoptions.maxallowed,clipmin:Ur.autorangeoptions.clipmin,clipmax:Ur.autorangeoptions.clipmax,include:Ur.autorangeoptions.include,editType:"plot"},rangemode:Ur.rangemode,minallowed:Ur.minallowed,maxallowed:Ur.maxallowed,range:A4({},Ur.range,{items:[{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}}],anim:!1}),tickmode:Ur.minor.tickmode,nticks:Ur.nticks,tick0:Ur.tick0,dtick:Ur.dtick,tickvals:Ur.tickvals,ticktext:Ur.ticktext,ticks:Ur.ticks,mirror:Ur.mirror,ticklen:Ur.ticklen,tickwidth:Ur.tickwidth,tickcolor:Ur.tickcolor,showticklabels:Ur.showticklabels,labelalias:Ur.labelalias,tickfont:Ur.tickfont,tickangle:Ur.tickangle,tickprefix:Ur.tickprefix,showtickprefix:Ur.showtickprefix,ticksuffix:Ur.ticksuffix,showticksuffix:Ur.showticksuffix,showexponent:Ur.showexponent,exponentformat:Ur.exponentformat,minexponent:Ur.minexponent,separatethousands:Ur.separatethousands,tickformat:Ur.tickformat,tickformatstops:Ur.tickformatstops,hoverformat:Ur.hoverformat,showline:Ur.showline,linecolor:Ur.linecolor,linewidth:Ur.linewidth,showgrid:Ur.showgrid,gridcolor:A4({},Ur.gridcolor,{dflt:"rgb(204, 204, 204)"}),gridwidth:Ur.gridwidth,zeroline:Ur.zeroline,zerolinecolor:Ur.zerolinecolor,zerolinewidth:Ur.zerolinewidth},"plot","from-root")});var L4=xe((A8e,tU)=>{"use strict";var S4=k4(),wye=tp().attributes,C4=Rt().extendFlat,Mye=tr().counterRegex;function E4(e,r,t){return{x:{valType:"number",dflt:e,editType:"camera"},y:{valType:"number",dflt:r,editType:"camera"},z:{valType:"number",dflt:t,editType:"camera"},editType:"camera"}}tU.exports={_arrayAttrRegexps:[Mye("scene",".annotations",!0)],bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"plot"},camera:{up:C4(E4(0,0,1),{}),center:C4(E4(0,0,0),{}),eye:C4(E4(1.25,1.25,1.25),{}),projection:{type:{valType:"enumerated",values:["perspective","orthographic"],dflt:"perspective",editType:"calc"},editType:"calc"},editType:"camera"},domain:wye({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:S4,yaxis:S4,zaxis:S4,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"}});var aU=xe((k8e,nU)=>{"use strict";var Tye=tr(),Aye=Tt(),kye=tp().defaults;nU.exports=function(r,t,n,a){var o=a.type,i=a.attributes,l=a.handleDefaults,u=a.partition||"x",s=t._subplots[o],f=s.length,c=f&&s[0].replace(/\d+$/,""),g,x;function h(k,S){return Tye.coerce(g,x,i,k,S)}for(var _=0;_{"use strict";var Sye=Zr(),iU=tr(),Cye=Tt(),Eye=k4(),Lye=fx(),Dye=kd(),oU=["xaxis","yaxis","zaxis"],Rye=13600/187;lU.exports=function(r,t,n){var a,o;function i(s,f){return iU.coerce(a,o,Eye,s,f)}for(var l=0;l{"use strict";var Fye=tr(),Pye=Zr(),Iye=Cr(),zye=aU(),Nye=sU(),uU=L4(),qye=Gf().getSubplotData,fU="gl3d";cU.exports=function(r,t,n){var a=t._basePlotModules.length>1;function o(i){if(!a){var l=Fye.validate(r[i],uU[i]);if(l)return r[i]}}zye(r,t,n,{type:fU,attributes:uU,handleDefaults:Bye,fullLayout:t,font:t.font,fullData:n,getDfltFromLayout:o,autotypenumbersDflt:t.autotypenumbers,paper_bgcolor:t.paper_bgcolor,calendar:t.calendar})};function Bye(e,r,t,n){for(var a=t("bgcolor"),o=Pye.combine(a,n.paper_bgcolor),i=["up","center","eye"],l=0;l.999)&&(g="turntable")}else g="turntable";t("dragmode",g),t("hovermode",n.getDfltFromLayout("hovermode"))}});var Zl=xe(Ma=>{"use strict";var Oye=ua().overrideAll,Uye=fs(),Hye=QO(),Vye=Gf().getSubplotData,Gye=tr(),Yye=(wl(),or(_l)),Ou="gl3d",D4="scene";Ma.name=Ou;Ma.attr=D4;Ma.idRoot=D4;Ma.idRegex=Ma.attrRegex=Gye.counterRegex("scene");Ma.attributes=eU();Ma.layoutAttributes=L4();Ma.baseLayoutAttrOverrides=Oye({hoverlabel:Uye.hoverlabel},"plot","nested");Ma.supplyLayoutDefaults=vU();Ma.plot=function(r){for(var t=r._fullLayout,n=r._fullData,a=t._subplots[Ou],o=0;o{"use strict";hU.exports={plot:xO(),attributes:M4(),markerSymbols:(fp(),or(up)).default,supplyDefaults:SO(),colorbar:[{container:"marker",min:"cmin",max:"cmax"},{container:"line",min:"cmin",max:"cmax"}],calc:EO(),moduleType:"trace",name:"scatter3d",basePlotModule:Zl(),categories:["gl3d","symbols","showLegend","scatter-like"],meta:{}}});var gU=xe((D8e,pU)=>{"use strict";pU.exports=dU()});var hv=xe((R8e,bU)=>{"use strict";var yU=Zr(),Xye=Di(),R4=No().axisHoverFormat,{hovertemplateAttrs:Wye,templatefallbackAttrs:Zye}=Si(),mU=Zn(),F4=Rt().extendFlat,Jye=ua().overrideAll;function P4(e){return{valType:"boolean",dflt:!1}}function I4(e){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:P4("x"),y:P4("y"),z:P4("z")},color:{valType:"color",dflt:yU.defaultLine},usecolormap:{valType:"boolean",dflt:!1},width:{valType:"number",min:1,max:16,dflt:2},highlight:{valType:"boolean",dflt:!0},highlightcolor:{valType:"color",dflt:yU.defaultLine},highlightwidth:{valType:"number",min:1,max:16,dflt:2}}}var z4=bU.exports=Jye(F4({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:Wye(),hovertemplatefallback:Zye(),xhoverformat:R4("x"),yhoverformat:R4("y"),zhoverformat:R4("z"),connectgaps:{valType:"boolean",dflt:!1,editType:"calc"},surfacecolor:{valType:"data_array"}},Xye("",{colorAttr:"z or surfacecolor",showScaleDflt:!0,autoColorDflt:!1,editTypeOverride:"calc"}),{contours:{x:I4("x"),y:I4("y"),z:I4("z")},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,description:"Represents the level that incident rays are reflected in a single direction, causing shine."},roughness:{valType:"number",min:0,max:1,dflt:.5,description:"Alters specular reflection; the rougher the surface, the wider and less contrasty the shine."},fresnel:{valType:"number",min:0,max:5,dflt:.2}},opacity:{valType:"number",min:0,max:1,dflt:1},opacityscale:{valType:"any",editType:"calc"},hoverinfo:F4({},mU.hoverinfo),showlegend:F4({},mU.showlegend,{dflt:!1})}),"calc","nested");z4.x.editType=z4.y.editType=z4.z.editType="calc+clearAxisTypes"});var q4=xe((F8e,wU)=>{"use strict";var $ye=Cr(),xU=tr(),Kye=oo(),Qye=hv(),N4=.1;function jye(e,r){for(var t=[],n=32,a=0;a{"use strict";var MU=Tl();TU.exports=function(r,t){t.surfacecolor?MU(r,t,{vals:t.surfacecolor,containerStr:"",cLetter:"c"}):MU(r,t,{vals:t.z,containerStr:"",cLetter:"c"})}});var EU=xe((I8e,CU)=>{"use strict";var tme=tr(),kU=.01,nme=[[-1,0],[1,0],[0,-1],[0,1]];function ame(e){return .5-.25*Math.min(1,e*.5)}CU.exports=function(r,t){var n=1,a;for(SU(r,t),a=0;akU;a++)n=SU(r,t,ame(n));return n>kU&&tme.log("interp2d didn't converge quickly",n),r};function SU(e,r,t){var n=0,a,o,i,l,u,s,f,c,g,x,h,_,T;for(l=0;l_&&(n=Math.max(n,Math.abs(e[o][i]-h)/(T-_))))}return n}});var DU=xe((z8e,LU)=>{"use strict";var ime=tr().maxRowLength;LU.exports=function(r){var t=[],n={},a=[],o=r[0],i=[],l=[0,0,0],u=ime(r),s,f,c,g,x,h,_,T;for(f=0;f=0;x--)g=a[x],f=g[0],c=g[1],h=((n[[f-1,c]]||l)[2]+(n[[f+1,c]]||l)[2]+(n[[f,c-1]]||l)[2]+(n[[f,c+1]]||l)[2])/20,h&&(_[g]=[f,c,h],a.splice(x,1),T=!0);if(!T)throw"findEmpties iterated with no new neighbors";for(g in _)n[g]=_[g],t.push(_[g])}return t.sort(function(m,k){return k[2]-m[2]})}});var NU=xe((N8e,zU)=>{"use strict";var ome=In().gl_surface3d,Uu=In().ndarray,lme=In().ndarray_linear_interpolate.d2,sme=EU(),ume=DU(),dv=tr().isArrayOrTypedArray,fme=Wl().parseColorScale,RU=$o(),cme=lo().extractOpts;function PU(e,r,t){this.scene=e,this.uid=t,this.surface=r,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 Zi=PU.prototype;Zi.getXat=function(e,r,t,n){var a=dv(this.data.x)?dv(this.data.x[0])?this.data.x[r][e]:this.data.x[e]:e;return t===void 0?a:n.d2l(a,0,t)};Zi.getYat=function(e,r,t,n){var a=dv(this.data.y)?dv(this.data.y[0])?this.data.y[r][e]:this.data.y[r]:r;return t===void 0?a:n.d2l(a,0,t)};Zi.getZat=function(e,r,t,n){var a=this.data.z[r][e];return a===null&&this.data.connectgaps&&this.data._interpolatedZ&&(a=this.data._interpolatedZ[r][e]),t===void 0?a:n.d2l(a,0,t)};Zi.handlePick=function(e){if(e.object===this.surface){var r=(e.data.index[0]-1)/this.dataScaleX-1,t=(e.data.index[1]-1)/this.dataScaleY-1,n=Math.max(Math.min(Math.round(r),this.data.z[0].length-1),0),a=Math.max(Math.min(Math.round(t),this.data._ylength-1),0);e.index=[n,a],e.traceCoordinate=[this.getXat(n,a),this.getYat(n,a),this.getZat(n,a)],e.dataCoordinate=[this.getXat(n,a,this.data.xcalendar,this.scene.fullSceneLayout.xaxis),this.getYat(n,a,this.data.ycalendar,this.scene.fullSceneLayout.yaxis),this.getZat(n,a,this.data.zcalendar,this.scene.fullSceneLayout.zaxis)];for(var o=0;o<3;o++){var i=e.dataCoordinate[o];i!=null&&(e.dataCoordinate[o]*=this.scene.dataScale[o])}var l=this.data.hovertext||this.data.text;return dv(l)&&l[a]&&l[a][n]!==void 0?e.textLabel=l[a][n]:l?e.textLabel=l:e.textLabel="",e.data.dataCoordinate=e.dataCoordinate.slice(),this.surface.highlight(e.data),this.scene.glplot.spikes.position=e.dataCoordinate,!0}};function vme(e){var r=e[0].rgb,t=e[e.length-1].rgb;return r[0]===t[0]&&r[1]===t[1]&&r[2]===t[2]&&r[3]===t[3]}var Hu=[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 hme(e,r){if(e0){t=Hu[n];break}return t}function pme(e,r){if(!(e<1||r<1)){for(var t=B4(e),n=B4(r),a=1,o=0;ogp;)n--,n/=dme(n),n++,n1?a:1};function yme(e,r,t){var n=t[8]+t[2]*r[0]+t[5]*r[1];return e[0]=(t[6]+t[0]*r[0]+t[3]*r[1])/n,e[1]=(t[7]+t[1]*r[0]+t[4]*r[1])/n,e}function mme(e,r,t){return bme(e,r,yme,t),e}function bme(e,r,t,n){for(var a=[0,0],o=e.shape[0],i=e.shape[1],l=0;l0&&this.contourStart[n]!==null&&this.contourEnd[n]!==null&&this.contourEnd[n]>this.contourStart[n]))for(r[n]=!0,a=this.contourStart[n];ag&&(this.minValues[s]=g),this.maxValues[s]{"use strict";qU.exports={attributes:hv(),supplyDefaults:q4().supplyDefaults,colorbar:{min:"cmin",max:"cmax"},calc:AU(),plot:NU(),moduleType:"trace",name:"surface",basePlotModule:Zl(),categories:["gl3d","2dMap","showLegend"],meta:{}}});var UU=xe((B8e,OU)=>{"use strict";OU.exports=BU()});var Vu=xe((O8e,VU)=>{"use strict";var wme=Di(),O4=No().axisHoverFormat,{hovertemplateAttrs:Mme,templatefallbackAttrs:Tme}=Si(),Jl=hv(),HU=Zn(),$l=Rt().extendFlat;VU.exports=$l({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:Mme({editType:"calc"}),hovertemplatefallback:Tme({editType:"calc"}),xhoverformat:O4("x"),yhoverformat:O4("y"),zhoverformat:O4("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"}},wme("",{colorAttr:"`intensity`",showScaleDflt:!0,editTypeOverride:"calc"}),{opacity:Jl.opacity,flatshading:{valType:"boolean",dflt:!1,editType:"calc"},contour:{show:$l({},Jl.contours.x.show,{}),color:Jl.contours.x.color,width:Jl.contours.x.width,editType:"calc"},lightposition:{x:$l({},Jl.lightposition.x,{dflt:1e5}),y:$l({},Jl.lightposition.y,{dflt:1e5}),z:$l({},Jl.lightposition.z,{dflt:0}),editType:"calc"},lighting:$l({vertexnormalsepsilon:{valType:"number",min:0,max:1,dflt:1e-12,editType:"calc",description:"Epsilon for vertex normals calculation avoids math issues arising from degenerate geometry."},facenormalsepsilon:{valType:"number",min:0,max:1,dflt:1e-6,editType:"calc",description:"Epsilon for face normals calculation avoids math issues arising from degenerate geometry."},editType:"calc"},Jl.lighting),hoverinfo:$l({},HU.hoverinfo,{editType:"calc"}),showlegend:$l({},HU.showlegend,{dflt:!1})})});var mp=xe((U8e,YU)=>{"use strict";var Ame=Di(),yp=No().axisHoverFormat,{hovertemplateAttrs:kme,templatefallbackAttrs:Sme}=Si(),pv=Vu(),GU=Zn(),U4=Rt().extendFlat,Cme=ua().overrideAll;function H4(e){return{show:{valType:"boolean",dflt:!1},locations:{valType:"data_array",dflt:[]},fill:{valType:"number",min:0,max:1,dflt:1}}}function V4(e){return{show:{valType:"boolean",dflt:!0},fill:{valType:"number",min:0,max:1,dflt:1}}}var Gu=YU.exports=Cme(U4({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:H4("x"),y:H4("y"),z:H4("z")},caps:{x:V4("x"),y:V4("y"),z:V4("z")},text:{valType:"string",dflt:"",arrayOk:!0},hovertext:{valType:"string",dflt:"",arrayOk:!0},hovertemplate:kme(),hovertemplatefallback:Sme(),xhoverformat:yp("x"),yhoverformat:yp("y"),zhoverformat:yp("z"),valuehoverformat:yp("value",1),showlegend:U4({},GU.showlegend,{dflt:!1})},Ame("",{colorAttr:"`value`",showScaleDflt:!0,editTypeOverride:"calc"}),{opacity:pv.opacity,lightposition:pv.lightposition,lighting:pv.lighting,flatshading:pv.flatshading,contour:pv.contour,hoverinfo:U4({},GU.hoverinfo)}),"calc","nested");Gu.flatshading.dflt=!0;Gu.lighting.facenormalsepsilon.dflt=0;Gu.x.editType=Gu.y.editType=Gu.z.editType=Gu.value.editType="calc+clearAxisTypes"});var G4=xe((H8e,WU)=>{"use strict";var Eme=tr(),Lme=Cr(),Dme=mp(),Rme=oo();function Fme(e,r,t,n){function a(o,i){return Eme.coerce(e,r,Dme,o,i)}XU(e,r,t,n,a)}function XU(e,r,t,n,a){var o=a("isomin"),i=a("isomax");i!=null&&o!==void 0&&o!==null&&o>i&&(r.isomin=null,r.isomax=null);var l=a("x"),u=a("y"),s=a("z"),f=a("value");if(!l||!l.length||!u||!u.length||!s||!s.length||!f||!f.length){r.visible=!1;return}var c=Lme.getComponentMethod("calendars","handleTraceDefaults");c(e,r,["x","y","z"],n),a("valuehoverformat"),["x","y","z"].forEach(function(_){a(_+"hoverformat");var T="caps."+_,m=a(T+".show");m&&a(T+".fill");var k="slices."+_,S=a(k+".show");S&&(a(k+".fill"),a(k+".locations"))});var g=a("spaceframe.show");g&&a("spaceframe.fill");var x=a("surface.show");x&&(a("surface.count"),a("surface.fill"),a("surface.pattern"));var h=a("contour.show");h&&(a("contour.color"),a("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(_)}),Rme(e,r,n,a,{prefix:"",cLetter:"c"}),r._length=null}WU.exports={supplyDefaults:Fme,supplyIsoDefaults:XU}});var bp=xe((V8e,JU)=>{"use strict";var X4=tr(),Pme=Tl();function Ime(e,r){r._len=Math.min(r.u.length,r.v.length,r.w.length,r.x.length,r.y.length,r.z.length),r._u=ko(r.u,r._len),r._v=ko(r.v,r._len),r._w=ko(r.w,r._len),r._x=ko(r.x,r._len),r._y=ko(r.y,r._len),r._z=ko(r.z,r._len);var t=ZU(r);r._gridFill=t.fill,r._Xs=t.Xs,r._Ys=t.Ys,r._Zs=t.Zs,r._len=t.len;var n=0,a,o,i;r.starts&&(a=ko(r.starts.x||[]),o=ko(r.starts.y||[]),i=ko(r.starts.z||[]),n=Math.min(a.length,o.length,i.length)),r._startsX=a||[],r._startsY=o||[],r._startsZ=i||[];var l=0,u=1/0,s;for(s=0;s1&&(S=r[a-1],M=t[a-1],w=n[a-1]),o=0;oS?"-":"+")+"x"),h=h.replace("y",(b>M?"-":"+")+"y"),h=h.replace("z",(d>w?"-":"+")+"z");var p=function(){a=0,y=[],v=[],A=[]};(!a||a{"use strict";var zme=Tl(),Nme=bp().processGrid,xp=bp().filter;$U.exports=function(r,t){t._len=Math.min(t.x.length,t.y.length,t.z.length,t.value.length),t._x=xp(t.x,t._len),t._y=xp(t.y,t._len),t._z=xp(t.z,t._len),t._value=xp(t.value,t._len);var n=Nme(t);t._gridFill=n.fill,t._Xs=n.Xs,t._Ys=n.Ys,t._Zs=n.Zs,t._len=n.len;for(var a=1/0,o=-1/0,i=0;i{"use strict";KU.exports=function(r,t,n,a){a=a||r.length;for(var o=new Array(a),i=0;i{"use strict";var qme=In().gl_mesh3d,Bme=Wl().parseColorScale,Ome=tr().isArrayOrTypedArray,Ume=$o(),Hme=lo().extractOpts,QU=Yu(),gv=function(e,r){for(var t=r.length-1;t>0;t--){var n=Math.min(r[t],r[t-1]),a=Math.max(r[t],r[t-1]);if(a>n&&n-1}function O(pe,me){return pe===null?me:pe}function G(pe,me,Se){p();var ve=[me],he=[Se];if(P>=1)ve=[me],he=[Se];else if(P>0){var be=I(me,Se);ve=be.xyzv,he=be.abc}for(var Ae=0;Ae-1?Se[Pe]:A(Ye,Ve,Ue);We>-1?Re[Pe]=We:Re[Pe]=E(Ye,Ve,Ue,O(pe,qe))}R(Re[0],Re[1],Re[2])}}function J(pe,me,Se){var ve=function(he,be,Ae){G(pe,[me[he],me[be],me[Ae]],[Se[he],Se[be],Se[Ae]])};ve(0,1,2),ve(2,3,0)}function j(pe,me,Se){var ve=function(he,be,Ae){G(pe,[me[he],me[be],me[Ae]],[Se[he],Se[be],Se[Ae]])};ve(0,1,2),ve(3,0,1),ve(2,3,0),ve(1,2,3)}function V(pe,me,Se,ve){var he=pe[3];heve&&(he=ve);for(var be=(pe[3]-he)/(pe[3]-me[3]+1e-9),Ae=[],Re=0;Re<4;Re++)Ae[Re]=(1-be)*pe[Re]+be*me[Re];return Ae}function q(pe,me,Se){return pe>=me&&pe<=Se}function Z(pe){var me=.001*(M-b);return pe>=b-me&&pe<=M+me}function re(pe){for(var me=[],Se=0;Se<4;Se++){var ve=pe[Se];me.push([e._x[ve],e._y[ve],e._z[ve],e._value[ve]])}return me}var $=3;function ae(pe,me,Se,ve,he,be){be||(be=1),Se=[-1,-1,-1];var Ae=!1,Re=[q(me[0][3],ve,he),q(me[1][3],ve,he),q(me[2][3],ve,he)];if(!Re[0]&&!Re[1]&&!Re[2])return!1;var Pe=function(Ve,Ue,qe){return Z(Ue[0][3])&&Z(Ue[1][3])&&Z(Ue[2][3])?(G(Ve,Ue,qe),!0):be<$?ae(Ve,Ue,qe,b,M,++be):!1};if(Re[0]&&Re[1]&&Re[2])return Pe(pe,me,Se)||Ae;var Ye=!1;return[[0,1,2],[2,0,1],[1,2,0]].forEach(function(Ve){if(Re[Ve[0]]&&Re[Ve[1]]&&!Re[Ve[2]]){var Ue=me[Ve[0]],qe=me[Ve[1]],We=me[Ve[2]],Xe=V(We,Ue,ve,he),er=V(We,qe,ve,he);Ae=Pe(pe,[er,Xe,Ue],[-1,-1,Se[Ve[0]]])||Ae,Ae=Pe(pe,[Ue,qe,er],[Se[Ve[0]],Se[Ve[1]],-1])||Ae,Ye=!0}}),Ye||[[0,1,2],[1,2,0],[2,0,1]].forEach(function(Ve){if(Re[Ve[0]]&&!Re[Ve[1]]&&!Re[Ve[2]]){var Ue=me[Ve[0]],qe=me[Ve[1]],We=me[Ve[2]],Xe=V(qe,Ue,ve,he),er=V(We,Ue,ve,he);Ae=Pe(pe,[er,Xe,Ue],[-1,-1,Se[Ve[0]]])||Ae,Ye=!0}}),Ae}function Q(pe,me,Se,ve){var he=!1,be=re(me),Ae=[q(be[0][3],Se,ve),q(be[1][3],Se,ve),q(be[2][3],Se,ve),q(be[3][3],Se,ve)];if(!Ae[0]&&!Ae[1]&&!Ae[2]&&!Ae[3])return he;if(Ae[0]&&Ae[1]&&Ae[2]&&Ae[3])return i&&(he=j(pe,be,me)||he),he;var Re=!1;return[[0,1,2,3],[3,0,1,2],[2,3,0,1],[1,2,3,0]].forEach(function(Pe){if(Ae[Pe[0]]&&Ae[Pe[1]]&&Ae[Pe[2]]&&!Ae[Pe[3]]){var Ye=be[Pe[0]],Ve=be[Pe[1]],Ue=be[Pe[2]],qe=be[Pe[3]];if(i)he=G(pe,[Ye,Ve,Ue],[me[Pe[0]],me[Pe[1]],me[Pe[2]]])||he;else{var We=V(qe,Ye,Se,ve),Xe=V(qe,Ve,Se,ve),er=V(qe,Ue,Se,ve);he=G(null,[We,Xe,er],[-1,-1,-1])||he}Re=!0}}),Re||([[0,1,2,3],[1,2,3,0],[2,3,0,1],[3,0,1,2],[0,2,3,1],[1,3,2,0]].forEach(function(Pe){if(Ae[Pe[0]]&&Ae[Pe[1]]&&!Ae[Pe[2]]&&!Ae[Pe[3]]){var Ye=be[Pe[0]],Ve=be[Pe[1]],Ue=be[Pe[2]],qe=be[Pe[3]],We=V(Ue,Ye,Se,ve),Xe=V(Ue,Ve,Se,ve),er=V(qe,Ve,Se,ve),nr=V(qe,Ye,Se,ve);i?(he=G(pe,[Ye,nr,We],[me[Pe[0]],-1,-1])||he,he=G(pe,[Ve,Xe,er],[me[Pe[1]],-1,-1])||he):he=J(null,[We,Xe,er,nr],[-1,-1,-1,-1])||he,Re=!0}}),Re)||[[0,1,2,3],[1,2,3,0],[2,3,0,1],[3,0,1,2]].forEach(function(Pe){if(Ae[Pe[0]]&&!Ae[Pe[1]]&&!Ae[Pe[2]]&&!Ae[Pe[3]]){var Ye=be[Pe[0]],Ve=be[Pe[1]],Ue=be[Pe[2]],qe=be[Pe[3]],We=V(Ve,Ye,Se,ve),Xe=V(Ue,Ye,Se,ve),er=V(qe,Ye,Se,ve);i?(he=G(pe,[Ye,We,Xe],[me[Pe[0]],-1,-1])||he,he=G(pe,[Ye,Xe,er],[me[Pe[0]],-1,-1])||he,he=G(pe,[Ye,er,We],[me[Pe[0]],-1,-1])||he):he=G(null,[We,Xe,er],[-1,-1,-1])||he,Re=!0}}),he}function te(pe,me,Se,ve,he,be,Ae,Re,Pe,Ye,Ve){var Ue=!1;return o&&(B(pe,"A")&&(Ue=Q(null,[me,Se,ve,be],Ye,Ve)||Ue),B(pe,"B")&&(Ue=Q(null,[Se,ve,he,Pe],Ye,Ve)||Ue),B(pe,"C")&&(Ue=Q(null,[Se,be,Ae,Pe],Ye,Ve)||Ue),B(pe,"D")&&(Ue=Q(null,[ve,be,Re,Pe],Ye,Ve)||Ue),B(pe,"E")&&(Ue=Q(null,[Se,ve,be,Pe],Ye,Ve)||Ue)),i&&(Ue=Q(pe,[Se,ve,be,Pe],Ye,Ve)||Ue),Ue}function ue(pe,me,Se,ve,he,be,Ae,Re){return[Re[0]===!0?!0:ae(pe,re([me,Se,ve]),[me,Se,ve],be,Ae),Re[1]===!0?!0:ae(pe,re([ve,he,me]),[ve,he,me],be,Ae)]}function ee(pe,me,Se,ve,he,be,Ae,Re,Pe){return Re?ue(pe,me,Se,he,ve,be,Ae,Pe):ue(pe,Se,he,ve,me,be,Ae,Pe)}function ie(pe,me,Se,ve,he,be,Ae){var Re=!1,Pe,Ye,Ve,Ue,qe=function(){Re=ae(pe,[Pe,Ye,Ve],[-1,-1,-1],he,be)||Re,Re=ae(pe,[Ve,Ue,Pe],[-1,-1,-1],he,be)||Re},We=Ae[0],Xe=Ae[1],er=Ae[2];return We&&(Pe=z(re([m(me,Se-0,ve-0)])[0],re([m(me-1,Se-0,ve-0)])[0],We),Ye=z(re([m(me,Se-0,ve-1)])[0],re([m(me-1,Se-0,ve-1)])[0],We),Ve=z(re([m(me,Se-1,ve-1)])[0],re([m(me-1,Se-1,ve-1)])[0],We),Ue=z(re([m(me,Se-1,ve-0)])[0],re([m(me-1,Se-1,ve-0)])[0],We),qe()),Xe&&(Pe=z(re([m(me-0,Se,ve-0)])[0],re([m(me-0,Se-1,ve-0)])[0],Xe),Ye=z(re([m(me-0,Se,ve-1)])[0],re([m(me-0,Se-1,ve-1)])[0],Xe),Ve=z(re([m(me-1,Se,ve-1)])[0],re([m(me-1,Se-1,ve-1)])[0],Xe),Ue=z(re([m(me-1,Se,ve-0)])[0],re([m(me-1,Se-1,ve-0)])[0],Xe),qe()),er&&(Pe=z(re([m(me-0,Se-0,ve)])[0],re([m(me-0,Se-0,ve-1)])[0],er),Ye=z(re([m(me-0,Se-1,ve)])[0],re([m(me-0,Se-1,ve-1)])[0],er),Ve=z(re([m(me-1,Se-1,ve)])[0],re([m(me-1,Se-1,ve-1)])[0],er),Ue=z(re([m(me-1,Se-0,ve)])[0],re([m(me-1,Se-0,ve-1)])[0],er),qe()),Re}function fe(pe,me,Se,ve,he,be,Ae,Re,Pe,Ye,Ve,Ue){var qe=pe;return Ue?(o&&pe==="even"&&(qe=null),te(qe,me,Se,ve,he,be,Ae,Re,Pe,Ye,Ve)):(o&&pe==="odd"&&(qe=null),te(qe,Pe,Re,Ae,be,he,ve,Se,me,Ye,Ve))}function we(pe,me,Se,ve,he){for(var be=[],Ae=0,Re=0;ReRe?[k,be]:[be,S];Le(me,Pe[0],Pe[1])}}var Ye=[[Math.min(b,S),Math.max(b,S)],[Math.min(k,M),Math.max(k,M)]];["x","y","z"].forEach(function(Ve){for(var Ue=[],qe=0;qe0&&(Qe.push(Ke.id),Ve==="x"?Ce.push([Ke.distRatio,0,0]):Ve==="y"?Ce.push([0,Ke.distRatio,0]):Ce.push([0,0,Ke.distRatio]))}else Ve==="x"?rr=ye(1,x-1):Ve==="y"?rr=ye(1,h-1):rr=ye(1,_-1);Qe.length>0&&(Ve==="x"?Ue[We]=se(pe,Qe,Xe,er,Ce,Ue[We]):Ve==="y"?Ue[We]=X(pe,Qe,Xe,er,Ce,Ue[We]):Ue[We]=K(pe,Qe,Xe,er,Ce,Ue[We]),We++),rr.length>0&&(Ve==="x"?Ue[We]=we(pe,rr,Xe,er,Ue[We]):Ve==="y"?Ue[We]=Te(pe,rr,Xe,er,Ue[We]):Ue[We]=ke(pe,rr,Xe,er,Ue[We]),We++)}var je=e.caps[Ve];je.show&&je.fill&&(L(je.fill),Ve==="x"?Ue[We]=we(pe,[0,x-1],Xe,er,Ue[We]):Ve==="y"?Ue[We]=Te(pe,[0,h-1],Xe,er,Ue[We]):Ue[We]=ke(pe,[0,_-1],Xe,er,Ue[We]),We++)}}),l===0&&D(),e._meshX=d,e._meshY=w,e._meshZ=y,e._meshIntensity=v,e._Xs=f,e._Ys=c,e._Zs=g}return de(),e}function Gme(e,r){var t=e.glplot.gl,n=qme({gl:t}),a=new jU(e,n,r.uid);return n._trace=a,a.update(r),e.glplot.add(n),a}rH.exports={findNearestOnAxis:gv,generateIsoMeshes:eH,createIsosurfaceTrace:Gme}});var nH=xe((W8e,tH)=>{"use strict";tH.exports={attributes:mp(),supplyDefaults:G4().supplyDefaults,calc:W4(),colorbar:{min:"cmin",max:"cmax"},plot:_p().createIsosurfaceTrace,moduleType:"trace",name:"isosurface",basePlotModule:Zl(),categories:["gl3d","showLegend"],meta:{}}});var iH=xe((Z8e,aH)=>{"use strict";aH.exports=nH()});var $4=xe((J8e,lH)=>{"use strict";var Yme=Di(),hn=mp(),Xme=hv(),oH=Zn(),J4=Rt().extendFlat,Wme=ua().overrideAll,wp=lH.exports=Wme(J4({x:hn.x,y:hn.y,z:hn.z,value:hn.value,isomin:hn.isomin,isomax:hn.isomax,surface:hn.surface,spaceframe:{show:{valType:"boolean",dflt:!1},fill:{valType:"number",min:0,max:1,dflt:1}},slices:hn.slices,caps:hn.caps,text:hn.text,hovertext:hn.hovertext,xhoverformat:hn.xhoverformat,yhoverformat:hn.yhoverformat,zhoverformat:hn.zhoverformat,valuehoverformat:hn.valuehoverformat,hovertemplate:hn.hovertemplate,hovertemplatefallback:hn.hovertemplatefallback},Yme("",{colorAttr:"`value`",showScaleDflt:!0,editTypeOverride:"calc"}),{colorbar:hn.colorbar,opacity:hn.opacity,opacityscale:Xme.opacityscale,lightposition:hn.lightposition,lighting:hn.lighting,flatshading:hn.flatshading,contour:hn.contour,hoverinfo:J4({},oH.hoverinfo),showlegend:J4({},oH.showlegend,{dflt:!1})}),"calc","nested");wp.x.editType=wp.y.editType=wp.z.editType=wp.value.editType="calc+clearAxisTypes"});var uH=xe(($8e,sH)=>{"use strict";var Zme=tr(),Jme=$4(),$me=G4().supplyIsoDefaults,Kme=q4().opacityscaleDefaults;sH.exports=function(r,t,n,a){function o(i,l){return Zme.coerce(r,t,Jme,i,l)}$me(r,t,n,a,o),Kme(r,t,a,o)}});var hH=xe((K8e,vH)=>{"use strict";var Qme=In().gl_mesh3d,jme=Wl().parseColorScale,e5e=tr().isArrayOrTypedArray,r5e=$o(),t5e=lo().extractOpts,fH=Yu(),K4=_p().findNearestOnAxis,n5e=_p().generateIsoMeshes;function cH(e,r,t){this.scene=e,this.uid=t,this.mesh=r,this.name="",this.data=null,this.showContour=!1}var Q4=cH.prototype;Q4.handlePick=function(e){if(e.object===this.mesh){var r=e.data.index,t=this.data._meshX[r],n=this.data._meshY[r],a=this.data._meshZ[r],o=this.data._Ys.length,i=this.data._Zs.length,l=K4(t,this.data._Xs).id,u=K4(n,this.data._Ys).id,s=K4(a,this.data._Zs).id,f=e.index=s+i*u+i*o*l;e.traceCoordinate=[this.data._meshX[f],this.data._meshY[f],this.data._meshZ[f],this.data._value[f]];var c=this.data.hovertext||this.data.text;return e5e(c)&&c[f]!==void 0?e.textLabel=c[f]:c&&(e.textLabel=c),!0}};Q4.update=function(e){var r=this.scene,t=r.fullSceneLayout;this.data=n5e(e);function n(u,s,f,c){return s.map(function(g){return u.d2l(g,0,c)*f})}var a=fH(n(t.xaxis,e._meshX,r.dataScale[0],e.xcalendar),n(t.yaxis,e._meshY,r.dataScale[1],e.ycalendar),n(t.zaxis,e._meshZ,r.dataScale[2],e.zcalendar)),o=fH(e._meshI,e._meshJ,e._meshK),i={positions:a,cells:o,lightPosition:[e.lightposition.x,e.lightposition.y,e.lightposition.z],ambient:e.lighting.ambient,diffuse:e.lighting.diffuse,specular:e.lighting.specular,roughness:e.lighting.roughness,fresnel:e.lighting.fresnel,vertexNormalsEpsilon:e.lighting.vertexnormalsepsilon,faceNormalsEpsilon:e.lighting.facenormalsepsilon,opacity:e.opacity,opacityscale:e.opacityscale,contourEnable:e.contour.show,contourColor:r5e(e.contour.color).slice(0,3),contourWidth:e.contour.width,useFacetNormals:e.flatshading},l=t5e(e);i.vertexIntensity=e._meshIntensity,i.vertexIntensityBounds=[l.min,l.max],i.colormap=jme(e),this.mesh.update(i)};Q4.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()};function a5e(e,r){var t=e.glplot.gl,n=Qme({gl:t}),a=new cH(e,n,r.uid);return n._trace=a,a.update(r),e.glplot.add(n),a}vH.exports=a5e});var pH=xe((Q8e,dH)=>{"use strict";dH.exports={attributes:$4(),supplyDefaults:uH(),calc:W4(),colorbar:{min:"cmin",max:"cmax"},plot:hH(),moduleType:"trace",name:"volume",basePlotModule:Zl(),categories:["gl3d","showLegend"],meta:{}}});var yH=xe((j8e,gH)=>{"use strict";gH.exports=pH()});var xH=xe((e9e,bH)=>{"use strict";var i5e=Cr(),mH=tr(),o5e=oo(),l5e=Vu();bH.exports=function(r,t,n,a){function o(f,c){return mH.coerce(r,t,l5e,f,c)}function i(f){var c=f.map(function(g){var x=o(g);return x&&mH.isArrayOrTypedArray(x)?x:null});return c.every(function(g){return g&&g.length===c[0].length})&&c}var l=i(["x","y","z"]);if(!l){t.visible=!1;return}if(i(["i","j","k"]),t.i&&(!t.j||!t.k)||t.j&&(!t.k||!t.i)||t.k&&(!t.i||!t.j)){t.visible=!1;return}var u=i5e.getComponentMethod("calendars","handleTraceDefaults");u(r,t,["x","y","z"],a),["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(f){o(f)});var s=o("contour.show");s&&(o("contour.color"),o("contour.width")),"intensity"in r?(o("intensity"),o("intensitymode"),o5e(r,t,a,o,{prefix:"",cLetter:"c"})):(t.showscale=!1,"facecolor"in r?o("facecolor"):"vertexcolor"in r?o("vertexcolor"):o("color",n)),o("text"),o("hovertext"),o("hovertemplate"),o("hovertemplatefallback"),o("xhoverformat"),o("yhoverformat"),o("zhoverformat"),t._length=null}});var wH=xe((r9e,_H)=>{"use strict";var s5e=Tl();_H.exports=function(r,t){t.intensity&&s5e(r,t,{vals:t.intensity,containerStr:"",cLetter:"c"})}});var SH=xe((t9e,kH)=>{"use strict";var u5e=In().gl_mesh3d,f5e=In().delaunay_triangulate,c5e=In().alpha_shape,v5e=In().convex_hull,h5e=Wl().parseColorScale,d5e=tr().isArrayOrTypedArray,t6=$o(),p5e=lo().extractOpts,MH=Yu();function AH(e,r,t){this.scene=e,this.uid=t,this.mesh=r,this.name="",this.color="#fff",this.data=null,this.showContour=!1}var n6=AH.prototype;n6.handlePick=function(e){if(e.object===this.mesh){var r=e.index=e.data.index;e.data._cellCenter?e.traceCoordinate=e.data.dataCoordinate:e.traceCoordinate=[this.data.x[r],this.data.y[r],this.data.z[r]];var t=this.data.hovertext||this.data.text;return d5e(t)&&t[r]!==void 0?e.textLabel=t[r]:t&&(e.textLabel=t),!0}};function TH(e){for(var r=[],t=e.length,n=0;n=r-.5)return!1;return!0}n6.update=function(e){var r=this.scene,t=r.fullSceneLayout;this.data=e;var n=e.x.length,a=MH(j4(t.xaxis,e.x,r.dataScale[0],e.xcalendar),j4(t.yaxis,e.y,r.dataScale[1],e.ycalendar),j4(t.zaxis,e.z,r.dataScale[2],e.zcalendar)),o;if(e.i&&e.j&&e.k){if(e.i.length!==e.j.length||e.j.length!==e.k.length||!r6(e.i,n)||!r6(e.j,n)||!r6(e.k,n))return;o=MH(e6(e.i),e6(e.j),e6(e.k))}else e.alphahull===0?o=v5e(a):e.alphahull>0?o=c5e(e.alphahull,a):o=g5e(e.delaunayaxis,a);var i={positions:a,cells:o,lightPosition:[e.lightposition.x,e.lightposition.y,e.lightposition.z],ambient:e.lighting.ambient,diffuse:e.lighting.diffuse,specular:e.lighting.specular,roughness:e.lighting.roughness,fresnel:e.lighting.fresnel,vertexNormalsEpsilon:e.lighting.vertexnormalsepsilon,faceNormalsEpsilon:e.lighting.facenormalsepsilon,opacity:e.opacity,contourEnable:e.contour.show,contourColor:t6(e.contour.color).slice(0,3),contourWidth:e.contour.width,useFacetNormals:e.flatshading};if(e.intensity){var l=p5e(e);this.color="#fff";var u=e.intensitymode;i[u+"Intensity"]=e.intensity,i[u+"IntensityBounds"]=[l.min,l.max],i.colormap=h5e(e)}else e.vertexcolor?(this.color=e.vertexcolor[0],i.vertexColors=TH(e.vertexcolor)):e.facecolor?(this.color=e.facecolor[0],i.cellColors=TH(e.facecolor)):(this.color=e.color,i.meshColor=t6(e.color));this.mesh.update(i)};n6.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()};function y5e(e,r){var t=e.glplot.gl,n=u5e({gl:t}),a=new AH(e,n,r.uid);return n._trace=a,a.update(r),e.glplot.add(n),a}kH.exports=y5e});var EH=xe((n9e,CH)=>{"use strict";CH.exports={attributes:Vu(),supplyDefaults:xH(),calc:wH(),colorbar:{min:"cmin",max:"cmax"},plot:SH(),moduleType:"trace",name:"mesh3d",basePlotModule:Zl(),categories:["gl3d","showLegend"],meta:{}}});var DH=xe((a9e,LH)=>{"use strict";LH.exports=EH()});var i6=xe((i9e,FH)=>{"use strict";var m5e=Di(),Xu=No().axisHoverFormat,{hovertemplateAttrs:b5e,templatefallbackAttrs:x5e}=Si(),_5e=Vu(),RH=Zn(),a6=Rt().extendFlat,Mp={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","raw"],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:b5e({editType:"calc"},{keys:["norm"]}),hovertemplatefallback:x5e({editType:"calc"}),uhoverformat:Xu("u",1),vhoverformat:Xu("v",1),whoverformat:Xu("w",1),xhoverformat:Xu("x"),yhoverformat:Xu("y"),zhoverformat:Xu("z"),showlegend:a6({},RH.showlegend,{dflt:!1})};a6(Mp,m5e("",{colorAttr:"u/v/w norm",showScaleDflt:!0,editTypeOverride:"calc"}));var w5e=["opacity","lightposition","lighting"];w5e.forEach(function(e){Mp[e]=_5e[e]});Mp.hoverinfo=a6({},RH.hoverinfo,{editType:"calc",flags:["x","y","z","u","v","w","norm","text","name"],dflt:"x+y+z+norm+text+name"});FH.exports=Mp});var IH=xe((o9e,PH)=>{"use strict";var M5e=tr(),T5e=oo(),A5e=i6();PH.exports=function(r,t,n,a){function o(x,h){return M5e.coerce(r,t,A5e,x,h)}var i=o("u"),l=o("v"),u=o("w"),s=o("x"),f=o("y"),c=o("z");if(!i||!i.length||!l||!l.length||!u||!u.length||!s||!s.length||!f||!f.length||!c||!c.length){t.visible=!1;return}var g=o("sizemode");o("sizeref",g==="raw"?1:.5),o("anchor"),o("lighting.ambient"),o("lighting.diffuse"),o("lighting.specular"),o("lighting.roughness"),o("lighting.fresnel"),o("lightposition.x"),o("lightposition.y"),o("lightposition.z"),T5e(r,t,a,o,{prefix:"",cLetter:"c"}),o("text"),o("hovertext"),o("hovertemplate"),o("hovertemplatefallback"),o("uhoverformat"),o("vhoverformat"),o("whoverformat"),o("xhoverformat"),o("yhoverformat"),o("zhoverformat"),t._length=null}});var NH=xe((l9e,zH)=>{"use strict";var k5e=Tl();zH.exports=function(r,t){for(var n=t.u,a=t.v,o=t.w,i=Math.min(t.x.length,t.y.length,t.z.length,n.length,a.length,o.length),l=-1/0,u=1/0,s=0;s{"use strict";var S5e=In().gl_cone3d,C5e=In().gl_cone3d.createConeMesh,E5e=tr().simpleMap,L5e=Wl().parseColorScale,D5e=lo().extractOpts,R5e=tr().isArrayOrTypedArray,qH=Yu();function BH(e,r){this.scene=e,this.uid=r,this.mesh=null,this.data=null}var o6=BH.prototype;o6.handlePick=function(e){if(e.object===this.mesh){var r=e.index=e.data.index,t=this.data.x[r],n=this.data.y[r],a=this.data.z[r],o=this.data.u[r],i=this.data.v[r],l=this.data.w[r];e.traceCoordinate=[t,n,a,o,i,l,Math.sqrt(o*o+i*i+l*l)];var u=this.data.hovertext||this.data.text;return R5e(u)&&u[r]!==void 0?e.textLabel=u[r]:u&&(e.textLabel=u),!0}};var F5e={xaxis:0,yaxis:1,zaxis:2},P5e={tip:1,tail:0,cm:.25,center:.5},I5e={tip:1,tail:1,cm:.75,center:.5};function OH(e,r){var t=e.fullSceneLayout,n=e.dataScale,a={};function o(f,c){var g=t[c],x=n[F5e[c]];return E5e(f,function(h){return g.d2l(h)*x})}a.vectors=qH(o(r.u,"xaxis"),o(r.v,"yaxis"),o(r.w,"zaxis"),r._len),a.positions=qH(o(r.x,"xaxis"),o(r.y,"yaxis"),o(r.z,"zaxis"),r._len);var i=D5e(r);a.colormap=L5e(r),a.vertexIntensityBounds=[i.min/r._normMax,i.max/r._normMax],a.coneOffset=P5e[r.anchor];var l=r.sizemode;l==="scaled"?a.coneSize=r.sizeref||.5:l==="absolute"?a.coneSize=r.sizeref&&r._normMax?r.sizeref/r._normMax:.5:l==="raw"&&(a.coneSize=r.sizeref),a.coneSizemode=l;var u=S5e(a),s=r.lightposition;return u.lightPosition=[s.x,s.y,s.z],u.ambient=r.lighting.ambient,u.diffuse=r.lighting.diffuse,u.specular=r.lighting.specular,u.roughness=r.lighting.roughness,u.fresnel=r.lighting.fresnel,u.opacity=r.opacity,r._pad=I5e[r.anchor]*u.vectorScale*u.coneScale*r._normMax,u}o6.update=function(e){this.data=e;var r=OH(this.scene,e);this.mesh.update(r)};o6.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()};function z5e(e,r){var t=e.glplot.gl,n=OH(e,r),a=C5e(t,n),o=new BH(e,r.uid);return o.mesh=a,o.data=r,a._trace=o,e.glplot.add(a),o}UH.exports=z5e});var GH=xe((u9e,VH)=>{"use strict";VH.exports={moduleType:"trace",name:"cone",basePlotModule:Zl(),categories:["gl3d","showLegend"],attributes:i6(),supplyDefaults:IH(),colorbar:{min:"cmin",max:"cmax"},calc:NH(),plot:HH(),eventData:function(e,r){return e.norm=r.traceCoordinate[6],e},meta:{}}});var XH=xe((f9e,YH)=>{"use strict";YH.exports=GH()});var s6=xe((c9e,ZH)=>{"use strict";var N5e=Di(),Wu=No().axisHoverFormat,{hovertemplateAttrs:q5e,templatefallbackAttrs:B5e}=Si(),O5e=Vu(),WH=Zn(),l6=Rt().extendFlat,Tp={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"},starts:{x:{valType:"data_array",editType:"calc"},y:{valType:"data_array",editType:"calc"},z:{valType:"data_array",editType:"calc"},editType:"calc"},maxdisplayed:{valType:"integer",min:0,dflt:1e3,editType:"calc"},sizeref:{valType:"number",editType:"calc",min:0,dflt:1},text:{valType:"string",dflt:"",editType:"calc"},hovertext:{valType:"string",dflt:"",editType:"calc"},hovertemplate:q5e({editType:"calc"},{keys:["tubex","tubey","tubez","tubeu","tubev","tubew","norm","divergence"]}),hovertemplatefallback:B5e({editType:"calc"}),uhoverformat:Wu("u",1),vhoverformat:Wu("v",1),whoverformat:Wu("w",1),xhoverformat:Wu("x"),yhoverformat:Wu("y"),zhoverformat:Wu("z"),showlegend:l6({},WH.showlegend,{dflt:!1})};l6(Tp,N5e("",{colorAttr:"u/v/w norm",showScaleDflt:!0,editTypeOverride:"calc"}));var U5e=["opacity","lightposition","lighting"];U5e.forEach(function(e){Tp[e]=O5e[e]});Tp.hoverinfo=l6({},WH.hoverinfo,{editType:"calc",flags:["x","y","z","u","v","w","norm","divergence","text","name"],dflt:"x+y+z+norm+text+name"});ZH.exports=Tp});var $H=xe((v9e,JH)=>{"use strict";var H5e=tr(),V5e=oo(),G5e=s6();JH.exports=function(r,t,n,a){function o(g,x){return H5e.coerce(r,t,G5e,g,x)}var i=o("u"),l=o("v"),u=o("w"),s=o("x"),f=o("y"),c=o("z");if(!i||!i.length||!l||!l.length||!u||!u.length||!s||!s.length||!f||!f.length||!c||!c.length){t.visible=!1;return}o("starts.x"),o("starts.y"),o("starts.z"),o("maxdisplayed"),o("sizeref"),o("lighting.ambient"),o("lighting.diffuse"),o("lighting.specular"),o("lighting.roughness"),o("lighting.fresnel"),o("lightposition.x"),o("lightposition.y"),o("lightposition.z"),V5e(r,t,a,o,{prefix:"",cLetter:"c"}),o("text"),o("hovertext"),o("hovertemplate"),o("hovertemplatefallback"),o("uhoverformat"),o("vhoverformat"),o("whoverformat"),o("xhoverformat"),o("yhoverformat"),o("zhoverformat"),t._length=null}});var aV=xe((h9e,nV)=>{"use strict";var jH=In().gl_streamtube3d,Y5e=jH.createTubeMesh,X5e=tr(),W5e=Wl().parseColorScale,Z5e=lo().extractOpts,KH=Yu(),eV={xaxis:0,yaxis:1,zaxis:2};function rV(e,r){this.scene=e,this.uid=r,this.mesh=null,this.data=null}var f6=rV.prototype;f6.handlePick=function(e){var r=this.scene.fullSceneLayout,t=this.scene.dataScale;function n(i,l){var u=r[l],s=t[eV[l]];return u.l2c(i)/s}if(e.object===this.mesh){var a=e.data.position,o=e.data.velocity;return e.traceCoordinate=[n(a[0],"xaxis"),n(a[1],"yaxis"),n(a[2],"zaxis"),n(o[0],"xaxis"),n(o[1],"yaxis"),n(o[2],"zaxis"),e.data.intensity*this.data._normMax,e.data.divergence],e.textLabel=this.data.hovertext||this.data.text,!0}};function QH(e){var r=e.length,t;return r>2?t=e.slice(1,r-1):r===2?t=[(e[0]+e[1])/2]:t=e,t}function u6(e){var r=e.length;return r===1?[.5,.5]:[e[1]-e[0],e[r-1]-e[r-2]]}function tV(e,r){var t=e.fullSceneLayout,n=e.dataScale,a=r._len,o={};function i(D,E){var R=t[E],F=n[eV[E]];return X5e.simpleMap(D,function(z){return R.d2l(z)*F})}if(o.vectors=KH(i(r._u,"xaxis"),i(r._v,"yaxis"),i(r._w,"zaxis"),a),!a)return{positions:[],cells:[]};var l=i(r._Xs,"xaxis"),u=i(r._Ys,"yaxis"),s=i(r._Zs,"zaxis");o.meshgrid=[l,u,s],o.gridFill=r._gridFill;var f=r._slen;if(f)o.startingPositions=KH(i(r._startsX,"xaxis"),i(r._startsY,"yaxis"),i(r._startsZ,"zaxis"));else{for(var c=u[0],g=QH(l),x=QH(s),h=new Array(g.length*x.length),_=0,T=0;T{"use strict";iV.exports={moduleType:"trace",name:"streamtube",basePlotModule:Zl(),categories:["gl3d","showLegend"],attributes:s6(),supplyDefaults:$H(),colorbar:{min:"cmin",max:"cmax"},calc:bp().calc,plot:aV(),eventData:function(e,r){return e.tubex=e.x,e.tubey=e.y,e.tubez=e.z,e.tubeu=r.traceCoordinate[3],e.tubev=r.traceCoordinate[4],e.tubew=r.traceCoordinate[5],e.norm=r.traceCoordinate[6],e.divergence=r.traceCoordinate[7],delete e.x,delete e.y,delete e.z,e},meta:{}}});var sV=xe((p9e,lV)=>{"use strict";lV.exports=oV()});var ta=xe((g9e,fV)=>{"use strict";var uV=Object.getOwnPropertySymbols,$5e=Object.prototype.hasOwnProperty,K5e=Object.prototype.propertyIsEnumerable;function Q5e(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function j5e(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var r={},t=0;t<10;t++)r["_"+String.fromCharCode(t)]=t;var n=Object.getOwnPropertyNames(r).map(function(o){return r[o]});if(n.join("")!=="0123456789")return!1;var a={};return"abcdefghijklmnopqrst".split("").forEach(function(o){a[o]=o}),Object.keys(Object.assign({},a)).join("")==="abcdefghijklmnopqrst"}catch(o){return!1}}fV.exports=j5e()?Object.assign:function(e,r){for(var t,n=Q5e(e),a,o=1;o{var kp=ta();function cV(){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={}}kp(cV.prototype,{instance:function(e,r){e=(e||"gregorian").toLowerCase(),r=r||"";var t=this._localCals[e+"-"+r];if(!t&&this.calendars[e]&&(t=new this.calendars[e](r),this._localCals[e+"-"+r]=t),!t)throw(this.local.invalidCalendar||this.regionalOptions[""].invalidCalendar).replace(/\{0\}/,e);return t},newDate:function(e,r,t,n,a){return n=(e!=null&&e.year?e.calendar():typeof n=="string"?this.instance(n,a):n)||this.instance(),n.newDate(e,r,t)},substituteDigits:function(e){return function(r){return(r+"").replace(/[0-9]/g,function(t){return e[t]})}},substituteChineseDigits:function(e,r){return function(t){for(var n="",a=0;t>0;){var o=t%10;n=(o===0?"":e[o]+r[a])+n,a++,t=Math.floor(t/10)}return n.indexOf(e[1]+r[1])===0&&(n=n.substr(1)),n||e[0]}}});function c6(e,r,t,n){if(this._calendar=e,this._year=r,this._month=t,this._day=n,this._calendar._validateLevel===0&&!this._calendar.isValid(this._year,this._month,this._day))throw($r.local.invalidDate||$r.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name)}function Ap(e,r){return e=""+e,"000000".substring(0,r-e.length)+e}kp(c6.prototype,{newDate:function(e,r,t){return this._calendar.newDate(e==null?this:e,r,t)},year:function(e){return arguments.length===0?this._year:this.set(e,"y")},month:function(e){return arguments.length===0?this._month:this.set(e,"m")},day:function(e){return arguments.length===0?this._day:this.set(e,"d")},date:function(e,r,t){if(!this._calendar.isValid(e,r,t))throw($r.local.invalidDate||$r.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name);return this._year=e,this._month=r,this._day=t,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(e,r){return this._calendar.add(this,e,r)},set:function(e,r){return this._calendar.set(this,e,r)},compareTo:function(e){if(this._calendar.name!==e._calendar.name)throw($r.local.differentCalendars||$r.regionalOptions[""].differentCalendars).replace(/\{0\}/,this._calendar.local.name).replace(/\{1\}/,e._calendar.local.name);var r=this._year!==e._year?this._year-e._year:this._month!==e._month?this.monthOfYear()-e.monthOfYear():this._day-e._day;return r===0?0:r<0?-1:1},calendar:function(){return this._calendar},toJD:function(){return this._calendar.toJD(this)},fromJD:function(e){return this._calendar.fromJD(e)},toJSDate:function(){return this._calendar.toJSDate(this)},fromJSDate:function(e){return this._calendar.fromJSDate(e)},toString:function(){return(this.year()<0?"-":"")+Ap(Math.abs(this.year()),4)+"-"+Ap(this.month(),2)+"-"+Ap(this.day(),2)}});function v6(){this.shortYearCutoff="+10"}kp(v6.prototype,{_validateLevel:0,newDate:function(e,r,t){return e==null?this.today():(e.year&&(this._validate(e,r,t,$r.local.invalidDate||$r.regionalOptions[""].invalidDate),t=e.day(),r=e.month(),e=e.year()),new c6(this,e,r,t))},today:function(){return this.fromJSDate(new Date)},epoch:function(e){var r=this._validate(e,this.minMonth,this.minDay,$r.local.invalidYear||$r.regionalOptions[""].invalidYear);return r.year()<0?this.local.epochs[0]:this.local.epochs[1]},formatYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,$r.local.invalidYear||$r.regionalOptions[""].invalidYear);return(r.year()<0?"-":"")+Ap(Math.abs(r.year()),4)},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,$r.local.invalidYear||$r.regionalOptions[""].invalidYear),12},monthOfYear:function(e,r){var t=this._validate(e,r,this.minDay,$r.local.invalidMonth||$r.regionalOptions[""].invalidMonth);return(t.month()+this.monthsInYear(t)-this.firstMonth)%this.monthsInYear(t)+this.minMonth},fromMonthOfYear:function(e,r){var t=(r+this.firstMonth-2*this.minMonth)%this.monthsInYear(e)+this.minMonth;return this._validate(e,t,this.minDay,$r.local.invalidMonth||$r.regionalOptions[""].invalidMonth),t},daysInYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,$r.local.invalidYear||$r.regionalOptions[""].invalidYear);return this.leapYear(r)?366:365},dayOfYear:function(e,r,t){var n=this._validate(e,r,t,$r.local.invalidDate||$r.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(e,r,t){var n=this._validate(e,r,t,$r.local.invalidDate||$r.regionalOptions[""].invalidDate);return(Math.floor(this.toJD(n))+2)%this.daysInWeek()},extraInfo:function(e,r,t){return this._validate(e,r,t,$r.local.invalidDate||$r.regionalOptions[""].invalidDate),{}},add:function(e,r,t){return this._validate(e,this.minMonth,this.minDay,$r.local.invalidDate||$r.regionalOptions[""].invalidDate),this._correctAdd(e,this._add(e,r,t),r,t)},_add:function(e,r,t){if(this._validateLevel++,t==="d"||t==="w"){var n=e.toJD()+r*(t==="w"?this.daysInWeek():1),a=e.calendar().fromJD(n);return this._validateLevel--,[a.year(),a.month(),a.day()]}try{var o=e.year()+(t==="y"?r:0),i=e.monthOfYear()+(t==="m"?r:0),a=e.day(),l=function(f){for(;ic-1+f.minMonth;)o++,i-=c,c=f.monthsInYear(o)};t==="y"?(e.month()!==this.fromMonthOfYear(o,i)&&(i=this.newDate(o,e.month(),this.minDay).monthOfYear()),i=Math.min(i,this.monthsInYear(o)),a=Math.min(a,this.daysInMonth(o,this.fromMonthOfYear(o,i)))):t==="m"&&(l(this),a=Math.min(a,this.daysInMonth(o,this.fromMonthOfYear(o,i))));var u=[o,this.fromMonthOfYear(o,i),a];return this._validateLevel--,u}catch(s){throw this._validateLevel--,s}},_correctAdd:function(e,r,t,n){if(!this.hasYearZero&&(n==="y"||n==="m")&&(r[0]===0||e.year()>0!=r[0]>0)){var a={y:[1,1,"y"],m:[1,this.monthsInYear(-1),"m"],w:[this.daysInWeek(),this.daysInYear(-1),"d"],d:[1,this.daysInYear(-1),"d"]}[n],o=t<0?-1:1;r=this._add(e,t*a[0]+o*a[1],a[2])}return e.date(r[0],r[1],r[2])},set:function(e,r,t){this._validate(e,this.minMonth,this.minDay,$r.local.invalidDate||$r.regionalOptions[""].invalidDate);var n=t==="y"?r:e.year(),a=t==="m"?r:e.month(),o=t==="d"?r:e.day();return(t==="y"||t==="m")&&(o=Math.min(o,this.daysInMonth(n,a))),e.date(n,a,o)},isValid:function(e,r,t){this._validateLevel++;var n=this.hasYearZero||e!==0;if(n){var a=this.newDate(e,r,this.minDay);n=r>=this.minMonth&&r-this.minMonth=this.minDay&&t-this.minDay13.5?13:1),s=a-(u>2.5?4716:4715);return s<=0&&s--,this.newDate(s,u,l)},toJSDate:function(e,r,t){var n=this._validate(e,r,t,$r.local.invalidDate||$r.regionalOptions[""].invalidDate),a=new Date(n.year(),n.month()-1,n.day());return a.setHours(0),a.setMinutes(0),a.setSeconds(0),a.setMilliseconds(0),a.setHours(a.getHours()>12?a.getHours()+2:0),a},fromJSDate:function(e){return this.newDate(e.getFullYear(),e.getMonth()+1,e.getDate())}});var $r=vV.exports=new cV;$r.cdate=c6;$r.baseCalendar=v6;$r.calendars.gregorian=h6});var hV=xe(()=>{var d6=ta(),zn=na();d6(zn.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"});zn.local=zn.regionalOptions[""];d6(zn.cdate.prototype,{formatDate:function(e,r){return typeof e!="string"&&(r=e,e=""),this._calendar.formatDate(e||"",this,r)}});d6(zn.baseCalendar.prototype,{UNIX_EPOCH:zn.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:1440*60,TICKS_EPOCH:zn.instance().jdEpoch,TICKS_PER_DAY:1440*60*1e7,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(e,r,t){if(typeof e!="string"&&(t=r,r=e,e=""),!r)return"";if(r.calendar()!==this)throw zn.local.invalidFormat||zn.regionalOptions[""].invalidFormat;e=e||this.local.dateFormat,t=t||{};for(var n=t.dayNamesShort||this.local.dayNamesShort,a=t.dayNames||this.local.dayNames,o=t.monthNumbers||this.local.monthNumbers,i=t.monthNamesShort||this.local.monthNamesShort,l=t.monthNames||this.local.monthNames,u=t.calculateWeek||this.local.calculateWeek,s=function(b,M){for(var d=1;S+d1},f=function(b,M,d,w){var y=""+M;if(s(b,w))for(;y.length1},k=function(D,E){var R=m(D,E),F=[2,3,R?4:2,R?4:2,10,11,20]["oyYJ@!".indexOf(D)+1],z=new RegExp("^-?\\d{1,"+F+"}"),P=r.substring(y).match(z);if(!P)throw(zn.local.missingNumberAt||zn.regionalOptions[""].missingNumberAt).replace(/\{0\}/,y);return y+=P[0].length,parseInt(P[0],10)},S=this,b=function(){if(typeof l=="function"){m("m");var D=l.call(S,r.substring(y));return y+=D.length,D}return k("m")},M=function(D,E,R,F){for(var z=m(D,F)?R:E,P=0;P-1){g=1,x=h;for(var p=this.daysInMonth(c,g);x>p;p=this.daysInMonth(c,g))g++,x-=p}return f>-1?this.fromJD(f):this.newDate(c,g,x)},determineDate:function(e,r,t,n,a){t&&typeof t!="object"&&(a=n,n=t,t=null),typeof n!="string"&&(a=n,n="");var o=this,i=function(l){try{return o.parseDate(n,l,a)}catch(c){}l=l.toLowerCase();for(var u=(l.match(/^c/)&&t?t.newDate():null)||o.today(),s=/([+-]?[0-9]+)\s*(d|w|m|y)?/g,f=s.exec(l);f;)u.add(parseInt(f[1],10),f[2]||"d"),f=s.exec(l);return u};return r=r?r.newDate():null,e=e==null?r:typeof e=="string"?i(e):typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?r:o.today().add(e,"d"):o.newDate(e),e}})});var dV=xe(()=>{var Kl=na(),ebe=ta(),p6=Kl.instance();function Sp(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}Sp.prototype=new Kl.baseCalendar;ebe(Sp.prototype,{name:"Chinese",jdEpoch:17214255e-1,hasYearZero:!1,minMonth:0,firstMonth:0,minDay:1,regionalOptions:{"":{name:"Chinese",epochs:["BEC","EC"],monthNumbers:function(e,r){if(typeof e=="string"){var t=e.match(tbe);return t?t[0]:""}var n=this._validateYear(e),a=e.month(),o=""+this.toChineseMonth(n,a);return r&&o.length<2&&(o="0"+o),this.isIntercalaryMonth(n,a)&&(o+="i"),o},monthNames:function(e){if(typeof e=="string"){var r=e.match(nbe);return r?r[0]:""}var t=this._validateYear(e),n=e.month(),a=this.toChineseMonth(t,n),o=["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"][a-1];return this.isIntercalaryMonth(t,n)&&(o="\u95F0"+o),o},monthNamesShort:function(e){if(typeof e=="string"){var r=e.match(abe);return r?r[0]:""}var t=this._validateYear(e),n=e.month(),a=this.toChineseMonth(t,n),o=["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"][a-1];return this.isIntercalaryMonth(t,n)&&(o="\u95F0"+o),o},parseMonth:function(e,r){e=this._validateYear(e);var t=parseInt(r),n;if(isNaN(t))r[0]==="\u95F0"&&(n=!0,r=r.substring(1)),r[r.length-1]==="\u6708"&&(r=r.substring(0,r.length-1)),t=1+["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"].indexOf(r);else{var a=r[r.length-1];n=a==="i"||a==="I"}var o=this.toMonthIndex(e,t,n);return o},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(e,r){if(e.year&&(e=e.year()),typeof e!="number"||e<1888||e>2111)throw r.replace(/\{0\}/,this.local.name);return e},toMonthIndex:function(e,r,t){var n=this.intercalaryMonth(e),a=t&&r!==n;if(a||r<1||r>12)throw Kl.local.invalidMonth.replace(/\{0\}/,this.local.name);var o;return n?!t&&r<=n?o=r-1:o=r:o=r-1,o},toChineseMonth:function(e,r){e.year&&(e=e.year(),r=e.month());var t=this.intercalaryMonth(e),n=t?12:11;if(r<0||r>n)throw Kl.local.invalidMonth.replace(/\{0\}/,this.local.name);var a;return t?r>13;return t},isIntercalaryMonth:function(e,r){e.year&&(e=e.year(),r=e.month());var t=this.intercalaryMonth(e);return!!t&&t===r},leapYear:function(e){return this.intercalaryMonth(e)!==0},weekOfYear:function(e,r,t){var n=this._validateYear(e,Kl.local.invalidyear),a=jl[n-jl[0]],o=a>>9&4095,i=a>>5&15,l=a&31,u;u=p6.newDate(o,i,l),u.add(4-(u.dayOfWeek()||7),"d");var s=this.toJD(e,r,t)-u.toJD();return 1+Math.floor(s/7)},monthsInYear:function(e){return this.leapYear(e)?13:12},daysInMonth:function(e,r){e.year&&(r=e.month(),e=e.year()),e=this._validateYear(e);var t=Ql[e-Ql[0]],n=t>>13,a=n?12:11;if(r>a)throw Kl.local.invalidMonth.replace(/\{0\}/,this.local.name);var o=t&1<<12-r?30:29;return o},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var n=this._validate(e,o,t,Kl.local.invalidDate);e=this._validateYear(n.year()),r=n.month(),t=n.day();var a=this.isIntercalaryMonth(e,r),o=this.toChineseMonth(e,r),i=obe(e,o,t,a);return p6.toJD(i.year,i.month,i.day)},fromJD:function(e){var r=p6.fromJD(e),t=ibe(r.year(),r.month(),r.day()),n=this.toMonthIndex(t.year,t.month,t.isIntercalary);return this.newDate(t.year,n,t.day)},fromString:function(e){var r=e.match(rbe),t=this._validateYear(+r[1]),n=+r[2],a=!!r[3],o=this.toMonthIndex(t,n,a),i=+r[4];return this.newDate(t,o,i)},add:function(e,r,t){var n=e.year(),a=e.month(),o=this.isIntercalaryMonth(n,a),i=this.toChineseMonth(n,a),l=Object.getPrototypeOf(Sp.prototype).add.call(this,e,r,t);if(t==="y"){var u=l.year(),s=l.month(),f=this.isIntercalaryMonth(u,i),c=o&&f?this.toMonthIndex(u,i,!0):this.toMonthIndex(u,i,!1);c!==s&&l.month(c)}return l}});var rbe=/^\s*(-?\d\d\d\d|\d\d)[-/](\d?\d)([iI]?)[-/](\d?\d)/m,tbe=/^\d?\d[iI]?/m,nbe=/^闰?十?[一二三四五六七八九]?月/m,abe=/^闰?十?[一二三四五六七八九]?/m;Kl.calendars.chinese=Sp;var Ql=[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],jl=[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 ibe(e,r,t,n){var a,o;if(typeof e=="object")a=e,o=r||{};else{var i=typeof e=="number"&&e>=1888&&e<=2111;if(!i)throw new Error("Solar year outside range 1888-2111");var l=typeof r=="number"&&r>=1&&r<=12;if(!l)throw new Error("Solar month outside range 1 - 12");var u=typeof t=="number"&&t>=1&&t<=31;if(!u)throw new Error("Solar day outside range 1 - 31");a={year:e,month:r,day:t},o=n||{}}var s=jl[a.year-jl[0]],f=a.year<<9|a.month<<5|a.day;o.year=f>=s?a.year:a.year-1,s=jl[o.year-jl[0]];var c=s>>9&4095,g=s>>5&15,x=s&31,h,_=new Date(c,g-1,x),T=new Date(a.year,a.month-1,a.day);h=Math.round((T-_)/(24*3600*1e3));var m=Ql[o.year-Ql[0]],k;for(k=0;k<13;k++){var S=m&1<<12-k?30:29;if(h>13;return!b||k=1888&&e<=2111;if(!l)throw new Error("Lunar year outside range 1888-2111");var u=typeof r=="number"&&r>=1&&r<=12;if(!u)throw new Error("Lunar month outside range 1 - 12");var s=typeof t=="number"&&t>=1&&t<=30;if(!s)throw new Error("Lunar day outside range 1 - 30");var f;typeof n=="object"?(f=!1,o=n):(f=!!n,o=a||{}),i={year:e,month:r,day:t,isIntercalary:f}}var c;c=i.day-1;var g=Ql[i.year-Ql[0]],x=g>>13,h;x&&(i.month>x||i.isIntercalary)?h=i.month:h=i.month-1;for(var _=0;_>9&4095,S=m>>5&15,b=m&31,M=new Date(k,S-1,b+c);return o.year=M.getFullYear(),o.month=1+M.getMonth(),o.day=M.getDate(),o}});var pV=xe(()=>{var s0=na(),lbe=ta();function g6(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}g6.prototype=new s0.baseCalendar;lbe(g6.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(t){var r=this._validate(t,this.minMonth,this.minDay,s0.local.invalidYear),t=r.year()+(r.year()<0?1:0);return t%4===3||t%4===-1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,s0.local.invalidYear||s0.regionalOptions[""].invalidYear),13},weekOfYear:function(e,r,t){var n=this.newDate(e,r,t);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,s0.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===13&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var n=this._validate(e,r,t,s0.local.invalidDate);return e=n.year(),e<0&&e++,n.day()+(n.month()-1)*30+(e-1)*365+Math.floor(e/4)+this.jdEpoch-1},fromJD:function(e){var r=Math.floor(e)+.5-this.jdEpoch,t=Math.floor((r-Math.floor((r+366)/1461))/365)+1;t<=0&&t--,r=Math.floor(e)+.5-this.newDate(t,1,1).toJD();var n=Math.floor(r/30)+1,a=r-(n-1)*30+1;return this.newDate(t,n,a)}});s0.calendars.coptic=g6});var gV=xe(()=>{var jo=na(),sbe=ta();function y6(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}y6.prototype=new jo.baseCalendar;sbe(y6.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(e){return this._validate(e,this.minMonth,this.minDay,jo.local.invalidYear),!1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,jo.local.invalidYear),13},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,jo.local.invalidYear),400},weekOfYear:function(e,r,t){var n=this.newDate(e,r,t);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/8)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,jo.local.invalidMonth);return this.daysPerMonth[t.month()-1]},daysInWeek:function(){return 8},dayOfWeek:function(e,r,t){var n=this._validate(e,r,t,jo.local.invalidDate);return(n.day()+1)%8},weekDay:function(e,r,t){var n=this.dayOfWeek(e,r,t);return n>=2&&n<=6},extraInfo:function(e,r,t){var n=this._validate(e,r,t,jo.local.invalidDate);return{century:ube[Math.floor((n.year()-1)/100)+1]||""}},toJD:function(e,r,t){var n=this._validate(e,r,t,jo.local.invalidDate);return e=n.year()+(n.year()<0?1:0),r=n.month(),t=n.day(),t+(r>1?16:0)+(r>2?(r-2)*32:0)+(e-1)*400+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e+.5)-Math.floor(this.jdEpoch)-1;var r=Math.floor(e/400)+1;e-=(r-1)*400,e+=e>15?16:0;var t=Math.floor(e/32)+1,n=e-(t-1)*32+1;return this.newDate(r<=0?r-1:r,t,n)}});var ube={20:"Fruitbat",21:"Anchovy"};jo.calendars.discworld=y6});var yV=xe(()=>{var u0=na(),fbe=ta();function m6(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}m6.prototype=new u0.baseCalendar;fbe(m6.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(t){var r=this._validate(t,this.minMonth,this.minDay,u0.local.invalidYear),t=r.year()+(r.year()<0?1:0);return t%4===3||t%4===-1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,u0.local.invalidYear||u0.regionalOptions[""].invalidYear),13},weekOfYear:function(e,r,t){var n=this.newDate(e,r,t);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,u0.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===13&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var n=this._validate(e,r,t,u0.local.invalidDate);return e=n.year(),e<0&&e++,n.day()+(n.month()-1)*30+(e-1)*365+Math.floor(e/4)+this.jdEpoch-1},fromJD:function(e){var r=Math.floor(e)+.5-this.jdEpoch,t=Math.floor((r-Math.floor((r+366)/1461))/365)+1;t<=0&&t--,r=Math.floor(e)+.5-this.newDate(t,1,1).toJD();var n=Math.floor(r/30)+1,a=r-(n-1)*30+1;return this.newDate(t,n,a)}});u0.calendars.ethiopian=m6});var mV=xe(()=>{var es=na(),cbe=ta();function b6(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}b6.prototype=new es.baseCalendar;cbe(b6.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(e){var r=this._validate(e,this.minMonth,this.minDay,es.local.invalidYear);return this._leapYear(r.year())},_leapYear:function(e){return e=e<0?e+1:e,Cp(e*7+1,19)<7},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,es.local.invalidYear),this._leapYear(e.year?e.year():e)?13:12},weekOfYear:function(e,r,t){var n=this.newDate(e,r,t);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,es.local.invalidYear);return e=r.year(),this.toJD(e===-1?1:e+1,7,1)-this.toJD(e,7,1)},daysInMonth:function(e,r){return e.year&&(r=e.month(),e=e.year()),this._validate(e,r,this.minDay,es.local.invalidMonth),r===12&&this.leapYear(e)||r===8&&Cp(this.daysInYear(e),10)===5?30:r===9&&Cp(this.daysInYear(e),10)===3?29:this.daysPerMonth[r-1]},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==6},extraInfo:function(e,r,t){var n=this._validate(e,r,t,es.local.invalidDate);return{yearType:(this.leapYear(n)?"embolismic":"common")+" "+["deficient","regular","complete"][this.daysInYear(n)%10-3]}},toJD:function(e,r,t){var n=this._validate(e,r,t,es.local.invalidDate);e=n.year(),r=n.month(),t=n.day();var a=e<=0?e+1:e,o=this.jdEpoch+this._delay1(a)+this._delay2(a)+t+1;if(r<7){for(var i=7;i<=this.monthsInYear(e);i++)o+=this.daysInMonth(e,i);for(var i=1;i=this.toJD(r===-1?1:r+1,7,1);)r++;for(var t=ethis.toJD(r,t,this.daysInMonth(r,t));)t++;var n=e-this.toJD(r,t,1)+1;return this.newDate(r,t,n)}});function Cp(e,r){return e-r*Math.floor(e/r)}es.calendars.hebrew=b6});var bV=xe(()=>{var yv=na(),vbe=ta();function x6(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}x6.prototype=new yv.baseCalendar;vbe(x6.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\u012Bs","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(e){var r=this._validate(e,this.minMonth,this.minDay,yv.local.invalidYear);return(r.year()*11+14)%30<11},weekOfYear:function(e,r,t){var n=this.newDate(e,r,t);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(e){return this.leapYear(e)?355:354},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,yv.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===12&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==5},toJD:function(e,r,t){var n=this._validate(e,r,t,yv.local.invalidDate);return e=n.year(),r=n.month(),t=n.day(),e=e<=0?e+1:e,t+Math.ceil(29.5*(r-1))+(e-1)*354+Math.floor((3+11*e)/30)+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e)+.5;var r=Math.floor((30*(e-this.jdEpoch)+10646)/10631);r=r<=0?r-1:r;var t=Math.min(12,Math.ceil((e-29-this.toJD(r,1,1))/29.5)+1),n=e-this.toJD(r,t,1)+1;return this.newDate(r,t,n)}});yv.calendars.islamic=x6});var xV=xe(()=>{var mv=na(),hbe=ta();function _6(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}_6.prototype=new mv.baseCalendar;hbe(_6.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(t){var r=this._validate(t,this.minMonth,this.minDay,mv.local.invalidYear),t=r.year()<0?r.year()+1:r.year();return t%4===0},weekOfYear:function(e,r,t){var n=this.newDate(e,r,t);return n.add(4-(n.dayOfWeek()||7),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,mv.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===2&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(e,r,t){var n=this._validate(e,r,t,mv.local.invalidDate);return e=n.year(),r=n.month(),t=n.day(),e<0&&e++,r<=2&&(e--,r+=12),Math.floor(365.25*(e+4716))+Math.floor(30.6001*(r+1))+t-1524.5},fromJD:function(e){var r=Math.floor(e+.5),t=r+1524,n=Math.floor((t-122.1)/365.25),a=Math.floor(365.25*n),o=Math.floor((t-a)/30.6001),i=o-Math.floor(o<14?1:13),l=n-Math.floor(i>2?4716:4715),u=t-a-Math.floor(30.6001*o);return l<=0&&l--,this.newDate(l,i,u)}});mv.calendars.julian=_6});var wV=xe(()=>{var bi=na(),dbe=ta();function M6(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}M6.prototype=new bi.baseCalendar;dbe(M6.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(e){return this._validate(e,this.minMonth,this.minDay,bi.local.invalidYear),!1},formatYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,bi.local.invalidYear);e=r.year();var t=Math.floor(e/400);e=e%400,e+=e<0?400:0;var n=Math.floor(e/20);return t+"."+n+"."+e%20},forYear:function(e){if(e=e.split("."),e.length<3)throw"Invalid Mayan year";for(var r=0,t=0;t19||t>0&&n<0)throw"Invalid Mayan year";r=r*20+n}return r},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,bi.local.invalidYear),18},weekOfYear:function(e,r,t){return this._validate(e,r,t,bi.local.invalidDate),0},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,bi.local.invalidYear),360},daysInMonth:function(e,r){return this._validate(e,r,this.minDay,bi.local.invalidMonth),20},daysInWeek:function(){return 5},dayOfWeek:function(e,r,t){var n=this._validate(e,r,t,bi.local.invalidDate);return n.day()},weekDay:function(e,r,t){return this._validate(e,r,t,bi.local.invalidDate),!0},extraInfo:function(e,r,t){var n=this._validate(e,r,t,bi.local.invalidDate),a=n.toJD(),o=this._toHaab(a),i=this._toTzolkin(a);return{haabMonthName:this.local.haabMonths[o[0]-1],haabMonth:o[0],haabDay:o[1],tzolkinDayName:this.local.tzolkinMonths[i[0]-1],tzolkinDay:i[0],tzolkinTrecena:i[1]}},_toHaab:function(e){e-=this.jdEpoch;var r=w6(e+8+340,365);return[Math.floor(r/20)+1,w6(r,20)]},_toTzolkin:function(e){return e-=this.jdEpoch,[_V(e+20,20),_V(e+4,13)]},toJD:function(e,r,t){var n=this._validate(e,r,t,bi.local.invalidDate);return n.day()+n.month()*20+n.year()*360+this.jdEpoch},fromJD:function(e){e=Math.floor(e)+.5-this.jdEpoch;var r=Math.floor(e/360);e=e%360,e+=e<0?360:0;var t=Math.floor(e/20),n=e%20;return this.newDate(r,t,n)}});function w6(e,r){return e-r*Math.floor(e/r)}function _V(e,r){return w6(e-1,r)+1}bi.calendars.mayan=M6});var TV=xe(()=>{var f0=na(),pbe=ta();function T6(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}T6.prototype=new f0.baseCalendar;var MV=f0.instance("gregorian");pbe(T6.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(e){var r=this._validate(e,this.minMonth,this.minDay,f0.local.invalidYear||f0.regionalOptions[""].invalidYear);return MV.leapYear(r.year()+(r.year()<1?1:0)+1469)},weekOfYear:function(e,r,t){var n=this.newDate(e,r,t);return n.add(1-(n.dayOfWeek()||7),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,f0.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===12&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(a,r,t){var n=this._validate(a,r,t,f0.local.invalidMonth),a=n.year();a<0&&a++;for(var o=n.day(),i=1;i=this.toJD(r+1,1,1);)r++;for(var t=e-Math.floor(this.toJD(r,1,1)+.5)+1,n=1;t>this.daysInMonth(r,n);)t-=this.daysInMonth(r,n),n++;return this.newDate(r,n,t)}});f0.calendars.nanakshahi=T6});var AV=xe(()=>{var c0=na(),gbe=ta();function A6(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}A6.prototype=new c0.baseCalendar;gbe(A6.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(e){return this.daysInYear(e)!==this.daysPerYear},weekOfYear:function(e,r,t){var n=this.newDate(e,r,t);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,c0.local.invalidYear);if(e=r.year(),typeof this.NEPALI_CALENDAR_DATA[e]=="undefined")return this.daysPerYear;for(var t=0,n=this.minMonth;n<=12;n++)t+=this.NEPALI_CALENDAR_DATA[e][n];return t},daysInMonth:function(e,r){return e.year&&(r=e.month(),e=e.year()),this._validate(e,r,this.minDay,c0.local.invalidMonth),typeof this.NEPALI_CALENDAR_DATA[e]=="undefined"?this.daysPerMonth[r-1]:this.NEPALI_CALENDAR_DATA[e][r]},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==6},toJD:function(e,r,t){var n=this._validate(e,r,t,c0.local.invalidDate);e=n.year(),r=n.month(),t=n.day();var a=c0.instance(),o=0,i=r,l=e;this._createMissingCalendarData(e);var u=e-(i>9||i===9&&t>=this.NEPALI_CALENDAR_DATA[l][0]?56:57);for(r!==9&&(o=t,i--);i!==9;)i<=0&&(i=12,l--),o+=this.NEPALI_CALENDAR_DATA[l][i],i--;return r===9?(o+=t-this.NEPALI_CALENDAR_DATA[l][0],o<0&&(o+=a.daysInYear(u))):o+=this.NEPALI_CALENDAR_DATA[l][9]-this.NEPALI_CALENDAR_DATA[l][0],a.newDate(u,1,1).add(o,"d").toJD()},fromJD:function(e){var r=c0.instance(),t=r.fromJD(e),n=t.year(),a=t.dayOfYear(),o=n+56;this._createMissingCalendarData(o);for(var i=9,l=this.NEPALI_CALENDAR_DATA[o][0],u=this.NEPALI_CALENDAR_DATA[o][i]-l+1;a>u;)i++,i>12&&(i=1,o++),u+=this.NEPALI_CALENDAR_DATA[o][i];var s=this.NEPALI_CALENDAR_DATA[o][i]-(u-a);return this.newDate(o,i,s)},_createMissingCalendarData:function(e){var r=this.daysPerMonth.slice(0);r.unshift(17);for(var t=e-1;t{var Zu=na(),ybe=ta();function Lp(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}function Ep(e){var r=e-475;e<0&&r++;var t=.242197,n=t*r,a=t*(r+1),o=n-Math.floor(n),i=a-Math.floor(a);return o>i}Lp.prototype=new Zu.baseCalendar;ybe(Lp.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","Dey","Bahman","Esfand"],monthNamesShort:["Far","Ord","Kho","Tir","Mor","Sha","Meh","Aba","Aza","Dey","Bah","Esf"],dayNames:["Yekshanbeh","Doshanbeh","Seshanbeh","Chah\u0101rshanbeh","Panjshanbeh","Jom'eh","Shanbeh"],dayNamesShort:["Yek","Do","Se","Cha","Panj","Jom","Sha"],dayNamesMin:["Ye","Do","Se","Ch","Pa","Jo","Sh"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,Zu.local.invalidYear);return Ep(r.year())},weekOfYear:function(e,r,t){var n=this.newDate(e,r,t);return n.add(-((n.dayOfWeek()+1)%7),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,Zu.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===12&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==5},toJD:function(e,r,t){var n=this._validate(e,r,t,Zu.local.invalidDate);e=n.year(),r=n.month(),t=n.day();var a=0;if(e>0)for(var o=1;o0?e-1:e)*365+a+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e)+.5;var r=475+(e-this.toJD(475,1,1))/365.242197,t=Math.floor(r);t<=0&&t--,e>this.toJD(t,12,Ep(t)?30:29)&&(t++,t===0&&t++);var n=e-this.toJD(t,1,1)+1,a=n<=186?Math.ceil(n/31):Math.ceil((n-6)/30),o=e-this.toJD(t,a,1)+1;return this.newDate(t,a,o)}});Zu.calendars.persian=Lp;Zu.calendars.jalali=Lp});var SV=xe(()=>{var v0=na(),mbe=ta(),Dp=v0.instance();function k6(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}k6.prototype=new v0.baseCalendar;mbe(k6.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(t){var r=this._validate(t,this.minMonth,this.minDay,v0.local.invalidYear),t=this._t2gYear(r.year());return Dp.leapYear(t)},weekOfYear:function(a,r,t){var n=this._validate(a,this.minMonth,this.minDay,v0.local.invalidYear),a=this._t2gYear(n.year());return Dp.weekOfYear(a,n.month(),n.day())},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,v0.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===2&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(a,r,t){var n=this._validate(a,r,t,v0.local.invalidDate),a=this._t2gYear(n.year());return Dp.toJD(a,n.month(),n.day())},fromJD:function(e){var r=Dp.fromJD(e),t=this._g2tYear(r.year());return this.newDate(t,r.month(),r.day())},_t2gYear:function(e){return e+this.yearsOffset+(e>=-this.yearsOffset&&e<=-1?1:0)},_g2tYear:function(e){return e-this.yearsOffset-(e>=1&&e<=this.yearsOffset?1:0)}});v0.calendars.taiwan=k6});var CV=xe(()=>{var h0=na(),bbe=ta(),Rp=h0.instance();function S6(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}S6.prototype=new h0.baseCalendar;bbe(S6.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(t){var r=this._validate(t,this.minMonth,this.minDay,h0.local.invalidYear),t=this._t2gYear(r.year());return Rp.leapYear(t)},weekOfYear:function(a,r,t){var n=this._validate(a,this.minMonth,this.minDay,h0.local.invalidYear),a=this._t2gYear(n.year());return Rp.weekOfYear(a,n.month(),n.day())},daysInMonth:function(e,r){var t=this._validate(e,r,this.minDay,h0.local.invalidMonth);return this.daysPerMonth[t.month()-1]+(t.month()===2&&this.leapYear(t.year())?1:0)},weekDay:function(e,r,t){return(this.dayOfWeek(e,r,t)||7)<6},toJD:function(a,r,t){var n=this._validate(a,r,t,h0.local.invalidDate),a=this._t2gYear(n.year());return Rp.toJD(a,n.month(),n.day())},fromJD:function(e){var r=Rp.fromJD(e),t=this._g2tYear(r.year());return this.newDate(t,r.month(),r.day())},_t2gYear:function(e){return e-this.yearsOffset-(e>=1&&e<=this.yearsOffset?1:0)},_g2tYear:function(e){return e+this.yearsOffset+(e>=-this.yearsOffset&&e<=-1?1:0)}});h0.calendars.thai=S6});var EV=xe(()=>{var d0=na(),xbe=ta();function C6(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}C6.prototype=new d0.baseCalendar;xbe(C6.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\u0101th\u0101\u2019","Yawm al-Arba\u2018\u0101\u2019","Yawm al-Kham\u012Bs","Yawm al-Jum\u2018a","Yawm al-Sabt"],dayNamesMin:["Ah","Ith","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!0}},leapYear:function(e){var r=this._validate(e,this.minMonth,this.minDay,d0.local.invalidYear);return this.daysInYear(r.year())===355},weekOfYear:function(e,r,t){var n=this.newDate(e,r,t);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(e){for(var r=0,t=1;t<=12;t++)r+=this.daysInMonth(e,t);return r},daysInMonth:function(e,r){for(var t=this._validate(e,r,this.minDay,d0.local.invalidMonth),n=t.toJD()-24e5+.5,a=0,o=0;on)return rs[a]-rs[a-1];a++}return 30},weekDay:function(e,r,t){return this.dayOfWeek(e,r,t)!==5},toJD:function(e,r,t){var n=this._validate(e,r,t,d0.local.invalidDate),a=12*(n.year()-1)+n.month()-15292,o=n.day()+rs[a-1]-1;return o+24e5-.5},fromJD:function(e){for(var r=e-24e5+.5,t=0,n=0;nr);n++)t++;var a=t+15292,o=Math.floor((a-1)/12),i=o+1,l=a-12*o,u=r-rs[t-1]+1;return this.newDate(i,l,u)},isValid:function(e,r,t){var n=d0.baseCalendar.prototype.isValid.apply(this,arguments);return n&&(e=e.year!=null?e.year:e,n=e>=1276&&e<=1500),n},_validate:function(e,r,t,n){var a=d0.baseCalendar.prototype._validate.apply(this,arguments);if(a.year<1276||a.year>1500)throw n.replace(/\{0\}/,this.local.name);return a}});d0.calendars.ummalqura=C6;var rs=[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]});var DV=xe((Z9e,LV)=>{"use strict";LV.exports=na();hV();dV();pV();gV();yV();mV();bV();xV();wV();TV();AV();kV();SV();CV();EV()});var qV=xe((J9e,NV)=>{"use strict";var FV=DV(),bv=tr(),PV=(wn(),or(Rn)),_be=PV.EPOCHJD,wbe=PV.ONEDAY,D6={valType:"enumerated",values:bv.sortObjectKeys(FV.calendars),editType:"calc",dflt:"gregorian"},IV=function(e,r,t,n){var a={};return a[t]=D6,bv.coerce(e,r,a,t,n)},Mbe=function(e,r,t,n){for(var a=0;a{"use strict";BV.exports=qV()});var Ebe=xe((K9e,HV)=>{var UV=rO();UV.register([gU(),UU(),iH(),yH(),DH(),XH(),sV(),OV()]);HV.exports=UV});return Ebe();})(); /*! * The buffer module from node.js, for the browser. * diff --git a/dist/plotly-map.js b/dist/plotly-map.js index e74bd0adc0a..b011cfccbff 100644 --- a/dist/plotly-map.js +++ b/dist/plotly-map.js @@ -1,5 +1,5 @@ /** -* plotly.js (map) v4.1.2 +* plotly.js (map) v4.2.0 * Copyright 2012-2026, Plotly, Inc. * All rights reserved. * Licensed under the MIT license @@ -110,7 +110,7 @@ var Plotly = (() => { var require_version = __commonJS({ "src/version.js"(exports) { "use strict"; - exports.version = "4.1.2"; + exports.version = "4.2.0"; } }); @@ -17760,9 +17760,9 @@ var Plotly = (() => { var require_maplibre_gl = __commonJS({ "node_modules/maplibre-gl/dist/maplibre-gl.css"() { (function() { - if (!document.getElementById("ce8d464691048653ffe3a57c6c18ab566e8366f186677868cf724621a857b4fe")) { + if (!document.getElementById("9f215cf04c5486422605d13261cb87401f4e7763b6296af81e98efbc0130da53")) { var e58 = document.createElement("style"); - e58.id = "ce8d464691048653ffe3a57c6c18ab566e8366f186677868cf724621a857b4fe"; + e58.id = "9f215cf04c5486422605d13261cb87401f4e7763b6296af81e98efbc0130da53"; e58.textContent = `.maplibregl-map{font:12px/20px Helvetica Neue,Arial,Helvetica,sans-serif;overflow:hidden;position:relative;-webkit-tap-highlight-color:rgb(0 0 0/0);-webkit-touch-callout:none}.maplibregl-canvas{position:absolute;left:0;top:0}.maplibregl-map:fullscreen{width:100%;height:100%}.maplibregl-ctrl-group button.maplibregl-ctrl-compass{touch-action:none}.maplibregl-canvas-container.maplibregl-interactive,.maplibregl-ctrl-group button.maplibregl-ctrl-compass{cursor:grab;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-canvas-container.maplibregl-interactive.maplibregl-track-pointer{cursor:pointer}.maplibregl-canvas-container.maplibregl-interactive:active,.maplibregl-ctrl-group button.maplibregl-ctrl-compass:active{cursor:grabbing}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-canvas-container.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:pinch-zoom}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:none}.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures,.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-ctrl-bottom-left,.maplibregl-ctrl-bottom-right,.maplibregl-ctrl-top-left,.maplibregl-ctrl-top-right{position:absolute;pointer-events:none;z-index:2}.maplibregl-ctrl-top-left{top:0;left:0}.maplibregl-ctrl-top-right{top:0;right:0}.maplibregl-ctrl-bottom-left{bottom:0;left:0}.maplibregl-ctrl-bottom-right{right:0;bottom:0}.maplibregl-ctrl{clear:both;pointer-events:auto;transform:translate(0)}.maplibregl-ctrl-top-left .maplibregl-ctrl{margin:10px 0 0 10px;float:left}.maplibregl-ctrl-top-right .maplibregl-ctrl{margin:10px 10px 0 0;float:right}.maplibregl-ctrl-bottom-left .maplibregl-ctrl{margin:0 0 10px 10px;float:left}.maplibregl-ctrl-bottom-right .maplibregl-ctrl{margin:0 10px 10px 0;float:right}.maplibregl-ctrl-group{border-radius:4px;background:#fff}.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px rgba(0,0,0,.1)}@media (forced-colors:active){.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px ButtonText}}.maplibregl-ctrl-group button{width:29px;height:29px;display:block;padding:0;outline:none;border:0;box-sizing:border-box;background-color:transparent;cursor:pointer}.maplibregl-ctrl button{-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-ctrl-group button+button{border-top:1px solid #ddd}.maplibregl-ctrl button .maplibregl-ctrl-icon{display:block;width:100%;height:100%;background-repeat:no-repeat;background-position:50%}@media (forced-colors:active){.maplibregl-ctrl-icon{background-color:transparent}.maplibregl-ctrl-group button+button{border-top:1px solid ButtonText}}.maplibregl-ctrl button::-moz-focus-inner{border:0;padding:0}.maplibregl-ctrl-attrib-button:focus,.maplibregl-ctrl-group button:focus{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl button:disabled{cursor:not-allowed}.maplibregl-ctrl button:disabled .maplibregl-ctrl-icon{opacity:.25}@media (hover:hover){.maplibregl-ctrl button:not(:disabled):hover{background-color:rgba(0,0,0,.05)}}.maplibregl-ctrl button:not(:disabled):active{background-color:rgba(0,0,0,.05)}.maplibregl-ctrl-group button:focus:focus-visible{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl-group button:focus:not(:focus-visible){box-shadow:none}.maplibregl-ctrl-group button:focus:first-child{border-radius:4px 4px 0 0}.maplibregl-ctrl-group button:focus:last-child{border-radius:0 0 4px 4px}.maplibregl-ctrl-group button:focus:only-child{border-radius:inherit}.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M10%2013c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h9c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M14.5%208.5c-.75%200-1.5.75-1.5%201.5v3h-3c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h3v3c0%20.75.75%201.5%201.5%201.5S16%2019.75%2016%2019v-3h3c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013h-3v-3c0-.75-.75-1.5-1.5-1.5%22%2F%3E%3C%2Fsvg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M10%2013c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h9c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M14.5%208.5c-.75%200-1.5.75-1.5%201.5v3h-3c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h3v3c0%20.75.75%201.5%201.5%201.5S16%2019.75%2016%2019v-3h3c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013h-3v-3c0-.75-.75-1.5-1.5-1.5%22%2F%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M10%2013c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h9c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M14.5%208.5c-.75%200-1.5.75-1.5%201.5v3h-3c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h3v3c0%20.75.75%201.5%201.5%201.5S16%2019.75%2016%2019v-3h3c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013h-3v-3c0-.75-.75-1.5-1.5-1.5%22%2F%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M24%2016v5.5c0%201.75-.75%202.5-2.5%202.5H16v-1l3-1.5-4-5.5%201-1%205.5%204%201.5-3zM6%2016l1.5%203%205.5-4%201%201-4%205.5%203%201.5v1H7.5C5.75%2024%205%2023.25%205%2021.5V16zm7-11v1l-3%201.5%204%205.5-1%201-5.5-4L6%2013H5V7.5C5%205.75%205.75%205%207.5%205zm11%202.5c0-1.75-.75-2.5-2.5-2.5H16v1l3%201.5-4%205.5%201%201%205.5-4%201.5%203h1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M18.5%2016c-1.75%200-2.5.75-2.5%202.5V24h1l1.5-3%205.5%204%201-1-4-5.5%203-1.5v-1zM13%2018.5c0-1.75-.75-2.5-2.5-2.5H5v1l3%201.5L4%2024l1%201%205.5-4%201.5%203h1zm3-8c0%201.75.75%202.5%202.5%202.5H24v-1l-3-1.5L25%205l-1-1-5.5%204L17%205h-1zM10.5%2013c1.75%200%202.5-.75%202.5-2.5V5h-1l-1.5%203L5%204%204%205l4%205.5L5%2012v1z%22%2F%3E%3C%2Fsvg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M24%2016v5.5c0%201.75-.75%202.5-2.5%202.5H16v-1l3-1.5-4-5.5%201-1%205.5%204%201.5-3zM6%2016l1.5%203%205.5-4%201%201-4%205.5%203%201.5v1H7.5C5.75%2024%205%2023.25%205%2021.5V16zm7-11v1l-3%201.5%204%205.5-1%201-5.5-4L6%2013H5V7.5C5%205.75%205.75%205%207.5%205zm11%202.5c0-1.75-.75-2.5-2.5-2.5H16v1l3%201.5-4%205.5%201%201%205.5-4%201.5%203h1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M18.5%2016c-1.75%200-2.5.75-2.5%202.5V24h1l1.5-3%205.5%204%201-1-4-5.5%203-1.5v-1zM13%2018.5c0-1.75-.75-2.5-2.5-2.5H5v1l3%201.5L4%2024l1%201%205.5-4%201.5%203h1zm3-8c0%201.75.75%202.5%202.5%202.5H24v-1l-3-1.5L25%205l-1-1-5.5%204L17%205h-1zM10.5%2013c1.75%200%202.5-.75%202.5-2.5V5h-1l-1.5%203L5%204%204%205l4%205.5L5%2012v1z%22%2F%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M24%2016v5.5c0%201.75-.75%202.5-2.5%202.5H16v-1l3-1.5-4-5.5%201-1%205.5%204%201.5-3zM6%2016l1.5%203%205.5-4%201%201-4%205.5%203%201.5v1H7.5C5.75%2024%205%2023.25%205%2021.5V16zm7-11v1l-3%201.5%204%205.5-1%201-5.5-4L6%2013H5V7.5C5%205.75%205.75%205%207.5%205zm11%202.5c0-1.75-.75-2.5-2.5-2.5H16v1l3%201.5-4%205.5%201%201%205.5-4%201.5%203h1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M18.5%2016c-1.75%200-2.5.75-2.5%202.5V24h1l1.5-3%205.5%204%201-1-4-5.5%203-1.5v-1zM13%2018.5c0-1.75-.75-2.5-2.5-2.5H5v1l3%201.5L4%2024l1%201%205.5-4%201.5%203h1zm3-8c0%201.75.75%202.5%202.5%202.5H24v-1l-3-1.5L25%205l-1-1-5.5%204L17%205h-1zM10.5%2013c1.75%200%202.5-.75%202.5-2.5V5h-1l-1.5%203L5%204%204%205l4%205.5L5%2012v1z%22%2F%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22m10.5%2014%204-8%204%208z%22%2F%3E%3Cpath%20fill%3D%22%23ccc%22%20d%3D%22m10.5%2016%204%208%204-8z%22%2F%3E%3C%2Fsvg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22m10.5%2014%204-8%204%208z%22%2F%3E%3Cpath%20fill%3D%22%23ccc%22%20d%3D%22m10.5%2016%204%208%204-8z%22%2F%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22m10.5%2014%204-8%204%208z%22%2F%3E%3Cpath%20fill%3D%22%23ccc%22%20d%3D%22m10.5%2016%204%208%204-8z%22%2F%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-globe .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2222%22%20height%3D%2222%22%20fill%3D%22none%22%20stroke%3D%22%23333%22%20viewBox%3D%220%200%2022%2022%22%3E%3Ccircle%20cx%3D%2211%22%20cy%3D%2211%22%20r%3D%228.5%22%2F%3E%3Cpath%20d%3D%22M17.5%2011c0%204.819-3.02%208.5-6.5%208.5S4.5%2015.819%204.5%2011%207.52%202.5%2011%202.5s6.5%203.681%206.5%208.5Z%22%2F%3E%3Cpath%20d%3D%22M13.5%2011c0%202.447-.331%204.64-.853%206.206-.262.785-.562%201.384-.872%201.777-.314.399-.58.517-.775.517s-.461-.118-.775-.517c-.31-.393-.61-.992-.872-1.777C8.831%2015.64%208.5%2013.446%208.5%2011s.331-4.64.853-6.206c.262-.785.562-1.384.872-1.777.314-.399.58-.517.775-.517s.461.118.775.517c.31.393.61.992.872%201.777.522%201.565.853%203.76.853%206.206Z%22%2F%3E%3Cpath%20d%3D%22M11%207.5c-1.909%200-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3%201.3%200%200%201-.224-.138q.07-.058.224-.138c.299-.151.763-.302%201.379-.434C7.378%205.666%209.091%205.5%2011%205.5s3.622.166%204.845.428c.616.132%201.08.283%201.379.434.105.053.177.1.224.138q-.07.058-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm0%209c-1.909%200-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3%201.3%200%200%201-.224-.138%201.3%201.3%200%200%201%20.224-.138c.299-.151.763-.302%201.379-.434C7.378%2014.666%209.091%2014.5%2011%2014.5s3.622.166%204.845.428c.616.132%201.08.283%201.379.434.105.053.177.1.224.138a1.3%201.3%200%200%201-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm0-4c-2.46%200-4.672-.222-6.255-.574-.796-.177-1.406-.38-1.805-.59a1.5%201.5%200%200%201-.39-.272.3.3%200%200%201-.047-.064.3.3%200%200%201%20.048-.064c.066-.073.189-.167.389-.272.399-.21%201.009-.413%201.805-.59C6.328%209.722%208.54%209.5%2011%209.5s4.672.222%206.256.574c.795.177%201.405.38%201.804.59.2.105.323.2.39.272a.3.3%200%200%201%20.047.064.3.3%200%200%201-.048.064%201.4%201.4%200%200%201-.389.272c-.399.21-1.009.413-1.804.59-1.584.352-3.796.574-6.256.574Zm-8.501-1.51v.002zm0%20.018v.002zm17.002.002v-.002zm0-.018v-.002z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-globe-enabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2222%22%20height%3D%2222%22%20fill%3D%22none%22%20stroke%3D%22%2333b5e5%22%20viewBox%3D%220%200%2022%2022%22%3E%3Ccircle%20cx%3D%2211%22%20cy%3D%2211%22%20r%3D%228.5%22%2F%3E%3Cpath%20d%3D%22M17.5%2011c0%204.819-3.02%208.5-6.5%208.5S4.5%2015.819%204.5%2011%207.52%202.5%2011%202.5s6.5%203.681%206.5%208.5Z%22%2F%3E%3Cpath%20d%3D%22M13.5%2011c0%202.447-.331%204.64-.853%206.206-.262.785-.562%201.384-.872%201.777-.314.399-.58.517-.775.517s-.461-.118-.775-.517c-.31-.393-.61-.992-.872-1.777C8.831%2015.64%208.5%2013.446%208.5%2011s.331-4.64.853-6.206c.262-.785.562-1.384.872-1.777.314-.399.58-.517.775-.517s.461.118.775.517c.31.393.61.992.872%201.777.522%201.565.853%203.76.853%206.206Z%22%2F%3E%3Cpath%20d%3D%22M11%207.5c-1.909%200-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3%201.3%200%200%201-.224-.138q.07-.058.224-.138c.299-.151.763-.302%201.379-.434C7.378%205.666%209.091%205.5%2011%205.5s3.622.166%204.845.428c.616.132%201.08.283%201.379.434.105.053.177.1.224.138q-.07.058-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm0%209c-1.909%200-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3%201.3%200%200%201-.224-.138%201.3%201.3%200%200%201%20.224-.138c.299-.151.763-.302%201.379-.434C7.378%2014.666%209.091%2014.5%2011%2014.5s3.622.166%204.845.428c.616.132%201.08.283%201.379.434.105.053.177.1.224.138a1.3%201.3%200%200%201-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm0-4c-2.46%200-4.672-.222-6.255-.574-.796-.177-1.406-.38-1.805-.59a1.5%201.5%200%200%201-.39-.272.3.3%200%200%201-.047-.064.3.3%200%200%201%20.048-.064c.066-.073.189-.167.389-.272.399-.21%201.009-.413%201.805-.59C6.328%209.722%208.54%209.5%2011%209.5s4.672.222%206.256.574c.795.177%201.405.38%201.804.59.2.105.323.2.39.272a.3.3%200%200%201%20.047.064.3.3%200%200%201-.048.064%201.4%201.4%200%200%201-.389.272c-.399.21-1.009.413-1.804.59-1.584.352-3.796.574-6.256.574Zm-8.501-1.51v.002zm0%20.018v.002zm17.002.002v-.002zm0-.018v-.002z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-terrain .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2222%22%20height%3D%2222%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2022%2022%22%3E%3Cpath%20d%3D%22m1.754%2013.406%204.453-4.851%203.09%203.09%203.281%203.277.969-.969-3.309-3.312%203.844-4.121%206.148%206.886h1.082v-.855l-7.207-8.07-4.84%205.187L6.169%206.57l-5.48%205.965v.871ZM.688%2016.844h20.625v1.375H.688Zm0%200%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-terrain-enabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2222%22%20height%3D%2222%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2022%2022%22%3E%3Cpath%20d%3D%22m1.754%2013.406%204.453-4.851%203.09%203.09%203.281%203.277.969-.969-3.309-3.312%203.844-4.121%206.148%206.886h1.082v-.855l-7.207-8.07-4.84%205.187L6.169%206.57l-5.48%205.965v.871ZM.688%2016.844h20.625v1.375H.688Zm0%200%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23aaa%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3Cpath%20fill%3D%22red%22%20d%3D%22m14%205%201%201-9%209-1-1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23e58978%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23e54e33%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-waiting .maplibregl-ctrl-icon{animation:maplibregl-spin 2s linear infinite}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23999%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3Cpath%20fill%3D%22red%22%20d%3D%22m14%205%201%201-9%209-1-1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23e58978%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23e54e33%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23666%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3Cpath%20fill%3D%22red%22%20d%3D%22m14%205%201%201-9%209-1-1z%22%2F%3E%3C%2Fsvg%3E")}}@keyframes maplibregl-spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}a.maplibregl-ctrl-logo{width:88px;height:23px;margin:0 0 -4px -4px;display:block;background-repeat:no-repeat;cursor:pointer;overflow:hidden;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2288%22%20height%3D%2223%22%20fill%3D%22none%22%3E%3Cpath%20fill%3D%22%23000%22%20fill-opacity%3D%22.4%22%20fill-rule%3D%22evenodd%22%20d%3D%22M17.408%2016.796h-1.827l2.501-12.095h.198l3.324%206.533.988%202.19.988-2.19%203.258-6.533h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.929%205.644h-.098l-2.914-5.644-.757-1.71-.345%201.71zm1.958-3.42-.726%203.663a1.255%201.255%200%200%201-1.232%201.011h-1.827a1.255%201.255%200%200%201-1.229-1.509l2.501-12.095a1.255%201.255%200%200%201%201.23-1.001h.197a1.25%201.25%200%200%201%201.12.685l3.19%206.273%203.125-6.263a1.25%201.25%200%200%201%201.123-.695h.181a1.255%201.255%200%200%201%201.227.991l1.443%206.71a5%205%200%200%201%20.314-.787l.009-.016a4.6%204.6%200%200%201%201.777-1.887c.782-.46%201.668-.667%202.611-.667a4.6%204.6%200%200%201%201.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255%201.255%200%200%201%201.212.925%201.255%201.255%200%200%201%201.212-.925h1.711c.284%200%20.545.094.755.252.613-.3%201.312-.45%202.075-.45%201.356%200%202.557.445%203.482%201.4q.47.48.763%201.064V4.701a1.255%201.255%200%200%201%201.255-1.255h1.86A1.255%201.255%200%200%201%2054.44%204.7v9.194h2.217c.19%200%20.37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42%202.42%200%200%201-.682-1.71c0-.665.267-1.253.735-1.7a2.45%202.45%200%200%201%201.722-.674%202.43%202.43%200%200%201%201.705.675q.318.302.504.683V4.7a1.255%201.255%200%200%201%201.255-1.255h1.744A1.255%201.255%200%200%201%2065.812%204.7v3.335a4.8%204.8%200%200%201%201.526-.246c.938%200%201.817.214%202.59.69a4.47%204.47%200%200%201%201.67%201.743v-.98a1.255%201.255%200%200%201%201.256-1.256h1.777c.233%200%20.451.064.639.174a3.4%203.4%200%200%201%201.567-.372c.346%200%20.861.02%201.285.232a1.25%201.25%200%200%201%20.689%201.004%204.7%204.7%200%200%201%20.853-.588c.795-.44%201.675-.647%202.61-.647%201.385%200%202.65.39%203.525%201.396.836.938%201.168%202.173%201.168%203.528q-.001.515-.056%201.051a1.255%201.255%200%200%201-.947%201.09l.408.952a1.255%201.255%200%200%201-.477%201.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06%200-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8%205.8%200%200%201-.548-2.512q0-.429.053-.843a1.3%201.3%200%200%201-.333-.086l-.166-.004c-.223%200-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255%201.255%200%200%201-1.256%201.256h-1.777a1.255%201.255%200%200%201-1.256-1.256V15.69l-.032.057a4.8%204.8%200%200%201-1.86%201.833%205.04%205.04%200%200%201-2.484.634%204.5%204.5%200%200%201-1.935-.424%201.25%201.25%200%200%201-.764.258h-1.71a1.255%201.255%200%200%201-1.256-1.255V7.687a2.4%202.4%200%200%201-.428.625c.253.23.412.561.412.93v7.553a1.255%201.255%200%200%201-1.256%201.255h-1.843a1.25%201.25%200%200%201-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255%201.255%200%200%201-1.256-1.255v-1.251l-.061.117a4.7%204.7%200%200%201-1.782%201.884%204.77%204.77%200%200%201-2.485.67%205.6%205.6%200%200%201-1.485-.188l.009%202.764a1.255%201.255%200%200%201-1.255%201.259h-1.729a1.255%201.255%200%200%201-1.255-1.255v-3.537a1.255%201.255%200%200%201-1.167.793h-1.679a1.25%201.25%200%200%201-.77-.263%204.5%204.5%200%200%201-1.945.429c-.885%200-1.724-.21-2.495-.632l-.017-.01a5%205%200%200%201-1.081-.836%201.255%201.255%200%200%201-1.254%201.312h-1.81a1.255%201.255%200%200%201-1.228-.99l-.782-3.625-2.044%203.939a1.25%201.25%200%200%201-1.115.676h-.098a1.25%201.25%200%200%201-1.116-.68l-2.061-3.994zM35.92%2016.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033%201.332h1.678V9.242h-1.694l-.033%201.267q-.133-.329-.526-.658l-.032-.028a3.2%203.2%200%200%200-.668-.428l-.27-.12a3.3%203.3%200%200%200-1.235-.23q-1.136-.001-1.974.493a3.36%203.36%200%200%200-1.3%201.382q-.445.89-.444%202.074%200%201.2.51%202.107a3.8%203.8%200%200%200%201.382%201.381%203.9%203.9%200%200%200%201.893.477q.795%200%201.455-.33zm-2.789-5.38q-.576.675-.575%201.762%200%201.102.559%201.794.576.675%201.645.675a2.25%202.25%200%200%200%20.934-.19%202.2%202.2%200%200%200%20.468-.29l.178-.161a2.2%202.2%200%200%200%20.397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2%202.2%200%200%200-.633-.709l-.13-.086-.047-.028a2.1%202.1%200%200%200-1.073-.285q-1.052%200-1.629.692zm2.316%202.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96%200%200%200-.353-.389.85.85%200%200%200-.464-.127c-.4%200-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945%200%20.506.122.801.27.99.097.11.266.224.68.224.303%200%20.504-.09.687-.269zm7.545%201.705a2.6%202.6%200%200%200%20.331.423q.319.33.755.548l.173.074q.65.255%201.49.255%201.02%200%201.844-.493a3.45%203.45%200%200%200%201.316-1.4q.493-.904.493-2.089%200-1.909-.988-2.913-.988-1.02-2.584-1.02-.898%200-1.575.347a3%203%200%200%200-.415.262l-.199.166a3.4%203.4%200%200%200-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296%201.119.297%201.07%200%201.645-.675.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.435%200-.835.16a2%202%200%200%200-.284.136%202%202%200%200%200-.363.254%202.2%202.2%200%200%200-.46.569l-.082.162a2.6%202.6%200%200%200-.213%201.072v.115q0%20.707.296%201.267l.135.211zm.964-.818a1.1%201.1%200%200%200%20.367.385.94.94%200%200%200%20.476.118c.423%200%20.59-.117.687-.23.159-.194.28-.478.28-.95%200-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1%201%200%200%200-.503.135l-.012.007a.86.86%200%200%200-.335.343c-.073.133-.132.324-.132.614v.115a1.4%201.4%200%200%200%20.14.66zm15.7-6.222q.347-.346.346-.856a1.05%201.05%200%200%200-.345-.79%201.18%201.18%200%200%200-.84-.329q-.51%200-.855.33a1.05%201.05%200%200%200-.346.79q0%20.51.346.855.345.346.856.346.51%200%20.839-.346zm4.337%209.314.033-1.332q.191.403.59.747l.098.081a4%204%200%200%200%20.316.224l.223.122a3.2%203.2%200%200%200%201.44.322%203.8%203.8%200%200%200%201.875-.477%203.5%203.5%200%200%200%201.382-1.366q.527-.89.526-2.09%200-1.184-.444-2.073a3.24%203.24%200%200%200-1.283-1.399q-.823-.51-1.942-.51a3.5%203.5%200%200%200-1.527.344l-.086.043-.165.09a3%203%200%200%200-.33.214q-.432.315-.656.707a2%202%200%200%200-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5%202.5%200%200%200%20.566.7q.117.098.245.18l.144.08a2.1%202.1%200%200%200%20.975.232q1.07%200%201.645-.675.576-.69.576-1.778%200-1.102-.576-1.777-.56-.691-1.645-.692a2.2%202.2%200%200%200-1.015.235q-.22.113-.415.282l-.15.142a2.1%202.1%200%200%200-.42.594q-.223.479-.223%201.1v.115q0%20.705.293%201.26zm2.616-.293c.157-.191.28-.479.28-.967%200-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87%200%200%200-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0%20.285.057.499.144.669a1.1%201.1%200%200%200%20.367.405c.137.082.28.123.455.123.423%200%20.59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493%200%20.642.099l.247-1.794q-.196-.099-.717-.099a2.3%202.3%200%200%200-.545.063%202%202%200%200%200-.411.148%202.2%202.2%200%200%200-.4.249%202.5%202.5%200%200%200-.485.499%202.7%202.7%200%200%200-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5%201.5%200%200%201%20.466-.636%202.5%202.5%200%200%201%20.399-.253%202%202%200%200%201%20.224-.099zm9.784%202.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46%203.46%200%200%200-1.4%201.382q-.493.906-.493%202.106%200%201.07.428%201.975.428.89%201.332%201.432.906.526%202.255.526.973%200%201.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954%200-1.497-.444a1.6%201.6%200%200%201-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1%201%200%200%200-.156-.176q-.46-.428-1.316-.428-.986%200-1.494.604-.379.45-.494%201.234zm-27.053%202.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z%22%2F%3E%3Cpath%20fill%3D%22%23fff%22%20d%3D%22m19.63%2011.151-.757-1.71-.345%201.71-1.12%205.644h-1.827L18.083%204.7h.197l3.325%206.533.988%202.19.988-2.19L26.839%204.7h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.93%205.644h-.098l-2.913-5.644zm14.836%205.81q-1.02%200-1.893-.478a3.8%203.8%200%200%201-1.381-1.382q-.51-.906-.51-2.106%200-1.185.444-2.074a3.36%203.36%200%200%201%201.3-1.382q.839-.494%201.974-.494a3.3%203.3%200%200%201%201.234.231%203.3%203.3%200%200%201%20.97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02%201.053a3.17%203.17%200%200%201-1.662.444zm.296-1.482q.938%200%201.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2%202.2%200%200%200-.807-.872%202.1%202.1%200%200%200-1.119-.313q-1.053%200-1.629.692-.575.675-.575%201.76%200%201.103.559%201.795.577.675%201.645.675zm6.521-6.237h1.711v1.4q.906-1.597%202.83-1.597%201.596%200%202.584%201.02.988%201.005.988%202.914%200%201.185-.493%202.09a3.46%203.46%200%200%201-1.316%201.399%203.5%203.5%200%200%201-1.844.493q-.954%200-1.662-.329a2.67%202.67%200%200%201-1.086-.97l.017%205.134h-1.728zm4.048%206.22q1.07%200%201.645-.674.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.592%200-1.12.296-.51.28-.822.823-.296.527-.296%201.234v.115q0%20.708.296%201.267.313.543.823.855.51.296%201.119.297z%22%2F%3E%3Cpath%20fill%3D%22%23e1e3e9%22%20d%3D%22M51.325%204.7h1.86v10.45h3.473v1.646h-5.333zm7.12%204.542h1.843v7.553h-1.843zm.905-1.415a1.16%201.16%200%200%201-.856-.346%201.17%201.17%200%200%201-.346-.856%201.05%201.05%200%200%201%20.346-.79q.346-.329.856-.329.494%200%20.839.33a1.05%201.05%200%200%201%20.345.79%201.16%201.16%200%200%201-.345.855q-.33.346-.84.346zm7.875%209.133a3.17%203.17%200%200%201-1.662-.444q-.723-.46-1.004-1.053l-.033%201.332h-1.71V4.701h1.743v4.657l-.082%201.283q.279-.658%201.086-1.119a3.5%203.5%200%200%201%201.778-.477q1.119%200%201.942.51a3.24%203.24%200%200%201%201.283%201.4q.445.888.444%202.072%200%201.201-.526%202.09a3.5%203.5%200%200%201-1.382%201.366%203.8%203.8%200%200%201-1.876.477zm-.296-1.481q1.069%200%201.645-.675.577-.69.577-1.778%200-1.102-.577-1.776-.56-.691-1.645-.692a2.12%202.12%200%200%200-1.58.659q-.642.641-.642%201.694v.115q0%20.71.296%201.267a2.4%202.4%200%200%200%20.807.872%202.1%202.1%200%200%200%201.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14%202.14%200%200%201%201.349-.46q.527%200%20.724.098l-.247%201.794q-.149-.099-.642-.099-.774%200-1.416.494-.626.493-.626%201.58v3.883h-1.777V9.242zm9.534%207.718q-1.35%200-2.255-.526-.904-.543-1.332-1.432a4.6%204.6%200%200%201-.428-1.975q0-1.2.493-2.106a3.46%203.46%200%200%201%201.4-1.382q.889-.495%202.007-.494%201.744%200%202.584.97.855.956.856%202.7%200%20.444-.05.92h-5.43q.18%201.005.708%201.45.542.443%201.497.443.79%200%201.3-.131a4%204%200%200%200%20.938-.362l.542%201.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728%200-1.991%201.86z%22%2F%3E%3Cpath%20d%3D%22M5.074%2015.948a.484.657%200%200%200-.486.659v1.84a.484.657%200%200%200%20.486.659h4.101a.484.657%200%200%200%20.486-.659v-1.84a.484.657%200%200%200-.486-.659zm3.56%201.16H5.617v.838h3.017z%22%20style%3D%22fill%3A%23fff%3Bfill-rule%3Aevenodd%3Bstroke-width%3A1.03600001%22%2F%3E%3Cg%20style%3D%22stroke-width%3A1.12603545%22%3E%3Cpath%20d%3D%22M-9.408-1.416c-3.833-.025-7.056%202.912-7.08%206.615-.02%203.08%201.653%204.832%203.107%206.268.903.892%201.721%201.74%202.32%202.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87%201.87%200%200%200-.362%201.121l-.011%201.877c-.003.402.104.787.347%201.125.244.338.688.653%201.23.656l4.142.028c.542.003.99-.306%201.238-.641a1.87%201.87%200%200%200%20.363-1.121l.012-1.875a1.87%201.87%200%200%200-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145%201.425-1.983%202.348-2.87%201.473-1.414%203.18-3.149%203.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006%201.1v.002c3.274.02%205.92%202.532%205.9%205.6-.017%202.706-1.39%204.026-2.863%205.44-1.034.994-2.118%202.033-2.814%203.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34%200%200%201-.226.084.34.34%200%200%201-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067%202.7-5.545%205.975-5.523m-.02%202.826c-1.62-.01-2.944%201.315-2.955%202.96-.01%201.646%201.295%202.988%202.916%202.999h.002c1.621.01%202.943-1.316%202.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005%201.1c1.017.006%201.829.83%201.822%201.89s-.83%201.874-1.848%201.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874%201.848-1.868m-2.155%2011.857%204.14.025c.271.002.49.305.487.676l-.013%201.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668%22%20style%3D%22color%3A%23000%3Bfont-style%3Anormal%3Bfont-variant%3Anormal%3Bfont-weight%3A400%3Bfont-stretch%3Anormal%3Bfont-size%3Amedium%3Bline-height%3Anormal%3Bfont-family%3Asans-serif%3Bfont-variant-ligatures%3Anormal%3Bfont-variant-position%3Anormal%3Bfont-variant-caps%3Anormal%3Bfont-variant-numeric%3Anormal%3Bfont-variant-alternates%3Anormal%3Bfont-feature-settings%3Anormal%3Btext-indent%3A0%3Btext-align%3Astart%3Btext-decoration%3Anone%3Btext-decoration-line%3Anone%3Btext-decoration-style%3Asolid%3Btext-decoration-color%3A%23000%3Bletter-spacing%3Anormal%3Bword-spacing%3Anormal%3Btext-transform%3Anone%3Bwriting-mode%3Alr-tb%3Bdirection%3Altr%3Btext-orientation%3Amixed%3Bdominant-baseline%3Aauto%3Bbaseline-shift%3Abaseline%3Btext-anchor%3Astart%3Bwhite-space%3Anormal%3Bshape-padding%3A0%3Bclip-rule%3Aevenodd%3Bdisplay%3Ainline%3Boverflow%3Avisible%3Bvisibility%3Avisible%3Bopacity%3A1%3Bisolation%3Aauto%3Bmix-blend-mode%3Anormal%3Bcolor-interpolation%3AsRGB%3Bcolor-interpolation-filters%3AlinearRGB%3Bsolid-color%3A%23000%3Bsolid-opacity%3A1%3Bvector-effect%3Anone%3Bfill%3A%23000%3Bfill-opacity%3A.4%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-linecap%3Abutt%3Bstroke-linejoin%3Amiter%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-dashoffset%3A0%3Bstroke-opacity%3A1%3Bcolor-rendering%3Aauto%3Bimage-rendering%3Aauto%3Bshape-rendering%3Aauto%3Btext-rendering%3Aauto%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-9.415-.316C-12.69-.338-15.37%202.14-15.39%205.207c-.017%202.716%201.326%204.041%202.78%205.477%201.013%201%202.081%202.055%202.78%203.67l.092.076a.34.34%200%200%200%20.225.086.34.34%200%200%200%20.227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6%201.78-2.64%202.814-3.634%201.473-1.414%202.847-2.733%202.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057%208.784c1.621.011%202.944-1.315%202.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945%201.315-2.955%202.96s1.295%202.989%202.916%203%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23e1e3e9%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-11.594%2015.465c-.27-.002-.492.297-.494.668l-.012%201.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23fff%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E")}a.maplibregl-ctrl-logo.maplibregl-compact{width:14px}@media (forced-colors:active){a.maplibregl-ctrl-logo{background-color:transparent;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2288%22%20height%3D%2223%22%20fill%3D%22none%22%3E%3Cpath%20fill%3D%22%23000%22%20fill-opacity%3D%22.4%22%20fill-rule%3D%22evenodd%22%20d%3D%22M17.408%2016.796h-1.827l2.501-12.095h.198l3.324%206.533.988%202.19.988-2.19%203.258-6.533h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.929%205.644h-.098l-2.914-5.644-.757-1.71-.345%201.71zm1.958-3.42-.726%203.663a1.255%201.255%200%200%201-1.232%201.011h-1.827a1.255%201.255%200%200%201-1.229-1.509l2.501-12.095a1.255%201.255%200%200%201%201.23-1.001h.197a1.25%201.25%200%200%201%201.12.685l3.19%206.273%203.125-6.263a1.25%201.25%200%200%201%201.123-.695h.181a1.255%201.255%200%200%201%201.227.991l1.443%206.71a5%205%200%200%201%20.314-.787l.009-.016a4.6%204.6%200%200%201%201.777-1.887c.782-.46%201.668-.667%202.611-.667a4.6%204.6%200%200%201%201.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255%201.255%200%200%201%201.212.925%201.255%201.255%200%200%201%201.212-.925h1.711c.284%200%20.545.094.755.252.613-.3%201.312-.45%202.075-.45%201.356%200%202.557.445%203.482%201.4q.47.48.763%201.064V4.701a1.255%201.255%200%200%201%201.255-1.255h1.86A1.255%201.255%200%200%201%2054.44%204.7v9.194h2.217c.19%200%20.37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42%202.42%200%200%201-.682-1.71c0-.665.267-1.253.735-1.7a2.45%202.45%200%200%201%201.722-.674%202.43%202.43%200%200%201%201.705.675q.318.302.504.683V4.7a1.255%201.255%200%200%201%201.255-1.255h1.744A1.255%201.255%200%200%201%2065.812%204.7v3.335a4.8%204.8%200%200%201%201.526-.246c.938%200%201.817.214%202.59.69a4.47%204.47%200%200%201%201.67%201.743v-.98a1.255%201.255%200%200%201%201.256-1.256h1.777c.233%200%20.451.064.639.174a3.4%203.4%200%200%201%201.567-.372c.346%200%20.861.02%201.285.232a1.25%201.25%200%200%201%20.689%201.004%204.7%204.7%200%200%201%20.853-.588c.795-.44%201.675-.647%202.61-.647%201.385%200%202.65.39%203.525%201.396.836.938%201.168%202.173%201.168%203.528q-.001.515-.056%201.051a1.255%201.255%200%200%201-.947%201.09l.408.952a1.255%201.255%200%200%201-.477%201.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06%200-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8%205.8%200%200%201-.548-2.512q0-.429.053-.843a1.3%201.3%200%200%201-.333-.086l-.166-.004c-.223%200-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255%201.255%200%200%201-1.256%201.256h-1.777a1.255%201.255%200%200%201-1.256-1.256V15.69l-.032.057a4.8%204.8%200%200%201-1.86%201.833%205.04%205.04%200%200%201-2.484.634%204.5%204.5%200%200%201-1.935-.424%201.25%201.25%200%200%201-.764.258h-1.71a1.255%201.255%200%200%201-1.256-1.255V7.687a2.4%202.4%200%200%201-.428.625c.253.23.412.561.412.93v7.553a1.255%201.255%200%200%201-1.256%201.255h-1.843a1.25%201.25%200%200%201-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255%201.255%200%200%201-1.256-1.255v-1.251l-.061.117a4.7%204.7%200%200%201-1.782%201.884%204.77%204.77%200%200%201-2.485.67%205.6%205.6%200%200%201-1.485-.188l.009%202.764a1.255%201.255%200%200%201-1.255%201.259h-1.729a1.255%201.255%200%200%201-1.255-1.255v-3.537a1.255%201.255%200%200%201-1.167.793h-1.679a1.25%201.25%200%200%201-.77-.263%204.5%204.5%200%200%201-1.945.429c-.885%200-1.724-.21-2.495-.632l-.017-.01a5%205%200%200%201-1.081-.836%201.255%201.255%200%200%201-1.254%201.312h-1.81a1.255%201.255%200%200%201-1.228-.99l-.782-3.625-2.044%203.939a1.25%201.25%200%200%201-1.115.676h-.098a1.25%201.25%200%200%201-1.116-.68l-2.061-3.994zM35.92%2016.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033%201.332h1.678V9.242h-1.694l-.033%201.267q-.133-.329-.526-.658l-.032-.028a3.2%203.2%200%200%200-.668-.428l-.27-.12a3.3%203.3%200%200%200-1.235-.23q-1.136-.001-1.974.493a3.36%203.36%200%200%200-1.3%201.382q-.445.89-.444%202.074%200%201.2.51%202.107a3.8%203.8%200%200%200%201.382%201.381%203.9%203.9%200%200%200%201.893.477q.795%200%201.455-.33zm-2.789-5.38q-.576.675-.575%201.762%200%201.102.559%201.794.576.675%201.645.675a2.25%202.25%200%200%200%20.934-.19%202.2%202.2%200%200%200%20.468-.29l.178-.161a2.2%202.2%200%200%200%20.397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2%202.2%200%200%200-.633-.709l-.13-.086-.047-.028a2.1%202.1%200%200%200-1.073-.285q-1.052%200-1.629.692zm2.316%202.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96%200%200%200-.353-.389.85.85%200%200%200-.464-.127c-.4%200-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945%200%20.506.122.801.27.99.097.11.266.224.68.224.303%200%20.504-.09.687-.269zm7.545%201.705a2.6%202.6%200%200%200%20.331.423q.319.33.755.548l.173.074q.65.255%201.49.255%201.02%200%201.844-.493a3.45%203.45%200%200%200%201.316-1.4q.493-.904.493-2.089%200-1.909-.988-2.913-.988-1.02-2.584-1.02-.898%200-1.575.347a3%203%200%200%200-.415.262l-.199.166a3.4%203.4%200%200%200-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296%201.119.297%201.07%200%201.645-.675.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.435%200-.835.16a2%202%200%200%200-.284.136%202%202%200%200%200-.363.254%202.2%202.2%200%200%200-.46.569l-.082.162a2.6%202.6%200%200%200-.213%201.072v.115q0%20.707.296%201.267l.135.211zm.964-.818a1.1%201.1%200%200%200%20.367.385.94.94%200%200%200%20.476.118c.423%200%20.59-.117.687-.23.159-.194.28-.478.28-.95%200-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1%201%200%200%200-.503.135l-.012.007a.86.86%200%200%200-.335.343c-.073.133-.132.324-.132.614v.115a1.4%201.4%200%200%200%20.14.66zm15.7-6.222q.347-.346.346-.856a1.05%201.05%200%200%200-.345-.79%201.18%201.18%200%200%200-.84-.329q-.51%200-.855.33a1.05%201.05%200%200%200-.346.79q0%20.51.346.855.345.346.856.346.51%200%20.839-.346zm4.337%209.314.033-1.332q.191.403.59.747l.098.081a4%204%200%200%200%20.316.224l.223.122a3.2%203.2%200%200%200%201.44.322%203.8%203.8%200%200%200%201.875-.477%203.5%203.5%200%200%200%201.382-1.366q.527-.89.526-2.09%200-1.184-.444-2.073a3.24%203.24%200%200%200-1.283-1.399q-.823-.51-1.942-.51a3.5%203.5%200%200%200-1.527.344l-.086.043-.165.09a3%203%200%200%200-.33.214q-.432.315-.656.707a2%202%200%200%200-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5%202.5%200%200%200%20.566.7q.117.098.245.18l.144.08a2.1%202.1%200%200%200%20.975.232q1.07%200%201.645-.675.576-.69.576-1.778%200-1.102-.576-1.777-.56-.691-1.645-.692a2.2%202.2%200%200%200-1.015.235q-.22.113-.415.282l-.15.142a2.1%202.1%200%200%200-.42.594q-.223.479-.223%201.1v.115q0%20.705.293%201.26zm2.616-.293c.157-.191.28-.479.28-.967%200-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87%200%200%200-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0%20.285.057.499.144.669a1.1%201.1%200%200%200%20.367.405c.137.082.28.123.455.123.423%200%20.59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493%200%20.642.099l.247-1.794q-.196-.099-.717-.099a2.3%202.3%200%200%200-.545.063%202%202%200%200%200-.411.148%202.2%202.2%200%200%200-.4.249%202.5%202.5%200%200%200-.485.499%202.7%202.7%200%200%200-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5%201.5%200%200%201%20.466-.636%202.5%202.5%200%200%201%20.399-.253%202%202%200%200%201%20.224-.099zm9.784%202.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46%203.46%200%200%200-1.4%201.382q-.493.906-.493%202.106%200%201.07.428%201.975.428.89%201.332%201.432.906.526%202.255.526.973%200%201.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954%200-1.497-.444a1.6%201.6%200%200%201-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1%201%200%200%200-.156-.176q-.46-.428-1.316-.428-.986%200-1.494.604-.379.45-.494%201.234zm-27.053%202.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z%22%2F%3E%3Cpath%20fill%3D%22%23fff%22%20d%3D%22m19.63%2011.151-.757-1.71-.345%201.71-1.12%205.644h-1.827L18.083%204.7h.197l3.325%206.533.988%202.19.988-2.19L26.839%204.7h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.93%205.644h-.098l-2.913-5.644zm14.836%205.81q-1.02%200-1.893-.478a3.8%203.8%200%200%201-1.381-1.382q-.51-.906-.51-2.106%200-1.185.444-2.074a3.36%203.36%200%200%201%201.3-1.382q.839-.494%201.974-.494a3.3%203.3%200%200%201%201.234.231%203.3%203.3%200%200%201%20.97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02%201.053a3.17%203.17%200%200%201-1.662.444zm.296-1.482q.938%200%201.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2%202.2%200%200%200-.807-.872%202.1%202.1%200%200%200-1.119-.313q-1.053%200-1.629.692-.575.675-.575%201.76%200%201.103.559%201.795.577.675%201.645.675zm6.521-6.237h1.711v1.4q.906-1.597%202.83-1.597%201.596%200%202.584%201.02.988%201.005.988%202.914%200%201.185-.493%202.09a3.46%203.46%200%200%201-1.316%201.399%203.5%203.5%200%200%201-1.844.493q-.954%200-1.662-.329a2.67%202.67%200%200%201-1.086-.97l.017%205.134h-1.728zm4.048%206.22q1.07%200%201.645-.674.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.592%200-1.12.296-.51.28-.822.823-.296.527-.296%201.234v.115q0%20.708.296%201.267.313.543.823.855.51.296%201.119.297z%22%2F%3E%3Cpath%20fill%3D%22%23e1e3e9%22%20d%3D%22M51.325%204.7h1.86v10.45h3.473v1.646h-5.333zm7.12%204.542h1.843v7.553h-1.843zm.905-1.415a1.16%201.16%200%200%201-.856-.346%201.17%201.17%200%200%201-.346-.856%201.05%201.05%200%200%201%20.346-.79q.346-.329.856-.329.494%200%20.839.33a1.05%201.05%200%200%201%20.345.79%201.16%201.16%200%200%201-.345.855q-.33.346-.84.346zm7.875%209.133a3.17%203.17%200%200%201-1.662-.444q-.723-.46-1.004-1.053l-.033%201.332h-1.71V4.701h1.743v4.657l-.082%201.283q.279-.658%201.086-1.119a3.5%203.5%200%200%201%201.778-.477q1.119%200%201.942.51a3.24%203.24%200%200%201%201.283%201.4q.445.888.444%202.072%200%201.201-.526%202.09a3.5%203.5%200%200%201-1.382%201.366%203.8%203.8%200%200%201-1.876.477zm-.296-1.481q1.069%200%201.645-.675.577-.69.577-1.778%200-1.102-.577-1.776-.56-.691-1.645-.692a2.12%202.12%200%200%200-1.58.659q-.642.641-.642%201.694v.115q0%20.71.296%201.267a2.4%202.4%200%200%200%20.807.872%202.1%202.1%200%200%200%201.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14%202.14%200%200%201%201.349-.46q.527%200%20.724.098l-.247%201.794q-.149-.099-.642-.099-.774%200-1.416.494-.626.493-.626%201.58v3.883h-1.777V9.242zm9.534%207.718q-1.35%200-2.255-.526-.904-.543-1.332-1.432a4.6%204.6%200%200%201-.428-1.975q0-1.2.493-2.106a3.46%203.46%200%200%201%201.4-1.382q.889-.495%202.007-.494%201.744%200%202.584.97.855.956.856%202.7%200%20.444-.05.92h-5.43q.18%201.005.708%201.45.542.443%201.497.443.79%200%201.3-.131a4%204%200%200%200%20.938-.362l.542%201.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728%200-1.991%201.86z%22%2F%3E%3Cpath%20d%3D%22M5.074%2015.948a.484.657%200%200%200-.486.659v1.84a.484.657%200%200%200%20.486.659h4.101a.484.657%200%200%200%20.486-.659v-1.84a.484.657%200%200%200-.486-.659zm3.56%201.16H5.617v.838h3.017z%22%20style%3D%22fill%3A%23fff%3Bfill-rule%3Aevenodd%3Bstroke-width%3A1.03600001%22%2F%3E%3Cg%20style%3D%22stroke-width%3A1.12603545%22%3E%3Cpath%20d%3D%22M-9.408-1.416c-3.833-.025-7.056%202.912-7.08%206.615-.02%203.08%201.653%204.832%203.107%206.268.903.892%201.721%201.74%202.32%202.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87%201.87%200%200%200-.362%201.121l-.011%201.877c-.003.402.104.787.347%201.125.244.338.688.653%201.23.656l4.142.028c.542.003.99-.306%201.238-.641a1.87%201.87%200%200%200%20.363-1.121l.012-1.875a1.87%201.87%200%200%200-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145%201.425-1.983%202.348-2.87%201.473-1.414%203.18-3.149%203.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006%201.1v.002c3.274.02%205.92%202.532%205.9%205.6-.017%202.706-1.39%204.026-2.863%205.44-1.034.994-2.118%202.033-2.814%203.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34%200%200%201-.226.084.34.34%200%200%201-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067%202.7-5.545%205.975-5.523m-.02%202.826c-1.62-.01-2.944%201.315-2.955%202.96-.01%201.646%201.295%202.988%202.916%202.999h.002c1.621.01%202.943-1.316%202.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005%201.1c1.017.006%201.829.83%201.822%201.89s-.83%201.874-1.848%201.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874%201.848-1.868m-2.155%2011.857%204.14.025c.271.002.49.305.487.676l-.013%201.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668%22%20style%3D%22color%3A%23000%3Bfont-style%3Anormal%3Bfont-variant%3Anormal%3Bfont-weight%3A400%3Bfont-stretch%3Anormal%3Bfont-size%3Amedium%3Bline-height%3Anormal%3Bfont-family%3Asans-serif%3Bfont-variant-ligatures%3Anormal%3Bfont-variant-position%3Anormal%3Bfont-variant-caps%3Anormal%3Bfont-variant-numeric%3Anormal%3Bfont-variant-alternates%3Anormal%3Bfont-feature-settings%3Anormal%3Btext-indent%3A0%3Btext-align%3Astart%3Btext-decoration%3Anone%3Btext-decoration-line%3Anone%3Btext-decoration-style%3Asolid%3Btext-decoration-color%3A%23000%3Bletter-spacing%3Anormal%3Bword-spacing%3Anormal%3Btext-transform%3Anone%3Bwriting-mode%3Alr-tb%3Bdirection%3Altr%3Btext-orientation%3Amixed%3Bdominant-baseline%3Aauto%3Bbaseline-shift%3Abaseline%3Btext-anchor%3Astart%3Bwhite-space%3Anormal%3Bshape-padding%3A0%3Bclip-rule%3Aevenodd%3Bdisplay%3Ainline%3Boverflow%3Avisible%3Bvisibility%3Avisible%3Bopacity%3A1%3Bisolation%3Aauto%3Bmix-blend-mode%3Anormal%3Bcolor-interpolation%3AsRGB%3Bcolor-interpolation-filters%3AlinearRGB%3Bsolid-color%3A%23000%3Bsolid-opacity%3A1%3Bvector-effect%3Anone%3Bfill%3A%23000%3Bfill-opacity%3A.4%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-linecap%3Abutt%3Bstroke-linejoin%3Amiter%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-dashoffset%3A0%3Bstroke-opacity%3A1%3Bcolor-rendering%3Aauto%3Bimage-rendering%3Aauto%3Bshape-rendering%3Aauto%3Btext-rendering%3Aauto%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-9.415-.316C-12.69-.338-15.37%202.14-15.39%205.207c-.017%202.716%201.326%204.041%202.78%205.477%201.013%201%202.081%202.055%202.78%203.67l.092.076a.34.34%200%200%200%20.225.086.34.34%200%200%200%20.227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6%201.78-2.64%202.814-3.634%201.473-1.414%202.847-2.733%202.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057%208.784c1.621.011%202.944-1.315%202.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945%201.315-2.955%202.96s1.295%202.989%202.916%203%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23e1e3e9%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-11.594%2015.465c-.27-.002-.492.297-.494.668l-.012%201.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23fff%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){a.maplibregl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2288%22%20height%3D%2223%22%20fill%3D%22none%22%3E%3Cpath%20fill%3D%22%23000%22%20fill-opacity%3D%22.4%22%20fill-rule%3D%22evenodd%22%20d%3D%22M17.408%2016.796h-1.827l2.501-12.095h.198l3.324%206.533.988%202.19.988-2.19%203.258-6.533h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.929%205.644h-.098l-2.914-5.644-.757-1.71-.345%201.71zm1.958-3.42-.726%203.663a1.255%201.255%200%200%201-1.232%201.011h-1.827a1.255%201.255%200%200%201-1.229-1.509l2.501-12.095a1.255%201.255%200%200%201%201.23-1.001h.197a1.25%201.25%200%200%201%201.12.685l3.19%206.273%203.125-6.263a1.25%201.25%200%200%201%201.123-.695h.181a1.255%201.255%200%200%201%201.227.991l1.443%206.71a5%205%200%200%201%20.314-.787l.009-.016a4.6%204.6%200%200%201%201.777-1.887c.782-.46%201.668-.667%202.611-.667a4.6%204.6%200%200%201%201.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255%201.255%200%200%201%201.212.925%201.255%201.255%200%200%201%201.212-.925h1.711c.284%200%20.545.094.755.252.613-.3%201.312-.45%202.075-.45%201.356%200%202.557.445%203.482%201.4q.47.48.763%201.064V4.701a1.255%201.255%200%200%201%201.255-1.255h1.86A1.255%201.255%200%200%201%2054.44%204.7v9.194h2.217c.19%200%20.37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42%202.42%200%200%201-.682-1.71c0-.665.267-1.253.735-1.7a2.45%202.45%200%200%201%201.722-.674%202.43%202.43%200%200%201%201.705.675q.318.302.504.683V4.7a1.255%201.255%200%200%201%201.255-1.255h1.744A1.255%201.255%200%200%201%2065.812%204.7v3.335a4.8%204.8%200%200%201%201.526-.246c.938%200%201.817.214%202.59.69a4.47%204.47%200%200%201%201.67%201.743v-.98a1.255%201.255%200%200%201%201.256-1.256h1.777c.233%200%20.451.064.639.174a3.4%203.4%200%200%201%201.567-.372c.346%200%20.861.02%201.285.232a1.25%201.25%200%200%201%20.689%201.004%204.7%204.7%200%200%201%20.853-.588c.795-.44%201.675-.647%202.61-.647%201.385%200%202.65.39%203.525%201.396.836.938%201.168%202.173%201.168%203.528q-.001.515-.056%201.051a1.255%201.255%200%200%201-.947%201.09l.408.952a1.255%201.255%200%200%201-.477%201.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06%200-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8%205.8%200%200%201-.548-2.512q0-.429.053-.843a1.3%201.3%200%200%201-.333-.086l-.166-.004c-.223%200-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255%201.255%200%200%201-1.256%201.256h-1.777a1.255%201.255%200%200%201-1.256-1.256V15.69l-.032.057a4.8%204.8%200%200%201-1.86%201.833%205.04%205.04%200%200%201-2.484.634%204.5%204.5%200%200%201-1.935-.424%201.25%201.25%200%200%201-.764.258h-1.71a1.255%201.255%200%200%201-1.256-1.255V7.687a2.4%202.4%200%200%201-.428.625c.253.23.412.561.412.93v7.553a1.255%201.255%200%200%201-1.256%201.255h-1.843a1.25%201.25%200%200%201-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255%201.255%200%200%201-1.256-1.255v-1.251l-.061.117a4.7%204.7%200%200%201-1.782%201.884%204.77%204.77%200%200%201-2.485.67%205.6%205.6%200%200%201-1.485-.188l.009%202.764a1.255%201.255%200%200%201-1.255%201.259h-1.729a1.255%201.255%200%200%201-1.255-1.255v-3.537a1.255%201.255%200%200%201-1.167.793h-1.679a1.25%201.25%200%200%201-.77-.263%204.5%204.5%200%200%201-1.945.429c-.885%200-1.724-.21-2.495-.632l-.017-.01a5%205%200%200%201-1.081-.836%201.255%201.255%200%200%201-1.254%201.312h-1.81a1.255%201.255%200%200%201-1.228-.99l-.782-3.625-2.044%203.939a1.25%201.25%200%200%201-1.115.676h-.098a1.25%201.25%200%200%201-1.116-.68l-2.061-3.994zM35.92%2016.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033%201.332h1.678V9.242h-1.694l-.033%201.267q-.133-.329-.526-.658l-.032-.028a3.2%203.2%200%200%200-.668-.428l-.27-.12a3.3%203.3%200%200%200-1.235-.23q-1.136-.001-1.974.493a3.36%203.36%200%200%200-1.3%201.382q-.445.89-.444%202.074%200%201.2.51%202.107a3.8%203.8%200%200%200%201.382%201.381%203.9%203.9%200%200%200%201.893.477q.795%200%201.455-.33zm-2.789-5.38q-.576.675-.575%201.762%200%201.102.559%201.794.576.675%201.645.675a2.25%202.25%200%200%200%20.934-.19%202.2%202.2%200%200%200%20.468-.29l.178-.161a2.2%202.2%200%200%200%20.397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2%202.2%200%200%200-.633-.709l-.13-.086-.047-.028a2.1%202.1%200%200%200-1.073-.285q-1.052%200-1.629.692zm2.316%202.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96%200%200%200-.353-.389.85.85%200%200%200-.464-.127c-.4%200-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945%200%20.506.122.801.27.99.097.11.266.224.68.224.303%200%20.504-.09.687-.269zm7.545%201.705a2.6%202.6%200%200%200%20.331.423q.319.33.755.548l.173.074q.65.255%201.49.255%201.02%200%201.844-.493a3.45%203.45%200%200%200%201.316-1.4q.493-.904.493-2.089%200-1.909-.988-2.913-.988-1.02-2.584-1.02-.898%200-1.575.347a3%203%200%200%200-.415.262l-.199.166a3.4%203.4%200%200%200-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296%201.119.297%201.07%200%201.645-.675.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.435%200-.835.16a2%202%200%200%200-.284.136%202%202%200%200%200-.363.254%202.2%202.2%200%200%200-.46.569l-.082.162a2.6%202.6%200%200%200-.213%201.072v.115q0%20.707.296%201.267l.135.211zm.964-.818a1.1%201.1%200%200%200%20.367.385.94.94%200%200%200%20.476.118c.423%200%20.59-.117.687-.23.159-.194.28-.478.28-.95%200-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1%201%200%200%200-.503.135l-.012.007a.86.86%200%200%200-.335.343c-.073.133-.132.324-.132.614v.115a1.4%201.4%200%200%200%20.14.66zm15.7-6.222q.347-.346.346-.856a1.05%201.05%200%200%200-.345-.79%201.18%201.18%200%200%200-.84-.329q-.51%200-.855.33a1.05%201.05%200%200%200-.346.79q0%20.51.346.855.345.346.856.346.51%200%20.839-.346zm4.337%209.314.033-1.332q.191.403.59.747l.098.081a4%204%200%200%200%20.316.224l.223.122a3.2%203.2%200%200%200%201.44.322%203.8%203.8%200%200%200%201.875-.477%203.5%203.5%200%200%200%201.382-1.366q.527-.89.526-2.09%200-1.184-.444-2.073a3.24%203.24%200%200%200-1.283-1.399q-.823-.51-1.942-.51a3.5%203.5%200%200%200-1.527.344l-.086.043-.165.09a3%203%200%200%200-.33.214q-.432.315-.656.707a2%202%200%200%200-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5%202.5%200%200%200%20.566.7q.117.098.245.18l.144.08a2.1%202.1%200%200%200%20.975.232q1.07%200%201.645-.675.576-.69.576-1.778%200-1.102-.576-1.777-.56-.691-1.645-.692a2.2%202.2%200%200%200-1.015.235q-.22.113-.415.282l-.15.142a2.1%202.1%200%200%200-.42.594q-.223.479-.223%201.1v.115q0%20.705.293%201.26zm2.616-.293c.157-.191.28-.479.28-.967%200-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87%200%200%200-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0%20.285.057.499.144.669a1.1%201.1%200%200%200%20.367.405c.137.082.28.123.455.123.423%200%20.59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493%200%20.642.099l.247-1.794q-.196-.099-.717-.099a2.3%202.3%200%200%200-.545.063%202%202%200%200%200-.411.148%202.2%202.2%200%200%200-.4.249%202.5%202.5%200%200%200-.485.499%202.7%202.7%200%200%200-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5%201.5%200%200%201%20.466-.636%202.5%202.5%200%200%201%20.399-.253%202%202%200%200%201%20.224-.099zm9.784%202.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46%203.46%200%200%200-1.4%201.382q-.493.906-.493%202.106%200%201.07.428%201.975.428.89%201.332%201.432.906.526%202.255.526.973%200%201.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954%200-1.497-.444a1.6%201.6%200%200%201-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1%201%200%200%200-.156-.176q-.46-.428-1.316-.428-.986%200-1.494.604-.379.45-.494%201.234zm-27.053%202.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z%22%2F%3E%3Cpath%20fill%3D%22%23fff%22%20d%3D%22m19.63%2011.151-.757-1.71-.345%201.71-1.12%205.644h-1.827L18.083%204.7h.197l3.325%206.533.988%202.19.988-2.19L26.839%204.7h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.93%205.644h-.098l-2.913-5.644zm14.836%205.81q-1.02%200-1.893-.478a3.8%203.8%200%200%201-1.381-1.382q-.51-.906-.51-2.106%200-1.185.444-2.074a3.36%203.36%200%200%201%201.3-1.382q.839-.494%201.974-.494a3.3%203.3%200%200%201%201.234.231%203.3%203.3%200%200%201%20.97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02%201.053a3.17%203.17%200%200%201-1.662.444zm.296-1.482q.938%200%201.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2%202.2%200%200%200-.807-.872%202.1%202.1%200%200%200-1.119-.313q-1.053%200-1.629.692-.575.675-.575%201.76%200%201.103.559%201.795.577.675%201.645.675zm6.521-6.237h1.711v1.4q.906-1.597%202.83-1.597%201.596%200%202.584%201.02.988%201.005.988%202.914%200%201.185-.493%202.09a3.46%203.46%200%200%201-1.316%201.399%203.5%203.5%200%200%201-1.844.493q-.954%200-1.662-.329a2.67%202.67%200%200%201-1.086-.97l.017%205.134h-1.728zm4.048%206.22q1.07%200%201.645-.674.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.592%200-1.12.296-.51.28-.822.823-.296.527-.296%201.234v.115q0%20.708.296%201.267.313.543.823.855.51.296%201.119.297z%22%2F%3E%3Cpath%20fill%3D%22%23e1e3e9%22%20d%3D%22M51.325%204.7h1.86v10.45h3.473v1.646h-5.333zm7.12%204.542h1.843v7.553h-1.843zm.905-1.415a1.16%201.16%200%200%201-.856-.346%201.17%201.17%200%200%201-.346-.856%201.05%201.05%200%200%201%20.346-.79q.346-.329.856-.329.494%200%20.839.33a1.05%201.05%200%200%201%20.345.79%201.16%201.16%200%200%201-.345.855q-.33.346-.84.346zm7.875%209.133a3.17%203.17%200%200%201-1.662-.444q-.723-.46-1.004-1.053l-.033%201.332h-1.71V4.701h1.743v4.657l-.082%201.283q.279-.658%201.086-1.119a3.5%203.5%200%200%201%201.778-.477q1.119%200%201.942.51a3.24%203.24%200%200%201%201.283%201.4q.445.888.444%202.072%200%201.201-.526%202.09a3.5%203.5%200%200%201-1.382%201.366%203.8%203.8%200%200%201-1.876.477zm-.296-1.481q1.069%200%201.645-.675.577-.69.577-1.778%200-1.102-.577-1.776-.56-.691-1.645-.692a2.12%202.12%200%200%200-1.58.659q-.642.641-.642%201.694v.115q0%20.71.296%201.267a2.4%202.4%200%200%200%20.807.872%202.1%202.1%200%200%200%201.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14%202.14%200%200%201%201.349-.46q.527%200%20.724.098l-.247%201.794q-.149-.099-.642-.099-.774%200-1.416.494-.626.493-.626%201.58v3.883h-1.777V9.242zm9.534%207.718q-1.35%200-2.255-.526-.904-.543-1.332-1.432a4.6%204.6%200%200%201-.428-1.975q0-1.2.493-2.106a3.46%203.46%200%200%201%201.4-1.382q.889-.495%202.007-.494%201.744%200%202.584.97.855.956.856%202.7%200%20.444-.05.92h-5.43q.18%201.005.708%201.45.542.443%201.497.443.79%200%201.3-.131a4%204%200%200%200%20.938-.362l.542%201.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728%200-1.991%201.86z%22%2F%3E%3Cpath%20d%3D%22M5.074%2015.948a.484.657%200%200%200-.486.659v1.84a.484.657%200%200%200%20.486.659h4.101a.484.657%200%200%200%20.486-.659v-1.84a.484.657%200%200%200-.486-.659zm3.56%201.16H5.617v.838h3.017z%22%20style%3D%22fill%3A%23fff%3Bfill-rule%3Aevenodd%3Bstroke-width%3A1.03600001%22%2F%3E%3Cg%20style%3D%22stroke-width%3A1.12603545%22%3E%3Cpath%20d%3D%22M-9.408-1.416c-3.833-.025-7.056%202.912-7.08%206.615-.02%203.08%201.653%204.832%203.107%206.268.903.892%201.721%201.74%202.32%202.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87%201.87%200%200%200-.362%201.121l-.011%201.877c-.003.402.104.787.347%201.125.244.338.688.653%201.23.656l4.142.028c.542.003.99-.306%201.238-.641a1.87%201.87%200%200%200%20.363-1.121l.012-1.875a1.87%201.87%200%200%200-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145%201.425-1.983%202.348-2.87%201.473-1.414%203.18-3.149%203.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006%201.1v.002c3.274.02%205.92%202.532%205.9%205.6-.017%202.706-1.39%204.026-2.863%205.44-1.034.994-2.118%202.033-2.814%203.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34%200%200%201-.226.084.34.34%200%200%201-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067%202.7-5.545%205.975-5.523m-.02%202.826c-1.62-.01-2.944%201.315-2.955%202.96-.01%201.646%201.295%202.988%202.916%202.999h.002c1.621.01%202.943-1.316%202.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005%201.1c1.017.006%201.829.83%201.822%201.89s-.83%201.874-1.848%201.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874%201.848-1.868m-2.155%2011.857%204.14.025c.271.002.49.305.487.676l-.013%201.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668%22%20style%3D%22color%3A%23000%3Bfont-style%3Anormal%3Bfont-variant%3Anormal%3Bfont-weight%3A400%3Bfont-stretch%3Anormal%3Bfont-size%3Amedium%3Bline-height%3Anormal%3Bfont-family%3Asans-serif%3Bfont-variant-ligatures%3Anormal%3Bfont-variant-position%3Anormal%3Bfont-variant-caps%3Anormal%3Bfont-variant-numeric%3Anormal%3Bfont-variant-alternates%3Anormal%3Bfont-feature-settings%3Anormal%3Btext-indent%3A0%3Btext-align%3Astart%3Btext-decoration%3Anone%3Btext-decoration-line%3Anone%3Btext-decoration-style%3Asolid%3Btext-decoration-color%3A%23000%3Bletter-spacing%3Anormal%3Bword-spacing%3Anormal%3Btext-transform%3Anone%3Bwriting-mode%3Alr-tb%3Bdirection%3Altr%3Btext-orientation%3Amixed%3Bdominant-baseline%3Aauto%3Bbaseline-shift%3Abaseline%3Btext-anchor%3Astart%3Bwhite-space%3Anormal%3Bshape-padding%3A0%3Bclip-rule%3Aevenodd%3Bdisplay%3Ainline%3Boverflow%3Avisible%3Bvisibility%3Avisible%3Bopacity%3A1%3Bisolation%3Aauto%3Bmix-blend-mode%3Anormal%3Bcolor-interpolation%3AsRGB%3Bcolor-interpolation-filters%3AlinearRGB%3Bsolid-color%3A%23000%3Bsolid-opacity%3A1%3Bvector-effect%3Anone%3Bfill%3A%23000%3Bfill-opacity%3A.4%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-linecap%3Abutt%3Bstroke-linejoin%3Amiter%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-dashoffset%3A0%3Bstroke-opacity%3A1%3Bcolor-rendering%3Aauto%3Bimage-rendering%3Aauto%3Bshape-rendering%3Aauto%3Btext-rendering%3Aauto%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-9.415-.316C-12.69-.338-15.37%202.14-15.39%205.207c-.017%202.716%201.326%204.041%202.78%205.477%201.013%201%202.081%202.055%202.78%203.67l.092.076a.34.34%200%200%200%20.225.086.34.34%200%200%200%20.227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6%201.78-2.64%202.814-3.634%201.473-1.414%202.847-2.733%202.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057%208.784c1.621.011%202.944-1.315%202.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945%201.315-2.955%202.96s1.295%202.989%202.916%203%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23e1e3e9%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-11.594%2015.465c-.27-.002-.492.297-.494.668l-.012%201.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23fff%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl.maplibregl-ctrl-attrib{padding:0 5px;background-color:hsla(0,0%,100%,.5);margin:0}@media screen{.maplibregl-ctrl-attrib.maplibregl-compact{min-height:20px;padding:2px 24px 2px 0;margin:10px;position:relative;background-color:#fff;color:#000;border-radius:12px;box-sizing:content-box}.maplibregl-ctrl-attrib.maplibregl-compact-show{padding:2px 28px 2px 8px;visibility:visible}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact-show,.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact-show{padding:2px 8px 2px 28px;border-radius:12px}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-inner{display:none}.maplibregl-ctrl-attrib-button{display:none;cursor:pointer;position:absolute;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20fill-rule%3D%22evenodd%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M4%2010a6%206%200%201%200%2012%200%206%206%200%201%200-12%200m5-3a1%201%200%201%200%202%200%201%201%200%201%200-2%200m0%203a1%201%200%201%201%202%200v3a1%201%200%201%201-2%200%22%2F%3E%3C%2Fsvg%3E");background-color:hsla(0,0%,100%,.5);width:24px;height:24px;box-sizing:border-box;border-radius:12px;outline:none;top:0;right:0;border:0}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;list-style:none}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button::-webkit-details-marker{display:none}.maplibregl-ctrl-bottom-left .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-top-left .maplibregl-ctrl-attrib-button{left:0}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-inner{display:block}.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-button{background-color:rgba(0,0,0,.05)}.maplibregl-ctrl-bottom-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;right:0}.maplibregl-ctrl-top-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{top:0;right:0}.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{top:0;left:0}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;left:0}}@media screen and (forced-colors:active){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22%23fff%22%20fill-rule%3D%22evenodd%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M4%2010a6%206%200%201%200%2012%200%206%206%200%201%200-12%200m5-3a1%201%200%201%200%202%200%201%201%200%201%200-2%200m0%203a1%201%200%201%201%202%200v3a1%201%200%201%201-2%200%22%2F%3E%3C%2Fsvg%3E")}}@media screen and (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20fill-rule%3D%22evenodd%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M4%2010a6%206%200%201%200%2012%200%206%206%200%201%200-12%200m5-3a1%201%200%201%200%202%200%201%201%200%201%200-2%200m0%203a1%201%200%201%201%202%200v3a1%201%200%201%201-2%200%22%2F%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl-attrib a{color:rgba(0,0,0,.75);text-decoration:none}.maplibregl-ctrl-attrib a:hover{color:inherit;text-decoration:underline}.maplibregl-attrib-empty{display:none}.maplibregl-ctrl-scale{background-color:hsla(0,0%,100%,.75);font-size:10px;white-space:nowrap;border-color:#333;border-style:none solid solid;border-width:medium 2px 2px;padding:0 5px;color:#333;box-sizing:border-box}.maplibregl-popup{position:absolute;top:0;left:0;display:flex;will-change:transform;pointer-events:none}.maplibregl-popup-anchor-top,.maplibregl-popup-anchor-top-left,.maplibregl-popup-anchor-top-right{flex-direction:column}.maplibregl-popup-anchor-bottom,.maplibregl-popup-anchor-bottom-left,.maplibregl-popup-anchor-bottom-right{flex-direction:column-reverse}.maplibregl-popup-anchor-left{flex-direction:row}.maplibregl-popup-anchor-right{flex-direction:row-reverse}.maplibregl-popup-tip{width:0;height:0;border:10px solid transparent;z-index:1}.maplibregl-popup-anchor-top .maplibregl-popup-tip{align-self:center;border-top:none;border-bottom-color:#fff}.maplibregl-popup-anchor-top-left .maplibregl-popup-tip{align-self:flex-start;border-top:none;border-left:none;border-bottom-color:#fff}.maplibregl-popup-anchor-top-right .maplibregl-popup-tip{align-self:flex-end;border-top:none;border-right:none;border-bottom-color:#fff}.maplibregl-popup-anchor-bottom .maplibregl-popup-tip{align-self:center;border-bottom:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip{align-self:flex-start;border-bottom:none;border-left:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip{align-self:flex-end;border-bottom:none;border-right:none;border-top-color:#fff}.maplibregl-popup-anchor-left .maplibregl-popup-tip{align-self:center;border-left:none;border-right-color:#fff}.maplibregl-popup-anchor-right .maplibregl-popup-tip{align-self:center;border-right:none;border-left-color:#fff}[dir=rtl] .maplibregl-popup-anchor-left{flex-direction:row-reverse}[dir=rtl] .maplibregl-popup-anchor-right{flex-direction:row}[dir=rtl] .maplibregl-popup-anchor-top-left .maplibregl-popup-tip{align-self:flex-end}[dir=rtl] .maplibregl-popup-anchor-top-right .maplibregl-popup-tip{align-self:flex-start}[dir=rtl] .maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip{align-self:flex-end}[dir=rtl] .maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip{align-self:flex-start}.maplibregl-popup-close-button{position:absolute;right:0;top:0;border:0;border-radius:0 3px 0 0;cursor:pointer;background-color:transparent}.maplibregl-popup-close-button:hover{background-color:rgba(0,0,0,.05)}.maplibregl-popup-content{position:relative;background:#fff;border-radius:3px;box-shadow:0 1px 2px rgba(0,0,0,.1);padding:15px 10px;pointer-events:auto}.maplibregl-popup-anchor-top-left .maplibregl-popup-content{border-top-left-radius:0}.maplibregl-popup-anchor-top-right .maplibregl-popup-content{border-top-right-radius:0}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-content{border-bottom-left-radius:0}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-content{border-bottom-right-radius:0}.maplibregl-popup-track-pointer{display:none}.maplibregl-popup-track-pointer *{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-map:hover .maplibregl-popup-track-pointer{display:flex}.maplibregl-map:active .maplibregl-popup-track-pointer{display:none}.maplibregl-marker{position:absolute;top:0;left:0;will-change:transform;transition:opacity .2s}.maplibregl-marker-draggable{cursor:grab}.maplibregl-user-location-dot,.maplibregl-user-location-dot:before{background-color:#1da1f2;width:15px;height:15px;border-radius:50%}.maplibregl-user-location-dot:before{content:"";position:absolute;animation:maplibregl-user-location-dot-pulse 2s infinite}.maplibregl-user-location-dot:after{border-radius:50%;border:2px solid #fff;content:"";height:19px;left:-2px;position:absolute;top:-2px;width:19px;box-sizing:border-box;box-shadow:0 0 3px rgba(0,0,0,.35)}@media (prefers-reduced-motion:reduce){.maplibregl-user-location-dot:before{animation:none}}@keyframes maplibregl-user-location-dot-pulse{0%{transform:scale(1);opacity:1}70%{transform:scale(3);opacity:0}to{transform:scale(1);opacity:0}}.maplibregl-user-location-dot-stale{background-color:#aaa}.maplibregl-user-location-dot-stale:after{display:none}.maplibregl-user-location-accuracy-circle{background-color:#1da1f233;width:1px;height:1px;border-radius:100%}.maplibregl-crosshair,.maplibregl-crosshair .maplibregl-interactive,.maplibregl-crosshair .maplibregl-interactive:active{cursor:crosshair}.maplibregl-boxzoom{position:absolute;top:0;left:0;width:0;height:0;background:#fff;border:2px dotted #202020;opacity:.5}.maplibregl-cooperative-gesture-screen{background:rgba(0,0,0,.4);position:absolute;inset:0;display:flex;justify-content:center;align-items:center;color:#fff;padding:1rem;font-size:1.4em;line-height:1.2;opacity:0;pointer-events:none;transition:opacity 1s ease 1s;z-index:99999}.maplibregl-cooperative-gesture-screen.maplibregl-show{opacity:1;transition:opacity .05s}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:none}@media (hover:none),(pointer:coarse){.maplibregl-cooperative-gesture-screen .maplibregl-desktop-message{display:none}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:block}}.maplibregl-pseudo-fullscreen{position:fixed!important;width:100%!important;height:100%!important;top:0!important;left:0!important;z-index:99999}`; document.head.appendChild(e58); } @@ -23898,6 +23898,55 @@ var Plotly = (() => { var FIND_TEX = /([^$]*)([$]+[^$]*[$]+)([^$]*)/; var matchTex = (str) => str ? str.match(FIND_TEX) : null; exports.matchTex = matchTex; + var isPureTex = (str) => { + var tex = matchTex(str); + return !!tex && !tex[1] && !tex[3]; + }; + exports.isPureTex = isPureTex; + function positionMathGroup(_context, svgClass, mathjaxGroup, newSvg, textAnchor, fontSize, width0, height0) { + var g2 = newSvg.select("g"); + var bb2 = g2.node().getBoundingClientRect(); + var w2 = bb2.width; + var h2 = bb2.height; + var w0 = width0 === void 0 ? w2 : width0; + var h0 = height0 === void 0 ? h2 : height0; + if (w2 > w0 || h2 > h0) { + newSvg.style("overflow", "hidden"); + bb2 = newSvg.node().getBoundingClientRect(); + w2 = bb2.width; + h2 = bb2.height; + } + var x2 = +_context.attr("x"); + var y2 = +_context.attr("y"); + var textHeight = fontSize || _context.node().getBoundingClientRect().height; + var dy = -textHeight / 4; + if (svgClass[0] === "y") { + mathjaxGroup.attr({ + transform: "rotate(" + [-90, x2, y2] + ")" + strTranslate(-w2 / 2, dy - h2 / 2) + }); + } else if (svgClass[0] === "l") { + y2 = dy - h2 / 2; + } else if (svgClass[0] === "a" && svgClass.indexOf("atitle") !== 0) { + x2 = 0; + y2 = dy; + } else { + x2 = x2 - w2 * (textAnchor === "middle" ? 0.5 : textAnchor === "end" ? 1 : 0); + y2 = y2 + dy - h2 / 2; + } + newSvg.attr({ + x: x2, + y: y2 + }); + } + function sanitizeMathJaxLinks(newSvg) { + newSvg.selectAll("a").each(function() { + var a2 = d3.select(this); + ["href", "xlink:href"].forEach(function(attrName) { + var href = a2.attr(attrName); + if (href) a2.attr(attrName, sanitizeHref(href) || null); + }); + }); + } exports.convertToTspans = function(_context, gd3, _callback) { var str = _context.text(); var tex = !_context.attr("data-notex") && gd3 && gd3._context.typesetMath && matchTex(str); @@ -23951,6 +24000,7 @@ var Plotly = (() => { "data-math": "Y" }); mathjaxGroup.node().appendChild(newSvg.node()); + sanitizeMathJaxLinks(newSvg); if (_glyphDefs && _glyphDefs.node()) { newSvg.node().insertBefore( _glyphDefs.node().cloneNode(true), @@ -23971,36 +24021,7 @@ var Plotly = (() => { var fill = _context.node().style.fill || "black"; var g2 = newSvg.select("g"); g2.attr({ fill, stroke: fill }); - var bb2 = g2.node().getBoundingClientRect(); - var w2 = bb2.width; - var h2 = bb2.height; - if (w2 > w0 || h2 > h0) { - newSvg.style("overflow", "hidden"); - bb2 = newSvg.node().getBoundingClientRect(); - w2 = bb2.width; - h2 = bb2.height; - } - var x2 = +_context.attr("x"); - var y2 = +_context.attr("y"); - var textHeight = fontSize || _context.node().getBoundingClientRect().height; - var dy = -textHeight / 4; - if (svgClass[0] === "y") { - mathjaxGroup.attr({ - transform: "rotate(" + [-90, x2, y2] + ")" + strTranslate(-w2 / 2, dy - h2 / 2) - }); - } else if (svgClass[0] === "l") { - y2 = dy - h2 / 2; - } else if (svgClass[0] === "a" && svgClass.indexOf("atitle") !== 0) { - x2 = 0; - y2 = dy; - } else { - x2 = x2 - w2 * (textAnchor === "middle" ? 0.5 : textAnchor === "end" ? 1 : 0); - y2 = y2 + dy - h2 / 2; - } - newSvg.attr({ - x: x2, - y: y2 - }); + positionMathGroup(_context, svgClass, mathjaxGroup, newSvg, textAnchor, fontSize, w0, h0); if (_callback) _callback.call(_context, mathjaxGroup); resolve(mathjaxGroup); }); @@ -24008,6 +24029,24 @@ var Plotly = (() => { } else showText(); return _context; }; + exports.repositionMathGroup = function(_context) { + if (_context.empty()) return; + var svgClass = (_context.attr("class") ? _context.attr("class").split(" ")[0] : "text") + "-math"; + var parent = d3.select(_context.node().parentNode); + var mathjaxGroup = parent.select("g." + svgClass + "-group"); + var newSvg = mathjaxGroup.select("svg." + svgClass); + if (mathjaxGroup.empty() || newSvg.empty()) return; + var textAnchor = _context.attr("text-anchor"); + var fontSize = parseInt(_context.node().style.fontSize, 10); + positionMathGroup(_context, svgClass, mathjaxGroup, newSvg, textAnchor, fontSize); + }; + exports.getMathOrTextNode = function(textSel) { + var node = textSel.node(); + if (!node) return null; + var svgClass = (textSel.attr("class") ? textSel.attr("class").split(" ")[0] : "text") + "-math"; + var mathGroup = d3.select(node.parentNode).select("g." + svgClass + "-group"); + return mathGroup.empty() ? node : mathGroup.node(); + }; var LT_MATCH = /(<|<|<)/g; var GT_MATCH = /(>|>|>)/g; function cleanEscapesForTex(s2) { @@ -30773,6 +30812,10 @@ var Plotly = (() => { if (((_b3 = ax2.minor) == null ? void 0 : _b3._tick0Init) === void 0) { mockAx.tick0 = ax2.tick0; } + if (ax2._useTicklabelIndex) { + autoTickRound(mockAx); + ax2.minor._tickround = mockAx._tickround; + } }; function isMultiple(bigger, smaller) { return Math.abs((bigger / smaller + 0.5) % 1 - 0.5) < 1e-3; @@ -30860,24 +30903,32 @@ var Plotly = (() => { function positionPeriodTicks(tickVals, ax2, definedDelta) { for (var i2 = 0; i2 < tickVals.length; i2++) { var v2 = tickVals[i2].value; - var a2 = i2; - var b2 = i2 + 1; - if (i2 < tickVals.length - 1) { - a2 = i2; - b2 = i2 + 1; - } else if (i2 > 0) { - a2 = i2 - 1; - b2 = i2; + var A2, B2; + if (tickVals[i2].periodEndTick != null) { + A2 = tickVals[i2].value; + B2 = tickVals[i2].periodEndTick.value; } else { - a2 = i2; - b2 = i2; + var a2 = i2; + var b2 = i2 + 1; + if (i2 < tickVals.length - 1) { + a2 = i2; + b2 = i2 + 1; + } else if (i2 > 0) { + a2 = i2 - 1; + b2 = i2; + } else { + a2 = i2; + b2 = i2; + } + A2 = tickVals[a2].value; + B2 = tickVals[b2].value; } - var A2 = tickVals[a2].value; - var B2 = tickVals[b2].value; var actualDelta = Math.abs(B2 - A2); var delta = definedDelta || actualDelta; var periodLength = 0; - if (delta >= ONEMINYEAR2) { + if (tickVals[i2].periodEndTick != null) { + periodLength = actualDelta; + } else if (delta >= ONEMINYEAR2) { if (actualDelta >= ONEMINYEAR2 && actualDelta <= ONEMAXYEAR2) { periodLength = actualDelta; } else { @@ -30936,6 +30987,7 @@ var Plotly = (() => { var isPeriod = ax2.ticklabelmode === "period"; var isReversed = ax2.range[0] > ax2.range[1]; var ticklabelIndex = !ax2.ticklabelindex || Lib.isArrayOrTypedArray(ax2.ticklabelindex) ? ax2.ticklabelindex : [ax2.ticklabelindex]; + ax2._useTicklabelIndex = ticklabelIndex != null && ticklabelIndex !== 0; var rng = Lib.simpleMap(ax2.range, ax2.r2l, void 0, void 0, opts); var axrev = rng[1] < rng[0]; var minRange = Math.min(rng[0], rng[1]); @@ -30947,7 +30999,7 @@ var Plotly = (() => { var minorTickVals = []; var allTicklabelVals = []; var hasMinor = ax2.minor && (ax2.minor.ticks || ax2.minor.showgrid); - var calcMinor = hasMinor || ticklabelIndex; + var calcMinor = hasMinor || ax2._useTicklabelIndex; for (var major = 1; major >= (calcMinor ? 0 : 1); major--) { var isMinor = !major; if (major) { @@ -31017,7 +31069,7 @@ var Plotly = (() => { x2 = axes.tickIncrement(x2, dtick, !axrev, calendar); } } - if ((major || ticklabelIndex) && isPeriod) { + if ((major || ax2._useTicklabelIndex) && isPeriod) { x2 = axes.tickIncrement(x2, dtick, !axrev, calendar); if (major) majorId--; } @@ -31052,72 +31104,82 @@ var Plotly = (() => { } } } + function findOverlappingTick(minorTick, majorTicks) { + const majorTick = majorTicks.find((majorTick2) => majorTick2.value === minorTick.value); + if (majorTick != null) { + return majorTick; + } + const epsilon2 = 1e7; + for (let i3 = 0; i3 < majorTicks.length; i3++) { + if (epsilon2 + majorTicks[i3].value === epsilon2 + minorTick.value) { + return majorTicks[i3]; + } + } + return null; + } + ; if (!minorTickVals || minorTickVals.length < 3) { - ticklabelIndex = false; + ax2._useTicklabelIndex = false; } else { - var diff = (minorTickVals[2].value - minorTickVals[1].value) * (isReversed ? -1 : 1); + const diff = (minorTickVals[2].value - minorTickVals[1].value) * (isReversed ? -1 : 1); if (!periodCompatibleWithTickformat(diff, ax2.tickformat)) { - ticklabelIndex = false; + ax2._useTicklabelIndex = false; minorTickVals = minorTickVals.slice(1); } } - if (!ticklabelIndex) { + if (!ax2._useTicklabelIndex) { allTicklabelVals = tickVals; } else { - var allTickVals = tickVals.concat(minorTickVals); + const filteredMinors = minorTickVals.filter((minor) => findOverlappingTick(minor, tickVals) == null); + const labelTickValsAscending = tickVals.concat(filteredMinors).sort((a2, b2) => a2.value - b2.value); if (isPeriod && tickVals.length) { - allTickVals = allTickVals.slice(1); - } - allTickVals = allTickVals.sort(function(a2, b2) { - return a2.value - b2.value; - }).filter(function(tick, index, self2) { - return index === 0 || tick.value !== self2[index - 1].value; - }); - var majorTickIndices = allTickVals.map(function(item, index) { - return item.minor === void 0 && !item.skipLabel ? index : null; - }).filter(function(index) { - return index !== null; - }); - majorTickIndices.forEach(function(majorIdx) { - ticklabelIndex.map(function(nextLabelIdx) { - var minorIdx = majorIdx + nextLabelIdx; - if (minorIdx >= 0 && minorIdx < allTickVals.length) { - Lib.pushUnique(allTicklabelVals, allTickVals[minorIdx]); - } - }); - }); - tickVals.forEach(function(tick) { - tick.skipLabel = allTicklabelVals.indexOf(tick) === -1; + tickVals[0].skipLabel = true; + } + tickVals.forEach(function(majorTick) { + if (!majorTick.skipLabel) { + ticklabelIndex.forEach((labelIndex) => { + if (labelIndex < 0) { + const smallerTicks = labelTickValsAscending.filter((minorTick) => minorTick.value <= majorTick.value); + const absLabelIndex = Math.abs(labelIndex); + const labeledTickIndex = smallerTicks.length - absLabelIndex - 1; + if (absLabelIndex < smallerTicks.length) { + const tickToLabel = smallerTicks[labeledTickIndex]; + allTicklabelVals.push(tickToLabel); + if (isPeriod) { + tickToLabel.periodEndTick = smallerTicks[labeledTickIndex + 1]; + } + } + } else { + const largerTicks = labelTickValsAscending.filter((minorTick) => minorTick.value >= majorTick.value); + if (labelIndex < largerTicks.length) { + const tickToLabel = largerTicks[labelIndex]; + allTicklabelVals.push(tickToLabel); + if (isPeriod && largerTicks[labelIndex + 1]) { + tickToLabel.periodEndTick = largerTicks[labelIndex + 1]; + } + } + } + }); + majorTick.skipLabel = true; + } }); + allTicklabelVals.forEach((t4) => t4.skipLabel = false); } if (hasMinor) { - var canOverlap = ax2.minor.ticks === "inside" && ax2.ticks === "outside" || ax2.minor.ticks === "outside" && ax2.ticks === "inside"; - if (!canOverlap) { - var majorValues = tickVals.map(function(d2) { - return d2.value; - }); + var allowedToOverlap = ax2.minor.ticks === "inside" && ax2.ticks === "outside" || ax2.minor.ticks === "outside" && ax2.ticks === "inside"; + if (!allowedToOverlap) { var list = []; for (var k2 = 0; k2 < minorTickVals.length; k2++) { - var T2 = minorTickVals[k2]; - var v2 = T2.value; - if (majorValues.indexOf(v2) !== -1) { - continue; + if (findOverlappingTick(minorTickVals[k2], tickVals) == null) { + list.push(minorTickVals[k2]); } - var found = false; - for (var q3 = 0; !found && q3 < tickVals.length; q3++) { - if ( - // add 10e6 to eliminate problematic digits - 1e7 + tickVals[q3].value === 1e7 + v2 - ) { - found = true; - } - } - if (!found) list.push(T2); } minorTickVals = list; } } - if (isPeriod) positionPeriodTicks(allTicklabelVals, ax2, ax2._definedDelta); + if (isPeriod) { + positionPeriodTicks(allTicklabelVals, ax2, ax2._definedDelta); + } var i2; if (ax2.rangebreaks) { var flip = ax2._id.charAt(0) === "y"; @@ -31180,7 +31242,7 @@ var Plotly = (() => { var _minor = tickVals[i2].minor; var _value = tickVals[i2].value; if (_minor) { - if (ticklabelIndex && allTicklabelVals.indexOf(tickVals[i2]) !== -1) { + if (ax2._useTicklabelIndex && allTicklabelVals.indexOf(tickVals[i2]) !== -1) { t3 = setTickLabel(ax2, tickVals[i2]); } else { t3 = { x: _value }; @@ -31196,7 +31258,7 @@ var Plotly = (() => { ticksOut.push(t3); } } - if (isPeriod && ticklabelIndex && minorTicks.length) { + if (isPeriod && ax2._useTicklabelIndex && minorTicks.length) { minorTicks[0].noTick = true; } ticksOut = ticksOut.concat(minorTicks); @@ -31565,7 +31627,7 @@ var Plotly = (() => { }; } function formatDate(ax2, out, hover, extraPrecision) { - var tr2 = ax2._tickround; + var tr2 = ax2._useTicklabelIndex ? ax2.minor._tickround : ax2._tickround; var fmt = hover && ax2.hoverformat || axes.getTickFormat(ax2); extraPrecision = !fmt && extraPrecision; if (extraPrecision) { @@ -33900,12 +33962,44 @@ var Plotly = (() => { } }); + // src/components/legend/constants.ts + var constants_exports3 = {}; + __export(constants_exports3, { + dfltFillHeight: () => dfltFillHeight, + itemGap: () => itemGap, + itemHeightPad: () => itemHeightPad, + itemMinHeight: () => itemMinHeight, + scrollBarColor: () => scrollBarColor, + scrollBarEnterAttrs: () => scrollBarEnterAttrs, + scrollBarMargin: () => scrollBarMargin, + scrollBarMinHeight: () => scrollBarMinHeight, + scrollBarWidth: () => scrollBarWidth, + titlePad: () => titlePad + }); + var scrollBarWidth, scrollBarMinHeight, scrollBarColor, scrollBarMargin, scrollBarEnterAttrs, titlePad, itemGap, dfltFillHeight, itemMinHeight, itemHeightPad; + var init_constants3 = __esm({ + "src/components/legend/constants.ts"() { + "use strict"; + scrollBarWidth = 6; + scrollBarMinHeight = 20; + scrollBarColor = "#808BA4"; + scrollBarMargin = 4; + scrollBarEnterAttrs = { rx: 20, ry: 3, width: 0, height: 0 }; + titlePad = 2; + itemGap = 5; + dfltFillHeight = 6; + itemMinHeight = 16; + itemHeightPad = 3; + } + }); + // src/components/legend/attributes.js var require_attributes9 = __commonJS({ "src/components/legend/attributes.js"(exports, module) { "use strict"; var fontAttrs = require_font_attributes(); var colorAttrs = require_attributes3(); + var { dfltFillHeight: dfltFillHeight2 } = (init_constants3(), __toCommonJS(constants_exports3)); module.exports = { // not really a 'subplot' attribute container, // but this is the flag we use to denote attributes that @@ -33989,6 +34083,12 @@ var Plotly = (() => { dflt: 30, editType: "legend" }, + itemheight: { + valType: "number", + min: dfltFillHeight2, + dflt: dfltFillHeight2, + editType: "legend" + }, itemclick: { valType: "enumerated", values: ["toggle", "toggleothers", false], @@ -34266,6 +34366,7 @@ var Plotly = (() => { coerce("indentation"); coerce("itemsizing"); coerce("itemwidth"); + coerce("itemheight"); coerce("itemclick"); coerce("itemdoubleclick"); const groupClick = coerce("groupclick"); @@ -34586,31 +34687,6 @@ var Plotly = (() => { } }); - // src/components/legend/constants.ts - var constants_exports3 = {}; - __export(constants_exports3, { - itemGap: () => itemGap, - scrollBarColor: () => scrollBarColor, - scrollBarEnterAttrs: () => scrollBarEnterAttrs, - scrollBarMargin: () => scrollBarMargin, - scrollBarMinHeight: () => scrollBarMinHeight, - scrollBarWidth: () => scrollBarWidth, - titlePad: () => titlePad - }); - var scrollBarWidth, scrollBarMinHeight, scrollBarColor, scrollBarMargin, scrollBarEnterAttrs, titlePad, itemGap; - var init_constants3 = __esm({ - "src/components/legend/constants.ts"() { - "use strict"; - scrollBarWidth = 6; - scrollBarMinHeight = 20; - scrollBarColor = "#808BA4"; - scrollBarMargin = 4; - scrollBarEnterAttrs = { rx: 20, ry: 3, width: 0, height: 0 }; - titlePad = 2; - itemGap = 5; - } - }); - // src/components/legend/get_legend_data.js var require_get_legend_data = __commonJS({ "src/components/legend/get_legend_data.js"(exports, module) { @@ -34855,6 +34931,7 @@ var Plotly = (() => { if (!legend) legend = fullLayout.legend; var constantItemSizing = legend.itemsizing === "constant"; var itemWidth = legend.itemwidth; + var itemHeight = legend.itemheight; var centerPos = (itemWidth + constants2.itemGap * 2) / 2; var centerTransform = strTranslate(centerPos, 0); var boundLineWidth = function(mlw, cont, max, cst) { @@ -34932,7 +35009,9 @@ var Plotly = (() => { var fill = this3.select(".legendfill").selectAll("path").data(showFill || showGradientFill ? [d2] : []); fill.enter().append("path").classed("js-fill", true); fill.exit().remove(); - fill.attr("d", pathStart + "h" + itemWidth + "v6h-" + itemWidth + "z").call(fillStyle); + fill.attr("d", pathStart + "h" + itemWidth + "v" + itemHeight + "h-" + itemWidth + "z").call(fillStyle); + const fillShiftY = showFill || showGradientFill ? (constants2.dfltFillHeight - itemHeight) / 2 : 0; + this3.selectAll("g.legendfill, g.legendlines, g.legendsymbols").attr("transform", fillShiftY ? strTranslate(0, fillShiftY) : null); if (showLine || showGradientLine) { var lw2 = boundLineWidth(void 0, trace.line, MAX_LINE_WIDTH, CST_LINE_WIDTH); tMod = Lib.minExtend(trace, { line: { width: lw2 } }); @@ -35092,14 +35171,18 @@ var Plotly = (() => { var fillColor = mcc || d0.mc || marker.color; var markerPattern = marker.pattern; var pAttr = Drawing.getPatternAttr; - var patternShape = markerPattern && (pAttr(markerPattern.shape, 0, "") || pAttr(markerPattern.path, 0, "")); + let patternIndex = 0; + if (legend._inHover && d0._distinct && d0.index != null) { + patternIndex = d0.index; + } + const patternShape = markerPattern && (pAttr(markerPattern.shape, patternIndex, "") || pAttr(markerPattern.path, patternIndex, "")); if (patternShape) { - var patternBGColor = pAttr(markerPattern.bgcolor, 0, null); - var patternFGColor = pAttr(markerPattern.fgcolor, 0, null); + const patternBGColor = pAttr(markerPattern.bgcolor, patternIndex, null); + const patternFGColor = pAttr(markerPattern.fgcolor, patternIndex, null); var patternFGOpacity = markerPattern.fgopacity; - var patternSize = dimAttr(markerPattern.size, 8, 10); - var patternSolidity = dimAttr(markerPattern.solidity, 0.5, 1); - var patternID = "legend-" + trace.uid; + const patternSize = legend._inHover ? dimAttr(pAttr(markerPattern.size, patternIndex, 8), 8, 10) : dimAttr(markerPattern.size, 8, 10); + const patternSolidity = legend._inHover ? dimAttr(pAttr(markerPattern.solidity, patternIndex, 0.5), 0.5, 1) : dimAttr(markerPattern.solidity, 0.5, 1); + const patternID = legend._inHover ? `hover-${trace.uid}-${patternIndex}` : `legend-${trace.uid}`; p2.call( Drawing.pattern, "legend", @@ -35921,7 +36004,7 @@ var Plotly = (() => { }); } function textLayout(s2, g2, gd3, legendObj, aTitle) { - if (legendObj._inHover) s2.attr("data-notex", true); + if (legendObj._inHover) s2.attr("data-notex", svgTextUtils.isPureTex(s2.text()) ? null : true); svgTextUtils.convertToTspans(s2, gd3, function() { computeTextDimensions(g2, gd3, legendObj, aTitle); }); @@ -35996,7 +36079,8 @@ var Plotly = (() => { legendObj._titleHeight = height; } else { legendItem.lineHeight = lineHeight; - legendItem.height = Math.max(height, 16) + 3; + const fillItemHeight = constants2.itemMinHeight + legendObj.itemheight - constants2.dfltFillHeight; + legendItem.height = Math.max(height, constants2.itemMinHeight, fillItemHeight) + constants2.itemHeightPad; legendItem.width = width; } } @@ -36188,6 +36272,13 @@ var Plotly = (() => { } Drawing.setRect(traceToggle, 0, -h2 / 2, w2, h2); }); + if (legendObj._inHover) { + const textRight = legendObj._width - bw22 - itemGap2 - titleSize[0]; + traces.each(function(d2) { + if (d2[0].textAlign !== "right") return; + d3.select(this).select("." + legendId + "text").attr("text-anchor", "end").call(svgTextUtils.positionText, textRight); + }); + } var titleEl = scrollBox.select("." + legendId + "titletext"); if (titleEl.node()) { horizontalAlignTitle(titleEl, legendObj, bw2); @@ -36391,28 +36482,47 @@ var Plotly = (() => { outerContainer: opts.outerContainer || opts.container }); var hoverLabel = hoverText.hoverLabels; - var tooltipSpacing = 5; - var lastBottomY = 0; - var anchor = 0; - hoverLabel.sort(function(a2, b2) { - return a2.y0 - b2.y0; - }).each(function(d2, i2) { - var topY = d2.y0 - d2.by / 2; - if (topY - tooltipSpacing < lastBottomY) { - d2.offset = lastBottomY - topY + tooltipSpacing; - } else { - d2.offset = 0; - } - lastBottomY = topY + d2.by + d2.offset; - if (i2 === opts.anchorIndex || 0) anchor = d2.offset; - }).each(function(d2) { - d2.offset -= anchor; - }); + function fixVerticalOverlap() { + var tooltipSpacing = 5; + var lastBottomY = 0; + var anchor = 0; + hoverLabel.sort(function(a2, b2) { + return a2.y0 - b2.y0; + }).each(function(d2, i2) { + var topY = d2.y0 - d2.by / 2; + if (topY - tooltipSpacing < lastBottomY) { + d2.offset = lastBottomY - topY + tooltipSpacing; + } else { + d2.offset = 0; + } + lastBottomY = topY + d2.by + d2.offset; + if (i2 === opts.anchorIndex || 0) anchor = d2.offset; + }).each(function(d2) { + d2.offset -= anchor; + }); + } var scaleX = gd3._fullLayout._invScaleX; var scaleY = gd3._fullLayout._invScaleY; + fixVerticalOverlap(); alignHoverText(hoverLabel, rotateLabels, scaleX, scaleY); + if (hoverText.mathjaxPromise) { + hoverText.mathjaxPromise.then(function() { + fixVerticalOverlap(); + alignHoverText(hoverLabel, rotateLabels, scaleX, scaleY); + hoverLabel.each(function() { + var g2 = d3.select(this); + svgTextUtils.repositionMathGroup(g2.select("text.nums")); + svgTextUtils.repositionMathGroup(g2.select("text.name")); + }); + }); + } return multiHover ? hoverLabel : hoverLabel.node(); }; + function canSpikeToNonHoveredPoint(xa3, ya3) { + return Boolean( + (xa3 == null ? void 0 : xa3.showspikes) && xa3.spikesnap !== "hovered data" || (ya3 == null ? void 0 : ya3.showspikes) && ya3.spikesnap !== "hovered data" + ); + } function _hover(gd3, evt, subplot, noHoverEvent, eventTarget) { if (!subplot) subplot = "xy"; if (typeof subplot === "string") { @@ -36425,6 +36535,7 @@ var Plotly = (() => { var plots = fullLayout._plots || []; var plotinfo = plots[subplot]; var hasCartesian = fullLayout._has("cartesian"); + var hasTernary = fullLayout._has("ternary"); var hovermode = evt.hovermode || fullLayout.hovermode; var hovermodeHasX = (hovermode || "").charAt(0) === "x"; var hovermodeHasY = (hovermode || "").charAt(0) === "y"; @@ -36487,6 +36598,7 @@ var Plotly = (() => { hLinePoint: null, vLinePoint: null }; + const ternarySpikePoints = {}; var hasOneHorizontalTrace = false; if (Array.isArray(evt)) { hovermode = "array"; @@ -36683,42 +36795,56 @@ var Plotly = (() => { hoverData.splice(0, closedataPreviousLength); distance = hoverData[0].distance; } - if (hasCartesian && spikedistance !== 0) { - if (hoverData.length === 0) { - pointData.distance = spikedistance; - pointData.index = false; - var closestPoints = trace._module.hoverPoints(pointData, xval, yval, "closest", { - hoverLayer: fullLayout._hoverlayer - }); - if (closestPoints) { - closestPoints = closestPoints.filter(function(point) { - return point.spikeDistance <= spikedistance; - }); + if (Registry.traceIs(trace, "ternary") && spikedistance !== 0) { + const ternary = pointData.subplot; + const needsClosestPoint = ["aaxis", "baxis", "caxis"].some((name4) => ternary[name4].showspikes && ternary[name4].spikesnap !== "hovered data"); + if (needsClosestPoint) { + let spikePoint = newPoints == null ? void 0 : newPoints[0]; + if (!Number.isFinite(spikePoint == null ? void 0 : spikePoint.spikeDistance)) { + const spikeData = Lib.extendFlat({}, pointData, { distance: spikedistance, index: false }); + const closestPoints2 = trace._module.hoverPoints(spikeData, xval, yval, "closest"); + spikePoint = closestPoints2 && closestPoints2[0]; } - if (closestPoints && closestPoints.length) { - var tmpPoint; - var closestVPoints = closestPoints.filter(function(point) { - return point.xa.showspikes && point.xa.spikesnap !== "hovered data"; - }); - if (closestVPoints.length) { - var closestVPt = closestVPoints[0]; - if (isNumeric2(closestVPt.x0) && isNumeric2(closestVPt.y0)) { - tmpPoint = fillSpikePoint(closestVPt); - if (!spikePoints.vLinePoint || spikePoints.vLinePoint.spikeDistance > tmpPoint.spikeDistance) { - spikePoints.vLinePoint = tmpPoint; - } + const previousSpikePoint = ternarySpikePoints[subplotId]; + if (spikePoint && spikePoint.index !== void 0 && spikePoint.index !== false && spikePoint.spikeDistance <= spikedistance && (!previousSpikePoint || spikePoint.spikeDistance < previousSpikePoint.spikeDistance)) { + ternarySpikePoints[subplotId] = spikePoint; + } + } + } + if (hasCartesian && hoverData.length === 0 && spikedistance !== 0 && canSpikeToNonHoveredPoint(pointData.xa, pointData.ya)) { + pointData.distance = spikedistance; + pointData.index = false; + var closestPoints = trace._module.hoverPoints(pointData, xval, yval, "closest", { + hoverLayer: fullLayout._hoverlayer + }); + if (closestPoints) { + closestPoints = closestPoints.filter(function(point) { + return point.spikeDistance <= spikedistance; + }); + } + if (closestPoints == null ? void 0 : closestPoints.length) { + var tmpPoint; + var closestVPoints = closestPoints.filter(function(point) { + return point.xa.showspikes && point.xa.spikesnap !== "hovered data"; + }); + if (closestVPoints.length) { + var closestVPt = closestVPoints[0]; + if (isNumeric2(closestVPt.x0) && isNumeric2(closestVPt.y0)) { + tmpPoint = fillSpikePoint(closestVPt); + if (!spikePoints.vLinePoint || spikePoints.vLinePoint.spikeDistance > tmpPoint.spikeDistance) { + spikePoints.vLinePoint = tmpPoint; } } - var closestHPoints = closestPoints.filter(function(point) { - return point.ya.showspikes && point.ya.spikesnap !== "hovered data"; - }); - if (closestHPoints.length) { - var closestHPt = closestHPoints[0]; - if (isNumeric2(closestHPt.x0) && isNumeric2(closestHPt.y0)) { - tmpPoint = fillSpikePoint(closestHPt); - if (!spikePoints.hLinePoint || spikePoints.hLinePoint.spikeDistance > tmpPoint.spikeDistance) { - spikePoints.hLinePoint = tmpPoint; - } + } + var closestHPoints = closestPoints.filter(function(point) { + return point.ya.showspikes && point.ya.spikesnap !== "hovered data"; + }); + if (closestHPoints.length) { + var closestHPt = closestHPoints[0]; + if (isNumeric2(closestHPt.x0) && isNumeric2(closestHPt.y0)) { + tmpPoint = fillSpikePoint(closestHPt); + if (!spikePoints.hLinePoint || spikePoints.hLinePoint.spikeDistance > tmpPoint.spikeDistance) { + spikePoints.hLinePoint = tmpPoint; } } } @@ -36727,6 +36853,18 @@ var Plotly = (() => { } } findHoverPoints(); + function updateTernarySpikelines() { + fullLayout._hoverlayer.selectAll(".ternary-spikes").remove(); + if (spikedistance === 0) return; + for (let i3 = 0; i3 < subplots.length; i3++) { + const id4 = subplots[i3]; + const ternary = fullLayout[id4] && fullLayout[id4]._subplot; + if (ternary && ternary.drawSpikelines) { + const point = hoverData.find((d2) => d2.trace.subplot === id4 && d2.index !== void 0 && d2.index !== false && d2.spikeDistance <= spikedistance); + ternary.drawSpikelines(point, ternarySpikePoints[id4], xvalArray && xvalArray[i3], yvalArray && yvalArray[i3]); + } + } + } function selectClosestPoint(pointsData, spikedistance2, spikeOnWinning2) { var resultPoint = null; var minDistance = Infinity; @@ -36816,6 +36954,7 @@ var Plotly = (() => { emitHover([]); gd3._hoverAnywhereActive = true; } + if (hasTernary) updateTernarySpikelines(); return result; } if (hasCartesian) { @@ -36823,6 +36962,7 @@ var Plotly = (() => { createSpikelines(gd3, spikePoints, spikelineOpts); } } + if (hasTernary) updateTernarySpikelines(); if (helpers.isXYhover(_mode) && hoverData[0].length !== 0 && hoverData[0].trace.type !== "splom") { var winningPoint = hoverData[0]; if (multipleHoverPoints[winningPoint.trace.type]) { @@ -36912,6 +37052,18 @@ var Plotly = (() => { if (!helpers.isUnifiedHover(hovermode)) { hoverAvoidOverlaps(hoverLabels, rotateLabels, fullLayout, hoverText.commonLabelBoundingBox); alignHoverText(hoverLabels, rotateLabels, fullLayout._invScaleX, fullLayout._invScaleY); + if (hoverText.mathjaxPromise) { + hoverText.mathjaxPromise.then(function() { + if (gd3._hoverdata !== newhoverdata) return; + hoverAvoidOverlaps(hoverLabels, rotateLabels, fullLayout, hoverText.commonLabelBoundingBox); + alignHoverText(hoverLabels, rotateLabels, fullLayout._invScaleX, fullLayout._invScaleY); + hoverLabels.each(function() { + var g2 = d3.select(this); + svgTextUtils.repositionMathGroup(g2.select("text.nums")); + svgTextUtils.repositionMathGroup(g2.select("text.name")); + }); + }); + } } if (eventTarget && eventTarget.tagName) { var hasClickToShow = Registry.getComponentMethod("annotations", "hasClickToShow")(gd3, newhoverdata); @@ -36945,6 +37097,9 @@ var Plotly = (() => { return [d2.trace.index, d2.index, d2.x0, d2.y0, d2.name, d2.attr, d2.xa ? d2.xa._id : "", d2.ya ? d2.ya._id : ""].join(","); } var EXTRA_STRING_REGEX = /([\s\S]*)<\/extra>/; + function getHoverTextBBox(gd3, textSel) { + return getBoundingClientRect(gd3, svgTextUtils.getMathOrTextNode(textSel)); + } function createHoverText(hoverData, opts) { var gd3 = opts.gd; var fullLayout = gd3._fullLayout; @@ -36955,6 +37110,7 @@ var Plotly = (() => { var outerContainer = opts.outerContainer; var commonLabelOpts = opts.commonLabelOpts || {}; if (hoverData.length === 0) return [[]]; + var mathjaxPromises = []; var fontFamily = opts.fontFamily || constants2.HOVERFONT; var fontSize = opts.fontSize || constants2.HOVERFONTSIZE; var fontWeight = opts.fontWeight || fullLayout.font.weight; @@ -37010,9 +37166,7 @@ var Plotly = (() => { var lpath = Lib.ensureSingle(label, "path", "", function(s2) { s2.style({ "stroke-width": "1px" }); }); - var ltext = Lib.ensureSingle(label, "text", "", function(s2) { - s2.attr("data-notex", 1); - }); + var ltext = Lib.ensureSingle(label, "text", ""); var commonBgColor = commonLabelOpts.bgcolor || Color.defaultLine; var commonStroke = commonLabelOpts.bordercolor || Color.contrast(commonBgColor); var contrastColor = Color.contrast(commonBgColor); @@ -37032,100 +37186,122 @@ var Plotly = (() => { fill: commonBgColor, stroke: commonStroke }); - ltext.text(t0).call(Drawing.font, commonLabelFont).call(svgTextUtils.positionText, 0, 0).call(svgTextUtils.convertToTspans, gd3); - label.attr("transform", ""); - var tbb2 = getBoundingClientRect(gd3, ltext.node()); - var lx3, ly2; - if (hovermode === "x") { - var topsign = xa3.side === "top" ? "-" : ""; - ltext.attr("text-anchor", "middle").call( - svgTextUtils.positionText, - 0, - xa3.side === "top" ? outerTop - tbb2.bottom - HOVERARROWSIZE2 - HOVERTEXTPAD2 : outerTop - tbb2.top + HOVERARROWSIZE2 + HOVERTEXTPAD2 - ); - lx3 = xa3._offset + (c0.x0 + c0.x1) / 2; - ly2 = ya3._offset + (xa3.side === "top" ? 0 : ya3._length); - var halfWidth = tbb2.width / 2 + HOVERTEXTPAD2; - var tooltipMidX = lx3; - if (lx3 < halfWidth) { - tooltipMidX = halfWidth; - } else if (lx3 > fullLayout.width - halfWidth) { - tooltipMidX = fullLayout.width - halfWidth; - } - lpath.attr( - "d", - "M" + (lx3 - tooltipMidX) + ",0L" + (lx3 - tooltipMidX + HOVERARROWSIZE2) + "," + topsign + HOVERARROWSIZE2 + "H" + halfWidth + "v" + topsign + (HOVERTEXTPAD2 * 2 + tbb2.height) + "H" + -halfWidth + "V" + topsign + HOVERARROWSIZE2 + "H" + (lx3 - tooltipMidX - HOVERARROWSIZE2) + "Z" - ); - lx3 = tooltipMidX; - commonLabelRect.minX = lx3 - halfWidth; - commonLabelRect.maxX = lx3 + halfWidth; - if (xa3.side === "top") { - commonLabelRect.minY = ly2 - (HOVERTEXTPAD2 * 2 + tbb2.height); - commonLabelRect.maxY = ly2 - HOVERTEXTPAD2; - } else { - commonLabelRect.minY = ly2 + HOVERTEXTPAD2; - commonLabelRect.maxY = ly2 + (HOVERTEXTPAD2 * 2 + tbb2.height); - } - } else { - var anchor; - var sgn; - var leftsign; - if (ya3.side === "right") { - anchor = "start"; - sgn = 1; - leftsign = ""; - lx3 = xa3._offset + xa3._length; - } else { - anchor = "end"; - sgn = -1; - leftsign = "-"; - lx3 = xa3._offset; - } - ly2 = ya3._offset + (c0.y0 + c0.y1) / 2; - ltext.attr("text-anchor", anchor); - lpath.attr( - "d", - "M0,0L" + leftsign + HOVERARROWSIZE2 + "," + HOVERARROWSIZE2 + "V" + (HOVERTEXTPAD2 + tbb2.height / 2) + "h" + leftsign + (HOVERTEXTPAD2 * 2 + tbb2.width) + "V-" + (HOVERTEXTPAD2 + tbb2.height / 2) + "H" + leftsign + HOVERARROWSIZE2 + "V-" + HOVERARROWSIZE2 + "Z" - ); - commonLabelRect.minY = ly2 - (HOVERTEXTPAD2 + tbb2.height / 2); - commonLabelRect.maxY = ly2 + (HOVERTEXTPAD2 + tbb2.height / 2); - if (ya3.side === "right") { - commonLabelRect.minX = lx3 + HOVERARROWSIZE2; - commonLabelRect.maxX = lx3 + HOVERARROWSIZE2 + (HOVERTEXTPAD2 * 2 + tbb2.width); - } else { - commonLabelRect.minX = lx3 - HOVERARROWSIZE2 - (HOVERTEXTPAD2 * 2 + tbb2.width); - commonLabelRect.maxX = lx3 - HOVERARROWSIZE2; - } - var halfHeight = tbb2.height / 2; - var lty = outerTop - tbb2.top - halfHeight; - var clipId = "clip" + fullLayout._uid + "commonlabel" + ya3._id; - var clipPath; - if (lx3 < tbb2.width + 2 * HOVERTEXTPAD2 + HOVERARROWSIZE2) { - clipPath = "M-" + (HOVERARROWSIZE2 + HOVERTEXTPAD2) + "-" + halfHeight + "h-" + (tbb2.width - HOVERTEXTPAD2) + "V" + halfHeight + "h" + (tbb2.width - HOVERTEXTPAD2) + "Z"; - var ltx = tbb2.width - lx3 + HOVERTEXTPAD2; - svgTextUtils.positionText(ltext, ltx, lty); - if (anchor === "end") { - ltext.selectAll("tspan").each(function() { - var s2 = d3.select(this); - var dummy = Drawing.tester.append("text").text(s2.text()).call(Drawing.font, commonLabelFont); - var dummyBB = getBoundingClientRect(gd3, dummy.node()); - if (Math.round(dummyBB.width) < Math.round(tbb2.width)) { - s2.attr("x", ltx - dummyBB.width); + var commonLabelTex = svgTextUtils.isPureTex(String(t0)); + var onCommonLabelReady; + if (commonLabelTex) { + mathjaxPromises.push( + new Promise(function(resolve) { + onCommonLabelReady = function() { + if (!ltext.node().parentNode) { + resolve(); + return; } - dummy.remove(); - }); + positionCommonLabel(); + svgTextUtils.repositionMathGroup(ltext); + resolve(); + }; + }) + ); + } + ltext.text(t0).call(Drawing.font, commonLabelFont).attr("data-notex", commonLabelTex ? null : 1).call(svgTextUtils.positionText, 0, 0).call(svgTextUtils.convertToTspans, gd3, onCommonLabelReady); + positionCommonLabel(); + function positionCommonLabel() { + label.attr("transform", ""); + svgTextUtils.positionText(ltext, 0, 0); + svgTextUtils.repositionMathGroup(ltext); + var tbb2 = getHoverTextBBox(gd3, ltext); + var lx3, ly2; + if (hovermode === "x") { + var topsign = xa3.side === "top" ? "-" : ""; + ltext.attr("text-anchor", "middle").call( + svgTextUtils.positionText, + 0, + xa3.side === "top" ? outerTop - tbb2.bottom - HOVERARROWSIZE2 - HOVERTEXTPAD2 : outerTop - tbb2.top + HOVERARROWSIZE2 + HOVERTEXTPAD2 + ); + lx3 = xa3._offset + (c0.x0 + c0.x1) / 2; + ly2 = ya3._offset + (xa3.side === "top" ? 0 : ya3._length); + var halfWidth = tbb2.width / 2 + HOVERTEXTPAD2; + var tooltipMidX = lx3; + if (lx3 < halfWidth) { + tooltipMidX = halfWidth; + } else if (lx3 > fullLayout.width - halfWidth) { + tooltipMidX = fullLayout.width - halfWidth; + } + lpath.attr( + "d", + "M" + (lx3 - tooltipMidX) + ",0L" + (lx3 - tooltipMidX + HOVERARROWSIZE2) + "," + topsign + HOVERARROWSIZE2 + "H" + halfWidth + "v" + topsign + (HOVERTEXTPAD2 * 2 + tbb2.height) + "H" + -halfWidth + "V" + topsign + HOVERARROWSIZE2 + "H" + (lx3 - tooltipMidX - HOVERARROWSIZE2) + "Z" + ); + lx3 = tooltipMidX; + commonLabelRect.minX = lx3 - halfWidth; + commonLabelRect.maxX = lx3 + halfWidth; + if (xa3.side === "top") { + commonLabelRect.minY = ly2 - (HOVERTEXTPAD2 * 2 + tbb2.height); + commonLabelRect.maxY = ly2 - HOVERTEXTPAD2; + } else { + commonLabelRect.minY = ly2 + HOVERTEXTPAD2; + commonLabelRect.maxY = ly2 + (HOVERTEXTPAD2 * 2 + tbb2.height); } } else { - svgTextUtils.positionText(ltext, sgn * (HOVERTEXTPAD2 + HOVERARROWSIZE2), lty); - clipPath = null; + var anchor; + var sgn; + var leftsign; + if (ya3.side === "right") { + anchor = "start"; + sgn = 1; + leftsign = ""; + lx3 = xa3._offset + xa3._length; + } else { + anchor = "end"; + sgn = -1; + leftsign = "-"; + lx3 = xa3._offset; + } + ly2 = ya3._offset + (c0.y0 + c0.y1) / 2; + ltext.attr("text-anchor", anchor); + lpath.attr( + "d", + "M0,0L" + leftsign + HOVERARROWSIZE2 + "," + HOVERARROWSIZE2 + "V" + (HOVERTEXTPAD2 + tbb2.height / 2) + "h" + leftsign + (HOVERTEXTPAD2 * 2 + tbb2.width) + "V-" + (HOVERTEXTPAD2 + tbb2.height / 2) + "H" + leftsign + HOVERARROWSIZE2 + "V-" + HOVERARROWSIZE2 + "Z" + ); + commonLabelRect.minY = ly2 - (HOVERTEXTPAD2 + tbb2.height / 2); + commonLabelRect.maxY = ly2 + (HOVERTEXTPAD2 + tbb2.height / 2); + if (ya3.side === "right") { + commonLabelRect.minX = lx3 + HOVERARROWSIZE2; + commonLabelRect.maxX = lx3 + HOVERARROWSIZE2 + (HOVERTEXTPAD2 * 2 + tbb2.width); + } else { + commonLabelRect.minX = lx3 - HOVERARROWSIZE2 - (HOVERTEXTPAD2 * 2 + tbb2.width); + commonLabelRect.maxX = lx3 - HOVERARROWSIZE2; + } + var halfHeight = tbb2.height / 2; + var lty = outerTop - tbb2.top - halfHeight; + var clipId = "clip" + fullLayout._uid + "commonlabel" + ya3._id; + var clipPath; + if (lx3 < tbb2.width + 2 * HOVERTEXTPAD2 + HOVERARROWSIZE2) { + clipPath = "M-" + (HOVERARROWSIZE2 + HOVERTEXTPAD2) + "-" + halfHeight + "h-" + (tbb2.width - HOVERTEXTPAD2) + "V" + halfHeight + "h" + (tbb2.width - HOVERTEXTPAD2) + "Z"; + var ltx = tbb2.width - lx3 + HOVERTEXTPAD2; + svgTextUtils.positionText(ltext, ltx, lty); + if (anchor === "end") { + ltext.selectAll("tspan").each(function() { + var s2 = d3.select(this); + var dummy = Drawing.tester.append("text").text(s2.text()).call(Drawing.font, commonLabelFont); + var dummyBB = getBoundingClientRect(gd3, dummy.node()); + if (Math.round(dummyBB.width) < Math.round(tbb2.width)) { + s2.attr("x", ltx - dummyBB.width); + } + dummy.remove(); + }); + } + } else { + svgTextUtils.positionText(ltext, sgn * (HOVERTEXTPAD2 + HOVERARROWSIZE2), lty); + clipPath = null; + } + var textClip = fullLayout._topclips.selectAll("#" + clipId).data(clipPath ? [0] : []); + textClip.enter().append("clipPath").attr("id", clipId).append("path"); + textClip.exit().remove(); + textClip.select("path").attr("d", clipPath); + Drawing.setClipUrl(ltext, clipPath ? clipId : null, gd3); } - var textClip = fullLayout._topclips.selectAll("#" + clipId).data(clipPath ? [0] : []); - textClip.enter().append("clipPath").attr("id", clipId).append("path"); - textClip.exit().remove(); - textClip.select("path").attr("d", clipPath); - Drawing.setClipUrl(ltext, clipPath ? clipId : null, gd3); + label.attr("transform", strTranslate(lx3, ly2)); } - label.attr("transform", strTranslate(lx3, ly2)); }); if (helpers.isUnifiedHover(hovermode)) { container.selectAll("g.hovertext").remove(); @@ -37332,6 +37508,23 @@ var Plotly = (() => { var texts2 = getHoverLabelText(d2, showCommonLabel, hovermode, fullLayout, t0, g2); var text2 = texts2[0]; var name5 = texts2[1]; + var hasName = !!(name5 && name5 !== text2); + var numsTex = svgTextUtils.isPureTex(text2); + var nameTex = hasName && svgTextUtils.isPureTex(name5); + var pendingLabelParts = (numsTex ? 1 : 0) + (nameTex ? 1 : 0); + var onLabelPartReady; + if (pendingLabelParts) { + mathjaxPromises.push( + new Promise(function(resolve) { + onLabelPartReady = function() { + if (--pendingLabelParts === 0) { + if (g2.node().parentNode) finalizePosition(); + resolve(); + } + }; + }) + ); + } var tx2 = g2.select("text.nums").call(Drawing.font, { family: d2.fontFamily || fontFamily, size: d2.fontSize || fontSize, @@ -37342,11 +37535,9 @@ var Plotly = (() => { textcase: d2.fontTextcase || fontTextcase, lineposition: d2.fontLineposition || fontLineposition, shadow: d2.fontShadow || fontShadow - }).text(text2).attr("data-notex", 1).call(svgTextUtils.positionText, 0, 0).call(svgTextUtils.convertToTspans, gd3); + }).text(text2).attr("data-notex", numsTex ? null : 1).call(svgTextUtils.positionText, 0, 0).call(svgTextUtils.convertToTspans, gd3, numsTex ? onLabelPartReady : void 0); var tx22 = g2.select("text.name"); - var tx2width = 0; - var tx2height = 0; - if (name5 && name5 !== text2) { + if (hasName) { tx22.call(Drawing.font, { family: d2.fontFamily || fontFamily, size: d2.fontSize || fontSize, @@ -37357,75 +37548,90 @@ var Plotly = (() => { textcase: d2.fontTextcase || fontTextcase, lineposition: d2.fontLineposition || fontLineposition, shadow: d2.fontShadow || fontShadow - }).text(name5).attr("data-notex", 1).call(svgTextUtils.positionText, 0, 0).call(svgTextUtils.convertToTspans, gd3); - var t2bb = getBoundingClientRect(gd3, tx22.node()); - tx2width = t2bb.width + 2 * HOVERTEXTPAD2; - tx2height = t2bb.height + 2 * HOVERTEXTPAD2; + }).text(name5).attr("data-notex", nameTex ? null : 1).call(svgTextUtils.positionText, 0, 0).call(svgTextUtils.convertToTspans, gd3, nameTex ? onLabelPartReady : void 0); } else { tx22.remove(); g2.select("rect").remove(); } - g2.select("path").style({ - fill: numsColor, - stroke: contrastColor - }); - var htx = d2.xa._offset + (d2.x0 + d2.x1) / 2; - var hty = d2.ya._offset + (d2.y0 + d2.y1) / 2; - var dx2 = Math.abs(d2.x1 - d2.x0); - var dy = Math.abs(d2.y1 - d2.y0); - var tbb2 = getBoundingClientRect(gd3, tx2.node()); - var tbbWidth = tbb2.width / fullLayout._invScaleX; - var tbbHeight = tbb2.height / fullLayout._invScaleY; - d2.ty0 = (outerTop - tbb2.top) / fullLayout._invScaleY; - d2.bx = tbbWidth + 2 * HOVERTEXTPAD2; - d2.by = Math.max(tbbHeight + 2 * HOVERTEXTPAD2, tx2height); - d2.anchor = "start"; - d2.txwidth = tbbWidth; - d2.tx2width = tx2width; - d2.offset = 0; - var txTotalWidth = (tbbWidth + HOVERARROWSIZE2 + HOVERTEXTPAD2 + tx2width) * fullLayout._invScaleX; - var anchorStartOK, anchorEndOK; - if (rotateLabels) { - d2.pos = htx; - anchorStartOK = hty + dy / 2 + txTotalWidth <= outerHeight; - anchorEndOK = hty - dy / 2 - txTotalWidth >= 0; - if ((d2.idealAlign === "top" || !anchorStartOK) && anchorEndOK) { - hty -= dy / 2; - d2.anchor = "end"; - } else if (anchorStartOK) { - hty += dy / 2; - d2.anchor = "start"; + finalizePosition(); + function finalizePosition() { + g2.attr("transform", ""); + tx2.call(svgTextUtils.positionText, 0, 0); + svgTextUtils.repositionMathGroup(tx2); + if (hasName) { + tx22.call(svgTextUtils.positionText, 0, 0); + svgTextUtils.repositionMathGroup(tx22); + } + g2.select("path").style({ + fill: numsColor, + stroke: contrastColor + }); + var htx = d2.xa._offset + (d2.x0 + d2.x1) / 2; + var hty = d2.ya._offset + (d2.y0 + d2.y1) / 2; + var dx2 = Math.abs(d2.x1 - d2.x0); + var dy = Math.abs(d2.y1 - d2.y0); + var tx2width = 0; + var tx2height = 0; + if (hasName) { + var t2bb = getHoverTextBBox(gd3, tx22); + tx2width = t2bb.width + 2 * HOVERTEXTPAD2; + tx2height = t2bb.height + 2 * HOVERTEXTPAD2; + } + var tbb2 = getHoverTextBBox(gd3, tx2); + var tbbWidth = tbb2.width / fullLayout._invScaleX; + var tbbHeight = tbb2.height / fullLayout._invScaleY; + d2.ty0 = (outerTop - tbb2.top) / fullLayout._invScaleY; + d2.bx = tbbWidth + 2 * HOVERTEXTPAD2; + d2.by = Math.max(tbbHeight + 2 * HOVERTEXTPAD2, tx2height); + d2.anchor = "start"; + d2.txwidth = tbbWidth; + d2.tx2width = tx2width; + d2.offset = 0; + var txTotalWidth = (tbbWidth + HOVERARROWSIZE2 + HOVERTEXTPAD2 + tx2width) * fullLayout._invScaleX; + var anchorStartOK, anchorEndOK; + if (rotateLabels) { + d2.pos = htx; + anchorStartOK = hty + dy / 2 + txTotalWidth <= outerHeight; + anchorEndOK = hty - dy / 2 - txTotalWidth >= 0; + if ((d2.idealAlign === "top" || !anchorStartOK) && anchorEndOK) { + hty -= dy / 2; + d2.anchor = "end"; + } else if (anchorStartOK) { + hty += dy / 2; + d2.anchor = "start"; + } else { + d2.anchor = "middle"; + } + d2.crossPos = hty; } else { - d2.anchor = "middle"; + d2.pos = hty; + anchorStartOK = htx + dx2 / 2 + txTotalWidth <= outerWidth; + anchorEndOK = htx - dx2 / 2 - txTotalWidth >= 0; + if ((d2.idealAlign === "left" || !anchorStartOK) && anchorEndOK) { + htx -= dx2 / 2; + d2.anchor = "end"; + } else if (anchorStartOK) { + htx += dx2 / 2; + d2.anchor = "start"; + } else { + d2.anchor = "middle"; + var txHalfWidth = txTotalWidth / 2; + var overflowR = htx + txHalfWidth - outerWidth; + var overflowL = htx - txHalfWidth; + if (overflowR > 0) htx -= overflowR; + if (overflowL < 0) htx += -overflowL; + } + d2.crossPos = htx; } - d2.crossPos = hty; - } else { - d2.pos = hty; - anchorStartOK = htx + dx2 / 2 + txTotalWidth <= outerWidth; - anchorEndOK = htx - dx2 / 2 - txTotalWidth >= 0; - if ((d2.idealAlign === "left" || !anchorStartOK) && anchorEndOK) { - htx -= dx2 / 2; - d2.anchor = "end"; - } else if (anchorStartOK) { - htx += dx2 / 2; - d2.anchor = "start"; - } else { - d2.anchor = "middle"; - var txHalfWidth = txTotalWidth / 2; - var overflowR = htx + txHalfWidth - outerWidth; - var overflowL = htx - txHalfWidth; - if (overflowR > 0) htx -= overflowR; - if (overflowL < 0) htx += -overflowL; - } - d2.crossPos = htx; - } - tx2.attr("text-anchor", d2.anchor); - if (tx2width) tx22.attr("text-anchor", d2.anchor); - g2.attr("transform", strTranslate(htx, hty) + (rotateLabels ? strRotate(YANGLE2) : "")); + tx2.attr("text-anchor", d2.anchor); + if (tx2width) tx22.attr("text-anchor", d2.anchor); + g2.attr("transform", strTranslate(htx, hty) + (rotateLabels ? strRotate(YANGLE2) : "")); + } }); return { hoverLabels, - commonLabelBoundingBox: commonLabelRect + commonLabelBoundingBox: commonLabelRect, + mathjaxPromise: mathjaxPromises.length ? Promise.all(mathjaxPromises) : null }; } function getHoverLabelText(d2, showCommonLabel, hovermode, fullLayout, t0, g2) { @@ -48788,7 +48994,7 @@ var Plotly = (() => { } function marginPushersAgain() { if (!Plots.didMarginChange(oldMargins, fullLayout._size)) return; - return Lib.syncOrAsync([marginPushers, subroutines.layoutStyles], gd3); + return marginPushers(); } function positionAndAutorange() { if (!recalc) { diff --git a/dist/plotly-map.min.js b/dist/plotly-map.min.js index fbcfe8071d9..07cea92b153 100644 --- a/dist/plotly-map.min.js +++ b/dist/plotly-map.min.js @@ -1,5 +1,5 @@ /** -* plotly.js (map - minified) v4.1.2 +* plotly.js (map - minified) v4.2.0 * Copyright 2012-2026, Plotly, Inc. * All rights reserved. * Licensed under the MIT license @@ -12,16 +12,16 @@ root.moduleName = factory(); } } (typeof self !== "undefined" ? self : this, () => { -"use strict";var Plotly=(()=>{var x0e=Object.create;var lv=Object.defineProperty,b0e=Object.defineProperties,w0e=Object.getOwnPropertyDescriptor,A0e=Object.getOwnPropertyDescriptors,T0e=Object.getOwnPropertyNames,I_=Object.getOwnPropertySymbols,M0e=Object.getPrototypeOf,bA=Object.prototype.hasOwnProperty,rI=Object.prototype.propertyIsEnumerable;var tI=(e,t,r)=>t in e?lv(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,nr=(e,t)=>{for(var r in t||(t={}))bA.call(t,r)&&tI(e,r,t[r]);if(I_)for(var r of I_(t))rI.call(t,r)&&tI(e,r,t[r]);return e},Gr=(e,t)=>b0e(e,A0e(t));var iI=(e,t)=>{var r={};for(var i in e)bA.call(e,i)&&t.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&I_)for(var i of I_(e))t.indexOf(i)<0&&rI.call(e,i)&&(r[i]=e[i]);return r};var Vi=(e,t,r)=>()=>{if(r)throw r[0];try{return e&&(t=e(e=0)),t}catch(i){throw r=[i],i}};var X=(e,t)=>()=>{try{return t||e((t={exports:{}}).exports,t),t.exports}catch(r){throw t=0,r}},Zi=(e,t)=>{for(var r in t)lv(e,r,{get:t[r],enumerable:!0})},aI=(e,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of T0e(t))!bA.call(e,a)&&a!==r&&lv(e,a,{get:()=>t[a],enumerable:!(i=w0e(t,a))||i.enumerable});return e};var wA=(e,t,r)=>(r=e!=null?x0e(M0e(e)):{},aI(t||!e||!e.__esModule?lv(r,"default",{value:e,enumerable:!0}):r,e)),ct=e=>aI(lv({},"__esModule",{value:!0}),e);var Kt=(e,t,r)=>new Promise((i,a)=>{var n=l=>{try{s(r.next(l))}catch(u){a(u)}},o=l=>{try{s(r.throw(l))}catch(u){a(u)}},s=l=>l.done?i(l.value):Promise.resolve(l.value).then(n,o);s((r=r.apply(e,t)).next())});var uv=X(nI=>{"use strict";nI.version="4.1.2"});var sI=X((oI,L_)=>{(function(t,r,i){r[t]=r[t]||i(),typeof L_!="undefined"&&L_.exports&&(L_.exports=r[t])})("Promise",typeof window!="undefined"?window:oI,function(){"use strict";var t,r,i,a=Object.prototype.toString,n=typeof setImmediate!="undefined"?function(x){return setImmediate(x)}:setTimeout;try{Object.defineProperty({},"x",{}),t=function(x,w,_,A){return Object.defineProperty(x,w,{value:_,writable:!0,configurable:A!==!1})}}catch(y){t=function(w,_,A){return w[_]=A,w}}i=(function(){var x,w,_;function A(T,M){this.fn=T,this.self=M,this.next=void 0}return{add:function(M,S){_=new A(M,S),w?w.next=_:x=_,w=_,_=void 0},drain:function(){var M=x;for(x=w=r=void 0;M;)M.fn.call(M.self),M=M.next}}})();function o(y,x){i.add(y,x),r||(r=n(i.drain))}function s(y){var x,w=typeof y;return y!=null&&(w=="object"||w=="function")&&(x=y.then),typeof x=="function"?x:!1}function l(){for(var y=0;y0&&o(l,w))}catch(_){h.call(new d(w),_)}}}function h(y){var x=this;x.triggered||(x.triggered=!0,x.def&&(x=x.def),x.msg=y,x.state=2,x.chain.length>0&&o(l,x))}function f(y,x,w,_){for(var A=0;A{(function(){var e={version:"3.8.2"},t=[].slice,r=function(v){return t.call(v)},i=self.document;function a(v){return v&&(v.ownerDocument||v.document||v).documentElement}function n(v){return v&&(v.ownerDocument&&v.ownerDocument.defaultView||v.document&&v||v.defaultView)}if(i)try{r(i.documentElement.childNodes)[0].nodeType}catch(v){r=function(b){for(var D=b.length,E=new Array(D);D--;)E[D]=b[D];return E}}if(Date.now||(Date.now=function(){return+new Date}),i)try{i.createElement("DIV").style.setProperty("opacity",0,"")}catch(v){var o=this.Element.prototype,s=o.setAttribute,l=o.setAttributeNS,u=this.CSSStyleDeclaration.prototype,c=u.setProperty;o.setAttribute=function(b,D){s.call(this,b,D+"")},o.setAttributeNS=function(b,D,E){l.call(this,b,D,E+"")},u.setProperty=function(b,D,E){c.call(this,b,D+"",E)}}e.ascending=h;function h(v,b){return vb?1:v>=b?0:NaN}e.descending=function(v,b){return bv?1:b>=v?0:NaN},e.min=function(v,b){var D=-1,E=v.length,C,F;if(arguments.length===1){for(;++D=F){C=F;break}for(;++DF&&(C=F)}else{for(;++D=F){C=F;break}for(;++DF&&(C=F)}return C},e.max=function(v,b){var D=-1,E=v.length,C,F;if(arguments.length===1){for(;++D=F){C=F;break}for(;++DC&&(C=F)}else{for(;++D=F){C=F;break}for(;++DC&&(C=F)}return C},e.extent=function(v,b){var D=-1,E=v.length,C,F,N;if(arguments.length===1){for(;++D=F){C=N=F;break}for(;++DF&&(C=F),N=F){C=N=F;break}for(;++DF&&(C=F),N1)return N/(U-1)},e.deviation=function(){var v=e.variance.apply(this,arguments);return v&&Math.sqrt(v)};function p(v){return{left:function(b,D,E,C){for(arguments.length<3&&(E=0),arguments.length<4&&(C=b.length);E>>1;v(b[F],D)<0?E=F+1:C=F}return E},right:function(b,D,E,C){for(arguments.length<3&&(E=0),arguments.length<4&&(C=b.length);E>>1;v(b[F],D)>0?C=F:E=F+1}return E}}}var m=p(h);e.bisectLeft=m.left,e.bisect=e.bisectRight=m.right,e.bisector=function(v){return p(v.length===1?function(b,D){return h(v(b),D)}:v)},e.shuffle=function(v,b,D){(E=arguments.length)<3&&(D=v.length,E<2&&(b=0));for(var E=D-b,C,F;E;)F=Math.random()*E--|0,C=v[E+b],v[E+b]=v[F+b],v[F+b]=C;return v},e.permute=function(v,b){for(var D=b.length,E=new Array(D);D--;)E[D]=v[b[D]];return E},e.pairs=function(v){for(var b=0,D=v.length-1,E,C=v[0],F=new Array(D<0?0:D);b=0;)for(N=v[b],D=N.length;--D>=0;)F[--C]=N[D];return F};var y=Math.abs;e.range=function(v,b,D){if(arguments.length<3&&(D=1,arguments.length<2&&(b=v,v=0)),(b-v)/D===1/0)throw new Error("infinite range");var E=[],C=x(y(D)),F=-1,N;if(v*=C,b*=C,D*=C,D<0)for(;(N=v+D*++F)>b;)E.push(N/C);else for(;(N=v+D*++F)=b.length)return C?C.call(v,U):E?U.sort(E):U;for(var K=-1,ne=U.length,oe=b[Y++],Te,Pe,ue,ve=new _,xe;++K=b.length)return R;var Y=[],K=D[U++];return R.forEach(function(ne,oe){Y.push({key:ne,values:N(oe,U)})}),K?Y.sort(function(ne,oe){return K(ne.key,oe.key)}):Y}return v.map=function(R,U){return F(U,R,0)},v.entries=function(R){return N(F(e.map,R,0),0)},v.key=function(R){return b.push(R),v},v.sortKeys=function(R){return D[b.length-1]=R,v},v.sortValues=function(R){return E=R,v},v.rollup=function(R){return C=R,v},v},e.set=function(v){var b=new z;if(v)for(var D=0,E=v.length;D=0&&(E=v.slice(D+1),v=v.slice(0,D)),v)return arguments.length<2?this[v].on(E):this[v].on(E,b);if(arguments.length===2){if(b==null)for(v in this)this.hasOwnProperty(v)&&this[v].on(E,null);return this}};function W(v){var b=[],D=new _;function E(){for(var C=b,F=-1,N=C.length,R;++F=0&&(D=v.slice(0,b))!=="xmlns"&&(v=v.slice(b+1)),ze.hasOwnProperty(D)?{space:ze[D],local:v}:v}},te.attr=function(v,b){if(arguments.length<2){if(typeof v=="string"){var D=this.node();return v=e.ns.qualify(v),v.local?D.getAttributeNS(v.space,v.local):D.getAttribute(v)}for(b in v)this.each(He(b,v[b]));return this}return this.each(He(v,b))};function He(v,b){v=e.ns.qualify(v);function D(){this.removeAttribute(v)}function E(){this.removeAttributeNS(v.space,v.local)}function C(){this.setAttribute(v,b)}function F(){this.setAttributeNS(v.space,v.local,b)}function N(){var U=b.apply(this,arguments);U==null?this.removeAttribute(v):this.setAttribute(v,U)}function R(){var U=b.apply(this,arguments);U==null?this.removeAttributeNS(v.space,v.local):this.setAttributeNS(v.space,v.local,U)}return b==null?v.local?E:D:typeof b=="function"?v.local?R:N:v.local?F:C}function ke(v){return v.trim().replace(/\s+/g," ")}te.classed=function(v,b){if(arguments.length<2){if(typeof v=="string"){var D=this.node(),E=(v=qe(v)).length,C=-1;if(b=D.classList){for(;++C=0;)(F=D[E])&&(C&&C!==F.nextSibling&&C.parentNode.insertBefore(F,C),C=F);return this},te.sort=function(v){v=we.apply(this,arguments);for(var b=-1,D=this.length;++b=b&&(b=C+1);!(U=N[b])&&++b0&&(v=v.slice(0,C));var N=We.get(v);N&&(v=N,F=Qe);function R(){var K=this[E];K&&(this.removeEventListener(v,K,K.$),delete this[E])}function U(){var K=F(b,r(arguments));R.call(this),this.addEventListener(v,this[E]=K,K.$=D),K._=b}function Y(){var K=new RegExp("^__on([^.]+)"+e.requote(v)+"$"),ne;for(var oe in this)if(ne=oe.match(K)){var Te=this[oe];this.removeEventListener(ne[1],Te,Te.$),delete this[oe]}}return C?b?U:R:b?H:Y}var We=e.map({mouseenter:"mouseover",mouseleave:"mouseout"});i&&We.forEach(function(v){"on"+v in i&&We.remove(v)});function lt(v,b){return function(D){var E=e.event;e.event=D,b[0]=this.__data__;try{v.apply(this,b)}finally{e.event=E}}}function Qe(v,b){var D=lt(v,b);return function(E){var C=this,F=E.relatedTarget;(!F||F!==C&&!(F.compareDocumentPosition(C)&8))&&D.call(C,E)}}var st,vt=0;function ut(v){var b=".dragsuppress-"+ ++vt,D="click"+b,E=e.select(n(v)).on("touchmove"+b,le).on("dragstart"+b,le).on("selectstart"+b,le);if(st==null&&(st="onselectstart"in v?!1:$(v.style,"userSelect")),st){var C=a(v).style,F=C[st];C[st]="none"}return function(N){if(E.on(b,null),st&&(C[st]=F),N){var R=function(){E.on(D,null)};E.on(D,function(){le(),R()},!0),setTimeout(R,0)}}}e.mouse=function(v){return Ze(v,pe())};var Tt=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;function Ze(v,b){b.changedTouches&&(b=b.changedTouches[0]);var D=v.ownerSVGElement||v;if(D.createSVGPoint){var E=D.createSVGPoint();if(Tt<0){var C=n(v);if(C.scrollX||C.scrollY){D=e.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var F=D[0][0].getScreenCTM();Tt=!(F.f||F.e),D.remove()}}return Tt?(E.x=b.pageX,E.y=b.pageY):(E.x=b.clientX,E.y=b.clientY),E=E.matrixTransform(v.getScreenCTM().inverse()),[E.x,E.y]}var N=v.getBoundingClientRect();return[b.clientX-N.left-v.clientLeft,b.clientY-N.top-v.clientTop]}e.touch=function(v,b,D){if(arguments.length<3&&(D=b,b=pe().changedTouches),b){for(var E=0,C=b.length,F;E0?1:v<0?-1:0}function Fr(v,b,D){return(b[0]-v[0])*(D[1]-v[1])-(b[1]-v[1])*(D[0]-v[0])}function Kr(v){return v>1?0:v<-1?Pt:Math.acos(v)}function si(v){return v>1?fe:v<-1?-fe:Math.asin(v)}function Ni(v){return((v=Math.exp(v))-1/v)/2}function Pr(v){return((v=Math.exp(v))+1/v)/2}function Hr(v){return((v=Math.exp(2*v))-1)/(v+1)}function gi(v){return(v=Math.sin(v/2))*v}var hi=Math.SQRT2,Ca=2,Ja=4;e.interpolateZoom=function(v,b){var D=v[0],E=v[1],C=v[2],F=b[0],N=b[1],R=b[2],U=F-D,Y=N-E,K=U*U+Y*Y,ne,oe;if(K0&&(Et=Et.transition().duration(N)),Et.call(Ie.event)}function jt(){ve&&ve.domain(ue.range().map(function(Et){return(Et-v.x)/v.k}).map(ue.invert)),Fe&&Fe.domain(xe.range().map(function(Et){return(Et-v.y)/v.k}).map(xe.invert))}function $t(Et){R++||Et({type:"zoomstart"})}function xr(Et){jt(),Et({type:"zoom",scale:v.k,translate:[v.x,v.y]})}function Xt(Et){--R||(Et({type:"zoomend"}),D=null)}function pr(){var Et=this,br=Pe.of(Et,arguments),Tr=0,ci=e.select(n(Et)).on(Y,qn).on(K,yo),ga=Ae(e.mouse(Et)),rn=ut(Et);k_.call(Et),$t(br);function qn(){Tr=1,qt(e.mouse(Et),ga),xr(br)}function yo(){ci.on(Y,null).on(K,null),rn(Tr),Xt(br)}}function ui(){var Et=this,br=Pe.of(Et,arguments),Tr={},ci=0,ga,rn=".zoom-"+e.event.changedTouches[0].identifier,qn="touchmove"+rn,yo="touchend"+rn,Uo=[],_o=e.select(Et),as=ut(Et);ns(),$t(br),_o.on(U,null).on(oe,ns);function eo(){var su=e.touches(Et);return ga=v.k,su.forEach(function(On){On.identifier in Tr&&(Tr[On.identifier]=Ae(On))}),su}function ns(){var su=e.event.target;e.select(su).on(qn,k0).on(yo,_0e),Uo.push(su);for(var On=e.event.changedTouches,fl=0,Xu=On.length;fl1){var C0=dl[0],Uh=dl[1],P_=C0[0]-Uh[0],eI=C0[1]-Uh[1];ci=P_*P_+eI*eI}}function k0(){var su=e.touches(Et),On,fl,Xu,dl;k_.call(Et);for(var Cp=0,C0=su.length;Cp1?1:b,D=D<0?0:D>1?1:D,C=D<=.5?D*(1+b):D+b-D*b,E=2*D-C;function F(R){return R>360?R-=360:R<0&&(R+=360),R<60?E+(C-E)*R/60:R<180?C:R<240?E+(C-E)*(240-R)/60:E}function N(R){return Math.round(F(R)*255)}return new Aa(N(v+120),N(v),N(v-120))}e.hcl=ei;function ei(v,b,D){return this instanceof ei?(this.h=+v,this.c=+b,void(this.l=+D)):arguments.length<2?v instanceof ei?new ei(v.h,v.c,v.l):v instanceof ji?Nu(v.l,v.a,v.b):Nu((v=Rn((v=e.rgb(v)).r,v.g,v.b)).l,v.a,v.b):new ei(v,b,D)}var Ht=ei.prototype=new Zr;Ht.brighter=function(v){return new ei(this.h,this.c,Math.min(100,this.l+ti*(arguments.length?v:1)))},Ht.darker=function(v){return new ei(this.h,this.c,Math.max(0,this.l-ti*(arguments.length?v:1)))},Ht.rgb=function(){return va(this.h,this.c,this.l).rgb()};function va(v,b,D){return isNaN(v)&&(v=0),isNaN(b)&&(b=0),new ji(D,Math.cos(v*=Se)*b,Math.sin(v)*b)}e.lab=ji;function ji(v,b,D){return this instanceof ji?(this.l=+v,this.a=+b,void(this.b=+D)):arguments.length<2?v instanceof ji?new ji(v.l,v.a,v.b):v instanceof ei?va(v.h,v.c,v.l):Rn((v=Aa(v)).r,v.g,v.b):new ji(v,b,D)}var ti=18,Li=.95047,Yi=1,Ko=1.08883,po=ji.prototype=new Zr;po.brighter=function(v){return new ji(Math.min(100,this.l+ti*(arguments.length?v:1)),this.a,this.b)},po.darker=function(v){return new ji(Math.max(0,this.l-ti*(arguments.length?v:1)),this.a,this.b)},po.rgb=function(){return rl(this.l,this.a,this.b)};function rl(v,b,D){var E=(v+16)/116,C=E+b/500,F=E-D/200;return C=As(C)*Li,E=As(E)*Yi,F=As(F)*Ko,new Aa(il(3.2404542*C-1.5371385*E-.4985314*F),il(-.969266*C+1.8760108*E+.041556*F),il(.0556434*C-.2040259*E+1.0572252*F))}function Nu(v,b,D){return v>0?new ei(Math.atan2(D,b)*it,Math.sqrt(b*b+D*D),v):new ei(NaN,NaN,v)}function As(v){return v>.206893034?v*v*v:(v-4/29)/7.787037}function Vu(v){return v>.008856?Math.pow(v,1/3):7.787037*v+4/29}function il(v){return Math.round(255*(v<=.00304?12.92*v:1.055*Math.pow(v,1/2.4)-.055))}e.rgb=Aa;function Aa(v,b,D){return this instanceof Aa?(this.r=~~v,this.g=~~b,void(this.b=~~D)):arguments.length<2?v instanceof Aa?new Aa(v.r,v.g,v.b):al(""+v,Aa,Mi):new Aa(v,b,D)}function Ro(v){return new Aa(v>>16,v>>8&255,v&255)}function Ts(v){return Ro(v)+""}var mo=Aa.prototype=new Zr;mo.brighter=function(v){v=Math.pow(.7,arguments.length?v:1);var b=this.r,D=this.g,E=this.b,C=30;return!b&&!D&&!E?new Aa(C,C,C):(b&&b>4,E=E>>4|E,C=U&240,C=C>>4|C,F=U&15,F=F<<4|F):v.length===7&&(E=(U&16711680)>>16,C=(U&65280)>>8,F=U&255)),b(E,C,F))}function Kl(v,b,D){var E=Math.min(v/=255,b/=255,D/=255),C=Math.max(v,b,D),F=C-E,N,R,U=(C+E)/2;return F?(R=U<.5?F/(C+E):F/(2-C-E),v==C?N=(b-D)/F+(b0&&U<1?0:N),new Ti(N,R,U)}function Rn(v,b,D){v=nl(v),b=nl(b),D=nl(D);var E=Vu((.4124564*v+.3575761*b+.1804375*D)/Li),C=Vu((.2126729*v+.7151522*b+.072175*D)/Yi),F=Vu((.0193339*v+.119192*b+.9503041*D)/Ko);return ji(116*C-16,500*(E-C),200*(C-F))}function nl(v){return(v/=255)<=.04045?v/12.92:Math.pow((v+.055)/1.055,2.4)}function Ms(v){var b=parseFloat(v);return v.charAt(v.length-1)==="%"?Math.round(b*2.55):b}var Qt=e.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});Qt.forEach(function(v,b){Qt.set(v,Ro(b))});function Jt(v){return typeof v=="function"?v:function(){return v}}e.functor=Jt,e.xhr=Ur(O);function Ur(v){return function(b,D,E){return arguments.length===2&&typeof D=="function"&&(E=D,D=null),Dt(b,D,v,E)}}function Dt(v,b,D,E){var C={},F=e.dispatch("beforesend","progress","load","error"),N={},R=new XMLHttpRequest,U=null;self.XDomainRequest&&!("withCredentials"in R)&&/^(http(s)?:)?\/\//.test(v)&&(R=new XDomainRequest),"onload"in R?R.onload=R.onerror=Y:R.onreadystatechange=function(){R.readyState>3&&Y()};function Y(){var K=R.status,ne;if(!K&&Di(R)||K>=200&&K<300||K===304){try{ne=D.call(C,R)}catch(oe){F.error.call(C,oe);return}F.load.call(C,ne)}else F.error.call(C,R)}return R.onprogress=function(K){var ne=e.event;e.event=K;try{F.progress.call(C,R)}finally{e.event=ne}},C.header=function(K,ne){return K=(K+"").toLowerCase(),arguments.length<2?N[K]:(ne==null?delete N[K]:N[K]=ne+"",C)},C.mimeType=function(K){return arguments.length?(b=K==null?null:K+"",C):b},C.responseType=function(K){return arguments.length?(U=K,C):U},C.response=function(K){return D=K,C},["get","post"].forEach(function(K){C[K]=function(){return C.send.apply(C,[K].concat(r(arguments)))}}),C.send=function(K,ne,oe){if(arguments.length===2&&typeof ne=="function"&&(oe=ne,ne=null),R.open(K,v,!0),b!=null&&!("accept"in N)&&(N.accept=b+",*/*"),R.setRequestHeader)for(var Te in N)R.setRequestHeader(Te,N[Te]);return b!=null&&R.overrideMimeType&&R.overrideMimeType(b),U!=null&&(R.responseType=U),oe!=null&&C.on("error",oe).on("load",function(Pe){oe(null,Pe)}),F.beforesend.call(C,R),R.send(ne==null?null:ne),C},C.abort=function(){return R.abort(),C},e.rebind(C,F,"on"),E==null?C:C.get(Va(E))}function Va(v){return v.length===1?function(b,D){v(b==null?D:null)}:v}function Di(v){var b=v.responseType;return b&&b!=="text"?v.response:v.responseText}e.dsv=function(v,b){var D=new RegExp('["'+v+` -]`),E=v.charCodeAt(0);function C(Y,K,ne){arguments.length<3&&(ne=K,K=null);var oe=Dt(Y,b,K==null?F:N(K),ne);return oe.row=function(Te){return arguments.length?oe.response((K=Te)==null?F:N(Te)):K},oe}function F(Y){return C.parse(Y.responseText)}function N(Y){return function(K){return C.parse(K.responseText,Y)}}C.parse=function(Y,K){var ne;return C.parseRows(Y,function(oe,Te){if(ne)return ne(oe,Te-1);var Pe=function(ue){for(var ve={},xe=oe.length,Fe=0;Fe=Pe)return oe;if(Fe)return Fe=!1,ne;var dt=ue;if(Y.charCodeAt(dt)===34){for(var Ct=dt;Ct++24?(isFinite(b)&&(clearTimeout(Jo),Jo=setTimeout(Qo,b)),hn=0):(hn=1,Ds(Qo))}e.timer.flush=function(){Uu(),qo()};function Uu(){for(var v=Date.now(),b=Wi;b;)v>=b.t&&b.c(v-b.t)&&(b.c=null),b=b.n;return v}function qo(){for(var v,b=Wi,D=1/0;b;)b.c?(b.t=0;--R)ue.push(C[Y[ne[R]][2]]);for(R=+Te;R1&&Fr(v[D[E-2]],v[D[E-1]],v[C])<=0;)--E;D[E++]=C}return D.slice(0,E)}function Ph(v,b){return v[0]-b[0]||v[1]-b[1]}e.geom.polygon=function(v){return de(v,Ql),v};var Ql=e.geom.polygon.prototype=[];Ql.area=function(){for(var v=-1,b=this.length,D,E=this[b-1],C=0;++vrt)R=R.L;else if(N=b-Rc(R,D),N>rt){if(!R.R){E=R;break}R=R.R}else{F>-rt?(E=R.P,C=R):N>-rt?(E=R,C=R.N):E=C=R;break}var U=u0(v);if(Oo.insert(E,U),!(!E&&!C)){if(E===C){ks(E),C=u0(E.site),Oo.insert(U,C),U.edge=C.edge=Jn(E.site,U.site),ts(E),ts(C);return}if(!C){U.edge=Jn(E.site,U.site);return}ks(E),ks(C);var Y=E.site,K=Y.x,ne=Y.y,oe=v.x-K,Te=v.y-ne,Pe=C.site,ue=Pe.x-K,ve=Pe.y-ne,xe=2*(oe*ve-Te*ue),Fe=oe*oe+Te*Te,Ie=ue*ue+ve*ve,Ae={x:(ve*Fe-Te*Ie)/xe+K,y:(oe*Ie-ue*Fe)/xe+ne};tu(C.edge,Y,Pe,Ae),U.edge=Jn(Y,v,null,Ae),C.edge=Jn(v,Pe,null,Ae),ts(E),ts(C)}}function c0(v,b){var D=v.site,E=D.x,C=D.y,F=C-b;if(!F)return E;var N=v.P;if(!N)return-1/0;D=N.site;var R=D.x,U=D.y,Y=U-b;if(!Y)return R;var K=R-E,ne=1/F-1/Y,oe=K/Y;return ne?(-oe+Math.sqrt(oe*oe-2*ne*(K*K/(-2*Y)-U+Y/2+C-F/2)))/ne+E:(E+R)/2}function Rc(v,b){var D=v.N;if(D)return c0(D,b);var E=v.site;return E.y===b?E.x:1/0}function ll(v){this.site=v,this.edges=[]}ll.prototype.prepare=function(){for(var v=this.edges,b=v.length,D;b--;)D=v[b].edge,(!D.b||!D.a)&&v.splice(b,1);return v.sort(zh),v.length};function Dn(v){for(var b=v[0][0],D=v[1][0],E=v[0][1],C=v[1][1],F,N,R,U,Y=Ss,K=Y.length,ne,oe,Te,Pe,ue,ve;K--;)if(ne=Y[K],!(!ne||!ne.prepare()))for(Te=ne.edges,Pe=Te.length,oe=0;oert||y(U-N)>rt)&&(Te.splice(oe,0,new qc(vp(ne.site,ve,y(R-b)rt?{x:b,y:y(F-b)rt?{x:y(N-C)rt?{x:D,y:y(F-D)rt?{x:y(N-E)=-Ft)){var oe=U*U+Y*Y,Te=K*K+ve*ve,Pe=(ve*oe-Y*Te)/ne,ue=(U*Te-K*oe)/ne,ve=ue+R,xe=ju.pop()||new Bc;xe.arc=v,xe.site=C,xe.x=Pe+N,xe.y=ve+Math.sqrt(Pe*Pe+ue*ue),xe.cy=ve,v.circle=xe;for(var Fe=null,Ie=es._;Ie;)if(xe.y0)){if(ue/=Te,Te<0){if(ue0){if(ue>oe)return;ue>ne&&(ne=ue)}if(ue=D-R,!(!Te&&ue<0)){if(ue/=Te,Te<0){if(ue>oe)return;ue>ne&&(ne=ue)}else if(Te>0){if(ue0)){if(ue/=Pe,Pe<0){if(ue0){if(ue>oe)return;ue>ne&&(ne=ue)}if(ue=E-U,!(!Pe&&ue<0)){if(ue/=Pe,Pe<0){if(ue>oe)return;ue>ne&&(ne=ue)}else if(Pe>0){if(ue0&&(C.a={x:R+ne*Te,y:U+ne*Pe}),oe<1&&(C.b={x:R+oe*Te,y:U+oe*Pe}),C}}}}}}function ha(v){for(var b=sl,D=h0(v[0][0],v[0][1],v[1][0],v[1][1]),E=b.length,C;E--;)C=b[E],(!No(C,v)||!D(C)||y(C.a.x-C.b.x)=F)return;if(K>oe){if(!E)E={x:Pe,y:N};else if(E.y>=R)return;D={x:Pe,y:R}}else{if(!E)E={x:Pe,y:R};else if(E.y1)if(K>oe){if(!E)E={x:(N-xe)/ve,y:N};else if(E.y>=R)return;D={x:(R-xe)/ve,y:R}}else{if(!E)E={x:(R-xe)/ve,y:R};else if(E.y=F)return;D={x:F,y:ve*F+xe}}else{if(!E)E={x:F,y:ve*F+xe};else if(E.x=K&&xe.x<=oe&&xe.y>=ne&&xe.y<=Te?[[K,Te],[oe,Te],[oe,ne],[K,ne]]:[];Fe.point=U[ue]}),Y}function R(U){return U.map(function(Y,K){return{x:Math.round(E(Y,K)/rt)*rt,y:Math.round(C(Y,K)/rt)*rt,i:K}})}return N.links=function(U){return d0(R(U)).edges.filter(function(Y){return Y.l&&Y.r}).map(function(Y){return{source:U[Y.l.i],target:U[Y.r.i]}})},N.triangles=function(U){var Y=[];return d0(R(U)).cells.forEach(function(K,ne){for(var oe=K.site,Te=K.edges.sort(zh),Pe=-1,ue=Te.length,ve,xe,Fe=Te[ue-1].edge,Ie=Fe.l===oe?Fe.r:Fe.l;++PeIe&&(Ie=K.x),K.y>Ae&&(Ae=K.y),Te.push(K.x),Pe.push(K.y);else for(ue=0;ueIe&&(Ie=dt),Ct>Ae&&(Ae=Ct),Te.push(dt),Pe.push(Ct)}var qt=Ie-xe,Lt=Ae-Fe;qt>Lt?Ae=Fe+qt:Ie=xe+Lt;function jt(Xt,pr,ui,Fa,yi,Et,br,Tr){if(!(isNaN(ui)||isNaN(Fa)))if(Xt.leaf){var ci=Xt.x,ga=Xt.y;if(ci!=null)if(y(ci-ui)+y(ga-Fa)<.01)$t(Xt,pr,ui,Fa,yi,Et,br,Tr);else{var rn=Xt.point;Xt.x=Xt.y=Xt.point=null,$t(Xt,rn,ci,ga,yi,Et,br,Tr),$t(Xt,pr,ui,Fa,yi,Et,br,Tr)}else Xt.x=ui,Xt.y=Fa,Xt.point=pr}else $t(Xt,pr,ui,Fa,yi,Et,br,Tr)}function $t(Xt,pr,ui,Fa,yi,Et,br,Tr){var ci=(yi+br)*.5,ga=(Et+Tr)*.5,rn=ui>=ci,qn=Fa>=ga,yo=qn<<1|rn;Xt.leaf=!1,Xt=Xt.nodes[yo]||(Xt.nodes[yo]=_p()),rn?yi=ci:br=ci,qn?Et=ga:Tr=ga,jt(Xt,pr,ui,Fa,yi,Et,br,Tr)}var xr=_p();if(xr.add=function(Xt){jt(xr,Xt,+ne(Xt,++ue),+oe(Xt,ue),xe,Fe,Ie,Ae)},xr.visit=function(Xt){ru(Xt,xr,xe,Fe,Ie,Ae)},xr.find=function(Xt){return s_(xr,Xt[0],Xt[1],xe,Fe,Ie,Ae)},ue=-1,b==null){for(;++ueF||oe>N||Te=dt,Lt=D>=Ct,jt=Lt<<1|qt,$t=jt+4;jt<$t;++jt)if(K=Ae[jt&3])switch(jt&3){case 0:Y(K,ne,oe,dt,Ct);break;case 1:Y(K,dt,oe,Te,Ct);break;case 2:Y(K,ne,Ct,dt,Pe);break;case 3:Y(K,dt,Ct,Te,Pe);break}}})(v,E,C,F,N),U}e.interpolateRgb=xp;function xp(v,b){v=e.rgb(v),b=e.rgb(b);var D=v.r,E=v.g,C=v.b,F=b.r-D,N=b.g-E,R=b.b-C;return function(U){return"#"+vo(Math.round(D+F*U))+vo(Math.round(E+N*U))+vo(Math.round(C+R*U))}}e.interpolateObject=Cs;function Cs(v,b){var D={},E={},C;for(C in v)C in b?D[C]=Uc(v[C],b[C]):E[C]=v[C];for(C in b)C in v||(E[C]=b[C]);return function(F){for(C in D)E[C]=D[C](F);return E}}e.interpolateNumber=fn;function fn(v,b){return v=+v,b=+b,function(D){return v*(1-D)+b*D}}e.interpolateString=Vo;function Vo(v,b){var D=iu.lastIndex=bp.lastIndex=0,E,C,F,N=-1,R=[],U=[];for(v=v+"",b=b+"";(E=iu.exec(v))&&(C=bp.exec(b));)(F=C.index)>D&&(F=b.slice(D,F),R[N]?R[N]+=F:R[++N]=F),(E=E[0])===(C=C[0])?R[N]?R[N]+=C:R[++N]=C:(R[++N]=null,U.push({i:N,x:fn(E,C)})),D=bp.lastIndex;return D=0&&!(E=e.interpolators[D](v,b)););return E}e.interpolators=[function(v,b){var D=typeof b;return(D==="string"?Qt.has(b.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(b)?xp:Vo:b instanceof Zr?xp:Array.isArray(b)?wp:D==="object"&&isNaN(b)?Cs:fn)(v,b)}],e.interpolateArray=wp;function wp(v,b){var D=[],E=[],C=v.length,F=b.length,N=Math.min(v.length,b.length),R;for(R=0;R=0?v.slice(0,b):v,E=b>=0?v.slice(b+1):"in";return D=$6.get(D)||Hm,E=H6.get(E)||O,Z6(E(D.apply(null,t.call(arguments,1))))};function Z6(v){return function(b){return b<=0?0:b>=1?1:v(b)}}function Zm(v){return function(b){return 1-v(1-b)}}function Ym(v){return function(b){return .5*(b<.5?v(2*b):2-v(2-2*b))}}function Wm(v){return v*v}function Xm(v){return v*v*v}function l_(v){if(v<=0)return 0;if(v>=1)return 1;var b=v*v,D=b*v;return 4*(v<.5?D:3*(v-b)+D-.75)}function u_(v){return function(b){return Math.pow(b,v)}}function m0(v){return 1-Math.cos(v*fe)}function v0(v){return Math.pow(2,10*(v-1))}function g0(v){return 1-Math.sqrt(1-v*v)}function Y6(v,b){var D;return arguments.length<2&&(b=.45),arguments.length?D=b/bt*Math.asin(1/v):(v=1,D=b/4),function(E){return 1+v*Math.pow(2,-10*E)*Math.sin((E-D)*bt/b)}}function c_(v){return v||(v=1.70158),function(b){return b*b*((v+1)*b-v)}}function h_(v){return v<1/2.75?7.5625*v*v:v<2/2.75?7.5625*(v-=1.5/2.75)*v+.75:v<2.5/2.75?7.5625*(v-=2.25/2.75)*v+.9375:7.5625*(v-=2.625/2.75)*v+.984375}e.interpolateHcl=f_;function f_(v,b){v=e.hcl(v),b=e.hcl(b);var D=v.h,E=v.c,C=v.l,F=b.h-D,N=b.c-E,R=b.l-C;return isNaN(N)&&(N=0,E=isNaN(E)?b.c:E),isNaN(F)?(F=0,D=isNaN(D)?b.h:D):F>180?F-=360:F<-180&&(F+=360),function(U){return va(D+F*U,E+N*U,C+R*U)+""}}e.interpolateHsl=W6;function W6(v,b){v=e.hsl(v),b=e.hsl(b);var D=v.h,E=v.s,C=v.l,F=b.h-D,N=b.s-E,R=b.l-C;return isNaN(N)&&(N=0,E=isNaN(E)?b.s:E),isNaN(F)?(F=0,D=isNaN(D)?b.h:D):F>180?F-=360:F<-180&&(F+=360),function(U){return Mi(D+F*U,E+N*U,C+R*U)+""}}e.interpolateLab=X6;function X6(v,b){v=e.lab(v),b=e.lab(b);var D=v.l,E=v.a,C=v.b,F=b.l-D,N=b.a-E,R=b.b-C;return function(U){return rl(D+F*U,E+N*U,C+R*U)+""}}e.interpolateRound=Bh;function Bh(v,b){return b-=v,function(D){return Math.round(v+b*D)}}e.transform=function(v){var b=i.createElementNS(e.ns.prefix.svg,"g");return(e.transform=function(D){if(D!=null){b.setAttribute("transform",D);var E=b.transform.baseVal.consolidate()}return new Ap(E?E.matrix:Jm)})(v)};function Ap(v){var b=[v.a,v.b],D=[v.c,v.d],E=y0(b),C=Tp(b,D),F=y0(Km(D,b,-C))||0;b[0]*D[1]180?b+=360:b-v>180&&(v+=360),E.push({i:D.push(Yu(D)+"rotate(",null,")")-2,x:fn(v,b)})):b&&D.push(Yu(D)+"rotate("+b+")")}function p_(v,b,D,E){v!==b?E.push({i:D.push(Yu(D)+"skewX(",null,")")-2,x:fn(v,b)}):b&&D.push(Yu(D)+"skewX("+b+")")}function J6(v,b,D,E){if(v[0]!==b[0]||v[1]!==b[1]){var C=D.push(Yu(D)+"scale(",null,",",null,")");E.push({i:C-4,x:fn(v[0],b[0])},{i:C-2,x:fn(v[1],b[1])})}else(b[0]!==1||b[1]!==1)&&D.push(Yu(D)+"scale("+b+")")}function m_(v,b){var D=[],E=[];return v=e.transform(v),b=e.transform(b),d_(v.translate,b.translate,D,E),K6(v.rotate,b.rotate,D,E),p_(v.skew,b.skew,D,E),J6(v.scale,b.scale,D,E),v=b=null,function(C){for(var F=-1,N=E.length,R;++F0?F=Ae:(D.c=null,D.t=NaN,D=null,b.end({type:"end",alpha:F=0})):Ae>0&&(b.start({type:"start",alpha:F=Ae}),D=Bo(v.tick)),v):F},v.start=function(){var Ae,dt=Te.length,Ct=Pe.length,qt=E[0],Lt=E[1],jt,$t;for(Ae=0;Ae=0;)F.push(K=Y[U]),K.parent=R,K.depth=R.depth+1;D&&(R.value=0),R.children=Y}else D&&(R.value=+D.call(E,R,R.depth)||0),delete R.children;return rs(C,function(ne){var oe,Te;v&&(oe=ne.children)&&oe.sort(v),D&&(Te=ne.parent)&&(Te.value+=ne.value)}),N}return E.sort=function(C){return arguments.length?(v=C,E):v},E.children=function(C){return arguments.length?(b=C,E):b},E.value=function(C){return arguments.length?(D=C,E):D},E.revalue=function(C){return D&&(au(C,function(F){F.children&&(F.value=0)}),rs(C,function(F){var N;F.children||(F.value=+D.call(E,F,F.depth)||0),(N=F.parent)&&(N.value+=F.value)})),C},E};function qh(v,b){return e.rebind(v,b,"sort","children","value"),v.nodes=v,v.links=x0,v}function au(v,b){for(var D=[v];(v=D.pop())!=null;)if(b(v),(C=v.children)&&(E=C.length))for(var E,C;--E>=0;)D.push(C[E])}function rs(v,b){for(var D=[v],E=[];(v=D.pop())!=null;)if(E.push(v),(N=v.children)&&(F=N.length))for(var C=-1,F,N;++CC&&(C=R),E.push(R)}for(N=0;NE&&(D=b,E=C);return D}function w0(v){return v.reduce(A0,0)}function A0(v,b){return v+b[1]}e.layout.histogram=function(){var v=!0,b=Number,D=Sp,E=T0;function C(F,oe){for(var R=[],U=F.map(b,this),Y=D.call(this,U,oe),K=E.call(this,Y,U,oe),ne,oe=-1,Te=U.length,Pe=K.length-1,ue=v?1:1/Te,ve;++oe0)for(oe=-1;++oe=Y[0]&&ve<=Y[1]&&(ne=R[e.bisect(K,ve,1,Pe)-1],ne.y+=ue,ne.push(F[oe]));return R}return C.value=function(F){return arguments.length?(b=F,C):b},C.range=function(F){return arguments.length?(D=Jt(F),C):D},C.bins=function(F){return arguments.length?(E=typeof F=="number"?function(N){return Oh(N,F)}:Jt(F),C):E},C.frequency=function(F){return arguments.length?(v=!!F,C):v},C};function T0(v,b){return Oh(v,Math.ceil(Math.log(b.length)/Math.LN2+1))}function Oh(v,b){for(var D=-1,E=+v[0],C=(v[1]-E)/b,F=[];++D<=b;)F[D]=C*D+E;return F}function Sp(v){return[e.min(v),e.max(v)]}e.layout.pack=function(){var v=e.layout.hierarchy().sort(uA),b=0,D=[1,1],E;function C(F,N){var R=v.call(this,F,N),U=R[0],Y=D[0],K=D[1],ne=E==null?Math.sqrt:typeof E=="function"?E:function(){return E};if(U.x=U.y=0,rs(U,function(Te){Te.r=+ne(Te.value)}),rs(U,w_),b){var oe=b*(E?1:Math.max(2*U.r/Y,2*U.r/K))/2;rs(U,function(Te){Te.r+=oe}),rs(U,w_),rs(U,function(Te){Te.r-=oe})}return A_(U,Y/2,K/2,E?1:1/Math.max(2*U.r/Y,2*U.r/K)),R}return C.size=function(F){return arguments.length?(D=F,C):D},C.radius=function(F){return arguments.length?(E=F==null||typeof F=="function"?F:+F,C):E},C.padding=function(F){return arguments.length?(b=+F,C):b},qh(C,v)};function uA(v,b){return v.value-b.value}function M0(v,b){var D=v._pack_next;v._pack_next=b,b._pack_prev=v,b._pack_next=D,D._pack_prev=b}function b_(v,b){v._pack_next=b,b._pack_prev=v}function Ep(v,b){var D=b.x-v.x,E=b.y-v.y,C=v.r+b.r;return .999*C*C>D*D+E*E}function w_(v){if(!(b=v.children)||!(oe=b.length))return;var b,D=1/0,E=-1/0,C=1/0,F=-1/0,N,R,U,Y,K,ne,oe;function Te(Ae){D=Math.min(Ae.x-Ae.r,D),E=Math.max(Ae.x+Ae.r,E),C=Math.min(Ae.y-Ae.r,C),F=Math.max(Ae.y+Ae.r,F)}if(b.forEach(cA),N=b[0],N.x=-N.r,N.y=0,Te(N),oe>1&&(R=b[1],R.x=R.r,R.y=0,Te(R),oe>2))for(U=b[2],kp(N,R,U),Te(U),M0(N,U),N._pack_prev=U,M0(U,R),R=N._pack_next,Y=3;Yve.x&&(ve=dt),dt.depth>xe.depth&&(xe=dt)});var Fe=b(ue,ve)/2-ue.x,Ie=D[0]/(ve.x+b(ve,ue)/2+Fe),Ae=D[1]/(xe.depth||1);au(Te,function(dt){dt.x=(dt.x+Fe)*Ie,dt.y=dt.depth*Ae})}return oe}function F(K){for(var ne={A:null,children:[K]},oe=[ne],Te;(Te=oe.pop())!=null;)for(var Pe=Te.children,ue,ve=0,xe=Pe.length;ve0&&(ov(q(ue,K,oe),K,dt),xe+=dt,Fe+=dt),Ie+=ue.m,xe+=Te.m,Ae+=ve.m,Fe+=Pe.m;ue&&!nv(Pe)&&(Pe.t=ue,Pe.m+=Ie-Fe),Te&&!D0(ve)&&(ve.t=Te,ve.m+=xe-Ae,oe=K)}return oe}function Y(K){K.x*=D[0],K.y=K.depth*D[1]}return C.separation=function(K){return arguments.length?(b=K,C):b},C.size=function(K){return arguments.length?(E=(D=K)==null?Y:null,C):E?null:D},C.nodeSize=function(K){return arguments.length?(E=(D=K)==null?null:Y,C):E?D:null},qh(C,v)};function T_(v,b){return v.parent==b.parent?1:2}function D0(v){var b=v.children;return b.length?b[0]:v.t}function nv(v){var b=v.children,D;return(D=b.length)?b[D-1]:v.t}function ov(v,b,D){var E=D/(b.i-v.i);b.c-=E,b.s+=D,v.c+=E,b.z+=D,b.m+=D}function hA(v){for(var b=0,D=0,E=v.children,C=E.length,F;--C>=0;)F=E[C],F.z+=b,F.m+=b,b+=F.s+(D+=F.c)}function q(v,b,D){return v.a.parent===b.parent?v.a:D}e.layout.cluster=function(){var v=e.layout.hierarchy().sort(null).value(null),b=T_,D=[1,1],E=!1;function C(F,N){var R=v.call(this,F,N),U=R[0],Y,K=0;rs(U,function(ue){var ve=ue.children;ve&&ve.length?(ue.x=ee(ve),ue.y=G(ve)):(ue.x=Y?K+=b(ue,Y):0,ue.y=0,Y=ue)});var ne=J(U),oe=he(U),Te=ne.x-b(ne,oe)/2,Pe=oe.x+b(oe,ne)/2;return rs(U,E?function(ue){ue.x=(ue.x-U.x)*D[0],ue.y=(U.y-ue.y)*D[1]}:function(ue){ue.x=(ue.x-Te)/(Pe-Te)*D[0],ue.y=(1-(U.y?ue.y/U.y:1))*D[1]}),R}return C.separation=function(F){return arguments.length?(b=F,C):b},C.size=function(F){return arguments.length?(E=(D=F)==null,C):E?null:D},C.nodeSize=function(F){return arguments.length?(E=(D=F)!=null,C):E?D:null},qh(C,v)};function G(v){return 1+e.max(v,function(b){return b.y})}function ee(v){return v.reduce(function(b,D){return b+D.x},0)/v.length}function J(v){var b=v.children;return b&&b.length?J(b[0]):v}function he(v){var b=v.children,D;return b&&(D=b.length)?he(b[D-1]):v}e.layout.treemap=function(){var v=e.layout.hierarchy(),b=Math.round,D=[1,1],E=null,C=Le,F=!1,N,R="squarify",U=.5*(1+Math.sqrt(5));function Y(ue,ve){for(var xe=-1,Fe=ue.length,Ie,Ae;++xe0;)Fe.push(Ae=Ie[Lt-1]),Fe.area+=Ae.area,R!=="squarify"||(Ct=oe(Fe,qt))<=dt?(Ie.pop(),dt=Ct):(Fe.area-=Fe.pop().area,Te(Fe,qt,xe,!1),qt=Math.min(xe.dx,xe.dy),Fe.length=Fe.area=0,dt=1/0);Fe.length&&(Te(Fe,qt,xe,!0),Fe.length=Fe.area=0),ve.forEach(K)}}function ne(ue){var ve=ue.children;if(ve&&ve.length){var xe=C(ue),Fe=ve.slice(),Ie,Ae=[];for(Y(Fe,xe.dx*xe.dy/ue.value),Ae.area=0;Ie=Fe.pop();)Ae.push(Ie),Ae.area+=Ie.area,Ie.z!=null&&(Te(Ae,Ie.z?xe.dx:xe.dy,xe,!Fe.length),Ae.length=Ae.area=0);ve.forEach(ne)}}function oe(ue,ve){for(var xe=ue.area,Fe,Ie=0,Ae=1/0,dt=-1,Ct=ue.length;++dtIe&&(Ie=Fe));return xe*=xe,ve*=ve,xe?Math.max(ve*Ie*U/xe,xe/(ve*Ae*U)):1/0}function Te(ue,ve,xe,Fe){var Ie=-1,Ae=ue.length,dt=xe.x,Ct=xe.y,qt=ve?b(ue.area/ve):0,Lt;if(ve==xe.dx){for((Fe||qt>xe.dy)&&(qt=xe.dy);++Iexe.dx)&&(qt=xe.dx);++Ie1);return v+b*E*Math.sqrt(-2*Math.log(F)/F)}},logNormal:function(){var v=e.random.normal.apply(e,arguments);return function(){return Math.exp(v())}},bates:function(v){var b=e.random.irwinHall(v);return function(){return b()/v}},irwinHall:function(v){return function(){for(var b=0,D=0;D2?mt:pt,Y=E?eA:Q6;return C=U(v,b,Y,D),F=U(b,v,Y,Uc),R}function R(U){return C(U)}return R.invert=function(U){return F(U)},R.domain=function(U){return arguments.length?(v=U.map(Number),N()):v},R.range=function(U){return arguments.length?(b=U,N()):b},R.rangeRound=function(U){return R.range(U).interpolate(Bh)},R.clamp=function(U){return arguments.length?(E=U,N()):E},R.interpolate=function(U){return arguments.length?(D=U,N()):D},R.ticks=function(U){return ir(v,U)},R.tickFormat=function(U,Y){return d3_scale_linearTickFormat(v,U,Y)},R.nice=function(U){return Wt(v,U),N()},R.copy=function(){return _t(v,b,D,E)},N()}function er(v,b){return e.rebind(v,b,"range","rangeRound","interpolate","clamp")}function Wt(v,b){return Ue(v,at(rr(v,b)[2])),Ue(v,at(rr(v,b)[2])),v}function rr(v,b){b==null&&(b=10);var D=Ye(v),E=D[1]-D[0],C=Math.pow(10,Math.floor(Math.log(E/b)/Math.LN10)),F=b/E*C;return F<=.15?C*=10:F<=.35?C*=5:F<=.75&&(C*=2),D[0]=Math.ceil(D[0]/C)*C,D[1]=Math.floor(D[1]/C)*C+C*.5,D[2]=C,D}function ir(v,b){return e.range.apply(e,rr(v,b))}var wt={s:1,g:1,p:1,r:1,e:1};function It(v){return-Math.floor(Math.log(v)/Math.LN10+.01)}function ur(v,b){var D=It(b[2]);return v in wt?Math.abs(D-It(Math.max(y(b[0]),y(b[1]))))+ +(v!=="e"):D-(v==="%")*2}e.scale.log=function(){return vr(e.scale.linear().domain([0,1]),10,!0,[1,10])};function vr(v,b,D,E){function C(R){return(D?Math.log(R<0?0:R):-Math.log(R>0?0:-R))/Math.log(b)}function F(R){return D?Math.pow(b,R):-Math.pow(b,-R)}function N(R){return v(C(R))}return N.invert=function(R){return F(v.invert(R))},N.domain=function(R){return arguments.length?(D=R[0]>=0,v.domain((E=R.map(Number)).map(C)),N):E},N.base=function(R){return arguments.length?(b=+R,v.domain(E.map(C)),N):b},N.nice=function(){var R=Ue(E.map(C),D?Math:li);return v.domain(R),E=R.map(F),N},N.ticks=function(){var R=Ye(E),U=[],Y=R[0],K=R[1],ne=Math.floor(C(Y)),oe=Math.ceil(C(K)),Te=b%1?2:b;if(isFinite(oe-ne)){if(D){for(;ne0;Pe--)U.push(F(ne)*Pe);for(ne=0;U[ne]K;oe--);U=U.slice(ne,oe)}return U},N.copy=function(){return vr(v.copy(),b,D,E)},er(N,v)}var li={floor:function(v){return-Math.ceil(-v)},ceil:function(v){return-Math.floor(-v)}};e.scale.pow=function(){return zi(e.scale.linear(),1,[0,1])};function zi(v,b,D){var E=di(b),C=di(1/b);function F(N){return v(E(N))}return F.invert=function(N){return C(v.invert(N))},F.domain=function(N){return arguments.length?(v.domain((D=N.map(Number)).map(E)),F):D},F.ticks=function(N){return ir(D,N)},F.tickFormat=function(N,R){return d3_scale_linearTickFormat(D,N,R)},F.nice=function(N){return F.domain(Wt(D,N))},F.exponent=function(N){return arguments.length?(E=di(b=N),C=di(1/b),v.domain(D.map(E)),F):b},F.copy=function(){return zi(v.copy(),b,D)},er(F,v)}function di(v){return function(b){return b<0?-Math.pow(-b,v):Math.pow(b,v)}}e.scale.sqrt=function(){return e.scale.pow().exponent(.5)},e.scale.ordinal=function(){return Xi([],{t:"range",a:[[]]})};function Xi(v,b){var D,E,C;function F(R){return E[((D.get(R)||(b.t==="range"?D.set(R,v.push(R)):NaN))-1)%E.length]}function N(R,U){return e.range(v.length).map(function(Y){return R+U*Y})}return F.domain=function(R){if(!arguments.length)return v;v=[],D=new _;for(var U=-1,Y=R.length,K;++U0?D[F-1]:v[0],Foe?0:1;if(K=zt)return U(K,Pe)+(Y?U(Y,1-Pe):"")+"Z";var ue,ve,xe,Fe,Ie=0,Ae=0,dt,Ct,qt,Lt,jt,$t,xr,Xt,pr=[];if((Fe=(+N.apply(this,arguments)||0)/2)&&(xe=E===Wu?Math.sqrt(Y*Y+K*K):+E.apply(this,arguments),Pe||(Ae*=-1),K&&(Ae=si(xe/K*Math.sin(Fe))),Y&&(Ie=si(xe/Y*Math.sin(Fe)))),K){dt=K*Math.cos(ne+Ae),Ct=K*Math.sin(ne+Ae),qt=K*Math.cos(oe-Ae),Lt=K*Math.sin(oe-Ae);var ui=Math.abs(oe-ne-2*Ae)<=Pt?0:1;if(Ae&&M_(dt,Ct,qt,Lt)===Pe^ui){var Fa=(ne+oe)/2;dt=K*Math.cos(Fa),Ct=K*Math.sin(Fa),qt=Lt=null}}else dt=Ct=0;if(Y){jt=Y*Math.cos(oe-Ie),$t=Y*Math.sin(oe-Ie),xr=Y*Math.cos(ne+Ie),Xt=Y*Math.sin(ne+Ie);var yi=Math.abs(ne-oe+2*Ie)<=Pt?0:1;if(Ie&&M_(jt,$t,xr,Xt)===1-Pe^yi){var Et=(ne+oe)/2;jt=Y*Math.cos(Et),$t=Y*Math.sin(Et),xr=Xt=null}}else jt=$t=0;if(Te>rt&&(ue=Math.min(Math.abs(K-Y)/2,+D.apply(this,arguments)))>.001){ve=Y0?0:1}function D_(v,b,D,E,C){var F=v[0]-b[0],N=v[1]-b[1],R=(C?E:-E)/Math.sqrt(F*F+N*N),U=R*N,Y=-R*F,K=v[0]+U,ne=v[1]+Y,oe=b[0]+U,Te=b[1]+Y,Pe=(K+oe)/2,ue=(ne+Te)/2,ve=oe-K,xe=Te-ne,Fe=ve*ve+xe*xe,Ie=D-E,Ae=K*Te-oe*ne,dt=(xe<0?-1:1)*Math.sqrt(Math.max(0,Ie*Ie*Fe-Ae*Ae)),Ct=(Ae*xe-ve*dt)/Fe,qt=(-Ae*ve-xe*dt)/Fe,Lt=(Ae*xe+ve*dt)/Fe,jt=(-Ae*ve+xe*dt)/Fe,$t=Ct-Pe,xr=qt-ue,Xt=Lt-Pe,pr=jt-ue;return $t*$t+xr*xr>Xt*Xt+pr*pr&&(Ct=Lt,qt=jt),[[Ct-U,qt-Y],[Ct*D/Ie,qt*D/Ie]]}function BP(){return!0}function qP(v){var b=ol,D=Jl,E=BP,C=ou,F=C.key,N=.7;function R(U){var Y=[],K=[],ne=-1,oe=U.length,Te,Pe=Jt(b),ue=Jt(D);function ve(){Y.push("M",C(v(K),N))}for(;++ne1?v.join("L"):v+"Z"}function OP(v){return v.join("L")+"Z"}function Jfe(v){for(var b=0,D=v.length,E=v[0],C=[E[0],",",E[1]];++b1&&C.push("H",E[0]),C.join("")}function dA(v){for(var b=0,D=v.length,E=v[0],C=[E[0],",",E[1]];++b1){R=b[1],F=v[U],U++,E+="C"+(C[0]+N[0])+","+(C[1]+N[1])+","+(F[0]-R[0])+","+(F[1]-R[1])+","+F[0]+","+F[1];for(var Y=2;Y9&&(F=D*3/Math.sqrt(F),N[R]=F*E,N[R+1]=F*C));for(R=-1;++R<=U;)F=(v[Math.min(U,R+1)][0]-v[Math.max(0,R-1)][0])/(6*(1+N[R]*N[R])),b.push([F||0,N[R]*F||0]);return b}function s0e(v){return v.length<3?ou(v):v[0]+S_(v,o0e(v))}e.svg.line.radial=function(){var v=qP(GP);return v.radius=v.x,delete v.x,v.angle=v.y,delete v.y,v};function GP(v){for(var b,D=-1,E=v.length,C,F;++DPt)+",1 "+ne}function Y(K,ne,oe,Te){return"Q 0,0 "+Te}return F.radius=function(K){return arguments.length?(D=Jt(K),F):D},F.source=function(K){return arguments.length?(v=Jt(K),F):v},F.target=function(K){return arguments.length?(b=Jt(K),F):b},F.startAngle=function(K){return arguments.length?(E=Jt(K),F):E},F.endAngle=function(K){return arguments.length?(C=Jt(K),F):C},F};function l0e(v){return v.radius}e.svg.diagonal=function(){var v=$P,b=HP,D=ZP;function E(C,F){var N=v.call(this,C,F),R=b.call(this,C,F),U=(N.y+R.y)/2,Y=[N,{x:N.x,y:U},{x:R.x,y:U},R];return Y=Y.map(D),"M"+Y[0]+"C"+Y[1]+" "+Y[2]+" "+Y[3]}return E.source=function(C){return arguments.length?(v=Jt(C),E):v},E.target=function(C){return arguments.length?(b=Jt(C),E):b},E.projection=function(C){return arguments.length?(D=C,E):D},E};function ZP(v){return[v.x,v.y]}e.svg.diagonal.radial=function(){var v=e.svg.diagonal(),b=ZP,D=v.projection;return v.projection=function(E){return arguments.length?D(u0e(b=E)):b},v};function u0e(v){return function(){var b=v.apply(this,arguments),D=b[0],E=b[1]-fe;return[D*Math.cos(E),D*Math.sin(E)]}}e.svg.symbol=function(){var v=h0e,b=c0e;function D(E,C){return(WP.get(v.call(this,E,C))||YP)(b.call(this,E,C))}return D.type=function(E){return arguments.length?(v=Jt(E),D):v},D.size=function(E){return arguments.length?(b=Jt(E),D):b},D};function c0e(){return 64}function h0e(){return"circle"}function YP(v){var b=Math.sqrt(v/Pt);return"M0,"+b+"A"+b+","+b+" 0 1,1 0,"+-b+"A"+b+","+b+" 0 1,1 0,"+b+"Z"}var WP=e.map({circle:YP,cross:function(v){var b=Math.sqrt(v/5)/2;return"M"+-3*b+","+-b+"H"+-b+"V"+-3*b+"H"+b+"V"+-b+"H"+3*b+"V"+b+"H"+b+"V"+3*b+"H"+-b+"V"+b+"H"+-3*b+"Z"},diamond:function(v){var b=Math.sqrt(v/(2*XP)),D=b*XP;return"M0,"+-b+"L"+D+",0 0,"+b+" "+-D+",0Z"},square:function(v){var b=Math.sqrt(v)/2;return"M"+-b+","+-b+"L"+b+","+-b+" "+b+","+b+" "+-b+","+b+"Z"},"triangle-down":function(v){var b=Math.sqrt(v/E_),D=b*E_/2;return"M0,"+D+"L"+b+","+-D+" "+-b+","+-D+"Z"},"triangle-up":function(v){var b=Math.sqrt(v/E_),D=b*E_/2;return"M0,"+-D+"L"+b+","+D+" "+-b+","+D+"Z"}});e.svg.symbolTypes=WP.keys();var E_=Math.sqrt(3),XP=Math.tan(30*Se);te.transition=function(v){for(var b=E0||++JP,D=_A(v),E=[],C,F,N=C_||{time:Date.now(),ease:l_,delay:0,duration:250},R=-1,U=this.length;++R0;)ne[--Fe].call(v,xe);if(ve>=1)return N.event&&N.event.end.call(v,v.__data__,b),--F.count?delete F[E]:delete v[D],1}N||(R=C.time,U=Bo(oe,0,R),N=F[E]={tween:new _,time:R,timer:U,delay:C.delay,duration:C.duration,ease:C.ease,index:b},C=null,++F.count)}e.svg.axis=function(){var v=e.scale.linear(),b=QP,D=6,E=6,C=3,F=[10],N=null,R;function U(Y){Y.each(function(){var K=e.select(this),ne=this.__chart__||v,oe=this.__chart__=v.copy(),Te=N==null?oe.ticks?oe.ticks.apply(oe,F):oe.domain():N,Pe=R==null?oe.tickFormat?oe.tickFormat.apply(oe,F):O:R,ue=K.selectAll(".tick").data(Te,oe),ve=ue.enter().insert("g",".domain").attr("class","tick").style("opacity",rt),xe=e.transition(ue.exit()).style("opacity",rt).remove(),Fe=e.transition(ue.order()).style("opacity",1),Ie=Math.max(D,0)+C,Ae,dt=Ke(oe),Ct=K.selectAll(".domain").data([0]),qt=(Ct.enter().append("path").attr("class","domain"),e.transition(Ct));ve.append("line"),ve.append("text");var Lt=ve.select("line"),jt=Fe.select("line"),$t=ue.select("text").text(Pe),xr=ve.select("text"),Xt=Fe.select("text"),pr=b==="top"||b==="left"?-1:1,ui,Fa,yi,Et;if(b==="bottom"||b==="top"?(Ae=p0e,ui="x",yi="y",Fa="x2",Et="y2",$t.attr("dy",pr<0?"0em":".71em").style("text-anchor","middle"),qt.attr("d","M"+dt[0]+","+pr*E+"V0H"+dt[1]+"V"+pr*E)):(Ae=m0e,ui="y",yi="x",Fa="y2",Et="x2",$t.attr("dy",".32em").style("text-anchor",pr<0?"end":"start"),qt.attr("d","M"+pr*E+","+dt[0]+"H0V"+dt[1]+"H"+pr*E)),Lt.attr(Et,pr*D),xr.attr(yi,pr*Ie),jt.attr(Fa,0).attr(Et,pr*D),Xt.attr(ui,0).attr(yi,pr*Ie),oe.rangeBand){var br=oe,Tr=br.rangeBand()/2;ne=oe=function(ci){return br(ci)+Tr}}else ne.rangeBand?ne=oe:xe.call(Ae,oe,ne);ve.call(Ae,ne,oe),Fe.call(Ae,oe,oe)})}return U.scale=function(Y){return arguments.length?(v=Y,U):v},U.orient=function(Y){return arguments.length?(b=Y in d0e?Y+"":QP,U):b},U.ticks=function(){return arguments.length?(F=r(arguments),U):F},U.tickValues=function(Y){return arguments.length?(N=Y,U):N},U.tickFormat=function(Y){return arguments.length?(R=Y,U):R},U.tickSize=function(Y){var K=arguments.length;return K?(D=+Y,E=+arguments[K-1],U):D},U.innerTickSize=function(Y){return arguments.length?(D=+Y,U):D},U.outerTickSize=function(Y){return arguments.length?(E=+Y,U):E},U.tickPadding=function(Y){return arguments.length?(C=+Y,U):C},U.tickSubdivide=function(){return arguments.length&&U},U};var QP="bottom",d0e={top:1,right:1,bottom:1,left:1};function p0e(v,b,D){v.attr("transform",function(E){var C=b(E);return"translate("+(isFinite(C)?C:D(E))+",0)"})}function m0e(v,b,D){v.attr("transform",function(E){var C=b(E);return"translate(0,"+(isFinite(C)?C:D(E))+")"})}e.svg.brush=function(){var v=_e(K,"brushstart","brush","brushend"),b=null,D=null,E=[0,0],C=[0,0],F,N,R=!0,U=!0,Y=xA[0];function K(ue){ue.each(function(){var ve=e.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",Pe).on("touchstart.brush",Pe),xe=ve.selectAll(".background").data([0]);xe.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),ve.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var Fe=ve.selectAll(".resize").data(Y,O);Fe.exit().remove(),Fe.enter().append("g").attr("class",function(Ct){return"resize "+Ct}).style("cursor",function(Ct){return v0e[Ct]}).append("rect").attr("x",function(Ct){return/[ew]$/.test(Ct)?-3:null}).attr("y",function(Ct){return/^[ns]/.test(Ct)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),Fe.style("display",K.empty()?"none":null);var Ie=e.transition(ve),Ae=e.transition(xe),dt;b&&(dt=Ke(b),Ae.attr("x",dt[0]).attr("width",dt[1]-dt[0]),oe(Ie)),D&&(dt=Ke(D),Ae.attr("y",dt[0]).attr("height",dt[1]-dt[0]),Te(Ie)),ne(Ie)})}K.event=function(ue){ue.each(function(){var ve=v.of(this,arguments),xe={x:E,y:C,i:F,j:N},Fe=this.__chart__||xe;this.__chart__=xe,E0?e.select(this).transition().each("start.brush",function(){F=Fe.i,N=Fe.j,E=Fe.x,C=Fe.y,ve({type:"brushstart"})}).tween("brush:brush",function(){var Ie=wp(E,xe.x),Ae=wp(C,xe.y);return F=N=null,function(dt){E=xe.x=Ie(dt),C=xe.y=Ae(dt),ve({type:"brush",mode:"resize"})}}).each("end.brush",function(){F=xe.i,N=xe.j,ve({type:"brush",mode:"resize"}),ve({type:"brushend"})}):(ve({type:"brushstart"}),ve({type:"brush",mode:"resize"}),ve({type:"brushend"}))})};function ne(ue){ue.selectAll(".resize").attr("transform",function(ve){return"translate("+E[+/e$/.test(ve)]+","+C[+/^s/.test(ve)]+")"})}function oe(ue){ue.select(".extent").attr("x",E[0]),ue.selectAll(".extent,.n>rect,.s>rect").attr("width",E[1]-E[0])}function Te(ue){ue.select(".extent").attr("y",C[0]),ue.selectAll(".extent,.e>rect,.w>rect").attr("height",C[1]-C[0])}function Pe(){var ue=this,ve=e.select(e.event.target),xe=v.of(ue,arguments),Fe=e.select(ue),Ie=ve.datum(),Ae=!/^(n|s)$/.test(Ie)&&b,dt=!/^(e|w)$/.test(Ie)&&D,Ct=ve.classed("extent"),qt=ut(ue),Lt,jt=e.mouse(ue),$t,xr=e.select(n(ue)).on("keydown.brush",ui).on("keyup.brush",Fa);if(e.event.changedTouches?xr.on("touchmove.brush",yi).on("touchend.brush",br):xr.on("mousemove.brush",yi).on("mouseup.brush",br),Fe.interrupt().selectAll("*").interrupt(),Ct)jt[0]=E[0]-jt[0],jt[1]=C[0]-jt[1];else if(Ie){var Xt=+/w$/.test(Ie),pr=+/^n/.test(Ie);$t=[E[1-Xt]-jt[0],C[1-pr]-jt[1]],jt[0]=E[Xt],jt[1]=C[pr]}else e.event.altKey&&(Lt=jt.slice());Fe.style("pointer-events","none").selectAll(".resize").style("display",null),e.select("body").style("cursor",ve.style("cursor")),xe({type:"brushstart"}),yi();function ui(){e.event.keyCode==32&&(Ct||(Lt=null,jt[0]-=E[1],jt[1]-=C[1],Ct=2),le())}function Fa(){e.event.keyCode==32&&Ct==2&&(jt[0]+=E[1],jt[1]+=C[1],Ct=0,le())}function yi(){var Tr=e.mouse(ue),ci=!1;$t&&(Tr[0]+=$t[0],Tr[1]+=$t[1]),Ct||(e.event.altKey?(Lt||(Lt=[(E[0]+E[1])/2,(C[0]+C[1])/2]),jt[0]=E[+(Tr[0]{(function(e,t){typeof R_=="object"&&typeof lI!="undefined"?t(R_):(e=e||self,t(e.d3=e.d3||{}))})(R_,function(e){"use strict";var t=new Date,r=new Date;function i(ie,we,ot,At){function $e(Ee){return ie(Ee=arguments.length===0?new Date:new Date(+Ee)),Ee}return $e.floor=function(Ee){return ie(Ee=new Date(+Ee)),Ee},$e.ceil=function(Ee){return ie(Ee=new Date(Ee-1)),we(Ee,1),ie(Ee),Ee},$e.round=function(Ee){var Me=$e(Ee),We=$e.ceil(Ee);return Ee-Me0))return lt;do lt.push(Qe=new Date(+Ee)),we(Ee,We),ie(Ee);while(Qe=Me)for(;ie(Me),!Ee(Me);)Me.setTime(Me-1)},function(Me,We){if(Me>=Me)if(We<0)for(;++We<=0;)for(;we(Me,-1),!Ee(Me););else for(;--We>=0;)for(;we(Me,1),!Ee(Me););})},ot&&($e.count=function(Ee,Me){return t.setTime(+Ee),r.setTime(+Me),ie(t),ie(r),Math.floor(ot(t,r))},$e.every=function(Ee){return Ee=Math.floor(Ee),!isFinite(Ee)||!(Ee>0)?null:Ee>1?$e.filter(At?function(Me){return At(Me)%Ee===0}:function(Me){return $e.count(0,Me)%Ee===0}):$e}),$e}var a=i(function(){},function(ie,we){ie.setTime(+ie+we)},function(ie,we){return we-ie});a.every=function(ie){return ie=Math.floor(ie),!isFinite(ie)||!(ie>0)?null:ie>1?i(function(we){we.setTime(Math.floor(we/ie)*ie)},function(we,ot){we.setTime(+we+ot*ie)},function(we,ot){return(ot-we)/ie}):a};var n=a.range,o=1e3,s=6e4,l=36e5,u=864e5,c=6048e5,h=i(function(ie){ie.setTime(ie-ie.getMilliseconds())},function(ie,we){ie.setTime(+ie+we*o)},function(ie,we){return(we-ie)/o},function(ie){return ie.getUTCSeconds()}),f=h.range,d=i(function(ie){ie.setTime(ie-ie.getMilliseconds()-ie.getSeconds()*o)},function(ie,we){ie.setTime(+ie+we*s)},function(ie,we){return(we-ie)/s},function(ie){return ie.getMinutes()}),p=d.range,m=i(function(ie){ie.setTime(ie-ie.getMilliseconds()-ie.getSeconds()*o-ie.getMinutes()*s)},function(ie,we){ie.setTime(+ie+we*l)},function(ie,we){return(we-ie)/l},function(ie){return ie.getHours()}),g=m.range,y=i(function(ie){ie.setHours(0,0,0,0)},function(ie,we){ie.setDate(ie.getDate()+we)},function(ie,we){return(we-ie-(we.getTimezoneOffset()-ie.getTimezoneOffset())*s)/u},function(ie){return ie.getDate()-1}),x=y.range;function w(ie){return i(function(we){we.setDate(we.getDate()-(we.getDay()+7-ie)%7),we.setHours(0,0,0,0)},function(we,ot){we.setDate(we.getDate()+ot*7)},function(we,ot){return(ot-we-(ot.getTimezoneOffset()-we.getTimezoneOffset())*s)/c})}var _=w(0),A=w(1),T=w(2),M=w(3),S=w(4),k=w(5),P=w(6),I=_.range,B=A.range,L=T.range,z=M.range,O=S.range,V=k.range,$=P.range,j=i(function(ie){ie.setDate(1),ie.setHours(0,0,0,0)},function(ie,we){ie.setMonth(ie.getMonth()+we)},function(ie,we){return we.getMonth()-ie.getMonth()+(we.getFullYear()-ie.getFullYear())*12},function(ie){return ie.getMonth()}),H=j.range,Z=i(function(ie){ie.setMonth(0,1),ie.setHours(0,0,0,0)},function(ie,we){ie.setFullYear(ie.getFullYear()+we)},function(ie,we){return we.getFullYear()-ie.getFullYear()},function(ie){return ie.getFullYear()});Z.every=function(ie){return!isFinite(ie=Math.floor(ie))||!(ie>0)?null:i(function(we){we.setFullYear(Math.floor(we.getFullYear()/ie)*ie),we.setMonth(0,1),we.setHours(0,0,0,0)},function(we,ot){we.setFullYear(we.getFullYear()+ot*ie)})};var W=Z.range,le=i(function(ie){ie.setUTCSeconds(0,0)},function(ie,we){ie.setTime(+ie+we*s)},function(ie,we){return(we-ie)/s},function(ie){return ie.getUTCMinutes()}),pe=le.range,_e=i(function(ie){ie.setUTCMinutes(0,0,0)},function(ie,we){ie.setTime(+ie+we*l)},function(ie,we){return(we-ie)/l},function(ie){return ie.getUTCHours()}),De=_e.range,de=i(function(ie){ie.setUTCHours(0,0,0,0)},function(ie,we){ie.setUTCDate(ie.getUTCDate()+we)},function(ie,we){return(we-ie)/u},function(ie){return ie.getUTCDate()-1}),Ce=de.range;function Q(ie){return i(function(we){we.setUTCDate(we.getUTCDate()-(we.getUTCDay()+7-ie)%7),we.setUTCHours(0,0,0,0)},function(we,ot){we.setUTCDate(we.getUTCDate()+ot*7)},function(we,ot){return(ot-we)/c})}var ae=Q(0),ye=Q(1),te=Q(2),re=Q(3),ce=Q(4),me=Q(5),ze=Q(6),He=ae.range,ke=ye.range,Oe=te.range,qe=re.range,se=ce.range,je=me.range,Re=ze.range,Ve=i(function(ie){ie.setUTCDate(1),ie.setUTCHours(0,0,0,0)},function(ie,we){ie.setUTCMonth(ie.getUTCMonth()+we)},function(ie,we){return we.getUTCMonth()-ie.getUTCMonth()+(we.getUTCFullYear()-ie.getUTCFullYear())*12},function(ie){return ie.getUTCMonth()}),ge=Ve.range,Ge=i(function(ie){ie.setUTCMonth(0,1),ie.setUTCHours(0,0,0,0)},function(ie,we){ie.setUTCFullYear(ie.getUTCFullYear()+we)},function(ie,we){return we.getUTCFullYear()-ie.getUTCFullYear()},function(ie){return ie.getUTCFullYear()});Ge.every=function(ie){return!isFinite(ie=Math.floor(ie))||!(ie>0)?null:i(function(we){we.setUTCFullYear(Math.floor(we.getUTCFullYear()/ie)*ie),we.setUTCMonth(0,1),we.setUTCHours(0,0,0,0)},function(we,ot){we.setUTCFullYear(we.getUTCFullYear()+ot*ie)})};var tt=Ge.range;e.timeDay=y,e.timeDays=x,e.timeFriday=k,e.timeFridays=V,e.timeHour=m,e.timeHours=g,e.timeInterval=i,e.timeMillisecond=a,e.timeMilliseconds=n,e.timeMinute=d,e.timeMinutes=p,e.timeMonday=A,e.timeMondays=B,e.timeMonth=j,e.timeMonths=H,e.timeSaturday=P,e.timeSaturdays=$,e.timeSecond=h,e.timeSeconds=f,e.timeSunday=_,e.timeSundays=I,e.timeThursday=S,e.timeThursdays=O,e.timeTuesday=T,e.timeTuesdays=L,e.timeWednesday=M,e.timeWednesdays=z,e.timeWeek=_,e.timeWeeks=I,e.timeYear=Z,e.timeYears=W,e.utcDay=de,e.utcDays=Ce,e.utcFriday=me,e.utcFridays=je,e.utcHour=_e,e.utcHours=De,e.utcMillisecond=a,e.utcMilliseconds=n,e.utcMinute=le,e.utcMinutes=pe,e.utcMonday=ye,e.utcMondays=ke,e.utcMonth=Ve,e.utcMonths=ge,e.utcSaturday=ze,e.utcSaturdays=Re,e.utcSecond=h,e.utcSeconds=f,e.utcSunday=ae,e.utcSundays=He,e.utcThursday=ce,e.utcThursdays=se,e.utcTuesday=te,e.utcTuesdays=Oe,e.utcWednesday=re,e.utcWednesdays=qe,e.utcWeek=ae,e.utcWeeks=He,e.utcYear=Ge,e.utcYears=tt,Object.defineProperty(e,"__esModule",{value:!0})})});var Fp=X((B_,uI)=>{(function(e,t){typeof B_=="object"&&typeof uI!="undefined"?t(B_,AA()):(e=e||self,t(e.d3=e.d3||{},e.d3))})(B_,function(e,t){"use strict";function r(fe){if(0<=fe.y&&fe.y<100){var Se=new Date(-1,fe.m,fe.d,fe.H,fe.M,fe.S,fe.L);return Se.setFullYear(fe.y),Se}return new Date(fe.y,fe.m,fe.d,fe.H,fe.M,fe.S,fe.L)}function i(fe){if(0<=fe.y&&fe.y<100){var Se=new Date(Date.UTC(-1,fe.m,fe.d,fe.H,fe.M,fe.S,fe.L));return Se.setUTCFullYear(fe.y),Se}return new Date(Date.UTC(fe.y,fe.m,fe.d,fe.H,fe.M,fe.S,fe.L))}function a(fe,Se,it){return{y:fe,m:Se,d:it,H:0,M:0,S:0,L:0}}function n(fe){var Se=fe.dateTime,it=fe.date,nt=fe.time,Fr=fe.periods,Kr=fe.days,si=fe.shortDays,Ni=fe.months,Pr=fe.shortMonths,Hr=f(Fr),gi=d(Fr),hi=f(Kr),Ca=d(Kr),Ja=f(si),Mn=d(si),Rt=f(Ni),fi=d(Ni),Zr=f(Pr),Ti=d(Pr),Fi={a:Vu,A:il,b:Aa,B:Ro,c:null,d:j,e:j,f:pe,g:me,G:He,H,I:Z,j:W,L:le,m:_e,M:De,p:Ts,q:mo,Q:ut,s:Tt,S:de,u:Ce,U:Q,V:ye,w:te,W:re,x:null,X:null,y:ce,Y:ze,Z:ke,"%":vt},Mi={a:vo,A:al,b:Kl,B:Rn,c:null,d:Oe,e:Oe,f:Ve,g:We,G:Qe,H:qe,I:se,j:je,L:Re,m:ge,M:Ge,p:nl,q:Ms,Q:ut,s:Tt,S:tt,u:ie,U:we,V:At,w:$e,W:Ee,x:null,X:null,y:Me,Y:lt,Z:st,"%":vt},ei={a:Li,A:Yi,b:Ko,B:po,c:rl,d:S,e:S,f:z,g:_,G:w,H:P,I:P,j:k,L,m:M,M:I,p:ti,q:T,Q:V,s:$,S:B,u:m,U:g,V:y,w:p,W:x,x:Nu,X:As,y:_,Y:w,Z:A,"%":O};Fi.x=Ht(it,Fi),Fi.X=Ht(nt,Fi),Fi.c=Ht(Se,Fi),Mi.x=Ht(it,Mi),Mi.X=Ht(nt,Mi),Mi.c=Ht(Se,Mi);function Ht(Qt,Jt){return function(Ur){var Dt=[],Va=-1,Di=0,Wi=Qt.length,$i,hn,Jo;for(Ur instanceof Date||(Ur=new Date(+Ur));++Va53)return null;"w"in Dt||(Dt.w=1),"Z"in Dt?(Di=i(a(Dt.y,0,1)),Wi=Di.getUTCDay(),Di=Wi>4||Wi===0?t.utcMonday.ceil(Di):t.utcMonday(Di),Di=t.utcDay.offset(Di,(Dt.V-1)*7),Dt.y=Di.getUTCFullYear(),Dt.m=Di.getUTCMonth(),Dt.d=Di.getUTCDate()+(Dt.w+6)%7):(Di=r(a(Dt.y,0,1)),Wi=Di.getDay(),Di=Wi>4||Wi===0?t.timeMonday.ceil(Di):t.timeMonday(Di),Di=t.timeDay.offset(Di,(Dt.V-1)*7),Dt.y=Di.getFullYear(),Dt.m=Di.getMonth(),Dt.d=Di.getDate()+(Dt.w+6)%7)}else("W"in Dt||"U"in Dt)&&("w"in Dt||(Dt.w="u"in Dt?Dt.u%7:"W"in Dt?1:0),Wi="Z"in Dt?i(a(Dt.y,0,1)).getUTCDay():r(a(Dt.y,0,1)).getDay(),Dt.m=0,Dt.d="W"in Dt?(Dt.w+6)%7+Dt.W*7-(Wi+5)%7:Dt.w+Dt.U*7-(Wi+6)%7);return"Z"in Dt?(Dt.H+=Dt.Z/100|0,Dt.M+=Dt.Z%100,i(Dt)):r(Dt)}}function ji(Qt,Jt,Ur,Dt){for(var Va=0,Di=Jt.length,Wi=Ur.length,$i,hn;Va=Wi)return-1;if($i=Jt.charCodeAt(Va++),$i===37){if($i=Jt.charAt(Va++),hn=ei[$i in o?Jt.charAt(Va++):$i],!hn||(Dt=hn(Qt,Ur,Dt))<0)return-1}else if($i!=Ur.charCodeAt(Dt++))return-1}return Dt}function ti(Qt,Jt,Ur){var Dt=Hr.exec(Jt.slice(Ur));return Dt?(Qt.p=gi[Dt[0].toLowerCase()],Ur+Dt[0].length):-1}function Li(Qt,Jt,Ur){var Dt=Ja.exec(Jt.slice(Ur));return Dt?(Qt.w=Mn[Dt[0].toLowerCase()],Ur+Dt[0].length):-1}function Yi(Qt,Jt,Ur){var Dt=hi.exec(Jt.slice(Ur));return Dt?(Qt.w=Ca[Dt[0].toLowerCase()],Ur+Dt[0].length):-1}function Ko(Qt,Jt,Ur){var Dt=Zr.exec(Jt.slice(Ur));return Dt?(Qt.m=Ti[Dt[0].toLowerCase()],Ur+Dt[0].length):-1}function po(Qt,Jt,Ur){var Dt=Rt.exec(Jt.slice(Ur));return Dt?(Qt.m=fi[Dt[0].toLowerCase()],Ur+Dt[0].length):-1}function rl(Qt,Jt,Ur){return ji(Qt,Se,Jt,Ur)}function Nu(Qt,Jt,Ur){return ji(Qt,it,Jt,Ur)}function As(Qt,Jt,Ur){return ji(Qt,nt,Jt,Ur)}function Vu(Qt){return si[Qt.getDay()]}function il(Qt){return Kr[Qt.getDay()]}function Aa(Qt){return Pr[Qt.getMonth()]}function Ro(Qt){return Ni[Qt.getMonth()]}function Ts(Qt){return Fr[+(Qt.getHours()>=12)]}function mo(Qt){return 1+~~(Qt.getMonth()/3)}function vo(Qt){return si[Qt.getUTCDay()]}function al(Qt){return Kr[Qt.getUTCDay()]}function Kl(Qt){return Pr[Qt.getUTCMonth()]}function Rn(Qt){return Ni[Qt.getUTCMonth()]}function nl(Qt){return Fr[+(Qt.getUTCHours()>=12)]}function Ms(Qt){return 1+~~(Qt.getUTCMonth()/3)}return{format:function(Qt){var Jt=Ht(Qt+="",Fi);return Jt.toString=function(){return Qt},Jt},parse:function(Qt){var Jt=va(Qt+="",!1);return Jt.toString=function(){return Qt},Jt},utcFormat:function(Qt){var Jt=Ht(Qt+="",Mi);return Jt.toString=function(){return Qt},Jt},utcParse:function(Qt){var Jt=va(Qt+="",!0);return Jt.toString=function(){return Qt},Jt}}}var o={"-":"",_:" ",0:"0"},s=/^\s*\d+/,l=/^%/,u=/[\\^$*+?|[\]().{}]/g;function c(fe,Se,it){var nt=fe<0?"-":"",Fr=(nt?-fe:fe)+"",Kr=Fr.length;return nt+(Kr68?1900:2e3),it+nt[0].length):-1}function A(fe,Se,it){var nt=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(Se.slice(it,it+6));return nt?(fe.Z=nt[1]?0:-(nt[2]+(nt[3]||"00")),it+nt[0].length):-1}function T(fe,Se,it){var nt=s.exec(Se.slice(it,it+1));return nt?(fe.q=nt[0]*3-3,it+nt[0].length):-1}function M(fe,Se,it){var nt=s.exec(Se.slice(it,it+2));return nt?(fe.m=nt[0]-1,it+nt[0].length):-1}function S(fe,Se,it){var nt=s.exec(Se.slice(it,it+2));return nt?(fe.d=+nt[0],it+nt[0].length):-1}function k(fe,Se,it){var nt=s.exec(Se.slice(it,it+3));return nt?(fe.m=0,fe.d=+nt[0],it+nt[0].length):-1}function P(fe,Se,it){var nt=s.exec(Se.slice(it,it+2));return nt?(fe.H=+nt[0],it+nt[0].length):-1}function I(fe,Se,it){var nt=s.exec(Se.slice(it,it+2));return nt?(fe.M=+nt[0],it+nt[0].length):-1}function B(fe,Se,it){var nt=s.exec(Se.slice(it,it+2));return nt?(fe.S=+nt[0],it+nt[0].length):-1}function L(fe,Se,it){var nt=s.exec(Se.slice(it,it+3));return nt?(fe.L=+nt[0],it+nt[0].length):-1}function z(fe,Se,it){var nt=s.exec(Se.slice(it,it+6));return nt?(fe.L=Math.floor(nt[0]/1e3),it+nt[0].length):-1}function O(fe,Se,it){var nt=l.exec(Se.slice(it,it+1));return nt?it+nt[0].length:-1}function V(fe,Se,it){var nt=s.exec(Se.slice(it));return nt?(fe.Q=+nt[0],it+nt[0].length):-1}function $(fe,Se,it){var nt=s.exec(Se.slice(it));return nt?(fe.s=+nt[0],it+nt[0].length):-1}function j(fe,Se){return c(fe.getDate(),Se,2)}function H(fe,Se){return c(fe.getHours(),Se,2)}function Z(fe,Se){return c(fe.getHours()%12||12,Se,2)}function W(fe,Se){return c(1+t.timeDay.count(t.timeYear(fe),fe),Se,3)}function le(fe,Se){return c(fe.getMilliseconds(),Se,3)}function pe(fe,Se){return le(fe,Se)+"000"}function _e(fe,Se){return c(fe.getMonth()+1,Se,2)}function De(fe,Se){return c(fe.getMinutes(),Se,2)}function de(fe,Se){return c(fe.getSeconds(),Se,2)}function Ce(fe){var Se=fe.getDay();return Se===0?7:Se}function Q(fe,Se){return c(t.timeSunday.count(t.timeYear(fe)-1,fe),Se,2)}function ae(fe){var Se=fe.getDay();return Se>=4||Se===0?t.timeThursday(fe):t.timeThursday.ceil(fe)}function ye(fe,Se){return fe=ae(fe),c(t.timeThursday.count(t.timeYear(fe),fe)+(t.timeYear(fe).getDay()===4),Se,2)}function te(fe){return fe.getDay()}function re(fe,Se){return c(t.timeMonday.count(t.timeYear(fe)-1,fe),Se,2)}function ce(fe,Se){return c(fe.getFullYear()%100,Se,2)}function me(fe,Se){return fe=ae(fe),c(fe.getFullYear()%100,Se,2)}function ze(fe,Se){return c(fe.getFullYear()%1e4,Se,4)}function He(fe,Se){var it=fe.getDay();return fe=it>=4||it===0?t.timeThursday(fe):t.timeThursday.ceil(fe),c(fe.getFullYear()%1e4,Se,4)}function ke(fe){var Se=fe.getTimezoneOffset();return(Se>0?"-":(Se*=-1,"+"))+c(Se/60|0,"0",2)+c(Se%60,"0",2)}function Oe(fe,Se){return c(fe.getUTCDate(),Se,2)}function qe(fe,Se){return c(fe.getUTCHours(),Se,2)}function se(fe,Se){return c(fe.getUTCHours()%12||12,Se,2)}function je(fe,Se){return c(1+t.utcDay.count(t.utcYear(fe),fe),Se,3)}function Re(fe,Se){return c(fe.getUTCMilliseconds(),Se,3)}function Ve(fe,Se){return Re(fe,Se)+"000"}function ge(fe,Se){return c(fe.getUTCMonth()+1,Se,2)}function Ge(fe,Se){return c(fe.getUTCMinutes(),Se,2)}function tt(fe,Se){return c(fe.getUTCSeconds(),Se,2)}function ie(fe){var Se=fe.getUTCDay();return Se===0?7:Se}function we(fe,Se){return c(t.utcSunday.count(t.utcYear(fe)-1,fe),Se,2)}function ot(fe){var Se=fe.getUTCDay();return Se>=4||Se===0?t.utcThursday(fe):t.utcThursday.ceil(fe)}function At(fe,Se){return fe=ot(fe),c(t.utcThursday.count(t.utcYear(fe),fe)+(t.utcYear(fe).getUTCDay()===4),Se,2)}function $e(fe){return fe.getUTCDay()}function Ee(fe,Se){return c(t.utcMonday.count(t.utcYear(fe)-1,fe),Se,2)}function Me(fe,Se){return c(fe.getUTCFullYear()%100,Se,2)}function We(fe,Se){return fe=ot(fe),c(fe.getUTCFullYear()%100,Se,2)}function lt(fe,Se){return c(fe.getUTCFullYear()%1e4,Se,4)}function Qe(fe,Se){var it=fe.getUTCDay();return fe=it>=4||it===0?t.utcThursday(fe):t.utcThursday.ceil(fe),c(fe.getUTCFullYear()%1e4,Se,4)}function st(){return"+0000"}function vt(){return"%"}function ut(fe){return+fe}function Tt(fe){return Math.floor(+fe/1e3)}var Ze;gt({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 gt(fe){return Ze=n(fe),e.timeFormat=Ze.format,e.timeParse=Ze.parse,e.utcFormat=Ze.utcFormat,e.utcParse=Ze.utcParse,Ze}var rt="%Y-%m-%dT%H:%M:%S.%LZ";function Ft(fe){return fe.toISOString()}var Pt=Date.prototype.toISOString?Ft:e.utcFormat(rt);function bt(fe){var Se=new Date(fe);return isNaN(Se)?null:Se}var zt=+new Date("2000-01-01T00:00:00.000Z")?bt:e.utcParse(rt);e.isoFormat=Pt,e.isoParse=zt,e.timeFormatDefaultLocale=gt,e.timeFormatLocale=n,Object.defineProperty(e,"__esModule",{value:!0})})});var TA=X((q_,cI)=>{(function(e,t){typeof q_=="object"&&typeof cI!="undefined"?t(q_):(e=typeof globalThis!="undefined"?globalThis:e||self,t(e.d3=e.d3||{}))})(q_,(function(e){"use strict";function t(M){return Math.abs(M=Math.round(M))>=1e21?M.toLocaleString("en").replace(/,/g,""):M.toString(10)}function r(M,S){if((k=(M=S?M.toExponential(S-1):M.toExponential()).indexOf("e"))<0)return null;var k,P=M.slice(0,k);return[P.length>1?P[0]+P.slice(2):P,+M.slice(k+1)]}function i(M){return M=r(Math.abs(M)),M?M[1]:NaN}function a(M,S){return function(k,P){for(var I=k.length,B=[],L=0,z=M[0],O=0;I>0&&z>0&&(O+z+1>P&&(z=Math.max(1,P-O)),B.push(k.substring(I-=z,I+z)),!((O+=z+1)>P));)z=M[L=(L+1)%M.length];return B.reverse().join(S)}}function n(M){return function(S){return S.replace(/[0-9]/g,function(k){return M[+k]})}}var o=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function s(M){if(!(S=o.exec(M)))throw new Error("invalid format: "+M);var S;return new l({fill:S[1],align:S[2],sign:S[3],symbol:S[4],zero:S[5],width:S[6],comma:S[7],precision:S[8]&&S[8].slice(1),trim:S[9],type:S[10]})}s.prototype=l.prototype;function l(M){this.fill=M.fill===void 0?" ":M.fill+"",this.align=M.align===void 0?">":M.align+"",this.sign=M.sign===void 0?"-":M.sign+"",this.symbol=M.symbol===void 0?"":M.symbol+"",this.zero=!!M.zero,this.width=M.width===void 0?void 0:+M.width,this.comma=!!M.comma,this.precision=M.precision===void 0?void 0:+M.precision,this.trim=!!M.trim,this.type=M.type===void 0?"":M.type+""}l.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 u(M){e:for(var S=M.length,k=1,P=-1,I;k0&&(P=0);break}return P>0?M.slice(0,P)+M.slice(I+1):M}var c;function h(M,S){var k=r(M,S);if(!k)return M+"";var P=k[0],I=k[1],B=I-(c=Math.max(-8,Math.min(8,Math.floor(I/3)))*3)+1,L=P.length;return B===L?P:B>L?P+new Array(B-L+1).join("0"):B>0?P.slice(0,B)+"."+P.slice(B):"0."+new Array(1-B).join("0")+r(M,Math.max(0,S+B-1))[0]}function f(M,S){var k=r(M,S);if(!k)return M+"";var P=k[0],I=k[1];return I<0?"0."+new Array(-I).join("0")+P:P.length>I+1?P.slice(0,I+1)+"."+P.slice(I+1):P+new Array(I-P.length+2).join("0")}var d={"%":function(M,S){return(M*100).toFixed(S)},b:function(M){return Math.round(M).toString(2)},c:function(M){return M+""},d:t,e:function(M,S){return M.toExponential(S)},f:function(M,S){return M.toFixed(S)},g:function(M,S){return M.toPrecision(S)},o:function(M){return Math.round(M).toString(8)},p:function(M,S){return f(M*100,S)},r:f,s:h,X:function(M){return Math.round(M).toString(16).toUpperCase()},x:function(M){return Math.round(M).toString(16)}};function p(M){return M}var m=Array.prototype.map,g=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function y(M){var S=M.grouping===void 0||M.thousands===void 0?p:a(m.call(M.grouping,Number),M.thousands+""),k=M.currency===void 0?"":M.currency[0]+"",P=M.currency===void 0?"":M.currency[1]+"",I=M.decimal===void 0?".":M.decimal+"",B=M.numerals===void 0?p:n(m.call(M.numerals,String)),L=M.percent===void 0?"%":M.percent+"",z=M.minus===void 0?"-":M.minus+"",O=M.nan===void 0?"NaN":M.nan+"";function V(j){j=s(j);var H=j.fill,Z=j.align,W=j.sign,le=j.symbol,pe=j.zero,_e=j.width,De=j.comma,de=j.precision,Ce=j.trim,Q=j.type;Q==="n"?(De=!0,Q="g"):d[Q]||(de===void 0&&(de=12),Ce=!0,Q="g"),(pe||H==="0"&&Z==="=")&&(pe=!0,H="0",Z="=");var ae=le==="$"?k:le==="#"&&/[boxX]/.test(Q)?"0"+Q.toLowerCase():"",ye=le==="$"?P:/[%p]/.test(Q)?L:"",te=d[Q],re=/[defgprs%]/.test(Q);de=de===void 0?6:/[gprs]/.test(Q)?Math.max(1,Math.min(21,de)):Math.max(0,Math.min(20,de));function ce(me){var ze=ae,He=ye,ke,Oe,qe;if(Q==="c")He=te(me)+He,me="";else{me=+me;var se=me<0||1/me<0;if(me=isNaN(me)?O:te(Math.abs(me),de),Ce&&(me=u(me)),se&&+me==0&&W!=="+"&&(se=!1),ze=(se?W==="("?W:z:W==="-"||W==="("?"":W)+ze,He=(Q==="s"?g[8+c/3]:"")+He+(se&&W==="("?")":""),re){for(ke=-1,Oe=me.length;++keqe||qe>57){He=(qe===46?I+me.slice(ke+1):me.slice(ke))+He,me=me.slice(0,ke);break}}}De&&!pe&&(me=S(me,1/0));var je=ze.length+me.length+He.length,Re=je<_e?new Array(_e-je+1).join(H):"";switch(De&&pe&&(me=S(Re+me,Re.length?_e-He.length:1/0),Re=""),Z){case"<":me=ze+me+He+Re;break;case"=":me=ze+Re+me+He;break;case"^":me=Re.slice(0,je=Re.length>>1)+ze+me+He+Re.slice(je);break;default:me=Re+ze+me+He;break}return B(me)}return ce.toString=function(){return j+""},ce}function $(j,H){var Z=V((j=s(j),j.type="f",j)),W=Math.max(-8,Math.min(8,Math.floor(i(H)/3)))*3,le=Math.pow(10,-W),pe=g[8+W/3];return function(_e){return Z(le*_e)+pe}}return{format:V,formatPrefix:$}}var x;w({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function w(M){return x=y(M),e.format=x.format,e.formatPrefix=x.formatPrefix,x}function _(M){return Math.max(0,-i(Math.abs(M)))}function A(M,S){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(i(S)/3)))*3-i(Math.abs(M)))}function T(M,S){return M=Math.abs(M),S=Math.abs(S)-M,Math.max(0,i(S)-i(M))+1}e.FormatSpecifier=l,e.formatDefaultLocale=w,e.formatLocale=y,e.formatSpecifier=s,e.precisionFixed=_,e.precisionPrefix=A,e.precisionRound=T,Object.defineProperty(e,"__esModule",{value:!0})}))});var fI=X((UKe,hI)=>{"use strict";hI.exports=function(e){for(var t=e.length,r,i=0;i13)&&r!==32&&r!==133&&r!==160&&r!==5760&&r!==6158&&(r<8192||r>8205)&&r!==8232&&r!==8233&&r!==8239&&r!==8287&&r!==8288&&r!==12288&&r!==65279)return!1;return!0}});var Br=X((GKe,dI)=>{"use strict";var D0e=fI();dI.exports=function(e){var t=typeof e;if(t==="string"){var r=e;if(e=+e,e===0&&D0e(r))return!1}else if(t!=="number")return!1;return e-e<1}});var na={};Zi(na,{ALMOST_EQUAL:()=>$0e,BADNUM:()=>MA,EPOCHJD:()=>j0e,FP_SAFE:()=>S0e,LOG_CLIP:()=>H0e,MINUS_SIGN:()=>Z0e,ONEAVGMONTH:()=>z0e,ONEAVGQUARTER:()=>P0e,ONEAVGYEAR:()=>k0e,ONEDAY:()=>q0e,ONEHOUR:()=>O0e,ONEMAXMONTH:()=>L0e,ONEMAXQUARTER:()=>F0e,ONEMAXYEAR:()=>E0e,ONEMICROSEC:()=>G0e,ONEMILLI:()=>U0e,ONEMIN:()=>N0e,ONEMINMONTH:()=>R0e,ONEMINQUARTER:()=>I0e,ONEMINYEAR:()=>C0e,ONESEC:()=>V0e,ONEWEEK:()=>B0e});var MA,S0e,E0e,k0e,C0e,F0e,P0e,I0e,L0e,z0e,R0e,B0e,q0e,O0e,N0e,V0e,U0e,G0e,j0e,$0e,H0e,Z0e,Ki=Vi(()=>{"use strict";MA=void 0,S0e=Number.MAX_VALUE*1e-4,E0e=316224e5,k0e=315576e5,C0e=31536e6,F0e=79488e5,P0e=78894e5,I0e=76896e5,L0e=26784e5,z0e=26298e5,R0e=24192e5,B0e=6048e5,q0e=864e5,O0e=36e5,N0e=6e4,V0e=1e3,U0e=1,G0e=.001,j0e=24405875e-1,$0e=1-1e-6,H0e=10,Z0e="\u2212"});var DA=X((O_,pI)=>{(function(e,t){typeof O_=="object"&&typeof pI!="undefined"?t(O_):(e=typeof globalThis!="undefined"?globalThis:e||self,t(e["base64-arraybuffer"]={}))})(O_,(function(e){"use strict";for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),i=0;i>2],c+=t[(s[l]&3)<<4|s[l+1]>>4],c+=t[(s[l+1]&15)<<2|s[l+2]>>6],c+=t[s[l+2]&63];return u%3===2?c=c.substring(0,c.length-1)+"=":u%3===1&&(c=c.substring(0,c.length-2)+"=="),c},n=function(o){var s=o.length*.75,l=o.length,u,c=0,h,f,d,p;o[o.length-1]==="="&&(s--,o[o.length-2]==="="&&s--);var m=new ArrayBuffer(s),g=new Uint8Array(m);for(u=0;u>4,g[c++]=(f&15)<<4|d>>2,g[c++]=(d&3)<<6|p&63;return m};e.decode=n,e.encode=a,Object.defineProperty(e,"__esModule",{value:!0})}))});var Gh=X((jKe,mI)=>{"use strict";mI.exports=function(t){return window&&window.process&&window.process.versions?Object.prototype.toString.call(t)==="[object Object]":Object.prototype.toString.call(t)==="[object Object]"&&Object.getPrototypeOf(t).hasOwnProperty("hasOwnProperty")}});var os=X(lu=>{"use strict";var Y0e=DA().decode,W0e=Gh(),SA=Array.isArray,X0e=ArrayBuffer,K0e=DataView;function vI(e){return X0e.isView(e)&&!(e instanceof K0e)}lu.isTypedArray=vI;function N_(e){return SA(e)||vI(e)}lu.isArrayOrTypedArray=N_;function J0e(e){return!N_(e[0])}lu.isArray1D=J0e;lu.ensureArray=function(e,t){return SA(e)||(e=[]),e.length=t,e};var En={u1c:typeof Uint8ClampedArray=="undefined"?void 0:Uint8ClampedArray,i1:typeof Int8Array=="undefined"?void 0:Int8Array,u1:typeof Uint8Array=="undefined"?void 0:Uint8Array,i2:typeof Int16Array=="undefined"?void 0:Int16Array,u2:typeof Uint16Array=="undefined"?void 0:Uint16Array,i4:typeof Int32Array=="undefined"?void 0:Int32Array,u4:typeof Uint32Array=="undefined"?void 0:Uint32Array,f4:typeof Float32Array=="undefined"?void 0:Float32Array,f8:typeof Float64Array=="undefined"?void 0:Float64Array};En.uint8c=En.u1c;En.uint8=En.u1;En.int8=En.i1;En.uint16=En.u2;En.int16=En.i2;En.uint32=En.u4;En.int32=En.i4;En.float32=En.f4;En.float64=En.f8;function EA(e){return e.constructor===ArrayBuffer}lu.isArrayBuffer=EA;lu.decodeTypedArraySpec=function(e){var t=[],r=Q0e(e),i=r.dtype,a=En[i];if(!a)throw new Error('Error in dtype: "'+i+'"');var n=a.BYTES_PER_ELEMENT,o=r.bdata;EA(o)||(o=Y0e(o));var s=r.shape===void 0?[o.byteLength/n]:(""+r.shape).split(",");s.reverse();var l=s.length,u,c,h=+s[0],f=n*h,d=0;if(l===1)t=new a(o);else if(l===2)for(u=+s[1],c=0;c{"use strict";var yI=Br(),CA=os().isArrayOrTypedArray;wI.exports=function(t,r){if(yI(r))r=String(r);else if(typeof r!="string"||r.slice(-4)==="[-1]")throw"bad property string";var i=r.split("."),a,n,o,s;for(s=0;s{"use strict";var Pp=cv(),ade=/^\w*$/,nde=0,AI=1,V_=2,TI=3,F0=4;MI.exports=function(t,r,i,a){i=i||"name",a=a||"value";var n,o,s,l={};r&&r.length?(s=Pp(t,r),o=s.get()):o=t,r=r||"";var u={};if(o)for(n=0;n2)return l[d]=l[d]|V_,h.set(f,null);if(c){for(n=d;n{"use strict";var ode=/^(.*)(\.[^\.\[\]]+|\[\d\])$/,sde=/^[^\.\[\]]+$/;SI.exports=function(e,t){for(;t;){var r=e.match(ode);if(r)e=r[1];else if(e.match(sde))e="";else throw new Error("bad relativeAttr call:"+[e,t]);if(t.charAt(0)==="^")t=t.slice(1);else break}return e&&t.charAt(0)!=="["?e+"."+t:e+t}});var U_=X((WKe,kI)=>{"use strict";var lde=Br();kI.exports=function(t,r){if(t>0)return Math.log(t)/Math.LN10;var i=Math.log(Math.min(r[0],r[1]))/Math.LN10;return lde(i)||(i=Math.log(Math.max(r[0],r[1]))/Math.LN10-6),i}});var PI=X((XKe,FI)=>{"use strict";var CI=os().isArrayOrTypedArray,hv=Gh();FI.exports=function e(t,r){for(var i in r){var a=r[i],n=t[i];if(n!==a)if(i.charAt(0)==="_"||typeof a=="function"){if(i in t)continue;t[i]=a}else if(CI(a)&&CI(n)&&hv(a[0])){if(i==="customdata"||i==="ids")continue;for(var o=Math.min(a.length,n.length),s=0;sude,modHalf:()=>cde});function ude(e,t){let r=e%t;return r<0?r+t:r}function cde(e,t){return Math.abs(e)>t/2?e-Math.round(e/t)*t:e}var Lp=Vi(()=>{"use strict"});var Ta=X(pv=>{"use strict";var II=Gh(),fv=Array.isArray;function hde(e,t){var r,i;for(r=0;r{"use strict";LI.exports=function(e){var t=e.variantValues,r=e.editType,i=e.colorEditType;i===void 0&&(i=r);var a={editType:r,valType:"integer",min:1,max:1e3,extras:["normal","bold"],dflt:"normal"};e.noNumericWeightValues&&(a.valType="enumerated",a.values=a.extras,a.extras=void 0,a.min=void 0,a.max=void 0);var n={family:{valType:"string",noBlank:!0,strict:!0,editType:r},size:{valType:"number",min:1,editType:r},color:{valType:"color",editType:i},weight:a,style:{editType:r,valType:"enumerated",values:["normal","italic"],dflt:"normal"},variant:e.noFontVariant?void 0:{editType:r,valType:"enumerated",values:t||["normal","small-caps","all-small-caps","all-petite-caps","petite-caps","unicase"],dflt:"normal"},textcase:e.noFontTextcase?void 0:{editType:r,valType:"enumerated",values:["normal","word caps","upper","lower"],dflt:"normal"},lineposition:e.noFontLineposition?void 0:{editType:r,valType:"flaglist",flags:["under","over","through"],extras:["none"],dflt:"none"},shadow:e.noFontShadow?void 0:{editType:r,valType:"string",dflt:e.autoShadowDflt?"auto":"none"},editType:r};return e.autoSize&&(n.size.dflt="auto"),e.autoColor&&(n.color.dflt="auto"),e.arrayOk&&(n.family.arrayOk=!0,n.weight.arrayOk=!0,n.style.arrayOk=!0,e.noFontVariant||(n.variant.arrayOk=!0),e.noFontTextcase||(n.textcase.arrayOk=!0),e.noFontLineposition||(n.lineposition.arrayOk=!0),e.noFontShadow||(n.shadow.arrayOk=!0),n.size.arrayOk=!0,n.color.arrayOk=!0),n}});var mv={};Zi(mv,{HOVERARROWSIZE:()=>dde,HOVERFONT:()=>vde,HOVERFONTSIZE:()=>mde,HOVERID:()=>yde,HOVERMINTIME:()=>gde,HOVERTEXTPAD:()=>pde,YANGLE:()=>fde});var fde,dde,pde,mde,vde,gde,yde,vv=Vi(()=>{"use strict";fde=60,dde=6,pde=3,mde=13,vde="Arial, sans-serif",gde=50,yde="-hover"});var zp=X((QKe,BI)=>{"use strict";var zI=(vv(),ct(mv)),RI=to(),FA=RI({editType:"none"});FA.family.dflt=zI.HOVERFONT;FA.size.dflt=zI.HOVERFONTSIZE;BI.exports={clickmode:{valType:"flaglist",flags:["event","select"],dflt:"event",editType:"plot",extras:["none"]},dragmode:{valType:"enumerated",values:["zoom","pan","select","lasso","drawclosedpath","drawopenpath","drawline","drawrect","drawcircle","orbit","turntable",!1],dflt:"zoom",editType:"modebar"},hovermode:{valType:"enumerated",values:["x","y","closest",!1,"x unified","y unified"],dflt:"closest",editType:"modebar"},hoversort:{valType:"enumerated",values:["trace","value descending","value ascending"],dflt:"trace",editType:"none"},hoversubplots:{valType:"enumerated",values:["single","overlaying","axis"],dflt:"overlaying",editType:"none"},hoveranywhere:{valType:"boolean",dflt:!1,editType:"none"},clickanywhere:{valType:"boolean",dflt:!1,editType:"none"},hoverdistance:{valType:"integer",min:-1,dflt:20,editType:"none"},spikedistance:{valType:"integer",min:-1,dflt:-1,editType:"none"},hoverlabel:{bgcolor:{valType:"color",editType:"none"},bordercolor:{valType:"color",editType:"none"},font:FA,grouptitlefont:RI({editType:"none"}),align:{valType:"enumerated",values:["left","right","auto"],dflt:"auto",editType:"none"},namelength:{valType:"integer",min:-1,dflt:15,editType:"none"},showarrow:{valType:"boolean",dflt:!0,editType:"none"},editType:"none"},selectdirection:{valType:"enumerated",values:["h","v","d","any"],dflt:"any",editType:"none"}}});var G_=X((eJe,qI)=>{"use strict";var _de=to(),gv=zp().hoverlabel,yv=Ta().extendFlat;qI.exports={hoverlabel:{bgcolor:yv({},gv.bgcolor,{arrayOk:!0}),bordercolor:yv({},gv.bordercolor,{arrayOk:!0}),font:_de({arrayOk:!0,editType:"none"}),align:yv({},gv.align,{arrayOk:!0}),namelength:yv({},gv.namelength,{arrayOk:!0}),showarrow:yv({},gv.showarrow),editType:"none"}}});var Go=X((tJe,OI)=>{"use strict";var xde=to(),bde=G_();OI.exports={type:{valType:"enumerated",values:[],dflt:"scatter",editType:"calc+clearAxisTypes",_noTemplating:!0},visible:{valType:"enumerated",values:[!0,!1,"legendonly"],dflt:!0,editType:"calc"},showlegend:{valType:"boolean",dflt:!0,editType:"style"},legend:{valType:"subplotid",dflt:"legend",editType:"style"},legendgroup:{valType:"string",dflt:"",editType:"style"},legendgrouptitle:{text:{valType:"string",dflt:"",editType:"style"},font:xde({editType:"style"}),editType:"style"},legendrank:{valType:"number",dflt:1e3,editType:"style"},legendwidth:{valType:"number",min:0,editType:"style"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"style"},name:{valType:"string",editType:"style"},uid:{valType:"string",editType:"plot",anim:!0},ids:{valType:"data_array",editType:"calc",anim:!0},customdata:{valType:"data_array",editType:"calc"},meta:{valType:"any",arrayOk:!0,editType:"plot"},selectedpoints:{valType:"any",editType:"calc"},hoverinfo:{valType:"flaglist",flags:["x","y","z","text","name"],extras:["all","none","skip"],arrayOk:!0,dflt:"all",editType:"none"},hoverlabel:bde.hoverlabel,uirevision:{valType:"any",editType:"none"}}});var Fz=X((lJe,Cz)=>{var AT=Object.defineProperty,wde=Object.getOwnPropertyDescriptor,Ade=Object.getOwnPropertyNames,Tde=Object.prototype.hasOwnProperty,Mde=(e,t)=>{for(var r in t)AT(e,r,{get:t[r],enumerable:!0})},Dde=(e,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Ade(t))!Tde.call(e,a)&&a!==r&&AT(e,a,{get:()=>t[a],enumerable:!(i=wde(t,a))||i.enumerable});return e},Sde=e=>Dde(AT({},"__esModule",{value:!0}),e),WI={};Mde(WI,{a98:()=>yve,average:()=>Ape,averageAngle:()=>Qu,averageNumber:()=>fL,blend:()=>wme,blerp:()=>iT,clampChroma:()=>Ume,clampGamut:()=>XT,clampRgb:()=>Vme,colorsNamed:()=>KI,convertA98ToXyz65:()=>aT,convertCubehelixToRgb:()=>cL,convertDlchToLab65:()=>J_,convertHsiToRgb:()=>xL,convertHslToRgb:()=>AL,convertHsvToRgb:()=>kT,convertHwbToRgb:()=>SL,convertItpToXyz65:()=>oT,convertJabToJch:()=>lT,convertJabToRgb:()=>zT,convertJabToXyz65:()=>IT,convertJchToJab:()=>uT,convertLab65ToDlch:()=>Q_,convertLab65ToRgb:()=>Dv,convertLab65ToXyz65:()=>DT,convertLabToLch:()=>jc,convertLabToRgb:()=>BT,convertLabToXyz50:()=>ux,convertLchToLab:()=>$c,convertLchuvToLuv:()=>NT,convertLrgbToOklab:()=>VT,convertLrgbToRgb:()=>q0,convertLuvToLchuv:()=>OT,convertLuvToXyz50:()=>tx,convertOkhslToOklab:()=>fT,convertOkhsvToOklab:()=>pT,convertOklabToLrgb:()=>Gp,convertOklabToOkhsl:()=>hT,convertOklabToOkhsv:()=>dT,convertOklabToRgb:()=>kv,convertP3ToXyz65:()=>mT,convertProphotoToXyz50:()=>yT,convertRec2020ToXyz65:()=>xT,convertRgbToCubehelix:()=>uL,convertRgbToHsi:()=>bL,convertRgbToHsl:()=>TL,convertRgbToHsv:()=>CT,convertRgbToHwb:()=>EL,convertRgbToJab:()=>LT,convertRgbToLab:()=>qT,convertRgbToLab65:()=>Sv,convertRgbToLrgb:()=>B0,convertRgbToOklab:()=>Ev,convertRgbToXyb:()=>rz,convertRgbToXyz50:()=>Up,convertRgbToXyz65:()=>jh,convertRgbToYiq:()=>uz,convertXybToRgb:()=>iz,convertXyz50ToLab:()=>cx,convertXyz50ToLuv:()=>ex,convertXyz50ToProphoto:()=>gT,convertXyz50ToRgb:()=>Vp,convertXyz50ToXyz65:()=>sz,convertXyz65ToA98:()=>nT,convertXyz65ToItp:()=>sT,convertXyz65ToJab:()=>PT,convertXyz65ToLab65:()=>ST,convertXyz65ToP3:()=>vT,convertXyz65ToRec2020:()=>_T,convertXyz65ToRgb:()=>$h,convertXyz65ToXyz50:()=>oz,convertYiqToRgb:()=>cz,converter:()=>Ji,cubehelix:()=>_ve,differenceCie76:()=>vpe,differenceCie94:()=>gpe,differenceCiede2000:()=>ype,differenceCmc:()=>_pe,differenceEuclidean:()=>Np,differenceHueChroma:()=>Mv,differenceHueNaive:()=>hL,differenceHueSaturation:()=>Tv,differenceHyab:()=>xpe,differenceItp:()=>wpe,differenceKotsarenkoRamos:()=>bpe,displayable:()=>WT,dlab:()=>xve,dlch:()=>bve,easingGamma:()=>Mz,easingInOutSine:()=>vve,easingMidpoint:()=>yz,easingSmootherstep:()=>pve,easingSmoothstep:()=>hve,easingSmoothstepInverse:()=>fve,filterBrightness:()=>Kme,filterContrast:()=>Jme,filterDeficiencyDeuter:()=>uve,filterDeficiencyProt:()=>lve,filterDeficiencyTrit:()=>cve,filterGrayscale:()=>tve,filterHueRotate:()=>ive,filterInvert:()=>rve,filterSaturate:()=>eve,filterSepia:()=>Qme,fixupAlpha:()=>pn,fixupHueDecreasing:()=>hpe,fixupHueIncreasing:()=>cpe,fixupHueLonger:()=>upe,fixupHueShorter:()=>Ju,formatCss:()=>mme,formatHex:()=>vme,formatHex8:()=>gme,formatHsl:()=>_me,formatRgb:()=>yme,getMode:()=>xo,hsi:()=>wve,hsl:()=>Ave,hsv:()=>Tve,hwb:()=>Mve,inGamut:()=>dx,interpolate:()=>Fme,interpolateWith:()=>xz,interpolateWithPremultipliedAlpha:()=>Pme,interpolatorLinear:()=>Zt,interpolatorPiecewise:()=>sL,interpolatorSplineBasis:()=>wz,interpolatorSplineBasisClosed:()=>Az,interpolatorSplineMonotone:()=>zme,interpolatorSplineMonotone2:()=>Rme,interpolatorSplineMonotoneClosed:()=>Bme,interpolatorSplineNatural:()=>Ime,interpolatorSplineNaturalClosed:()=>Lme,itp:()=>Dve,jab:()=>Sve,jch:()=>Eve,lab:()=>kve,lab65:()=>Cve,lch:()=>Fve,lch65:()=>Pve,lchuv:()=>Ive,lerp:()=>I0,lrgb:()=>Lve,luv:()=>zve,mapAlphaDivide:()=>gz,mapAlphaMultiply:()=>vz,mapTransferGamma:()=>Sme,mapTransferLinear:()=>HT,mapper:()=>Cv,modeA98:()=>lL,modeCubehelix:()=>dL,modeDlab:()=>yL,modeDlch:()=>_L,modeHsi:()=>wL,modeHsl:()=>ET,modeHsv:()=>FT,modeHwb:()=>CL,modeItp:()=>IL,modeJab:()=>LL,modeJch:()=>zL,modeLab:()=>hx,modeLab65:()=>BL,modeLch:()=>fx,modeLch65:()=>OL,modeLchuv:()=>UL,modeLrgb:()=>GL,modeLuv:()=>jL,modeOkhsl:()=>HL,modeOkhsv:()=>ZL,modeOklab:()=>WL,modeOklch:()=>KL,modeP3:()=>JL,modeProphoto:()=>QL,modeRec2020:()=>ez,modeRgb:()=>R0,modeXyb:()=>az,modeXyz50:()=>nz,modeXyz65:()=>lz,modeYiq:()=>hz,nearest:()=>$me,okhsl:()=>Rve,okhsv:()=>Bve,oklab:()=>qve,oklch:()=>Ove,p3:()=>Nve,parse:()=>aL,parseHex:()=>QI,parseHsl:()=>DL,parseHslLegacy:()=>ML,parseHwb:()=>kL,parseLab:()=>RL,parseLch:()=>qL,parseNamed:()=>JI,parseOklab:()=>YL,parseOklch:()=>XL,parseRgb:()=>nL,parseRgbLegacy:()=>eL,parseTransparent:()=>oL,prophoto:()=>Vve,random:()=>Dme,rec2020:()=>Uve,removeParser:()=>Vde,rgb:()=>Gve,round:()=>fz,samples:()=>Nme,serializeHex:()=>$T,serializeHex8:()=>dz,serializeHsl:()=>mz,serializeRgb:()=>pz,toGamut:()=>Gme,trilerp:()=>Jde,unlerp:()=>Kde,useMode:()=>Ri,useParser:()=>rL,wcagContrast:()=>gve,wcagLuminance:()=>wT,xyb:()=>jve,xyz50:()=>$ve,xyz65:()=>Hve,yiq:()=>Zve});Cz.exports=Sde(WI);var Ede=(e,t)=>{if(typeof e=="number"){if(t===3)return{mode:"rgb",r:(e>>8&15|e>>4&240)/255,g:(e>>4&15|e&240)/255,b:(e&15|e<<4&240)/255};if(t===4)return{mode:"rgb",r:(e>>12&15|e>>8&240)/255,g:(e>>8&15|e>>4&240)/255,b:(e>>4&15|e&240)/255,alpha:(e&15|e<<4&240)/255};if(t===6)return{mode:"rgb",r:(e>>16&255)/255,g:(e>>8&255)/255,b:(e&255)/255};if(t===8)return{mode:"rgb",r:(e>>24&255)/255,g:(e>>16&255)/255,b:(e>>8&255)/255,alpha:(e&255)/255}}},XI=Ede,kde={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},KI=kde,Cde=e=>XI(KI[e.toLowerCase()],6),JI=Cde,Fde=/^#?([0-9a-f]{8}|[0-9a-f]{6}|[0-9a-f]{4}|[0-9a-f]{3})$/i,Pde=e=>{let t;return(t=e.match(Fde))?XI(parseInt(t[1],16),t[1].length):void 0},QI=Pde,ss="([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)",rJe=`(?:${ss}|none)`,bv=`${ss}%`,iJe=`(?:${ss}%|none)`,TT=`(?:${ss}%|${ss})`,Ide=`(?:${ss}%|${ss}|none)`,Lde=`(?:${ss}(deg|grad|rad|turn)|${ss})`,aJe=`(?:${ss}(deg|grad|rad|turn)|${ss}|none)`,qp="\\s*,\\s*",nJe=new RegExp("^"+Ide+"$"),zde=new RegExp(`^rgba?\\(\\s*${ss}${qp}${ss}${qp}${ss}\\s*(?:,\\s*${TT}\\s*)?\\)$`),Rde=new RegExp(`^rgba?\\(\\s*${bv}${qp}${bv}${qp}${bv}\\s*(?:,\\s*${TT}\\s*)?\\)$`),Bde=e=>{let t={mode:"rgb"},r;if(r=e.match(zde))r[1]!==void 0&&(t.r=r[1]/255),r[2]!==void 0&&(t.g=r[2]/255),r[3]!==void 0&&(t.b=r[3]/255);else if(r=e.match(Rde))r[1]!==void 0&&(t.r=r[1]/100),r[2]!==void 0&&(t.g=r[2]/100),r[3]!==void 0&&(t.b=r[3]/100);else return;return r[4]!==void 0?t.alpha=Math.max(0,Math.min(1,r[4]/100)):r[5]!==void 0&&(t.alpha=Math.max(0,Math.min(1,+r[5]))),t},eL=Bde,qde=(e,t)=>e===void 0?void 0:typeof e!="object"?aL(e):e.mode!==void 0?e:t?Gr(nr({},e),{mode:t}):void 0,uu=qde,Ode=(e="rgb")=>t=>(t=uu(t,e))!==void 0?t.mode===e?t:Ku[t.mode][e]?Ku[t.mode][e](t):e==="rgb"?Ku[t.mode].rgb(t):Ku.rgb[e](Ku[t.mode].rgb(t)):void 0,Ji=Ode,Ku={},tL={},Op=[],MT={},Nde=e=>e,Ri=e=>(Ku[e.mode]=nr(nr({},Ku[e.mode]),e.toMode),Object.keys(e.fromMode||{}).forEach(t=>{Ku[t]||(Ku[t]={}),Ku[t][e.mode]=e.fromMode[t]}),e.ranges||(e.ranges={}),e.difference||(e.difference={}),e.channels.forEach(t=>{if(e.ranges[t]===void 0&&(e.ranges[t]=[0,1]),!e.interpolate[t])throw new Error(`Missing interpolator for: ${t}`);typeof e.interpolate[t]=="function"&&(e.interpolate[t]={use:e.interpolate[t]}),e.interpolate[t].fixup||(e.interpolate[t].fixup=Nde)}),tL[e.mode]=e,(e.parse||[]).forEach(t=>{rL(t,e.mode)}),Ji(e.mode)),xo=e=>tL[e],rL=(e,t)=>{if(typeof e=="string"){if(!t)throw new Error("'mode' required when 'parser' is a string");MT[e]=t}else typeof e=="function"&&Op.indexOf(e)<0&&Op.push(e)},Vde=e=>{if(typeof e=="string")delete MT[e];else if(typeof e=="function"){let t=Op.indexOf(e);t>0&&Op.splice(t,1)}},tT=/[^\x00-\x7F]|[a-zA-Z_]/,Ude=/[^\x00-\x7F]|[-\w]/,Ot={Function:"function",Ident:"ident",Number:"number",Percentage:"percentage",ParenClose:")",None:"none",Hue:"hue",Alpha:"alpha"},Sr=0;function j_(e){let t=e[Sr],r=e[Sr+1];return t==="-"||t==="+"?/\d/.test(r)||r==="."&&/\d/.test(e[Sr+2]):t==="."?/\d/.test(r):/\d/.test(t)}function rT(e){if(Sr>=e.length)return!1;let t=e[Sr];if(tT.test(t))return!0;if(t==="-"){if(e.length-Sr<2)return!1;let r=e[Sr+1];return!!(r==="-"||tT.test(r))}return!1}var Gde={deg:1,rad:180/Math.PI,grad:9/10,turn:360};function _v(e){let t="";if((e[Sr]==="-"||e[Sr]==="+")&&(t+=e[Sr++]),t+=$_(e),e[Sr]==="."&&/\d/.test(e[Sr+1])&&(t+=e[Sr++]+$_(e)),(e[Sr]==="e"||e[Sr]==="E")&&((e[Sr+1]==="-"||e[Sr+1]==="+")&&/\d/.test(e[Sr+2])?t+=e[Sr++]+e[Sr++]+$_(e):/\d/.test(e[Sr+1])&&(t+=e[Sr++]+$_(e))),rT(e)){let r=Y_(e);return r==="deg"||r==="rad"||r==="turn"||r==="grad"?{type:Ot.Hue,value:t*Gde[r]}:void 0}return e[Sr]==="%"?(Sr++,{type:Ot.Percentage,value:+t}):{type:Ot.Number,value:+t}}function $_(e){let t="";for(;/\d/.test(e[Sr]);)t+=e[Sr++];return t}function Y_(e){let t="";for(;Sr4)){if(r.length===4){if(r[3].type!==Ot.Alpha)return;r[3]=r[3].value}return r.length===3&&r.push({type:Ot.None,value:void 0}),r.every(a=>a.type!==Ot.Alpha)?r:void 0}}function Zde(e,t){e._i=0;let r=e[e._i++];if(!r||r.type!==Ot.Function)return;let i=iL(e,t);if(i)return i.unshift(r.value),i}var Yde=e=>{if(typeof e!="string")return;let t=$de(e),r=t?Zde(t,!0):void 0,i,a=0,n=Op.length;for(;ae==="transparent"?{mode:"rgb",r:0,g:0,b:0,alpha:0}:void 0,oL=Xde,I0=(e,t,r)=>e+r*(t-e),Kde=(e,t,r)=>(r-e)/(t-e),iT=(e,t,r,i,a,n)=>I0(I0(e,t,a),I0(r,i,a),n),Jde=(e,t,r,i,a,n,o,s,l,u,c)=>I0(iT(e,t,r,i,l,u),iT(a,n,o,s,l,u),c),Qde=e=>{let t=[];for(let r=0;rt=>{let r=Qde(t);return i=>{let a=i*r.length,n=i>=1?r.length-1:Math.max(Math.floor(a),0),o=r[n];return o===void 0?void 0:e(o[0],o[1],a-n)}},Zt=sL(I0),pn=e=>{let t=!1,r=e.map(i=>i!==void 0?(t=!0,i):1);return t?r:e},epe={mode:"rgb",channels:["r","g","b","alpha"],parse:[nL,QI,eL,JI,oL,"srgb"],serialize:"srgb",interpolate:{r:Zt,g:Zt,b:Zt,alpha:{use:Zt,fixup:pn}},gamut:!0,white:{r:1,g:1,b:1},black:{r:0,g:0,b:0}},R0=epe,PA=(e=0)=>Math.pow(Math.abs(e),563/256)*Math.sign(e),tpe=e=>{let t=PA(e.r),r=PA(e.g),i=PA(e.b),a={mode:"xyz65",x:.5766690429101305*t+.1855582379065463*r+.1882286462349947*i,y:.297344975250536*t+.6273635662554661*r+.0752914584939979*i,z:.0270313613864123*t+.0706888525358272*r+.9913375368376386*i};return e.alpha!==void 0&&(a.alpha=e.alpha),a},aT=tpe,IA=e=>Math.pow(Math.abs(e),256/563)*Math.sign(e),rpe=({x:e,y:t,z:r,alpha:i})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let a={mode:"a98",r:IA(e*2.0415879038107465-t*.5650069742788597-.3447313507783297*r),g:IA(e*-.9692436362808798+t*1.8759675015077206+.0415550574071756*r),b:IA(e*.0134442806320312-t*.1183623922310184+1.0151749943912058*r)};return i!==void 0&&(a.alpha=i),a},nT=rpe,LA=(e=0)=>{let t=Math.abs(e);return t<=.04045?e/12.92:(Math.sign(e)||1)*Math.pow((t+.055)/1.055,2.4)},ipe=({r:e,g:t,b:r,alpha:i})=>{let a={mode:"lrgb",r:LA(e),g:LA(t),b:LA(r)};return i!==void 0&&(a.alpha=i),a},B0=ipe,ape=e=>{let{r:t,g:r,b:i,alpha:a}=B0(e),n={mode:"xyz65",x:.4123907992659593*t+.357584339383878*r+.1804807884018343*i,y:.2126390058715102*t+.715168678767756*r+.0721923153607337*i,z:.0193308187155918*t+.119194779794626*r+.9505321522496607*i};return a!==void 0&&(n.alpha=a),n},jh=ape,zA=(e=0)=>{let t=Math.abs(e);return t>.0031308?(Math.sign(e)||1)*(1.055*Math.pow(t,1/2.4)-.055):e*12.92},npe=({r:e,g:t,b:r,alpha:i},a="rgb")=>{let n={mode:a,r:zA(e),g:zA(t),b:zA(r)};return i!==void 0&&(n.alpha=i),n},q0=npe,ope=({x:e,y:t,z:r,alpha:i})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let a=q0({r:e*3.2409699419045226-t*1.537383177570094-.4986107602930034*r,g:e*-.9692436362808796+t*1.8759675015077204+.0415550574071756*r,b:e*.0556300796969936-t*.2039769588889765+1.0569715142428784*r});return i!==void 0&&(a.alpha=i),a},$h=ope,spe=Gr(nr({},R0),{mode:"a98",parse:["a98-rgb"],serialize:"a98-rgb",fromMode:{rgb:e=>nT(jh(e)),xyz65:nT},toMode:{rgb:e=>$h(aT(e)),xyz65:aT}}),lL=spe,lpe=e=>(e=e%360)<0?e+360:e,ro=lpe,ix=(e,t)=>e.map((r,i,a)=>{if(r===void 0)return r;let n=ro(r);return i===0||e[i-1]===void 0?n:t(n-ro(a[i-1]))}).reduce((r,i)=>!r.length||i===void 0||r[r.length-1]===void 0?(r.push(i),r):(r.push(i+r[r.length-1]),r),[]),Ju=e=>ix(e,t=>Math.abs(t)<=180?t:t-360*Math.sign(t)),upe=e=>ix(e,t=>Math.abs(t)>=180||t===0?t:t-360*Math.sign(t)),cpe=e=>ix(e,t=>t>=0?t:t+360),hpe=e=>ix(e,t=>t<=0?t:t-360),Nn=[-.14861,1.78277,-.29227,-.90649,1.97294,0],fpe=Math.PI/180,dpe=180/Math.PI,NI=Nn[3]*Nn[4],VI=Nn[1]*Nn[4],UI=Nn[1]*Nn[2]-Nn[0]*Nn[3],ppe=({r:e,g:t,b:r,alpha:i})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let a=(UI*r+e*NI-t*VI)/(UI+NI-VI),n=r-a,o=(Nn[4]*(t-a)-Nn[2]*n)/Nn[3],s={mode:"cubehelix",l:a,s:a===0||a===1?void 0:Math.sqrt(n*n+o*o)/(Nn[4]*a*(1-a))};return s.s&&(s.h=Math.atan2(o,n)*dpe-120),i!==void 0&&(s.alpha=i),s},uL=ppe,mpe=({h:e,s:t,l:r,alpha:i})=>{let a={mode:"rgb"};e=(e===void 0?0:e+120)*fpe,r===void 0&&(r=0);let n=t===void 0?0:t*r*(1-r),o=Math.cos(e),s=Math.sin(e);return a.r=r+n*(Nn[0]*o+Nn[1]*s),a.g=r+n*(Nn[2]*o+Nn[3]*s),a.b=r+n*(Nn[4]*o+Nn[5]*s),i!==void 0&&(a.alpha=i),a},cL=mpe,Tv=(e,t)=>{if(e.h===void 0||t.h===void 0||!e.s||!t.s)return 0;let r=ro(e.h),i=ro(t.h),a=Math.sin((i-r+360)/2*Math.PI/180);return 2*Math.sqrt(e.s*t.s)*a},hL=(e,t)=>{if(e.h===void 0||t.h===void 0)return 0;let r=ro(e.h),i=ro(t.h);return Math.abs(i-r)>180?r-(i-360*Math.sign(i-r)):i-r},Mv=(e,t)=>{if(e.h===void 0||t.h===void 0||!e.c||!t.c)return 0;let r=ro(e.h),i=ro(t.h),a=Math.sin((i-r+360)/2*Math.PI/180);return 2*Math.sqrt(e.c*t.c)*a},Np=(e="rgb",t=[1,1,1,0])=>{let r=xo(e),i=r.channels,a=r.difference,n=Ji(e);return(o,s)=>{let l=n(o),u=n(s);return Math.sqrt(i.reduce((c,h,f)=>{let d=a[h]?a[h](l,u):l[h]-u[h];return c+(t[f]||0)*Math.pow(isNaN(d)?0:d,2)},0))}},vpe=()=>Np("lab65"),gpe=(e=1,t=.045,r=.015)=>{let i=Ji("lab65");return(a,n)=>{let o=i(a),s=i(n),l=o.l,u=o.a,c=o.b,h=Math.sqrt(u*u+c*c),f=s.l,d=s.a,p=s.b,m=Math.sqrt(d*d+p*p),g=Math.pow(l-f,2),y=Math.pow(h-m,2),x=Math.pow(u-d,2)+Math.pow(c-p,2)-y;return Math.sqrt(g/Math.pow(e,2)+y/Math.pow(1+t*h,2)+x/Math.pow(1+r*h,2))}},ype=(e=1,t=1,r=1)=>{let i=Ji("lab65");return(a,n)=>{let o=i(a),s=i(n),l=o.l,u=o.a,c=o.b,h=Math.sqrt(u*u+c*c),f=s.l,d=s.a,p=s.b,m=Math.sqrt(d*d+p*p),g=(h+m)/2,y=.5*(1-Math.sqrt(Math.pow(g,7)/(Math.pow(g,7)+Math.pow(25,7)))),x=u*(1+y),w=d*(1+y),_=Math.sqrt(x*x+c*c),A=Math.sqrt(w*w+p*p),T=Math.abs(x)+Math.abs(c)===0?0:Math.atan2(c,x);T+=(T<0)*2*Math.PI;let M=Math.abs(w)+Math.abs(p)===0?0:Math.atan2(p,w);M+=(M<0)*2*Math.PI;let S=f-l,k=A-_,P=_*A===0?0:M-T;P-=(P>Math.PI)*2*Math.PI,P+=(P<-Math.PI)*2*Math.PI;let I=2*Math.sqrt(_*A)*Math.sin(P/2),B=(l+f)/2,L=(_+A)/2,z;_*A===0?z=T+M:(z=(T+M)/2,z-=(Math.abs(T-M)>Math.PI)*Math.PI,z+=(z<0)*2*Math.PI);let O=Math.pow(B-50,2),V=1-.17*Math.cos(z-Math.PI/6)+.24*Math.cos(2*z)+.32*Math.cos(3*z+Math.PI/30)-.2*Math.cos(4*z-63*Math.PI/180),$=1+.015*O/Math.sqrt(20+O),j=1+.045*L,H=1+.015*L*V,Z=30*Math.PI/180*Math.exp(-1*Math.pow((180/Math.PI*z-275)/25,2)),W=2*Math.sqrt(Math.pow(L,7)/(Math.pow(L,7)+Math.pow(25,7))),le=-1*Math.sin(2*Z)*W;return Math.sqrt(Math.pow(S/(e*$),2)+Math.pow(k/(t*j),2)+Math.pow(I/(r*H),2)+le*k/(t*j)*I/(r*H))}},_pe=(e=1,t=1)=>{let r=Ji("lab65");return(i,a)=>{let n=r(i),o=n.l,s=n.a,l=n.b,u=Math.sqrt(s*s+l*l),c=Math.atan2(l,s);c=c+2*Math.PI*(c<0);let h=r(a),f=h.l,d=h.a,p=h.b,m=Math.sqrt(d*d+p*p),g=Math.pow(o-f,2),y=Math.pow(u-m,2),x=Math.pow(s-d,2)+Math.pow(l-p,2)-y,w=Math.sqrt(Math.pow(u,4)/(Math.pow(u,4)+1900)),_=c>=164/180*Math.PI&&c<=345/180*Math.PI?.56+Math.abs(.2*Math.cos(c+168/180*Math.PI)):.36+Math.abs(.4*Math.cos(c+35/180*Math.PI)),A=o<16?.511:.040975*o/(1+.01765*o),T=.0638*u/(1+.0131*u)+.638,M=T*(w*_+1-w);return Math.sqrt(g/Math.pow(e*A,2)+y/Math.pow(t*T,2)+x/Math.pow(M,2))}},xpe=()=>{let e=Ji("lab65");return(t,r)=>{let i=e(t),a=e(r),n=i.l-a.l,o=i.a-a.a,s=i.b-a.b;return Math.abs(n)+Math.sqrt(o*o+s*s)}},bpe=()=>Np("yiq",[.5053,.299,.1957]),wpe=()=>Np("itp",[518400,129600,518400]),Qu=e=>{let t=e.reduce((i,a)=>{if(a!==void 0){let n=a*Math.PI/180;i.sin+=Math.sin(n),i.cos+=Math.cos(n)}return i},{sin:0,cos:0}),r=Math.atan2(t.sin,t.cos)*180/Math.PI;return r<0?360+r:r},fL=e=>{let t=e.filter(r=>r!==void 0);return t.length?t.reduce((r,i)=>r+i,0)/t.length:void 0},RA=e=>typeof e=="function";function Ape(e,t="rgb",r){let i=xo(t),a=e.map(Ji(t));return i.channels.reduce((n,o)=>{let s=a.map(l=>l[o]).filter(l=>l!==void 0);if(s.length){let l;RA(r)?l=r:r&&RA(r[o])?l=r[o]:i.average&&RA(i.average[o])?l=i.average[o]:l=fL,n[o]=l(s,o)}return n},{mode:t})}var Tpe={mode:"cubehelix",channels:["h","s","l","alpha"],parse:["--cubehelix"],serialize:"--cubehelix",ranges:{h:[0,360],s:[0,4.614],l:[0,1]},fromMode:{rgb:uL},toMode:{rgb:cL},interpolate:{h:{use:Zt,fixup:Ju},s:Zt,l:Zt,alpha:{use:Zt,fixup:pn}},difference:{h:Tv},average:{h:Qu}},dL=Tpe,Mpe=({l:e,a:t,b:r,alpha:i},a="lch")=>{t===void 0&&(t=0),r===void 0&&(r=0);let n=Math.sqrt(t*t+r*r),o={mode:a,l:e,c:n};return n&&(o.h=ro(Math.atan2(r,t)*180/Math.PI)),i!==void 0&&(o.alpha=i),o},jc=Mpe,Dpe=({l:e,c:t,h:r,alpha:i},a="lab")=>{r===void 0&&(r=0);let n={mode:a,l:e,a:t?t*Math.cos(r/180*Math.PI):0,b:t?t*Math.sin(r/180*Math.PI):0};return i!==void 0&&(n.alpha=i),n},$c=Dpe,pL=Math.pow(29,3)/Math.pow(3,3),mL=Math.pow(6,3)/Math.pow(29,3),dn={X:.3457/.3585,Y:1,Z:(1-.3457-.3585)/.3585},Bp={X:.3127/.329,Y:1,Z:(1-.3127-.329)/.329},oJe=Math.pow(29,3)/Math.pow(3,3),sJe=Math.pow(6,3)/Math.pow(29,3),BA=e=>Math.pow(e,3)>mL?Math.pow(e,3):(116*e-16)/pL,Spe=({l:e,a:t,b:r,alpha:i})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let a=(e+16)/116,n=t/500+a,o=a-r/200,s={mode:"xyz65",x:BA(n)*Bp.X,y:BA(a)*Bp.Y,z:BA(o)*Bp.Z};return i!==void 0&&(s.alpha=i),s},DT=Spe,Epe=e=>$h(DT(e)),Dv=Epe,qA=e=>e>mL?Math.cbrt(e):(pL*e+16)/116,kpe=({x:e,y:t,z:r,alpha:i})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let a=qA(e/Bp.X),n=qA(t/Bp.Y),o=qA(r/Bp.Z),s={mode:"lab65",l:116*n-16,a:500*(a-n),b:200*(n-o)};return i!==void 0&&(s.alpha=i),s},ST=kpe,Cpe=e=>{let t=ST(jh(e));return e.r===e.b&&e.b===e.g&&(t.a=t.b=0),t},Sv=Cpe,W_=1,vL=1,Av=26/180*Math.PI,X_=Math.cos(Av),K_=Math.sin(Av),gL=100/Math.log(139/100),Fpe=({l:e,c:t,h:r,alpha:i})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let a={mode:"lab65",l:(Math.exp(e*W_/gL)-1)/.0039},n=(Math.exp(.0435*t*vL*W_)-1)/.075,o=n*Math.cos(r/180*Math.PI-Av),s=n*Math.sin(r/180*Math.PI-Av);return a.a=o*X_-s/.83*K_,a.b=o*K_+s/.83*X_,i!==void 0&&(a.alpha=i),a},J_=Fpe,Ppe=({l:e,a:t,b:r,alpha:i})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let a=t*X_+r*K_,n=.83*(r*X_-t*K_),o=Math.sqrt(a*a+n*n),s={mode:"dlch",l:gL/W_*Math.log(1+.0039*e),c:Math.log(1+.075*o)/(.0435*vL*W_)};return s.c&&(s.h=ro((Math.atan2(n,a)+Av)/Math.PI*180)),i!==void 0&&(s.alpha=i),s},Q_=Ppe,GI=e=>J_(jc(e,"dlch")),jI=e=>$c(Q_(e),"dlab"),Ipe={mode:"dlab",parse:["--din99o-lab"],serialize:"--din99o-lab",toMode:{lab65:GI,rgb:e=>Dv(GI(e))},fromMode:{lab65:jI,rgb:e=>jI(Sv(e))},channels:["l","a","b","alpha"],ranges:{l:[0,100],a:[-40.09,45.501],b:[-40.469,44.344]},interpolate:{l:Zt,a:Zt,b:Zt,alpha:{use:Zt,fixup:pn}}},yL=Ipe,Lpe={mode:"dlch",parse:["--din99o-lch"],serialize:"--din99o-lch",toMode:{lab65:J_,dlab:e=>$c(e,"dlab"),rgb:e=>Dv(J_(e))},fromMode:{lab65:Q_,dlab:e=>jc(e,"dlch"),rgb:e=>Q_(Sv(e))},channels:["l","c","h","alpha"],ranges:{l:[0,100],c:[0,51.484],h:[0,360]},interpolate:{l:Zt,c:Zt,h:{use:Zt,fixup:Ju},alpha:{use:Zt,fixup:pn}},difference:{h:Mv},average:{h:Qu}},_L=Lpe;function xL({h:e,s:t,i:r,alpha:i}){e=ro(e!==void 0?e:0),t===void 0&&(t=0),r===void 0&&(r=0);let a=Math.abs(e/60%2-1),n;switch(Math.floor(e/60)){case 0:n={r:r*(1+t*(3/(2-a)-1)),g:r*(1+t*(3*(1-a)/(2-a)-1)),b:r*(1-t)};break;case 1:n={r:r*(1+t*(3*(1-a)/(2-a)-1)),g:r*(1+t*(3/(2-a)-1)),b:r*(1-t)};break;case 2:n={r:r*(1-t),g:r*(1+t*(3/(2-a)-1)),b:r*(1+t*(3*(1-a)/(2-a)-1))};break;case 3:n={r:r*(1-t),g:r*(1+t*(3*(1-a)/(2-a)-1)),b:r*(1+t*(3/(2-a)-1))};break;case 4:n={r:r*(1+t*(3*(1-a)/(2-a)-1)),g:r*(1-t),b:r*(1+t*(3/(2-a)-1))};break;case 5:n={r:r*(1+t*(3/(2-a)-1)),g:r*(1-t),b:r*(1+t*(3*(1-a)/(2-a)-1))};break;default:n={r:r*(1-t),g:r*(1-t),b:r*(1-t)}}return n.mode="rgb",i!==void 0&&(n.alpha=i),n}function bL({r:e,g:t,b:r,alpha:i}){e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let a=Math.max(e,t,r),n=Math.min(e,t,r),o={mode:"hsi",s:e+t+r===0?0:1-3*n/(e+t+r),i:(e+t+r)/3};return a-n!==0&&(o.h=(a===e?(t-r)/(a-n)+(t{switch(t){case"deg":return+e;case"rad":return e/Math.PI*180;case"grad":return e/10*9;case"turn":return e*360}},Bpe=Rpe,qpe=new RegExp(`^hsla?\\(\\s*${Lde}${qp}${bv}${qp}${bv}\\s*(?:,\\s*${TT}\\s*)?\\)$`),Ope=e=>{let t=e.match(qpe);if(!t)return;let r={mode:"hsl"};return t[3]!==void 0?r.h=+t[3]:t[1]!==void 0&&t[2]!==void 0&&(r.h=Bpe(t[1],t[2])),t[4]!==void 0&&(r.s=Math.min(Math.max(0,t[4]/100),1)),t[5]!==void 0&&(r.l=Math.min(Math.max(0,t[5]/100),1)),t[6]!==void 0?r.alpha=Math.max(0,Math.min(1,t[6]/100)):t[7]!==void 0&&(r.alpha=Math.max(0,Math.min(1,+t[7]))),r},ML=Ope;function Npe(e,t){if(!t||t[0]!=="hsl"&&t[0]!=="hsla")return;let r={mode:"hsl"},[,i,a,n,o]=t;if(i.type!==Ot.None){if(i.type===Ot.Percentage)return;r.h=i.value}if(a.type!==Ot.None){if(a.type===Ot.Hue)return;r.s=a.value/100}if(n.type!==Ot.None){if(n.type===Ot.Hue)return;r.l=n.value/100}return o.type!==Ot.None&&(r.alpha=Math.min(1,Math.max(0,o.type===Ot.Number?o.value:o.value/100))),r}var DL=Npe,Vpe={mode:"hsl",toMode:{rgb:AL},fromMode:{rgb:TL},channels:["h","s","l","alpha"],ranges:{h:[0,360]},gamut:"rgb",parse:[DL,ML],serialize:e=>`hsl(${e.h!==void 0?e.h:"none"} ${e.s!==void 0?e.s*100+"%":"none"} ${e.l!==void 0?e.l*100+"%":"none"}${e.alpha<1?` / ${e.alpha}`:""})`,interpolate:{h:{use:Zt,fixup:Ju},s:Zt,l:Zt,alpha:{use:Zt,fixup:pn}},difference:{h:Tv},average:{h:Qu}},ET=Vpe;function kT({h:e,s:t,v:r,alpha:i}){e=ro(e!==void 0?e:0),t===void 0&&(t=0),r===void 0&&(r=0);let a=Math.abs(e/60%2-1),n;switch(Math.floor(e/60)){case 0:n={r,g:r*(1-t*a),b:r*(1-t)};break;case 1:n={r:r*(1-t*a),g:r,b:r*(1-t)};break;case 2:n={r:r*(1-t),g:r,b:r*(1-t*a)};break;case 3:n={r:r*(1-t),g:r*(1-t*a),b:r};break;case 4:n={r:r*(1-t*a),g:r*(1-t),b:r};break;case 5:n={r,g:r*(1-t),b:r*(1-t*a)};break;default:n={r:r*(1-t),g:r*(1-t),b:r*(1-t)}}return n.mode="rgb",i!==void 0&&(n.alpha=i),n}function CT({r:e,g:t,b:r,alpha:i}){e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let a=Math.max(e,t,r),n=Math.min(e,t,r),o={mode:"hsv",s:a===0?0:1-n/a,v:a};return a-n!==0&&(o.h=(a===e?(t-r)/(a-n)+(t1){let a=t+r;t/=a,r/=a}return kT({h:e,s:r===1?1:1-t/(1-r),v:1-r,alpha:i})}function EL(e){let t=CT(e);if(t===void 0)return;let r=t.s!==void 0?t.s:0,i=t.v!==void 0?t.v:0,a={mode:"hwb",w:(1-r)*i,b:1-i};return t.h!==void 0&&(a.h=t.h),t.alpha!==void 0&&(a.alpha=t.alpha),a}function Gpe(e,t){if(!t||t[0]!=="hwb")return;let r={mode:"hwb"},[,i,a,n,o]=t;if(i.type!==Ot.None){if(i.type===Ot.Percentage)return;r.h=i.value}if(a.type!==Ot.None){if(a.type===Ot.Hue)return;r.w=a.value/100}if(n.type!==Ot.None){if(n.type===Ot.Hue)return;r.b=n.value/100}return o.type!==Ot.None&&(r.alpha=Math.min(1,Math.max(0,o.type===Ot.Number?o.value:o.value/100))),r}var kL=Gpe,jpe={mode:"hwb",toMode:{rgb:SL},fromMode:{rgb:EL},channels:["h","w","b","alpha"],ranges:{h:[0,360]},gamut:"rgb",parse:[kL],serialize:e=>`hwb(${e.h!==void 0?e.h:"none"} ${e.w!==void 0?e.w*100+"%":"none"} ${e.b!==void 0?e.b*100+"%":"none"}${e.alpha<1?` / ${e.alpha}`:""})`,interpolate:{h:{use:Zt,fixup:Ju},w:Zt,b:Zt,alpha:{use:Zt,fixup:pn}},difference:{h:hL},average:{h:Qu}},CL=jpe,FL=203,ax=.1593017578125,PL=78.84375,nx=.8359375,ox=18.8515625,sx=18.6875;function OA(e){if(e<0)return 0;let t=Math.pow(e,1/PL);return 1e4*Math.pow(Math.max(0,t-nx)/(ox-sx*t),1/ax)}function NA(e){if(e<0)return 0;let t=Math.pow(e/1e4,ax);return Math.pow((nx+ox*t)/(1+sx*t),PL)}var VA=e=>Math.max(e/FL,0),$pe=({i:e,t,p:r,alpha:i})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let a=OA(e+.008609037037932761*t+.11102962500302593*r),n=OA(e-.00860903703793275*t-.11102962500302599*r),o=OA(e+.5600313357106791*t-.32062717498731885*r),s={mode:"xyz65",x:VA(2.070152218389422*a-1.3263473389671556*n+.2066510476294051*o),y:VA(.3647385209748074*a+.680566024947227*n-.0453045459220346*o),z:VA(-.049747207535812*a-.0492609666966138*n+1.1880659249923042*o)};return i!==void 0&&(s.alpha=i),s},oT=$pe,UA=(e=0)=>Math.max(e*FL,0),Hpe=({x:e,y:t,z:r,alpha:i})=>{let a=UA(e),n=UA(t),o=UA(r),s=NA(.3592832590121217*a+.6976051147779502*n-.0358915932320289*o),l=NA(-.1920808463704995*a+1.1004767970374323*n+.0753748658519118*o),u=NA(.0070797844607477*a+.0748396662186366*n+.8433265453898765*o),c=.5*s+.5*l,h=1.61376953125*s-3.323486328125*l+1.709716796875*u,f=4.378173828125*s-4.24560546875*l-.132568359375*u,d={mode:"itp",i:c,t:h,p:f};return i!==void 0&&(d.alpha=i),d},sT=Hpe,Zpe={mode:"itp",channels:["i","t","p","alpha"],parse:["--ictcp"],serialize:"--ictcp",toMode:{xyz65:oT,rgb:e=>$h(oT(e))},fromMode:{xyz65:sT,rgb:e=>sT(jh(e))},ranges:{i:[0,.581],t:[-.369,.272],p:[-.164,.331]},interpolate:{i:Zt,t:Zt,p:Zt,alpha:{use:Zt,fixup:pn}}},IL=Zpe,Ype=134.03437499999998,Wpe=16295499532821565e-27,GA=e=>{if(e<0)return 0;let t=Math.pow(e/1e4,ax);return Math.pow((nx+ox*t)/(1+sx*t),Ype)},jA=(e=0)=>Math.max(e*203,0),Xpe=({x:e,y:t,z:r,alpha:i})=>{e=jA(e),t=jA(t),r=jA(r);let a=1.15*e-.15*r,n=.66*t+.34*e,o=GA(.41478972*a+.579999*n+.014648*r),s=GA(-.20151*a+1.120649*n+.0531008*r),l=GA(-.0166008*a+.2648*n+.6684799*r),u=(o+s)/2,c={mode:"jab",j:.44*u/(1-.56*u)-Wpe,a:3.524*o-4.066708*s+.542708*l,b:.199076*o+1.096799*s-1.295875*l};return i!==void 0&&(c.alpha=i),c},PT=Xpe,Kpe=134.03437499999998,$I=16295499532821565e-27,$A=e=>{if(e<0)return 0;let t=Math.pow(e,1/Kpe);return 1e4*Math.pow((nx-t)/(sx*t-ox),1/ax)},HA=e=>e/203,Jpe=({j:e,a:t,b:r,alpha:i})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let a=(e+$I)/(.44+.56*(e+$I)),n=$A(a+.13860504*t+.058047316*r),o=$A(a-.13860504*t-.058047316*r),s=$A(a-.096019242*t-.8118919*r),l={mode:"xyz65",x:HA(1.661373024652174*n-.914523081304348*o+.23136208173913045*s),y:HA(-.3250758611844533*n+1.571847026732543*o-.21825383453227928*s),z:HA(-.090982811*n-.31272829*o+1.5227666*s)};return i!==void 0&&(l.alpha=i),l},IT=Jpe,Qpe=e=>{let t=PT(jh(e));return e.r===e.b&&e.b===e.g&&(t.a=t.b=0),t},LT=Qpe,e1e=e=>$h(IT(e)),zT=e1e,t1e={mode:"jab",channels:["j","a","b","alpha"],parse:["--jzazbz"],serialize:"--jzazbz",fromMode:{rgb:LT,xyz65:PT},toMode:{rgb:zT,xyz65:IT},ranges:{j:[0,.222],a:[-.109,.129],b:[-.185,.134]},interpolate:{j:Zt,a:Zt,b:Zt,alpha:{use:Zt,fixup:pn}}},LL=t1e,r1e=({j:e,a:t,b:r,alpha:i})=>{t===void 0&&(t=0),r===void 0&&(r=0);let a=Math.sqrt(t*t+r*r),n={mode:"jch",j:e,c:a};return a&&(n.h=ro(Math.atan2(r,t)*180/Math.PI)),i!==void 0&&(n.alpha=i),n},lT=r1e,i1e=({j:e,c:t,h:r,alpha:i})=>{r===void 0&&(r=0);let a={mode:"jab",j:e,a:t?t*Math.cos(r/180*Math.PI):0,b:t?t*Math.sin(r/180*Math.PI):0};return i!==void 0&&(a.alpha=i),a},uT=i1e,a1e={mode:"jch",parse:["--jzczhz"],serialize:"--jzczhz",toMode:{jab:uT,rgb:e=>zT(uT(e))},fromMode:{rgb:e=>lT(LT(e)),jab:lT},channels:["j","c","h","alpha"],ranges:{j:[0,.221],c:[0,.19],h:[0,360]},interpolate:{h:{use:Zt,fixup:Ju},c:Zt,j:Zt,alpha:{use:Zt,fixup:pn}},difference:{h:Mv},average:{h:Qu}},zL=a1e,lx=Math.pow(29,3)/Math.pow(3,3),RT=Math.pow(6,3)/Math.pow(29,3),ZA=e=>Math.pow(e,3)>RT?Math.pow(e,3):(116*e-16)/lx,n1e=({l:e,a:t,b:r,alpha:i})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let a=(e+16)/116,n=t/500+a,o=a-r/200,s={mode:"xyz50",x:ZA(n)*dn.X,y:ZA(a)*dn.Y,z:ZA(o)*dn.Z};return i!==void 0&&(s.alpha=i),s},ux=n1e,o1e=({x:e,y:t,z:r,alpha:i})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let a=q0({r:e*3.1341359569958707-t*1.6173863321612538-.4906619460083532*r,g:e*-.978795502912089+t*1.916254567259524+.03344273116131949*r,b:e*.07195537988411677-t*.2289768264158322+1.405386058324125*r});return i!==void 0&&(a.alpha=i),a},Vp=o1e,s1e=e=>Vp(ux(e)),BT=s1e,l1e=e=>{let{r:t,g:r,b:i,alpha:a}=B0(e),n={mode:"xyz50",x:.436065742824811*t+.3851514688337912*r+.14307845442264197*i,y:.22249319175623702*t+.7168870538238823*r+.06061979053616537*i,z:.013923904500943465*t+.09708128566574634*r+.7140993584005155*i};return a!==void 0&&(n.alpha=a),n},Up=l1e,YA=e=>e>RT?Math.cbrt(e):(lx*e+16)/116,u1e=({x:e,y:t,z:r,alpha:i})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let a=YA(e/dn.X),n=YA(t/dn.Y),o=YA(r/dn.Z),s={mode:"lab",l:116*n-16,a:500*(a-n),b:200*(n-o)};return i!==void 0&&(s.alpha=i),s},cx=u1e,c1e=e=>{let t=cx(Up(e));return e.r===e.b&&e.b===e.g&&(t.a=t.b=0),t},qT=c1e;function h1e(e,t){if(!t||t[0]!=="lab")return;let r={mode:"lab"},[,i,a,n,o]=t;if(!(i.type===Ot.Hue||a.type===Ot.Hue||n.type===Ot.Hue))return i.type!==Ot.None&&(r.l=Math.min(Math.max(0,i.value),100)),a.type!==Ot.None&&(r.a=a.type===Ot.Number?a.value:a.value*125/100),n.type!==Ot.None&&(r.b=n.type===Ot.Number?n.value:n.value*125/100),o.type!==Ot.None&&(r.alpha=Math.min(1,Math.max(0,o.type===Ot.Number?o.value:o.value/100))),r}var RL=h1e,f1e={mode:"lab",toMode:{xyz50:ux,rgb:BT},fromMode:{xyz50:cx,rgb:qT},channels:["l","a","b","alpha"],ranges:{l:[0,100],a:[-125,125],b:[-125,125]},parse:[RL],serialize:e=>`lab(${e.l!==void 0?e.l:"none"} ${e.a!==void 0?e.a:"none"} ${e.b!==void 0?e.b:"none"}${e.alpha<1?` / ${e.alpha}`:""})`,interpolate:{l:Zt,a:Zt,b:Zt,alpha:{use:Zt,fixup:pn}}},hx=f1e,d1e=Gr(nr({},hx),{mode:"lab65",parse:["--lab-d65"],serialize:"--lab-d65",toMode:{xyz65:DT,rgb:Dv},fromMode:{xyz65:ST,rgb:Sv},ranges:{l:[0,100],a:[-125,125],b:[-125,125]}}),BL=d1e;function p1e(e,t){if(!t||t[0]!=="lch")return;let r={mode:"lch"},[,i,a,n,o]=t;if(i.type!==Ot.None){if(i.type===Ot.Hue)return;r.l=Math.min(Math.max(0,i.value),100)}if(a.type!==Ot.None&&(r.c=Math.max(0,a.type===Ot.Number?a.value:a.value*150/100)),n.type!==Ot.None){if(n.type===Ot.Percentage)return;r.h=n.value}return o.type!==Ot.None&&(r.alpha=Math.min(1,Math.max(0,o.type===Ot.Number?o.value:o.value/100))),r}var qL=p1e,m1e={mode:"lch",toMode:{lab:$c,rgb:e=>BT($c(e))},fromMode:{rgb:e=>jc(qT(e)),lab:jc},channels:["l","c","h","alpha"],ranges:{l:[0,100],c:[0,150],h:[0,360]},parse:[qL],serialize:e=>`lch(${e.l!==void 0?e.l:"none"} ${e.c!==void 0?e.c:"none"} ${e.h!==void 0?e.h:"none"}${e.alpha<1?` / ${e.alpha}`:""})`,interpolate:{h:{use:Zt,fixup:Ju},c:Zt,l:Zt,alpha:{use:Zt,fixup:pn}},difference:{h:Mv},average:{h:Qu}},fx=m1e,v1e=Gr(nr({},fx),{mode:"lch65",parse:["--lch-d65"],serialize:"--lch-d65",toMode:{lab65:e=>$c(e,"lab65"),rgb:e=>Dv($c(e,"lab65"))},fromMode:{rgb:e=>jc(Sv(e),"lch65"),lab65:e=>jc(e,"lch65")},ranges:{l:[0,100],c:[0,150],h:[0,360]}}),OL=v1e,g1e=({l:e,u:t,v:r,alpha:i})=>{t===void 0&&(t=0),r===void 0&&(r=0);let a=Math.sqrt(t*t+r*r),n={mode:"lchuv",l:e,c:a};return a&&(n.h=ro(Math.atan2(r,t)*180/Math.PI)),i!==void 0&&(n.alpha=i),n},OT=g1e,y1e=({l:e,c:t,h:r,alpha:i})=>{r===void 0&&(r=0);let a={mode:"luv",l:e,u:t?t*Math.cos(r/180*Math.PI):0,v:t?t*Math.sin(r/180*Math.PI):0};return i!==void 0&&(a.alpha=i),a},NT=y1e,NL=(e,t,r)=>4*e/(e+15*t+3*r),VL=(e,t,r)=>9*t/(e+15*t+3*r),_1e=NL(dn.X,dn.Y,dn.Z),x1e=VL(dn.X,dn.Y,dn.Z),b1e=e=>e<=RT?lx*e:116*Math.cbrt(e)-16,w1e=({x:e,y:t,z:r,alpha:i})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let a=b1e(t/dn.Y),n=NL(e,t,r),o=VL(e,t,r);!isFinite(n)||!isFinite(o)?a=n=o=0:(n=13*a*(n-_1e),o=13*a*(o-x1e));let s={mode:"luv",l:a,u:n,v:o};return i!==void 0&&(s.alpha=i),s},ex=w1e,A1e=(e,t,r)=>4*e/(e+15*t+3*r),T1e=(e,t,r)=>9*t/(e+15*t+3*r),M1e=A1e(dn.X,dn.Y,dn.Z),D1e=T1e(dn.X,dn.Y,dn.Z),S1e=({l:e,u:t,v:r,alpha:i})=>{if(e===void 0&&(e=0),e===0)return{mode:"xyz50",x:0,y:0,z:0};t===void 0&&(t=0),r===void 0&&(r=0);let a=t/(13*e)+M1e,n=r/(13*e)+D1e,o=dn.Y*(e<=8?e/lx:Math.pow((e+16)/116,3)),s=o*(9*a)/(4*n),l=o*(12-3*a-20*n)/(4*n),u={mode:"xyz50",x:s,y:o,z:l};return i!==void 0&&(u.alpha=i),u},tx=S1e,E1e=e=>OT(ex(Up(e))),k1e=e=>Vp(tx(NT(e))),C1e={mode:"lchuv",toMode:{luv:NT,rgb:k1e},fromMode:{rgb:E1e,luv:OT},channels:["l","c","h","alpha"],parse:["--lchuv"],serialize:"--lchuv",ranges:{l:[0,100],c:[0,176.956],h:[0,360]},interpolate:{h:{use:Zt,fixup:Ju},c:Zt,l:Zt,alpha:{use:Zt,fixup:pn}},difference:{h:Mv},average:{h:Qu}},UL=C1e,F1e=Gr(nr({},R0),{mode:"lrgb",toMode:{rgb:q0},fromMode:{rgb:B0},parse:["srgb-linear"],serialize:"srgb-linear"}),GL=F1e,P1e={mode:"luv",toMode:{xyz50:tx,rgb:e=>Vp(tx(e))},fromMode:{xyz50:ex,rgb:e=>ex(Up(e))},channels:["l","u","v","alpha"],parse:["--luv"],serialize:"--luv",ranges:{l:[0,100],u:[-84.936,175.042],v:[-125.882,87.243]},interpolate:{l:Zt,u:Zt,v:Zt,alpha:{use:Zt,fixup:pn}}},jL=P1e,I1e=({r:e,g:t,b:r,alpha:i})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let a=Math.cbrt(.412221469470763*e+.5363325372617348*t+.0514459932675022*r),n=Math.cbrt(.2119034958178252*e+.6806995506452344*t+.1073969535369406*r),o=Math.cbrt(.0883024591900564*e+.2817188391361215*t+.6299787016738222*r),s={mode:"oklab",l:.210454268309314*a+.7936177747023054*n-.0040720430116193*o,a:1.9779985324311684*a-2.42859224204858*n+.450593709617411*o,b:.0259040424655478*a+.7827717124575296*n-.8086757549230774*o};return i!==void 0&&(s.alpha=i),s},VT=I1e,L1e=e=>{let t=VT(B0(e));return e.r===e.b&&e.b===e.g&&(t.a=t.b=0),t},Ev=L1e,z1e=({l:e,a:t,b:r,alpha:i})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let a=Math.pow(e+.3963377773761749*t+.2158037573099136*r,3),n=Math.pow(e-.1055613458156586*t-.0638541728258133*r,3),o=Math.pow(e-.0894841775298119*t-1.2914855480194092*r,3),s={mode:"lrgb",r:4.076741636075957*a-3.3077115392580616*n+.2309699031821044*o,g:-1.2684379732850317*a+2.6097573492876887*n-.3413193760026573*o,b:-.0041960761386756*a-.7034186179359362*n+1.7076146940746117*o};return i!==void 0&&(s.alpha=i),s},Gp=z1e,R1e=e=>q0(Gp(e)),kv=R1e;function cT(e){let i=1.170873786407767;return .5*(i*e-.206+Math.sqrt((i*e-.206)*(i*e-.206)+4*.03*i*e))}function rx(e){return(e*e+.206*e)/(1.170873786407767*(e+.03))}function B1e(e,t){let r,i,a,n,o,s,l,u;-1.88170328*e-.80936493*t>1?(r=1.19086277,i=1.76576728,a=.59662641,n=.75515197,o=.56771245,s=4.0767416621,l=-3.3077115913,u=.2309699292):1.81444104*e-1.19445276*t>1?(r=.73956515,i=-.45954404,a=.08285427,n=.1254107,o=.14503204,s=-1.2684380046,l=2.6097574011,u=-.3413193965):(r=1.35733652,i=-.00915799,a=-1.1513021,n=-.50559606,o=.00692167,s=-.0041960863,l=-.7034186147,u=1.707614701);let c=r+i*e+a*t+n*e*e+o*e*t,h=.3963377774*e+.2158037573*t,f=-.1055613458*e-.0638541728*t,d=-.0894841775*e-1.291485548*t;{let p=1+c*h,m=1+c*f,g=1+c*d,y=p*p*p,x=m*m*m,w=g*g*g,_=3*h*p*p,A=3*f*m*m,T=3*d*g*g,M=6*h*h*p,S=6*f*f*m,k=6*d*d*g,P=s*y+l*x+u*w,I=s*_+l*A+u*T,B=s*M+l*S+u*k;c=c-P*I/(I*I-.5*P*B)}return c}function UT(e,t){let r=B1e(e,t),i=Gp({l:1,a:r*e,b:r*t}),a=Math.cbrt(1/Math.max(i.r,i.g,i.b)),n=a*r;return[a,n]}function q1e(e,t,r,i,a,n=null){n||(n=UT(e,t));let o;if((r-a)*n[1]-(n[0]-a)*i<=0)o=n[1]*a/(i*n[0]+n[1]*(a-r));else{o=n[1]*(a-1)/(i*(n[0]-1)+n[1]*(a-r));{let s=r-a,l=i,u=.3963377774*e+.2158037573*t,c=-.1055613458*e-.0638541728*t,h=-.0894841775*e-1.291485548*t,f=s+l*u,d=s+l*c,p=s+l*h;{let m=a*(1-o)+o*r,g=o*i,y=m+g*u,x=m+g*c,w=m+g*h,_=y*y*y,A=x*x*x,T=w*w*w,M=3*f*y*y,S=3*d*x*x,k=3*p*w*w,P=6*f*f*y,I=6*d*d*x,B=6*p*p*w,L=4.0767416621*_-3.3077115913*A+.2309699292*T-1,z=4.0767416621*M-3.3077115913*S+.2309699292*k,O=4.0767416621*P-3.3077115913*I+.2309699292*B,V=z/(z*z-.5*L*O),$=-L*V,j=-1.2684380046*_+2.6097574011*A-.3413193965*T-1,H=-1.2684380046*M+2.6097574011*S-.3413193965*k,Z=-1.2684380046*P+2.6097574011*I-.3413193965*B,W=H/(H*H-.5*j*Z),le=-j*W,pe=-.0041960863*_-.7034186147*A+1.707614701*T-1,_e=-.0041960863*M-.7034186147*S+1.707614701*k,De=-.0041960863*P-.7034186147*I+1.707614701*B,de=_e/(_e*_e-.5*pe*De),Ce=-pe*de;$=V>=0?$:1e6,le=W>=0?le:1e6,Ce=de>=0?Ce:1e6,o+=Math.min($,Math.min(le,Ce))}}}return o}function GT(e,t,r=null){r||(r=UT(e,t));let i=r[0],a=r[1];return[a/i,a/(1-i)]}function $L(e,t,r){let i=UT(t,r),a=q1e(t,r,e,1,e,i),n=GT(t,r,i),o=.11516993+1/(7.4477897+4.1590124*r+t*(-2.19557347+1.75198401*r+t*(-2.13704948-10.02301043*r+t*(-4.24894561+5.38770819*r+4.69891013*t)))),s=.11239642+1/(1.6132032-.68124379*r+t*(.40370612+.90148123*r+t*(-.27087943+.6122399*r+t*(.00299215-.45399568*r-.14661872*t)))),l=a/Math.min(e*n[0],(1-e)*n[1]),u=e*o,c=(1-e)*s,h=.9*l*Math.sqrt(Math.sqrt(1/(1/(u*u*u*u)+1/(c*c*c*c))));return u=e*.4,c=(1-e)*.8,[Math.sqrt(1/(1/(u*u)+1/(c*c))),h,a]}function hT(e){let t=e.l!==void 0?e.l:0,r=e.a!==void 0?e.a:0,i=e.b!==void 0?e.b:0,a={mode:"okhsl",l:cT(t)};e.alpha!==void 0&&(a.alpha=e.alpha);let n=Math.sqrt(r*r+i*i);if(!n)return a.s=0,a;let[o,s,l]=$L(t,r/n,i/n),u;if(nhT(Ev(e))},toMode:{oklab:fT,rgb:e=>kv(fT(e))}}),HL=O1e;function dT(e){let t=e.l!==void 0?e.l:0,r=e.a!==void 0?e.a:0,i=e.b!==void 0?e.b:0,a=Math.sqrt(r*r+i*i),n=a?r/a:1,o=a?i/a:1,[s,l]=GT(n,o),u=.5,c=1-u/s,h=l/(a+t*l),f=h*t,d=h*a,p=rx(f),m=d*p/f,g=Gp({l:p,a:n*m,b:o*m}),y=Math.cbrt(1/Math.max(g.r,g.g,g.b,0));t=t/y,a=a/y*cT(t)/t,t=cT(t);let x={mode:"okhsv",s:a?(u+l)*d/(l*u+l*c*d):0,v:t?t/f:0};return x.s&&(x.h=ro(Math.atan2(i,r)*180/Math.PI)),e.alpha!==void 0&&(x.alpha=e.alpha),x}function pT(e){let t={mode:"oklab"};e.alpha!==void 0&&(t.alpha=e.alpha);let r=e.h!==void 0?e.h:0,i=e.s!==void 0?e.s:0,a=e.v!==void 0?e.v:0,n=Math.cos(r/180*Math.PI),o=Math.sin(r/180*Math.PI),[s,l]=GT(n,o),u=.5,c=1-u/s,h=1-i*u/(u+l-l*c*i),f=i*l*u/(u+l-l*c*i),d=rx(h),p=f*d/h,m=Gp({l:d,a:n*p,b:o*p}),g=Math.cbrt(1/Math.max(m.r,m.g,m.b,0)),y=rx(a*h),x=f*y/h;return t.l=y*g,t.a=x*n*g,t.b=x*o*g,t}var N1e=Gr(nr({},FT),{mode:"okhsv",channels:["h","s","v","alpha"],parse:["--okhsv"],serialize:"--okhsv",fromMode:{oklab:dT,rgb:e=>dT(Ev(e))},toMode:{oklab:pT,rgb:e=>kv(pT(e))}}),ZL=N1e;function V1e(e,t){if(!t||t[0]!=="oklab")return;let r={mode:"oklab"},[,i,a,n,o]=t;if(!(i.type===Ot.Hue||a.type===Ot.Hue||n.type===Ot.Hue))return i.type!==Ot.None&&(r.l=Math.min(Math.max(0,i.type===Ot.Number?i.value:i.value/100),1)),a.type!==Ot.None&&(r.a=a.type===Ot.Number?a.value:a.value*.4/100),n.type!==Ot.None&&(r.b=n.type===Ot.Number?n.value:n.value*.4/100),o.type!==Ot.None&&(r.alpha=Math.min(1,Math.max(0,o.type===Ot.Number?o.value:o.value/100))),r}var YL=V1e,U1e=Gr(nr({},hx),{mode:"oklab",toMode:{lrgb:Gp,rgb:kv},fromMode:{lrgb:VT,rgb:Ev},ranges:{l:[0,1],a:[-.4,.4],b:[-.4,.4]},parse:[YL],serialize:e=>`oklab(${e.l!==void 0?e.l:"none"} ${e.a!==void 0?e.a:"none"} ${e.b!==void 0?e.b:"none"}${e.alpha<1?` / ${e.alpha}`:""})`}),WL=U1e;function G1e(e,t){if(!t||t[0]!=="oklch")return;let r={mode:"oklch"},[,i,a,n,o]=t;if(i.type!==Ot.None){if(i.type===Ot.Hue)return;r.l=Math.min(Math.max(0,i.type===Ot.Number?i.value:i.value/100),1)}if(a.type!==Ot.None&&(r.c=Math.max(0,a.type===Ot.Number?a.value:a.value*.4/100)),n.type!==Ot.None){if(n.type===Ot.Percentage)return;r.h=n.value}return o.type!==Ot.None&&(r.alpha=Math.min(1,Math.max(0,o.type===Ot.Number?o.value:o.value/100))),r}var XL=G1e,j1e=Gr(nr({},fx),{mode:"oklch",toMode:{oklab:e=>$c(e,"oklab"),rgb:e=>kv($c(e,"oklab"))},fromMode:{rgb:e=>jc(Ev(e),"oklch"),oklab:e=>jc(e,"oklch")},parse:[XL],serialize:e=>`oklch(${e.l!==void 0?e.l:"none"} ${e.c!==void 0?e.c:"none"} ${e.h!==void 0?e.h:"none"}${e.alpha<1?` / ${e.alpha}`:""})`,ranges:{l:[0,1],c:[0,.4],h:[0,360]}}),KL=j1e,$1e=e=>{let{r:t,g:r,b:i,alpha:a}=B0(e),n={mode:"xyz65",x:.486570948648216*t+.265667693169093*r+.1982172852343625*i,y:.2289745640697487*t+.6917385218365062*r+.079286914093745*i,z:0*t+.0451133818589026*r+1.043944368900976*i};return a!==void 0&&(n.alpha=a),n},mT=$1e,H1e=({x:e,y:t,z:r,alpha:i})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let a=q0({r:e*2.4934969119414263-t*.9313836179191242-.402710784450717*r,g:e*-.8294889695615749+t*1.7626640603183465+.0236246858419436*r,b:e*.0358458302437845-t*.0761723892680418+.9568845240076871*r},"p3");return i!==void 0&&(a.alpha=i),a},vT=H1e,Z1e=Gr(nr({},R0),{mode:"p3",parse:["display-p3"],serialize:"display-p3",fromMode:{rgb:e=>vT(jh(e)),xyz65:vT},toMode:{rgb:e=>$h(mT(e)),xyz65:mT}}),JL=Z1e,WA=e=>{let t=Math.abs(e);return t>=1/512?Math.sign(e)*Math.pow(t,1/1.8):16*e},Y1e=({x:e,y:t,z:r,alpha:i})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let a={mode:"prophoto",r:WA(e*1.3457868816471585-t*.2555720873797946-.0511018649755453*r),g:WA(e*-.5446307051249019+t*1.5082477428451466+.0205274474364214*r),b:WA(e*0+t*0+1.2119675456389452*r)};return i!==void 0&&(a.alpha=i),a},gT=Y1e,XA=(e=0)=>{let t=Math.abs(e);return t>=16/512?Math.sign(e)*Math.pow(t,1.8):e/16},W1e=e=>{let t=XA(e.r),r=XA(e.g),i=XA(e.b),a={mode:"xyz50",x:.7977666449006423*t+.1351812974005331*r+.0313477341283922*i,y:.2880748288194013*t+.7118352342418731*r+899369387256e-16*i,z:0*t+0*r+.8251046025104602*i};return e.alpha!==void 0&&(a.alpha=e.alpha),a},yT=W1e,X1e=Gr(nr({},R0),{mode:"prophoto",parse:["prophoto-rgb"],serialize:"prophoto-rgb",fromMode:{xyz50:gT,rgb:e=>gT(Up(e))},toMode:{xyz50:yT,rgb:e=>Vp(yT(e))}}),QL=X1e,HI=1.09929682680944,K1e=.018053968510807,KA=e=>{let t=Math.abs(e);return t>K1e?(Math.sign(e)||1)*(HI*Math.pow(t,.45)-(HI-1)):4.5*e},J1e=({x:e,y:t,z:r,alpha:i})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let a={mode:"rec2020",r:KA(e*1.7166511879712683-t*.3556707837763925-.2533662813736599*r),g:KA(e*-.6666843518324893+t*1.6164812366349395+.0157685458139111*r),b:KA(e*.0176398574453108-t*.0427706132578085+.9421031212354739*r)};return i!==void 0&&(a.alpha=i),a},_T=J1e,ZI=1.09929682680944,Q1e=.018053968510807,JA=(e=0)=>{let t=Math.abs(e);return t{let t=JA(e.r),r=JA(e.g),i=JA(e.b),a={mode:"xyz65",x:.6369580483012911*t+.1446169035862083*r+.1688809751641721*i,y:.262700212011267*t+.6779980715188708*r+.059301716469862*i,z:0*t+.0280726930490874*r+1.0609850577107909*i};return e.alpha!==void 0&&(a.alpha=e.alpha),a},xT=eme,tme=Gr(nr({},R0),{mode:"rec2020",fromMode:{xyz65:_T,rgb:e=>_T(jh(e))},toMode:{xyz65:xT,rgb:e=>$h(xT(e))},parse:["rec2020"],serialize:"rec2020"}),ez=tme,L0=.0037930732552754493,tz=Math.cbrt(L0),QA=e=>Math.cbrt(e)-tz,rme=e=>{let{r:t,g:r,b:i,alpha:a}=B0(e),n=QA(.3*t+.622*r+.078*i+L0),o=QA(.23*t+.692*r+.078*i+L0),s=QA(.2434226892454782*t+.2047674442449682*r+.5518098665095535*i+L0),l={mode:"xyb",x:(n-o)/2,y:(n+o)/2,b:s-(n+o)/2};return a!==void 0&&(l.alpha=a),l},rz=rme,eT=e=>Math.pow(e+tz,3),ime=({x:e,y:t,b:r,alpha:i})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let a=eT(e+t)-L0,n=eT(t-e)-L0,o=eT(r+t)-L0,s=q0({r:11.031566904639861*a-9.866943908131562*n-.16462299650829934*o,g:-3.2541473810744237*a+4.418770377582723*n-.16462299650829934*o,b:-3.6588512867136815*a+2.7129230459360922*n+1.9459282407775895*o});return i!==void 0&&(s.alpha=i),s},iz=ime,ame={mode:"xyb",channels:["x","y","b","alpha"],parse:["--xyb"],serialize:"--xyb",toMode:{rgb:iz},fromMode:{rgb:rz},ranges:{x:[-.0154,.0281],y:[0,.8453],b:[-.2778,.388]},interpolate:{x:Zt,y:Zt,b:Zt,alpha:{use:Zt,fixup:pn}}},az=ame,nme={mode:"xyz50",parse:["xyz-d50"],serialize:"xyz-d50",toMode:{rgb:Vp,lab:cx},fromMode:{rgb:Up,lab:ux},channels:["x","y","z","alpha"],ranges:{x:[0,.964],y:[0,.999],z:[0,.825]},interpolate:{x:Zt,y:Zt,z:Zt,alpha:{use:Zt,fixup:pn}}},nz=nme,ome=e=>{let{x:t,y:r,z:i,alpha:a}=e;t===void 0&&(t=0),r===void 0&&(r=0),i===void 0&&(i=0);let n={mode:"xyz50",x:1.0479298208405488*t+.0229467933410191*r-.0501922295431356*i,y:.0296278156881593*t+.990434484573249*r-.0170738250293851*i,z:-.0092430581525912*t+.0150551448965779*r+.7518742899580008*i};return a!==void 0&&(n.alpha=a),n},oz=ome,sme=e=>{let{x:t,y:r,z:i,alpha:a}=e;t===void 0&&(t=0),r===void 0&&(r=0),i===void 0&&(i=0);let n={mode:"xyz65",x:.9554734527042182*t-.0230985368742614*r+.0632593086610217*i,y:-.0283697069632081*t+1.0099954580058226*r+.021041398966943*i,z:.0123140016883199*t-.0205076964334779*r+1.3303659366080753*i};return a!==void 0&&(n.alpha=a),n},sz=sme,lme={mode:"xyz65",toMode:{rgb:$h,xyz50:oz},fromMode:{rgb:jh,xyz50:sz},ranges:{x:[0,.95],y:[0,1],z:[0,1.088]},channels:["x","y","z","alpha"],parse:["xyz","xyz-d65"],serialize:"xyz-d65",interpolate:{x:Zt,y:Zt,z:Zt,alpha:{use:Zt,fixup:pn}}},lz=lme,ume=({r:e,g:t,b:r,alpha:i})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let a={mode:"yiq",y:.29889531*e+.58662247*t+.11448223*r,i:.59597799*e-.2741761*t-.32180189*r,q:.21147017*e-.52261711*t+.31114694*r};return i!==void 0&&(a.alpha=i),a},uz=ume,cme=({y:e,i:t,q:r,alpha:i})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let a={mode:"rgb",r:e+.95608445*t+.6208885*r,g:e-.27137664*t-.6486059*r,b:e-1.10561724*t+1.70250126*r};return i!==void 0&&(a.alpha=i),a},cz=cme,hme={mode:"yiq",toMode:{rgb:cz},fromMode:{rgb:uz},channels:["y","i","q","alpha"],parse:["--yiq"],serialize:"--yiq",ranges:{i:[-.595,.595],q:[-.522,.522]},interpolate:{y:Zt,i:Zt,q:Zt,alpha:{use:Zt,fixup:pn}}},hz=hme,fme=(e,t)=>Math.round(e*(t=Math.pow(10,t)))/t,dme=(e=4)=>t=>typeof t=="number"?fme(t,e):t,fz=dme,xv=fz(2),wv=e=>Math.max(0,Math.min(1,e||0)),z0=e=>Math.round(wv(e)*255),jT=Ji("rgb"),pme=Ji("hsl"),$T=e=>{if(e===void 0)return;let t=z0(e.r),r=z0(e.g),i=z0(e.b);return"#"+(1<<24|t<<16|r<<8|i).toString(16).slice(1)},dz=e=>{if(e===void 0)return;let t=z0(e.alpha!==void 0?e.alpha:1);return $T(e)+(256|t).toString(16).slice(1)},pz=e=>{if(e===void 0)return;let t=z0(e.r),r=z0(e.g),i=z0(e.b);return e.alpha===void 0||e.alpha===1?`rgb(${t}, ${r}, ${i})`:`rgba(${t}, ${r}, ${i}, ${xv(wv(e.alpha))})`},mz=e=>{if(e===void 0)return;let t=xv(e.h||0),r=xv(wv(e.s)*100)+"%",i=xv(wv(e.l)*100)+"%";return e.alpha===void 0||e.alpha===1?`hsl(${t}, ${r}, ${i})`:`hsla(${t}, ${r}, ${i}, ${xv(wv(e.alpha))})`},mme=e=>{let t=uu(e);if(!t)return;let r=xo(t.mode);if(!r.serialize||typeof r.serialize=="string"){let i=`color(${r.serialize||`--${t.mode}`} `;return r.channels.forEach((a,n)=>{a!=="alpha"&&(i+=(n?" ":"")+(t[a]!==void 0?t[a]:"none"))}),t.alpha!==void 0&&t.alpha<1&&(i+=` / ${t.alpha}`),i+")"}if(typeof r.serialize=="function")return r.serialize(t)},vme=e=>$T(jT(e)),gme=e=>dz(jT(e)),yme=e=>pz(jT(e)),_me=e=>mz(pme(e)),xme={normal:(e,t)=>t,multiply:(e,t)=>e*t,screen:(e,t)=>e+t-e*t,"hard-light":(e,t)=>t<.5?e*2*t:2*t*(1-e)-1,overlay:(e,t)=>e<.5?t*2*e:2*e*(1-t)-1,darken:(e,t)=>Math.min(e,t),lighten:(e,t)=>Math.max(e,t),"color-dodge":(e,t)=>e===0?0:t===1?1:Math.min(1,e/(1-t)),"color-burn":(e,t)=>e===1?1:t===0?0:1-Math.min(1,(1-e)/t),"soft-light":(e,t)=>t<.5?e-(1-2*t)*e*(1-e):e+(2*t-1)*((e<.25?((16*e-12)*e+4)*e:Math.sqrt(e))-e),difference:(e,t)=>Math.abs(e-t),exclusion:(e,t)=>e+t-2*e*t},bme=(e,t="normal",r="rgb")=>{let i=typeof t=="function"?t:xme[t],a=Ji(r),n=xo(r).channels;return e.map(s=>{let l=a(s);return l.alpha===void 0&&(l.alpha=1),l}).reduce((s,l)=>{if(s===void 0)return l;let u=l.alpha+s.alpha*(1-l.alpha);return n.reduce((c,h)=>(h!=="alpha"&&(u===0?c[h]=0:(c[h]=l.alpha*(1-s.alpha)*l[h]+l.alpha*s.alpha*i(s[h],l[h])+(1-l.alpha)*s.alpha*s[h],c[h]=Math.max(0,Math.min(1,c[h]/u)))),c),{mode:r,alpha:u})})},wme=bme,Ame=([e,t])=>e+Math.random()*(t-e),Tme=e=>Object.keys(e).reduce((t,r)=>{let i=e[r];return t[r]=Array.isArray(i)?i:[i,i],t},{}),Mme=(e="rgb",t={})=>{let r=xo(e),i=Tme(t);return r.channels.reduce((a,n)=>((i.alpha||n!=="alpha")&&(a[n]=Ame(i[n]||r.ranges[n])),a),{mode:e})},Dme=Mme,Cv=(e,t="rgb",r=!1)=>{let i=t?xo(t).channels:null,a=t?Ji(t):uu;return n=>{let o=a(n);if(!o)return;let s=(i||xo(o.mode).channels).reduce((u,c)=>{let h=e(o[c],c,o,t);return h!==void 0&&!isNaN(h)&&(u[c]=h),u},{mode:o.mode});if(!r)return s;let l=uu(n);return l&&l.mode!==s.mode?Ji(l.mode)(s):s}},vz=(e,t,r)=>t!=="alpha"?(e||0)*(r.alpha!==void 0?r.alpha:1):e,gz=(e,t,r)=>t!=="alpha"&&r.alpha!==0?(e||0)/(r.alpha!==void 0?r.alpha:1):e,HT=(e=1,t=0)=>(r,i)=>i!=="alpha"?r*e+t:r,Sme=(e=1,t=1,r=0)=>(i,a)=>a!=="alpha"?e*Math.pow(i,t)+r:i,Eme=e=>{e[0]===void 0&&(e[0]=0),e[e.length-1]===void 0&&(e[e.length-1]=1);let t=1,r,i,a,n;for(;tt=>e<=0?1:e>=1?0:Math.pow(t,Math.log(.5)/Math.log(e)),yz=Cme,H_=e=>typeof e=="function",P0=e=>e&&typeof e=="object",YI=e=>typeof e=="number",_z=(e,t="rgb",r,i)=>{let a=xo(t),n=Ji(t),o=[],s=[],l={};e.forEach(f=>{Array.isArray(f)?(o.push(n(f[0])),s.push(f[1])):YI(f)||H_(f)?l[s.length]=f:(o.push(n(f)),s.push(void 0))}),kme(s);let u=a.channels.reduce((f,d)=>{let p;return P0(r)&&P0(r[d])&&r[d].fixup?p=r[d].fixup:P0(a.interpolate[d])&&a.interpolate[d].fixup?p=a.interpolate[d].fixup:p=m=>m,f[d]=p(o.map(m=>m[d])),f},{});if(i){let f=o.map((d,p)=>a.channels.reduce((m,g)=>(m[g]=u[g][p],m),{mode:t}));u=a.channels.reduce((d,p)=>(d[p]=f.map(m=>{let g=i(m[p],p,m,t);return isNaN(g)?void 0:g}),d),{})}let c=a.channels.reduce((f,d)=>{let p;return H_(r)?p=r:P0(r)&&H_(r[d])?p=r[d]:P0(r)&&P0(r[d])&&r[d].use?p=r[d].use:H_(a.interpolate[d])?p=a.interpolate[d]:P0(a.interpolate[d])&&(p=a.interpolate[d].use),f[d]=p(u[d]),f},{}),h=o.length-1;return f=>{if(f=Math.min(Math.max(0,f),1),f<=s[0])return o[0];if(f>s[h])return o[h];let d=0;for(;s[d]{let A=c[_](x);return A!==void 0&&(w[_]=A),w},{mode:t})}},Fme=(e,t="rgb",r)=>_z(e,t,r),xz=(e,t)=>(r,i="rgb",a)=>{let n=t?Cv(t,i):void 0,o=_z(r,i,a,e);return n?s=>n(o(s)):o},Pme=xz(vz,gz),Z_=(e,t)=>(e+t)%t,bz=(e,t,r,i,a)=>{let n=a*a,o=n*a;return((1-3*a+3*n-o)*e+(4-6*n+3*o)*t+(1+3*a+3*n-3*o)*r+o*i)/6},wz=e=>t=>{let r=e.length-1,i=t>=1?r-1:Math.max(0,Math.floor(t*r));return bz(i>0?e[i-1]:2*e[i]-e[i+1],e[i],e[i+1],it=>{let r=e.length-1,i=Math.floor(t*r);return bz(e[Z_(i-1,e.length)],e[Z_(i,e.length)],e[Z_(i+1,e.length)],e[Z_(i+2,e.length)],(t-i/r)*r)},Tz=e=>{let t,r=e.length-1,i=new Array(r),a=new Array(r),n=new Array(r);for(i[1]=1/4,a[1]=(6*e[1]-e[0])/4,t=2;t0&&(n[r-1]=a[r-1]),t=r-2;t>0;--t)n[t]=a[t]-i[t]*n[t+1];return n},Ime=e=>wz(Tz(e)),Lme=e=>Az(Tz(e)),Rp=Math.sign,bT=Math.min,Fs=Math.abs,ZT=e=>{let t=e.length-1,r=[],i=[],a=[];for(let n=0;n0?.5*(e[n+1]-e[n-1])*t:void 0),a.push(n>0?(Rp(r[n-1])+Rp(r[n]))*bT(Fs(r[n-1]),Fs(r[n]),.5*Fs(i[n])):void 0);return[r,i,a]},YT=(e,t,r)=>{let i=e.length-1,a=i*i;return n=>{let o;n>=1?o=i-1:o=Math.max(0,Math.floor(n*i));let s=n-o/i,l=s*s,u=l*s;return(t[o]+t[o+1]-2*r[o])*a*u+(3*r[o]-2*t[o]-t[o+1])*i*l+t[o]*s+e[o]}},zme=e=>{if(e.length<3)return Zt(e);let t=e.length-1,[r,,i]=ZT(e);return i[0]=r[0],i[t]=r[t-1],YT(e,i,r)},Rme=e=>{if(e.length<3)return Zt(e);let t=e.length-1,[r,i,a]=ZT(e);return i[0]=(e[1]*2-e[0]*1.5-e[2]*.5)*t,i[t]=(e[t]*1.5-e[t-1]*2+e[t-2]*.5)*t,a[0]=i[0]*r[0]<=0?0:Fs(i[0])>2*Fs(r[0])?2*r[0]:i[0],a[t]=i[t]*r[t-1]<=0?0:Fs(i[t])>2*Fs(r[t-1])?2*r[t-1]:i[t],YT(e,a,r)},Bme=e=>{let t=e.length-1,[r,i,a]=ZT(e);i[0]=.5*(e[1]-e[t])*t,i[t]=.5*(e[0]-e[t-1])*t;let n=(e[0]-e[t])*t,o=n;return a[0]=(Rp(n)+Rp(r[0]))*bT(Fs(n),Fs(r[0]),.5*Fs(i[0])),a[t]=(Rp(r[t-1])+Rp(o))*bT(Fs(r[t-1]),Fs(o),.5*Fs(i[t])),YT(e,a,r)},qme=(e=1)=>e===1?t=>t:t=>Math.pow(t,e),Mz=qme,Ome=(e=2,t=1)=>{let r=Mz(t);if(e<2)return e<1?[]:[r(.5)];let i=[];for(let a=0;a{let t={mode:e.mode,r:Math.max(0,Math.min(e.r!==void 0?e.r:0,1)),g:Math.max(0,Math.min(e.g!==void 0?e.g:0,1)),b:Math.max(0,Math.min(e.b!==void 0?e.b:0,1))};return e.alpha!==void 0&&(t.alpha=e.alpha),t},Ez=e=>Sz(Dz(e)),kz=e=>e!==void 0&&(e.r===void 0||e.r>=0&&e.r<=1)&&(e.g===void 0||e.g>=0&&e.g<=1)&&(e.b===void 0||e.b>=0&&e.b<=1);function WT(e){return kz(Dz(e))}function dx(e="rgb"){let{gamut:t}=xo(e);if(!t)return i=>!0;let r=Ji(typeof t=="string"?t:e);return i=>kz(r(i))}function Vme(e){return e=uu(e),e===void 0||WT(e)?e:Ji(e.mode)(Ez(e))}function XT(e="rgb"){let{gamut:t}=xo(e);if(!t)return n=>uu(n);let r=typeof t=="string"?t:e,i=Ji(r),a=dx(r);return n=>{let o=uu(n);if(!o)return;let s=i(o);if(a(s))return o;let l=Sz(s);return o.mode===l.mode?l:Ji(o.mode)(l)}}function Ume(e,t="lch",r="rgb"){e=uu(e);let i=r==="rgb"?WT:dx(r),a=r==="rgb"?Ez:XT(r);if(e===void 0||i(e))return e;let n=Ji(e.mode);e=Ji(t)(e);let o=Gr(nr({},e),{c:0});if(!i(o))return n(a(o));let s=0,l=e.c!==void 0?e.c:0,u=xo(t).ranges.c,c=(u[1]-u[0])/Math.pow(2,13),h=o.c;for(;l-s>c;)o.c=s+(l-s)*.5,i(o)?(h=o.c,s=o.c):l=o.c;return n(i(o)?o:Gr(nr({},o),{c:h}))}function Gme(e="rgb",t="oklch",r=Np("oklch"),i=.02){let a=Ji(e),n=xo(e);if(!n.gamut)return c=>a(c);let o=dx(e),s=XT(e),l=Ji(t),{ranges:u}=xo(t);if(!u.l||!u.c)throw new Error("LCH-like space expected");return c=>{if(c=uu(c),c===void 0)return;let h=nr({},l(c));if(h.l===void 0&&(h.l=0),h.c===void 0&&(h.c=0),h.l>=u.l[1]){let g=Gr(nr({},n.white),{mode:e});return c.alpha!==void 0&&(g.alpha=c.alpha),g}if(h.l<=u.l[0]){let g=Gr(nr({},n.black),{mode:e});return c.alpha!==void 0&&(g.alpha=c.alpha),g}if(o(h))return a(h);let f=0,d=h.c,p=(u.c[1]-u.c[0])/4e3,m=s(h);for(;d-f>p;)h.c=(f+d)*.5,m=s(h),o(h)||r&&i>0&&r(h,m)<=i?f=h.c:d=h.c;return a(o(h)?h:m)}}var jme=(e,t=Np(),r=i=>i)=>{let i=e.map((a,n)=>({color:r(a),i:n}));return(a,n=1,o=1/0)=>(isFinite(n)&&(n=Math.max(1,Math.min(n,i.length-1))),i.forEach(s=>{s.d=t(a,s.color)}),i.sort((s,l)=>s.d-l.d).slice(0,n).filter(s=>s.de[s.i]))},$me=jme,KT=e=>Math.max(e,0),JT=e=>Math.max(Math.min(e,1),0),Hme=(e,t,r)=>e===void 0||t===void 0?void 0:e+r*(t-e),Zme=e=>{let t=1-JT(e);return[.393+.607*t,.769-.769*t,.189-.189*t,0,.349-.349*t,.686+.314*t,.168-.168*t,0,.272-.272*t,.534-.534*t,.131+.869*t,0,0,0,0,1]},Yme=e=>{let t=KT(e);return[.213+.787*t,.715-.715*t,.072-.072*t,0,.213-.213*t,.715+.285*t,.072-.072*t,0,.213-.213*t,.715-.715*t,.072+.928*t,0,0,0,0,1]},Wme=e=>{let t=1-JT(e);return[.2126+.7874*t,.7152-.7152*t,.0722-.0722*t,0,.2126-.2126*t,.7152+.2848*t,.0722-.0722*t,0,.2126-.2126*t,.7152-.7152*t,.0722+.9278*t,0,0,0,0,1]},Xme=e=>{let t=Math.PI*e/180,r=Math.cos(t),i=Math.sin(t);return[.213+r*.787-i*.213,.715-r*.715-i*.715,.072-r*.072+i*.928,0,.213-r*.213+i*.143,.715+r*.285+i*.14,.072-r*.072-i*.283,0,.213-r*.213-i*.787,.715-r*.715+i*.715,.072+r*.928+i*.072,0,0,0,0,1]},px=(e,t,r=!1)=>{let i=Ji(t),a=xo(t).channels;return n=>{let o=i(n);if(!o)return;let s={mode:t},l,u=a.length;for(let h=0;h{let r=KT(e);return Cv(HT(r),t,!0)},Jme=(e=1,t="rgb")=>{let r=KT(e);return Cv(HT(r,(1-r)/2),t,!0)},Qme=(e=1,t="rgb")=>px(Zme(e),t,!0),eve=(e=1,t="rgb")=>px(Yme(e),t,!0),tve=(e=1,t="rgb")=>px(Wme(e),t,!0),rve=(e=1,t="rgb")=>{let r=JT(e);return Cv((i,a)=>a==="alpha"?i:Hme(r,1-r,i),t,!0)},ive=(e=0,t="rgb")=>px(Xme(e),t,!0),ave=Ji("rgb"),nve=[[1,0,-0,0,1,0,-0,-0,1],[.856167,.182038,-.038205,.029342,.955115,.015544,-.00288,-.001563,1.004443],[.734766,.334872,-.069637,.05184,.919198,.028963,-.004928,-.004209,1.009137],[.630323,.465641,-.095964,.069181,.890046,.040773,-.006308,-.007724,1.014032],[.539009,.579343,-.118352,.082546,.866121,.051332,-.007136,-.011959,1.019095],[.458064,.679578,-.137642,.092785,.846313,.060902,-.007494,-.016807,1.024301],[.38545,.769005,-.154455,.100526,.829802,.069673,-.007442,-.02219,1.029632],[.319627,.849633,-.169261,.106241,.815969,.07779,-.007025,-.028051,1.035076],[.259411,.923008,-.18242,.110296,.80434,.085364,-.006276,-.034346,1.040622],[.203876,.990338,-.194214,.112975,.794542,.092483,-.005222,-.041043,1.046265],[.152286,1.052583,-.204868,.114503,.786281,.099216,-.003882,-.048116,1.051998]],ove=[[1,0,-0,0,1,0,-0,-0,1],[.866435,.177704,-.044139,.049567,.939063,.01137,-.003453,.007233,.99622],[.760729,.319078,-.079807,.090568,.889315,.020117,-.006027,.013325,.992702],[.675425,.43385,-.109275,.125303,.847755,.026942,-.00795,.018572,.989378],[.605511,.52856,-.134071,.155318,.812366,.032316,-.009376,.023176,.9862],[.547494,.607765,-.155259,.181692,.781742,.036566,-.01041,.027275,.983136],[.498864,.674741,-.173604,.205199,.754872,.039929,-.011131,.030969,.980162],[.457771,.731899,-.18967,.226409,.731012,.042579,-.011595,.034333,.977261],[.422823,.781057,-.203881,.245752,.709602,.044646,-.011843,.037423,.974421],[.392952,.82361,-.216562,.263559,.69021,.046232,-.01191,.040281,.97163],[.367322,.860646,-.227968,.280085,.672501,.047413,-.01182,.04294,.968881]],sve=[[1,0,-0,0,1,0,-0,-0,1],[.92667,.092514,-.019184,.021191,.964503,.014306,.008437,.054813,.93675],[.89572,.13333,-.02905,.029997,.9454,.024603,.013027,.104707,.882266],[.905871,.127791,-.033662,.026856,.941251,.031893,.01341,.148296,.838294],[.948035,.08949,-.037526,.014364,.946792,.038844,.010853,.193991,.795156],[1.017277,.027029,-.044306,-.006113,.958479,.047634,.006379,.248708,.744913],[1.104996,-.046633,-.058363,-.032137,.971635,.060503,.001336,.317922,.680742],[1.193214,-.109812,-.083402,-.058496,.97941,.079086,-.002346,.403492,.598854],[1.257728,-.139648,-.118081,-.078003,.975409,.102594,-.003316,.501214,.502102],[1.278864,-.125333,-.153531,-.084748,.957674,.127074,-989e-6,.601151,.399838],[1.255528,-.076749,-.178779,-.078411,.930809,.147602,.004733,.691367,.3039]],QT=(e,t)=>{let r=Math.max(0,Math.min(1,t)),i=Math.round(r/.1),a=Math.round(r%.1),n=e[i];if(a>0&&iI0(n[l],o[l],a))}return o=>{let s=uu(o);if(s===void 0)return;let{r:l,g:u,b:c}=ave(s),h={mode:"rgb",r:n[0]*l+n[1]*u+n[2]*c,g:n[3]*l+n[4]*u+n[5]*c,b:n[6]*l+n[7]*u+n[8]*c};return s.alpha!==void 0&&(h.alpha=s.alpha),Ji(s.mode)(h)}},lve=(e=1)=>QT(nve,e),uve=(e=1)=>QT(ove,e),cve=(e=1)=>QT(sve,e),hve=e=>e*e*(3-2*e),fve=e=>.5-Math.sin(Math.asin(1-2*e)/3),dve=e=>e*e*e*(e*(e*6-15)+10),pve=dve,mve=e=>(1-Math.cos(e*Math.PI))/2,vve=mve;function wT(e){let t=Ji("lrgb")(e);return .2126*t.r+.7152*t.g+.0722*t.b}function gve(e,t){let r=wT(e),i=wT(t);return(Math.max(r,i)+.05)/(Math.min(r,i)+.05)}var yve=Ri(lL),_ve=Ri(dL),xve=Ri(yL),bve=Ri(_L),wve=Ri(wL),Ave=Ri(ET),Tve=Ri(FT),Mve=Ri(CL),Dve=Ri(IL),Sve=Ri(LL),Eve=Ri(zL),kve=Ri(hx),Cve=Ri(BL),Fve=Ri(fx),Pve=Ri(OL),Ive=Ri(UL),Lve=Ri(GL),zve=Ri(jL),Rve=Ri(HL),Bve=Ri(ZL),qve=Ri(WL),Ove=Ri(KL),Nve=Ri(JL),Vve=Ri(QL),Uve=Ri(ez),Gve=Ri(R0),jve=Ri(az),$ve=Ri(nz),Hve=Ri(lz),Zve=Ri(hz)});var e7={};Zi(e7,{default:()=>Wve});var Yve,Wve,t7=Vi(()=>{"use strict";Yve={format:{valType:"enumerated",values:["png","jpeg","webp","svg","full-json"],dflt:"png",description:"Sets the format of exported image."},width:{valType:"number",min:1,description:["Sets the exported image width.","Defaults to the value found in `layout.width`","If set to *null*, the exported image width will match the current graph width."].join(" ")},height:{valType:"number",min:1,description:["Sets the exported image height.","Defaults to the value found in `layout.height`","If set to *null*, the exported image height will match the current graph height."].join(" ")},scale:{valType:"number",min:0,dflt:1,description:["Sets a scaling for the generated image.","If set, all features of a graphs (e.g. text, line width)","are scaled, unlike simply setting","a bigger *width* and *height*."].join(" ")},setBackground:{valType:"any",dflt:!1,description:["Sets the image background mode.","By default, the image background is determined by `layout.paper_bgcolor`,","the *transparent* mode.","One might consider setting `setBackground` to *opaque*","when exporting a *jpeg* image as JPEGs do not support opacity."].join(" ")},imageDataOnly:{valType:"boolean",dflt:!1,description:["Determines whether or not the return value is prefixed by","the image format's corresponding 'data:image;' spec."].join(" ")}},Wve=Yve});var Hh=X((hJe,Rz)=>{"use strict";var{format:Xve,width:Kve,height:Jve,scale:Qve}=(t7(),ct(e7)).default,Pz=Qve,{dflt:cJe}=Pz,ege=iI(Pz,["dflt"]),Iz={staticPlot:{valType:"boolean",dflt:!1},typesetMath:{valType:"boolean",dflt:!0},plotlyServerURL:{valType:"string",dflt:"https://cloud.plotly.com/newchart"},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","map"],extras:[!0,!1],dflt:"gl3d+geo+map"},doubleClick:{valType:"enumerated",values:[!1,"reset","autosize","reset+autosize"],dflt:"reset+autosize"},doubleClickDelay:{valType:"number",dflt:500,min:0},showAxisDragHandles:{valType:"boolean",dflt:!0},showAxisRangeEntryBoxes:{valType:"boolean",dflt:!0},showTips:{valType:"boolean",dflt:!0},displayNotifier:{valType:"boolean",dflt:!0},displayModeBar:{valType:"enumerated",values:["hover",!0,!1],dflt:"hover"},showSendToCloud:{valType:"boolean",dflt:!0},modeBarButtonsToRemove:{valType:"any",dflt:[]},modeBarButtonsToAdd:{valType:"any",dflt:[]},modeBarButtons:{valType:"any",dflt:!1},toImageButtonOptions:{format:Xve,filename:{valType:"string"},width:Kve,height:Jve,scale:ege},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/un/"},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},locale:{valType:"string",dflt:"en-US"},locales:{valType:"any",dflt:{}}},Lz={};function zz(e,t){for(let r in e){let i=e[r];typeof i!="object"||i===null||(i.valType?"dflt"in i&&(t[r]=i.dflt):(t[r]||(t[r]={}),zz(i,t[r])))}}zz(Iz,Lz);Rz.exports={configAttributes:Iz,dfltConfig:Lz}});var i7=X((dJe,Bz)=>{"use strict";var r7=Wr(),tge=Br(),Fv=[];Bz.exports=function(e,t,r){var s;if(((s=r==null?void 0:r._context)==null?void 0:s.displayNotifier)===!1||Fv.indexOf(e)!==-1)return;Fv.push(e);var i=1e3;tge(t)?i=t:t==="long"&&(i=3e3);var a=r7.select("body").selectAll(".plotly-notifier").data([0]);a.enter().append("div").classed("plotly-notifier",!0);var n=a.selectAll(".notifier-note").data(Fv);function o(l){l.duration(700).style("opacity",0).each("end",function(u){var c=Fv.indexOf(u);c!==-1&&Fv.splice(c,1),r7.select(this).remove()})}n.enter().append("div").classed("notifier-note",!0).style("opacity",0).each(function(l){var u=r7.select(this);u.append("button").classed("notifier-close",!0).html("×").on("click",function(){u.transition().call(o)});for(var c=u.append("p"),h=l.split(//g),f=0;f{"use strict";var jp=Hh().dfltConfig,a7=i7(),n7=qz.exports={};n7.log=function(){var e;if(jp.logging>1){var t=["LOG:"];for(e=0;e1){var r=[];for(e=0;e"),"long")}};n7.warn=function(){var e;if(jp.logging>0){var t=["WARN:"];for(e=0;e0){var r=[];for(e=0;e"),"stick")}};n7.error=function(){var e;if(jp.logging>0){var t=["ERROR:"];for(e=0;e0){var r=[];for(e=0;e"),"stick")}}});var ec=X(O0=>{"use strict";O0.defaults=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"];O0.defaultLine="#444";O0.lightLine="#eee";O0.background="#fff";O0.borderLine="#BEC8D9";O0.lightFraction=1e3/11});var qr=X((vJe,Zz)=>{"use strict";var{converter:Oz,formatHex:rge,formatRgb:ige,wcagContrast:age,wcagLuminance:nge}=Fz(),{isArrayOrTypedArray:Nz}=os(),{warn:oge}=Hc(),{background:Iv,defaultLine:l7,defaults:sge,lightLine:lge}=ec(),Vz=Oz("rgb"),uge=Oz("hsl"),Uz=e=>{if(typeof e!="string")return;let t=e.trim().toLowerCase();if(!/^[0-9a-f]+$/.test(t))try{return Vz(t)}catch(r){return}},bo=e=>e>0?e>1?1:e:0,cge={mode:"rgb",r:0,g:0,b:0,alpha:1},o7=e=>Math.round(e*255e6)/255e6,Gz=e=>Gr(nr({},e),{r:o7(e.r),g:o7(e.g),b:o7(e.b)}),Ps=e=>ige(Gz(e)),hge=e=>rge(Gz(e)),fge=e=>{var t,r,i,a;return typeof e=="string"?`"${e}"`:Nz(e)?`${(r=(t=e.constructor)==null?void 0:t.name)!=null?r:"Array"}(${e.length})`:typeof e=="object"?(a=(i=e.constructor)==null?void 0:i.name)!=null?a:"Object":`${typeof e} ${e}`},ya=(e,t)=>{var i;let r=Uz(e);return r?((i=r.alpha)!=null||(r.alpha=1),r):(!t&&e!=null&&oge(`Invalid color specifier: ${fge(e)}. Defaulting to "#000"`),cge)},Pv=e=>Ps(Gr(nr({},ya(e)),{alpha:1})),dge=e=>e?ya(e).alpha:0,jz=e=>Nz(e)&&e.length>2&&Number.isFinite(e[0])&&Number.isFinite(e[1])&&Number.isFinite(e[2]),pge=e=>{let[t,r,i,a]=e,n=Math.max(t,r,i)>1?1/255:1,o=a!=null?a:1;return{mode:"rgb",r:t*n,g:r*n,b:i*n,alpha:o>1?o/255:o}},mge=(e,t)=>{let r=jz(e)?pge(e):ya(e,!0),i=[bo(r.r),bo(r.g),bo(r.b),bo(r.alpha)];return t==="uint8"||t==="uint8_clamped"?Uint8Array.from(i,a=>Math.round(a*255)):t==="float32"?Float32Array.from(i):t==="float64"?Float64Array.from(i):i},vge=(e,t)=>Ps(Gr(nr({},ya(e)),{alpha:bo(t)})),$z=(e,t)=>{let r=ya(e),i=r.alpha;if(i===1)return Ps(r);let a=ya(t||Iv),n=a.alpha,o=(s,l)=>(n===1?l:1-n+l*n)*(1-i)+s*i;return Ps({mode:"rgb",r:o(r.r,a.r),g:o(r.g,a.g),b:o(r.b,a.b)})},gge=(e,t,r)=>{let i=ya(e),a=ya(t),n=(o,s)=>r*o+(1-r)*s;return Ps({mode:"rgb",r:n(i.r,a.r),g:n(i.g,a.g),b:n(i.b,a.b)})},s7=(e,t)=>{let r=ya(e),i=uge(r)||{mode:"hsl",h:0,s:0,l:0};return Ps(Vz(Gr(nr({},i),{l:bo((i.l*100+t)/100),alpha:r.alpha})))},mx=(e,t)=>age(ya(e),ya(t)),Hz=e=>mx(e,Iv)>mx(e,l7),yge=Ps(ya(Iv)),_ge=Ps(ya(l7)),xge=(e,t,r)=>(ya(e).alpha!==1&&(e=$z(e,Iv)),Hz(e)?t?s7(e,t):yge:r?s7(e,-r):_ge),bge=(e,t)=>{e.style({stroke:Pv(t),"stroke-opacity":ya(t).alpha})},wge=(e,t)=>{e.style({fill:Pv(t),"fill-opacity":ya(t).alpha})},Age=(e,t)=>!!(e&&t&&Pv(e)===Pv(t)),Tge=e=>Uz(e)!==void 0,Mge=(e,t)=>{t=t===0?0:t||10;let r=ya(e),i=t/100;return Ps(Gr(nr({},r),{r:bo(r.r+i),g:bo(r.g+i),b:bo(r.b+i)}))},Dge=(e,t,r)=>{let i=ya(e),a=ya(t),n=r/100,o=a.alpha-i.alpha,s=2*n-1,l=((s*o===-1?s:(s+o)/(1+s*o))+1)/2,u=1-l,c=(h,f)=>u*h+l*f;return Ps({mode:"rgb",r:c(i.r,a.r),g:c(i.g,a.g),b:c(i.b,a.b),alpha:i.alpha*(1-n)+a.alpha*n})},Sge=(e,t=["#000","#fff"])=>{let r,i=-1/0;for(let a of t){let n=mx(e,a);n>i&&(i=n,r=Ps(ya(a)))}return r},Ege=e=>Ps(ya(e)),kge=e=>hge(ya(e)).toUpperCase(),Cge=e=>{let t=ya(e);return[bo(t.r)*255,bo(t.g)*255,bo(t.b)*255,bo(t.alpha)]},Fge=([e,t,r,i])=>Ps({mode:"rgb",r:e/255,g:t/255,b:r/255,alpha:i}),Pge=e=>{let t=ya(e);return nge({mode:"rgb",r:bo(t.r),g:bo(t.g),b:bo(t.b)})};Zz.exports={addOpacity:vge,adjustLightness:s7,background:Iv,brighten:Mge,combine:$z,contrast:xge,defaultLine:l7,defaults:sge,equals:Age,fill:wge,hexString:kge,interpolate:gge,isChannelArray:jz,isDark:Hz,isValid:Tge,lightLine:lge,luminosity:Pge,mix:Dge,mostReadable:Sge,normalize:mge,opacity:dge,parse:ya,rgb:Pv,rgbaArray:Cge,rgbaArrayToString:Fge,rgbaString:Ege,stroke:bge,wcagContrast:mx}});var N0=X((yJe,Xz)=>{"use strict";var Ige=qr(),vx={Greys:[[0,"rgb(0,0,0)"],[1,"rgb(255,255,255)"]],YlGnBu:[[0,"rgb(8,29,88)"],[.125,"rgb(37,52,148)"],[.25,"rgb(34,94,168)"],[.375,"rgb(29,145,192)"],[.5,"rgb(65,182,196)"],[.625,"rgb(127,205,187)"],[.75,"rgb(199,233,180)"],[.875,"rgb(237,248,217)"],[1,"rgb(255,255,217)"]],Greens:[[0,"rgb(0,68,27)"],[.125,"rgb(0,109,44)"],[.25,"rgb(35,139,69)"],[.375,"rgb(65,171,93)"],[.5,"rgb(116,196,118)"],[.625,"rgb(161,217,155)"],[.75,"rgb(199,233,192)"],[.875,"rgb(229,245,224)"],[1,"rgb(247,252,245)"]],YlOrRd:[[0,"rgb(128,0,38)"],[.125,"rgb(189,0,38)"],[.25,"rgb(227,26,28)"],[.375,"rgb(252,78,42)"],[.5,"rgb(253,141,60)"],[.625,"rgb(254,178,76)"],[.75,"rgb(254,217,118)"],[.875,"rgb(255,237,160)"],[1,"rgb(255,255,204)"]],Bluered:[[0,"rgb(0,0,255)"],[1,"rgb(255,0,0)"]],RdBu:[[0,"rgb(5,10,172)"],[.35,"rgb(106,137,247)"],[.5,"rgb(190,190,190)"],[.6,"rgb(220,170,132)"],[.7,"rgb(230,145,90)"],[1,"rgb(178,10,28)"]],Reds:[[0,"rgb(220,220,220)"],[.2,"rgb(245,195,157)"],[.4,"rgb(245,160,105)"],[1,"rgb(178,10,28)"]],Blues:[[0,"rgb(5,10,172)"],[.35,"rgb(40,60,190)"],[.5,"rgb(70,100,245)"],[.6,"rgb(90,120,245)"],[.7,"rgb(106,137,247)"],[1,"rgb(220,220,220)"]],Picnic:[[0,"rgb(0,0,255)"],[.1,"rgb(51,153,255)"],[.2,"rgb(102,204,255)"],[.3,"rgb(153,204,255)"],[.4,"rgb(204,204,255)"],[.5,"rgb(255,255,255)"],[.6,"rgb(255,204,255)"],[.7,"rgb(255,153,255)"],[.8,"rgb(255,102,204)"],[.9,"rgb(255,102,102)"],[1,"rgb(255,0,0)"]],Rainbow:[[0,"rgb(150,0,90)"],[.125,"rgb(0,0,200)"],[.25,"rgb(0,25,255)"],[.375,"rgb(0,152,255)"],[.5,"rgb(44,255,150)"],[.625,"rgb(151,255,0)"],[.75,"rgb(255,234,0)"],[.875,"rgb(255,111,0)"],[1,"rgb(255,0,0)"]],Portland:[[0,"rgb(12,51,131)"],[.25,"rgb(10,136,186)"],[.5,"rgb(242,211,56)"],[.75,"rgb(242,143,56)"],[1,"rgb(217,30,30)"]],Jet:[[0,"rgb(0,0,131)"],[.125,"rgb(0,60,170)"],[.375,"rgb(5,255,255)"],[.625,"rgb(255,255,0)"],[.875,"rgb(250,0,0)"],[1,"rgb(128,0,0)"]],Hot:[[0,"rgb(0,0,0)"],[.3,"rgb(230,0,0)"],[.6,"rgb(255,210,0)"],[1,"rgb(255,255,255)"]],Blackbody:[[0,"rgb(0,0,0)"],[.2,"rgb(230,0,0)"],[.4,"rgb(230,210,0)"],[.7,"rgb(255,255,255)"],[1,"rgb(160,200,255)"]],Earth:[[0,"rgb(0,0,130)"],[.1,"rgb(0,180,180)"],[.2,"rgb(40,210,40)"],[.4,"rgb(230,230,50)"],[.6,"rgb(120,70,20)"],[1,"rgb(255,255,255)"]],Electric:[[0,"rgb(0,0,0)"],[.15,"rgb(30,0,100)"],[.4,"rgb(120,0,100)"],[.6,"rgb(160,90,0)"],[.8,"rgb(230,200,0)"],[1,"rgb(255,250,220)"]],Viridis:[[0,"#440154"],[.06274509803921569,"#48186a"],[.12549019607843137,"#472d7b"],[.18823529411764706,"#424086"],[.25098039215686274,"#3b528b"],[.3137254901960784,"#33638d"],[.3764705882352941,"#2c728e"],[.4392156862745098,"#26828e"],[.5019607843137255,"#21918c"],[.5647058823529412,"#1fa088"],[.6274509803921569,"#28ae80"],[.6901960784313725,"#3fbc73"],[.7529411764705882,"#5ec962"],[.8156862745098039,"#84d44b"],[.8784313725490196,"#addc30"],[.9411764705882353,"#d8e219"],[1,"#fde725"]],Cividis:[[0,"rgb(0,32,76)"],[.058824,"rgb(0,42,102)"],[.117647,"rgb(0,52,110)"],[.176471,"rgb(39,63,108)"],[.235294,"rgb(60,74,107)"],[.294118,"rgb(76,85,107)"],[.352941,"rgb(91,95,109)"],[.411765,"rgb(104,106,112)"],[.470588,"rgb(117,117,117)"],[.529412,"rgb(131,129,120)"],[.588235,"rgb(146,140,120)"],[.647059,"rgb(161,152,118)"],[.705882,"rgb(176,165,114)"],[.764706,"rgb(192,177,109)"],[.823529,"rgb(209,191,102)"],[.882353,"rgb(225,204,92)"],[.941176,"rgb(243,219,79)"],[1,"rgb(255,233,69)"]]},Yz=vx.RdBu;function Lge(e,t){if(t||(t=Yz),!e)return t;function r(){try{e=vx[e]||JSON.parse(e)}catch(i){e=t}}return typeof e=="string"&&(r(),typeof e=="string"&&r()),Wz(e)?e:t}function Wz(e){var t=0;if(!Array.isArray(e)||e.length<2||!e[0]||!e[e.length-1]||+e[0][0]!=0||+e[e.length-1][0]!=1)return!1;for(var r=0;rqge,HIDE_PLACEHOLDER:()=>Bge,SHOW_PLACEHOLDER:()=>Rge});var Rge,Bge,qge,yx=Vi(()=>{"use strict";Rge=100,Bge=1e3,qge=.2});var Lv={};Zi(Lv,{counter:()=>V0});function V0(e,t="",r,i){let a=t+(r?"":"$"),n=i===!1?"":"^";return e==="xy"?new RegExp(n+"x"+u7+"y"+u7+a):new RegExp(n+e+u7+a)}var u7,$p=Vi(()=>{"use strict";u7="([2-9]|[1-9][0-9]+)?"});var Qz=X(ls=>{"use strict";var c7=Br(),Kz=Ta().extendFlat,Oge=Go(),Nge=N0(),h7=qr(),Vge=(yx(),ct(gx)).DESELECTDIM,Hp=cv(),Jz=($p(),ct(Lv)).counter,Uge=(Lp(),ct(Ip)).modHalf,cu=os().isArrayOrTypedArray,Zh=os().isTypedArraySpec,Yh=os().decodeTypedArraySpec;ls.valObjectMeta={data_array:{coerceFunction:function(e,t,r){t.set(cu(e)?e:Zh(e)?Yh(e):r)}},enumerated:{coerceFunction:function(e,t,r,i){i.coerceNumber&&(e=+e),i.values.indexOf(e)===-1?t.set(r):t.set(e)},validateFunction:function(e,t){t.coerceNumber&&(e=+e);for(var r=t.values,i=0;in===!0||n===!1;a(e)||i.arrayOk&&Array.isArray(e)&&e.length>0&&e.every(a)?t.set(e):t.set(r)}},number:{coerceFunction:function(e,t,r,i){Zh(e)&&(e=Yh(e)),!c7(e)||i.min!==void 0&&ei.max?t.set(r):t.set(+e)}},integer:{coerceFunction:function(e,t,r,i){if((i.extras||[]).indexOf(e)!==-1){t.set(e);return}Zh(e)&&(e=Yh(e)),e%1||!c7(e)||i.min!==void 0&&ei.max?t.set(r):t.set(+e)}},string:{coerceFunction:function(e,t,r,i){if(typeof e!="string"){var a=typeof e=="number";i.strict===!0||!a?t.set(r):t.set(String(e))}else i.noBlank&&!e?t.set(r):t.set(e)}},color:{coerceFunction:function(e,t,r){Zh(e)&&(e=Yh(e)),h7.isValid(e)?t.set(e):t.set(r)}},colorlist:{coerceFunction:function(e,t,r){!Array.isArray(e)||!e.length?t.set(r):e.every(i=>h7.isValid(i))?t.set(e):t.set(r)}},colorscale:{coerceFunction:function(e,t,r){t.set(Nge.get(e,r))}},angle:{coerceFunction:function(e,t,r){Zh(e)&&(e=Yh(e)),e==="auto"?t.set("auto"):c7(e)?t.set(Uge(+e,360)):t.set(r)}},subplotid:{coerceFunction:function(e,t,r,i){var a=i.regex||Jz(r);let n=o=>typeof o=="string"&&a.test(o);n(e)||i.arrayOk&&cu(e)&&e.length>0&&e.every(n)?t.set(e):t.set(r)},validateFunction:function(e,t){var r=t.dflt;return e===r?!0:typeof e!="string"?!1:!!Jz(r).test(e)}},flaglist:{coerceFunction:function(e,t,r,i){if((i.extras||[]).indexOf(e)!==-1){t.set(e);return}if(typeof e!="string"){t.set(r);return}for(var a=e.split("+"),n=0;n{"use strict";eR.exports=function(){}});var f7=X((bJe,tR)=>{"use strict";tR.exports=function(t,r){if(r instanceof RegExp){for(var i=r.toString(),a=0;a{rR.exports=Gge;function Gge(){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}});var nR=X((AJe,aR)=>{aR.exports=jge;function jge(e){var t=new Float32Array(16);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}});var sR=X((TJe,oR)=>{oR.exports=$ge;function $ge(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}});var d7=X((MJe,lR)=>{lR.exports=Hge;function Hge(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}});var cR=X((DJe,uR)=>{uR.exports=Zge;function Zge(e,t){if(e===t){var r=t[1],i=t[2],a=t[3],n=t[6],o=t[7],s=t[11];e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=r,e[6]=t[9],e[7]=t[13],e[8]=i,e[9]=n,e[11]=t[14],e[12]=a,e[13]=o,e[14]=s}else e[0]=t[0],e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=t[1],e[5]=t[5],e[6]=t[9],e[7]=t[13],e[8]=t[2],e[9]=t[6],e[10]=t[10],e[11]=t[14],e[12]=t[3],e[13]=t[7],e[14]=t[11],e[15]=t[15];return e}});var fR=X((SJe,hR)=>{hR.exports=Yge;function Yge(e,t){var r=t[0],i=t[1],a=t[2],n=t[3],o=t[4],s=t[5],l=t[6],u=t[7],c=t[8],h=t[9],f=t[10],d=t[11],p=t[12],m=t[13],g=t[14],y=t[15],x=r*s-i*o,w=r*l-a*o,_=r*u-n*o,A=i*l-a*s,T=i*u-n*s,M=a*u-n*l,S=c*m-h*p,k=c*g-f*p,P=c*y-d*p,I=h*g-f*m,B=h*y-d*m,L=f*y-d*g,z=x*L-w*B+_*I+A*P-T*k+M*S;return z?(z=1/z,e[0]=(s*L-l*B+u*I)*z,e[1]=(a*B-i*L-n*I)*z,e[2]=(m*M-g*T+y*A)*z,e[3]=(f*T-h*M-d*A)*z,e[4]=(l*P-o*L-u*k)*z,e[5]=(r*L-a*P+n*k)*z,e[6]=(g*_-p*M-y*w)*z,e[7]=(c*M-f*_+d*w)*z,e[8]=(o*B-s*P+u*S)*z,e[9]=(i*P-r*B-n*S)*z,e[10]=(p*T-m*_+y*x)*z,e[11]=(h*_-c*T-d*x)*z,e[12]=(s*k-o*I-l*S)*z,e[13]=(r*I-i*k+a*S)*z,e[14]=(m*w-p*A-g*x)*z,e[15]=(c*A-h*w+f*x)*z,e):null}});var pR=X((EJe,dR)=>{dR.exports=Wge;function Wge(e,t){var r=t[0],i=t[1],a=t[2],n=t[3],o=t[4],s=t[5],l=t[6],u=t[7],c=t[8],h=t[9],f=t[10],d=t[11],p=t[12],m=t[13],g=t[14],y=t[15];return e[0]=s*(f*y-d*g)-h*(l*y-u*g)+m*(l*d-u*f),e[1]=-(i*(f*y-d*g)-h*(a*y-n*g)+m*(a*d-n*f)),e[2]=i*(l*y-u*g)-s*(a*y-n*g)+m*(a*u-n*l),e[3]=-(i*(l*d-u*f)-s*(a*d-n*f)+h*(a*u-n*l)),e[4]=-(o*(f*y-d*g)-c*(l*y-u*g)+p*(l*d-u*f)),e[5]=r*(f*y-d*g)-c*(a*y-n*g)+p*(a*d-n*f),e[6]=-(r*(l*y-u*g)-o*(a*y-n*g)+p*(a*u-n*l)),e[7]=r*(l*d-u*f)-o*(a*d-n*f)+c*(a*u-n*l),e[8]=o*(h*y-d*m)-c*(s*y-u*m)+p*(s*d-u*h),e[9]=-(r*(h*y-d*m)-c*(i*y-n*m)+p*(i*d-n*h)),e[10]=r*(s*y-u*m)-o*(i*y-n*m)+p*(i*u-n*s),e[11]=-(r*(s*d-u*h)-o*(i*d-n*h)+c*(i*u-n*s)),e[12]=-(o*(h*g-f*m)-c*(s*g-l*m)+p*(s*f-l*h)),e[13]=r*(h*g-f*m)-c*(i*g-a*m)+p*(i*f-a*h),e[14]=-(r*(s*g-l*m)-o*(i*g-a*m)+p*(i*l-a*s)),e[15]=r*(s*f-l*h)-o*(i*f-a*h)+c*(i*l-a*s),e}});var vR=X((kJe,mR)=>{mR.exports=Xge;function Xge(e){var t=e[0],r=e[1],i=e[2],a=e[3],n=e[4],o=e[5],s=e[6],l=e[7],u=e[8],c=e[9],h=e[10],f=e[11],d=e[12],p=e[13],m=e[14],g=e[15],y=t*o-r*n,x=t*s-i*n,w=t*l-a*n,_=r*s-i*o,A=r*l-a*o,T=i*l-a*s,M=u*p-c*d,S=u*m-h*d,k=u*g-f*d,P=c*m-h*p,I=c*g-f*p,B=h*g-f*m;return y*B-x*I+w*P+_*k-A*S+T*M}});var yR=X((CJe,gR)=>{gR.exports=Kge;function Kge(e,t,r){var i=t[0],a=t[1],n=t[2],o=t[3],s=t[4],l=t[5],u=t[6],c=t[7],h=t[8],f=t[9],d=t[10],p=t[11],m=t[12],g=t[13],y=t[14],x=t[15],w=r[0],_=r[1],A=r[2],T=r[3];return e[0]=w*i+_*s+A*h+T*m,e[1]=w*a+_*l+A*f+T*g,e[2]=w*n+_*u+A*d+T*y,e[3]=w*o+_*c+A*p+T*x,w=r[4],_=r[5],A=r[6],T=r[7],e[4]=w*i+_*s+A*h+T*m,e[5]=w*a+_*l+A*f+T*g,e[6]=w*n+_*u+A*d+T*y,e[7]=w*o+_*c+A*p+T*x,w=r[8],_=r[9],A=r[10],T=r[11],e[8]=w*i+_*s+A*h+T*m,e[9]=w*a+_*l+A*f+T*g,e[10]=w*n+_*u+A*d+T*y,e[11]=w*o+_*c+A*p+T*x,w=r[12],_=r[13],A=r[14],T=r[15],e[12]=w*i+_*s+A*h+T*m,e[13]=w*a+_*l+A*f+T*g,e[14]=w*n+_*u+A*d+T*y,e[15]=w*o+_*c+A*p+T*x,e}});var xR=X((FJe,_R)=>{_R.exports=Jge;function Jge(e,t,r){var i=r[0],a=r[1],n=r[2],o,s,l,u,c,h,f,d,p,m,g,y;return t===e?(e[12]=t[0]*i+t[4]*a+t[8]*n+t[12],e[13]=t[1]*i+t[5]*a+t[9]*n+t[13],e[14]=t[2]*i+t[6]*a+t[10]*n+t[14],e[15]=t[3]*i+t[7]*a+t[11]*n+t[15]):(o=t[0],s=t[1],l=t[2],u=t[3],c=t[4],h=t[5],f=t[6],d=t[7],p=t[8],m=t[9],g=t[10],y=t[11],e[0]=o,e[1]=s,e[2]=l,e[3]=u,e[4]=c,e[5]=h,e[6]=f,e[7]=d,e[8]=p,e[9]=m,e[10]=g,e[11]=y,e[12]=o*i+c*a+p*n+t[12],e[13]=s*i+h*a+m*n+t[13],e[14]=l*i+f*a+g*n+t[14],e[15]=u*i+d*a+y*n+t[15]),e}});var wR=X((PJe,bR)=>{bR.exports=Qge;function Qge(e,t,r){var i=r[0],a=r[1],n=r[2];return e[0]=t[0]*i,e[1]=t[1]*i,e[2]=t[2]*i,e[3]=t[3]*i,e[4]=t[4]*a,e[5]=t[5]*a,e[6]=t[6]*a,e[7]=t[7]*a,e[8]=t[8]*n,e[9]=t[9]*n,e[10]=t[10]*n,e[11]=t[11]*n,e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}});var TR=X((IJe,AR)=>{AR.exports=eye;function eye(e,t,r,i){var a=i[0],n=i[1],o=i[2],s=Math.sqrt(a*a+n*n+o*o),l,u,c,h,f,d,p,m,g,y,x,w,_,A,T,M,S,k,P,I,B,L,z,O;return Math.abs(s)<1e-6?null:(s=1/s,a*=s,n*=s,o*=s,l=Math.sin(r),u=Math.cos(r),c=1-u,h=t[0],f=t[1],d=t[2],p=t[3],m=t[4],g=t[5],y=t[6],x=t[7],w=t[8],_=t[9],A=t[10],T=t[11],M=a*a*c+u,S=n*a*c+o*l,k=o*a*c-n*l,P=a*n*c-o*l,I=n*n*c+u,B=o*n*c+a*l,L=a*o*c+n*l,z=n*o*c-a*l,O=o*o*c+u,e[0]=h*M+m*S+w*k,e[1]=f*M+g*S+_*k,e[2]=d*M+y*S+A*k,e[3]=p*M+x*S+T*k,e[4]=h*P+m*I+w*B,e[5]=f*P+g*I+_*B,e[6]=d*P+y*I+A*B,e[7]=p*P+x*I+T*B,e[8]=h*L+m*z+w*O,e[9]=f*L+g*z+_*O,e[10]=d*L+y*z+A*O,e[11]=p*L+x*z+T*O,t!==e&&(e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e)}});var DR=X((LJe,MR)=>{MR.exports=tye;function tye(e,t,r){var i=Math.sin(r),a=Math.cos(r),n=t[4],o=t[5],s=t[6],l=t[7],u=t[8],c=t[9],h=t[10],f=t[11];return t!==e&&(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[4]=n*a+u*i,e[5]=o*a+c*i,e[6]=s*a+h*i,e[7]=l*a+f*i,e[8]=u*a-n*i,e[9]=c*a-o*i,e[10]=h*a-s*i,e[11]=f*a-l*i,e}});var ER=X((zJe,SR)=>{SR.exports=rye;function rye(e,t,r){var i=Math.sin(r),a=Math.cos(r),n=t[0],o=t[1],s=t[2],l=t[3],u=t[8],c=t[9],h=t[10],f=t[11];return t!==e&&(e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=n*a-u*i,e[1]=o*a-c*i,e[2]=s*a-h*i,e[3]=l*a-f*i,e[8]=n*i+u*a,e[9]=o*i+c*a,e[10]=s*i+h*a,e[11]=l*i+f*a,e}});var CR=X((RJe,kR)=>{kR.exports=iye;function iye(e,t,r){var i=Math.sin(r),a=Math.cos(r),n=t[0],o=t[1],s=t[2],l=t[3],u=t[4],c=t[5],h=t[6],f=t[7];return t!==e&&(e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=n*a+u*i,e[1]=o*a+c*i,e[2]=s*a+h*i,e[3]=l*a+f*i,e[4]=u*a-n*i,e[5]=c*a-o*i,e[6]=h*a-s*i,e[7]=f*a-l*i,e}});var PR=X((BJe,FR)=>{FR.exports=aye;function aye(e,t,r){var i,a,n,o=r[0],s=r[1],l=r[2],u=Math.sqrt(o*o+s*s+l*l);return Math.abs(u)<1e-6?null:(u=1/u,o*=u,s*=u,l*=u,i=Math.sin(t),a=Math.cos(t),n=1-a,e[0]=o*o*n+a,e[1]=s*o*n+l*i,e[2]=l*o*n-s*i,e[3]=0,e[4]=o*s*n-l*i,e[5]=s*s*n+a,e[6]=l*s*n+o*i,e[7]=0,e[8]=o*l*n+s*i,e[9]=s*l*n-o*i,e[10]=l*l*n+a,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e)}});var LR=X((qJe,IR)=>{IR.exports=nye;function nye(e,t,r){var i=t[0],a=t[1],n=t[2],o=t[3],s=i+i,l=a+a,u=n+n,c=i*s,h=i*l,f=i*u,d=a*l,p=a*u,m=n*u,g=o*s,y=o*l,x=o*u;return e[0]=1-(d+m),e[1]=h+x,e[2]=f-y,e[3]=0,e[4]=h-x,e[5]=1-(c+m),e[6]=p+g,e[7]=0,e[8]=f+y,e[9]=p-g,e[10]=1-(c+d),e[11]=0,e[12]=r[0],e[13]=r[1],e[14]=r[2],e[15]=1,e}});var RR=X((OJe,zR)=>{zR.exports=oye;function oye(e,t){return e[0]=t[0],e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=t[1],e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=t[2],e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var qR=X((NJe,BR)=>{BR.exports=sye;function sye(e,t){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]=t[0],e[13]=t[1],e[14]=t[2],e[15]=1,e}});var NR=X((VJe,OR)=>{OR.exports=lye;function lye(e,t){var r=Math.sin(t),i=Math.cos(t);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=i,e[6]=r,e[7]=0,e[8]=0,e[9]=-r,e[10]=i,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var UR=X((UJe,VR)=>{VR.exports=uye;function uye(e,t){var r=Math.sin(t),i=Math.cos(t);return e[0]=i,e[1]=0,e[2]=-r,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=r,e[9]=0,e[10]=i,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var jR=X((GJe,GR)=>{GR.exports=cye;function cye(e,t){var r=Math.sin(t),i=Math.cos(t);return e[0]=i,e[1]=r,e[2]=0,e[3]=0,e[4]=-r,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}});var HR=X((jJe,$R)=>{$R.exports=hye;function hye(e,t){var r=t[0],i=t[1],a=t[2],n=t[3],o=r+r,s=i+i,l=a+a,u=r*o,c=i*o,h=i*s,f=a*o,d=a*s,p=a*l,m=n*o,g=n*s,y=n*l;return e[0]=1-h-p,e[1]=c+y,e[2]=f-g,e[3]=0,e[4]=c-y,e[5]=1-u-p,e[6]=d+m,e[7]=0,e[8]=f+g,e[9]=d-m,e[10]=1-u-h,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var YR=X(($Je,ZR)=>{ZR.exports=fye;function fye(e,t,r,i,a,n,o){var s=1/(r-t),l=1/(a-i),u=1/(n-o);return e[0]=n*2*s,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=n*2*l,e[6]=0,e[7]=0,e[8]=(r+t)*s,e[9]=(a+i)*l,e[10]=(o+n)*u,e[11]=-1,e[12]=0,e[13]=0,e[14]=o*n*2*u,e[15]=0,e}});var XR=X((HJe,WR)=>{WR.exports=dye;function dye(e,t,r,i,a){var n=1/Math.tan(t/2),o=1/(i-a);return e[0]=n/r,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=n,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=(a+i)*o,e[11]=-1,e[12]=0,e[13]=0,e[14]=2*a*i*o,e[15]=0,e}});var JR=X((ZJe,KR)=>{KR.exports=pye;function pye(e,t,r,i){var a=Math.tan(t.upDegrees*Math.PI/180),n=Math.tan(t.downDegrees*Math.PI/180),o=Math.tan(t.leftDegrees*Math.PI/180),s=Math.tan(t.rightDegrees*Math.PI/180),l=2/(o+s),u=2/(a+n);return e[0]=l,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=u,e[6]=0,e[7]=0,e[8]=-((o-s)*l*.5),e[9]=(a-n)*u*.5,e[10]=i/(r-i),e[11]=-1,e[12]=0,e[13]=0,e[14]=i*r/(r-i),e[15]=0,e}});var eB=X((YJe,QR)=>{QR.exports=mye;function mye(e,t,r,i,a,n,o){var s=1/(t-r),l=1/(i-a),u=1/(n-o);return e[0]=-2*s,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*l,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*u,e[11]=0,e[12]=(t+r)*s,e[13]=(a+i)*l,e[14]=(o+n)*u,e[15]=1,e}});var rB=X((WJe,tB)=>{var vye=d7();tB.exports=gye;function gye(e,t,r,i){var a,n,o,s,l,u,c,h,f,d,p=t[0],m=t[1],g=t[2],y=i[0],x=i[1],w=i[2],_=r[0],A=r[1],T=r[2];return Math.abs(p-_)<1e-6&&Math.abs(m-A)<1e-6&&Math.abs(g-T)<1e-6?vye(e):(c=p-_,h=m-A,f=g-T,d=1/Math.sqrt(c*c+h*h+f*f),c*=d,h*=d,f*=d,a=x*f-w*h,n=w*c-y*f,o=y*h-x*c,d=Math.sqrt(a*a+n*n+o*o),d?(d=1/d,a*=d,n*=d,o*=d):(a=0,n=0,o=0),s=h*o-f*n,l=f*a-c*o,u=c*n-h*a,d=Math.sqrt(s*s+l*l+u*u),d?(d=1/d,s*=d,l*=d,u*=d):(s=0,l=0,u=0),e[0]=a,e[1]=s,e[2]=c,e[3]=0,e[4]=n,e[5]=l,e[6]=h,e[7]=0,e[8]=o,e[9]=u,e[10]=f,e[11]=0,e[12]=-(a*p+n*m+o*g),e[13]=-(s*p+l*m+u*g),e[14]=-(c*p+h*m+f*g),e[15]=1,e)}});var aB=X((XJe,iB)=>{iB.exports=yye;function yye(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]+")"}});var p7=X((KJe,nB)=>{nB.exports={create:iR(),clone:nR(),copy:sR(),identity:d7(),transpose:cR(),invert:fR(),adjoint:pR(),determinant:vR(),multiply:yR(),translate:xR(),scale:wR(),rotate:TR(),rotateX:DR(),rotateY:ER(),rotateZ:CR(),fromRotation:PR(),fromRotationTranslation:LR(),fromScaling:RR(),fromTranslation:qR(),fromXRotation:NR(),fromYRotation:UR(),fromZRotation:jR(),fromQuat:HR(),frustum:YR(),perspective:XR(),perspectiveFromFieldOfView:JR(),ortho:eB(),lookAt:rB(),str:aB()}});var bx=X(Pa=>{"use strict";var _ye=p7();Pa.init2dArray=function(e,t){for(var r=new Array(e),i=0;i{"use strict";var xye=Wr(),oB=Hc(),bye=bx(),wye=p7();function Aye(e){var t;if(typeof e=="string"){if(t=document.getElementById(e),t===null)throw new Error("No DOM element with id '"+e+"' exists on the page.");return t}else if(e==null)throw new Error("DOM element provided is null or undefined");return e}function Tye(e){var t=xye.select(e);return t.node()instanceof HTMLElement&&t.size()&&t.classed("js-plotly-plot")}function sB(e){var t=e&&e.parentNode;t&&t.removeChild(e)}function Mye(e,t){lB("global",e,t)}function lB(e,t,r){var i="plotly.js-style-"+e,a=document.getElementById(i);if(!(a&&a.matches(".no-inline-styles"))){a||(a=document.createElement("style"),a.setAttribute("id",i),a.appendChild(document.createTextNode("")),document.head.appendChild(a));var n=a.sheet;n?n.insertRule?n.insertRule(t+"{"+r+"}",0):n.addRule?n.addRule(t,r,0):oB.warn("addStyleRule failed"):oB.warn("Cannot addRelatedStyleRule, probably due to strict CSP...")}}function Dye(e){var t="plotly.js-style-"+e,r=document.getElementById(t);r&&sB(r)}function Sye(e,t,r,i,a,n){var o=i.split(":"),s=a.split(":"),l="data-btn-style-event-added";n||(n=document),n.querySelectorAll(e).forEach(function(u){u._hoverStyle={activeStyleParts:o,inactiveStyleParts:s},u.getAttribute(l)||(u.addEventListener("mouseenter",function(){var c=this._hoverStyle,h=this.querySelector(r);h&&(h.style[c.activeStyleParts[0]]=c.activeStyleParts[1])}),u.addEventListener("mouseleave",function(){var c=this._hoverStyle,h=this.querySelector(r);h&&(t&&this.matches(t)?h.style[c.activeStyleParts[0]]=c.activeStyleParts[1]:h.style[c.inactiveStyleParts[0]]=c.inactiveStyleParts[1])}),u.setAttribute(l,!0))})}function Eye(e){var t=cB(e),r=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];return t.forEach(function(i){var a=uB(i);if(a){var n=bye.convertCssMatrix(a);r=wye.multiply(r,r,n)}}),r}function uB(e){var t=window.getComputedStyle(e,null),r=t.getPropertyValue("-webkit-transform")||t.getPropertyValue("-moz-transform")||t.getPropertyValue("-ms-transform")||t.getPropertyValue("-o-transform")||t.getPropertyValue("transform");return r==="none"?null:r.replace("matrix","").replace("3d","").slice(1,-1).split(",").map(function(i){return+i})}function cB(e){for(var t=[];kye(e);)t.push(e),e=e.parentNode,typeof ShadowRoot=="function"&&e instanceof ShadowRoot&&(e=e.host);return t}function kye(e){return e&&(e instanceof Element||e instanceof HTMLElement)}function Cye(e,t){return e&&t&&e.top===t.top&&e.left===t.left&&e.right===t.right&&e.bottom===t.bottom}hB.exports={getGraphDiv:Aye,isPlotDiv:Tye,removeElement:sB,addStyleRule:Mye,addRelatedStyleRule:lB,deleteRelatedStyleRule:Dye,setStyleOnHover:Sye,getFullTransformMatrix:Eye,getElementTransformMatrix:uB,getElementAndAncestors:cB,equalDomRects:Cye}});var Rv=X((eQe,fB)=>{"use strict";fB.exports={mode:{valType:"enumerated",dflt:"afterall",values:["immediate","next","afterall"]},direction:{valType:"enumerated",values:["forward","reverse"],dflt:"forward"},fromcurrent:{valType:"boolean",dflt:!1},frame:{duration:{valType:"number",min:0,dflt:500},redraw:{valType:"boolean",dflt:!0}},transition:{duration:{valType:"number",min:0,dflt:500,editType:"none"},easing:{valType:"enumerated",dflt:"cubic-in-out",values:["linear","quad","cubic","sin","exp","circle","elastic","back","bounce","linear-in","quad-in","cubic-in","sin-in","exp-in","circle-in","elastic-in","back-in","bounce-in","linear-out","quad-out","cubic-out","sin-out","exp-out","circle-out","elastic-out","back-out","bounce-out","linear-in-out","quad-in-out","cubic-in-out","sin-in-out","exp-in-out","circle-in-out","elastic-in-out","back-in-out","bounce-in-out"],editType:"none"},ordering:{valType:"enumerated",values:["layout first","traces first"],dflt:"layout first",editType:"none"}}}});var Is=X((tQe,_B)=>{"use strict";var pB=Ta().extendFlat,Fye=Gh(),mB={valType:"flaglist",extras:["none"],flags:["calc","clearAxisTypes","plot","style","markerSize","colorbars"]},vB={valType:"flaglist",extras:["none"],flags:["calc","plot","legend","ticks","axrange","layoutstyle","modebar","camera","arraydraw","colorbars"]},Pye=mB.flags.slice().concat(["fullReplot"]),Iye=vB.flags.slice().concat("layoutReplot");_B.exports={traces:mB,layout:vB,traceFlags:function(){return dB(Pye)},layoutFlags:function(){return dB(Iye)},update:function(e,t){var r=t.editType;if(r&&r!=="none")for(var i=r.split("+"),a=0;a{"use strict";m7.dash={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",editType:"style"};m7.pattern={shape:{valType:"enumerated",values:["","/","\\","x","-","|","+","."],dflt:"",arrayOk:!0,editType:"style"},path:{valType:"string",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"}});var v7={};Zi(v7,{DATE_FORMAT_LINK:()=>zye,FORMAT_LINK:()=>Lye});var Lye,zye,g7=Vi(()=>{"use strict";Lye="https://github.com/d3/d3-format/tree/v1.4.5#d3-format",zye="https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format"});var tc=X(Zp=>{"use strict";var{DATE_FORMAT_LINK:Rye,FORMAT_LINK:Bye}=(g7(),ct(v7)),qye=["Variables that can't be found will be replaced with the specifier.",'For example, a template of "data: %{x}, %{y}" will result in a value of "data: 1, %{y}" if x is 1 and y is missing.',"Variables with an undefined value will be replaced with the fallback value."].join(" ");function Oye({supportOther:e}={}){return["Variables are inserted using %{variable},",'for example "y: %{y}"'+(e?" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown.":"."),`Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}".`,Bye,"for details on the formatting syntax.",`Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}".`,Rye,"for details on the date formatting syntax.",qye].join(" ")}Zp.templateFormatStringDescription=Oye;Zp.hovertemplateAttrs=({editType:e="none",arrayOk:t}={},r={})=>nr({valType:"string",dflt:"",editType:e},t!==!1?{arrayOk:!0}:{});Zp.texttemplateAttrs=({editType:e="calc",arrayOk:t}={},r={})=>nr({valType:"string",dflt:"",editType:e},t!==!1?{arrayOk:!0}:{});Zp.shapeTexttemplateAttrs=({editType:e="arraydraw",newshape:t}={},r={})=>({valType:"string",dflt:"",editType:e});Zp.templatefallbackAttrs=({editType:e="none"}={})=>({valType:"any",dflt:"-",editType:e})});var Tx=X((nQe,MB)=>{"use strict";function Wh(e,t){return t?t.d2l(e):e}function xB(e,t){return t?t.l2d(e):e}function Nye(e){return e.x0}function Vye(e){return e.x1}function Uye(e){return e.y0}function Gye(e){return e.y1}function bB(e){return e.x0shift||0}function wB(e){return e.x1shift||0}function AB(e){return e.y0shift||0}function TB(e){return e.y1shift||0}function wx(e,t){return Wh(e.x1,t)+wB(e)-Wh(e.x0,t)-bB(e)}function Ax(e,t,r){return Wh(e.y1,r)+TB(e)-Wh(e.y0,r)-AB(e)}function jye(e,t){return Math.abs(wx(e,t))}function $ye(e,t,r){return Math.abs(Ax(e,t,r))}function Hye(e,t,r){return e.type!=="line"?void 0:Math.sqrt(Math.pow(wx(e,t),2)+Math.pow(Ax(e,t,r),2))}function Zye(e,t){return xB((Wh(e.x1,t)+wB(e)+Wh(e.x0,t)+bB(e))/2,t)}function Yye(e,t,r){return xB((Wh(e.y1,r)+TB(e)+Wh(e.y0,r)+AB(e))/2,r)}function Wye(e,t,r){return e.type!=="line"?void 0:Ax(e,t,r)/wx(e,t)}var Xye=["x0","x1","y0","y1","dy","height","ycenter"],Kye=["x0","x1","y0","y1","dx","width","xcenter"];MB.exports={x0:Nye,x1:Vye,y0:Uye,y1:Gye,slope:Wye,dx:wx,dy:Ax,width:jye,height:$ye,length:Hye,xcenter:Zye,ycenter:Yye,simpleXVariables:Xye,simpleYVariables:Kye}});var EB=X((oQe,SB)=>{"use strict";var Jye=Is().overrideAll,U0=Go(),DB=to(),Qye=Zc().dash,Xh=Ta().extendFlat,{shapeTexttemplateAttrs:e2e,templatefallbackAttrs:t2e}=tc(),r2e=Tx();SB.exports=Jye({newshape:{visible:Xh({},U0.visible,{}),showlegend:{valType:"boolean",dflt:!1},legend:Xh({},U0.legend,{}),legendgroup:Xh({},U0.legendgroup,{}),legendgrouptitle:{text:Xh({},U0.legendgrouptitle.text,{}),font:DB({})},legendrank:Xh({},U0.legendrank,{}),legendwidth:Xh({},U0.legendwidth,{}),line:{color:{valType:"color"},width:{valType:"number",min:0,dflt:4},dash:Xh({},Qye,{dflt:"solid"})},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd"},opacity:{valType:"number",min:0,max:1,dflt:1},layer:{valType:"enumerated",values:["below","above","between"],dflt:"above"},drawdirection:{valType:"enumerated",values:["ortho","horizontal","vertical","diagonal"],dflt:"diagonal"},name:Xh({},U0.name,{}),label:{text:{valType:"string",dflt:""},texttemplate:e2e({newshape:!0},{keys:Object.keys(r2e)}),texttemplatefallback:t2e({editType:"arraydraw"}),font:DB({}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"]},textangle:{valType:"angle",dflt:"auto"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto"},yanchor:{valType:"enumerated",values:["top","middle","bottom"]},padding:{valType:"number",dflt:3,min:0}}},activeshape:{fillcolor:{valType:"color",dflt:"rgb(255,0,255)",description:"Sets the color filling the active shape' interior."},opacity:{valType:"number",min:0,max:1,dflt:.5}}},"none","from-root")});var CB=X((sQe,kB)=>{"use strict";var i2e=Zc().dash,a2e=Ta().extendFlat;kB.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:a2e({},i2e,{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"}}});var Mx=X((lQe,FB)=>{"use strict";FB.exports=function(e){var t=e.editType;return{t:{valType:"number",dflt:0,editType:t},r:{valType:"number",dflt:0,editType:t},b:{valType:"number",dflt:0,editType:t},l:{valType:"number",dflt:0,editType:t},editType:t}}});var Yp=X((uQe,zB)=>{"use strict";var y7=to(),n2e=Rv(),Dx=ec(),PB=EB(),IB=CB(),o2e=Mx(),LB=Ta().extendFlat,Sx=y7({editType:"calc"});Sx.family.dflt='"Open Sans", verdana, arial, sans-serif';Sx.size.dflt=12;Sx.color.dflt=Dx.defaultLine;zB.exports={font:Sx,title:{text:{valType:"string",editType:"layoutstyle"},font:y7({editType:"layoutstyle"}),subtitle:{text:{valType:"string",editType:"layoutstyle"},font:y7({editType:"layoutstyle"}),editType:"layoutstyle"},xref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle"},yref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle"},x:{valType:"number",min:0,max:1,dflt:.5,editType:"layoutstyle"},y:{valType:"number",min:0,max:1,dflt:"auto",editType:"layoutstyle"},xanchor:{valType:"enumerated",dflt:"auto",values:["auto","left","center","right"],editType:"layoutstyle"},yanchor:{valType:"enumerated",dflt:"auto",values:["auto","top","middle","bottom"],editType:"layoutstyle"},pad:LB(o2e({editType:"layoutstyle"}),{}),automargin:{valType:"boolean",dflt:!1,editType:"plot"},editType:"layoutstyle"},uniformtext:{mode:{valType:"enumerated",values:[!1,"hide","show"],dflt:!1,editType:"plot"},minsize:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"},autosize:{valType:"boolean",dflt:!1,editType:"none"},width:{valType:"number",min:10,dflt:700,editType:"plot"},height:{valType:"number",min:10,dflt:450,editType:"plot"},minreducedwidth:{valType:"number",min:2,dflt:64,editType:"plot"},minreducedheight:{valType:"number",min:2,dflt:64,editType:"plot"},margin:{l:{valType:"number",min:0,dflt:80,editType:"plot"},r:{valType:"number",min:0,dflt:80,editType:"plot"},t:{valType:"number",min:0,dflt:100,editType:"plot"},b:{valType:"number",min:0,dflt:80,editType:"plot"},pad:{valType:"number",min:0,dflt:0,editType:"plot"},autoexpand:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},computed:{valType:"any",editType:"none"},paper_bgcolor:{valType:"color",dflt:Dx.background,editType:"plot"},plot_bgcolor:{valType:"color",dflt:Dx.background,editType:"layoutstyle"},autotypenumbers:{valType:"enumerated",values:["convert types","strict"],dflt:"convert types",editType:"calc"},separators:{valType:"string",editType:"plot"},showlegend:{valType:"boolean",editType:"legend"},colorway:{valType:"colorlist",dflt:Dx.defaults,editType:"calc"},datarevision:{valType:"any",editType:"calc"},uirevision:{valType:"any",editType:"none"},editrevision:{valType:"any",editType:"none"},selectionrevision:{valType:"any",editType:"none"},template:{valType:"any",editType:"calc"},newshape:PB.newshape,activeshape:PB.activeshape,newselection:IB.newselection,activeselection:IB.activeselection,meta:{valType:"any",arrayOk:!0,editType:"plot"},transition:LB({},n2e.transition,{editType:"none"})}});var RB=X(()=>{(function(){if(!document.getElementById("ce8d464691048653ffe3a57c6c18ab566e8366f186677868cf724621a857b4fe")){var e=document.createElement("style");e.id="ce8d464691048653ffe3a57c6c18ab566e8366f186677868cf724621a857b4fe",e.textContent='.maplibregl-map{font:12px/20px Helvetica Neue,Arial,Helvetica,sans-serif;overflow:hidden;position:relative;-webkit-tap-highlight-color:rgb(0 0 0/0);-webkit-touch-callout:none}.maplibregl-canvas{position:absolute;left:0;top:0}.maplibregl-map:fullscreen{width:100%;height:100%}.maplibregl-ctrl-group button.maplibregl-ctrl-compass{touch-action:none}.maplibregl-canvas-container.maplibregl-interactive,.maplibregl-ctrl-group button.maplibregl-ctrl-compass{cursor:grab;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-canvas-container.maplibregl-interactive.maplibregl-track-pointer{cursor:pointer}.maplibregl-canvas-container.maplibregl-interactive:active,.maplibregl-ctrl-group button.maplibregl-ctrl-compass:active{cursor:grabbing}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-canvas-container.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:pinch-zoom}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:none}.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures,.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-ctrl-bottom-left,.maplibregl-ctrl-bottom-right,.maplibregl-ctrl-top-left,.maplibregl-ctrl-top-right{position:absolute;pointer-events:none;z-index:2}.maplibregl-ctrl-top-left{top:0;left:0}.maplibregl-ctrl-top-right{top:0;right:0}.maplibregl-ctrl-bottom-left{bottom:0;left:0}.maplibregl-ctrl-bottom-right{right:0;bottom:0}.maplibregl-ctrl{clear:both;pointer-events:auto;transform:translate(0)}.maplibregl-ctrl-top-left .maplibregl-ctrl{margin:10px 0 0 10px;float:left}.maplibregl-ctrl-top-right .maplibregl-ctrl{margin:10px 10px 0 0;float:right}.maplibregl-ctrl-bottom-left .maplibregl-ctrl{margin:0 0 10px 10px;float:left}.maplibregl-ctrl-bottom-right .maplibregl-ctrl{margin:0 10px 10px 0;float:right}.maplibregl-ctrl-group{border-radius:4px;background:#fff}.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px rgba(0,0,0,.1)}@media (forced-colors:active){.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px ButtonText}}.maplibregl-ctrl-group button{width:29px;height:29px;display:block;padding:0;outline:none;border:0;box-sizing:border-box;background-color:transparent;cursor:pointer}.maplibregl-ctrl button{-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-ctrl-group button+button{border-top:1px solid #ddd}.maplibregl-ctrl button .maplibregl-ctrl-icon{display:block;width:100%;height:100%;background-repeat:no-repeat;background-position:50%}@media (forced-colors:active){.maplibregl-ctrl-icon{background-color:transparent}.maplibregl-ctrl-group button+button{border-top:1px solid ButtonText}}.maplibregl-ctrl button::-moz-focus-inner{border:0;padding:0}.maplibregl-ctrl-attrib-button:focus,.maplibregl-ctrl-group button:focus{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl button:disabled{cursor:not-allowed}.maplibregl-ctrl button:disabled .maplibregl-ctrl-icon{opacity:.25}@media (hover:hover){.maplibregl-ctrl button:not(:disabled):hover{background-color:rgba(0,0,0,.05)}}.maplibregl-ctrl button:not(:disabled):active{background-color:rgba(0,0,0,.05)}.maplibregl-ctrl-group button:focus:focus-visible{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl-group button:focus:not(:focus-visible){box-shadow:none}.maplibregl-ctrl-group button:focus:first-child{border-radius:4px 4px 0 0}.maplibregl-ctrl-group button:focus:last-child{border-radius:0 0 4px 4px}.maplibregl-ctrl-group button:focus:only-child{border-radius:inherit}.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M10%2013c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h9c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M14.5%208.5c-.75%200-1.5.75-1.5%201.5v3h-3c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h3v3c0%20.75.75%201.5%201.5%201.5S16%2019.75%2016%2019v-3h3c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013h-3v-3c0-.75-.75-1.5-1.5-1.5%22%2F%3E%3C%2Fsvg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M10%2013c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h9c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M14.5%208.5c-.75%200-1.5.75-1.5%201.5v3h-3c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h3v3c0%20.75.75%201.5%201.5%201.5S16%2019.75%2016%2019v-3h3c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013h-3v-3c0-.75-.75-1.5-1.5-1.5%22%2F%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M10%2013c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h9c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M14.5%208.5c-.75%200-1.5.75-1.5%201.5v3h-3c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h3v3c0%20.75.75%201.5%201.5%201.5S16%2019.75%2016%2019v-3h3c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013h-3v-3c0-.75-.75-1.5-1.5-1.5%22%2F%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M24%2016v5.5c0%201.75-.75%202.5-2.5%202.5H16v-1l3-1.5-4-5.5%201-1%205.5%204%201.5-3zM6%2016l1.5%203%205.5-4%201%201-4%205.5%203%201.5v1H7.5C5.75%2024%205%2023.25%205%2021.5V16zm7-11v1l-3%201.5%204%205.5-1%201-5.5-4L6%2013H5V7.5C5%205.75%205.75%205%207.5%205zm11%202.5c0-1.75-.75-2.5-2.5-2.5H16v1l3%201.5-4%205.5%201%201%205.5-4%201.5%203h1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M18.5%2016c-1.75%200-2.5.75-2.5%202.5V24h1l1.5-3%205.5%204%201-1-4-5.5%203-1.5v-1zM13%2018.5c0-1.75-.75-2.5-2.5-2.5H5v1l3%201.5L4%2024l1%201%205.5-4%201.5%203h1zm3-8c0%201.75.75%202.5%202.5%202.5H24v-1l-3-1.5L25%205l-1-1-5.5%204L17%205h-1zM10.5%2013c1.75%200%202.5-.75%202.5-2.5V5h-1l-1.5%203L5%204%204%205l4%205.5L5%2012v1z%22%2F%3E%3C%2Fsvg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M24%2016v5.5c0%201.75-.75%202.5-2.5%202.5H16v-1l3-1.5-4-5.5%201-1%205.5%204%201.5-3zM6%2016l1.5%203%205.5-4%201%201-4%205.5%203%201.5v1H7.5C5.75%2024%205%2023.25%205%2021.5V16zm7-11v1l-3%201.5%204%205.5-1%201-5.5-4L6%2013H5V7.5C5%205.75%205.75%205%207.5%205zm11%202.5c0-1.75-.75-2.5-2.5-2.5H16v1l3%201.5-4%205.5%201%201%205.5-4%201.5%203h1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M18.5%2016c-1.75%200-2.5.75-2.5%202.5V24h1l1.5-3%205.5%204%201-1-4-5.5%203-1.5v-1zM13%2018.5c0-1.75-.75-2.5-2.5-2.5H5v1l3%201.5L4%2024l1%201%205.5-4%201.5%203h1zm3-8c0%201.75.75%202.5%202.5%202.5H24v-1l-3-1.5L25%205l-1-1-5.5%204L17%205h-1zM10.5%2013c1.75%200%202.5-.75%202.5-2.5V5h-1l-1.5%203L5%204%204%205l4%205.5L5%2012v1z%22%2F%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M24%2016v5.5c0%201.75-.75%202.5-2.5%202.5H16v-1l3-1.5-4-5.5%201-1%205.5%204%201.5-3zM6%2016l1.5%203%205.5-4%201%201-4%205.5%203%201.5v1H7.5C5.75%2024%205%2023.25%205%2021.5V16zm7-11v1l-3%201.5%204%205.5-1%201-5.5-4L6%2013H5V7.5C5%205.75%205.75%205%207.5%205zm11%202.5c0-1.75-.75-2.5-2.5-2.5H16v1l3%201.5-4%205.5%201%201%205.5-4%201.5%203h1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M18.5%2016c-1.75%200-2.5.75-2.5%202.5V24h1l1.5-3%205.5%204%201-1-4-5.5%203-1.5v-1zM13%2018.5c0-1.75-.75-2.5-2.5-2.5H5v1l3%201.5L4%2024l1%201%205.5-4%201.5%203h1zm3-8c0%201.75.75%202.5%202.5%202.5H24v-1l-3-1.5L25%205l-1-1-5.5%204L17%205h-1zM10.5%2013c1.75%200%202.5-.75%202.5-2.5V5h-1l-1.5%203L5%204%204%205l4%205.5L5%2012v1z%22%2F%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22m10.5%2014%204-8%204%208z%22%2F%3E%3Cpath%20fill%3D%22%23ccc%22%20d%3D%22m10.5%2016%204%208%204-8z%22%2F%3E%3C%2Fsvg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22m10.5%2014%204-8%204%208z%22%2F%3E%3Cpath%20fill%3D%22%23ccc%22%20d%3D%22m10.5%2016%204%208%204-8z%22%2F%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22m10.5%2014%204-8%204%208z%22%2F%3E%3Cpath%20fill%3D%22%23ccc%22%20d%3D%22m10.5%2016%204%208%204-8z%22%2F%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-globe .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2222%22%20height%3D%2222%22%20fill%3D%22none%22%20stroke%3D%22%23333%22%20viewBox%3D%220%200%2022%2022%22%3E%3Ccircle%20cx%3D%2211%22%20cy%3D%2211%22%20r%3D%228.5%22%2F%3E%3Cpath%20d%3D%22M17.5%2011c0%204.819-3.02%208.5-6.5%208.5S4.5%2015.819%204.5%2011%207.52%202.5%2011%202.5s6.5%203.681%206.5%208.5Z%22%2F%3E%3Cpath%20d%3D%22M13.5%2011c0%202.447-.331%204.64-.853%206.206-.262.785-.562%201.384-.872%201.777-.314.399-.58.517-.775.517s-.461-.118-.775-.517c-.31-.393-.61-.992-.872-1.777C8.831%2015.64%208.5%2013.446%208.5%2011s.331-4.64.853-6.206c.262-.785.562-1.384.872-1.777.314-.399.58-.517.775-.517s.461.118.775.517c.31.393.61.992.872%201.777.522%201.565.853%203.76.853%206.206Z%22%2F%3E%3Cpath%20d%3D%22M11%207.5c-1.909%200-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3%201.3%200%200%201-.224-.138q.07-.058.224-.138c.299-.151.763-.302%201.379-.434C7.378%205.666%209.091%205.5%2011%205.5s3.622.166%204.845.428c.616.132%201.08.283%201.379.434.105.053.177.1.224.138q-.07.058-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm0%209c-1.909%200-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3%201.3%200%200%201-.224-.138%201.3%201.3%200%200%201%20.224-.138c.299-.151.763-.302%201.379-.434C7.378%2014.666%209.091%2014.5%2011%2014.5s3.622.166%204.845.428c.616.132%201.08.283%201.379.434.105.053.177.1.224.138a1.3%201.3%200%200%201-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm0-4c-2.46%200-4.672-.222-6.255-.574-.796-.177-1.406-.38-1.805-.59a1.5%201.5%200%200%201-.39-.272.3.3%200%200%201-.047-.064.3.3%200%200%201%20.048-.064c.066-.073.189-.167.389-.272.399-.21%201.009-.413%201.805-.59C6.328%209.722%208.54%209.5%2011%209.5s4.672.222%206.256.574c.795.177%201.405.38%201.804.59.2.105.323.2.39.272a.3.3%200%200%201%20.047.064.3.3%200%200%201-.048.064%201.4%201.4%200%200%201-.389.272c-.399.21-1.009.413-1.804.59-1.584.352-3.796.574-6.256.574Zm-8.501-1.51v.002zm0%20.018v.002zm17.002.002v-.002zm0-.018v-.002z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-globe-enabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2222%22%20height%3D%2222%22%20fill%3D%22none%22%20stroke%3D%22%2333b5e5%22%20viewBox%3D%220%200%2022%2022%22%3E%3Ccircle%20cx%3D%2211%22%20cy%3D%2211%22%20r%3D%228.5%22%2F%3E%3Cpath%20d%3D%22M17.5%2011c0%204.819-3.02%208.5-6.5%208.5S4.5%2015.819%204.5%2011%207.52%202.5%2011%202.5s6.5%203.681%206.5%208.5Z%22%2F%3E%3Cpath%20d%3D%22M13.5%2011c0%202.447-.331%204.64-.853%206.206-.262.785-.562%201.384-.872%201.777-.314.399-.58.517-.775.517s-.461-.118-.775-.517c-.31-.393-.61-.992-.872-1.777C8.831%2015.64%208.5%2013.446%208.5%2011s.331-4.64.853-6.206c.262-.785.562-1.384.872-1.777.314-.399.58-.517.775-.517s.461.118.775.517c.31.393.61.992.872%201.777.522%201.565.853%203.76.853%206.206Z%22%2F%3E%3Cpath%20d%3D%22M11%207.5c-1.909%200-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3%201.3%200%200%201-.224-.138q.07-.058.224-.138c.299-.151.763-.302%201.379-.434C7.378%205.666%209.091%205.5%2011%205.5s3.622.166%204.845.428c.616.132%201.08.283%201.379.434.105.053.177.1.224.138q-.07.058-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm0%209c-1.909%200-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3%201.3%200%200%201-.224-.138%201.3%201.3%200%200%201%20.224-.138c.299-.151.763-.302%201.379-.434C7.378%2014.666%209.091%2014.5%2011%2014.5s3.622.166%204.845.428c.616.132%201.08.283%201.379.434.105.053.177.1.224.138a1.3%201.3%200%200%201-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm0-4c-2.46%200-4.672-.222-6.255-.574-.796-.177-1.406-.38-1.805-.59a1.5%201.5%200%200%201-.39-.272.3.3%200%200%201-.047-.064.3.3%200%200%201%20.048-.064c.066-.073.189-.167.389-.272.399-.21%201.009-.413%201.805-.59C6.328%209.722%208.54%209.5%2011%209.5s4.672.222%206.256.574c.795.177%201.405.38%201.804.59.2.105.323.2.39.272a.3.3%200%200%201%20.047.064.3.3%200%200%201-.048.064%201.4%201.4%200%200%201-.389.272c-.399.21-1.009.413-1.804.59-1.584.352-3.796.574-6.256.574Zm-8.501-1.51v.002zm0%20.018v.002zm17.002.002v-.002zm0-.018v-.002z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-terrain .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2222%22%20height%3D%2222%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2022%2022%22%3E%3Cpath%20d%3D%22m1.754%2013.406%204.453-4.851%203.09%203.09%203.281%203.277.969-.969-3.309-3.312%203.844-4.121%206.148%206.886h1.082v-.855l-7.207-8.07-4.84%205.187L6.169%206.57l-5.48%205.965v.871ZM.688%2016.844h20.625v1.375H.688Zm0%200%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-terrain-enabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2222%22%20height%3D%2222%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2022%2022%22%3E%3Cpath%20d%3D%22m1.754%2013.406%204.453-4.851%203.09%203.09%203.281%203.277.969-.969-3.309-3.312%203.844-4.121%206.148%206.886h1.082v-.855l-7.207-8.07-4.84%205.187L6.169%206.57l-5.48%205.965v.871ZM.688%2016.844h20.625v1.375H.688Zm0%200%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23aaa%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3Cpath%20fill%3D%22red%22%20d%3D%22m14%205%201%201-9%209-1-1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23e58978%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23e54e33%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-waiting .maplibregl-ctrl-icon{animation:maplibregl-spin 2s linear infinite}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23999%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3Cpath%20fill%3D%22red%22%20d%3D%22m14%205%201%201-9%209-1-1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23e58978%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23e54e33%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23666%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3Cpath%20fill%3D%22red%22%20d%3D%22m14%205%201%201-9%209-1-1z%22%2F%3E%3C%2Fsvg%3E")}}@keyframes maplibregl-spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}a.maplibregl-ctrl-logo{width:88px;height:23px;margin:0 0 -4px -4px;display:block;background-repeat:no-repeat;cursor:pointer;overflow:hidden;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2288%22%20height%3D%2223%22%20fill%3D%22none%22%3E%3Cpath%20fill%3D%22%23000%22%20fill-opacity%3D%22.4%22%20fill-rule%3D%22evenodd%22%20d%3D%22M17.408%2016.796h-1.827l2.501-12.095h.198l3.324%206.533.988%202.19.988-2.19%203.258-6.533h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.929%205.644h-.098l-2.914-5.644-.757-1.71-.345%201.71zm1.958-3.42-.726%203.663a1.255%201.255%200%200%201-1.232%201.011h-1.827a1.255%201.255%200%200%201-1.229-1.509l2.501-12.095a1.255%201.255%200%200%201%201.23-1.001h.197a1.25%201.25%200%200%201%201.12.685l3.19%206.273%203.125-6.263a1.25%201.25%200%200%201%201.123-.695h.181a1.255%201.255%200%200%201%201.227.991l1.443%206.71a5%205%200%200%201%20.314-.787l.009-.016a4.6%204.6%200%200%201%201.777-1.887c.782-.46%201.668-.667%202.611-.667a4.6%204.6%200%200%201%201.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255%201.255%200%200%201%201.212.925%201.255%201.255%200%200%201%201.212-.925h1.711c.284%200%20.545.094.755.252.613-.3%201.312-.45%202.075-.45%201.356%200%202.557.445%203.482%201.4q.47.48.763%201.064V4.701a1.255%201.255%200%200%201%201.255-1.255h1.86A1.255%201.255%200%200%201%2054.44%204.7v9.194h2.217c.19%200%20.37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42%202.42%200%200%201-.682-1.71c0-.665.267-1.253.735-1.7a2.45%202.45%200%200%201%201.722-.674%202.43%202.43%200%200%201%201.705.675q.318.302.504.683V4.7a1.255%201.255%200%200%201%201.255-1.255h1.744A1.255%201.255%200%200%201%2065.812%204.7v3.335a4.8%204.8%200%200%201%201.526-.246c.938%200%201.817.214%202.59.69a4.47%204.47%200%200%201%201.67%201.743v-.98a1.255%201.255%200%200%201%201.256-1.256h1.777c.233%200%20.451.064.639.174a3.4%203.4%200%200%201%201.567-.372c.346%200%20.861.02%201.285.232a1.25%201.25%200%200%201%20.689%201.004%204.7%204.7%200%200%201%20.853-.588c.795-.44%201.675-.647%202.61-.647%201.385%200%202.65.39%203.525%201.396.836.938%201.168%202.173%201.168%203.528q-.001.515-.056%201.051a1.255%201.255%200%200%201-.947%201.09l.408.952a1.255%201.255%200%200%201-.477%201.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06%200-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8%205.8%200%200%201-.548-2.512q0-.429.053-.843a1.3%201.3%200%200%201-.333-.086l-.166-.004c-.223%200-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255%201.255%200%200%201-1.256%201.256h-1.777a1.255%201.255%200%200%201-1.256-1.256V15.69l-.032.057a4.8%204.8%200%200%201-1.86%201.833%205.04%205.04%200%200%201-2.484.634%204.5%204.5%200%200%201-1.935-.424%201.25%201.25%200%200%201-.764.258h-1.71a1.255%201.255%200%200%201-1.256-1.255V7.687a2.4%202.4%200%200%201-.428.625c.253.23.412.561.412.93v7.553a1.255%201.255%200%200%201-1.256%201.255h-1.843a1.25%201.25%200%200%201-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255%201.255%200%200%201-1.256-1.255v-1.251l-.061.117a4.7%204.7%200%200%201-1.782%201.884%204.77%204.77%200%200%201-2.485.67%205.6%205.6%200%200%201-1.485-.188l.009%202.764a1.255%201.255%200%200%201-1.255%201.259h-1.729a1.255%201.255%200%200%201-1.255-1.255v-3.537a1.255%201.255%200%200%201-1.167.793h-1.679a1.25%201.25%200%200%201-.77-.263%204.5%204.5%200%200%201-1.945.429c-.885%200-1.724-.21-2.495-.632l-.017-.01a5%205%200%200%201-1.081-.836%201.255%201.255%200%200%201-1.254%201.312h-1.81a1.255%201.255%200%200%201-1.228-.99l-.782-3.625-2.044%203.939a1.25%201.25%200%200%201-1.115.676h-.098a1.25%201.25%200%200%201-1.116-.68l-2.061-3.994zM35.92%2016.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033%201.332h1.678V9.242h-1.694l-.033%201.267q-.133-.329-.526-.658l-.032-.028a3.2%203.2%200%200%200-.668-.428l-.27-.12a3.3%203.3%200%200%200-1.235-.23q-1.136-.001-1.974.493a3.36%203.36%200%200%200-1.3%201.382q-.445.89-.444%202.074%200%201.2.51%202.107a3.8%203.8%200%200%200%201.382%201.381%203.9%203.9%200%200%200%201.893.477q.795%200%201.455-.33zm-2.789-5.38q-.576.675-.575%201.762%200%201.102.559%201.794.576.675%201.645.675a2.25%202.25%200%200%200%20.934-.19%202.2%202.2%200%200%200%20.468-.29l.178-.161a2.2%202.2%200%200%200%20.397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2%202.2%200%200%200-.633-.709l-.13-.086-.047-.028a2.1%202.1%200%200%200-1.073-.285q-1.052%200-1.629.692zm2.316%202.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96%200%200%200-.353-.389.85.85%200%200%200-.464-.127c-.4%200-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945%200%20.506.122.801.27.99.097.11.266.224.68.224.303%200%20.504-.09.687-.269zm7.545%201.705a2.6%202.6%200%200%200%20.331.423q.319.33.755.548l.173.074q.65.255%201.49.255%201.02%200%201.844-.493a3.45%203.45%200%200%200%201.316-1.4q.493-.904.493-2.089%200-1.909-.988-2.913-.988-1.02-2.584-1.02-.898%200-1.575.347a3%203%200%200%200-.415.262l-.199.166a3.4%203.4%200%200%200-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296%201.119.297%201.07%200%201.645-.675.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.435%200-.835.16a2%202%200%200%200-.284.136%202%202%200%200%200-.363.254%202.2%202.2%200%200%200-.46.569l-.082.162a2.6%202.6%200%200%200-.213%201.072v.115q0%20.707.296%201.267l.135.211zm.964-.818a1.1%201.1%200%200%200%20.367.385.94.94%200%200%200%20.476.118c.423%200%20.59-.117.687-.23.159-.194.28-.478.28-.95%200-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1%201%200%200%200-.503.135l-.012.007a.86.86%200%200%200-.335.343c-.073.133-.132.324-.132.614v.115a1.4%201.4%200%200%200%20.14.66zm15.7-6.222q.347-.346.346-.856a1.05%201.05%200%200%200-.345-.79%201.18%201.18%200%200%200-.84-.329q-.51%200-.855.33a1.05%201.05%200%200%200-.346.79q0%20.51.346.855.345.346.856.346.51%200%20.839-.346zm4.337%209.314.033-1.332q.191.403.59.747l.098.081a4%204%200%200%200%20.316.224l.223.122a3.2%203.2%200%200%200%201.44.322%203.8%203.8%200%200%200%201.875-.477%203.5%203.5%200%200%200%201.382-1.366q.527-.89.526-2.09%200-1.184-.444-2.073a3.24%203.24%200%200%200-1.283-1.399q-.823-.51-1.942-.51a3.5%203.5%200%200%200-1.527.344l-.086.043-.165.09a3%203%200%200%200-.33.214q-.432.315-.656.707a2%202%200%200%200-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5%202.5%200%200%200%20.566.7q.117.098.245.18l.144.08a2.1%202.1%200%200%200%20.975.232q1.07%200%201.645-.675.576-.69.576-1.778%200-1.102-.576-1.777-.56-.691-1.645-.692a2.2%202.2%200%200%200-1.015.235q-.22.113-.415.282l-.15.142a2.1%202.1%200%200%200-.42.594q-.223.479-.223%201.1v.115q0%20.705.293%201.26zm2.616-.293c.157-.191.28-.479.28-.967%200-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87%200%200%200-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0%20.285.057.499.144.669a1.1%201.1%200%200%200%20.367.405c.137.082.28.123.455.123.423%200%20.59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493%200%20.642.099l.247-1.794q-.196-.099-.717-.099a2.3%202.3%200%200%200-.545.063%202%202%200%200%200-.411.148%202.2%202.2%200%200%200-.4.249%202.5%202.5%200%200%200-.485.499%202.7%202.7%200%200%200-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5%201.5%200%200%201%20.466-.636%202.5%202.5%200%200%201%20.399-.253%202%202%200%200%201%20.224-.099zm9.784%202.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46%203.46%200%200%200-1.4%201.382q-.493.906-.493%202.106%200%201.07.428%201.975.428.89%201.332%201.432.906.526%202.255.526.973%200%201.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954%200-1.497-.444a1.6%201.6%200%200%201-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1%201%200%200%200-.156-.176q-.46-.428-1.316-.428-.986%200-1.494.604-.379.45-.494%201.234zm-27.053%202.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z%22%2F%3E%3Cpath%20fill%3D%22%23fff%22%20d%3D%22m19.63%2011.151-.757-1.71-.345%201.71-1.12%205.644h-1.827L18.083%204.7h.197l3.325%206.533.988%202.19.988-2.19L26.839%204.7h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.93%205.644h-.098l-2.913-5.644zm14.836%205.81q-1.02%200-1.893-.478a3.8%203.8%200%200%201-1.381-1.382q-.51-.906-.51-2.106%200-1.185.444-2.074a3.36%203.36%200%200%201%201.3-1.382q.839-.494%201.974-.494a3.3%203.3%200%200%201%201.234.231%203.3%203.3%200%200%201%20.97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02%201.053a3.17%203.17%200%200%201-1.662.444zm.296-1.482q.938%200%201.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2%202.2%200%200%200-.807-.872%202.1%202.1%200%200%200-1.119-.313q-1.053%200-1.629.692-.575.675-.575%201.76%200%201.103.559%201.795.577.675%201.645.675zm6.521-6.237h1.711v1.4q.906-1.597%202.83-1.597%201.596%200%202.584%201.02.988%201.005.988%202.914%200%201.185-.493%202.09a3.46%203.46%200%200%201-1.316%201.399%203.5%203.5%200%200%201-1.844.493q-.954%200-1.662-.329a2.67%202.67%200%200%201-1.086-.97l.017%205.134h-1.728zm4.048%206.22q1.07%200%201.645-.674.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.592%200-1.12.296-.51.28-.822.823-.296.527-.296%201.234v.115q0%20.708.296%201.267.313.543.823.855.51.296%201.119.297z%22%2F%3E%3Cpath%20fill%3D%22%23e1e3e9%22%20d%3D%22M51.325%204.7h1.86v10.45h3.473v1.646h-5.333zm7.12%204.542h1.843v7.553h-1.843zm.905-1.415a1.16%201.16%200%200%201-.856-.346%201.17%201.17%200%200%201-.346-.856%201.05%201.05%200%200%201%20.346-.79q.346-.329.856-.329.494%200%20.839.33a1.05%201.05%200%200%201%20.345.79%201.16%201.16%200%200%201-.345.855q-.33.346-.84.346zm7.875%209.133a3.17%203.17%200%200%201-1.662-.444q-.723-.46-1.004-1.053l-.033%201.332h-1.71V4.701h1.743v4.657l-.082%201.283q.279-.658%201.086-1.119a3.5%203.5%200%200%201%201.778-.477q1.119%200%201.942.51a3.24%203.24%200%200%201%201.283%201.4q.445.888.444%202.072%200%201.201-.526%202.09a3.5%203.5%200%200%201-1.382%201.366%203.8%203.8%200%200%201-1.876.477zm-.296-1.481q1.069%200%201.645-.675.577-.69.577-1.778%200-1.102-.577-1.776-.56-.691-1.645-.692a2.12%202.12%200%200%200-1.58.659q-.642.641-.642%201.694v.115q0%20.71.296%201.267a2.4%202.4%200%200%200%20.807.872%202.1%202.1%200%200%200%201.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14%202.14%200%200%201%201.349-.46q.527%200%20.724.098l-.247%201.794q-.149-.099-.642-.099-.774%200-1.416.494-.626.493-.626%201.58v3.883h-1.777V9.242zm9.534%207.718q-1.35%200-2.255-.526-.904-.543-1.332-1.432a4.6%204.6%200%200%201-.428-1.975q0-1.2.493-2.106a3.46%203.46%200%200%201%201.4-1.382q.889-.495%202.007-.494%201.744%200%202.584.97.855.956.856%202.7%200%20.444-.05.92h-5.43q.18%201.005.708%201.45.542.443%201.497.443.79%200%201.3-.131a4%204%200%200%200%20.938-.362l.542%201.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728%200-1.991%201.86z%22%2F%3E%3Cpath%20d%3D%22M5.074%2015.948a.484.657%200%200%200-.486.659v1.84a.484.657%200%200%200%20.486.659h4.101a.484.657%200%200%200%20.486-.659v-1.84a.484.657%200%200%200-.486-.659zm3.56%201.16H5.617v.838h3.017z%22%20style%3D%22fill%3A%23fff%3Bfill-rule%3Aevenodd%3Bstroke-width%3A1.03600001%22%2F%3E%3Cg%20style%3D%22stroke-width%3A1.12603545%22%3E%3Cpath%20d%3D%22M-9.408-1.416c-3.833-.025-7.056%202.912-7.08%206.615-.02%203.08%201.653%204.832%203.107%206.268.903.892%201.721%201.74%202.32%202.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87%201.87%200%200%200-.362%201.121l-.011%201.877c-.003.402.104.787.347%201.125.244.338.688.653%201.23.656l4.142.028c.542.003.99-.306%201.238-.641a1.87%201.87%200%200%200%20.363-1.121l.012-1.875a1.87%201.87%200%200%200-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145%201.425-1.983%202.348-2.87%201.473-1.414%203.18-3.149%203.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006%201.1v.002c3.274.02%205.92%202.532%205.9%205.6-.017%202.706-1.39%204.026-2.863%205.44-1.034.994-2.118%202.033-2.814%203.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34%200%200%201-.226.084.34.34%200%200%201-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067%202.7-5.545%205.975-5.523m-.02%202.826c-1.62-.01-2.944%201.315-2.955%202.96-.01%201.646%201.295%202.988%202.916%202.999h.002c1.621.01%202.943-1.316%202.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005%201.1c1.017.006%201.829.83%201.822%201.89s-.83%201.874-1.848%201.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874%201.848-1.868m-2.155%2011.857%204.14.025c.271.002.49.305.487.676l-.013%201.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668%22%20style%3D%22color%3A%23000%3Bfont-style%3Anormal%3Bfont-variant%3Anormal%3Bfont-weight%3A400%3Bfont-stretch%3Anormal%3Bfont-size%3Amedium%3Bline-height%3Anormal%3Bfont-family%3Asans-serif%3Bfont-variant-ligatures%3Anormal%3Bfont-variant-position%3Anormal%3Bfont-variant-caps%3Anormal%3Bfont-variant-numeric%3Anormal%3Bfont-variant-alternates%3Anormal%3Bfont-feature-settings%3Anormal%3Btext-indent%3A0%3Btext-align%3Astart%3Btext-decoration%3Anone%3Btext-decoration-line%3Anone%3Btext-decoration-style%3Asolid%3Btext-decoration-color%3A%23000%3Bletter-spacing%3Anormal%3Bword-spacing%3Anormal%3Btext-transform%3Anone%3Bwriting-mode%3Alr-tb%3Bdirection%3Altr%3Btext-orientation%3Amixed%3Bdominant-baseline%3Aauto%3Bbaseline-shift%3Abaseline%3Btext-anchor%3Astart%3Bwhite-space%3Anormal%3Bshape-padding%3A0%3Bclip-rule%3Aevenodd%3Bdisplay%3Ainline%3Boverflow%3Avisible%3Bvisibility%3Avisible%3Bopacity%3A1%3Bisolation%3Aauto%3Bmix-blend-mode%3Anormal%3Bcolor-interpolation%3AsRGB%3Bcolor-interpolation-filters%3AlinearRGB%3Bsolid-color%3A%23000%3Bsolid-opacity%3A1%3Bvector-effect%3Anone%3Bfill%3A%23000%3Bfill-opacity%3A.4%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-linecap%3Abutt%3Bstroke-linejoin%3Amiter%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-dashoffset%3A0%3Bstroke-opacity%3A1%3Bcolor-rendering%3Aauto%3Bimage-rendering%3Aauto%3Bshape-rendering%3Aauto%3Btext-rendering%3Aauto%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-9.415-.316C-12.69-.338-15.37%202.14-15.39%205.207c-.017%202.716%201.326%204.041%202.78%205.477%201.013%201%202.081%202.055%202.78%203.67l.092.076a.34.34%200%200%200%20.225.086.34.34%200%200%200%20.227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6%201.78-2.64%202.814-3.634%201.473-1.414%202.847-2.733%202.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057%208.784c1.621.011%202.944-1.315%202.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945%201.315-2.955%202.96s1.295%202.989%202.916%203%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23e1e3e9%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-11.594%2015.465c-.27-.002-.492.297-.494.668l-.012%201.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23fff%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E")}a.maplibregl-ctrl-logo.maplibregl-compact{width:14px}@media (forced-colors:active){a.maplibregl-ctrl-logo{background-color:transparent;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2288%22%20height%3D%2223%22%20fill%3D%22none%22%3E%3Cpath%20fill%3D%22%23000%22%20fill-opacity%3D%22.4%22%20fill-rule%3D%22evenodd%22%20d%3D%22M17.408%2016.796h-1.827l2.501-12.095h.198l3.324%206.533.988%202.19.988-2.19%203.258-6.533h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.929%205.644h-.098l-2.914-5.644-.757-1.71-.345%201.71zm1.958-3.42-.726%203.663a1.255%201.255%200%200%201-1.232%201.011h-1.827a1.255%201.255%200%200%201-1.229-1.509l2.501-12.095a1.255%201.255%200%200%201%201.23-1.001h.197a1.25%201.25%200%200%201%201.12.685l3.19%206.273%203.125-6.263a1.25%201.25%200%200%201%201.123-.695h.181a1.255%201.255%200%200%201%201.227.991l1.443%206.71a5%205%200%200%201%20.314-.787l.009-.016a4.6%204.6%200%200%201%201.777-1.887c.782-.46%201.668-.667%202.611-.667a4.6%204.6%200%200%201%201.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255%201.255%200%200%201%201.212.925%201.255%201.255%200%200%201%201.212-.925h1.711c.284%200%20.545.094.755.252.613-.3%201.312-.45%202.075-.45%201.356%200%202.557.445%203.482%201.4q.47.48.763%201.064V4.701a1.255%201.255%200%200%201%201.255-1.255h1.86A1.255%201.255%200%200%201%2054.44%204.7v9.194h2.217c.19%200%20.37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42%202.42%200%200%201-.682-1.71c0-.665.267-1.253.735-1.7a2.45%202.45%200%200%201%201.722-.674%202.43%202.43%200%200%201%201.705.675q.318.302.504.683V4.7a1.255%201.255%200%200%201%201.255-1.255h1.744A1.255%201.255%200%200%201%2065.812%204.7v3.335a4.8%204.8%200%200%201%201.526-.246c.938%200%201.817.214%202.59.69a4.47%204.47%200%200%201%201.67%201.743v-.98a1.255%201.255%200%200%201%201.256-1.256h1.777c.233%200%20.451.064.639.174a3.4%203.4%200%200%201%201.567-.372c.346%200%20.861.02%201.285.232a1.25%201.25%200%200%201%20.689%201.004%204.7%204.7%200%200%201%20.853-.588c.795-.44%201.675-.647%202.61-.647%201.385%200%202.65.39%203.525%201.396.836.938%201.168%202.173%201.168%203.528q-.001.515-.056%201.051a1.255%201.255%200%200%201-.947%201.09l.408.952a1.255%201.255%200%200%201-.477%201.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06%200-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8%205.8%200%200%201-.548-2.512q0-.429.053-.843a1.3%201.3%200%200%201-.333-.086l-.166-.004c-.223%200-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255%201.255%200%200%201-1.256%201.256h-1.777a1.255%201.255%200%200%201-1.256-1.256V15.69l-.032.057a4.8%204.8%200%200%201-1.86%201.833%205.04%205.04%200%200%201-2.484.634%204.5%204.5%200%200%201-1.935-.424%201.25%201.25%200%200%201-.764.258h-1.71a1.255%201.255%200%200%201-1.256-1.255V7.687a2.4%202.4%200%200%201-.428.625c.253.23.412.561.412.93v7.553a1.255%201.255%200%200%201-1.256%201.255h-1.843a1.25%201.25%200%200%201-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255%201.255%200%200%201-1.256-1.255v-1.251l-.061.117a4.7%204.7%200%200%201-1.782%201.884%204.77%204.77%200%200%201-2.485.67%205.6%205.6%200%200%201-1.485-.188l.009%202.764a1.255%201.255%200%200%201-1.255%201.259h-1.729a1.255%201.255%200%200%201-1.255-1.255v-3.537a1.255%201.255%200%200%201-1.167.793h-1.679a1.25%201.25%200%200%201-.77-.263%204.5%204.5%200%200%201-1.945.429c-.885%200-1.724-.21-2.495-.632l-.017-.01a5%205%200%200%201-1.081-.836%201.255%201.255%200%200%201-1.254%201.312h-1.81a1.255%201.255%200%200%201-1.228-.99l-.782-3.625-2.044%203.939a1.25%201.25%200%200%201-1.115.676h-.098a1.25%201.25%200%200%201-1.116-.68l-2.061-3.994zM35.92%2016.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033%201.332h1.678V9.242h-1.694l-.033%201.267q-.133-.329-.526-.658l-.032-.028a3.2%203.2%200%200%200-.668-.428l-.27-.12a3.3%203.3%200%200%200-1.235-.23q-1.136-.001-1.974.493a3.36%203.36%200%200%200-1.3%201.382q-.445.89-.444%202.074%200%201.2.51%202.107a3.8%203.8%200%200%200%201.382%201.381%203.9%203.9%200%200%200%201.893.477q.795%200%201.455-.33zm-2.789-5.38q-.576.675-.575%201.762%200%201.102.559%201.794.576.675%201.645.675a2.25%202.25%200%200%200%20.934-.19%202.2%202.2%200%200%200%20.468-.29l.178-.161a2.2%202.2%200%200%200%20.397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2%202.2%200%200%200-.633-.709l-.13-.086-.047-.028a2.1%202.1%200%200%200-1.073-.285q-1.052%200-1.629.692zm2.316%202.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96%200%200%200-.353-.389.85.85%200%200%200-.464-.127c-.4%200-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945%200%20.506.122.801.27.99.097.11.266.224.68.224.303%200%20.504-.09.687-.269zm7.545%201.705a2.6%202.6%200%200%200%20.331.423q.319.33.755.548l.173.074q.65.255%201.49.255%201.02%200%201.844-.493a3.45%203.45%200%200%200%201.316-1.4q.493-.904.493-2.089%200-1.909-.988-2.913-.988-1.02-2.584-1.02-.898%200-1.575.347a3%203%200%200%200-.415.262l-.199.166a3.4%203.4%200%200%200-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296%201.119.297%201.07%200%201.645-.675.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.435%200-.835.16a2%202%200%200%200-.284.136%202%202%200%200%200-.363.254%202.2%202.2%200%200%200-.46.569l-.082.162a2.6%202.6%200%200%200-.213%201.072v.115q0%20.707.296%201.267l.135.211zm.964-.818a1.1%201.1%200%200%200%20.367.385.94.94%200%200%200%20.476.118c.423%200%20.59-.117.687-.23.159-.194.28-.478.28-.95%200-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1%201%200%200%200-.503.135l-.012.007a.86.86%200%200%200-.335.343c-.073.133-.132.324-.132.614v.115a1.4%201.4%200%200%200%20.14.66zm15.7-6.222q.347-.346.346-.856a1.05%201.05%200%200%200-.345-.79%201.18%201.18%200%200%200-.84-.329q-.51%200-.855.33a1.05%201.05%200%200%200-.346.79q0%20.51.346.855.345.346.856.346.51%200%20.839-.346zm4.337%209.314.033-1.332q.191.403.59.747l.098.081a4%204%200%200%200%20.316.224l.223.122a3.2%203.2%200%200%200%201.44.322%203.8%203.8%200%200%200%201.875-.477%203.5%203.5%200%200%200%201.382-1.366q.527-.89.526-2.09%200-1.184-.444-2.073a3.24%203.24%200%200%200-1.283-1.399q-.823-.51-1.942-.51a3.5%203.5%200%200%200-1.527.344l-.086.043-.165.09a3%203%200%200%200-.33.214q-.432.315-.656.707a2%202%200%200%200-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5%202.5%200%200%200%20.566.7q.117.098.245.18l.144.08a2.1%202.1%200%200%200%20.975.232q1.07%200%201.645-.675.576-.69.576-1.778%200-1.102-.576-1.777-.56-.691-1.645-.692a2.2%202.2%200%200%200-1.015.235q-.22.113-.415.282l-.15.142a2.1%202.1%200%200%200-.42.594q-.223.479-.223%201.1v.115q0%20.705.293%201.26zm2.616-.293c.157-.191.28-.479.28-.967%200-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87%200%200%200-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0%20.285.057.499.144.669a1.1%201.1%200%200%200%20.367.405c.137.082.28.123.455.123.423%200%20.59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493%200%20.642.099l.247-1.794q-.196-.099-.717-.099a2.3%202.3%200%200%200-.545.063%202%202%200%200%200-.411.148%202.2%202.2%200%200%200-.4.249%202.5%202.5%200%200%200-.485.499%202.7%202.7%200%200%200-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5%201.5%200%200%201%20.466-.636%202.5%202.5%200%200%201%20.399-.253%202%202%200%200%201%20.224-.099zm9.784%202.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46%203.46%200%200%200-1.4%201.382q-.493.906-.493%202.106%200%201.07.428%201.975.428.89%201.332%201.432.906.526%202.255.526.973%200%201.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954%200-1.497-.444a1.6%201.6%200%200%201-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1%201%200%200%200-.156-.176q-.46-.428-1.316-.428-.986%200-1.494.604-.379.45-.494%201.234zm-27.053%202.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z%22%2F%3E%3Cpath%20fill%3D%22%23fff%22%20d%3D%22m19.63%2011.151-.757-1.71-.345%201.71-1.12%205.644h-1.827L18.083%204.7h.197l3.325%206.533.988%202.19.988-2.19L26.839%204.7h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.93%205.644h-.098l-2.913-5.644zm14.836%205.81q-1.02%200-1.893-.478a3.8%203.8%200%200%201-1.381-1.382q-.51-.906-.51-2.106%200-1.185.444-2.074a3.36%203.36%200%200%201%201.3-1.382q.839-.494%201.974-.494a3.3%203.3%200%200%201%201.234.231%203.3%203.3%200%200%201%20.97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02%201.053a3.17%203.17%200%200%201-1.662.444zm.296-1.482q.938%200%201.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2%202.2%200%200%200-.807-.872%202.1%202.1%200%200%200-1.119-.313q-1.053%200-1.629.692-.575.675-.575%201.76%200%201.103.559%201.795.577.675%201.645.675zm6.521-6.237h1.711v1.4q.906-1.597%202.83-1.597%201.596%200%202.584%201.02.988%201.005.988%202.914%200%201.185-.493%202.09a3.46%203.46%200%200%201-1.316%201.399%203.5%203.5%200%200%201-1.844.493q-.954%200-1.662-.329a2.67%202.67%200%200%201-1.086-.97l.017%205.134h-1.728zm4.048%206.22q1.07%200%201.645-.674.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.592%200-1.12.296-.51.28-.822.823-.296.527-.296%201.234v.115q0%20.708.296%201.267.313.543.823.855.51.296%201.119.297z%22%2F%3E%3Cpath%20fill%3D%22%23e1e3e9%22%20d%3D%22M51.325%204.7h1.86v10.45h3.473v1.646h-5.333zm7.12%204.542h1.843v7.553h-1.843zm.905-1.415a1.16%201.16%200%200%201-.856-.346%201.17%201.17%200%200%201-.346-.856%201.05%201.05%200%200%201%20.346-.79q.346-.329.856-.329.494%200%20.839.33a1.05%201.05%200%200%201%20.345.79%201.16%201.16%200%200%201-.345.855q-.33.346-.84.346zm7.875%209.133a3.17%203.17%200%200%201-1.662-.444q-.723-.46-1.004-1.053l-.033%201.332h-1.71V4.701h1.743v4.657l-.082%201.283q.279-.658%201.086-1.119a3.5%203.5%200%200%201%201.778-.477q1.119%200%201.942.51a3.24%203.24%200%200%201%201.283%201.4q.445.888.444%202.072%200%201.201-.526%202.09a3.5%203.5%200%200%201-1.382%201.366%203.8%203.8%200%200%201-1.876.477zm-.296-1.481q1.069%200%201.645-.675.577-.69.577-1.778%200-1.102-.577-1.776-.56-.691-1.645-.692a2.12%202.12%200%200%200-1.58.659q-.642.641-.642%201.694v.115q0%20.71.296%201.267a2.4%202.4%200%200%200%20.807.872%202.1%202.1%200%200%200%201.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14%202.14%200%200%201%201.349-.46q.527%200%20.724.098l-.247%201.794q-.149-.099-.642-.099-.774%200-1.416.494-.626.493-.626%201.58v3.883h-1.777V9.242zm9.534%207.718q-1.35%200-2.255-.526-.904-.543-1.332-1.432a4.6%204.6%200%200%201-.428-1.975q0-1.2.493-2.106a3.46%203.46%200%200%201%201.4-1.382q.889-.495%202.007-.494%201.744%200%202.584.97.855.956.856%202.7%200%20.444-.05.92h-5.43q.18%201.005.708%201.45.542.443%201.497.443.79%200%201.3-.131a4%204%200%200%200%20.938-.362l.542%201.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728%200-1.991%201.86z%22%2F%3E%3Cpath%20d%3D%22M5.074%2015.948a.484.657%200%200%200-.486.659v1.84a.484.657%200%200%200%20.486.659h4.101a.484.657%200%200%200%20.486-.659v-1.84a.484.657%200%200%200-.486-.659zm3.56%201.16H5.617v.838h3.017z%22%20style%3D%22fill%3A%23fff%3Bfill-rule%3Aevenodd%3Bstroke-width%3A1.03600001%22%2F%3E%3Cg%20style%3D%22stroke-width%3A1.12603545%22%3E%3Cpath%20d%3D%22M-9.408-1.416c-3.833-.025-7.056%202.912-7.08%206.615-.02%203.08%201.653%204.832%203.107%206.268.903.892%201.721%201.74%202.32%202.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87%201.87%200%200%200-.362%201.121l-.011%201.877c-.003.402.104.787.347%201.125.244.338.688.653%201.23.656l4.142.028c.542.003.99-.306%201.238-.641a1.87%201.87%200%200%200%20.363-1.121l.012-1.875a1.87%201.87%200%200%200-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145%201.425-1.983%202.348-2.87%201.473-1.414%203.18-3.149%203.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006%201.1v.002c3.274.02%205.92%202.532%205.9%205.6-.017%202.706-1.39%204.026-2.863%205.44-1.034.994-2.118%202.033-2.814%203.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34%200%200%201-.226.084.34.34%200%200%201-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067%202.7-5.545%205.975-5.523m-.02%202.826c-1.62-.01-2.944%201.315-2.955%202.96-.01%201.646%201.295%202.988%202.916%202.999h.002c1.621.01%202.943-1.316%202.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005%201.1c1.017.006%201.829.83%201.822%201.89s-.83%201.874-1.848%201.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874%201.848-1.868m-2.155%2011.857%204.14.025c.271.002.49.305.487.676l-.013%201.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668%22%20style%3D%22color%3A%23000%3Bfont-style%3Anormal%3Bfont-variant%3Anormal%3Bfont-weight%3A400%3Bfont-stretch%3Anormal%3Bfont-size%3Amedium%3Bline-height%3Anormal%3Bfont-family%3Asans-serif%3Bfont-variant-ligatures%3Anormal%3Bfont-variant-position%3Anormal%3Bfont-variant-caps%3Anormal%3Bfont-variant-numeric%3Anormal%3Bfont-variant-alternates%3Anormal%3Bfont-feature-settings%3Anormal%3Btext-indent%3A0%3Btext-align%3Astart%3Btext-decoration%3Anone%3Btext-decoration-line%3Anone%3Btext-decoration-style%3Asolid%3Btext-decoration-color%3A%23000%3Bletter-spacing%3Anormal%3Bword-spacing%3Anormal%3Btext-transform%3Anone%3Bwriting-mode%3Alr-tb%3Bdirection%3Altr%3Btext-orientation%3Amixed%3Bdominant-baseline%3Aauto%3Bbaseline-shift%3Abaseline%3Btext-anchor%3Astart%3Bwhite-space%3Anormal%3Bshape-padding%3A0%3Bclip-rule%3Aevenodd%3Bdisplay%3Ainline%3Boverflow%3Avisible%3Bvisibility%3Avisible%3Bopacity%3A1%3Bisolation%3Aauto%3Bmix-blend-mode%3Anormal%3Bcolor-interpolation%3AsRGB%3Bcolor-interpolation-filters%3AlinearRGB%3Bsolid-color%3A%23000%3Bsolid-opacity%3A1%3Bvector-effect%3Anone%3Bfill%3A%23000%3Bfill-opacity%3A.4%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-linecap%3Abutt%3Bstroke-linejoin%3Amiter%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-dashoffset%3A0%3Bstroke-opacity%3A1%3Bcolor-rendering%3Aauto%3Bimage-rendering%3Aauto%3Bshape-rendering%3Aauto%3Btext-rendering%3Aauto%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-9.415-.316C-12.69-.338-15.37%202.14-15.39%205.207c-.017%202.716%201.326%204.041%202.78%205.477%201.013%201%202.081%202.055%202.78%203.67l.092.076a.34.34%200%200%200%20.225.086.34.34%200%200%200%20.227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6%201.78-2.64%202.814-3.634%201.473-1.414%202.847-2.733%202.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057%208.784c1.621.011%202.944-1.315%202.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945%201.315-2.955%202.96s1.295%202.989%202.916%203%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23e1e3e9%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-11.594%2015.465c-.27-.002-.492.297-.494.668l-.012%201.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23fff%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){a.maplibregl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2288%22%20height%3D%2223%22%20fill%3D%22none%22%3E%3Cpath%20fill%3D%22%23000%22%20fill-opacity%3D%22.4%22%20fill-rule%3D%22evenodd%22%20d%3D%22M17.408%2016.796h-1.827l2.501-12.095h.198l3.324%206.533.988%202.19.988-2.19%203.258-6.533h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.929%205.644h-.098l-2.914-5.644-.757-1.71-.345%201.71zm1.958-3.42-.726%203.663a1.255%201.255%200%200%201-1.232%201.011h-1.827a1.255%201.255%200%200%201-1.229-1.509l2.501-12.095a1.255%201.255%200%200%201%201.23-1.001h.197a1.25%201.25%200%200%201%201.12.685l3.19%206.273%203.125-6.263a1.25%201.25%200%200%201%201.123-.695h.181a1.255%201.255%200%200%201%201.227.991l1.443%206.71a5%205%200%200%201%20.314-.787l.009-.016a4.6%204.6%200%200%201%201.777-1.887c.782-.46%201.668-.667%202.611-.667a4.6%204.6%200%200%201%201.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255%201.255%200%200%201%201.212.925%201.255%201.255%200%200%201%201.212-.925h1.711c.284%200%20.545.094.755.252.613-.3%201.312-.45%202.075-.45%201.356%200%202.557.445%203.482%201.4q.47.48.763%201.064V4.701a1.255%201.255%200%200%201%201.255-1.255h1.86A1.255%201.255%200%200%201%2054.44%204.7v9.194h2.217c.19%200%20.37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42%202.42%200%200%201-.682-1.71c0-.665.267-1.253.735-1.7a2.45%202.45%200%200%201%201.722-.674%202.43%202.43%200%200%201%201.705.675q.318.302.504.683V4.7a1.255%201.255%200%200%201%201.255-1.255h1.744A1.255%201.255%200%200%201%2065.812%204.7v3.335a4.8%204.8%200%200%201%201.526-.246c.938%200%201.817.214%202.59.69a4.47%204.47%200%200%201%201.67%201.743v-.98a1.255%201.255%200%200%201%201.256-1.256h1.777c.233%200%20.451.064.639.174a3.4%203.4%200%200%201%201.567-.372c.346%200%20.861.02%201.285.232a1.25%201.25%200%200%201%20.689%201.004%204.7%204.7%200%200%201%20.853-.588c.795-.44%201.675-.647%202.61-.647%201.385%200%202.65.39%203.525%201.396.836.938%201.168%202.173%201.168%203.528q-.001.515-.056%201.051a1.255%201.255%200%200%201-.947%201.09l.408.952a1.255%201.255%200%200%201-.477%201.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06%200-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8%205.8%200%200%201-.548-2.512q0-.429.053-.843a1.3%201.3%200%200%201-.333-.086l-.166-.004c-.223%200-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255%201.255%200%200%201-1.256%201.256h-1.777a1.255%201.255%200%200%201-1.256-1.256V15.69l-.032.057a4.8%204.8%200%200%201-1.86%201.833%205.04%205.04%200%200%201-2.484.634%204.5%204.5%200%200%201-1.935-.424%201.25%201.25%200%200%201-.764.258h-1.71a1.255%201.255%200%200%201-1.256-1.255V7.687a2.4%202.4%200%200%201-.428.625c.253.23.412.561.412.93v7.553a1.255%201.255%200%200%201-1.256%201.255h-1.843a1.25%201.25%200%200%201-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255%201.255%200%200%201-1.256-1.255v-1.251l-.061.117a4.7%204.7%200%200%201-1.782%201.884%204.77%204.77%200%200%201-2.485.67%205.6%205.6%200%200%201-1.485-.188l.009%202.764a1.255%201.255%200%200%201-1.255%201.259h-1.729a1.255%201.255%200%200%201-1.255-1.255v-3.537a1.255%201.255%200%200%201-1.167.793h-1.679a1.25%201.25%200%200%201-.77-.263%204.5%204.5%200%200%201-1.945.429c-.885%200-1.724-.21-2.495-.632l-.017-.01a5%205%200%200%201-1.081-.836%201.255%201.255%200%200%201-1.254%201.312h-1.81a1.255%201.255%200%200%201-1.228-.99l-.782-3.625-2.044%203.939a1.25%201.25%200%200%201-1.115.676h-.098a1.25%201.25%200%200%201-1.116-.68l-2.061-3.994zM35.92%2016.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033%201.332h1.678V9.242h-1.694l-.033%201.267q-.133-.329-.526-.658l-.032-.028a3.2%203.2%200%200%200-.668-.428l-.27-.12a3.3%203.3%200%200%200-1.235-.23q-1.136-.001-1.974.493a3.36%203.36%200%200%200-1.3%201.382q-.445.89-.444%202.074%200%201.2.51%202.107a3.8%203.8%200%200%200%201.382%201.381%203.9%203.9%200%200%200%201.893.477q.795%200%201.455-.33zm-2.789-5.38q-.576.675-.575%201.762%200%201.102.559%201.794.576.675%201.645.675a2.25%202.25%200%200%200%20.934-.19%202.2%202.2%200%200%200%20.468-.29l.178-.161a2.2%202.2%200%200%200%20.397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2%202.2%200%200%200-.633-.709l-.13-.086-.047-.028a2.1%202.1%200%200%200-1.073-.285q-1.052%200-1.629.692zm2.316%202.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96%200%200%200-.353-.389.85.85%200%200%200-.464-.127c-.4%200-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945%200%20.506.122.801.27.99.097.11.266.224.68.224.303%200%20.504-.09.687-.269zm7.545%201.705a2.6%202.6%200%200%200%20.331.423q.319.33.755.548l.173.074q.65.255%201.49.255%201.02%200%201.844-.493a3.45%203.45%200%200%200%201.316-1.4q.493-.904.493-2.089%200-1.909-.988-2.913-.988-1.02-2.584-1.02-.898%200-1.575.347a3%203%200%200%200-.415.262l-.199.166a3.4%203.4%200%200%200-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296%201.119.297%201.07%200%201.645-.675.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.435%200-.835.16a2%202%200%200%200-.284.136%202%202%200%200%200-.363.254%202.2%202.2%200%200%200-.46.569l-.082.162a2.6%202.6%200%200%200-.213%201.072v.115q0%20.707.296%201.267l.135.211zm.964-.818a1.1%201.1%200%200%200%20.367.385.94.94%200%200%200%20.476.118c.423%200%20.59-.117.687-.23.159-.194.28-.478.28-.95%200-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1%201%200%200%200-.503.135l-.012.007a.86.86%200%200%200-.335.343c-.073.133-.132.324-.132.614v.115a1.4%201.4%200%200%200%20.14.66zm15.7-6.222q.347-.346.346-.856a1.05%201.05%200%200%200-.345-.79%201.18%201.18%200%200%200-.84-.329q-.51%200-.855.33a1.05%201.05%200%200%200-.346.79q0%20.51.346.855.345.346.856.346.51%200%20.839-.346zm4.337%209.314.033-1.332q.191.403.59.747l.098.081a4%204%200%200%200%20.316.224l.223.122a3.2%203.2%200%200%200%201.44.322%203.8%203.8%200%200%200%201.875-.477%203.5%203.5%200%200%200%201.382-1.366q.527-.89.526-2.09%200-1.184-.444-2.073a3.24%203.24%200%200%200-1.283-1.399q-.823-.51-1.942-.51a3.5%203.5%200%200%200-1.527.344l-.086.043-.165.09a3%203%200%200%200-.33.214q-.432.315-.656.707a2%202%200%200%200-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5%202.5%200%200%200%20.566.7q.117.098.245.18l.144.08a2.1%202.1%200%200%200%20.975.232q1.07%200%201.645-.675.576-.69.576-1.778%200-1.102-.576-1.777-.56-.691-1.645-.692a2.2%202.2%200%200%200-1.015.235q-.22.113-.415.282l-.15.142a2.1%202.1%200%200%200-.42.594q-.223.479-.223%201.1v.115q0%20.705.293%201.26zm2.616-.293c.157-.191.28-.479.28-.967%200-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87%200%200%200-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0%20.285.057.499.144.669a1.1%201.1%200%200%200%20.367.405c.137.082.28.123.455.123.423%200%20.59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493%200%20.642.099l.247-1.794q-.196-.099-.717-.099a2.3%202.3%200%200%200-.545.063%202%202%200%200%200-.411.148%202.2%202.2%200%200%200-.4.249%202.5%202.5%200%200%200-.485.499%202.7%202.7%200%200%200-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5%201.5%200%200%201%20.466-.636%202.5%202.5%200%200%201%20.399-.253%202%202%200%200%201%20.224-.099zm9.784%202.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46%203.46%200%200%200-1.4%201.382q-.493.906-.493%202.106%200%201.07.428%201.975.428.89%201.332%201.432.906.526%202.255.526.973%200%201.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954%200-1.497-.444a1.6%201.6%200%200%201-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1%201%200%200%200-.156-.176q-.46-.428-1.316-.428-.986%200-1.494.604-.379.45-.494%201.234zm-27.053%202.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z%22%2F%3E%3Cpath%20fill%3D%22%23fff%22%20d%3D%22m19.63%2011.151-.757-1.71-.345%201.71-1.12%205.644h-1.827L18.083%204.7h.197l3.325%206.533.988%202.19.988-2.19L26.839%204.7h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.93%205.644h-.098l-2.913-5.644zm14.836%205.81q-1.02%200-1.893-.478a3.8%203.8%200%200%201-1.381-1.382q-.51-.906-.51-2.106%200-1.185.444-2.074a3.36%203.36%200%200%201%201.3-1.382q.839-.494%201.974-.494a3.3%203.3%200%200%201%201.234.231%203.3%203.3%200%200%201%20.97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02%201.053a3.17%203.17%200%200%201-1.662.444zm.296-1.482q.938%200%201.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2%202.2%200%200%200-.807-.872%202.1%202.1%200%200%200-1.119-.313q-1.053%200-1.629.692-.575.675-.575%201.76%200%201.103.559%201.795.577.675%201.645.675zm6.521-6.237h1.711v1.4q.906-1.597%202.83-1.597%201.596%200%202.584%201.02.988%201.005.988%202.914%200%201.185-.493%202.09a3.46%203.46%200%200%201-1.316%201.399%203.5%203.5%200%200%201-1.844.493q-.954%200-1.662-.329a2.67%202.67%200%200%201-1.086-.97l.017%205.134h-1.728zm4.048%206.22q1.07%200%201.645-.674.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.592%200-1.12.296-.51.28-.822.823-.296.527-.296%201.234v.115q0%20.708.296%201.267.313.543.823.855.51.296%201.119.297z%22%2F%3E%3Cpath%20fill%3D%22%23e1e3e9%22%20d%3D%22M51.325%204.7h1.86v10.45h3.473v1.646h-5.333zm7.12%204.542h1.843v7.553h-1.843zm.905-1.415a1.16%201.16%200%200%201-.856-.346%201.17%201.17%200%200%201-.346-.856%201.05%201.05%200%200%201%20.346-.79q.346-.329.856-.329.494%200%20.839.33a1.05%201.05%200%200%201%20.345.79%201.16%201.16%200%200%201-.345.855q-.33.346-.84.346zm7.875%209.133a3.17%203.17%200%200%201-1.662-.444q-.723-.46-1.004-1.053l-.033%201.332h-1.71V4.701h1.743v4.657l-.082%201.283q.279-.658%201.086-1.119a3.5%203.5%200%200%201%201.778-.477q1.119%200%201.942.51a3.24%203.24%200%200%201%201.283%201.4q.445.888.444%202.072%200%201.201-.526%202.09a3.5%203.5%200%200%201-1.382%201.366%203.8%203.8%200%200%201-1.876.477zm-.296-1.481q1.069%200%201.645-.675.577-.69.577-1.778%200-1.102-.577-1.776-.56-.691-1.645-.692a2.12%202.12%200%200%200-1.58.659q-.642.641-.642%201.694v.115q0%20.71.296%201.267a2.4%202.4%200%200%200%20.807.872%202.1%202.1%200%200%200%201.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14%202.14%200%200%201%201.349-.46q.527%200%20.724.098l-.247%201.794q-.149-.099-.642-.099-.774%200-1.416.494-.626.493-.626%201.58v3.883h-1.777V9.242zm9.534%207.718q-1.35%200-2.255-.526-.904-.543-1.332-1.432a4.6%204.6%200%200%201-.428-1.975q0-1.2.493-2.106a3.46%203.46%200%200%201%201.4-1.382q.889-.495%202.007-.494%201.744%200%202.584.97.855.956.856%202.7%200%20.444-.05.92h-5.43q.18%201.005.708%201.45.542.443%201.497.443.79%200%201.3-.131a4%204%200%200%200%20.938-.362l.542%201.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728%200-1.991%201.86z%22%2F%3E%3Cpath%20d%3D%22M5.074%2015.948a.484.657%200%200%200-.486.659v1.84a.484.657%200%200%200%20.486.659h4.101a.484.657%200%200%200%20.486-.659v-1.84a.484.657%200%200%200-.486-.659zm3.56%201.16H5.617v.838h3.017z%22%20style%3D%22fill%3A%23fff%3Bfill-rule%3Aevenodd%3Bstroke-width%3A1.03600001%22%2F%3E%3Cg%20style%3D%22stroke-width%3A1.12603545%22%3E%3Cpath%20d%3D%22M-9.408-1.416c-3.833-.025-7.056%202.912-7.08%206.615-.02%203.08%201.653%204.832%203.107%206.268.903.892%201.721%201.74%202.32%202.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87%201.87%200%200%200-.362%201.121l-.011%201.877c-.003.402.104.787.347%201.125.244.338.688.653%201.23.656l4.142.028c.542.003.99-.306%201.238-.641a1.87%201.87%200%200%200%20.363-1.121l.012-1.875a1.87%201.87%200%200%200-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145%201.425-1.983%202.348-2.87%201.473-1.414%203.18-3.149%203.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006%201.1v.002c3.274.02%205.92%202.532%205.9%205.6-.017%202.706-1.39%204.026-2.863%205.44-1.034.994-2.118%202.033-2.814%203.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34%200%200%201-.226.084.34.34%200%200%201-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067%202.7-5.545%205.975-5.523m-.02%202.826c-1.62-.01-2.944%201.315-2.955%202.96-.01%201.646%201.295%202.988%202.916%202.999h.002c1.621.01%202.943-1.316%202.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005%201.1c1.017.006%201.829.83%201.822%201.89s-.83%201.874-1.848%201.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874%201.848-1.868m-2.155%2011.857%204.14.025c.271.002.49.305.487.676l-.013%201.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668%22%20style%3D%22color%3A%23000%3Bfont-style%3Anormal%3Bfont-variant%3Anormal%3Bfont-weight%3A400%3Bfont-stretch%3Anormal%3Bfont-size%3Amedium%3Bline-height%3Anormal%3Bfont-family%3Asans-serif%3Bfont-variant-ligatures%3Anormal%3Bfont-variant-position%3Anormal%3Bfont-variant-caps%3Anormal%3Bfont-variant-numeric%3Anormal%3Bfont-variant-alternates%3Anormal%3Bfont-feature-settings%3Anormal%3Btext-indent%3A0%3Btext-align%3Astart%3Btext-decoration%3Anone%3Btext-decoration-line%3Anone%3Btext-decoration-style%3Asolid%3Btext-decoration-color%3A%23000%3Bletter-spacing%3Anormal%3Bword-spacing%3Anormal%3Btext-transform%3Anone%3Bwriting-mode%3Alr-tb%3Bdirection%3Altr%3Btext-orientation%3Amixed%3Bdominant-baseline%3Aauto%3Bbaseline-shift%3Abaseline%3Btext-anchor%3Astart%3Bwhite-space%3Anormal%3Bshape-padding%3A0%3Bclip-rule%3Aevenodd%3Bdisplay%3Ainline%3Boverflow%3Avisible%3Bvisibility%3Avisible%3Bopacity%3A1%3Bisolation%3Aauto%3Bmix-blend-mode%3Anormal%3Bcolor-interpolation%3AsRGB%3Bcolor-interpolation-filters%3AlinearRGB%3Bsolid-color%3A%23000%3Bsolid-opacity%3A1%3Bvector-effect%3Anone%3Bfill%3A%23000%3Bfill-opacity%3A.4%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-linecap%3Abutt%3Bstroke-linejoin%3Amiter%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-dashoffset%3A0%3Bstroke-opacity%3A1%3Bcolor-rendering%3Aauto%3Bimage-rendering%3Aauto%3Bshape-rendering%3Aauto%3Btext-rendering%3Aauto%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-9.415-.316C-12.69-.338-15.37%202.14-15.39%205.207c-.017%202.716%201.326%204.041%202.78%205.477%201.013%201%202.081%202.055%202.78%203.67l.092.076a.34.34%200%200%200%20.225.086.34.34%200%200%200%20.227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6%201.78-2.64%202.814-3.634%201.473-1.414%202.847-2.733%202.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057%208.784c1.621.011%202.944-1.315%202.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945%201.315-2.955%202.96s1.295%202.989%202.916%203%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23e1e3e9%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-11.594%2015.465c-.27-.002-.492.297-.494.668l-.012%201.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23fff%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl.maplibregl-ctrl-attrib{padding:0 5px;background-color:hsla(0,0%,100%,.5);margin:0}@media screen{.maplibregl-ctrl-attrib.maplibregl-compact{min-height:20px;padding:2px 24px 2px 0;margin:10px;position:relative;background-color:#fff;color:#000;border-radius:12px;box-sizing:content-box}.maplibregl-ctrl-attrib.maplibregl-compact-show{padding:2px 28px 2px 8px;visibility:visible}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact-show,.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact-show{padding:2px 8px 2px 28px;border-radius:12px}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-inner{display:none}.maplibregl-ctrl-attrib-button{display:none;cursor:pointer;position:absolute;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20fill-rule%3D%22evenodd%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M4%2010a6%206%200%201%200%2012%200%206%206%200%201%200-12%200m5-3a1%201%200%201%200%202%200%201%201%200%201%200-2%200m0%203a1%201%200%201%201%202%200v3a1%201%200%201%201-2%200%22%2F%3E%3C%2Fsvg%3E");background-color:hsla(0,0%,100%,.5);width:24px;height:24px;box-sizing:border-box;border-radius:12px;outline:none;top:0;right:0;border:0}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;list-style:none}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button::-webkit-details-marker{display:none}.maplibregl-ctrl-bottom-left .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-top-left .maplibregl-ctrl-attrib-button{left:0}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-inner{display:block}.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-button{background-color:rgba(0,0,0,.05)}.maplibregl-ctrl-bottom-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;right:0}.maplibregl-ctrl-top-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{top:0;right:0}.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{top:0;left:0}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;left:0}}@media screen and (forced-colors:active){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22%23fff%22%20fill-rule%3D%22evenodd%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M4%2010a6%206%200%201%200%2012%200%206%206%200%201%200-12%200m5-3a1%201%200%201%200%202%200%201%201%200%201%200-2%200m0%203a1%201%200%201%201%202%200v3a1%201%200%201%201-2%200%22%2F%3E%3C%2Fsvg%3E")}}@media screen and (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20fill-rule%3D%22evenodd%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M4%2010a6%206%200%201%200%2012%200%206%206%200%201%200-12%200m5-3a1%201%200%201%200%202%200%201%201%200%201%200-2%200m0%203a1%201%200%201%201%202%200v3a1%201%200%201%201-2%200%22%2F%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl-attrib a{color:rgba(0,0,0,.75);text-decoration:none}.maplibregl-ctrl-attrib a:hover{color:inherit;text-decoration:underline}.maplibregl-attrib-empty{display:none}.maplibregl-ctrl-scale{background-color:hsla(0,0%,100%,.75);font-size:10px;white-space:nowrap;border-color:#333;border-style:none solid solid;border-width:medium 2px 2px;padding:0 5px;color:#333;box-sizing:border-box}.maplibregl-popup{position:absolute;top:0;left:0;display:flex;will-change:transform;pointer-events:none}.maplibregl-popup-anchor-top,.maplibregl-popup-anchor-top-left,.maplibregl-popup-anchor-top-right{flex-direction:column}.maplibregl-popup-anchor-bottom,.maplibregl-popup-anchor-bottom-left,.maplibregl-popup-anchor-bottom-right{flex-direction:column-reverse}.maplibregl-popup-anchor-left{flex-direction:row}.maplibregl-popup-anchor-right{flex-direction:row-reverse}.maplibregl-popup-tip{width:0;height:0;border:10px solid transparent;z-index:1}.maplibregl-popup-anchor-top .maplibregl-popup-tip{align-self:center;border-top:none;border-bottom-color:#fff}.maplibregl-popup-anchor-top-left .maplibregl-popup-tip{align-self:flex-start;border-top:none;border-left:none;border-bottom-color:#fff}.maplibregl-popup-anchor-top-right .maplibregl-popup-tip{align-self:flex-end;border-top:none;border-right:none;border-bottom-color:#fff}.maplibregl-popup-anchor-bottom .maplibregl-popup-tip{align-self:center;border-bottom:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip{align-self:flex-start;border-bottom:none;border-left:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip{align-self:flex-end;border-bottom:none;border-right:none;border-top-color:#fff}.maplibregl-popup-anchor-left .maplibregl-popup-tip{align-self:center;border-left:none;border-right-color:#fff}.maplibregl-popup-anchor-right .maplibregl-popup-tip{align-self:center;border-right:none;border-left-color:#fff}[dir=rtl] .maplibregl-popup-anchor-left{flex-direction:row-reverse}[dir=rtl] .maplibregl-popup-anchor-right{flex-direction:row}[dir=rtl] .maplibregl-popup-anchor-top-left .maplibregl-popup-tip{align-self:flex-end}[dir=rtl] .maplibregl-popup-anchor-top-right .maplibregl-popup-tip{align-self:flex-start}[dir=rtl] .maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip{align-self:flex-end}[dir=rtl] .maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip{align-self:flex-start}.maplibregl-popup-close-button{position:absolute;right:0;top:0;border:0;border-radius:0 3px 0 0;cursor:pointer;background-color:transparent}.maplibregl-popup-close-button:hover{background-color:rgba(0,0,0,.05)}.maplibregl-popup-content{position:relative;background:#fff;border-radius:3px;box-shadow:0 1px 2px rgba(0,0,0,.1);padding:15px 10px;pointer-events:auto}.maplibregl-popup-anchor-top-left .maplibregl-popup-content{border-top-left-radius:0}.maplibregl-popup-anchor-top-right .maplibregl-popup-content{border-top-right-radius:0}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-content{border-bottom-left-radius:0}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-content{border-bottom-right-radius:0}.maplibregl-popup-track-pointer{display:none}.maplibregl-popup-track-pointer *{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-map:hover .maplibregl-popup-track-pointer{display:flex}.maplibregl-map:active .maplibregl-popup-track-pointer{display:none}.maplibregl-marker{position:absolute;top:0;left:0;will-change:transform;transition:opacity .2s}.maplibregl-marker-draggable{cursor:grab}.maplibregl-user-location-dot,.maplibregl-user-location-dot:before{background-color:#1da1f2;width:15px;height:15px;border-radius:50%}.maplibregl-user-location-dot:before{content:"";position:absolute;animation:maplibregl-user-location-dot-pulse 2s infinite}.maplibregl-user-location-dot:after{border-radius:50%;border:2px solid #fff;content:"";height:19px;left:-2px;position:absolute;top:-2px;width:19px;box-sizing:border-box;box-shadow:0 0 3px rgba(0,0,0,.35)}@media (prefers-reduced-motion:reduce){.maplibregl-user-location-dot:before{animation:none}}@keyframes maplibregl-user-location-dot-pulse{0%{transform:scale(1);opacity:1}70%{transform:scale(3);opacity:0}to{transform:scale(1);opacity:0}}.maplibregl-user-location-dot-stale{background-color:#aaa}.maplibregl-user-location-dot-stale:after{display:none}.maplibregl-user-location-accuracy-circle{background-color:#1da1f233;width:1px;height:1px;border-radius:100%}.maplibregl-crosshair,.maplibregl-crosshair .maplibregl-interactive,.maplibregl-crosshair .maplibregl-interactive:active{cursor:crosshair}.maplibregl-boxzoom{position:absolute;top:0;left:0;width:0;height:0;background:#fff;border:2px dotted #202020;opacity:.5}.maplibregl-cooperative-gesture-screen{background:rgba(0,0,0,.4);position:absolute;inset:0;display:flex;justify-content:center;align-items:center;color:#fff;padding:1rem;font-size:1.4em;line-height:1.2;opacity:0;pointer-events:none;transition:opacity 1s ease 1s;z-index:99999}.maplibregl-cooperative-gesture-screen.maplibregl-show{opacity:1;transition:opacity .05s}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:none}@media (hover:none),(pointer:coarse){.maplibregl-cooperative-gesture-screen .maplibregl-desktop-message{display:none}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:block}}.maplibregl-pseudo-fullscreen{position:fixed!important;width:100%!important;height:100%!important;top:0!important;left:0!important;z-index:99999}',document.head.appendChild(e)}})()});var mr=X(zr=>{"use strict";var _7=Hc(),BB=xx(),qB=f7(),fQe=zv().addStyleRule,OB=Ta(),s2e=Go(),l2e=Yp(),u2e=OB.extendFlat,x7=OB.extendDeepAll;zr.modules={};zr.allCategories={};zr.allTypes=[];zr.subplotsRegistry={};zr.componentsRegistry={};zr.layoutArrayContainers=[];zr.layoutArrayRegexes=[];zr.traceLayoutAttributes={};zr.localeRegistry={};zr.apiMethodRegistry={};zr.collectableSubplotTypes=null;zr.register=function(t){if(zr.collectableSubplotTypes=null,t)t&&!Array.isArray(t)&&(t=[t]);else throw new Error("No argument passed to Plotly.register.");for(var r=0;r{"use strict";var p2e=Fp().timeFormat,XB=Br(),b7=Hc(),Jh=(Lp(),ct(Ip)).mod,Kp=(Ki(),ct(na)),pl=Kp.BADNUM,us=Kp.ONEDAY,Bv=Kp.ONEHOUR,Kh=Kp.ONEMIN,Xp=Kp.ONESEC,qv=Kp.EPOCHJD,Yc=mr(),jB=Fp().utcFormat,m2e=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\d)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d(:?\d\d)?)?)?)?)?)?\s*$/m,v2e=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\di?)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d(:?\d\d)?)?)?)?)?)?\s*$/m,$B=new Date().getFullYear()-70;function Wc(e){return e&&Yc.componentsRegistry.calendars&&typeof e=="string"&&e!=="gregorian"}Ia.dateTick0=function(e,t){var r=g2e(e,!!t);if(t<2)return r;var i=Ia.dateTime2ms(r,e);return i+=us*(t-1),Ia.ms2DateTime(i,0,e)};function g2e(e,t){return Wc(e)?t?Yc.getComponentMethod("calendars","CANONICAL_SUNDAY")[e]:Yc.getComponentMethod("calendars","CANONICAL_TICK")[e]:t?"2000-01-02":"2000-01-01"}Ia.dfltRange=function(e){return Wc(e)?Yc.getComponentMethod("calendars","DFLTRANGE")[e]:["2000-01-01","2001-01-01"]};Ia.isJSDate=function(e){return typeof e=="object"&&e!==null&&typeof e.getTime=="function"};var kx,Cx;Ia.dateTime2ms=function(e,t){if(Ia.isJSDate(e)){var r=e.getTimezoneOffset()*Kh,i=(e.getUTCMinutes()-e.getMinutes())*Kh+(e.getUTCSeconds()-e.getSeconds())*Xp+(e.getUTCMilliseconds()-e.getMilliseconds());if(i){var a=3*Kh;r=r-a/2+Jh(i-r+a/2,a)}return e=Number(e)-r,e>=kx&&e<=Cx?e:pl}if(typeof e!="string"&&typeof e!="number")return pl;e=String(e);var n=Wc(t),o=e.charAt(0);n&&(o==="G"||o==="g")&&(e=e.slice(1),t="");var s=n&&t.slice(0,7)==="chinese",l=e.match(s?v2e:m2e);if(!l)return pl;var u=l[1],c=l[3]||"1",h=Number(l[5]||1),f=Number(l[7]||0),d=Number(l[9]||0),p=Number(l[11]||0);if(n){if(u.length===2)return pl;u=Number(u);var m;try{var g=Yc.getComponentMethod("calendars","getCal")(t);if(s){var y=c.charAt(c.length-1)==="i";c=parseInt(c,10),m=g.newDate(u,g.toMonthIndex(u,c,y),h)}else m=g.newDate(u,Number(c),h)}catch(w){return pl}return m?(m.toJD()-qv)*us+f*Bv+d*Kh+p*Xp:pl}u.length===2?u=(Number(u)+2e3-$B)%100+$B:u=Number(u),c-=1;var x=new Date(Date.UTC(2e3,c,h,f,d));return x.setUTCFullYear(u),x.getUTCMonth()!==c||x.getUTCDate()!==h?pl:x.getTime()+p*Xp};kx=Ia.MIN_MS=Ia.dateTime2ms("-9999");Cx=Ia.MAX_MS=Ia.dateTime2ms("9999-12-31 23:59:59.9999");Ia.isDateTime=function(e,t){return Ia.dateTime2ms(e,t)!==pl};function Wp(e,t){return String(e+Math.pow(10,t)).slice(1)}var Ex=90*us,HB=3*Bv,ZB=5*Kh;Ia.ms2DateTime=function(e,t,r){if(typeof e!="number"||!(e>=kx&&e<=Cx))return pl;t||(t=0);var i=Math.floor(Jh(e+.05,1)*10),a=Math.round(e-i/10),n,o,s,l,u,c;if(Wc(r)){var h=Math.floor(a/us)+qv,f=Math.floor(Jh(e,us));try{n=Yc.getComponentMethod("calendars","getCal")(r).fromJD(h).formatDate("yyyy-mm-dd")}catch(d){n=jB("G%Y-%m-%d")(new Date(a))}if(n.charAt(0)==="-")for(;n.length<11;)n="-0"+n.slice(1);else for(;n.length<10;)n="0"+n;o=t=kx+us&&e<=Cx-us))return pl;var t=Math.floor(Jh(e+.05,1)*10),r=new Date(Math.round(e-t/10)),i=p2e("%Y-%m-%d")(r),a=r.getHours(),n=r.getMinutes(),o=r.getSeconds(),s=r.getUTCMilliseconds()*10+t;return KB(i,a,n,o,s)};function KB(e,t,r,i,a){if((t||r||i||a)&&(e+=" "+Wp(t,2)+":"+Wp(r,2),(i||a)&&(e+=":"+Wp(i,2),a))){for(var n=4;a%10===0;)n-=1,a/=10;e+="."+Wp(a,n)}return e}Ia.cleanDate=function(e,t,r){if(e===pl)return t;if(Ia.isJSDate(e)||typeof e=="number"&&isFinite(e)){if(Wc(r))return b7.error("JS Dates and milliseconds are incompatible with world calendars",e),t;if(e=Ia.ms2DateTimeLocal(+e),!e&&t!==void 0)return t}else if(!Ia.isDateTime(e,r))return b7.error("unrecognized date",e),t;return e};var y2e=/%\d?f/g,_2e=/%h/g,x2e={1:"1",2:"1",3:"2",4:"2"};function YB(e,t,r,i){e=e.replace(y2e,function(n){var o=Math.min(+n.charAt(1)||6,6),s=(t/1e3%1+2).toFixed(o).slice(2).replace(/0+$/,"")||"0";return s});var a=new Date(Math.floor(t+.05));if(e=e.replace(_2e,function(){return x2e[r("%q")(a)]}),Wc(i))try{e=Yc.getComponentMethod("calendars","worldCalFmt")(e,t,i)}catch(n){return"Invalid"}return r(e)(a)}var b2e=[59,59.9,59.99,59.999,59.9999];function w2e(e,t){var r=Jh(e+.05,us),i=Wp(Math.floor(r/Bv),2)+":"+Wp(Jh(Math.floor(r/Kh),60),2);if(t!=="M"){XB(t)||(t=0);var a=Math.min(Jh(e/Xp,60),b2e[t]),n=(100+a).toFixed(t).slice(1);t>0&&(n=n.replace(/0+$/,"").replace(/[\.]$/,"")),i+=":"+n}return i}Ia.formatDate=function(e,t,r,i,a,n){if(a=Wc(a)&&a,!t)if(r==="y")t=n.year;else if(r==="m")t=n.month;else if(r==="d")t=n.dayMonth+` -`+n.year;else return w2e(e,r)+` -`+YB(n.dayMonthYear,e,i,a);return YB(t,e,i,a)};var WB=3*us;Ia.incrementMonth=function(e,t,r){r=Wc(r)&&r;var i=Jh(e,us);if(e=Math.round(e-i),r)try{var a=Math.round(e/us)+qv,n=Yc.getComponentMethod("calendars","getCal")(r),o=n.fromJD(a);return t%12?n.add(o,t,"m"):n.add(o,t/12,"y"),(o.toJD()-qv)*us+i}catch(l){b7.error("invalid ms "+e+" in calendar "+r)}var s=new Date(e+WB);return s.setUTCMonth(s.getUTCMonth()+t)+i-WB};Ia.findExactDates=function(e,t){for(var r=0,i=0,a=0,n=0,o,s,l=Wc(t)&&Yc.getComponentMethod("calendars","getCal")(t),u=0;u{"use strict";QB.exports=function(t){return t}});var A7=X(Xc=>{"use strict";var A2e=Br(),T2e=Hc(),M2e=Fx(),D2e=(Ki(),ct(na)).BADNUM,w7=1e-9;Xc.findBin=function(e,t,r){if(A2e(t.start))return r?Math.ceil((e-t.start)/t.size-w7)-1:Math.floor((e-t.start)/t.size+w7);var i=0,a=t.length,n=0,o=a>1?(t[a-1]-t[0])/(a-1):1,s,l;for(o>=0?l=r?S2e:E2e:l=r?C2e:k2e,e+=o*w7*(r?-1:1)*(o>=0?1:-1);i90&&T2e.log("Long binary search..."),i-1};function S2e(e,t){return et}function C2e(e,t){return e>=t}Xc.sorterAsc=function(e,t){return e-t};Xc.sorterDes=function(e,t){return t-e};Xc.distinctVals=function(e){var t=e.slice();t.sort(Xc.sorterAsc);var r;for(r=t.length-1;r>-1&&t[r]===D2e;r--);for(var i=t[r]-t[0]||1,a=i/(r||1)/1e4,n=[],o,s=0;s<=r;s++){var l=t[s],u=l-o;o===void 0?(n.push(l),o=l):u>a&&(i=Math.min(i,u),n.push(l),o=l)}return{vals:n,minDiff:i}};Xc.roundUp=function(e,t,r){for(var i=0,a=t.length-1,n,o=0,s=r?0:1,l=r?1:0,u=r?Math.ceil:Math.floor;i0&&(i=1),r&&i)return e.sort(t)}return i?e:e.reverse()};Xc.findIndexOfMin=function(e,t){t=t||M2e;for(var r=1/0,i,a=0;aP2e});function F2e(e){return Object.keys(e).sort()}var P2e,Ix=Vi(()=>{"use strict";P2e=F2e});var eq=X(La=>{"use strict";var Ov=Br(),I2e=os().isArrayOrTypedArray;La.aggNums=function(e,t,r,i){var a,n;if((!i||i>r.length)&&(i=r.length),Ov(t)||(t=!1),I2e(r[0])){for(n=new Array(i),a=0;ae.length-1)return e[e.length-1];var r=t%1;return r*e[Math.ceil(t)]+(1-r)*e[Math.floor(t)]}});var nq=X((yQe,aq)=>{"use strict";var tq=(Lp(),ct(Ip)),T7=tq.mod,L2e=tq.modHalf,Nv=Math.PI,Qh=2*Nv;function z2e(e){return e/180*Nv}function R2e(e){return e/Nv*180}function M7(e){return Math.abs(e[1]-e[0])>Qh-1e-14}function rq(e,t){return L2e(t-e,Qh)}function B2e(e,t){return Math.abs(rq(e,t))}function iq(e,t){if(M7(t))return!0;var r,i;t[0]i&&(i+=Qh);var a=T7(e,Qh),n=a+Qh;return a>=r&&a<=i||n>=r&&n<=i}function q2e(e,t,r,i){if(!iq(t,i))return!1;var a,n;return r[0]=a&&e<=n}function D7(e,t,r,i,a,n,o){a=a||0,n=n||0;var s=M7([r,i]),l,u,c,h,f;s?(l=0,u=Nv,c=Qh):r{"use strict";G0.isLeftAnchor=function(t){return t.xanchor==="left"||t.xanchor==="auto"&&t.x<=1/3};G0.isCenterAnchor=function(t){return t.xanchor==="center"||t.xanchor==="auto"&&t.x>1/3&&t.x<2/3};G0.isRightAnchor=function(t){return t.xanchor==="right"||t.xanchor==="auto"&&t.x>=2/3};G0.isTopAnchor=function(t){return t.yanchor==="top"||t.yanchor==="auto"&&t.y>=2/3};G0.isMiddleAnchor=function(t){return t.yanchor==="middle"||t.yanchor==="auto"&&t.y>1/3&&t.y<2/3};G0.isBottomAnchor=function(t){return t.yanchor==="bottom"||t.yanchor==="auto"&&t.y<=1/3}});var uq=X(j0=>{"use strict";var S7=(Lp(),ct(Ip)).mod;j0.segmentsIntersect=lq;function lq(e,t,r,i,a,n,o,s){var l=r-e,u=a-e,c=o-a,h=i-t,f=n-t,d=s-n,p=l*d-c*h;if(p===0)return null;var m=(u*d-c*f)/p,g=(u*h-l*f)/p;return g<0||g>1||m<0||m>1?null:{x:e+l*m,y:t+h*m}}j0.segmentDistance=function(t,r,i,a,n,o,s,l){if(lq(t,r,i,a,n,o,s,l))return 0;var u=i-t,c=a-r,h=s-n,f=l-o,d=u*u+c*c,p=h*h+f*f,m=Math.min(Lx(u,c,d,n-t,o-r),Lx(u,c,d,s-t,l-r),Lx(h,f,p,t-n,r-o),Lx(h,f,p,i-n,a-o));return Math.sqrt(m)};function Lx(e,t,r,i,a){var n=i*e+a*t;if(n<0)return i*i+a*a;if(n>r){var o=i-e,s=a-t;return o*o+s*s}else{var l=i*t-a*e;return l*l/r}}var zx,E7,sq;j0.getTextLocation=function(t,r,i,a){if((t!==E7||a!==sq)&&(zx={},E7=t,sq=a),zx[i])return zx[i];var n=t.getPointAtLength(S7(i-a/2,r)),o=t.getPointAtLength(S7(i+a/2,r)),s=Math.atan((o.y-n.y)/(o.x-n.x)),l=t.getPointAtLength(S7(i,r)),u=(l.x*4+n.x+o.x)/6,c=(l.y*4+n.y+o.y)/6,h={x:u,y:c,theta:s};return zx[i]=h,h};j0.clearLocationCache=function(){E7=null};j0.getVisibleSegment=function(t,r,i){var a=r.left,n=r.right,o=r.top,s=r.bottom,l=0,u=t.getTotalLength(),c=u,h,f;function d(m){var g=t.getPointAtLength(m);m===0?h=g:m===u&&(f=g);var y=g.xn?g.x-n:0,x=g.ys?g.y-s:0;return Math.sqrt(y*y+x*x)}for(var p=d(l);p;){if(l+=p+i,l>c)return;p=d(l)}for(p=d(c);p;){if(c-=p+i,l>c)return;p=d(c)}return{min:l,max:c,len:c-l,total:u,isClosed:l===0&&c===u&&Math.abs(h.x-f.x)<.1&&Math.abs(h.y-f.y)<.1}};j0.findPointOnPath=function(t,r,i,a){a=a||{};for(var n=a.pathLength||t.getTotalLength(),o=a.tolerance||.001,s=a.iterationLimit||30,l=t.getPointAtLength(0)[i]>t.getPointAtLength(n)[i]?-1:1,u=0,c=0,h=n,f,d,p;u0?h=f:c=f,u++}return d}});var Rx=X(Vv=>{"use strict";var Kc={};Vv.throttle=function(t,r,i){var a=Kc[t],n=Date.now();if(!a){for(var o in Kc)Kc[o].tsa.ts+r){s();return}a.timer=setTimeout(function(){s(),a.timer=null},r)};Vv.done=function(e){var t=Kc[e];return!t||!t.timer?Promise.resolve():new Promise(function(r){var i=t.onDone;t.onDone=function(){i&&i(),r(),t.onDone=null}})};Vv.clear=function(e){if(e)cq(Kc[e]),delete Kc[e];else for(var t in Kc)Vv.clear(t)};function cq(e){e&&e.timer!==null&&(clearTimeout(e.timer),e.timer=null)}});var fq=X((wQe,hq)=>{"use strict";hq.exports=function(t){t._clearResponsive&&(t._clearResponsive(),delete t._clearResponsive)}});var dq=X((AQe,Bx)=>{"use strict";Bx.exports=k7;Bx.exports.isMobile=k7;Bx.exports.default=k7;var U2e=/(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|redmi|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,G2e=/CrOS/,j2e=/android|ipad|playbook|silk/i;function k7(e){e||(e={});let t=e.ua;if(!t&&typeof navigator!="undefined"&&(t=navigator.userAgent),t&&t.headers&&typeof t.headers["user-agent"]=="string"&&(t=t.headers["user-agent"]),typeof t!="string")return!1;let r=U2e.test(t)&&!G2e.test(t)||!!e.tablet&&j2e.test(t);return!r&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&t.indexOf("Macintosh")!==-1&&t.indexOf("Safari")!==-1&&(r=!0),r}});var mq=X((TQe,pq)=>{"use strict";var $2e=Br(),H2e=dq();pq.exports=function(t){var r;if(t&&t.hasOwnProperty("userAgent")?r=t.userAgent:r=Z2e(),typeof r!="string")return!0;var i=H2e({ua:{headers:{"user-agent":r}},tablet:!0,featureDetect:!1});if(!i)for(var a=r.split(" "),n=1;n-1;s--){var l=a[s];if(l.slice(0,8)==="Version/"){var u=l.slice(8).split(".")[0];if($2e(u)&&(u=+u),u>=13)return!0}}}return i};function Z2e(){var e;return typeof navigator!="undefined"&&(e=navigator.userAgent),e&&e.headers&&typeof e.headers["user-agent"]=="string"&&(e=e.headers["user-agent"]),e}});var gq=X((MQe,vq)=>{"use strict";var Y2e=Wr();vq.exports=function(t,r,i){var a=t.selectAll("g."+i.replace(/\s/g,".")).data(r,function(o){return o[0].trace.uid});a.exit().remove(),a.enter().append("g").attr("class",i),a.order();var n=t.classed("rangeplot")?"nodeRangePlot3":"node3";return a.each(function(o){o[0][n]=Y2e.select(this)}),a}});var _q=X((DQe,yq)=>{"use strict";var W2e=mr();yq.exports=function(t,r){for(var i=t._context.locale,a=0;a<2;a++){for(var n=t._context.locales,o=0;o<2;o++){var s=(n[i]||{}).dictionary;if(s){var l=s[r];if(l)return l}n=W2e.localeRegistry}var u=i.split("-")[0];if(u===i)break;i=u}return r}});var bq=X((SQe,xq)=>{"use strict";xq.exports=function(t){for(var r={},i=[],a=0,n=0;n{"use strict";wq.exports=function(t){for(var r=J2e(t)?K2e:X2e,i=[],a=0;a{"use strict";Tq.exports=function(t,r){if(!r)return t;var i=1/Math.abs(r),a=i>1?(i*t+i*r)/i:t+r,n=String(a).length;if(n>16){var o=String(r).length,s=String(t).length;if(n>=s+o){var l=parseFloat(a).toPrecision(12);l.indexOf("e+")===-1&&(a=+l)}}return a}});var Sq={};Zi(Sq,{default:()=>t_e});function e_e(e){return typeof e=="string"&&(e=e.replace(Q2e,"")),(0,Dq.default)(e)?Number(e):void 0}var Dq,Q2e,t_e,Eq=Vi(()=>{"use strict";Dq=wA(Br());Ki();Q2e=/^['"%,$#\s']+|[, ]|['"%,$#\s']+$/g;t_e=e_e});var Fq=X((FQe,Cq)=>{"use strict";var r_e=/<[^>]*>/g,i_e=/[\p{S}\p{P}]/gu,a_e=/[\p{Cc}\p{Cf}\uFE00-\uFE0F\u20E3]/gu,n_e=/�/g,o_e=/\s+/g,qx="-",kq=qx.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),s_e=new RegExp(kq+"{3,}","g"),l_e=new RegExp(kq+"$","g"),u_e=60;function c_e(e){return typeof e.toWellFormed=="function"?e.toWellFormed():new TextDecoder().decode(new TextEncoder().encode(e))}Cq.exports=function(t,r=u_e){var i=c_e(t!=null?t:"").replace(n_e,"").replace(r_e," ").replace(i_e,a=>a===qx?a:"").toLowerCase().trim().replace(o_e,qx).replace(a_e,"").replace(s_e,qx);return i.length<=r?i:Array.from(i).slice(0,r).join("").replace(l_e,"")}});var et=X((PQe,Gq)=>{"use strict";var Uv=Wr(),h_e=Fp().utcFormat,f_e=TA().format,Bq=Br(),qq=(Ki(),ct(na)),Oq=qq.FP_SAFE,d_e=-Oq,Pq=qq.BADNUM,be={};Gq.exports=be;be.adjustFormat=function(t){if(!t||/^\d[.]\df/.test(t)||/[.]\d%/.test(t))return t;if(t==="0.f")return"~f";if(/^\d%/.test(t))return"~%";if(/^\ds/.test(t))return"~s";var r=(t.match(/^[+\-( ]?/)||[""])[0],i=t.slice(r.length);return!/^[~,.0$#]/.test(i)&&/[&fps]/.test(i)?r+"~"+i:t};var Iq={};be.warnBadFormat=function(e){var t=String(e);Iq[t]||(Iq[t]=1,be.warn('encountered bad format: "'+t+'"'))};be.noFormat=function(e){return String(e)};be.numberFormat=function(e){var t;try{t=f_e(be.adjustFormat(e))}catch(r){return be.warnBadFormat(e),be.noFormat}return t};be.nestedProperty=cv();be.keyedContainer=DI();be.relativeAttr=EI();be.isPlainObject=Gh();be.toLogRange=U_();be.relinkPrivateKeys=PI();var ef=os();be.isArrayBuffer=ef.isArrayBuffer;be.isTypedArray=ef.isTypedArray;be.isArrayOrTypedArray=ef.isArrayOrTypedArray;be.isArray1D=ef.isArray1D;be.ensureArray=ef.ensureArray;be.concat=ef.concat;be.maxRowLength=ef.maxRowLength;be.minRowLength=ef.minRowLength;var Nq=(Lp(),ct(Ip));be.mod=Nq.mod;be.modHalf=Nq.modHalf;var tf=Qz();be.valObjectMeta=tf.valObjectMeta;be.coerce=tf.coerce;be.coerce2=tf.coerce2;be.coerceFont=tf.coerceFont;be.coercePattern=tf.coercePattern;be.coerceHoverinfo=tf.coerceHoverinfo;be.coerceSelectionMarkerOpacity=tf.coerceSelectionMarkerOpacity;be.validate=tf.validate;var Ls=JB();be.dateTime2ms=Ls.dateTime2ms;be.isDateTime=Ls.isDateTime;be.ms2DateTime=Ls.ms2DateTime;be.ms2DateTimeLocal=Ls.ms2DateTimeLocal;be.cleanDate=Ls.cleanDate;be.isJSDate=Ls.isJSDate;be.formatDate=Ls.formatDate;be.incrementMonth=Ls.incrementMonth;be.dateTick0=Ls.dateTick0;be.dfltRange=Ls.dfltRange;be.findExactDates=Ls.findExactDates;be.MIN_MS=Ls.MIN_MS;be.MAX_MS=Ls.MAX_MS;var $0=A7();be.findBin=$0.findBin;be.sorterAsc=$0.sorterAsc;be.sorterDes=$0.sorterDes;be.distinctVals=$0.distinctVals;be.roundUp=$0.roundUp;be.sort=$0.sort;be.findIndexOfMin=$0.findIndexOfMin;be.sortObjectKeys=(Ix(),ct(Px)).default;var Jc=eq();be.aggNums=Jc.aggNums;be.len=Jc.len;be.mean=Jc.mean;be.geometricMean=Jc.geometricMean;be.median=Jc.median;be.midRange=Jc.midRange;be.variance=Jc.variance;be.stdev=Jc.stdev;be.interp=Jc.interp;var hu=bx();be.init2dArray=hu.init2dArray;be.transposeRagged=hu.transposeRagged;be.dot=hu.dot;be.translationMatrix=hu.translationMatrix;be.rotationMatrix=hu.rotationMatrix;be.rotationXYMatrix=hu.rotationXYMatrix;be.apply3DTransform=hu.apply3DTransform;be.apply2DTransform=hu.apply2DTransform;be.apply2DTransform2=hu.apply2DTransform2;be.convertCssMatrix=hu.convertCssMatrix;be.inverseTransformMatrix=hu.inverseTransformMatrix;var rc=nq();be.deg2rad=rc.deg2rad;be.rad2deg=rc.rad2deg;be.angleDelta=rc.angleDelta;be.angleDist=rc.angleDist;be.isFullCircle=rc.isFullCircle;be.isAngleInsideSector=rc.isAngleInsideSector;be.isPtInsideSector=rc.isPtInsideSector;be.pathArc=rc.pathArc;be.pathSector=rc.pathSector;be.pathAnnulus=rc.pathAnnulus;var Qp=oq();be.isLeftAnchor=Qp.isLeftAnchor;be.isCenterAnchor=Qp.isCenterAnchor;be.isRightAnchor=Qp.isRightAnchor;be.isTopAnchor=Qp.isTopAnchor;be.isMiddleAnchor=Qp.isMiddleAnchor;be.isBottomAnchor=Qp.isBottomAnchor;var e1=uq();be.segmentsIntersect=e1.segmentsIntersect;be.segmentDistance=e1.segmentDistance;be.getTextLocation=e1.getTextLocation;be.clearLocationCache=e1.clearLocationCache;be.getVisibleSegment=e1.getVisibleSegment;be.findPointOnPath=e1.findPointOnPath;var Vx=Ta();be.extendFlat=Vx.extendFlat;be.extendDeep=Vx.extendDeep;be.extendDeepAll=Vx.extendDeepAll;be.extendDeepNoArrays=Vx.extendDeepNoArrays;var C7=Hc();be.log=C7.log;be.warn=C7.warn;be.error=C7.error;var p_e=($p(),ct(Lv));be.counterRegex=p_e.counter;var F7=Rx();be.throttle=F7.throttle;be.throttleDone=F7.done;be.clearThrottle=F7.clear;var fu=zv();be.getGraphDiv=fu.getGraphDiv;be.isPlotDiv=fu.isPlotDiv;be.removeElement=fu.removeElement;be.addStyleRule=fu.addStyleRule;be.addRelatedStyleRule=fu.addRelatedStyleRule;be.deleteRelatedStyleRule=fu.deleteRelatedStyleRule;be.setStyleOnHover=fu.setStyleOnHover;be.getFullTransformMatrix=fu.getFullTransformMatrix;be.getElementTransformMatrix=fu.getElementTransformMatrix;be.getElementAndAncestors=fu.getElementAndAncestors;be.equalDomRects=fu.equalDomRects;be.clearResponsive=fq();be.preserveDrawingBuffer=mq();be.makeTraceGroups=gq();be._=_q();be.notifier=i7();be.filterUnique=bq();be.filterVisible=Aq();be.pushUnique=f7();be.increment=Mq();be.cleanNumber=(Eq(),ct(Sq)).default;be.slugify=Fq();be.ensureNumber=function(t){return Bq(t)?(t=Number(t),t>Oq||t=t?!1:Bq(e)&&e>=0&&e%1===0};be.noop=xx();be.identity=Fx();be.repeat=function(e,t){for(var r=new Array(t),i=0;ir?Math.max(r,Math.min(t,e)):Math.max(t,Math.min(r,e))};be.bBoxIntersect=function(e,t,r){return r=r||0,e.left<=t.right+r&&t.left<=e.right+r&&e.top<=t.bottom+r&&t.top<=e.bottom+r};be.simpleMap=function(e,t,r,i,a){for(var n=e.length,o=new Array(n),s=0;s=Math.pow(2,r)?a>10?(be.warn("randstr failed uniqueness"),o):e(t,r,i,(a||0)+1):o};be.OptionControl=function(e,t){e||(e={}),t||(t="opt");var r={};return r.optionList=[],r._newoption=function(i){i[t]=e,r[i.name]=i,r.optionList.push(i)},r["_"+t]=e,r};be.smooth=function(e,t){if(t=Math.round(t)||0,t<2)return e;var r=e.length,i=2*r,a=2*t-1,n=new Array(a),o=new Array(r),s,l,u,c;for(s=0;s=i&&(u-=i*Math.floor(u/i)),u<0?u=-1-u:u>=r&&(u=i-1-u),c+=e[u]*n[l];o[s]=c}return o};be.syncOrAsync=function(e,t,r){var i,a;function n(){return be.syncOrAsync(e,t,r)}for(;e.length;)if(a=e.splice(0,1)[0],i=a(t),i&&i.then)return i.then(n);return r&&r(t)};be.stripTrailingSlash=function(e){return e.slice(-1)==="/"?e.slice(0,-1):e};be.noneOrAll=function(e,t,r){if(e){var i=!1,a=!0,n,o;for(n=0;n0?a:0})};be.fillArray=function(e,t,r,i){if(i=i||be.identity,be.isArrayOrTypedArray(e))for(var a=0;ag_e.test(window.navigator.userAgent);var y_e=/Firefox\/(\d+)\.\d+/;be.getFirefoxVersion=function(){var e=y_e.exec(window.navigator.userAgent);if(e&&e.length===2){var t=parseInt(e[1]);if(!isNaN(t))return t}return null};be.isD3Selection=function(e){return e instanceof Uv.selection};be.ensureSingle=function(e,t,r,i){var a=e.select(t+(r?"."+r:""));if(a.size())return a;var n=e.append(t);return r&&n.classed(r,!0),i&&n.call(i),n};be.ensureSingleById=function(e,t,r,i){var a=e.select(t+"#"+r);if(a.size())return a;var n=e.append(t).attr("id",r);return i&&n.call(i),n};be.objectFromPath=function(e,t){for(var r=e.split("."),i,a=i={},n=0;n1?a+o[1]:"";if(n&&(o.length>1||s.length>4||r))for(;i.test(s);)s=s.replace(i,"$1"+n+"$2");return s+l};be.TEMPLATE_STRING_REGEX=/%{([^\s%{}:]*)([:|\|][^}]*)?}/g;var Uq=/^\w*$/;be.templateString=function(e,t){var r={};return e.replace(be.TEMPLATE_STRING_REGEX,function(i,a){var n;return Uq.test(a)?n=t[a]:(r[a]=r[a]||be.nestedProperty(t,a).get,n=r[a](!0)),n!==void 0?n:""})};var b_e={max:10,count:0,name:"hovertemplate"};be.hovertemplateString=e=>P7(Gr(nr({},e),{opts:b_e}));var w_e={max:10,count:0,name:"texttemplate"};be.texttemplateString=e=>P7(Gr(nr({},e),{opts:w_e}));var A_e=/^(\S+)([\*\/])(-?\d+(\.\d+)?)$/;function T_e(e){var t=e.match(A_e);return t?{key:t[1],op:t[2],number:Number(t[3])}:{key:e,op:null,number:null}}var M_e={max:10,count:0,name:"texttemplate",parseMultDiv:!0};be.texttemplateStringForShapes=e=>P7(Gr(nr({},e),{opts:M_e}));var Lq=/^[:|\|]/;function P7({data:e=[],locale:t,fallback:r,labels:i={},opts:a,template:n}){return n.replace(be.TEMPLATE_STRING_REGEX,(o,s,l)=>{let u=["xother","yother"].includes(s),c=["_xother","_yother"].includes(s),h=["_xother_","_yother_"].includes(s),f=["xother_","yother_"].includes(s),d=u||c||f||h;(c||h)&&(s=s.substring(1)),(f||h)&&(s=s.substring(0,s.length-1));let p=null,m=null;if(a.parseMultDiv){var g=T_e(s);s=g.key,p=g.op,m=g.number}let y;if(d){if(i[s]===void 0)return"";y=i[s]}else for(let A of e)if(A){if(A.hasOwnProperty(s)){y=A[s];break}if(Uq.test(s)||(y=be.nestedProperty(A,s).get(!0)),y!==void 0)break}if(y===void 0){let{count:A,max:T,name:M}=a,S=r===!1?o:r;return A=Nx&&o<=zq,u=s>=Nx&&s<=zq;if(l&&(i=10*i+o-Nx),u&&(a=10*a+s-Nx),!l||!u){if(i!==a)return i-a;if(o!==s)return o-s}}return a-i};var Jp=2e9;be.seedPseudoRandom=function(){Jp=2e9};be.pseudoRandom=function(){var e=Jp;return Jp=(69069*Jp+1)%4294967296,Math.abs(Jp-e)<429496729?be.pseudoRandom():Jp/4294967296};be.fillText=function(e,t,r){var i=Array.isArray(r)?function(o){r.push(o)}:function(o){r.text=o},a=be.extractOption(e,t,"htx","hovertext");if(be.isValidTextValue(a))return i(a);var n=be.extractOption(e,t,"tx","text");if(be.isValidTextValue(n))return i(n)};be.isValidTextValue=function(e){return e||e===0};be.formatPercent=function(e,t){t=t||0;for(var r=(Math.round(100*e*Math.pow(10,t))*Math.pow(.1,t)).toFixed(t)+"%",i=0;i1&&(u=1):u=0,be.strTranslate(a-u*(r+o),n-u*(i+s))+be.strScale(u)+(l?"rotate("+l+(t?"":" "+r+" "+i)+")":"")};be.setTransormAndDisplay=function(e,t){e.attr("transform",be.getTextTransform(t)),e.style("display",t.scale?null:"none")};be.ensureUniformFontSize=function(e,t){var r=be.extendFlat({},t);return r.size=Math.max(t.size,e._fullLayout.uniformtext.minsize||0),r};be.join2=function(e,t,r){var i=e.length;return i>1?e.slice(0,-1).join(t)+r+e[i-1]:e.join(t)};be.bigFont=function(e){return Math.round(1.2*e)};var Rq=be.getFirefoxVersion(),D_e=Rq!==null&&Rq<86;be.getPositionFromD3Event=function(){return D_e?[Uv.event.layerX,Uv.event.layerY]:[Uv.event.offsetX,Uv.event.offsetY]}});var Hq=X(()=>{"use strict";var S_e=et(),jq={"X,X div":'direction:ltr;font-family:"Open Sans",verdana,arial,sans-serif;margin:0;padding:0;border: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 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:focus-within .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-group a":"display:grid;place-content:center;","X .modebar-btn":"position:relative;font-size:16px;padding:3px 4px;height:22px;cursor:pointer;line-height:normal;box-sizing:border-box;border:none;background:rgba(0,0,0,0);","X .modebar-btn svg":"position:relative;","X .modebar-btn:focus-visible":"outline:1px solid #000;outline-offset:1px;border-radius:3px;","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;","X .plotly-cloud-dialog":'font-family:"Open Sans",verdana,arial,sans-serif;position:absolute;top:0;left:0;width:100%;height:100%;z-index:1001;display:flex;align-items:center;justify-content:center;background-color:rgba(0,0,0,.4);',"X .plotly-cloud-dialog .plotly-cloud-dialog-box":"box-sizing:border-box;min-width:300px;max-width:420px;padding:20px 24px;background-color:#fff;border:1px solid #e0e2e5;border-radius:4px;box-shadow:0 4px 16px rgba(0,0,0,.25);font-size:13px;color:#2a3f5f;","X .plotly-cloud-dialog .plotly-cloud-dialog-title":"font-size:16px;font-weight:bold;margin-bottom:12px;","X .plotly-cloud-dialog .plotly-cloud-dialog-message":"line-height:1.5;overflow-wrap:break-word;word-wrap:break-word;","X .plotly-cloud-dialog .plotly-cloud-dialog-message--hostname":"font-weight:bold;text-decoration:underline;","X .plotly-cloud-dialog .plotly-cloud-dialog-message--account":"margin-top:16px;padding:8px;border-radius:3px;font-size:.9em;background-color:#edf1f8;","X .plotly-cloud-dialog .plotly-cloud-dialog-buttons":"display:flex;justify-content:flex-end;margin-top:20px;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn":"font-family:inherit;font-size:13px;padding:7px 16px;margin-left:8px;border-radius:3px;border:1px solid rgba(0,0,0,0);cursor:pointer;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn:focus-visible":"outline:2px solid #447adb;outline-offset:1px;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn--cancel":"background-color:#f3f3f3;margin-left:auto;color:#777;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn--cancel:hover":"background-color:#e0e2e5;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn--confirm":"background-color:#447adb;color:#fff;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn--confirm:hover":"background-color:#1d3b84;",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(I7 in jq)$q=I7.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier"),S_e.addStyleRule($q,jq[I7]);var $q,I7});var L7=X((RQe,Zq)=>{Zq.exports=!0});var R7=X((BQe,Yq)=>{"use strict";var E_e=L7(),z7;typeof window.matchMedia=="function"?z7=!window.matchMedia("(hover: none)").matches:z7=E_e;Yq.exports=z7});var jx=X((qQe,B7)=>{"use strict";var t1=typeof Reflect=="object"?Reflect:null,Wq=t1&&typeof t1.apply=="function"?t1.apply:function(t,r,i){return Function.prototype.apply.call(t,r,i)},Ux;t1&&typeof t1.ownKeys=="function"?Ux=t1.ownKeys:Object.getOwnPropertySymbols?Ux=function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Ux=function(t){return Object.getOwnPropertyNames(t)};function k_e(e){console&&console.warn&&console.warn(e)}var Kq=Number.isNaN||function(t){return t!==t};function Qi(){Qi.init.call(this)}B7.exports=Qi;B7.exports.once=I_e;Qi.EventEmitter=Qi;Qi.prototype._events=void 0;Qi.prototype._eventsCount=0;Qi.prototype._maxListeners=void 0;var Xq=10;function Gx(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(Qi,"defaultMaxListeners",{enumerable:!0,get:function(){return Xq},set:function(e){if(typeof e!="number"||e<0||Kq(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");Xq=e}});Qi.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};Qi.prototype.setMaxListeners=function(t){if(typeof t!="number"||t<0||Kq(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this};function Jq(e){return e._maxListeners===void 0?Qi.defaultMaxListeners:e._maxListeners}Qi.prototype.getMaxListeners=function(){return Jq(this)};Qi.prototype.emit=function(t){for(var r=[],i=1;i0&&(o=r[0]),o instanceof Error)throw o;var s=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw s.context=o,s}var l=n[t];if(l===void 0)return!1;if(typeof l=="function")Wq(l,this,r);else for(var u=l.length,c=iO(l,u),i=0;i0&&o.length>a&&!o.warned){o.warned=!0;var s=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");s.name="MaxListenersExceededWarning",s.emitter=e,s.type=t,s.count=o.length,k_e(s)}return e}Qi.prototype.addListener=function(t,r){return Qq(this,t,r,!1)};Qi.prototype.on=Qi.prototype.addListener;Qi.prototype.prependListener=function(t,r){return Qq(this,t,r,!0)};function C_e(){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 eO(e,t,r){var i={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},a=C_e.bind(i);return a.listener=r,i.wrapFn=a,a}Qi.prototype.once=function(t,r){return Gx(r),this.on(t,eO(this,t,r)),this};Qi.prototype.prependOnceListener=function(t,r){return Gx(r),this.prependListener(t,eO(this,t,r)),this};Qi.prototype.removeListener=function(t,r){var i,a,n,o,s;if(Gx(r),a=this._events,a===void 0)return this;if(i=a[t],i===void 0)return this;if(i===r||i.listener===r)--this._eventsCount===0?this._events=Object.create(null):(delete a[t],a.removeListener&&this.emit("removeListener",t,i.listener||r));else if(typeof i!="function"){for(n=-1,o=i.length-1;o>=0;o--)if(i[o]===r||i[o].listener===r){s=i[o].listener,n=o;break}if(n<0)return this;n===0?i.shift():F_e(i,n),i.length===1&&(a[t]=i[0]),a.removeListener!==void 0&&this.emit("removeListener",t,s||r)}return this};Qi.prototype.off=Qi.prototype.removeListener;Qi.prototype.removeAllListeners=function(t){var r,i,a;if(i=this._events,i===void 0)return this;if(i.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):i[t]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete i[t]),this;if(arguments.length===0){var n=Object.keys(i),o;for(a=0;a=0;a--)this.removeListener(t,r[a]);return this};function tO(e,t,r){var i=e._events;if(i===void 0)return[];var a=i[t];return a===void 0?[]:typeof a=="function"?r?[a.listener||a]:[a]:r?P_e(a):iO(a,a.length)}Qi.prototype.listeners=function(t){return tO(this,t,!0)};Qi.prototype.rawListeners=function(t){return tO(this,t,!1)};Qi.listenerCount=function(e,t){return typeof e.listenerCount=="function"?e.listenerCount(t):rO.call(e,t)};Qi.prototype.listenerCount=rO;function rO(e){var t=this._events;if(t!==void 0){var r=t[e];if(typeof r=="function")return 1;if(r!==void 0)return r.length}return 0}Qi.prototype.eventNames=function(){return this._eventsCount>0?Ux(this._events):[]};function iO(e,t){for(var r=new Array(t),i=0;i{"use strict";var q7=jx().EventEmitter,z_e={init:function(e){if(e._ev instanceof q7)return e;var t=new q7,r=new q7;return e._ev=t,e._internalEv=r,e.on=t.on.bind(t),e.once=t.once.bind(t),e.removeListener=t.removeListener.bind(t),e.removeAllListeners=t.removeAllListeners.bind(t),e._internalOn=r.on.bind(r),e._internalOnce=r.once.bind(r),e._removeInternalListener=r.removeListener.bind(r),e._removeAllInternalListeners=r.removeAllListeners.bind(r),e.emit=function(i,a){t.emit(i,a),r.emit(i,a)},typeof e.addEventListener=="function"&&e.addEventListener("wheel",()=>{},{passive:!0}),e},triggerHandler:function(e,t,r){var i,a=e._ev;if(!a)return;var n=a._events[t];if(!n)return;function o(l){if(l.listener){if(a.removeListener(t,l.listener),!l.fired)return l.fired=!0,l.listener.apply(a,[r])}else return l.apply(a,[r])}n=Array.isArray(n)?n:[n];var s;for(s=0;s{"use strict";var oO=et(),R_e=Hh().dfltConfig;function B_e(e,t){for(var r=[],i,a=0;aR_e.queueLength&&(e.undoQueue.queue.shift(),e.undoQueue.index--)};Qc.startSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!0,e.undoQueue.beginSequence=!0};Qc.stopSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!1,e.undoQueue.beginSequence=!1};Qc.undo=function(t){var r,i;if(!(t.undoQueue===void 0||isNaN(t.undoQueue.index)||t.undoQueue.index<=0)){for(t.undoQueue.index--,r=t.undoQueue.queue[t.undoQueue.index],t.undoQueue.inSequence=!0,i=0;i=t.undoQueue.queue.length)){for(r=t.undoQueue.queue[t.undoQueue.index],t.undoQueue.inSequence=!0,i=0;i{"use strict";uO.exports={_isLinkedToArray:"frames_entry",group:{valType:"string"},name:{valType:"string"},traces:{valType:"any"},baseframe:{valType:"string"},data:{valType:"any"},layout:{valType:"any"}}});var a1=X(an=>{"use strict";var ml=mr(),jv=et(),Hx=Go(),N7=Yp(),q_e=O7(),O_e=Rv(),N_e=Hh().configAttributes,cO=Is(),du=jv.extendDeepAll,r1=jv.isPlainObject,V_e=jv.isArrayOrTypedArray,Zx=jv.nestedProperty,U_e=jv.valObjectMeta,V7="_isSubplotObj",Yx="_isLinkedToArray",G_e="_arrayAttrRegexps",fO="_deprecated",U7=[V7,Yx,G_e,fO];an.IS_SUBPLOT_OBJ=V7;an.IS_LINKED_TO_ARRAY=Yx;an.DEPRECATED=fO;an.UNDERSCORE_ATTRS=U7;an.get=function(){var e={};return ml.allTypes.forEach(function(t){e[t]=$_e(t)}),{defs:{valObjects:U_e,metaKeys:U7.concat(["description","role","editType","impliedEdits"]),editType:{traces:cO.traces,layout:cO.layout},impliedEdits:{}},traces:e,layout:H_e(),frames:Z_e(),animation:i1(O_e),config:i1(N_e)}};an.crawl=function(e,t,r,i){var a=r||0;i=i||"",Object.keys(e).forEach(function(n){var o=e[n];if(U7.indexOf(n)===-1){var s=(i?i+".":"")+n;t(o,n,e,a,s),!an.isValObject(o)&&r1(o)&&n!=="impliedEdits"&&an.crawl(o,t,a+1,s)}})};an.isValObject=function(e){return e&&e.valType!==void 0};an.findArrayAttributes=function(e){var t=[],r=[],i=[],a,n;function o(l,u,c,h){r=r.slice(0,h).concat([u]),i=i.slice(0,h).concat([l&&l._isLinkedToArray]);var f=l&&(l.valType==="data_array"||l.arrayOk===!0)&&!(r[h-1]==="colorbar"&&(u==="ticktext"||u==="tickvals"));f&&s(a,0,"")}function s(l,u,c){var h=l[r[u]],f=c+r[u];if(u===r.length-1)V_e(h)&&t.push(n+f);else if(i[u]){if(Array.isArray(h))for(var d=0;d=n.length)return!1;if(e.dimensions===2){if(r++,t.length===r)return e;var o=t[r];if(!$x(o))return!1;e=n[a][o]}else e=n[a]}else e=n}}return e}function $x(e){return e===Math.round(e)&&e>=0}function $_e(e){var t,r;t=ml.modules[e]._module,r=t.basePlotModule;var i={};i.type=null;var a=du({},Hx),n=du({},t.attributes);an.crawl(n,function(l,u,c,h,f){Zx(a,f).set(void 0),l===void 0&&Zx(n,f).set(void 0)}),du(i,a),ml.traceIs(e,"noOpacity")&&delete i.opacity,ml.traceIs(e,"showLegend")||(delete i.showlegend,delete i.legendgroup),ml.traceIs(e,"noHover")&&(delete i.hoverinfo,delete i.hoverlabel),t.selectPoints||delete i.selectedpoints,du(i,n),r.attributes&&du(i,r.attributes),i.type=e;var o={meta:t.meta||{},categories:t.categories||{},animatable:!!t.animatable,type:e,attributes:i1(i)};if(t.layoutAttributes){var s={};du(s,t.layoutAttributes),o.layoutAttributes=i1(s)}return t.animatable||an.crawl(o,function(l){an.isValObject(l)&&"anim"in l&&delete l.anim}),o}function H_e(){var e={},t,r;du(e,N7);for(t in ml.subplotsRegistry)if(r=ml.subplotsRegistry[t],!!r.layoutAttributes)if(Array.isArray(r.attr))for(var i=0;i{"use strict";var n1=et(),J_e=Go(),rf="templateitemname",G7={name:{valType:"string",editType:"none"}};G7[rf]={valType:"string",editType:"calc"};H0.templatedArray=function(e,t){return t._isLinkedToArray=e,t.name=G7.name,t[rf]=G7[rf],t};H0.traceTemplater=function(e){var t={},r,i;for(r in e)i=e[r],Array.isArray(i)&&i.length&&(t[r]=0);function a(n){r=n1.coerce(n,{},J_e,"type");var o={type:r,_template:null};if(r in t){i=e[r];var s=t[r]%i.length;t[r]++,o._template=i[s]}return o}return{newTrace:a}};H0.newContainer=function(e,t,r){var i=e._template,a=i&&(i[t]||r&&i[r]);n1.isPlainObject(a)||(a=null);var n=e[t]={_template:a};return n};H0.arrayTemplater=function(e,t,r){var i=e._template,a=i&&i[mO(t)],n=i&&i[t];(!Array.isArray(n)||!n.length)&&(n=[]);var o={};function s(u){var c={name:u.name,_input:u},h=c[rf]=u[rf];if(!pO(h))return c._template=a,c;for(var f=0;f=i&&(r._input||{})._templateitemname;n&&(a=i);var o=t+"["+a+"]",s;function l(){s={},n&&(s[o]={},s[o][rf]=n)}l();function u(d,p){s[d]=p}function c(d,p){n?n1.nestedProperty(s[o],d).set(p):s[o+"."+d]=p}function h(){var d=s;return l(),d}function f(d,p){d&&c(d,p);var m=h();for(var g in m)n1.nestedProperty(e,g).set(m[g])}return{modifyBase:u,modifyItem:c,getUpdateObj:h,applyUpdate:f}}});var mn={};Zi(mn,{AX_ID_PATTERN:()=>ixe,AX_NAME_PATTERN:()=>axe,DFLTRANGEX:()=>fxe,DFLTRANGEY:()=>dxe,DRAGGERSIZE:()=>cxe,HOUR_PATTERN:()=>oxe,MINDRAG:()=>lxe,MINZOOM:()=>uxe,REDRAWDELAY:()=>hxe,SUBPLOT_PATTERN:()=>nxe,WEEKDAY_PATTERN:()=>sxe,attrRegex:()=>exe,clipOnAxisFalseQuery:()=>mxe,idRegex:()=>Q_e,layerValue2layerClass:()=>vxe,traceLayerClasses:()=>pxe,xAxisMatch:()=>txe,yAxisMatch:()=>rxe,zindexSeparator:()=>gxe});var Q_e,exe,txe,rxe,ixe,axe,nxe,oxe,sxe,lxe,uxe,cxe,hxe,fxe,dxe,pxe,mxe,vxe,gxe,vn=Vi(()=>{"use strict";$p();Q_e={x:V0("x","( domain)?"),y:V0("y","( domain)?")},exe=V0("[xy]axis"),txe=V0("xaxis"),rxe=V0("yaxis"),ixe=/^[xyz][0-9]*( domain)?$/,axe=/^[xyz]axis[0-9]*$/,nxe=/^x([0-9]*)y([0-9]*)$/,oxe="hour",sxe="day of week",lxe=8,uxe=20,cxe=20,hxe=50,fxe=[-1,6],dxe=[-1,4],pxe=["imagelayer","heatmaplayer","contourcarpetlayer","contourlayer","funnellayer","waterfalllayer","barlayer","carpetlayer","violinlayer","boxlayer","ohlclayer","scattercarpetlayer","scatterlayer"],mxe=[".scatterlayer",".barlayer",".funnellayer",".waterfalllayer"],vxe={"above traces":"above","below traces":"below"},gxe="z"});var nn=X(cs=>{"use strict";var yxe=mr(),j7=(vn(),ct(mn));cs.id2name=function(t){if(!(typeof t!="string"||!t.match(j7.AX_ID_PATTERN))){var r=t.split(" ")[0].slice(1);return r==="1"&&(r=""),t.charAt(0)+"axis"+r}};cs.name2id=function(t){if(t.match(j7.AX_NAME_PATTERN)){var r=t.slice(5);return r==="1"&&(r=""),t.charAt(0)+r}};cs.cleanId=function(t,r,i){var a=/( domain)$/.test(t);if(!(typeof t!="string"||!t.match(j7.AX_ID_PATTERN))&&!(r&&t.charAt(0)!==r)&&!(a&&!i)){var n=t.split(" ")[0].slice(1).replace(/^0+/,"");return n==="1"&&(n=""),t.charAt(0)+n+(a&&i?" domain":"")}};cs.list=function(e,t,r){var i=e._fullLayout;if(!i)return[];var a=cs.listIds(e,t),n=new Array(a.length),o;for(o=0;oi?1:-1:+(e.slice(1)||1)-+(t.slice(1)||1)};cs.ref2id=function(e){return/^[xyz]/.test(e)?e.split(" ")[0]:!1};function vO(e,t){if(t&&t.length){for(var r=0;r{"use strict";function _xe(e){var t=e._fullLayout._zoomlayer;t&&t.selectAll(".outline-controllers").remove()}function xxe(e){var t=e._fullLayout._zoomlayer;t&&t.selectAll(".select-outline").remove(),e._fullLayout._outlining=!1}gO.exports={clearOutlineControllers:_xe,clearOutline:xxe}});var Wx=X((ZQe,yO)=>{"use strict";yO.exports={scattermode:{valType:"enumerated",values:["group","overlay"],dflt:"overlay",editType:"calc"},scattergap:{valType:"number",min:0,max:1,editType:"calc"}}});var Jx=X(Kx=>{"use strict";var Xx=mr(),YQe=(vn(),ct(mn)).SUBPLOT_PATTERN;Kx.getSubplotCalcData=function(e,t,r){var i=Xx.subplotsRegistry[t];if(!i)return[];for(var a=i.attr,n=[],o=0;o{"use strict";var bxe=mr(),o1=et();Z0.manageCommandObserver=function(e,t,r,i){var a={},n=!0;t&&t._commandObserver&&(a=t._commandObserver),a.cache||(a.cache={}),a.lookupTable={};var o=Z0.hasSimpleAPICommandBindings(e,r,a.lookupTable);if(t&&t._commandObserver){if(o)return a;if(t._commandObserver.remove)return t._commandObserver.remove(),t._commandObserver=null,a}if(o){_O(e,o,a.cache),a.check=function(){if(n){var c=_O(e,o,a.cache);return c.changed&&i&&a.lookupTable[c.value]!==void 0&&(a.disable(),Promise.resolve(i({value:c.value,type:o.type,prop:o.prop,traces:o.traces,index:a.lookupTable[c.value]})).then(a.enable,a.enable)),c.changed}};for(var s=["plotly_relayout","plotly_redraw","plotly_restyle","plotly_update","plotly_animatingframe","plotly_afterplot"],l=0;l0?".":"")+a;o1.isPlainObject(n)?$7(n,t,o,i+1):t(o,a,n)}})}});var gn=X((JQe,PO)=>{"use strict";var KQe=Wr(),Axe=Fp().timeFormatLocale,Txe=TA().formatLocale,$v=Br(),Mxe=DA(),Dxe=uv().version,ri=mr(),Sxe=a1(),Exe=Bi(),Nt=et(),kxe=qr(),AO=(Ki(),ct(na)).BADNUM,hs=nn(),Cxe=af().clearOutline,Fxe=Wx(),H7=Rv(),Pxe=O7(),Ixe=Jx().getModuleCalcData,TO=Nt.relinkPrivateKeys,Y0=Nt._,St=PO.exports={};Nt.extendFlat(St,ri);St.attributes=Go();St.attributes.type.values=St.allTypes;St.fontAttrs=to();St.layoutAttributes=Yp();var eb=wO();St.executeAPICommand=eb.executeAPICommand;St.computeAPICommandBindings=eb.computeAPICommandBindings;St.manageCommandObserver=eb.manageCommandObserver;St.hasSimpleAPICommandBindings=eb.hasSimpleAPICommandBindings;St.redrawText=function(e){return e=Nt.getGraphDiv(e),new Promise(function(t){setTimeout(function(){e._fullLayout&&(ri.getComponentMethod("annotations","draw")(e),ri.getComponentMethod("legend","draw")(e),ri.getComponentMethod("colorbar","draw")(e),t(St.previousPromises(e)))},300)})};St.resize=function(e){e=Nt.getGraphDiv(e);var t,r=new Promise(function(i,a){(!e||Nt.isHidden(e))&&a(new Error("Resize must be passed a displayed plot div element.")),e._redrawTimer&&clearTimeout(e._redrawTimer),e._resolveResize&&(t=e._resolveResize),e._resolveResize=i,e._redrawTimer=setTimeout(function(){if(!e.layout||e.layout.width&&e.layout.height||Nt.isHidden(e)){i(e);return}delete e.layout.width,delete e.layout.height;var n=e.changed;e.autoplay=!0,ri.call("relayout",e,{autosize:!0}).then(function(){e.changed=n,e._resolveResize===i&&(delete e._resolveResize,i(e))})},100)});return t&&t(r),r};St.previousPromises=function(e){if((e._promises||[]).length)return Promise.all(e._promises).then(function(){e._promises=[]})};St.sendDataToCloud=function(e,t){e.emit("plotly_beforeexport");let r=new URL(t).origin;var i=St.graphJson(e,!1,"object");i.version=Dxe;var a=new URL(t);a.searchParams.set("origin",window.location.origin);var n=window.open(a.href,"_blank");if(!n){console.error("Unable to open Plotly Cloud (the popup may have been blocked)"),e.emit("plotly_exportfail");return}var o=function(s){s.origin===r&&s.data&&s.data.type==="CHART_AUTH_SUCCESS"&&(n.postMessage({type:"chart",chart:i},r),window.removeEventListener("message",o),e.emit("plotly_afterexport"))};return window.addEventListener("message",o),!1};var Lxe=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],zxe=["year","month","dayMonth","dayMonthYear"];St.supplyDefaults=function(e,t){var r=t&&t.skipUpdateCalc,i=e._fullLayout||{};if(i._skipDefaults){delete i._skipDefaults;return}var a=e._fullLayout={},n=e.layout||{},o=e._fullData||[],s=e._fullData=[],l=e.data||[],u=e.calcdata||[],c=e._context||{},h;e._transitionData||St.createTransitionData(e),a._dfltTitle={plot:Y0(e,"Click to enter Plot title"),subtitle:Y0(e,"Click to enter Plot subtitle"),x:Y0(e,"Click to enter X axis title"),y:Y0(e,"Click to enter Y axis title"),colorbar:Y0(e,"Click to enter Colorscale title"),annotation:Y0(e,"new text")},a._traceWord=Y0(e,"trace");var f=MO(e,Lxe);if(i._initialAutoSizeIsDone){var d=i.width,p=i.height;St.supplyLayoutGlobalDefaults(n,a,f),n.width||(a.width=d),n.height||(a.height=p),St.sanitizeMargins(a)}else{St.supplyLayoutGlobalDefaults(n,a,f);var m=!n.width||!n.height,g=a.autosize,y=c.autosizable,x=m&&(g||y);x?St.plotAutoSize(e,n,a):m&&St.sanitizeMargins(a),!g&&m&&(n.width=a.width,n.height=a.height)}a._d3locale=qxe(f,a.separators),a._extraFormat=MO(e,zxe),a._initialAutoSizeIsDone=!0,a._dataLength=l.length,a._modules=[],a._visibleModules=[],a._basePlotModules=[];var w=a._subplots=Bxe(),_=a._splomAxes={x:{},y:{}},A=a._splomSubplots={};a._splomGridDflt={},a._scatterStackOpts={},a._firstScatter={},a._alignmentOpts={},a._colorAxes={},a._requestRangeslider={},a._traceUids=Rxe(o,l),St.supplyDataDefaults(l,s,n,a);var T=Object.keys(_.x),M=Object.keys(_.y);if(T.length>1&&M.length>1){for(ri.getComponentMethod("grid","sizeDefaults")(n,a),h=0;h15&&M.length>15&&a.shapes.length===0&&a.images.length===0,St.linkSubplots(s,a,o,i),St.cleanPlot(s,a,o,i);var B=!!(i._has&&i._has("cartesian")),L=!!(a._has&&a._has("cartesian")),z=B,O=L;z&&!O?i._bgLayer.remove():O&&!z&&(a._shouldCreateBgLayer=!0),i._zoomlayer&&!e._dragging&&Cxe({_fullLayout:i}),Oxe(s,a),TO(a,i),ri.getComponentMethod("colorscale","crossTraceDefaults")(s,a),a._preGUI||(a._preGUI={}),a._tracePreGUI||(a._tracePreGUI={});var V=a._tracePreGUI,$={},j;for(j in V)$[j]="old";for(h=0;h0){var c=1-2*n;o=Math.round(c*o),s=Math.round(c*s)}}var h=St.layoutAttributes.width.min,f=St.layoutAttributes.height.min;o1,p=!r.height&&Math.abs(i.height-s)>1;(p||d)&&(d&&(i.width=o),p&&(i.height=s)),t._initialAutoSize||(t._initialAutoSize={width:o,height:s}),St.sanitizeMargins(i)};St.supplyLayoutModuleDefaults=function(e,t,r,i){var a=ri.componentsRegistry,n=t._basePlotModules,o,s,l,u=ri.subplotsRegistry.cartesian;for(o in a)l=a[o],l.includeBasePlot&&l.includeBasePlot(e,t);n.length||n.push(u),t._has("cartesian")&&(ri.getComponentMethod("grid","contentDefaults")(e,t),u.finalizeSubplots(e,t));for(var c in t._subplots)t._subplots[c].sort(Nt.subplotSort);for(s=0;s1&&(r.l/=g,r.r/=g)}if(f){var y=(r.t+r.b)/f;y>1&&(r.t/=y,r.b/=y)}var x=r.xl!==void 0?r.xl:r.x,w=r.xr!==void 0?r.xr:r.x,_=r.yt!==void 0?r.yt:r.y,A=r.yb!==void 0?r.yb:r.y;d[t]={l:{val:x,size:r.l+m},r:{val:w,size:r.r+m},b:{val:A,size:r.b+m},t:{val:_,size:r.t+m}},p[t]=1}if(!i._replotting)return St.doAutoMargin(e)}};function Vxe(e){if("_redrawFromAutoMarginCount"in e._fullLayout)return!1;var t=hs.list(e,"",!0);for(var r in t)if(t[r].autoshift||t[r].shift)return!0;return!1}St.doAutoMargin=function(e){var t=e._fullLayout,r=t.width,i=t.height;t._size||(t._size={}),EO(t);var a=t._size,n=t.margin,o={t:0,b:0,l:0,r:0},s=Nt.extendFlat({},a),l=n.l,u=n.r,c=n.t,h=n.b,f=t._pushmargin,d=t._pushmarginIds,p=t.minreducedwidth,m=t.minreducedheight;if(n.autoexpand!==!1){for(var g in f)d[g]||delete f[g];var y=e._fullLayout._reservedMargin;for(var x in y)for(var w in y[x]){var _=y[x][w];o[w]=Math.max(o[w],_)}f.base={l:{val:0,size:l},r:{val:1,size:u},t:{val:1,size:c},b:{val:0,size:h}};for(var A in o){var T=0;for(var M in f)M!=="base"&&$v(f[M][A].size)&&(T=f[M][A].size>T?f[M][A].size:T);var S=Math.max(0,n[A]-T);o[A]=Math.max(0,o[A]-S)}for(var k in f){var P=f[k].l||{},I=f[k].b||{},B=P.val,L=P.size,z=I.val,O=I.size,V=r-o.r-o.l,$=i-o.t-o.b;for(var j in f){if($v(L)&&f[j].r){var H=f[j].r.val,Z=f[j].r.size;if(H>B){var W=(L*H+(Z-V)*B)/(H-B),le=(Z*(1-B)+(L-V)*(1-H))/(H-B);W+le>l+u&&(l=W,u=le)}}if($v(O)&&f[j].t){var pe=f[j].t.val,_e=f[j].t.size;if(pe>z){var De=(O*pe+(_e-$)*z)/(pe-z),de=(_e*(1-z)+(O-$)*(1-pe))/(pe-z);De+de>h+c&&(h=De,c=de)}}}}}var Ce=Nt.constrain(r-n.l-n.r,kO,p),Q=Nt.constrain(i-n.t-n.b,CO,m),ae=Math.max(0,r-Ce),ye=Math.max(0,i-Q);if(ae){var te=(l+u)/ae;te>1&&(l/=te,u/=te)}if(ye){var re=(h+c)/ye;re>1&&(h/=re,c/=re)}if(a.l=Math.round(l)+o.l,a.r=Math.round(u)+o.r,a.t=Math.round(c)+o.t,a.b=Math.round(h)+o.b,a.p=Math.round(n.pad),a.w=Math.round(r)-a.l-a.r,a.h=Math.round(i)-a.t-a.b,!t._replotting&&(St.didMarginChange(s,a)||Vxe(e))){"_redrawFromAutoMarginCount"in t?t._redrawFromAutoMarginCount++:t._redrawFromAutoMarginCount=1;var ce=3*(1+Object.keys(d).length);if(t._redrawFromAutoMarginCount1)return!0}return!1};St.graphJson=function(e,t=!1,r="json",i=!1,a=!1){(i&&t&&!e._fullData||i&&!t&&!e._fullLayout)&&St.supplyDefaults(e);var n=i?e._fullData:e.data,o=i?e._fullLayout:e.layout,s=(e._transitionData||{})._frames;function l(h,f){if(typeof h=="function")return f?"_function_":null;if(Nt.isPlainObject(h)){var d={};return Object.keys(h).sort().forEach(function(y){if(["_","["].indexOf(y.charAt(0))===-1){if(typeof h[y]=="function"){f&&(d[y]="_function");return}d[y]=l(h[y],f)}}),d}var p=Array.isArray(h),m=Nt.isTypedArray(h);if((p||m)&&h.dtype&&h.shape){var g=h.bdata;return l({dtype:h.dtype,shape:h.shape,bdata:Nt.isArrayBuffer(g)?Mxe.encode(g):g},f)}return p?h.map(function(y){return l(y,f)}):m?Nt.simpleMap(h,Nt.identity):Nt.isJSDate(h)?Nt.ms2DateTimeLocal(+h):h}var u={data:(n||[]).map(function(h){var f=l(h);return t&&delete f.fit,f})};if(!t&&(u.layout=l(o),i)){var c=o._size;u.layout.computed={margin:{b:c.b,l:c.l,r:c.r,t:c.t}}}return s&&(u.frames=l(s)),a&&(u.config=l(e._context,!0)),r==="object"?u:JSON.stringify(u)};St.modifyFrames=function(e,t){var r,i,a,n=e._transitionData._frames,o=e._transitionData._frameHash;for(r=0;r0&&(e._transitioningWithDuration=!0),e._transitionData._interruptCallbacks.push(function(){i=!0}),r.redraw&&e._transitionData._interruptCallbacks.push(function(){return ri.call("redraw",e)}),e._transitionData._interruptCallbacks.push(function(){e.emit("plotly_transitioninterrupted",[])});var f=0,d=0;function p(){return f++,function(){d++,!i&&d===f&&s(h)}}r.runFn(p),setTimeout(p())})}function s(h){if(e._transitionData)return n(e._transitionData._interruptCallbacks),Promise.resolve().then(function(){if(r.redraw)return ri.call("redraw",e)}).then(function(){e._transitioning=!1,e._transitioningWithDuration=!1,e.emit("plotly_transitioned",[])}).then(h)}function l(){if(e._transitionData)return e._transitioning=!1,a(e._transitionData._interruptCallbacks)}var u=[St.previousPromises,l,r.prepareFn,St.rehover,St.reselect,o],c=Nt.syncOrAsync(u,e);return(!c||!c.then)&&(c=Promise.resolve()),c.then(function(){return e})}St.doCalcdata=function(e,t){var r=hs.list(e),i=e._fullData,a=e._fullLayout,n,o,s,l=new Array(i.length),u=(e.calcdata||[]).slice();for(e.calcdata=l,a._numBoxes=0,a._numViolins=0,a._violinScaleGroupStats={},e._hmpixcount=0,e._hmlumcount=0,a._piecolormap={},a._sunburstcolormap={},a._treemapcolormap={},a._iciclecolormap={},a._funnelareacolormap={},s=0;sIO,svgAttrs:()=>Zxe,xlink:()=>LO,xmlns:()=>Hxe});var Hxe,IO,LO,Zxe,of=Vi(()=>{"use strict";Hxe="http://www.w3.org/2000/xmlns/",IO="http://www.w3.org/2000/svg",LO="http://www.w3.org/1999/xlink",Zxe={xmlns:IO,"xmlns:xlink":LO}});var io={};Zi(io,{CAP_SHIFT:()=>Jxe,FROM_BL:()=>Yxe,FROM_BR:()=>Xxe,FROM_TL:()=>Wxe,LINE_SPACING:()=>Kxe,MID_SHIFT:()=>Qxe,OPPOSITE_SIDE:()=>ebe});var Yxe,Wxe,Xxe,Kxe,Jxe,Qxe,ebe,ao=Vi(()=>{"use strict";Yxe={left:0,center:.5,right:1,bottom:0,middle:.5,top:1},Wxe={left:0,center:.5,right:1,bottom:1,middle:.5,top:0},Xxe={left:1,center:.5,right:0,bottom:0,middle:.5,top:1},Kxe=1.3,Jxe=.7,Qxe=.35,ebe={left:"right",right:"left",top:"bottom",bottom:"top"}});var sn=X(zs=>{"use strict";var on=Wr(),vl=et(),tbe=vl.strTranslate,Z7=(of(),ct(nf)),rbe=(ao(),ct(io)).LINE_SPACING,ibe=/([^$]*)([$]+[^$]*[$]+)([^$]*)/,NO=e=>e?e.match(ibe):null;zs.matchTex=NO;zs.convertToTspans=function(e,t,r){var i=e.text(),a=!e.attr("data-notex")&&t&&t._context.typesetMath&&NO(i);a&&!sbe()&&(a=null);var n=on.select(e.node().parentNode);if(n.empty())return;var o=e.attr("class")?e.attr("class").split(" ")[0]:"text";o+="-math",n.selectAll("svg."+o).remove(),n.selectAll("g."+o+"-group").remove(),e.style("display",null).attr({"data-unformatted":i,"data-math":"N"});function s(){n.empty()||(o=e.attr("class")+"-math",n.select("svg."+o).remove()),e.text("").style("white-space","pre");var l=gbe(e.node(),i);l&&e.style("pointer-events","all"),zs.positionText(e),r&&r.call(e)}return a?(t&&t._promises||[]).push(new Promise(function(l){e.style("display","none");var u=parseInt(e.node().style.fontSize,10),c={fontSize:u},h=e.attr("text-anchor");lbe(a[2],c,function(f,d,p){n.selectAll("svg."+o).remove(),n.selectAll("g."+o+"-group").remove();var m=f&&f.select("svg");if(!m||!m.node()){s(),l();return}e.style("display","none");var g=n.append("g").classed(o+"-group",!0).attr({"pointer-events":"none","data-unformatted":i,"data-math":"Y"});g.node().appendChild(m.node()),d&&d.node()&&m.node().insertBefore(d.node().cloneNode(!0),m.node().firstChild);var y=p.width,x=p.height;m.attr({class:o,height:x,preserveAspectRatio:"xMinYMin meet"}).style({overflow:"visible","pointer-events":"none","font-size":c.fontSize+"px"});var w=e.node().style.fill||"black",_=m.select("g");_.attr({fill:w,stroke:w});var A=_.node().getBoundingClientRect(),T=A.width,M=A.height;(T>y||M>x)&&(m.style("overflow","hidden"),A=m.node().getBoundingClientRect(),T=A.width,M=A.height);var S=+e.attr("x"),k=+e.attr("y"),P=u||e.node().getBoundingClientRect().height,I=-P/4;o[0]==="y"?g.attr({transform:"rotate("+[-90,S,k]+")"+tbe(-T/2,I-M/2)}):o[0]==="l"?k=I-M/2:o[0]==="a"&&o.indexOf("atitle")!==0?(S=0,k=I):(S=S-T*(h==="middle"?.5:h==="end"?1:0),k=k+I-M/2),m.attr({x:S,y:k}),r&&r.call(e,g),l(g)})})):s(),e};var abe=/(<|<|<)/g,nbe=/(>|>|>)/g;function obe(e){return e.replace(abe,"\\lt ").replace(nbe,"\\gt ")}var Y7=null,VO=()=>typeof MathJax!="undefined"&&MathJax.version?parseInt(MathJax.version.split(".")[0]):null,zO=!1,RO=!1;function sbe(){let e=VO();return e===3||e===4?!0:(e===null?zO||(zO=!0,vl.warn("MathJax is not loaded. Math equations will not be rendered.")):RO||(RO=!0,vl.warn("Unsupported MathJax version:",MathJax.version)),!1)}function lbe(e,t,r){let i=VO();var a;let n=function(){if(!Y7){let u=MathJax._.output.svg_ts.SVG,c=vl.extendFlat({},MathJax.config.svg,{fontCache:"local"});i===4&&(c.linebreaks=vl.extendFlat({},c.linebreaks,{inline:!1})),Y7=MathJax._.mathjax.mathjax.document(document,vl.extendFlat({},MathJax.config.options,{InputJax:MathJax.startup.input,OutputJax:new u(c)}))}let s="math-output-"+vl.randstr({},64);a=on.select("body").append("div").attr({id:s}).style({visibility:"hidden",position:"absolute","font-size":t.fontSize+"px"});let l=obe(e).replace(/^\$+|\$+$/g,"");return MathJax._.mathjax.mathjax.handleRetriesFor(function(){return Y7.convert(l,{display:!1})}).then(function(u){a.node().appendChild(u)})},o=function(){let s=a.select(".MathJax"),l=!s.empty()&&a.select("svg").node();if(!l)vl.log("There was an error in the tex syntax.",e),r();else{let u=l.getBoundingClientRect(),c=s.select("defs");r(s,c,u)}a.remove()};Promise.resolve().then(n).then(o).catch(s=>{vl.log("MathJax typesetting failed.",e,s),a&&a.remove(),r()})}var UO={sup:"font-size:70%",sub:"font-size:70%",s:"text-decoration:line-through",u:"text-decoration:underline",b:"font-weight:bold",i:"font-style:italic",a:"cursor:pointer",span:"",em:"font-style:italic;font-weight:bold"},ube={sub:"0.3em",sup:"-0.6em"},cbe={sub:"-0.21em",sup:"0.42em"},BO="\u200B",qO=["http:","https:","mailto:","",void 0,":"],GO=zs.NEWLINES=/(\r\n?|\n)/g,X7=/(<[^<>]*>)/,K7=/<(\/?)([^ >]*)(\s+(.*))?>/i,hbe=//i;zs.BR_TAG_ALL=//gi;var jO=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,$O=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,HO=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,fbe=/(^|[\s"'])popup\s*=\s*("([\w=,]*)"|'([\w=,]*)')/i;function W0(e,t){if(!e)return null;var r=e.match(t),i=r&&(r[3]||r[4]);return i&&tb(i)}var dbe=/(^|;)\s*color:/;zs.plainText=function(e,t){t=t||{};for(var r=t.len!==void 0&&t.len!==-1?t.len:1/0,i=t.allowedTags!==void 0?t.allowedTags:["br"],a="...",n=a.length,o=e.split(X7),s=[],l="",u=0,c=0;cn?s.push(h.slice(0,Math.max(0,m-n))+a):s.push(h.slice(0,m));break}l=""}}return s.join("")};var pbe={mu:"\u03BC",amp:"&",lt:"<",gt:">",nbsp:"\xA0",times:"\xD7",plusmn:"\xB1",deg:"\xB0"},mbe=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function tb(e){return e.replace(mbe,function(t,r){var i;return r.charAt(0)==="#"?i=vbe(r.charAt(1)==="x"?parseInt(r.slice(2),16):parseInt(r.slice(1),10)):i=pbe[r],i||t})}zs.convertEntities=tb;function vbe(e){if(!(e>1114111)){var t=String.fromCodePoint;if(t)return t(e);var r=String.fromCharCode;return e<=65535?r(e):r((e>>10)+55232,e%1024+56320)}}function gbe(e,t){t=t.replace(GO," ");var r=!1,i=[],a,n=-1;function o(){n++;var T=document.createElementNS(Z7.svg,"tspan");on.select(T).attr({class:"line",dy:n*rbe+"em"}),e.appendChild(T),a=T;var M=i;if(i=[{node:T}],M.length>1)for(var S=1;S.",t);return}var M=i.pop();T!==M.type&&vl.log("Start tag <"+M.type+"> doesnt match end tag <"+T+">. Pretending it did match.",t),a=i[i.length-1].node}var c=hbe.test(t);c?o():(a=e,i=[{node:e}]);for(var h=t.split(X7),f=0;f{"use strict";var ybe=Wr(),Zv=Br(),rb=et(),X0=qr(),_be=N0().isValid;function xbe(e,t,r){var i=t?rb.nestedProperty(e,t).get()||{}:e,a=i[r||"color"];a&&a._inputArray&&(a=a._inputArray);var n=!1;if(rb.isArrayOrTypedArray(a)){for(var o=0;o=0;i--,a++){var n=e[i];r[a]=[1-n[0],n[1]]}return r}function JO(e,t){t=t||{};for(var r=e.domain,i=e.range,a=i.length,n=new Array(a),o=0;o{"use strict";var eN=(g7(),ct(v7)),wbe=eN.FORMAT_LINK,Abe=eN.DATE_FORMAT_LINK;function Tbe(e,t){return{valType:"string",dflt:"",editType:"none",description:(t?J7:tN)("hover text",e)+["By default the values are formatted using "+(t?"generic number format":"`"+e+"axis.hoverformat`")+"."].join(" ")}}function J7(e,t){return["Sets the "+e+" formatting rule"+(t?" for `"+t+"`":""),"using d3 formatting mini-languages","which are very similar to those in Python. For numbers, see: "+wbe+"."].join(" ")}function tN(e,t){return J7(e,t)+[" And for dates see: "+Abe+".","We add two items to d3's date formatter:","*%h* for half of the year as a decimal number as well as","*%{n}f* for fractional seconds","with n digits. For example, *2016-10-13 09:15:23.456* with tickformat","*%H~%M~%S.%2f* would display *09~15~23.46*"].join(" ")}rN.exports={axisHoverFormat:Tbe,descriptionOnlyNumbers:J7,descriptionWithDates:tN}});var pu=X((iet,_N)=>{"use strict";var iN=to(),s1=ec(),yN=Zc().dash,t8=Ta().extendFlat,aN=Bi().templatedArray,ret=tc().templateFormatStringDescription,nN=Q7().descriptionWithDates,Mbe=(Ki(),ct(na)).ONEDAY,ac=(vn(),ct(mn)),Dbe=ac.HOUR_PATTERN,Sbe=ac.WEEKDAY_PATTERN,e8={valType:"enumerated",values:["auto","linear","array"],editType:"ticks",impliedEdits:{tick0:void 0,dtick:void 0}},Ebe=t8({},e8,{values:e8.values.slice().concat(["sync"])});function oN(e){return{valType:"integer",min:0,dflt:e?5:0,editType:"ticks"}}var sN={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},lN={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},uN={valType:"data_array",editType:"ticks"},cN={valType:"enumerated",values:["outside","inside",""],editType:"ticks"};function hN(e){var t={valType:"number",min:0,editType:"ticks"};return e||(t.dflt=5),t}function fN(e){var t={valType:"number",min:0,editType:"ticks"};return e||(t.dflt=1),t}var dN={valType:"color",dflt:s1.defaultLine,editType:"ticks"},pN={valType:"color",dflt:s1.lightLine,editType:"ticks"};function mN(e){var t={valType:"number",min:0,editType:"ticks"};return e||(t.dflt=1),t}var vN=t8({},yN,{editType:"ticks"}),gN={valType:"boolean",editType:"ticks"};_N.exports={visible:{valType:"boolean",editType:"plot"},color:{valType:"color",dflt:s1.defaultLine,editType:"ticks"},title:{text:{valType:"string",editType:"ticks"},font:iN({editType:"ticks",description:"Sets this axis' title font."}),standoff:{valType:"number",min:0,editType:"ticks"},editType:"ticks"},type:{valType:"enumerated",values:["-","linear","log","date","category","multicategory"],dflt:"-",editType:"calc",_noTemplating:!0},autotypenumbers:{valType:"enumerated",values:["convert types","strict"],dflt:"convert types",editType:"calc"},autorange:{valType:"enumerated",values:[!0,!1,"reversed","min reversed","max reversed","min","max"],dflt:!0,editType:"axrange",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},autorangeoptions:{minallowed:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},maxallowed:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},clipmin:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},clipmax:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},include:{valType:"any",arrayOk:!0,editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},editType:"plot"},rangemode:{valType:"enumerated",values:["normal","tozero","nonnegative"],dflt:"normal",editType:"plot"},range:{valType:"info_array",items:[{valType:"any",editType:"axrange",impliedEdits:{"^autorange":!1},anim:!0},{valType:"any",editType:"axrange",impliedEdits:{"^autorange":!1},anim:!0}],editType:"axrange",impliedEdits:{autorange:!1},anim:!0},minallowed:{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},maxallowed:{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},fixedrange:{valType:"boolean",dflt:!1,editType:"calc"},modebardisable:{valType:"flaglist",flags:["autoscale","zoominout"],extras:["none"],dflt:"none",editType:"modebar"},insiderange:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},scaleanchor:{valType:"enumerated",values:[ac.idRegex.x.toString(),ac.idRegex.y.toString(),!1],editType:"plot"},scaleratio:{valType:"number",min:0,dflt:1,editType:"plot"},constrain:{valType:"enumerated",values:["range","domain"],editType:"plot"},constraintoward:{valType:"enumerated",values:["left","center","right","top","middle","bottom"],editType:"plot"},matches:{valType:"enumerated",values:[ac.idRegex.x.toString(),ac.idRegex.y.toString()],editType:"calc"},rangebreaks:aN("rangebreak",{enabled:{valType:"boolean",dflt:!0,editType:"calc"},bounds:{valType:"info_array",items:[{valType:"any",editType:"calc"},{valType:"any",editType:"calc"}],editType:"calc"},pattern:{valType:"enumerated",values:[Sbe,Dbe,""],editType:"calc"},values:{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"any",editType:"calc"}},dvalue:{valType:"number",editType:"calc",min:0,dflt:Mbe},editType:"calc"}),tickmode:Ebe,nticks:oN(),tick0:sN,dtick:lN,ticklabelstep:{valType:"integer",min:1,dflt:1,editType:"ticks"},tickvals:uN,ticktext:{valType:"data_array",editType:"ticks"},ticks:cN,tickson:{valType:"enumerated",values:["labels","boundaries"],dflt:"labels",editType:"ticks"},ticklabelmode:{valType:"enumerated",values:["instant","period"],dflt:"instant",editType:"ticks"},ticklabelposition:{valType:"enumerated",values:["outside","inside","outside top","inside top","outside left","inside left","outside right","inside right","outside bottom","inside bottom"],dflt:"outside",editType:"calc"},ticklabeloverflow:{valType:"enumerated",values:["allow","hide past div","hide past domain"],editType:"calc"},ticklabelshift:{valType:"integer",dflt:0,editType:"ticks"},ticklabelstandoff:{valType:"integer",dflt:0,editType:"ticks"},ticklabelindex:{valType:"integer",arrayOk:!0,editType:"calc"},mirror:{valType:"enumerated",values:[!0,"ticks",!1,"all","allticks"],dflt:!1,editType:"ticks+layoutstyle"},ticklen:hN(),tickwidth:fN(),tickcolor:dN,showticklabels:{valType:"boolean",dflt:!0,editType:"ticks"},labelalias:{valType:"any",dflt:!1,editType:"ticks"},automargin:{valType:"flaglist",flags:["height","width","left","right","top","bottom"],extras:[!0,!1],dflt:!1,editType:"ticks"},showspikes:{valType:"boolean",dflt:!1,editType:"modebar"},spikecolor:{valType:"color",dflt:null,editType:"none"},spikethickness:{valType:"number",dflt:3,editType:"none"},spikedash:t8({},yN,{dflt:"dash",editType:"none"}),spikemode:{valType:"flaglist",flags:["toaxis","across","marker"],dflt:"toaxis",editType:"none"},spikesnap:{valType:"enumerated",values:["data","cursor","hovered data"],dflt:"hovered data",editType:"none"},tickfont:iN({editType:"ticks"}),tickangle:{valType:"angle",dflt:"auto",editType:"ticks"},autotickangles:{valType:"info_array",freeLength:!0,items:{valType:"angle"},dflt:[0,30,90],editType:"ticks"},tickprefix:{valType:"string",dflt:"",editType:"ticks"},showtickprefix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},ticksuffix:{valType:"string",dflt:"",editType:"ticks"},showticksuffix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},showexponent:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},exponentformat:{valType:"enumerated",values:["none","e","E","power","SI","B","SI extended"],dflt:"B",editType:"ticks"},minexponent:{valType:"number",dflt:3,min:0,editType:"ticks"},separatethousands:{valType:"boolean",dflt:!1,editType:"ticks"},tickformat:{valType:"string",dflt:"",editType:"ticks",description:nN("tick label")},tickformatstops:aN("tickformatstop",{enabled:{valType:"boolean",dflt:!0,editType:"ticks"},dtickrange:{valType:"info_array",items:[{valType:"any",editType:"ticks"},{valType:"any",editType:"ticks"}],editType:"ticks"},value:{valType:"string",dflt:"",editType:"ticks"},editType:"ticks"}),hoverformat:{valType:"string",dflt:"",editType:"none",description:nN("hover text")},unifiedhovertitle:{text:{valType:"string",dflt:"",editType:"none"},editType:"none"},showline:{valType:"boolean",dflt:!1,editType:"ticks+layoutstyle"},linecolor:{valType:"color",dflt:s1.defaultLine,editType:"layoutstyle"},linewidth:{valType:"number",min:0,dflt:1,editType:"ticks+layoutstyle"},showgrid:gN,gridcolor:pN,gridwidth:mN(),griddash:vN,zeroline:{valType:"boolean",editType:"ticks"},zerolinecolor:{valType:"color",dflt:s1.defaultLine,editType:"ticks"},zerolinelayer:{valType:"enumerated",values:["above traces","below traces"],dflt:"below traces",editType:"plot"},zerolinewidth:{valType:"number",dflt:1,editType:"ticks"},showdividers:{valType:"boolean",dflt:!0,editType:"ticks"},dividercolor:{valType:"color",dflt:s1.defaultLine,editType:"ticks"},dividerwidth:{valType:"number",dflt:1,editType:"ticks"},anchor:{valType:"enumerated",values:["free",ac.idRegex.x.toString(),ac.idRegex.y.toString()],editType:"plot"},side:{valType:"enumerated",values:["top","bottom","left","right"],editType:"plot"},overlaying:{valType:"enumerated",values:["free",ac.idRegex.x.toString(),ac.idRegex.y.toString()],editType:"plot"},minor:{tickmode:e8,nticks:oN("minor"),tick0:sN,dtick:lN,tickvals:uN,ticks:cN,ticklen:hN("minor"),tickwidth:fN("minor"),tickcolor:dN,gridcolor:pN,gridwidth:mN("minor"),griddash:vN,showgrid:gN,editType:"ticks"},minorloglabels:{valType:"enumerated",values:["small digits","complete","none"],dflt:"small digits",editType:"calc"},layer:{valType:"enumerated",values:["above traces","below traces"],dflt:"above traces",editType:"plot"},domain:{valType:"info_array",items:[{valType:"number",min:0,max:1,editType:"plot"},{valType:"number",min:0,max:1,editType:"plot"}],dflt:[0,1],editType:"plot"},position:{valType:"number",min:0,max:1,dflt:0,editType:"plot"},autoshift:{valType:"boolean",dflt:!1,editType:"plot"},shift:{valType:"number",editType:"plot"},categoryorder:{valType:"enumerated",values:["trace","category ascending","category descending","array","total ascending","total descending","min ascending","min descending","max ascending","max descending","sum ascending","sum descending","mean ascending","mean descending","geometric mean ascending","geometric mean descending","median ascending","median descending"],dflt:"trace",editType:"calc"},categoryarray:{valType:"data_array",editType:"calc"},uirevision:{valType:"any",editType:"none"},editType:"calc"}});var ib=X((aet,bN)=>{"use strict";var ea=pu(),xN=to(),r8=Ta().extendFlat,kbe=Is().overrideAll;bN.exports=kbe({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:ea.linecolor,outlinewidth:ea.linewidth,bordercolor:ea.linecolor,borderwidth:{valType:"number",min:0,dflt:0},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},tickmode:ea.minor.tickmode,nticks:ea.nticks,tick0:ea.tick0,dtick:r8({},ea.dtick,{}),tickvals:ea.tickvals,ticktext:ea.ticktext,ticks:r8({},ea.ticks,{dflt:""}),ticklabeloverflow:r8({},ea.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:ea.ticklen,tickwidth:ea.tickwidth,tickcolor:ea.tickcolor,ticklabelstep:ea.ticklabelstep,showticklabels:ea.showticklabels,labelalias:ea.labelalias,tickfont:xN({description:"Sets the color bar's tick label font"}),tickangle:ea.tickangle,tickformat:ea.tickformat,tickformatstops:ea.tickformatstops,tickprefix:ea.tickprefix,showtickprefix:ea.showtickprefix,ticksuffix:ea.ticksuffix,showticksuffix:ea.showticksuffix,separatethousands:ea.separatethousands,exponentformat:ea.exponentformat,minexponent:ea.minexponent,showexponent:ea.showexponent,title:{text:{valType:"string"},font:xN({description:"Sets this color bar's title font."}),side:{valType:"enumerated",values:["right","top","bottom"]}}},"colorbars","from-root")});var eh=X((oet,AN)=>{"use strict";var Cbe=ib(),Fbe=($p(),ct(Lv)).counter,Pbe=(Ix(),ct(Px)).default,wN=N0().scales,net=Pbe(wN);function ab(e){return"`"+e+"`"}AN.exports=function(t,r){t=t||"",r=r||{};var i=r.cLetter||"c",a="onlyIfNumerical"in r?r.onlyIfNumerical:!!t,n="noScale"in r?r.noScale:t==="marker.line",o="showScaleDflt"in r?r.showScaleDflt:i==="z",s=typeof r.colorscaleDflt=="string"?wN[r.colorscaleDflt]:null,l=r.editTypeOverride||"",u=t?t+".":"",c,h;"colorAttr"in r?(c=r.colorAttr,h=r.colorAttr):(c={z:"z",c:"color"}[i],h="in "+ab(u+c));var f=a?" Has an effect only if "+h+" is set to a numerical array.":"",d=i+"auto",p=i+"min",m=i+"max",g=i+"mid",y=ab(u+d),x=ab(u+p),w=ab(u+m),_=x+" and "+w,A={};A[p]=A[m]=void 0;var T={};T[d]=!1;var M={};return c==="color"&&(M.color={valType:"color",arrayOk:!0,editType:l||"style"},r.anim&&(M.color.anim=!0)),M[d]={valType:"boolean",dflt:!0,editType:"calc",impliedEdits:A},M[p]={valType:"number",dflt:null,editType:l||"plot",impliedEdits:T},M[m]={valType:"number",dflt:null,editType:l||"plot",impliedEdits:T},M[g]={valType:"number",dflt:null,editType:"calc",impliedEdits:A},M.colorscale={valType:"colorscale",editType:"calc",dflt:s,impliedEdits:{autocolorscale:!1}},M.autocolorscale={valType:"boolean",dflt:r.autoColorDflt!==!1,editType:"calc",impliedEdits:{colorscale:void 0}},M.reversescale={valType:"boolean",dflt:!1,editType:"plot"},n||(M.showscale={valType:"boolean",dflt:o,editType:"calc"},M.colorbar=Cbe),r.noColorAxis||(M.coloraxis={valType:"subplotid",regex:Fbe("coloraxis"),dflt:null,editType:"calc"}),M}});var a8=X((set,TN)=>{"use strict";var Ibe=Ta().extendFlat,Lbe=eh(),i8=N0().scales;TN.exports={editType:"calc",colorscale:{editType:"calc",sequential:{valType:"colorscale",dflt:i8.Reds,editType:"calc"},sequentialminus:{valType:"colorscale",dflt:i8.Blues,editType:"calc"},diverging:{valType:"colorscale",dflt:i8.RdBu,editType:"calc"}},coloraxis:Ibe({_isSubplotObj:!0,editType:"calc"},Lbe("",{colorAttr:"corresponding trace color array(s)",noColorAxis:!0,showScaleDflt:!0}))}});var n8=X((uet,MN)=>{"use strict";var zbe=et();MN.exports=function(t){return zbe.isPlainObject(t.colorbar)}});var l8=X(s8=>{"use strict";var o8=Br(),DN=et(),SN=(Ki(),ct(na)),Rbe=SN.ONEDAY,Bbe=SN.ONEWEEK;s8.dtick=function(e,t){var r=t==="log",i=t==="date",a=t==="category",n=i?Rbe:1;if(!e)return n;if(o8(e))return e=Number(e),e<=0?n:a?Math.max(1,Math.round(e)):i?Math.max(.1,e):e;if(typeof e!="string"||!(i||r))return n;var o=e.charAt(0),s=e.slice(1);return s=o8(s)?Number(s):0,s<=0||!(i&&o==="M"&&s===Math.round(s)||r&&o==="L"||r&&o==="D"&&(s===1||s===2))?n:e};s8.tick0=function(e,t,r,i){if(t==="date")return DN.cleanDate(e,DN.dateTick0(r,i%Bbe===0?1:0));if(!(i==="D1"||i==="D2"))return o8(e)?Number(e):0}});var u8=X((het,kN)=>{"use strict";var EN=l8(),qbe=et().isArrayOrTypedArray,Obe=os().isTypedArraySpec,Nbe=os().decodeTypedArraySpec;kN.exports=function(t,r,i,a,n={}){var o=n.isMinor,s=o?t.minor||{}:t,l=o?r.minor:r,u=o?"minor.":"";function c(_){var A=s[_];return Obe(A)&&(A=Nbe(A)),A!==void 0?A:(l._template||{})[_]}var h=c("tick0"),f=c("dtick"),d=c("tickvals"),p=c("overlaying"),m=a==="category"||a==="multicategory",g;qbe(d)?g="array":f?g="linear":p&&!m?g="sync":g="auto";var y=i(u+"tickmode",g);if(y==="auto"||y==="sync")i(u+"nticks");else if(y==="linear"){var x=l.dtick=EN.dtick(f,a);l.tick0=EN.tick0(h,a,r.calendar,x)}else if(a!=="multicategory"){var w=i(u+"tickvals");w===void 0?l.tickmode="auto":o||i("ticktext")}}});var h8=X((fet,FN)=>{"use strict";var c8=et(),CN=pu();FN.exports=function(t,r,i,a){var n=a.isMinor,o=n?t.minor||{}:t,s=n?r.minor:r,l=n?CN.minor:CN,u=n?"minor.":"",c=c8.coerce2(o,s,l,"ticklen",n?(r.ticklen||5)*.6:void 0),h=c8.coerce2(o,s,l,"tickwidth",n?r.tickwidth||1:void 0),f=c8.coerce2(o,s,l,"tickcolor",(n?r.tickcolor:void 0)||s.color),d=i(u+"ticks",!n&&a.outerTicks||c||h||f?"outside":"");d||(delete s.ticklen,delete s.tickwidth,delete s.tickcolor)}});var f8=X((det,PN)=>{"use strict";PN.exports=function(t){var r=["showexponent","showtickprefix","showticksuffix"],i=r.filter(function(n){return t[n]!==void 0}),a=function(n){return t[n]===t[i[0]]};if(i.every(a)||i.length===1)return t[i[0]]}});var gl=X((pet,IN)=>{"use strict";var nb=et(),Vbe=Bi();IN.exports=function(t,r,i){var a=i.name,n=i.inclusionAttr||"visible",o=r[a],s=nb.isArrayOrTypedArray(t[a])?t[a]:[],l=r[a]=[],u=Vbe.arrayTemplater(r,a,n),c,h;for(c=0;c{"use strict";var d8=et(),Ube=qr().contrast,LN=pu(),Gbe=f8(),jbe=gl();zN.exports=function(t,r,i,a,n){n||(n={});var o=i("labelalias");d8.isPlainObject(o)||delete r.labelalias;var s=Gbe(t),l=i("showticklabels");if(l){n.noTicklabelshift||i("ticklabelshift"),n.noTicklabelstandoff||i("ticklabelstandoff");var u=n.font||{},c=r.color,h=r.ticklabelposition||"",f=h.indexOf("inside")!==-1?Ube(n.bgColor):c&&c!==LN.color.dflt?c:u.color;if(d8.coerceFont(i,"tickfont",u,{overrideDflt:{color:f}}),!n.noTicklabelstep&&a!=="multicategory"&&a!=="log"&&i("ticklabelstep"),!n.noAng){var d=i("tickangle");!n.noAutotickangles&&d==="auto"&&i("autotickangles")}if(a!=="category"){var p=i("tickformat");jbe(t,r,{name:"tickformatstops",inclusionAttr:"enabled",handleItemDefaults:$be}),r.tickformatstops.length||delete r.tickformatstops,!n.noExp&&!p&&a!=="date"&&(i("showexponent",s),i("exponentformat"),i("minexponent"),i("separatethousands"))}!n.noMinorloglabels&&a==="log"&&i("minorloglabels")}};function $be(e,t){function r(a,n){return d8.coerce(e,t,LN.tickformatstops,a,n)}var i=r("enabled");i&&(r("dtickrange"),r("value"))}});var m8=X((vet,RN)=>{"use strict";var Hbe=f8();RN.exports=function(t,r,i,a,n){n||(n={});var o=n.tickSuffixDflt,s=Hbe(t),l=i("tickprefix");l&&i("showtickprefix",s);var u=i("ticksuffix",o);u&&i("showticksuffix",s)}});var v8=X((get,BN)=>{"use strict";var sf=et(),Zbe=Bi(),Ybe=u8(),Wbe=h8(),Xbe=p8(),Kbe=m8(),Jbe=ib();BN.exports=function(t,r,i){var a=Zbe.newContainer(r,"colorbar"),n=t.colorbar||{};function o(I,B){return sf.coerce(n,a,Jbe,I,B)}var s=i.margin||{t:0,b:0,l:0,r:0},l=i.width-s.l-s.r,u=i.height-s.t-s.b,c=o("orientation"),h=c==="v",f=o("thicknessmode");o("thickness",f==="fraction"?30/(h?l:u):30);var d=o("lenmode");o("len",d==="fraction"?1:h?u:l);var p=o("yref"),m=o("xref"),g=p==="paper",y=m==="paper",x,w,_,A="left";h?(_="middle",A=y?"left":"right",x=y?1.02:1,w=.5):(_=g?"bottom":"top",A="center",x=.5,w=g?1.02:1),sf.coerce(n,a,{x:{valType:"number",min:y?-2:0,max:y?3:1,dflt:x}},"x"),sf.coerce(n,a,{y:{valType:"number",min:g?-2:0,max:g?3:1,dflt:w}},"y"),o("xanchor",A),o("xpad"),o("yanchor",_),o("ypad"),sf.noneOrAll(n,a,["x","y"]),o("outlinecolor"),o("outlinewidth"),o("bordercolor"),o("borderwidth"),o("bgcolor");var T=sf.coerce(n,a,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:h?["outside","inside","outside top","inside top","outside bottom","inside bottom"]:["outside","inside","outside left","inside left","outside right","inside right"]}},"ticklabelposition");o("ticklabeloverflow",T.indexOf("inside")!==-1?"hide past domain":"hide past div"),Ybe(n,a,o,"linear");var M=i.font,S={noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0,outerTicks:!1,font:M};T.indexOf("inside")!==-1&&(S.bgColor="black"),Kbe(n,a,o,"linear",S),Xbe(n,a,o,"linear",S),Wbe(n,a,o,"linear",S),o("title.text",i._dfltTitle.colorbar);var k=a.showticklabels?a.tickfont:M,P=sf.extendFlat({},M,{family:k.family,size:sf.bigFont(k.size)});sf.coerceFont(o,"title.font",P),o("title.side",h?"top":"right")}});var K0=X((yet,NN)=>{"use strict";var qN=Br(),y8=et(),Qbe=n8(),e3e=v8(),ON=N0().isValid,t3e=mr().traceIs;function g8(e,t){var r=t.slice(0,t.length-1);return t?y8.nestedProperty(e,r).get()||{}:e}NN.exports=function e(t,r,i,a,n){var o=n.prefix,s=n.cLetter,l="_module"in r,u=g8(t,o),c=g8(r,o),h=g8(r._template||{},o)||{},f=function(){return delete t.coloraxis,delete r.coloraxis,e(t,r,i,a,n)};if(l){var d=i._colorAxes||{},p=a(o+"coloraxis");if(p){var m=t3e(r,"contour")&&y8.nestedProperty(r,"contours.coloring").get()||"heatmap",g=d[p];g?(g[2].push(f),g[0]!==m&&(g[0]=!1,y8.warn(["Ignoring coloraxis:",p,"setting","as it is linked to incompatible colorscales."].join(" ")))):d[p]=[m,r,[f]];return}}var y=u[s+"min"],x=u[s+"max"],w=qN(y)&&qN(x)&&y{"use strict";var VN=et(),r3e=Bi(),UN=a8(),i3e=K0();GN.exports=function(t,r){function i(h,f){return VN.coerce(t,r,UN,h,f)}i("colorscale.sequential"),i("colorscale.sequentialminus"),i("colorscale.diverging");var a=r._colorAxes,n,o;function s(h,f){return VN.coerce(n,o,UN.coloraxis,h,f)}for(var l in a){var u=a[l];if(u[0])n=t[l]||{},o=r3e.newContainer(r,l,"coloraxis"),o._name=l,i3e(n,o,r,s,{prefix:"",cLetter:"c"});else{for(var c=0;c{"use strict";var a3e=et(),n3e=ic().hasColorscale,o3e=ic().extractOpts;$N.exports=function(t,r){function i(c,h){var f=c["_"+h];f!==void 0&&(c[h]=f)}function a(c,h){var f=h.container?a3e.nestedProperty(c,h.container).get():c;if(f)if(f.coloraxis)f._colorAx=r[f.coloraxis];else{var d=o3e(f),p=d.auto;(p||d.min===void 0)&&i(f,h.min),(p||d.max===void 0)&&i(f,h.max),d.autocolorscale&&i(f,"colorscale")}}for(var n=0;n{"use strict";var ZN=Br(),_8=et(),s3e=ic().extractOpts;YN.exports=function(t,r,i){var a=t._fullLayout,n=i.vals,o=i.containerStr,s=o?_8.nestedProperty(r,o).get():r,l=s3e(s),u=l.auto!==!1,c=l.min,h=l.max,f=l.mid,d=function(){return _8.aggNums(Math.min,null,n)},p=function(){return _8.aggNums(Math.max,null,n)};if(c===void 0?c=d():u&&(s._colorAx&&ZN(c)?c=Math.min(c,d()):c=d()),h===void 0?h=p():u&&(s._colorAx&&ZN(h)?h=Math.max(h,p()):h=p()),u&&f!==void 0&&(h-f>f-c?c=f-(h-f):h-f=0?m=a.colorscale.sequential:m=a.colorscale.sequentialminus,l._sync("colorscale",m)}}});var u1=X((wet,WN)=>{"use strict";var ob=N0(),l1=ic();WN.exports={moduleType:"component",name:"colorscale",attributes:eh(),layoutAttributes:a8(),supplyLayoutDefaults:jN(),handleDefaults:K0(),crossTraceDefaults:HN(),calc:Yv(),scales:ob.scales,defaultScale:ob.defaultScale,getScale:ob.get,isValidScale:ob.isValid,hasColorscale:l1.hasColorscale,extractOpts:l1.extractOpts,extractScale:l1.extractScale,flipScale:l1.flipScale,makeColorScaleFunc:l1.makeColorScaleFunc,makeColorScaleFuncFromTrace:l1.makeColorScaleFuncFromTrace}});var wo=X((Aet,KN)=>{"use strict";var XN=et(),l3e=os().isTypedArraySpec;KN.exports={hasLines:function(e){return e.visible&&e.mode&&e.mode.indexOf("lines")!==-1},hasMarkers:function(e){return e.visible&&(e.mode&&e.mode.indexOf("markers")!==-1||e.type==="splom")},hasText:function(e){return e.visible&&e.mode&&e.mode.indexOf("text")!==-1},isBubble:function(e){var t=e.marker;return XN.isPlainObject(t)&&(XN.isArrayOrTypedArray(t.size)||l3e(t.size))}}});var x8=X((Tet,JN)=>{"use strict";var u3e=Br();JN.exports=function(t,r){r||(r=2);var i=t.marker,a=i.sizeref||1,n=i.sizemin||0,o=i.sizemode==="area"?function(s){return Math.sqrt(s/a)}:function(s){return s/a};return function(s){var l=o(s/r);return u3e(l)&&l>0?Math.max(l,n):0}}});var nc=X(Vn=>{"use strict";var Wv=et();Vn.getSubplot=function(e){return e.subplot||e.xaxis+e.yaxis||e.geo};Vn.isTraceInSubplots=function(e,t){if(e.type==="splom"){for(var r=e.xaxes||[],i=e.yaxes||[],a=0;a=0&&r.index{var b8={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},d3e=/([astvzqmhlc])([^astvzqmhlc]*)/gi,p3e=/-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/gi;function m3e(e){let t=[];return e.replace(d3e,(r,i,a)=>{let n=i.toLowerCase(),o=i,s=v3e(a);for(n==="m"&&s.length>2&&(t.push([o,...s.splice(0,2)]),n="l",o=o==="m"?"l":"L");;){if(s.length===b8[n])return t.push([o,...s]),"";if(s.length{"use strict";var g3e=w8(),yt=function(e,t){return t?Math.round(e*(t=Math.pow(10,t)))/t:Math.round(e)},gr="M0,0Z",rV=Math.sqrt(2),lf=Math.sqrt(3),A8=Math.PI,T8=Math.cos,M8=Math.sin;sV.exports={circle:{n:0,f:function(e,t,r){if(yr(t))return gr;var i=yt(e,2),a="M"+i+",0A"+i+","+i+" 0 1,1 0,-"+i+"A"+i+","+i+" 0 0,1 "+i+",0Z";return r?_r(t,r,a):a}},square:{n:1,f:function(e,t,r){if(yr(t))return gr;var i=yt(e,2);return _r(t,r,"M"+i+","+i+"H-"+i+"V-"+i+"H"+i+"Z")}},diamond:{n:2,f:function(e,t,r){if(yr(t))return gr;var i=yt(e*1.3,2);return _r(t,r,"M"+i+",0L0,"+i+"L-"+i+",0L0,-"+i+"Z")}},cross:{n:3,f:function(e,t,r){if(yr(t))return gr;var i=yt(e*.4,2),a=yt(e*1.2,2);return _r(t,r,"M"+a+","+i+"H"+i+"V"+a+"H-"+i+"V"+i+"H-"+a+"V-"+i+"H-"+i+"V-"+a+"H"+i+"V-"+i+"H"+a+"Z")}},x:{n:4,f:function(e,t,r){if(yr(t))return gr;var i=yt(e*.8/rV,2),a="l"+i+","+i,n="l"+i+",-"+i,o="l-"+i+",-"+i,s="l-"+i+","+i;return _r(t,r,"M0,"+i+a+n+o+n+o+s+o+s+a+s+a+"Z")}},"triangle-up":{n:5,f:function(e,t,r){if(yr(t))return gr;var i=yt(e*2/lf,2),a=yt(e/2,2),n=yt(e,2);return _r(t,r,"M-"+i+","+a+"H"+i+"L0,-"+n+"Z")}},"triangle-down":{n:6,f:function(e,t,r){if(yr(t))return gr;var i=yt(e*2/lf,2),a=yt(e/2,2),n=yt(e,2);return _r(t,r,"M-"+i+",-"+a+"H"+i+"L0,"+n+"Z")}},"triangle-left":{n:7,f:function(e,t,r){if(yr(t))return gr;var i=yt(e*2/lf,2),a=yt(e/2,2),n=yt(e,2);return _r(t,r,"M"+a+",-"+i+"V"+i+"L-"+n+",0Z")}},"triangle-right":{n:8,f:function(e,t,r){if(yr(t))return gr;var i=yt(e*2/lf,2),a=yt(e/2,2),n=yt(e,2);return _r(t,r,"M-"+a+",-"+i+"V"+i+"L"+n+",0Z")}},"triangle-ne":{n:9,f:function(e,t,r){if(yr(t))return gr;var i=yt(e*.6,2),a=yt(e*1.2,2);return _r(t,r,"M-"+a+",-"+i+"H"+i+"V"+a+"Z")}},"triangle-se":{n:10,f:function(e,t,r){if(yr(t))return gr;var i=yt(e*.6,2),a=yt(e*1.2,2);return _r(t,r,"M"+i+",-"+a+"V"+i+"H-"+a+"Z")}},"triangle-sw":{n:11,f:function(e,t,r){if(yr(t))return gr;var i=yt(e*.6,2),a=yt(e*1.2,2);return _r(t,r,"M"+a+","+i+"H-"+i+"V-"+a+"Z")}},"triangle-nw":{n:12,f:function(e,t,r){if(yr(t))return gr;var i=yt(e*.6,2),a=yt(e*1.2,2);return _r(t,r,"M-"+i+","+a+"V-"+i+"H"+a+"Z")}},pentagon:{n:13,f:function(e,t,r){if(yr(t))return gr;var i=yt(e*.951,2),a=yt(e*.588,2),n=yt(-e,2),o=yt(e*-.309,2),s=yt(e*.809,2);return _r(t,r,"M"+i+","+o+"L"+a+","+s+"H-"+a+"L-"+i+","+o+"L0,"+n+"Z")}},hexagon:{n:14,f:function(e,t,r){if(yr(t))return gr;var i=yt(e,2),a=yt(e/2,2),n=yt(e*lf/2,2);return _r(t,r,"M"+n+",-"+a+"V"+a+"L0,"+i+"L-"+n+","+a+"V-"+a+"L0,-"+i+"Z")}},hexagon2:{n:15,f:function(e,t,r){if(yr(t))return gr;var i=yt(e,2),a=yt(e/2,2),n=yt(e*lf/2,2);return _r(t,r,"M-"+a+","+n+"H"+a+"L"+i+",0L"+a+",-"+n+"H-"+a+"L-"+i+",0Z")}},octagon:{n:16,f:function(e,t,r){if(yr(t))return gr;var i=yt(e*.924,2),a=yt(e*.383,2);return _r(t,r,"M-"+a+",-"+i+"H"+a+"L"+i+",-"+a+"V"+a+"L"+a+","+i+"H-"+a+"L-"+i+","+a+"V-"+a+"Z")}},star:{n:17,f:function(e,t,r){if(yr(t))return gr;var i=e*1.4,a=yt(i*.225,2),n=yt(i*.951,2),o=yt(i*.363,2),s=yt(i*.588,2),l=yt(-i,2),u=yt(i*-.309,2),c=yt(i*.118,2),h=yt(i*.809,2),f=yt(i*.382,2);return _r(t,r,"M"+a+","+u+"H"+n+"L"+o+","+c+"L"+s+","+h+"L0,"+f+"L-"+s+","+h+"L-"+o+","+c+"L-"+n+","+u+"H-"+a+"L0,"+l+"Z")}},hexagram:{n:18,f:function(e,t,r){if(yr(t))return gr;var i=yt(e*.66,2),a=yt(e*.38,2),n=yt(e*.76,2);return _r(t,r,"M-"+n+",0l-"+a+",-"+i+"h"+n+"l"+a+",-"+i+"l"+a+","+i+"h"+n+"l-"+a+","+i+"l"+a+","+i+"h-"+n+"l-"+a+","+i+"l-"+a+",-"+i+"h-"+n+"Z")}},"star-triangle-up":{n:19,f:function(e,t,r){if(yr(t))return gr;var i=yt(e*lf*.8,2),a=yt(e*.8,2),n=yt(e*1.6,2),o=yt(e*4,2),s="A "+o+","+o+" 0 0 1 ";return _r(t,r,"M-"+i+","+a+s+i+","+a+s+"0,-"+n+s+"-"+i+","+a+"Z")}},"star-triangle-down":{n:20,f:function(e,t,r){if(yr(t))return gr;var i=yt(e*lf*.8,2),a=yt(e*.8,2),n=yt(e*1.6,2),o=yt(e*4,2),s="A "+o+","+o+" 0 0 1 ";return _r(t,r,"M"+i+",-"+a+s+"-"+i+",-"+a+s+"0,"+n+s+i+",-"+a+"Z")}},"star-square":{n:21,f:function(e,t,r){if(yr(t))return gr;var i=yt(e*1.1,2),a=yt(e*2,2),n="A "+a+","+a+" 0 0 1 ";return _r(t,r,"M-"+i+",-"+i+n+"-"+i+","+i+n+i+","+i+n+i+",-"+i+n+"-"+i+",-"+i+"Z")}},"star-diamond":{n:22,f:function(e,t,r){if(yr(t))return gr;var i=yt(e*1.4,2),a=yt(e*1.9,2),n="A "+a+","+a+" 0 0 1 ";return _r(t,r,"M-"+i+",0"+n+"0,"+i+n+i+",0"+n+"0,-"+i+n+"-"+i+",0Z")}},"diamond-tall":{n:23,f:function(e,t,r){if(yr(t))return gr;var i=yt(e*.7,2),a=yt(e*1.4,2);return _r(t,r,"M0,"+a+"L"+i+",0L0,-"+a+"L-"+i+",0Z")}},"diamond-wide":{n:24,f:function(e,t,r){if(yr(t))return gr;var i=yt(e*1.4,2),a=yt(e*.7,2);return _r(t,r,"M0,"+a+"L"+i+",0L0,-"+a+"L-"+i+",0Z")}},hourglass:{n:25,f:function(e,t,r){if(yr(t))return gr;var i=yt(e,2);return _r(t,r,"M"+i+","+i+"H-"+i+"L"+i+",-"+i+"H-"+i+"Z")},noDot:!0},bowtie:{n:26,f:function(e,t,r){if(yr(t))return gr;var i=yt(e,2);return _r(t,r,"M"+i+","+i+"V-"+i+"L-"+i+","+i+"V-"+i+"Z")},noDot:!0},"circle-cross":{n:27,f:function(e,t,r){if(yr(t))return gr;var i=yt(e,2);return _r(t,r,"M0,"+i+"V-"+i+"M"+i+",0H-"+i+"M"+i+",0A"+i+","+i+" 0 1,1 0,-"+i+"A"+i+","+i+" 0 0,1 "+i+",0Z")},needLine:!0,noDot:!0},"circle-x":{n:28,f:function(e,t,r){if(yr(t))return gr;var i=yt(e,2),a=yt(e/rV,2);return _r(t,r,"M"+a+","+a+"L-"+a+",-"+a+"M"+a+",-"+a+"L-"+a+","+a+"M"+i+",0A"+i+","+i+" 0 1,1 0,-"+i+"A"+i+","+i+" 0 0,1 "+i+",0Z")},needLine:!0,noDot:!0},"square-cross":{n:29,f:function(e,t,r){if(yr(t))return gr;var i=yt(e,2);return _r(t,r,"M0,"+i+"V-"+i+"M"+i+",0H-"+i+"M"+i+","+i+"H-"+i+"V-"+i+"H"+i+"Z")},needLine:!0,noDot:!0},"square-x":{n:30,f:function(e,t,r){if(yr(t))return gr;var i=yt(e,2);return _r(t,r,"M"+i+","+i+"L-"+i+",-"+i+"M"+i+",-"+i+"L-"+i+","+i+"M"+i+","+i+"H-"+i+"V-"+i+"H"+i+"Z")},needLine:!0,noDot:!0},"diamond-cross":{n:31,f:function(e,t,r){if(yr(t))return gr;var i=yt(e*1.3,2);return _r(t,r,"M"+i+",0L0,"+i+"L-"+i+",0L0,-"+i+"ZM0,-"+i+"V"+i+"M-"+i+",0H"+i)},needLine:!0,noDot:!0},"diamond-x":{n:32,f:function(e,t,r){if(yr(t))return gr;var i=yt(e*1.3,2),a=yt(e*.65,2);return _r(t,r,"M"+i+",0L0,"+i+"L-"+i+",0L0,-"+i+"ZM-"+a+",-"+a+"L"+a+","+a+"M-"+a+","+a+"L"+a+",-"+a)},needLine:!0,noDot:!0},"cross-thin":{n:33,f:function(e,t,r){if(yr(t))return gr;var i=yt(e*1.4,2);return _r(t,r,"M0,"+i+"V-"+i+"M"+i+",0H-"+i)},needLine:!0,noDot:!0,noFill:!0},"x-thin":{n:34,f:function(e,t,r){if(yr(t))return gr;var i=yt(e,2);return _r(t,r,"M"+i+","+i+"L-"+i+",-"+i+"M"+i+",-"+i+"L-"+i+","+i)},needLine:!0,noDot:!0,noFill:!0},asterisk:{n:35,f:function(e,t,r){if(yr(t))return gr;var i=yt(e*1.2,2),a=yt(e*.85,2);return _r(t,r,"M0,"+i+"V-"+i+"M"+i+",0H-"+i+"M"+a+","+a+"L-"+a+",-"+a+"M"+a+",-"+a+"L-"+a+","+a)},needLine:!0,noDot:!0,noFill:!0},hash:{n:36,f:function(e,t,r){if(yr(t))return gr;var i=yt(e/2,2),a=yt(e,2);return _r(t,r,"M"+i+","+a+"V-"+a+"M"+(i-a)+",-"+a+"V"+a+"M"+a+","+i+"H-"+a+"M-"+a+","+(i-a)+"H"+a)},needLine:!0,noFill:!0},"y-up":{n:37,f:function(e,t,r){if(yr(t))return gr;var i=yt(e*1.2,2),a=yt(e*1.6,2),n=yt(e*.8,2);return _r(t,r,"M-"+i+","+n+"L0,0M"+i+","+n+"L0,0M0,-"+a+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-down":{n:38,f:function(e,t,r){if(yr(t))return gr;var i=yt(e*1.2,2),a=yt(e*1.6,2),n=yt(e*.8,2);return _r(t,r,"M-"+i+",-"+n+"L0,0M"+i+",-"+n+"L0,0M0,"+a+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-left":{n:39,f:function(e,t,r){if(yr(t))return gr;var i=yt(e*1.2,2),a=yt(e*1.6,2),n=yt(e*.8,2);return _r(t,r,"M"+n+","+i+"L0,0M"+n+",-"+i+"L0,0M-"+a+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-right":{n:40,f:function(e,t,r){if(yr(t))return gr;var i=yt(e*1.2,2),a=yt(e*1.6,2),n=yt(e*.8,2);return _r(t,r,"M-"+n+","+i+"L0,0M-"+n+",-"+i+"L0,0M"+a+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"line-ew":{n:41,f:function(e,t,r){if(yr(t))return gr;var i=yt(e*1.4,2);return _r(t,r,"M"+i+",0H-"+i)},needLine:!0,noDot:!0,noFill:!0},"line-ns":{n:42,f:function(e,t,r){if(yr(t))return gr;var i=yt(e*1.4,2);return _r(t,r,"M0,"+i+"V-"+i)},needLine:!0,noDot:!0,noFill:!0},"line-ne":{n:43,f:function(e,t,r){if(yr(t))return gr;var i=yt(e,2);return _r(t,r,"M"+i+",-"+i+"L-"+i+","+i)},needLine:!0,noDot:!0,noFill:!0},"line-nw":{n:44,f:function(e,t,r){if(yr(t))return gr;var i=yt(e,2);return _r(t,r,"M"+i+","+i+"L-"+i+",-"+i)},needLine:!0,noDot:!0,noFill:!0},"arrow-up":{n:45,f:function(e,t,r){if(yr(t))return gr;var i=yt(e,2),a=yt(e*2,2);return _r(t,r,"M0,0L-"+i+","+a+"H"+i+"Z")},backoff:1,noDot:!0},"arrow-down":{n:46,f:function(e,t,r){if(yr(t))return gr;var i=yt(e,2),a=yt(e*2,2);return _r(t,r,"M0,0L-"+i+",-"+a+"H"+i+"Z")},noDot:!0},"arrow-left":{n:47,f:function(e,t,r){if(yr(t))return gr;var i=yt(e*2,2),a=yt(e,2);return _r(t,r,"M0,0L"+i+",-"+a+"V"+a+"Z")},noDot:!0},"arrow-right":{n:48,f:function(e,t,r){if(yr(t))return gr;var i=yt(e*2,2),a=yt(e,2);return _r(t,r,"M0,0L-"+i+",-"+a+"V"+a+"Z")},noDot:!0},"arrow-bar-up":{n:49,f:function(e,t,r){if(yr(t))return gr;var i=yt(e,2),a=yt(e*2,2);return _r(t,r,"M-"+i+",0H"+i+"M0,0L-"+i+","+a+"H"+i+"Z")},backoff:1,needLine:!0,noDot:!0},"arrow-bar-down":{n:50,f:function(e,t,r){if(yr(t))return gr;var i=yt(e,2),a=yt(e*2,2);return _r(t,r,"M-"+i+",0H"+i+"M0,0L-"+i+",-"+a+"H"+i+"Z")},needLine:!0,noDot:!0},"arrow-bar-left":{n:51,f:function(e,t,r){if(yr(t))return gr;var i=yt(e*2,2),a=yt(e,2);return _r(t,r,"M0,-"+a+"V"+a+"M0,0L"+i+",-"+a+"V"+a+"Z")},needLine:!0,noDot:!0},"arrow-bar-right":{n:52,f:function(e,t,r){if(yr(t))return gr;var i=yt(e*2,2),a=yt(e,2);return _r(t,r,"M0,-"+a+"V"+a+"M0,0L-"+i+",-"+a+"V"+a+"Z")},needLine:!0,noDot:!0},arrow:{n:53,f:function(e,t,r){if(yr(t))return gr;var i=A8/2.5,a=2*e*T8(i),n=2*e*M8(i);return _r(t,r,"M0,0L"+-a+","+n+"L"+a+","+n+"Z")},backoff:.9,noDot:!0},"arrow-wide":{n:54,f:function(e,t,r){if(yr(t))return gr;var i=A8/4,a=2*e*T8(i),n=2*e*M8(i);return _r(t,r,"M0,0L"+-a+","+n+"A "+2*e+","+2*e+" 0 0 1 "+a+","+n+"Z")},backoff:.4,noDot:!0}};function yr(e){return e===null}var iV,aV,nV,oV;function _r(e,t,r){if((!e||e%360===0)&&!t)return r;if(nV===e&&oV===t&&iV===r)return aV;nV=e,oV=t,iV=r;function i(g,y){var x=T8(g),w=M8(g),_=y[0],A=y[1]+(t||0);return[_*x-A*w,_*w+A*x]}for(var a=e/180*A8,n=0,o=0,s=g3e(r),l="",u=0;u{"use strict";var yn=Wr(),_i=et(),y3e=_i.numberFormat,uf=Br(),lb=mr(),ln=qr(),_3e=u1(),Kv=_i.strTranslate,ub=sn(),x3e=(of(),ct(nf)),b3e=(ao(),ct(io)),w3e=b3e.LINE_SPACING,yV=(yx(),ct(gx)).DESELECTDIM,A3e=wo(),T3e=x8(),M3e=nc().appendArrayPointValue,Mt={};EV.exports=Mt;Mt.font=function(e,t){var r=t.variant,i=t.style,a=t.weight,n=t.color,o=t.size,s=t.family,l=t.shadow,u=t.lineposition,c=t.textcase;s&&e.style("font-family",s),o+1&&e.style("font-size",o+"px"),n&&e.call(ln.fill,n),a&&e.style("font-weight",a),i&&e.style("font-style",i),r&&e.style("font-variant",r),c&&e.style("text-transform",D8(S3e(c))),l&&e.style("text-shadow",l==="auto"?ub.makeTextShadow(ln.contrast(n)):D8(l)),u&&e.style("text-decoration-line",D8(E3e(u)))};function D8(e){return e==="none"?void 0:e}var D3e={normal:"none",lower:"lowercase",upper:"uppercase","word caps":"capitalize"};function S3e(e){return D3e[e]}function E3e(e){return e.replace("under","underline").replace("over","overline").replace("through","line-through").split("+").join(" ")}Mt.setPosition=function(e,t,r){e.attr("x",t).attr("y",r)};Mt.setSize=function(e,t,r){e.attr("width",t).attr("height",r)};Mt.setRect=function(e,t,r,i,a){e.call(Mt.setPosition,t,r).call(Mt.setSize,i,a)};Mt.translatePoint=function(e,t,r,i){var a=r.c2p(e.x),n=i.c2p(e.y);if(uf(a)&&uf(n)&&t.node())t.node().nodeName==="text"?t.attr("x",a).attr("y",n):t.attr("transform",Kv(a,n));else return!1;return!0};Mt.translatePoints=function(e,t,r){e.each(function(i){var a=yn.select(this);Mt.translatePoint(i,a,t,r)})};Mt.hideOutsideRangePoint=function(e,t,r,i,a,n){t.attr("display",r.isPtWithinRange(e,a)&&i.isPtWithinRange(e,n)?null:"none")};Mt.hideOutsideRangePoints=function(e,t){if(t._hasClipOnAxisFalse){var r=t.xaxis,i=t.yaxis;e.each(function(a){var n=a[0].trace,o=n.xcalendar,s=n.ycalendar,l=lb.traceIs(n,"bar-like")?".bartext":".point,.textpoint";e.selectAll(l).each(function(u){Mt.hideOutsideRangePoint(u,yn.select(this),r,i,o,s)})})}};Mt.crispRound=function(e,t,r){return!t||!uf(t)?r||0:e._context.staticPlot?t:t<1?1:Math.round(t)};Mt.singleLineStyle=function(e,t,r,i,a){t.style("fill","none");var n=(((e||[])[0]||{}).trace||{}).line||{},o=r||n.width||0,s=a||n.dash||"";ln.stroke(t,i||n.color),Mt.dashLine(t,s,o)};Mt.lineGroupStyle=function(e,t,r,i){e.style("fill","none").each(function(a){var n=(((a||[])[0]||{}).trace||{}).line||{},o=t||n.width||0,s=i||n.dash||"";yn.select(this).call(ln.stroke,r||n.color).call(Mt.dashLine,s,o)})};Mt.dashLine=function(e,t,r){r=+r||0,t=Mt.dashStyle(t,r),e.style({"stroke-dasharray":t,"stroke-width":r+"px"})};Mt.dashStyle=function(e,t){t=+t||1;var r=Math.max(t,3);return e==="solid"?e="":e==="dot"?e=r+"px,"+r+"px":e==="dash"?e=3*r+"px,"+3*r+"px":e==="longdash"?e=5*r+"px,"+5*r+"px":e==="dashdot"?e=3*r+"px,"+r+"px,"+r+"px,"+r+"px":e==="longdashdot"&&(e=5*r+"px,"+2*r+"px,"+r+"px,"+2*r+"px"),e};function _V(e,t,r,i){var a=t.fillpattern,n=t.fillgradient,o=Mt.getPatternAttr,s=a&&(o(a.shape,0,"")||o(a.path,0,""));if(s){var l=o(a.bgcolor,0,null),u=o(a.fgcolor,0,null),c=a.fgopacity,h=o(a.size,0,8),f=o(a.solidity,0,.3),d=t.uid;Mt.pattern(e,"point",r,d,s,h,f,void 0,a.fillmode,l,u,c)}else if(n&&n.type!=="none"){var p=n.type,m="scatterfill-"+t.uid;if(i&&(m="legendfill-"+t.uid),!i&&(n.start!==void 0||n.stop!==void 0)){var g,y;p==="horizontal"?(g={x:n.start,y:0},y={x:n.stop,y:0}):p==="vertical"&&(g={x:0,y:n.start},y={x:0,y:n.stop}),g.x=t._xA.c2p(g.x===void 0?t._extremes.x.min[0].val:g.x,!0),g.y=t._yA.c2p(g.y===void 0?t._extremes.y.min[0].val:g.y,!0),y.x=t._xA.c2p(y.x===void 0?t._extremes.x.max[0].val:y.x,!0),y.y=t._yA.c2p(y.y===void 0?t._extremes.y.max[0].val:y.y,!0),e.call(wV,r,m,"linear",n.colorscale,"fill",g,y,!0,!1)}else p==="horizontal"&&(p=p+"reversed"),e.call(Mt.gradient,r,m,p,n.colorscale,"fill")}else t.fillcolor&&e.call(ln.fill,t.fillcolor)}Mt.singleFillStyle=function(e,t){var r=yn.select(e.node()),i=r.data(),a=((i[0]||[])[0]||{}).trace||{};_V(e,a,t,!1)};Mt.fillGroupStyle=function(e,t,r){e.style("stroke-width",0).each(function(i){var a=yn.select(this);i[0].trace&&_V(a,i[0].trace,t,r)})};var uV=lV();Mt.symbolNames=[];Mt.symbolFuncs=[];Mt.symbolBackOffs=[];Mt.symbolNeedLines={};Mt.symbolNoDot={};Mt.symbolNoFill={};Mt.symbolList=[];Object.keys(uV).forEach(function(e){var t=uV[e],r=t.n;Mt.symbolList.push(r,String(r),e,r+100,String(r+100),e+"-open"),Mt.symbolNames[r]=e,Mt.symbolFuncs[r]=t.f,Mt.symbolBackOffs[r]=t.backoff||0,t.needLine&&(Mt.symbolNeedLines[r]=!0),t.noDot?Mt.symbolNoDot[r]=!0:Mt.symbolList.push(r+200,String(r+200),e+"-dot",r+300,String(r+300),e+"-open-dot"),t.noFill&&(Mt.symbolNoFill[r]=!0)});var k3e=Mt.symbolNames.length,C3e="M0,0.5L0.5,0L0,-0.5L-0.5,0Z";Mt.symbolNumber=function(e){if(uf(e))e=+e;else if(typeof e=="string"){var t=0;e.indexOf("-open")>0&&(t=100,e=e.replace("-open","")),e.indexOf("-dot")>0&&(t+=200,e=e.replace("-dot","")),e=Mt.symbolNames.indexOf(e),e>=0&&(e+=t)}return e%100>=k3e||e>=400?0:Math.floor(Math.max(e,0))};function xV(e,t,r,i){var a=e%100;return Mt.symbolFuncs[a](t,r,i)+(e>=200?C3e:"")}var cV=y3e("~f"),bV={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}};Mt.gradient=function(e,t,r,i,a,n){var o=bV[i];return wV(e,t,r,o.type,a,n,o.start,o.stop,!1,o.reversed)};function wV(e,t,r,i,a,n,o,s,l,u){var c=a.length,h;i==="linear"?h={node:"linearGradient",attrs:{x1:o.x,y1:o.y,x2:s.x,y2:s.y,gradientUnits:l?"userSpaceOnUse":"objectBoundingBox"},reversed:u}:i==="radial"&&(h={node:"radialGradient",reversed:u});for(var f=new Array(c),d=0;d=0&&e.i===void 0&&(e.i=n.i),t.style("opacity",i.selectedOpacityFn?i.selectedOpacityFn(e):e.mo===void 0?o.opacity:e.mo),i.ms2mrc){var l;e.ms==="various"||o.size==="various"?l=3:l=i.ms2mrc(e.ms),e.mrc=l,i.selectedSizeFn&&(l=e.mrc=i.selectedSizeFn(e));var u=Mt.symbolNumber(e.mx||o.symbol)||0;e.om=u%200>=100;var c=I8(e,r),h=P8(e,r);t.attr("d",xV(u,l,c,h))}var f=!1,d,p,m;if(e.so)m=s.outlierwidth,p=s.outliercolor,d=o.outliercolor;else{var g=(s||{}).width;m=(e.mlw+1||g+1||(e.trace?(e.trace.marker.line||{}).width:0)+1)-1||0,"mlc"in e?p=e.mlcc=i.lineScale(e.mlc):_i.isArrayOrTypedArray(s.color)?p=ln.defaultLine:p=s.color,_i.isArrayOrTypedArray(o.color)&&(d=ln.defaultLine,f=!0),"mc"in e?d=e.mcc=i.markerScale(e.mc):d=o.color||o.colors||"rgba(0,0,0,0)",i.selectedColorFn&&(d=i.selectedColorFn(e))}let y=e.mld||(s||{}).dash;if(y&&Mt.dashLine(t,y,m),e.om)t.call(ln.stroke,d).style({"stroke-width":(m||1)+"px",fill:"none"});else{t.style("stroke-width",(e.isBlank?0:m)+"px");var x=o.gradient,w=e.mgt;w?f=!0:w=x&&x.type,_i.isArrayOrTypedArray(w)&&(w=w[0],bV[w]||(w=0));var _=o.pattern,A=Mt.getPatternAttr,T=_&&(A(_.shape,e.i,"")||A(_.path,e.i,""));if(w&&w!=="none"){var M=e.mgc;M?f=!0:M=x.color;var S=r.uid;f&&(S+="-"+e.i),Mt.gradient(t,a,S,w,[[0,M],[1,d]],"fill")}else if(T){var k=!1,P=_.fgcolor;!P&&n&&n.color&&(P=n.color,k=!0);var I=A(P,e.i,n&&n.color||null),B=A(_.bgcolor,e.i,null),L=_.fgopacity,z=A(_.size,e.i,8),O=A(_.solidity,e.i,.3);k=k||e.mcc||_i.isArrayOrTypedArray(_.shape)||_i.isArrayOrTypedArray(_.path)||_i.isArrayOrTypedArray(_.bgcolor)||_i.isArrayOrTypedArray(_.fgcolor)||_i.isArrayOrTypedArray(_.size)||_i.isArrayOrTypedArray(_.solidity);var V=r.uid;k&&(V+="-"+e.i),Mt.pattern(t,"point",a,V,T,z,O,e.mcc,_.fillmode,B,I,L)}else _i.isArrayOrTypedArray(d)?ln.fill(t,d[e.i]):ln.fill(t,d);m&&ln.stroke(t,p)}};Mt.makePointStyleFns=function(e){var t={},r=e.marker;return t.markerScale=Mt.tryColorscale(r,""),t.lineScale=Mt.tryColorscale(r,"line"),lb.traceIs(e,"symbols")&&(t.ms2mrc=A3e.isBubble(e)?T3e(e):function(){return(r.size||6)/2}),e.selectedpoints&&_i.extendFlat(t,Mt.makeSelectedPointStyleFns(e)),t};Mt.makeSelectedPointStyleFns=function(e){var t={},r=e.selected||{},i=e.unselected||{},a=e.marker||{},n=r.marker||{},o=i.marker||{},s=a.opacity,l=n.opacity,u=o.opacity,c=l!==void 0,h=u!==void 0;(_i.isArrayOrTypedArray(s)||c||h)&&(t.selectedOpacityFn=function(_){var A=_.mo===void 0?a.opacity:_.mo;return _.selected?c?l:A:h?u:yV*A});var f=a.color,d=n.color,p=o.color;(d||p)&&(t.selectedColorFn=function(_){var A=_.mcc||f;return _.selected?d||A:p||A});var m=a.size,g=n.size,y=o.size,x=g!==void 0,w=y!==void 0;return lb.traceIs(e,"symbols")&&(x||w)&&(t.selectedSizeFn=function(_){var A=_.mrc||m/2;return _.selected?x?g/2:A:w?y/2:A}),t};Mt.makeSelectedTextStyleFns=function(e){var t={},r=e.selected||{},i=e.unselected||{},a=e.textfont||{},n=r.textfont||{},o=i.textfont||{},s=a.color,l=n.color,u=o.color;return t.selectedTextColorFn=function(c){var h=c.tc||s;return c.selected?l||h:u||(l?h:ln.addOpacity(h,yV))},t};Mt.selectedPointStyle=function(e,t){if(!(!e.size()||!t.selectedpoints)){var r=Mt.makeSelectedPointStyleFns(t),i=t.marker||{},a=[];r.selectedOpacityFn&&a.push(function(n,o){n.style("opacity",r.selectedOpacityFn(o))}),r.selectedColorFn&&a.push(function(n,o){ln.fill(n,r.selectedColorFn(o))}),r.selectedSizeFn&&a.push(function(n,o){var s=o.mx||i.symbol||0,l=r.selectedSizeFn(o);n.attr("d",xV(Mt.symbolNumber(s),l,I8(o,t),P8(o,t))),o.mrc2=l}),a.length&&e.each(function(n){for(var o=yn.select(this),s=0;s0?r:0}Mt.textPointStyle=function(e,t,r){if(e.size()){var i;if(t.selectedpoints){var a=Mt.makeSelectedTextStyleFns(t);i=a.selectedTextColorFn}var n=t.texttemplate,o=r._fullLayout;e.each(function(s){var l=yn.select(this),u=n?_i.extractOption(s,t,"txt","texttemplate"):_i.extractOption(s,t,"tx","text");if(!u&&u!==0){l.remove();return}if(n){var c=t._module.formatLabels,h=c?c(s,t,o):{},f={};M3e(f,t,s.i),u=_i.texttemplateString({data:[f,s,t._meta],fallback:t.texttemplatefallback,labels:h,locale:o._d3locale,template:u})}var d=s.tp||t.textposition,p=TV(s,t),m=i?i(s):s.tc||t.textfont.color;l.call(Mt.font,{family:s.tf||t.textfont.family,weight:s.tw||t.textfont.weight,style:s.ty||t.textfont.style,variant:s.tv||t.textfont.variant,textcase:s.tC||t.textfont.textcase,lineposition:s.tE||t.textfont.lineposition,shadow:s.tS||t.textfont.shadow,size:p,color:m}).text(u).call(ub.convertToTspans,r).call(AV,d,p,s.mrc)})}};Mt.selectedTextStyle=function(e,t){if(!(!e.size()||!t.selectedpoints)){var r=Mt.makeSelectedTextStyleFns(t);e.each(function(i){var a=yn.select(this),n=r.selectedTextColorFn(i),o=i.tp||t.textposition,s=TV(i,t);ln.fill(a,n);var l=lb.traceIs(t,"bar-like");AV(a,o,s,i.mrc2||i.mrc,l)})}};var hV=.5;Mt.smoothopen=function(e,t){if(e.length<3)return"M"+e.join("L");var r="M"+e[0],i=[],a;for(a=1;a=l||_>=c&&_<=l)&&(A<=h&&A>=u||A>=h&&A<=u)&&(e=[_,A])}return e}Mt.applyBackoff=SV;Mt.makeTester=function(){var e=_i.ensureSingleById(yn.select("body"),"svg","js-plotly-tester",function(r){r.attr(x3e.svgAttrs).style({position:"absolute",left:"-10000px",top:"-10000px",width:"9000px",height:"9000px","z-index":"1"})}),t=_i.ensureSingle(e,"path","js-reference-point",function(r){r.attr("d","M0,0H1V1H0Z").style({"stroke-width":0,fill:"black"})});Mt.tester=e,Mt.testref=t};Mt.savedBBoxes={};var E8=0,I3e=1e4;Mt.bBox=function(e,t,r){r||(r=fV(e));var i;if(r){if(i=Mt.savedBBoxes[r],i)return _i.extendFlat({},i)}else if(e.childNodes.length===1){var a=e.childNodes[0];if(r=fV(a),r){var n=+a.getAttribute("x")||0,o=+a.getAttribute("y")||0,s=a.getAttribute("transform");if(!s){var l=Mt.bBox(a,!1,r);return n&&(l.left+=n,l.right+=n),o&&(l.top+=o,l.bottom+=o),l}if(r+="~"+n+"~"+o+"~"+s,i=Mt.savedBBoxes[r],i)return _i.extendFlat({},i)}}var u,c;t?u=e:(c=Mt.tester.node(),u=e.cloneNode(!0),c.appendChild(u)),yn.select(u).attr("transform",null).call(ub.positionText,0,0);var h=u.getBoundingClientRect(),f=Mt.testref.node().getBoundingClientRect();t||c.removeChild(u);var d={height:h.height,width:h.width,left:h.left-f.left,top:h.top-f.top,right:h.right-f.left,bottom:h.bottom-f.top};return E8>=I3e&&(Mt.savedBBoxes={},E8=0),r&&(Mt.savedBBoxes[r]=d),E8++,_i.extendFlat({},d)};function fV(e){var t=e.getAttribute("data-unformatted");if(t!==null)return t+e.getAttribute("data-math")+e.getAttribute("text-anchor")+e.getAttribute("style")}Mt.setClipUrl=function(e,t,r){e.attr("clip-path",F8(t,r))};function F8(e,t){if(!e)return null;var r=t._context,i=r._exportedPlot?"":r._baseUrl||"";return i?"url('"+i+"#"+e+"')":"url(#"+e+")"}Mt.getTranslate=function(e){var t=/.*\btranslate\((-?\d*\.?\d*)[^-\d]*(-?\d*\.?\d*)[^\d].*/,r=e.attr?"attr":"getAttribute",i=e[r]("transform")||"",a=i.replace(t,function(n,o,s){return[o,s].join(" ")}).split(" ");return{x:+a[0]||0,y:+a[1]||0}};Mt.setTranslate=function(e,t,r){var i=/(\btranslate\(.*?\);?)/,a=e.attr?"attr":"getAttribute",n=e.attr?"attr":"setAttribute",o=e[a]("transform")||"";return t=t||0,r=r||0,o=o.replace(i,"").trim(),o+=Kv(t,r),o=o.trim(),e[n]("transform",o),o};Mt.getScale=function(e){var t=/.*\bscale\((\d*\.?\d*)[^\d]*(\d*\.?\d*)[^\d].*/,r=e.attr?"attr":"getAttribute",i=e[r]("transform")||"",a=i.replace(t,function(n,o,s){return[o,s].join(" ")}).split(" ");return{x:+a[0]||1,y:+a[1]||1}};Mt.setScale=function(e,t,r){var i=/(\bscale\(.*?\);?)/,a=e.attr?"attr":"getAttribute",n=e.attr?"attr":"setAttribute",o=e[a]("transform")||"";return t=t||1,r=r||1,o=o.replace(i,"").trim(),o+="scale("+t+","+r+")",o=o.trim(),e[n]("transform",o),o};var L3e=/\s*sc.*/;Mt.setPointGroupScale=function(e,t,r){if(t=t||1,r=r||1,!!e){var i=t===1&&r===1?"":"scale("+t+","+r+")";e.each(function(){var a=(this.getAttribute("transform")||"").replace(L3e,"");a+=i,a=a.trim(),this.setAttribute("transform",a)})}};var z3e=/translate\([^)]*\)\s*$/;Mt.setTextPointsScale=function(e,t,r){e&&e.each(function(){var i,a=yn.select(this),n=a.select("text");if(n.node()){var o=parseFloat(n.attr("x")||0),s=parseFloat(n.attr("y")||0),l=(a.attr("transform")||"").match(z3e);t===1&&r===1?i=[]:i=[Kv(o,s),"scale("+t+","+r+")",Kv(-o,-s)],l&&i.push(l),a.attr("transform",i.join(""))}})};function P8(e,t){var r;return e&&(r=e.mf),r===void 0&&(r=t.marker&&t.marker.standoff||0),!t._geo&&!t._xA?-r:r}Mt.getMarkerStandoff=P8;var Xv=Math.atan2,J0=Math.cos,h1=Math.sin;function dV(e,t){var r=t[0],i=t[1];return[r*J0(e)-i*h1(e),r*h1(e)+i*J0(e)]}var pV,mV,vV,gV,k8,C8;function I8(e,t){var r=e.ma;r===void 0&&(r=t.marker.angle,(!uf(r)||_i.isArrayOrTypedArray(r))&&(r=0));var i,a,n=t.marker.angleref;if(n==="previous"||n==="north"){if(t._geo){var o=t._geo.project(e.lonlat);i=o[0],a=o[1]}else{var s=t._xA,l=t._yA;if(s&&l)i=s.c2p(e.x),a=l.c2p(e.y);else return 90}if(t._geo){var u=e.lonlat[0],c=e.lonlat[1],h=t._geo.project([u,c+1e-5]),f=t._geo.project([u+1e-5,c]),d=Xv(f[1]-a,f[0]-i),p=Xv(h[1]-a,h[0]-i),m;if(n==="north")m=r/180*Math.PI;else if(n==="previous"){var g=u/180*Math.PI,y=c/180*Math.PI,x=pV/180*Math.PI,w=mV/180*Math.PI,_=x-g,A=J0(w)*h1(_),T=h1(w)*J0(y)-J0(w)*h1(y)*J0(_);m=-Xv(A,T)-Math.PI,pV=u,mV=c}var M=dV(d,[J0(m),0]),S=dV(p,[h1(m),0]);r=Xv(M[1]+S[1],M[0]+S[0])/Math.PI*180,n==="previous"&&!(C8===t.uid&&e.i===k8+1)&&(r=null)}if(n==="previous"&&!t._geo)if(C8===t.uid&&e.i===k8+1&&uf(i)&&uf(a)){var k=i-vV,P=a-gV,I=t.line&&t.line.shape||"",B=I.slice(I.length-1);B==="h"&&(P=0),B==="v"&&(k=0),r+=Xv(P,k)/Math.PI*180+90}else r=null}return vV=i,gV=a,k8=e.i,C8=t.uid,r}Mt.getMarkerAngle=I8});var Jv=X((Cet,PV)=>{"use strict";var f1=Wr(),R3e=Br(),B3e=gn(),L8=mr(),td=et(),kV=td.strTranslate,cb=xi(),hb=qr(),d1=sn(),CV=(yx(),ct(gx)),q3e=(ao(),ct(io)).OPPOSITE_SIDE,FV=/ [XY][0-9]* /,z8=1.6,R8=1.6;function O3e(e,t,r){var i=e._fullLayout,a=r.propContainer,n=r.propName,o=r.placeholder,s=r.traceIndex,l=r.avoid||{},u=r.attributes,c=r.transform,h=r.containerGroup,f=1,d=a.title,p=(d&&d.text?d.text:"").trim(),m=!1,g=d&&d.font?d.font:{},y=g.family,x=g.size,w=g.color,_=g.weight,A=g.style,T=g.variant,M=g.textcase,S=g.lineposition,k=g.shadow,P=r.subtitlePropName,I=!!P,B=r.subtitlePlaceholder,L=(a.title||{}).subtitle||{text:"",font:{}},z=(L.text||"").trim(),O=!1,V=1,$=L.font,j=$.family,H=$.size,Z=$.color,W=$.weight,le=$.style,pe=$.variant,_e=$.textcase,De=$.lineposition,de=$.shadow,Ce;n==="title.text"?Ce="titleText":n.indexOf("axis")!==-1?Ce="axisTitleText":n.indexOf("colorbar")!==-1&&(Ce="colorbarTitleText");var Q=e._context.edits[Ce];function ae(Re,Ve){return Re===void 0||Ve===void 0?!1:Re.replace(FV," % ")===Ve.replace(FV," % ")}p===""?f=0:ae(p,o)&&(Q||(p=""),f=.2,m=!0),I&&(z===""?V=0:ae(z,B)&&(Q||(z=""),V=.2,O=!0)),r._meta?p=td.templateString(p,r._meta):i._meta&&(p=td.templateString(p,i._meta));var ye=p||z||Q,te;h||(h=td.ensureSingle(i._infolayer,"g","g-"+t),te=i._hColorbarMoveTitle);var re=h.selectAll("text."+t).data(ye?[0]:[]);re.enter().append("text"),re.text(p).attr("class",t),re.exit().remove();var ce=null,me=t+"-subtitle",ze=z||Q;if(I&&(ce=h.selectAll("text."+me).data(ze?[0]:[]),ce.enter().append("text"),ce.text(z).attr("class",me),ce.exit().remove()),!ye)return h;function He(Re,Ve){td.syncOrAsync([ke,Oe],{title:Re,subtitle:Ve})}function ke(Re){var Ve=Re.title,ge=Re.subtitle,Ge;!c&&te&&(c={}),c?(Ge="",c.rotate&&(Ge+="rotate("+[c.rotate,u.x,u.y]+")"),(c.offset||te)&&(Ge+=kV(0,(c.offset||0)-(te||0)))):Ge=null,Ve.attr("transform",Ge);function tt(Ee){if(Ee){var Me=f1.select(Ee.node().parentNode).select("."+me);if(!Me.empty()){var We=Ee.node().getBBox();if(We.height){var lt=We.y+We.height+z8*H;Me.attr("y",lt)}}}}if(Ve.style("opacity",f*hb.opacity(w)).call(cb.font,{color:hb.rgb(w),size:f1.round(x,2),family:y,weight:_,style:A,variant:T,textcase:M,shadow:k,lineposition:S}).attr(u).call(d1.convertToTspans,e,tt),ge&&!ge.empty()){var ie=h.select("."+t+"-math-group"),we=Ve.node().getBBox(),ot=ie.node()?ie.node().getBBox():void 0,At=ot?ot.y+ot.height+z8*H:we.y+we.height+R8*H,$e=td.extendFlat({},u,{y:At});ge.attr("transform",Ge),ge.style("opacity",V*hb.opacity(Z)).call(cb.font,{color:hb.rgb(Z),size:f1.round(H,2),family:j,weight:W,style:le,variant:pe,textcase:_e,shadow:de,lineposition:De}).attr($e).call(d1.convertToTspans,e)}return B3e.previousPromises(e)}function Oe(Re){var Ve=Re.title,ge=f1.select(Ve.node().parentNode);if(l&&l.selection&&l.side&&p){ge.attr("transform",null);var Ge=q3e[l.side],tt=l.side==="left"||l.side==="top"?-1:1,ie=R3e(l.pad)?l.pad:2,we=cb.bBox(ge.node()),ot={t:0,b:0,l:0,r:0},At=e._fullLayout._reservedMargin;for(var $e in At)for(var Ee in At[$e]){var Me=At[$e][Ee];ot[Ee]=Math.max(ot[Ee],Me)}var We={left:ot.l,top:ot.t,right:i.width-ot.r,bottom:i.height-ot.b},lt=l.maxShift||tt*(We[l.side]-we[l.side]),Qe=0;if(lt<0)Qe=lt;else{var st=l.offsetLeft||0,vt=l.offsetTop||0;we.left-=st,we.right-=st,we.top-=vt,we.bottom-=vt,l.selection.each(function(){var Tt=cb.bBox(this);td.bBoxIntersect(we,Tt,ie)&&(Qe=Math.max(Qe,tt*(Tt[l.side]-we[Ge])+ie))}),Qe=Math.min(lt,Qe),a._titleScoot=Math.abs(Qe)}if(Qe>0||lt<0){var ut={left:[-Qe,0],right:[Qe,0],top:[0,-Qe],bottom:[0,Qe]}[l.side];ge.attr("transform",kV(ut[0],ut[1]))}}}re.call(He,ce);function qe(Re,Ve){Re.text(Ve).on("mouseover.opacity",function(){f1.select(this).transition().duration(CV.SHOW_PLACEHOLDER).style("opacity",1)}).on("mouseout.opacity",function(){f1.select(this).transition().duration(CV.HIDE_PLACEHOLDER).style("opacity",0)})}if(Q&&(p?re.on(".opacity",null):(qe(re,o),m=!0),re.call(d1.makeEditable,{gd:e}).on("edit",function(Re){s!==void 0?L8.call("_guiRestyle",e,n,Re,s):L8.call("_guiRelayout",e,n,Re)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(He)}).on("input",function(Re){this.text(Re||" ").call(d1.positionText,u.x,u.y)}),I)){if(I&&!p){var se=re.node().getBBox(),je=se.y+se.height+R8*H;ce.attr("y",je)}z?ce.on(".opacity",null):(qe(ce,B),O=!0),ce.call(d1.makeEditable,{gd:e}).on("edit",function(Re){L8.call("_guiRelayout",e,"title.subtitle.text",Re)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(He)}).on("input",function(Re){this.text(Re||" ").call(d1.positionText,ce.attr("x"),ce.attr("y"))})}return re.classed("js-placeholder",m),ce&&!ce.empty()&&ce.classed("js-placeholder",O),h}PV.exports={draw:O3e,SUBTITLE_PADDING_EM:R8,SUBTITLE_PADDING_MATHJAX_EM:z8}});var _b=X((Fet,BV)=>{"use strict";var N3e=Wr(),V3e=Fp().utcFormat,qi=et(),U3e=qi.numberFormat,oc=Br(),cf=qi.cleanNumber,G3e=qi.ms2DateTime,IV=qi.dateTime2ms,sc=qi.ensureNumber,LV=qi.isArrayOrTypedArray,hf=(Ki(),ct(na)),fb=hf.FP_SAFE,mu=hf.BADNUM,j3e=hf.LOG_CLIP,$3e=hf.ONEWEEK,db=hf.ONEDAY,pb=hf.ONEHOUR,zV=hf.ONEMIN,RV=hf.ONESEC,mb=nn(),yb=(vn(),ct(mn)),vb=yb.HOUR_PATTERN,gb=yb.WEEKDAY_PATTERN;function Qv(e){return Math.pow(10,e)}function B8(e){return e!=null}BV.exports=function(t,r){r=r||{};var i=t._id||"x",a=i.charAt(0);function n(_,A){if(_>0)return Math.log(_)/Math.LN10;if(_<=0&&A&&t.range&&t.range.length===2){var T=t.range[0],M=t.range[1];return .5*(T+M-2*j3e*Math.abs(T-M))}else return mu}function o(_,A,T,M){if((M||{}).msUTC&&oc(_))return+_;var S=IV(_,T||t.calendar);if(S===mu)if(oc(_)){_=+_;var k=Math.floor(qi.mod(_+.05,1)*10),P=Math.round(_-k/10);S=IV(new Date(P))+k/10}else return mu;return S}function s(_,A,T){return G3e(_,A,T||t.calendar)}function l(_){return t._categories[Math.round(_)]}function u(_){if(B8(_)){if(t._categoriesMap===void 0&&(t._categoriesMap={}),t._categoriesMap[_]!==void 0)return t._categoriesMap[_];t._categories.push(typeof _=="number"?String(_):_);var A=t._categories.length-1;return t._categoriesMap[_]=A,A}return mu}function c(_,A){for(var T=new Array(A),M=0;Mt.range[1]&&(T=!T);for(var M=T?-1:1,S=M*_,k=0,P=0;PB)k=P+1;else{k=S<(I+B)/2?P:P+1;break}}var L=t._B[k]||0;return isFinite(L)?p(_,t._m2,L):0},y=function(_){var A=t._rangebreaks.length;if(!A)return m(_,t._m,t._b);for(var T=0,M=0;Mt._rangebreaks[M].pmax&&(T=M+1);return m(_,t._m2,t._B[T])}}t.c2l=t.type==="log"?n:sc,t.l2c=t.type==="log"?Qv:sc,t.l2p=g,t.p2l=y,t.c2p=t.type==="log"?function(_,A){return g(n(_,A))}:g,t.p2c=t.type==="log"?function(_){return Qv(y(_))}:y,["linear","-"].indexOf(t.type)!==-1?(t.d2r=t.r2d=t.d2c=t.r2c=t.d2l=t.r2l=cf,t.c2d=t.c2r=t.l2d=t.l2r=sc,t.d2p=t.r2p=function(_){return t.l2p(cf(_))},t.p2d=t.p2r=y,t.cleanPos=sc):t.type==="log"?(t.d2r=t.d2l=function(_,A){return n(cf(_),A)},t.r2d=t.r2c=function(_){return Qv(cf(_))},t.d2c=t.r2l=cf,t.c2d=t.l2r=sc,t.c2r=n,t.l2d=Qv,t.d2p=function(_,A){return t.l2p(t.d2r(_,A))},t.p2d=function(_){return Qv(y(_))},t.r2p=function(_){return t.l2p(cf(_))},t.p2r=y,t.cleanPos=sc):t.type==="date"?(t.d2r=t.r2d=qi.identity,t.d2c=t.r2c=t.d2l=t.r2l=o,t.c2d=t.c2r=t.l2d=t.l2r=s,t.d2p=t.r2p=function(_,A,T){return t.l2p(o(_,0,T))},t.p2d=t.p2r=function(_,A,T){return s(y(_),A,T)},t.cleanPos=function(_){return qi.cleanDate(_,mu,t.calendar)}):t.type==="category"?(t.d2c=t.d2l=u,t.r2d=t.c2d=t.l2d=l,t.d2r=t.d2l_noadd=f,t.r2c=function(_){var A=d(_);return A!==void 0?A:t.fraction2r(.5)},t.l2r=t.c2r=sc,t.r2l=d,t.d2p=function(_){return t.l2p(t.r2c(_))},t.p2d=function(_){return l(y(_))},t.r2p=t.d2p,t.p2r=y,t.cleanPos=function(_){return typeof _=="string"&&_!==""?_:sc(_)}):t.type==="multicategory"&&(t.r2d=t.c2d=t.l2d=l,t.d2r=t.d2l_noadd=f,t.r2c=function(_){var A=f(_);return A!==void 0?A:t.fraction2r(.5)},t.r2c_just_indices=h,t.l2r=t.c2r=sc,t.r2l=f,t.d2p=function(_){return t.l2p(t.r2c(_))},t.p2d=function(_){return l(y(_))},t.r2p=t.d2p,t.p2r=y,t.cleanPos=function(_){return Array.isArray(_)||typeof _=="string"&&_!==""?_:sc(_)},t.setupMultiCategory=function(_){var A=t._traceIndices,T,M,S=t._matchGroup;if(S&&t._categories.length===0){for(var k in S)if(k!==i){var P=r[mb.id2name(k)];A=A.concat(P._traceIndices)}}var I=[[0,{}],[0,{}]],B=[];for(T=0;TP[1]&&(M[k?0:1]=T,S[1]=P[1]),S[0]>=S[1])if(A!==void 0){var I=P[0]+1;T!==void 0&&(I=Math.min(I,P[1])),M[k?0:1]=t.l2r(I)}else T!==void 0&&(M[k?1:0]=t.l2r(P[1]-1))}},t.cleanRange=function(_,A){t._cleanRange(_,A),t.limitRange(_)},t._cleanRange=function(_,A){A||(A={}),_||(_="range");var T=qi.nestedProperty(t,_).get(),M,S;if(t.type==="date"?S=qi.dfltRange(t.calendar):a==="y"?S=yb.DFLTRANGEY:t._name==="realaxis"?S=[0,1]:S=A.dfltRange||yb.DFLTRANGEX,S=S.slice(),(t.rangemode==="tozero"||t.rangemode==="nonnegative")&&(S[0]=0),!T||T.length!==2){qi.nestedProperty(t,_).set(S);return}var k=T[0]===null,P=T[1]===null;for(t.type==="date"&&!t.autorange&&(T[0]=qi.cleanDate(T[0],mu,t.calendar),T[1]=qi.cleanDate(T[1],mu,t.calendar)),M=0;M<2;M++)if(t.type==="date"){if(!qi.isDateTime(T[M],t.calendar)){t[_]=S;break}if(t.r2l(T[0])===t.r2l(T[1])){var I=qi.constrain(t.r2l(T[0]),qi.MIN_MS+1e3,qi.MAX_MS-1e3);T[0]=t.l2r(I-1e3),T[1]=t.l2r(I+1e3);break}}else{if(!oc(T[M]))if(!(k||P)&&oc(T[1-M]))T[M]=T[1-M]*(M?10:.1);else{t[_]=S;break}if(T[M]<-fb?T[M]=-fb:T[M]>fb&&(T[M]=fb),T[0]===T[1]){var B=Math.max(1,Math.abs(T[0]*1e-6));T[0]-=B,T[1]+=B}}},t.setScale=function(_){var A=r._size;if(t.overlaying){var T=mb.getFromId({_fullLayout:r},t.overlaying);t.domain=T.domain}var M=_&&t._r?"_r":"range",S=t.calendar;t.cleanRange(M);var k=t.r2l(t[M][0],S),P=t.r2l(t[M][1],S),I=a==="y";if(I?(t._offset=A.t+(1-t.domain[1])*A.h,t._length=A.h*(t.domain[1]-t.domain[0]),t._m=t._length/(k-P),t._b=-t._m*P):(t._offset=A.l+t.domain[0]*A.w,t._length=A.w*(t.domain[1]-t.domain[0]),t._m=t._length/(P-k),t._b=-t._m*k),t._rangebreaks=[],t._lBreaks=0,t._m2=0,t._B=[],t.rangebreaks){var B,L;if(t._rangebreaks=t.locateBreaks(Math.min(k,P),Math.max(k,P)),t._rangebreaks.length){for(B=0;BP&&(z=!z),z&&t._rangebreaks.reverse();var O=z?-1:1;for(t._m2=O*t._length/(Math.abs(P-k)-t._lBreaks),t._B.push(-t._m2*(I?P:k)),B=0;BS&&(S+=7,kS&&(S+=24,k=M&&k=M&&_=de.min&&(lede.max&&(de.max=pe),_e=!1)}_e&&P.push({min:le,max:pe})}};for(T=0;T{"use strict";var qV=Br(),q8=et(),H3e=(Ki(),ct(na)).BADNUM,xb=q8.isArrayOrTypedArray,Z3e=q8.isDateTime,Y3e=q8.cleanNumber,OV=Math.round;VV.exports=function(t,r,i){var a=t,n=i.noMultiCategory;if(xb(a)&&!a.length)return"-";if(!n&&Q3e(a))return"multicategory";if(n&&Array.isArray(a[0])){for(var o=[],s=0;sn*2}function NV(e){return Math.max(1,(e-1)/1e3)}function J3e(e,t){for(var r=e.length,i=NV(r),a=0,n=0,o={},s=0;sa*2}function Q3e(e){return xb(e[0])&&xb(e[1])}});var eg=X((Iet,WV)=>{"use strict";var e5e=Wr(),$V=Br(),ff=et(),bb=(Ki(),ct(na)).FP_SAFE,t5e=mr(),r5e=xi(),HV=nn(),i5e=HV.getFromId,a5e=HV.isLinked;WV.exports={applyAutorangeOptions:YV,getAutoRange:N8,makePadFn:V8,doAutoRange:o5e,findExtremes:s5e,concatExtremes:j8};function N8(e,t){var r,i,a=[],n=e._fullLayout,o=V8(n,t,0),s=V8(n,t,1),l=j8(e,t),u=l.min,c=l.max;if(u.length===0||c.length===0)return ff.simpleMap(t.range,t.r2l);var h=u[0].val,f=c[0].val;for(r=1;r0&&(P=w-o(T)-s(M),P>_?I/P>A&&(S=T,k=M,A=I/P):I/w>A&&(S={val:T.val,nopad:1},k={val:M.val,nopad:1},A=I/w));function B($,j){return Math.max($,s(j))}if(h===f){var L=h-1,z=h+1;if(y)if(h===0)a=[0,1];else{var O=(h>0?c:u).reduce(B,0),V=h/(1-Math.min(.5,O/w));a=h>0?[0,V]:[V,0]}else x?a=[Math.max(0,L),Math.max(1,z)]:a=[L,z]}else y?(S.val>=0&&(S={val:0,nopad:1}),k.val<=0&&(k={val:0,nopad:1})):x&&(S.val-A*o(S)<0&&(S={val:0,nopad:1}),k.val<=0&&(k={val:1,nopad:1})),A=(k.val-S.val-UV(t,T.val,M.val))/(w-o(S)-s(k)),a=[S.val-A*o(S),k.val+A*s(k)];return a=YV(a,t),t.limitRange&&t.limitRange(),p&&a.reverse(),ff.simpleMap(a,t.l2r||Number)}function UV(e,t,r){var i=0;if(e.rangebreaks)for(var a=e.locateBreaks(t,r),n=0;n0?r.ppadplus:r.ppadminus)||r.ppad||0),T=_((e._m>0?r.ppadminus:r.ppadplus)||r.ppad||0),M=_(r.vpadplus||r.vpad),S=_(r.vpadminus||r.vpad);if(!u){if(x=1/0,w=-1/0,l)for(h=0;h0&&(x=f),f>w&&f-bb&&(x=f),f>w&&f=I;h--)P(h);return{min:i,max:a,opts:r}}function U8(e,t,r,i){ZV(e,t,r,i,l5e)}function G8(e,t,r,i){ZV(e,t,r,i,u5e)}function ZV(e,t,r,i,a){for(var n=i.tozero,o=i.extrapad,s=!0,l=0;l=r&&(u.extrapad||!o)){s=!1;break}else a(t,u.val)&&u.pad<=r&&(o||!u.extrapad)&&(e.splice(l,1),l--)}if(s){var c=n&&t===0;e.push({val:t,pad:c?0:r,extrapad:c?!1:o})}}function jV(e){return $V(e)&&Math.abs(e)=t}function c5e(e,t){var r=t.autorangeoptions;return r&&r.minallowed!==void 0&&wb(t,r.minallowed,r.maxallowed)?r.minallowed:r&&r.clipmin!==void 0&&wb(t,r.clipmin,r.clipmax)?Math.max(e,t.d2l(r.clipmin)):e}function h5e(e,t){var r=t.autorangeoptions;return r&&r.maxallowed!==void 0&&wb(t,r.minallowed,r.maxallowed)?r.maxallowed:r&&r.clipmax!==void 0&&wb(t,r.clipmin,r.clipmax)?Math.min(e,t.d2l(r.clipmax)):e}function wb(e,t,r){return t!==void 0&&r!==void 0?(t=e.d2l(t),r=e.d2l(r),t=l&&(n=l,r=l),o<=l&&(o=l,i=l)}}return r=c5e(r,t),i=h5e(i,t),[r,i]}});var ta=X((zet,yU)=>{"use strict";var yl=Wr(),za=Br(),p1=gn(),rg=mr(),or=et(),m1=or.strTranslate,rd=sn(),f5e=Jv(),ig=qr(),Rs=xi(),d5e=pu(),XV=l8(),Let=(vn(),ct(mn)),Un=(Ki(),ct(na)),p5e=Un.ONEMAXYEAR,Mb=Un.ONEAVGYEAR,Db=Un.ONEMINYEAR,m5e=Un.ONEMAXQUARTER,Y8=Un.ONEAVGQUARTER,Sb=Un.ONEMINQUARTER,v5e=Un.ONEMAXMONTH,v1=Un.ONEAVGMONTH,Eb=Un.ONEMINMONTH,Bs=Un.ONEWEEK,Ao=Un.ONEDAY,df=Ao/2,uc=Un.ONEHOUR,ag=Un.ONEMIN,kb=Un.ONESEC,g5e=Un.ONEMILLI,y5e=Un.ONEMICROSEC,id=Un.MINUS_SIGN,Fb=Un.BADNUM,W8={K:"zeroline"},X8={K:"gridline",L:"path"},K8={K:"minor-gridline",L:"path"},sU={K:"tick",L:"path"},KV={K:"tick",L:"text"},JV={width:["x","r","l","xl","xr"],height:["y","t","b","yt","yb"],right:["r","xr"],left:["l","xl"],top:["t","yt"],bottom:["b","yb"]},Pb=(ao(),ct(io)),tg=Pb.MID_SHIFT,ad=Pb.CAP_SHIFT,ng=Pb.LINE_SPACING,_5e=Pb.OPPOSITE_SIDE,Cb=3,ht=yU.exports={};ht.setConvert=_b();var x5e=O8(),cc=nn(),b5e=cc.idSort,w5e=cc.isLinked;ht.id2name=cc.id2name;ht.name2id=cc.name2id;ht.cleanId=cc.cleanId;ht.list=cc.list;ht.listIds=cc.listIds;ht.getFromId=cc.getFromId;ht.getFromTrace=cc.getFromTrace;var lU=eg();ht.getAutoRange=lU.getAutoRange;ht.findExtremes=lU.findExtremes;var A5e=1e-4;function tM(e){var t=(e[1]-e[0])*A5e;return[e[0]-t,e[1]+t]}function T5e(e,t,r){if(![r,e,t].every(za)||r===0)return e;let i=Math.round((e-t)/r),a=t+i*r;return e!==a&&Math.abs(e-a)f+" domain")),l=l.concat(n||[]),c.length>o?(or.warn("Array attribute "+u+" has more entries than expected, truncating to "+o),c=c.slice(0,o)):c.length2e-6||((r-e._forceTick0)/e._minDtick%1+1.000001)%1>2e-6)&&(e._minDtick=0))};ht.saveRangeInitial=function(e,t){for(var r=ht.list(e,"",!0),i=!1,a=0;ah*.3||u(i)||u(a))){var f=r.dtick/2;e+=e+fo){var s=Number(r.slice(1));n.exactYears>o&&s%12===0?e=ht.tickIncrement(e,"M6","reverse")+Ao*1.5:n.exactMonths>o?e=ht.tickIncrement(e,"M1","reverse")+Ao*15.5:e-=df;var l=ht.tickIncrement(e,r);if(l<=i)return l}return e}ht.prepMinorTicks=function(e,t,r){var h,f;if(!((h=t.minor)!=null&&h.dtick)){delete e.dtick;var i=t.dtick&&za(t._tmin),a;if(i){var n=ht.tickIncrement(t._tmin,t.dtick,!0);a=[t._tmin,n*.99+t._tmin*.01]}else{var o=or.simpleMap(t.range,t.r2l);a=[o[0],.8*o[0]+.2*o[1]]}if(e.range=or.simpleMap(a,t.l2r),e._isMinor=!0,ht.prepTicks(e,r),i){var s=za(t.dtick),l=za(e.dtick),u=s?t.dtick:+t.dtick.substring(1),c=l?e.dtick:+e.dtick.substring(1);s&&l?$8(u,c)?u===2*Bs&&c===2*Ao&&(e.dtick=Bs):u===2*Bs&&c===3*Ao?e.dtick=Bs:u===Bs&&!(t._input.minor||{}).nticks?e.dtick=Ao:tU(u/c,2.5)?e.dtick=u/2:e.dtick=u:String(t.dtick).charAt(0)==="M"?l?e.dtick="M1":$8(u,c)?u>=12&&c===2&&(e.dtick="M3"):e.dtick=t.dtick:String(e.dtick).charAt(0)==="L"?String(t.dtick).charAt(0)==="L"?$8(u,c)||(e.dtick=tU(u/c,2.5)?t.dtick/2:t.dtick):e.dtick="D1":e.dtick==="D2"&&+t.dtick>1&&(e.dtick=1)}e.range=t.range}((f=t.minor)==null?void 0:f._tick0Init)===void 0&&(e.tick0=t.tick0)};function $8(e,t){return Math.abs((e/t+.5)%1-.5)<.001}function tU(e,t){return Math.abs(e/t-1)<.001}ht.prepTicks=function(e,t){var r=or.simpleMap(e.range,e.r2l,void 0,void 0,t);if(e.tickmode==="auto"||!e.dtick){var i=e.nticks,a;i||(e.type==="category"||e.type==="multicategory"?(a=e.tickfont?or.bigFont(e.tickfont.size||12):15,i=e._length/a):(a=e._id.charAt(0)==="y"?40:80,i=or.constrain(e._length/a,4,9)+1),e._name==="radialaxis"&&(i*=2)),e.minor&&e.minor.tickmode!=="array"||e.tickmode==="array"&&(i*=100),e._roughDTick=Math.abs(r[1]-r[0])/i,ht.autoTicks(e,e._roughDTick),e._minDtick>0&&e.dtick0?(n=i-1,o=i):(n=i,o=i);var s=e[n].value,l=e[o].value,u=Math.abs(l-s),c=r||u,h=0;c>=Db?u>=Db&&u<=p5e?h=u:h=Mb:r===Y8&&c>=Sb?u>=Sb&&u<=m5e?h=u:h=Y8:c>=Eb?u>=Eb&&u<=v5e?h=u:h=v1:r===Bs&&c>=Bs?h=Bs:c>=Ao?h=Ao:r===df&&c>=df?h=df:r===uc&&c>=uc&&(h=uc);var f;h>=u&&(h=u,f=!0);var d=a+h;if(t.rangebreaks&&h>0){for(var p=84,m=0,g=0;gBs&&(h=u)}(h>0||i===0)&&(e[i].periodX=a+h/2)}}ht.calcTicks=function(t,r){for(var i=t.type,a=t.calendar,n=t.ticklabelstep,o=t.ticklabelmode==="period",s=t.range[0]>t.range[1],l=!t.ticklabelindex||or.isArrayOrTypedArray(t.ticklabelindex)?t.ticklabelindex:[t.ticklabelindex],u=or.simpleMap(t.range,t.r2l,void 0,void 0,r),c=u[1]=(_?0:1);A--){var T=!A;A?(t._dtickInit=t.dtick,t._tick0Init=t.tick0):_&&(t.minor._dtickInit=t.minor.dtick,t.minor._tick0Init=t.minor.tick0);var M=A?t:or.extendFlat({},t,_?t.minor:{minor:{}});if(T?ht.prepMinorTicks(M,t,r):ht.prepTicks(M,r),M.tickmode==="array"){A?(g=[],p=rU(t,!T)):(y=[],m=rU(t,!T));continue}if(M.tickmode==="sync"){g=[],p=C5e(t);continue}var S=tM(u),k=S[0],P=S[1],I=za(M.dtick),B=i==="log"&&!(I||M.dtick.charAt(0)==="L"),L=ht.tickFirst(M,r);if(A){if(t._tmin=L,L=P:O<=P;O=ht.tickIncrement(O,j,c,a)){if(A&&V++,M.rangebreaks&&!c){if(O=f)break}if(g.length>d||O===z)break;z=O;var Z={value:T5e(O,H,j)};A?(O===L&&(Z.first=!0),B&&O!==(O|0)&&(Z.simpleLabel=!0),n>1&&V%n&&(Z.skipLabel=!0),g.push(Z)):(Z.minor=!0,y.push(Z))}}if(!y||y.length<3)l=!1;else{var W=(y[2].value-y[1].value)*(s?-1:1);t4e(W,t.tickformat)||(l=!1,y=y.slice(1))}if(!l)x=g;else{var le=g.concat(y);o&&g.length&&(le=le.slice(1)),le=le.sort(function(Ve,ge){return Ve.value-ge.value}).filter(function(Ve,ge,Ge){return ge===0||Ve.value!==Ge[ge-1].value});var pe=le.map(function(Ve,ge){return Ve.minor===void 0&&!Ve.skipLabel?ge:null}).filter(function(Ve){return Ve!==null});pe.forEach(function(Ve){l.map(function(ge){var Ge=Ve+ge;Ge>=0&&Ge-1;re--){if(g[re].drop){g.splice(re,1);continue}g[re].value=Z8(g[re].value,t);var He=t.c2p(g[re].value);(ce?ze>He-me:zef||ttf&&(Ge.periodX=f),tta&&pa&&gMb)t/=Mb,i=a(10),e.dtick="M"+12*lc(t,i,Ab);else if(n>v1)t/=v1,e.dtick="M"+lc(t,1,iU);else if(n>Ao){if(e.dtick=lc(t,Ao,e._hasDayOfWeekBreaks?[1,2,7,14]:F5e),!r){var o=ht.getTickFormat(e),s=e.ticklabelmode==="period";s&&(e._rawTick0=e.tick0),/%[uVW]/.test(o)?e.tick0=or.dateTick0(e.calendar,2):e.tick0=or.dateTick0(e.calendar,1),s&&(e._dowTick0=e.tick0)}}else n>uc?e.dtick=lc(t,uc,iU):n>ag?e.dtick=lc(t,ag,aU):n>kb?e.dtick=lc(t,kb,aU):(i=a(10),e.dtick=lc(t,i,Ab))}else if(e.type==="log"){e.tick0=0;var l=or.simpleMap(e.range,e.r2l);if(e._isMinor&&(t*=1.5),t>.7)e.dtick=Math.ceil(t);else if(Math.abs(l[1]-l[0])<1){var u=1.5*Math.abs((l[1]-l[0])/t);t=Math.abs(Math.pow(10,l[1])-Math.pow(10,l[0]))/u,i=a(10),e.dtick="L"+lc(t,i,Ab)}else e.dtick=t>.3?"D2":"D1"}else e.type==="category"||e.type==="multicategory"?(e.tick0=0,e.dtick=Math.ceil(Math.max(t,1))):nM(e)?(e.tick0=0,i=1,e.dtick=lc(t,i,P5e)):(e.tick0=0,i=a(10),e.dtick=lc(t,i,Ab));if(e.dtick===0&&(e.dtick=1),!za(e.dtick)&&typeof e.dtick!="string"){var c=e.dtick;throw e.dtick=1,"ax.dtick error: "+String(c)}};function fU(e){var t=e.dtick;if(e._tickexponent=0,!za(t)&&typeof t!="string"&&(t=1),(e.type==="category"||e.type==="multicategory")&&(e._tickround=null),e.type==="date"){var r=e.r2l(e.tick0),i=e.l2r(r).replace(/(^-|i)/g,""),a=i.length;if(String(t).charAt(0)==="M")a>10||i.slice(5)!=="01-01"?e._tickround="d":e._tickround=+t.slice(1)%12===0?"y":"m";else if(t>=Ao&&a<=10||t>=Ao*15)e._tickround="d";else if(t>=ag&&a<=16||t>=uc)e._tickround="M";else if(t>=kb&&a<=19||t>=ag)e._tickround="S";else{var n=e.l2r(r+t).replace(/^-/,"").length;e._tickround=Math.max(a,n)-20,e._tickround<0&&(e._tickround=4)}}else if(za(t)||t.charAt(0)==="L"){var o=e.range.map(e.r2d||Number);za(t)||(t=Number(t.slice(1))),e._tickround=2-Math.floor(Math.log(t)/Math.LN10+.01);var s=Math.max(Math.abs(o[0]),Math.abs(o[1])),l=Math.floor(Math.log(s)/Math.LN10+.01),u=e.minexponent===void 0?3:e.minexponent;Math.abs(l)>u&&(g1(e.exponentformat)&&e.exponentformat!=="SI extended"&&!rM(l)||g1(e.exponentformat)&&e.exponentformat==="SI extended"&&!iM(l)?e._tickexponent=3*Math.round((l-1)/3):e._tickexponent=l)}else e._tickround=null}ht.tickIncrement=function(e,t,r,i){var a=r?-1:1;if(za(t))return or.increment(e,a*t);var n=t.charAt(0),o=a*Number(t.slice(1));if(n==="M")return or.incrementMonth(e,o,i);if(n==="L")return Math.log(Math.pow(10,e)+o)/Math.LN10;if(n==="D"){var s=t==="D2"?hU:cU,l=e+a*.01,u=or.roundUp(or.mod(l,1),s,r);return Math.floor(l)+Math.log(yl.round(Math.pow(10,u),1))/Math.LN10}throw"unrecognized dtick "+String(t)};ht.tickFirst=function(e,t){var r=e.r2l||Number,i=or.simpleMap(e.range,r,void 0,void 0,t),a=i[1]=0&&_<=e._length?w:null};if(l&&or.isArrayOrTypedArray(e.ticktext)){var p=or.simpleMap(e.range,e.r2l),m=(Math.abs(p[1]-p[0])-(e._lBreaks||0))/1e4;for(f=0;f"+s;else{var u=sg(e),c=e._trueSide||e.side;(!u&&c==="top"||u&&c==="bottom")&&(o+="
")}t.text=o}function L5e(e,t,r,i,a){var n=e.dtick,o=t.x,s=e.tickformat,l=typeof n=="string"&&n.charAt(0);if(a==="never"&&(a=""),i&&l!=="L"&&(n="L3",l="L"),s||l==="L")t.text=og(Math.pow(10,o),e,a,i);else if(za(n)||l==="D"&&(e.minorloglabels==="complete"||or.mod(o+.01,1)<.1)){var u;e.minorloglabels==="complete"&&!(or.mod(o+.01,1)<.1)&&(u=!0,t.fontSize*=.75);var c=Math.pow(10,o).toExponential(0),h=c.split("e"),f=+h[1],d=Math.abs(f),p=e.exponentformat;p==="power"||g1(p)&&p!=="SI extended"&&rM(f)||g1(p)&&p==="SI extended"&&iM(f)?(t.text=h[0],d>0&&(t.text+="x10"),t.text==="1x10"&&(t.text="10"),f!==0&&f!==1&&(t.text+=""+(f>0?"":id)+d+""),t.fontSize*=1.25):(p==="e"||p==="E")&&d>2?t.text=h[0]+p+(f>0?"+":id)+d:(t.text=og(Math.pow(10,o),e,"","fakehover"),n==="D1"&&e._id.charAt(0)==="y"&&(t.dy-=t.fontSize/6))}else if(l==="D")t.text=e.minorloglabels==="none"?"":String(Math.round(Math.pow(10,or.mod(o,1)))),t.fontSize*=.75;else throw"unrecognized dtick "+String(n);if(e.dtick==="D1"){var m=String(t.text).charAt(0);(m==="0"||m==="1")&&(e._id.charAt(0)==="y"?t.dx-=t.fontSize/4:(t.dy+=t.fontSize/2,t.dx+=(e.range[1]>e.range[0]?1:-1)*t.fontSize*(o<0?.5:.25)))}}function z5e(e,t){var r=e._categories[Math.round(t.x)];r===void 0&&(r=""),t.text=String(r)}function R5e(e,t,r){var i=Math.round(t.x),a=e._categories[i]||[],n=a[1]===void 0?"":String(a[1]),o=a[0]===void 0?"":String(a[0]);r?t.text=o+" - "+n:(t.text=n,t.text2=o)}function B5e(e,t,r,i,a){a==="never"?a="":e.showexponent==="all"&&Math.abs(t.x/e.dtick)<1e-6&&(a="hide"),t.text=og(t.x,e,a,i)}function q5e(e,t,r,i,a){if(e.thetaunit==="radians"&&!r){var n=t.x/180;if(n===0)t.text="0";else{var o=O5e(n);if(o[1]>=100)t.text=og(or.deg2rad(t.x),e,a,i);else{var s=t.x<0;o[1]===1?o[0]===1?t.text="\u03C0":t.text=o[0]+"\u03C0":t.text=["",o[0],"","\u2044","",o[1],"","\u03C0"].join(""),s&&(t.text=id+t.text)}}}else t.text=og(t.x,e,a,i)}function O5e(e){function t(s,l){return Math.abs(s-l)<=1e-6}function r(s,l){return t(l,0)?s:r(l,s%l)}function i(s){for(var l=1;!t(Math.round(s*l)/l,s);)l*=10;return l}var a=i(e),n=e*a,o=Math.abs(r(n,a));return[Math.round(n/o),Math.round(a/o)]}var pU=["f","p","n","\u03BC","m","","k","M","G","T"],N5e=["q","r","y","z","a",...pU,"P","E","Z","Y","R","Q"],g1=e=>["SI","SI extended","B"].includes(e);function rM(e){return e>14||e<-15}function iM(e){return e>32||e<-30}function V5e(e,t){return g1(t)?!!(t==="SI extended"&&iM(e)||t!=="SI extended"&&rM(e)):!1}function og(e,t,r,i){var a=e<0,n=t._tickround,o=r||t.exponentformat||"B",s=t._tickexponent,l=ht.getTickFormat(t),u=t.separatethousands;if(i){var c={exponentformat:o,minexponent:t.minexponent,dtick:t.showexponent==="none"?t.dtick:za(e)&&Math.abs(e)||1,range:t.showexponent==="none"?t.range.map(t.r2d):[0,e||1]};fU(c),n=(Number(c._tickround)||0)+4,s=c._tickexponent,t.hoverformat&&(l=t.hoverformat)}if(l)return t._numFormat(l)(e).replace(/-/g,id);o==="none"&&(s=0),e=Math.abs(e);let h=Math.pow(10,-n)/2;if(e"+f+"":o==="B"&&s===9?e+="B":g1(o)&&(e+=o==="SI extended"?N5e[s/3+10]:pU[s/3+5])}return a?id+e:e}ht.getTickFormat=function(e){var t;function r(l){return typeof l!="string"?l:Number(l.replace("M",""))*v1}function i(l,u){var c=["L","D"];if(typeof l==typeof u){if(typeof l=="number")return l-u;var h=c.indexOf(l.charAt(0)),f=c.indexOf(u.charAt(0));return h===f?Number(l.replace(/(L|D)/g,""))-Number(u.replace(/(L|D)/g,"")):h-f}else return typeof l=="number"?1:-1}function a(l,u,c){var h=c||function(p){return p},f=u[0],d=u[1];return(!f&&typeof f!="number"||h(f)<=h(l))&&(!d&&typeof d!="number"||h(d)>=h(l))}function n(l,u){var c=u[0]===null,h=u[1]===null,f=i(l,u[0])>=0,d=i(l,u[1])<=0;return(c||f)&&(h||d)}var o,s;if(e.tickformatstops&&e.tickformatstops.length>0)switch(e.type){case"date":case"linear":{for(t=0;t=0&&a.unshift(a.splice(c,1).shift())}});var s={false:{left:0,right:0}};return or.syncOrAsync(a.map(function(l){return function(){if(l){var u=ht.getFromId(e,l);r||(r={}),r.axShifts=s,r.overlayingShiftedAx=o;var c=ht.drawOne(e,u,r);return u._shiftPusher&&eM(u,u._fullDepth||0,s,!0),u._r=u.range.slice(),u._rl=or.simpleMap(u._r,u.r2l),c}}}))};ht.drawOne=function(e,t,r){r=r||{};var i=r.axShifts||{},a=r.overlayingShiftedAx||[],n,o,s;t.setScale();var l=e._fullLayout,u=t._id,c=u.charAt(0),h=ht.counterLetter(u),f=l._plots[t._mainSubplot],d=t.zerolinelayer==="above traces";if(!f)return;if(t._shiftPusher=t.autoshift||a.indexOf(t._id)!==-1||a.indexOf(t.overlaying)!==-1,t._shiftPusher&t.anchor==="free"){var p=t.linewidth/2||0;t.ticks==="inside"&&(p+=t.ticklen),eM(t,p,i,!0),eM(t,t.shift||0,i,!1)}(r.skipTitle!==!0||t._shift===void 0)&&(t._shift=e4e(t,i));var m=f[c+"axislayer"],g=t._mainLinePosition,y=g+=t._shift,x=t._mainMirrorPosition,w=t._vals=ht.calcTicks(t),_=[t.mirror,y,x].join("_");for(n=0;n0?ge.bottom-Re:0,Ve))));var we=0,ot=0;if(t._shiftPusher&&(we=Math.max(Ve,ge.height>0?se==="l"?Re-ge.left:ge.right-Re:0),t.title.text!==l._dfltTitle[c]&&(ot=(t._titleStandoff||0)+(t._titleScoot||0),se==="l"&&(ot+=oU(t))),t._fullDepth=Math.max(we,ot)),t.automargin){Ge={x:0,y:0,r:0,l:0,t:0,b:0};var At=[0,1],$e=typeof t._shift=="number"?t._shift:0;if(c==="x"){if(se==="b"?Ge[se]=t._depth:(Ge[se]=t._depth=Math.max(ge.width>0?Re-ge.top:0,Ve),At.reverse()),ge.width>0){var Ee=ge.right-(t._offset+t._length);Ee>0&&(Ge.xr=1,Ge.r=Ee);var Me=t._offset-ge.left;Me>0&&(Ge.xl=0,Ge.l=Me)}}else if(se==="l"?(t._depth=Math.max(ge.height>0?Re-ge.left:0,Ve),Ge[se]=t._depth-$e):(t._depth=Math.max(ge.height>0?ge.right-Re:0,Ve),Ge[se]=t._depth+$e,At.reverse()),ge.height>0){var We=ge.bottom-(t._offset+t._length);We>0&&(Ge.yb=0,Ge.b=We);var lt=t._offset-ge.top;lt>0&&(Ge.yt=1,Ge.t=lt)}Ge[h]=t.anchor==="free"?t.position:t._anchorAxis.domain[At[0]],t.title.text!==l._dfltTitle[c]&&(Ge[se]+=oU(t)+(t.title.standoff||0)),t.mirror&&t.anchor!=="free"&&(tt={x:0,y:0,r:0,l:0,t:0,b:0},tt[je]=t.linewidth,t.mirror&&t.mirror!==!0&&(tt[je]+=Ve),t.mirror===!0||t.mirror==="ticks"?tt[h]=t._anchorAxis.domain[At[1]]:(t.mirror==="all"||t.mirror==="allticks")&&(tt[h]=[t._counterDomainMin,t._counterDomainMax][At[1]]))}qe&&(ie=rg.getComponentMethod("rangeslider","autoMarginOpts")(e,t)),typeof t.automargin=="string"&&(nU(Ge,t.automargin),nU(tt,t.automargin)),p1.autoMargin(e,aM(t),Ge),p1.autoMargin(e,vU(t),tt),p1.autoMargin(e,gU(t),ie)}),or.syncOrAsync(ke)}};function nU(e,t){if(e){var r=Object.keys(JV).reduce(function(i,a){return t.indexOf(a)!==-1&&JV[a].forEach(function(n){i[n]=1}),i},{});Object.keys(e).forEach(function(i){r[i]||(i.length===1?e[i]=0:delete e[i])})}}function U5e(e,t){var r=[],i,a=function(n,o){var s=n.xbnd[o];s!==null&&r.push(or.extendFlat({},n,{x:s}))};if(t.length){for(i=0;ie.range[1],s=e.ticklabelposition&&e.ticklabelposition.indexOf("inside")!==-1,l=!s;if(r){var u=o?-1:1;r=r*u}if(i){var c=e.side,h=s&&(c==="top"||c==="left")||l&&(c==="bottom"||c==="right")?1:-1;i=i*h}return e._id.charAt(0)==="x"?function(f){return m1(a+e._offset+e.l2p(J8(f))+r,n+i)}:function(f){return m1(n+i,a+e._offset+e.l2p(J8(f))+r)}};function J8(e){return e.periodX!==void 0?e.periodX:e.x}function H5e(e){var t=e.ticklabelposition||"",r=e.tickson||"",i=function(p){return t.indexOf(p)!==-1},a=i("top"),n=i("left"),o=i("right"),s=i("bottom"),l=i("inside"),u=r!=="boundaries"&&(s||n||a||o);if(!u&&!l)return[0,0];var c=e.side,h=u?(e.tickwidth||0)/2:0,f=Cb,d=e.tickfont?e.tickfont.size:12;return(s||a)&&(h+=d*ad,f+=(e.linewidth||0)/2),(n||o)&&(h+=(e.linewidth||0)/2,f+=Cb),l&&c==="top"&&(f-=d*(1-ad)),(n||a)&&(h=-h),(c==="bottom"||c==="right")&&(f=-f),[u?h:0,l?f:0]}ht.makeTickPath=function(e,t,r,i){i||(i={});var a=i.minor;if(a&&!e.minor)return"";var n=i.len!==void 0?i.len:a?e.minor.ticklen:e.ticklen,o=e._id.charAt(0),s=(e.linewidth||1)/2;return o==="x"?"M0,"+(t+s*r)+"v"+n*r:"M"+(t+s*r)+",0h"+n*r};ht.makeLabelFns=function(e,t,r){var i=e.ticklabelposition||"",a=e.tickson||"",n=function(L){return i.indexOf(L)!==-1},o=n("top"),s=n("left"),l=n("right"),u=n("bottom"),c=a!=="boundaries"&&(u||s||o||l),h=n("inside"),f=i==="inside"&&e.ticks==="inside"||!h&&e.ticks==="outside"&&a!=="boundaries",d=0,p=0,m=f?e.ticklen:0;if(h?m*=-1:c&&(m=0),f&&(d+=m,r)){var g=or.deg2rad(r);d=m*Math.cos(g)+1,p=m*Math.sin(g)}e.showticklabels&&(f||e.showline)&&(d+=.2*e.tickfont.size),d+=(e.linewidth||1)/2*(h?-1:1);var y={labelStandoff:d,labelShift:p},x,w,_,A,T=0,M=e.side,S=e._id.charAt(0),k=e.tickangle,P;if(S==="x")P=!h&&M==="bottom"||h&&M==="top",A=P?1:-1,h&&(A*=-1),x=p*A,w=t+d*A,_=P?1:-.2,Math.abs(k)===90&&(h?_+=tg:k===-90&&M==="bottom"?_=ad:k===90&&M==="top"?_=tg:_=.5,T=tg/2*(k/90)),y.xFn=function(L){return L.dx+x+T*L.fontSize},y.yFn=function(L){return L.dy+w+L.fontSize*_},y.anchorFn=function(L,z){if(c){if(s)return"end";if(l)return"start"}return!za(z)||z===0||z===180?"middle":z*A<0!==h?"end":"start"},y.heightFn=function(L,z,O){return z<-60||z>60?-.5*O:e.side==="top"!==h?-O:0};else if(S==="y"){if(P=!h&&M==="left"||h&&M==="right",A=P?1:-1,h&&(A*=-1),x=d,w=p*A,_=0,!h&&Math.abs(k)===90&&(k===-90&&M==="left"||k===90&&M==="right"?_=ad:_=.5),h){var I=za(k)?+k:0;if(I!==0){var B=or.deg2rad(I);T=Math.abs(Math.sin(B))*ad*A,_=0}}y.xFn=function(L){return L.dx+t-(x+L.fontSize*_)*A+T*L.fontSize},y.yFn=function(L){return L.dy+w+L.fontSize*tg},y.anchorFn=function(L,z){return za(z)&&Math.abs(z)===90?"middle":P?"end":"start"},y.heightFn=function(L,z,O){return e.side==="right"&&(z*=-1),z<-30?-O:z<30?-.5*O:0}}return y};function Ib(e){return[e.text,e.x,e.axInfo,e.font,e.fontSize,e.fontColor].join("_")}ht.drawTicks=function(e,t,r){r=r||{};var i=t._id+"tick",a=[].concat(t.minor&&t.minor.ticks?r.vals.filter(function(o){return o.minor&&!o.noTick}):[]).concat(t.ticks?r.vals.filter(function(o){return!o.minor&&!o.noTick}):[]),n=r.layer.selectAll("path."+i).data(a,Ib);n.exit().remove(),n.enter().append("path").classed(i,1).classed("ticks",1).classed("crisp",r.crisp!==!1).each(function(o){return ig.stroke(yl.select(this),o.minor?t.minor.tickcolor:t.tickcolor)}).style("stroke-width",function(o){return Rs.crispRound(e,o.minor?t.minor.tickwidth:t.tickwidth,1)+"px"}).attr("d",r.path).style("display",null),Lb(t,[sU]),n.attr("transform",r.transFn)};ht.drawGrid=function(e,t,r){if(r=r||{},t.tickmode!=="sync"){var i=t._id+"grid",a=t.minor&&t.minor.showgrid,n=a?r.vals.filter(function(y){return y.minor}):[],o=t.showgrid?r.vals.filter(function(y){return!y.minor}):[],s=r.counterAxis;if(s&&ht.shouldShowZeroLine(e,t,s))for(var l=t.tickmode==="array",u=0;u=0;p--){var m=p?f:d;if(m){var g=m.selectAll("path."+i).data(p?o:n,Ib);g.exit().remove(),g.enter().append("path").classed(i,1).classed("crisp",r.crisp!==!1),g.attr("transform",r.transFn).attr("d",r.path).each(function(y){return ig.stroke(yl.select(this),y.minor?t.minor.gridcolor:t.gridcolor||"#ddd")}).style("stroke-dasharray",function(y){return Rs.dashStyle(y.minor?t.minor.griddash:t.griddash,y.minor?t.minor.gridwidth:t.gridwidth)}).style("stroke-width",function(y){return(y.minor?h:t._gw)+"px"}).style("display",null),typeof r.path=="function"&&g.attr("d",r.path)}}Lb(t,[X8,K8])}};ht.drawZeroLine=function(e,t,r){r=r||r;var i=t._id+"zl",a=ht.shouldShowZeroLine(e,t,r.counterAxis),n=r.layer.selectAll("path."+i).data(a?[{x:0,id:t._id}]:[]);n.exit().remove(),n.enter().append("path").classed(i,1).classed("zl",1).classed("crisp",r.crisp!==!1).each(function(){r.layer.selectAll("path").sort(function(o,s){return b5e(o.id,s.id)})}),n.attr("transform",r.transFn).attr("d",r.path).call(ig.stroke,t.zerolinecolor||ig.defaultLine).style("stroke-width",Rs.crispRound(e,t.zerolinewidth,t._gw||1)+"px").style("display",null),Lb(t,[W8])};ht.drawLabels=function(e,t,r){r=r||{};var i=e._fullLayout,a=t._id,n=t.zerolinelayer==="above traces",o=r.cls||a+"tick",s=r.vals.filter(function(H){return H.text}),l=r.labelFns,u=r.secondary?0:t.tickangle,c=(t._prevTickAngles||{})[o],h=r.layer.selectAll("g."+o).data(t.showticklabels?s:[],Ib),f=[];h.enter().append("g").classed(o,1).append("text").attr("text-anchor","middle").each(function(H){var Z=yl.select(this),W=e._promises.length;Z.call(rd.positionText,l.xFn(H),l.yFn(H)).call(Rs.font,{family:H.font,size:H.fontSize,color:H.fontColor,weight:H.fontWeight,style:H.fontStyle,variant:H.fontVariant,textcase:H.fontTextcase,lineposition:H.fontLineposition,shadow:H.fontShadow}).text(H.text).call(rd.convertToTspans,e),e._promises[W]?f.push(e._promises.pop().then(function(){d(Z,u)})):d(Z,u)}),Lb(t,[KV]),h.exit().remove(),r.repositionOnUpdate&&h.each(function(H){yl.select(this).select("text").call(rd.positionText,l.xFn(H),l.yFn(H))});function d(H,Z){H.each(function(W){var le=yl.select(this),pe=le.select(".text-math-group"),_e=l.anchorFn(W,Z),De=r.transFn.call(le.node(),W)+(za(Z)&&+Z!=0?" rotate("+Z+","+l.xFn(W)+","+(l.yFn(W)-W.fontSize/2)+")":""),de=rd.lineCount(le),Ce=ng*W.fontSize,Q=l.heightFn(W,za(Z)?+Z:0,(de-1)*Ce);if(Q&&(De+=m1(0,Q)),pe.empty()){var ae=le.select("text");ae.attr({transform:De,"text-anchor":_e}),ae.style("display",null),t._adjustTickLabelsOverflow&&t._adjustTickLabelsOverflow()}else{var ye=Rs.bBox(pe.node()).width,te=ye*{end:-.5,start:.5}[_e];pe.attr("transform",De+m1(te,0))}})}t._adjustTickLabelsOverflow=function(){var H=t.ticklabeloverflow;if(!(!H||H==="allow")){var Z=H.indexOf("hide")!==-1,W=t._id.charAt(0)==="x",le=0,pe=W?e._fullLayout.width:e._fullLayout.height;if(H.indexOf("domain")!==-1){var _e=or.simpleMap(t.range,t.r2l);le=t.l2p(_e[0])+t._offset,pe=t.l2p(_e[1])+t._offset}var De=Math.min(le,pe),de=Math.max(le,pe),Ce=t.side,Q=1/0,ae=-1/0;h.each(function(ce){var me=yl.select(this),ze=me.select(".text-math-group");if(ze.empty()){var He=Rs.bBox(me.node()),ke=0;W?(He.right>de||He.leftde||He.top+(t.tickangle?0:ce.fontSize/4)t["_visibleLabelMin_"+_e._id]?me.style("display","none"):de.K==="tick"&&!De&&me.node().style.display!=="none"&&me.style("display",null)})})})})},d(h,c+1?c:u);function p(){return f.length&&Promise.all(f)}var m=null;function g(){if(d(h,u),s.length&&t.autotickangles&&(t.type!=="log"||String(t.dtick).charAt(0)!=="D")){m=t.autotickangles[0];var H=0,Z=[],W,le=1;h.each(function(Ge){H=Math.max(H,Ge.fontSize);var tt=t.l2p(Ge.x),ie=Q8(this),we=Rs.bBox(ie.node());le=Math.max(le,rd.lineCount(ie)),Z.push({top:0,bottom:10,height:10,left:tt-we.width/2,right:tt+we.width/2+2,width:we.width+2})});var pe=(t.tickson==="boundaries"||t.showdividers)&&!r.secondary,_e=s.length,De=Math.abs((s[_e-1].x-s[0].x)*t._m)/(_e-1),de=pe?De/2:De,Ce=pe?t.ticklen:H*1.25*le,Q=Math.sqrt(Math.pow(de,2)+Math.pow(Ce,2)),ae=de/Q,ye=t.autotickangles.map(function(Ge){return Ge*Math.PI/180}),te=ye.find(function(Ge){return Math.abs(Math.cos(Ge))<=ae});te===void 0&&(te=ye.reduce(function(Ge,tt){return Math.abs(Math.cos(Ge))V*O&&(B=O,k[S]=P[S]=L[S])}var $=Math.abs(B-I);$-A>0?($-=A,A*=1+A/$):A=0,t._id.charAt(0)!=="y"&&(A=-A),k[M]=w.p2r(w.r2p(P[M])+T*A),w.autorange==="min"||w.autorange==="max reversed"?(k[0]=null,w._rangeInitial0=void 0,w._rangeInitial1=void 0):(w.autorange==="max"||w.autorange==="min reversed")&&(k[1]=null,w._rangeInitial0=void 0,w._rangeInitial1=void 0),i._insideTickLabelsUpdaterange[w._name+".range"]=k}var j=or.syncOrAsync(y);return j&&j.then&&e._promises.push(j),j};function Z5e(e,t,r){var i=t._id+"divider",a=r.vals,n=r.layer.selectAll("path."+i).data(a,Ib);n.exit().remove(),n.enter().insert("path",":first-child").classed(i,1).classed("crisp",1).call(ig.stroke,t.dividercolor).style("stroke-width",Rs.crispRound(e,t.dividerwidth,1)+"px"),n.attr("transform",r.transFn).attr("d",r.path)}ht.getPxPosition=function(e,t){var r=e._fullLayout._size,i=t._id.charAt(0),a=t.side,n;if(t.anchor!=="free"?n=t._anchorAxis:i==="x"?n={_offset:r.t+(1-(t.position||0))*r.h,_length:0}:i==="y"&&(n={_offset:r.l+(t.position||0)*r.w+t._shift,_length:0}),a==="top"||a==="left")return n._offset;if(a==="bottom"||a==="right")return n._offset+n._length};function oU(e){var t=e.title.font.size,r=(e.title.text.match(rd.BR_TAG_ALL)||[]).length;return e.title.hasOwnProperty("standoff")?t*(ad+r*ng):r?t*(r+1)*ng:t}function Y5e(e,t){var r=e._fullLayout,i=t._id,a=i.charAt(0),n=t.title.font.size,o,s=(t.title.text.match(rd.BR_TAG_ALL)||[]).length;if(t.title.hasOwnProperty("standoff"))t.side==="bottom"||t.side==="right"?o=t._depth+t.title.standoff+n*ad:(t.side==="top"||t.side==="left")&&(o=t._depth+t.title.standoff+n*(tg+s*ng));else{var l=sg(t);if(t.type==="multicategory")o=t._depth;else{var u=1.5*n;l&&(u=.5*n,t.ticks==="outside"&&(u+=t.ticklen)),o=10+u+(t.linewidth?t.linewidth-1:0)}l||(a==="x"?o+=t.side==="top"?n*(t.showticklabels?1:0):n*(t.showticklabels?1.5:.5):o+=t.side==="right"?n*(t.showticklabels?1:.5):n*(t.showticklabels?.5:0))}var c=ht.getPxPosition(e,t),h,f,d;a==="x"?(f=t._offset+t._length/2,d=t.side==="top"?c-o:c+o):(d=t._offset+t._length/2,f=t.side==="right"?c+o:c-o,h={rotate:"-90",offset:0});var p;if(t.type!=="multicategory"){var m=t._selections[t._id+"tick"];if(p={selection:m,side:t.side},m&&m.node()&&m.node().parentNode){var g=Rs.getTranslate(m.node().parentNode);p.offsetLeft=g.x,p.offsetTop=g.y}t.title.hasOwnProperty("standoff")&&(p.pad=0)}return t._titleStandoff=o,f5e.draw(e,i+"title",{propContainer:t,propName:t._name+".title.text",placeholder:r._dfltTitle[a],avoid:p,transform:h,attributes:{x:f,y:d,"text-anchor":"middle"}})}ht.shouldShowZeroLine=function(e,t,r){var i=or.simpleMap(t.range,t.r2l);return i[0]*i[1]<=0&&t.zeroline&&(t.type==="linear"||t.type==="-")&&!(t.rangebreaks&&t.maskBreaks(0)===Fb)&&(mU(t,0)||!W5e(e,t,r,i)||X5e(e,t))};ht.clipEnds=function(e,t){return t.filter(function(r){return mU(e,r.x)})};function mU(e,t){var r=e.l2p(t);return r>1&&r1)for(a=1;a=a.min&&e=y5e:/%L/.test(t)?e>=g5e:/%[SX]/.test(t)?e>=kb:/%M/.test(t)?e>=ag:/%[HI]/.test(t)?e>=uc:/%p/.test(t)?e>=df:/%[Aadejuwx]/.test(t)?e>=Ao:/%[UVW]/.test(t)?e>=Bs:/%[Bbm]/.test(t)?e>=Eb:/%[q]/.test(t)?e>=Sb:/%[Yy]/.test(t)?e>=Db:!0}});var xU=X((Ret,_U)=>{"use strict";_U.exports=function(t,r,i){var a,n;if(i){var o=r==="reversed"||r==="min reversed"||r==="max reversed";a=i[o?1:0],n=i[o?0:1]}var s=t("autorangeoptions.minallowed",n===null?a:void 0),l=t("autorangeoptions.maxallowed",a===null?n:void 0);s===void 0&&t("autorangeoptions.clipmin"),l===void 0&&t("autorangeoptions.clipmax"),t("autorangeoptions.include")}});var oM=X((Bet,bU)=>{"use strict";var r4e=xU();bU.exports=function(t,r,i,a){var n=r._template||{},o=r.type||n.type||"-";i("minallowed"),i("maxallowed");var s=i("range");if(!s){var l;!a.noInsiderange&&o!=="log"&&(l=i("insiderange"),l&&(l[0]===null||l[1]===null)&&(r.insiderange=!1,l=void 0),l&&(s=i("range",l)))}var u=r.getAutorangeDflt(s,a),c=i("autorange",u),h;s&&(s[0]===null&&s[1]===null||(s[0]===null||s[1]===null)&&(c==="reversed"||c===!0)||s[0]!==null&&(c==="min"||c==="max reversed")||s[1]!==null&&(c==="max"||c==="min reversed"))&&(s=void 0,delete r.range,r.autorange=!0,h=!0),h||(u=r.getAutorangeDflt(s,a),c=i("autorange",u)),c&&(r4e(i,c,s),(o==="linear"||o==="-")&&i("rangemode")),r.cleanRange()}});var AU=X((qet,wU)=>{var i4e={left:0,top:0};wU.exports=a4e;function a4e(e,t,r){t=t||e.currentTarget||e.srcElement,Array.isArray(r)||(r=[0,0]);var i=e.clientX||0,a=e.clientY||0,n=n4e(t);return r[0]=i-n.left,r[1]=a-n.top,r}function n4e(e){return e===window||e===document||e===document.body?i4e:e.getBoundingClientRect()}});var sM=X((Oet,TU)=>{"use strict";var o4e=L7();function s4e(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch(r){e=!1}return e}TU.exports=o4e&&s4e()});var DU=X((Net,MU)=>{"use strict";MU.exports=function(t,r,i,a,n){var o=(t-i)/(a-i),s=o+r/(a-i),l=(o+s)/2;return n==="left"||n==="bottom"?o:n==="center"||n==="middle"?l:n==="right"||n==="top"?s:o<2/3-l?o:s>4/3-l?s:l}});var kU=X((Vet,EU)=>{"use strict";var SU=et(),l4e=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];EU.exports=function(t,r,i,a){return i==="left"?t=0:i==="center"?t=1:i==="right"?t=2:t=SU.constrain(Math.floor(t*3),0,2),a==="bottom"?r=0:a==="middle"?r=1:a==="top"?r=2:r=SU.constrain(Math.floor(r*3),0,2),l4e[r][t]}});var FU=X((Uet,CU)=>{"use strict";var u4e=Gv(),c4e=Rx(),h4e=zv().getGraphDiv,f4e=(vv(),ct(mv)),lM=CU.exports={};lM.wrapped=function(e,t,r){var n;e=h4e(e),e._fullLayout&&c4e.clear(e._fullLayout._uid+f4e.HOVERID);let i=e._hoverdata;lM.raw(e,t,r)&&e._hoverAnywhereActive&&(e._hoverAnywhereActive=!1,(n=e._fullLayout)!=null&&n.hoveranywhere&&(t!=null&&t.target)&&!i&&e.emit("plotly_unhover",{event:t,points:[]}))};lM.raw=function(t,r){var i=t._fullLayout,a=t._hoverdata;return r||(r={}),r.target&&!t._dragged&&u4e.triggerHandler(t,"plotly_beforehover",r)===!1?!1:(i._hoverlayer.selectAll("g").remove(),i._hoverlayer.selectAll("line").remove(),i._hoverlayer.selectAll("circle").remove(),t._hoverdata=void 0,r.target&&a&&t.emit("plotly_unhover",{event:r,points:a}),!0)}});var _l=X((Get,zU)=>{"use strict";var d4e=AU(),uM=R7(),p4e=sM(),m4e=et().removeElement,v4e=(vn(),ct(mn)),nd=zU.exports={};nd.align=DU();nd.getCursor=kU();var IU=FU();nd.unhover=IU.wrapped;nd.unhoverRaw=IU.raw;nd.init=function(t){var r=t.gd,i=1,a=r._context.doubleClickDelay,n=t.element,o,s,l,u,c,h,f,d;r._mouseDownTime||(r._mouseDownTime=0),n.style.pointerEvents="all",n.onmousedown=g,p4e?(n._ontouchstart&&n.removeEventListener("touchstart",n._ontouchstart),n._ontouchstart=g,n.addEventListener("touchstart",g,{passive:!1})):n.ontouchstart=g;function p(w,_,A){return Math.abs(w)a&&(i=Math.max(i-1,1)),r._dragged)t.doneFn&&t.doneFn();else{var _;h.target===f?_=h:(_={target:f,srcElement:f,toElement:f},Object.keys(h).concat(Object.keys(h.__proto__)).forEach(A=>{var T=h[A];!_[A]&&typeof T!="function"&&(_[A]=T)})),t.clickFn&&t.clickFn(i,_),d||f.dispatchEvent(new MouseEvent("click",w))}r._dragging=!1,r._dragged=!1}};function LU(){var e=document.createElement("div");e.className="dragcover";var t=e.style;return t.position="fixed",t.left=0,t.right=0,t.top=0,t.bottom=0,t.zIndex=999999999,t.background="none",document.body.appendChild(e),e}nd.coverSlip=LU;function PU(e){return d4e(e.changedTouches?e.changedTouches[0]:e,document.body)}});var pf=X((jet,RU)=>{"use strict";RU.exports=function(t,r){(t.attr("class")||"").split(" ").forEach(function(i){i.indexOf("cursor-")===0&&t.classed(i,!1)}),r&&t.classed("cursor-"+r,!0)}});var OU=X(($et,qU)=>{"use strict";var cM=pf(),lg="data-savedcursor",BU="!!";qU.exports=function(t,r){var i=t.attr(lg);if(r){if(!i){for(var a=(t.attr("class")||"").split(" "),n=0;n{"use strict";var hM=to(),g4e=ec();NU.exports={_isSubplotObj:!0,visible:{valType:"boolean",dflt:!0,editType:"legend"},bgcolor:{valType:"color",editType:"legend"},bordercolor:{valType:"color",dflt:g4e.defaultLine,editType:"legend"},maxheight:{valType:"number",min:0,editType:"legend"},borderwidth:{valType:"number",min:0,dflt:0,editType:"legend"},font:hM({editType:"legend"}),grouptitlefont:hM({editType:"legend"}),orientation:{valType:"enumerated",values:["v","h"],dflt:"v",editType:"legend"},traceorder:{valType:"flaglist",flags:["reversed","grouped"],extras:["normal"],editType:"legend"},tracegroupgap:{valType:"number",min:0,dflt:10,editType:"legend"},entrywidth:{valType:"number",min:0,editType:"legend"},entrywidthmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels",editType:"legend"},indentation:{valType:"number",min:-15,dflt:0,editType:"legend"},itemsizing:{valType:"enumerated",values:["trace","constant"],dflt:"trace",editType:"legend"},itemwidth:{valType:"number",min:30,dflt:30,editType:"legend"},itemclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggle",editType:"legend"},itemdoubleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggleothers",editType:"legend"},groupclick:{valType:"enumerated",values:["toggleitem","togglegroup"],dflt:"togglegroup",editType:"legend"},groupdoubleclick:{valType:"enumerated",values:["toggleitem","togglegroup"],editType:"legend"},titleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],editType:"legend"},titledoubleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],editType:"legend"},x:{valType:"number",editType:"legend"},xref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"legend"},y:{valType:"number",editType:"legend"},yref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],editType:"legend"},uirevision:{valType:"any",editType:"none"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"legend"},title:{text:{valType:"string",dflt:"",editType:"legend"},font:hM({editType:"legend"}),side:{valType:"enumerated",values:["top","left","top left","top center","top right"],editType:"legend"},editType:"legend"},editType:"legend"}});var cg=X(ug=>{"use strict";ug.isGrouped=function(t){return(t.traceorder||"").indexOf("grouped")!==-1};ug.isVertical=function(t){return t.orientation!=="h"};ug.isReversed=function(t){return(t.traceorder||"").indexOf("reversed")!==-1};ug.getId=function(t){return t._id||"legend"}});var pM=X((Yet,VU)=>{"use strict";var zb=mr(),qs=et(),y4e=Bi(),_4e=Go(),x4e=fM(),b4e=Yp(),dM=cg();function w4e(e,t,r,i,a){var n=t[e]||{},o=y4e.newContainer(r,e);function s(Z,W){return qs.coerce(n,o,x4e,Z,W)}var l=qs.coerceFont(s,"font",r.font);s("bgcolor",r.paper_bgcolor),s("bordercolor");var u=s("visible");if(!u)return;var c,h=function(Z,W){var le=c._input,pe=c;return qs.coerce(le,pe,_4e,Z,W)},f=r.font||{},d=qs.coerceFont(s,"grouptitlefont",f,{overrideDflt:{size:Math.round(f.size*1.1)}}),p=0,m=!1,g="normal",y=(r.shapes||[]).filter(function(Z){return Z.showlegend});function x(Z){return zb.traceIs(Z,"pie-like")&&Z._length!=null&&(Array.isArray(Z.legend)||Array.isArray(Z.showlegend))}i.filter(x).forEach(function(Z){Z.visible&&p++;for(var W=0;WZ.legend.length)for(var pe=Z.legend.length;pe(e==="legend"?1:0));if(T===!1&&(r[e]=void 0),T===!1&&!n.uirevision||(s("uirevision",r.uirevision),T===!1))return;s("borderwidth");var M=s("orientation"),S=s("yref"),k=s("xref"),P=M==="h",I=S==="paper",B=k==="paper",L,z,O,V="left";P?(L=0,zb.getComponentMethod("rangeslider","isVisible")(t.xaxis)?I?(z=1.1,O="bottom"):(z=1,O="top"):I?(z=-.1,O="top"):(z=0,O="bottom")):(z=1,O="auto",B?L=1.02:(L=1,V="right")),qs.coerce(n,o,{x:{valType:"number",editType:"legend",min:B?-2:0,max:B?3:1,dflt:L}},"x"),qs.coerce(n,o,{y:{valType:"number",editType:"legend",min:I?-2:0,max:I?3:1,dflt:z}},"y"),s("traceorder",g),dM.isGrouped(r[e])&&s("tracegroupgap"),s("entrywidth"),s("entrywidthmode"),s("indentation"),s("itemsizing"),s("itemwidth"),s("itemclick"),s("itemdoubleclick");let $=s("groupclick");s("groupdoubleclick",$),s("xanchor",V),s("yanchor",O),s("maxheight"),s("valign"),qs.noneOrAll(n,o,["x","y"]);var j=s("title.text");if(j){s("title.side",P?"left":"top");var H=qs.extendFlat({},l,{size:qs.bigFont(l.size)});qs.coerceFont(s,"title.font",H);let Z=a>1;s("titleclick",Z?"toggle":!1),s("titledoubleclick",Z?"toggleothers":!1)}}VU.exports=function(t,r,i){var a,n=i.slice(),o=r.shapes;if(o)for(a=0;a{"use strict";var mf=mr(),mM=et(),A4e=mM.pushUnique,T4e=cg(),UU=!0;vM.handleItemClick=function(t,r,i,a,n){var o=r._fullLayout;if(r._dragged||r._editing)return;var s=t.data()[0][0];if(s.groupTitle&&s.noClick)return;let l=n===2?i.groupdoubleclick:i.groupclick;a==="toggle"&&i.itemdoubleclick==="toggleothers"&&UU&&r.data&&r._context.showTips&&(mM.notifier(mM._(r,"Double-click on legend to isolate one trace"),"long",r),UU=!1);var u=l==="togglegroup",c=o.hiddenlabels?o.hiddenlabels.slice():[],h=r._fullData;let f=(o.shapes||[]).filter(Oe=>Oe.showlegend||Oe.legendgroup);var d=h.concat(f),p=s.trace;p._isShape&&(p=o.shapes[p.index]);var m=p.legendgroup,g,y,x,w,_,A,T={},M=[],S=[],k=[];function P(Oe,qe){var se=M.indexOf(Oe),je=T.visible;return je||(je=T.visible=[]),M.indexOf(Oe)===-1&&(M.push(Oe),se=M.length-1),je[se]=qe,se}var I=(o.shapes||[]).map(function(Oe){return Oe._input}),B=!1;function L(Oe,qe){I[Oe].visible=qe,B=!0}function z(Oe,qe){if(!(s.groupTitle&&!u)){var se=Oe._isShape,je=Oe.index;je===void 0&&(je=Oe._index);var Re=Oe.visible===!1?!1:qe;se?L(je,Re):P(je,Re)}}var O=p.legend;if(!p._isShape&&mf.traceIs(p,"pie-like")){var V=s.label,$=c.indexOf(V);if(a==="toggle")$===-1?c.push(V):c.splice($,1);else if(a==="toggleothers"){var j=$!==-1,H=[];for(g=0;gy.showlegend||y.legendgroup),l=n.concat(s);function u(y){return(y.legend||"legend")===o}var c,h;if(i==="toggle")c=!l.some(function(x){return u(x)&&x.visible===!0}),h=!1;else{let y=l.some(function(x){return!u(x)&&x.visible===!0&&x.showlegend!==!1});c=!0,h=!y}let f={visible:[]},d=[],p=(a.shapes||[]).map(function(y){return y._input});for(var m=!1,g=0;gF4e,scrollBarColor:()=>S4e,scrollBarEnterAttrs:()=>k4e,scrollBarMargin:()=>E4e,scrollBarMinHeight:()=>D4e,scrollBarWidth:()=>M4e,titlePad:()=>C4e});var M4e,D4e,S4e,E4e,k4e,C4e,F4e,_M=Vi(()=>{"use strict";M4e=6,D4e=20,S4e="#808BA4",E4e=4,k4e={rx:20,ry:3,width:0,height:0},C4e=2,F4e=5});var $U=X((Xet,jU)=>{"use strict";var{isArrayOrTypedArray:xM}=os(),GU=mr(),bM=cg();jU.exports=function(t,r,i){var a=r._inHover,n=bM.isGrouped(r),o=bM.isReversed(r),s={},l=[],u=!1,c={},h=0,f=0,d,p;function m(Z,W,le){if(r.visible!==!1&&!(i&&Z!==r._id))if(W===""||!bM.isGrouped(r)){var pe="~~i"+h;l.push(pe),s[pe]=[le],h++}else l.indexOf(W)===-1?(l.push(W),u=!0,s[W]=[le]):s[W].push(le)}for(d=0;dL&&(I=L)}k[d][0]._groupMinRank=I,k[d][0]._preGroupSort=d}var z=function(Z,W){return Z[0]._groupMinRank-W[0]._groupMinRank||Z[0]._preGroupSort-W[0]._preGroupSort},O=function(Z,W){var le=xM(Z.trace.legendrank)?Z.trace.legendrank[Z.i]:Z.trace.legendrank,pe=xM(W.trace.legendrank)?W.trace.legendrank[W.i]:W.trace.legendrank;return le-pe||Z._preSort-W._preSort};for(k.forEach(function(Z,W){Z[0]._preGroupSort=W}),k.sort(z),d=0;d{"use strict";var Rb=et();function HU(e){return e.indexOf("e")!==-1?e.replace(/[.]?0+e/,"e"):e.indexOf(".")!==-1?e.replace(/[.]?0+$/,""):e}od.formatPiePercent=function(t,r){var i=HU((t*100).toPrecision(3));return Rb.numSeparate(i,r)+"%"};od.formatPieValue=function(t,r){var i=HU(t.toPrecision(10));return Rb.numSeparate(i,r)};od.getFirstFilled=function(t,r){if(Rb.isArrayOrTypedArray(t))for(var i=0;i{"use strict";var P4e=xi(),I4e=qr();ZU.exports=function(t,r,i,a){var n=i.marker.pattern;n&&n.shape?P4e.pointStyle(t,i,a,r):I4e.fill(t,r.color)}});var JU=X((Qet,KU)=>{"use strict";var WU=qr(),XU=wM().castOption,L4e=YU();KU.exports=function(t,r,i,a){var n=i.marker.line,o=XU(n.color,r.pts)||WU.defaultLine,s=XU(n.width,r.pts)||0;t.call(L4e,r,i,a).style("stroke-width",s).call(WU.stroke,o)}});var DM=X((ett,aG)=>{"use strict";var To=Wr(),AM=mr(),no=et(),QU=no.strTranslate,Os=xi(),xl=qr(),TM=ic().extractOpts,Bb=wo(),z4e=JU(),R4e=wM().castOption,B4e=(_M(),ct(yM)),eG=12,tG=5,sd=2,q4e=10,y1=5;aG.exports=function(t,r,i){var a=r._fullLayout;i||(i=a.legend);var n=i.itemsizing==="constant",o=i.itemwidth,s=(o+B4e.itemGap*2)/2,l=QU(s,0),u=function(M,S,k,P){var I;if(M+1)I=M;else if(S&&S.width>0)I=S.width;else return 0;return n?P:Math.min(I,k)};t.each(function(M){var S=To.select(this),k=no.ensureSingle(S,"g","layers");k.style("opacity",M[0].trace.opacity);var P=i.indentation,I=i.valign,B=M[0].lineHeight,L=M[0].height;if(I==="middle"&&P===0||!B||!L)k.attr("transform",null);else{var z={top:1,bottom:-1}[I],O=z*(.5*(B-L+3))||0,V=i.indentation;k.attr("transform",QU(V,O))}var $=k.selectAll("g.legendfill").data([M]);$.enter().append("g").classed("legendfill",!0);var j=k.selectAll("g.legendlines").data([M]);j.enter().append("g").classed("legendlines",!0);var H=k.selectAll("g.legendsymbols").data([M]);H.enter().append("g").classed("legendsymbols",!0),H.selectAll("g.legendpoints").data([M]).enter().append("g").classed("legendpoints",!0)}).each(T).each(f).each(p).each(d).each(g).each(_).each(w).each(c).each(h).each(y).each(x);function c(M){var S=rG(M),k=S.showFill,P=S.showLine,I=S.showGradientLine,B=S.showGradientFill,L=S.anyFill,z=S.anyLine,O=M[0],V=O.trace,$,j,H=TM(V),Z=H.colorscale,W=H.reversescale,le=function(ae){if(ae.size())if(k)Os.fillGroupStyle(ae,r,!0);else{var ye="legendfill-"+V.uid;Os.gradient(ae,r,ye,MM(W),Z,"fill")}},pe=function(ae){if(ae.size()){var ye="legendline-"+V.uid;Os.lineGroupStyle(ae),Os.gradient(ae,r,ye,MM(W),Z,"stroke")}},_e=Bb.hasMarkers(V)||!L?"M5,0":z?"M5,-2":"M5,-3",De=To.select(this),de=De.select(".legendfill").selectAll("path").data(k||B?[M]:[]);if(de.enter().append("path").classed("js-fill",!0),de.exit().remove(),de.attr("d",_e+"h"+o+"v6h-"+o+"z").call(le),P||I){var Ce=u(void 0,V.line,q4e,tG);j=no.minExtend(V,{line:{width:Ce}}),$=[no.minExtend(O,{trace:j})]}var Q=De.select(".legendlines").selectAll("path").data(P||I?[$]:[]);Q.enter().append("path").classed("js-line",!0),Q.exit().remove(),Q.attr("d",_e+(I?"l"+o+",0.0001":"h"+o)).call(P?Os.lineGroupStyle:pe)}function h(M){var S=rG(M),k=S.anyFill,P=S.anyLine,I=S.showLine,B=S.showMarker,L=M[0],z=L.trace,O=!B&&!P&&!k&&Bb.hasText(z),V,$;function j(Ce,Q,ae,ye){var te=no.nestedProperty(z,Ce).get(),re=no.isArrayOrTypedArray(te)&&Q?Q(te):te;if(n&&re&&ye!==void 0&&(re=ye),ae){if(reae[1])return ae[1]}return re}function H(Ce){return L._distinct&&L.index&&Ce[L.index]?Ce[L.index]:Ce[0]}if(B||O||I){var Z={},W={};if(B){Z.mc=j("marker.color",H);var le=z.type==="scattermap";Z.mx=le?"circle":j("marker.symbol",H),Z.mo=j("marker.opacity",no.mean,[.2,1]),Z.mlc=j("marker.line.color",H),Z.mlw=j("marker.line.width",no.mean,[0,5],sd),Z.mld=j("marker.line.dash",H),W.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var pe=j("marker.size",no.mean,[2,16],eG);Z.ms=pe,W.marker.size=pe}I&&(W.line={width:j("line.width",H,[0,10],tG)}),O&&(Z.tx="Aa",Z.tp=j("textposition",H),Z.ts=10,Z.tc=j("textfont.color",H),Z.tf=j("textfont.family",H),Z.tw=j("textfont.weight",H),Z.ty=j("textfont.style",H),Z.tv=j("textfont.variant",H),Z.tC=j("textfont.textcase",H),Z.tE=j("textfont.lineposition",H),Z.tS=j("textfont.shadow",H)),V=[no.minExtend(L,Z)],$=no.minExtend(z,W),$.selectedpoints=null,$.texttemplate=null}var _e=To.select(this).select("g.legendpoints"),De=_e.selectAll("path.scatterpts").data(B?V:[]);De.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",l),De.exit().remove(),De.call(Os.pointStyle,$,r),B&&(V[0].mrc=3);var de=_e.selectAll("g.pointtext").data(O?V:[]);de.enter().append("g").classed("pointtext",!0).append("text").attr("transform",l),de.exit().remove(),de.selectAll("text").call(Os.textPointStyle,$,r)}function f(M){var S=M[0].trace,k=S.type==="waterfall";if(M[0]._distinct&&k){var P=M[0].trace[M[0].dir].marker;return M[0].mc=P.color,M[0].mlw=P.line.width,M[0].mlc=P.line.color,m(M,this,"waterfall")}var I=[];S.visible&&k&&(I=M[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 B=To.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data(I);B.enter().append("path").classed("legendwaterfall",!0).attr("transform",l).style("stroke-miterlimit",1),B.exit().remove(),B.each(function(L){var z=To.select(this),O=S[L[0]].marker,V=u(void 0,O.line,y1,sd);z.attr("d",L[1]).style("stroke-width",V+"px").call(xl.fill,O.color),V&&z.call(xl.stroke,O.line.color)})}function d(M){m(M,this)}function p(M){m(M,this,"funnel")}function m(M,S,k){var P=M[0].trace,I=P.marker||{},B=I.line||{},L=I.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=k?P.visible&&P.type===k:AM.traceIs(P,"bar"),O=To.select(S).select("g.legendpoints").selectAll("path.legend"+k).data(z?[M]:[]);O.enter().append("path").classed("legend"+k,!0).attr("d",L).attr("transform",l),O.exit().remove(),O.each(function(V){var $=To.select(this),j=V[0],H=u(j.mlw,I.line,y1,sd);$.style("stroke-width",H+"px");var Z=j.mcc;if(!i._inHover&&"mc"in j){var W=TM(I),le=W.mid;le===void 0&&(le=(W.max+W.min)/2),Z=Os.tryColorscale(I,"")(le)}var pe=Z||j.mc||I.color,_e=I.pattern,De=Os.getPatternAttr,de=_e&&(De(_e.shape,0,"")||De(_e.path,0,""));if(de){var Ce=De(_e.bgcolor,0,null),Q=De(_e.fgcolor,0,null),ae=_e.fgopacity,ye=iG(_e.size,8,10),te=iG(_e.solidity,.5,1),re="legend-"+P.uid;$.call(Os.pattern,"legend",r,re,de,ye,te,Z,_e.fillmode,Ce,Q,ae)}else $.call(xl.fill,pe);H&&xl.stroke($,j.mlc||B.color)})}function g(M){var S=M[0].trace,k=To.select(this).select("g.legendpoints").selectAll("path.legendbox").data(S.visible&&AM.traceIs(S,"box-violin")?[M]:[]);k.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform",l),k.exit().remove(),k.each(function(){var P=To.select(this);if((S.boxpoints==="all"||S.points==="all")&&xl.opacity(S.fillcolor)===0&&xl.opacity((S.line||{}).color)===0){var I=no.minExtend(S,{marker:{size:n?eG:no.constrain(S.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});k.call(Os.pointStyle,I,r)}else{var B=u(void 0,S.line,y1,sd);P.style("stroke-width",B+"px").call(xl.fill,S.fillcolor),B&&xl.stroke(P,S.line.color)}})}function y(M){var S=M[0].trace,k=To.select(this).select("g.legendpoints").selectAll("path.legendcandle").data(S.visible&&S.type==="candlestick"?[M,M]:[]);k.enter().append("path").classed("legendcandle",!0).attr("d",function(P,I){return I?"M-15,0H-8M-8,6V-6H8Z":"M15,0H8M8,-6V6H-8Z"}).attr("transform",l).style("stroke-miterlimit",1),k.exit().remove(),k.each(function(P,I){var B=To.select(this),L=S[I?"increasing":"decreasing"],z=u(void 0,L.line,y1,sd);B.style("stroke-width",z+"px").call(xl.fill,L.fillcolor),z&&xl.stroke(B,L.line.color)})}function x(M){var S=M[0].trace,k=To.select(this).select("g.legendpoints").selectAll("path.legendohlc").data(S.visible&&S.type==="ohlc"?[M,M]:[]);k.enter().append("path").classed("legendohlc",!0).attr("d",function(P,I){return I?"M-15,0H0M-8,-6V0":"M15,0H0M8,6V0"}).attr("transform",l).style("stroke-miterlimit",1),k.exit().remove(),k.each(function(P,I){var B=To.select(this),L=S[I?"increasing":"decreasing"],z=u(void 0,L.line,y1,sd);B.style("fill","none").call(Os.dashLine,L.line.dash,z),z&&xl.stroke(B,L.line.color)})}function w(M){A(M,this,"pie")}function _(M){A(M,this,"funnelarea")}function A(M,S,k){var P=M[0],I=P.trace,B=k?I.visible&&I.type===k:AM.traceIs(I,k),L=To.select(S).select("g.legendpoints").selectAll("path.legend"+k).data(B?[M]:[]);if(L.enter().append("path").classed("legend"+k,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",l),L.exit().remove(),L.size()){var z=I.marker||{},O=u(R4e(z.line.width,P.pts),z.line,y1,sd),V="pieLike",$=no.minExtend(I,{marker:{line:{width:O}}},V),j=no.minExtend(P,{trace:$},V);z4e(L,j,$,r)}}function T(M){var S=M[0].trace,k,P=[];if(S.visible)switch(S.type){case"histogram2d":case"heatmap":P=[["M-15,-2V4H15V-2Z"]],k=!0;break;case"choropleth":case"choroplethmap":P=[["M-6,-6V6H6V-6Z"]],k=!0;break;case"densitymap":P=[["M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"]],k="radial";break;case"cone":P=[["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"]],k=!1;break;case"streamtube":P=[["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"]],k=!1;break;case"surface":P=[["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"]],k=!0;break;case"mesh3d":P=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],k=!1;break;case"volume":P=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],k=!0;break;case"isosurface":P=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6 A12,24 0 0,0 6,-6 L0,6Z"]],k=!1;break}var I=To.select(this).select("g.legendpoints").selectAll("path.legend3dandfriends").data(P);I.enter().append("path").classed("legend3dandfriends",!0).attr("transform",l).style("stroke-miterlimit",1),I.exit().remove(),I.each(function(B,L){var z=To.select(this),O=TM(S),V=O.colorscale,$=O.reversescale,j=function(le){if(le.size()){var pe="legendfill-"+S.uid;Os.gradient(le,r,pe,MM($,k==="radial"),V,"fill")}},H;if(V){if(!k){var W=V.length;H=L===0?V[$?W-1:0][1]:L===1?V[$?0:W-1][1]:V[Math.floor((W-1)/2)][1]}}else{var Z=S.vertexcolor||S.facecolor||S.color;H=no.isArrayOrTypedArray(Z)?Z[L]||Z[0]:Z}z.attr("d",B[0]),H?z.call(xl.fill,H):z.call(j)})}};function MM(e,t){var r=t?"radial":"horizontal";return r+(e?"":"reversed")}function rG(e){var t=e[0].trace,r=t.contours,i=Bb.hasLines(t)||t.visible&&t.type==="quiver",a=Bb.hasMarkers(t),n=t.visible&&t.fill&&t.fill!=="none",o=!1,s=!1;if(r){var l=r.coloring;l==="lines"?o=!0:i=l==="none"||l==="heatmap"||r.showlines,r.type==="constraint"?n=r._operation!=="=":(l==="fill"||l==="heatmap")&&(s=!0)}return{showMarker:a,showLine:i,showFill:n,showGradientLine:o,showGradientFill:s,anyLine:i||o,anyFill:n||s}}function iG(e,t,r){return e&&no.isArrayOrTypedArray(e)?t:e>r?r:e}});var CM=X((ttt,dG)=>{"use strict";var jo=Wr(),Ra=et(),EM=gn(),ld=mr(),Nb=Gv(),SM=_l(),Ba=xi(),hg=qr(),ud=sn(),nG=gM().handleItemClick,oG=gM().handleTitleClick,Ua=(_M(),ct(yM)),kM=(ao(),ct(io)),hG=kM.LINE_SPACING,x1=kM.FROM_TL,sG=kM.FROM_BR,lG=$U(),O4e=DM(),b1=cg(),_1=1,N4e=/^legend[0-9]*$/;dG.exports=function(t,r){if(r)uG(t,r);else{var i=t._fullLayout,a=i._legends,n=i._infolayer.selectAll('[class^="legend"]');n.each(function(){var u=jo.select(this),c=u.attr("class"),h=c.split(" ")[0];h.match(N4e)&&a.indexOf(h)===-1&&u.remove()});for(var o=0;o1)}var p=i.hiddenlabels||[];if(!s&&(!i.showlegend||!l.length))return o.selectAll("."+a).remove(),i._topdefs.select("#"+n).remove(),EM.autoMargin(e,a);var m=Ra.ensureSingle(o,"g",a,function(S){s||S.attr("pointer-events","all")}),g=Ra.ensureSingleById(i._topdefs,"clipPath",n,function(S){S.append("rect")}),y=Ra.ensureSingle(m,"rect","bg",function(S){S.attr("shape-rendering","crispEdges")});y.call(hg.stroke,r.bordercolor).call(hg.fill,r.bgcolor).style("stroke-width",r.borderwidth+"px");var x=Ra.ensureSingle(m,"g","scrollbox"),w=r.title;r._titleWidth=0,r._titleHeight=0;var _;w.text?(_=Ra.ensureSingle(x,"text",a+"titletext"),_.attr("text-anchor","start").call(Ba.font,w.font).text(w.text),Ob(_,x,e,r,_1),!s&&(r.titleclick||r.titledoubleclick)&&j4e(x,e,r,a)):(x.selectAll("."+a+"titletext").remove(),x.selectAll("."+a+"titletoggle").remove());var A=Ra.ensureSingle(m,"rect","scrollbar",function(S){S.attr(Ua.scrollBarEnterAttrs).call(hg.fill,Ua.scrollBarColor)}),T=x.selectAll("g.groups").data(l);T.enter().append("g").attr("class","groups"),T.exit().remove();var M=T.selectAll("g.traces").data(Ra.identity);M.enter().append("g").attr("class","traces"),M.exit().remove(),M.style("opacity",function(S){let k=S[0],P=k.trace;if(k.groupTitle){let I=P.legendgroup,B=(i.shapes||[]).filter(function(z){return z.showlegend});return e._fullData.concat(B).some(function(z){return z.legendgroup===I&&(z.legend||"legend")===a&&z.visible===!0})?1:.5}return ld.traceIs(P,"pie-like")?p.indexOf(S[0].label)!==-1?.5:1:P.visible==="legendonly"?.5:1}).each(function(){jo.select(this).call(U4e,e,r)}).call(O4e,e,r).each(function(S){s||S[0].groupTitle&&r.groupclick==="toggleitem"||jo.select(this).call(G4e,e,a)}),Ra.syncOrAsync([EM.previousPromises,function(){return Z4e(e,T,M,r,x)},function(){var S=i._size,k=r.borderwidth,P=r.xref==="paper",I=r.yref==="paper";if(w.text){let ze=(i.shapes||[]).filter(function(ke){return ke.showlegend}),He=e._fullData.concat(ze).some(function(ke){let Oe=ke.legend||"legend";var qe=Array.isArray(Oe)?Oe.includes(a):Oe===a;return qe&&ke.visible===!0});_.style("opacity",He?1:.5)}if(!s){var B,L;P?B=S.l+S.w*r.x-x1[Vb(r)]*r._width:B=i.width*r.x-x1[Vb(r)]*r._width,I?L=S.t+S.h*(1-r.y)-x1[Ub(r)]*r._effHeight:L=i.height*(1-r.y)-x1[Ub(r)]*r._effHeight;var z=Y4e(e,a,B,L);if(z)return;if(i.margin.autoexpand){var O=B,V=L;B=P?Ra.constrain(B,0,i.width-r._width):O,L=I?Ra.constrain(L,0,i.height-r._effHeight):V,B!==O&&Ra.log("Constrain "+a+".x to make legend fit inside graph"),L!==V&&Ra.log("Constrain "+a+".y to make legend fit inside graph")}Ba.setTranslate(m,B,L)}if(A.on(".drag",null),m.on("wheel",null),s||r._height<=r._maxHeight||e._context.staticPlot){var $=r._effHeight;s&&($=r._height),y.attr({width:r._width-k,height:$-k,x:k/2,y:k/2}),Ba.setTranslate(x,0,0),g.select("rect").attr({width:r._width-2*k,height:$-2*k,x:k,y:k}),Ba.setClipUrl(x,n,e),Ba.setRect(A,0,0,0,0),delete r._scrollY}else{var j=Math.max(Ua.scrollBarMinHeight,r._effHeight*r._effHeight/r._height),H=r._effHeight-j-2*Ua.scrollBarMargin,Z=r._height-r._effHeight,W=H/Z,le=Math.min(r._scrollY||0,Z);y.attr({width:r._width-2*k+Ua.scrollBarWidth+Ua.scrollBarMargin,height:r._effHeight-k,x:k/2,y:k/2}),g.select("rect").attr({width:r._width-2*k+Ua.scrollBarWidth+Ua.scrollBarMargin,height:r._effHeight-2*k,x:k,y:k+le}),Ba.setClipUrl(x,n,e),ye(le,j,W),m.on("wheel",function(){le=Ra.constrain(r._scrollY+jo.event.deltaY/Z*H,0,Z),ye(le,j,W),le!==0&&le!==Z&&jo.event.preventDefault()});var pe,_e,De,de=function(ze,He,ke){var Oe=(ke-He)/W+ze;return Ra.constrain(Oe,0,Z)},Ce=function(ze,He,ke){var Oe=(He-ke)/W+ze;return Ra.constrain(Oe,0,Z)},Q=jo.behavior.drag().on("dragstart",function(){var ze=jo.event.sourceEvent;ze.type==="touchstart"?pe=ze.changedTouches[0].clientY:pe=ze.clientY,De=le}).on("drag",function(){var ze=jo.event.sourceEvent;ze.buttons===2||ze.ctrlKey||(ze.type==="touchmove"?_e=ze.changedTouches[0].clientY:_e=ze.clientY,le=de(De,pe,_e),ye(le,j,W))});A.call(Q);var ae=jo.behavior.drag().on("dragstart",function(){var ze=jo.event.sourceEvent;ze.type==="touchstart"&&(pe=ze.changedTouches[0].clientY,De=le)}).on("drag",function(){var ze=jo.event.sourceEvent;ze.type==="touchmove"&&(_e=ze.changedTouches[0].clientY,le=Ce(De,pe,_e),ye(le,j,W))});x.call(ae)}function ye(ze,He,ke){r._scrollY=e._fullLayout[a]._scrollY=ze,Ba.setTranslate(x,0,-ze),Ba.setRect(A,r._width,Ua.scrollBarMargin+ze*ke,Ua.scrollBarWidth,He),g.select("rect").attr("y",k+ze)}if(e._context.edits.legendPosition){var te,re,ce,me;m.classed("cursor-move",!0),SM.init({element:m.node(),gd:e,prepFn:function(ze){if(ze.target!==A.node()){var He=Ba.getTranslate(m);ce=He.x,me=He.y}},moveFn:function(ze,He){if(ce!==void 0&&me!==void 0){var ke=ce+ze,Oe=me+He;Ba.setTranslate(m,ke,Oe),te=SM.align(ke,r._width,S.l,S.l+S.w,r.xanchor),re=SM.align(Oe+r._height,-r._height,S.t+S.h,S.t,r.yanchor)}},doneFn:function(){if(te!==void 0&&re!==void 0){var ze={};ze[a+".x"]=te,ze[a+".y"]=re,ld.call("_guiRelayout",e,ze)}},clickFn:function(ze,He){var ke=o.selectAll("g.traces").filter(function(){var Oe=this.getBoundingClientRect();return He.clientX>=Oe.left&&He.clientX<=Oe.right&&He.clientY>=Oe.top&&He.clientY<=Oe.bottom});ke.size()>0&&fG(e,r,ke,ze,He)}})}}],e)}}function qb(e,t,r){var i=e[0],a=i.width,n=t.entrywidthmode,o=i.trace.legendwidth||t.entrywidth;return n==="fraction"?t._maxWidth*o:r+(o||a)}function fG(e,t,r,i,a){var n=e._fullLayout,o=r.data()[0][0].trace,s=t.itemclick,l=t.itemdoubleclick,u={event:a,node:r.node(),curveNumber:o.index,expandedIndex:o.index,data:e.data,layout:e.layout,frames:e._transitionData._frames,config:e._context,fullData:e._fullData,fullLayout:n};o._group&&(u.group=o._group),ld.traceIs(o,"pie-like")&&(u.label=r.datum()[0].label);var c=Nb.triggerHandler(e,"plotly_legendclick",u);if(i===1){if(c===!1)return;t._clickTimeout=setTimeout(function(){e._fullLayout&&s&&nG(r,e,t,s,i)},e._context.doubleClickDelay)}else if(i===2){t._clickTimeout&&clearTimeout(t._clickTimeout),e._legendMouseDownTime=0;var h=Nb.triggerHandler(e,"plotly_legenddoubleclick",u);h!==!1&&c!==!1&&l&&nG(r,e,t,l,i)}}function U4e(e,t,r){var i=b1.getId(r),a=e.data()[0][0],n=a.trace,o=ld.traceIs(n,"pie-like"),s=!r._inHover&&t._context.edits.legendText&&!o,l=r._maxNameLength,u,c;a.groupTitle?(u=a.groupTitle.text,c=a.groupTitle.font):(c=r.font,r.entries?u=a.text:(u=o?a.label:n.name,n._meta&&(u=Ra.templateString(u,n._meta))));var h=Ra.ensureSingle(e,"text",i+"text");h.attr("text-anchor","start").call(Ba.font,c).text(s?cG(u,l):u);var f=r.indentation+r.itemwidth+Ua.itemGap*2;ud.positionText(h,f,0),s?h.call(ud.makeEditable,{gd:t,text:u}).call(Ob,e,t,r).on("edit",function(d){this.text(cG(d,l)).call(Ob,e,t,r);var p={};return p.name=d,a.trace._isShape?ld.call("_guiRelayout",t,"shapes["+n.index+"].name",p.name):ld.call("_guiRestyle",t,p,n.index)}):Ob(h,e,t,r)}function cG(e,t){var r=Math.max(4,t);if(e&&e.trim().length>=r/2)return e;e=e||"";for(var i=r-e.length;i>0;i--)e+=" ";return e}function G4e(e,t,r){var i=t._context.doubleClickDelay,a,n=1,o=Ra.ensureSingle(e,"rect",r+"toggle",function(s){t._context.staticPlot||s.style("cursor","pointer").attr("pointer-events","all"),s.call(hg.fill,"rgba(0,0,0,0)")});t._context.staticPlot||(o.on("mousedown",function(){a=new Date().getTime(),a-t._legendMouseDownTimei&&(n=Math.max(n-1,1)),fG(t,s,e,n,jo.event)}}))}function j4e(e,t,r,i){if(t._fullData.some(function(u){let c=u.legend||"legend";return(Array.isArray(c)?c.includes(i):c===i)&&ld.traceIs(u,"pie-like")}))return;let n=t._context.doubleClickDelay;var o,s=1;let l=Ra.ensureSingle(e,"rect",i+"titletoggle",function(u){t._context.staticPlot||u.style("cursor","pointer").attr("pointer-events","all"),u.call(hg.fill,"rgba(0,0,0,0)")});t._context.staticPlot||(l.on("mousedown",function(){o=new Date().getTime(),o-t._legendMouseDownTimen&&(s=Math.max(s-1,1));let u={event:jo.event,legendId:i,data:t.data,layout:t.layout,fullData:t._fullData,fullLayout:t._fullLayout};if(s===1&&r.titleclick){if(Nb.triggerHandler(t,"plotly_legendtitleclick",u)===!1)return;r._titleClickTimeout=setTimeout(function(){t._fullLayout&&oG(t,r,r.titleclick)},n)}else s===2&&(r._titleClickTimeout&&clearTimeout(r._titleClickTimeout),t._legendMouseDownTime=0,Nb.triggerHandler(t,"plotly_legendtitledoubleclick",u)!==!1&&r.titledoubleclick&&oG(t,r,r.titledoubleclick))}))}function Ob(e,t,r,i,a){i._inHover&&e.attr("data-notex",!0),ud.convertToTspans(e,r,function(){$4e(t,r,i,a)})}function $4e(e,t,r,i){var a=e.data()[0][0],n=a&&a.trace.showlegend;if(Array.isArray(n)&&(n=n[a.i]!==!1),!r._inHover&&a&&!n){e.remove();return}var o=e.select("g[class*=math-group]"),s=o.node(),l=b1.getId(r);r||(r=t._fullLayout[l]);var u=r.borderwidth,c;i===_1?c=r.title.font:a.groupTitle?c=a.groupTitle.font:c=r.font;var h=c.size*hG,f,d;if(s){var p=Ba.bBox(s);f=p.height,d=p.width,i===_1?Ba.setTranslate(o,u,u+f*.75):Ba.setTranslate(o,0,f*.25)}else{var m="."+l+(i===_1?"title":"")+"text",g=e.select(m),y=ud.lineCount(g),x=g.node();if(f=h*y,d=x?Ba.bBox(x).width:0,i===_1)r.title.side==="left"&&(d+=Ua.itemGap*2),ud.positionText(g,u+Ua.titlePad,u+h);else{var w=Ua.itemGap*2+r.indentation+r.itemwidth;a.groupTitle&&(w=Ua.itemGap,d-=r.indentation+r.itemwidth),ud.positionText(g,w,-h*((y-1)/2-.3))}}i===_1?(r._titleWidth=d,r._titleHeight=f):(a.lineHeight=h,a.height=Math.max(f,16)+3,a.width=d)}function H4e(e){var t=0,r=0,i=e.title.side;return i&&(i.indexOf("left")!==-1&&(t=e._titleWidth),i.indexOf("top")!==-1&&(r=e._titleHeight)),[t,r]}function Z4e(e,t,r,i,a){var n=e._fullLayout,o=b1.getId(i);i||(i=n[o]);var s=n._size,l=b1.isVertical(i),u=b1.isGrouped(i),c=i.entrywidthmode==="fraction",h=i.borderwidth,f=2*h,d=Ua.itemGap,p=i.indentation+i.itemwidth+d*2,m=2*(h+d),g=Ub(i),y=i.y<0||i.y===0&&g==="top",x=i.y>1||i.y===1&&g==="bottom",w=i.tracegroupgap,_={};let{orientation:A,yref:T}=i,{maxheight:M}=i,S=y||x||A!=="v"||T!=="paper";M||(M=S?.5:1);let k=S?n.height:s.h;i._maxHeight=Math.max(M>1?M:M*k,30);var P=0;i._width=0,i._height=0;var I=H4e(i);if(l)r.each(function(ze){var He=ze[0].height;Ba.setTranslate(this,h+I[0],h+I[1]+i._height+He/2+d),i._height+=He,i._width=Math.max(i._width,ze[0].width)}),P=p+i._width,i._width+=d+p+f,i._height+=m,u&&(t.each(function(ze,He){Ba.setTranslate(this,0,He*i.tracegroupgap)}),i._height+=(i._lgroupsLength-1)*i.tracegroupgap);else{var B=Vb(i),L=i.x<0||i.x===0&&B==="right",z=i.x>1||i.x===1&&B==="left",O=x||y,V=n.width/2;i._maxWidth=Math.max(L?O&&B==="left"?s.l+s.w:V:z?O&&B==="right"?s.r+s.w:V:s.w,2*p);var $=0,j=0;r.each(function(ze){var He=qb(ze,i,p);$=Math.max($,He),j+=He}),P=null;var H=0;if(u){var Z=0,W=0,le=0;t.each(function(){var ze=0,He=0;jo.select(this).selectAll("g.traces").each(function(Oe){var qe=qb(Oe,i,p),se=Oe[0].height;Ba.setTranslate(this,I[0],I[1]+h+d+se/2+He),He+=se,ze=Math.max(ze,qe),_[Oe[0].trace.legendgroup]=ze});var ke=ze+d;W>0&&ke+h+W>i._maxWidth?(H=Math.max(H,W),W=0,le+=Z+w,Z=He):Z=Math.max(Z,He),Ba.setTranslate(this,W,le),W+=ke}),i._width=Math.max(H,W)+h,i._height=le+Z+m}else{var pe=r.size(),_e=j+f+(pe-1)*d=i._maxWidth&&(H=Math.max(H,Q),de=0,Ce+=De,i._height+=De,De=0),Ba.setTranslate(this,I[0]+h+de,I[1]+h+Ce+He/2+d),Q=de+ke+d,de+=Oe,De=Math.max(De,He)}),_e?(i._width=de+f,i._height=De+m):(i._width=Math.max(H,Q)+f,i._height+=De+m)}}i._width=Math.ceil(Math.max(i._width+I[0],i._titleWidth+2*(h+Ua.titlePad))),i._height=Math.ceil(Math.max(i._height+I[1],i._titleHeight+2*(h+Ua.itemGap))),i._effHeight=Math.min(i._height,i._maxHeight);var ae=e._context.edits,ye=ae.legendText||ae.legendPosition;r.each(function(ze){var He=jo.select(this).select("."+o+"toggle"),ke=ze[0].height,Oe=ze[0].trace.legendgroup,qe=qb(ze,i,p);u&&Oe!==""&&(qe=_[Oe]);var se=ye?p:P||qe;!l&&!c&&(se+=d/2),Ba.setRect(He,0,-ke/2,se,ke)});var te=a.select("."+o+"titletext");te.node()&&V4e(te,i,h);var re=a.select("."+o+"titletoggle");if(re.size()&&te.node()){var ce=te.attr("x")||0,me=Ua.titlePad;Ba.setRect(re,ce-me,h,i._titleWidth+2*me,i._titleHeight+2*me)}}function Y4e(e,t,r,i){var a=e._fullLayout,n=a[t],o=Vb(n),s=Ub(n),l=n.xref==="paper",u=n.yref==="paper";e._fullLayout._reservedMargin[t]={};var c=n.y<.5?"b":"t",h=n.x<.5?"l":"r",f={r:a.width-r,l:r+n._width,b:a.height-i,t:i+n._effHeight};if(l&&u)return EM.autoMargin(e,t,{x:n.x,y:n.y,l:n._width*x1[o],r:n._width*sG[o],b:n._effHeight*sG[s],t:n._effHeight*x1[s]});l?e._fullLayout._reservedMargin[t][c]=f[c]:u||n.orientation==="v"?e._fullLayout._reservedMargin[t][h]=f[h]:e._fullLayout._reservedMargin[t][c]=f[c]}function Vb(e){return Ra.isRightAnchor(e)?"right":Ra.isCenterAnchor(e)?"center":"left"}function Ub(e){return Ra.isBottomAnchor(e)?"bottom":Ra.isMiddleAnchor(e)?"middle":"top"}});var LM=X(IM=>{"use strict";var cd=Wr(),th=Br(),_a=et(),W4e=_a.pushUnique,FM=_a.strTranslate,X4e=_a.strRotate,K4e=Gv(),bl=sn(),J4e=OU(),hc=xi(),Ga=qr(),Gb=_l(),fc=ta(),Q4e=(vn(),ct(mn)).zindexSeparator,A1=mr(),Ns=nc(),hd=(vv(),ct(mv)),ewe=pM(),twe=CM(),bG=hd.YANGLE,PM=Math.PI*bG/180,rwe=1/Math.sin(PM),iwe=Math.cos(PM),awe=Math.sin(PM),ra=hd.HOVERARROWSIZE,Or=hd.HOVERTEXTPAD,pG={box:!0,ohlc:!0,violin:!0,candlestick:!0},nwe={scatter:!0,scattergl:!0,splom:!0};function mG(e,t){return e.distance-t.distance}IM.hover=function(t,r,i,a){t=_a.getGraphDiv(t);var n=r.target;_a.throttle(t._fullLayout._uid+hd.HOVERID,hd.HOVERMINTIME,function(){owe(t,r,i,a,n)})};IM.loneHover=function(t,r){var i=!0;Array.isArray(t)||(i=!1,t=[t]);var a=r.gd,n=DG(a),o=SG(a),s=t.map(function(g){var y=g._x0||g.x0||g.x||0,x=g._x1||g.x1||g.x||0,w=g._y0||g.y0||g.y||0,_=g._y1||g.y1||g.y||0,A=g.eventData;if(A){var T=Math.min(y,x),M=Math.max(y,x),S=Math.min(w,_),k=Math.max(w,_),P=g.trace;if(A1.traceIs(P,"gl3d")){var I=a._fullLayout[P.scene]._scene.container,B=I.offsetLeft,L=I.offsetTop;T+=B,M+=B,S+=L,k+=L}A.bbox={x0:T+o,x1:M+o,y0:S+n,y1:k+n},A.xPixel=(y+x)/2,A.yPixel=(w+_)/2,r.inOut_bbox&&r.inOut_bbox.push(A.bbox)}else A=!1;return{color:g.color||Ga.defaultLine,x0:g.x0||g.x||0,x1:g.x1||g.x||0,y0:g.y0||g.y||0,y1:g.y1||g.y||0,xLabel:g.xLabel,yLabel:g.yLabel,zLabel:g.zLabel,text:g.text,name:g.name,idealAlign:g.idealAlign,borderColor:g.borderColor,fontFamily:g.fontFamily,fontSize:g.fontSize,fontColor:g.fontColor,fontWeight:g.fontWeight,fontStyle:g.fontStyle,fontVariant:g.fontVariant,nameLength:g.nameLength,textAlign:g.textAlign,trace:g.trace||{index:0,hoverinfo:""},xa:{_offset:0},ya:{_offset:0},index:0,hovertemplate:g.hovertemplate||!1,hovertemplateLabels:g.hovertemplateLabels||!1,eventData:A}}),l=!1,u=AG(s,{gd:a,hovermode:"closest",rotateLabels:l,bgColor:r.bgColor||Ga.background,container:cd.select(r.container),outerContainer:r.outerContainer||r.container}),c=u.hoverLabels,h=5,f=0,d=0;c.sort(function(g,y){return g.y0-y.y0}).each(function(g,y){var x=g.y0-g.by/2;x-hM[0]._length||me<0||me>S[0]._length)return Gb.unhoverRaw(e,t)}if(t.pointerX=ce+M[0]._offset,t.pointerY=me+S[0]._offset,"xval"in t?V=Ns.flat(n,t.xval):V=Ns.p2c(M,ce),"yval"in t?$=Ns.flat(n,t.yval):$=Ns.p2c(S,me),e._hoverPointerX=t.pointerX,e._hoverPointerY=t.pointerY,!th(V[0])||!th($[0]))return _a.warn("Fx.hover failed",t,e),Gb.unhoverRaw(e,t)}s.clickanywhere&&(e._hoverXVals=V,e._hoverYVals=$,e._hoverXAxes=M,e._hoverYAxes=S);var ke=1/0;function Oe(Rt,fi){for(H=0;HQ&&(z.splice(0,Q),ke=z[0].distance),h&&L!==0&&z.length===0){Ce.distance=L,Ce.index=!1;var ei=W._module.hoverPoints(Ce,De,de,"closest",{hoverLayer:s._hoverlayer});if(ei&&(ei=ei.filter(function(Yi){return Yi.spikeDistance<=L})),ei&&ei.length){var Ht,va=ei.filter(function(Yi){return Yi.xa.showspikes&&Yi.xa.spikesnap!=="hovered data"});if(va.length){var ji=va[0];th(ji.x0)&&th(ji.y0)&&(Ht=se(ji),(!ae.vLinePoint||ae.vLinePoint.spikeDistance>Ht.spikeDistance)&&(ae.vLinePoint=Ht))}var ti=ei.filter(function(Yi){return Yi.ya.showspikes&&Yi.ya.spikesnap!=="hovered data"});if(ti.length){var Li=ti[0];th(Li.x0)&&th(Li.y0)&&(Ht=se(Li),(!ae.hLinePoint||ae.hLinePoint.spikeDistance>Ht.spikeDistance)&&(ae.hLinePoint=Ht))}}}}}Oe();function qe(Rt,fi,Zr){for(var Ti=null,Fi=1/0,Mi,ei=0;eiRt.trace.index===Me.trace.index):z=[Me];var We=z.length,lt=xG("x",Me,s),Qe=xG("y",Me,s);Oe(lt,Qe);var st=[],vt={},ut=0,Tt=function(Rt){var fi=pG[Rt.trace.type]?wG(Rt):Rt.trace.index;if(!vt[fi])ut++,vt[fi]=ut,st.push(Rt);else{var Zr=vt[fi]-1,Ti=st[Zr];Zr>0&&Math.abs(Rt.distance)We-1;Ze--)Tt(z[Ze]);z=st,ge()}var gt=e._hoverdata,rt=[],Ft=DG(e),Pt=SG(e);for(let Rt of z){var bt=Ns.makeEventData(Rt,Rt.trace,Rt.cd);if(Rt.hovertemplate!==!1){var zt=!1;Rt.cd[Rt.index]&&Rt.cd[Rt.index].ht&&(zt=Rt.cd[Rt.index].ht),Rt.hovertemplate=zt||Rt.trace.hovertemplate||!1}if(Rt.xa&&Rt.ya){var fe=Rt.x0+Rt.xa._offset,Se=Rt.x1+Rt.xa._offset,it=Rt.y0+Rt.ya._offset,nt=Rt.y1+Rt.ya._offset,Fr=Math.min(fe,Se),Kr=Math.max(fe,Se),si=Math.min(it,nt),Ni=Math.max(it,nt);bt.bbox={x0:Fr+Pt,x1:Kr+Pt,y0:si+Ft,y1:Ni+Ft},bt.xPixel=(fe+Se)/2,bt.yPixel=(it+nt)/2}Rt.eventData=[bt],rt.push(bt)}e._hoverdata=rt;var Pr=f==="y"&&(O.length>1||z.length>1)||f==="closest"&&ye&&z.length>1,Hr=Ga.combine(s.plot_bgcolor||Ga.background,s.paper_bgcolor),gi=AG(z,{gd:e,hovermode:f,rotateLabels:Pr,bgColor:Hr,container:s._hoverlayer,outerContainer:s._paper.node(),commonLabelOpts:s.hoverlabel,hoverdistance:s.hoverdistance}),hi=gi.hoverLabels;if(Ns.isUnifiedHover(f)||(lwe(hi,Pr,s,gi.commonLabelBoundingBox),MG(hi,Pr,s._invScaleX,s._invScaleY)),a&&a.tagName){var Ca=A1.getComponentMethod("annotations","hasClickToShow")(e,rt);J4e(cd.select(a),Ca?"pointer":"")}var Ja=hwe(e,t,gt);if(!a||i||!Ja&&!s.hoveranywhere)return;gt&&Ja&&e.emit("plotly_unhover",{event:t,points:gt}),Mn(e._hoverdata);function Mn(Rt){e.emit("plotly_hover",{event:t,points:Rt,xaxes:M,yaxes:S,xvals:Ns.c2dApply(M,V),yvals:Ns.c2dApply(S,$),xPixel:t.pointerX,yPixel:t.pointerY})}}function wG(e){return[e.trace.index,e.index,e.x0,e.y0,e.name,e.attr,e.xa?e.xa._id:"",e.ya?e.ya._id:""].join(",")}var swe=/([\s\S]*)<\/extra>/;function AG(e,t){var r=t.gd,i=r._fullLayout,a=t.hovermode,n=t.rotateLabels,o=t.bgColor,s=t.container,l=t.outerContainer,u=t.commonLabelOpts||{};if(e.length===0)return[[]];var c=t.fontFamily||hd.HOVERFONT,h=t.fontSize||hd.HOVERFONTSIZE,f=t.fontWeight||i.font.weight,d=t.fontStyle||i.font.style,p=t.fontVariant||i.font.variant,m=t.fontTextcase||i.font.textcase,g=t.fontLineposition||i.font.lineposition,y=t.fontShadow||i.font.shadow,x=e[0],w=x.xa,_=x.ya,A=a.charAt(0),T=A+"Label",M=x[T];if(M===void 0&&w.type==="multicategory")for(var S=0;Si.width-rt&&(Ft=i.width-rt),Ee.attr("d","M"+(Tt-Ft)+",0L"+(Tt-Ft+ra)+","+gt+ra+"H"+rt+"v"+gt+(Or*2+ut.height)+"H"+-rt+"V"+gt+ra+"H"+(Tt-Ft-ra)+"Z"),Tt=Ft,H.minX=Tt-rt,H.maxX=Tt+rt,w.side==="top"?(H.minY=Ze-(Or*2+ut.height),H.maxY=Ze-Or):(H.minY=Ze+Or,H.maxY=Ze+(Or*2+ut.height))}else{var Pt,bt,zt;_.side==="right"?(Pt="start",bt=1,zt="",Tt=w._offset+w._length):(Pt="end",bt=-1,zt="-",Tt=w._offset),Ze=_._offset+(x.y0+x.y1)/2,Me.attr("text-anchor",Pt),Ee.attr("d","M0,0L"+zt+ra+","+ra+"V"+(Or+ut.height/2)+"h"+zt+(Or*2+ut.width)+"V-"+(Or+ut.height/2)+"H"+zt+ra+"V-"+ra+"Z"),H.minY=Ze-(Or+ut.height/2),H.maxY=Ze+(Or+ut.height/2),_.side==="right"?(H.minX=Tt+ra,H.maxX=Tt+ra+(Or*2+ut.width)):(H.minX=Tt-ra-(Or*2+ut.width),H.maxX=Tt-ra);var fe=ut.height/2,Se=P-ut.top-fe,it="clip"+i._uid+"commonlabel"+_._id,nt;if(TtEe.hoverinfo!=="none");if($e.length===0)return[];var Z=i.hoverlabel,W=Z.font,le=$e[0],pe=((a==="x unified"?le.xa:le.ya).unifiedhovertitle||{}).text,_e=pe?_a.hovertemplateString({data:a==="x unified"?[{xa:le.xa,x:le.xVal}]:[{ya:le.ya,y:le.yVal}],fallback:le.trace.hovertemplatefallback,locale:i._d3locale,template:pe}):M,De={showlegend:!0,legend:{title:{text:_e,font:W},font:W,bgcolor:Z.bgcolor,bordercolor:Z.bordercolor,borderwidth:1,tracegroupgap:7,traceorder:i.legend?i.legend.traceorder:void 0,orientation:"v"}},de={font:W};ewe(De,de,r._fullData);var Ce=de.legend;Ce.entries=[];for(var Q=0;Q<$e.length;Q++){var ae=$e[Q];if(ae.hoverinfo!=="none"){var ye=vG(ae,!0,a,i,M),te=ye[0],re=ye[1];ae.name=re,re!==""?ae.text=re+" : "+te:ae.text=te;var ce=ae.cd[ae.index];ce&&(ce.mc&&(ae.mc=ce.mc),ce.mcc&&(ae.mc=ce.mcc),ce.mlc&&(ae.mlc=ce.mlc),ce.mlcc&&(ae.mlc=ce.mlcc),ce.mlw&&(ae.mlw=ce.mlw),ce.mrc&&(ae.mrc=ce.mrc),ce.dir&&(ae.dir=ce.dir)),ae._distinct=!0,Ce.entries.push([ae])}}Ce.entries.sort(function(Ee,Me){var We=i.hoversort;if(We==="value descending"||We==="value ascending"){var lt=a.charAt(0)==="x"?"y":"x",Qe=Ee[0][lt+"LabelVal"],st=Me[0][lt+"LabelVal"];if(Qe!==st)return We==="value descending"?st-Qe:Qe-st}return Ee[0].trace.index-Me[0].trace.index}),Ce.layer=s,Ce._inHover=!0,Ce._groupTitleFont=Z.grouptitlefont,twe(r,Ce);var me=s.select("g.legend"),ze=w1(r,me.node()),He=ze.width+2*Or,ke=ze.height+2*Or,Oe=$e[0],qe=(Oe.x0+Oe.x1)/2,se=(Oe.y0+Oe.y1)/2,je=!(A1.traceIs(Oe.trace,"bar-like")||A1.traceIs(Oe.trace,"box-violin")),Re,Ve;A==="y"?je?(Ve=se-Or,Re=se+Or):(Ve=Math.min.apply(null,$e.map(function(Ee){return Math.min(Ee.y0,Ee.y1)})),Re=Math.max.apply(null,$e.map(function(Ee){return Math.max(Ee.y0,Ee.y1)}))):Ve=Re=_a.mean($e.map(function(Ee){return(Ee.y0+Ee.y1)/2}))-ke/2;var ge,Ge;A==="x"?je?(ge=qe+Or,Ge=qe-Or):(ge=Math.max.apply(null,$e.map(function(Ee){return Math.max(Ee.x0,Ee.x1)})),Ge=Math.min.apply(null,$e.map(function(Ee){return Math.min(Ee.x0,Ee.x1)}))):ge=Ge=_a.mean($e.map(function(Ee){return(Ee.x0+Ee.x1)/2}))-He/2;var tt=w._offset,ie=_._offset;Re+=ie,ge+=tt,Ge+=tt-He,Ve+=ie-ke;var we,ot;return ge+He=0?we=ge:Ge+He=0?we=Ge:tt+He=0?ot=Re:Ve+ke=0?ot=Ve:ie+ke=0,($e.idealAlign==="top"||!si)&&Ni?(zt-=Se/2,$e.anchor="end"):si?(zt+=Se/2,$e.anchor="start"):$e.anchor="middle",$e.crossPos=zt;else{if($e.pos=zt,si=bt+fe/2+Kr<=I,Ni=bt-fe/2-Kr>=0,($e.idealAlign==="left"||!si)&&Ni)bt-=fe/2,$e.anchor="end";else if(si)bt+=fe/2,$e.anchor="start";else{$e.anchor="middle";var Pr=Kr/2,Hr=bt+Pr-I,gi=bt-Pr;Hr>0&&(bt-=Hr),gi<0&&(bt+=-gi)}$e.crossPos=bt}Ze.attr("text-anchor",$e.anchor),rt&>.attr("text-anchor",$e.anchor),Ee.attr("transform",FM(bt,zt)+(n?X4e(bG):""))}),{hoverLabels:At,commonLabelBoundingBox:H}}function vG(e,t,r,i,a,n){var h,f;var o="",s="";e.nameOverride!==void 0&&(e.name=e.nameOverride),e.name&&(e.trace._meta&&(e.name=_a.templateString(e.name,e.trace._meta)),o=_G(e.name,e.nameLength));var l=r.charAt(0),u=l==="x"?"y":"x";e.zLabel!==void 0?(e.xLabel!==void 0&&(s+="x: "+e.xLabel+"
"),e.yLabel!==void 0&&(s+="y: "+e.yLabel+"
"),e.trace.type!=="choropleth"&&e.trace.type!=="choroplethmap"&&(s+=(s?"z: ":"")+e.zLabel)):t&&e[l+"Label"]===a?s=e[u+"Label"]||"":e.xLabel===void 0?e.yLabel!==void 0&&e.trace.type!=="scattercarpet"&&(s=e.yLabel):e.yLabel===void 0?s=e.xLabel:s="("+e.xLabel+", "+e.yLabel+")",(e.text||e.text===0)&&!Array.isArray(e.text)&&(s+=(s?"
":"")+e.text),e.extraText!==void 0&&(s+=(s?"
":"")+e.extraText),n&&s===""&&!e.hovertemplate&&(o===""&&n.remove(),s=o),(f=(h=e.trace)==null?void 0:h.hoverlabel)!=null&&f.split&&(e.hovertemplate="");let{hovertemplate:c=!1}=e;if(c){let d=e.hovertemplateLabels||e;e[l+"Label"]!==a&&(d[l+"other"]=d[l+"Val"],d[l+"otherLabel"]=d[l+"Label"]),s=_a.hovertemplateString({data:[e.eventData[0]||{},e.trace._meta],fallback:e.trace.hovertemplatefallback,labels:d,locale:i._d3locale,template:c}),s=s.replace(swe,(p,m)=>(o=_G(m,e.nameLength),""))}return[s,o]}function lwe(e,t,r,i){var a=t?"xa":"ya",n=t?"ya":"xa",o=0,s=1,l=e.size(),u=new Array(l),c=0,h=i.minX,f=i.maxX,d=i.minY,p=i.maxY,m=function(V){return V*r._invScaleX},g=function(V){return V*r._invScaleY};e.each(function(V){var $=V[a],j=V[n],H=$._id.charAt(0)==="x",Z=$.range;c===0&&Z&&Z[0]>Z[1]!==H&&(s=-1);var W=0,le=H?r.width:r.height;if(r.hovermode==="x"||r.hovermode==="y"){var pe=TG(V,t),_e=V.anchor,De=_e==="end"?-1:1,de,Ce;if(_e==="middle")de=V.crossPos+(H?g(pe.y-V.by/2):m(V.bx/2+V.tx2width/2)),Ce=de+(H?g(V.by):m(V.bx));else if(H)de=V.crossPos+g(ra+pe.y)-g(V.by/2-ra),Ce=de+g(V.by);else{var Q=m(De*ra+pe.x),ae=Q+m(De*V.bx);de=V.crossPos+Math.min(Q,ae),Ce=V.crossPos+Math.max(Q,ae)}H?d!==void 0&&p!==void 0&&Math.min(Ce,p)-Math.max(de,d)>1&&(j.side==="left"?(W=j._mainLinePosition,le=r.width):le=j._mainLinePosition):h!==void 0&&f!==void 0&&Math.min(Ce,f)-Math.max(de,h)>1&&(j.side==="top"?(W=j._mainLinePosition,le=r.height):le=j._mainLinePosition)}u[c++]=[{datum:V,traceIndex:V.trace.index,dp:0,pos:V.pos,posref:V.posref,size:V.by*(H?rwe:1)/2,pmin:W,pmax:le}]}),u.sort(function(V,$){return V[0].posref-$[0].posref||s*($[0].traceIndex-V[0].traceIndex)});var y,x,w,_,A,T,M;function S(V){var $=V[0],j=V[V.length-1];if(x=$.pmin-$.pos-$.dp+$.size,w=j.pos+j.dp+j.size-$.pmax,x>.01){for(A=V.length-1;A>=0;A--)V[A].dp+=x;y=!1}if(!(w<.01)){if(x<-.01){for(A=V.length-1;A>=0;A--)V[A].dp-=w;y=!1}if(y){var H=0;for(_=0;_$.pmax&&H++;for(_=V.length-1;_>=0&&!(H<=0);_--)T=V[_],T.pos>$.pmax-1&&(T.del=!0,H--);for(_=0;_=0;A--)V[A].dp-=w;for(_=V.length-1;_>=0&&!(H<=0);_--)T=V[_],T.pos+T.dp+T.size>$.pmax&&(T.del=!0,H--)}}}for(;!y&&o<=l;){for(o++,y=!0,_=0;_.01){for(A=P.length-1;A>=0;A--)P[A].dp+=x;for(k.push.apply(k,P),u.splice(_+1,1),M=0,A=k.length-1;A>=0;A--)M+=k[A].dp;for(w=M/k.length,A=k.length-1;A>=0;A--)k[A].dp-=w;y=!1}else _++}u.forEach(S)}for(_=u.length-1;_>=0;_--){var L=u[_];for(A=L.length-1;A>=0;A--){var z=L[A],O=z.datum;O.offset=z.dp,O.del=z.del}}}function TG(e,t){var r=0,i=e.offset;return t&&(i*=-awe,r=e.offset*iwe),{x:r,y:i}}function uwe(e){var t={start:1,end:-1,middle:0}[e.anchor],r=t*(ra+Or),i=r+t*(e.txwidth+Or),a=e.anchor==="middle";return a&&(r-=e.tx2width/2,i+=e.txwidth/2+Or),{alignShift:t,textShiftX:r,text2ShiftX:i}}function MG(e,t,r,i){var a=function(o){return o*r},n=function(o){return o*i};e.each(function(o){var s=cd.select(this);if(o.del)return s.remove();var l=s.select("text.nums"),u=o.anchor,c=u==="end"?-1:1,h=uwe(o),f=TG(o,t),d=f.x,p=f.y,m=u==="middle",g="hoverlabel"in o.trace?o.trace.hoverlabel.showarrow:!0,y;m?y="M-"+a(o.bx/2+o.tx2width/2)+","+n(p-o.by/2)+"h"+a(o.bx)+"v"+n(o.by)+"h-"+a(o.bx)+"Z":g?y="M0,0L"+a(c*ra+d)+","+n(ra+p)+"v"+n(o.by/2-ra)+"h"+a(c*o.bx)+"v-"+n(o.by)+"H"+a(c*ra+d)+"V"+n(p-ra)+"Z":y="M"+a(c*ra+d)+","+n(p-o.by/2)+"h"+a(c*o.bx)+"v"+n(o.by)+"h"+a(-c*o.bx)+"Z",s.select("path").attr("d",y);var x=d+h.textShiftX,w=p+o.ty0-o.by/2+Or,_=o.textAlign||"auto";_!=="auto"&&(_==="left"&&u!=="start"?(l.attr("text-anchor","start"),x=m?-o.bx/2-o.tx2width/2+Or:-o.bx-Or):_==="right"&&u!=="end"&&(l.attr("text-anchor","end"),x=m?o.bx/2-o.tx2width/2-Or:o.bx+Or)),l.call(bl.positionText,a(x),n(w)),o.tx2width&&(s.select("text.name").call(bl.positionText,a(h.text2ShiftX+h.alignShift*Or+d),n(p+o.ty0-o.by/2+Or)),s.select("rect").call(hc.setRect,a(h.text2ShiftX+(h.alignShift-1)*o.tx2width/2+d),n(p-o.by/2-1),a(o.tx2width),n(o.by+2)))})}function cwe(e,t){var r=e.index,i=e.trace||{},a=e.cd[0],n=e.cd[r]||{};function o(f){return f||th(f)&&f===0}var s=Array.isArray(r)?function(f,d){var p=_a.castOption(a,r,f);return o(p)?p:_a.extractOption({},i,"",d)}:function(f,d){return _a.extractOption(n,i,f,d)};function l(f,d,p){var m=s(d,p);o(m)&&(e[f]=m)}if(l("hoverinfo","hi","hoverinfo"),l("bgcolor","hbg","hoverlabel.bgcolor"),l("borderColor","hbc","hoverlabel.bordercolor"),l("fontFamily","htf","hoverlabel.font.family"),l("fontSize","hts","hoverlabel.font.size"),l("fontColor","htc","hoverlabel.font.color"),l("fontWeight","htw","hoverlabel.font.weight"),l("fontStyle","hty","hoverlabel.font.style"),l("fontVariant","htv","hoverlabel.font.variant"),l("nameLength","hnl","hoverlabel.namelength"),l("textAlign","hta","hoverlabel.align"),e.posref=t==="y"||t==="closest"&&i.orientation==="h"?e.xa._offset+(e.x0+e.x1)/2:e.ya._offset+(e.y0+e.y1)/2,e.x0=_a.constrain(e.x0,0,e.xa._length),e.x1=_a.constrain(e.x1,0,e.xa._length),e.y0=_a.constrain(e.y0,0,e.ya._length),e.y1=_a.constrain(e.y1,0,e.ya._length),e.xLabelVal!==void 0&&(e.xLabel="xLabel"in e?e.xLabel:fc.hoverLabelText(e.xa,e.xLabelVal,i.xhoverformat),e.xVal=e.xa.c2d(e.xLabelVal)),e.yLabelVal!==void 0&&(e.yLabel="yLabel"in e?e.yLabel:fc.hoverLabelText(e.ya,e.yLabelVal,i.yhoverformat),e.yVal=e.ya.c2d(e.yLabelVal)),e.zLabelVal!==void 0&&e.zLabel===void 0&&(e.zLabel=String(e.zLabelVal)),!isNaN(e.xerr)&&!(e.xa.type==="log"&&e.xerr<=0)){var u=fc.tickText(e.xa,e.xa.c2l(e.xerr),"hover").text;e.xerrneg!==void 0?e.xLabel+=" +"+u+" / -"+fc.tickText(e.xa,e.xa.c2l(e.xerrneg),"hover").text:e.xLabel+=" \xB1 "+u,t==="x"&&(e.distance+=1)}if(!isNaN(e.yerr)&&!(e.ya.type==="log"&&e.yerr<=0)){var c=fc.tickText(e.ya,e.ya.c2l(e.yerr),"hover").text;e.yerrneg!==void 0?e.yLabel+=" +"+c+" / -"+fc.tickText(e.ya,e.ya.c2l(e.yerrneg),"hover").text:e.yLabel+=" \xB1 "+c,t==="y"&&(e.distance+=1)}var h=e.hoverinfo||e.trace.hoverinfo;return h&&h!=="all"&&(h=Array.isArray(h)?h:h.split("+"),h.indexOf("x")===-1&&(e.xLabel=void 0),h.indexOf("y")===-1&&(e.yLabel=void 0),h.indexOf("z")===-1&&(e.zLabel=void 0),h.indexOf("text")===-1&&(e.text=void 0),h.indexOf("name")===-1&&(e.name=void 0)),e}function gG(e,t,r){var i=r.container,a=r.fullLayout,n=a._size,o=r.event,s=!!t.hLinePoint,l=!!t.vLinePoint,u,c;if(i.selectAll(".spikeline").remove(),!!(l||s)){var h=Ga.combine(a.plot_bgcolor,a.paper_bgcolor);if(s){var f=t.hLinePoint,d,p;u=f&&f.xa,c=f&&f.ya;var m=c.spikesnap;m==="cursor"?(d=o.pointerX,p=o.pointerY):(d=u._offset+f.x,p=c._offset+f.y);var g=Ga.wcagContrast(f.color,h)<1.5?Ga.contrast(h):f.color,y=c.spikemode,x=c.spikethickness,w=c.spikecolor||g,_=fc.getPxPosition(e,c),A,T;if(y.indexOf("toaxis")!==-1||y.indexOf("across")!==-1){if(y.indexOf("toaxis")!==-1&&(A=_,T=d),y.indexOf("across")!==-1){var M=c._counterDomainMin,S=c._counterDomainMax;c.anchor==="free"&&(M=Math.min(M,c.position),S=Math.max(S,c.position)),A=n.l+M*n.w,T=n.l+S*n.w}i.insert("line",":first-child").attr({x1:A,x2:T,y1:p,y2:p,"stroke-width":x,stroke:w,"stroke-dasharray":hc.dashStyle(c.spikedash,x)}).classed("spikeline",!0).classed("crisp",!0),i.insert("line",":first-child").attr({x1:A,x2:T,y1:p,y2:p,"stroke-width":x+2,stroke:h}).classed("spikeline",!0).classed("crisp",!0)}y.indexOf("marker")!==-1&&i.insert("circle",":first-child").attr({cx:_+(c.side!=="right"?x:-x),cy:p,r:x,fill:w}).classed("spikeline",!0)}if(l){var k=t.vLinePoint,P,I;u=k&&k.xa,c=k&&k.ya;var B=u.spikesnap;B==="cursor"?(P=o.pointerX,I=o.pointerY):(P=u._offset+k.x,I=c._offset+k.y);var L=Ga.wcagContrast(k.color,h)<1.5?Ga.contrast(h):k.color,z=u.spikemode,O=u.spikethickness,V=u.spikecolor||L,$=fc.getPxPosition(e,u),j,H;if(z.indexOf("toaxis")!==-1||z.indexOf("across")!==-1){if(z.indexOf("toaxis")!==-1&&(j=$,H=I),z.indexOf("across")!==-1){var Z=u._counterDomainMin,W=u._counterDomainMax;u.anchor==="free"&&(Z=Math.min(Z,u.position),W=Math.max(W,u.position)),j=n.t+(1-W)*n.h,H=n.t+(1-Z)*n.h}i.insert("line",":first-child").attr({x1:P,x2:P,y1:j,y2:H,"stroke-width":O,stroke:V,"stroke-dasharray":hc.dashStyle(u.spikedash,O)}).classed("spikeline",!0).classed("crisp",!0),i.insert("line",":first-child").attr({x1:P,x2:P,y1:j,y2:H,"stroke-width":O+2,stroke:h}).classed("spikeline",!0).classed("crisp",!0)}z.indexOf("marker")!==-1&&i.insert("circle",":first-child").attr({cx:P,cy:$-(u.side!=="top"?O:-O),r:O,fill:V}).classed("spikeline",!0)}}}function hwe(e,t,r){if(!r||r.length!==e._hoverdata.length)return!0;for(var i=r.length-1;i>=0;i--){var a=r[i],n=e._hoverdata[i];if(a.curveNumber!==n.curveNumber||String(a.pointNumber)!==String(n.pointNumber)||String(a.pointNumbers)!==String(n.pointNumbers)||a.binNumber!==n.binNumber)return!0}return!1}function yG(e,t){return!t||t.vLinePoint!==e._spikepoints.vLinePoint||t.hLinePoint!==e._spikepoints.hLinePoint}function _G(e,t){return bl.plainText(e||"",{len:t,allowedTags:["br","sub","sup","b","i","em","s","u"]})}function fwe(e,t){for(var r=t.charAt(0),i=[],a=[],n=[],o=0;oe.offsetTop+e.clientTop,SG=e=>e.offsetLeft+e.clientLeft;function w1(e,t){var r=e._fullLayout,i=t.getBoundingClientRect(),a=i.left,n=i.top,o=a+i.width,s=n+i.height,l=_a.apply3DTransform(r._invTransform)(a,n),u=_a.apply3DTransform(r._invTransform)(o,s),c=l[0],h=l[1],f=u[0],d=u[1];return{x:c,y:h,width:f-c,height:d-h,top:Math.min(h,d),left:Math.min(c,f),right:Math.max(c,f),bottom:Math.max(h,d)}}});var jb=X((itt,EG)=>{"use strict";var dwe=et(),pwe=qr(),mwe=nc().isUnifiedHover;EG.exports=function(t,r,i,a){a=a||{};var n=r.legend;function o(s){a.font[s]||(a.font[s]=n?r.legend.font[s]:r.font[s])}r&&mwe(r.hovermode)&&(a.font||(a.font={}),o("size"),o("family"),o("color"),o("weight"),o("style"),o("variant"),n?(a.bgcolor||(a.bgcolor=pwe.combine(r.legend.bgcolor,r.paper_bgcolor)),a.bordercolor||(a.bordercolor=r.legend.bordercolor)):a.bgcolor||(a.bgcolor=r.paper_bgcolor)),i("hoverlabel.bgcolor",a.bgcolor),i("hoverlabel.bordercolor",a.bordercolor),i("hoverlabel.namelength",a.namelength),i("hoverlabel.showarrow",a.showarrow),dwe.coerceFont(i,"hoverlabel.font",a.font),i("hoverlabel.align",a.align)}});var CG=X((att,kG)=>{"use strict";var vwe=et(),gwe=jb(),ywe=zp();kG.exports=function(t,r){function i(a,n){return vwe.coerce(t,r,ywe,a,n)}gwe(t,r,i)}});var IG=X((ntt,PG)=>{"use strict";var FG=et(),_we=G_(),xwe=jb();PG.exports=function(t,r,i,a){function n(s,l){return FG.coerce(t,r,_we,s,l)}var o=FG.extendFlat({},a.hoverlabel);r.hovertemplate&&(o.namelength=-1),xwe(t,r,n,o)}});var zM=X((ott,LG)=>{"use strict";var bwe=et(),wwe=zp();LG.exports=function(t,r){function i(a,n){return r[a]!==void 0?r[a]:bwe.coerce(t,r,wwe,a,n)}return i("clickmode"),i("hoversubplots"),i("hoveranywhere"),i("clickanywhere"),i("hovermode")}});var BG=X((stt,RG)=>{"use strict";var zG=et(),Awe=zp(),Twe=zM(),Mwe=jb();RG.exports=function(t,r){function i(u,c){return zG.coerce(t,r,Awe,u,c)}var a=Twe(t,r);a&&(i("hoverdistance"),i("spikedistance"),a.indexOf("unified")!==-1&&i("hoversort"));var n=i("dragmode");n==="select"&&i("selectdirection");var o=r._has("map"),s=r._has("geo"),l=r._basePlotModules.length;r.dragmode==="zoom"&&((o||s)&&l===1||o&&s&&l===2)&&(r.dragmode="pan"),Mwe(t,r,i),zG.coerceFont(i,"hoverlabel.grouptitlefont",r.hoverlabel.font)}});var NG=X((ltt,OG)=>{"use strict";var RM=et(),qG=mr();OG.exports=function(t){var r=t.calcdata,i=t._fullLayout;function a(u){return function(c){return RM.coerceHoverinfo({hoverinfo:c},{_module:u._module},i)}}for(var n=0;n{"use strict";var Swe=mr(),VG=nc(),Ewe=LM().hover;UG.exports=function(t,r,i){var a=Swe.getComponentMethod("annotations","onClick")(t,t._hoverdata),n=t._fullLayout;i!==void 0&&Ewe(t,r,i,!0);function o(){var l,u,c,h,f,d;var s={points:t._hoverdata,event:r};(l=s.xaxes)!=null||(s.xaxes=t._hoverXAxes),(u=s.yaxes)!=null||(s.yaxes=t._hoverYAxes),(c=s.xvals)!=null||(s.xvals=t._hoverXVals&&VG.c2dApply(t._hoverXAxes,t._hoverXVals)),(h=s.yvals)!=null||(s.yvals=t._hoverYVals&&VG.c2dApply(t._hoverYAxes,t._hoverYVals)),(f=s.xPixel)!=null||(s.xPixel=t._hoverPointerX),(d=s.yPixel)!=null||(s.yPixel=t._hoverPointerY),t.emit("plotly_click",s)}(t._hoverdata||n.clickanywhere)&&r&&r.target&&(t._hoverdata||(t._hoverdata=[]),a&&a.then?a.then(o):o(),r.stopImmediatePropagation&&r.stopImmediatePropagation())}});var vu=X((ctt,HG)=>{"use strict";var kwe=Wr(),$b=et(),Cwe=_l(),fg=nc(),jG=zp(),$G=LM();HG.exports={moduleType:"component",name:"fx",constants:(vv(),ct(mv)),schema:{layout:jG},attributes:G_(),layoutAttributes:jG,supplyLayoutGlobalDefaults:CG(),supplyDefaults:IG(),supplyLayoutDefaults:BG(),calc:NG(),getDistanceFunction:fg.getDistanceFunction,getClosest:fg.getClosest,inbox:fg.inbox,quadrature:fg.quadrature,appendArrayPointValue:fg.appendArrayPointValue,castHoverOption:Pwe,castHoverinfo:Iwe,hover:$G.hover,unhover:Cwe.unhover,loneHover:$G.loneHover,loneUnhover:Fwe,click:GG()};function Fwe(e){var t=$b.isD3Selection(e)?e:kwe.select(e);t.selectAll("g.hovertext").remove(),t.selectAll(".spikeline").remove()}function Pwe(e,t,r){return $b.castOption(e,t,"hoverlabel."+r)}function Iwe(e,t,r){function i(a){return $b.coerceHoverinfo({hoverinfo:a},{_module:e._module},t)}return $b.castOption(e,r,"hoverinfo",i)}});var fd=X(rh=>{"use strict";rh.selectMode=function(e){return e==="lasso"||e==="select"};rh.drawMode=function(e){return e==="drawclosedpath"||e==="drawopenpath"||e==="drawline"||e==="drawrect"||e==="drawcircle"};rh.openMode=function(e){return e==="drawline"||e==="drawopenpath"};rh.rectMode=function(e){return e==="select"||e==="drawline"||e==="drawrect"||e==="drawcircle"};rh.freeMode=function(e){return e==="lasso"||e==="drawclosedpath"||e==="drawopenpath"};rh.selectingOrDrawing=function(e){return rh.freeMode(e)||rh.rectMode(e)}});var Hb=X((ftt,ZG)=>{"use strict";ZG.exports=function(t){var r=t._fullLayout;r._glcanvas&&r._glcanvas.size()&&r._glcanvas.each(function(i){i.regl&&i.regl.clear({color:!0,depth:!0})})}});var Zb=X((dtt,YG)=>{"use strict";YG.exports={undo:{width:857.1,height:1e3,path:"m857 350q0-87-34-166t-91-137-137-92-166-34q-96 0-183 41t-147 114q-4 6-4 13t5 11l76 77q6 5 14 5 9-1 13-7 41-53 100-82t126-29q58 0 110 23t92 61 61 91 22 111-22 111-61 91-92 61-110 23q-55 0-105-20t-90-57l77-77q17-16 8-38-10-23-33-23h-250q-15 0-25 11t-11 25v250q0 24 22 33 22 10 39-8l72-72q60 57 137 88t159 31q87 0 166-34t137-92 91-137 34-166z",transform:"matrix(1 0 0 -1 0 850)"},home:{width:928.6,height:1e3,path:"m786 296v-267q0-15-11-26t-25-10h-214v214h-143v-214h-214q-15 0-25 10t-11 26v267q0 1 0 2t0 2l321 264 321-264q1-1 1-4z m124 39l-34-41q-5-5-12-6h-2q-7 0-12 3l-386 322-386-322q-7-4-13-4-7 2-12 7l-35 41q-4 5-3 13t6 12l401 334q18 15 42 15t43-15l136-114v109q0 8 5 13t13 5h107q8 0 13-5t5-13v-227l122-102q5-5 6-12t-4-13z",transform:"matrix(1 0 0 -1 0 850)"},"camera-retro":{width:1e3,height:1e3,path:"m518 386q0 8-5 13t-13 5q-37 0-63-27t-26-63q0-8 5-13t13-5 12 5 5 13q0 23 16 38t38 16q8 0 13 5t5 13z m125-73q0-59-42-101t-101-42-101 42-42 101 42 101 101 42 101-42 42-101z m-572-320h858v71h-858v-71z m643 320q0 89-62 152t-152 62-151-62-63-152 63-151 151-63 152 63 62 151z m-571 358h214v72h-214v-72z m-72-107h858v143h-462l-36-71h-360v-72z m929 143v-714q0-30-21-51t-50-21h-858q-29 0-50 21t-21 51v714q0 30 21 51t50 21h858q29 0 50-21t21-51z",transform:"matrix(1 0 0 -1 0 850)"},curlybraces:{width:18,height:16,path:"M 9,4 C 7.354992,4 6,5.354992 6,7 V 9 C 6,9.2999997 5.8778068,9.8883542 5.5878906,10.291016 5.2979744,10.693677 4.9222213,11 4,11 a 1.0001,1.0001 0 0 0 0,2 c 0.2999997,0 0.8883542,0.122193 1.2910156,0.412109 C 5.693677,13.702026 6,14.077779 6,15 v 2 c 0,1.645008 1.354992,3 3,3 h 0.5 a 1,1 0 0 0 1,-1 1,1 0 0 0 -1,-1 H 9 C 8.4358712,18 8,17.564129 8,17 V 15 C 8,13.625876 7.3766799,12.602305 6.6113281,11.96875 6.8086352,11.794047 7.0679793,11.657537 7.2109375,11.458984 7.8210204,10.611647 8,9.6999993 8,9 V 7 C 8,6.4358712 8.4358712,6 9,6 h 0.5 a 1,1 0 0 0 1,-1 1,1 0 0 0 -1,-1 z m 5.5,0 a 1,1 0 0 0 -1,1 1,1 0 0 0 1,1 H 15 c 0.564129,0 1,0.4358712 1,1 v 2 c 0,0.6999993 0.17898,1.611647 0.789062,2.458984 0.142959,0.198553 0.402303,0.335063 0.59961,0.509766 C 16.62332,12.602305 16,13.625876 16,15 v 2 c 0,0.564129 -0.435871,1 -1,1 h -0.5 a 1,1 0 0 0 -1,1 1,1 0 0 0 1,1 H 15 c 1.645008,0 3,-1.354992 3,-3 v -2 c 0,-0.922221 0.306323,-1.297974 0.708984,-1.587891 C 19.111646,13.122193 19.7,13 20,13 a 1.0001,1.0001 0 0 0 0,-2 C 19.077779,11 18.702026,10.693677 18.412109,10.291016 18.122193,9.8883542 18,9.2999997 18,9 V 7 C 18,5.354992 16.645008,4 15,4 Z",transform:"translate(-3 -4)"},zoombox:{width:1e3,height:1e3,path:"m1000-25l-250 251c40 63 63 138 63 218 0 224-182 406-407 406-224 0-406-182-406-406s183-406 407-406c80 0 155 22 218 62l250-250 125 125z m-812 250l0 438 437 0 0-438-437 0z m62 375l313 0 0-312-313 0 0 312z",transform:"matrix(1 0 0 -1 0 850)"},pan:{width:1e3,height:1e3,path:"m1000 350l-187 188 0-125-250 0 0 250 125 0-188 187-187-187 125 0 0-250-250 0 0 125-188-188 186-187 0 125 252 0 0-250-125 0 187-188 188 188-125 0 0 250 250 0 0-126 187 188z",transform:"matrix(1 0 0 -1 0 850)"},zoom_plus:{width:875,height:1e3,path:"m1 787l0-875 875 0 0 875-875 0z m687-500l-187 0 0-187-125 0 0 187-188 0 0 125 188 0 0 187 125 0 0-187 187 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},zoom_minus:{width:875,height:1e3,path:"m0 788l0-876 875 0 0 876-875 0z m688-500l-500 0 0 125 500 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},autoscale:{width:1e3,height:1e3,path:"m250 850l-187 0-63 0 0-62 0-188 63 0 0 188 187 0 0 62z m688 0l-188 0 0-62 188 0 0-188 62 0 0 188 0 62-62 0z m-875-938l0 188-63 0 0-188 0-62 63 0 187 0 0 62-187 0z m875 188l0-188-188 0 0-62 188 0 62 0 0 62 0 188-62 0z m-125 188l-1 0-93-94-156 156 156 156 92-93 2 0 0 250-250 0 0-2 93-92-156-156-156 156 94 92 0 2-250 0 0-250 0 0 93 93 157-156-157-156-93 94 0 0 0-250 250 0 0 0-94 93 156 157 156-157-93-93 0 0 250 0 0 250z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_basic:{width:1500,height:1e3,path:"m375 725l0 0-375-375 375-374 0-1 1125 0 0 750-1125 0z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_compare:{width:1125,height:1e3,path:"m187 786l0 2-187-188 188-187 0 0 937 0 0 373-938 0z m0-499l0 1-187-188 188-188 0 0 937 0 0 376-938-1z",transform:"matrix(1 0 0 -1 0 850)"},plotlylogo:{width:1542,height:1e3,path:"m0-10h182v-140h-182v140z m228 146h183v-286h-183v286z m225 714h182v-1000h-182v1000z m225-285h182v-715h-182v715z m225 142h183v-857h-183v857z m231-428h182v-429h-182v429z m225-291h183v-138h-183v138z",transform:"matrix(1 0 0 -1 0 850)"},"z-axis":{width:1e3,height:1e3,path:"m833 5l-17 108v41l-130-65 130-66c0 0 0 38 0 39 0-1 36-14 39-25 4-15-6-22-16-30-15-12-39-16-56-20-90-22-187-23-279-23-261 0-341 34-353 59 3 60 228 110 228 110-140-8-351-35-351-116 0-120 293-142 474-142 155 0 477 22 477 142 0 50-74 79-163 96z m-374 94c-58-5-99-21-99-40 0-24 65-43 144-43 79 0 143 19 143 43 0 19-42 34-98 40v216h87l-132 135-133-135h88v-216z m167 515h-136v1c16 16 31 34 46 52l84 109v54h-230v-71h124v-1c-16-17-28-32-44-51l-89-114v-51h245v72z",transform:"matrix(1 0 0 -1 0 850)"},"3d_rotate":{width:1e3,height:1e3,path:"m922 660c-5 4-9 7-14 11-359 263-580-31-580-31l-102 28 58-400c0 1 1 1 2 2 118 108 351 249 351 249s-62 27-100 42c88 83 222 183 347 122 16-8 30-17 44-27-2 1-4 2-6 4z m36-329c0 0 64 229-88 296-62 27-124 14-175-11 157-78 225-208 249-266 8-19 11-31 11-31 2 5 6 15 11 32-5-13-8-20-8-20z m-775-239c70-31 117-50 198-32-121 80-199 346-199 346l-96-15-58-12c0 0 55-226 155-287z m603 133l-317-139c0 0 4-4 19-14 7-5 24-15 24-15s-177-147-389 4c235-287 536-112 536-112l31-22 100 299-4-1z m-298-153c6-4 14-9 24-15 0 0-17 10-24 15z",transform:"matrix(1 0 0 -1 0 850)"},camera:{width:1e3,height:1e3,path:"m500 450c-83 0-150-67-150-150 0-83 67-150 150-150 83 0 150 67 150 150 0 83-67 150-150 150z m400 150h-120c-16 0-34 13-39 29l-31 93c-6 15-23 28-40 28h-340c-16 0-34-13-39-28l-31-94c-6-15-23-28-40-28h-120c-55 0-100-45-100-100v-450c0-55 45-100 100-100h800c55 0 100 45 100 100v450c0 55-45 100-100 100z m-400-550c-138 0-250 112-250 250 0 138 112 250 250 250 138 0 250-112 250-250 0-138-112-250-250-250z m365 380c-19 0-35 16-35 35 0 19 16 35 35 35 19 0 35-16 35-35 0-19-16-35-35-35z",transform:"matrix(1 0 0 -1 0 850)"},movie:{width:1e3,height:1e3,path:"m938 413l-188-125c0 37-17 71-44 94 64 38 107 107 107 187 0 121-98 219-219 219-121 0-219-98-219-219 0-61 25-117 66-156h-115c30 33 49 76 49 125 0 103-84 187-187 187s-188-84-188-187c0-57 26-107 65-141-38-22-65-62-65-109v-250c0-70 56-126 125-126h500c69 0 125 56 125 126l188-126c34 0 62 28 62 63v375c0 35-28 63-62 63z m-750 0c-69 0-125 56-125 125s56 125 125 125 125-56 125-125-56-125-125-125z m406-1c-87 0-157 70-157 157 0 86 70 156 157 156s156-70 156-156-70-157-156-157z",transform:"matrix(1 0 0 -1 0 850)"},question:{width:857.1,height:1e3,path:"m500 82v107q0 8-5 13t-13 5h-107q-8 0-13-5t-5-13v-107q0-8 5-13t13-5h107q8 0 13 5t5 13z m143 375q0 49-31 91t-77 65-95 23q-136 0-207-119-9-14 4-24l74-55q4-4 10-4 9 0 14 7 30 38 48 51 19 14 48 14 27 0 48-15t21-33q0-21-11-34t-38-25q-35-16-65-48t-29-70v-20q0-8 5-13t13-5h107q8 0 13 5t5 13q0 10 12 27t30 28q18 10 28 16t25 19 25 27 16 34 7 45z m214-107q0-117-57-215t-156-156-215-58-216 58-155 156-58 215 58 215 155 156 216 58 215-58 156-156 57-215z",transform:"matrix(1 0 0 -1 0 850)"},disk:{width:857.1,height:1e3,path:"m214-7h429v214h-429v-214z m500 0h72v500q0 8-6 21t-11 20l-157 156q-5 6-19 12t-22 5v-232q0-22-15-38t-38-16h-322q-22 0-37 16t-16 38v232h-72v-714h72v232q0 22 16 38t37 16h465q22 0 38-16t15-38v-232z m-214 518v178q0 8-5 13t-13 5h-107q-7 0-13-5t-5-13v-178q0-8 5-13t13-5h107q7 0 13 5t5 13z m357-18v-518q0-22-15-38t-38-16h-750q-23 0-38 16t-16 38v750q0 22 16 38t38 16h517q23 0 50-12t42-26l156-157q16-15 27-42t11-49z",transform:"matrix(1 0 0 -1 0 850)"},cloudupload:{width:640,height:640,path:"M451.5 160C434.9 160 418.8 164.5 404.7 172.7C388.9 156.7 370.5 143.3 350.2 133.2C378.4 109.2 414.3 96 451.5 96C537.9 96 608 166 608 252.5C608 294 591.5 333.8 562.2 363.1L491.1 434.2C461.8 463.5 422 480 380.5 480C294.1 480 224 410 224 323.5C224 322 224 320.5 224.1 319C224.6 301.3 239.3 287.4 257 287.9C274.7 288.4 288.6 303.1 288.1 320.8C288.1 321.7 288.1 322.6 288.1 323.4C288.1 374.5 329.5 415.9 380.6 415.9C405.1 415.9 428.6 406.2 446 388.8L517.1 317.7C534.4 300.4 544.2 276.8 544.2 252.3C544.2 201.2 502.8 159.8 451.7 159.8zM307.2 237.3C305.3 236.5 303.4 235.4 301.7 234.2C289.1 227.7 274.7 224 259.6 224C235.1 224 211.6 233.7 194.2 251.1L123.1 322.2C105.8 339.5 96 363.1 96 387.6C96 438.7 137.4 480.1 188.5 480.1C205 480.1 221.1 475.7 235.2 467.5C251 483.5 269.4 496.9 289.8 507C261.6 530.9 225.8 544.2 188.5 544.2C102.1 544.2 32 474.2 32 387.7C32 346.2 48.5 306.4 77.8 277.1L148.9 206C178.2 176.7 218 160.2 259.5 160.2C346.1 160.2 416 230.8 416 317.1C416 318.4 416 319.7 416 321C415.6 338.7 400.9 352.6 383.2 352.2C365.5 351.8 351.6 337.1 352 319.4C352 318.6 352 317.9 352 317.1C352 283.4 334 253.8 307.2 237.5z",transform:"matrix(1 0 0 1 -15 -15)"},drawopenpath:{width:70,height:70,path:"M33.21,85.65a7.31,7.31,0,0,1-2.59-.48c-8.16-3.11-9.27-19.8-9.88-41.3-.1-3.58-.19-6.68-.35-9-.15-2.1-.67-3.48-1.43-3.79-2.13-.88-7.91,2.32-12,5.86L3,32.38c1.87-1.64,11.55-9.66,18.27-6.9,2.13.87,4.75,3.14,5.17,9,.17,2.43.26,5.59.36,9.25a224.17,224.17,0,0,0,1.5,23.4c1.54,10.76,4,12.22,4.48,12.4.84.32,2.79-.46,5.76-3.59L43,80.07C41.53,81.57,37.68,85.64,33.21,85.65ZM74.81,69a11.34,11.34,0,0,0,6.09-6.72L87.26,44.5,74.72,32,56.9,38.35c-2.37.86-5.57,3.42-6.61,6L38.65,72.14l8.42,8.43ZM55,46.27a7.91,7.91,0,0,1,3.64-3.17l14.8-5.3,8,8L76.11,60.6l-.06.19a6.37,6.37,0,0,1-3,3.43L48.25,74.59,44.62,71Zm16.57,7.82A6.9,6.9,0,1,0,64.64,61,6.91,6.91,0,0,0,71.54,54.09Zm-4.05,0a2.85,2.85,0,1,1-2.85-2.85A2.86,2.86,0,0,1,67.49,54.09Zm-4.13,5.22L60.5,56.45,44.26,72.7l2.86,2.86ZM97.83,35.67,84.14,22l-8.57,8.57L89.26,44.24Zm-13.69-8,8,8-2.85,2.85-8-8Z",transform:"matrix(1 0 0 1 -15 -15)"},drawclosedpath:{width:90,height:90,path:"M88.41,21.12a26.56,26.56,0,0,0-36.18,0l-2.07,2-2.07-2a26.57,26.57,0,0,0-36.18,0,23.74,23.74,0,0,0,0,34.8L48,90.12a3.22,3.22,0,0,0,4.42,0l36-34.21a23.73,23.73,0,0,0,0-34.79ZM84,51.24,50.16,83.35,16.35,51.25a17.28,17.28,0,0,1,0-25.47,20,20,0,0,1,27.3,0l4.29,4.07a3.23,3.23,0,0,0,4.44,0l4.29-4.07a20,20,0,0,1,27.3,0,17.27,17.27,0,0,1,0,25.46ZM66.76,47.68h-33v6.91h33ZM53.35,35H46.44V68h6.91Z",transform:"matrix(1 0 0 1 -5 -5)"},lasso:{width:1031,height:1e3,path:"m1018 538c-36 207-290 336-568 286-277-48-473-256-436-463 10-57 36-108 76-151-13-66 11-137 68-183 34-28 75-41 114-42l-55-70 0 0c-2-1-3-2-4-3-10-14-8-34 5-45 14-11 34-8 45 4 1 1 2 3 2 5l0 0 113 140c16 11 31 24 45 40 4 3 6 7 8 11 48-3 100 0 151 9 278 48 473 255 436 462z m-624-379c-80 14-149 48-197 96 42 42 109 47 156 9 33-26 47-66 41-105z m-187-74c-19 16-33 37-39 60 50-32 109-55 174-68-42-25-95-24-135 8z m360 75c-34-7-69-9-102-8 8 62-16 128-68 170-73 59-175 54-244-5-9 20-16 40-20 61-28 159 121 317 333 354s407-60 434-217c28-159-121-318-333-355z",transform:"matrix(1 0 0 -1 0 850)"},selectbox:{width:1e3,height:1e3,path:"m0 850l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-285l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z",transform:"matrix(1 0 0 -1 0 850)"},drawline:{width:70,height:70,path:"M60.64,62.3a11.29,11.29,0,0,0,6.09-6.72l6.35-17.72L60.54,25.31l-17.82,6.4c-2.36.86-5.57,3.41-6.6,6L24.48,65.5l8.42,8.42ZM40.79,39.63a7.89,7.89,0,0,1,3.65-3.17l14.79-5.31,8,8L61.94,54l-.06.19a6.44,6.44,0,0,1-3,3.43L34.07,68l-3.62-3.63Zm16.57,7.81a6.9,6.9,0,1,0-6.89,6.9A6.9,6.9,0,0,0,57.36,47.44Zm-4,0a2.86,2.86,0,1,1-2.85-2.85A2.86,2.86,0,0,1,53.32,47.44Zm-4.13,5.22L46.33,49.8,30.08,66.05l2.86,2.86ZM83.65,29,70,15.34,61.4,23.9,75.09,37.59ZM70,21.06l8,8-2.84,2.85-8-8ZM87,80.49H10.67V87H87Z",transform:"matrix(1 0 0 1 -15 -15)"},drawrect:{width:80,height:80,path:"M78,22V79H21V22H78m9-9H12V88H87V13ZM68,46.22H31V54H68ZM53,32H45.22V69H53Z",transform:"matrix(1 0 0 1 -10 -10)"},drawcircle:{width:80,height:80,path:"M50,84.72C26.84,84.72,8,69.28,8,50.3S26.84,15.87,50,15.87,92,31.31,92,50.3,73.16,84.72,50,84.72Zm0-60.59c-18.6,0-33.74,11.74-33.74,26.17S31.4,76.46,50,76.46,83.74,64.72,83.74,50.3,68.6,24.13,50,24.13Zm17.15,22h-34v7.11h34Zm-13.8-13H46.24v34h7.11Z",transform:"matrix(1 0 0 1 -10 -10)"},eraseshape:{width:80,height:80,path:"M82.77,78H31.85L6,49.57,31.85,21.14H82.77a8.72,8.72,0,0,1,8.65,8.77V69.24A8.72,8.72,0,0,1,82.77,78ZM35.46,69.84H82.77a.57.57,0,0,0,.49-.6V29.91a.57.57,0,0,0-.49-.61H35.46L17,49.57Zm32.68-34.7-24,24,5,5,24-24Zm-19,.53-5,5,24,24,5-5Z",transform:"matrix(1 0 0 1 -10 -10)"},spikeline:{width:1e3,height:1e3,path:"M512 409c0-57-46-104-103-104-57 0-104 47-104 104 0 57 47 103 104 103 57 0 103-46 103-103z m-327-39l92 0 0 92-92 0z m-185 0l92 0 0 92-92 0z m370-186l92 0 0 93-92 0z m0-184l92 0 0 92-92 0z",transform:"matrix(1.5 0 0 -1.5 0 850)"},pencil:{width:1792,height:1792,path:"M491 1536l91-91-235-235-91 91v107h128v128h107zm523-928q0-22-22-22-10 0-17 7l-542 542q-7 7-7 17 0 22 22 22 10 0 17-7l542-542q7-7 7-17zm-54-192l416 416-832 832h-416v-416zm683 96q0 53-37 90l-166 166-416-416 166-165q36-38 90-38 53 0 91 38l235 234q37 39 37 91z",transform:"matrix(1 0 0 1 0 1)"},newplotlylogo:{name:"newplotlylogo",svg:[""," plotly-logomark"," "," "," "," "," "," "," "," "," "," "," "," "," ",""].join("")}}});var Yb={};Zi(Yb,{CIRCLE_SIDES:()=>Lwe,SQRT2:()=>Vwe,cos45:()=>Owe,i000:()=>zwe,i090:()=>Rwe,i180:()=>Bwe,i270:()=>qwe,sin45:()=>Nwe});var Lwe,zwe,Rwe,Bwe,qwe,Owe,Nwe,Vwe,Wb=Vi(()=>{"use strict";Lwe=32,zwe=0,Rwe=8,Bwe=16,qwe=24,Owe=Math.cos(Math.PI/4),Nwe=Math.sin(Math.PI/4),Vwe=Math.sqrt(2)});var Xb=X((ptt,XG)=>{"use strict";var Uwe=et().strTranslate;function WG(e,t){switch(e.type){case"log":return e.p2d(t);case"date":return e.p2r(t,0,e.calendar);default:return e.p2r(t)}}function Gwe(e,t){switch(e.type){case"log":return e.d2p(t);case"date":return e.r2p(t,0,e.calendar);default:return e.r2p(t)}}function jwe(e){var t=e._id.charAt(0)==="y"?1:0;return function(r){return WG(e,r[t])}}function $we(e){return Uwe(e.xaxis._offset,e.yaxis._offset)}XG.exports={p2r:WG,r2p:Gwe,axValue:jwe,getTransform:$we}});var vf=X(ih=>{"use strict";var Hwe=w8(),QG=(Wb(),ct(Yb)),T1=QG.CIRCLE_SIDES,BM=QG.SQRT2,ej=Xb(),KG=ej.p2r,JG=ej.r2p,Zwe=[0,3,4,5,6,1,2],Ywe=[0,3,4,1,2];ih.writePaths=function(e){var t=e.length;if(!t)return"M0,0Z";for(var r="",i=0;i0&&l{"use strict";var tj=nn(),oj=fd(),Wwe=oj.drawMode,Xwe=oj.openMode,M1=(Wb(),ct(Yb)),rj=M1.i000,ij=M1.i090,aj=M1.i180,nj=M1.i270,Kwe=M1.cos45,Jwe=M1.sin45,sj=Xb(),Jb=sj.p2r,gf=sj.r2p,Qwe=af(),e6e=Qwe.clearOutline,Qb=vf(),t6e=Qb.readPaths,r6e=Qb.writePaths,i6e=Qb.ellipseOver,a6e=Qb.fixDatesForPaths;function n6e(e,t){if(e.length){var r=e[0][0];if(r){var i=t.gd,a=t.isActiveShape,n=t.dragmode,o=(i.layout||{}).shapes||[];if(!Wwe(n)&&a!==void 0){var s=i._fullLayout._activeShapeIndex;if(s{"use strict";var o6e=fd(),s6e=o6e.selectMode,l6e=af(),u6e=l6e.clearOutline,qM=vf(),c6e=qM.readPaths,h6e=qM.writePaths,f6e=qM.fixDatesForPaths;cj.exports=function(t,r){if(t.length){var i=t[0][0];if(i){var a=i.getAttribute("d"),n=r.gd,o=n._fullLayout.newselection,s=r.plotinfo,l=s.xaxis,u=s.yaxis,c=r.isActiveSelection,h=r.dragmode,f=(n.layout||{}).selections||[];if(!s6e(h)&&c!==void 0){var d=n._fullLayout._activeSelectionIndex;if(dg6e,paramIsX:()=>m6e,paramIsY:()=>v6e,paramRE:()=>p6e,segmentRE:()=>d6e});var d6e,p6e,m6e,v6e,g6e,mg=Vi(()=>{"use strict";d6e=/[MLHVQCTSZ][^MLHVQCTSZ]*/g,p6e=/[^\s,]+/g,m6e={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:{}},v6e={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:3},Z:{}},g6e={M:2,L:2,H:1,V:1,Q:4,C:6,T:2,S:4,Z:0}});var _f=X(kn=>{"use strict";var pc=(mg(),ct(pg)),hj=et(),yf=ta();kn.rangeToShapePosition=function(e){return e.type==="log"?e.r2d:function(t){return t}};kn.shapePositionToRange=function(e){return e.type==="log"?e.d2r:function(t){return t}};kn.decodeDate=function(e){return function(t){return t.replace&&(t=t.replace("_"," ")),e(t)}};kn.encodeDate=function(e){return function(t){return e(t).replace(" ","_")}};kn.extractPathCoords=function(e,t,r){var i=[],a=e.match(pc.segmentRE);return a.forEach(function(n){var o=t[n.charAt(0)].drawn;if(o!==void 0){var s=n.slice(1).match(pc.paramRE);if(!(!s||s.length{let s=o.charAt(0),l=a[s].drawn!==void 0;return n+(l?1:0)},0)};kn.getDataToPixel=function(e,t,r,i,a){var n=e._fullLayout._size,o;if(t)if(a==="domain")o=function(l){return t._length*(i?1-l:l)+t._offset};else{var s=kn.shapePositionToRange(t);o=function(l){var u=dc(t,r);return t._offset+t.r2p(s(l,!0))+u},t.type==="date"&&(o=kn.decodeDate(o))}else i?o=function(l){return n.t+n.h*(1-l)}:o=function(l){return n.l+n.w*l};return o};kn.getPixelToData=function(e,t,r,i){var a=e._fullLayout._size,n;if(t)if(i==="domain")n=function(s){var l=(s-t._offset)/t._length;return r?1-l:l};else{var o=kn.rangeToShapePosition(t);n=function(s){return o(t.p2r(s-t._offset))}}else r?n=function(s){return 1-(s-a.t)/a.h}:n=function(s){return(s-a.l)/a.w};return n};kn.roundPositionForSharpStrokeRendering=function(e,t){var r=Math.round(t%2)===1,i=Math.round(e);return r?i+.5:i};kn.makeShapesOptionsAndPlotinfo=function(e,t){var r=e._fullLayout.shapes[t]||{},i=e._fullLayout._plots[r.xref+r.yref],a=!!i;return a?i._hadPlotinfo=!0:(i={},r.xref&&r.xref!=="paper"&&(i.xaxis=e._fullLayout[r.xref+"axis"]),r.yref&&r.yref!=="paper"&&(i.yaxis=e._fullLayout[r.yref+"axis"])),i.xsizemode=r.xsizemode,i.ysizemode=r.ysizemode,i.xanchor=r.xanchor,i.yanchor=r.yanchor,{options:r,plotinfo:i}};kn.makeSelectionsOptionsAndPlotinfo=function(e,t){var r=e._fullLayout.selections[t]||{},i=e._fullLayout._plots[r.xref+r.yref],a=!!i;return a?i._hadPlotinfo=!0:(i={},r.xref&&(i.xaxis=e._fullLayout[r.xref+"axis"]),r.yref&&(i.yaxis=e._fullLayout[r.yref+"axis"])),{options:r,plotinfo:i}};kn.getPathString=function(e,t){let r=t.type,i=yf.getRefType(t.xref),a=yf.getRefType(t.yref),n=e._fullLayout._size;var o,s,l,u,c,h,f,d,p,m,g,y;function x(P,I,B,L){var z;if(P)if(I==="domain")L?z=function(O){return P._offset+P._length*(1-O)}:z=function(O){return P._offset+P._length*O};else{let O=kn.shapePositionToRange(P);z=function(V){return P._offset+P.r2p(O(V,!0))},B==="path"&&P.type==="date"&&(z=kn.decodeDate(z))}else L?z=function(O){return n.t+n.h*(1-O)}:z=function(O){return n.l+n.w*O};return z}if(i==="array"?(f=[],o=t.xref.map(function(P){return yf.getFromId(e,P)}),f=t.xref.map(function(P,I){return x(o[I],yf.getRefType(P),r,!1)})):(o=yf.getFromId(e,t.xref),f=x(o,i,r,!1)),a==="array"?(d=[],s=t.yref.map(function(P){return yf.getFromId(e,P)}),d=t.yref.map(function(P,I){return x(s[I],yf.getRefType(P),r,!0)})):(s=yf.getFromId(e,t.yref),d=x(s,a,r,!0)),r==="path")return y6e(t,f,d);if(i==="array")l=dc(o[0],t.x0shift),u=dc(o[1],t.x1shift),p=f[0](t.x0)+l,m=f[1](t.x1)+u;else if(l=dc(o,t.x0shift),u=dc(o,t.x1shift),t.xsizemode==="pixel"){let P=f(t.xanchor);p=P+t.x0+l,m=P+t.x1+u}else p=f(t.x0)+l,m=f(t.x1)+u;if(a==="array")c=dc(s[0],t.y0shift),h=dc(s[1],t.y1shift),g=d[0](t.y0)+c,y=d[1](t.y1)+h;else if(c=dc(s,t.y0shift),h=dc(s,t.y1shift),t.ysizemode==="pixel"){let P=d(t.yanchor);g=P-t.y0+c,y=P-t.y1+h}else g=d(t.y0)+c,y=d(t.y1)+h;if(r==="line")return"M"+p+","+g+"L"+m+","+y;if(r==="rect")return"M"+p+","+g+"H"+m+"V"+y+"H"+p+"Z";var w=(p+m)/2,_=(g+y)/2,A=Math.abs(w-p),T=Math.abs(_-g),M="A"+A+","+T,S=w+A+","+_,k=w+","+(_-T);return"M"+S+M+" 0 1,1 "+k+M+" 0 0,1 "+S+"Z"};function y6e(e,t,r){let i=e.path,a=e.xsizemode,n=e.ysizemode,o=e.xanchor,s=e.yanchor,l=Array.isArray(e.xref),u=Array.isArray(e.yref);var c=0,h=0;return i.replace(pc.segmentRE,function(f){var d=0,p=f.charAt(0),m=pc.paramIsX[p],g=pc.paramIsY[p],y=pc.numParams[p];let x=m.drawn!==void 0,w=g.drawn!==void 0,_=l?t[c]:t,A=u?r[h]:r;var T=f.slice(1).replace(pc.paramRE,function(M){return m[d]?a==="pixel"?M=_(o)+Number(M):M=_(M):g[d]&&(n==="pixel"?M=A(s)-Number(M):M=A(M)),d++,d>y&&(M="X"),M});return d>y&&(T=T.replace(/[\s,]*X.*/,""),hj.log("Ignoring extra params in segment "+f)),x&&c++,w&&h++,p+T})}kn.getPixelShift=dc;function dc(e,t){t=t||0;var r=0;return t&&e&&(e.type==="category"||e.type==="multicategory")&&(r=(e.r2p(1)-e.r2p(0))*t),r}});var NM=X((_tt,pj)=>{"use strict";var _6e=et(),mc=ta(),fj=sn(),dj=xi(),x6e=vf().readPaths,dd=_f(),b6e=dd.getPathString,vg=Tx(),w6e=(ao(),ct(io)).FROM_TL;pj.exports=function(t,r,i,a){if(a.selectAll(".shape-label").remove(),!!(i.label.text||i.label.texttemplate)){var n;if(i.label.texttemplate){var o={};if(i.type!=="path"){var s=mc.getFromId(t,i.xref),l=mc.getFromId(t,i.yref);let W=Array.isArray(i.xref),le=Array.isArray(i.yref);for(var u in vg){var c=typeof vg[u]=="function",h=!W||vg.simpleXVariables.includes(u),f=!le||vg.simpleYVariables.includes(u);if(c&&h&&f){var d=vg[u](i,s,l);d!==void 0&&(o[u]=d)}}}n=_6e.texttemplateStringForShapes({data:[o],fallback:i.label.texttemplatefallback,locale:t._fullLayout._d3locale,template:i.label.texttemplate})}else n=i.label.text;var p={"data-index":r},m=i.label.font,g={"data-notex":1},y=a.append("g").attr(p).classed("shape-label",!0),x=y.append("text").attr(g).classed("shape-label-text",!0).text(n),w,_,A,T;if(i.path){var M=b6e(t,i),S=x6e(M,t);w=1/0,A=1/0,_=-1/0,T=-1/0;for(var k=0;kdd.getDataToPixel(t,ze,me,!1,He)(ce),re=(ce,me,ze,He)=>dd.getDataToPixel(t,ze,me,!0,He)(ce);if(i.xsizemode==="pixel"){let ce=te(i.xanchor,void 0,pe,Ce),me=dd.getPixelShift(pe,i.x0shift),ze=dd.getPixelShift(pe,i.x1shift);w=ce+i.x0+me,_=ce+i.x1+ze}else w=te(i.x0,i.x0shift,pe,Ce),_=te(i.x1,i.x1shift,_e,Q);if(i.ysizemode==="pixel"){let ce=re(i.yanchor,void 0,De,ae),me=dd.getPixelShift(De,i.y0shift),ze=dd.getPixelShift(De,i.y1shift);A=ce-i.y0+me,T=ce-i.y1+ze}else A=re(i.y0,i.y0shift,De,ae),T=re(i.y1,i.y1shift,de,ye)}var O=i.label.textangle;O==="auto"&&(i.type==="line"?O=A6e(w,A,_,T):O=0),x.call(function(W){return W.call(dj.font,m).attr({}),fj.convertToTspans(W,t),W});var V=dj.bBox(x.node()),$=T6e(w,A,_,T,i,O,V),j=$.textx,H=$.texty,Z=$.xanchor;x.attr({"text-anchor":{left:"start",center:"middle",right:"end"}[Z],y:H,x:j,transform:"rotate("+O+","+j+","+H+")"}).call(fj.positionText,j,H)}};function A6e(e,t,r,i){var a,n;return n=Math.abs(r-e),r>=e?a=t-i:a=i-t,-180/Math.PI*Math.atan2(a,n)}function T6e(e,t,r,i,a,n,o){var s=a.label.textposition,l=a.label.textangle,u=a.label.padding,c=a.type,h=Math.PI/180*n,f=Math.sin(h),d=Math.cos(h),p=a.label.xanchor,m=a.label.yanchor,g,y,x,w;if(c==="line"){s==="start"?(g=e,y=t):s==="end"?(g=r,y=i):(g=(e+r)/2,y=(t+i)/2),p==="auto"&&(s==="start"?l==="auto"?r>e?p="left":re?p="right":re?p="right":re?p="left":r{"use strict";var M6e=et(),D6e=M6e.strTranslate,mj=_l(),yj=fd(),S6e=yj.drawMode,_j=yj.selectMode,xj=mr(),vj=qr(),r3=(Wb(),ct(Yb)),E6e=r3.i000,k6e=r3.i090,C6e=r3.i180,F6e=r3.i270,P6e=af(),bj=P6e.clearOutlineControllers,UM=vf(),t3=UM.pointsOnRectangle,VM=UM.pointsOnEllipse,I6e=UM.writePaths,L6e=e3().newShapes,z6e=e3().createShapeObj,R6e=OM(),B6e=NM();wj.exports=function e(t,r,i,a){a||(a=0);var n=i.gd;function o(){e(t,r,i,a++),(VM(t[0])||i.hasText)&&s({redrawing:!0})}function s($){var j={};i.isActiveShape!==void 0&&(i.isActiveShape=!1,j=L6e(r,i)),i.isActiveSelection!==void 0&&(i.isActiveSelection=!1,j=R6e(r,i),n._fullLayout._reselect=!0),Object.keys(j).length&&xj.call(($||{}).redrawing?"relayout":"_guiRelayout",n,j)}var l=n._fullLayout,u=l._zoomlayer,c=i.dragmode,h=S6e(c),f=_j(c);(h||f)&&(n._fullLayout._outlining=!0),bj(n),r.attr("d",I6e(t));var d,p,m,g,y;if(!a&&(i.isActiveShape||i.isActiveSelection)){y=q6e([],t);var x=u.append("g").attr("class","outline-controllers");P(x),V()}if(h&&i.hasText){var w=u.select(".label-temp"),_=z6e(r,i,i.dragmode);B6e(n,"label-temp",_,w)}function A($){m=+$.srcElement.getAttribute("data-i"),g=+$.srcElement.getAttribute("data-j"),d[m][g].moveFn=T}function T($,j){if(t.length){var H=y[m][g][1],Z=y[m][g][2],W=t[m],le=W.length;if(t3(W)){var pe=$,_e=j;if(i.isActiveSelection){var De=gj(W,g);De[1]===W[g][1]?_e=0:pe=0}for(var de=0;de1&&!($.length===2&&$[1][0]==="Z")&&(g===0&&($[0][0]="M"),t[m]=$,o(),s())}}function k($,j){if($===2){m=+j.srcElement.getAttribute("data-i"),g=+j.srcElement.getAttribute("data-j");var H=t[m];!t3(H)&&!VM(H)&&S()}}function P($){d=[];for(var j=0;j{"use strict";var N6e=Wr(),Ej=mr(),jM=et(),pd=ta(),V6e=vf().readPaths,U6e=i3(),n3=NM(),kj=af().clearOutlineControllers,GM=qr(),o3=xi(),G6e=Bi().arrayEditor,Aj=_l(),Tj=vu(),Mj=pf(),md=(mg(),ct(pg)),fs=_f(),$M=fs.getPathString;Pj.exports={draw:HM,drawOne:Cj,eraseActiveShape:Y6e,drawLabel:n3};function HM(e){var t=e._fullLayout;t._shapeUpperLayer.selectAll("path").remove(),t._shapeLowerLayer.selectAll("path").remove(),t._shapeUpperLayer.selectAll("text").remove(),t._shapeLowerLayer.selectAll("text").remove();for(var r in t._plots){var i=t._plots[r].shapelayer;i&&(i.selectAll("path").remove(),i.selectAll("text").remove())}for(var a=0;a{if(!e._dragging&&e._fullLayout.hoveranywhere){let o=a(n);o&&Tj.hover(e,o,r.id)}}),i.addEventListener("click",n=>{if(!e._dragged&&e._fullLayout.clickanywhere){let o=a(n);o&&Tj.click(e,o,r.id)}})}function Fj(e,t,r){let i=r.xref,a=r.yref;if(Array.isArray(i)||Array.isArray(a)){let n="clip"+t._fullLayout._uid+"shape"+r._index,o=$6e(t,i,a);jM.ensureSingleById(t._fullLayout._clips,"clipPath",n,function(s){s.append("rect")}).select("rect").attr(o),o3.setClipUrl(e,n,t)}else{let n=(i+a).replace(/paper/g,"").replace(/[xyz][0-9]* *domain/g,"");o3.setClipUrl(e,n?"clip"+t._fullLayout._uid+n:null,t)}}function $6e(e,t,r){let i=e._fullLayout._size;function a(s,l){let u=(Array.isArray(s)?s:[s]).map(f=>pd.getFromId(e,f)).filter(Boolean);if(!u.length)return l?[i.t,i.t+i.h]:[i.l,i.l+i.w];let c=u.map(function(f){return f._offset}),h=u.map(function(f){return f._offset+f._length});return[Math.min(...c),Math.max(...h)]}let n=a(t,!1),o=a(r,!0);return{x:n[0],y:o[0],width:n[1]-n[0],height:o[1]-o[0]}}function H6e(e,t,r,i,a,n){var o=10,s=10,l=r.xsizemode==="pixel",u=r.ysizemode==="pixel",c=r.type==="line",h=r.type==="path",f=n.modifyItem,d,p,m,g,y,x,w,_,A,T,M,S,k,P,I,B=N6e.select(t.node().parentNode),L=pd.getFromId(e,r.xref),z=pd.getRefType(r.xref),O=pd.getFromId(e,r.yref),V=pd.getRefType(r.yref),$=r.x0shift,j=r.x1shift,H=r.y0shift,Z=r.y1shift,W=function(qe,se){var je=fs.getDataToPixel(e,L,se,!1,z);return je(qe)},le=function(qe,se){var je=fs.getDataToPixel(e,O,se,!0,V);return je(qe)},pe=fs.getPixelToData(e,L,!1,z),_e=fs.getPixelToData(e,O,!0,V),De=Q(),de={element:De.node(),gd:e,prepFn:te,doneFn:re,clickFn:ce},Ce;Aj.init(de),De.node().onmousemove=ye;function Q(){return c?ae():t}function ae(){var qe=10,se=Math.max(r.line.width,qe),je=a.append("g").attr("data-index",i).attr("drag-helper",!0);je.append("path").attr("d",t.attr("d")).style({cursor:"move","stroke-width":se,"stroke-opacity":"0"});var Re={"fill-opacity":"0"},Ve=Math.max(se/2,qe);return je.append("circle").attr({"data-line-point":"start-point",cx:l?W(r.xanchor)+r.x0:W(r.x0,$),cy:u?le(r.yanchor)-r.y0:le(r.y0,H),r:Ve}).style(Re).classed("cursor-grab",!0),je.append("circle").attr({"data-line-point":"end-point",cx:l?W(r.xanchor)+r.x1:W(r.x1,j),cy:u?le(r.yanchor)-r.y1:le(r.y1,Z),r:Ve}).style(Re).classed("cursor-grab",!0),je}function ye(qe){if(a3(e)){Ce=null;return}if(c)qe.target.tagName==="path"?Ce="move":Ce=qe.target.attributes["data-line-point"].value==="start-point"?"resize-over-start-point":"resize-over-end-point";else{var se=de.element.getBoundingClientRect(),je=se.right-se.left,Re=se.bottom-se.top,Ve=qe.clientX-se.left,ge=qe.clientY-se.top,Ge=!h&&je>o&&Re>s&&!qe.shiftKey?Aj.getCursor(Ve/je,1-ge/Re):"move";Mj(t,Ge),Ce=Ge.split("-")[0]}}function te(qe){a3(e)||(l&&(y=W(r.xanchor)),u&&(x=le(r.yanchor)),r.type==="path"?I=r.path:(d=l?r.x0:W(r.x0),p=u?r.y0:le(r.y0),m=l?r.x1:W(r.x1),g=u?r.y1:le(r.y1)),dg?(w=p,M="y0",_=g,S="y1"):(w=g,M="y1",_=p,S="y0"),ye(qe),He(a,r),Oe(t,r,e),de.moveFn=Ce==="move"?me:ze,de.altKey=qe.altKey)}function re(){a3(e)||(Mj(t),ke(a),Fj(t,e,r),Ej.call("_guiRelayout",e,n.getUpdateObj()))}function ce(){a3(e)||ke(a)}function me(qe,se){if(r.type==="path"){var je=function(ge){return ge},Re=je,Ve=je;l?f("xanchor",r.xanchor=pe(y+qe)):(Re=function(Ge){return pe(W(Ge)+qe)},L&&L.type==="date"&&(Re=fs.encodeDate(Re))),u?f("yanchor",r.yanchor=_e(x+se)):(Ve=function(Ge){return _e(le(Ge)+se)},O&&O.type==="date"&&(Ve=fs.encodeDate(Ve))),f("path",r.path=Dj(I,Re,Ve))}else l?f("xanchor",r.xanchor=pe(y+qe)):(f("x0",r.x0=pe(d+qe)),f("x1",r.x1=pe(m+qe))),u?f("yanchor",r.yanchor=_e(x+se)):(f("y0",r.y0=_e(p+se)),f("y1",r.y1=_e(g+se)));t.attr("d",$M(e,r)),He(a,r),n3(e,i,r,B)}function ze(qe,se){if(h){var je=function(st){return st},Re=je,Ve=je;l?f("xanchor",r.xanchor=pe(y+qe)):(Re=function(vt){return pe(W(vt)+qe)},L&&L.type==="date"&&(Re=fs.encodeDate(Re))),u?f("yanchor",r.yanchor=_e(x+se)):(Ve=function(vt){return _e(le(vt)+se)},O&&O.type==="date"&&(Ve=fs.encodeDate(Ve))),f("path",r.path=Dj(I,Re,Ve))}else if(c){if(Ce==="resize-over-start-point"){var ge=d+qe,Ge=u?p-se:p+se;f("x0",r.x0=l?ge:pe(ge)),f("y0",r.y0=u?Ge:_e(Ge))}else if(Ce==="resize-over-end-point"){var tt=m+qe,ie=u?g-se:g+se;f("x1",r.x1=l?tt:pe(tt)),f("y1",r.y1=u?ie:_e(ie))}}else{var we=function(st){return Ce.indexOf(st)!==-1},ot=we("n"),At=we("s"),$e=we("w"),Ee=we("e"),Me=ot?w+se:w,We=At?_+se:_,lt=$e?A+qe:A,Qe=Ee?T+qe:T;u&&(ot&&(Me=w-se),At&&(We=_-se)),(!u&&We-Me>s||u&&Me-We>s)&&(f(M,r[M]=u?Me:_e(Me)),f(S,r[S]=u?We:_e(We))),Qe-lt>o&&(f(k,r[k]=l?lt:pe(lt)),f(P,r[P]=l?Qe:pe(Qe)))}t.attr("d",$M(e,r)),He(a,r),n3(e,i,r,B)}function He(qe,se){(l||u)&&je();function je(){var Re=se.type!=="path",Ve=qe.selectAll(".visual-cue").data([0]),ge=1;Ve.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":ge}).classed("visual-cue",!0);var Ge=W(l?se.xanchor:jM.midRange(Re?[se.x0,se.x1]:fs.extractPathCoords(se.path,md.paramIsX))),tt=le(u?se.yanchor:jM.midRange(Re?[se.y0,se.y1]:fs.extractPathCoords(se.path,md.paramIsY)));if(Ge=fs.roundPositionForSharpStrokeRendering(Ge,ge),tt=fs.roundPositionForSharpStrokeRendering(tt,ge),l&&u){var ie="M"+(Ge-1-ge)+","+(tt-1-ge)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";Ve.attr("d",ie)}else if(l){var we="M"+(Ge-1-ge)+","+(tt-9-ge)+"v18 h2 v-18 Z";Ve.attr("d",we)}else{var ot="M"+(Ge-9-ge)+","+(tt-1-ge)+"h18 v2 h-18 Z";Ve.attr("d",ot)}}}function ke(qe){qe.selectAll(".visual-cue").remove()}function Oe(qe,se,je){var Re=se.xref,Ve=se.yref,ge=pd.getFromId(je,Re),Ge=pd.getFromId(je,Ve),tt="";Re!=="paper"&&!ge.autorange&&(tt+=Re),Ve!=="paper"&&!Ge.autorange&&(tt+=Ve),o3.setClipUrl(qe,tt?"clip"+je._fullLayout._uid+tt:null,je)}}function Dj(e,t,r){return e.replace(md.segmentRE,function(i){var a=0,n=i.charAt(0),o=md.paramIsX[n],s=md.paramIsY[n],l=md.numParams[n],u=i.slice(1).replace(md.paramRE,function(c){return a>=l||(o[a]?c=t(c):s[a]&&(c=r(c)),a++),c});return n+u})}function Z6e(e,t){if(s3(e)){var r=t.node(),i=+r.getAttribute("data-index");if(i>=0){if(i===e._fullLayout._activeShapeIndex){Sj(e);return}e._fullLayout._activeShapeIndex=i,e._fullLayout._deactivateShape=Sj,HM(e)}}}function Sj(e){if(s3(e)){var t=e._fullLayout._activeShapeIndex;t>=0&&(kj(e),delete e._fullLayout._activeShapeIndex,HM(e))}}function Y6e(e){if(s3(e)){kj(e);var t=e._fullLayout._activeShapeIndex,r=(e.layout||{}).shapes||[];if(t{"use strict";var D1=et()._,W6e=function(e){return{DIALOG_TITLE:D1(e,"Share chart"),DIALOG_MESSAGE_CLOUD:D1(e,"This chart will be uploaded to {Plotly Cloud} to create a sharing link. Only you can see it until you change its visibility."),DIALOG_MESSAGE_CLOUD_ACCOUNT:D1(e,"If you don't have a Plotly Cloud account yet, you'll have a chance to create one."),DIALOG_MESSAGE_OTHER:D1(e,"This chart will be sent to {serverUrl}."),DIALOG_CANCEL:D1(e,"Cancel"),DIALOG_CONFIRM:D1(e,"Share")}};Ij.exports=W6e});var Bj=X((Att,Rj)=>{"use strict";var zj=Wr(),{dfltConfig:X6e}=Hh(),K6e=Lj(),J6e=(e,t,r,i,a)=>{let n=K6e(e),o=t.append("div").classed("plotly-cloud-dialog-box",!0);if(o.append("div").classed("plotly-cloud-dialog-title",!0).text(n.DIALOG_TITLE),r===X6e.plotlyServerURL){let l=o.append("div").classed("plotly-cloud-dialog-message",!0),u=new URL(r).origin,c=n.DIALOG_MESSAGE_CLOUD.split(/(\{|\})/),h=c[0],f=c[2],d=c[4];l.append("span").text(h),l.append("a").classed("plotly-cloud-dialog-message--hostname",!0).attr("href",u).attr("target","_blank").text(f),l.append("span").text(d),l.append("div").classed("plotly-cloud-dialog-message--account",!0).text(n.DIALOG_MESSAGE_CLOUD_ACCOUNT)}else{let l=new URL(r),u=l.hostname,c=l.origin,h=n.DIALOG_MESSAGE_OTHER.split(/(\{|\})/),f=h[0],d=h[4],p=o.append("div").classed("plotly-cloud-dialog-message",!0);p.append("span").text(f),p.append("a").classed("plotly-cloud-dialog-message--hostname",!0).attr("href",c).attr("target","_blank").text(u),p.append("span").text(d)}let s=o.append("div").classed("plotly-cloud-dialog-buttons",!0);s.append("button").classed("plotly-cloud-dialog-btn",!0).classed("plotly-cloud-dialog-btn--cancel",!0).text(n.DIALOG_CANCEL).on("click",a),s.append("button").classed("plotly-cloud-dialog-btn",!0).classed("plotly-cloud-dialog-btn--confirm",!0).text(n.DIALOG_CONFIRM).on("click",i)},Q6e=(e,t,r)=>{let i=zj.select(e._fullLayout._paperdiv.node());i.selectAll(".plotly-cloud-dialog").remove();let a=i.append("div").classed("plotly-cloud-dialog",!0),n=()=>{a.remove(),document.removeEventListener("keydown",o)},o=s=>{(s.key==="Escape"||s.keyCode===27)&&n()};document.addEventListener("keydown",o),a.on("click",()=>{zj.event.target===a.node()&&n()}),J6e(e,a,t,()=>{n(),r()},n)};Rj.exports=Q6e});var WM=X((Ttt,jj)=>{"use strict";var Vs=mr(),eAe=gn(),Oj=nn(),ni=Zb(),tAe=l3().eraseActiveShape,rAe=Bj(),S1=et(),Nr=S1._,ii={};jj.exports=ii;ii.toImage={name:"toImage",title:function(e){var t=e._context.toImageButtonOptions||{},r=t.format||"png";return r==="png"?Nr(e,"Download plot as a PNG"):Nr(e,"Download plot")},icon:ni.camera,click:function(e){var t=e._context.toImageButtonOptions,r={format:t.format||"png"};S1.notifier(Nr(e,"Preparing image - this may take a few seconds"),"long",e),["filename","width","height","scale"].forEach(function(i){i in t&&(r[i]=t[i])}),Vs.call("downloadImage",e,r).then(function(i){S1.notifier(Nr(e,"Image download succeeded")+" - "+i,"long",e)}).catch(function(){S1.notifier(Nr(e,"Sorry, there was a problem downloading your image!"),"long",e)})}};ii.downloadJson={name:"downloadJson",title:function(e){return Nr(e,"Download plot as JSON")},icon:ni.curlybraces,click:function(e){Vs.call("downloadImage",e,{format:"full-json"}).then(function(t){S1.notifier(Nr(e,"JSON download succeeded")+" - "+t,"long",e)}).catch(function(){S1.notifier(Nr(e,"Sorry, there was a problem downloading your JSON file!"),"long",e)})}};ii.sendChartToCloud={name:"sendChartToCloud",title:function(e){return Nr(e,"Share chart...")},icon:ni.cloudupload,click:function(e){var t=(window.PLOTLYENV||{}).BASE_URL||e._context.plotlyServerURL;if(!t){console.error("No destination URL provided (plotlyServerURL is empty)");return}var r;try{r=new URL(t)}catch(a){console.error("Invalid plotlyServerURL: "+t);return}let i=["http:","https:"];if(!i.includes(r.protocol)){console.error(`Invalid protocol '${r.protocol}' in plotlyServerURL '${t}'. Must be one of: ${i.join(", ")}`);return}rAe(e,t,function(){eAe.sendDataToCloud(e,t)})}};ii.zoom2d={name:"zoom2d",_cat:"zoom",title:function(e){return Nr(e,"Zoom")},attr:"dragmode",val:"zoom",icon:ni.zoombox,click:Mo};ii.pan2d={name:"pan2d",_cat:"pan",title:function(e){return Nr(e,"Pan")},attr:"dragmode",val:"pan",icon:ni.pan,click:Mo};ii.select2d={name:"select2d",_cat:"select",title:function(e){return Nr(e,"Box Select")},attr:"dragmode",val:"select",icon:ni.selectbox,click:Mo};ii.lasso2d={name:"lasso2d",_cat:"lasso",title:function(e){return Nr(e,"Lasso Select")},attr:"dragmode",val:"lasso",icon:ni.lasso,click:Mo};ii.drawclosedpath={name:"drawclosedpath",title:function(e){return Nr(e,"Draw closed freeform")},attr:"dragmode",val:"drawclosedpath",icon:ni.drawclosedpath,click:Mo};ii.drawopenpath={name:"drawopenpath",title:function(e){return Nr(e,"Draw open freeform")},attr:"dragmode",val:"drawopenpath",icon:ni.drawopenpath,click:Mo};ii.drawline={name:"drawline",title:function(e){return Nr(e,"Draw line")},attr:"dragmode",val:"drawline",icon:ni.drawline,click:Mo};ii.drawrect={name:"drawrect",title:function(e){return Nr(e,"Draw rectangle")},attr:"dragmode",val:"drawrect",icon:ni.drawrect,click:Mo};ii.drawcircle={name:"drawcircle",title:function(e){return Nr(e,"Draw circle")},attr:"dragmode",val:"drawcircle",icon:ni.drawcircle,click:Mo};ii.eraseshape={name:"eraseshape",title:function(e){return Nr(e,"Erase active shape")},icon:ni.eraseshape,click:tAe};ii.zoomIn2d={name:"zoomIn2d",_cat:"zoomin",title:function(e){return Nr(e,"Zoom in")},attr:"zoom",val:"in",icon:ni.zoom_plus,click:Mo};ii.zoomOut2d={name:"zoomOut2d",_cat:"zoomout",title:function(e){return Nr(e,"Zoom out")},attr:"zoom",val:"out",icon:ni.zoom_minus,click:Mo};ii.autoScale2d={name:"autoScale2d",_cat:"autoscale",title:function(e){return Nr(e,"Autoscale")},attr:"zoom",val:"auto",icon:ni.autoscale,click:Mo};ii.resetScale2d={name:"resetScale2d",_cat:"resetscale",title:function(e){return Nr(e,"Reset axes")},attr:"zoom",val:"reset",icon:ni.home,click:Mo};ii.hoverClosestCartesian={name:"hoverClosestCartesian",_cat:"hoverclosest",title:function(e){return Nr(e,"Show closest data on hover")},attr:"hovermode",val:"closest",icon:ni.tooltip_basic,gravity:"ne",click:Mo};ii.hoverCompareCartesian={name:"hoverCompareCartesian",_cat:"hoverCompare",title:function(e){return Nr(e,"Compare data on hover")},attr:"hovermode",val:function(e){return e._fullLayout._isHoriz?"y":"x"},icon:ni.tooltip_compare,gravity:"ne",click:Mo};function Mo(e,t){var r=t.currentTarget,i=r.getAttribute("data-attr"),a=r.getAttribute("data-val")||!0,n=e._fullLayout,o={},s=Oj.list(e,null,!0),l=n._cartesianSpikesEnabled,u,c;if(i==="zoom"){var h=a==="in"?.5:2,f=(1+h)/2,d=(1-h)/2,p,m;for(c=0;c-T),[m,g]=h.invert(c.midPt),{minscale:y}=u.projection,x=(s=u.projection.maxscale)!=null?s:1/0,w=Math.min(y,x),_=Math.max(y,x),A=a==="in"?qj*f:1/qj*f;A>_?A=_:A{"use strict";var $j=WM(),oAe=Object.keys($j),Hj=["drawline","drawopenpath","drawclosedpath","drawcircle","drawrect","eraseshape"],Zj=["v1hovermode","hoverclosest","hovercompare","togglehover","togglespikelines"].concat(Hj,["downloadJson"]),E1=[],sAe=function(e){if(Zj.indexOf(e._cat||e.name)===-1){var t=e.name,r=(e._cat||e.name).toLowerCase();E1.indexOf(t)===-1&&E1.push(t),E1.indexOf(r)===-1&&E1.push(r)}};oAe.forEach(function(e){sAe($j[e])});E1.sort();Yj.exports={DRAW_MODES:Hj,backButtons:Zj,foreButtons:E1}});var JM={};Zi(JM,{default:()=>uAe});var KM,lAe,uAe,QM=Vi(()=>{"use strict";KM=wA(XM()),lAe={editType:"modebar",orientation:{valType:"enumerated",values:["v","h"],dflt:"h",editType:"modebar",description:"Sets the orientation of the modebar."},bgcolor:{valType:"color",editType:"modebar",description:"Sets the background color of the modebar."},color:{valType:"color",editType:"modebar",description:"Sets the color of the icons in the modebar."},activecolor:{valType:"color",editType:"modebar",description:"Sets the color of the active or hovered on icons in the modebar."},uirevision:{valType:"any",editType:"none",description:["Controls persistence of user-driven changes related to the modebar,","including `hovermode`, `dragmode`, and `showspikes` at both the","root level and inside subplots. Defaults to `layout.uirevision`."].join(" ")},add:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar",description:["Determines which predefined modebar buttons to add.","Please note that these buttons will only be shown if they are","compatible with all trace types used in a graph.","Similar to `config.modeBarButtonsToAdd` option.",`This may include *${KM.default.backButtons.join("*, *")}*.`].join(" ")},remove:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar",description:["Determines which predefined modebar buttons to remove.","Similar to `config.modeBarButtonsToRemove` option.",`This may include *${KM.default.foreButtons.join("*, *")}*.`].join(" ")}},uAe=lAe});var Xj=X((Dtt,Wj)=>{"use strict";var cAe=et(),gg=qr(),hAe=Bi(),fAe=(QM(),ct(JM)).default;Wj.exports=function(t,r){var i=t.modebar||{},a=hAe.newContainer(r,"modebar");function n(s,l){return cAe.coerce(i,a,fAe,s,l)}n("orientation"),n("bgcolor",gg.addOpacity(r.paper_bgcolor,.5));var o=gg.contrast(gg.rgb(r.modebar.bgcolor));n("color",gg.addOpacity(o,.3)),n("activecolor",gg.addOpacity(o,.7)),n("uirevision",r.uirevision),n("add"),n("remove")}});var e$=X((Stt,Qj)=>{"use strict";var eD=Wr(),dAe=Br(),h3=et(),Kj=Zb(),pAe=uv().version,mAe=new DOMParser;function Jj(e){this.container=e.container,this.element=document.createElement("div"),this.update(e.graphInfo,e.buttons),this.container.appendChild(this.element)}var vc=Jj.prototype;vc.update=function(e,t){this.graphInfo=e;var r=this.graphInfo._context,i=this.graphInfo._fullLayout,a="modebar-"+i._uid;this.element.setAttribute("id",a),this.element.setAttribute("role","toolbar"),this._uid=a,this.element.className="modebar modebar--custom",r.displayModeBar==="hover"&&(this.element.className+=" modebar--hover ease-bg"),i.modebar.orientation==="v"&&(this.element.className+=" vertical",t=t.reverse());var n=i.modebar,o="#"+a+" .modebar-group";document.querySelectorAll(o).forEach(function(h){h.style.backgroundColor=n.bgcolor});var s=!this.hasButtons(t),l=this.hasLogo!==r.displaylogo,u=this.locale!==r.locale;if(this.locale=r.locale,(s||l||u)&&(this.removeAllButtons(),this.updateButtons(t),r.watermark||r.displaylogo)){var c=this.getLogo();r.watermark&&(c.className=c.className+" watermark"),i.modebar.orientation==="v"?this.element.insertBefore(c,this.element.childNodes[0]):this.element.appendChild(c),this.hasLogo=!0}this.updateActiveButton(),h3.setStyleOnHover("#"+a+" .modebar-btn",".active",".icon path","fill: "+n.activecolor,"fill: "+n.color,this.element)};vc.updateButtons=function(e){var t=this;this.buttons=e,this.buttonElements=[],this.buttonsNames=[],this.buttons.forEach(function(r){var i=t.createGroup();r.forEach(function(a){var n=a.name;if(!n)throw new Error("must provide button 'name' in button config");if(t.buttonsNames.indexOf(n)!==-1)throw new Error("button name '"+n+"' is taken");t.buttonsNames.push(n);var o=t.createButton(a);t.buttonElements.push(o),i.appendChild(o)}),t.element.appendChild(i)})};vc.createGroup=function(){var e=document.createElement("div");e.className="modebar-group";var t=this.graphInfo._fullLayout.modebar;return e.style.backgroundColor=t.bgcolor,e};vc.createButton=function(e){var t=this,r=document.createElement("button");r.setAttribute("type","button"),r.setAttribute("rel","tooltip"),r.className="modebar-btn";var i=e.title;i===void 0?i=e.name:typeof i=="function"&&(i=i(this.graphInfo)),(i||i===0)&&(r.setAttribute("data-title",i),r.setAttribute("aria-label",i)),e.attr!==void 0&&r.setAttribute("data-attr",e.attr);var a=e.val;a!==void 0&&(typeof a=="function"&&(a=a(this.graphInfo)),r.setAttribute("data-val",a));var n=e.click;if(typeof n!="function")throw new Error("must provide button 'click' function in button config");r.addEventListener("click",function(s){e.click(t.graphInfo,s),t.updateActiveButton(s.currentTarget)}),r.setAttribute("data-toggle",e.toggle||!1),e.toggle&&eD.select(r).classed("active",!0);var o=e.icon;return typeof o=="function"?r.appendChild(o()):r.appendChild(this.createIcon(o||Kj.question)),r.setAttribute("data-gravity",e.gravity||"n"),r};vc.createIcon=function(e){var t=dAe(e.height)?Number(e.height):e.ascent-e.descent,r="http://www.w3.org/2000/svg",i;if(e.path){i=document.createElementNS(r,"svg"),i.setAttribute("viewBox",[0,0,e.width,t].join(" ")),i.setAttribute("class","icon");var a=document.createElementNS(r,"path");a.setAttribute("d",e.path),e.transform?a.setAttribute("transform",e.transform):e.ascent!==void 0&&a.setAttribute("transform","matrix(1 0 0 -1 0 "+e.ascent+")"),i.appendChild(a)}if(e.svg){var n=mAe.parseFromString(e.svg,"application/xml");i=n.childNodes[0]}return i.setAttribute("height","1em"),i.setAttribute("width","1em"),i};vc.updateActiveButton=function(e){var t=this.graphInfo._fullLayout,r=e!==void 0?e.getAttribute("data-attr"):null;this.buttonElements.forEach(function(i){var a=i.getAttribute("data-val")||!0,n=i.getAttribute("data-attr"),o=i.getAttribute("data-toggle")==="true",s=eD.select(i),l=function(h,f){var d=t.modebar,p=h.querySelector(".icon path");p&&(f||h.matches(":hover")?p.style.fill=d.activecolor:p.style.fill=d.color)};if(o){if(n===r){var u=!s.classed("active");s.classed("active",u),l(i,u)}}else{var c=n===null?n:h3.nestedProperty(t,n).get();s.classed("active",c===a),l(i,c===a)}})};vc.hasButtons=function(e){var t=this.buttons;if(!t||e.length!==t.length)return!1;for(var r=0;r{"use strict";var yAe=nn(),t$=wo(),tD=mr(),_Ae=nc().isUnifiedHover,xAe=e$(),f3=WM(),bAe=XM().DRAW_MODES,wAe=et().extendDeep;r$.exports=function(t){var r=t._fullLayout,i=t._context,a=r._modeBar;if(!i.displayModeBar&&!i.watermark){a&&(a.destroy(),delete r._modeBar);return}if(!Array.isArray(i.modeBarButtonsToRemove))throw new Error(["*modeBarButtonsToRemove* configuration options","must be an array."].join(" "));if(!Array.isArray(i.modeBarButtonsToAdd))throw new Error(["*modeBarButtonsToAdd* configuration options","must be an array."].join(" "));var n=i.modeBarButtons,o;Array.isArray(n)&&n.length?o=EAe(n):!i.displayModeBar&&i.watermark?o=[]:o=AAe(t),a?a.update(t,o):r._modeBar=xAe(t,o)};function AAe(e){var t=e._fullLayout,r=e._fullData,i=e._context;function a(j,H){if(typeof H=="string"){if(H.toLowerCase()===j.toLowerCase())return!0}else{var Z=H.name,W=H._cat||H.name;if(Z===j||W===j.toLowerCase())return!0}return!1}var n=t.modebar.add;typeof n=="string"&&(n=[n]);var o=t.modebar.remove;typeof o=="string"&&(o=[o]);var s=i.modeBarButtonsToAdd.concat(n.filter(function(j){for(var H=0;H1?(k=["toggleHover"],P=["resetViews"]):h?(S=["zoomInGeo","zoomOutGeo"],k=["hoverClosestGeo"],P=["resetGeo"]):c?(k=["hoverClosest3d"],P=["resetCameraDefault3d","resetCameraLastSave3d"]):m?(S=["zoomInMap","zoomOutMap"],k=["toggleHover"],P=["resetViewMap"]):f?k=["hoverClosestPie"]:x?(k=["hoverClosestCartesian","hoverCompareCartesian"],P=["resetViewSankey"]):k=["toggleHover"],u&&k.push("toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"),(DAe(r)||_)&&(k=[]),u&&!w&&(S=["zoomIn2d","zoomOut2d","autoScale2d"],P[0]!=="resetViews"&&(P=["resetScale2d"])),c?I=["zoom3d","pan3d","orbitRotation","tableRotation"]:u&&!w||p?I=["zoom2d","pan2d"]:m||h?I=["pan2d"]:g&&(I=["zoom2d"]),MAe(r)&&I.push("select2d","lasso2d");var B=[],L=function(j){B.indexOf(j)===-1&&k.indexOf(j)!==-1&&B.push(j)};if(Array.isArray(s)){for(var z=[],O=0;O{"use strict";a$.exports={moduleType:"component",name:"modebar",layoutAttributes:(QM(),ct(JM)).default,supplyLayoutDefaults:Xj(),manage:i$()}});var iD=X((Ctt,n$)=>{"use strict";var kAe=(ao(),ct(io)).FROM_BL;n$.exports=function(t,r,i){i===void 0&&(i=kAe[t.constraintoward||"center"]);var a=[t.r2l(t.range[0]),t.r2l(t.range[1])],n=a[0]+(a[1]-a[0])*i;t.range=t._input.range=[t.l2r(n+(a[0]-n)*r),t.l2r(n+(a[1]-n)*r)],t.setScale()}});var _g=X(yg=>{"use strict";var vd=et(),aD=eg(),gu=nn().id2name,CAe=pu(),o$=iD(),FAe=_b(),PAe=(Ki(),ct(na)).ALMOST_EQUAL,IAe=(ao(),ct(io)).FROM_BL;yg.handleDefaults=function(e,t,r){var i=r.axIds,a=r.axHasImage,n=t._axisConstraintGroups=[],o=t._axisMatchGroups=[],s,l,u,c,h,f,d,p;for(s=0;sn?r.slice(n):i.slice(a))+o}function zAe(e,t){for(var r=t._size,i=r.h/r.w,a={},n=Object.keys(e),o=0;oPAe*p&&!x)){for(n=0;nB&&ZP&&(P=Z);var le=(P-k)/(2*I);h/=le,k=l.l2r(k),P=l.l2r(P),l.range=l._input.range=T{"use strict";var p3=Wr(),Do=mr(),Us=gn(),wl=et(),sD=sn(),lD=Hb(),xg=qr(),k1=xi(),c$=Jv(),m$=rD(),bg=ta(),ah=(ao(),ct(io)),v$=_g(),RAe=v$.enforce,BAe=v$.clean,h$=eg().doAutoRange,g$="start",qAe="middle",y$="end",OAe=(vn(),ct(mn)).zindexSeparator;_n.layoutStyles=function(e){return wl.syncOrAsync([Us.doAutoMargin,VAe],e)};function NAe(e,t,r){for(var i=0;i=e[1]||a[1]<=e[0])&&n[0]t[0])return!0}return!1}function VAe(e){var t=e._fullLayout,r=t._size,i=r.p,a=bg.list(e,"",!0),n,o,s,l,u,c;if(t._paperdiv.style({width:e._context.responsive&&t.autosize&&!e._context._hasZeroWidth&&!e.layout.width?"100%":t.width+"px",height:e._context.responsive&&t.autosize&&!e._context._hasZeroHeight&&!e.layout.height?"100%":t.height+"px"}).selectAll(".main-svg").call(k1.setSize,t.width,t.height),e._context.setBackground(e,t.paper_bgcolor),_n.drawMainTitle(e),m$.manage(e),!t._has("cartesian"))return Us.previousPromises(e);function h(te,re,ce){var me=te._lw/2;if(te._id.charAt(0)==="x"){if(re){if(ce==="top")return re._offset-i-me}else return r.t+r.h*(1-(te.position||0))+me%1;return re._offset+re._length+i+me}if(re){if(ce==="right")return re._offset+re._length+i+me}else return r.l+r.w*(te.position||0)+me%1;return re._offset-i-me}for(n=0;n0){$Ae(e,n,u,l),s.attr({x:o,y:n,"text-anchor":i,dy:p$(t.yanchor)}).call(sD.positionText,o,n);var c=(t.text.match(sD.BR_TAG_ALL)||[]).length;if(c){var h=ah.LINE_SPACING*c+ah.MID_SHIFT;t.y===0&&(h=-h),s.selectAll(".line").each(function(){var g=+this.getAttribute("dy").slice(0,-2)-h+"em";this.setAttribute("dy",g)})}var f=p3.select(e).selectAll(".gtitle-subtitle");if(f.node()){var d=s.node().getBBox(),p=d.y+d.height,m=p+c$.SUBTITLE_PADDING_EM*t.subtitle.font.size;f.attr({x:o,y:m,"text-anchor":i,dy:p$(t.yanchor)}).call(sD.positionText,o,m)}}}};function UAe(e,t,r,i,a){var n=t.yref==="paper"?e._fullLayout._size.h:e._fullLayout.height,o=wl.isTopAnchor(t)?i:i-a,s=r==="b"?n-o:o;return wl.isTopAnchor(t)&&r==="t"||wl.isBottomAnchor(t)&&r==="b"?!1:s.5?"t":"b",o=e._fullLayout.margin[n],s=0;return t.yref==="paper"?s=r+t.pad.t+t.pad.b:t.yref==="container"&&(s=GAe(n,i,a,e._fullLayout.height,r)+t.pad.t+t.pad.b),s>o?s:0}function $Ae(e,t,r,i){var a="title.automargin",n=e._fullLayout.title,o=n.y>.5?"t":"b",s={x:n.x,y:n.y,t:0,b:0},l={};n.yref==="paper"&&UAe(e,n,o,t,i)?s[o]=r:n.yref==="container"&&(l[o]=r,e._fullLayout._reservedMargin[a]=l),Us.allowAutoMargin(e,a),Us.autoMargin(e,a,s)}function HAe(e,t){var r=e.title,i=e._size,a=0;return t===g$?a=r.pad.l:t===y$&&(a=-r.pad.r),r.xref==="paper"?i.l+i.w*r.x+a:e.width*r.x+a}function ZAe(e,t){var r=e.title,i=e._size,a=0;return t==="0em"||!t?a=-r.pad.b:t===ah.CAP_SHIFT+"em"&&(a=r.pad.t),r.y==="auto"?i.t/2:r.yref==="paper"?i.t+i.h-i.h*r.y+a:e.height-e.height*r.y+a}function p$(e){return e==="top"?ah.CAP_SHIFT+.3+"em":e==="bottom"?"-0.3em":ah.MID_SHIFT+"em"}function YAe(e){var t=e.title,r=qAe;return wl.isRightAnchor(t)?r=y$:wl.isLeftAnchor(t)&&(r=g$),r}function WAe(e){var t=e.title,r="0em";return wl.isTopAnchor(t)?r=ah.CAP_SHIFT+"em":wl.isMiddleAnchor(t)&&(r=ah.MID_SHIFT+"em"),r}_n.doTraceStyle=function(e){var t=e.calcdata,r=[],i;for(i=0;i{"use strict";var XAe=vf().readPaths,KAe=i3(),_$=af().clearOutlineControllers,uD=qr(),x$=xi(),JAe=Bi().arrayEditor,b$=_f(),QAe=b$.getPathString;A$.exports={draw:v3,drawOne:w$,activateLastSelection:rTe};function v3(e){var t=e._fullLayout;_$(e),t._selectionLayer.selectAll("path").remove();for(var r in t._plots){var i=t._plots[r].selectionLayer;i&&i.selectAll("path").remove()}for(var a=0;a=0;g--){var y=o.append("path").attr(l).style("opacity",g?.1:u).call(uD.stroke,h).call(uD.fill,c).call(x$.dashLine,g?"solid":d,g?4+f:f);if(eTe(y,e,i),p){var x=JAe(e.layout,"selections",i);y.style({cursor:"move"});var w={element:y.node(),plotinfo:a,gd:e,editHelpers:x,isActiveSelection:!0},_=XAe(s,e);KAe(_,y,w)}else y.style("pointer-events",g?"all":"none");m[g]=y}var A=m[0],T=m[1];T.node().addEventListener("click",function(){return tTe(e,A)})}}function eTe(e,t,r){var i=r.xref+r.yref;x$.setClipUrl(e,"clip"+t._fullLayout._uid+i,t)}function tTe(e,t){if(g3(e)){var r=t.node(),i=+r.getAttribute("data-index");if(i>=0){if(i===e._fullLayout._activeSelectionIndex){cD(e);return}e._fullLayout._activeSelectionIndex=i,e._fullLayout._deactivateSelection=cD,v3(e)}}}function rTe(e){if(g3(e)){var t=e._fullLayout.selections.length-1;e._fullLayout._activeSelectionIndex=t,e._fullLayout._deactivateSelection=cD,v3(e)}}function cD(e){if(g3(e)){var t=e._fullLayout._activeSelectionIndex;t>=0&&(_$(e),delete e._fullLayout._activeSelectionIndex,v3(e))}}});var M$=X((Ltt,T$)=>{function iTe(){var e,t=0,r=!1;function i(a,n){return e.list.push({type:a,data:n?JSON.parse(JSON.stringify(n)):void 0}),e}return e={list:[],segmentId:function(){return t++},checkIntersection:function(a,n){return i("check",{seg1:a,seg2:n})},segmentChop:function(a,n){return i("div_seg",{seg:a,pt:n}),i("chop",{seg:a,pt:n})},statusRemove:function(a){return i("pop_seg",{seg:a})},segmentUpdate:function(a){return i("seg_update",{seg:a})},segmentNew:function(a,n){return i("new_seg",{seg:a,primary:n})},segmentRemove:function(a){return i("rem_seg",{seg:a})},tempStatus:function(a,n,o){return i("temp_status",{seg:a,above:n,below:o})},rewind:function(a){return i("rewind",{seg:a})},status:function(a,n,o){return i("status",{seg:a,above:n,below:o})},vert:function(a){return a===r?e:(r=a,i("vert",{x:a}))},log:function(a){return typeof a!="string"&&(a=JSON.stringify(a,!1," ")),i("log",{txt:a})},reset:function(){return i("reset")},selected:function(a){return i("selected",{segs:a})},chainStart:function(a){return i("chain_start",{seg:a})},chainRemoveHead:function(a,n){return i("chain_rem_head",{index:a,pt:n})},chainRemoveTail:function(a,n){return i("chain_rem_tail",{index:a,pt:n})},chainNew:function(a,n){return i("chain_new",{pt1:a,pt2:n})},chainMatch:function(a){return i("chain_match",{index:a})},chainClose:function(a){return i("chain_close",{index:a})},chainAddHead:function(a,n){return i("chain_add_head",{index:a,pt:n})},chainAddTail:function(a,n){return i("chain_add_tail",{index:a,pt:n})},chainConnect:function(a,n){return i("chain_con",{index1:a,index2:n})},chainReverse:function(a){return i("chain_rev",{index:a})},chainJoin:function(a,n){return i("chain_join",{index1:a,index2:n})},done:function(){return i("done")}},e}T$.exports=iTe});var S$=X((ztt,D$)=>{function aTe(e){typeof e!="number"&&(e=1e-10);var t={epsilon:function(r){return typeof r=="number"&&(e=r),e},pointAboveOrOnLine:function(r,i,a){var n=i[0],o=i[1],s=a[0],l=a[1],u=r[0],c=r[1];return(s-n)*(c-o)-(l-o)*(u-n)>=-e},pointBetween:function(r,i,a){var n=r[1]-i[1],o=a[0]-i[0],s=r[0]-i[0],l=a[1]-i[1],u=s*o+n*l;if(u-e)},pointsSameX:function(r,i){return Math.abs(r[0]-i[0])e!=s-n>e&&(o-c)*(n-h)/(s-h)+c-a>e&&(l=!l),o=c,s=h}return l}};return t}D$.exports=aTe});var k$=X((Rtt,E$)=>{var nTe={create:function(){var e={root:{root:!0,next:null},exists:function(t){return!(t===null||t===e.root)},isEmpty:function(){return e.root.next===null},getHead:function(){return e.root.next},insertBefore:function(t,r){for(var i=e.root,a=e.root.next;a!==null;){if(r(a)){t.prev=a.prev,t.next=a,a.prev.next=t,a.prev=t;return}i=a,a=a.next}i.next=t,t.prev=i,t.next=null},findTransition:function(t){for(var r=e.root,i=e.root.next;i!==null&&!t(i);)r=i,i=i.next;return{before:r===e.root?null:r,after:i,insert:function(a){return a.prev=r,a.next=i,r.next=a,i!==null&&(i.prev=a),a}}}};return e},node:function(e){return e.prev=null,e.next=null,e.remove=function(){e.prev.next=e.next,e.next&&(e.next.prev=e.prev),e.prev=null,e.next=null},e}};E$.exports=nTe});var F$=X((Btt,C$)=>{var wg=k$();function oTe(e,t,r){function i(p,m){return{id:r?r.segmentId():-1,start:p,end:m,myFill:{above:null,below:null},otherFill:null}}function a(p,m,g){return{id:r?r.segmentId():-1,start:p,end:m,myFill:{above:g.myFill.above,below:g.myFill.below},otherFill:null}}var n=wg.create();function o(p,m,g,y,x,w){var _=t.pointsCompare(m,x);return _!==0?_:t.pointsSame(g,w)?0:p!==y?p?1:-1:t.pointAboveOrOnLine(g,y?x:w,y?w:x)?1:-1}function s(p,m){n.insertBefore(p,function(g){var y=o(p.isStart,p.pt,m,g.isStart,g.pt,g.other.pt);return y<0})}function l(p,m){var g=wg.node({isStart:!0,pt:p.start,seg:p,primary:m,other:null,status:null});return s(g,p.end),g}function u(p,m,g){var y=wg.node({isStart:!1,pt:m.end,seg:m,primary:g,other:p,status:null});p.other=y,s(y,p.pt)}function c(p,m){var g=l(p,m);return u(g,p,m),g}function h(p,m){r&&r.segmentChop(p.seg,m),p.other.remove(),p.seg.end=m,p.other.pt=m,s(p.other,p.pt)}function f(p,m){var g=a(m,p.seg.end,p.seg);return h(p,m),c(g,p.primary)}function d(p,m){var g=wg.create();function y(O,V){var $=O.seg.start,j=O.seg.end,H=V.seg.start,Z=V.seg.end;return t.pointsCollinear($,H,Z)?t.pointsCollinear(j,H,Z)||t.pointAboveOrOnLine(j,H,Z)?1:-1:t.pointAboveOrOnLine($,H,Z)?1:-1}function x(O){return g.findTransition(function(V){var $=y(O,V.ev);return $>0})}function w(O,V){var $=O.seg,j=V.seg,H=$.start,Z=$.end,W=j.start,le=j.end;r&&r.checkIntersection($,j);var pe=t.linesIntersect(H,Z,W,le);if(pe===!1){if(!t.pointsCollinear(H,Z,W)||t.pointsSame(H,le)||t.pointsSame(Z,W))return!1;var _e=t.pointsSame(H,W),De=t.pointsSame(Z,le);if(_e&&De)return V;var de=!_e&&t.pointBetween(H,W,le),Ce=!De&&t.pointBetween(Z,W,le);if(_e)return Ce?f(V,Z):f(O,le),V;de&&(De||(Ce?f(V,Z):f(O,le)),f(V,H))}else pe.alongA===0&&(pe.alongB===-1?f(O,W):pe.alongB===0?f(O,pe.pt):pe.alongB===1&&f(O,le)),pe.alongB===0&&(pe.alongA===-1?f(V,H):pe.alongA===0?f(V,pe.pt):pe.alongA===1&&f(V,Z));return!1}for(var _=[];!n.isEmpty();){var A=n.getHead();if(r&&r.vert(A.pt[0]),A.isStart){let O=function(){if(M){var V=w(A,M);if(V)return V}return S?w(A,S):!1};var z=O;r&&r.segmentNew(A.seg,A.primary);var T=x(A),M=T.before?T.before.ev:null,S=T.after?T.after.ev:null;r&&r.tempStatus(A.seg,M?M.seg:!1,S?S.seg:!1);var k=O();if(k){if(e){var P;A.seg.myFill.below===null?P=!0:P=A.seg.myFill.above!==A.seg.myFill.below,P&&(k.seg.myFill.above=!k.seg.myFill.above)}else k.seg.otherFill=A.seg.myFill;r&&r.segmentUpdate(k.seg),A.other.remove(),A.remove()}if(n.getHead()!==A){r&&r.rewind(A.seg);continue}if(e){var P;A.seg.myFill.below===null?P=!0:P=A.seg.myFill.above!==A.seg.myFill.below,S?A.seg.myFill.below=S.seg.myFill.above:A.seg.myFill.below=p,P?A.seg.myFill.above=!A.seg.myFill.below:A.seg.myFill.above=A.seg.myFill.below}else if(A.seg.otherFill===null){var I;S?A.primary===S.primary?I=S.seg.otherFill.above:I=S.seg.myFill.above:I=A.primary?m:p,A.seg.otherFill={above:I,below:I}}r&&r.status(A.seg,M?M.seg:!1,S?S.seg:!1),A.other.status=T.insert(wg.node({ev:A}))}else{var B=A.status;if(B===null)throw new Error("PolyBool: Zero-length segment detected; your epsilon is probably too small or too large");if(g.exists(B.prev)&&g.exists(B.next)&&w(B.prev.ev,B.next.ev),r&&r.statusRemove(B.ev.seg),B.remove(),!A.primary){var L=A.seg.myFill;A.seg.myFill=A.seg.otherFill,A.seg.otherFill=L}_.push(A.seg)}n.getHead().remove()}return r&&r.done(),_}return e?{addRegion:function(p){for(var m,g=p[p.length-1],y=0;y{function sTe(e,t,r){var i=[],a=[];return e.forEach(function(n){var o=n.start,s=n.end;if(t.pointsSame(o,s)){console.warn("PolyBool: Warning: Zero-length segment detected; your epsilon is probably too small or too large");return}r&&r.chainStart(n);var l={index:0,matches_head:!1,matches_pt1:!1},u={index:0,matches_head:!1,matches_pt1:!1},c=l;function h(z,O,V){return c.index=z,c.matches_head=O,c.matches_pt1=V,c===l?(c=u,!1):(c=null,!0)}for(var f=0;f{function Ag(e,t,r){var i=[];return e.forEach(function(a){var n=(a.myFill.above?8:0)+(a.myFill.below?4:0)+(a.otherFill&&a.otherFill.above?2:0)+(a.otherFill&&a.otherFill.below?1:0);t[n]!==0&&i.push({id:r?r.segmentId():-1,start:a.start,end:a.end,myFill:{above:t[n]===1,below:t[n]===2},otherFill:null})}),r&&r.selected(i),i}var lTe={union:function(e,t){return Ag(e,[0,2,1,0,2,2,0,0,1,0,1,0,0,0,0,0],t)},intersect:function(e,t){return Ag(e,[0,0,0,0,0,2,0,2,0,0,1,1,0,2,1,0],t)},difference:function(e,t){return Ag(e,[0,0,0,0,2,0,2,0,1,1,0,0,0,1,2,0],t)},differenceRev:function(e,t){return Ag(e,[0,2,1,0,0,0,1,1,0,2,0,2,0,0,0,0],t)},xor:function(e,t){return Ag(e,[0,2,1,0,2,0,0,1,1,0,0,2,0,1,2,0],t)}};L$.exports=lTe});var B$=X((Ntt,R$)=>{var uTe={toPolygon:function(e,t){function r(n){if(n.length<=0)return e.segments({inverted:!1,regions:[]});function o(u){var c=u.slice(0,u.length-1);return e.segments({inverted:!1,regions:[c]})}for(var s=o(n[0]),l=1;l{var cTe=M$(),hTe=S$(),q$=F$(),fTe=I$(),Tg=z$(),O$=B$(),Al=!1,Mg=hTe(),ds;ds={buildLog:function(e){return e===!0?Al=cTe():e===!1&&(Al=!1),Al===!1?!1:Al.list},epsilon:function(e){return Mg.epsilon(e)},segments:function(e){var t=q$(!0,Mg,Al);return e.regions.forEach(t.addRegion),{segments:t.calculate(e.inverted),inverted:e.inverted}},combine:function(e,t){var r=q$(!1,Mg,Al);return{combined:r.calculate(e.segments,e.inverted,t.segments,t.inverted),inverted1:e.inverted,inverted2:t.inverted}},selectUnion:function(e){return{segments:Tg.union(e.combined,Al),inverted:e.inverted1||e.inverted2}},selectIntersect:function(e){return{segments:Tg.intersect(e.combined,Al),inverted:e.inverted1&&e.inverted2}},selectDifference:function(e){return{segments:Tg.difference(e.combined,Al),inverted:e.inverted1&&!e.inverted2}},selectDifferenceRev:function(e){return{segments:Tg.differenceRev(e.combined,Al),inverted:!e.inverted1&&e.inverted2}},selectXor:function(e){return{segments:Tg.xor(e.combined,Al),inverted:e.inverted1!==e.inverted2}},polygon:function(e){return{regions:fTe(e.segments,Mg,Al),inverted:e.inverted}},polygonFromGeoJSON:function(e){return O$.toPolygon(ds,e)},polygonToGeoJSON:function(e){return O$.fromPolygon(ds,Mg,e)},union:function(e,t){return Dg(e,t,ds.selectUnion)},intersect:function(e,t){return Dg(e,t,ds.selectIntersect)},difference:function(e,t){return Dg(e,t,ds.selectDifference)},differenceRev:function(e,t){return Dg(e,t,ds.selectDifferenceRev)},xor:function(e,t){return Dg(e,t,ds.selectXor)}};function Dg(e,t,r){var i=ds.segments(e),a=ds.segments(t),n=ds.combine(i,a),o=r(n);return ds.polygon(o)}typeof window=="object"&&(window.PolyBool=ds);N$.exports=ds});var G$=X((Utt,U$)=>{U$.exports=function(t,r,i,a){var n=t[0],o=t[1],s=!1;i===void 0&&(i=0),a===void 0&&(a=r.length);for(var l=a-i,u=0,c=l-1;uo!=p>o&&n<(d-h)*(o-f)/(p-f)+h;m&&(s=!s)}return s}});var x3=X((Gtt,j$)=>{"use strict";var fD=bx().dot,y3=(Ki(),ct(na)).BADNUM,_3=j$.exports={};_3.tester=function(t){var r=t.slice(),i=r[0][0],a=i,n=r[0][1],o=n,s;for((r[r.length-1][0]!==r[0][0]||r[r.length-1][1]!==r[0][1])&&r.push(r[0]),s=1;sa||y===y3||yo||m&&u(p))}function h(p,m){var g=p[0],y=p[1];if(g===y3||ga||y===y3||yo)return!1;var x=r.length,w=r[0][0],_=r[0][1],A=0,T,M,S,k,P;for(T=1;TMath.max(M,w)||y>Math.max(S,_)))if(ys||Math.abs(fD(h,u))>a)return!0;return!1};_3.filter=function(t,r){var i=[t[0]],a=0,n=0;function o(l){t.push(l);var u=i.length,c=a;i.splice(n+1);for(var h=c+1;h1){var s=t.pop();o(s)}return{addPt:o,raw:t,filtered:i}}});var $$={};Zi($$,{BENDPX:()=>dTe,MINSELECT:()=>pTe,SELECTDELAY:()=>mTe,SELECTID:()=>vTe});var dTe,pTe,mTe,vTe,H$=Vi(()=>{"use strict";dTe=1.5,pTe=12,mTe=100,vTe="-select"});var pH=X((jtt,dH)=>{"use strict";var Z$=V$(),gTe=G$(),kg=mr(),yTe=xi().dashStyle,Sg=qr(),_Te=vu(),xTe=nc().makeEventData,Lg=fd(),bTe=Lg.freeMode,wTe=Lg.rectMode,Cg=Lg.drawMode,vD=Lg.openMode,gD=Lg.selectMode,Y$=_f(),W$=(mg(),ct(pg)),eH=i3(),tH=af().clearOutline,rH=vf(),dD=rH.handleEllipse,ATe=rH.readPaths,TTe=e3().newShapes,MTe=OM(),DTe=hD().activateLastSelection,w3=et(),STe=w3.sorterAsc,iH=x3(),Eg=Rx(),Tl=nn().getFromId,ETe=Hb(),kTe=m3().redrawReglTraces,A3=(H$(),ct($$)),gc=A3.MINSELECT,CTe=iH.filter,yD=iH.tester,_D=Xb(),X$=_D.p2r,FTe=_D.axValue,PTe=_D.getTransform;function xD(e){return e.subplot!==void 0}function ITe(e,t,r,i,a){var n=!xD(i),o=bTe(a),s=wTe(a),l=vD(a),u=Cg(a),c=gD(a),h=a==="drawline",f=a==="drawcircle",d=h||f,p=i.gd,m=p._fullLayout,g=c&&m.newselection.mode==="immediate"&&n,y=m._zoomlayer,x=i.element.getBoundingClientRect(),w=i.plotinfo,_=PTe(w),A=t-x.left,T=r-x.top;m._calcInverseTransform(p);var M=w3.apply3DTransform(m._invTransform)(A,T);A=M[0],T=M[1];var S=m._invScaleX,k=m._invScaleY,P=A,I=T,B="M"+A+","+T,L=i.xaxes[0],z=i.yaxes[0],O=L._length,V=z._length,$=e.altKey&&!(Cg(a)&&l),j,H,Z,W,le,pe,_e;nH(e,p,i),o&&(j=CTe([[A,T]],A3.BENDPX));var De=y.selectAll("path.select-outline-"+w.id).data([1]),de=u?m.newshape:m.newselection;u&&(i.hasText=de.label.text||de.label.texttemplate);var Ce=u&&!l?de.fillcolor:"rgba(0,0,0,0)",Q=de.line.color||(n?Sg.contrast(p._fullLayout.plot_bgcolor):"#7f7f7f");De.enter().append("path").attr("class","select-outline select-outline-"+w.id).style({opacity:u?de.opacity/2:1,"stroke-dasharray":yTe(de.line.dash,de.line.width),"stroke-width":de.line.width+"px","shape-rendering":"crispEdges"}).call(Sg.stroke,Q).call(Sg.fill,Ce).attr("fill-rule","evenodd").classed("cursor-move",!!u).attr("transform",_).attr("d",B+"Z");var ae=y.append("path").attr("class","zoombox-corners").style({fill:Sg.background,stroke:Sg.defaultLine,"stroke-width":1}).attr("transform",_).attr("d","M0,0Z");if(u&&i.hasText){var ye=y.select(".label-temp");ye.empty()&&(ye=y.append("g").classed("label-temp",!0).classed("select-outline",!0).style({opacity:.8}))}var te=m._uid+A3.SELECTID,re=[],ce=T3(p,i.xaxes,i.yaxes,i.subplot);g&&!e.shiftKey&&(i._clearSubplotSelections=function(){if(n){var ze=L._id,He=z._id;cH(p,ze,He,ce);for(var ke=(p.layout||{}).selections||[],Oe=[],qe=!1,se=0;se=0){p._fullLayout._deactivateShape(p);return}if(!u){var ke=m.clickmode;Eg.done(te).then(function(){if(Eg.clear(te),ze===2){for(De.remove(),le=0;le-1&&aH(He,p,i.xaxes,i.yaxes,i.subplot,i,De),ke==="event"&&Ig(p,void 0);_Te.click(p,He,w.id)}).catch(w3.error)}},i.doneFn=function(){ae.remove(),Eg.done(te).then(function(){Eg.clear(te),!g&&W&&i.selectionDefs&&(W.subtract=$,i.selectionDefs.push(W),i.mergedPolygons.length=0,[].push.apply(i.mergedPolygons,Z)),(g||u)&&Fg(i,g),i.doneFnCompleted&&i.doneFnCompleted(re),c&&Ig(p,_e)}).catch(w3.error)}}function aH(e,t,r,i,a,n,o){var s=t._hoverdata,l=t._fullLayout,u=l.clickmode,c=u.indexOf("event")>-1,h=[],f,d,p,m,g,y,x,w,_,A;if(qTe(s)){nH(e,t,n),f=T3(t,r,i,a);var T=OTe(s,f),M=T.pointNumbers.length>0;if(M?NTe(f,T):VTe(f)&&(x=J$(T))){for(o&&o.remove(),A=0;A=0}function BTe(e){return e._fullLayout._activeSelectionIndex>=0}function Fg(e,t){var r=e.dragmode,i=e.plotinfo,a=e.gd;RTe(a)&&a._fullLayout._deactivateShape(a),BTe(a)&&a._fullLayout._deactivateSelection(a);var n=a._fullLayout,o=n._zoomlayer,s=Cg(r),l=gD(r);if(s||l){var u=o.selectAll(".select-outline-"+i.id);if(u&&a._fullLayout._outlining){var c;s&&(c=TTe(u,e)),c&&kg.call("_guiRelayout",a,{shapes:c});var h;l&&!xD(e)&&(h=MTe(u,e)),h&&(a._fullLayout._noEmitSelectedAtStart=!0,kg.call("_guiRelayout",a,{selections:h}).then(function(){t&&DTe(a)})),a._fullLayout._outlining=!1}}i.selection={},i.selection.selectionDefs=e.selectionDefs=[],i.selection.mergedPolygons=e.mergedPolygons=[]}function K$(e){return e._id}function T3(e,t,r,i){if(!e.calcdata)return[];var a=[],n=t.map(K$),o=r.map(K$),s,l,u;for(u=0;u0,n=a?i[0]:r;return t.selectedpoints?t.selectedpoints.indexOf(n)>-1:!1}function NTe(e,t){var r=[],i,a,n,o;for(o=0;o0&&r.push(i);if(r.length===1&&(n=r[0]===t.searchInfo,n&&(a=t.searchInfo.cd[0].trace,a.selectedpoints.length===t.pointNumbers.length))){for(o=0;o1||(t+=i.selectedpoints.length,t>1)))return!1;return t===1}function Pg(e,t,r){var i,a;for(i=0;i-1&&t;if(!o&&t){var ze=Q$(e,!0);if(ze.length){var He=ze[0].xref,ke=ze[0].yref;if(He&&ke){var Oe=hH(ze),qe=fH([Tl(e,He,"x"),Tl(e,ke,"y")]);qe(re,Oe)}}e._fullLayout._noEmitSelectedAtStart?e._fullLayout._noEmitSelectedAtStart=!1:me&&Ig(e,re),f._reselect=!1}if(!o&&f._deselect){var se=f._deselect;s=se.xref,l=se.yref,jTe(s,l,c)||cH(e,s,l,i),me&&(re.points.length?Ig(e,re):AD(e)),f._deselect=!1}return{eventData:re,selectionTesters:r}}function GTe(e){var t=e.calcdata;if(t)for(var r=0;r{"use strict";mH.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}]});var zg={};Zi(zg,{axisRefDescription:()=>WTe});function WTe(e,t,r){return[`If set to a ${e} axis id (e.g. *${e}* or *${e}2*),`,`the \`${e}\` position refers to a ${e} coordinate.`,`If set to *paper*, the \`${e}\` position refers to the distance from the`,`${t} of the plotting area in normalized coordinates where *0* (*1*) corresponds`,`to the ${t} (${r}). If set to a ${e} 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 ${t} of the domain of that`,`axis: e.g., *${e}2 domain* refers to the domain of the second ${e}`,`axis and a ${e} position of 0.5 refers to the point between the ${t}`,`and the ${r} of the domain of the second ${e} axis.`].join(" ")}var Rg=Vi(()=>{"use strict"});var C1=X((Ztt,yH)=>{"use strict";var vH=TD(),gH=to(),M3=(vn(),ct(mn)),XTe=Bi().templatedArray,Htt=(Rg(),ct(zg));yH.exports=XTe("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:gH({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:vH.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:vH.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",M3.idRegex.x.toString()],editType:"calc"},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",M3.idRegex.y.toString()],editType:"calc"},xref:{valType:"enumerated",values:["paper",M3.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",M3.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:gH({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc"})});var D3={};Zi(D3,{PTS_LINESONLY:()=>KTe,eventDataKeys:()=>t7e,maxScreensAway:()=>e7e,minTolerance:()=>JTe,toleranceGrowth:()=>QTe});var KTe,JTe,QTe,e7e,t7e,S3=Vi(()=>{"use strict";KTe=20,JTe=.2,QTe=10,e7e=20,t7e=[]});var E3=X((Ytt,_H)=>{"use strict";_H.exports=function(t){return{valType:"color",editType:"style",anim:!0}}});var nh=X((Wtt,SH)=>{"use strict";var xH=Q7().axisHoverFormat,{hovertemplateAttrs:r7e,texttemplateAttrs:i7e,templatefallbackAttrs:bH}=tc(),wH=eh(),a7e=to(),AH=Zc().dash,n7e=Zc().pattern,o7e=xi(),s7e=(S3(),ct(D3)),Bg=Ta().extendFlat,l7e=E3();function TH(e){return{valType:"any",dflt:0,editType:"calc"}}function MH(e){return{valType:"any",editType:"calc"}}function DH(e){return{valType:"enumerated",values:["start","middle","end"],dflt:"middle",editType:"calc"}}SH.exports={x:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0},x0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",anim:!0},dx:{valType:"number",dflt:1,editType:"calc",anim:!0},y:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0},y0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",anim:!0},dy:{valType:"number",dflt:1,editType:"calc",anim:!0},xperiod:TH("x"),yperiod:TH("y"),xperiod0:MH("x0"),yperiod0:MH("y0"),xperiodalignment:DH("x"),yperiodalignment:DH("y"),xhoverformat:xH("x"),yhoverformat:xH("y"),offsetgroup:{valType:"string",dflt:"",editType:"calc"},alignmentgroup:{valType:"string",dflt:"",editType:"calc"},stackgroup:{valType:"string",dflt:"",editType:"calc"},orientation:{valType:"enumerated",values:["v","h"],editType:"calc"},groupnorm:{valType:"enumerated",values:["","fraction","percent"],dflt:"",editType:"calc"},stackgaps:{valType:"enumerated",values:["infer zero","interpolate"],dflt:"infer zero",editType:"calc"},text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},texttemplate:i7e(),texttemplatefallback:bH({editType:"calc"}),hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"style"},mode:{valType:"flaglist",flags:["lines","markers","text"],extras:["none"],editType:"calc"},hoveron:{valType:"flaglist",flags:["points","fills"],editType:"style"},hovertemplate:r7e({},{keys:s7e.eventDataKeys}),hovertemplatefallback:bH(),line:{color:{valType:"color",editType:"style",anim:!0},width:{valType:"number",min:0,dflt:2,editType:"style",anim:!0},shape:{valType:"enumerated",values:["linear","spline","hv","vh","hvh","vhv"],dflt:"linear",editType:"plot"},smoothing:{valType:"number",min:0,max:1.3,dflt:1,editType:"plot"},dash:Bg({},AH,{editType:"style"}),backoff:{valType:"number",min:0,dflt:"auto",arrayOk:!0,editType:"plot"},simplify:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},connectgaps:{valType:"boolean",dflt:!1,editType:"calc"},cliponaxis:{valType:"boolean",dflt:!0,editType:"plot"},fill:{valType:"enumerated",values:["none","tozeroy","tozerox","tonexty","tonextx","toself","tonext"],editType:"calc"},fillcolor:l7e(!0),fillgradient:Bg({type:{valType:"enumerated",values:["radial","horizontal","vertical","none"],dflt:"none",editType:"calc"},start:{valType:"number",editType:"calc"},stop:{valType:"number",editType:"calc"},colorscale:{valType:"colorscale",editType:"style"},editType:"calc"}),fillpattern:n7e,marker:Bg({symbol:{valType:"enumerated",values:o7e.symbolList,dflt:"circle",arrayOk:!0,editType:"style"},opacity:{valType:"number",min:0,max:1,arrayOk:!0,editType:"style",anim:!0},angle:{valType:"angle",dflt:0,arrayOk:!0,editType:"plot",anim:!1},angleref:{valType:"enumerated",values:["previous","up"],dflt:"up",editType:"plot",anim:!1},standoff:{valType:"number",min:0,dflt:0,arrayOk:!0,editType:"plot",anim:!0},size:{valType:"number",min:0,dflt:6,arrayOk:!0,editType:"calc",anim:!0},maxdisplayed:{valType:"number",min:0,dflt:0,editType:"plot"},sizeref:{valType:"number",dflt:1,editType:"calc"},sizemin:{valType:"number",min:0,dflt:0,editType:"calc"},sizemode:{valType:"enumerated",values:["diameter","area"],dflt:"diameter",editType:"calc"},line:Bg({width:{valType:"number",min:0,arrayOk:!0,editType:"style",anim:!0},dash:Bg({},AH,{arrayOk:!0}),editType:"calc"},wH("marker.line",{anim:!0})),gradient:{type:{valType:"enumerated",values:["radial","horizontal","vertical","none"],arrayOk:!0,dflt:"none",editType:"calc"},color:{valType:"color",arrayOk:!0,editType:"calc"},editType:"calc"},editType:"calc"},wH("marker",{anim:!0})),selected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style"},color:{valType:"color",editType:"style"},size:{valType:"number",min:0,editType:"style"},editType:"style"},textfont:{color:{valType:"color",editType:"style"},editType:"style"},editType:"style"},unselected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style"},color:{valType:"color",editType:"style"},size:{valType:"number",min:0,editType:"style"},editType:"style"},textfont:{color:{valType:"color",editType:"style"},editType:"style"},editType:"style"},textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right"],dflt:"middle center",arrayOk:!0,editType:"calc"},textfont:a7e({editType:"calc",colorEditType:"style",arrayOk:!0}),zorder:{valType:"integer",dflt:0,editType:"plot"}}});var MD=X((Ktt,CH)=>{"use strict";var EH=C1(),kH=nh().line,u7e=Zc().dash,k3=Ta().extendFlat,c7e=Is().overrideAll,h7e=Bi().templatedArray,Xtt=(Rg(),ct(zg));CH.exports=c7e(h7e("selection",{type:{valType:"enumerated",values:["rect","path"]},xref:k3({},EH.xref,{}),yref:k3({},EH.yref,{}),x0:{valType:"any"},x1:{valType:"any"},y0:{valType:"any"},y1:{valType:"any"},path:{valType:"string",editType:"arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:.7,editType:"arraydraw"},line:{color:kH.color,width:k3({},kH.width,{min:1,dflt:1}),dash:k3({},u7e,{dflt:"dot"})}}),"arraydraw","from-root")});var LH=X((Jtt,IH)=>{"use strict";var FH=et(),C3=ta(),f7e=gl(),d7e=MD(),PH=_f();IH.exports=function(t,r){f7e(t,r,{name:"selections",handleItemDefaults:p7e});for(var i=r.selections,a=0;a{"use strict";zH.exports=function(t,r,i){i("newselection.mode");var a=i("newselection.line.width");a&&(i("newselection.line.color"),i("newselection.line.dash")),i("activeselection.fillcolor"),i("activeselection.opacity")}});var qg=X((ert,OH)=>{"use strict";var m7e=mr(),BH=et(),qH=nn();OH.exports=function(t){return function(i,a){var n=i[t];if(Array.isArray(n))for(var o=m7e.subplotsRegistry.cartesian,s=o.idRegex,l=a._subplots,u=l.xaxis,c=l.yaxis,h=l.cartesian,f=a._has("cartesian"),d=0;d{"use strict";var NH=hD(),Og=pH();VH.exports={moduleType:"component",name:"selections",layoutAttributes:MD(),supplyLayoutDefaults:LH(),supplyDrawNewSelectionDefaults:RH(),includeBasePlot:qg()("selections"),draw:NH.draw,drawOne:NH.drawOne,reselect:Og.reselect,prepSelect:Og.prepSelect,clearOutline:Og.clearOutline,clearSelectionsCache:Og.clearSelectionsCache,selectOnClick:Og.selectOnClick}});var sZ=X((rrt,oZ)=>{"use strict";var FD=Wr(),Ml=et(),UH=Ml.numberFormat,v7e=sM(),F3=mr(),XH=Ml.strTranslate,g7e=sn(),SD=qr(),bf=xi(),y7e=vu(),GH=ta(),_7e=pf(),x7e=_l(),KH=fd(),P3=KH.selectingOrDrawing,b7e=KH.freeMode,w7e=(ao(),ct(io)).FROM_TL,A7e=Hb(),T7e=m3().redrawReglTraces,M7e=gn(),ED=nn().getFromId,D7e=yc().prepSelect,S7e=yc().clearOutline,E7e=yc().selectOnClick,DD=iD(),PD=(vn(),ct(mn)),jH=PD.MINDRAG,$o=PD.MINZOOM,$H=!0;function k7e(e,t,r,i,a,n,o,s){var l=e._fullLayout._zoomlayer,u=o+s==="nsew",c=(o+s).length===1,h,f,d,p,m,g,y,x,w,_,A,T,M,S,k,P,I,B,L,z,O,V,$;r+=t.yaxis._shift;function j(){if(h=t.xaxis,f=t.yaxis,w=h._length,_=f._length,y=h._offset,x=f._offset,d={},d[h._id]=h,p={},p[f._id]=f,o&&s)for(var Ee=t.overlays,Me=0;Me=0){We._fullLayout._deactivateShape(We);return}var lt=We._fullLayout.clickmode;if(CD(We),Ee===2&&!c&&tt(),u)lt.indexOf("select")>-1&&E7e(Me,We,m,g,t.id,W),lt.indexOf("event")>-1&&y7e.click(We,Me,t.id);else if(Ee===1&&c){var Qe=o?f:h,st=o==="s"||s==="w"?0:1,vt=Qe._name+".range["+st+"]",ut=C7e(Qe,st),Tt="left",Ze="middle";if(Qe.fixedrange)return;o?(Ze=o==="n"?"top":"bottom",Qe.side==="right"&&(Tt="right")):s==="e"&&(Tt="right"),We._context.showAxisRangeEntryBoxes&&FD.select(Z).call(g7e.makeEditable,{gd:We,immediate:!0,background:We._fullLayout.paper_bgcolor,text:String(ut),fill:Qe.tickfont?Qe.tickfont.color:"#444",horizontalAlign:Tt,verticalAlign:Ze}).on("edit",function(gt){var rt=Qe.d2r(gt);rt!==void 0&&F3.call("_guiRelayout",We,vt,rt)})}}x7e.init(W);var _e,De,de,Ce,Q,ae,ye,te,re,ce;function me(Ee,Me,We){var lt=Z.getBoundingClientRect();_e=Me-lt.left,De=We-lt.top,e._fullLayout._calcInverseTransform(e);var Qe=Ml.apply3DTransform(e._fullLayout._invTransform)(_e,De);_e=Qe[0],De=Qe[1],de={l:_e,r:_e,w:0,t:De,b:De,h:0},Ce=e._hmpixcount?e._hmlumcount/e._hmpixcount:SD.luminosity(e._fullLayout.plot_bgcolor),Q="M0,0H"+w+"V"+_+"H0V0",ae=!1,ye="xy",ce=!1,te=eZ(l,Ce,y,x,Q),re=tZ(l,y,x)}function ze(Ee,Me){if(e._transitioningWithDuration)return!1;var We=Math.max(0,Math.min(w,V*Ee+_e)),lt=Math.max(0,Math.min(_,$*Me+De)),Qe=Math.abs(We-_e),st=Math.abs(lt-De);de.l=Math.min(_e,We),de.r=Math.max(_e,We),de.t=Math.min(De,lt),de.b=Math.max(De,lt);function vt(){ye="",de.r=de.l,de.t=de.b,re.attr("d","M0,0Z")}if(A.isSubplotConstrained)Qe>$o||st>$o?(ye="xy",Qe/w>st/_?(st=Qe*_/w,De>lt?de.t=De-st:de.b=De+st):(Qe=st*w/_,_e>We?de.l=_e-Qe:de.r=_e+Qe),re.attr("d",I3(de))):vt();else if(T.isSubplotConstrained)if(Qe>$o||st>$o){ye="xy";var ut=Math.min(de.l/w,(_-de.b)/_),Tt=Math.max(de.r/w,(_-de.t)/_);de.l=ut*w,de.r=Tt*w,de.b=(1-ut)*_,de.t=(1-Tt)*_,re.attr("d",I3(de))}else vt();else!S||st0){var gt;if(T.isSubplotConstrained||!M&&S.length===1){for(gt=0;gt1&&(vt.maxallowed!==void 0&&P===(vt.range[0]1&&(ut.maxallowed!==void 0&&I===(ut.range[0]=0?Math.min(e,.9):1/(1/Math.max(e,-.3)+3.222))}function P7e(e,t,r){return e?e==="nsew"?r?"":t==="pan"?"move":"crosshair":e.toLowerCase()+"-resize":"pointer"}function eZ(e,t,r,i,a){return e.append("path").attr("class","zoombox").style({fill:t>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("transform",XH(r,i)).attr("d",a+"Z")}function tZ(e,t,r){return e.append("path").attr("class","zoombox-corners").style({fill:SD.background,stroke:SD.defaultLine,"stroke-width":1,opacity:0}).attr("transform",XH(t,r)).attr("d","M0,0Z")}function rZ(e,t,r,i,a,n){e.attr("d",i+"M"+r.l+","+r.t+"v"+r.h+"h"+r.w+"v-"+r.h+"h-"+r.w+"Z"),iZ(e,t,a,n)}function iZ(e,t,r,i){r||(e.transition().style("fill",i>.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),t.transition().style("opacity",1).duration(200))}function CD(e){FD.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function aZ(e){$H&&e.data&&e._context.showTips&&(Ml.notifier(Ml._(e,"Double-click to zoom back out"),"long",e),$H=!1)}function I7e(e,t){return"M"+(e.l-.5)+","+(t-$o-.5)+"h-3v"+(2*$o+1)+"h3ZM"+(e.r+.5)+","+(t-$o-.5)+"h3v"+(2*$o+1)+"h-3Z"}function L7e(e,t){return"M"+(t-$o-.5)+","+(e.t-.5)+"v-3h"+(2*$o+1)+"v3ZM"+(t-$o-.5)+","+(e.b+.5)+"v3h"+(2*$o+1)+"v-3Z"}function I3(e){var t=Math.floor(Math.min(e.b-e.t,e.r-e.l,$o)/2);return"M"+(e.l-3.5)+","+(e.t-.5+t)+"h3v"+-t+"h"+t+"v-3h-"+(t+3)+"ZM"+(e.r+3.5)+","+(e.t-.5+t)+"h-3v"+-t+"h"+-t+"v-3h"+(t+3)+"ZM"+(e.r+3.5)+","+(e.b+.5-t)+"h-3v"+t+"h"+-t+"v3h"+(t+3)+"ZM"+(e.l-3.5)+","+(e.b+.5-t)+"h3v"+t+"h"+t+"v3h-"+(t+3)+"Z"}function YH(e,t,r,i,a){for(var n=!1,o={},s={},l,u,c,h,f=(a||{}).xaHash,d=(a||{}).yaHash,p=0;p{"use strict";var z7e=Wr(),L3=vu(),R7e=_l(),B7e=pf(),yu=sZ().makeDragBox,xn=(vn(),ct(mn)).DRAGGERSIZE;z3.initInteractions=function(t){var r=t._fullLayout;if(t._context.staticPlot){z7e.select(t).selectAll(".drag").remove();return}if(!(!r._has("cartesian")&&!r._has("splom"))){var i=Object.keys(r._plots||{}).sort(function(n,o){if((r._plots[n].mainplot&&!0)===(r._plots[o].mainplot&&!0)){var s=n.split("y"),l=o.split("y");return s[0]===l[0]?Number(s[1]||1)-Number(l[1]||1):Number(s[0]||1)-Number(l[0]||1)}return r._plots[n].mainplot?1:-1});i.forEach(function(n){var o=r._plots[n],s=o.xaxis,l=o.yaxis;if(!o.mainplot){var u=yu(t,o,s._offset,l._offset,s._length,l._length,"ns","ew");u.onmousemove=function(f){t._fullLayout._rehover=function(){t._fullLayout._hoversubplot===n&&t._fullLayout._plots[n]&&L3.hover(t,f,n)},L3.hover(t,f,n),t._fullLayout._lasthover=u,t._fullLayout._hoversubplot=n},u.onmouseout=function(f){t._dragging||(t._fullLayout._hoversubplot=null,R7e.unhover(t,f))},t._context.showAxisDragHandles&&(yu(t,o,s._offset-xn,l._offset-xn,xn,xn,"n","w"),yu(t,o,s._offset+s._length,l._offset-xn,xn,xn,"n","e"),yu(t,o,s._offset-xn,l._offset+l._length,xn,xn,"s","w"),yu(t,o,s._offset+s._length,l._offset+l._length,xn,xn,"s","e"))}if(t._context.showAxisDragHandles){if(n===s._mainSubplot){var c=s._mainLinePosition;s.side==="top"&&(c-=xn),yu(t,o,s._offset+s._length*.1,c,s._length*.8,xn,"","ew"),yu(t,o,s._offset,c,s._length*.1,xn,"","w"),yu(t,o,s._offset+s._length*.9,c,s._length*.1,xn,"","e")}if(n===l._mainSubplot){var h=l._mainLinePosition;l.side!=="right"&&(h-=xn),yu(t,o,h,l._offset+l._length*.1,xn,l._length*.8,"ns",""),yu(t,o,h,l._offset+l._length*.9,xn,l._length*.1,"s",""),yu(t,o,h,l._offset,xn,l._length*.1,"n","")}}});var a=r._hoverlayer.node();a.onmousemove=function(n){n.target=t._fullLayout._lasthover,L3.hover(t,n,r._hoversubplot)},a.onclick=function(n){n.target=t._fullLayout._lasthover,L3.click(t,n)},a.onmousedown=function(n){t._fullLayout._lasthover.onmousedown(n)},z3.updateFx(t)}};z3.updateFx=function(e){var t=e._fullLayout,r=t.dragmode==="pan"?"move":"crosshair";B7e(t._draggers,r)}});var cZ=X((art,uZ)=>{"use strict";var lZ=mr();uZ.exports=function(t){for(var r=lZ.layoutArrayContainers,i=lZ.layoutArrayRegexes,a=t.split("[")[0],n,o,s=0;s{"use strict";var q7e=Gh(),LD=xx(),Ng=Hc(),O7e=A7().sorterAsc,zD=mr();Vg.containerArrayMatch=cZ();var N7e=Vg.isAddVal=function(t){return t==="add"||q7e(t)},hZ=Vg.isRemoveVal=function(t){return t===null||t==="remove"};Vg.applyContainerArrayChanges=function(t,r,i,a,n){var o=r.astr,s=zD.getComponentMethod(o,"supplyLayoutDefaults"),l=zD.getComponentMethod(o,"draw"),u=zD.getComponentMethod(o,"drawOne"),c=a.replot||a.recalc||s===LD||l===LD,h=t.layout,f=t._fullLayout;if(i[""]){Object.keys(i).length>1&&Ng.warn("Full array edits are incompatible with other edits",o);var d=i[""][""];if(hZ(d))r.set(null);else if(Array.isArray(d))r.set(d);else return Ng.warn("Unrecognized full array edit value",o,d),!0;return c?!1:(s(h,f),l(t),!0)}var p=Object.keys(i).map(Number).sort(O7e),m=r.get(),g=m||[],y=n(f,o).get(),x=[],w=-1,_=g.length,A,T,M,S,k,P,I,B;for(A=0;Ag.length-(I?0:1)){Ng.warn("index out of range",o,M);continue}if(P!==void 0)k.length>1&&Ng.warn("Insertion & removal are incompatible with edits to the same index.",o,M),hZ(P)?x.push(M):I?(P==="add"&&(P={}),g.splice(M,0,P),y&&y.splice(M,0,{})):Ng.warn("Unrecognized full object edit value",o,M,P),w===-1&&(w=M);else for(T=0;T=0;A--)g.splice(x[A],1),y&&y.splice(x[A],1);if(g.length?m||r.set(g):r.set(null),c)return!1;if(s(h,f),u!==LD){var L;if(w===-1)L=p;else{for(_=Math.max(g.length,_),L=[],A=0;A=w));A++)L.push(M);for(A=w;A<_;A++)L.push(A)}for(A=0;A{"use strict";var vZ=Br(),gZ=mr(),So=et(),Ug=gn(),yZ=nn(),Gg=yZ.cleanId,V7e=yZ.getFromTrace,RD=gZ.traceIs,U7e=["x","y","z"];Dl.clearPromiseQueue=function(e){Array.isArray(e._promises)&&e._promises.length>0&&So.log("Clearing previous rejected promises from queue."),e._promises=[]};Dl.cleanLayout=function(e){var t,r;e||(e={}),e.xaxis1&&(e.xaxis||(e.xaxis=e.xaxis1),delete e.xaxis1),e.yaxis1&&(e.yaxis||(e.yaxis=e.yaxis1),delete e.yaxis1),e.scene1&&(e.scene||(e.scene=e.scene1),delete e.scene1);var i=(Ug.subplotsRegistry.cartesian||{}).attrRegex,a=(Ug.subplotsRegistry.polar||{}).attrRegex,n=(Ug.subplotsRegistry.ternary||{}).attrRegex,o=(Ug.subplotsRegistry.gl3d||{}).attrRegex,s=Object.keys(e);for(t=0;t3?(g.x=1.02,g.xanchor="left"):g.x<-2&&(g.x=-.02,g.xanchor="right"),g.y>3?(g.y=1.02,g.yanchor="bottom"):g.y<-2&&(g.y=-.02,g.yanchor="top")),e.dragmode==="rotate"&&(e.dragmode="orbit"),e.template&&e.template.layout&&Dl.cleanLayout(e.template.layout),e};function F1(e,t,r=!1){var i=e[t],a=t.charAt(0);r&&Array.isArray(i)||i&&i!=="paper"&&(e[t]=Gg(i,a,!0))}Dl.cleanData=function(e){for(var t=0;t0)return e.slice(0,t)}Dl.hasParent=function(e,t){for(var r=mZ(t);r;){if(r in e)return!0;r=mZ(r)}return!1};Dl.clearAxisTypes=function(e,t,r){for(var i=0;i{let r=(...i)=>i.every(a=>So.isPlainObject(a))||i.every(a=>Array.isArray(a));if([e,t].every(i=>Array.isArray(i))){if(e.length!==t.length)return!1;for(let i=0;iSo.isPlainObject(i))){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(let i in e){if(i.startsWith("_"))continue;let a=e[i],n=t[i];if(a!==n&&!(r(a,n)?BD(a,n):!1))return!1}return!0}return!1};Dl.collectionsAreEqual=BD});var UD=X(jr=>{"use strict";var N3=Wr(),$7e=Br(),H7e=R7(),kt=et(),Ui=kt.nestedProperty,OD=Gv(),Ho=lO(),Sl=mr(),Z3=a1(),dr=gn(),Eo=ta(),Z7e=oM(),Y7e=pu(),q3=xi(),W7e=qr(),X7e=ID().initInteractions,K7e=(of(),ct(nf)),J7e=yc().clearOutline,TZ=Hh().dfltConfig,B3=fZ(),qa=_Z(),mi=m3(),wf=Is(),Q7e=(vn(),ct(mn)).AX_NAME_PATTERN,qD=0,xZ=5;function e8e(e,t,r,i){var a;if(e=kt.getGraphDiv(e),OD.init(e),kt.isPlainObject(t)){var n=t;t=n.data,r=n.layout,i=n.config,a=n.frames}var o=OD.triggerHandler(e,"plotly_beforeplot",[t,r,i]);if(o===!1)return Promise.reject();!t&&!r&&!kt.isPlotDiv(e)&&kt.warn("Calling _doPlot as if redrawing but this container doesn't yet have a plot.",e);function s(){if(a)return jr.addFrames(e,a)}DZ(e,i),r||(r={}),N3.select(e).classed("js-plotly-plot",!0),q3.makeTester(),Array.isArray(e._promises)||(e._promises=[]);var l=(e.data||[]).length===0&&Array.isArray(t);Array.isArray(t)&&(qa.cleanData(t),l?e.data=t:e.data.push.apply(e.data,t),e.empty=!1),(!e.layout||l)&&(e.layout=qa.cleanLayout(r)),dr.supplyDefaults(e);var u=e._fullLayout,c=u._has("cartesian");u._replotting=!0,(l||u._shouldCreateBgLayer)&&(T8e(e),u._shouldCreateBgLayer&&delete u._shouldCreateBgLayer),q3.initGradients(e),q3.initPatterns(e),l&&Eo.saveShowSpikeInitial(e);var h=!e.calcdata||e.calcdata.length!==(e._fullData||[]).length;h&&dr.doCalcdata(e);for(var f=0;f{kt.isHidden(e)||dr.resize(e)};if(e._context.fillFrame||typeof ResizeObserver=="undefined")window.addEventListener("resize",S),e._clearResponsive=()=>window.removeEventListener("resize",S);else{let k=e.offsetWidth,P=e.offsetHeight,I=new ResizeObserver(()=>{let B=e.offsetWidth,L=e.offsetHeight,z=Math.abs(B-k)>1||Math.abs(L-P)>1;k=B,P=L,z&&B&&L&&S()});I.observe(e),e._clearResponsive=()=>I.disconnect()}}}else kt.clearResponsive(e);let d=document.fonts?[...document.fonts].filter(S=>S.status!=="loaded"):[];var p=kt.extendFlat({},u._size),m=0;function g(){for(var S=u._basePlotModules,k=0;k["loaded","loading"].includes(a.status));if(!r.length)return;let i={};e._fontLoadToken=i,yield Promise.all(r.map(a=>a.loaded.catch(()=>{}))),e._fontLoadToken===i&&(delete e._fontLoadToken,q3.savedBBoxes={},jr._doPlot(e))})}function $g(e){var t=e._fullLayout;t._redrawFromAutoMarginCount?t._redrawFromAutoMarginCount--:e.emit("plotly_afterplot")}function r8e(e){return kt.extendFlat(TZ,e)}function MZ(e,t){try{e._fullLayout._paper.style("background",t)}catch(r){kt.error(r)}}function i8e(e,t){var r=W7e.combine(t,"white");MZ(e,r)}function DZ(e,t){if(!e._context){e._context=kt.extendDeep({},TZ);var r=N3.select("base");e._context._baseUrl=r.size()&&r.attr("href")?window.location.href.split("#")[0]:""}var i=e._context,a,n,o;if(t){for(n=Object.keys(t),a=0;a=e.data.length||a<-e.data.length)throw new Error(r+" must be valid indices for gd.data.");if(t.indexOf(a,i+1)>-1||a>=0&&t.indexOf(-e.data.length+a)>-1||a<0&&t.indexOf(e.data.length+a)>-1)throw new Error("each index in "+r+" must be unique.")}}function SZ(e,t,r){if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(typeof t=="undefined")throw new Error("currentIndices is a required argument.");if(Array.isArray(t)||(t=[t]),U3(e,t,"currentIndices"),typeof r!="undefined"&&!Array.isArray(r)&&(r=[r]),typeof r!="undefined"&&U3(e,r,"newIndices"),typeof r!="undefined"&&t.length!==r.length)throw new Error("current and new indices must be of equal length.")}function o8e(e,t,r){var i,a;if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(typeof t=="undefined")throw new Error("traces must be defined.");for(Array.isArray(t)||(t=[t]),i=0;i=0&&c=0&&c0&&typeof S.parts[I]!="string";)I--;var B=S.parts[I],L=S.parts[I-1]+"."+B,z=S.parts.slice(0,I).join("."),O=Ui(e.layout,z).get(),V=Ui(i,z).get(),$=S.get();if(k!==void 0){y[M]=k,x[M]=B==="reverse"?k:oh($);var j=Z3.getLayoutValObject(i,S.parts);if(j&&j.impliedEdits&&k!==null)for(var H in j.impliedEdits)w(kt.relativeAttr(M,H),j.impliedEdits[H]);if(["width","height"].indexOf(M)!==-1)if(k){w("autosize",null);var Z=M==="height"?"width":"height";w(Z,i[Z])}else i[M]=e._initialAutoSize[M];else if(M==="autosize")w("width",k?null:i.width),w("height",k?null:i.height);else if(L.match(RZ))T(L),Ui(i,z+"._inputRange").set(null);else if(L.match(BZ)){T(L),Ui(i,z+"._inputRange").set(null);var W=Ui(i,z).get();W._inputDomain&&(W._input.domain=W._inputDomain.slice())}else L.match(c8e)&&Ui(i,z+"._inputDomain").set(null);if(B==="type"){A=O;var le=V.type==="linear"&&k==="log",pe=V.type==="log"&&k==="linear";if(le||pe){if(!A||!A.range)w(z+".autorange",!0);else if(V.autorange)le&&(A.range=A.range[1]>A.range[0]?[1,2]:[2,1]);else{var _e=A.range[0],De=A.range[1];le?(_e<=0&&De<=0&&w(z+".autorange",!0),_e<=0?_e=De/1e6:De<=0&&(De=_e/1e6),w(z+".range[0]",Math.log(_e)/Math.LN10),w(z+".range[1]",Math.log(De)/Math.LN10)):(w(z+".range[0]",Math.pow(10,_e)),w(z+".range[1]",Math.pow(10,De)))}Array.isArray(i._subplots.polar)&&i._subplots.polar.length&&i[S.parts[0]]&&S.parts[1]==="radialaxis"&&delete i[S.parts[0]]._subplot.viewInitial["radialaxis.range"],Sl.getComponentMethod("annotations","convertCoords")(e,V,k,w),Sl.getComponentMethod("images","convertCoords")(e,V,k,w)}else w(z+".autorange",!0),w(z+".range",null);Ui(i,z+"._inputRange").set(null)}else if(B.match(Q7e)){var de=Ui(i,M).get(),Ce=(k||{}).type;(!Ce||Ce==="-")&&(Ce="linear"),Sl.getComponentMethod("annotations","convertCoords")(e,de,Ce,w),Sl.getComponentMethod("images","convertCoords")(e,de,Ce,w)}var Q=B3.containerArrayMatch(M);if(Q){c=Q.array,h=Q.index;var ae=Q.property,ye=j||{editType:"calc"};h!==""&&ae===""&&(B3.isAddVal(k)?x[M]=null:B3.isRemoveVal(k)?x[M]=(Ui(r,c).get()||[])[h]:kt.warn("unrecognized full object value",t)),wf.update(g,ye),u[c]||(u[c]={});var te=u[c][h];te||(te=u[c][h]={}),te[ae]=k,delete t[M]}else B==="reverse"?(O.range?O.range.reverse():(w(z+".autorange",!0),O.range=[1,0]),V.autorange?g.calc=!0:g.plot=!0):(M==="dragmode"&&(k===!1&&$!==!1||k!==!1&&$===!1)||i._has("scatter-like")&&i._has("regl")&&M==="dragmode"&&(k==="lasso"||k==="select")&&!($==="lasso"||$==="select")?g.plot=!0:j?wf.update(g,j):g.calc=!0,S.set(k))}}for(c in u){var re=B3.applyContainerArrayChanges(e,n(r,c),u[c],g,n);re||(g.plot=!0)}for(var ce in _){A=Eo.getFromId(e,ce);var me=A&&A._constraintGroup;if(me){g.calc=!0;for(var ze in me)_[ze]||(Eo.getFromId(e,ze)._constraintShrinkable=!0)}}(OZ(e)||t.height||t.width)&&(g.plot=!0);var He=i.shapes;for(h=0;h1;)if(i.pop(),r=Ui(t,i.join(".")+".uirevision").get(),r!==void 0)return r;return t.uirevision}function d8e(e,t){for(var r=0;r[z,e._ev.listeners(z)]);n=jr.newPlot(e,t,r,i).then(()=>{for(let[z,O]of L)O.forEach(V=>e.on(z,V));return jr.react(e,t,r,i)})}else{e.data=t||[],qa.cleanData(e.data),e.layout=r||{},qa.cleanLayout(e.layout),m8e(e.data,e.layout,s,l),dr.supplyDefaults(e,{skipUpdateCalc:!0});var h=e._fullData,f=e._fullLayout,d=f.datarevision===void 0,p=f.transition,m=y8e(e,l,f,d,p),g=m.newDataRevision,y=g8e(e,s,h,d,p,g);if(OZ(e)&&(m.layoutReplot=!0),y.calc||m.calc){e.calcdata=void 0;for(var x=Object.getOwnPropertyNames(f),w=0;w(c||e.emit("plotly_react",{config:i,data:t,layout:r}),e))}function g8e(e,t,r,i,a,n){var o=t.length===r.length;if(!a&&!o)return{fullReplot:!0,calc:!0};var s=wf.traceFlags();s.arrays={},s.nChanges=0,s.nChangesAnim=0;var l,u;function c(d){var p=Z3.getTraceValObject(u,d);return!u._module.animatable&&p.anim&&(p.anim=!1),p}var h={getValObject:c,flags:s,immutable:i,transition:a,newDataRevision:n,gd:e},f={};for(l=0;l=a.length?a[0]:a[u]:a}function s(u){return Array.isArray(n)?u>=n.length?n[0]:n[u]:n}function l(u,c){var h=0;return function(){if(u&&++h===c)return u()}}return new Promise(function(u,c){function h(){if(i._frameQueue.length!==0){for(;i._frameQueue.length;){var B=i._frameQueue.pop();B.onInterrupt&&B.onInterrupt()}e.emit("plotly_animationinterrupted",[])}}function f(B){if(B.length!==0){for(var L=0;Li._timeToNext&&p()};B()}var g=0;function y(B){return Array.isArray(a)?g>=a.length?B.transitionOpts=a[g]:B.transitionOpts=a[0]:B.transitionOpts=a,g++,B}var x,w,_=[],A=t==null,T=Array.isArray(t),M=!A&&!T&&kt.isPlainObject(t);if(M)_.push({type:"object",data:y(kt.extendFlat({},t))});else if(A||["string","number"].indexOf(typeof t)!==-1)for(x=0;x0&&P<_.length-1){var I=[];for(x=0;x<_.length;x++)w=_[x],(_[x].type!=="byname"||x>P)&&I.push(w);_=I}}_.length>0?f(_):(e.emit("plotly_animated"),u())})}function x8e(e,t,r){if(e=kt.getGraphDiv(e),t==null)return Promise.resolve();if(!kt.isPlotDiv(e))throw new Error("This element is not a Plotly plot: "+e+". It's likely that you've failed to create a plot before adding frames. For more details, see https://plotly.com/javascript/animations/");var i,a,n,o,s=e._transitionData._frames,l=e._transitionData._frameHash;if(!Array.isArray(t))throw new Error("addFrames failure: frameList must be an Array of frame definitions"+t);var u=s.length+t.length*2,c=[],h={};for(i=t.length-1;i>=0;i--)if(kt.isPlainObject(t[i])){var f=t[i].name,d=(l[f]||h[f]||{}).name,p=t[i].name,m=l[d]||h[d];d&&p&&typeof p=="number"&&m&&qDS.index?-1:M.index=0;i--){if(a=c[i].frame,typeof a.name=="number"&&kt.warn("Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings"),!a.name)for(;l[a.name="frame "+e._transitionData._counter++];);if(l[a.name]){for(n=0;n=0;r--)i=t[r],n.push({type:"delete",index:i}),o.unshift({type:"insert",index:i,value:a[i]});var s=dr.modifyFrames,l=dr.modifyFrames,u=[e,o],c=[e,n];return Ho&&Ho.add(e,s,u,l,c),dr.modifyFrames(e,n)}function w8e(e){e=kt.getGraphDiv(e);var t=e._fullLayout||{},r=e._fullData||[];return dr.cleanPlot([],{},r,t),dr.purge(e),OD.purge(e),t._container&&t._container.remove(),delete e._context,e}function A8e(e){var t=e._fullLayout,r=e.getBoundingClientRect();if(!kt.equalDomRects(r,t._lastBBox)){var i=t._invTransform=kt.inverseTransformMatrix(kt.getFullTransformMatrix(e));t._invScaleX=Math.sqrt(i[0][0]*i[0][0]+i[0][1]*i[0][1]+i[0][2]*i[0][2]),t._invScaleY=Math.sqrt(i[1][0]*i[1][0]+i[1][1]*i[1][1]+i[1][2]*i[1][2]),t._lastBBox=r}}function T8e(e){var t=N3.select(e),r=e._fullLayout;if(r._calcInverseTransform=A8e,r._calcInverseTransform(e),r._container=t.selectAll(".plot-container").data([0]),r._container.enter().insert("div",":first-child").classed("plot-container",!0).classed("plotly",!0).style({width:"100%",height:"100%"}),r._paperdiv=r._container.selectAll(".svg-container").data([0]),r._paperdiv.enter().append("div").classed("user-select-none",!0).classed("svg-container",!0).style("position","relative"),r._glcontainer=r._paperdiv.selectAll(".gl-container").data([{}]),r._glcontainer.enter().append("div").classed("gl-container",!0),r._paperdiv.selectAll(".main-svg").remove(),r._paperdiv.select(".modebar-container").remove(),r._paper=r._paperdiv.insert("svg",":first-child").classed("main-svg",!0),r._toppaper=r._paperdiv.append("svg").classed("main-svg",!0),r._modebardiv=r._paperdiv.append("div"),delete r._modeBar,r._hoverpaper=r._paperdiv.append("svg").classed("main-svg",!0),!r._uid){var i={};N3.selectAll("defs").each(function(){this.id&&(i[this.id.split("-")[1]]=1)}),r._uid=kt.randstr(i)}r._paperdiv.selectAll(".main-svg").attr(K7e.svgAttrs),r._defs=r._paper.append("defs").attr("id","defs-"+r._uid),r._clips=r._defs.append("g").classed("clips",!0),r._topdefs=r._toppaper.append("defs").attr("id","topdefs-"+r._uid),r._topclips=r._topdefs.append("g").classed("clips",!0),r._bgLayer=r._paper.append("g").classed("bglayer",!0),r._draggers=r._paper.append("g").classed("draglayer",!0);var a=r._paper.append("g").classed("layer-below",!0);r._imageLowerLayer=a.append("g").classed("imagelayer",!0),r._shapeLowerLayer=a.append("g").classed("shapelayer",!0),r._cartesianlayer=r._paper.append("g").classed("cartesianlayer",!0),r._polarlayer=r._paper.append("g").classed("polarlayer",!0),r._smithlayer=r._paper.append("g").classed("smithlayer",!0),r._ternarylayer=r._paper.append("g").classed("ternarylayer",!0),r._geolayer=r._paper.append("g").classed("geolayer",!0),r._funnelarealayer=r._paper.append("g").classed("funnelarealayer",!0),r._pielayer=r._paper.append("g").classed("pielayer",!0),r._iciclelayer=r._paper.append("g").classed("iciclelayer",!0),r._treemaplayer=r._paper.append("g").classed("treemaplayer",!0),r._sunburstlayer=r._paper.append("g").classed("sunburstlayer",!0),r._indicatorlayer=r._toppaper.append("g").classed("indicatorlayer",!0),r._glimages=r._paper.append("g").classed("glimages",!0);var n=r._toppaper.append("g").classed("layer-above",!0);r._imageUpperLayer=n.append("g").classed("imagelayer",!0),r._shapeUpperLayer=n.append("g").classed("shapelayer",!0),r._selectionLayer=r._toppaper.append("g").classed("selectionlayer",!0),r._infolayer=r._toppaper.append("g").classed("infolayer",!0),r._menulayer=r._toppaper.append("g").classed("menulayer",!0),r._zoomlayer=r._toppaper.append("g").classed("zoomlayer",!0),r._hoverlayer=r._hoverpaper.append("g").classed("hoverlayer",!0),r._modebardiv.classed("modebar-container",!0).style("position","absolute").style("top","0px").style("right","0px"),e.emit("plotly_framework")}jr.animate=_8e;jr.addFrames=x8e;jr.deleteFrames=b8e;jr.addTraces=PZ;jr.deleteTraces=IZ;jr.extendTraces=CZ;jr.moveTraces=ND;jr.prependTraces=FZ;jr.newPlot=n8e;jr._doPlot=e8e;jr.purge=w8e;jr.react=v8e;jr.redraw=a8e;jr.relayout=jg;jr.restyle=G3;jr.setPlotConfig=r8e;jr.update=$3;jr._guiRelayout=VD(jg);jr._guiRestyle=VD(G3);jr._guiUpdate=VD($3);jr._storeDirectGUIEdit=u8e});var gd=X(El=>{"use strict";var M8e=mr();El.getDelay=function(e){return e._has&&(e._has("gl3d")||e._has("map"))?500:0};El.getRedrawFunc=function(e){return function(){M8e.getComponentMethod("colorbar","draw")(e)}};El.encodeSVG=function(e){return"data:image/svg+xml,"+encodeURIComponent(e)};El.encodeJSON=function(e){return"data:application/json,"+encodeURIComponent(e)};var NZ=window.URL||window.webkitURL;El.createObjectURL=function(e){return NZ.createObjectURL(e)};El.revokeObjectURL=function(e){return NZ.revokeObjectURL(e)};El.createBlob=function(e,t){if(t==="svg")return new window.Blob([e],{type:"image/svg+xml;charset=utf-8"});if(t==="full-json")return new window.Blob([e],{type:"application/json;charset=utf-8"});var r=D8e(window.atob(e));return new window.Blob([r],{type:"image/"+t})};El.octetStream=function(e){document.location.href="data:application/octet-stream"+e};El.getPlotTitle=function(e){var i,a,n,o;var t=e._fullLayout;if(t){var r=(i=t.title)==null?void 0:i.text;return r===((a=t._dfltTitle)==null?void 0:a.plot)?void 0:r}return(o=(n=e.layout)==null?void 0:n.title)==null?void 0:o.text};El.getPlotSubtitle=function(e){var i,a,n,o,s,l;var t=e._fullLayout;if(t){var r=(a=(i=t.title)==null?void 0:i.subtitle)==null?void 0:a.text;return r===((n=t._dfltTitle)==null?void 0:n.subtitle)?void 0:r}return(l=(s=(o=e.layout)==null?void 0:o.title)==null?void 0:s.subtitle)==null?void 0:l.text};function D8e(e){for(var t=e.length,r=new ArrayBuffer(t),i=new Uint8Array(r),a=0;a{"use strict";var jD=Wr(),crt=et(),S8e=xi(),E8e=qr(),hrt=(of(),ct(nf)),GD=/"/g,yd="TOBESTRIPPED",k8e=new RegExp(`("${yd})|(${yd}")|("${yd})|(${yd}")`,"g"),C8e=["&","&","&",""",""",""","'","'","'"],F8e=["<","<","<"],P8e=[">",">",">"];function I8e(e){let t=jD.select("body").append("div").style({display:"none"}).html(""),r=e.replace(/(&[^;]*;)/gi,i=>{let a=i.toLowerCase();return C8e.includes(a)?i:F8e.includes(a)?"<":P8e.includes(a)?">":i.includes("<")||i.includes(">")?"":t.html(i).text()});return t.remove(),r}function L8e(e){return e.replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&")}VZ.exports=function(t,r,i){var a=t._fullLayout,n=a._paper,o=a._toppaper,s=a.width,l=a.height,u;n.insert("rect",":first-child").call(S8e.setRect,0,0,s,l).call(E8e.fill,a.paper_bgcolor);var c=a._basePlotModules||[];for(u=0;u{"use strict";var z8e=et(),R8e=jx().EventEmitter,Hg=gd();function B8e(e){var t=e.emitter||new R8e,r=new Promise(function(i,a){var n=window.Image,o=e.svg,s=e.format||"png",l=e.canvas,u=e.scale||1,c=e.width||300,h=e.height||150,f=u*c,d=u*h,p=l.getContext("2d",{willReadFrequently:!0}),m=new n,g,y;s==="svg"||z8e.isSafari()?y=Hg.encodeSVG(o):(g=Hg.createBlob(o,"svg"),y=Hg.createObjectURL(g)),l.width=f,l.height=d,m.onload=function(){var x;switch(g=null,Hg.revokeObjectURL(y),s!=="svg"&&p.drawImage(m,0,0,f,d),s){case"jpeg":x=l.toDataURL("image/jpeg");break;case"png":x=l.toDataURL("image/png");break;case"webp":x=l.toDataURL("image/webp");break;case"svg":x=y;break;default:var w="Image format is not jpeg, png, svg or webp.";if(a(new Error(w)),!e.promise)return t.emit("error",w)}i(x),e.promise||t.emit("success",x)},m.onerror=function(x){if(g=null,Hg.revokeObjectURL(y),a(x),!e.promise)return t.emit("error",x)},m.src=y});return e.promise?r:t}UZ.exports=B8e});var HD=X((prt,$Z)=>{"use strict";var GZ=Br(),jZ=UD(),q8e=gn(),_c=et(),Zg=gd(),O8e=W3(),N8e=X3(),V8e=uv().version,$D=(t7(),ct(e7)).default;function U8e(e,t){t=t||{};var r,i,a,n;_c.isPlainObject(e)?(r=e.data||[],i=e.layout||{},a=e.config||{},n={}):(e=_c.getGraphDiv(e),r=_c.extendDeep([],e.data),i=_c.extendDeep({},e.layout),a=e._context,n=e._fullLayout||{});function o(T){return!(T in t)||_c.validate(t[T],$D[T])}if(!o("width")&&t.width!==null||!o("height")&&t.height!==null)throw new Error("Height and width should be pixel values.");if(!o("format"))throw new Error("Export format is not "+_c.join2($D.format.values,", "," or ")+".");var s={};function l(T,M){return _c.coerce(t,s,$D,T,M)}var u=l("format"),c=l("width"),h=l("height"),f=l("scale"),d=l("setBackground"),p=l("imageDataOnly"),m=document.createElement("div");m.style.position="absolute",m.style.left="-5000px",document.body.appendChild(m);var g=_c.extendFlat({},i);c?g.width=c:t.width===null&&GZ(n.width)&&(g.width=n.width),h?g.height=h:t.height===null&&GZ(n.height)&&(g.height=n.height);var y=_c.extendFlat({},a,{_exportedPlot:!0,staticPlot:!0,setBackground:d}),x=Zg.getRedrawFunc(m);function w(){return new Promise(function(T){setTimeout(T,Zg.getDelay(m._fullLayout))})}function _(){return new Promise(function(T,M){var S=O8e(m,u,f),k=m._fullLayout.width,P=m._fullLayout.height;function I(){jZ.purge(m),document.body.removeChild(m)}if(u==="full-json"){var B=q8e.graphJson(m,!1,"object",!0,!0);return B.version=V8e,B=JSON.stringify(B),I(),T(p?B:Zg.encodeJSON(B))}if(I(),u==="svg")return T(p?S:Zg.encodeSVG(S));var L=document.createElement("canvas");L.id=_c.randstr(),N8e({format:u,width:k,height:P,scale:f,canvas:L,svg:S,promise:!0}).then(T).catch(M)})}function A(T){return p?T.replace(Zg.IMAGE_URL_PREFIX,""):T}return new Promise(function(T,M){jZ.newPlot(m,r,g,y).then(x).then(w).then(_).then(function(S){T(A(S))}).catch(function(S){M(S)})})}$Z.exports=U8e});var YZ=X((mrt,ZZ)=>{"use strict";var kl=et(),G8e=gn(),j8e=a1(),$8e=Hh().dfltConfig,_u=kl.isPlainObject,xd=Array.isArray,ZD=kl.isArrayOrTypedArray;ZZ.exports=function(t,r){t===void 0&&(t=[]),r===void 0&&(r={});var i=j8e.get(),a=[],n={_context:kl.extendFlat({},$8e)},o,s;xd(t)?(n.data=kl.extendDeep([],t),o=t):(n.data=[],o=[],a.push(bn("array","data"))),_u(r)?(n.layout=kl.extendDeep({},r),s=r):(n.layout={},s={},arguments.length>1&&a.push(bn("object","layout"))),G8e.supplyDefaults(n);for(var l=n._fullData,u=o.length,c=0;ch.length&&i.push(bn("unused",a,u.concat(h.length)));var y=h.length,x=Array.isArray(g);x&&(y=Math.min(y,g.length));var w,_,A,T,M;if(f.dimensions===2)for(_=0;_h[_].length&&i.push(bn("unused",a,u.concat(_,h[_].length)));var S=h[_].length;for(w=0;w<(x?Math.min(S,g[_].length):S);w++)A=x?g[_][w]:g,T=c[_][w],M=h[_][w],kl.validate(T,A)?M!==T&&M!==+T&&i.push(bn("dynamic",a,u.concat(_,w),T,M)):i.push(bn("value",a,u.concat(_,w),T))}else i.push(bn("array",a,u.concat(_),c[_]));else for(_=0;_{"use strict";var J8e=et(),J3=gd();function Q8e(e,t,r){var i=document.createElement("a"),a="download"in i,n=new Promise(function(o,s){var l,u;if(a)return l=J3.createBlob(e,r),u=J3.createObjectURL(l),i.href=u,i.download=t,document.body.appendChild(i),i.click(),document.body.removeChild(i),J3.revokeObjectURL(u),l=null,o(t);if(J8e.isSafari()){var c=r==="svg"?",":";base64,";return J3.octetStream(c+encodeURIComponent(e)),o(t)}s(new Error("download error"))});return n}WZ.exports=Q8e});var YD=X((grt,eY)=>{"use strict";var Q3=et(),KZ=sn(),eMe=HD(),tMe=XZ(),JZ=gd(),QZ=40;function rMe(e,t){var r;return Q3.isPlainObject(e)||(r=Q3.getGraphDiv(e)),t=t||{},t.format=t.format||"png",t.width=t.width||null,t.height=t.height||null,t.imageDataOnly=!0,new Promise(function(i,a){r&&r._snapshotInProgress&&a(new Error("Image capture already in progress.")),r&&(r._snapshotInProgress=!0);var n=eMe(e,t),o=t.filename||e.fn;if(!o){let l=JZ.getPlotTitle(e);if(l&&!KZ.matchTex(l))o=Q3.slugify(l,QZ);else{let u=JZ.getPlotSubtitle(e);u&&!KZ.matchTex(u)&&(o=Q3.slugify(u,QZ))}}var s=o||"plot-image";s+="."+t.format.replace("-","."),n.then(function(l){return r&&(r._snapshotInProgress=!1),tMe(l,s,t.format)}).then(function(l){i(l)}).catch(function(l){r&&(r._snapshotInProgress=!1),a(l)})})}eY.exports=rMe});var nY=X(WD=>{"use strict";var ps=et(),ms=ps.isPlainObject,tY=a1(),rY=gn(),iMe=Go(),iY=Bi(),aY=Hh().dfltConfig;WD.makeTemplate=function(e){e=ps.isPlainObject(e)?e:ps.getGraphDiv(e),e=ps.extendDeep({_context:aY},{data:e.data,layout:e.layout}),rY.supplyDefaults(e);var t=e.data||[],r=e.layout||{};r._basePlotModules=e._fullLayout._basePlotModules,r._modules=e._fullLayout._modules;var i={data:{},layout:{}};t.forEach(function(d){var p={};Yg(d,p,nMe.bind(null,d));var m=ps.coerce(d,{},iMe,"type"),g=i.data[m];g||(g=i.data[m]=[]),g.push(p)}),Yg(r,i.layout,aMe.bind(null,r)),delete i.layout.template;var a=r.template;if(ms(a)){var n=a.layout,o,s,l,u,c,h;ms(n)&&e5(n,i.layout);var f=a.data;if(ms(f)){for(s in i.data)if(l=f[s],Array.isArray(l)){for(c=i.data[s],h=c.length,u=l.length,o=0;oy?o.push({code:"unused",traceType:d,templateCount:g,dataCount:y}):y>g&&o.push({code:"reused",traceType:d,templateCount:g,dataCount:y})}}function x(w,_){for(var A in w)if(A.charAt(0)!=="_"){var T=w[A],M=Cl(w,A,_);ms(T)?(Array.isArray(w)&&T._template===!1&&T.templateitemname&&o.push({code:"missing",path:M,templateitemname:T.templateitemname}),x(T,M)):Array.isArray(T)&&oMe(T)&&x(T,M)}}if(x({data:l,layout:s},""),o.length)return o.map(sMe)};function oMe(e){for(var t=0;t{"use strict";var un=UD();ia._doPlot=un._doPlot;ia.newPlot=un.newPlot;ia.restyle=un.restyle;ia.relayout=un.relayout;ia.redraw=un.redraw;ia.update=un.update;ia._guiRestyle=un._guiRestyle;ia._guiRelayout=un._guiRelayout;ia._guiUpdate=un._guiUpdate;ia._storeDirectGUIEdit=un._storeDirectGUIEdit;ia.react=un.react;ia.extendTraces=un.extendTraces;ia.prependTraces=un.prependTraces;ia.addTraces=un.addTraces;ia.deleteTraces=un.deleteTraces;ia.moveTraces=un.moveTraces;ia.purge=un.purge;ia.addFrames=un.addFrames;ia.deleteFrames=un.deleteFrames;ia.animate=un.animate;ia.setPlotConfig=un.setPlotConfig;var lMe=zv().getGraphDiv,uMe=l3().eraseActiveShape;ia.deleteActiveShape=function(e){return uMe(lMe(e))};ia.toImage=HD();ia.validate=YZ();ia.downloadImage=YD();var oY=nY();ia.makeTemplate=oY.makeTemplate;ia.validateTemplate=oY.validateTemplate});var uY=X((xrt,lY)=>{"use strict";var XD=et(),cMe=mr();lY.exports=function(t,r,i,a){var n=a("x"),o=a("y"),s,l=cMe.getComponentMethod("calendars","handleTraceDefaults");if(l(t,r,["x","y"],i),n){var u=XD.minRowLength(n);o?s=Math.min(u,XD.minRowLength(o)):(s=u,a("y0"),a("dy"))}else{if(!o)return 0;s=XD.minRowLength(o),a("x0"),a("dx")}return r._length=s,s}});var dY=X((brt,fY)=>{"use strict";var cY=et().dateTick0,hMe=(Ki(),ct(na)),fMe=hMe.ONEWEEK;function hY(e,t){return e%fMe===0?cY(t,1):cY(t,0)}fY.exports=function(t,r,i,a,n){if(n||(n={x:!0,y:!0}),n.x){var o=a("xperiod");o&&(a("xperiod0",hY(o,r.xcalendar)),a("xperiodalignment"))}if(n.y){var s=a("yperiod");s&&(a("yperiod0",hY(s,r.ycalendar)),a("yperiodalignment"))}}});var vY=X((wrt,mY)=>{"use strict";var pY=["orientation","groupnorm","stackgaps"];mY.exports=function(t,r,i,a){var n=i._scatterStackOpts,o=a("stackgroup");if(o){var s=r.xaxis+r.yaxis,l=n[s];l||(l=n[s]={});var u=l[o],c=!1;u?u.traces.push(r):(u=l[o]={traceIndices:[],traces:[r]},c=!0);for(var h={orientation:r.x&&!r.y?"h":"v"},f=0;f{"use strict";var gY=qr(),yY=ic().hasColorscale,_Y=K0(),dMe=wo();xY.exports=function(t,r,i,a,n,o={}){var s=dMe.isBubble(t),l=(t.line||{}).color,u;if(l&&(i=l),n("marker.symbol"),n("marker.opacity",s?.7:1),n("marker.size"),o.noAngle||(n("marker.angle"),o.noAngleRef||n("marker.angleref"),o.noStandOff||n("marker.standoff")),n("marker.color",i),yY(t,"marker")&&_Y(t,r,a,n,{prefix:"marker.",cLetter:"c"}),o.noSelect||(n("selected.marker.color"),n("unselected.marker.color"),n("selected.marker.size"),n("unselected.marker.size")),o.noLine||(l&&!Array.isArray(l)&&r.marker.color!==l?u=l:s?u=gY.background:u=gY.defaultLine,n("marker.line.color",u),yY(t,"marker.line")&&_Y(t,r,a,n,{prefix:"marker.line.",cLetter:"c"}),n("marker.line.width",s?1:0),o.noLineDash||n("marker.line.dash")),s&&(n("marker.sizeref"),n("marker.sizemin"),n("marker.sizemode")),o.gradient){var c=n("marker.gradient.type");c!=="none"&&n("marker.gradient.color")}}});var JD=X((Trt,bY)=>{"use strict";var pMe=et().isArrayOrTypedArray,mMe=ic().hasColorscale,vMe=K0();bY.exports=function(t,r,i,a,n,o){o||(o={});var s=(t.marker||{}).color;if(s&&s._inputArray&&(s=s._inputArray),n("line.color",i),mMe(t,"line"))vMe(t,r,a,n,{prefix:"line.",cLetter:"c"});else{var l=(pMe(s)?!1:s)||i;n("line.color",l)}n("line.width"),o.noDash||n("line.dash"),o.backoff&&n("line.backoff")}});var AY=X((Mrt,wY)=>{"use strict";wY.exports=function(t,r,i){var a=i("line.shape");a==="spline"&&i("line.smoothing")}});var QD=X((Drt,TY)=>{"use strict";var gMe=et();TY.exports=function(e,t,r,i,a){a=a||{},i("textposition"),gMe.coerceFont(i,"textfont",a.font||r.font,a),a.noSelect||(i("selected.textfont.color"),i("unselected.textfont.color"))}});var eS=X((Srt,DY)=>{"use strict";var r5=qr(),MY=et().isArrayOrTypedArray;function yMe(e){for(var t=r5.interpolate(e[0][1],e[1][1],.5),r=2;r{"use strict";var SY=et(),_Me=mr(),xMe=nh(),bMe=(S3(),ct(D3)),P1=wo(),wMe=uY(),AMe=dY(),TMe=vY(),MMe=KD(),DMe=JD(),EY=AY(),SMe=QD(),EMe=eS(),kMe=et().coercePattern;kY.exports=function(t,r,i,a){function n(d,p){return SY.coerce(t,r,xMe,d,p)}var o=wMe(t,r,a,n);if(o||(r.visible=!1),!!r.visible){AMe(t,r,a,n),n("xhoverformat"),n("yhoverformat"),n("zorder");var s=TMe(t,r,a,n);a.scattermode==="group"&&r.orientation===void 0&&n("orientation","v");var l=!s&&o{"use strict";var CMe=_g().getAxisGroup;FY.exports=function(t,r,i,a,n){var o=r.orientation,s=r[{v:"x",h:"y"}[o]+"axis"],l=CMe(i,s)+o,u=i._alignmentOpts||{},c=a("alignmentgroup"),h=u[l];h||(h=u[l]={});var f=h[c];f?f.traces.push(r):f=h[c]={traces:[r],alignmentIndex:Object.keys(h).length,offsetGroups:{}};var d=a("offsetgroup")||"",p=f.offsetGroups,m=p[d];r._offsetIndex=0,(n!=="group"||d)&&(m||(m=p[d]={offsetIndex:Object.keys(p).length}),r._offsetIndex=m.offsetIndex)}});var LY=X((Crt,IY)=>{"use strict";var FMe=et(),PMe=PY(),IMe=nh();IY.exports=function(t,r){var i,a,n,o=r.scattermode;function s(f){return FMe.coerce(a._input,a,IMe,f)}if(r.scattermode==="group")for(n=0;n=0;c--){var h=t[c];if(h.type==="scatter"&&h.xaxis===l.xaxis&&h.yaxis===l.yaxis){h.opacity=void 0;break}}}}}});var RY=X((Frt,zY)=>{"use strict";var LMe=et(),zMe=Wx();zY.exports=function(e,t){function r(a,n){return LMe.coerce(e,t,zMe,a,n)}var i=t.barmode==="group";t.scattermode==="group"&&r("scattergap",i?t.bargap:.2)}});var OY=X((Prt,qY)=>{"use strict";var RMe=Br(),BY=et(),BMe=BY.dateTime2ms,i5=BY.incrementMonth,qMe=(Ki(),ct(na)),OMe=qMe.ONEAVGMONTH;qY.exports=function(t,r,i,a){if(r.type!=="date")return{vals:a};var n=t[i+"periodalignment"];if(!n)return{vals:a};var o=t[i+"period"],s;if(RMe(o)){if(o=+o,o<=0)return{vals:a}}else if(typeof o=="string"&&o.charAt(0)==="M"){var l=+o.substring(1);if(l>0&&Math.round(l)===l)s=l;else return{vals:a}}for(var u=r.calendar,c=n==="start",h=n==="end",f=t[i+"period0"],d=BMe(f,u)||0,p=[],m=[],g=[],y=a.length,x=0;xw;)T=i5(T,-s,u);for(;T<=w;)T=i5(T,s,u);A=i5(T,-s,u)}else{for(_=Math.round((w-d)/o),T=d+_*o;T>w;)T-=o;for(;T<=w;)T+=o;A=T-o}p[x]=c?A:h?T:(A+T)/2,m[x]=A,g[x]=T}return{vals:p,starts:m,ends:g}}});var iS=X((Irt,VY)=>{"use strict";var tS=ic().hasColorscale,rS=Yv(),NY=wo();VY.exports=function(t,r){NY.hasLines(r)&&tS(r,"line")&&rS(t,r,{vals:r.line.color,containerStr:"line",cLetter:"c"}),NY.hasMarkers(r)&&(tS(r,"marker")&&rS(t,r,{vals:r.marker.color,containerStr:"marker",cLetter:"c"}),tS(r,"marker.line")&&rS(t,r,{vals:r.marker.line.color,containerStr:"marker.line",cLetter:"c"}))}});var Wg=X((Lrt,UY)=>{"use strict";var xa=et();UY.exports=function(t,r){for(var i=0;i{"use strict";var GY=et();jY.exports=function(t,r){GY.isArrayOrTypedArray(r.selectedpoints)&&GY.tagSelected(t,r)}});var lS=X((Rrt,KY)=>{"use strict";var $Y=Br(),nS=et(),Xg=ta(),HY=OY(),aS=(Ki(),ct(na)).BADNUM,oS=wo(),NMe=iS(),VMe=Wg(),UMe=a5();function GMe(e,t){var r=e._fullLayout,i=t._xA=Xg.getFromId(e,t.xaxis||"x","x"),a=t._yA=Xg.getFromId(e,t.yaxis||"y","y"),n=i.makeCalcdata(t,"x"),o=a.makeCalcdata(t,"y"),s=HY(t,i,"x",n),l=HY(t,a,"y",o),u=s.vals,c=l.vals,h=t._length,f=new Array(h),d=t.ids,p=sS(t,r,i,a),m=!1,g,y,x,w,_,A;WY(r,t);var T="x",M="y",S;if(p)nS.pushUnique(p.traceIndices,t.index),g=p.orientation==="v",g?(M="s",S="x"):(T="s",S="y"),_=p.stackgaps==="interpolate";else{var k=YY(t,h);ZY(e,t,i,a,u,c,k)}var P=!!t.xperiodalignment,I=!!t.yperiodalignment;for(y=0;yy&&f[w].gap;)w--;for(A=f[w].s,x=f.length-1;x>w;x--)f[x].s=A;for(;y{"use strict";JY.exports=n5;var jMe=et().distinctVals;function n5(e,t){this.traces=e,this.sepNegVal=t.sepNegVal,this.overlapNoMerge=t.overlapNoMerge;for(var r=1/0,i=t.posAxis._id.charAt(0),a=[],n=0;n$Me,eventDataKeys:()=>HMe});var $Me,HMe,tW=Vi(()=>{"use strict";$Me=3,HMe=["value","label"]});var oW=X((qrt,nW)=>{"use strict";var Fl=Br(),{isArrayOrTypedArray:sh}=et(),{BADNUM:I1}=(Ki(),ct(na)),ZMe=mr(),Kg=ta(),{getAxisGroup:YMe}=_g(),o5=QY(),{TEXTPAD:WMe}=(tW(),ct(eW)),{LINE_SPACING:XMe}=(ao(),ct(io)),{BR_TAG_ALL:KMe}=sn();function JMe(e,t){for(var r=t.xaxis,i=t.yaxis,a=e._fullLayout,n=e._fullData,o=e.calcdata,s=[],l=[],u=0;ul+o||!Fl(s))}for(var c=0;ci(n))):i(e.text);let a=e.outsidetextfont.size*XMe*r+WMe;return{ppadplus:t.some(n=>n.s<0)?a:0,ppadminus:t.some(n=>n.s>=0)?a:0}}return{ppadplus:void 0,ppadminus:void 0}}function lDe(e,t,r,i){for(var a=L1(i),n=0;n{"use strict";var sW=lS(),lW=oW().setGroupPositions;function cDe(e,t){for(var r=t.xaxis,i=t.yaxis,a=e._fullLayout,n=e._fullData,o=e.calcdata,s=[],l=[],u=0;uk[c]&&c{"use strict";var fDe=xi(),pW=(Ki(),ct(na)),Jg=pW.BADNUM,mW=pW.LOG_CLIP,hW=mW+.5,fW=mW-.5,s5=et(),dDe=s5.segmentsIntersect,dW=s5.constrain,mS=(S3(),ct(D3));vW.exports=function(t,r){var i=r.trace||{},a=r.xaxis,n=r.yaxis,o=a.type==="log",s=n.type==="log",l=a._length,u=n._length,c=r.backoff,h=i.marker,f=r.connectGaps,d=r.baseTolerance,p=r.shape,m=p==="linear",g=i.fill&&i.fill!=="none",y=[],x=mS.minTolerance,w=t.length,_=new Array(w),A=0,T,M,S,k,P,I,B,L,z,O,V,$,j,H,Z,W;function le(Ze){var gt=t[Ze];if(!gt)return!1;var rt=r.linearized?a.l2p(gt.x):a.c2p(gt.x),Ft=r.linearized?n.l2p(gt.y):n.c2p(gt.y);if(rt===Jg){if(o&&(rt=a.c2p(gt.x,!0)),rt===Jg)return!1;s&&Ft===Jg&&(rt*=Math.abs(a._m*u*(a._m>0?hW:fW)/(n._m*l*(n._m>0?hW:fW)))),rt*=1e3}if(Ft===Jg){if(s&&(Ft=n.c2p(gt.y,!0)),Ft===Jg)return!1;Ft*=1e3}return[rt,Ft]}function pe(Ze,gt,rt,Ft){var Pt=rt-Ze,bt=Ft-gt,zt=.5-Ze,fe=.5-gt,Se=Pt*Pt+bt*bt,it=Pt*zt+bt*fe;if(it>0&&it1||Math.abs(zt.y-rt[0][1])>1)&&(zt=[zt.x,zt.y],Ft&&Ce(zt,Ze)ye||Ze[1]re)return[dW(Ze[0],ae,ye),dW(Ze[1],te,re)]}function Re(Ze,gt){if(Ze[0]===gt[0]&&(Ze[0]===ae||Ze[0]===ye)||Ze[1]===gt[1]&&(Ze[1]===te||Ze[1]===re))return!0}function Ve(Ze,gt){var rt=[],Ft=je(Ze),Pt=je(gt);return Ft&&Pt&&Re(Ft,Pt)||(Ft&&rt.push(Ft),Pt&&rt.push(Pt)),rt}function ge(Ze,gt,rt){return function(Ft,Pt){var bt=je(Ft),zt=je(Pt),fe=[];if(bt&&zt&&Re(bt,zt))return fe;bt&&fe.push(bt),zt&&fe.push(zt);var Se=2*s5.constrain((Ft[Ze]+Pt[Ze])/2,gt,rt)-((bt||Ft)[Ze]+(zt||Pt)[Ze]);if(Se){var it;bt&&zt?it=Se>0==bt[Ze]>zt[Ze]?bt:zt:it=bt||zt,it[Ze]+=Se}return fe}}var Ge;p==="linear"||p==="spline"?Ge=se:p==="hv"||p==="vh"?Ge=Ve:p==="hvh"?Ge=ge(0,ae,ye):p==="vhv"&&(Ge=ge(1,te,re));function tt(Ze,gt){var rt=gt[0]-Ze[0],Ft=(gt[1]-Ze[1])/rt,Pt=(Ze[1]*gt[0]-gt[1]*Ze[0])/rt;return Pt>0?[Ft>0?ae:ye,re]:[Ft>0?ye:ae,te]}function ie(Ze){var gt=Ze[0],rt=Ze[1],Ft=gt===_[A-1][0],Pt=rt===_[A-1][1];if(!(Ft&&Pt))if(A>1){var bt=gt===_[A-2][0],zt=rt===_[A-2][1];Ft&&(gt===ae||gt===ye)&&bt?zt?A--:_[A-1]=Ze:Pt&&(rt===te||rt===re)&&zt?bt?A--:_[A-1]=Ze:_[A++]=Ze}else _[A++]=Ze}function we(Ze){_[A-1][0]!==Ze[0]&&_[A-1][1]!==Ze[1]&&ie([He,ke]),ie(Ze),Oe=null,He=ke=0}var ot=s5.isArrayOrTypedArray(h);function At(Ze){if(Ze&&c&&(Ze.i=T,Ze.d=t,Ze.trace=i,Ze.marker=ot?h[Ze.i]:h,Ze.backoff=c),_e=Ze[0]/l,De=Ze[1]/u,me=Ze[0]ye?ye:0,ze=Ze[1]re?re:0,me||ze){if(!A)_[A++]=[me||Ze[0],ze||Ze[1]];else if(Oe){var gt=Ge(Oe,Ze);gt.length>1&&(we(gt[0]),_[A++]=gt[1])}else qe=Ge(_[A-1],Ze)[0],_[A++]=qe;var rt=_[A-1];me&&ze&&(rt[0]!==me||rt[1]!==ze)?(Oe&&(He!==me&&ke!==ze?ie(He&&ke?tt(Oe,Ze):[He||me,ke||ze]):He&&ke&&ie([He,ke])),ie([me,ze])):He-me&&ke-ze&&ie([me||He,ze||ke]),Oe=Ze,He=me,ke=ze}else Oe&&we(Ge(Oe,Ze)[0]),_[A++]=Ze}for(T=0;Tde(I,$e))break;S=I,j=z[0]*L[0]+z[1]*L[1],j>V?(V=j,k=I,B=!1):j<$&&($=j,P=I,B=!0)}if(B?(At(k),S!==P&&At(P)):(P!==M&&At(P),S!==k&&At(k)),At(S),T>=t.length||!I)break;At(I),M=I}}Oe&&ie([He||Oe[0],ke||Oe[1]]),y.push(_.slice(0,A))}var Ee=p.slice(p.length-1);if(c&&Ee!=="h"&&Ee!=="v"){for(var Me=!1,We=-1,lt=[],Qe=0;Qe{"use strict";var yW={tonextx:1,tonexty:1,tonext:1};_W.exports=function(t,r,i){var a,n,o,s,l,u={},c=!1,h=-1,f=0,d=-1;for(n=0;n=0?l=d:(l=d=f,f++),l{"use strict";var xu=Wr(),pDe=mr(),Qg=et(),z1=Qg.ensureSingle,wW=Qg.identity,Ma=xi(),R1=wo(),mDe=gW(),vDe=xW(),l5=x3().tester;AW.exports=function(t,r,i,a,n,o){var s,l,u=!n,c=!!n&&n.duration>0,h=vDe(t,r,i);if(s=a.selectAll("g.trace").data(h,function(d){return d[0].trace.uid}),s.enter().append("g").attr("class",function(d){return"trace scatter trace"+d[0].trace.uid}).style("stroke-miterlimit",2),s.order(),gDe(t,s,r),c){o&&(l=o());var f=xu.transition().duration(n.duration).ease(n.easing).each("end",function(){l&&l()}).each("interrupt",function(){l&&l()});f.each(function(){a.selectAll("g.trace").each(function(d,p){bW(t,p,r,d,h,this,n)})})}else s.each(function(d,p){bW(t,p,r,d,h,this,n)});u&&s.exit().remove(),a.selectAll("path:not([d])").remove()};function gDe(e,t,r){t.each(function(i){var a=z1(xu.select(this),"g","fills");Ma.setClipUrl(a,r.layerClipId,e);var n=i[0].trace;n._ownFill=null,n._nextFill=null;var o=[];n._ownfill&&o.push("_ownFill"),n._nexttrace&&o.push("_nextFill");var s=a.selectAll("g").data(o,wW);s.enter().append("g"),s.exit().remove(),s.order().each(function(l){n[l]=z1(xu.select(this),"path","js-fill")})})}function bW(e,t,r,i,a,n,o){var s=e._context.staticPlot,l;yDe(e,t,r,i,a);var u=!!o&&o.duration>0;function c(ge){return u?ge.transition():ge}var h=r.xaxis,f=r.yaxis,d=i[0].trace,p=d.line,m=xu.select(n),g=z1(m,"g","errorbars"),y=z1(m,"g","lines"),x=z1(m,"g","points"),w=z1(m,"g","text");if(pDe.getComponentMethod("errorbars","plot")(e,g,r,o),d.visible!==!0)return;c(m).style("opacity",d.opacity);var _,A,T=d.fill.charAt(d.fill.length-1);T!=="x"&&T!=="y"&&(T="");var M,S;T==="y"?(M=1,S=f.c2p(0,!0)):T==="x"&&(M=0,S=h.c2p(0,!0)),i[0][r.isRangePlot?"nodeRangePlot3":"node3"]=m;var k="",P=[],I=d._prevtrace,B=null,L=null;I&&(k=I._prevRevpath||"",A=I._nextFill,P=I._ownPolygons,B=I._fillsegments,L=I._fillElement);var z,O,V="",$="",j,H,Z,W,le,pe,_e=[];d._polygons=[];var De=[],de=[],Ce=Qg.noop;if(_=d._ownFill,R1.hasLines(d)||d.fill!=="none"){A&&A.datum(i),["hv","vh","hvh","vhv"].indexOf(p.shape)!==-1?(j=Ma.steps(p.shape),H=Ma.steps(p.shape.split("").reverse().join(""))):p.shape==="spline"?j=H=function(ge){var Ge=ge[ge.length-1];return ge.length>1&&ge[0][0]===Ge[0]&&ge[0][1]===Ge[1]?Ma.smoothclosed(ge.slice(1),p.smoothing):Ma.smoothopen(ge,p.smoothing)}:j=H=function(ge){return"M"+ge.join("L")},Z=function(ge){return H(ge.reverse())},de=mDe(i,{xaxis:h,yaxis:f,trace:d,connectGaps:d.connectgaps,baseTolerance:Math.max(p.width||1,3)/4,shape:p.shape,backoff:p.backoff,simplify:p.simplify,fill:d.fill}),De=new Array(de.length);var Q=0;for(l=0;l=s[0]&&m.x<=s[1]&&m.y>=l[0]&&m.y<=l[1]}),f=Math.ceil(h.length/c),d=0;a.forEach(function(m,g){var y=m[0].trace;R1.hasMarkers(y)&&y.marker.maxdisplayed>0&&g{"use strict";MW.exports={container:"marker",min:"cmin",max:"cmax"}});var SW=X((jrt,DW)=>{"use strict";var u5=ta();DW.exports=function(t,r,i){var a={},n={_fullLayout:i},o=u5.getFromTrace(n,r,"x"),s=u5.getFromTrace(n,r,"y"),l=t.orig_x;l===void 0&&(l=t.x);var u=t.orig_y;return u===void 0&&(u=t.y),a.xLabel=u5.tickText(o,o.c2l(l),!0).text,a.yLabel=u5.tickText(s,s.c2l(u),!0).text,a}});var xS=X(($rt,EW)=>{"use strict";var gS=Wr(),B1=xi(),_De=mr();function xDe(e){var t=gS.select(e).selectAll("g.trace.scatter");t.style("opacity",function(r){return r[0].trace.opacity}),t.selectAll("g.points").each(function(r){var i=gS.select(this),a=r.trace||r[0].trace;yS(i,a,e)}),t.selectAll("g.text").each(function(r){var i=gS.select(this),a=r.trace||r[0].trace;_S(i,a,e)}),t.selectAll("g.trace path.js-line").call(B1.lineGroupStyle),t.selectAll("g.trace path.js-fill").call(B1.fillGroupStyle,e,!1),_De.getComponentMethod("errorbars","style")(t)}function yS(e,t,r){B1.pointStyle(e.selectAll("path.point"),t,r)}function _S(e,t,r){B1.textPointStyle(e.selectAll("text"),t,r)}function bDe(e,t,r){var i=t[0].trace;i.selectedpoints?(B1.selectedPointStyle(r.selectAll("path.point"),i),B1.selectedTextStyle(r.selectAll("text"),i)):(yS(r,i,e),_S(r,i,e))}EW.exports={style:xDe,stylePoints:yS,styleText:_S,styleOnSelect:bDe}});var bS=X((Hrt,kW)=>{"use strict";var q1=qr(),wDe=wo();kW.exports=function(t,r){var i,a;if(t.mode==="lines")return i=t.line.color,i&&q1.opacity(i)?i:t.fillcolor;if(t.mode==="none")return t.fill?t.fillcolor:"";var n=r.mcc||r.mc||(t.marker||{}).color,o=r.mlcc||((t.marker||{}).line||{}).color;return a=n&&q1.opacity(n)?n:o&&q1.opacity(o)&&(r.mlw||((t.marker||{}).line||{}).width)?o:"",a?q1.opacity(a)<.3?q1.addOpacity(a,.3):a:(i=(t.line||{}).color,i&&q1.opacity(i)&&wDe.hasLines(t)&&t.line.width?i:t.fillcolor)}});var PW=X((Zrt,FW)=>{"use strict";var c5=et(),CW=vu(),ADe=mr(),TDe=bS(),wS=qr(),MDe=c5.fillText;FW.exports=function(t,r,i,a){var n=t.cd,o=n[0].trace,s=t.xa,l=t.ya,u=s.c2p(r),c=l.c2p(i),h=[u,c],f=o.hoveron||"",d=o.mode.indexOf("markers")!==-1?3:.5,p=!!o.xperiodalignment,m=!!o.yperiodalignment;if(f.indexOf("points")!==-1){var g=function($){if(p){var j=s.c2p($.xStart),H=s.c2p($.xEnd);return u>=Math.min(j,H)&&u<=Math.max(j,H)?0:1/0}var Z=Math.max(3,$.mrc||0),W=1-1/Z,le=Math.abs(s.c2p($.x)-u);return le=Math.min(j,H)&&c<=Math.max(j,H)?0:1/0}var Z=Math.max(3,$.mrc||0),W=1-1/Z,le=Math.abs(l.c2p($.y)-c);return le_e!=re>=_e&&(ae=Ce[de-1][0],ye=Ce[de][0],re-te&&(Q=ae+(ye-ae)*(_e-te)/(re-te),Z=Math.min(Z,Q),W=Math.max(W,Q)));return Z=Math.max(Z,0),W=Math.min(W,s._length),{x0:Z,x1:W,y0:_e,y1:_e}}if(f.indexOf("fills")!==-1&&o._fillElement){var z=B(o._fillElement)&&!B(o._fillExclusionElement);if(z){var O=L(o._polygons);O===null&&(O={x0:h[0],x1:h[0],y0:h[1],y1:h[1]});var V=wS.defaultLine;return wS.opacity(o.fillcolor)?V=o.fillcolor:wS.opacity((o.line||{}).color)&&(V=o.line.color),c5.extendFlat(t,{distance:t.maxHoverDistance,x0:O.x0,x1:O.x1,y0:O.y0,y1:O.y1,color:V,hovertemplate:!1}),delete t.index,o.text&&!c5.isArrayOrTypedArray(o.text)?t.text=String(o.text):t.text=o.name,[t]}}}});var zW=X((Yrt,LW)=>{"use strict";var IW=wo();LW.exports=function(t,r){var i=t.cd,a=t.xaxis,n=t.yaxis,o=[],s=i[0].trace,l,u,c,h,f=s.mode&&!IW.hasMarkers(s)&&!IW.hasText(s);if(f)return[];if(r===!1)for(l=0;l{"use strict";RW.exports={xaxis:{valType:"subplotid",dflt:"x",editType:"calc+clearAxisTypes"},yaxis:{valType:"subplotid",dflt:"y",editType:"calc+clearAxisTypes"}}});var VW=X((Xrt,NW)=>{"use strict";var h5=mr().traceIs,AS=O8();NW.exports=function(t,r,i,a){i("autotypenumbers",a.autotypenumbersDflt);var n=i("type",(a.splomStash||{}).type);n==="-"&&(DDe(r,a.data),r.type==="-"?r.type="linear":t.type=r.type)};function DDe(e,t){if(e.type==="-"){var r=e._id,i=r.charAt(0),a;r.indexOf("scene")!==-1&&(r=i);var n=SDe(t,r,i);if(n){if(n.type==="histogram"&&i==={v:"y",h:"x"}[n.orientation||"v"]){e.type="linear";return}var o=i+"calendar",s=n[o],l={noMultiCategory:!h5(n,"cartesian")||h5(n,"noMultiCategory")};if(n.type==="box"&&n._hasPreCompStats&&i==={h:"x",v:"y"}[n.orientation||"v"]&&(l.noMultiCategory=!0),l.autotypenumbers=e.autotypenumbers,OW(n,i)){var u=qW(n),c=[];for(a=0;a0&&(a["_"+r+"axes"]||{})[t])return a;if((a[r+"axis"]||r)===t){if(OW(a,r))return a;if((a[r]||[]).length||a[r+"0"])return a}}}function qW(e){return{v:"x",h:"y"}[e.orientation||"v"]}function OW(e,t){var r=qW(e),i=h5(e,"box-violin");return i&&t===r&&e[r]===void 0&&e[r+"0"]===void 0}});var GW=X((Krt,UW)=>{"use strict";var EDe=os().isTypedArraySpec;function kDe(e,t){var r=t.dataAttr||e._id.charAt(0),i={},a,n,o;if(t.axData)a=t.axData;else for(a=[],n=0;n0||EDe(n),s;o&&(s="array");var l=i("categoryorder",s),u;l==="array"&&(u=i("categoryarray")),!o&&l==="array"&&(l=r.categoryorder="trace"),l==="trace"?r._initialCategories=[]:l==="array"?r._initialCategories=u.slice():(u=kDe(r,a).sort(),l==="category ascending"?r._initialCategories=u:l==="category descending"&&(r._initialCategories=u.reverse()))}}});var HW=X((Jrt,$W)=>{"use strict";var jW=qr(),CDe=ec(),FDe=et();$W.exports=function(t,r,i,a){a=a||{};var n=a.dfltColor;function o(S,k){return FDe.coerce2(t,r,a.attributes,S,k)}var s=o("linecolor",n),l=o("linewidth"),u=i("showline",a.showLine||!!s||!!l);u||(delete r.linecolor,delete r.linewidth);var c=jW.mix(n,a.bgColor,a.blend||CDe.lightFraction),h=o("gridcolor",c),f=o("gridwidth"),d=o("griddash"),p=i("showgrid",a.showGrid||!!h||!!f||!!d);if(p||(delete r.gridcolor,delete r.gridwidth,delete r.griddash),a.hasMinor){var m=jW.mix(r.gridcolor,a.bgColor,67),g=o("minor.gridcolor",m),y=o("minor.gridwidth",r.gridwidth||1),x=o("minor.griddash",r.griddash||"solid"),w=i("minor.showgrid",!!g||!!y||!!x);w||(delete r.minor.gridcolor,delete r.minor.gridwidth,delete r.minor.griddash)}if(!a.noZeroLine){var _=o("zerolinelayer"),A=o("zerolinecolor",n),T=o("zerolinewidth"),M=i("zeroline",a.showGrid||!!A||!!T);M||(delete r.zerolinelayer,delete r.zerolinecolor,delete r.zerolinewidth)}}});var MS=X((Qrt,JW)=>{"use strict";var ZW=Br(),PDe=mr(),ey=et(),IDe=Bi(),LDe=gl(),TS=pu(),YW=u8(),WW=h8(),zDe=p8(),RDe=m8(),BDe=GW(),qDe=HW(),ODe=oM(),XW=_b(),f5=(vn(),ct(mn)).WEEKDAY_PATTERN,NDe=(vn(),ct(mn)).HOUR_PATTERN;JW.exports=function(t,r,i,a,n){var o=a.letter,s=a.font||{},l=a.splomStash||{},u=i("visible",!a.visibleDflt),c=r._template||{},h=r.type||c.type||"-",f;if(h==="date"){var d=PDe.getComponentMethod("calendars","handleDefaults");d(t,r,"calendar",a.calendar),a.noTicklabelmode||(f=i("ticklabelmode"))}!a.noTicklabelindex&&(h==="date"||h==="linear")&&i("ticklabelindex");var p="";(!a.noTicklabelposition||h==="multicategory")&&(p=ey.coerce(t,r,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:f==="period"?["outside","inside"]:o==="x"?["outside","inside","outside left","inside left","outside right","inside right"]:["outside","inside","outside top","inside top","outside bottom","inside bottom"]}},"ticklabelposition")),a.noTicklabeloverflow||i("ticklabeloverflow",p.indexOf("inside")!==-1?"hide past domain":h==="category"||h==="multicategory"?"allow":"hide past div"),XW(r,n),ODe(t,r,i,a),BDe(t,r,i,a),a.noHover||(h!=="category"&&i("hoverformat"),a.noUnifiedhovertitle||i("unifiedhovertitle.text"));var m=i("color"),g=m!==TS.color.dflt?m:s.color,y=l.label||n._dfltTitle[o];if(RDe(t,r,i,h,a),!u)return r;i("title.text",y),ey.coerceFont(i,"title.font",s,{overrideDflt:{size:ey.bigFont(s.size),color:g}}),YW(t,r,i,h);var x=a.hasMinor;if(x&&(IDe.newContainer(r,"minor"),YW(t,r,i,h,{isMinor:!0})),zDe(t,r,i,h,a),WW(t,r,i,a),x){var w=a.isMinor;a.isMinor=!0,WW(t,r,i,a),a.isMinor=w}qDe(t,r,i,{dfltColor:m,bgColor:a.bgColor,showGrid:a.showGrid,hasMinor:x,attributes:TS}),x&&r.ticklabelindex==null&&!r.minor.ticks&&!r.minor.showgrid&&delete r.minor,(r.showline||r.ticks)&&i("mirror");var _=h==="multicategory";if(!a.noTickson&&(h==="category"||_)&&(r.ticks||r.showgrid)&&(_?(i("tickson","boundaries"),delete r.ticklabelposition):i("tickson")),_){var A=i("showdividers");A&&(i("dividercolor"),i("dividerwidth"))}if(h==="date")if(LDe(t,r,{name:"rangebreaks",inclusionAttr:"enabled",handleItemDefaults:VDe}),!r.rangebreaks.length)delete r.rangebreaks;else{for(var T=0;T=2){var o="",s,l;if(n.length===2){for(s=0;s<2;s++)if(l=KW(n[s]),l){o=f5;break}}var u=i("pattern",o);if(u===f5)for(s=0;s<2;s++)l=KW(n[s]),l&&(t.bounds[s]=n[s]=l-1);if(u)for(s=0;s<2;s++)switch(l=n[s],u){case f5:if(!ZW(l)){t.enabled=!1;return}if(l=+l,l!==Math.floor(l)||l<0||l>=7){t.enabled=!1;return}t.bounds[s]=n[s]=l;break;case NDe:if(!ZW(l)){t.enabled=!1;return}if(l=+l,l<0||l>24){t.enabled=!1;return}t.bounds[s]=n[s]=l;break}if(r.autorange===!1){var c=r.range;if(c[0]c[1]){t.enabled=!1;return}}else if(n[0]>c[0]&&n[1]{"use strict";var GDe=Br(),d5=et();QW.exports=function(t,r,i,a){var n=a.counterAxes||[],o=a.overlayableAxes||[],s=a.letter,l=a.grid,u=a.overlayingDomain,c,h,f,d,p,m;l&&(h=l._domains[s][l._axisMap[r._id]],c=l._anchors[r._id],h&&(f=l[s+"side"].split(" ")[0],d=l.domain[s][f==="right"||f==="top"?1:0])),h=h||[0,1],c=c||(GDe(t.position)?"free":n[0]||"free"),f=f||(s==="x"?"bottom":"left"),d=d||0,p=0,m=!1;var g=d5.coerce(t,r,{anchor:{valType:"enumerated",values:["free"].concat(n),dflt:c}},"anchor"),y=d5.coerce(t,r,{side:{valType:"enumerated",values:s==="x"?["bottom","top"]:["left","right"],dflt:f}},"side");if(g==="free"){if(s==="y"){var x=i("autoshift");x&&(d=y==="left"?u[0]:u[1],m=r.automargin?r.automargin:!0,p=y==="left"?-3:3),i("shift",p)}i("position",d)}i("automargin",m);var w=!1;if(o.length&&(w=d5.coerce(t,r,{overlaying:{valType:"enumerated",values:[!1].concat(o),dflt:!1}},"overlaying")),!w){var _=i("domain",h);_[0]>_[1]-1/4096&&(r.domain=h),d5.noneOrAll(t.domain,r.domain,h),r.tickmode==="sync"&&(r.tickmode="auto")}return i("layer"),r}});var lX=X((tit,sX)=>{"use strict";var bd=et(),eX=qr(),jDe=nc().isUnifiedHover,$De=zM(),tX=Bi(),HDe=Yp(),rX=pu(),ZDe=VW(),iX=MS(),YDe=_g(),aX=DS(),ES=nn(),xc=ES.id2name,nX=ES.name2id,WDe=(vn(),ct(mn)).AX_ID_PATTERN,oX=mr(),p5=oX.traceIs,SS=oX.getComponentMethod;function m5(e,t,r){Array.isArray(e[t])?e[t].push(r):e[t]=[r]}sX.exports=function(t,r,i){var a=r.autotypenumbers,n={},o={},s={},l={},u={},c={},h={},f={},d={},p={},m,g;for(m=0;m{"use strict";var XDe=Wr(),uX=mr(),v5=et(),Gs=xi(),g5=ta();cX.exports=function(t,r,i,a){var n=t._fullLayout;if(r.length===0){g5.redrawComponents(t);return}function o(g){var y=g.xaxis,x=g.yaxis;n._defs.select("#"+g.clipId+"> rect").call(Gs.setTranslate,0,0).call(Gs.setScale,1,1),g.plot.call(Gs.setTranslate,y._offset,x._offset).call(Gs.setScale,1,1);var w=g.plot.selectAll(".scatterlayer .trace");w.selectAll(".point").call(Gs.setPointGroupScale,1,1),w.selectAll(".textpoint").call(Gs.setTextPointsScale,1,1),w.call(Gs.hideOutsideRangePoints,g)}function s(g,y){var x=g.plotinfo,w=x.xaxis,_=x.yaxis,A=w._length,T=_._length,M=!!g.xr1,S=!!g.yr1,k=[];if(M){var P=v5.simpleMap(g.xr0,w.r2l),I=v5.simpleMap(g.xr1,w.r2l),B=P[1]-P[0],L=I[1]-I[0];k[0]=(P[0]*(1-y)+y*I[0]-P[0])/(P[1]-P[0])*A,k[2]=A*(1-y+y*L/B),w.range[0]=w.l2r(P[0]*(1-y)+y*I[0]),w.range[1]=w.l2r(P[1]*(1-y)+y*I[1])}else k[0]=0,k[2]=A;if(S){var z=v5.simpleMap(g.yr0,_.r2l),O=v5.simpleMap(g.yr1,_.r2l),V=z[1]-z[0],$=O[1]-O[0];k[1]=(z[1]*(1-y)+y*O[1]-z[1])/(z[0]-z[1])*T,k[3]=T*(1-y+y*$/V),_.range[0]=w.l2r(z[0]*(1-y)+y*O[0]),_.range[1]=_.l2r(z[1]*(1-y)+y*O[1])}else k[1]=0,k[3]=T;g5.drawOne(t,w,{skipTitle:!0}),g5.drawOne(t,_,{skipTitle:!0}),g5.redrawComponents(t,[w._id,_._id]);var j=M?A/k[2]:1,H=S?T/k[3]:1,Z=M?k[0]:0,W=S?k[1]:0,le=M?k[0]/k[2]*A:0,pe=S?k[1]/k[3]*T:0,_e=w._offset-le,De=_._offset-pe;x.clipRect.call(Gs.setTranslate,Z,W).call(Gs.setScale,1/j,1/H),x.plot.call(Gs.setTranslate,_e,De).call(Gs.setScale,j,H),Gs.setPointGroupScale(x.zoomScalePts,1/j,1/H),Gs.setTextPointsScale(x.zoomScaleTxt,1/j,1/H)}var l;a&&(l=a());function u(){for(var g={},y=0;yi.duration?(u(),d=window.cancelAnimationFrame(m)):d=window.requestAnimationFrame(m)}return h=Date.now(),d=window.requestAnimationFrame(m),Promise.resolve()}});var kS=X(oo=>{"use strict";var _5=Wr(),fX=mr(),wd=et(),KDe=gn(),JDe=xi(),dX=Jx().getModuleCalcData,Af=nn(),bu=(vn(),ct(mn)),QDe=(of(),ct(nf)),oi=wd.ensureSingle;function y5(e,t,r){return wd.ensureSingle(e,t,r,function(i){i.datum(r)})}var Ad=bu.zindexSeparator;oo.name="cartesian";oo.attr=["xaxis","yaxis"];oo.idRoot=["x","y"];oo.idRegex=bu.idRegex;oo.attrRegex=bu.attrRegex;oo.attributes=BW();oo.layoutAttributes=pu();oo.supplyLayoutDefaults=lX();oo.transitionAxes=hX();oo.finalizeSubplots=function(e,t){var r=t._subplots,i=r.xaxis,a=r.yaxis,n=r.cartesian,o=n,s={},l={},u,c,h;for(u=0;u0){var d=f.id;if(d.indexOf(Ad)!==-1)continue;d+=Ad+(u+1),f=wd.extendFlat({},f,{id:d,plot:a._cartesianlayer.selectAll(".subplot").select("."+d)})}for(var p=[],m,g=0;g1&&(A+=Ad+_),w.push(s+A),o=0;o1,h=t.mainplotinfo;if(!t.mainplot||c)if(u)t.xlines=oi(i,"path","xlines-above"),t.ylines=oi(i,"path","ylines-above"),t.xaxislayer=oi(i,"g","xaxislayer-above"),t.yaxislayer=oi(i,"g","yaxislayer-above");else{if(!o){var f=oi(i,"g","layer-subplot");t.shapelayer=oi(f,"g","shapelayer"),t.imagelayer=oi(f,"g","imagelayer"),h&&c?(t.minorGridlayer=h.minorGridlayer,t.gridlayer=h.gridlayer,t.zerolinelayer=h.zerolinelayer):(t.minorGridlayer=oi(i,"g","minor-gridlayer"),t.gridlayer=oi(i,"g","gridlayer"),t.zerolinelayer=oi(i,"g","zerolinelayer"));var d=oi(i,"g","layer-between");t.shapelayerBetween=oi(d,"g","shapelayer"),t.imagelayerBetween=oi(d,"g","imagelayer"),oi(i,"path","xlines-below"),oi(i,"path","ylines-below"),t.overlinesBelow=oi(i,"g","overlines-below"),oi(i,"g","xaxislayer-below"),oi(i,"g","yaxislayer-below"),t.overaxesBelow=oi(i,"g","overaxes-below")}t.overplot=oi(i,"g","overplot"),t.plot=oi(t.overplot,"g",a),h&&c?t.zerolinelayerAbove=h.zerolinelayerAbove:t.zerolinelayerAbove=oi(i,"g","zerolinelayer-above"),o||(t.xlines=oi(i,"path","xlines-above"),t.ylines=oi(i,"path","ylines-above"),t.overlinesAbove=oi(i,"g","overlines-above"),oi(i,"g","xaxislayer-above"),oi(i,"g","yaxislayer-above"),t.overaxesAbove=oi(i,"g","overaxes-above"),t.xlines=i.select(".xlines-"+s),t.ylines=i.select(".ylines-"+l),t.xaxislayer=i.select(".xaxislayer-"+s),t.yaxislayer=i.select(".yaxislayer-"+l))}else{var p=h.plotgroup,m=a+"-x",g=a+"-y";t.minorGridlayer=h.minorGridlayer,t.gridlayer=h.gridlayer,t.zerolinelayer=h.zerolinelayer,t.zerolinelayerAbove=h.zerolinelayerAbove,oi(h.overlinesBelow,"path",m),oi(h.overlinesBelow,"path",g),oi(h.overaxesBelow,"g",m),oi(h.overaxesBelow,"g",g),t.plot=oi(h.overplot,"g",a),oi(h.overlinesAbove,"path",m),oi(h.overlinesAbove,"path",g),oi(h.overaxesAbove,"g",m),oi(h.overaxesAbove,"g",g),t.xlines=p.select(".overlines-"+s).select("."+m),t.ylines=p.select(".overlines-"+l).select("."+g),t.xaxislayer=p.select(".overaxes-"+s).select("."+m),t.yaxislayer=p.select(".overaxes-"+l).select("."+g)}o||(u||(y5(t.minorGridlayer,"g",t.xaxis._id),y5(t.minorGridlayer,"g",t.yaxis._id),t.minorGridlayer.selectAll("g").map(function(y){return y[0]}).sort(Af.idSort),y5(t.gridlayer,"g",t.xaxis._id),y5(t.gridlayer,"g",t.yaxis._id),t.gridlayer.selectAll("g").map(function(y){return y[0]}).sort(Af.idSort)),t.xlines.style("fill","none").classed("crisp",!0),t.ylines.style("fill","none").classed("crisp",!0))}function vX(e,t){if(e){var r={};e.each(function(l){var u=l[0],c=_5.select(this);c.remove(),gX(u,t),r[u]=!0});for(var i in t._plots)for(var a=t._plots[i],n=a.overlays||[],o=0;o{"use strict";var x5=wo();yX.exports={hasLines:x5.hasLines,hasMarkers:x5.hasMarkers,hasText:x5.hasText,isBubble:x5.isBubble,attributes:nh(),layoutAttributes:Wx(),supplyDefaults:CY(),crossTraceDefaults:LY(),supplyLayoutDefaults:RY(),calc:lS().calc,crossTraceCalc:cW(),arraysToCalcdata:Wg(),plot:TW(),colorbar:vS(),formatLabels:SW(),style:xS().style,styleOnSelect:xS().styleOnSelect,hoverPoints:PW(),selectPoints:zW(),animatable:!0,moduleType:"trace",name:"scatter",basePlotModule:kS(),categories:["cartesian","svg","symbols","errorBarsOK","showLegend","scatter-like","zoomScale"],meta:{}}});var wX=X((nit,bX)=>{"use strict";var tSe=Wr(),rSe=qr(),xX=TD(),CS=et(),iSe=CS.strScale,aSe=CS.strRotate,nSe=CS.strTranslate;bX.exports=function(t,r,i){var a=t.node(),n=xX[i.arrowhead||0],o=xX[i.startarrowhead||0],s=(i.arrowwidth||1)*(i.arrowsize||1),l=(i.arrowwidth||1)*(i.startarrowsize||1),u=r.indexOf("start")>=0,c=r.indexOf("end")>=0,h=n.backoff*s+i.standoff,f=o.backoff*l+i.startstandoff,d,p,m,g;if(a.nodeName==="line"){d={x:+t.attr("x1"),y:+t.attr("y1")},p={x:+t.attr("x2"),y:+t.attr("y2")};var y=d.x-p.x,x=d.y-p.y;if(m=Math.atan2(x,y),g=m+Math.PI,h&&f&&h+f>Math.sqrt(y*y+x*x)){z();return}if(h){if(h*h>y*y+x*x){z();return}var w=h*Math.cos(m),_=h*Math.sin(m);p.x+=w,p.y+=_,t.attr({x2:p.x,y2:p.y})}if(f){if(f*f>y*y+x*x){z();return}var A=f*Math.cos(m),T=f*Math.sin(m);d.x-=A,d.y-=T,t.attr({x1:d.x,y1:d.y})}}else if(a.nodeName==="path"){var M=a.getTotalLength(),S="";if(M{"use strict";var AX=Wr(),FS=mr(),oSe=gn(),Mf=et(),PS=Mf.strTranslate,ry=ta(),Td=qr(),lh=xi(),TX=vu(),IS=sn(),LS=pf(),ty=_l(),sSe=Bi().arrayEditor,lSe=wX();SX.exports={draw:uSe,drawOne:MX,drawRaw:DX};function uSe(e){var t=e._fullLayout;t._infolayer.selectAll(".annotation").remove();for(var r=0;r2/3?Pt="right":Pt="center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[Pt]}for(var te=!1,re=["x","y"],ce=0;ce1)&&(He===ze?($e=ke.r2fraction(t["a"+me]),($e<0||$e>1)&&(te=!0)):te=!0),Ge=ke._offset+ke.r2p(t[me]),we=.5}else{var Ee=At==="domain";me==="x"?(ie=t[me],Ge=Ee?ke._offset+ke._length*ie:Ge=s.l+s.w*ie):(ie=1-t[me],Ge=Ee?ke._offset+ke._length*ie:Ge=s.t+s.h*ie),we=t.showarrow?.5:ie}if(t.showarrow){ge.head=Ge;var Me=t["a"+me];if(ot=qe*ye(.5,t.xanchor)-se*ye(.5,t.yanchor),He===ze){var We=ry.getRefType(He);We==="domain"?(me==="y"&&(Me=1-Me),ge.tail=ke._offset+ke._length*Me):We==="paper"?me==="y"?(Me=1-Me,ge.tail=s.t+s.h*Me):ge.tail=s.l+s.w*Me:ge.tail=ke._offset+ke.r2p(Me),tt=ot}else ge.tail=Ge+Me,tt=ot+Me;ge.text=ge.tail+ot;var lt=o[me==="x"?"width":"height"];if(ze==="paper"&&(ge.head=Mf.constrain(ge.head,1,lt-1)),He==="pixel"){var Qe=-Math.max(ge.tail-3,ge.text),st=Math.min(ge.tail+3,ge.text)-lt;Qe>0?(ge.tail+=Qe,ge.text+=Qe):st>0&&(ge.tail-=st,ge.text-=st)}ge.tail+=Ve,ge.head+=Ve}else ot=je*ye(we,Re),tt=ot,ge.text=Ge+ot;ge.text+=Ve,ot+=Ve,tt+=Ve,t["_"+me+"padplus"]=je/2+tt,t["_"+me+"padminus"]=je/2-tt,t["_"+me+"size"]=je,t["_"+me+"shift"]=ot}if(te){M.remove();return}var vt=0,ut=0;if(t.align!=="left"&&(vt=(de-_e)*(t.align==="center"?.5:1)),t.valign!=="top"&&(ut=(Ce-De)*(t.valign==="middle"?.5:1)),le)W.select("svg").attr({x:P+vt-1,y:P+ut}).call(lh.setClipUrl,B?m:null,e);else{var Tt=P+ut-pe.top,Ze=P+vt-pe.left;V.call(IS.positionText,Ze,Tt).call(lh.setClipUrl,B?m:null,e)}L.select("rect").call(lh.setRect,P,P,de,Ce),I.call(lh.setRect,S/2,S/2,Q-S,ae-S),M.call(lh.setTranslate,Math.round(g.x.text-Q/2),Math.round(g.y.text-ae/2)),w.attr({transform:"rotate("+y+","+g.x.text+","+g.y.text+")"});var gt=function(Ft,Pt){x.selectAll(".annotation-arrow-g").remove();var bt=g.x.head,zt=g.y.head,fe=g.x.tail+Ft,Se=g.y.tail+Pt,it=g.x.text+Ft,nt=g.y.text+Pt,Fr=Mf.rotationXYMatrix(y,it,nt),Kr=Mf.apply2DTransform(Fr),si=Mf.apply2DTransform2(Fr),Ni=+I.attr("width"),Pr=+I.attr("height"),Hr=it-.5*Ni,gi=Hr+Ni,hi=nt-.5*Pr,Ca=hi+Pr,Ja=[[Hr,hi,Hr,Ca],[Hr,Ca,gi,Ca],[gi,Ca,gi,hi],[gi,hi,Hr,hi]].map(si);if(!Ja.reduce(function(ti,Li){return ti^!!Mf.segmentsIntersect(bt,zt,bt+1e6,zt+1e6,Li[0],Li[1],Li[2],Li[3])},!1)){Ja.forEach(function(ti){var Li=Mf.segmentsIntersect(fe,Se,bt,zt,ti[0],ti[1],ti[2],ti[3]);Li&&(fe=Li.x,Se=Li.y)});var Mn=t.arrowwidth,Rt=t.arrowcolor,fi=t.arrowside,Zr=x.append("g").style({opacity:Td.opacity(Rt)}).classed("annotation-arrow-g",!0),Ti=Zr.append("path").attr("d","M"+fe+","+Se+"L"+bt+","+zt).style("stroke-width",Mn+"px").call(Td.stroke,Td.rgb(Rt));if(lSe(Ti,fi,t),l.annotationPosition&&Ti.node().parentNode&&!i){var Fi=bt,Mi=zt;if(t.standoff){var ei=Math.sqrt(Math.pow(bt-fe,2)+Math.pow(zt-Se,2));Fi+=t.standoff*(fe-bt)/ei,Mi+=t.standoff*(Se-zt)/ei}var Ht=Zr.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(fe-Fi)+","+(Se-Mi),transform:PS(Fi,Mi)}).style("stroke-width",Mn+6+"px").call(Td.stroke,"rgba(0,0,0,0)").call(Td.fill,"rgba(0,0,0,0)"),va,ji;ty.init({element:Ht.node(),gd:e,prepFn:function(){var ti=lh.getTranslate(M);va=ti.x,ji=ti.y,a&&a.autorange&&f(a._name+".autorange",!0),n&&n.autorange&&f(n._name+".autorange",!0)},moveFn:function(ti,Li){var Yi=Kr(va,ji),Ko=Yi[0]+ti,po=Yi[1]+Li;M.call(lh.setTranslate,Ko,po),d("x",Tf(a,ti,"x",s,t)),d("y",Tf(n,Li,"y",s,t)),t.axref===t.xref&&d("ax",Tf(a,ti,"ax",s,t)),t.ayref===t.yref&&d("ay",Tf(n,Li,"ay",s,t)),Zr.attr("transform",PS(ti,Li)),w.attr({transform:"rotate("+y+","+Ko+","+po+")"})},doneFn:function(){FS.call("_guiRelayout",e,p());var ti=document.querySelector(".js-notes-box-panel");ti&&ti.redraw(ti.selectedObj)}})}}};if(t.showarrow&>(0,0),_){var rt;ty.init({element:M.node(),gd:e,prepFn:function(){rt=w.attr("transform")},moveFn:function(Ft,Pt){var bt="pointer";if(t.showarrow)t.axref===t.xref?d("ax",Tf(a,Ft,"ax",s,t)):d("ax",t.ax+Ft),t.ayref===t.yref?d("ay",Tf(n,Pt,"ay",s.w,t)):d("ay",t.ay+Pt),gt(Ft,Pt);else{if(i)return;var zt,fe;if(a)zt=Tf(a,Ft,"x",s,t);else{var Se=t._xsize/s.w,it=t.x+(t._xshift-t.xshift)/s.w-Se/2;zt=ty.align(it+Ft/s.w,Se,0,1,t.xanchor)}if(n)fe=Tf(n,Pt,"y",s,t);else{var nt=t._ysize/s.h,Fr=t.y-(t._yshift+t.yshift)/s.h-nt/2;fe=ty.align(Fr-Pt/s.h,nt,0,1,t.yanchor)}d("x",zt),d("y",fe),(!a||!n)&&(bt=ty.getCursor(a?.5:zt,n?.5:fe,t.xanchor,t.yanchor))}w.attr({transform:PS(Ft,Pt)+rt}),LS(M,bt)},clickFn:function(Ft,Pt){t.captureevents&&e.emit("plotly_clickannotation",T(Pt))},doneFn:function(){LS(M),FS.call("_guiRelayout",e,p());var Ft=document.querySelector(".js-notes-box-panel");Ft&&Ft.redraw(Ft.selectedObj)}})}}l.annotationText?V.call(IS.makeEditable,{delegate:M,gd:e}).call($).on("edit",function(H){t.text=H,this.call($),d("text",H),a&&a.autorange&&f(a._name+".autorange",!0),n&&n.autorange&&f(n._name+".autorange",!0),FS.call("_guiRelayout",e,p())}):V.call($)}});var IX=X((sit,PX)=>{"use strict";var EX=et(),cSe=mr(),kX=Bi().arrayEditor;PX.exports={hasClickToShow:hSe,onClick:fSe};function hSe(e,t){var r=FX(e,t);return r.on.length>0||r.explicitOff.length>0}function fSe(e,t){var r=FX(e,t),i=r.on,a=r.off.concat(r.explicitOff),n={},o=e._fullLayout.annotations,s,l;if(i.length||a.length){for(s=0;s{"use strict";var zS=et(),O1=qr();LX.exports=function(t,r,i,a){a("opacity");var n=a("bgcolor"),o=a("bordercolor"),s=O1.opacity(o);a("borderpad");var l=a("borderwidth"),u=a("showarrow");a("text",u?" ":i._dfltTitle.annotation),a("textangle"),zS.coerceFont(a,"font",i.font),a("width"),a("align");var c=a("height");if(c&&a("valign"),u){var h=a("arrowside"),f,d;h.indexOf("end")!==-1&&(f=a("arrowhead"),d=a("arrowsize")),h.indexOf("start")!==-1&&(a("startarrowhead",f),a("startarrowsize",d)),a("arrowcolor",s?r.bordercolor:O1.defaultLine),a("arrowwidth",(s&&l||1)*2),a("standoff"),a("startstandoff")}var p=a("hovertext"),m=i.hoverlabel||{};if(p){var g=a("hoverlabel.bgcolor",m.bgcolor||(O1.opacity(n)?O1.rgb(n):O1.defaultLine)),y=a("hoverlabel.bordercolor",m.bordercolor||O1.contrast(g)),x=zS.extendFlat({},m.font);x.color||(x.color=y),zS.coerceFont(a,"hoverlabel.font",x)}a("captureevents",!!p)}});var RX=X((uit,zX)=>{"use strict";var BS=et(),Md=ta(),dSe=gl(),pSe=RS(),mSe=C1();zX.exports=function(t,r){dSe(t,r,{name:"annotations",handleItemDefaults:vSe})};function vSe(e,t,r){function i(w,_){return BS.coerce(e,t,mSe,w,_)}var a=i("visible"),n=i("clicktoshow");if(a||n){pSe(e,t,r,i);for(var o=t.showarrow,s=["x","y"],l=[-10,-30],u={_fullLayout:r},c=0;c<2;c++){var h=s[c],f=Md.coerceRef(e,t,u,h,"","paper");if(f!=="paper"){var d=Md.getFromId(u,f);d._annIndices.push(t._index)}if(Md.coercePosition(t,u,i,f,h,.5),o){var p="a"+h,m=Md.coerceRef(e,t,u,p,"pixel",["pixel","paper"]);m!=="pixel"&&m!==f&&(m=t[p]="pixel");var g=m==="pixel"?l[c]:.4;Md.coercePosition(t,u,i,m,p,g)}i(h+"anchor"),i(h+"shift")}if(BS.noneOrAll(e,t,["x","y"]),o&&BS.noneOrAll(e,t,["ax","ay"]),n){var y=i("xclick"),x=i("yclick");t._xclick=y===void 0?t.x:Md.cleanPosition(y,u,t.xref),t._yclick=x===void 0?t.y:Md.cleanPosition(x,u,t.yref)}}}});var OX=X((cit,qX)=>{"use strict";var qS=et(),Dd=ta(),gSe=b5().draw;qX.exports=function(t){var r=t._fullLayout,i=qS.filterVisible(r.annotations);if(i.length&&t._fullData.length)return qS.syncOrAsync([gSe,ySe],t)};function ySe(e){var t=e._fullLayout;qS.filterVisible(t.annotations).forEach(function(r){var i=Dd.getFromId(e,r.xref),a=Dd.getFromId(e,r.yref),n=Dd.getRefType(r.xref),o=Dd.getRefType(r.yref);r._extremes={},n==="range"&&BX(r,i),o==="range"&&BX(r,a)})}function BX(e,t){var r=t._id,i=r.charAt(0),a=e[i],n=e["a"+i],o=e[i+"ref"],s=e["a"+i+"ref"],l=e["_"+i+"padplus"],u=e["_"+i+"padminus"],c={x:1,y:-1}[i]*e[i+"shift"],h=3*e.arrowsize*e.arrowwidth||0,f=h+c,d=h-c,p=3*e.startarrowsize*e.arrowwidth||0,m=p+c,g=p-c,y;if(s===o){var x=Dd.findExtremes(t,[t.r2c(a)],{ppadplus:f,ppadminus:d}),w=Dd.findExtremes(t,[t.r2c(n)],{ppadplus:Math.max(l,m),ppadminus:Math.max(u,g)});y={min:[x.min[0],w.min[0]],max:[x.max[0],w.max[0]]}}else m=n?m+n:m,g=n?g-n:g,y=Dd.findExtremes(t,[t.r2c(a)],{ppadplus:Math.max(l,f,m),ppadminus:Math.max(u,d,g)});e._extremes[r]=y}});var VX=X((hit,NX)=>{"use strict";var _Se=Br(),xSe=U_();NX.exports=function(t,r,i,a){r=r||{};var n=i==="log"&&r.type==="linear",o=i==="linear"&&r.type==="log";if(!(n||o))return;var s=t._fullLayout.annotations,l=r._id.charAt(0),u,c;function h(d){var p=u[d],m=null;n?m=xSe(p,r.range):m=Math.pow(10,p),_Se(m)||(m=null),a(c+d,m)}for(var f=0;f{"use strict";var OS=b5(),UX=IX();GX.exports={moduleType:"component",name:"annotations",layoutAttributes:C1(),supplyLayoutDefaults:RX(),includeBasePlot:qg()("annotations"),calcAutorange:OX(),draw:OS.draw,drawOne:OS.drawOne,drawRaw:OS.drawRaw,hasClickToShow:UX.hasClickToShow,onClick:UX.onClick,convertCoords:VX()}});var w5=X((dit,$X)=>{"use strict";var Gi=C1(),bSe=Is().overrideAll,wSe=Bi().templatedArray;$X.exports=bSe(wSe("annotation",{visible:Gi.visible,x:{valType:"any"},y:{valType:"any"},z:{valType:"any"},ax:{valType:"number"},ay:{valType:"number"},xanchor:Gi.xanchor,xshift:Gi.xshift,yanchor:Gi.yanchor,yshift:Gi.yshift,text:Gi.text,textangle:Gi.textangle,font:Gi.font,width:Gi.width,height:Gi.height,opacity:Gi.opacity,align:Gi.align,valign:Gi.valign,bgcolor:Gi.bgcolor,bordercolor:Gi.bordercolor,borderpad:Gi.borderpad,borderwidth:Gi.borderwidth,showarrow:Gi.showarrow,arrowcolor:Gi.arrowcolor,arrowhead:Gi.arrowhead,startarrowhead:Gi.startarrowhead,arrowside:Gi.arrowside,arrowsize:Gi.arrowsize,startarrowsize:Gi.startarrowsize,arrowwidth:Gi.arrowwidth,standoff:Gi.standoff,startstandoff:Gi.startstandoff,hovertext:Gi.hovertext,hoverlabel:Gi.hoverlabel,captureevents:Gi.captureevents}),"calc","from-root")});var ZX=X((pit,HX)=>{"use strict";var NS=et(),ASe=ta(),TSe=gl(),MSe=RS(),DSe=w5();HX.exports=function(t,r,i){TSe(t,r,{name:"annotations",handleItemDefaults:SSe,fullLayout:i.fullLayout})};function SSe(e,t,r,i){function a(s,l){return NS.coerce(e,t,DSe,s,l)}function n(s){var l=s+"axis",u={_fullLayout:{}};return u._fullLayout[l]=r[l],ASe.coercePosition(t,u,a,s,s,.5)}var o=a("visible");o&&(MSe(e,t,i.fullLayout,a),n("x"),n("y"),n("z"),NS.noneOrAll(e,t,["x","y","z"]),t.xref="x",t.yref="y",t.zref="z",a("xanchor"),a("yanchor"),a("xshift"),a("yshift"),t.showarrow&&(t.axref="pixel",t.ayref="pixel",a("ax",-10),a("ay",-30),NS.noneOrAll(e,t,["ax","ay"])))}});var KX=X((mit,XX)=>{"use strict";var YX=et(),WX=ta();XX.exports=function(t){for(var r=t.fullSceneLayout,i=r.annotations,a=0;a{"use strict";function VS(e,t){var r=[0,0,0,0],i,a;for(i=0;i<4;++i)for(a=0;a<4;++a)r[a]+=e[4*i+a]*t[i];return r}function kSe(e,t){var r=VS(e.projection,VS(e.view,VS(e.model,[t[0],t[1],t[2],1])));return r}JX.exports=kSe});var tK=X((git,eK)=>{"use strict";var CSe=b5().drawRaw,FSe=QX(),PSe=["x","y","z"];eK.exports=function(t){for(var r=t.fullSceneLayout,i=t.dataScale,a=r.annotations,n=0;n1){s=!0;break}}s?t.fullLayout._infolayer.select(".annotation-"+t.id+'[data-index="'+n+'"]').remove():(o._pdata=FSe(t.glplot.cameraParams,[r.xaxis.r2l(o.x)*i[0],r.yaxis.r2l(o.y)*i[1],r.zaxis.r2l(o.z)*i[2]]),CSe(t.graphDiv,o,n,t.id,o._xa,o._ya))}}});var aK=X((yit,iK)=>{"use strict";var ISe=mr(),rK=et();iK.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:w5()}}},layoutAttributes:w5(),handleDefaults:ZX(),includeBasePlot:LSe,convert:KX(),draw:tK()};function LSe(e,t){var r=ISe.subplotsRegistry.gl3d;if(r)for(var i=r.attrRegex,a=Object.keys(e),n=0;n{"use strict";var _it=(vn(),ct(mn)),nK=to(),oK=nh().line,zSe=Zc().dash,wu=Ta().extendFlat,RSe=Bi().templatedArray,xit=(Rg(),ct(zg)),N1=Go(),sK=C1(),{shapeTexttemplateAttrs:BSe,templatefallbackAttrs:qSe}=tc(),OSe=Tx();lK.exports=RSe("shape",{visible:wu({},N1.visible,{editType:"calc+arraydraw"}),showlegend:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},legend:wu({},N1.legend,{editType:"calc+arraydraw"}),legendgroup:wu({},N1.legendgroup,{editType:"calc+arraydraw"}),legendgrouptitle:{text:wu({},N1.legendgrouptitle.text,{editType:"calc+arraydraw"}),font:nK({editType:"calc+arraydraw"}),editType:"calc+arraydraw"},legendrank:wu({},N1.legendrank,{editType:"calc+arraydraw"}),legendwidth:wu({},N1.legendwidth,{editType:"calc+arraydraw"}),type:{valType:"enumerated",values:["circle","rect","path","line"],editType:"calc+arraydraw"},layer:{valType:"enumerated",values:["below","above","between"],dflt:"above",editType:"arraydraw"},xref:wu({},sK.xref,{arrayOk:!0}),xsizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},xanchor:{valType:"any",editType:"calc+arraydraw"},x0:{valType:"any",editType:"calc+arraydraw"},x1:{valType:"any",editType:"calc+arraydraw"},x0shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},x1shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},yref:wu({},sK.yref,{arrayOk:!0}),ysizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},yanchor:{valType:"any",editType:"calc+arraydraw"},y0:{valType:"any",editType:"calc+arraydraw"},y1:{valType:"any",editType:"calc+arraydraw"},y0shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},y1shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},path:{valType:"string",editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},line:{color:wu({},oK.color,{editType:"arraydraw"}),width:wu({},oK.width,{editType:"calc+arraydraw"}),dash:wu({},zSe,{editType:"arraydraw"}),editType:"calc+arraydraw"},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd",editType:"arraydraw"},editable:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},label:{text:{valType:"string",dflt:"",editType:"arraydraw"},texttemplate:BSe({},{keys:Object.keys(OSe)}),texttemplatefallback:qSe({editType:"arraydraw"}),font:nK({editType:"calc+arraydraw",colorEditType:"arraydraw"}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"],editType:"arraydraw"},textangle:{valType:"angle",dflt:"auto",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],editType:"calc+arraydraw"},padding:{valType:"number",dflt:3,min:0,editType:"arraydraw"},editType:"arraydraw"},editType:"arraydraw"})});var cK=X((wit,uK)=>{"use strict";var V1=et(),js=ta(),NSe=gl(),VSe=US(),iy=_f();uK.exports=function(t,r){NSe(t,r,{name:"shapes",handleItemDefaults:GSe})};function USe(e,t){return e?"bottom":t.indexOf("top")!==-1?"top":t.indexOf("bottom")!==-1?"bottom":"middle"}function GSe(e,t,r){function i(w,_){return V1.coerce(e,t,VSe,w,_)}t._isShape=!0;var a=i("visible");if(!a)return;var n=i("showlegend");i("legend"),i("legendgroup"),n&&(i("legendwidth"),i("legendgrouptitle.text"),V1.coerceFont(i,"legendgrouptitle.font"),i("legendrank"));var o=i("path"),s=o?"path":"rect",l=i("type",s),u=l!=="path";u&&delete t.path,i("editable"),i("layer"),i("opacity"),i("fillcolor"),i("fillrule");var c=i("line.width");c&&(i("line.color"),i("line.dash"));var h=i("xsizemode"),f=i("ysizemode");let d=[.25,.75],p=[0,10];["x","y"].forEach(w=>{var _=w+"anchor",A=w==="x"?h:f,T={_fullLayout:r},M,S,k,P;let I=w+"ref",B=e[I];if(Array.isArray(B)&&B.length>0){let L=iy.countDefiningCoords(l,o,w);P=js.coerceRefArray(e,t,T,w,void 0,"paper",L),t["_"+w+"refArray"]=!0}else P=js.coerceRef(e,t,T,w,void 0,"paper");if(Array.isArray(P))P.forEach(function(L){js.getRefType(L)==="range"&&(M=js.getFromId(T,L),M&&M._shapeIndices.indexOf(t._index)===-1&&M._shapeIndices.push(t._index))}),u&&[0,1].forEach(function(L){let z=P[L];js.getRefType(z)==="range"?(M=js.getFromId(T,z),S=iy.shapePositionToRange(M),k=iy.rangeToShapePosition(M),(M.type==="category"||M.type==="multicategory")&&i(w+L+"shift")):S=k=V1.identity;let V=w+L,$=e[V];if(e[V]=S(e[V],!0),A==="pixel"?i(V,p[L]):js.coercePosition(t,T,i,z,V,d[L]),t[V]=k(t[V]),e[V]=$,L===0&&A==="pixel"){let j=e[_];e[_]=S(e[_],!0),js.coercePosition(t,T,i,z,_,.25),t[_]=k(t[_]),e[_]=j}});else{if(js.getRefType(P)==="range"?(M=js.getFromId(T,P),M._shapeIndices.push(t._index),k=iy.rangeToShapePosition(M),S=iy.shapePositionToRange(M),u&&(M.type==="category"||M.type==="multicategory")&&(i(w+"0shift"),i(w+"1shift"))):S=k=V1.identity,u){let z=w+"0",O=w+"1",V=e[z],$=e[O];e[z]=S(e[z],!0),e[O]=S(e[O],!0),A==="pixel"?(i(z,p[0]),i(O,p[1])):(js.coercePosition(t,T,i,P,z,d[0]),js.coercePosition(t,T,i,P,O,d[1])),t[z]=k(t[z]),t[O]=k(t[O]),e[z]=V,e[O]=$}if(A==="pixel"){let z=e[_];e[_]=S(e[_],!0),js.coercePosition(t,T,i,P,_,.25),t[_]=k(t[_]),e[_]=z}}}),u&&V1.noneOrAll(e,t,["x0","x1","y0","y1"]);var m=l==="line",g,y;if(u&&(g=i("label.texttemplate"),i("label.texttemplatefallback")),g||(y=i("label.text")),y||g){i("label.textangle");var x=i("label.textposition",m?"middle":"middle center");i("label.xanchor"),i("label.yanchor",USe(m,x)),i("label.padding"),V1.coerceFont(i,"label.font",r.font)}}});var dK=X((Ait,fK)=>{"use strict";var jSe=qr(),hK=et();function $Se(e,t){return e?"bottom":t.indexOf("top")!==-1?"top":t.indexOf("bottom")!==-1?"bottom":"middle"}fK.exports=function(t,r,i){i("newshape.visible"),i("newshape.name"),i("newshape.showlegend"),i("newshape.legend"),i("newshape.legendwidth"),i("newshape.legendgroup"),i("newshape.legendgrouptitle.text"),hK.coerceFont(i,"newshape.legendgrouptitle.font"),i("newshape.legendrank"),i("newshape.drawdirection"),i("newshape.layer"),i("newshape.fillcolor"),i("newshape.fillrule"),i("newshape.opacity");var a=i("newshape.line.width");if(a){var n=(t||{}).plot_bgcolor||"#FFF";i("newshape.line.color",jSe.contrast(n)),i("newshape.line.dash")}var o=t.dragmode==="drawline",s=i("newshape.label.text"),l=i("newshape.label.texttemplate");if(i("newshape.label.texttemplatefallback"),s||l){i("newshape.label.textangle");var u=i("newshape.label.textposition",o?"middle":"middle center");i("newshape.label.xanchor"),i("newshape.label.yanchor",$Se(o,u)),i("newshape.label.padding"),hK.coerceFont(i,"newshape.label.font",r.font)}i("activeshape.fillcolor"),i("activeshape.opacity")}});var xK=X((Tit,_K)=>{"use strict";var GS=et(),Pl=ta(),bc=(mg(),ct(pg)),jS=_f();_K.exports=function(t){var r=t._fullLayout,i=GS.filterVisible(r.shapes);if(!(!i.length||!t._fullData.length))for(var a=0;a{o=Pl.getFromId(t,h),n._extremes[o._id]=Pl.findExtremes(o,f,mK(n))})}else n.xref!=="paper"&&l!=="domain"&&(o=Pl.getFromId(t,n.xref),s=gK(o,n,bc.paramIsX),s&&(n._extremes[o._id]=Pl.findExtremes(o,s,mK(n))));if(u==="array"){let c=pK(t,n,"y");Object.entries(c).forEach(([h,f])=>{o=Pl.getFromId(t,h),n._extremes[o._id]=Pl.findExtremes(o,f,vK(n))})}else n.yref!=="paper"&&u!=="domain"&&(o=Pl.getFromId(t,n.yref),s=gK(o,n,bc.paramIsY),s&&(n._extremes[o._id]=Pl.findExtremes(o,s,vK(n))))}};function pK(e,t,r){let i=t[r+"ref"],a=r==="x"?bc.paramIsX:bc.paramIsY;function n(h,f){h==="paper"||Pl.getRefType(h)==="domain"||(o[h]||(o[h]=[]),o[h].push(f))}let o={};if(t.type==="path"&&t.path){let h=t.path.match(bc.segmentRE)||[];for(var s=0,l=0;lp&&(n(i[s],m[p]),s++)}}else n(i[0],t[r+"0"]),n(i[1],t[r+"1"]);let u={};for(let h in o){let f=Pl.getFromId(e,h);if(f){var c=f.type==="category"||f.type==="multicategory"?f.r2c:f.d2c;f.type==="date"&&(c=jS.decodeDate(c)),u[f._id]=o[h].map(c)}}return u}function mK(e){return yK(e.line.width,e.xsizemode,e.x0,e.x1,e.path,!1)}function vK(e){return yK(e.line.width,e.ysizemode,e.y0,e.y1,e.path,!0)}function yK(e,t,r,i,a,n){var o=e/2,s=n;if(t==="pixel"){var l=a?jS.extractPathCoords(a,n?bc.paramIsY:bc.paramIsX):[r,i],u=GS.aggNums(Math.max,null,l),c=GS.aggNums(Math.min,null,l),h=c<0?Math.abs(c)+o:o,f=u>0?u+o:o;return{ppad:o,ppadplus:s?h:f,ppadminus:s?f:h}}else return{ppad:o}}function gK(e,t,r){var i=e._id.charAt(0)==="x"?"x":"y",a=e.type==="category"||e.type==="multicategory",n,o,s=0,l=0,u=a?e.r2c:e.d2c,c=t[i+"sizemode"]==="scaled";if(c?(n=t[i+"0"],o=t[i+"1"],a&&(s=t[i+"0shift"],l=t[i+"1shift"])):(n=t[i+"anchor"],o=t[i+"anchor"]),n!==void 0)return[u(n)+s,u(o)+l];if(t.path){var h=1/0,f=-1/0,d=t.path.match(bc.segmentRE),p,m,g,y,x;for(e.type==="date"&&(u=jS.decodeDate(u)),p=0;pf&&(f=x)));if(f>=h)return[h,f]}}});var AK=X((Mit,wK)=>{"use strict";var bK=l3();wK.exports={moduleType:"component",name:"shapes",layoutAttributes:US(),supplyLayoutDefaults:cK(),supplyDrawNewShapeDefaults:dK(),includeBasePlot:qg()("shapes"),calcAutorange:xK(),draw:bK.draw,drawOne:bK.drawOne}});var $S=X((Sit,MK)=>{"use strict";var TK=(vn(),ct(mn)),HSe=Bi().templatedArray,Dit=(Rg(),ct(zg));MK.exports=HSe("image",{visible:{valType:"boolean",dflt:!0,editType:"arraydraw"},source:{valType:"string",editType:"arraydraw"},layer:{valType:"enumerated",values:["below","above"],dflt:"above",editType:"arraydraw"},sizex:{valType:"number",dflt:0,editType:"arraydraw"},sizey:{valType:"number",dflt:0,editType:"arraydraw"},sizing:{valType:"enumerated",values:["fill","contain","stretch"],dflt:"contain",editType:"arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},x:{valType:"any",dflt:0,editType:"arraydraw"},y:{valType:"any",dflt:0,editType:"arraydraw"},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left",editType:"arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],dflt:"top",editType:"arraydraw"},xref:{valType:"enumerated",values:["paper",TK.idRegex.x.toString()],dflt:"paper",editType:"arraydraw"},yref:{valType:"enumerated",values:["paper",TK.idRegex.y.toString()],dflt:"paper",editType:"arraydraw"},editType:"arraydraw"})});var SK=X((Eit,DK)=>{"use strict";var ZSe=et(),HS=ta(),YSe=gl(),WSe=$S(),XSe="images";DK.exports=function(t,r){var i={name:XSe,handleItemDefaults:KSe};YSe(t,r,i)};function KSe(e,t,r){function i(f,d){return ZSe.coerce(e,t,WSe,f,d)}var a=i("source"),n=i("visible",!!a);if(!n)return t;i("layer"),i("xanchor"),i("yanchor"),i("sizex"),i("sizey"),i("sizing"),i("opacity");for(var o={_fullLayout:r},s=["x","y"],l=0;l<2;l++){var u=s[l],c=HS.coerceRef(e,t,o,u,"paper",void 0);if(c!=="paper"){var h=HS.getFromId(o,c);h._imgIndices.push(t._index)}HS.coercePosition(t,o,i,c,u,0)}return t}});var FK=X((kit,CK)=>{"use strict";var EK=Wr(),JSe=xi(),U1=ta(),kK=nn(),QSe=(of(),ct(nf));CK.exports=function(t){var r=t._fullLayout,i=[],a={},n=[],o,s;for(s=0;s{"use strict";var PK=Br(),e9e=U_();IK.exports=function(t,r,i,a){r=r||{};var n=i==="log"&&r.type==="linear",o=i==="linear"&&r.type==="log";if(n||o){for(var s=t._fullLayout.images,l=r._id.charAt(0),u,c,h=0;h{"use strict";zK.exports={moduleType:"component",name:"images",layoutAttributes:$S(),supplyLayoutDefaults:SK(),includeBasePlot:qg()("images"),draw:FK(),convertCoords:LK()}});var A5={};Zi(A5,{activeColor:()=>M9e,arrowOffsetX:()=>w9e,arrowPadX:()=>g9e,arrowSymbol:()=>S9e,autoMarginIdRoot:()=>f9e,blankHeaderOpts:()=>d9e,buttonClassName:()=>l9e,containerClassName:()=>r9e,dropdownButtonClassName:()=>s9e,dropdownButtonGroupClassName:()=>o9e,gapButton:()=>T9e,gapButtonHeader:()=>A9e,headerArrowClassName:()=>n9e,headerClassName:()=>a9e,headerGroupClassName:()=>i9e,hoverColor:()=>D9e,itemRectClassName:()=>u9e,itemTextClassName:()=>c9e,menuIndexAttrName:()=>h9e,minHeight:()=>m9e,minWidth:()=>p9e,name:()=>t9e,rx:()=>y9e,ry:()=>_9e,textOffsetX:()=>x9e,textOffsetY:()=>b9e,textPadX:()=>v9e});var t9e,r9e,i9e,a9e,n9e,o9e,s9e,l9e,u9e,c9e,h9e,f9e,d9e,p9e,m9e,v9e,g9e,y9e,_9e,x9e,b9e,w9e,A9e,T9e,M9e,D9e,S9e,T5=Vi(()=>{"use strict";t9e="updatemenus",r9e="updatemenu-container",i9e="updatemenu-header-group",a9e="updatemenu-header",n9e="updatemenu-header-arrow",o9e="updatemenu-dropdown-button-group",s9e="updatemenu-dropdown-button",l9e="updatemenu-button",u9e="updatemenu-item-rect",c9e="updatemenu-item-text",h9e="updatemenu-active-index",f9e="updatemenu-",d9e={label:" "},p9e=30,m9e=30,v9e=24,g9e=16,y9e=2,_9e=2,x9e=12,b9e=3,w9e=4,A9e=5,T9e=2,M9e="#F4FAFF",D9e="#F4FAFF",S9e={left:"\u25C4",right:"\u25BA",up:"\u25B2",down:"\u25BC"}});var ZS=X((Pit,qK)=>{"use strict";var E9e=to(),k9e=ec(),C9e=Ta().extendFlat,F9e=Is().overrideAll,P9e=Mx(),BK=Bi().templatedArray,I9e=BK("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}});qK.exports=F9e(BK("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:I9e,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:C9e(P9e({editType:"arraydraw"}),{}),font:E9e({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:k9e.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")});var UK=X((Iit,VK)=>{"use strict";var M5=et(),OK=gl(),NK=ZS(),L9e=(T5(),ct(A5)),z9e=L9e.name,R9e=NK.buttons;VK.exports=function(t,r){var i={name:z9e,handleItemDefaults:B9e};OK(t,r,i)};function B9e(e,t,r){function i(o,s){return M5.coerce(e,t,NK,o,s)}var a=OK(e,t,{name:"buttons",handleItemDefaults:q9e}),n=i("visible",a.length>0);n&&(i("active"),i("direction"),i("type"),i("showactive"),i("x"),i("y"),M5.noneOrAll(e,t,["x","y"]),i("xanchor"),i("yanchor"),i("pad.t"),i("pad.r"),i("pad.b"),i("pad.l"),M5.coerceFont(i,"font",r.font),i("bgcolor",r.paper_bgcolor),i("bordercolor"),i("borderwidth"))}function q9e(e,t){function r(a,n){return M5.coerce(e,t,R9e,a,n)}var i=r("visible",e.method==="skip"||Array.isArray(e.args));i&&(r("method"),r("args"),r("args2"),r("label"),r("execute"))}});var $K=X((Lit,jK)=>{"use strict";jK.exports=fa;var Au=Wr(),GK=qr(),G1=xi(),D5=et();function fa(e,t,r){this.gd=e,this.container=t,this.id=r,this.position=null,this.translateX=null,this.translateY=null,this.hbar=null,this.vbar=null,this.bg=this.container.selectAll("rect.scrollbox-bg").data([0]),this.bg.exit().on(".drag",null).on("wheel",null).remove(),this.bg.enter().append("rect").classed("scrollbox-bg",!0).style("pointer-events","all").attr({opacity:0,x:0,y:0,width:0,height:0})}fa.barWidth=2;fa.barLength=20;fa.barRadius=2;fa.barPad=1;fa.barColor="#808BA4";fa.prototype.enable=function(t,r,i){var a=this.gd._fullLayout,n=a.width,o=a.height;this.position=t;var s=this.position.l,l=this.position.w,u=this.position.t,c=this.position.h,h=this.position.direction,f=h==="down",d=h==="left",p=h==="right",m=h==="up",g=l,y=c,x,w,_,A;!f&&!d&&!p&&!m&&(this.position.direction="down",f=!0);var T=f||m;T?(x=s,w=x+g,f?(_=u,A=Math.min(_+y,o),y=A-_):(A=u+y,_=Math.max(A-y,0),y=A-_)):(_=u,A=_+y,d?(w=s+g,x=Math.max(w-g,0),g=w-x):(x=s,w=Math.min(x+g,n),g=w-x)),this._box={l:x,t:_,w:g,h:y};var M=l>g,S=fa.barLength+2*fa.barPad,k=fa.barWidth+2*fa.barPad,P=s,I=u+c;I+k>o&&(I=o-k);var B=this.container.selectAll("rect.scrollbar-horizontal").data(M?[0]:[]);B.exit().on(".drag",null).remove(),B.enter().append("rect").classed("scrollbar-horizontal",!0).call(GK.fill,fa.barColor),M?(this.hbar=B.attr({rx:fa.barRadius,ry:fa.barRadius,x:P,y:I,width:S,height:k}),this._hbarXMin=P+S/2,this._hbarTranslateMax=g-S):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var L=c>y,z=fa.barWidth+2*fa.barPad,O=fa.barLength+2*fa.barPad,V=s+l,$=u;V+z>n&&(V=n-z);var j=this.container.selectAll("rect.scrollbar-vertical").data(L?[0]:[]);j.exit().on(".drag",null).remove(),j.enter().append("rect").classed("scrollbar-vertical",!0).call(GK.fill,fa.barColor),L?(this.vbar=j.attr({rx:fa.barRadius,ry:fa.barRadius,x:V,y:$,width:z,height:O}),this._vbarYMin=$+O/2,this._vbarTranslateMax=y-O):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var H=this.id,Z=x-.5,W=L?w+z+.5:w+.5,le=_-.5,pe=M?A+k+.5:A+.5,_e=a._topdefs.selectAll("#"+H).data(M||L?[0]:[]);if(_e.exit().remove(),_e.enter().append("clipPath").attr("id",H).append("rect"),M||L?(this._clipRect=_e.select("rect").attr({x:Math.floor(Z),y:Math.floor(le),width:Math.ceil(W)-Math.floor(Z),height:Math.ceil(pe)-Math.floor(le)}),this.container.call(G1.setClipUrl,H,this.gd),this.bg.attr({x:s,y:u,width:l,height:c})):(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(G1.setClipUrl,null),delete this._clipRect),M||L){var De=Au.behavior.drag().on("dragstart",function(){Au.event.sourceEvent.preventDefault()}).on("drag",this._onBoxDrag.bind(this));this.container.on("wheel",null).on("wheel",this._onBoxWheel.bind(this)).on(".drag",null).call(De);var de=Au.behavior.drag().on("dragstart",function(){Au.event.sourceEvent.preventDefault(),Au.event.sourceEvent.stopPropagation()}).on("drag",this._onBarDrag.bind(this));M&&this.hbar.on(".drag",null).call(de),L&&this.vbar.on(".drag",null).call(de)}this.setTranslate(r,i)};fa.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(G1.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)};fa.prototype._onBoxDrag=function(){var t=this.translateX,r=this.translateY;this.hbar&&(t-=Au.event.dx),this.vbar&&(r-=Au.event.dy),this.setTranslate(t,r)};fa.prototype._onBoxWheel=function(){var t=this.translateX,r=this.translateY;this.hbar&&(t+=Au.event.deltaY),this.vbar&&(r+=Au.event.deltaY),this.setTranslate(t,r)};fa.prototype._onBarDrag=function(){var t=this.translateX,r=this.translateY;if(this.hbar){var i=t+this._hbarXMin,a=i+this._hbarTranslateMax,n=D5.constrain(Au.event.x,i,a),o=(n-i)/(a-i),s=this.position.w-this._box.w;t=o*s}if(this.vbar){var l=r+this._vbarYMin,u=l+this._vbarTranslateMax,c=D5.constrain(Au.event.y,l,u),h=(c-l)/(u-l),f=this.position.h-this._box.h;r=h*f}this.setTranslate(t,r)};fa.prototype.setTranslate=function(t,r){var i=this.position.w-this._box.w,a=this.position.h-this._box.h;if(t=D5.constrain(t||0,0,i),r=D5.constrain(r||0,0,a),this.translateX=t,this.translateY=r,this.container.call(G1.setTranslate,this._box.l-this.position.l-t,this._box.t-this.position.t-r),this._clipRect&&this._clipRect.attr({x:Math.floor(this.position.l+t-.5),y:Math.floor(this.position.t+r-.5)}),this.hbar){var n=t/i;this.hbar.call(G1.setTranslate,t+n*this._hbarTranslateMax,r)}if(this.vbar){var o=r/a;this.vbar.call(G1.setTranslate,t,r+o*this._vbarTranslateMax)}}});var tJ=X((zit,eJ)=>{"use strict";var j1=Wr(),ay=gn(),ny=qr(),$1=xi(),$s=et(),S5=sn(),O9e=Bi().arrayEditor,ZK=(ao(),ct(io)).LINE_SPACING,fr=(T5(),ct(A5)),N9e=$K();eJ.exports=function(t){var r=t._fullLayout,i=$s.filterVisible(r[fr.name]);function a(f){ay.autoMargin(t,JK(f))}var n=r._menulayer.selectAll("g."+fr.containerClassName).data(i.length>0?[0]:[]);if(n.enter().append("g").classed(fr.containerClassName,!0).style("cursor","pointer"),n.exit().each(function(){j1.select(this).selectAll("g."+fr.headerGroupClassName).each(a)}).remove(),i.length!==0){var o=n.selectAll("g."+fr.headerGroupClassName).data(i,V9e);o.enter().append("g").classed(fr.headerGroupClassName,!0);for(var s=$s.ensureSingle(n,"g",fr.dropdownButtonGroupClassName,function(f){f.style("pointer-events","all")}),l=0;l{"use strict";var Y9e=(T5(),ct(A5));rJ.exports={moduleType:"component",name:Y9e.name,layoutAttributes:ZS(),supplyLayoutDefaults:UK(),draw:tJ()}});var sy={};Zi(sy,{arrowOffsetX:()=>pEe,autoMarginIdRoot:()=>cEe,containerClassName:()=>X9e,currentValueClass:()=>sEe,currentValueInset:()=>VEe,currentValuePadding:()=>NEe,gripBgActiveColor:()=>CEe,gripBgColor:()=>kEe,gripBorder:()=>DEe,gripBorderColor:()=>EEe,gripBorderWidth:()=>SEe,gripHeight:()=>MEe,gripRadius:()=>AEe,gripRectClass:()=>tEe,gripWidth:()=>TEe,groupClassName:()=>K9e,inputAreaClass:()=>J9e,inputProxyClass:()=>iEe,labelClass:()=>oEe,labelGroupClass:()=>nEe,labelOffset:()=>PEe,labelPadding:()=>FEe,labelsClass:()=>aEe,menuIndexAttrName:()=>uEe,minHeight:()=>fEe,minWidth:()=>hEe,minorTickColor:()=>qEe,minorTickLength:()=>OEe,minorTickOffset:()=>BEe,name:()=>W9e,railBgColor:()=>xEe,railBorder:()=>gEe,railBorderColor:()=>_Ee,railBorderWidth:()=>yEe,railHeight:()=>lEe,railInset:()=>bEe,railRadius:()=>mEe,railRectClass:()=>Q9e,railTouchRectClass:()=>eEe,railWidth:()=>vEe,stepInset:()=>wEe,textPadX:()=>dEe,tickColor:()=>LEe,tickLength:()=>REe,tickOffset:()=>zEe,tickRectClass:()=>rEe,tickWidth:()=>IEe});var W9e,X9e,K9e,J9e,Q9e,eEe,tEe,rEe,iEe,aEe,nEe,oEe,sEe,lEe,uEe,cEe,hEe,fEe,dEe,pEe,mEe,vEe,gEe,yEe,_Ee,xEe,bEe,wEe,AEe,TEe,MEe,DEe,SEe,EEe,kEe,CEe,FEe,PEe,IEe,LEe,zEe,REe,BEe,qEe,OEe,NEe,VEe,ly=Vi(()=>{"use strict";W9e="sliders",X9e="slider-container",K9e="slider-group",J9e="slider-input-area",Q9e="slider-rail-rect",eEe="slider-rail-touch-rect",tEe="slider-grip-rect",rEe="slider-tick-rect",iEe="slider-input-proxy",aEe="slider-labels",nEe="slider-label-group",oEe="slider-label",sEe="slider-current-value",lEe=5,uEe="slider-active-index",cEe="slider-",hEe=30,fEe=30,dEe=40,pEe=4,mEe=2,vEe=5,gEe=4,yEe=1,_Ee="#bec8d9",xEe="#f8fafc",bEe=8,wEe=10,AEe=10,TEe=20,MEe=20,DEe=20,SEe=1,EEe="#bec8d9",kEe="#f6f8fa",CEe="#dbdde0",FEe=8,PEe=0,IEe=1,LEe="#333",zEe=25,REe=7,BEe=25,qEe="#333",OEe=4,NEe=8,VEe=0});var KS=X((Bit,oJ)=>{"use strict";var aJ=to(),UEe=Mx(),GEe=Ta().extendDeepAll,jEe=Is().overrideAll,$Ee=Rv(),nJ=Bi().templatedArray,Sd=(ly(),ct(sy)),HEe=nJ("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}});oJ.exports=jEe(nJ("slider",{visible:{valType:"boolean",dflt:!0},active:{valType:"number",min:0,dflt:0},steps:HEe,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:GEe(UEe({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:$Ee.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:aJ({})},font:aJ({}),activebgcolor:{valType:"color",dflt:Sd.gripBgActiveColor},bgcolor:{valType:"color",dflt:Sd.railBgColor},bordercolor:{valType:"color",dflt:Sd.railBorderColor},borderwidth:{valType:"number",min:0,dflt:Sd.railBorderWidth},ticklen:{valType:"number",min:0,dflt:Sd.tickLength},tickcolor:{valType:"color",dflt:Sd.tickColor},tickwidth:{valType:"number",min:0,dflt:1},minorticklen:{valType:"number",min:0,dflt:Sd.minorTickLength}}),"arraydraw","from-root")});var cJ=X((qit,uJ)=>{"use strict";var H1=et(),sJ=gl(),lJ=KS(),ZEe=(ly(),ct(sy)),YEe=ZEe.name,WEe=lJ.steps;uJ.exports=function(t,r){sJ(t,r,{name:YEe,handleItemDefaults:XEe})};function XEe(e,t,r){function i(h,f){return H1.coerce(e,t,lJ,h,f)}for(var a=sJ(e,t,{name:"steps",handleItemDefaults:KEe}),n=0,o=0;o{"use strict";var Tu=Wr(),E5=gn(),Df=qr(),Mu=xi(),Hs=et(),JEe=Hs.strTranslate,uy=sn(),QEe=Bi().arrayEditor,Mr=(ly(),ct(sy)),e9=(ao(),ct(io)),dJ=e9.LINE_SPACING,JS=e9.FROM_TL,QS=e9.FROM_BR;_J.exports=function(t){var r=t._context.staticPlot,i=t._fullLayout,a=eke(i,t),n=i._infolayer.selectAll("g."+Mr.containerClassName).data(a.length>0?[0]:[]);n.enter().append("g").classed(Mr.containerClassName,!0).style("cursor",r?null:"ew-resize");function o(c){c._commandObserver&&(c._commandObserver.remove(),delete c._commandObserver),E5.autoMargin(t,pJ(c))}if(n.exit().each(function(){Tu.select(this).selectAll("g."+Mr.groupClassName).each(o)}).remove(),a.length!==0){var s=n.selectAll("g."+Mr.groupClassName).data(a,tke);s.enter().append("g").classed(Mr.groupClassName,!0),s.exit().each(o).remove();for(var l=0;l0&&(s=s.transition().duration(t.transition.duration).ease(t.transition.easing)),s.attr("transform",JEe(o-Mr.gripWidth*.5,t._dims.currentValueTotalHeight))}}function t9(e,t){var r=e._dims;return r.inputAreaStart+Mr.stepInset+(r.inputAreaLength-2*Mr.stepInset)*Math.min(1,Math.max(0,t))}function fJ(e,t){var r=e._dims;return Math.min(1,Math.max(0,(t-Mr.stepInset-r.inputAreaStart)/(r.inputAreaLength-2*Mr.stepInset-2*r.inputAreaStart)))}function lke(e,t,r){var i=r._dims,a=Hs.ensureSingle(e,"rect",Mr.railTouchRectClass,function(n){n.call(gJ,t,e,r).style("pointer-events","all")});a.attr({width:i.inputAreaLength,height:Math.max(i.inputAreaWidth,Mr.tickOffset+r.ticklen+i.labelHeight)}).call(Df.fill,r.bgcolor).attr("opacity",0),Mu.setTranslate(a,0,i.currentValueTotalHeight)}function uke(e,t){var r=t._dims,i=r.inputAreaLength-Mr.railInset*2,a=Hs.ensureSingle(e,"rect",Mr.railRectClass);a.attr({width:i,height:Mr.railWidth,rx:Mr.railRadius,ry:Mr.railRadius,"shape-rendering":"crispEdges"}).call(Df.stroke,t.bordercolor).call(Df.fill,t.bgcolor).style("stroke-width",t.borderwidth+"px"),Mu.setTranslate(a,Mr.railInset,(r.inputAreaWidth-Mr.railWidth)*.5+r.currentValueTotalHeight)}});var wJ=X((Nit,bJ)=>{"use strict";var cke=(ly(),ct(sy));bJ.exports={moduleType:"component",name:cke.name,layoutAttributes:KS(),supplyLayoutDefaults:cJ(),draw:xJ()}});var C5=X((Vit,TJ)=>{"use strict";var AJ=ec();TJ.exports={bgcolor:{valType:"color",dflt:AJ.background,editType:"plot"},bordercolor:{valType:"color",dflt:AJ.defaultLine,editType:"plot"},borderwidth:{valType:"integer",dflt:0,min:0,editType:"plot"},autorange:{valType:"boolean",dflt:!0,editType:"calc",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},range:{valType:"info_array",items:[{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}},{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}}],editType:"calc",impliedEdits:{autorange:!1}},thickness:{valType:"number",dflt:.15,min:0,max:1,editType:"plot"},visible:{valType:"boolean",dflt:!0,editType:"calc"},editType:"calc"}});var r9=X((Uit,MJ)=>{"use strict";MJ.exports={_isSubplotObj:!0,rangemode:{valType:"enumerated",values:["auto","fixed","match"],dflt:"match",editType:"calc"},range:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},editType:"calc"}});var F5={};Zi(F5,{bgClassName:()=>dke,containerClassName:()=>fke,extraPad:()=>Rke,grabAreaCursor:()=>Fke,grabAreaFill:()=>Cke,grabAreaMaxClassName:()=>wke,grabAreaMinClassName:()=>_ke,grabAreaWidth:()=>Pke,grabberMaxClassName:()=>bke,grabberMinClassName:()=>yke,handleMaxClassName:()=>Ake,handleMinClassName:()=>xke,handleRadius:()=>Lke,handleStrokeWidth:()=>zke,handleWidth:()=>Ike,maskColor:()=>Dke,maskMaxClassName:()=>vke,maskMaxOppAxisClassName:()=>Mke,maskMinClassName:()=>mke,maskMinOppAxisClassName:()=>Tke,maskOppAxisColor:()=>Ske,name:()=>hke,rangePlotClassName:()=>pke,slideBoxClassName:()=>gke,slideBoxCursor:()=>kke,slideBoxFill:()=>Eke});var hke,fke,dke,pke,mke,vke,gke,yke,_ke,xke,bke,wke,Ake,Tke,Mke,Dke,Ske,Eke,kke,Cke,Fke,Pke,Ike,Lke,zke,Rke,P5=Vi(()=>{"use strict";hke="rangeslider",fke="rangeslider-container",dke="rangeslider-bg",pke="rangeslider-rangeplot",mke="rangeslider-mask-min",vke="rangeslider-mask-max",gke="rangeslider-slidebox",yke="rangeslider-grabber-min",_ke="rangeslider-grabarea-min",xke="rangeslider-handle-min",bke="rangeslider-grabber-max",wke="rangeslider-grabarea-max",Ake="rangeslider-handle-max",Tke="rangeslider-mask-min-opp-axis",Mke="rangeslider-mask-max-opp-axis",Dke="rgba(0,0,0,0.4)",Ske="rgba(0,0,0,0.2)",Eke="transparent",kke="ew-resize",Cke="transparent",Fke="col-resize",Pke=10,Ike=4,Lke=1,zke=1,Rke=15});var EJ=X(L5=>{"use strict";var Bke=nn(),qke=sn(),DJ=(P5(),ct(F5)),Oke=(ao(),ct(io)).LINE_SPACING,I5=DJ.name;function SJ(e){var t=e&&e[I5];return t&&t.visible}L5.isVisible=SJ;L5.makeData=function(e){for(var t=Bke.list({_fullLayout:e},"x",!0),r=e.margin,i=[],a=0;a{"use strict";var z5=et(),kJ=Bi(),CJ=nn(),Nke=C5(),Vke=r9();FJ.exports=function(t,r,i){var a=t[i],n=r[i];if(!(a.rangeslider||r._requestRangeslider[n._id]))return;z5.isPlainObject(a.rangeslider)||(a.rangeslider={});var o=a.rangeslider,s=kJ.newContainer(n,"rangeslider");function l(A,T){return z5.coerce(o,s,Nke,A,T)}var u,c;function h(A,T){return z5.coerce(u,c,Vke,A,T)}var f=l("visible");if(f){l("bgcolor",r.plot_bgcolor),l("bordercolor"),l("borderwidth"),l("thickness"),l("autorange",!n.isValidRange(o.range)),l("range");var d=r._subplots;if(d)for(var p=d.cartesian.filter(function(A){return A.slice(0,Math.max(0,A.indexOf("y")))===CJ.name2id(i)}).map(function(A){return A.slice(A.indexOf("y"),A.length)}),m=z5.simpleMap(p,CJ.id2name),g=0;g{"use strict";var Uke=nn().list,Gke=eg().getAutoRange,jke=(P5(),ct(F5));IJ.exports=function(t){for(var r=Uke(t,"x",!0),i=0;i{"use strict";var R5=Wr(),$ke=mr(),Hke=gn(),Da=et(),B5=Da.strTranslate,RJ=xi(),Sf=qr(),Zke=Jv(),Yke=kS(),i9=nn(),Wke=_l(),Xke=pf(),Rr=(P5(),ct(F5));BJ.exports=function(e){for(var t=e._fullLayout,r=t._rangeSliderData,i=0;i=j.max)V=I[$+1];else if(O=j.pmax)V=I[$+1];else if(O0?e.touches[0].clientX:0}function Kke(e,t,r,i){if(t._context.staticPlot)return;var a=e.select("rect."+Rr.slideBoxClassName).node(),n=e.select("rect."+Rr.grabAreaMinClassName).node(),o=e.select("rect."+Rr.grabAreaMaxClassName).node();function s(){var l=R5.event,u=l.target,c=zJ(l),h=c-e.node().getBoundingClientRect().left,f=i.d2p(r._rl[0]),d=i.d2p(r._rl[1]),p=Wke.coverSlip();this.addEventListener("touchmove",m),this.addEventListener("touchend",g),p.addEventListener("mousemove",m),p.addEventListener("mouseup",g);function m(y){var x=zJ(y),w=+x-c,_,A,T;switch(u){case a:if(T="ew-resize",f+w>r._length||d+w<0)return;_=f+w,A=d+w;break;case n:if(T="col-resize",f+w>r._length)return;_=f+w,A=d;break;case o:if(T="col-resize",d+w<0)return;_=f,A=d+w;break;default:T="ew-resize",_=h,A=h+w;break}if(A<_){var M=A;A=_,_=M}i._pixelMin=_,i._pixelMax=A,Xke(R5.select(p),T),Jke(e,t,r,i)}function g(){p.removeEventListener("mousemove",m),p.removeEventListener("mouseup",g),this.removeEventListener("touchmove",m),this.removeEventListener("touchend",g),Da.removeElement(p)}}e.on("mousedown",s),e.on("touchstart",s)}function Jke(e,t,r,i){function a(s){return r.l2r(Da.constrain(s,i._rl[0],i._rl[1]))}var n=a(i.p2d(i._pixelMin)),o=a(i.p2d(i._pixelMax));window.requestAnimationFrame(function(){$ke.call("_guiRelayout",t,r._name+".range",[n,o])})}function Qke(e,t,r,i,a,n){var o=Rr.handleWidth/2;function s(y){return Da.constrain(y,0,i._width)}function l(y){return Da.constrain(y,0,i._height)}function u(y){return Da.constrain(y,-o,i._width+o)}var c=s(i.d2p(r._rl[0])),h=s(i.d2p(r._rl[1]));if(e.select("rect."+Rr.slideBoxClassName).attr("x",c).attr("width",h-c),e.select("rect."+Rr.maskMinClassName).attr("width",c),e.select("rect."+Rr.maskMaxClassName).attr("x",h).attr("width",i._width-h),n.rangemode!=="match"){var f=i._height-l(i.d2pOppAxis(a._rl[1])),d=i._height-l(i.d2pOppAxis(a._rl[0]));e.select("rect."+Rr.maskMinOppAxisClassName).attr("x",c).attr("height",f).attr("width",h-c),e.select("rect."+Rr.maskMaxOppAxisClassName).attr("x",c).attr("y",d).attr("height",i._height-d).attr("width",h-c),e.select("rect."+Rr.slideBoxClassName).attr("y",f).attr("height",d-f)}var p=.5,m=Math.round(u(c-o))-p,g=Math.round(u(h-o))+p;e.select("g."+Rr.grabberMinClassName).attr("transform",B5(m,p)),e.select("g."+Rr.grabberMaxClassName).attr("transform",B5(g,p))}function eCe(e,t,r,i){var a=Da.ensureSingle(e,"rect",Rr.bgClassName,function(l){l.attr({x:0,y:0,"shape-rendering":"crispEdges"})}),n=i.borderwidth%2===0?i.borderwidth:i.borderwidth-1,o=-i._offsetShift,s=RJ.crispRound(t,i.borderwidth);a.attr({width:i._width+n,height:i._height+n,transform:B5(o,o),"stroke-width":s}).call(Sf.stroke,i.bordercolor).call(Sf.fill,i.bgcolor)}function tCe(e,t,r,i){var a=t._fullLayout,n=Da.ensureSingleById(a._topdefs,"clipPath",i._clipId,function(o){o.append("rect").attr({x:0,y:0})});n.select("rect").attr({width:i._width,height:i._height})}function rCe(e,t,r,i){var a=t.calcdata,n=e.selectAll("g."+Rr.rangePlotClassName).data(r._subplotsWith,Da.identity);n.enter().append("g").attr("class",function(s){return Rr.rangePlotClassName+" "+s}).call(RJ.setClipUrl,i._clipId,t),n.order(),n.exit().remove();var o;n.each(function(s,l){var u=R5.select(this),c=l===0,h=i9.getFromId(t,s,"y"),f=h._name,d=i[f],p={data:[],layout:{xaxis:{type:r.type,domain:[0,1],range:i.range.slice(),calendar:r.calendar},width:i._width,height:i._height,margin:{t:0,b:0,l:0,r:0}},_context:t._context};r.rangebreaks&&(p.layout.xaxis.rangebreaks=r.rangebreaks),p.layout[f]={type:h.type,domain:[0,1],range:d.rangemode!=="match"?d.range.slice():h.range.slice(),calendar:h.calendar},h.rangebreaks&&(p.layout[f].rangebreaks=h.rangebreaks),Hke.supplyDefaults(p);var m=p._fullLayout.xaxis,g=p._fullLayout[f];m.clearCalc(),m.setScale(),g.clearCalc(),g.setScale();var y={id:s,plotgroup:u,xaxis:m,yaxis:g,isRangePlot:!0};c?o=y:(y.mainplot="xy",y.mainplotinfo=o),Yke.rangePlot(t,y,iCe(a,s))})}function iCe(e,t){for(var r=[],i=0;i{"use strict";var sCe=et(),lCe=C5(),uCe=r9(),a9=EJ();OJ.exports={moduleType:"component",name:"rangeslider",schema:{subplots:{xaxis:{rangeslider:sCe.extendFlat({},lCe,{yaxis:uCe})}}},layoutAttributes:C5(),handleDefaults:PJ(),calcAutorange:LJ(),draw:qJ(),isVisible:a9.isVisible,makeData:a9.makeData,autoMarginOpts:a9.autoMarginOpts}});var q5=X((Yit,UJ)=>{"use strict";var cCe=to(),VJ=ec(),hCe=Bi().templatedArray,fCe=hCe("button",{visible:{valType:"boolean",dflt:!0,editType:"plot"},step:{valType:"enumerated",values:["month","year","day","hour","minute","second","all"],dflt:"month",editType:"plot"},stepmode:{valType:"enumerated",values:["backward","todate"],dflt:"backward",editType:"plot"},count:{valType:"number",min:0,dflt:1,editType:"plot"},label:{valType:"string",editType:"plot"},editType:"plot"});UJ.exports={visible:{valType:"boolean",editType:"plot"},buttons:fCe,x:{valType:"number",min:-2,max:3,editType:"plot"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"plot"},y:{valType:"number",min:-2,max:3,editType:"plot"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"bottom",editType:"plot"},font:cCe({editType:"plot"}),bgcolor:{valType:"color",dflt:VJ.lightLine,editType:"plot"},activecolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:VJ.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"}});var n9={};Zi(n9,{darkAmount:()=>yCe,lightAmount:()=>gCe,minButtonWidth:()=>pCe,rx:()=>mCe,ry:()=>vCe,yPad:()=>dCe});var dCe,pCe,mCe,vCe,gCe,yCe,o9=Vi(()=>{"use strict";dCe=.02,pCe=30,mCe=3,vCe=3,gCe=25,yCe=10});var $J=X((Wit,jJ)=>{"use strict";var O5=et(),_Ce=qr(),xCe=Bi(),bCe=gl(),GJ=q5(),s9=(o9(),ct(n9));jJ.exports=function(t,r,i,a,n){var o=t.rangeselector||{},s=xCe.newContainer(r,"rangeselector");function l(d,p){return O5.coerce(o,s,GJ,d,p)}var u=bCe(o,s,{name:"buttons",handleItemDefaults:wCe,calendar:n}),c=l("visible",u.length>0);if(c){var h=ACe(r,i,a);l("x",h[0]),l("y",h[1]),O5.noneOrAll(t,r,["x","y"]),l("xanchor"),l("yanchor"),O5.coerceFont(l,"font",i.font);var f=l("bgcolor");l("activecolor",_Ce.contrast(f,s9.lightAmount,s9.darkAmount)),l("bordercolor"),l("borderwidth")}};function wCe(e,t,r,i){var a=i.calendar;function n(l,u){return O5.coerce(e,t,GJ.buttons,l,u)}var o=n("visible");if(o){var s=n("step");s!=="all"&&(a&&a!=="gregorian"&&(s==="month"||s==="year")?t.stepmode="backward":n("stepmode"),n("count")),n("label")}}function ACe(e,t,r){for(var i=r.filter(function(s){return t[s].anchor===e._id}),a=0,n=0;n{"use strict";var TCe=AA(),MCe=et().titleCase;HJ.exports=function(t,r){var i=t._name,a={};if(r.step==="all")a[i+".autorange"]=!0;else{var n=DCe(t,r);a[i+".range[0]"]=n[0],a[i+".range[1]"]=n[1]}return a};function DCe(e,t){var r=e.range,i=new Date(e.r2l(r[1])),a=t.step,n=TCe["utc"+MCe(a)],o=t.count,s;switch(t.stepmode){case"backward":s=e.l2r(+n.offset(i,-o));break;case"todate":var l=n.offset(i,-o);s=e.l2r(+n.ceil(l));break}var u=r[1];return[s,u]}});var tQ=X((Kit,eQ)=>{"use strict";var V5=Wr(),SCe=mr(),ECe=gn(),YJ=qr(),QJ=xi(),uh=et(),WJ=uh.strTranslate,N5=sn(),kCe=nn(),c9=(ao(),ct(io)),XJ=c9.LINE_SPACING,KJ=c9.FROM_TL,JJ=c9.FROM_BR,u9=(o9(),ct(n9)),CCe=ZJ();eQ.exports=function(t){var r=t._fullLayout,i=r._infolayer.selectAll(".rangeselector").data(FCe(t),PCe);i.enter().append("g").classed("rangeselector",!0),i.exit().remove(),i.style({cursor:"pointer","pointer-events":"all"}),i.each(function(a){var n=V5.select(this),o=a,s=o.rangeselector,l=n.selectAll("g.button").data(uh.filterVisible(s.buttons));l.enter().append("g").classed("button",!0),l.exit().remove(),l.each(function(u){var c=V5.select(this),h=CCe(o,u);u._isActive=ICe(o,u,h),c.call(l9,s,u),c.call(zCe,s,u,t),c.on("click",function(){t._dragged||SCe.call("_guiRelayout",t,h)}),c.on("mouseover",function(){u._isHovered=!0,c.call(l9,s,u)}),c.on("mouseout",function(){u._isHovered=!1,c.call(l9,s,u)})}),BCe(t,l,s,o._name,n)})};function FCe(e){for(var t=kCe.list(e,"x",!0),r=[],i=0;i{"use strict";rQ.exports={moduleType:"component",name:"rangeselector",schema:{subplots:{xaxis:{rangeselector:q5()}}},layoutAttributes:q5(),handleDefaults:$J(),draw:tQ()}});var U5=X(h9=>{"use strict";var aQ=Ta().extendFlat;h9.attributes=function(e,t){e=e||{},t=t||{};var r={valType:"info_array",editType:e.editType,items:[{valType:"number",min:0,max:1,editType:e.editType},{valType:"number",min:0,max:1,editType:e.editType}],dflt:[0,1]},i=e.name?e.name+" ":"",a=e.trace?"trace":"subplot",n=t.description?" "+t.description:"",o={x:aQ({},r,{}),y:aQ({},r,{}),editType:e.editType};return e.noGridCell||(o.row={valType:"integer",min:0,dflt:0,editType:e.editType},o.column={valType:"integer",min:0,dflt:0,editType:e.editType}),o};h9.defaults=function(e,t,r,i){var a=i&&i.x||[0,1],n=i&&i.y||[0,1],o=t.grid;if(o){var s=r("domain.column");s!==void 0&&(s{"use strict";var qCe=et(),OCe=($p(),ct(Lv)).counter,NCe=U5().attributes,nQ=(vn(),ct(mn)).idRegex,VCe=Bi(),f9={rows:{valType:"integer",min:1,editType:"plot"},roworder:{valType:"enumerated",values:["top to bottom","bottom to top"],dflt:"top to bottom",editType:"plot"},columns:{valType:"integer",min:1,editType:"plot"},subplots:{valType:"info_array",freeLength:!0,dimensions:2,items:{valType:"enumerated",values:[OCe("xy").toString(),""],editType:"plot"},editType:"plot"},xaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[nQ.x.toString(),""],editType:"plot"},editType:"plot"},yaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[nQ.y.toString(),""],editType:"plot"},editType:"plot"},pattern:{valType:"enumerated",values:["independent","coupled"],dflt:"coupled",editType:"plot"},xgap:{valType:"number",min:0,max:1,editType:"plot"},ygap:{valType:"number",min:0,max:1,editType:"plot"},domain:NCe({name:"grid",editType:"plot",noGridCell:!0},{}),xside:{valType:"enumerated",values:["bottom","bottom plot","top plot","top"],dflt:"bottom plot",editType:"plot"},yside:{valType:"enumerated",values:["left","left plot","right plot","right"],dflt:"left plot",editType:"plot"},editType:"plot"};function G5(e,t,r){var i=t[r+"axes"],a=Object.keys((e._splomAxes||{})[r]||{});if(Array.isArray(i))return i;if(a.length)return a}function UCe(e,t){var r=e.grid||{},i=G5(t,r,"x"),a=G5(t,r,"y");if(!e.grid&&!i&&!a)return;var n=Array.isArray(r.subplots)&&Array.isArray(r.subplots[0]),o=Array.isArray(i),s=Array.isArray(a),l=o&&i!==r.xaxes&&s&&a!==r.yaxes,u,c;n?(u=r.subplots.length,c=r.subplots[0].length):(s&&(u=a.length),o&&(c=i.length));var h=VCe.newContainer(t,"grid");function f(T,M){return qCe.coerce(r,h,f9,T,M)}var d=f("rows",u),p=f("columns",c);if(!(d*p>1)){delete t.grid;return}if(!n&&!o&&!s){var m=f("pattern")==="independent";m&&(n=!0)}h._hasSubplotGrid=n;var g=f("roworder"),y=g==="top to bottom",x=n?.2:.1,w=n?.3:.1,_,A;l&&t._splomGridDflt&&(_=t._splomGridDflt.xside,A=t._splomGridDflt.yside),h._domains={x:oQ("x",f,x,_,p),y:oQ("y",f,w,A,d,y)}}function oQ(e,t,r,i,a,n){var o=t(e+"gap",r),s=t("domain."+e);t(e+"side",i);for(var l=new Array(a),u=s[0],c=(s[1]-u)/(a-o),h=c*(1-o),f=0;f{"use strict";cQ.exports={visible:{valType:"boolean",editType:"calc"},type:{valType:"enumerated",values:["percent","constant","sqrt","data"],editType:"calc"},symmetric:{valType:"boolean",editType:"calc"},array:{valType:"data_array",editType:"calc"},arrayminus:{valType:"data_array",editType:"calc"},value:{valType:"number",min:0,dflt:10,editType:"calc"},valueminus:{valType:"number",min:0,dflt:10,editType:"calc"},traceref:{valType:"integer",min:0,dflt:0,editType:"style"},tracerefminus:{valType:"integer",min:0,dflt:0,editType:"style"},copy_ystyle:{valType:"boolean",editType:"plot"},copy_zstyle:{valType:"boolean",editType:"style"},color:{valType:"color",editType:"style"},thickness:{valType:"number",min:0,dflt:2,editType:"style"},width:{valType:"number",min:0,editType:"plot"},editType:"calc"}});var dQ=X((rat,fQ)=>{"use strict";var hQ=Br(),jCe=mr(),$Ce=et(),HCe=Bi(),ZCe=d9();fQ.exports=function(e,t,r,i){var a="error_"+i.axis,n=HCe.newContainer(t,a),o=e[a]||{};function s(p,m){return $Ce.coerce(o,n,ZCe,p,m)}var l=o.array!==void 0||o.value!==void 0||o.type==="sqrt",u=s("visible",l);if(u!==!1){var c=s("type","array"in o?"data":"percent"),h=!0;c!=="sqrt"&&(h=s("symmetric",!((c==="data"?"arrayminus":"valueminus")in o))),c==="data"?(s("array"),s("traceref"),h||(s("arrayminus"),s("tracerefminus"))):(c==="percent"||c==="constant")&&(s("value"),h||s("valueminus"));var f="copy_"+i.inherit+"style";if(i.inherit){var d=t["error_"+i.inherit];(d||{}).visible&&s(f,!(o.color||hQ(o.thickness)||hQ(o.width)))}(!i.inherit||!n[f])&&(s("color",r),s("thickness"),s("width",jCe.traceIs(t,"gl3d")?0:4))}}});var p9=X((iat,mQ)=>{"use strict";mQ.exports=function(t){var r=t.type,i=t.symmetric;if(r==="data"){var a=t.array||[];if(i)return function(u,c){var h=+a[c];return[h,h]};var n=t.arrayminus||[];return function(u,c){var h=+a[c],f=+n[c];return!isNaN(h)||!isNaN(f)?[f||0,h||0]:[NaN,NaN]}}else{var o=pQ(r,t.value),s=pQ(r,t.valueminus);return i||t.valueminus===void 0?function(u){var c=o(u);return[c,c]}:function(u){return[s(u),o(u)]}}};function pQ(e,t){if(e==="percent")return function(r){return Math.abs(r*t/100)};if(e==="constant")return function(){return Math.abs(t)};if(e==="sqrt")return function(r){return Math.sqrt(Math.abs(r))}}});var yQ=X((aat,gQ)=>{"use strict";var m9=Br(),YCe=mr(),v9=ta(),WCe=et(),XCe=p9();gQ.exports=function(t){for(var r=t.calcdata,i=0;i{"use strict";var _Q=Wr(),Ef=Br(),KCe=xi(),JCe=wo();xQ.exports=function(t,r,i,a){var n,o=i.xaxis,s=i.yaxis,l=a&&a.duration>0,u=t._context.staticPlot;r.each(function(c){var h=c[0].trace,f=h.error_x||{},d=h.error_y||{},p;h.ids&&(p=function(x){return x.id});var m=JCe.hasMarkers(h)&&h.marker.maxdisplayed>0;!d.visible&&!f.visible&&(c=[]);var g=_Q.select(this).selectAll("g.errorbar").data(c,p);if(g.exit().remove(),!!c.length){f.visible||g.selectAll("path.xerror").remove(),d.visible||g.selectAll("path.yerror").remove(),g.style("opacity",1);var y=g.enter().append("g").classed("errorbar",!0);l&&y.style("opacity",0).transition().duration(a.duration).style("opacity",1),KCe.setClipUrl(g,i.layerClipId,t),g.each(function(x){var w=_Q.select(this),_=QCe(x,o,s);if(!(m&&!x.vis)){var A,T=w.select("path.yerror");if(d.visible&&Ef(_.x)&&Ef(_.yh)&&Ef(_.ys)){var M=d.width;A="M"+(_.x-M)+","+_.yh+"h"+2*M+"m-"+M+",0V"+_.ys,_.noYS||(A+="m-"+M+",0h"+2*M),n=!T.size(),n?T=w.append("path").style("vector-effect",u?"none":"non-scaling-stroke").classed("yerror",!0):l&&(T=T.transition().duration(a.duration).ease(a.easing)),T.attr("d",A)}else T.remove();var S=w.select("path.xerror");if(f.visible&&Ef(_.y)&&Ef(_.xh)&&Ef(_.xs)){var k=(f.copy_ystyle?d:f).width;A="M"+_.xh+","+(_.y-k)+"v"+2*k+"m0,-"+k+"H"+_.xs,_.noXS||(A+="m0,-"+k+"v"+2*k),n=!S.size(),n?S=w.append("path").style("vector-effect",u?"none":"non-scaling-stroke").classed("xerror",!0):l&&(S=S.transition().duration(a.duration).ease(a.easing)),S.attr("d",A)}else S.remove()}})}})};function QCe(e,t,r){var i={x:t.c2p(e.x),y:r.c2p(e.y)};return e.yh!==void 0&&(i.yh=r.c2p(e.yh),i.ys=r.c2p(e.ys),Ef(i.ys)||(i.noYS=!0,i.ys=r.c2p(e.ys,!0))),e.xh!==void 0&&(i.xh=t.c2p(e.xh),i.xs=t.c2p(e.xs),Ef(i.xs)||(i.noXS=!0,i.xs=t.c2p(e.xs,!0))),i}});var TQ=X((oat,AQ)=>{"use strict";var eFe=Wr(),wQ=qr();AQ.exports=function(t){t.each(function(r){var i=r[0].trace,a=i.error_y||{},n=i.error_x||{},o=eFe.select(this);o.selectAll("path.yerror").style("stroke-width",a.thickness+"px").call(wQ.stroke,a.color),n.copy_ystyle&&(n=a),o.selectAll("path.xerror").style("stroke-width",n.thickness+"px").call(wQ.stroke,n.color)})}});var SQ=X((sat,DQ)=>{"use strict";var cy=et(),MQ=Is().overrideAll,hy=d9(),Ed={error_x:cy.extendFlat({},hy),error_y:cy.extendFlat({},hy)};delete Ed.error_x.copy_zstyle;delete Ed.error_y.copy_zstyle;delete Ed.error_y.copy_ystyle;var fy={error_x:cy.extendFlat({},hy),error_y:cy.extendFlat({},hy),error_z:cy.extendFlat({},hy)};delete fy.error_x.copy_ystyle;delete fy.error_y.copy_ystyle;delete fy.error_z.copy_ystyle;delete fy.error_z.copy_zstyle;DQ.exports={moduleType:"component",name:"errorbars",schema:{traces:{scatter:Ed,bar:Ed,histogram:Ed,scatter3d:MQ(fy,"calc","nested"),scattergl:MQ(Ed,"calc","nested")}},supplyDefaults:dQ(),calc:yQ(),makeComputeError:p9(),plot:bQ(),style:TQ(),hoverInfo:tFe};function tFe(e,t,r){(t.error_y||{}).visible&&(r.yerr=e.yh-e.y,t.error_y.symmetric||(r.yerrneg=e.y-e.ys)),(t.error_x||{}).visible&&(r.xerr=e.xh-e.x,t.error_x.symmetric||(r.xerrneg=e.x-e.xs))}});var EQ={};Zi(EQ,{cn:()=>rFe});var rFe,kQ=Vi(()=>{"use strict";rFe={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"}});var BQ=X((lat,RQ)=>{"use strict";var kf=Wr(),$5=gn(),CQ=mr(),ch=ta(),j5=_l(),Il=et(),Su=Il.strTranslate,zQ=Ta().extendFlat,g9=pf(),Du=xi(),Z1=qr(),iFe=Jv(),aFe=sn(),nFe=ic().flipScale,oFe=MS(),sFe=DS(),lFe=pu(),_9=(ao(),ct(io)),FQ=_9.LINE_SPACING,PQ=_9.FROM_TL,IQ=_9.FROM_BR,oa=(kQ(),ct(EQ)).cn;function uFe(e){var t=e._fullLayout,r=t._infolayer.selectAll("g."+oa.colorbar).data(cFe(e),function(i){return i._id});r.enter().append("g").attr("class",function(i){return i._id}).classed(oa.colorbar,!0),r.each(function(i){var a=kf.select(this);Il.ensureSingle(a,"rect",oa.cbbg),Il.ensureSingle(a,"g",oa.cbfills),Il.ensureSingle(a,"g",oa.cblines),Il.ensureSingle(a,"g",oa.cbaxis,function(o){o.classed(oa.crisp,!0)}),Il.ensureSingle(a,"g",oa.cbtitleunshift,function(o){o.append("g").classed(oa.cbtitle,!0)}),Il.ensureSingle(a,"rect",oa.cboutline);var n=hFe(a,i,e);n&&n.then&&(e._promises||[]).push(n),e._context.edits.colorbarPosition&&fFe(a,i,e)}),r.exit().each(function(i){$5.autoMargin(e,i._id)}).remove(),r.order()}function cFe(e){var t=e._fullLayout,r=e.calcdata,i=[],a,n,o,s;function l(w){return zQ(w,{_fillcolor:null,_line:{color:null,width:null,dash:null},_levels:{start:null,end:null,size:null},_filllevels:null,_fillgradient:null,_zrange:null})}function u(){typeof s.calc=="function"?s.calc(e,o,a):(a._fillgradient=n.reversescale?nFe(n.colorscale):n.colorscale,a._zrange=[n[s.min],n[s.max]])}for(var c=0;c[Math.min(e[0]+t,e[1]),e[1]],LQ=(e,t)=>[e[0],Math.max(e[1]-t,e[0])];function hFe(e,t,r){var i=t.orientation==="v",a=t.len,n=t.lenmode,o=t.thickness,s=t.thicknessmode,l=t.outlinewidth,u=t.borderwidth,c=t.bgcolor,h=t.xanchor,f=t.yanchor,d=t.xpad,p=t.ypad,m=t.x,g=i?t.y:1-t.y,y=t.yref==="paper",x=t.xref==="paper",w=r._fullLayout,_=w._size,A=t._fillcolor,T=t._line,M=t.title,S=M.side,k=t._zrange||kf.extent((typeof A=="function"?A:T.color).domain()),P=typeof T.color=="function"?T.color:function(){return T.color},I=typeof A=="function"?A:function(){return A},B=t._levels,L=dFe(r,t,k),z=L.fill,O=L.line,V=Math.round(o*(s==="fraction"?i?_.w:_.h:1)),$=V/(i?_.w:_.h),j=Math.round(a*(n==="fraction"?i?_.h:_.w:1)),H=j/(i?_.h:_.w),Z=x?_.w:r._fullLayout.width,W=y?_.h:r._fullLayout.height,le=Math.round(i?m*Z+d:g*W+p),pe={center:.5,right:1}[h]||0,_e={top:1,middle:.5}[f]||0,De=i?m-pe*$:g-_e*$,de=i?g-_e*H:m-pe*H,Ce=Math.round(i?W*(1-de):Z*de);t._lenFrac=H,t._thickFrac=$,t._uFrac=De,t._vFrac=de;var Q=t._axis=pFe(r,t,k);Q.position=$+(i?m+d/_.w:g+p/_.h);var ae=["top","bottom"].indexOf(S)!==-1;if(i&&ae&&(Q.title.side=S,Q.titlex=m+d/_.w,Q.titley=de+(M.side==="top"?H-p/_.h:p/_.h)),!i&&!ae&&(Q.title.side=S,Q.titley=g+p/_.h,Q.titlex=de+d/_.w),T.color&&t.tickmode==="auto"){Q.tickmode="linear",Q.tick0=B.start;var ye=B.size,te=Il.constrain(j/50,4,15)+1,re=(k[1]-k[0])/((t.nticks||te)*ye);if(re>1){var ce=Math.pow(10,Math.floor(Math.log(re)/Math.LN10));ye*=ce*Il.roundUp(re/ce,[2,5,10]),(Math.abs(B.start)/B.size+1e-6)%1<2e-6&&(Q.tick0=0)}Q.dtick=ye}var me=i?p/_.h:d/_.w;Q.domain=LQ(y9([de,de+H],me),me),Q.setScale(),e.attr("transform",Su(Math.round(_.l),Math.round(_.t)));var ze=e.select("."+oa.cbtitleunshift).attr("transform",Su(-Math.round(_.l),-Math.round(_.t))),He=Q.ticklabelposition,ke=Q.title.font.size,Oe=e.select("."+oa.cbaxis),qe,se=0,je=0;function Re(ie,we){var ot={propContainer:Q,propName:t._propPrefix+"title.text",traceIndex:t._traceIndex,_meta:t._meta,placeholder:w._dfltTitle.colorbar,containerGroup:e.select("."+oa.cbtitle)},At=ie.charAt(0)==="h"?ie.slice(1):"h"+ie;e.selectAll("."+At+",."+At+"-math-group").remove(),iFe.draw(r,ie,zQ(ot,we||{}))}function Ve(){if(i&&ae||!i&&!ae){var ie,we;S==="top"&&(ie=d+_.l+Z*m,we=p+_.t+W*(1-de-H)+3+ke*.75),S==="bottom"&&(ie=d+_.l+Z*m,we=p+_.t+W*(1-de)-3-ke*.25),S==="right"&&(we=p+_.t+W*g+3+ke*.75,ie=d+_.l+Z*de),Re(Q._id+"title",{attributes:{x:ie,y:we,"text-anchor":i?"start":"middle"}})}}function ge(){if(i&&!ae||!i&&ae){var ie=Q.position||0,we=Q._offset+Q._length/2,ot,At;if(S==="right")At=we,ot=_.l+Z*ie+10+ke*(Q.showticklabels?1:.5);else if(ot=we,S==="bottom"&&(At=_.t+W*ie+10+(He.indexOf("inside")===-1?Q.tickfont.size:0)+(Q.ticks!=="inside"&&t.ticklen||0)),S==="top"){var $e=M.text.split("
").length;At=_.t+W*ie+10-V-FQ*ke*$e}Re((i?"h":"v")+Q._id+"title",{avoid:{selection:kf.select(r).selectAll("g."+Q._id+"tick"),side:S,offsetTop:i?0:_.t,offsetLeft:i?_.l:0,maxShift:i?w.width:w.height},attributes:{x:ot,y:At,"text-anchor":"middle"},transform:{rotate:i?-90:0,offset:0}})}}function Ge(){if(!i&&!ae||i&&ae){var ie=e.select("."+oa.cbtitle),we=ie.select("text"),ot=[-l/2,l/2],At=ie.select(".h"+Q._id+"title-math-group").node(),$e=15.6;we.node()&&($e=parseInt(we.node().style.fontSize,10)*FQ);var Ee;if(At?(Ee=Du.bBox(At),je=Ee.width,se=Ee.height,se>$e&&(ot[1]-=(se-$e)/2)):we.node()&&!we.classed(oa.jsPlaceholder)&&(Ee=Du.bBox(we.node()),je=Ee.width,se=Ee.height),i){if(se){if(se+=5,S==="top")Q.domain=LQ(Q.domain,se/_.h),ot[1]*=-1;else{Q.domain=y9(Q.domain,se/_.h);var Me=aFe.lineCount(we);ot[1]+=(1-Me)*$e}ie.attr("transform",Su(ot[0],ot[1])),Q.setScale()}}else je&&(S==="right"&&(Q.domain=y9(Q.domain,(je+ke/2)/_.w)),ie.attr("transform",Su(ot[0],ot[1])),Q.setScale())}e.selectAll("."+oa.cbfills+",."+oa.cblines).attr("transform",i?Su(0,Math.round(_.h*(1-Q.domain[1]))):Su(Math.round(_.w*Q.domain[0]),0)),Oe.attr("transform",i?Su(0,Math.round(-_.t)):Su(Math.round(-_.l),0));var We=e.select("."+oa.cbfills).selectAll("rect."+oa.cbfill).attr("style","").data(z);We.enter().append("rect").classed(oa.cbfill,!0).attr("style",""),We.exit().remove();var lt=k.map(Q.c2p).map(Math.round).sort(function(Tt,Ze){return Tt-Ze});We.each(function(Tt,Ze){var gt=[Ze===0?k[0]:(z[Ze]+z[Ze-1])/2,Ze===z.length-1?k[1]:(z[Ze]+z[Ze+1])/2].map(Q.c2p).map(Math.round);i&&(gt[1]=Il.constrain(gt[1]+(gt[1]>gt[0])?1:-1,lt[0],lt[1]));var rt=kf.select(this).attr(i?"x":"y",le).attr(i?"y":"x",kf.min(gt)).attr(i?"width":"height",Math.max(V,2)).attr(i?"height":"width",Math.max(kf.max(gt)-kf.min(gt),2));if(t._fillgradient)Du.gradient(rt,r,t._id,i?"vertical":"horizontalreversed",t._fillgradient,"fill");else{var Ft=I(Tt).replace("e-","");rt.attr("fill",Z1.hexString(Ft))}});var Qe=e.select("."+oa.cblines).selectAll("path."+oa.cbline).data(T.color&&T.width?O:[]);Qe.enter().append("path").classed(oa.cbline,!0),Qe.exit().remove(),Qe.each(function(Tt){var Ze=le,gt=Math.round(Q.c2p(Tt))+T.width/2%1;kf.select(this).attr("d","M"+(i?Ze+","+gt:gt+","+Ze)+(i?"h":"v")+V).call(Du.lineGroupStyle,T.width,P(Tt),T.dash)}),Oe.selectAll("g."+Q._id+"tick,path").remove();var st=le+V+(l||0)/2-(t.ticks==="outside"?1:0),vt=ch.calcTicks(Q),ut=ch.getTickSigns(Q)[2];return ch.drawTicks(r,Q,{vals:Q.ticks==="inside"?ch.clipEnds(Q,vt):vt,layer:Oe,path:ch.makeTickPath(Q,st,ut),transFn:ch.makeTransTickFn(Q)}),ch.drawLabels(r,Q,{vals:vt,layer:Oe,transFn:ch.makeTransTickLabelFn(Q),labelFns:ch.makeLabelFns(Q,st)})}function tt(){var ie,we=V+l/2;He.indexOf("inside")===-1&&(ie=Du.bBox(Oe.node()),we+=i?ie.width:ie.height),qe=ze.select("text");var ot=0,At=i&&S==="top",$e=!i&&S==="right",Ee=0;if(qe.node()&&!qe.classed(oa.jsPlaceholder)){var Me,We=ze.select(".h"+Q._id+"title-math-group").node();We&&(i&&ae||!i&&!ae)?(ie=Du.bBox(We),ot=ie.width,Me=ie.height):(ie=Du.bBox(ze.node()),ot=ie.right-_.l-(i?le:Ce),Me=ie.bottom-_.t-(i?Ce:le),!i&&S==="top"&&(we+=ie.height,Ee=ie.height)),$e&&(qe.attr("transform",Su(ot/2+ke/2,0)),ot*=2),we=Math.max(we,i?ot:Me)}var lt=(i?d:p)*2+we+u+l/2,Qe=0;!i&&M.text&&f==="bottom"&&g<=0&&(Qe=lt/2,lt+=Qe,Ee+=Qe),w._hColorbarMoveTitle=Qe,w._hColorbarMoveCBTitle=Ee;var st=u+l,vt=(i?le:Ce)-st/2-(i?d:0),ut=(i?Ce:le)-(i?j:p+Ee-Qe);e.select("."+oa.cbbg).attr("x",vt).attr("y",ut).attr(i?"width":"height",Math.max(lt-Qe,2)).attr(i?"height":"width",Math.max(j+st,2)).call(Z1.fill,c).call(Z1.stroke,t.bordercolor).style("stroke-width",u);var Tt=$e?Math.max(ot-10,0):0;e.selectAll("."+oa.cboutline).attr("x",(i?le:Ce+d)+Tt).attr("y",(i?Ce+p-j:le)+(At?se:0)).attr(i?"width":"height",Math.max(V,2)).attr(i?"height":"width",Math.max(j-(i?2*p+se:2*d+Tt),2)).call(Z1.stroke,t.outlinecolor).style({fill:"none","stroke-width":l});var Ze=i?pe*lt:0,gt=i?0:(1-_e)*lt-Ee;if(Ze=x?_.l-Ze:-Ze,gt=y?_.t-gt:-gt,e.attr("transform",Su(Ze,gt)),!i&&(u||Z1.opacity(c)&&!Z1.equals(w.paper_bgcolor,c))){var rt=Oe.selectAll("text"),Ft=rt[0].length,Pt=e.select("."+oa.cbbg).node(),bt=Du.bBox(Pt),zt=Du.getTranslate(e),fe=2;rt.each(function(gi,hi){var Ca=0,Ja=Ft-1;if(hi===Ca||hi===Ja){var Mn=Du.bBox(this),Rt=Du.getTranslate(this),fi;if(hi===Ja){var Zr=Mn.right+Rt.x,Ti=bt.right+zt.x+Ce-u-fe+m;fi=Ti-Zr,fi>0&&(fi=0)}else if(hi===Ca){var Fi=Mn.left+Rt.x,Mi=bt.left+zt.x+Ce+u+fe;fi=Mi-Fi,fi<0&&(fi=0)}fi&&(Ft<3?this.setAttribute("transform","translate("+fi+",0) "+this.getAttribute("transform")):this.setAttribute("visibility","hidden"))}})}var Se={},it=PQ[h],nt=IQ[h],Fr=PQ[f],Kr=IQ[f],si=lt-V;i?(n==="pixels"?(Se.y=g,Se.t=j*Fr,Se.b=j*Kr):(Se.t=Se.b=0,Se.yt=g+a*Fr,Se.yb=g-a*Kr),s==="pixels"?(Se.x=m,Se.l=lt*it,Se.r=lt*nt):(Se.l=si*it,Se.r=si*nt,Se.xl=m-o*it,Se.xr=m+o*nt)):(n==="pixels"?(Se.x=m,Se.l=j*it,Se.r=j*nt):(Se.l=Se.r=0,Se.xl=m+a*it,Se.xr=m-a*nt),s==="pixels"?(Se.y=1-g,Se.t=lt*Fr,Se.b=lt*Kr):(Se.t=si*Fr,Se.b=si*Kr,Se.yt=g-o*Fr,Se.yb=g+o*Kr));var Ni=t.y<.5?"b":"t",Pr=t.x<.5?"l":"r";r._fullLayout._reservedMargin[t._id]={};var Hr={r:w.width-vt-Ze,l:vt+Se.r,b:w.height-ut-gt,t:ut+Se.b};x&&y?$5.autoMargin(r,t._id,Se):x?r._fullLayout._reservedMargin[t._id][Ni]=Hr[Ni]:y||i?r._fullLayout._reservedMargin[t._id][Pr]=Hr[Pr]:r._fullLayout._reservedMargin[t._id][Ni]=Hr[Ni]}return Il.syncOrAsync([$5.previousPromises,Ve,Ge,ge,$5.previousPromises,tt],r)}function fFe(e,t,r){var i=t.orientation==="v",a=r._fullLayout,n=a._size,o,s,l;j5.init({element:e.node(),gd:r,prepFn:function(){o=e.attr("transform"),g9(e)},moveFn:function(u,c){e.attr("transform",o+Su(u,c)),s=j5.align((i?t._uFrac:t._vFrac)+u/n.w,i?t._thickFrac:t._lenFrac,0,1,t.xanchor),l=j5.align((i?t._vFrac:1-t._uFrac)-c/n.h,i?t._lenFrac:t._thickFrac,0,1,t.yanchor);var h=j5.getCursor(s,l,t.xanchor,t.yanchor);g9(e,h)},doneFn:function(){if(g9(e),s!==void 0&&l!==void 0){var u={};u[t._propPrefix+"x"]=s,u[t._propPrefix+"y"]=l,t._traceIndex!==void 0?CQ.call("_guiRestyle",r,u,t._traceIndex):CQ.call("_guiRelayout",r,u)}}})}function dFe(e,t,r){var i=t._levels,a=[],n=[],o,s,l=i.end+i.size/100,u=i.size,c=1.001*r[0]-.001*r[1],h=1.001*r[1]-.001*r[0];for(s=0;s<1e5&&(o=i.start+s*u,!(u>0?o>=l:o<=l));s++)o>c&&o0?o>=l:o<=l));s++)o>r[0]&&o{"use strict";qQ.exports={moduleType:"component",name:"colorbar",attributes:ib(),supplyDefaults:v8(),draw:BQ().draw,hasColorbar:n8()}});var VQ=X((cat,NQ)=>{"use strict";NQ.exports={moduleType:"component",name:"legend",layoutAttributes:fM(),supplyLayoutDefaults:pM(),draw:CM(),style:DM()}});var GQ=X((hat,UQ)=>{"use strict";UQ.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"}}});var $Q=X((fat,jQ)=>{"use strict";jQ.exports={moduleType:"locale",name:"en-US",dictionary:{"Click to enter Colorscale title":"Click to enter Colorscale title"},format:{date:"%m/%d/%Y"}}});var b9=X((dat,WQ)=>{"use strict";var mFe=mr(),YQ=et(),x9=YQ.extendFlat,HQ=YQ.extendDeep;function ZQ(e){var t;switch(e){case"themes__thumb":t={autosize:!0,width:150,height:150,title:{text:""},showlegend:!1,margin:{l:5,r:5,t:5,b:5,pad:0},annotations:[]};break;case"thumbnail":t={title:{text:""},showlegend:!1,borderwidth:0,bordercolor:"",margin:{l:1,r:1,t:1,b:1,pad:0},annotations:[]};break;default:t={}}return t}function vFe(e){var t=["xaxis","yaxis","zaxis"];return t.indexOf(e.slice(0,5))>-1}WQ.exports=function(t,r){var i,a=t.data,n=t.layout,o=HQ([],a),s=HQ({},n,ZQ(r.tileClass)),l=t._context||{};if(r.width&&(s.width=r.width),r.height&&(s.height=r.height),r.tileClass==="thumbnail"||r.tileClass==="themes__thumb"){s.annotations=[];var u=Object.keys(s);for(i=0;i{"use strict";var gFe=jx().EventEmitter,yFe=mr(),_Fe=et(),XQ=gd(),xFe=b9(),bFe=W3(),wFe=X3();function AFe(e,t){var r=new gFe,i=xFe(e,{format:"png"}),a=i.gd;a.style.position="absolute",a.style.left="-5000px",document.body.appendChild(a);function n(){var s=XQ.getDelay(a._fullLayout);setTimeout(function(){var l=bFe(a),u=document.createElement("canvas");u.id=_Fe.randstr(),r=wFe({format:t.format,width:a._fullLayout.width,height:a._fullLayout.height,canvas:u,emitter:r,svg:l}),r.clean=function(){a&&document.body.removeChild(a)}},s)}var o=XQ.getRedrawFunc(a);return yFe.call("_doPlot",a,i.data,i.layout,i.config).then(o).then(n).catch(function(s){r.emit("error",s)}),r}KQ.exports=AFe});var tee=X((mat,eee)=>{"use strict";var QQ=gd(),TFe={getDelay:QQ.getDelay,getRedrawFunc:QQ.getRedrawFunc,clone:b9(),toSVG:W3(),svgToImg:X3(),toImage:JQ(),downloadImage:YD()};eee.exports=TFe});var iee=X(hh=>{"use strict";hh.version=uv().version;sI();Hq();var MFe=mr(),dy=hh.register=MFe.register,A9=sY(),ree=Object.keys(A9);for(H5=0;H5{"use strict";aee.exports=iee()});var T9=X((yat,cee)=>{"use strict";var{hovertemplateAttrs:DFe,texttemplateAttrs:SFe,templatefallbackAttrs:oee}=tc(),EFe=E3(),wc=nh(),kFe=Go(),see=eh(),CFe=Zc().dash,kd=Ta().extendFlat,FFe=Is().overrideAll,Ll=wc.marker,lee=wc.line,uee=Ll.line;cee.exports=FFe({lon:{valType:"data_array"},lat:{valType:"data_array"},locations:{valType:"data_array"},locationmode:{valType:"enumerated",values:["ISO-3","USA-states","country names","geojson-id"],dflt:"ISO-3"},geojson:{valType:"any",editType:"calc"},featureidkey:{valType:"string",editType:"calc",dflt:"id"},mode:kd({},wc.mode,{dflt:"markers"}),text:kd({},wc.text,{}),texttemplate:SFe({editType:"plot"},{keys:["lat","lon","location","text"]}),texttemplatefallback:oee({editType:"plot"}),hovertext:kd({},wc.hovertext,{}),textfont:wc.textfont,textposition:wc.textposition,line:{color:lee.color,width:lee.width,dash:CFe},connectgaps:wc.connectgaps,marker:kd({symbol:Ll.symbol,opacity:Ll.opacity,angle:Ll.angle,angleref:kd({},Ll.angleref,{values:["previous","up","north"]}),standoff:Ll.standoff,size:Ll.size,sizeref:Ll.sizeref,sizemin:Ll.sizemin,sizemode:Ll.sizemode,colorbar:Ll.colorbar,line:kd({width:uee.width,dash:uee.dash},see("marker.line")),gradient:Ll.gradient},see("marker")),fill:{valType:"enumerated",values:["none","toself"],dflt:"none"},fillcolor:EFe(),selected:wc.selected,unselected:wc.unselected,hoverinfo:kd({},kFe.hoverinfo,{flags:["lon","lat","location","text","name"]}),hovertemplate:DFe(),hovertemplatefallback:oee()},"calc","nested")});var fee=X((_at,hee)=>{"use strict";hee.exports={version:8,name:"orto",metadata:{"maputnik:renderer":"mlgljs"},center:[1.537786,41.837539],zoom:12,bearing:0,pitch:0,light:{anchor:"viewport",color:"white",intensity:.4,position:[1.15,45,30]},sources:{ortoEsri:{type:"raster",tiles:["https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}"],tileSize:256,maxzoom:18,attribution:"ESRI © ESRI"},ortoInstaMaps:{type:"raster",tiles:["https://tilemaps.icgc.cat/mapfactory/wmts/orto_8_12/CAT3857/{z}/{x}/{y}.png"],tileSize:256,maxzoom:13},ortoICGC:{type:"raster",tiles:["https://geoserveis.icgc.cat/icc_mapesmultibase/noutm/wmts/orto/GRID3857/{z}/{x}/{y}.jpeg"],tileSize:256,minzoom:13.1,maxzoom:20},openmaptiles:{type:"vector",url:"https://geoserveis.icgc.cat/contextmaps/basemap.json"}},sprite:"https://geoserveis.icgc.cat/contextmaps/sprites/sprite@1",glyphs:"https://geoserveis.icgc.cat/contextmaps/glyphs/{fontstack}/{range}.pbf",layers:[{id:"background",type:"background",paint:{"background-color":"#F4F9F4"}},{id:"ortoEsri",type:"raster",source:"ortoEsri",maxzoom:16,layout:{visibility:"visible"}},{id:"ortoICGC",type:"raster",source:"ortoICGC",minzoom:13.1,maxzoom:19,layout:{visibility:"visible"}},{id:"ortoInstaMaps",type:"raster",source:"ortoInstaMaps",maxzoom:13,layout:{visibility:"visible"}},{id:"waterway_tunnel",type:"line",source:"openmaptiles","source-layer":"waterway",minzoom:14,filter:["all",["in","class","river","stream","canal"],["==","brunnel","tunnel"]],layout:{"line-cap":"round"},paint:{"line-color":"#a0c8f0","line-width":{base:1.3,stops:[[13,.5],[20,6]]},"line-dasharray":[2,4]}},{id:"waterway-other",type:"line",metadata:{"mapbox:group":"1444849382550.77"},source:"openmaptiles","source-layer":"waterway",filter:["!in","class","canal","river","stream"],layout:{"line-cap":"round"},paint:{"line-color":"#a0c8f0","line-width":{base:1.3,stops:[[13,.5],[20,2]]}}},{id:"waterway-stream-canal",type:"line",metadata:{"mapbox:group":"1444849382550.77"},source:"openmaptiles","source-layer":"waterway",filter:["all",["in","class","canal","stream"],["!=","brunnel","tunnel"]],layout:{"line-cap":"round"},paint:{"line-color":"#a0c8f0","line-width":{base:1.3,stops:[[13,.5],[20,6]]}}},{id:"waterway-river",type:"line",metadata:{"mapbox:group":"1444849382550.77"},source:"openmaptiles","source-layer":"waterway",filter:["all",["==","class","river"],["!=","brunnel","tunnel"]],layout:{"line-cap":"round"},paint:{"line-color":"#a0c8f0","line-width":{base:1.2,stops:[[10,.8],[20,4]]},"line-opacity":.5}},{id:"water-offset",type:"fill",metadata:{"mapbox:group":"1444849382550.77"},source:"openmaptiles","source-layer":"water",maxzoom:8,filter:["==","$type","Polygon"],layout:{visibility:"visible"},paint:{"fill-opacity":0,"fill-color":"#a0c8f0","fill-translate":{base:1,stops:[[6,[2,0]],[8,[0,0]]]}}},{id:"water",type:"fill",metadata:{"mapbox:group":"1444849382550.77"},source:"openmaptiles","source-layer":"water",layout:{visibility:"visible"},paint:{"fill-color":"hsl(210, 67%, 85%)","fill-opacity":0}},{id:"water-pattern",type:"fill",metadata:{"mapbox:group":"1444849382550.77"},source:"openmaptiles","source-layer":"water",layout:{visibility:"visible"},paint:{"fill-translate":[0,2.5],"fill-pattern":"wave","fill-opacity":1}},{id:"landcover-ice-shelf",type:"fill",metadata:{"mapbox:group":"1444849382550.77"},source:"openmaptiles","source-layer":"landcover",filter:["==","subclass","ice_shelf"],layout:{visibility:"visible"},paint:{"fill-color":"#fff","fill-opacity":{base:1,stops:[[0,.9],[10,.3]]}}},{id:"tunnel-service-track-casing",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["in","class","service","track"]],layout:{"line-join":"round"},paint:{"line-color":"#cfcdca","line-dasharray":[.5,.25],"line-width":{base:1.2,stops:[[15,1],[16,4],[20,11]]}}},{id:"tunnel-minor-casing",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["==","class","minor"]],layout:{"line-join":"round"},paint:{"line-color":"#cfcdca","line-opacity":{stops:[[12,0],[12.5,1]]},"line-width":{base:1.2,stops:[[12,.5],[13,1],[14,4],[20,15]]}}},{id:"tunnel-secondary-tertiary-casing",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["in","class","secondary","tertiary"]],layout:{"line-join":"round"},paint:{"line-color":"#e9ac77","line-opacity":1,"line-width":{base:1.2,stops:[[8,1.5],[20,17]]}}},{id:"tunnel-trunk-primary-casing",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["in","class","primary","trunk"]],layout:{"line-join":"round"},paint:{"line-color":"#e9ac77","line-width":{base:1.2,stops:[[5,.4],[6,.6],[7,1.5],[20,22]]},"line-opacity":.7}},{id:"tunnel-motorway-casing",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["==","class","motorway"]],layout:{"line-join":"round",visibility:"visible"},paint:{"line-color":"#e9ac77","line-dasharray":[.5,.25],"line-width":{base:1.2,stops:[[5,.4],[6,.6],[7,1.5],[20,22]]},"line-opacity":.5}},{id:"tunnel-path",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["==","brunnel","tunnel"],["==","class","path"]]],paint:{"line-color":"#cba","line-dasharray":[1.5,.75],"line-width":{base:1.2,stops:[[15,1.2],[20,4]]}}},{id:"tunnel-service-track",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["in","class","service","track"]],layout:{"line-join":"round"},paint:{"line-color":"#fff","line-width":{base:1.2,stops:[[15.5,0],[16,2],[20,7.5]]}}},{id:"tunnel-minor",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["==","class","minor_road"]],layout:{"line-join":"round"},paint:{"line-color":"#fff","line-opacity":1,"line-width":{base:1.2,stops:[[13.5,0],[14,2.5],[20,11.5]]}}},{id:"tunnel-secondary-tertiary",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["in","class","secondary","tertiary"]],layout:{"line-join":"round"},paint:{"line-color":"#fff4c6","line-width":{base:1.2,stops:[[6.5,0],[7,.5],[20,10]]}}},{id:"tunnel-trunk-primary",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["in","class","primary","trunk"]],layout:{"line-join":"round"},paint:{"line-color":"#fff4c6","line-width":{base:1.2,stops:[[6.5,0],[7,.5],[20,18]]},"line-opacity":.5}},{id:"tunnel-motorway",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["==","class","motorway"]],layout:{"line-join":"round",visibility:"visible"},paint:{"line-color":"#ffdaa6","line-width":{base:1.2,stops:[[6.5,0],[7,.5],[20,18]]},"line-opacity":.5}},{id:"tunnel-railway",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["==","class","rail"]],paint:{"line-color":"#bbb","line-width":{base:1.4,stops:[[14,.4],[15,.75],[20,2]]},"line-dasharray":[2,2]}},{id:"ferry",type:"line",source:"openmaptiles","source-layer":"transportation",filter:["all",["in","class","ferry"]],layout:{"line-join":"round",visibility:"visible"},paint:{"line-color":"rgba(108, 159, 182, 1)","line-width":1.1,"line-dasharray":[2,2]}},{id:"aeroway-taxiway-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"aeroway",minzoom:12,filter:["all",["in","class","taxiway"]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"rgba(153, 153, 153, 1)","line-width":{base:1.5,stops:[[11,2],[17,12]]},"line-opacity":1}},{id:"aeroway-runway-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"aeroway",minzoom:12,filter:["all",["in","class","runway"]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"rgba(153, 153, 153, 1)","line-width":{base:1.5,stops:[[11,5],[17,55]]},"line-opacity":1}},{id:"aeroway-taxiway",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"aeroway",minzoom:4,filter:["all",["in","class","taxiway"],["==","$type","LineString"]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"rgba(255, 255, 255, 1)","line-width":{base:1.5,stops:[[11,1],[17,10]]},"line-opacity":{base:1,stops:[[11,0],[12,1]]}}},{id:"aeroway-runway",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"aeroway",minzoom:4,filter:["all",["in","class","runway"],["==","$type","LineString"]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"rgba(255, 255, 255, 1)","line-width":{base:1.5,stops:[[11,4],[17,50]]},"line-opacity":{base:1,stops:[[11,0],[12,1]]}}},{id:"highway-motorway-link-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",minzoom:12,filter:["all",["!in","brunnel","bridge","tunnel"],["==","class","motorway_link"]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"#e9ac77","line-opacity":1,"line-width":{base:1.2,stops:[[12,1],[13,3],[14,4],[20,15]]}}},{id:"highway-link-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",minzoom:13,filter:["all",["!in","brunnel","bridge","tunnel"],["in","class","primary_link","secondary_link","tertiary_link","trunk_link"]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"#e9ac77","line-opacity":1,"line-width":{base:1.2,stops:[[12,1],[13,3],[14,4],[20,15]]}}},{id:"highway-minor-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["!=","brunnel","tunnel"],["in","class","minor","service","track"]]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"#cfcdca","line-opacity":{stops:[[12,0],[12.5,0]]},"line-width":{base:1.2,stops:[[12,.5],[13,1],[14,4],[20,15]]}}},{id:"highway-secondary-tertiary-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["!in","brunnel","bridge","tunnel"],["in","class","secondary","tertiary"]],layout:{"line-cap":"butt","line-join":"round",visibility:"visible"},paint:{"line-color":"#e9ac77","line-opacity":.5,"line-width":{base:1.2,stops:[[8,1.5],[20,17]]}}},{id:"highway-primary-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",minzoom:5,filter:["all",["!in","brunnel","bridge","tunnel"],["in","class","primary"]],layout:{"line-cap":"butt","line-join":"round",visibility:"visible"},paint:{"line-color":"#e9ac77","line-opacity":{stops:[[7,0],[8,.6]]},"line-width":{base:1.2,stops:[[7,0],[8,.6],[9,1.5],[20,22]]}}},{id:"highway-trunk-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",minzoom:5,filter:["all",["!in","brunnel","bridge","tunnel"],["in","class","trunk"]],layout:{"line-cap":"butt","line-join":"round",visibility:"visible"},paint:{"line-color":"#e9ac77","line-opacity":{stops:[[5,0],[6,.5]]},"line-width":{base:1.2,stops:[[5,0],[6,.6],[7,1.5],[20,22]]}}},{id:"highway-motorway-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",minzoom:4,filter:["all",["!in","brunnel","bridge","tunnel"],["==","class","motorway"]],layout:{"line-cap":"butt","line-join":"round",visibility:"visible"},paint:{"line-color":"#e9ac77","line-width":{base:1.2,stops:[[4,0],[5,.4],[6,.6],[7,1.5],[20,22]]},"line-opacity":{stops:[[4,0],[5,.5]]}}},{id:"highway-path",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["!in","brunnel","bridge","tunnel"],["==","class","path"]]],paint:{"line-color":"#cba","line-dasharray":[1.5,.75],"line-width":{base:1.2,stops:[[15,1.2],[20,4]]}}},{id:"highway-motorway-link",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",minzoom:12,filter:["all",["!in","brunnel","bridge","tunnel"],["==","class","motorway_link"]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"#fc8","line-width":{base:1.2,stops:[[12.5,0],[13,1.5],[14,2.5],[20,11.5]]}}},{id:"highway-link",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",minzoom:13,filter:["all",["!in","brunnel","bridge","tunnel"],["in","class","primary_link","secondary_link","tertiary_link","trunk_link"]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"#fea","line-width":{base:1.2,stops:[[12.5,0],[13,1.5],[14,2.5],[20,11.5]]}}},{id:"highway-minor",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["!=","brunnel","tunnel"],["in","class","minor","service","track"]]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"#fff","line-opacity":.5,"line-width":{base:1.2,stops:[[13.5,0],[14,2.5],[20,11.5]]}}},{id:"highway-secondary-tertiary",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["!in","brunnel","bridge","tunnel"],["in","class","secondary","tertiary"]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"#fea","line-width":{base:1.2,stops:[[6.5,0],[8,.5],[20,13]]},"line-opacity":.5}},{id:"highway-primary",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["!in","brunnel","bridge","tunnel"],["in","class","primary"]]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"#fea","line-width":{base:1.2,stops:[[8.5,0],[9,.5],[20,18]]},"line-opacity":0}},{id:"highway-trunk",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["!in","brunnel","bridge","tunnel"],["in","class","trunk"]]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"#fea","line-width":{base:1.2,stops:[[6.5,0],[7,.5],[20,18]]},"line-opacity":.5}},{id:"highway-motorway",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",minzoom:5,filter:["all",["==","$type","LineString"],["all",["!in","brunnel","bridge","tunnel"],["==","class","motorway"]]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"#fc8","line-width":{base:1.2,stops:[[6.5,0],[7,.5],[20,18]]},"line-opacity":.5}},{id:"railway-transit",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["==","class","transit"],["!in","brunnel","tunnel"]]],layout:{visibility:"visible"},paint:{"line-color":"hsla(0, 0%, 73%, 0.77)","line-width":{base:1.4,stops:[[14,.4],[20,1]]}}},{id:"railway-transit-hatching",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["==","class","transit"],["!in","brunnel","tunnel"]]],layout:{visibility:"visible"},paint:{"line-color":"hsla(0, 0%, 73%, 0.68)","line-dasharray":[.2,8],"line-width":{base:1.4,stops:[[14.5,0],[15,2],[20,6]]}}},{id:"railway-service",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["==","class","rail"],["has","service"]]],paint:{"line-color":"hsla(0, 0%, 73%, 0.77)","line-width":{base:1.4,stops:[[14,.4],[20,1]]}}},{id:"railway-service-hatching",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["==","class","rail"],["has","service"]]],layout:{visibility:"visible"},paint:{"line-color":"hsla(0, 0%, 73%, 0.68)","line-dasharray":[.2,8],"line-width":{base:1.4,stops:[[14.5,0],[15,2],[20,6]]}}},{id:"railway",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["!has","service"],["!in","brunnel","bridge","tunnel"],["==","class","rail"]]],paint:{"line-color":"#bbb","line-width":{base:1.4,stops:[[14,.4],[15,.75],[20,2]]}}},{id:"railway-hatching",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["!has","service"],["!in","brunnel","bridge","tunnel"],["==","class","rail"]]],paint:{"line-color":"#bbb","line-dasharray":[.2,8],"line-width":{base:1.4,stops:[[14.5,0],[15,3],[20,8]]}}},{id:"bridge-motorway-link-casing",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["==","class","motorway_link"]],layout:{"line-join":"round"},paint:{"line-color":"#e9ac77","line-opacity":1,"line-width":{base:1.2,stops:[[12,1],[13,3],[14,4],[20,15]]}}},{id:"bridge-link-casing",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["in","class","primary_link","secondary_link","tertiary_link","trunk_link"]],layout:{"line-join":"round"},paint:{"line-color":"#e9ac77","line-opacity":1,"line-width":{base:1.2,stops:[[12,1],[13,3],[14,4],[20,15]]}}},{id:"bridge-secondary-tertiary-casing",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["in","class","secondary","tertiary"]],layout:{"line-join":"round"},paint:{"line-color":"#e9ac77","line-opacity":1,"line-width":{base:1.2,stops:[[8,1.5],[20,28]]}}},{id:"bridge-trunk-primary-casing",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["in","class","primary","trunk"]],layout:{"line-join":"round"},paint:{"line-color":"hsl(28, 76%, 67%)","line-width":{base:1.2,stops:[[5,.4],[6,.6],[7,1.5],[20,26]]}}},{id:"bridge-motorway-casing",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["==","class","motorway"]],layout:{"line-join":"round"},paint:{"line-color":"#e9ac77","line-width":{base:1.2,stops:[[5,.4],[6,.6],[7,1.5],[20,22]]},"line-opacity":.5}},{id:"bridge-path-casing",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["==","brunnel","bridge"],["==","class","path"]]],paint:{"line-color":"#f8f4f0","line-width":{base:1.2,stops:[[15,1.2],[20,18]]}}},{id:"bridge-path",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["==","brunnel","bridge"],["==","class","path"]]],paint:{"line-color":"#cba","line-width":{base:1.2,stops:[[15,1.2],[20,4]]},"line-dasharray":[1.5,.75]}},{id:"bridge-motorway-link",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["==","class","motorway_link"]],layout:{"line-join":"round"},paint:{"line-color":"#fc8","line-width":{base:1.2,stops:[[12.5,0],[13,1.5],[14,2.5],[20,11.5]]}}},{id:"bridge-link",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["in","class","primary_link","secondary_link","tertiary_link","trunk_link"]],layout:{"line-join":"round"},paint:{"line-color":"#fea","line-width":{base:1.2,stops:[[12.5,0],[13,1.5],[14,2.5],[20,11.5]]}}},{id:"bridge-secondary-tertiary",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["in","class","secondary","tertiary"]],layout:{"line-join":"round"},paint:{"line-color":"#fea","line-width":{base:1.2,stops:[[6.5,0],[7,.5],[20,20]]}}},{id:"bridge-trunk-primary",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["in","class","primary","trunk"]],layout:{"line-join":"round"},paint:{"line-color":"#fea","line-width":{base:1.2,stops:[[6.5,0],[7,.5],[20,18]]}}},{id:"bridge-motorway",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["==","class","motorway"]],layout:{"line-join":"round"},paint:{"line-color":"#fc8","line-width":{base:1.2,stops:[[6.5,0],[7,.5],[20,18]]},"line-opacity":.5}},{id:"bridge-railway",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["==","class","rail"]],paint:{"line-color":"#bbb","line-width":{base:1.4,stops:[[14,.4],[15,.75],[20,2]]}}},{id:"bridge-railway-hatching",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["==","class","rail"]],paint:{"line-color":"#bbb","line-dasharray":[.2,8],"line-width":{base:1.4,stops:[[14.5,0],[15,3],[20,8]]}}},{id:"cablecar",type:"line",source:"openmaptiles","source-layer":"transportation",minzoom:13,filter:["==","class","cable_car"],layout:{visibility:"visible","line-cap":"round"},paint:{"line-color":"hsl(0, 0%, 70%)","line-width":{base:1,stops:[[11,1],[19,2.5]]}}},{id:"cablecar-dash",type:"line",source:"openmaptiles","source-layer":"transportation",minzoom:13,filter:["==","class","cable_car"],layout:{visibility:"visible","line-cap":"round"},paint:{"line-color":"hsl(0, 0%, 70%)","line-width":{base:1,stops:[[11,3],[19,5.5]]},"line-dasharray":[2,3]}},{id:"boundary-land-level-4",type:"line",source:"openmaptiles","source-layer":"boundary",filter:["all",[">=","admin_level",4],["<=","admin_level",8],["!=","maritime",1]],layout:{"line-join":"round"},paint:{"line-color":"#9e9cab","line-dasharray":[3,1,1,1],"line-width":{base:1.4,stops:[[4,.4],[5,1],[12,3]]},"line-opacity":.6}},{id:"boundary-land-level-2",type:"line",source:"openmaptiles","source-layer":"boundary",filter:["all",["==","admin_level",2],["!=","maritime",1],["!=","disputed",1]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"hsl(248, 7%, 66%)","line-width":{base:1,stops:[[0,.6],[4,1.4],[5,2],[12,2]]}}},{id:"boundary-land-disputed",type:"line",source:"openmaptiles","source-layer":"boundary",filter:["all",["!=","maritime",1],["==","disputed",1]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"hsl(248, 7%, 70%)","line-dasharray":[1,3],"line-width":{base:1,stops:[[0,.6],[4,1.4],[5,2],[12,8]]}}},{id:"boundary-water",type:"line",source:"openmaptiles","source-layer":"boundary",filter:["all",["in","admin_level",2,4],["==","maritime",1]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"rgba(154, 189, 214, 1)","line-width":{base:1,stops:[[0,.6],[4,1],[5,1],[12,1]]},"line-opacity":{stops:[[6,0],[10,0]]}}},{id:"waterway-name",type:"symbol",source:"openmaptiles","source-layer":"waterway",minzoom:13,filter:["all",["==","$type","LineString"],["has","name"]],layout:{"text-font":["Noto Sans Italic"],"text-size":14,"text-field":"{name:latin} {name:nonlatin}","text-max-width":5,"text-rotation-alignment":"map","symbol-placement":"line","text-letter-spacing":.2,"symbol-spacing":350},paint:{"text-color":"#74aee9","text-halo-width":1.5,"text-halo-color":"rgba(255,255,255,0.7)"}},{id:"water-name-lakeline",type:"symbol",source:"openmaptiles","source-layer":"water_name",filter:["==","$type","LineString"],layout:{"text-font":["Noto Sans Italic"],"text-size":14,"text-field":`{name:latin} +"use strict";var Plotly=(()=>{var M0e=Object.create;var sv=Object.defineProperty,D0e=Object.defineProperties,S0e=Object.getOwnPropertyDescriptor,E0e=Object.getOwnPropertyDescriptors,k0e=Object.getOwnPropertyNames,P_=Object.getOwnPropertySymbols,C0e=Object.getPrototypeOf,MA=Object.prototype.hasOwnProperty,uI=Object.prototype.propertyIsEnumerable;var lI=(e,t,r)=>t in e?sv(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,nr=(e,t)=>{for(var r in t||(t={}))MA.call(t,r)&&lI(e,r,t[r]);if(P_)for(var r of P_(t))uI.call(t,r)&&lI(e,r,t[r]);return e},Yr=(e,t)=>D0e(e,E0e(t));var cI=(e,t)=>{var r={};for(var i in e)MA.call(e,i)&&t.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&P_)for(var i of P_(e))t.indexOf(i)<0&&uI.call(e,i)&&(r[i]=e[i]);return r};var Gi=(e,t,r)=>()=>{if(r)throw r[0];try{return e&&(t=e(e=0)),t}catch(i){throw r=[i],i}};var X=(e,t)=>()=>{try{return t||e((t={exports:{}}).exports,t),t.exports}catch(r){throw t=0,r}},Yi=(e,t)=>{for(var r in t)sv(e,r,{get:t[r],enumerable:!0})},hI=(e,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of k0e(t))!MA.call(e,a)&&a!==r&&sv(e,a,{get:()=>t[a],enumerable:!(i=S0e(t,a))||i.enumerable});return e};var DA=(e,t,r)=>(r=e!=null?M0e(C0e(e)):{},hI(t||!e||!e.__esModule?sv(r,"default",{value:e,enumerable:!0}):r,e)),lt=e=>hI(sv({},"__esModule",{value:!0}),e);var Kt=(e,t,r)=>new Promise((i,a)=>{var n=l=>{try{s(r.next(l))}catch(u){a(u)}},o=l=>{try{s(r.throw(l))}catch(u){a(u)}},s=l=>l.done?i(l.value):Promise.resolve(l.value).then(n,o);s((r=r.apply(e,t)).next())});var lv=X(fI=>{"use strict";fI.version="4.2.0"});var pI=X((dI,I_)=>{(function(t,r,i){r[t]=r[t]||i(),typeof I_!="undefined"&&I_.exports&&(I_.exports=r[t])})("Promise",typeof window!="undefined"?window:dI,function(){"use strict";var t,r,i,a=Object.prototype.toString,n=typeof setImmediate!="undefined"?function(x){return setImmediate(x)}:setTimeout;try{Object.defineProperty({},"x",{}),t=function(x,b,_,A){return Object.defineProperty(x,b,{value:_,writable:!0,configurable:A!==!1})}}catch(y){t=function(b,_,A){return b[_]=A,b}}i=(function(){var x,b,_;function A(T,M){this.fn=T,this.self=M,this.next=void 0}return{add:function(M,S){_=new A(M,S),b?b.next=_:x=_,b=_,_=void 0},drain:function(){var M=x;for(x=b=r=void 0;M;)M.fn.call(M.self),M=M.next}}})();function o(y,x){i.add(y,x),r||(r=n(i.drain))}function s(y){var x,b=typeof y;return y!=null&&(b=="object"||b=="function")&&(x=y.then),typeof x=="function"?x:!1}function l(){for(var y=0;y0&&o(l,b))}catch(_){h.call(new d(b),_)}}}function h(y){var x=this;x.triggered||(x.triggered=!0,x.def&&(x=x.def),x.msg=y,x.state=2,x.chain.length>0&&o(l,x))}function f(y,x,b,_){for(var A=0;A{(function(){var e={version:"3.8.2"},t=[].slice,r=function(v){return t.call(v)},i=self.document;function a(v){return v&&(v.ownerDocument||v.document||v).documentElement}function n(v){return v&&(v.ownerDocument&&v.ownerDocument.defaultView||v.document&&v||v.defaultView)}if(i)try{r(i.documentElement.childNodes)[0].nodeType}catch(v){r=function(w){for(var D=w.length,E=new Array(D);D--;)E[D]=w[D];return E}}if(Date.now||(Date.now=function(){return+new Date}),i)try{i.createElement("DIV").style.setProperty("opacity",0,"")}catch(v){var o=this.Element.prototype,s=o.setAttribute,l=o.setAttributeNS,u=this.CSSStyleDeclaration.prototype,c=u.setProperty;o.setAttribute=function(w,D){s.call(this,w,D+"")},o.setAttributeNS=function(w,D,E){l.call(this,w,D,E+"")},u.setProperty=function(w,D,E){c.call(this,w,D+"",E)}}e.ascending=h;function h(v,w){return vw?1:v>=w?0:NaN}e.descending=function(v,w){return wv?1:w>=v?0:NaN},e.min=function(v,w){var D=-1,E=v.length,C,F;if(arguments.length===1){for(;++D=F){C=F;break}for(;++DF&&(C=F)}else{for(;++D=F){C=F;break}for(;++DF&&(C=F)}return C},e.max=function(v,w){var D=-1,E=v.length,C,F;if(arguments.length===1){for(;++D=F){C=F;break}for(;++DC&&(C=F)}else{for(;++D=F){C=F;break}for(;++DC&&(C=F)}return C},e.extent=function(v,w){var D=-1,E=v.length,C,F,N;if(arguments.length===1){for(;++D=F){C=N=F;break}for(;++DF&&(C=F),N=F){C=N=F;break}for(;++DF&&(C=F),N1)return N/(U-1)},e.deviation=function(){var v=e.variance.apply(this,arguments);return v&&Math.sqrt(v)};function p(v){return{left:function(w,D,E,C){for(arguments.length<3&&(E=0),arguments.length<4&&(C=w.length);E>>1;v(w[F],D)<0?E=F+1:C=F}return E},right:function(w,D,E,C){for(arguments.length<3&&(E=0),arguments.length<4&&(C=w.length);E>>1;v(w[F],D)>0?C=F:E=F+1}return E}}}var m=p(h);e.bisectLeft=m.left,e.bisect=e.bisectRight=m.right,e.bisector=function(v){return p(v.length===1?function(w,D){return h(v(w),D)}:v)},e.shuffle=function(v,w,D){(E=arguments.length)<3&&(D=v.length,E<2&&(w=0));for(var E=D-w,C,F;E;)F=Math.random()*E--|0,C=v[E+w],v[E+w]=v[F+w],v[F+w]=C;return v},e.permute=function(v,w){for(var D=w.length,E=new Array(D);D--;)E[D]=v[w[D]];return E},e.pairs=function(v){for(var w=0,D=v.length-1,E,C=v[0],F=new Array(D<0?0:D);w=0;)for(N=v[w],D=N.length;--D>=0;)F[--C]=N[D];return F};var y=Math.abs;e.range=function(v,w,D){if(arguments.length<3&&(D=1,arguments.length<2&&(w=v,v=0)),(w-v)/D===1/0)throw new Error("infinite range");var E=[],C=x(y(D)),F=-1,N;if(v*=C,w*=C,D*=C,D<0)for(;(N=v+D*++F)>w;)E.push(N/C);else for(;(N=v+D*++F)=w.length)return C?C.call(v,U):E?U.sort(E):U;for(var K=-1,ae=U.length,ne=w[W++],Ee,Le,le,_e=new _,be;++K=w.length)return R;var W=[],K=D[U++];return R.forEach(function(ae,ne){W.push({key:ae,values:N(ne,U)})}),K?W.sort(function(ae,ne){return K(ae.key,ne.key)}):W}return v.map=function(R,U){return F(U,R,0)},v.entries=function(R){return N(F(e.map,R,0),0)},v.key=function(R){return w.push(R),v},v.sortKeys=function(R){return D[w.length-1]=R,v},v.sortValues=function(R){return E=R,v},v.rollup=function(R){return C=R,v},v},e.set=function(v){var w=new z;if(v)for(var D=0,E=v.length;D=0&&(E=v.slice(D+1),v=v.slice(0,D)),v)return arguments.length<2?this[v].on(E):this[v].on(E,w);if(arguments.length===2){if(w==null)for(v in this)this.hasOwnProperty(v)&&this[v].on(E,null);return this}};function Y(v){var w=[],D=new _;function E(){for(var C=w,F=-1,N=C.length,R;++F=0&&(D=v.slice(0,w))!=="xmlns"&&(v=v.slice(w+1)),Re.hasOwnProperty(D)?{space:Re[D],local:v}:v}},te.attr=function(v,w){if(arguments.length<2){if(typeof v=="string"){var D=this.node();return v=e.ns.qualify(v),v.local?D.getAttributeNS(v.space,v.local):D.getAttribute(v)}for(w in v)this.each(Ve(w,v[w]));return this}return this.each(Ve(v,w))};function Ve(v,w){v=e.ns.qualify(v);function D(){this.removeAttribute(v)}function E(){this.removeAttributeNS(v.space,v.local)}function C(){this.setAttribute(v,w)}function F(){this.setAttributeNS(v.space,v.local,w)}function N(){var U=w.apply(this,arguments);U==null?this.removeAttribute(v):this.setAttribute(v,U)}function R(){var U=w.apply(this,arguments);U==null?this.removeAttributeNS(v.space,v.local):this.setAttributeNS(v.space,v.local,U)}return w==null?v.local?E:D:typeof w=="function"?v.local?R:N:v.local?F:C}function Me(v){return v.trim().replace(/\s+/g," ")}te.classed=function(v,w){if(arguments.length<2){if(typeof v=="string"){var D=this.node(),E=(v=Fe(v)).length,C=-1;if(w=D.classList){for(;++C=0;)(F=D[E])&&(C&&C!==F.nextSibling&&C.parentNode.insertBefore(F,C),C=F);return this},te.sort=function(v){v=Se.apply(this,arguments);for(var w=-1,D=this.length;++w=w&&(w=C+1);!(U=N[w])&&++w0&&(v=v.slice(0,C));var N=je.get(v);N&&(v=N,F=Qe);function R(){var K=this[E];K&&(this.removeEventListener(v,K,K.$),delete this[E])}function U(){var K=F(w,r(arguments));R.call(this),this.addEventListener(v,this[E]=K,K.$=D),K._=w}function W(){var K=new RegExp("^__on([^.]+)"+e.requote(v)+"$"),ae;for(var ne in this)if(ae=ne.match(K)){var Ee=this[ne];this.removeEventListener(ae[1],Ee,Ee.$),delete this[ne]}}return C?w?U:R:w?H:W}var je=e.map({mouseenter:"mouseover",mouseleave:"mouseout"});i&&je.forEach(function(v){"on"+v in i&&je.remove(v)});function nt(v,w){return function(D){var E=e.event;e.event=D,w[0]=this.__data__;try{v.apply(this,w)}finally{e.event=E}}}function Qe(v,w){var D=nt(v,w);return function(E){var C=this,F=E.relatedTarget;(!F||F!==C&&!(F.compareDocumentPosition(C)&8))&&D.call(C,E)}}var pt,st=0;function yt(v){var w=".dragsuppress-"+ ++st,D="click"+w,E=e.select(n(v)).on("touchmove"+w,oe).on("dragstart"+w,oe).on("selectstart"+w,oe);if(pt==null&&(pt="onselectstart"in v?!1:j(v.style,"userSelect")),pt){var C=a(v).style,F=C[pt];C[pt]="none"}return function(N){if(E.on(w,null),pt&&(C[pt]=F),N){var R=function(){E.on(D,null)};E.on(D,function(){oe(),R()},!0),setTimeout(R,0)}}}e.mouse=function(v){return We(v,pe())};var Ot=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;function We(v,w){w.changedTouches&&(w=w.changedTouches[0]);var D=v.ownerSVGElement||v;if(D.createSVGPoint){var E=D.createSVGPoint();if(Ot<0){var C=n(v);if(C.scrollX||C.scrollY){D=e.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var F=D[0][0].getScreenCTM();Ot=!(F.f||F.e),D.remove()}}return Ot?(E.x=w.pageX,E.y=w.pageY):(E.x=w.clientX,E.y=w.clientY),E=E.matrixTransform(v.getScreenCTM().inverse()),[E.x,E.y]}var N=v.getBoundingClientRect();return[w.clientX-N.left-v.clientLeft,w.clientY-N.top-v.clientTop]}e.touch=function(v,w,D){if(arguments.length<3&&(D=w,w=pe().changedTouches),w){for(var E=0,C=w.length,F;E0?1:v<0?-1:0}function Ar(v,w,D){return(w[0]-v[0])*(D[1]-v[1])-(w[1]-v[1])*(D[0]-v[0])}function ti(v){return v>1?0:v<-1?Dt:Math.acos(v)}function gi(v){return v>1?ce:v<-1?-ce:Math.asin(v)}function Li(v){return((v=Math.exp(v))-1/v)/2}function qr(v){return((v=Math.exp(v))+1/v)/2}function Cr(v){return((v=Math.exp(2*v))-1)/(v+1)}function ci(v){return(v=Math.sin(v/2))*v}var Or=Math.SQRT2,Ci=2,zi=4;e.interpolateZoom=function(v,w){var D=v[0],E=v[1],C=v[2],F=w[0],N=w[1],R=w[2],U=F-D,W=N-E,K=U*U+W*W,ae,ne;if(K0&&(kt=kt.transition().duration(N)),kt.call(ze.event)}function $t(){_e&&_e.domain(le.range().map(function(kt){return(kt-v.x)/v.k}).map(le.invert)),Ie&&Ie.domain(be.range().map(function(kt){return(kt-v.y)/v.k}).map(be.invert))}function Ht(kt){R++||kt({type:"zoomstart"})}function xr(kt){$t(),kt({type:"zoom",scale:v.k,translate:[v.x,v.y]})}function Xt(kt){--R||(kt({type:"zoomend"}),D=null)}function pr(){var kt=this,br=Le.of(kt,arguments),Mr=0,di=e.select(n(kt)).on(W,Vn).on(K,wo),Ta=Te(e.mouse(kt)),sn=yt(kt);E_.call(kt),Ht(br);function Vn(){Mr=1,Bt(e.mouse(kt),Ta),xr(br)}function wo(){di.on(W,null).on(K,null),sn(Mr),Xt(br)}}function fi(){var kt=this,br=Le.of(kt,arguments),Mr={},di=0,Ta,sn=".zoom-"+e.event.changedTouches[0].identifier,Vn="touchmove"+sn,wo="touchend"+sn,Yo=[],Ao=e.select(kt),us=yt(kt);cs(),Ht(br),Ao.on(U,null).on(ne,cs);function no(){var uu=e.touches(kt);return Ta=v.k,uu.forEach(function(Un){Un.identifier in Mr&&(Mr[Un.identifier]=Te(Un))}),uu}function cs(){var uu=e.event.target;e.select(uu).on(Vn,F0).on(wo,T0e),Yo.push(uu);for(var Un=e.event.changedTouches,pl=0,Xu=Un.length;pl1){var P0=ml[0],jh=ml[1],F_=P0[0]-jh[0],sI=P0[1]-jh[1];di=F_*F_+sI*sI}}function F0(){var uu=e.touches(kt),Un,pl,Xu,ml;E_.call(kt);for(var Fp=0,P0=uu.length;Fp1?1:w,D=D<0?0:D>1?1:D,C=D<=.5?D*(1+w):D+w-D*w,E=2*D-C;function F(R){return R>360?R-=360:R<0&&(R+=360),R<60?E+(C-E)*R/60:R<180?C:R<240?E+(C-E)*(240-R)/60:E}function N(R){return Math.round(F(R)*255)}return new la(N(v+120),N(v),N(v-120))}e.hcl=ai;function ai(v,w,D){return this instanceof ai?(this.h=+v,this.c=+w,void(this.l=+D)):arguments.length<2?v instanceof ai?new ai(v.h,v.c,v.l):v instanceof Kr?Jl(v.l,v.a,v.b):Jl((v=On((v=e.rgb(v)).r,v.g,v.b)).l,v.a,v.b):new ai(v,w,D)}var Ut=ai.prototype=new va;Ut.brighter=function(v){return new ai(this.h,this.c,Math.min(100,this.l+Hr*(arguments.length?v:1)))},Ut.darker=function(v){return new ai(this.h,this.c,Math.max(0,this.l-Hr*(arguments.length?v:1)))},Ut.rgb=function(){return Fi(this.h,this.c,this.l).rgb()};function Fi(v,w,D){return isNaN(v)&&(v=0),isNaN(w)&&(w=0),new Kr(D,Math.cos(v*=ke)*w,Math.sin(v)*w)}e.lab=Kr;function Kr(v,w,D){return this instanceof Kr?(this.l=+v,this.a=+w,void(this.b=+D)):arguments.length<2?v instanceof Kr?new Kr(v.l,v.a,v.b):v instanceof ai?Fi(v.h,v.c,v.l):On((v=la(v)).r,v.g,v.b):new Kr(v,w,D)}var Hr=18,Vi=.95047,to=1,ro=1.08883,pn=Kr.prototype=new va;pn.brighter=function(v){return new Kr(Math.min(100,this.l+Hr*(arguments.length?v:1)),this.a,this.b)},pn.darker=function(v){return new Kr(Math.max(0,this.l-Hr*(arguments.length?v:1)),this.a,this.b)},pn.rgb=function(){return Ui(this.l,this.a,this.b)};function Ui(v,w,D){var E=(v+16)/116,C=E+w/500,F=E-D/200;return C=sa(C)*Vi,E=sa(E)*to,F=sa(F)*ro,new la(rs(3.2404542*C-1.5371385*E-.4985314*F),rs(-.969266*C+1.8760108*E+.041556*F),rs(.0556434*C-.2040259*E+1.0572252*F))}function Jl(v,w,D){return v>0?new ai(Math.atan2(D,w)*Je,Math.sqrt(w*w+D*D),v):new ai(NaN,NaN,v)}function sa(v){return v>.206893034?v*v*v:(v-4/29)/7.787037}function Es(v){return v>.008856?Math.pow(v,1/3):7.787037*v+4/29}function rs(v){return Math.round(255*(v<=.00304?12.92*v:1.055*Math.pow(v,1/2.4)-.055))}e.rgb=la;function la(v,w,D){return this instanceof la?(this.r=~~v,this.g=~~w,void(this.b=~~D)):arguments.length<2?v instanceof la?new la(v.r,v.g,v.b):ol(""+v,la,Er):new la(v,w,D)}function Uo(v){return new la(v>>16,v>>8&255,v&255)}function ks(v){return Uo(v)+""}var _o=la.prototype=new va;_o.brighter=function(v){v=Math.pow(.7,arguments.length?v:1);var w=this.r,D=this.g,E=this.b,C=30;return!w&&!D&&!E?new la(C,C,C):(w&&w>4,E=E>>4|E,C=U&240,C=C>>4|C,F=U&15,F=F<<4|F):v.length===7&&(E=(U&16711680)>>16,C=(U&65280)>>8,F=U&255)),w(E,C,F))}function Ql(v,w,D){var E=Math.min(v/=255,w/=255,D/=255),C=Math.max(v,w,D),F=C-E,N,R,U=(C+E)/2;return F?(R=U<.5?F/(C+E):F/(2-C-E),v==C?N=(w-D)/F+(w0&&U<1?0:N),new At(N,R,U)}function On(v,w,D){v=sl(v),w=sl(w),D=sl(D);var E=Es((.4124564*v+.3575761*w+.1804375*D)/Vi),C=Es((.2126729*v+.7151522*w+.072175*D)/to),F=Es((.0193339*v+.119192*w+.9503041*D)/ro);return Kr(116*C-16,500*(E-C),200*(C-F))}function sl(v){return(v/=255)<=.04045?v/12.92:Math.pow((v+.055)/1.055,2.4)}function Cs(v){var w=parseFloat(v);return v.charAt(v.length-1)==="%"?Math.round(w*2.55):w}var Qt=e.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});Qt.forEach(function(v,w){Qt.set(v,Uo(w))});function Jt(v){return typeof v=="function"?v:function(){return v}}e.functor=Jt,e.xhr=Zr(q);function Zr(v){return function(w,D,E){return arguments.length===2&&typeof D=="function"&&(E=D,D=null),St(w,D,v,E)}}function St(v,w,D,E){var C={},F=e.dispatch("beforesend","progress","load","error"),N={},R=new XMLHttpRequest,U=null;self.XDomainRequest&&!("withCredentials"in R)&&/^(http(s)?:)?\/\//.test(v)&&(R=new XDomainRequest),"onload"in R?R.onload=R.onerror=W:R.onreadystatechange=function(){R.readyState>3&&W()};function W(){var K=R.status,ae;if(!K&&Mi(R)||K>=200&&K<300||K===304){try{ae=D.call(C,R)}catch(ne){F.error.call(C,ne);return}F.load.call(C,ae)}else F.error.call(C,R)}return R.onprogress=function(K){var ae=e.event;e.event=K;try{F.progress.call(C,R)}finally{e.event=ae}},C.header=function(K,ae){return K=(K+"").toLowerCase(),arguments.length<2?N[K]:(ae==null?delete N[K]:N[K]=ae+"",C)},C.mimeType=function(K){return arguments.length?(w=K==null?null:K+"",C):w},C.responseType=function(K){return arguments.length?(U=K,C):U},C.response=function(K){return D=K,C},["get","post"].forEach(function(K){C[K]=function(){return C.send.apply(C,[K].concat(r(arguments)))}}),C.send=function(K,ae,ne){if(arguments.length===2&&typeof ae=="function"&&(ne=ae,ae=null),R.open(K,v,!0),w!=null&&!("accept"in N)&&(N.accept=w+",*/*"),R.setRequestHeader)for(var Ee in N)R.setRequestHeader(Ee,N[Ee]);return w!=null&&R.overrideMimeType&&R.overrideMimeType(w),U!=null&&(R.responseType=U),ne!=null&&C.on("error",ne).on("load",function(Le){ne(null,Le)}),F.beforesend.call(C,R),R.send(ae==null?null:ae),C},C.abort=function(){return R.abort(),C},e.rebind(C,F,"on"),E==null?C:C.get(Za(E))}function Za(v){return v.length===1?function(w,D){v(w==null?D:null)}:v}function Mi(v){var w=v.responseType;return w&&w!=="text"?v.response:v.responseText}e.dsv=function(v,w){var D=new RegExp('["'+v+` +]`),E=v.charCodeAt(0);function C(W,K,ae){arguments.length<3&&(ae=K,K=null);var ne=St(W,w,K==null?F:N(K),ae);return ne.row=function(Ee){return arguments.length?ne.response((K=Ee)==null?F:N(Ee)):K},ne}function F(W){return C.parse(W.responseText)}function N(W){return function(K){return C.parse(K.responseText,W)}}C.parse=function(W,K){var ae;return C.parseRows(W,function(ne,Ee){if(ae)return ae(ne,Ee-1);var Le=function(le){for(var _e={},be=ne.length,Ie=0;Ie=Le)return ne;if(Ie)return Ie=!1,ae;var ht=le;if(W.charCodeAt(ht)===34){for(var Pt=ht;Pt++24?(isFinite(w)&&(clearTimeout(is),is=setTimeout(as,w)),mn=0):(mn=1,Fs(as))}e.timer.flush=function(){Uu(),jo()};function Uu(){for(var v=Date.now(),w=Xi;w;)v>=w.t&&w.c(v-w.t)&&(w.c=null),w=w.n;return v}function jo(){for(var v,w=Xi,D=1/0;w;)w.c?(w.t=0;--R)le.push(C[W[ae[R]][2]]);for(R=+Ee;R1&&Ar(v[D[E-2]],v[D[E-1]],v[C])<=0;)--E;D[E++]=C}return D.slice(0,E)}function Lh(v,w){return v[0]-w[0]||v[1]-w[1]}e.geom.polygon=function(v){return de(v,tu),v};var tu=e.geom.polygon.prototype=[];tu.area=function(){for(var v=-1,w=this.length,D,E=this[w-1],C=0;++vYe)R=R.L;else if(N=w-Rc(R,D),N>Ye){if(!R.R){E=R;break}R=R.R}else{F>-Ye?(E=R.P,C=R):N>-Ye?(E=R,C=R.N):E=C=R;break}var U=h0(v);if($o.insert(E,U),!(!E&&!C)){if(E===C){Ls(E),C=h0(E.site),$o.insert(U,C),U.edge=C.edge=io(E.site,U.site),os(E),os(C);return}if(!C){U.edge=io(E.site,U.site);return}Ls(E),Ls(C);var W=E.site,K=W.x,ae=W.y,ne=v.x-K,Ee=v.y-ae,Le=C.site,le=Le.x-K,_e=Le.y-ae,be=2*(ne*_e-Ee*le),Ie=ne*ne+Ee*Ee,ze=le*le+_e*_e,Te={x:(_e*Ie-Ee*ze)/be+K,y:(ne*ze-le*Ie)/be+ae};iu(C.edge,W,Le,Te),U.edge=io(W,v,null,Te),C.edge=io(v,Le,null,Te),os(E),os(C)}}function f0(v,w){var D=v.site,E=D.x,C=D.y,F=C-w;if(!F)return E;var N=v.P;if(!N)return-1/0;D=N.site;var R=D.x,U=D.y,W=U-w;if(!W)return R;var K=R-E,ae=1/F-1/W,ne=K/W;return ae?(-ne+Math.sqrt(ne*ne-2*ae*(K*K/(-2*W)-U+W/2+C-F/2)))/ae+E:(E+R)/2}function Rc(v,w){var D=v.N;if(D)return f0(D,w);var E=v.site;return E.y===w?E.x:1/0}function cl(v){this.site=v,this.edges=[]}cl.prototype.prepare=function(){for(var v=this.edges,w=v.length,D;w--;)D=v[w].edge,(!D.b||!D.a)&&v.splice(w,1);return v.sort(Bh),v.length};function kn(v){for(var w=v[0][0],D=v[1][0],E=v[0][1],C=v[1][1],F,N,R,U,W=Ps,K=W.length,ae,ne,Ee,Le,le,_e;K--;)if(ae=W[K],!(!ae||!ae.prepare()))for(Ee=ae.edges,Le=Ee.length,ne=0;neYe||y(U-N)>Ye)&&(Ee.splice(ne,0,new qc(gp(ae.site,_e,y(R-w)Ye?{x:w,y:y(F-w)Ye?{x:y(N-C)Ye?{x:D,y:y(F-D)Ye?{x:y(N-E)=-vt)){var ne=U*U+W*W,Ee=K*K+_e*_e,Le=(_e*ne-W*Ee)/ae,le=(U*Ee-K*ne)/ae,_e=le+R,be=ju.pop()||new Bc;be.arc=v,be.site=C,be.x=Le+N,be.y=_e+Math.sqrt(Le*Le+le*le),be.cy=_e,v.circle=be;for(var Ie=null,ze=ns._;ze;)if(be.y0)){if(le/=Ee,Ee<0){if(le0){if(le>ne)return;le>ae&&(ae=le)}if(le=D-R,!(!Ee&&le<0)){if(le/=Ee,Ee<0){if(le>ne)return;le>ae&&(ae=le)}else if(Ee>0){if(le0)){if(le/=Le,Le<0){if(le0){if(le>ne)return;le>ae&&(ae=le)}if(le=E-U,!(!Le&&le<0)){if(le/=Le,Le<0){if(le>ne)return;le>ae&&(ae=le)}else if(Le>0){if(le0&&(C.a={x:R+ae*Ee,y:U+ae*Le}),ne<1&&(C.b={x:R+ne*Ee,y:U+ne*Le}),C}}}}}}function ga(v){for(var w=ul,D=d0(v[0][0],v[0][1],v[1][0],v[1][1]),E=w.length,C;E--;)C=w[E],(!Ho(C,v)||!D(C)||y(C.a.x-C.b.x)=F)return;if(K>ne){if(!E)E={x:Le,y:N};else if(E.y>=R)return;D={x:Le,y:R}}else{if(!E)E={x:Le,y:R};else if(E.y1)if(K>ne){if(!E)E={x:(N-be)/_e,y:N};else if(E.y>=R)return;D={x:(R-be)/_e,y:R}}else{if(!E)E={x:(R-be)/_e,y:R};else if(E.y=F)return;D={x:F,y:_e*F+be}}else{if(!E)E={x:F,y:_e*F+be};else if(E.x=K&&be.x<=ne&&be.y>=ae&&be.y<=Ee?[[K,Ee],[ne,Ee],[ne,ae],[K,ae]]:[];Ie.point=U[le]}),W}function R(U){return U.map(function(W,K){return{x:Math.round(E(W,K)/Ye)*Ye,y:Math.round(C(W,K)/Ye)*Ye,i:K}})}return N.links=function(U){return m0(R(U)).edges.filter(function(W){return W.l&&W.r}).map(function(W){return{source:U[W.l.i],target:U[W.r.i]}})},N.triangles=function(U){var W=[];return m0(R(U)).cells.forEach(function(K,ae){for(var ne=K.site,Ee=K.edges.sort(Bh),Le=-1,le=Ee.length,_e,be,Ie=Ee[le-1].edge,ze=Ie.l===ne?Ie.r:Ie.l;++Leze&&(ze=K.x),K.y>Te&&(Te=K.y),Ee.push(K.x),Le.push(K.y);else for(le=0;le<_e;++le){var ht=+ae(K=W[le],le),Pt=+ne(K,le);htze&&(ze=ht),Pt>Te&&(Te=Pt),Ee.push(ht),Le.push(Pt)}var Bt=ze-be,Lt=Te-Ie;Bt>Lt?Te=Ie+Bt:ze=be+Lt;function $t(Xt,pr,fi,Ba,yi,kt,br,Mr){if(!(isNaN(fi)||isNaN(Ba)))if(Xt.leaf){var di=Xt.x,Ta=Xt.y;if(di!=null)if(y(di-fi)+y(Ta-Ba)<.01)Ht(Xt,pr,fi,Ba,yi,kt,br,Mr);else{var sn=Xt.point;Xt.x=Xt.y=Xt.point=null,Ht(Xt,sn,di,Ta,yi,kt,br,Mr),Ht(Xt,pr,fi,Ba,yi,kt,br,Mr)}else Xt.x=fi,Xt.y=Ba,Xt.point=pr}else Ht(Xt,pr,fi,Ba,yi,kt,br,Mr)}function Ht(Xt,pr,fi,Ba,yi,kt,br,Mr){var di=(yi+br)*.5,Ta=(kt+Mr)*.5,sn=fi>=di,Vn=Ba>=Ta,wo=Vn<<1|sn;Xt.leaf=!1,Xt=Xt.nodes[wo]||(Xt.nodes[wo]=xp()),sn?yi=di:br=di,Vn?kt=Ta:Mr=Ta,$t(Xt,pr,fi,Ba,yi,kt,br,Mr)}var xr=xp();if(xr.add=function(Xt){$t(xr,Xt,+ae(Xt,++le),+ne(Xt,le),be,Ie,ze,Te)},xr.visit=function(Xt){au(Xt,xr,be,Ie,ze,Te)},xr.find=function(Xt){return o_(xr,Xt[0],Xt[1],be,Ie,ze,Te)},le=-1,w==null){for(;++le<_e;)$t(xr,W[le],Ee[le],Le[le],be,Ie,ze,Te);--le}else W.forEach(xr.add);return Ee=Le=W=K=null,xr}return U.x=function(W){return arguments.length?(F=W,U):F},U.y=function(W){return arguments.length?(N=W,U):N},U.extent=function(W){return arguments.length?(W==null?w=D=E=C=null:(w=+W[0][0],D=+W[0][1],E=+W[1][0],C=+W[1][1]),U):w==null?null:[[w,D],[E,C]]},U.size=function(W){return arguments.length?(W==null?w=D=E=C=null:(w=D=0,E=+W[0],C=+W[1]),U):w==null?null:[E-w,C-D]},U};function qh(v){return v.x}function jm(v){return v.y}function xp(){return{leaf:!0,nodes:[],point:null,x:null,y:null}}function au(v,w,D,E,C,F){if(!v(w,D,E,C,F)){var N=(D+C)*.5,R=(E+F)*.5,U=w.nodes;U[0]&&au(v,U[0],D,E,N,R),U[1]&&au(v,U[1],N,E,C,R),U[2]&&au(v,U[2],D,R,N,F),U[3]&&au(v,U[3],N,R,C,F)}}function o_(v,w,D,E,C,F,N){var R=1/0,U;return(function W(K,ae,ne,Ee,Le){if(!(ae>F||ne>N||Ee=ht,Lt=D>=Pt,$t=Lt<<1|Bt,Ht=$t+4;$tD&&(F=w.slice(D,F),R[N]?R[N]+=F:R[++N]=F),(E=E[0])===(C=C[0])?R[N]?R[N]+=C:R[++N]=C:(R[++N]=null,U.push({i:N,x:vn(E,C)})),D=wp.lastIndex;return D=0&&!(E=e.interpolators[D](v,w)););return E}e.interpolators=[function(v,w){var D=typeof w;return(D==="string"?Qt.has(w.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(w)?bp:Zo:w instanceof va?bp:Array.isArray(w)?Ap:D==="object"&&isNaN(w)?zs:vn)(v,w)}],e.interpolateArray=Ap;function Ap(v,w){var D=[],E=[],C=v.length,F=w.length,N=Math.min(v.length,w.length),R;for(R=0;R=0?v.slice(0,w):v,E=w>=0?v.slice(w+1):"in";return D=W6.get(D)||$m,E=X6.get(E)||q,K6(E(D.apply(null,t.call(arguments,1))))};function K6(v){return function(w){return w<=0?0:w>=1?1:v(w)}}function Hm(v){return function(w){return 1-v(1-w)}}function Zm(v){return function(w){return .5*(w<.5?v(2*w):2-v(2-2*w))}}function Ym(v){return v*v}function Wm(v){return v*v*v}function s_(v){if(v<=0)return 0;if(v>=1)return 1;var w=v*v,D=w*v;return 4*(v<.5?D:3*(v-w)+D-.75)}function l_(v){return function(w){return Math.pow(w,v)}}function g0(v){return 1-Math.cos(v*ce)}function y0(v){return Math.pow(2,10*(v-1))}function _0(v){return 1-Math.sqrt(1-v*v)}function J6(v,w){var D;return arguments.length<2&&(w=.45),arguments.length?D=w/Ft*Math.asin(1/v):(v=1,D=w/4),function(E){return 1+v*Math.pow(2,-10*E)*Math.sin((E-D)*Ft/w)}}function u_(v){return v||(v=1.70158),function(w){return w*w*((v+1)*w-v)}}function c_(v){return v<1/2.75?7.5625*v*v:v<2/2.75?7.5625*(v-=1.5/2.75)*v+.75:v<2.5/2.75?7.5625*(v-=2.25/2.75)*v+.9375:7.5625*(v-=2.625/2.75)*v+.984375}e.interpolateHcl=h_;function h_(v,w){v=e.hcl(v),w=e.hcl(w);var D=v.h,E=v.c,C=v.l,F=w.h-D,N=w.c-E,R=w.l-C;return isNaN(N)&&(N=0,E=isNaN(E)?w.c:E),isNaN(F)?(F=0,D=isNaN(D)?w.h:D):F>180?F-=360:F<-180&&(F+=360),function(U){return Fi(D+F*U,E+N*U,C+R*U)+""}}e.interpolateHsl=Q6;function Q6(v,w){v=e.hsl(v),w=e.hsl(w);var D=v.h,E=v.s,C=v.l,F=w.h-D,N=w.s-E,R=w.l-C;return isNaN(N)&&(N=0,E=isNaN(E)?w.s:E),isNaN(F)?(F=0,D=isNaN(D)?w.h:D):F>180?F-=360:F<-180&&(F+=360),function(U){return Er(D+F*U,E+N*U,C+R*U)+""}}e.interpolateLab=eA;function eA(v,w){v=e.lab(v),w=e.lab(w);var D=v.l,E=v.a,C=v.b,F=w.l-D,N=w.a-E,R=w.b-C;return function(U){return Ui(D+F*U,E+N*U,C+R*U)+""}}e.interpolateRound=Oh;function Oh(v,w){return w-=v,function(D){return Math.round(v+w*D)}}e.transform=function(v){var w=i.createElementNS(e.ns.prefix.svg,"g");return(e.transform=function(D){if(D!=null){w.setAttribute("transform",D);var E=w.transform.baseVal.consolidate()}return new Tp(E?E.matrix:Km)})(v)};function Tp(v){var w=[v.a,v.b],D=[v.c,v.d],E=x0(w),C=Mp(w,D),F=x0(Xm(D,w,-C))||0;w[0]*D[1]180?w+=360:w-v>180&&(v+=360),E.push({i:D.push(Yu(D)+"rotate(",null,")")-2,x:vn(v,w)})):w&&D.push(Yu(D)+"rotate("+w+")")}function d_(v,w,D,E){v!==w?E.push({i:D.push(Yu(D)+"skewX(",null,")")-2,x:vn(v,w)}):w&&D.push(Yu(D)+"skewX("+w+")")}function rA(v,w,D,E){if(v[0]!==w[0]||v[1]!==w[1]){var C=D.push(Yu(D)+"scale(",null,",",null,")");E.push({i:C-4,x:vn(v[0],w[0])},{i:C-2,x:vn(v[1],w[1])})}else(w[0]!==1||w[1]!==1)&&D.push(Yu(D)+"scale("+w+")")}function p_(v,w){var D=[],E=[];return v=e.transform(v),w=e.transform(w),f_(v.translate,w.translate,D,E),tA(v.rotate,w.rotate,D,E),d_(v.skew,w.skew,D,E),rA(v.scale,w.scale,D,E),v=w=null,function(C){for(var F=-1,N=E.length,R;++F0?F=Te:(D.c=null,D.t=NaN,D=null,w.end({type:"end",alpha:F=0})):Te>0&&(w.start({type:"start",alpha:F=Te}),D=Go(v.tick)),v):F},v.start=function(){var Te,ht=Ee.length,Pt=Le.length,Bt=E[0],Lt=E[1],$t,Ht;for(Te=0;Te=0;)F.push(K=W[U]),K.parent=R,K.depth=R.depth+1;D&&(R.value=0),R.children=W}else D&&(R.value=+D.call(E,R,R.depth)||0),delete R.children;return ss(C,function(ae){var ne,Ee;v&&(ne=ae.children)&&ne.sort(v),D&&(Ee=ae.parent)&&(Ee.value+=ae.value)}),N}return E.sort=function(C){return arguments.length?(v=C,E):v},E.children=function(C){return arguments.length?(w=C,E):w},E.value=function(C){return arguments.length?(D=C,E):D},E.revalue=function(C){return D&&(ou(C,function(F){F.children&&(F.value=0)}),ss(C,function(F){var N;F.children||(F.value=+D.call(E,F,F.depth)||0),(N=F.parent)&&(N.value+=F.value)})),C},E};function Nh(v,w){return e.rebind(v,w,"sort","children","value"),v.nodes=v,v.links=w0,v}function ou(v,w){for(var D=[v];(v=D.pop())!=null;)if(w(v),(C=v.children)&&(E=C.length))for(var E,C;--E>=0;)D.push(C[E])}function ss(v,w){for(var D=[v],E=[];(v=D.pop())!=null;)if(E.push(v),(N=v.children)&&(F=N.length))for(var C=-1,F,N;++CC&&(C=R),E.push(R)}for(N=0;NE&&(D=w,E=C);return D}function T0(v){return v.reduce(M0,0)}function M0(v,w){return v+w[1]}e.layout.histogram=function(){var v=!0,w=Number,D=Ep,E=D0;function C(F,ne){for(var R=[],U=F.map(w,this),W=D.call(this,U,ne),K=E.call(this,W,U,ne),ae,ne=-1,Ee=U.length,Le=K.length-1,le=v?1:1/Ee,_e;++ne0)for(ne=-1;++ne=W[0]&&_e<=W[1]&&(ae=R[e.bisect(K,_e,1,Le)-1],ae.y+=le,ae.push(F[ne]));return R}return C.value=function(F){return arguments.length?(w=F,C):w},C.range=function(F){return arguments.length?(D=Jt(F),C):D},C.bins=function(F){return arguments.length?(E=typeof F=="number"?function(N){return Vh(N,F)}:Jt(F),C):E},C.frequency=function(F){return arguments.length?(v=!!F,C):v},C};function D0(v,w){return Vh(v,Math.ceil(Math.log(w.length)/Math.LN2+1))}function Vh(v,w){for(var D=-1,E=+v[0],C=(v[1]-E)/w,F=[];++D<=w;)F[D]=C*D+E;return F}function Ep(v){return[e.min(v),e.max(v)]}e.layout.pack=function(){var v=e.layout.hierarchy().sort(dA),w=0,D=[1,1],E;function C(F,N){var R=v.call(this,F,N),U=R[0],W=D[0],K=D[1],ae=E==null?Math.sqrt:typeof E=="function"?E:function(){return E};if(U.x=U.y=0,ss(U,function(Ee){Ee.r=+ae(Ee.value)}),ss(U,b_),w){var ne=w*(E?1:Math.max(2*U.r/W,2*U.r/K))/2;ss(U,function(Ee){Ee.r+=ne}),ss(U,b_),ss(U,function(Ee){Ee.r-=ne})}return w_(U,W/2,K/2,E?1:1/Math.max(2*U.r/W,2*U.r/K)),R}return C.size=function(F){return arguments.length?(D=F,C):D},C.radius=function(F){return arguments.length?(E=F==null||typeof F=="function"?F:+F,C):E},C.padding=function(F){return arguments.length?(w=+F,C):w},Nh(C,v)};function dA(v,w){return v.value-w.value}function S0(v,w){var D=v._pack_next;v._pack_next=w,w._pack_prev=v,w._pack_next=D,D._pack_prev=w}function x_(v,w){v._pack_next=w,w._pack_prev=v}function kp(v,w){var D=w.x-v.x,E=w.y-v.y,C=v.r+w.r;return .999*C*C>D*D+E*E}function b_(v){if(!(w=v.children)||!(ne=w.length))return;var w,D=1/0,E=-1/0,C=1/0,F=-1/0,N,R,U,W,K,ae,ne;function Ee(Te){D=Math.min(Te.x-Te.r,D),E=Math.max(Te.x+Te.r,E),C=Math.min(Te.y-Te.r,C),F=Math.max(Te.y+Te.r,F)}if(w.forEach(pA),N=w[0],N.x=-N.r,N.y=0,Ee(N),ne>1&&(R=w[1],R.x=R.r,R.y=0,Ee(R),ne>2))for(U=w[2],Cp(N,R,U),Ee(U),S0(N,U),N._pack_prev=U,S0(U,R),R=N._pack_next,W=3;W_e.x&&(_e=ht),ht.depth>be.depth&&(be=ht)});var Ie=w(le,_e)/2-le.x,ze=D[0]/(_e.x+w(_e,le)/2+Ie),Te=D[1]/(be.depth||1);ou(Ee,function(ht){ht.x=(ht.x+Ie)*ze,ht.y=ht.depth*Te})}return ne}function F(K){for(var ae={A:null,children:[K]},ne=[ae],Ee;(Ee=ne.pop())!=null;)for(var Le=Ee.children,le,_e=0,be=Le.length;_e0&&(nv(O(le,K,ne),K,ht),be+=ht,Ie+=ht),ze+=le.m,be+=Ee.m,Te+=_e.m,Ie+=Le.m;le&&!av(Le)&&(Le.t=le,Le.m+=ze-Ie),Ee&&!E0(_e)&&(_e.t=Ee,_e.m+=be-Te,ne=K)}return ne}function W(K){K.x*=D[0],K.y=K.depth*D[1]}return C.separation=function(K){return arguments.length?(w=K,C):w},C.size=function(K){return arguments.length?(E=(D=K)==null?W:null,C):E?null:D},C.nodeSize=function(K){return arguments.length?(E=(D=K)==null?null:W,C):E?D:null},Nh(C,v)};function A_(v,w){return v.parent==w.parent?1:2}function E0(v){var w=v.children;return w.length?w[0]:v.t}function av(v){var w=v.children,D;return(D=w.length)?w[D-1]:v.t}function nv(v,w,D){var E=D/(w.i-v.i);w.c-=E,w.s+=D,v.c+=E,w.z+=D,w.m+=D}function mA(v){for(var w=0,D=0,E=v.children,C=E.length,F;--C>=0;)F=E[C],F.z+=w,F.m+=w,w+=F.s+(D+=F.c)}function O(v,w,D){return v.a.parent===w.parent?v.a:D}e.layout.cluster=function(){var v=e.layout.hierarchy().sort(null).value(null),w=A_,D=[1,1],E=!1;function C(F,N){var R=v.call(this,F,N),U=R[0],W,K=0;ss(U,function(le){var _e=le.children;_e&&_e.length?(le.x=ee(_e),le.y=G(_e)):(le.x=W?K+=w(le,W):0,le.y=0,W=le)});var ae=Q(U),ne=he(U),Ee=ae.x-w(ae,ne)/2,Le=ne.x+w(ne,ae)/2;return ss(U,E?function(le){le.x=(le.x-U.x)*D[0],le.y=(U.y-le.y)*D[1]}:function(le){le.x=(le.x-Ee)/(Le-Ee)*D[0],le.y=(1-(U.y?le.y/U.y:1))*D[1]}),R}return C.separation=function(F){return arguments.length?(w=F,C):w},C.size=function(F){return arguments.length?(E=(D=F)==null,C):E?null:D},C.nodeSize=function(F){return arguments.length?(E=(D=F)!=null,C):E?D:null},Nh(C,v)};function G(v){return 1+e.max(v,function(w){return w.y})}function ee(v){return v.reduce(function(w,D){return w+D.x},0)/v.length}function Q(v){var w=v.children;return w&&w.length?Q(w[0]):v}function he(v){var w=v.children,D;return w&&(D=w.length)?he(w[D-1]):v}e.layout.treemap=function(){var v=e.layout.hierarchy(),w=Math.round,D=[1,1],E=null,C=Be,F=!1,N,R="squarify",U=.5*(1+Math.sqrt(5));function W(le,_e){for(var be=-1,Ie=le.length,ze,Te;++be0;)Ie.push(Te=ze[Lt-1]),Ie.area+=Te.area,R!=="squarify"||(Pt=ne(Ie,Bt))<=ht?(ze.pop(),ht=Pt):(Ie.area-=Ie.pop().area,Ee(Ie,Bt,be,!1),Bt=Math.min(be.dx,be.dy),Ie.length=Ie.area=0,ht=1/0);Ie.length&&(Ee(Ie,Bt,be,!0),Ie.length=Ie.area=0),_e.forEach(K)}}function ae(le){var _e=le.children;if(_e&&_e.length){var be=C(le),Ie=_e.slice(),ze,Te=[];for(W(Ie,be.dx*be.dy/le.value),Te.area=0;ze=Ie.pop();)Te.push(ze),Te.area+=ze.area,ze.z!=null&&(Ee(Te,ze.z?be.dx:be.dy,be,!Ie.length),Te.length=Te.area=0);_e.forEach(ae)}}function ne(le,_e){for(var be=le.area,Ie,ze=0,Te=1/0,ht=-1,Pt=le.length;++htze&&(ze=Ie));return be*=be,_e*=_e,be?Math.max(_e*ze*U/be,be/(_e*Te*U)):1/0}function Ee(le,_e,be,Ie){var ze=-1,Te=le.length,ht=be.x,Pt=be.y,Bt=_e?w(le.area/_e):0,Lt;if(_e==be.dx){for((Ie||Bt>be.dy)&&(Bt=be.dy);++zebe.dx)&&(Bt=be.dx);++ze1);return v+w*E*Math.sqrt(-2*Math.log(F)/F)}},logNormal:function(){var v=e.random.normal.apply(e,arguments);return function(){return Math.exp(v())}},bates:function(v){var w=e.random.irwinHall(v);return function(){return w()/v}},irwinHall:function(v){return function(){for(var w=0,D=0;D2?dt:ft,W=E?aA:iA;return C=U(v,w,W,D),F=U(w,v,W,Uc),R}function R(U){return C(U)}return R.invert=function(U){return F(U)},R.domain=function(U){return arguments.length?(v=U.map(Number),N()):v},R.range=function(U){return arguments.length?(w=U,N()):w},R.rangeRound=function(U){return R.range(U).interpolate(Oh)},R.clamp=function(U){return arguments.length?(E=U,N()):E},R.interpolate=function(U){return arguments.length?(D=U,N()):D},R.ticks=function(U){return ir(v,U)},R.tickFormat=function(U,W){return d3_scale_linearTickFormat(v,U,W)},R.nice=function(U){return Wt(v,U),N()},R.copy=function(){return _t(v,w,D,E)},N()}function er(v,w){return e.rebind(v,w,"range","rangeRound","interpolate","clamp")}function Wt(v,w){return Ge(v,rt(rr(v,w)[2])),Ge(v,rt(rr(v,w)[2])),v}function rr(v,w){w==null&&(w=10);var D=Ze(v),E=D[1]-D[0],C=Math.pow(10,Math.floor(Math.log(E/w)/Math.LN10)),F=w/E*C;return F<=.15?C*=10:F<=.35?C*=5:F<=.75&&(C*=2),D[0]=Math.ceil(D[0]/C)*C,D[1]=Math.floor(D[1]/C)*C+C*.5,D[2]=C,D}function ir(v,w){return e.range.apply(e,rr(v,w))}var wt={s:1,g:1,p:1,r:1,e:1};function It(v){return-Math.floor(Math.log(v)/Math.LN10+.01)}function lr(v,w){var D=It(w[2]);return v in wt?Math.abs(D-It(Math.max(y(w[0]),y(w[1]))))+ +(v!=="e"):D-(v==="%")*2}e.scale.log=function(){return vr(e.scale.linear().domain([0,1]),10,!0,[1,10])};function vr(v,w,D,E){function C(R){return(D?Math.log(R<0?0:R):-Math.log(R>0?0:-R))/Math.log(w)}function F(R){return D?Math.pow(w,R):-Math.pow(w,-R)}function N(R){return v(C(R))}return N.invert=function(R){return F(v.invert(R))},N.domain=function(R){return arguments.length?(D=R[0]>=0,v.domain((E=R.map(Number)).map(C)),N):E},N.base=function(R){return arguments.length?(w=+R,v.domain(E.map(C)),N):w},N.nice=function(){var R=Ge(E.map(C),D?Math:hi);return v.domain(R),E=R.map(F),N},N.ticks=function(){var R=Ze(E),U=[],W=R[0],K=R[1],ae=Math.floor(C(W)),ne=Math.ceil(C(K)),Ee=w%1?2:w;if(isFinite(ne-ae)){if(D){for(;ae0;Le--)U.push(F(ae)*Le);for(ae=0;U[ae]K;ne--);U=U.slice(ae,ne)}return U},N.copy=function(){return vr(v.copy(),w,D,E)},er(N,v)}var hi={floor:function(v){return-Math.ceil(-v)},ceil:function(v){return-Math.floor(-v)}};e.scale.pow=function(){return Ri(e.scale.linear(),1,[0,1])};function Ri(v,w,D){var E=pi(w),C=pi(1/w);function F(N){return v(E(N))}return F.invert=function(N){return C(v.invert(N))},F.domain=function(N){return arguments.length?(v.domain((D=N.map(Number)).map(E)),F):D},F.ticks=function(N){return ir(D,N)},F.tickFormat=function(N,R){return d3_scale_linearTickFormat(D,N,R)},F.nice=function(N){return F.domain(Wt(D,N))},F.exponent=function(N){return arguments.length?(E=pi(w=N),C=pi(1/w),v.domain(D.map(E)),F):w},F.copy=function(){return Ri(v.copy(),w,D)},er(F,v)}function pi(v){return function(w){return w<0?-Math.pow(-w,v):Math.pow(w,v)}}e.scale.sqrt=function(){return e.scale.pow().exponent(.5)},e.scale.ordinal=function(){return Ki([],{t:"range",a:[[]]})};function Ki(v,w){var D,E,C;function F(R){return E[((D.get(R)||(w.t==="range"?D.set(R,v.push(R)):NaN))-1)%E.length]}function N(R,U){return e.range(v.length).map(function(W){return R+U*W})}return F.domain=function(R){if(!arguments.length)return v;v=[],D=new _;for(var U=-1,W=R.length,K;++U0?D[F-1]:v[0],Fne?0:1;if(K=zt)return U(K,Le)+(W?U(W,1-Le):"")+"Z";var le,_e,be,Ie,ze=0,Te=0,ht,Pt,Bt,Lt,$t,Ht,xr,Xt,pr=[];if((Ie=(+N.apply(this,arguments)||0)/2)&&(be=E===Wu?Math.sqrt(W*W+K*K):+E.apply(this,arguments),Le||(Te*=-1),K&&(Te=gi(be/K*Math.sin(Ie))),W&&(ze=gi(be/W*Math.sin(Ie)))),K){ht=K*Math.cos(ae+Te),Pt=K*Math.sin(ae+Te),Bt=K*Math.cos(ne-Te),Lt=K*Math.sin(ne-Te);var fi=Math.abs(ne-ae-2*Te)<=Dt?0:1;if(Te&&T_(ht,Pt,Bt,Lt)===Le^fi){var Ba=(ae+ne)/2;ht=K*Math.cos(Ba),Pt=K*Math.sin(Ba),Bt=Lt=null}}else ht=Pt=0;if(W){$t=W*Math.cos(ne-ze),Ht=W*Math.sin(ne-ze),xr=W*Math.cos(ae+ze),Xt=W*Math.sin(ae+ze);var yi=Math.abs(ae-ne+2*ze)<=Dt?0:1;if(ze&&T_($t,Ht,xr,Xt)===1-Le^yi){var kt=(ae+ne)/2;$t=W*Math.cos(kt),Ht=W*Math.sin(kt),xr=Xt=null}}else $t=Ht=0;if(Ee>Ye&&(le=Math.min(Math.abs(K-W)/2,+D.apply(this,arguments)))>.001){_e=W0?0:1}function M_(v,w,D,E,C){var F=v[0]-w[0],N=v[1]-w[1],R=(C?E:-E)/Math.sqrt(F*F+N*N),U=R*N,W=-R*F,K=v[0]+U,ae=v[1]+W,ne=w[0]+U,Ee=w[1]+W,Le=(K+ne)/2,le=(ae+Ee)/2,_e=ne-K,be=Ee-ae,Ie=_e*_e+be*be,ze=D-E,Te=K*Ee-ne*ae,ht=(be<0?-1:1)*Math.sqrt(Math.max(0,ze*ze*Ie-Te*Te)),Pt=(Te*be-_e*ht)/Ie,Bt=(-Te*_e-be*ht)/Ie,Lt=(Te*be+_e*ht)/Ie,$t=(-Te*_e+be*ht)/Ie,Ht=Pt-Le,xr=Bt-le,Xt=Lt-Le,pr=$t-le;return Ht*Ht+xr*xr>Xt*Xt+pr*pr&&(Pt=Lt,Bt=$t),[[Pt-U,Bt-W],[Pt*D/ze,Bt*D/ze]]}function jP(){return!0}function $P(v){var w=ll,D=eu,E=jP,C=lu,F=C.key,N=.7;function R(U){var W=[],K=[],ae=-1,ne=U.length,Ee,Le=Jt(w),le=Jt(D);function _e(){W.push("M",C(v(K),N))}for(;++ae1?v.join("L"):v+"Z"}function HP(v){return v.join("L")+"Z"}function i0e(v){for(var w=0,D=v.length,E=v[0],C=[E[0],",",E[1]];++w1&&C.push("H",E[0]),C.join("")}function gA(v){for(var w=0,D=v.length,E=v[0],C=[E[0],",",E[1]];++w1){R=w[1],F=v[U],U++,E+="C"+(C[0]+N[0])+","+(C[1]+N[1])+","+(F[0]-R[0])+","+(F[1]-R[1])+","+F[0]+","+F[1];for(var W=2;W9&&(F=D*3/Math.sqrt(F),N[R]=F*E,N[R+1]=F*C));for(R=-1;++R<=U;)F=(v[Math.min(U,R+1)][0]-v[Math.max(0,R-1)][0])/(6*(1+N[R]*N[R])),w.push([F||0,N[R]*F||0]);return w}function f0e(v){return v.length<3?lu(v):v[0]+D_(v,h0e(v))}e.svg.line.radial=function(){var v=$P(XP);return v.radius=v.x,delete v.x,v.angle=v.y,delete v.y,v};function XP(v){for(var w,D=-1,E=v.length,C,F;++DDt)+",1 "+ae}function W(K,ae,ne,Ee){return"Q 0,0 "+Ee}return F.radius=function(K){return arguments.length?(D=Jt(K),F):D},F.source=function(K){return arguments.length?(v=Jt(K),F):v},F.target=function(K){return arguments.length?(w=Jt(K),F):w},F.startAngle=function(K){return arguments.length?(E=Jt(K),F):E},F.endAngle=function(K){return arguments.length?(C=Jt(K),F):C},F};function d0e(v){return v.radius}e.svg.diagonal=function(){var v=JP,w=QP,D=eI;function E(C,F){var N=v.call(this,C,F),R=w.call(this,C,F),U=(N.y+R.y)/2,W=[N,{x:N.x,y:U},{x:R.x,y:U},R];return W=W.map(D),"M"+W[0]+"C"+W[1]+" "+W[2]+" "+W[3]}return E.source=function(C){return arguments.length?(v=Jt(C),E):v},E.target=function(C){return arguments.length?(w=Jt(C),E):w},E.projection=function(C){return arguments.length?(D=C,E):D},E};function eI(v){return[v.x,v.y]}e.svg.diagonal.radial=function(){var v=e.svg.diagonal(),w=eI,D=v.projection;return v.projection=function(E){return arguments.length?D(p0e(w=E)):w},v};function p0e(v){return function(){var w=v.apply(this,arguments),D=w[0],E=w[1]-ce;return[D*Math.cos(E),D*Math.sin(E)]}}e.svg.symbol=function(){var v=v0e,w=m0e;function D(E,C){return(rI.get(v.call(this,E,C))||tI)(w.call(this,E,C))}return D.type=function(E){return arguments.length?(v=Jt(E),D):v},D.size=function(E){return arguments.length?(w=Jt(E),D):w},D};function m0e(){return 64}function v0e(){return"circle"}function tI(v){var w=Math.sqrt(v/Dt);return"M0,"+w+"A"+w+","+w+" 0 1,1 0,"+-w+"A"+w+","+w+" 0 1,1 0,"+w+"Z"}var rI=e.map({circle:tI,cross:function(v){var w=Math.sqrt(v/5)/2;return"M"+-3*w+","+-w+"H"+-w+"V"+-3*w+"H"+w+"V"+-w+"H"+3*w+"V"+w+"H"+w+"V"+3*w+"H"+-w+"V"+w+"H"+-3*w+"Z"},diamond:function(v){var w=Math.sqrt(v/(2*iI)),D=w*iI;return"M0,"+-w+"L"+D+",0 0,"+w+" "+-D+",0Z"},square:function(v){var w=Math.sqrt(v)/2;return"M"+-w+","+-w+"L"+w+","+-w+" "+w+","+w+" "+-w+","+w+"Z"},"triangle-down":function(v){var w=Math.sqrt(v/S_),D=w*S_/2;return"M0,"+D+"L"+w+","+-D+" "+-w+","+-D+"Z"},"triangle-up":function(v){var w=Math.sqrt(v/S_),D=w*S_/2;return"M0,"+-D+"L"+w+","+D+" "+-w+","+D+"Z"}});e.svg.symbolTypes=rI.keys();var S_=Math.sqrt(3),iI=Math.tan(30*ke);te.transition=function(v){for(var w=C0||++nI,D=AA(v),E=[],C,F,N=k_||{time:Date.now(),ease:s_,delay:0,duration:250},R=-1,U=this.length;++R0;)ae[--Ie].call(v,be);if(_e>=1)return N.event&&N.event.end.call(v,v.__data__,w),--F.count?delete F[E]:delete v[D],1}N||(R=C.time,U=Go(ne,0,R),N=F[E]={tween:new _,time:R,timer:U,delay:C.delay,duration:C.duration,ease:C.ease,index:w},C=null,++F.count)}e.svg.axis=function(){var v=e.scale.linear(),w=oI,D=6,E=6,C=3,F=[10],N=null,R;function U(W){W.each(function(){var K=e.select(this),ae=this.__chart__||v,ne=this.__chart__=v.copy(),Ee=N==null?ne.ticks?ne.ticks.apply(ne,F):ne.domain():N,Le=R==null?ne.tickFormat?ne.tickFormat.apply(ne,F):q:R,le=K.selectAll(".tick").data(Ee,ne),_e=le.enter().insert("g",".domain").attr("class","tick").style("opacity",Ye),be=e.transition(le.exit()).style("opacity",Ye).remove(),Ie=e.transition(le.order()).style("opacity",1),ze=Math.max(D,0)+C,Te,ht=Ke(ne),Pt=K.selectAll(".domain").data([0]),Bt=(Pt.enter().append("path").attr("class","domain"),e.transition(Pt));_e.append("line"),_e.append("text");var Lt=_e.select("line"),$t=Ie.select("line"),Ht=le.select("text").text(Le),xr=_e.select("text"),Xt=Ie.select("text"),pr=w==="top"||w==="left"?-1:1,fi,Ba,yi,kt;if(w==="bottom"||w==="top"?(Te=_0e,fi="x",yi="y",Ba="x2",kt="y2",Ht.attr("dy",pr<0?"0em":".71em").style("text-anchor","middle"),Bt.attr("d","M"+ht[0]+","+pr*E+"V0H"+ht[1]+"V"+pr*E)):(Te=x0e,fi="y",yi="x",Ba="y2",kt="x2",Ht.attr("dy",".32em").style("text-anchor",pr<0?"end":"start"),Bt.attr("d","M"+pr*E+","+ht[0]+"H0V"+ht[1]+"H"+pr*E)),Lt.attr(kt,pr*D),xr.attr(yi,pr*ze),$t.attr(Ba,0).attr(kt,pr*D),Xt.attr(fi,0).attr(yi,pr*ze),ne.rangeBand){var br=ne,Mr=br.rangeBand()/2;ae=ne=function(di){return br(di)+Mr}}else ae.rangeBand?ae=ne:be.call(Te,ne,ae);_e.call(Te,ae,ne),Ie.call(Te,ne,ne)})}return U.scale=function(W){return arguments.length?(v=W,U):v},U.orient=function(W){return arguments.length?(w=W in y0e?W+"":oI,U):w},U.ticks=function(){return arguments.length?(F=r(arguments),U):F},U.tickValues=function(W){return arguments.length?(N=W,U):N},U.tickFormat=function(W){return arguments.length?(R=W,U):R},U.tickSize=function(W){var K=arguments.length;return K?(D=+W,E=+arguments[K-1],U):D},U.innerTickSize=function(W){return arguments.length?(D=+W,U):D},U.outerTickSize=function(W){return arguments.length?(E=+W,U):E},U.tickPadding=function(W){return arguments.length?(C=+W,U):C},U.tickSubdivide=function(){return arguments.length&&U},U};var oI="bottom",y0e={top:1,right:1,bottom:1,left:1};function _0e(v,w,D){v.attr("transform",function(E){var C=w(E);return"translate("+(isFinite(C)?C:D(E))+",0)"})}function x0e(v,w,D){v.attr("transform",function(E){var C=w(E);return"translate(0,"+(isFinite(C)?C:D(E))+")"})}e.svg.brush=function(){var v=De(K,"brushstart","brush","brushend"),w=null,D=null,E=[0,0],C=[0,0],F,N,R=!0,U=!0,W=TA[0];function K(le){le.each(function(){var _e=e.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",Le).on("touchstart.brush",Le),be=_e.selectAll(".background").data([0]);be.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),_e.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var Ie=_e.selectAll(".resize").data(W,q);Ie.exit().remove(),Ie.enter().append("g").attr("class",function(Pt){return"resize "+Pt}).style("cursor",function(Pt){return b0e[Pt]}).append("rect").attr("x",function(Pt){return/[ew]$/.test(Pt)?-3:null}).attr("y",function(Pt){return/^[ns]/.test(Pt)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),Ie.style("display",K.empty()?"none":null);var ze=e.transition(_e),Te=e.transition(be),ht;w&&(ht=Ke(w),Te.attr("x",ht[0]).attr("width",ht[1]-ht[0]),ne(ze)),D&&(ht=Ke(D),Te.attr("y",ht[0]).attr("height",ht[1]-ht[0]),Ee(ze)),ae(ze)})}K.event=function(le){le.each(function(){var _e=v.of(this,arguments),be={x:E,y:C,i:F,j:N},Ie=this.__chart__||be;this.__chart__=be,C0?e.select(this).transition().each("start.brush",function(){F=Ie.i,N=Ie.j,E=Ie.x,C=Ie.y,_e({type:"brushstart"})}).tween("brush:brush",function(){var ze=Ap(E,be.x),Te=Ap(C,be.y);return F=N=null,function(ht){E=be.x=ze(ht),C=be.y=Te(ht),_e({type:"brush",mode:"resize"})}}).each("end.brush",function(){F=be.i,N=be.j,_e({type:"brush",mode:"resize"}),_e({type:"brushend"})}):(_e({type:"brushstart"}),_e({type:"brush",mode:"resize"}),_e({type:"brushend"}))})};function ae(le){le.selectAll(".resize").attr("transform",function(_e){return"translate("+E[+/e$/.test(_e)]+","+C[+/^s/.test(_e)]+")"})}function ne(le){le.select(".extent").attr("x",E[0]),le.selectAll(".extent,.n>rect,.s>rect").attr("width",E[1]-E[0])}function Ee(le){le.select(".extent").attr("y",C[0]),le.selectAll(".extent,.e>rect,.w>rect").attr("height",C[1]-C[0])}function Le(){var le=this,_e=e.select(e.event.target),be=v.of(le,arguments),Ie=e.select(le),ze=_e.datum(),Te=!/^(n|s)$/.test(ze)&&w,ht=!/^(e|w)$/.test(ze)&&D,Pt=_e.classed("extent"),Bt=yt(le),Lt,$t=e.mouse(le),Ht,xr=e.select(n(le)).on("keydown.brush",fi).on("keyup.brush",Ba);if(e.event.changedTouches?xr.on("touchmove.brush",yi).on("touchend.brush",br):xr.on("mousemove.brush",yi).on("mouseup.brush",br),Ie.interrupt().selectAll("*").interrupt(),Pt)$t[0]=E[0]-$t[0],$t[1]=C[0]-$t[1];else if(ze){var Xt=+/w$/.test(ze),pr=+/^n/.test(ze);Ht=[E[1-Xt]-$t[0],C[1-pr]-$t[1]],$t[0]=E[Xt],$t[1]=C[pr]}else e.event.altKey&&(Lt=$t.slice());Ie.style("pointer-events","none").selectAll(".resize").style("display",null),e.select("body").style("cursor",_e.style("cursor")),be({type:"brushstart"}),yi();function fi(){e.event.keyCode==32&&(Pt||(Lt=null,$t[0]-=E[1],$t[1]-=C[1],Pt=2),oe())}function Ba(){e.event.keyCode==32&&Pt==2&&($t[0]+=E[1],$t[1]+=C[1],Pt=0,oe())}function yi(){var Mr=e.mouse(le),di=!1;Ht&&(Mr[0]+=Ht[0],Mr[1]+=Ht[1]),Pt||(e.event.altKey?(Lt||(Lt=[(E[0]+E[1])/2,(C[0]+C[1])/2]),$t[0]=E[+(Mr[0]{(function(e,t){typeof z_=="object"&&typeof mI!="undefined"?t(z_):(e=e||self,t(e.d3=e.d3||{}))})(z_,function(e){"use strict";var t=new Date,r=new Date;function i(ie,Se,ot,bt){function Tt(ve){return ie(ve=arguments.length===0?new Date:new Date(+ve)),ve}return Tt.floor=function(ve){return ie(ve=new Date(+ve)),ve},Tt.ceil=function(ve){return ie(ve=new Date(ve-1)),Se(ve,1),ie(ve),ve},Tt.round=function(ve){var xe=Tt(ve),je=Tt.ceil(ve);return ve-xe0))return nt;do nt.push(Qe=new Date(+ve)),Se(ve,je),ie(ve);while(Qe=xe)for(;ie(xe),!ve(xe);)xe.setTime(xe-1)},function(xe,je){if(xe>=xe)if(je<0)for(;++je<=0;)for(;Se(xe,-1),!ve(xe););else for(;--je>=0;)for(;Se(xe,1),!ve(xe););})},ot&&(Tt.count=function(ve,xe){return t.setTime(+ve),r.setTime(+xe),ie(t),ie(r),Math.floor(ot(t,r))},Tt.every=function(ve){return ve=Math.floor(ve),!isFinite(ve)||!(ve>0)?null:ve>1?Tt.filter(bt?function(xe){return bt(xe)%ve===0}:function(xe){return Tt.count(0,xe)%ve===0}):Tt}),Tt}var a=i(function(){},function(ie,Se){ie.setTime(+ie+Se)},function(ie,Se){return Se-ie});a.every=function(ie){return ie=Math.floor(ie),!isFinite(ie)||!(ie>0)?null:ie>1?i(function(Se){Se.setTime(Math.floor(Se/ie)*ie)},function(Se,ot){Se.setTime(+Se+ot*ie)},function(Se,ot){return(ot-Se)/ie}):a};var n=a.range,o=1e3,s=6e4,l=36e5,u=864e5,c=6048e5,h=i(function(ie){ie.setTime(ie-ie.getMilliseconds())},function(ie,Se){ie.setTime(+ie+Se*o)},function(ie,Se){return(Se-ie)/o},function(ie){return ie.getUTCSeconds()}),f=h.range,d=i(function(ie){ie.setTime(ie-ie.getMilliseconds()-ie.getSeconds()*o)},function(ie,Se){ie.setTime(+ie+Se*s)},function(ie,Se){return(Se-ie)/s},function(ie){return ie.getMinutes()}),p=d.range,m=i(function(ie){ie.setTime(ie-ie.getMilliseconds()-ie.getSeconds()*o-ie.getMinutes()*s)},function(ie,Se){ie.setTime(+ie+Se*l)},function(ie,Se){return(Se-ie)/l},function(ie){return ie.getHours()}),g=m.range,y=i(function(ie){ie.setHours(0,0,0,0)},function(ie,Se){ie.setDate(ie.getDate()+Se)},function(ie,Se){return(Se-ie-(Se.getTimezoneOffset()-ie.getTimezoneOffset())*s)/u},function(ie){return ie.getDate()-1}),x=y.range;function b(ie){return i(function(Se){Se.setDate(Se.getDate()-(Se.getDay()+7-ie)%7),Se.setHours(0,0,0,0)},function(Se,ot){Se.setDate(Se.getDate()+ot*7)},function(Se,ot){return(ot-Se-(ot.getTimezoneOffset()-Se.getTimezoneOffset())*s)/c})}var _=b(0),A=b(1),T=b(2),M=b(3),S=b(4),k=b(5),P=b(6),I=_.range,B=A.range,L=T.range,z=M.range,q=S.range,V=k.range,j=P.range,$=i(function(ie){ie.setDate(1),ie.setHours(0,0,0,0)},function(ie,Se){ie.setMonth(ie.getMonth()+Se)},function(ie,Se){return Se.getMonth()-ie.getMonth()+(Se.getFullYear()-ie.getFullYear())*12},function(ie){return ie.getMonth()}),H=$.range,Z=i(function(ie){ie.setMonth(0,1),ie.setHours(0,0,0,0)},function(ie,Se){ie.setFullYear(ie.getFullYear()+Se)},function(ie,Se){return Se.getFullYear()-ie.getFullYear()},function(ie){return ie.getFullYear()});Z.every=function(ie){return!isFinite(ie=Math.floor(ie))||!(ie>0)?null:i(function(Se){Se.setFullYear(Math.floor(Se.getFullYear()/ie)*ie),Se.setMonth(0,1),Se.setHours(0,0,0,0)},function(Se,ot){Se.setFullYear(Se.getFullYear()+ot*ie)})};var Y=Z.range,oe=i(function(ie){ie.setUTCSeconds(0,0)},function(ie,Se){ie.setTime(+ie+Se*s)},function(ie,Se){return(Se-ie)/s},function(ie){return ie.getUTCMinutes()}),pe=oe.range,De=i(function(ie){ie.setUTCMinutes(0,0,0)},function(ie,Se){ie.setTime(+ie+Se*l)},function(ie,Se){return(Se-ie)/l},function(ie){return ie.getUTCHours()}),ye=De.range,de=i(function(ie){ie.setUTCHours(0,0,0,0)},function(ie,Se){ie.setUTCDate(ie.getUTCDate()+Se)},function(ie,Se){return(Se-ie)/u},function(ie){return ie.getUTCDate()-1}),Ce=de.range;function J(ie){return i(function(Se){Se.setUTCDate(Se.getUTCDate()-(Se.getUTCDay()+7-ie)%7),Se.setUTCHours(0,0,0,0)},function(Se,ot){Se.setUTCDate(Se.getUTCDate()+ot*7)},function(Se,ot){return(ot-Se)/c})}var ue=J(0),me=J(1),te=J(2),re=J(3),fe=J(4),ge=J(5),Re=J(6),Ve=ue.range,Me=me.range,Pe=te.range,Fe=re.range,se=fe.range,Ue=ge.range,Ne=Re.range,$e=i(function(ie){ie.setUTCDate(1),ie.setUTCHours(0,0,0,0)},function(ie,Se){ie.setUTCMonth(ie.getUTCMonth()+Se)},function(ie,Se){return Se.getUTCMonth()-ie.getUTCMonth()+(Se.getUTCFullYear()-ie.getUTCFullYear())*12},function(ie){return ie.getUTCMonth()}),Ae=$e.range,He=i(function(ie){ie.setUTCMonth(0,1),ie.setUTCHours(0,0,0,0)},function(ie,Se){ie.setUTCFullYear(ie.getUTCFullYear()+Se)},function(ie,Se){return Se.getUTCFullYear()-ie.getUTCFullYear()},function(ie){return ie.getUTCFullYear()});He.every=function(ie){return!isFinite(ie=Math.floor(ie))||!(ie>0)?null:i(function(Se){Se.setUTCFullYear(Math.floor(Se.getUTCFullYear()/ie)*ie),Se.setUTCMonth(0,1),Se.setUTCHours(0,0,0,0)},function(Se,ot){Se.setUTCFullYear(Se.getUTCFullYear()+ot*ie)})};var it=He.range;e.timeDay=y,e.timeDays=x,e.timeFriday=k,e.timeFridays=V,e.timeHour=m,e.timeHours=g,e.timeInterval=i,e.timeMillisecond=a,e.timeMilliseconds=n,e.timeMinute=d,e.timeMinutes=p,e.timeMonday=A,e.timeMondays=B,e.timeMonth=$,e.timeMonths=H,e.timeSaturday=P,e.timeSaturdays=j,e.timeSecond=h,e.timeSeconds=f,e.timeSunday=_,e.timeSundays=I,e.timeThursday=S,e.timeThursdays=q,e.timeTuesday=T,e.timeTuesdays=L,e.timeWednesday=M,e.timeWednesdays=z,e.timeWeek=_,e.timeWeeks=I,e.timeYear=Z,e.timeYears=Y,e.utcDay=de,e.utcDays=Ce,e.utcFriday=ge,e.utcFridays=Ue,e.utcHour=De,e.utcHours=ye,e.utcMillisecond=a,e.utcMilliseconds=n,e.utcMinute=oe,e.utcMinutes=pe,e.utcMonday=me,e.utcMondays=Me,e.utcMonth=$e,e.utcMonths=Ae,e.utcSaturday=Re,e.utcSaturdays=Ne,e.utcSecond=h,e.utcSeconds=f,e.utcSunday=ue,e.utcSundays=Ve,e.utcThursday=fe,e.utcThursdays=se,e.utcTuesday=te,e.utcTuesdays=Pe,e.utcWednesday=re,e.utcWednesdays=Fe,e.utcWeek=ue,e.utcWeeks=Ve,e.utcYear=He,e.utcYears=it,Object.defineProperty(e,"__esModule",{value:!0})})});var Pp=X((R_,vI)=>{(function(e,t){typeof R_=="object"&&typeof vI!="undefined"?t(R_,SA()):(e=e||self,t(e.d3=e.d3||{},e.d3))})(R_,function(e,t){"use strict";function r(ce){if(0<=ce.y&&ce.y<100){var ke=new Date(-1,ce.m,ce.d,ce.H,ce.M,ce.S,ce.L);return ke.setFullYear(ce.y),ke}return new Date(ce.y,ce.m,ce.d,ce.H,ce.M,ce.S,ce.L)}function i(ce){if(0<=ce.y&&ce.y<100){var ke=new Date(Date.UTC(-1,ce.m,ce.d,ce.H,ce.M,ce.S,ce.L));return ke.setUTCFullYear(ce.y),ke}return new Date(Date.UTC(ce.y,ce.m,ce.d,ce.H,ce.M,ce.S,ce.L))}function a(ce,ke,Je){return{y:ce,m:ke,d:Je,H:0,M:0,S:0,L:0}}function n(ce){var ke=ce.dateTime,Je=ce.date,at=ce.time,Ar=ce.periods,ti=ce.days,gi=ce.shortDays,Li=ce.months,qr=ce.shortMonths,Cr=f(Ar),ci=d(Ar),Or=f(ti),Ci=d(ti),zi=f(gi),oa=d(gi),ka=f(Li),Wi=d(Li),va=f(qr),At=d(qr),$r={a:Es,A:rs,b:la,B:Uo,c:null,d:$,e:$,f:pe,g:ge,G:Ve,H,I:Z,j:Y,L:oe,m:De,M:ye,p:ks,q:_o,Q:yt,s:Ot,S:de,u:Ce,U:J,V:me,w:te,W:re,x:null,X:null,y:fe,Y:Re,Z:Me,"%":st},Er={a:xo,A:ol,b:Ql,B:On,c:null,d:Pe,e:Pe,f:$e,g:je,G:Qe,H:Fe,I:se,j:Ue,L:Ne,m:Ae,M:He,p:sl,q:Cs,Q:yt,s:Ot,S:it,u:ie,U:Se,V:bt,w:Tt,W:ve,x:null,X:null,y:xe,Y:nt,Z:pt,"%":st},ai={a:Vi,A:to,b:ro,B:pn,c:Ui,d:S,e:S,f:z,g:_,G:b,H:P,I:P,j:k,L,m:M,M:I,p:Hr,q:T,Q:V,s:j,S:B,u:m,U:g,V:y,w:p,W:x,x:Jl,X:sa,y:_,Y:b,Z:A,"%":q};$r.x=Ut(Je,$r),$r.X=Ut(at,$r),$r.c=Ut(ke,$r),Er.x=Ut(Je,Er),Er.X=Ut(at,Er),Er.c=Ut(ke,Er);function Ut(Qt,Jt){return function(Zr){var St=[],Za=-1,Mi=0,Xi=Qt.length,Hi,mn,is;for(Zr instanceof Date||(Zr=new Date(+Zr));++Za53)return null;"w"in St||(St.w=1),"Z"in St?(Mi=i(a(St.y,0,1)),Xi=Mi.getUTCDay(),Mi=Xi>4||Xi===0?t.utcMonday.ceil(Mi):t.utcMonday(Mi),Mi=t.utcDay.offset(Mi,(St.V-1)*7),St.y=Mi.getUTCFullYear(),St.m=Mi.getUTCMonth(),St.d=Mi.getUTCDate()+(St.w+6)%7):(Mi=r(a(St.y,0,1)),Xi=Mi.getDay(),Mi=Xi>4||Xi===0?t.timeMonday.ceil(Mi):t.timeMonday(Mi),Mi=t.timeDay.offset(Mi,(St.V-1)*7),St.y=Mi.getFullYear(),St.m=Mi.getMonth(),St.d=Mi.getDate()+(St.w+6)%7)}else("W"in St||"U"in St)&&("w"in St||(St.w="u"in St?St.u%7:"W"in St?1:0),Xi="Z"in St?i(a(St.y,0,1)).getUTCDay():r(a(St.y,0,1)).getDay(),St.m=0,St.d="W"in St?(St.w+6)%7+St.W*7-(Xi+5)%7:St.w+St.U*7-(Xi+6)%7);return"Z"in St?(St.H+=St.Z/100|0,St.M+=St.Z%100,i(St)):r(St)}}function Kr(Qt,Jt,Zr,St){for(var Za=0,Mi=Jt.length,Xi=Zr.length,Hi,mn;Za=Xi)return-1;if(Hi=Jt.charCodeAt(Za++),Hi===37){if(Hi=Jt.charAt(Za++),mn=ai[Hi in o?Jt.charAt(Za++):Hi],!mn||(St=mn(Qt,Zr,St))<0)return-1}else if(Hi!=Zr.charCodeAt(St++))return-1}return St}function Hr(Qt,Jt,Zr){var St=Cr.exec(Jt.slice(Zr));return St?(Qt.p=ci[St[0].toLowerCase()],Zr+St[0].length):-1}function Vi(Qt,Jt,Zr){var St=zi.exec(Jt.slice(Zr));return St?(Qt.w=oa[St[0].toLowerCase()],Zr+St[0].length):-1}function to(Qt,Jt,Zr){var St=Or.exec(Jt.slice(Zr));return St?(Qt.w=Ci[St[0].toLowerCase()],Zr+St[0].length):-1}function ro(Qt,Jt,Zr){var St=va.exec(Jt.slice(Zr));return St?(Qt.m=At[St[0].toLowerCase()],Zr+St[0].length):-1}function pn(Qt,Jt,Zr){var St=ka.exec(Jt.slice(Zr));return St?(Qt.m=Wi[St[0].toLowerCase()],Zr+St[0].length):-1}function Ui(Qt,Jt,Zr){return Kr(Qt,ke,Jt,Zr)}function Jl(Qt,Jt,Zr){return Kr(Qt,Je,Jt,Zr)}function sa(Qt,Jt,Zr){return Kr(Qt,at,Jt,Zr)}function Es(Qt){return gi[Qt.getDay()]}function rs(Qt){return ti[Qt.getDay()]}function la(Qt){return qr[Qt.getMonth()]}function Uo(Qt){return Li[Qt.getMonth()]}function ks(Qt){return Ar[+(Qt.getHours()>=12)]}function _o(Qt){return 1+~~(Qt.getMonth()/3)}function xo(Qt){return gi[Qt.getUTCDay()]}function ol(Qt){return ti[Qt.getUTCDay()]}function Ql(Qt){return qr[Qt.getUTCMonth()]}function On(Qt){return Li[Qt.getUTCMonth()]}function sl(Qt){return Ar[+(Qt.getUTCHours()>=12)]}function Cs(Qt){return 1+~~(Qt.getUTCMonth()/3)}return{format:function(Qt){var Jt=Ut(Qt+="",$r);return Jt.toString=function(){return Qt},Jt},parse:function(Qt){var Jt=Fi(Qt+="",!1);return Jt.toString=function(){return Qt},Jt},utcFormat:function(Qt){var Jt=Ut(Qt+="",Er);return Jt.toString=function(){return Qt},Jt},utcParse:function(Qt){var Jt=Fi(Qt+="",!0);return Jt.toString=function(){return Qt},Jt}}}var o={"-":"",_:" ",0:"0"},s=/^\s*\d+/,l=/^%/,u=/[\\^$*+?|[\]().{}]/g;function c(ce,ke,Je){var at=ce<0?"-":"",Ar=(at?-ce:ce)+"",ti=Ar.length;return at+(ti68?1900:2e3),Je+at[0].length):-1}function A(ce,ke,Je){var at=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(ke.slice(Je,Je+6));return at?(ce.Z=at[1]?0:-(at[2]+(at[3]||"00")),Je+at[0].length):-1}function T(ce,ke,Je){var at=s.exec(ke.slice(Je,Je+1));return at?(ce.q=at[0]*3-3,Je+at[0].length):-1}function M(ce,ke,Je){var at=s.exec(ke.slice(Je,Je+2));return at?(ce.m=at[0]-1,Je+at[0].length):-1}function S(ce,ke,Je){var at=s.exec(ke.slice(Je,Je+2));return at?(ce.d=+at[0],Je+at[0].length):-1}function k(ce,ke,Je){var at=s.exec(ke.slice(Je,Je+3));return at?(ce.m=0,ce.d=+at[0],Je+at[0].length):-1}function P(ce,ke,Je){var at=s.exec(ke.slice(Je,Je+2));return at?(ce.H=+at[0],Je+at[0].length):-1}function I(ce,ke,Je){var at=s.exec(ke.slice(Je,Je+2));return at?(ce.M=+at[0],Je+at[0].length):-1}function B(ce,ke,Je){var at=s.exec(ke.slice(Je,Je+2));return at?(ce.S=+at[0],Je+at[0].length):-1}function L(ce,ke,Je){var at=s.exec(ke.slice(Je,Je+3));return at?(ce.L=+at[0],Je+at[0].length):-1}function z(ce,ke,Je){var at=s.exec(ke.slice(Je,Je+6));return at?(ce.L=Math.floor(at[0]/1e3),Je+at[0].length):-1}function q(ce,ke,Je){var at=l.exec(ke.slice(Je,Je+1));return at?Je+at[0].length:-1}function V(ce,ke,Je){var at=s.exec(ke.slice(Je));return at?(ce.Q=+at[0],Je+at[0].length):-1}function j(ce,ke,Je){var at=s.exec(ke.slice(Je));return at?(ce.s=+at[0],Je+at[0].length):-1}function $(ce,ke){return c(ce.getDate(),ke,2)}function H(ce,ke){return c(ce.getHours(),ke,2)}function Z(ce,ke){return c(ce.getHours()%12||12,ke,2)}function Y(ce,ke){return c(1+t.timeDay.count(t.timeYear(ce),ce),ke,3)}function oe(ce,ke){return c(ce.getMilliseconds(),ke,3)}function pe(ce,ke){return oe(ce,ke)+"000"}function De(ce,ke){return c(ce.getMonth()+1,ke,2)}function ye(ce,ke){return c(ce.getMinutes(),ke,2)}function de(ce,ke){return c(ce.getSeconds(),ke,2)}function Ce(ce){var ke=ce.getDay();return ke===0?7:ke}function J(ce,ke){return c(t.timeSunday.count(t.timeYear(ce)-1,ce),ke,2)}function ue(ce){var ke=ce.getDay();return ke>=4||ke===0?t.timeThursday(ce):t.timeThursday.ceil(ce)}function me(ce,ke){return ce=ue(ce),c(t.timeThursday.count(t.timeYear(ce),ce)+(t.timeYear(ce).getDay()===4),ke,2)}function te(ce){return ce.getDay()}function re(ce,ke){return c(t.timeMonday.count(t.timeYear(ce)-1,ce),ke,2)}function fe(ce,ke){return c(ce.getFullYear()%100,ke,2)}function ge(ce,ke){return ce=ue(ce),c(ce.getFullYear()%100,ke,2)}function Re(ce,ke){return c(ce.getFullYear()%1e4,ke,4)}function Ve(ce,ke){var Je=ce.getDay();return ce=Je>=4||Je===0?t.timeThursday(ce):t.timeThursday.ceil(ce),c(ce.getFullYear()%1e4,ke,4)}function Me(ce){var ke=ce.getTimezoneOffset();return(ke>0?"-":(ke*=-1,"+"))+c(ke/60|0,"0",2)+c(ke%60,"0",2)}function Pe(ce,ke){return c(ce.getUTCDate(),ke,2)}function Fe(ce,ke){return c(ce.getUTCHours(),ke,2)}function se(ce,ke){return c(ce.getUTCHours()%12||12,ke,2)}function Ue(ce,ke){return c(1+t.utcDay.count(t.utcYear(ce),ce),ke,3)}function Ne(ce,ke){return c(ce.getUTCMilliseconds(),ke,3)}function $e(ce,ke){return Ne(ce,ke)+"000"}function Ae(ce,ke){return c(ce.getUTCMonth()+1,ke,2)}function He(ce,ke){return c(ce.getUTCMinutes(),ke,2)}function it(ce,ke){return c(ce.getUTCSeconds(),ke,2)}function ie(ce){var ke=ce.getUTCDay();return ke===0?7:ke}function Se(ce,ke){return c(t.utcSunday.count(t.utcYear(ce)-1,ce),ke,2)}function ot(ce){var ke=ce.getUTCDay();return ke>=4||ke===0?t.utcThursday(ce):t.utcThursday.ceil(ce)}function bt(ce,ke){return ce=ot(ce),c(t.utcThursday.count(t.utcYear(ce),ce)+(t.utcYear(ce).getUTCDay()===4),ke,2)}function Tt(ce){return ce.getUTCDay()}function ve(ce,ke){return c(t.utcMonday.count(t.utcYear(ce)-1,ce),ke,2)}function xe(ce,ke){return c(ce.getUTCFullYear()%100,ke,2)}function je(ce,ke){return ce=ot(ce),c(ce.getUTCFullYear()%100,ke,2)}function nt(ce,ke){return c(ce.getUTCFullYear()%1e4,ke,4)}function Qe(ce,ke){var Je=ce.getUTCDay();return ce=Je>=4||Je===0?t.utcThursday(ce):t.utcThursday.ceil(ce),c(ce.getUTCFullYear()%1e4,ke,4)}function pt(){return"+0000"}function st(){return"%"}function yt(ce){return+ce}function Ot(ce){return Math.floor(+ce/1e3)}var We;mt({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 mt(ce){return We=n(ce),e.timeFormat=We.format,e.timeParse=We.parse,e.utcFormat=We.utcFormat,e.utcParse=We.utcParse,We}var Ye="%Y-%m-%dT%H:%M:%S.%LZ";function vt(ce){return ce.toISOString()}var Dt=Date.prototype.toISOString?vt:e.utcFormat(Ye);function Ft(ce){var ke=new Date(ce);return isNaN(ke)?null:ke}var zt=+new Date("2000-01-01T00:00:00.000Z")?Ft:e.utcParse(Ye);e.isoFormat=Dt,e.isoParse=zt,e.timeFormatDefaultLocale=mt,e.timeFormatLocale=n,Object.defineProperty(e,"__esModule",{value:!0})})});var EA=X((B_,gI)=>{(function(e,t){typeof B_=="object"&&typeof gI!="undefined"?t(B_):(e=typeof globalThis!="undefined"?globalThis:e||self,t(e.d3=e.d3||{}))})(B_,(function(e){"use strict";function t(M){return Math.abs(M=Math.round(M))>=1e21?M.toLocaleString("en").replace(/,/g,""):M.toString(10)}function r(M,S){if((k=(M=S?M.toExponential(S-1):M.toExponential()).indexOf("e"))<0)return null;var k,P=M.slice(0,k);return[P.length>1?P[0]+P.slice(2):P,+M.slice(k+1)]}function i(M){return M=r(Math.abs(M)),M?M[1]:NaN}function a(M,S){return function(k,P){for(var I=k.length,B=[],L=0,z=M[0],q=0;I>0&&z>0&&(q+z+1>P&&(z=Math.max(1,P-q)),B.push(k.substring(I-=z,I+z)),!((q+=z+1)>P));)z=M[L=(L+1)%M.length];return B.reverse().join(S)}}function n(M){return function(S){return S.replace(/[0-9]/g,function(k){return M[+k]})}}var o=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function s(M){if(!(S=o.exec(M)))throw new Error("invalid format: "+M);var S;return new l({fill:S[1],align:S[2],sign:S[3],symbol:S[4],zero:S[5],width:S[6],comma:S[7],precision:S[8]&&S[8].slice(1),trim:S[9],type:S[10]})}s.prototype=l.prototype;function l(M){this.fill=M.fill===void 0?" ":M.fill+"",this.align=M.align===void 0?">":M.align+"",this.sign=M.sign===void 0?"-":M.sign+"",this.symbol=M.symbol===void 0?"":M.symbol+"",this.zero=!!M.zero,this.width=M.width===void 0?void 0:+M.width,this.comma=!!M.comma,this.precision=M.precision===void 0?void 0:+M.precision,this.trim=!!M.trim,this.type=M.type===void 0?"":M.type+""}l.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 u(M){e:for(var S=M.length,k=1,P=-1,I;k0&&(P=0);break}return P>0?M.slice(0,P)+M.slice(I+1):M}var c;function h(M,S){var k=r(M,S);if(!k)return M+"";var P=k[0],I=k[1],B=I-(c=Math.max(-8,Math.min(8,Math.floor(I/3)))*3)+1,L=P.length;return B===L?P:B>L?P+new Array(B-L+1).join("0"):B>0?P.slice(0,B)+"."+P.slice(B):"0."+new Array(1-B).join("0")+r(M,Math.max(0,S+B-1))[0]}function f(M,S){var k=r(M,S);if(!k)return M+"";var P=k[0],I=k[1];return I<0?"0."+new Array(-I).join("0")+P:P.length>I+1?P.slice(0,I+1)+"."+P.slice(I+1):P+new Array(I-P.length+2).join("0")}var d={"%":function(M,S){return(M*100).toFixed(S)},b:function(M){return Math.round(M).toString(2)},c:function(M){return M+""},d:t,e:function(M,S){return M.toExponential(S)},f:function(M,S){return M.toFixed(S)},g:function(M,S){return M.toPrecision(S)},o:function(M){return Math.round(M).toString(8)},p:function(M,S){return f(M*100,S)},r:f,s:h,X:function(M){return Math.round(M).toString(16).toUpperCase()},x:function(M){return Math.round(M).toString(16)}};function p(M){return M}var m=Array.prototype.map,g=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function y(M){var S=M.grouping===void 0||M.thousands===void 0?p:a(m.call(M.grouping,Number),M.thousands+""),k=M.currency===void 0?"":M.currency[0]+"",P=M.currency===void 0?"":M.currency[1]+"",I=M.decimal===void 0?".":M.decimal+"",B=M.numerals===void 0?p:n(m.call(M.numerals,String)),L=M.percent===void 0?"%":M.percent+"",z=M.minus===void 0?"-":M.minus+"",q=M.nan===void 0?"NaN":M.nan+"";function V($){$=s($);var H=$.fill,Z=$.align,Y=$.sign,oe=$.symbol,pe=$.zero,De=$.width,ye=$.comma,de=$.precision,Ce=$.trim,J=$.type;J==="n"?(ye=!0,J="g"):d[J]||(de===void 0&&(de=12),Ce=!0,J="g"),(pe||H==="0"&&Z==="=")&&(pe=!0,H="0",Z="=");var ue=oe==="$"?k:oe==="#"&&/[boxX]/.test(J)?"0"+J.toLowerCase():"",me=oe==="$"?P:/[%p]/.test(J)?L:"",te=d[J],re=/[defgprs%]/.test(J);de=de===void 0?6:/[gprs]/.test(J)?Math.max(1,Math.min(21,de)):Math.max(0,Math.min(20,de));function fe(ge){var Re=ue,Ve=me,Me,Pe,Fe;if(J==="c")Ve=te(ge)+Ve,ge="";else{ge=+ge;var se=ge<0||1/ge<0;if(ge=isNaN(ge)?q:te(Math.abs(ge),de),Ce&&(ge=u(ge)),se&&+ge==0&&Y!=="+"&&(se=!1),Re=(se?Y==="("?Y:z:Y==="-"||Y==="("?"":Y)+Re,Ve=(J==="s"?g[8+c/3]:"")+Ve+(se&&Y==="("?")":""),re){for(Me=-1,Pe=ge.length;++MeFe||Fe>57){Ve=(Fe===46?I+ge.slice(Me+1):ge.slice(Me))+Ve,ge=ge.slice(0,Me);break}}}ye&&!pe&&(ge=S(ge,1/0));var Ue=Re.length+ge.length+Ve.length,Ne=Ue>1)+Re+ge+Ve+Ne.slice(Ue);break;default:ge=Ne+Re+ge+Ve;break}return B(ge)}return fe.toString=function(){return $+""},fe}function j($,H){var Z=V(($=s($),$.type="f",$)),Y=Math.max(-8,Math.min(8,Math.floor(i(H)/3)))*3,oe=Math.pow(10,-Y),pe=g[8+Y/3];return function(De){return Z(oe*De)+pe}}return{format:V,formatPrefix:j}}var x;b({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function b(M){return x=y(M),e.format=x.format,e.formatPrefix=x.formatPrefix,x}function _(M){return Math.max(0,-i(Math.abs(M)))}function A(M,S){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(i(S)/3)))*3-i(Math.abs(M)))}function T(M,S){return M=Math.abs(M),S=Math.abs(S)-M,Math.max(0,i(S)-i(M))+1}e.FormatSpecifier=l,e.formatDefaultLocale=b,e.formatLocale=y,e.formatSpecifier=s,e.precisionFixed=_,e.precisionPrefix=A,e.precisionRound=T,Object.defineProperty(e,"__esModule",{value:!0})}))});var _I=X((KKe,yI)=>{"use strict";yI.exports=function(e){for(var t=e.length,r,i=0;i13)&&r!==32&&r!==133&&r!==160&&r!==5760&&r!==6158&&(r<8192||r>8205)&&r!==8232&&r!==8233&&r!==8239&&r!==8287&&r!==8288&&r!==12288&&r!==65279)return!1;return!0}});var Nr=X((JKe,xI)=>{"use strict";var F0e=_I();xI.exports=function(e){var t=typeof e;if(t==="string"){var r=e;if(e=+e,e===0&&F0e(r))return!1}else if(t!=="number")return!1;return e-e<1}});var ua={};Yi(ua,{ALMOST_EQUAL:()=>X0e,BADNUM:()=>kA,EPOCHJD:()=>W0e,FP_SAFE:()=>P0e,LOG_CLIP:()=>K0e,MINUS_SIGN:()=>J0e,ONEAVGMONTH:()=>N0e,ONEAVGQUARTER:()=>B0e,ONEAVGYEAR:()=>L0e,ONEDAY:()=>G0e,ONEHOUR:()=>j0e,ONEMAXMONTH:()=>O0e,ONEMAXQUARTER:()=>R0e,ONEMAXYEAR:()=>I0e,ONEMICROSEC:()=>Y0e,ONEMILLI:()=>Z0e,ONEMIN:()=>$0e,ONEMINMONTH:()=>V0e,ONEMINQUARTER:()=>q0e,ONEMINYEAR:()=>z0e,ONESEC:()=>H0e,ONEWEEK:()=>U0e});var kA,P0e,I0e,L0e,z0e,R0e,B0e,q0e,O0e,N0e,V0e,U0e,G0e,j0e,$0e,H0e,Z0e,Y0e,W0e,X0e,K0e,J0e,Ji=Gi(()=>{"use strict";kA=void 0,P0e=Number.MAX_VALUE*1e-4,I0e=316224e5,L0e=315576e5,z0e=31536e6,R0e=79488e5,B0e=78894e5,q0e=76896e5,O0e=26784e5,N0e=26298e5,V0e=24192e5,U0e=6048e5,G0e=864e5,j0e=36e5,$0e=6e4,H0e=1e3,Z0e=1,Y0e=.001,W0e=24405875e-1,X0e=1-1e-6,K0e=10,J0e="\u2212"});var CA=X((q_,bI)=>{(function(e,t){typeof q_=="object"&&typeof bI!="undefined"?t(q_):(e=typeof globalThis!="undefined"?globalThis:e||self,t(e["base64-arraybuffer"]={}))})(q_,(function(e){"use strict";for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),i=0;i>2],c+=t[(s[l]&3)<<4|s[l+1]>>4],c+=t[(s[l+1]&15)<<2|s[l+2]>>6],c+=t[s[l+2]&63];return u%3===2?c=c.substring(0,c.length-1)+"=":u%3===1&&(c=c.substring(0,c.length-2)+"=="),c},n=function(o){var s=o.length*.75,l=o.length,u,c=0,h,f,d,p;o[o.length-1]==="="&&(s--,o[o.length-2]==="="&&s--);var m=new ArrayBuffer(s),g=new Uint8Array(m);for(u=0;u>4,g[c++]=(f&15)<<4|d>>2,g[c++]=(d&3)<<6|p&63;return m};e.decode=n,e.encode=a,Object.defineProperty(e,"__esModule",{value:!0})}))});var $h=X((QKe,wI)=>{"use strict";wI.exports=function(t){return window&&window.process&&window.process.versions?Object.prototype.toString.call(t)==="[object Object]":Object.prototype.toString.call(t)==="[object Object]"&&Object.getPrototypeOf(t).hasOwnProperty("hasOwnProperty")}});var hs=X(cu=>{"use strict";var Q0e=CA().decode,ede=$h(),FA=Array.isArray,tde=ArrayBuffer,rde=DataView;function AI(e){return tde.isView(e)&&!(e instanceof rde)}cu.isTypedArray=AI;function O_(e){return FA(e)||AI(e)}cu.isArrayOrTypedArray=O_;function ide(e){return!O_(e[0])}cu.isArray1D=ide;cu.ensureArray=function(e,t){return FA(e)||(e=[]),e.length=t,e};var Fn={u1c:typeof Uint8ClampedArray=="undefined"?void 0:Uint8ClampedArray,i1:typeof Int8Array=="undefined"?void 0:Int8Array,u1:typeof Uint8Array=="undefined"?void 0:Uint8Array,i2:typeof Int16Array=="undefined"?void 0:Int16Array,u2:typeof Uint16Array=="undefined"?void 0:Uint16Array,i4:typeof Int32Array=="undefined"?void 0:Int32Array,u4:typeof Uint32Array=="undefined"?void 0:Uint32Array,f4:typeof Float32Array=="undefined"?void 0:Float32Array,f8:typeof Float64Array=="undefined"?void 0:Float64Array};Fn.uint8c=Fn.u1c;Fn.uint8=Fn.u1;Fn.int8=Fn.i1;Fn.uint16=Fn.u2;Fn.int16=Fn.i2;Fn.uint32=Fn.u4;Fn.int32=Fn.i4;Fn.float32=Fn.f4;Fn.float64=Fn.f8;function PA(e){return e.constructor===ArrayBuffer}cu.isArrayBuffer=PA;cu.decodeTypedArraySpec=function(e){var t=[],r=ade(e),i=r.dtype,a=Fn[i];if(!a)throw new Error('Error in dtype: "'+i+'"');var n=a.BYTES_PER_ELEMENT,o=r.bdata;PA(o)||(o=Q0e(o));var s=r.shape===void 0?[o.byteLength/n]:(""+r.shape).split(",");s.reverse();var l=s.length,u,c,h=+s[0],f=n*h,d=0;if(l===1)t=new a(o);else if(l===2)for(u=+s[1],c=0;c{"use strict";var MI=Nr(),LA=hs().isArrayOrTypedArray;kI.exports=function(t,r){if(MI(r))r=String(r);else if(typeof r!="string"||r.slice(-4)==="[-1]")throw"bad property string";var i=r.split("."),a,n,o,s;for(s=0;s{"use strict";var Ip=uv(),ude=/^\w*$/,cde=0,CI=1,N_=2,FI=3,I0=4;PI.exports=function(t,r,i,a){i=i||"name",a=a||"value";var n,o,s,l={};r&&r.length?(s=Ip(t,r),o=s.get()):o=t,r=r||"";var u={};if(o)for(n=0;n2)return l[d]=l[d]|N_,h.set(f,null);if(c){for(n=d;n{"use strict";var hde=/^(.*)(\.[^\.\[\]]+|\[\d\])$/,fde=/^[^\.\[\]]+$/;LI.exports=function(e,t){for(;t;){var r=e.match(hde);if(r)e=r[1];else if(e.match(fde))e="";else throw new Error("bad relativeAttr call:"+[e,t]);if(t.charAt(0)==="^")t=t.slice(1);else break}return e&&t.charAt(0)!=="["?e+"."+t:e+t}});var V_=X((aJe,RI)=>{"use strict";var dde=Nr();RI.exports=function(t,r){if(t>0)return Math.log(t)/Math.LN10;var i=Math.log(Math.min(r[0],r[1]))/Math.LN10;return dde(i)||(i=Math.log(Math.max(r[0],r[1]))/Math.LN10-6),i}});var OI=X((nJe,qI)=>{"use strict";var BI=hs().isArrayOrTypedArray,cv=$h();qI.exports=function e(t,r){for(var i in r){var a=r[i],n=t[i];if(n!==a)if(i.charAt(0)==="_"||typeof a=="function"){if(i in t)continue;t[i]=a}else if(BI(a)&&BI(n)&&cv(a[0])){if(i==="customdata"||i==="ids")continue;for(var o=Math.min(a.length,n.length),s=0;spde,modHalf:()=>mde});function pde(e,t){let r=e%t;return r<0?r+t:r}function mde(e,t){return Math.abs(e)>t/2?e-Math.round(e/t)*t:e}var zp=Gi(()=>{"use strict"});var Ca=X(dv=>{"use strict";var NI=$h(),hv=Array.isArray;function vde(e,t){var r,i;for(r=0;r{"use strict";VI.exports=function(e){var t=e.variantValues,r=e.editType,i=e.colorEditType;i===void 0&&(i=r);var a={editType:r,valType:"integer",min:1,max:1e3,extras:["normal","bold"],dflt:"normal"};e.noNumericWeightValues&&(a.valType="enumerated",a.values=a.extras,a.extras=void 0,a.min=void 0,a.max=void 0);var n={family:{valType:"string",noBlank:!0,strict:!0,editType:r},size:{valType:"number",min:1,editType:r},color:{valType:"color",editType:i},weight:a,style:{editType:r,valType:"enumerated",values:["normal","italic"],dflt:"normal"},variant:e.noFontVariant?void 0:{editType:r,valType:"enumerated",values:t||["normal","small-caps","all-small-caps","all-petite-caps","petite-caps","unicase"],dflt:"normal"},textcase:e.noFontTextcase?void 0:{editType:r,valType:"enumerated",values:["normal","word caps","upper","lower"],dflt:"normal"},lineposition:e.noFontLineposition?void 0:{editType:r,valType:"flaglist",flags:["under","over","through"],extras:["none"],dflt:"none"},shadow:e.noFontShadow?void 0:{editType:r,valType:"string",dflt:e.autoShadowDflt?"auto":"none"},editType:r};return e.autoSize&&(n.size.dflt="auto"),e.autoColor&&(n.color.dflt="auto"),e.arrayOk&&(n.family.arrayOk=!0,n.weight.arrayOk=!0,n.style.arrayOk=!0,e.noFontVariant||(n.variant.arrayOk=!0),e.noFontTextcase||(n.textcase.arrayOk=!0),e.noFontLineposition||(n.lineposition.arrayOk=!0),e.noFontShadow||(n.shadow.arrayOk=!0),n.size.arrayOk=!0,n.color.arrayOk=!0),n}});var pv={};Yi(pv,{HOVERARROWSIZE:()=>yde,HOVERFONT:()=>bde,HOVERFONTSIZE:()=>xde,HOVERID:()=>Ade,HOVERMINTIME:()=>wde,HOVERTEXTPAD:()=>_de,YANGLE:()=>gde});var gde,yde,_de,xde,bde,wde,Ade,mv=Gi(()=>{"use strict";gde=60,yde=6,_de=3,xde=13,bde="Arial, sans-serif",wde=50,Ade="-hover"});var Rp=X((lJe,jI)=>{"use strict";var UI=(mv(),lt(pv)),GI=oo(),zA=GI({editType:"none"});zA.family.dflt=UI.HOVERFONT;zA.size.dflt=UI.HOVERFONTSIZE;jI.exports={clickmode:{valType:"flaglist",flags:["event","select"],dflt:"event",editType:"plot",extras:["none"]},dragmode:{valType:"enumerated",values:["zoom","pan","select","lasso","drawclosedpath","drawopenpath","drawline","drawrect","drawcircle","orbit","turntable",!1],dflt:"zoom",editType:"modebar"},hovermode:{valType:"enumerated",values:["x","y","closest",!1,"x unified","y unified"],dflt:"closest",editType:"modebar"},hoversort:{valType:"enumerated",values:["trace","value descending","value ascending"],dflt:"trace",editType:"none"},hoversubplots:{valType:"enumerated",values:["single","overlaying","axis"],dflt:"overlaying",editType:"none"},hoveranywhere:{valType:"boolean",dflt:!1,editType:"none"},clickanywhere:{valType:"boolean",dflt:!1,editType:"none"},hoverdistance:{valType:"integer",min:-1,dflt:20,editType:"none"},spikedistance:{valType:"integer",min:-1,dflt:-1,editType:"none"},hoverlabel:{bgcolor:{valType:"color",editType:"none"},bordercolor:{valType:"color",editType:"none"},font:zA,grouptitlefont:GI({editType:"none"}),align:{valType:"enumerated",values:["left","right","auto"],dflt:"auto",editType:"none"},namelength:{valType:"integer",min:-1,dflt:15,editType:"none"},showarrow:{valType:"boolean",dflt:!0,editType:"none"},editType:"none"},selectdirection:{valType:"enumerated",values:["h","v","d","any"],dflt:"any",editType:"none"}}});var U_=X((uJe,$I)=>{"use strict";var Tde=oo(),vv=Rp().hoverlabel,gv=Ca().extendFlat;$I.exports={hoverlabel:{bgcolor:gv({},vv.bgcolor,{arrayOk:!0}),bordercolor:gv({},vv.bordercolor,{arrayOk:!0}),font:Tde({arrayOk:!0,editType:"none"}),align:gv({},vv.align,{arrayOk:!0}),namelength:gv({},vv.namelength,{arrayOk:!0}),showarrow:gv({},vv.showarrow),editType:"none"}}});var Wo=X((cJe,HI)=>{"use strict";var Mde=oo(),Dde=U_();HI.exports={type:{valType:"enumerated",values:[],dflt:"scatter",editType:"calc+clearAxisTypes",_noTemplating:!0},visible:{valType:"enumerated",values:[!0,!1,"legendonly"],dflt:!0,editType:"calc"},showlegend:{valType:"boolean",dflt:!0,editType:"style"},legend:{valType:"subplotid",dflt:"legend",editType:"style"},legendgroup:{valType:"string",dflt:"",editType:"style"},legendgrouptitle:{text:{valType:"string",dflt:"",editType:"style"},font:Mde({editType:"style"}),editType:"style"},legendrank:{valType:"number",dflt:1e3,editType:"style"},legendwidth:{valType:"number",min:0,editType:"style"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"style"},name:{valType:"string",editType:"style"},uid:{valType:"string",editType:"plot",anim:!0},ids:{valType:"data_array",editType:"calc",anim:!0},customdata:{valType:"data_array",editType:"calc"},meta:{valType:"any",arrayOk:!0,editType:"plot"},selectedpoints:{valType:"any",editType:"calc"},hoverinfo:{valType:"flaglist",flags:["x","y","z","text","name"],extras:["all","none","skip"],arrayOk:!0,dflt:"all",editType:"none"},hoverlabel:Dde.hoverlabel,uirevision:{valType:"any",editType:"none"}}});var qz=X((gJe,Bz)=>{var ST=Object.defineProperty,Sde=Object.getOwnPropertyDescriptor,Ede=Object.getOwnPropertyNames,kde=Object.prototype.hasOwnProperty,Cde=(e,t)=>{for(var r in t)ST(e,r,{get:t[r],enumerable:!0})},Fde=(e,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Ede(t))!kde.call(e,a)&&a!==r&&ST(e,a,{get:()=>t[a],enumerable:!(i=Sde(t,a))||i.enumerable});return e},Pde=e=>Fde(ST({},"__esModule",{value:!0}),e),rL={};Cde(rL,{a98:()=>Ave,average:()=>Epe,averageAngle:()=>Qu,averageNumber:()=>_L,blend:()=>Sme,blerp:()=>sT,clampChroma:()=>Zme,clampGamut:()=>e7,clampRgb:()=>Hme,colorsNamed:()=>aL,convertA98ToXyz65:()=>lT,convertCubehelixToRgb:()=>gL,convertDlchToLab65:()=>K_,convertHsiToRgb:()=>SL,convertHslToRgb:()=>CL,convertHsvToRgb:()=>IT,convertHwbToRgb:()=>LL,convertItpToXyz65:()=>cT,convertJabToJch:()=>fT,convertJabToRgb:()=>OT,convertJabToXyz65:()=>BT,convertJchToJab:()=>dT,convertLab65ToDlch:()=>J_,convertLab65ToRgb:()=>Mv,convertLab65ToXyz65:()=>CT,convertLabToLch:()=>jc,convertLabToRgb:()=>VT,convertLabToXyz50:()=>lx,convertLchToLab:()=>$c,convertLchuvToLuv:()=>jT,convertLrgbToOklab:()=>$T,convertLrgbToRgb:()=>N0,convertLuvToLchuv:()=>GT,convertLuvToXyz50:()=>ex,convertOkhslToOklab:()=>vT,convertOkhsvToOklab:()=>yT,convertOklabToLrgb:()=>jp,convertOklabToOkhsl:()=>mT,convertOklabToOkhsv:()=>gT,convertOklabToRgb:()=>Ev,convertP3ToXyz65:()=>_T,convertProphotoToXyz50:()=>wT,convertRec2020ToXyz65:()=>TT,convertRgbToCubehelix:()=>vL,convertRgbToHsi:()=>EL,convertRgbToHsl:()=>FL,convertRgbToHsv:()=>LT,convertRgbToHwb:()=>zL,convertRgbToJab:()=>qT,convertRgbToLab:()=>UT,convertRgbToLab65:()=>Dv,convertRgbToLrgb:()=>O0,convertRgbToOklab:()=>Sv,convertRgbToXyb:()=>uz,convertRgbToXyz50:()=>Gp,convertRgbToXyz65:()=>Hh,convertRgbToYiq:()=>vz,convertXybToRgb:()=>cz,convertXyz50ToLab:()=>ux,convertXyz50ToLuv:()=>Q_,convertXyz50ToProphoto:()=>bT,convertXyz50ToRgb:()=>Up,convertXyz50ToXyz65:()=>pz,convertXyz65ToA98:()=>uT,convertXyz65ToItp:()=>hT,convertXyz65ToJab:()=>RT,convertXyz65ToLab65:()=>FT,convertXyz65ToP3:()=>xT,convertXyz65ToRec2020:()=>AT,convertXyz65ToRgb:()=>Zh,convertXyz65ToXyz50:()=>dz,convertYiqToRgb:()=>gz,converter:()=>Qi,cubehelix:()=>Tve,differenceCie76:()=>bpe,differenceCie94:()=>wpe,differenceCiede2000:()=>Ape,differenceCmc:()=>Tpe,differenceEuclidean:()=>Vp,differenceHueChroma:()=>Tv,differenceHueNaive:()=>yL,differenceHueSaturation:()=>Av,differenceHyab:()=>Mpe,differenceItp:()=>Spe,differenceKotsarenkoRamos:()=>Dpe,displayable:()=>QT,dlab:()=>Mve,dlch:()=>Dve,easingGamma:()=>Pz,easingInOutSine:()=>bve,easingMidpoint:()=>Mz,easingSmootherstep:()=>_ve,easingSmoothstep:()=>vve,easingSmoothstepInverse:()=>gve,filterBrightness:()=>rve,filterContrast:()=>ive,filterDeficiencyDeuter:()=>pve,filterDeficiencyProt:()=>dve,filterDeficiencyTrit:()=>mve,filterGrayscale:()=>ove,filterHueRotate:()=>lve,filterInvert:()=>sve,filterSaturate:()=>nve,filterSepia:()=>ave,fixupAlpha:()=>yn,fixupHueDecreasing:()=>vpe,fixupHueIncreasing:()=>mpe,fixupHueLonger:()=>ppe,fixupHueShorter:()=>Ju,formatCss:()=>xme,formatHex:()=>bme,formatHex8:()=>wme,formatHsl:()=>Tme,formatRgb:()=>Ame,getMode:()=>To,hsi:()=>Sve,hsl:()=>Eve,hsv:()=>kve,hwb:()=>Cve,inGamut:()=>fx,interpolate:()=>Rme,interpolateWith:()=>Sz,interpolateWithPremultipliedAlpha:()=>Bme,interpolatorLinear:()=>Zt,interpolatorPiecewise:()=>pL,interpolatorSplineBasis:()=>kz,interpolatorSplineBasisClosed:()=>Cz,interpolatorSplineMonotone:()=>Nme,interpolatorSplineMonotone2:()=>Vme,interpolatorSplineMonotoneClosed:()=>Ume,interpolatorSplineNatural:()=>qme,interpolatorSplineNaturalClosed:()=>Ome,itp:()=>Fve,jab:()=>Pve,jch:()=>Ive,lab:()=>Lve,lab65:()=>zve,lch:()=>Rve,lch65:()=>Bve,lchuv:()=>qve,lerp:()=>z0,lrgb:()=>Ove,luv:()=>Nve,mapAlphaDivide:()=>Tz,mapAlphaMultiply:()=>Az,mapTransferGamma:()=>Pme,mapTransferLinear:()=>XT,mapper:()=>kv,modeA98:()=>mL,modeCubehelix:()=>xL,modeDlab:()=>ML,modeDlch:()=>DL,modeHsi:()=>kL,modeHsl:()=>PT,modeHsv:()=>zT,modeHwb:()=>BL,modeItp:()=>NL,modeJab:()=>VL,modeJch:()=>UL,modeLab:()=>cx,modeLab65:()=>jL,modeLch:()=>hx,modeLch65:()=>HL,modeLchuv:()=>WL,modeLrgb:()=>XL,modeLuv:()=>KL,modeOkhsl:()=>QL,modeOkhsv:()=>ez,modeOklab:()=>rz,modeOklch:()=>az,modeP3:()=>nz,modeProphoto:()=>oz,modeRec2020:()=>sz,modeRgb:()=>q0,modeXyb:()=>hz,modeXyz50:()=>fz,modeXyz65:()=>mz,modeYiq:()=>yz,nearest:()=>Xme,okhsl:()=>Vve,okhsv:()=>Uve,oklab:()=>Gve,oklch:()=>jve,p3:()=>$ve,parse:()=>hL,parseHex:()=>oL,parseHsl:()=>IL,parseHslLegacy:()=>PL,parseHwb:()=>RL,parseLab:()=>GL,parseLch:()=>$L,parseNamed:()=>nL,parseOklab:()=>tz,parseOklch:()=>iz,parseRgb:()=>fL,parseRgbLegacy:()=>sL,parseTransparent:()=>dL,prophoto:()=>Hve,random:()=>Fme,rec2020:()=>Zve,removeParser:()=>Hde,rgb:()=>Yve,round:()=>_z,samples:()=>$me,serializeHex:()=>WT,serializeHex8:()=>xz,serializeHsl:()=>wz,serializeRgb:()=>bz,toGamut:()=>Yme,trilerp:()=>ipe,unlerp:()=>rpe,useMode:()=>Bi,useParser:()=>uL,wcagContrast:()=>wve,wcagLuminance:()=>DT,xyb:()=>Wve,xyz50:()=>Xve,xyz65:()=>Kve,yiq:()=>Jve});Bz.exports=Pde(rL);var Ide=(e,t)=>{if(typeof e=="number"){if(t===3)return{mode:"rgb",r:(e>>8&15|e>>4&240)/255,g:(e>>4&15|e&240)/255,b:(e&15|e<<4&240)/255};if(t===4)return{mode:"rgb",r:(e>>12&15|e>>8&240)/255,g:(e>>8&15|e>>4&240)/255,b:(e>>4&15|e&240)/255,alpha:(e&15|e<<4&240)/255};if(t===6)return{mode:"rgb",r:(e>>16&255)/255,g:(e>>8&255)/255,b:(e&255)/255};if(t===8)return{mode:"rgb",r:(e>>24&255)/255,g:(e>>16&255)/255,b:(e>>8&255)/255,alpha:(e&255)/255}}},iL=Ide,Lde={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},aL=Lde,zde=e=>iL(aL[e.toLowerCase()],6),nL=zde,Rde=/^#?([0-9a-f]{8}|[0-9a-f]{6}|[0-9a-f]{4}|[0-9a-f]{3})$/i,Bde=e=>{let t;return(t=e.match(Rde))?iL(parseInt(t[1],16),t[1].length):void 0},oL=Bde,fs="([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)",hJe=`(?:${fs}|none)`,xv=`${fs}%`,fJe=`(?:${fs}%|none)`,ET=`(?:${fs}%|${fs})`,qde=`(?:${fs}%|${fs}|none)`,Ode=`(?:${fs}(deg|grad|rad|turn)|${fs})`,dJe=`(?:${fs}(deg|grad|rad|turn)|${fs}|none)`,Op="\\s*,\\s*",pJe=new RegExp("^"+qde+"$"),Nde=new RegExp(`^rgba?\\(\\s*${fs}${Op}${fs}${Op}${fs}\\s*(?:,\\s*${ET}\\s*)?\\)$`),Vde=new RegExp(`^rgba?\\(\\s*${xv}${Op}${xv}${Op}${xv}\\s*(?:,\\s*${ET}\\s*)?\\)$`),Ude=e=>{let t={mode:"rgb"},r;if(r=e.match(Nde))r[1]!==void 0&&(t.r=r[1]/255),r[2]!==void 0&&(t.g=r[2]/255),r[3]!==void 0&&(t.b=r[3]/255);else if(r=e.match(Vde))r[1]!==void 0&&(t.r=r[1]/100),r[2]!==void 0&&(t.g=r[2]/100),r[3]!==void 0&&(t.b=r[3]/100);else return;return r[4]!==void 0?t.alpha=Math.max(0,Math.min(1,r[4]/100)):r[5]!==void 0&&(t.alpha=Math.max(0,Math.min(1,+r[5]))),t},sL=Ude,Gde=(e,t)=>e===void 0?void 0:typeof e!="object"?hL(e):e.mode!==void 0?e:t?Yr(nr({},e),{mode:t}):void 0,hu=Gde,jde=(e="rgb")=>t=>(t=hu(t,e))!==void 0?t.mode===e?t:Ku[t.mode][e]?Ku[t.mode][e](t):e==="rgb"?Ku[t.mode].rgb(t):Ku.rgb[e](Ku[t.mode].rgb(t)):void 0,Qi=jde,Ku={},lL={},Np=[],kT={},$de=e=>e,Bi=e=>(Ku[e.mode]=nr(nr({},Ku[e.mode]),e.toMode),Object.keys(e.fromMode||{}).forEach(t=>{Ku[t]||(Ku[t]={}),Ku[t][e.mode]=e.fromMode[t]}),e.ranges||(e.ranges={}),e.difference||(e.difference={}),e.channels.forEach(t=>{if(e.ranges[t]===void 0&&(e.ranges[t]=[0,1]),!e.interpolate[t])throw new Error(`Missing interpolator for: ${t}`);typeof e.interpolate[t]=="function"&&(e.interpolate[t]={use:e.interpolate[t]}),e.interpolate[t].fixup||(e.interpolate[t].fixup=$de)}),lL[e.mode]=e,(e.parse||[]).forEach(t=>{uL(t,e.mode)}),Qi(e.mode)),To=e=>lL[e],uL=(e,t)=>{if(typeof e=="string"){if(!t)throw new Error("'mode' required when 'parser' is a string");kT[e]=t}else typeof e=="function"&&Np.indexOf(e)<0&&Np.push(e)},Hde=e=>{if(typeof e=="string")delete kT[e];else if(typeof e=="function"){let t=Np.indexOf(e);t>0&&Np.splice(t,1)}},nT=/[^\x00-\x7F]|[a-zA-Z_]/,Zde=/[^\x00-\x7F]|[-\w]/,qt={Function:"function",Ident:"ident",Number:"number",Percentage:"percentage",ParenClose:")",None:"none",Hue:"hue",Alpha:"alpha"},kr=0;function G_(e){let t=e[kr],r=e[kr+1];return t==="-"||t==="+"?/\d/.test(r)||r==="."&&/\d/.test(e[kr+2]):t==="."?/\d/.test(r):/\d/.test(t)}function oT(e){if(kr>=e.length)return!1;let t=e[kr];if(nT.test(t))return!0;if(t==="-"){if(e.length-kr<2)return!1;let r=e[kr+1];return!!(r==="-"||nT.test(r))}return!1}var Yde={deg:1,rad:180/Math.PI,grad:9/10,turn:360};function yv(e){let t="";if((e[kr]==="-"||e[kr]==="+")&&(t+=e[kr++]),t+=j_(e),e[kr]==="."&&/\d/.test(e[kr+1])&&(t+=e[kr++]+j_(e)),(e[kr]==="e"||e[kr]==="E")&&((e[kr+1]==="-"||e[kr+1]==="+")&&/\d/.test(e[kr+2])?t+=e[kr++]+e[kr++]+j_(e):/\d/.test(e[kr+1])&&(t+=e[kr++]+j_(e))),oT(e)){let r=Z_(e);return r==="deg"||r==="rad"||r==="turn"||r==="grad"?{type:qt.Hue,value:t*Yde[r]}:void 0}return e[kr]==="%"?(kr++,{type:qt.Percentage,value:+t}):{type:qt.Number,value:+t}}function j_(e){let t="";for(;/\d/.test(e[kr]);)t+=e[kr++];return t}function Z_(e){let t="";for(;kr4)){if(r.length===4){if(r[3].type!==qt.Alpha)return;r[3]=r[3].value}return r.length===3&&r.push({type:qt.None,value:void 0}),r.every(a=>a.type!==qt.Alpha)?r:void 0}}function Jde(e,t){e._i=0;let r=e[e._i++];if(!r||r.type!==qt.Function)return;let i=cL(e,t);if(i)return i.unshift(r.value),i}var Qde=e=>{if(typeof e!="string")return;let t=Xde(e),r=t?Jde(t,!0):void 0,i,a=0,n=Np.length;for(;ae==="transparent"?{mode:"rgb",r:0,g:0,b:0,alpha:0}:void 0,dL=tpe,z0=(e,t,r)=>e+r*(t-e),rpe=(e,t,r)=>(r-e)/(t-e),sT=(e,t,r,i,a,n)=>z0(z0(e,t,a),z0(r,i,a),n),ipe=(e,t,r,i,a,n,o,s,l,u,c)=>z0(sT(e,t,r,i,l,u),sT(a,n,o,s,l,u),c),ape=e=>{let t=[];for(let r=0;rt=>{let r=ape(t);return i=>{let a=i*r.length,n=i>=1?r.length-1:Math.max(Math.floor(a),0),o=r[n];return o===void 0?void 0:e(o[0],o[1],a-n)}},Zt=pL(z0),yn=e=>{let t=!1,r=e.map(i=>i!==void 0?(t=!0,i):1);return t?r:e},npe={mode:"rgb",channels:["r","g","b","alpha"],parse:[fL,oL,sL,nL,dL,"srgb"],serialize:"srgb",interpolate:{r:Zt,g:Zt,b:Zt,alpha:{use:Zt,fixup:yn}},gamut:!0,white:{r:1,g:1,b:1},black:{r:0,g:0,b:0}},q0=npe,RA=(e=0)=>Math.pow(Math.abs(e),563/256)*Math.sign(e),ope=e=>{let t=RA(e.r),r=RA(e.g),i=RA(e.b),a={mode:"xyz65",x:.5766690429101305*t+.1855582379065463*r+.1882286462349947*i,y:.297344975250536*t+.6273635662554661*r+.0752914584939979*i,z:.0270313613864123*t+.0706888525358272*r+.9913375368376386*i};return e.alpha!==void 0&&(a.alpha=e.alpha),a},lT=ope,BA=e=>Math.pow(Math.abs(e),256/563)*Math.sign(e),spe=({x:e,y:t,z:r,alpha:i})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let a={mode:"a98",r:BA(e*2.0415879038107465-t*.5650069742788597-.3447313507783297*r),g:BA(e*-.9692436362808798+t*1.8759675015077206+.0415550574071756*r),b:BA(e*.0134442806320312-t*.1183623922310184+1.0151749943912058*r)};return i!==void 0&&(a.alpha=i),a},uT=spe,qA=(e=0)=>{let t=Math.abs(e);return t<=.04045?e/12.92:(Math.sign(e)||1)*Math.pow((t+.055)/1.055,2.4)},lpe=({r:e,g:t,b:r,alpha:i})=>{let a={mode:"lrgb",r:qA(e),g:qA(t),b:qA(r)};return i!==void 0&&(a.alpha=i),a},O0=lpe,upe=e=>{let{r:t,g:r,b:i,alpha:a}=O0(e),n={mode:"xyz65",x:.4123907992659593*t+.357584339383878*r+.1804807884018343*i,y:.2126390058715102*t+.715168678767756*r+.0721923153607337*i,z:.0193308187155918*t+.119194779794626*r+.9505321522496607*i};return a!==void 0&&(n.alpha=a),n},Hh=upe,OA=(e=0)=>{let t=Math.abs(e);return t>.0031308?(Math.sign(e)||1)*(1.055*Math.pow(t,1/2.4)-.055):e*12.92},cpe=({r:e,g:t,b:r,alpha:i},a="rgb")=>{let n={mode:a,r:OA(e),g:OA(t),b:OA(r)};return i!==void 0&&(n.alpha=i),n},N0=cpe,hpe=({x:e,y:t,z:r,alpha:i})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let a=N0({r:e*3.2409699419045226-t*1.537383177570094-.4986107602930034*r,g:e*-.9692436362808796+t*1.8759675015077204+.0415550574071756*r,b:e*.0556300796969936-t*.2039769588889765+1.0569715142428784*r});return i!==void 0&&(a.alpha=i),a},Zh=hpe,fpe=Yr(nr({},q0),{mode:"a98",parse:["a98-rgb"],serialize:"a98-rgb",fromMode:{rgb:e=>uT(Hh(e)),xyz65:uT},toMode:{rgb:e=>Zh(lT(e)),xyz65:lT}}),mL=fpe,dpe=e=>(e=e%360)<0?e+360:e,so=dpe,rx=(e,t)=>e.map((r,i,a)=>{if(r===void 0)return r;let n=so(r);return i===0||e[i-1]===void 0?n:t(n-so(a[i-1]))}).reduce((r,i)=>!r.length||i===void 0||r[r.length-1]===void 0?(r.push(i),r):(r.push(i+r[r.length-1]),r),[]),Ju=e=>rx(e,t=>Math.abs(t)<=180?t:t-360*Math.sign(t)),ppe=e=>rx(e,t=>Math.abs(t)>=180||t===0?t:t-360*Math.sign(t)),mpe=e=>rx(e,t=>t>=0?t:t+360),vpe=e=>rx(e,t=>t<=0?t:t-360),Gn=[-.14861,1.78277,-.29227,-.90649,1.97294,0],gpe=Math.PI/180,ype=180/Math.PI,ZI=Gn[3]*Gn[4],YI=Gn[1]*Gn[4],WI=Gn[1]*Gn[2]-Gn[0]*Gn[3],_pe=({r:e,g:t,b:r,alpha:i})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let a=(WI*r+e*ZI-t*YI)/(WI+ZI-YI),n=r-a,o=(Gn[4]*(t-a)-Gn[2]*n)/Gn[3],s={mode:"cubehelix",l:a,s:a===0||a===1?void 0:Math.sqrt(n*n+o*o)/(Gn[4]*a*(1-a))};return s.s&&(s.h=Math.atan2(o,n)*ype-120),i!==void 0&&(s.alpha=i),s},vL=_pe,xpe=({h:e,s:t,l:r,alpha:i})=>{let a={mode:"rgb"};e=(e===void 0?0:e+120)*gpe,r===void 0&&(r=0);let n=t===void 0?0:t*r*(1-r),o=Math.cos(e),s=Math.sin(e);return a.r=r+n*(Gn[0]*o+Gn[1]*s),a.g=r+n*(Gn[2]*o+Gn[3]*s),a.b=r+n*(Gn[4]*o+Gn[5]*s),i!==void 0&&(a.alpha=i),a},gL=xpe,Av=(e,t)=>{if(e.h===void 0||t.h===void 0||!e.s||!t.s)return 0;let r=so(e.h),i=so(t.h),a=Math.sin((i-r+360)/2*Math.PI/180);return 2*Math.sqrt(e.s*t.s)*a},yL=(e,t)=>{if(e.h===void 0||t.h===void 0)return 0;let r=so(e.h),i=so(t.h);return Math.abs(i-r)>180?r-(i-360*Math.sign(i-r)):i-r},Tv=(e,t)=>{if(e.h===void 0||t.h===void 0||!e.c||!t.c)return 0;let r=so(e.h),i=so(t.h),a=Math.sin((i-r+360)/2*Math.PI/180);return 2*Math.sqrt(e.c*t.c)*a},Vp=(e="rgb",t=[1,1,1,0])=>{let r=To(e),i=r.channels,a=r.difference,n=Qi(e);return(o,s)=>{let l=n(o),u=n(s);return Math.sqrt(i.reduce((c,h,f)=>{let d=a[h]?a[h](l,u):l[h]-u[h];return c+(t[f]||0)*Math.pow(isNaN(d)?0:d,2)},0))}},bpe=()=>Vp("lab65"),wpe=(e=1,t=.045,r=.015)=>{let i=Qi("lab65");return(a,n)=>{let o=i(a),s=i(n),l=o.l,u=o.a,c=o.b,h=Math.sqrt(u*u+c*c),f=s.l,d=s.a,p=s.b,m=Math.sqrt(d*d+p*p),g=Math.pow(l-f,2),y=Math.pow(h-m,2),x=Math.pow(u-d,2)+Math.pow(c-p,2)-y;return Math.sqrt(g/Math.pow(e,2)+y/Math.pow(1+t*h,2)+x/Math.pow(1+r*h,2))}},Ape=(e=1,t=1,r=1)=>{let i=Qi("lab65");return(a,n)=>{let o=i(a),s=i(n),l=o.l,u=o.a,c=o.b,h=Math.sqrt(u*u+c*c),f=s.l,d=s.a,p=s.b,m=Math.sqrt(d*d+p*p),g=(h+m)/2,y=.5*(1-Math.sqrt(Math.pow(g,7)/(Math.pow(g,7)+Math.pow(25,7)))),x=u*(1+y),b=d*(1+y),_=Math.sqrt(x*x+c*c),A=Math.sqrt(b*b+p*p),T=Math.abs(x)+Math.abs(c)===0?0:Math.atan2(c,x);T+=(T<0)*2*Math.PI;let M=Math.abs(b)+Math.abs(p)===0?0:Math.atan2(p,b);M+=(M<0)*2*Math.PI;let S=f-l,k=A-_,P=_*A===0?0:M-T;P-=(P>Math.PI)*2*Math.PI,P+=(P<-Math.PI)*2*Math.PI;let I=2*Math.sqrt(_*A)*Math.sin(P/2),B=(l+f)/2,L=(_+A)/2,z;_*A===0?z=T+M:(z=(T+M)/2,z-=(Math.abs(T-M)>Math.PI)*Math.PI,z+=(z<0)*2*Math.PI);let q=Math.pow(B-50,2),V=1-.17*Math.cos(z-Math.PI/6)+.24*Math.cos(2*z)+.32*Math.cos(3*z+Math.PI/30)-.2*Math.cos(4*z-63*Math.PI/180),j=1+.015*q/Math.sqrt(20+q),$=1+.045*L,H=1+.015*L*V,Z=30*Math.PI/180*Math.exp(-1*Math.pow((180/Math.PI*z-275)/25,2)),Y=2*Math.sqrt(Math.pow(L,7)/(Math.pow(L,7)+Math.pow(25,7))),oe=-1*Math.sin(2*Z)*Y;return Math.sqrt(Math.pow(S/(e*j),2)+Math.pow(k/(t*$),2)+Math.pow(I/(r*H),2)+oe*k/(t*$)*I/(r*H))}},Tpe=(e=1,t=1)=>{let r=Qi("lab65");return(i,a)=>{let n=r(i),o=n.l,s=n.a,l=n.b,u=Math.sqrt(s*s+l*l),c=Math.atan2(l,s);c=c+2*Math.PI*(c<0);let h=r(a),f=h.l,d=h.a,p=h.b,m=Math.sqrt(d*d+p*p),g=Math.pow(o-f,2),y=Math.pow(u-m,2),x=Math.pow(s-d,2)+Math.pow(l-p,2)-y,b=Math.sqrt(Math.pow(u,4)/(Math.pow(u,4)+1900)),_=c>=164/180*Math.PI&&c<=345/180*Math.PI?.56+Math.abs(.2*Math.cos(c+168/180*Math.PI)):.36+Math.abs(.4*Math.cos(c+35/180*Math.PI)),A=o<16?.511:.040975*o/(1+.01765*o),T=.0638*u/(1+.0131*u)+.638,M=T*(b*_+1-b);return Math.sqrt(g/Math.pow(e*A,2)+y/Math.pow(t*T,2)+x/Math.pow(M,2))}},Mpe=()=>{let e=Qi("lab65");return(t,r)=>{let i=e(t),a=e(r),n=i.l-a.l,o=i.a-a.a,s=i.b-a.b;return Math.abs(n)+Math.sqrt(o*o+s*s)}},Dpe=()=>Vp("yiq",[.5053,.299,.1957]),Spe=()=>Vp("itp",[518400,129600,518400]),Qu=e=>{let t=e.reduce((i,a)=>{if(a!==void 0){let n=a*Math.PI/180;i.sin+=Math.sin(n),i.cos+=Math.cos(n)}return i},{sin:0,cos:0}),r=Math.atan2(t.sin,t.cos)*180/Math.PI;return r<0?360+r:r},_L=e=>{let t=e.filter(r=>r!==void 0);return t.length?t.reduce((r,i)=>r+i,0)/t.length:void 0},NA=e=>typeof e=="function";function Epe(e,t="rgb",r){let i=To(t),a=e.map(Qi(t));return i.channels.reduce((n,o)=>{let s=a.map(l=>l[o]).filter(l=>l!==void 0);if(s.length){let l;NA(r)?l=r:r&&NA(r[o])?l=r[o]:i.average&&NA(i.average[o])?l=i.average[o]:l=_L,n[o]=l(s,o)}return n},{mode:t})}var kpe={mode:"cubehelix",channels:["h","s","l","alpha"],parse:["--cubehelix"],serialize:"--cubehelix",ranges:{h:[0,360],s:[0,4.614],l:[0,1]},fromMode:{rgb:vL},toMode:{rgb:gL},interpolate:{h:{use:Zt,fixup:Ju},s:Zt,l:Zt,alpha:{use:Zt,fixup:yn}},difference:{h:Av},average:{h:Qu}},xL=kpe,Cpe=({l:e,a:t,b:r,alpha:i},a="lch")=>{t===void 0&&(t=0),r===void 0&&(r=0);let n=Math.sqrt(t*t+r*r),o={mode:a,l:e,c:n};return n&&(o.h=so(Math.atan2(r,t)*180/Math.PI)),i!==void 0&&(o.alpha=i),o},jc=Cpe,Fpe=({l:e,c:t,h:r,alpha:i},a="lab")=>{r===void 0&&(r=0);let n={mode:a,l:e,a:t?t*Math.cos(r/180*Math.PI):0,b:t?t*Math.sin(r/180*Math.PI):0};return i!==void 0&&(n.alpha=i),n},$c=Fpe,bL=Math.pow(29,3)/Math.pow(3,3),wL=Math.pow(6,3)/Math.pow(29,3),gn={X:.3457/.3585,Y:1,Z:(1-.3457-.3585)/.3585},qp={X:.3127/.329,Y:1,Z:(1-.3127-.329)/.329},mJe=Math.pow(29,3)/Math.pow(3,3),vJe=Math.pow(6,3)/Math.pow(29,3),VA=e=>Math.pow(e,3)>wL?Math.pow(e,3):(116*e-16)/bL,Ppe=({l:e,a:t,b:r,alpha:i})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let a=(e+16)/116,n=t/500+a,o=a-r/200,s={mode:"xyz65",x:VA(n)*qp.X,y:VA(a)*qp.Y,z:VA(o)*qp.Z};return i!==void 0&&(s.alpha=i),s},CT=Ppe,Ipe=e=>Zh(CT(e)),Mv=Ipe,UA=e=>e>wL?Math.cbrt(e):(bL*e+16)/116,Lpe=({x:e,y:t,z:r,alpha:i})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let a=UA(e/qp.X),n=UA(t/qp.Y),o=UA(r/qp.Z),s={mode:"lab65",l:116*n-16,a:500*(a-n),b:200*(n-o)};return i!==void 0&&(s.alpha=i),s},FT=Lpe,zpe=e=>{let t=FT(Hh(e));return e.r===e.b&&e.b===e.g&&(t.a=t.b=0),t},Dv=zpe,Y_=1,AL=1,wv=26/180*Math.PI,W_=Math.cos(wv),X_=Math.sin(wv),TL=100/Math.log(139/100),Rpe=({l:e,c:t,h:r,alpha:i})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let a={mode:"lab65",l:(Math.exp(e*Y_/TL)-1)/.0039},n=(Math.exp(.0435*t*AL*Y_)-1)/.075,o=n*Math.cos(r/180*Math.PI-wv),s=n*Math.sin(r/180*Math.PI-wv);return a.a=o*W_-s/.83*X_,a.b=o*X_+s/.83*W_,i!==void 0&&(a.alpha=i),a},K_=Rpe,Bpe=({l:e,a:t,b:r,alpha:i})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let a=t*W_+r*X_,n=.83*(r*W_-t*X_),o=Math.sqrt(a*a+n*n),s={mode:"dlch",l:TL/Y_*Math.log(1+.0039*e),c:Math.log(1+.075*o)/(.0435*AL*Y_)};return s.c&&(s.h=so((Math.atan2(n,a)+wv)/Math.PI*180)),i!==void 0&&(s.alpha=i),s},J_=Bpe,XI=e=>K_(jc(e,"dlch")),KI=e=>$c(J_(e),"dlab"),qpe={mode:"dlab",parse:["--din99o-lab"],serialize:"--din99o-lab",toMode:{lab65:XI,rgb:e=>Mv(XI(e))},fromMode:{lab65:KI,rgb:e=>KI(Dv(e))},channels:["l","a","b","alpha"],ranges:{l:[0,100],a:[-40.09,45.501],b:[-40.469,44.344]},interpolate:{l:Zt,a:Zt,b:Zt,alpha:{use:Zt,fixup:yn}}},ML=qpe,Ope={mode:"dlch",parse:["--din99o-lch"],serialize:"--din99o-lch",toMode:{lab65:K_,dlab:e=>$c(e,"dlab"),rgb:e=>Mv(K_(e))},fromMode:{lab65:J_,dlab:e=>jc(e,"dlch"),rgb:e=>J_(Dv(e))},channels:["l","c","h","alpha"],ranges:{l:[0,100],c:[0,51.484],h:[0,360]},interpolate:{l:Zt,c:Zt,h:{use:Zt,fixup:Ju},alpha:{use:Zt,fixup:yn}},difference:{h:Tv},average:{h:Qu}},DL=Ope;function SL({h:e,s:t,i:r,alpha:i}){e=so(e!==void 0?e:0),t===void 0&&(t=0),r===void 0&&(r=0);let a=Math.abs(e/60%2-1),n;switch(Math.floor(e/60)){case 0:n={r:r*(1+t*(3/(2-a)-1)),g:r*(1+t*(3*(1-a)/(2-a)-1)),b:r*(1-t)};break;case 1:n={r:r*(1+t*(3*(1-a)/(2-a)-1)),g:r*(1+t*(3/(2-a)-1)),b:r*(1-t)};break;case 2:n={r:r*(1-t),g:r*(1+t*(3/(2-a)-1)),b:r*(1+t*(3*(1-a)/(2-a)-1))};break;case 3:n={r:r*(1-t),g:r*(1+t*(3*(1-a)/(2-a)-1)),b:r*(1+t*(3/(2-a)-1))};break;case 4:n={r:r*(1+t*(3*(1-a)/(2-a)-1)),g:r*(1-t),b:r*(1+t*(3/(2-a)-1))};break;case 5:n={r:r*(1+t*(3/(2-a)-1)),g:r*(1-t),b:r*(1+t*(3*(1-a)/(2-a)-1))};break;default:n={r:r*(1-t),g:r*(1-t),b:r*(1-t)}}return n.mode="rgb",i!==void 0&&(n.alpha=i),n}function EL({r:e,g:t,b:r,alpha:i}){e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let a=Math.max(e,t,r),n=Math.min(e,t,r),o={mode:"hsi",s:e+t+r===0?0:1-3*n/(e+t+r),i:(e+t+r)/3};return a-n!==0&&(o.h=(a===e?(t-r)/(a-n)+(t{switch(t){case"deg":return+e;case"rad":return e/Math.PI*180;case"grad":return e/10*9;case"turn":return e*360}},Upe=Vpe,Gpe=new RegExp(`^hsla?\\(\\s*${Ode}${Op}${xv}${Op}${xv}\\s*(?:,\\s*${ET}\\s*)?\\)$`),jpe=e=>{let t=e.match(Gpe);if(!t)return;let r={mode:"hsl"};return t[3]!==void 0?r.h=+t[3]:t[1]!==void 0&&t[2]!==void 0&&(r.h=Upe(t[1],t[2])),t[4]!==void 0&&(r.s=Math.min(Math.max(0,t[4]/100),1)),t[5]!==void 0&&(r.l=Math.min(Math.max(0,t[5]/100),1)),t[6]!==void 0?r.alpha=Math.max(0,Math.min(1,t[6]/100)):t[7]!==void 0&&(r.alpha=Math.max(0,Math.min(1,+t[7]))),r},PL=jpe;function $pe(e,t){if(!t||t[0]!=="hsl"&&t[0]!=="hsla")return;let r={mode:"hsl"},[,i,a,n,o]=t;if(i.type!==qt.None){if(i.type===qt.Percentage)return;r.h=i.value}if(a.type!==qt.None){if(a.type===qt.Hue)return;r.s=a.value/100}if(n.type!==qt.None){if(n.type===qt.Hue)return;r.l=n.value/100}return o.type!==qt.None&&(r.alpha=Math.min(1,Math.max(0,o.type===qt.Number?o.value:o.value/100))),r}var IL=$pe,Hpe={mode:"hsl",toMode:{rgb:CL},fromMode:{rgb:FL},channels:["h","s","l","alpha"],ranges:{h:[0,360]},gamut:"rgb",parse:[IL,PL],serialize:e=>`hsl(${e.h!==void 0?e.h:"none"} ${e.s!==void 0?e.s*100+"%":"none"} ${e.l!==void 0?e.l*100+"%":"none"}${e.alpha<1?` / ${e.alpha}`:""})`,interpolate:{h:{use:Zt,fixup:Ju},s:Zt,l:Zt,alpha:{use:Zt,fixup:yn}},difference:{h:Av},average:{h:Qu}},PT=Hpe;function IT({h:e,s:t,v:r,alpha:i}){e=so(e!==void 0?e:0),t===void 0&&(t=0),r===void 0&&(r=0);let a=Math.abs(e/60%2-1),n;switch(Math.floor(e/60)){case 0:n={r,g:r*(1-t*a),b:r*(1-t)};break;case 1:n={r:r*(1-t*a),g:r,b:r*(1-t)};break;case 2:n={r:r*(1-t),g:r,b:r*(1-t*a)};break;case 3:n={r:r*(1-t),g:r*(1-t*a),b:r};break;case 4:n={r:r*(1-t*a),g:r*(1-t),b:r};break;case 5:n={r,g:r*(1-t),b:r*(1-t*a)};break;default:n={r:r*(1-t),g:r*(1-t),b:r*(1-t)}}return n.mode="rgb",i!==void 0&&(n.alpha=i),n}function LT({r:e,g:t,b:r,alpha:i}){e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let a=Math.max(e,t,r),n=Math.min(e,t,r),o={mode:"hsv",s:a===0?0:1-n/a,v:a};return a-n!==0&&(o.h=(a===e?(t-r)/(a-n)+(t1){let a=t+r;t/=a,r/=a}return IT({h:e,s:r===1?1:1-t/(1-r),v:1-r,alpha:i})}function zL(e){let t=LT(e);if(t===void 0)return;let r=t.s!==void 0?t.s:0,i=t.v!==void 0?t.v:0,a={mode:"hwb",w:(1-r)*i,b:1-i};return t.h!==void 0&&(a.h=t.h),t.alpha!==void 0&&(a.alpha=t.alpha),a}function Ype(e,t){if(!t||t[0]!=="hwb")return;let r={mode:"hwb"},[,i,a,n,o]=t;if(i.type!==qt.None){if(i.type===qt.Percentage)return;r.h=i.value}if(a.type!==qt.None){if(a.type===qt.Hue)return;r.w=a.value/100}if(n.type!==qt.None){if(n.type===qt.Hue)return;r.b=n.value/100}return o.type!==qt.None&&(r.alpha=Math.min(1,Math.max(0,o.type===qt.Number?o.value:o.value/100))),r}var RL=Ype,Wpe={mode:"hwb",toMode:{rgb:LL},fromMode:{rgb:zL},channels:["h","w","b","alpha"],ranges:{h:[0,360]},gamut:"rgb",parse:[RL],serialize:e=>`hwb(${e.h!==void 0?e.h:"none"} ${e.w!==void 0?e.w*100+"%":"none"} ${e.b!==void 0?e.b*100+"%":"none"}${e.alpha<1?` / ${e.alpha}`:""})`,interpolate:{h:{use:Zt,fixup:Ju},w:Zt,b:Zt,alpha:{use:Zt,fixup:yn}},difference:{h:yL},average:{h:Qu}},BL=Wpe,qL=203,ix=.1593017578125,OL=78.84375,ax=.8359375,nx=18.8515625,ox=18.6875;function GA(e){if(e<0)return 0;let t=Math.pow(e,1/OL);return 1e4*Math.pow(Math.max(0,t-ax)/(nx-ox*t),1/ix)}function jA(e){if(e<0)return 0;let t=Math.pow(e/1e4,ix);return Math.pow((ax+nx*t)/(1+ox*t),OL)}var $A=e=>Math.max(e/qL,0),Xpe=({i:e,t,p:r,alpha:i})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let a=GA(e+.008609037037932761*t+.11102962500302593*r),n=GA(e-.00860903703793275*t-.11102962500302599*r),o=GA(e+.5600313357106791*t-.32062717498731885*r),s={mode:"xyz65",x:$A(2.070152218389422*a-1.3263473389671556*n+.2066510476294051*o),y:$A(.3647385209748074*a+.680566024947227*n-.0453045459220346*o),z:$A(-.049747207535812*a-.0492609666966138*n+1.1880659249923042*o)};return i!==void 0&&(s.alpha=i),s},cT=Xpe,HA=(e=0)=>Math.max(e*qL,0),Kpe=({x:e,y:t,z:r,alpha:i})=>{let a=HA(e),n=HA(t),o=HA(r),s=jA(.3592832590121217*a+.6976051147779502*n-.0358915932320289*o),l=jA(-.1920808463704995*a+1.1004767970374323*n+.0753748658519118*o),u=jA(.0070797844607477*a+.0748396662186366*n+.8433265453898765*o),c=.5*s+.5*l,h=1.61376953125*s-3.323486328125*l+1.709716796875*u,f=4.378173828125*s-4.24560546875*l-.132568359375*u,d={mode:"itp",i:c,t:h,p:f};return i!==void 0&&(d.alpha=i),d},hT=Kpe,Jpe={mode:"itp",channels:["i","t","p","alpha"],parse:["--ictcp"],serialize:"--ictcp",toMode:{xyz65:cT,rgb:e=>Zh(cT(e))},fromMode:{xyz65:hT,rgb:e=>hT(Hh(e))},ranges:{i:[0,.581],t:[-.369,.272],p:[-.164,.331]},interpolate:{i:Zt,t:Zt,p:Zt,alpha:{use:Zt,fixup:yn}}},NL=Jpe,Qpe=134.03437499999998,e1e=16295499532821565e-27,ZA=e=>{if(e<0)return 0;let t=Math.pow(e/1e4,ix);return Math.pow((ax+nx*t)/(1+ox*t),Qpe)},YA=(e=0)=>Math.max(e*203,0),t1e=({x:e,y:t,z:r,alpha:i})=>{e=YA(e),t=YA(t),r=YA(r);let a=1.15*e-.15*r,n=.66*t+.34*e,o=ZA(.41478972*a+.579999*n+.014648*r),s=ZA(-.20151*a+1.120649*n+.0531008*r),l=ZA(-.0166008*a+.2648*n+.6684799*r),u=(o+s)/2,c={mode:"jab",j:.44*u/(1-.56*u)-e1e,a:3.524*o-4.066708*s+.542708*l,b:.199076*o+1.096799*s-1.295875*l};return i!==void 0&&(c.alpha=i),c},RT=t1e,r1e=134.03437499999998,JI=16295499532821565e-27,WA=e=>{if(e<0)return 0;let t=Math.pow(e,1/r1e);return 1e4*Math.pow((ax-t)/(ox*t-nx),1/ix)},XA=e=>e/203,i1e=({j:e,a:t,b:r,alpha:i})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let a=(e+JI)/(.44+.56*(e+JI)),n=WA(a+.13860504*t+.058047316*r),o=WA(a-.13860504*t-.058047316*r),s=WA(a-.096019242*t-.8118919*r),l={mode:"xyz65",x:XA(1.661373024652174*n-.914523081304348*o+.23136208173913045*s),y:XA(-.3250758611844533*n+1.571847026732543*o-.21825383453227928*s),z:XA(-.090982811*n-.31272829*o+1.5227666*s)};return i!==void 0&&(l.alpha=i),l},BT=i1e,a1e=e=>{let t=RT(Hh(e));return e.r===e.b&&e.b===e.g&&(t.a=t.b=0),t},qT=a1e,n1e=e=>Zh(BT(e)),OT=n1e,o1e={mode:"jab",channels:["j","a","b","alpha"],parse:["--jzazbz"],serialize:"--jzazbz",fromMode:{rgb:qT,xyz65:RT},toMode:{rgb:OT,xyz65:BT},ranges:{j:[0,.222],a:[-.109,.129],b:[-.185,.134]},interpolate:{j:Zt,a:Zt,b:Zt,alpha:{use:Zt,fixup:yn}}},VL=o1e,s1e=({j:e,a:t,b:r,alpha:i})=>{t===void 0&&(t=0),r===void 0&&(r=0);let a=Math.sqrt(t*t+r*r),n={mode:"jch",j:e,c:a};return a&&(n.h=so(Math.atan2(r,t)*180/Math.PI)),i!==void 0&&(n.alpha=i),n},fT=s1e,l1e=({j:e,c:t,h:r,alpha:i})=>{r===void 0&&(r=0);let a={mode:"jab",j:e,a:t?t*Math.cos(r/180*Math.PI):0,b:t?t*Math.sin(r/180*Math.PI):0};return i!==void 0&&(a.alpha=i),a},dT=l1e,u1e={mode:"jch",parse:["--jzczhz"],serialize:"--jzczhz",toMode:{jab:dT,rgb:e=>OT(dT(e))},fromMode:{rgb:e=>fT(qT(e)),jab:fT},channels:["j","c","h","alpha"],ranges:{j:[0,.221],c:[0,.19],h:[0,360]},interpolate:{h:{use:Zt,fixup:Ju},c:Zt,j:Zt,alpha:{use:Zt,fixup:yn}},difference:{h:Tv},average:{h:Qu}},UL=u1e,sx=Math.pow(29,3)/Math.pow(3,3),NT=Math.pow(6,3)/Math.pow(29,3),KA=e=>Math.pow(e,3)>NT?Math.pow(e,3):(116*e-16)/sx,c1e=({l:e,a:t,b:r,alpha:i})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let a=(e+16)/116,n=t/500+a,o=a-r/200,s={mode:"xyz50",x:KA(n)*gn.X,y:KA(a)*gn.Y,z:KA(o)*gn.Z};return i!==void 0&&(s.alpha=i),s},lx=c1e,h1e=({x:e,y:t,z:r,alpha:i})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let a=N0({r:e*3.1341359569958707-t*1.6173863321612538-.4906619460083532*r,g:e*-.978795502912089+t*1.916254567259524+.03344273116131949*r,b:e*.07195537988411677-t*.2289768264158322+1.405386058324125*r});return i!==void 0&&(a.alpha=i),a},Up=h1e,f1e=e=>Up(lx(e)),VT=f1e,d1e=e=>{let{r:t,g:r,b:i,alpha:a}=O0(e),n={mode:"xyz50",x:.436065742824811*t+.3851514688337912*r+.14307845442264197*i,y:.22249319175623702*t+.7168870538238823*r+.06061979053616537*i,z:.013923904500943465*t+.09708128566574634*r+.7140993584005155*i};return a!==void 0&&(n.alpha=a),n},Gp=d1e,JA=e=>e>NT?Math.cbrt(e):(sx*e+16)/116,p1e=({x:e,y:t,z:r,alpha:i})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let a=JA(e/gn.X),n=JA(t/gn.Y),o=JA(r/gn.Z),s={mode:"lab",l:116*n-16,a:500*(a-n),b:200*(n-o)};return i!==void 0&&(s.alpha=i),s},ux=p1e,m1e=e=>{let t=ux(Gp(e));return e.r===e.b&&e.b===e.g&&(t.a=t.b=0),t},UT=m1e;function v1e(e,t){if(!t||t[0]!=="lab")return;let r={mode:"lab"},[,i,a,n,o]=t;if(!(i.type===qt.Hue||a.type===qt.Hue||n.type===qt.Hue))return i.type!==qt.None&&(r.l=Math.min(Math.max(0,i.value),100)),a.type!==qt.None&&(r.a=a.type===qt.Number?a.value:a.value*125/100),n.type!==qt.None&&(r.b=n.type===qt.Number?n.value:n.value*125/100),o.type!==qt.None&&(r.alpha=Math.min(1,Math.max(0,o.type===qt.Number?o.value:o.value/100))),r}var GL=v1e,g1e={mode:"lab",toMode:{xyz50:lx,rgb:VT},fromMode:{xyz50:ux,rgb:UT},channels:["l","a","b","alpha"],ranges:{l:[0,100],a:[-125,125],b:[-125,125]},parse:[GL],serialize:e=>`lab(${e.l!==void 0?e.l:"none"} ${e.a!==void 0?e.a:"none"} ${e.b!==void 0?e.b:"none"}${e.alpha<1?` / ${e.alpha}`:""})`,interpolate:{l:Zt,a:Zt,b:Zt,alpha:{use:Zt,fixup:yn}}},cx=g1e,y1e=Yr(nr({},cx),{mode:"lab65",parse:["--lab-d65"],serialize:"--lab-d65",toMode:{xyz65:CT,rgb:Mv},fromMode:{xyz65:FT,rgb:Dv},ranges:{l:[0,100],a:[-125,125],b:[-125,125]}}),jL=y1e;function _1e(e,t){if(!t||t[0]!=="lch")return;let r={mode:"lch"},[,i,a,n,o]=t;if(i.type!==qt.None){if(i.type===qt.Hue)return;r.l=Math.min(Math.max(0,i.value),100)}if(a.type!==qt.None&&(r.c=Math.max(0,a.type===qt.Number?a.value:a.value*150/100)),n.type!==qt.None){if(n.type===qt.Percentage)return;r.h=n.value}return o.type!==qt.None&&(r.alpha=Math.min(1,Math.max(0,o.type===qt.Number?o.value:o.value/100))),r}var $L=_1e,x1e={mode:"lch",toMode:{lab:$c,rgb:e=>VT($c(e))},fromMode:{rgb:e=>jc(UT(e)),lab:jc},channels:["l","c","h","alpha"],ranges:{l:[0,100],c:[0,150],h:[0,360]},parse:[$L],serialize:e=>`lch(${e.l!==void 0?e.l:"none"} ${e.c!==void 0?e.c:"none"} ${e.h!==void 0?e.h:"none"}${e.alpha<1?` / ${e.alpha}`:""})`,interpolate:{h:{use:Zt,fixup:Ju},c:Zt,l:Zt,alpha:{use:Zt,fixup:yn}},difference:{h:Tv},average:{h:Qu}},hx=x1e,b1e=Yr(nr({},hx),{mode:"lch65",parse:["--lch-d65"],serialize:"--lch-d65",toMode:{lab65:e=>$c(e,"lab65"),rgb:e=>Mv($c(e,"lab65"))},fromMode:{rgb:e=>jc(Dv(e),"lch65"),lab65:e=>jc(e,"lch65")},ranges:{l:[0,100],c:[0,150],h:[0,360]}}),HL=b1e,w1e=({l:e,u:t,v:r,alpha:i})=>{t===void 0&&(t=0),r===void 0&&(r=0);let a=Math.sqrt(t*t+r*r),n={mode:"lchuv",l:e,c:a};return a&&(n.h=so(Math.atan2(r,t)*180/Math.PI)),i!==void 0&&(n.alpha=i),n},GT=w1e,A1e=({l:e,c:t,h:r,alpha:i})=>{r===void 0&&(r=0);let a={mode:"luv",l:e,u:t?t*Math.cos(r/180*Math.PI):0,v:t?t*Math.sin(r/180*Math.PI):0};return i!==void 0&&(a.alpha=i),a},jT=A1e,ZL=(e,t,r)=>4*e/(e+15*t+3*r),YL=(e,t,r)=>9*t/(e+15*t+3*r),T1e=ZL(gn.X,gn.Y,gn.Z),M1e=YL(gn.X,gn.Y,gn.Z),D1e=e=>e<=NT?sx*e:116*Math.cbrt(e)-16,S1e=({x:e,y:t,z:r,alpha:i})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let a=D1e(t/gn.Y),n=ZL(e,t,r),o=YL(e,t,r);!isFinite(n)||!isFinite(o)?a=n=o=0:(n=13*a*(n-T1e),o=13*a*(o-M1e));let s={mode:"luv",l:a,u:n,v:o};return i!==void 0&&(s.alpha=i),s},Q_=S1e,E1e=(e,t,r)=>4*e/(e+15*t+3*r),k1e=(e,t,r)=>9*t/(e+15*t+3*r),C1e=E1e(gn.X,gn.Y,gn.Z),F1e=k1e(gn.X,gn.Y,gn.Z),P1e=({l:e,u:t,v:r,alpha:i})=>{if(e===void 0&&(e=0),e===0)return{mode:"xyz50",x:0,y:0,z:0};t===void 0&&(t=0),r===void 0&&(r=0);let a=t/(13*e)+C1e,n=r/(13*e)+F1e,o=gn.Y*(e<=8?e/sx:Math.pow((e+16)/116,3)),s=o*(9*a)/(4*n),l=o*(12-3*a-20*n)/(4*n),u={mode:"xyz50",x:s,y:o,z:l};return i!==void 0&&(u.alpha=i),u},ex=P1e,I1e=e=>GT(Q_(Gp(e))),L1e=e=>Up(ex(jT(e))),z1e={mode:"lchuv",toMode:{luv:jT,rgb:L1e},fromMode:{rgb:I1e,luv:GT},channels:["l","c","h","alpha"],parse:["--lchuv"],serialize:"--lchuv",ranges:{l:[0,100],c:[0,176.956],h:[0,360]},interpolate:{h:{use:Zt,fixup:Ju},c:Zt,l:Zt,alpha:{use:Zt,fixup:yn}},difference:{h:Tv},average:{h:Qu}},WL=z1e,R1e=Yr(nr({},q0),{mode:"lrgb",toMode:{rgb:N0},fromMode:{rgb:O0},parse:["srgb-linear"],serialize:"srgb-linear"}),XL=R1e,B1e={mode:"luv",toMode:{xyz50:ex,rgb:e=>Up(ex(e))},fromMode:{xyz50:Q_,rgb:e=>Q_(Gp(e))},channels:["l","u","v","alpha"],parse:["--luv"],serialize:"--luv",ranges:{l:[0,100],u:[-84.936,175.042],v:[-125.882,87.243]},interpolate:{l:Zt,u:Zt,v:Zt,alpha:{use:Zt,fixup:yn}}},KL=B1e,q1e=({r:e,g:t,b:r,alpha:i})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let a=Math.cbrt(.412221469470763*e+.5363325372617348*t+.0514459932675022*r),n=Math.cbrt(.2119034958178252*e+.6806995506452344*t+.1073969535369406*r),o=Math.cbrt(.0883024591900564*e+.2817188391361215*t+.6299787016738222*r),s={mode:"oklab",l:.210454268309314*a+.7936177747023054*n-.0040720430116193*o,a:1.9779985324311684*a-2.42859224204858*n+.450593709617411*o,b:.0259040424655478*a+.7827717124575296*n-.8086757549230774*o};return i!==void 0&&(s.alpha=i),s},$T=q1e,O1e=e=>{let t=$T(O0(e));return e.r===e.b&&e.b===e.g&&(t.a=t.b=0),t},Sv=O1e,N1e=({l:e,a:t,b:r,alpha:i})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let a=Math.pow(e+.3963377773761749*t+.2158037573099136*r,3),n=Math.pow(e-.1055613458156586*t-.0638541728258133*r,3),o=Math.pow(e-.0894841775298119*t-1.2914855480194092*r,3),s={mode:"lrgb",r:4.076741636075957*a-3.3077115392580616*n+.2309699031821044*o,g:-1.2684379732850317*a+2.6097573492876887*n-.3413193760026573*o,b:-.0041960761386756*a-.7034186179359362*n+1.7076146940746117*o};return i!==void 0&&(s.alpha=i),s},jp=N1e,V1e=e=>N0(jp(e)),Ev=V1e;function pT(e){let i=1.170873786407767;return .5*(i*e-.206+Math.sqrt((i*e-.206)*(i*e-.206)+4*.03*i*e))}function tx(e){return(e*e+.206*e)/(1.170873786407767*(e+.03))}function U1e(e,t){let r,i,a,n,o,s,l,u;-1.88170328*e-.80936493*t>1?(r=1.19086277,i=1.76576728,a=.59662641,n=.75515197,o=.56771245,s=4.0767416621,l=-3.3077115913,u=.2309699292):1.81444104*e-1.19445276*t>1?(r=.73956515,i=-.45954404,a=.08285427,n=.1254107,o=.14503204,s=-1.2684380046,l=2.6097574011,u=-.3413193965):(r=1.35733652,i=-.00915799,a=-1.1513021,n=-.50559606,o=.00692167,s=-.0041960863,l=-.7034186147,u=1.707614701);let c=r+i*e+a*t+n*e*e+o*e*t,h=.3963377774*e+.2158037573*t,f=-.1055613458*e-.0638541728*t,d=-.0894841775*e-1.291485548*t;{let p=1+c*h,m=1+c*f,g=1+c*d,y=p*p*p,x=m*m*m,b=g*g*g,_=3*h*p*p,A=3*f*m*m,T=3*d*g*g,M=6*h*h*p,S=6*f*f*m,k=6*d*d*g,P=s*y+l*x+u*b,I=s*_+l*A+u*T,B=s*M+l*S+u*k;c=c-P*I/(I*I-.5*P*B)}return c}function HT(e,t){let r=U1e(e,t),i=jp({l:1,a:r*e,b:r*t}),a=Math.cbrt(1/Math.max(i.r,i.g,i.b)),n=a*r;return[a,n]}function G1e(e,t,r,i,a,n=null){n||(n=HT(e,t));let o;if((r-a)*n[1]-(n[0]-a)*i<=0)o=n[1]*a/(i*n[0]+n[1]*(a-r));else{o=n[1]*(a-1)/(i*(n[0]-1)+n[1]*(a-r));{let s=r-a,l=i,u=.3963377774*e+.2158037573*t,c=-.1055613458*e-.0638541728*t,h=-.0894841775*e-1.291485548*t,f=s+l*u,d=s+l*c,p=s+l*h;{let m=a*(1-o)+o*r,g=o*i,y=m+g*u,x=m+g*c,b=m+g*h,_=y*y*y,A=x*x*x,T=b*b*b,M=3*f*y*y,S=3*d*x*x,k=3*p*b*b,P=6*f*f*y,I=6*d*d*x,B=6*p*p*b,L=4.0767416621*_-3.3077115913*A+.2309699292*T-1,z=4.0767416621*M-3.3077115913*S+.2309699292*k,q=4.0767416621*P-3.3077115913*I+.2309699292*B,V=z/(z*z-.5*L*q),j=-L*V,$=-1.2684380046*_+2.6097574011*A-.3413193965*T-1,H=-1.2684380046*M+2.6097574011*S-.3413193965*k,Z=-1.2684380046*P+2.6097574011*I-.3413193965*B,Y=H/(H*H-.5*$*Z),oe=-$*Y,pe=-.0041960863*_-.7034186147*A+1.707614701*T-1,De=-.0041960863*M-.7034186147*S+1.707614701*k,ye=-.0041960863*P-.7034186147*I+1.707614701*B,de=De/(De*De-.5*pe*ye),Ce=-pe*de;j=V>=0?j:1e6,oe=Y>=0?oe:1e6,Ce=de>=0?Ce:1e6,o+=Math.min(j,Math.min(oe,Ce))}}}return o}function ZT(e,t,r=null){r||(r=HT(e,t));let i=r[0],a=r[1];return[a/i,a/(1-i)]}function JL(e,t,r){let i=HT(t,r),a=G1e(t,r,e,1,e,i),n=ZT(t,r,i),o=.11516993+1/(7.4477897+4.1590124*r+t*(-2.19557347+1.75198401*r+t*(-2.13704948-10.02301043*r+t*(-4.24894561+5.38770819*r+4.69891013*t)))),s=.11239642+1/(1.6132032-.68124379*r+t*(.40370612+.90148123*r+t*(-.27087943+.6122399*r+t*(.00299215-.45399568*r-.14661872*t)))),l=a/Math.min(e*n[0],(1-e)*n[1]),u=e*o,c=(1-e)*s,h=.9*l*Math.sqrt(Math.sqrt(1/(1/(u*u*u*u)+1/(c*c*c*c))));return u=e*.4,c=(1-e)*.8,[Math.sqrt(1/(1/(u*u)+1/(c*c))),h,a]}function mT(e){let t=e.l!==void 0?e.l:0,r=e.a!==void 0?e.a:0,i=e.b!==void 0?e.b:0,a={mode:"okhsl",l:pT(t)};e.alpha!==void 0&&(a.alpha=e.alpha);let n=Math.sqrt(r*r+i*i);if(!n)return a.s=0,a;let[o,s,l]=JL(t,r/n,i/n),u;if(nmT(Sv(e))},toMode:{oklab:vT,rgb:e=>Ev(vT(e))}}),QL=j1e;function gT(e){let t=e.l!==void 0?e.l:0,r=e.a!==void 0?e.a:0,i=e.b!==void 0?e.b:0,a=Math.sqrt(r*r+i*i),n=a?r/a:1,o=a?i/a:1,[s,l]=ZT(n,o),u=.5,c=1-u/s,h=l/(a+t*l),f=h*t,d=h*a,p=tx(f),m=d*p/f,g=jp({l:p,a:n*m,b:o*m}),y=Math.cbrt(1/Math.max(g.r,g.g,g.b,0));t=t/y,a=a/y*pT(t)/t,t=pT(t);let x={mode:"okhsv",s:a?(u+l)*d/(l*u+l*c*d):0,v:t?t/f:0};return x.s&&(x.h=so(Math.atan2(i,r)*180/Math.PI)),e.alpha!==void 0&&(x.alpha=e.alpha),x}function yT(e){let t={mode:"oklab"};e.alpha!==void 0&&(t.alpha=e.alpha);let r=e.h!==void 0?e.h:0,i=e.s!==void 0?e.s:0,a=e.v!==void 0?e.v:0,n=Math.cos(r/180*Math.PI),o=Math.sin(r/180*Math.PI),[s,l]=ZT(n,o),u=.5,c=1-u/s,h=1-i*u/(u+l-l*c*i),f=i*l*u/(u+l-l*c*i),d=tx(h),p=f*d/h,m=jp({l:d,a:n*p,b:o*p}),g=Math.cbrt(1/Math.max(m.r,m.g,m.b,0)),y=tx(a*h),x=f*y/h;return t.l=y*g,t.a=x*n*g,t.b=x*o*g,t}var $1e=Yr(nr({},zT),{mode:"okhsv",channels:["h","s","v","alpha"],parse:["--okhsv"],serialize:"--okhsv",fromMode:{oklab:gT,rgb:e=>gT(Sv(e))},toMode:{oklab:yT,rgb:e=>Ev(yT(e))}}),ez=$1e;function H1e(e,t){if(!t||t[0]!=="oklab")return;let r={mode:"oklab"},[,i,a,n,o]=t;if(!(i.type===qt.Hue||a.type===qt.Hue||n.type===qt.Hue))return i.type!==qt.None&&(r.l=Math.min(Math.max(0,i.type===qt.Number?i.value:i.value/100),1)),a.type!==qt.None&&(r.a=a.type===qt.Number?a.value:a.value*.4/100),n.type!==qt.None&&(r.b=n.type===qt.Number?n.value:n.value*.4/100),o.type!==qt.None&&(r.alpha=Math.min(1,Math.max(0,o.type===qt.Number?o.value:o.value/100))),r}var tz=H1e,Z1e=Yr(nr({},cx),{mode:"oklab",toMode:{lrgb:jp,rgb:Ev},fromMode:{lrgb:$T,rgb:Sv},ranges:{l:[0,1],a:[-.4,.4],b:[-.4,.4]},parse:[tz],serialize:e=>`oklab(${e.l!==void 0?e.l:"none"} ${e.a!==void 0?e.a:"none"} ${e.b!==void 0?e.b:"none"}${e.alpha<1?` / ${e.alpha}`:""})`}),rz=Z1e;function Y1e(e,t){if(!t||t[0]!=="oklch")return;let r={mode:"oklch"},[,i,a,n,o]=t;if(i.type!==qt.None){if(i.type===qt.Hue)return;r.l=Math.min(Math.max(0,i.type===qt.Number?i.value:i.value/100),1)}if(a.type!==qt.None&&(r.c=Math.max(0,a.type===qt.Number?a.value:a.value*.4/100)),n.type!==qt.None){if(n.type===qt.Percentage)return;r.h=n.value}return o.type!==qt.None&&(r.alpha=Math.min(1,Math.max(0,o.type===qt.Number?o.value:o.value/100))),r}var iz=Y1e,W1e=Yr(nr({},hx),{mode:"oklch",toMode:{oklab:e=>$c(e,"oklab"),rgb:e=>Ev($c(e,"oklab"))},fromMode:{rgb:e=>jc(Sv(e),"oklch"),oklab:e=>jc(e,"oklch")},parse:[iz],serialize:e=>`oklch(${e.l!==void 0?e.l:"none"} ${e.c!==void 0?e.c:"none"} ${e.h!==void 0?e.h:"none"}${e.alpha<1?` / ${e.alpha}`:""})`,ranges:{l:[0,1],c:[0,.4],h:[0,360]}}),az=W1e,X1e=e=>{let{r:t,g:r,b:i,alpha:a}=O0(e),n={mode:"xyz65",x:.486570948648216*t+.265667693169093*r+.1982172852343625*i,y:.2289745640697487*t+.6917385218365062*r+.079286914093745*i,z:0*t+.0451133818589026*r+1.043944368900976*i};return a!==void 0&&(n.alpha=a),n},_T=X1e,K1e=({x:e,y:t,z:r,alpha:i})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let a=N0({r:e*2.4934969119414263-t*.9313836179191242-.402710784450717*r,g:e*-.8294889695615749+t*1.7626640603183465+.0236246858419436*r,b:e*.0358458302437845-t*.0761723892680418+.9568845240076871*r},"p3");return i!==void 0&&(a.alpha=i),a},xT=K1e,J1e=Yr(nr({},q0),{mode:"p3",parse:["display-p3"],serialize:"display-p3",fromMode:{rgb:e=>xT(Hh(e)),xyz65:xT},toMode:{rgb:e=>Zh(_T(e)),xyz65:_T}}),nz=J1e,QA=e=>{let t=Math.abs(e);return t>=1/512?Math.sign(e)*Math.pow(t,1/1.8):16*e},Q1e=({x:e,y:t,z:r,alpha:i})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let a={mode:"prophoto",r:QA(e*1.3457868816471585-t*.2555720873797946-.0511018649755453*r),g:QA(e*-.5446307051249019+t*1.5082477428451466+.0205274474364214*r),b:QA(e*0+t*0+1.2119675456389452*r)};return i!==void 0&&(a.alpha=i),a},bT=Q1e,eT=(e=0)=>{let t=Math.abs(e);return t>=16/512?Math.sign(e)*Math.pow(t,1.8):e/16},eme=e=>{let t=eT(e.r),r=eT(e.g),i=eT(e.b),a={mode:"xyz50",x:.7977666449006423*t+.1351812974005331*r+.0313477341283922*i,y:.2880748288194013*t+.7118352342418731*r+899369387256e-16*i,z:0*t+0*r+.8251046025104602*i};return e.alpha!==void 0&&(a.alpha=e.alpha),a},wT=eme,tme=Yr(nr({},q0),{mode:"prophoto",parse:["prophoto-rgb"],serialize:"prophoto-rgb",fromMode:{xyz50:bT,rgb:e=>bT(Gp(e))},toMode:{xyz50:wT,rgb:e=>Up(wT(e))}}),oz=tme,QI=1.09929682680944,rme=.018053968510807,tT=e=>{let t=Math.abs(e);return t>rme?(Math.sign(e)||1)*(QI*Math.pow(t,.45)-(QI-1)):4.5*e},ime=({x:e,y:t,z:r,alpha:i})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let a={mode:"rec2020",r:tT(e*1.7166511879712683-t*.3556707837763925-.2533662813736599*r),g:tT(e*-.6666843518324893+t*1.6164812366349395+.0157685458139111*r),b:tT(e*.0176398574453108-t*.0427706132578085+.9421031212354739*r)};return i!==void 0&&(a.alpha=i),a},AT=ime,eL=1.09929682680944,ame=.018053968510807,rT=(e=0)=>{let t=Math.abs(e);return t{let t=rT(e.r),r=rT(e.g),i=rT(e.b),a={mode:"xyz65",x:.6369580483012911*t+.1446169035862083*r+.1688809751641721*i,y:.262700212011267*t+.6779980715188708*r+.059301716469862*i,z:0*t+.0280726930490874*r+1.0609850577107909*i};return e.alpha!==void 0&&(a.alpha=e.alpha),a},TT=nme,ome=Yr(nr({},q0),{mode:"rec2020",fromMode:{xyz65:AT,rgb:e=>AT(Hh(e))},toMode:{xyz65:TT,rgb:e=>Zh(TT(e))},parse:["rec2020"],serialize:"rec2020"}),sz=ome,R0=.0037930732552754493,lz=Math.cbrt(R0),iT=e=>Math.cbrt(e)-lz,sme=e=>{let{r:t,g:r,b:i,alpha:a}=O0(e),n=iT(.3*t+.622*r+.078*i+R0),o=iT(.23*t+.692*r+.078*i+R0),s=iT(.2434226892454782*t+.2047674442449682*r+.5518098665095535*i+R0),l={mode:"xyb",x:(n-o)/2,y:(n+o)/2,b:s-(n+o)/2};return a!==void 0&&(l.alpha=a),l},uz=sme,aT=e=>Math.pow(e+lz,3),lme=({x:e,y:t,b:r,alpha:i})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let a=aT(e+t)-R0,n=aT(t-e)-R0,o=aT(r+t)-R0,s=N0({r:11.031566904639861*a-9.866943908131562*n-.16462299650829934*o,g:-3.2541473810744237*a+4.418770377582723*n-.16462299650829934*o,b:-3.6588512867136815*a+2.7129230459360922*n+1.9459282407775895*o});return i!==void 0&&(s.alpha=i),s},cz=lme,ume={mode:"xyb",channels:["x","y","b","alpha"],parse:["--xyb"],serialize:"--xyb",toMode:{rgb:cz},fromMode:{rgb:uz},ranges:{x:[-.0154,.0281],y:[0,.8453],b:[-.2778,.388]},interpolate:{x:Zt,y:Zt,b:Zt,alpha:{use:Zt,fixup:yn}}},hz=ume,cme={mode:"xyz50",parse:["xyz-d50"],serialize:"xyz-d50",toMode:{rgb:Up,lab:ux},fromMode:{rgb:Gp,lab:lx},channels:["x","y","z","alpha"],ranges:{x:[0,.964],y:[0,.999],z:[0,.825]},interpolate:{x:Zt,y:Zt,z:Zt,alpha:{use:Zt,fixup:yn}}},fz=cme,hme=e=>{let{x:t,y:r,z:i,alpha:a}=e;t===void 0&&(t=0),r===void 0&&(r=0),i===void 0&&(i=0);let n={mode:"xyz50",x:1.0479298208405488*t+.0229467933410191*r-.0501922295431356*i,y:.0296278156881593*t+.990434484573249*r-.0170738250293851*i,z:-.0092430581525912*t+.0150551448965779*r+.7518742899580008*i};return a!==void 0&&(n.alpha=a),n},dz=hme,fme=e=>{let{x:t,y:r,z:i,alpha:a}=e;t===void 0&&(t=0),r===void 0&&(r=0),i===void 0&&(i=0);let n={mode:"xyz65",x:.9554734527042182*t-.0230985368742614*r+.0632593086610217*i,y:-.0283697069632081*t+1.0099954580058226*r+.021041398966943*i,z:.0123140016883199*t-.0205076964334779*r+1.3303659366080753*i};return a!==void 0&&(n.alpha=a),n},pz=fme,dme={mode:"xyz65",toMode:{rgb:Zh,xyz50:dz},fromMode:{rgb:Hh,xyz50:pz},ranges:{x:[0,.95],y:[0,1],z:[0,1.088]},channels:["x","y","z","alpha"],parse:["xyz","xyz-d65"],serialize:"xyz-d65",interpolate:{x:Zt,y:Zt,z:Zt,alpha:{use:Zt,fixup:yn}}},mz=dme,pme=({r:e,g:t,b:r,alpha:i})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let a={mode:"yiq",y:.29889531*e+.58662247*t+.11448223*r,i:.59597799*e-.2741761*t-.32180189*r,q:.21147017*e-.52261711*t+.31114694*r};return i!==void 0&&(a.alpha=i),a},vz=pme,mme=({y:e,i:t,q:r,alpha:i})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let a={mode:"rgb",r:e+.95608445*t+.6208885*r,g:e-.27137664*t-.6486059*r,b:e-1.10561724*t+1.70250126*r};return i!==void 0&&(a.alpha=i),a},gz=mme,vme={mode:"yiq",toMode:{rgb:gz},fromMode:{rgb:vz},channels:["y","i","q","alpha"],parse:["--yiq"],serialize:"--yiq",ranges:{i:[-.595,.595],q:[-.522,.522]},interpolate:{y:Zt,i:Zt,q:Zt,alpha:{use:Zt,fixup:yn}}},yz=vme,gme=(e,t)=>Math.round(e*(t=Math.pow(10,t)))/t,yme=(e=4)=>t=>typeof t=="number"?gme(t,e):t,_z=yme,_v=_z(2),bv=e=>Math.max(0,Math.min(1,e||0)),B0=e=>Math.round(bv(e)*255),YT=Qi("rgb"),_me=Qi("hsl"),WT=e=>{if(e===void 0)return;let t=B0(e.r),r=B0(e.g),i=B0(e.b);return"#"+(1<<24|t<<16|r<<8|i).toString(16).slice(1)},xz=e=>{if(e===void 0)return;let t=B0(e.alpha!==void 0?e.alpha:1);return WT(e)+(256|t).toString(16).slice(1)},bz=e=>{if(e===void 0)return;let t=B0(e.r),r=B0(e.g),i=B0(e.b);return e.alpha===void 0||e.alpha===1?`rgb(${t}, ${r}, ${i})`:`rgba(${t}, ${r}, ${i}, ${_v(bv(e.alpha))})`},wz=e=>{if(e===void 0)return;let t=_v(e.h||0),r=_v(bv(e.s)*100)+"%",i=_v(bv(e.l)*100)+"%";return e.alpha===void 0||e.alpha===1?`hsl(${t}, ${r}, ${i})`:`hsla(${t}, ${r}, ${i}, ${_v(bv(e.alpha))})`},xme=e=>{let t=hu(e);if(!t)return;let r=To(t.mode);if(!r.serialize||typeof r.serialize=="string"){let i=`color(${r.serialize||`--${t.mode}`} `;return r.channels.forEach((a,n)=>{a!=="alpha"&&(i+=(n?" ":"")+(t[a]!==void 0?t[a]:"none"))}),t.alpha!==void 0&&t.alpha<1&&(i+=` / ${t.alpha}`),i+")"}if(typeof r.serialize=="function")return r.serialize(t)},bme=e=>WT(YT(e)),wme=e=>xz(YT(e)),Ame=e=>bz(YT(e)),Tme=e=>wz(_me(e)),Mme={normal:(e,t)=>t,multiply:(e,t)=>e*t,screen:(e,t)=>e+t-e*t,"hard-light":(e,t)=>t<.5?e*2*t:2*t*(1-e)-1,overlay:(e,t)=>e<.5?t*2*e:2*e*(1-t)-1,darken:(e,t)=>Math.min(e,t),lighten:(e,t)=>Math.max(e,t),"color-dodge":(e,t)=>e===0?0:t===1?1:Math.min(1,e/(1-t)),"color-burn":(e,t)=>e===1?1:t===0?0:1-Math.min(1,(1-e)/t),"soft-light":(e,t)=>t<.5?e-(1-2*t)*e*(1-e):e+(2*t-1)*((e<.25?((16*e-12)*e+4)*e:Math.sqrt(e))-e),difference:(e,t)=>Math.abs(e-t),exclusion:(e,t)=>e+t-2*e*t},Dme=(e,t="normal",r="rgb")=>{let i=typeof t=="function"?t:Mme[t],a=Qi(r),n=To(r).channels;return e.map(s=>{let l=a(s);return l.alpha===void 0&&(l.alpha=1),l}).reduce((s,l)=>{if(s===void 0)return l;let u=l.alpha+s.alpha*(1-l.alpha);return n.reduce((c,h)=>(h!=="alpha"&&(u===0?c[h]=0:(c[h]=l.alpha*(1-s.alpha)*l[h]+l.alpha*s.alpha*i(s[h],l[h])+(1-l.alpha)*s.alpha*s[h],c[h]=Math.max(0,Math.min(1,c[h]/u)))),c),{mode:r,alpha:u})})},Sme=Dme,Eme=([e,t])=>e+Math.random()*(t-e),kme=e=>Object.keys(e).reduce((t,r)=>{let i=e[r];return t[r]=Array.isArray(i)?i:[i,i],t},{}),Cme=(e="rgb",t={})=>{let r=To(e),i=kme(t);return r.channels.reduce((a,n)=>((i.alpha||n!=="alpha")&&(a[n]=Eme(i[n]||r.ranges[n])),a),{mode:e})},Fme=Cme,kv=(e,t="rgb",r=!1)=>{let i=t?To(t).channels:null,a=t?Qi(t):hu;return n=>{let o=a(n);if(!o)return;let s=(i||To(o.mode).channels).reduce((u,c)=>{let h=e(o[c],c,o,t);return h!==void 0&&!isNaN(h)&&(u[c]=h),u},{mode:o.mode});if(!r)return s;let l=hu(n);return l&&l.mode!==s.mode?Qi(l.mode)(s):s}},Az=(e,t,r)=>t!=="alpha"?(e||0)*(r.alpha!==void 0?r.alpha:1):e,Tz=(e,t,r)=>t!=="alpha"&&r.alpha!==0?(e||0)/(r.alpha!==void 0?r.alpha:1):e,XT=(e=1,t=0)=>(r,i)=>i!=="alpha"?r*e+t:r,Pme=(e=1,t=1,r=0)=>(i,a)=>a!=="alpha"?e*Math.pow(i,t)+r:i,Ime=e=>{e[0]===void 0&&(e[0]=0),e[e.length-1]===void 0&&(e[e.length-1]=1);let t=1,r,i,a,n;for(;tt=>e<=0?1:e>=1?0:Math.pow(t,Math.log(.5)/Math.log(e)),Mz=zme,$_=e=>typeof e=="function",L0=e=>e&&typeof e=="object",tL=e=>typeof e=="number",Dz=(e,t="rgb",r,i)=>{let a=To(t),n=Qi(t),o=[],s=[],l={};e.forEach(f=>{Array.isArray(f)?(o.push(n(f[0])),s.push(f[1])):tL(f)||$_(f)?l[s.length]=f:(o.push(n(f)),s.push(void 0))}),Lme(s);let u=a.channels.reduce((f,d)=>{let p;return L0(r)&&L0(r[d])&&r[d].fixup?p=r[d].fixup:L0(a.interpolate[d])&&a.interpolate[d].fixup?p=a.interpolate[d].fixup:p=m=>m,f[d]=p(o.map(m=>m[d])),f},{});if(i){let f=o.map((d,p)=>a.channels.reduce((m,g)=>(m[g]=u[g][p],m),{mode:t}));u=a.channels.reduce((d,p)=>(d[p]=f.map(m=>{let g=i(m[p],p,m,t);return isNaN(g)?void 0:g}),d),{})}let c=a.channels.reduce((f,d)=>{let p;return $_(r)?p=r:L0(r)&&$_(r[d])?p=r[d]:L0(r)&&L0(r[d])&&r[d].use?p=r[d].use:$_(a.interpolate[d])?p=a.interpolate[d]:L0(a.interpolate[d])&&(p=a.interpolate[d].use),f[d]=p(u[d]),f},{}),h=o.length-1;return f=>{if(f=Math.min(Math.max(0,f),1),f<=s[0])return o[0];if(f>s[h])return o[h];let d=0;for(;s[d]{let A=c[_](x);return A!==void 0&&(b[_]=A),b},{mode:t})}},Rme=(e,t="rgb",r)=>Dz(e,t,r),Sz=(e,t)=>(r,i="rgb",a)=>{let n=t?kv(t,i):void 0,o=Dz(r,i,a,e);return n?s=>n(o(s)):o},Bme=Sz(Az,Tz),H_=(e,t)=>(e+t)%t,Ez=(e,t,r,i,a)=>{let n=a*a,o=n*a;return((1-3*a+3*n-o)*e+(4-6*n+3*o)*t+(1+3*a+3*n-3*o)*r+o*i)/6},kz=e=>t=>{let r=e.length-1,i=t>=1?r-1:Math.max(0,Math.floor(t*r));return Ez(i>0?e[i-1]:2*e[i]-e[i+1],e[i],e[i+1],it=>{let r=e.length-1,i=Math.floor(t*r);return Ez(e[H_(i-1,e.length)],e[H_(i,e.length)],e[H_(i+1,e.length)],e[H_(i+2,e.length)],(t-i/r)*r)},Fz=e=>{let t,r=e.length-1,i=new Array(r),a=new Array(r),n=new Array(r);for(i[1]=1/4,a[1]=(6*e[1]-e[0])/4,t=2;t0&&(n[r-1]=a[r-1]),t=r-2;t>0;--t)n[t]=a[t]-i[t]*n[t+1];return n},qme=e=>kz(Fz(e)),Ome=e=>Cz(Fz(e)),Bp=Math.sign,MT=Math.min,Rs=Math.abs,KT=e=>{let t=e.length-1,r=[],i=[],a=[];for(let n=0;n0?.5*(e[n+1]-e[n-1])*t:void 0),a.push(n>0?(Bp(r[n-1])+Bp(r[n]))*MT(Rs(r[n-1]),Rs(r[n]),.5*Rs(i[n])):void 0);return[r,i,a]},JT=(e,t,r)=>{let i=e.length-1,a=i*i;return n=>{let o;n>=1?o=i-1:o=Math.max(0,Math.floor(n*i));let s=n-o/i,l=s*s,u=l*s;return(t[o]+t[o+1]-2*r[o])*a*u+(3*r[o]-2*t[o]-t[o+1])*i*l+t[o]*s+e[o]}},Nme=e=>{if(e.length<3)return Zt(e);let t=e.length-1,[r,,i]=KT(e);return i[0]=r[0],i[t]=r[t-1],JT(e,i,r)},Vme=e=>{if(e.length<3)return Zt(e);let t=e.length-1,[r,i,a]=KT(e);return i[0]=(e[1]*2-e[0]*1.5-e[2]*.5)*t,i[t]=(e[t]*1.5-e[t-1]*2+e[t-2]*.5)*t,a[0]=i[0]*r[0]<=0?0:Rs(i[0])>2*Rs(r[0])?2*r[0]:i[0],a[t]=i[t]*r[t-1]<=0?0:Rs(i[t])>2*Rs(r[t-1])?2*r[t-1]:i[t],JT(e,a,r)},Ume=e=>{let t=e.length-1,[r,i,a]=KT(e);i[0]=.5*(e[1]-e[t])*t,i[t]=.5*(e[0]-e[t-1])*t;let n=(e[0]-e[t])*t,o=n;return a[0]=(Bp(n)+Bp(r[0]))*MT(Rs(n),Rs(r[0]),.5*Rs(i[0])),a[t]=(Bp(r[t-1])+Bp(o))*MT(Rs(r[t-1]),Rs(o),.5*Rs(i[t])),JT(e,a,r)},Gme=(e=1)=>e===1?t=>t:t=>Math.pow(t,e),Pz=Gme,jme=(e=2,t=1)=>{let r=Pz(t);if(e<2)return e<1?[]:[r(.5)];let i=[];for(let a=0;a{let t={mode:e.mode,r:Math.max(0,Math.min(e.r!==void 0?e.r:0,1)),g:Math.max(0,Math.min(e.g!==void 0?e.g:0,1)),b:Math.max(0,Math.min(e.b!==void 0?e.b:0,1))};return e.alpha!==void 0&&(t.alpha=e.alpha),t},zz=e=>Lz(Iz(e)),Rz=e=>e!==void 0&&(e.r===void 0||e.r>=0&&e.r<=1)&&(e.g===void 0||e.g>=0&&e.g<=1)&&(e.b===void 0||e.b>=0&&e.b<=1);function QT(e){return Rz(Iz(e))}function fx(e="rgb"){let{gamut:t}=To(e);if(!t)return i=>!0;let r=Qi(typeof t=="string"?t:e);return i=>Rz(r(i))}function Hme(e){return e=hu(e),e===void 0||QT(e)?e:Qi(e.mode)(zz(e))}function e7(e="rgb"){let{gamut:t}=To(e);if(!t)return n=>hu(n);let r=typeof t=="string"?t:e,i=Qi(r),a=fx(r);return n=>{let o=hu(n);if(!o)return;let s=i(o);if(a(s))return o;let l=Lz(s);return o.mode===l.mode?l:Qi(o.mode)(l)}}function Zme(e,t="lch",r="rgb"){e=hu(e);let i=r==="rgb"?QT:fx(r),a=r==="rgb"?zz:e7(r);if(e===void 0||i(e))return e;let n=Qi(e.mode);e=Qi(t)(e);let o=Yr(nr({},e),{c:0});if(!i(o))return n(a(o));let s=0,l=e.c!==void 0?e.c:0,u=To(t).ranges.c,c=(u[1]-u[0])/Math.pow(2,13),h=o.c;for(;l-s>c;)o.c=s+(l-s)*.5,i(o)?(h=o.c,s=o.c):l=o.c;return n(i(o)?o:Yr(nr({},o),{c:h}))}function Yme(e="rgb",t="oklch",r=Vp("oklch"),i=.02){let a=Qi(e),n=To(e);if(!n.gamut)return c=>a(c);let o=fx(e),s=e7(e),l=Qi(t),{ranges:u}=To(t);if(!u.l||!u.c)throw new Error("LCH-like space expected");return c=>{if(c=hu(c),c===void 0)return;let h=nr({},l(c));if(h.l===void 0&&(h.l=0),h.c===void 0&&(h.c=0),h.l>=u.l[1]){let g=Yr(nr({},n.white),{mode:e});return c.alpha!==void 0&&(g.alpha=c.alpha),g}if(h.l<=u.l[0]){let g=Yr(nr({},n.black),{mode:e});return c.alpha!==void 0&&(g.alpha=c.alpha),g}if(o(h))return a(h);let f=0,d=h.c,p=(u.c[1]-u.c[0])/4e3,m=s(h);for(;d-f>p;)h.c=(f+d)*.5,m=s(h),o(h)||r&&i>0&&r(h,m)<=i?f=h.c:d=h.c;return a(o(h)?h:m)}}var Wme=(e,t=Vp(),r=i=>i)=>{let i=e.map((a,n)=>({color:r(a),i:n}));return(a,n=1,o=1/0)=>(isFinite(n)&&(n=Math.max(1,Math.min(n,i.length-1))),i.forEach(s=>{s.d=t(a,s.color)}),i.sort((s,l)=>s.d-l.d).slice(0,n).filter(s=>s.de[s.i]))},Xme=Wme,t7=e=>Math.max(e,0),r7=e=>Math.max(Math.min(e,1),0),Kme=(e,t,r)=>e===void 0||t===void 0?void 0:e+r*(t-e),Jme=e=>{let t=1-r7(e);return[.393+.607*t,.769-.769*t,.189-.189*t,0,.349-.349*t,.686+.314*t,.168-.168*t,0,.272-.272*t,.534-.534*t,.131+.869*t,0,0,0,0,1]},Qme=e=>{let t=t7(e);return[.213+.787*t,.715-.715*t,.072-.072*t,0,.213-.213*t,.715+.285*t,.072-.072*t,0,.213-.213*t,.715-.715*t,.072+.928*t,0,0,0,0,1]},eve=e=>{let t=1-r7(e);return[.2126+.7874*t,.7152-.7152*t,.0722-.0722*t,0,.2126-.2126*t,.7152+.2848*t,.0722-.0722*t,0,.2126-.2126*t,.7152-.7152*t,.0722+.9278*t,0,0,0,0,1]},tve=e=>{let t=Math.PI*e/180,r=Math.cos(t),i=Math.sin(t);return[.213+r*.787-i*.213,.715-r*.715-i*.715,.072-r*.072+i*.928,0,.213-r*.213+i*.143,.715+r*.285+i*.14,.072-r*.072-i*.283,0,.213-r*.213-i*.787,.715-r*.715+i*.715,.072+r*.928+i*.072,0,0,0,0,1]},dx=(e,t,r=!1)=>{let i=Qi(t),a=To(t).channels;return n=>{let o=i(n);if(!o)return;let s={mode:t},l,u=a.length;for(let h=0;h{let r=t7(e);return kv(XT(r),t,!0)},ive=(e=1,t="rgb")=>{let r=t7(e);return kv(XT(r,(1-r)/2),t,!0)},ave=(e=1,t="rgb")=>dx(Jme(e),t,!0),nve=(e=1,t="rgb")=>dx(Qme(e),t,!0),ove=(e=1,t="rgb")=>dx(eve(e),t,!0),sve=(e=1,t="rgb")=>{let r=r7(e);return kv((i,a)=>a==="alpha"?i:Kme(r,1-r,i),t,!0)},lve=(e=0,t="rgb")=>dx(tve(e),t,!0),uve=Qi("rgb"),cve=[[1,0,-0,0,1,0,-0,-0,1],[.856167,.182038,-.038205,.029342,.955115,.015544,-.00288,-.001563,1.004443],[.734766,.334872,-.069637,.05184,.919198,.028963,-.004928,-.004209,1.009137],[.630323,.465641,-.095964,.069181,.890046,.040773,-.006308,-.007724,1.014032],[.539009,.579343,-.118352,.082546,.866121,.051332,-.007136,-.011959,1.019095],[.458064,.679578,-.137642,.092785,.846313,.060902,-.007494,-.016807,1.024301],[.38545,.769005,-.154455,.100526,.829802,.069673,-.007442,-.02219,1.029632],[.319627,.849633,-.169261,.106241,.815969,.07779,-.007025,-.028051,1.035076],[.259411,.923008,-.18242,.110296,.80434,.085364,-.006276,-.034346,1.040622],[.203876,.990338,-.194214,.112975,.794542,.092483,-.005222,-.041043,1.046265],[.152286,1.052583,-.204868,.114503,.786281,.099216,-.003882,-.048116,1.051998]],hve=[[1,0,-0,0,1,0,-0,-0,1],[.866435,.177704,-.044139,.049567,.939063,.01137,-.003453,.007233,.99622],[.760729,.319078,-.079807,.090568,.889315,.020117,-.006027,.013325,.992702],[.675425,.43385,-.109275,.125303,.847755,.026942,-.00795,.018572,.989378],[.605511,.52856,-.134071,.155318,.812366,.032316,-.009376,.023176,.9862],[.547494,.607765,-.155259,.181692,.781742,.036566,-.01041,.027275,.983136],[.498864,.674741,-.173604,.205199,.754872,.039929,-.011131,.030969,.980162],[.457771,.731899,-.18967,.226409,.731012,.042579,-.011595,.034333,.977261],[.422823,.781057,-.203881,.245752,.709602,.044646,-.011843,.037423,.974421],[.392952,.82361,-.216562,.263559,.69021,.046232,-.01191,.040281,.97163],[.367322,.860646,-.227968,.280085,.672501,.047413,-.01182,.04294,.968881]],fve=[[1,0,-0,0,1,0,-0,-0,1],[.92667,.092514,-.019184,.021191,.964503,.014306,.008437,.054813,.93675],[.89572,.13333,-.02905,.029997,.9454,.024603,.013027,.104707,.882266],[.905871,.127791,-.033662,.026856,.941251,.031893,.01341,.148296,.838294],[.948035,.08949,-.037526,.014364,.946792,.038844,.010853,.193991,.795156],[1.017277,.027029,-.044306,-.006113,.958479,.047634,.006379,.248708,.744913],[1.104996,-.046633,-.058363,-.032137,.971635,.060503,.001336,.317922,.680742],[1.193214,-.109812,-.083402,-.058496,.97941,.079086,-.002346,.403492,.598854],[1.257728,-.139648,-.118081,-.078003,.975409,.102594,-.003316,.501214,.502102],[1.278864,-.125333,-.153531,-.084748,.957674,.127074,-989e-6,.601151,.399838],[1.255528,-.076749,-.178779,-.078411,.930809,.147602,.004733,.691367,.3039]],i7=(e,t)=>{let r=Math.max(0,Math.min(1,t)),i=Math.round(r/.1),a=Math.round(r%.1),n=e[i];if(a>0&&iz0(n[l],o[l],a))}return o=>{let s=hu(o);if(s===void 0)return;let{r:l,g:u,b:c}=uve(s),h={mode:"rgb",r:n[0]*l+n[1]*u+n[2]*c,g:n[3]*l+n[4]*u+n[5]*c,b:n[6]*l+n[7]*u+n[8]*c};return s.alpha!==void 0&&(h.alpha=s.alpha),Qi(s.mode)(h)}},dve=(e=1)=>i7(cve,e),pve=(e=1)=>i7(hve,e),mve=(e=1)=>i7(fve,e),vve=e=>e*e*(3-2*e),gve=e=>.5-Math.sin(Math.asin(1-2*e)/3),yve=e=>e*e*e*(e*(e*6-15)+10),_ve=yve,xve=e=>(1-Math.cos(e*Math.PI))/2,bve=xve;function DT(e){let t=Qi("lrgb")(e);return .2126*t.r+.7152*t.g+.0722*t.b}function wve(e,t){let r=DT(e),i=DT(t);return(Math.max(r,i)+.05)/(Math.min(r,i)+.05)}var Ave=Bi(mL),Tve=Bi(xL),Mve=Bi(ML),Dve=Bi(DL),Sve=Bi(kL),Eve=Bi(PT),kve=Bi(zT),Cve=Bi(BL),Fve=Bi(NL),Pve=Bi(VL),Ive=Bi(UL),Lve=Bi(cx),zve=Bi(jL),Rve=Bi(hx),Bve=Bi(HL),qve=Bi(WL),Ove=Bi(XL),Nve=Bi(KL),Vve=Bi(QL),Uve=Bi(ez),Gve=Bi(rz),jve=Bi(az),$ve=Bi(nz),Hve=Bi(oz),Zve=Bi(sz),Yve=Bi(q0),Wve=Bi(hz),Xve=Bi(fz),Kve=Bi(mz),Jve=Bi(yz)});var a7={};Yi(a7,{default:()=>ege});var Qve,ege,n7=Gi(()=>{"use strict";Qve={format:{valType:"enumerated",values:["png","jpeg","webp","svg","full-json"],dflt:"png",description:"Sets the format of exported image."},width:{valType:"number",min:1,description:["Sets the exported image width.","Defaults to the value found in `layout.width`","If set to *null*, the exported image width will match the current graph width."].join(" ")},height:{valType:"number",min:1,description:["Sets the exported image height.","Defaults to the value found in `layout.height`","If set to *null*, the exported image height will match the current graph height."].join(" ")},scale:{valType:"number",min:0,dflt:1,description:["Sets a scaling for the generated image.","If set, all features of a graphs (e.g. text, line width)","are scaled, unlike simply setting","a bigger *width* and *height*."].join(" ")},setBackground:{valType:"any",dflt:!1,description:["Sets the image background mode.","By default, the image background is determined by `layout.paper_bgcolor`,","the *transparent* mode.","One might consider setting `setBackground` to *opaque*","when exporting a *jpeg* image as JPEGs do not support opacity."].join(" ")},imageDataOnly:{valType:"boolean",dflt:!1,description:["Determines whether or not the return value is prefixed by","the image format's corresponding 'data:image;' spec."].join(" ")}},ege=Qve});var Yh=X((xJe,Gz)=>{"use strict";var{format:tge,width:rge,height:ige,scale:age}=(n7(),lt(a7)).default,Oz=age,{dflt:_Je}=Oz,nge=cI(Oz,["dflt"]),Nz={staticPlot:{valType:"boolean",dflt:!1},typesetMath:{valType:"boolean",dflt:!0},plotlyServerURL:{valType:"string",dflt:"https://cloud.plotly.com/newchart"},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","map"],extras:[!0,!1],dflt:"gl3d+geo+map"},doubleClick:{valType:"enumerated",values:[!1,"reset","autosize","reset+autosize"],dflt:"reset+autosize"},doubleClickDelay:{valType:"number",dflt:500,min:0},showAxisDragHandles:{valType:"boolean",dflt:!0},showAxisRangeEntryBoxes:{valType:"boolean",dflt:!0},showTips:{valType:"boolean",dflt:!0},displayNotifier:{valType:"boolean",dflt:!0},displayModeBar:{valType:"enumerated",values:["hover",!0,!1],dflt:"hover"},showSendToCloud:{valType:"boolean",dflt:!0},modeBarButtonsToRemove:{valType:"any",dflt:[]},modeBarButtonsToAdd:{valType:"any",dflt:[]},modeBarButtons:{valType:"any",dflt:!1},toImageButtonOptions:{format:tge,filename:{valType:"string"},width:rge,height:ige,scale:nge},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/un/"},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},locale:{valType:"string",dflt:"en-US"},locales:{valType:"any",dflt:{}}},Vz={};function Uz(e,t){for(let r in e){let i=e[r];typeof i!="object"||i===null||(i.valType?"dflt"in i&&(t[r]=i.dflt):(t[r]||(t[r]={}),Uz(i,t[r])))}}Uz(Nz,Vz);Gz.exports={configAttributes:Nz,dfltConfig:Vz}});var s7=X((wJe,jz)=>{"use strict";var o7=Qr(),oge=Nr(),Cv=[];jz.exports=function(e,t,r){var s;if(((s=r==null?void 0:r._context)==null?void 0:s.displayNotifier)===!1||Cv.indexOf(e)!==-1)return;Cv.push(e);var i=1e3;oge(t)?i=t:t==="long"&&(i=3e3);var a=o7.select("body").selectAll(".plotly-notifier").data([0]);a.enter().append("div").classed("plotly-notifier",!0);var n=a.selectAll(".notifier-note").data(Cv);function o(l){l.duration(700).style("opacity",0).each("end",function(u){var c=Cv.indexOf(u);c!==-1&&Cv.splice(c,1),o7.select(this).remove()})}n.enter().append("div").classed("notifier-note",!0).style("opacity",0).each(function(l){var u=o7.select(this);u.append("button").classed("notifier-close",!0).html("×").on("click",function(){u.transition().call(o)});for(var c=u.append("p"),h=l.split(//g),f=0;f{"use strict";var $p=Yh().dfltConfig,l7=s7(),u7=$z.exports={};u7.log=function(){var e;if($p.logging>1){var t=["LOG:"];for(e=0;e1){var r=[];for(e=0;e"),"long")}};u7.warn=function(){var e;if($p.logging>0){var t=["WARN:"];for(e=0;e0){var r=[];for(e=0;e"),"stick")}};u7.error=function(){var e;if($p.logging>0){var t=["ERROR:"];for(e=0;e0){var r=[];for(e=0;e"),"stick")}}});var ec=X(V0=>{"use strict";V0.defaults=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"];V0.defaultLine="#444";V0.lightLine="#eee";V0.background="#fff";V0.borderLine="#BEC8D9";V0.lightFraction=1e3/11});var Vr=X((MJe,eR)=>{"use strict";var{converter:Hz,formatHex:sge,formatRgb:lge,wcagContrast:uge,wcagLuminance:cge}=qz(),{isArrayOrTypedArray:Zz}=hs(),{warn:hge}=Hc(),{background:Pv,defaultLine:f7,defaults:fge,lightLine:dge}=ec(),Yz=Hz("rgb"),pge=Hz("hsl"),Wz=e=>{if(typeof e!="string")return;let t=e.trim().toLowerCase();if(!/^[0-9a-f]+$/.test(t))try{return Yz(t)}catch(r){return}},Mo=e=>e>0?e>1?1:e:0,mge={mode:"rgb",r:0,g:0,b:0,alpha:1},c7=e=>Math.round(e*255e6)/255e6,Xz=e=>Yr(nr({},e),{r:c7(e.r),g:c7(e.g),b:c7(e.b)}),Bs=e=>lge(Xz(e)),vge=e=>sge(Xz(e)),gge=e=>{var t,r,i,a;return typeof e=="string"?`"${e}"`:Zz(e)?`${(r=(t=e.constructor)==null?void 0:t.name)!=null?r:"Array"}(${e.length})`:typeof e=="object"?(a=(i=e.constructor)==null?void 0:i.name)!=null?a:"Object":`${typeof e} ${e}`},Ma=(e,t)=>{var i;let r=Wz(e);return r?((i=r.alpha)!=null||(r.alpha=1),r):(!t&&e!=null&&hge(`Invalid color specifier: ${gge(e)}. Defaulting to "#000"`),mge)},Fv=e=>Bs(Yr(nr({},Ma(e)),{alpha:1})),yge=e=>e?Ma(e).alpha:0,Kz=e=>Zz(e)&&e.length>2&&Number.isFinite(e[0])&&Number.isFinite(e[1])&&Number.isFinite(e[2]),_ge=e=>{let[t,r,i,a]=e,n=Math.max(t,r,i)>1?1/255:1,o=a!=null?a:1;return{mode:"rgb",r:t*n,g:r*n,b:i*n,alpha:o>1?o/255:o}},xge=(e,t)=>{let r=Kz(e)?_ge(e):Ma(e,!0),i=[Mo(r.r),Mo(r.g),Mo(r.b),Mo(r.alpha)];return t==="uint8"||t==="uint8_clamped"?Uint8Array.from(i,a=>Math.round(a*255)):t==="float32"?Float32Array.from(i):t==="float64"?Float64Array.from(i):i},bge=(e,t)=>Bs(Yr(nr({},Ma(e)),{alpha:Mo(t)})),Jz=(e,t)=>{let r=Ma(e),i=r.alpha;if(i===1)return Bs(r);let a=Ma(t||Pv),n=a.alpha,o=(s,l)=>(n===1?l:1-n+l*n)*(1-i)+s*i;return Bs({mode:"rgb",r:o(r.r,a.r),g:o(r.g,a.g),b:o(r.b,a.b)})},wge=(e,t,r)=>{let i=Ma(e),a=Ma(t),n=(o,s)=>r*o+(1-r)*s;return Bs({mode:"rgb",r:n(i.r,a.r),g:n(i.g,a.g),b:n(i.b,a.b)})},h7=(e,t)=>{let r=Ma(e),i=pge(r)||{mode:"hsl",h:0,s:0,l:0};return Bs(Yz(Yr(nr({},i),{l:Mo((i.l*100+t)/100),alpha:r.alpha})))},px=(e,t)=>uge(Ma(e),Ma(t)),Qz=e=>px(e,Pv)>px(e,f7),Age=Bs(Ma(Pv)),Tge=Bs(Ma(f7)),Mge=(e,t,r)=>(Ma(e).alpha!==1&&(e=Jz(e,Pv)),Qz(e)?t?h7(e,t):Age:r?h7(e,-r):Tge),Dge=(e,t)=>{e.style({stroke:Fv(t),"stroke-opacity":Ma(t).alpha})},Sge=(e,t)=>{e.style({fill:Fv(t),"fill-opacity":Ma(t).alpha})},Ege=(e,t)=>!!(e&&t&&Fv(e)===Fv(t)),kge=e=>Wz(e)!==void 0,Cge=(e,t)=>{t=t===0?0:t||10;let r=Ma(e),i=t/100;return Bs(Yr(nr({},r),{r:Mo(r.r+i),g:Mo(r.g+i),b:Mo(r.b+i)}))},Fge=(e,t,r)=>{let i=Ma(e),a=Ma(t),n=r/100,o=a.alpha-i.alpha,s=2*n-1,l=((s*o===-1?s:(s+o)/(1+s*o))+1)/2,u=1-l,c=(h,f)=>u*h+l*f;return Bs({mode:"rgb",r:c(i.r,a.r),g:c(i.g,a.g),b:c(i.b,a.b),alpha:i.alpha*(1-n)+a.alpha*n})},Pge=(e,t=["#000","#fff"])=>{let r,i=-1/0;for(let a of t){let n=px(e,a);n>i&&(i=n,r=Bs(Ma(a)))}return r},Ige=e=>Bs(Ma(e)),Lge=e=>vge(Ma(e)).toUpperCase(),zge=e=>{let t=Ma(e);return[Mo(t.r)*255,Mo(t.g)*255,Mo(t.b)*255,Mo(t.alpha)]},Rge=([e,t,r,i])=>Bs({mode:"rgb",r:e/255,g:t/255,b:r/255,alpha:i}),Bge=e=>{let t=Ma(e);return cge({mode:"rgb",r:Mo(t.r),g:Mo(t.g),b:Mo(t.b)})};eR.exports={addOpacity:bge,adjustLightness:h7,background:Pv,brighten:Cge,combine:Jz,contrast:Mge,defaultLine:f7,defaults:fge,equals:Ege,fill:Sge,hexString:Lge,interpolate:wge,isChannelArray:Kz,isDark:Qz,isValid:kge,lightLine:dge,luminosity:Bge,mix:Fge,mostReadable:Pge,normalize:xge,opacity:yge,parse:Ma,rgb:Fv,rgbaArray:zge,rgbaArrayToString:Rge,rgbaString:Ige,stroke:Dge,wcagContrast:px}});var U0=X((SJe,iR)=>{"use strict";var qge=Vr(),mx={Greys:[[0,"rgb(0,0,0)"],[1,"rgb(255,255,255)"]],YlGnBu:[[0,"rgb(8,29,88)"],[.125,"rgb(37,52,148)"],[.25,"rgb(34,94,168)"],[.375,"rgb(29,145,192)"],[.5,"rgb(65,182,196)"],[.625,"rgb(127,205,187)"],[.75,"rgb(199,233,180)"],[.875,"rgb(237,248,217)"],[1,"rgb(255,255,217)"]],Greens:[[0,"rgb(0,68,27)"],[.125,"rgb(0,109,44)"],[.25,"rgb(35,139,69)"],[.375,"rgb(65,171,93)"],[.5,"rgb(116,196,118)"],[.625,"rgb(161,217,155)"],[.75,"rgb(199,233,192)"],[.875,"rgb(229,245,224)"],[1,"rgb(247,252,245)"]],YlOrRd:[[0,"rgb(128,0,38)"],[.125,"rgb(189,0,38)"],[.25,"rgb(227,26,28)"],[.375,"rgb(252,78,42)"],[.5,"rgb(253,141,60)"],[.625,"rgb(254,178,76)"],[.75,"rgb(254,217,118)"],[.875,"rgb(255,237,160)"],[1,"rgb(255,255,204)"]],Bluered:[[0,"rgb(0,0,255)"],[1,"rgb(255,0,0)"]],RdBu:[[0,"rgb(5,10,172)"],[.35,"rgb(106,137,247)"],[.5,"rgb(190,190,190)"],[.6,"rgb(220,170,132)"],[.7,"rgb(230,145,90)"],[1,"rgb(178,10,28)"]],Reds:[[0,"rgb(220,220,220)"],[.2,"rgb(245,195,157)"],[.4,"rgb(245,160,105)"],[1,"rgb(178,10,28)"]],Blues:[[0,"rgb(5,10,172)"],[.35,"rgb(40,60,190)"],[.5,"rgb(70,100,245)"],[.6,"rgb(90,120,245)"],[.7,"rgb(106,137,247)"],[1,"rgb(220,220,220)"]],Picnic:[[0,"rgb(0,0,255)"],[.1,"rgb(51,153,255)"],[.2,"rgb(102,204,255)"],[.3,"rgb(153,204,255)"],[.4,"rgb(204,204,255)"],[.5,"rgb(255,255,255)"],[.6,"rgb(255,204,255)"],[.7,"rgb(255,153,255)"],[.8,"rgb(255,102,204)"],[.9,"rgb(255,102,102)"],[1,"rgb(255,0,0)"]],Rainbow:[[0,"rgb(150,0,90)"],[.125,"rgb(0,0,200)"],[.25,"rgb(0,25,255)"],[.375,"rgb(0,152,255)"],[.5,"rgb(44,255,150)"],[.625,"rgb(151,255,0)"],[.75,"rgb(255,234,0)"],[.875,"rgb(255,111,0)"],[1,"rgb(255,0,0)"]],Portland:[[0,"rgb(12,51,131)"],[.25,"rgb(10,136,186)"],[.5,"rgb(242,211,56)"],[.75,"rgb(242,143,56)"],[1,"rgb(217,30,30)"]],Jet:[[0,"rgb(0,0,131)"],[.125,"rgb(0,60,170)"],[.375,"rgb(5,255,255)"],[.625,"rgb(255,255,0)"],[.875,"rgb(250,0,0)"],[1,"rgb(128,0,0)"]],Hot:[[0,"rgb(0,0,0)"],[.3,"rgb(230,0,0)"],[.6,"rgb(255,210,0)"],[1,"rgb(255,255,255)"]],Blackbody:[[0,"rgb(0,0,0)"],[.2,"rgb(230,0,0)"],[.4,"rgb(230,210,0)"],[.7,"rgb(255,255,255)"],[1,"rgb(160,200,255)"]],Earth:[[0,"rgb(0,0,130)"],[.1,"rgb(0,180,180)"],[.2,"rgb(40,210,40)"],[.4,"rgb(230,230,50)"],[.6,"rgb(120,70,20)"],[1,"rgb(255,255,255)"]],Electric:[[0,"rgb(0,0,0)"],[.15,"rgb(30,0,100)"],[.4,"rgb(120,0,100)"],[.6,"rgb(160,90,0)"],[.8,"rgb(230,200,0)"],[1,"rgb(255,250,220)"]],Viridis:[[0,"#440154"],[.06274509803921569,"#48186a"],[.12549019607843137,"#472d7b"],[.18823529411764706,"#424086"],[.25098039215686274,"#3b528b"],[.3137254901960784,"#33638d"],[.3764705882352941,"#2c728e"],[.4392156862745098,"#26828e"],[.5019607843137255,"#21918c"],[.5647058823529412,"#1fa088"],[.6274509803921569,"#28ae80"],[.6901960784313725,"#3fbc73"],[.7529411764705882,"#5ec962"],[.8156862745098039,"#84d44b"],[.8784313725490196,"#addc30"],[.9411764705882353,"#d8e219"],[1,"#fde725"]],Cividis:[[0,"rgb(0,32,76)"],[.058824,"rgb(0,42,102)"],[.117647,"rgb(0,52,110)"],[.176471,"rgb(39,63,108)"],[.235294,"rgb(60,74,107)"],[.294118,"rgb(76,85,107)"],[.352941,"rgb(91,95,109)"],[.411765,"rgb(104,106,112)"],[.470588,"rgb(117,117,117)"],[.529412,"rgb(131,129,120)"],[.588235,"rgb(146,140,120)"],[.647059,"rgb(161,152,118)"],[.705882,"rgb(176,165,114)"],[.764706,"rgb(192,177,109)"],[.823529,"rgb(209,191,102)"],[.882353,"rgb(225,204,92)"],[.941176,"rgb(243,219,79)"],[1,"rgb(255,233,69)"]]},tR=mx.RdBu;function Oge(e,t){if(t||(t=tR),!e)return t;function r(){try{e=mx[e]||JSON.parse(e)}catch(i){e=t}}return typeof e=="string"&&(r(),typeof e=="string"&&r()),rR(e)?e:t}function rR(e){var t=0;if(!Array.isArray(e)||e.length<2||!e[0]||!e[e.length-1]||+e[0][0]!=0||+e[e.length-1][0]!=1)return!1;for(var r=0;rGge,HIDE_PLACEHOLDER:()=>Uge,SHOW_PLACEHOLDER:()=>Vge});var Vge,Uge,Gge,gx=Gi(()=>{"use strict";Vge=100,Uge=1e3,Gge=.2});var Iv={};Yi(Iv,{counter:()=>G0});function G0(e,t="",r,i){let a=t+(r?"":"$"),n=i===!1?"":"^";return e==="xy"?new RegExp(n+"x"+d7+"y"+d7+a):new RegExp(n+e+d7+a)}var d7,Hp=Gi(()=>{"use strict";d7="([2-9]|[1-9][0-9]+)?"});var oR=X(ds=>{"use strict";var p7=Nr(),aR=Ca().extendFlat,jge=Wo(),$ge=U0(),m7=Vr(),Hge=(gx(),lt(vx)).DESELECTDIM,Zp=uv(),nR=(Hp(),lt(Iv)).counter,Zge=(zp(),lt(Lp)).modHalf,fu=hs().isArrayOrTypedArray,Wh=hs().isTypedArraySpec,Xh=hs().decodeTypedArraySpec;ds.valObjectMeta={data_array:{coerceFunction:function(e,t,r){t.set(fu(e)?e:Wh(e)?Xh(e):r)}},enumerated:{coerceFunction:function(e,t,r,i){i.coerceNumber&&(e=+e),i.values.indexOf(e)===-1?t.set(r):t.set(e)},validateFunction:function(e,t){t.coerceNumber&&(e=+e);for(var r=t.values,i=0;in===!0||n===!1;a(e)||i.arrayOk&&Array.isArray(e)&&e.length>0&&e.every(a)?t.set(e):t.set(r)}},number:{coerceFunction:function(e,t,r,i){Wh(e)&&(e=Xh(e)),!p7(e)||i.min!==void 0&&ei.max?t.set(r):t.set(+e)}},integer:{coerceFunction:function(e,t,r,i){if((i.extras||[]).indexOf(e)!==-1){t.set(e);return}Wh(e)&&(e=Xh(e)),e%1||!p7(e)||i.min!==void 0&&ei.max?t.set(r):t.set(+e)}},string:{coerceFunction:function(e,t,r,i){if(typeof e!="string"){var a=typeof e=="number";i.strict===!0||!a?t.set(r):t.set(String(e))}else i.noBlank&&!e?t.set(r):t.set(e)}},color:{coerceFunction:function(e,t,r){Wh(e)&&(e=Xh(e)),m7.isValid(e)?t.set(e):t.set(r)}},colorlist:{coerceFunction:function(e,t,r){!Array.isArray(e)||!e.length?t.set(r):e.every(i=>m7.isValid(i))?t.set(e):t.set(r)}},colorscale:{coerceFunction:function(e,t,r){t.set($ge.get(e,r))}},angle:{coerceFunction:function(e,t,r){Wh(e)&&(e=Xh(e)),e==="auto"?t.set("auto"):p7(e)?t.set(Zge(+e,360)):t.set(r)}},subplotid:{coerceFunction:function(e,t,r,i){var a=i.regex||nR(r);let n=o=>typeof o=="string"&&a.test(o);n(e)||i.arrayOk&&fu(e)&&e.length>0&&e.every(n)?t.set(e):t.set(r)},validateFunction:function(e,t){var r=t.dflt;return e===r?!0:typeof e!="string"?!1:!!nR(r).test(e)}},flaglist:{coerceFunction:function(e,t,r,i){if((i.extras||[]).indexOf(e)!==-1){t.set(e);return}if(typeof e!="string"){t.set(r);return}for(var a=e.split("+"),n=0;n{"use strict";sR.exports=function(){}});var v7=X((CJe,lR)=>{"use strict";lR.exports=function(t,r){if(r instanceof RegExp){for(var i=r.toString(),a=0;a{uR.exports=Yge;function Yge(){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}});var fR=X((PJe,hR)=>{hR.exports=Wge;function Wge(e){var t=new Float32Array(16);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}});var pR=X((IJe,dR)=>{dR.exports=Xge;function Xge(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}});var g7=X((LJe,mR)=>{mR.exports=Kge;function Kge(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}});var gR=X((zJe,vR)=>{vR.exports=Jge;function Jge(e,t){if(e===t){var r=t[1],i=t[2],a=t[3],n=t[6],o=t[7],s=t[11];e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=r,e[6]=t[9],e[7]=t[13],e[8]=i,e[9]=n,e[11]=t[14],e[12]=a,e[13]=o,e[14]=s}else e[0]=t[0],e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=t[1],e[5]=t[5],e[6]=t[9],e[7]=t[13],e[8]=t[2],e[9]=t[6],e[10]=t[10],e[11]=t[14],e[12]=t[3],e[13]=t[7],e[14]=t[11],e[15]=t[15];return e}});var _R=X((RJe,yR)=>{yR.exports=Qge;function Qge(e,t){var r=t[0],i=t[1],a=t[2],n=t[3],o=t[4],s=t[5],l=t[6],u=t[7],c=t[8],h=t[9],f=t[10],d=t[11],p=t[12],m=t[13],g=t[14],y=t[15],x=r*s-i*o,b=r*l-a*o,_=r*u-n*o,A=i*l-a*s,T=i*u-n*s,M=a*u-n*l,S=c*m-h*p,k=c*g-f*p,P=c*y-d*p,I=h*g-f*m,B=h*y-d*m,L=f*y-d*g,z=x*L-b*B+_*I+A*P-T*k+M*S;return z?(z=1/z,e[0]=(s*L-l*B+u*I)*z,e[1]=(a*B-i*L-n*I)*z,e[2]=(m*M-g*T+y*A)*z,e[3]=(f*T-h*M-d*A)*z,e[4]=(l*P-o*L-u*k)*z,e[5]=(r*L-a*P+n*k)*z,e[6]=(g*_-p*M-y*b)*z,e[7]=(c*M-f*_+d*b)*z,e[8]=(o*B-s*P+u*S)*z,e[9]=(i*P-r*B-n*S)*z,e[10]=(p*T-m*_+y*x)*z,e[11]=(h*_-c*T-d*x)*z,e[12]=(s*k-o*I-l*S)*z,e[13]=(r*I-i*k+a*S)*z,e[14]=(m*b-p*A-g*x)*z,e[15]=(c*A-h*b+f*x)*z,e):null}});var bR=X((BJe,xR)=>{xR.exports=eye;function eye(e,t){var r=t[0],i=t[1],a=t[2],n=t[3],o=t[4],s=t[5],l=t[6],u=t[7],c=t[8],h=t[9],f=t[10],d=t[11],p=t[12],m=t[13],g=t[14],y=t[15];return e[0]=s*(f*y-d*g)-h*(l*y-u*g)+m*(l*d-u*f),e[1]=-(i*(f*y-d*g)-h*(a*y-n*g)+m*(a*d-n*f)),e[2]=i*(l*y-u*g)-s*(a*y-n*g)+m*(a*u-n*l),e[3]=-(i*(l*d-u*f)-s*(a*d-n*f)+h*(a*u-n*l)),e[4]=-(o*(f*y-d*g)-c*(l*y-u*g)+p*(l*d-u*f)),e[5]=r*(f*y-d*g)-c*(a*y-n*g)+p*(a*d-n*f),e[6]=-(r*(l*y-u*g)-o*(a*y-n*g)+p*(a*u-n*l)),e[7]=r*(l*d-u*f)-o*(a*d-n*f)+c*(a*u-n*l),e[8]=o*(h*y-d*m)-c*(s*y-u*m)+p*(s*d-u*h),e[9]=-(r*(h*y-d*m)-c*(i*y-n*m)+p*(i*d-n*h)),e[10]=r*(s*y-u*m)-o*(i*y-n*m)+p*(i*u-n*s),e[11]=-(r*(s*d-u*h)-o*(i*d-n*h)+c*(i*u-n*s)),e[12]=-(o*(h*g-f*m)-c*(s*g-l*m)+p*(s*f-l*h)),e[13]=r*(h*g-f*m)-c*(i*g-a*m)+p*(i*f-a*h),e[14]=-(r*(s*g-l*m)-o*(i*g-a*m)+p*(i*l-a*s)),e[15]=r*(s*f-l*h)-o*(i*f-a*h)+c*(i*l-a*s),e}});var AR=X((qJe,wR)=>{wR.exports=tye;function tye(e){var t=e[0],r=e[1],i=e[2],a=e[3],n=e[4],o=e[5],s=e[6],l=e[7],u=e[8],c=e[9],h=e[10],f=e[11],d=e[12],p=e[13],m=e[14],g=e[15],y=t*o-r*n,x=t*s-i*n,b=t*l-a*n,_=r*s-i*o,A=r*l-a*o,T=i*l-a*s,M=u*p-c*d,S=u*m-h*d,k=u*g-f*d,P=c*m-h*p,I=c*g-f*p,B=h*g-f*m;return y*B-x*I+b*P+_*k-A*S+T*M}});var MR=X((OJe,TR)=>{TR.exports=rye;function rye(e,t,r){var i=t[0],a=t[1],n=t[2],o=t[3],s=t[4],l=t[5],u=t[6],c=t[7],h=t[8],f=t[9],d=t[10],p=t[11],m=t[12],g=t[13],y=t[14],x=t[15],b=r[0],_=r[1],A=r[2],T=r[3];return e[0]=b*i+_*s+A*h+T*m,e[1]=b*a+_*l+A*f+T*g,e[2]=b*n+_*u+A*d+T*y,e[3]=b*o+_*c+A*p+T*x,b=r[4],_=r[5],A=r[6],T=r[7],e[4]=b*i+_*s+A*h+T*m,e[5]=b*a+_*l+A*f+T*g,e[6]=b*n+_*u+A*d+T*y,e[7]=b*o+_*c+A*p+T*x,b=r[8],_=r[9],A=r[10],T=r[11],e[8]=b*i+_*s+A*h+T*m,e[9]=b*a+_*l+A*f+T*g,e[10]=b*n+_*u+A*d+T*y,e[11]=b*o+_*c+A*p+T*x,b=r[12],_=r[13],A=r[14],T=r[15],e[12]=b*i+_*s+A*h+T*m,e[13]=b*a+_*l+A*f+T*g,e[14]=b*n+_*u+A*d+T*y,e[15]=b*o+_*c+A*p+T*x,e}});var SR=X((NJe,DR)=>{DR.exports=iye;function iye(e,t,r){var i=r[0],a=r[1],n=r[2],o,s,l,u,c,h,f,d,p,m,g,y;return t===e?(e[12]=t[0]*i+t[4]*a+t[8]*n+t[12],e[13]=t[1]*i+t[5]*a+t[9]*n+t[13],e[14]=t[2]*i+t[6]*a+t[10]*n+t[14],e[15]=t[3]*i+t[7]*a+t[11]*n+t[15]):(o=t[0],s=t[1],l=t[2],u=t[3],c=t[4],h=t[5],f=t[6],d=t[7],p=t[8],m=t[9],g=t[10],y=t[11],e[0]=o,e[1]=s,e[2]=l,e[3]=u,e[4]=c,e[5]=h,e[6]=f,e[7]=d,e[8]=p,e[9]=m,e[10]=g,e[11]=y,e[12]=o*i+c*a+p*n+t[12],e[13]=s*i+h*a+m*n+t[13],e[14]=l*i+f*a+g*n+t[14],e[15]=u*i+d*a+y*n+t[15]),e}});var kR=X((VJe,ER)=>{ER.exports=aye;function aye(e,t,r){var i=r[0],a=r[1],n=r[2];return e[0]=t[0]*i,e[1]=t[1]*i,e[2]=t[2]*i,e[3]=t[3]*i,e[4]=t[4]*a,e[5]=t[5]*a,e[6]=t[6]*a,e[7]=t[7]*a,e[8]=t[8]*n,e[9]=t[9]*n,e[10]=t[10]*n,e[11]=t[11]*n,e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}});var FR=X((UJe,CR)=>{CR.exports=nye;function nye(e,t,r,i){var a=i[0],n=i[1],o=i[2],s=Math.sqrt(a*a+n*n+o*o),l,u,c,h,f,d,p,m,g,y,x,b,_,A,T,M,S,k,P,I,B,L,z,q;return Math.abs(s)<1e-6?null:(s=1/s,a*=s,n*=s,o*=s,l=Math.sin(r),u=Math.cos(r),c=1-u,h=t[0],f=t[1],d=t[2],p=t[3],m=t[4],g=t[5],y=t[6],x=t[7],b=t[8],_=t[9],A=t[10],T=t[11],M=a*a*c+u,S=n*a*c+o*l,k=o*a*c-n*l,P=a*n*c-o*l,I=n*n*c+u,B=o*n*c+a*l,L=a*o*c+n*l,z=n*o*c-a*l,q=o*o*c+u,e[0]=h*M+m*S+b*k,e[1]=f*M+g*S+_*k,e[2]=d*M+y*S+A*k,e[3]=p*M+x*S+T*k,e[4]=h*P+m*I+b*B,e[5]=f*P+g*I+_*B,e[6]=d*P+y*I+A*B,e[7]=p*P+x*I+T*B,e[8]=h*L+m*z+b*q,e[9]=f*L+g*z+_*q,e[10]=d*L+y*z+A*q,e[11]=p*L+x*z+T*q,t!==e&&(e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e)}});var IR=X((GJe,PR)=>{PR.exports=oye;function oye(e,t,r){var i=Math.sin(r),a=Math.cos(r),n=t[4],o=t[5],s=t[6],l=t[7],u=t[8],c=t[9],h=t[10],f=t[11];return t!==e&&(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[4]=n*a+u*i,e[5]=o*a+c*i,e[6]=s*a+h*i,e[7]=l*a+f*i,e[8]=u*a-n*i,e[9]=c*a-o*i,e[10]=h*a-s*i,e[11]=f*a-l*i,e}});var zR=X((jJe,LR)=>{LR.exports=sye;function sye(e,t,r){var i=Math.sin(r),a=Math.cos(r),n=t[0],o=t[1],s=t[2],l=t[3],u=t[8],c=t[9],h=t[10],f=t[11];return t!==e&&(e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=n*a-u*i,e[1]=o*a-c*i,e[2]=s*a-h*i,e[3]=l*a-f*i,e[8]=n*i+u*a,e[9]=o*i+c*a,e[10]=s*i+h*a,e[11]=l*i+f*a,e}});var BR=X(($Je,RR)=>{RR.exports=lye;function lye(e,t,r){var i=Math.sin(r),a=Math.cos(r),n=t[0],o=t[1],s=t[2],l=t[3],u=t[4],c=t[5],h=t[6],f=t[7];return t!==e&&(e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=n*a+u*i,e[1]=o*a+c*i,e[2]=s*a+h*i,e[3]=l*a+f*i,e[4]=u*a-n*i,e[5]=c*a-o*i,e[6]=h*a-s*i,e[7]=f*a-l*i,e}});var OR=X((HJe,qR)=>{qR.exports=uye;function uye(e,t,r){var i,a,n,o=r[0],s=r[1],l=r[2],u=Math.sqrt(o*o+s*s+l*l);return Math.abs(u)<1e-6?null:(u=1/u,o*=u,s*=u,l*=u,i=Math.sin(t),a=Math.cos(t),n=1-a,e[0]=o*o*n+a,e[1]=s*o*n+l*i,e[2]=l*o*n-s*i,e[3]=0,e[4]=o*s*n-l*i,e[5]=s*s*n+a,e[6]=l*s*n+o*i,e[7]=0,e[8]=o*l*n+s*i,e[9]=s*l*n-o*i,e[10]=l*l*n+a,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e)}});var VR=X((ZJe,NR)=>{NR.exports=cye;function cye(e,t,r){var i=t[0],a=t[1],n=t[2],o=t[3],s=i+i,l=a+a,u=n+n,c=i*s,h=i*l,f=i*u,d=a*l,p=a*u,m=n*u,g=o*s,y=o*l,x=o*u;return e[0]=1-(d+m),e[1]=h+x,e[2]=f-y,e[3]=0,e[4]=h-x,e[5]=1-(c+m),e[6]=p+g,e[7]=0,e[8]=f+y,e[9]=p-g,e[10]=1-(c+d),e[11]=0,e[12]=r[0],e[13]=r[1],e[14]=r[2],e[15]=1,e}});var GR=X((YJe,UR)=>{UR.exports=hye;function hye(e,t){return e[0]=t[0],e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=t[1],e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=t[2],e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var $R=X((WJe,jR)=>{jR.exports=fye;function fye(e,t){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]=t[0],e[13]=t[1],e[14]=t[2],e[15]=1,e}});var ZR=X((XJe,HR)=>{HR.exports=dye;function dye(e,t){var r=Math.sin(t),i=Math.cos(t);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=i,e[6]=r,e[7]=0,e[8]=0,e[9]=-r,e[10]=i,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var WR=X((KJe,YR)=>{YR.exports=pye;function pye(e,t){var r=Math.sin(t),i=Math.cos(t);return e[0]=i,e[1]=0,e[2]=-r,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=r,e[9]=0,e[10]=i,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var KR=X((JJe,XR)=>{XR.exports=mye;function mye(e,t){var r=Math.sin(t),i=Math.cos(t);return e[0]=i,e[1]=r,e[2]=0,e[3]=0,e[4]=-r,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}});var QR=X((QJe,JR)=>{JR.exports=vye;function vye(e,t){var r=t[0],i=t[1],a=t[2],n=t[3],o=r+r,s=i+i,l=a+a,u=r*o,c=i*o,h=i*s,f=a*o,d=a*s,p=a*l,m=n*o,g=n*s,y=n*l;return e[0]=1-h-p,e[1]=c+y,e[2]=f-g,e[3]=0,e[4]=c-y,e[5]=1-u-p,e[6]=d+m,e[7]=0,e[8]=f+g,e[9]=d-m,e[10]=1-u-h,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var tB=X((eQe,eB)=>{eB.exports=gye;function gye(e,t,r,i,a,n,o){var s=1/(r-t),l=1/(a-i),u=1/(n-o);return e[0]=n*2*s,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=n*2*l,e[6]=0,e[7]=0,e[8]=(r+t)*s,e[9]=(a+i)*l,e[10]=(o+n)*u,e[11]=-1,e[12]=0,e[13]=0,e[14]=o*n*2*u,e[15]=0,e}});var iB=X((tQe,rB)=>{rB.exports=yye;function yye(e,t,r,i,a){var n=1/Math.tan(t/2),o=1/(i-a);return e[0]=n/r,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=n,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=(a+i)*o,e[11]=-1,e[12]=0,e[13]=0,e[14]=2*a*i*o,e[15]=0,e}});var nB=X((rQe,aB)=>{aB.exports=_ye;function _ye(e,t,r,i){var a=Math.tan(t.upDegrees*Math.PI/180),n=Math.tan(t.downDegrees*Math.PI/180),o=Math.tan(t.leftDegrees*Math.PI/180),s=Math.tan(t.rightDegrees*Math.PI/180),l=2/(o+s),u=2/(a+n);return e[0]=l,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=u,e[6]=0,e[7]=0,e[8]=-((o-s)*l*.5),e[9]=(a-n)*u*.5,e[10]=i/(r-i),e[11]=-1,e[12]=0,e[13]=0,e[14]=i*r/(r-i),e[15]=0,e}});var sB=X((iQe,oB)=>{oB.exports=xye;function xye(e,t,r,i,a,n,o){var s=1/(t-r),l=1/(i-a),u=1/(n-o);return e[0]=-2*s,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*l,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*u,e[11]=0,e[12]=(t+r)*s,e[13]=(a+i)*l,e[14]=(o+n)*u,e[15]=1,e}});var uB=X((aQe,lB)=>{var bye=g7();lB.exports=wye;function wye(e,t,r,i){var a,n,o,s,l,u,c,h,f,d,p=t[0],m=t[1],g=t[2],y=i[0],x=i[1],b=i[2],_=r[0],A=r[1],T=r[2];return Math.abs(p-_)<1e-6&&Math.abs(m-A)<1e-6&&Math.abs(g-T)<1e-6?bye(e):(c=p-_,h=m-A,f=g-T,d=1/Math.sqrt(c*c+h*h+f*f),c*=d,h*=d,f*=d,a=x*f-b*h,n=b*c-y*f,o=y*h-x*c,d=Math.sqrt(a*a+n*n+o*o),d?(d=1/d,a*=d,n*=d,o*=d):(a=0,n=0,o=0),s=h*o-f*n,l=f*a-c*o,u=c*n-h*a,d=Math.sqrt(s*s+l*l+u*u),d?(d=1/d,s*=d,l*=d,u*=d):(s=0,l=0,u=0),e[0]=a,e[1]=s,e[2]=c,e[3]=0,e[4]=n,e[5]=l,e[6]=h,e[7]=0,e[8]=o,e[9]=u,e[10]=f,e[11]=0,e[12]=-(a*p+n*m+o*g),e[13]=-(s*p+l*m+u*g),e[14]=-(c*p+h*m+f*g),e[15]=1,e)}});var hB=X((nQe,cB)=>{cB.exports=Aye;function Aye(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]+")"}});var y7=X((oQe,fB)=>{fB.exports={create:cR(),clone:fR(),copy:pR(),identity:g7(),transpose:gR(),invert:_R(),adjoint:bR(),determinant:AR(),multiply:MR(),translate:SR(),scale:kR(),rotate:FR(),rotateX:IR(),rotateY:zR(),rotateZ:BR(),fromRotation:OR(),fromRotationTranslation:VR(),fromScaling:GR(),fromTranslation:$R(),fromXRotation:ZR(),fromYRotation:WR(),fromZRotation:KR(),fromQuat:QR(),frustum:tB(),perspective:iB(),perspectiveFromFieldOfView:nB(),ortho:sB(),lookAt:uB(),str:hB()}});var xx=X(qa=>{"use strict";var Tye=y7();qa.init2dArray=function(e,t){for(var r=new Array(e),i=0;i{"use strict";var Mye=Qr(),dB=Hc(),Dye=xx(),Sye=y7();function Eye(e){var t;if(typeof e=="string"){if(t=document.getElementById(e),t===null)throw new Error("No DOM element with id '"+e+"' exists on the page.");return t}else if(e==null)throw new Error("DOM element provided is null or undefined");return e}function kye(e){var t=Mye.select(e);return t.node()instanceof HTMLElement&&t.size()&&t.classed("js-plotly-plot")}function pB(e){var t=e&&e.parentNode;t&&t.removeChild(e)}function Cye(e,t){mB("global",e,t)}function mB(e,t,r){var i="plotly.js-style-"+e,a=document.getElementById(i);if(!(a&&a.matches(".no-inline-styles"))){a||(a=document.createElement("style"),a.setAttribute("id",i),a.appendChild(document.createTextNode("")),document.head.appendChild(a));var n=a.sheet;n?n.insertRule?n.insertRule(t+"{"+r+"}",0):n.addRule?n.addRule(t,r,0):dB.warn("addStyleRule failed"):dB.warn("Cannot addRelatedStyleRule, probably due to strict CSP...")}}function Fye(e){var t="plotly.js-style-"+e,r=document.getElementById(t);r&&pB(r)}function Pye(e,t,r,i,a,n){var o=i.split(":"),s=a.split(":"),l="data-btn-style-event-added";n||(n=document),n.querySelectorAll(e).forEach(function(u){u._hoverStyle={activeStyleParts:o,inactiveStyleParts:s},u.getAttribute(l)||(u.addEventListener("mouseenter",function(){var c=this._hoverStyle,h=this.querySelector(r);h&&(h.style[c.activeStyleParts[0]]=c.activeStyleParts[1])}),u.addEventListener("mouseleave",function(){var c=this._hoverStyle,h=this.querySelector(r);h&&(t&&this.matches(t)?h.style[c.activeStyleParts[0]]=c.activeStyleParts[1]:h.style[c.inactiveStyleParts[0]]=c.inactiveStyleParts[1])}),u.setAttribute(l,!0))})}function Iye(e){var t=gB(e),r=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];return t.forEach(function(i){var a=vB(i);if(a){var n=Dye.convertCssMatrix(a);r=Sye.multiply(r,r,n)}}),r}function vB(e){var t=window.getComputedStyle(e,null),r=t.getPropertyValue("-webkit-transform")||t.getPropertyValue("-moz-transform")||t.getPropertyValue("-ms-transform")||t.getPropertyValue("-o-transform")||t.getPropertyValue("transform");return r==="none"?null:r.replace("matrix","").replace("3d","").slice(1,-1).split(",").map(function(i){return+i})}function gB(e){for(var t=[];Lye(e);)t.push(e),e=e.parentNode,typeof ShadowRoot=="function"&&e instanceof ShadowRoot&&(e=e.host);return t}function Lye(e){return e&&(e instanceof Element||e instanceof HTMLElement)}function zye(e,t){return e&&t&&e.top===t.top&&e.left===t.left&&e.right===t.right&&e.bottom===t.bottom}yB.exports={getGraphDiv:Eye,isPlotDiv:kye,removeElement:pB,addStyleRule:Cye,addRelatedStyleRule:mB,deleteRelatedStyleRule:Fye,setStyleOnHover:Pye,getFullTransformMatrix:Iye,getElementTransformMatrix:vB,getElementAndAncestors:gB,equalDomRects:zye}});var zv=X((uQe,_B)=>{"use strict";_B.exports={mode:{valType:"enumerated",dflt:"afterall",values:["immediate","next","afterall"]},direction:{valType:"enumerated",values:["forward","reverse"],dflt:"forward"},fromcurrent:{valType:"boolean",dflt:!1},frame:{duration:{valType:"number",min:0,dflt:500},redraw:{valType:"boolean",dflt:!0}},transition:{duration:{valType:"number",min:0,dflt:500,editType:"none"},easing:{valType:"enumerated",dflt:"cubic-in-out",values:["linear","quad","cubic","sin","exp","circle","elastic","back","bounce","linear-in","quad-in","cubic-in","sin-in","exp-in","circle-in","elastic-in","back-in","bounce-in","linear-out","quad-out","cubic-out","sin-out","exp-out","circle-out","elastic-out","back-out","bounce-out","linear-in-out","quad-in-out","cubic-in-out","sin-in-out","exp-in-out","circle-in-out","elastic-in-out","back-in-out","bounce-in-out"],editType:"none"},ordering:{valType:"enumerated",values:["layout first","traces first"],dflt:"layout first",editType:"none"}}}});var qs=X((cQe,DB)=>{"use strict";var bB=Ca().extendFlat,Rye=$h(),wB={valType:"flaglist",extras:["none"],flags:["calc","clearAxisTypes","plot","style","markerSize","colorbars"]},AB={valType:"flaglist",extras:["none"],flags:["calc","plot","legend","ticks","axrange","layoutstyle","modebar","camera","arraydraw","colorbars"]},Bye=wB.flags.slice().concat(["fullReplot"]),qye=AB.flags.slice().concat("layoutReplot");DB.exports={traces:wB,layout:AB,traceFlags:function(){return xB(Bye)},layoutFlags:function(){return xB(qye)},update:function(e,t){var r=t.editType;if(r&&r!=="none")for(var i=r.split("+"),a=0;a{"use strict";_7.dash={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",editType:"style"};_7.pattern={shape:{valType:"enumerated",values:["","/","\\","x","-","|","+","."],dflt:"",arrayOk:!0,editType:"style"},path:{valType:"string",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"}});var x7={};Yi(x7,{DATE_FORMAT_LINK:()=>Nye,FORMAT_LINK:()=>Oye});var Oye,Nye,b7=Gi(()=>{"use strict";Oye="https://github.com/d3/d3-format/tree/v1.4.5#d3-format",Nye="https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format"});var tc=X(Yp=>{"use strict";var{DATE_FORMAT_LINK:Vye,FORMAT_LINK:Uye}=(b7(),lt(x7)),Gye=["Variables that can't be found will be replaced with the specifier.",'For example, a template of "data: %{x}, %{y}" will result in a value of "data: 1, %{y}" if x is 1 and y is missing.',"Variables with an undefined value will be replaced with the fallback value."].join(" ");function jye({supportOther:e}={}){return["Variables are inserted using %{variable},",'for example "y: %{y}"'+(e?" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown.":"."),`Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}".`,Uye,"for details on the formatting syntax.",`Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}".`,Vye,"for details on the date formatting syntax.",Gye].join(" ")}Yp.templateFormatStringDescription=jye;Yp.hovertemplateAttrs=({editType:e="none",arrayOk:t}={},r={})=>nr({valType:"string",dflt:"",editType:e},t!==!1?{arrayOk:!0}:{});Yp.texttemplateAttrs=({editType:e="calc",arrayOk:t}={},r={})=>nr({valType:"string",dflt:"",editType:e},t!==!1?{arrayOk:!0}:{});Yp.shapeTexttemplateAttrs=({editType:e="arraydraw",newshape:t}={},r={})=>({valType:"string",dflt:"",editType:e});Yp.templatefallbackAttrs=({editType:e="none"}={})=>({valType:"any",dflt:"-",editType:e})});var Ax=X((pQe,PB)=>{"use strict";function Kh(e,t){return t?t.d2l(e):e}function SB(e,t){return t?t.l2d(e):e}function $ye(e){return e.x0}function Hye(e){return e.x1}function Zye(e){return e.y0}function Yye(e){return e.y1}function EB(e){return e.x0shift||0}function kB(e){return e.x1shift||0}function CB(e){return e.y0shift||0}function FB(e){return e.y1shift||0}function bx(e,t){return Kh(e.x1,t)+kB(e)-Kh(e.x0,t)-EB(e)}function wx(e,t,r){return Kh(e.y1,r)+FB(e)-Kh(e.y0,r)-CB(e)}function Wye(e,t){return Math.abs(bx(e,t))}function Xye(e,t,r){return Math.abs(wx(e,t,r))}function Kye(e,t,r){return e.type!=="line"?void 0:Math.sqrt(Math.pow(bx(e,t),2)+Math.pow(wx(e,t,r),2))}function Jye(e,t){return SB((Kh(e.x1,t)+kB(e)+Kh(e.x0,t)+EB(e))/2,t)}function Qye(e,t,r){return SB((Kh(e.y1,r)+FB(e)+Kh(e.y0,r)+CB(e))/2,r)}function e2e(e,t,r){return e.type!=="line"?void 0:wx(e,t,r)/bx(e,t)}var t2e=["x0","x1","y0","y1","dy","height","ycenter"],r2e=["x0","x1","y0","y1","dx","width","xcenter"];PB.exports={x0:$ye,x1:Hye,y0:Zye,y1:Yye,slope:e2e,dx:bx,dy:wx,width:Wye,height:Xye,length:Kye,xcenter:Jye,ycenter:Qye,simpleXVariables:t2e,simpleYVariables:r2e}});var zB=X((mQe,LB)=>{"use strict";var i2e=qs().overrideAll,j0=Wo(),IB=oo(),a2e=Zc().dash,Jh=Ca().extendFlat,{shapeTexttemplateAttrs:n2e,templatefallbackAttrs:o2e}=tc(),s2e=Ax();LB.exports=i2e({newshape:{visible:Jh({},j0.visible,{}),showlegend:{valType:"boolean",dflt:!1},legend:Jh({},j0.legend,{}),legendgroup:Jh({},j0.legendgroup,{}),legendgrouptitle:{text:Jh({},j0.legendgrouptitle.text,{}),font:IB({})},legendrank:Jh({},j0.legendrank,{}),legendwidth:Jh({},j0.legendwidth,{}),line:{color:{valType:"color"},width:{valType:"number",min:0,dflt:4},dash:Jh({},a2e,{dflt:"solid"})},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd"},opacity:{valType:"number",min:0,max:1,dflt:1},layer:{valType:"enumerated",values:["below","above","between"],dflt:"above"},drawdirection:{valType:"enumerated",values:["ortho","horizontal","vertical","diagonal"],dflt:"diagonal"},name:Jh({},j0.name,{}),label:{text:{valType:"string",dflt:""},texttemplate:n2e({newshape:!0},{keys:Object.keys(s2e)}),texttemplatefallback:o2e({editType:"arraydraw"}),font:IB({}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"]},textangle:{valType:"angle",dflt:"auto"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto"},yanchor:{valType:"enumerated",values:["top","middle","bottom"]},padding:{valType:"number",dflt:3,min:0}}},activeshape:{fillcolor:{valType:"color",dflt:"rgb(255,0,255)",description:"Sets the color filling the active shape' interior."},opacity:{valType:"number",min:0,max:1,dflt:.5}}},"none","from-root")});var BB=X((vQe,RB)=>{"use strict";var l2e=Zc().dash,u2e=Ca().extendFlat;RB.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:u2e({},l2e,{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"}}});var Tx=X((gQe,qB)=>{"use strict";qB.exports=function(e){var t=e.editType;return{t:{valType:"number",dflt:0,editType:t},r:{valType:"number",dflt:0,editType:t},b:{valType:"number",dflt:0,editType:t},l:{valType:"number",dflt:0,editType:t},editType:t}}});var Wp=X((yQe,UB)=>{"use strict";var w7=oo(),c2e=zv(),Mx=ec(),OB=zB(),NB=BB(),h2e=Tx(),VB=Ca().extendFlat,Dx=w7({editType:"calc"});Dx.family.dflt='"Open Sans", verdana, arial, sans-serif';Dx.size.dflt=12;Dx.color.dflt=Mx.defaultLine;UB.exports={font:Dx,title:{text:{valType:"string",editType:"layoutstyle"},font:w7({editType:"layoutstyle"}),subtitle:{text:{valType:"string",editType:"layoutstyle"},font:w7({editType:"layoutstyle"}),editType:"layoutstyle"},xref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle"},yref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle"},x:{valType:"number",min:0,max:1,dflt:.5,editType:"layoutstyle"},y:{valType:"number",min:0,max:1,dflt:"auto",editType:"layoutstyle"},xanchor:{valType:"enumerated",dflt:"auto",values:["auto","left","center","right"],editType:"layoutstyle"},yanchor:{valType:"enumerated",dflt:"auto",values:["auto","top","middle","bottom"],editType:"layoutstyle"},pad:VB(h2e({editType:"layoutstyle"}),{}),automargin:{valType:"boolean",dflt:!1,editType:"plot"},editType:"layoutstyle"},uniformtext:{mode:{valType:"enumerated",values:[!1,"hide","show"],dflt:!1,editType:"plot"},minsize:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"},autosize:{valType:"boolean",dflt:!1,editType:"none"},width:{valType:"number",min:10,dflt:700,editType:"plot"},height:{valType:"number",min:10,dflt:450,editType:"plot"},minreducedwidth:{valType:"number",min:2,dflt:64,editType:"plot"},minreducedheight:{valType:"number",min:2,dflt:64,editType:"plot"},margin:{l:{valType:"number",min:0,dflt:80,editType:"plot"},r:{valType:"number",min:0,dflt:80,editType:"plot"},t:{valType:"number",min:0,dflt:100,editType:"plot"},b:{valType:"number",min:0,dflt:80,editType:"plot"},pad:{valType:"number",min:0,dflt:0,editType:"plot"},autoexpand:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},computed:{valType:"any",editType:"none"},paper_bgcolor:{valType:"color",dflt:Mx.background,editType:"plot"},plot_bgcolor:{valType:"color",dflt:Mx.background,editType:"layoutstyle"},autotypenumbers:{valType:"enumerated",values:["convert types","strict"],dflt:"convert types",editType:"calc"},separators:{valType:"string",editType:"plot"},showlegend:{valType:"boolean",editType:"legend"},colorway:{valType:"colorlist",dflt:Mx.defaults,editType:"calc"},datarevision:{valType:"any",editType:"calc"},uirevision:{valType:"any",editType:"none"},editrevision:{valType:"any",editType:"none"},selectionrevision:{valType:"any",editType:"none"},template:{valType:"any",editType:"calc"},newshape:OB.newshape,activeshape:OB.activeshape,newselection:NB.newselection,activeselection:NB.activeselection,meta:{valType:"any",arrayOk:!0,editType:"plot"},transition:VB({},c2e.transition,{editType:"none"})}});var GB=X(()=>{(function(){if(!document.getElementById("9f215cf04c5486422605d13261cb87401f4e7763b6296af81e98efbc0130da53")){var e=document.createElement("style");e.id="9f215cf04c5486422605d13261cb87401f4e7763b6296af81e98efbc0130da53",e.textContent='.maplibregl-map{font:12px/20px Helvetica Neue,Arial,Helvetica,sans-serif;overflow:hidden;position:relative;-webkit-tap-highlight-color:rgb(0 0 0/0);-webkit-touch-callout:none}.maplibregl-canvas{position:absolute;left:0;top:0}.maplibregl-map:fullscreen{width:100%;height:100%}.maplibregl-ctrl-group button.maplibregl-ctrl-compass{touch-action:none}.maplibregl-canvas-container.maplibregl-interactive,.maplibregl-ctrl-group button.maplibregl-ctrl-compass{cursor:grab;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-canvas-container.maplibregl-interactive.maplibregl-track-pointer{cursor:pointer}.maplibregl-canvas-container.maplibregl-interactive:active,.maplibregl-ctrl-group button.maplibregl-ctrl-compass:active{cursor:grabbing}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-canvas-container.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:pinch-zoom}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:none}.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures,.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-ctrl-bottom-left,.maplibregl-ctrl-bottom-right,.maplibregl-ctrl-top-left,.maplibregl-ctrl-top-right{position:absolute;pointer-events:none;z-index:2}.maplibregl-ctrl-top-left{top:0;left:0}.maplibregl-ctrl-top-right{top:0;right:0}.maplibregl-ctrl-bottom-left{bottom:0;left:0}.maplibregl-ctrl-bottom-right{right:0;bottom:0}.maplibregl-ctrl{clear:both;pointer-events:auto;transform:translate(0)}.maplibregl-ctrl-top-left .maplibregl-ctrl{margin:10px 0 0 10px;float:left}.maplibregl-ctrl-top-right .maplibregl-ctrl{margin:10px 10px 0 0;float:right}.maplibregl-ctrl-bottom-left .maplibregl-ctrl{margin:0 0 10px 10px;float:left}.maplibregl-ctrl-bottom-right .maplibregl-ctrl{margin:0 10px 10px 0;float:right}.maplibregl-ctrl-group{border-radius:4px;background:#fff}.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px rgba(0,0,0,.1)}@media (forced-colors:active){.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px ButtonText}}.maplibregl-ctrl-group button{width:29px;height:29px;display:block;padding:0;outline:none;border:0;box-sizing:border-box;background-color:transparent;cursor:pointer}.maplibregl-ctrl button{-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-ctrl-group button+button{border-top:1px solid #ddd}.maplibregl-ctrl button .maplibregl-ctrl-icon{display:block;width:100%;height:100%;background-repeat:no-repeat;background-position:50%}@media (forced-colors:active){.maplibregl-ctrl-icon{background-color:transparent}.maplibregl-ctrl-group button+button{border-top:1px solid ButtonText}}.maplibregl-ctrl button::-moz-focus-inner{border:0;padding:0}.maplibregl-ctrl-attrib-button:focus,.maplibregl-ctrl-group button:focus{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl button:disabled{cursor:not-allowed}.maplibregl-ctrl button:disabled .maplibregl-ctrl-icon{opacity:.25}@media (hover:hover){.maplibregl-ctrl button:not(:disabled):hover{background-color:rgba(0,0,0,.05)}}.maplibregl-ctrl button:not(:disabled):active{background-color:rgba(0,0,0,.05)}.maplibregl-ctrl-group button:focus:focus-visible{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl-group button:focus:not(:focus-visible){box-shadow:none}.maplibregl-ctrl-group button:focus:first-child{border-radius:4px 4px 0 0}.maplibregl-ctrl-group button:focus:last-child{border-radius:0 0 4px 4px}.maplibregl-ctrl-group button:focus:only-child{border-radius:inherit}.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M10%2013c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h9c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M14.5%208.5c-.75%200-1.5.75-1.5%201.5v3h-3c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h3v3c0%20.75.75%201.5%201.5%201.5S16%2019.75%2016%2019v-3h3c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013h-3v-3c0-.75-.75-1.5-1.5-1.5%22%2F%3E%3C%2Fsvg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M10%2013c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h9c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M14.5%208.5c-.75%200-1.5.75-1.5%201.5v3h-3c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h3v3c0%20.75.75%201.5%201.5%201.5S16%2019.75%2016%2019v-3h3c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013h-3v-3c0-.75-.75-1.5-1.5-1.5%22%2F%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M10%2013c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h9c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M14.5%208.5c-.75%200-1.5.75-1.5%201.5v3h-3c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h3v3c0%20.75.75%201.5%201.5%201.5S16%2019.75%2016%2019v-3h3c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013h-3v-3c0-.75-.75-1.5-1.5-1.5%22%2F%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M24%2016v5.5c0%201.75-.75%202.5-2.5%202.5H16v-1l3-1.5-4-5.5%201-1%205.5%204%201.5-3zM6%2016l1.5%203%205.5-4%201%201-4%205.5%203%201.5v1H7.5C5.75%2024%205%2023.25%205%2021.5V16zm7-11v1l-3%201.5%204%205.5-1%201-5.5-4L6%2013H5V7.5C5%205.75%205.75%205%207.5%205zm11%202.5c0-1.75-.75-2.5-2.5-2.5H16v1l3%201.5-4%205.5%201%201%205.5-4%201.5%203h1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M18.5%2016c-1.75%200-2.5.75-2.5%202.5V24h1l1.5-3%205.5%204%201-1-4-5.5%203-1.5v-1zM13%2018.5c0-1.75-.75-2.5-2.5-2.5H5v1l3%201.5L4%2024l1%201%205.5-4%201.5%203h1zm3-8c0%201.75.75%202.5%202.5%202.5H24v-1l-3-1.5L25%205l-1-1-5.5%204L17%205h-1zM10.5%2013c1.75%200%202.5-.75%202.5-2.5V5h-1l-1.5%203L5%204%204%205l4%205.5L5%2012v1z%22%2F%3E%3C%2Fsvg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M24%2016v5.5c0%201.75-.75%202.5-2.5%202.5H16v-1l3-1.5-4-5.5%201-1%205.5%204%201.5-3zM6%2016l1.5%203%205.5-4%201%201-4%205.5%203%201.5v1H7.5C5.75%2024%205%2023.25%205%2021.5V16zm7-11v1l-3%201.5%204%205.5-1%201-5.5-4L6%2013H5V7.5C5%205.75%205.75%205%207.5%205zm11%202.5c0-1.75-.75-2.5-2.5-2.5H16v1l3%201.5-4%205.5%201%201%205.5-4%201.5%203h1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M18.5%2016c-1.75%200-2.5.75-2.5%202.5V24h1l1.5-3%205.5%204%201-1-4-5.5%203-1.5v-1zM13%2018.5c0-1.75-.75-2.5-2.5-2.5H5v1l3%201.5L4%2024l1%201%205.5-4%201.5%203h1zm3-8c0%201.75.75%202.5%202.5%202.5H24v-1l-3-1.5L25%205l-1-1-5.5%204L17%205h-1zM10.5%2013c1.75%200%202.5-.75%202.5-2.5V5h-1l-1.5%203L5%204%204%205l4%205.5L5%2012v1z%22%2F%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M24%2016v5.5c0%201.75-.75%202.5-2.5%202.5H16v-1l3-1.5-4-5.5%201-1%205.5%204%201.5-3zM6%2016l1.5%203%205.5-4%201%201-4%205.5%203%201.5v1H7.5C5.75%2024%205%2023.25%205%2021.5V16zm7-11v1l-3%201.5%204%205.5-1%201-5.5-4L6%2013H5V7.5C5%205.75%205.75%205%207.5%205zm11%202.5c0-1.75-.75-2.5-2.5-2.5H16v1l3%201.5-4%205.5%201%201%205.5-4%201.5%203h1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M18.5%2016c-1.75%200-2.5.75-2.5%202.5V24h1l1.5-3%205.5%204%201-1-4-5.5%203-1.5v-1zM13%2018.5c0-1.75-.75-2.5-2.5-2.5H5v1l3%201.5L4%2024l1%201%205.5-4%201.5%203h1zm3-8c0%201.75.75%202.5%202.5%202.5H24v-1l-3-1.5L25%205l-1-1-5.5%204L17%205h-1zM10.5%2013c1.75%200%202.5-.75%202.5-2.5V5h-1l-1.5%203L5%204%204%205l4%205.5L5%2012v1z%22%2F%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22m10.5%2014%204-8%204%208z%22%2F%3E%3Cpath%20fill%3D%22%23ccc%22%20d%3D%22m10.5%2016%204%208%204-8z%22%2F%3E%3C%2Fsvg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22m10.5%2014%204-8%204%208z%22%2F%3E%3Cpath%20fill%3D%22%23ccc%22%20d%3D%22m10.5%2016%204%208%204-8z%22%2F%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22m10.5%2014%204-8%204%208z%22%2F%3E%3Cpath%20fill%3D%22%23ccc%22%20d%3D%22m10.5%2016%204%208%204-8z%22%2F%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-globe .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2222%22%20height%3D%2222%22%20fill%3D%22none%22%20stroke%3D%22%23333%22%20viewBox%3D%220%200%2022%2022%22%3E%3Ccircle%20cx%3D%2211%22%20cy%3D%2211%22%20r%3D%228.5%22%2F%3E%3Cpath%20d%3D%22M17.5%2011c0%204.819-3.02%208.5-6.5%208.5S4.5%2015.819%204.5%2011%207.52%202.5%2011%202.5s6.5%203.681%206.5%208.5Z%22%2F%3E%3Cpath%20d%3D%22M13.5%2011c0%202.447-.331%204.64-.853%206.206-.262.785-.562%201.384-.872%201.777-.314.399-.58.517-.775.517s-.461-.118-.775-.517c-.31-.393-.61-.992-.872-1.777C8.831%2015.64%208.5%2013.446%208.5%2011s.331-4.64.853-6.206c.262-.785.562-1.384.872-1.777.314-.399.58-.517.775-.517s.461.118.775.517c.31.393.61.992.872%201.777.522%201.565.853%203.76.853%206.206Z%22%2F%3E%3Cpath%20d%3D%22M11%207.5c-1.909%200-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3%201.3%200%200%201-.224-.138q.07-.058.224-.138c.299-.151.763-.302%201.379-.434C7.378%205.666%209.091%205.5%2011%205.5s3.622.166%204.845.428c.616.132%201.08.283%201.379.434.105.053.177.1.224.138q-.07.058-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm0%209c-1.909%200-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3%201.3%200%200%201-.224-.138%201.3%201.3%200%200%201%20.224-.138c.299-.151.763-.302%201.379-.434C7.378%2014.666%209.091%2014.5%2011%2014.5s3.622.166%204.845.428c.616.132%201.08.283%201.379.434.105.053.177.1.224.138a1.3%201.3%200%200%201-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm0-4c-2.46%200-4.672-.222-6.255-.574-.796-.177-1.406-.38-1.805-.59a1.5%201.5%200%200%201-.39-.272.3.3%200%200%201-.047-.064.3.3%200%200%201%20.048-.064c.066-.073.189-.167.389-.272.399-.21%201.009-.413%201.805-.59C6.328%209.722%208.54%209.5%2011%209.5s4.672.222%206.256.574c.795.177%201.405.38%201.804.59.2.105.323.2.39.272a.3.3%200%200%201%20.047.064.3.3%200%200%201-.048.064%201.4%201.4%200%200%201-.389.272c-.399.21-1.009.413-1.804.59-1.584.352-3.796.574-6.256.574Zm-8.501-1.51v.002zm0%20.018v.002zm17.002.002v-.002zm0-.018v-.002z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-globe-enabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2222%22%20height%3D%2222%22%20fill%3D%22none%22%20stroke%3D%22%2333b5e5%22%20viewBox%3D%220%200%2022%2022%22%3E%3Ccircle%20cx%3D%2211%22%20cy%3D%2211%22%20r%3D%228.5%22%2F%3E%3Cpath%20d%3D%22M17.5%2011c0%204.819-3.02%208.5-6.5%208.5S4.5%2015.819%204.5%2011%207.52%202.5%2011%202.5s6.5%203.681%206.5%208.5Z%22%2F%3E%3Cpath%20d%3D%22M13.5%2011c0%202.447-.331%204.64-.853%206.206-.262.785-.562%201.384-.872%201.777-.314.399-.58.517-.775.517s-.461-.118-.775-.517c-.31-.393-.61-.992-.872-1.777C8.831%2015.64%208.5%2013.446%208.5%2011s.331-4.64.853-6.206c.262-.785.562-1.384.872-1.777.314-.399.58-.517.775-.517s.461.118.775.517c.31.393.61.992.872%201.777.522%201.565.853%203.76.853%206.206Z%22%2F%3E%3Cpath%20d%3D%22M11%207.5c-1.909%200-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3%201.3%200%200%201-.224-.138q.07-.058.224-.138c.299-.151.763-.302%201.379-.434C7.378%205.666%209.091%205.5%2011%205.5s3.622.166%204.845.428c.616.132%201.08.283%201.379.434.105.053.177.1.224.138q-.07.058-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm0%209c-1.909%200-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3%201.3%200%200%201-.224-.138%201.3%201.3%200%200%201%20.224-.138c.299-.151.763-.302%201.379-.434C7.378%2014.666%209.091%2014.5%2011%2014.5s3.622.166%204.845.428c.616.132%201.08.283%201.379.434.105.053.177.1.224.138a1.3%201.3%200%200%201-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm0-4c-2.46%200-4.672-.222-6.255-.574-.796-.177-1.406-.38-1.805-.59a1.5%201.5%200%200%201-.39-.272.3.3%200%200%201-.047-.064.3.3%200%200%201%20.048-.064c.066-.073.189-.167.389-.272.399-.21%201.009-.413%201.805-.59C6.328%209.722%208.54%209.5%2011%209.5s4.672.222%206.256.574c.795.177%201.405.38%201.804.59.2.105.323.2.39.272a.3.3%200%200%201%20.047.064.3.3%200%200%201-.048.064%201.4%201.4%200%200%201-.389.272c-.399.21-1.009.413-1.804.59-1.584.352-3.796.574-6.256.574Zm-8.501-1.51v.002zm0%20.018v.002zm17.002.002v-.002zm0-.018v-.002z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-terrain .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2222%22%20height%3D%2222%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2022%2022%22%3E%3Cpath%20d%3D%22m1.754%2013.406%204.453-4.851%203.09%203.09%203.281%203.277.969-.969-3.309-3.312%203.844-4.121%206.148%206.886h1.082v-.855l-7.207-8.07-4.84%205.187L6.169%206.57l-5.48%205.965v.871ZM.688%2016.844h20.625v1.375H.688Zm0%200%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-terrain-enabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2222%22%20height%3D%2222%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2022%2022%22%3E%3Cpath%20d%3D%22m1.754%2013.406%204.453-4.851%203.09%203.09%203.281%203.277.969-.969-3.309-3.312%203.844-4.121%206.148%206.886h1.082v-.855l-7.207-8.07-4.84%205.187L6.169%206.57l-5.48%205.965v.871ZM.688%2016.844h20.625v1.375H.688Zm0%200%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23aaa%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3Cpath%20fill%3D%22red%22%20d%3D%22m14%205%201%201-9%209-1-1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23e58978%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23e54e33%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-waiting .maplibregl-ctrl-icon{animation:maplibregl-spin 2s linear infinite}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23999%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3Cpath%20fill%3D%22red%22%20d%3D%22m14%205%201%201-9%209-1-1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23e58978%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23e54e33%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23666%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3Cpath%20fill%3D%22red%22%20d%3D%22m14%205%201%201-9%209-1-1z%22%2F%3E%3C%2Fsvg%3E")}}@keyframes maplibregl-spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}a.maplibregl-ctrl-logo{width:88px;height:23px;margin:0 0 -4px -4px;display:block;background-repeat:no-repeat;cursor:pointer;overflow:hidden;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2288%22%20height%3D%2223%22%20fill%3D%22none%22%3E%3Cpath%20fill%3D%22%23000%22%20fill-opacity%3D%22.4%22%20fill-rule%3D%22evenodd%22%20d%3D%22M17.408%2016.796h-1.827l2.501-12.095h.198l3.324%206.533.988%202.19.988-2.19%203.258-6.533h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.929%205.644h-.098l-2.914-5.644-.757-1.71-.345%201.71zm1.958-3.42-.726%203.663a1.255%201.255%200%200%201-1.232%201.011h-1.827a1.255%201.255%200%200%201-1.229-1.509l2.501-12.095a1.255%201.255%200%200%201%201.23-1.001h.197a1.25%201.25%200%200%201%201.12.685l3.19%206.273%203.125-6.263a1.25%201.25%200%200%201%201.123-.695h.181a1.255%201.255%200%200%201%201.227.991l1.443%206.71a5%205%200%200%201%20.314-.787l.009-.016a4.6%204.6%200%200%201%201.777-1.887c.782-.46%201.668-.667%202.611-.667a4.6%204.6%200%200%201%201.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255%201.255%200%200%201%201.212.925%201.255%201.255%200%200%201%201.212-.925h1.711c.284%200%20.545.094.755.252.613-.3%201.312-.45%202.075-.45%201.356%200%202.557.445%203.482%201.4q.47.48.763%201.064V4.701a1.255%201.255%200%200%201%201.255-1.255h1.86A1.255%201.255%200%200%201%2054.44%204.7v9.194h2.217c.19%200%20.37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42%202.42%200%200%201-.682-1.71c0-.665.267-1.253.735-1.7a2.45%202.45%200%200%201%201.722-.674%202.43%202.43%200%200%201%201.705.675q.318.302.504.683V4.7a1.255%201.255%200%200%201%201.255-1.255h1.744A1.255%201.255%200%200%201%2065.812%204.7v3.335a4.8%204.8%200%200%201%201.526-.246c.938%200%201.817.214%202.59.69a4.47%204.47%200%200%201%201.67%201.743v-.98a1.255%201.255%200%200%201%201.256-1.256h1.777c.233%200%20.451.064.639.174a3.4%203.4%200%200%201%201.567-.372c.346%200%20.861.02%201.285.232a1.25%201.25%200%200%201%20.689%201.004%204.7%204.7%200%200%201%20.853-.588c.795-.44%201.675-.647%202.61-.647%201.385%200%202.65.39%203.525%201.396.836.938%201.168%202.173%201.168%203.528q-.001.515-.056%201.051a1.255%201.255%200%200%201-.947%201.09l.408.952a1.255%201.255%200%200%201-.477%201.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06%200-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8%205.8%200%200%201-.548-2.512q0-.429.053-.843a1.3%201.3%200%200%201-.333-.086l-.166-.004c-.223%200-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255%201.255%200%200%201-1.256%201.256h-1.777a1.255%201.255%200%200%201-1.256-1.256V15.69l-.032.057a4.8%204.8%200%200%201-1.86%201.833%205.04%205.04%200%200%201-2.484.634%204.5%204.5%200%200%201-1.935-.424%201.25%201.25%200%200%201-.764.258h-1.71a1.255%201.255%200%200%201-1.256-1.255V7.687a2.4%202.4%200%200%201-.428.625c.253.23.412.561.412.93v7.553a1.255%201.255%200%200%201-1.256%201.255h-1.843a1.25%201.25%200%200%201-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255%201.255%200%200%201-1.256-1.255v-1.251l-.061.117a4.7%204.7%200%200%201-1.782%201.884%204.77%204.77%200%200%201-2.485.67%205.6%205.6%200%200%201-1.485-.188l.009%202.764a1.255%201.255%200%200%201-1.255%201.259h-1.729a1.255%201.255%200%200%201-1.255-1.255v-3.537a1.255%201.255%200%200%201-1.167.793h-1.679a1.25%201.25%200%200%201-.77-.263%204.5%204.5%200%200%201-1.945.429c-.885%200-1.724-.21-2.495-.632l-.017-.01a5%205%200%200%201-1.081-.836%201.255%201.255%200%200%201-1.254%201.312h-1.81a1.255%201.255%200%200%201-1.228-.99l-.782-3.625-2.044%203.939a1.25%201.25%200%200%201-1.115.676h-.098a1.25%201.25%200%200%201-1.116-.68l-2.061-3.994zM35.92%2016.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033%201.332h1.678V9.242h-1.694l-.033%201.267q-.133-.329-.526-.658l-.032-.028a3.2%203.2%200%200%200-.668-.428l-.27-.12a3.3%203.3%200%200%200-1.235-.23q-1.136-.001-1.974.493a3.36%203.36%200%200%200-1.3%201.382q-.445.89-.444%202.074%200%201.2.51%202.107a3.8%203.8%200%200%200%201.382%201.381%203.9%203.9%200%200%200%201.893.477q.795%200%201.455-.33zm-2.789-5.38q-.576.675-.575%201.762%200%201.102.559%201.794.576.675%201.645.675a2.25%202.25%200%200%200%20.934-.19%202.2%202.2%200%200%200%20.468-.29l.178-.161a2.2%202.2%200%200%200%20.397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2%202.2%200%200%200-.633-.709l-.13-.086-.047-.028a2.1%202.1%200%200%200-1.073-.285q-1.052%200-1.629.692zm2.316%202.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96%200%200%200-.353-.389.85.85%200%200%200-.464-.127c-.4%200-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945%200%20.506.122.801.27.99.097.11.266.224.68.224.303%200%20.504-.09.687-.269zm7.545%201.705a2.6%202.6%200%200%200%20.331.423q.319.33.755.548l.173.074q.65.255%201.49.255%201.02%200%201.844-.493a3.45%203.45%200%200%200%201.316-1.4q.493-.904.493-2.089%200-1.909-.988-2.913-.988-1.02-2.584-1.02-.898%200-1.575.347a3%203%200%200%200-.415.262l-.199.166a3.4%203.4%200%200%200-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296%201.119.297%201.07%200%201.645-.675.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.435%200-.835.16a2%202%200%200%200-.284.136%202%202%200%200%200-.363.254%202.2%202.2%200%200%200-.46.569l-.082.162a2.6%202.6%200%200%200-.213%201.072v.115q0%20.707.296%201.267l.135.211zm.964-.818a1.1%201.1%200%200%200%20.367.385.94.94%200%200%200%20.476.118c.423%200%20.59-.117.687-.23.159-.194.28-.478.28-.95%200-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1%201%200%200%200-.503.135l-.012.007a.86.86%200%200%200-.335.343c-.073.133-.132.324-.132.614v.115a1.4%201.4%200%200%200%20.14.66zm15.7-6.222q.347-.346.346-.856a1.05%201.05%200%200%200-.345-.79%201.18%201.18%200%200%200-.84-.329q-.51%200-.855.33a1.05%201.05%200%200%200-.346.79q0%20.51.346.855.345.346.856.346.51%200%20.839-.346zm4.337%209.314.033-1.332q.191.403.59.747l.098.081a4%204%200%200%200%20.316.224l.223.122a3.2%203.2%200%200%200%201.44.322%203.8%203.8%200%200%200%201.875-.477%203.5%203.5%200%200%200%201.382-1.366q.527-.89.526-2.09%200-1.184-.444-2.073a3.24%203.24%200%200%200-1.283-1.399q-.823-.51-1.942-.51a3.5%203.5%200%200%200-1.527.344l-.086.043-.165.09a3%203%200%200%200-.33.214q-.432.315-.656.707a2%202%200%200%200-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5%202.5%200%200%200%20.566.7q.117.098.245.18l.144.08a2.1%202.1%200%200%200%20.975.232q1.07%200%201.645-.675.576-.69.576-1.778%200-1.102-.576-1.777-.56-.691-1.645-.692a2.2%202.2%200%200%200-1.015.235q-.22.113-.415.282l-.15.142a2.1%202.1%200%200%200-.42.594q-.223.479-.223%201.1v.115q0%20.705.293%201.26zm2.616-.293c.157-.191.28-.479.28-.967%200-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87%200%200%200-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0%20.285.057.499.144.669a1.1%201.1%200%200%200%20.367.405c.137.082.28.123.455.123.423%200%20.59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493%200%20.642.099l.247-1.794q-.196-.099-.717-.099a2.3%202.3%200%200%200-.545.063%202%202%200%200%200-.411.148%202.2%202.2%200%200%200-.4.249%202.5%202.5%200%200%200-.485.499%202.7%202.7%200%200%200-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5%201.5%200%200%201%20.466-.636%202.5%202.5%200%200%201%20.399-.253%202%202%200%200%201%20.224-.099zm9.784%202.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46%203.46%200%200%200-1.4%201.382q-.493.906-.493%202.106%200%201.07.428%201.975.428.89%201.332%201.432.906.526%202.255.526.973%200%201.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954%200-1.497-.444a1.6%201.6%200%200%201-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1%201%200%200%200-.156-.176q-.46-.428-1.316-.428-.986%200-1.494.604-.379.45-.494%201.234zm-27.053%202.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z%22%2F%3E%3Cpath%20fill%3D%22%23fff%22%20d%3D%22m19.63%2011.151-.757-1.71-.345%201.71-1.12%205.644h-1.827L18.083%204.7h.197l3.325%206.533.988%202.19.988-2.19L26.839%204.7h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.93%205.644h-.098l-2.913-5.644zm14.836%205.81q-1.02%200-1.893-.478a3.8%203.8%200%200%201-1.381-1.382q-.51-.906-.51-2.106%200-1.185.444-2.074a3.36%203.36%200%200%201%201.3-1.382q.839-.494%201.974-.494a3.3%203.3%200%200%201%201.234.231%203.3%203.3%200%200%201%20.97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02%201.053a3.17%203.17%200%200%201-1.662.444zm.296-1.482q.938%200%201.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2%202.2%200%200%200-.807-.872%202.1%202.1%200%200%200-1.119-.313q-1.053%200-1.629.692-.575.675-.575%201.76%200%201.103.559%201.795.577.675%201.645.675zm6.521-6.237h1.711v1.4q.906-1.597%202.83-1.597%201.596%200%202.584%201.02.988%201.005.988%202.914%200%201.185-.493%202.09a3.46%203.46%200%200%201-1.316%201.399%203.5%203.5%200%200%201-1.844.493q-.954%200-1.662-.329a2.67%202.67%200%200%201-1.086-.97l.017%205.134h-1.728zm4.048%206.22q1.07%200%201.645-.674.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.592%200-1.12.296-.51.28-.822.823-.296.527-.296%201.234v.115q0%20.708.296%201.267.313.543.823.855.51.296%201.119.297z%22%2F%3E%3Cpath%20fill%3D%22%23e1e3e9%22%20d%3D%22M51.325%204.7h1.86v10.45h3.473v1.646h-5.333zm7.12%204.542h1.843v7.553h-1.843zm.905-1.415a1.16%201.16%200%200%201-.856-.346%201.17%201.17%200%200%201-.346-.856%201.05%201.05%200%200%201%20.346-.79q.346-.329.856-.329.494%200%20.839.33a1.05%201.05%200%200%201%20.345.79%201.16%201.16%200%200%201-.345.855q-.33.346-.84.346zm7.875%209.133a3.17%203.17%200%200%201-1.662-.444q-.723-.46-1.004-1.053l-.033%201.332h-1.71V4.701h1.743v4.657l-.082%201.283q.279-.658%201.086-1.119a3.5%203.5%200%200%201%201.778-.477q1.119%200%201.942.51a3.24%203.24%200%200%201%201.283%201.4q.445.888.444%202.072%200%201.201-.526%202.09a3.5%203.5%200%200%201-1.382%201.366%203.8%203.8%200%200%201-1.876.477zm-.296-1.481q1.069%200%201.645-.675.577-.69.577-1.778%200-1.102-.577-1.776-.56-.691-1.645-.692a2.12%202.12%200%200%200-1.58.659q-.642.641-.642%201.694v.115q0%20.71.296%201.267a2.4%202.4%200%200%200%20.807.872%202.1%202.1%200%200%200%201.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14%202.14%200%200%201%201.349-.46q.527%200%20.724.098l-.247%201.794q-.149-.099-.642-.099-.774%200-1.416.494-.626.493-.626%201.58v3.883h-1.777V9.242zm9.534%207.718q-1.35%200-2.255-.526-.904-.543-1.332-1.432a4.6%204.6%200%200%201-.428-1.975q0-1.2.493-2.106a3.46%203.46%200%200%201%201.4-1.382q.889-.495%202.007-.494%201.744%200%202.584.97.855.956.856%202.7%200%20.444-.05.92h-5.43q.18%201.005.708%201.45.542.443%201.497.443.79%200%201.3-.131a4%204%200%200%200%20.938-.362l.542%201.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728%200-1.991%201.86z%22%2F%3E%3Cpath%20d%3D%22M5.074%2015.948a.484.657%200%200%200-.486.659v1.84a.484.657%200%200%200%20.486.659h4.101a.484.657%200%200%200%20.486-.659v-1.84a.484.657%200%200%200-.486-.659zm3.56%201.16H5.617v.838h3.017z%22%20style%3D%22fill%3A%23fff%3Bfill-rule%3Aevenodd%3Bstroke-width%3A1.03600001%22%2F%3E%3Cg%20style%3D%22stroke-width%3A1.12603545%22%3E%3Cpath%20d%3D%22M-9.408-1.416c-3.833-.025-7.056%202.912-7.08%206.615-.02%203.08%201.653%204.832%203.107%206.268.903.892%201.721%201.74%202.32%202.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87%201.87%200%200%200-.362%201.121l-.011%201.877c-.003.402.104.787.347%201.125.244.338.688.653%201.23.656l4.142.028c.542.003.99-.306%201.238-.641a1.87%201.87%200%200%200%20.363-1.121l.012-1.875a1.87%201.87%200%200%200-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145%201.425-1.983%202.348-2.87%201.473-1.414%203.18-3.149%203.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006%201.1v.002c3.274.02%205.92%202.532%205.9%205.6-.017%202.706-1.39%204.026-2.863%205.44-1.034.994-2.118%202.033-2.814%203.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34%200%200%201-.226.084.34.34%200%200%201-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067%202.7-5.545%205.975-5.523m-.02%202.826c-1.62-.01-2.944%201.315-2.955%202.96-.01%201.646%201.295%202.988%202.916%202.999h.002c1.621.01%202.943-1.316%202.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005%201.1c1.017.006%201.829.83%201.822%201.89s-.83%201.874-1.848%201.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874%201.848-1.868m-2.155%2011.857%204.14.025c.271.002.49.305.487.676l-.013%201.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668%22%20style%3D%22color%3A%23000%3Bfont-style%3Anormal%3Bfont-variant%3Anormal%3Bfont-weight%3A400%3Bfont-stretch%3Anormal%3Bfont-size%3Amedium%3Bline-height%3Anormal%3Bfont-family%3Asans-serif%3Bfont-variant-ligatures%3Anormal%3Bfont-variant-position%3Anormal%3Bfont-variant-caps%3Anormal%3Bfont-variant-numeric%3Anormal%3Bfont-variant-alternates%3Anormal%3Bfont-feature-settings%3Anormal%3Btext-indent%3A0%3Btext-align%3Astart%3Btext-decoration%3Anone%3Btext-decoration-line%3Anone%3Btext-decoration-style%3Asolid%3Btext-decoration-color%3A%23000%3Bletter-spacing%3Anormal%3Bword-spacing%3Anormal%3Btext-transform%3Anone%3Bwriting-mode%3Alr-tb%3Bdirection%3Altr%3Btext-orientation%3Amixed%3Bdominant-baseline%3Aauto%3Bbaseline-shift%3Abaseline%3Btext-anchor%3Astart%3Bwhite-space%3Anormal%3Bshape-padding%3A0%3Bclip-rule%3Aevenodd%3Bdisplay%3Ainline%3Boverflow%3Avisible%3Bvisibility%3Avisible%3Bopacity%3A1%3Bisolation%3Aauto%3Bmix-blend-mode%3Anormal%3Bcolor-interpolation%3AsRGB%3Bcolor-interpolation-filters%3AlinearRGB%3Bsolid-color%3A%23000%3Bsolid-opacity%3A1%3Bvector-effect%3Anone%3Bfill%3A%23000%3Bfill-opacity%3A.4%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-linecap%3Abutt%3Bstroke-linejoin%3Amiter%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-dashoffset%3A0%3Bstroke-opacity%3A1%3Bcolor-rendering%3Aauto%3Bimage-rendering%3Aauto%3Bshape-rendering%3Aauto%3Btext-rendering%3Aauto%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-9.415-.316C-12.69-.338-15.37%202.14-15.39%205.207c-.017%202.716%201.326%204.041%202.78%205.477%201.013%201%202.081%202.055%202.78%203.67l.092.076a.34.34%200%200%200%20.225.086.34.34%200%200%200%20.227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6%201.78-2.64%202.814-3.634%201.473-1.414%202.847-2.733%202.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057%208.784c1.621.011%202.944-1.315%202.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945%201.315-2.955%202.96s1.295%202.989%202.916%203%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23e1e3e9%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-11.594%2015.465c-.27-.002-.492.297-.494.668l-.012%201.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23fff%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E")}a.maplibregl-ctrl-logo.maplibregl-compact{width:14px}@media (forced-colors:active){a.maplibregl-ctrl-logo{background-color:transparent;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2288%22%20height%3D%2223%22%20fill%3D%22none%22%3E%3Cpath%20fill%3D%22%23000%22%20fill-opacity%3D%22.4%22%20fill-rule%3D%22evenodd%22%20d%3D%22M17.408%2016.796h-1.827l2.501-12.095h.198l3.324%206.533.988%202.19.988-2.19%203.258-6.533h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.929%205.644h-.098l-2.914-5.644-.757-1.71-.345%201.71zm1.958-3.42-.726%203.663a1.255%201.255%200%200%201-1.232%201.011h-1.827a1.255%201.255%200%200%201-1.229-1.509l2.501-12.095a1.255%201.255%200%200%201%201.23-1.001h.197a1.25%201.25%200%200%201%201.12.685l3.19%206.273%203.125-6.263a1.25%201.25%200%200%201%201.123-.695h.181a1.255%201.255%200%200%201%201.227.991l1.443%206.71a5%205%200%200%201%20.314-.787l.009-.016a4.6%204.6%200%200%201%201.777-1.887c.782-.46%201.668-.667%202.611-.667a4.6%204.6%200%200%201%201.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255%201.255%200%200%201%201.212.925%201.255%201.255%200%200%201%201.212-.925h1.711c.284%200%20.545.094.755.252.613-.3%201.312-.45%202.075-.45%201.356%200%202.557.445%203.482%201.4q.47.48.763%201.064V4.701a1.255%201.255%200%200%201%201.255-1.255h1.86A1.255%201.255%200%200%201%2054.44%204.7v9.194h2.217c.19%200%20.37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42%202.42%200%200%201-.682-1.71c0-.665.267-1.253.735-1.7a2.45%202.45%200%200%201%201.722-.674%202.43%202.43%200%200%201%201.705.675q.318.302.504.683V4.7a1.255%201.255%200%200%201%201.255-1.255h1.744A1.255%201.255%200%200%201%2065.812%204.7v3.335a4.8%204.8%200%200%201%201.526-.246c.938%200%201.817.214%202.59.69a4.47%204.47%200%200%201%201.67%201.743v-.98a1.255%201.255%200%200%201%201.256-1.256h1.777c.233%200%20.451.064.639.174a3.4%203.4%200%200%201%201.567-.372c.346%200%20.861.02%201.285.232a1.25%201.25%200%200%201%20.689%201.004%204.7%204.7%200%200%201%20.853-.588c.795-.44%201.675-.647%202.61-.647%201.385%200%202.65.39%203.525%201.396.836.938%201.168%202.173%201.168%203.528q-.001.515-.056%201.051a1.255%201.255%200%200%201-.947%201.09l.408.952a1.255%201.255%200%200%201-.477%201.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06%200-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8%205.8%200%200%201-.548-2.512q0-.429.053-.843a1.3%201.3%200%200%201-.333-.086l-.166-.004c-.223%200-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255%201.255%200%200%201-1.256%201.256h-1.777a1.255%201.255%200%200%201-1.256-1.256V15.69l-.032.057a4.8%204.8%200%200%201-1.86%201.833%205.04%205.04%200%200%201-2.484.634%204.5%204.5%200%200%201-1.935-.424%201.25%201.25%200%200%201-.764.258h-1.71a1.255%201.255%200%200%201-1.256-1.255V7.687a2.4%202.4%200%200%201-.428.625c.253.23.412.561.412.93v7.553a1.255%201.255%200%200%201-1.256%201.255h-1.843a1.25%201.25%200%200%201-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255%201.255%200%200%201-1.256-1.255v-1.251l-.061.117a4.7%204.7%200%200%201-1.782%201.884%204.77%204.77%200%200%201-2.485.67%205.6%205.6%200%200%201-1.485-.188l.009%202.764a1.255%201.255%200%200%201-1.255%201.259h-1.729a1.255%201.255%200%200%201-1.255-1.255v-3.537a1.255%201.255%200%200%201-1.167.793h-1.679a1.25%201.25%200%200%201-.77-.263%204.5%204.5%200%200%201-1.945.429c-.885%200-1.724-.21-2.495-.632l-.017-.01a5%205%200%200%201-1.081-.836%201.255%201.255%200%200%201-1.254%201.312h-1.81a1.255%201.255%200%200%201-1.228-.99l-.782-3.625-2.044%203.939a1.25%201.25%200%200%201-1.115.676h-.098a1.25%201.25%200%200%201-1.116-.68l-2.061-3.994zM35.92%2016.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033%201.332h1.678V9.242h-1.694l-.033%201.267q-.133-.329-.526-.658l-.032-.028a3.2%203.2%200%200%200-.668-.428l-.27-.12a3.3%203.3%200%200%200-1.235-.23q-1.136-.001-1.974.493a3.36%203.36%200%200%200-1.3%201.382q-.445.89-.444%202.074%200%201.2.51%202.107a3.8%203.8%200%200%200%201.382%201.381%203.9%203.9%200%200%200%201.893.477q.795%200%201.455-.33zm-2.789-5.38q-.576.675-.575%201.762%200%201.102.559%201.794.576.675%201.645.675a2.25%202.25%200%200%200%20.934-.19%202.2%202.2%200%200%200%20.468-.29l.178-.161a2.2%202.2%200%200%200%20.397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2%202.2%200%200%200-.633-.709l-.13-.086-.047-.028a2.1%202.1%200%200%200-1.073-.285q-1.052%200-1.629.692zm2.316%202.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96%200%200%200-.353-.389.85.85%200%200%200-.464-.127c-.4%200-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945%200%20.506.122.801.27.99.097.11.266.224.68.224.303%200%20.504-.09.687-.269zm7.545%201.705a2.6%202.6%200%200%200%20.331.423q.319.33.755.548l.173.074q.65.255%201.49.255%201.02%200%201.844-.493a3.45%203.45%200%200%200%201.316-1.4q.493-.904.493-2.089%200-1.909-.988-2.913-.988-1.02-2.584-1.02-.898%200-1.575.347a3%203%200%200%200-.415.262l-.199.166a3.4%203.4%200%200%200-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296%201.119.297%201.07%200%201.645-.675.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.435%200-.835.16a2%202%200%200%200-.284.136%202%202%200%200%200-.363.254%202.2%202.2%200%200%200-.46.569l-.082.162a2.6%202.6%200%200%200-.213%201.072v.115q0%20.707.296%201.267l.135.211zm.964-.818a1.1%201.1%200%200%200%20.367.385.94.94%200%200%200%20.476.118c.423%200%20.59-.117.687-.23.159-.194.28-.478.28-.95%200-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1%201%200%200%200-.503.135l-.012.007a.86.86%200%200%200-.335.343c-.073.133-.132.324-.132.614v.115a1.4%201.4%200%200%200%20.14.66zm15.7-6.222q.347-.346.346-.856a1.05%201.05%200%200%200-.345-.79%201.18%201.18%200%200%200-.84-.329q-.51%200-.855.33a1.05%201.05%200%200%200-.346.79q0%20.51.346.855.345.346.856.346.51%200%20.839-.346zm4.337%209.314.033-1.332q.191.403.59.747l.098.081a4%204%200%200%200%20.316.224l.223.122a3.2%203.2%200%200%200%201.44.322%203.8%203.8%200%200%200%201.875-.477%203.5%203.5%200%200%200%201.382-1.366q.527-.89.526-2.09%200-1.184-.444-2.073a3.24%203.24%200%200%200-1.283-1.399q-.823-.51-1.942-.51a3.5%203.5%200%200%200-1.527.344l-.086.043-.165.09a3%203%200%200%200-.33.214q-.432.315-.656.707a2%202%200%200%200-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5%202.5%200%200%200%20.566.7q.117.098.245.18l.144.08a2.1%202.1%200%200%200%20.975.232q1.07%200%201.645-.675.576-.69.576-1.778%200-1.102-.576-1.777-.56-.691-1.645-.692a2.2%202.2%200%200%200-1.015.235q-.22.113-.415.282l-.15.142a2.1%202.1%200%200%200-.42.594q-.223.479-.223%201.1v.115q0%20.705.293%201.26zm2.616-.293c.157-.191.28-.479.28-.967%200-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87%200%200%200-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0%20.285.057.499.144.669a1.1%201.1%200%200%200%20.367.405c.137.082.28.123.455.123.423%200%20.59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493%200%20.642.099l.247-1.794q-.196-.099-.717-.099a2.3%202.3%200%200%200-.545.063%202%202%200%200%200-.411.148%202.2%202.2%200%200%200-.4.249%202.5%202.5%200%200%200-.485.499%202.7%202.7%200%200%200-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5%201.5%200%200%201%20.466-.636%202.5%202.5%200%200%201%20.399-.253%202%202%200%200%201%20.224-.099zm9.784%202.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46%203.46%200%200%200-1.4%201.382q-.493.906-.493%202.106%200%201.07.428%201.975.428.89%201.332%201.432.906.526%202.255.526.973%200%201.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954%200-1.497-.444a1.6%201.6%200%200%201-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1%201%200%200%200-.156-.176q-.46-.428-1.316-.428-.986%200-1.494.604-.379.45-.494%201.234zm-27.053%202.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z%22%2F%3E%3Cpath%20fill%3D%22%23fff%22%20d%3D%22m19.63%2011.151-.757-1.71-.345%201.71-1.12%205.644h-1.827L18.083%204.7h.197l3.325%206.533.988%202.19.988-2.19L26.839%204.7h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.93%205.644h-.098l-2.913-5.644zm14.836%205.81q-1.02%200-1.893-.478a3.8%203.8%200%200%201-1.381-1.382q-.51-.906-.51-2.106%200-1.185.444-2.074a3.36%203.36%200%200%201%201.3-1.382q.839-.494%201.974-.494a3.3%203.3%200%200%201%201.234.231%203.3%203.3%200%200%201%20.97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02%201.053a3.17%203.17%200%200%201-1.662.444zm.296-1.482q.938%200%201.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2%202.2%200%200%200-.807-.872%202.1%202.1%200%200%200-1.119-.313q-1.053%200-1.629.692-.575.675-.575%201.76%200%201.103.559%201.795.577.675%201.645.675zm6.521-6.237h1.711v1.4q.906-1.597%202.83-1.597%201.596%200%202.584%201.02.988%201.005.988%202.914%200%201.185-.493%202.09a3.46%203.46%200%200%201-1.316%201.399%203.5%203.5%200%200%201-1.844.493q-.954%200-1.662-.329a2.67%202.67%200%200%201-1.086-.97l.017%205.134h-1.728zm4.048%206.22q1.07%200%201.645-.674.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.592%200-1.12.296-.51.28-.822.823-.296.527-.296%201.234v.115q0%20.708.296%201.267.313.543.823.855.51.296%201.119.297z%22%2F%3E%3Cpath%20fill%3D%22%23e1e3e9%22%20d%3D%22M51.325%204.7h1.86v10.45h3.473v1.646h-5.333zm7.12%204.542h1.843v7.553h-1.843zm.905-1.415a1.16%201.16%200%200%201-.856-.346%201.17%201.17%200%200%201-.346-.856%201.05%201.05%200%200%201%20.346-.79q.346-.329.856-.329.494%200%20.839.33a1.05%201.05%200%200%201%20.345.79%201.16%201.16%200%200%201-.345.855q-.33.346-.84.346zm7.875%209.133a3.17%203.17%200%200%201-1.662-.444q-.723-.46-1.004-1.053l-.033%201.332h-1.71V4.701h1.743v4.657l-.082%201.283q.279-.658%201.086-1.119a3.5%203.5%200%200%201%201.778-.477q1.119%200%201.942.51a3.24%203.24%200%200%201%201.283%201.4q.445.888.444%202.072%200%201.201-.526%202.09a3.5%203.5%200%200%201-1.382%201.366%203.8%203.8%200%200%201-1.876.477zm-.296-1.481q1.069%200%201.645-.675.577-.69.577-1.778%200-1.102-.577-1.776-.56-.691-1.645-.692a2.12%202.12%200%200%200-1.58.659q-.642.641-.642%201.694v.115q0%20.71.296%201.267a2.4%202.4%200%200%200%20.807.872%202.1%202.1%200%200%200%201.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14%202.14%200%200%201%201.349-.46q.527%200%20.724.098l-.247%201.794q-.149-.099-.642-.099-.774%200-1.416.494-.626.493-.626%201.58v3.883h-1.777V9.242zm9.534%207.718q-1.35%200-2.255-.526-.904-.543-1.332-1.432a4.6%204.6%200%200%201-.428-1.975q0-1.2.493-2.106a3.46%203.46%200%200%201%201.4-1.382q.889-.495%202.007-.494%201.744%200%202.584.97.855.956.856%202.7%200%20.444-.05.92h-5.43q.18%201.005.708%201.45.542.443%201.497.443.79%200%201.3-.131a4%204%200%200%200%20.938-.362l.542%201.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728%200-1.991%201.86z%22%2F%3E%3Cpath%20d%3D%22M5.074%2015.948a.484.657%200%200%200-.486.659v1.84a.484.657%200%200%200%20.486.659h4.101a.484.657%200%200%200%20.486-.659v-1.84a.484.657%200%200%200-.486-.659zm3.56%201.16H5.617v.838h3.017z%22%20style%3D%22fill%3A%23fff%3Bfill-rule%3Aevenodd%3Bstroke-width%3A1.03600001%22%2F%3E%3Cg%20style%3D%22stroke-width%3A1.12603545%22%3E%3Cpath%20d%3D%22M-9.408-1.416c-3.833-.025-7.056%202.912-7.08%206.615-.02%203.08%201.653%204.832%203.107%206.268.903.892%201.721%201.74%202.32%202.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87%201.87%200%200%200-.362%201.121l-.011%201.877c-.003.402.104.787.347%201.125.244.338.688.653%201.23.656l4.142.028c.542.003.99-.306%201.238-.641a1.87%201.87%200%200%200%20.363-1.121l.012-1.875a1.87%201.87%200%200%200-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145%201.425-1.983%202.348-2.87%201.473-1.414%203.18-3.149%203.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006%201.1v.002c3.274.02%205.92%202.532%205.9%205.6-.017%202.706-1.39%204.026-2.863%205.44-1.034.994-2.118%202.033-2.814%203.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34%200%200%201-.226.084.34.34%200%200%201-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067%202.7-5.545%205.975-5.523m-.02%202.826c-1.62-.01-2.944%201.315-2.955%202.96-.01%201.646%201.295%202.988%202.916%202.999h.002c1.621.01%202.943-1.316%202.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005%201.1c1.017.006%201.829.83%201.822%201.89s-.83%201.874-1.848%201.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874%201.848-1.868m-2.155%2011.857%204.14.025c.271.002.49.305.487.676l-.013%201.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668%22%20style%3D%22color%3A%23000%3Bfont-style%3Anormal%3Bfont-variant%3Anormal%3Bfont-weight%3A400%3Bfont-stretch%3Anormal%3Bfont-size%3Amedium%3Bline-height%3Anormal%3Bfont-family%3Asans-serif%3Bfont-variant-ligatures%3Anormal%3Bfont-variant-position%3Anormal%3Bfont-variant-caps%3Anormal%3Bfont-variant-numeric%3Anormal%3Bfont-variant-alternates%3Anormal%3Bfont-feature-settings%3Anormal%3Btext-indent%3A0%3Btext-align%3Astart%3Btext-decoration%3Anone%3Btext-decoration-line%3Anone%3Btext-decoration-style%3Asolid%3Btext-decoration-color%3A%23000%3Bletter-spacing%3Anormal%3Bword-spacing%3Anormal%3Btext-transform%3Anone%3Bwriting-mode%3Alr-tb%3Bdirection%3Altr%3Btext-orientation%3Amixed%3Bdominant-baseline%3Aauto%3Bbaseline-shift%3Abaseline%3Btext-anchor%3Astart%3Bwhite-space%3Anormal%3Bshape-padding%3A0%3Bclip-rule%3Aevenodd%3Bdisplay%3Ainline%3Boverflow%3Avisible%3Bvisibility%3Avisible%3Bopacity%3A1%3Bisolation%3Aauto%3Bmix-blend-mode%3Anormal%3Bcolor-interpolation%3AsRGB%3Bcolor-interpolation-filters%3AlinearRGB%3Bsolid-color%3A%23000%3Bsolid-opacity%3A1%3Bvector-effect%3Anone%3Bfill%3A%23000%3Bfill-opacity%3A.4%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-linecap%3Abutt%3Bstroke-linejoin%3Amiter%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-dashoffset%3A0%3Bstroke-opacity%3A1%3Bcolor-rendering%3Aauto%3Bimage-rendering%3Aauto%3Bshape-rendering%3Aauto%3Btext-rendering%3Aauto%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-9.415-.316C-12.69-.338-15.37%202.14-15.39%205.207c-.017%202.716%201.326%204.041%202.78%205.477%201.013%201%202.081%202.055%202.78%203.67l.092.076a.34.34%200%200%200%20.225.086.34.34%200%200%200%20.227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6%201.78-2.64%202.814-3.634%201.473-1.414%202.847-2.733%202.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057%208.784c1.621.011%202.944-1.315%202.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945%201.315-2.955%202.96s1.295%202.989%202.916%203%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23e1e3e9%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-11.594%2015.465c-.27-.002-.492.297-.494.668l-.012%201.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23fff%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){a.maplibregl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2288%22%20height%3D%2223%22%20fill%3D%22none%22%3E%3Cpath%20fill%3D%22%23000%22%20fill-opacity%3D%22.4%22%20fill-rule%3D%22evenodd%22%20d%3D%22M17.408%2016.796h-1.827l2.501-12.095h.198l3.324%206.533.988%202.19.988-2.19%203.258-6.533h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.929%205.644h-.098l-2.914-5.644-.757-1.71-.345%201.71zm1.958-3.42-.726%203.663a1.255%201.255%200%200%201-1.232%201.011h-1.827a1.255%201.255%200%200%201-1.229-1.509l2.501-12.095a1.255%201.255%200%200%201%201.23-1.001h.197a1.25%201.25%200%200%201%201.12.685l3.19%206.273%203.125-6.263a1.25%201.25%200%200%201%201.123-.695h.181a1.255%201.255%200%200%201%201.227.991l1.443%206.71a5%205%200%200%201%20.314-.787l.009-.016a4.6%204.6%200%200%201%201.777-1.887c.782-.46%201.668-.667%202.611-.667a4.6%204.6%200%200%201%201.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255%201.255%200%200%201%201.212.925%201.255%201.255%200%200%201%201.212-.925h1.711c.284%200%20.545.094.755.252.613-.3%201.312-.45%202.075-.45%201.356%200%202.557.445%203.482%201.4q.47.48.763%201.064V4.701a1.255%201.255%200%200%201%201.255-1.255h1.86A1.255%201.255%200%200%201%2054.44%204.7v9.194h2.217c.19%200%20.37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42%202.42%200%200%201-.682-1.71c0-.665.267-1.253.735-1.7a2.45%202.45%200%200%201%201.722-.674%202.43%202.43%200%200%201%201.705.675q.318.302.504.683V4.7a1.255%201.255%200%200%201%201.255-1.255h1.744A1.255%201.255%200%200%201%2065.812%204.7v3.335a4.8%204.8%200%200%201%201.526-.246c.938%200%201.817.214%202.59.69a4.47%204.47%200%200%201%201.67%201.743v-.98a1.255%201.255%200%200%201%201.256-1.256h1.777c.233%200%20.451.064.639.174a3.4%203.4%200%200%201%201.567-.372c.346%200%20.861.02%201.285.232a1.25%201.25%200%200%201%20.689%201.004%204.7%204.7%200%200%201%20.853-.588c.795-.44%201.675-.647%202.61-.647%201.385%200%202.65.39%203.525%201.396.836.938%201.168%202.173%201.168%203.528q-.001.515-.056%201.051a1.255%201.255%200%200%201-.947%201.09l.408.952a1.255%201.255%200%200%201-.477%201.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06%200-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8%205.8%200%200%201-.548-2.512q0-.429.053-.843a1.3%201.3%200%200%201-.333-.086l-.166-.004c-.223%200-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255%201.255%200%200%201-1.256%201.256h-1.777a1.255%201.255%200%200%201-1.256-1.256V15.69l-.032.057a4.8%204.8%200%200%201-1.86%201.833%205.04%205.04%200%200%201-2.484.634%204.5%204.5%200%200%201-1.935-.424%201.25%201.25%200%200%201-.764.258h-1.71a1.255%201.255%200%200%201-1.256-1.255V7.687a2.4%202.4%200%200%201-.428.625c.253.23.412.561.412.93v7.553a1.255%201.255%200%200%201-1.256%201.255h-1.843a1.25%201.25%200%200%201-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255%201.255%200%200%201-1.256-1.255v-1.251l-.061.117a4.7%204.7%200%200%201-1.782%201.884%204.77%204.77%200%200%201-2.485.67%205.6%205.6%200%200%201-1.485-.188l.009%202.764a1.255%201.255%200%200%201-1.255%201.259h-1.729a1.255%201.255%200%200%201-1.255-1.255v-3.537a1.255%201.255%200%200%201-1.167.793h-1.679a1.25%201.25%200%200%201-.77-.263%204.5%204.5%200%200%201-1.945.429c-.885%200-1.724-.21-2.495-.632l-.017-.01a5%205%200%200%201-1.081-.836%201.255%201.255%200%200%201-1.254%201.312h-1.81a1.255%201.255%200%200%201-1.228-.99l-.782-3.625-2.044%203.939a1.25%201.25%200%200%201-1.115.676h-.098a1.25%201.25%200%200%201-1.116-.68l-2.061-3.994zM35.92%2016.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033%201.332h1.678V9.242h-1.694l-.033%201.267q-.133-.329-.526-.658l-.032-.028a3.2%203.2%200%200%200-.668-.428l-.27-.12a3.3%203.3%200%200%200-1.235-.23q-1.136-.001-1.974.493a3.36%203.36%200%200%200-1.3%201.382q-.445.89-.444%202.074%200%201.2.51%202.107a3.8%203.8%200%200%200%201.382%201.381%203.9%203.9%200%200%200%201.893.477q.795%200%201.455-.33zm-2.789-5.38q-.576.675-.575%201.762%200%201.102.559%201.794.576.675%201.645.675a2.25%202.25%200%200%200%20.934-.19%202.2%202.2%200%200%200%20.468-.29l.178-.161a2.2%202.2%200%200%200%20.397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2%202.2%200%200%200-.633-.709l-.13-.086-.047-.028a2.1%202.1%200%200%200-1.073-.285q-1.052%200-1.629.692zm2.316%202.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96%200%200%200-.353-.389.85.85%200%200%200-.464-.127c-.4%200-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945%200%20.506.122.801.27.99.097.11.266.224.68.224.303%200%20.504-.09.687-.269zm7.545%201.705a2.6%202.6%200%200%200%20.331.423q.319.33.755.548l.173.074q.65.255%201.49.255%201.02%200%201.844-.493a3.45%203.45%200%200%200%201.316-1.4q.493-.904.493-2.089%200-1.909-.988-2.913-.988-1.02-2.584-1.02-.898%200-1.575.347a3%203%200%200%200-.415.262l-.199.166a3.4%203.4%200%200%200-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296%201.119.297%201.07%200%201.645-.675.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.435%200-.835.16a2%202%200%200%200-.284.136%202%202%200%200%200-.363.254%202.2%202.2%200%200%200-.46.569l-.082.162a2.6%202.6%200%200%200-.213%201.072v.115q0%20.707.296%201.267l.135.211zm.964-.818a1.1%201.1%200%200%200%20.367.385.94.94%200%200%200%20.476.118c.423%200%20.59-.117.687-.23.159-.194.28-.478.28-.95%200-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1%201%200%200%200-.503.135l-.012.007a.86.86%200%200%200-.335.343c-.073.133-.132.324-.132.614v.115a1.4%201.4%200%200%200%20.14.66zm15.7-6.222q.347-.346.346-.856a1.05%201.05%200%200%200-.345-.79%201.18%201.18%200%200%200-.84-.329q-.51%200-.855.33a1.05%201.05%200%200%200-.346.79q0%20.51.346.855.345.346.856.346.51%200%20.839-.346zm4.337%209.314.033-1.332q.191.403.59.747l.098.081a4%204%200%200%200%20.316.224l.223.122a3.2%203.2%200%200%200%201.44.322%203.8%203.8%200%200%200%201.875-.477%203.5%203.5%200%200%200%201.382-1.366q.527-.89.526-2.09%200-1.184-.444-2.073a3.24%203.24%200%200%200-1.283-1.399q-.823-.51-1.942-.51a3.5%203.5%200%200%200-1.527.344l-.086.043-.165.09a3%203%200%200%200-.33.214q-.432.315-.656.707a2%202%200%200%200-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5%202.5%200%200%200%20.566.7q.117.098.245.18l.144.08a2.1%202.1%200%200%200%20.975.232q1.07%200%201.645-.675.576-.69.576-1.778%200-1.102-.576-1.777-.56-.691-1.645-.692a2.2%202.2%200%200%200-1.015.235q-.22.113-.415.282l-.15.142a2.1%202.1%200%200%200-.42.594q-.223.479-.223%201.1v.115q0%20.705.293%201.26zm2.616-.293c.157-.191.28-.479.28-.967%200-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87%200%200%200-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0%20.285.057.499.144.669a1.1%201.1%200%200%200%20.367.405c.137.082.28.123.455.123.423%200%20.59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493%200%20.642.099l.247-1.794q-.196-.099-.717-.099a2.3%202.3%200%200%200-.545.063%202%202%200%200%200-.411.148%202.2%202.2%200%200%200-.4.249%202.5%202.5%200%200%200-.485.499%202.7%202.7%200%200%200-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5%201.5%200%200%201%20.466-.636%202.5%202.5%200%200%201%20.399-.253%202%202%200%200%201%20.224-.099zm9.784%202.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46%203.46%200%200%200-1.4%201.382q-.493.906-.493%202.106%200%201.07.428%201.975.428.89%201.332%201.432.906.526%202.255.526.973%200%201.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954%200-1.497-.444a1.6%201.6%200%200%201-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1%201%200%200%200-.156-.176q-.46-.428-1.316-.428-.986%200-1.494.604-.379.45-.494%201.234zm-27.053%202.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z%22%2F%3E%3Cpath%20fill%3D%22%23fff%22%20d%3D%22m19.63%2011.151-.757-1.71-.345%201.71-1.12%205.644h-1.827L18.083%204.7h.197l3.325%206.533.988%202.19.988-2.19L26.839%204.7h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.93%205.644h-.098l-2.913-5.644zm14.836%205.81q-1.02%200-1.893-.478a3.8%203.8%200%200%201-1.381-1.382q-.51-.906-.51-2.106%200-1.185.444-2.074a3.36%203.36%200%200%201%201.3-1.382q.839-.494%201.974-.494a3.3%203.3%200%200%201%201.234.231%203.3%203.3%200%200%201%20.97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02%201.053a3.17%203.17%200%200%201-1.662.444zm.296-1.482q.938%200%201.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2%202.2%200%200%200-.807-.872%202.1%202.1%200%200%200-1.119-.313q-1.053%200-1.629.692-.575.675-.575%201.76%200%201.103.559%201.795.577.675%201.645.675zm6.521-6.237h1.711v1.4q.906-1.597%202.83-1.597%201.596%200%202.584%201.02.988%201.005.988%202.914%200%201.185-.493%202.09a3.46%203.46%200%200%201-1.316%201.399%203.5%203.5%200%200%201-1.844.493q-.954%200-1.662-.329a2.67%202.67%200%200%201-1.086-.97l.017%205.134h-1.728zm4.048%206.22q1.07%200%201.645-.674.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.592%200-1.12.296-.51.28-.822.823-.296.527-.296%201.234v.115q0%20.708.296%201.267.313.543.823.855.51.296%201.119.297z%22%2F%3E%3Cpath%20fill%3D%22%23e1e3e9%22%20d%3D%22M51.325%204.7h1.86v10.45h3.473v1.646h-5.333zm7.12%204.542h1.843v7.553h-1.843zm.905-1.415a1.16%201.16%200%200%201-.856-.346%201.17%201.17%200%200%201-.346-.856%201.05%201.05%200%200%201%20.346-.79q.346-.329.856-.329.494%200%20.839.33a1.05%201.05%200%200%201%20.345.79%201.16%201.16%200%200%201-.345.855q-.33.346-.84.346zm7.875%209.133a3.17%203.17%200%200%201-1.662-.444q-.723-.46-1.004-1.053l-.033%201.332h-1.71V4.701h1.743v4.657l-.082%201.283q.279-.658%201.086-1.119a3.5%203.5%200%200%201%201.778-.477q1.119%200%201.942.51a3.24%203.24%200%200%201%201.283%201.4q.445.888.444%202.072%200%201.201-.526%202.09a3.5%203.5%200%200%201-1.382%201.366%203.8%203.8%200%200%201-1.876.477zm-.296-1.481q1.069%200%201.645-.675.577-.69.577-1.778%200-1.102-.577-1.776-.56-.691-1.645-.692a2.12%202.12%200%200%200-1.58.659q-.642.641-.642%201.694v.115q0%20.71.296%201.267a2.4%202.4%200%200%200%20.807.872%202.1%202.1%200%200%200%201.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14%202.14%200%200%201%201.349-.46q.527%200%20.724.098l-.247%201.794q-.149-.099-.642-.099-.774%200-1.416.494-.626.493-.626%201.58v3.883h-1.777V9.242zm9.534%207.718q-1.35%200-2.255-.526-.904-.543-1.332-1.432a4.6%204.6%200%200%201-.428-1.975q0-1.2.493-2.106a3.46%203.46%200%200%201%201.4-1.382q.889-.495%202.007-.494%201.744%200%202.584.97.855.956.856%202.7%200%20.444-.05.92h-5.43q.18%201.005.708%201.45.542.443%201.497.443.79%200%201.3-.131a4%204%200%200%200%20.938-.362l.542%201.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728%200-1.991%201.86z%22%2F%3E%3Cpath%20d%3D%22M5.074%2015.948a.484.657%200%200%200-.486.659v1.84a.484.657%200%200%200%20.486.659h4.101a.484.657%200%200%200%20.486-.659v-1.84a.484.657%200%200%200-.486-.659zm3.56%201.16H5.617v.838h3.017z%22%20style%3D%22fill%3A%23fff%3Bfill-rule%3Aevenodd%3Bstroke-width%3A1.03600001%22%2F%3E%3Cg%20style%3D%22stroke-width%3A1.12603545%22%3E%3Cpath%20d%3D%22M-9.408-1.416c-3.833-.025-7.056%202.912-7.08%206.615-.02%203.08%201.653%204.832%203.107%206.268.903.892%201.721%201.74%202.32%202.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87%201.87%200%200%200-.362%201.121l-.011%201.877c-.003.402.104.787.347%201.125.244.338.688.653%201.23.656l4.142.028c.542.003.99-.306%201.238-.641a1.87%201.87%200%200%200%20.363-1.121l.012-1.875a1.87%201.87%200%200%200-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145%201.425-1.983%202.348-2.87%201.473-1.414%203.18-3.149%203.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006%201.1v.002c3.274.02%205.92%202.532%205.9%205.6-.017%202.706-1.39%204.026-2.863%205.44-1.034.994-2.118%202.033-2.814%203.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34%200%200%201-.226.084.34.34%200%200%201-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067%202.7-5.545%205.975-5.523m-.02%202.826c-1.62-.01-2.944%201.315-2.955%202.96-.01%201.646%201.295%202.988%202.916%202.999h.002c1.621.01%202.943-1.316%202.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005%201.1c1.017.006%201.829.83%201.822%201.89s-.83%201.874-1.848%201.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874%201.848-1.868m-2.155%2011.857%204.14.025c.271.002.49.305.487.676l-.013%201.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668%22%20style%3D%22color%3A%23000%3Bfont-style%3Anormal%3Bfont-variant%3Anormal%3Bfont-weight%3A400%3Bfont-stretch%3Anormal%3Bfont-size%3Amedium%3Bline-height%3Anormal%3Bfont-family%3Asans-serif%3Bfont-variant-ligatures%3Anormal%3Bfont-variant-position%3Anormal%3Bfont-variant-caps%3Anormal%3Bfont-variant-numeric%3Anormal%3Bfont-variant-alternates%3Anormal%3Bfont-feature-settings%3Anormal%3Btext-indent%3A0%3Btext-align%3Astart%3Btext-decoration%3Anone%3Btext-decoration-line%3Anone%3Btext-decoration-style%3Asolid%3Btext-decoration-color%3A%23000%3Bletter-spacing%3Anormal%3Bword-spacing%3Anormal%3Btext-transform%3Anone%3Bwriting-mode%3Alr-tb%3Bdirection%3Altr%3Btext-orientation%3Amixed%3Bdominant-baseline%3Aauto%3Bbaseline-shift%3Abaseline%3Btext-anchor%3Astart%3Bwhite-space%3Anormal%3Bshape-padding%3A0%3Bclip-rule%3Aevenodd%3Bdisplay%3Ainline%3Boverflow%3Avisible%3Bvisibility%3Avisible%3Bopacity%3A1%3Bisolation%3Aauto%3Bmix-blend-mode%3Anormal%3Bcolor-interpolation%3AsRGB%3Bcolor-interpolation-filters%3AlinearRGB%3Bsolid-color%3A%23000%3Bsolid-opacity%3A1%3Bvector-effect%3Anone%3Bfill%3A%23000%3Bfill-opacity%3A.4%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-linecap%3Abutt%3Bstroke-linejoin%3Amiter%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-dashoffset%3A0%3Bstroke-opacity%3A1%3Bcolor-rendering%3Aauto%3Bimage-rendering%3Aauto%3Bshape-rendering%3Aauto%3Btext-rendering%3Aauto%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-9.415-.316C-12.69-.338-15.37%202.14-15.39%205.207c-.017%202.716%201.326%204.041%202.78%205.477%201.013%201%202.081%202.055%202.78%203.67l.092.076a.34.34%200%200%200%20.225.086.34.34%200%200%200%20.227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6%201.78-2.64%202.814-3.634%201.473-1.414%202.847-2.733%202.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057%208.784c1.621.011%202.944-1.315%202.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945%201.315-2.955%202.96s1.295%202.989%202.916%203%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23e1e3e9%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-11.594%2015.465c-.27-.002-.492.297-.494.668l-.012%201.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23fff%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl.maplibregl-ctrl-attrib{padding:0 5px;background-color:hsla(0,0%,100%,.5);margin:0}@media screen{.maplibregl-ctrl-attrib.maplibregl-compact{min-height:20px;padding:2px 24px 2px 0;margin:10px;position:relative;background-color:#fff;color:#000;border-radius:12px;box-sizing:content-box}.maplibregl-ctrl-attrib.maplibregl-compact-show{padding:2px 28px 2px 8px;visibility:visible}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact-show,.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact-show{padding:2px 8px 2px 28px;border-radius:12px}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-inner{display:none}.maplibregl-ctrl-attrib-button{display:none;cursor:pointer;position:absolute;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20fill-rule%3D%22evenodd%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M4%2010a6%206%200%201%200%2012%200%206%206%200%201%200-12%200m5-3a1%201%200%201%200%202%200%201%201%200%201%200-2%200m0%203a1%201%200%201%201%202%200v3a1%201%200%201%201-2%200%22%2F%3E%3C%2Fsvg%3E");background-color:hsla(0,0%,100%,.5);width:24px;height:24px;box-sizing:border-box;border-radius:12px;outline:none;top:0;right:0;border:0}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;list-style:none}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button::-webkit-details-marker{display:none}.maplibregl-ctrl-bottom-left .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-top-left .maplibregl-ctrl-attrib-button{left:0}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-inner{display:block}.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-button{background-color:rgba(0,0,0,.05)}.maplibregl-ctrl-bottom-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;right:0}.maplibregl-ctrl-top-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{top:0;right:0}.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{top:0;left:0}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;left:0}}@media screen and (forced-colors:active){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22%23fff%22%20fill-rule%3D%22evenodd%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M4%2010a6%206%200%201%200%2012%200%206%206%200%201%200-12%200m5-3a1%201%200%201%200%202%200%201%201%200%201%200-2%200m0%203a1%201%200%201%201%202%200v3a1%201%200%201%201-2%200%22%2F%3E%3C%2Fsvg%3E")}}@media screen and (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20fill-rule%3D%22evenodd%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M4%2010a6%206%200%201%200%2012%200%206%206%200%201%200-12%200m5-3a1%201%200%201%200%202%200%201%201%200%201%200-2%200m0%203a1%201%200%201%201%202%200v3a1%201%200%201%201-2%200%22%2F%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl-attrib a{color:rgba(0,0,0,.75);text-decoration:none}.maplibregl-ctrl-attrib a:hover{color:inherit;text-decoration:underline}.maplibregl-attrib-empty{display:none}.maplibregl-ctrl-scale{background-color:hsla(0,0%,100%,.75);font-size:10px;white-space:nowrap;border-color:#333;border-style:none solid solid;border-width:medium 2px 2px;padding:0 5px;color:#333;box-sizing:border-box}.maplibregl-popup{position:absolute;top:0;left:0;display:flex;will-change:transform;pointer-events:none}.maplibregl-popup-anchor-top,.maplibregl-popup-anchor-top-left,.maplibregl-popup-anchor-top-right{flex-direction:column}.maplibregl-popup-anchor-bottom,.maplibregl-popup-anchor-bottom-left,.maplibregl-popup-anchor-bottom-right{flex-direction:column-reverse}.maplibregl-popup-anchor-left{flex-direction:row}.maplibregl-popup-anchor-right{flex-direction:row-reverse}.maplibregl-popup-tip{width:0;height:0;border:10px solid transparent;z-index:1}.maplibregl-popup-anchor-top .maplibregl-popup-tip{align-self:center;border-top:none;border-bottom-color:#fff}.maplibregl-popup-anchor-top-left .maplibregl-popup-tip{align-self:flex-start;border-top:none;border-left:none;border-bottom-color:#fff}.maplibregl-popup-anchor-top-right .maplibregl-popup-tip{align-self:flex-end;border-top:none;border-right:none;border-bottom-color:#fff}.maplibregl-popup-anchor-bottom .maplibregl-popup-tip{align-self:center;border-bottom:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip{align-self:flex-start;border-bottom:none;border-left:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip{align-self:flex-end;border-bottom:none;border-right:none;border-top-color:#fff}.maplibregl-popup-anchor-left .maplibregl-popup-tip{align-self:center;border-left:none;border-right-color:#fff}.maplibregl-popup-anchor-right .maplibregl-popup-tip{align-self:center;border-right:none;border-left-color:#fff}[dir=rtl] .maplibregl-popup-anchor-left{flex-direction:row-reverse}[dir=rtl] .maplibregl-popup-anchor-right{flex-direction:row}[dir=rtl] .maplibregl-popup-anchor-top-left .maplibregl-popup-tip{align-self:flex-end}[dir=rtl] .maplibregl-popup-anchor-top-right .maplibregl-popup-tip{align-self:flex-start}[dir=rtl] .maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip{align-self:flex-end}[dir=rtl] .maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip{align-self:flex-start}.maplibregl-popup-close-button{position:absolute;right:0;top:0;border:0;border-radius:0 3px 0 0;cursor:pointer;background-color:transparent}.maplibregl-popup-close-button:hover{background-color:rgba(0,0,0,.05)}.maplibregl-popup-content{position:relative;background:#fff;border-radius:3px;box-shadow:0 1px 2px rgba(0,0,0,.1);padding:15px 10px;pointer-events:auto}.maplibregl-popup-anchor-top-left .maplibregl-popup-content{border-top-left-radius:0}.maplibregl-popup-anchor-top-right .maplibregl-popup-content{border-top-right-radius:0}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-content{border-bottom-left-radius:0}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-content{border-bottom-right-radius:0}.maplibregl-popup-track-pointer{display:none}.maplibregl-popup-track-pointer *{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-map:hover .maplibregl-popup-track-pointer{display:flex}.maplibregl-map:active .maplibregl-popup-track-pointer{display:none}.maplibregl-marker{position:absolute;top:0;left:0;will-change:transform;transition:opacity .2s}.maplibregl-marker-draggable{cursor:grab}.maplibregl-user-location-dot,.maplibregl-user-location-dot:before{background-color:#1da1f2;width:15px;height:15px;border-radius:50%}.maplibregl-user-location-dot:before{content:"";position:absolute;animation:maplibregl-user-location-dot-pulse 2s infinite}.maplibregl-user-location-dot:after{border-radius:50%;border:2px solid #fff;content:"";height:19px;left:-2px;position:absolute;top:-2px;width:19px;box-sizing:border-box;box-shadow:0 0 3px rgba(0,0,0,.35)}@media (prefers-reduced-motion:reduce){.maplibregl-user-location-dot:before{animation:none}}@keyframes maplibregl-user-location-dot-pulse{0%{transform:scale(1);opacity:1}70%{transform:scale(3);opacity:0}to{transform:scale(1);opacity:0}}.maplibregl-user-location-dot-stale{background-color:#aaa}.maplibregl-user-location-dot-stale:after{display:none}.maplibregl-user-location-accuracy-circle{background-color:#1da1f233;width:1px;height:1px;border-radius:100%}.maplibregl-crosshair,.maplibregl-crosshair .maplibregl-interactive,.maplibregl-crosshair .maplibregl-interactive:active{cursor:crosshair}.maplibregl-boxzoom{position:absolute;top:0;left:0;width:0;height:0;background:#fff;border:2px dotted #202020;opacity:.5}.maplibregl-cooperative-gesture-screen{background:rgba(0,0,0,.4);position:absolute;inset:0;display:flex;justify-content:center;align-items:center;color:#fff;padding:1rem;font-size:1.4em;line-height:1.2;opacity:0;pointer-events:none;transition:opacity 1s ease 1s;z-index:99999}.maplibregl-cooperative-gesture-screen.maplibregl-show{opacity:1;transition:opacity .05s}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:none}@media (hover:none),(pointer:coarse){.maplibregl-cooperative-gesture-screen .maplibregl-desktop-message{display:none}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:block}}.maplibregl-pseudo-fullscreen{position:fixed!important;width:100%!important;height:100%!important;top:0!important;left:0!important;z-index:99999}',document.head.appendChild(e)}})()});var mr=X(Rr=>{"use strict";var A7=Hc(),jB=_x(),$B=v7(),bQe=Lv().addStyleRule,HB=Ca(),f2e=Wo(),d2e=Wp(),p2e=HB.extendFlat,T7=HB.extendDeepAll;Rr.modules={};Rr.allCategories={};Rr.allTypes=[];Rr.subplotsRegistry={};Rr.componentsRegistry={};Rr.layoutArrayContainers=[];Rr.layoutArrayRegexes=[];Rr.traceLayoutAttributes={};Rr.localeRegistry={};Rr.apiMethodRegistry={};Rr.collectableSubplotTypes=null;Rr.register=function(t){if(Rr.collectableSubplotTypes=null,t)t&&!Array.isArray(t)&&(t=[t]);else throw new Error("No argument passed to Plotly.register.");for(var r=0;r{"use strict";var _2e=Pp().timeFormat,iq=Nr(),M7=Hc(),ef=(zp(),lt(Lp)).mod,Jp=(Ji(),lt(ua)),vl=Jp.BADNUM,ps=Jp.ONEDAY,Rv=Jp.ONEHOUR,Qh=Jp.ONEMIN,Kp=Jp.ONESEC,Bv=Jp.EPOCHJD,Yc=mr(),KB=Pp().utcFormat,x2e=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\d)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d(:?\d\d)?)?)?)?)?)?\s*$/m,b2e=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\di?)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d(:?\d\d)?)?)?)?)?)?\s*$/m,JB=new Date().getFullYear()-70;function Wc(e){return e&&Yc.componentsRegistry.calendars&&typeof e=="string"&&e!=="gregorian"}Oa.dateTick0=function(e,t){var r=w2e(e,!!t);if(t<2)return r;var i=Oa.dateTime2ms(r,e);return i+=ps*(t-1),Oa.ms2DateTime(i,0,e)};function w2e(e,t){return Wc(e)?t?Yc.getComponentMethod("calendars","CANONICAL_SUNDAY")[e]:Yc.getComponentMethod("calendars","CANONICAL_TICK")[e]:t?"2000-01-02":"2000-01-01"}Oa.dfltRange=function(e){return Wc(e)?Yc.getComponentMethod("calendars","DFLTRANGE")[e]:["2000-01-01","2001-01-01"]};Oa.isJSDate=function(e){return typeof e=="object"&&e!==null&&typeof e.getTime=="function"};var Ex,kx;Oa.dateTime2ms=function(e,t){if(Oa.isJSDate(e)){var r=e.getTimezoneOffset()*Qh,i=(e.getUTCMinutes()-e.getMinutes())*Qh+(e.getUTCSeconds()-e.getSeconds())*Kp+(e.getUTCMilliseconds()-e.getMilliseconds());if(i){var a=3*Qh;r=r-a/2+ef(i-r+a/2,a)}return e=Number(e)-r,e>=Ex&&e<=kx?e:vl}if(typeof e!="string"&&typeof e!="number")return vl;e=String(e);var n=Wc(t),o=e.charAt(0);n&&(o==="G"||o==="g")&&(e=e.slice(1),t="");var s=n&&t.slice(0,7)==="chinese",l=e.match(s?b2e:x2e);if(!l)return vl;var u=l[1],c=l[3]||"1",h=Number(l[5]||1),f=Number(l[7]||0),d=Number(l[9]||0),p=Number(l[11]||0);if(n){if(u.length===2)return vl;u=Number(u);var m;try{var g=Yc.getComponentMethod("calendars","getCal")(t);if(s){var y=c.charAt(c.length-1)==="i";c=parseInt(c,10),m=g.newDate(u,g.toMonthIndex(u,c,y),h)}else m=g.newDate(u,Number(c),h)}catch(b){return vl}return m?(m.toJD()-Bv)*ps+f*Rv+d*Qh+p*Kp:vl}u.length===2?u=(Number(u)+2e3-JB)%100+JB:u=Number(u),c-=1;var x=new Date(Date.UTC(2e3,c,h,f,d));return x.setUTCFullYear(u),x.getUTCMonth()!==c||x.getUTCDate()!==h?vl:x.getTime()+p*Kp};Ex=Oa.MIN_MS=Oa.dateTime2ms("-9999");kx=Oa.MAX_MS=Oa.dateTime2ms("9999-12-31 23:59:59.9999");Oa.isDateTime=function(e,t){return Oa.dateTime2ms(e,t)!==vl};function Xp(e,t){return String(e+Math.pow(10,t)).slice(1)}var Sx=90*ps,QB=3*Rv,eq=5*Qh;Oa.ms2DateTime=function(e,t,r){if(typeof e!="number"||!(e>=Ex&&e<=kx))return vl;t||(t=0);var i=Math.floor(ef(e+.05,1)*10),a=Math.round(e-i/10),n,o,s,l,u,c;if(Wc(r)){var h=Math.floor(a/ps)+Bv,f=Math.floor(ef(e,ps));try{n=Yc.getComponentMethod("calendars","getCal")(r).fromJD(h).formatDate("yyyy-mm-dd")}catch(d){n=KB("G%Y-%m-%d")(new Date(a))}if(n.charAt(0)==="-")for(;n.length<11;)n="-0"+n.slice(1);else for(;n.length<10;)n="0"+n;o=t=Ex+ps&&e<=kx-ps))return vl;var t=Math.floor(ef(e+.05,1)*10),r=new Date(Math.round(e-t/10)),i=_2e("%Y-%m-%d")(r),a=r.getHours(),n=r.getMinutes(),o=r.getSeconds(),s=r.getUTCMilliseconds()*10+t;return aq(i,a,n,o,s)};function aq(e,t,r,i,a){if((t||r||i||a)&&(e+=" "+Xp(t,2)+":"+Xp(r,2),(i||a)&&(e+=":"+Xp(i,2),a))){for(var n=4;a%10===0;)n-=1,a/=10;e+="."+Xp(a,n)}return e}Oa.cleanDate=function(e,t,r){if(e===vl)return t;if(Oa.isJSDate(e)||typeof e=="number"&&isFinite(e)){if(Wc(r))return M7.error("JS Dates and milliseconds are incompatible with world calendars",e),t;if(e=Oa.ms2DateTimeLocal(+e),!e&&t!==void 0)return t}else if(!Oa.isDateTime(e,r))return M7.error("unrecognized date",e),t;return e};var A2e=/%\d?f/g,T2e=/%h/g,M2e={1:"1",2:"1",3:"2",4:"2"};function tq(e,t,r,i){e=e.replace(A2e,function(n){var o=Math.min(+n.charAt(1)||6,6),s=(t/1e3%1+2).toFixed(o).slice(2).replace(/0+$/,"")||"0";return s});var a=new Date(Math.floor(t+.05));if(e=e.replace(T2e,function(){return M2e[r("%q")(a)]}),Wc(i))try{e=Yc.getComponentMethod("calendars","worldCalFmt")(e,t,i)}catch(n){return"Invalid"}return r(e)(a)}var D2e=[59,59.9,59.99,59.999,59.9999];function S2e(e,t){var r=ef(e+.05,ps),i=Xp(Math.floor(r/Rv),2)+":"+Xp(ef(Math.floor(r/Qh),60),2);if(t!=="M"){iq(t)||(t=0);var a=Math.min(ef(e/Kp,60),D2e[t]),n=(100+a).toFixed(t).slice(1);t>0&&(n=n.replace(/0+$/,"").replace(/[\.]$/,"")),i+=":"+n}return i}Oa.formatDate=function(e,t,r,i,a,n){if(a=Wc(a)&&a,!t)if(r==="y")t=n.year;else if(r==="m")t=n.month;else if(r==="d")t=n.dayMonth+` +`+n.year;else return S2e(e,r)+` +`+tq(n.dayMonthYear,e,i,a);return tq(t,e,i,a)};var rq=3*ps;Oa.incrementMonth=function(e,t,r){r=Wc(r)&&r;var i=ef(e,ps);if(e=Math.round(e-i),r)try{var a=Math.round(e/ps)+Bv,n=Yc.getComponentMethod("calendars","getCal")(r),o=n.fromJD(a);return t%12?n.add(o,t,"m"):n.add(o,t/12,"y"),(o.toJD()-Bv)*ps+i}catch(l){M7.error("invalid ms "+e+" in calendar "+r)}var s=new Date(e+rq);return s.setUTCMonth(s.getUTCMonth()+t)+i-rq};Oa.findExactDates=function(e,t){for(var r=0,i=0,a=0,n=0,o,s,l=Wc(t)&&Yc.getComponentMethod("calendars","getCal")(t),u=0;u{"use strict";oq.exports=function(t){return t}});var S7=X(Xc=>{"use strict";var E2e=Nr(),k2e=Hc(),C2e=Cx(),F2e=(Ji(),lt(ua)).BADNUM,D7=1e-9;Xc.findBin=function(e,t,r){if(E2e(t.start))return r?Math.ceil((e-t.start)/t.size-D7)-1:Math.floor((e-t.start)/t.size+D7);var i=0,a=t.length,n=0,o=a>1?(t[a-1]-t[0])/(a-1):1,s,l;for(o>=0?l=r?P2e:I2e:l=r?z2e:L2e,e+=o*D7*(r?-1:1)*(o>=0?1:-1);i90&&k2e.log("Long binary search..."),i-1};function P2e(e,t){return et}function z2e(e,t){return e>=t}Xc.sorterAsc=function(e,t){return e-t};Xc.sorterDes=function(e,t){return t-e};Xc.distinctVals=function(e){var t=e.slice();t.sort(Xc.sorterAsc);var r;for(r=t.length-1;r>-1&&t[r]===F2e;r--);for(var i=t[r]-t[0]||1,a=i/(r||1)/1e4,n=[],o,s=0;s<=r;s++){var l=t[s],u=l-o;o===void 0?(n.push(l),o=l):u>a&&(i=Math.min(i,u),n.push(l),o=l)}return{vals:n,minDiff:i}};Xc.roundUp=function(e,t,r){for(var i=0,a=t.length-1,n,o=0,s=r?0:1,l=r?1:0,u=r?Math.ceil:Math.floor;i0&&(i=1),r&&i)return e.sort(t)}return i?e:e.reverse()};Xc.findIndexOfMin=function(e,t){t=t||C2e;for(var r=1/0,i,a=0;aB2e});function R2e(e){return Object.keys(e).sort()}var B2e,Px=Gi(()=>{"use strict";B2e=R2e});var sq=X(Na=>{"use strict";var qv=Nr(),q2e=hs().isArrayOrTypedArray;Na.aggNums=function(e,t,r,i){var a,n;if((!i||i>r.length)&&(i=r.length),qv(t)||(t=!1),q2e(r[0])){for(n=new Array(i),a=0;ae.length-1)return e[e.length-1];var r=t%1;return r*e[Math.ceil(t)]+(1-r)*e[Math.floor(t)]}});var fq=X((SQe,hq)=>{"use strict";var lq=(zp(),lt(Lp)),E7=lq.mod,O2e=lq.modHalf,Ov=Math.PI,tf=2*Ov;function N2e(e){return e/180*Ov}function V2e(e){return e/Ov*180}function k7(e){return Math.abs(e[1]-e[0])>tf-1e-14}function uq(e,t){return O2e(t-e,tf)}function U2e(e,t){return Math.abs(uq(e,t))}function cq(e,t){if(k7(t))return!0;var r,i;t[0]i&&(i+=tf);var a=E7(e,tf),n=a+tf;return a>=r&&a<=i||n>=r&&n<=i}function G2e(e,t,r,i){if(!cq(t,i))return!1;var a,n;return r[0]=a&&e<=n}function C7(e,t,r,i,a,n,o){a=a||0,n=n||0;var s=k7([r,i]),l,u,c,h,f;s?(l=0,u=Ov,c=tf):r{"use strict";$0.isLeftAnchor=function(t){return t.xanchor==="left"||t.xanchor==="auto"&&t.x<=1/3};$0.isCenterAnchor=function(t){return t.xanchor==="center"||t.xanchor==="auto"&&t.x>1/3&&t.x<2/3};$0.isRightAnchor=function(t){return t.xanchor==="right"||t.xanchor==="auto"&&t.x>=2/3};$0.isTopAnchor=function(t){return t.yanchor==="top"||t.yanchor==="auto"&&t.y>=2/3};$0.isMiddleAnchor=function(t){return t.yanchor==="middle"||t.yanchor==="auto"&&t.y>1/3&&t.y<2/3};$0.isBottomAnchor=function(t){return t.yanchor==="bottom"||t.yanchor==="auto"&&t.y<=1/3}});var vq=X(H0=>{"use strict";var F7=(zp(),lt(Lp)).mod;H0.segmentsIntersect=mq;function mq(e,t,r,i,a,n,o,s){var l=r-e,u=a-e,c=o-a,h=i-t,f=n-t,d=s-n,p=l*d-c*h;if(p===0)return null;var m=(u*d-c*f)/p,g=(u*h-l*f)/p;return g<0||g>1||m<0||m>1?null:{x:e+l*m,y:t+h*m}}H0.segmentDistance=function(t,r,i,a,n,o,s,l){if(mq(t,r,i,a,n,o,s,l))return 0;var u=i-t,c=a-r,h=s-n,f=l-o,d=u*u+c*c,p=h*h+f*f,m=Math.min(Ix(u,c,d,n-t,o-r),Ix(u,c,d,s-t,l-r),Ix(h,f,p,t-n,r-o),Ix(h,f,p,i-n,a-o));return Math.sqrt(m)};function Ix(e,t,r,i,a){var n=i*e+a*t;if(n<0)return i*i+a*a;if(n>r){var o=i-e,s=a-t;return o*o+s*s}else{var l=i*t-a*e;return l*l/r}}var Lx,P7,pq;H0.getTextLocation=function(t,r,i,a){if((t!==P7||a!==pq)&&(Lx={},P7=t,pq=a),Lx[i])return Lx[i];var n=t.getPointAtLength(F7(i-a/2,r)),o=t.getPointAtLength(F7(i+a/2,r)),s=Math.atan((o.y-n.y)/(o.x-n.x)),l=t.getPointAtLength(F7(i,r)),u=(l.x*4+n.x+o.x)/6,c=(l.y*4+n.y+o.y)/6,h={x:u,y:c,theta:s};return Lx[i]=h,h};H0.clearLocationCache=function(){P7=null};H0.getVisibleSegment=function(t,r,i){var a=r.left,n=r.right,o=r.top,s=r.bottom,l=0,u=t.getTotalLength(),c=u,h,f;function d(m){var g=t.getPointAtLength(m);m===0?h=g:m===u&&(f=g);var y=g.xn?g.x-n:0,x=g.ys?g.y-s:0;return Math.sqrt(y*y+x*x)}for(var p=d(l);p;){if(l+=p+i,l>c)return;p=d(l)}for(p=d(c);p;){if(c-=p+i,l>c)return;p=d(c)}return{min:l,max:c,len:c-l,total:u,isClosed:l===0&&c===u&&Math.abs(h.x-f.x)<.1&&Math.abs(h.y-f.y)<.1}};H0.findPointOnPath=function(t,r,i,a){a=a||{};for(var n=a.pathLength||t.getTotalLength(),o=a.tolerance||.001,s=a.iterationLimit||30,l=t.getPointAtLength(0)[i]>t.getPointAtLength(n)[i]?-1:1,u=0,c=0,h=n,f,d,p;u0?h=f:c=f,u++}return d}});var zx=X(Nv=>{"use strict";var Kc={};Nv.throttle=function(t,r,i){var a=Kc[t],n=Date.now();if(!a){for(var o in Kc)Kc[o].tsa.ts+r){s();return}a.timer=setTimeout(function(){s(),a.timer=null},r)};Nv.done=function(e){var t=Kc[e];return!t||!t.timer?Promise.resolve():new Promise(function(r){var i=t.onDone;t.onDone=function(){i&&i(),r(),t.onDone=null}})};Nv.clear=function(e){if(e)gq(Kc[e]),delete Kc[e];else for(var t in Kc)Nv.clear(t)};function gq(e){e&&e.timer!==null&&(clearTimeout(e.timer),e.timer=null)}});var _q=X((FQe,yq)=>{"use strict";yq.exports=function(t){t._clearResponsive&&(t._clearResponsive(),delete t._clearResponsive)}});var xq=X((PQe,Rx)=>{"use strict";Rx.exports=I7;Rx.exports.isMobile=I7;Rx.exports.default=I7;var Z2e=/(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|redmi|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,Y2e=/CrOS/,W2e=/android|ipad|playbook|silk/i;function I7(e){e||(e={});let t=e.ua;if(!t&&typeof navigator!="undefined"&&(t=navigator.userAgent),t&&t.headers&&typeof t.headers["user-agent"]=="string"&&(t=t.headers["user-agent"]),typeof t!="string")return!1;let r=Z2e.test(t)&&!Y2e.test(t)||!!e.tablet&&W2e.test(t);return!r&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&t.indexOf("Macintosh")!==-1&&t.indexOf("Safari")!==-1&&(r=!0),r}});var wq=X((IQe,bq)=>{"use strict";var X2e=Nr(),K2e=xq();bq.exports=function(t){var r;if(t&&t.hasOwnProperty("userAgent")?r=t.userAgent:r=J2e(),typeof r!="string")return!0;var i=K2e({ua:{headers:{"user-agent":r}},tablet:!0,featureDetect:!1});if(!i)for(var a=r.split(" "),n=1;n-1;s--){var l=a[s];if(l.slice(0,8)==="Version/"){var u=l.slice(8).split(".")[0];if(X2e(u)&&(u=+u),u>=13)return!0}}}return i};function J2e(){var e;return typeof navigator!="undefined"&&(e=navigator.userAgent),e&&e.headers&&typeof e.headers["user-agent"]=="string"&&(e=e.headers["user-agent"]),e}});var Tq=X((LQe,Aq)=>{"use strict";var Q2e=Qr();Aq.exports=function(t,r,i){var a=t.selectAll("g."+i.replace(/\s/g,".")).data(r,function(o){return o[0].trace.uid});a.exit().remove(),a.enter().append("g").attr("class",i),a.order();var n=t.classed("rangeplot")?"nodeRangePlot3":"node3";return a.each(function(o){o[0][n]=Q2e.select(this)}),a}});var Dq=X((zQe,Mq)=>{"use strict";var e_e=mr();Mq.exports=function(t,r){for(var i=t._context.locale,a=0;a<2;a++){for(var n=t._context.locales,o=0;o<2;o++){var s=(n[i]||{}).dictionary;if(s){var l=s[r];if(l)return l}n=e_e.localeRegistry}var u=i.split("-")[0];if(u===i)break;i=u}return r}});var Eq=X((RQe,Sq)=>{"use strict";Sq.exports=function(t){for(var r={},i=[],a=0,n=0;n{"use strict";kq.exports=function(t){for(var r=i_e(t)?r_e:t_e,i=[],a=0;a{"use strict";Fq.exports=function(t,r){if(!r)return t;var i=1/Math.abs(r),a=i>1?(i*t+i*r)/i:t+r,n=String(a).length;if(n>16){var o=String(r).length,s=String(t).length;if(n>=s+o){var l=parseFloat(a).toPrecision(12);l.indexOf("e+")===-1&&(a=+l)}}return a}});var Lq={};Yi(Lq,{default:()=>o_e});function n_e(e){return typeof e=="string"&&(e=e.replace(a_e,"")),(0,Iq.default)(e)?Number(e):void 0}var Iq,a_e,o_e,zq=Gi(()=>{"use strict";Iq=DA(Nr());Ji();a_e=/^['"%,$#\s']+|[, ]|['"%,$#\s']+$/g;o_e=n_e});var qq=X((NQe,Bq)=>{"use strict";var s_e=/<[^>]*>/g,l_e=/[\p{S}\p{P}]/gu,u_e=/[\p{Cc}\p{Cf}\uFE00-\uFE0F\u20E3]/gu,c_e=/�/g,h_e=/\s+/g,Bx="-",Rq=Bx.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),f_e=new RegExp(Rq+"{3,}","g"),d_e=new RegExp(Rq+"$","g"),p_e=60;function m_e(e){return typeof e.toWellFormed=="function"?e.toWellFormed():new TextDecoder().decode(new TextEncoder().encode(e))}Bq.exports=function(t,r=p_e){var i=m_e(t!=null?t:"").replace(c_e,"").replace(s_e," ").replace(l_e,a=>a===Bx?a:"").toLowerCase().trim().replace(h_e,Bx).replace(u_e,"").replace(f_e,Bx);return i.length<=r?i:Array.from(i).slice(0,r).join("").replace(d_e,"")}});var tt=X((VQe,Xq)=>{"use strict";var Vv=Qr(),v_e=Pp().utcFormat,g_e=EA().format,jq=Nr(),$q=(Ji(),lt(ua)),Hq=$q.FP_SAFE,y_e=-Hq,Oq=$q.BADNUM,we={};Xq.exports=we;we.adjustFormat=function(t){if(!t||/^\d[.]\df/.test(t)||/[.]\d%/.test(t))return t;if(t==="0.f")return"~f";if(/^\d%/.test(t))return"~%";if(/^\ds/.test(t))return"~s";var r=(t.match(/^[+\-( ]?/)||[""])[0],i=t.slice(r.length);return!/^[~,.0$#]/.test(i)&&/[&fps]/.test(i)?r+"~"+i:t};var Nq={};we.warnBadFormat=function(e){var t=String(e);Nq[t]||(Nq[t]=1,we.warn('encountered bad format: "'+t+'"'))};we.noFormat=function(e){return String(e)};we.numberFormat=function(e){var t;try{t=g_e(we.adjustFormat(e))}catch(r){return we.warnBadFormat(e),we.noFormat}return t};we.nestedProperty=uv();we.keyedContainer=II();we.relativeAttr=zI();we.isPlainObject=$h();we.toLogRange=V_();we.relinkPrivateKeys=OI();var rf=hs();we.isArrayBuffer=rf.isArrayBuffer;we.isTypedArray=rf.isTypedArray;we.isArrayOrTypedArray=rf.isArrayOrTypedArray;we.isArray1D=rf.isArray1D;we.ensureArray=rf.ensureArray;we.concat=rf.concat;we.maxRowLength=rf.maxRowLength;we.minRowLength=rf.minRowLength;var Zq=(zp(),lt(Lp));we.mod=Zq.mod;we.modHalf=Zq.modHalf;var af=oR();we.valObjectMeta=af.valObjectMeta;we.coerce=af.coerce;we.coerce2=af.coerce2;we.coerceFont=af.coerceFont;we.coercePattern=af.coercePattern;we.coerceHoverinfo=af.coerceHoverinfo;we.coerceSelectionMarkerOpacity=af.coerceSelectionMarkerOpacity;we.validate=af.validate;var Os=nq();we.dateTime2ms=Os.dateTime2ms;we.isDateTime=Os.isDateTime;we.ms2DateTime=Os.ms2DateTime;we.ms2DateTimeLocal=Os.ms2DateTimeLocal;we.cleanDate=Os.cleanDate;we.isJSDate=Os.isJSDate;we.formatDate=Os.formatDate;we.incrementMonth=Os.incrementMonth;we.dateTick0=Os.dateTick0;we.dfltRange=Os.dfltRange;we.findExactDates=Os.findExactDates;we.MIN_MS=Os.MIN_MS;we.MAX_MS=Os.MAX_MS;var Z0=S7();we.findBin=Z0.findBin;we.sorterAsc=Z0.sorterAsc;we.sorterDes=Z0.sorterDes;we.distinctVals=Z0.distinctVals;we.roundUp=Z0.roundUp;we.sort=Z0.sort;we.findIndexOfMin=Z0.findIndexOfMin;we.sortObjectKeys=(Px(),lt(Fx)).default;var Jc=sq();we.aggNums=Jc.aggNums;we.len=Jc.len;we.mean=Jc.mean;we.geometricMean=Jc.geometricMean;we.median=Jc.median;we.midRange=Jc.midRange;we.variance=Jc.variance;we.stdev=Jc.stdev;we.interp=Jc.interp;var du=xx();we.init2dArray=du.init2dArray;we.transposeRagged=du.transposeRagged;we.dot=du.dot;we.translationMatrix=du.translationMatrix;we.rotationMatrix=du.rotationMatrix;we.rotationXYMatrix=du.rotationXYMatrix;we.apply3DTransform=du.apply3DTransform;we.apply2DTransform=du.apply2DTransform;we.apply2DTransform2=du.apply2DTransform2;we.convertCssMatrix=du.convertCssMatrix;we.inverseTransformMatrix=du.inverseTransformMatrix;var rc=fq();we.deg2rad=rc.deg2rad;we.rad2deg=rc.rad2deg;we.angleDelta=rc.angleDelta;we.angleDist=rc.angleDist;we.isFullCircle=rc.isFullCircle;we.isAngleInsideSector=rc.isAngleInsideSector;we.isPtInsideSector=rc.isPtInsideSector;we.pathArc=rc.pathArc;we.pathSector=rc.pathSector;we.pathAnnulus=rc.pathAnnulus;var e1=dq();we.isLeftAnchor=e1.isLeftAnchor;we.isCenterAnchor=e1.isCenterAnchor;we.isRightAnchor=e1.isRightAnchor;we.isTopAnchor=e1.isTopAnchor;we.isMiddleAnchor=e1.isMiddleAnchor;we.isBottomAnchor=e1.isBottomAnchor;var t1=vq();we.segmentsIntersect=t1.segmentsIntersect;we.segmentDistance=t1.segmentDistance;we.getTextLocation=t1.getTextLocation;we.clearLocationCache=t1.clearLocationCache;we.getVisibleSegment=t1.getVisibleSegment;we.findPointOnPath=t1.findPointOnPath;var Nx=Ca();we.extendFlat=Nx.extendFlat;we.extendDeep=Nx.extendDeep;we.extendDeepAll=Nx.extendDeepAll;we.extendDeepNoArrays=Nx.extendDeepNoArrays;var L7=Hc();we.log=L7.log;we.warn=L7.warn;we.error=L7.error;var __e=(Hp(),lt(Iv));we.counterRegex=__e.counter;var z7=zx();we.throttle=z7.throttle;we.throttleDone=z7.done;we.clearThrottle=z7.clear;var pu=Lv();we.getGraphDiv=pu.getGraphDiv;we.isPlotDiv=pu.isPlotDiv;we.removeElement=pu.removeElement;we.addStyleRule=pu.addStyleRule;we.addRelatedStyleRule=pu.addRelatedStyleRule;we.deleteRelatedStyleRule=pu.deleteRelatedStyleRule;we.setStyleOnHover=pu.setStyleOnHover;we.getFullTransformMatrix=pu.getFullTransformMatrix;we.getElementTransformMatrix=pu.getElementTransformMatrix;we.getElementAndAncestors=pu.getElementAndAncestors;we.equalDomRects=pu.equalDomRects;we.clearResponsive=_q();we.preserveDrawingBuffer=wq();we.makeTraceGroups=Tq();we._=Dq();we.notifier=s7();we.filterUnique=Eq();we.filterVisible=Cq();we.pushUnique=v7();we.increment=Pq();we.cleanNumber=(zq(),lt(Lq)).default;we.slugify=qq();we.ensureNumber=function(t){return jq(t)?(t=Number(t),t>Hq||t=t?!1:jq(e)&&e>=0&&e%1===0};we.noop=_x();we.identity=Cx();we.repeat=function(e,t){for(var r=new Array(t),i=0;ir?Math.max(r,Math.min(t,e)):Math.max(t,Math.min(r,e))};we.bBoxIntersect=function(e,t,r){return r=r||0,e.left<=t.right+r&&t.left<=e.right+r&&e.top<=t.bottom+r&&t.top<=e.bottom+r};we.simpleMap=function(e,t,r,i,a){for(var n=e.length,o=new Array(n),s=0;s=Math.pow(2,r)?a>10?(we.warn("randstr failed uniqueness"),o):e(t,r,i,(a||0)+1):o};we.OptionControl=function(e,t){e||(e={}),t||(t="opt");var r={};return r.optionList=[],r._newoption=function(i){i[t]=e,r[i.name]=i,r.optionList.push(i)},r["_"+t]=e,r};we.smooth=function(e,t){if(t=Math.round(t)||0,t<2)return e;var r=e.length,i=2*r,a=2*t-1,n=new Array(a),o=new Array(r),s,l,u,c;for(s=0;s=i&&(u-=i*Math.floor(u/i)),u<0?u=-1-u:u>=r&&(u=i-1-u),c+=e[u]*n[l];o[s]=c}return o};we.syncOrAsync=function(e,t,r){var i,a;function n(){return we.syncOrAsync(e,t,r)}for(;e.length;)if(a=e.splice(0,1)[0],i=a(t),i&&i.then)return i.then(n);return r&&r(t)};we.stripTrailingSlash=function(e){return e.slice(-1)==="/"?e.slice(0,-1):e};we.noneOrAll=function(e,t,r){if(e){var i=!1,a=!0,n,o;for(n=0;n0?a:0})};we.fillArray=function(e,t,r,i){if(i=i||we.identity,we.isArrayOrTypedArray(e))for(var a=0;aw_e.test(window.navigator.userAgent);var A_e=/Firefox\/(\d+)\.\d+/;we.getFirefoxVersion=function(){var e=A_e.exec(window.navigator.userAgent);if(e&&e.length===2){var t=parseInt(e[1]);if(!isNaN(t))return t}return null};we.isD3Selection=function(e){return e instanceof Vv.selection};we.ensureSingle=function(e,t,r,i){var a=e.select(t+(r?"."+r:""));if(a.size())return a;var n=e.append(t);return r&&n.classed(r,!0),i&&n.call(i),n};we.ensureSingleById=function(e,t,r,i){var a=e.select(t+"#"+r);if(a.size())return a;var n=e.append(t).attr("id",r);return i&&n.call(i),n};we.objectFromPath=function(e,t){for(var r=e.split("."),i,a=i={},n=0;n1?a+o[1]:"";if(n&&(o.length>1||s.length>4||r))for(;i.test(s);)s=s.replace(i,"$1"+n+"$2");return s+l};we.TEMPLATE_STRING_REGEX=/%{([^\s%{}:]*)([:|\|][^}]*)?}/g;var Wq=/^\w*$/;we.templateString=function(e,t){var r={};return e.replace(we.TEMPLATE_STRING_REGEX,function(i,a){var n;return Wq.test(a)?n=t[a]:(r[a]=r[a]||we.nestedProperty(t,a).get,n=r[a](!0)),n!==void 0?n:""})};var D_e={max:10,count:0,name:"hovertemplate"};we.hovertemplateString=e=>R7(Yr(nr({},e),{opts:D_e}));var S_e={max:10,count:0,name:"texttemplate"};we.texttemplateString=e=>R7(Yr(nr({},e),{opts:S_e}));var E_e=/^(\S+)([\*\/])(-?\d+(\.\d+)?)$/;function k_e(e){var t=e.match(E_e);return t?{key:t[1],op:t[2],number:Number(t[3])}:{key:e,op:null,number:null}}var C_e={max:10,count:0,name:"texttemplate",parseMultDiv:!0};we.texttemplateStringForShapes=e=>R7(Yr(nr({},e),{opts:C_e}));var Vq=/^[:|\|]/;function R7({data:e=[],locale:t,fallback:r,labels:i={},opts:a,template:n}){return n.replace(we.TEMPLATE_STRING_REGEX,(o,s,l)=>{let u=["xother","yother"].includes(s),c=["_xother","_yother"].includes(s),h=["_xother_","_yother_"].includes(s),f=["xother_","yother_"].includes(s),d=u||c||f||h;(c||h)&&(s=s.substring(1)),(f||h)&&(s=s.substring(0,s.length-1));let p=null,m=null;if(a.parseMultDiv){var g=k_e(s);s=g.key,p=g.op,m=g.number}let y;if(d){if(i[s]===void 0)return"";y=i[s]}else for(let A of e)if(A){if(A.hasOwnProperty(s)){y=A[s];break}if(Wq.test(s)||(y=we.nestedProperty(A,s).get(!0)),y!==void 0)break}if(y===void 0){let{count:A,max:T,name:M}=a,S=r===!1?o:r;return A=Ox&&o<=Uq,u=s>=Ox&&s<=Uq;if(l&&(i=10*i+o-Ox),u&&(a=10*a+s-Ox),!l||!u){if(i!==a)return i-a;if(o!==s)return o-s}}return a-i};var Qp=2e9;we.seedPseudoRandom=function(){Qp=2e9};we.pseudoRandom=function(){var e=Qp;return Qp=(69069*Qp+1)%4294967296,Math.abs(Qp-e)<429496729?we.pseudoRandom():Qp/4294967296};we.fillText=function(e,t,r){var i=Array.isArray(r)?function(o){r.push(o)}:function(o){r.text=o},a=we.extractOption(e,t,"htx","hovertext");if(we.isValidTextValue(a))return i(a);var n=we.extractOption(e,t,"tx","text");if(we.isValidTextValue(n))return i(n)};we.isValidTextValue=function(e){return e||e===0};we.formatPercent=function(e,t){t=t||0;for(var r=(Math.round(100*e*Math.pow(10,t))*Math.pow(.1,t)).toFixed(t)+"%",i=0;i1&&(u=1):u=0,we.strTranslate(a-u*(r+o),n-u*(i+s))+we.strScale(u)+(l?"rotate("+l+(t?"":" "+r+" "+i)+")":"")};we.setTransormAndDisplay=function(e,t){e.attr("transform",we.getTextTransform(t)),e.style("display",t.scale?null:"none")};we.ensureUniformFontSize=function(e,t){var r=we.extendFlat({},t);return r.size=Math.max(t.size,e._fullLayout.uniformtext.minsize||0),r};we.join2=function(e,t,r){var i=e.length;return i>1?e.slice(0,-1).join(t)+r+e[i-1]:e.join(t)};we.bigFont=function(e){return Math.round(1.2*e)};var Gq=we.getFirefoxVersion(),F_e=Gq!==null&&Gq<86;we.getPositionFromD3Event=function(){return F_e?[Vv.event.layerX,Vv.event.layerY]:[Vv.event.offsetX,Vv.event.offsetY]}});var Qq=X(()=>{"use strict";var P_e=tt(),Kq={"X,X div":'direction:ltr;font-family:"Open Sans",verdana,arial,sans-serif;margin:0;padding:0;border: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 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:focus-within .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-group a":"display:grid;place-content:center;","X .modebar-btn":"position:relative;font-size:16px;padding:3px 4px;height:22px;cursor:pointer;line-height:normal;box-sizing:border-box;border:none;background:rgba(0,0,0,0);","X .modebar-btn svg":"position:relative;","X .modebar-btn:focus-visible":"outline:1px solid #000;outline-offset:1px;border-radius:3px;","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;","X .plotly-cloud-dialog":'font-family:"Open Sans",verdana,arial,sans-serif;position:absolute;top:0;left:0;width:100%;height:100%;z-index:1001;display:flex;align-items:center;justify-content:center;background-color:rgba(0,0,0,.4);',"X .plotly-cloud-dialog .plotly-cloud-dialog-box":"box-sizing:border-box;min-width:300px;max-width:420px;padding:20px 24px;background-color:#fff;border:1px solid #e0e2e5;border-radius:4px;box-shadow:0 4px 16px rgba(0,0,0,.25);font-size:13px;color:#2a3f5f;","X .plotly-cloud-dialog .plotly-cloud-dialog-title":"font-size:16px;font-weight:bold;margin-bottom:12px;","X .plotly-cloud-dialog .plotly-cloud-dialog-message":"line-height:1.5;overflow-wrap:break-word;word-wrap:break-word;","X .plotly-cloud-dialog .plotly-cloud-dialog-message--hostname":"font-weight:bold;text-decoration:underline;","X .plotly-cloud-dialog .plotly-cloud-dialog-message--account":"margin-top:16px;padding:8px;border-radius:3px;font-size:.9em;background-color:#edf1f8;","X .plotly-cloud-dialog .plotly-cloud-dialog-buttons":"display:flex;justify-content:flex-end;margin-top:20px;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn":"font-family:inherit;font-size:13px;padding:7px 16px;margin-left:8px;border-radius:3px;border:1px solid rgba(0,0,0,0);cursor:pointer;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn:focus-visible":"outline:2px solid #447adb;outline-offset:1px;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn--cancel":"background-color:#f3f3f3;margin-left:auto;color:#777;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn--cancel:hover":"background-color:#e0e2e5;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn--confirm":"background-color:#447adb;color:#fff;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn--confirm:hover":"background-color:#1d3b84;",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(B7 in Kq)Jq=B7.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier"),P_e.addStyleRule(Jq,Kq[B7]);var Jq,B7});var q7=X(($Qe,eO)=>{eO.exports=!0});var N7=X((HQe,tO)=>{"use strict";var I_e=q7(),O7;typeof window.matchMedia=="function"?O7=!window.matchMedia("(hover: none)").matches:O7=I_e;tO.exports=O7});var Gx=X((ZQe,V7)=>{"use strict";var r1=typeof Reflect=="object"?Reflect:null,rO=r1&&typeof r1.apply=="function"?r1.apply:function(t,r,i){return Function.prototype.apply.call(t,r,i)},Vx;r1&&typeof r1.ownKeys=="function"?Vx=r1.ownKeys:Object.getOwnPropertySymbols?Vx=function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Vx=function(t){return Object.getOwnPropertyNames(t)};function L_e(e){console&&console.warn&&console.warn(e)}var aO=Number.isNaN||function(t){return t!==t};function ea(){ea.init.call(this)}V7.exports=ea;V7.exports.once=q_e;ea.EventEmitter=ea;ea.prototype._events=void 0;ea.prototype._eventsCount=0;ea.prototype._maxListeners=void 0;var iO=10;function Ux(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(ea,"defaultMaxListeners",{enumerable:!0,get:function(){return iO},set:function(e){if(typeof e!="number"||e<0||aO(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");iO=e}});ea.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};ea.prototype.setMaxListeners=function(t){if(typeof t!="number"||t<0||aO(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this};function nO(e){return e._maxListeners===void 0?ea.defaultMaxListeners:e._maxListeners}ea.prototype.getMaxListeners=function(){return nO(this)};ea.prototype.emit=function(t){for(var r=[],i=1;i0&&(o=r[0]),o instanceof Error)throw o;var s=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw s.context=o,s}var l=n[t];if(l===void 0)return!1;if(typeof l=="function")rO(l,this,r);else for(var u=l.length,c=cO(l,u),i=0;i0&&o.length>a&&!o.warned){o.warned=!0;var s=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");s.name="MaxListenersExceededWarning",s.emitter=e,s.type=t,s.count=o.length,L_e(s)}return e}ea.prototype.addListener=function(t,r){return oO(this,t,r,!1)};ea.prototype.on=ea.prototype.addListener;ea.prototype.prependListener=function(t,r){return oO(this,t,r,!0)};function z_e(){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 sO(e,t,r){var i={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},a=z_e.bind(i);return a.listener=r,i.wrapFn=a,a}ea.prototype.once=function(t,r){return Ux(r),this.on(t,sO(this,t,r)),this};ea.prototype.prependOnceListener=function(t,r){return Ux(r),this.prependListener(t,sO(this,t,r)),this};ea.prototype.removeListener=function(t,r){var i,a,n,o,s;if(Ux(r),a=this._events,a===void 0)return this;if(i=a[t],i===void 0)return this;if(i===r||i.listener===r)--this._eventsCount===0?this._events=Object.create(null):(delete a[t],a.removeListener&&this.emit("removeListener",t,i.listener||r));else if(typeof i!="function"){for(n=-1,o=i.length-1;o>=0;o--)if(i[o]===r||i[o].listener===r){s=i[o].listener,n=o;break}if(n<0)return this;n===0?i.shift():R_e(i,n),i.length===1&&(a[t]=i[0]),a.removeListener!==void 0&&this.emit("removeListener",t,s||r)}return this};ea.prototype.off=ea.prototype.removeListener;ea.prototype.removeAllListeners=function(t){var r,i,a;if(i=this._events,i===void 0)return this;if(i.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):i[t]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete i[t]),this;if(arguments.length===0){var n=Object.keys(i),o;for(a=0;a=0;a--)this.removeListener(t,r[a]);return this};function lO(e,t,r){var i=e._events;if(i===void 0)return[];var a=i[t];return a===void 0?[]:typeof a=="function"?r?[a.listener||a]:[a]:r?B_e(a):cO(a,a.length)}ea.prototype.listeners=function(t){return lO(this,t,!0)};ea.prototype.rawListeners=function(t){return lO(this,t,!1)};ea.listenerCount=function(e,t){return typeof e.listenerCount=="function"?e.listenerCount(t):uO.call(e,t)};ea.prototype.listenerCount=uO;function uO(e){var t=this._events;if(t!==void 0){var r=t[e];if(typeof r=="function")return 1;if(r!==void 0)return r.length}return 0}ea.prototype.eventNames=function(){return this._eventsCount>0?Vx(this._events):[]};function cO(e,t){for(var r=new Array(t),i=0;i{"use strict";var U7=Gx().EventEmitter,N_e={init:function(e){if(e._ev instanceof U7)return e;var t=new U7,r=new U7;return e._ev=t,e._internalEv=r,e.on=t.on.bind(t),e.once=t.once.bind(t),e.removeListener=t.removeListener.bind(t),e.removeAllListeners=t.removeAllListeners.bind(t),e._internalOn=r.on.bind(r),e._internalOnce=r.once.bind(r),e._removeInternalListener=r.removeListener.bind(r),e._removeAllInternalListeners=r.removeAllListeners.bind(r),e.emit=function(i,a){t.emit(i,a),r.emit(i,a)},typeof e.addEventListener=="function"&&e.addEventListener("wheel",()=>{},{passive:!0}),e},triggerHandler:function(e,t,r){var i,a=e._ev;if(!a)return;var n=a._events[t];if(!n)return;function o(l){if(l.listener){if(a.removeListener(t,l.listener),!l.fired)return l.fired=!0,l.listener.apply(a,[r])}else return l.apply(a,[r])}n=Array.isArray(n)?n:[n];var s;for(s=0;s{"use strict";var dO=tt(),V_e=Yh().dfltConfig;function U_e(e,t){for(var r=[],i,a=0;aV_e.queueLength&&(e.undoQueue.queue.shift(),e.undoQueue.index--)};Qc.startSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!0,e.undoQueue.beginSequence=!0};Qc.stopSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!1,e.undoQueue.beginSequence=!1};Qc.undo=function(t){var r,i;if(!(t.undoQueue===void 0||isNaN(t.undoQueue.index)||t.undoQueue.index<=0)){for(t.undoQueue.index--,r=t.undoQueue.queue[t.undoQueue.index],t.undoQueue.inSequence=!0,i=0;i=t.undoQueue.queue.length)){for(r=t.undoQueue.queue[t.undoQueue.index],t.undoQueue.inSequence=!0,i=0;i{"use strict";vO.exports={_isLinkedToArray:"frames_entry",group:{valType:"string"},name:{valType:"string"},traces:{valType:"any"},baseframe:{valType:"string"},data:{valType:"any"},layout:{valType:"any"}}});var n1=X(ln=>{"use strict";var gl=mr(),Gv=tt(),$x=Wo(),j7=Wp(),G_e=G7(),j_e=zv(),$_e=Yh().configAttributes,gO=qs(),mu=Gv.extendDeepAll,i1=Gv.isPlainObject,H_e=Gv.isArrayOrTypedArray,Hx=Gv.nestedProperty,Z_e=Gv.valObjectMeta,$7="_isSubplotObj",Zx="_isLinkedToArray",Y_e="_arrayAttrRegexps",_O="_deprecated",H7=[$7,Zx,Y_e,_O];ln.IS_SUBPLOT_OBJ=$7;ln.IS_LINKED_TO_ARRAY=Zx;ln.DEPRECATED=_O;ln.UNDERSCORE_ATTRS=H7;ln.get=function(){var e={};return gl.allTypes.forEach(function(t){e[t]=X_e(t)}),{defs:{valObjects:Z_e,metaKeys:H7.concat(["description","role","editType","impliedEdits"]),editType:{traces:gO.traces,layout:gO.layout},impliedEdits:{}},traces:e,layout:K_e(),frames:J_e(),animation:a1(j_e),config:a1($_e)}};ln.crawl=function(e,t,r,i){var a=r||0;i=i||"",Object.keys(e).forEach(function(n){var o=e[n];if(H7.indexOf(n)===-1){var s=(i?i+".":"")+n;t(o,n,e,a,s),!ln.isValObject(o)&&i1(o)&&n!=="impliedEdits"&&ln.crawl(o,t,a+1,s)}})};ln.isValObject=function(e){return e&&e.valType!==void 0};ln.findArrayAttributes=function(e){var t=[],r=[],i=[],a,n;function o(l,u,c,h){r=r.slice(0,h).concat([u]),i=i.slice(0,h).concat([l&&l._isLinkedToArray]);var f=l&&(l.valType==="data_array"||l.arrayOk===!0)&&!(r[h-1]==="colorbar"&&(u==="ticktext"||u==="tickvals"));f&&s(a,0,"")}function s(l,u,c){var h=l[r[u]],f=c+r[u];if(u===r.length-1)H_e(h)&&t.push(n+f);else if(i[u]){if(Array.isArray(h))for(var d=0;d=n.length)return!1;if(e.dimensions===2){if(r++,t.length===r)return e;var o=t[r];if(!jx(o))return!1;e=n[a][o]}else e=n[a]}else e=n}}return e}function jx(e){return e===Math.round(e)&&e>=0}function X_e(e){var t,r;t=gl.modules[e]._module,r=t.basePlotModule;var i={};i.type=null;var a=mu({},$x),n=mu({},t.attributes);ln.crawl(n,function(l,u,c,h,f){Hx(a,f).set(void 0),l===void 0&&Hx(n,f).set(void 0)}),mu(i,a),gl.traceIs(e,"noOpacity")&&delete i.opacity,gl.traceIs(e,"showLegend")||(delete i.showlegend,delete i.legendgroup),gl.traceIs(e,"noHover")&&(delete i.hoverinfo,delete i.hoverlabel),t.selectPoints||delete i.selectedpoints,mu(i,n),r.attributes&&mu(i,r.attributes),i.type=e;var o={meta:t.meta||{},categories:t.categories||{},animatable:!!t.animatable,type:e,attributes:a1(i)};if(t.layoutAttributes){var s={};mu(s,t.layoutAttributes),o.layoutAttributes=a1(s)}return t.animatable||ln.crawl(o,function(l){ln.isValObject(l)&&"anim"in l&&delete l.anim}),o}function K_e(){var e={},t,r;mu(e,j7);for(t in gl.subplotsRegistry)if(r=gl.subplotsRegistry[t],!!r.layoutAttributes)if(Array.isArray(r.attr))for(var i=0;i{"use strict";var o1=tt(),ixe=Wo(),nf="templateitemname",Z7={name:{valType:"string",editType:"none"}};Z7[nf]={valType:"string",editType:"calc"};Y0.templatedArray=function(e,t){return t._isLinkedToArray=e,t.name=Z7.name,t[nf]=Z7[nf],t};Y0.traceTemplater=function(e){var t={},r,i;for(r in e)i=e[r],Array.isArray(i)&&i.length&&(t[r]=0);function a(n){r=o1.coerce(n,{},ixe,"type");var o={type:r,_template:null};if(r in t){i=e[r];var s=t[r]%i.length;t[r]++,o._template=i[s]}return o}return{newTrace:a}};Y0.newContainer=function(e,t,r){var i=e._template,a=i&&(i[t]||r&&i[r]);o1.isPlainObject(a)||(a=null);var n=e[t]={_template:a};return n};Y0.arrayTemplater=function(e,t,r){var i=e._template,a=i&&i[wO(t)],n=i&&i[t];(!Array.isArray(n)||!n.length)&&(n=[]);var o={};function s(u){var c={name:u.name,_input:u},h=c[nf]=u[nf];if(!bO(h))return c._template=a,c;for(var f=0;f=i&&(r._input||{})._templateitemname;n&&(a=i);var o=t+"["+a+"]",s;function l(){s={},n&&(s[o]={},s[o][nf]=n)}l();function u(d,p){s[d]=p}function c(d,p){n?o1.nestedProperty(s[o],d).set(p):s[o+"."+d]=p}function h(){var d=s;return l(),d}function f(d,p){d&&c(d,p);var m=h();for(var g in m)o1.nestedProperty(e,g).set(m[g])}return{modifyBase:u,modifyItem:c,getUpdateObj:h,applyUpdate:f}}});var _n={};Yi(_n,{AX_ID_PATTERN:()=>lxe,AX_NAME_PATTERN:()=>uxe,DFLTRANGEX:()=>gxe,DFLTRANGEY:()=>yxe,DRAGGERSIZE:()=>mxe,HOUR_PATTERN:()=>hxe,MINDRAG:()=>dxe,MINZOOM:()=>pxe,REDRAWDELAY:()=>vxe,SUBPLOT_PATTERN:()=>cxe,WEEKDAY_PATTERN:()=>fxe,attrRegex:()=>nxe,clipOnAxisFalseQuery:()=>xxe,idRegex:()=>axe,layerValue2layerClass:()=>bxe,traceLayerClasses:()=>_xe,xAxisMatch:()=>oxe,yAxisMatch:()=>sxe,zindexSeparator:()=>wxe});var axe,nxe,oxe,sxe,lxe,uxe,cxe,hxe,fxe,dxe,pxe,mxe,vxe,gxe,yxe,_xe,xxe,bxe,wxe,xn=Gi(()=>{"use strict";Hp();axe={x:G0("x","( domain)?"),y:G0("y","( domain)?")},nxe=G0("[xy]axis"),oxe=G0("xaxis"),sxe=G0("yaxis"),lxe=/^[xyz][0-9]*( domain)?$/,uxe=/^[xyz]axis[0-9]*$/,cxe=/^x([0-9]*)y([0-9]*)$/,hxe="hour",fxe="day of week",dxe=8,pxe=20,mxe=20,vxe=50,gxe=[-1,6],yxe=[-1,4],_xe=["imagelayer","heatmaplayer","contourcarpetlayer","contourlayer","funnellayer","waterfalllayer","barlayer","carpetlayer","violinlayer","boxlayer","ohlclayer","scattercarpetlayer","scatterlayer"],xxe=[".scatterlayer",".barlayer",".funnellayer",".waterfalllayer"],bxe={"above traces":"above","below traces":"below"},wxe="z"});var un=X(ms=>{"use strict";var Axe=mr(),Y7=(xn(),lt(_n));ms.id2name=function(t){if(!(typeof t!="string"||!t.match(Y7.AX_ID_PATTERN))){var r=t.split(" ")[0].slice(1);return r==="1"&&(r=""),t.charAt(0)+"axis"+r}};ms.name2id=function(t){if(t.match(Y7.AX_NAME_PATTERN)){var r=t.slice(5);return r==="1"&&(r=""),t.charAt(0)+r}};ms.cleanId=function(t,r,i){var a=/( domain)$/.test(t);if(!(typeof t!="string"||!t.match(Y7.AX_ID_PATTERN))&&!(r&&t.charAt(0)!==r)&&!(a&&!i)){var n=t.split(" ")[0].slice(1).replace(/^0+/,"");return n==="1"&&(n=""),t.charAt(0)+n+(a&&i?" domain":"")}};ms.list=function(e,t,r){var i=e._fullLayout;if(!i)return[];var a=ms.listIds(e,t),n=new Array(a.length),o;for(o=0;oi?1:-1:+(e.slice(1)||1)-+(t.slice(1)||1)};ms.ref2id=function(e){return/^[xyz]/.test(e)?e.split(" ")[0]:!1};function AO(e,t){if(t&&t.length){for(var r=0;r{"use strict";function Txe(e){var t=e._fullLayout._zoomlayer;t&&t.selectAll(".outline-controllers").remove()}function Mxe(e){var t=e._fullLayout._zoomlayer;t&&t.selectAll(".select-outline").remove(),e._fullLayout._outlining=!1}TO.exports={clearOutlineControllers:Txe,clearOutline:Mxe}});var Yx=X((ret,MO)=>{"use strict";MO.exports={scattermode:{valType:"enumerated",values:["group","overlay"],dflt:"overlay",editType:"calc"},scattergap:{valType:"number",min:0,max:1,editType:"calc"}}});var Kx=X(Xx=>{"use strict";var Wx=mr(),iet=(xn(),lt(_n)).SUBPLOT_PATTERN;Xx.getSubplotCalcData=function(e,t,r){var i=Wx.subplotsRegistry[t];if(!i)return[];for(var a=i.attr,n=[],o=0;o{"use strict";var Dxe=mr(),s1=tt();W0.manageCommandObserver=function(e,t,r,i){var a={},n=!0;t&&t._commandObserver&&(a=t._commandObserver),a.cache||(a.cache={}),a.lookupTable={};var o=W0.hasSimpleAPICommandBindings(e,r,a.lookupTable);if(t&&t._commandObserver){if(o)return a;if(t._commandObserver.remove)return t._commandObserver.remove(),t._commandObserver=null,a}if(o){DO(e,o,a.cache),a.check=function(){if(n){var c=DO(e,o,a.cache);return c.changed&&i&&a.lookupTable[c.value]!==void 0&&(a.disable(),Promise.resolve(i({value:c.value,type:o.type,prop:o.prop,traces:o.traces,index:a.lookupTable[c.value]})).then(a.enable,a.enable)),c.changed}};for(var s=["plotly_relayout","plotly_redraw","plotly_restyle","plotly_update","plotly_animatingframe","plotly_afterplot"],l=0;l0?".":"")+a;s1.isPlainObject(n)?W7(n,t,o,i+1):t(o,a,n)}})}});var bn=X((set,OO)=>{"use strict";var oet=Qr(),Exe=Pp().timeFormatLocale,kxe=EA().formatLocale,jv=Nr(),Cxe=CA(),Fxe=lv().version,ni=mr(),Pxe=n1(),Ixe=qi(),Nt=tt(),Lxe=Vr(),CO=(Ji(),lt(ua)).BADNUM,vs=un(),zxe=of().clearOutline,Rxe=Yx(),X7=zv(),Bxe=G7(),qxe=Kx().getModuleCalcData,FO=Nt.relinkPrivateKeys,X0=Nt._,Et=OO.exports={};Nt.extendFlat(Et,ni);Et.attributes=Wo();Et.attributes.type.values=Et.allTypes;Et.fontAttrs=oo();Et.layoutAttributes=Wp();var Qx=kO();Et.executeAPICommand=Qx.executeAPICommand;Et.computeAPICommandBindings=Qx.computeAPICommandBindings;Et.manageCommandObserver=Qx.manageCommandObserver;Et.hasSimpleAPICommandBindings=Qx.hasSimpleAPICommandBindings;Et.redrawText=function(e){return e=Nt.getGraphDiv(e),new Promise(function(t){setTimeout(function(){e._fullLayout&&(ni.getComponentMethod("annotations","draw")(e),ni.getComponentMethod("legend","draw")(e),ni.getComponentMethod("colorbar","draw")(e),t(Et.previousPromises(e)))},300)})};Et.resize=function(e){e=Nt.getGraphDiv(e);var t,r=new Promise(function(i,a){(!e||Nt.isHidden(e))&&a(new Error("Resize must be passed a displayed plot div element.")),e._redrawTimer&&clearTimeout(e._redrawTimer),e._resolveResize&&(t=e._resolveResize),e._resolveResize=i,e._redrawTimer=setTimeout(function(){if(!e.layout||e.layout.width&&e.layout.height||Nt.isHidden(e)){i(e);return}delete e.layout.width,delete e.layout.height;var n=e.changed;e.autoplay=!0,ni.call("relayout",e,{autosize:!0}).then(function(){e.changed=n,e._resolveResize===i&&(delete e._resolveResize,i(e))})},100)});return t&&t(r),r};Et.previousPromises=function(e){if((e._promises||[]).length)return Promise.all(e._promises).then(function(){e._promises=[]})};Et.sendDataToCloud=function(e,t){e.emit("plotly_beforeexport");let r=new URL(t).origin;var i=Et.graphJson(e,!1,"object");i.version=Fxe;var a=new URL(t);a.searchParams.set("origin",window.location.origin);var n=window.open(a.href,"_blank");if(!n){console.error("Unable to open Plotly Cloud (the popup may have been blocked)"),e.emit("plotly_exportfail");return}var o=function(s){s.origin===r&&s.data&&s.data.type==="CHART_AUTH_SUCCESS"&&(n.postMessage({type:"chart",chart:i},r),window.removeEventListener("message",o),e.emit("plotly_afterexport"))};return window.addEventListener("message",o),!1};var Oxe=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],Nxe=["year","month","dayMonth","dayMonthYear"];Et.supplyDefaults=function(e,t){var r=t&&t.skipUpdateCalc,i=e._fullLayout||{};if(i._skipDefaults){delete i._skipDefaults;return}var a=e._fullLayout={},n=e.layout||{},o=e._fullData||[],s=e._fullData=[],l=e.data||[],u=e.calcdata||[],c=e._context||{},h;e._transitionData||Et.createTransitionData(e),a._dfltTitle={plot:X0(e,"Click to enter Plot title"),subtitle:X0(e,"Click to enter Plot subtitle"),x:X0(e,"Click to enter X axis title"),y:X0(e,"Click to enter Y axis title"),colorbar:X0(e,"Click to enter Colorscale title"),annotation:X0(e,"new text")},a._traceWord=X0(e,"trace");var f=PO(e,Oxe);if(i._initialAutoSizeIsDone){var d=i.width,p=i.height;Et.supplyLayoutGlobalDefaults(n,a,f),n.width||(a.width=d),n.height||(a.height=p),Et.sanitizeMargins(a)}else{Et.supplyLayoutGlobalDefaults(n,a,f);var m=!n.width||!n.height,g=a.autosize,y=c.autosizable,x=m&&(g||y);x?Et.plotAutoSize(e,n,a):m&&Et.sanitizeMargins(a),!g&&m&&(n.width=a.width,n.height=a.height)}a._d3locale=Gxe(f,a.separators),a._extraFormat=PO(e,Nxe),a._initialAutoSizeIsDone=!0,a._dataLength=l.length,a._modules=[],a._visibleModules=[],a._basePlotModules=[];var b=a._subplots=Uxe(),_=a._splomAxes={x:{},y:{}},A=a._splomSubplots={};a._splomGridDflt={},a._scatterStackOpts={},a._firstScatter={},a._alignmentOpts={},a._colorAxes={},a._requestRangeslider={},a._traceUids=Vxe(o,l),Et.supplyDataDefaults(l,s,n,a);var T=Object.keys(_.x),M=Object.keys(_.y);if(T.length>1&&M.length>1){for(ni.getComponentMethod("grid","sizeDefaults")(n,a),h=0;h15&&M.length>15&&a.shapes.length===0&&a.images.length===0,Et.linkSubplots(s,a,o,i),Et.cleanPlot(s,a,o,i);var B=!!(i._has&&i._has("cartesian")),L=!!(a._has&&a._has("cartesian")),z=B,q=L;z&&!q?i._bgLayer.remove():q&&!z&&(a._shouldCreateBgLayer=!0),i._zoomlayer&&!e._dragging&&zxe({_fullLayout:i}),jxe(s,a),FO(a,i),ni.getComponentMethod("colorscale","crossTraceDefaults")(s,a),a._preGUI||(a._preGUI={}),a._tracePreGUI||(a._tracePreGUI={});var V=a._tracePreGUI,j={},$;for($ in V)j[$]="old";for(h=0;h0){var c=1-2*n;o=Math.round(c*o),s=Math.round(c*s)}}var h=Et.layoutAttributes.width.min,f=Et.layoutAttributes.height.min;o1,p=!r.height&&Math.abs(i.height-s)>1;(p||d)&&(d&&(i.width=o),p&&(i.height=s)),t._initialAutoSize||(t._initialAutoSize={width:o,height:s}),Et.sanitizeMargins(i)};Et.supplyLayoutModuleDefaults=function(e,t,r,i){var a=ni.componentsRegistry,n=t._basePlotModules,o,s,l,u=ni.subplotsRegistry.cartesian;for(o in a)l=a[o],l.includeBasePlot&&l.includeBasePlot(e,t);n.length||n.push(u),t._has("cartesian")&&(ni.getComponentMethod("grid","contentDefaults")(e,t),u.finalizeSubplots(e,t));for(var c in t._subplots)t._subplots[c].sort(Nt.subplotSort);for(s=0;s1&&(r.l/=g,r.r/=g)}if(f){var y=(r.t+r.b)/f;y>1&&(r.t/=y,r.b/=y)}var x=r.xl!==void 0?r.xl:r.x,b=r.xr!==void 0?r.xr:r.x,_=r.yt!==void 0?r.yt:r.y,A=r.yb!==void 0?r.yb:r.y;d[t]={l:{val:x,size:r.l+m},r:{val:b,size:r.r+m},b:{val:A,size:r.b+m},t:{val:_,size:r.t+m}},p[t]=1}if(!i._replotting)return Et.doAutoMargin(e)}};function Hxe(e){if("_redrawFromAutoMarginCount"in e._fullLayout)return!1;var t=vs.list(e,"",!0);for(var r in t)if(t[r].autoshift||t[r].shift)return!0;return!1}Et.doAutoMargin=function(e){var t=e._fullLayout,r=t.width,i=t.height;t._size||(t._size={}),zO(t);var a=t._size,n=t.margin,o={t:0,b:0,l:0,r:0},s=Nt.extendFlat({},a),l=n.l,u=n.r,c=n.t,h=n.b,f=t._pushmargin,d=t._pushmarginIds,p=t.minreducedwidth,m=t.minreducedheight;if(n.autoexpand!==!1){for(var g in f)d[g]||delete f[g];var y=e._fullLayout._reservedMargin;for(var x in y)for(var b in y[x]){var _=y[x][b];o[b]=Math.max(o[b],_)}f.base={l:{val:0,size:l},r:{val:1,size:u},t:{val:1,size:c},b:{val:0,size:h}};for(var A in o){var T=0;for(var M in f)M!=="base"&&jv(f[M][A].size)&&(T=f[M][A].size>T?f[M][A].size:T);var S=Math.max(0,n[A]-T);o[A]=Math.max(0,o[A]-S)}for(var k in f){var P=f[k].l||{},I=f[k].b||{},B=P.val,L=P.size,z=I.val,q=I.size,V=r-o.r-o.l,j=i-o.t-o.b;for(var $ in f){if(jv(L)&&f[$].r){var H=f[$].r.val,Z=f[$].r.size;if(H>B){var Y=(L*H+(Z-V)*B)/(H-B),oe=(Z*(1-B)+(L-V)*(1-H))/(H-B);Y+oe>l+u&&(l=Y,u=oe)}}if(jv(q)&&f[$].t){var pe=f[$].t.val,De=f[$].t.size;if(pe>z){var ye=(q*pe+(De-j)*z)/(pe-z),de=(De*(1-z)+(q-j)*(1-pe))/(pe-z);ye+de>h+c&&(h=ye,c=de)}}}}}var Ce=Nt.constrain(r-n.l-n.r,RO,p),J=Nt.constrain(i-n.t-n.b,BO,m),ue=Math.max(0,r-Ce),me=Math.max(0,i-J);if(ue){var te=(l+u)/ue;te>1&&(l/=te,u/=te)}if(me){var re=(h+c)/me;re>1&&(h/=re,c/=re)}if(a.l=Math.round(l)+o.l,a.r=Math.round(u)+o.r,a.t=Math.round(c)+o.t,a.b=Math.round(h)+o.b,a.p=Math.round(n.pad),a.w=Math.round(r)-a.l-a.r,a.h=Math.round(i)-a.t-a.b,!t._replotting&&(Et.didMarginChange(s,a)||Hxe(e))){"_redrawFromAutoMarginCount"in t?t._redrawFromAutoMarginCount++:t._redrawFromAutoMarginCount=1;var fe=3*(1+Object.keys(d).length);if(t._redrawFromAutoMarginCount1)return!0}return!1};Et.graphJson=function(e,t=!1,r="json",i=!1,a=!1){(i&&t&&!e._fullData||i&&!t&&!e._fullLayout)&&Et.supplyDefaults(e);var n=i?e._fullData:e.data,o=i?e._fullLayout:e.layout,s=(e._transitionData||{})._frames;function l(h,f){if(typeof h=="function")return f?"_function_":null;if(Nt.isPlainObject(h)){var d={};return Object.keys(h).sort().forEach(function(y){if(["_","["].indexOf(y.charAt(0))===-1){if(typeof h[y]=="function"){f&&(d[y]="_function");return}d[y]=l(h[y],f)}}),d}var p=Array.isArray(h),m=Nt.isTypedArray(h);if((p||m)&&h.dtype&&h.shape){var g=h.bdata;return l({dtype:h.dtype,shape:h.shape,bdata:Nt.isArrayBuffer(g)?Cxe.encode(g):g},f)}return p?h.map(function(y){return l(y,f)}):m?Nt.simpleMap(h,Nt.identity):Nt.isJSDate(h)?Nt.ms2DateTimeLocal(+h):h}var u={data:(n||[]).map(function(h){var f=l(h);return t&&delete f.fit,f})};if(!t&&(u.layout=l(o),i)){var c=o._size;u.layout.computed={margin:{b:c.b,l:c.l,r:c.r,t:c.t}}}return s&&(u.frames=l(s)),a&&(u.config=l(e._context,!0)),r==="object"?u:JSON.stringify(u)};Et.modifyFrames=function(e,t){var r,i,a,n=e._transitionData._frames,o=e._transitionData._frameHash;for(r=0;r0&&(e._transitioningWithDuration=!0),e._transitionData._interruptCallbacks.push(function(){i=!0}),r.redraw&&e._transitionData._interruptCallbacks.push(function(){return ni.call("redraw",e)}),e._transitionData._interruptCallbacks.push(function(){e.emit("plotly_transitioninterrupted",[])});var f=0,d=0;function p(){return f++,function(){d++,!i&&d===f&&s(h)}}r.runFn(p),setTimeout(p())})}function s(h){if(e._transitionData)return n(e._transitionData._interruptCallbacks),Promise.resolve().then(function(){if(r.redraw)return ni.call("redraw",e)}).then(function(){e._transitioning=!1,e._transitioningWithDuration=!1,e.emit("plotly_transitioned",[])}).then(h)}function l(){if(e._transitionData)return e._transitioning=!1,a(e._transitionData._interruptCallbacks)}var u=[Et.previousPromises,l,r.prepareFn,Et.rehover,Et.reselect,o],c=Nt.syncOrAsync(u,e);return(!c||!c.then)&&(c=Promise.resolve()),c.then(function(){return e})}Et.doCalcdata=function(e,t){var r=vs.list(e),i=e._fullData,a=e._fullLayout,n,o,s,l=new Array(i.length),u=(e.calcdata||[]).slice();for(e.calcdata=l,a._numBoxes=0,a._numViolins=0,a._violinScaleGroupStats={},e._hmpixcount=0,e._hmlumcount=0,a._piecolormap={},a._sunburstcolormap={},a._treemapcolormap={},a._iciclecolormap={},a._funnelareacolormap={},s=0;sNO,svgAttrs:()=>Jxe,xlink:()=>VO,xmlns:()=>Kxe});var Kxe,NO,VO,Jxe,lf=Gi(()=>{"use strict";Kxe="http://www.w3.org/2000/xmlns/",NO="http://www.w3.org/2000/svg",VO="http://www.w3.org/1999/xlink",Jxe={xmlns:NO,"xmlns:xlink":VO}});var lo={};Yi(lo,{CAP_SHIFT:()=>ibe,FROM_BL:()=>Qxe,FROM_BR:()=>tbe,FROM_TL:()=>ebe,LINE_SPACING:()=>rbe,MID_SHIFT:()=>abe,OPPOSITE_SIDE:()=>nbe});var Qxe,ebe,tbe,rbe,ibe,abe,nbe,uo=Gi(()=>{"use strict";Qxe={left:0,center:.5,right:1,bottom:0,middle:.5,top:1},ebe={left:0,center:.5,right:1,bottom:1,middle:.5,top:0},tbe={left:1,center:.5,right:0,bottom:0,middle:.5,top:1},rbe=1.3,ibe=.7,abe=.35,nbe={left:"right",right:"left",top:"bottom",bottom:"top"}});var cn=X(Do=>{"use strict";var Fa=Qr(),yl=tt(),obe=yl.strTranslate,K7=(lf(),lt(sf)),sbe=(uo(),lt(lo)).LINE_SPACING,lbe=/([^$]*)([$]+[^$]*[$]+)([^$]*)/,e8=e=>e?e.match(lbe):null;Do.matchTex=e8;var ube=e=>{var t=e8(e);return!!t&&!t[1]&&!t[3]};Do.isPureTex=ube;function ZO(e,t,r,i,a,n,o,s){var l=i.select("g"),u=l.node().getBoundingClientRect(),c=u.width,h=u.height,f=o===void 0?c:o,d=s===void 0?h:s;(c>f||h>d)&&(i.style("overflow","hidden"),u=i.node().getBoundingClientRect(),c=u.width,h=u.height);var p=+e.attr("x"),m=+e.attr("y"),g=n||e.node().getBoundingClientRect().height,y=-g/4;t[0]==="y"?r.attr({transform:"rotate("+[-90,p,m]+")"+obe(-c/2,y-h/2)}):t[0]==="l"?m=y-h/2:t[0]==="a"&&t.indexOf("atitle")!==0?(p=0,m=y):(p=p-c*(a==="middle"?.5:a==="end"?1:0),m=m+y-h/2),i.attr({x:p,y:m})}function cbe(e){e.selectAll("a").each(function(){var t=Fa.select(this);["href","xlink:href"].forEach(function(r){var i=t.attr(r);i&&t.attr(r,i8(i)||null)})})}Do.convertToTspans=function(e,t,r){var i=e.text(),a=!e.attr("data-notex")&&t&&t._context.typesetMath&&e8(i);a&&!pbe()&&(a=null);var n=Fa.select(e.node().parentNode);if(n.empty())return;var o=e.attr("class")?e.attr("class").split(" ")[0]:"text";o+="-math",n.selectAll("svg."+o).remove(),n.selectAll("g."+o+"-group").remove(),e.style("display",null).attr({"data-unformatted":i,"data-math":"N"});function s(){n.empty()||(o=e.attr("class")+"-math",n.select("svg."+o).remove()),e.text("").style("white-space","pre");var l=Tbe(e.node(),i);l&&e.style("pointer-events","all"),Do.positionText(e),r&&r.call(e)}return a?(t&&t._promises||[]).push(new Promise(function(l){e.style("display","none");var u=parseInt(e.node().style.fontSize,10),c={fontSize:u},h=e.attr("text-anchor");mbe(a[2],c,function(f,d,p){n.selectAll("svg."+o).remove(),n.selectAll("g."+o+"-group").remove();var m=f&&f.select("svg");if(!m||!m.node()){s(),l();return}e.style("display","none");var g=n.append("g").classed(o+"-group",!0).attr({"pointer-events":"none","data-unformatted":i,"data-math":"Y"});g.node().appendChild(m.node()),cbe(m),d&&d.node()&&m.node().insertBefore(d.node().cloneNode(!0),m.node().firstChild);var y=p.width,x=p.height;m.attr({class:o,height:x,preserveAspectRatio:"xMinYMin meet"}).style({overflow:"visible","pointer-events":"none","font-size":c.fontSize+"px"});var b=e.node().style.fill||"black",_=m.select("g");_.attr({fill:b,stroke:b}),ZO(e,o,g,m,h,u,y,x),r&&r.call(e,g),l(g)})})):s(),e};Do.repositionMathGroup=function(e){if(!e.empty()){var t=(e.attr("class")?e.attr("class").split(" ")[0]:"text")+"-math",r=Fa.select(e.node().parentNode),i=r.select("g."+t+"-group"),a=i.select("svg."+t);if(!(i.empty()||a.empty())){var n=e.attr("text-anchor"),o=parseInt(e.node().style.fontSize,10);ZO(e,t,i,a,n,o)}}};Do.getMathOrTextNode=function(e){var t=e.node();if(!t)return null;var r=(e.attr("class")?e.attr("class").split(" ")[0]:"text")+"-math",i=Fa.select(t.parentNode).select("g."+r+"-group");return i.empty()?t:i.node()};var hbe=/(<|<|<)/g,fbe=/(>|>|>)/g;function dbe(e){return e.replace(hbe,"\\lt ").replace(fbe,"\\gt ")}var J7=null,YO=()=>typeof MathJax!="undefined"&&MathJax.version?parseInt(MathJax.version.split(".")[0]):null,UO=!1,GO=!1;function pbe(){let e=YO();return e===3||e===4?!0:(e===null?UO||(UO=!0,yl.warn("MathJax is not loaded. Math equations will not be rendered.")):GO||(GO=!0,yl.warn("Unsupported MathJax version:",MathJax.version)),!1)}function mbe(e,t,r){let i=YO();var a;let n=function(){if(!J7){let u=MathJax._.output.svg_ts.SVG,c=yl.extendFlat({},MathJax.config.svg,{fontCache:"local"});i===4&&(c.linebreaks=yl.extendFlat({},c.linebreaks,{inline:!1})),J7=MathJax._.mathjax.mathjax.document(document,yl.extendFlat({},MathJax.config.options,{InputJax:MathJax.startup.input,OutputJax:new u(c)}))}let s="math-output-"+yl.randstr({},64);a=Fa.select("body").append("div").attr({id:s}).style({visibility:"hidden",position:"absolute","font-size":t.fontSize+"px"});let l=dbe(e).replace(/^\$+|\$+$/g,"");return MathJax._.mathjax.mathjax.handleRetriesFor(function(){return J7.convert(l,{display:!1})}).then(function(u){a.node().appendChild(u)})},o=function(){let s=a.select(".MathJax"),l=!s.empty()&&a.select("svg").node();if(!l)yl.log("There was an error in the tex syntax.",e),r();else{let u=l.getBoundingClientRect(),c=s.select("defs");r(s,c,u)}a.remove()};Promise.resolve().then(n).then(o).catch(s=>{yl.log("MathJax typesetting failed.",e,s),a&&a.remove(),r()})}var WO={sup:"font-size:70%",sub:"font-size:70%",s:"text-decoration:line-through",u:"text-decoration:underline",b:"font-weight:bold",i:"font-style:italic",a:"cursor:pointer",span:"",em:"font-style:italic;font-weight:bold"},vbe={sub:"0.3em",sup:"-0.6em"},gbe={sub:"-0.21em",sup:"0.42em"},jO="\u200B",$O=["http:","https:","mailto:","",void 0,":"],XO=Do.NEWLINES=/(\r\n?|\n)/g,t8=/(<[^<>]*>)/,r8=/<(\/?)([^ >]*)(\s+(.*))?>/i,ybe=//i;Do.BR_TAG_ALL=//gi;var KO=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,JO=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,QO=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,_be=/(^|[\s"'])popup\s*=\s*("([\w=,]*)"|'([\w=,]*)')/i;function K0(e,t){if(!e)return null;var r=e.match(t),i=r&&(r[3]||r[4]);return i&&eb(i)}var xbe=/(^|;)\s*color:/;Do.plainText=function(e,t){t=t||{};for(var r=t.len!==void 0&&t.len!==-1?t.len:1/0,i=t.allowedTags!==void 0?t.allowedTags:["br"],a="...",n=a.length,o=e.split(t8),s=[],l="",u=0,c=0;cn?s.push(h.slice(0,Math.max(0,m-n))+a):s.push(h.slice(0,m));break}l=""}}return s.join("")};var bbe={mu:"\u03BC",amp:"&",lt:"<",gt:">",nbsp:"\xA0",times:"\xD7",plusmn:"\xB1",deg:"\xB0"},wbe=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function eb(e){return e.replace(wbe,function(t,r){var i;return r.charAt(0)==="#"?i=Abe(r.charAt(1)==="x"?parseInt(r.slice(2),16):parseInt(r.slice(1),10)):i=bbe[r],i||t})}Do.convertEntities=eb;function Abe(e){if(!(e>1114111)){var t=String.fromCodePoint;if(t)return t(e);var r=String.fromCharCode;return e<=65535?r(e):r((e>>10)+55232,e%1024+56320)}}function Tbe(e,t){t=t.replace(XO," ");var r=!1,i=[],a,n=-1;function o(){n++;var T=document.createElementNS(K7.svg,"tspan");Fa.select(T).attr({class:"line",dy:n*sbe+"em"}),e.appendChild(T),a=T;var M=i;if(i=[{node:T}],M.length>1)for(var S=1;S.",t);return}var M=i.pop();T!==M.type&&yl.log("Start tag <"+M.type+"> doesnt match end tag <"+T+">. Pretending it did match.",t),a=i[i.length-1].node}var c=ybe.test(t);c?o():(a=e,i=[{node:e}]);for(var h=t.split(t8),f=0;f{"use strict";var Mbe=Qr(),Hv=Nr(),tb=tt(),J0=Vr(),Dbe=U0().isValid;function Sbe(e,t,r){var i=t?tb.nestedProperty(e,t).get()||{}:e,a=i[r||"color"];a&&a._inputArray&&(a=a._inputArray);var n=!1;if(tb.isArrayOrTypedArray(a)){for(var o=0;o=0;i--,a++){var n=e[i];r[a]=[1-n[0],n[1]]}return r}function aN(e,t){t=t||{};for(var r=e.domain,i=e.range,a=i.length,n=new Array(a),o=0;o{"use strict";var oN=(b7(),lt(x7)),kbe=oN.FORMAT_LINK,Cbe=oN.DATE_FORMAT_LINK;function Fbe(e,t){return{valType:"string",dflt:"",editType:"none",description:(t?a8:sN)("hover text",e)+["By default the values are formatted using "+(t?"generic number format":"`"+e+"axis.hoverformat`")+"."].join(" ")}}function a8(e,t){return["Sets the "+e+" formatting rule"+(t?" for `"+t+"`":""),"using d3 formatting mini-languages","which are very similar to those in Python. For numbers, see: "+kbe+"."].join(" ")}function sN(e,t){return a8(e,t)+[" And for dates see: "+Cbe+".","We add two items to d3's date formatter:","*%h* for half of the year as a decimal number as well as","*%{n}f* for fractional seconds","with n digits. For example, *2016-10-13 09:15:23.456* with tickformat","*%H~%M~%S.%2f* would display *09~15~23.46*"].join(" ")}lN.exports={axisHoverFormat:Fbe,descriptionOnlyNumbers:a8,descriptionWithDates:sN}});var vu=X((det,MN)=>{"use strict";var uN=oo(),l1=ec(),TN=Zc().dash,s8=Ca().extendFlat,cN=qi().templatedArray,fet=tc().templateFormatStringDescription,hN=n8().descriptionWithDates,Pbe=(Ji(),lt(ua)).ONEDAY,ac=(xn(),lt(_n)),Ibe=ac.HOUR_PATTERN,Lbe=ac.WEEKDAY_PATTERN,o8={valType:"enumerated",values:["auto","linear","array"],editType:"ticks",impliedEdits:{tick0:void 0,dtick:void 0}},zbe=s8({},o8,{values:o8.values.slice().concat(["sync"])});function fN(e){return{valType:"integer",min:0,dflt:e?5:0,editType:"ticks"}}var dN={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},pN={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},mN={valType:"data_array",editType:"ticks"},vN={valType:"enumerated",values:["outside","inside",""],editType:"ticks"};function gN(e){var t={valType:"number",min:0,editType:"ticks"};return e||(t.dflt=5),t}function yN(e){var t={valType:"number",min:0,editType:"ticks"};return e||(t.dflt=1),t}var _N={valType:"color",dflt:l1.defaultLine,editType:"ticks"},xN={valType:"color",dflt:l1.lightLine,editType:"ticks"};function bN(e){var t={valType:"number",min:0,editType:"ticks"};return e||(t.dflt=1),t}var wN=s8({},TN,{editType:"ticks"}),AN={valType:"boolean",editType:"ticks"};MN.exports={visible:{valType:"boolean",editType:"plot"},color:{valType:"color",dflt:l1.defaultLine,editType:"ticks"},title:{text:{valType:"string",editType:"ticks"},font:uN({editType:"ticks",description:"Sets this axis' title font."}),standoff:{valType:"number",min:0,editType:"ticks"},editType:"ticks"},type:{valType:"enumerated",values:["-","linear","log","date","category","multicategory"],dflt:"-",editType:"calc",_noTemplating:!0},autotypenumbers:{valType:"enumerated",values:["convert types","strict"],dflt:"convert types",editType:"calc"},autorange:{valType:"enumerated",values:[!0,!1,"reversed","min reversed","max reversed","min","max"],dflt:!0,editType:"axrange",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},autorangeoptions:{minallowed:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},maxallowed:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},clipmin:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},clipmax:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},include:{valType:"any",arrayOk:!0,editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},editType:"plot"},rangemode:{valType:"enumerated",values:["normal","tozero","nonnegative"],dflt:"normal",editType:"plot"},range:{valType:"info_array",items:[{valType:"any",editType:"axrange",impliedEdits:{"^autorange":!1},anim:!0},{valType:"any",editType:"axrange",impliedEdits:{"^autorange":!1},anim:!0}],editType:"axrange",impliedEdits:{autorange:!1},anim:!0},minallowed:{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},maxallowed:{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},fixedrange:{valType:"boolean",dflt:!1,editType:"calc"},modebardisable:{valType:"flaglist",flags:["autoscale","zoominout"],extras:["none"],dflt:"none",editType:"modebar"},insiderange:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},scaleanchor:{valType:"enumerated",values:[ac.idRegex.x.toString(),ac.idRegex.y.toString(),!1],editType:"plot"},scaleratio:{valType:"number",min:0,dflt:1,editType:"plot"},constrain:{valType:"enumerated",values:["range","domain"],editType:"plot"},constraintoward:{valType:"enumerated",values:["left","center","right","top","middle","bottom"],editType:"plot"},matches:{valType:"enumerated",values:[ac.idRegex.x.toString(),ac.idRegex.y.toString()],editType:"calc"},rangebreaks:cN("rangebreak",{enabled:{valType:"boolean",dflt:!0,editType:"calc"},bounds:{valType:"info_array",items:[{valType:"any",editType:"calc"},{valType:"any",editType:"calc"}],editType:"calc"},pattern:{valType:"enumerated",values:[Lbe,Ibe,""],editType:"calc"},values:{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"any",editType:"calc"}},dvalue:{valType:"number",editType:"calc",min:0,dflt:Pbe},editType:"calc"}),tickmode:zbe,nticks:fN(),tick0:dN,dtick:pN,ticklabelstep:{valType:"integer",min:1,dflt:1,editType:"ticks"},tickvals:mN,ticktext:{valType:"data_array",editType:"ticks"},ticks:vN,tickson:{valType:"enumerated",values:["labels","boundaries"],dflt:"labels",editType:"ticks"},ticklabelmode:{valType:"enumerated",values:["instant","period"],dflt:"instant",editType:"ticks"},ticklabelposition:{valType:"enumerated",values:["outside","inside","outside top","inside top","outside left","inside left","outside right","inside right","outside bottom","inside bottom"],dflt:"outside",editType:"calc"},ticklabeloverflow:{valType:"enumerated",values:["allow","hide past div","hide past domain"],editType:"calc"},ticklabelshift:{valType:"integer",dflt:0,editType:"ticks"},ticklabelstandoff:{valType:"integer",dflt:0,editType:"ticks"},ticklabelindex:{valType:"integer",arrayOk:!0,editType:"calc"},mirror:{valType:"enumerated",values:[!0,"ticks",!1,"all","allticks"],dflt:!1,editType:"ticks+layoutstyle"},ticklen:gN(),tickwidth:yN(),tickcolor:_N,showticklabels:{valType:"boolean",dflt:!0,editType:"ticks"},labelalias:{valType:"any",dflt:!1,editType:"ticks"},automargin:{valType:"flaglist",flags:["height","width","left","right","top","bottom"],extras:[!0,!1],dflt:!1,editType:"ticks"},showspikes:{valType:"boolean",dflt:!1,editType:"modebar"},spikecolor:{valType:"color",dflt:null,editType:"none"},spikethickness:{valType:"number",dflt:3,editType:"none"},spikedash:s8({},TN,{dflt:"dash",editType:"none"}),spikemode:{valType:"flaglist",flags:["toaxis","across","marker"],dflt:"toaxis",editType:"none"},spikesnap:{valType:"enumerated",values:["data","cursor","hovered data"],dflt:"hovered data",editType:"none"},tickfont:uN({editType:"ticks"}),tickangle:{valType:"angle",dflt:"auto",editType:"ticks"},autotickangles:{valType:"info_array",freeLength:!0,items:{valType:"angle"},dflt:[0,30,90],editType:"ticks"},tickprefix:{valType:"string",dflt:"",editType:"ticks"},showtickprefix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},ticksuffix:{valType:"string",dflt:"",editType:"ticks"},showticksuffix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},showexponent:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},exponentformat:{valType:"enumerated",values:["none","e","E","power","SI","B","SI extended"],dflt:"B",editType:"ticks"},minexponent:{valType:"number",dflt:3,min:0,editType:"ticks"},separatethousands:{valType:"boolean",dflt:!1,editType:"ticks"},tickformat:{valType:"string",dflt:"",editType:"ticks",description:hN("tick label")},tickformatstops:cN("tickformatstop",{enabled:{valType:"boolean",dflt:!0,editType:"ticks"},dtickrange:{valType:"info_array",items:[{valType:"any",editType:"ticks"},{valType:"any",editType:"ticks"}],editType:"ticks"},value:{valType:"string",dflt:"",editType:"ticks"},editType:"ticks"}),hoverformat:{valType:"string",dflt:"",editType:"none",description:hN("hover text")},unifiedhovertitle:{text:{valType:"string",dflt:"",editType:"none"},editType:"none"},showline:{valType:"boolean",dflt:!1,editType:"ticks+layoutstyle"},linecolor:{valType:"color",dflt:l1.defaultLine,editType:"layoutstyle"},linewidth:{valType:"number",min:0,dflt:1,editType:"ticks+layoutstyle"},showgrid:AN,gridcolor:xN,gridwidth:bN(),griddash:wN,zeroline:{valType:"boolean",editType:"ticks"},zerolinecolor:{valType:"color",dflt:l1.defaultLine,editType:"ticks"},zerolinelayer:{valType:"enumerated",values:["above traces","below traces"],dflt:"below traces",editType:"plot"},zerolinewidth:{valType:"number",dflt:1,editType:"ticks"},showdividers:{valType:"boolean",dflt:!0,editType:"ticks"},dividercolor:{valType:"color",dflt:l1.defaultLine,editType:"ticks"},dividerwidth:{valType:"number",dflt:1,editType:"ticks"},anchor:{valType:"enumerated",values:["free",ac.idRegex.x.toString(),ac.idRegex.y.toString()],editType:"plot"},side:{valType:"enumerated",values:["top","bottom","left","right"],editType:"plot"},overlaying:{valType:"enumerated",values:["free",ac.idRegex.x.toString(),ac.idRegex.y.toString()],editType:"plot"},minor:{tickmode:o8,nticks:fN("minor"),tick0:dN,dtick:pN,tickvals:mN,ticks:vN,ticklen:gN("minor"),tickwidth:yN("minor"),tickcolor:_N,gridcolor:xN,gridwidth:bN("minor"),griddash:wN,showgrid:AN,editType:"ticks"},minorloglabels:{valType:"enumerated",values:["small digits","complete","none"],dflt:"small digits",editType:"calc"},layer:{valType:"enumerated",values:["above traces","below traces"],dflt:"above traces",editType:"plot"},domain:{valType:"info_array",items:[{valType:"number",min:0,max:1,editType:"plot"},{valType:"number",min:0,max:1,editType:"plot"}],dflt:[0,1],editType:"plot"},position:{valType:"number",min:0,max:1,dflt:0,editType:"plot"},autoshift:{valType:"boolean",dflt:!1,editType:"plot"},shift:{valType:"number",editType:"plot"},categoryorder:{valType:"enumerated",values:["trace","category ascending","category descending","array","total ascending","total descending","min ascending","min descending","max ascending","max descending","sum ascending","sum descending","mean ascending","mean descending","geometric mean ascending","geometric mean descending","median ascending","median descending"],dflt:"trace",editType:"calc"},categoryarray:{valType:"data_array",editType:"calc"},uirevision:{valType:"any",editType:"none"},editType:"calc"}});var rb=X((pet,SN)=>{"use strict";var ta=vu(),DN=oo(),l8=Ca().extendFlat,Rbe=qs().overrideAll;SN.exports=Rbe({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:ta.linecolor,outlinewidth:ta.linewidth,bordercolor:ta.linecolor,borderwidth:{valType:"number",min:0,dflt:0},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},tickmode:ta.minor.tickmode,nticks:ta.nticks,tick0:ta.tick0,dtick:l8({},ta.dtick,{}),tickvals:ta.tickvals,ticktext:ta.ticktext,ticks:l8({},ta.ticks,{dflt:""}),ticklabeloverflow:l8({},ta.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:ta.ticklen,tickwidth:ta.tickwidth,tickcolor:ta.tickcolor,ticklabelstep:ta.ticklabelstep,showticklabels:ta.showticklabels,labelalias:ta.labelalias,tickfont:DN({description:"Sets the color bar's tick label font"}),tickangle:ta.tickangle,tickformat:ta.tickformat,tickformatstops:ta.tickformatstops,tickprefix:ta.tickprefix,showtickprefix:ta.showtickprefix,ticksuffix:ta.ticksuffix,showticksuffix:ta.showticksuffix,separatethousands:ta.separatethousands,exponentformat:ta.exponentformat,minexponent:ta.minexponent,showexponent:ta.showexponent,title:{text:{valType:"string"},font:DN({description:"Sets this color bar's title font."}),side:{valType:"enumerated",values:["right","top","bottom"]}}},"colorbars","from-root")});var eh=X((vet,kN)=>{"use strict";var Bbe=rb(),qbe=(Hp(),lt(Iv)).counter,Obe=(Px(),lt(Fx)).default,EN=U0().scales,met=Obe(EN);function ib(e){return"`"+e+"`"}kN.exports=function(t,r){t=t||"",r=r||{};var i=r.cLetter||"c",a="onlyIfNumerical"in r?r.onlyIfNumerical:!!t,n="noScale"in r?r.noScale:t==="marker.line",o="showScaleDflt"in r?r.showScaleDflt:i==="z",s=typeof r.colorscaleDflt=="string"?EN[r.colorscaleDflt]:null,l=r.editTypeOverride||"",u=t?t+".":"",c,h;"colorAttr"in r?(c=r.colorAttr,h=r.colorAttr):(c={z:"z",c:"color"}[i],h="in "+ib(u+c));var f=a?" Has an effect only if "+h+" is set to a numerical array.":"",d=i+"auto",p=i+"min",m=i+"max",g=i+"mid",y=ib(u+d),x=ib(u+p),b=ib(u+m),_=x+" and "+b,A={};A[p]=A[m]=void 0;var T={};T[d]=!1;var M={};return c==="color"&&(M.color={valType:"color",arrayOk:!0,editType:l||"style"},r.anim&&(M.color.anim=!0)),M[d]={valType:"boolean",dflt:!0,editType:"calc",impliedEdits:A},M[p]={valType:"number",dflt:null,editType:l||"plot",impliedEdits:T},M[m]={valType:"number",dflt:null,editType:l||"plot",impliedEdits:T},M[g]={valType:"number",dflt:null,editType:"calc",impliedEdits:A},M.colorscale={valType:"colorscale",editType:"calc",dflt:s,impliedEdits:{autocolorscale:!1}},M.autocolorscale={valType:"boolean",dflt:r.autoColorDflt!==!1,editType:"calc",impliedEdits:{colorscale:void 0}},M.reversescale={valType:"boolean",dflt:!1,editType:"plot"},n||(M.showscale={valType:"boolean",dflt:o,editType:"calc"},M.colorbar=Bbe),r.noColorAxis||(M.coloraxis={valType:"subplotid",regex:qbe("coloraxis"),dflt:null,editType:"calc"}),M}});var c8=X((get,CN)=>{"use strict";var Nbe=Ca().extendFlat,Vbe=eh(),u8=U0().scales;CN.exports={editType:"calc",colorscale:{editType:"calc",sequential:{valType:"colorscale",dflt:u8.Reds,editType:"calc"},sequentialminus:{valType:"colorscale",dflt:u8.Blues,editType:"calc"},diverging:{valType:"colorscale",dflt:u8.RdBu,editType:"calc"}},coloraxis:Nbe({_isSubplotObj:!0,editType:"calc"},Vbe("",{colorAttr:"corresponding trace color array(s)",noColorAxis:!0,showScaleDflt:!0}))}});var h8=X((yet,FN)=>{"use strict";var Ube=tt();FN.exports=function(t){return Ube.isPlainObject(t.colorbar)}});var p8=X(d8=>{"use strict";var f8=Nr(),PN=tt(),IN=(Ji(),lt(ua)),Gbe=IN.ONEDAY,jbe=IN.ONEWEEK;d8.dtick=function(e,t){var r=t==="log",i=t==="date",a=t==="category",n=i?Gbe:1;if(!e)return n;if(f8(e))return e=Number(e),e<=0?n:a?Math.max(1,Math.round(e)):i?Math.max(.1,e):e;if(typeof e!="string"||!(i||r))return n;var o=e.charAt(0),s=e.slice(1);return s=f8(s)?Number(s):0,s<=0||!(i&&o==="M"&&s===Math.round(s)||r&&o==="L"||r&&o==="D"&&(s===1||s===2))?n:e};d8.tick0=function(e,t,r,i){if(t==="date")return PN.cleanDate(e,PN.dateTick0(r,i%jbe===0?1:0));if(!(i==="D1"||i==="D2"))return f8(e)?Number(e):0}});var m8=X((xet,zN)=>{"use strict";var LN=p8(),$be=tt().isArrayOrTypedArray,Hbe=hs().isTypedArraySpec,Zbe=hs().decodeTypedArraySpec;zN.exports=function(t,r,i,a,n={}){var o=n.isMinor,s=o?t.minor||{}:t,l=o?r.minor:r,u=o?"minor.":"";function c(_){var A=s[_];return Hbe(A)&&(A=Zbe(A)),A!==void 0?A:(l._template||{})[_]}var h=c("tick0"),f=c("dtick"),d=c("tickvals"),p=c("overlaying"),m=a==="category"||a==="multicategory",g;$be(d)?g="array":f?g="linear":p&&!m?g="sync":g="auto";var y=i(u+"tickmode",g);if(y==="auto"||y==="sync")i(u+"nticks");else if(y==="linear"){var x=l.dtick=LN.dtick(f,a);l.tick0=LN.tick0(h,a,r.calendar,x)}else if(a!=="multicategory"){var b=i(u+"tickvals");b===void 0?l.tickmode="auto":o||i("ticktext")}}});var g8=X((bet,BN)=>{"use strict";var v8=tt(),RN=vu();BN.exports=function(t,r,i,a){var n=a.isMinor,o=n?t.minor||{}:t,s=n?r.minor:r,l=n?RN.minor:RN,u=n?"minor.":"",c=v8.coerce2(o,s,l,"ticklen",n?(r.ticklen||5)*.6:void 0),h=v8.coerce2(o,s,l,"tickwidth",n?r.tickwidth||1:void 0),f=v8.coerce2(o,s,l,"tickcolor",(n?r.tickcolor:void 0)||s.color),d=i(u+"ticks",!n&&a.outerTicks||c||h||f?"outside":"");d||(delete s.ticklen,delete s.tickwidth,delete s.tickcolor)}});var y8=X((wet,qN)=>{"use strict";qN.exports=function(t){var r=["showexponent","showtickprefix","showticksuffix"],i=r.filter(function(n){return t[n]!==void 0}),a=function(n){return t[n]===t[i[0]]};if(i.every(a)||i.length===1)return t[i[0]]}});var _l=X((Aet,ON)=>{"use strict";var ab=tt(),Ybe=qi();ON.exports=function(t,r,i){var a=i.name,n=i.inclusionAttr||"visible",o=r[a],s=ab.isArrayOrTypedArray(t[a])?t[a]:[],l=r[a]=[],u=Ybe.arrayTemplater(r,a,n),c,h;for(c=0;c{"use strict";var _8=tt(),Wbe=Vr().contrast,NN=vu(),Xbe=y8(),Kbe=_l();VN.exports=function(t,r,i,a,n){n||(n={});var o=i("labelalias");_8.isPlainObject(o)||delete r.labelalias;var s=Xbe(t),l=i("showticklabels");if(l){n.noTicklabelshift||i("ticklabelshift"),n.noTicklabelstandoff||i("ticklabelstandoff");var u=n.font||{},c=r.color,h=r.ticklabelposition||"",f=h.indexOf("inside")!==-1?Wbe(n.bgColor):c&&c!==NN.color.dflt?c:u.color;if(_8.coerceFont(i,"tickfont",u,{overrideDflt:{color:f}}),!n.noTicklabelstep&&a!=="multicategory"&&a!=="log"&&i("ticklabelstep"),!n.noAng){var d=i("tickangle");!n.noAutotickangles&&d==="auto"&&i("autotickangles")}if(a!=="category"){var p=i("tickformat");Kbe(t,r,{name:"tickformatstops",inclusionAttr:"enabled",handleItemDefaults:Jbe}),r.tickformatstops.length||delete r.tickformatstops,!n.noExp&&!p&&a!=="date"&&(i("showexponent",s),i("exponentformat"),i("minexponent"),i("separatethousands"))}!n.noMinorloglabels&&a==="log"&&i("minorloglabels")}};function Jbe(e,t){function r(a,n){return _8.coerce(e,t,NN.tickformatstops,a,n)}var i=r("enabled");i&&(r("dtickrange"),r("value"))}});var b8=X((Met,UN)=>{"use strict";var Qbe=y8();UN.exports=function(t,r,i,a,n){n||(n={});var o=n.tickSuffixDflt,s=Qbe(t),l=i("tickprefix");l&&i("showtickprefix",s);var u=i("ticksuffix",o);u&&i("showticksuffix",s)}});var w8=X((Det,GN)=>{"use strict";var uf=tt(),e3e=qi(),t3e=m8(),r3e=g8(),i3e=x8(),a3e=b8(),n3e=rb();GN.exports=function(t,r,i){var a=e3e.newContainer(r,"colorbar"),n=t.colorbar||{};function o(I,B){return uf.coerce(n,a,n3e,I,B)}var s=i.margin||{t:0,b:0,l:0,r:0},l=i.width-s.l-s.r,u=i.height-s.t-s.b,c=o("orientation"),h=c==="v",f=o("thicknessmode");o("thickness",f==="fraction"?30/(h?l:u):30);var d=o("lenmode");o("len",d==="fraction"?1:h?u:l);var p=o("yref"),m=o("xref"),g=p==="paper",y=m==="paper",x,b,_,A="left";h?(_="middle",A=y?"left":"right",x=y?1.02:1,b=.5):(_=g?"bottom":"top",A="center",x=.5,b=g?1.02:1),uf.coerce(n,a,{x:{valType:"number",min:y?-2:0,max:y?3:1,dflt:x}},"x"),uf.coerce(n,a,{y:{valType:"number",min:g?-2:0,max:g?3:1,dflt:b}},"y"),o("xanchor",A),o("xpad"),o("yanchor",_),o("ypad"),uf.noneOrAll(n,a,["x","y"]),o("outlinecolor"),o("outlinewidth"),o("bordercolor"),o("borderwidth"),o("bgcolor");var T=uf.coerce(n,a,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:h?["outside","inside","outside top","inside top","outside bottom","inside bottom"]:["outside","inside","outside left","inside left","outside right","inside right"]}},"ticklabelposition");o("ticklabeloverflow",T.indexOf("inside")!==-1?"hide past domain":"hide past div"),t3e(n,a,o,"linear");var M=i.font,S={noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0,outerTicks:!1,font:M};T.indexOf("inside")!==-1&&(S.bgColor="black"),a3e(n,a,o,"linear",S),i3e(n,a,o,"linear",S),r3e(n,a,o,"linear",S),o("title.text",i._dfltTitle.colorbar);var k=a.showticklabels?a.tickfont:M,P=uf.extendFlat({},M,{family:k.family,size:uf.bigFont(k.size)});uf.coerceFont(o,"title.font",P),o("title.side",h?"top":"right")}});var Q0=X((Eet,HN)=>{"use strict";var jN=Nr(),T8=tt(),o3e=h8(),s3e=w8(),$N=U0().isValid,l3e=mr().traceIs;function A8(e,t){var r=t.slice(0,t.length-1);return t?T8.nestedProperty(e,r).get()||{}:e}HN.exports=function e(t,r,i,a,n){var o=n.prefix,s=n.cLetter,l="_module"in r,u=A8(t,o),c=A8(r,o),h=A8(r._template||{},o)||{},f=function(){return delete t.coloraxis,delete r.coloraxis,e(t,r,i,a,n)};if(l){var d=i._colorAxes||{},p=a(o+"coloraxis");if(p){var m=l3e(r,"contour")&&T8.nestedProperty(r,"contours.coloring").get()||"heatmap",g=d[p];g?(g[2].push(f),g[0]!==m&&(g[0]=!1,T8.warn(["Ignoring coloraxis:",p,"setting","as it is linked to incompatible colorscales."].join(" ")))):d[p]=[m,r,[f]];return}}var y=u[s+"min"],x=u[s+"max"],b=jN(y)&&jN(x)&&y{"use strict";var ZN=tt(),u3e=qi(),YN=c8(),c3e=Q0();WN.exports=function(t,r){function i(h,f){return ZN.coerce(t,r,YN,h,f)}i("colorscale.sequential"),i("colorscale.sequentialminus"),i("colorscale.diverging");var a=r._colorAxes,n,o;function s(h,f){return ZN.coerce(n,o,YN.coloraxis,h,f)}for(var l in a){var u=a[l];if(u[0])n=t[l]||{},o=u3e.newContainer(r,l,"coloraxis"),o._name=l,c3e(n,o,r,s,{prefix:"",cLetter:"c"});else{for(var c=0;c{"use strict";var h3e=tt(),f3e=ic().hasColorscale,d3e=ic().extractOpts;KN.exports=function(t,r){function i(c,h){var f=c["_"+h];f!==void 0&&(c[h]=f)}function a(c,h){var f=h.container?h3e.nestedProperty(c,h.container).get():c;if(f)if(f.coloraxis)f._colorAx=r[f.coloraxis];else{var d=d3e(f),p=d.auto;(p||d.min===void 0)&&i(f,h.min),(p||d.max===void 0)&&i(f,h.max),d.autocolorscale&&i(f,"colorscale")}}for(var n=0;n{"use strict";var QN=Nr(),M8=tt(),p3e=ic().extractOpts;eV.exports=function(t,r,i){var a=t._fullLayout,n=i.vals,o=i.containerStr,s=o?M8.nestedProperty(r,o).get():r,l=p3e(s),u=l.auto!==!1,c=l.min,h=l.max,f=l.mid,d=function(){return M8.aggNums(Math.min,null,n)},p=function(){return M8.aggNums(Math.max,null,n)};if(c===void 0?c=d():u&&(s._colorAx&&QN(c)?c=Math.min(c,d()):c=d()),h===void 0?h=p():u&&(s._colorAx&&QN(h)?h=Math.max(h,p()):h=p()),u&&f!==void 0&&(h-f>f-c?c=f-(h-f):h-f=0?m=a.colorscale.sequential:m=a.colorscale.sequentialminus,l._sync("colorscale",m)}}});var c1=X((Pet,tV)=>{"use strict";var nb=U0(),u1=ic();tV.exports={moduleType:"component",name:"colorscale",attributes:eh(),layoutAttributes:c8(),supplyLayoutDefaults:XN(),handleDefaults:Q0(),crossTraceDefaults:JN(),calc:Zv(),scales:nb.scales,defaultScale:nb.defaultScale,getScale:nb.get,isValidScale:nb.isValid,hasColorscale:u1.hasColorscale,extractOpts:u1.extractOpts,extractScale:u1.extractScale,flipScale:u1.flipScale,makeColorScaleFunc:u1.makeColorScaleFunc,makeColorScaleFuncFromTrace:u1.makeColorScaleFuncFromTrace}});var So=X((Iet,iV)=>{"use strict";var rV=tt(),m3e=hs().isTypedArraySpec;iV.exports={hasLines:function(e){return e.visible&&e.mode&&e.mode.indexOf("lines")!==-1},hasMarkers:function(e){return e.visible&&(e.mode&&e.mode.indexOf("markers")!==-1||e.type==="splom")},hasText:function(e){return e.visible&&e.mode&&e.mode.indexOf("text")!==-1},isBubble:function(e){var t=e.marker;return rV.isPlainObject(t)&&(rV.isArrayOrTypedArray(t.size)||m3e(t.size))}}});var D8=X((Let,aV)=>{"use strict";var v3e=Nr();aV.exports=function(t,r){r||(r=2);var i=t.marker,a=i.sizeref||1,n=i.sizemin||0,o=i.sizemode==="area"?function(s){return Math.sqrt(s/a)}:function(s){return s/a};return function(s){var l=o(s/r);return v3e(l)&&l>0?Math.max(l,n):0}}});var nc=X(jn=>{"use strict";var Yv=tt();jn.getSubplot=function(e){return e.subplot||e.xaxis+e.yaxis||e.geo};jn.isTraceInSubplots=function(e,t){if(e.type==="splom"){for(var r=e.xaxes||[],i=e.yaxes||[],a=0;a=0&&r.index{var S8={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},x3e=/([astvzqmhlc])([^astvzqmhlc]*)/gi,b3e=/-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/gi;function w3e(e){let t=[];return e.replace(x3e,(r,i,a)=>{let n=i.toLowerCase(),o=i,s=A3e(a);for(n==="m"&&s.length>2&&(t.push([o,...s.splice(0,2)]),n="l",o=o==="m"?"l":"L");;){if(s.length===S8[n])return t.push([o,...s]),"";if(s.length{"use strict";var T3e=E8(),gt=function(e,t){return t?Math.round(e*(t=Math.pow(10,t)))/t:Math.round(e)},gr="M0,0Z",lV=Math.sqrt(2),cf=Math.sqrt(3),k8=Math.PI,C8=Math.cos,F8=Math.sin;dV.exports={circle:{n:0,f:function(e,t,r){if(yr(t))return gr;var i=gt(e,2),a="M"+i+",0A"+i+","+i+" 0 1,1 0,-"+i+"A"+i+","+i+" 0 0,1 "+i+",0Z";return r?_r(t,r,a):a}},square:{n:1,f:function(e,t,r){if(yr(t))return gr;var i=gt(e,2);return _r(t,r,"M"+i+","+i+"H-"+i+"V-"+i+"H"+i+"Z")}},diamond:{n:2,f:function(e,t,r){if(yr(t))return gr;var i=gt(e*1.3,2);return _r(t,r,"M"+i+",0L0,"+i+"L-"+i+",0L0,-"+i+"Z")}},cross:{n:3,f:function(e,t,r){if(yr(t))return gr;var i=gt(e*.4,2),a=gt(e*1.2,2);return _r(t,r,"M"+a+","+i+"H"+i+"V"+a+"H-"+i+"V"+i+"H-"+a+"V-"+i+"H-"+i+"V-"+a+"H"+i+"V-"+i+"H"+a+"Z")}},x:{n:4,f:function(e,t,r){if(yr(t))return gr;var i=gt(e*.8/lV,2),a="l"+i+","+i,n="l"+i+",-"+i,o="l-"+i+",-"+i,s="l-"+i+","+i;return _r(t,r,"M0,"+i+a+n+o+n+o+s+o+s+a+s+a+"Z")}},"triangle-up":{n:5,f:function(e,t,r){if(yr(t))return gr;var i=gt(e*2/cf,2),a=gt(e/2,2),n=gt(e,2);return _r(t,r,"M-"+i+","+a+"H"+i+"L0,-"+n+"Z")}},"triangle-down":{n:6,f:function(e,t,r){if(yr(t))return gr;var i=gt(e*2/cf,2),a=gt(e/2,2),n=gt(e,2);return _r(t,r,"M-"+i+",-"+a+"H"+i+"L0,"+n+"Z")}},"triangle-left":{n:7,f:function(e,t,r){if(yr(t))return gr;var i=gt(e*2/cf,2),a=gt(e/2,2),n=gt(e,2);return _r(t,r,"M"+a+",-"+i+"V"+i+"L-"+n+",0Z")}},"triangle-right":{n:8,f:function(e,t,r){if(yr(t))return gr;var i=gt(e*2/cf,2),a=gt(e/2,2),n=gt(e,2);return _r(t,r,"M-"+a+",-"+i+"V"+i+"L"+n+",0Z")}},"triangle-ne":{n:9,f:function(e,t,r){if(yr(t))return gr;var i=gt(e*.6,2),a=gt(e*1.2,2);return _r(t,r,"M-"+a+",-"+i+"H"+i+"V"+a+"Z")}},"triangle-se":{n:10,f:function(e,t,r){if(yr(t))return gr;var i=gt(e*.6,2),a=gt(e*1.2,2);return _r(t,r,"M"+i+",-"+a+"V"+i+"H-"+a+"Z")}},"triangle-sw":{n:11,f:function(e,t,r){if(yr(t))return gr;var i=gt(e*.6,2),a=gt(e*1.2,2);return _r(t,r,"M"+a+","+i+"H-"+i+"V-"+a+"Z")}},"triangle-nw":{n:12,f:function(e,t,r){if(yr(t))return gr;var i=gt(e*.6,2),a=gt(e*1.2,2);return _r(t,r,"M-"+i+","+a+"V-"+i+"H"+a+"Z")}},pentagon:{n:13,f:function(e,t,r){if(yr(t))return gr;var i=gt(e*.951,2),a=gt(e*.588,2),n=gt(-e,2),o=gt(e*-.309,2),s=gt(e*.809,2);return _r(t,r,"M"+i+","+o+"L"+a+","+s+"H-"+a+"L-"+i+","+o+"L0,"+n+"Z")}},hexagon:{n:14,f:function(e,t,r){if(yr(t))return gr;var i=gt(e,2),a=gt(e/2,2),n=gt(e*cf/2,2);return _r(t,r,"M"+n+",-"+a+"V"+a+"L0,"+i+"L-"+n+","+a+"V-"+a+"L0,-"+i+"Z")}},hexagon2:{n:15,f:function(e,t,r){if(yr(t))return gr;var i=gt(e,2),a=gt(e/2,2),n=gt(e*cf/2,2);return _r(t,r,"M-"+a+","+n+"H"+a+"L"+i+",0L"+a+",-"+n+"H-"+a+"L-"+i+",0Z")}},octagon:{n:16,f:function(e,t,r){if(yr(t))return gr;var i=gt(e*.924,2),a=gt(e*.383,2);return _r(t,r,"M-"+a+",-"+i+"H"+a+"L"+i+",-"+a+"V"+a+"L"+a+","+i+"H-"+a+"L-"+i+","+a+"V-"+a+"Z")}},star:{n:17,f:function(e,t,r){if(yr(t))return gr;var i=e*1.4,a=gt(i*.225,2),n=gt(i*.951,2),o=gt(i*.363,2),s=gt(i*.588,2),l=gt(-i,2),u=gt(i*-.309,2),c=gt(i*.118,2),h=gt(i*.809,2),f=gt(i*.382,2);return _r(t,r,"M"+a+","+u+"H"+n+"L"+o+","+c+"L"+s+","+h+"L0,"+f+"L-"+s+","+h+"L-"+o+","+c+"L-"+n+","+u+"H-"+a+"L0,"+l+"Z")}},hexagram:{n:18,f:function(e,t,r){if(yr(t))return gr;var i=gt(e*.66,2),a=gt(e*.38,2),n=gt(e*.76,2);return _r(t,r,"M-"+n+",0l-"+a+",-"+i+"h"+n+"l"+a+",-"+i+"l"+a+","+i+"h"+n+"l-"+a+","+i+"l"+a+","+i+"h-"+n+"l-"+a+","+i+"l-"+a+",-"+i+"h-"+n+"Z")}},"star-triangle-up":{n:19,f:function(e,t,r){if(yr(t))return gr;var i=gt(e*cf*.8,2),a=gt(e*.8,2),n=gt(e*1.6,2),o=gt(e*4,2),s="A "+o+","+o+" 0 0 1 ";return _r(t,r,"M-"+i+","+a+s+i+","+a+s+"0,-"+n+s+"-"+i+","+a+"Z")}},"star-triangle-down":{n:20,f:function(e,t,r){if(yr(t))return gr;var i=gt(e*cf*.8,2),a=gt(e*.8,2),n=gt(e*1.6,2),o=gt(e*4,2),s="A "+o+","+o+" 0 0 1 ";return _r(t,r,"M"+i+",-"+a+s+"-"+i+",-"+a+s+"0,"+n+s+i+",-"+a+"Z")}},"star-square":{n:21,f:function(e,t,r){if(yr(t))return gr;var i=gt(e*1.1,2),a=gt(e*2,2),n="A "+a+","+a+" 0 0 1 ";return _r(t,r,"M-"+i+",-"+i+n+"-"+i+","+i+n+i+","+i+n+i+",-"+i+n+"-"+i+",-"+i+"Z")}},"star-diamond":{n:22,f:function(e,t,r){if(yr(t))return gr;var i=gt(e*1.4,2),a=gt(e*1.9,2),n="A "+a+","+a+" 0 0 1 ";return _r(t,r,"M-"+i+",0"+n+"0,"+i+n+i+",0"+n+"0,-"+i+n+"-"+i+",0Z")}},"diamond-tall":{n:23,f:function(e,t,r){if(yr(t))return gr;var i=gt(e*.7,2),a=gt(e*1.4,2);return _r(t,r,"M0,"+a+"L"+i+",0L0,-"+a+"L-"+i+",0Z")}},"diamond-wide":{n:24,f:function(e,t,r){if(yr(t))return gr;var i=gt(e*1.4,2),a=gt(e*.7,2);return _r(t,r,"M0,"+a+"L"+i+",0L0,-"+a+"L-"+i+",0Z")}},hourglass:{n:25,f:function(e,t,r){if(yr(t))return gr;var i=gt(e,2);return _r(t,r,"M"+i+","+i+"H-"+i+"L"+i+",-"+i+"H-"+i+"Z")},noDot:!0},bowtie:{n:26,f:function(e,t,r){if(yr(t))return gr;var i=gt(e,2);return _r(t,r,"M"+i+","+i+"V-"+i+"L-"+i+","+i+"V-"+i+"Z")},noDot:!0},"circle-cross":{n:27,f:function(e,t,r){if(yr(t))return gr;var i=gt(e,2);return _r(t,r,"M0,"+i+"V-"+i+"M"+i+",0H-"+i+"M"+i+",0A"+i+","+i+" 0 1,1 0,-"+i+"A"+i+","+i+" 0 0,1 "+i+",0Z")},needLine:!0,noDot:!0},"circle-x":{n:28,f:function(e,t,r){if(yr(t))return gr;var i=gt(e,2),a=gt(e/lV,2);return _r(t,r,"M"+a+","+a+"L-"+a+",-"+a+"M"+a+",-"+a+"L-"+a+","+a+"M"+i+",0A"+i+","+i+" 0 1,1 0,-"+i+"A"+i+","+i+" 0 0,1 "+i+",0Z")},needLine:!0,noDot:!0},"square-cross":{n:29,f:function(e,t,r){if(yr(t))return gr;var i=gt(e,2);return _r(t,r,"M0,"+i+"V-"+i+"M"+i+",0H-"+i+"M"+i+","+i+"H-"+i+"V-"+i+"H"+i+"Z")},needLine:!0,noDot:!0},"square-x":{n:30,f:function(e,t,r){if(yr(t))return gr;var i=gt(e,2);return _r(t,r,"M"+i+","+i+"L-"+i+",-"+i+"M"+i+",-"+i+"L-"+i+","+i+"M"+i+","+i+"H-"+i+"V-"+i+"H"+i+"Z")},needLine:!0,noDot:!0},"diamond-cross":{n:31,f:function(e,t,r){if(yr(t))return gr;var i=gt(e*1.3,2);return _r(t,r,"M"+i+",0L0,"+i+"L-"+i+",0L0,-"+i+"ZM0,-"+i+"V"+i+"M-"+i+",0H"+i)},needLine:!0,noDot:!0},"diamond-x":{n:32,f:function(e,t,r){if(yr(t))return gr;var i=gt(e*1.3,2),a=gt(e*.65,2);return _r(t,r,"M"+i+",0L0,"+i+"L-"+i+",0L0,-"+i+"ZM-"+a+",-"+a+"L"+a+","+a+"M-"+a+","+a+"L"+a+",-"+a)},needLine:!0,noDot:!0},"cross-thin":{n:33,f:function(e,t,r){if(yr(t))return gr;var i=gt(e*1.4,2);return _r(t,r,"M0,"+i+"V-"+i+"M"+i+",0H-"+i)},needLine:!0,noDot:!0,noFill:!0},"x-thin":{n:34,f:function(e,t,r){if(yr(t))return gr;var i=gt(e,2);return _r(t,r,"M"+i+","+i+"L-"+i+",-"+i+"M"+i+",-"+i+"L-"+i+","+i)},needLine:!0,noDot:!0,noFill:!0},asterisk:{n:35,f:function(e,t,r){if(yr(t))return gr;var i=gt(e*1.2,2),a=gt(e*.85,2);return _r(t,r,"M0,"+i+"V-"+i+"M"+i+",0H-"+i+"M"+a+","+a+"L-"+a+",-"+a+"M"+a+",-"+a+"L-"+a+","+a)},needLine:!0,noDot:!0,noFill:!0},hash:{n:36,f:function(e,t,r){if(yr(t))return gr;var i=gt(e/2,2),a=gt(e,2);return _r(t,r,"M"+i+","+a+"V-"+a+"M"+(i-a)+",-"+a+"V"+a+"M"+a+","+i+"H-"+a+"M-"+a+","+(i-a)+"H"+a)},needLine:!0,noFill:!0},"y-up":{n:37,f:function(e,t,r){if(yr(t))return gr;var i=gt(e*1.2,2),a=gt(e*1.6,2),n=gt(e*.8,2);return _r(t,r,"M-"+i+","+n+"L0,0M"+i+","+n+"L0,0M0,-"+a+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-down":{n:38,f:function(e,t,r){if(yr(t))return gr;var i=gt(e*1.2,2),a=gt(e*1.6,2),n=gt(e*.8,2);return _r(t,r,"M-"+i+",-"+n+"L0,0M"+i+",-"+n+"L0,0M0,"+a+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-left":{n:39,f:function(e,t,r){if(yr(t))return gr;var i=gt(e*1.2,2),a=gt(e*1.6,2),n=gt(e*.8,2);return _r(t,r,"M"+n+","+i+"L0,0M"+n+",-"+i+"L0,0M-"+a+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-right":{n:40,f:function(e,t,r){if(yr(t))return gr;var i=gt(e*1.2,2),a=gt(e*1.6,2),n=gt(e*.8,2);return _r(t,r,"M-"+n+","+i+"L0,0M-"+n+",-"+i+"L0,0M"+a+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"line-ew":{n:41,f:function(e,t,r){if(yr(t))return gr;var i=gt(e*1.4,2);return _r(t,r,"M"+i+",0H-"+i)},needLine:!0,noDot:!0,noFill:!0},"line-ns":{n:42,f:function(e,t,r){if(yr(t))return gr;var i=gt(e*1.4,2);return _r(t,r,"M0,"+i+"V-"+i)},needLine:!0,noDot:!0,noFill:!0},"line-ne":{n:43,f:function(e,t,r){if(yr(t))return gr;var i=gt(e,2);return _r(t,r,"M"+i+",-"+i+"L-"+i+","+i)},needLine:!0,noDot:!0,noFill:!0},"line-nw":{n:44,f:function(e,t,r){if(yr(t))return gr;var i=gt(e,2);return _r(t,r,"M"+i+","+i+"L-"+i+",-"+i)},needLine:!0,noDot:!0,noFill:!0},"arrow-up":{n:45,f:function(e,t,r){if(yr(t))return gr;var i=gt(e,2),a=gt(e*2,2);return _r(t,r,"M0,0L-"+i+","+a+"H"+i+"Z")},backoff:1,noDot:!0},"arrow-down":{n:46,f:function(e,t,r){if(yr(t))return gr;var i=gt(e,2),a=gt(e*2,2);return _r(t,r,"M0,0L-"+i+",-"+a+"H"+i+"Z")},noDot:!0},"arrow-left":{n:47,f:function(e,t,r){if(yr(t))return gr;var i=gt(e*2,2),a=gt(e,2);return _r(t,r,"M0,0L"+i+",-"+a+"V"+a+"Z")},noDot:!0},"arrow-right":{n:48,f:function(e,t,r){if(yr(t))return gr;var i=gt(e*2,2),a=gt(e,2);return _r(t,r,"M0,0L-"+i+",-"+a+"V"+a+"Z")},noDot:!0},"arrow-bar-up":{n:49,f:function(e,t,r){if(yr(t))return gr;var i=gt(e,2),a=gt(e*2,2);return _r(t,r,"M-"+i+",0H"+i+"M0,0L-"+i+","+a+"H"+i+"Z")},backoff:1,needLine:!0,noDot:!0},"arrow-bar-down":{n:50,f:function(e,t,r){if(yr(t))return gr;var i=gt(e,2),a=gt(e*2,2);return _r(t,r,"M-"+i+",0H"+i+"M0,0L-"+i+",-"+a+"H"+i+"Z")},needLine:!0,noDot:!0},"arrow-bar-left":{n:51,f:function(e,t,r){if(yr(t))return gr;var i=gt(e*2,2),a=gt(e,2);return _r(t,r,"M0,-"+a+"V"+a+"M0,0L"+i+",-"+a+"V"+a+"Z")},needLine:!0,noDot:!0},"arrow-bar-right":{n:52,f:function(e,t,r){if(yr(t))return gr;var i=gt(e*2,2),a=gt(e,2);return _r(t,r,"M0,-"+a+"V"+a+"M0,0L-"+i+",-"+a+"V"+a+"Z")},needLine:!0,noDot:!0},arrow:{n:53,f:function(e,t,r){if(yr(t))return gr;var i=k8/2.5,a=2*e*C8(i),n=2*e*F8(i);return _r(t,r,"M0,0L"+-a+","+n+"L"+a+","+n+"Z")},backoff:.9,noDot:!0},"arrow-wide":{n:54,f:function(e,t,r){if(yr(t))return gr;var i=k8/4,a=2*e*C8(i),n=2*e*F8(i);return _r(t,r,"M0,0L"+-a+","+n+"A "+2*e+","+2*e+" 0 0 1 "+a+","+n+"Z")},backoff:.4,noDot:!0}};function yr(e){return e===null}var uV,cV,hV,fV;function _r(e,t,r){if((!e||e%360===0)&&!t)return r;if(hV===e&&fV===t&&uV===r)return cV;hV=e,fV=t,uV=r;function i(g,y){var x=C8(g),b=F8(g),_=y[0],A=y[1]+(t||0);return[_*x-A*b,_*b+A*x]}for(var a=e/180*k8,n=0,o=0,s=T3e(r),l="",u=0;u{"use strict";var wn=Qr(),_i=tt(),M3e=_i.numberFormat,hf=Nr(),sb=mr(),hn=Vr(),D3e=c1(),Xv=_i.strTranslate,lb=cn(),S3e=(lf(),lt(sf)),E3e=(uo(),lt(lo)),k3e=E3e.LINE_SPACING,TV=(gx(),lt(vx)).DESELECTDIM,C3e=So(),F3e=D8(),P3e=nc().appendArrayPointValue,Mt={};LV.exports=Mt;Mt.font=function(e,t){var r=t.variant,i=t.style,a=t.weight,n=t.color,o=t.size,s=t.family,l=t.shadow,u=t.lineposition,c=t.textcase;s&&e.style("font-family",s),o+1&&e.style("font-size",o+"px"),n&&e.call(hn.fill,n),a&&e.style("font-weight",a),i&&e.style("font-style",i),r&&e.style("font-variant",r),c&&e.style("text-transform",P8(L3e(c))),l&&e.style("text-shadow",l==="auto"?lb.makeTextShadow(hn.contrast(n)):P8(l)),u&&e.style("text-decoration-line",P8(z3e(u)))};function P8(e){return e==="none"?void 0:e}var I3e={normal:"none",lower:"lowercase",upper:"uppercase","word caps":"capitalize"};function L3e(e){return I3e[e]}function z3e(e){return e.replace("under","underline").replace("over","overline").replace("through","line-through").split("+").join(" ")}Mt.setPosition=function(e,t,r){e.attr("x",t).attr("y",r)};Mt.setSize=function(e,t,r){e.attr("width",t).attr("height",r)};Mt.setRect=function(e,t,r,i,a){e.call(Mt.setPosition,t,r).call(Mt.setSize,i,a)};Mt.translatePoint=function(e,t,r,i){var a=r.c2p(e.x),n=i.c2p(e.y);if(hf(a)&&hf(n)&&t.node())t.node().nodeName==="text"?t.attr("x",a).attr("y",n):t.attr("transform",Xv(a,n));else return!1;return!0};Mt.translatePoints=function(e,t,r){e.each(function(i){var a=wn.select(this);Mt.translatePoint(i,a,t,r)})};Mt.hideOutsideRangePoint=function(e,t,r,i,a,n){t.attr("display",r.isPtWithinRange(e,a)&&i.isPtWithinRange(e,n)?null:"none")};Mt.hideOutsideRangePoints=function(e,t){if(t._hasClipOnAxisFalse){var r=t.xaxis,i=t.yaxis;e.each(function(a){var n=a[0].trace,o=n.xcalendar,s=n.ycalendar,l=sb.traceIs(n,"bar-like")?".bartext":".point,.textpoint";e.selectAll(l).each(function(u){Mt.hideOutsideRangePoint(u,wn.select(this),r,i,o,s)})})}};Mt.crispRound=function(e,t,r){return!t||!hf(t)?r||0:e._context.staticPlot?t:t<1?1:Math.round(t)};Mt.singleLineStyle=function(e,t,r,i,a){t.style("fill","none");var n=(((e||[])[0]||{}).trace||{}).line||{},o=r||n.width||0,s=a||n.dash||"";hn.stroke(t,i||n.color),Mt.dashLine(t,s,o)};Mt.lineGroupStyle=function(e,t,r,i){e.style("fill","none").each(function(a){var n=(((a||[])[0]||{}).trace||{}).line||{},o=t||n.width||0,s=i||n.dash||"";wn.select(this).call(hn.stroke,r||n.color).call(Mt.dashLine,s,o)})};Mt.dashLine=function(e,t,r){r=+r||0,t=Mt.dashStyle(t,r),e.style({"stroke-dasharray":t,"stroke-width":r+"px"})};Mt.dashStyle=function(e,t){t=+t||1;var r=Math.max(t,3);return e==="solid"?e="":e==="dot"?e=r+"px,"+r+"px":e==="dash"?e=3*r+"px,"+3*r+"px":e==="longdash"?e=5*r+"px,"+5*r+"px":e==="dashdot"?e=3*r+"px,"+r+"px,"+r+"px,"+r+"px":e==="longdashdot"&&(e=5*r+"px,"+2*r+"px,"+r+"px,"+2*r+"px"),e};function MV(e,t,r,i){var a=t.fillpattern,n=t.fillgradient,o=Mt.getPatternAttr,s=a&&(o(a.shape,0,"")||o(a.path,0,""));if(s){var l=o(a.bgcolor,0,null),u=o(a.fgcolor,0,null),c=a.fgopacity,h=o(a.size,0,8),f=o(a.solidity,0,.3),d=t.uid;Mt.pattern(e,"point",r,d,s,h,f,void 0,a.fillmode,l,u,c)}else if(n&&n.type!=="none"){var p=n.type,m="scatterfill-"+t.uid;if(i&&(m="legendfill-"+t.uid),!i&&(n.start!==void 0||n.stop!==void 0)){var g,y;p==="horizontal"?(g={x:n.start,y:0},y={x:n.stop,y:0}):p==="vertical"&&(g={x:0,y:n.start},y={x:0,y:n.stop}),g.x=t._xA.c2p(g.x===void 0?t._extremes.x.min[0].val:g.x,!0),g.y=t._yA.c2p(g.y===void 0?t._extremes.y.min[0].val:g.y,!0),y.x=t._xA.c2p(y.x===void 0?t._extremes.x.max[0].val:y.x,!0),y.y=t._yA.c2p(y.y===void 0?t._extremes.y.max[0].val:y.y,!0),e.call(EV,r,m,"linear",n.colorscale,"fill",g,y,!0,!1)}else p==="horizontal"&&(p=p+"reversed"),e.call(Mt.gradient,r,m,p,n.colorscale,"fill")}else t.fillcolor&&e.call(hn.fill,t.fillcolor)}Mt.singleFillStyle=function(e,t){var r=wn.select(e.node()),i=r.data(),a=((i[0]||[])[0]||{}).trace||{};MV(e,a,t,!1)};Mt.fillGroupStyle=function(e,t,r){e.style("stroke-width",0).each(function(i){var a=wn.select(this);i[0].trace&&MV(a,i[0].trace,t,r)})};var mV=pV();Mt.symbolNames=[];Mt.symbolFuncs=[];Mt.symbolBackOffs=[];Mt.symbolNeedLines={};Mt.symbolNoDot={};Mt.symbolNoFill={};Mt.symbolList=[];Object.keys(mV).forEach(function(e){var t=mV[e],r=t.n;Mt.symbolList.push(r,String(r),e,r+100,String(r+100),e+"-open"),Mt.symbolNames[r]=e,Mt.symbolFuncs[r]=t.f,Mt.symbolBackOffs[r]=t.backoff||0,t.needLine&&(Mt.symbolNeedLines[r]=!0),t.noDot?Mt.symbolNoDot[r]=!0:Mt.symbolList.push(r+200,String(r+200),e+"-dot",r+300,String(r+300),e+"-open-dot"),t.noFill&&(Mt.symbolNoFill[r]=!0)});var R3e=Mt.symbolNames.length,B3e="M0,0.5L0.5,0L0,-0.5L-0.5,0Z";Mt.symbolNumber=function(e){if(hf(e))e=+e;else if(typeof e=="string"){var t=0;e.indexOf("-open")>0&&(t=100,e=e.replace("-open","")),e.indexOf("-dot")>0&&(t+=200,e=e.replace("-dot","")),e=Mt.symbolNames.indexOf(e),e>=0&&(e+=t)}return e%100>=R3e||e>=400?0:Math.floor(Math.max(e,0))};function DV(e,t,r,i){var a=e%100;return Mt.symbolFuncs[a](t,r,i)+(e>=200?B3e:"")}var vV=M3e("~f"),SV={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}};Mt.gradient=function(e,t,r,i,a,n){var o=SV[i];return EV(e,t,r,o.type,a,n,o.start,o.stop,!1,o.reversed)};function EV(e,t,r,i,a,n,o,s,l,u){var c=a.length,h;i==="linear"?h={node:"linearGradient",attrs:{x1:o.x,y1:o.y,x2:s.x,y2:s.y,gradientUnits:l?"userSpaceOnUse":"objectBoundingBox"},reversed:u}:i==="radial"&&(h={node:"radialGradient",reversed:u});for(var f=new Array(c),d=0;d=0&&e.i===void 0&&(e.i=n.i),t.style("opacity",i.selectedOpacityFn?i.selectedOpacityFn(e):e.mo===void 0?o.opacity:e.mo),i.ms2mrc){var l;e.ms==="various"||o.size==="various"?l=3:l=i.ms2mrc(e.ms),e.mrc=l,i.selectedSizeFn&&(l=e.mrc=i.selectedSizeFn(e));var u=Mt.symbolNumber(e.mx||o.symbol)||0;e.om=u%200>=100;var c=O8(e,r),h=q8(e,r);t.attr("d",DV(u,l,c,h))}var f=!1,d,p,m;if(e.so)m=s.outlierwidth,p=s.outliercolor,d=o.outliercolor;else{var g=(s||{}).width;m=(e.mlw+1||g+1||(e.trace?(e.trace.marker.line||{}).width:0)+1)-1||0,"mlc"in e?p=e.mlcc=i.lineScale(e.mlc):_i.isArrayOrTypedArray(s.color)?p=hn.defaultLine:p=s.color,_i.isArrayOrTypedArray(o.color)&&(d=hn.defaultLine,f=!0),"mc"in e?d=e.mcc=i.markerScale(e.mc):d=o.color||o.colors||"rgba(0,0,0,0)",i.selectedColorFn&&(d=i.selectedColorFn(e))}let y=e.mld||(s||{}).dash;if(y&&Mt.dashLine(t,y,m),e.om)t.call(hn.stroke,d).style({"stroke-width":(m||1)+"px",fill:"none"});else{t.style("stroke-width",(e.isBlank?0:m)+"px");var x=o.gradient,b=e.mgt;b?f=!0:b=x&&x.type,_i.isArrayOrTypedArray(b)&&(b=b[0],SV[b]||(b=0));var _=o.pattern,A=Mt.getPatternAttr,T=_&&(A(_.shape,e.i,"")||A(_.path,e.i,""));if(b&&b!=="none"){var M=e.mgc;M?f=!0:M=x.color;var S=r.uid;f&&(S+="-"+e.i),Mt.gradient(t,a,S,b,[[0,M],[1,d]],"fill")}else if(T){var k=!1,P=_.fgcolor;!P&&n&&n.color&&(P=n.color,k=!0);var I=A(P,e.i,n&&n.color||null),B=A(_.bgcolor,e.i,null),L=_.fgopacity,z=A(_.size,e.i,8),q=A(_.solidity,e.i,.3);k=k||e.mcc||_i.isArrayOrTypedArray(_.shape)||_i.isArrayOrTypedArray(_.path)||_i.isArrayOrTypedArray(_.bgcolor)||_i.isArrayOrTypedArray(_.fgcolor)||_i.isArrayOrTypedArray(_.size)||_i.isArrayOrTypedArray(_.solidity);var V=r.uid;k&&(V+="-"+e.i),Mt.pattern(t,"point",a,V,T,z,q,e.mcc,_.fillmode,B,I,L)}else _i.isArrayOrTypedArray(d)?hn.fill(t,d[e.i]):hn.fill(t,d);m&&hn.stroke(t,p)}};Mt.makePointStyleFns=function(e){var t={},r=e.marker;return t.markerScale=Mt.tryColorscale(r,""),t.lineScale=Mt.tryColorscale(r,"line"),sb.traceIs(e,"symbols")&&(t.ms2mrc=C3e.isBubble(e)?F3e(e):function(){return(r.size||6)/2}),e.selectedpoints&&_i.extendFlat(t,Mt.makeSelectedPointStyleFns(e)),t};Mt.makeSelectedPointStyleFns=function(e){var t={},r=e.selected||{},i=e.unselected||{},a=e.marker||{},n=r.marker||{},o=i.marker||{},s=a.opacity,l=n.opacity,u=o.opacity,c=l!==void 0,h=u!==void 0;(_i.isArrayOrTypedArray(s)||c||h)&&(t.selectedOpacityFn=function(_){var A=_.mo===void 0?a.opacity:_.mo;return _.selected?c?l:A:h?u:TV*A});var f=a.color,d=n.color,p=o.color;(d||p)&&(t.selectedColorFn=function(_){var A=_.mcc||f;return _.selected?d||A:p||A});var m=a.size,g=n.size,y=o.size,x=g!==void 0,b=y!==void 0;return sb.traceIs(e,"symbols")&&(x||b)&&(t.selectedSizeFn=function(_){var A=_.mrc||m/2;return _.selected?x?g/2:A:b?y/2:A}),t};Mt.makeSelectedTextStyleFns=function(e){var t={},r=e.selected||{},i=e.unselected||{},a=e.textfont||{},n=r.textfont||{},o=i.textfont||{},s=a.color,l=n.color,u=o.color;return t.selectedTextColorFn=function(c){var h=c.tc||s;return c.selected?l||h:u||(l?h:hn.addOpacity(h,TV))},t};Mt.selectedPointStyle=function(e,t){if(!(!e.size()||!t.selectedpoints)){var r=Mt.makeSelectedPointStyleFns(t),i=t.marker||{},a=[];r.selectedOpacityFn&&a.push(function(n,o){n.style("opacity",r.selectedOpacityFn(o))}),r.selectedColorFn&&a.push(function(n,o){hn.fill(n,r.selectedColorFn(o))}),r.selectedSizeFn&&a.push(function(n,o){var s=o.mx||i.symbol||0,l=r.selectedSizeFn(o);n.attr("d",DV(Mt.symbolNumber(s),l,O8(o,t),q8(o,t))),o.mrc2=l}),a.length&&e.each(function(n){for(var o=wn.select(this),s=0;s0?r:0}Mt.textPointStyle=function(e,t,r){if(e.size()){var i;if(t.selectedpoints){var a=Mt.makeSelectedTextStyleFns(t);i=a.selectedTextColorFn}var n=t.texttemplate,o=r._fullLayout;e.each(function(s){var l=wn.select(this),u=n?_i.extractOption(s,t,"txt","texttemplate"):_i.extractOption(s,t,"tx","text");if(!u&&u!==0){l.remove();return}if(n){var c=t._module.formatLabels,h=c?c(s,t,o):{},f={};P3e(f,t,s.i),u=_i.texttemplateString({data:[f,s,t._meta],fallback:t.texttemplatefallback,labels:h,locale:o._d3locale,template:u})}var d=s.tp||t.textposition,p=CV(s,t),m=i?i(s):s.tc||t.textfont.color;l.call(Mt.font,{family:s.tf||t.textfont.family,weight:s.tw||t.textfont.weight,style:s.ty||t.textfont.style,variant:s.tv||t.textfont.variant,textcase:s.tC||t.textfont.textcase,lineposition:s.tE||t.textfont.lineposition,shadow:s.tS||t.textfont.shadow,size:p,color:m}).text(u).call(lb.convertToTspans,r).call(kV,d,p,s.mrc)})}};Mt.selectedTextStyle=function(e,t){if(!(!e.size()||!t.selectedpoints)){var r=Mt.makeSelectedTextStyleFns(t);e.each(function(i){var a=wn.select(this),n=r.selectedTextColorFn(i),o=i.tp||t.textposition,s=CV(i,t);hn.fill(a,n);var l=sb.traceIs(t,"bar-like");kV(a,o,s,i.mrc2||i.mrc,l)})}};var gV=.5;Mt.smoothopen=function(e,t){if(e.length<3)return"M"+e.join("L");var r="M"+e[0],i=[],a;for(a=1;a=l||_>=c&&_<=l)&&(A<=h&&A>=u||A>=h&&A<=u)&&(e=[_,A])}return e}Mt.applyBackoff=IV;Mt.makeTester=function(){var e=_i.ensureSingleById(wn.select("body"),"svg","js-plotly-tester",function(r){r.attr(S3e.svgAttrs).style({position:"absolute",left:"-10000px",top:"-10000px",width:"9000px",height:"9000px","z-index":"1"})}),t=_i.ensureSingle(e,"path","js-reference-point",function(r){r.attr("d","M0,0H1V1H0Z").style({"stroke-width":0,fill:"black"})});Mt.tester=e,Mt.testref=t};Mt.savedBBoxes={};var L8=0,N3e=1e4;Mt.bBox=function(e,t,r){r||(r=yV(e));var i;if(r){if(i=Mt.savedBBoxes[r],i)return _i.extendFlat({},i)}else if(e.childNodes.length===1){var a=e.childNodes[0];if(r=yV(a),r){var n=+a.getAttribute("x")||0,o=+a.getAttribute("y")||0,s=a.getAttribute("transform");if(!s){var l=Mt.bBox(a,!1,r);return n&&(l.left+=n,l.right+=n),o&&(l.top+=o,l.bottom+=o),l}if(r+="~"+n+"~"+o+"~"+s,i=Mt.savedBBoxes[r],i)return _i.extendFlat({},i)}}var u,c;t?u=e:(c=Mt.tester.node(),u=e.cloneNode(!0),c.appendChild(u)),wn.select(u).attr("transform",null).call(lb.positionText,0,0);var h=u.getBoundingClientRect(),f=Mt.testref.node().getBoundingClientRect();t||c.removeChild(u);var d={height:h.height,width:h.width,left:h.left-f.left,top:h.top-f.top,right:h.right-f.left,bottom:h.bottom-f.top};return L8>=N3e&&(Mt.savedBBoxes={},L8=0),r&&(Mt.savedBBoxes[r]=d),L8++,_i.extendFlat({},d)};function yV(e){var t=e.getAttribute("data-unformatted");if(t!==null)return t+e.getAttribute("data-math")+e.getAttribute("text-anchor")+e.getAttribute("style")}Mt.setClipUrl=function(e,t,r){e.attr("clip-path",B8(t,r))};function B8(e,t){if(!e)return null;var r=t._context,i=r._exportedPlot?"":r._baseUrl||"";return i?"url('"+i+"#"+e+"')":"url(#"+e+")"}Mt.getTranslate=function(e){var t=/.*\btranslate\((-?\d*\.?\d*)[^-\d]*(-?\d*\.?\d*)[^\d].*/,r=e.attr?"attr":"getAttribute",i=e[r]("transform")||"",a=i.replace(t,function(n,o,s){return[o,s].join(" ")}).split(" ");return{x:+a[0]||0,y:+a[1]||0}};Mt.setTranslate=function(e,t,r){var i=/(\btranslate\(.*?\);?)/,a=e.attr?"attr":"getAttribute",n=e.attr?"attr":"setAttribute",o=e[a]("transform")||"";return t=t||0,r=r||0,o=o.replace(i,"").trim(),o+=Xv(t,r),o=o.trim(),e[n]("transform",o),o};Mt.getScale=function(e){var t=/.*\bscale\((\d*\.?\d*)[^\d]*(\d*\.?\d*)[^\d].*/,r=e.attr?"attr":"getAttribute",i=e[r]("transform")||"",a=i.replace(t,function(n,o,s){return[o,s].join(" ")}).split(" ");return{x:+a[0]||1,y:+a[1]||1}};Mt.setScale=function(e,t,r){var i=/(\bscale\(.*?\);?)/,a=e.attr?"attr":"getAttribute",n=e.attr?"attr":"setAttribute",o=e[a]("transform")||"";return t=t||1,r=r||1,o=o.replace(i,"").trim(),o+="scale("+t+","+r+")",o=o.trim(),e[n]("transform",o),o};var V3e=/\s*sc.*/;Mt.setPointGroupScale=function(e,t,r){if(t=t||1,r=r||1,!!e){var i=t===1&&r===1?"":"scale("+t+","+r+")";e.each(function(){var a=(this.getAttribute("transform")||"").replace(V3e,"");a+=i,a=a.trim(),this.setAttribute("transform",a)})}};var U3e=/translate\([^)]*\)\s*$/;Mt.setTextPointsScale=function(e,t,r){e&&e.each(function(){var i,a=wn.select(this),n=a.select("text");if(n.node()){var o=parseFloat(n.attr("x")||0),s=parseFloat(n.attr("y")||0),l=(a.attr("transform")||"").match(U3e);t===1&&r===1?i=[]:i=[Xv(o,s),"scale("+t+","+r+")",Xv(-o,-s)],l&&i.push(l),a.attr("transform",i.join(""))}})};function q8(e,t){var r;return e&&(r=e.mf),r===void 0&&(r=t.marker&&t.marker.standoff||0),!t._geo&&!t._xA?-r:r}Mt.getMarkerStandoff=q8;var Wv=Math.atan2,ed=Math.cos,f1=Math.sin;function _V(e,t){var r=t[0],i=t[1];return[r*ed(e)-i*f1(e),r*f1(e)+i*ed(e)]}var xV,bV,wV,AV,z8,R8;function O8(e,t){var r=e.ma;r===void 0&&(r=t.marker.angle,(!hf(r)||_i.isArrayOrTypedArray(r))&&(r=0));var i,a,n=t.marker.angleref;if(n==="previous"||n==="north"){if(t._geo){var o=t._geo.project(e.lonlat);i=o[0],a=o[1]}else{var s=t._xA,l=t._yA;if(s&&l)i=s.c2p(e.x),a=l.c2p(e.y);else return 90}if(t._geo){var u=e.lonlat[0],c=e.lonlat[1],h=t._geo.project([u,c+1e-5]),f=t._geo.project([u+1e-5,c]),d=Wv(f[1]-a,f[0]-i),p=Wv(h[1]-a,h[0]-i),m;if(n==="north")m=r/180*Math.PI;else if(n==="previous"){var g=u/180*Math.PI,y=c/180*Math.PI,x=xV/180*Math.PI,b=bV/180*Math.PI,_=x-g,A=ed(b)*f1(_),T=f1(b)*ed(y)-ed(b)*f1(y)*ed(_);m=-Wv(A,T)-Math.PI,xV=u,bV=c}var M=_V(d,[ed(m),0]),S=_V(p,[f1(m),0]);r=Wv(M[1]+S[1],M[0]+S[0])/Math.PI*180,n==="previous"&&!(R8===t.uid&&e.i===z8+1)&&(r=null)}if(n==="previous"&&!t._geo)if(R8===t.uid&&e.i===z8+1&&hf(i)&&hf(a)){var k=i-wV,P=a-AV,I=t.line&&t.line.shape||"",B=I.slice(I.length-1);B==="h"&&(P=0),B==="v"&&(k=0),r+=Wv(P,k)/Math.PI*180+90}else r=null}return wV=i,AV=a,z8=e.i,R8=t.uid,r}Mt.getMarkerAngle=O8});var Kv=X((Oet,qV)=>{"use strict";var d1=Qr(),G3e=Nr(),j3e=bn(),N8=mr(),id=tt(),zV=id.strTranslate,ub=xi(),cb=Vr(),p1=cn(),RV=(gx(),lt(vx)),$3e=(uo(),lt(lo)).OPPOSITE_SIDE,BV=/ [XY][0-9]* /,V8=1.6,U8=1.6;function H3e(e,t,r){var i=e._fullLayout,a=r.propContainer,n=r.propName,o=r.placeholder,s=r.traceIndex,l=r.avoid||{},u=r.attributes,c=r.transform,h=r.containerGroup,f=1,d=a.title,p=(d&&d.text?d.text:"").trim(),m=!1,g=d&&d.font?d.font:{},y=g.family,x=g.size,b=g.color,_=g.weight,A=g.style,T=g.variant,M=g.textcase,S=g.lineposition,k=g.shadow,P=r.subtitlePropName,I=!!P,B=r.subtitlePlaceholder,L=(a.title||{}).subtitle||{text:"",font:{}},z=(L.text||"").trim(),q=!1,V=1,j=L.font,$=j.family,H=j.size,Z=j.color,Y=j.weight,oe=j.style,pe=j.variant,De=j.textcase,ye=j.lineposition,de=j.shadow,Ce;n==="title.text"?Ce="titleText":n.indexOf("axis")!==-1?Ce="axisTitleText":n.indexOf("colorbar")!==-1&&(Ce="colorbarTitleText");var J=e._context.edits[Ce];function ue(Ne,$e){return Ne===void 0||$e===void 0?!1:Ne.replace(BV," % ")===$e.replace(BV," % ")}p===""?f=0:ue(p,o)&&(J||(p=""),f=.2,m=!0),I&&(z===""?V=0:ue(z,B)&&(J||(z=""),V=.2,q=!0)),r._meta?p=id.templateString(p,r._meta):i._meta&&(p=id.templateString(p,i._meta));var me=p||z||J,te;h||(h=id.ensureSingle(i._infolayer,"g","g-"+t),te=i._hColorbarMoveTitle);var re=h.selectAll("text."+t).data(me?[0]:[]);re.enter().append("text"),re.text(p).attr("class",t),re.exit().remove();var fe=null,ge=t+"-subtitle",Re=z||J;if(I&&(fe=h.selectAll("text."+ge).data(Re?[0]:[]),fe.enter().append("text"),fe.text(z).attr("class",ge),fe.exit().remove()),!me)return h;function Ve(Ne,$e){id.syncOrAsync([Me,Pe],{title:Ne,subtitle:$e})}function Me(Ne){var $e=Ne.title,Ae=Ne.subtitle,He;!c&&te&&(c={}),c?(He="",c.rotate&&(He+="rotate("+[c.rotate,u.x,u.y]+")"),(c.offset||te)&&(He+=zV(0,(c.offset||0)-(te||0)))):He=null,$e.attr("transform",He);function it(ve){if(ve){var xe=d1.select(ve.node().parentNode).select("."+ge);if(!xe.empty()){var je=ve.node().getBBox();if(je.height){var nt=je.y+je.height+V8*H;xe.attr("y",nt)}}}}if($e.style("opacity",f*cb.opacity(b)).call(ub.font,{color:cb.rgb(b),size:d1.round(x,2),family:y,weight:_,style:A,variant:T,textcase:M,shadow:k,lineposition:S}).attr(u).call(p1.convertToTspans,e,it),Ae&&!Ae.empty()){var ie=h.select("."+t+"-math-group"),Se=$e.node().getBBox(),ot=ie.node()?ie.node().getBBox():void 0,bt=ot?ot.y+ot.height+V8*H:Se.y+Se.height+U8*H,Tt=id.extendFlat({},u,{y:bt});Ae.attr("transform",He),Ae.style("opacity",V*cb.opacity(Z)).call(ub.font,{color:cb.rgb(Z),size:d1.round(H,2),family:$,weight:Y,style:oe,variant:pe,textcase:De,shadow:de,lineposition:ye}).attr(Tt).call(p1.convertToTspans,e)}return j3e.previousPromises(e)}function Pe(Ne){var $e=Ne.title,Ae=d1.select($e.node().parentNode);if(l&&l.selection&&l.side&&p){Ae.attr("transform",null);var He=$3e[l.side],it=l.side==="left"||l.side==="top"?-1:1,ie=G3e(l.pad)?l.pad:2,Se=ub.bBox(Ae.node()),ot={t:0,b:0,l:0,r:0},bt=e._fullLayout._reservedMargin;for(var Tt in bt)for(var ve in bt[Tt]){var xe=bt[Tt][ve];ot[ve]=Math.max(ot[ve],xe)}var je={left:ot.l,top:ot.t,right:i.width-ot.r,bottom:i.height-ot.b},nt=l.maxShift||it*(je[l.side]-Se[l.side]),Qe=0;if(nt<0)Qe=nt;else{var pt=l.offsetLeft||0,st=l.offsetTop||0;Se.left-=pt,Se.right-=pt,Se.top-=st,Se.bottom-=st,l.selection.each(function(){var Ot=ub.bBox(this);id.bBoxIntersect(Se,Ot,ie)&&(Qe=Math.max(Qe,it*(Ot[l.side]-Se[He])+ie))}),Qe=Math.min(nt,Qe),a._titleScoot=Math.abs(Qe)}if(Qe>0||nt<0){var yt={left:[-Qe,0],right:[Qe,0],top:[0,-Qe],bottom:[0,Qe]}[l.side];Ae.attr("transform",zV(yt[0],yt[1]))}}}re.call(Ve,fe);function Fe(Ne,$e){Ne.text($e).on("mouseover.opacity",function(){d1.select(this).transition().duration(RV.SHOW_PLACEHOLDER).style("opacity",1)}).on("mouseout.opacity",function(){d1.select(this).transition().duration(RV.HIDE_PLACEHOLDER).style("opacity",0)})}if(J&&(p?re.on(".opacity",null):(Fe(re,o),m=!0),re.call(p1.makeEditable,{gd:e}).on("edit",function(Ne){s!==void 0?N8.call("_guiRestyle",e,n,Ne,s):N8.call("_guiRelayout",e,n,Ne)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(Ve)}).on("input",function(Ne){this.text(Ne||" ").call(p1.positionText,u.x,u.y)}),I)){if(I&&!p){var se=re.node().getBBox(),Ue=se.y+se.height+U8*H;fe.attr("y",Ue)}z?fe.on(".opacity",null):(Fe(fe,B),q=!0),fe.call(p1.makeEditable,{gd:e}).on("edit",function(Ne){N8.call("_guiRelayout",e,"title.subtitle.text",Ne)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(Ve)}).on("input",function(Ne){this.text(Ne||" ").call(p1.positionText,fe.attr("x"),fe.attr("y"))})}return re.classed("js-placeholder",m),fe&&!fe.empty()&&fe.classed("js-placeholder",q),h}qV.exports={draw:H3e,SUBTITLE_PADDING_EM:U8,SUBTITLE_PADDING_MATHJAX_EM:V8}});var yb=X((Net,GV)=>{"use strict";var Z3e=Qr(),Y3e=Pp().utcFormat,Oi=tt(),W3e=Oi.numberFormat,oc=Nr(),ff=Oi.cleanNumber,X3e=Oi.ms2DateTime,OV=Oi.dateTime2ms,sc=Oi.ensureNumber,NV=Oi.isArrayOrTypedArray,df=(Ji(),lt(ua)),hb=df.FP_SAFE,gu=df.BADNUM,K3e=df.LOG_CLIP,J3e=df.ONEWEEK,fb=df.ONEDAY,db=df.ONEHOUR,VV=df.ONEMIN,UV=df.ONESEC,pb=un(),gb=(xn(),lt(_n)),mb=gb.HOUR_PATTERN,vb=gb.WEEKDAY_PATTERN;function Jv(e){return Math.pow(10,e)}function G8(e){return e!=null}GV.exports=function(t,r){r=r||{};var i=t._id||"x",a=i.charAt(0);function n(_,A){if(_>0)return Math.log(_)/Math.LN10;if(_<=0&&A&&t.range&&t.range.length===2){var T=t.range[0],M=t.range[1];return .5*(T+M-2*K3e*Math.abs(T-M))}else return gu}function o(_,A,T,M){if((M||{}).msUTC&&oc(_))return+_;var S=OV(_,T||t.calendar);if(S===gu)if(oc(_)){_=+_;var k=Math.floor(Oi.mod(_+.05,1)*10),P=Math.round(_-k/10);S=OV(new Date(P))+k/10}else return gu;return S}function s(_,A,T){return X3e(_,A,T||t.calendar)}function l(_){return t._categories[Math.round(_)]}function u(_){if(G8(_)){if(t._categoriesMap===void 0&&(t._categoriesMap={}),t._categoriesMap[_]!==void 0)return t._categoriesMap[_];t._categories.push(typeof _=="number"?String(_):_);var A=t._categories.length-1;return t._categoriesMap[_]=A,A}return gu}function c(_,A){for(var T=new Array(A),M=0;Mt.range[1]&&(T=!T);for(var M=T?-1:1,S=M*_,k=0,P=0;PB)k=P+1;else{k=S<(I+B)/2?P:P+1;break}}var L=t._B[k]||0;return isFinite(L)?p(_,t._m2,L):0},y=function(_){var A=t._rangebreaks.length;if(!A)return m(_,t._m,t._b);for(var T=0,M=0;Mt._rangebreaks[M].pmax&&(T=M+1);return m(_,t._m2,t._B[T])}}t.c2l=t.type==="log"?n:sc,t.l2c=t.type==="log"?Jv:sc,t.l2p=g,t.p2l=y,t.c2p=t.type==="log"?function(_,A){return g(n(_,A))}:g,t.p2c=t.type==="log"?function(_){return Jv(y(_))}:y,["linear","-"].indexOf(t.type)!==-1?(t.d2r=t.r2d=t.d2c=t.r2c=t.d2l=t.r2l=ff,t.c2d=t.c2r=t.l2d=t.l2r=sc,t.d2p=t.r2p=function(_){return t.l2p(ff(_))},t.p2d=t.p2r=y,t.cleanPos=sc):t.type==="log"?(t.d2r=t.d2l=function(_,A){return n(ff(_),A)},t.r2d=t.r2c=function(_){return Jv(ff(_))},t.d2c=t.r2l=ff,t.c2d=t.l2r=sc,t.c2r=n,t.l2d=Jv,t.d2p=function(_,A){return t.l2p(t.d2r(_,A))},t.p2d=function(_){return Jv(y(_))},t.r2p=function(_){return t.l2p(ff(_))},t.p2r=y,t.cleanPos=sc):t.type==="date"?(t.d2r=t.r2d=Oi.identity,t.d2c=t.r2c=t.d2l=t.r2l=o,t.c2d=t.c2r=t.l2d=t.l2r=s,t.d2p=t.r2p=function(_,A,T){return t.l2p(o(_,0,T))},t.p2d=t.p2r=function(_,A,T){return s(y(_),A,T)},t.cleanPos=function(_){return Oi.cleanDate(_,gu,t.calendar)}):t.type==="category"?(t.d2c=t.d2l=u,t.r2d=t.c2d=t.l2d=l,t.d2r=t.d2l_noadd=f,t.r2c=function(_){var A=d(_);return A!==void 0?A:t.fraction2r(.5)},t.l2r=t.c2r=sc,t.r2l=d,t.d2p=function(_){return t.l2p(t.r2c(_))},t.p2d=function(_){return l(y(_))},t.r2p=t.d2p,t.p2r=y,t.cleanPos=function(_){return typeof _=="string"&&_!==""?_:sc(_)}):t.type==="multicategory"&&(t.r2d=t.c2d=t.l2d=l,t.d2r=t.d2l_noadd=f,t.r2c=function(_){var A=f(_);return A!==void 0?A:t.fraction2r(.5)},t.r2c_just_indices=h,t.l2r=t.c2r=sc,t.r2l=f,t.d2p=function(_){return t.l2p(t.r2c(_))},t.p2d=function(_){return l(y(_))},t.r2p=t.d2p,t.p2r=y,t.cleanPos=function(_){return Array.isArray(_)||typeof _=="string"&&_!==""?_:sc(_)},t.setupMultiCategory=function(_){var A=t._traceIndices,T,M,S=t._matchGroup;if(S&&t._categories.length===0){for(var k in S)if(k!==i){var P=r[pb.id2name(k)];A=A.concat(P._traceIndices)}}var I=[[0,{}],[0,{}]],B=[];for(T=0;TP[1]&&(M[k?0:1]=T,S[1]=P[1]),S[0]>=S[1])if(A!==void 0){var I=P[0]+1;T!==void 0&&(I=Math.min(I,P[1])),M[k?0:1]=t.l2r(I)}else T!==void 0&&(M[k?1:0]=t.l2r(P[1]-1))}},t.cleanRange=function(_,A){t._cleanRange(_,A),t.limitRange(_)},t._cleanRange=function(_,A){A||(A={}),_||(_="range");var T=Oi.nestedProperty(t,_).get(),M,S;if(t.type==="date"?S=Oi.dfltRange(t.calendar):a==="y"?S=gb.DFLTRANGEY:t._name==="realaxis"?S=[0,1]:S=A.dfltRange||gb.DFLTRANGEX,S=S.slice(),(t.rangemode==="tozero"||t.rangemode==="nonnegative")&&(S[0]=0),!T||T.length!==2){Oi.nestedProperty(t,_).set(S);return}var k=T[0]===null,P=T[1]===null;for(t.type==="date"&&!t.autorange&&(T[0]=Oi.cleanDate(T[0],gu,t.calendar),T[1]=Oi.cleanDate(T[1],gu,t.calendar)),M=0;M<2;M++)if(t.type==="date"){if(!Oi.isDateTime(T[M],t.calendar)){t[_]=S;break}if(t.r2l(T[0])===t.r2l(T[1])){var I=Oi.constrain(t.r2l(T[0]),Oi.MIN_MS+1e3,Oi.MAX_MS-1e3);T[0]=t.l2r(I-1e3),T[1]=t.l2r(I+1e3);break}}else{if(!oc(T[M]))if(!(k||P)&&oc(T[1-M]))T[M]=T[1-M]*(M?10:.1);else{t[_]=S;break}if(T[M]<-hb?T[M]=-hb:T[M]>hb&&(T[M]=hb),T[0]===T[1]){var B=Math.max(1,Math.abs(T[0]*1e-6));T[0]-=B,T[1]+=B}}},t.setScale=function(_){var A=r._size;if(t.overlaying){var T=pb.getFromId({_fullLayout:r},t.overlaying);t.domain=T.domain}var M=_&&t._r?"_r":"range",S=t.calendar;t.cleanRange(M);var k=t.r2l(t[M][0],S),P=t.r2l(t[M][1],S),I=a==="y";if(I?(t._offset=A.t+(1-t.domain[1])*A.h,t._length=A.h*(t.domain[1]-t.domain[0]),t._m=t._length/(k-P),t._b=-t._m*P):(t._offset=A.l+t.domain[0]*A.w,t._length=A.w*(t.domain[1]-t.domain[0]),t._m=t._length/(P-k),t._b=-t._m*k),t._rangebreaks=[],t._lBreaks=0,t._m2=0,t._B=[],t.rangebreaks){var B,L;if(t._rangebreaks=t.locateBreaks(Math.min(k,P),Math.max(k,P)),t._rangebreaks.length){for(B=0;BP&&(z=!z),z&&t._rangebreaks.reverse();var q=z?-1:1;for(t._m2=q*t._length/(Math.abs(P-k)-t._lBreaks),t._B.push(-t._m2*(I?P:k)),B=0;BS&&(S+=7,kS&&(S+=24,k=M&&k=M&&_=de.min&&(oede.max&&(de.max=pe),De=!1)}De&&P.push({min:oe,max:pe})}};for(T=0;T{"use strict";var jV=Nr(),j8=tt(),Q3e=(Ji(),lt(ua)).BADNUM,_b=j8.isArrayOrTypedArray,e5e=j8.isDateTime,t5e=j8.cleanNumber,$V=Math.round;ZV.exports=function(t,r,i){var a=t,n=i.noMultiCategory;if(_b(a)&&!a.length)return"-";if(!n&&o5e(a))return"multicategory";if(n&&Array.isArray(a[0])){for(var o=[],s=0;sn*2}function HV(e){return Math.max(1,(e-1)/1e3)}function n5e(e,t){for(var r=e.length,i=HV(r),a=0,n=0,o={},s=0;sa*2}function o5e(e){return _b(e[0])&&_b(e[1])}});var Qv=X((Uet,tU)=>{"use strict";var s5e=Qr(),KV=Nr(),pf=tt(),xb=(Ji(),lt(ua)).FP_SAFE,l5e=mr(),u5e=xi(),JV=un(),c5e=JV.getFromId,h5e=JV.isLinked;tU.exports={applyAutorangeOptions:eU,getAutoRange:H8,makePadFn:Z8,doAutoRange:d5e,findExtremes:p5e,concatExtremes:X8};function H8(e,t){var r,i,a=[],n=e._fullLayout,o=Z8(n,t,0),s=Z8(n,t,1),l=X8(e,t),u=l.min,c=l.max;if(u.length===0||c.length===0)return pf.simpleMap(t.range,t.r2l);var h=u[0].val,f=c[0].val;for(r=1;r0&&(P=b-o(T)-s(M),P>_?I/P>A&&(S=T,k=M,A=I/P):I/b>A&&(S={val:T.val,nopad:1},k={val:M.val,nopad:1},A=I/b));function B(j,$){return Math.max(j,s($))}if(h===f){var L=h-1,z=h+1;if(y)if(h===0)a=[0,1];else{var q=(h>0?c:u).reduce(B,0),V=h/(1-Math.min(.5,q/b));a=h>0?[0,V]:[V,0]}else x?a=[Math.max(0,L),Math.max(1,z)]:a=[L,z]}else y?(S.val>=0&&(S={val:0,nopad:1}),k.val<=0&&(k={val:0,nopad:1})):x&&(S.val-A*o(S)<0&&(S={val:0,nopad:1}),k.val<=0&&(k={val:1,nopad:1})),A=(k.val-S.val-YV(t,T.val,M.val))/(b-o(S)-s(k)),a=[S.val-A*o(S),k.val+A*s(k)];return a=eU(a,t),t.limitRange&&t.limitRange(),p&&a.reverse(),pf.simpleMap(a,t.l2r||Number)}function YV(e,t,r){var i=0;if(e.rangebreaks)for(var a=e.locateBreaks(t,r),n=0;n0?r.ppadplus:r.ppadminus)||r.ppad||0),T=_((e._m>0?r.ppadminus:r.ppadplus)||r.ppad||0),M=_(r.vpadplus||r.vpad),S=_(r.vpadminus||r.vpad);if(!u){if(x=1/0,b=-1/0,l)for(h=0;h0&&(x=f),f>b&&f-xb&&(x=f),f>b&&f=I;h--)P(h);return{min:i,max:a,opts:r}}function Y8(e,t,r,i){QV(e,t,r,i,m5e)}function W8(e,t,r,i){QV(e,t,r,i,v5e)}function QV(e,t,r,i,a){for(var n=i.tozero,o=i.extrapad,s=!0,l=0;l=r&&(u.extrapad||!o)){s=!1;break}else a(t,u.val)&&u.pad<=r&&(o||!u.extrapad)&&(e.splice(l,1),l--)}if(s){var c=n&&t===0;e.push({val:t,pad:c?0:r,extrapad:c?!1:o})}}function XV(e){return KV(e)&&Math.abs(e)=t}function g5e(e,t){var r=t.autorangeoptions;return r&&r.minallowed!==void 0&&bb(t,r.minallowed,r.maxallowed)?r.minallowed:r&&r.clipmin!==void 0&&bb(t,r.clipmin,r.clipmax)?Math.max(e,t.d2l(r.clipmin)):e}function y5e(e,t){var r=t.autorangeoptions;return r&&r.maxallowed!==void 0&&bb(t,r.minallowed,r.maxallowed)?r.maxallowed:r&&r.clipmax!==void 0&&bb(t,r.clipmin,r.clipmax)?Math.min(e,t.d2l(r.clipmax)):e}function bb(e,t,r){return t!==void 0&&r!==void 0?(t=e.d2l(t),r=e.d2l(r),t=l&&(n=l,r=l),o<=l&&(o=l,i=l)}}return r=g5e(r,t),i=y5e(i,t),[r,i]}});var ra=X((jet,AU)=>{"use strict";var xl=Qr(),Va=Nr(),m1=bn(),tg=mr(),ur=tt(),v1=ur.strTranslate,ad=cn(),_5e=Kv(),rg=Vr(),Ns=xi(),x5e=vu(),rU=p8(),Get=(xn(),lt(_n)),$n=(Ji(),lt(ua)),b5e=$n.ONEMAXYEAR,Tb=$n.ONEAVGYEAR,Mb=$n.ONEMINYEAR,w5e=$n.ONEMAXQUARTER,eM=$n.ONEAVGQUARTER,Db=$n.ONEMINQUARTER,A5e=$n.ONEMAXMONTH,g1=$n.ONEAVGMONTH,Sb=$n.ONEMINMONTH,Vs=$n.ONEWEEK,Eo=$n.ONEDAY,mf=Eo/2,uc=$n.ONEHOUR,ig=$n.ONEMIN,Eb=$n.ONESEC,T5e=$n.ONEMILLI,M5e=$n.ONEMICROSEC,nd=$n.MINUS_SIGN,Cb=$n.BADNUM,tM={K:"zeroline"},rM={K:"gridline",L:"path"},iM={K:"minor-gridline",L:"path"},dU={K:"tick",L:"path"},iU={K:"tick",L:"text"},aU={width:["x","r","l","xl","xr"],height:["y","t","b","yt","yb"],right:["r","xr"],left:["l","xl"],top:["t","yt"],bottom:["b","yb"]},Fb=(uo(),lt(lo)),eg=Fb.MID_SHIFT,od=Fb.CAP_SHIFT,ag=Fb.LINE_SPACING,D5e=Fb.OPPOSITE_SIDE,kb=3,ut=AU.exports={};ut.setConvert=yb();var S5e=$8(),cc=un(),E5e=cc.idSort,k5e=cc.isLinked;ut.id2name=cc.id2name;ut.name2id=cc.name2id;ut.cleanId=cc.cleanId;ut.list=cc.list;ut.listIds=cc.listIds;ut.getFromId=cc.getFromId;ut.getFromTrace=cc.getFromTrace;var pU=Qv();ut.getAutoRange=pU.getAutoRange;ut.findExtremes=pU.findExtremes;var C5e=1e-4;function sM(e){var t=(e[1]-e[0])*C5e;return[e[0]-t,e[1]+t]}function F5e(e,t,r){if(![r,e,t].every(Va)||r===0)return e;let i=Math.round((e-t)/r),a=t+i*r;return e!==a&&Math.abs(e-a)f+" domain")),l=l.concat(n||[]),c.length>o?(ur.warn("Array attribute "+u+" has more entries than expected, truncating to "+o),c=c.slice(0,o)):c.length2e-6||((r-e._forceTick0)/e._minDtick%1+1.000001)%1>2e-6)&&(e._minDtick=0))};ut.saveRangeInitial=function(e,t){for(var r=ut.list(e,"",!0),i=!1,a=0;ah*.3||u(i)||u(a))){var f=r.dtick/2;e+=e+fo){var s=Number(r.slice(1));n.exactYears>o&&s%12===0?e=ut.tickIncrement(e,"M6","reverse")+Eo*1.5:n.exactMonths>o?e=ut.tickIncrement(e,"M1","reverse")+Eo*15.5:e-=mf;var l=ut.tickIncrement(e,r);if(l<=i)return l}return e}ut.prepMinorTicks=function(e,t,r){var h,f;if(!((h=t.minor)!=null&&h.dtick)){delete e.dtick;var i=t.dtick&&Va(t._tmin),a;if(i){var n=ut.tickIncrement(t._tmin,t.dtick,!0);a=[t._tmin,n*.99+t._tmin*.01]}else{var o=ur.simpleMap(t.range,t.r2l);a=[o[0],.8*o[0]+.2*o[1]]}if(e.range=ur.simpleMap(a,t.l2r),e._isMinor=!0,ut.prepTicks(e,r),i){var s=Va(t.dtick),l=Va(e.dtick),u=s?t.dtick:+t.dtick.substring(1),c=l?e.dtick:+e.dtick.substring(1);s&&l?K8(u,c)?u===2*Vs&&c===2*Eo&&(e.dtick=Vs):u===2*Vs&&c===3*Eo?e.dtick=Vs:u===Vs&&!(t._input.minor||{}).nticks?e.dtick=Eo:sU(u/c,2.5)?e.dtick=u/2:e.dtick=u:String(t.dtick).charAt(0)==="M"?l?e.dtick="M1":K8(u,c)?u>=12&&c===2&&(e.dtick="M3"):e.dtick=t.dtick:String(e.dtick).charAt(0)==="L"?String(t.dtick).charAt(0)==="L"?K8(u,c)||(e.dtick=sU(u/c,2.5)?t.dtick/2:t.dtick):e.dtick="D1":e.dtick==="D2"&&+t.dtick>1&&(e.dtick=1)}e.range=t.range}((f=t.minor)==null?void 0:f._tick0Init)===void 0&&(e.tick0=t.tick0),t._useTicklabelIndex&&(lM(e),t.minor._tickround=e._tickround)};function K8(e,t){return Math.abs((e/t+.5)%1-.5)<.001}function sU(e,t){return Math.abs(e/t-1)<.001}ut.prepTicks=function(e,t){var r=ur.simpleMap(e.range,e.r2l,void 0,void 0,t);if(e.tickmode==="auto"||!e.dtick){var i=e.nticks,a;i||(e.type==="category"||e.type==="multicategory"?(a=e.tickfont?ur.bigFont(e.tickfont.size||12):15,i=e._length/a):(a=e._id.charAt(0)==="y"?40:80,i=ur.constrain(e._length/a,4,9)+1),e._name==="radialaxis"&&(i*=2)),e.minor&&e.minor.tickmode!=="array"||e.tickmode==="array"&&(i*=100),e._roughDTick=Math.abs(r[1]-r[0])/i,ut.autoTicks(e,e._roughDTick),e._minDtick>0&&e.dtick0?(s=i-1,l=i):(s=i,l=i),n=e[s].value,o=e[l].value}var u=Math.abs(o-n),c=r||u,h=0;e[i].periodEndTick!=null?h=u:c>=Mb?u>=Mb&&u<=b5e?h=u:h=Tb:r===eM&&c>=Db?u>=Db&&u<=w5e?h=u:h=eM:c>=Sb?u>=Sb&&u<=A5e?h=u:h=g1:r===Vs&&c>=Vs?h=Vs:c>=Eo?h=Eo:r===mf&&c>=mf?h=mf:r===uc&&c>=uc&&(h=uc);var f;h>=u&&(h=u,f=!0);var d=a+h;if(t.rangebreaks&&h>0){for(var p=84,m=0,g=0;gVs&&(h=u)}(h>0||i===0)&&(e[i].periodX=a+h/2)}}ut.calcTicks=function(t,r){var i=t.type,a=t.calendar,n=t.ticklabelstep,o=t.ticklabelmode==="period",s=t.range[0]>t.range[1],l=!t.ticklabelindex||ur.isArrayOrTypedArray(t.ticklabelindex)?t.ticklabelindex:[t.ticklabelindex];t._useTicklabelIndex=l!=null&&l!==0;for(var u=ur.simpleMap(t.range,t.r2l,void 0,void 0,r),c=u[1]=(_?0:1);A--){var T=!A;A?(t._dtickInit=t.dtick,t._tick0Init=t.tick0):_&&(t.minor._dtickInit=t.minor.dtick,t.minor._tick0Init=t.minor.tick0);var M=A?t:ur.extendFlat({},t,_?t.minor:{minor:{}});if(T?ut.prepMinorTicks(M,t,r):ut.prepTicks(M,r),M.tickmode==="array"){A?(g=[],p=lU(t,!T)):(y=[],m=lU(t,!T));continue}if(M.tickmode==="sync"){g=[],p=B5e(t);continue}var S=sM(u),k=S[0],P=S[1],I=Va(M.dtick),B=i==="log"&&!(I||M.dtick.charAt(0)==="L"),L=ut.tickFirst(M,r);if(A){if(t._tmin=L,L=P:q<=P;q=ut.tickIncrement(q,$,c,a)){if(A&&V++,M.rangebreaks&&!c){if(q=f)break}if(g.length>d||q===z)break;z=q;var Z={value:F5e(q,H,$)};A?(q===L&&(Z.first=!0),B&&q!==(q|0)&&(Z.simpleLabel=!0),n>1&&V%n&&(Z.skipLabel=!0),g.push(Z)):(Z.minor=!0,y.push(Z))}}function Y(Ve,Me){let Pe=Me.find(se=>se.value===Ve.value);if(Pe!=null)return Pe;let Fe=1e7;for(let se=0;seY(Pe,g)==null),Me=g.concat(Ve).sort((Pe,Fe)=>Pe.value-Fe.value);o&&g.length&&(g[0].skipLabel=!0),g.forEach(function(Pe){Pe.skipLabel||(l.forEach(Fe=>{if(Fe<0){let se=Me.filter($e=>$e.value<=Pe.value),Ue=Math.abs(Fe),Ne=se.length-Ue-1;if(UeUe.value>=Pe.value);if(FePe.skipLabel=!1)}if(b){var oe=t.minor.ticks==="inside"&&t.ticks==="outside"||t.minor.ticks==="outside"&&t.ticks==="inside";if(!oe){for(var pe=[],De=0;De-1;ye--){if(g[ye].drop){g.splice(ye,1);continue}g[ye].value=Q8(g[ye].value,t);var ue=t.c2p(g[ye].value);(de?J>ue-Ce:Jf||Fef&&(Pe.periodX=f),Fea&&pa&&gTb)t/=Tb,i=a(10),e.dtick="M"+12*lc(t,i,wb);else if(n>g1)t/=g1,e.dtick="M"+lc(t,1,uU);else if(n>Eo){if(e.dtick=lc(t,Eo,e._hasDayOfWeekBreaks?[1,2,7,14]:q5e),!r){var o=ut.getTickFormat(e),s=e.ticklabelmode==="period";s&&(e._rawTick0=e.tick0),/%[uVW]/.test(o)?e.tick0=ur.dateTick0(e.calendar,2):e.tick0=ur.dateTick0(e.calendar,1),s&&(e._dowTick0=e.tick0)}}else n>uc?e.dtick=lc(t,uc,uU):n>ig?e.dtick=lc(t,ig,cU):n>Eb?e.dtick=lc(t,Eb,cU):(i=a(10),e.dtick=lc(t,i,wb))}else if(e.type==="log"){e.tick0=0;var l=ur.simpleMap(e.range,e.r2l);if(e._isMinor&&(t*=1.5),t>.7)e.dtick=Math.ceil(t);else if(Math.abs(l[1]-l[0])<1){var u=1.5*Math.abs((l[1]-l[0])/t);t=Math.abs(Math.pow(10,l[1])-Math.pow(10,l[0]))/u,i=a(10),e.dtick="L"+lc(t,i,wb)}else e.dtick=t>.3?"D2":"D1"}else e.type==="category"||e.type==="multicategory"?(e.tick0=0,e.dtick=Math.ceil(Math.max(t,1))):fM(e)?(e.tick0=0,i=1,e.dtick=lc(t,i,O5e)):(e.tick0=0,i=a(10),e.dtick=lc(t,i,wb));if(e.dtick===0&&(e.dtick=1),!Va(e.dtick)&&typeof e.dtick!="string"){var c=e.dtick;throw e.dtick=1,"ax.dtick error: "+String(c)}};function lM(e){var t=e.dtick;if(e._tickexponent=0,!Va(t)&&typeof t!="string"&&(t=1),(e.type==="category"||e.type==="multicategory")&&(e._tickround=null),e.type==="date"){var r=e.r2l(e.tick0),i=e.l2r(r).replace(/(^-|i)/g,""),a=i.length;if(String(t).charAt(0)==="M")a>10||i.slice(5)!=="01-01"?e._tickround="d":e._tickround=+t.slice(1)%12===0?"y":"m";else if(t>=Eo&&a<=10||t>=Eo*15)e._tickround="d";else if(t>=ig&&a<=16||t>=uc)e._tickround="M";else if(t>=Eb&&a<=19||t>=ig)e._tickround="S";else{var n=e.l2r(r+t).replace(/^-/,"").length;e._tickround=Math.max(a,n)-20,e._tickround<0&&(e._tickround=4)}}else if(Va(t)||t.charAt(0)==="L"){var o=e.range.map(e.r2d||Number);Va(t)||(t=Number(t.slice(1))),e._tickround=2-Math.floor(Math.log(t)/Math.LN10+.01);var s=Math.max(Math.abs(o[0]),Math.abs(o[1])),l=Math.floor(Math.log(s)/Math.LN10+.01),u=e.minexponent===void 0?3:e.minexponent;Math.abs(l)>u&&(y1(e.exponentformat)&&e.exponentformat!=="SI extended"&&!uM(l)||y1(e.exponentformat)&&e.exponentformat==="SI extended"&&!cM(l)?e._tickexponent=3*Math.round((l-1)/3):e._tickexponent=l)}else e._tickround=null}ut.tickIncrement=function(e,t,r,i){var a=r?-1:1;if(Va(t))return ur.increment(e,a*t);var n=t.charAt(0),o=a*Number(t.slice(1));if(n==="M")return ur.incrementMonth(e,o,i);if(n==="L")return Math.log(Math.pow(10,e)+o)/Math.LN10;if(n==="D"){var s=t==="D2"?gU:vU,l=e+a*.01,u=ur.roundUp(ur.mod(l,1),s,r);return Math.floor(l)+Math.log(xl.round(Math.pow(10,u),1))/Math.LN10}throw"unrecognized dtick "+String(t)};ut.tickFirst=function(e,t){var r=e.r2l||Number,i=ur.simpleMap(e.range,r,void 0,void 0,t),a=i[1]=0&&_<=e._length?b:null};if(l&&ur.isArrayOrTypedArray(e.ticktext)){var p=ur.simpleMap(e.range,e.r2l),m=(Math.abs(p[1]-p[0])-(e._lBreaks||0))/1e4;for(f=0;f"+s;else{var u=og(e),c=e._trueSide||e.side;(!u&&c==="top"||u&&c==="bottom")&&(o+="
")}t.text=o}function V5e(e,t,r,i,a){var n=e.dtick,o=t.x,s=e.tickformat,l=typeof n=="string"&&n.charAt(0);if(a==="never"&&(a=""),i&&l!=="L"&&(n="L3",l="L"),s||l==="L")t.text=ng(Math.pow(10,o),e,a,i);else if(Va(n)||l==="D"&&(e.minorloglabels==="complete"||ur.mod(o+.01,1)<.1)){var u;e.minorloglabels==="complete"&&!(ur.mod(o+.01,1)<.1)&&(u=!0,t.fontSize*=.75);var c=Math.pow(10,o).toExponential(0),h=c.split("e"),f=+h[1],d=Math.abs(f),p=e.exponentformat;p==="power"||y1(p)&&p!=="SI extended"&&uM(f)||y1(p)&&p==="SI extended"&&cM(f)?(t.text=h[0],d>0&&(t.text+="x10"),t.text==="1x10"&&(t.text="10"),f!==0&&f!==1&&(t.text+=""+(f>0?"":nd)+d+""),t.fontSize*=1.25):(p==="e"||p==="E")&&d>2?t.text=h[0]+p+(f>0?"+":nd)+d:(t.text=ng(Math.pow(10,o),e,"","fakehover"),n==="D1"&&e._id.charAt(0)==="y"&&(t.dy-=t.fontSize/6))}else if(l==="D")t.text=e.minorloglabels==="none"?"":String(Math.round(Math.pow(10,ur.mod(o,1)))),t.fontSize*=.75;else throw"unrecognized dtick "+String(n);if(e.dtick==="D1"){var m=String(t.text).charAt(0);(m==="0"||m==="1")&&(e._id.charAt(0)==="y"?t.dx-=t.fontSize/4:(t.dy+=t.fontSize/2,t.dx+=(e.range[1]>e.range[0]?1:-1)*t.fontSize*(o<0?.5:.25)))}}function U5e(e,t){var r=e._categories[Math.round(t.x)];r===void 0&&(r=""),t.text=String(r)}function G5e(e,t,r){var i=Math.round(t.x),a=e._categories[i]||[],n=a[1]===void 0?"":String(a[1]),o=a[0]===void 0?"":String(a[0]);r?t.text=o+" - "+n:(t.text=n,t.text2=o)}function j5e(e,t,r,i,a){a==="never"?a="":e.showexponent==="all"&&Math.abs(t.x/e.dtick)<1e-6&&(a="hide"),t.text=ng(t.x,e,a,i)}function $5e(e,t,r,i,a){if(e.thetaunit==="radians"&&!r){var n=t.x/180;if(n===0)t.text="0";else{var o=H5e(n);if(o[1]>=100)t.text=ng(ur.deg2rad(t.x),e,a,i);else{var s=t.x<0;o[1]===1?o[0]===1?t.text="\u03C0":t.text=o[0]+"\u03C0":t.text=["",o[0],"","\u2044","",o[1],"","\u03C0"].join(""),s&&(t.text=nd+t.text)}}}else t.text=ng(t.x,e,a,i)}function H5e(e){function t(s,l){return Math.abs(s-l)<=1e-6}function r(s,l){return t(l,0)?s:r(l,s%l)}function i(s){for(var l=1;!t(Math.round(s*l)/l,s);)l*=10;return l}var a=i(e),n=e*a,o=Math.abs(r(n,a));return[Math.round(n/o),Math.round(a/o)]}var _U=["f","p","n","\u03BC","m","","k","M","G","T"],Z5e=["q","r","y","z","a",..._U,"P","E","Z","Y","R","Q"],y1=e=>["SI","SI extended","B"].includes(e);function uM(e){return e>14||e<-15}function cM(e){return e>32||e<-30}function Y5e(e,t){return y1(t)?!!(t==="SI extended"&&cM(e)||t!=="SI extended"&&uM(e)):!1}function ng(e,t,r,i){var a=e<0,n=t._tickround,o=r||t.exponentformat||"B",s=t._tickexponent,l=ut.getTickFormat(t),u=t.separatethousands;if(i){var c={exponentformat:o,minexponent:t.minexponent,dtick:t.showexponent==="none"?t.dtick:Va(e)&&Math.abs(e)||1,range:t.showexponent==="none"?t.range.map(t.r2d):[0,e||1]};lM(c),n=(Number(c._tickround)||0)+4,s=c._tickexponent,t.hoverformat&&(l=t.hoverformat)}if(l)return t._numFormat(l)(e).replace(/-/g,nd);o==="none"&&(s=0),e=Math.abs(e);let h=Math.pow(10,-n)/2;if(e"+f+"":o==="B"&&s===9?e+="B":y1(o)&&(e+=o==="SI extended"?Z5e[s/3+10]:_U[s/3+5])}return a?nd+e:e}ut.getTickFormat=function(e){var t;function r(l){return typeof l!="string"?l:Number(l.replace("M",""))*g1}function i(l,u){var c=["L","D"];if(typeof l==typeof u){if(typeof l=="number")return l-u;var h=c.indexOf(l.charAt(0)),f=c.indexOf(u.charAt(0));return h===f?Number(l.replace(/(L|D)/g,""))-Number(u.replace(/(L|D)/g,"")):h-f}else return typeof l=="number"?1:-1}function a(l,u,c){var h=c||function(p){return p},f=u[0],d=u[1];return(!f&&typeof f!="number"||h(f)<=h(l))&&(!d&&typeof d!="number"||h(d)>=h(l))}function n(l,u){var c=u[0]===null,h=u[1]===null,f=i(l,u[0])>=0,d=i(l,u[1])<=0;return(c||f)&&(h||d)}var o,s;if(e.tickformatstops&&e.tickformatstops.length>0)switch(e.type){case"date":case"linear":{for(t=0;t=0&&a.unshift(a.splice(c,1).shift())}});var s={false:{left:0,right:0}};return ur.syncOrAsync(a.map(function(l){return function(){if(l){var u=ut.getFromId(e,l);r||(r={}),r.axShifts=s,r.overlayingShiftedAx=o;var c=ut.drawOne(e,u,r);return u._shiftPusher&&oM(u,u._fullDepth||0,s,!0),u._r=u.range.slice(),u._rl=ur.simpleMap(u._r,u.r2l),c}}}))};ut.drawOne=function(e,t,r){r=r||{};var i=r.axShifts||{},a=r.overlayingShiftedAx||[],n,o,s;t.setScale();var l=e._fullLayout,u=t._id,c=u.charAt(0),h=ut.counterLetter(u),f=l._plots[t._mainSubplot],d=t.zerolinelayer==="above traces";if(!f)return;if(t._shiftPusher=t.autoshift||a.indexOf(t._id)!==-1||a.indexOf(t.overlaying)!==-1,t._shiftPusher&t.anchor==="free"){var p=t.linewidth/2||0;t.ticks==="inside"&&(p+=t.ticklen),oM(t,p,i,!0),oM(t,t.shift||0,i,!1)}(r.skipTitle!==!0||t._shift===void 0)&&(t._shift=s4e(t,i));var m=f[c+"axislayer"],g=t._mainLinePosition,y=g+=t._shift,x=t._mainMirrorPosition,b=t._vals=ut.calcTicks(t),_=[t.mirror,y,x].join("_");for(n=0;n0?Ae.bottom-Ne:0,$e))));var Se=0,ot=0;if(t._shiftPusher&&(Se=Math.max($e,Ae.height>0?se==="l"?Ne-Ae.left:Ae.right-Ne:0),t.title.text!==l._dfltTitle[c]&&(ot=(t._titleStandoff||0)+(t._titleScoot||0),se==="l"&&(ot+=fU(t))),t._fullDepth=Math.max(Se,ot)),t.automargin){He={x:0,y:0,r:0,l:0,t:0,b:0};var bt=[0,1],Tt=typeof t._shift=="number"?t._shift:0;if(c==="x"){if(se==="b"?He[se]=t._depth:(He[se]=t._depth=Math.max(Ae.width>0?Ne-Ae.top:0,$e),bt.reverse()),Ae.width>0){var ve=Ae.right-(t._offset+t._length);ve>0&&(He.xr=1,He.r=ve);var xe=t._offset-Ae.left;xe>0&&(He.xl=0,He.l=xe)}}else if(se==="l"?(t._depth=Math.max(Ae.height>0?Ne-Ae.left:0,$e),He[se]=t._depth-Tt):(t._depth=Math.max(Ae.height>0?Ae.right-Ne:0,$e),He[se]=t._depth+Tt,bt.reverse()),Ae.height>0){var je=Ae.bottom-(t._offset+t._length);je>0&&(He.yb=0,He.b=je);var nt=t._offset-Ae.top;nt>0&&(He.yt=1,He.t=nt)}He[h]=t.anchor==="free"?t.position:t._anchorAxis.domain[bt[0]],t.title.text!==l._dfltTitle[c]&&(He[se]+=fU(t)+(t.title.standoff||0)),t.mirror&&t.anchor!=="free"&&(it={x:0,y:0,r:0,l:0,t:0,b:0},it[Ue]=t.linewidth,t.mirror&&t.mirror!==!0&&(it[Ue]+=$e),t.mirror===!0||t.mirror==="ticks"?it[h]=t._anchorAxis.domain[bt[1]]:(t.mirror==="all"||t.mirror==="allticks")&&(it[h]=[t._counterDomainMin,t._counterDomainMax][bt[1]]))}Fe&&(ie=tg.getComponentMethod("rangeslider","autoMarginOpts")(e,t)),typeof t.automargin=="string"&&(hU(He,t.automargin),hU(it,t.automargin)),m1.autoMargin(e,hM(t),He),m1.autoMargin(e,bU(t),it),m1.autoMargin(e,wU(t),ie)}),ur.syncOrAsync(Me)}};function hU(e,t){if(e){var r=Object.keys(aU).reduce(function(i,a){return t.indexOf(a)!==-1&&aU[a].forEach(function(n){i[n]=1}),i},{});Object.keys(e).forEach(function(i){r[i]||(i.length===1?e[i]=0:delete e[i])})}}function W5e(e,t){var r=[],i,a=function(n,o){var s=n.xbnd[o];s!==null&&r.push(ur.extendFlat({},n,{x:s}))};if(t.length){for(i=0;ie.range[1],s=e.ticklabelposition&&e.ticklabelposition.indexOf("inside")!==-1,l=!s;if(r){var u=o?-1:1;r=r*u}if(i){var c=e.side,h=s&&(c==="top"||c==="left")||l&&(c==="bottom"||c==="right")?1:-1;i=i*h}return e._id.charAt(0)==="x"?function(f){return v1(a+e._offset+e.l2p(aM(f))+r,n+i)}:function(f){return v1(n+i,a+e._offset+e.l2p(aM(f))+r)}};function aM(e){return e.periodX!==void 0?e.periodX:e.x}function Q5e(e){var t=e.ticklabelposition||"",r=e.tickson||"",i=function(p){return t.indexOf(p)!==-1},a=i("top"),n=i("left"),o=i("right"),s=i("bottom"),l=i("inside"),u=r!=="boundaries"&&(s||n||a||o);if(!u&&!l)return[0,0];var c=e.side,h=u?(e.tickwidth||0)/2:0,f=kb,d=e.tickfont?e.tickfont.size:12;return(s||a)&&(h+=d*od,f+=(e.linewidth||0)/2),(n||o)&&(h+=(e.linewidth||0)/2,f+=kb),l&&c==="top"&&(f-=d*(1-od)),(n||a)&&(h=-h),(c==="bottom"||c==="right")&&(f=-f),[u?h:0,l?f:0]}ut.makeTickPath=function(e,t,r,i){i||(i={});var a=i.minor;if(a&&!e.minor)return"";var n=i.len!==void 0?i.len:a?e.minor.ticklen:e.ticklen,o=e._id.charAt(0),s=(e.linewidth||1)/2;return o==="x"?"M0,"+(t+s*r)+"v"+n*r:"M"+(t+s*r)+",0h"+n*r};ut.makeLabelFns=function(e,t,r){var i=e.ticklabelposition||"",a=e.tickson||"",n=function(L){return i.indexOf(L)!==-1},o=n("top"),s=n("left"),l=n("right"),u=n("bottom"),c=a!=="boundaries"&&(u||s||o||l),h=n("inside"),f=i==="inside"&&e.ticks==="inside"||!h&&e.ticks==="outside"&&a!=="boundaries",d=0,p=0,m=f?e.ticklen:0;if(h?m*=-1:c&&(m=0),f&&(d+=m,r)){var g=ur.deg2rad(r);d=m*Math.cos(g)+1,p=m*Math.sin(g)}e.showticklabels&&(f||e.showline)&&(d+=.2*e.tickfont.size),d+=(e.linewidth||1)/2*(h?-1:1);var y={labelStandoff:d,labelShift:p},x,b,_,A,T=0,M=e.side,S=e._id.charAt(0),k=e.tickangle,P;if(S==="x")P=!h&&M==="bottom"||h&&M==="top",A=P?1:-1,h&&(A*=-1),x=p*A,b=t+d*A,_=P?1:-.2,Math.abs(k)===90&&(h?_+=eg:k===-90&&M==="bottom"?_=od:k===90&&M==="top"?_=eg:_=.5,T=eg/2*(k/90)),y.xFn=function(L){return L.dx+x+T*L.fontSize},y.yFn=function(L){return L.dy+b+L.fontSize*_},y.anchorFn=function(L,z){if(c){if(s)return"end";if(l)return"start"}return!Va(z)||z===0||z===180?"middle":z*A<0!==h?"end":"start"},y.heightFn=function(L,z,q){return z<-60||z>60?-.5*q:e.side==="top"!==h?-q:0};else if(S==="y"){if(P=!h&&M==="left"||h&&M==="right",A=P?1:-1,h&&(A*=-1),x=d,b=p*A,_=0,!h&&Math.abs(k)===90&&(k===-90&&M==="left"||k===90&&M==="right"?_=od:_=.5),h){var I=Va(k)?+k:0;if(I!==0){var B=ur.deg2rad(I);T=Math.abs(Math.sin(B))*od*A,_=0}}y.xFn=function(L){return L.dx+t-(x+L.fontSize*_)*A+T*L.fontSize},y.yFn=function(L){return L.dy+b+L.fontSize*eg},y.anchorFn=function(L,z){return Va(z)&&Math.abs(z)===90?"middle":P?"end":"start"},y.heightFn=function(L,z,q){return e.side==="right"&&(z*=-1),z<-30?-q:z<30?-.5*q:0}}return y};function Pb(e){return[e.text,e.x,e.axInfo,e.font,e.fontSize,e.fontColor].join("_")}ut.drawTicks=function(e,t,r){r=r||{};var i=t._id+"tick",a=[].concat(t.minor&&t.minor.ticks?r.vals.filter(function(o){return o.minor&&!o.noTick}):[]).concat(t.ticks?r.vals.filter(function(o){return!o.minor&&!o.noTick}):[]),n=r.layer.selectAll("path."+i).data(a,Pb);n.exit().remove(),n.enter().append("path").classed(i,1).classed("ticks",1).classed("crisp",r.crisp!==!1).each(function(o){return rg.stroke(xl.select(this),o.minor?t.minor.tickcolor:t.tickcolor)}).style("stroke-width",function(o){return Ns.crispRound(e,o.minor?t.minor.tickwidth:t.tickwidth,1)+"px"}).attr("d",r.path).style("display",null),Ib(t,[dU]),n.attr("transform",r.transFn)};ut.drawGrid=function(e,t,r){if(r=r||{},t.tickmode!=="sync"){var i=t._id+"grid",a=t.minor&&t.minor.showgrid,n=a?r.vals.filter(function(y){return y.minor}):[],o=t.showgrid?r.vals.filter(function(y){return!y.minor}):[],s=r.counterAxis;if(s&&ut.shouldShowZeroLine(e,t,s))for(var l=t.tickmode==="array",u=0;u=0;p--){var m=p?f:d;if(m){var g=m.selectAll("path."+i).data(p?o:n,Pb);g.exit().remove(),g.enter().append("path").classed(i,1).classed("crisp",r.crisp!==!1),g.attr("transform",r.transFn).attr("d",r.path).each(function(y){return rg.stroke(xl.select(this),y.minor?t.minor.gridcolor:t.gridcolor||"#ddd")}).style("stroke-dasharray",function(y){return Ns.dashStyle(y.minor?t.minor.griddash:t.griddash,y.minor?t.minor.gridwidth:t.gridwidth)}).style("stroke-width",function(y){return(y.minor?h:t._gw)+"px"}).style("display",null),typeof r.path=="function"&&g.attr("d",r.path)}}Ib(t,[rM,iM])}};ut.drawZeroLine=function(e,t,r){r=r||r;var i=t._id+"zl",a=ut.shouldShowZeroLine(e,t,r.counterAxis),n=r.layer.selectAll("path."+i).data(a?[{x:0,id:t._id}]:[]);n.exit().remove(),n.enter().append("path").classed(i,1).classed("zl",1).classed("crisp",r.crisp!==!1).each(function(){r.layer.selectAll("path").sort(function(o,s){return E5e(o.id,s.id)})}),n.attr("transform",r.transFn).attr("d",r.path).call(rg.stroke,t.zerolinecolor||rg.defaultLine).style("stroke-width",Ns.crispRound(e,t.zerolinewidth,t._gw||1)+"px").style("display",null),Ib(t,[tM])};ut.drawLabels=function(e,t,r){r=r||{};var i=e._fullLayout,a=t._id,n=t.zerolinelayer==="above traces",o=r.cls||a+"tick",s=r.vals.filter(function(H){return H.text}),l=r.labelFns,u=r.secondary?0:t.tickangle,c=(t._prevTickAngles||{})[o],h=r.layer.selectAll("g."+o).data(t.showticklabels?s:[],Pb),f=[];h.enter().append("g").classed(o,1).append("text").attr("text-anchor","middle").each(function(H){var Z=xl.select(this),Y=e._promises.length;Z.call(ad.positionText,l.xFn(H),l.yFn(H)).call(Ns.font,{family:H.font,size:H.fontSize,color:H.fontColor,weight:H.fontWeight,style:H.fontStyle,variant:H.fontVariant,textcase:H.fontTextcase,lineposition:H.fontLineposition,shadow:H.fontShadow}).text(H.text).call(ad.convertToTspans,e),e._promises[Y]?f.push(e._promises.pop().then(function(){d(Z,u)})):d(Z,u)}),Ib(t,[iU]),h.exit().remove(),r.repositionOnUpdate&&h.each(function(H){xl.select(this).select("text").call(ad.positionText,l.xFn(H),l.yFn(H))});function d(H,Z){H.each(function(Y){var oe=xl.select(this),pe=oe.select(".text-math-group"),De=l.anchorFn(Y,Z),ye=r.transFn.call(oe.node(),Y)+(Va(Z)&&+Z!=0?" rotate("+Z+","+l.xFn(Y)+","+(l.yFn(Y)-Y.fontSize/2)+")":""),de=ad.lineCount(oe),Ce=ag*Y.fontSize,J=l.heightFn(Y,Va(Z)?+Z:0,(de-1)*Ce);if(J&&(ye+=v1(0,J)),pe.empty()){var ue=oe.select("text");ue.attr({transform:ye,"text-anchor":De}),ue.style("display",null),t._adjustTickLabelsOverflow&&t._adjustTickLabelsOverflow()}else{var me=Ns.bBox(pe.node()).width,te=me*{end:-.5,start:.5}[De];pe.attr("transform",ye+v1(te,0))}})}t._adjustTickLabelsOverflow=function(){var H=t.ticklabeloverflow;if(!(!H||H==="allow")){var Z=H.indexOf("hide")!==-1,Y=t._id.charAt(0)==="x",oe=0,pe=Y?e._fullLayout.width:e._fullLayout.height;if(H.indexOf("domain")!==-1){var De=ur.simpleMap(t.range,t.r2l);oe=t.l2p(De[0])+t._offset,pe=t.l2p(De[1])+t._offset}var ye=Math.min(oe,pe),de=Math.max(oe,pe),Ce=t.side,J=1/0,ue=-1/0;h.each(function(fe){var ge=xl.select(this),Re=ge.select(".text-math-group");if(Re.empty()){var Ve=Ns.bBox(ge.node()),Me=0;Y?(Ve.right>de||Ve.leftde||Ve.top+(t.tickangle?0:fe.fontSize/4)t["_visibleLabelMin_"+De._id]?ge.style("display","none"):de.K==="tick"&&!ye&&ge.node().style.display!=="none"&&ge.style("display",null)})})})})},d(h,c+1?c:u);function p(){return f.length&&Promise.all(f)}var m=null;function g(){if(d(h,u),s.length&&t.autotickangles&&(t.type!=="log"||String(t.dtick).charAt(0)!=="D")){m=t.autotickangles[0];var H=0,Z=[],Y,oe=1;h.each(function(He){H=Math.max(H,He.fontSize);var it=t.l2p(He.x),ie=nM(this),Se=Ns.bBox(ie.node());oe=Math.max(oe,ad.lineCount(ie)),Z.push({top:0,bottom:10,height:10,left:it-Se.width/2,right:it+Se.width/2+2,width:Se.width+2})});var pe=(t.tickson==="boundaries"||t.showdividers)&&!r.secondary,De=s.length,ye=Math.abs((s[De-1].x-s[0].x)*t._m)/(De-1),de=pe?ye/2:ye,Ce=pe?t.ticklen:H*1.25*oe,J=Math.sqrt(Math.pow(de,2)+Math.pow(Ce,2)),ue=de/J,me=t.autotickangles.map(function(He){return He*Math.PI/180}),te=me.find(function(He){return Math.abs(Math.cos(He))<=ue});te===void 0&&(te=me.reduce(function(He,it){return Math.abs(Math.cos(He))V*q&&(B=q,k[S]=P[S]=L[S])}var j=Math.abs(B-I);j-A>0?(j-=A,A*=1+A/j):A=0,t._id.charAt(0)!=="y"&&(A=-A),k[M]=b.p2r(b.r2p(P[M])+T*A),b.autorange==="min"||b.autorange==="max reversed"?(k[0]=null,b._rangeInitial0=void 0,b._rangeInitial1=void 0):(b.autorange==="max"||b.autorange==="min reversed")&&(k[1]=null,b._rangeInitial0=void 0,b._rangeInitial1=void 0),i._insideTickLabelsUpdaterange[b._name+".range"]=k}var $=ur.syncOrAsync(y);return $&&$.then&&e._promises.push($),$};function e4e(e,t,r){var i=t._id+"divider",a=r.vals,n=r.layer.selectAll("path."+i).data(a,Pb);n.exit().remove(),n.enter().insert("path",":first-child").classed(i,1).classed("crisp",1).call(rg.stroke,t.dividercolor).style("stroke-width",Ns.crispRound(e,t.dividerwidth,1)+"px"),n.attr("transform",r.transFn).attr("d",r.path)}ut.getPxPosition=function(e,t){var r=e._fullLayout._size,i=t._id.charAt(0),a=t.side,n;if(t.anchor!=="free"?n=t._anchorAxis:i==="x"?n={_offset:r.t+(1-(t.position||0))*r.h,_length:0}:i==="y"&&(n={_offset:r.l+(t.position||0)*r.w+t._shift,_length:0}),a==="top"||a==="left")return n._offset;if(a==="bottom"||a==="right")return n._offset+n._length};function fU(e){var t=e.title.font.size,r=(e.title.text.match(ad.BR_TAG_ALL)||[]).length;return e.title.hasOwnProperty("standoff")?t*(od+r*ag):r?t*(r+1)*ag:t}function t4e(e,t){var r=e._fullLayout,i=t._id,a=i.charAt(0),n=t.title.font.size,o,s=(t.title.text.match(ad.BR_TAG_ALL)||[]).length;if(t.title.hasOwnProperty("standoff"))t.side==="bottom"||t.side==="right"?o=t._depth+t.title.standoff+n*od:(t.side==="top"||t.side==="left")&&(o=t._depth+t.title.standoff+n*(eg+s*ag));else{var l=og(t);if(t.type==="multicategory")o=t._depth;else{var u=1.5*n;l&&(u=.5*n,t.ticks==="outside"&&(u+=t.ticklen)),o=10+u+(t.linewidth?t.linewidth-1:0)}l||(a==="x"?o+=t.side==="top"?n*(t.showticklabels?1:0):n*(t.showticklabels?1.5:.5):o+=t.side==="right"?n*(t.showticklabels?1:.5):n*(t.showticklabels?.5:0))}var c=ut.getPxPosition(e,t),h,f,d;a==="x"?(f=t._offset+t._length/2,d=t.side==="top"?c-o:c+o):(d=t._offset+t._length/2,f=t.side==="right"?c+o:c-o,h={rotate:"-90",offset:0});var p;if(t.type!=="multicategory"){var m=t._selections[t._id+"tick"];if(p={selection:m,side:t.side},m&&m.node()&&m.node().parentNode){var g=Ns.getTranslate(m.node().parentNode);p.offsetLeft=g.x,p.offsetTop=g.y}t.title.hasOwnProperty("standoff")&&(p.pad=0)}return t._titleStandoff=o,_5e.draw(e,i+"title",{propContainer:t,propName:t._name+".title.text",placeholder:r._dfltTitle[a],avoid:p,transform:h,attributes:{x:f,y:d,"text-anchor":"middle"}})}ut.shouldShowZeroLine=function(e,t,r){var i=ur.simpleMap(t.range,t.r2l);return i[0]*i[1]<=0&&t.zeroline&&(t.type==="linear"||t.type==="-")&&!(t.rangebreaks&&t.maskBreaks(0)===Cb)&&(xU(t,0)||!r4e(e,t,r,i)||i4e(e,t))};ut.clipEnds=function(e,t){return t.filter(function(r){return xU(e,r.x)})};function xU(e,t){var r=e.l2p(t);return r>1&&r1)for(a=1;a=a.min&&e=M5e:/%L/.test(t)?e>=T5e:/%[SX]/.test(t)?e>=Eb:/%M/.test(t)?e>=ig:/%[HI]/.test(t)?e>=uc:/%p/.test(t)?e>=mf:/%[Aadejuwx]/.test(t)?e>=Eo:/%[UVW]/.test(t)?e>=Vs:/%[Bbm]/.test(t)?e>=Sb:/%[q]/.test(t)?e>=Db:/%[Yy]/.test(t)?e>=Mb:!0}});var MU=X(($et,TU)=>{"use strict";TU.exports=function(t,r,i){var a,n;if(i){var o=r==="reversed"||r==="min reversed"||r==="max reversed";a=i[o?1:0],n=i[o?0:1]}var s=t("autorangeoptions.minallowed",n===null?a:void 0),l=t("autorangeoptions.maxallowed",a===null?n:void 0);s===void 0&&t("autorangeoptions.clipmin"),l===void 0&&t("autorangeoptions.clipmax"),t("autorangeoptions.include")}});var dM=X((Het,DU)=>{"use strict";var u4e=MU();DU.exports=function(t,r,i,a){var n=r._template||{},o=r.type||n.type||"-";i("minallowed"),i("maxallowed");var s=i("range");if(!s){var l;!a.noInsiderange&&o!=="log"&&(l=i("insiderange"),l&&(l[0]===null||l[1]===null)&&(r.insiderange=!1,l=void 0),l&&(s=i("range",l)))}var u=r.getAutorangeDflt(s,a),c=i("autorange",u),h;s&&(s[0]===null&&s[1]===null||(s[0]===null||s[1]===null)&&(c==="reversed"||c===!0)||s[0]!==null&&(c==="min"||c==="max reversed")||s[1]!==null&&(c==="max"||c==="min reversed"))&&(s=void 0,delete r.range,r.autorange=!0,h=!0),h||(u=r.getAutorangeDflt(s,a),c=i("autorange",u)),c&&(u4e(i,c,s),(o==="linear"||o==="-")&&i("rangemode")),r.cleanRange()}});var EU=X((Zet,SU)=>{var c4e={left:0,top:0};SU.exports=h4e;function h4e(e,t,r){t=t||e.currentTarget||e.srcElement,Array.isArray(r)||(r=[0,0]);var i=e.clientX||0,a=e.clientY||0,n=f4e(t);return r[0]=i-n.left,r[1]=a-n.top,r}function f4e(e){return e===window||e===document||e===document.body?c4e:e.getBoundingClientRect()}});var pM=X((Yet,kU)=>{"use strict";var d4e=q7();function p4e(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch(r){e=!1}return e}kU.exports=d4e&&p4e()});var FU=X((Wet,CU)=>{"use strict";CU.exports=function(t,r,i,a,n){var o=(t-i)/(a-i),s=o+r/(a-i),l=(o+s)/2;return n==="left"||n==="bottom"?o:n==="center"||n==="middle"?l:n==="right"||n==="top"?s:o<2/3-l?o:s>4/3-l?s:l}});var LU=X((Xet,IU)=>{"use strict";var PU=tt(),m4e=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];IU.exports=function(t,r,i,a){return i==="left"?t=0:i==="center"?t=1:i==="right"?t=2:t=PU.constrain(Math.floor(t*3),0,2),a==="bottom"?r=0:a==="middle"?r=1:a==="top"?r=2:r=PU.constrain(Math.floor(r*3),0,2),m4e[r][t]}});var RU=X((Ket,zU)=>{"use strict";var v4e=Uv(),g4e=zx(),y4e=Lv().getGraphDiv,_4e=(mv(),lt(pv)),mM=zU.exports={};mM.wrapped=function(e,t,r){var n;e=y4e(e),e._fullLayout&&g4e.clear(e._fullLayout._uid+_4e.HOVERID);let i=e._hoverdata;mM.raw(e,t,r)&&e._hoverAnywhereActive&&(e._hoverAnywhereActive=!1,(n=e._fullLayout)!=null&&n.hoveranywhere&&(t!=null&&t.target)&&!i&&e.emit("plotly_unhover",{event:t,points:[]}))};mM.raw=function(t,r){var i=t._fullLayout,a=t._hoverdata;return r||(r={}),r.target&&!t._dragged&&v4e.triggerHandler(t,"plotly_beforehover",r)===!1?!1:(i._hoverlayer.selectAll("g").remove(),i._hoverlayer.selectAll("line").remove(),i._hoverlayer.selectAll("circle").remove(),t._hoverdata=void 0,r.target&&a&&t.emit("plotly_unhover",{event:r,points:a}),!0)}});var bl=X((Jet,NU)=>{"use strict";var x4e=EU(),vM=N7(),b4e=pM(),w4e=tt().removeElement,A4e=(xn(),lt(_n)),sd=NU.exports={};sd.align=FU();sd.getCursor=LU();var qU=RU();sd.unhover=qU.wrapped;sd.unhoverRaw=qU.raw;sd.init=function(t){var r=t.gd,i=1,a=r._context.doubleClickDelay,n=t.element,o,s,l,u,c,h,f,d;r._mouseDownTime||(r._mouseDownTime=0),n.style.pointerEvents="all",n.onmousedown=g,b4e?(n._ontouchstart&&n.removeEventListener("touchstart",n._ontouchstart),n._ontouchstart=g,n.addEventListener("touchstart",g,{passive:!1})):n.ontouchstart=g;function p(b,_,A){return Math.abs(b)a&&(i=Math.max(i-1,1)),r._dragged)t.doneFn&&t.doneFn();else{var _;h.target===f?_=h:(_={target:f,srcElement:f,toElement:f},Object.keys(h).concat(Object.keys(h.__proto__)).forEach(A=>{var T=h[A];!_[A]&&typeof T!="function"&&(_[A]=T)})),t.clickFn&&t.clickFn(i,_),d||f.dispatchEvent(new MouseEvent("click",b))}r._dragging=!1,r._dragged=!1}};function OU(){var e=document.createElement("div");e.className="dragcover";var t=e.style;return t.position="fixed",t.left=0,t.right=0,t.top=0,t.bottom=0,t.zIndex=999999999,t.background="none",document.body.appendChild(e),e}sd.coverSlip=OU;function BU(e){return x4e(e.changedTouches?e.changedTouches[0]:e,document.body)}});var vf=X((Qet,VU)=>{"use strict";VU.exports=function(t,r){(t.attr("class")||"").split(" ").forEach(function(i){i.indexOf("cursor-")===0&&t.classed(i,!1)}),r&&t.classed("cursor-"+r,!0)}});var jU=X((ett,GU)=>{"use strict";var gM=vf(),sg="data-savedcursor",UU="!!";GU.exports=function(t,r){var i=t.attr(sg);if(r){if(!i){for(var a=(t.attr("class")||"").split(" "),n=0;nF4e,itemGap:()=>C4e,itemHeightPad:()=>I4e,itemMinHeight:()=>P4e,scrollBarColor:()=>D4e,scrollBarEnterAttrs:()=>E4e,scrollBarMargin:()=>S4e,scrollBarMinHeight:()=>M4e,scrollBarWidth:()=>T4e,titlePad:()=>k4e});var T4e,M4e,D4e,S4e,E4e,k4e,C4e,F4e,P4e,I4e,zb=Gi(()=>{"use strict";T4e=6,M4e=20,D4e="#808BA4",S4e=4,E4e={rx:20,ry:3,width:0,height:0},k4e=2,C4e=5,F4e=6,P4e=16,I4e=3});var _M=X((ttt,HU)=>{"use strict";var yM=oo(),L4e=ec(),{dfltFillHeight:$U}=(zb(),lt(Lb));HU.exports={_isSubplotObj:!0,visible:{valType:"boolean",dflt:!0,editType:"legend"},bgcolor:{valType:"color",editType:"legend"},bordercolor:{valType:"color",dflt:L4e.defaultLine,editType:"legend"},maxheight:{valType:"number",min:0,editType:"legend"},borderwidth:{valType:"number",min:0,dflt:0,editType:"legend"},font:yM({editType:"legend"}),grouptitlefont:yM({editType:"legend"}),orientation:{valType:"enumerated",values:["v","h"],dflt:"v",editType:"legend"},traceorder:{valType:"flaglist",flags:["reversed","grouped"],extras:["normal"],editType:"legend"},tracegroupgap:{valType:"number",min:0,dflt:10,editType:"legend"},entrywidth:{valType:"number",min:0,editType:"legend"},entrywidthmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels",editType:"legend"},indentation:{valType:"number",min:-15,dflt:0,editType:"legend"},itemsizing:{valType:"enumerated",values:["trace","constant"],dflt:"trace",editType:"legend"},itemwidth:{valType:"number",min:30,dflt:30,editType:"legend"},itemheight:{valType:"number",min:$U,dflt:$U,editType:"legend"},itemclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggle",editType:"legend"},itemdoubleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggleothers",editType:"legend"},groupclick:{valType:"enumerated",values:["toggleitem","togglegroup"],dflt:"togglegroup",editType:"legend"},groupdoubleclick:{valType:"enumerated",values:["toggleitem","togglegroup"],editType:"legend"},titleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],editType:"legend"},titledoubleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],editType:"legend"},x:{valType:"number",editType:"legend"},xref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"legend"},y:{valType:"number",editType:"legend"},yref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],editType:"legend"},uirevision:{valType:"any",editType:"none"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"legend"},title:{text:{valType:"string",dflt:"",editType:"legend"},font:yM({editType:"legend"}),side:{valType:"enumerated",values:["top","left","top left","top center","top right"],editType:"legend"},editType:"legend"},editType:"legend"}});var ug=X(lg=>{"use strict";lg.isGrouped=function(t){return(t.traceorder||"").indexOf("grouped")!==-1};lg.isVertical=function(t){return t.orientation!=="h"};lg.isReversed=function(t){return(t.traceorder||"").indexOf("reversed")!==-1};lg.getId=function(t){return t._id||"legend"}});var bM=X((itt,ZU)=>{"use strict";var Rb=mr(),Us=tt(),z4e=qi(),R4e=Wo(),B4e=_M(),q4e=Wp(),xM=ug();function O4e(e,t,r,i,a){var n=t[e]||{},o=z4e.newContainer(r,e);function s(Z,Y){return Us.coerce(n,o,B4e,Z,Y)}var l=Us.coerceFont(s,"font",r.font);s("bgcolor",r.paper_bgcolor),s("bordercolor");var u=s("visible");if(!u)return;var c,h=function(Z,Y){var oe=c._input,pe=c;return Us.coerce(oe,pe,R4e,Z,Y)},f=r.font||{},d=Us.coerceFont(s,"grouptitlefont",f,{overrideDflt:{size:Math.round(f.size*1.1)}}),p=0,m=!1,g="normal",y=(r.shapes||[]).filter(function(Z){return Z.showlegend});function x(Z){return Rb.traceIs(Z,"pie-like")&&Z._length!=null&&(Array.isArray(Z.legend)||Array.isArray(Z.showlegend))}i.filter(x).forEach(function(Z){Z.visible&&p++;for(var Y=0;YZ.legend.length)for(var pe=Z.legend.length;pe(e==="legend"?1:0));if(T===!1&&(r[e]=void 0),T===!1&&!n.uirevision||(s("uirevision",r.uirevision),T===!1))return;s("borderwidth");var M=s("orientation"),S=s("yref"),k=s("xref"),P=M==="h",I=S==="paper",B=k==="paper",L,z,q,V="left";P?(L=0,Rb.getComponentMethod("rangeslider","isVisible")(t.xaxis)?I?(z=1.1,q="bottom"):(z=1,q="top"):I?(z=-.1,q="top"):(z=0,q="bottom")):(z=1,q="auto",B?L=1.02:(L=1,V="right")),Us.coerce(n,o,{x:{valType:"number",editType:"legend",min:B?-2:0,max:B?3:1,dflt:L}},"x"),Us.coerce(n,o,{y:{valType:"number",editType:"legend",min:I?-2:0,max:I?3:1,dflt:z}},"y"),s("traceorder",g),xM.isGrouped(r[e])&&s("tracegroupgap"),s("entrywidth"),s("entrywidthmode"),s("indentation"),s("itemsizing"),s("itemwidth"),s("itemheight"),s("itemclick"),s("itemdoubleclick");let j=s("groupclick");s("groupdoubleclick",j),s("xanchor",V),s("yanchor",q),s("maxheight"),s("valign"),Us.noneOrAll(n,o,["x","y"]);var $=s("title.text");if($){s("title.side",P?"left":"top");var H=Us.extendFlat({},l,{size:Us.bigFont(l.size)});Us.coerceFont(s,"title.font",H);let Z=a>1;s("titleclick",Z?"toggle":!1),s("titledoubleclick",Z?"toggleothers":!1)}}ZU.exports=function(t,r,i){var a,n=i.slice(),o=r.shapes;if(o)for(a=0;a{"use strict";var gf=mr(),wM=tt(),N4e=wM.pushUnique,V4e=ug(),YU=!0;AM.handleItemClick=function(t,r,i,a,n){var o=r._fullLayout;if(r._dragged||r._editing)return;var s=t.data()[0][0];if(s.groupTitle&&s.noClick)return;let l=n===2?i.groupdoubleclick:i.groupclick;a==="toggle"&&i.itemdoubleclick==="toggleothers"&&YU&&r.data&&r._context.showTips&&(wM.notifier(wM._(r,"Double-click on legend to isolate one trace"),"long",r),YU=!1);var u=l==="togglegroup",c=o.hiddenlabels?o.hiddenlabels.slice():[],h=r._fullData;let f=(o.shapes||[]).filter(Pe=>Pe.showlegend||Pe.legendgroup);var d=h.concat(f),p=s.trace;p._isShape&&(p=o.shapes[p.index]);var m=p.legendgroup,g,y,x,b,_,A,T={},M=[],S=[],k=[];function P(Pe,Fe){var se=M.indexOf(Pe),Ue=T.visible;return Ue||(Ue=T.visible=[]),M.indexOf(Pe)===-1&&(M.push(Pe),se=M.length-1),Ue[se]=Fe,se}var I=(o.shapes||[]).map(function(Pe){return Pe._input}),B=!1;function L(Pe,Fe){I[Pe].visible=Fe,B=!0}function z(Pe,Fe){if(!(s.groupTitle&&!u)){var se=Pe._isShape,Ue=Pe.index;Ue===void 0&&(Ue=Pe._index);var Ne=Pe.visible===!1?!1:Fe;se?L(Ue,Ne):P(Ue,Ne)}}var q=p.legend;if(!p._isShape&&gf.traceIs(p,"pie-like")){var V=s.label,j=c.indexOf(V);if(a==="toggle")j===-1?c.push(V):c.splice(j,1);else if(a==="toggleothers"){var $=j!==-1,H=[];for(g=0;gy.showlegend||y.legendgroup),l=n.concat(s);function u(y){return(y.legend||"legend")===o}var c,h;if(i==="toggle")c=!l.some(function(x){return u(x)&&x.visible===!0}),h=!1;else{let y=l.some(function(x){return!u(x)&&x.visible===!0&&x.showlegend!==!1});c=!0,h=!y}let f={visible:[]},d=[],p=(a.shapes||[]).map(function(y){return y._input});for(var m=!1,g=0;g{"use strict";var{isArrayOrTypedArray:MM}=hs(),WU=mr(),DM=ug();XU.exports=function(t,r,i){var a=r._inHover,n=DM.isGrouped(r),o=DM.isReversed(r),s={},l=[],u=!1,c={},h=0,f=0,d,p;function m(Z,Y,oe){if(r.visible!==!1&&!(i&&Z!==r._id))if(Y===""||!DM.isGrouped(r)){var pe="~~i"+h;l.push(pe),s[pe]=[oe],h++}else l.indexOf(Y)===-1?(l.push(Y),u=!0,s[Y]=[oe]):s[Y].push(oe)}for(d=0;dL&&(I=L)}k[d][0]._groupMinRank=I,k[d][0]._preGroupSort=d}var z=function(Z,Y){return Z[0]._groupMinRank-Y[0]._groupMinRank||Z[0]._preGroupSort-Y[0]._preGroupSort},q=function(Z,Y){var oe=MM(Z.trace.legendrank)?Z.trace.legendrank[Z.i]:Z.trace.legendrank,pe=MM(Y.trace.legendrank)?Y.trace.legendrank[Y.i]:Y.trace.legendrank;return oe-pe||Z._preSort-Y._preSort};for(k.forEach(function(Z,Y){Z[0]._preGroupSort=Y}),k.sort(z),d=0;d{"use strict";var Bb=tt();function JU(e){return e.indexOf("e")!==-1?e.replace(/[.]?0+e/,"e"):e.indexOf(".")!==-1?e.replace(/[.]?0+$/,""):e}ld.formatPiePercent=function(t,r){var i=JU((t*100).toPrecision(3));return Bb.numSeparate(i,r)+"%"};ld.formatPieValue=function(t,r){var i=JU(t.toPrecision(10));return Bb.numSeparate(i,r)};ld.getFirstFilled=function(t,r){if(Bb.isArrayOrTypedArray(t))for(var i=0;i{"use strict";var U4e=xi(),G4e=Vr();QU.exports=function(t,r,i,a){var n=i.marker.pattern;n&&n.shape?U4e.pointStyle(t,i,a,r):G4e.fill(t,r.color)}});var aG=X((ltt,iG)=>{"use strict";var tG=Vr(),rG=SM().castOption,j4e=eG();iG.exports=function(t,r,i,a){var n=i.marker.line,o=rG(n.color,r.pts)||tG.defaultLine,s=rG(n.width,r.pts)||0;t.call(j4e,r,i,a).style("stroke-width",s).call(tG.stroke,o)}});var PM=X((utt,uG)=>{"use strict";var ko=Qr(),EM=mr(),co=tt(),kM=co.strTranslate,Gs=xi(),wl=Vr(),CM=ic().extractOpts,Ob=So(),$4e=aG(),H4e=SM().castOption,nG=(zb(),lt(Lb)),oG=12,sG=5,ud=2,Z4e=10,_1=5;uG.exports=function(t,r,i){var a=r._fullLayout;i||(i=a.legend);var n=i.itemsizing==="constant",o=i.itemwidth,s=i.itemheight,l=(o+nG.itemGap*2)/2,u=kM(l,0),c=function(S,k,P,I){var B;if(S+1)B=S;else if(k&&k.width>0)B=k.width;else return 0;return n?I:Math.min(B,P)};t.each(function(S){var k=ko.select(this),P=co.ensureSingle(k,"g","layers");P.style("opacity",S[0].trace.opacity);var I=i.indentation,B=i.valign,L=S[0].lineHeight,z=S[0].height;if(B==="middle"&&I===0||!L||!z)P.attr("transform",null);else{var q={top:1,bottom:-1}[B],V=q*(.5*(L-z+3))||0,j=i.indentation;P.attr("transform",kM(j,V))}var $=P.selectAll("g.legendfill").data([S]);$.enter().append("g").classed("legendfill",!0);var H=P.selectAll("g.legendlines").data([S]);H.enter().append("g").classed("legendlines",!0);var Z=P.selectAll("g.legendsymbols").data([S]);Z.enter().append("g").classed("legendsymbols",!0),Z.selectAll("g.legendpoints").data([S]).enter().append("g").classed("legendpoints",!0)}).each(M).each(d).each(m).each(p).each(y).each(A).each(_).each(h).each(f).each(x).each(b);function h(S){var k=lG(S),P=k.showFill,I=k.showLine,B=k.showGradientLine,L=k.showGradientFill,z=k.anyFill,q=k.anyLine,V=S[0],j=V.trace,$,H,Z=CM(j),Y=Z.colorscale,oe=Z.reversescale,pe=function(te){if(te.size())if(P)Gs.fillGroupStyle(te,r,!0);else{var re="legendfill-"+j.uid;Gs.gradient(te,r,re,FM(oe),Y,"fill")}},De=function(te){if(te.size()){var re="legendline-"+j.uid;Gs.lineGroupStyle(te),Gs.gradient(te,r,re,FM(oe),Y,"stroke")}},ye=Ob.hasMarkers(j)||!z?"M5,0":q?"M5,-2":"M5,-3",de=ko.select(this),Ce=de.select(".legendfill").selectAll("path").data(P||L?[S]:[]);Ce.enter().append("path").classed("js-fill",!0),Ce.exit().remove(),Ce.attr("d",ye+"h"+o+"v"+s+"h-"+o+"z").call(pe);let J=P||L?(nG.dfltFillHeight-s)/2:0;if(de.selectAll("g.legendfill, g.legendlines, g.legendsymbols").attr("transform",J?kM(0,J):null),I||B){var ue=c(void 0,j.line,Z4e,sG);H=co.minExtend(j,{line:{width:ue}}),$=[co.minExtend(V,{trace:H})]}var me=de.select(".legendlines").selectAll("path").data(I||B?[$]:[]);me.enter().append("path").classed("js-line",!0),me.exit().remove(),me.attr("d",ye+(B?"l"+o+",0.0001":"h"+o)).call(I?Gs.lineGroupStyle:De)}function f(S){var k=lG(S),P=k.anyFill,I=k.anyLine,B=k.showLine,L=k.showMarker,z=S[0],q=z.trace,V=!L&&!I&&!P&&Ob.hasText(q),j,$;function H(J,ue,me,te){var re=co.nestedProperty(q,J).get(),fe=co.isArrayOrTypedArray(re)&&ue?ue(re):re;if(n&&fe&&te!==void 0&&(fe=te),me){if(feme[1])return me[1]}return fe}function Z(J){return z._distinct&&z.index&&J[z.index]?J[z.index]:J[0]}if(L||V||B){var Y={},oe={};if(L){Y.mc=H("marker.color",Z);var pe=q.type==="scattermap";Y.mx=pe?"circle":H("marker.symbol",Z),Y.mo=H("marker.opacity",co.mean,[.2,1]),Y.mlc=H("marker.line.color",Z),Y.mlw=H("marker.line.width",co.mean,[0,5],ud),Y.mld=H("marker.line.dash",Z),oe.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var De=H("marker.size",co.mean,[2,16],oG);Y.ms=De,oe.marker.size=De}B&&(oe.line={width:H("line.width",Z,[0,10],sG)}),V&&(Y.tx="Aa",Y.tp=H("textposition",Z),Y.ts=10,Y.tc=H("textfont.color",Z),Y.tf=H("textfont.family",Z),Y.tw=H("textfont.weight",Z),Y.ty=H("textfont.style",Z),Y.tv=H("textfont.variant",Z),Y.tC=H("textfont.textcase",Z),Y.tE=H("textfont.lineposition",Z),Y.tS=H("textfont.shadow",Z)),j=[co.minExtend(z,Y)],$=co.minExtend(q,oe),$.selectedpoints=null,$.texttemplate=null}var ye=ko.select(this).select("g.legendpoints"),de=ye.selectAll("path.scatterpts").data(L?j:[]);de.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",u),de.exit().remove(),de.call(Gs.pointStyle,$,r),L&&(j[0].mrc=3);var Ce=ye.selectAll("g.pointtext").data(V?j:[]);Ce.enter().append("g").classed("pointtext",!0).append("text").attr("transform",u),Ce.exit().remove(),Ce.selectAll("text").call(Gs.textPointStyle,$,r)}function d(S){var k=S[0].trace,P=k.type==="waterfall";if(S[0]._distinct&&P){var I=S[0].trace[S[0].dir].marker;return S[0].mc=I.color,S[0].mlw=I.line.width,S[0].mlc=I.line.color,g(S,this,"waterfall")}var B=[];k.visible&&P&&(B=S[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 L=ko.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data(B);L.enter().append("path").classed("legendwaterfall",!0).attr("transform",u).style("stroke-miterlimit",1),L.exit().remove(),L.each(function(z){var q=ko.select(this),V=k[z[0]].marker,j=c(void 0,V.line,_1,ud);q.attr("d",z[1]).style("stroke-width",j+"px").call(wl.fill,V.color),j&&q.call(wl.stroke,V.line.color)})}function p(S){g(S,this)}function m(S){g(S,this,"funnel")}function g(S,k,P){var I=S[0].trace,B=I.marker||{},L=B.line||{},z=B.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",q=P?I.visible&&I.type===P:EM.traceIs(I,"bar"),V=ko.select(k).select("g.legendpoints").selectAll("path.legend"+P).data(q?[S]:[]);V.enter().append("path").classed("legend"+P,!0).attr("d",z).attr("transform",u),V.exit().remove(),V.each(function(j){var $=ko.select(this),H=j[0],Z=c(H.mlw,B.line,_1,ud);$.style("stroke-width",Z+"px");var Y=H.mcc;if(!i._inHover&&"mc"in H){var oe=CM(B),pe=oe.mid;pe===void 0&&(pe=(oe.max+oe.min)/2),Y=Gs.tryColorscale(B,"")(pe)}var De=Y||H.mc||B.color,ye=B.pattern,de=Gs.getPatternAttr;let Ce=0;i._inHover&&H._distinct&&H.index!=null&&(Ce=H.index);let J=ye&&(de(ye.shape,Ce,"")||de(ye.path,Ce,""));if(J){let me=de(ye.bgcolor,Ce,null),te=de(ye.fgcolor,Ce,null);var ue=ye.fgopacity;let re=i._inHover?qb(de(ye.size,Ce,8),8,10):qb(ye.size,8,10),fe=i._inHover?qb(de(ye.solidity,Ce,.5),.5,1):qb(ye.solidity,.5,1),ge=i._inHover?`hover-${I.uid}-${Ce}`:`legend-${I.uid}`;$.call(Gs.pattern,"legend",r,ge,J,re,fe,Y,ye.fillmode,me,te,ue)}else $.call(wl.fill,De);Z&&wl.stroke($,H.mlc||L.color)})}function y(S){var k=S[0].trace,P=ko.select(this).select("g.legendpoints").selectAll("path.legendbox").data(k.visible&&EM.traceIs(k,"box-violin")?[S]:[]);P.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform",u),P.exit().remove(),P.each(function(){var I=ko.select(this);if((k.boxpoints==="all"||k.points==="all")&&wl.opacity(k.fillcolor)===0&&wl.opacity((k.line||{}).color)===0){var B=co.minExtend(k,{marker:{size:n?oG:co.constrain(k.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});P.call(Gs.pointStyle,B,r)}else{var L=c(void 0,k.line,_1,ud);I.style("stroke-width",L+"px").call(wl.fill,k.fillcolor),L&&wl.stroke(I,k.line.color)}})}function x(S){var k=S[0].trace,P=ko.select(this).select("g.legendpoints").selectAll("path.legendcandle").data(k.visible&&k.type==="candlestick"?[S,S]:[]);P.enter().append("path").classed("legendcandle",!0).attr("d",function(I,B){return B?"M-15,0H-8M-8,6V-6H8Z":"M15,0H8M8,-6V6H-8Z"}).attr("transform",u).style("stroke-miterlimit",1),P.exit().remove(),P.each(function(I,B){var L=ko.select(this),z=k[B?"increasing":"decreasing"],q=c(void 0,z.line,_1,ud);L.style("stroke-width",q+"px").call(wl.fill,z.fillcolor),q&&wl.stroke(L,z.line.color)})}function b(S){var k=S[0].trace,P=ko.select(this).select("g.legendpoints").selectAll("path.legendohlc").data(k.visible&&k.type==="ohlc"?[S,S]:[]);P.enter().append("path").classed("legendohlc",!0).attr("d",function(I,B){return B?"M-15,0H0M-8,-6V0":"M15,0H0M8,6V0"}).attr("transform",u).style("stroke-miterlimit",1),P.exit().remove(),P.each(function(I,B){var L=ko.select(this),z=k[B?"increasing":"decreasing"],q=c(void 0,z.line,_1,ud);L.style("fill","none").call(Gs.dashLine,z.line.dash,q),q&&wl.stroke(L,z.line.color)})}function _(S){T(S,this,"pie")}function A(S){T(S,this,"funnelarea")}function T(S,k,P){var I=S[0],B=I.trace,L=P?B.visible&&B.type===P:EM.traceIs(B,P),z=ko.select(k).select("g.legendpoints").selectAll("path.legend"+P).data(L?[S]:[]);if(z.enter().append("path").classed("legend"+P,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",u),z.exit().remove(),z.size()){var q=B.marker||{},V=c(H4e(q.line.width,I.pts),q.line,_1,ud),j="pieLike",$=co.minExtend(B,{marker:{line:{width:V}}},j),H=co.minExtend(I,{trace:$},j);$4e(z,H,$,r)}}function M(S){var k=S[0].trace,P,I=[];if(k.visible)switch(k.type){case"histogram2d":case"heatmap":I=[["M-15,-2V4H15V-2Z"]],P=!0;break;case"choropleth":case"choroplethmap":I=[["M-6,-6V6H6V-6Z"]],P=!0;break;case"densitymap":I=[["M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"]],P="radial";break;case"cone":I=[["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"]],P=!1;break;case"streamtube":I=[["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"]],P=!1;break;case"surface":I=[["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"]],P=!0;break;case"mesh3d":I=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],P=!1;break;case"volume":I=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],P=!0;break;case"isosurface":I=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6 A12,24 0 0,0 6,-6 L0,6Z"]],P=!1;break}var B=ko.select(this).select("g.legendpoints").selectAll("path.legend3dandfriends").data(I);B.enter().append("path").classed("legend3dandfriends",!0).attr("transform",u).style("stroke-miterlimit",1),B.exit().remove(),B.each(function(L,z){var q=ko.select(this),V=CM(k),j=V.colorscale,$=V.reversescale,H=function(pe){if(pe.size()){var De="legendfill-"+k.uid;Gs.gradient(pe,r,De,FM($,P==="radial"),j,"fill")}},Z;if(j){if(!P){var oe=j.length;Z=z===0?j[$?oe-1:0][1]:z===1?j[$?0:oe-1][1]:j[Math.floor((oe-1)/2)][1]}}else{var Y=k.vertexcolor||k.facecolor||k.color;Z=co.isArrayOrTypedArray(Y)?Y[z]||Y[0]:Y}q.attr("d",L[0]),Z?q.call(wl.fill,Z):q.call(H)})}};function FM(e,t){var r=t?"radial":"horizontal";return r+(e?"":"reversed")}function lG(e){var t=e[0].trace,r=t.contours,i=Ob.hasLines(t)||t.visible&&t.type==="quiver",a=Ob.hasMarkers(t),n=t.visible&&t.fill&&t.fill!=="none",o=!1,s=!1;if(r){var l=r.coloring;l==="lines"?o=!0:i=l==="none"||l==="heatmap"||r.showlines,r.type==="constraint"?n=r._operation!=="=":(l==="fill"||l==="heatmap")&&(s=!0)}return{showMarker:a,showLine:i,showFill:n,showGradientLine:o,showGradientFill:s,anyLine:i||o,anyFill:n||s}}function qb(e,t,r){return e&&co.isArrayOrTypedArray(e)?t:e>r?r:e}});var RM=X((ctt,yG)=>{"use strict";var Co=Qr(),Ua=tt(),LM=bn(),cd=mr(),Ub=Uv(),IM=bl(),Ga=xi(),cg=Vr(),th=cn(),cG=TM().handleItemClick,hG=TM().handleTitleClick,ya=(zb(),lt(Lb)),zM=(uo(),lt(lo)),vG=zM.LINE_SPACING,b1=zM.FROM_TL,fG=zM.FROM_BR,dG=KU(),Y4e=PM(),w1=ug(),x1=1,W4e=/^legend[0-9]*$/;yG.exports=function(t,r){if(r)pG(t,r);else{var i=t._fullLayout,a=i._legends,n=i._infolayer.selectAll('[class^="legend"]');n.each(function(){var u=Co.select(this),c=u.attr("class"),h=c.split(" ")[0];h.match(W4e)&&a.indexOf(h)===-1&&u.remove()});for(var o=0;o1)}var p=i.hiddenlabels||[];if(!s&&(!i.showlegend||!l.length))return o.selectAll("."+a).remove(),i._topdefs.select("#"+n).remove(),LM.autoMargin(e,a);var m=Ua.ensureSingle(o,"g",a,function(S){s||S.attr("pointer-events","all")}),g=Ua.ensureSingleById(i._topdefs,"clipPath",n,function(S){S.append("rect")}),y=Ua.ensureSingle(m,"rect","bg",function(S){S.attr("shape-rendering","crispEdges")});y.call(cg.stroke,r.bordercolor).call(cg.fill,r.bgcolor).style("stroke-width",r.borderwidth+"px");var x=Ua.ensureSingle(m,"g","scrollbox"),b=r.title;r._titleWidth=0,r._titleHeight=0;var _;b.text?(_=Ua.ensureSingle(x,"text",a+"titletext"),_.attr("text-anchor","start").call(Ga.font,b.font).text(b.text),Vb(_,x,e,r,x1),!s&&(r.titleclick||r.titledoubleclick)&&Q4e(x,e,r,a)):(x.selectAll("."+a+"titletext").remove(),x.selectAll("."+a+"titletoggle").remove());var A=Ua.ensureSingle(m,"rect","scrollbar",function(S){S.attr(ya.scrollBarEnterAttrs).call(cg.fill,ya.scrollBarColor)}),T=x.selectAll("g.groups").data(l);T.enter().append("g").attr("class","groups"),T.exit().remove();var M=T.selectAll("g.traces").data(Ua.identity);M.enter().append("g").attr("class","traces"),M.exit().remove(),M.style("opacity",function(S){let k=S[0],P=k.trace;if(k.groupTitle){let I=P.legendgroup,B=(i.shapes||[]).filter(function(z){return z.showlegend});return e._fullData.concat(B).some(function(z){return z.legendgroup===I&&(z.legend||"legend")===a&&z.visible===!0})?1:.5}return cd.traceIs(P,"pie-like")?p.indexOf(S[0].label)!==-1?.5:1:P.visible==="legendonly"?.5:1}).each(function(){Co.select(this).call(K4e,e,r)}).call(Y4e,e,r).each(function(S){s||S[0].groupTitle&&r.groupclick==="toggleitem"||Co.select(this).call(J4e,e,a)}),Ua.syncOrAsync([LM.previousPromises,function(){return rwe(e,T,M,r,x)},function(){var S=i._size,k=r.borderwidth,P=r.xref==="paper",I=r.yref==="paper";if(b.text){let Re=(i.shapes||[]).filter(function(Me){return Me.showlegend}),Ve=e._fullData.concat(Re).some(function(Me){let Pe=Me.legend||"legend";var Fe=Array.isArray(Pe)?Pe.includes(a):Pe===a;return Fe&&Me.visible===!0});_.style("opacity",Ve?1:.5)}if(!s){var B,L;P?B=S.l+S.w*r.x-b1[Gb(r)]*r._width:B=i.width*r.x-b1[Gb(r)]*r._width,I?L=S.t+S.h*(1-r.y)-b1[jb(r)]*r._effHeight:L=i.height*(1-r.y)-b1[jb(r)]*r._effHeight;var z=iwe(e,a,B,L);if(z)return;if(i.margin.autoexpand){var q=B,V=L;B=P?Ua.constrain(B,0,i.width-r._width):q,L=I?Ua.constrain(L,0,i.height-r._effHeight):V,B!==q&&Ua.log("Constrain "+a+".x to make legend fit inside graph"),L!==V&&Ua.log("Constrain "+a+".y to make legend fit inside graph")}Ga.setTranslate(m,B,L)}if(A.on(".drag",null),m.on("wheel",null),s||r._height<=r._maxHeight||e._context.staticPlot){var j=r._effHeight;s&&(j=r._height),y.attr({width:r._width-k,height:j-k,x:k/2,y:k/2}),Ga.setTranslate(x,0,0),g.select("rect").attr({width:r._width-2*k,height:j-2*k,x:k,y:k}),Ga.setClipUrl(x,n,e),Ga.setRect(A,0,0,0,0),delete r._scrollY}else{var $=Math.max(ya.scrollBarMinHeight,r._effHeight*r._effHeight/r._height),H=r._effHeight-$-2*ya.scrollBarMargin,Z=r._height-r._effHeight,Y=H/Z,oe=Math.min(r._scrollY||0,Z);y.attr({width:r._width-2*k+ya.scrollBarWidth+ya.scrollBarMargin,height:r._effHeight-k,x:k/2,y:k/2}),g.select("rect").attr({width:r._width-2*k+ya.scrollBarWidth+ya.scrollBarMargin,height:r._effHeight-2*k,x:k,y:k+oe}),Ga.setClipUrl(x,n,e),me(oe,$,Y),m.on("wheel",function(){oe=Ua.constrain(r._scrollY+Co.event.deltaY/Z*H,0,Z),me(oe,$,Y),oe!==0&&oe!==Z&&Co.event.preventDefault()});var pe,De,ye,de=function(Re,Ve,Me){var Pe=(Me-Ve)/Y+Re;return Ua.constrain(Pe,0,Z)},Ce=function(Re,Ve,Me){var Pe=(Ve-Me)/Y+Re;return Ua.constrain(Pe,0,Z)},J=Co.behavior.drag().on("dragstart",function(){var Re=Co.event.sourceEvent;Re.type==="touchstart"?pe=Re.changedTouches[0].clientY:pe=Re.clientY,ye=oe}).on("drag",function(){var Re=Co.event.sourceEvent;Re.buttons===2||Re.ctrlKey||(Re.type==="touchmove"?De=Re.changedTouches[0].clientY:De=Re.clientY,oe=de(ye,pe,De),me(oe,$,Y))});A.call(J);var ue=Co.behavior.drag().on("dragstart",function(){var Re=Co.event.sourceEvent;Re.type==="touchstart"&&(pe=Re.changedTouches[0].clientY,ye=oe)}).on("drag",function(){var Re=Co.event.sourceEvent;Re.type==="touchmove"&&(De=Re.changedTouches[0].clientY,oe=Ce(ye,pe,De),me(oe,$,Y))});x.call(ue)}function me(Re,Ve,Me){r._scrollY=e._fullLayout[a]._scrollY=Re,Ga.setTranslate(x,0,-Re),Ga.setRect(A,r._width,ya.scrollBarMargin+Re*Me,ya.scrollBarWidth,Ve),g.select("rect").attr("y",k+Re)}if(e._context.edits.legendPosition){var te,re,fe,ge;m.classed("cursor-move",!0),IM.init({element:m.node(),gd:e,prepFn:function(Re){if(Re.target!==A.node()){var Ve=Ga.getTranslate(m);fe=Ve.x,ge=Ve.y}},moveFn:function(Re,Ve){if(fe!==void 0&&ge!==void 0){var Me=fe+Re,Pe=ge+Ve;Ga.setTranslate(m,Me,Pe),te=IM.align(Me,r._width,S.l,S.l+S.w,r.xanchor),re=IM.align(Pe+r._height,-r._height,S.t+S.h,S.t,r.yanchor)}},doneFn:function(){if(te!==void 0&&re!==void 0){var Re={};Re[a+".x"]=te,Re[a+".y"]=re,cd.call("_guiRelayout",e,Re)}},clickFn:function(Re,Ve){var Me=o.selectAll("g.traces").filter(function(){var Pe=this.getBoundingClientRect();return Ve.clientX>=Pe.left&&Ve.clientX<=Pe.right&&Ve.clientY>=Pe.top&&Ve.clientY<=Pe.bottom});Me.size()>0&&gG(e,r,Me,Re,Ve)}})}}],e)}}function Nb(e,t,r){var i=e[0],a=i.width,n=t.entrywidthmode,o=i.trace.legendwidth||t.entrywidth;return n==="fraction"?t._maxWidth*o:r+(o||a)}function gG(e,t,r,i,a){var n=e._fullLayout,o=r.data()[0][0].trace,s=t.itemclick,l=t.itemdoubleclick,u={event:a,node:r.node(),curveNumber:o.index,expandedIndex:o.index,data:e.data,layout:e.layout,frames:e._transitionData._frames,config:e._context,fullData:e._fullData,fullLayout:n};o._group&&(u.group=o._group),cd.traceIs(o,"pie-like")&&(u.label=r.datum()[0].label);var c=Ub.triggerHandler(e,"plotly_legendclick",u);if(i===1){if(c===!1)return;t._clickTimeout=setTimeout(function(){e._fullLayout&&s&&cG(r,e,t,s,i)},e._context.doubleClickDelay)}else if(i===2){t._clickTimeout&&clearTimeout(t._clickTimeout),e._legendMouseDownTime=0;var h=Ub.triggerHandler(e,"plotly_legenddoubleclick",u);h!==!1&&c!==!1&&l&&cG(r,e,t,l,i)}}function K4e(e,t,r){var i=w1.getId(r),a=e.data()[0][0],n=a.trace,o=cd.traceIs(n,"pie-like"),s=!r._inHover&&t._context.edits.legendText&&!o,l=r._maxNameLength,u,c;a.groupTitle?(u=a.groupTitle.text,c=a.groupTitle.font):(c=r.font,r.entries?u=a.text:(u=o?a.label:n.name,n._meta&&(u=Ua.templateString(u,n._meta))));var h=Ua.ensureSingle(e,"text",i+"text");h.attr("text-anchor","start").call(Ga.font,c).text(s?mG(u,l):u);var f=r.indentation+r.itemwidth+ya.itemGap*2;th.positionText(h,f,0),s?h.call(th.makeEditable,{gd:t,text:u}).call(Vb,e,t,r).on("edit",function(d){this.text(mG(d,l)).call(Vb,e,t,r);var p={};return p.name=d,a.trace._isShape?cd.call("_guiRelayout",t,"shapes["+n.index+"].name",p.name):cd.call("_guiRestyle",t,p,n.index)}):Vb(h,e,t,r)}function mG(e,t){var r=Math.max(4,t);if(e&&e.trim().length>=r/2)return e;e=e||"";for(var i=r-e.length;i>0;i--)e+=" ";return e}function J4e(e,t,r){var i=t._context.doubleClickDelay,a,n=1,o=Ua.ensureSingle(e,"rect",r+"toggle",function(s){t._context.staticPlot||s.style("cursor","pointer").attr("pointer-events","all"),s.call(cg.fill,"rgba(0,0,0,0)")});t._context.staticPlot||(o.on("mousedown",function(){a=new Date().getTime(),a-t._legendMouseDownTimei&&(n=Math.max(n-1,1)),gG(t,s,e,n,Co.event)}}))}function Q4e(e,t,r,i){if(t._fullData.some(function(u){let c=u.legend||"legend";return(Array.isArray(c)?c.includes(i):c===i)&&cd.traceIs(u,"pie-like")}))return;let n=t._context.doubleClickDelay;var o,s=1;let l=Ua.ensureSingle(e,"rect",i+"titletoggle",function(u){t._context.staticPlot||u.style("cursor","pointer").attr("pointer-events","all"),u.call(cg.fill,"rgba(0,0,0,0)")});t._context.staticPlot||(l.on("mousedown",function(){o=new Date().getTime(),o-t._legendMouseDownTimen&&(s=Math.max(s-1,1));let u={event:Co.event,legendId:i,data:t.data,layout:t.layout,fullData:t._fullData,fullLayout:t._fullLayout};if(s===1&&r.titleclick){if(Ub.triggerHandler(t,"plotly_legendtitleclick",u)===!1)return;r._titleClickTimeout=setTimeout(function(){t._fullLayout&&hG(t,r,r.titleclick)},n)}else s===2&&(r._titleClickTimeout&&clearTimeout(r._titleClickTimeout),t._legendMouseDownTime=0,Ub.triggerHandler(t,"plotly_legendtitledoubleclick",u)!==!1&&r.titledoubleclick&&hG(t,r,r.titledoubleclick))}))}function Vb(e,t,r,i,a){i._inHover&&e.attr("data-notex",th.isPureTex(e.text())?null:!0),th.convertToTspans(e,r,function(){ewe(t,r,i,a)})}function ewe(e,t,r,i){var a=e.data()[0][0],n=a&&a.trace.showlegend;if(Array.isArray(n)&&(n=n[a.i]!==!1),!r._inHover&&a&&!n){e.remove();return}var o=e.select("g[class*=math-group]"),s=o.node(),l=w1.getId(r);r||(r=t._fullLayout[l]);var u=r.borderwidth,c;i===x1?c=r.title.font:a.groupTitle?c=a.groupTitle.font:c=r.font;var h=c.size*vG,f,d;if(s){var p=Ga.bBox(s);f=p.height,d=p.width,i===x1?Ga.setTranslate(o,u,u+f*.75):Ga.setTranslate(o,0,f*.25)}else{var m="."+l+(i===x1?"title":"")+"text",g=e.select(m),y=th.lineCount(g),x=g.node();if(f=h*y,d=x?Ga.bBox(x).width:0,i===x1)r.title.side==="left"&&(d+=ya.itemGap*2),th.positionText(g,u+ya.titlePad,u+h);else{var b=ya.itemGap*2+r.indentation+r.itemwidth;a.groupTitle&&(b=ya.itemGap,d-=r.indentation+r.itemwidth),th.positionText(g,b,-h*((y-1)/2-.3))}}if(i===x1)r._titleWidth=d,r._titleHeight=f;else{a.lineHeight=h;let _=ya.itemMinHeight+r.itemheight-ya.dfltFillHeight;a.height=Math.max(f,ya.itemMinHeight,_)+ya.itemHeightPad,a.width=d}}function twe(e){var t=0,r=0,i=e.title.side;return i&&(i.indexOf("left")!==-1&&(t=e._titleWidth),i.indexOf("top")!==-1&&(r=e._titleHeight)),[t,r]}function rwe(e,t,r,i,a){var n=e._fullLayout,o=w1.getId(i);i||(i=n[o]);var s=n._size,l=w1.isVertical(i),u=w1.isGrouped(i),c=i.entrywidthmode==="fraction",h=i.borderwidth,f=2*h,d=ya.itemGap,p=i.indentation+i.itemwidth+d*2,m=2*(h+d),g=jb(i),y=i.y<0||i.y===0&&g==="top",x=i.y>1||i.y===1&&g==="bottom",b=i.tracegroupgap,_={};let{orientation:A,yref:T}=i,{maxheight:M}=i,S=y||x||A!=="v"||T!=="paper";M||(M=S?.5:1);let k=S?n.height:s.h;i._maxHeight=Math.max(M>1?M:M*k,30);var P=0;i._width=0,i._height=0;var I=twe(i);if(l)r.each(function(Re){var Ve=Re[0].height;Ga.setTranslate(this,h+I[0],h+I[1]+i._height+Ve/2+d),i._height+=Ve,i._width=Math.max(i._width,Re[0].width)}),P=p+i._width,i._width+=d+p+f,i._height+=m,u&&(t.each(function(Re,Ve){Ga.setTranslate(this,0,Ve*i.tracegroupgap)}),i._height+=(i._lgroupsLength-1)*i.tracegroupgap);else{var B=Gb(i),L=i.x<0||i.x===0&&B==="right",z=i.x>1||i.x===1&&B==="left",q=x||y,V=n.width/2;i._maxWidth=Math.max(L?q&&B==="left"?s.l+s.w:V:z?q&&B==="right"?s.r+s.w:V:s.w,2*p);var j=0,$=0;r.each(function(Re){var Ve=Nb(Re,i,p);j=Math.max(j,Ve),$+=Ve}),P=null;var H=0;if(u){var Z=0,Y=0,oe=0;t.each(function(){var Re=0,Ve=0;Co.select(this).selectAll("g.traces").each(function(Pe){var Fe=Nb(Pe,i,p),se=Pe[0].height;Ga.setTranslate(this,I[0],I[1]+h+d+se/2+Ve),Ve+=se,Re=Math.max(Re,Fe),_[Pe[0].trace.legendgroup]=Re});var Me=Re+d;Y>0&&Me+h+Y>i._maxWidth?(H=Math.max(H,Y),Y=0,oe+=Z+b,Z=Ve):Z=Math.max(Z,Ve),Ga.setTranslate(this,Y,oe),Y+=Me}),i._width=Math.max(H,Y)+h,i._height=oe+Z+m}else{var pe=r.size(),De=$+f+(pe-1)*d=i._maxWidth&&(H=Math.max(H,J),de=0,Ce+=ye,i._height+=ye,ye=0),Ga.setTranslate(this,I[0]+h+de,I[1]+h+Ce+Ve/2+d),J=de+Me+d,de+=Pe,ye=Math.max(ye,Ve)}),De?(i._width=de+f,i._height=ye+m):(i._width=Math.max(H,J)+f,i._height+=ye+m)}}i._width=Math.ceil(Math.max(i._width+I[0],i._titleWidth+2*(h+ya.titlePad))),i._height=Math.ceil(Math.max(i._height+I[1],i._titleHeight+2*(h+ya.itemGap))),i._effHeight=Math.min(i._height,i._maxHeight);var ue=e._context.edits,me=ue.legendText||ue.legendPosition;if(r.each(function(Re){var Ve=Co.select(this).select("."+o+"toggle"),Me=Re[0].height,Pe=Re[0].trace.legendgroup,Fe=Nb(Re,i,p);u&&Pe!==""&&(Fe=_[Pe]);var se=me?p:P||Fe;!l&&!c&&(se+=d/2),Ga.setRect(Ve,0,-Me/2,se,Me)}),i._inHover){let Re=i._width-f-d-I[0];r.each(function(Ve){Ve[0].textAlign==="right"&&Co.select(this).select("."+o+"text").attr("text-anchor","end").call(th.positionText,Re)})}var te=a.select("."+o+"titletext");te.node()&&X4e(te,i,h);var re=a.select("."+o+"titletoggle");if(re.size()&&te.node()){var fe=te.attr("x")||0,ge=ya.titlePad;Ga.setRect(re,fe-ge,h,i._titleWidth+2*ge,i._titleHeight+2*ge)}}function iwe(e,t,r,i){var a=e._fullLayout,n=a[t],o=Gb(n),s=jb(n),l=n.xref==="paper",u=n.yref==="paper";e._fullLayout._reservedMargin[t]={};var c=n.y<.5?"b":"t",h=n.x<.5?"l":"r",f={r:a.width-r,l:r+n._width,b:a.height-i,t:i+n._effHeight};if(l&&u)return LM.autoMargin(e,t,{x:n.x,y:n.y,l:n._width*b1[o],r:n._width*fG[o],b:n._effHeight*fG[s],t:n._effHeight*b1[s]});l?e._fullLayout._reservedMargin[t][c]=f[c]:u||n.orientation==="v"?e._fullLayout._reservedMargin[t][h]=f[h]:e._fullLayout._reservedMargin[t][c]=f[c]}function Gb(e){return Ua.isRightAnchor(e)?"right":Ua.isCenterAnchor(e)?"center":"left"}function jb(e){return Ua.isBottomAnchor(e)?"bottom":Ua.isMiddleAnchor(e)?"middle":"top"}});var VM=X(NM=>{"use strict";var ih=Qr(),rh=Nr(),_a=tt(),awe=_a.pushUnique,BM=_a.strTranslate,nwe=_a.strRotate,owe=Uv(),ca=cn(),swe=jU(),hc=xi(),Ya=Vr(),$b=bl(),fc=ra(),lwe=(xn(),lt(_n)).zindexSeparator,hd=mr(),js=nc(),fd=(mv(),lt(pv)),uwe=bM(),cwe=RM(),SG=fd.YANGLE,OM=Math.PI*SG/180,hwe=1/Math.sin(OM),fwe=Math.cos(OM),dwe=Math.sin(OM),ia=fd.HOVERARROWSIZE,Ur=fd.HOVERTEXTPAD,_G={box:!0,ohlc:!0,violin:!0,candlestick:!0},pwe={scatter:!0,scattergl:!0,splom:!0};function xG(e,t){return e.distance-t.distance}NM.hover=function(t,r,i,a){t=_a.getGraphDiv(t);var n=r.target;_a.throttle(t._fullLayout._uid+fd.HOVERID,fd.HOVERMINTIME,function(){vwe(t,r,i,a,n)})};NM.loneHover=function(t,r){var i=!0;Array.isArray(t)||(i=!1,t=[t]);var a=r.gd,n=FG(a),o=PG(a),s=t.map(function(p){var m=p._x0||p.x0||p.x||0,g=p._x1||p.x1||p.x||0,y=p._y0||p.y0||p.y||0,x=p._y1||p.y1||p.y||0,b=p.eventData;if(b){var _=Math.min(m,g),A=Math.max(m,g),T=Math.min(y,x),M=Math.max(y,x),S=p.trace;if(hd.traceIs(S,"gl3d")){var k=a._fullLayout[S.scene]._scene.container,P=k.offsetLeft,I=k.offsetTop;_+=P,A+=P,T+=I,M+=I}b.bbox={x0:_+o,x1:A+o,y0:T+n,y1:M+n},b.xPixel=(m+g)/2,b.yPixel=(y+x)/2,r.inOut_bbox&&r.inOut_bbox.push(b.bbox)}else b=!1;return{color:p.color||Ya.defaultLine,x0:p.x0||p.x||0,x1:p.x1||p.x||0,y0:p.y0||p.y||0,y1:p.y1||p.y||0,xLabel:p.xLabel,yLabel:p.yLabel,zLabel:p.zLabel,text:p.text,name:p.name,idealAlign:p.idealAlign,borderColor:p.borderColor,fontFamily:p.fontFamily,fontSize:p.fontSize,fontColor:p.fontColor,fontWeight:p.fontWeight,fontStyle:p.fontStyle,fontVariant:p.fontVariant,nameLength:p.nameLength,textAlign:p.textAlign,trace:p.trace||{index:0,hoverinfo:""},xa:{_offset:0},ya:{_offset:0},index:0,hovertemplate:p.hovertemplate||!1,hovertemplateLabels:p.hovertemplateLabels||!1,eventData:b}}),l=!1,u=kG(s,{gd:a,hovermode:"closest",rotateLabels:l,bgColor:r.bgColor||Ya.background,container:ih.select(r.container),outerContainer:r.outerContainer||r.container}),c=u.hoverLabels;function h(){var p=5,m=0,g=0;c.sort(function(y,x){return y.y0-x.y0}).each(function(y,x){var b=y.y0-y.by/2;b-pS[0]._length||Ve<0||Ve>k[0]._length)return $b.unhoverRaw(e,t)}if(t.pointerX=Re+S[0]._offset,t.pointerY=Ve+k[0]._offset,"xval"in t?j=js.flat(n,t.xval):j=js.p2c(S,Re),"yval"in t?$=js.flat(n,t.yval):$=js.p2c(k,Ve),e._hoverPointerX=t.pointerX,e._hoverPointerY=t.pointerY,!rh(j[0])||!rh($[0]))return _a.warn("Fx.hover failed",t,e),$b.unhoverRaw(e,t)}s.clickanywhere&&(e._hoverXVals=j,e._hoverYVals=$,e._hoverXAxes=S,e._hoverYAxes=k);var Fe=1/0;function se(At,$r){for(Z=0;Zue&&(q.splice(0,ue),Fe=q[0].distance),hd.traceIs(oe,"ternary")&&z!==0){let Ui=J.subplot;if(["aaxis","baxis","caxis"].some(sa=>Ui[sa].showspikes&&Ui[sa].spikesnap!=="hovered data")){let sa=ai==null?void 0:ai[0];if(!Number.isFinite(sa==null?void 0:sa.spikeDistance)){let rs=_a.extendFlat({},J,{distance:z,index:!1}),la=oe._module.hoverPoints(rs,de,Ce,"closest");sa=la&&la[0]}let Es=te[pe];sa&&sa.index!==void 0&&sa.index!==!1&&sa.spikeDistance<=z&&(!Es||sa.spikeDistanceHr.spikeDistance)&&(me.vLinePoint=Hr))}var ro=Kr.filter(function(Ui){return Ui.ya.showspikes&&Ui.ya.spikesnap!=="hovered data"});if(ro.length){var pn=ro[0];rh(pn.x0)&&rh(pn.y0)&&(Hr=$e(pn),(!me.hLinePoint||me.hLinePoint.spikeDistance>Hr.spikeDistance)&&(me.hLinePoint=Hr))}}}}}se();function Ue(){if(s._hoverlayer.selectAll(".ternary-spikes").remove(),z!==0)for(let At=0;AtUt.trace.subplot===$r&&Ut.index!==void 0&&Ut.index!==!1&&Ut.spikeDistance<=z);Er.drawSpikelines(ai,te[$r],j&&j[At],$&&$[At])}}}function Ne(At,$r,Er){for(var ai=null,Ut=1/0,Fi,Kr=0;KrAt.trace.index===Qe.trace.index):q=[Qe];var pt=q.length,st=DG("x",Qe,s),yt=DG("y",Qe,s);se(st,yt);var Ot=[],We={},mt=0,Ye=function(At){var $r=_G[At.trace.type]?EG(At):At.trace.index;if(!We[$r])mt++,We[$r]=mt,Ot.push(At);else{var Er=We[$r]-1,ai=Ot[Er];Er>0&&Math.abs(At.distance)pt-1;vt--)Ye(q[vt]);q=Ot,ie()}var Dt=e._hoverdata,Ft=[],zt=FG(e),ce=PG(e);for(let At of q){var ke=js.makeEventData(At,At.trace,At.cd);if(At.hovertemplate!==!1){var Je=!1;At.cd[At.index]&&At.cd[At.index].ht&&(Je=At.cd[At.index].ht),At.hovertemplate=Je||At.trace.hovertemplate||!1}if(At.xa&&At.ya){var at=At.x0+At.xa._offset,Ar=At.x1+At.xa._offset,ti=At.y0+At.ya._offset,gi=At.y1+At.ya._offset,Li=Math.min(at,Ar),qr=Math.max(at,Ar),Cr=Math.min(ti,gi),ci=Math.max(ti,gi);ke.bbox={x0:Li+ce,x1:qr+ce,y0:Cr+zt,y1:ci+zt},ke.xPixel=(at+Ar)/2,ke.yPixel=(ti+gi)/2}At.eventData=[ke],Ft.push(ke)}e._hoverdata=Ft;var Or=d==="y"&&(V.length>1||q.length>1)||d==="closest"&&re&&q.length>1,Ci=Ya.combine(s.plot_bgcolor||Ya.background,s.paper_bgcolor),zi=kG(q,{gd:e,hovermode:d,rotateLabels:Or,bgColor:Ci,container:s._hoverlayer,outerContainer:s._paper.node(),commonLabelOpts:s.hoverlabel,hoverdistance:s.hoverdistance}),oa=zi.hoverLabels;if(js.isUnifiedHover(d)||(wG(oa,Or,s,zi.commonLabelBoundingBox),Zb(oa,Or,s._invScaleX,s._invScaleY),zi.mathjaxPromise&&zi.mathjaxPromise.then(function(){e._hoverdata===Ft&&(wG(oa,Or,s,zi.commonLabelBoundingBox),Zb(oa,Or,s._invScaleX,s._invScaleY),oa.each(function(){var At=ih.select(this);ca.repositionMathGroup(At.select("text.nums")),ca.repositionMathGroup(At.select("text.name"))}))})),a&&a.tagName){var ka=hd.getComponentMethod("annotations","hasClickToShow")(e,Ft);swe(ih.select(a),ka?"pointer":"")}var Wi=xwe(e,t,Dt);if(!a||i||!Wi&&!s.hoveranywhere)return;Dt&&Wi&&e.emit("plotly_unhover",{event:t,points:Dt}),va(e._hoverdata);function va(At){e.emit("plotly_hover",{event:t,points:At,xaxes:S,yaxes:k,xvals:js.c2dApply(S,j),yvals:js.c2dApply(k,$),xPixel:t.pointerX,yPixel:t.pointerY})}}function EG(e){return[e.trace.index,e.index,e.x0,e.y0,e.name,e.attr,e.xa?e.xa._id:"",e.ya?e.ya._id:""].join(",")}var gwe=/([\s\S]*)<\/extra>/;function qM(e,t){return Hb(e,ca.getMathOrTextNode(t))}function kG(e,t){var r=t.gd,i=r._fullLayout,a=t.hovermode,n=t.rotateLabels,o=t.bgColor,s=t.container,l=t.outerContainer,u=t.commonLabelOpts||{};if(e.length===0)return[[]];var c=[],h=t.fontFamily||fd.HOVERFONT,f=t.fontSize||fd.HOVERFONTSIZE,d=t.fontWeight||i.font.weight,p=t.fontStyle||i.font.style,m=t.fontVariant||i.font.variant,g=t.fontTextcase||i.font.textcase,y=t.fontLineposition||i.font.lineposition,x=t.fontShadow||i.font.shadow,b=e[0],_=b.xa,A=b.ya,T=a.charAt(0),M=T+"Label",S=b[M];if(S===void 0&&_.type==="multicategory")for(var k=0;ki.width-zt&&(ce=i.width-zt),xe.attr("d","M"+(vt-ce)+",0L"+(vt-ce+ia)+","+Ft+ia+"H"+zt+"v"+Ft+(Ur*2+Ye.height)+"H"+-zt+"V"+Ft+ia+"H"+(vt-ce-ia)+"Z"),vt=ce,Z.minX=vt-zt,Z.maxX=vt+zt,_.side==="top"?(Z.minY=Dt-(Ur*2+Ye.height),Z.maxY=Dt-Ur):(Z.minY=Dt+Ur,Z.maxY=Dt+(Ur*2+Ye.height))}else{var ke,Je,at;A.side==="right"?(ke="start",Je=1,at="",vt=_._offset+_._length):(ke="end",Je=-1,at="-",vt=_._offset),Dt=A._offset+(b.y0+b.y1)/2,je.attr("text-anchor",ke),xe.attr("d","M0,0L"+at+ia+","+ia+"V"+(Ur+Ye.height/2)+"h"+at+(Ur*2+Ye.width)+"V-"+(Ur+Ye.height/2)+"H"+at+ia+"V-"+ia+"Z"),Z.minY=Dt-(Ur+Ye.height/2),Z.maxY=Dt+(Ur+Ye.height/2),A.side==="right"?(Z.minX=vt+ia,Z.maxX=vt+ia+(Ur*2+Ye.width)):(Z.minX=vt-ia-(Ur*2+Ye.width),Z.maxX=vt-ia);var Ar=Ye.height/2,ti=I-Ye.top-Ar,gi="clip"+i._uid+"commonlabel"+A._id,Li;if(vtxe.hoverinfo!=="none");if(ve.length===0)return[];var Y=i.hoverlabel,oe=Y.font,pe=ve[0],De=((a==="x unified"?pe.xa:pe.ya).unifiedhovertitle||{}).text,ye=De?_a.hovertemplateString({data:a==="x unified"?[{xa:pe.xa,x:pe.xVal}]:[{ya:pe.ya,y:pe.yVal}],fallback:pe.trace.hovertemplatefallback,locale:i._d3locale,template:De}):S,de={showlegend:!0,legend:{title:{text:ye,font:oe},font:oe,bgcolor:Y.bgcolor,bordercolor:Y.bordercolor,borderwidth:1,tracegroupgap:7,traceorder:i.legend?i.legend.traceorder:void 0,orientation:"v"}},Ce={font:oe};uwe(de,Ce,r._fullData);var J=Ce.legend;J.entries=[];for(var ue=0;ue=0?ot=He:it+Me=0?ot=it:ie+Me=0?bt=$e:Ae+Pe=0?bt=Ae:Se+Pe=0,(ve.idealAlign==="top"||!zi)&&oa?(at-=ti/2,ve.anchor="end"):zi?(at+=ti/2,ve.anchor="start"):ve.anchor="middle",ve.crossPos=at;else{if(ve.pos=at,zi=Je+Ar/2+Ci<=B,oa=Je-Ar/2-Ci>=0,(ve.idealAlign==="left"||!zi)&&oa)Je-=Ar/2,ve.anchor="end";else if(zi)Je+=Ar/2,ve.anchor="start";else{ve.anchor="middle";var ka=Ci/2,Wi=Je+ka-B,va=Je-ka;Wi>0&&(Je-=Wi),va<0&&(Je+=-va)}ve.crossPos=Je}zt.attr("text-anchor",ve.anchor),gi&&ce.attr("text-anchor",ve.anchor),xe.attr("transform",BM(Je,at)+(n?nwe(SG):""))}}),{hoverLabels:Tt,commonLabelBoundingBox:Z,mathjaxPromise:c.length?Promise.all(c):null}}function bG(e,t,r,i,a,n){var h,f;var o="",s="";e.nameOverride!==void 0&&(e.name=e.nameOverride),e.name&&(e.trace._meta&&(e.name=_a.templateString(e.name,e.trace._meta)),o=MG(e.name,e.nameLength));var l=r.charAt(0),u=l==="x"?"y":"x";e.zLabel!==void 0?(e.xLabel!==void 0&&(s+="x: "+e.xLabel+"
"),e.yLabel!==void 0&&(s+="y: "+e.yLabel+"
"),e.trace.type!=="choropleth"&&e.trace.type!=="choroplethmap"&&(s+=(s?"z: ":"")+e.zLabel)):t&&e[l+"Label"]===a?s=e[u+"Label"]||"":e.xLabel===void 0?e.yLabel!==void 0&&e.trace.type!=="scattercarpet"&&(s=e.yLabel):e.yLabel===void 0?s=e.xLabel:s="("+e.xLabel+", "+e.yLabel+")",(e.text||e.text===0)&&!Array.isArray(e.text)&&(s+=(s?"
":"")+e.text),e.extraText!==void 0&&(s+=(s?"
":"")+e.extraText),n&&s===""&&!e.hovertemplate&&(o===""&&n.remove(),s=o),(f=(h=e.trace)==null?void 0:h.hoverlabel)!=null&&f.split&&(e.hovertemplate="");let{hovertemplate:c=!1}=e;if(c){let d=e.hovertemplateLabels||e;e[l+"Label"]!==a&&(d[l+"other"]=d[l+"Val"],d[l+"otherLabel"]=d[l+"Label"]),s=_a.hovertemplateString({data:[e.eventData[0]||{},e.trace._meta],fallback:e.trace.hovertemplatefallback,labels:d,locale:i._d3locale,template:c}),s=s.replace(gwe,(p,m)=>(o=MG(m,e.nameLength),""))}return[s,o]}function wG(e,t,r,i){var a=t?"xa":"ya",n=t?"ya":"xa",o=0,s=1,l=e.size(),u=new Array(l),c=0,h=i.minX,f=i.maxX,d=i.minY,p=i.maxY,m=function(V){return V*r._invScaleX},g=function(V){return V*r._invScaleY};e.each(function(V){var j=V[a],$=V[n],H=j._id.charAt(0)==="x",Z=j.range;c===0&&Z&&Z[0]>Z[1]!==H&&(s=-1);var Y=0,oe=H?r.width:r.height;if(r.hovermode==="x"||r.hovermode==="y"){var pe=CG(V,t),De=V.anchor,ye=De==="end"?-1:1,de,Ce;if(De==="middle")de=V.crossPos+(H?g(pe.y-V.by/2):m(V.bx/2+V.tx2width/2)),Ce=de+(H?g(V.by):m(V.bx));else if(H)de=V.crossPos+g(ia+pe.y)-g(V.by/2-ia),Ce=de+g(V.by);else{var J=m(ye*ia+pe.x),ue=J+m(ye*V.bx);de=V.crossPos+Math.min(J,ue),Ce=V.crossPos+Math.max(J,ue)}H?d!==void 0&&p!==void 0&&Math.min(Ce,p)-Math.max(de,d)>1&&($.side==="left"?(Y=$._mainLinePosition,oe=r.width):oe=$._mainLinePosition):h!==void 0&&f!==void 0&&Math.min(Ce,f)-Math.max(de,h)>1&&($.side==="top"?(Y=$._mainLinePosition,oe=r.height):oe=$._mainLinePosition)}u[c++]=[{datum:V,traceIndex:V.trace.index,dp:0,pos:V.pos,posref:V.posref,size:V.by*(H?hwe:1)/2,pmin:Y,pmax:oe}]}),u.sort(function(V,j){return V[0].posref-j[0].posref||s*(j[0].traceIndex-V[0].traceIndex)});var y,x,b,_,A,T,M;function S(V){var j=V[0],$=V[V.length-1];if(x=j.pmin-j.pos-j.dp+j.size,b=$.pos+$.dp+$.size-j.pmax,x>.01){for(A=V.length-1;A>=0;A--)V[A].dp+=x;y=!1}if(!(b<.01)){if(x<-.01){for(A=V.length-1;A>=0;A--)V[A].dp-=b;y=!1}if(y){var H=0;for(_=0;_j.pmax&&H++;for(_=V.length-1;_>=0&&!(H<=0);_--)T=V[_],T.pos>j.pmax-1&&(T.del=!0,H--);for(_=0;_=0;A--)V[A].dp-=b;for(_=V.length-1;_>=0&&!(H<=0);_--)T=V[_],T.pos+T.dp+T.size>j.pmax&&(T.del=!0,H--)}}}for(;!y&&o<=l;){for(o++,y=!0,_=0;_.01){for(A=P.length-1;A>=0;A--)P[A].dp+=x;for(k.push.apply(k,P),u.splice(_+1,1),M=0,A=k.length-1;A>=0;A--)M+=k[A].dp;for(b=M/k.length,A=k.length-1;A>=0;A--)k[A].dp-=b;y=!1}else _++}u.forEach(S)}for(_=u.length-1;_>=0;_--){var L=u[_];for(A=L.length-1;A>=0;A--){var z=L[A],q=z.datum;q.offset=z.dp,q.del=z.del}}}function CG(e,t){var r=0,i=e.offset;return t&&(i*=-dwe,r=e.offset*fwe),{x:r,y:i}}function ywe(e){var t={start:1,end:-1,middle:0}[e.anchor],r=t*(ia+Ur),i=r+t*(e.txwidth+Ur),a=e.anchor==="middle";return a&&(r-=e.tx2width/2,i+=e.txwidth/2+Ur),{alignShift:t,textShiftX:r,text2ShiftX:i}}function Zb(e,t,r,i){var a=function(o){return o*r},n=function(o){return o*i};e.each(function(o){var s=ih.select(this);if(o.del)return s.remove();var l=s.select("text.nums"),u=o.anchor,c=u==="end"?-1:1,h=ywe(o),f=CG(o,t),d=f.x,p=f.y,m=u==="middle",g="hoverlabel"in o.trace?o.trace.hoverlabel.showarrow:!0,y;m?y="M-"+a(o.bx/2+o.tx2width/2)+","+n(p-o.by/2)+"h"+a(o.bx)+"v"+n(o.by)+"h-"+a(o.bx)+"Z":g?y="M0,0L"+a(c*ia+d)+","+n(ia+p)+"v"+n(o.by/2-ia)+"h"+a(c*o.bx)+"v-"+n(o.by)+"H"+a(c*ia+d)+"V"+n(p-ia)+"Z":y="M"+a(c*ia+d)+","+n(p-o.by/2)+"h"+a(c*o.bx)+"v"+n(o.by)+"h"+a(-c*o.bx)+"Z",s.select("path").attr("d",y);var x=d+h.textShiftX,b=p+o.ty0-o.by/2+Ur,_=o.textAlign||"auto";_!=="auto"&&(_==="left"&&u!=="start"?(l.attr("text-anchor","start"),x=m?-o.bx/2-o.tx2width/2+Ur:-o.bx-Ur):_==="right"&&u!=="end"&&(l.attr("text-anchor","end"),x=m?o.bx/2-o.tx2width/2-Ur:o.bx+Ur)),l.call(ca.positionText,a(x),n(b)),o.tx2width&&(s.select("text.name").call(ca.positionText,a(h.text2ShiftX+h.alignShift*Ur+d),n(p+o.ty0-o.by/2+Ur)),s.select("rect").call(hc.setRect,a(h.text2ShiftX+(h.alignShift-1)*o.tx2width/2+d),n(p-o.by/2-1),a(o.tx2width),n(o.by+2)))})}function _we(e,t){var r=e.index,i=e.trace||{},a=e.cd[0],n=e.cd[r]||{};function o(f){return f||rh(f)&&f===0}var s=Array.isArray(r)?function(f,d){var p=_a.castOption(a,r,f);return o(p)?p:_a.extractOption({},i,"",d)}:function(f,d){return _a.extractOption(n,i,f,d)};function l(f,d,p){var m=s(d,p);o(m)&&(e[f]=m)}if(l("hoverinfo","hi","hoverinfo"),l("bgcolor","hbg","hoverlabel.bgcolor"),l("borderColor","hbc","hoverlabel.bordercolor"),l("fontFamily","htf","hoverlabel.font.family"),l("fontSize","hts","hoverlabel.font.size"),l("fontColor","htc","hoverlabel.font.color"),l("fontWeight","htw","hoverlabel.font.weight"),l("fontStyle","hty","hoverlabel.font.style"),l("fontVariant","htv","hoverlabel.font.variant"),l("nameLength","hnl","hoverlabel.namelength"),l("textAlign","hta","hoverlabel.align"),e.posref=t==="y"||t==="closest"&&i.orientation==="h"?e.xa._offset+(e.x0+e.x1)/2:e.ya._offset+(e.y0+e.y1)/2,e.x0=_a.constrain(e.x0,0,e.xa._length),e.x1=_a.constrain(e.x1,0,e.xa._length),e.y0=_a.constrain(e.y0,0,e.ya._length),e.y1=_a.constrain(e.y1,0,e.ya._length),e.xLabelVal!==void 0&&(e.xLabel="xLabel"in e?e.xLabel:fc.hoverLabelText(e.xa,e.xLabelVal,i.xhoverformat),e.xVal=e.xa.c2d(e.xLabelVal)),e.yLabelVal!==void 0&&(e.yLabel="yLabel"in e?e.yLabel:fc.hoverLabelText(e.ya,e.yLabelVal,i.yhoverformat),e.yVal=e.ya.c2d(e.yLabelVal)),e.zLabelVal!==void 0&&e.zLabel===void 0&&(e.zLabel=String(e.zLabelVal)),!isNaN(e.xerr)&&!(e.xa.type==="log"&&e.xerr<=0)){var u=fc.tickText(e.xa,e.xa.c2l(e.xerr),"hover").text;e.xerrneg!==void 0?e.xLabel+=" +"+u+" / -"+fc.tickText(e.xa,e.xa.c2l(e.xerrneg),"hover").text:e.xLabel+=" \xB1 "+u,t==="x"&&(e.distance+=1)}if(!isNaN(e.yerr)&&!(e.ya.type==="log"&&e.yerr<=0)){var c=fc.tickText(e.ya,e.ya.c2l(e.yerr),"hover").text;e.yerrneg!==void 0?e.yLabel+=" +"+c+" / -"+fc.tickText(e.ya,e.ya.c2l(e.yerrneg),"hover").text:e.yLabel+=" \xB1 "+c,t==="y"&&(e.distance+=1)}var h=e.hoverinfo||e.trace.hoverinfo;return h&&h!=="all"&&(h=Array.isArray(h)?h:h.split("+"),h.indexOf("x")===-1&&(e.xLabel=void 0),h.indexOf("y")===-1&&(e.yLabel=void 0),h.indexOf("z")===-1&&(e.zLabel=void 0),h.indexOf("text")===-1&&(e.text=void 0),h.indexOf("name")===-1&&(e.name=void 0)),e}function AG(e,t,r){var i=r.container,a=r.fullLayout,n=a._size,o=r.event,s=!!t.hLinePoint,l=!!t.vLinePoint,u,c;if(i.selectAll(".spikeline").remove(),!!(l||s)){var h=Ya.combine(a.plot_bgcolor,a.paper_bgcolor);if(s){var f=t.hLinePoint,d,p;u=f&&f.xa,c=f&&f.ya;var m=c.spikesnap;m==="cursor"?(d=o.pointerX,p=o.pointerY):(d=u._offset+f.x,p=c._offset+f.y);var g=Ya.wcagContrast(f.color,h)<1.5?Ya.contrast(h):f.color,y=c.spikemode,x=c.spikethickness,b=c.spikecolor||g,_=fc.getPxPosition(e,c),A,T;if(y.indexOf("toaxis")!==-1||y.indexOf("across")!==-1){if(y.indexOf("toaxis")!==-1&&(A=_,T=d),y.indexOf("across")!==-1){var M=c._counterDomainMin,S=c._counterDomainMax;c.anchor==="free"&&(M=Math.min(M,c.position),S=Math.max(S,c.position)),A=n.l+M*n.w,T=n.l+S*n.w}i.insert("line",":first-child").attr({x1:A,x2:T,y1:p,y2:p,"stroke-width":x,stroke:b,"stroke-dasharray":hc.dashStyle(c.spikedash,x)}).classed("spikeline",!0).classed("crisp",!0),i.insert("line",":first-child").attr({x1:A,x2:T,y1:p,y2:p,"stroke-width":x+2,stroke:h}).classed("spikeline",!0).classed("crisp",!0)}y.indexOf("marker")!==-1&&i.insert("circle",":first-child").attr({cx:_+(c.side!=="right"?x:-x),cy:p,r:x,fill:b}).classed("spikeline",!0)}if(l){var k=t.vLinePoint,P,I;u=k&&k.xa,c=k&&k.ya;var B=u.spikesnap;B==="cursor"?(P=o.pointerX,I=o.pointerY):(P=u._offset+k.x,I=c._offset+k.y);var L=Ya.wcagContrast(k.color,h)<1.5?Ya.contrast(h):k.color,z=u.spikemode,q=u.spikethickness,V=u.spikecolor||L,j=fc.getPxPosition(e,u),$,H;if(z.indexOf("toaxis")!==-1||z.indexOf("across")!==-1){if(z.indexOf("toaxis")!==-1&&($=j,H=I),z.indexOf("across")!==-1){var Z=u._counterDomainMin,Y=u._counterDomainMax;u.anchor==="free"&&(Z=Math.min(Z,u.position),Y=Math.max(Y,u.position)),$=n.t+(1-Y)*n.h,H=n.t+(1-Z)*n.h}i.insert("line",":first-child").attr({x1:P,x2:P,y1:$,y2:H,"stroke-width":q,stroke:V,"stroke-dasharray":hc.dashStyle(u.spikedash,q)}).classed("spikeline",!0).classed("crisp",!0),i.insert("line",":first-child").attr({x1:P,x2:P,y1:$,y2:H,"stroke-width":q+2,stroke:h}).classed("spikeline",!0).classed("crisp",!0)}z.indexOf("marker")!==-1&&i.insert("circle",":first-child").attr({cx:P,cy:j-(u.side!=="top"?q:-q),r:q,fill:V}).classed("spikeline",!0)}}}function xwe(e,t,r){if(!r||r.length!==e._hoverdata.length)return!0;for(var i=r.length-1;i>=0;i--){var a=r[i],n=e._hoverdata[i];if(a.curveNumber!==n.curveNumber||String(a.pointNumber)!==String(n.pointNumber)||String(a.pointNumbers)!==String(n.pointNumbers)||a.binNumber!==n.binNumber)return!0}return!1}function TG(e,t){return!t||t.vLinePoint!==e._spikepoints.vLinePoint||t.hLinePoint!==e._spikepoints.hLinePoint}function MG(e,t){return ca.plainText(e||"",{len:t,allowedTags:["br","sub","sup","b","i","em","s","u"]})}function bwe(e,t){for(var r=t.charAt(0),i=[],a=[],n=[],o=0;oe.offsetTop+e.clientTop,PG=e=>e.offsetLeft+e.clientLeft;function Hb(e,t){var r=e._fullLayout,i=t.getBoundingClientRect(),a=i.left,n=i.top,o=a+i.width,s=n+i.height,l=_a.apply3DTransform(r._invTransform)(a,n),u=_a.apply3DTransform(r._invTransform)(o,s),c=l[0],h=l[1],f=u[0],d=u[1];return{x:c,y:h,width:f-c,height:d-h,top:Math.min(h,d),left:Math.min(c,f),right:Math.max(c,f),bottom:Math.max(h,d)}}});var Yb=X((ftt,IG)=>{"use strict";var wwe=tt(),Awe=Vr(),Twe=nc().isUnifiedHover;IG.exports=function(t,r,i,a){a=a||{};var n=r.legend;function o(s){a.font[s]||(a.font[s]=n?r.legend.font[s]:r.font[s])}r&&Twe(r.hovermode)&&(a.font||(a.font={}),o("size"),o("family"),o("color"),o("weight"),o("style"),o("variant"),n?(a.bgcolor||(a.bgcolor=Awe.combine(r.legend.bgcolor,r.paper_bgcolor)),a.bordercolor||(a.bordercolor=r.legend.bordercolor)):a.bgcolor||(a.bgcolor=r.paper_bgcolor)),i("hoverlabel.bgcolor",a.bgcolor),i("hoverlabel.bordercolor",a.bordercolor),i("hoverlabel.namelength",a.namelength),i("hoverlabel.showarrow",a.showarrow),wwe.coerceFont(i,"hoverlabel.font",a.font),i("hoverlabel.align",a.align)}});var zG=X((dtt,LG)=>{"use strict";var Mwe=tt(),Dwe=Yb(),Swe=Rp();LG.exports=function(t,r){function i(a,n){return Mwe.coerce(t,r,Swe,a,n)}Dwe(t,r,i)}});var qG=X((ptt,BG)=>{"use strict";var RG=tt(),Ewe=U_(),kwe=Yb();BG.exports=function(t,r,i,a){function n(s,l){return RG.coerce(t,r,Ewe,s,l)}var o=RG.extendFlat({},a.hoverlabel);r.hovertemplate&&(o.namelength=-1),kwe(t,r,n,o)}});var UM=X((mtt,OG)=>{"use strict";var Cwe=tt(),Fwe=Rp();OG.exports=function(t,r){function i(a,n){return r[a]!==void 0?r[a]:Cwe.coerce(t,r,Fwe,a,n)}return i("clickmode"),i("hoversubplots"),i("hoveranywhere"),i("clickanywhere"),i("hovermode")}});var UG=X((vtt,VG)=>{"use strict";var NG=tt(),Pwe=Rp(),Iwe=UM(),Lwe=Yb();VG.exports=function(t,r){function i(u,c){return NG.coerce(t,r,Pwe,u,c)}var a=Iwe(t,r);a&&(i("hoverdistance"),i("spikedistance"),a.indexOf("unified")!==-1&&i("hoversort"));var n=i("dragmode");n==="select"&&i("selectdirection");var o=r._has("map"),s=r._has("geo"),l=r._basePlotModules.length;r.dragmode==="zoom"&&((o||s)&&l===1||o&&s&&l===2)&&(r.dragmode="pan"),Lwe(t,r,i),NG.coerceFont(i,"hoverlabel.grouptitlefont",r.hoverlabel.font)}});var $G=X((gtt,jG)=>{"use strict";var GM=tt(),GG=mr();jG.exports=function(t){var r=t.calcdata,i=t._fullLayout;function a(u){return function(c){return GM.coerceHoverinfo({hoverinfo:c},{_module:u._module},i)}}for(var n=0;n{"use strict";var Rwe=mr(),HG=nc(),Bwe=VM().hover;ZG.exports=function(t,r,i){var a=Rwe.getComponentMethod("annotations","onClick")(t,t._hoverdata),n=t._fullLayout;i!==void 0&&Bwe(t,r,i,!0);function o(){var l,u,c,h,f,d;var s={points:t._hoverdata,event:r};(l=s.xaxes)!=null||(s.xaxes=t._hoverXAxes),(u=s.yaxes)!=null||(s.yaxes=t._hoverYAxes),(c=s.xvals)!=null||(s.xvals=t._hoverXVals&&HG.c2dApply(t._hoverXAxes,t._hoverXVals)),(h=s.yvals)!=null||(s.yvals=t._hoverYVals&&HG.c2dApply(t._hoverYAxes,t._hoverYVals)),(f=s.xPixel)!=null||(s.xPixel=t._hoverPointerX),(d=s.yPixel)!=null||(s.yPixel=t._hoverPointerY),t.emit("plotly_click",s)}(t._hoverdata||n.clickanywhere)&&r&&r.target&&(t._hoverdata||(t._hoverdata=[]),a&&a.then?a.then(o):o(),r.stopImmediatePropagation&&r.stopImmediatePropagation())}});var yu=X((_tt,KG)=>{"use strict";var qwe=Qr(),Wb=tt(),Owe=bl(),hg=nc(),WG=Rp(),XG=VM();KG.exports={moduleType:"component",name:"fx",constants:(mv(),lt(pv)),schema:{layout:WG},attributes:U_(),layoutAttributes:WG,supplyLayoutGlobalDefaults:zG(),supplyDefaults:qG(),supplyLayoutDefaults:UG(),calc:$G(),getDistanceFunction:hg.getDistanceFunction,getClosest:hg.getClosest,inbox:hg.inbox,quadrature:hg.quadrature,appendArrayPointValue:hg.appendArrayPointValue,castHoverOption:Vwe,castHoverinfo:Uwe,hover:XG.hover,unhover:Owe.unhover,loneHover:XG.loneHover,loneUnhover:Nwe,click:YG()};function Nwe(e){var t=Wb.isD3Selection(e)?e:qwe.select(e);t.selectAll("g.hovertext").remove(),t.selectAll(".spikeline").remove()}function Vwe(e,t,r){return Wb.castOption(e,t,"hoverlabel."+r)}function Uwe(e,t,r){function i(a){return Wb.coerceHoverinfo({hoverinfo:a},{_module:e._module},t)}return Wb.castOption(e,r,"hoverinfo",i)}});var dd=X(ah=>{"use strict";ah.selectMode=function(e){return e==="lasso"||e==="select"};ah.drawMode=function(e){return e==="drawclosedpath"||e==="drawopenpath"||e==="drawline"||e==="drawrect"||e==="drawcircle"};ah.openMode=function(e){return e==="drawline"||e==="drawopenpath"};ah.rectMode=function(e){return e==="select"||e==="drawline"||e==="drawrect"||e==="drawcircle"};ah.freeMode=function(e){return e==="lasso"||e==="drawclosedpath"||e==="drawopenpath"};ah.selectingOrDrawing=function(e){return ah.freeMode(e)||ah.rectMode(e)}});var Xb=X((btt,JG)=>{"use strict";JG.exports=function(t){var r=t._fullLayout;r._glcanvas&&r._glcanvas.size()&&r._glcanvas.each(function(i){i.regl&&i.regl.clear({color:!0,depth:!0})})}});var Kb=X((wtt,QG)=>{"use strict";QG.exports={undo:{width:857.1,height:1e3,path:"m857 350q0-87-34-166t-91-137-137-92-166-34q-96 0-183 41t-147 114q-4 6-4 13t5 11l76 77q6 5 14 5 9-1 13-7 41-53 100-82t126-29q58 0 110 23t92 61 61 91 22 111-22 111-61 91-92 61-110 23q-55 0-105-20t-90-57l77-77q17-16 8-38-10-23-33-23h-250q-15 0-25 11t-11 25v250q0 24 22 33 22 10 39-8l72-72q60 57 137 88t159 31q87 0 166-34t137-92 91-137 34-166z",transform:"matrix(1 0 0 -1 0 850)"},home:{width:928.6,height:1e3,path:"m786 296v-267q0-15-11-26t-25-10h-214v214h-143v-214h-214q-15 0-25 10t-11 26v267q0 1 0 2t0 2l321 264 321-264q1-1 1-4z m124 39l-34-41q-5-5-12-6h-2q-7 0-12 3l-386 322-386-322q-7-4-13-4-7 2-12 7l-35 41q-4 5-3 13t6 12l401 334q18 15 42 15t43-15l136-114v109q0 8 5 13t13 5h107q8 0 13-5t5-13v-227l122-102q5-5 6-12t-4-13z",transform:"matrix(1 0 0 -1 0 850)"},"camera-retro":{width:1e3,height:1e3,path:"m518 386q0 8-5 13t-13 5q-37 0-63-27t-26-63q0-8 5-13t13-5 12 5 5 13q0 23 16 38t38 16q8 0 13 5t5 13z m125-73q0-59-42-101t-101-42-101 42-42 101 42 101 101 42 101-42 42-101z m-572-320h858v71h-858v-71z m643 320q0 89-62 152t-152 62-151-62-63-152 63-151 151-63 152 63 62 151z m-571 358h214v72h-214v-72z m-72-107h858v143h-462l-36-71h-360v-72z m929 143v-714q0-30-21-51t-50-21h-858q-29 0-50 21t-21 51v714q0 30 21 51t50 21h858q29 0 50-21t21-51z",transform:"matrix(1 0 0 -1 0 850)"},curlybraces:{width:18,height:16,path:"M 9,4 C 7.354992,4 6,5.354992 6,7 V 9 C 6,9.2999997 5.8778068,9.8883542 5.5878906,10.291016 5.2979744,10.693677 4.9222213,11 4,11 a 1.0001,1.0001 0 0 0 0,2 c 0.2999997,0 0.8883542,0.122193 1.2910156,0.412109 C 5.693677,13.702026 6,14.077779 6,15 v 2 c 0,1.645008 1.354992,3 3,3 h 0.5 a 1,1 0 0 0 1,-1 1,1 0 0 0 -1,-1 H 9 C 8.4358712,18 8,17.564129 8,17 V 15 C 8,13.625876 7.3766799,12.602305 6.6113281,11.96875 6.8086352,11.794047 7.0679793,11.657537 7.2109375,11.458984 7.8210204,10.611647 8,9.6999993 8,9 V 7 C 8,6.4358712 8.4358712,6 9,6 h 0.5 a 1,1 0 0 0 1,-1 1,1 0 0 0 -1,-1 z m 5.5,0 a 1,1 0 0 0 -1,1 1,1 0 0 0 1,1 H 15 c 0.564129,0 1,0.4358712 1,1 v 2 c 0,0.6999993 0.17898,1.611647 0.789062,2.458984 0.142959,0.198553 0.402303,0.335063 0.59961,0.509766 C 16.62332,12.602305 16,13.625876 16,15 v 2 c 0,0.564129 -0.435871,1 -1,1 h -0.5 a 1,1 0 0 0 -1,1 1,1 0 0 0 1,1 H 15 c 1.645008,0 3,-1.354992 3,-3 v -2 c 0,-0.922221 0.306323,-1.297974 0.708984,-1.587891 C 19.111646,13.122193 19.7,13 20,13 a 1.0001,1.0001 0 0 0 0,-2 C 19.077779,11 18.702026,10.693677 18.412109,10.291016 18.122193,9.8883542 18,9.2999997 18,9 V 7 C 18,5.354992 16.645008,4 15,4 Z",transform:"translate(-3 -4)"},zoombox:{width:1e3,height:1e3,path:"m1000-25l-250 251c40 63 63 138 63 218 0 224-182 406-407 406-224 0-406-182-406-406s183-406 407-406c80 0 155 22 218 62l250-250 125 125z m-812 250l0 438 437 0 0-438-437 0z m62 375l313 0 0-312-313 0 0 312z",transform:"matrix(1 0 0 -1 0 850)"},pan:{width:1e3,height:1e3,path:"m1000 350l-187 188 0-125-250 0 0 250 125 0-188 187-187-187 125 0 0-250-250 0 0 125-188-188 186-187 0 125 252 0 0-250-125 0 187-188 188 188-125 0 0 250 250 0 0-126 187 188z",transform:"matrix(1 0 0 -1 0 850)"},zoom_plus:{width:875,height:1e3,path:"m1 787l0-875 875 0 0 875-875 0z m687-500l-187 0 0-187-125 0 0 187-188 0 0 125 188 0 0 187 125 0 0-187 187 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},zoom_minus:{width:875,height:1e3,path:"m0 788l0-876 875 0 0 876-875 0z m688-500l-500 0 0 125 500 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},autoscale:{width:1e3,height:1e3,path:"m250 850l-187 0-63 0 0-62 0-188 63 0 0 188 187 0 0 62z m688 0l-188 0 0-62 188 0 0-188 62 0 0 188 0 62-62 0z m-875-938l0 188-63 0 0-188 0-62 63 0 187 0 0 62-187 0z m875 188l0-188-188 0 0-62 188 0 62 0 0 62 0 188-62 0z m-125 188l-1 0-93-94-156 156 156 156 92-93 2 0 0 250-250 0 0-2 93-92-156-156-156 156 94 92 0 2-250 0 0-250 0 0 93 93 157-156-157-156-93 94 0 0 0-250 250 0 0 0-94 93 156 157 156-157-93-93 0 0 250 0 0 250z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_basic:{width:1500,height:1e3,path:"m375 725l0 0-375-375 375-374 0-1 1125 0 0 750-1125 0z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_compare:{width:1125,height:1e3,path:"m187 786l0 2-187-188 188-187 0 0 937 0 0 373-938 0z m0-499l0 1-187-188 188-188 0 0 937 0 0 376-938-1z",transform:"matrix(1 0 0 -1 0 850)"},plotlylogo:{width:1542,height:1e3,path:"m0-10h182v-140h-182v140z m228 146h183v-286h-183v286z m225 714h182v-1000h-182v1000z m225-285h182v-715h-182v715z m225 142h183v-857h-183v857z m231-428h182v-429h-182v429z m225-291h183v-138h-183v138z",transform:"matrix(1 0 0 -1 0 850)"},"z-axis":{width:1e3,height:1e3,path:"m833 5l-17 108v41l-130-65 130-66c0 0 0 38 0 39 0-1 36-14 39-25 4-15-6-22-16-30-15-12-39-16-56-20-90-22-187-23-279-23-261 0-341 34-353 59 3 60 228 110 228 110-140-8-351-35-351-116 0-120 293-142 474-142 155 0 477 22 477 142 0 50-74 79-163 96z m-374 94c-58-5-99-21-99-40 0-24 65-43 144-43 79 0 143 19 143 43 0 19-42 34-98 40v216h87l-132 135-133-135h88v-216z m167 515h-136v1c16 16 31 34 46 52l84 109v54h-230v-71h124v-1c-16-17-28-32-44-51l-89-114v-51h245v72z",transform:"matrix(1 0 0 -1 0 850)"},"3d_rotate":{width:1e3,height:1e3,path:"m922 660c-5 4-9 7-14 11-359 263-580-31-580-31l-102 28 58-400c0 1 1 1 2 2 118 108 351 249 351 249s-62 27-100 42c88 83 222 183 347 122 16-8 30-17 44-27-2 1-4 2-6 4z m36-329c0 0 64 229-88 296-62 27-124 14-175-11 157-78 225-208 249-266 8-19 11-31 11-31 2 5 6 15 11 32-5-13-8-20-8-20z m-775-239c70-31 117-50 198-32-121 80-199 346-199 346l-96-15-58-12c0 0 55-226 155-287z m603 133l-317-139c0 0 4-4 19-14 7-5 24-15 24-15s-177-147-389 4c235-287 536-112 536-112l31-22 100 299-4-1z m-298-153c6-4 14-9 24-15 0 0-17 10-24 15z",transform:"matrix(1 0 0 -1 0 850)"},camera:{width:1e3,height:1e3,path:"m500 450c-83 0-150-67-150-150 0-83 67-150 150-150 83 0 150 67 150 150 0 83-67 150-150 150z m400 150h-120c-16 0-34 13-39 29l-31 93c-6 15-23 28-40 28h-340c-16 0-34-13-39-28l-31-94c-6-15-23-28-40-28h-120c-55 0-100-45-100-100v-450c0-55 45-100 100-100h800c55 0 100 45 100 100v450c0 55-45 100-100 100z m-400-550c-138 0-250 112-250 250 0 138 112 250 250 250 138 0 250-112 250-250 0-138-112-250-250-250z m365 380c-19 0-35 16-35 35 0 19 16 35 35 35 19 0 35-16 35-35 0-19-16-35-35-35z",transform:"matrix(1 0 0 -1 0 850)"},movie:{width:1e3,height:1e3,path:"m938 413l-188-125c0 37-17 71-44 94 64 38 107 107 107 187 0 121-98 219-219 219-121 0-219-98-219-219 0-61 25-117 66-156h-115c30 33 49 76 49 125 0 103-84 187-187 187s-188-84-188-187c0-57 26-107 65-141-38-22-65-62-65-109v-250c0-70 56-126 125-126h500c69 0 125 56 125 126l188-126c34 0 62 28 62 63v375c0 35-28 63-62 63z m-750 0c-69 0-125 56-125 125s56 125 125 125 125-56 125-125-56-125-125-125z m406-1c-87 0-157 70-157 157 0 86 70 156 157 156s156-70 156-156-70-157-156-157z",transform:"matrix(1 0 0 -1 0 850)"},question:{width:857.1,height:1e3,path:"m500 82v107q0 8-5 13t-13 5h-107q-8 0-13-5t-5-13v-107q0-8 5-13t13-5h107q8 0 13 5t5 13z m143 375q0 49-31 91t-77 65-95 23q-136 0-207-119-9-14 4-24l74-55q4-4 10-4 9 0 14 7 30 38 48 51 19 14 48 14 27 0 48-15t21-33q0-21-11-34t-38-25q-35-16-65-48t-29-70v-20q0-8 5-13t13-5h107q8 0 13 5t5 13q0 10 12 27t30 28q18 10 28 16t25 19 25 27 16 34 7 45z m214-107q0-117-57-215t-156-156-215-58-216 58-155 156-58 215 58 215 155 156 216 58 215-58 156-156 57-215z",transform:"matrix(1 0 0 -1 0 850)"},disk:{width:857.1,height:1e3,path:"m214-7h429v214h-429v-214z m500 0h72v500q0 8-6 21t-11 20l-157 156q-5 6-19 12t-22 5v-232q0-22-15-38t-38-16h-322q-22 0-37 16t-16 38v232h-72v-714h72v232q0 22 16 38t37 16h465q22 0 38-16t15-38v-232z m-214 518v178q0 8-5 13t-13 5h-107q-7 0-13-5t-5-13v-178q0-8 5-13t13-5h107q7 0 13 5t5 13z m357-18v-518q0-22-15-38t-38-16h-750q-23 0-38 16t-16 38v750q0 22 16 38t38 16h517q23 0 50-12t42-26l156-157q16-15 27-42t11-49z",transform:"matrix(1 0 0 -1 0 850)"},cloudupload:{width:640,height:640,path:"M451.5 160C434.9 160 418.8 164.5 404.7 172.7C388.9 156.7 370.5 143.3 350.2 133.2C378.4 109.2 414.3 96 451.5 96C537.9 96 608 166 608 252.5C608 294 591.5 333.8 562.2 363.1L491.1 434.2C461.8 463.5 422 480 380.5 480C294.1 480 224 410 224 323.5C224 322 224 320.5 224.1 319C224.6 301.3 239.3 287.4 257 287.9C274.7 288.4 288.6 303.1 288.1 320.8C288.1 321.7 288.1 322.6 288.1 323.4C288.1 374.5 329.5 415.9 380.6 415.9C405.1 415.9 428.6 406.2 446 388.8L517.1 317.7C534.4 300.4 544.2 276.8 544.2 252.3C544.2 201.2 502.8 159.8 451.7 159.8zM307.2 237.3C305.3 236.5 303.4 235.4 301.7 234.2C289.1 227.7 274.7 224 259.6 224C235.1 224 211.6 233.7 194.2 251.1L123.1 322.2C105.8 339.5 96 363.1 96 387.6C96 438.7 137.4 480.1 188.5 480.1C205 480.1 221.1 475.7 235.2 467.5C251 483.5 269.4 496.9 289.8 507C261.6 530.9 225.8 544.2 188.5 544.2C102.1 544.2 32 474.2 32 387.7C32 346.2 48.5 306.4 77.8 277.1L148.9 206C178.2 176.7 218 160.2 259.5 160.2C346.1 160.2 416 230.8 416 317.1C416 318.4 416 319.7 416 321C415.6 338.7 400.9 352.6 383.2 352.2C365.5 351.8 351.6 337.1 352 319.4C352 318.6 352 317.9 352 317.1C352 283.4 334 253.8 307.2 237.5z",transform:"matrix(1 0 0 1 -15 -15)"},drawopenpath:{width:70,height:70,path:"M33.21,85.65a7.31,7.31,0,0,1-2.59-.48c-8.16-3.11-9.27-19.8-9.88-41.3-.1-3.58-.19-6.68-.35-9-.15-2.1-.67-3.48-1.43-3.79-2.13-.88-7.91,2.32-12,5.86L3,32.38c1.87-1.64,11.55-9.66,18.27-6.9,2.13.87,4.75,3.14,5.17,9,.17,2.43.26,5.59.36,9.25a224.17,224.17,0,0,0,1.5,23.4c1.54,10.76,4,12.22,4.48,12.4.84.32,2.79-.46,5.76-3.59L43,80.07C41.53,81.57,37.68,85.64,33.21,85.65ZM74.81,69a11.34,11.34,0,0,0,6.09-6.72L87.26,44.5,74.72,32,56.9,38.35c-2.37.86-5.57,3.42-6.61,6L38.65,72.14l8.42,8.43ZM55,46.27a7.91,7.91,0,0,1,3.64-3.17l14.8-5.3,8,8L76.11,60.6l-.06.19a6.37,6.37,0,0,1-3,3.43L48.25,74.59,44.62,71Zm16.57,7.82A6.9,6.9,0,1,0,64.64,61,6.91,6.91,0,0,0,71.54,54.09Zm-4.05,0a2.85,2.85,0,1,1-2.85-2.85A2.86,2.86,0,0,1,67.49,54.09Zm-4.13,5.22L60.5,56.45,44.26,72.7l2.86,2.86ZM97.83,35.67,84.14,22l-8.57,8.57L89.26,44.24Zm-13.69-8,8,8-2.85,2.85-8-8Z",transform:"matrix(1 0 0 1 -15 -15)"},drawclosedpath:{width:90,height:90,path:"M88.41,21.12a26.56,26.56,0,0,0-36.18,0l-2.07,2-2.07-2a26.57,26.57,0,0,0-36.18,0,23.74,23.74,0,0,0,0,34.8L48,90.12a3.22,3.22,0,0,0,4.42,0l36-34.21a23.73,23.73,0,0,0,0-34.79ZM84,51.24,50.16,83.35,16.35,51.25a17.28,17.28,0,0,1,0-25.47,20,20,0,0,1,27.3,0l4.29,4.07a3.23,3.23,0,0,0,4.44,0l4.29-4.07a20,20,0,0,1,27.3,0,17.27,17.27,0,0,1,0,25.46ZM66.76,47.68h-33v6.91h33ZM53.35,35H46.44V68h6.91Z",transform:"matrix(1 0 0 1 -5 -5)"},lasso:{width:1031,height:1e3,path:"m1018 538c-36 207-290 336-568 286-277-48-473-256-436-463 10-57 36-108 76-151-13-66 11-137 68-183 34-28 75-41 114-42l-55-70 0 0c-2-1-3-2-4-3-10-14-8-34 5-45 14-11 34-8 45 4 1 1 2 3 2 5l0 0 113 140c16 11 31 24 45 40 4 3 6 7 8 11 48-3 100 0 151 9 278 48 473 255 436 462z m-624-379c-80 14-149 48-197 96 42 42 109 47 156 9 33-26 47-66 41-105z m-187-74c-19 16-33 37-39 60 50-32 109-55 174-68-42-25-95-24-135 8z m360 75c-34-7-69-9-102-8 8 62-16 128-68 170-73 59-175 54-244-5-9 20-16 40-20 61-28 159 121 317 333 354s407-60 434-217c28-159-121-318-333-355z",transform:"matrix(1 0 0 -1 0 850)"},selectbox:{width:1e3,height:1e3,path:"m0 850l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-285l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z",transform:"matrix(1 0 0 -1 0 850)"},drawline:{width:70,height:70,path:"M60.64,62.3a11.29,11.29,0,0,0,6.09-6.72l6.35-17.72L60.54,25.31l-17.82,6.4c-2.36.86-5.57,3.41-6.6,6L24.48,65.5l8.42,8.42ZM40.79,39.63a7.89,7.89,0,0,1,3.65-3.17l14.79-5.31,8,8L61.94,54l-.06.19a6.44,6.44,0,0,1-3,3.43L34.07,68l-3.62-3.63Zm16.57,7.81a6.9,6.9,0,1,0-6.89,6.9A6.9,6.9,0,0,0,57.36,47.44Zm-4,0a2.86,2.86,0,1,1-2.85-2.85A2.86,2.86,0,0,1,53.32,47.44Zm-4.13,5.22L46.33,49.8,30.08,66.05l2.86,2.86ZM83.65,29,70,15.34,61.4,23.9,75.09,37.59ZM70,21.06l8,8-2.84,2.85-8-8ZM87,80.49H10.67V87H87Z",transform:"matrix(1 0 0 1 -15 -15)"},drawrect:{width:80,height:80,path:"M78,22V79H21V22H78m9-9H12V88H87V13ZM68,46.22H31V54H68ZM53,32H45.22V69H53Z",transform:"matrix(1 0 0 1 -10 -10)"},drawcircle:{width:80,height:80,path:"M50,84.72C26.84,84.72,8,69.28,8,50.3S26.84,15.87,50,15.87,92,31.31,92,50.3,73.16,84.72,50,84.72Zm0-60.59c-18.6,0-33.74,11.74-33.74,26.17S31.4,76.46,50,76.46,83.74,64.72,83.74,50.3,68.6,24.13,50,24.13Zm17.15,22h-34v7.11h34Zm-13.8-13H46.24v34h7.11Z",transform:"matrix(1 0 0 1 -10 -10)"},eraseshape:{width:80,height:80,path:"M82.77,78H31.85L6,49.57,31.85,21.14H82.77a8.72,8.72,0,0,1,8.65,8.77V69.24A8.72,8.72,0,0,1,82.77,78ZM35.46,69.84H82.77a.57.57,0,0,0,.49-.6V29.91a.57.57,0,0,0-.49-.61H35.46L17,49.57Zm32.68-34.7-24,24,5,5,24-24Zm-19,.53-5,5,24,24,5-5Z",transform:"matrix(1 0 0 1 -10 -10)"},spikeline:{width:1e3,height:1e3,path:"M512 409c0-57-46-104-103-104-57 0-104 47-104 104 0 57 47 103 104 103 57 0 103-46 103-103z m-327-39l92 0 0 92-92 0z m-185 0l92 0 0 92-92 0z m370-186l92 0 0 93-92 0z m0-184l92 0 0 92-92 0z",transform:"matrix(1.5 0 0 -1.5 0 850)"},pencil:{width:1792,height:1792,path:"M491 1536l91-91-235-235-91 91v107h128v128h107zm523-928q0-22-22-22-10 0-17 7l-542 542q-7 7-7 17 0 22 22 22 10 0 17-7l542-542q7-7 7-17zm-54-192l416 416-832 832h-416v-416zm683 96q0 53-37 90l-166 166-416-416 166-165q36-38 90-38 53 0 91 38l235 234q37 39 37 91z",transform:"matrix(1 0 0 1 0 1)"},newplotlylogo:{name:"newplotlylogo",svg:[""," plotly-logomark"," "," "," "," "," "," "," "," "," "," "," "," "," ",""].join("")}}});var Jb={};Yi(Jb,{CIRCLE_SIDES:()=>Gwe,SQRT2:()=>Xwe,cos45:()=>Ywe,i000:()=>jwe,i090:()=>$we,i180:()=>Hwe,i270:()=>Zwe,sin45:()=>Wwe});var Gwe,jwe,$we,Hwe,Zwe,Ywe,Wwe,Xwe,Qb=Gi(()=>{"use strict";Gwe=32,jwe=0,$we=8,Hwe=16,Zwe=24,Ywe=Math.cos(Math.PI/4),Wwe=Math.sin(Math.PI/4),Xwe=Math.sqrt(2)});var e3=X((Att,tj)=>{"use strict";var Kwe=tt().strTranslate;function ej(e,t){switch(e.type){case"log":return e.p2d(t);case"date":return e.p2r(t,0,e.calendar);default:return e.p2r(t)}}function Jwe(e,t){switch(e.type){case"log":return e.d2p(t);case"date":return e.r2p(t,0,e.calendar);default:return e.r2p(t)}}function Qwe(e){var t=e._id.charAt(0)==="y"?1:0;return function(r){return ej(e,r[t])}}function e6e(e){return Kwe(e.xaxis._offset,e.yaxis._offset)}tj.exports={p2r:ej,r2p:Jwe,axValue:Qwe,getTransform:e6e}});var yf=X(nh=>{"use strict";var t6e=E8(),aj=(Qb(),lt(Jb)),A1=aj.CIRCLE_SIDES,jM=aj.SQRT2,nj=e3(),rj=nj.p2r,ij=nj.r2p,r6e=[0,3,4,5,6,1,2],i6e=[0,3,4,1,2];nh.writePaths=function(e){var t=e.length;if(!t)return"M0,0Z";for(var r="",i=0;i0&&l{"use strict";var oj=un(),hj=dd(),a6e=hj.drawMode,n6e=hj.openMode,T1=(Qb(),lt(Jb)),sj=T1.i000,lj=T1.i090,uj=T1.i180,cj=T1.i270,o6e=T1.cos45,s6e=T1.sin45,fj=e3(),r3=fj.p2r,_f=fj.r2p,l6e=of(),u6e=l6e.clearOutline,i3=yf(),c6e=i3.readPaths,h6e=i3.writePaths,f6e=i3.ellipseOver,d6e=i3.fixDatesForPaths;function p6e(e,t){if(e.length){var r=e[0][0];if(r){var i=t.gd,a=t.isActiveShape,n=t.dragmode,o=(i.layout||{}).shapes||[];if(!a6e(n)&&a!==void 0){var s=i._fullLayout._activeShapeIndex;if(s{"use strict";var m6e=dd(),v6e=m6e.selectMode,g6e=of(),y6e=g6e.clearOutline,$M=yf(),_6e=$M.readPaths,x6e=$M.writePaths,b6e=$M.fixDatesForPaths;mj.exports=function(t,r){if(t.length){var i=t[0][0];if(i){var a=i.getAttribute("d"),n=r.gd,o=n._fullLayout.newselection,s=r.plotinfo,l=s.xaxis,u=s.yaxis,c=r.isActiveSelection,h=r.dragmode,f=(n.layout||{}).selections||[];if(!v6e(h)&&c!==void 0){var d=n._fullLayout._activeSelectionIndex;if(dD6e,paramIsX:()=>T6e,paramIsY:()=>M6e,paramRE:()=>A6e,segmentRE:()=>w6e});var w6e,A6e,T6e,M6e,D6e,pg=Gi(()=>{"use strict";w6e=/[MLHVQCTSZ][^MLHVQCTSZ]*/g,A6e=/[^\s,]+/g,T6e={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:{}},M6e={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:3},Z:{}},D6e={M:2,L:2,H:1,V:1,Q:4,C:6,T:2,S:4,Z:0}});var bf=X(Pn=>{"use strict";var pc=(pg(),lt(dg)),vj=tt(),xf=ra();Pn.rangeToShapePosition=function(e){return e.type==="log"?e.r2d:function(t){return t}};Pn.shapePositionToRange=function(e){return e.type==="log"?e.d2r:function(t){return t}};Pn.decodeDate=function(e){return function(t){return t.replace&&(t=t.replace("_"," ")),e(t)}};Pn.encodeDate=function(e){return function(t){return e(t).replace(" ","_")}};Pn.extractPathCoords=function(e,t,r){var i=[],a=e.match(pc.segmentRE);return a.forEach(function(n){var o=t[n.charAt(0)].drawn;if(o!==void 0){var s=n.slice(1).match(pc.paramRE);if(!(!s||s.length{let s=o.charAt(0),l=a[s].drawn!==void 0;return n+(l?1:0)},0)};Pn.getDataToPixel=function(e,t,r,i,a){var n=e._fullLayout._size,o;if(t)if(a==="domain")o=function(l){return t._length*(i?1-l:l)+t._offset};else{var s=Pn.shapePositionToRange(t);o=function(l){var u=dc(t,r);return t._offset+t.r2p(s(l,!0))+u},t.type==="date"&&(o=Pn.decodeDate(o))}else i?o=function(l){return n.t+n.h*(1-l)}:o=function(l){return n.l+n.w*l};return o};Pn.getPixelToData=function(e,t,r,i){var a=e._fullLayout._size,n;if(t)if(i==="domain")n=function(s){var l=(s-t._offset)/t._length;return r?1-l:l};else{var o=Pn.rangeToShapePosition(t);n=function(s){return o(t.p2r(s-t._offset))}}else r?n=function(s){return 1-(s-a.t)/a.h}:n=function(s){return(s-a.l)/a.w};return n};Pn.roundPositionForSharpStrokeRendering=function(e,t){var r=Math.round(t%2)===1,i=Math.round(e);return r?i+.5:i};Pn.makeShapesOptionsAndPlotinfo=function(e,t){var r=e._fullLayout.shapes[t]||{},i=e._fullLayout._plots[r.xref+r.yref],a=!!i;return a?i._hadPlotinfo=!0:(i={},r.xref&&r.xref!=="paper"&&(i.xaxis=e._fullLayout[r.xref+"axis"]),r.yref&&r.yref!=="paper"&&(i.yaxis=e._fullLayout[r.yref+"axis"])),i.xsizemode=r.xsizemode,i.ysizemode=r.ysizemode,i.xanchor=r.xanchor,i.yanchor=r.yanchor,{options:r,plotinfo:i}};Pn.makeSelectionsOptionsAndPlotinfo=function(e,t){var r=e._fullLayout.selections[t]||{},i=e._fullLayout._plots[r.xref+r.yref],a=!!i;return a?i._hadPlotinfo=!0:(i={},r.xref&&(i.xaxis=e._fullLayout[r.xref+"axis"]),r.yref&&(i.yaxis=e._fullLayout[r.yref+"axis"])),{options:r,plotinfo:i}};Pn.getPathString=function(e,t){let r=t.type,i=xf.getRefType(t.xref),a=xf.getRefType(t.yref),n=e._fullLayout._size;var o,s,l,u,c,h,f,d,p,m,g,y;function x(P,I,B,L){var z;if(P)if(I==="domain")L?z=function(q){return P._offset+P._length*(1-q)}:z=function(q){return P._offset+P._length*q};else{let q=Pn.shapePositionToRange(P);z=function(V){return P._offset+P.r2p(q(V,!0))},B==="path"&&P.type==="date"&&(z=Pn.decodeDate(z))}else L?z=function(q){return n.t+n.h*(1-q)}:z=function(q){return n.l+n.w*q};return z}if(i==="array"?(f=[],o=t.xref.map(function(P){return xf.getFromId(e,P)}),f=t.xref.map(function(P,I){return x(o[I],xf.getRefType(P),r,!1)})):(o=xf.getFromId(e,t.xref),f=x(o,i,r,!1)),a==="array"?(d=[],s=t.yref.map(function(P){return xf.getFromId(e,P)}),d=t.yref.map(function(P,I){return x(s[I],xf.getRefType(P),r,!0)})):(s=xf.getFromId(e,t.yref),d=x(s,a,r,!0)),r==="path")return S6e(t,f,d);if(i==="array")l=dc(o[0],t.x0shift),u=dc(o[1],t.x1shift),p=f[0](t.x0)+l,m=f[1](t.x1)+u;else if(l=dc(o,t.x0shift),u=dc(o,t.x1shift),t.xsizemode==="pixel"){let P=f(t.xanchor);p=P+t.x0+l,m=P+t.x1+u}else p=f(t.x0)+l,m=f(t.x1)+u;if(a==="array")c=dc(s[0],t.y0shift),h=dc(s[1],t.y1shift),g=d[0](t.y0)+c,y=d[1](t.y1)+h;else if(c=dc(s,t.y0shift),h=dc(s,t.y1shift),t.ysizemode==="pixel"){let P=d(t.yanchor);g=P-t.y0+c,y=P-t.y1+h}else g=d(t.y0)+c,y=d(t.y1)+h;if(r==="line")return"M"+p+","+g+"L"+m+","+y;if(r==="rect")return"M"+p+","+g+"H"+m+"V"+y+"H"+p+"Z";var b=(p+m)/2,_=(g+y)/2,A=Math.abs(b-p),T=Math.abs(_-g),M="A"+A+","+T,S=b+A+","+_,k=b+","+(_-T);return"M"+S+M+" 0 1,1 "+k+M+" 0 0,1 "+S+"Z"};function S6e(e,t,r){let i=e.path,a=e.xsizemode,n=e.ysizemode,o=e.xanchor,s=e.yanchor,l=Array.isArray(e.xref),u=Array.isArray(e.yref);var c=0,h=0;return i.replace(pc.segmentRE,function(f){var d=0,p=f.charAt(0),m=pc.paramIsX[p],g=pc.paramIsY[p],y=pc.numParams[p];let x=m.drawn!==void 0,b=g.drawn!==void 0,_=l?t[c]:t,A=u?r[h]:r;var T=f.slice(1).replace(pc.paramRE,function(M){return m[d]?a==="pixel"?M=_(o)+Number(M):M=_(M):g[d]&&(n==="pixel"?M=A(s)-Number(M):M=A(M)),d++,d>y&&(M="X"),M});return d>y&&(T=T.replace(/[\s,]*X.*/,""),vj.log("Ignoring extra params in segment "+f)),x&&c++,b&&h++,p+T})}Pn.getPixelShift=dc;function dc(e,t){t=t||0;var r=0;return t&&e&&(e.type==="category"||e.type==="multicategory")&&(r=(e.r2p(1)-e.r2p(0))*t),r}});var ZM=X((Ett,_j)=>{"use strict";var E6e=tt(),mc=ra(),gj=cn(),yj=xi(),k6e=yf().readPaths,pd=bf(),C6e=pd.getPathString,mg=Ax(),F6e=(uo(),lt(lo)).FROM_TL;_j.exports=function(t,r,i,a){if(a.selectAll(".shape-label").remove(),!!(i.label.text||i.label.texttemplate)){var n;if(i.label.texttemplate){var o={};if(i.type!=="path"){var s=mc.getFromId(t,i.xref),l=mc.getFromId(t,i.yref);let Y=Array.isArray(i.xref),oe=Array.isArray(i.yref);for(var u in mg){var c=typeof mg[u]=="function",h=!Y||mg.simpleXVariables.includes(u),f=!oe||mg.simpleYVariables.includes(u);if(c&&h&&f){var d=mg[u](i,s,l);d!==void 0&&(o[u]=d)}}}n=E6e.texttemplateStringForShapes({data:[o],fallback:i.label.texttemplatefallback,locale:t._fullLayout._d3locale,template:i.label.texttemplate})}else n=i.label.text;var p={"data-index":r},m=i.label.font,g={"data-notex":1},y=a.append("g").attr(p).classed("shape-label",!0),x=y.append("text").attr(g).classed("shape-label-text",!0).text(n),b,_,A,T;if(i.path){var M=C6e(t,i),S=k6e(M,t);b=1/0,A=1/0,_=-1/0,T=-1/0;for(var k=0;kpd.getDataToPixel(t,Re,ge,!1,Ve)(fe),re=(fe,ge,Re,Ve)=>pd.getDataToPixel(t,Re,ge,!0,Ve)(fe);if(i.xsizemode==="pixel"){let fe=te(i.xanchor,void 0,pe,Ce),ge=pd.getPixelShift(pe,i.x0shift),Re=pd.getPixelShift(pe,i.x1shift);b=fe+i.x0+ge,_=fe+i.x1+Re}else b=te(i.x0,i.x0shift,pe,Ce),_=te(i.x1,i.x1shift,De,J);if(i.ysizemode==="pixel"){let fe=re(i.yanchor,void 0,ye,ue),ge=pd.getPixelShift(ye,i.y0shift),Re=pd.getPixelShift(ye,i.y1shift);A=fe-i.y0+ge,T=fe-i.y1+Re}else A=re(i.y0,i.y0shift,ye,ue),T=re(i.y1,i.y1shift,de,me)}var q=i.label.textangle;q==="auto"&&(i.type==="line"?q=P6e(b,A,_,T):q=0),x.call(function(Y){return Y.call(yj.font,m).attr({}),gj.convertToTspans(Y,t),Y});var V=yj.bBox(x.node()),j=I6e(b,A,_,T,i,q,V),$=j.textx,H=j.texty,Z=j.xanchor;x.attr({"text-anchor":{left:"start",center:"middle",right:"end"}[Z],y:H,x:$,transform:"rotate("+q+","+$+","+H+")"}).call(gj.positionText,$,H)}};function P6e(e,t,r,i){var a,n;return n=Math.abs(r-e),r>=e?a=t-i:a=i-t,-180/Math.PI*Math.atan2(a,n)}function I6e(e,t,r,i,a,n,o){var s=a.label.textposition,l=a.label.textangle,u=a.label.padding,c=a.type,h=Math.PI/180*n,f=Math.sin(h),d=Math.cos(h),p=a.label.xanchor,m=a.label.yanchor,g,y,x,b;if(c==="line"){s==="start"?(g=e,y=t):s==="end"?(g=r,y=i):(g=(e+r)/2,y=(t+i)/2),p==="auto"&&(s==="start"?l==="auto"?r>e?p="left":re?p="right":re?p="right":re?p="left":r{"use strict";var L6e=tt(),z6e=L6e.strTranslate,xj=bl(),Aj=dd(),R6e=Aj.drawMode,Tj=Aj.selectMode,Mj=mr(),bj=Vr(),o3=(Qb(),lt(Jb)),B6e=o3.i000,q6e=o3.i090,O6e=o3.i180,N6e=o3.i270,V6e=of(),Dj=V6e.clearOutlineControllers,WM=yf(),n3=WM.pointsOnRectangle,YM=WM.pointsOnEllipse,U6e=WM.writePaths,G6e=a3().newShapes,j6e=a3().createShapeObj,$6e=HM(),H6e=ZM();Sj.exports=function e(t,r,i,a){a||(a=0);var n=i.gd;function o(){e(t,r,i,a++),(YM(t[0])||i.hasText)&&s({redrawing:!0})}function s(j){var $={};i.isActiveShape!==void 0&&(i.isActiveShape=!1,$=G6e(r,i)),i.isActiveSelection!==void 0&&(i.isActiveSelection=!1,$=$6e(r,i),n._fullLayout._reselect=!0),Object.keys($).length&&Mj.call((j||{}).redrawing?"relayout":"_guiRelayout",n,$)}var l=n._fullLayout,u=l._zoomlayer,c=i.dragmode,h=R6e(c),f=Tj(c);(h||f)&&(n._fullLayout._outlining=!0),Dj(n),r.attr("d",U6e(t));var d,p,m,g,y;if(!a&&(i.isActiveShape||i.isActiveSelection)){y=Z6e([],t);var x=u.append("g").attr("class","outline-controllers");P(x),V()}if(h&&i.hasText){var b=u.select(".label-temp"),_=j6e(r,i,i.dragmode);H6e(n,"label-temp",_,b)}function A(j){m=+j.srcElement.getAttribute("data-i"),g=+j.srcElement.getAttribute("data-j"),d[m][g].moveFn=T}function T(j,$){if(t.length){var H=y[m][g][1],Z=y[m][g][2],Y=t[m],oe=Y.length;if(n3(Y)){var pe=j,De=$;if(i.isActiveSelection){var ye=wj(Y,g);ye[1]===Y[g][1]?De=0:pe=0}for(var de=0;de1&&!(j.length===2&&j[1][0]==="Z")&&(g===0&&(j[0][0]="M"),t[m]=j,o(),s())}}function k(j,$){if(j===2){m=+$.srcElement.getAttribute("data-i"),g=+$.srcElement.getAttribute("data-j");var H=t[m];!n3(H)&&!YM(H)&&S()}}function P(j){d=[];for(var $=0;${"use strict";var W6e=Qr(),Ij=mr(),KM=tt(),md=ra(),X6e=yf().readPaths,K6e=s3(),u3=ZM(),Lj=of().clearOutlineControllers,XM=Vr(),c3=xi(),J6e=qi().arrayEditor,Ej=bl(),kj=yu(),Cj=vf(),vd=(pg(),lt(dg)),gs=bf(),JM=gs.getPathString;Bj.exports={draw:QM,drawOne:zj,eraseActiveShape:iAe,drawLabel:u3};function QM(e){var t=e._fullLayout;t._shapeUpperLayer.selectAll("path").remove(),t._shapeLowerLayer.selectAll("path").remove(),t._shapeUpperLayer.selectAll("text").remove(),t._shapeLowerLayer.selectAll("text").remove();for(var r in t._plots){var i=t._plots[r].shapelayer;i&&(i.selectAll("path").remove(),i.selectAll("text").remove())}for(var a=0;a{if(!e._dragging&&e._fullLayout.hoveranywhere){let o=a(n);o&&kj.hover(e,o,r.id)}}),i.addEventListener("click",n=>{if(!e._dragged&&e._fullLayout.clickanywhere){let o=a(n);o&&kj.click(e,o,r.id)}})}function Rj(e,t,r){let i=r.xref,a=r.yref;if(Array.isArray(i)||Array.isArray(a)){let n="clip"+t._fullLayout._uid+"shape"+r._index,o=eAe(t,i,a);KM.ensureSingleById(t._fullLayout._clips,"clipPath",n,function(s){s.append("rect")}).select("rect").attr(o),c3.setClipUrl(e,n,t)}else{let n=(i+a).replace(/paper/g,"").replace(/[xyz][0-9]* *domain/g,"");c3.setClipUrl(e,n?"clip"+t._fullLayout._uid+n:null,t)}}function eAe(e,t,r){let i=e._fullLayout._size;function a(s,l){let u=(Array.isArray(s)?s:[s]).map(f=>md.getFromId(e,f)).filter(Boolean);if(!u.length)return l?[i.t,i.t+i.h]:[i.l,i.l+i.w];let c=u.map(function(f){return f._offset}),h=u.map(function(f){return f._offset+f._length});return[Math.min(...c),Math.max(...h)]}let n=a(t,!1),o=a(r,!0);return{x:n[0],y:o[0],width:n[1]-n[0],height:o[1]-o[0]}}function tAe(e,t,r,i,a,n){var o=10,s=10,l=r.xsizemode==="pixel",u=r.ysizemode==="pixel",c=r.type==="line",h=r.type==="path",f=n.modifyItem,d,p,m,g,y,x,b,_,A,T,M,S,k,P,I,B=W6e.select(t.node().parentNode),L=md.getFromId(e,r.xref),z=md.getRefType(r.xref),q=md.getFromId(e,r.yref),V=md.getRefType(r.yref),j=r.x0shift,$=r.x1shift,H=r.y0shift,Z=r.y1shift,Y=function(Fe,se){var Ue=gs.getDataToPixel(e,L,se,!1,z);return Ue(Fe)},oe=function(Fe,se){var Ue=gs.getDataToPixel(e,q,se,!0,V);return Ue(Fe)},pe=gs.getPixelToData(e,L,!1,z),De=gs.getPixelToData(e,q,!0,V),ye=J(),de={element:ye.node(),gd:e,prepFn:te,doneFn:re,clickFn:fe},Ce;Ej.init(de),ye.node().onmousemove=me;function J(){return c?ue():t}function ue(){var Fe=10,se=Math.max(r.line.width,Fe),Ue=a.append("g").attr("data-index",i).attr("drag-helper",!0);Ue.append("path").attr("d",t.attr("d")).style({cursor:"move","stroke-width":se,"stroke-opacity":"0"});var Ne={"fill-opacity":"0"},$e=Math.max(se/2,Fe);return Ue.append("circle").attr({"data-line-point":"start-point",cx:l?Y(r.xanchor)+r.x0:Y(r.x0,j),cy:u?oe(r.yanchor)-r.y0:oe(r.y0,H),r:$e}).style(Ne).classed("cursor-grab",!0),Ue.append("circle").attr({"data-line-point":"end-point",cx:l?Y(r.xanchor)+r.x1:Y(r.x1,$),cy:u?oe(r.yanchor)-r.y1:oe(r.y1,Z),r:$e}).style(Ne).classed("cursor-grab",!0),Ue}function me(Fe){if(l3(e)){Ce=null;return}if(c)Fe.target.tagName==="path"?Ce="move":Ce=Fe.target.attributes["data-line-point"].value==="start-point"?"resize-over-start-point":"resize-over-end-point";else{var se=de.element.getBoundingClientRect(),Ue=se.right-se.left,Ne=se.bottom-se.top,$e=Fe.clientX-se.left,Ae=Fe.clientY-se.top,He=!h&&Ue>o&&Ne>s&&!Fe.shiftKey?Ej.getCursor($e/Ue,1-Ae/Ne):"move";Cj(t,He),Ce=He.split("-")[0]}}function te(Fe){l3(e)||(l&&(y=Y(r.xanchor)),u&&(x=oe(r.yanchor)),r.type==="path"?I=r.path:(d=l?r.x0:Y(r.x0),p=u?r.y0:oe(r.y0),m=l?r.x1:Y(r.x1),g=u?r.y1:oe(r.y1)),dg?(b=p,M="y0",_=g,S="y1"):(b=g,M="y1",_=p,S="y0"),me(Fe),Ve(a,r),Pe(t,r,e),de.moveFn=Ce==="move"?ge:Re,de.altKey=Fe.altKey)}function re(){l3(e)||(Cj(t),Me(a),Rj(t,e,r),Ij.call("_guiRelayout",e,n.getUpdateObj()))}function fe(){l3(e)||Me(a)}function ge(Fe,se){if(r.type==="path"){var Ue=function(Ae){return Ae},Ne=Ue,$e=Ue;l?f("xanchor",r.xanchor=pe(y+Fe)):(Ne=function(He){return pe(Y(He)+Fe)},L&&L.type==="date"&&(Ne=gs.encodeDate(Ne))),u?f("yanchor",r.yanchor=De(x+se)):($e=function(He){return De(oe(He)+se)},q&&q.type==="date"&&($e=gs.encodeDate($e))),f("path",r.path=Fj(I,Ne,$e))}else l?f("xanchor",r.xanchor=pe(y+Fe)):(f("x0",r.x0=pe(d+Fe)),f("x1",r.x1=pe(m+Fe))),u?f("yanchor",r.yanchor=De(x+se)):(f("y0",r.y0=De(p+se)),f("y1",r.y1=De(g+se)));t.attr("d",JM(e,r)),Ve(a,r),u3(e,i,r,B)}function Re(Fe,se){if(h){var Ue=function(pt){return pt},Ne=Ue,$e=Ue;l?f("xanchor",r.xanchor=pe(y+Fe)):(Ne=function(st){return pe(Y(st)+Fe)},L&&L.type==="date"&&(Ne=gs.encodeDate(Ne))),u?f("yanchor",r.yanchor=De(x+se)):($e=function(st){return De(oe(st)+se)},q&&q.type==="date"&&($e=gs.encodeDate($e))),f("path",r.path=Fj(I,Ne,$e))}else if(c){if(Ce==="resize-over-start-point"){var Ae=d+Fe,He=u?p-se:p+se;f("x0",r.x0=l?Ae:pe(Ae)),f("y0",r.y0=u?He:De(He))}else if(Ce==="resize-over-end-point"){var it=m+Fe,ie=u?g-se:g+se;f("x1",r.x1=l?it:pe(it)),f("y1",r.y1=u?ie:De(ie))}}else{var Se=function(pt){return Ce.indexOf(pt)!==-1},ot=Se("n"),bt=Se("s"),Tt=Se("w"),ve=Se("e"),xe=ot?b+se:b,je=bt?_+se:_,nt=Tt?A+Fe:A,Qe=ve?T+Fe:T;u&&(ot&&(xe=b-se),bt&&(je=_-se)),(!u&&je-xe>s||u&&xe-je>s)&&(f(M,r[M]=u?xe:De(xe)),f(S,r[S]=u?je:De(je))),Qe-nt>o&&(f(k,r[k]=l?nt:pe(nt)),f(P,r[P]=l?Qe:pe(Qe)))}t.attr("d",JM(e,r)),Ve(a,r),u3(e,i,r,B)}function Ve(Fe,se){(l||u)&&Ue();function Ue(){var Ne=se.type!=="path",$e=Fe.selectAll(".visual-cue").data([0]),Ae=1;$e.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":Ae}).classed("visual-cue",!0);var He=Y(l?se.xanchor:KM.midRange(Ne?[se.x0,se.x1]:gs.extractPathCoords(se.path,vd.paramIsX))),it=oe(u?se.yanchor:KM.midRange(Ne?[se.y0,se.y1]:gs.extractPathCoords(se.path,vd.paramIsY)));if(He=gs.roundPositionForSharpStrokeRendering(He,Ae),it=gs.roundPositionForSharpStrokeRendering(it,Ae),l&&u){var ie="M"+(He-1-Ae)+","+(it-1-Ae)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";$e.attr("d",ie)}else if(l){var Se="M"+(He-1-Ae)+","+(it-9-Ae)+"v18 h2 v-18 Z";$e.attr("d",Se)}else{var ot="M"+(He-9-Ae)+","+(it-1-Ae)+"h18 v2 h-18 Z";$e.attr("d",ot)}}}function Me(Fe){Fe.selectAll(".visual-cue").remove()}function Pe(Fe,se,Ue){var Ne=se.xref,$e=se.yref,Ae=md.getFromId(Ue,Ne),He=md.getFromId(Ue,$e),it="";Ne!=="paper"&&!Ae.autorange&&(it+=Ne),$e!=="paper"&&!He.autorange&&(it+=$e),c3.setClipUrl(Fe,it?"clip"+Ue._fullLayout._uid+it:null,Ue)}}function Fj(e,t,r){return e.replace(vd.segmentRE,function(i){var a=0,n=i.charAt(0),o=vd.paramIsX[n],s=vd.paramIsY[n],l=vd.numParams[n],u=i.slice(1).replace(vd.paramRE,function(c){return a>=l||(o[a]?c=t(c):s[a]&&(c=r(c)),a++),c});return n+u})}function rAe(e,t){if(h3(e)){var r=t.node(),i=+r.getAttribute("data-index");if(i>=0){if(i===e._fullLayout._activeShapeIndex){Pj(e);return}e._fullLayout._activeShapeIndex=i,e._fullLayout._deactivateShape=Pj,QM(e)}}}function Pj(e){if(h3(e)){var t=e._fullLayout._activeShapeIndex;t>=0&&(Lj(e),delete e._fullLayout._activeShapeIndex,QM(e))}}function iAe(e){if(h3(e)){Lj(e);var t=e._fullLayout._activeShapeIndex,r=(e.layout||{}).shapes||[];if(t{"use strict";var M1=tt()._,aAe=function(e){return{DIALOG_TITLE:M1(e,"Share chart"),DIALOG_MESSAGE_CLOUD:M1(e,"This chart will be uploaded to {Plotly Cloud} to create a sharing link. Only you can see it until you change its visibility."),DIALOG_MESSAGE_CLOUD_ACCOUNT:M1(e,"If you don't have a Plotly Cloud account yet, you'll have a chance to create one."),DIALOG_MESSAGE_OTHER:M1(e,"This chart will be sent to {serverUrl}."),DIALOG_CANCEL:M1(e,"Cancel"),DIALOG_CONFIRM:M1(e,"Share")}};qj.exports=aAe});var Uj=X((Ptt,Vj)=>{"use strict";var Nj=Qr(),{dfltConfig:nAe}=Yh(),oAe=Oj(),sAe=(e,t,r,i,a)=>{let n=oAe(e),o=t.append("div").classed("plotly-cloud-dialog-box",!0);if(o.append("div").classed("plotly-cloud-dialog-title",!0).text(n.DIALOG_TITLE),r===nAe.plotlyServerURL){let l=o.append("div").classed("plotly-cloud-dialog-message",!0),u=new URL(r).origin,c=n.DIALOG_MESSAGE_CLOUD.split(/(\{|\})/),h=c[0],f=c[2],d=c[4];l.append("span").text(h),l.append("a").classed("plotly-cloud-dialog-message--hostname",!0).attr("href",u).attr("target","_blank").text(f),l.append("span").text(d),l.append("div").classed("plotly-cloud-dialog-message--account",!0).text(n.DIALOG_MESSAGE_CLOUD_ACCOUNT)}else{let l=new URL(r),u=l.hostname,c=l.origin,h=n.DIALOG_MESSAGE_OTHER.split(/(\{|\})/),f=h[0],d=h[4],p=o.append("div").classed("plotly-cloud-dialog-message",!0);p.append("span").text(f),p.append("a").classed("plotly-cloud-dialog-message--hostname",!0).attr("href",c).attr("target","_blank").text(u),p.append("span").text(d)}let s=o.append("div").classed("plotly-cloud-dialog-buttons",!0);s.append("button").classed("plotly-cloud-dialog-btn",!0).classed("plotly-cloud-dialog-btn--cancel",!0).text(n.DIALOG_CANCEL).on("click",a),s.append("button").classed("plotly-cloud-dialog-btn",!0).classed("plotly-cloud-dialog-btn--confirm",!0).text(n.DIALOG_CONFIRM).on("click",i)},lAe=(e,t,r)=>{let i=Nj.select(e._fullLayout._paperdiv.node());i.selectAll(".plotly-cloud-dialog").remove();let a=i.append("div").classed("plotly-cloud-dialog",!0),n=()=>{a.remove(),document.removeEventListener("keydown",o)},o=s=>{(s.key==="Escape"||s.keyCode===27)&&n()};document.addEventListener("keydown",o),a.on("click",()=>{Nj.event.target===a.node()&&n()}),sAe(e,a,t,()=>{n(),r()},n)};Vj.exports=lAe});var rD=X((Itt,Wj)=>{"use strict";var $s=mr(),uAe=bn(),jj=un(),li=Kb(),cAe=f3().eraseActiveShape,hAe=Uj(),D1=tt(),Gr=D1._,oi={};Wj.exports=oi;oi.toImage={name:"toImage",title:function(e){var t=e._context.toImageButtonOptions||{},r=t.format||"png";return r==="png"?Gr(e,"Download plot as a PNG"):Gr(e,"Download plot")},icon:li.camera,click:function(e){var t=e._context.toImageButtonOptions,r={format:t.format||"png"};D1.notifier(Gr(e,"Preparing image - this may take a few seconds"),"long",e),["filename","width","height","scale"].forEach(function(i){i in t&&(r[i]=t[i])}),$s.call("downloadImage",e,r).then(function(i){D1.notifier(Gr(e,"Image download succeeded")+" - "+i,"long",e)}).catch(function(){D1.notifier(Gr(e,"Sorry, there was a problem downloading your image!"),"long",e)})}};oi.downloadJson={name:"downloadJson",title:function(e){return Gr(e,"Download plot as JSON")},icon:li.curlybraces,click:function(e){$s.call("downloadImage",e,{format:"full-json"}).then(function(t){D1.notifier(Gr(e,"JSON download succeeded")+" - "+t,"long",e)}).catch(function(){D1.notifier(Gr(e,"Sorry, there was a problem downloading your JSON file!"),"long",e)})}};oi.sendChartToCloud={name:"sendChartToCloud",title:function(e){return Gr(e,"Share chart...")},icon:li.cloudupload,click:function(e){var t=(window.PLOTLYENV||{}).BASE_URL||e._context.plotlyServerURL;if(!t){console.error("No destination URL provided (plotlyServerURL is empty)");return}var r;try{r=new URL(t)}catch(a){console.error("Invalid plotlyServerURL: "+t);return}let i=["http:","https:"];if(!i.includes(r.protocol)){console.error(`Invalid protocol '${r.protocol}' in plotlyServerURL '${t}'. Must be one of: ${i.join(", ")}`);return}hAe(e,t,function(){uAe.sendDataToCloud(e,t)})}};oi.zoom2d={name:"zoom2d",_cat:"zoom",title:function(e){return Gr(e,"Zoom")},attr:"dragmode",val:"zoom",icon:li.zoombox,click:Fo};oi.pan2d={name:"pan2d",_cat:"pan",title:function(e){return Gr(e,"Pan")},attr:"dragmode",val:"pan",icon:li.pan,click:Fo};oi.select2d={name:"select2d",_cat:"select",title:function(e){return Gr(e,"Box Select")},attr:"dragmode",val:"select",icon:li.selectbox,click:Fo};oi.lasso2d={name:"lasso2d",_cat:"lasso",title:function(e){return Gr(e,"Lasso Select")},attr:"dragmode",val:"lasso",icon:li.lasso,click:Fo};oi.drawclosedpath={name:"drawclosedpath",title:function(e){return Gr(e,"Draw closed freeform")},attr:"dragmode",val:"drawclosedpath",icon:li.drawclosedpath,click:Fo};oi.drawopenpath={name:"drawopenpath",title:function(e){return Gr(e,"Draw open freeform")},attr:"dragmode",val:"drawopenpath",icon:li.drawopenpath,click:Fo};oi.drawline={name:"drawline",title:function(e){return Gr(e,"Draw line")},attr:"dragmode",val:"drawline",icon:li.drawline,click:Fo};oi.drawrect={name:"drawrect",title:function(e){return Gr(e,"Draw rectangle")},attr:"dragmode",val:"drawrect",icon:li.drawrect,click:Fo};oi.drawcircle={name:"drawcircle",title:function(e){return Gr(e,"Draw circle")},attr:"dragmode",val:"drawcircle",icon:li.drawcircle,click:Fo};oi.eraseshape={name:"eraseshape",title:function(e){return Gr(e,"Erase active shape")},icon:li.eraseshape,click:cAe};oi.zoomIn2d={name:"zoomIn2d",_cat:"zoomin",title:function(e){return Gr(e,"Zoom in")},attr:"zoom",val:"in",icon:li.zoom_plus,click:Fo};oi.zoomOut2d={name:"zoomOut2d",_cat:"zoomout",title:function(e){return Gr(e,"Zoom out")},attr:"zoom",val:"out",icon:li.zoom_minus,click:Fo};oi.autoScale2d={name:"autoScale2d",_cat:"autoscale",title:function(e){return Gr(e,"Autoscale")},attr:"zoom",val:"auto",icon:li.autoscale,click:Fo};oi.resetScale2d={name:"resetScale2d",_cat:"resetscale",title:function(e){return Gr(e,"Reset axes")},attr:"zoom",val:"reset",icon:li.home,click:Fo};oi.hoverClosestCartesian={name:"hoverClosestCartesian",_cat:"hoverclosest",title:function(e){return Gr(e,"Show closest data on hover")},attr:"hovermode",val:"closest",icon:li.tooltip_basic,gravity:"ne",click:Fo};oi.hoverCompareCartesian={name:"hoverCompareCartesian",_cat:"hoverCompare",title:function(e){return Gr(e,"Compare data on hover")},attr:"hovermode",val:function(e){return e._fullLayout._isHoriz?"y":"x"},icon:li.tooltip_compare,gravity:"ne",click:Fo};function Fo(e,t){var r=t.currentTarget,i=r.getAttribute("data-attr"),a=r.getAttribute("data-val")||!0,n=e._fullLayout,o={},s=jj.list(e,null,!0),l=n._cartesianSpikesEnabled,u,c;if(i==="zoom"){var h=a==="in"?.5:2,f=(1+h)/2,d=(1-h)/2,p,m;for(c=0;c-T),[m,g]=h.invert(c.midPt),{minscale:y}=u.projection,x=(s=u.projection.maxscale)!=null?s:1/0,b=Math.min(y,x),_=Math.max(y,x),A=a==="in"?Gj*f:1/Gj*f;A>_?A=_:A{"use strict";var Xj=rD(),mAe=Object.keys(Xj),Kj=["drawline","drawopenpath","drawclosedpath","drawcircle","drawrect","eraseshape"],Jj=["v1hovermode","hoverclosest","hovercompare","togglehover","togglespikelines"].concat(Kj,["downloadJson"]),S1=[],vAe=function(e){if(Jj.indexOf(e._cat||e.name)===-1){var t=e.name,r=(e._cat||e.name).toLowerCase();S1.indexOf(t)===-1&&S1.push(t),S1.indexOf(r)===-1&&S1.push(r)}};mAe.forEach(function(e){vAe(Xj[e])});S1.sort();Qj.exports={DRAW_MODES:Kj,backButtons:Jj,foreButtons:S1}});var nD={};Yi(nD,{default:()=>yAe});var aD,gAe,yAe,oD=Gi(()=>{"use strict";aD=DA(iD()),gAe={editType:"modebar",orientation:{valType:"enumerated",values:["v","h"],dflt:"h",editType:"modebar",description:"Sets the orientation of the modebar."},bgcolor:{valType:"color",editType:"modebar",description:"Sets the background color of the modebar."},color:{valType:"color",editType:"modebar",description:"Sets the color of the icons in the modebar."},activecolor:{valType:"color",editType:"modebar",description:"Sets the color of the active or hovered on icons in the modebar."},uirevision:{valType:"any",editType:"none",description:["Controls persistence of user-driven changes related to the modebar,","including `hovermode`, `dragmode`, and `showspikes` at both the","root level and inside subplots. Defaults to `layout.uirevision`."].join(" ")},add:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar",description:["Determines which predefined modebar buttons to add.","Please note that these buttons will only be shown if they are","compatible with all trace types used in a graph.","Similar to `config.modeBarButtonsToAdd` option.",`This may include *${aD.default.backButtons.join("*, *")}*.`].join(" ")},remove:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar",description:["Determines which predefined modebar buttons to remove.","Similar to `config.modeBarButtonsToRemove` option.",`This may include *${aD.default.foreButtons.join("*, *")}*.`].join(" ")}},yAe=gAe});var t$=X((ztt,e$)=>{"use strict";var _Ae=tt(),vg=Vr(),xAe=qi(),bAe=(oD(),lt(nD)).default;e$.exports=function(t,r){var i=t.modebar||{},a=xAe.newContainer(r,"modebar");function n(s,l){return _Ae.coerce(i,a,bAe,s,l)}n("orientation"),n("bgcolor",vg.addOpacity(r.paper_bgcolor,.5));var o=vg.contrast(vg.rgb(r.modebar.bgcolor));n("color",vg.addOpacity(o,.3)),n("activecolor",vg.addOpacity(o,.7)),n("uirevision",r.uirevision),n("add"),n("remove")}});var n$=X((Rtt,a$)=>{"use strict";var sD=Qr(),wAe=Nr(),m3=tt(),r$=Kb(),AAe=lv().version,TAe=new DOMParser;function i$(e){this.container=e.container,this.element=document.createElement("div"),this.update(e.graphInfo,e.buttons),this.container.appendChild(this.element)}var vc=i$.prototype;vc.update=function(e,t){this.graphInfo=e;var r=this.graphInfo._context,i=this.graphInfo._fullLayout,a="modebar-"+i._uid;this.element.setAttribute("id",a),this.element.setAttribute("role","toolbar"),this._uid=a,this.element.className="modebar modebar--custom",r.displayModeBar==="hover"&&(this.element.className+=" modebar--hover ease-bg"),i.modebar.orientation==="v"&&(this.element.className+=" vertical",t=t.reverse());var n=i.modebar,o="#"+a+" .modebar-group";document.querySelectorAll(o).forEach(function(h){h.style.backgroundColor=n.bgcolor});var s=!this.hasButtons(t),l=this.hasLogo!==r.displaylogo,u=this.locale!==r.locale;if(this.locale=r.locale,(s||l||u)&&(this.removeAllButtons(),this.updateButtons(t),r.watermark||r.displaylogo)){var c=this.getLogo();r.watermark&&(c.className=c.className+" watermark"),i.modebar.orientation==="v"?this.element.insertBefore(c,this.element.childNodes[0]):this.element.appendChild(c),this.hasLogo=!0}this.updateActiveButton(),m3.setStyleOnHover("#"+a+" .modebar-btn",".active",".icon path","fill: "+n.activecolor,"fill: "+n.color,this.element)};vc.updateButtons=function(e){var t=this;this.buttons=e,this.buttonElements=[],this.buttonsNames=[],this.buttons.forEach(function(r){var i=t.createGroup();r.forEach(function(a){var n=a.name;if(!n)throw new Error("must provide button 'name' in button config");if(t.buttonsNames.indexOf(n)!==-1)throw new Error("button name '"+n+"' is taken");t.buttonsNames.push(n);var o=t.createButton(a);t.buttonElements.push(o),i.appendChild(o)}),t.element.appendChild(i)})};vc.createGroup=function(){var e=document.createElement("div");e.className="modebar-group";var t=this.graphInfo._fullLayout.modebar;return e.style.backgroundColor=t.bgcolor,e};vc.createButton=function(e){var t=this,r=document.createElement("button");r.setAttribute("type","button"),r.setAttribute("rel","tooltip"),r.className="modebar-btn";var i=e.title;i===void 0?i=e.name:typeof i=="function"&&(i=i(this.graphInfo)),(i||i===0)&&(r.setAttribute("data-title",i),r.setAttribute("aria-label",i)),e.attr!==void 0&&r.setAttribute("data-attr",e.attr);var a=e.val;a!==void 0&&(typeof a=="function"&&(a=a(this.graphInfo)),r.setAttribute("data-val",a));var n=e.click;if(typeof n!="function")throw new Error("must provide button 'click' function in button config");r.addEventListener("click",function(s){e.click(t.graphInfo,s),t.updateActiveButton(s.currentTarget)}),r.setAttribute("data-toggle",e.toggle||!1),e.toggle&&sD.select(r).classed("active",!0);var o=e.icon;return typeof o=="function"?r.appendChild(o()):r.appendChild(this.createIcon(o||r$.question)),r.setAttribute("data-gravity",e.gravity||"n"),r};vc.createIcon=function(e){var t=wAe(e.height)?Number(e.height):e.ascent-e.descent,r="http://www.w3.org/2000/svg",i;if(e.path){i=document.createElementNS(r,"svg"),i.setAttribute("viewBox",[0,0,e.width,t].join(" ")),i.setAttribute("class","icon");var a=document.createElementNS(r,"path");a.setAttribute("d",e.path),e.transform?a.setAttribute("transform",e.transform):e.ascent!==void 0&&a.setAttribute("transform","matrix(1 0 0 -1 0 "+e.ascent+")"),i.appendChild(a)}if(e.svg){var n=TAe.parseFromString(e.svg,"application/xml");i=n.childNodes[0]}return i.setAttribute("height","1em"),i.setAttribute("width","1em"),i};vc.updateActiveButton=function(e){var t=this.graphInfo._fullLayout,r=e!==void 0?e.getAttribute("data-attr"):null;this.buttonElements.forEach(function(i){var a=i.getAttribute("data-val")||!0,n=i.getAttribute("data-attr"),o=i.getAttribute("data-toggle")==="true",s=sD.select(i),l=function(h,f){var d=t.modebar,p=h.querySelector(".icon path");p&&(f||h.matches(":hover")?p.style.fill=d.activecolor:p.style.fill=d.color)};if(o){if(n===r){var u=!s.classed("active");s.classed("active",u),l(i,u)}}else{var c=n===null?n:m3.nestedProperty(t,n).get();s.classed("active",c===a),l(i,c===a)}})};vc.hasButtons=function(e){var t=this.buttons;if(!t||e.length!==t.length)return!1;for(var r=0;r{"use strict";var SAe=un(),o$=So(),lD=mr(),EAe=nc().isUnifiedHover,kAe=n$(),v3=rD(),CAe=iD().DRAW_MODES,FAe=tt().extendDeep;s$.exports=function(t){var r=t._fullLayout,i=t._context,a=r._modeBar;if(!i.displayModeBar&&!i.watermark){a&&(a.destroy(),delete r._modeBar);return}if(!Array.isArray(i.modeBarButtonsToRemove))throw new Error(["*modeBarButtonsToRemove* configuration options","must be an array."].join(" "));if(!Array.isArray(i.modeBarButtonsToAdd))throw new Error(["*modeBarButtonsToAdd* configuration options","must be an array."].join(" "));var n=i.modeBarButtons,o;Array.isArray(n)&&n.length?o=BAe(n):!i.displayModeBar&&i.watermark?o=[]:o=PAe(t),a?a.update(t,o):r._modeBar=kAe(t,o)};function PAe(e){var t=e._fullLayout,r=e._fullData,i=e._context;function a($,H){if(typeof H=="string"){if(H.toLowerCase()===$.toLowerCase())return!0}else{var Z=H.name,Y=H._cat||H.name;if(Z===$||Y===$.toLowerCase())return!0}return!1}var n=t.modebar.add;typeof n=="string"&&(n=[n]);var o=t.modebar.remove;typeof o=="string"&&(o=[o]);var s=i.modeBarButtonsToAdd.concat(n.filter(function($){for(var H=0;H1?(k=["toggleHover"],P=["resetViews"]):h?(S=["zoomInGeo","zoomOutGeo"],k=["hoverClosestGeo"],P=["resetGeo"]):c?(k=["hoverClosest3d"],P=["resetCameraDefault3d","resetCameraLastSave3d"]):m?(S=["zoomInMap","zoomOutMap"],k=["toggleHover"],P=["resetViewMap"]):f?k=["hoverClosestPie"]:x?(k=["hoverClosestCartesian","hoverCompareCartesian"],P=["resetViewSankey"]):k=["toggleHover"],u&&k.push("toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"),(zAe(r)||_)&&(k=[]),u&&!b&&(S=["zoomIn2d","zoomOut2d","autoScale2d"],P[0]!=="resetViews"&&(P=["resetScale2d"])),c?I=["zoom3d","pan3d","orbitRotation","tableRotation"]:u&&!b||p?I=["zoom2d","pan2d"]:m||h?I=["pan2d"]:g&&(I=["zoom2d"]),LAe(r)&&I.push("select2d","lasso2d");var B=[],L=function($){B.indexOf($)===-1&&k.indexOf($)!==-1&&B.push($)};if(Array.isArray(s)){for(var z=[],q=0;q{"use strict";u$.exports={moduleType:"component",name:"modebar",layoutAttributes:(oD(),lt(nD)).default,supplyLayoutDefaults:t$(),manage:l$()}});var cD=X((Ott,c$)=>{"use strict";var qAe=(uo(),lt(lo)).FROM_BL;c$.exports=function(t,r,i){i===void 0&&(i=qAe[t.constraintoward||"center"]);var a=[t.r2l(t.range[0]),t.r2l(t.range[1])],n=a[0]+(a[1]-a[0])*i;t.range=t._input.range=[t.l2r(n+(a[0]-n)*r),t.l2r(n+(a[1]-n)*r)],t.setScale()}});var yg=X(gg=>{"use strict";var gd=tt(),hD=Qv(),_u=un().id2name,OAe=vu(),h$=cD(),NAe=yb(),VAe=(Ji(),lt(ua)).ALMOST_EQUAL,UAe=(uo(),lt(lo)).FROM_BL;gg.handleDefaults=function(e,t,r){var i=r.axIds,a=r.axHasImage,n=t._axisConstraintGroups=[],o=t._axisMatchGroups=[],s,l,u,c,h,f,d,p;for(s=0;sn?r.slice(n):i.slice(a))+o}function jAe(e,t){for(var r=t._size,i=r.h/r.w,a={},n=Object.keys(e),o=0;oVAe*p&&!x)){for(n=0;nB&&ZP&&(P=Z);var oe=(P-k)/(2*I);h/=oe,k=l.l2r(k),P=l.l2r(P),l.range=l._input.range=T{"use strict";var y3=Qr(),Po=mr(),Hs=bn(),Al=tt(),pD=cn(),mD=Xb(),_g=Vr(),E1=xi(),m$=Kv(),x$=uD(),xg=ra(),oh=(uo(),lt(lo)),b$=yg(),$Ae=b$.enforce,HAe=b$.clean,v$=Qv().doAutoRange,w$="start",ZAe="middle",A$="end",YAe=(xn(),lt(_n)).zindexSeparator;An.layoutStyles=function(e){return Al.syncOrAsync([Hs.doAutoMargin,XAe],e)};function WAe(e,t,r){for(var i=0;i=e[1]||a[1]<=e[0])&&n[0]t[0])return!0}return!1}function XAe(e){var t=e._fullLayout,r=t._size,i=r.p,a=xg.list(e,"",!0),n,o,s,l,u,c;if(t._paperdiv.style({width:e._context.responsive&&t.autosize&&!e._context._hasZeroWidth&&!e.layout.width?"100%":t.width+"px",height:e._context.responsive&&t.autosize&&!e._context._hasZeroHeight&&!e.layout.height?"100%":t.height+"px"}).selectAll(".main-svg").call(E1.setSize,t.width,t.height),e._context.setBackground(e,t.paper_bgcolor),An.drawMainTitle(e),x$.manage(e),!t._has("cartesian"))return Hs.previousPromises(e);function h(te,re,fe){var ge=te._lw/2;if(te._id.charAt(0)==="x"){if(re){if(fe==="top")return re._offset-i-ge}else return r.t+r.h*(1-(te.position||0))+ge%1;return re._offset+re._length+i+ge}if(re){if(fe==="right")return re._offset+re._length+i+ge}else return r.l+r.w*(te.position||0)+ge%1;return re._offset-i-ge}for(n=0;n0){eTe(e,n,u,l),s.attr({x:o,y:n,"text-anchor":i,dy:_$(t.yanchor)}).call(pD.positionText,o,n);var c=(t.text.match(pD.BR_TAG_ALL)||[]).length;if(c){var h=oh.LINE_SPACING*c+oh.MID_SHIFT;t.y===0&&(h=-h),s.selectAll(".line").each(function(){var g=+this.getAttribute("dy").slice(0,-2)-h+"em";this.setAttribute("dy",g)})}var f=y3.select(e).selectAll(".gtitle-subtitle");if(f.node()){var d=s.node().getBBox(),p=d.y+d.height,m=p+m$.SUBTITLE_PADDING_EM*t.subtitle.font.size;f.attr({x:o,y:m,"text-anchor":i,dy:_$(t.yanchor)}).call(pD.positionText,o,m)}}}};function KAe(e,t,r,i,a){var n=t.yref==="paper"?e._fullLayout._size.h:e._fullLayout.height,o=Al.isTopAnchor(t)?i:i-a,s=r==="b"?n-o:o;return Al.isTopAnchor(t)&&r==="t"||Al.isBottomAnchor(t)&&r==="b"?!1:s.5?"t":"b",o=e._fullLayout.margin[n],s=0;return t.yref==="paper"?s=r+t.pad.t+t.pad.b:t.yref==="container"&&(s=JAe(n,i,a,e._fullLayout.height,r)+t.pad.t+t.pad.b),s>o?s:0}function eTe(e,t,r,i){var a="title.automargin",n=e._fullLayout.title,o=n.y>.5?"t":"b",s={x:n.x,y:n.y,t:0,b:0},l={};n.yref==="paper"&&KAe(e,n,o,t,i)?s[o]=r:n.yref==="container"&&(l[o]=r,e._fullLayout._reservedMargin[a]=l),Hs.allowAutoMargin(e,a),Hs.autoMargin(e,a,s)}function tTe(e,t){var r=e.title,i=e._size,a=0;return t===w$?a=r.pad.l:t===A$&&(a=-r.pad.r),r.xref==="paper"?i.l+i.w*r.x+a:e.width*r.x+a}function rTe(e,t){var r=e.title,i=e._size,a=0;return t==="0em"||!t?a=-r.pad.b:t===oh.CAP_SHIFT+"em"&&(a=r.pad.t),r.y==="auto"?i.t/2:r.yref==="paper"?i.t+i.h-i.h*r.y+a:e.height-e.height*r.y+a}function _$(e){return e==="top"?oh.CAP_SHIFT+.3+"em":e==="bottom"?"-0.3em":oh.MID_SHIFT+"em"}function iTe(e){var t=e.title,r=ZAe;return Al.isRightAnchor(t)?r=A$:Al.isLeftAnchor(t)&&(r=w$),r}function aTe(e){var t=e.title,r="0em";return Al.isTopAnchor(t)?r=oh.CAP_SHIFT+"em":Al.isMiddleAnchor(t)&&(r=oh.MID_SHIFT+"em"),r}An.doTraceStyle=function(e){var t=e.calcdata,r=[],i;for(i=0;i{"use strict";var nTe=yf().readPaths,oTe=s3(),T$=of().clearOutlineControllers,vD=Vr(),M$=xi(),sTe=qi().arrayEditor,D$=bf(),lTe=D$.getPathString;E$.exports={draw:x3,drawOne:S$,activateLastSelection:hTe};function x3(e){var t=e._fullLayout;T$(e),t._selectionLayer.selectAll("path").remove();for(var r in t._plots){var i=t._plots[r].selectionLayer;i&&i.selectAll("path").remove()}for(var a=0;a=0;g--){var y=o.append("path").attr(l).style("opacity",g?.1:u).call(vD.stroke,h).call(vD.fill,c).call(M$.dashLine,g?"solid":d,g?4+f:f);if(uTe(y,e,i),p){var x=sTe(e.layout,"selections",i);y.style({cursor:"move"});var b={element:y.node(),plotinfo:a,gd:e,editHelpers:x,isActiveSelection:!0},_=nTe(s,e);oTe(_,y,b)}else y.style("pointer-events",g?"all":"none");m[g]=y}var A=m[0],T=m[1];T.node().addEventListener("click",function(){return cTe(e,A)})}}function uTe(e,t,r){var i=r.xref+r.yref;M$.setClipUrl(e,"clip"+t._fullLayout._uid+i,t)}function cTe(e,t){if(b3(e)){var r=t.node(),i=+r.getAttribute("data-index");if(i>=0){if(i===e._fullLayout._activeSelectionIndex){gD(e);return}e._fullLayout._activeSelectionIndex=i,e._fullLayout._deactivateSelection=gD,x3(e)}}}function hTe(e){if(b3(e)){var t=e._fullLayout.selections.length-1;e._fullLayout._activeSelectionIndex=t,e._fullLayout._deactivateSelection=gD,x3(e)}}function gD(e){if(b3(e)){var t=e._fullLayout._activeSelectionIndex;t>=0&&(T$(e),delete e._fullLayout._activeSelectionIndex,x3(e))}}});var C$=X((Gtt,k$)=>{function fTe(){var e,t=0,r=!1;function i(a,n){return e.list.push({type:a,data:n?JSON.parse(JSON.stringify(n)):void 0}),e}return e={list:[],segmentId:function(){return t++},checkIntersection:function(a,n){return i("check",{seg1:a,seg2:n})},segmentChop:function(a,n){return i("div_seg",{seg:a,pt:n}),i("chop",{seg:a,pt:n})},statusRemove:function(a){return i("pop_seg",{seg:a})},segmentUpdate:function(a){return i("seg_update",{seg:a})},segmentNew:function(a,n){return i("new_seg",{seg:a,primary:n})},segmentRemove:function(a){return i("rem_seg",{seg:a})},tempStatus:function(a,n,o){return i("temp_status",{seg:a,above:n,below:o})},rewind:function(a){return i("rewind",{seg:a})},status:function(a,n,o){return i("status",{seg:a,above:n,below:o})},vert:function(a){return a===r?e:(r=a,i("vert",{x:a}))},log:function(a){return typeof a!="string"&&(a=JSON.stringify(a,!1," ")),i("log",{txt:a})},reset:function(){return i("reset")},selected:function(a){return i("selected",{segs:a})},chainStart:function(a){return i("chain_start",{seg:a})},chainRemoveHead:function(a,n){return i("chain_rem_head",{index:a,pt:n})},chainRemoveTail:function(a,n){return i("chain_rem_tail",{index:a,pt:n})},chainNew:function(a,n){return i("chain_new",{pt1:a,pt2:n})},chainMatch:function(a){return i("chain_match",{index:a})},chainClose:function(a){return i("chain_close",{index:a})},chainAddHead:function(a,n){return i("chain_add_head",{index:a,pt:n})},chainAddTail:function(a,n){return i("chain_add_tail",{index:a,pt:n})},chainConnect:function(a,n){return i("chain_con",{index1:a,index2:n})},chainReverse:function(a){return i("chain_rev",{index:a})},chainJoin:function(a,n){return i("chain_join",{index1:a,index2:n})},done:function(){return i("done")}},e}k$.exports=fTe});var P$=X((jtt,F$)=>{function dTe(e){typeof e!="number"&&(e=1e-10);var t={epsilon:function(r){return typeof r=="number"&&(e=r),e},pointAboveOrOnLine:function(r,i,a){var n=i[0],o=i[1],s=a[0],l=a[1],u=r[0],c=r[1];return(s-n)*(c-o)-(l-o)*(u-n)>=-e},pointBetween:function(r,i,a){var n=r[1]-i[1],o=a[0]-i[0],s=r[0]-i[0],l=a[1]-i[1],u=s*o+n*l;if(u-e)},pointsSameX:function(r,i){return Math.abs(r[0]-i[0])e!=s-n>e&&(o-c)*(n-h)/(s-h)+c-a>e&&(l=!l),o=c,s=h}return l}};return t}F$.exports=dTe});var L$=X(($tt,I$)=>{var pTe={create:function(){var e={root:{root:!0,next:null},exists:function(t){return!(t===null||t===e.root)},isEmpty:function(){return e.root.next===null},getHead:function(){return e.root.next},insertBefore:function(t,r){for(var i=e.root,a=e.root.next;a!==null;){if(r(a)){t.prev=a.prev,t.next=a,a.prev.next=t,a.prev=t;return}i=a,a=a.next}i.next=t,t.prev=i,t.next=null},findTransition:function(t){for(var r=e.root,i=e.root.next;i!==null&&!t(i);)r=i,i=i.next;return{before:r===e.root?null:r,after:i,insert:function(a){return a.prev=r,a.next=i,r.next=a,i!==null&&(i.prev=a),a}}}};return e},node:function(e){return e.prev=null,e.next=null,e.remove=function(){e.prev.next=e.next,e.next&&(e.next.prev=e.prev),e.prev=null,e.next=null},e}};I$.exports=pTe});var R$=X((Htt,z$)=>{var bg=L$();function mTe(e,t,r){function i(p,m){return{id:r?r.segmentId():-1,start:p,end:m,myFill:{above:null,below:null},otherFill:null}}function a(p,m,g){return{id:r?r.segmentId():-1,start:p,end:m,myFill:{above:g.myFill.above,below:g.myFill.below},otherFill:null}}var n=bg.create();function o(p,m,g,y,x,b){var _=t.pointsCompare(m,x);return _!==0?_:t.pointsSame(g,b)?0:p!==y?p?1:-1:t.pointAboveOrOnLine(g,y?x:b,y?b:x)?1:-1}function s(p,m){n.insertBefore(p,function(g){var y=o(p.isStart,p.pt,m,g.isStart,g.pt,g.other.pt);return y<0})}function l(p,m){var g=bg.node({isStart:!0,pt:p.start,seg:p,primary:m,other:null,status:null});return s(g,p.end),g}function u(p,m,g){var y=bg.node({isStart:!1,pt:m.end,seg:m,primary:g,other:p,status:null});p.other=y,s(y,p.pt)}function c(p,m){var g=l(p,m);return u(g,p,m),g}function h(p,m){r&&r.segmentChop(p.seg,m),p.other.remove(),p.seg.end=m,p.other.pt=m,s(p.other,p.pt)}function f(p,m){var g=a(m,p.seg.end,p.seg);return h(p,m),c(g,p.primary)}function d(p,m){var g=bg.create();function y(q,V){var j=q.seg.start,$=q.seg.end,H=V.seg.start,Z=V.seg.end;return t.pointsCollinear(j,H,Z)?t.pointsCollinear($,H,Z)||t.pointAboveOrOnLine($,H,Z)?1:-1:t.pointAboveOrOnLine(j,H,Z)?1:-1}function x(q){return g.findTransition(function(V){var j=y(q,V.ev);return j>0})}function b(q,V){var j=q.seg,$=V.seg,H=j.start,Z=j.end,Y=$.start,oe=$.end;r&&r.checkIntersection(j,$);var pe=t.linesIntersect(H,Z,Y,oe);if(pe===!1){if(!t.pointsCollinear(H,Z,Y)||t.pointsSame(H,oe)||t.pointsSame(Z,Y))return!1;var De=t.pointsSame(H,Y),ye=t.pointsSame(Z,oe);if(De&&ye)return V;var de=!De&&t.pointBetween(H,Y,oe),Ce=!ye&&t.pointBetween(Z,Y,oe);if(De)return Ce?f(V,Z):f(q,oe),V;de&&(ye||(Ce?f(V,Z):f(q,oe)),f(V,H))}else pe.alongA===0&&(pe.alongB===-1?f(q,Y):pe.alongB===0?f(q,pe.pt):pe.alongB===1&&f(q,oe)),pe.alongB===0&&(pe.alongA===-1?f(V,H):pe.alongA===0?f(V,pe.pt):pe.alongA===1&&f(V,Z));return!1}for(var _=[];!n.isEmpty();){var A=n.getHead();if(r&&r.vert(A.pt[0]),A.isStart){let q=function(){if(M){var V=b(A,M);if(V)return V}return S?b(A,S):!1};var z=q;r&&r.segmentNew(A.seg,A.primary);var T=x(A),M=T.before?T.before.ev:null,S=T.after?T.after.ev:null;r&&r.tempStatus(A.seg,M?M.seg:!1,S?S.seg:!1);var k=q();if(k){if(e){var P;A.seg.myFill.below===null?P=!0:P=A.seg.myFill.above!==A.seg.myFill.below,P&&(k.seg.myFill.above=!k.seg.myFill.above)}else k.seg.otherFill=A.seg.myFill;r&&r.segmentUpdate(k.seg),A.other.remove(),A.remove()}if(n.getHead()!==A){r&&r.rewind(A.seg);continue}if(e){var P;A.seg.myFill.below===null?P=!0:P=A.seg.myFill.above!==A.seg.myFill.below,S?A.seg.myFill.below=S.seg.myFill.above:A.seg.myFill.below=p,P?A.seg.myFill.above=!A.seg.myFill.below:A.seg.myFill.above=A.seg.myFill.below}else if(A.seg.otherFill===null){var I;S?A.primary===S.primary?I=S.seg.otherFill.above:I=S.seg.myFill.above:I=A.primary?m:p,A.seg.otherFill={above:I,below:I}}r&&r.status(A.seg,M?M.seg:!1,S?S.seg:!1),A.other.status=T.insert(bg.node({ev:A}))}else{var B=A.status;if(B===null)throw new Error("PolyBool: Zero-length segment detected; your epsilon is probably too small or too large");if(g.exists(B.prev)&&g.exists(B.next)&&b(B.prev.ev,B.next.ev),r&&r.statusRemove(B.ev.seg),B.remove(),!A.primary){var L=A.seg.myFill;A.seg.myFill=A.seg.otherFill,A.seg.otherFill=L}_.push(A.seg)}n.getHead().remove()}return r&&r.done(),_}return e?{addRegion:function(p){for(var m,g=p[p.length-1],y=0;y{function vTe(e,t,r){var i=[],a=[];return e.forEach(function(n){var o=n.start,s=n.end;if(t.pointsSame(o,s)){console.warn("PolyBool: Warning: Zero-length segment detected; your epsilon is probably too small or too large");return}r&&r.chainStart(n);var l={index:0,matches_head:!1,matches_pt1:!1},u={index:0,matches_head:!1,matches_pt1:!1},c=l;function h(z,q,V){return c.index=z,c.matches_head=q,c.matches_pt1=V,c===l?(c=u,!1):(c=null,!0)}for(var f=0;f{function wg(e,t,r){var i=[];return e.forEach(function(a){var n=(a.myFill.above?8:0)+(a.myFill.below?4:0)+(a.otherFill&&a.otherFill.above?2:0)+(a.otherFill&&a.otherFill.below?1:0);t[n]!==0&&i.push({id:r?r.segmentId():-1,start:a.start,end:a.end,myFill:{above:t[n]===1,below:t[n]===2},otherFill:null})}),r&&r.selected(i),i}var gTe={union:function(e,t){return wg(e,[0,2,1,0,2,2,0,0,1,0,1,0,0,0,0,0],t)},intersect:function(e,t){return wg(e,[0,0,0,0,0,2,0,2,0,0,1,1,0,2,1,0],t)},difference:function(e,t){return wg(e,[0,0,0,0,2,0,2,0,1,1,0,0,0,1,2,0],t)},differenceRev:function(e,t){return wg(e,[0,2,1,0,0,0,1,1,0,2,0,2,0,0,0,0],t)},xor:function(e,t){return wg(e,[0,2,1,0,2,0,0,1,1,0,0,2,0,1,2,0],t)}};O$.exports=gTe});var U$=X((Wtt,V$)=>{var yTe={toPolygon:function(e,t){function r(n){if(n.length<=0)return e.segments({inverted:!1,regions:[]});function o(u){var c=u.slice(0,u.length-1);return e.segments({inverted:!1,regions:[c]})}for(var s=o(n[0]),l=1;l{var _Te=C$(),xTe=P$(),G$=R$(),bTe=q$(),Ag=N$(),j$=U$(),Tl=!1,Tg=xTe(),ys;ys={buildLog:function(e){return e===!0?Tl=_Te():e===!1&&(Tl=!1),Tl===!1?!1:Tl.list},epsilon:function(e){return Tg.epsilon(e)},segments:function(e){var t=G$(!0,Tg,Tl);return e.regions.forEach(t.addRegion),{segments:t.calculate(e.inverted),inverted:e.inverted}},combine:function(e,t){var r=G$(!1,Tg,Tl);return{combined:r.calculate(e.segments,e.inverted,t.segments,t.inverted),inverted1:e.inverted,inverted2:t.inverted}},selectUnion:function(e){return{segments:Ag.union(e.combined,Tl),inverted:e.inverted1||e.inverted2}},selectIntersect:function(e){return{segments:Ag.intersect(e.combined,Tl),inverted:e.inverted1&&e.inverted2}},selectDifference:function(e){return{segments:Ag.difference(e.combined,Tl),inverted:e.inverted1&&!e.inverted2}},selectDifferenceRev:function(e){return{segments:Ag.differenceRev(e.combined,Tl),inverted:!e.inverted1&&e.inverted2}},selectXor:function(e){return{segments:Ag.xor(e.combined,Tl),inverted:e.inverted1!==e.inverted2}},polygon:function(e){return{regions:bTe(e.segments,Tg,Tl),inverted:e.inverted}},polygonFromGeoJSON:function(e){return j$.toPolygon(ys,e)},polygonToGeoJSON:function(e){return j$.fromPolygon(ys,Tg,e)},union:function(e,t){return Mg(e,t,ys.selectUnion)},intersect:function(e,t){return Mg(e,t,ys.selectIntersect)},difference:function(e,t){return Mg(e,t,ys.selectDifference)},differenceRev:function(e,t){return Mg(e,t,ys.selectDifferenceRev)},xor:function(e,t){return Mg(e,t,ys.selectXor)}};function Mg(e,t,r){var i=ys.segments(e),a=ys.segments(t),n=ys.combine(i,a),o=r(n);return ys.polygon(o)}typeof window=="object"&&(window.PolyBool=ys);$$.exports=ys});var Y$=X((Ktt,Z$)=>{Z$.exports=function(t,r,i,a){var n=t[0],o=t[1],s=!1;i===void 0&&(i=0),a===void 0&&(a=r.length);for(var l=a-i,u=0,c=l-1;uo!=p>o&&n<(d-h)*(o-f)/(p-f)+h;m&&(s=!s)}return s}});var T3=X((Jtt,W$)=>{"use strict";var _D=xx().dot,w3=(Ji(),lt(ua)).BADNUM,A3=W$.exports={};A3.tester=function(t){var r=t.slice(),i=r[0][0],a=i,n=r[0][1],o=n,s;for((r[r.length-1][0]!==r[0][0]||r[r.length-1][1]!==r[0][1])&&r.push(r[0]),s=1;sa||y===w3||yo||m&&u(p))}function h(p,m){var g=p[0],y=p[1];if(g===w3||ga||y===w3||yo)return!1;var x=r.length,b=r[0][0],_=r[0][1],A=0,T,M,S,k,P;for(T=1;TMath.max(M,b)||y>Math.max(S,_)))if(ys||Math.abs(_D(h,u))>a)return!0;return!1};A3.filter=function(t,r){var i=[t[0]],a=0,n=0;function o(l){t.push(l);var u=i.length,c=a;i.splice(n+1);for(var h=c+1;h1){var s=t.pop();o(s)}return{addPt:o,raw:t,filtered:i}}});var X$={};Yi(X$,{BENDPX:()=>wTe,MINSELECT:()=>ATe,SELECTDELAY:()=>TTe,SELECTID:()=>MTe});var wTe,ATe,TTe,MTe,K$=Gi(()=>{"use strict";wTe=1.5,ATe=12,TTe=100,MTe="-select"});var _H=X((Qtt,yH)=>{"use strict";var J$=H$(),DTe=Y$(),Eg=mr(),STe=xi().dashStyle,Dg=Vr(),ETe=yu(),kTe=nc().makeEventData,Ig=dd(),CTe=Ig.freeMode,FTe=Ig.rectMode,kg=Ig.drawMode,AD=Ig.openMode,TD=Ig.selectMode,Q$=bf(),eH=(pg(),lt(dg)),nH=s3(),oH=of().clearOutline,sH=yf(),xD=sH.handleEllipse,PTe=sH.readPaths,ITe=a3().newShapes,LTe=HM(),zTe=yD().activateLastSelection,D3=tt(),RTe=D3.sorterAsc,lH=T3(),Sg=zx(),Ml=un().getFromId,BTe=Xb(),qTe=_3().redrawReglTraces,S3=(K$(),lt(X$)),gc=S3.MINSELECT,OTe=lH.filter,MD=lH.tester,DD=e3(),tH=DD.p2r,NTe=DD.axValue,VTe=DD.getTransform;function SD(e){return e.subplot!==void 0}function UTe(e,t,r,i,a){var n=!SD(i),o=CTe(a),s=FTe(a),l=AD(a),u=kg(a),c=TD(a),h=a==="drawline",f=a==="drawcircle",d=h||f,p=i.gd,m=p._fullLayout,g=c&&m.newselection.mode==="immediate"&&n,y=m._zoomlayer,x=i.element.getBoundingClientRect(),b=i.plotinfo,_=VTe(b),A=t-x.left,T=r-x.top;m._calcInverseTransform(p);var M=D3.apply3DTransform(m._invTransform)(A,T);A=M[0],T=M[1];var S=m._invScaleX,k=m._invScaleY,P=A,I=T,B="M"+A+","+T,L=i.xaxes[0],z=i.yaxes[0],q=L._length,V=z._length,j=e.altKey&&!(kg(a)&&l),$,H,Z,Y,oe,pe,De;cH(e,p,i),o&&($=OTe([[A,T]],S3.BENDPX));var ye=y.selectAll("path.select-outline-"+b.id).data([1]),de=u?m.newshape:m.newselection;u&&(i.hasText=de.label.text||de.label.texttemplate);var Ce=u&&!l?de.fillcolor:"rgba(0,0,0,0)",J=de.line.color||(n?Dg.contrast(p._fullLayout.plot_bgcolor):"#7f7f7f");ye.enter().append("path").attr("class","select-outline select-outline-"+b.id).style({opacity:u?de.opacity/2:1,"stroke-dasharray":STe(de.line.dash,de.line.width),"stroke-width":de.line.width+"px","shape-rendering":"crispEdges"}).call(Dg.stroke,J).call(Dg.fill,Ce).attr("fill-rule","evenodd").classed("cursor-move",!!u).attr("transform",_).attr("d",B+"Z");var ue=y.append("path").attr("class","zoombox-corners").style({fill:Dg.background,stroke:Dg.defaultLine,"stroke-width":1}).attr("transform",_).attr("d","M0,0Z");if(u&&i.hasText){var me=y.select(".label-temp");me.empty()&&(me=y.append("g").classed("label-temp",!0).classed("select-outline",!0).style({opacity:.8}))}var te=m._uid+S3.SELECTID,re=[],fe=E3(p,i.xaxes,i.yaxes,i.subplot);g&&!e.shiftKey&&(i._clearSubplotSelections=function(){if(n){var Re=L._id,Ve=z._id;mH(p,Re,Ve,fe);for(var Me=(p.layout||{}).selections||[],Pe=[],Fe=!1,se=0;se=0){p._fullLayout._deactivateShape(p);return}if(!u){var Me=m.clickmode;Sg.done(te).then(function(){if(Sg.clear(te),Re===2){for(ye.remove(),oe=0;oe-1&&uH(Ve,p,i.xaxes,i.yaxes,i.subplot,i,ye),Me==="event"&&Pg(p,void 0);ETe.click(p,Ve,b.id)}).catch(D3.error)}},i.doneFn=function(){ue.remove(),Sg.done(te).then(function(){Sg.clear(te),!g&&Y&&i.selectionDefs&&(Y.subtract=j,i.selectionDefs.push(Y),i.mergedPolygons.length=0,[].push.apply(i.mergedPolygons,Z)),(g||u)&&Cg(i,g),i.doneFnCompleted&&i.doneFnCompleted(re),c&&Pg(p,De)}).catch(D3.error)}}function uH(e,t,r,i,a,n,o){var s=t._hoverdata,l=t._fullLayout,u=l.clickmode,c=u.indexOf("event")>-1,h=[],f,d,p,m,g,y,x,b,_,A;if(ZTe(s)){cH(e,t,n),f=E3(t,r,i,a);var T=YTe(s,f),M=T.pointNumbers.length>0;if(M?WTe(f,T):XTe(f)&&(x=iH(T))){for(o&&o.remove(),A=0;A=0}function HTe(e){return e._fullLayout._activeSelectionIndex>=0}function Cg(e,t){var r=e.dragmode,i=e.plotinfo,a=e.gd;$Te(a)&&a._fullLayout._deactivateShape(a),HTe(a)&&a._fullLayout._deactivateSelection(a);var n=a._fullLayout,o=n._zoomlayer,s=kg(r),l=TD(r);if(s||l){var u=o.selectAll(".select-outline-"+i.id);if(u&&a._fullLayout._outlining){var c;s&&(c=ITe(u,e)),c&&Eg.call("_guiRelayout",a,{shapes:c});var h;l&&!SD(e)&&(h=LTe(u,e)),h&&(a._fullLayout._noEmitSelectedAtStart=!0,Eg.call("_guiRelayout",a,{selections:h}).then(function(){t&&zTe(a)})),a._fullLayout._outlining=!1}}i.selection={},i.selection.selectionDefs=e.selectionDefs=[],i.selection.mergedPolygons=e.mergedPolygons=[]}function rH(e){return e._id}function E3(e,t,r,i){if(!e.calcdata)return[];var a=[],n=t.map(rH),o=r.map(rH),s,l,u;for(u=0;u0,n=a?i[0]:r;return t.selectedpoints?t.selectedpoints.indexOf(n)>-1:!1}function WTe(e,t){var r=[],i,a,n,o;for(o=0;o0&&r.push(i);if(r.length===1&&(n=r[0]===t.searchInfo,n&&(a=t.searchInfo.cd[0].trace,a.selectedpoints.length===t.pointNumbers.length))){for(o=0;o1||(t+=i.selectedpoints.length,t>1)))return!1;return t===1}function Fg(e,t,r){var i,a;for(i=0;i-1&&t;if(!o&&t){var Re=aH(e,!0);if(Re.length){var Ve=Re[0].xref,Me=Re[0].yref;if(Ve&&Me){var Pe=vH(Re),Fe=gH([Ml(e,Ve,"x"),Ml(e,Me,"y")]);Fe(re,Pe)}}e._fullLayout._noEmitSelectedAtStart?e._fullLayout._noEmitSelectedAtStart=!1:ge&&Pg(e,re),f._reselect=!1}if(!o&&f._deselect){var se=f._deselect;s=se.xref,l=se.yref,QTe(s,l,c)||mH(e,s,l,i),ge&&(re.points.length?Pg(e,re):CD(e)),f._deselect=!1}return{eventData:re,selectionTesters:r}}function JTe(e){var t=e.calcdata;if(t)for(var r=0;r{"use strict";xH.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}]});var Lg={};Yi(Lg,{axisRefDescription:()=>a7e});function a7e(e,t,r){return[`If set to a ${e} axis id (e.g. *${e}* or *${e}2*),`,`the \`${e}\` position refers to a ${e} coordinate.`,`If set to *paper*, the \`${e}\` position refers to the distance from the`,`${t} of the plotting area in normalized coordinates where *0* (*1*) corresponds`,`to the ${t} (${r}). If set to a ${e} 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 ${t} of the domain of that`,`axis: e.g., *${e}2 domain* refers to the domain of the second ${e}`,`axis and a ${e} position of 0.5 refers to the point between the ${t}`,`and the ${r} of the domain of the second ${e} axis.`].join(" ")}var zg=Gi(()=>{"use strict"});var k1=X((rrt,AH)=>{"use strict";var bH=FD(),wH=oo(),k3=(xn(),lt(_n)),n7e=qi().templatedArray,trt=(zg(),lt(Lg));AH.exports=n7e("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:wH({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:bH.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:bH.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",k3.idRegex.x.toString()],editType:"calc"},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",k3.idRegex.y.toString()],editType:"calc"},xref:{valType:"enumerated",values:["paper",k3.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",k3.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:wH({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc"})});var C3={};Yi(C3,{PTS_LINESONLY:()=>o7e,eventDataKeys:()=>c7e,maxScreensAway:()=>u7e,minTolerance:()=>s7e,toleranceGrowth:()=>l7e});var o7e,s7e,l7e,u7e,c7e,F3=Gi(()=>{"use strict";o7e=20,s7e=.2,l7e=10,u7e=20,c7e=[]});var P3=X((irt,TH)=>{"use strict";TH.exports=function(t){return{valType:"color",editType:"style",anim:!0}}});var sh=X((art,PH)=>{"use strict";var MH=n8().axisHoverFormat,{hovertemplateAttrs:h7e,texttemplateAttrs:f7e,templatefallbackAttrs:DH}=tc(),SH=eh(),d7e=oo(),EH=Zc().dash,p7e=Zc().pattern,m7e=xi(),v7e=(F3(),lt(C3)),Rg=Ca().extendFlat,g7e=P3();function kH(e){return{valType:"any",dflt:0,editType:"calc"}}function CH(e){return{valType:"any",editType:"calc"}}function FH(e){return{valType:"enumerated",values:["start","middle","end"],dflt:"middle",editType:"calc"}}PH.exports={x:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0},x0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",anim:!0},dx:{valType:"number",dflt:1,editType:"calc",anim:!0},y:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0},y0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",anim:!0},dy:{valType:"number",dflt:1,editType:"calc",anim:!0},xperiod:kH("x"),yperiod:kH("y"),xperiod0:CH("x0"),yperiod0:CH("y0"),xperiodalignment:FH("x"),yperiodalignment:FH("y"),xhoverformat:MH("x"),yhoverformat:MH("y"),offsetgroup:{valType:"string",dflt:"",editType:"calc"},alignmentgroup:{valType:"string",dflt:"",editType:"calc"},stackgroup:{valType:"string",dflt:"",editType:"calc"},orientation:{valType:"enumerated",values:["v","h"],editType:"calc"},groupnorm:{valType:"enumerated",values:["","fraction","percent"],dflt:"",editType:"calc"},stackgaps:{valType:"enumerated",values:["infer zero","interpolate"],dflt:"infer zero",editType:"calc"},text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},texttemplate:f7e(),texttemplatefallback:DH({editType:"calc"}),hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"style"},mode:{valType:"flaglist",flags:["lines","markers","text"],extras:["none"],editType:"calc"},hoveron:{valType:"flaglist",flags:["points","fills"],editType:"style"},hovertemplate:h7e({},{keys:v7e.eventDataKeys}),hovertemplatefallback:DH(),line:{color:{valType:"color",editType:"style",anim:!0},width:{valType:"number",min:0,dflt:2,editType:"style",anim:!0},shape:{valType:"enumerated",values:["linear","spline","hv","vh","hvh","vhv"],dflt:"linear",editType:"plot"},smoothing:{valType:"number",min:0,max:1.3,dflt:1,editType:"plot"},dash:Rg({},EH,{editType:"style"}),backoff:{valType:"number",min:0,dflt:"auto",arrayOk:!0,editType:"plot"},simplify:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},connectgaps:{valType:"boolean",dflt:!1,editType:"calc"},cliponaxis:{valType:"boolean",dflt:!0,editType:"plot"},fill:{valType:"enumerated",values:["none","tozeroy","tozerox","tonexty","tonextx","toself","tonext"],editType:"calc"},fillcolor:g7e(!0),fillgradient:Rg({type:{valType:"enumerated",values:["radial","horizontal","vertical","none"],dflt:"none",editType:"calc"},start:{valType:"number",editType:"calc"},stop:{valType:"number",editType:"calc"},colorscale:{valType:"colorscale",editType:"style"},editType:"calc"}),fillpattern:p7e,marker:Rg({symbol:{valType:"enumerated",values:m7e.symbolList,dflt:"circle",arrayOk:!0,editType:"style"},opacity:{valType:"number",min:0,max:1,arrayOk:!0,editType:"style",anim:!0},angle:{valType:"angle",dflt:0,arrayOk:!0,editType:"plot",anim:!1},angleref:{valType:"enumerated",values:["previous","up"],dflt:"up",editType:"plot",anim:!1},standoff:{valType:"number",min:0,dflt:0,arrayOk:!0,editType:"plot",anim:!0},size:{valType:"number",min:0,dflt:6,arrayOk:!0,editType:"calc",anim:!0},maxdisplayed:{valType:"number",min:0,dflt:0,editType:"plot"},sizeref:{valType:"number",dflt:1,editType:"calc"},sizemin:{valType:"number",min:0,dflt:0,editType:"calc"},sizemode:{valType:"enumerated",values:["diameter","area"],dflt:"diameter",editType:"calc"},line:Rg({width:{valType:"number",min:0,arrayOk:!0,editType:"style",anim:!0},dash:Rg({},EH,{arrayOk:!0}),editType:"calc"},SH("marker.line",{anim:!0})),gradient:{type:{valType:"enumerated",values:["radial","horizontal","vertical","none"],arrayOk:!0,dflt:"none",editType:"calc"},color:{valType:"color",arrayOk:!0,editType:"calc"},editType:"calc"},editType:"calc"},SH("marker",{anim:!0})),selected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style"},color:{valType:"color",editType:"style"},size:{valType:"number",min:0,editType:"style"},editType:"style"},textfont:{color:{valType:"color",editType:"style"},editType:"style"},editType:"style"},unselected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style"},color:{valType:"color",editType:"style"},size:{valType:"number",min:0,editType:"style"},editType:"style"},textfont:{color:{valType:"color",editType:"style"},editType:"style"},editType:"style"},textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right"],dflt:"middle center",arrayOk:!0,editType:"calc"},textfont:d7e({editType:"calc",colorEditType:"style",arrayOk:!0}),zorder:{valType:"integer",dflt:0,editType:"plot"}}});var PD=X((ort,zH)=>{"use strict";var IH=k1(),LH=sh().line,y7e=Zc().dash,I3=Ca().extendFlat,_7e=qs().overrideAll,x7e=qi().templatedArray,nrt=(zg(),lt(Lg));zH.exports=_7e(x7e("selection",{type:{valType:"enumerated",values:["rect","path"]},xref:I3({},IH.xref,{}),yref:I3({},IH.yref,{}),x0:{valType:"any"},x1:{valType:"any"},y0:{valType:"any"},y1:{valType:"any"},path:{valType:"string",editType:"arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:.7,editType:"arraydraw"},line:{color:LH.color,width:I3({},LH.width,{min:1,dflt:1}),dash:I3({},y7e,{dflt:"dot"})}}),"arraydraw","from-root")});var OH=X((srt,qH)=>{"use strict";var RH=tt(),L3=ra(),b7e=_l(),w7e=PD(),BH=bf();qH.exports=function(t,r){b7e(t,r,{name:"selections",handleItemDefaults:A7e});for(var i=r.selections,a=0;a{"use strict";NH.exports=function(t,r,i){i("newselection.mode");var a=i("newselection.line.width");a&&(i("newselection.line.color"),i("newselection.line.dash")),i("activeselection.fillcolor"),i("activeselection.opacity")}});var Bg=X((urt,jH)=>{"use strict";var T7e=mr(),UH=tt(),GH=un();jH.exports=function(t){return function(i,a){var n=i[t];if(Array.isArray(n))for(var o=T7e.subplotsRegistry.cartesian,s=o.idRegex,l=a._subplots,u=l.xaxis,c=l.yaxis,h=l.cartesian,f=a._has("cartesian"),d=0;d{"use strict";var $H=yD(),qg=_H();HH.exports={moduleType:"component",name:"selections",layoutAttributes:PD(),supplyLayoutDefaults:OH(),supplyDrawNewSelectionDefaults:VH(),includeBasePlot:Bg()("selections"),draw:$H.draw,drawOne:$H.drawOne,reselect:qg.reselect,prepSelect:qg.prepSelect,clearOutline:qg.clearOutline,clearSelectionsCache:qg.clearSelectionsCache,selectOnClick:qg.selectOnClick}});var fZ=X((hrt,hZ)=>{"use strict";var qD=Qr(),Dl=tt(),ZH=Dl.numberFormat,M7e=pM(),z3=mr(),tZ=Dl.strTranslate,D7e=cn(),LD=Vr(),Af=xi(),S7e=yu(),YH=ra(),E7e=vf(),k7e=bl(),rZ=dd(),R3=rZ.selectingOrDrawing,C7e=rZ.freeMode,F7e=(uo(),lt(lo)).FROM_TL,P7e=Xb(),I7e=_3().redrawReglTraces,L7e=bn(),zD=un().getFromId,z7e=yc().prepSelect,R7e=yc().clearOutline,B7e=yc().selectOnClick,ID=cD(),OD=(xn(),lt(_n)),WH=OD.MINDRAG,Xo=OD.MINZOOM,XH=!0;function q7e(e,t,r,i,a,n,o,s){var l=e._fullLayout._zoomlayer,u=o+s==="nsew",c=(o+s).length===1,h,f,d,p,m,g,y,x,b,_,A,T,M,S,k,P,I,B,L,z,q,V,j;r+=t.yaxis._shift;function $(){if(h=t.xaxis,f=t.yaxis,b=h._length,_=f._length,y=h._offset,x=f._offset,d={},d[h._id]=h,p={},p[f._id]=f,o&&s)for(var ve=t.overlays,xe=0;xe=0){je._fullLayout._deactivateShape(je);return}var nt=je._fullLayout.clickmode;if(BD(je),ve===2&&!c&&it(),u)nt.indexOf("select")>-1&&B7e(xe,je,m,g,t.id,Y),nt.indexOf("event")>-1&&S7e.click(je,xe,t.id);else if(ve===1&&c){var Qe=o?f:h,pt=o==="s"||s==="w"?0:1,st=Qe._name+".range["+pt+"]",yt=O7e(Qe,pt),Ot="left",We="middle";if(Qe.fixedrange)return;o?(We=o==="n"?"top":"bottom",Qe.side==="right"&&(Ot="right")):s==="e"&&(Ot="right"),je._context.showAxisRangeEntryBoxes&&qD.select(Z).call(D7e.makeEditable,{gd:je,immediate:!0,background:je._fullLayout.paper_bgcolor,text:String(yt),fill:Qe.tickfont?Qe.tickfont.color:"#444",horizontalAlign:Ot,verticalAlign:We}).on("edit",function(mt){var Ye=Qe.d2r(mt);Ye!==void 0&&z3.call("_guiRelayout",je,st,Ye)})}}k7e.init(Y);var De,ye,de,Ce,J,ue,me,te,re,fe;function ge(ve,xe,je){var nt=Z.getBoundingClientRect();De=xe-nt.left,ye=je-nt.top,e._fullLayout._calcInverseTransform(e);var Qe=Dl.apply3DTransform(e._fullLayout._invTransform)(De,ye);De=Qe[0],ye=Qe[1],de={l:De,r:De,w:0,t:ye,b:ye,h:0},Ce=e._hmpixcount?e._hmlumcount/e._hmpixcount:LD.luminosity(e._fullLayout.plot_bgcolor),J="M0,0H"+b+"V"+_+"H0V0",ue=!1,me="xy",fe=!1,te=nZ(l,Ce,y,x,J),re=oZ(l,y,x)}function Re(ve,xe){if(e._transitioningWithDuration)return!1;var je=Math.max(0,Math.min(b,V*ve+De)),nt=Math.max(0,Math.min(_,j*xe+ye)),Qe=Math.abs(je-De),pt=Math.abs(nt-ye);de.l=Math.min(De,je),de.r=Math.max(De,je),de.t=Math.min(ye,nt),de.b=Math.max(ye,nt);function st(){me="",de.r=de.l,de.t=de.b,re.attr("d","M0,0Z")}if(A.isSubplotConstrained)Qe>Xo||pt>Xo?(me="xy",Qe/b>pt/_?(pt=Qe*_/b,ye>nt?de.t=ye-pt:de.b=ye+pt):(Qe=pt*b/_,De>je?de.l=De-Qe:de.r=De+Qe),re.attr("d",B3(de))):st();else if(T.isSubplotConstrained)if(Qe>Xo||pt>Xo){me="xy";var yt=Math.min(de.l/b,(_-de.b)/_),Ot=Math.max(de.r/b,(_-de.t)/_);de.l=yt*b,de.r=Ot*b,de.b=(1-yt)*_,de.t=(1-Ot)*_,re.attr("d",B3(de))}else st();else!S||pt0){var mt;if(T.isSubplotConstrained||!M&&S.length===1){for(mt=0;mt1&&(st.maxallowed!==void 0&&P===(st.range[0]1&&(yt.maxallowed!==void 0&&I===(yt.range[0]=0?Math.min(e,.9):1/(1/Math.max(e,-.3)+3.222))}function V7e(e,t,r){return e?e==="nsew"?r?"":t==="pan"?"move":"crosshair":e.toLowerCase()+"-resize":"pointer"}function nZ(e,t,r,i,a){return e.append("path").attr("class","zoombox").style({fill:t>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("transform",tZ(r,i)).attr("d",a+"Z")}function oZ(e,t,r){return e.append("path").attr("class","zoombox-corners").style({fill:LD.background,stroke:LD.defaultLine,"stroke-width":1,opacity:0}).attr("transform",tZ(t,r)).attr("d","M0,0Z")}function sZ(e,t,r,i,a,n){e.attr("d",i+"M"+r.l+","+r.t+"v"+r.h+"h"+r.w+"v-"+r.h+"h-"+r.w+"Z"),lZ(e,t,a,n)}function lZ(e,t,r,i){r||(e.transition().style("fill",i>.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),t.transition().style("opacity",1).duration(200))}function BD(e){qD.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function uZ(e){XH&&e.data&&e._context.showTips&&(Dl.notifier(Dl._(e,"Double-click to zoom back out"),"long",e),XH=!1)}function U7e(e,t){return"M"+(e.l-.5)+","+(t-Xo-.5)+"h-3v"+(2*Xo+1)+"h3ZM"+(e.r+.5)+","+(t-Xo-.5)+"h3v"+(2*Xo+1)+"h-3Z"}function G7e(e,t){return"M"+(t-Xo-.5)+","+(e.t-.5)+"v-3h"+(2*Xo+1)+"v3ZM"+(t-Xo-.5)+","+(e.b+.5)+"v3h"+(2*Xo+1)+"v-3Z"}function B3(e){var t=Math.floor(Math.min(e.b-e.t,e.r-e.l,Xo)/2);return"M"+(e.l-3.5)+","+(e.t-.5+t)+"h3v"+-t+"h"+t+"v-3h-"+(t+3)+"ZM"+(e.r+3.5)+","+(e.t-.5+t)+"h-3v"+-t+"h"+-t+"v-3h"+(t+3)+"ZM"+(e.r+3.5)+","+(e.b+.5-t)+"h-3v"+t+"h"+-t+"v3h"+(t+3)+"ZM"+(e.l-3.5)+","+(e.b+.5-t)+"h3v"+t+"h"+t+"v3h-"+(t+3)+"Z"}function QH(e,t,r,i,a){for(var n=!1,o={},s={},l,u,c,h,f=(a||{}).xaHash,d=(a||{}).yaHash,p=0;p{"use strict";var j7e=Qr(),q3=yu(),$7e=bl(),H7e=vf(),xu=fZ().makeDragBox,Tn=(xn(),lt(_n)).DRAGGERSIZE;O3.initInteractions=function(t){var r=t._fullLayout;if(t._context.staticPlot){j7e.select(t).selectAll(".drag").remove();return}if(!(!r._has("cartesian")&&!r._has("splom"))){var i=Object.keys(r._plots||{}).sort(function(n,o){if((r._plots[n].mainplot&&!0)===(r._plots[o].mainplot&&!0)){var s=n.split("y"),l=o.split("y");return s[0]===l[0]?Number(s[1]||1)-Number(l[1]||1):Number(s[0]||1)-Number(l[0]||1)}return r._plots[n].mainplot?1:-1});i.forEach(function(n){var o=r._plots[n],s=o.xaxis,l=o.yaxis;if(!o.mainplot){var u=xu(t,o,s._offset,l._offset,s._length,l._length,"ns","ew");u.onmousemove=function(f){t._fullLayout._rehover=function(){t._fullLayout._hoversubplot===n&&t._fullLayout._plots[n]&&q3.hover(t,f,n)},q3.hover(t,f,n),t._fullLayout._lasthover=u,t._fullLayout._hoversubplot=n},u.onmouseout=function(f){t._dragging||(t._fullLayout._hoversubplot=null,$7e.unhover(t,f))},t._context.showAxisDragHandles&&(xu(t,o,s._offset-Tn,l._offset-Tn,Tn,Tn,"n","w"),xu(t,o,s._offset+s._length,l._offset-Tn,Tn,Tn,"n","e"),xu(t,o,s._offset-Tn,l._offset+l._length,Tn,Tn,"s","w"),xu(t,o,s._offset+s._length,l._offset+l._length,Tn,Tn,"s","e"))}if(t._context.showAxisDragHandles){if(n===s._mainSubplot){var c=s._mainLinePosition;s.side==="top"&&(c-=Tn),xu(t,o,s._offset+s._length*.1,c,s._length*.8,Tn,"","ew"),xu(t,o,s._offset,c,s._length*.1,Tn,"","w"),xu(t,o,s._offset+s._length*.9,c,s._length*.1,Tn,"","e")}if(n===l._mainSubplot){var h=l._mainLinePosition;l.side!=="right"&&(h-=Tn),xu(t,o,h,l._offset+l._length*.1,Tn,l._length*.8,"ns",""),xu(t,o,h,l._offset+l._length*.9,Tn,l._length*.1,"s",""),xu(t,o,h,l._offset,Tn,l._length*.1,"n","")}}});var a=r._hoverlayer.node();a.onmousemove=function(n){n.target=t._fullLayout._lasthover,q3.hover(t,n,r._hoversubplot)},a.onclick=function(n){n.target=t._fullLayout._lasthover,q3.click(t,n)},a.onmousedown=function(n){t._fullLayout._lasthover.onmousedown(n)},O3.updateFx(t)}};O3.updateFx=function(e){var t=e._fullLayout,r=t.dragmode==="pan"?"move":"crosshair";H7e(t._draggers,r)}});var mZ=X((drt,pZ)=>{"use strict";var dZ=mr();pZ.exports=function(t){for(var r=dZ.layoutArrayContainers,i=dZ.layoutArrayRegexes,a=t.split("[")[0],n,o,s=0;s{"use strict";var Z7e=$h(),VD=_x(),Og=Hc(),Y7e=S7().sorterAsc,UD=mr();Ng.containerArrayMatch=mZ();var W7e=Ng.isAddVal=function(t){return t==="add"||Z7e(t)},vZ=Ng.isRemoveVal=function(t){return t===null||t==="remove"};Ng.applyContainerArrayChanges=function(t,r,i,a,n){var o=r.astr,s=UD.getComponentMethod(o,"supplyLayoutDefaults"),l=UD.getComponentMethod(o,"draw"),u=UD.getComponentMethod(o,"drawOne"),c=a.replot||a.recalc||s===VD||l===VD,h=t.layout,f=t._fullLayout;if(i[""]){Object.keys(i).length>1&&Og.warn("Full array edits are incompatible with other edits",o);var d=i[""][""];if(vZ(d))r.set(null);else if(Array.isArray(d))r.set(d);else return Og.warn("Unrecognized full array edit value",o,d),!0;return c?!1:(s(h,f),l(t),!0)}var p=Object.keys(i).map(Number).sort(Y7e),m=r.get(),g=m||[],y=n(f,o).get(),x=[],b=-1,_=g.length,A,T,M,S,k,P,I,B;for(A=0;Ag.length-(I?0:1)){Og.warn("index out of range",o,M);continue}if(P!==void 0)k.length>1&&Og.warn("Insertion & removal are incompatible with edits to the same index.",o,M),vZ(P)?x.push(M):I?(P==="add"&&(P={}),g.splice(M,0,P),y&&y.splice(M,0,{})):Og.warn("Unrecognized full object edit value",o,M,P),b===-1&&(b=M);else for(T=0;T=0;A--)g.splice(x[A],1),y&&y.splice(x[A],1);if(g.length?m||r.set(g):r.set(null),c)return!1;if(s(h,f),u!==VD){var L;if(b===-1)L=p;else{for(_=Math.max(g.length,_),L=[],A=0;A=b));A++)L.push(M);for(A=b;A<_;A++)L.push(A)}for(A=0;A{"use strict";var bZ=Nr(),wZ=mr(),Io=tt(),Vg=bn(),AZ=un(),Ug=AZ.cleanId,X7e=AZ.getFromTrace,GD=wZ.traceIs,K7e=["x","y","z"];Sl.clearPromiseQueue=function(e){Array.isArray(e._promises)&&e._promises.length>0&&Io.log("Clearing previous rejected promises from queue."),e._promises=[]};Sl.cleanLayout=function(e){var t,r;e||(e={}),e.xaxis1&&(e.xaxis||(e.xaxis=e.xaxis1),delete e.xaxis1),e.yaxis1&&(e.yaxis||(e.yaxis=e.yaxis1),delete e.yaxis1),e.scene1&&(e.scene||(e.scene=e.scene1),delete e.scene1);var i=(Vg.subplotsRegistry.cartesian||{}).attrRegex,a=(Vg.subplotsRegistry.polar||{}).attrRegex,n=(Vg.subplotsRegistry.ternary||{}).attrRegex,o=(Vg.subplotsRegistry.gl3d||{}).attrRegex,s=Object.keys(e);for(t=0;t3?(g.x=1.02,g.xanchor="left"):g.x<-2&&(g.x=-.02,g.xanchor="right"),g.y>3?(g.y=1.02,g.yanchor="bottom"):g.y<-2&&(g.y=-.02,g.yanchor="top")),e.dragmode==="rotate"&&(e.dragmode="orbit"),e.template&&e.template.layout&&Sl.cleanLayout(e.template.layout),e};function C1(e,t,r=!1){var i=e[t],a=t.charAt(0);r&&Array.isArray(i)||i&&i!=="paper"&&(e[t]=Ug(i,a,!0))}Sl.cleanData=function(e){for(var t=0;t0)return e.slice(0,t)}Sl.hasParent=function(e,t){for(var r=xZ(t);r;){if(r in e)return!0;r=xZ(r)}return!1};Sl.clearAxisTypes=function(e,t,r){for(var i=0;i{let r=(...i)=>i.every(a=>Io.isPlainObject(a))||i.every(a=>Array.isArray(a));if([e,t].every(i=>Array.isArray(i))){if(e.length!==t.length)return!1;for(let i=0;iIo.isPlainObject(i))){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(let i in e){if(i.startsWith("_"))continue;let a=e[i],n=t[i];if(a!==n&&!(r(a,n)?jD(a,n):!1))return!1}return!0}return!1};Sl.collectionsAreEqual=jD});var WD=X(Wr=>{"use strict";var j3=Qr(),e8e=Nr(),t8e=N7(),Ct=tt(),ji=Ct.nestedProperty,HD=Uv(),Ko=mO(),El=mr(),K3=n1(),dr=bn(),Lo=ra(),r8e=dM(),i8e=vu(),U3=xi(),a8e=Vr(),n8e=ND().initInteractions,o8e=(lf(),lt(sf)),s8e=yc().clearOutline,kZ=Yh().dfltConfig,V3=gZ(),ja=TZ(),bi=_3(),Tf=qs(),l8e=(xn(),lt(_n)).AX_NAME_PATTERN,$D=0,MZ=5;function u8e(e,t,r,i){var a;if(e=Ct.getGraphDiv(e),HD.init(e),Ct.isPlainObject(t)){var n=t;t=n.data,r=n.layout,i=n.config,a=n.frames}var o=HD.triggerHandler(e,"plotly_beforeplot",[t,r,i]);if(o===!1)return Promise.reject();!t&&!r&&!Ct.isPlotDiv(e)&&Ct.warn("Calling _doPlot as if redrawing but this container doesn't yet have a plot.",e);function s(){if(a)return Wr.addFrames(e,a)}FZ(e,i),r||(r={}),j3.select(e).classed("js-plotly-plot",!0),U3.makeTester(),Array.isArray(e._promises)||(e._promises=[]);var l=(e.data||[]).length===0&&Array.isArray(t);Array.isArray(t)&&(ja.cleanData(t),l?e.data=t:e.data.push.apply(e.data,t),e.empty=!1),(!e.layout||l)&&(e.layout=ja.cleanLayout(r)),dr.supplyDefaults(e);var u=e._fullLayout,c=u._has("cartesian");u._replotting=!0,(l||u._shouldCreateBgLayer)&&(I8e(e),u._shouldCreateBgLayer&&delete u._shouldCreateBgLayer),U3.initGradients(e),U3.initPatterns(e),l&&Lo.saveShowSpikeInitial(e);var h=!e.calcdata||e.calcdata.length!==(e._fullData||[]).length;h&&dr.doCalcdata(e);for(var f=0;f{Ct.isHidden(e)||dr.resize(e)};if(e._context.fillFrame||typeof ResizeObserver=="undefined")window.addEventListener("resize",S),e._clearResponsive=()=>window.removeEventListener("resize",S);else{let k=e.offsetWidth,P=e.offsetHeight,I=new ResizeObserver(()=>{let B=e.offsetWidth,L=e.offsetHeight,z=Math.abs(B-k)>1||Math.abs(L-P)>1;k=B,P=L,z&&B&&L&&S()});I.observe(e),e._clearResponsive=()=>I.disconnect()}}}else Ct.clearResponsive(e);let d=document.fonts?[...document.fonts].filter(S=>S.status!=="loaded"):[];var p=Ct.extendFlat({},u._size),m=0;function g(){for(var S=u._basePlotModules,k=0;k["loaded","loading"].includes(a.status));if(!r.length)return;let i={};e._fontLoadToken=i,yield Promise.all(r.map(a=>a.loaded.catch(()=>{}))),e._fontLoadToken===i&&(delete e._fontLoadToken,U3.savedBBoxes={},Wr._doPlot(e))})}function jg(e){var t=e._fullLayout;t._redrawFromAutoMarginCount?t._redrawFromAutoMarginCount--:e.emit("plotly_afterplot")}function h8e(e){return Ct.extendFlat(kZ,e)}function CZ(e,t){try{e._fullLayout._paper.style("background",t)}catch(r){Ct.error(r)}}function f8e(e,t){var r=a8e.combine(t,"white");CZ(e,r)}function FZ(e,t){if(!e._context){e._context=Ct.extendDeep({},kZ);var r=j3.select("base");e._context._baseUrl=r.size()&&r.attr("href")?window.location.href.split("#")[0]:""}var i=e._context,a,n,o;if(t){for(n=Object.keys(t),a=0;a=e.data.length||a<-e.data.length)throw new Error(r+" must be valid indices for gd.data.");if(t.indexOf(a,i+1)>-1||a>=0&&t.indexOf(-e.data.length+a)>-1||a<0&&t.indexOf(e.data.length+a)>-1)throw new Error("each index in "+r+" must be unique.")}}function PZ(e,t,r){if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(typeof t=="undefined")throw new Error("currentIndices is a required argument.");if(Array.isArray(t)||(t=[t]),H3(e,t,"currentIndices"),typeof r!="undefined"&&!Array.isArray(r)&&(r=[r]),typeof r!="undefined"&&H3(e,r,"newIndices"),typeof r!="undefined"&&t.length!==r.length)throw new Error("current and new indices must be of equal length.")}function m8e(e,t,r){var i,a;if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(typeof t=="undefined")throw new Error("traces must be defined.");for(Array.isArray(t)||(t=[t]),i=0;i=0&&c=0&&c0&&typeof S.parts[I]!="string";)I--;var B=S.parts[I],L=S.parts[I-1]+"."+B,z=S.parts.slice(0,I).join("."),q=ji(e.layout,z).get(),V=ji(i,z).get(),j=S.get();if(k!==void 0){y[M]=k,x[M]=B==="reverse"?k:lh(j);var $=K3.getLayoutValObject(i,S.parts);if($&&$.impliedEdits&&k!==null)for(var H in $.impliedEdits)b(Ct.relativeAttr(M,H),$.impliedEdits[H]);if(["width","height"].indexOf(M)!==-1)if(k){b("autosize",null);var Z=M==="height"?"width":"height";b(Z,i[Z])}else i[M]=e._initialAutoSize[M];else if(M==="autosize")b("width",k?null:i.width),b("height",k?null:i.height);else if(L.match(VZ))T(L),ji(i,z+"._inputRange").set(null);else if(L.match(UZ)){T(L),ji(i,z+"._inputRange").set(null);var Y=ji(i,z).get();Y._inputDomain&&(Y._input.domain=Y._inputDomain.slice())}else L.match(_8e)&&ji(i,z+"._inputDomain").set(null);if(B==="type"){A=q;var oe=V.type==="linear"&&k==="log",pe=V.type==="log"&&k==="linear";if(oe||pe){if(!A||!A.range)b(z+".autorange",!0);else if(V.autorange)oe&&(A.range=A.range[1]>A.range[0]?[1,2]:[2,1]);else{var De=A.range[0],ye=A.range[1];oe?(De<=0&&ye<=0&&b(z+".autorange",!0),De<=0?De=ye/1e6:ye<=0&&(ye=De/1e6),b(z+".range[0]",Math.log(De)/Math.LN10),b(z+".range[1]",Math.log(ye)/Math.LN10)):(b(z+".range[0]",Math.pow(10,De)),b(z+".range[1]",Math.pow(10,ye)))}Array.isArray(i._subplots.polar)&&i._subplots.polar.length&&i[S.parts[0]]&&S.parts[1]==="radialaxis"&&delete i[S.parts[0]]._subplot.viewInitial["radialaxis.range"],El.getComponentMethod("annotations","convertCoords")(e,V,k,b),El.getComponentMethod("images","convertCoords")(e,V,k,b)}else b(z+".autorange",!0),b(z+".range",null);ji(i,z+"._inputRange").set(null)}else if(B.match(l8e)){var de=ji(i,M).get(),Ce=(k||{}).type;(!Ce||Ce==="-")&&(Ce="linear"),El.getComponentMethod("annotations","convertCoords")(e,de,Ce,b),El.getComponentMethod("images","convertCoords")(e,de,Ce,b)}var J=V3.containerArrayMatch(M);if(J){c=J.array,h=J.index;var ue=J.property,me=$||{editType:"calc"};h!==""&&ue===""&&(V3.isAddVal(k)?x[M]=null:V3.isRemoveVal(k)?x[M]=(ji(r,c).get()||[])[h]:Ct.warn("unrecognized full object value",t)),Tf.update(g,me),u[c]||(u[c]={});var te=u[c][h];te||(te=u[c][h]={}),te[ue]=k,delete t[M]}else B==="reverse"?(q.range?q.range.reverse():(b(z+".autorange",!0),q.range=[1,0]),V.autorange?g.calc=!0:g.plot=!0):(M==="dragmode"&&(k===!1&&j!==!1||k!==!1&&j===!1)||i._has("scatter-like")&&i._has("regl")&&M==="dragmode"&&(k==="lasso"||k==="select")&&!(j==="lasso"||j==="select")?g.plot=!0:$?Tf.update(g,$):g.calc=!0,S.set(k))}}for(c in u){var re=V3.applyContainerArrayChanges(e,n(r,c),u[c],g,n);re||(g.plot=!0)}for(var fe in _){A=Lo.getFromId(e,fe);var ge=A&&A._constraintGroup;if(ge){g.calc=!0;for(var Re in ge)_[Re]||(Lo.getFromId(e,Re)._constraintShrinkable=!0)}}(jZ(e)||t.height||t.width)&&(g.plot=!0);var Ve=i.shapes;for(h=0;h1;)if(i.pop(),r=ji(t,i.join(".")+".uirevision").get(),r!==void 0)return r;return t.uirevision}function w8e(e,t){for(var r=0;r[z,e._ev.listeners(z)]);n=Wr.newPlot(e,t,r,i).then(()=>{for(let[z,q]of L)q.forEach(V=>e.on(z,V));return Wr.react(e,t,r,i)})}else{e.data=t||[],ja.cleanData(e.data),e.layout=r||{},ja.cleanLayout(e.layout),T8e(e.data,e.layout,s,l),dr.supplyDefaults(e,{skipUpdateCalc:!0});var h=e._fullData,f=e._fullLayout,d=f.datarevision===void 0,p=f.transition,m=S8e(e,l,f,d,p),g=m.newDataRevision,y=D8e(e,s,h,d,p,g);if(jZ(e)&&(m.layoutReplot=!0),y.calc||m.calc){e.calcdata=void 0;for(var x=Object.getOwnPropertyNames(f),b=0;b(c||e.emit("plotly_react",{config:i,data:t,layout:r}),e))}function D8e(e,t,r,i,a,n){var o=t.length===r.length;if(!a&&!o)return{fullReplot:!0,calc:!0};var s=Tf.traceFlags();s.arrays={},s.nChanges=0,s.nChangesAnim=0;var l,u;function c(d){var p=K3.getTraceValObject(u,d);return!u._module.animatable&&p.anim&&(p.anim=!1),p}var h={getValObject:c,flags:s,immutable:i,transition:a,newDataRevision:n,gd:e},f={};for(l=0;l=a.length?a[0]:a[u]:a}function s(u){return Array.isArray(n)?u>=n.length?n[0]:n[u]:n}function l(u,c){var h=0;return function(){if(u&&++h===c)return u()}}return new Promise(function(u,c){function h(){if(i._frameQueue.length!==0){for(;i._frameQueue.length;){var B=i._frameQueue.pop();B.onInterrupt&&B.onInterrupt()}e.emit("plotly_animationinterrupted",[])}}function f(B){if(B.length!==0){for(var L=0;Li._timeToNext&&p()};B()}var g=0;function y(B){return Array.isArray(a)?g>=a.length?B.transitionOpts=a[g]:B.transitionOpts=a[0]:B.transitionOpts=a,g++,B}var x,b,_=[],A=t==null,T=Array.isArray(t),M=!A&&!T&&Ct.isPlainObject(t);if(M)_.push({type:"object",data:y(Ct.extendFlat({},t))});else if(A||["string","number"].indexOf(typeof t)!==-1)for(x=0;x0&&P<_.length-1){var I=[];for(x=0;x<_.length;x++)b=_[x],(_[x].type!=="byname"||x>P)&&I.push(b);_=I}}_.length>0?f(_):(e.emit("plotly_animated"),u())})}function k8e(e,t,r){if(e=Ct.getGraphDiv(e),t==null)return Promise.resolve();if(!Ct.isPlotDiv(e))throw new Error("This element is not a Plotly plot: "+e+". It's likely that you've failed to create a plot before adding frames. For more details, see https://plotly.com/javascript/animations/");var i,a,n,o,s=e._transitionData._frames,l=e._transitionData._frameHash;if(!Array.isArray(t))throw new Error("addFrames failure: frameList must be an Array of frame definitions"+t);var u=s.length+t.length*2,c=[],h={};for(i=t.length-1;i>=0;i--)if(Ct.isPlainObject(t[i])){var f=t[i].name,d=(l[f]||h[f]||{}).name,p=t[i].name,m=l[d]||h[d];d&&p&&typeof p=="number"&&m&&$DS.index?-1:M.index=0;i--){if(a=c[i].frame,typeof a.name=="number"&&Ct.warn("Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings"),!a.name)for(;l[a.name="frame "+e._transitionData._counter++];);if(l[a.name]){for(n=0;n=0;r--)i=t[r],n.push({type:"delete",index:i}),o.unshift({type:"insert",index:i,value:a[i]});var s=dr.modifyFrames,l=dr.modifyFrames,u=[e,o],c=[e,n];return Ko&&Ko.add(e,s,u,l,c),dr.modifyFrames(e,n)}function F8e(e){e=Ct.getGraphDiv(e);var t=e._fullLayout||{},r=e._fullData||[];return dr.cleanPlot([],{},r,t),dr.purge(e),HD.purge(e),t._container&&t._container.remove(),delete e._context,e}function P8e(e){var t=e._fullLayout,r=e.getBoundingClientRect();if(!Ct.equalDomRects(r,t._lastBBox)){var i=t._invTransform=Ct.inverseTransformMatrix(Ct.getFullTransformMatrix(e));t._invScaleX=Math.sqrt(i[0][0]*i[0][0]+i[0][1]*i[0][1]+i[0][2]*i[0][2]),t._invScaleY=Math.sqrt(i[1][0]*i[1][0]+i[1][1]*i[1][1]+i[1][2]*i[1][2]),t._lastBBox=r}}function I8e(e){var t=j3.select(e),r=e._fullLayout;if(r._calcInverseTransform=P8e,r._calcInverseTransform(e),r._container=t.selectAll(".plot-container").data([0]),r._container.enter().insert("div",":first-child").classed("plot-container",!0).classed("plotly",!0).style({width:"100%",height:"100%"}),r._paperdiv=r._container.selectAll(".svg-container").data([0]),r._paperdiv.enter().append("div").classed("user-select-none",!0).classed("svg-container",!0).style("position","relative"),r._glcontainer=r._paperdiv.selectAll(".gl-container").data([{}]),r._glcontainer.enter().append("div").classed("gl-container",!0),r._paperdiv.selectAll(".main-svg").remove(),r._paperdiv.select(".modebar-container").remove(),r._paper=r._paperdiv.insert("svg",":first-child").classed("main-svg",!0),r._toppaper=r._paperdiv.append("svg").classed("main-svg",!0),r._modebardiv=r._paperdiv.append("div"),delete r._modeBar,r._hoverpaper=r._paperdiv.append("svg").classed("main-svg",!0),!r._uid){var i={};j3.selectAll("defs").each(function(){this.id&&(i[this.id.split("-")[1]]=1)}),r._uid=Ct.randstr(i)}r._paperdiv.selectAll(".main-svg").attr(o8e.svgAttrs),r._defs=r._paper.append("defs").attr("id","defs-"+r._uid),r._clips=r._defs.append("g").classed("clips",!0),r._topdefs=r._toppaper.append("defs").attr("id","topdefs-"+r._uid),r._topclips=r._topdefs.append("g").classed("clips",!0),r._bgLayer=r._paper.append("g").classed("bglayer",!0),r._draggers=r._paper.append("g").classed("draglayer",!0);var a=r._paper.append("g").classed("layer-below",!0);r._imageLowerLayer=a.append("g").classed("imagelayer",!0),r._shapeLowerLayer=a.append("g").classed("shapelayer",!0),r._cartesianlayer=r._paper.append("g").classed("cartesianlayer",!0),r._polarlayer=r._paper.append("g").classed("polarlayer",!0),r._smithlayer=r._paper.append("g").classed("smithlayer",!0),r._ternarylayer=r._paper.append("g").classed("ternarylayer",!0),r._geolayer=r._paper.append("g").classed("geolayer",!0),r._funnelarealayer=r._paper.append("g").classed("funnelarealayer",!0),r._pielayer=r._paper.append("g").classed("pielayer",!0),r._iciclelayer=r._paper.append("g").classed("iciclelayer",!0),r._treemaplayer=r._paper.append("g").classed("treemaplayer",!0),r._sunburstlayer=r._paper.append("g").classed("sunburstlayer",!0),r._indicatorlayer=r._toppaper.append("g").classed("indicatorlayer",!0),r._glimages=r._paper.append("g").classed("glimages",!0);var n=r._toppaper.append("g").classed("layer-above",!0);r._imageUpperLayer=n.append("g").classed("imagelayer",!0),r._shapeUpperLayer=n.append("g").classed("shapelayer",!0),r._selectionLayer=r._toppaper.append("g").classed("selectionlayer",!0),r._infolayer=r._toppaper.append("g").classed("infolayer",!0),r._menulayer=r._toppaper.append("g").classed("menulayer",!0),r._zoomlayer=r._toppaper.append("g").classed("zoomlayer",!0),r._hoverlayer=r._hoverpaper.append("g").classed("hoverlayer",!0),r._modebardiv.classed("modebar-container",!0).style("position","absolute").style("top","0px").style("right","0px"),e.emit("plotly_framework")}Wr.animate=E8e;Wr.addFrames=k8e;Wr.deleteFrames=C8e;Wr.addTraces=BZ;Wr.deleteTraces=qZ;Wr.extendTraces=zZ;Wr.moveTraces=ZD;Wr.prependTraces=RZ;Wr.newPlot=p8e;Wr._doPlot=u8e;Wr.purge=F8e;Wr.react=M8e;Wr.redraw=d8e;Wr.relayout=Gg;Wr.restyle=Z3;Wr.setPlotConfig=h8e;Wr.update=W3;Wr._guiRelayout=YD(Gg);Wr._guiRestyle=YD(Z3);Wr._guiUpdate=YD(W3);Wr._storeDirectGUIEdit=y8e});var yd=X(kl=>{"use strict";var L8e=mr();kl.getDelay=function(e){return e._has&&(e._has("gl3d")||e._has("map"))?500:0};kl.getRedrawFunc=function(e){return function(){L8e.getComponentMethod("colorbar","draw")(e)}};kl.encodeSVG=function(e){return"data:image/svg+xml,"+encodeURIComponent(e)};kl.encodeJSON=function(e){return"data:application/json,"+encodeURIComponent(e)};var $Z=window.URL||window.webkitURL;kl.createObjectURL=function(e){return $Z.createObjectURL(e)};kl.revokeObjectURL=function(e){return $Z.revokeObjectURL(e)};kl.createBlob=function(e,t){if(t==="svg")return new window.Blob([e],{type:"image/svg+xml;charset=utf-8"});if(t==="full-json")return new window.Blob([e],{type:"application/json;charset=utf-8"});var r=z8e(window.atob(e));return new window.Blob([r],{type:"image/"+t})};kl.octetStream=function(e){document.location.href="data:application/octet-stream"+e};kl.getPlotTitle=function(e){var i,a,n,o;var t=e._fullLayout;if(t){var r=(i=t.title)==null?void 0:i.text;return r===((a=t._dfltTitle)==null?void 0:a.plot)?void 0:r}return(o=(n=e.layout)==null?void 0:n.title)==null?void 0:o.text};kl.getPlotSubtitle=function(e){var i,a,n,o,s,l;var t=e._fullLayout;if(t){var r=(a=(i=t.title)==null?void 0:i.subtitle)==null?void 0:a.text;return r===((n=t._dfltTitle)==null?void 0:n.subtitle)?void 0:r}return(l=(s=(o=e.layout)==null?void 0:o.title)==null?void 0:s.subtitle)==null?void 0:l.text};function z8e(e){for(var t=e.length,r=new ArrayBuffer(t),i=new Uint8Array(r),a=0;a{"use strict";var KD=Qr(),_rt=tt(),R8e=xi(),B8e=Vr(),xrt=(lf(),lt(sf)),XD=/"/g,_d="TOBESTRIPPED",q8e=new RegExp(`("${_d})|(${_d}")|("${_d})|(${_d}")`,"g"),O8e=["&","&","&",""",""",""","'","'","'"],N8e=["<","<","<"],V8e=[">",">",">"];function U8e(e){let t=KD.select("body").append("div").style({display:"none"}).html(""),r=e.replace(/(&[^;]*;)/gi,i=>{let a=i.toLowerCase();return O8e.includes(a)?i:N8e.includes(a)?"<":V8e.includes(a)?">":i.includes("<")||i.includes(">")?"":t.html(i).text()});return t.remove(),r}function G8e(e){return e.replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&")}HZ.exports=function(t,r,i){var a=t._fullLayout,n=a._paper,o=a._toppaper,s=a.width,l=a.height,u;n.insert("rect",":first-child").call(R8e.setRect,0,0,s,l).call(B8e.fill,a.paper_bgcolor);var c=a._basePlotModules||[];for(u=0;u{"use strict";var j8e=tt(),$8e=Gx().EventEmitter,$g=yd();function H8e(e){var t=e.emitter||new $8e,r=new Promise(function(i,a){var n=window.Image,o=e.svg,s=e.format||"png",l=e.canvas,u=e.scale||1,c=e.width||300,h=e.height||150,f=u*c,d=u*h,p=l.getContext("2d",{willReadFrequently:!0}),m=new n,g,y;s==="svg"||j8e.isSafari()?y=$g.encodeSVG(o):(g=$g.createBlob(o,"svg"),y=$g.createObjectURL(g)),l.width=f,l.height=d,m.onload=function(){var x;switch(g=null,$g.revokeObjectURL(y),s!=="svg"&&p.drawImage(m,0,0,f,d),s){case"jpeg":x=l.toDataURL("image/jpeg");break;case"png":x=l.toDataURL("image/png");break;case"webp":x=l.toDataURL("image/webp");break;case"svg":x=y;break;default:var b="Image format is not jpeg, png, svg or webp.";if(a(new Error(b)),!e.promise)return t.emit("error",b)}i(x),e.promise||t.emit("success",x)},m.onerror=function(x){if(g=null,$g.revokeObjectURL(y),a(x),!e.promise)return t.emit("error",x)},m.src=y});return e.promise?r:t}ZZ.exports=H8e});var QD=X((Art,XZ)=>{"use strict";var YZ=Nr(),WZ=WD(),Z8e=bn(),_c=tt(),Hg=yd(),Y8e=Q3(),W8e=e5(),X8e=lv().version,JD=(n7(),lt(a7)).default;function K8e(e,t){t=t||{};var r,i,a,n;_c.isPlainObject(e)?(r=e.data||[],i=e.layout||{},a=e.config||{},n={}):(e=_c.getGraphDiv(e),r=_c.extendDeep([],e.data),i=_c.extendDeep({},e.layout),a=e._context,n=e._fullLayout||{});function o(T){return!(T in t)||_c.validate(t[T],JD[T])}if(!o("width")&&t.width!==null||!o("height")&&t.height!==null)throw new Error("Height and width should be pixel values.");if(!o("format"))throw new Error("Export format is not "+_c.join2(JD.format.values,", "," or ")+".");var s={};function l(T,M){return _c.coerce(t,s,JD,T,M)}var u=l("format"),c=l("width"),h=l("height"),f=l("scale"),d=l("setBackground"),p=l("imageDataOnly"),m=document.createElement("div");m.style.position="absolute",m.style.left="-5000px",document.body.appendChild(m);var g=_c.extendFlat({},i);c?g.width=c:t.width===null&&YZ(n.width)&&(g.width=n.width),h?g.height=h:t.height===null&&YZ(n.height)&&(g.height=n.height);var y=_c.extendFlat({},a,{_exportedPlot:!0,staticPlot:!0,setBackground:d}),x=Hg.getRedrawFunc(m);function b(){return new Promise(function(T){setTimeout(T,Hg.getDelay(m._fullLayout))})}function _(){return new Promise(function(T,M){var S=Y8e(m,u,f),k=m._fullLayout.width,P=m._fullLayout.height;function I(){WZ.purge(m),document.body.removeChild(m)}if(u==="full-json"){var B=Z8e.graphJson(m,!1,"object",!0,!0);return B.version=X8e,B=JSON.stringify(B),I(),T(p?B:Hg.encodeJSON(B))}if(I(),u==="svg")return T(p?S:Hg.encodeSVG(S));var L=document.createElement("canvas");L.id=_c.randstr(),W8e({format:u,width:k,height:P,scale:f,canvas:L,svg:S,promise:!0}).then(T).catch(M)})}function A(T){return p?T.replace(Hg.IMAGE_URL_PREFIX,""):T}return new Promise(function(T,M){WZ.newPlot(m,r,g,y).then(x).then(b).then(_).then(function(S){T(A(S))}).catch(function(S){M(S)})})}XZ.exports=K8e});var QZ=X((Trt,JZ)=>{"use strict";var Cl=tt(),J8e=bn(),Q8e=n1(),eMe=Yh().dfltConfig,bu=Cl.isPlainObject,bd=Array.isArray,eS=Cl.isArrayOrTypedArray;JZ.exports=function(t,r){t===void 0&&(t=[]),r===void 0&&(r={});var i=Q8e.get(),a=[],n={_context:Cl.extendFlat({},eMe)},o,s;bd(t)?(n.data=Cl.extendDeep([],t),o=t):(n.data=[],o=[],a.push(Mn("array","data"))),bu(r)?(n.layout=Cl.extendDeep({},r),s=r):(n.layout={},s={},arguments.length>1&&a.push(Mn("object","layout"))),J8e.supplyDefaults(n);for(var l=n._fullData,u=o.length,c=0;ch.length&&i.push(Mn("unused",a,u.concat(h.length)));var y=h.length,x=Array.isArray(g);x&&(y=Math.min(y,g.length));var b,_,A,T,M;if(f.dimensions===2)for(_=0;_h[_].length&&i.push(Mn("unused",a,u.concat(_,h[_].length)));var S=h[_].length;for(b=0;b<(x?Math.min(S,g[_].length):S);b++)A=x?g[_][b]:g,T=c[_][b],M=h[_][b],Cl.validate(T,A)?M!==T&&M!==+T&&i.push(Mn("dynamic",a,u.concat(_,b),T,M)):i.push(Mn("value",a,u.concat(_,b),T))}else i.push(Mn("array",a,u.concat(_),c[_]));else for(_=0;_{"use strict";var sMe=tt(),r5=yd();function lMe(e,t,r){var i=document.createElement("a"),a="download"in i,n=new Promise(function(o,s){var l,u;if(a)return l=r5.createBlob(e,r),u=r5.createObjectURL(l),i.href=u,i.download=t,document.body.appendChild(i),i.click(),document.body.removeChild(i),r5.revokeObjectURL(u),l=null,o(t);if(sMe.isSafari()){var c=r==="svg"?",":";base64,";return r5.octetStream(c+encodeURIComponent(e)),o(t)}s(new Error("download error"))});return n}eY.exports=lMe});var tS=X((Drt,nY)=>{"use strict";var i5=tt(),rY=cn(),uMe=QD(),cMe=tY(),iY=yd(),aY=40;function hMe(e,t){var r;return i5.isPlainObject(e)||(r=i5.getGraphDiv(e)),t=t||{},t.format=t.format||"png",t.width=t.width||null,t.height=t.height||null,t.imageDataOnly=!0,new Promise(function(i,a){r&&r._snapshotInProgress&&a(new Error("Image capture already in progress.")),r&&(r._snapshotInProgress=!0);var n=uMe(e,t),o=t.filename||e.fn;if(!o){let l=iY.getPlotTitle(e);if(l&&!rY.matchTex(l))o=i5.slugify(l,aY);else{let u=iY.getPlotSubtitle(e);u&&!rY.matchTex(u)&&(o=i5.slugify(u,aY))}}var s=o||"plot-image";s+="."+t.format.replace("-","."),n.then(function(l){return r&&(r._snapshotInProgress=!1),cMe(l,s,t.format)}).then(function(l){i(l)}).catch(function(l){r&&(r._snapshotInProgress=!1),a(l)})})}nY.exports=hMe});var cY=X(rS=>{"use strict";var _s=tt(),xs=_s.isPlainObject,oY=n1(),sY=bn(),fMe=Wo(),lY=qi(),uY=Yh().dfltConfig;rS.makeTemplate=function(e){e=_s.isPlainObject(e)?e:_s.getGraphDiv(e),e=_s.extendDeep({_context:uY},{data:e.data,layout:e.layout}),sY.supplyDefaults(e);var t=e.data||[],r=e.layout||{};r._basePlotModules=e._fullLayout._basePlotModules,r._modules=e._fullLayout._modules;var i={data:{},layout:{}};t.forEach(function(d){var p={};Zg(d,p,pMe.bind(null,d));var m=_s.coerce(d,{},fMe,"type"),g=i.data[m];g||(g=i.data[m]=[]),g.push(p)}),Zg(r,i.layout,dMe.bind(null,r)),delete i.layout.template;var a=r.template;if(xs(a)){var n=a.layout,o,s,l,u,c,h;xs(n)&&a5(n,i.layout);var f=a.data;if(xs(f)){for(s in i.data)if(l=f[s],Array.isArray(l)){for(c=i.data[s],h=c.length,u=l.length,o=0;oy?o.push({code:"unused",traceType:d,templateCount:g,dataCount:y}):y>g&&o.push({code:"reused",traceType:d,templateCount:g,dataCount:y})}}function x(b,_){for(var A in b)if(A.charAt(0)!=="_"){var T=b[A],M=Fl(b,A,_);xs(T)?(Array.isArray(b)&&T._template===!1&&T.templateitemname&&o.push({code:"missing",path:M,templateitemname:T.templateitemname}),x(T,M)):Array.isArray(T)&&mMe(T)&&x(T,M)}}if(x({data:l,layout:s},""),o.length)return o.map(vMe)};function mMe(e){for(var t=0;t{"use strict";var fn=WD();aa._doPlot=fn._doPlot;aa.newPlot=fn.newPlot;aa.restyle=fn.restyle;aa.relayout=fn.relayout;aa.redraw=fn.redraw;aa.update=fn.update;aa._guiRestyle=fn._guiRestyle;aa._guiRelayout=fn._guiRelayout;aa._guiUpdate=fn._guiUpdate;aa._storeDirectGUIEdit=fn._storeDirectGUIEdit;aa.react=fn.react;aa.extendTraces=fn.extendTraces;aa.prependTraces=fn.prependTraces;aa.addTraces=fn.addTraces;aa.deleteTraces=fn.deleteTraces;aa.moveTraces=fn.moveTraces;aa.purge=fn.purge;aa.addFrames=fn.addFrames;aa.deleteFrames=fn.deleteFrames;aa.animate=fn.animate;aa.setPlotConfig=fn.setPlotConfig;var gMe=Lv().getGraphDiv,yMe=f3().eraseActiveShape;aa.deleteActiveShape=function(e){return yMe(gMe(e))};aa.toImage=QD();aa.validate=QZ();aa.downloadImage=tS();var hY=cY();aa.makeTemplate=hY.makeTemplate;aa.validateTemplate=hY.validateTemplate});var pY=X((krt,dY)=>{"use strict";var iS=tt(),_Me=mr();dY.exports=function(t,r,i,a){var n=a("x"),o=a("y"),s,l=_Me.getComponentMethod("calendars","handleTraceDefaults");if(l(t,r,["x","y"],i),n){var u=iS.minRowLength(n);o?s=Math.min(u,iS.minRowLength(o)):(s=u,a("y0"),a("dy"))}else{if(!o)return 0;s=iS.minRowLength(o),a("x0"),a("dx")}return r._length=s,s}});var yY=X((Crt,gY)=>{"use strict";var mY=tt().dateTick0,xMe=(Ji(),lt(ua)),bMe=xMe.ONEWEEK;function vY(e,t){return e%bMe===0?mY(t,1):mY(t,0)}gY.exports=function(t,r,i,a,n){if(n||(n={x:!0,y:!0}),n.x){var o=a("xperiod");o&&(a("xperiod0",vY(o,r.xcalendar)),a("xperiodalignment"))}if(n.y){var s=a("yperiod");s&&(a("yperiod0",vY(s,r.ycalendar)),a("yperiodalignment"))}}});var bY=X((Frt,xY)=>{"use strict";var _Y=["orientation","groupnorm","stackgaps"];xY.exports=function(t,r,i,a){var n=i._scatterStackOpts,o=a("stackgroup");if(o){var s=r.xaxis+r.yaxis,l=n[s];l||(l=n[s]={});var u=l[o],c=!1;u?u.traces.push(r):(u=l[o]={traceIndices:[],traces:[r]},c=!0);for(var h={orientation:r.x&&!r.y?"h":"v"},f=0;f<_Y.length;f++){var d=_Y[f],p=d+"Found";if(!u[p]){var m=t[d]!==void 0,g=d==="orientation";if((m||c)&&(u[d]=a(d,h[d]),g&&(u.fillDflt=u[d]==="h"?"tonextx":"tonexty"),m&&(u[p]=!0,!c&&(delete u.traces[0][d],g))))for(var y=0;y{"use strict";var wY=Vr(),AY=ic().hasColorscale,TY=Q0(),wMe=So();MY.exports=function(t,r,i,a,n,o={}){var s=wMe.isBubble(t),l=(t.line||{}).color,u;if(l&&(i=l),n("marker.symbol"),n("marker.opacity",s?.7:1),n("marker.size"),o.noAngle||(n("marker.angle"),o.noAngleRef||n("marker.angleref"),o.noStandOff||n("marker.standoff")),n("marker.color",i),AY(t,"marker")&&TY(t,r,a,n,{prefix:"marker.",cLetter:"c"}),o.noSelect||(n("selected.marker.color"),n("unselected.marker.color"),n("selected.marker.size"),n("unselected.marker.size")),o.noLine||(l&&!Array.isArray(l)&&r.marker.color!==l?u=l:s?u=wY.background:u=wY.defaultLine,n("marker.line.color",u),AY(t,"marker.line")&&TY(t,r,a,n,{prefix:"marker.line.",cLetter:"c"}),n("marker.line.width",s?1:0),o.noLineDash||n("marker.line.dash")),s&&(n("marker.sizeref"),n("marker.sizemin"),n("marker.sizemode")),o.gradient){var c=n("marker.gradient.type");c!=="none"&&n("marker.gradient.color")}}});var nS=X((Irt,DY)=>{"use strict";var AMe=tt().isArrayOrTypedArray,TMe=ic().hasColorscale,MMe=Q0();DY.exports=function(t,r,i,a,n,o){o||(o={});var s=(t.marker||{}).color;if(s&&s._inputArray&&(s=s._inputArray),n("line.color",i),TMe(t,"line"))MMe(t,r,a,n,{prefix:"line.",cLetter:"c"});else{var l=(AMe(s)?!1:s)||i;n("line.color",l)}n("line.width"),o.noDash||n("line.dash"),o.backoff&&n("line.backoff")}});var EY=X((Lrt,SY)=>{"use strict";SY.exports=function(t,r,i){var a=i("line.shape");a==="spline"&&i("line.smoothing")}});var oS=X((zrt,kY)=>{"use strict";var DMe=tt();kY.exports=function(e,t,r,i,a){a=a||{},i("textposition"),DMe.coerceFont(i,"textfont",a.font||r.font,a),a.noSelect||(i("selected.textfont.color"),i("unselected.textfont.color"))}});var sS=X((Rrt,FY)=>{"use strict";var o5=Vr(),CY=tt().isArrayOrTypedArray;function SMe(e){for(var t=o5.interpolate(e[0][1],e[1][1],.5),r=2;r{"use strict";var PY=tt(),EMe=mr(),kMe=sh(),CMe=(F3(),lt(C3)),F1=So(),FMe=pY(),PMe=yY(),IMe=bY(),LMe=aS(),zMe=nS(),IY=EY(),RMe=oS(),BMe=sS(),qMe=tt().coercePattern;LY.exports=function(t,r,i,a){function n(d,p){return PY.coerce(t,r,kMe,d,p)}var o=FMe(t,r,a,n);if(o||(r.visible=!1),!!r.visible){PMe(t,r,a,n),n("xhoverformat"),n("yhoverformat"),n("zorder");var s=IMe(t,r,a,n);a.scattermode==="group"&&r.orientation===void 0&&n("orientation","v");var l=!s&&o{"use strict";var OMe=yg().getAxisGroup;RY.exports=function(t,r,i,a,n){var o=r.orientation,s=r[{v:"x",h:"y"}[o]+"axis"],l=OMe(i,s)+o,u=i._alignmentOpts||{},c=a("alignmentgroup"),h=u[l];h||(h=u[l]={});var f=h[c];f?f.traces.push(r):f=h[c]={traces:[r],alignmentIndex:Object.keys(h).length,offsetGroups:{}};var d=a("offsetgroup")||"",p=f.offsetGroups,m=p[d];r._offsetIndex=0,(n!=="group"||d)&&(m||(m=p[d]={offsetIndex:Object.keys(p).length}),r._offsetIndex=m.offsetIndex)}});var OY=X((Ort,qY)=>{"use strict";var NMe=tt(),VMe=BY(),UMe=sh();qY.exports=function(t,r){var i,a,n,o=r.scattermode;function s(f){return NMe.coerce(a._input,a,UMe,f)}if(r.scattermode==="group")for(n=0;n=0;c--){var h=t[c];if(h.type==="scatter"&&h.xaxis===l.xaxis&&h.yaxis===l.yaxis){h.opacity=void 0;break}}}}}});var VY=X((Nrt,NY)=>{"use strict";var GMe=tt(),jMe=Yx();NY.exports=function(e,t){function r(a,n){return GMe.coerce(e,t,jMe,a,n)}var i=t.barmode==="group";t.scattermode==="group"&&r("scattergap",i?t.bargap:.2)}});var jY=X((Vrt,GY)=>{"use strict";var $Me=Nr(),UY=tt(),HMe=UY.dateTime2ms,s5=UY.incrementMonth,ZMe=(Ji(),lt(ua)),YMe=ZMe.ONEAVGMONTH;GY.exports=function(t,r,i,a){if(r.type!=="date")return{vals:a};var n=t[i+"periodalignment"];if(!n)return{vals:a};var o=t[i+"period"],s;if($Me(o)){if(o=+o,o<=0)return{vals:a}}else if(typeof o=="string"&&o.charAt(0)==="M"){var l=+o.substring(1);if(l>0&&Math.round(l)===l)s=l;else return{vals:a}}for(var u=r.calendar,c=n==="start",h=n==="end",f=t[i+"period0"],d=HMe(f,u)||0,p=[],m=[],g=[],y=a.length,x=0;xb;)T=s5(T,-s,u);for(;T<=b;)T=s5(T,s,u);A=s5(T,-s,u)}else{for(_=Math.round((b-d)/o),T=d+_*o;T>b;)T-=o;for(;T<=b;)T+=o;A=T-o}p[x]=c?A:h?T:(A+T)/2,m[x]=A,g[x]=T}return{vals:p,starts:m,ends:g}}});var cS=X((Urt,HY)=>{"use strict";var lS=ic().hasColorscale,uS=Zv(),$Y=So();HY.exports=function(t,r){$Y.hasLines(r)&&lS(r,"line")&&uS(t,r,{vals:r.line.color,containerStr:"line",cLetter:"c"}),$Y.hasMarkers(r)&&(lS(r,"marker")&&uS(t,r,{vals:r.marker.color,containerStr:"marker",cLetter:"c"}),lS(r,"marker.line")&&uS(t,r,{vals:r.marker.line.color,containerStr:"marker.line",cLetter:"c"}))}});var Yg=X((Grt,ZY)=>{"use strict";var Da=tt();ZY.exports=function(t,r){for(var i=0;i{"use strict";var YY=tt();WY.exports=function(t,r){YY.isArrayOrTypedArray(r.selectedpoints)&&YY.tagSelected(t,r)}});var mS=X(($rt,rW)=>{"use strict";var XY=Nr(),fS=tt(),Wg=ra(),KY=jY(),hS=(Ji(),lt(ua)).BADNUM,dS=So(),WMe=cS(),XMe=Yg(),KMe=l5();function JMe(e,t){var r=e._fullLayout,i=t._xA=Wg.getFromId(e,t.xaxis||"x","x"),a=t._yA=Wg.getFromId(e,t.yaxis||"y","y"),n=i.makeCalcdata(t,"x"),o=a.makeCalcdata(t,"y"),s=KY(t,i,"x",n),l=KY(t,a,"y",o),u=s.vals,c=l.vals,h=t._length,f=new Array(h),d=t.ids,p=pS(t,r,i,a),m=!1,g,y,x,b,_,A;eW(r,t);var T="x",M="y",S;if(p)fS.pushUnique(p.traceIndices,t.index),g=p.orientation==="v",g?(M="s",S="x"):(T="s",S="y"),_=p.stackgaps==="interpolate";else{var k=QY(t,h);JY(e,t,i,a,u,c,k)}var P=!!t.xperiodalignment,I=!!t.yperiodalignment;for(y=0;yy&&f[b].gap;)b--;for(A=f[b].s,x=f.length-1;x>b;x--)f[x].s=A;for(;y{"use strict";iW.exports=u5;var QMe=tt().distinctVals;function u5(e,t){this.traces=e,this.sepNegVal=t.sepNegVal,this.overlapNoMerge=t.overlapNoMerge;for(var r=1/0,i=t.posAxis._id.charAt(0),a=[],n=0;neDe,eventDataKeys:()=>tDe});var eDe,tDe,oW=Gi(()=>{"use strict";eDe=3,tDe=["value","label"]});var hW=X((Zrt,cW)=>{"use strict";var Pl=Nr(),{isArrayOrTypedArray:uh}=tt(),{BADNUM:P1}=(Ji(),lt(ua)),rDe=mr(),Xg=ra(),{getAxisGroup:iDe}=yg(),c5=aW(),{TEXTPAD:aDe}=(oW(),lt(nW)),{LINE_SPACING:nDe}=(uo(),lt(lo)),{BR_TAG_ALL:oDe}=cn();function sDe(e,t){for(var r=t.xaxis,i=t.yaxis,a=e._fullLayout,n=e._fullData,o=e.calcdata,s=[],l=[],u=0;ul+o||!Pl(s))}for(var c=0;ci(n))):i(e.text);let a=e.outsidetextfont.size*nDe*r+aDe;return{ppadplus:t.some(n=>n.s<0)?a:0,ppadminus:t.some(n=>n.s>=0)?a:0}}return{ppadplus:void 0,ppadminus:void 0}}function gDe(e,t,r,i){for(var a=I1(i),n=0;n{"use strict";var fW=mS(),dW=hW().setGroupPositions;function _De(e,t){for(var r=t.xaxis,i=t.yaxis,a=e._fullLayout,n=e._fullData,o=e.calcdata,s=[],l=[],u=0;uk[c]&&c{"use strict";var bDe=xi(),_W=(Ji(),lt(ua)),Kg=_W.BADNUM,xW=_W.LOG_CLIP,vW=xW+.5,gW=xW-.5,h5=tt(),wDe=h5.segmentsIntersect,yW=h5.constrain,wS=(F3(),lt(C3));bW.exports=function(t,r){var i=r.trace||{},a=r.xaxis,n=r.yaxis,o=a.type==="log",s=n.type==="log",l=a._length,u=n._length,c=r.backoff,h=i.marker,f=r.connectGaps,d=r.baseTolerance,p=r.shape,m=p==="linear",g=i.fill&&i.fill!=="none",y=[],x=wS.minTolerance,b=t.length,_=new Array(b),A=0,T,M,S,k,P,I,B,L,z,q,V,j,$,H,Z,Y;function oe(We){var mt=t[We];if(!mt)return!1;var Ye=r.linearized?a.l2p(mt.x):a.c2p(mt.x),vt=r.linearized?n.l2p(mt.y):n.c2p(mt.y);if(Ye===Kg){if(o&&(Ye=a.c2p(mt.x,!0)),Ye===Kg)return!1;s&&vt===Kg&&(Ye*=Math.abs(a._m*u*(a._m>0?vW:gW)/(n._m*l*(n._m>0?vW:gW)))),Ye*=1e3}if(vt===Kg){if(s&&(vt=n.c2p(mt.y,!0)),vt===Kg)return!1;vt*=1e3}return[Ye,vt]}function pe(We,mt,Ye,vt){var Dt=Ye-We,Ft=vt-mt,zt=.5-We,ce=.5-mt,ke=Dt*Dt+Ft*Ft,Je=Dt*zt+Ft*ce;if(Je>0&&Je1||Math.abs(zt.y-Ye[0][1])>1)&&(zt=[zt.x,zt.y],vt&&Ce(zt,We)me||We[1]re)return[yW(We[0],ue,me),yW(We[1],te,re)]}function Ne(We,mt){if(We[0]===mt[0]&&(We[0]===ue||We[0]===me)||We[1]===mt[1]&&(We[1]===te||We[1]===re))return!0}function $e(We,mt){var Ye=[],vt=Ue(We),Dt=Ue(mt);return vt&&Dt&&Ne(vt,Dt)||(vt&&Ye.push(vt),Dt&&Ye.push(Dt)),Ye}function Ae(We,mt,Ye){return function(vt,Dt){var Ft=Ue(vt),zt=Ue(Dt),ce=[];if(Ft&&zt&&Ne(Ft,zt))return ce;Ft&&ce.push(Ft),zt&&ce.push(zt);var ke=2*h5.constrain((vt[We]+Dt[We])/2,mt,Ye)-((Ft||vt)[We]+(zt||Dt)[We]);if(ke){var Je;Ft&&zt?Je=ke>0==Ft[We]>zt[We]?Ft:zt:Je=Ft||zt,Je[We]+=ke}return ce}}var He;p==="linear"||p==="spline"?He=se:p==="hv"||p==="vh"?He=$e:p==="hvh"?He=Ae(0,ue,me):p==="vhv"&&(He=Ae(1,te,re));function it(We,mt){var Ye=mt[0]-We[0],vt=(mt[1]-We[1])/Ye,Dt=(We[1]*mt[0]-mt[1]*We[0])/Ye;return Dt>0?[vt>0?ue:me,re]:[vt>0?me:ue,te]}function ie(We){var mt=We[0],Ye=We[1],vt=mt===_[A-1][0],Dt=Ye===_[A-1][1];if(!(vt&&Dt))if(A>1){var Ft=mt===_[A-2][0],zt=Ye===_[A-2][1];vt&&(mt===ue||mt===me)&&Ft?zt?A--:_[A-1]=We:Dt&&(Ye===te||Ye===re)&&zt?Ft?A--:_[A-1]=We:_[A++]=We}else _[A++]=We}function Se(We){_[A-1][0]!==We[0]&&_[A-1][1]!==We[1]&&ie([Ve,Me]),ie(We),Pe=null,Ve=Me=0}var ot=h5.isArrayOrTypedArray(h);function bt(We){if(We&&c&&(We.i=T,We.d=t,We.trace=i,We.marker=ot?h[We.i]:h,We.backoff=c),De=We[0]/l,ye=We[1]/u,ge=We[0]me?me:0,Re=We[1]re?re:0,ge||Re){if(!A)_[A++]=[ge||We[0],Re||We[1]];else if(Pe){var mt=He(Pe,We);mt.length>1&&(Se(mt[0]),_[A++]=mt[1])}else Fe=He(_[A-1],We)[0],_[A++]=Fe;var Ye=_[A-1];ge&&Re&&(Ye[0]!==ge||Ye[1]!==Re)?(Pe&&(Ve!==ge&&Me!==Re?ie(Ve&&Me?it(Pe,We):[Ve||ge,Me||Re]):Ve&&Me&&ie([Ve,Me])),ie([ge,Re])):Ve-ge&&Me-Re&&ie([ge||Ve,Re||Me]),Pe=We,Ve=ge,Me=Re}else Pe&&Se(He(Pe,We)[0]),_[A++]=We}for(T=0;Tde(I,Tt))break;S=I,$=z[0]*L[0]+z[1]*L[1],$>V?(V=$,k=I,B=!1):$=t.length||!I)break;bt(I),M=I}}Pe&&ie([Ve||Pe[0],Me||Pe[1]]),y.push(_.slice(0,A))}var ve=p.slice(p.length-1);if(c&&ve!=="h"&&ve!=="v"){for(var xe=!1,je=-1,nt=[],Qe=0;Qe{"use strict";var AW={tonextx:1,tonexty:1,tonext:1};TW.exports=function(t,r,i){var a,n,o,s,l,u={},c=!1,h=-1,f=0,d=-1;for(n=0;n=0?l=d:(l=d=f,f++),l{"use strict";var wu=Qr(),ADe=mr(),Jg=tt(),L1=Jg.ensureSingle,SW=Jg.identity,Pa=xi(),z1=So(),TDe=wW(),MDe=MW(),f5=T3().tester;EW.exports=function(t,r,i,a,n,o){var s,l,u=!n,c=!!n&&n.duration>0,h=MDe(t,r,i);if(s=a.selectAll("g.trace").data(h,function(d){return d[0].trace.uid}),s.enter().append("g").attr("class",function(d){return"trace scatter trace"+d[0].trace.uid}).style("stroke-miterlimit",2),s.order(),DDe(t,s,r),c){o&&(l=o());var f=wu.transition().duration(n.duration).ease(n.easing).each("end",function(){l&&l()}).each("interrupt",function(){l&&l()});f.each(function(){a.selectAll("g.trace").each(function(d,p){DW(t,p,r,d,h,this,n)})})}else s.each(function(d,p){DW(t,p,r,d,h,this,n)});u&&s.exit().remove(),a.selectAll("path:not([d])").remove()};function DDe(e,t,r){t.each(function(i){var a=L1(wu.select(this),"g","fills");Pa.setClipUrl(a,r.layerClipId,e);var n=i[0].trace;n._ownFill=null,n._nextFill=null;var o=[];n._ownfill&&o.push("_ownFill"),n._nexttrace&&o.push("_nextFill");var s=a.selectAll("g").data(o,SW);s.enter().append("g"),s.exit().remove(),s.order().each(function(l){n[l]=L1(wu.select(this),"path","js-fill")})})}function DW(e,t,r,i,a,n,o){var s=e._context.staticPlot,l;SDe(e,t,r,i,a);var u=!!o&&o.duration>0;function c(Ae){return u?Ae.transition():Ae}var h=r.xaxis,f=r.yaxis,d=i[0].trace,p=d.line,m=wu.select(n),g=L1(m,"g","errorbars"),y=L1(m,"g","lines"),x=L1(m,"g","points"),b=L1(m,"g","text");if(ADe.getComponentMethod("errorbars","plot")(e,g,r,o),d.visible!==!0)return;c(m).style("opacity",d.opacity);var _,A,T=d.fill.charAt(d.fill.length-1);T!=="x"&&T!=="y"&&(T="");var M,S;T==="y"?(M=1,S=f.c2p(0,!0)):T==="x"&&(M=0,S=h.c2p(0,!0)),i[0][r.isRangePlot?"nodeRangePlot3":"node3"]=m;var k="",P=[],I=d._prevtrace,B=null,L=null;I&&(k=I._prevRevpath||"",A=I._nextFill,P=I._ownPolygons,B=I._fillsegments,L=I._fillElement);var z,q,V="",j="",$,H,Z,Y,oe,pe,De=[];d._polygons=[];var ye=[],de=[],Ce=Jg.noop;if(_=d._ownFill,z1.hasLines(d)||d.fill!=="none"){A&&A.datum(i),["hv","vh","hvh","vhv"].indexOf(p.shape)!==-1?($=Pa.steps(p.shape),H=Pa.steps(p.shape.split("").reverse().join(""))):p.shape==="spline"?$=H=function(Ae){var He=Ae[Ae.length-1];return Ae.length>1&&Ae[0][0]===He[0]&&Ae[0][1]===He[1]?Pa.smoothclosed(Ae.slice(1),p.smoothing):Pa.smoothopen(Ae,p.smoothing)}:$=H=function(Ae){return"M"+Ae.join("L")},Z=function(Ae){return H(Ae.reverse())},de=TDe(i,{xaxis:h,yaxis:f,trace:d,connectGaps:d.connectgaps,baseTolerance:Math.max(p.width||1,3)/4,shape:p.shape,backoff:p.backoff,simplify:p.simplify,fill:d.fill}),ye=new Array(de.length);var J=0;for(l=0;l=s[0]&&m.x<=s[1]&&m.y>=l[0]&&m.y<=l[1]}),f=Math.ceil(h.length/c),d=0;a.forEach(function(m,g){var y=m[0].trace;z1.hasMarkers(y)&&y.marker.maxdisplayed>0&&g{"use strict";CW.exports={container:"marker",min:"cmin",max:"cmax"}});var PW=X((Qrt,FW)=>{"use strict";var d5=ra();FW.exports=function(t,r,i){var a={},n={_fullLayout:i},o=d5.getFromTrace(n,r,"x"),s=d5.getFromTrace(n,r,"y"),l=t.orig_x;l===void 0&&(l=t.x);var u=t.orig_y;return u===void 0&&(u=t.y),a.xLabel=d5.tickText(o,o.c2l(l),!0).text,a.yLabel=d5.tickText(s,s.c2l(u),!0).text,a}});var SS=X((eit,IW)=>{"use strict";var TS=Qr(),R1=xi(),EDe=mr();function kDe(e){var t=TS.select(e).selectAll("g.trace.scatter");t.style("opacity",function(r){return r[0].trace.opacity}),t.selectAll("g.points").each(function(r){var i=TS.select(this),a=r.trace||r[0].trace;MS(i,a,e)}),t.selectAll("g.text").each(function(r){var i=TS.select(this),a=r.trace||r[0].trace;DS(i,a,e)}),t.selectAll("g.trace path.js-line").call(R1.lineGroupStyle),t.selectAll("g.trace path.js-fill").call(R1.fillGroupStyle,e,!1),EDe.getComponentMethod("errorbars","style")(t)}function MS(e,t,r){R1.pointStyle(e.selectAll("path.point"),t,r)}function DS(e,t,r){R1.textPointStyle(e.selectAll("text"),t,r)}function CDe(e,t,r){var i=t[0].trace;i.selectedpoints?(R1.selectedPointStyle(r.selectAll("path.point"),i),R1.selectedTextStyle(r.selectAll("text"),i)):(MS(r,i,e),DS(r,i,e))}IW.exports={style:kDe,stylePoints:MS,styleText:DS,styleOnSelect:CDe}});var ES=X((tit,LW)=>{"use strict";var B1=Vr(),FDe=So();LW.exports=function(t,r){var i,a;if(t.mode==="lines")return i=t.line.color,i&&B1.opacity(i)?i:t.fillcolor;if(t.mode==="none")return t.fill?t.fillcolor:"";var n=r.mcc||r.mc||(t.marker||{}).color,o=r.mlcc||((t.marker||{}).line||{}).color;return a=n&&B1.opacity(n)?n:o&&B1.opacity(o)&&(r.mlw||((t.marker||{}).line||{}).width)?o:"",a?B1.opacity(a)<.3?B1.addOpacity(a,.3):a:(i=(t.line||{}).color,i&&B1.opacity(i)&&FDe.hasLines(t)&&t.line.width?i:t.fillcolor)}});var BW=X((rit,RW)=>{"use strict";var p5=tt(),zW=yu(),PDe=mr(),IDe=ES(),kS=Vr(),LDe=p5.fillText;RW.exports=function(t,r,i,a){var n=t.cd,o=n[0].trace,s=t.xa,l=t.ya,u=s.c2p(r),c=l.c2p(i),h=[u,c],f=o.hoveron||"",d=o.mode.indexOf("markers")!==-1?3:.5,p=!!o.xperiodalignment,m=!!o.yperiodalignment;if(f.indexOf("points")!==-1){var g=function(j){if(p){var $=s.c2p(j.xStart),H=s.c2p(j.xEnd);return u>=Math.min($,H)&&u<=Math.max($,H)?0:1/0}var Z=Math.max(3,j.mrc||0),Y=1-1/Z,oe=Math.abs(s.c2p(j.x)-u);return oe=Math.min($,H)&&c<=Math.max($,H)?0:1/0}var Z=Math.max(3,j.mrc||0),Y=1-1/Z,oe=Math.abs(l.c2p(j.y)-c);return oeDe!=re>=De&&(ue=Ce[de-1][0],me=Ce[de][0],re-te&&(J=ue+(me-ue)*(De-te)/(re-te),Z=Math.min(Z,J),Y=Math.max(Y,J)));return Z=Math.max(Z,0),Y=Math.min(Y,s._length),{x0:Z,x1:Y,y0:De,y1:De}}if(f.indexOf("fills")!==-1&&o._fillElement){var z=B(o._fillElement)&&!B(o._fillExclusionElement);if(z){var q=L(o._polygons);q===null&&(q={x0:h[0],x1:h[0],y0:h[1],y1:h[1]});var V=kS.defaultLine;return kS.opacity(o.fillcolor)?V=o.fillcolor:kS.opacity((o.line||{}).color)&&(V=o.line.color),p5.extendFlat(t,{distance:t.maxHoverDistance,x0:q.x0,x1:q.x1,y0:q.y0,y1:q.y1,color:V,hovertemplate:!1}),delete t.index,o.text&&!p5.isArrayOrTypedArray(o.text)?t.text=String(o.text):t.text=o.name,[t]}}}});var NW=X((iit,OW)=>{"use strict";var qW=So();OW.exports=function(t,r){var i=t.cd,a=t.xaxis,n=t.yaxis,o=[],s=i[0].trace,l,u,c,h,f=s.mode&&!qW.hasMarkers(s)&&!qW.hasText(s);if(f)return[];if(r===!1)for(l=0;l{"use strict";VW.exports={xaxis:{valType:"subplotid",dflt:"x",editType:"calc+clearAxisTypes"},yaxis:{valType:"subplotid",dflt:"y",editType:"calc+clearAxisTypes"}}});var HW=X((nit,$W)=>{"use strict";var m5=mr().traceIs,CS=$8();$W.exports=function(t,r,i,a){i("autotypenumbers",a.autotypenumbersDflt);var n=i("type",(a.splomStash||{}).type);n==="-"&&(zDe(r,a.data),r.type==="-"?r.type="linear":t.type=r.type)};function zDe(e,t){if(e.type==="-"){var r=e._id,i=r.charAt(0),a;r.indexOf("scene")!==-1&&(r=i);var n=RDe(t,r,i);if(n){if(n.type==="histogram"&&i==={v:"y",h:"x"}[n.orientation||"v"]){e.type="linear";return}var o=i+"calendar",s=n[o],l={noMultiCategory:!m5(n,"cartesian")||m5(n,"noMultiCategory")};if(n.type==="box"&&n._hasPreCompStats&&i==={h:"x",v:"y"}[n.orientation||"v"]&&(l.noMultiCategory=!0),l.autotypenumbers=e.autotypenumbers,jW(n,i)){var u=GW(n),c=[];for(a=0;a0&&(a["_"+r+"axes"]||{})[t])return a;if((a[r+"axis"]||r)===t){if(jW(a,r))return a;if((a[r]||[]).length||a[r+"0"])return a}}}function GW(e){return{v:"x",h:"y"}[e.orientation||"v"]}function jW(e,t){var r=GW(e),i=m5(e,"box-violin");return i&&t===r&&e[r]===void 0&&e[r+"0"]===void 0}});var YW=X((oit,ZW)=>{"use strict";var BDe=hs().isTypedArraySpec;function qDe(e,t){var r=t.dataAttr||e._id.charAt(0),i={},a,n,o;if(t.axData)a=t.axData;else for(a=[],n=0;n0||BDe(n),s;o&&(s="array");var l=i("categoryorder",s),u;l==="array"&&(u=i("categoryarray")),!o&&l==="array"&&(l=r.categoryorder="trace"),l==="trace"?r._initialCategories=[]:l==="array"?r._initialCategories=u.slice():(u=qDe(r,a).sort(),l==="category ascending"?r._initialCategories=u:l==="category descending"&&(r._initialCategories=u.reverse()))}}});var KW=X((sit,XW)=>{"use strict";var WW=Vr(),ODe=ec(),NDe=tt();XW.exports=function(t,r,i,a){a=a||{};var n=a.dfltColor;function o(S,k){return NDe.coerce2(t,r,a.attributes,S,k)}var s=o("linecolor",n),l=o("linewidth"),u=i("showline",a.showLine||!!s||!!l);u||(delete r.linecolor,delete r.linewidth);var c=WW.mix(n,a.bgColor,a.blend||ODe.lightFraction),h=o("gridcolor",c),f=o("gridwidth"),d=o("griddash"),p=i("showgrid",a.showGrid||!!h||!!f||!!d);if(p||(delete r.gridcolor,delete r.gridwidth,delete r.griddash),a.hasMinor){var m=WW.mix(r.gridcolor,a.bgColor,67),g=o("minor.gridcolor",m),y=o("minor.gridwidth",r.gridwidth||1),x=o("minor.griddash",r.griddash||"solid"),b=i("minor.showgrid",!!g||!!y||!!x);b||(delete r.minor.gridcolor,delete r.minor.gridwidth,delete r.minor.griddash)}if(!a.noZeroLine){var _=o("zerolinelayer"),A=o("zerolinecolor",n),T=o("zerolinewidth"),M=i("zeroline",a.showGrid||!!A||!!T);M||(delete r.zerolinelayer,delete r.zerolinecolor,delete r.zerolinewidth)}}});var PS=X((lit,iX)=>{"use strict";var JW=Nr(),VDe=mr(),Qg=tt(),UDe=qi(),GDe=_l(),FS=vu(),QW=m8(),eX=g8(),jDe=x8(),$De=b8(),HDe=YW(),ZDe=KW(),YDe=dM(),tX=yb(),v5=(xn(),lt(_n)).WEEKDAY_PATTERN,WDe=(xn(),lt(_n)).HOUR_PATTERN;iX.exports=function(t,r,i,a,n){var o=a.letter,s=a.font||{},l=a.splomStash||{},u=i("visible",!a.visibleDflt),c=r._template||{},h=r.type||c.type||"-",f;if(h==="date"){var d=VDe.getComponentMethod("calendars","handleDefaults");d(t,r,"calendar",a.calendar),a.noTicklabelmode||(f=i("ticklabelmode"))}!a.noTicklabelindex&&(h==="date"||h==="linear")&&i("ticklabelindex");var p="";(!a.noTicklabelposition||h==="multicategory")&&(p=Qg.coerce(t,r,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:f==="period"?["outside","inside"]:o==="x"?["outside","inside","outside left","inside left","outside right","inside right"]:["outside","inside","outside top","inside top","outside bottom","inside bottom"]}},"ticklabelposition")),a.noTicklabeloverflow||i("ticklabeloverflow",p.indexOf("inside")!==-1?"hide past domain":h==="category"||h==="multicategory"?"allow":"hide past div"),tX(r,n),YDe(t,r,i,a),HDe(t,r,i,a),a.noHover||(h!=="category"&&i("hoverformat"),a.noUnifiedhovertitle||i("unifiedhovertitle.text"));var m=i("color"),g=m!==FS.color.dflt?m:s.color,y=l.label||n._dfltTitle[o];if($De(t,r,i,h,a),!u)return r;i("title.text",y),Qg.coerceFont(i,"title.font",s,{overrideDflt:{size:Qg.bigFont(s.size),color:g}}),QW(t,r,i,h);var x=a.hasMinor;if(x&&(UDe.newContainer(r,"minor"),QW(t,r,i,h,{isMinor:!0})),jDe(t,r,i,h,a),eX(t,r,i,a),x){var b=a.isMinor;a.isMinor=!0,eX(t,r,i,a),a.isMinor=b}ZDe(t,r,i,{dfltColor:m,bgColor:a.bgColor,showGrid:a.showGrid,hasMinor:x,attributes:FS}),x&&r.ticklabelindex==null&&!r.minor.ticks&&!r.minor.showgrid&&delete r.minor,(r.showline||r.ticks)&&i("mirror");var _=h==="multicategory";if(!a.noTickson&&(h==="category"||_)&&(r.ticks||r.showgrid)&&(_?(i("tickson","boundaries"),delete r.ticklabelposition):i("tickson")),_){var A=i("showdividers");A&&(i("dividercolor"),i("dividerwidth"))}if(h==="date")if(GDe(t,r,{name:"rangebreaks",inclusionAttr:"enabled",handleItemDefaults:XDe}),!r.rangebreaks.length)delete r.rangebreaks;else{for(var T=0;T=2){var o="",s,l;if(n.length===2){for(s=0;s<2;s++)if(l=rX(n[s]),l){o=v5;break}}var u=i("pattern",o);if(u===v5)for(s=0;s<2;s++)l=rX(n[s]),l&&(t.bounds[s]=n[s]=l-1);if(u)for(s=0;s<2;s++)switch(l=n[s],u){case v5:if(!JW(l)){t.enabled=!1;return}if(l=+l,l!==Math.floor(l)||l<0||l>=7){t.enabled=!1;return}t.bounds[s]=n[s]=l;break;case WDe:if(!JW(l)){t.enabled=!1;return}if(l=+l,l<0||l>24){t.enabled=!1;return}t.bounds[s]=n[s]=l;break}if(r.autorange===!1){var c=r.range;if(c[0]c[1]){t.enabled=!1;return}}else if(n[0]>c[0]&&n[1]{"use strict";var JDe=Nr(),g5=tt();aX.exports=function(t,r,i,a){var n=a.counterAxes||[],o=a.overlayableAxes||[],s=a.letter,l=a.grid,u=a.overlayingDomain,c,h,f,d,p,m;l&&(h=l._domains[s][l._axisMap[r._id]],c=l._anchors[r._id],h&&(f=l[s+"side"].split(" ")[0],d=l.domain[s][f==="right"||f==="top"?1:0])),h=h||[0,1],c=c||(JDe(t.position)?"free":n[0]||"free"),f=f||(s==="x"?"bottom":"left"),d=d||0,p=0,m=!1;var g=g5.coerce(t,r,{anchor:{valType:"enumerated",values:["free"].concat(n),dflt:c}},"anchor"),y=g5.coerce(t,r,{side:{valType:"enumerated",values:s==="x"?["bottom","top"]:["left","right"],dflt:f}},"side");if(g==="free"){if(s==="y"){var x=i("autoshift");x&&(d=y==="left"?u[0]:u[1],m=r.automargin?r.automargin:!0,p=y==="left"?-3:3),i("shift",p)}i("position",d)}i("automargin",m);var b=!1;if(o.length&&(b=g5.coerce(t,r,{overlaying:{valType:"enumerated",values:[!1].concat(o),dflt:!1}},"overlaying")),!b){var _=i("domain",h);_[0]>_[1]-1/4096&&(r.domain=h),g5.noneOrAll(t.domain,r.domain,h),r.tickmode==="sync"&&(r.tickmode="auto")}return i("layer"),r}});var dX=X((cit,fX)=>{"use strict";var wd=tt(),nX=Vr(),QDe=nc().isUnifiedHover,eSe=UM(),oX=qi(),tSe=Wp(),sX=vu(),rSe=HW(),lX=PS(),iSe=yg(),uX=IS(),zS=un(),xc=zS.id2name,cX=zS.name2id,aSe=(xn(),lt(_n)).AX_ID_PATTERN,hX=mr(),y5=hX.traceIs,LS=hX.getComponentMethod;function _5(e,t,r){Array.isArray(e[t])?e[t].push(r):e[t]=[r]}fX.exports=function(t,r,i){var a=r.autotypenumbers,n={},o={},s={},l={},u={},c={},h={},f={},d={},p={},m,g;for(m=0;m{"use strict";var nSe=Qr(),pX=mr(),x5=tt(),Zs=xi(),b5=ra();mX.exports=function(t,r,i,a){var n=t._fullLayout;if(r.length===0){b5.redrawComponents(t);return}function o(g){var y=g.xaxis,x=g.yaxis;n._defs.select("#"+g.clipId+"> rect").call(Zs.setTranslate,0,0).call(Zs.setScale,1,1),g.plot.call(Zs.setTranslate,y._offset,x._offset).call(Zs.setScale,1,1);var b=g.plot.selectAll(".scatterlayer .trace");b.selectAll(".point").call(Zs.setPointGroupScale,1,1),b.selectAll(".textpoint").call(Zs.setTextPointsScale,1,1),b.call(Zs.hideOutsideRangePoints,g)}function s(g,y){var x=g.plotinfo,b=x.xaxis,_=x.yaxis,A=b._length,T=_._length,M=!!g.xr1,S=!!g.yr1,k=[];if(M){var P=x5.simpleMap(g.xr0,b.r2l),I=x5.simpleMap(g.xr1,b.r2l),B=P[1]-P[0],L=I[1]-I[0];k[0]=(P[0]*(1-y)+y*I[0]-P[0])/(P[1]-P[0])*A,k[2]=A*(1-y+y*L/B),b.range[0]=b.l2r(P[0]*(1-y)+y*I[0]),b.range[1]=b.l2r(P[1]*(1-y)+y*I[1])}else k[0]=0,k[2]=A;if(S){var z=x5.simpleMap(g.yr0,_.r2l),q=x5.simpleMap(g.yr1,_.r2l),V=z[1]-z[0],j=q[1]-q[0];k[1]=(z[1]*(1-y)+y*q[1]-z[1])/(z[0]-z[1])*T,k[3]=T*(1-y+y*j/V),_.range[0]=b.l2r(z[0]*(1-y)+y*q[0]),_.range[1]=_.l2r(z[1]*(1-y)+y*q[1])}else k[1]=0,k[3]=T;b5.drawOne(t,b,{skipTitle:!0}),b5.drawOne(t,_,{skipTitle:!0}),b5.redrawComponents(t,[b._id,_._id]);var $=M?A/k[2]:1,H=S?T/k[3]:1,Z=M?k[0]:0,Y=S?k[1]:0,oe=M?k[0]/k[2]*A:0,pe=S?k[1]/k[3]*T:0,De=b._offset-oe,ye=_._offset-pe;x.clipRect.call(Zs.setTranslate,Z,Y).call(Zs.setScale,1/$,1/H),x.plot.call(Zs.setTranslate,De,ye).call(Zs.setScale,$,H),Zs.setPointGroupScale(x.zoomScalePts,1/$,1/H),Zs.setTextPointsScale(x.zoomScaleTxt,1/$,1/H)}var l;a&&(l=a());function u(){for(var g={},y=0;yi.duration?(u(),d=window.cancelAnimationFrame(m)):d=window.requestAnimationFrame(m)}return h=Date.now(),d=window.requestAnimationFrame(m),Promise.resolve()}});var RS=X(ho=>{"use strict";var A5=Qr(),gX=mr(),Ad=tt(),oSe=bn(),sSe=xi(),yX=Kx().getModuleCalcData,Mf=un(),Au=(xn(),lt(_n)),lSe=(lf(),lt(sf)),ui=Ad.ensureSingle;function w5(e,t,r){return Ad.ensureSingle(e,t,r,function(i){i.datum(r)})}var Td=Au.zindexSeparator;ho.name="cartesian";ho.attr=["xaxis","yaxis"];ho.idRoot=["x","y"];ho.idRegex=Au.idRegex;ho.attrRegex=Au.attrRegex;ho.attributes=UW();ho.layoutAttributes=vu();ho.supplyLayoutDefaults=dX();ho.transitionAxes=vX();ho.finalizeSubplots=function(e,t){var r=t._subplots,i=r.xaxis,a=r.yaxis,n=r.cartesian,o=n,s={},l={},u,c,h;for(u=0;u0){var d=f.id;if(d.indexOf(Td)!==-1)continue;d+=Td+(u+1),f=Ad.extendFlat({},f,{id:d,plot:a._cartesianlayer.selectAll(".subplot").select("."+d)})}for(var p=[],m,g=0;g1&&(A+=Td+_),b.push(s+A),o=0;o1,h=t.mainplotinfo;if(!t.mainplot||c)if(u)t.xlines=ui(i,"path","xlines-above"),t.ylines=ui(i,"path","ylines-above"),t.xaxislayer=ui(i,"g","xaxislayer-above"),t.yaxislayer=ui(i,"g","yaxislayer-above");else{if(!o){var f=ui(i,"g","layer-subplot");t.shapelayer=ui(f,"g","shapelayer"),t.imagelayer=ui(f,"g","imagelayer"),h&&c?(t.minorGridlayer=h.minorGridlayer,t.gridlayer=h.gridlayer,t.zerolinelayer=h.zerolinelayer):(t.minorGridlayer=ui(i,"g","minor-gridlayer"),t.gridlayer=ui(i,"g","gridlayer"),t.zerolinelayer=ui(i,"g","zerolinelayer"));var d=ui(i,"g","layer-between");t.shapelayerBetween=ui(d,"g","shapelayer"),t.imagelayerBetween=ui(d,"g","imagelayer"),ui(i,"path","xlines-below"),ui(i,"path","ylines-below"),t.overlinesBelow=ui(i,"g","overlines-below"),ui(i,"g","xaxislayer-below"),ui(i,"g","yaxislayer-below"),t.overaxesBelow=ui(i,"g","overaxes-below")}t.overplot=ui(i,"g","overplot"),t.plot=ui(t.overplot,"g",a),h&&c?t.zerolinelayerAbove=h.zerolinelayerAbove:t.zerolinelayerAbove=ui(i,"g","zerolinelayer-above"),o||(t.xlines=ui(i,"path","xlines-above"),t.ylines=ui(i,"path","ylines-above"),t.overlinesAbove=ui(i,"g","overlines-above"),ui(i,"g","xaxislayer-above"),ui(i,"g","yaxislayer-above"),t.overaxesAbove=ui(i,"g","overaxes-above"),t.xlines=i.select(".xlines-"+s),t.ylines=i.select(".ylines-"+l),t.xaxislayer=i.select(".xaxislayer-"+s),t.yaxislayer=i.select(".yaxislayer-"+l))}else{var p=h.plotgroup,m=a+"-x",g=a+"-y";t.minorGridlayer=h.minorGridlayer,t.gridlayer=h.gridlayer,t.zerolinelayer=h.zerolinelayer,t.zerolinelayerAbove=h.zerolinelayerAbove,ui(h.overlinesBelow,"path",m),ui(h.overlinesBelow,"path",g),ui(h.overaxesBelow,"g",m),ui(h.overaxesBelow,"g",g),t.plot=ui(h.overplot,"g",a),ui(h.overlinesAbove,"path",m),ui(h.overlinesAbove,"path",g),ui(h.overaxesAbove,"g",m),ui(h.overaxesAbove,"g",g),t.xlines=p.select(".overlines-"+s).select("."+m),t.ylines=p.select(".overlines-"+l).select("."+g),t.xaxislayer=p.select(".overaxes-"+s).select("."+m),t.yaxislayer=p.select(".overaxes-"+l).select("."+g)}o||(u||(w5(t.minorGridlayer,"g",t.xaxis._id),w5(t.minorGridlayer,"g",t.yaxis._id),t.minorGridlayer.selectAll("g").map(function(y){return y[0]}).sort(Mf.idSort),w5(t.gridlayer,"g",t.xaxis._id),w5(t.gridlayer,"g",t.yaxis._id),t.gridlayer.selectAll("g").map(function(y){return y[0]}).sort(Mf.idSort)),t.xlines.style("fill","none").classed("crisp",!0),t.ylines.style("fill","none").classed("crisp",!0))}function bX(e,t){if(e){var r={};e.each(function(l){var u=l[0],c=A5.select(this);c.remove(),wX(u,t),r[u]=!0});for(var i in t._plots)for(var a=t._plots[i],n=a.overlays||[],o=0;o{"use strict";var T5=So();AX.exports={hasLines:T5.hasLines,hasMarkers:T5.hasMarkers,hasText:T5.hasText,isBubble:T5.isBubble,attributes:sh(),layoutAttributes:Yx(),supplyDefaults:zY(),crossTraceDefaults:OY(),supplyLayoutDefaults:VY(),calc:mS().calc,crossTraceCalc:mW(),arraysToCalcdata:Yg(),plot:kW(),colorbar:AS(),formatLabels:PW(),style:SS().style,styleOnSelect:SS().styleOnSelect,hoverPoints:BW(),selectPoints:NW(),animatable:!0,moduleType:"trace",name:"scatter",basePlotModule:RS(),categories:["cartesian","svg","symbols","errorBarsOK","showLegend","scatter-like","zoomScale"],meta:{}}});var SX=X((pit,DX)=>{"use strict";var cSe=Qr(),hSe=Vr(),MX=FD(),BS=tt(),fSe=BS.strScale,dSe=BS.strRotate,pSe=BS.strTranslate;DX.exports=function(t,r,i){var a=t.node(),n=MX[i.arrowhead||0],o=MX[i.startarrowhead||0],s=(i.arrowwidth||1)*(i.arrowsize||1),l=(i.arrowwidth||1)*(i.startarrowsize||1),u=r.indexOf("start")>=0,c=r.indexOf("end")>=0,h=n.backoff*s+i.standoff,f=o.backoff*l+i.startstandoff,d,p,m,g;if(a.nodeName==="line"){d={x:+t.attr("x1"),y:+t.attr("y1")},p={x:+t.attr("x2"),y:+t.attr("y2")};var y=d.x-p.x,x=d.y-p.y;if(m=Math.atan2(x,y),g=m+Math.PI,h&&f&&h+f>Math.sqrt(y*y+x*x)){z();return}if(h){if(h*h>y*y+x*x){z();return}var b=h*Math.cos(m),_=h*Math.sin(m);p.x+=b,p.y+=_,t.attr({x2:p.x,y2:p.y})}if(f){if(f*f>y*y+x*x){z();return}var A=f*Math.cos(m),T=f*Math.sin(m);d.x-=A,d.y-=T,t.attr({x1:d.x,y1:d.y})}}else if(a.nodeName==="path"){var M=a.getTotalLength(),S="";if(M{"use strict";var EX=Qr(),qS=mr(),mSe=bn(),Sf=tt(),OS=Sf.strTranslate,ty=ra(),Md=Vr(),ch=xi(),kX=yu(),NS=cn(),VS=vf(),ey=bl(),vSe=qi().arrayEditor,gSe=SX();PX.exports={draw:ySe,drawOne:CX,drawRaw:FX};function ySe(e){var t=e._fullLayout;t._infolayer.selectAll(".annotation").remove();for(var r=0;r2/3?Dt="right":Dt="center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[Dt]}for(var te=!1,re=["x","y"],fe=0;fe1)&&(Ve===Re?(Tt=Me.r2fraction(t["a"+ge]),(Tt<0||Tt>1)&&(te=!0)):te=!0),He=Me._offset+Me.r2p(t[ge]),Se=.5}else{var ve=bt==="domain";ge==="x"?(ie=t[ge],He=ve?Me._offset+Me._length*ie:He=s.l+s.w*ie):(ie=1-t[ge],He=ve?Me._offset+Me._length*ie:He=s.t+s.h*ie),Se=t.showarrow?.5:ie}if(t.showarrow){Ae.head=He;var xe=t["a"+ge];if(ot=Fe*me(.5,t.xanchor)-se*me(.5,t.yanchor),Ve===Re){var je=ty.getRefType(Ve);je==="domain"?(ge==="y"&&(xe=1-xe),Ae.tail=Me._offset+Me._length*xe):je==="paper"?ge==="y"?(xe=1-xe,Ae.tail=s.t+s.h*xe):Ae.tail=s.l+s.w*xe:Ae.tail=Me._offset+Me.r2p(xe),it=ot}else Ae.tail=He+xe,it=ot+xe;Ae.text=Ae.tail+ot;var nt=o[ge==="x"?"width":"height"];if(Re==="paper"&&(Ae.head=Sf.constrain(Ae.head,1,nt-1)),Ve==="pixel"){var Qe=-Math.max(Ae.tail-3,Ae.text),pt=Math.min(Ae.tail+3,Ae.text)-nt;Qe>0?(Ae.tail+=Qe,Ae.text+=Qe):pt>0&&(Ae.tail-=pt,Ae.text-=pt)}Ae.tail+=$e,Ae.head+=$e}else ot=Ue*me(Se,Ne),it=ot,Ae.text=He+ot;Ae.text+=$e,ot+=$e,it+=$e,t["_"+ge+"padplus"]=Ue/2+it,t["_"+ge+"padminus"]=Ue/2-it,t["_"+ge+"size"]=Ue,t["_"+ge+"shift"]=ot}if(te){M.remove();return}var st=0,yt=0;if(t.align!=="left"&&(st=(de-De)*(t.align==="center"?.5:1)),t.valign!=="top"&&(yt=(Ce-ye)*(t.valign==="middle"?.5:1)),oe)Y.select("svg").attr({x:P+st-1,y:P+yt}).call(ch.setClipUrl,B?m:null,e);else{var Ot=P+yt-pe.top,We=P+st-pe.left;V.call(NS.positionText,We,Ot).call(ch.setClipUrl,B?m:null,e)}L.select("rect").call(ch.setRect,P,P,de,Ce),I.call(ch.setRect,S/2,S/2,J-S,ue-S),M.call(ch.setTranslate,Math.round(g.x.text-J/2),Math.round(g.y.text-ue/2)),b.attr({transform:"rotate("+y+","+g.x.text+","+g.y.text+")"});var mt=function(vt,Dt){x.selectAll(".annotation-arrow-g").remove();var Ft=g.x.head,zt=g.y.head,ce=g.x.tail+vt,ke=g.y.tail+Dt,Je=g.x.text+vt,at=g.y.text+Dt,Ar=Sf.rotationXYMatrix(y,Je,at),ti=Sf.apply2DTransform(Ar),gi=Sf.apply2DTransform2(Ar),Li=+I.attr("width"),qr=+I.attr("height"),Cr=Je-.5*Li,ci=Cr+Li,Or=at-.5*qr,Ci=Or+qr,zi=[[Cr,Or,Cr,Ci],[Cr,Ci,ci,Ci],[ci,Ci,ci,Or],[ci,Or,Cr,Or]].map(gi);if(!zi.reduce(function(Hr,Vi){return Hr^!!Sf.segmentsIntersect(Ft,zt,Ft+1e6,zt+1e6,Vi[0],Vi[1],Vi[2],Vi[3])},!1)){zi.forEach(function(Hr){var Vi=Sf.segmentsIntersect(ce,ke,Ft,zt,Hr[0],Hr[1],Hr[2],Hr[3]);Vi&&(ce=Vi.x,ke=Vi.y)});var oa=t.arrowwidth,ka=t.arrowcolor,Wi=t.arrowside,va=x.append("g").style({opacity:Md.opacity(ka)}).classed("annotation-arrow-g",!0),At=va.append("path").attr("d","M"+ce+","+ke+"L"+Ft+","+zt).style("stroke-width",oa+"px").call(Md.stroke,Md.rgb(ka));if(gSe(At,Wi,t),l.annotationPosition&&At.node().parentNode&&!i){var $r=Ft,Er=zt;if(t.standoff){var ai=Math.sqrt(Math.pow(Ft-ce,2)+Math.pow(zt-ke,2));$r+=t.standoff*(ce-Ft)/ai,Er+=t.standoff*(ke-zt)/ai}var Ut=va.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(ce-$r)+","+(ke-Er),transform:OS($r,Er)}).style("stroke-width",oa+6+"px").call(Md.stroke,"rgba(0,0,0,0)").call(Md.fill,"rgba(0,0,0,0)"),Fi,Kr;ey.init({element:Ut.node(),gd:e,prepFn:function(){var Hr=ch.getTranslate(M);Fi=Hr.x,Kr=Hr.y,a&&a.autorange&&f(a._name+".autorange",!0),n&&n.autorange&&f(n._name+".autorange",!0)},moveFn:function(Hr,Vi){var to=ti(Fi,Kr),ro=to[0]+Hr,pn=to[1]+Vi;M.call(ch.setTranslate,ro,pn),d("x",Df(a,Hr,"x",s,t)),d("y",Df(n,Vi,"y",s,t)),t.axref===t.xref&&d("ax",Df(a,Hr,"ax",s,t)),t.ayref===t.yref&&d("ay",Df(n,Vi,"ay",s,t)),va.attr("transform",OS(Hr,Vi)),b.attr({transform:"rotate("+y+","+ro+","+pn+")"})},doneFn:function(){qS.call("_guiRelayout",e,p());var Hr=document.querySelector(".js-notes-box-panel");Hr&&Hr.redraw(Hr.selectedObj)}})}}};if(t.showarrow&&mt(0,0),_){var Ye;ey.init({element:M.node(),gd:e,prepFn:function(){Ye=b.attr("transform")},moveFn:function(vt,Dt){var Ft="pointer";if(t.showarrow)t.axref===t.xref?d("ax",Df(a,vt,"ax",s,t)):d("ax",t.ax+vt),t.ayref===t.yref?d("ay",Df(n,Dt,"ay",s.w,t)):d("ay",t.ay+Dt),mt(vt,Dt);else{if(i)return;var zt,ce;if(a)zt=Df(a,vt,"x",s,t);else{var ke=t._xsize/s.w,Je=t.x+(t._xshift-t.xshift)/s.w-ke/2;zt=ey.align(Je+vt/s.w,ke,0,1,t.xanchor)}if(n)ce=Df(n,Dt,"y",s,t);else{var at=t._ysize/s.h,Ar=t.y-(t._yshift+t.yshift)/s.h-at/2;ce=ey.align(Ar-Dt/s.h,at,0,1,t.yanchor)}d("x",zt),d("y",ce),(!a||!n)&&(Ft=ey.getCursor(a?.5:zt,n?.5:ce,t.xanchor,t.yanchor))}b.attr({transform:OS(vt,Dt)+Ye}),VS(M,Ft)},clickFn:function(vt,Dt){t.captureevents&&e.emit("plotly_clickannotation",T(Dt))},doneFn:function(){VS(M),qS.call("_guiRelayout",e,p());var vt=document.querySelector(".js-notes-box-panel");vt&&vt.redraw(vt.selectedObj)}})}}l.annotationText?V.call(NS.makeEditable,{delegate:M,gd:e}).call(j).on("edit",function(H){t.text=H,this.call(j),d("text",H),a&&a.autorange&&f(a._name+".autorange",!0),n&&n.autorange&&f(n._name+".autorange",!0),qS.call("_guiRelayout",e,p())}):V.call(j)}});var qX=X((vit,BX)=>{"use strict";var IX=tt(),_Se=mr(),LX=qi().arrayEditor;BX.exports={hasClickToShow:xSe,onClick:bSe};function xSe(e,t){var r=RX(e,t);return r.on.length>0||r.explicitOff.length>0}function bSe(e,t){var r=RX(e,t),i=r.on,a=r.off.concat(r.explicitOff),n={},o=e._fullLayout.annotations,s,l;if(i.length||a.length){for(s=0;s{"use strict";var US=tt(),q1=Vr();OX.exports=function(t,r,i,a){a("opacity");var n=a("bgcolor"),o=a("bordercolor"),s=q1.opacity(o);a("borderpad");var l=a("borderwidth"),u=a("showarrow");a("text",u?" ":i._dfltTitle.annotation),a("textangle"),US.coerceFont(a,"font",i.font),a("width"),a("align");var c=a("height");if(c&&a("valign"),u){var h=a("arrowside"),f,d;h.indexOf("end")!==-1&&(f=a("arrowhead"),d=a("arrowsize")),h.indexOf("start")!==-1&&(a("startarrowhead",f),a("startarrowsize",d)),a("arrowcolor",s?r.bordercolor:q1.defaultLine),a("arrowwidth",(s&&l||1)*2),a("standoff"),a("startstandoff")}var p=a("hovertext"),m=i.hoverlabel||{};if(p){var g=a("hoverlabel.bgcolor",m.bgcolor||(q1.opacity(n)?q1.rgb(n):q1.defaultLine)),y=a("hoverlabel.bordercolor",m.bordercolor||q1.contrast(g)),x=US.extendFlat({},m.font);x.color||(x.color=y),US.coerceFont(a,"hoverlabel.font",x)}a("captureevents",!!p)}});var VX=X((yit,NX)=>{"use strict";var jS=tt(),Dd=ra(),wSe=_l(),ASe=GS(),TSe=k1();NX.exports=function(t,r){wSe(t,r,{name:"annotations",handleItemDefaults:MSe})};function MSe(e,t,r){function i(b,_){return jS.coerce(e,t,TSe,b,_)}var a=i("visible"),n=i("clicktoshow");if(a||n){ASe(e,t,r,i);for(var o=t.showarrow,s=["x","y"],l=[-10,-30],u={_fullLayout:r},c=0;c<2;c++){var h=s[c],f=Dd.coerceRef(e,t,u,h,"","paper");if(f!=="paper"){var d=Dd.getFromId(u,f);d._annIndices.push(t._index)}if(Dd.coercePosition(t,u,i,f,h,.5),o){var p="a"+h,m=Dd.coerceRef(e,t,u,p,"pixel",["pixel","paper"]);m!=="pixel"&&m!==f&&(m=t[p]="pixel");var g=m==="pixel"?l[c]:.4;Dd.coercePosition(t,u,i,m,p,g)}i(h+"anchor"),i(h+"shift")}if(jS.noneOrAll(e,t,["x","y"]),o&&jS.noneOrAll(e,t,["ax","ay"]),n){var y=i("xclick"),x=i("yclick");t._xclick=y===void 0?t.x:Dd.cleanPosition(y,u,t.xref),t._yclick=x===void 0?t.y:Dd.cleanPosition(x,u,t.yref)}}}});var jX=X((_it,GX)=>{"use strict";var $S=tt(),Sd=ra(),DSe=M5().draw;GX.exports=function(t){var r=t._fullLayout,i=$S.filterVisible(r.annotations);if(i.length&&t._fullData.length)return $S.syncOrAsync([DSe,SSe],t)};function SSe(e){var t=e._fullLayout;$S.filterVisible(t.annotations).forEach(function(r){var i=Sd.getFromId(e,r.xref),a=Sd.getFromId(e,r.yref),n=Sd.getRefType(r.xref),o=Sd.getRefType(r.yref);r._extremes={},n==="range"&&UX(r,i),o==="range"&&UX(r,a)})}function UX(e,t){var r=t._id,i=r.charAt(0),a=e[i],n=e["a"+i],o=e[i+"ref"],s=e["a"+i+"ref"],l=e["_"+i+"padplus"],u=e["_"+i+"padminus"],c={x:1,y:-1}[i]*e[i+"shift"],h=3*e.arrowsize*e.arrowwidth||0,f=h+c,d=h-c,p=3*e.startarrowsize*e.arrowwidth||0,m=p+c,g=p-c,y;if(s===o){var x=Sd.findExtremes(t,[t.r2c(a)],{ppadplus:f,ppadminus:d}),b=Sd.findExtremes(t,[t.r2c(n)],{ppadplus:Math.max(l,m),ppadminus:Math.max(u,g)});y={min:[x.min[0],b.min[0]],max:[x.max[0],b.max[0]]}}else m=n?m+n:m,g=n?g-n:g,y=Sd.findExtremes(t,[t.r2c(a)],{ppadplus:Math.max(l,f,m),ppadminus:Math.max(u,d,g)});e._extremes[r]=y}});var HX=X((xit,$X)=>{"use strict";var ESe=Nr(),kSe=V_();$X.exports=function(t,r,i,a){r=r||{};var n=i==="log"&&r.type==="linear",o=i==="linear"&&r.type==="log";if(!(n||o))return;var s=t._fullLayout.annotations,l=r._id.charAt(0),u,c;function h(d){var p=u[d],m=null;n?m=kSe(p,r.range):m=Math.pow(10,p),ESe(m)||(m=null),a(c+d,m)}for(var f=0;f{"use strict";var HS=M5(),ZX=qX();YX.exports={moduleType:"component",name:"annotations",layoutAttributes:k1(),supplyLayoutDefaults:VX(),includeBasePlot:Bg()("annotations"),calcAutorange:jX(),draw:HS.draw,drawOne:HS.drawOne,drawRaw:HS.drawRaw,hasClickToShow:ZX.hasClickToShow,onClick:ZX.onClick,convertCoords:HX()}});var D5=X((wit,XX)=>{"use strict";var $i=k1(),CSe=qs().overrideAll,FSe=qi().templatedArray;XX.exports=CSe(FSe("annotation",{visible:$i.visible,x:{valType:"any"},y:{valType:"any"},z:{valType:"any"},ax:{valType:"number"},ay:{valType:"number"},xanchor:$i.xanchor,xshift:$i.xshift,yanchor:$i.yanchor,yshift:$i.yshift,text:$i.text,textangle:$i.textangle,font:$i.font,width:$i.width,height:$i.height,opacity:$i.opacity,align:$i.align,valign:$i.valign,bgcolor:$i.bgcolor,bordercolor:$i.bordercolor,borderpad:$i.borderpad,borderwidth:$i.borderwidth,showarrow:$i.showarrow,arrowcolor:$i.arrowcolor,arrowhead:$i.arrowhead,startarrowhead:$i.startarrowhead,arrowside:$i.arrowside,arrowsize:$i.arrowsize,startarrowsize:$i.startarrowsize,arrowwidth:$i.arrowwidth,standoff:$i.standoff,startstandoff:$i.startstandoff,hovertext:$i.hovertext,hoverlabel:$i.hoverlabel,captureevents:$i.captureevents}),"calc","from-root")});var JX=X((Ait,KX)=>{"use strict";var ZS=tt(),PSe=ra(),ISe=_l(),LSe=GS(),zSe=D5();KX.exports=function(t,r,i){ISe(t,r,{name:"annotations",handleItemDefaults:RSe,fullLayout:i.fullLayout})};function RSe(e,t,r,i){function a(s,l){return ZS.coerce(e,t,zSe,s,l)}function n(s){var l=s+"axis",u={_fullLayout:{}};return u._fullLayout[l]=r[l],PSe.coercePosition(t,u,a,s,s,.5)}var o=a("visible");o&&(LSe(e,t,i.fullLayout,a),n("x"),n("y"),n("z"),ZS.noneOrAll(e,t,["x","y","z"]),t.xref="x",t.yref="y",t.zref="z",a("xanchor"),a("yanchor"),a("xshift"),a("yshift"),t.showarrow&&(t.axref="pixel",t.ayref="pixel",a("ax",-10),a("ay",-30),ZS.noneOrAll(e,t,["ax","ay"])))}});var rK=X((Tit,tK)=>{"use strict";var QX=tt(),eK=ra();tK.exports=function(t){for(var r=t.fullSceneLayout,i=r.annotations,a=0;a{"use strict";function YS(e,t){var r=[0,0,0,0],i,a;for(i=0;i<4;++i)for(a=0;a<4;++a)r[a]+=e[4*i+a]*t[i];return r}function qSe(e,t){var r=YS(e.projection,YS(e.view,YS(e.model,[t[0],t[1],t[2],1])));return r}iK.exports=qSe});var oK=X((Dit,nK)=>{"use strict";var OSe=M5().drawRaw,NSe=aK(),VSe=["x","y","z"];nK.exports=function(t){for(var r=t.fullSceneLayout,i=t.dataScale,a=r.annotations,n=0;n1){s=!0;break}}s?t.fullLayout._infolayer.select(".annotation-"+t.id+'[data-index="'+n+'"]').remove():(o._pdata=NSe(t.glplot.cameraParams,[r.xaxis.r2l(o.x)*i[0],r.yaxis.r2l(o.y)*i[1],r.zaxis.r2l(o.z)*i[2]]),OSe(t.graphDiv,o,n,t.id,o._xa,o._ya))}}});var uK=X((Sit,lK)=>{"use strict";var USe=mr(),sK=tt();lK.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:D5()}}},layoutAttributes:D5(),handleDefaults:JX(),includeBasePlot:GSe,convert:rK(),draw:oK()};function GSe(e,t){var r=USe.subplotsRegistry.gl3d;if(r)for(var i=r.attrRegex,a=Object.keys(e),n=0;n{"use strict";var Eit=(xn(),lt(_n)),cK=oo(),hK=sh().line,jSe=Zc().dash,Tu=Ca().extendFlat,$Se=qi().templatedArray,kit=(zg(),lt(Lg)),O1=Wo(),fK=k1(),{shapeTexttemplateAttrs:HSe,templatefallbackAttrs:ZSe}=tc(),YSe=Ax();dK.exports=$Se("shape",{visible:Tu({},O1.visible,{editType:"calc+arraydraw"}),showlegend:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},legend:Tu({},O1.legend,{editType:"calc+arraydraw"}),legendgroup:Tu({},O1.legendgroup,{editType:"calc+arraydraw"}),legendgrouptitle:{text:Tu({},O1.legendgrouptitle.text,{editType:"calc+arraydraw"}),font:cK({editType:"calc+arraydraw"}),editType:"calc+arraydraw"},legendrank:Tu({},O1.legendrank,{editType:"calc+arraydraw"}),legendwidth:Tu({},O1.legendwidth,{editType:"calc+arraydraw"}),type:{valType:"enumerated",values:["circle","rect","path","line"],editType:"calc+arraydraw"},layer:{valType:"enumerated",values:["below","above","between"],dflt:"above",editType:"arraydraw"},xref:Tu({},fK.xref,{arrayOk:!0}),xsizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},xanchor:{valType:"any",editType:"calc+arraydraw"},x0:{valType:"any",editType:"calc+arraydraw"},x1:{valType:"any",editType:"calc+arraydraw"},x0shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},x1shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},yref:Tu({},fK.yref,{arrayOk:!0}),ysizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},yanchor:{valType:"any",editType:"calc+arraydraw"},y0:{valType:"any",editType:"calc+arraydraw"},y1:{valType:"any",editType:"calc+arraydraw"},y0shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},y1shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},path:{valType:"string",editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},line:{color:Tu({},hK.color,{editType:"arraydraw"}),width:Tu({},hK.width,{editType:"calc+arraydraw"}),dash:Tu({},jSe,{editType:"arraydraw"}),editType:"calc+arraydraw"},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd",editType:"arraydraw"},editable:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},label:{text:{valType:"string",dflt:"",editType:"arraydraw"},texttemplate:HSe({},{keys:Object.keys(YSe)}),texttemplatefallback:ZSe({editType:"arraydraw"}),font:cK({editType:"calc+arraydraw",colorEditType:"arraydraw"}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"],editType:"arraydraw"},textangle:{valType:"angle",dflt:"auto",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],editType:"calc+arraydraw"},padding:{valType:"number",dflt:3,min:0,editType:"arraydraw"},editType:"arraydraw"},editType:"arraydraw"})});var mK=X((Fit,pK)=>{"use strict";var N1=tt(),Ys=ra(),WSe=_l(),XSe=WS(),ry=bf();pK.exports=function(t,r){WSe(t,r,{name:"shapes",handleItemDefaults:JSe})};function KSe(e,t){return e?"bottom":t.indexOf("top")!==-1?"top":t.indexOf("bottom")!==-1?"bottom":"middle"}function JSe(e,t,r){function i(b,_){return N1.coerce(e,t,XSe,b,_)}t._isShape=!0;var a=i("visible");if(!a)return;var n=i("showlegend");i("legend"),i("legendgroup"),n&&(i("legendwidth"),i("legendgrouptitle.text"),N1.coerceFont(i,"legendgrouptitle.font"),i("legendrank"));var o=i("path"),s=o?"path":"rect",l=i("type",s),u=l!=="path";u&&delete t.path,i("editable"),i("layer"),i("opacity"),i("fillcolor"),i("fillrule");var c=i("line.width");c&&(i("line.color"),i("line.dash"));var h=i("xsizemode"),f=i("ysizemode");let d=[.25,.75],p=[0,10];["x","y"].forEach(b=>{var _=b+"anchor",A=b==="x"?h:f,T={_fullLayout:r},M,S,k,P;let I=b+"ref",B=e[I];if(Array.isArray(B)&&B.length>0){let L=ry.countDefiningCoords(l,o,b);P=Ys.coerceRefArray(e,t,T,b,void 0,"paper",L),t["_"+b+"refArray"]=!0}else P=Ys.coerceRef(e,t,T,b,void 0,"paper");if(Array.isArray(P))P.forEach(function(L){Ys.getRefType(L)==="range"&&(M=Ys.getFromId(T,L),M&&M._shapeIndices.indexOf(t._index)===-1&&M._shapeIndices.push(t._index))}),u&&[0,1].forEach(function(L){let z=P[L];Ys.getRefType(z)==="range"?(M=Ys.getFromId(T,z),S=ry.shapePositionToRange(M),k=ry.rangeToShapePosition(M),(M.type==="category"||M.type==="multicategory")&&i(b+L+"shift")):S=k=N1.identity;let V=b+L,j=e[V];if(e[V]=S(e[V],!0),A==="pixel"?i(V,p[L]):Ys.coercePosition(t,T,i,z,V,d[L]),t[V]=k(t[V]),e[V]=j,L===0&&A==="pixel"){let $=e[_];e[_]=S(e[_],!0),Ys.coercePosition(t,T,i,z,_,.25),t[_]=k(t[_]),e[_]=$}});else{if(Ys.getRefType(P)==="range"?(M=Ys.getFromId(T,P),M._shapeIndices.push(t._index),k=ry.rangeToShapePosition(M),S=ry.shapePositionToRange(M),u&&(M.type==="category"||M.type==="multicategory")&&(i(b+"0shift"),i(b+"1shift"))):S=k=N1.identity,u){let z=b+"0",q=b+"1",V=e[z],j=e[q];e[z]=S(e[z],!0),e[q]=S(e[q],!0),A==="pixel"?(i(z,p[0]),i(q,p[1])):(Ys.coercePosition(t,T,i,P,z,d[0]),Ys.coercePosition(t,T,i,P,q,d[1])),t[z]=k(t[z]),t[q]=k(t[q]),e[z]=V,e[q]=j}if(A==="pixel"){let z=e[_];e[_]=S(e[_],!0),Ys.coercePosition(t,T,i,P,_,.25),t[_]=k(t[_]),e[_]=z}}}),u&&N1.noneOrAll(e,t,["x0","x1","y0","y1"]);var m=l==="line",g,y;if(u&&(g=i("label.texttemplate"),i("label.texttemplatefallback")),g||(y=i("label.text")),y||g){i("label.textangle");var x=i("label.textposition",m?"middle":"middle center");i("label.xanchor"),i("label.yanchor",KSe(m,x)),i("label.padding"),N1.coerceFont(i,"label.font",r.font)}}});var yK=X((Pit,gK)=>{"use strict";var QSe=Vr(),vK=tt();function e9e(e,t){return e?"bottom":t.indexOf("top")!==-1?"top":t.indexOf("bottom")!==-1?"bottom":"middle"}gK.exports=function(t,r,i){i("newshape.visible"),i("newshape.name"),i("newshape.showlegend"),i("newshape.legend"),i("newshape.legendwidth"),i("newshape.legendgroup"),i("newshape.legendgrouptitle.text"),vK.coerceFont(i,"newshape.legendgrouptitle.font"),i("newshape.legendrank"),i("newshape.drawdirection"),i("newshape.layer"),i("newshape.fillcolor"),i("newshape.fillrule"),i("newshape.opacity");var a=i("newshape.line.width");if(a){var n=(t||{}).plot_bgcolor||"#FFF";i("newshape.line.color",QSe.contrast(n)),i("newshape.line.dash")}var o=t.dragmode==="drawline",s=i("newshape.label.text"),l=i("newshape.label.texttemplate");if(i("newshape.label.texttemplatefallback"),s||l){i("newshape.label.textangle");var u=i("newshape.label.textposition",o?"middle":"middle center");i("newshape.label.xanchor"),i("newshape.label.yanchor",e9e(o,u)),i("newshape.label.padding"),vK.coerceFont(i,"newshape.label.font",r.font)}i("activeshape.fillcolor"),i("activeshape.opacity")}});var MK=X((Iit,TK)=>{"use strict";var XS=tt(),Il=ra(),bc=(pg(),lt(dg)),KS=bf();TK.exports=function(t){var r=t._fullLayout,i=XS.filterVisible(r.shapes);if(!(!i.length||!t._fullData.length))for(var a=0;a{o=Il.getFromId(t,h),n._extremes[o._id]=Il.findExtremes(o,f,xK(n))})}else n.xref!=="paper"&&l!=="domain"&&(o=Il.getFromId(t,n.xref),s=wK(o,n,bc.paramIsX),s&&(n._extremes[o._id]=Il.findExtremes(o,s,xK(n))));if(u==="array"){let c=_K(t,n,"y");Object.entries(c).forEach(([h,f])=>{o=Il.getFromId(t,h),n._extremes[o._id]=Il.findExtremes(o,f,bK(n))})}else n.yref!=="paper"&&u!=="domain"&&(o=Il.getFromId(t,n.yref),s=wK(o,n,bc.paramIsY),s&&(n._extremes[o._id]=Il.findExtremes(o,s,bK(n))))}};function _K(e,t,r){let i=t[r+"ref"],a=r==="x"?bc.paramIsX:bc.paramIsY;function n(h,f){h==="paper"||Il.getRefType(h)==="domain"||(o[h]||(o[h]=[]),o[h].push(f))}let o={};if(t.type==="path"&&t.path){let h=t.path.match(bc.segmentRE)||[];for(var s=0,l=0;lp&&(n(i[s],m[p]),s++)}}else n(i[0],t[r+"0"]),n(i[1],t[r+"1"]);let u={};for(let h in o){let f=Il.getFromId(e,h);if(f){var c=f.type==="category"||f.type==="multicategory"?f.r2c:f.d2c;f.type==="date"&&(c=KS.decodeDate(c)),u[f._id]=o[h].map(c)}}return u}function xK(e){return AK(e.line.width,e.xsizemode,e.x0,e.x1,e.path,!1)}function bK(e){return AK(e.line.width,e.ysizemode,e.y0,e.y1,e.path,!0)}function AK(e,t,r,i,a,n){var o=e/2,s=n;if(t==="pixel"){var l=a?KS.extractPathCoords(a,n?bc.paramIsY:bc.paramIsX):[r,i],u=XS.aggNums(Math.max,null,l),c=XS.aggNums(Math.min,null,l),h=c<0?Math.abs(c)+o:o,f=u>0?u+o:o;return{ppad:o,ppadplus:s?h:f,ppadminus:s?f:h}}else return{ppad:o}}function wK(e,t,r){var i=e._id.charAt(0)==="x"?"x":"y",a=e.type==="category"||e.type==="multicategory",n,o,s=0,l=0,u=a?e.r2c:e.d2c,c=t[i+"sizemode"]==="scaled";if(c?(n=t[i+"0"],o=t[i+"1"],a&&(s=t[i+"0shift"],l=t[i+"1shift"])):(n=t[i+"anchor"],o=t[i+"anchor"]),n!==void 0)return[u(n)+s,u(o)+l];if(t.path){var h=1/0,f=-1/0,d=t.path.match(bc.segmentRE),p,m,g,y,x;for(e.type==="date"&&(u=KS.decodeDate(u)),p=0;pf&&(f=x)));if(f>=h)return[h,f]}}});var EK=X((Lit,SK)=>{"use strict";var DK=f3();SK.exports={moduleType:"component",name:"shapes",layoutAttributes:WS(),supplyLayoutDefaults:mK(),supplyDrawNewShapeDefaults:yK(),includeBasePlot:Bg()("shapes"),calcAutorange:MK(),draw:DK.draw,drawOne:DK.drawOne}});var JS=X((Rit,CK)=>{"use strict";var kK=(xn(),lt(_n)),t9e=qi().templatedArray,zit=(zg(),lt(Lg));CK.exports=t9e("image",{visible:{valType:"boolean",dflt:!0,editType:"arraydraw"},source:{valType:"string",editType:"arraydraw"},layer:{valType:"enumerated",values:["below","above"],dflt:"above",editType:"arraydraw"},sizex:{valType:"number",dflt:0,editType:"arraydraw"},sizey:{valType:"number",dflt:0,editType:"arraydraw"},sizing:{valType:"enumerated",values:["fill","contain","stretch"],dflt:"contain",editType:"arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},x:{valType:"any",dflt:0,editType:"arraydraw"},y:{valType:"any",dflt:0,editType:"arraydraw"},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left",editType:"arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],dflt:"top",editType:"arraydraw"},xref:{valType:"enumerated",values:["paper",kK.idRegex.x.toString()],dflt:"paper",editType:"arraydraw"},yref:{valType:"enumerated",values:["paper",kK.idRegex.y.toString()],dflt:"paper",editType:"arraydraw"},editType:"arraydraw"})});var PK=X((Bit,FK)=>{"use strict";var r9e=tt(),QS=ra(),i9e=_l(),a9e=JS(),n9e="images";FK.exports=function(t,r){var i={name:n9e,handleItemDefaults:o9e};i9e(t,r,i)};function o9e(e,t,r){function i(f,d){return r9e.coerce(e,t,a9e,f,d)}var a=i("source"),n=i("visible",!!a);if(!n)return t;i("layer"),i("xanchor"),i("yanchor"),i("sizex"),i("sizey"),i("sizing"),i("opacity");for(var o={_fullLayout:r},s=["x","y"],l=0;l<2;l++){var u=s[l],c=QS.coerceRef(e,t,o,u,"paper",void 0);if(c!=="paper"){var h=QS.getFromId(o,c);h._imgIndices.push(t._index)}QS.coercePosition(t,o,i,c,u,0)}return t}});var RK=X((qit,zK)=>{"use strict";var IK=Qr(),s9e=xi(),V1=ra(),LK=un(),l9e=(lf(),lt(sf));zK.exports=function(t){var r=t._fullLayout,i=[],a={},n=[],o,s;for(s=0;s{"use strict";var BK=Nr(),u9e=V_();qK.exports=function(t,r,i,a){r=r||{};var n=i==="log"&&r.type==="linear",o=i==="linear"&&r.type==="log";if(n||o){for(var s=t._fullLayout.images,l=r._id.charAt(0),u,c,h=0;h{"use strict";NK.exports={moduleType:"component",name:"images",layoutAttributes:JS(),supplyLayoutDefaults:PK(),includeBasePlot:Bg()("images"),draw:RK(),convertCoords:OK()}});var S5={};Yi(S5,{activeColor:()=>L9e,arrowOffsetX:()=>F9e,arrowPadX:()=>D9e,arrowSymbol:()=>R9e,autoMarginIdRoot:()=>b9e,blankHeaderOpts:()=>w9e,buttonClassName:()=>g9e,containerClassName:()=>h9e,dropdownButtonClassName:()=>v9e,dropdownButtonGroupClassName:()=>m9e,gapButton:()=>I9e,gapButtonHeader:()=>P9e,headerArrowClassName:()=>p9e,headerClassName:()=>d9e,headerGroupClassName:()=>f9e,hoverColor:()=>z9e,itemRectClassName:()=>y9e,itemTextClassName:()=>_9e,menuIndexAttrName:()=>x9e,minHeight:()=>T9e,minWidth:()=>A9e,name:()=>c9e,rx:()=>S9e,ry:()=>E9e,textOffsetX:()=>k9e,textOffsetY:()=>C9e,textPadX:()=>M9e});var c9e,h9e,f9e,d9e,p9e,m9e,v9e,g9e,y9e,_9e,x9e,b9e,w9e,A9e,T9e,M9e,D9e,S9e,E9e,k9e,C9e,F9e,P9e,I9e,L9e,z9e,R9e,E5=Gi(()=>{"use strict";c9e="updatemenus",h9e="updatemenu-container",f9e="updatemenu-header-group",d9e="updatemenu-header",p9e="updatemenu-header-arrow",m9e="updatemenu-dropdown-button-group",v9e="updatemenu-dropdown-button",g9e="updatemenu-button",y9e="updatemenu-item-rect",_9e="updatemenu-item-text",x9e="updatemenu-active-index",b9e="updatemenu-",w9e={label:" "},A9e=30,T9e=30,M9e=24,D9e=16,S9e=2,E9e=2,k9e=12,C9e=3,F9e=4,P9e=5,I9e=2,L9e="#F4FAFF",z9e="#F4FAFF",R9e={left:"\u25C4",right:"\u25BA",up:"\u25B2",down:"\u25BC"}});var e9=X((Vit,GK)=>{"use strict";var B9e=oo(),q9e=ec(),O9e=Ca().extendFlat,N9e=qs().overrideAll,V9e=Tx(),UK=qi().templatedArray,U9e=UK("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}});GK.exports=N9e(UK("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:U9e,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:O9e(V9e({editType:"arraydraw"}),{}),font:B9e({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:q9e.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")});var ZK=X((Uit,HK)=>{"use strict";var k5=tt(),jK=_l(),$K=e9(),G9e=(E5(),lt(S5)),j9e=G9e.name,$9e=$K.buttons;HK.exports=function(t,r){var i={name:j9e,handleItemDefaults:H9e};jK(t,r,i)};function H9e(e,t,r){function i(o,s){return k5.coerce(e,t,$K,o,s)}var a=jK(e,t,{name:"buttons",handleItemDefaults:Z9e}),n=i("visible",a.length>0);n&&(i("active"),i("direction"),i("type"),i("showactive"),i("x"),i("y"),k5.noneOrAll(e,t,["x","y"]),i("xanchor"),i("yanchor"),i("pad.t"),i("pad.r"),i("pad.b"),i("pad.l"),k5.coerceFont(i,"font",r.font),i("bgcolor",r.paper_bgcolor),i("bordercolor"),i("borderwidth"))}function Z9e(e,t){function r(a,n){return k5.coerce(e,t,$9e,a,n)}var i=r("visible",e.method==="skip"||Array.isArray(e.args));i&&(r("method"),r("args"),r("args2"),r("label"),r("execute"))}});var XK=X((Git,WK)=>{"use strict";WK.exports=xa;var Mu=Qr(),YK=Vr(),U1=xi(),C5=tt();function xa(e,t,r){this.gd=e,this.container=t,this.id=r,this.position=null,this.translateX=null,this.translateY=null,this.hbar=null,this.vbar=null,this.bg=this.container.selectAll("rect.scrollbox-bg").data([0]),this.bg.exit().on(".drag",null).on("wheel",null).remove(),this.bg.enter().append("rect").classed("scrollbox-bg",!0).style("pointer-events","all").attr({opacity:0,x:0,y:0,width:0,height:0})}xa.barWidth=2;xa.barLength=20;xa.barRadius=2;xa.barPad=1;xa.barColor="#808BA4";xa.prototype.enable=function(t,r,i){var a=this.gd._fullLayout,n=a.width,o=a.height;this.position=t;var s=this.position.l,l=this.position.w,u=this.position.t,c=this.position.h,h=this.position.direction,f=h==="down",d=h==="left",p=h==="right",m=h==="up",g=l,y=c,x,b,_,A;!f&&!d&&!p&&!m&&(this.position.direction="down",f=!0);var T=f||m;T?(x=s,b=x+g,f?(_=u,A=Math.min(_+y,o),y=A-_):(A=u+y,_=Math.max(A-y,0),y=A-_)):(_=u,A=_+y,d?(b=s+g,x=Math.max(b-g,0),g=b-x):(x=s,b=Math.min(x+g,n),g=b-x)),this._box={l:x,t:_,w:g,h:y};var M=l>g,S=xa.barLength+2*xa.barPad,k=xa.barWidth+2*xa.barPad,P=s,I=u+c;I+k>o&&(I=o-k);var B=this.container.selectAll("rect.scrollbar-horizontal").data(M?[0]:[]);B.exit().on(".drag",null).remove(),B.enter().append("rect").classed("scrollbar-horizontal",!0).call(YK.fill,xa.barColor),M?(this.hbar=B.attr({rx:xa.barRadius,ry:xa.barRadius,x:P,y:I,width:S,height:k}),this._hbarXMin=P+S/2,this._hbarTranslateMax=g-S):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var L=c>y,z=xa.barWidth+2*xa.barPad,q=xa.barLength+2*xa.barPad,V=s+l,j=u;V+z>n&&(V=n-z);var $=this.container.selectAll("rect.scrollbar-vertical").data(L?[0]:[]);$.exit().on(".drag",null).remove(),$.enter().append("rect").classed("scrollbar-vertical",!0).call(YK.fill,xa.barColor),L?(this.vbar=$.attr({rx:xa.barRadius,ry:xa.barRadius,x:V,y:j,width:z,height:q}),this._vbarYMin=j+q/2,this._vbarTranslateMax=y-q):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var H=this.id,Z=x-.5,Y=L?b+z+.5:b+.5,oe=_-.5,pe=M?A+k+.5:A+.5,De=a._topdefs.selectAll("#"+H).data(M||L?[0]:[]);if(De.exit().remove(),De.enter().append("clipPath").attr("id",H).append("rect"),M||L?(this._clipRect=De.select("rect").attr({x:Math.floor(Z),y:Math.floor(oe),width:Math.ceil(Y)-Math.floor(Z),height:Math.ceil(pe)-Math.floor(oe)}),this.container.call(U1.setClipUrl,H,this.gd),this.bg.attr({x:s,y:u,width:l,height:c})):(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(U1.setClipUrl,null),delete this._clipRect),M||L){var ye=Mu.behavior.drag().on("dragstart",function(){Mu.event.sourceEvent.preventDefault()}).on("drag",this._onBoxDrag.bind(this));this.container.on("wheel",null).on("wheel",this._onBoxWheel.bind(this)).on(".drag",null).call(ye);var de=Mu.behavior.drag().on("dragstart",function(){Mu.event.sourceEvent.preventDefault(),Mu.event.sourceEvent.stopPropagation()}).on("drag",this._onBarDrag.bind(this));M&&this.hbar.on(".drag",null).call(de),L&&this.vbar.on(".drag",null).call(de)}this.setTranslate(r,i)};xa.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(U1.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)};xa.prototype._onBoxDrag=function(){var t=this.translateX,r=this.translateY;this.hbar&&(t-=Mu.event.dx),this.vbar&&(r-=Mu.event.dy),this.setTranslate(t,r)};xa.prototype._onBoxWheel=function(){var t=this.translateX,r=this.translateY;this.hbar&&(t+=Mu.event.deltaY),this.vbar&&(r+=Mu.event.deltaY),this.setTranslate(t,r)};xa.prototype._onBarDrag=function(){var t=this.translateX,r=this.translateY;if(this.hbar){var i=t+this._hbarXMin,a=i+this._hbarTranslateMax,n=C5.constrain(Mu.event.x,i,a),o=(n-i)/(a-i),s=this.position.w-this._box.w;t=o*s}if(this.vbar){var l=r+this._vbarYMin,u=l+this._vbarTranslateMax,c=C5.constrain(Mu.event.y,l,u),h=(c-l)/(u-l),f=this.position.h-this._box.h;r=h*f}this.setTranslate(t,r)};xa.prototype.setTranslate=function(t,r){var i=this.position.w-this._box.w,a=this.position.h-this._box.h;if(t=C5.constrain(t||0,0,i),r=C5.constrain(r||0,0,a),this.translateX=t,this.translateY=r,this.container.call(U1.setTranslate,this._box.l-this.position.l-t,this._box.t-this.position.t-r),this._clipRect&&this._clipRect.attr({x:Math.floor(this.position.l+t-.5),y:Math.floor(this.position.t+r-.5)}),this.hbar){var n=t/i;this.hbar.call(U1.setTranslate,t+n*this._hbarTranslateMax,r)}if(this.vbar){var o=r/a;this.vbar.call(U1.setTranslate,t,r+o*this._vbarTranslateMax)}}});var oJ=X((jit,nJ)=>{"use strict";var G1=Qr(),iy=bn(),ay=Vr(),j1=xi(),Ws=tt(),F5=cn(),Y9e=qi().arrayEditor,JK=(uo(),lt(lo)).LINE_SPACING,fr=(E5(),lt(S5)),W9e=XK();nJ.exports=function(t){var r=t._fullLayout,i=Ws.filterVisible(r[fr.name]);function a(f){iy.autoMargin(t,iJ(f))}var n=r._menulayer.selectAll("g."+fr.containerClassName).data(i.length>0?[0]:[]);if(n.enter().append("g").classed(fr.containerClassName,!0).style("cursor","pointer"),n.exit().each(function(){G1.select(this).selectAll("g."+fr.headerGroupClassName).each(a)}).remove(),i.length!==0){var o=n.selectAll("g."+fr.headerGroupClassName).data(i,X9e);o.enter().append("g").classed(fr.headerGroupClassName,!0);for(var s=Ws.ensureSingle(n,"g",fr.dropdownButtonGroupClassName,function(f){f.style("pointer-events","all")}),l=0;l{"use strict";var iEe=(E5(),lt(S5));sJ.exports={moduleType:"component",name:iEe.name,layoutAttributes:e9(),supplyLayoutDefaults:ZK(),draw:oJ()}});var oy={};Yi(oy,{arrowOffsetX:()=>AEe,autoMarginIdRoot:()=>_Ee,containerClassName:()=>nEe,currentValueClass:()=>vEe,currentValueInset:()=>XEe,currentValuePadding:()=>WEe,gripBgActiveColor:()=>OEe,gripBgColor:()=>qEe,gripBorder:()=>zEe,gripBorderColor:()=>BEe,gripBorderWidth:()=>REe,gripHeight:()=>LEe,gripRadius:()=>PEe,gripRectClass:()=>cEe,gripWidth:()=>IEe,groupClassName:()=>oEe,inputAreaClass:()=>sEe,inputProxyClass:()=>fEe,labelClass:()=>mEe,labelGroupClass:()=>pEe,labelOffset:()=>VEe,labelPadding:()=>NEe,labelsClass:()=>dEe,menuIndexAttrName:()=>yEe,minHeight:()=>bEe,minWidth:()=>xEe,minorTickColor:()=>ZEe,minorTickLength:()=>YEe,minorTickOffset:()=>HEe,name:()=>aEe,railBgColor:()=>kEe,railBorder:()=>DEe,railBorderColor:()=>EEe,railBorderWidth:()=>SEe,railHeight:()=>gEe,railInset:()=>CEe,railRadius:()=>TEe,railRectClass:()=>lEe,railTouchRectClass:()=>uEe,railWidth:()=>MEe,stepInset:()=>FEe,textPadX:()=>wEe,tickColor:()=>GEe,tickLength:()=>$Ee,tickOffset:()=>jEe,tickRectClass:()=>hEe,tickWidth:()=>UEe});var aEe,nEe,oEe,sEe,lEe,uEe,cEe,hEe,fEe,dEe,pEe,mEe,vEe,gEe,yEe,_Ee,xEe,bEe,wEe,AEe,TEe,MEe,DEe,SEe,EEe,kEe,CEe,FEe,PEe,IEe,LEe,zEe,REe,BEe,qEe,OEe,NEe,VEe,UEe,GEe,jEe,$Ee,HEe,ZEe,YEe,WEe,XEe,sy=Gi(()=>{"use strict";aEe="sliders",nEe="slider-container",oEe="slider-group",sEe="slider-input-area",lEe="slider-rail-rect",uEe="slider-rail-touch-rect",cEe="slider-grip-rect",hEe="slider-tick-rect",fEe="slider-input-proxy",dEe="slider-labels",pEe="slider-label-group",mEe="slider-label",vEe="slider-current-value",gEe=5,yEe="slider-active-index",_Ee="slider-",xEe=30,bEe=30,wEe=40,AEe=4,TEe=2,MEe=5,DEe=4,SEe=1,EEe="#bec8d9",kEe="#f8fafc",CEe=8,FEe=10,PEe=10,IEe=20,LEe=20,zEe=20,REe=1,BEe="#bec8d9",qEe="#f6f8fa",OEe="#dbdde0",NEe=8,VEe=0,UEe=1,GEe="#333",jEe=25,$Ee=7,HEe=25,ZEe="#333",YEe=4,WEe=8,XEe=0});var a9=X((Hit,hJ)=>{"use strict";var uJ=oo(),KEe=Tx(),JEe=Ca().extendDeepAll,QEe=qs().overrideAll,eke=zv(),cJ=qi().templatedArray,Ed=(sy(),lt(oy)),tke=cJ("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}});hJ.exports=QEe(cJ("slider",{visible:{valType:"boolean",dflt:!0},active:{valType:"number",min:0,dflt:0},steps:tke,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:JEe(KEe({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:eke.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:uJ({})},font:uJ({}),activebgcolor:{valType:"color",dflt:Ed.gripBgActiveColor},bgcolor:{valType:"color",dflt:Ed.railBgColor},bordercolor:{valType:"color",dflt:Ed.railBorderColor},borderwidth:{valType:"number",min:0,dflt:Ed.railBorderWidth},ticklen:{valType:"number",min:0,dflt:Ed.tickLength},tickcolor:{valType:"color",dflt:Ed.tickColor},tickwidth:{valType:"number",min:0,dflt:1},minorticklen:{valType:"number",min:0,dflt:Ed.minorTickLength}}),"arraydraw","from-root")});var mJ=X((Zit,pJ)=>{"use strict";var $1=tt(),fJ=_l(),dJ=a9(),rke=(sy(),lt(oy)),ike=rke.name,ake=dJ.steps;pJ.exports=function(t,r){fJ(t,r,{name:ike,handleItemDefaults:nke})};function nke(e,t,r){function i(h,f){return $1.coerce(e,t,dJ,h,f)}for(var a=fJ(e,t,{name:"steps",handleItemDefaults:oke}),n=0,o=0;o{"use strict";var Du=Qr(),P5=bn(),Ef=Vr(),Su=xi(),Xs=tt(),ske=Xs.strTranslate,ly=cn(),lke=qi().arrayEditor,Dr=(sy(),lt(oy)),s9=(uo(),lt(lo)),yJ=s9.LINE_SPACING,n9=s9.FROM_TL,o9=s9.FROM_BR;TJ.exports=function(t){var r=t._context.staticPlot,i=t._fullLayout,a=uke(i,t),n=i._infolayer.selectAll("g."+Dr.containerClassName).data(a.length>0?[0]:[]);n.enter().append("g").classed(Dr.containerClassName,!0).style("cursor",r?null:"ew-resize");function o(c){c._commandObserver&&(c._commandObserver.remove(),delete c._commandObserver),P5.autoMargin(t,_J(c))}if(n.exit().each(function(){Du.select(this).selectAll("g."+Dr.groupClassName).each(o)}).remove(),a.length!==0){var s=n.selectAll("g."+Dr.groupClassName).data(a,cke);s.enter().append("g").classed(Dr.groupClassName,!0),s.exit().each(o).remove();for(var l=0;l0&&(s=s.transition().duration(t.transition.duration).ease(t.transition.easing)),s.attr("transform",ske(o-Dr.gripWidth*.5,t._dims.currentValueTotalHeight))}}function l9(e,t){var r=e._dims;return r.inputAreaStart+Dr.stepInset+(r.inputAreaLength-2*Dr.stepInset)*Math.min(1,Math.max(0,t))}function gJ(e,t){var r=e._dims;return Math.min(1,Math.max(0,(t-Dr.stepInset-r.inputAreaStart)/(r.inputAreaLength-2*Dr.stepInset-2*r.inputAreaStart)))}function gke(e,t,r){var i=r._dims,a=Xs.ensureSingle(e,"rect",Dr.railTouchRectClass,function(n){n.call(wJ,t,e,r).style("pointer-events","all")});a.attr({width:i.inputAreaLength,height:Math.max(i.inputAreaWidth,Dr.tickOffset+r.ticklen+i.labelHeight)}).call(Ef.fill,r.bgcolor).attr("opacity",0),Su.setTranslate(a,0,i.currentValueTotalHeight)}function yke(e,t){var r=t._dims,i=r.inputAreaLength-Dr.railInset*2,a=Xs.ensureSingle(e,"rect",Dr.railRectClass);a.attr({width:i,height:Dr.railWidth,rx:Dr.railRadius,ry:Dr.railRadius,"shape-rendering":"crispEdges"}).call(Ef.stroke,t.bordercolor).call(Ef.fill,t.bgcolor).style("stroke-width",t.borderwidth+"px"),Su.setTranslate(a,Dr.railInset,(r.inputAreaWidth-Dr.railWidth)*.5+r.currentValueTotalHeight)}});var SJ=X((Wit,DJ)=>{"use strict";var _ke=(sy(),lt(oy));DJ.exports={moduleType:"component",name:_ke.name,layoutAttributes:a9(),supplyLayoutDefaults:mJ(),draw:MJ()}});var L5=X((Xit,kJ)=>{"use strict";var EJ=ec();kJ.exports={bgcolor:{valType:"color",dflt:EJ.background,editType:"plot"},bordercolor:{valType:"color",dflt:EJ.defaultLine,editType:"plot"},borderwidth:{valType:"integer",dflt:0,min:0,editType:"plot"},autorange:{valType:"boolean",dflt:!0,editType:"calc",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},range:{valType:"info_array",items:[{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}},{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}}],editType:"calc",impliedEdits:{autorange:!1}},thickness:{valType:"number",dflt:.15,min:0,max:1,editType:"plot"},visible:{valType:"boolean",dflt:!0,editType:"calc"},editType:"calc"}});var u9=X((Kit,CJ)=>{"use strict";CJ.exports={_isSubplotObj:!0,rangemode:{valType:"enumerated",values:["auto","fixed","match"],dflt:"match",editType:"calc"},range:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},editType:"calc"}});var z5={};Yi(z5,{bgClassName:()=>wke,containerClassName:()=>bke,extraPad:()=>$ke,grabAreaCursor:()=>Nke,grabAreaFill:()=>Oke,grabAreaMaxClassName:()=>Fke,grabAreaMinClassName:()=>Eke,grabAreaWidth:()=>Vke,grabberMaxClassName:()=>Cke,grabberMinClassName:()=>Ske,handleMaxClassName:()=>Pke,handleMinClassName:()=>kke,handleRadius:()=>Gke,handleStrokeWidth:()=>jke,handleWidth:()=>Uke,maskColor:()=>zke,maskMaxClassName:()=>Mke,maskMaxOppAxisClassName:()=>Lke,maskMinClassName:()=>Tke,maskMinOppAxisClassName:()=>Ike,maskOppAxisColor:()=>Rke,name:()=>xke,rangePlotClassName:()=>Ake,slideBoxClassName:()=>Dke,slideBoxCursor:()=>qke,slideBoxFill:()=>Bke});var xke,bke,wke,Ake,Tke,Mke,Dke,Ske,Eke,kke,Cke,Fke,Pke,Ike,Lke,zke,Rke,Bke,qke,Oke,Nke,Vke,Uke,Gke,jke,$ke,R5=Gi(()=>{"use strict";xke="rangeslider",bke="rangeslider-container",wke="rangeslider-bg",Ake="rangeslider-rangeplot",Tke="rangeslider-mask-min",Mke="rangeslider-mask-max",Dke="rangeslider-slidebox",Ske="rangeslider-grabber-min",Eke="rangeslider-grabarea-min",kke="rangeslider-handle-min",Cke="rangeslider-grabber-max",Fke="rangeslider-grabarea-max",Pke="rangeslider-handle-max",Ike="rangeslider-mask-min-opp-axis",Lke="rangeslider-mask-max-opp-axis",zke="rgba(0,0,0,0.4)",Rke="rgba(0,0,0,0.2)",Bke="transparent",qke="ew-resize",Oke="transparent",Nke="col-resize",Vke=10,Uke=4,Gke=1,jke=1,$ke=15});var IJ=X(q5=>{"use strict";var Hke=un(),Zke=cn(),FJ=(R5(),lt(z5)),Yke=(uo(),lt(lo)).LINE_SPACING,B5=FJ.name;function PJ(e){var t=e&&e[B5];return t&&t.visible}q5.isVisible=PJ;q5.makeData=function(e){for(var t=Hke.list({_fullLayout:e},"x",!0),r=e.margin,i=[],a=0;a{"use strict";var O5=tt(),LJ=qi(),zJ=un(),Wke=L5(),Xke=u9();RJ.exports=function(t,r,i){var a=t[i],n=r[i];if(!(a.rangeslider||r._requestRangeslider[n._id]))return;O5.isPlainObject(a.rangeslider)||(a.rangeslider={});var o=a.rangeslider,s=LJ.newContainer(n,"rangeslider");function l(A,T){return O5.coerce(o,s,Wke,A,T)}var u,c;function h(A,T){return O5.coerce(u,c,Xke,A,T)}var f=l("visible");if(f){l("bgcolor",r.plot_bgcolor),l("bordercolor"),l("borderwidth"),l("thickness"),l("autorange",!n.isValidRange(o.range)),l("range");var d=r._subplots;if(d)for(var p=d.cartesian.filter(function(A){return A.slice(0,Math.max(0,A.indexOf("y")))===zJ.name2id(i)}).map(function(A){return A.slice(A.indexOf("y"),A.length)}),m=O5.simpleMap(p,zJ.id2name),g=0;g{"use strict";var Kke=un().list,Jke=Qv().getAutoRange,Qke=(R5(),lt(z5));qJ.exports=function(t){for(var r=Kke(t,"x",!0),i=0;i{"use strict";var N5=Qr(),eCe=mr(),tCe=bn(),Ia=tt(),V5=Ia.strTranslate,VJ=xi(),kf=Vr(),rCe=Kv(),iCe=RS(),c9=un(),aCe=bl(),nCe=vf(),Br=(R5(),lt(z5));UJ.exports=function(e){for(var t=e._fullLayout,r=t._rangeSliderData,i=0;i=$.max)V=I[j+1];else if(q<$.min)break}return V+P*q},M=0;M=$.pmax)V=I[j+1];else if(q<$.pmin)break}return(q-V)/P}}}if(h.rangemode!=="match"){var B=c.r2l(h.range[0]),L=c.r2l(h.range[1]),z=L-B;u.d2pOppAxis=function(q){return(q-B)/z*u._height}}l.call(uCe,e,s,u).call(cCe,e,s,u).call(hCe,e,s,u).call(dCe,e,s,u,h).call(pCe,e,s,u).call(mCe,e,s,u),oCe(l,e,s,u),lCe(l,e,s,u,c,h),s.side==="bottom"&&rCe.draw(e,s._id+"title",{propContainer:s,propName:s._name+".title.text",placeholder:t._dfltTitle.x,attributes:{x:s._offset+s._length/2,y:x+u._height+u._offsetShift+10+1.5*s.title.font.size,"text-anchor":"middle"}})}))};function NJ(e){return typeof e.clientX=="number"?e.clientX:e.touches&&e.touches.length>0?e.touches[0].clientX:0}function oCe(e,t,r,i){if(t._context.staticPlot)return;var a=e.select("rect."+Br.slideBoxClassName).node(),n=e.select("rect."+Br.grabAreaMinClassName).node(),o=e.select("rect."+Br.grabAreaMaxClassName).node();function s(){var l=N5.event,u=l.target,c=NJ(l),h=c-e.node().getBoundingClientRect().left,f=i.d2p(r._rl[0]),d=i.d2p(r._rl[1]),p=aCe.coverSlip();this.addEventListener("touchmove",m),this.addEventListener("touchend",g),p.addEventListener("mousemove",m),p.addEventListener("mouseup",g);function m(y){var x=NJ(y),b=+x-c,_,A,T;switch(u){case a:if(T="ew-resize",f+b>r._length||d+b<0)return;_=f+b,A=d+b;break;case n:if(T="col-resize",f+b>r._length)return;_=f+b,A=d;break;case o:if(T="col-resize",d+b<0)return;_=f,A=d+b;break;default:T="ew-resize",_=h,A=h+b;break}if(A<_){var M=A;A=_,_=M}i._pixelMin=_,i._pixelMax=A,nCe(N5.select(p),T),sCe(e,t,r,i)}function g(){p.removeEventListener("mousemove",m),p.removeEventListener("mouseup",g),this.removeEventListener("touchmove",m),this.removeEventListener("touchend",g),Ia.removeElement(p)}}e.on("mousedown",s),e.on("touchstart",s)}function sCe(e,t,r,i){function a(s){return r.l2r(Ia.constrain(s,i._rl[0],i._rl[1]))}var n=a(i.p2d(i._pixelMin)),o=a(i.p2d(i._pixelMax));window.requestAnimationFrame(function(){eCe.call("_guiRelayout",t,r._name+".range",[n,o])})}function lCe(e,t,r,i,a,n){var o=Br.handleWidth/2;function s(y){return Ia.constrain(y,0,i._width)}function l(y){return Ia.constrain(y,0,i._height)}function u(y){return Ia.constrain(y,-o,i._width+o)}var c=s(i.d2p(r._rl[0])),h=s(i.d2p(r._rl[1]));if(e.select("rect."+Br.slideBoxClassName).attr("x",c).attr("width",h-c),e.select("rect."+Br.maskMinClassName).attr("width",c),e.select("rect."+Br.maskMaxClassName).attr("x",h).attr("width",i._width-h),n.rangemode!=="match"){var f=i._height-l(i.d2pOppAxis(a._rl[1])),d=i._height-l(i.d2pOppAxis(a._rl[0]));e.select("rect."+Br.maskMinOppAxisClassName).attr("x",c).attr("height",f).attr("width",h-c),e.select("rect."+Br.maskMaxOppAxisClassName).attr("x",c).attr("y",d).attr("height",i._height-d).attr("width",h-c),e.select("rect."+Br.slideBoxClassName).attr("y",f).attr("height",d-f)}var p=.5,m=Math.round(u(c-o))-p,g=Math.round(u(h-o))+p;e.select("g."+Br.grabberMinClassName).attr("transform",V5(m,p)),e.select("g."+Br.grabberMaxClassName).attr("transform",V5(g,p))}function uCe(e,t,r,i){var a=Ia.ensureSingle(e,"rect",Br.bgClassName,function(l){l.attr({x:0,y:0,"shape-rendering":"crispEdges"})}),n=i.borderwidth%2===0?i.borderwidth:i.borderwidth-1,o=-i._offsetShift,s=VJ.crispRound(t,i.borderwidth);a.attr({width:i._width+n,height:i._height+n,transform:V5(o,o),"stroke-width":s}).call(kf.stroke,i.bordercolor).call(kf.fill,i.bgcolor)}function cCe(e,t,r,i){var a=t._fullLayout,n=Ia.ensureSingleById(a._topdefs,"clipPath",i._clipId,function(o){o.append("rect").attr({x:0,y:0})});n.select("rect").attr({width:i._width,height:i._height})}function hCe(e,t,r,i){var a=t.calcdata,n=e.selectAll("g."+Br.rangePlotClassName).data(r._subplotsWith,Ia.identity);n.enter().append("g").attr("class",function(s){return Br.rangePlotClassName+" "+s}).call(VJ.setClipUrl,i._clipId,t),n.order(),n.exit().remove();var o;n.each(function(s,l){var u=N5.select(this),c=l===0,h=c9.getFromId(t,s,"y"),f=h._name,d=i[f],p={data:[],layout:{xaxis:{type:r.type,domain:[0,1],range:i.range.slice(),calendar:r.calendar},width:i._width,height:i._height,margin:{t:0,b:0,l:0,r:0}},_context:t._context};r.rangebreaks&&(p.layout.xaxis.rangebreaks=r.rangebreaks),p.layout[f]={type:h.type,domain:[0,1],range:d.rangemode!=="match"?d.range.slice():h.range.slice(),calendar:h.calendar},h.rangebreaks&&(p.layout[f].rangebreaks=h.rangebreaks),tCe.supplyDefaults(p);var m=p._fullLayout.xaxis,g=p._fullLayout[f];m.clearCalc(),m.setScale(),g.clearCalc(),g.setScale();var y={id:s,plotgroup:u,xaxis:m,yaxis:g,isRangePlot:!0};c?o=y:(y.mainplot="xy",y.mainplotinfo=o),iCe.rangePlot(t,y,fCe(a,s))})}function fCe(e,t){for(var r=[],i=0;i{"use strict";var vCe=tt(),gCe=L5(),yCe=u9(),h9=IJ();jJ.exports={moduleType:"component",name:"rangeslider",schema:{subplots:{xaxis:{rangeslider:vCe.extendFlat({},gCe,{yaxis:yCe})}}},layoutAttributes:L5(),handleDefaults:BJ(),calcAutorange:OJ(),draw:GJ(),isVisible:h9.isVisible,makeData:h9.makeData,autoMarginOpts:h9.autoMarginOpts}});var U5=X((iat,ZJ)=>{"use strict";var _Ce=oo(),HJ=ec(),xCe=qi().templatedArray,bCe=xCe("button",{visible:{valType:"boolean",dflt:!0,editType:"plot"},step:{valType:"enumerated",values:["month","year","day","hour","minute","second","all"],dflt:"month",editType:"plot"},stepmode:{valType:"enumerated",values:["backward","todate"],dflt:"backward",editType:"plot"},count:{valType:"number",min:0,dflt:1,editType:"plot"},label:{valType:"string",editType:"plot"},editType:"plot"});ZJ.exports={visible:{valType:"boolean",editType:"plot"},buttons:bCe,x:{valType:"number",min:-2,max:3,editType:"plot"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"plot"},y:{valType:"number",min:-2,max:3,editType:"plot"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"bottom",editType:"plot"},font:_Ce({editType:"plot"}),bgcolor:{valType:"color",dflt:HJ.lightLine,editType:"plot"},activecolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:HJ.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"}});var f9={};Yi(f9,{darkAmount:()=>SCe,lightAmount:()=>DCe,minButtonWidth:()=>ACe,rx:()=>TCe,ry:()=>MCe,yPad:()=>wCe});var wCe,ACe,TCe,MCe,DCe,SCe,d9=Gi(()=>{"use strict";wCe=.02,ACe=30,TCe=3,MCe=3,DCe=25,SCe=10});var XJ=X((aat,WJ)=>{"use strict";var G5=tt(),ECe=Vr(),kCe=qi(),CCe=_l(),YJ=U5(),p9=(d9(),lt(f9));WJ.exports=function(t,r,i,a,n){var o=t.rangeselector||{},s=kCe.newContainer(r,"rangeselector");function l(d,p){return G5.coerce(o,s,YJ,d,p)}var u=CCe(o,s,{name:"buttons",handleItemDefaults:FCe,calendar:n}),c=l("visible",u.length>0);if(c){var h=PCe(r,i,a);l("x",h[0]),l("y",h[1]),G5.noneOrAll(t,r,["x","y"]),l("xanchor"),l("yanchor"),G5.coerceFont(l,"font",i.font);var f=l("bgcolor");l("activecolor",ECe.contrast(f,p9.lightAmount,p9.darkAmount)),l("bordercolor"),l("borderwidth")}};function FCe(e,t,r,i){var a=i.calendar;function n(l,u){return G5.coerce(e,t,YJ.buttons,l,u)}var o=n("visible");if(o){var s=n("step");s!=="all"&&(a&&a!=="gregorian"&&(s==="month"||s==="year")?t.stepmode="backward":n("stepmode"),n("count")),n("label")}}function PCe(e,t,r){for(var i=r.filter(function(s){return t[s].anchor===e._id}),a=0,n=0;n{"use strict";var ICe=SA(),LCe=tt().titleCase;KJ.exports=function(t,r){var i=t._name,a={};if(r.step==="all")a[i+".autorange"]=!0;else{var n=zCe(t,r);a[i+".range[0]"]=n[0],a[i+".range[1]"]=n[1]}return a};function zCe(e,t){var r=e.range,i=new Date(e.r2l(r[1])),a=t.step,n=ICe["utc"+LCe(a)],o=t.count,s;switch(t.stepmode){case"backward":s=e.l2r(+n.offset(i,-o));break;case"todate":var l=n.offset(i,-o);s=e.l2r(+n.ceil(l));break}var u=r[1];return[s,u]}});var oQ=X((oat,nQ)=>{"use strict";var $5=Qr(),RCe=mr(),BCe=bn(),QJ=Vr(),aQ=xi(),hh=tt(),eQ=hh.strTranslate,j5=cn(),qCe=un(),g9=(uo(),lt(lo)),tQ=g9.LINE_SPACING,rQ=g9.FROM_TL,iQ=g9.FROM_BR,v9=(d9(),lt(f9)),OCe=JJ();nQ.exports=function(t){var r=t._fullLayout,i=r._infolayer.selectAll(".rangeselector").data(NCe(t),VCe);i.enter().append("g").classed("rangeselector",!0),i.exit().remove(),i.style({cursor:"pointer","pointer-events":"all"}),i.each(function(a){var n=$5.select(this),o=a,s=o.rangeselector,l=n.selectAll("g.button").data(hh.filterVisible(s.buttons));l.enter().append("g").classed("button",!0),l.exit().remove(),l.each(function(u){var c=$5.select(this),h=OCe(o,u);u._isActive=UCe(o,u,h),c.call(m9,s,u),c.call(jCe,s,u,t),c.on("click",function(){t._dragged||RCe.call("_guiRelayout",t,h)}),c.on("mouseover",function(){u._isHovered=!0,c.call(m9,s,u)}),c.on("mouseout",function(){u._isHovered=!1,c.call(m9,s,u)})}),HCe(t,l,s,o._name,n)})};function NCe(e){for(var t=qCe.list(e,"x",!0),r=[],i=0;i{"use strict";sQ.exports={moduleType:"component",name:"rangeselector",schema:{subplots:{xaxis:{rangeselector:U5()}}},layoutAttributes:U5(),handleDefaults:XJ(),draw:oQ()}});var H5=X(y9=>{"use strict";var uQ=Ca().extendFlat;y9.attributes=function(e,t){e=e||{},t=t||{};var r={valType:"info_array",editType:e.editType,items:[{valType:"number",min:0,max:1,editType:e.editType},{valType:"number",min:0,max:1,editType:e.editType}],dflt:[0,1]},i=e.name?e.name+" ":"",a=e.trace?"trace":"subplot",n=t.description?" "+t.description:"",o={x:uQ({},r,{}),y:uQ({},r,{}),editType:e.editType};return e.noGridCell||(o.row={valType:"integer",min:0,dflt:0,editType:e.editType},o.column={valType:"integer",min:0,dflt:0,editType:e.editType}),o};y9.defaults=function(e,t,r,i){var a=i&&i.x||[0,1],n=i&&i.y||[0,1],o=t.grid;if(o){var s=r("domain.column");s!==void 0&&(s{"use strict";var ZCe=tt(),YCe=(Hp(),lt(Iv)).counter,WCe=H5().attributes,cQ=(xn(),lt(_n)).idRegex,XCe=qi(),_9={rows:{valType:"integer",min:1,editType:"plot"},roworder:{valType:"enumerated",values:["top to bottom","bottom to top"],dflt:"top to bottom",editType:"plot"},columns:{valType:"integer",min:1,editType:"plot"},subplots:{valType:"info_array",freeLength:!0,dimensions:2,items:{valType:"enumerated",values:[YCe("xy").toString(),""],editType:"plot"},editType:"plot"},xaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[cQ.x.toString(),""],editType:"plot"},editType:"plot"},yaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[cQ.y.toString(),""],editType:"plot"},editType:"plot"},pattern:{valType:"enumerated",values:["independent","coupled"],dflt:"coupled",editType:"plot"},xgap:{valType:"number",min:0,max:1,editType:"plot"},ygap:{valType:"number",min:0,max:1,editType:"plot"},domain:WCe({name:"grid",editType:"plot",noGridCell:!0},{}),xside:{valType:"enumerated",values:["bottom","bottom plot","top plot","top"],dflt:"bottom plot",editType:"plot"},yside:{valType:"enumerated",values:["left","left plot","right plot","right"],dflt:"left plot",editType:"plot"},editType:"plot"};function Z5(e,t,r){var i=t[r+"axes"],a=Object.keys((e._splomAxes||{})[r]||{});if(Array.isArray(i))return i;if(a.length)return a}function KCe(e,t){var r=e.grid||{},i=Z5(t,r,"x"),a=Z5(t,r,"y");if(!e.grid&&!i&&!a)return;var n=Array.isArray(r.subplots)&&Array.isArray(r.subplots[0]),o=Array.isArray(i),s=Array.isArray(a),l=o&&i!==r.xaxes&&s&&a!==r.yaxes,u,c;n?(u=r.subplots.length,c=r.subplots[0].length):(s&&(u=a.length),o&&(c=i.length));var h=XCe.newContainer(t,"grid");function f(T,M){return ZCe.coerce(r,h,_9,T,M)}var d=f("rows",u),p=f("columns",c);if(!(d*p>1)){delete t.grid;return}if(!n&&!o&&!s){var m=f("pattern")==="independent";m&&(n=!0)}h._hasSubplotGrid=n;var g=f("roworder"),y=g==="top to bottom",x=n?.2:.1,b=n?.3:.1,_,A;l&&t._splomGridDflt&&(_=t._splomGridDflt.xside,A=t._splomGridDflt.yside),h._domains={x:hQ("x",f,x,_,p),y:hQ("y",f,b,A,d,y)}}function hQ(e,t,r,i,a,n){var o=t(e+"gap",r),s=t("domain."+e);t(e+"side",i);for(var l=new Array(a),u=s[0],c=(s[1]-u)/(a-o),h=c*(1-o),f=0;f{"use strict";mQ.exports={visible:{valType:"boolean",editType:"calc"},type:{valType:"enumerated",values:["percent","constant","sqrt","data"],editType:"calc"},symmetric:{valType:"boolean",editType:"calc"},array:{valType:"data_array",editType:"calc"},arrayminus:{valType:"data_array",editType:"calc"},value:{valType:"number",min:0,dflt:10,editType:"calc"},valueminus:{valType:"number",min:0,dflt:10,editType:"calc"},traceref:{valType:"integer",min:0,dflt:0,editType:"style"},tracerefminus:{valType:"integer",min:0,dflt:0,editType:"style"},copy_ystyle:{valType:"boolean",editType:"plot"},copy_zstyle:{valType:"boolean",editType:"style"},color:{valType:"color",editType:"style"},thickness:{valType:"number",min:0,dflt:2,editType:"style"},width:{valType:"number",min:0,editType:"plot"},editType:"calc"}});var yQ=X((hat,gQ)=>{"use strict";var vQ=Nr(),QCe=mr(),eFe=tt(),tFe=qi(),rFe=x9();gQ.exports=function(e,t,r,i){var a="error_"+i.axis,n=tFe.newContainer(t,a),o=e[a]||{};function s(p,m){return eFe.coerce(o,n,rFe,p,m)}var l=o.array!==void 0||o.value!==void 0||o.type==="sqrt",u=s("visible",l);if(u!==!1){var c=s("type","array"in o?"data":"percent"),h=!0;c!=="sqrt"&&(h=s("symmetric",!((c==="data"?"arrayminus":"valueminus")in o))),c==="data"?(s("array"),s("traceref"),h||(s("arrayminus"),s("tracerefminus"))):(c==="percent"||c==="constant")&&(s("value"),h||s("valueminus"));var f="copy_"+i.inherit+"style";if(i.inherit){var d=t["error_"+i.inherit];(d||{}).visible&&s(f,!(o.color||vQ(o.thickness)||vQ(o.width)))}(!i.inherit||!n[f])&&(s("color",r),s("thickness"),s("width",QCe.traceIs(t,"gl3d")?0:4))}}});var b9=X((fat,xQ)=>{"use strict";xQ.exports=function(t){var r=t.type,i=t.symmetric;if(r==="data"){var a=t.array||[];if(i)return function(u,c){var h=+a[c];return[h,h]};var n=t.arrayminus||[];return function(u,c){var h=+a[c],f=+n[c];return!isNaN(h)||!isNaN(f)?[f||0,h||0]:[NaN,NaN]}}else{var o=_Q(r,t.value),s=_Q(r,t.valueminus);return i||t.valueminus===void 0?function(u){var c=o(u);return[c,c]}:function(u){return[s(u),o(u)]}}};function _Q(e,t){if(e==="percent")return function(r){return Math.abs(r*t/100)};if(e==="constant")return function(){return Math.abs(t)};if(e==="sqrt")return function(r){return Math.sqrt(Math.abs(r))}}});var AQ=X((dat,wQ)=>{"use strict";var w9=Nr(),iFe=mr(),A9=ra(),aFe=tt(),nFe=b9();wQ.exports=function(t){for(var r=t.calcdata,i=0;i{"use strict";var TQ=Qr(),Cf=Nr(),oFe=xi(),sFe=So();MQ.exports=function(t,r,i,a){var n,o=i.xaxis,s=i.yaxis,l=a&&a.duration>0,u=t._context.staticPlot;r.each(function(c){var h=c[0].trace,f=h.error_x||{},d=h.error_y||{},p;h.ids&&(p=function(x){return x.id});var m=sFe.hasMarkers(h)&&h.marker.maxdisplayed>0;!d.visible&&!f.visible&&(c=[]);var g=TQ.select(this).selectAll("g.errorbar").data(c,p);if(g.exit().remove(),!!c.length){f.visible||g.selectAll("path.xerror").remove(),d.visible||g.selectAll("path.yerror").remove(),g.style("opacity",1);var y=g.enter().append("g").classed("errorbar",!0);l&&y.style("opacity",0).transition().duration(a.duration).style("opacity",1),oFe.setClipUrl(g,i.layerClipId,t),g.each(function(x){var b=TQ.select(this),_=lFe(x,o,s);if(!(m&&!x.vis)){var A,T=b.select("path.yerror");if(d.visible&&Cf(_.x)&&Cf(_.yh)&&Cf(_.ys)){var M=d.width;A="M"+(_.x-M)+","+_.yh+"h"+2*M+"m-"+M+",0V"+_.ys,_.noYS||(A+="m-"+M+",0h"+2*M),n=!T.size(),n?T=b.append("path").style("vector-effect",u?"none":"non-scaling-stroke").classed("yerror",!0):l&&(T=T.transition().duration(a.duration).ease(a.easing)),T.attr("d",A)}else T.remove();var S=b.select("path.xerror");if(f.visible&&Cf(_.y)&&Cf(_.xh)&&Cf(_.xs)){var k=(f.copy_ystyle?d:f).width;A="M"+_.xh+","+(_.y-k)+"v"+2*k+"m0,-"+k+"H"+_.xs,_.noXS||(A+="m0,-"+k+"v"+2*k),n=!S.size(),n?S=b.append("path").style("vector-effect",u?"none":"non-scaling-stroke").classed("xerror",!0):l&&(S=S.transition().duration(a.duration).ease(a.easing)),S.attr("d",A)}else S.remove()}})}})};function lFe(e,t,r){var i={x:t.c2p(e.x),y:r.c2p(e.y)};return e.yh!==void 0&&(i.yh=r.c2p(e.yh),i.ys=r.c2p(e.ys),Cf(i.ys)||(i.noYS=!0,i.ys=r.c2p(e.ys,!0))),e.xh!==void 0&&(i.xh=t.c2p(e.xh),i.xs=t.c2p(e.xs),Cf(i.xs)||(i.noXS=!0,i.xs=t.c2p(e.xs,!0))),i}});var kQ=X((mat,EQ)=>{"use strict";var uFe=Qr(),SQ=Vr();EQ.exports=function(t){t.each(function(r){var i=r[0].trace,a=i.error_y||{},n=i.error_x||{},o=uFe.select(this);o.selectAll("path.yerror").style("stroke-width",a.thickness+"px").call(SQ.stroke,a.color),n.copy_ystyle&&(n=a),o.selectAll("path.xerror").style("stroke-width",n.thickness+"px").call(SQ.stroke,n.color)})}});var PQ=X((vat,FQ)=>{"use strict";var uy=tt(),CQ=qs().overrideAll,cy=x9(),kd={error_x:uy.extendFlat({},cy),error_y:uy.extendFlat({},cy)};delete kd.error_x.copy_zstyle;delete kd.error_y.copy_zstyle;delete kd.error_y.copy_ystyle;var hy={error_x:uy.extendFlat({},cy),error_y:uy.extendFlat({},cy),error_z:uy.extendFlat({},cy)};delete hy.error_x.copy_ystyle;delete hy.error_y.copy_ystyle;delete hy.error_z.copy_ystyle;delete hy.error_z.copy_zstyle;FQ.exports={moduleType:"component",name:"errorbars",schema:{traces:{scatter:kd,bar:kd,histogram:kd,scatter3d:CQ(hy,"calc","nested"),scattergl:CQ(kd,"calc","nested")}},supplyDefaults:yQ(),calc:AQ(),makeComputeError:b9(),plot:DQ(),style:kQ(),hoverInfo:cFe};function cFe(e,t,r){(t.error_y||{}).visible&&(r.yerr=e.yh-e.y,t.error_y.symmetric||(r.yerrneg=e.y-e.ys)),(t.error_x||{}).visible&&(r.xerr=e.xh-e.x,t.error_x.symmetric||(r.xerrneg=e.x-e.xs))}});var IQ={};Yi(IQ,{cn:()=>hFe});var hFe,LQ=Gi(()=>{"use strict";hFe={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"}});var UQ=X((gat,VQ)=>{"use strict";var Ff=Qr(),W5=bn(),zQ=mr(),fh=ra(),Y5=bl(),Ll=tt(),ku=Ll.strTranslate,NQ=Ca().extendFlat,T9=vf(),Eu=xi(),H1=Vr(),fFe=Kv(),dFe=cn(),pFe=ic().flipScale,mFe=PS(),vFe=IS(),gFe=vu(),D9=(uo(),lt(lo)),RQ=D9.LINE_SPACING,BQ=D9.FROM_TL,qQ=D9.FROM_BR,ha=(LQ(),lt(IQ)).cn;function yFe(e){var t=e._fullLayout,r=t._infolayer.selectAll("g."+ha.colorbar).data(_Fe(e),function(i){return i._id});r.enter().append("g").attr("class",function(i){return i._id}).classed(ha.colorbar,!0),r.each(function(i){var a=Ff.select(this);Ll.ensureSingle(a,"rect",ha.cbbg),Ll.ensureSingle(a,"g",ha.cbfills),Ll.ensureSingle(a,"g",ha.cblines),Ll.ensureSingle(a,"g",ha.cbaxis,function(o){o.classed(ha.crisp,!0)}),Ll.ensureSingle(a,"g",ha.cbtitleunshift,function(o){o.append("g").classed(ha.cbtitle,!0)}),Ll.ensureSingle(a,"rect",ha.cboutline);var n=xFe(a,i,e);n&&n.then&&(e._promises||[]).push(n),e._context.edits.colorbarPosition&&bFe(a,i,e)}),r.exit().each(function(i){W5.autoMargin(e,i._id)}).remove(),r.order()}function _Fe(e){var t=e._fullLayout,r=e.calcdata,i=[],a,n,o,s;function l(b){return NQ(b,{_fillcolor:null,_line:{color:null,width:null,dash:null},_levels:{start:null,end:null,size:null},_filllevels:null,_fillgradient:null,_zrange:null})}function u(){typeof s.calc=="function"?s.calc(e,o,a):(a._fillgradient=n.reversescale?pFe(n.colorscale):n.colorscale,a._zrange=[n[s.min],n[s.max]])}for(var c=0;c[Math.min(e[0]+t,e[1]),e[1]],OQ=(e,t)=>[e[0],Math.max(e[1]-t,e[0])];function xFe(e,t,r){var i=t.orientation==="v",a=t.len,n=t.lenmode,o=t.thickness,s=t.thicknessmode,l=t.outlinewidth,u=t.borderwidth,c=t.bgcolor,h=t.xanchor,f=t.yanchor,d=t.xpad,p=t.ypad,m=t.x,g=i?t.y:1-t.y,y=t.yref==="paper",x=t.xref==="paper",b=r._fullLayout,_=b._size,A=t._fillcolor,T=t._line,M=t.title,S=M.side,k=t._zrange||Ff.extent((typeof A=="function"?A:T.color).domain()),P=typeof T.color=="function"?T.color:function(){return T.color},I=typeof A=="function"?A:function(){return A},B=t._levels,L=wFe(r,t,k),z=L.fill,q=L.line,V=Math.round(o*(s==="fraction"?i?_.w:_.h:1)),j=V/(i?_.w:_.h),$=Math.round(a*(n==="fraction"?i?_.h:_.w:1)),H=$/(i?_.h:_.w),Z=x?_.w:r._fullLayout.width,Y=y?_.h:r._fullLayout.height,oe=Math.round(i?m*Z+d:g*Y+p),pe={center:.5,right:1}[h]||0,De={top:1,middle:.5}[f]||0,ye=i?m-pe*j:g-De*j,de=i?g-De*H:m-pe*H,Ce=Math.round(i?Y*(1-de):Z*de);t._lenFrac=H,t._thickFrac=j,t._uFrac=ye,t._vFrac=de;var J=t._axis=AFe(r,t,k);J.position=j+(i?m+d/_.w:g+p/_.h);var ue=["top","bottom"].indexOf(S)!==-1;if(i&&ue&&(J.title.side=S,J.titlex=m+d/_.w,J.titley=de+(M.side==="top"?H-p/_.h:p/_.h)),!i&&!ue&&(J.title.side=S,J.titley=g+p/_.h,J.titlex=de+d/_.w),T.color&&t.tickmode==="auto"){J.tickmode="linear",J.tick0=B.start;var me=B.size,te=Ll.constrain($/50,4,15)+1,re=(k[1]-k[0])/((t.nticks||te)*me);if(re>1){var fe=Math.pow(10,Math.floor(Math.log(re)/Math.LN10));me*=fe*Ll.roundUp(re/fe,[2,5,10]),(Math.abs(B.start)/B.size+1e-6)%1<2e-6&&(J.tick0=0)}J.dtick=me}var ge=i?p/_.h:d/_.w;J.domain=OQ(M9([de,de+H],ge),ge),J.setScale(),e.attr("transform",ku(Math.round(_.l),Math.round(_.t)));var Re=e.select("."+ha.cbtitleunshift).attr("transform",ku(-Math.round(_.l),-Math.round(_.t))),Ve=J.ticklabelposition,Me=J.title.font.size,Pe=e.select("."+ha.cbaxis),Fe,se=0,Ue=0;function Ne(ie,Se){var ot={propContainer:J,propName:t._propPrefix+"title.text",traceIndex:t._traceIndex,_meta:t._meta,placeholder:b._dfltTitle.colorbar,containerGroup:e.select("."+ha.cbtitle)},bt=ie.charAt(0)==="h"?ie.slice(1):"h"+ie;e.selectAll("."+bt+",."+bt+"-math-group").remove(),fFe.draw(r,ie,NQ(ot,Se||{}))}function $e(){if(i&&ue||!i&&!ue){var ie,Se;S==="top"&&(ie=d+_.l+Z*m,Se=p+_.t+Y*(1-de-H)+3+Me*.75),S==="bottom"&&(ie=d+_.l+Z*m,Se=p+_.t+Y*(1-de)-3-Me*.25),S==="right"&&(Se=p+_.t+Y*g+3+Me*.75,ie=d+_.l+Z*de),Ne(J._id+"title",{attributes:{x:ie,y:Se,"text-anchor":i?"start":"middle"}})}}function Ae(){if(i&&!ue||!i&&ue){var ie=J.position||0,Se=J._offset+J._length/2,ot,bt;if(S==="right")bt=Se,ot=_.l+Z*ie+10+Me*(J.showticklabels?1:.5);else if(ot=Se,S==="bottom"&&(bt=_.t+Y*ie+10+(Ve.indexOf("inside")===-1?J.tickfont.size:0)+(J.ticks!=="inside"&&t.ticklen||0)),S==="top"){var Tt=M.text.split("
").length;bt=_.t+Y*ie+10-V-RQ*Me*Tt}Ne((i?"h":"v")+J._id+"title",{avoid:{selection:Ff.select(r).selectAll("g."+J._id+"tick"),side:S,offsetTop:i?0:_.t,offsetLeft:i?_.l:0,maxShift:i?b.width:b.height},attributes:{x:ot,y:bt,"text-anchor":"middle"},transform:{rotate:i?-90:0,offset:0}})}}function He(){if(!i&&!ue||i&&ue){var ie=e.select("."+ha.cbtitle),Se=ie.select("text"),ot=[-l/2,l/2],bt=ie.select(".h"+J._id+"title-math-group").node(),Tt=15.6;Se.node()&&(Tt=parseInt(Se.node().style.fontSize,10)*RQ);var ve;if(bt?(ve=Eu.bBox(bt),Ue=ve.width,se=ve.height,se>Tt&&(ot[1]-=(se-Tt)/2)):Se.node()&&!Se.classed(ha.jsPlaceholder)&&(ve=Eu.bBox(Se.node()),Ue=ve.width,se=ve.height),i){if(se){if(se+=5,S==="top")J.domain=OQ(J.domain,se/_.h),ot[1]*=-1;else{J.domain=M9(J.domain,se/_.h);var xe=dFe.lineCount(Se);ot[1]+=(1-xe)*Tt}ie.attr("transform",ku(ot[0],ot[1])),J.setScale()}}else Ue&&(S==="right"&&(J.domain=M9(J.domain,(Ue+Me/2)/_.w)),ie.attr("transform",ku(ot[0],ot[1])),J.setScale())}e.selectAll("."+ha.cbfills+",."+ha.cblines).attr("transform",i?ku(0,Math.round(_.h*(1-J.domain[1]))):ku(Math.round(_.w*J.domain[0]),0)),Pe.attr("transform",i?ku(0,Math.round(-_.t)):ku(Math.round(-_.l),0));var je=e.select("."+ha.cbfills).selectAll("rect."+ha.cbfill).attr("style","").data(z);je.enter().append("rect").classed(ha.cbfill,!0).attr("style",""),je.exit().remove();var nt=k.map(J.c2p).map(Math.round).sort(function(Ot,We){return Ot-We});je.each(function(Ot,We){var mt=[We===0?k[0]:(z[We]+z[We-1])/2,We===z.length-1?k[1]:(z[We]+z[We+1])/2].map(J.c2p).map(Math.round);i&&(mt[1]=Ll.constrain(mt[1]+(mt[1]>mt[0])?1:-1,nt[0],nt[1]));var Ye=Ff.select(this).attr(i?"x":"y",oe).attr(i?"y":"x",Ff.min(mt)).attr(i?"width":"height",Math.max(V,2)).attr(i?"height":"width",Math.max(Ff.max(mt)-Ff.min(mt),2));if(t._fillgradient)Eu.gradient(Ye,r,t._id,i?"vertical":"horizontalreversed",t._fillgradient,"fill");else{var vt=I(Ot).replace("e-","");Ye.attr("fill",H1.hexString(vt))}});var Qe=e.select("."+ha.cblines).selectAll("path."+ha.cbline).data(T.color&&T.width?q:[]);Qe.enter().append("path").classed(ha.cbline,!0),Qe.exit().remove(),Qe.each(function(Ot){var We=oe,mt=Math.round(J.c2p(Ot))+T.width/2%1;Ff.select(this).attr("d","M"+(i?We+","+mt:mt+","+We)+(i?"h":"v")+V).call(Eu.lineGroupStyle,T.width,P(Ot),T.dash)}),Pe.selectAll("g."+J._id+"tick,path").remove();var pt=oe+V+(l||0)/2-(t.ticks==="outside"?1:0),st=fh.calcTicks(J),yt=fh.getTickSigns(J)[2];return fh.drawTicks(r,J,{vals:J.ticks==="inside"?fh.clipEnds(J,st):st,layer:Pe,path:fh.makeTickPath(J,pt,yt),transFn:fh.makeTransTickFn(J)}),fh.drawLabels(r,J,{vals:st,layer:Pe,transFn:fh.makeTransTickLabelFn(J),labelFns:fh.makeLabelFns(J,pt)})}function it(){var ie,Se=V+l/2;Ve.indexOf("inside")===-1&&(ie=Eu.bBox(Pe.node()),Se+=i?ie.width:ie.height),Fe=Re.select("text");var ot=0,bt=i&&S==="top",Tt=!i&&S==="right",ve=0;if(Fe.node()&&!Fe.classed(ha.jsPlaceholder)){var xe,je=Re.select(".h"+J._id+"title-math-group").node();je&&(i&&ue||!i&&!ue)?(ie=Eu.bBox(je),ot=ie.width,xe=ie.height):(ie=Eu.bBox(Re.node()),ot=ie.right-_.l-(i?oe:Ce),xe=ie.bottom-_.t-(i?Ce:oe),!i&&S==="top"&&(Se+=ie.height,ve=ie.height)),Tt&&(Fe.attr("transform",ku(ot/2+Me/2,0)),ot*=2),Se=Math.max(Se,i?ot:xe)}var nt=(i?d:p)*2+Se+u+l/2,Qe=0;!i&&M.text&&f==="bottom"&&g<=0&&(Qe=nt/2,nt+=Qe,ve+=Qe),b._hColorbarMoveTitle=Qe,b._hColorbarMoveCBTitle=ve;var pt=u+l,st=(i?oe:Ce)-pt/2-(i?d:0),yt=(i?Ce:oe)-(i?$:p+ve-Qe);e.select("."+ha.cbbg).attr("x",st).attr("y",yt).attr(i?"width":"height",Math.max(nt-Qe,2)).attr(i?"height":"width",Math.max($+pt,2)).call(H1.fill,c).call(H1.stroke,t.bordercolor).style("stroke-width",u);var Ot=Tt?Math.max(ot-10,0):0;e.selectAll("."+ha.cboutline).attr("x",(i?oe:Ce+d)+Ot).attr("y",(i?Ce+p-$:oe)+(bt?se:0)).attr(i?"width":"height",Math.max(V,2)).attr(i?"height":"width",Math.max($-(i?2*p+se:2*d+Ot),2)).call(H1.stroke,t.outlinecolor).style({fill:"none","stroke-width":l});var We=i?pe*nt:0,mt=i?0:(1-De)*nt-ve;if(We=x?_.l-We:-We,mt=y?_.t-mt:-mt,e.attr("transform",ku(We,mt)),!i&&(u||H1.opacity(c)&&!H1.equals(b.paper_bgcolor,c))){var Ye=Pe.selectAll("text"),vt=Ye[0].length,Dt=e.select("."+ha.cbbg).node(),Ft=Eu.bBox(Dt),zt=Eu.getTranslate(e),ce=2;Ye.each(function(ci,Or){var Ci=0,zi=vt-1;if(Or===Ci||Or===zi){var oa=Eu.bBox(this),ka=Eu.getTranslate(this),Wi;if(Or===zi){var va=oa.right+ka.x,At=Ft.right+zt.x+Ce-u-ce+m;Wi=At-va,Wi>0&&(Wi=0)}else if(Or===Ci){var $r=oa.left+ka.x,Er=Ft.left+zt.x+Ce+u+ce;Wi=Er-$r,Wi<0&&(Wi=0)}Wi&&(vt<3?this.setAttribute("transform","translate("+Wi+",0) "+this.getAttribute("transform")):this.setAttribute("visibility","hidden"))}})}var ke={},Je=BQ[h],at=qQ[h],Ar=BQ[f],ti=qQ[f],gi=nt-V;i?(n==="pixels"?(ke.y=g,ke.t=$*Ar,ke.b=$*ti):(ke.t=ke.b=0,ke.yt=g+a*Ar,ke.yb=g-a*ti),s==="pixels"?(ke.x=m,ke.l=nt*Je,ke.r=nt*at):(ke.l=gi*Je,ke.r=gi*at,ke.xl=m-o*Je,ke.xr=m+o*at)):(n==="pixels"?(ke.x=m,ke.l=$*Je,ke.r=$*at):(ke.l=ke.r=0,ke.xl=m+a*Je,ke.xr=m-a*at),s==="pixels"?(ke.y=1-g,ke.t=nt*Ar,ke.b=nt*ti):(ke.t=gi*Ar,ke.b=gi*ti,ke.yt=g-o*Ar,ke.yb=g+o*ti));var Li=t.y<.5?"b":"t",qr=t.x<.5?"l":"r";r._fullLayout._reservedMargin[t._id]={};var Cr={r:b.width-st-We,l:st+ke.r,b:b.height-yt-mt,t:yt+ke.b};x&&y?W5.autoMargin(r,t._id,ke):x?r._fullLayout._reservedMargin[t._id][Li]=Cr[Li]:y||i?r._fullLayout._reservedMargin[t._id][qr]=Cr[qr]:r._fullLayout._reservedMargin[t._id][Li]=Cr[Li]}return Ll.syncOrAsync([W5.previousPromises,$e,He,Ae,W5.previousPromises,it],r)}function bFe(e,t,r){var i=t.orientation==="v",a=r._fullLayout,n=a._size,o,s,l;Y5.init({element:e.node(),gd:r,prepFn:function(){o=e.attr("transform"),T9(e)},moveFn:function(u,c){e.attr("transform",o+ku(u,c)),s=Y5.align((i?t._uFrac:t._vFrac)+u/n.w,i?t._thickFrac:t._lenFrac,0,1,t.xanchor),l=Y5.align((i?t._vFrac:1-t._uFrac)-c/n.h,i?t._lenFrac:t._thickFrac,0,1,t.yanchor);var h=Y5.getCursor(s,l,t.xanchor,t.yanchor);T9(e,h)},doneFn:function(){if(T9(e),s!==void 0&&l!==void 0){var u={};u[t._propPrefix+"x"]=s,u[t._propPrefix+"y"]=l,t._traceIndex!==void 0?zQ.call("_guiRestyle",r,u,t._traceIndex):zQ.call("_guiRelayout",r,u)}}})}function wFe(e,t,r){var i=t._levels,a=[],n=[],o,s,l=i.end+i.size/100,u=i.size,c=1.001*r[0]-.001*r[1],h=1.001*r[1]-.001*r[0];for(s=0;s<1e5&&(o=i.start+s*u,!(u>0?o>=l:o<=l));s++)o>c&&o0?o>=l:o<=l));s++)o>r[0]&&o{"use strict";GQ.exports={moduleType:"component",name:"colorbar",attributes:rb(),supplyDefaults:w8(),draw:UQ().draw,hasColorbar:h8()}});var HQ=X((_at,$Q)=>{"use strict";$Q.exports={moduleType:"component",name:"legend",layoutAttributes:_M(),supplyLayoutDefaults:bM(),draw:RM(),style:PM()}});var YQ=X((xat,ZQ)=>{"use strict";ZQ.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"}}});var XQ=X((bat,WQ)=>{"use strict";WQ.exports={moduleType:"locale",name:"en-US",dictionary:{"Click to enter Colorscale title":"Click to enter Colorscale title"},format:{date:"%m/%d/%Y"}}});var E9=X((wat,eee)=>{"use strict";var TFe=mr(),QQ=tt(),S9=QQ.extendFlat,KQ=QQ.extendDeep;function JQ(e){var t;switch(e){case"themes__thumb":t={autosize:!0,width:150,height:150,title:{text:""},showlegend:!1,margin:{l:5,r:5,t:5,b:5,pad:0},annotations:[]};break;case"thumbnail":t={title:{text:""},showlegend:!1,borderwidth:0,bordercolor:"",margin:{l:1,r:1,t:1,b:1,pad:0},annotations:[]};break;default:t={}}return t}function MFe(e){var t=["xaxis","yaxis","zaxis"];return t.indexOf(e.slice(0,5))>-1}eee.exports=function(t,r){var i,a=t.data,n=t.layout,o=KQ([],a),s=KQ({},n,JQ(r.tileClass)),l=t._context||{};if(r.width&&(s.width=r.width),r.height&&(s.height=r.height),r.tileClass==="thumbnail"||r.tileClass==="themes__thumb"){s.annotations=[];var u=Object.keys(s);for(i=0;i{"use strict";var DFe=Gx().EventEmitter,SFe=mr(),EFe=tt(),tee=yd(),kFe=E9(),CFe=Q3(),FFe=e5();function PFe(e,t){var r=new DFe,i=kFe(e,{format:"png"}),a=i.gd;a.style.position="absolute",a.style.left="-5000px",document.body.appendChild(a);function n(){var s=tee.getDelay(a._fullLayout);setTimeout(function(){var l=CFe(a),u=document.createElement("canvas");u.id=EFe.randstr(),r=FFe({format:t.format,width:a._fullLayout.width,height:a._fullLayout.height,canvas:u,emitter:r,svg:l}),r.clean=function(){a&&document.body.removeChild(a)}},s)}var o=tee.getRedrawFunc(a);return SFe.call("_doPlot",a,i.data,i.layout,i.config).then(o).then(n).catch(function(s){r.emit("error",s)}),r}ree.exports=PFe});var oee=X((Tat,nee)=>{"use strict";var aee=yd(),IFe={getDelay:aee.getDelay,getRedrawFunc:aee.getRedrawFunc,clone:E9(),toSVG:Q3(),svgToImg:e5(),toImage:iee(),downloadImage:tS()};nee.exports=IFe});var lee=X(dh=>{"use strict";dh.version=lv().version;pI();Qq();var LFe=mr(),fy=dh.register=LFe.register,C9=fY(),see=Object.keys(C9);for(X5=0;X5{"use strict";uee.exports=lee()});var F9=X((Sat,mee)=>{"use strict";var{hovertemplateAttrs:zFe,texttemplateAttrs:RFe,templatefallbackAttrs:hee}=tc(),BFe=P3(),wc=sh(),qFe=Wo(),fee=eh(),OFe=Zc().dash,Cd=Ca().extendFlat,NFe=qs().overrideAll,zl=wc.marker,dee=wc.line,pee=zl.line;mee.exports=NFe({lon:{valType:"data_array"},lat:{valType:"data_array"},locations:{valType:"data_array"},locationmode:{valType:"enumerated",values:["ISO-3","USA-states","country names","geojson-id"],dflt:"ISO-3"},geojson:{valType:"any",editType:"calc"},featureidkey:{valType:"string",editType:"calc",dflt:"id"},mode:Cd({},wc.mode,{dflt:"markers"}),text:Cd({},wc.text,{}),texttemplate:RFe({editType:"plot"},{keys:["lat","lon","location","text"]}),texttemplatefallback:hee({editType:"plot"}),hovertext:Cd({},wc.hovertext,{}),textfont:wc.textfont,textposition:wc.textposition,line:{color:dee.color,width:dee.width,dash:OFe},connectgaps:wc.connectgaps,marker:Cd({symbol:zl.symbol,opacity:zl.opacity,angle:zl.angle,angleref:Cd({},zl.angleref,{values:["previous","up","north"]}),standoff:zl.standoff,size:zl.size,sizeref:zl.sizeref,sizemin:zl.sizemin,sizemode:zl.sizemode,colorbar:zl.colorbar,line:Cd({width:pee.width,dash:pee.dash},fee("marker.line")),gradient:zl.gradient},fee("marker")),fill:{valType:"enumerated",values:["none","toself"],dflt:"none"},fillcolor:BFe(),selected:wc.selected,unselected:wc.unselected,hoverinfo:Cd({},qFe.hoverinfo,{flags:["lon","lat","location","text","name"]}),hovertemplate:zFe(),hovertemplatefallback:hee()},"calc","nested")});var gee=X((Eat,vee)=>{"use strict";vee.exports={version:8,name:"orto",metadata:{"maputnik:renderer":"mlgljs"},center:[1.537786,41.837539],zoom:12,bearing:0,pitch:0,light:{anchor:"viewport",color:"white",intensity:.4,position:[1.15,45,30]},sources:{ortoEsri:{type:"raster",tiles:["https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}"],tileSize:256,maxzoom:18,attribution:"ESRI © ESRI"},ortoInstaMaps:{type:"raster",tiles:["https://tilemaps.icgc.cat/mapfactory/wmts/orto_8_12/CAT3857/{z}/{x}/{y}.png"],tileSize:256,maxzoom:13},ortoICGC:{type:"raster",tiles:["https://geoserveis.icgc.cat/icc_mapesmultibase/noutm/wmts/orto/GRID3857/{z}/{x}/{y}.jpeg"],tileSize:256,minzoom:13.1,maxzoom:20},openmaptiles:{type:"vector",url:"https://geoserveis.icgc.cat/contextmaps/basemap.json"}},sprite:"https://geoserveis.icgc.cat/contextmaps/sprites/sprite@1",glyphs:"https://geoserveis.icgc.cat/contextmaps/glyphs/{fontstack}/{range}.pbf",layers:[{id:"background",type:"background",paint:{"background-color":"#F4F9F4"}},{id:"ortoEsri",type:"raster",source:"ortoEsri",maxzoom:16,layout:{visibility:"visible"}},{id:"ortoICGC",type:"raster",source:"ortoICGC",minzoom:13.1,maxzoom:19,layout:{visibility:"visible"}},{id:"ortoInstaMaps",type:"raster",source:"ortoInstaMaps",maxzoom:13,layout:{visibility:"visible"}},{id:"waterway_tunnel",type:"line",source:"openmaptiles","source-layer":"waterway",minzoom:14,filter:["all",["in","class","river","stream","canal"],["==","brunnel","tunnel"]],layout:{"line-cap":"round"},paint:{"line-color":"#a0c8f0","line-width":{base:1.3,stops:[[13,.5],[20,6]]},"line-dasharray":[2,4]}},{id:"waterway-other",type:"line",metadata:{"mapbox:group":"1444849382550.77"},source:"openmaptiles","source-layer":"waterway",filter:["!in","class","canal","river","stream"],layout:{"line-cap":"round"},paint:{"line-color":"#a0c8f0","line-width":{base:1.3,stops:[[13,.5],[20,2]]}}},{id:"waterway-stream-canal",type:"line",metadata:{"mapbox:group":"1444849382550.77"},source:"openmaptiles","source-layer":"waterway",filter:["all",["in","class","canal","stream"],["!=","brunnel","tunnel"]],layout:{"line-cap":"round"},paint:{"line-color":"#a0c8f0","line-width":{base:1.3,stops:[[13,.5],[20,6]]}}},{id:"waterway-river",type:"line",metadata:{"mapbox:group":"1444849382550.77"},source:"openmaptiles","source-layer":"waterway",filter:["all",["==","class","river"],["!=","brunnel","tunnel"]],layout:{"line-cap":"round"},paint:{"line-color":"#a0c8f0","line-width":{base:1.2,stops:[[10,.8],[20,4]]},"line-opacity":.5}},{id:"water-offset",type:"fill",metadata:{"mapbox:group":"1444849382550.77"},source:"openmaptiles","source-layer":"water",maxzoom:8,filter:["==","$type","Polygon"],layout:{visibility:"visible"},paint:{"fill-opacity":0,"fill-color":"#a0c8f0","fill-translate":{base:1,stops:[[6,[2,0]],[8,[0,0]]]}}},{id:"water",type:"fill",metadata:{"mapbox:group":"1444849382550.77"},source:"openmaptiles","source-layer":"water",layout:{visibility:"visible"},paint:{"fill-color":"hsl(210, 67%, 85%)","fill-opacity":0}},{id:"water-pattern",type:"fill",metadata:{"mapbox:group":"1444849382550.77"},source:"openmaptiles","source-layer":"water",layout:{visibility:"visible"},paint:{"fill-translate":[0,2.5],"fill-pattern":"wave","fill-opacity":1}},{id:"landcover-ice-shelf",type:"fill",metadata:{"mapbox:group":"1444849382550.77"},source:"openmaptiles","source-layer":"landcover",filter:["==","subclass","ice_shelf"],layout:{visibility:"visible"},paint:{"fill-color":"#fff","fill-opacity":{base:1,stops:[[0,.9],[10,.3]]}}},{id:"tunnel-service-track-casing",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["in","class","service","track"]],layout:{"line-join":"round"},paint:{"line-color":"#cfcdca","line-dasharray":[.5,.25],"line-width":{base:1.2,stops:[[15,1],[16,4],[20,11]]}}},{id:"tunnel-minor-casing",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["==","class","minor"]],layout:{"line-join":"round"},paint:{"line-color":"#cfcdca","line-opacity":{stops:[[12,0],[12.5,1]]},"line-width":{base:1.2,stops:[[12,.5],[13,1],[14,4],[20,15]]}}},{id:"tunnel-secondary-tertiary-casing",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["in","class","secondary","tertiary"]],layout:{"line-join":"round"},paint:{"line-color":"#e9ac77","line-opacity":1,"line-width":{base:1.2,stops:[[8,1.5],[20,17]]}}},{id:"tunnel-trunk-primary-casing",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["in","class","primary","trunk"]],layout:{"line-join":"round"},paint:{"line-color":"#e9ac77","line-width":{base:1.2,stops:[[5,.4],[6,.6],[7,1.5],[20,22]]},"line-opacity":.7}},{id:"tunnel-motorway-casing",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["==","class","motorway"]],layout:{"line-join":"round",visibility:"visible"},paint:{"line-color":"#e9ac77","line-dasharray":[.5,.25],"line-width":{base:1.2,stops:[[5,.4],[6,.6],[7,1.5],[20,22]]},"line-opacity":.5}},{id:"tunnel-path",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["==","brunnel","tunnel"],["==","class","path"]]],paint:{"line-color":"#cba","line-dasharray":[1.5,.75],"line-width":{base:1.2,stops:[[15,1.2],[20,4]]}}},{id:"tunnel-service-track",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["in","class","service","track"]],layout:{"line-join":"round"},paint:{"line-color":"#fff","line-width":{base:1.2,stops:[[15.5,0],[16,2],[20,7.5]]}}},{id:"tunnel-minor",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["==","class","minor_road"]],layout:{"line-join":"round"},paint:{"line-color":"#fff","line-opacity":1,"line-width":{base:1.2,stops:[[13.5,0],[14,2.5],[20,11.5]]}}},{id:"tunnel-secondary-tertiary",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["in","class","secondary","tertiary"]],layout:{"line-join":"round"},paint:{"line-color":"#fff4c6","line-width":{base:1.2,stops:[[6.5,0],[7,.5],[20,10]]}}},{id:"tunnel-trunk-primary",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["in","class","primary","trunk"]],layout:{"line-join":"round"},paint:{"line-color":"#fff4c6","line-width":{base:1.2,stops:[[6.5,0],[7,.5],[20,18]]},"line-opacity":.5}},{id:"tunnel-motorway",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["==","class","motorway"]],layout:{"line-join":"round",visibility:"visible"},paint:{"line-color":"#ffdaa6","line-width":{base:1.2,stops:[[6.5,0],[7,.5],[20,18]]},"line-opacity":.5}},{id:"tunnel-railway",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["==","class","rail"]],paint:{"line-color":"#bbb","line-width":{base:1.4,stops:[[14,.4],[15,.75],[20,2]]},"line-dasharray":[2,2]}},{id:"ferry",type:"line",source:"openmaptiles","source-layer":"transportation",filter:["all",["in","class","ferry"]],layout:{"line-join":"round",visibility:"visible"},paint:{"line-color":"rgba(108, 159, 182, 1)","line-width":1.1,"line-dasharray":[2,2]}},{id:"aeroway-taxiway-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"aeroway",minzoom:12,filter:["all",["in","class","taxiway"]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"rgba(153, 153, 153, 1)","line-width":{base:1.5,stops:[[11,2],[17,12]]},"line-opacity":1}},{id:"aeroway-runway-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"aeroway",minzoom:12,filter:["all",["in","class","runway"]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"rgba(153, 153, 153, 1)","line-width":{base:1.5,stops:[[11,5],[17,55]]},"line-opacity":1}},{id:"aeroway-taxiway",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"aeroway",minzoom:4,filter:["all",["in","class","taxiway"],["==","$type","LineString"]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"rgba(255, 255, 255, 1)","line-width":{base:1.5,stops:[[11,1],[17,10]]},"line-opacity":{base:1,stops:[[11,0],[12,1]]}}},{id:"aeroway-runway",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"aeroway",minzoom:4,filter:["all",["in","class","runway"],["==","$type","LineString"]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"rgba(255, 255, 255, 1)","line-width":{base:1.5,stops:[[11,4],[17,50]]},"line-opacity":{base:1,stops:[[11,0],[12,1]]}}},{id:"highway-motorway-link-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",minzoom:12,filter:["all",["!in","brunnel","bridge","tunnel"],["==","class","motorway_link"]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"#e9ac77","line-opacity":1,"line-width":{base:1.2,stops:[[12,1],[13,3],[14,4],[20,15]]}}},{id:"highway-link-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",minzoom:13,filter:["all",["!in","brunnel","bridge","tunnel"],["in","class","primary_link","secondary_link","tertiary_link","trunk_link"]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"#e9ac77","line-opacity":1,"line-width":{base:1.2,stops:[[12,1],[13,3],[14,4],[20,15]]}}},{id:"highway-minor-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["!=","brunnel","tunnel"],["in","class","minor","service","track"]]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"#cfcdca","line-opacity":{stops:[[12,0],[12.5,0]]},"line-width":{base:1.2,stops:[[12,.5],[13,1],[14,4],[20,15]]}}},{id:"highway-secondary-tertiary-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["!in","brunnel","bridge","tunnel"],["in","class","secondary","tertiary"]],layout:{"line-cap":"butt","line-join":"round",visibility:"visible"},paint:{"line-color":"#e9ac77","line-opacity":.5,"line-width":{base:1.2,stops:[[8,1.5],[20,17]]}}},{id:"highway-primary-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",minzoom:5,filter:["all",["!in","brunnel","bridge","tunnel"],["in","class","primary"]],layout:{"line-cap":"butt","line-join":"round",visibility:"visible"},paint:{"line-color":"#e9ac77","line-opacity":{stops:[[7,0],[8,.6]]},"line-width":{base:1.2,stops:[[7,0],[8,.6],[9,1.5],[20,22]]}}},{id:"highway-trunk-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",minzoom:5,filter:["all",["!in","brunnel","bridge","tunnel"],["in","class","trunk"]],layout:{"line-cap":"butt","line-join":"round",visibility:"visible"},paint:{"line-color":"#e9ac77","line-opacity":{stops:[[5,0],[6,.5]]},"line-width":{base:1.2,stops:[[5,0],[6,.6],[7,1.5],[20,22]]}}},{id:"highway-motorway-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",minzoom:4,filter:["all",["!in","brunnel","bridge","tunnel"],["==","class","motorway"]],layout:{"line-cap":"butt","line-join":"round",visibility:"visible"},paint:{"line-color":"#e9ac77","line-width":{base:1.2,stops:[[4,0],[5,.4],[6,.6],[7,1.5],[20,22]]},"line-opacity":{stops:[[4,0],[5,.5]]}}},{id:"highway-path",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["!in","brunnel","bridge","tunnel"],["==","class","path"]]],paint:{"line-color":"#cba","line-dasharray":[1.5,.75],"line-width":{base:1.2,stops:[[15,1.2],[20,4]]}}},{id:"highway-motorway-link",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",minzoom:12,filter:["all",["!in","brunnel","bridge","tunnel"],["==","class","motorway_link"]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"#fc8","line-width":{base:1.2,stops:[[12.5,0],[13,1.5],[14,2.5],[20,11.5]]}}},{id:"highway-link",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",minzoom:13,filter:["all",["!in","brunnel","bridge","tunnel"],["in","class","primary_link","secondary_link","tertiary_link","trunk_link"]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"#fea","line-width":{base:1.2,stops:[[12.5,0],[13,1.5],[14,2.5],[20,11.5]]}}},{id:"highway-minor",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["!=","brunnel","tunnel"],["in","class","minor","service","track"]]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"#fff","line-opacity":.5,"line-width":{base:1.2,stops:[[13.5,0],[14,2.5],[20,11.5]]}}},{id:"highway-secondary-tertiary",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["!in","brunnel","bridge","tunnel"],["in","class","secondary","tertiary"]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"#fea","line-width":{base:1.2,stops:[[6.5,0],[8,.5],[20,13]]},"line-opacity":.5}},{id:"highway-primary",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["!in","brunnel","bridge","tunnel"],["in","class","primary"]]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"#fea","line-width":{base:1.2,stops:[[8.5,0],[9,.5],[20,18]]},"line-opacity":0}},{id:"highway-trunk",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["!in","brunnel","bridge","tunnel"],["in","class","trunk"]]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"#fea","line-width":{base:1.2,stops:[[6.5,0],[7,.5],[20,18]]},"line-opacity":.5}},{id:"highway-motorway",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",minzoom:5,filter:["all",["==","$type","LineString"],["all",["!in","brunnel","bridge","tunnel"],["==","class","motorway"]]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"#fc8","line-width":{base:1.2,stops:[[6.5,0],[7,.5],[20,18]]},"line-opacity":.5}},{id:"railway-transit",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["==","class","transit"],["!in","brunnel","tunnel"]]],layout:{visibility:"visible"},paint:{"line-color":"hsla(0, 0%, 73%, 0.77)","line-width":{base:1.4,stops:[[14,.4],[20,1]]}}},{id:"railway-transit-hatching",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["==","class","transit"],["!in","brunnel","tunnel"]]],layout:{visibility:"visible"},paint:{"line-color":"hsla(0, 0%, 73%, 0.68)","line-dasharray":[.2,8],"line-width":{base:1.4,stops:[[14.5,0],[15,2],[20,6]]}}},{id:"railway-service",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["==","class","rail"],["has","service"]]],paint:{"line-color":"hsla(0, 0%, 73%, 0.77)","line-width":{base:1.4,stops:[[14,.4],[20,1]]}}},{id:"railway-service-hatching",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["==","class","rail"],["has","service"]]],layout:{visibility:"visible"},paint:{"line-color":"hsla(0, 0%, 73%, 0.68)","line-dasharray":[.2,8],"line-width":{base:1.4,stops:[[14.5,0],[15,2],[20,6]]}}},{id:"railway",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["!has","service"],["!in","brunnel","bridge","tunnel"],["==","class","rail"]]],paint:{"line-color":"#bbb","line-width":{base:1.4,stops:[[14,.4],[15,.75],[20,2]]}}},{id:"railway-hatching",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["!has","service"],["!in","brunnel","bridge","tunnel"],["==","class","rail"]]],paint:{"line-color":"#bbb","line-dasharray":[.2,8],"line-width":{base:1.4,stops:[[14.5,0],[15,3],[20,8]]}}},{id:"bridge-motorway-link-casing",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["==","class","motorway_link"]],layout:{"line-join":"round"},paint:{"line-color":"#e9ac77","line-opacity":1,"line-width":{base:1.2,stops:[[12,1],[13,3],[14,4],[20,15]]}}},{id:"bridge-link-casing",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["in","class","primary_link","secondary_link","tertiary_link","trunk_link"]],layout:{"line-join":"round"},paint:{"line-color":"#e9ac77","line-opacity":1,"line-width":{base:1.2,stops:[[12,1],[13,3],[14,4],[20,15]]}}},{id:"bridge-secondary-tertiary-casing",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["in","class","secondary","tertiary"]],layout:{"line-join":"round"},paint:{"line-color":"#e9ac77","line-opacity":1,"line-width":{base:1.2,stops:[[8,1.5],[20,28]]}}},{id:"bridge-trunk-primary-casing",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["in","class","primary","trunk"]],layout:{"line-join":"round"},paint:{"line-color":"hsl(28, 76%, 67%)","line-width":{base:1.2,stops:[[5,.4],[6,.6],[7,1.5],[20,26]]}}},{id:"bridge-motorway-casing",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["==","class","motorway"]],layout:{"line-join":"round"},paint:{"line-color":"#e9ac77","line-width":{base:1.2,stops:[[5,.4],[6,.6],[7,1.5],[20,22]]},"line-opacity":.5}},{id:"bridge-path-casing",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["==","brunnel","bridge"],["==","class","path"]]],paint:{"line-color":"#f8f4f0","line-width":{base:1.2,stops:[[15,1.2],[20,18]]}}},{id:"bridge-path",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["==","brunnel","bridge"],["==","class","path"]]],paint:{"line-color":"#cba","line-width":{base:1.2,stops:[[15,1.2],[20,4]]},"line-dasharray":[1.5,.75]}},{id:"bridge-motorway-link",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["==","class","motorway_link"]],layout:{"line-join":"round"},paint:{"line-color":"#fc8","line-width":{base:1.2,stops:[[12.5,0],[13,1.5],[14,2.5],[20,11.5]]}}},{id:"bridge-link",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["in","class","primary_link","secondary_link","tertiary_link","trunk_link"]],layout:{"line-join":"round"},paint:{"line-color":"#fea","line-width":{base:1.2,stops:[[12.5,0],[13,1.5],[14,2.5],[20,11.5]]}}},{id:"bridge-secondary-tertiary",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["in","class","secondary","tertiary"]],layout:{"line-join":"round"},paint:{"line-color":"#fea","line-width":{base:1.2,stops:[[6.5,0],[7,.5],[20,20]]}}},{id:"bridge-trunk-primary",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["in","class","primary","trunk"]],layout:{"line-join":"round"},paint:{"line-color":"#fea","line-width":{base:1.2,stops:[[6.5,0],[7,.5],[20,18]]}}},{id:"bridge-motorway",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["==","class","motorway"]],layout:{"line-join":"round"},paint:{"line-color":"#fc8","line-width":{base:1.2,stops:[[6.5,0],[7,.5],[20,18]]},"line-opacity":.5}},{id:"bridge-railway",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["==","class","rail"]],paint:{"line-color":"#bbb","line-width":{base:1.4,stops:[[14,.4],[15,.75],[20,2]]}}},{id:"bridge-railway-hatching",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["==","class","rail"]],paint:{"line-color":"#bbb","line-dasharray":[.2,8],"line-width":{base:1.4,stops:[[14.5,0],[15,3],[20,8]]}}},{id:"cablecar",type:"line",source:"openmaptiles","source-layer":"transportation",minzoom:13,filter:["==","class","cable_car"],layout:{visibility:"visible","line-cap":"round"},paint:{"line-color":"hsl(0, 0%, 70%)","line-width":{base:1,stops:[[11,1],[19,2.5]]}}},{id:"cablecar-dash",type:"line",source:"openmaptiles","source-layer":"transportation",minzoom:13,filter:["==","class","cable_car"],layout:{visibility:"visible","line-cap":"round"},paint:{"line-color":"hsl(0, 0%, 70%)","line-width":{base:1,stops:[[11,3],[19,5.5]]},"line-dasharray":[2,3]}},{id:"boundary-land-level-4",type:"line",source:"openmaptiles","source-layer":"boundary",filter:["all",[">=","admin_level",4],["<=","admin_level",8],["!=","maritime",1]],layout:{"line-join":"round"},paint:{"line-color":"#9e9cab","line-dasharray":[3,1,1,1],"line-width":{base:1.4,stops:[[4,.4],[5,1],[12,3]]},"line-opacity":.6}},{id:"boundary-land-level-2",type:"line",source:"openmaptiles","source-layer":"boundary",filter:["all",["==","admin_level",2],["!=","maritime",1],["!=","disputed",1]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"hsl(248, 7%, 66%)","line-width":{base:1,stops:[[0,.6],[4,1.4],[5,2],[12,2]]}}},{id:"boundary-land-disputed",type:"line",source:"openmaptiles","source-layer":"boundary",filter:["all",["!=","maritime",1],["==","disputed",1]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"hsl(248, 7%, 70%)","line-dasharray":[1,3],"line-width":{base:1,stops:[[0,.6],[4,1.4],[5,2],[12,8]]}}},{id:"boundary-water",type:"line",source:"openmaptiles","source-layer":"boundary",filter:["all",["in","admin_level",2,4],["==","maritime",1]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"rgba(154, 189, 214, 1)","line-width":{base:1,stops:[[0,.6],[4,1],[5,1],[12,1]]},"line-opacity":{stops:[[6,0],[10,0]]}}},{id:"waterway-name",type:"symbol",source:"openmaptiles","source-layer":"waterway",minzoom:13,filter:["all",["==","$type","LineString"],["has","name"]],layout:{"text-font":["Noto Sans Italic"],"text-size":14,"text-field":"{name:latin} {name:nonlatin}","text-max-width":5,"text-rotation-alignment":"map","symbol-placement":"line","text-letter-spacing":.2,"symbol-spacing":350},paint:{"text-color":"#74aee9","text-halo-width":1.5,"text-halo-color":"rgba(255,255,255,0.7)"}},{id:"water-name-lakeline",type:"symbol",source:"openmaptiles","source-layer":"water_name",filter:["==","$type","LineString"],layout:{"text-font":["Noto Sans Italic"],"text-size":14,"text-field":`{name:latin} {name:nonlatin}`,"text-max-width":5,"text-rotation-alignment":"map","symbol-placement":"line","symbol-spacing":350,"text-letter-spacing":.2},paint:{"text-color":"#74aee9","text-halo-width":1.5,"text-halo-color":"rgba(255,255,255,0.7)"}},{id:"water-name-ocean",type:"symbol",source:"openmaptiles","source-layer":"water_name",filter:["all",["==","$type","Point"],["==","class","ocean"]],layout:{"text-font":["Noto Sans Italic"],"text-size":14,"text-field":"{name:latin}","text-max-width":5,"text-rotation-alignment":"map","symbol-placement":"point","symbol-spacing":350,"text-letter-spacing":.2},paint:{"text-color":"#74aee9","text-halo-width":1.5,"text-halo-color":"rgba(255,255,255,0.7)"}},{id:"water-name-other",type:"symbol",source:"openmaptiles","source-layer":"water_name",filter:["all",["==","$type","Point"],["!in","class","ocean"]],layout:{"text-font":["Noto Sans Italic"],"text-size":{stops:[[0,10],[6,14]]},"text-field":`{name:latin} {name:nonlatin}`,"text-max-width":5,"text-rotation-alignment":"map","symbol-placement":"point","symbol-spacing":350,"text-letter-spacing":.2,visibility:"visible"},paint:{"text-color":"#74aee9","text-halo-width":1.5,"text-halo-color":"rgba(255,255,255,0.7)"}},{id:"poi-level-3",type:"symbol",source:"openmaptiles","source-layer":"poi",minzoom:16,filter:["all",["==","$type","Point"],[">=","rank",25]],layout:{"text-padding":2,"text-font":["Noto Sans Regular"],"text-anchor":"top","icon-image":"{class}_11","text-field":`{name:latin} {name:nonlatin}`,"text-offset":[0,.6],"text-size":12,"text-max-width":9},paint:{"text-halo-blur":.5,"text-color":"#666","text-halo-width":1,"text-halo-color":"#ffffff"}},{id:"poi-level-2",type:"symbol",source:"openmaptiles","source-layer":"poi",minzoom:15,filter:["all",["==","$type","Point"],["<=","rank",24],[">=","rank",15]],layout:{"text-padding":2,"text-font":["Noto Sans Regular"],"text-anchor":"top","icon-image":"{class}_11","text-field":`{name:latin} @@ -32,10 +32,10 @@ {name:nonlatin}`,"text-max-width":8,visibility:"visible"},paint:{"text-color":"rgba(255, 255, 255, 1)","text-halo-width":1.2,"text-halo-color":"rgba(10, 9, 9, 0.8)"}},{id:"place-town",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",filter:["==","class","town"],layout:{"text-font":["Noto Sans Regular"],"text-size":{base:1.2,stops:[[10,14],[15,24]]},"text-field":`{name:latin} {name:nonlatin}`,"text-max-width":8,visibility:"visible"},paint:{"text-color":"rgba(255, 255, 255, 1)","text-halo-width":1.2,"text-halo-color":"rgba(22, 22, 22, 0.8)"}},{id:"place-city",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",filter:["all",["!=","capital",2],["==","class","city"]],layout:{"text-font":["Noto Sans Regular"],"text-size":{base:1.2,stops:[[7,14],[11,24]]},"text-field":`{name:latin} {name:nonlatin}`,"text-max-width":8,visibility:"visible"},paint:{"text-color":"rgba(0, 0, 0, 1)","text-halo-width":1.2,"text-halo-color":"rgba(255,255,255,0.8)"}},{id:"place-city-capital",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",filter:["all",["==","capital",2],["==","class","city"]],layout:{"text-font":["Noto Sans Regular"],"text-size":{base:1.2,stops:[[7,14],[11,24]]},"text-field":`{name:latin} -{name:nonlatin}`,"text-max-width":8,"icon-image":"star_11","text-offset":[.4,0],"icon-size":.8,"text-anchor":"left",visibility:"visible"},paint:{"text-color":"#333","text-halo-width":1.2,"text-halo-color":"rgba(255,255,255,0.8)"}},{id:"place-country-other",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",filter:["all",["==","class","country"],[">=","rank",3],["!has","iso_a2"]],layout:{"text-font":["Noto Sans Italic"],"text-field":"{name:latin}","text-size":{stops:[[3,11],[7,17]]},"text-transform":"uppercase","text-max-width":6.25,visibility:"visible"},paint:{"text-halo-blur":1,"text-color":"#334","text-halo-width":2,"text-halo-color":"rgba(255,255,255,0.8)"}},{id:"place-country-3",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",filter:["all",["==","class","country"],[">=","rank",3],["has","iso_a2"]],layout:{"text-font":["Noto Sans Bold"],"text-field":"{name:latin}","text-size":{stops:[[3,11],[7,17]]},"text-transform":"uppercase","text-max-width":6.25,visibility:"visible"},paint:{"text-halo-blur":1,"text-color":"#334","text-halo-width":2,"text-halo-color":"rgba(255,255,255,0.8)"}},{id:"place-country-2",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",filter:["all",["==","class","country"],["==","rank",2],["has","iso_a2"]],layout:{"text-font":["Noto Sans Bold"],"text-field":"{name:latin}","text-size":{stops:[[2,11],[5,17]]},"text-transform":"uppercase","text-max-width":6.25,visibility:"visible"},paint:{"text-halo-blur":1,"text-color":"#334","text-halo-width":2,"text-halo-color":"rgba(255,255,255,0.8)"}},{id:"place-country-1",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",filter:["all",["==","class","country"],["==","rank",1],["has","iso_a2"]],layout:{"text-font":["Noto Sans Bold"],"text-field":"{name:latin}","text-size":{stops:[[1,11],[4,17]]},"text-transform":"uppercase","text-max-width":6.25,visibility:"visible"},paint:{"text-halo-blur":1,"text-color":"#334","text-halo-width":2,"text-halo-color":"rgba(255,255,255,0.8)"}},{id:"place-continent",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",maxzoom:1,filter:["==","class","continent"],layout:{"text-font":["Noto Sans Bold"],"text-field":"{name:latin}","text-size":14,"text-max-width":6.25,"text-transform":"uppercase",visibility:"visible"},paint:{"text-halo-blur":1,"text-color":"#334","text-halo-width":2,"text-halo-color":"rgba(255,255,255,0.8)"}}],id:"qebnlkra6"}});var pee=X((xat,dee)=>{"use strict";dee.exports={version:8,name:"orto",metadata:{},center:[1.537786,41.837539],zoom:12,bearing:0,pitch:0,light:{anchor:"viewport",color:"white",intensity:.4,position:[1.15,45,30]},sources:{ortoEsri:{type:"raster",tiles:["https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}"],tileSize:256,maxzoom:18,attribution:"ESRI © ESRI"},ortoInstaMaps:{type:"raster",tiles:["https://tilemaps.icgc.cat/mapfactory/wmts/orto_8_12/CAT3857/{z}/{x}/{y}.png"],tileSize:256,maxzoom:13},ortoICGC:{type:"raster",tiles:["https://geoserveis.icgc.cat/icc_mapesmultibase/noutm/wmts/orto/GRID3857/{z}/{x}/{y}.jpeg"],tileSize:256,minzoom:13.1,maxzoom:20},openmaptiles:{type:"vector",url:"https://geoserveis.icgc.cat/contextmaps/basemap.json"}},sprite:"https://geoserveis.icgc.cat/contextmaps/sprites/sprite@1",glyphs:"https://geoserveis.icgc.cat/contextmaps/glyphs/{fontstack}/{range}.pbf",layers:[{id:"background",type:"background",paint:{"background-color":"#F4F9F4"}},{id:"ortoEsri",type:"raster",source:"ortoEsri",maxzoom:16,layout:{visibility:"visible"}},{id:"ortoICGC",type:"raster",source:"ortoICGC",minzoom:13.1,maxzoom:19,layout:{visibility:"visible"}},{id:"ortoInstaMaps",type:"raster",source:"ortoInstaMaps",maxzoom:13,layout:{visibility:"visible"}}]}});var Cf=X((bat,_ee)=>{"use strict";var PFe=(Ix(),ct(Px)).default,IFe=fee(),LFe=pee(),zFe='\xA9 OpenStreetMap contributors',mee="https://basemaps.cartocdn.com/gl/positron-gl-style/style.json",vee="https://basemaps.cartocdn.com/gl/dark-matter-gl-style/style.json",Y5="https://basemaps.cartocdn.com/gl/voyager-gl-style/style.json",RFe="https://basemaps.cartocdn.com/gl/positron-nolabels-gl-style/style.json",BFe="https://basemaps.cartocdn.com/gl/dark-matter-nolabels-gl-style/style.json",qFe="https://basemaps.cartocdn.com/gl/voyager-nolabels-gl-style/style.json",yee={basic:Y5,streets:Y5,outdoors:Y5,light:mee,dark:vee,satellite:LFe,"satellite-streets":IFe,"open-street-map":{id:"osm",version:8,sources:{"plotly-osm-tiles":{type:"raster",attribution:zFe,tiles:["https://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":mee,"carto-darkmatter":vee,"carto-voyager":Y5,"carto-positron-nolabels":RFe,"carto-darkmatter-nolabels":BFe,"carto-voyager-nolabels":qFe},gee=PFe(yee);_ee.exports={styleValueDflt:"basic",stylesMap:yee,styleValuesMap:gee,traceLayerPrefix:"plotly-trace-layer-",layoutLayerPrefix:"plotly-layout-layer-",missingStyleErrorMsg:["No valid maplibre style found, please set `map.style` to one of:",gee.join(", "),"or use a tile service."].join(` -`),mapOnErrorMsg:"Map error.",fitBoundsPadding:20}});var py=X((wat,Tee)=>{"use strict";var xee=et(),bee=qr().defaultLine,OFe=U5().attributes,NFe=to(),VFe=nh().textposition,UFe=Is().overrideAll,GFe=Bi().templatedArray,wee=Cf(),Aee=NFe({noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0});Aee.family.dflt="Open Sans Regular, Arial Unicode MS Regular";var jFe=Tee.exports=UFe({_arrayAttrRegexps:[xee.counterRegex("map",".layers",!0)],domain:OFe({name:"map"}),style:{valType:"any",values:wee.styleValuesMap,dflt:wee.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},fitbounds:{valType:"enumerated",values:[!1,"locations"],dflt:"locations"},bounds:{west:{valType:"number"},east:{valType:"number"},south:{valType:"number"},north:{valType:"number"}},layers:GFe("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:bee},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:bee}},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:Aee,textposition:xee.extendFlat({},VFe,{arrayOk:!1})}})},"plot","from-root");jFe.uirevision={valType:"any",editType:"none"}});var W5=X((Aat,Eee)=>{"use strict";var{hovertemplateAttrs:$Fe,texttemplateAttrs:HFe,templatefallbackAttrs:Mee}=tc(),ZFe=E3(),my=T9(),W1=nh(),Dee=py(),YFe=Go(),WFe=eh(),Cd=Ta().extendFlat,XFe=Is().overrideAll,KFe=py(),See=my.line,X1=my.marker;Eee.exports=XFe({lon:my.lon,lat:my.lat,cluster:{enabled:{valType:"boolean"},maxzoom:Cd({},KFe.layers.maxzoom,{}),step:{valType:"number",arrayOk:!0,dflt:-1,min:-1},size:{valType:"number",arrayOk:!0,dflt:20,min:0},color:{valType:"color",arrayOk:!0},opacity:Cd({},X1.opacity,{dflt:1})},mode:Cd({},W1.mode,{dflt:"markers"}),text:Cd({},W1.text,{}),texttemplate:HFe({editType:"plot"},{keys:["lat","lon","text"]}),texttemplatefallback:Mee({editType:"plot"}),hovertext:Cd({},W1.hovertext,{}),line:{color:See.color,width:See.width},connectgaps:W1.connectgaps,marker:Cd({symbol:{valType:"string",dflt:"circle",arrayOk:!0},angle:{valType:"number",dflt:"auto",arrayOk:!0},allowoverlap:{valType:"boolean",dflt:!1},opacity:X1.opacity,size:X1.size,sizeref:X1.sizeref,sizemin:X1.sizemin,sizemode:X1.sizemode},WFe("marker")),fill:my.fill,fillcolor:ZFe(),textfont:Dee.layers.symbol.textfont,textposition:Dee.layers.symbol.textposition,below:{valType:"string"},selected:{marker:W1.selected.marker},unselected:{marker:W1.unselected.marker},hoverinfo:Cd({},YFe.hoverinfo,{flags:["lon","lat","text","name"]}),hovertemplate:$Fe(),hovertemplatefallback:Mee()},"calc","nested")});var M9={};Zi(M9,{isSupportedFont:()=>QFe});function QFe(e){return JFe.indexOf(e)!==-1}var JFe,D9=Vi(()=>{"use strict";JFe=["Metropolis Black Italic","Metropolis Black","Metropolis Bold Italic","Metropolis Bold","Metropolis Extra Bold Italic","Metropolis Extra Bold","Metropolis Extra Light Italic","Metropolis Extra Light","Metropolis Light Italic","Metropolis Light","Metropolis Medium Italic","Metropolis Medium","Metropolis Regular Italic","Metropolis Regular","Metropolis Semi Bold Italic","Metropolis Semi Bold","Metropolis Thin Italic","Metropolis Thin","Open Sans Bold Italic","Open Sans Bold","Open Sans Extrabold Italic","Open Sans Extrabold","Open Sans Italic","Open Sans Light Italic","Open Sans Light","Open Sans Regular","Open Sans Semibold Italic","Open Sans Semibold","Klokantech Noto Sans Bold","Klokantech Noto Sans CJK Bold","Klokantech Noto Sans CJK Regular","Klokantech Noto Sans Italic","Klokantech Noto Sans Regular"]});var Fee=X((Tat,Cee)=>{"use strict";var vy=et(),S9=wo(),ePe=KD(),tPe=JD(),rPe=QD(),iPe=eS(),kee=W5(),aPe=(D9(),ct(M9)).isSupportedFont;Cee.exports=function(t,r,i,a){function n(y,x){return vy.coerce(t,r,kee,y,x)}function o(y,x){return vy.coerce2(t,r,kee,y,x)}var s=nPe(t,r,n);if(!s){r.visible=!1;return}if(n("text"),n("texttemplate"),n("texttemplatefallback"),n("hovertext"),n("hovertemplate"),n("hovertemplatefallback"),n("mode"),n("below"),S9.hasMarkers(r)){ePe(t,r,i,a,n,{noLine:!0,noAngle:!0}),n("marker.allowoverlap"),n("marker.angle");var l=r.marker;l.symbol!=="circle"&&(vy.isArrayOrTypedArray(l.size)&&(l.size=l.size[0]),vy.isArrayOrTypedArray(l.color)&&(l.color=l.color[0]))}S9.hasLines(r)&&(tPe(t,r,i,a,n,{noDash:!0}),n("connectgaps"));var u=o("cluster.maxzoom"),c=o("cluster.step"),h=o("cluster.color",r.marker&&r.marker.color||i),f=o("cluster.size"),d=o("cluster.opacity"),p=u!==!1||c!==!1||h!==!1||f!==!1||d!==!1,m=n("cluster.enabled",p);if(m||S9.hasText(r)){var g=a.font.family;rPe(t,r,a,n,{noSelect:!0,noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0,font:{family:aPe(g)?g:"Open Sans Regular",weight:a.font.weight,style:a.font.style,size:a.font.size,color:a.font.color}})}n("fill"),r.fill!=="none"&&iPe(t,r,i,n),vy.coerceSelectionMarkerOpacity(r,n)};function nPe(e,t,r){var i=r("lon")||[],a=r("lat")||[],n=Math.min(i.length,a.length);return t._length=n,n}});var E9=X((Mat,Iee)=>{"use strict";var Pee=ta();Iee.exports=function(t,r,i){var a={},n=i[r.subplot]._subplot,o=n.mockAxis,s=t.lonlat;return a.lonLabel=Pee.tickText(o,o.c2l(s[0]),!0).text,a.latLabel=Pee.tickText(o,o.c2l(s[1]),!0).text,a}});var qee=X((Dat,Bee)=>{"use strict";var k9=Br(),Lee=(Ki(),ct(na)).BADNUM,oPe=iS(),sPe=Wg(),lPe=a5(),uPe=et().isArrayOrTypedArray,zee=et()._;function Ree(e){return e&&typeof e=="string"}Bee.exports=function(t,r){var i=uPe(r.locations),a=i?r.locations.length:r._length,n=new Array(a),o;r.geojson?o=function(f){return Ree(f)||k9(f)}:o=Ree;for(var s=0;s{"use strict";var cPe=(Ki(),ct(na)).BADNUM;gy.calcTraceToLineCoords=function(e){for(var t=e[0].trace,r=t.connectgaps,i=[],a=[],n=0;n0&&(i.push(a),a=[])}return a.length>0&&i.push(a),i};gy.makeLine=function(e){return e.length===1?{type:"LineString",coordinates:e[0]}:{type:"MultiLineString",coordinates:e}};gy.makePolygon=function(e){if(e.length===1)return{type:"Polygon",coordinates:e};for(var t=new Array(e.length),r=0;r{"use strict";var Oee=et();Nee.exports=function(t,r){var i=t.split(" "),a=i[0],n=i[1],o=Oee.isArrayOrTypedArray(r)?Oee.mean(r):r,s=.5+o/100,l=1.5+o/100,u=["",""],c=[0,0];switch(a){case"top":u[0]="top",c[1]=-l;break;case"bottom":u[0]="bottom",c[1]=l;break}switch(n){case"left":u[1]="right",c[0]=-s;break;case"right":u[1]="left",c[0]=s;break}var h;return u[0]&&u[1]?h=u.join("-"):u[0]?h=u[0]:u[1]?h=u[1]:h="center",{anchor:h,offset:c}}});var Hee=X((kat,$ee)=>{"use strict";var Gee=Br(),Gn=et(),hPe=(Ki(),ct(na)).BADNUM,J5=X5(),Vee=u1(),fPe=xi(),dPe=x8(),Q5=wo(),pPe=(D9(),ct(M9)).isSupportedFont,mPe=C9(),vPe=nc().appendArrayPointValue,gPe=sn().NEWLINES,yPe=sn().BR_TAG_ALL;$ee.exports=function(t,r){var i=r[0].trace,a=i.visible===!0&&i._length!==0,n=i.fill!=="none",o=Q5.hasLines(i),s=Q5.hasMarkers(i),l=Q5.hasText(i),u=s&&i.marker.symbol==="circle",c=s&&i.marker.symbol!=="circle",h=i.cluster&&i.cluster.enabled,f=K5("fill"),d=K5("line"),p=K5("circle"),m=K5("symbol"),g={fill:f,line:d,circle:p,symbol:m};if(!a)return g;var y;if((n||o)&&(y=J5.calcTraceToLineCoords(r)),n&&(f.geojson=J5.makePolygon(y),f.layout.visibility="visible",Gn.extendFlat(f.paint,{"fill-color":i.fillcolor})),o&&(d.geojson=J5.makeLine(y),d.layout.visibility="visible",Gn.extendFlat(d.paint,{"line-width":i.line.width,"line-color":i.line.color,"line-opacity":i.opacity})),u){var x=_Pe(r);p.geojson=x.geojson,p.layout.visibility="visible",h&&(p.filter=["!",["has","point_count"]],g.cluster={type:"circle",filter:["has","point_count"],layout:{visibility:"visible"},paint:{"circle-color":P9(i.cluster.color,i.cluster.step),"circle-radius":P9(i.cluster.size,i.cluster.step),"circle-opacity":P9(i.cluster.opacity,i.cluster.step)}},g.clusterCount={type:"symbol",filter:["has","point_count"],paint:{},layout:{"text-field":"{point_count_abbreviated}","text-font":Uee(i),"text-size":12}}),Gn.extendFlat(p.paint,{"circle-color":x.mcc,"circle-radius":x.mrc,"circle-opacity":x.mo})}if(u&&h&&(p.filter=["!",["has","point_count"]]),(c||l)&&(m.geojson=xPe(r,t),Gn.extendFlat(m.layout,{visibility:"visible","icon-image":"{symbol}","text-field":"{text}"}),c&&(Gn.extendFlat(m.layout,{"icon-size":i.marker.size/10}),"angle"in i.marker&&i.marker.angle!=="auto"&&Gn.extendFlat(m.layout,{"icon-rotate":{type:"identity",property:"angle"},"icon-rotation-alignment":"map"}),m.layout["icon-allow-overlap"]=i.marker.allowoverlap,Gn.extendFlat(m.paint,{"icon-opacity":i.opacity*i.marker.opacity,"icon-color":i.marker.color,"icon-halo-color":i.marker.color,"icon-halo-width":2,"icon-halo-blur":1.5})),l)){var w=(i.marker||{}).size,_=mPe(i.textposition,w);Gn.extendFlat(m.layout,{"text-size":i.textfont.size,"text-anchor":_.anchor,"text-offset":_.offset,"text-font":Uee(i)}),Gn.extendFlat(m.paint,{"text-color":i.textfont.color,"text-opacity":i.opacity})}return g};function K5(e){return{type:e,geojson:J5.makeBlank(),layout:{visibility:"none"},filter:null,paint:{}}}function _Pe(e){var t=e[0].trace,r=t.marker,i=t.selectedpoints,a=Gn.isArrayOrTypedArray(r.color),n=Gn.isArrayOrTypedArray(r.size),o=Gn.isArrayOrTypedArray(r.opacity),s;function l(w){return t.opacity*w}function u(w){return w/2}var c;a&&(Vee.hasColorscale(t,"marker")?c=Vee.makeColorScaleFuncFromTrace(r):c=Gn.identity);var h;n&&(h=dPe(t));var f;o&&(f=function(w){var _=Gee(w)?+Gn.constrain(w,0,1):0;return l(_)});var d=[];for(s=0;s850?s+=" Black":a>750?s+=" Extra Bold":a>650?s+=" Bold":a>550?s+=" Semi Bold":a>450?s+=" Medium":a>350?s+=" Regular":a>250?s+=" Light":a>150?s+=" Extra Light":s+=" Thin"):n.slice(0,2).join(" ")==="Open Sans"?(s="Open Sans",a>750?s+=" Extrabold":a>650?s+=" Bold":a>550?s+=" Semibold":a>350?s+=" Regular":s+=" Light"):n.slice(0,3).join(" ")==="Klokantech Noto Sans"&&(s="Klokantech Noto Sans",n[3]==="CJK"&&(s+=" CJK"),s+=a>500?" Bold":" Regular")),o&&(s+=" Italic"),s==="Open Sans Regular Italic"?s="Open Sans Italic":s==="Open Sans Regular Bold"?s="Open Sans Bold":s==="Open Sans Regular Bold Italic"?s="Open Sans Bold Italic":s==="Klokantech Noto Sans Regular Italic"&&(s="Klokantech Noto Sans Italic"),pPe(s)||(s=r);var l=s.split(", ");return l}});var Xee=X((Cat,Wee)=>{"use strict";var bPe=et(),Zee=Hee(),K1=Cf().traceLayerPrefix,zl={cluster:["cluster","clusterCount","circle"],nonCluster:["fill","line","circle","symbol"]};function Yee(e,t,r,i){this.type="scattermap",this.subplot=e,this.uid=t,this.clusterEnabled=r,this.isHidden=i,this.sourceIds={fill:"source-"+t+"-fill",line:"source-"+t+"-line",circle:"source-"+t+"-circle",symbol:"source-"+t+"-symbol",cluster:"source-"+t+"-circle",clusterCount:"source-"+t+"-circle"},this.layerIds={fill:K1+t+"-fill",line:K1+t+"-line",circle:K1+t+"-circle",symbol:K1+t+"-symbol",cluster:K1+t+"-cluster",clusterCount:K1+t+"-cluster-count"},this.below=null}var yy=Yee.prototype;yy.addSource=function(e,t,r){var i={type:"geojson",data:t.geojson};r&&r.enabled&&bPe.extendFlat(i,{cluster:!0,clusterMaxZoom:r.maxzoom});var a=this.subplot.map.getSource(this.sourceIds[e]);a?a.setData(t.geojson):this.subplot.map.addSource(this.sourceIds[e],i)};yy.setSourceData=function(e,t){this.subplot.map.getSource(this.sourceIds[e]).setData(t.geojson)};yy.addLayer=function(e,t,r){var i={type:t.type,id:this.layerIds[e],source:this.sourceIds[e],layout:t.layout,paint:t.paint};t.filter&&(i.filter=t.filter);for(var a=this.layerIds[e],n,o=this.subplot.getMapLayers(),s=0;s=0;A--){var T=_[A];a.removeLayer(u.layerIds[T])}w||a.removeSource(u.sourceIds.circle)}function f(w){for(var _=zl.nonCluster,A=0;A<_.length;A++){var T=_[A],M=n[T];w||u.addSource(T,M),u.addLayer(T,M,o)}}function d(w){for(var _=zl.nonCluster,A=_.length-1;A>=0;A--){var T=_[A];a.removeLayer(u.layerIds[T]),w||a.removeSource(u.sourceIds[T])}}function p(w){l?h(w):d(w)}function m(w){s?c(w):f(w)}function g(){for(var w=s?zl.cluster:zl.nonCluster,_=0;_=0;i--){var a=r[i];t.removeLayer(this.layerIds[a]),t.removeSource(this.sourceIds[a])}};Wee.exports=function(t,r){var i=r[0].trace,a=i.cluster&&i.cluster.enabled,n=i.visible!==!0,o=new Yee(t,i.uid,a,n),s=Zee(t.gd,r),l=o.below=t.belowLookup["trace-"+i.uid],u,c,h;if(a)for(o.addSource("circle",s.circle,i.cluster),u=0;u{"use strict";var wPe=vu(),I9=et(),APe=bS(),TPe=I9.fillText,MPe=(Ki(),ct(na)).BADNUM,DPe=Cf().traceLayerPrefix;function SPe(e,t,r){var i=e.cd,a=i[0].trace,n=e.xa,o=e.ya,s=e.subplot,l=[],u=DPe+a.uid+"-circle",c=a.cluster&&a.cluster.enabled;if(c){var h=s.map.queryRenderedFeatures(null,{layers:[u]});l=h.map(function(S){return S.id})}var f=t>=0?Math.floor((t+180)/360):Math.ceil((t-180)/360),d=f*360,p=t-d;function m(S){var k=S.lonlat;if(k[0]===MPe||c&&l.indexOf(S.i+1)===-1)return 1/0;var P=I9.modHalf(k[0],360),I=k[1],B=s.project([P,I]),L=B.x-n.c2p([p,I]),z=B.y-o.c2p([P,r]),O=Math.max(3,S.mrc||0);return Math.max(Math.sqrt(L*L+z*z)-O,1-3/O)}if(wPe.getClosest(i,m,e),e.index!==!1){var g=i[e.index],y=g.lonlat,x=[I9.modHalf(y[0],360)+d,y[1]],w=n.c2p(x),_=o.c2p(x),A=g.mrc||1;e.x0=w-A,e.x1=w+A,e.y0=_-A,e.y1=_+A;var T={};T[a.subplot]={_subplot:s};var M=a._module.formatLabels(g,a,T);return e.lonLabel=M.lonLabel,e.latLabel=M.latLabel,e.color=APe(a,g),e.extraText=Kee(a,g,i[0].t.labels),e.hovertemplate=a.hovertemplate,[e]}}function Kee(e,t,r){if(e.hovertemplate)return;var i=t.hi||e.hoverinfo,a=i.split("+"),n=a.indexOf("all")!==-1,o=a.indexOf("lon")!==-1,s=a.indexOf("lat")!==-1,l=t.lonlat,u=[];function c(h){return h+"\xB0"}return n||o&&s?u.push("("+c(l[1])+", "+c(l[0])+")"):o?u.push(r.lon+c(l[0])):s&&u.push(r.lat+c(l[1])),(n||a.indexOf("text")!==-1)&&TPe(t,e,u),u.join("
")}Jee.exports={hoverPoints:SPe,getExtraText:Kee}});var ete=X((Pat,Qee)=>{"use strict";Qee.exports=function(t,r){return t.lon=r.lon,t.lat=r.lat,t}});var rte=X((Iat,tte)=>{"use strict";var EPe=et(),kPe=wo(),{BADNUM:CPe}=(Ki(),ct(na)),r4=360,L9=.001,i4=(e,t,r,i)=>[e.c2p([r,i]),t.c2p([r,i])];function FPe(e,t,r,i,a){let n=i4(e,t,r+r4,i),o=i4(e,t,r-r4,i),s=n[0]-a[0],l=n[1]-a[1],u=Math.abs(s-(a[0]-o[0])){if(Math.abs(o)a?null:[Math.floor(i)-1,Math.ceil(a)+1]}tte.exports=function(t,r){var c;let{cd:i,xaxis:a,yaxis:n}=t,{trace:o}=i[0];if(!kPe.hasMarkers(o))return[];if(r===!1){for(let h of i)h.selected=0;return[]}let s=(c=a._subplot)==null?void 0:c.map,l=!!(s!=null&&s.getRenderWorldCopies())&&r.xmax>r.xmin,u=[];for(let h=0;h=1)return 1;let f=c;for(let m=0;m<8;m++){let g=((o*f+n)*f+a)*f-c;if(Math.abs(g)g?d=f:p=f,f=(d+p)*.5}return((u*f+l)*f+s)*f}}function j4(){return _y!=null||(_y=typeof OffscreenCanvas<"u"&&!!new OffscreenCanvas(1,1).getContext("2d")&&typeof createImageBitmap=="function"),_y}function hk(){if(a4==null&&(a4=!1,j4())){let e=new OffscreenCanvas(5,5).getContext("2d",{willReadFrequently:!0});if(e){for(let r=0;r<25;r++){let i=r*4;e.fillStyle=`rgb(${i},${i+1},${i+2})`,e.fillRect(r%5,Math.floor(r/5),1,1)}let t=e.getImageData(0,0,5,5).data;for(let r=0;r<100;r++)if(r%4!=3&&t[r]!==r){a4=!0;break}}}return a4||!1}function fk(){var e=new Tn(9);return Tn!=Float32Array&&(e[1]=0,e[2]=0,e[3]=0,e[5]=0,e[6]=0,e[7]=0),e[0]=1,e[4]=1,e[8]=1,e}function NPe(e){var t=e[0],r=e[1],i=e[2],a=e[3],n=e[4],o=e[5],s=e[6],l=e[7],u=e[8];return t*(u*n-o*l)+r*(-u*a+o*s)+i*(l*a-n*s)}function Yre(e,t){var r=Math.sin(t),i=Math.cos(t);return e[0]=i,e[1]=r,e[2]=0,e[3]=-r,e[4]=i,e[5]=0,e[6]=0,e[7]=0,e[8]=1,e}function VPe(e,t){var r=t[0],i=t[1],a=t[2],n=t[3],o=r+r,s=i+i,l=a+a,u=r*o,c=i*o,h=i*s,f=a*o,d=a*s,p=a*l,m=n*o,g=n*s,y=n*l;return e[0]=1-h-p,e[3]=c-y,e[6]=f+g,e[1]=c+y,e[4]=1-u-p,e[7]=d-m,e[2]=f-g,e[5]=d+m,e[8]=1-u-h,e}function yh(){var e=new Tn(16);return Tn!=Float32Array&&(e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[11]=0,e[12]=0,e[13]=0,e[14]=0),e[0]=1,e[5]=1,e[10]=1,e[15]=1,e}function $4(e){var t=new Tn(16);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}function Wre(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}function jl(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}function n2(e,t){var r=t[0],i=t[1],a=t[2],n=t[3],o=t[4],s=t[5],l=t[6],u=t[7],c=t[8],h=t[9],f=t[10],d=t[11],p=t[12],m=t[13],g=t[14],y=t[15],x=r*s-i*o,w=r*l-a*o,_=r*u-n*o,A=i*l-a*s,T=i*u-n*s,M=a*u-n*l,S=c*m-h*p,k=c*g-f*p,P=c*y-d*p,I=h*g-f*m,B=h*y-d*m,L=f*y-d*g,z=x*L-w*B+_*I+A*P-T*k+M*S;return z?(z=1/z,e[0]=(s*L-l*B+u*I)*z,e[1]=(a*B-i*L-n*I)*z,e[2]=(m*M-g*T+y*A)*z,e[3]=(f*T-h*M-d*A)*z,e[4]=(l*P-o*L-u*k)*z,e[5]=(r*L-a*P+n*k)*z,e[6]=(g*_-p*M-y*w)*z,e[7]=(c*M-f*_+d*w)*z,e[8]=(o*B-s*P+u*S)*z,e[9]=(i*P-r*B-n*S)*z,e[10]=(p*T-m*_+y*x)*z,e[11]=(h*_-c*T-d*x)*z,e[12]=(s*k-o*I-l*S)*z,e[13]=(r*I-i*k+a*S)*z,e[14]=(m*w-p*A-g*x)*z,e[15]=(c*A-h*w+f*x)*z,e):null}function $d(e,t,r){var i=t[0],a=t[1],n=t[2],o=t[3],s=t[4],l=t[5],u=t[6],c=t[7],h=t[8],f=t[9],d=t[10],p=t[11],m=t[12],g=t[13],y=t[14],x=t[15],w=r[0],_=r[1],A=r[2],T=r[3];return e[0]=w*i+_*s+A*h+T*m,e[1]=w*a+_*l+A*f+T*g,e[2]=w*n+_*u+A*d+T*y,e[3]=w*o+_*c+A*p+T*x,w=r[4],_=r[5],A=r[6],T=r[7],e[4]=w*i+_*s+A*h+T*m,e[5]=w*a+_*l+A*f+T*g,e[6]=w*n+_*u+A*d+T*y,e[7]=w*o+_*c+A*p+T*x,w=r[8],_=r[9],A=r[10],T=r[11],e[8]=w*i+_*s+A*h+T*m,e[9]=w*a+_*l+A*f+T*g,e[10]=w*n+_*u+A*d+T*y,e[11]=w*o+_*c+A*p+T*x,w=r[12],_=r[13],A=r[14],T=r[15],e[12]=w*i+_*s+A*h+T*m,e[13]=w*a+_*l+A*f+T*g,e[14]=w*n+_*u+A*d+T*y,e[15]=w*o+_*c+A*p+T*x,e}function Ya(e,t,r){var i=r[0],a=r[1],n=r[2],o,s,l,u,c,h,f,d,p,m,g,y;return t===e?(e[12]=t[0]*i+t[4]*a+t[8]*n+t[12],e[13]=t[1]*i+t[5]*a+t[9]*n+t[13],e[14]=t[2]*i+t[6]*a+t[10]*n+t[14],e[15]=t[3]*i+t[7]*a+t[11]*n+t[15]):(o=t[0],s=t[1],l=t[2],u=t[3],c=t[4],h=t[5],f=t[6],d=t[7],p=t[8],m=t[9],g=t[10],y=t[11],e[0]=o,e[1]=s,e[2]=l,e[3]=u,e[4]=c,e[5]=h,e[6]=f,e[7]=d,e[8]=p,e[9]=m,e[10]=g,e[11]=y,e[12]=o*i+c*a+p*n+t[12],e[13]=s*i+h*a+m*n+t[13],e[14]=l*i+f*a+g*n+t[14],e[15]=u*i+d*a+y*n+t[15]),e}function Zn(e,t,r){var i=r[0],a=r[1],n=r[2];return e[0]=t[0]*i,e[1]=t[1]*i,e[2]=t[2]*i,e[3]=t[3]*i,e[4]=t[4]*a,e[5]=t[5]*a,e[6]=t[6]*a,e[7]=t[7]*a,e[8]=t[8]*n,e[9]=t[9]*n,e[10]=t[10]*n,e[11]=t[11]*n,e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}function Hd(e,t,r){var i=Math.sin(r),a=Math.cos(r),n=t[4],o=t[5],s=t[6],l=t[7],u=t[8],c=t[9],h=t[10],f=t[11];return t!==e&&(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[4]=n*a+u*i,e[5]=o*a+c*i,e[6]=s*a+h*i,e[7]=l*a+f*i,e[8]=u*a-n*i,e[9]=c*a-o*i,e[10]=h*a-s*i,e[11]=f*a-l*i,e}function dk(e,t,r){var i=Math.sin(r),a=Math.cos(r),n=t[0],o=t[1],s=t[2],l=t[3],u=t[8],c=t[9],h=t[10],f=t[11];return t!==e&&(e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=n*a-u*i,e[1]=o*a-c*i,e[2]=s*a-h*i,e[3]=l*a-f*i,e[8]=n*i+u*a,e[9]=o*i+c*a,e[10]=s*i+h*a,e[11]=l*i+f*a,e}function _h(e,t,r){var i=Math.sin(r),a=Math.cos(r),n=t[0],o=t[1],s=t[2],l=t[3],u=t[4],c=t[5],h=t[6],f=t[7];return t!==e&&(e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=n*a+u*i,e[1]=o*a+c*i,e[2]=s*a+h*i,e[3]=l*a+f*i,e[4]=u*a-n*i,e[5]=c*a-o*i,e[6]=h*a-s*i,e[7]=f*a-l*i,e}function Xre(e,t){return e[0]=t[0],e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=t[1],e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=t[2],e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}function UPe(e,t,r,i,a){var n=1/Math.tan(t/2);if(e[0]=n/r,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=n,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[11]=-1,e[12]=0,e[13]=0,e[15]=0,a!=null&&a!==1/0){var o=1/(i-a);e[10]=(a+i)*o,e[14]=2*a*i*o}else e[10]=-1,e[14]=-2*i;return e}function GPe(e,t,r,i,a,n,o){var s=1/(t-r),l=1/(i-a),u=1/(n-o);return e[0]=-2*s,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*l,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*u,e[11]=0,e[12]=(t+r)*s,e[13]=(a+i)*l,e[14]=(o+n)*u,e[15]=1,e}function Kre(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]&&e[3]===t[3]&&e[4]===t[4]&&e[5]===t[5]&&e[6]===t[6]&&e[7]===t[7]&&e[8]===t[8]&&e[9]===t[9]&&e[10]===t[10]&&e[11]===t[11]&&e[12]===t[12]&&e[13]===t[13]&&e[14]===t[14]&&e[15]===t[15]}function Jre(e,t){var r=e[0],i=e[1],a=e[2],n=e[3],o=e[4],s=e[5],l=e[6],u=e[7],c=e[8],h=e[9],f=e[10],d=e[11],p=e[12],m=e[13],g=e[14],y=e[15],x=t[0],w=t[1],_=t[2],A=t[3],T=t[4],M=t[5],S=t[6],k=t[7],P=t[8],I=t[9],B=t[10],L=t[11],z=t[12],O=t[13],V=t[14],$=t[15];return Math.abs(r-x)<=1e-6*Math.max(1,Math.abs(r),Math.abs(x))&&Math.abs(i-w)<=1e-6*Math.max(1,Math.abs(i),Math.abs(w))&&Math.abs(a-_)<=1e-6*Math.max(1,Math.abs(a),Math.abs(_))&&Math.abs(n-A)<=1e-6*Math.max(1,Math.abs(n),Math.abs(A))&&Math.abs(o-T)<=1e-6*Math.max(1,Math.abs(o),Math.abs(T))&&Math.abs(s-M)<=1e-6*Math.max(1,Math.abs(s),Math.abs(M))&&Math.abs(l-S)<=1e-6*Math.max(1,Math.abs(l),Math.abs(S))&&Math.abs(u-k)<=1e-6*Math.max(1,Math.abs(u),Math.abs(k))&&Math.abs(c-P)<=1e-6*Math.max(1,Math.abs(c),Math.abs(P))&&Math.abs(h-I)<=1e-6*Math.max(1,Math.abs(h),Math.abs(I))&&Math.abs(f-B)<=1e-6*Math.max(1,Math.abs(f),Math.abs(B))&&Math.abs(d-L)<=1e-6*Math.max(1,Math.abs(d),Math.abs(L))&&Math.abs(p-z)<=1e-6*Math.max(1,Math.abs(p),Math.abs(z))&&Math.abs(m-O)<=1e-6*Math.max(1,Math.abs(m),Math.abs(O))&&Math.abs(g-V)<=1e-6*Math.max(1,Math.abs(g),Math.abs(V))&&Math.abs(y-$)<=1e-6*Math.max(1,Math.abs(y),Math.abs($))}function Qre(){var e=new Tn(3);return Tn!=Float32Array&&(e[0]=0,e[1]=0,e[2]=0),e}function Z4(e){var t=new Tn(3);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function $l(e){var t=e[0],r=e[1],i=e[2];return Math.sqrt(t*t+r*r+i*i)}function ite(e,t,r){var i=new Tn(3);return i[0]=e,i[1]=t,i[2]=r,i}function Xs(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e[2]=t[2]+r[2],e}function Y4(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e[2]=t[2]-r[2],e}function la(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e[2]=t[2]*r,e}function o2(e,t,r,i){return e[0]=t[0]+r[0]*i,e[1]=t[1]+r[1]*i,e[2]=t[2]+r[2]*i,e}function eie(e,t){var r=t[0]-e[0],i=t[1]-e[1],a=t[2]-e[2];return Math.sqrt(r*r+i*i+a*a)}function tie(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e}function Fo(e,t){var r=t[0],i=t[1],a=t[2],n=r*r+i*i+a*a;return n>0&&(n=1/Math.sqrt(n)),e[0]=t[0]*n,e[1]=t[1]*n,e[2]=t[2]*n,e}function Wa(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function Yo(e,t,r){var i=t[0],a=t[1],n=t[2],o=r[0],s=r[1],l=r[2];return e[0]=a*l-n*s,e[1]=n*o-i*l,e[2]=i*s-a*o,e}function rie(e,t,r){var i=t[0],a=t[1],n=t[2],o=r[3]*i+r[7]*a+r[11]*n+r[15];return o||(o=1),e[0]=(r[0]*i+r[4]*a+r[8]*n+r[12])/o,e[1]=(r[1]*i+r[5]*a+r[9]*n+r[13])/o,e[2]=(r[2]*i+r[6]*a+r[10]*n+r[14])/o,e}function iie(e,t,r){var i=t[0],a=t[1],n=t[2];return e[0]=i*r[0]+a*r[3]+n*r[6],e[1]=i*r[1]+a*r[4]+n*r[7],e[2]=i*r[2]+a*r[5]+n*r[8],e}function W4(e,t,r){var i=r[0],a=r[1],n=r[2],o=r[3],s=t[0],l=t[1],u=t[2],c=a*u-n*l,h=n*s-i*u,f=i*l-a*s;return c+=c,h+=h,f+=f,e[0]=s+o*c+a*f-n*h,e[1]=l+o*h+n*c-i*f,e[2]=u+o*f+i*h-a*c,e}function Tm(e,t,r,i){var a=[],n=[];return a[0]=t[0]-r[0],a[1]=t[1]-r[1],a[2]=t[2]-r[2],n[0]=a[0],n[1]=a[1]*Math.cos(i)-a[2]*Math.sin(i),n[2]=a[1]*Math.sin(i)+a[2]*Math.cos(i),e[0]=n[0]+r[0],e[1]=n[1]+r[1],e[2]=n[2]+r[2],e}function Zd(e,t,r,i){var a=[],n=[];return a[0]=t[0]-r[0],a[1]=t[1]-r[1],a[2]=t[2]-r[2],n[0]=a[2]*Math.sin(i)+a[0]*Math.cos(i),n[1]=a[1],n[2]=a[2]*Math.cos(i)-a[0]*Math.sin(i),e[0]=n[0]+r[0],e[1]=n[1]+r[1],e[2]=n[2]+r[2],e}function X4(e,t,r,i){var a=[],n=[];return a[0]=t[0]-r[0],a[1]=t[1]-r[1],a[2]=t[2]-r[2],n[0]=a[0]*Math.cos(i)-a[1]*Math.sin(i),n[1]=a[0]*Math.sin(i)+a[1]*Math.cos(i),n[2]=a[2],e[0]=n[0]+r[0],e[1]=n[1]+r[1],e[2]=n[2]+r[2],e}function aie(e){return e[0]=0,e[1]=0,e[2]=0,e}function jPe(){var e=new Tn(4);return Tn!=Float32Array&&(e[0]=0,e[1]=0,e[2]=0,e[3]=0),e}function $Pe(e,t,r,i){var a=new Tn(4);return a[0]=e,a[1]=t,a[2]=r,a[3]=i,a}function HPe(e,t,r){return e[0]=t[0]*r[0],e[1]=t[1]*r[1],e[2]=t[2]*r[2],e[3]=t[3]*r[3],e}function nie(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e[2]=t[2]*r,e[3]=t[3]*r,e}function ZPe(e,t){var r=t[0],i=t[1],a=t[2],n=t[3],o=r*r+i*i+a*a+n*n;return o>0&&(o=1/Math.sqrt(o)),e[0]=r*o,e[1]=i*o,e[2]=a*o,e[3]=n*o,e}function Yn(e,t,r){var i=t[0],a=t[1],n=t[2],o=t[3];return e[0]=r[0]*i+r[4]*a+r[8]*n+r[12]*o,e[1]=r[1]*i+r[5]*a+r[9]*n+r[13]*o,e[2]=r[2]*i+r[6]*a+r[10]*n+r[14]*o,e[3]=r[3]*i+r[7]*a+r[11]*n+r[15]*o,e}function ate(){var e=new Tn(4);return Tn!=Float32Array&&(e[0]=0,e[1]=0,e[2]=0),e[3]=1,e}function YPe(e,t,r){r*=.5;var i=Math.sin(r);return e[0]=i*t[0],e[1]=i*t[1],e[2]=i*t[2],e[3]=Math.cos(r),e}function sie(e,t,r){var i=t[0],a=t[1],n=t[2],o=t[3],s=r[0],l=r[1],u=r[2],c=r[3];return e[0]=i*c+o*s+a*u-n*l,e[1]=a*c+o*l+n*s-i*u,e[2]=n*c+o*u+i*l-a*s,e[3]=o*c-i*s-a*l-n*u,e}function zy(e,t,r,i){var a=t[0],n=t[1],o=t[2],s=t[3],l=r[0],u=r[1],c=r[2],h=r[3],f,d=a*l+n*u+o*c+s*h,p,m,g;return d<0&&(d=-d,l=-l,u=-u,c=-c,h=-h),1-d>1e-6?(f=Math.acos(d),p=Math.sin(f),m=Math.sin((1-i)*f)/p,g=Math.sin(i*f)/p):(m=1-i,g=i),e[0]=m*a+g*l,e[1]=m*n+g*u,e[2]=m*o+g*c,e[3]=m*s+g*h,e}function WPe(e,t){var r=t[0]+t[4]+t[8],i;if(r>0)i=Math.sqrt(r+1),e[3]=.5*i,i=.5/i,e[0]=(t[5]-t[7])*i,e[1]=(t[6]-t[2])*i,e[2]=(t[1]-t[3])*i;else{var a=0;t[4]>t[0]&&(a=1),t[8]>t[a*3+a]&&(a=2);var n=(a+1)%3,o=(a+2)%3;i=Math.sqrt(t[a*3+a]-t[n*3+n]-t[o*3+o]+1),e[a]=.5*i,i=.5/i,e[3]=(t[n*3+o]-t[o*3+n])*i,e[n]=(t[n*3+a]+t[a*3+n])*i,e[o]=(t[o*3+a]+t[a*3+o])*i}return e}function K4(e,t,r,i){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:"zyx",n=Math.PI/360;t*=n,i*=n,r*=n;var o=Math.sin(t),s=Math.cos(t),l=Math.sin(r),u=Math.cos(r),c=Math.sin(i),h=Math.cos(i);switch(a){case"xyz":e[0]=o*u*h+s*l*c,e[1]=s*l*h-o*u*c,e[2]=s*u*c+o*l*h,e[3]=s*u*h-o*l*c;break;case"xzy":e[0]=o*u*h-s*l*c,e[1]=s*l*h-o*u*c,e[2]=s*u*c+o*l*h,e[3]=s*u*h+o*l*c;break;case"yxz":e[0]=o*u*h+s*l*c,e[1]=s*l*h-o*u*c,e[2]=s*u*c-o*l*h,e[3]=s*u*h+o*l*c;break;case"yzx":e[0]=o*u*h+s*l*c,e[1]=s*l*h+o*u*c,e[2]=s*u*c-o*l*h,e[3]=s*u*h-o*l*c;break;case"zxy":e[0]=o*u*h-s*l*c,e[1]=s*l*h+o*u*c,e[2]=s*u*c+o*l*h,e[3]=s*u*h-o*l*c;break;case"zyx":e[0]=o*u*h-s*l*c,e[1]=s*l*h+o*u*c,e[2]=s*u*c-o*l*h,e[3]=s*u*h+o*l*c;break;default:throw Error("Unknown angle order "+a)}return e}function J4(){var e=new Tn(2);return Tn!=Float32Array&&(e[0]=0,e[1]=0),e}function ote(e,t){var r=new Tn(2);return r[0]=e,r[1]=t,r}function mk(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e}function vk(e){var t=e[0],r=e[1];return Math.sqrt(t*t+r*r)}function XPe(e){var t=e[0],r=e[1];return t*t+r*r}function KPe(e,t){return e[0]*t[0]+e[1]*t[1]}function gk(e){return e[0]=0,e[1]=0,e}function vs(e,t,r){return t*(ft/(e.tileSize*2**(r-e.tileID.overscaledZ)))}function Hn(e){return e instanceof Error?e:Error(typeof e=="string"?e:String(e))}function Gf(){return new Float64Array(4)}function wi(){return new Float64Array(3)}function jf(){return new Float64Array(16)}function l2(){let e=new Float64Array(16);return jl(e),e}function yk(){let e=new Float32Array(16);return jl(e),e}function xh(e,t,r,i,a=!1){if(!r[0]&&!r[1])return[0,0];let n=a?i==="map"?-e.bearingInRadians:0:i==="viewport"?e.bearingInRadians:0;if(n){let o=Math.sin(n),s=Math.cos(n);r=[r[0]*s-r[1]*o,r[0]*o+r[1]*s]}return[a?r[0]:vs(t,r[0],e.zoom),a?r[1]:vs(t,r[1],e.zoom)]}function Q4(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]+e[3]}function Ks(e,t,r){let i=NPe([e[0],e[1],e[2],t[0],t[1],t[2],r[0],r[1],r[2]]);if(i===0)return null;let a=Yo([],[t[0],t[1],t[2]],[r[0],r[1],r[2]]),n=Yo([],[r[0],r[1],r[2]],[e[0],e[1],e[2]]),o=Yo([],[e[0],e[1],e[2]],[t[0],t[1],t[2]]),s=la([],a,-e[3]);return Xs(s,s,la([],n,-t[3])),Xs(s,s,la([],o,-r[3])),la(s,s,1/i),s}function uie(e,t,r){let i=e[0]*r[0]+e[1]*r[1]+e[2]*r[2],a=t[0]*r[0]+t[1]*r[1]+t[2]*r[2];return a===0?null:(-i-r[3])/a}function u2(e,t,r,i){let a=Math.sqrt(e*e+t*t),n=Math.sqrt(r*r+i*i);e/=a,t/=a,r/=n,i/=n;let o=e*r+t*i,s=Math.acos(o);return-t*r+e*i>0?s:-s}function gs(e,t){let r=Nf(e,360),i=Nf(t,360),a=i-r,n=i>r?a-360:a+360;return Math.abs(a)l.canonical.z)),r=1/0,i=-1/0,a=1/0,n=-1/0,o=[];for(let l of e){let{x:u,y:c,z:h}=l.canonical,f=2**(t-h),d=u*f,p=c*f;o.push({id:l,x:d,y:p}),di&&(i=d),pn&&(n=p)}let s=new Set;for(let l of o)(l.x===r||l.x===i||l.y===a||l.y===n)&&s.add(l.id);return s}function JPe(e){if(e<=0)return 0;if(e>=1)return 1;let t=e*e,r=t*e;return 4*(e<.5?r:3*(e-t)+r-.75)}function ew(e,t,r,i){return OPe(e,t,r,i)}function Ar(e,t,r){return Math.min(r,Math.max(t,e))}function Js(e,t,r){let i=r-t,a=((e-t)%i+i)%i+t;return a===t?r:a}function tr(e,...t){for(let r of t)for(let i in r)e[i]=r[i];return e}function Mm(e,t){let r={};for(let i of t)i in e&&(r[i]=e[i]);return r}function _k(){return QPe++}function eIe(e){return Math.log(e)/Math.LN2%1==0}function fie(e){return e<=1?1:2**Math.ceil(Math.log(e)/Math.LN2)}function Po(e){return 2**e}function Wn(e){return Math.log(e)/Math.LN2}function ys(e,t,r){if(t<=0)return e;let i=1/t;return r===void 0||Math.abs(r)<1e-10?Math.round(e*i)/i:(r>0?Math.ceil(e*i-1e-9):Math.floor(e*i+1e-10))/i}function rw(e,t,r){let i={};for(let a in e)i[a]=t.call(r||this,e[a],a,e);return i}function xk(e,t,r){let i={};for(let a in e)t.call(r||this,e[a],a,e)&&(i[a]=e[a]);return i}function Fu(e,t){if(Array.isArray(e)){if(!Array.isArray(t)||e.length!==t.length)return!1;for(let r=0;r(t.y-e.y)*(r.x-e.x)}function die(e,t,r,i){let a=t.y-e.y,n=t.x-e.x,o=i.y-r.y,s=i.x-r.x,l=o*n-s*a;if(l===0)return null;let u=e.y-r.y,c=e.x-r.x,h=(s*u-o*c)/l;return new Be(e.x+h*n,e.y+h*a)}function pie([e,t,r]){return t+=90,t*=Math.PI/180,r*=Math.PI/180,[e*Math.cos(t)*Math.sin(r),e*Math.sin(t)*Math.sin(r),e*Math.cos(r)]}function Vd(e){return typeof WorkerGlobalScope<"u"&&e!==void 0&&e instanceof WorkerGlobalScope}function mie(e){let t=/(?:^|(?:\s*\,\s*))([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g,r={};if(e.replace(t,(i,a,n,o)=>{let s=n||o;return r[a]=!s||s.toLowerCase(),""}),r["max-age"]){let i=parseInt(r["max-age"],10);isNaN(i)?delete r["max-age"]:r["max-age"]=i}return r}function vie(e){if(z9==null){let t=e.navigator?e.navigator.userAgent:null;z9=!!e.safari||!!(t&&(/\b(iPad|iPhone|iPod)\b/.test(t)||t.match("Safari")&&!t.match("Chrome")))}return z9}function $f(e){return typeof ImageBitmap<"u"&&e instanceof ImageBitmap}function tIe(e,t,r,i,a){let n=Math.max(-t,0)*4,o=(Math.max(0,r)-r)*i*4+n,s=i*4,l=Math.max(0,t),u=Math.max(0,r),c=Math.min(e.width,t+i),h=Math.min(e.height,r+a);return{rect:{x:l,y:u,width:c-l,height:h-u},layout:[{offset:o,stride:s}]}}function _ie(e,t,r,i,a){return Kt(this,null,function*(){if(typeof VideoFrame>"u")throw Error("VideoFrame not supported");let n=new VideoFrame(e,{timestamp:0});try{let o=n==null?void 0:n.format;if(!o||!(o.startsWith("BGR")||o.startsWith("RGB")))throw Error(`Unrecognized format ${o}`);let s=o.startsWith("BGR"),l=new Uint8ClampedArray(i*a*4);if(yield n.copyTo(l,tIe(e,t,r,i,a)),s)for(let u=0;u{e.removeEventListener(t,r,i)}}}function ua(e){return e*Math.PI/180}function ku(e){return e/Math.PI*180}function bk(e,t){return e.roll==t.roll&&e.pitch==t.pitch&&e.bearing==t.bearing}function xie(e){let t=new Float64Array(9);VPe(t,e);let r=ku(-Math.asin(Ar(t[2],-1,1))),i,a;return Math.hypot(t[5],t[8])<.001?(i=0,a=-ku(Math.atan2(t[3],t[4]))):(i=ku(t[5]===0&&t[8]===0?0:Math.atan2(t[5],t[8])),a=ku(t[1]===0&&t[0]===0?0:Math.atan2(t[1],t[0]))),{roll:i,pitch:r+90,bearing:a}}function wk(e,t,r){let i=ote(t.x-r.x,t.y-r.y),a=ote(e.x-r.x,e.y-r.y),n=i[0]*a[1]-i[1]*a[0];return ku(Math.atan2(n,KPe(i,a)))}function Ak(e,t,r){let i=new Float64Array(4);return K4(i,e,t-90,r),i}function Aie(e,t){return bie[t]&&"touches"in e}function Tie(e,t){var a,n;if(!wie[t])return!1;let r=e,i=((n=(a=r==null?void 0:r.target)==null?void 0:a.ownerDocument)==null?void 0:n.defaultView)||window;return r instanceof i.MouseEvent||r instanceof i.WheelEvent}function Mie(e){return bie[e]||wie[e]}function bh(e){return e instanceof Error&&e.name==="AbortError"}function iw(e){if(e.aborted)throw new Dm(e.reason)}function Tk(e){return _s.REGISTERED_PROTOCOLS[e.substring(0,e.indexOf("://"))]}function Die(e,t){_s.REGISTERED_PROTOCOLS[e]=t}function Sie(e){delete _s.REGISTERED_PROTOCOLS[e]}function aw(){var e;if(Vd(self))return(e=self.worker)==null?void 0:e.referrer;if(window.location.protocol==="blob:")try{return window.parent.location.href}catch(t){}return window.location.href}function iIe(e,t){return Kt(this,null,function*(){let r=new Request(e.url,{method:e.method||"GET",body:e.body,credentials:e.credentials,headers:e.headers,cache:e.cache,referrer:aw(),referrerPolicy:e.referrerPolicy,signal:t.signal});e.type==="json"&&!r.headers.has("Accept")&&r.headers.set("Accept","application/json");let i;try{i=yield fetch(r)}catch(o){throw bh(o)?o:new pm(0,Hn(o).message,e.url,new Blob)}if(!i.ok){let o=yield i.blob();throw new pm(i.status,i.statusText,e.url,o)}let a;a=e.type==="arrayBuffer"||e.type==="image"?i.arrayBuffer():e.type==="json"?i.json():i.text();let n=yield a;return iw(t.signal),{data:n,cacheControl:i.headers.get("Cache-Control"),expires:i.headers.get("Expires"),etag:i.headers.get("ETag")}})}function aIe(e,t){return new Promise((r,i)=>{var n;let a=new XMLHttpRequest;a.open(e.method||"GET",e.url,!0),(e.type==="arrayBuffer"||e.type==="image")&&(a.responseType="arraybuffer");for(let o in e.headers)a.setRequestHeader(o,e.headers[o]);e.type==="json"&&(a.responseType="text",(n=e.headers)!=null&&n.Accept||a.setRequestHeader("Accept","application/json")),a.withCredentials=e.credentials==="include",a.onerror=()=>{i(Error(a.statusText))},a.onload=()=>{if(!t.signal.aborted)if((a.status>=200&&a.status<300||a.status===0)&&a.response!==null){let o=a.response;if(e.type==="json")try{o=JSON.parse(a.response)}catch(s){i(s);return}r({data:o,cacheControl:a.getResponseHeader("Cache-Control"),expires:a.getResponseHeader("Expires"),etag:a.getResponseHeader("ETag")})}else{let o=new Blob([a.response],{type:a.getResponseHeader("Content-Type")});i(new pm(a.status,a.statusText,e.url,o))}},t.signal.addEventListener("abort",()=>{a.abort(),i(new Dm(t.signal.reason))}),a.send(e.body)})}function Dk(e){if(!e||e.startsWith("data:image/"))return!0;if(e.startsWith("blob:")&&(e=e.slice(5),e.startsWith("null")))return!1;if(e.indexOf("://")<=0)return!0;let t=new URL(e),r=window.location;return t.protocol===r.protocol&&t.host===r.host}function ute(e,t,r){var i;(i=r[e])!=null&&i.includes(t)||(r[e]||(r[e]=[]),r[e].push(t))}function R9(e,t,r){if(r!=null&&r[e]){let i=r[e].indexOf(t);i!==-1&&r[e].splice(i,1)}}function ko(e,t){return{kind:"array",itemType:e,N:t}}function Sa(e){if(e.kind==="array"){let t=Sa(e.itemType);return typeof e.N=="number"?`array<${t}, ${e.N}>`:e.itemType.kind==="value"?"array":`array<${t}>`}return e.kind}function jy(e,t){if(t.kind==="error")return null;if(e.kind==="array"){if(t.kind==="array"&&(t.N===0&&t.itemType.kind==="value"||!jy(e.itemType,t.itemType))&&(typeof e.N!="number"||e.N===t.N))return null}else{if(e.kind===t.kind)return null;if(e.kind==="value"){for(let r of oIe)if(!jy(r,t))return null}}return`Expected ${Sa(e)} but found ${Sa(t)} instead.`}function Sk(e,t){return t.some(r=>r.kind===e.kind)}function qd(e,t){return t.some(r=>r==="null"?e===null:r==="array"?Array.isArray(e):r==="object"?e&&!Array.isArray(e)&&typeof e=="object":r===typeof e)}function Ff(e,t){return e.kind==="array"&&t.kind==="array"?e.itemType.kind===t.itemType.kind&&typeof e.N=="number":e.kind===t.kind}function zie(e){return e%=360,e<0&&(e+=360),e}function Rie([e,t,r,i]){e=B9(e),t=B9(t),r=B9(r);let a,n,o=q9((.2225045*e+.7168786*t+.0606169*r)/1);e===t&&t===r?a=n=o:(a=q9((.4360747*e+.3850649*t+.1430804*r)/Fie),n=q9((.0139322*e+.0971045*t+.7141733*r)/Pie));let s=116*o-16;return[s<0?0:s,500*(a-o),200*(o-n),i]}function B9(e){return e<=.04045?e/12.92:((e+.055)/1.055)**2.4}function q9(e){return e>.008856451679035631?e**(1/3):e/Lie+Iie}function Bie([e,t,r,i]){let a=(e+16)/116,n=isNaN(t)?a:a+t/500,o=isNaN(r)?a:a-r/200;return a=1*N9(a),n=Fie*N9(n),o=Pie*N9(o),[O9(3.1338561*n-1.6168667*a-.4906146*o),O9(-.9787684*n+1.9161415*a+.033454*o),O9(.0719453*n-.2289914*a+1.4052427*o),i]}function O9(e){return e=e<=.00304?12.92*e:1.055*e**(1/2.4)-.055,e<0?0:e>1?1:e}function N9(e){return e>eE?e*e*e:Lie*(e-Iie)}function uIe(e){let[t,r,i,a]=Rie(e),n=Math.sqrt(r*r+i*i);return[Math.round(n*1e4)?zie(Math.atan2(i,r)*lIe):NaN,n,t,a]}function cIe([e,t,r,i]){return e=isNaN(e)?0:e*sIe,Bie([r,Math.cos(e)*t,Math.sin(e)*t,i])}function hIe([e,t,r,i]){e=zie(e),t/=100,r/=100;function a(n){let o=(n+e/30)%12,s=t*Math.min(r,1-r);return r-s*Math.max(-1,Math.min(o-3,9-o,1))}return[a(0),a(8),a(4),i]}function Ry(e,t){return fIe(e,t)?e[t]:void 0}function dIe(e){if(e=e.toLowerCase().trim(),e==="transparent")return[0,0,0,0];let t=Ry(pIe,e);if(t){let[i,a,n]=t;return[i/255,a/255,n/255,1]}if(e.startsWith("#")&&/^#(?:[0-9a-f]{3,4}|[0-9a-f]{6}|[0-9a-f]{8})$/.test(e)){let i=e.length<6?1:2,a=1;return[n4(e.slice(a,a+=i)),n4(e.slice(a,a+=i)),n4(e.slice(a,a+=i)),n4(e.slice(a,a+i)||"ff")]}if(e.startsWith("rgb")){let i=e.match(/^rgba?\(\s*([\de.+-]+)(%)?(?:\s+|\s*(,)\s*)([\de.+-]+)(%)?(?:\s+|\s*(,)\s*)([\de.+-]+)(%)?(?:\s*([,\/])\s*([\de.+-]+)(%)?)?\s*\)$/);if(i){let[a,n,o,s,l,u,c,h,f,d,p,m]=i,g=[s||" ",c||" ",d].join("");if(g===" "||g===" /"||g===",,"||g===",,,"){let y=[o,u,f].join(""),x=y==="%%%"?100:y===""?255:0;if(x){let w=[em(+n/x,0,1),em(+l/x,0,1),em(+h/x,0,1),p?cte(+p,m):1];if(hte(w))return w}}return}}let r=e.match(/^hsla?\(\s*([\de.+-]+)(?:deg)?(?:\s+|\s*(,)\s*)([\de.+-]+)%(?:\s+|\s*(,)\s*)([\de.+-]+)%(?:\s*([,\/])\s*([\de.+-]+)(%)?)?\s*\)$/);if(r){let[i,a,n,o,s,l,u,c,h]=r,f=[n||" ",s||" ",u].join("");if(f===" "||f===" /"||f===",,"||f===",,,"){let d=[+a,em(+o,0,100),em(+l,0,100),c?cte(+c,h):1];if(hte(d))return hIe(d)}}}function n4(e){return parseInt(e.padEnd(2,e),16)/255}function cte(e,t){return em(t?e/100:e,0,1)}function em(e,t,r){return Math.min(Math.max(t,e),r)}function hte(e){return!e.some(Number.isNaN)}function qf(e,t,r){return e+r*(t-e)}function mm(e,t,r){return e.map((i,a)=>qf(i,t[a],r))}function mIe(e){return e==="rgb"||e==="hcl"||e==="lab"}function Oie(e,t,r,i){return typeof e=="number"&&e>=0&&e<=255&&typeof t=="number"&&t>=0&&t<=255&&typeof r=="number"&&r>=0&&r<=255?i===void 0||typeof i=="number"&&i>=0&&i<=1?null:`Invalid rgba value [${[e,t,r,i].join(", ")}]: 'a' must be between 0 and 1.`:`Invalid rgba value [${(typeof i=="number"?[e,t,r,i]:[e,t,r]).join(", ")}]: 'r', 'g', and 'b' must be between 0 and 255.`}function vm(e){if(e===null||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||e instanceof wh||e instanceof Dr||e instanceof Ek||e instanceof vh||e instanceof Fc||e instanceof Pc||e instanceof Vl||e instanceof Ec||e instanceof kc)return!0;if(Array.isArray(e)){for(let t of e)if(!vm(t))return!1;return!0}if(typeof e=="object"){for(let t in e)if(!vm(e[t]))return!1;return!0}return!1}function Za(e){if(e===null)return p2;if(typeof e=="string")return Er;if(typeof e=="boolean")return Xr;if(typeof e=="number")return Vt;if(e instanceof Dr)return Cu;if(e instanceof wh)return nw;if(e instanceof Ek)return ow;if(e instanceof vh)return m2;if(e instanceof Fc)return sw;if(e instanceof Pc)return lw;if(e instanceof Vl)return Gy;if(e instanceof Ec)return uw;if(e instanceof kc)return v2;if(Array.isArray(e)){let t=e.length,r;for(let i of e){let a=Za(i);if(!r)r=a;else{if(r===a)continue;r=Ir;break}}return ko(r||Ir,t)}return Bd}function By(e){let t=typeof e;return e===null?"":t==="string"||t==="number"||t==="boolean"?String(e):e instanceof Dr||e instanceof wh||e instanceof vh||e instanceof Fc||e instanceof Pc||e instanceof Vl||e instanceof Ec||e instanceof kc?e.toString():JSON.stringify(e)}function cw(e,t,r){let i=e.length-1,a=0,n=i,o=0,s,l;for(;a<=n;)if(o=Math.floor((a+n)/2),s=e[o],l=e[o+1],s<=t){if(o===i||tt)n=o-1;else throw new ba("Input is not a number.",r);return 0}function _Ie(e,t,r,i){let a=3*e,n=3*(r-e)-a,o=1-a-n,s=3*t,l=3*(i-t)-s,u=1-s-l;return function(c,h=1e-6){if(c<=0)return 0;if(c>=1)return 1;let f=c;for(let m=0;m<8;m++){let g=((o*f+n)*f+a)*f-c;if(Math.abs(g)g?d=f:p=f,f=(d+p)*.5}return((u*f+l)*f+s)*f}}function V9(e,t,r,i){let a=i-r,n=e-r;return a===0?0:t===1?n/a:(t**+n-1)/(t**+a-1)}function $ie(e,t,r=0,i=e.length-1,a=xIe){for(;i>r;){if(i-r>600){let l=i-r+1,u=t-r+1,c=Math.log(l),h=.5*Math.exp(2*c/3),f=.5*Math.sqrt(c*h*(l-h)/l)*(u-l/2<0?-1:1);$ie(e,t,Math.max(r,Math.floor(t-u*h/l+f)),Math.min(i,Math.floor(t+(l-u)*h/l+f)),a)}let n=e[t],o=r,s=i;for(xy(e,r,t),a(e[i],n)>0&&xy(e,r,i);o0;)s--}a(e[r],n)===0?xy(e,r,s):(s++,xy(e,s,i)),s<=t&&(r=s+1),t<=s&&(i=s-1)}}function xy(e,t,r){let i=e[t];e[t]=e[r],e[r]=i}function xIe(e,t){return et)}function hw(e,t){if(e.length<=1)return[e];let r=[],i,a;for(let n of e){let o=wIe(n);o!==0&&(n.area=Math.abs(o),a===void 0&&(a=o<0),a===o<0?(i&&r.push(i),i=[n]):i.push(n))}if(i&&r.push(i),t>1)for(let n=0;nr}function IIe(e,t,r){return t<=r}function LIe(e,t,r){return t>=r}function iae(e,t,r,i){return i.compare(t,r)===0}function zIe(e,t,r,i){return!iae(e,t,r,i)}function RIe(e,t,r,i){return i.compare(t,r)<0}function BIe(e,t,r,i){return i.compare(t,r)>0}function qIe(e,t,r,i){return i.compare(t,r)<=0}function OIe(e,t,r,i){return i.compare(t,r)>=0}function Sm(e,t,r){let i=e!=="=="&&e!=="!=";return class aae{constructor(n,o,s,l){this.lhs=n,this.rhs=o,this.key=s,this.collator=l,this.type=Xr,this.hasUntypedArgument=n.type.kind==="value"||o.type.kind==="value"}static parse(n,o){if(n.length!==3&&n.length!==4)return o.error("Expected two or three arguments.");let s=n[0],l=o.parse(n[1],1,Ir);if(!l)return null;if(!dte(s,l.type))return o.concat(1).error(`"${s}" comparisons are not supported for type '${Sa(l.type)}'.`);let u=o.parse(n[2],2,Ir);if(!u)return null;if(!dte(s,u.type))return o.concat(2).error(`"${s}" comparisons are not supported for type '${Sa(u.type)}'.`);if(l.type.kind!==u.type.kind&&l.type.kind!=="value"&&u.type.kind!=="value")return o.error(`Cannot compare types '${Sa(l.type)}' and '${Sa(u.type)}'.`);i&&(l.type.kind==="value"&&u.type.kind!=="value"?l=new dh(u.type,[l],o.key):l.type.kind!=="value"&&u.type.kind==="value"&&(u=new dh(l.type,[u],o.key)));let c=null;if(n.length===4){if(l.type.kind!=="string"&&u.type.kind!=="string"&&l.type.kind!=="value"&&u.type.kind!=="value")return o.error("Cannot use collator to compare non-string types.");if(c=o.parse(n[3],3,ow),!c)return null}return new aae(l,u,o.key,c)}evaluate(n){let o=this.lhs.evaluate(n),s=this.rhs.evaluate(n);if(i&&this.hasUntypedArgument){let l=Za(o),u=Za(s);if(l.kind!==u.kind||l.kind!=="string"&&l.kind!=="number")throw new ba(`Expected arguments for "${e}" to be (string, string) or (number, number), but found (${l.kind}, ${u.kind}) instead.`,this.key)}if(this.collator&&!i&&this.hasUntypedArgument){let l=Za(o),u=Za(s);if(l.kind!=="string"||u.kind!=="string")return t(n,o,s)}return this.collator?r(n,o,s,this.collator.evaluate(n)):t(n,o,s)}eachChild(n){n(this.lhs),n(this.rhs),this.collator&&n(this.collator)}outputDefined(){return!0}}}function WIe(e,t){let r=XIe(e[0]),i=JIe(e[1]),a=2**t.z;return[Math.round(r*a*Sc),Math.round(i*a*Sc)]}function Ck(e,t){let r=2**t.z,i=(e[0]/Sc+t.x)/r,a=(e[1]/Sc+t.y)/r;return[KIe(i),QIe(a)]}function XIe(e){return(180+e)/360}function KIe(e){return e*360-180}function JIe(e){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+e*Math.PI/360)))/360}function QIe(e){return 360/Math.PI*Math.atan(Math.exp((180-e*360)*Math.PI/180))-90}function g2(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.max(e[2],t[0]),e[3]=Math.max(e[3],t[1])}function $y(e,t){return!(e[0]<=t[0]||e[2]>=t[2]||e[1]<=t[1]||e[3]>=t[3])}function eLe(e,t,r){return t[1]>e[1]!=r[1]>e[1]&&e[0]<(r[0]-t[0])*(e[1]-t[1])/(r[1]-t[1])+t[0]}function tLe(e,t,r){let i=e[0]-t[0],a=e[1]-t[1],n=e[0]-r[0],o=e[1]-r[1];return i*o-n*a===0&&i*n<=0&&a*o<=0}function fw(e,t,r,i){let a=[t[0]-e[0],t[1]-e[1]];return nLe([i[0]-r[0],i[1]-r[1]],a)!==0&&!!(pte(e,t,r,i)&&pte(r,i,e,t))}function rLe(e,t,r){for(let i of r)for(let a=0;a0&&h<0||c<0&&h>0}function Fk(e,t,r){let i=[];for(let a=0;ar[2]){let a=i*.5,n=e[0]-r[0]>a?-i:r[0]-e[0]>a?i:0;n===0&&(n=e[0]-r[2]>a?-i:r[2]-e[0]>a?i:0),e[0]+=n}g2(t,e)}function oLe(e){e[0]=e[1]=1/0,e[2]=e[3]=-1/0}function mte(e,t,r,i){let a=2**i.z*Sc,n=[i.x*Sc,i.y*Sc],o=[];for(let s of e)for(let l of s){let u=[l.x+n[0],l.y+n[1]];fae(u,t,r,a),o.push(u)}return o}function vte(e,t,r,i){let a=2**i.z*Sc,n=[i.x*Sc,i.y*Sc],o=[];for(let s of e){let l=[];for(let u of s){let c=[u.x+n[0],u.y+n[1]];g2(t,c),l.push(c)}o.push(l)}if(t[2]-t[0]<=a/2){oLe(t);for(let s of o)for(let l of s)fae(l,t,r,a)}return o}function sLe(e,t){let r=[1/0,1/0,-1/0,-1/0],i=[1/0,1/0,-1/0,-1/0],a=e.canonicalID();if(t.type==="Polygon"){let n=Fk(t.coordinates,i,a),o=mte(e.geometry(),r,i,a);if(!$y(r,i))return!1;for(let s of o)if(!Em(s,n))return!1}if(t.type==="MultiPolygon"){let n=hae(t.coordinates,i,a),o=mte(e.geometry(),r,i,a);if(!$y(r,i))return!1;for(let s of o)if(!iLe(s,n))return!1}return!0}function lLe(e,t){let r=[1/0,1/0,-1/0,-1/0],i=[1/0,1/0,-1/0,-1/0],a=e.canonicalID();if(t.type==="Polygon"){let n=Fk(t.coordinates,i,a),o=vte(e.geometry(),r,i,a);if(!$y(r,i))return!1;for(let s of o)if(!cae(s,n))return!1}if(t.type==="MultiPolygon"){let n=hae(t.coordinates,i,a),o=vte(e.geometry(),r,i,a);if(!$y(r,i))return!1;for(let s of o)if(!aLe(s,n))return!1}return!0}function pae(e,t){return t[0]-e[0]}function S4(e){return e[1]-e[0]+1}function gh(e,t){return e[1]>=e[0]&&e[1]e[1])return[null,null];let r=S4(e);if(t){if(r===2)return[e,null];let a=Math.floor(r/2);return[[e[0],e[0]+a],[e[0]+a,e[1]]]}if(r===1)return[e,null];let i=Math.floor(r/2)-1;return[[e[0],e[0]+i],[e[0]+i+1,e[1]]]}function sE(e,t){if(!gh(t,e.length))return[1/0,1/0,-1/0,-1/0];let r=[1/0,1/0,-1/0,-1/0];for(let i=t[0];i<=t[1];++i)g2(r,e[i]);return r}function lE(e){let t=[1/0,1/0,-1/0,-1/0];for(let r of e)for(let i of r)g2(t,i);return t}function yte(e){return e[0]!==-1/0&&e[1]!==-1/0&&e[2]!==1/0&&e[3]!==1/0}function Lk(e,t,r){if(!yte(e)||!yte(t))return NaN;let i=0,a=0;return e[2]t[2]&&(i=e[0]-t[2]),e[1]>t[3]&&(a=e[1]-t[3]),e[3]=i)return i;if($y(a,n)){if(_te(e,t))return 0}else if(_te(t,e))return 0;let o=1/0;for(let s of e)for(let l=0,u=s.length,c=u-1;l0;){let l=o.pop();if(l[0]>=n)continue;let u=l[1],c=t?50:100;if(S4(u)<=c){if(!gh(u,e.length))return NaN;if(t){let h=fLe(e,u,r,i);if(isNaN(h)||h===0)return h;n=Math.min(n,h)}else for(let h=u[0];h<=u[1];++h){let f=hLe(e[h],r,i);if(n=Math.min(n,f),n===0)return 0}}else{let h=oE(u,t);xte(o,n,i,e,s,h[0]),xte(o,n,i,e,s,h[1])}}return n}function k4(e,t,r,i,a,n=1/0){let o=Math.min(n,a.distance(e[0],r[0]));if(o===0)return o;let s=new dae([[0,[0,e.length-1],[0,r.length-1]]],pae);for(;s.length>0;){let l=s.pop();if(l[0]>=o)continue;let u=l[1],c=l[2],h=t?50:100,f=i?50:100;if(S4(u)<=h&&S4(c)<=f){if(!gh(u,e.length)&&gh(c,r.length))return NaN;let d;if(t&&i)d=uLe(e,u,r,c,a),o=Math.min(o,d);else if(t&&!i){let p=e.slice(u[0],u[1]+1);for(let m=c[0];m<=c[1];++m)if(d=zd(r[m],p,a),o=Math.min(o,d),o===0)return o}else if(!t&&i){let p=r.slice(c[0],c[1]+1);for(let m=u[0];m<=u[1];++m)if(d=zd(e[m],p,a),o=Math.min(o,d),o===0)return o}else d=cLe(e,u,r,c,a),o=Math.min(o,d)}else{let d=oE(u,t),p=oE(c,i);s4(s,o,a,e,r,d[0],p[0]),s4(s,o,a,e,r,d[0],p[1]),s4(s,o,a,e,r,d[1],p[0]),s4(s,o,a,e,r,d[1],p[1])}}return o}function pLe(e,t){let r=e.geometry(),i=r.flat().map(o=>Ck([o.x,o.y],e.canonical));if(r.length===0)return NaN;let a=new Ik(i[0][1]),n=1/0;for(let o of t){switch(o.type){case"Point":n=Math.min(n,k4(i,!1,[o.coordinates],!1,a,n));break;case"LineString":n=Math.min(n,k4(i,!1,o.coordinates,!0,a,n));break;case"Polygon":n=Math.min(n,E4(i,!1,o.coordinates,a,n))}if(n===0)return n}return n}function mLe(e,t){let r=e.geometry(),i=r.flat().map(o=>Ck([o.x,o.y],e.canonical));if(r.length===0)return NaN;let a=new Ik(i[0][1]),n=1/0;for(let o of t){switch(o.type){case"Point":n=Math.min(n,k4(i,!0,[o.coordinates],!1,a,n));break;case"LineString":n=Math.min(n,k4(i,!0,o.coordinates,!0,a,n));break;case"Polygon":n=Math.min(n,E4(i,!0,o.coordinates,a,n))}if(n===0)return n}return n}function vLe(e,t){let r=e.geometry();if(r.length===0||r[0].length===0)return NaN;let i=hw(r,0).map(o=>o.map(s=>s.map(l=>Ck([l.x,l.y],e.canonical)))),a=new Ik(i[0][0][0][1]),n=1/0;for(let o of t)for(let s of i){switch(o.type){case"Point":n=Math.min(n,E4([o.coordinates],!1,s,a,n));break;case"LineString":n=Math.min(n,E4(o.coordinates,!0,s,a,n));break;case"Polygon":n=Math.min(n,dLe(s,o.coordinates,a,n))}if(n===0)return n}return n}function U9(e){return e.type==="MultiPolygon"?e.coordinates.map(t=>({type:"Polygon",coordinates:t})):e.type==="MultiLineString"?e.coordinates.map(t=>({type:"LineString",coordinates:t})):e.type==="MultiPoint"?e.coordinates.map(t=>({type:"Point",coordinates:t})):[e]}function bte(e,[t,r,i,a],n){t=t.evaluate(e),r=r.evaluate(e),i=i.evaluate(e);let o=a?a.evaluate(e):1,s=Oie(t,r,i,o);if(s)throw new ba(s,n);return new Dr(t/255,r/255,i/255,o,!1)}function wte(e,t){return e in t&&t[e]!==void 0}function G9(e,t){let r=t[e];return r===void 0?null:r}function _Le(e,t,r,i){for(;r<=i;){let a=r+i>>1;if(t[a]===e)return!0;t[a]>e?i=a-1:r=a+1}return!1}function Fd(e){return{type:e}}function xLe(e){return Array.isArray(e)?`(${e.map(Sa).join(", ")})`:`(${Sa(e.type)}...)`}function C4(e){if(e instanceof Xie)return C4(e.boundExpression);if(e instanceof Wd&&e.name==="error"||e instanceof nae||e instanceof Pk||e instanceof Rk||e instanceof Bk)return!1;let t=e instanceof nm||e instanceof dh,r=!0;return e.eachChild(i=>{r&&(r=t?C4(i):i instanceof gm)}),r?dw(e)&&pw(e,["zoom","heatmap-density","elevation","line-progress","accumulated","is-supported-script"]):!1}function dw(e){if(e instanceof Wd&&(e.name==="get"&&e.args.length===1||e.name==="feature-state"||e.name==="has"&&e.args.length===1||e.name==="properties"||e.name==="geometry-type"||e.name==="id"||/^filter-/.test(e.name))||e instanceof Pk||e instanceof Rk)return!1;let t=!0;return e.eachChild(r=>{t&&!dw(r)&&(t=!1)}),t}function Hy(e){if(e instanceof Wd&&e.name==="feature-state")return!1;let t=!0;return e.eachChild(r=>{t&&!Hy(r)&&(t=!1)}),t}function pw(e,t){if(e instanceof Wd&&t.indexOf(e.name)>=0)return!1;let r=!0;return e.eachChild(i=>{r&&!pw(i,t)&&(r=!1)}),r}function ym(e){return e["property-type"]==="data-driven"||e["property-type"]==="cross-faded-data-driven"}function xae(e){return!!e.expression&&e.expression.parameters.indexOf("zoom")>-1}function qk(e){return!!e.expression&&e.expression.interpolated}function Zy(e,...t){for(let r of t)for(let i in r)e[i]=r[i];return e}function Vr(e){return e instanceof Number?"number":e instanceof String?"string":e instanceof Boolean?"boolean":Array.isArray(e)?"array":e===null?"null":typeof e}function mw(e){return typeof e=="object"&&!!e&&!Array.isArray(e)&&Za(e)===Bd}function bLe(e){return e}function wLe(e){switch(e.type){case"color":return Dr.parse;case"padding":return Fc.parse;case"numberArray":return Pc.parse;case"colorArray":return Vl.parse;default:return null}}function ALe(e){switch(e){case"exponential":return wae;case"interval":return MLe;case"categorical":return TLe;case"identity":return DLe;default:throw Error(`Unknown function type "${e}"`)}}function bae(e,t){let r=e.stops&&typeof e.stops[0][0]=="object",i=r||e.property!==void 0,a=r||!i,n=e.type||(qk(t)?"exponential":"interval"),o=wLe(t);if(o&&(e=Zy({},e),e.stops&&(e.stops=e.stops.map(c=>[c[0],o(c[1])])),e.default?e.default=o(e.default):e.default=o(t.default)),e.colorSpace&&!mIe(e.colorSpace))throw Error(`Unknown color space: "${e.colorSpace}"`);let s=ALe(n),l,u;if(n==="categorical"){l=Object.create(null);for(let c of e.stops)l[c[0]]=c[1];u=typeof e.stops[0][0]}if(r){let c={},h=[];for(let p=0;pp[0]),evaluate({zoom:p},m){return wae({stops:f,base:e.base},t,p).evaluate(p,m)}}}if(a){let c=n==="exponential"?{name:"exponential",base:e.base===void 0?1:e.base}:null;return{kind:"camera",interpolationType:c,interpolationFactor:Ul.interpolationFactor.bind(void 0,c),zoomStops:e.stops.map(h=>h[0]),evaluate:({zoom:h})=>s(e,t,h,l,u)}}return{kind:"source",evaluate(c,h){let f=h&&h.properties?h.properties[e.property]:void 0;return f===void 0?y2(e.default,t.default):s(e,t,f,l,u)}}}function y2(e,t,r){if(e!==void 0)return e;if(t!==void 0)return t;if(r!==void 0)return r}function TLe(e,t,r,i,a){return y2(typeof r===a?i[r]:void 0,e.default,t.default)}function MLe(e,t,r){if(Vr(r)!=="number")return y2(e.default,t.default);let i=e.stops.length;if(i===1||r<=e.stops[0][0])return e.stops[0][1];if(r>=e.stops[i-1][0])return e.stops[i-1][1];let a=cw(e.stops.map(n=>n[0]),r,"");return e.stops[a][1]}function wae(e,t,r){let i=e.base===void 0?1:e.base;if(Vr(r)!=="number")return y2(e.default,t.default);let a=e.stops.length;if(a===1||r<=e.stops[0][0])return e.stops[0][1];if(r>=e.stops[a-1][0])return e.stops[a-1][1];let n=cw(e.stops.map(c=>c[0]),r,""),o=SLe(r,i,e.stops[n][0],e.stops[n+1][0]),s=e.stops[n][1],l=e.stops[n+1][1],u=pa[t.type]||bLe;return typeof s.evaluate=="function"?{evaluate(...c){let h=s.evaluate.apply(void 0,c),f=l.evaluate.apply(void 0,c);if(h!==void 0&&f!==void 0)return u(h,f,o,e.colorSpace)}}:u(s,l,o,e.colorSpace)}function DLe(e,t,r){switch(t.type){case"color":r=Dr.parse(r);break;case"formatted":r=vh.fromString(r.toString());break;case"resolvedImage":r=kc.fromString(r.toString());break;case"padding":r=Fc.parse(r);break;case"colorArray":r=Vl.parse(r);break;case"numberArray":r=Pc.parse(r);break;default:Vr(r)!==t.type&&(t.type!=="enum"||!t.values[r])&&(r=void 0)}return y2(r,e.default,t.default)}function SLe(e,t,r,i){let a=i-r,n=e-r;return a===0?0:t===1?n/a:(t**+n-1)/(t**+a-1)}function uE(e){return{result:"success",value:e}}function rm(e){return{result:"error",value:e}}function Aae(e,t,r,i){return`${e}${t}: ${r}${i==null?"":` Falling back to ${String(i)}.`}`}function Tae(e){if(!e)throw Error('rootKey must identify the location of the expression in the style JSON, e.g. "layers[3].paint.line-width".')}function vw(e){return Array.isArray(e)&&e.length>0&&typeof e[0]=="string"&&e[0]in lm}function gw(e,t,r,i){Tae(t);let a=new yae(lm,C4,[],r?CLe(r):void 0),n=a.parse(e,void 0,void 0,void 0,r&&r.type==="string"?{typeAnnotation:"coerce"}:void 0);return n?uE(new Nk(n,t,r,i)):rm(a.errors)}function ELe(e){return e._styleExpression!==void 0}function Mae(e,t,r,i){let a=gw(e,t,r,i);if(a.result==="error")return a;let n=a.value.expression,o=dw(n);if(!o&&!ym(r))return rm([new Ac("","data expressions not supported")]);let s=pw(n,["zoom"]);if(!s&&!xae(r))return rm([new Ac("","zoom expressions not supported")]);let l=T4(n);if(!l&&!s)return rm([new Ac("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.')]);if(l instanceof Ac)return rm([l]);if(l instanceof Ul&&!qk(r))return rm([new Ac("",'"interpolate" expressions cannot be used with this property')]);if(!l)return uE(o?new Yy("constant",a.value,i):new Yy("source",a.value,i));let u=l instanceof Ul?l.interpolation:void 0;return uE(o?new F4("camera",a.value,l.labels,u,i):new F4("composite",a.value,l.labels,u,i))}function kLe(e,t,r,i){if(mw(e))return new Dae(e,t,r);if(vw(e)){let a=Mae(e,t,r,i);if(a.result==="error")throw Error(a.value.map(n=>`${n.key}: ${n.message}`).join(", "));return a.value}{let a=e;return r.type==="color"&&typeof e=="string"?a=Dr.parse(e):r.type==="padding"&&(typeof e=="number"||Array.isArray(e))?a=Fc.parse(e):r.type==="numberArray"&&(typeof e=="number"||Array.isArray(e))?a=Pc.parse(e):r.type==="colorArray"&&(typeof e=="string"||Array.isArray(e))?a=Vl.parse(e):r.type==="variableAnchorOffsetCollection"&&Array.isArray(e)?a=Ec.parse(e):r.type==="projectionDefinition"&&typeof e=="string"&&(a=wh.parse(e)),{globalStateRefs:new Set,_globalState:null,kind:"constant",evaluate:()=>a}}}function T4(e){let t=null;if(e instanceof Yie)t=T4(e.result);else if(e instanceof rae){for(let r of e.args)if(t=T4(r),t)break}else(e instanceof kk||e instanceof Ul)&&e.input instanceof Wd&&e.input.name==="zoom"&&(t=e);return t instanceof Ac||e.eachChild(r=>{let i=T4(r);i instanceof Ac?t=i:!t&&i?t=new Ac("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.'):t&&i&&t!==i&&(t=new Ac("",'Only one zoom-based "step" or "interpolate" subexpression may be used in an expression.'))}),t}function _2(e,t=new Set){return e instanceof Bk&&t.add(e.key),e.eachChild(r=>{_2(r,t)}),t}function CLe(e){let t={color:Cu,string:Er,number:Vt,enum:Er,boolean:Xr,formatted:m2,padding:sw,numberArray:lw,colorArray:Gy,projectionDefinition:nw,resolvedImage:v2,variableAnchorOffsetCollection:uw};return e.type==="array"?ko(t[e.value]||Ir,e.length):t[e.type]}function Eae(e){if(e.type==="color"&&mw(e.default))return new Dr(0,0,0,0);switch(e.type){case"color":return Dr.parse(e.default)||null;case"padding":return Fc.parse(e.default)||null;case"numberArray":return Pc.parse(e.default)||null;case"colorArray":return Vl.parse(e.default)||null;case"variableAnchorOffsetCollection":return Ec.parse(e.default)||null;case"projectionDefinition":return wh.parse(e.default)||null;default:return e.default===void 0?null:e.default}}function _m(e,t){let{zoom:r,heatmapDensity:i,elevation:a,lineProgress:n,isSupportedScript:o,accumulated:s}=e!=null?e:{};return{zoom:r,heatmapDensity:i,elevation:a,lineProgress:n,isSupportedScript:o,accumulated:s,globalState:t}}function FLe(e){let t=!1;for(let r of e){let i=kae(r);if(i==="expression")return"expression";i==="legacy"&&(t=!0)}return t?"legacy":"neutral"}function kae(e){if(typeof e=="boolean")return"neutral";if(!Array.isArray(e)||e.length===0)return"legacy";switch(e[0]){case"has":return e.length<2||e[1]==="$id"||e[1]==="$type"?"legacy":e.length===2?"neutral":"expression";case"in":return e.length>=3&&(typeof e[1]!="string"||Array.isArray(e[2]))?"expression":"legacy";case"!in":case"!has":return"legacy";case"==":case"!=":case">":case">=":case"<":case"<=":return e.length!==3||Array.isArray(e[1])||Array.isArray(e[2])?"expression":"legacy";case"none":return"legacy";case"any":case"all":return FLe(e.slice(1));default:return"expression"}}function Vk(e){return kae(e)!=="legacy"}function Ate(e){return e==="$type"?["geometry-type"]:e==="$id"?["id"]:["get",e]}function PLe(e){switch(e[0]){case"==":case"!=":case"<":case"<=":case">":case">=":return e.length!==3||typeof e[1]!="string"?null:[e[0],Ate(e[1]),e[2]];case"in":case"!in":{if(e.length<2||typeof e[1]!="string")return null;let t=["in",Ate(e[1]),["literal",e.slice(2)]];return e[0]==="!in"?["!",t]:t}case"has":case"!has":{if(e.length!==2||typeof e[1]!="string"||e[1]==="$type"||e[1]==="$id")return null;let t=["has",e[1]];return e[0]==="!has"?["!",t]:t}default:return null}}function Cae(e){if((e[0]==="<"||e[0]==="<="||e[0]===">"||e[0]===">=")&&e[1]==="$type")return`"$type" cannot be use with operator "${e[0]}"`;let t=PLe(e);return t?`Mixing deprecated filter syntax with expression syntax is not supported. Replace ${JSON.stringify(e)} with ${JSON.stringify(t)}.`:`Mixing deprecated filter syntax with expression syntax is not supported. Convert ${JSON.stringify(e)} to expression syntax.`}function j9(e,t,r){let i=r[e];return Array.isArray(i)?Vk(i)?Uk(i,t.concat(e)):{path:t.concat(e),legacyFilter:i}:null}function Uk(e,t=[]){if(!Array.isArray(e)||e.length<1)return null;switch(e[0]){case"all":case"any":case"none":for(let r=1;r"u")return;let i=r.path.map(a=>`[${a}]`).join("");console.warn(`${t}${i}: ${Cae(r.legacyFilter)}`)}function xm(e,t,r){if(e==null)return{filter:()=>!0,needGeometry:!1,getGlobalStateRefs:()=>new Set};Vk(e)?ILe(e,t):e=P4(e);let i=gw(e,t,LLe,r);if(i.result==="error")throw Error(i.value.map(a=>`${a.key}: ${a.message}`).join(", "));return{filter:(a,n,o)=>i.value.evaluate(a,n,{},o),needGeometry:Fae(e),getGlobalStateRefs:()=>_2(i.value.expression)}}function zLe(e,t){return et)}function Fae(e){if(!Array.isArray(e))return!1;if(e[0]==="within"||e[0]==="distance")return!0;for(let t=1;t"||t==="<="||t===">="?$9(e[1],e[2],t):t==="any"?RLe(e.slice(1)):t==="all"?["all"].concat(e.slice(1).map(P4)):t==="none"?["all"].concat(e.slice(1).map(P4).map(l4)):t==="in"?Tte(e[1],e.slice(2)):t==="!in"?l4(Tte(e[1],e.slice(2))):t==="has"?Mte(e[1]):t!=="!has"||l4(Mte(e[1]))}function $9(e,t,r){switch(e){case"$type":return[`filter-type-${r}`,t];case"$id":return[`filter-id-${r}`,t];default:return[`filter-${r}`,e,t]}}function RLe(e){return["any"].concat(e.map(P4))}function Tte(e,t){if(t.length===0)return!1;switch(e){case"$type":return["filter-type-in",["literal",t]];case"$id":return["filter-id-in",["literal",t]];default:return t.length>200&&!t.some(r=>typeof r!=typeof t[0])?["filter-in-large",e,["literal",t.sort(zLe)]]:["filter-in-small",e,["literal",t]]}}function Mte(e){switch(e){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",e]}}function l4(e){return["!",e]}function Pae(e){let t=e.key,r=e.value;return r?[new xt(t,r,"constants have been deprecated as of v8")]:[]}function $a(e){return e instanceof Number||e instanceof String||e instanceof Boolean?e.valueOf():e}function Ud(e){if(Array.isArray(e))return e.map(Ud);if(e instanceof Object&&!(e instanceof Number||e instanceof String||e instanceof Boolean)){let t={};for(let r in e)t[r]=Ud(e[r]);return t}return $a(e)}function Ys(e){let t=e.key,r=e.value,i=e.valueSpec||{},a=e.objectElementValidators||{},n=e.style,o=e.styleSpec,s=e.validateSpec,l=[],u=Vr(r);if(u!=="object")return[new xt(t,r,`object expected, ${u} found`)];for(let c in r){let h=c.split(".")[0],f=Ry(i,h)||i["*"],d;if(Ry(a,h))d=a[h];else if(Ry(i,h)){if(r[c]===void 0)continue;d=s}else if(a["*"])d=a["*"];else if(i["*"])d=s;else{l.push(new xt(t,r[c],`unknown property "${c}"`));continue}l=l.concat(d({key:(t&&`${t}.`)+c,value:r[c],valueSpec:f,style:n,styleSpec:o,object:r,objectKey:c,validateSpec:s},r))}for(let c in i)a[c]||i[c].required&&i[c].default===void 0&&r[c]===void 0&&l.push(new xt(t,r,`missing required property "${c}"`));return l}function Gk(e){let t=e.value,r=e.valueSpec,i=e.validateSpec,a=e.style,n=e.styleSpec,o=e.key,s=e.arrayElementValidator||i;if(Vr(t)!=="array")return[new xt(o,t,`array expected, ${Vr(t)} found`)];if(r.length&&t.length!==r.length)return[new xt(o,t,`array length ${r.length} expected, length ${t.length} found`)];let l={type:r.value,values:r.values};n.$version<7&&(l.function=r.function),Vr(r.value)==="object"&&(l=r.value);let u=[];for(let c=0;ci.maximum?[new xt(t,r,`${r} is greater than the maximum value ${i.maximum}`)]:[]:[new xt(t,r,`number expected, ${a} found`)]}function Iae(e){let t=e.valueSpec,r=$a(e.value.type),i,a={},n,o,s=r!=="categorical"&&e.value.property===void 0,l=!s,u=Vr(e.value.stops)==="array"&&Vr(e.value.stops[0])==="array"&&Vr(e.value.stops[0][0])==="object",c=Ys({key:e.key,value:e.value,valueSpec:e.styleSpec.function,validateSpec:e.validateSpec,style:e.style,styleSpec:e.styleSpec,objectElementValidators:{stops:h,default:p}});return r==="identity"&&s&&c.push(new xt(e.key,e.value,'missing required property "property"')),r!=="identity"&&!e.value.stops&&c.push(new xt(e.key,e.value,'missing required property "stops"')),r==="exponential"&&e.valueSpec.expression&&!qk(e.valueSpec)&&c.push(new xt(e.key,e.value,"exponential functions not supported")),e.styleSpec.$version>=8&&(l&&!ym(e.valueSpec)?c.push(new xt(e.key,e.value,"property functions not supported")):s&&!xae(e.valueSpec)&&c.push(new xt(e.key,e.value,"zoom functions not supported"))),(r==="categorical"||u)&&e.value.property===void 0&&c.push(new xt(e.key,e.value,'"property" property is required')),c;function h(m){if(r==="identity")return[new xt(m.key,m.value,'identity function may not have a "stops" property')];let g=[],y=m.value;return g=g.concat(Gk({key:m.key,value:y,valueSpec:m.valueSpec,validateSpec:m.validateSpec,style:m.style,styleSpec:m.styleSpec,arrayElementValidator:f})),Vr(y)==="array"&&y.length===0&&g.push(new xt(m.key,y,"array must have at least one stop")),g}function f(m){let g=[],y=m.value,x=m.key;if(Vr(y)!=="array")return[new xt(x,y,`array expected, ${Vr(y)} found`)];if(y.length!==2)return[new xt(x,y,`array length 2 expected, length ${y.length} found`)];if(u){if(Vr(y[0])!=="object")return[new xt(x,y,`object expected, ${Vr(y[0])} found`)];if(y[0].zoom===void 0)return[new xt(x,y,"object stop key must have zoom")];if(y[0].value===void 0)return[new xt(x,y,"object stop key must have value")];if(o&&o>$a(y[0].zoom))return[new xt(x,y[0].zoom,"stop zoom values must appear in ascending order")];$a(y[0].zoom)!==o&&(o=$a(y[0].zoom),n=void 0,a={}),g=g.concat(Ys({key:`${x}[0]`,value:y[0],valueSpec:{zoom:{}},validateSpec:m.validateSpec,style:m.style,styleSpec:m.styleSpec,objectElementValidators:{zoom:yw,value:d}}))}else g=g.concat(d({key:`${x}[0]`,value:y[0],valueSpec:{},validateSpec:m.validateSpec,style:m.style,styleSpec:m.styleSpec},y));return vw(Ud(y[1]))?g.concat([new xt(`${x}[1]`,y[1],"expressions are not allowed in function stops.")]):g.concat(m.validateSpec({key:`${x}[1]`,value:y[1],valueSpec:t,validateSpec:m.validateSpec,style:m.style,styleSpec:m.styleSpec}))}function d(m,g){let y=Vr(m.value),x=$a(m.value),w=m.value===null?g:m.value;if(!i)i=y;else if(y!==i)return[new xt(m.key,w,`${y} stop domain type must match previous stop domain type ${i}`)];if(y!=="number"&&y!=="string"&&y!=="boolean")return[new xt(m.key,w,"stop domain value must be a number, string, or boolean")];if(y!=="number"&&r!=="categorical"){let _=`number expected, ${y} found`;return ym(t)&&r===void 0&&(_+='\nIf you intended to use a categorical function, specify `"type": "categorical"`.'),[new xt(m.key,w,_)]}return r==="categorical"&&y==="number"&&(!isFinite(x)||Math.floor(x)!==x)?[new xt(m.key,w,`integer expected, found ${x}`)]:r!=="categorical"&&y==="number"&&n!==void 0&&xnew xt(`${e.key}${i.key}`,e.value,i.message));let r=t.value.expression||t.value._styleExpression.expression;if(e.expressionContext==="property"&&e.propertyKey==="text-font"&&!r.outputDefined())return[new xt(e.key,e.value,`Invalid data expression for "${e.propertyKey}". Output values must be contained as literals within the expression.`)];if(e.expressionContext==="property"&&e.propertyType==="layout"&&!Hy(r))return[new xt(e.key,e.value,'"feature-state" data expressions are not supported with layout properties.')];if(e.expressionContext==="filter"&&!Hy(r))return[new xt(e.key,e.value,'"feature-state" data expressions are not supported with filters.')];if(e.expressionContext&&e.expressionContext.indexOf("cluster")===0){if(!pw(r,["zoom","feature-state"]))return[new xt(e.key,e.value,'"zoom" and "feature-state" expressions are not supported with cluster properties.')];if(e.expressionContext==="cluster-initial"&&!dw(r))return[new xt(e.key,e.value,"Feature data expressions are not supported with initial expression part of cluster properties.")]}return[]}function BLe(e){let t=e.value,r=e.key,i=Vr(t);return i==="boolean"?[]:[new xt(r,t,`boolean expected, ${i} found`)]}function cE(e){let t=e.key,r=e.value,i=Vr(r);return i==="string"?Dr.parse(String(r))?[]:[new xt(t,r,`color expected, "${r}" found`)]:[new xt(t,r,`color expected, ${i} found`)]}function Wy(e){let t=e.key,r=e.value,i=e.valueSpec,a=[];return Array.isArray(i.values)?i.values.indexOf($a(r))===-1&&a.push(new xt(t,r,`expected one of [${i.values.join(", ")}], ${JSON.stringify(r)} found`)):Object.keys(i.values).indexOf($a(r))===-1&&a.push(new xt(t,r,`expected one of [${Object.keys(i.values).join(", ")}], ${JSON.stringify(r)} found`)),a}function qLe(e,t){let r=e;for(let i of t)r=r[i];return r}function OLe(e,t){let r=Uk(t);return r?[new xt(`${e.key}${r.path.map(i=>`[${i}]`).join("")}`,qLe(e.value,r.path),Cae(r.legacyFilter),null,"warning")]:[]}function jk(e){let t=Ud(e.value);return Vk(t)?[...OLe(e,t),...bm(Zy({},e,{expressionContext:"filter",valueSpec:{value:"boolean"}}))]:Lae(e)}function Lae(e){let t=e.value,r=e.key;if(Vr(t)!=="array")return[new xt(r,t,`array expected, ${Vr(t)} found`)];let i=e.styleSpec,a,n=[];if(t.length<1)return[new xt(r,t,"filter array must have at least 1 element")];switch(n=n.concat(Wy({key:`${r}[0]`,value:t[0],valueSpec:i.filter_operator,style:e.style,styleSpec:e.styleSpec})),$a(t[0])){case"<":case"<=":case">":case">=":t.length>=2&&$a(t[1])==="$type"&&n.push(new xt(r,t,`"$type" cannot be use with operator "${t[0]}"`));case"==":case"!=":t.length!==3&&n.push(new xt(r,t,`filter array for operator "${t[0]}" must have 3 elements`));case"in":case"!in":t.length>=2&&(a=Vr(t[1]),a!=="string"&&n.push(new xt(`${r}[1]`,t[1],`string expected, ${a} found`)));for(let o=2;o{h in r&&t.push(new xt(i,r[h],`"${h}" is prohibited for ref layers`))});let c;a.layers.forEach(h=>{$a(h.id)===s&&(c=h)}),c?c.ref?t.push(new xt(i,r.ref,"ref cannot reference another ref layer")):o=$a(c.type):t.push(new xt(i,r.ref,`ref layer "${s}" not found`))}else if(o!=="background")if(!r.source)t.push(new xt(i,r,'missing required property "source"'));else{let c=a.sources&&a.sources[r.source],h=c&&$a(c.type);c?h==="vector"&&o==="raster"?t.push(new xt(i,r.source,`layer "${r.id}" requires a raster source`)):h!=="raster-dem"&&o==="hillshade"||h!=="raster-dem"&&o==="color-relief"?t.push(new xt(i,r.source,`layer "${r.id}" requires a raster-dem source`)):h==="raster"&&o!=="raster"?t.push(new xt(i,r.source,`layer "${r.id}" requires a vector source`)):h==="vector"&&!r["source-layer"]?t.push(new xt(i,r,`layer "${r.id}" must specify a "source-layer"`)):h==="raster-dem"&&o!=="hillshade"&&o!=="color-relief"?t.push(new xt(i,r.source,"raster-dem source can only be used with layer type 'hillshade' or 'color-relief'.")):o==="line"&&r.paint&&r.paint["line-gradient"]&&(h!=="geojson"||!c.lineMetrics)&&t.push(new xt(i,r,`layer "${r.id}" specifies a line-gradient, which requires a GeoJSON source with \`lineMetrics\` enabled.`)):t.push(new xt(i,r.source,`source "${r.source}" not found`))}return o==="raster"&&((l=r.paint)!=null&&l.resampling)&&((u=r.paint)!=null&&u["raster-resampling"])&&t.push(new xt(i,r.paint,`layer "${r.id}" redundantly specifies "resampling" and "raster-resampling" paint properties, but only one is allowed. It is advised to use "resampling".`)),t=t.concat(Ys({key:i,value:r,valueSpec:n.layer,style:e.style,styleSpec:e.styleSpec,validateSpec:e.validateSpec,objectElementValidators:{"*"(){return[]},type(){return e.validateSpec({key:`${i}.type`,value:r.type,valueSpec:n.layer.type,style:e.style,styleSpec:e.styleSpec,validateSpec:e.validateSpec,object:r,objectKey:"type"})},filter:jk,layout(c){return Ys({layer:r,key:c.key,value:c.value,style:c.style,styleSpec:c.styleSpec,validateSpec:c.validateSpec,objectElementValidators:{"*"(h){return Bae(Zy({layerType:o},h))}}})},paint(c){return Ys({layer:r,key:c.key,value:c.value,style:c.style,styleSpec:c.styleSpec,validateSpec:c.validateSpec,objectElementValidators:{"*"(h){return Rae(Zy({layerType:o},h))}}})}}})),t}function Vf(e){let t=e.value,r=e.key,i=Vr(t);return i==="string"?[]:[new xt(r,t,`string expected, ${i} found`)]}function NLe(e){var h;let t=(h=e.sourceName)!=null?h:"",r=e.value,i=e.styleSpec,a=i.source_raster_dem,n=e.style,o=[],s=Vr(r);if(r===void 0)return o;if(s!=="object")return o.push(new xt("source_raster_dem",r,`object expected, ${s} found`)),o;let l=$a(r.encoding)==="custom",u=["redFactor","greenFactor","blueFactor","baseShift"],c=e.value.encoding?`"${e.value.encoding}"`:"Default";for(let f in r)!l&&u.includes(f)?o.push(new xt(f,r[f],`In "${t}": "${f}" is only valid when "encoding" is set to "custom". ${c} encoding found`)):a[f]?o=o.concat(e.validateSpec({key:f,value:r[f],valueSpec:a[f],validateSpec:e.validateSpec,style:n,styleSpec:i})):o.push(new xt(f,r[f],`unknown property "${f}"`));return o}function Oae(e){let t=e.value,r=e.key,i=e.styleSpec,a=e.style,n=e.validateSpec;if(!t.type)return[new xt(r,t,'"type" is required')];let o=$a(t.type),s;switch(o){case"vector":case"raster":return s=Ys({key:r,value:t,valueSpec:i[`source_${o.replace("-","_")}`],style:e.style,styleSpec:i,objectElementValidators:Dte,validateSpec:n}),s;case"raster-dem":return s=NLe({sourceName:r,value:t,style:e.style,styleSpec:i,validateSpec:n}),s;case"geojson":if(s=Ys({key:r,value:t,valueSpec:i.source_geojson,style:a,styleSpec:i,validateSpec:n,objectElementValidators:Dte}),t.cluster)for(let l in t.clusterProperties){let[u,c]=t.clusterProperties[l],h=typeof u=="string"?[u,["accumulated"],["get",l]]:u;s.push(...bm({key:`${r}.${l}.map`,value:c,validateSpec:n,expressionContext:"cluster-map"})),s.push(...bm({key:`${r}.${l}.reduce`,value:h,validateSpec:n,expressionContext:"cluster-reduce"}))}return s;case"video":return Ys({key:r,value:t,valueSpec:i.source_video,style:a,validateSpec:n,styleSpec:i});case"image":return Ys({key:r,value:t,valueSpec:i.source_image,style:a,validateSpec:n,styleSpec:i});case"canvas":return[new xt(r,null,"Please use runtime APIs to add canvas sources, rather than including them in stylesheets.","source.canvas")];default:return Wy({key:`${r}.type`,value:t.type,valueSpec:{values:["vector","raster","raster-dem","geojson","video","image"]},style:a,validateSpec:n,styleSpec:i})}}function VLe({key:e,value:t}){if(Vr(t)==="string")return Vf({key:e,value:t});{let r=[];for(let i in t)r.push(...Vf({key:`${e}.${i}`,value:t[i]}));return r}}function Nae(e){let t=e.value,r=e.styleSpec,i=r.light,a=e.style,n=[],o=Vr(t);if(t===void 0)return n;if(o!=="object")return n=n.concat([new xt("light",t,`object expected, ${o} found`)]),n;for(let s in t){let l=s.match(Ok);n=l&&i[l[1]]&&i[l[1]].transition?n.concat(e.validateSpec({key:s,value:t[s],valueSpec:r.transition,validateSpec:e.validateSpec,style:a,styleSpec:r})):i[s]?n.concat(e.validateSpec({key:s,value:t[s],valueSpec:i[s],validateSpec:e.validateSpec,style:a,styleSpec:r})):n.concat([new xt(s,t[s],`unknown property "${s}"`)])}return n}function Vae(e){let t=e.value,r=e.styleSpec,i=r.sky,a=e.style,n=Vr(t);if(t===void 0)return[];if(n!=="object")return[new xt("sky",t,`object expected, ${n} found`)];let o=[];for(let s in t){let l=s.match(Ok);o=l&&i[l[1]]&&i[l[1]].transition?o.concat(e.validateSpec({key:s,value:t[s],valueSpec:r.transition,style:a,styleSpec:r})):i[s]?o.concat(e.validateSpec({key:s,value:t[s],valueSpec:i[s],style:a,styleSpec:r})):o.concat([new xt(s,t[s],`unknown property "${s}"`)])}return o}function Uae(e){let t=e.value,r=e.styleSpec,i=r.terrain,a=e.style,n=[],o=Vr(t);if(t===void 0)return n;if(o!=="object")return n=n.concat([new xt("terrain",t,`object expected, ${o} found`)]),n;for(let s in t)n=i[s]?n.concat(e.validateSpec({key:s,value:t[s],valueSpec:i[s],validateSpec:e.validateSpec,style:a,styleSpec:r})):n.concat([new xt(s,t[s],`unknown property "${s}"`)]);return n}function ULe(e){return Vf(e).length===0?[]:bm(e)}function GLe(e){return Vf(e).length===0?[]:bm(e)}function jLe(e){let t=e.key,r=e.value;if(Vr(r)==="array"){if(r.length<1||r.length>4)return[new xt(t,r,`padding requires 1 to 4 values; ${r.length} values found`)];let i={type:"number"},a=[];for(let n=0;n[new xt(e,t,'invalid unicode range, expected a value such as "U+26", "U+0-10FFFF" or "U+4??"')],a=r.match(JLe);if(!a)return i();let[,n,o,s]=a;if(s!==void 0)return s.length>6?i():[];let l=parseInt(n,16),u=o===void 0?l:parseInt(o,16);return l>Ste||u>Ste?[new xt(e,t,"unicode range is out of bounds, the maximum code point is U+10FFFF")]:l>u?[new xt(e,t,`unicode range start must not be greater than its end, but ${r} is`)]:[]}function $ae(e){var s,l;let t=(s=e.key)!=null?s:"font-faces",r=e.value,i=e.validateSpec,a=(l=e.styleSpec)!=null?l:kie,n=e.style;if(!hE(r))return[new xt(t,r,`object expected, ${Vr(r)} found`)];let o=[];for(let u in r){let c=r[u],h=Vr(c);if(h==="string")o.push(...Vf({key:`${t}.${u}`,value:c}));else if(h==="array"){let f={url:{type:"string",required:!0},"unicode-range":{type:"array",value:"string"}};for(let[d,p]of c.entries()){let m=`${t}.${u}[${d}]`;o.push(...Ys({key:m,value:p,valueSpec:f,styleSpec:a,style:n,validateSpec:i}));let g=hE(p)?p["unicode-range"]:void 0;if(Vr(g)==="array")for(let[y,x]of g.entries())o.push(...QLe(`${m}.unicode-range[${y}]`,x))}}else o.push(new xt(`${t}.${u}`,c,`string or array expected, ${h} found`))}return o}function qy(e){let t=e.value,r=e.valueSpec,i=e.styleSpec;return e.validateSpec=qy,r.expression&&mw($a(t))?Iae(e):r.expression&&vw(Ud(t))?bm(e):r.type&&Ete[r.type]?Ete[r.type](e):Ys(Zy({},e,{valueSpec:r.type?i[r.type]:r}))}function Hae(e){let t=e.value,r=e.key,i=Vf(e);return i.length||(t.indexOf("{fontstack}")===-1&&i.push(new xt(r,t,'"glyphs" url must include a "{fontstack}" token')),t.indexOf("{range}")===-1&&i.push(new xt(r,t,'"glyphs" url must include a "{range}" token'))),i}function Zs(e,t=Xe){let r=[];return r=r.concat(qy({key:"",value:e,valueSpec:t.$root,styleSpec:t,style:e,validateSpec:qy,objectElementValidators:{glyphs:Hae,"*"(){return[]}}})),e.constants&&(r=r.concat(Pae({key:"constants",value:e.constants,style:e,styleSpec:t,validateSpec:qy}))),Zae(r)}function Rl(e){return function(t){return e(Object.assign({},t,{validateSpec:qy}))}}function Zae(e){return[].concat(e).sort((t,r)=>t.line-r.line)}function Bl(e){return function(...t){return Zae(e.apply(this,t))}}function rze(e,t,r){return new tze(e,t,r)}function ize(e){var t;return Object.entries((t=e.sources)!=null?t:{}).filter(([,r])=>!$k.has(r.type)).map(([r])=>`sources.${r}`)}function Hk(e,t){let r=ize(t);return _w(e,Wo(t).filter(({message:i})=>!r.some(a=>i.startsWith(`${a}:`)||i.startsWith(`${a}.`))))}function _w(e,t){let r=!1;for(let i of t){if(i.severity==="warning"){$r(i.message);continue}e.fire(new sr(Error(i.message))),r=!0}return r}function km(e,t,r,i){return(i==null?void 0:i.validate)!==!1&&_w(e,t(nr({styleSpec:Xe},r)))}function Yt(e,t,r={}){if(ph[e])throw Error(`${e} is already registered.`);Object.defineProperty(t,"_classRegistryKey",{value:e,writeable:!1}),ph[e]={klass:t,omit:r.omit||[],shallow:r.shallow||[]}}function Wae(e){var t;return e&&typeof ArrayBuffer<"u"&&(e instanceof ArrayBuffer||((t=e.constructor)==null?void 0:t.name)==="ArrayBuffer")}function Zk(e){let t=e.constructor;return e.$name||t._classRegistryKey}function aze(e){if(typeof e!="object"||!e)return!1;let t=Zk(e);return t&&t!=="Object"}function Xae(e){return!aze(e)&&(e==null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||e instanceof Boolean||e instanceof Number||e instanceof String||e instanceof Date||e instanceof RegExp||e instanceof Blob||e instanceof Error||Wae(e)||$f(e)||ArrayBuffer.isView(e)||e instanceof ImageData)}function Oy(e,t){if(Xae(e))return(Wae(e)||$f(e))&&t&&t.push(e),ArrayBuffer.isView(e)&&t&&t.push(e.buffer),e instanceof ImageData&&t&&t.push(e.data.buffer),e;if(Array.isArray(e)){let n=[];for(let o of e)n.push(Oy(o,t));return n}if(typeof e!="object")throw Error(`can't serialize object of type ${typeof e}`);let r=Zk(e);if(!r)throw Error(`can't serialize object of unregistered class ${e.constructor.name}`);if(!ph[r])throw Error(`${r} is not registered.`);let{klass:i}=ph[r],a=i.serialize?i.serialize(e,t):{};if(i.serialize){if(a===(t==null?void 0:t[t.length-1]))throw Error("statically serialized object won't survive transfer of $name property")}else{for(let n in e){if(!e.hasOwnProperty(n)||ph[r].omit.includes(n))continue;let o=e[n];o!==void 0&&(a[n]=ph[r].shallow.includes(n)?o:Oy(o,t))}e instanceof Error&&(a.message=e.message)}if(a.$name)throw Error("$name property is reserved for worker serialization logic.");return r!=="Object"&&(a.$name=r),a}function Ny(e){if(Xae(e))return e;if(Array.isArray(e))return e.map(Ny);if(typeof e!="object")throw Error(`can't deserialize object of type ${typeof e}`);let t=Zk(e)||"Object";if(!ph[t])throw Error(`can't deserialize unregistered class ${t}`);let{klass:r}=ph[t];if(!r)throw Error(`can't deserialize unregistered class ${t}`);if(r.deserialize)return r.deserialize(e);let i=Object.create(r.prototype);for(let a of Object.keys(e)){if(a==="$name")continue;let n=e[a];i[a]=ph[t].shallow.includes(a)?n:Ny(n)}return i}function Fte(e){if(Array.isArray(e))return e.length;let t=e==null?void 0:e.values;return Array.isArray(t)?t.length:void 0}function Kae(e,t){let r=Fte(e),i=Fte(t);return r!==void 0&&i!==void 0&&r!==i}function wa(e,t=1){let r=0,i=0;return{members:e.map(a=>{let n=cze(a.type),o=r=Lte(r,Math.max(t,n)),s=a.components||1;return i=Math.max(i,n),r+=n*s,{name:a.name,type:a.type,components:s,offset:o}}),size:Lte(r,Math.max(i,t)),alignment:t}}function cze(e){return uze[e].BYTES_PER_ELEMENT}function Lte(e,t){return Math.ceil(e/t)*t}function Bte(e,t){return e=Ar(Math.floor(e),0,255),t=Ar(Math.floor(t),0,255),256*e+t}function qte(e){let t=+e;return!isNaN(t)&&t<=2**53-1?t:(0,B4.default)(String(e))}function zE(e,t,r,i){for(;r>1],n=r-1,o=i+1;for(;;){do n++;while(e[n]a);if(n>=o)break;u4(e,n,o),u4(t,3*n,3*o),u4(t,3*n+1,3*o+1),u4(t,3*n+2,3*o+2)}o-ra.x+1||oa.y+1)&&$r("Geometry exceeds allowed extent, reduce your vector tile buffer size")}return r}function Hf(e,t){return{type:e.type,id:e.id,properties:e.properties,geometry:t?Xd(e):[]}}function Eze(e,t,r,i,a){e.emplaceBack(Vte+t*8+i,Vte+r*8+a)}function Jk(e,t){for(let r of e)if(wm(t,r))return!0;for(let r of t)if(wm(e,r))return!0;return Qk(e,t)}function Aw(e,t,r){return wm(e,t)?!0:qE(t,e,r)}function xne(e,t){if(e.length===1)return Ute(t,e[0]);for(let r of t)for(let i of r)if(wm(e,i))return!0;for(let r of e)if(Ute(t,r))return!0;for(let r of t)if(Qk(e,r))return!0;return!1}function kze(e,t,r){for(let i of t){if(e.length>=3){for(let a of i)if(wm(e,a))return!0}if(Cze(e,i,r))return!0}return!1}function Cze(e,t,r){if(e.length>1){if(Qk(e,t))return!0;for(let i of t)if(qE(i,e,r))return!0}for(let i of e)if(qE(i,t,r))return!0;return!1}function Qk(e,t){if(e.length===0||t.length===0)return!1;for(let r=0;r1?e.distSqr(r):e.distSqr(r.sub(t)._mult(a)._add(t))}function Ute(e,t){let r=!1,i,a,n;for(let o of e){i=o;for(let s=0,l=i.length-1;st.y!=n.y>t.y&&t.x<(n.x-a.x)*(t.y-a.y)/(n.y-a.y)+a.x&&(r=!r)}return r}function wm(e,t){let r=!1;for(let i=0,a=e.length-1;it.y!=o.y>t.y&&t.x<(o.x-n.x)*(t.y-n.y)/(o.y-n.y)+n.x&&(r=!r)}return r}function Pze(e,t,r,i,a){for(let o of e)if(t<=o.x&&r<=o.y&&i>=o.x&&a>=o.y)return!0;let n=[new Be(t,r),new Be(t,a),new Be(i,a),new Be(i,r)];if(e.length>2){for(let o of n)if(wm(e,o))return!0}for(let o=0;oa.x&&t.x>a.x||e.ya.y&&t.y>a.y)return!1;let n=Rf(e,t,r[0]);return n!==Rf(e,t,r[1])||n!==Rf(e,t,r[2])||n!==Rf(e,t,r[3])}function um(e,t,r){let i=t.paint.get(e).value;return i.kind==="constant"?i.value:r.programConfigurations.get(t.id).getMaxValue(e)}function Tw(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function Mw(e,t,r,i,a){if(!t[0]&&!t[1])return e;let n=Be.convert(t)._mult(a);r==="viewport"&&n._rotate(-i);let o=[];for(let s of e)o.push(s.sub(n));return o}function Lze(e){let t=[];for(let r=0;reC(a,t,r,i))}function tC(e,{width:t,height:r},i,a){if(!a)a=new Uint8Array(t*r*i);else if(a instanceof Uint8ClampedArray)a=new Uint8Array(a.buffer);else if(a.length!==t*r*i)throw RangeError(`mismatched image size. expected: ${a.length} but got: ${t*r*i}`);return e.width=t,e.height=r,e.data=a,e}function Mne(e,{width:t,height:r},i){if(t===e.width&&r===e.height)return;let a=tC({},{width:t,height:r},i);rC(e,a,{x:0,y:0},{x:0,y:0},{width:Math.min(e.width,t),height:Math.min(e.height,r)},i),e.width=t,e.height=r,e.data=a.data}function rC(e,t,r,i,a,n){if(a.width===0||a.height===0)return t;if(a.width>e.width||a.height>e.height||r.x>e.width-a.width||r.y>e.height-a.height)throw RangeError("out of range source coordinates for image copy");if(a.width>t.width||a.height>t.height||i.x>t.width-a.width||i.y>t.height-a.height)throw RangeError("out of range destination coordinates for image copy");let o=e.data,s=t.data;if(o===s)throw Error("srcData equals dstData, so image is already copied");for(let l=0;l{t[e.evaluationKey]=l;let u=e.expression.evaluate(t);a.setPixel(o/4/r,s/4,u)};if(e.clips)for(let o=0,s=0;o80*r){s=e[0],l=e[1];let c=s,h=l;for(let f=r;fc&&(c=d),p>h&&(h=p)}u=Math.max(c-s,h-l),u=u===0?0:32767/u}return VE(n,o,s,l,u),o}function Pne(e,t,r,i,a){let n=null;if(a===xRe(e,t,r,i)>0)for(let o=t;o=t;o-=i)n=Xte(o/i|0,e[o],e[o+1],n);return n&&t2(n,n.next)&&(i2(n),n=n.next),n}function jd(e,t=e){let r=t===e,i=e,a;do a=!1,i!==i.next&&(e2.size===0||!e2.has(i))&&(t2(i,i.next)||An(i.prev,i,i.next)===0)?((r||i===t)&&(t=i.prev),NE=!0,i2(i),i=i.prev,a=!0):(r||i!==t)&&(i=i.next,a=!r);while(a||i!==t);return t}function VE(e,t,r,i,a){a&&pRe(e,r,i,a);let n=e,o=!1;for(;e.prev!==e.next;){let s=e.prev,l=e.next;if(An(s,e,l)<0&&(a?aRe(e,r,i,a):iRe(e))){t.push(s.i,e.i,l.i),i2(e),e=l,n=l;continue}if(e=l,e===n){if(NE=!1,e=jd(e),NE){n=e;continue}if(!o){e=nRe(e,t),n=e,o=!0;continue}oRe(e,t,r,i,a);break}}}function iRe(e){let t=e.prev,r=e,i=e.next,a=t.x,n=r.x,o=i.x,s=t.y,l=r.y,u=i.y,c=Math.min(a,n,o),h=Math.min(s,l,u),f=Math.max(a,n,o),d=Math.max(s,l,u),p=i.next;for(;p!==t;){if(p.x>=c&&p.x<=f&&p.y>=h&&p.y<=d&&(a!==p.x||s!==p.y)&&N4(a,s,n,l,o,u,p.x,p.y)&&An(p.prev,p,p.next)>=0)return!1;p=p.next}return!0}function aRe(e,t,r,i){let a=e.prev,n=e,o=e.next,s=a.x,l=n.x,u=o.x,c=a.y,h=n.y,f=o.y,d=Math.min(s,l,u),p=Math.min(c,h,f),m=Math.max(s,l,u),g=Math.max(c,h,f),y=$E(d,p,t,r,i),x=$E(m,g,t,r,i),w=e.prevZ;for(;w&&w.z>=y;){if(w.x>=d&&w.x<=m&&w.y>=p&&w.y<=g&&w!==o&&(s!==w.x||c!==w.y)&&N4(s,c,l,h,u,f,w.x,w.y)&&An(w.prev,w,w.next)>=0)return!1;w=w.prevZ}let _=e.nextZ;for(;_&&_.z<=x;){if(_.x>=d&&_.x<=m&&_.y>=p&&_.y<=g&&_!==o&&(s!==_.x||c!==_.y)&&N4(s,c,l,h,u,f,_.x,_.y)&&An(_.prev,_,_.next)>=0)return!1;_=_.nextZ}return!0}function nRe(e,t){let r=e,i=!1;do{let a=r.prev,n=r.next.next;Lne(a,r,r.next,n,!1)&&r2(a,n)&&r2(n,a)&&(t.push(a.i,r.i,n.i),i2(r),i2(r.next),r=e=n,i=!0),r=r.next}while(r!==e);return i?jd(r):r}function oRe(e,t,r,i,a){let n=e;do{let o=n.next.next;for(;o!==n.prev;){if(n.i!==o.i&&gRe(n,o)){let s=zne(n,o);n=jd(n,n.next),s=jd(s,s.next),VE(n,t,r,i,a),VE(s,t,r,i,a);return}o=o.next}n=n.next}while(n!==e)}function sRe(e,t,r,i){let a=[];for(let n=0,o=t.length;no&&(o=r.x),r.ys&&(s=r.y),c.xo&&(o=c.x),c.ys&&(s=c.y),r=c}while(++l<16&&r!==t);jE[i]=r;let u=i*4;ja[u]=a,ja[u+1]=n,ja[u+2]=o,ja[u+3]=s}while(r!==t)}function hRe(e,t){let r=e.z*4;t.xja[r+2]&&(ja[r+2]=t.x),t.y>ja[r+3]&&(ja[r+3]=t.y)}function Yte(e){let t=jE[e];for(;t.prev.next!==t;)t=t.next;return jE[e]=t,t}function Wte(e){let t=GE[e];for(;t.prev.next!==t;)t=t.next;return GE[e]=t,t}function fRe(e,t){let r=t,i=e.x,a=e.y,n=-1/0,o;if(t2(e,r))return r;for(let f=0,d=0;fja[d+3]||ja[d]>i||ja[d+2]<=n)continue;let p=Yte(f);r=Wte(f);do{if(r.prev.next===r){if(t2(e,r.next))return r.next;if(a<=r.y&&a>=r.next.y&&r.next.y!==r.y){let m=r.x+(a-r.y)*(r.next.x-r.x)/(r.next.y-r.y);if(m<=i&&m>n&&(n=m,o=r.xi||ja[d+3]c)continue;let p=Yte(f);r=Wte(f);do{if(r.prev.next===r&&i>=r.x&&r.x>=s&&i!==r.x&&N4(ai)&&(mo.x||r.x===o.x&&dRe(o,r)))&&(o=r,h=m)}r=r.next}while(r!==p)}return o}function dRe(e,t){return An(e.prev,e,t.prev)<0&&An(t.next,e,e.next)<0}function pRe(e,t,r,i){let a=e,n=0;do a.z=$E(a.x,a.y,t,r,i),Ol[n++]=a,a=a.next;while(a!==e);mRe(n);let o=null;for(let s=0;s=0&&Ol[a].z>i;)Ol[a+1]=Ol[a],a--;Ol[a+1]=r}return}Pd.length>>n&255]++;let o=0;for(let s=0;s<256;s++){let l=Ay[s];Ay[s]=o,o+=l}for(let s=0;s>>n&255]++;i[u]=t[s],a[u]=l}}function $E(e,t,r,i,a){return e=(e-r)*a|0,t=(t-i)*a|0,e=(e|e<<8)&16711935,e=(e|e<<4)&252645135,e=(e|e<<2)&858993459,e=(e|e<<1)&1431655765,t=(t|t<<8)&16711935,t=(t|t<<4)&252645135,t=(t|t<<2)&858993459,t=(t|t<<1)&1431655765,e|t<<1}function vRe(e){let t=e,r=e;do(t.x=(e-o)*(n-s)&&(e-o)*(i-s)>=(r-o)*(t-s)&&(r-o)*(n-s)>=(a-o)*(i-s)}function gRe(e,t){let r=t2(e,t)&&An(e.prev,e,e.next)>0&&An(t.prev,t,t.next)>0;return e.next.i!==t.i&&(r||r2(e,t)&&r2(t,e)&&(An(e.prev,e,t.prev)!==0||An(e,t.prev,t)!==0))&&!yRe(e,t)&&(r||_Re(e,t))}function An(e,t,r){return(t.y-e.y)*(r.x-t.x)-(t.x-e.x)*(r.y-t.y)}function t2(e,t){return e.x===t.x&&e.y===t.y}function Lne(e,t,r,i,a=!0){let n=An(e,t,r),o=An(e,t,i),s=An(r,i,e),l=An(r,i,t);return(n>0&&o<0||n<0&&o>0)&&(s>0&&l<0||s<0&&l>0)?!0:a?!!(n===0&&f4(e,r,t)||o===0&&f4(e,i,t)||s===0&&f4(r,e,i)||l===0&&f4(r,t,i)):!1}function f4(e,t,r){return t.x<=Math.max(e.x,r.x)&&t.x>=Math.min(e.x,r.x)&&t.y<=Math.max(e.y,r.y)&&t.y>=Math.min(e.y,r.y)}function yRe(e,t){let r=Math.min(e.x,t.x),i=Math.max(e.x,t.x),a=Math.min(e.y,t.y),n=Math.max(e.y,t.y),o=e;do{let s=o.next;if(o.x>i&&s.x>i||o.xn&&s.y>n||o.y=0&&An(e,e.prev,t)>=0:An(e,t,e.prev)<0||An(e,e.next,t)<0}function _Re(e,t){let r=e,i=!1,a=(e.x+t.x)/2,n=(e.y+t.y)/2;do{let o=r.next;r.y>n!=o.y>n&&a<(o.x-r.x)*(n-r.y)/(o.y-r.y)+r.x&&(i=!i),r=o}while(r!==e);return i}function zne(e,t){let r=HE(e.i,e.x,e.y),i=HE(t.i,t.x,t.y),a=e.next,n=t.prev;return e.next=t,t.prev=e,r.next=a,a.prev=r,i.next=r,r.prev=i,n.next=i,i.prev=n,i}function Xte(e,t,r,i){let a=HE(e,t,r);return i?(a.next=i.next,a.prev=i,i.next.prev=a,i.next=a):(a.prev=a,a.next=a),a}function i2(e){e.next.prev=e.prev,e.prev.next=e.next,e.prevZ&&(e.prevZ.nextZ=e.nextZ),e.nextZ&&(e.nextZ.prevZ=e.prevZ),UE&&hRe(e.prev,e.next)}function HE(e,t,r){return{i:e,x:t,y:r,prev:null,next:null,z:0,prevZ:null,nextZ:null}}function xRe(e,t,r,i){let a=0;for(let n=t,o=r-i;n0?(Math.floor(A/a)+1)*a:(Math.ceil(A/a)-1)*a,k=x>0?(Math.floor(T/a)+1)*a:(Math.ceil(T/a)-1)*a,P=Math.abs(A-S),I=Math.abs(T-k),B=Math.abs(A-d),L=Math.abs(T-p),z=m?P/w:1/0,O=g?I/_:1/0;if((B<=P||!m)&&(L<=I||!g))break;if(z0?(r.push(a),r.push(o),r.push(n)):(r.push(a),r.push(n),r.push(o))}return r}function MRe(e,t,r){if(t.length===0)throw Error("Subdivision vertex ring is empty.");let i=0,a=e[t[0]*2];for(let l=1;l=0?o-1:n-1,u=(s+1)%n,c=e[t[l]*2],h=e[t[l]*2+1],f=e[t[u]*2],d=e[t[u]*2+1],p=e[t[o]*2],m=e[t[o]*2+1],g=e[t[s]*2],y=e[t[s]*2+1],x=!1;if(cf)x=!1;else{let w=y-m,_=-(g-p),A=m((f-p)*w+(d-m)*_)*A&&(x=!0)}if(x){let w=t[l],_=t[o],A=t[s];w!==_&&w!==A&&_!==A&&r.push(A,_,w),o--,o<0&&(o=n-1)}else{let w=t[u],_=t[o],A=t[s];w!==_&&w!==A&&_!==A&&r.push(A,_,w),s++,s>=n&&(s=0)}if(l===u)break}}function qne(e,t,r,i,a,n,o,s,l){let u=a.length/2,c=o&&s&&l;if(uma.MAX_VERTEX_ARRAY_LENGTH&&(u=e.createNewSegment(t,r),l=s.count,m=!0,g=!0,y=!0,c=0);let w=Vy(o,i,n,s,f,m,u),_=Vy(o,i,n,s,d,g,u),A=Vy(o,i,n,s,p,y,u);r.emplaceBack(c+w-l,c+_-l,c+A-l),u.primitiveLength++}}function SRe(e,t,r,i,a,n){let o=[];for(let h=0;hma.MAX_VERTEX_ARRAY_LENGTH&&(u=e.createNewSegment(t,r),l=s.count,m=!0,g=!0,c=0);let x=Vy(o,i,n,s,d,m,u),w=Vy(o,i,n,s,p,g,u);r.emplaceBack(c+x-l,c+w-l),u.primitiveLength++}}function WE(e,t){return e.x===t.x&&(e.x<0||e.x>8192)||e.y===t.y&&(e.y<0||e.y>8192)}function Qte(e){return e.every(t=>t.x<0)||e.every(t=>t.x>8192)||e.every(t=>t.y<0)||e.every(t=>t.y>8192)}function Une(e){let t=e.length;if(t<=1)return[e];let r=[],i,a;for(let n=0;nURe(r,t))}function VRe(e,t){let r=ORe(ft/2,ft/2,t),i=bi.fromLngLat(r).meterInMercatorCoordinateUnits(),a=(1<1&&t[0].x===t[t.length-1].x&&t[0].y===t[t.length-1].y;)t.pop();return t}function jRe(e,t,r,i,a){let n=t.sub(r),o=i.sub(r),s=n.mag(),l=o.mag();if(s<1e-6||l<1e-6){e.push(r.clone());return}n._div(s),o._div(l);let u=n.x*o.x+n.y*o.y;if(Math.abs(u)>Math.cos(5*Math.PI/180)){e.push(r.clone());return}let c=.2,h=Math.min(a,s*c,l*c),f=r.add(n.mult(h)),d=r.add(o.mult(h)),p=Math.sqrt((1+u)/2),m=r.add(n.add(o)._unit()._mult(h/p)),g=f.sub(m).angleWith(d.sub(m)),y=Math.max(2,Math.ceil(Math.abs(g)/(Math.PI/6)-1e-6));for(let x=0;x<=y;x++)e.push(f.rotateAround(x/y*g,m))}function Ty(e,t,r,i,a,n,o,s){e.emplaceBack(t,r,Math.floor(i*Y9)*2+o,a*Y9*2,n*Y9*2,Math.round(s))}function $Re(e,t){for(let r=0;r0?t+2*e:e}function hBe(e){return/[\u0600-\u0604\u0606-\u060B\u060D-\u061A\u061C-\u061E\u0620-\u063F\u0641-\u064A\u0656-\u066F\u0671-\u06DC\u06DE-\u070D\u070F-\u074A\u074D-\u077F\u07C0-\u07FA\u07FD-\u07FF\u0840-\u085B\u085E\u0860-\u086A\u0870-\u0891\u0897-\u08E1\u08E3-\u08FF\u1800\u1801\u1804\u1806-\u1819\u1820-\u1878\u1880-\u18AA\uA840-\uA877\uFB50-\uFD3D\uFD40-\uFDCF\uFDF0-\uFDFF\uFE70-\uFE74\uFE76-\uFEFC]|\uD802[\uDEC0-\uDEE6\uDEEB-\uDEF6\uDF80-\uDF91\uDF99-\uDF9C\uDFA9-\uDFAF]|\uD803[\uDD00-\uDD27\uDD30-\uDD39\uDE60-\uDE7E\uDEC2-\uDEC7\uDED0-\uDED8\uDEFA-\uDEFF\uDF30-\uDF59\uDF70-\uDF89\uDFB0-\uDFCB]|\uD805[\uDE60-\uDE6C]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9C-\uDC9F]|\uD83A[\uDD00-\uDD4B\uDD50-\uDD59\uDD5E\uDD5F]|\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\uDEF0\uDEF1]/gim.test(String.fromCodePoint(e))}function fBe(e){return/[\u0591-\u05C7\u05D0-\u05EA\u05EF-\u05F4\u0600-\u0604\u0606-\u060B\u060D-\u061A\u061C-\u061E\u0620-\u063F\u0641-\u064A\u0656-\u066F\u0671-\u06DC\u06DE-\u070D\u070F-\u074A\u074D-\u07B1\u07C0-\u07FA\u07FD-\u082D\u0830-\u083E\u0840-\u085B\u085E\u0860-\u086A\u0870-\u0891\u0897-\u08E1\u08E3-\u08FF\uFB1D-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFD3D\uFD40-\uFDCF\uFDF0-\uFDFF\uFE70-\uFE74\uFE76-\uFEFC]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC57-\uDC9E\uDCA7-\uDCAF\uDCE0-\uDCF2\uDCF4\uDCF5\uDCFB-\uDD1B\uDD1F-\uDD39\uDD3F-\uDD59\uDD80-\uDDB7\uDDBC-\uDDCF\uDDD2-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE38-\uDE3A\uDE3F-\uDE48\uDE50-\uDE58\uDE60-\uDE9F\uDEC0-\uDEE6\uDEEB-\uDEF6\uDF00-\uDF35\uDF39-\uDF55\uDF58-\uDF72\uDF78-\uDF91\uDF99-\uDF9C\uDFA9-\uDFAF]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDCFA-\uDD27\uDD30-\uDD39\uDD40-\uDD65\uDD69-\uDD85\uDD8E\uDD8F\uDE60-\uDE7E\uDE80-\uDEA9\uDEAB-\uDEAD\uDEB0\uDEB1\uDEC2-\uDEC7\uDED0-\uDED8\uDEFA-\uDF27\uDF30-\uDF59\uDF70-\uDF89\uDFB0-\uDFCB\uDFE0-\uDFF6]|\uD83A[\uDC00-\uDCC4\uDCC7-\uDCD6\uDD00-\uDD4B\uDD50-\uDD59\uDD5E\uDD5F]|\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\uDEF0\uDEF1]/gim.test(String.fromCodePoint(e))}function Qne(e){return/[\u02EA\u02EB\u1100-\u11FF\u2E80-\u2FDF\u3000-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u4DBF\u4E00-\uA48C\uA490-\uA4C6\uA960-\uA97C\uAC00-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFE10-\uFE1F\uFE30-\uFE4F\uFF00-\uFFEF]|\uD81B[\uDFE0-\uDFFF]|[\uD81C-\uD822\uD840-\uD868\uD86A-\uD86D\uD86F-\uD872\uD874-\uD879\uD880-\uD883\uD885-\uD88C][\uDC00-\uDFFF]|\uD823[\uDC00-\uDCD5\uDCFF-\uDD1E\uDD80-\uDDF2]|\uD82B[\uDFF0-\uDFFF]|\uD82C[\uDC00-\uDEFB]|\uD83C[\uDE00-\uDEFF]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEAD\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0\uDFF0-\uDFFF]|\uD87B[\uDC00-\uDE5D]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A\uDF50-\uDFFF]|\uD88D[\uDC00-\uDC79]/gim.test(String.fromCodePoint(e))}function dBe(e){return/[\u02EA\u02EB\u2E80-\u2FDF\u2FF0-\u303F\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FD-\u30FF\u3105-\u312F\u31A0-\u4DBF\u4E00-\uA48C\uA490-\uA4C6\uF900-\uFA6D\uFA70-\uFAD9\uFE10-\uFE1F\uFE30-\uFE4F\uFF00-\uFFEF]|\uD81B[\uDFE0-\uDFFF]|[\uD81C-\uD822\uD840-\uD868\uD86A-\uD86D\uD86F-\uD872\uD874-\uD879\uD880-\uD883\uD885-\uD88C][\uDC00-\uDFFF]|\uD823[\uDC00-\uDCD5\uDCFF-\uDD1E\uDD80-\uDDF2]|\uD82B[\uDFF0-\uDFFF]|\uD82C[\uDC00-\uDEFB]|\uD83C[\uDE00-\uDEFF]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEAD\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0\uDFF0-\uDFFF]|\uD87B[\uDC00-\uDE5D]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A\uDF50-\uDFFF]|\uD88D[\uDC00-\uDC79]/gim.test(String.fromCodePoint(e))}function Fw(e){return/[\u02EA\u02EB\u1100-\u11FF\u1401-\u167F\u18B0-\u18FF\u2065\u20DD-\u20E0\u20E2-\u20E4\u2B97\u2BF0-\u2BFF\u2E50\u2E51\u2E80-\u3007\u3012\u3013\u3020-\u302F\u3031-\u30FB\u30FD-\uA4CF\uA960-\uA97F\uAC00-\uD7FF\uF900-\uFAFF\uFE10-\uFE1F\uFE30-\uFE48\uFE50-\uFE57\uFE5F-\uFE62\uFE67-\uFE6F\uFF00-\uFF07\uFF0A-\uFF0C\uFF0E-\uFF19\uFF1F-\uFF3A\uFF3C\uFF3E\uFF40-\uFF5A\uFFE0-\uFFE2\uFFE4-\uFFE7\uFFF0-\uFFF8]|\uD802[\uDD80-\uDD9F]|\uD805[\uDD80-\uDDFF]|\uD806[\uDE00-\uDEBF]|[\uD80C-\uD810\uD81C-\uD822\uD83C\uD83D\uD840-\uD87E\uD880-\uD8BE][\uDC00-\uDFFF]|\uD811[\uDC00-\uDE7F]|\uD81B[\uDFE0-\uDFFF]|\uD823[\uDC00-\uDDFF]|\uD82B[\uDFF0-\uDFFF]|\uD82C[\uDC00-\uDEFF]|\uD833[\uDEC0-\uDFCF]|\uD834[\uDC00-\uDDFF\uDEE0-\uDF7F]|\uD836[\uDC00-\uDEAF]|\uD83E[\uDD00-\uDEFF]|[\uD87F\uD8BF][\uDC00-\uDFFD]/gim.test(String.fromCodePoint(e))}function pBe(e){return/[\xA7\xA9\xAE\xB1\xBC-\xBE\xD7\xF7\u2016\u2020\u2021\u2030\u2031\u203B\u203C\u2042\u2047-\u2049\u2051\u2100-\u218F\u221E\u2234\u2235\u2300-\u2307\u230C-\u231F\u2324-\u2328\u232B\u237D-\u239A\u23BE-\u23CD\u23CF\u23D1-\u23DB\u23E2-\u2422\u2424-\u24FF\u25A0-\u2619\u2620-\u2767\u2776-\u2793\u2B12-\u2B2F\u2B50-\u2B59\u2BB8-\u2BEB\u3000-\u303F\u30A0-\u30FF\uE000-\uF8FF\uFE30-\uFE6F\uFF00-\uFFEF\uFFFC\uFFFD]|[\uDB80-\uDBFF][\uDC00-\uDFFF]/gim.test(String.fromCodePoint(e))}function mBe(e){return/[\r\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0600-\u0605\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DD\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u070F\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0890\u0891\u0897-\u089F\u08CA-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D57\u0D62\u0D63\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E33-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB3-\u0EBC\u0EC8-\u0ECE\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1037\u1039-\u103E\u1056-\u1059\u105E-\u1060\u1071-\u1074\u1082\u1084-\u1086\u108D\u109D\u1100-\u11FF\u135D-\u135F\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u180F\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60\u1A62\u1A65-\u1A7C\u1A7F\u1AB0-\u1ADD\u1AE0-\u1AEB\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA953\uA960-\uA97C\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFF9E\uFF9F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDD69-\uDD6D\uDEAB\uDEAC\uDEFA-\uDEFF\uDF46-\uDF50\uDF82-\uDF85]|\uD804[\uDC00-\uDC02\uDC38-\uDC46\uDC70\uDC73\uDC74\uDC7F-\uDC82\uDCB0-\uDCBA\uDCBD\uDCC2\uDCCD\uDD00-\uDD02\uDD27-\uDD34\uDD45\uDD46\uDD73\uDD80-\uDD82\uDDB3-\uDDC0\uDDC2\uDDC3\uDDC9-\uDDCC\uDDCE\uDDCF\uDE2C-\uDE37\uDE3E\uDE41\uDEDF-\uDEEA\uDF00-\uDF03\uDF3B\uDF3C\uDF3E-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF57\uDF62\uDF63\uDF66-\uDF6C\uDF70-\uDF74\uDFB8-\uDFC0\uDFC2\uDFC5\uDFC7-\uDFCA\uDFCC-\uDFD2\uDFE1\uDFE2]|\uD805[\uDC35-\uDC46\uDC5E\uDCB0-\uDCC3\uDDAF-\uDDB5\uDDB8-\uDDC0\uDDDC\uDDDD\uDE30-\uDE40\uDEAB-\uDEB7\uDF1D-\uDF1F\uDF22-\uDF2B]|\uD806[\uDC2C-\uDC3A\uDD30-\uDD35\uDD37\uDD38\uDD3B-\uDD43\uDDD1-\uDDD7\uDDDA-\uDDE0\uDDE4\uDE01-\uDE0A\uDE33-\uDE39\uDE3B-\uDE3E\uDE47\uDE51-\uDE5B\uDE84-\uDE99\uDF60-\uDF67]|\uD807[\uDC2F-\uDC36\uDC38-\uDC3F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD8A-\uDD8E\uDD90\uDD91\uDD93-\uDD97\uDEF3-\uDEF6\uDF00-\uDF03\uDF34-\uDF3A\uDF3E-\uDF42\uDF5A]|\uD80D[\uDC40\uDC47-\uDC55]|\uD818[\uDD1E-\uDD2F]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDD63\uDD67-\uDD6A\uDF4F\uDF51-\uDF87\uDF8F-\uDF92\uDFE4\uDFF0\uDFF1]|\uD82F[\uDC9D\uDC9E]|\uD833[\uDF00-\uDF2D\uDF30-\uDF46]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDC8F\uDD30-\uDD36\uDEAE\uDEEC-\uDEEF]|\uD839[\uDCEC-\uDCEF\uDDEE\uDDEF\uDEE3\uDEE6\uDEEE\uDEEF\uDEF5]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uD83C[\uDDE6-\uDDFF\uDFFB-\uDFFF]|\uDB40[\uDC20-\uDC7F\uDD00-\uDDEF]/.test(e)}function ure(e){return/[\u0E01-\u0E3A\u0E40-\u0E4E\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECE\u0EDC-\u0EDF\u0F00-\u0F47\u0F49-\u0F6C\u0F71-\u0F97\u0F99-\u0FBC\u0FBE-\u0FCC\u0FCE-\u0FD4\u0FD9\u0FDA\u1000-\u103F\u1050-\u108F\u109A-\u109F\u1780-\u17D3\u17D7\u17DC\u17DD\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19DE\u19DF\u1A20-\u1A5E\u1A60-\u1A7C\u1AA0-\u1AAD\u1B00-\u1B4C\u1B4E-\u1B7F\uA980-\uA9CD\uA9D0-\uA9D9\uA9DE-\uA9EF\uA9FA-\uA9FE\uAA60-\uAAC2\uAADB-\uAADF]|\uD805[\uDF00-\uDF1A\uDF1D-\uDF2B\uDF3A\uDF3B\uDF3F-\uDF46]/gim.test(String.fromCodePoint(e))}function vBe(e,t){return/(?:[\u1039\u17D2\u1A60\u1BAB\u200D\uAAF6]|\uD802\uDE3F|\uD804[\uDD33\uDFD0]|\uD806[\uDD3E\uDE47\uDE99]|\uD807[\uDD45\uDD97\uDF42])$/.test(e)||new RegExp("^\\p{gc=Mc}","u").test(t)}function bBe(e,t,r){let i=0;for(let a of e.split(";")){let[n,o]=a.split(",").map(l=>parseInt(l,36)),s=i+n;for(let l=s;l{let r=t.codePointAt(0);return{codePoint:r,type:wBe(r),form:null}})}function SBe(e){let t=e.filter(r=>r.type!=="T");for(let r=0;r0&&ABe(t[r-1].type),n=r+1String.fromCodePoint(CBe(r))).join("")}function PBe(e,t,r){var a;let i=t.layout.get("text-transform").evaluate(r,{});return i==="uppercase"?e=e.toLocaleUpperCase():i==="lowercase"&&(e=e.toLocaleLowerCase()),((a=V4.applyArabicShaping)!=null?a:FBe)(e)}function IBe(e,t,r){for(let i of e.sections)i.text=PBe(i.text,t,r);return e}function W9(e,t,r){let i=r?t.last.points:t.first.points,a=r?i[i.length-1]:i[0];return`${e}:${a.x}:${a.y}`}function LBe(e){let t=e.first.points,r=t.length;for(let n=e.first.next;n;n=n.next)r+=n.points.length-1;let i=Array(r);for(let n=0;n=0&&vBe(t[i],r)?t[i]+=r:t.push(r)}return t}function RBe(e){let t=new Set;if(toe){Sy!=null||(Sy=new Intl.Segmenter(void 0,{granularity:"word"}));for(let{index:i}of Sy.segment(e))t.add(i);return t}let r=0;for(let i of e.split(new RegExp("\\b|(?=\\p{Ideo})","u")))t.add(r),r+=i.length;return t}function T2(e){let t=e.codePointAt(0);return e.length>(t>65535?2:1)}function lC(e){return/\s/u.test(String.fromCodePoint(e))}function QE(e){for(let t of e)if(Fw(t.codePointAt(0)))return!0;return!1}function BBe(e){for(let t of e)if(!qBe(t.codePointAt(0)))return!1;return!0}function qBe(e){return!hBe(e)}function dre(e){return!(Fw(e)||pBe(e))}function roe(e){return new RegExp("\\p{sc=Arab}","u").test(String.fromCodePoint(e))}function ioe(e){return fBe(e)}function aoe(e){for(let t of e)if(ioe(t.codePointAt(0)))return!0;return!1}function OBe(e){let t="",r={premature:!0,value:void 0},i=e[Symbol.iterator](),a=i.next(),n=e[Symbol.iterator]();n.next();let o=n.next();for(;!a.done;)(o.done||!dre(o.value.codePointAt(0))||om[o.value])&&(r.premature||!dre(r.value.codePointAt(0))||om[r.value])&&om[a.value]?t+=om[a.value]:t+=a.value,r={value:a.value,premature:!1},a=i.next(),o=n.next();return t}function pre(e,t,r,i,a,n){var o;if("fontStack"in t){let s=(o=r[t.fontStack])==null?void 0:o.default,l=s==null?void 0:s[e];if(l)return l.metrics.advance*t.scale+a;let u=0;for(let c of e){let h=s==null?void 0:s[c];h&&(u+=h.metrics.advance*t.scale+a)}return u}{let s=i[t.imageName];return s?s.displaySize[0]*t.scale*24/n+a:0}}function mre(e,t,r,i){let a=(e-t)**2;return i?e1,1e>2,u>2,2wt>1,1>1,1ge>1,1wp>1,1j>1,f>1,hm>1,1>1,u>1,u6>1,1>1,+5,28>1,w>1,1>1,+3,b8>1,1>1,+3,1>3,-1>-1,3>1,1>1,+2,1s>1,1>1,x>1,th>1,1>1,+2,db>1,1>1,+3,3>1,1>1,+2,14qm>1,1>1,+1,4q>1,1e>2,u>2,2>1,+1",canonical:"6f1>-6dx,6dy>-6dx,6ec>-6ed,6ee>-6ed,6ww>2jj,-2ji>2jj,14r4>-1e7l,1e7m>-1e7l,1e7m>-1e5c,1e5d>-1e5b,1e5c>-14qx,14qy>-14qx,14vn>-1ecg,1ech>-1ecg,1edu>-1ecg,1eci>-1ecg,1eda>-1ecg,1eci>-1ecg,1eci>-168q,168r>-168q,168s>-14ye,14yf>-14ye"};function p(ke,Oe){var qe=0,se=new Map,je=Oe&&new Map,Re;return ke.split(",").forEach(function Ve(ge){if(ge.indexOf("+")!==-1)for(var Ge=+ge;Ge--;)Ve(Re);else{Re=ge;var tt=ge.split(">"),ie=tt[0],we=tt[1];ie=String.fromCodePoint(qe+=parseInt(ie,36)),we=String.fromCodePoint(qe+=parseInt(we,36)),se.set(ie,we),Oe&&je.set(we,ie)}}),{map:se,reverseMap:je}}var m,g,y;function x(){if(!m){var ke=p(d.pairs,!0),Oe=ke.map,qe=ke.reverseMap;m=Oe,g=qe,y=p(d.canonical,!1).map}}function w(ke){return x(),m.get(ke)||null}function _(ke){return x(),g.get(ke)||null}function A(ke){return x(),y.get(ke)||null}var T=r.L,M=r.R,S=r.EN,k=r.ES,P=r.ET,I=r.AN,B=r.CS,L=r.B,z=r.S,O=r.ON,V=r.BN,$=r.NSM,j=r.AL,H=r.LRO,Z=r.RLO,W=r.LRE,le=r.RLE,pe=r.PDF,_e=r.LRI,De=r.RLI,de=r.FSI,Ce=r.PDI;function Q(ke,Oe){for(var qe=125,se=new Uint32Array(ke.length),je=0;je0)lt--;else if(st>0){for(Qe=0;!Me[Me.length-1]._isolate;)Me.pop();var rt=Me[Me.length-1]._isolInitIndex;rt!=null&&(Ge.set(rt,vt),Ge.set(vt,rt)),Me.pop(),st--}We=Me[Me.length-1],ge[vt]=We._level,We._override&&Ve(vt,We._override)}else ut&pe?(lt===0&&(Qe>0?Qe--:!We._isolate&&Me.length>1&&(Me.pop(),We=Me[Me.length-1])),ge[vt]=We._level):ut&L&&(ge[vt]=ie.level);else ge[vt]=We._level,We._override&&ut!==V&&Ve(vt,We._override)}for(var Ft=[],Pt=null,bt=ie.start;bt<=ie.end;bt++){var zt=se[bt];if(!(zt&s)){var fe=ge[bt],Se=zt&a,it=zt===Ce;Pt&&fe===Pt._level?(Pt._end=bt,Pt._endsWithIsolInit=Se):Ft.push(Pt={_start:bt,_end:bt,_level:fe,_startsWithPDI:it,_endsWithIsolInit:Se})}}for(var nt=[],Fr=0;Fr=0;Rt--)if(!(se[Rt]&s)){Mn=ge[Rt];break}var fi=Hr[Hr.length-1],Zr=ge[fi],Ti=ie.level;if(!(se[fi]&a)){for(var Fi=fi+1;Fi<=ie.end;Fi++)if(!(se[Fi]&s)){Ti=ge[Fi];break}}nt.push({_seqIndices:Hr,_sosType:Math.max(Mn,Ja)%2?M:T,_eosType:Math.max(Ti,Zr)%2?M:T})}}for(var Mi=0;Mi=0;po--)if(!(se[Ht[po]]&s)){Ko=se[Ht[po]];break}Ve(Yi,Ko&(a|Ce)?O:Ko)}}if(Re.get(S))for(var rl=0;rl=-1;As--){var Vu=As===-1?va:se[Ht[As]];if(Vu&n){Vu===j&&Ve(Nu,I);break}}}if(Re.get(j))for(var il=0;il=0&&(mo=se[Ht[al]],mo&s);al--);for(var Kl=Ro+1;Kl=0&&se[Ht[nl]]&(P|s);nl--)Ve(Ht[nl],S);for(Rn++;Rn=0&&se[Ht[Jt]]&s;Jt--)Ve(Ht[Jt],O);for(var Ur=Ms+1;Ur=0;qo--){var ol=Ds[qo].char;if(ol===Uu||ol===_(A(Qo))||w(A(ol))===Qo){Jo.push([Ds[qo].seqIndex,Bo]),Ds.length=qo;break}}}Jo.sort(function(ha,No){return ha[0]-No[0]});for(var Jl=0;Jl=0;Oo--){var Ih=Ht[Oo];if(se[Ih]&hn){var zc=se[Ih]&$i?M:T;go=zc===ti?ti:zc;break}}}if(go){if(se[Ht[Ph]]=se[Ht[Ql]]=go,go!==ti){for(var es=Ph+1;es=0;Hu--)if(se[Ht[Hu]]&s)u0=Hu;else{Lh=se[Ht[Hu]]&$i?M:T;break}for(var c0=ji,Rc=Es+1;Rc=0&&h(ke[ts])&l;ts--)ge[ts]=ie.level}}return{levels:ge,paragraphs:tt};function ks(ha,No){for(var Sn=ha;Sn=ge&&h(ke[ie])&l;ie--)tt[ie]=Ve.level;for(var we=Ve.level,ot=1/0,At=0;Atwe&&(we=$e),$e=ot;Ee--)for(var Me=0;Me=Ee){for(var We=Me;Me+1=Ee;)Me++;Me>We&&Re.push([We+ge,Me+ge])}}}),Re}function ze(ke,Oe,qe,se){var je=He(ke,Oe,qe,se),Re=[].concat(ke);return je.forEach(function(Ve,ge){Re[ge]=(Oe.levels[Ve]&1?re(ke[Ve]):null)||ke[Ve]}),Re.join("")}function He(ke,Oe,qe,se){for(var je=me(ke,Oe,qe,se),Re=[],Ve=0;Ve=0;i--){let a=cC.getBidiCharTypeName(e[i].text[0]);HBe.has(a)?(e[i].level=t,r=!0):r&&$Be.has(a)?e[i].level=t:r=!1}}function WBe(e,t){let r=t,i=1/0;for(let{level:n}of e)n>r&&(r=n),(n|1)=i;n--)for(let o=0;o=n;)s++;for(let l=o,u=s;lt>=a.start&&t<=a.end))==null?void 0:r.level)!=null?i:0}function JBe(e,t,r,i,a){let n=ZBe(e,t,i,a);YBe(n,r);let o="",s=[];for(let l of WBe(n,r)){if(jBe.test(l.text))continue;let u=XBe(l);o+=u,s.push(...Array(u.length).fill(l.index))}return{text:o,sourceIndices:s}}function QBe(e,t){let r=t.filter(n=>n>0&&nn-o),a=[];for(let n=0;n+1a.start))).map(([a,n])=>JBe(e,r,KBe(i,a),a,n))}function eqe(e,t){return ooe(e,t).map(r=>r.text)}function tqe(e,t,r){return ooe(e,r).map(i=>[i.text,i.sourceIndices.map(a=>{var n;return(n=t[a])!=null?n:0})])}function rqe(e,t,r){let i=r.buf,a,n;if(n=i[r.pos++],a=(n&112)>>4,n<128||(n=i[r.pos++],a|=(n&127)<<3,n<128)||(n=i[r.pos++],a|=(n&127)<<10,n<128)||(n=i[r.pos++],a|=(n&127)<<17,n<128)||(n=i[r.pos++],a|=(n&127)<<24,n<128)||(n=i[r.pos++],a|=(n&1)<<31,n<128))return iqe(e,a,t);throw Error("Expected varint not more than 10 bytes")}function iqe(e,t,r){return r?t*4294967296+(e>>>0):(t>>>0)*4294967296+(e>>>0)}function aqe(e,t,r){let i="",a=t;for(;a239?4:n>223?3:n>191?2:1;if(a+s>r)break;let l,u,c;s===1?n<128&&(o=n):s===2?(l=e[a+1],(l&192)==128&&(o=(n&31)<<6|l&63,o<=127&&(o=null))):s===3?(l=e[a+1],u=e[a+2],(l&192)==128&&(u&192)==128&&(o=(n&15)<<12|(l&63)<<6|u&63,(o<=2047||o>=55296&&o<=57343)&&(o=null))):s===4&&(l=e[a+1],u=e[a+2],c=e[a+3],(l&192)==128&&(u&192)==128&&(c&192)==128&&(o=(n&15)<<18|(l&63)<<12|(u&63)<<6|c&63,(o<=65535||o>=1114112)&&(o=null))),o===null?(o=65533,s=1):o>65535&&(o-=65536,i+=String.fromCharCode(o>>>10&1023|55296),o=56320|o&1023),i+=String.fromCharCode(o),a+=s}return i}function nqe(e,t,r){e===1&&r.readMessage(oqe,t)}function oqe(e,t,r){if(e===3){let{id:i,bitmap:a,width:n,height:o,left:s,top:l,advance:u}=r.readMessage(sqe,{});t.push({id:i,bitmap:new Dw({width:n+6,height:o+6},a),metrics:{width:n,height:o,left:s,top:l,advance:u}})}}function sqe(e,t,r){e===1?t.id=r.readVarint():e===2?t.bitmap=r.readBytes():e===3?t.width=r.readVarint():e===4?t.height=r.readVarint():e===5?t.left=r.readSVarint():e===6?t.top=r.readSVarint():e===7&&(t.advance=r.readVarint())}function loe(e){return new soe(e).readFields(nqe,[])}function M2(e){return typeof(e==null?void 0:e.renderWithWebGL)=="function"}function uoe(e){let{userImage:t}=e;return!(t!=null&&t.render)||!t.render()?!1:(M2(t.data)||e.data.replace(new Uint8Array(t.data.buffer)),!0)}function hC(e){let t=0,r=0;for(let o of e)t+=o.w*o.h,r=Math.max(r,o.w);e.sort((o,s)=>s.h-o.h);let i=[{x:0,y:0,w:Math.max(Math.ceil(Math.sqrt(t/.95)),r),h:1/0}],a=0,n=0;for(let o of e)for(let s=i.length-1;s>=0;s--){let l=i[s];if(!(o.w>l.w||o.h>l.h)){if(o.x=l.x,o.y=l.y,n=Math.max(n,o.y+o.h),a=Math.max(a,o.x+o.w),o.w===l.w&&o.h===l.h){let u=i.pop();u&&s=r;n--)t.push(n);r=i+1}else{for(let n=r;ne.toCodeUnitIndex(n)),i=V4.isParsed()?V4:null;if(e.sections.length===1)return i?i.processBidirectionalText(e.toString(),r).map(n=>xre(n,e.sections,[...n].map(()=>0))):eqe(e.toString(),r).map(n=>rk([...n],e.sections,[...n].map(()=>0)));let a=fqe(e);return i?i.processStyledBidirectionalText(e.text,a,r).map(([n,o])=>xre(n,e.sections,o)):tqe(e.text,a,r).map(([n,o])=>{let s=[...n];return rk(s,e.sections,hoe(s).map(l=>{var u;return(u=o[l])!=null?u:0}))})}function rk(e,t,r){var n;let i=new uC(e.join(""),t,[]),a=0;for(let o of i.graphemes())i.sectionIndex.push((n=r[a])!=null?n:0),a+=[...o].length;return i}function hoe(e){let t=[],r=0;for(let i of e)t.push(r),r+=i.length;return t}function xre(e,t,r){let i=[...e],a=hoe(i),n=hqe(i);return rk(n.map(o=>i[o]),t,n.map(o=>{var s;return(s=r[a[o]])!=null?s:0}))}function p4(e,t,r,i,a,n,o,s,l,u,c,h,f,d,p){let m=uC.fromFeature(e,a);h===2&&m.verticalizePunctuation();let g=m.determineLineBreaks(u,n,t,i,d),y=aoe(m.text)?dqe(m,g):cqe(m,g),x=[],w={positionedLines:x,text:m.toString(),top:c[1],bottom:c[1],left:c[0],right:c[0],writingMode:h,iconsInText:!1,verticalizable:!1};return wqe(w,t,r,i,y,o,s,l,h,u,f,p),!uqe(x)&&w}function D2(e){let t=.5,r=.5;switch(e){case"right":case"top-right":case"bottom-right":t=1;break;case"left":case"top-left":case"bottom-left":t=0}switch(e){case"bottom":case"bottom-right":case"bottom-left":r=1;break;case"top":case"top-right":case"top-left":r=0}return{horizontalAlign:t,verticalAlign:r}}function pqe(e,t,r){let i=t.getMaxScale()*24,{maxImageWidth:a,maxImageHeight:n}=t.getMaxImageSize(e),o=Math.max(i,n*r);return{verticalLineContentWidth:Math.max(i,a*r),horizontalLineContentHeight:o}}function foe(e){switch(e){case"top":return 0;case"center":return .5;default:return 1}}function mqe(e,t,r,i){var n,o;if(e!=null&&e.rect)return e;let a=(o=(n=t[r.fontStack])==null?void 0:n.default)==null?void 0:o[i];return a?{rect:null,metrics:a.metrics}:null}function vqe(e,t,r){return!(e===1||!t&&!Fw(r)||t&&(lC(r)||roe(r)))}function M4(e){return new RegExp("\\p{Nd}","u").test(String.fromCodePoint(e))}function doe(e){return new RegExp("\\p{Lu}","u").test(String.fromCodePoint(e))}function gqe(e){return/[\p{P}\p{S}]/u.test(String.fromCodePoint(e))}function yqe(e){let t=e.some(M4)&&e.every(i=>M4(i)||gqe(i)),r=e.length<=3&&e.every(i=>doe(i)||M4(i));return t||r}function _qe(e){return(M4(e)||doe(e))&&!roe(e)}function xqe(e,t){let r=!1;for(let i=0;in.codePointAt(0)),i=r.map(Fw),a=n=>!i[n]&&!lC(r[n])&&!("imageName"in e.getSection(n));for(let n=0;nu){let f=Math.ceil(i/u);r*=f/a,a=f}return{x1:t,y1:r,x2:t+i,y2:r+a}}function bre(e,t,r,i,a,n){let o=e.image,s;if(o.content){let g=o.content,y=o.pixelRatio||1;s=[g[0]/y,g[1]/y,o.displaySize[0]-g[2]/y,o.displaySize[1]-g[3]/y]}let l=t.left*n,u=t.right*n,c,h,f,d;r==="width"||r==="both"?(d=a[0]+l-i[3],h=a[0]+u+i[1]):(d=a[0]+(l+u-o.displaySize[0])/2,h=d+o.displaySize[0]);let p=t.top*n,m=t.bottom*n;return r==="height"||r==="both"?(c=a[1]+p-i[0],f=a[1]+m+i[2]):(c=a[1]+(p+m-o.displaySize[1])/2,f=c+o.displaySize[1]),{image:o,top:c,right:h,bottom:f,left:d,collisionPadding:s}}function Are(e,t){let{expression:r}=t;if(r.kind==="constant")return{kind:"constant",layoutSize:r.evaluate(new Si(e+1))};if(r.kind==="source")return{kind:"source"};if(r.kind==="composite"){let{minZoom:i,maxZoom:a}=Eqe(r.zoomStops,e);return{kind:"composite",minZoom:i,maxZoom:a,interpolationType:r.interpolationType}}{let i=kqe(r),a=r.evaluate(new Si(e+1));return{kind:"camera",zoomStops:r.zoomStops,sizes:i,layoutSize:a,interpolationType:r.interpolationType}}}function Eqe(e,t){let r=0;for(;re.evaluate(new Si(t===-1/0?e.zoomStops[1]-1:t)))}function Iw(e,{uSize:t,uSizeT:r},{lowerSize:i,upperSize:a}){return e.kind==="source"?i/128:e.kind==="composite"?pa.number(i/128,a/128,r):t}function S2(e,t){let r=0,i=0;return e.kind==="constant"?i=e.layoutSize:e.kind==="camera"?i=Cqe(e,t):e.kind==="composite"&&(r=Fqe(e,t)),{uSizeT:r,uSize:i}}function Cqe({zoomStops:e,sizes:t,layoutSize:r,interpolationType:i},a){let n=e.length-1;for(;n>0&&e[n]>a;)n--;let o=Math.min(n+1,e.length-1),s=i?Ar(Ul.interpolationFactor(i,a,e[n],e[o]),0,1):0;return Math.min(pa.number(t[n],t[o],s),r)}function Fqe({interpolationType:e,minZoom:t,maxZoom:r},i){return e?Ar(Ul.interpolationFactor(e,i,t,r),0,1):0}function voe(e,t,r,i,a){if(t.segment===void 0||r===0)return!0;let n=t,o=t.segment+1,s=0;for(;s>-r/2;){if(o--,o<0)return!1;s-=e[o].dist(n),n=e[o]}s+=e[o].dist(e[o+1]),o++;let l=[],u=0;for(;si;)u-=l.shift().angleDelta;if(u>a)return!1;o++,s+=h.dist(f)}return!0}function goe(e){let t=0;for(let r=0;ru){let p=(u-l)/d,m=new fm(pa.number(h.x,f.x,p),pa.number(h.y,f.y,p),f.angleTo(h),c);return m._round(),!o||voe(e,m,s,o,t)?m:void 0}l+=d}}function Iqe(e,t,r,i,a,n,o,s,l){let u=yoe(i,n,o),c=_oe(i,a),h=c*o,f=e[0].x===0||e[0].x===l||e[0].y===0||e[0].y===l;t-h=0&&_=0&&A=0&&f+u<=c){let T=new fm(_,A,x,p);T._round(),(!i||voe(e,T,n,i,a))&&d.push(T)}}h+=y}return!s&&!d.length&&!o&&(d=xoe(e,h/2,r,i,a,n,o,!0,l)),d}function fC(e,t,r,i,a){let n=[];for(let o of e){let s;for(let l=0;l=i&&c.x>=i)&&(u.x>=i?u=new Be(i,u.y+(c.y-u.y)*((i-u.x)/(c.x-u.x)))._round():c.x>=i&&(c=new Be(i,u.y+(c.y-u.y)*((i-u.x)/(c.x-u.x)))._round()),!(u.y>=a&&c.y>=a)&&(u.y>=a?u=new Be(u.x+(c.x-u.x)*((a-u.y)/(c.y-u.y)),a)._round():c.y>=a&&(c=new Be(u.x+(c.x-u.x)*((a-u.y)/(c.y-u.y)),a)._round()),(!s||!u.equals(s[s.length-1]))&&(s=[u],n.push(s)),s.push(c)))))}}return n}function Tre(e,t,r,i){let a=[],n=e.image,o=n.pixelRatio,s=n.paddedRect.w-2,l=n.paddedRect.h-2,u={x1:e.left,y1:e.top,x2:e.right,y2:e.bottom},c=n.stretchX||[[0,s]],h=n.stretchY||[[0,l]],f=(z,O)=>z+O[1]-O[0],d=c.reduce(f,0),p=h.reduce(f,0),m=s-d,g=l-p,y=0,x=d,w=0,_=p,A=0,T=m,M=0,S=g;if(n.content&&i){let z=n.content,O=z[2]-z[0],V=z[3]-z[1];(n.textFitWidth||n.textFitHeight)&&(u=poe(e)),y=m4(c,0,z[0]),w=m4(h,0,z[1]),x=m4(c,z[0],z[2]),_=m4(h,z[1],z[3]),A=z[0]-y,M=z[1]-w,T=O-x,S=V-_}let k=u.x1,P=u.y1,I=u.x2-k,B=u.y2-P,L=(z,O,V,$)=>{let j=v4(z.stretch-y,x,I,k),H=g4(z.fixed-A,T,z.stretch,d),Z=v4(O.stretch-w,_,B,P),W=g4(O.fixed-M,S,O.stretch,p),le=v4(V.stretch-y,x,I,k),pe=g4(V.fixed-A,T,V.stretch,d),_e=v4($.stretch-w,_,B,P),De=g4($.fixed-M,S,$.stretch,p),de=new Be(j,Z),Ce=new Be(le,Z),Q=new Be(le,_e),ae=new Be(j,_e),ye=new Be(H/o,W/o),te=new Be(pe/o,De/o),re=t*Math.PI/180;if(re){let ke=Math.sin(re),Oe=Math.cos(re),qe=[Oe,-ke,ke,Oe];de._matMult(qe),Ce._matMult(qe),ae._matMult(qe),Q._matMult(qe)}let ce=z.stretch+z.fixed,me=V.stretch+V.fixed,ze=O.stretch+O.fixed,He=$.stretch+$.fixed;return{tl:de,tr:Ce,bl:ae,br:Q,tex:{x:n.paddedRect.x+1+ce,y:n.paddedRect.y+1+ze,w:me-ce,h:He-ze},writingMode:void 0,glyphOffset:[0,0],sectionIndex:0,pixelOffsetTL:ye,pixelOffsetBR:te,minFontScaleX:T/o/I,minFontScaleY:S/o/B,isSDF:r}};if(!i||!n.stretchX&&!n.stretchY)a.push(L({fixed:0,stretch:-1},{fixed:0,stretch:-1},{fixed:0,stretch:s+1},{fixed:0,stretch:l+1}));else{let z=Mre(c,m,d),O=Mre(h,g,p);for(let V=0;Vh.d||!h.d)&&(h=f),!(f.max-h.d<=t)&&(a=f.h/2,n.push(new am(f.p.x-a,f.p.y-a,a,e)),n.push(new am(f.p.x+a,f.p.y-a,a,e)),n.push(new am(f.p.x-a,f.p.y+a,a,e)),n.push(new am(f.p.x+a,f.p.y+a,a,e)))}return c.d>0&&h.d-c.d<=t?c.p:h.p}function Bqe(e,t){return t.max-e.max}function qqe(e,t){let r=!1,i=1/0;for(let a of t)for(let n=0,o=a.length,s=o-1;ne.y!=u.y>e.y&&e.x<(u.x-l.x)*(e.y-l.y)/(u.y-l.y)+l.x&&(r=!r),i=Math.min(i,bne(e,l,u))}return(r?1:-1)*Math.sqrt(i)}function Oqe(e){let t=0,r=0,i=0,a=e[0];for(let n=0,o=a.length,s=o-1;nf*24);c.startsWith("top")?h[1]-=7:c.startsWith("bottom")&&(h[1]+=7),l[u+1]=h}return new Ec(l)}let n=i.get("text-variable-anchor");if(n){let s;s=e._unevaluatedLayout.getValue("text-radial-offset")===void 0?i.get("text-offset").evaluate(t,{},r).map(u=>u*24):[i.get("text-radial-offset").evaluate(t,{},r)*24,dC];let l=[];for(let u of n)l.push(u,boe(u,s));return new Ec(l)}return null}function Nqe(e){var c,h;e.bucket.createArrays();let t=512*e.bucket.overscaling;e.bucket.tilePixelRatio=ft/t,e.bucket.compareText={},e.bucket.iconsNeedLinear=!1;let r=e.bucket.layers[0],i=r.layout,a=r._unevaluatedLayout._values,n={layoutIconSize:a["icon-size"].possiblyEvaluate(new Si(e.bucket.zoom+1),e.canonical),layoutTextSize:a["text-size"].possiblyEvaluate(new Si(e.bucket.zoom+1),e.canonical),textMaxSize:a["text-size"].possiblyEvaluate(new Si(18))};if(e.bucket.textSizeData.kind==="composite"){let{minZoom:f,maxZoom:d}=e.bucket.textSizeData;n.compositeTextSizes=[a["text-size"].possiblyEvaluate(new Si(f),e.canonical),a["text-size"].possiblyEvaluate(new Si(d),e.canonical)]}if(e.bucket.iconSizeData.kind==="composite"){let{minZoom:f,maxZoom:d}=e.bucket.iconSizeData;n.compositeIconSizes=[a["icon-size"].possiblyEvaluate(new Si(f),e.canonical),a["icon-size"].possiblyEvaluate(new Si(d),e.canonical)]}let o=i.get("text-line-height")*24,s=i.get("text-rotation-alignment")!=="viewport"&&i.get("symbol-placement")!=="point",l=i.get("text-keep-upright"),u=i.get("text-size");for(let f of e.bucket.features){let d=i.get("text-font").evaluate(f,{},e.canonical).join(","),p=u.evaluate(f,{},e.canonical),m=n.layoutTextSize.evaluate(f,{},e.canonical),g=n.layoutIconSize.evaluate(f,{},e.canonical),y={horizontal:{},vertical:void 0},x=f.text,w=[0,0];if(x){let M=x.toString(),S=i.get("text-letter-spacing").evaluate(f,{},e.canonical)*24,k=BBe(M)?S:0,P=i.get("text-anchor").evaluate(f,{},e.canonical),I=woe(r,f,e.canonical);if(!I){let O=i.get("text-radial-offset").evaluate(f,{},e.canonical);w=O?boe(P,[O*24,dC]):i.get("text-offset").evaluate(f,{},e.canonical).map(V=>V*24)}let B=s?"center":i.get("text-justify").evaluate(f,{},e.canonical),L=i.get("symbol-placement")==="point"?i.get("text-max-width").evaluate(f,{},e.canonical)*24:1/0,z=()=>{e.bucket.allowVerticalPlacement&&QE(M)&&(y.vertical=p4(x,e.glyphMap,e.glyphPositions,e.imagePositions,d,L,o,P,"left",k,w,2,!0,m,p))};if(!s&&I){let O=new Set;if(B==="auto")for(let $=0;${j.x<0||j.x>=8192||j.y<0||j.y>=8192||Gqe(e,j,$,r,i,a,z,e.layers[0],e.collisionBoxArray,t.index,t.sourceLayerIndex,e.index,x,[T,T,T,T],k,l,_,M,P,m,t,n,u,c,o,f)};if(I==="line")for(let $ of fC(t.geometry,0,0,ft,ft)){let j=Rd($,O),H=Iqe(j,A,S,r.vertical||g,i,24,w,e.overscaling,ft);for(let Z of H){let W=g;(!W||!jqe(e,W.text,B,Z))&&V(j,Z)}}else if(I==="line-center"){for(let $ of t.geometry)if($.length>1){let j=Rd($,O),H=Pqe(j,S,r.vertical||g,i,24,w);H&&V(j,H)}}else if(t.type==="Polygon")for(let $ of hw(t.geometry,0)){let j=Rqe($,16);V(Rd($[0],O,!0),new fm(j.x,j.y,0))}else if(t.type==="LineString")for(let $ of t.geometry){let j=Rd($,O);V(j,new fm(j[0].x,j[0].y,0))}else if(t.type==="Point")for(let $ of t.geometry)for(let j of $)V([j],new fm(j.x,j.y,0))}function Uqe(e,t){let r=e.length,i=t==null?void 0:t.values;if((i==null?void 0:i.length)>0)for(let a=0;a32640&&$r(`${e.layerIds[0]}: Value for "text-size" is >= 255. Reduce your "text-size".`)):y.kind==="composite"&&(x=[128*p.compositeTextSizes[0].evaluate(o,{},m),128*p.compositeTextSizes[1].evaluate(o,{},m)],(x[0]>32640||x[1]>32640)&&$r(`${e.layerIds[0]}: Value for "text-size" is >= 255. Reduce your "text-size".`)),e.addSymbols(e.text,g,x,s,n,o,c,t,u.lineStartIndex,u.lineLength,d,m,l);for(let w of h)f[w]=e.text.placedSymbolArray.length-1;return g.length*4}function Aoe(e){for(let t in e)return e[t];return null}function Gqe(e,t,r,i,a,n,o,s,l,u,c,h,f,d,p,m,g,y,x,w,_,A,T,M,S,k){let P=e.addToLineVertexArray(t,r),I=s.layout.get("symbol-height-offset").evaluate(_,{},M);I>e.maxHeightOffset&&(e.maxHeightOffset=I);let B,L,z,O,V=0,$=0,j=0,H=0,Z=-1,W=-1,le={},pe=(0,B4.default)("");if(e.allowVerticalPlacement&&i.vertical){let qe=s.layout.get("text-rotate").evaluate(_,{},M)+90,se=i.vertical;z=new y4(l,t,u,c,h,se,f,d,p,qe),o&&(O=new y4(l,t,u,c,h,o,g,y,p,qe))}if(a){let qe=s.layout.get("icon-rotate").evaluate(_,{}),se=s.layout.get("icon-text-fit")!=="none",je=Tre(a,qe,T,se),Re=o?Tre(o,qe,T,se):void 0;L=new y4(l,t,u,c,h,a,g,y,!1,qe),V=je.length*4;let Ve=e.iconSizeData,ge=null;Ve.kind==="source"?(ge=[128*s.layout.get("icon-size").evaluate(_,{})],ge[0]>32640&&$r(`${e.layerIds[0]}: Value for "icon-size" is >= 255. Reduce your "icon-size".`)):Ve.kind==="composite"&&(ge=[128*A.compositeIconSizes[0].evaluate(_,{},M),128*A.compositeIconSizes[1].evaluate(_,{},M)],(ge[0]>32640||ge[1]>32640)&&$r(`${e.layerIds[0]}: Value for "icon-size" is >= 255. Reduce your "icon-size".`)),e.addSymbols(e.icon,je,ge,w,x,_,0,t,P.lineStartIndex,P.lineLength,-1,M,I),Z=e.icon.placedSymbolArray.length-1,Re&&($=Re.length*4,e.addSymbols(e.icon,Re,ge,w,x,_,2,t,P.lineStartIndex,P.lineLength,-1,M,I),W=e.icon.placedSymbolArray.length-1)}let _e=Object.keys(i.horizontal);for(let qe of _e){let se=i.horizontal[qe];B||(B=(pe=(0,B4.default)(se.text),new y4(l,t,u,c,h,se,f,d,p,s.layout.get("text-rotate").evaluate(_,{},M))));let je=se.positionedLines.length===1;if(j+=Dre(e,t,se,n,s,p,_,m,I,P,i.vertical?1:3,je?_e:[qe],le,Z,A,M),je)break}i.vertical&&(H+=Dre(e,t,i.vertical,n,s,p,_,m,I,P,2,["vertical"],le,W,A,M));let De=B?B.boxStartIndex:e.collisionBoxArray.length,de=B?B.boxEndIndex:e.collisionBoxArray.length,Ce=z?z.boxStartIndex:e.collisionBoxArray.length,Q=z?z.boxEndIndex:e.collisionBoxArray.length,ae=L?L.boxStartIndex:e.collisionBoxArray.length,ye=L?L.boxEndIndex:e.collisionBoxArray.length,te=O?O.boxStartIndex:e.collisionBoxArray.length,re=O?O.boxEndIndex:e.collisionBoxArray.length,ce=-1,me=(qe,se)=>qe!=null&&qe.circleDiameter?Math.max(qe.circleDiameter,se):se;ce=me(B,ce),ce=me(z,ce),ce=me(L,ce),ce=me(O,ce);let ze=+(ce>-1);ze&&(ce*=S/24),e.glyphOffsetArray.length>=e.maxGlyphs&&$r("Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907"),_.sortKey!==void 0&&e.addToSortKeyRanges(e.symbolInstances.length,_.sortKey);let He=woe(s,_,M),[ke,Oe]=Uqe(e.textAnchorOffsets,He);k&&(pe=$qe(pe,_)),e.symbolInstances.emplaceBack(t.x,t.y,le.right>=0?le.right:-1,le.center>=0?le.center:-1,le.left>=0?le.left:-1,le.vertical||-1,Z,W,pe,De,de,Ce,Q,ae,ye,te,re,u,j,H,V,$,ze,0,f,ce,ke,Oe,I)}function jqe(e,t,r,i){let a=e.compareText;if(!(t in a))a[t]=[];else{let n=a[t];for(let o=n.length-1;o>=0;o--)if(i.dist(n[o])e&&i in e?String(e[i]):"")}function Jqe(e,t,r,i=1){var n;let a=(n=e.get("icon-padding").evaluate(t,{},r))==null?void 0:n.values;return[a[0]*i,a[1]*i,a[2]*i,a[3]*i]}function Doe(e){let t=[],r=e.id;return r===void 0&&t.push(new xt(`layers.${r}`,null,'missing required property "id"')),e.render===void 0&&t.push(new xt(`layers.${r}`,null,'missing required method "render"')),e.renderingMode&&e.renderingMode!=="2d"&&e.renderingMode!=="3d"&&t.push(new xt(`layers.${r}`,null,'property "renderingMode" must be either "2d" or "3d"')),t}function zw(e,t){if(e.type==="custom")return new rOe(e,t);switch(e.type){case"background":return new tOe(e,t);case"circle":return new jze(e,t);case"color-relief":return new eRe(e,t);case"fill":return new FRe(e,t);case"fill-extrusion":return new WRe(e,t);case"heatmap":return new Zze(e,t);case"hillshade":return new Xze(e,t);case"line":return new sBe(e,t);case"raster":return new lze(e,t);case"symbol":return new Kqe(e,t)}}function nOe(e,t,r){return!(e<0||e>25||r<0||r>=2**e||t<0||t>=2**e)}function mC(e,t){let{x:r,y:i}=bi.fromLngLat(t);return!(e<0||e>25||i<0||i>=1||r<0||r>=1)}function Od(e,t,r,i,a){e*=2,e<0&&(e=e*-1-1);let n=1<0;a--){let n=1<>>0;return((t&255)<<24|(t&65280)<<8|t>>>8&65280|t>>>24&255)>>>0}function fOe(e,t,r,i){let a=i,n=e[t]>>>0,o=e[t+1]>>>0;r[a++]=n>>>0&3,r[a++]=n>>>2&3,r[a++]=n>>>4&3,r[a++]=n>>>6&3,r[a++]=n>>>8&3,r[a++]=n>>>10&3,r[a++]=n>>>12&3,r[a++]=n>>>14&3,r[a++]=n>>>16&3,r[a++]=n>>>18&3,r[a++]=n>>>20&3,r[a++]=n>>>22&3,r[a++]=n>>>24&3,r[a++]=n>>>26&3,r[a++]=n>>>28&3,r[a++]=n>>>30&3,r[a++]=o>>>0&3,r[a++]=o>>>2&3,r[a++]=o>>>4&3,r[a++]=o>>>6&3,r[a++]=o>>>8&3,r[a++]=o>>>10&3,r[a++]=o>>>12&3,r[a++]=o>>>14&3,r[a++]=o>>>16&3,r[a++]=o>>>18&3,r[a++]=o>>>20&3,r[a++]=o>>>22&3,r[a++]=o>>>24&3,r[a++]=o>>>26&3,r[a++]=o>>>28&3,r[a]=o>>>30&3}function dOe(e,t,r,i){let a=i,n=e[t]>>>0,o=e[t+1]>>>0,s=e[t+2]>>>0;r[a++]=n>>>0&7,r[a++]=n>>>3&7,r[a++]=n>>>6&7,r[a++]=n>>>9&7,r[a++]=n>>>12&7,r[a++]=n>>>15&7,r[a++]=n>>>18&7,r[a++]=n>>>21&7,r[a++]=n>>>24&7,r[a++]=n>>>27&7,r[a++]=(n>>>30|(o&1)<<2)&7,r[a++]=o>>>1&7,r[a++]=o>>>4&7,r[a++]=o>>>7&7,r[a++]=o>>>10&7,r[a++]=o>>>13&7,r[a++]=o>>>16&7,r[a++]=o>>>19&7,r[a++]=o>>>22&7,r[a++]=o>>>25&7,r[a++]=o>>>28&7,r[a++]=(o>>>31|(s&3)<<1)&7,r[a++]=s>>>2&7,r[a++]=s>>>5&7,r[a++]=s>>>8&7,r[a++]=s>>>11&7,r[a++]=s>>>14&7,r[a++]=s>>>17&7,r[a++]=s>>>20&7,r[a++]=s>>>23&7,r[a++]=s>>>26&7,r[a]=s>>>29&7}function pOe(e,t,r,i){let a=i,n=e[t]>>>0,o=e[t+1]>>>0,s=e[t+2]>>>0,l=e[t+3]>>>0;r[a++]=n>>>0&15,r[a++]=n>>>4&15,r[a++]=n>>>8&15,r[a++]=n>>>12&15,r[a++]=n>>>16&15,r[a++]=n>>>20&15,r[a++]=n>>>24&15,r[a++]=n>>>28&15,r[a++]=o>>>0&15,r[a++]=o>>>4&15,r[a++]=o>>>8&15,r[a++]=o>>>12&15,r[a++]=o>>>16&15,r[a++]=o>>>20&15,r[a++]=o>>>24&15,r[a++]=o>>>28&15,r[a++]=s>>>0&15,r[a++]=s>>>4&15,r[a++]=s>>>8&15,r[a++]=s>>>12&15,r[a++]=s>>>16&15,r[a++]=s>>>20&15,r[a++]=s>>>24&15,r[a++]=s>>>28&15,r[a++]=l>>>0&15,r[a++]=l>>>4&15,r[a++]=l>>>8&15,r[a++]=l>>>12&15,r[a++]=l>>>16&15,r[a++]=l>>>20&15,r[a++]=l>>>24&15,r[a]=l>>>28&15}function mOe(e,t,r,i){let a=i,n=e[t]>>>0,o=e[t+1]>>>0,s=e[t+2]>>>0,l=e[t+3]>>>0,u=e[t+4]>>>0;r[a++]=n>>>0&31,r[a++]=n>>>5&31,r[a++]=n>>>10&31,r[a++]=n>>>15&31,r[a++]=n>>>20&31,r[a++]=n>>>25&31,r[a++]=(n>>>30|(o&7)<<2)&31,r[a++]=o>>>3&31,r[a++]=o>>>8&31,r[a++]=o>>>13&31,r[a++]=o>>>18&31,r[a++]=o>>>23&31,r[a++]=(o>>>28|(s&1)<<4)&31,r[a++]=s>>>1&31,r[a++]=s>>>6&31,r[a++]=s>>>11&31,r[a++]=s>>>16&31,r[a++]=s>>>21&31,r[a++]=s>>>26&31,r[a++]=(s>>>31|(l&15)<<1)&31,r[a++]=l>>>4&31,r[a++]=l>>>9&31,r[a++]=l>>>14&31,r[a++]=l>>>19&31,r[a++]=l>>>24&31,r[a++]=(l>>>29|(u&3)<<3)&31,r[a++]=u>>>2&31,r[a++]=u>>>7&31,r[a++]=u>>>12&31,r[a++]=u>>>17&31,r[a++]=u>>>22&31,r[a]=u>>>27&31}function vOe(e,t,r,i){let a=i,n=e[t]>>>0,o=e[t+1]>>>0,s=e[t+2]>>>0,l=e[t+3]>>>0,u=e[t+4]>>>0,c=e[t+5]>>>0;r[a++]=n>>>0&63,r[a++]=n>>>6&63,r[a++]=n>>>12&63,r[a++]=n>>>18&63,r[a++]=n>>>24&63,r[a++]=(n>>>30|(o&15)<<2)&63,r[a++]=o>>>4&63,r[a++]=o>>>10&63,r[a++]=o>>>16&63,r[a++]=o>>>22&63,r[a++]=(o>>>28|(s&3)<<4)&63,r[a++]=s>>>2&63,r[a++]=s>>>8&63,r[a++]=s>>>14&63,r[a++]=s>>>20&63,r[a++]=s>>>26&63,r[a++]=l>>>0&63,r[a++]=l>>>6&63,r[a++]=l>>>12&63,r[a++]=l>>>18&63,r[a++]=l>>>24&63,r[a++]=(l>>>30|(u&15)<<2)&63,r[a++]=u>>>4&63,r[a++]=u>>>10&63,r[a++]=u>>>16&63,r[a++]=u>>>22&63,r[a++]=(u>>>28|(c&3)<<4)&63,r[a++]=c>>>2&63,r[a++]=c>>>8&63,r[a++]=c>>>14&63,r[a++]=c>>>20&63,r[a]=c>>>26&63}function gOe(e,t,r,i){let a=i,n=e[t]>>>0,o=e[t+1]>>>0,s=e[t+2]>>>0,l=e[t+3]>>>0,u=e[t+4]>>>0,c=e[t+5]>>>0,h=e[t+6]>>>0;r[a++]=n>>>0&127,r[a++]=n>>>7&127,r[a++]=n>>>14&127,r[a++]=n>>>21&127,r[a++]=(n>>>28|(o&7)<<4)&127,r[a++]=o>>>3&127,r[a++]=o>>>10&127,r[a++]=o>>>17&127,r[a++]=o>>>24&127,r[a++]=(o>>>31|(s&63)<<1)&127,r[a++]=s>>>6&127,r[a++]=s>>>13&127,r[a++]=s>>>20&127,r[a++]=(s>>>27|(l&3)<<5)&127,r[a++]=l>>>2&127,r[a++]=l>>>9&127,r[a++]=l>>>16&127,r[a++]=l>>>23&127,r[a++]=(l>>>30|(u&31)<<2)&127,r[a++]=u>>>5&127,r[a++]=u>>>12&127,r[a++]=u>>>19&127,r[a++]=(u>>>26|(c&1)<<6)&127,r[a++]=c>>>1&127,r[a++]=c>>>8&127,r[a++]=c>>>15&127,r[a++]=c>>>22&127,r[a++]=(c>>>29|(h&15)<<3)&127,r[a++]=h>>>4&127,r[a++]=h>>>11&127,r[a++]=h>>>18&127,r[a]=h>>>25&127}function yOe(e,t,r,i){let a=i,n=e[t]>>>0,o=e[t+1]>>>0,s=e[t+2]>>>0,l=e[t+3]>>>0,u=e[t+4]>>>0,c=e[t+5]>>>0,h=e[t+6]>>>0,f=e[t+7]>>>0;r[a++]=n>>>0&255,r[a++]=n>>>8&255,r[a++]=n>>>16&255,r[a++]=n>>>24&255,r[a++]=o>>>0&255,r[a++]=o>>>8&255,r[a++]=o>>>16&255,r[a++]=o>>>24&255,r[a++]=s>>>0&255,r[a++]=s>>>8&255,r[a++]=s>>>16&255,r[a++]=s>>>24&255,r[a++]=l>>>0&255,r[a++]=l>>>8&255,r[a++]=l>>>16&255,r[a++]=l>>>24&255,r[a++]=u>>>0&255,r[a++]=u>>>8&255,r[a++]=u>>>16&255,r[a++]=u>>>24&255,r[a++]=c>>>0&255,r[a++]=c>>>8&255,r[a++]=c>>>16&255,r[a++]=c>>>24&255,r[a++]=h>>>0&255,r[a++]=h>>>8&255,r[a++]=h>>>16&255,r[a++]=h>>>24&255,r[a++]=f>>>0&255,r[a++]=f>>>8&255,r[a++]=f>>>16&255,r[a]=f>>>24&255}function _Oe(e,t,r,i){let a=i,n=e[t]>>>0,o=e[t+1]>>>0,s=e[t+2]>>>0,l=e[t+3]>>>0,u=e[t+4]>>>0,c=e[t+5]>>>0,h=e[t+6]>>>0,f=e[t+7]>>>0,d=e[t+8]>>>0;r[a++]=n>>>0&511,r[a++]=n>>>9&511,r[a++]=n>>>18&511,r[a++]=(n>>>27|(o&15)<<5)&511,r[a++]=o>>>4&511,r[a++]=o>>>13&511,r[a++]=o>>>22&511,r[a++]=(o>>>31|(s&255)<<1)&511,r[a++]=s>>>8&511,r[a++]=s>>>17&511,r[a++]=(s>>>26|(l&7)<<6)&511,r[a++]=l>>>3&511,r[a++]=l>>>12&511,r[a++]=l>>>21&511,r[a++]=(l>>>30|(u&127)<<2)&511,r[a++]=u>>>7&511,r[a++]=u>>>16&511,r[a++]=(u>>>25|(c&3)<<7)&511,r[a++]=c>>>2&511,r[a++]=c>>>11&511,r[a++]=c>>>20&511,r[a++]=(c>>>29|(h&63)<<3)&511,r[a++]=h>>>6&511,r[a++]=h>>>15&511,r[a++]=(h>>>24|(f&1)<<8)&511,r[a++]=f>>>1&511,r[a++]=f>>>10&511,r[a++]=f>>>19&511,r[a++]=(f>>>28|(d&31)<<4)&511,r[a++]=d>>>5&511,r[a++]=d>>>14&511,r[a]=d>>>23&511}function xOe(e,t,r,i){let a=i,n=e[t]>>>0,o=e[t+1]>>>0,s=e[t+2]>>>0,l=e[t+3]>>>0,u=e[t+4]>>>0,c=e[t+5]>>>0,h=e[t+6]>>>0,f=e[t+7]>>>0,d=e[t+8]>>>0,p=e[t+9]>>>0;r[a++]=n>>>0&1023,r[a++]=n>>>10&1023,r[a++]=n>>>20&1023,r[a++]=(n>>>30|(o&255)<<2)&1023,r[a++]=o>>>8&1023,r[a++]=o>>>18&1023,r[a++]=(o>>>28|(s&63)<<4)&1023,r[a++]=s>>>6&1023,r[a++]=s>>>16&1023,r[a++]=(s>>>26|(l&15)<<6)&1023,r[a++]=l>>>4&1023,r[a++]=l>>>14&1023,r[a++]=(l>>>24|(u&3)<<8)&1023,r[a++]=u>>>2&1023,r[a++]=u>>>12&1023,r[a++]=u>>>22&1023,r[a++]=c>>>0&1023,r[a++]=c>>>10&1023,r[a++]=c>>>20&1023,r[a++]=(c>>>30|(h&255)<<2)&1023,r[a++]=h>>>8&1023,r[a++]=h>>>18&1023,r[a++]=(h>>>28|(f&63)<<4)&1023,r[a++]=f>>>6&1023,r[a++]=f>>>16&1023,r[a++]=(f>>>26|(d&15)<<6)&1023,r[a++]=d>>>4&1023,r[a++]=d>>>14&1023,r[a++]=(d>>>24|(p&3)<<8)&1023,r[a++]=p>>>2&1023,r[a++]=p>>>12&1023,r[a]=p>>>22&1023}function bOe(e,t,r,i){let a=i,n=e[t]>>>0,o=e[t+1]>>>0,s=e[t+2]>>>0,l=e[t+3]>>>0,u=e[t+4]>>>0,c=e[t+5]>>>0,h=e[t+6]>>>0,f=e[t+7]>>>0,d=e[t+8]>>>0,p=e[t+9]>>>0,m=e[t+10]>>>0;r[a++]=n>>>0&2047,r[a++]=n>>>11&2047,r[a++]=(n>>>22|(o&1)<<10)&2047,r[a++]=o>>>1&2047,r[a++]=o>>>12&2047,r[a++]=(o>>>23|(s&3)<<9)&2047,r[a++]=s>>>2&2047,r[a++]=s>>>13&2047,r[a++]=(s>>>24|(l&7)<<8)&2047,r[a++]=l>>>3&2047,r[a++]=l>>>14&2047,r[a++]=(l>>>25|(u&15)<<7)&2047,r[a++]=u>>>4&2047,r[a++]=u>>>15&2047,r[a++]=(u>>>26|(c&31)<<6)&2047,r[a++]=c>>>5&2047,r[a++]=c>>>16&2047,r[a++]=(c>>>27|(h&63)<<5)&2047,r[a++]=h>>>6&2047,r[a++]=h>>>17&2047,r[a++]=(h>>>28|(f&127)<<4)&2047,r[a++]=f>>>7&2047,r[a++]=f>>>18&2047,r[a++]=(f>>>29|(d&255)<<3)&2047,r[a++]=d>>>8&2047,r[a++]=d>>>19&2047,r[a++]=(d>>>30|(p&511)<<2)&2047,r[a++]=p>>>9&2047,r[a++]=p>>>20&2047,r[a++]=(p>>>31|(m&1023)<<1)&2047,r[a++]=m>>>10&2047,r[a]=m>>>21&2047}function wOe(e,t,r,i){let a=i,n=e[t]>>>0,o=e[t+1]>>>0,s=e[t+2]>>>0,l=e[t+3]>>>0,u=e[t+4]>>>0,c=e[t+5]>>>0,h=e[t+6]>>>0,f=e[t+7]>>>0,d=e[t+8]>>>0,p=e[t+9]>>>0,m=e[t+10]>>>0,g=e[t+11]>>>0;r[a++]=n>>>0&4095,r[a++]=n>>>12&4095,r[a++]=(n>>>24|(o&15)<<8)&4095,r[a++]=o>>>4&4095,r[a++]=o>>>16&4095,r[a++]=(o>>>28|(s&255)<<4)&4095,r[a++]=s>>>8&4095,r[a++]=s>>>20&4095,r[a++]=l>>>0&4095,r[a++]=l>>>12&4095,r[a++]=(l>>>24|(u&15)<<8)&4095,r[a++]=u>>>4&4095,r[a++]=u>>>16&4095,r[a++]=(u>>>28|(c&255)<<4)&4095,r[a++]=c>>>8&4095,r[a++]=c>>>20&4095,r[a++]=h>>>0&4095,r[a++]=h>>>12&4095,r[a++]=(h>>>24|(f&15)<<8)&4095,r[a++]=f>>>4&4095,r[a++]=f>>>16&4095,r[a++]=(f>>>28|(d&255)<<4)&4095,r[a++]=d>>>8&4095,r[a++]=d>>>20&4095,r[a++]=p>>>0&4095,r[a++]=p>>>12&4095,r[a++]=(p>>>24|(m&15)<<8)&4095,r[a++]=m>>>4&4095,r[a++]=m>>>16&4095,r[a++]=(m>>>28|(g&255)<<4)&4095,r[a++]=g>>>8&4095,r[a]=g>>>20&4095}function AOe(e,t,r,i){let a=i,n=e[t]>>>0,o=e[t+1]>>>0,s=e[t+2]>>>0,l=e[t+3]>>>0,u=e[t+4]>>>0,c=e[t+5]>>>0,h=e[t+6]>>>0,f=e[t+7]>>>0,d=e[t+8]>>>0,p=e[t+9]>>>0,m=e[t+10]>>>0,g=e[t+11]>>>0,y=e[t+12]>>>0,x=e[t+13]>>>0,w=e[t+14]>>>0,_=e[t+15]>>>0;r[a++]=n>>>0&65535,r[a++]=n>>>16&65535,r[a++]=o>>>0&65535,r[a++]=o>>>16&65535,r[a++]=s>>>0&65535,r[a++]=s>>>16&65535,r[a++]=l>>>0&65535,r[a++]=l>>>16&65535,r[a++]=u>>>0&65535,r[a++]=u>>>16&65535,r[a++]=c>>>0&65535,r[a++]=c>>>16&65535,r[a++]=h>>>0&65535,r[a++]=h>>>16&65535,r[a++]=f>>>0&65535,r[a++]=f>>>16&65535,r[a++]=d>>>0&65535,r[a++]=d>>>16&65535,r[a++]=p>>>0&65535,r[a++]=p>>>16&65535,r[a++]=m>>>0&65535,r[a++]=m>>>16&65535,r[a++]=g>>>0&65535,r[a++]=g>>>16&65535,r[a++]=y>>>0&65535,r[a++]=y>>>16&65535,r[a++]=x>>>0&65535,r[a++]=x>>>16&65535,r[a++]=w>>>0&65535,r[a++]=w>>>16&65535,r[a++]=_>>>0&65535,r[a]=_>>>16&65535}function TOe(e,t,r,i){let a=i,n=t;for(let o=0;o<8;o++){let s=e[n++]>>>0;r[a++]=s>>>0&1,r[a++]=s>>>1&1,r[a++]=s>>>2&1,r[a++]=s>>>3&1,r[a++]=s>>>4&1,r[a++]=s>>>5&1,r[a++]=s>>>6&1,r[a++]=s>>>7&1,r[a++]=s>>>8&1,r[a++]=s>>>9&1,r[a++]=s>>>10&1,r[a++]=s>>>11&1,r[a++]=s>>>12&1,r[a++]=s>>>13&1,r[a++]=s>>>14&1,r[a++]=s>>>15&1,r[a++]=s>>>16&1,r[a++]=s>>>17&1,r[a++]=s>>>18&1,r[a++]=s>>>19&1,r[a++]=s>>>20&1,r[a++]=s>>>21&1,r[a++]=s>>>22&1,r[a++]=s>>>23&1,r[a++]=s>>>24&1,r[a++]=s>>>25&1,r[a++]=s>>>26&1,r[a++]=s>>>27&1,r[a++]=s>>>28&1,r[a++]=s>>>29&1,r[a++]=s>>>30&1,r[a++]=s>>>31&1}}function MOe(e,t,r,i){let a=i,n=t;for(let o=0;o<8;o++){let s=e[n++]>>>0,l=e[n++]>>>0;r[a++]=s>>>0&3,r[a++]=s>>>2&3,r[a++]=s>>>4&3,r[a++]=s>>>6&3,r[a++]=s>>>8&3,r[a++]=s>>>10&3,r[a++]=s>>>12&3,r[a++]=s>>>14&3,r[a++]=s>>>16&3,r[a++]=s>>>18&3,r[a++]=s>>>20&3,r[a++]=s>>>22&3,r[a++]=s>>>24&3,r[a++]=s>>>26&3,r[a++]=s>>>28&3,r[a++]=s>>>30&3,r[a++]=l>>>0&3,r[a++]=l>>>2&3,r[a++]=l>>>4&3,r[a++]=l>>>6&3,r[a++]=l>>>8&3,r[a++]=l>>>10&3,r[a++]=l>>>12&3,r[a++]=l>>>14&3,r[a++]=l>>>16&3,r[a++]=l>>>18&3,r[a++]=l>>>20&3,r[a++]=l>>>22&3,r[a++]=l>>>24&3,r[a++]=l>>>26&3,r[a++]=l>>>28&3,r[a++]=l>>>30&3}}function DOe(e,t,r,i){let a=i,n=t;for(let o=0;o<8;o++){let s=e[n++]>>>0,l=e[n++]>>>0,u=e[n++]>>>0;r[a++]=s>>>0&7,r[a++]=s>>>3&7,r[a++]=s>>>6&7,r[a++]=s>>>9&7,r[a++]=s>>>12&7,r[a++]=s>>>15&7,r[a++]=s>>>18&7,r[a++]=s>>>21&7,r[a++]=s>>>24&7,r[a++]=s>>>27&7,r[a++]=(s>>>30|(l&1)<<2)&7,r[a++]=l>>>1&7,r[a++]=l>>>4&7,r[a++]=l>>>7&7,r[a++]=l>>>10&7,r[a++]=l>>>13&7,r[a++]=l>>>16&7,r[a++]=l>>>19&7,r[a++]=l>>>22&7,r[a++]=l>>>25&7,r[a++]=l>>>28&7,r[a++]=(l>>>31|(u&3)<<1)&7,r[a++]=u>>>2&7,r[a++]=u>>>5&7,r[a++]=u>>>8&7,r[a++]=u>>>11&7,r[a++]=u>>>14&7,r[a++]=u>>>17&7,r[a++]=u>>>20&7,r[a++]=u>>>23&7,r[a++]=u>>>26&7,r[a++]=u>>>29&7}}function SOe(e,t,r,i){let a=i,n=t;for(let o=0;o<8;o++){let s=e[n++]>>>0,l=e[n++]>>>0,u=e[n++]>>>0,c=e[n++]>>>0;r[a++]=s>>>0&15,r[a++]=s>>>4&15,r[a++]=s>>>8&15,r[a++]=s>>>12&15,r[a++]=s>>>16&15,r[a++]=s>>>20&15,r[a++]=s>>>24&15,r[a++]=s>>>28&15,r[a++]=l>>>0&15,r[a++]=l>>>4&15,r[a++]=l>>>8&15,r[a++]=l>>>12&15,r[a++]=l>>>16&15,r[a++]=l>>>20&15,r[a++]=l>>>24&15,r[a++]=l>>>28&15,r[a++]=u>>>0&15,r[a++]=u>>>4&15,r[a++]=u>>>8&15,r[a++]=u>>>12&15,r[a++]=u>>>16&15,r[a++]=u>>>20&15,r[a++]=u>>>24&15,r[a++]=u>>>28&15,r[a++]=c>>>0&15,r[a++]=c>>>4&15,r[a++]=c>>>8&15,r[a++]=c>>>12&15,r[a++]=c>>>16&15,r[a++]=c>>>20&15,r[a++]=c>>>24&15,r[a++]=c>>>28&15}}function EOe(e,t,r,i){let a=i,n=t;for(let o=0;o<8;o++){let s=e[n++]>>>0,l=e[n++]>>>0,u=e[n++]>>>0,c=e[n++]>>>0,h=e[n++]>>>0;r[a++]=s>>>0&31,r[a++]=s>>>5&31,r[a++]=s>>>10&31,r[a++]=s>>>15&31,r[a++]=s>>>20&31,r[a++]=s>>>25&31,r[a++]=(s>>>30|(l&7)<<2)&31,r[a++]=l>>>3&31,r[a++]=l>>>8&31,r[a++]=l>>>13&31,r[a++]=l>>>18&31,r[a++]=l>>>23&31,r[a++]=(l>>>28|(u&1)<<4)&31,r[a++]=u>>>1&31,r[a++]=u>>>6&31,r[a++]=u>>>11&31,r[a++]=u>>>16&31,r[a++]=u>>>21&31,r[a++]=u>>>26&31,r[a++]=(u>>>31|(c&15)<<1)&31,r[a++]=c>>>4&31,r[a++]=c>>>9&31,r[a++]=c>>>14&31,r[a++]=c>>>19&31,r[a++]=c>>>24&31,r[a++]=(c>>>29|(h&3)<<3)&31,r[a++]=h>>>2&31,r[a++]=h>>>7&31,r[a++]=h>>>12&31,r[a++]=h>>>17&31,r[a++]=h>>>22&31,r[a++]=h>>>27&31}}function kOe(e,t,r,i){let a=i,n=t;for(let o=0;o<8;o++){let s=e[n++]>>>0,l=e[n++]>>>0,u=e[n++]>>>0,c=e[n++]>>>0,h=e[n++]>>>0,f=e[n++]>>>0;r[a++]=s>>>0&63,r[a++]=s>>>6&63,r[a++]=s>>>12&63,r[a++]=s>>>18&63,r[a++]=s>>>24&63,r[a++]=(s>>>30|(l&15)<<2)&63,r[a++]=l>>>4&63,r[a++]=l>>>10&63,r[a++]=l>>>16&63,r[a++]=l>>>22&63,r[a++]=(l>>>28|(u&3)<<4)&63,r[a++]=u>>>2&63,r[a++]=u>>>8&63,r[a++]=u>>>14&63,r[a++]=u>>>20&63,r[a++]=u>>>26&63,r[a++]=c>>>0&63,r[a++]=c>>>6&63,r[a++]=c>>>12&63,r[a++]=c>>>18&63,r[a++]=c>>>24&63,r[a++]=(c>>>30|(h&15)<<2)&63,r[a++]=h>>>4&63,r[a++]=h>>>10&63,r[a++]=h>>>16&63,r[a++]=h>>>22&63,r[a++]=(h>>>28|(f&3)<<4)&63,r[a++]=f>>>2&63,r[a++]=f>>>8&63,r[a++]=f>>>14&63,r[a++]=f>>>20&63,r[a++]=f>>>26&63}}function COe(e,t,r,i){let a=i,n=t;for(let o=0;o<8;o++){let s=e[n++]>>>0,l=e[n++]>>>0,u=e[n++]>>>0,c=e[n++]>>>0,h=e[n++]>>>0,f=e[n++]>>>0,d=e[n++]>>>0;r[a++]=s>>>0&127,r[a++]=s>>>7&127,r[a++]=s>>>14&127,r[a++]=s>>>21&127,r[a++]=(s>>>28|(l&7)<<4)&127,r[a++]=l>>>3&127,r[a++]=l>>>10&127,r[a++]=l>>>17&127,r[a++]=l>>>24&127,r[a++]=(l>>>31|(u&63)<<1)&127,r[a++]=u>>>6&127,r[a++]=u>>>13&127,r[a++]=u>>>20&127,r[a++]=(u>>>27|(c&3)<<5)&127,r[a++]=c>>>2&127,r[a++]=c>>>9&127,r[a++]=c>>>16&127,r[a++]=c>>>23&127,r[a++]=(c>>>30|(h&31)<<2)&127,r[a++]=h>>>5&127,r[a++]=h>>>12&127,r[a++]=h>>>19&127,r[a++]=(h>>>26|(f&1)<<6)&127,r[a++]=f>>>1&127,r[a++]=f>>>8&127,r[a++]=f>>>15&127,r[a++]=f>>>22&127,r[a++]=(f>>>29|(d&15)<<3)&127,r[a++]=d>>>4&127,r[a++]=d>>>11&127,r[a++]=d>>>18&127,r[a++]=d>>>25&127}}function FOe(e,t,r,i){let a=i,n=t;for(let o=0;o<8;o++){let s=e[n++]>>>0,l=e[n++]>>>0,u=e[n++]>>>0,c=e[n++]>>>0,h=e[n++]>>>0,f=e[n++]>>>0,d=e[n++]>>>0,p=e[n++]>>>0;r[a++]=s>>>0&255,r[a++]=s>>>8&255,r[a++]=s>>>16&255,r[a++]=s>>>24&255,r[a++]=l>>>0&255,r[a++]=l>>>8&255,r[a++]=l>>>16&255,r[a++]=l>>>24&255,r[a++]=u>>>0&255,r[a++]=u>>>8&255,r[a++]=u>>>16&255,r[a++]=u>>>24&255,r[a++]=c>>>0&255,r[a++]=c>>>8&255,r[a++]=c>>>16&255,r[a++]=c>>>24&255,r[a++]=h>>>0&255,r[a++]=h>>>8&255,r[a++]=h>>>16&255,r[a++]=h>>>24&255,r[a++]=f>>>0&255,r[a++]=f>>>8&255,r[a++]=f>>>16&255,r[a++]=f>>>24&255,r[a++]=d>>>0&255,r[a++]=d>>>8&255,r[a++]=d>>>16&255,r[a++]=d>>>24&255,r[a++]=p>>>0&255,r[a++]=p>>>8&255,r[a++]=p>>>16&255,r[a++]=p>>>24&255}}function POe(e,t,r,i){let a=i,n=t;for(let o=0;o<128;o++){let s=e[n++]>>>0;r[a++]=s&65535,r[a++]=s>>>16&65535}}function IOe(e,t,r,i,a){let n=ok[a]>>>0,o=t,s=0,l=e[o]>>>0,u=i;for(let c=0;c<8;c++){for(let h=0;h<32;h++)if(s+a<=32){let f=l>>>s&n;r[u+h]=f|0,s+=a,s===32&&(s=0,o++,h!==31&&(l=e[o]>>>0))}else{let f=32-s,d=l>>>s;o++,l=e[o]>>>0;let p=a-f,m=-1>>>32-p>>>0,g=(d|(l&m)<>>0)}}function Ioe(){let e=new Uint8Array(LOe);return{dataToBePacked:Array(33),dataPointers:new Int32Array(33),byteContainer:e,byteContainerI32:new Int32Array(e.buffer,e.byteOffset,e.byteLength>>>2),exceptionSizes:new Int32Array(33)}}function zOe(e=16){if(e<0)throw RangeError(`initialEncodedWordCapacity must be >= 0, got ${e}`);let t=Math.max(16,e|0);return{encodedWords:new Uint32Array(t),decoderWorkspace:Ioe()}}function ROe(e,t){if(t<=e.encodedWords.length)return e.encodedWords;let r=new Uint32Array(Math.max(16,t*2));return e.encodedWords=r,r}function BOe(e,t,r,i){i.byteContainer.length>>2;if(a.byteOffset&3)for(let s=0;s>>8&255,a[u+2|0]=l>>>16&255,a[u+3|0]=l>>>24&255}else{let s=i.byteContainerI32;(!s||s.buffer!==a.buffer||s.byteOffset!==a.byteOffset||s.length>>2)),s.set(e.subarray(t,t+n))}let o=r&3;if(o>0){let s=e[t+n|0]|0,l=n<<2;for(let u=0;u>>(u<<3)&255}return a}function qOe(e,t,r){let i=e[t++]|0,a=r.dataToBePacked;for(let n=2;n<=32;n=n+1|0){if(!(i>>>n-1&1))continue;if(t>=e.length)throw Error(`FastPFOR decode: truncated exception stream header (bitWidth=${n}, streamWordIndex=${t}, needWords=1, availableWords=${e.length-t}, encodedWords=${e.length})`);let o=e[t++]>>>0,s=cOe(o),l=o*n+31>>>5;if(t+l>e.length)throw Error(`FastPFOR decode: truncated exception stream (bitWidth=${n}, size=${o}, streamWordIndex=${t}, needWords=${l}, availableWords=${e.length-t}, encodedWords=${e.length})`);let u=a[n];(!u||u.length>>5)|0,r.exceptionSizes[n]=o}return t}function OOe(e,t,r,i,a){switch(a){case 1:TOe(e,t,r,i);break;case 2:MOe(e,t,r,i);break;case 3:DOe(e,t,r,i);break;case 4:SOe(e,t,r,i);break;case 5:EOe(e,t,r,i);break;case 6:kOe(e,t,r,i);break;case 7:COe(e,t,r,i);break;case 8:FOe(e,t,r,i);break;case 16:POe(e,t,r,i);break;default:IOe(e,t,r,i,a)}return t+(a<<3)|0}function NOe(e,t,r,i){if(r+2>t)throw Error(`FastPFOR decode: byteContainer underflow at block=${i} (need 2 bytes for [bitWidth, exceptionCount], bytePos=${r}, byteSize=${t})`);let a=e[r++],n=e[r++];if(a>32)throw Error(`FastPFOR decode: invalid bitWidth=${a} at block=${i} (expected 0..32). This likely indicates corrupted or truncated input.`);return{bitWidth:a,exceptionCount:n,bytePosIn:r}}function VOe(e,t,r,i,a,n){if(r+1>t)throw Error(`FastPFOR decode: exception header underflow at block=${n} (need 1 byte for maxBits, bytePos=${r}, byteSize=${t})`);let o=e[r++];if(o32)throw Error(`FastPFOR decode: invalid maxBits=${o} at block=${n} (bitWidth=${i}, expected ${i}..32)`);let s=o-i|0;if(s<1||s>32)throw Error(`FastPFOR decode: invalid exceptionBitWidth=${s} at block=${n} (bitWidth=${i}, maxBits=${o})`);if(r+a>t)throw Error(`FastPFOR decode: exception positions underflow at block=${n} (need=${a}, have=${t-r})`);return{maxBits:o,exceptionBitWidth:s,bytePosIn:r}}function UOe(e,t,r,i,a,n,o,s,l){let{maxBits:u,exceptionBitWidth:c,bytePosIn:h}=VOe(a,n,o,r,i,l);if(o=h,c===1){let g=1<m)throw Error(`FastPFOR decode: exception stream overflow for exceptionBitWidth=${c} (ptr=${p}, need ${i}, size=${m}) at block ${l}`);for(let g=0;g0&&(h=UOe(a,g,p,m,s,l,h,u,f))}if(c!==i)throw Error(`FastPFOR decode: packed region mismatch (pageStart=${t}, packedStart=${r}, consumedPackedEnd=${c}, expectedPackedEnd=${i}, packedWords=${i-r}, encoded.length=${e.length})`)}function jOe(e,t,r,i,a,n){let o=r|0,s=e[o]|0;if(s<=0||o+s>e.length-1)throw Error(`FastPFOR decode: invalid whereMeta=${s} at pageStart=${o} (expected > 0 and pageStart+whereMeta < encoded.length=${e.length})`);let l=o+1|0,u=o+s|0,c=e[u]>>>0,h=c+3>>>2,f=u+1,d=f+h;if(d>=e.length)throw Error(`FastPFOR decode: invalid byteSize=${c} (metaInts=${h}, pageStart=${o}, packedEnd=${u}, byteContainerStart=${f}) causes bitmapPos=${d} out of bounds (encoded.length=${e.length})`);let p=BOe(e,f,c,n),m=c,g=qOe(e,d,n);return n.dataPointers.fill(0),GOe(e,o,l,u,t,i|0,a/256|0,p,m,n),g}function $Oe(e,t,r,i,a,n){let o=i+TC(a,256),s=i,l=r;for(;s!==o;){let u=Math.min(sk,o-s);l=jOe(e,t,l,s,u,n),s=s+u|0}return l}function HOe(e,t,r,i,a,n){if(n===0)return t;let o=0,s=t,l=t+r,u=a,c=a,h=a+n,f=0,d=0;for(;s>>o&255;if(o+=8,s+=o>>>5,o&=31,f|=(p&127)<28)throw Error(`FastPFOR VByte: unterminated value (expected MSB=1 terminator within 5 bytes; shift=${d}, partial=${f}, decoded=${c-u}/${n}, inPos=${s}, inEnd=${l})`)}if(c!==h)throw Error(`FastPFOR VByte: truncated stream (decoded=${c-u}, expected=${n}, consumedWords=${s-t}/${r}, vbyteStart=${t}, vbyteEnd=${l})`);return s}function ZOe(e,t,r){let i=0,a=0,n=new Uint32Array(t),o=r!=null?r:Ioe();if(e.length>0){let u=e[i]|0;if(i=i+1|0,u&255)throw Error(`FastPFOR decode: invalid alignedLength=${u} (expected multiple of 256)`);if(a+u>n.length)throw Error(`FastPFOR decode: output buffer too small (outPos=${a}, alignedLength=${u}, out.length=${n.length})`);i=$Oe(e,n,i,a,u,o),a=a+u|0}let s=e.length-i|0,l=t-a|0;return HOe(e,i,s,n,a,l),n}function YOe(e,t,r,i,a){switch(a){case 2:fOe(e,t,r,i);return;case 3:dOe(e,t,r,i);return;case 4:pOe(e,t,r,i);return;case 5:mOe(e,t,r,i);return;case 6:vOe(e,t,r,i);return;case 7:gOe(e,t,r,i);return;case 8:yOe(e,t,r,i);return;case 9:_Oe(e,t,r,i);return;case 10:xOe(e,t,r,i);return;case 11:bOe(e,t,r,i);return;case 12:wOe(e,t,r,i);return;case 16:AOe(e,t,r,i);return;case 32:for(let u=0;u<32;u=u+1|0)r[i+u|0]=e[t+u|0]|0;return}let n=ok[a]>>>0,o=t,s=0,l=e[o]>>>0;for(let u=0;u<32;u++)if(s+a<=32){let c=l>>>s&n;r[i+u]=c|0,s+=a,s===32&&(s=0,o++,u!==31&&(l=e[o]>>>0))}else{let c=32-s,h=l>>>s;o++,l=e[o]>>>0;let f=ok[a-c]>>>0,d=(h|(l&f)<e.length)throw RangeError(`decodeBigEndianInt32sInto: out of bounds (offset=${t}, byteLength=${r}, bytes.length=${e.length})`);let a=Math.floor(r/4),n=r%4!=0,o=n?a+1:a;if(i.length0){let s=e.byteOffset+t;if(s&3)for(let l=0;l=64)throw Error("Varint too long")}return t.set(a),r}function KOe(e,t,r){let i=new Float64Array(r);for(let a=0;a>4,a<128||(a=t[r.get()],r.increment(),i|=(a&127)<<3,a<128)||(a=t[r.get()],r.increment(),i|=(a&127)<<10,a<128)||(a=t[r.get()],r.increment(),i|=(a&127)<<17,a<128)||(a=t[r.get()],r.increment(),i|=(a&127)<<24,a<128)||(a=t[r.get()],r.increment(),i|=(a&1)<<31,a<128))return i*4294967296+(e>>>0);throw Error("Expected varint not more than 10 bytes")}function eNe(e,t,r,i){return tNe(e,t,r,i,zOe(r>>>2))}function tNe(e,t,r,i,a){let n=i.get();if(r&3)throw Error(`FastPFOR: invalid encodedByteLength=${r} at offset=${n} (encodedBytes.length=${e.length}; expected a multiple of 4 bytes for an int32 big-endian word stream)`);let o=r>>>2,s=ROe(a,o);WOe(e,n,r,s);let l=ZOe(s.subarray(0,o),t,a.decoderWorkspace);return i.add(r),l}function Qr(e){return e>>>1^-(e&1)}function lo(e){return e>>BigInt(1)^-(e&BigInt(1))}function Lf(e){return e%2==1?(e+1)/-2:e/2}function rNe(e){let t=new Int32Array(e.length);for(let r=0;r=4)for(;i=4)for(;i=4)for(;r=4)for(let i=e[0];r=4)for(;i=4)for(;l>>0;for(let r=1;r>>0;return t}function Lre(e){let t=new BigUint64Array(e.length);t[0]=BigInt.asUintN(64,lo(e[0]));for(let r=1;r>>0,t[1]=Qr(e[1])>>>0;for(let r=2;r>>0,t[r+1]=t[r-1]+Qr(e[r+1])>>>0;return t}function gNe(e,t,r,i){let a=zoe(e,t,r,i);return new Uint32Array(a)}function yNe(e){return e[1]}function _Ne(e){return Qr(e[1])}function xNe(e){if(e.length===2){let t=Qr(e[1]);return[t,t]}return[Qr(e[2]),Qr(e[3])]}function bNe(e){return e[1]}function wNe(e){return lo(e[1])}function ANe(e){if(e.length===2){let t=lo(e[1]);return[t,t]}return[lo(e[2]),lo(e[3])]}function da(e,t){let r=FNe(e,t);return r.logicalLevelTechnique1===kr.MORTON?kNe(r,e,t):(kr.RLE===r.logicalLevelTechnique1||kr.RLE===r.logicalLevelTechnique2)&&Ws.NONE!==r.physicalLevelTechnique?CNe(r,e,t):r}function kNe(e,t,r){let i=uo(t,r,2);return{physicalStreamType:e.physicalStreamType,logicalStreamType:e.logicalStreamType,logicalLevelTechnique1:e.logicalLevelTechnique1,logicalLevelTechnique2:e.logicalLevelTechnique2,physicalLevelTechnique:e.physicalLevelTechnique,numValues:e.numValues,byteLength:e.byteLength,decompressedCount:e.decompressedCount,numBits:i[0],coordinateShift:i[1]}}function CNe(e,t,r){let i=uo(t,r,2);return{physicalStreamType:e.physicalStreamType,logicalStreamType:e.logicalStreamType,logicalLevelTechnique1:e.logicalLevelTechnique1,logicalLevelTechnique2:e.logicalLevelTechnique2,physicalLevelTechnique:e.physicalLevelTechnique,numValues:e.numValues,byteLength:e.byteLength,decompressedCount:i[1],runs:i[0],numRleValues:i[1]}}function FNe(e,t){let r=e[t.get()],i=TNe[r>>4],a={};switch(i){case Ha.DATA:a={dictionaryType:DNe[r&15]};break;case Ha.OFFSET:a={offsetType:SNe[r&15]};break;case Ha.LENGTH:a={lengthType:ENe[r&15]}}t.increment();let n=e[t.get()],o=zre[n>>5],s=zre[n>>2&7],l=MNe[n&3];t.increment();let u=uo(e,t,2),c=u[0],h=u[1];return{physicalStreamType:i,logicalStreamType:a,logicalLevelTechnique1:o,logicalLevelTechnique2:s,physicalLevelTechnique:l,numValues:c,byteLength:h,decompressedCount:c}}function ep(e,t,r){if(!t)return e;let i=t.size(),a=e.constructor,n=new a(i),o=0;for(let s=0;s=o);){let s=e[i.increment()];if(s<=127){let l=s+3,u=e[i.increment()],c=Math.min(n+l,t);a.fill(u,n,c),n=c}else{let l=256-s;for(let u=0;u=12?RNe.decode(e.subarray(t,r)):BNe(e,t,r)}function BNe(e,t,r){let i="",a=t;for(;a239?4:n>223?3:n>191?2:1;if(a+s>r)break;let l,u,c;s===1?n<128&&(o=n):s===2?(l=e[a+1],(l&192)==128&&(o=(n&31)<<6|l&63,o<=127&&(o=null))):s===3?(l=e[a+1],u=e[a+2],(l&192)==128&&(u&192)==128&&(o=(n&15)<<12|(l&63)<<6|u&63,(o<=2047||o>=55296&&o<=57343)&&(o=null))):s===4&&(l=e[a+1],u=e[a+2],c=e[a+3],(l&192)==128&&(u&192)==128&&(c&192)==128&&(o=(n&15)<<18|(l&63)<<12|(u&63)<<6|c&63,(o<=65535||o>=1114112)&&(o=null))),o===null?(o=65533,s=1):o>65535&&(o-=65536,i+=String.fromCharCode(o>>>10&1023|55296),o=56320|o&1023),i+=String.fromCharCode(o),a+=s}return i}function G4(e,t,r,i,a){return UNe(Lm(e,t,r),r,i,a)}function so(e,t,r,i,a){return GNe(Lm(e,t,r),r,i,a)}function zf(e,t,r){return $Ne(Lm(e,t,r),r)}function Lm(e,t,r){let i=r.physicalLevelTechnique;switch(i){case Ws.FAST_PFOR:return eNe(e,r.numValues,r.byteLength,t);case Ws.VARINT:return uo(e,t,r.numValues);case Ws.NONE:return LNe(e,t,r.numValues);default:throw Error(`Specified physicalLevelTechnique ${i} is not supported (yet).`)}}function I2(e,t,r){let i=r.physicalLevelTechnique;switch(i){case Ws.VARINT:return MC(e,t,r.numValues);case Ws.NONE:return zNe(e,t,r.numValues);default:throw Error(`Specified physicalLevelTechnique ${i} is not supported (yet).`)}}function qNe(e,t,r){let i=Lm(e,t,r);return i.length===1?Qr(i[0]):_Ne(i)}function EC(e,t,r){let i=Lm(e,t,r);return i.length===1?r.logicalLevelTechnique1===kr.DELTA?Qr(i[0]):i[0]:yNe(i)}function Ooe(e,t,r){return xNe(Lm(e,t,r))}function Noe(e,t,r){return ANe(MC(e,t,r.numValues))}function Voe(e,t,r,i){return Goe(I2(e,t,r),r,i)}function kC(e,t,r,i){return joe(I2(e,t,r),r,i)}function ONe(e,t,r,i){let a=NNe(e,t,r,!1);return i?ep(a,i,0):a}function NNe(e,t,r,i){if(r.physicalLevelTechnique===Ws.VARINT)return jNe(KOe(e,t,r.numValues),r,i);let a=I2(e,t,r),n=i?Goe(a,r):joe(a,r);return Float64Array.from(n,Number)}function VNe(e,t,r){let i=I2(e,t,r);return i.length===1?lo(i[0]):wNe(i)}function Uoe(e,t,r){let i=I2(e,t,r);return i.length===1?r.logicalLevelTechnique1===kr.DELTA?lo(i[0]):i[0]:bNe(i)}function UNe(e,t,r,i){let a;switch(t.logicalLevelTechnique1){case kr.DELTA:if(t.logicalLevelTechnique2===kr.RLE){let n=t;if(!i)return pNe(e,n.runs,n.numRleValues);e=lk(e,n.runs,n.numRleValues),a=Fre(e)}else a=Fre(e);break;case kr.RLE:a=oNe(e,t.runs,t.numRleValues);break;case kr.MORTON:DC(e),a=new Int32Array(e);break;case kr.COMPONENTWISE_DELTA:if(r&&!i)return zoe(e,r.scale,r.min,r.max);a=cNe(e);break;case kr.NONE:a=rNe(e);break;default:throw Error(`The specified Logical level technique is not supported: ${t.logicalLevelTechnique1}`)}return i?ep(a,i,0):a}function GNe(e,t,r,i){let a;switch(t.logicalLevelTechnique1){case kr.DELTA:if(t.logicalLevelTechnique2===kr.RLE){let n=t;a=Ire(lk(e,n.runs,n.numRleValues))}else a=Ire(e);break;case kr.RLE:a=lk(e,t.runs,t.numRleValues);break;case kr.MORTON:DC(e),a=e;break;case kr.COMPONENTWISE_DELTA:a=r&&!i?gNe(e,r.scale,r.min,r.max):vNe(e);break;case kr.NONE:a=e;break;default:throw Error(`The specified Logical level technique is not supported: ${t.logicalLevelTechnique1}`)}return i?ep(a,i,0):a}function Goe(e,t,r){let i;switch(t.logicalLevelTechnique1){case kr.DELTA:if(t.logicalLevelTechnique2===kr.RLE){let a=t;if(!r)return mNe(e,a.runs,a.numRleValues);e=uk(e,a.runs,a.numRleValues),i=Pre(e)}else i=Pre(e);break;case kr.RLE:i=sNe(e,t.runs,t.numRleValues);break;case kr.NONE:i=iNe(e);break;default:throw Error(`The specified Logical level technique is not supported: ${t.logicalLevelTechnique1}`)}return r?ep(i,r,BigInt(0)):i}function joe(e,t,r){let i;switch(t.logicalLevelTechnique1){case kr.DELTA:if(t.logicalLevelTechnique2===kr.RLE){let a=t;i=Lre(uk(e,a.runs,a.numRleValues))}else i=Lre(e);break;case kr.RLE:i=uk(e,t.runs,t.numRleValues);break;case kr.NONE:i=e;break;default:throw Error(`The specified Logical level technique is not supported: ${t.logicalLevelTechnique1}`)}return r?ep(i,r,BigInt(0)):i}function jNe(e,t,r){switch(t.logicalLevelTechnique1){case kr.DELTA:if(t.logicalLevelTechnique2===kr.RLE){let i=t;e=Loe(e,i.runs,i.numRleValues)}return nNe(e),e;case kr.RLE:return ZNe(e,t,r);case kr.NONE:return r&&aNe(e),e;default:throw Error(`The specified Logical level technique is not supported: ${t.logicalLevelTechnique1}`)}}function $Ne(e,t){if(t.logicalLevelTechnique1===kr.DELTA&&t.logicalLevelTechnique2===kr.NONE)return hNe(e);if(t.logicalLevelTechnique1===kr.RLE&&t.logicalLevelTechnique2===kr.NONE){let r=t;return dNe(e,r.runs,r.numRleValues)}if(t.logicalLevelTechnique1===kr.NONE&&t.logicalLevelTechnique2===kr.NONE){uNe(e);let r=new Uint32Array(t.numValues+1);return r[0]=0,r.set(e,1),r}if(t.logicalLevelTechnique1===kr.DELTA&&t.logicalLevelTechnique2===kr.RLE){let r=t,i=fNe(e,r.runs,r.numRleValues);return DC(i),new Uint32Array(i)}throw Error("Only delta encoding is supported for transforming length to offset streams yet.")}function Bw(e,t,r,i,a="int32"){let n=e.logicalLevelTechnique1;if(n===kr.RLE)return e.runs===1?sa.CONST:sa.FLAT;if(n!==kr.DELTA||e.logicalLevelTechnique2!==kr.RLE)return e.numValues===1?sa.CONST:sa.FLAT;let o=t instanceof Pu?t.size():t,s=e;if(s.numRleValues!==o)return sa.FLAT;if(s.runs===1)return sa.SEQUENCE;if(s.runs!==2)return e.numValues===1?sa.CONST:sa.FLAT;let l=i.get();if(e.physicalLevelTechnique===Ws.VARINT)return HNe(r,i,a)?sa.SEQUENCE:e.numValues===1?sa.CONST:sa.FLAT;let u=i.get(),c=new Int32Array(r.buffer,r.byteOffset+u,4);return i.set(l),c[2]===2&&c[3]===2?sa.SEQUENCE:e.numValues===1?sa.CONST:sa.FLAT}function HNe(e,t,r){let i=new Foe(t.get());if(r==="int64"){let n=MC(e,i,4);return n[2]===BigInt(2)&&n[3]===BigInt(2)}let a=uo(e,i,4);return a[2]===2&&a[3]===2}function ZNe(e,t,r){return r?lNe(e,t.runs,t.numRleValues):Loe(e,t.runs,t.numRleValues)}function CC(e,t,r){return{x:Rre(e,t)-r,y:Rre(e>>1,t)-r}}function Rre(e,t){let r=0;for(let i=0;i>i;return r}function YNe(e){let t=Array(e.numGeometries),r=1,i=1,a=1,n=0,o=0,s=0,l=e.mortonSettings,u=e.topologyVector,c=u.geometryOffsets,h=u.partOffsets,f=u.ringOffsets,d=e.vertexOffsets,p=!d||d.length===0,m=e.containsPolygonGeometry(),g=e.vertexBuffer;for(let y=0;y[A]),r+=w,i+=w}break;case $n.LINESTRING:{let w;m?(w=f[i]-f[i-1],i++):w=h[r]-h[r-1],r++;let _;p?(_=Q1(g,o,w,!1),o+=w*2):(_=Id(e.vertexBufferType,g,d,s,w,!1,l),s+=w),t[n++]=[_],c&&a++}break;case $n.POLYGON:{let w=h[r]-h[r-1];r++;let _=Array(w-1),A,T=f[i]-f[i-1];if(i++,p){A=Q1(g,o,T,!0),o+=T*2;for(let M=0;M<_.length;M++)T=f[i]-f[i-1],i++,_[M]=Q1(g,o,T,!0),o+=T*2}else{A=Id(e.vertexBufferType,g,d,s,T,!0,l),s+=T;for(let M=0;M<_.length;M++)T=f[i]-f[i-1],i++,_[M]=Id(e.vertexBufferType,g,d,s,T,!0,l),s+=T}t[n++]=[A].concat(_),c&&a++}break;case $n.MULTILINESTRING:{let w=c[a]-c[a-1];a++;let _=Array(w);for(let A=0;Ar?t[n++]:1);return i}function Nre(e,t,r,i){let a=new Uint32Array(t[t.length-1]+1),n=0;a[0]=n;let o=1,s=0;for(let l=0;l0;)a[n++]=e[u++]}}return a}function ese(e,t,r,i,a){var d,p;let n,o,s,l,u,c=a,h,f;for(let m=0;m1&&!d.nullable||p===1&&d.nullable)throw Error(`The number of streams for the child field ${d.name} does not match its nullability. nullibilty: ${d.nullable}, numStreams: ${p}`);let g;if(d.nullable){let x=da(e,t);g=new Pu(Im(e,x.numValues,x.byteLength,t),x.numValues)}let y=so(e,t,da(e,t),void 0,g);if(s){if(!o)throw Error(`Incomplete shared FSST dictionary for column "${m}"`);c[f++]=new Qoe(m,y,a,n,o,s,g,h)}else c[f++]=new dm(m,y,a,n,g)}return c}function dVe(e,t,r,i){let a=pVe(r);if(i===0)return a.map(c=>new Ure(c,[]));let n=mVe(e,t,i),o=(n.presentStream?n.presentCount:n.lengthStream.length)/a.length,s=[],l=0,u=0;for(let c=0;c{var i;return e.name+((i=r.name)!=null?i:"")})}function mVe(e,t,r){let i=e[t.get()];t.add(1);let a=so(e,t,da(e,t)),n=r-1,o=[];i&Dc.STRING&&(n-=vVe(e,t,o)),n-=gVe(e,t,i,o),n-=yVe(e,t,i,o);let s,l=0;if(i&Dc.PRESENCE){let c=_Ve(e,t);s=c.value,l=c.count,n--}let u=new Uint32Array;if(n>0&&(u=so(e,t,da(e,t)),n--),n!==0)throw Error(`Unexpected number of remaining streams while decoding map column: ${n}`);return{lengthStream:a,dictionary:o,presentStream:s,presentCount:l,flattenedValues:u}}function vVe(e,t,r){let i=e[t.get()];t.add(1);let a=ese("",e,t,i);if(a)for(let n=0;nn.length)throw Error("Merged map counts underflow while decoding child streams");let d=Array(r),p=i,m=a;for(let x=0;xo.length)throw Error("Map value stream underflow while decoding feature payload");let _=bVe(o,m,w,l);d[x]=_.value,m=_.nextIndex}let g=0;for(let x=i;x=r)throw Error("Unexpected end of map value stream");let a=e[t];if(a===Bf.FALSE)return{value:!1,nextIndex:t+1};if(a===Bf.TRUE)return{value:!0,nextIndex:t+1};if(a===Bf.START_MAP){let n=Gre(e,t,r);return{value:tse(e,t+2,n,i).value,nextIndex:n}}if(a===Bf.START_LIST){let n=Gre(e,t,r),o=[],s=t+2;for(;s=r)throw Error("Missing length for nested map/list payload");let i=e[t+1];if(i<2)throw Error(`Invalid nested payload length: ${i}`);let a=t+i;if(a>r)throw Error("Nested payload exceeds containing payload bounds");return a}function rse(e,t){let r=e-Bf.COUNT;if(r<0||r>=t.length)throw Error(`Scalar dictionary index out of range: ${e}`);return t[r]}function sm(e,t){for(let r of t)e.push(r)}function wVe(e,t,r,i,a,n){var o;return r.type==="scalarType"?n&&!n.has(r.name)?(Roe(i,e,t),null):AVe(i,e,t,a,r.scalarType,r):((o=r.complexType)==null?void 0:o.physicalType)===Of.MAP?dVe(e,t,r,i):i===0?null:fVe(e,t,r,n)}function AVe(e,t,r,i,a,n){var l;let o;if(e===0)return null;if(n.nullable){let u=da(t,r),c=u.numValues,h=r.get(),f=Im(t,c,u.byteLength,r);r.set(h+u.byteLength),o=new Pu(f,u.numValues)}let s=o!=null?o:i;switch(a.physicalType){case vi.UINT_32:case vi.INT_32:return EVe(t,r,n,a,s);case vi.STRING:{let u=n.nullable?e-1:e;return(l=ese(n.name,t,r,u,o))!=null?l:null}case vi.BOOLEAN:return TVe(t,r,n,i,s);case vi.UINT_64:case vi.INT_64:return SVe(t,r,n,s,a);case vi.FLOAT:return MVe(t,r,n,s);case vi.DOUBLE:return DVe(t,r,n,s);default:throw Error(`The specified data type for the field is currently not supported: ${a}`)}}function TVe(e,t,r,i,a){let n=da(e,t),o=n.numValues,s=t.get(),l=L2(a)?a:void 0,u=Im(e,o,n.byteLength,t,l);t.set(s+n.byteLength);let c=new Pu(u,o);return new nVe(r.name,c,a)}function MVe(e,t,r,i){let a=da(e,t),n=L2(i)?i:void 0,o=Boe(e,t,a.numValues,n);return new oVe(r.name,o,i)}function DVe(e,t,r,i){let a=da(e,t),n=L2(i)?i:void 0,o=qoe(e,t,a.numValues,n);return new _C(r.name,o,i)}function SVe(e,t,r,i,a){let n=da(e,t),o=Bw(n,i,e,t,"int64"),s=a.physicalType===vi.INT_64;if(o===sa.FLAT){let u=L2(i)?i:void 0,c=s?Voe(e,t,n,u):kC(e,t,n,u);return new $oe(r.name,c,i)}if(o===sa.SEQUENCE){let u=Noe(e,t,n);return new Hoe(r.name,u[0],u[1],n.numRleValues,s)}let l=s?VNe(e,t,n):Uoe(e,t,n);return new Joe(r.name,l,i,s)}function EVe(e,t,r,i,a){let n=da(e,t),o=Bw(n,a,e,t),s=i.physicalType===vi.INT_32;if(o===sa.FLAT){let u=L2(a)?a:void 0,c=s?G4(e,t,n,void 0,u):so(e,t,n,void 0,u);return new yC(r.name,c,a)}if(o===sa.SEQUENCE){let u=Ooe(e,t,n);return new xC(r.name,u[0],u[1],n.numRleValues,s)}let l=s?qNe(e,t,n):EC(e,t,n);return new bC(r.name,l,a,s)}function L2(e){return e instanceof Pu}function ise(e){switch(e){case Cn.ID:case Cn.ID|Cn.ID_NULLABLE:case Cn.ID|Cn.ID_LONG:case Cn.ID|Cn.ID_LONG|Cn.ID_NULLABLE:return{nullable:(e&Cn.ID_NULLABLE)!==0,columnScope:Ly.FEATURE,type:"scalarType",scalarType:{longID:(e&Cn.ID_LONG)!==0,type:"logicalType",logicalType:Coe.ID}};case Cn.GEOMETRY:return{nullable:!1,columnScope:Ly.FEATURE,type:"complexType",complexType:{type:"physicalType",physicalType:Of.GEOMETRY,children:[]}};case Cn.STRUCT:return{nullable:!1,columnScope:Ly.FEATURE,type:"complexType",complexType:{type:"physicalType",physicalType:Of.STRUCT,children:[]}};case Cn.MAP:return{nullable:!0,columnScope:Ly.FEATURE,type:"complexType",complexType:{type:"physicalType",physicalType:Of.MAP,children:[]}};default:return IVe(e)}}function kVe(e){return e>=Cn.SCALAR_BASE}function ase(e){return e===Cn.STRUCT||e===Cn.MAP}function CVe(e){if(e.type==="scalarType"){let t=e.scalarType;if(t.type==="physicalType")switch(t.physicalType){case vi.BOOLEAN:case vi.INT_8:case vi.UINT_8:case vi.INT_32:case vi.UINT_32:case vi.INT_64:case vi.UINT_64:case vi.FLOAT:case vi.DOUBLE:return!1;case vi.STRING:return!0;default:return!1}if(t.type==="logicalType")return!1}else if(e.type==="complexType"){let t=e.complexType;if(t.type==="physicalType")switch(t.physicalType){case Of.GEOMETRY:case Of.STRUCT:case Of.MAP:return!0;default:return!1}}return console.warn("Unexpected column type in hasStreamCount",e),!1}function FVe(e){var t;return e.type==="scalarType"&&((t=e.scalarType)==null?void 0:t.type)==="logicalType"&&e.scalarType.logicalType===Coe.ID}function PVe(e){var t;return e.type==="complexType"&&((t=e.complexType)==null?void 0:t.type)==="physicalType"&&e.complexType.physicalType===Of.GEOMETRY}function IVe(e){let t;switch(e){case 10:case 11:t=vi.BOOLEAN;break;case 12:case 13:t=vi.INT_8;break;case 14:case 15:t=vi.UINT_8;break;case 16:case 17:t=vi.INT_32;break;case 18:case 19:t=vi.UINT_32;break;case 20:case 21:t=vi.INT_64;break;case 22:case 23:t=vi.UINT_64;break;case 24:case 25:t=vi.FLOAT;break;case 26:case 27:t=vi.DOUBLE;break;case 28:case 29:t=vi.STRING;break;default:return null}return{nullable:!!(e&1),columnScope:Ly.FEATURE,type:"scalarType",scalarType:{longID:!1,type:"physicalType",physicalType:t}}}function IC(e,t){let r=uo(e,t,1)[0];if(r===0)return"";let i=t.get(),a=i+r,n=e.subarray(i,a);return t.add(r),LVe.decode(n)}function zVe(e){let t=e.name,r=e.nullable;return e.type==="scalarType"?{type:"scalarField",scalarField:e.scalarType,name:t,nullable:r}:{type:"complexField",complexField:e.complexType,name:t,nullable:r}}function nse(e,t){let r=uo(e,t,1)[0]>>>0,i=r>=Cn.SCALAR_BASE?ise(r):null;if(!i)throw Error(`Unsupported field type code ${r}. Supported: 10-29(scalars), 30(STRUCT), 31(MAP)`);let a=Gr(nr({},i),{name:IC(e,t)});if(a.type==="complexType"&&ase(r)){let n=a.complexType,o=uo(e,t,1)[0]>>>0;n.children=Array(o);for(let s=0;s>>0,i=ise(r);if(!i)throw Error(`Unsupported column type code ${r}. Supported: ${jre}`);let a;if(kVe(r))a=IC(e,t);else if(r>>0,s=n.complexType;s.children=Array(o);for(let l=0;l>>0,n=uo(e,t,1)[0]>>>0;i.columns=Array(n);for(let o=0;o>>0,o=i.get()+n;if(o>e.length)throw Error(`Block overruns tile: ${o} > ${e.length}`);let s=uo(e,i,1)[0]>>>0;if(s!==1&&s!==2){i.set(o);continue}let[l,u]=BVe(e,i),c=l.featureTables[0],h=null,f=null,d=[],p=0;for(let g of c.columns){let y=g.name;if(FVe(g)){let x=null;if(g.nullable){let _=da(e,i),A=i.get(),T=Im(e,_.numValues,_.byteLength,i);i.set(A+_.byteLength),x=new Pu(T,_.numValues)}let w=da(e,i);p=x?x.size():w.decompressedCount,h=OVe(e,g,i,y,w,x!=null?x:p,r)}else if(PVe(g)){let x=uo(e,i,1)[0];if(p===0){let w=i.get();p=da(e,i).decompressedCount,i.set(w)}t&&(t.scale=t.extent/u),f=rVe(e,x,i,p,t)}else{let x=CVe(g)?uo(e,i,1)[0]:1;if(x===0)continue;let w=wVe(e,i,g,x,p,void 0);if(w)if(Array.isArray(w))for(let _ of w)d.push(_);else d.push(w)}}let m=new uOe(c.name,f,h,d,u);a.push(m),i.set(o)}return a}function OVe(e,t,r,i,a,n,o=!1){var c;let s=(c=t.scalarType)!=null&&c.longID?vi.UINT_64:vi.UINT_32,l=typeof n=="number"?void 0:n,u=Bw(a,n,e,r,s===vi.UINT_64?"int64":"int32");if(s===vi.UINT_32)switch(u){case sa.FLAT:return new yC(i,so(e,r,a,void 0,l),n);case sa.SEQUENCE:{let h=Ooe(e,r,a);return new xC(i,h[0],h[1],a.numRleValues,!1)}case sa.CONST:return new bC(i,EC(e,r,a),n,!1)}switch(u){case sa.FLAT:return o?new _C(i,ONe(e,r,a,l),n):new $oe(i,kC(e,r,a,l),n);case sa.SEQUENCE:{let h=Noe(e,r,a);return new Hoe(i,h[0],h[1],a.numRleValues,!1)}case sa.CONST:return new Joe(i,Uoe(e,r,a),n,!1)}throw Error("Vector type not supported for id column.")}function jVe(e){return typeof e=="object"&&!!e&&"evaluate"in e}function $re(e,t,r,i,a){return rw(e,(n,o)=>{let s=t instanceof xw?t.get(o):null;return jVe(s)?s.evaluate(r,i,void 0,a):s})}function $Ve(e,t){return t-e}var IPe,Hre,LPe,zPe,RPe,Zre,ck,BPe,qPe,_y,a4,Tn,H4,Iu,Cc,s2,oie,pk,nte,lie,ft,tw,QPe,ste,z9,gie,yie,Lu,bie,wie,lte,Dm,_s,D4,pm,rIe,f2,d2,Mk,Eie,xs,sr,Xa,kie,Xe,Cie,xt,p2,Vt,Er,Xr,Cu,nw,Bd,Ir,nIe,ow,m2,sw,Gy,lw,v2,uw,oIe,Fie,Pie,Iie,eE,Lie,sIe,lIe,fIe,pIe,jn,Dr,vIe,tE,vh,Fc,Pc,Vl,ba,gIe,Ec,kc,wh,Ek,gm,yIe,Vie,kk,Ul,pa,Gie,o4,dh,fte,nm,Yie,Xie,AIe,TIe,MIe,DIe,SIe,EIe,rae,NIe,VIe,UIe,GIe,jIe,$Ie,nae,HIe,ZIe,YIe,Sc,Pk,dae,gte,Ik,Rk,gLe,Bk,lm,Ac,yLe,yae,Wd,Ok,Nk,Yy,F4,Dae,LLe,Dte,Ste,JLe,Ete,eze,tze,Wo,$k,fE,ph,I4,Si,Xy,dE,x2,kte,Cte,nze,Nl,xw,Ut,cr,Ky,Jae,bw,Fn,Pte,H9,zu,Ite,oze,sze,ww,lze,uze,b2,Ea,Jy,L4,pE,mE,vE,Qy,gE,yE,_E,xE,bE,wE,AE,TE,ME,z4,DE,SE,R4,EE,kE,CE,FE,PE,Qae,Yk,ene,tne,rne,ine,ane,nne,one,sne,lne,une,Ah,cne,hne,hze,fze,dze,pze,mze,J1,zte,vze,gze,yze,Rte,fne,_ze,dne,Ru,IE,pne,LE,xze,ma,bze,wze,Aze,Tze,B4,mne,Th,lr,Gt,Lr,Io,Cm,Mh,Wk,Xk,Mze,Hl,Py,Ld,fh,Eu,If,gne,yne,_ne,Gd,BE,Nte,Vte,Kk,Gte,Vze,jte,Uze,Gze,Ane,jze,Tne,$te,$ze,Hze,Dw,aa,w2,Ene,Zze,Hte,Yze,Wze,kne,Xze,Zte,Kze,Jze,cn,mh,Qze,Fne,eRe,OE,tRe,e2,NE,UE,ja,O4,GE,jE,Ol,by,Pd,wy,Ay,Tc,Nd,Sw,cm,hm,bRe,One,Kte,ERe,Jte,kRe,CRe,Nne,FRe,ZE,PRe,IRe,Gl,Vne,A2,zRe,BRe,Lo,ar,Gne,bi,Yf,Y9,Zne,ere,HRe,tre,ZRe,YRe,Yne,WRe,QRe,eBe,XE,tBe,KE,rBe,iBe,Wne,ire,Xne,are,aBe,nre,nBe,ore,oBe,d4,Kne,sBe,lBe,uBe,cBe,lre,Jne,V4,gBe,yBe,_Be,cre,xBe,eoe,toe,Dy,Sy,om,NBe,VBe,uC,cC,jBe,$Be,HBe,tk,Lat,yre,soe,Pw,lqe,coe,_re,wre,fm,y4,zqe,am,Lw,dC,Hqe,ik,ak,k2,Sre,Wqe,Ere,Xqe,X9,Toe,pC,Kqe,kre,Qqe,eOe,Moe,tOe,Soe,rOe,iOe,aOe,Eoe,C2,F2,Xn,K9,P2,lOe,gC,Qd,Rw,yC,_C,koe,xC,bC,uOe,Ly,vi,Of,Coe,Foe,kr,Ws,wC,ok,AC,sk,LOe,Ha,Co,Mc,wn,TNe,zre,MNe,DNe,SNe,ENe,sa,Pu,RNe,$oe,Hoe,$n,Bre,Uf,Zoe,Yoe,Xoe,Koe,eVe,tVe,nVe,oVe,Joe,FC,Vre,dm,Qoe,Ure,Dc,Bf,Cn,LVe,jre,Q9,NVe,VVe,UVe,GVe,ose,sse=Vi(()=>{IPe=Object.create,Hre=Object.defineProperty,LPe=Object.getOwnPropertyDescriptor,zPe=Object.getOwnPropertyNames,RPe=Object.getPrototypeOf,Zre=Object.prototype.hasOwnProperty,ck=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),BPe=(e,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(var a=zPe(t),n=0,o=a.length,s;nt[l]).bind(null,s),enumerable:!(i=LPe(t,s))||i.enumerable});return e},qPe=(e,t,r)=>(r=e==null?{}:IPe(RPe(e)),BPe(t||!e||!e.__esModule||!Zre.call(e,"default")?Hre(r,"default",{value:e,enumerable:!0}):r,e));Be.prototype={clone(){return new Be(this.x,this.y)},add(e){return this.clone()._add(e)},sub(e){return this.clone()._sub(e)},multByPoint(e){return this.clone()._multByPoint(e)},divByPoint(e){return this.clone()._divByPoint(e)},mult(e){return this.clone()._mult(e)},div(e){return this.clone()._div(e)},rotate(e){return this.clone()._rotate(e)},rotateAround(e,t){return this.clone()._rotateAround(e,t)},matMult(e){return this.clone()._matMult(e)},unit(){return this.clone()._unit()},perp(){return this.clone()._perp()},round(){return this.clone()._round()},mag(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals(e){return this.x===e.x&&this.y===e.y},dist(e){return Math.sqrt(this.distSqr(e))},distSqr(e){let t=e.x-this.x,r=e.y-this.y;return t*t+r*r},angle(){return Math.atan2(this.y,this.x)},angleTo(e){return Math.atan2(this.y-e.y,this.x-e.x)},angleWith(e){return this.angleWithSep(e.x,e.y)},angleWithSep(e,t){return Math.atan2(this.x*t-this.y*e,this.x*e+this.y*t)},_matMult(e){let t=e[0]*this.x+e[1]*this.y,r=e[2]*this.x+e[3]*this.y;return this.x=t,this.y=r,this},_add(e){return this.x+=e.x,this.y+=e.y,this},_sub(e){return this.x-=e.x,this.y-=e.y,this},_mult(e){return this.x*=e,this.y*=e,this},_div(e){return this.x/=e,this.y/=e,this},_multByPoint(e){return this.x*=e.x,this.y*=e.y,this},_divByPoint(e){return this.x/=e.x,this.y/=e.y,this},_unit(){return this._div(this.mag()),this},_perp(){let e=this.y;return this.y=this.x,this.x=-e,this},_rotate(e){let t=Math.cos(e),r=Math.sin(e),i=t*this.x-r*this.y,a=r*this.x+t*this.y;return this.x=i,this.y=a,this},_rotateAround(e,t){let r=Math.cos(e),i=Math.sin(e),a=t.x+r*(this.x-t.x)-i*(this.y-t.y),n=t.y+i*(this.x-t.x)+r*(this.y-t.y);return this.x=a,this.y=n,this},_round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},constructor:Be},Be.convert=function(e){if(e instanceof Be)return e;if(Array.isArray(e))return new Be(+e[0],+e[1]);if(e.x!==void 0&&e.y!==void 0)return new Be(+e.x,+e.y);throw Error("Expected [x, y] or {x, y} point format")};Tn=typeof Float32Array<"u"?Float32Array:Array;H4=UPe;Iu=GPe;Cc=Y4,s2=$l;(function(){var e=Qre();return function(t,r,i,a,n,o){var s,l;for(r||(r=3),i||(i=0),l=a?Math.min(a*r+i,t.length):t.length,s=i;s.999999?(i[0]=0,i[1]=0,i[2]=0,i[3]=1,i):(Yo(e,a,n),i[0]=e[0],i[1]=e[1],i[2]=e[2],i[3]=1+o,nte(i,i))}})(),(function(){var e=ate(),t=ate();return function(r,i,a,n,o,s){return zy(e,i,o,s),zy(t,a,n,s),zy(r,e,t,2*s*(1-s)),r}})(),(function(){var e=fk();return function(t,r,i,a){return e[0]=i[0],e[3]=i[1],e[6]=i[2],e[1]=a[0],e[4]=a[1],e[7]=a[2],e[2]=-r[0],e[5]=-r[1],e[8]=-r[2],nte(t,WPe(t,e))}})();lie=XPe;(function(){var e=J4();return function(t,r,i,a,n,o){var s,l;for(r||(r=2),i||(i=0),l=a?Math.min(a*r+i,t.length):t.length,s=i;sKt(null,null,function*(){let r=new Blob([new Uint8Array(e)],{type:"image/png"});try{return createImageBitmap(r,t)}catch(i){throw Error(`Could not load image because of ${Hn(i).message}. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported.`)}}),yie=e=>new Promise((t,r)=>{let i=new Image;i.onload=()=>{t(i),URL.revokeObjectURL(i.src),i.onload=null,window.requestAnimationFrame(()=>i.src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=")},i.onerror=()=>r(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."));let a=new Blob([new Uint8Array(e)],{type:"image/png"});i.src=URL.createObjectURL(a)});Lu=85.051129,bie={touchstart:!0,touchmove:!0,touchmoveWindow:!0,touchend:!0,touchcancel:!0},wie={dblclick:!0,click:!0,mouseover:!0,mouseout:!0,mousedown:!0,mousemove:!0,mousemoveWindow:!0,mouseup:!0,mouseupWindow:!0,contextmenu:!0,wheel:!0};lte="AbortError",Dm=class extends Error{constructor(e=lte){super(e instanceof Error?e.message:e),this.name=lte,e instanceof Error&&e.stack&&(this.stack=e.stack)}};_s={MAX_PARALLEL_IMAGE_REQUESTS:16,MAX_PARALLEL_IMAGE_REQUESTS_PER_FRAME:8,MAX_TILE_CACHE_ZOOM_LEVELS:5,REGISTERED_PROTOCOLS:{},WORKER_URL:""};D4="global-dispatcher",pm=class extends Error{constructor(e,t,r,i){super(`AJAXError: ${t} (${e}): ${r}`),this.status=e,this.statusText=t,this.url=r,this.body=i}};rIe=e=>{var t;return e.startsWith("file:")||((t=aw())==null?void 0:t.startsWith("file:"))&&!/^\w+:/.test(e)};f2=function(e,t){return Kt(this,null,function*(){var r,i;if(e.url.includes("://")&&!/^https?:|^file:/.test(e.url)){let a=Tk(e.url);if(a){let n=yield a(e,t);return!n.data&&e.type==="arrayBuffer"?tr(n,{data:new ArrayBuffer(0)}):n}if(Vd(self)&&((r=self.worker)!=null&&r.actor))return self.worker.actor.sendAsync({type:"GR",data:e,targetMapId:D4},t)}if(!rIe(e.url)){if(fetch&&Request&&AbortController&&Object.hasOwn(Request.prototype,"signal"))return iIe(e,t);if(Vd(self)&&((i=self.worker)!=null&&i.actor))return self.worker.actor.sendAsync({type:"GR",data:e,mustQueue:!0,targetMapId:D4},t)}return aIe(e,t)})},d2=(e,t)=>f2(tr(e,{type:"json"}),t),Mk=(e,t)=>f2(tr(e,{type:"arrayBuffer"}),t);Eie=e=>{let t=window.document.createElement("video");return t.muted=!0,new Promise(r=>{t.onloadstart=()=>{r(t)};for(let i of e){let a=window.document.createElement("source");Dk(i)||(t.crossOrigin="Anonymous"),a.src=i,t.appendChild(a)}})};xs=class{constructor(e,t={}){tr(this,t),this.type=e}},sr=class extends xs{constructor(e,t={}){super("error",tr({error:e},t))}},Xa=class{on(e,t){return this._listeners||(this._listeners={}),ute(e,t,this._listeners),{unsubscribe:()=>{this.off(e,t)}}}off(e,t){return R9(e,t,this._listeners),R9(e,t,this._oneTimeListeners),this}once(e,t){return t?(this._oneTimeListeners||(this._oneTimeListeners={}),ute(e,t,this._oneTimeListeners),this):new Promise(r=>this.once(e,r))}fire(e,t){var a,n,o,s,l,u;let r=typeof e=="string"?new xs(e,t||{}):e,i=r.type;if(this.listens(i)){r.target=this;let c=(o=(n=(a=this._listeners)==null?void 0:a[i])==null?void 0:n.slice())!=null?o:[];for(let d of c)d.call(this,r);let h=(u=(l=(s=this._oneTimeListeners)==null?void 0:s[i])==null?void 0:l.slice())!=null?u:[];for(let d of h)R9(i,d,this._oneTimeListeners),d.call(this,r);let f=this._eventedParent;f&&(tr(r,typeof this._eventedParentData=="function"?this._eventedParentData():this._eventedParentData),f.fire(r))}else r instanceof sr&&console.error(r.error);return this}listens(e){var t,r,i,a,n;return!!((r=(t=this._listeners)==null?void 0:t[e])!=null&&r.length||(a=(i=this._oneTimeListeners)==null?void 0:i[e])!=null&&a.length||(n=this._eventedParent)!=null&&n.listens(e))}setEventedParent(e,t){return this._eventedParent=e,this._eventedParentData=t,this}},kie={$version:8,$root:{version:{required:!0,type:"enum",values:[8]},name:{type:"string"},metadata:{type:"*"},center:{type:"array",value:"number",length:2},centerAltitude:{type:"number"},zoom:{type:"number"},bearing:{type:"number",default:0,period:360,units:"degrees"},pitch:{type:"number",default:0,units:"degrees"},roll:{type:"number",default:0,units:"degrees"},state:{type:"state",default:{}},light:{type:"light"},sky:{type:"sky"},projection:{type:"projection"},terrain:{type:"terrain"},sources:{required:!0,type:"sources"},sprite:{type:"sprite"},glyphs:{type:"string"},"font-faces":{type:"fontFaces"},transition:{type:"transition"},layers:{required:!0,type:"array",value:"layer"}},sources:{"*":{type:"source"}},source:["source_vector","source_raster","source_raster_dem","source_geojson","source_video","source_image"],source_vector:{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},encoding:{type:"enum",values:{mvt:{},mlt:{}},default:"mvt"},"*":{type:"*"}},source_raster:{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:"*"}},source_raster_dem:{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:{},custom:{}},default:"mapbox"},redFactor:{type:"number",default:1},blueFactor:{type:"number",default:1},greenFactor:{type:"number",default:1},baseShift:{type:"number",default:0},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_geojson:{type:{required:!0,type:"enum",values:{geojson:{}}},data:{required:!0,type:"*"},maxzoom:{type:"number",default:18},attribution:{type:"string"},buffer:{type:"number",default:128,maximum:512,minimum:0},filter:{type:"filter"},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"}},source_video:{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"}}},source_image:{type:{required:!0,type:"enum",values:{image:{}}},url:{type:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},layer:{id:{type:"string",required:!0},type:{type:"enum",values:{fill:{},line:{},symbol:{},circle:{},heatmap:{},"fill-extrusion":{},raster:{},hillshade:{},"color-relief":{},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"}},layout:["layout_fill","layout_line","layout_circle","layout_heatmap","layout_fill-extrusion","layout_symbol","layout_raster","layout_hillshade","layout_color-relief","layout_background"],layout_background:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible",expression:{interpolated:!1,parameters:["global-state"]},"property-type":"data-constant"}},layout_fill:{"fill-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible",expression:{interpolated:!1,parameters:["global-state"]},"property-type":"data-constant"}},layout_circle:{"circle-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible",expression:{interpolated:!1,parameters:["global-state"]},"property-type":"data-constant"}},layout_heatmap:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible",expression:{interpolated:!1,parameters:["global-state"]},"property-type":"data-constant"}},"layout_fill-extrusion":{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible",expression:{interpolated:!1,parameters:["global-state"]},"property-type":"data-constant"},"fill-extrusion-rounded-corner-distance":{type:"number",default:0,minimum:0,units:"meters","property-type":"constant"}},layout_line:{"line-cap":{type:"enum",values:{butt:{},round:{},square:{}},default:"butt",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"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","feature"]},"property-type":"data-driven"},"line-round-limit":{type:"number",default:1.05,requires:[{"line-join":"round"}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible",expression:{interpolated:!1,parameters:["global-state"]},"property-type":"data-constant"}},layout_symbol:{"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",{"!":"icon-overlap"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-overlap":{type:"enum",values:{never:{},always:{},cooperative:{}},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","feature"]},"property-type":"data-driven"},"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:"padding",default:[2],units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"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:{},"viewport-glyph":{},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-variable-anchor-offset":{type:"variableAnchorOffsetCollection",requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"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",{"!":"text-overlap"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-overlap":{type:"enum",values:{never:{},always:{},cooperative:{}},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"},"symbol-height-offset":{type:"number",default:0,units:"meters",requires:[{"symbol-placement":["point"]}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"symbol-height-anchor":{type:"enum",values:{ground:{},absolute:{}},default:"ground",requires:["symbol-height-offset"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible",expression:{interpolated:!1,parameters:["global-state"]},"property-type":"data-constant"}},layout_raster:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible",expression:{interpolated:!1,parameters:["global-state"]},"property-type":"data-constant"}},layout_hillshade:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible",expression:{interpolated:!1,parameters:["global-state"]},"property-type":"data-constant"}},"layout_color-relief":{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible",expression:{interpolated:!1,parameters:["global-state"]},"property-type":"data-constant"}},filter:{type:"boolean",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},filter_operator:{type:"enum",values:{"==":{},"!=":{},">":{},">=":{},"<":{},"<=":{},in:{},"!in":{},all:{},any:{},none:{},has:{},"!has":{}}},geometry_type:{type:"enum",values:{Point:{},LineString:{},Polygon:{}}},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:{type:"array",minimum:0,maximum:24,value:["number","color"],length:2},expression:{type:"array",value:"expression_name",minimum:1},light:{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}},sky:{"sky-color":{type:"color","property-type":"data-constant",default:"#88C6FC",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"horizon-color":{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"fog-color":{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"fog-ground-blend":{type:"number","property-type":"data-constant",default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"horizon-fog-blend":{type:"number","property-type":"data-constant",default:.8,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"sky-horizon-blend":{type:"number","property-type":"data-constant",default:.8,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"atmosphere-blend":{type:"number","property-type":"data-constant",default:.8,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0}},terrain:{source:{type:"string",required:!0},exaggeration:{type:"number",minimum:0,default:1}},projection:{type:{type:"projectionDefinition",default:"mercator","property-type":"data-constant",transition:!1,expression:{interpolated:!0,parameters:["zoom"]}}},paint:["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_symbol","paint_raster","paint_hillshade","paint_color-relief","paint_background"],paint_fill:{"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-layer-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","global-state"]},"property-type":"data-constant"},"fill-color":{type:"color",default:"#000000",transition:!0,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"}},"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,units:"meters",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{type:"number",default: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:{"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-layer-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","global-state"]},"property-type":"data-constant"},"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","feature"]},"property-type":"cross-faded-data-driven"},"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"}},paint_circle:{"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"}},paint_heatmap:{"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"}},paint_symbol:{"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"}},paint_raster:{"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"},resampling:{type:"enum",values:{linear:{},nearest:{}},default:"linear",expression:{interpolated:!1,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"}},paint_hillshade:{"hillshade-illumination-direction":{type:"numberArray",default:335,minimum:0,maximum:359,transition:!1,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-illumination-altitude":{type:"numberArray",default:45,minimum:0,maximum:90,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:"colorArray",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-highlight-color":{type:"colorArray",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"},"hillshade-method":{type:"enum",values:{standard:{},basic:{},combined:{},igor:{},multidirectional:{}},default:"standard",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},resampling:{type:"enum",values:{linear:{},nearest:{}},default:"linear",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},"paint_color-relief":{"color-relief-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"color-relief-color":{type:"color",transition:!1,expression:{interpolated:!0,parameters:["elevation"]},"property-type":"color-ramp"},resampling:{type:"enum",values:{linear:{},nearest:{}},default:"linear",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_background:{"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"}},transition:{duration:{type:"number",default:300,minimum:0,units:"milliseconds"},delay:{type:"number",default:0,minimum:0,units:"milliseconds"}},"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:{"*":{type:"string"}},interpolation:{type:"array",value:"interpolation_name",minimum:1},interpolation_name:{type:"enum",values:{linear:{syntax:{overloads:[{parameters:[],"output-type":"interpolation"}],parameters:[]}},exponential:{syntax:{overloads:[{parameters:["base"],"output-type":"interpolation"}],parameters:[{name:"base",type:"number literal"}]}},"cubic-bezier":{syntax:{overloads:[{parameters:["x1","y1","x2","y2"],"output-type":"interpolation"}],parameters:[{name:"x1",type:"number literal"},{name:"y1",type:"number literal"},{name:"x2",type:"number literal"},{name:"y2",type:"number literal"}]}}}}},Xe=kie,Cie=["type","source","source-layer","minzoom","maxzoom","filter","layout"],xt=class{constructor(e,t,r,i,a="error"){this.message=(e?`${e}: `:"")+r,i&&(this.identifier=i),this.severity=a,t!=null&&t.__line__&&(this.line=t.__line__)}},p2={kind:"null"},Vt={kind:"number"},Er={kind:"string"},Xr={kind:"boolean"},Cu={kind:"color"},nw={kind:"projectionDefinition"},Bd={kind:"object"},Ir={kind:"value"},nIe={kind:"error"},ow={kind:"collator"},m2={kind:"formatted"},sw={kind:"padding"},Gy={kind:"colorArray"},lw={kind:"numberArray"},v2={kind:"resolvedImage"},uw={kind:"variableAnchorOffsetCollection"};oIe=[p2,Vt,Er,Xr,Cu,nw,m2,Bd,ko(Ir),sw,lw,Gy,v2,uw];Fie=.96422,Pie=.82521,Iie=4/29,eE=6/29,Lie=3*eE*eE,sIe=Math.PI/180,lIe=180/Math.PI;fIe=Object.hasOwn||function(e,t){return Object.prototype.hasOwnProperty.call(e,t)};pIe={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]};Dr=(jn=class{constructor(t,r,i,a=1,n=!0){this.r=t,this.g=r,this.b=i,this.a=a,n||(this.r*=a,this.g*=a,this.b*=a,a||this.overwriteGetter("rgb",[t,r,i,a]))}static parse(t){if(t instanceof jn)return t;if(typeof t!="string")return;let r=dIe(t);if(r)return new jn(...r,!1)}get rgb(){let{r:t,g:r,b:i,a}=this,n=a||1/0;return this.overwriteGetter("rgb",[t/n,r/n,i/n,a])}get hcl(){return this.overwriteGetter("hcl",uIe(this.rgb))}get lab(){return this.overwriteGetter("lab",Rie(this.rgb))}overwriteGetter(t,r){return Object.defineProperty(this,t,{value:r}),r}toString(){let[t,r,i,a]=this.rgb;return`rgba(${[t,r,i].map(n=>Math.round(n*255)).join(",")},${a})`}static interpolate(t,r,i,a="rgb"){switch(a){case"rgb":{let[n,o,s,l]=mm(t.rgb,r.rgb,i);return new jn(n,o,s,l,!1)}case"hcl":{let[n,o,s,l]=t.hcl,[u,c,h,f]=r.hcl,d,p;if(!isNaN(n)&&!isNaN(u)){let w=u-n;u>n&&w>180?w-=360:u180&&(w+=360),d=n+i*w}else isNaN(n)?isNaN(u)?d=NaN:(d=u,(s===1||s===0)&&(p=c)):(d=n,(h===1||h===0)&&(p=o));let[m,g,y,x]=cIe([d,p!=null?p:qf(o,c,i),qf(s,h,i),qf(l,f,i)]);return new jn(m,g,y,x,!1)}case"lab":{let[n,o,s,l]=Bie(mm(t.lab,r.lab,i));return new jn(n,o,s,l,!1)}}}},jn.black=new jn(0,0,0,1),jn.white=new jn(1,1,1,1),jn.transparent=new jn(0,0,0,0),jn.red=new jn(1,0,0,1),jn),vIe=["bottom","center","top"],tE=class{constructor(e,t,r,i,a,n){this.text=e,this.image=t,this.scale=r,this.fontStack=i,this.textColor=a,this.verticalAlign=n}},vh=class x4{constructor(t){this.sections=t}static fromString(t){return new x4([new tE(t,null,null,null,null,null)])}isEmpty(){return this.sections.length===0||!this.sections.some(t=>t.text.length!==0||t.image&&t.image.name.length!==0)}static factory(t){return t instanceof x4?t:x4.fromString(t)}toString(){return this.sections.length===0?"":this.sections.map(t=>t.text).join("")}},Fc=class Ey{constructor(t){this.values=t.slice()}static parse(t){if(t instanceof Ey)return t;if(typeof t=="number")return new Ey([t,t,t,t]);if(Array.isArray(t)&&!(t.length<1||t.length>4)){for(let r of t)if(typeof r!="number")return;switch(t.length){case 1:t=[t[0],t[0],t[0],t[0]];break;case 2:t=[t[0],t[1],t[0],t[1]];break;case 3:t=[t[0],t[1],t[2],t[1]]}return new Ey(t)}}toString(){return JSON.stringify(this.values)}static interpolate(t,r,i){return new Ey(mm(t.values,r.values,i))}},Pc=class ky{constructor(t){this.values=t.slice()}static parse(t){if(t instanceof ky)return t;if(typeof t=="number")return new ky([t]);if(Array.isArray(t)){for(let r of t)if(typeof r!="number")return;return new ky(t)}}toString(){return JSON.stringify(this.values)}static interpolate(t,r,i){return new ky(mm(t.values,r.values,i))}},Vl=class Cy{constructor(t){this.values=t.slice()}static parse(t){if(t instanceof Cy)return t;if(typeof t=="string"){let i=Dr.parse(t);return i?new Cy([i]):void 0}if(!Array.isArray(t))return;let r=[];for(let i of t){if(typeof i!="string")return;let a=Dr.parse(i);if(!a)return;r.push(a)}return new Cy(r)}toString(){return JSON.stringify(this.values)}static interpolate(t,r,i,a="rgb"){let n=[];if(t.values.length!=r.values.length)throw Error(`colorArray: Arrays have mismatched length (${t.values.length} vs. ${r.values.length}), cannot interpolate.`);for(let o=0;o=s)return r.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',u);let h=r.parse(l,c,n);if(!h)return null;n||(n=h.type),a.push([s,h])}return new Uie(n,i,a,r.key)}evaluate(t){let r=this.labels,i=this.outputs;if(r.length===1)return i[0].evaluate(t);let a=this.input.evaluate(t);if(a<=r[0])return i[0].evaluate(t);let n=r.length;return a>=r[n-1]?i[n-1].evaluate(t):i[cw(r,a,this.key)].evaluate(t)}eachChild(t){t(this.input);for(let r of this.outputs)t(r)}outputDefined(){return this.outputs.every(t=>t.outputDefined())}};Ul=class rE{constructor(t,r,i,a,n,o){this.type=t,this.operator=r,this.interpolation=i,this.input=a,this.key=o,this.labels=[],this.outputs=[];for(let[s,l]of n)this.labels.push(s),this.outputs.push(l)}static interpolationFactor(t,r,i,a){let n=0;if(t.name==="exponential")n=V9(r,t.base,i,a);else if(t.name==="linear")n=V9(r,1,i,a);else if(t.name==="cubic-bezier"){let o=t.controlPoints;n=_Ie(o[0],o[1],o[2],o[3])(V9(r,1,i,a))}return n}static parse(t,r){let[i,a,n,...o]=t;if(!Array.isArray(a)||a.length===0)return r.error("Expected an interpolation type expression.",1);if(a[0]==="linear")a={name:"linear"};else if(a[0]==="exponential"){let u=a[1];if(typeof u!="number")return r.error("Exponential interpolation requires a numeric base.",1,1);a={name:"exponential",base:u}}else if(a[0]==="cubic-bezier"){let u=a.slice(1);if(u.length!==4||u.some(c=>typeof c!="number"||c<0||c>1))return r.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);a={name:"cubic-bezier",controlPoints:u}}else return r.error(`Unknown interpolation type ${String(a[0])}`,1,0);if(t.length-1<4)return r.error(`Expected at least 4 arguments, but found only ${t.length-1}.`);if((t.length-1)%2!=0)return r.error("Expected an even number of arguments.");if(n=r.parse(n,2,Vt),!n)return null;let s=[],l=null;(i==="interpolate-hcl"||i==="interpolate-lab")&&r.expectedType!=Gy?l=Cu:r.expectedType&&r.expectedType.kind!=="value"&&(l=r.expectedType);for(let u=0;u=c)return r.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',f);let p=r.parse(h,d,l);if(!p)return null;l||(l=p.type),s.push([c,p])}return!Ff(l,Vt)&&!Ff(l,nw)&&!Ff(l,Cu)&&!Ff(l,sw)&&!Ff(l,lw)&&!Ff(l,Gy)&&!Ff(l,uw)&&!Ff(l,ko(Vt))?r.error(`Type ${Sa(l)} is not interpolatable.`):new rE(l,i,a,n,s,r.key)}evaluate(t){let r=this.labels,i=this.outputs;if(r.length===1)return i[0].evaluate(t);let a=this.input.evaluate(t);if(a<=r[0])return i[0].evaluate(t);let n=r.length;if(a>=r[n-1])return i[n-1].evaluate(t);let o=cw(r,a,this.key),s=r[o],l=r[o+1],u=rE.interpolationFactor(this.interpolation,a,s,l),c=i[o].evaluate(t),h=i[o+1].evaluate(t);switch(this.operator){case"interpolate":switch(this.type.kind){case"number":return qf(c,h,u);case"color":return Dr.interpolate(c,h,u);case"padding":return Fc.interpolate(c,h,u);case"colorArray":return Vl.interpolate(c,h,u);case"numberArray":return Pc.interpolate(c,h,u);case"variableAnchorOffsetCollection":return Ec.interpolate(c,h,u,this.key);case"array":return mm(c,h,u);case"projectionDefinition":return wh.interpolate(c,h,u)}case"interpolate-hcl":switch(this.type.kind){case"color":return Dr.interpolate(c,h,u,"hcl");case"colorArray":return Vl.interpolate(c,h,u,"hcl")}case"interpolate-lab":switch(this.type.kind){case"color":return Dr.interpolate(c,h,u,"lab");case"colorArray":return Vl.interpolate(c,h,u,"lab")}}}eachChild(t){t(this.input);for(let r of this.outputs)t(r)}outputDefined(){return this.outputs.every(t=>t.outputDefined())}};pa={color:Dr.interpolate,number:qf,padding:Fc.interpolate,numberArray:Pc.interpolate,colorArray:Vl.interpolate,variableAnchorOffsetCollection:Ec.interpolate,array:mm},Gie=class jie{constructor(t){this.type=m2,this.sections=t}static parse(t,r){if(t.length<2)return r.error("Expected at least one argument.");let i=t[1];if(!Array.isArray(i)&&typeof i=="object")return r.error("First argument must be an image or text section.");let a=[],n=!1;for(let o=1;o<=t.length-1;++o){let s=t[o];if(n&&typeof s=="object"&&!Array.isArray(s)){n=!1;let l=null;if(s["font-scale"]&&(l=r.parse(s["font-scale"],1,Vt),!l))return null;let u=null;if(s["text-font"]&&(u=r.parse(s["text-font"],1,ko(Er)),!u))return null;let c=null;if(s["text-color"]&&(c=r.parse(s["text-color"],1,Cu),!c))return null;let h=null;if(s["vertical-align"]){if(typeof s["vertical-align"]=="string"&&!vIe.includes(s["vertical-align"]))return r.error(`'vertical-align' must be one of: 'bottom', 'center', 'top' but found '${s["vertical-align"]}' instead.`);if(h=r.parse(s["vertical-align"],1,Er),!h)return null}let f=a[a.length-1];f.scale=l,f.font=u,f.textColor=c,f.verticalAlign=h}else{let l=r.parse(t[o],1,Ir);if(!l)return null;let u=l.type.kind;if(u!=="string"&&u!=="value"&&u!=="null"&&u!=="resolvedImage")return r.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");n=!0,a.push({content:l,scale:null,font:null,textColor:null,verticalAlign:null})}}return new jie(a)}evaluate(t){return new vh(this.sections.map(r=>{let i=r.content.evaluate(t);return Za(i)===v2?new tE("",i,null,null,null,r.verticalAlign?r.verticalAlign.evaluate(t):null):new tE(By(i),null,r.scale?r.scale.evaluate(t):null,r.font?r.font.evaluate(t).join(","):null,r.textColor?r.textColor.evaluate(t):null,r.verticalAlign?r.verticalAlign.evaluate(t):null)}))}eachChild(t){for(let r of this.sections)t(r.content),r.scale&&t(r.scale),r.font&&t(r.font),r.textColor&&t(r.textColor),r.verticalAlign&&t(r.verticalAlign)}outputDefined(){return!1}};o4={string:Er,number:Vt,boolean:Xr,object:Bd},dh=class Hie{constructor(t,r,i){this.type=t,this.args=r,this.key=i}static parse(t,r){if(t.length<2)return r.error("Expected at least one argument.");let i=1,a,n=t[0];if(n==="array"){let s;if(t.length>2){let u=t[1];if(typeof u!="string"||!(u in o4)||u==="object")return r.error('The item type argument of "array" must be one of string, number, boolean',1);s=o4[u],i++}else s=Ir;let l;if(t.length>3){if(t[2]!==null&&(typeof t[2]!="number"||t[2]<0||t[2]!==Math.floor(t[2])))return r.error('The length argument to "array" must be a positive integer literal',2);l=t[2],i++}a=ko(s,l)}else{if(!o4[n])throw Error(`Types doesn't contain name = ${n}`);a=o4[n]}let o=[];for(;it.outputDefined())}},fte={"to-boolean":Xr,"to-color":Cu,"to-number":Vt,"to-string":Er},nm=class Zie{constructor(t,r,i){this.type=t,this.args=r,this.key=i}static parse(t,r){if(t.length<2)return r.error("Expected at least one argument.");let i=t[0];if(!fte[i])throw Error(`Can't parse ${i} as it is not part of the known types`);if((i==="to-boolean"||i==="to-string")&&t.length!==2)return r.error("Expected one argument.");let a=fte[i],n=[];for(let o=1;o4?`Invalid rgba value ${JSON.stringify(r)}: expected an array containing either three or four numeric values.`:Oie(r[0],r[1],r[2],r[3]),!i))return new Dr(r[0]/255,r[1]/255,r[2]/255,r[3])}throw new ba(i||`Could not parse color from value '${typeof r=="string"?r:JSON.stringify(r)}'`,this.key)}case"padding":{let r;for(let i of this.args){r=i.evaluate(t);let a=Fc.parse(r);if(a)return a}throw new ba(`Could not parse padding from value '${typeof r=="string"?r:JSON.stringify(r)}'`,this.key)}case"numberArray":{let r;for(let i of this.args){r=i.evaluate(t);let a=Pc.parse(r);if(a)return a}throw new ba(`Could not parse numberArray from value '${typeof r=="string"?r:JSON.stringify(r)}'`,this.key)}case"colorArray":{let r;for(let i of this.args){r=i.evaluate(t);let a=Vl.parse(r);if(a)return a}throw new ba(`Could not parse colorArray from value '${typeof r=="string"?r:JSON.stringify(r)}'`,this.key)}case"variableAnchorOffsetCollection":{let r;for(let i of this.args){r=i.evaluate(t);let a=Ec.parse(r);if(a)return a}throw new ba(`Could not parse variableAnchorOffsetCollection from value '${typeof r=="string"?r:JSON.stringify(r)}'`,this.key)}case"number":{let r=null;for(let i of this.args){if(r=i.evaluate(t),r===null)return 0;let a=Number(r);if(!isNaN(a))return a}throw new ba(`Could not convert ${JSON.stringify(r)} to number.`,this.key)}case"formatted":return vh.fromString(By(this.args[0].evaluate(t)));case"resolvedImage":return kc.fromString(By(this.args[0].evaluate(t)));case"projectionDefinition":{let r=this.args[0].evaluate(t);if(wh.parse(r))return r;throw new ba(`Could not parse projectionDefinition from value '${typeof r=="string"?r:JSON.stringify(r)}'`,this.key)}default:return By(this.args[0].evaluate(t))}}eachChild(t){this.args.forEach(t)}outputDefined(){return this.args.every(t=>t.outputDefined())}},Yie=class Wie{constructor(t,r){this.type=r.type,this.bindings=[].concat(t),this.result=r}evaluate(t){return this.result.evaluate(t)}eachChild(t){for(let r of this.bindings)t(r[1]);t(this.result)}static parse(t,r){if(t.length<4)return r.error(`Expected at least 3 arguments, but found ${t.length-1} instead.`);let i=[];for(let n=1;n=i.length)throw new ba(`Array index out of bounds: ${r} > ${i.length-1}.`,this.key);if(r!==Math.floor(r))throw new ba(`Array index must be an integer, but found ${r} instead.`,this.key);return i[r]}eachChild(t){t(this.index),t(this.input)}outputDefined(){return!1}},TIe=class Qie{constructor(t,r,i){this.needle=t,this.haystack=r,this.key=i,this.type=Xr}static parse(t,r){if(t.length!==3)return r.error(`Expected 2 arguments, but found ${t.length-1} instead.`);let i=r.parse(t[1],1,Ir),a=r.parse(t[2],2,Ir);return!i||!a?null:Sk(i.type,[Xr,Er,Vt,p2,Ir])?new Qie(i,a,r.key):r.error(`Expected first argument to be of type boolean, string, number or null, but found ${Sa(i.type)} instead`)}evaluate(t){let r=this.needle.evaluate(t),i=this.haystack.evaluate(t);if(!i)return!1;if(!qd(r,["boolean","string","number","null"]))throw new ba(`Expected first argument to be of type boolean, string, number or null, but found ${Sa(Za(r))} instead.`,this.key);if(!qd(i,["string","array"]))throw new ba(`Expected second argument to be of type array or string, but found ${Sa(Za(i))} instead.`,this.key);return i.indexOf(r)>=0}eachChild(t){t(this.needle),t(this.haystack)}outputDefined(){return!0}},MIe=class iE{constructor(t,r,i,a){this.needle=t,this.haystack=r,this.key=i,this.fromIndex=a,this.type=Vt}static parse(t,r){if(t.length<=2||t.length>=5)return r.error(`Expected 2 or 3 arguments, but found ${t.length-1} instead.`);let i=r.parse(t[1],1,Ir),a=r.parse(t[2],2,Ir);if(!i||!a)return null;if(!Sk(i.type,[Xr,Er,Vt,p2,Ir]))return r.error(`Expected first argument to be of type boolean, string, number or null, but found ${Sa(i.type)} instead`);if(t.length===4){let n=r.parse(t[3],3,Vt);return n?new iE(i,a,r.key,n):null}return new iE(i,a,r.key)}evaluate(t){let r=this.needle.evaluate(t),i=this.haystack.evaluate(t);if(!qd(r,["boolean","string","number","null"]))throw new ba(`Expected first argument to be of type boolean, string, number or null, but found ${Sa(Za(r))} instead.`,this.key);let a;if(this.fromIndex&&(a=this.fromIndex.evaluate(t)),qd(i,["string"])){let n=i.indexOf(r,a);return n===-1?-1:[...i.slice(0,n)].length}if(qd(i,["array"]))return i.indexOf(r,a);throw new ba(`Expected second argument to be of type array or string, but found ${Sa(Za(i))} instead.`,this.key)}eachChild(t){t(this.needle),t(this.haystack),this.fromIndex&&t(this.fromIndex)}outputDefined(){return!1}},DIe=class eae{constructor(t,r,i,a,n,o){this.inputType=t,this.type=r,this.input=i,this.cases=a,this.outputs=n,this.otherwise=o}static parse(t,r){if(t.length<5)return r.error(`Expected at least 4 arguments, but found only ${t.length-1}.`);if(t.length%2!=1)return r.error("Expected an even number of arguments.");let i,a;r.expectedType&&r.expectedType.kind!=="value"&&(a=r.expectedType);let n={},o=[];for(let u=2;u2**53-1)return f.error(`Branch labels must be integers no larger than ${2**53-1}.`);if(typeof p=="number"&&Math.floor(p)!==p)return f.error("Numeric branch labels must be integer values.");if(!i)i=Za(p);else if(f.checkSubtype(i,Za(p)))return null;if(n[String(p)]!==void 0)return f.error("Branch labels must be unique.");n[String(p)]=o.length}let d=r.parse(h,u,a);if(!d)return null;a||(a=d.type),o.push(d)}let s=r.parse(t[1],1,Ir);if(!s)return null;let l=r.parse(t[t.length-1],t.length-1,a);return!l||s.type.kind!=="value"&&r.concat(1).checkSubtype(i,s.type)?null:new eae(i,a,s,n,o,l)}evaluate(t){let r=this.input.evaluate(t);return(Za(r)===this.inputType&&this.outputs[this.cases[r]]||this.otherwise).evaluate(t)}eachChild(t){t(this.input),this.outputs.forEach(t),t(this.otherwise)}outputDefined(){return this.outputs.every(t=>t.outputDefined())&&this.otherwise.outputDefined()}},SIe=class tae{constructor(t,r,i){this.type=t,this.branches=r,this.otherwise=i}static parse(t,r){if(t.length<4)return r.error(`Expected at least 3 arguments, but found only ${t.length-1}.`);if(t.length%2!=0)return r.error("Expected an odd number of arguments.");let i;r.expectedType&&r.expectedType.kind!=="value"&&(i=r.expectedType);let a=[];for(let o=1;or.outputDefined())&&this.otherwise.outputDefined()}},EIe=class aE{constructor(t,r,i,a,n){this.type=t,this.input=r,this.beginIndex=i,this.key=a,this.endIndex=n}static parse(t,r){if(t.length<=2||t.length>=5)return r.error(`Expected 2 or 3 arguments, but found ${t.length-1} instead.`);let i=r.parse(t[1],1,Ir),a=r.parse(t[2],2,Vt);if(!i||!a)return null;if(!Sk(i.type,[ko(Ir),Er,Ir]))return r.error(`Expected first argument to be of type array or string, but found ${Sa(i.type)} instead`);if(t.length===4){let n=r.parse(t[3],3,Vt);return n?new aE(i.type,i,a,r.key,n):null}return new aE(i.type,i,a,r.key)}evaluate(t){let r=this.input.evaluate(t),i=this.beginIndex.evaluate(t),a;if(this.endIndex&&(a=this.endIndex.evaluate(t)),qd(r,["string"]))return[...r].slice(i,a).join("");if(qd(r,["array"]))return r.slice(i,a);throw new ba(`Expected first argument to be of type array or string, but found ${Sa(Za(r))} instead.`,this.key)}eachChild(t){t(this.input),t(this.beginIndex),this.endIndex&&t(this.endIndex)}outputDefined(){return!1}},rae=class nE{constructor(t,r){this.type=t,this.args=r}static parse(t,r){if(t.length<2)return r.error("Expected at least one argument.");let i=null,a=r.expectedType;a&&a.kind!=="value"&&(i=a);let n=[];for(let o of t.slice(1)){let s=r.parse(o,1+n.length,i,void 0,{typeAnnotation:"omit"});if(!s)return null;i||(i=s.type),n.push(s)}if(!i)throw Error("No output type");return a&&n.some(o=>jy(a,o.type))?new nE(Ir,n):new nE(i,n)}evaluate(t){let r=null,i=0,a;for(let n of this.args)if(i++,r=n.evaluate(t),r&&r instanceof kc&&!r.available&&(a||(a=r.name),r=null,i===this.args.length&&(r=a)),r!==null)break;return r}eachChild(t){this.args.forEach(t)}outputDefined(){return this.args.every(t=>t.outputDefined())}};NIe=Sm("==",kIe,iae),VIe=Sm("!=",CIe,zIe),UIe=Sm("<",FIe,RIe),GIe=Sm(">",PIe,BIe),jIe=Sm("<=",IIe,qIe),$Ie=Sm(">=",LIe,OIe),nae=class oae{constructor(t,r,i){this.type=ow,this.locale=i,this.caseSensitive=t,this.diacriticSensitive=r}static parse(t,r){if(t.length!==2)return r.error("Expected one argument.");let i=t[1];if(typeof i!="object"||Array.isArray(i))return r.error("Collator options argument must be an object.");let a=r.parse(i["case-sensitive"]!==void 0&&i["case-sensitive"],1,Xr);if(!a)return null;let n=r.parse(i["diacritic-sensitive"]!==void 0&&i["diacritic-sensitive"],1,Xr);if(!n)return null;let o=null;return i.locale&&(o=r.parse(i.locale,1,Er),!o)?null:new oae(a,n,o)}evaluate(t){return new Ek(this.caseSensitive.evaluate(t),this.diacriticSensitive.evaluate(t),this.locale?this.locale.evaluate(t):null)}eachChild(t){t(this.caseSensitive),t(this.diacriticSensitive),this.locale&&t(this.locale)}outputDefined(){return!1}},HIe=class sae{constructor(t,r,i,a,n,o){this.type=Er,this.number=t,this.locale=r,this.currency=i,this.unit=a,this.minFractionDigits=n,this.maxFractionDigits=o}static parse(t,r){if(t.length!==3)return r.error("Expected two arguments.");let i=r.parse(t[1],1,Vt);if(!i)return null;let a=t[2];if(typeof a!="object"||Array.isArray(a))return r.error("NumberFormat options argument must be an object.");let n=null;if(a.locale&&(n=r.parse(a.locale,1,Er),!n))return null;let o=null;if(a.currency&&(o=r.parse(a.currency,1,Er),!o))return null;let s=null;if(a.unit&&(s=r.parse(a.unit,1,Er),!s))return null;if(o&&s)return r.error("NumberFormat options `currency` and `unit` are mutually exclusive");let l=null;if(a["min-fraction-digits"]&&(l=r.parse(a["min-fraction-digits"],1,Vt),!l))return null;let u=null;return a["max-fraction-digits"]&&(u=r.parse(a["max-fraction-digits"],1,Vt),!u)?null:new sae(i,n,o,s,l,u)}evaluate(t){return new Intl.NumberFormat(this.locale?this.locale.evaluate(t):[],{style:this.currency?"currency":this.unit?"unit":"decimal",currency:this.currency?this.currency.evaluate(t):void 0,unit:this.unit?this.unit.evaluate(t):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(t):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(t):void 0}).format(this.number.evaluate(t))}eachChild(t){t(this.number),this.locale&&t(this.locale),this.currency&&t(this.currency),this.unit&&t(this.unit),this.minFractionDigits&&t(this.minFractionDigits),this.maxFractionDigits&&t(this.maxFractionDigits)}outputDefined(){return!1}},ZIe=class lae{constructor(t){this.type=v2,this.input=t}static parse(t,r){if(t.length!==2)return r.error("Expected two arguments.");let i=r.parse(t[1],1,Er);return i?new lae(i):r.error("No image name provided.")}evaluate(t){let r=this.input.evaluate(t),i=kc.fromString(r);return i&&t.availableImages&&(i.available=t.availableImages.indexOf(r)>-1),i}eachChild(t){t(this.input)}outputDefined(){return!1}},YIe=class uae{constructor(t,r){this.input=t,this.key=r,this.type=Vt}static parse(t,r){if(t.length!==2)return r.error(`Expected 1 argument, but found ${t.length-1} instead.`);let i=r.parse(t[1],1);return i?i.type.kind!=="array"&&i.type.kind!=="string"&&i.type.kind!=="value"?r.error(`Expected argument of type string or array, but found ${Sa(i.type)} instead.`):new uae(i,r.key):null}evaluate(t){let r=this.input.evaluate(t);if(typeof r=="string")return[...r].length;if(Array.isArray(r))return r.length;throw new ba(`Expected value to be of type string or array, but found ${Sa(Za(r))} instead.`,this.key)}eachChild(t){t(this.input)}outputDefined(){return!1}},Sc=8192;Pk=class w4{constructor(t,r){this.type=Xr,this.geojson=t,this.geometries=r}static parse(t,r){if(t.length!==2)return r.error(`'within' expression requires exactly one argument, but found ${t.length-1} instead.`);if(vm(t[1])){let i=t[1];if(i.type==="FeatureCollection"){let a=[];for(let n of i.features){let{type:o,coordinates:s}=n.geometry;o==="Polygon"&&a.push(s),o==="MultiPolygon"&&a.push(...s)}if(a.length)return new w4(i,{type:"MultiPolygon",coordinates:a})}else if(i.type==="Feature"){let a=i.geometry.type;if(a==="Polygon"||a==="MultiPolygon")return new w4(i,i.geometry)}else if(i.type==="Polygon"||i.type==="MultiPolygon")return new w4(i,i)}return r.error("'within' expression requires valid geojson object that contains polygon geometry type.")}evaluate(t){if(t.geometry()!=null&&t.canonicalID()!=null){if(t.geometryType()==="Point")return sLe(t,this.geometries);if(t.geometryType()==="LineString")return lLe(t,this.geometries)}return!1}eachChild(){}outputDefined(){return!0}},dae=class{constructor(e=[],t=(r,i)=>ri)){if(this.data=e,this.length=this.data.length,this.compare=t,this.length>0)for(let r=(this.length>>1)-1;r>=0;r--)this._down(r)}push(e){this.data.push(e),this._up(this.length++)}pop(){if(this.length===0)return;let e=this.data[0],t=this.data.pop();return--this.length>0&&(this.data[0]=t,this._down(0)),e}peek(){return this.data[0]}_up(e){let{data:t,compare:r}=this,i=t[e];for(;e>0;){let a=e-1>>1,n=t[a];if(r(i,n)>=0)break;t[e]=n,e=a}t[e]=i}_down(e){let{data:t,compare:r}=this,i=this.length>>1,a=t[e];for(;e=0)break;t[e]=t[n],e=n}t[e]=a}},gte=Math.PI/180,Ik=class{constructor(e){let t=gte*6378.137*1e3,r=Math.cos(e*gte),i=1/(1-.0066943799901413165*(1-r*r)),a=Math.sqrt(i);this.kx=t*a*r,this.ky=t*a*i*.9933056200098587}distance(e,t){let r=this.wrap(e[0]-t[0])*this.kx,i=(e[1]-t[1])*this.ky;return Math.sqrt(r*r+i*i)}pointOnLine(e,t){let r=1/0,i,a,n,o;for(let s=0;s1?(l=e[s+1][0],u=e[s+1][1]):f>0&&(l+=c/this.kx*f,u+=h/this.ky*f)),c=this.wrap(t[0]-l)*this.kx,h=(t[1]-u)*this.ky;let d=c*c+h*h;d180;)e-=360;return e}};Rk=class A4{constructor(t,r){this.type=Vt,this.geojson=t,this.geometries=r}static parse(t,r){if(t.length!==2)return r.error(`'distance' expression requires exactly one argument, but found ${t.length-1} instead.`);if(vm(t[1])){let i=t[1];if(i.type==="FeatureCollection")return new A4(i,i.features.map(a=>U9(a.geometry)).flat());if(i.type==="Feature")return new A4(i,U9(i.geometry));if("type"in i&&"coordinates"in i)return new A4(i,U9(i))}return r.error("'distance' expression requires valid geojson object that contains polygon geometry type.")}evaluate(t){if(t.geometry()!=null&&t.canonicalID()!=null){if(t.geometryType()==="Point")return pLe(t,this.geometries);if(t.geometryType()==="LineString")return mLe(t,this.geometries);if(t.geometryType()==="Polygon")return vLe(t,this.geometries)}return NaN}eachChild(){}outputDefined(){return!0}},gLe=class mae{constructor(t){let r=null;for(let i of t)if(!r)r=i.type;else{if(r===i.type)continue;r=Ir;break}this.type=ko(r!=null?r:Ir,t.length),this.arr=t}static parse(t,r){if(t.length!==2)return r.error(`'semiliteral' expression requires exactly one argument, but found ${t.length-1} instead.`);if(!vm(t[1]))return r.error(`invalid value of type "${typeof t[1]}"`);let i=t[1],a=Za(i);if(a.kind==="array"){let n=i,o=r.concat(1),s=[];for(let l=0;lr.evaluate(t))}eachChild(t){this.arr.forEach(t)}outputDefined(){return this.arr.every(t=>t.outputDefined())}},Bk=class vae{constructor(t){this.key=t,this.type=Ir}static parse(t,r){if(t.length!==2)return r.error(`Expected 1 argument, but found ${t.length-1} instead.`);let i=t[1];return i==null?r.error("Global state property must be defined."):typeof i=="string"?new vae(i):r.error(`Global state property must be string, but found ${typeof t[1]} instead.`)}evaluate(t){var i,a;let r=(i=t.globals)==null?void 0:i.globalState;return!r||Object.keys(r).length===0?null:(a=Ry(r,this.key))!=null?a:null}eachChild(){}outputDefined(){return!1}},lm={"==":NIe,"!=":VIe,">":GIe,"<":UIe,">=":$Ie,"<=":jIe,array:dh,at:AIe,boolean:dh,case:SIe,coalesce:rae,collator:nae,format:Gie,image:ZIe,in:TIe,"index-of":MIe,interpolate:Ul,"interpolate-hcl":Ul,"interpolate-lab":Ul,length:YIe,let:Yie,literal:gm,match:DIe,number:dh,"number-format":HIe,object:dh,semiliteral:gLe,slice:EIe,step:kk,string:dh,"to-boolean":nm,"to-color":nm,"to-number":nm,"to-string":nm,var:Xie,within:Pk,distance:Rk,"global-state":Bk},Ac=class extends Error{constructor(e,t){super(t),this.message=t,this.key=e}},yLe=class gae{constructor(t,r=[]){this.parent=t,this.bindings={};for(let[i,a]of r)this.bindings[i]=a}concat(t){return new gae(this,t)}get(t){if(this.bindings[t])return this.bindings[t];if(this.parent)return this.parent.get(t);throw Error(`${t} not found in scope.`)}has(t){return this.bindings[t]?!0:this.parent?this.parent.has(t):!1}},yae=class _ae{constructor(t,r,i=[],a,n=new yLe,o=[]){this.registry=t,this.path=i,this.key=i.map(s=>`[${s}]`).join(""),this.scope=n,this.errors=o,this.expectedType=a,this._isConstant=r}parse(t,r,i,a,n={}){return r==null?this._parse(t,n):this.concat(r,i,a)._parse(t,n)}_parse(t,r){(t===null||typeof t=="string"||typeof t=="boolean"||typeof t=="number")&&(t=["literal",t]);let i=this.key;function a(n,o,s){return s==="assert"?new dh(o,[n],i):s==="coerce"?new nm(o,[n],i):n}if(Array.isArray(t)){if(t.length===0)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');let n=t[0];if(typeof n!="string")return this.error(`Expression name must be a string, but found ${typeof n} instead. If you wanted a literal array, use ["literal", [...]].`,0),null;let o=this.registry[n];if(o){let s=o.parse(t,this);if(!s)return null;if(this.expectedType){let l=this.expectedType,u=s.type;if((l.kind==="string"||l.kind==="number"||l.kind==="boolean"||l.kind==="object"||l.kind==="array")&&u.kind==="value")s=a(s,l,r.typeAnnotation||"assert");else if(l.kind==="projectionDefinition"&&["string","array","value"].includes(u.kind)||["color","formatted","resolvedImage"].includes(l.kind)&&["value","string"].includes(u.kind)||["padding","numberArray"].includes(l.kind)&&["value","number","array"].includes(u.kind)||l.kind==="colorArray"&&["value","string","array"].includes(u.kind)||l.kind==="variableAnchorOffsetCollection"&&["value","array"].includes(u.kind))s=a(s,l,r.typeAnnotation||"coerce");else if(this.checkSubtype(l,u))return null}if(!(s instanceof gm)&&s.type.kind!=="resolvedImage"&&this._isConstant(s)){let l=new Vie;try{s=new gm(s.type,s.evaluate(l))}catch(u){return this.error(u.message),null}}return s}return this.error(`Unknown expression "${n}". If you wanted a literal array, use ["literal", [...]].`,0)}return t===void 0?this.error("'undefined' value invalid. Use null instead."):typeof t=="object"?this.error('Bare objects invalid. Use ["literal", {...}] instead.'):this.error(`Expected an array, but found ${typeof t} instead.`)}concat(t,r,i){let a=typeof t=="number"?this.path.concat(t):this.path,n=i?this.scope.concat(i):this.scope;return new _ae(this.registry,this._isConstant,a,r||null,n,this.errors)}error(t,...r){let i=`${this.key}${r.map(a=>`[${a}]`).join("")}`;this.errors.push(new Ac(i,t))}checkSubtype(t,r){let i=jy(t,r);return i&&this.error(i),i}},Wd=class Fy{constructor(t,r,i,a,n){this.name=t,this.type=r,this._evaluate=i,this.args=a,this.key=n}evaluate(t){return this._evaluate(t,this.args,this.key)}eachChild(t){this.args.forEach(t)}outputDefined(){return!1}static parse(t,r){let i=t[0],a=Fy.definitions[i];if(!a)return r.error(`Unknown expression "${i}". If you wanted a literal array, use ["literal", [...]].`,0);let n=Array.isArray(a)?a[0]:a.type,o=Array.isArray(a)?[[a[1],a[2]]]:a.overloads,s=o.filter(([u])=>!Array.isArray(u)||u.length===t.length-1),l=null;for(let[u,c]of s){l=new yae(r.registry,C4,r.path,null,r.scope);let h=[],f=!1;for(let d=1;dxLe(h)).join(" | "),c=[];for(let h=1;h{throw new ba(t.evaluate(e),r)}],typeof:[Er,[Ir],(e,[t])=>Sa(Za(t.evaluate(e)))],"to-rgba":[ko(Vt,4),[Cu],(e,[t])=>{let[r,i,a,n]=t.evaluate(e).rgb;return[r*255,i*255,a*255,n]}],rgb:[Cu,[Vt,Vt,Vt],bte],rgba:[Cu,[Vt,Vt,Vt,Vt],bte],has:{type:Xr,overloads:[[[Er],(e,[t])=>wte(t.evaluate(e),e.properties())],[[Er,Bd],(e,[t,r])=>wte(t.evaluate(e),r.evaluate(e))]]},get:{type:Ir,overloads:[[[Er],(e,[t])=>G9(t.evaluate(e),e.properties())],[[Er,Bd],(e,[t,r])=>G9(t.evaluate(e),r.evaluate(e))]]},"feature-state":[Ir,[Er],(e,[t])=>G9(t.evaluate(e),e.featureState||{})],properties:[Bd,[],e=>e.properties()],"geometry-type":[Er,[],e=>e.geometryType()],id:[Ir,[],e=>e.id()],zoom:[Vt,[],e=>e.globals.zoom],"heatmap-density":[Vt,[],e=>e.globals.heatmapDensity||0],elevation:[Vt,[],e=>e.globals.elevation||0],"line-progress":[Vt,[],e=>e.globals.lineProgress||0],accumulated:[Ir,[],e=>e.globals.accumulated===void 0?null:e.globals.accumulated],"+":[Vt,Fd(Vt),(e,t)=>{let r=0;for(let i of t)r+=i.evaluate(e);return r}],"*":[Vt,Fd(Vt),(e,t)=>{let r=1;for(let i of t)r*=i.evaluate(e);return r}],"-":{type:Vt,overloads:[[[Vt,Vt],(e,[t,r])=>t.evaluate(e)-r.evaluate(e)],[[Vt],(e,[t])=>-t.evaluate(e)]]},"/":[Vt,[Vt,Vt],(e,[t,r])=>t.evaluate(e)/r.evaluate(e)],"%":[Vt,[Vt,Vt],(e,[t,r])=>t.evaluate(e)%r.evaluate(e)],ln2:[Vt,[],()=>Math.LN2],pi:[Vt,[],()=>Math.PI],e:[Vt,[],()=>Math.E],"^":[Vt,[Vt,Vt],(e,[t,r])=>t.evaluate(e)**+r.evaluate(e)],sqrt:[Vt,[Vt],(e,[t])=>Math.sqrt(t.evaluate(e))],log10:[Vt,[Vt],(e,[t])=>Math.log(t.evaluate(e))/Math.LN10],ln:[Vt,[Vt],(e,[t])=>Math.log(t.evaluate(e))],log2:[Vt,[Vt],(e,[t])=>Math.log(t.evaluate(e))/Math.LN2],sin:[Vt,[Vt],(e,[t])=>Math.sin(t.evaluate(e))],cos:[Vt,[Vt],(e,[t])=>Math.cos(t.evaluate(e))],tan:[Vt,[Vt],(e,[t])=>Math.tan(t.evaluate(e))],asin:[Vt,[Vt],(e,[t])=>Math.asin(t.evaluate(e))],acos:[Vt,[Vt],(e,[t])=>Math.acos(t.evaluate(e))],atan:[Vt,[Vt],(e,[t])=>Math.atan(t.evaluate(e))],min:[Vt,Fd(Vt),(e,t)=>Math.min(...t.map(r=>r.evaluate(e)))],max:[Vt,Fd(Vt),(e,t)=>Math.max(...t.map(r=>r.evaluate(e)))],abs:[Vt,[Vt],(e,[t])=>Math.abs(t.evaluate(e))],round:[Vt,[Vt],(e,[t])=>{let r=t.evaluate(e);return r<0?-Math.round(-r):Math.round(r)}],floor:[Vt,[Vt],(e,[t])=>Math.floor(t.evaluate(e))],ceil:[Vt,[Vt],(e,[t])=>Math.ceil(t.evaluate(e))],"filter-==":[Xr,[Er,Ir],(e,[t,r])=>e.properties()[t.value]===r.value],"filter-id-==":[Xr,[Ir],(e,[t])=>e.id()===t.value],"filter-type-==":[Xr,[Er],(e,[t])=>e.geometryType()===t.value],"filter-<":[Xr,[Er,Ir],(e,[t,r])=>{let i=e.properties()[t.value],a=r.value;return typeof i==typeof a&&i{let r=e.id(),i=t.value;return typeof r==typeof i&&r":[Xr,[Er,Ir],(e,[t,r])=>{let i=e.properties()[t.value],a=r.value;return typeof i==typeof a&&i>a}],"filter-id->":[Xr,[Ir],(e,[t])=>{let r=e.id(),i=t.value;return typeof r==typeof i&&r>i}],"filter-<=":[Xr,[Er,Ir],(e,[t,r])=>{let i=e.properties()[t.value],a=r.value;return typeof i==typeof a&&i<=a}],"filter-id-<=":[Xr,[Ir],(e,[t])=>{let r=e.id(),i=t.value;return typeof r==typeof i&&r<=i}],"filter->=":[Xr,[Er,Ir],(e,[t,r])=>{let i=e.properties()[t.value],a=r.value;return typeof i==typeof a&&i>=a}],"filter-id->=":[Xr,[Ir],(e,[t])=>{let r=e.id(),i=t.value;return typeof r==typeof i&&r>=i}],"filter-has":[Xr,[Ir],(e,[t])=>{let r=t.value,i=e.properties();return r in i&&i[r]!==void 0}],"filter-has-id":[Xr,[],e=>e.id()!==null&&e.id()!==void 0],"filter-type-in":[Xr,[ko(Er)],(e,[t])=>t.value.indexOf(e.geometryType())>=0],"filter-id-in":[Xr,[ko(Ir)],(e,[t])=>t.value.indexOf(e.id())>=0],"filter-in-small":[Xr,[Er,ko(Ir)],(e,[t,r])=>r.value.indexOf(e.properties()[t.value])>=0],"filter-in-large":[Xr,[Er,ko(Ir)],(e,[t,r])=>_Le(e.properties()[t.value],r.value,0,r.value.length-1)],all:{type:Xr,overloads:[[[Xr,Xr],(e,[t,r])=>t.evaluate(e)&&r.evaluate(e)],[Fd(Xr),(e,t)=>{for(let r of t)if(!r.evaluate(e))return!1;return!0}]]},any:{type:Xr,overloads:[[[Xr,Xr],(e,[t,r])=>t.evaluate(e)||r.evaluate(e)],[Fd(Xr),(e,t)=>{for(let r of t)if(r.evaluate(e))return!0;return!1}]]},"!":[Xr,[Xr],(e,[t])=>!t.evaluate(e)],"is-supported-script":[Xr,[Er],(e,[t])=>{let r=e.globals&&e.globals.isSupportedScript;return!r||r(t.evaluate(e))}],upcase:[Er,[Er],(e,[t])=>t.evaluate(e).toUpperCase()],downcase:[Er,[Er],(e,[t])=>t.evaluate(e).toLowerCase()],concat:[Er,Fd(Ir),(e,t)=>t.map(r=>By(r.evaluate(e))).join("")],split:[ko(Er),[Er,Er],(e,[t,r])=>t.evaluate(e).split(r.evaluate(e))],join:[Er,[ko(Er),Er],(e,[t,r])=>t.evaluate(e).join(r.evaluate(e))],"resolved-locale":[Er,[ow],(e,[t])=>t.evaluate(e).resolvedLocale()]});Ok=/^(.*)-transition$/;Nk=class{constructor(e,t,r,i){this.expression=e,this._warningHistory={},this._evaluator=new Vie,this._defaultValue=r?Eae(r):null,this._enumValues=r&&r.type==="enum"?r.values:null,this._globalState=i,this._rootKey=t}evaluateWithoutErrorHandling(e,t,r,i,a,n){return this._globalState&&(e=_m(e,this._globalState)),this._evaluator.globals=e,this._evaluator.feature=t,this._evaluator.featureState=r,this._evaluator.canonical=i,this._evaluator.availableImages=a||null,this._evaluator.formattedSection=n,this.expression.evaluate(this._evaluator)}evaluate(e,t,r,i,a,n){this._globalState&&(e=_m(e,this._globalState)),this._evaluator.globals=e,this._evaluator.feature=t||null,this._evaluator.featureState=r||null,this._evaluator.canonical=i,this._evaluator.availableImages=a||null,this._evaluator.formattedSection=n||null;try{let o=this.expression.evaluate(this._evaluator);if(o==null||typeof o=="number"&&o!==o)return this._defaultValue;if(this._enumValues&&!(o in this._enumValues))throw new ba(`Expected value to be one of ${Object.keys(this._enumValues).map(s=>JSON.stringify(s)).join(", ")}, but found ${JSON.stringify(o)} instead.`,"");return o}catch(o){let s=o instanceof ba?o.path:"",l=`${s}|${o.message}`;return this._warningHistory[l]||(this._warningHistory[l]=!0,typeof console<"u"&&console.warn(Aae(this._rootKey,s,o.message,this._defaultValue))),this._defaultValue}}};Yy=class{constructor(e,t,r){this.kind=e,this._styleExpression=t,this.isStateDependent=e!=="constant"&&!Hy(t.expression),this.globalStateRefs=_2(t.expression),this._globalState=r}evaluateWithoutErrorHandling(e,t,r,i,a,n){return this._globalState&&(e=_m(e,this._globalState)),this._styleExpression.evaluateWithoutErrorHandling(e,t,r,i,a,n)}evaluate(e,t,r,i,a,n){return this._globalState&&(e=_m(e,this._globalState)),this._styleExpression.evaluate(e,t,r,i,a,n)}},F4=class{constructor(e,t,r,i,a){this.kind=e,this.zoomStops=r,this._styleExpression=t,this.isStateDependent=e!=="camera"&&!Hy(t.expression),this.globalStateRefs=_2(t.expression),this.interpolationType=i,this._globalState=a}evaluateWithoutErrorHandling(e,t,r,i,a,n){return this._globalState&&(e=_m(e,this._globalState)),this._styleExpression.evaluateWithoutErrorHandling(e,t,r,i,a,n)}evaluate(e,t,r,i,a,n){return this._globalState&&(e=_m(e,this._globalState)),this._styleExpression.evaluate(e,t,r,i,a,n)}interpolationFactor(e,t,r){return this.interpolationType?Ul.interpolationFactor(this.interpolationType,e,t,r):0}};Dae=class Sae{constructor(t,r,i){this.isStateDependent=!1,this.globalStateRefs=new Set,this._globalState=null,Tae(r),this._parameters=t,this._specification=i,this._rootKey=r,this._defaultValue=Eae(i),this._warningHistory={};let a=bae(this._parameters,this._specification);this.kind=a.kind,this.interpolationFactor=a.interpolationFactor,this.zoomStops=a.zoomStops,this.interpolationType=a.interpolationType,this._innerEvaluate=a.evaluate}evaluate(t,r){try{return this._innerEvaluate(t,r)}catch(i){let a=i instanceof Error?i.message:String(i),n=`|${a}`;return this._warningHistory[n]||(this._warningHistory[n]=!0,typeof console<"u"&&console.warn(Aae(this._rootKey,"",a,this._defaultValue))),this._defaultValue}}static deserialize(t){return new Sae(t._parameters,t._rootKey,t._specification)}static serialize(t){return{_parameters:t._parameters,_specification:t._specification,_rootKey:t._rootKey}}};LLe={type:"boolean",default:!1,transition:!1,"property-type":"data-driven",expression:{interpolated:!1,parameters:["zoom","feature"]}};Dte={promoteId:VLe};Ste=1114111,JLe=/^u\+(?:([0-9a-f]{1,6})(?:-([0-9a-f]{1,6}))?|([0-9a-f]{0,5}\?{1,6}))$/i;Ete={"*"(){return[]},array:Gk,boolean:BLe,number:yw,color:cE,constants:Pae,enum:Wy,filter:jk,function:Iae,layer:qae,object:Ys,source:Oae,light:Nae,sky:Vae,terrain:Uae,projection:YLe,projectionDefinition:WLe,string:Vf,formatted:ULe,resolvedImage:GLe,padding:jLe,numberArray:$Le,colorArray:HLe,variableAnchorOffsetCollection:ZLe,sprite:Gae,state:jae,fontFaces:$ae};Zs.source=Bl(Rl(Oae)),Zs.sprite=Bl(Rl(Gae)),Zs.glyphs=Bl(Rl(Hae)),Zs.fontFaces=Bl(Rl($ae)),Zs.light=Bl(Rl(Nae)),Zs.sky=Bl(Rl(Vae)),Zs.terrain=Bl(Rl(Uae)),Zs.state=Bl(Rl(jae)),Zs.layer=Bl(Rl(qae)),Zs.filter=Bl(Rl(jk)),Zs.paintProperty=Bl(Rl(Rae)),Zs.layoutProperty=Bl(Rl(Bae));eze={type:"enum","property-type":"data-constant",expression:{interpolated:!1,parameters:["global-state"]},values:{visible:{},none:{}},transition:!1,default:"visible"},tze=class{constructor(e,t,r){this._rootKey=t,this._globalState=r,this.setValue(e)}evaluate(){var e;return(e=this._literalValue)!=null?e:this._compiledValue.evaluate({})}setValue(e){if(e==null||e==="visible"||e==="none"){this._literalValue=e==="none"?"none":"visible",this._compiledValue=void 0,this._globalStateRefs=new Set;return}let t=gw(e,this._rootKey,eze,this._globalState);if(t.result==="error")throw this._literalValue="visible",this._compiledValue=void 0,Error(t.value.map(r=>`${r.key}: ${r.message}`).join(", "));this._literalValue=void 0,this._compiledValue=t.value,this._globalStateRefs=_2(t.value.expression)}getGlobalStateRefs(){return this._globalStateRefs}};Wo=Zs,$k=new Set(Object.keys(Xe).filter(e=>e.startsWith("source_")).map(e=>e.slice(7).replaceAll("_","-")));fE=class Yae{constructor(t,r,i){let a=this.cells=[];if(t instanceof ArrayBuffer){this.arrayBuffer=t;let o=new Int32Array(this.arrayBuffer);t=o[0],r=o[1],i=o[2],this.d=r+2*i;for(let u=0;u=h[d+0]&&a>=h[d+1])?(s[f]=!0,o.push(c[f])):s[f]=!1}}}_forEachCell(t,r,i,a,n,o,s,l){let u=this._convertToCellCoord(t),c=this._convertToCellCoord(r),h=this._convertToCellCoord(i),f=this._convertToCellCoord(a);for(let d=u;d<=h;d++)for(let p=c;p<=f;p++){let m=this.d*p+d;if((!l||l(this._convertFromCellCoord(d),this._convertFromCellCoord(p),this._convertFromCellCoord(d+1),this._convertFromCellCoord(p+1)))&&n.call(this,t,r,i,a,m,o,s,l))return}}_convertFromCellCoord(t){return(t-this.padding)/this.scale}_convertToCellCoord(t){return Math.max(0,Math.min(this.d-1,Math.floor(t*this.scale)+this.padding))}toArrayBuffer(){if(this.arrayBuffer)return this.arrayBuffer;let t=this.cells,r=3+this.cells.length+1+1,i=0;for(let o of this.cells)i+=o.length;let a=new Int32Array(r+i+this.keys.length+this.bboxes.length);a[0]=this.extent,a[1]=this.n,a[2]=this.padding;let n=r;for(let o=0;or?(this.lastIntegerZoom=r+1,this.lastIntegerZoomTime=t):this.lastFloorZoomthis.zoomHistory.lastIntegerZoom?{fromScale:2,toScale:1,t:t+(1-t)*r}:{fromScale:.5,toScale:1,t:1-(1-r)*t}}},Xy=class{constructor(e,t,r,i){this.property=e,this.value=t,this.expression=kLe(t===void 0?e.specification.default:t,r,e.specification,i)}isDataDriven(){return this.expression.kind==="source"||this.expression.kind==="composite"}getGlobalStateRefs(){return this.expression.globalStateRefs||new Set}readsGlobalState(e){let t=this.getGlobalStateRefs();return e.some(r=>t.has(r))}possiblyEvaluate(e,t,r){return this.property.possiblyEvaluate(this,e,t,r)}},dE=class{constructor(e,t,r){this.property=e,this.value=new Xy(e,void 0,t,r)}transitioned(e,t){return t.value===this.value?t:new kte(this.property,this.value,t,tr({},e.transition,this.transition),e.now)}untransitioned(){return new kte(this.property,this.value,null,{},0)}},x2=class{constructor(e,t,r){this._properties=e,this._values=Object.create(e.defaultTransitionablePropertyValues),this._globalState=r,this._rootKey=t}_propertyRootKey(e){return`${this._rootKey}.${String(e)}`}hasProperty(e){return e in this._properties.defaultTransitionablePropertyValues}getValue(e){return Zo(this._values[e].value.value)}setValue(e,t){Object.hasOwn(this._values,e)||(this._values[e]=new dE(this._values[e].property,this._propertyRootKey(e),this._globalState)),this._values[e].value=new Xy(this._values[e].property,t===null?void 0:Zo(t),this._propertyRootKey(e),this._globalState)}setValues(e){for(let t in e){let r=e[t];t.endsWith("-transition")?this.setTransition(t.slice(0,-11),r):Fu(this._values[t].value.value,r)||this.setValue(t,r)}}getTransition(e){return Zo(this._values[e].transition)}setTransition(e,t){Object.hasOwn(this._values,e)||(this._values[e]=new dE(this._values[e].property,this._propertyRootKey(e),this._globalState)),this._values[e].transition=Zo(t)||void 0}retainPriorGlobalState(e,t,r){for(let i of Object.keys(r._values))for(let a=r._values[i];a;a=a.prior){let{value:n}=a;n.property.specification.transition&&!n.isDataDriven()&&n.expression._globalState===this._globalState&&n.readsGlobalState(e)&&(a.value=new Xy(n.property,n.value,this._propertyRootKey(i),t))}}applyGlobalStateChange(e,t,r,i){this.retainPriorGlobalState(e,t,r);let a=!1;for(let n of Object.keys(this._values)){let{value:o}=this._values[n];o.readsGlobalState(e)&&(this.setValue(n,o.value),a=!0)}return a?this.transitioned(i,r):r}serialize(){let e={};for(let t of Object.keys(this._values)){let r=this.getValue(t);r!==void 0&&(e[t]=r);let i=this.getTransition(t);i!==void 0&&(e[`${t}-transition`]=i)}return e}transitioned(e,t){let r=new Cte(this._properties);for(let i of Object.keys(this._values))r._values[i]=this._values[i].transitioned(e,t._values[i]);return r}untransitioned(){let e=new Cte(this._properties);for(let t of Object.keys(this._values))e._values[t]=this._values[t].untransitioned();return e}},kte=class{constructor(e,t,r,i,a){this.property=e,this.value=t,this.begin=a+i.delay||0,this.end=this.begin+i.duration||0,e.specification.transition&&(i.delay||i.duration)&&(this.prior=r)}possiblyEvaluate(e,t,r){let i=e.now||0,a=this.value.possiblyEvaluate(e,t,r),n=this.prior;if(!n)return a;if(i>this.end||this.value.isDataDriven())return this.prior=null,a;if(ii.zoomHistory.lastIntegerZoom?{from:e,to:t}:{from:r,to:t}}interpolate(e){return e}},Jae=class{constructor(e,t){this.specification=e,this.name=t}possiblyEvaluate(e,t,r,i){if(e.value!==void 0){if(e.expression.kind==="constant"){let a=e.expression.evaluate(t,null,{},r,i);return this._calculate(a,a,a,t)}return this._calculate(e.expression.evaluate(new Si(Math.floor(t.zoom-1),t)),e.expression.evaluate(new Si(Math.floor(t.zoom),t)),e.expression.evaluate(new Si(Math.floor(t.zoom+1),t)),t)}}_calculate(e,t,r,i){return i.zoom>i.zoomHistory.lastIntegerZoom?{from:e,to:t}:{from:r,to:t}}interpolate(e){return e}},bw=class{constructor(e,t){this.specification=e,this.name=t}possiblyEvaluate(e,t,r,i){return!!e.expression.evaluate(t,null,{},r,i)}interpolate(){return!1}},Fn=class{constructor(e){this.properties=e,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},this.overridableProperties=[];for(let t in e){let r=e[t];r.specification.overridable&&this.overridableProperties.push(t);let i=this.defaultPropertyValues[t]=new Xy(r,void 0,r.name,void 0),a=this.defaultTransitionablePropertyValues[t]=new dE(r,r.name,void 0);this.defaultTransitioningPropertyValues[t]=a.untransitioned(),this.defaultPossiblyEvaluatedValues[t]=i.possiblyEvaluate({})}}};Yt("DataDrivenProperty",cr),Yt("DataConstantProperty",Ut),Yt("CrossFadedDataDrivenProperty",Ky),Yt("CrossFadedProperty",Jae),Yt("ColorRampProperty",bw);Pte=" is a PAINT property not a LAYOUT property. Use get/setPaintProperty instead?",H9=" is a LAYOUT property not a PAINT property. Use get/setLayoutProperty instead?",zu=class extends Xa{constructor(e,t,r){if(super(),this.id=e.id,this.type=e.type,this._globalState=r,this._featureFilter={filter:()=>!0,needGeometry:!1,getGlobalStateRefs:()=>new Set},this._visibilityExpression=rze(this.visibility,`layers[${this.id}].layout.visibility`,r),e.type!=="custom"&&(this.metadata=e.metadata,this.minzoom=e.minzoom,this.maxzoom=e.maxzoom,e.type!=="background"&&(this.source=e.source,this.sourceLayer=e["source-layer"],this.filter=e.filter,this._featureFilter=xm(e.filter,`layers[${this.id}].filter`,r)),t.layout&&(this._unevaluatedLayout=new nze(t.layout,`layers[${this.id}].layout`,r)),t.paint)){this._transitionablePaint=new x2(t.paint,`layers[${this.id}].paint`,r);for(let i in e.paint)this.setPaintProperty(i,e.paint[i],{validate:!1});for(let i in e.layout)this.setLayoutProperty(i,e.layout[i],{validate:!1});this._transitioningPaint=this._transitionablePaint.untransitioned(),this.paint=new xw(t.paint)}}setFilter(e){this.filter=e,this._featureFilter=xm(e,`layers[${this.id}].filter`,this._globalState)}getCrossfadeParameters(){return this._crossfadeParameters}getLayoutProperty(e){var t;if(e==="visibility")return this.visibility;if((t=this._transitionablePaint)!=null&&t.hasProperty(e))throw Error(e+Pte);if(!this._unevaluatedLayout)throw Error(`Cannot get layout property "${e}" on layer type "${this.type}" which has no layout properties.`);return this._unevaluatedLayout.getValue(e)}getLayoutAffectingGlobalStateRefs(){let e=new Set;for(let t of this._visibilityExpression.getGlobalStateRefs())e.add(t);if(this._unevaluatedLayout)for(let t in this._unevaluatedLayout._values){let r=this._unevaluatedLayout._values[t];for(let i of r.getGlobalStateRefs())e.add(i)}for(let t of this._featureFilter.getGlobalStateRefs())e.add(t);return e}getPaintAffectingGlobalStateRefs(){var t;let e=new globalThis.Map;if(this._transitionablePaint)for(let r in this._transitionablePaint._values){let i=this._transitionablePaint._values[r].value;for(let a of i.getGlobalStateRefs()){let n=(t=e.get(a))!=null?t:[];n.push({name:r,value:i.value}),e.set(a,n)}}return e}getVisibilityAffectingGlobalStateRefs(){return this._visibilityExpression.getGlobalStateRefs()}setLayoutProperty(e,t,r={}){var i;if(e==="visibility"){this.visibility=t,this._visibilityExpression.setValue(t),this.recalculateVisibility();return}if((i=this._transitionablePaint)!=null&&i.hasProperty(e)){this.fire(new sr(Error(e+Pte)));return}t!=null&&this._validate(Wo.layoutProperty,`layers.${this.id}.layout.${e}`,e,t,r)||this._unevaluatedLayout.setValue(e,t)}getPaintProperty(e){var t,r;if(e.endsWith("-transition")){let i=e.slice(0,-11);if(i==="visibility"||(t=this._unevaluatedLayout)!=null&&t.hasProperty(i))throw Error(e+H9);return this._transitionablePaint.getTransition(i)}if(e==="visibility"||(r=this._unevaluatedLayout)!=null&&r.hasProperty(e))throw Error(e+H9);return this._transitionablePaint.getValue(e)}setPaintProperty(e,t,r={}){var i;if(e==="visibility"||(i=this._unevaluatedLayout)!=null&&i.hasProperty(e))return this.fire(new sr(Error(e+H9))),!1;if(t!=null&&this._validate(Wo.paintProperty,`layers.${this.id}.paint.${e}`,e,t,r))return!1;if(e.endsWith("-transition"))return this._transitionablePaint.setTransition(e.slice(0,-11),t||void 0),!1;{let a=this._transitionablePaint._values[e],n=a.property.specification["property-type"]==="cross-faded-data-driven",o=a.value.isDataDriven(),s=a.value;this._transitionablePaint.setValue(e,t),this._handleSpecialPaintPropertyUpdate(e);let l=this._transitionablePaint._values[e].value;return l.isDataDriven()||o||n||this._handleOverridablePaintPropertyUpdate(e,s,l)}}_handleSpecialPaintPropertyUpdate(e){}_handleOverridablePaintPropertyUpdate(e,t,r){return!1}isHidden(e=this.minzoom,t=!1){return this.minzoom&&e<(t?Math.floor(this.minzoom):this.minzoom)||this.maxzoom&&e>=this.maxzoom?!0:this._evaluatedVisibility==="none"}updateTransitions(e){this._transitioningPaint=this._transitionablePaint.transitioned(e,this._transitioningPaint)}retainPriorGlobalState(e,t){var r;(r=this._transitionablePaint)==null||r.retainPriorGlobalState(e,t,this._transitioningPaint)}hasTransition(){return this._transitioningPaint.hasTransition()}recalculateVisibility(){this._evaluatedVisibility=this._visibilityExpression.evaluate()}recalculate(e,t){e.getCrossfadeParameters&&(this._crossfadeParameters=e.getCrossfadeParameters()),this._unevaluatedLayout&&(this.layout=this._unevaluatedLayout.possiblyEvaluate(e,void 0,t)),this.paint=this._transitioningPaint.possiblyEvaluate(e,void 0,t)}serialize(){var t,r;let e={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:(t=this._unevaluatedLayout)==null?void 0:t.serialize(),paint:(r=this._transitionablePaint)==null?void 0:r.serialize()};return this.visibility&&(e.layout||(e.layout={}),e.layout.visibility=this.visibility),xk(e,(i,a)=>i!==void 0&&!(a==="layout"&&!Object.keys(i).length)&&!(a==="paint"&&!Object.keys(i).length))}_validate(e,t,r,i,a={}){return km(this,e,{key:t,layerType:this.type,objectKey:r,value:i},a)}is3D(){return!1}isTileClipped(){return!1}hasOffscreenPass(){return!1}resize(){}isStateDependent(){for(let e in this.paint._values){let t=this.paint.get(e);if(t instanceof Nl&&ym(t.property.specification)&&(t.value.kind==="source"||t.value.kind==="composite")&&t.value.isStateDependent)return!0}return!1}},oze=()=>Ite||(Ite=new Fn({"raster-opacity":new Ut(Xe.paint_raster["raster-opacity"],"raster-opacity"),"raster-hue-rotate":new Ut(Xe.paint_raster["raster-hue-rotate"],"raster-hue-rotate"),"raster-brightness-min":new Ut(Xe.paint_raster["raster-brightness-min"],"raster-brightness-min"),"raster-brightness-max":new Ut(Xe.paint_raster["raster-brightness-max"],"raster-brightness-max"),"raster-saturation":new Ut(Xe.paint_raster["raster-saturation"],"raster-saturation"),"raster-contrast":new Ut(Xe.paint_raster["raster-contrast"],"raster-contrast"),resampling:new Ut(Xe.paint_raster.resampling,"resampling"),"raster-resampling":new Ut(Xe.paint_raster["raster-resampling"],"raster-resampling"),"raster-fade-duration":new Ut(Xe.paint_raster["raster-fade-duration"],"raster-fade-duration")})),sze={get paint(){return oze()}},ww=e=>e.type==="raster",lze=class extends zu{constructor(e,t){super(e,sze,t)}},uze={Int8:Int8Array,Uint8:Uint8Array,Int16:Int16Array,Uint16:Uint16Array,Int32:Int32Array,Uint32:Uint32Array,Float32:Float32Array},b2=class{constructor(e,t){this._structArray=e,this._pos1=t*this.size,this._pos2=this._pos1/2,this._pos4=this._pos1/4,this._pos8=this._pos1/8}},Ea=class{constructor(){this.isTransferred=!1,this.capacity=-1,this.resize(0)}static serialize(e,t){return e._trim(),t&&(e.isTransferred=!0,t.push(e.arrayBuffer)),{length:e.length,arrayBuffer:e.arrayBuffer}}static deserialize(e){let t=Object.create(this.prototype);return t.arrayBuffer=e.arrayBuffer,t.length=e.length,t.capacity=e.arrayBuffer.byteLength/t.bytesPerElement,t._refreshViews(),t}_trim(){this.length!==this.capacity&&(this.capacity=this.length,this.arrayBuffer=this.arrayBuffer.slice(0,this.length*this.bytesPerElement),this._refreshViews())}clear(){this.length=0}resize(e){this.reserve(e),this.length=e}reserve(e){if(e>this.capacity){this.capacity=Math.max(e,Math.floor(this.capacity*5),128),this.arrayBuffer=new ArrayBuffer(this.capacity*this.bytesPerElement);let t=this.uint8;this._refreshViews(),t&&this.uint8.set(t)}}_refreshViews(){throw Error("_refreshViews() must be implemented by each concrete StructArray layout")}freeBufferAfterUpload(){this.arrayBuffer=new ArrayBuffer(0),this._refreshViews()}};Jy=class extends Ea{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,t){let r=this.length;return this.resize(r+1),this.emplace(r,e,t)}emplace(e,t,r){let i=e*2;return this.int16[i+0]=t,this.int16[i+1]=r,e}};Jy.prototype.bytesPerElement=4,Yt("StructArrayLayout2i4",Jy);L4=class extends Ea{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,t,r){let i=this.length;return this.resize(i+1),this.emplace(i,e,t,r)}emplace(e,t,r,i){let a=e*3;return this.int16[a+0]=t,this.int16[a+1]=r,this.int16[a+2]=i,e}};L4.prototype.bytesPerElement=6,Yt("StructArrayLayout3i6",L4);pE=class extends Ea{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,t,r,i){let a=this.length;return this.resize(a+1),this.emplace(a,e,t,r,i)}emplace(e,t,r,i,a){let n=e*4;return this.int16[n+0]=t,this.int16[n+1]=r,this.int16[n+2]=i,this.int16[n+3]=a,e}};pE.prototype.bytesPerElement=8,Yt("StructArrayLayout4i8",pE);mE=class extends Ea{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,t,r,i,a,n){let o=this.length;return this.resize(o+1),this.emplace(o,e,t,r,i,a,n)}emplace(e,t,r,i,a,n,o){let s=e*6;return this.int16[s+0]=t,this.int16[s+1]=r,this.int16[s+2]=i,this.int16[s+3]=a,this.int16[s+4]=n,this.int16[s+5]=o,e}};mE.prototype.bytesPerElement=12,Yt("StructArrayLayout2i4i12",mE);vE=class extends Ea{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,t,r,i,a,n){let o=this.length;return this.resize(o+1),this.emplace(o,e,t,r,i,a,n)}emplace(e,t,r,i,a,n,o){let s=e*4,l=e*8;return this.int16[s+0]=t,this.int16[s+1]=r,this.uint8[l+4]=i,this.uint8[l+5]=a,this.uint8[l+6]=n,this.uint8[l+7]=o,e}};vE.prototype.bytesPerElement=8,Yt("StructArrayLayout2i4ub8",vE);Qy=class extends Ea{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,t){let r=this.length;return this.resize(r+1),this.emplace(r,e,t)}emplace(e,t,r){let i=e*2;return this.float32[i+0]=t,this.float32[i+1]=r,e}};Qy.prototype.bytesPerElement=8,Yt("StructArrayLayout2f8",Qy);gE=class extends Ea{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,t,r,i,a,n,o,s,l,u){let c=this.length;return this.resize(c+1),this.emplace(c,e,t,r,i,a,n,o,s,l,u)}emplace(e,t,r,i,a,n,o,s,l,u,c){let h=e*10;return this.uint16[h+0]=t,this.uint16[h+1]=r,this.uint16[h+2]=i,this.uint16[h+3]=a,this.uint16[h+4]=n,this.uint16[h+5]=o,this.uint16[h+6]=s,this.uint16[h+7]=l,this.uint16[h+8]=u,this.uint16[h+9]=c,e}};gE.prototype.bytesPerElement=20,Yt("StructArrayLayout10ui20",gE);yE=class extends Ea{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,t,r,i,a,n,o,s){let l=this.length;return this.resize(l+1),this.emplace(l,e,t,r,i,a,n,o,s)}emplace(e,t,r,i,a,n,o,s,l){let u=e*8;return this.uint16[u+0]=t,this.uint16[u+1]=r,this.uint16[u+2]=i,this.uint16[u+3]=a,this.uint16[u+4]=n,this.uint16[u+5]=o,this.uint16[u+6]=s,this.uint16[u+7]=l,e}};yE.prototype.bytesPerElement=16,Yt("StructArrayLayout8ui16",yE);_E=class extends Ea{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,t,r,i,a,n,o,s,l,u,c,h,f){let d=this.length;return this.resize(d+1),this.emplace(d,e,t,r,i,a,n,o,s,l,u,c,h,f)}emplace(e,t,r,i,a,n,o,s,l,u,c,h,f,d){let p=e*14,m=e*7;return this.int16[p+0]=t,this.int16[p+1]=r,this.int16[p+2]=i,this.int16[p+3]=a,this.uint16[p+4]=n,this.uint16[p+5]=o,this.uint16[p+6]=s,this.uint16[p+7]=l,this.int16[p+8]=u,this.int16[p+9]=c,this.int16[p+10]=h,this.int16[p+11]=f,this.float32[m+6]=d,e}};_E.prototype.bytesPerElement=28,Yt("StructArrayLayout4i4ui4i1f28",_E);xE=class extends Ea{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,t,r){let i=this.length;return this.resize(i+1),this.emplace(i,e,t,r)}emplace(e,t,r,i){let a=e*3;return this.float32[a+0]=t,this.float32[a+1]=r,this.float32[a+2]=i,e}};xE.prototype.bytesPerElement=12,Yt("StructArrayLayout3f12",xE);bE=class extends Ea{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)}emplaceBack(e){let t=this.length;return this.resize(t+1),this.emplace(t,e)}emplace(e,t){let r=e*1;return this.uint32[r+0]=t,e}};bE.prototype.bytesPerElement=4,Yt("StructArrayLayout1ul4",bE);wE=class extends Ea{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,t,r,i,a,n,o,s,l){let u=this.length;return this.resize(u+1),this.emplace(u,e,t,r,i,a,n,o,s,l)}emplace(e,t,r,i,a,n,o,s,l,u){let c=e*10,h=e*5;return this.int16[c+0]=t,this.int16[c+1]=r,this.int16[c+2]=i,this.int16[c+3]=a,this.int16[c+4]=n,this.int16[c+5]=o,this.uint32[h+3]=s,this.uint16[c+8]=l,this.uint16[c+9]=u,e}};wE.prototype.bytesPerElement=20,Yt("StructArrayLayout6i1ul2ui20",wE);AE=class extends Ea{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,t,r,i,a,n){let o=this.length;return this.resize(o+1),this.emplace(o,e,t,r,i,a,n)}emplace(e,t,r,i,a,n,o){let s=e*6;return this.int16[s+0]=t,this.int16[s+1]=r,this.int16[s+2]=i,this.int16[s+3]=a,this.int16[s+4]=n,this.int16[s+5]=o,e}};AE.prototype.bytesPerElement=12,Yt("StructArrayLayout2i2i2i12",AE);TE=class extends Ea{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,t,r,i,a){let n=this.length;return this.resize(n+1),this.emplace(n,e,t,r,i,a)}emplace(e,t,r,i,a,n){let o=e*4,s=e*8;return this.float32[o+0]=t,this.float32[o+1]=r,this.float32[o+2]=i,this.int16[s+6]=a,this.int16[s+7]=n,e}};TE.prototype.bytesPerElement=16,Yt("StructArrayLayout2f1f2i16",TE);ME=class extends Ea{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,t,r,i,a,n){let o=this.length;return this.resize(o+1),this.emplace(o,e,t,r,i,a,n)}emplace(e,t,r,i,a,n,o){let s=e*16,l=e*4,u=e*8;return this.uint8[s+0]=t,this.uint8[s+1]=r,this.float32[l+1]=i,this.float32[l+2]=a,this.int16[u+6]=n,this.int16[u+7]=o,e}};ME.prototype.bytesPerElement=16,Yt("StructArrayLayout2ub2f2i16",ME);z4=class extends Ea{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,t,r){let i=this.length;return this.resize(i+1),this.emplace(i,e,t,r)}emplace(e,t,r,i){let a=e*3;return this.uint16[a+0]=t,this.uint16[a+1]=r,this.uint16[a+2]=i,e}};z4.prototype.bytesPerElement=6,Yt("StructArrayLayout3ui6",z4);DE=class extends Ea{_refreshViews(){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)}emplaceBack(e,t,r,i,a,n,o,s,l,u,c,h,f,d,p,m,g,y){let x=this.length;return this.resize(x+1),this.emplace(x,e,t,r,i,a,n,o,s,l,u,c,h,f,d,p,m,g,y)}emplace(e,t,r,i,a,n,o,s,l,u,c,h,f,d,p,m,g,y,x){let w=e*26,_=e*13,A=e*52;return this.int16[w+0]=t,this.int16[w+1]=r,this.uint16[w+2]=i,this.uint16[w+3]=a,this.uint32[_+2]=n,this.uint32[_+3]=o,this.uint32[_+4]=s,this.uint16[w+10]=l,this.uint16[w+11]=u,this.uint16[w+12]=c,this.float32[_+7]=h,this.float32[_+8]=f,this.uint8[A+36]=d,this.uint8[A+37]=p,this.uint8[A+38]=m,this.uint32[_+10]=g,this.int16[w+22]=y,this.float32[_+12]=x,e}};DE.prototype.bytesPerElement=52,Yt("StructArrayLayout2i2ui3ul3ui2f3ub1ul1i1f52",DE);SE=class extends Ea{_refreshViews(){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)}emplaceBack(e,t,r,i,a,n,o,s,l,u,c,h,f,d,p,m,g,y,x,w,_,A,T,M,S,k,P,I,B){let L=this.length;return this.resize(L+1),this.emplace(L,e,t,r,i,a,n,o,s,l,u,c,h,f,d,p,m,g,y,x,w,_,A,T,M,S,k,P,I,B)}emplace(e,t,r,i,a,n,o,s,l,u,c,h,f,d,p,m,g,y,x,w,_,A,T,M,S,k,P,I,B,L){let z=e*34,O=e*17;return this.int16[z+0]=t,this.int16[z+1]=r,this.int16[z+2]=i,this.int16[z+3]=a,this.int16[z+4]=n,this.int16[z+5]=o,this.int16[z+6]=s,this.int16[z+7]=l,this.uint16[z+8]=u,this.uint16[z+9]=c,this.uint16[z+10]=h,this.uint16[z+11]=f,this.uint16[z+12]=d,this.uint16[z+13]=p,this.uint16[z+14]=m,this.uint16[z+15]=g,this.uint16[z+16]=y,this.uint16[z+17]=x,this.uint16[z+18]=w,this.uint16[z+19]=_,this.uint16[z+20]=A,this.uint16[z+21]=T,this.uint16[z+22]=M,this.uint32[O+12]=S,this.float32[O+13]=k,this.float32[O+14]=P,this.uint16[z+30]=I,this.uint16[z+31]=B,this.float32[O+16]=L,e}};SE.prototype.bytesPerElement=68,Yt("StructArrayLayout8i15ui1ul2f2ui1f68",SE);R4=class extends Ea{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e){let t=this.length;return this.resize(t+1),this.emplace(t,e)}emplace(e,t){let r=e*1;return this.float32[r+0]=t,e}};R4.prototype.bytesPerElement=4,Yt("StructArrayLayout1f4",R4);EE=class extends Ea{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,t,r){let i=this.length;return this.resize(i+1),this.emplace(i,e,t,r)}emplace(e,t,r,i){let a=e*6,n=e*3;return this.uint16[a+0]=t,this.float32[n+1]=r,this.float32[n+2]=i,e}};EE.prototype.bytesPerElement=12,Yt("StructArrayLayout1ui2f12",EE);kE=class extends Ea{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,t,r){let i=this.length;return this.resize(i+1),this.emplace(i,e,t,r)}emplace(e,t,r,i){let a=e*2,n=e*4;return this.uint32[a+0]=t,this.uint16[n+2]=r,this.uint16[n+3]=i,e}};kE.prototype.bytesPerElement=8,Yt("StructArrayLayout1ul2ui8",kE);CE=class extends Ea{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,t){let r=this.length;return this.resize(r+1),this.emplace(r,e,t)}emplace(e,t,r){let i=e*2;return this.uint16[i+0]=t,this.uint16[i+1]=r,e}};CE.prototype.bytesPerElement=4,Yt("StructArrayLayout2ui4",CE);FE=class extends Ea{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e){let t=this.length;return this.resize(t+1),this.emplace(t,e)}emplace(e,t){let r=e*1;return this.uint16[r+0]=t,e}};FE.prototype.bytesPerElement=2,Yt("StructArrayLayout1ui2",FE);PE=class extends Ea{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,t,r,i){let a=this.length;return this.resize(a+1),this.emplace(a,e,t,r,i)}emplace(e,t,r,i,a){let n=e*4;return this.float32[n+0]=t,this.float32[n+1]=r,this.float32[n+2]=i,this.float32[n+3]=a,e}};PE.prototype.bytesPerElement=16,Yt("StructArrayLayout4f16",PE);Qae=class extends b2{get anchorPointX(){return this._structArray.int16[this._pos2+0]}get anchorPointY(){return this._structArray.int16[this._pos2+1]}get x1(){return this._structArray.int16[this._pos2+2]}get y1(){return this._structArray.int16[this._pos2+3]}get x2(){return this._structArray.int16[this._pos2+4]}get y2(){return this._structArray.int16[this._pos2+5]}get featureIndex(){return this._structArray.uint32[this._pos4+3]}get sourceLayerIndex(){return this._structArray.uint16[this._pos2+8]}get bucketIndex(){return this._structArray.uint16[this._pos2+9]}get anchorPoint(){return new Be(this.anchorPointX,this.anchorPointY)}};Qae.prototype.size=20;Yk=class extends wE{get(e){return new Qae(this,e)}};Yt("CollisionBoxArray",Yk);ene=class extends b2{get anchorX(){return this._structArray.int16[this._pos2+0]}get anchorY(){return this._structArray.int16[this._pos2+1]}get glyphStartIndex(){return this._structArray.uint16[this._pos2+2]}get numGlyphs(){return this._structArray.uint16[this._pos2+3]}get vertexStartIndex(){return this._structArray.uint32[this._pos4+2]}get lineStartIndex(){return this._structArray.uint32[this._pos4+3]}get lineLength(){return this._structArray.uint32[this._pos4+4]}get segment(){return this._structArray.uint16[this._pos2+10]}get lowerSize(){return this._structArray.uint16[this._pos2+11]}get upperSize(){return this._structArray.uint16[this._pos2+12]}get lineOffsetX(){return this._structArray.float32[this._pos4+7]}get lineOffsetY(){return this._structArray.float32[this._pos4+8]}get writingMode(){return this._structArray.uint8[this._pos1+36]}get placedOrientation(){return this._structArray.uint8[this._pos1+37]}set placedOrientation(e){this._structArray.uint8[this._pos1+37]=e}get hidden(){return this._structArray.uint8[this._pos1+38]}set hidden(e){this._structArray.uint8[this._pos1+38]=e}get crossTileID(){return this._structArray.uint32[this._pos4+10]}set crossTileID(e){this._structArray.uint32[this._pos4+10]=e}get associatedIconIndex(){return this._structArray.int16[this._pos2+22]}get heightOffset(){return this._structArray.float32[this._pos4+12]}};ene.prototype.size=52;tne=class extends DE{get(e){return new ene(this,e)}};Yt("PlacedSymbolArray",tne);rne=class extends b2{get anchorX(){return this._structArray.int16[this._pos2+0]}get anchorY(){return this._structArray.int16[this._pos2+1]}get rightJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+2]}get centerJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+3]}get leftJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+4]}get verticalPlacedTextSymbolIndex(){return this._structArray.int16[this._pos2+5]}get placedIconSymbolIndex(){return this._structArray.int16[this._pos2+6]}get verticalPlacedIconSymbolIndex(){return this._structArray.int16[this._pos2+7]}get key(){return this._structArray.uint16[this._pos2+8]}get textBoxStartIndex(){return this._structArray.uint16[this._pos2+9]}get textBoxEndIndex(){return this._structArray.uint16[this._pos2+10]}get verticalTextBoxStartIndex(){return this._structArray.uint16[this._pos2+11]}get verticalTextBoxEndIndex(){return this._structArray.uint16[this._pos2+12]}get iconBoxStartIndex(){return this._structArray.uint16[this._pos2+13]}get iconBoxEndIndex(){return this._structArray.uint16[this._pos2+14]}get verticalIconBoxStartIndex(){return this._structArray.uint16[this._pos2+15]}get verticalIconBoxEndIndex(){return this._structArray.uint16[this._pos2+16]}get featureIndex(){return this._structArray.uint16[this._pos2+17]}get numHorizontalGlyphVertices(){return this._structArray.uint16[this._pos2+18]}get numVerticalGlyphVertices(){return this._structArray.uint16[this._pos2+19]}get numIconVertices(){return this._structArray.uint16[this._pos2+20]}get numVerticalIconVertices(){return this._structArray.uint16[this._pos2+21]}get useRuntimeCollisionCircles(){return this._structArray.uint16[this._pos2+22]}get crossTileID(){return this._structArray.uint32[this._pos4+12]}set crossTileID(e){this._structArray.uint32[this._pos4+12]=e}get textBoxScale(){return this._structArray.float32[this._pos4+13]}get collisionCircleDiameter(){return this._structArray.float32[this._pos4+14]}get textAnchorOffsetStartIndex(){return this._structArray.uint16[this._pos2+30]}get textAnchorOffsetEndIndex(){return this._structArray.uint16[this._pos2+31]}get heightOffset(){return this._structArray.float32[this._pos4+16]}};rne.prototype.size=68;ine=class extends SE{get(e){return new rne(this,e)}};Yt("SymbolInstanceArray",ine);ane=class extends R4{getoffsetX(e){return this.float32[e*1+0]}};Yt("GlyphOffsetArray",ane);nne=class extends L4{getx(e){return this.int16[e*3+0]}gety(e){return this.int16[e*3+1]}gettileUnitDistanceFromAnchor(e){return this.int16[e*3+2]}};Yt("SymbolLineVertexArray",nne);one=class extends b2{get textAnchor(){return this._structArray.uint16[this._pos2+0]}get textOffset0(){return this._structArray.float32[this._pos4+1]}get textOffset1(){return this._structArray.float32[this._pos4+2]}};one.prototype.size=12;sne=class extends EE{get(e){return new one(this,e)}};Yt("TextAnchorOffsetArray",sne);lne=class extends b2{get featureIndex(){return this._structArray.uint32[this._pos4+0]}get sourceLayerIndex(){return this._structArray.uint16[this._pos2+2]}get bucketIndex(){return this._structArray.uint16[this._pos2+3]}};lne.prototype.size=8;une=class extends kE{get(e){return new lne(this,e)}};Yt("FeatureIndexArray",une);Ah=class extends Jy{},cne=class extends L4{},hne=class extends pE{},hze=class extends Jy{},fze=class extends Jy{},dze=class extends mE{},pze=class extends vE{},mze=class extends Qy{},J1=class extends gE{},zte=class extends yE{},vze=class extends _E{},gze=class extends xE{},yze=class extends bE{},Rte=class extends AE{},fne=class extends TE{},_ze=class extends ME{},dne=class extends z4{},Ru=class extends z4{},IE=class extends CE{},pne=class extends FE{},LE=wa([{name:"a_pos",components:2,type:"Int16"}],4),xze=LE.members;LE.size,LE.alignment;ma=class im{constructor(t=[]){this._forceNewSegmentOnNextPrepare=!1,this.segments=t}prepareSegment(t,r,i,a){let n=this.segments[this.segments.length-1];return t>im.MAX_VERTEX_ARRAY_LENGTH&&$r(`Max vertices per segment is ${im.MAX_VERTEX_ARRAY_LENGTH}: bucket requested ${t}. Consider using the \`fillLargeMeshArrays\` function if you require meshes with more than ${im.MAX_VERTEX_ARRAY_LENGTH} vertices.`),this._forceNewSegmentOnNextPrepare||!n||n.vertexLength+t>im.MAX_VERTEX_ARRAY_LENGTH||n.sortKey!==a?this.createNewSegment(r,i,a):n}createNewSegment(t,r,i){let a={vertexOffset:t.length,primitiveOffset:r.length,vertexLength:0,primitiveLength:0,vaos:{}};return i!==void 0&&(a.sortKey=i),this._forceNewSegmentOnNextPrepare=!1,this.segments.push(a),a}getOrCreateLatestSegment(t,r,i){return this.prepareSegment(0,t,r,i)}forceNewSegmentOnNextPrepare(){this._forceNewSegmentOnNextPrepare=!0}get(){return this.segments}destroy(){for(let t of this.segments)for(let r in t.vaos)t.vaos[r].destroy()}static simpleSegment(t,r,i,a){return new im([{vertexOffset:t,primitiveOffset:r,vertexLength:i,primitiveLength:a,vaos:{},sortKey:0}])}};ma.MAX_VERTEX_ARRAY_LENGTH=2**16-1,Yt("SegmentVector",ma);bze=wa([{name:"a_pattern_from",components:4,type:"Uint16"},{name:"a_pattern_to",components:4,type:"Uint16"},{name:"a_pixel_ratio_from",components:1,type:"Uint16"},{name:"a_pixel_ratio_to",components:1,type:"Uint16"}]),wze=wa([{name:"a_dasharray_from",components:4,type:"Uint16"},{name:"a_dasharray_to",components:4,type:"Uint16"}]),Aze=ck(((e,t)=>{function r(i,a){for(var n=i.length&3,o=i.length-n,s=a,l,u=3432918353,c=461845907,h,f=0;f>>16)*u&65535)<<16)&4294967295,h=h<<15|h>>>17,h=(h&65535)*c+(((h>>>16)*c&65535)<<16)&4294967295,s^=h,s=s<<13|s>>>19,l=(s&65535)*5+(((s>>>16)*5&65535)<<16)&4294967295,s=(l&65535)+27492+(((l>>>16)+58964&65535)<<16);switch(h=0,n){case 3:h^=(i.charCodeAt(f+2)&255)<<16;case 2:h^=(i.charCodeAt(f+1)&255)<<8;case 1:h^=i.charCodeAt(f)&255,h=(h&65535)*u+(((h>>>16)*u&65535)<<16)&4294967295,h=h<<15|h>>>17,h=(h&65535)*c+(((h>>>16)*c&65535)<<16)&4294967295,s^=h}return s^=i.length,s^=s>>>16,s=(s&65535)*2246822507+(((s>>>16)*2246822507&65535)<<16)&4294967295,s^=s>>>13,s=(s&65535)*3266489909+(((s>>>16)*3266489909&65535)<<16)&4294967295,s^=s>>>16,s>>>0}t!==void 0&&(t.exports=r)})),Tze=ck(((e,t)=>{function r(i,a){for(var n=i.length,o=a^n,s=0,l;n>=4;)l=i.charCodeAt(s)&255|(i.charCodeAt(++s)&255)<<8|(i.charCodeAt(++s)&255)<<16|(i.charCodeAt(++s)&255)<<24,l=(l&65535)*1540483477+(((l>>>16)*1540483477&65535)<<16),l^=l>>>24,l=(l&65535)*1540483477+(((l>>>16)*1540483477&65535)<<16),o=(o&65535)*1540483477+(((o>>>16)*1540483477&65535)<<16)^l,n-=4,++s;switch(n){case 3:o^=(i.charCodeAt(s+2)&255)<<16;case 2:o^=(i.charCodeAt(s+1)&255)<<8;case 1:o^=i.charCodeAt(s)&255,o=(o&65535)*1540483477+(((o>>>16)*1540483477&65535)<<16)}return o^=o>>>13,o=(o&65535)*1540483477+(((o>>>16)*1540483477&65535)<<16),o^=o>>>15,o>>>0}t.exports=r})),B4=qPe(ck(((e,t)=>{var r=Aze(),i=Tze();t.exports=r,t.exports.murmur3=r,t.exports.murmur2=i}))(),1),mne=class vne{constructor(){this.ids=[],this.positions=[],this.indexed=!1}add(t,r,i,a){this.ids.push(qte(t)),this.positions.push(r,i,a)}getPositions(t){if(!this.indexed)throw Error("Trying to get index, but feature positions are not indexed");let r=qte(t),i=0,a=this.ids.length-1;for(;i>1;this.ids[o]>=r?a=o:i=o+1}let n=[];for(;this.ids[i]===r;){let o=this.positions[3*i],s=this.positions[3*i+1],l=this.positions[3*i+2];n.push({index:o,start:s,end:l}),i++}return n}static serialize(t,r){let i=new Float64Array(t.ids),a=new Uint32Array(t.positions);return zE(i,a,0,i.length-1),r&&r.push(i.buffer,a.buffer),{ids:i,positions:a}}static deserialize(t){let r=new vne;return r.ids=t.ids,r.positions=t.positions,r.indexed=!0,r}};Yt("FeaturePositionMap",mne);Th=class{constructor(e,t){this.gl=e.gl,this.location=t}},lr=class extends Th{constructor(e,t){super(e,t),this.current=0}set(e){this.current!==e&&(this.current=e,this.gl.uniform1i(this.location,e))}},Gt=class extends Th{constructor(e,t){super(e,t),this.current=0}set(e){this.current!==e&&(this.current=e,this.gl.uniform1f(this.location,e))}},Lr=class extends Th{constructor(e,t){super(e,t),this.current=[0,0]}set(e){(e[0]!==this.current[0]||e[1]!==this.current[1])&&(this.current=e,this.gl.uniform2f(this.location,e[0],e[1]))}},Io=class extends Th{constructor(e,t){super(e,t),this.current=[0,0,0]}set(e){(e[0]!==this.current[0]||e[1]!==this.current[1]||e[2]!==this.current[2])&&(this.current=e,this.gl.uniform3f(this.location,e[0],e[1],e[2]))}},Cm=class extends Th{constructor(e,t){super(e,t),this.current=[0,0,0,0]}set(e){(e[0]!==this.current[0]||e[1]!==this.current[1]||e[2]!==this.current[2]||e[3]!==this.current[3])&&(this.current=e,this.gl.uniform4f(this.location,e[0],e[1],e[2],e[3]))}},Mh=class extends Th{constructor(e,t){super(e,t),this.current=Dr.transparent}set(e){(e.r!==this.current.r||e.g!==this.current.g||e.b!==this.current.b||e.a!==this.current.a)&&(this.current=e,this.gl.uniform4f(this.location,e.r,e.g,e.b,e.a))}},Wk=class extends Th{constructor(e,t){super(e,t),this.current=[]}set(e){if(e!=this.current){this.current=e;let t=new Float32Array(e.length*4);for(let r=0;r`u_${i}`),this.type=r}setUniform(e,t,r){e.set(r.constantOr(this.value))}getBinding(e,t,r){return this.type==="color"?new Mh(e,t):new Gt(e,t)}},Ld=class{constructor(e,t){this.uniformNames=t.map(r=>`u_${r}`),this.patternFrom=null,this.patternTo=null,this.pixelRatioFrom=1,this.pixelRatioTo=1}setConstantPatternPositions(e,t){this.pixelRatioFrom=t.pixelRatio,this.pixelRatioTo=e.pixelRatio,this.patternFrom=t.tlbr,this.patternTo=e.tlbr}setConstantDashPositions(e,t){this.dashTo=[0,e.y,e.height,e.width],this.dashFrom=[0,t.y,t.height,t.width]}setUniform(e,t,r,i){let a=null;i==="u_pattern_to"?a=this.patternTo:i==="u_pattern_from"?a=this.patternFrom:i==="u_dasharray_to"?a=this.dashTo:i==="u_dasharray_from"?a=this.dashFrom:i==="u_pixel_ratio_to"?a=this.pixelRatioTo:i==="u_pixel_ratio_from"&&(a=this.pixelRatioFrom),a!==null&&e.set(a)}getBinding(e,t,r){return r.startsWith("u_pattern")||r.startsWith("u_dasharray_")?new Cm(e,t):new Gt(e,t)}},fh=class{constructor(e,t,r,i){this.expression=e,this.type=r,this.maxValue=0,this.paintVertexAttributes=t.map(a=>({name:`a_${a}`,type:"Float32",components:r==="color"?2:1,offset:0})),this.paintVertexArray=new i}populatePaintArray(e,t,r){let i=this.paintVertexArray.length,a=this.expression.evaluate(new Si(0,r),t,{},r.canonical,[],r.formattedSection);this.paintVertexArray.resize(e),this._setPaintValue(i,e,a)}updatePaintArray(e,t,r,i,a){let n=this.expression.evaluate(new Si(0,a),r,i);this._setPaintValue(e,t,n)}_setPaintValue(e,t,r){if(this.type==="color"){let i=RE(r);for(let a=e;a`u_${o}_t`),this.type=r,this.useIntegerZoom=i,this.zoom=a,this.maxValue=0,this.paintVertexAttributes=t.map(o=>({name:`a_${o}`,type:"Float32",components:r==="color"?4:2,offset:0})),this.paintVertexArray=new n}populatePaintArray(e,t,r){let i=this.expression.evaluate(new Si(this.zoom,r),t,{},r.canonical,[],r.formattedSection),a=this.expression.evaluate(new Si(this.zoom+1,r),t,{},r.canonical,[],r.formattedSection),n=this.paintVertexArray.length;this.paintVertexArray.resize(e),this._setPaintValue(n,e,i,a)}updatePaintArray(e,t,r,i,a){let n=this.expression.evaluate(new Si(this.zoom,a),r,i),o=this.expression.evaluate(new Si(this.zoom+1,a),r,i);this._setPaintValue(e,t,n,o)}_setPaintValue(e,t,r,i){if(this.type==="color"){let a=RE(r),n=RE(i);for(let o=e;o`#define HAS_UNIFORM_${i}`))}return e}getBinderAttributes(){let e=[];for(let t in this.binders){let r=this.binders[t];if(r instanceof fh||r instanceof Eu)for(let i of r.paintVertexAttributes)e.push(i.name);else if(r instanceof If){let i=r.getVertexAttributes();for(let a of i)e.push(a.name)}}return e}getBinderUniforms(){let e=[];for(let t in this.binders){let r=this.binders[t];if(r instanceof Py||r instanceof Ld||r instanceof Eu)for(let i of r.uniformNames)e.push(i)}return e}getPaintVertexBuffers(){return this._buffers}getUniforms(e,t){let r=[];for(let i in this.binders){let a=this.binders[i];if(a instanceof Py||a instanceof Ld||a instanceof Eu){for(let n of a.uniformNames)if(t[n]){let o=a.getBinding(e,t[n],n);r.push({name:n,property:i,binding:o})}}}return r}setUniforms(e,t,r,i){for(let{name:a,property:n,binding:o}of t)this.binders[n].setUniform(o,i,r.get(n),a)}updatePaintBuffers(e){this._buffers=[];for(let t in this.binders){let r=this.binders[t];if(e&&r instanceof If){let i=e.fromScale===2?r.zoomInPaintVertexBuffer:r.zoomOutPaintVertexBuffer;i&&this._buffers.push(i)}else(r instanceof fh||r instanceof Eu)&&r.paintVertexBuffer&&this._buffers.push(r.paintVertexBuffer)}}upload(e){for(let t in this.binders){let r=this.binders[t];(r instanceof fh||r instanceof Eu||r instanceof If)&&r.upload(e)}this.updatePaintBuffers()}destroy(){for(let e in this.binders){let t=this.binders[e];(t instanceof fh||t instanceof Eu||t instanceof If)&&t.destroy()}}},Gd=class{constructor(e,t,r=()=>!0){this.programConfigurations={};for(let i of e)this.programConfigurations[i.id]=new _ne(i,t,r);this.needsUpload=!1,this._featureMap=new mne,this._bufferOffset=0}populatePaintArrays(e,t,r,i){for(let a in this.programConfigurations)this.programConfigurations[a].populatePaintArrays(e,t,i);t.id!==void 0&&this._featureMap.add(t.id,r,this._bufferOffset,e),this._bufferOffset=e,this.needsUpload=!0}updatePaintArrays(e,t,r,i){for(let a of r)this.needsUpload=this.programConfigurations[a.id].updatePaintArrays(e,this._featureMap,t,a,i)||this.needsUpload}get(e){return this.programConfigurations[e]}upload(e){if(this.needsUpload){for(let t in this.programConfigurations)this.programConfigurations[t].upload(e);this.needsUpload=!1}}destroy(){for(let e in this.programConfigurations)this.programConfigurations[e].destroy()}};Yt("ConstantBinder",Py),Yt("CrossFadedConstantBinder",Ld),Yt("SourceExpressionBinder",fh),Yt("CrossFadedPatternBinder",gne),Yt("CrossFadedDasharrayBinder",yne),Yt("CompositeExpressionBinder",Eu),Yt("ProgramConfiguration",_ne,{omit:["_buffers"]}),Yt("ProgramConfigurationSet",Gd);BE=2**14-1,Nte=-BE-1;Vte=-32768;Kk=class{constructor(e){this.zoom=e.zoom,this.overscaling=e.overscaling,this.layers=e.layers,this.layerIds=this.layers.map(t=>t.id),this.index=e.index,this.hasDependencies=!1,this.layoutVertexArray=new hze,this.indexArray=new Ru,this.segments=new ma,this.programConfigurations=new Gd(e.layers,e.zoom),this.stateDependentLayerIds=this.layers.filter(t=>t.isStateDependent()).map(t=>t.id)}populate(e,t,r){let i=this.layers[0],a=[],n=null,o=!1,s=i.type==="heatmap";if(i.type==="circle"){let h=i;n=h.layout.get("circle-sort-key"),o=!n.isConstant(),s||(s=h.paint.get("circle-pitch-alignment")==="map")}let l=s?t.subdivisionGranularity.circle:1,u=new Si(this.zoom),c=this.layers[0]._featureFilter.needGeometry;for(let{feature:h,id:f,index:d,sourceLayerIndex:p}of e){let m=Hf(h,c);if(!this.layers[0]._featureFilter.filter(u,m,r))continue;let g=o?n.evaluate(m,{},r):void 0,y={id:f,properties:h.properties,type:h.type,sourceLayerIndex:p,index:d,geometry:c?m.geometry:Xd(h),patterns:{},sortKey:g};a.push(y)}o&&a.sort((h,f)=>h.sortKey-f.sortKey);for(let h of a){let{geometry:f,index:d,sourceLayerIndex:p}=h,m=e[d].feature;this.addFeature(h,f,d,r,l),t.featureIndex.insert(m,f,d,p,this.index)}}update(e,t,r){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(e,t,this.stateDependentLayers,{imagePositions:r})}addFeatures(e){}isEmpty(){return this.layoutVertexArray.length===0}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(e){this.uploaded||(this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,xze),this.indexBuffer=e.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(e),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())}addFeature(e,t,r,i,a=1){let n;switch(a){case 1:n=[0,7];break;case 3:n=[0,2,5,7];break;case 5:n=[0,1,3,4,6,7];break;case 7:n=[0,1,2,3,4,5,6,7];break;default:throw Error(`Invalid circle bucket granularity: ${a}; valid values are 1, 3, 5, 7.`)}let o=n.length;for(let s of t)for(let l of s){let u=l.x,c=l.y;if(u<0||u>=8192||c<0||c>=8192)continue;let h=this.segments.prepareSegment(o*o,this.layoutVertexArray,this.indexArray,e.sortKey),f=h.vertexLength;for(let d=0;dGte||(Gte=new Fn({"circle-sort-key":new cr(Xe.layout_circle["circle-sort-key"],"circle-sort-key")})),Uze=()=>jte||(jte=new Fn({"circle-radius":new cr(Xe.paint_circle["circle-radius"],"circle-radius"),"circle-color":new cr(Xe.paint_circle["circle-color"],"circle-color"),"circle-blur":new cr(Xe.paint_circle["circle-blur"],"circle-blur"),"circle-opacity":new cr(Xe.paint_circle["circle-opacity"],"circle-opacity"),"circle-translate":new Ut(Xe.paint_circle["circle-translate"],"circle-translate"),"circle-translate-anchor":new Ut(Xe.paint_circle["circle-translate-anchor"],"circle-translate-anchor"),"circle-pitch-scale":new Ut(Xe.paint_circle["circle-pitch-scale"],"circle-pitch-scale"),"circle-pitch-alignment":new Ut(Xe.paint_circle["circle-pitch-alignment"],"circle-pitch-alignment"),"circle-stroke-width":new cr(Xe.paint_circle["circle-stroke-width"],"circle-stroke-width"),"circle-stroke-color":new cr(Xe.paint_circle["circle-stroke-color"],"circle-stroke-color"),"circle-stroke-opacity":new cr(Xe.paint_circle["circle-stroke-opacity"],"circle-stroke-opacity")})),Gze={get paint(){return Uze()},get layout(){return Vze()}},Ane=e=>e.type==="circle",jze=class extends zu{constructor(e,t){super(e,Gze,t)}createBucket(e){return new Kk(e)}queryRadius(e){let t=e;return um("circle-radius",this,t)+um("circle-stroke-width",this,t)+Tw(this.paint.get("circle-translate"))}queryIntersectsFeature({queryGeometry:e,feature:t,featureState:r,geometry:i,transform:a,pixelsToTileUnits:n,unwrappedTileID:o,getElevation:s}){let l=Mw(e,this.paint.get("circle-translate"),this.paint.get("circle-translate-anchor"),-a.bearingInRadians,n),u=this.paint.get("circle-radius").evaluate(t,r)+this.paint.get("circle-stroke-width").evaluate(t,r),c=this.paint.get("circle-pitch-scale"),h=this.paint.get("circle-pitch-alignment"),f,d;return h==="map"?(f=l,d=u*n):(f=Nze(l,a,o,s),d=u),wne({queryGeometry:f,size:d,transform:a,unwrappedTileID:o,getElevation:s,pitchAlignment:h,pitchScale:c},i)}},Tne=class extends Kk{};Yt("HeatmapBucket",Tne,{omit:["layers"]});$ze=()=>$te||($te=new Fn({"heatmap-radius":new cr(Xe.paint_heatmap["heatmap-radius"],"heatmap-radius"),"heatmap-weight":new cr(Xe.paint_heatmap["heatmap-weight"],"heatmap-weight"),"heatmap-intensity":new Ut(Xe.paint_heatmap["heatmap-intensity"],"heatmap-intensity"),"heatmap-color":new bw(Xe.paint_heatmap["heatmap-color"],"heatmap-color"),"heatmap-opacity":new Ut(Xe.paint_heatmap["heatmap-opacity"],"heatmap-opacity")})),Hze={get paint(){return $ze()}};Dw=class Dne{constructor(t,r){tC(this,t,1,r)}resize(t){Mne(this,t,1)}clone(){return new Dne({width:this.width,height:this.height},new Uint8Array(this.data))}static copy(t,r,i,a,n){rC(t,r,i,a,n,1)}},aa=class Sne{constructor(t,r){tC(this,t,4,r)}resize(t){Mne(this,t,4)}replace(t,r){r?this.data.set(t):this.data=t instanceof Uint8ClampedArray?new Uint8Array(t.buffer):t}clone(){return new Sne({width:this.width,height:this.height},new Uint8Array(this.data))}static copy(t,r,i,a,n){rC(t,r,i,a,n,4)}setPixel(t,r,i){let a=(t*this.width+r)*4;this.data[a+0]=Math.round(i.r*255/i.a),this.data[a+1]=Math.round(i.g*255/i.a),this.data[a+2]=Math.round(i.b*255/i.a),this.data[a+3]=Math.round(i.a*255)}};Yt("AlphaImage",Dw),Yt("RGBAImage",aa);w2="big-fb",Ene=e=>e.type==="heatmap",Zze=class extends zu{createBucket(e){return new Tne(e)}constructor(e,t){super(e,Hze,t),this.heatmapFbos=new Map,this._updateColorRamp()}_handleSpecialPaintPropertyUpdate(e){e==="heatmap-color"&&this._updateColorRamp()}_updateColorRamp(){let e=this._transitionablePaint._values["heatmap-color"].value.expression;this.colorRamp=iC({expression:e,evaluationKey:"heatmapDensity",image:this.colorRamp}),this.colorRampTexture=null}resize(){this.heatmapFbos.has("big-fb")&&this.heatmapFbos.delete(w2)}queryRadius(e){return um("heatmap-radius",this,e)}queryIntersectsFeature({queryGeometry:e,feature:t,featureState:r,geometry:i,transform:a,pixelsToTileUnits:n,unwrappedTileID:o,getElevation:s}){return wne({queryGeometry:e,size:this.paint.get("heatmap-radius").evaluate(t,r)*n,transform:a,unwrappedTileID:o,getElevation:s},i)}hasOffscreenPass(){return this.paint.get("heatmap-opacity")!==0&&!this.isHidden()}},Yze=()=>Hte||(Hte=new Fn({"hillshade-illumination-direction":new Ut(Xe.paint_hillshade["hillshade-illumination-direction"],"hillshade-illumination-direction"),"hillshade-illumination-altitude":new Ut(Xe.paint_hillshade["hillshade-illumination-altitude"],"hillshade-illumination-altitude"),"hillshade-illumination-anchor":new Ut(Xe.paint_hillshade["hillshade-illumination-anchor"],"hillshade-illumination-anchor"),"hillshade-exaggeration":new Ut(Xe.paint_hillshade["hillshade-exaggeration"],"hillshade-exaggeration"),"hillshade-shadow-color":new Ut(Xe.paint_hillshade["hillshade-shadow-color"],"hillshade-shadow-color"),"hillshade-highlight-color":new Ut(Xe.paint_hillshade["hillshade-highlight-color"],"hillshade-highlight-color"),"hillshade-accent-color":new Ut(Xe.paint_hillshade["hillshade-accent-color"],"hillshade-accent-color"),"hillshade-method":new Ut(Xe.paint_hillshade["hillshade-method"],"hillshade-method"),resampling:new Ut(Xe.paint_hillshade.resampling,"resampling")})),Wze={get paint(){return Yze()}},kne=e=>e.type==="hillshade",Xze=class extends zu{constructor(e,t){super(e,Wze,t),this.recalculate({zoom:0,zoomHistory:{}},void 0)}getIlluminationProperties(){let e=this.paint.get("hillshade-illumination-direction").values,t=this.paint.get("hillshade-illumination-altitude").values,r=this.paint.get("hillshade-highlight-color").values,i=this.paint.get("hillshade-shadow-color").values,a=Math.max(e.length,t.length,r.length,i.length);e=e.concat(Array(a-e.length).fill(e.at(-1))),t=t.concat(Array(a-t.length).fill(t.at(-1))),r=r.concat(Array(a-r.length).fill(r.at(-1))),i=i.concat(Array(a-i.length).fill(i.at(-1)));let n=t.map(ua);return{directionRadians:e.map(ua),altitudeRadians:n,shadowColor:i,highlightColor:r}}hasOffscreenPass(){return this.paint.get("hillshade-exaggeration")!==0&&!this.isHidden()}},Kze=()=>Zte||(Zte=new Fn({"color-relief-opacity":new Ut(Xe["paint_color-relief"]["color-relief-opacity"],"color-relief-opacity"),"color-relief-color":new bw(Xe["paint_color-relief"]["color-relief-color"],"color-relief-color"),resampling:new Ut(Xe["paint_color-relief"].resampling,"resampling")})),Jze={get paint(){return Kze()}};cn=class{constructor(e,t,r,i){this.context=e,this.format=r,this.texture=e.gl.createTexture(),this._ownedHandle=this.texture,this.update(t,i)}update(e,t,r){var u;let{width:i,height:a}=e,n=(((u=this.size)==null?void 0:u[0])!==i||this.size[1]!==a)&&!r,{context:o}=this,{gl:s}=o;this.useMipmap=!!(t!=null&&t.useMipmap),n&&this.size&&this.format===s.RGBA&&(s.deleteTexture(this.texture),this.texture=s.createTexture(),this._ownedHandle=this.texture,this.magFilter=void 0,this.minFilter=void 0,this.wrap=void 0),s.bindTexture(s.TEXTURE_2D,this.texture),o.pixelStoreUnpackFlipY.set(!1),o.pixelStoreUnpack.set(1);let l=this.format===s.RGBA&&(t==null?void 0:t.premultiply)!==!1;if(n)if(this.size=[i,a],this.format===s.RGBA&&i>0&&a>0){let c=this.useMipmap?Math.floor(Math.log2(Math.max(i,a)))+1:1;if(s.texStorage2D(s.TEXTURE_2D,c,s.RGBA8,i,a),c4(e)){o.pixelStoreUnpackPremultiplyAlpha.set(!1);let{data:h}=e;l&&h&&(h=Z9(h)),h&&s.texSubImage2D(s.TEXTURE_2D,0,0,0,i,a,s.RGBA,s.UNSIGNED_BYTE,h)}else o.pixelStoreUnpackPremultiplyAlpha.set(l),s.texSubImage2D(s.TEXTURE_2D,0,0,0,s.RGBA,s.UNSIGNED_BYTE,e)}else c4(e)?(o.pixelStoreUnpackPremultiplyAlpha.set(!1),this._uploadRawData(e,l,i,a,s)):(o.pixelStoreUnpackPremultiplyAlpha.set(l),this._uploadDomImage(e,s));else{let{x:c,y:h}=r||{x:0,y:0};c4(e)?(o.pixelStoreUnpackPremultiplyAlpha.set(!1),this._updateRawData(e,l,c,h,i,a,s)):(o.pixelStoreUnpackPremultiplyAlpha.set(l),this._updateDomImage(e,c,h,s))}this.useMipmap&&!(c4(e)&&e.data===null)&&s.generateMipmap(s.TEXTURE_2D),o.pixelStoreUnpackFlipY.setDefault(),o.pixelStoreUnpack.setDefault(),o.pixelStoreUnpackPremultiplyAlpha.setDefault()}_uploadDomImage(e,t){t.texImage2D(t.TEXTURE_2D,0,this.format,this.format,t.UNSIGNED_BYTE,e)}_uploadRawData(e,t,r,i,a){let{data:n}=e;t&&n&&(n=Z9(n)),a.texImage2D(a.TEXTURE_2D,0,this.format,r,i,0,this.format,a.UNSIGNED_BYTE,n)}_updateDomImage(e,t,r,i){i.texSubImage2D(i.TEXTURE_2D,0,t,r,i.RGBA,i.UNSIGNED_BYTE,e)}_updateRawData(e,t,r,i,a,n,o){let{data:s}=e;t&&s&&(s=Z9(s)),o.texSubImage2D(o.TEXTURE_2D,0,r,i,a,n,o.RGBA,o.UNSIGNED_BYTE,s)}bind(e,t,r){let{context:i}=this,{gl:a}=i;this.texture!==this._ownedHandle&&(this.texture=this._ownedHandle),a.bindTexture(a.TEXTURE_2D,this.texture),(r===a.LINEAR_MIPMAP_NEAREST||r===a.LINEAR_MIPMAP_LINEAR)&&!this.useMipmap&&(r=a.LINEAR);let n=r||e;e!==this.magFilter&&(a.texParameteri(a.TEXTURE_2D,a.TEXTURE_MAG_FILTER,e),this.magFilter=e),n!==this.minFilter&&(a.texParameteri(a.TEXTURE_2D,a.TEXTURE_MIN_FILTER,n),this.minFilter=n),t!==this.wrap&&(a.texParameteri(a.TEXTURE_2D,a.TEXTURE_WRAP_S,t),a.texParameteri(a.TEXTURE_2D,a.TEXTURE_WRAP_T,t),this.wrap=t)}generateMipmap(){if(!this.useMipmap)return;let{gl:e}=this.context;e.bindTexture(e.TEXTURE_2D,this.texture),e.generateMipmap(e.TEXTURE_2D)}destroy(){let{gl:e}=this.context;e.deleteTexture(this.texture),this.texture=null,this._ownedHandle=null}},Qze=(mh=class{constructor(t,r,i,a=1,n=1,o=1,s=0){if(this.uid=t,r.height!==r.width)throw RangeError("DEM tiles must be square");if(i&&!["mapbox","terrarium","custom"].includes(i)){$r(`"${i}" is not a valid encoding type. Valid types include "mapbox", "terrarium" and "custom".`);return}this.stride=r.height;let l=this.dim=r.height-4;switch(this.data=new Uint32Array(r.data.buffer),mh.byteViewCache.set(this,new Uint8Array(this.data.buffer)),i){case"terrarium":this.redFactor=256,this.greenFactor=1,this.blueFactor=1/256,this.baseShift=32768;break;case"custom":this.redFactor=a,this.greenFactor=n,this.blueFactor=o,this.baseShift=s;break;default:this.redFactor=6553.6,this.greenFactor=25.6,this.blueFactor=.1,this.baseShift=1e4}for(let c=-2;c=l)&&this.data.copyWithin(this._idx(0,c),h,h+l),this.data.fill(this.data[h],this._idx(-2,c),this._idx(0,c)),this.data.fill(this.data[h+l-1],this._idx(l,c),this._idx(l+1,c)+1)}let u=this._getByteView();this.min=2**53-1,this.max=-(2**53-1);for(let c=0;cthis.max&&(this.max=d),d=this.dim||a<-1||a>=this.dim)throw RangeError(`Out of range source coordinates for DEM data. x: ${t}, y: ${r}, dim: ${this.dim}`);let n=this._getByteView(),o=((a+2)*this.stride+i+2)*4,s=this.stride*4,l=t-i,u=r-a,c=this._unpackAtIndex(n,o),h=this._unpackAtIndex(n,o+4),f=this._unpackAtIndex(n,o+s),d=this._unpackAtIndex(n,o+s+4);return c*(1-l)*(1-u)+h*l*(1-u)+f*(1-l)*u+d*l*u}getUnpackVector(){return[this.redFactor,this.greenFactor,this.blueFactor,this.baseShift]}_idx(t,r){if(t<-2||t>=this.dim+2||r<-2||r>=this.dim+2)throw RangeError(`Out of range source coordinates for DEM data. x: ${t}, y: ${r}, dim: ${this.dim}`);return(r+2)*this.stride+(t+2)}unpack(t,r,i){return t*this.redFactor+r*this.greenFactor+i*this.blueFactor-this.baseShift}pack(t){return Cne(t,this.getUnpackVector())}getPixels(){return new aa({width:this.stride,height:this.stride},this._getByteView())}backfillBorder(t,r,i){if(this.dim!==t.dim)throw Error("dem dimension mismatch");let a=r*this.dim,n=r*this.dim+this.dim,o=i*this.dim,s=i*this.dim+this.dim;switch(r){case-1:a=n-2;break;case 1:n=a+2}switch(i){case-1:o=s-2;break;case 1:s=o+2}let l=-r*this.dim,u=-i*this.dim;for(let c=o;ce.type==="color-relief",eRe=class extends zu{constructor(e,t){super(e,Jze,t)}_createColorRamp(e){let t={elevationStops:[],colorStops:[]},r=this._transitionablePaint._values["color-relief-color"].value.expression;if(r instanceof Yy&&r._styleExpression.expression instanceof Ul){this.colorRampExpression=r;let n=r._styleExpression.expression;t.elevationStops=n.labels,t.colorStops=[];for(let o of t.elevationStops)t.colorStops.push(n.evaluate({globals:{elevation:o}}))}if(t.elevationStops.length<1&&(t.elevationStops=[0],t.colorStops=[Dr.transparent]),t.elevationStops.length<2&&(t.elevationStops.push(t.elevationStops[0]+1),t.colorStops.push(t.colorStops[0])),t.elevationStops.length<=e)return t;let i={elevationStops:[],colorStops:[]},a=(t.elevationStops.length-1)/(e-1);for(let n=0;ne)throw Error("Min granularity must not be greater than base granularity.");this._baseZoomGranularity=e,this._minGranularity=t}getGranularityForZoomLevel(e){let t=1<32767||t>32767)throw Error("Vertex coordinates are out of signed 16 bit integer range.");let r=Math.round(e)|0,i=Math.round(t)|0,a=this._getKey(r,i),n=this._vertexDictionary.get(a);if(n!==void 0)return n;let o=this._vertexBuffer.length/2;return this._vertexDictionary.set(a,o),this._vertexBuffer.push(r,i),o}_subdivideTrianglesScanline(e,t){if(this._granularity<2)return TRe(this._vertexBuffer,ARe(e,t));let r=[],i=e.length;for(let a=0;a=1||_<=0)||g&&(la)){c>=i&&c<=a&&n.push(r[(o+1)%3]);continue}if(!g&&w>0){let M=s+d*w,S=l+p*w;n.push(this._vertexToIndex(M,S))}let A=s+d*Math.max(w,0),T=s+d*Math.min(_,1);if(m||this._generateIntraEdgeVertices(n,s,l,u,c,A,T),!g&&_<1){let M=s+d*_,S=l+p*_;n.push(this._vertexToIndex(M,S))}(g||c>=i&&c<=a)&&n.push(r[(o+1)%3]),!g&&(c<=i||c>=a)&&this._generateInterEdgeVertices(n,s,l,u,c,h,f,T,i,a)}return n}_generateIntraEdgeVertices(e,t,r,i,a,n,o){let s=i-t,l=a-r,u=l===0,c=u?Math.min(t,i):Math.min(n,o),h=u?Math.max(t,i):Math.max(n,o),f=Math.floor(c/this._granularityCellSize)+1,d=Math.ceil(h/this._granularityCellSize)-1;if(u?t=f;p--){let m=p*this._granularityCellSize,g=r+l*(m-t)/s;e.push(this._vertexToIndex(m,g))}}_generateInterEdgeVertices(e,t,r,i,a,n,o,s,l,u){let c=a-r,h=n-i,f=o-a,d=(l-a)/f,p=(u-a)/f,m=Math.min(d,p),g=Math.max(d,p),y=i+h*m,x=Math.floor(Math.min(y,s)/this._granularityCellSize)+1,w=Math.ceil(Math.max(y,s)/this._granularityCellSize)-1,_=s=1||g<=0){let M=t-n,S=r-o,k=(l-o)/S,P=(u-o)/S,I=n+M*Math.min(k,P);x=Math.floor(Math.min(I,s)/this._granularityCellSize)+1,w=Math.ceil(Math.max(I,s)/this._granularityCellSize)-1,_=s0?u:l;if(_)for(let M=x;M<=w;M++){let S=M*this._granularityCellSize;e.push(this._vertexToIndex(S,T))}else for(let M=w;M>=x;M--){let S=M*this._granularityCellSize;e.push(this._vertexToIndex(S,T))}}_generateOutline(e,t){let r=[],i=0;for(let a of e){let n=this._granularity<2?this._ringPathIndices(a,i,t):this._pointArrayToIndices(Rd(a,this._granularity,!0));i+=a.length;let o=[];for(let s=1;s=2&&Bne(e)&&i.push(i[0]),i}_handlePoles(e){let t=!1,r=!1;this._canonical&&(this._canonical.y===0&&(t=!0),this._canonical.y===(1<a==(n===-32768)?(e.push(r),e.push(t),e.push(this._vertexToIndex(i,n)),e.push(this._vertexToIndex(a,n)),e.push(r),e.push(this._vertexToIndex(i,n))):(e.push(t),e.push(r),e.push(this._vertexToIndex(i,n)),e.push(r),e.push(this._vertexToIndex(a,n)),e.push(this._vertexToIndex(i,n)))}_fillPoles(e,t,r){let i=this._vertexBuffer,a=ft,n=e.length;for(let o=2;o=2&&((s=this._canonical)==null?void 0:s.z)===0&&(n=this._removeTrianglesOutsideTileX(n),o=o.map(l=>this._removeLinesOutsideTileX(l))),{verticesFlattened:this._vertexBuffer,indicesTriangles:n,indicesLineList:o}}_vertexOutsideTileX(e){let t=this._vertexBuffer[e*2];return t<0||t>8192}_removeTrianglesOutsideTileX(e){let t=[];for(let r=0;rt.id),this.index=e.index,this.hasDependencies=!1,this.sdfPatterns={},this.patternFeatures=[],this.layoutVertexArray=new fze,this.indexArray=new Ru,this.indexArray2=new IE,this.programConfigurations=new Gd(e.layers,e.zoom),this.segments=new ma,this.segments2=new ma,this.stateDependentLayerIds=this.layers.filter(t=>t.isStateDependent()).map(t=>t.id)}populate(e,t,r){this.hasDependencies=q4("fill",this.layers,t);let i=this.layers[0].layout.get("fill-sort-key"),a=!i.isConstant(),n=[],o=new Si(this.zoom),s=this.layers[0]._featureFilter.needGeometry;for(let{feature:l,id:u,index:c,sourceLayerIndex:h}of e){let f=Hf(l,s);if(!this.layers[0]._featureFilter.filter(o,f,r))continue;let d=a?i.evaluate(f,{},r,t.availableImages):void 0,p={id:u,properties:l.properties,type:l.type,sourceLayerIndex:h,index:c,geometry:s?f.geometry:Xd(l),patterns:{},sortKey:d};n.push(p)}a&&n.sort((l,u)=>l.sortKey-u.sortKey);for(let l of n){let{geometry:u,index:c,sourceLayerIndex:h}=l;if(this.hasDependencies){let d=aC("fill",this.layers,l,{zoom:this.zoom},t);this.patternFeatures.push(d)}else this.addFeature(l,u,c,r,{},t.subdivisionGranularity);let f=e[c].feature;t.featureIndex.insert(f,u,c,h,this.index)}}update(e,t,r){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(e,t,this.stateDependentLayers,{imagePositions:r})}addFeatures({options:e,canonical:t,patternPositions:r,patternMap:i}){this.detectSdfPatterns(i);for(let a of this.patternFeatures)this.addFeature(a,a.geometry,a.index,t,r,e.subdivisionGranularity)}detectSdfPatterns(e){for(let t of this.patternFeatures)for(let r in t.patterns){let i=t.patterns[r];this.recordSdfPattern(r,e[i.min]),this.recordSdfPattern(r,e[i.mid]),this.recordSdfPattern(r,e[i.max])}for(let t of this.layers){let r=t.paint.get("fill-pattern").constantOr(null);r&&(this.recordSdfPattern(t.id,e[r.from.toString()]),this.recordSdfPattern(t.id,e[r.to.toString()]))}}recordSdfPattern(e,t){if(!t)return;let r=t.sdf===!0,i=this.sdfPatterns[e];i===void 0?this.sdfPatterns[e]=r:i!==r&&$r(`Style sheet warning: Cannot mix SDF and non-SDF fill patterns in layer "${e}"`)}isEmpty(){return this.layoutVertexArray.length===0}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(e){this.uploaded||(this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,tRe),this.indexBuffer=e.createIndexBuffer(this.indexArray),this.indexBuffer2=e.createIndexBuffer(this.indexArray2)),this.programConfigurations.upload(e),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.indexBuffer2.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.segments2.destroy())}addFeature(e,t,r,i,a,n){for(let o of hw(t,500)){let s=Rne(o,i,n.fill.getGranularityForZoomLevel(i.z)),l=this.layoutVertexArray;qne((u,c)=>{l.emplaceBack(u,c)},this.segments,this.layoutVertexArray,this.indexArray,s.verticesFlattened,s.indicesTriangles,this.segments2,this.indexArray2,s.indicesLineList)}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,e,r,{imagePositions:a,canonical:i})}};Yt("FillBucket",One,{omit:["layers","patternFeatures"]});ERe=()=>Kte||(Kte=new Fn({"fill-sort-key":new cr(Xe.layout_fill["fill-sort-key"],"fill-sort-key")})),kRe=()=>Jte||(Jte=new Fn({"fill-antialias":new Ut(Xe.paint_fill["fill-antialias"],"fill-antialias"),"fill-opacity":new cr(Xe.paint_fill["fill-opacity"],"fill-opacity"),"fill-layer-opacity":new Ut(Xe.paint_fill["fill-layer-opacity"],"fill-layer-opacity"),"fill-color":new cr(Xe.paint_fill["fill-color"],"fill-color"),"fill-outline-color":new cr(Xe.paint_fill["fill-outline-color"],"fill-outline-color"),"fill-translate":new Ut(Xe.paint_fill["fill-translate"],"fill-translate"),"fill-translate-anchor":new Ut(Xe.paint_fill["fill-translate-anchor"],"fill-translate-anchor"),"fill-pattern":new Ky(Xe.paint_fill["fill-pattern"],"fill-pattern")})),CRe={get paint(){return kRe()},get layout(){return ERe()}},Nne=e=>e.type==="fill",FRe=class extends zu{constructor(e,t){super(e,CRe,t)}recalculate(e,t){super.recalculate(e,t);let r=this.paint._values["fill-outline-color"];r.value.kind==="constant"&&r.value.value===void 0&&(this.paint._values["fill-outline-color"]=this.paint._values["fill-color"])}createBucket(e){return new One(e)}queryRadius(){return Tw(this.paint.get("fill-translate"))}queryIntersectsFeature({queryGeometry:e,geometry:t,transform:r,pixelsToTileUnits:i}){return xne(Mw(e,this.paint.get("fill-translate"),this.paint.get("fill-translate-anchor"),-r.bearingInRadians,i),t)}isTileClipped(){return!0}},ZE=wa([{name:"a_pos",components:2,type:"Int16"},{name:"a_normal_ed",components:4,type:"Int16"}],4),PRe=wa([{name:"a_centroid",components:2,type:"Int16"}],4),IRe=ZE.members;ZE.size,ZE.alignment;Gl=class YE{constructor(){this.minX=1/0,this.maxX=-1/0,this.minY=1/0,this.maxY=-1/0}extend(t){return this.minX=Math.min(this.minX,t.x),this.minY=Math.min(this.minY,t.y),this.maxX=Math.max(this.maxX,t.x),this.maxY=Math.max(this.maxY,t.y),this}expandBy(t){return this.minX-=t,this.minY-=t,this.maxX+=t,this.maxY+=t,(this.minX>this.maxX||this.minY>this.maxY)&&(this.minX=1/0,this.maxX=-1/0,this.minY=1/0,this.maxY=-1/0),this}shrinkBy(t){return this.expandBy(-t)}map(t){let r=new YE;return r.extend(t(new Be(this.minX,this.minY))),r.extend(t(new Be(this.maxX,this.minY))),r.extend(t(new Be(this.minX,this.maxY))),r.extend(t(new Be(this.maxX,this.maxY))),r}static fromPoints(t){let r=new YE;for(let i of t)r.extend(i);return r}contains(t){return t.x>=this.minX&&t.x<=this.maxX&&t.y>=this.minY&&t.y<=this.maxY}empty(){return this.minX>this.maxX}width(){return this.maxX-this.minX}height(){return this.maxY-this.minY}covers(t){return!this.empty()&&!t.empty()&&t.minX>=this.minX&&t.maxX<=this.maxX&&t.minY>=this.minY&&t.maxY<=this.maxY}intersects(t){return!this.empty()&&!t.empty()&&t.minX<=this.maxX&&t.maxX>=this.minX&&t.minY<=this.maxY&&t.maxY>=this.minY}},Vne=Gl.fromPoints([new Be(0,0),new Be(ft,ft)]);A2=class{constructor(e,t,r,i,a){for(this.properties=Object.create(null),this.extent=r,this.type=0,this.id=void 0,this._pbf=e,this._geometry=-1,this._keys=i,this._values=a;e.pos>3,n===0)continue}if(n--,a===1)o+=e.readSVarint(),s+=e.readSVarint(),i&&r.push(i),i=[new Be(o,s)];else if(a===2)o+=e.readSVarint(),s+=e.readSVarint(),i&&i.push(new Be(o,s));else if(a===7)i&&i.push(i[0].clone());else throw Error(`unknown command ${a}`)}return i&&r.push(i),r}bbox(){if(this._geometry<0)throw Error("feature has no geometry");let e=this._pbf;e.pos=this._geometry;let t=e.readVarint()+e.pos,r=1,i=0,a=0,n=0,o=1/0,s=-1/0,l=1/0,u=-1/0;for(;e.pos>3,i===0)continue}if(i--,r===1||r===2)a+=e.readSVarint(),n+=e.readSVarint(),as&&(s=a),nu&&(u=n);else if(r!==7)throw Error(`unknown command ${r}`)}return[o,l,s,u]}toGeoJSON(e,t,r){let i=this.extent*2**r,a=this.extent*e,n=this.extent*t,o=this.loadGeometry();function s(h){return[(h.x+a)*360/i-180,360/Math.PI*Math.atan(Math.exp((1-(h.y+n)*2/i)*Math.PI))-90]}function l(h){return h.map(s)}let u;if(this.type===1){let h=[];for(let d of o)h.push(d[0]);let f=l(h);u=h.length===1?{type:"Point",coordinates:f[0]}:{type:"MultiPoint",coordinates:f}}else if(this.type===2){let h=o.map(l);u=h.length===1?{type:"LineString",coordinates:h[0]}:{type:"MultiLineString",coordinates:h}}else if(this.type===3){let h=Une(o),f=[];for(let d of h)f.push(d.map(l));u=f.length===1?{type:"Polygon",coordinates:f[0]}:{type:"MultiPolygon",coordinates:f}}else throw Error("unknown feature type");let c={type:"Feature",geometry:u,properties:this.properties};return this.id!=null&&(c.id=this.id),c}};A2.types=["Unknown","Point","LineString","Polygon"];zRe=class{constructor(e,t){for(this.version=1,this.name="",this.extent=4096,this.length=0,this._pbf=e,this._keys=[],this._values=[],this._features=[],t===void 0&&(t=e.length);e.pos=this._features.length)throw Error("feature index out of bounds");this._pbf.pos=this._features[e];let t=this._pbf.readVarint()+this._pbf.pos;return new A2(this._pbf,t,this.extent,this._keys,this._values)}};BRe=class{constructor(e,t=e.length){let r=Object.create(null);for(;e.pos90||this.lat<-90)throw Error("Invalid LngLat latitude value: must be between -90 and 90")}wrap(){return new Iy(Js(this.lng,-180,180),this.lat)}toArray(){return[this.lng,this.lat]}toString(){return`LngLat(${this.lng}, ${this.lat})`}distanceTo(t){let r=Math.PI/180,i=this.lat*r,a=t.lat*r,n=Math.sin(i)*Math.sin(a)+Math.cos(i)*Math.cos(a)*Math.cos((t.lng-this.lng)*r);return Lo*Math.acos(Math.min(n,1))}static convert(t){if(t instanceof Iy)return t;if(Array.isArray(t)&&(t.length===2||t.length===3))return new Iy(Number(t[0]),Number(t[1]));if(!Array.isArray(t)&&typeof t=="object"&&t)return new Iy(Number("lng"in t?t.lng:t.lon),Number(t.lat));throw Error("`LngLatLike` argument must be specified as a LngLat instance, an object {lng: , lat: }, an object {lon: , lat: }, or an array of [, ]")}},Gne=2*Math.PI*Lo;bi=class $ne{constructor(t,r,i=0){this.x=+t,this.y=+r,this.z=+i}static fromLngLat(t,r=0){let i=ar.convert(t);return new $ne(Kd(i.lng),Jd(i.lat),Zf(r,i.lat))}toLngLat(){return new ar(Ew(this.x),Am(this.y))}toAltitude(){return nC(this.z,this.y)}meterInMercatorCoordinateUnits(){return 1/Gne*qRe(Am(this.y))}},Yf=89.25;Y9=8192;Zne=class{constructor(e){this.zoom=e.zoom,this.overscaling=e.overscaling,this.layers=e.layers,this.layerIds=this.layers.map(t=>t.id),this.index=e.index,this.hasDependencies=!1,this.layoutVertexArray=new dze,this.centroidVertexArray=new Ah,this.indexArray=new Ru,this.programConfigurations=new Gd(e.layers,e.zoom),this.segments=new ma,this.stateDependentLayerIds=this.layers.filter(t=>t.isStateDependent()).map(t=>t.id)}populate(e,t,r){this.features=[],this.hasDependencies=q4("fill-extrusion",this.layers,t);let i=new Si(this.zoom),a=this.layers[0],n=a.layout.get("fill-extrusion-rounded-corner-distance"),o=n>0?VRe(n,r):0,s=a._featureFilter.needGeometry;for(let{feature:l,id:u,index:c,sourceLayerIndex:h}of e){let f=Hf(l,s);if(!a._featureFilter.filter(i,f,r))continue;let d={id:u,sourceLayerIndex:h,index:c,geometry:NRe(s?f.geometry:Xd(l),o),properties:l.properties,type:l.type,patterns:{}};this.hasDependencies?this.features.push(aC("fill-extrusion",this.layers,d,{zoom:this.zoom},t)):this.addFeature(d,d.geometry,c,r,{},t.subdivisionGranularity),t.featureIndex.insert(l,d.geometry,c,h,this.index,!0)}}addFeatures({options:e,canonical:t,patternPositions:r}){for(let i of this.features){let{geometry:a}=i;this.addFeature(i,a,i.index,t,r,e.subdivisionGranularity)}}update(e,t,r){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(e,t,this.stateDependentLayers,{imagePositions:r})}isEmpty(){return this.layoutVertexArray.length===0&&this.centroidVertexArray.length===0}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(e){this.uploaded||(this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,IRe),this.centroidVertexBuffer=e.createVertexBuffer(this.centroidVertexArray,PRe.members,!0),this.indexBuffer=e.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(e),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.centroidVertexBuffer.destroy())}addFeature(e,t,r,i,a,n){for(let o of hw(t,500)){let s={x:0,y:0,sampleCount:0},l=this.layoutVertexArray.length;this.processPolygon(s,i,e,o,n);let u=this.layoutVertexArray.length-l,c=Math.floor(s.x/s.sampleCount),h=Math.floor(s.y/s.sampleCount);for(let f=0;f{Ty(u,c,h,0,0,1,1,0)},this.segments,this.layoutVertexArray,this.indexArray,l.verticesFlattened,l.indicesTriangles)}_generateSideFaces(e,t){let r=0;for(let i=1;ima.MAX_VERTEX_ARRAY_LENGTH&&(t.segment=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray));let o=a.sub(n)._perp()._unit(),s=n.dist(a);r+s>32768&&(r=0),Ty(this.layoutVertexArray,a.x,a.y,o.x,o.y,0,0,r),Ty(this.layoutVertexArray,a.x,a.y,o.x,o.y,0,1,r),r+=s,Ty(this.layoutVertexArray,n.x,n.y,o.x,o.y,0,0,r),Ty(this.layoutVertexArray,n.x,n.y,o.x,o.y,0,1,r);let l=t.segment.vertexLength;this.indexArray.emplaceBack(l,l+2,l+1),this.indexArray.emplaceBack(l+1,l+2,l+3),t.segment.vertexLength+=4,t.segment.primitiveLength+=2}}};Yt("FillExtrusionBucket",Zne,{omit:["layers","features"]});HRe=()=>ere||(ere=new Fn({"fill-extrusion-rounded-corner-distance":new Ut(Xe["layout_fill-extrusion"]["fill-extrusion-rounded-corner-distance"],"fill-extrusion-rounded-corner-distance")})),ZRe=()=>tre||(tre=new Fn({"fill-extrusion-opacity":new Ut(Xe["paint_fill-extrusion"]["fill-extrusion-opacity"],"fill-extrusion-opacity"),"fill-extrusion-color":new cr(Xe["paint_fill-extrusion"]["fill-extrusion-color"],"fill-extrusion-color"),"fill-extrusion-translate":new Ut(Xe["paint_fill-extrusion"]["fill-extrusion-translate"],"fill-extrusion-translate"),"fill-extrusion-translate-anchor":new Ut(Xe["paint_fill-extrusion"]["fill-extrusion-translate-anchor"],"fill-extrusion-translate-anchor"),"fill-extrusion-pattern":new Ky(Xe["paint_fill-extrusion"]["fill-extrusion-pattern"],"fill-extrusion-pattern"),"fill-extrusion-height":new cr(Xe["paint_fill-extrusion"]["fill-extrusion-height"],"fill-extrusion-height"),"fill-extrusion-base":new cr(Xe["paint_fill-extrusion"]["fill-extrusion-base"],"fill-extrusion-base"),"fill-extrusion-vertical-gradient":new Ut(Xe["paint_fill-extrusion"]["fill-extrusion-vertical-gradient"],"fill-extrusion-vertical-gradient")})),YRe={get paint(){return ZRe()},get layout(){return HRe()}},Yne=e=>e.type==="fill-extrusion",WRe=class extends zu{constructor(e,t){super(e,YRe,t)}createBucket(e){return new Zne(e)}queryRadius(){return Tw(this.paint.get("fill-extrusion-translate"))}is3D(){return!0}queryIntersectsFeature({queryGeometry:e,feature:t,featureState:r,geometry:i,transform:a,pixelsToTileUnits:n,pixelPosMatrix:o}){let s=Mw(e,this.paint.get("fill-extrusion-translate"),this.paint.get("fill-extrusion-translate-anchor"),-a.bearingInRadians,n),l=this.paint.get("fill-extrusion-height").evaluate(t,r),u=this.paint.get("fill-extrusion-base").evaluate(t,r),c=JRe(s,o,0),h=KRe(i,u,l,o),f=h[0],d=h[1];return XRe(f,d,c)}};QRe="geojsonvt_clip_start",eBe="geojsonvt_clip_end",XE=wa([{name:"a_pos_normal",components:2,type:"Int16"},{name:"a_data",components:4,type:"Uint8"}],4),tBe=XE.members;XE.size,XE.alignment;KE=wa([{name:"a_uv_x",components:1,type:"Float32"},{name:"a_split_index",components:1,type:"Float32"}]),rBe=KE.members;KE.size,KE.alignment;iBe=Math.cos(75/2*(Math.PI/180)),Wne=1/2,ire=2**14/Wne,Xne=class{constructor(e){this.zoom=e.zoom,this.overscaling=e.overscaling,this.layers=e.layers,this.layerIds=this.layers.map(t=>t.id),this.index=e.index,this.hasDependencies=!1,this.patternFeatures=[],this.lineClipsArray=[],this.gradients={};for(let t of this.layers)this.gradients[t.id]={};this.layoutVertexArray=new pze,this.layoutVertexArray2=new mze,this.indexArray=new Ru,this.programConfigurations=new Gd(e.layers,e.zoom),this.segments=new ma,this.maxLineLength=0,this.stateDependentLayerIds=this.layers.filter(t=>t.isStateDependent()).map(t=>t.id)}populate(e,t,r){this.hasDependencies=q4("line",this.layers,t)||this.hasLineDasharray(this.layers);let i=this.layers[0].layout.get("line-sort-key"),a=!i.isConstant(),n=[],o=new Si(this.zoom),s=this.layers[0]._featureFilter.needGeometry;for(let{feature:l,id:u,index:c,sourceLayerIndex:h}of e){let f=Hf(l,s);if(!this.layers[0]._featureFilter.filter(o,f,r))continue;let d=a?i.evaluate(f,{},r):void 0,p={id:u,properties:l.properties,type:l.type,sourceLayerIndex:h,index:c,geometry:s?f.geometry:Xd(l),patterns:{},dashes:{},sortKey:d};n.push(p)}a&&n.sort((l,u)=>l.sortKey-u.sortKey);for(let l of n){let{geometry:u,index:c,sourceLayerIndex:h}=l;this.hasDependencies?(q4("line",this.layers,t)?aC("line",this.layers,l,{zoom:this.zoom},t):this.hasLineDasharray(this.layers)&&this.addLineDashDependencies(this.layers,l,this.zoom,t),this.patternFeatures.push(l)):this.addFeature(l,u,c,r,{},{},t.subdivisionGranularity);let f=e[c].feature;t.featureIndex.insert(f,u,c,h,this.index)}}update(e,t,r,i){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(e,t,this.stateDependentLayers,{imagePositions:r,dashPositions:i})}addFeatures({options:e,canonical:t,patternPositions:r,dashPositions:i}){for(let a of this.patternFeatures)this.addFeature(a,a.geometry,a.index,t,r,i,e.subdivisionGranularity)}isEmpty(){return this.layoutVertexArray.length===0}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(e){this.uploaded||(this.layoutVertexArray2.length!==0&&(this.layoutVertexBuffer2=e.createVertexBuffer(this.layoutVertexArray2,rBe)),this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,tBe),this.indexBuffer=e.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(e),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())}lineFeatureClips(e){if(e.properties&&Object.hasOwn(e.properties,"geojsonvt_clip_start")&&Object.hasOwn(e.properties,"geojsonvt_clip_end"))return{start:+e.properties[QRe],end:+e.properties[eBe]}}addFeature(e,t,r,i,a,n,o){let s=this.layers[0].layout,l=s.get("line-join").evaluate(e,{}),u=s.get("line-cap").evaluate(e,{}),c=s.get("line-miter-limit").evaluate(e,{}),h=s.get("line-round-limit").evaluate(e,{});this.lineClips=this.lineFeatureClips(e);for(let f of t)this.addLine(f,e,l,u,c,h,i,o);this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,e,r,{imagePositions:a,dashPositions:n,canonical:i})}addLine(e,t,r,i,a,n,o,s){this.distance=0,this.scaledDistance=0,this.totalDistance=0;let l=o?s.line.getGranularityForZoomLevel(o.z):1;if(e=Rd(e,l),this.lineClips){this.lineClipsArray.push(this.lineClips);for(let w=0;w=2&&e[c-1].equals(e[c-2]);)c--;let h=0;for(;h0;if(k&&w>h){let L=p.dist(m);if(L>2*f){let z=p.sub(p.sub(m)._mult(f/L)._round());this.updateDistance(m,z),this.addCurrentVertex(z,y,0,0,d),m=z}}let I=m&&g,B=I?r:u?"butt":i;if(I&&B==="round"&&(Ma&&(B="bevel"),B==="bevel"&&(M>2&&(B="flipbevel"),M100)_=x.mult(-1);else{let L=M*y.add(x).mag()/y.sub(x).mag();_._perp()._mult(L*(P?-1:1))}this.addCurrentVertex(p,_,0,0,d),this.addCurrentVertex(p,_.mult(-1),0,0,d)}else if(B==="bevel"||B==="fakeround"){let L=-Math.sqrt(M*M-1),z=P?L:0,O=P?0:L;if(m&&this.addCurrentVertex(p,y,z,O,d),B==="fakeround"){let V=Math.round(S*180/Math.PI/20);for(let $=1;$2*f){let z=p.add(g.sub(p)._mult(f/L)._round());this.updateDistance(p,z),this.addCurrentVertex(z,x,0,0,d),p=z}}}}addCurrentVertex(e,t,r,i,a,n=!1){let o=t.x+t.y*r,s=t.y-t.x*r,l=-t.x+t.y*i,u=-t.y-t.x*i;this.addHalfVertex(e,o,s,n,!1,r,a),this.addHalfVertex(e,l,u,n,!0,-i,a),this.distance>ire/2&&this.totalDistance===0&&(this.distance=0,this.updateScaledDistance(),this.addCurrentVertex(e,t,r,i,a,n))}addHalfVertex({x:e,y:t},r,i,a,n,o,s){let l=(this.lineClips?this.scaledDistance*(ire-1):this.scaledDistance)*Wne;if(this.layoutVertexArray.emplaceBack((e<<1)+ +!!a,(t<<1)+ +!!n,Math.round(63*r)+128,Math.round(63*i)+128,(o===0?0:o<0?-1:1)+1|(l&63)<<2,l>>6),this.lineClips){let c=(this.scaledDistance-this.lineClips.start)/(this.lineClips.end-this.lineClips.start);this.layoutVertexArray2.emplaceBack(c,this.lineClipsArray.length)}let u=s.vertexLength++;this.e1>=0&&this.e2>=0&&(this.indexArray.emplaceBack(this.e1,u,this.e2),s.primitiveLength++),n?this.e2=u:this.e1=u}updateScaledDistance(){this.scaledDistance=this.lineClips?this.lineClips.start+(this.lineClips.end-this.lineClips.start)*this.distance/this.totalDistance:this.distance}updateDistance(e,t){this.distance+=e.dist(t),this.updateScaledDistance()}hasLineDasharray(e){for(let t of e){let r=t.paint.get("line-dasharray");if(r&&!r.isConstant())return!0}return!1}addLineDashDependencies(e,t,r,i){for(let a of e){let n=a.paint.get("line-dasharray");if(!n||n.value.kind==="constant")continue;let o=a.layout.get("line-cap").evaluate(t,{})==="round",s={dasharray:n.value.evaluate({zoom:r-1},t,{}),round:o},l={dasharray:n.value.evaluate({zoom:r},t,{}),round:o},u={dasharray:n.value.evaluate({zoom:r+1},t,{}),round:o},c=`${s.dasharray.join(",")},${s.round}`,h=`${l.dasharray.join(",")},${l.round}`,f=`${u.dasharray.join(",")},${u.round}`;i.dashDependencies[c]=s,i.dashDependencies[h]=l,i.dashDependencies[f]=u,t.dashes[a.id]={min:c,mid:h,max:f}}}};Yt("LineBucket",Xne,{omit:["layers","patternFeatures"]});aBe=()=>are||(are=new Fn({"line-cap":new cr(Xe.layout_line["line-cap"],"line-cap"),"line-join":new cr(Xe.layout_line["line-join"],"line-join"),"line-miter-limit":new cr(Xe.layout_line["line-miter-limit"],"line-miter-limit"),"line-round-limit":new cr(Xe.layout_line["line-round-limit"],"line-round-limit"),"line-sort-key":new cr(Xe.layout_line["line-sort-key"],"line-sort-key")})),nBe=()=>nre||(nre=new Fn({"line-opacity":new cr(Xe.paint_line["line-opacity"],"line-opacity"),"line-layer-opacity":new Ut(Xe.paint_line["line-layer-opacity"],"line-layer-opacity"),"line-color":new cr(Xe.paint_line["line-color"],"line-color"),"line-translate":new Ut(Xe.paint_line["line-translate"],"line-translate"),"line-translate-anchor":new Ut(Xe.paint_line["line-translate-anchor"],"line-translate-anchor"),"line-width":new cr(Xe.paint_line["line-width"],"line-width"),"line-gap-width":new cr(Xe.paint_line["line-gap-width"],"line-gap-width"),"line-offset":new cr(Xe.paint_line["line-offset"],"line-offset"),"line-blur":new cr(Xe.paint_line["line-blur"],"line-blur"),"line-dasharray":new Ky(Xe.paint_line["line-dasharray"],"line-dasharray"),"line-pattern":new Ky(Xe.paint_line["line-pattern"],"line-pattern"),"line-gradient":new bw(Xe.paint_line["line-gradient"],"line-gradient")})),ore={get paint(){return nBe()},get layout(){return aBe()}},oBe=class extends cr{possiblyEvaluate(e,t){return t=new Si(Math.floor(t.zoom),{now:t.now,fadeDuration:t.fadeDuration,zoomHistory:t.zoomHistory,transition:t.transition}),super.possiblyEvaluate(e,t)}evaluate(e,t,r,i){return t=tr({},t,{zoom:Math.floor(t.zoom)}),super.evaluate(e,t,r,i)}},Kne=e=>e.type==="line",sBe=class extends zu{constructor(e,t){super(e,ore,t),this.gradientVersion=0,d4||(d4=new oBe(ore.paint.properties["line-width"].specification,"line-floorwidth"),d4.useIntegerZoom=!0)}_handleSpecialPaintPropertyUpdate(e){if(e==="line-gradient"){let t=this.gradientExpression();this.stepInterpolant=ELe(t)?t._styleExpression.expression instanceof kk:!1,this.gradientVersion=(this.gradientVersion+1)%(2**53-1)}}gradientExpression(){return this._transitionablePaint._values["line-gradient"].value.expression}recalculate(e,t){super.recalculate(e,t),this.paint._values["line-floorwidth"]=d4.possiblyEvaluate(this._transitioningPaint._values["line-width"].value,e)}createBucket(e){return new Xne(e)}queryRadius(e){let t=e,r=sre(um("line-width",this,t),um("line-gap-width",this,t)),i=um("line-offset",this,t);return r/2+Math.abs(i)+Tw(this.paint.get("line-translate"))}queryIntersectsFeature({queryGeometry:e,feature:t,featureState:r,geometry:i,transform:a,pixelsToTileUnits:n}){let o=Mw(e,this.paint.get("line-translate"),this.paint.get("line-translate-anchor"),-a.bearingInRadians,n),s=n/2*sre(this.paint.get("line-width").evaluate(t,r),this.paint.get("line-gap-width").evaluate(t,r)),l=this.paint.get("line-offset").evaluate(t,r);return l&&(i=zze(i,l*n)),kze(o,i,s)}isTileClipped(){return!0}};lBe=wa([{name:"a_pos_offset",components:4,type:"Int16"},{name:"a_data",components:4,type:"Uint16"},{name:"a_pixeloffset",components:4,type:"Int16"},{name:"a_height_offset",components:1,type:"Float32"}],4),uBe=wa([{name:"a_projected_pos",components:3,type:"Float32"}],4);wa([{name:"a_fade_opacity",components:1,type:"Uint32"}],4);cBe=wa([{name:"a_placed",components:2,type:"Uint8"},{name:"a_shift",components:2,type:"Float32"},{name:"a_box_real",components:2,type:"Int16"}]);wa([{type:"Int16",name:"anchorPointX"},{type:"Int16",name:"anchorPointY"},{type:"Int16",name:"x1"},{type:"Int16",name:"y1"},{type:"Int16",name:"x2"},{type:"Int16",name:"y2"},{type:"Uint32",name:"featureIndex"},{type:"Uint16",name:"sourceLayerIndex"},{type:"Uint16",name:"bucketIndex"}]);lre=wa([{name:"a_pos",components:2,type:"Int16"},{name:"a_anchor_pos",components:2,type:"Int16"},{name:"a_extrude",components:2,type:"Int16"}],4),Jne=wa([{name:"a_pos",components:2,type:"Float32"},{name:"a_radius",components:1,type:"Float32"},{name:"a_flags",components:2,type:"Int16"}],4);wa([{name:"triangle",components:3,type:"Uint16"}]),wa([{type:"Int16",name:"anchorX"},{type:"Int16",name:"anchorY"},{type:"Uint16",name:"glyphStartIndex"},{type:"Uint16",name:"numGlyphs"},{type:"Uint32",name:"vertexStartIndex"},{type:"Uint32",name:"lineStartIndex"},{type:"Uint32",name:"lineLength"},{type:"Uint16",name:"segment"},{type:"Uint16",name:"lowerSize"},{type:"Uint16",name:"upperSize"},{type:"Float32",name:"lineOffsetX"},{type:"Float32",name:"lineOffsetY"},{type:"Uint8",name:"writingMode"},{type:"Uint8",name:"placedOrientation"},{type:"Uint8",name:"hidden"},{type:"Uint32",name:"crossTileID"},{type:"Int16",name:"associatedIconIndex"},{type:"Float32",name:"heightOffset"}]),wa([{type:"Int16",name:"anchorX"},{type:"Int16",name:"anchorY"},{type:"Int16",name:"rightJustifiedTextSymbolIndex"},{type:"Int16",name:"centerJustifiedTextSymbolIndex"},{type:"Int16",name:"leftJustifiedTextSymbolIndex"},{type:"Int16",name:"verticalPlacedTextSymbolIndex"},{type:"Int16",name:"placedIconSymbolIndex"},{type:"Int16",name:"verticalPlacedIconSymbolIndex"},{type:"Uint16",name:"key"},{type:"Uint16",name:"textBoxStartIndex"},{type:"Uint16",name:"textBoxEndIndex"},{type:"Uint16",name:"verticalTextBoxStartIndex"},{type:"Uint16",name:"verticalTextBoxEndIndex"},{type:"Uint16",name:"iconBoxStartIndex"},{type:"Uint16",name:"iconBoxEndIndex"},{type:"Uint16",name:"verticalIconBoxStartIndex"},{type:"Uint16",name:"verticalIconBoxEndIndex"},{type:"Uint16",name:"featureIndex"},{type:"Uint16",name:"numHorizontalGlyphVertices"},{type:"Uint16",name:"numVerticalGlyphVertices"},{type:"Uint16",name:"numIconVertices"},{type:"Uint16",name:"numVerticalIconVertices"},{type:"Uint16",name:"useRuntimeCollisionCircles"},{type:"Uint32",name:"crossTileID"},{type:"Float32",name:"textBoxScale"},{type:"Float32",name:"collisionCircleDiameter"},{type:"Uint16",name:"textAnchorOffsetStartIndex"},{type:"Uint16",name:"textAnchorOffsetEndIndex"},{type:"Float32",name:"heightOffset"}]),wa([{type:"Float32",name:"offsetX"}]),wa([{type:"Int16",name:"x"},{type:"Int16",name:"y"},{type:"Int16",name:"tileUnitDistanceFromAnchor"}]),wa([{type:"Uint16",name:"textAnchor"},{type:"Float32",components:2,name:"textOffset"}]);V4=new class{constructor(){this.TIMEOUT=5e3,this.applyArabicShaping=null,this.processBidirectionalText=null,this.processStyledBidirectionalText=null,this.pluginStatus="unavailable",this.pluginURL=null,this.loadScriptResolve=()=>{}}setState(e){this.pluginStatus=e.pluginStatus,this.pluginURL=e.pluginURL}getState(){return{pluginStatus:this.pluginStatus,pluginURL:this.pluginURL}}setMethods(e){if(V4.isParsed())throw Error("RTL text plugin already registered.");this.applyArabicShaping=e.applyArabicShaping,this.processBidirectionalText=e.processBidirectionalText,this.processStyledBidirectionalText=e.processStyledBidirectionalText,this.loadScriptResolve()}isParsed(){return this.applyArabicShaping!=null&&this.processBidirectionalText!=null&&this.processStyledBidirectionalText!=null}getRTLTextPluginStatus(){return this.pluginStatus}syncState(e,t){return Kt(this,null,function*(){if(this.isParsed())return this.getState();if(e.pluginStatus!=="loading")return this.setState(e),e;let r=e.pluginURL,i=new Promise(n=>{this.loadScriptResolve=n}),a=new Promise(n=>setTimeout(()=>n(),this.TIMEOUT));if(yield t(r),yield Promise.race([i,a]),this.isParsed()){let n={pluginStatus:"loaded",pluginURL:r};return this.setState(n),n}throw this.setState({pluginStatus:"error",pluginURL:""}),Error(`RTL Text Plugin failed to import scripts from ${r}`)})}};gBe={C:"18g,1;g2,3;4nb,1",D:"17k,1;5,1;1,1;1,5;4,d;1,7;1,2;z,2;8,g;i,12;1,2;9,1;1,1;1,2;14,3;2,1;28,9;3,f;2,4;1,1;2,3;2,6;7a,1;2,5;1,1;g,a;5,2;2,6;1,f",R:"17m,4;1,1;1,1;5,4;l,1;14,3;1,3;g,i;12,1;2,9;1,1;1,1;2,2;1,1;o,2;2x,3;f,2;4,1;1,2;3,2;6u,j;b,1;r,3;1,1;2,2;6,1",T:"174,b;1,1;1a,l;g,1;2t,7;2,6;2,2;1,4;bt,9;16,o;1,t;1clb,1"},yBe={1569:[65152,0,0,0],1570:[65153,65154,0,0],1571:[65155,65156,0,0],1572:[65157,65158,0,0],1573:[65159,65160,0,0],1574:[65161,65162,65163,65164],1575:[65165,65166,0,0],1576:[65167,65168,65169,65170],1577:[65171,65172,0,0],1578:[65173,65174,65175,65176],1579:[65177,65178,65179,65180],1580:[65181,65182,65183,65184],1581:[65185,65186,65187,65188],1582:[65189,65190,65191,65192],1583:[65193,65194,0,0],1584:[65195,65196,0,0],1585:[65197,65198,0,0],1586:[65199,65200,0,0],1587:[65201,65202,65203,65204],1588:[65205,65206,65207,65208],1589:[65209,65210,65211,65212],1590:[65213,65214,65215,65216],1591:[65217,65218,65219,65220],1592:[65221,65222,65223,65224],1593:[65225,65226,65227,65228],1594:[65229,65230,65231,65232],1601:[65233,65234,65235,65236],1602:[65237,65238,65239,65240],1603:[65241,65242,65243,65244],1604:[65245,65246,65247,65248],1605:[65249,65250,65251,65252],1606:[65253,65254,65255,65256],1607:[65257,65258,65259,65260],1608:[65261,65262,0,0],1609:[65263,65264,64488,64489],1610:[65265,65266,65267,65268],1611:[65136,0,0,65137],1612:[65138,0,0,0],1613:[65140,0,0,0],1614:[65142,0,0,65143],1615:[65144,0,0,65145],1616:[65146,0,0,65147],1617:[65148,0,0,65149],1618:[65150,0,0,65151],1649:[64336,64337,0,0],1655:[64477,0,0,0],1657:[64358,64359,64360,64361],1658:[64350,64351,64352,64353],1659:[64338,64339,64340,64341],1662:[64342,64343,64344,64345],1663:[64354,64355,64356,64357],1664:[64346,64347,64348,64349],1667:[64374,64375,64376,64377],1668:[64370,64371,64372,64373],1670:[64378,64379,64380,64381],1671:[64382,64383,64384,64385],1672:[64392,64393,0,0],1676:[64388,64389,0,0],1677:[64386,64387,0,0],1678:[64390,64391,0,0],1681:[64396,64397,0,0],1688:[64394,64395,0,0],1700:[64362,64363,64364,64365],1702:[64366,64367,64368,64369],1705:[64398,64399,64400,64401],1709:[64467,64468,64469,64470],1711:[64402,64403,64404,64405],1713:[64410,64411,64412,64413],1715:[64406,64407,64408,64409],1722:[64414,64415,0,0],1723:[64416,64417,64418,64419],1726:[64426,64427,64428,64429],1728:[64420,64421,0,0],1729:[64422,64423,64424,64425],1733:[64480,64481,0,0],1734:[64473,64474,0,0],1735:[64471,64472,0,0],1736:[64475,64476,0,0],1737:[64482,64483,0,0],1739:[64478,64479,0,0],1740:[64508,64509,64510,64511],1744:[64484,64485,64486,64487],1746:[64430,64431,0,0],1747:[64432,64433,0,0]},_Be={\u0644\u0622:[65269,65270],\u0644\u0623:[65271,65272],\u0644\u0625:[65273,65274],\u0644\u0627:[65275,65276]},cre=1604,xBe=/[\u0600-\u06ff\u0750-\u077f\u0870-\u089f\u08a0-\u08ff\ufb50-\ufdff\ufe70-\ufeff]/;eoe=new Map;for(let[e,t]of Object.entries(gBe))bBe(t,e,eoe);toe=typeof Intl<"u"&&"Segmenter"in Intl;om={"!":"\uFE15","#":"\uFF03",$:"\uFF04","%":"\uFF05","&":"\uFF06","(":"\uFE35",")":"\uFE36","*":"\uFF0A","+":"\uFF0B",",":"\uFE10","-":"\uFE32",".":"\u30FB","/":"\uFF0F",":":"\uFE13",";":"\uFE14","<":"\uFE3F","=":"\uFF1D",">":"\uFE40","?":"\uFE16","@":"\uFF20","[":"\uFE47","\\":"\uFF3C","]":"\uFE48","^":"\uFF3E",_:"\uFE33","`":"\uFF40","{":"\uFE37","|":"\u2015","}":"\uFE38","~":"\uFF5E","\xA2":"\uFFE0","\xA3":"\uFFE1","\xA5":"\uFFE5","\xA6":"\uFFE4","\xAC":"\uFFE2","\xAF":"\uFFE3","\u2013":"\uFE32","\u2014":"\uFE31","\u2018":"\uFE43","\u2019":"\uFE44","\u201C":"\uFE41","\u201D":"\uFE42","\u2026":"\uFE19","\u22EF":"\uFE19","\u2027":"\u30FB","\u20A9":"\uFFE6","\u3001":"\uFE11","\u3002":"\uFE12","\u3008":"\uFE3F","\u3009":"\uFE40","\u300A":"\uFE3D","\u300B":"\uFE3E","\u300C":"\uFE41","\u300D":"\uFE42","\u300E":"\uFE43","\u300F":"\uFE44","\u3010":"\uFE3B","\u3011":"\uFE3C","\u3014":"\uFE39","\u3015":"\uFE3A","\u3016":"\uFE17","\u3017":"\uFE18","\uFF01":"\uFE15","\uFF08":"\uFE35","\uFF09":"\uFE36","\uFF0C":"\uFE10","\uFF0D":"\uFE32","\uFF0E":"\u30FB","\uFF1A":"\uFE13","\uFF1B":"\uFE14","\uFF1C":"\uFE3F","\uFF1E":"\uFE40","\uFF1F":"\uFE16","\uFF3B":"\uFE47","\uFF3D":"\uFE48","\uFF3F":"\uFE33","\uFF5B":"\uFE37","\uFF5C":"\u2015","\uFF5D":"\uFE38","\uFF5F":"\uFE35","\uFF60":"\uFE36","\uFF61":"\uFE12","\uFF62":"\uFE41","\uFF63":"\uFE42"};NBe={10:!0,13:!0,32:!0,38:!0,41:!0,43:!0,45:!0,47:!0,173:!0,183:!0,8203:!0,8208:!0,8211:!0,8231:!0},VBe={40:!0};uC=class ek{constructor(t="",r=[],i=[]){this.text=t,this.sections=r,this.sectionIndex=i,this.imageSectionID=null,this._graphemes=null}graphemes(){var t;return(t=this._graphemes)!=null||(this._graphemes=JE(this.text)),this._graphemes}static fromFeature(t,r){let i=new ek;for(let a of t.sections)a.image?i.addImageSection(a):i.addTextSection(a,r);return i}length(){return this.graphemes().length}getSection(t){return this.sections[this.sectionIndex[t]]}getSectionIndex(t){return this.sectionIndex[t]}verticalizePunctuation(){this.text=OBe(this.text),this._graphemes=null}hasZeroWidthSpaces(){return this.text.includes("\u200B")}trim(){let t=this.graphemes(),r=0;for(;rr&&vre(t[i-1]);)i--;this.text=t.slice(r,i).join(""),this.sectionIndex=this.sectionIndex.slice(r,i),this._graphemes=null}substring(t,r){let i=this.graphemes().slice(t,r).join(""),a=this.sectionIndex.slice(t,r);return new ek(i,this.sections,a)}toCodeUnitIndex(t){return this.graphemes().slice(0,t).join("").length}toString(){return this.text}getMaxScale(){return this.sectionIndex.reduce((t,r)=>Math.max(t,this.sections[r].scale),0)}getMaxImageSize(t){let r=0,i=0;for(let a=0;a0?i[i.length-1]:"",n=JE(a+t);this.text+=t,this._graphemes=i.slice(0,a?-1:void 0).concat(n);let o=n.length-+!!a;for(let s=0;s=63743?null:++this.imageSectionID:(this.imageSectionID=57344,this.imageSectionID)}determineLineBreaks(t,r,i,a,n){let o=[],s=this.determineAverageLineWidth(t,r,i,a,n),l=this.hasZeroWidthSpaces(),u=this.graphemes(),c=null,h=0,f=0;for(let d=0;d0){let m=u[d-1].codePointAt(0),g=p.codePointAt(0),y=dBe(m),x=ure(m)&&ure(g);(NBe[m]||y||"imageName"in this.getSection(d-1)||u[d+1]!==void 0&&VBe[g]||x&&(c!=null?c:c=RBe(this.text)).has(f))&&o.push(gre(d,h,s,o,UBe(m,g,y&&l),!1))}lC(p.codePointAt(0))||(h+=pre(p,this.getSection(d),i,a,t,n)),f+=p.length}return noe(gre(this.length(),h,s,o,0,!0))}determineAverageLineWidth(t,r,i,a,n){let o=0,s=0;for(let u of this.graphemes()){let c=this.getSection(s);o+=pre(u,c,i,a,t,n),s++}let l=Math.max(1,Math.ceil(o/r));return o/l}};cC=GBe(),jBe=/[\u061c\u200e\u200f\u202a-\u202e\u2066-\u2069]/,$Be=new Set(["WS","FSI","LRI","RLI","PDI"]),HBe=new Set(["S","B"]);tk=4294967296,Lat=1/tk,yre=typeof TextDecoder>"u"?null:new TextDecoder("utf-8"),soe=class{constructor(e){this.buf=ArrayBuffer.isView(e)?e:new Uint8Array(e),this.dataView=new DataView(this.buf.buffer,this.buf.byteOffset,this.buf.byteLength),this.pos=0,this.type=0,this._valueStart=-1,this.length=this.buf.length}readFields(e,t,r=this.length){let i;for(;i=this.nextField(r);)e(i,t,this);return t}readMessage(e,t){return this.readFields(e,t,this.readVarint()+this.pos)}readFixed32(){let e=this.dataView.getUint32(this.pos,!0);return this.pos+=4,e}readSFixed32(){let e=this.dataView.getInt32(this.pos,!0);return this.pos+=4,e}readFixed64(){let e=this.dataView.getUint32(this.pos,!0)+this.dataView.getUint32(this.pos+4,!0)*tk;return this.pos+=8,e}readSFixed64(){let e=this.dataView.getUint32(this.pos,!0)+this.dataView.getInt32(this.pos+4,!0)*tk;return this.pos+=8,e}readFloat(){let e=this.dataView.getFloat32(this.pos,!0);return this.pos+=4,e}readDouble(){let e=this.dataView.getFloat64(this.pos,!0);return this.pos+=8,e}readVarint(e){let t=this.buf,r=t[this.pos++];if(r<128)return r;let i=r&127,a;return a=t[this.pos++],i|=(a&127)<<7,a<128||(a=t[this.pos++],i|=(a&127)<<14,a<128)||(a=t[this.pos++],i|=(a&127)<<21,a<128)?i:(a=t[this.pos],i|=(a&15)<<28,rqe(i,e,this))}readSVarint(){let e=this.readVarint();return e%2==1?(e+1)/-2:e/2}readBoolean(){return!!this.readVarint()}readString(){let e=this.readVarint()+this.pos,t=this.pos;return this.pos=e,e-t>=12&&yre?yre.decode(this.buf.subarray(t,e)):aqe(this.buf,t,e)}readBytes(){let e=this.readVarint()+this.pos,t=this.buf.subarray(this.pos,e);return this.pos=e,t}readPackedVarint(e=[],t){let r=this.readPackedEnd();for(;this.pos=e)return 0;let t=this.readVarint();return this.type=t&7,this._valueStart=this.pos,t>>>3}skip(e){let t=e&7;if(t===0)for(;this.buf[this.pos++]>127;);else if(t===2)this.pos=this.readVarint()+this.pos;else if(t===5)this.pos+=4;else if(t===1)this.pos+=8;else throw Error(`Unimplemented type: ${t}`)}};Pw=class{constructor(e,{pixelRatio:t,version:r,isWebGLImage:i=!1,stretchX:a,stretchY:n,content:o,textFitWidth:s,textFitHeight:l}){this.paddedRect=e,this.pixelRatio=t,this.stretchX=a,this.stretchY=n,this.content=o,this.version=r,this.needsFirstWebGLRender=i,this.textFitWidth=s,this.textFitHeight=l}get tl(){return[this.paddedRect.x+1,this.paddedRect.y+1]}get br(){return[this.paddedRect.x+this.paddedRect.w-1,this.paddedRect.y+this.paddedRect.h-1]}get tlbr(){return this.tl.concat(this.br)}get displaySize(){return[(this.paddedRect.w-2)/this.pixelRatio,(this.paddedRect.h-2)/this.pixelRatio]}},lqe=class{constructor(e,t){let r={},i={};this.haveRenderCallbacks=[],this.patchedUpdateVersion=-1;let a=[];this.addImages(e,r,a),this.addImages(t,i,a);let{w:n,h:o}=hC(a),s=new aa({width:n||1,height:o||1});for(let l in e){let u=e[l];if(u.isWebGLImage)continue;let c=r[l].paddedRect;aa.copy(u.data,s,{x:0,y:0},{x:c.x+1,y:c.y+1},u.data)}for(let l in t){let u=t[l],c=i[l].paddedRect,h=c.x+1,f=c.y+1,d=u.data.width,p=u.data.height;aa.copy(u.data,s,{x:0,y:0},{x:h,y:f},u.data),aa.copy(u.data,s,{x:0,y:p-1},{x:h,y:f-1},{width:d,height:1}),aa.copy(u.data,s,{x:0,y:0},{x:h,y:f+p},{width:d,height:1}),aa.copy(u.data,s,{x:d-1,y:0},{x:h-1,y:f},{width:1,height:p}),aa.copy(u.data,s,{x:0,y:0},{x:h+d,y:f},{width:1,height:p})}this.image=s,this.iconPositions=r,this.patternPositions=i}addImages(e,t,r){for(let i in e){let a=e[i],n={x:0,y:0,w:a.data.width+2,h:a.data.height+2};r.push(n),t[i]=new Pw(n,a),a.hasRenderCallback&&this.haveRenderCallbacks.push(i)}}patchUpdatedImages(e,t){if(e.dispatchRenderCallbacks(this.haveRenderCallbacks),this.patchedUpdateVersion!==e.updateVersion){this.patchedUpdateVersion=e.updateVersion;for(let r in this.iconPositions)this.patchUpdatedImage(this.iconPositions[r],e.getImage(r),t);for(let r in this.patternPositions)this.patchUpdatedImage(this.patternPositions[r],e.getImage(r),t)}}patchUpdatedImage(e,t,r){var l;if(!e||!t||!e.needsFirstWebGLRender&&e.version===t.version)return;e.needsFirstWebGLRender=!1,e.version=t.version;let[i,a]=e.tl,n=(l=t.userImage)==null?void 0:l.data;if(!M2(n)){r.update(t.data,void 0,{x:i,y:a});return}let{width:o,height:s}=t.data;r.context.setCustomLayerDefaults(),n.renderWithWebGL({gl:r.context.gl,texture:r.texture,x:i,y:a,width:o,height:s}),r.context.setDirty()}};Yt("ImagePosition",Pw),Yt("ImageAtlas",lqe);coe=(function(e){return e[e.none=0]="none",e[e.horizontal=1]="horizontal",e[e.vertical=2]="vertical",e[e.horizontalOnly=3]="horizontalOnly",e})(coe||{});_re=new RegExp("^\\p{gc=M}$","u");wre=32640;fm=class moe extends Be{constructor(t,r,i,a){super(t,r),this.angle=i,a!==void 0&&(this.segment=a)}clone(){return new moe(this.x,this.y,this.angle,this.segment)}};Yt("Anchor",fm);y4=class{constructor(e,t,r,i,a,n,o,s,l,u){var c;if(this.boxStartIndex=e.length,l){let h=n.top,f=n.bottom,d=n.collisionPadding;d&&(h-=d[1],f+=d[3]);let p=f-h;p>0&&(p=Math.max(10,p),this.circleDiameter=p)}else{let h=(c=n.image)!=null&&c.content&&(n.image.textFitWidth||n.image.textFitHeight)?poe(n):{x1:n.left,y1:n.top,x2:n.right,y2:n.bottom};h.y1=h.y1*o-s[0],h.y2=h.y2*o+s[2],h.x1=h.x1*o-s[3],h.x2=h.x2*o+s[1];let f=n.collisionPadding;if(f&&(h.x1-=f[0]*o,h.y1-=f[1]*o,h.x2+=f[2]*o,h.y2+=f[3]*o),u){let d=new Be(h.x1,h.y1),p=new Be(h.x2,h.y1),m=new Be(h.x1,h.y2),g=new Be(h.x2,h.y2),y=u*Math.PI/180;d._rotate(y),p._rotate(y),m._rotate(y),g._rotate(y),h.x1=Math.min(d.x,p.x,m.x,g.x),h.x2=Math.max(d.x,p.x,m.x,g.x),h.y1=Math.min(d.y,p.y,m.y,g.y),h.y2=Math.max(d.y,p.y,m.y,g.y)}e.emplaceBack(t.x,t.y,h.x1,h.y1,h.x2,h.y2,r,i,a)}this.boxEndIndex=e.length}},zqe=class{constructor(e=[],t=(r,i)=>ri)){if(this.data=e,this.length=this.data.length,this.compare=t,this.length>0)for(let r=(this.length>>1)-1;r>=0;r--)this._down(r)}push(e){this.data.push(e),this._up(this.length++)}pop(){if(this.length===0)return;let e=this.data[0],t=this.data.pop();return--this.length>0&&(this.data[0]=t,this._down(0)),e}peek(){return this.data[0]}_up(e){let{data:t,compare:r}=this,i=t[e];for(;e>0;){let a=e-1>>1,n=t[a];if(r(i,n)>=0)break;t[e]=n,e=a}t[e]=i}_down(e){let{data:t,compare:r}=this,i=this.length>>1,a=t[e];for(;e=0)break;t[e]=t[n],e=n}t[e]=a}};am=class{constructor(e,t,r,i){this.p=new Be(e,t),this.h=r,this.d=qqe(this.p,i),this.max=this.d+this.h*Math.SQRT2}};Lw=(function(e){return e[e.center=1]="center",e[e.left=2]="left",e[e.right=3]="right",e[e.top=4]="top",e[e.bottom=5]="bottom",e[e["top-left"]=6]="top-left",e[e["top-right"]=7]="top-right",e[e["bottom-left"]=8]="bottom-left",e[e["bottom-right"]=9]="bottom-right",e})({}),dC=1/0;Hqe=[{name:"a_fade_opacity",components:1,type:"Uint8",offset:0}];ik=class{constructor(e){this.layoutVertexArray=new vze,this.indexArray=new Ru,this.programConfigurations=e,this.segments=new ma,this.dynamicLayoutVertexArray=new gze,this.opacityVertexArray=new yze,this.hasVisibleVertices=!1,this.placedSymbolArray=new tne}isEmpty(){return this.layoutVertexArray.length===0&&this.indexArray.length===0&&this.dynamicLayoutVertexArray.length===0&&this.opacityVertexArray.length===0}upload(e,t,r,i){this.isEmpty()||(r&&(this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,lBe.members),this.indexBuffer=e.createIndexBuffer(this.indexArray,t),this.dynamicLayoutVertexBuffer=e.createVertexBuffer(this.dynamicLayoutVertexArray,uBe.members,!0),this.opacityVertexBuffer=e.createVertexBuffer(this.opacityVertexArray,Hqe,!0),this.opacityVertexBuffer.itemSize=1),(r||i)&&this.programConfigurations.upload(e))}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.dynamicLayoutVertexBuffer.destroy(),this.opacityVertexBuffer.destroy())}};Yt("SymbolBuffers",ik);ak=class{constructor(e,t,r){this.layoutVertexArray=new e,this.layoutAttributes=t,this.indexArray=new r,this.segments=new ma,this.collisionVertexArray=new _ze}upload(e){this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,this.layoutAttributes),this.indexBuffer=e.createIndexBuffer(this.indexArray),this.collisionVertexBuffer=e.createVertexBuffer(this.collisionVertexArray,cBe.members,!0)}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.segments.destroy(),this.collisionVertexBuffer.destroy())}};Yt("CollisionBuffers",ak);k2=class{constructor(e){this.collisionBoxArray=e.collisionBoxArray,this.zoom=e.zoom,this.overscaling=e.overscaling,this.layers=e.layers,this.layerIds=this.layers.map(o=>o.id),this.index=e.index,this.pixelRatio=e.pixelRatio,this.sourceLayerIndex=e.sourceLayerIndex,this.hasDependencies=!0,this.hasRTLText=!1,this.maxHeightOffset=0,this.sortKeyRanges=[],this.collisionCircleArray=[],this.maxGlyphs=65535;let t=this.layers[0]._unevaluatedLayout._values;this.textSizeData=Are(this.zoom,t["text-size"]),this.iconSizeData=Are(this.zoom,t["icon-size"]);let r=this.layers[0].layout,i=r.get("symbol-sort-key"),a=r.get("symbol-z-order");this.canOverlap=a2(r,"text-overlap","text-allow-overlap")!=="never"||a2(r,"icon-overlap","icon-allow-overlap")!=="never"||r.get("text-ignore-placement")||r.get("icon-ignore-placement"),this.sortFeaturesByKey=a!=="viewport-y"&&!i.isConstant();let n=a==="viewport-y"||a==="auto"&&!this.sortFeaturesByKey;this.sortFeaturesByY=n&&this.canOverlap,r.get("symbol-placement")==="point"&&(this.writingModes=r.get("text-writing-mode").map(o=>coe[o])),this.stateDependentLayerIds=this.layers.filter(o=>o.isStateDependent()).map(o=>o.id),this.sourceID=e.sourceID}createArrays(){this.text=new ik(new Gd(this.layers,this.zoom,e=>e.startsWith("text"))),this.icon=new ik(new Gd(this.layers,this.zoom,e=>e.startsWith("icon"))),this.glyphOffsetArray=new ane,this.lineVertexArray=new nne,this.symbolInstances=new ine,this.textAnchorOffsets=new sne}calculateGlyphDependencies(e,t,r,i,a){var l;let n=(i||this.allowVerticalPlacement)&&a,o=uC.fromFeature(e,r),s=o.graphemes();for(let u=0;u0)&&(n.value.kind!=="constant"||n.value.value.length>0),u=s.value.kind!=="constant"||!!s.value.value||Object.keys(s.parameters).length>0,c=a.get("symbol-sort-key");if(this.features=[],!l&&!u)return;let h=t.iconDependencies,f=t.glyphDependencies,d=t.availableImages,p=new Si(this.zoom);for(let{feature:g,id:y,index:x,sourceLayerIndex:w}of e){let _=i._featureFilter.needGeometry,A=Hf(g,_);if(!i._featureFilter.filter(p,A,r))continue;_||(A.geometry=Xd(g));let T;if(l){let P=i.getValueAndResolveTokens("text-field",A,r,d),I=vh.factory(P);this.hasRTLText||(this.hasRTLText=Zqe(I)),T=IBe(I,i,A)}let M;if(u){let P=i.getValueAndResolveTokens("icon-image",A,r,d);M=P instanceof kc?P:kc.fromString(P)}if(!T&&!M)continue;let S=this.sortFeaturesByKey?c.evaluate(A,{},r):void 0,k={id:y,text:T,icon:M,index:x,sourceLayerIndex:w,geometry:A.geometry,properties:g.properties,type:A2.types[g.type],sortKey:S};if(this.features.push(k),M&&(h[M.name]=!0),T){let P=n.evaluate(A,{},r).join(","),I=a.get("text-rotation-alignment")!=="viewport"&&a.get("symbol-placement")!=="point";this.allowVerticalPlacement=(m=this.writingModes)==null?void 0:m.includes(2);let B=QE(T.toString());this.calculateGlyphDependencies(T,f,P,I,B);for(let L of T.sections)L.image&&(h[L.image.name]=!0)}}a.get("symbol-placement")==="line"&&(this.features=zBe(this.features)),this.sortFeaturesByKey&&this.features.sort((g,y)=>g.sortKey-y.sortKey)}update(e,t,r){this.stateDependentLayers.length&&(this.text.programConfigurations.updatePaintArrays(e,t,this.layers,{imagePositions:r}),this.icon.programConfigurations.updatePaintArrays(e,t,this.layers,{imagePositions:r}))}addFeatures({options:e,canonical:t,glyphMap:r,glyphPositions:i,iconMap:a,iconPositions:n,showCollisionBoxes:o}){Nqe({bucket:this,glyphMap:r,glyphPositions:i,imageMap:a,imagePositions:n,showCollisionBoxes:o,canonical:t,subdivisionGranularity:e.subdivisionGranularity,hasPromoteId:e.featureIndex.promoteId!=null})}isEmpty(){return this.symbolInstances.length===0}uploadPending(){return!this.uploaded||this.text.programConfigurations.needsUpload||this.icon.programConfigurations.needsUpload}upload(e){!this.uploaded&&this.hasDebugData()&&(this.textCollisionBox.upload(e),this.iconCollisionBox.upload(e)),this.text.upload(e,this.sortFeaturesByY,!this.uploaded,this.text.programConfigurations.needsUpload),this.icon.upload(e,this.sortFeaturesByY,!this.uploaded,this.icon.programConfigurations.needsUpload),this.uploaded=!0}destroyDebugData(){this.textCollisionBox.destroy(),this.iconCollisionBox.destroy()}destroy(){this.text.destroy(),this.icon.destroy(),this.hasDebugData()&&this.destroyDebugData()}addToLineVertexArray(e,t){let r=this.lineVertexArray.length;if(e.segment!==void 0){let i=e.dist(t[e.segment+1]),a=e.dist(t[e.segment]),n={};for(let o=e.segment+1;o=0;o--)n[o]={x:t[o].x,y:t[o].y,tileUnitDistanceFromAnchor:a},o>0&&(a+=t[o-1].dist(t[o]));for(let o=0;o0}hasIconData(){return this.icon.segments.get().length>0}hasDebugData(){return this.textCollisionBox&&this.iconCollisionBox}hasTextCollisionBoxData(){return this.hasDebugData()&&this.textCollisionBox.segments.get().length>0}hasIconCollisionBoxData(){return this.hasDebugData()&&this.iconCollisionBox.segments.get().length>0}addIndicesForPlacedSymbol(e,t){let r=e.placedSymbolArray.get(t),i=r.vertexStartIndex+r.numGlyphs*4;for(let a=r.vertexStartIndex;ai[o]-i[s]||a[s]-a[o]),n}addToSortKeyRanges(e,t){let r=this.sortKeyRanges[this.sortKeyRanges.length-1];(r==null?void 0:r.sortKey)===t?r.symbolInstanceEnd=e+1:this.sortKeyRanges.push({sortKey:t,symbolInstanceStart:e,symbolInstanceEnd:e+1})}sortFeatures(e){if(this.sortFeaturesByY&&this.sortedAngle!==e&&!(this.text.segments.get().length>1||this.icon.segments.get().length>1)){this.symbolInstanceIndexes=this.getSortedSymbolIndexes(e),this.sortedAngle=e,this.text.indexArray.clear(),this.icon.indexArray.clear(),this.featureSortOrder=[];for(let t of this.symbolInstanceIndexes){let r=this.symbolInstances.get(t);this.featureSortOrder.push(r.featureIndex);let i=[r.rightJustifiedTextSymbolIndex,r.centerJustifiedTextSymbolIndex,r.leftJustifiedTextSymbolIndex];for(let a=0;a=0&&i.indexOf(n)===a&&this.addIndicesForPlacedSymbol(this.text,n)}r.verticalPlacedTextSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.text,r.verticalPlacedTextSymbolIndex),r.placedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,r.placedIconSymbolIndex),r.verticalPlacedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,r.verticalPlacedIconSymbolIndex)}this.text.indexBuffer&&this.text.indexBuffer.updateData(this.text.indexArray),this.icon.indexBuffer&&this.icon.indexBuffer.updateData(this.icon.indexArray)}}};Yt("SymbolBucket",k2,{omit:["layers","collisionBoxArray","features","compareText"]});Wqe=()=>Sre||(Sre=new Fn({"symbol-placement":new Ut(Xe.layout_symbol["symbol-placement"],"symbol-placement"),"symbol-spacing":new Ut(Xe.layout_symbol["symbol-spacing"],"symbol-spacing"),"symbol-avoid-edges":new Ut(Xe.layout_symbol["symbol-avoid-edges"],"symbol-avoid-edges"),"symbol-sort-key":new cr(Xe.layout_symbol["symbol-sort-key"],"symbol-sort-key"),"symbol-z-order":new Ut(Xe.layout_symbol["symbol-z-order"],"symbol-z-order"),"icon-allow-overlap":new Ut(Xe.layout_symbol["icon-allow-overlap"],"icon-allow-overlap"),"icon-overlap":new Ut(Xe.layout_symbol["icon-overlap"],"icon-overlap"),"icon-ignore-placement":new Ut(Xe.layout_symbol["icon-ignore-placement"],"icon-ignore-placement"),"icon-optional":new Ut(Xe.layout_symbol["icon-optional"],"icon-optional"),"icon-rotation-alignment":new cr(Xe.layout_symbol["icon-rotation-alignment"],"icon-rotation-alignment"),"icon-size":new cr(Xe.layout_symbol["icon-size"],"icon-size"),"icon-text-fit":new Ut(Xe.layout_symbol["icon-text-fit"],"icon-text-fit"),"icon-text-fit-padding":new Ut(Xe.layout_symbol["icon-text-fit-padding"],"icon-text-fit-padding"),"icon-image":new cr(Xe.layout_symbol["icon-image"],"icon-image"),"icon-rotate":new cr(Xe.layout_symbol["icon-rotate"],"icon-rotate"),"icon-padding":new cr(Xe.layout_symbol["icon-padding"],"icon-padding"),"icon-keep-upright":new Ut(Xe.layout_symbol["icon-keep-upright"],"icon-keep-upright"),"icon-offset":new cr(Xe.layout_symbol["icon-offset"],"icon-offset"),"icon-anchor":new cr(Xe.layout_symbol["icon-anchor"],"icon-anchor"),"icon-pitch-alignment":new Ut(Xe.layout_symbol["icon-pitch-alignment"],"icon-pitch-alignment"),"text-pitch-alignment":new Ut(Xe.layout_symbol["text-pitch-alignment"],"text-pitch-alignment"),"text-rotation-alignment":new Ut(Xe.layout_symbol["text-rotation-alignment"],"text-rotation-alignment"),"text-field":new cr(Xe.layout_symbol["text-field"],"text-field"),"text-font":new cr(Xe.layout_symbol["text-font"],"text-font"),"text-size":new cr(Xe.layout_symbol["text-size"],"text-size"),"text-max-width":new cr(Xe.layout_symbol["text-max-width"],"text-max-width"),"text-line-height":new Ut(Xe.layout_symbol["text-line-height"],"text-line-height"),"text-letter-spacing":new cr(Xe.layout_symbol["text-letter-spacing"],"text-letter-spacing"),"text-justify":new cr(Xe.layout_symbol["text-justify"],"text-justify"),"text-radial-offset":new cr(Xe.layout_symbol["text-radial-offset"],"text-radial-offset"),"text-variable-anchor":new Ut(Xe.layout_symbol["text-variable-anchor"],"text-variable-anchor"),"text-variable-anchor-offset":new cr(Xe.layout_symbol["text-variable-anchor-offset"],"text-variable-anchor-offset"),"text-anchor":new cr(Xe.layout_symbol["text-anchor"],"text-anchor"),"text-max-angle":new Ut(Xe.layout_symbol["text-max-angle"],"text-max-angle"),"text-writing-mode":new Ut(Xe.layout_symbol["text-writing-mode"],"text-writing-mode"),"text-rotate":new cr(Xe.layout_symbol["text-rotate"],"text-rotate"),"text-padding":new Ut(Xe.layout_symbol["text-padding"],"text-padding"),"text-keep-upright":new Ut(Xe.layout_symbol["text-keep-upright"],"text-keep-upright"),"text-transform":new cr(Xe.layout_symbol["text-transform"],"text-transform"),"text-offset":new cr(Xe.layout_symbol["text-offset"],"text-offset"),"text-allow-overlap":new Ut(Xe.layout_symbol["text-allow-overlap"],"text-allow-overlap"),"text-overlap":new Ut(Xe.layout_symbol["text-overlap"],"text-overlap"),"text-ignore-placement":new Ut(Xe.layout_symbol["text-ignore-placement"],"text-ignore-placement"),"text-optional":new Ut(Xe.layout_symbol["text-optional"],"text-optional"),"symbol-height-offset":new cr(Xe.layout_symbol["symbol-height-offset"],"symbol-height-offset"),"symbol-height-anchor":new Ut(Xe.layout_symbol["symbol-height-anchor"],"symbol-height-anchor")})),Xqe=()=>Ere||(Ere=new Fn({"icon-opacity":new cr(Xe.paint_symbol["icon-opacity"],"icon-opacity"),"icon-color":new cr(Xe.paint_symbol["icon-color"],"icon-color"),"icon-halo-color":new cr(Xe.paint_symbol["icon-halo-color"],"icon-halo-color"),"icon-halo-width":new cr(Xe.paint_symbol["icon-halo-width"],"icon-halo-width"),"icon-halo-blur":new cr(Xe.paint_symbol["icon-halo-blur"],"icon-halo-blur"),"icon-translate":new Ut(Xe.paint_symbol["icon-translate"],"icon-translate"),"icon-translate-anchor":new Ut(Xe.paint_symbol["icon-translate-anchor"],"icon-translate-anchor"),"text-opacity":new cr(Xe.paint_symbol["text-opacity"],"text-opacity"),"text-color":new cr(Xe.paint_symbol["text-color"],"text-color",{runtimeType:Cu,getOverride:e=>e.textColor,hasOverride:e=>!!e.textColor}),"text-halo-color":new cr(Xe.paint_symbol["text-halo-color"],"text-halo-color"),"text-halo-width":new cr(Xe.paint_symbol["text-halo-width"],"text-halo-width"),"text-halo-blur":new cr(Xe.paint_symbol["text-halo-blur"],"text-halo-blur"),"text-translate":new Ut(Xe.paint_symbol["text-translate"],"text-translate"),"text-translate-anchor":new Ut(Xe.paint_symbol["text-translate-anchor"],"text-translate-anchor")})),X9={get paint(){return Xqe()},get layout(){return Wqe()}},Toe=class{constructor(e){if(e.property.overrides===void 0)throw Error("overrides must be provided to instantiate FormatSectionOverride class");this.type=e.property.overrides?e.property.overrides.runtimeType:p2,this.defaultValue=e}evaluate(e){if(e.formattedSection){let t=this.defaultValue.property.overrides;if(t!=null&&t.hasOverride(e.formattedSection))return t.getOverride(e.formattedSection)}return e.feature&&e.featureState?this.defaultValue.evaluate(e.feature,e.featureState):this.defaultValue.property.specification.default}eachChild(e){if(!this.defaultValue.isConstant()){let t=this.defaultValue.value;e(t._styleExpression.expression)}}outputDefined(){return!1}serialize(){return null}};Yt("FormatSectionOverride",Toe,{omit:["defaultValue"]});pC=e=>e.type==="symbol",Kqe=class nk extends zu{constructor(t,r){super(t,X9,r)}recalculate(t,r){super.recalculate(t,r);let i=this.layout.get("icon-rotation-alignment");if((i.value.kind!=="constant"||i.value.value==="auto")&&(this.layout._values["icon-rotation-alignment"]=new Nl(i.property,{kind:"constant",value:this.layout.get("symbol-placement")==="point"?"viewport":"map"},i.parameters)),this.layout.get("text-rotation-alignment")==="auto"&&(this.layout.get("symbol-placement")==="point"?this.layout._values["text-rotation-alignment"]="viewport":this.layout._values["text-rotation-alignment"]="map"),this.layout.get("text-pitch-alignment")==="auto"&&(this.layout._values["text-pitch-alignment"]=this.layout.get("text-rotation-alignment")==="map"?"map":"viewport"),this.layout.get("icon-pitch-alignment")==="auto"&&(this.layout._values["icon-pitch-alignment"]=this.layout.get("icon-rotation-alignment").constantOr("viewport")),this.layout.get("symbol-placement")==="point"){let a=this.layout.get("text-writing-mode");if(a){let n=[];for(let o of a)n.includes(o)||n.push(o);this.layout._values["text-writing-mode"]=n}else this.layout._values["text-writing-mode"]=["horizontal"]}this._setPaintOverrides()}getValueAndResolveTokens(t,r,i,a){let n=this.layout.get(t).evaluate(r,{},i,a),o=this._unevaluatedLayout._values[t];return!o.isDataDriven()&&!vw(o.value)&&n?Yqe(r.properties,n):n}createBucket(t){return new k2(t)}queryRadius(){return 0}queryIntersectsFeature(){throw Error("Should take a different path in FeatureIndex")}_setPaintOverrides(){for(let t of X9.paint.overridableProperties){if(!nk.hasPaintOverride(this.layout,t))continue;let r=this.paint.get(t),i=new Nk(new Toe(r),`layers[${this.id}].paint.${r.property.name}`,r.property.specification),a=null;a=r.value.kind==="constant"||r.value.kind==="source"?new Yy("source",i):new F4("composite",i,r.value.zoomStops),this.paint._values[t]=new Nl(r.property,a,r.parameters)}}_handleOverridablePaintPropertyUpdate(t,r,i){return!this.layout||r.isDataDriven()||i.isDataDriven()?!1:nk.hasPaintOverride(this.layout,t)}static hasPaintOverride(t,r){let i=t.get("text-field"),a=X9.paint.properties[r],n=!1,o=s=>{var l;for(let u of s)if((l=a.overrides)!=null&&l.hasOverride(u)){n=!0;return}};if(i.value.kind==="constant"&&i.value.value instanceof vh)o(i.value.value.sections);else if(i.value.kind==="source"||i.value.kind==="composite"){let s=u=>{if(!n)if(u instanceof gm&&Za(u.value)===m2){let c=u.value;o(c.sections)}else u instanceof Gie?o(u.sections):u.eachChild(s)},l=i.value;l._styleExpression&&s(l._styleExpression.expression)}return n}};Qqe=()=>kre||(kre=new Fn({"background-color":new Ut(Xe.paint_background["background-color"],"background-color"),"background-pattern":new Jae(Xe.paint_background["background-pattern"],"background-pattern"),"background-opacity":new Ut(Xe.paint_background["background-opacity"],"background-opacity")})),eOe={get paint(){return Qqe()}},Moe=e=>e.type==="background",tOe=class extends zu{constructor(e,t){super(e,eOe,t)}};Soe=e=>e.type==="custom",rOe=class extends zu{constructor(e,t){super(e,{},t),this.onAdd=r=>{this.implementation.onAdd&&this.implementation.onAdd(r,r.painter.context.gl)},this.onRemove=r=>{this.implementation.onRemove&&this.implementation.onRemove(r,r.painter.context.gl)},this.implementation=e}is3D(){return this.implementation.renderingMode==="3d"}hasOffscreenPass(){return this.implementation.prerender!==void 0}recalculate(){}updateTransitions(){}hasTransition(){return!1}serialize(){throw Error("Custom layers cannot be serialized")}};iOe=class{constructor(e){this._methodToThrottle=e,this._triggered=!1,this._channel=new MessageChannel,this._channel.port2.onmessage=()=>{this._triggered=!1,this._methodToThrottle()}}trigger(){var e;this._triggered||(this._triggered=!0,(e=this._channel)==null||e.port1.postMessage(!0))}remove(){delete this._channel,this._methodToThrottle=()=>{}}},aOe={once:!0},Eoe=class{constructor(e,t){this.target=e,this.mapId=t,this.resolveRejects={},this.tasks={},this.taskQueue=[],this.abortControllers={},this.messageHandlers={},this.invoker=new iOe(()=>this.process()),this.subscription=Uy(this.target,"message",r=>this.receive(r),!1),this.globalScope=Vd(self)?e:window}registerMessageHandler(e,t){this.messageHandlers[e]=t}unregisterMessageHandler(e){delete this.messageHandlers[e]}sendAsync(e,t){return new Promise((r,i)=>{let a=Math.round(Math.random()*1e18).toString(36).substring(0,10),n=t?Uy(t.signal,"abort",()=>{n==null||n.unsubscribe(),delete this.resolveRejects[a];let l={id:a,type:"",origin:location.origin,targetMapId:e.targetMapId,sourceMapId:this.mapId};this.target.postMessage(l),i(new Dm(t.signal.reason))},aOe):null;this.resolveRejects[a]={resolve:l=>{n==null||n.unsubscribe(),r(l)},reject:l=>{n==null||n.unsubscribe(),i(l)}};let o=[],s=Gr(nr({},e),{id:a,sourceMapId:this.mapId,origin:location.origin,data:Oy(e.data,o)});this.target.postMessage(s,{transfer:o})})}receive(e){let t=e.data,r=t.id,i=["file://","resource://android","null"],a=[t.origin,location.origin],n=t.origin===location.origin,o=a.some(s=>i.includes(s));if((n||o)&&!(t.targetMapId&&this.mapId!==t.targetMapId)){if(t.type===""){delete this.tasks[r];let s=this.abortControllers[r];delete this.abortControllers[r],s&&s.abort();return}if(Vd(self)||t.mustQueue){this.tasks[r]=t,this.taskQueue.push(r),this.invoker.trigger();return}this.processTask(r,t)}}process(){if(this.taskQueue.length===0)return;let e=this.taskQueue.shift(),t=this.tasks[e];delete this.tasks[e],this.taskQueue.length>0&&this.invoker.trigger(),t&&this.processTask(e,t)}processTask(e,t){return Kt(this,null,function*(){if(t.type===""){let a=this.resolveRejects[e];if(delete this.resolveRejects[e],!a)return;t.error?a.reject(Hn(Ny(t.error))):a.resolve(Ny(t.data));return}if(!this.messageHandlers[t.type]){this.completeTask(e,null,null);return}let r=Ny(t.data),i=new AbortController;this.abortControllers[e]=i;try{let a=yield this.messageHandlers[t.type](t.sourceMapId,r,i);this.completeTask(e,null,a)}catch(a){this.completeTask(e,Hn(a))}})}completeTask(e,t,r){let i=[];delete this.abortControllers[e];let a={id:e,type:"",sourceMapId:this.mapId,origin:location.origin,error:t?Oy(t):null,data:Oy(r,i)};this.target.postMessage(a,{transfer:i})}remove(){this.invoker.remove(),this.subscription.unsubscribe()}};C2=class{constructor(e,t,r){if(!nOe(e,t,r))throw Error(`x=${t}, y=${r}, z=${e} outside of bounds. 0<=x<${2**e}, 0<=y<${2**e} 0<=z<=25 `);this.z=e,this.x=t,this.y=r,this.key=Od(0,e,e,t,r)}equals(e){return this.z===e.z&&this.x===e.x&&this.y===e.y}url(e,t,r){let i=oOe(this.x,this.y,this.z),a=sOe(this.z,this.x,this.y);return e[(this.x+this.y)%e.length].replace(/{prefix}/g,(this.x%16).toString(16)+(this.y%16).toString(16)).replace(/{z}/g,String(this.z)).replace(/{x}/g,String(this.x)).replace(/{y}/g,String(r==="tms"?2**this.z-this.y-1:this.y)).replace(/{ratio}/g,t>1?"@2x":"").replace(/{quadkey}/g,a).replace(/{bbox-epsg-3857}/g,i)}isChildOf(e){let t=this.z-e.z;return t>0&&e.x===this.x>>t&&e.y===this.y>>t}getTilePoint(e){let t=2**this.z;return new Be((e.x*t-this.x)*ft,(e.y*t-this.y)*ft)}toString(){return`${this.z}/${this.x}/${this.y}`}},F2=class{constructor(e,t){this.wrap=e,this.canonical=t,this.key=Od(e,t.z,t.z,t.x,t.y)}},Xn=class ql{constructor(t,r,i,a,n){if(this.terrainRttPosMatrix32f=null,t= z; overscaledZ = ${t}; z = ${i}`);this.overscaledZ=t,this.wrap=r,this.canonical=new C2(i,+a,+n),this.key=Od(r,t,i,a,n)}clone(){return new ql(this.overscaledZ,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)}equals(t){return this.overscaledZ===t.overscaledZ&&this.wrap===t.wrap&&this.canonical.equals(t.canonical)}scaledTo(t){if(t>this.overscaledZ)throw Error(`targetZ > this.overscaledZ; targetZ = ${t}; overscaledZ = ${this.overscaledZ}`);let r=this.canonical.z-t;return t>this.canonical.z?new ql(t,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y):new ql(t,this.wrap,t,this.canonical.x>>r,this.canonical.y>>r)}isOverscaled(){return this.overscaledZ>this.canonical.z}calculateScaledKey(t,r){if(t>this.overscaledZ)throw Error(`targetZ > this.overscaledZ; targetZ = ${t}; overscaledZ = ${this.overscaledZ}`);let i=this.canonical.z-t;return t>this.canonical.z?Od(this.wrap*+r,t,this.canonical.z,this.canonical.x,this.canonical.y):Od(this.wrap*+r,t,t,this.canonical.x>>i,this.canonical.y>>i)}isChildOf(t){if(t.wrap!==this.wrap||this.overscaledZ-t.overscaledZ<=0)return!1;if(t.overscaledZ===0)return this.overscaledZ>0;let r=this.canonical.z-t.canonical.z;return r<0?!1:t.canonical.x===this.canonical.x>>r&&t.canonical.y===this.canonical.y>>r}children(t){if(this.overscaledZ>=t)return[new ql(this.overscaledZ+1,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)];let r=this.canonical.z+1,i=this.canonical.x*2,a=this.canonical.y*2;return[new ql(r,this.wrap,r,i,a),new ql(r,this.wrap,r,i+1,a),new ql(r,this.wrap,r,i,a+1),new ql(r,this.wrap,r,i+1,a+1)]}isLessThan(t){return this.wrapt.wrap?!1:this.overscaledZt.overscaledZ?!1:this.canonical.xt.canonical.x?!1:this.canonical.y=0&&t=0&&r=u)return null;let h=this.canonical.x+a,f=this.wrap;return h<0?(f-=Math.ceil(-h/u),h=(h%u+u)%u):h>=u&&(f+=Math.floor(h/u),h%=u),{tileID:new ql(this.overscaledZ,f,l,h,c),x:o,y:s}}};K9=Math.PI*6378137;Yt("CanonicalTileID",C2),Yt("OverscaledTileID",Xn,{omit:["terrainRttPosMatrix32f"]});P2="_geojsonTileLayer",lOe=class{constructor(e){this._stringToNumber={},this._numberToString=[];for(let t=0;t=this._numberToString.length)throw Error(`Out of bounds. Index requested n=${e} can't be >= this._numberToString.length ${this._numberToString.length}`);return this._numberToString[e]}},gC=class{constructor(e,t,r,i,a){this.type="Feature",this._vectorTileFeature=e,this._x=r,this._y=i,this._z=t;for(let n in e.properties)typeof e.properties[n]=="string"&&e.properties[n].startsWith("__$json__:")&&(e.properties[n]=JSON.parse(e.properties[n].slice(10)));this.properties=e.properties,this.id=a}projectPoint(e,t,r,i){return[(e.x+t)*360/i-180,360/Math.PI*Math.atan(Math.exp((1-(e.y+r)*2/i)*Math.PI))-90]}projectLine(e,t,r,i){return e.map(a=>this.projectPoint(a,t,r,i))}get geometry(){if(this._geometry)return this._geometry;let e=this._vectorTileFeature,t=e.extent*2**this._z,r=e.extent*this._x,i=e.extent*this._y,a=e.loadGeometry();switch(e.type){case 1:{let n=[];for(let s of a)n.push(s[0]);let o=this.projectLine(n,r,i,t);this._geometry=n.length===1?{type:"Point",coordinates:o[0]}:{type:"MultiPoint",coordinates:o};break}case 2:{let n=a.map(o=>this.projectLine(o,r,i,t));this._geometry=n.length===1?{type:"LineString",coordinates:n[0]}:{type:"MultiLineString",coordinates:n};break}case 3:{let n=Une(a),o=[];for(let s of n)o.push(s.map(l=>this.projectLine(l,r,i,t)));this._geometry=o.length===1?{type:"Polygon",coordinates:o[0]}:{type:"MultiPolygon",coordinates:o};break}default:throw Error(`unknown feature type: ${e.type}`)}return this._geometry}set geometry(e){this._geometry=e}toJSON(){let e={geometry:this.geometry};for(let t in this)t!=="_geometry"&&t!=="_vectorTileFeature"&&t!=="_x"&&t!=="_y"&&t!=="_z"&&(e[t]=this[t]);return e}},Qd=class{constructor(e,t,r){this._name=e,this.dataBuffer=t,typeof r=="number"?this._size=r:(this.nullabilityBuffer=r,this._size=r.size())}getValue(e){return this.nullabilityBuffer&&!this.nullabilityBuffer.get(e)?null:this.getValueFromBuffer(e)}has(e){var t;return((t=this.nullabilityBuffer)==null?void 0:t.get(e))||!this.nullabilityBuffer}get name(){return this._name}get size(){return this._size}},Rw=class extends Qd{},yC=class extends Rw{getValueFromBuffer(e){return this.dataBuffer[e]}},_C=class extends Rw{getValueFromBuffer(e){return this.dataBuffer[e]}},koe=class extends Qd{constructor(e,t,r,i){super(e,t,i),this.delta=r}},xC=class extends koe{constructor(e,t,r,i,a){super(e,a?Int32Array.of(t):Uint32Array.of(t),r,i)}getValueFromBuffer(e){return this.dataBuffer[0]+e*this.delta}},bC=class extends Qd{constructor(e,t,r,i){super(e,i?Int32Array.of(t):Uint32Array.of(t),r)}getValueFromBuffer(e){return this.dataBuffer[0]}},uOe=class{constructor(e,t,r,i,a=4096){if(this._name=e,this._geometryVector=t,this._idVector=r,this._propertyVectors=i,this._extent=a,e.length===0)throw Error("Missing layer name")}get name(){return this._name}get idVector(){return this._idVector}get geometryVector(){return this._geometryVector}get propertyVectors(){var e;return(e=this._propertyVectors)!=null?e:[]}getPropertyVector(e){return this.propertyVectorsMap||(this.propertyVectorsMap=new Map(this.propertyVectors.map(t=>[t.name,t]))),this.propertyVectorsMap.get(e)}get numFeatures(){return this.geometryVector.numGeometries}get extent(){return this._extent}getFeatures(){let e=[],t=this.geometryVector.getGeometries();for(let r=0;r>>32-e;ok=wC,AC=65536;sk=Poe(AC),LOe=3*sk/256+sk|0;(function(e){e.PRESENT="PRESENT",e.DATA="DATA",e.OFFSET="OFFSET",e.LENGTH="LENGTH"})(Ha||(Ha={}));(function(e){e.NONE="NONE",e.SINGLE="SINGLE",e.SHARED="SHARED",e.VERTEX="VERTEX",e.MORTON="MORTON",e.FSST="FSST"})(Co||(Co={}));(function(e){e.VERTEX="VERTEX",e.INDEX="INDEX",e.STRING="STRING",e.KEY="KEY"})(Mc||(Mc={}));(function(e){e.VAR_BINARY="VAR_BINARY",e.GEOMETRIES="GEOMETRIES",e.PARTS="PARTS",e.RINGS="RINGS",e.TRIANGLES="TRIANGLES",e.SYMBOL="SYMBOL",e.DICTIONARY="DICTIONARY"})(wn||(wn={}));TNe=[Ha.PRESENT,Ha.DATA,Ha.OFFSET,Ha.LENGTH],zre=[kr.NONE,kr.DELTA,kr.COMPONENTWISE_DELTA,kr.RLE,kr.MORTON],MNe=[Ws.NONE,Ws.FAST_PFOR,Ws.VARINT],DNe=[Co.NONE,Co.SINGLE,Co.SHARED,Co.VERTEX,Co.MORTON,Co.FSST],SNe=[Mc.VERTEX,Mc.INDEX,Mc.STRING,Mc.KEY],ENe=[wn.VAR_BINARY,wn.GEOMETRIES,wn.PARTS,wn.RINGS,wn.TRIANGLES,wn.SYMBOL,wn.DICTIONARY];(function(e){e[e.FLAT=0]="FLAT",e[e.CONST=1]="CONST",e[e.SEQUENCE=2]="SEQUENCE",e[e.DICTIONARY=3]="DICTIONARY",e[e.FSST_DICTIONARY=4]="FSST_DICTIONARY"})(sa||(sa={}));Pu=class{constructor(e,t){this.values=e,this._size=t}get(e){let t=Math.floor(e/8),r=e%8;return(this.values[t]>>r&1)==1}set(e,t){let r=Math.floor(e/8),i=e%8;this.values[r]=this.values[r]|+!!t<>r&1}size(){return this._size}getBuffer(){return this.values}};RNe=new TextDecoder;$oe=class extends Rw{getValueFromBuffer(e){return this.dataBuffer[e]}},Hoe=class extends koe{constructor(e,t,r,i,a){super(e,a?BigInt64Array.of(t):BigUint64Array.of(t),r,i)}getValueFromBuffer(e){return this.dataBuffer[0]+BigInt(e)*this.delta}};(function(e){e[e.POINT=0]="POINT",e[e.LINESTRING=1]="LINESTRING",e[e.POLYGON=2]="POLYGON",e[e.MULTIPOINT=3]="MULTIPOINT",e[e.MULTILINESTRING=4]="MULTILINESTRING",e[e.MULTIPOLYGON=5]="MULTIPOLYGON"})($n||($n={}));(function(e){e[e.POINT=0]="POINT",e[e.LINESTRING=1]="LINESTRING",e[e.POLYGON=2]="POLYGON"})(Bre||(Bre={}));(function(e){e[e.MORTON=0]="MORTON",e[e.VEC_2=1]="VEC_2",e[e.VEC_3=2]="VEC_3"})(Uf||(Uf={}));Zoe=class{constructor(e,t,r,i,a){this._vertexBufferType=e,this._topologyVector=t,this._vertexOffsets=r,this._vertexBuffer=i,this._mortonSettings=a}get vertexBufferType(){return this._vertexBufferType}get topologyVector(){return this._topologyVector}get vertexOffsets(){return this._vertexOffsets}get vertexBuffer(){return this._vertexBuffer}getSimpleEncodedVertex(e){let t=this.vertexOffsets?this.vertexOffsets[e]*2:e*2;return[this.vertexBuffer[t],this.vertexBuffer[t+1]]}getVertex(e){if(this.vertexOffsets&&this.mortonSettings){let r=this.vertexOffsets[e],i=this.vertexBuffer[r],a=CC(i,this.mortonSettings.numBits,this.mortonSettings.coordinateShift);return[a.x,a.y]}let t=this.vertexOffsets?this.vertexOffsets[e]*2:e*2;return[this.vertexBuffer[t],this.vertexBuffer[t+1]]}getGeometries(){return YNe(this)}get mortonSettings(){return this._mortonSettings}};Yoe=class extends Zoe{constructor(e,t,r,i,a,n,o){super(r,i,a,n,o),this._numGeometries=e,this._geometryType=t}geometryType(e){return this._geometryType}get numGeometries(){return this._numGeometries}containsPolygonGeometry(){return this._geometryType===$n.POLYGON||this._geometryType===$n.MULTIPOLYGON}containsSingleGeometryType(){return!0}};Xoe=class extends Zoe{constructor(e,t,r,i,a,n){super(e,r,i,a,n),this._geometryTypes=t}geometryType(e){return this._geometryTypes[e]}get numGeometries(){return this._geometryTypes.length}containsPolygonGeometry(){for(let e=0;eGr(nr({},r),{[i.name]:new VVe(i)}),{})}},GVe=class{constructor(e,t){this.tileID=e,this.x=e.canonical.x,this.y=e.canonical.y,this.z=e.canonical.z,this.grid=new fE(ft,16,0),this.grid3D=new fE(ft,16,0),this.featureIndexArray=new une,this.promoteId=t}insert(e,t,r,i,a,n){let o=this.featureIndexArray.length;this.featureIndexArray.emplaceBack(r,i,a);let s=n?this.grid3D:this.grid;for(let l of t){let u=[1/0,1/0,-1/0,-1/0];for(let c of l)u[0]=Math.min(u[0],c.x),u[1]=Math.min(u[1],c.y),u[2]=Math.max(u[2],c.x),u[3]=Math.max(u[3],c.y);u[0]<8192&&u[1]<8192&&u[2]>=0&&u[3]>=0&&s.insert(o,u[0],u[1],u[2],u[3])}}loadVTLayers(){return this.vtLayers||(this.encoding==="mlt"?this.vtLayers=new UVe(this.rawTileData).layers:this.vtLayers=new BRe(new soe(this.rawTileData)).layers,this.sourceLayerCoder=new lOe(this.vtLayers?Object.keys(this.vtLayers).sort():[P2])),this.vtLayers}query(e,t,r,i){this.loadVTLayers();let a=e.params,n=ft/e.tileSize/e.scale,o=xm(a.filter,"queryRenderedFeatures filter",a.globalState),s=e.queryGeometry,l=e.queryPadding*n,u=Gl.fromPoints(s),c=this.grid.query(u.minX-l,u.minY-l,u.maxX+l,u.maxY+l),h=Gl.fromPoints(e.cameraQueryGeometry).expandBy(l),f=this.grid3D.query(h.minX,h.minY,h.maxX,h.maxY,(m,g,y,x)=>Pze(e.cameraQueryGeometry,m-l,g-l,y+l,x+l));for(let m of f)c.push(m);c.sort($Ve);let d={},p;for(let m of c){if(m===p)continue;p=m;let g=this.featureIndexArray.get(m),y=null;this.loadMatchingFeature(d,g.bucketIndex,g.sourceLayerIndex,g.featureIndex,o,a.layers,a.availableImages,t,r,i,(x,w,_)=>(y||(y=Xd(x)),w.queryIntersectsFeature({queryGeometry:s,feature:x,featureState:_,geometry:y,zoom:this.z,transform:e.transform,pixelsToTileUnits:n,pixelPosMatrix:e.pixelPosMatrix,unwrappedTileID:this.tileID.toUnwrapped(),getElevation:e.getElevation})))}return d}loadMatchingFeature(e,t,r,i,a,n,o,s,l,u,c){let h=this.bucketLayerIDs[t];if(n&&!h.some(m=>n.has(m)))return;let f=this.sourceLayerCoder.decode(r),d=this.vtLayers[f].feature(i);if(a.needGeometry){let m=Hf(d,!0);if(!a.filter(new Si(this.tileID.overscaledZ),m,this.tileID.canonical))return}else if(!a.filter(new Si(this.tileID.overscaledZ),d))return;let p=this.getId(d,f);for(let m of h){if(n&&!n.has(m))continue;let g=s[m];if(!g)continue;let y={};p&&u&&(y=u.getState(g.sourceLayer||"_geojsonTileLayer",p));let x=tr({},l[m]);x.paint=$re(x.paint,g.paint,d,y,o),x.layout=$re(x.layout,g.layout,d,y,o);let w=!c||c(d,g,y);if(!w)continue;let _=new gC(d,this.z,this.x,this.y,p);_.layer=x;let A=e[m];A===void 0&&(A=e[m]=[]),A.push({featureIndex:i,feature:_,intersectionZ:w})}}lookupSymbolFeatures(e,t,r,i,a,n,o,s){let l={};this.loadVTLayers();let u=xm(a.filterSpec,"queryRenderedFeatures symbol filter",a.globalState);for(let c of e)this.loadMatchingFeature(l,r,i,c,u,n,o,s,t);return l}hasLayer(e){for(let t of this.bucketLayerIDs)for(let r of t)if(e===r)return!0;return!1}getId(e,t){var i;let r=e.id;if(this.promoteId){let a=typeof this.promoteId=="string"?this.promoteId:this.promoteId[t];r=e.properties[a],typeof r=="boolean"&&(r=Number(r)),r===void 0&&((i=e.properties)!=null&&i.cluster)&&this.promoteId&&(r=Number(e.properties.cluster_id))}return r}};Yt("FeatureIndex",GVe,{omit:["rawTileData","sourceLayerCoder"]});ose=class{constructor(e,t){this.max=e,this.onRemove=t,this.reset()}reset(){for(let e in this.data)for(let t of this.data[e])t.timeout&&clearTimeout(t.timeout),this.onRemove(t.value);return this.data={},this.order=[],this}add(e,t,r){let i=e.wrapped().key;this.data[i]===void 0&&(this.data[i]=[]);let a={value:t,timeout:void 0};if(r!==void 0&&(a.timeout=setTimeout(()=>{this.remove(e,a)},r)),this.data[i].push(a),this.order.push(i),this.order.length>this.max){let n=this._getAndRemoveByKey(this.order[0]);n&&this.onRemove(n)}return this}has(e){return e.wrapped().key in this.data}getAndRemove(e){return this.has(e)?this._getAndRemoveByKey(e.wrapped().key):null}_getAndRemoveByKey(e){let t=this.data[e].shift();return t.timeout&&clearTimeout(t.timeout),this.data[e].length===0&&delete this.data[e],this.order.splice(this.order.indexOf(e),1),t.value}getByKey(e){let t=this.data[e];return t?t[0].value:null}get(e){return this.has(e)?this.data[e.wrapped().key][0].value:null}remove(e,t){if(!this.has(e))return this;let r=e.wrapped().key,i=t===void 0?0:this.data[r].indexOf(t),a=this.data[r][i];return this.data[r].splice(i,1),a.timeout&&clearTimeout(a.timeout),this.data[r].length===0&&delete this.data[r],this.onRemove(a.value),this.order.splice(this.order.indexOf(r),1),this}setMaxSize(e){for(this.max=e;this.order.length>this.max;){let t=this._getAndRemoveByKey(this.order[0]);t&&this.onRemove(t)}return this}filter(e){let t=[];for(let r in this.data)for(let i of this.data[r])e(i.value)||t.push(i);for(let r of t)this.remove(r.value.tileID,r)}}});var nce={};Zi(nce,{AJAXError:()=>pm,AttributionControl:()=>Kue,BoxZoomHandler:()=>Oue,CanvasSource:()=>Nle,CooperativeGesturesHandler:()=>Wue,DoubleClickZoomHandler:()=>$ue,DragPanHandler:()=>Hue,DragRotateHandler:()=>Zue,EXTENT:()=>ft,EdgeInsets:()=>fF,ErrorEvent:()=>sr,Event:()=>xs,Evented:()=>Xa,FullscreenControl:()=>hYe,FullscreenEvent:()=>_F,GPUInitializationError:()=>Bue,GeoJSONSource:()=>zle,GeolocateControl:()=>oYe,GeolocateErrorEvent:()=>ice,GeolocateEvent:()=>ip,GeolocatePositionEvent:()=>yF,GlobeControl:()=>dYe,Hash:()=>que,ImageSource:()=>Nm,KeyboardHandler:()=>Gue,LngLat:()=>ar,LngLatBounds:()=>Ou,LogoControl:()=>Jue,Map:()=>JZe,MapBoxZoomEvent:()=>rF,MapContextEvent:()=>Qw,MapLibreEvent:()=>In,MapLibreMap:()=>JZe,MapMouseEvent:()=>bs,MapMovementEvent:()=>hr,MapProjectionEvent:()=>wle,MapSourceDataEvent:()=>ca,MapStyleDataEvent:()=>Yl,MapStyleImageMissingEvent:()=>Ale,MapStyleLoadEvent:()=>tF,MapTerrainEvent:()=>ble,MapTouchEvent:()=>$2,MapWheelEvent:()=>xle,Marker:()=>gF,MarkerClickEvent:()=>rce,MarkerDragEvent:()=>rp,MercatorCoordinate:()=>bi,NavigationControl:()=>eYe,Point:()=>Be,Popup:()=>vYe,PopupEvent:()=>xF,RasterDEMTileSource:()=>Ile,RasterTileSource:()=>MF,ScaleControl:()=>lYe,ScrollZoomHandler:()=>jue,Style:()=>pF,TerrainControl:()=>fYe,TwoFingersTouchPitchHandler:()=>Uue,TwoFingersTouchRotateHandler:()=>Vue,TwoFingersTouchZoomHandler:()=>Nue,TwoFingersTouchZoomRotateHandler:()=>Yue,VectorTileSource:()=>Ple,VideoSource:()=>Ole,addProtocol:()=>Die,addSourceType:()=>lGe,clearPrewarmedResources:()=>zUe,config:()=>_s,createTileMesh:()=>Ble,getGlobalDispatcher:()=>TF,getMaxParallelImageRequests:()=>TYe,getRTLTextPluginStatus:()=>xYe,getVersion:()=>bYe,getWorkerCount:()=>wYe,getWorkerUrl:()=>DYe,importScriptInWorkers:()=>EYe,isTimeFrozen:()=>KVe,now:()=>ki,prewarm:()=>LUe,removeProtocol:()=>Sie,restoreNow:()=>XVe,setMaxParallelImageRequests:()=>MYe,setNow:()=>WVe,setRTLTextPlugin:()=>_Ye,setWorkerCount:()=>AYe,setWorkerUrl:()=>SYe});function _le(){var e=new Tn(4);return Tn!=Float32Array&&(e[1]=0,e[2]=0),e[0]=1,e[3]=1,e}function HVe(e,t){var r=t[0],i=t[1],a=t[2],n=t[3],o=r*n-a*i;return o?(o=1/o,e[0]=n*o,e[1]=-i*o,e[2]=-a*o,e[3]=r*o,e):null}function ZVe(e){return e[0]*e[3]-e[2]*e[1]}function YVe(e,t,r){var i=t[0],a=t[1],n=t[2],o=t[3],s=Math.sin(r),l=Math.cos(r);return e[0]=i*l+n*s,e[1]=a*l+o*s,e[2]=i*-s+n*l,e[3]=a*-s+o*l,e}function ki(){return f6.getCurrentTime()}function WVe(e){f6.setNow(e)}function XVe(){f6.restoreNow()}function KVe(){return f6.isFrozen()}function zC(){return R2!=null||(R2={getAttribute:Element.prototype.getAttribute,getAttributeNames:Element.prototype.getAttributeNames,querySelectorAll:Element.prototype.querySelectorAll,remove:Element.prototype.remove,removeAttribute:Element.prototype.removeAttribute,localName:Object.getOwnPropertyDescriptor(Element.prototype,"localName").get,namespaceURI:Object.getOwnPropertyDescriptor(Element.prototype,"namespaceURI").get}),R2}function iUe(e,t){let r={};for(let i in e)i!=="ref"&&(r[i]=e[i]);return Cie.forEach(i=>{i in t&&(r[i]=t[i])}),r}function lse(e){e=e.slice();let t=Object.create(null);for(let r=0;r{"source"in s&&a[s.source]?r.push({command:"removeLayer",args:[s.id]}):o.push(s)}),r=r.concat(n),sUe(o,t.layers,r),i&&t.terrain&&r.push({command:"setTerrain",args:[t.terrain]})}catch(i){console.warn("Unable to compute style diff:",i),r=[{command:"setStyle",args:[t]}]}return r}function uUe(){let e={},t=Xe.$version;for(let r in Xe.$root){let i=Xe.$root[r];if(i.required){let a=null;a=r==="version"?t:i.type==="array"?[]:{},a!=null&&(e[r]=a)}}return e}function e6(e){let t=[];if(typeof e=="string")t.push({id:"default",url:e});else if(e&&e.length>0){let r=[];for(let{id:i,url:a}of e){let n=`${i}${a}`;r.includes(n)||(r.push(n),t.push({id:i,url:a}))}}return t}function fse(e,t,r){try{let i=new URL(e);return i.pathname+=`${t}${r}`,i.toString()}catch(i){throw Error(`Invalid sprite URL "${e}", must be absolute. Modify style specification directly or use TransformStyleFunction to correct the issue dynamically`)}}function cUe(e,t,r,i){return Kt(this,null,function*(){let a=e6(e),n=r>1?"@2x":"",o={},s={};for(let{id:l,url:u}of a){let c=yield t.transformRequest(fse(u,n,".json"),"SpriteJSON");o[l]=d2(c,i);let h=yield t.transformRequest(fse(u,n,".png"),"SpriteImage");s[l]=qu.getImage(h,i)}return yield Promise.all([...Object.values(o),...Object.values(s)]),hUe(o,s)})}function hUe(e,t){return Kt(this,null,function*(){let r={};for(let i in e){r[i]={};let a=(yield t[i]).data;if(!a)throw Error(`Could not load sprite image for ${i}: the response is empty`);let n=ws.getImageCanvasContext(a),o=(yield e[i]).data;for(let s in o){let{width:l,height:u,x:c,y:h,sdf:f,pixelRatio:d,stretchX:p,stretchY:m,content:g,textFitWidth:y,textFitHeight:x}=o[s],w={width:l,height:u,x:c,y:h,context:n};r[i][s]={data:null,pixelRatio:d,sdf:f,stretchX:p,stretchY:m,content:g,textFitWidth:y,textFitHeight:x,spriteData:w}}}return r})}function vUe(e){let t=/^u\+([0-9a-f]*)(\?+)$/i.exec(e);if(t){let[,a,n]=t;return a.length+n.length>6?null:dse(parseInt(`${a}${"0".repeat(n.length)}`,16),parseInt(`${a}${"f".repeat(n.length)}`,16))}let r=/^u\+([0-9a-f]{1,6})(?:-([0-9a-f]{1,6}))?$/i.exec(e);if(!r)return null;let i=parseInt(r[1],16);return dse(i,r[2]===void 0?i:parseInt(r[2],16))}function dse(e,t){return e>t||e>iF?null:{start:e,end:Math.min(t,iF)}}function gUe(e,t){return e.ranges.some(({start:r,end:i})=>t>=r&&t<=i)}function pse(e,t,r,i,a,n,o,s,l){for(let u=t;u-1);l++,n[l]=s,o[l]=u,o[l+1]=aF}for(let s=0,l=0;sf2(t,r))),Nw}function RUe(e,t){let r=yh();return Ya(r,r,[1,1,0]),Zn(r,r,[e.width*.5,e.height*.5,1]),e.calculatePosMatrix?$d(r,r,e.calculatePosMatrix(t.toUnwrapped())):r}function BUe(e,t,r){if(e)for(let i of e){let a=t[i];if((a==null?void 0:a.source)===r&&a.type==="fill-extrusion")return!0}else for(let i in t){let a=t[i];if(a.source===r&&a.type==="fill-extrusion")return!0}return!1}function qUe(e,t,r,i,a,n,o){var h;let s=BUe((h=a==null?void 0:a.layers)!=null?h:null,t,e.id),l=n.maxPitchScaleFactor(),u=e.tilesIn(i,l,s);u.sort(Ele);let c=[];for(let f of u)c.push({wrappedTileID:f.tileID.wrapped().key,queryResults:f.tile.queryRenderedFeatures(t,r,e.getState(),f.queryGeometry,f.cameraQueryGeometry,f.scale,a,n,l,RUe(n,f.tileID),o?(d,p)=>o(f.tileID,d,p):void 0)});return UUe(VUe(c),e)}function OUe(e,t,r,i,a,n,o){let s={},l=n.queryRenderedSymbols(i),u=[];for(let c of Object.keys(l).map(Number))u.push(o[c]);u.sort(Ele);for(let c of u){let h=c.featureIndex.lookupSymbolFeatures(l[c.bucketInstanceId],t,c.bucketIndex,c.sourceLayerIndex,{filterSpec:a.filter,globalState:a.globalState},a.layers,a.availableImages,e);for(let f in h){s[f]||(s[f]=[]);let d=h[f];d.sort((p,m)=>{let g=c.featureSortOrder;if(g){let y=g.indexOf(p.featureIndex);return g.indexOf(m.featureIndex)-y}return m.featureIndex-p.featureIndex});for(let p of d)s[f].push(p)}}return GUe(s,e,r)}function NUe(e,t){let r=e.getRenderableIds().map(n=>e.getTileByID(n)),i=[],a={};for(let n of r){let o=n.tileID.canonical.key;a[o]||(a[o]=!0,n.querySourceFeatures(i,t))}return i}function Ele(e,t){let r=e.tileID,i=t.tileID;return r.overscaledZ-i.overscaledZ||r.canonical.y-i.canonical.y||r.wrap-i.wrap||r.canonical.x-i.canonical.x}function VUe(e){let t={},r={};for(let{queryResults:i,wrappedTileID:a}of e){r[a]||(r[a]={});let n=r[a];for(let o in i){let s=i[o];n[o]||(n[o]={});let l=n[o];t[o]||(t[o]=[]);for(let u of s)l[u.featureIndex]||(l[u.featureIndex]=!0,t[o].push(u))}}return t}function UUe(e,t){for(let r in e)for(let i of e[r])kle(i,t);return e}function GUe(e,t,r){for(let i in e)for(let a of e[i]){let n=r[t[i].source];kle(a,n)}return e}function kle(e,t){let r=e.feature,i=t.getFeatureState(r.layer["source-layer"],r.id);r.source=r.layer.source,r.layer["source-layer"]&&(r.sourceLayer=r.layer["source-layer"]),r.state=i}function Cle(e,t,r,i){return Kt(this,null,function*(){let a=e;if(e.url?a=(yield d2(yield t.transformRequest(e.url,"Source"),r)).data:yield ws.frameAsync(r,i),!a)return null;let n=Mm(tr(a,e),["tiles","minzoom","maxzoom","attribution","bounds","scheme","tileSize","encoding"]);return"vector_layers"in a&&a.vector_layers&&(n.vectorLayerIds=a.vector_layers.map(o=>o.id)),n})}function n6(e,t){return t?e.properties[t]:e.id}function jUe(e,t){let r=new Map;if(e==null||e.type==null)return r;if(e.type==="Feature"){let i=n6(e,t);return i==null?void 0:(r.set(i,e),r)}if(e.type==="FeatureCollection"){let i=new Set;for(let a of e.features){let n=n6(a,t);if(n==null||i.has(n))return;i.add(n),r.set(n,a)}return r}}function $Ue(e,t,r){var a,n;let i=[];if(t.removeAll)e.clear();else if(t.remove)for(let o of t.remove){let s=e.get(o);s&&(i.push(s.geometry),e.delete(o))}if(t.add)for(let o of t.add){let s=n6(o,r);if(s==null)continue;let l=e.get(s);l&&i.push(l.geometry),i.push(o.geometry),e.set(s,o)}if(t.update)for(let o of t.update){let s=e.get(o.id);if(!s)continue;let l=!!o.newGeometry,u=o.removeAllProperties||((a=o.removeProperties)==null?void 0:a.length)>0||((n=o.addOrUpdateProperties)==null?void 0:n.length)>0;if(!l&&!u)continue;i.push(s.geometry);let c=nr({},s);if(e.set(o.id,c),l&&(i.push(o.newGeometry),c.geometry=o.newGeometry),u){if(c.properties=o.removeAllProperties?{}:nr({},c.properties||{}),o.removeProperties)for(let h of o.removeProperties)delete c.properties[h];if(o.addOrUpdateProperties)for(let{key:h,value:f}of o.addOrUpdateProperties)c.properties[h]=f}}return i}function HUe(e,t,r){if(!e)return t||{};if(!t)return e||{};let i=yse(e,r),a=yse(t,r);ZUe(i,a);let n={};if((i.removeAll||a.removeAll)&&(n.removeAll=!0),n.remove=new Set([...i.remove,...a.remove]),n.add=new Map([...i.add,...a.add]),n.update=new Map([...i.update,...a.update]),n.remove.size&&n.add.size)for(let o of n.add.keys())n.remove.delete(o);return WUe(n)}function ZUe(e,t){t.removeAll&&(e.add.clear(),e.update.clear(),e.remove.clear(),t.remove.clear());for(let r of t.remove)e.add.delete(r),e.update.delete(r);for(let[r,i]of t.update){let a=e.update.get(r);a&&(t.update.set(r,YUe(a,i)),e.update.delete(r))}}function YUe(e,t){let r={id:e.id};if(t.removeAllProperties&&(delete e.removeProperties,delete e.addOrUpdateProperties,delete t.removeProperties),t.removeProperties&&e.addOrUpdateProperties){let i=new Set(t.removeProperties);e.addOrUpdateProperties=e.addOrUpdateProperties.filter(a=>!i.has(a.key))}return(e.removeAllProperties||t.removeAllProperties)&&(r.removeAllProperties=!0),(e.removeProperties||t.removeProperties)&&(r.removeProperties=[...e.removeProperties||[],...t.removeProperties||[]]),(e.addOrUpdateProperties||t.addOrUpdateProperties)&&(r.addOrUpdateProperties=[...e.addOrUpdateProperties||[],...t.addOrUpdateProperties||[]]),(e.newGeometry||t.newGeometry)&&(r.newGeometry=t.newGeometry||e.newGeometry),r}function yse(e,t){var i,a;if(!e)return{};let r={};return r.removeAll=e.removeAll,r.remove=new Set(e.remove||[]),r.add=new Map((i=e.add)==null?void 0:i.map(n=>[n6(n,t),n])),r.update=new Map((a=e.update)==null?void 0:a.map(n=>[n.id,n])),r}function WUe(e){let t={};return e.removeAll&&(t.removeAll=e.removeAll),e.remove&&(t.remove=Array.from(e.remove)),e.add&&(t.add=Array.from(e.add.values())),e.update&&(t.update=Array.from(e.update.values())),t}function Lle(e){return!e||e.length===0?[]:typeof e[0]=="number"?[e]:e.flatMap(t=>Lle(t))}function t6(e){return e.type==="GeometryCollection"?e.geometries.flatMap(t=>t6(t)):Lle(e.coordinates)}function _se(e){let t=new Ou,r;switch(e.type){case"FeatureCollection":r=e.features.flatMap(i=>t6(i.geometry));break;case"Feature":r=t6(e.geometry);break;default:r=t6(e)}if(r.length===0)return t;for(let i of r){let[a,n]=i;t.extend([a,n])}return t}function XUe({x:e,y:t,z:r},i=0){let a=Ew((e-i)/2**r),n=Am((t+1+i)/2**r),o=Ew((e+1+i)/2**r),s=Am((t-i)/2**r);return new Ou([a,n],[o,s])}function QUe(e){e*=Math.PI/180;let t=Math.sin(e),r=Math.cos(e);return[(2*r+1)/3,(-Math.sqrt(3)*t-r+1)/3,(Math.sqrt(3)*t-r+1)/3]}function eGe(e){return e>0?1/(1-e):1+e}function tGe(e){return e>0?1-1/(1.001-e):-e}function Rle(e,t){let r=Ble(t,"16bit"),i=Ah.deserialize({arrayBuffer:r.vertices,length:r.vertices.byteLength/2/2}),a=Ru.deserialize({arrayBuffer:r.indices,length:r.indices.byteLength/2/3});return new W2(e.createVertexBuffer(i,ap.members),e.createIndexBuffer(a),ma.simpleSegment(0,0,i.length,a.length))}function Ble(e,t){let r=e.granularity===void 0?1:Math.max(e.granularity,1),i=r+(e.generateBorders?2:0),a=r+(e.extendToNorthPole||e.generateBorders?1:0)+(e.extendToSouthPole||e.generateBorders?1:0),n=i+1,o=a+1,s=e.generateBorders?-1:0,l=e.generateBorders||e.extendToNorthPole?-1:0,u=r+ +!!e.generateBorders,c=r+(e.generateBorders||e.extendToSouthPole?1:0),h=n*o,f=i*a*6,d=n*o>65536;if(d&&t==="16bit")throw Error("Granularity is too large and meshes would not fit inside 16 bit vertex indices.");let p=d||t==="32bit",m=new Int16Array(h*2),g=0;for(let w=l;w<=c;w++)for(let _=s;_<=u;_++){let A=_/r*ft;_===-1&&(A=-Vw),_===r+1&&(A=ft+Vw);let T=w/r*ft;w===-1&&(T=e.extendToNorthPole?cm:-Vw),w===r+1&&(T=e.extendToSouthPole?hm:ft+Vw),m[g++]=A,m[g++]=T}let y=p?new Uint32Array(f):new Uint16Array(f),x=0;for(let w=0;w=1&&y<=512)||x>=1?Bm:[p,m,x]}function nGe(e){let t=(1-4/e)/.9921875;return Math.max(0,t)}function qle(e){let[t,r,i,a]=e;return t.x+i.x===r.x+a.x&&t.y+i.y===r.y+a.y}function uGe(e,t){let r={};if(!t)return r;for(let i of e){let a=i.layerIds.map(n=>t.getLayer(n)).filter(Boolean);if(a.length!==0){i.layers=a,i.stateDependentLayerIds&&(i.stateDependentLayers=i.stateDependentLayerIds.map(n=>a.filter(o=>o.id===n)[0]));for(let n of a)r[n.id]=i}}return r}function Y2(){return BC||(BC=new cGe),BC}function xse(e){let t=[];for(let r in e)t.push({id:r,state:e[r]});return t}function fGe(e,t,r,i){let a=Yn([],e,t),n=1/a[3]/r*i;return oie(a,a,[n,n,1/a[3],n])}function dGe(e,t,r,i){let a=i?4:0,n=i?0:4,o=0,s=[],l=[];for(let h=0;h<4;h++){let f=Cc([],e[h+n],e[h+a]),d=$l(f);la(f,f,1/d),s.push(d),l.push(f)}for(let h=0;h<4;h++){let f=uie(e[h+a],l[h],r);o=f!==null&&f>=0?Math.max(o,f):Math.max(o,s[h])}let u=pGe(e,t),c=mGe(r,u);if(c!==null){let h=c/Wa(l[0],u);o=Math.min(o,h)}for(let h=0;h<4;h++){let f=Math.min(o,s[h]);e[h+n]=[e[h+a][0]+l[h][0]*f,e[h+a][1]+l[h][1]*f,e[h+a][2]+l[h][2]*f,1]}}function pGe(e,t){let r=Cc([],e[t[0]],e[t[1]]),i=Cc([],e[t[2]],e[t[1]]),a=[0,0,0,0];return Fo(a,Yo([],r,i)),a[3]=-Wa(a,e[t[0]]),a}function mGe(e,t){let r=s2(e),i=nie([],e,1/r),a=Cc([],t,la([],i,Wa(t,i))),n=s2(a);if(n>0){let o=Math.sqrt(1-i[3]*i[3]),s=la([],i,-i[3]),l=Xs([],s,la([],a,o/n));return Q4(t,l)}return null}function vGe(e,t,r){let i=t.intersectsFrustum(e);if(!r||i===0)return i;let a=t.intersectsPlane(r);return a===0?0:i===2&&a===2?2:1}function bse(e,t,r){let i=0,a=(r-t)/10;for(let n=0;n<10;n++){let o=t+(n+.5)/10*(r-t);i+=a*Math.cos(o)**+e}return i}function oF(e,t){return function(r,i,a,n,o){let s=2*((e-1)/Wn(Math.cos(ua(Yf-o))/Math.cos(ua(Yf)))-1),l=Math.acos(a/n),u=2*bse(s-1,0,ua(o/2)),c=Math.min(ua(Yf),l+ua(o/2)),h=Math.min(c,l-ua(o/2)),f=bse(s-1,h,c),d=Math.atan(i/a),p=Math.hypot(i,a),m=r;return m+=Wn(n/p/Math.max(.5,Math.cos(ua(o/2)))),m+=s*Wn(Math.cos(d))/2,m-=Wn(Math.max(1,f/u/t))/2,m}}function EF(e,t){let r=(t.roundZoom?Math.round:Math.floor)(e.zoom+Wn(e.tileSize/t.tileSize));return Math.max(0,r)}function yGe(e,t){let r=Yf-e.pitch-e.fov/2,i=Ar((15-r)/15,0,1),a=Math.max(500,t!=null?t:0);return e.elevation+i*a}function _Ge(e,t,r){let i=e.planes[1],a=e.points.map(l=>{let u=i[0]*l[0]+i[1]*l[1]+i[2]*l[2]+i[3];if(Math.abs(u)>1e-6)return l;let c=[l[0]-r[0],l[1]-r[1],l[2]-r[2]],h=i[0]*c[0]+i[1]*c[1]+i[2]*c[2];if(h>=-1e-9)return l;let f=t/-h;return[l[0]+c[0]*f,l[1]+c[1]*f,l[2]+c[2]*f,l[3]]}),n=e.planes.map((l,u)=>u===1?[l[0],l[1],l[2],l[3]+t]:l),o=[1/0,1/0,1/0],s=[-1/0,-1/0,-1/0];for(let l of a)for(let u=0;u<3;u++)o[u]=Math.min(o[u],l[u]),s[u]=Math.max(s[u],l[u]);return new SF(a,n,new DF(o,s))}function xGe(e,t,r,i){let a=Math.hypot(t[0],t[1],t[2]);if(a===0)return{frustum:e,plane:t};let n=1+i/Lo,o=Ar(-t[3]/a,-1,1),s=Math.cos(Math.acos(o)+Math.acos(1/n));return{frustum:_Ge(e,Math.sqrt(n*n-1),r),plane:[t[0],t[1],t[2],-s*a]}}function Vm(e,t){let r=e.getCameraFrustum(),i=e.getClippingPlane();i&&t.maxContentElevation>0&&({frustum:r,plane:i}=xGe(r,i,e.cameraPosition,t.maxContentElevation));let a=Hne(e),n=bi.fromLngLat(e.center,e.elevation),o=yGe(e,t.maxContentElevation),s=e.getCoveringTilesDetailsProvider(),l=s.allowVariableZoom(e,t),u=EF(e,t),c=t.minzoom||0,h=t.maxzoom===void 0?e.maxZoom:t.maxzoom,f=Math.min(Math.max(0,u),h),d=2**f,p=[d*a.x,d*a.y,0],m=[d*n.x,d*n.y,0],g=Math.hypot(n.x-a.x,n.y-a.y),y=Math.abs(n.z-a.z),x=Math.hypot(g,y),w=T=>({zoom:0,x:0,y:0,wrap:T,fullyVisible:!1}),_=[],A=[];if(e.renderWorldCopies&&s.allowWorldCopies())for(let T=1;T<=3;T++)_.push(w(-T)),_.push(w(T));for(_.push(w(0));_.length>0;){let T=_.pop(),M=T.x,S=T.y,k=T.fullyVisible,P={x:M,y:S,z:T.zoom},I=s.getTileBoundingVolume(P,T.wrap,o,t);if(!k){let O=vGe(r,I,i);if(O===0)continue;k=O===2}let B=s.distanceToTile2d(a.x,a.y,P,I),L=u;l&&(L=(t.calculateTileZoom||gGe)(e.zoom+Wn(e.tileSize/t.tileSize),B,y,x,e.fov)),L=(t.roundZoom?Math.round:Math.floor)(L),L=Math.max(0,L);let z=Math.min(L,h);if(T.wrap=s.getWrap(n,P,T.wrap),T.zoom>=z){if(T.zoom>1),j=T.zoom+1;_.push({zoom:j,x:V,y:$,wrap:T.wrap,fullyVisible:k})}}return A.sort((T,M)=>T.distanceSq-M.distanceSq).map(T=>T.tileID)}function wse(e){return e==="raster"||e==="image"||e==="video"}function bGe(e,t,r,i,a,n,o){let s=ki(),l=hie(t);for(let u of t){let c=e.getTileById(u.key);(c.fadingDirection===0||c.fadeOpacity===0)&&c.resetFadeLogic(),!wGe(e,c,r,s,i,a,o)&&(AGe(e,c,r,s,n,o)||TGe(c,l,s,o)||c.resetFadeLogic())}}function wGe(e,t,r,i,a,n,o){if(!t.hasData())return!1;let{tileID:s,fadingRole:l,fadingDirection:u,fadingParentID:c}=t;if(l===0&&u===1&&c)return r[c.key]=c,!0;let h=Math.max(s.overscaledZ-a,n);for(let f=s.overscaledZ-1;f>=h;f--){let d=s.scaledTo(f),p=e.getLoadedTile(d);if(p)return t.setCrossFadeLogic({fadingRole:0,fadingDirection:1,fadingParentID:p.tileID,fadeEndTime:i+o}),p.setCrossFadeLogic({fadingRole:1,fadingDirection:0,fadeEndTime:i+o}),r[d.key]=d,!0}return!1}function AGe(e,t,r,i,a,n){if(!t.hasData())return!1;let o=t.tileID.children(a),s=Ase(e,t,o,r,i,a,n);if(s)return!0;for(let l of o)Ase(e,t,l.children(a),r,i,a,n)&&(s=!0);return s}function Ase(e,t,r,i,a,n,o){if(r[0].overscaledZ>=n)return!1;let s=!1;for(let l of r){let u=e.getLoadedTile(l);if(!u)continue;let{fadingRole:c,fadingDirection:h,fadingParentID:f}=u;(c!==0||h!==0||!f)&&(u.setCrossFadeLogic({fadingRole:0,fadingDirection:0,fadingParentID:t.tileID,fadeEndTime:a+o}),t.setCrossFadeLogic({fadingRole:1,fadingDirection:1,fadeEndTime:a+o})),i[l.key]=l,s=!0}return s}function TGe(e,t,r,i){let a=e.tileID;if(e.selfFading)return!0;if(e.hasData())return!1;if(t.has(a)){let n=r+i;return e.setSelfFadeLogic(n),!0}return!1}function MGe(e,t){if(t<=0)return!1;let r=ki();for(let i of e.getAllTiles())if(i.fadeEndTime>=r)return!0;return!1}function DGe(e,t){var i,a,n;let r=t.getRenderableIds();for(let o of r){if(!((i=e.neighboringTiles)!=null&&i[o]))continue;let s=t.getTileById(o);e.neighboringTiles[o].backfilled||Tse(e,s),!((n=(a=s.neighboringTiles)==null?void 0:a[e.tileID.key])!=null&&n.backfilled)&&Tse(s,e)}}function Tse(e,t){var o;e.needsHillshadePrepare=!0,e.needsTerrainPrepare=!0,e.needsColorReliefPrepare=!0;let r=t.tileID.canonical.x-e.tileID.canonical.x,i=t.tileID.canonical.y-e.tileID.canonical.y,a=2**e.tileID.canonical.z,n=t.tileID.key;(r!==0||i!==0)&&(Math.abs(i)>1||(Math.abs(r)>1&&(Math.abs(r+a)===1?r+=a:Math.abs(r-a)===1&&(r-=a)),t.dem&&e.dem&&(e.dem.backfillBorder(t.dem,r,i),(o=e.neighboringTiles)!=null&&o[n]&&(e.neighboringTiles[n].backfilled=!0))))}function r6(e,t,r,i,a){return a?e?e(t,r)+i:i===0?void 0:i:i}function Uw(e,t){let r=!0;return e==="always"||(e==="never"||t==="never")&&(r=!1),r}function EGe(e,t){let r=1/(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]),i=1/(t[8]*t[8]+t[9]*t[9]+t[10]*t[10]),a=t[0]*r,n=t[4]*r,o=t[8]*i,s=t[1]*r,l=t[5]*r,u=t[9]*i,c=t[2]*r,h=t[6]*r,f=t[10]*i;e[0]=a,e[1]=n,e[2]=o,e[4]=s,e[5]=l,e[6]=u,e[8]=c,e[9]=h,e[10]=f;let d=t[12],p=t[13],m=t[14];return e[12]=-a*d-s*p-c*m,e[13]=-n*d-l*p-h*m,e[14]=-o*d-u*p-f*m,e[3]=0,e[7]=0,e[11]=0,e[15]=1,e}function kGe(e,t){return e[0]=1/t[0],e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1/t[5],e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=0,e[11]=1/t[14],e[12]=0,e[13]=0,e[14]=-1,e[15]=t[10]/t[14],e}function CGe(e,t){let r=1/(t[0]*t[5]-t[1]*t[4]);return e[0]=t[5]*r,e[1]=-t[1]*r,e[2]=0,e[3]=0,e[4]=-t[4]*r,e[5]=t[0]*r,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1/t[10],e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1/t[15],e}function kF(e,t,r){let i=yh();if(!e){let{vecSouth:a,vecEast:n}=CF(t),o=_le();o[0]=n[0],o[1]=n[1],o[2]=a[0],o[3]=a[1],HVe(o,o),i[0]=o[0],i[1]=o[1],i[4]=o[2],i[5]=o[3]}return Zn(i,i,[1/r,1/r,1]),i}function PGe(e,t,r,i){if(e){let a=yh();if(!t){let{vecSouth:n,vecEast:o}=CF(r);a[0]=o[0],a[1]=o[1],a[4]=n[0],a[5]=n[1]}return Zn(a,a,[i,i,1]),a}return r.pixelsToClipSpaceMatrix}function CF(e){let t=Math.cos(e.rollInRadians),r=Math.sin(e.rollInRadians),i=Math.cos(e.pitchInRadians),a=Math.cos(e.bearingInRadians),n=Math.sin(e.bearingInRadians),o=J4();o[0]=-a*i*r-n*t,o[1]=-n*i*r+a*t;let s=vk(o);s<1e-9?gk(o):mk(o,o,1/s);let l=J4();l[0]=a*i*t-n*r,l[1]=n*i*t+a*r;let u=vk(l);return u<1e-9?gk(l):mk(l,l,1/u),{vecEast:l,vecSouth:o}}function op(e,t,r){var i,a;return r6(e.getElevation,t,r,(i=e.heightOffset)!=null?i:0,(a=e.heightAnchorGround)!=null?a:!0)}function FF(e,t,r,i){let a;i==null?(a=[e,t,0,1],PF(a,a,r)):(a=[e,t,i,1],Yn(a,a,r));let n=a[3];return{point:new Be(a[0]/n,a[1]/n),signedDistanceFromCamera:n,isOccluded:!1}}function Hle(e,t){return .5+e/t*.5}function IGe(e,t){return e.x>=-t[0]&&e.x<=t[0]&&e.y>=-t[1]&&e.y<=t[1]}function LGe(e,t,r,i,a,n,o,s,l,u,c,h,f){let d=r?e.textSizeData:e.iconSizeData,p=S2(d,t.transform.zoom),m=[256/t.width*2+1,256/t.height*2+1],g=r?e.text.dynamicLayoutVertexArray:e.icon.dynamicLayoutVertexArray;g.clear();let y=e.lineVertexArray,x=r?e.text.placedSymbolArray:e.icon.placedSymbolArray,w=t.transform.width/t.transform.height,_=!1;for(let A=0;AMath.abs(r.x-t.x)*i?{useVertical:!0}:(e===2?t.yr.x)?{needsFlipping:!0}:null}function Ese(e){let{projectionContext:t,pitchedLabelPlaneMatrixInverse:r,symbol:i,fontSize:a,flip:n,keepUpright:o,glyphOffsetArray:s,dynamicLayoutVertexArray:l,aspectRatio:u,rotateToLine:c}=e,h=a/24,f=i.lineOffsetX*h,d=i.lineOffsetY*h,p;if(i.numGlyphs>1){let m=i.glyphStartIndex+i.numGlyphs,g=i.lineStartIndex,y=i.lineStartIndex+i.lineLength,x=Zle(h,s,f,d,n,i,c,t);if(!x)return{notEnoughRoom:!0};let w=Gw(x.first.point.x,x.first.point.y,t,r),_=Gw(x.last.point.x,x.last.point.y,t,r);if(o&&!n){let A=Sse(i.writingMode,w,_,u);if(A)return A}p=[x.first];for(let A=i.glyphStartIndex+1;A0?w.point:Yle(t.tileAnchorPoint,x,g,1,t),A=Gw(g.x,g.y,t,r),T=Gw(_.x,_.y,t,r),M=Sse(i.writingMode,A,T,u);if(M)return M}let m=o6(h*s.getoffsetX(i.glyphStartIndex),f,d,n,i.segment,i.lineStartIndex,i.lineStartIndex+i.lineLength,t,c);if(!m||t.projectionCache.anyProjectionOccluded)return{notEnoughRoom:!0};p=[m]}for(let m of p)E2(l,m.point,m.angle);return{}}function Yle(e,t,r,i,a){let n=e.add(e.sub(t)._unit()),o=sp(n.x,n.y,a).point,s=r.sub(o);return r.add(s._mult(i/s.mag()))}function lF(e,t,r){let i=t.projectionCache;if(i.projections[e])return i.projections[e];let a=new Be(t.lineVertexArray.getx(e),t.lineVertexArray.gety(e)),n=sp(a.x,a.y,t);if(n.signedDistanceFromCamera>0)return i.projections[e]=n.point,i.anyProjectionOccluded||(i.anyProjectionOccluded=n.isOccluded),n.point;let o=e-r.direction,s=r.distanceFromAnchor===0?t.tileAnchorPoint:new Be(t.lineVertexArray.getx(o),t.lineVertexArray.gety(o)),l=r.absOffsetX-r.distanceFromAnchor+1;return Yle(s,a,r.previousVertex,l,t)}function sp(e,t,r){let i=e+r.translation[0],a=t+r.translation[1],n;return r.pitchWithMap?(n=FF(i,a,r.pitchedLabelPlaneMatrix,op(r,i,a)),n.isOccluded=!1):(n=r.transform.projectTileCoordinates(i,a,r.unwrappedTileID,op(r,i,a)),n.point.x=(n.point.x*.5+.5)*r.width,n.point.y=(-n.point.y*.5+.5)*r.height),n}function Gw(e,t,r,i){if(r.pitchWithMap){let a=[e,t,0,1];Yn(a,a,i);let n=a[0]/a[3],o=a[1]/a[3];return r.transform.projectTileCoordinates(n,o,r.unwrappedTileID,op(r,n,o)).point}return{x:e/r.width*2-1,y:1-t/r.height*2}}function Wle(e,t,r){return r.transform.projectTileCoordinates(e,t,r.unwrappedTileID,op(r,e,t))}function uF(e,t,r){return e._unit()._perp()._mult(t*r)}function zGe(e,t,r,i,a,n,o,s,l){if(s.projectionCache.offsets[e])return s.projectionCache.offsets[e];let u=r.add(t);if(e+l.direction=a)return s.projectionCache.offsets[e]=u,u;let c=lF(e+l.direction,s,l),h=uF(c.sub(r),o,l.direction),f=r.add(h),d=c.add(h);return s.projectionCache.offsets[e]=die(n,u,f,d)||u,s.projectionCache.offsets[e]}function o6(e,t,r,i,a,n,o,s,l){let u=i?e-t:e+t,c=u>0?1:-1,h=0;i&&(c*=-1,h=Math.PI),c<0&&(h+=Math.PI);let f=c>0?n+a:n+a+1,d;s.projectionCache.cachedAnchorPoint?d=s.projectionCache.cachedAnchorPoint:(d=sp(s.tileAnchorPoint.x,s.tileAnchorPoint.y,s).point,s.projectionCache.cachedAnchorPoint=d);let p=d,m=d,g,y,x=0,w=0,_=Math.abs(u),A=[],T;for(;x+w<=_;){if(f+=c,f=o)return null;x+=w,m=p,y=g;let P={absOffsetX:_,direction:c,distanceFromAnchor:x,previousVertex:m};if(p=lF(f,s,P),r===0)A.push(m),T=p.sub(m);else{let I,B=p.sub(m);I=B.mag()===0?uF(lF(f+c,s,P).sub(p),r,c):uF(B,r,c),y||(y=m.add(I)),g=zGe(f,I,p,n,o,y,r,s,P),A.push(y),T=g.sub(y)}w=T.mag()}let M=(_-x)/w,S=T._mult(M)._add(y||m),k=h+Math.atan2(p.y-m.y,p.x-m.x);return A.push(S),{point:S,angle:l?k:0,path:A}}function qm(e,t){for(let r=0;r{let a=FF(i.x,i.y,r,op(t,i.x,i.y)),n=t.transform.projectTileCoordinates(a.point.x,a.point.y,t.unwrappedTileID,op(t,a.point.x,a.point.y));return n.point.x=(n.point.x*.5+.5)*t.width,n.point.y=(-n.point.y*.5+.5)*t.height,n})}function qGe(e){let t=0,r=0,i=0,a=0;for(let n=0;nr&&(r=a,t=i));return e.slice(t,t+r)}function Fse(e,t,r,i,a){let{horizontalAlign:n,verticalAlign:o}=D2(e),s=-(n-.5)*t,l=-(o-.5)*r;return new Be(s+i[0]*a,l+i[1]*a)}function Pse(e,t,r,i,a,n){(!i||i.length===0)&&(i=[0,0,0,0]);let o=i[0]-100,s=i[1]-100,l=i[2]-100,u=i[3]-100;e.emplaceBack(+!!t,+!!r,a||0,n||0,o,s),e.emplaceBack(+!!t,+!!r,a||0,n||0,l,s),e.emplaceBack(+!!t,+!!r,a||0,n||0,l,u),e.emplaceBack(+!!t,+!!r,a||0,n||0,o,u)}function Ise(e){if(e.opacity===0&&!e.placed)return 0;if(e.opacity===1&&e.placed)return 4294967295;let t=+!!e.placed,r=Math.floor(e.opacity*127);return r*GGe+t*jGe+r*$Ge+t*HGe+r*512+t*256+r*2+t}function cF(e,t,r,i,a,n){if(a-i<=r)return;let o=i+a>>1;Kle(e,t,o,i,a,n),cF(e,t,r,i,o-1,1-n),cF(e,t,r,o+1,a,1-n)}function Kle(e,t,r,i,a,n){for(;a>i;){if(a-i>600){let u=a-i+1,c=r-i+1,h=Math.log(u),f=.5*Math.exp(2*h/3),d=.5*Math.sqrt(h*f*(u-f)/u)*(c-u/2<0?-1:1);Kle(e,t,r,Math.max(i,Math.floor(r-c*f/u+d)),Math.min(a,Math.floor(r+(u-c)*f/u+d)),n)}let o=t[2*r+n],s=i,l=a;for(O2(e,t,i,r),t[2*a+n]>o&&O2(e,t,i,a);so;)l--}t[2*i+n]===o?O2(e,t,i,l):(l++,O2(e,t,l,a)),l<=r&&(i=l+1),r<=l&&(a=l-1)}}function O2(e,t,r,i){qC(e,r,i),qC(t,2*r,2*i),qC(t,2*r+1,2*i+1)}function qC(e,t,r){let i=e[t];e[t]=e[r],e[r]=i}function zse(e,t,r,i){let a=e-r,n=t-i;return a*a+n*n}function pi(e,t){let r=/#pragma maplibre: ([\w]+) ([\w]+) ([\w]+) ([\w]+)/g,i=t.match(/in ([\w]+) ([\w]+)/g),a=e.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),n=t.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),o=n?n.concat(a):a,s=i?i.length:0,l={};return e=e.replace(r,(u,c,h,f,d)=>(l[d]=!0,c==="define"?` +{name:nonlatin}`,"text-max-width":8,"icon-image":"star_11","text-offset":[.4,0],"icon-size":.8,"text-anchor":"left",visibility:"visible"},paint:{"text-color":"#333","text-halo-width":1.2,"text-halo-color":"rgba(255,255,255,0.8)"}},{id:"place-country-other",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",filter:["all",["==","class","country"],[">=","rank",3],["!has","iso_a2"]],layout:{"text-font":["Noto Sans Italic"],"text-field":"{name:latin}","text-size":{stops:[[3,11],[7,17]]},"text-transform":"uppercase","text-max-width":6.25,visibility:"visible"},paint:{"text-halo-blur":1,"text-color":"#334","text-halo-width":2,"text-halo-color":"rgba(255,255,255,0.8)"}},{id:"place-country-3",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",filter:["all",["==","class","country"],[">=","rank",3],["has","iso_a2"]],layout:{"text-font":["Noto Sans Bold"],"text-field":"{name:latin}","text-size":{stops:[[3,11],[7,17]]},"text-transform":"uppercase","text-max-width":6.25,visibility:"visible"},paint:{"text-halo-blur":1,"text-color":"#334","text-halo-width":2,"text-halo-color":"rgba(255,255,255,0.8)"}},{id:"place-country-2",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",filter:["all",["==","class","country"],["==","rank",2],["has","iso_a2"]],layout:{"text-font":["Noto Sans Bold"],"text-field":"{name:latin}","text-size":{stops:[[2,11],[5,17]]},"text-transform":"uppercase","text-max-width":6.25,visibility:"visible"},paint:{"text-halo-blur":1,"text-color":"#334","text-halo-width":2,"text-halo-color":"rgba(255,255,255,0.8)"}},{id:"place-country-1",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",filter:["all",["==","class","country"],["==","rank",1],["has","iso_a2"]],layout:{"text-font":["Noto Sans Bold"],"text-field":"{name:latin}","text-size":{stops:[[1,11],[4,17]]},"text-transform":"uppercase","text-max-width":6.25,visibility:"visible"},paint:{"text-halo-blur":1,"text-color":"#334","text-halo-width":2,"text-halo-color":"rgba(255,255,255,0.8)"}},{id:"place-continent",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",maxzoom:1,filter:["==","class","continent"],layout:{"text-font":["Noto Sans Bold"],"text-field":"{name:latin}","text-size":14,"text-max-width":6.25,"text-transform":"uppercase",visibility:"visible"},paint:{"text-halo-blur":1,"text-color":"#334","text-halo-width":2,"text-halo-color":"rgba(255,255,255,0.8)"}}],id:"qebnlkra6"}});var _ee=X((kat,yee)=>{"use strict";yee.exports={version:8,name:"orto",metadata:{},center:[1.537786,41.837539],zoom:12,bearing:0,pitch:0,light:{anchor:"viewport",color:"white",intensity:.4,position:[1.15,45,30]},sources:{ortoEsri:{type:"raster",tiles:["https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}"],tileSize:256,maxzoom:18,attribution:"ESRI © ESRI"},ortoInstaMaps:{type:"raster",tiles:["https://tilemaps.icgc.cat/mapfactory/wmts/orto_8_12/CAT3857/{z}/{x}/{y}.png"],tileSize:256,maxzoom:13},ortoICGC:{type:"raster",tiles:["https://geoserveis.icgc.cat/icc_mapesmultibase/noutm/wmts/orto/GRID3857/{z}/{x}/{y}.jpeg"],tileSize:256,minzoom:13.1,maxzoom:20},openmaptiles:{type:"vector",url:"https://geoserveis.icgc.cat/contextmaps/basemap.json"}},sprite:"https://geoserveis.icgc.cat/contextmaps/sprites/sprite@1",glyphs:"https://geoserveis.icgc.cat/contextmaps/glyphs/{fontstack}/{range}.pbf",layers:[{id:"background",type:"background",paint:{"background-color":"#F4F9F4"}},{id:"ortoEsri",type:"raster",source:"ortoEsri",maxzoom:16,layout:{visibility:"visible"}},{id:"ortoICGC",type:"raster",source:"ortoICGC",minzoom:13.1,maxzoom:19,layout:{visibility:"visible"}},{id:"ortoInstaMaps",type:"raster",source:"ortoInstaMaps",maxzoom:13,layout:{visibility:"visible"}}]}});var Pf=X((Cat,Tee)=>{"use strict";var VFe=(Px(),lt(Fx)).default,UFe=gee(),GFe=_ee(),jFe='\xA9 OpenStreetMap contributors',xee="https://basemaps.cartocdn.com/gl/positron-gl-style/style.json",bee="https://basemaps.cartocdn.com/gl/dark-matter-gl-style/style.json",J5="https://basemaps.cartocdn.com/gl/voyager-gl-style/style.json",$Fe="https://basemaps.cartocdn.com/gl/positron-nolabels-gl-style/style.json",HFe="https://basemaps.cartocdn.com/gl/dark-matter-nolabels-gl-style/style.json",ZFe="https://basemaps.cartocdn.com/gl/voyager-nolabels-gl-style/style.json",Aee={basic:J5,streets:J5,outdoors:J5,light:xee,dark:bee,satellite:GFe,"satellite-streets":UFe,"open-street-map":{id:"osm",version:8,sources:{"plotly-osm-tiles":{type:"raster",attribution:jFe,tiles:["https://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":xee,"carto-darkmatter":bee,"carto-voyager":J5,"carto-positron-nolabels":$Fe,"carto-darkmatter-nolabels":HFe,"carto-voyager-nolabels":ZFe},wee=VFe(Aee);Tee.exports={styleValueDflt:"basic",stylesMap:Aee,styleValuesMap:wee,traceLayerPrefix:"plotly-trace-layer-",layoutLayerPrefix:"plotly-layout-layer-",missingStyleErrorMsg:["No valid maplibre style found, please set `map.style` to one of:",wee.join(", "),"or use a tile service."].join(` +`),mapOnErrorMsg:"Map error.",fitBoundsPadding:20}});var dy=X((Fat,kee)=>{"use strict";var Mee=tt(),Dee=Vr().defaultLine,YFe=H5().attributes,WFe=oo(),XFe=sh().textposition,KFe=qs().overrideAll,JFe=qi().templatedArray,See=Pf(),Eee=WFe({noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0});Eee.family.dflt="Open Sans Regular, Arial Unicode MS Regular";var QFe=kee.exports=KFe({_arrayAttrRegexps:[Mee.counterRegex("map",".layers",!0)],domain:YFe({name:"map"}),style:{valType:"any",values:See.styleValuesMap,dflt:See.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},fitbounds:{valType:"enumerated",values:[!1,"locations"],dflt:"locations"},bounds:{west:{valType:"number"},east:{valType:"number"},south:{valType:"number"},north:{valType:"number"}},layers:JFe("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:Dee},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:Dee}},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:Eee,textposition:Mee.extendFlat({},XFe,{arrayOk:!1})}})},"plot","from-root");QFe.uirevision={valType:"any",editType:"none"}});var Q5=X((Pat,Iee)=>{"use strict";var{hovertemplateAttrs:ePe,texttemplateAttrs:tPe,templatefallbackAttrs:Cee}=tc(),rPe=P3(),py=F9(),Y1=sh(),Fee=dy(),iPe=Wo(),aPe=eh(),Fd=Ca().extendFlat,nPe=qs().overrideAll,oPe=dy(),Pee=py.line,W1=py.marker;Iee.exports=nPe({lon:py.lon,lat:py.lat,cluster:{enabled:{valType:"boolean"},maxzoom:Fd({},oPe.layers.maxzoom,{}),step:{valType:"number",arrayOk:!0,dflt:-1,min:-1},size:{valType:"number",arrayOk:!0,dflt:20,min:0},color:{valType:"color",arrayOk:!0},opacity:Fd({},W1.opacity,{dflt:1})},mode:Fd({},Y1.mode,{dflt:"markers"}),text:Fd({},Y1.text,{}),texttemplate:tPe({editType:"plot"},{keys:["lat","lon","text"]}),texttemplatefallback:Cee({editType:"plot"}),hovertext:Fd({},Y1.hovertext,{}),line:{color:Pee.color,width:Pee.width},connectgaps:Y1.connectgaps,marker:Fd({symbol:{valType:"string",dflt:"circle",arrayOk:!0},angle:{valType:"number",dflt:"auto",arrayOk:!0},allowoverlap:{valType:"boolean",dflt:!1},opacity:W1.opacity,size:W1.size,sizeref:W1.sizeref,sizemin:W1.sizemin,sizemode:W1.sizemode},aPe("marker")),fill:py.fill,fillcolor:rPe(),textfont:Fee.layers.symbol.textfont,textposition:Fee.layers.symbol.textposition,below:{valType:"string"},selected:{marker:Y1.selected.marker},unselected:{marker:Y1.unselected.marker},hoverinfo:Fd({},iPe.hoverinfo,{flags:["lon","lat","text","name"]}),hovertemplate:ePe(),hovertemplatefallback:Cee()},"calc","nested")});var P9={};Yi(P9,{isSupportedFont:()=>lPe});function lPe(e){return sPe.indexOf(e)!==-1}var sPe,I9=Gi(()=>{"use strict";sPe=["Metropolis Black Italic","Metropolis Black","Metropolis Bold Italic","Metropolis Bold","Metropolis Extra Bold Italic","Metropolis Extra Bold","Metropolis Extra Light Italic","Metropolis Extra Light","Metropolis Light Italic","Metropolis Light","Metropolis Medium Italic","Metropolis Medium","Metropolis Regular Italic","Metropolis Regular","Metropolis Semi Bold Italic","Metropolis Semi Bold","Metropolis Thin Italic","Metropolis Thin","Open Sans Bold Italic","Open Sans Bold","Open Sans Extrabold Italic","Open Sans Extrabold","Open Sans Italic","Open Sans Light Italic","Open Sans Light","Open Sans Regular","Open Sans Semibold Italic","Open Sans Semibold","Klokantech Noto Sans Bold","Klokantech Noto Sans CJK Bold","Klokantech Noto Sans CJK Regular","Klokantech Noto Sans Italic","Klokantech Noto Sans Regular"]});var Ree=X((Iat,zee)=>{"use strict";var my=tt(),L9=So(),uPe=aS(),cPe=nS(),hPe=oS(),fPe=sS(),Lee=Q5(),dPe=(I9(),lt(P9)).isSupportedFont;zee.exports=function(t,r,i,a){function n(y,x){return my.coerce(t,r,Lee,y,x)}function o(y,x){return my.coerce2(t,r,Lee,y,x)}var s=pPe(t,r,n);if(!s){r.visible=!1;return}if(n("text"),n("texttemplate"),n("texttemplatefallback"),n("hovertext"),n("hovertemplate"),n("hovertemplatefallback"),n("mode"),n("below"),L9.hasMarkers(r)){uPe(t,r,i,a,n,{noLine:!0,noAngle:!0}),n("marker.allowoverlap"),n("marker.angle");var l=r.marker;l.symbol!=="circle"&&(my.isArrayOrTypedArray(l.size)&&(l.size=l.size[0]),my.isArrayOrTypedArray(l.color)&&(l.color=l.color[0]))}L9.hasLines(r)&&(cPe(t,r,i,a,n,{noDash:!0}),n("connectgaps"));var u=o("cluster.maxzoom"),c=o("cluster.step"),h=o("cluster.color",r.marker&&r.marker.color||i),f=o("cluster.size"),d=o("cluster.opacity"),p=u!==!1||c!==!1||h!==!1||f!==!1||d!==!1,m=n("cluster.enabled",p);if(m||L9.hasText(r)){var g=a.font.family;hPe(t,r,a,n,{noSelect:!0,noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0,font:{family:dPe(g)?g:"Open Sans Regular",weight:a.font.weight,style:a.font.style,size:a.font.size,color:a.font.color}})}n("fill"),r.fill!=="none"&&fPe(t,r,i,n),my.coerceSelectionMarkerOpacity(r,n)};function pPe(e,t,r){var i=r("lon")||[],a=r("lat")||[],n=Math.min(i.length,a.length);return t._length=n,n}});var z9=X((Lat,qee)=>{"use strict";var Bee=ra();qee.exports=function(t,r,i){var a={},n=i[r.subplot]._subplot,o=n.mockAxis,s=t.lonlat;return a.lonLabel=Bee.tickText(o,o.c2l(s[0]),!0).text,a.latLabel=Bee.tickText(o,o.c2l(s[1]),!0).text,a}});var Gee=X((zat,Uee)=>{"use strict";var R9=Nr(),Oee=(Ji(),lt(ua)).BADNUM,mPe=cS(),vPe=Yg(),gPe=l5(),yPe=tt().isArrayOrTypedArray,Nee=tt()._;function Vee(e){return e&&typeof e=="string"}Uee.exports=function(t,r){var i=yPe(r.locations),a=i?r.locations.length:r._length,n=new Array(a),o;r.geojson?o=function(f){return Vee(f)||R9(f)}:o=Vee;for(var s=0;s{"use strict";var _Pe=(Ji(),lt(ua)).BADNUM;vy.calcTraceToLineCoords=function(e){for(var t=e[0].trace,r=t.connectgaps,i=[],a=[],n=0;n0&&(i.push(a),a=[])}return a.length>0&&i.push(a),i};vy.makeLine=function(e){return e.length===1?{type:"LineString",coordinates:e[0]}:{type:"MultiLineString",coordinates:e}};vy.makePolygon=function(e){if(e.length===1)return{type:"Polygon",coordinates:e};for(var t=new Array(e.length),r=0;r{"use strict";var jee=tt();$ee.exports=function(t,r){var i=t.split(" "),a=i[0],n=i[1],o=jee.isArrayOrTypedArray(r)?jee.mean(r):r,s=.5+o/100,l=1.5+o/100,u=["",""],c=[0,0];switch(a){case"top":u[0]="top",c[1]=-l;break;case"bottom":u[0]="bottom",c[1]=l;break}switch(n){case"left":u[1]="right",c[0]=-s;break;case"right":u[1]="left",c[0]=s;break}var h;return u[0]&&u[1]?h=u.join("-"):u[0]?h=u[0]:u[1]?h=u[1]:h="center",{anchor:h,offset:c}}});var Kee=X((qat,Xee)=>{"use strict";var Yee=Nr(),Hn=tt(),xPe=(Ji(),lt(ua)).BADNUM,r4=e4(),Hee=c1(),bPe=xi(),wPe=D8(),i4=So(),APe=(I9(),lt(P9)).isSupportedFont,TPe=B9(),MPe=nc().appendArrayPointValue,DPe=cn().NEWLINES,SPe=cn().BR_TAG_ALL;Xee.exports=function(t,r){var i=r[0].trace,a=i.visible===!0&&i._length!==0,n=i.fill!=="none",o=i4.hasLines(i),s=i4.hasMarkers(i),l=i4.hasText(i),u=s&&i.marker.symbol==="circle",c=s&&i.marker.symbol!=="circle",h=i.cluster&&i.cluster.enabled,f=t4("fill"),d=t4("line"),p=t4("circle"),m=t4("symbol"),g={fill:f,line:d,circle:p,symbol:m};if(!a)return g;var y;if((n||o)&&(y=r4.calcTraceToLineCoords(r)),n&&(f.geojson=r4.makePolygon(y),f.layout.visibility="visible",Hn.extendFlat(f.paint,{"fill-color":i.fillcolor})),o&&(d.geojson=r4.makeLine(y),d.layout.visibility="visible",Hn.extendFlat(d.paint,{"line-width":i.line.width,"line-color":i.line.color,"line-opacity":i.opacity})),u){var x=EPe(r);p.geojson=x.geojson,p.layout.visibility="visible",h&&(p.filter=["!",["has","point_count"]],g.cluster={type:"circle",filter:["has","point_count"],layout:{visibility:"visible"},paint:{"circle-color":O9(i.cluster.color,i.cluster.step),"circle-radius":O9(i.cluster.size,i.cluster.step),"circle-opacity":O9(i.cluster.opacity,i.cluster.step)}},g.clusterCount={type:"symbol",filter:["has","point_count"],paint:{},layout:{"text-field":"{point_count_abbreviated}","text-font":Zee(i),"text-size":12}}),Hn.extendFlat(p.paint,{"circle-color":x.mcc,"circle-radius":x.mrc,"circle-opacity":x.mo})}if(u&&h&&(p.filter=["!",["has","point_count"]]),(c||l)&&(m.geojson=kPe(r,t),Hn.extendFlat(m.layout,{visibility:"visible","icon-image":"{symbol}","text-field":"{text}"}),c&&(Hn.extendFlat(m.layout,{"icon-size":i.marker.size/10}),"angle"in i.marker&&i.marker.angle!=="auto"&&Hn.extendFlat(m.layout,{"icon-rotate":{type:"identity",property:"angle"},"icon-rotation-alignment":"map"}),m.layout["icon-allow-overlap"]=i.marker.allowoverlap,Hn.extendFlat(m.paint,{"icon-opacity":i.opacity*i.marker.opacity,"icon-color":i.marker.color,"icon-halo-color":i.marker.color,"icon-halo-width":2,"icon-halo-blur":1.5})),l)){var b=(i.marker||{}).size,_=TPe(i.textposition,b);Hn.extendFlat(m.layout,{"text-size":i.textfont.size,"text-anchor":_.anchor,"text-offset":_.offset,"text-font":Zee(i)}),Hn.extendFlat(m.paint,{"text-color":i.textfont.color,"text-opacity":i.opacity})}return g};function t4(e){return{type:e,geojson:r4.makeBlank(),layout:{visibility:"none"},filter:null,paint:{}}}function EPe(e){var t=e[0].trace,r=t.marker,i=t.selectedpoints,a=Hn.isArrayOrTypedArray(r.color),n=Hn.isArrayOrTypedArray(r.size),o=Hn.isArrayOrTypedArray(r.opacity),s;function l(b){return t.opacity*b}function u(b){return b/2}var c;a&&(Hee.hasColorscale(t,"marker")?c=Hee.makeColorScaleFuncFromTrace(r):c=Hn.identity);var h;n&&(h=wPe(t));var f;o&&(f=function(b){var _=Yee(b)?+Hn.constrain(b,0,1):0;return l(_)});var d=[];for(s=0;s850?s+=" Black":a>750?s+=" Extra Bold":a>650?s+=" Bold":a>550?s+=" Semi Bold":a>450?s+=" Medium":a>350?s+=" Regular":a>250?s+=" Light":a>150?s+=" Extra Light":s+=" Thin"):n.slice(0,2).join(" ")==="Open Sans"?(s="Open Sans",a>750?s+=" Extrabold":a>650?s+=" Bold":a>550?s+=" Semibold":a>350?s+=" Regular":s+=" Light"):n.slice(0,3).join(" ")==="Klokantech Noto Sans"&&(s="Klokantech Noto Sans",n[3]==="CJK"&&(s+=" CJK"),s+=a>500?" Bold":" Regular")),o&&(s+=" Italic"),s==="Open Sans Regular Italic"?s="Open Sans Italic":s==="Open Sans Regular Bold"?s="Open Sans Bold":s==="Open Sans Regular Bold Italic"?s="Open Sans Bold Italic":s==="Klokantech Noto Sans Regular Italic"&&(s="Klokantech Noto Sans Italic"),APe(s)||(s=r);var l=s.split(", ");return l}});var tte=X((Oat,ete)=>{"use strict";var CPe=tt(),Jee=Kee(),X1=Pf().traceLayerPrefix,Rl={cluster:["cluster","clusterCount","circle"],nonCluster:["fill","line","circle","symbol"]};function Qee(e,t,r,i){this.type="scattermap",this.subplot=e,this.uid=t,this.clusterEnabled=r,this.isHidden=i,this.sourceIds={fill:"source-"+t+"-fill",line:"source-"+t+"-line",circle:"source-"+t+"-circle",symbol:"source-"+t+"-symbol",cluster:"source-"+t+"-circle",clusterCount:"source-"+t+"-circle"},this.layerIds={fill:X1+t+"-fill",line:X1+t+"-line",circle:X1+t+"-circle",symbol:X1+t+"-symbol",cluster:X1+t+"-cluster",clusterCount:X1+t+"-cluster-count"},this.below=null}var gy=Qee.prototype;gy.addSource=function(e,t,r){var i={type:"geojson",data:t.geojson};r&&r.enabled&&CPe.extendFlat(i,{cluster:!0,clusterMaxZoom:r.maxzoom});var a=this.subplot.map.getSource(this.sourceIds[e]);a?a.setData(t.geojson):this.subplot.map.addSource(this.sourceIds[e],i)};gy.setSourceData=function(e,t){this.subplot.map.getSource(this.sourceIds[e]).setData(t.geojson)};gy.addLayer=function(e,t,r){var i={type:t.type,id:this.layerIds[e],source:this.sourceIds[e],layout:t.layout,paint:t.paint};t.filter&&(i.filter=t.filter);for(var a=this.layerIds[e],n,o=this.subplot.getMapLayers(),s=0;s=0;A--){var T=_[A];a.removeLayer(u.layerIds[T])}b||a.removeSource(u.sourceIds.circle)}function f(b){for(var _=Rl.nonCluster,A=0;A<_.length;A++){var T=_[A],M=n[T];b||u.addSource(T,M),u.addLayer(T,M,o)}}function d(b){for(var _=Rl.nonCluster,A=_.length-1;A>=0;A--){var T=_[A];a.removeLayer(u.layerIds[T]),b||a.removeSource(u.sourceIds[T])}}function p(b){l?h(b):d(b)}function m(b){s?c(b):f(b)}function g(){for(var b=s?Rl.cluster:Rl.nonCluster,_=0;_=0;i--){var a=r[i];t.removeLayer(this.layerIds[a]),t.removeSource(this.sourceIds[a])}};ete.exports=function(t,r){var i=r[0].trace,a=i.cluster&&i.cluster.enabled,n=i.visible!==!0,o=new Qee(t,i.uid,a,n),s=Jee(t.gd,r),l=o.below=t.belowLookup["trace-"+i.uid],u,c,h;if(a)for(o.addSource("circle",s.circle,i.cluster),u=0;u{"use strict";var FPe=yu(),N9=tt(),PPe=ES(),IPe=N9.fillText,LPe=(Ji(),lt(ua)).BADNUM,zPe=Pf().traceLayerPrefix;function RPe(e,t,r){var i=e.cd,a=i[0].trace,n=e.xa,o=e.ya,s=e.subplot,l=[],u=zPe+a.uid+"-circle",c=a.cluster&&a.cluster.enabled;if(c){var h=s.map.queryRenderedFeatures(null,{layers:[u]});l=h.map(function(S){return S.id})}var f=t>=0?Math.floor((t+180)/360):Math.ceil((t-180)/360),d=f*360,p=t-d;function m(S){var k=S.lonlat;if(k[0]===LPe||c&&l.indexOf(S.i+1)===-1)return 1/0;var P=N9.modHalf(k[0],360),I=k[1],B=s.project([P,I]),L=B.x-n.c2p([p,I]),z=B.y-o.c2p([P,r]),q=Math.max(3,S.mrc||0);return Math.max(Math.sqrt(L*L+z*z)-q,1-3/q)}if(FPe.getClosest(i,m,e),e.index!==!1){var g=i[e.index],y=g.lonlat,x=[N9.modHalf(y[0],360)+d,y[1]],b=n.c2p(x),_=o.c2p(x),A=g.mrc||1;e.x0=b-A,e.x1=b+A,e.y0=_-A,e.y1=_+A;var T={};T[a.subplot]={_subplot:s};var M=a._module.formatLabels(g,a,T);return e.lonLabel=M.lonLabel,e.latLabel=M.latLabel,e.color=PPe(a,g),e.extraText=rte(a,g,i[0].t.labels),e.hovertemplate=a.hovertemplate,[e]}}function rte(e,t,r){if(e.hovertemplate)return;var i=t.hi||e.hoverinfo,a=i.split("+"),n=a.indexOf("all")!==-1,o=a.indexOf("lon")!==-1,s=a.indexOf("lat")!==-1,l=t.lonlat,u=[];function c(h){return h+"\xB0"}return n||o&&s?u.push("("+c(l[1])+", "+c(l[0])+")"):o?u.push(r.lon+c(l[0])):s&&u.push(r.lat+c(l[1])),(n||a.indexOf("text")!==-1)&&IPe(t,e,u),u.join("
")}ite.exports={hoverPoints:RPe,getExtraText:rte}});var nte=X((Vat,ate)=>{"use strict";ate.exports=function(t,r){return t.lon=r.lon,t.lat=r.lat,t}});var ste=X((Uat,ote)=>{"use strict";var BPe=tt(),qPe=So(),{BADNUM:OPe}=(Ji(),lt(ua)),o4=360,V9=.001,s4=(e,t,r,i)=>[e.c2p([r,i]),t.c2p([r,i])];function NPe(e,t,r,i,a){let n=s4(e,t,r+o4,i),o=s4(e,t,r-o4,i),s=n[0]-a[0],l=n[1]-a[1],u=Math.abs(s-(a[0]-o[0])){if(Math.abs(o)a?null:[Math.floor(i)-1,Math.ceil(a)+1]}ote.exports=function(t,r){var c;let{cd:i,xaxis:a,yaxis:n}=t,{trace:o}=i[0];if(!qPe.hasMarkers(o))return[];if(r===!1){for(let h of i)h.selected=0;return[]}let s=(c=a._subplot)==null?void 0:c.map,l=!!(s!=null&&s.getRenderWorldCopies())&&r.xmax>r.xmin,u=[];for(let h=0;h=1)return 1;let f=c;for(let m=0;m<8;m++){let g=((o*f+n)*f+a)*f-c;if(Math.abs(g)g?d=f:p=f,f=(d+p)*.5}return((u*f+l)*f+s)*f}}function Y4(){return yy!=null||(yy=typeof OffscreenCanvas<"u"&&!!new OffscreenCanvas(1,1).getContext("2d")&&typeof createImageBitmap=="function"),yy}function yk(){if(l4==null&&(l4=!1,Y4())){let e=new OffscreenCanvas(5,5).getContext("2d",{willReadFrequently:!0});if(e){for(let r=0;r<25;r++){let i=r*4;e.fillStyle=`rgb(${i},${i+1},${i+2})`,e.fillRect(r%5,Math.floor(r/5),1,1)}let t=e.getImageData(0,0,5,5).data;for(let r=0;r<100;r++)if(r%4!=3&&t[r]!==r){l4=!0;break}}}return l4||!1}function _k(){var e=new En(9);return En!=Float32Array&&(e[1]=0,e[2]=0,e[3]=0,e[5]=0,e[6]=0,e[7]=0),e[0]=1,e[4]=1,e[8]=1,e}function WPe(e){var t=e[0],r=e[1],i=e[2],a=e[3],n=e[4],o=e[5],s=e[6],l=e[7],u=e[8];return t*(u*n-o*l)+r*(-u*a+o*s)+i*(l*a-n*s)}function Qre(e,t){var r=Math.sin(t),i=Math.cos(t);return e[0]=i,e[1]=r,e[2]=0,e[3]=-r,e[4]=i,e[5]=0,e[6]=0,e[7]=0,e[8]=1,e}function XPe(e,t){var r=t[0],i=t[1],a=t[2],n=t[3],o=r+r,s=i+i,l=a+a,u=r*o,c=i*o,h=i*s,f=a*o,d=a*s,p=a*l,m=n*o,g=n*s,y=n*l;return e[0]=1-h-p,e[3]=c-y,e[6]=f+g,e[1]=c+y,e[4]=1-u-p,e[7]=d-m,e[2]=f-g,e[5]=d+m,e[8]=1-u-h,e}function xh(){var e=new En(16);return En!=Float32Array&&(e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[11]=0,e[12]=0,e[13]=0,e[14]=0),e[0]=1,e[5]=1,e[10]=1,e[15]=1,e}function W4(e){var t=new En(16);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}function eie(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}function $l(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}function a2(e,t){var r=t[0],i=t[1],a=t[2],n=t[3],o=t[4],s=t[5],l=t[6],u=t[7],c=t[8],h=t[9],f=t[10],d=t[11],p=t[12],m=t[13],g=t[14],y=t[15],x=r*s-i*o,b=r*l-a*o,_=r*u-n*o,A=i*l-a*s,T=i*u-n*s,M=a*u-n*l,S=c*m-h*p,k=c*g-f*p,P=c*y-d*p,I=h*g-f*m,B=h*y-d*m,L=f*y-d*g,z=x*L-b*B+_*I+A*P-T*k+M*S;return z?(z=1/z,e[0]=(s*L-l*B+u*I)*z,e[1]=(a*B-i*L-n*I)*z,e[2]=(m*M-g*T+y*A)*z,e[3]=(f*T-h*M-d*A)*z,e[4]=(l*P-o*L-u*k)*z,e[5]=(r*L-a*P+n*k)*z,e[6]=(g*_-p*M-y*b)*z,e[7]=(c*M-f*_+d*b)*z,e[8]=(o*B-s*P+u*S)*z,e[9]=(i*P-r*B-n*S)*z,e[10]=(p*T-m*_+y*x)*z,e[11]=(h*_-c*T-d*x)*z,e[12]=(s*k-o*I-l*S)*z,e[13]=(r*I-i*k+a*S)*z,e[14]=(m*b-p*A-g*x)*z,e[15]=(c*A-h*b+f*x)*z,e):null}function Hd(e,t,r){var i=t[0],a=t[1],n=t[2],o=t[3],s=t[4],l=t[5],u=t[6],c=t[7],h=t[8],f=t[9],d=t[10],p=t[11],m=t[12],g=t[13],y=t[14],x=t[15],b=r[0],_=r[1],A=r[2],T=r[3];return e[0]=b*i+_*s+A*h+T*m,e[1]=b*a+_*l+A*f+T*g,e[2]=b*n+_*u+A*d+T*y,e[3]=b*o+_*c+A*p+T*x,b=r[4],_=r[5],A=r[6],T=r[7],e[4]=b*i+_*s+A*h+T*m,e[5]=b*a+_*l+A*f+T*g,e[6]=b*n+_*u+A*d+T*y,e[7]=b*o+_*c+A*p+T*x,b=r[8],_=r[9],A=r[10],T=r[11],e[8]=b*i+_*s+A*h+T*m,e[9]=b*a+_*l+A*f+T*g,e[10]=b*n+_*u+A*d+T*y,e[11]=b*o+_*c+A*p+T*x,b=r[12],_=r[13],A=r[14],T=r[15],e[12]=b*i+_*s+A*h+T*m,e[13]=b*a+_*l+A*f+T*g,e[14]=b*n+_*u+A*d+T*y,e[15]=b*o+_*c+A*p+T*x,e}function Qa(e,t,r){var i=r[0],a=r[1],n=r[2],o,s,l,u,c,h,f,d,p,m,g,y;return t===e?(e[12]=t[0]*i+t[4]*a+t[8]*n+t[12],e[13]=t[1]*i+t[5]*a+t[9]*n+t[13],e[14]=t[2]*i+t[6]*a+t[10]*n+t[14],e[15]=t[3]*i+t[7]*a+t[11]*n+t[15]):(o=t[0],s=t[1],l=t[2],u=t[3],c=t[4],h=t[5],f=t[6],d=t[7],p=t[8],m=t[9],g=t[10],y=t[11],e[0]=o,e[1]=s,e[2]=l,e[3]=u,e[4]=c,e[5]=h,e[6]=f,e[7]=d,e[8]=p,e[9]=m,e[10]=g,e[11]=y,e[12]=o*i+c*a+p*n+t[12],e[13]=s*i+h*a+m*n+t[13],e[14]=l*i+f*a+g*n+t[14],e[15]=u*i+d*a+y*n+t[15]),e}function Xn(e,t,r){var i=r[0],a=r[1],n=r[2];return e[0]=t[0]*i,e[1]=t[1]*i,e[2]=t[2]*i,e[3]=t[3]*i,e[4]=t[4]*a,e[5]=t[5]*a,e[6]=t[6]*a,e[7]=t[7]*a,e[8]=t[8]*n,e[9]=t[9]*n,e[10]=t[10]*n,e[11]=t[11]*n,e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}function Zd(e,t,r){var i=Math.sin(r),a=Math.cos(r),n=t[4],o=t[5],s=t[6],l=t[7],u=t[8],c=t[9],h=t[10],f=t[11];return t!==e&&(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[4]=n*a+u*i,e[5]=o*a+c*i,e[6]=s*a+h*i,e[7]=l*a+f*i,e[8]=u*a-n*i,e[9]=c*a-o*i,e[10]=h*a-s*i,e[11]=f*a-l*i,e}function xk(e,t,r){var i=Math.sin(r),a=Math.cos(r),n=t[0],o=t[1],s=t[2],l=t[3],u=t[8],c=t[9],h=t[10],f=t[11];return t!==e&&(e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=n*a-u*i,e[1]=o*a-c*i,e[2]=s*a-h*i,e[3]=l*a-f*i,e[8]=n*i+u*a,e[9]=o*i+c*a,e[10]=s*i+h*a,e[11]=l*i+f*a,e}function bh(e,t,r){var i=Math.sin(r),a=Math.cos(r),n=t[0],o=t[1],s=t[2],l=t[3],u=t[4],c=t[5],h=t[6],f=t[7];return t!==e&&(e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=n*a+u*i,e[1]=o*a+c*i,e[2]=s*a+h*i,e[3]=l*a+f*i,e[4]=u*a-n*i,e[5]=c*a-o*i,e[6]=h*a-s*i,e[7]=f*a-l*i,e}function tie(e,t){return e[0]=t[0],e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=t[1],e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=t[2],e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}function KPe(e,t,r,i,a){var n=1/Math.tan(t/2);if(e[0]=n/r,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=n,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[11]=-1,e[12]=0,e[13]=0,e[15]=0,a!=null&&a!==1/0){var o=1/(i-a);e[10]=(a+i)*o,e[14]=2*a*i*o}else e[10]=-1,e[14]=-2*i;return e}function JPe(e,t,r,i,a,n,o){var s=1/(t-r),l=1/(i-a),u=1/(n-o);return e[0]=-2*s,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*l,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*u,e[11]=0,e[12]=(t+r)*s,e[13]=(a+i)*l,e[14]=(o+n)*u,e[15]=1,e}function rie(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]&&e[3]===t[3]&&e[4]===t[4]&&e[5]===t[5]&&e[6]===t[6]&&e[7]===t[7]&&e[8]===t[8]&&e[9]===t[9]&&e[10]===t[10]&&e[11]===t[11]&&e[12]===t[12]&&e[13]===t[13]&&e[14]===t[14]&&e[15]===t[15]}function iie(e,t){var r=e[0],i=e[1],a=e[2],n=e[3],o=e[4],s=e[5],l=e[6],u=e[7],c=e[8],h=e[9],f=e[10],d=e[11],p=e[12],m=e[13],g=e[14],y=e[15],x=t[0],b=t[1],_=t[2],A=t[3],T=t[4],M=t[5],S=t[6],k=t[7],P=t[8],I=t[9],B=t[10],L=t[11],z=t[12],q=t[13],V=t[14],j=t[15];return Math.abs(r-x)<=1e-6*Math.max(1,Math.abs(r),Math.abs(x))&&Math.abs(i-b)<=1e-6*Math.max(1,Math.abs(i),Math.abs(b))&&Math.abs(a-_)<=1e-6*Math.max(1,Math.abs(a),Math.abs(_))&&Math.abs(n-A)<=1e-6*Math.max(1,Math.abs(n),Math.abs(A))&&Math.abs(o-T)<=1e-6*Math.max(1,Math.abs(o),Math.abs(T))&&Math.abs(s-M)<=1e-6*Math.max(1,Math.abs(s),Math.abs(M))&&Math.abs(l-S)<=1e-6*Math.max(1,Math.abs(l),Math.abs(S))&&Math.abs(u-k)<=1e-6*Math.max(1,Math.abs(u),Math.abs(k))&&Math.abs(c-P)<=1e-6*Math.max(1,Math.abs(c),Math.abs(P))&&Math.abs(h-I)<=1e-6*Math.max(1,Math.abs(h),Math.abs(I))&&Math.abs(f-B)<=1e-6*Math.max(1,Math.abs(f),Math.abs(B))&&Math.abs(d-L)<=1e-6*Math.max(1,Math.abs(d),Math.abs(L))&&Math.abs(p-z)<=1e-6*Math.max(1,Math.abs(p),Math.abs(z))&&Math.abs(m-q)<=1e-6*Math.max(1,Math.abs(m),Math.abs(q))&&Math.abs(g-V)<=1e-6*Math.max(1,Math.abs(g),Math.abs(V))&&Math.abs(y-j)<=1e-6*Math.max(1,Math.abs(y),Math.abs(j))}function aie(){var e=new En(3);return En!=Float32Array&&(e[0]=0,e[1]=0,e[2]=0),e}function K4(e){var t=new En(3);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function Hl(e){var t=e[0],r=e[1],i=e[2];return Math.sqrt(t*t+r*r+i*i)}function lte(e,t,r){var i=new En(3);return i[0]=e,i[1]=t,i[2]=r,i}function el(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e[2]=t[2]+r[2],e}function J4(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e[2]=t[2]-r[2],e}function da(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e[2]=t[2]*r,e}function n2(e,t,r,i){return e[0]=t[0]+r[0]*i,e[1]=t[1]+r[1]*i,e[2]=t[2]+r[2]*i,e}function nie(e,t){var r=t[0]-e[0],i=t[1]-e[1],a=t[2]-e[2];return Math.sqrt(r*r+i*i+a*a)}function oie(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e}function Bo(e,t){var r=t[0],i=t[1],a=t[2],n=r*r+i*i+a*a;return n>0&&(n=1/Math.sqrt(n)),e[0]=t[0]*n,e[1]=t[1]*n,e[2]=t[2]*n,e}function en(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function Qo(e,t,r){var i=t[0],a=t[1],n=t[2],o=r[0],s=r[1],l=r[2];return e[0]=a*l-n*s,e[1]=n*o-i*l,e[2]=i*s-a*o,e}function sie(e,t,r){var i=t[0],a=t[1],n=t[2],o=r[3]*i+r[7]*a+r[11]*n+r[15];return o||(o=1),e[0]=(r[0]*i+r[4]*a+r[8]*n+r[12])/o,e[1]=(r[1]*i+r[5]*a+r[9]*n+r[13])/o,e[2]=(r[2]*i+r[6]*a+r[10]*n+r[14])/o,e}function lie(e,t,r){var i=t[0],a=t[1],n=t[2];return e[0]=i*r[0]+a*r[3]+n*r[6],e[1]=i*r[1]+a*r[4]+n*r[7],e[2]=i*r[2]+a*r[5]+n*r[8],e}function Q4(e,t,r){var i=r[0],a=r[1],n=r[2],o=r[3],s=t[0],l=t[1],u=t[2],c=a*u-n*l,h=n*s-i*u,f=i*l-a*s;return c+=c,h+=h,f+=f,e[0]=s+o*c+a*f-n*h,e[1]=l+o*h+n*c-i*f,e[2]=u+o*f+i*h-a*c,e}function Am(e,t,r,i){var a=[],n=[];return a[0]=t[0]-r[0],a[1]=t[1]-r[1],a[2]=t[2]-r[2],n[0]=a[0],n[1]=a[1]*Math.cos(i)-a[2]*Math.sin(i),n[2]=a[1]*Math.sin(i)+a[2]*Math.cos(i),e[0]=n[0]+r[0],e[1]=n[1]+r[1],e[2]=n[2]+r[2],e}function Yd(e,t,r,i){var a=[],n=[];return a[0]=t[0]-r[0],a[1]=t[1]-r[1],a[2]=t[2]-r[2],n[0]=a[2]*Math.sin(i)+a[0]*Math.cos(i),n[1]=a[1],n[2]=a[2]*Math.cos(i)-a[0]*Math.sin(i),e[0]=n[0]+r[0],e[1]=n[1]+r[1],e[2]=n[2]+r[2],e}function ew(e,t,r,i){var a=[],n=[];return a[0]=t[0]-r[0],a[1]=t[1]-r[1],a[2]=t[2]-r[2],n[0]=a[0]*Math.cos(i)-a[1]*Math.sin(i),n[1]=a[0]*Math.sin(i)+a[1]*Math.cos(i),n[2]=a[2],e[0]=n[0]+r[0],e[1]=n[1]+r[1],e[2]=n[2]+r[2],e}function uie(e){return e[0]=0,e[1]=0,e[2]=0,e}function QPe(){var e=new En(4);return En!=Float32Array&&(e[0]=0,e[1]=0,e[2]=0,e[3]=0),e}function eIe(e,t,r,i){var a=new En(4);return a[0]=e,a[1]=t,a[2]=r,a[3]=i,a}function tIe(e,t,r){return e[0]=t[0]*r[0],e[1]=t[1]*r[1],e[2]=t[2]*r[2],e[3]=t[3]*r[3],e}function cie(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e[2]=t[2]*r,e[3]=t[3]*r,e}function rIe(e,t){var r=t[0],i=t[1],a=t[2],n=t[3],o=r*r+i*i+a*a+n*n;return o>0&&(o=1/Math.sqrt(o)),e[0]=r*o,e[1]=i*o,e[2]=a*o,e[3]=n*o,e}function Kn(e,t,r){var i=t[0],a=t[1],n=t[2],o=t[3];return e[0]=r[0]*i+r[4]*a+r[8]*n+r[12]*o,e[1]=r[1]*i+r[5]*a+r[9]*n+r[13]*o,e[2]=r[2]*i+r[6]*a+r[10]*n+r[14]*o,e[3]=r[3]*i+r[7]*a+r[11]*n+r[15]*o,e}function ute(){var e=new En(4);return En!=Float32Array&&(e[0]=0,e[1]=0,e[2]=0),e[3]=1,e}function iIe(e,t,r){r*=.5;var i=Math.sin(r);return e[0]=i*t[0],e[1]=i*t[1],e[2]=i*t[2],e[3]=Math.cos(r),e}function fie(e,t,r){var i=t[0],a=t[1],n=t[2],o=t[3],s=r[0],l=r[1],u=r[2],c=r[3];return e[0]=i*c+o*s+a*u-n*l,e[1]=a*c+o*l+n*s-i*u,e[2]=n*c+o*u+i*l-a*s,e[3]=o*c-i*s-a*l-n*u,e}function Ly(e,t,r,i){var a=t[0],n=t[1],o=t[2],s=t[3],l=r[0],u=r[1],c=r[2],h=r[3],f,d=a*l+n*u+o*c+s*h,p,m,g;return d<0&&(d=-d,l=-l,u=-u,c=-c,h=-h),1-d>1e-6?(f=Math.acos(d),p=Math.sin(f),m=Math.sin((1-i)*f)/p,g=Math.sin(i*f)/p):(m=1-i,g=i),e[0]=m*a+g*l,e[1]=m*n+g*u,e[2]=m*o+g*c,e[3]=m*s+g*h,e}function aIe(e,t){var r=t[0]+t[4]+t[8],i;if(r>0)i=Math.sqrt(r+1),e[3]=.5*i,i=.5/i,e[0]=(t[5]-t[7])*i,e[1]=(t[6]-t[2])*i,e[2]=(t[1]-t[3])*i;else{var a=0;t[4]>t[0]&&(a=1),t[8]>t[a*3+a]&&(a=2);var n=(a+1)%3,o=(a+2)%3;i=Math.sqrt(t[a*3+a]-t[n*3+n]-t[o*3+o]+1),e[a]=.5*i,i=.5/i,e[3]=(t[n*3+o]-t[o*3+n])*i,e[n]=(t[n*3+a]+t[a*3+n])*i,e[o]=(t[o*3+a]+t[a*3+o])*i}return e}function tw(e,t,r,i){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:"zyx",n=Math.PI/360;t*=n,i*=n,r*=n;var o=Math.sin(t),s=Math.cos(t),l=Math.sin(r),u=Math.cos(r),c=Math.sin(i),h=Math.cos(i);switch(a){case"xyz":e[0]=o*u*h+s*l*c,e[1]=s*l*h-o*u*c,e[2]=s*u*c+o*l*h,e[3]=s*u*h-o*l*c;break;case"xzy":e[0]=o*u*h-s*l*c,e[1]=s*l*h-o*u*c,e[2]=s*u*c+o*l*h,e[3]=s*u*h+o*l*c;break;case"yxz":e[0]=o*u*h+s*l*c,e[1]=s*l*h-o*u*c,e[2]=s*u*c-o*l*h,e[3]=s*u*h+o*l*c;break;case"yzx":e[0]=o*u*h+s*l*c,e[1]=s*l*h+o*u*c,e[2]=s*u*c-o*l*h,e[3]=s*u*h-o*l*c;break;case"zxy":e[0]=o*u*h-s*l*c,e[1]=s*l*h+o*u*c,e[2]=s*u*c+o*l*h,e[3]=s*u*h-o*l*c;break;case"zyx":e[0]=o*u*h-s*l*c,e[1]=s*l*h+o*u*c,e[2]=s*u*c-o*l*h,e[3]=s*u*h+o*l*c;break;default:throw Error("Unknown angle order "+a)}return e}function rw(){var e=new En(2);return En!=Float32Array&&(e[0]=0,e[1]=0),e}function hte(e,t){var r=new En(2);return r[0]=e,r[1]=t,r}function wk(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e}function Ak(e){var t=e[0],r=e[1];return Math.sqrt(t*t+r*r)}function nIe(e){var t=e[0],r=e[1];return t*t+r*r}function oIe(e,t){return e[0]*t[0]+e[1]*t[1]}function Tk(e){return e[0]=0,e[1]=0,e}function bs(e,t,r){return t*(ct/(e.tileSize*2**(r-e.tileID.overscaledZ)))}function Wn(e){return e instanceof Error?e:Error(typeof e=="string"?e:String(e))}function $f(){return new Float64Array(4)}function Ai(){return new Float64Array(3)}function Hf(){return new Float64Array(16)}function s2(){let e=new Float64Array(16);return $l(e),e}function Mk(){let e=new Float32Array(16);return $l(e),e}function wh(e,t,r,i,a=!1){if(!r[0]&&!r[1])return[0,0];let n=a?i==="map"?-e.bearingInRadians:0:i==="viewport"?e.bearingInRadians:0;if(n){let o=Math.sin(n),s=Math.cos(n);r=[r[0]*s-r[1]*o,r[0]*o+r[1]*s]}return[a?r[0]:bs(t,r[0],e.zoom),a?r[1]:bs(t,r[1],e.zoom)]}function iw(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]+e[3]}function tl(e,t,r){let i=WPe([e[0],e[1],e[2],t[0],t[1],t[2],r[0],r[1],r[2]]);if(i===0)return null;let a=Qo([],[t[0],t[1],t[2]],[r[0],r[1],r[2]]),n=Qo([],[r[0],r[1],r[2]],[e[0],e[1],e[2]]),o=Qo([],[e[0],e[1],e[2]],[t[0],t[1],t[2]]),s=da([],a,-e[3]);return el(s,s,da([],n,-t[3])),el(s,s,da([],o,-r[3])),da(s,s,1/i),s}function pie(e,t,r){let i=e[0]*r[0]+e[1]*r[1]+e[2]*r[2],a=t[0]*r[0]+t[1]*r[1]+t[2]*r[2];return a===0?null:(-i-r[3])/a}function l2(e,t,r,i){let a=Math.sqrt(e*e+t*t),n=Math.sqrt(r*r+i*i);e/=a,t/=a,r/=n,i/=n;let o=e*r+t*i,s=Math.acos(o);return-t*r+e*i>0?s:-s}function ws(e,t){let r=Uf(e,360),i=Uf(t,360),a=i-r,n=i>r?a-360:a+360;return Math.abs(a)l.canonical.z)),r=1/0,i=-1/0,a=1/0,n=-1/0,o=[];for(let l of e){let{x:u,y:c,z:h}=l.canonical,f=2**(t-h),d=u*f,p=c*f;o.push({id:l,x:d,y:p}),di&&(i=d),pn&&(n=p)}let s=new Set;for(let l of o)(l.x===r||l.x===i||l.y===a||l.y===n)&&s.add(l.id);return s}function sIe(e){if(e<=0)return 0;if(e>=1)return 1;let t=e*e,r=t*e;return 4*(e<.5?r:3*(e-t)+r-.75)}function aw(e,t,r,i){return YPe(e,t,r,i)}function Tr(e,t,r){return Math.min(r,Math.max(t,e))}function rl(e,t,r){let i=r-t,a=((e-t)%i+i)%i+t;return a===t?r:a}function tr(e,...t){for(let r of t)for(let i in r)e[i]=r[i];return e}function Tm(e,t){let r={};for(let i of t)i in e&&(r[i]=e[i]);return r}function Dk(){return lIe++}function uIe(e){return Math.log(e)/Math.LN2%1==0}function gie(e){return e<=1?1:2**Math.ceil(Math.log(e)/Math.LN2)}function qo(e){return 2**e}function Jn(e){return Math.log(e)/Math.LN2}function As(e,t,r){if(t<=0)return e;let i=1/t;return r===void 0||Math.abs(r)<1e-10?Math.round(e*i)/i:(r>0?Math.ceil(e*i-1e-9):Math.floor(e*i+1e-10))/i}function ow(e,t,r){let i={};for(let a in e)i[a]=t.call(r||this,e[a],a,e);return i}function Sk(e,t,r){let i={};for(let a in e)t.call(r||this,e[a],a,e)&&(i[a]=e[a]);return i}function Iu(e,t){if(Array.isArray(e)){if(!Array.isArray(t)||e.length!==t.length)return!1;for(let r=0;r(t.y-e.y)*(r.x-e.x)}function yie(e,t,r,i){let a=t.y-e.y,n=t.x-e.x,o=i.y-r.y,s=i.x-r.x,l=o*n-s*a;if(l===0)return null;let u=e.y-r.y,c=e.x-r.x,h=(s*u-o*c)/l;return new qe(e.x+h*n,e.y+h*a)}function _ie([e,t,r]){return t+=90,t*=Math.PI/180,r*=Math.PI/180,[e*Math.cos(t)*Math.sin(r),e*Math.sin(t)*Math.sin(r),e*Math.cos(r)]}function Ud(e){return typeof WorkerGlobalScope<"u"&&e!==void 0&&e instanceof WorkerGlobalScope}function xie(e){let t=/(?:^|(?:\s*\,\s*))([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g,r={};if(e.replace(t,(i,a,n,o)=>{let s=n||o;return r[a]=!s||s.toLowerCase(),""}),r["max-age"]){let i=parseInt(r["max-age"],10);isNaN(i)?delete r["max-age"]:r["max-age"]=i}return r}function bie(e){if(U9==null){let t=e.navigator?e.navigator.userAgent:null;U9=!!e.safari||!!(t&&(/\b(iPad|iPhone|iPod)\b/.test(t)||t.match("Safari")&&!t.match("Chrome")))}return U9}function Zf(e){return typeof ImageBitmap<"u"&&e instanceof ImageBitmap}function cIe(e,t,r,i,a){let n=Math.max(-t,0)*4,o=(Math.max(0,r)-r)*i*4+n,s=i*4,l=Math.max(0,t),u=Math.max(0,r),c=Math.min(e.width,t+i),h=Math.min(e.height,r+a);return{rect:{x:l,y:u,width:c-l,height:h-u},layout:[{offset:o,stride:s}]}}function Tie(e,t,r,i,a){return Kt(this,null,function*(){if(typeof VideoFrame>"u")throw Error("VideoFrame not supported");let n=new VideoFrame(e,{timestamp:0});try{let o=n==null?void 0:n.format;if(!o||!(o.startsWith("BGR")||o.startsWith("RGB")))throw Error(`Unrecognized format ${o}`);let s=o.startsWith("BGR"),l=new Uint8ClampedArray(i*a*4);if(yield n.copyTo(l,cIe(e,t,r,i,a)),s)for(let u=0;u{e.removeEventListener(t,r,i)}}}function pa(e){return e*Math.PI/180}function Fu(e){return e/Math.PI*180}function Ek(e,t){return e.roll==t.roll&&e.pitch==t.pitch&&e.bearing==t.bearing}function Mie(e){let t=new Float64Array(9);XPe(t,e);let r=Fu(-Math.asin(Tr(t[2],-1,1))),i,a;return Math.hypot(t[5],t[8])<.001?(i=0,a=-Fu(Math.atan2(t[3],t[4]))):(i=Fu(t[5]===0&&t[8]===0?0:Math.atan2(t[5],t[8])),a=Fu(t[1]===0&&t[0]===0?0:Math.atan2(t[1],t[0]))),{roll:i,pitch:r+90,bearing:a}}function kk(e,t,r){let i=hte(t.x-r.x,t.y-r.y),a=hte(e.x-r.x,e.y-r.y),n=i[0]*a[1]-i[1]*a[0];return Fu(Math.atan2(n,oIe(i,a)))}function Ck(e,t,r){let i=new Float64Array(4);return tw(i,e,t-90,r),i}function Eie(e,t){return Die[t]&&"touches"in e}function kie(e,t){var a,n;if(!Sie[t])return!1;let r=e,i=((n=(a=r==null?void 0:r.target)==null?void 0:a.ownerDocument)==null?void 0:n.defaultView)||window;return r instanceof i.MouseEvent||r instanceof i.WheelEvent}function Cie(e){return Die[e]||Sie[e]}function Ah(e){return e instanceof Error&&e.name==="AbortError"}function sw(e){if(e.aborted)throw new Mm(e.reason)}function Fk(e){return Ts.REGISTERED_PROTOCOLS[e.substring(0,e.indexOf("://"))]}function Fie(e,t){Ts.REGISTERED_PROTOCOLS[e]=t}function Pie(e){delete Ts.REGISTERED_PROTOCOLS[e]}function lw(){var e;if(Ud(self))return(e=self.worker)==null?void 0:e.referrer;if(window.location.protocol==="blob:")try{return window.parent.location.href}catch(t){}return window.location.href}function fIe(e,t){return Kt(this,null,function*(){let r=new Request(e.url,{method:e.method||"GET",body:e.body,credentials:e.credentials,headers:e.headers,cache:e.cache,referrer:lw(),referrerPolicy:e.referrerPolicy,signal:t.signal});e.type==="json"&&!r.headers.has("Accept")&&r.headers.set("Accept","application/json");let i;try{i=yield fetch(r)}catch(o){throw Ah(o)?o:new dm(0,Wn(o).message,e.url,new Blob)}if(!i.ok){let o=yield i.blob();throw new dm(i.status,i.statusText,e.url,o)}let a;a=e.type==="arrayBuffer"||e.type==="image"?i.arrayBuffer():e.type==="json"?i.json():i.text();let n=yield a;return sw(t.signal),{data:n,cacheControl:i.headers.get("Cache-Control"),expires:i.headers.get("Expires"),etag:i.headers.get("ETag")}})}function dIe(e,t){return new Promise((r,i)=>{var n;let a=new XMLHttpRequest;a.open(e.method||"GET",e.url,!0),(e.type==="arrayBuffer"||e.type==="image")&&(a.responseType="arraybuffer");for(let o in e.headers)a.setRequestHeader(o,e.headers[o]);e.type==="json"&&(a.responseType="text",(n=e.headers)!=null&&n.Accept||a.setRequestHeader("Accept","application/json")),a.withCredentials=e.credentials==="include",a.onerror=()=>{i(Error(a.statusText))},a.onload=()=>{if(!t.signal.aborted)if((a.status>=200&&a.status<300||a.status===0)&&a.response!==null){let o=a.response;if(e.type==="json")try{o=JSON.parse(a.response)}catch(s){i(s);return}r({data:o,cacheControl:a.getResponseHeader("Cache-Control"),expires:a.getResponseHeader("Expires"),etag:a.getResponseHeader("ETag")})}else{let o=new Blob([a.response],{type:a.getResponseHeader("Content-Type")});i(new dm(a.status,a.statusText,e.url,o))}},t.signal.addEventListener("abort",()=>{a.abort(),i(new Mm(t.signal.reason))}),a.send(e.body)})}function Ik(e){if(!e||e.startsWith("data:image/"))return!0;if(e.startsWith("blob:")&&(e=e.slice(5),e.startsWith("null")))return!1;if(e.indexOf("://")<=0)return!0;let t=new URL(e),r=window.location;return t.protocol===r.protocol&&t.host===r.host}function pte(e,t,r){var i;(i=r[e])!=null&&i.includes(t)||(r[e]||(r[e]=[]),r[e].push(t))}function G9(e,t,r){if(r!=null&&r[e]){let i=r[e].indexOf(t);i!==-1&&r[e].splice(i,1)}}function zo(e,t){return{kind:"array",itemType:e,N:t}}function La(e){if(e.kind==="array"){let t=La(e.itemType);return typeof e.N=="number"?`array<${t}, ${e.N}>`:e.itemType.kind==="value"?"array":`array<${t}>`}return e.kind}function Gy(e,t){if(t.kind==="error")return null;if(e.kind==="array"){if(t.kind==="array"&&(t.N===0&&t.itemType.kind==="value"||!Gy(e.itemType,t.itemType))&&(typeof e.N!="number"||e.N===t.N))return null}else{if(e.kind===t.kind)return null;if(e.kind==="value"){for(let r of mIe)if(!Gy(r,t))return null}}return`Expected ${La(e)} but found ${La(t)} instead.`}function Lk(e,t){return t.some(r=>r.kind===e.kind)}function Od(e,t){return t.some(r=>r==="null"?e===null:r==="array"?Array.isArray(e):r==="object"?e&&!Array.isArray(e)&&typeof e=="object":r===typeof e)}function If(e,t){return e.kind==="array"&&t.kind==="array"?e.itemType.kind===t.itemType.kind&&typeof e.N=="number":e.kind===t.kind}function Nie(e){return e%=360,e<0&&(e+=360),e}function Vie([e,t,r,i]){e=j9(e),t=j9(t),r=j9(r);let a,n,o=$9((.2225045*e+.7168786*t+.0606169*r)/1);e===t&&t===r?a=n=o:(a=$9((.4360747*e+.3850649*t+.1430804*r)/Rie),n=$9((.0139322*e+.0971045*t+.7141733*r)/Bie));let s=116*o-16;return[s<0?0:s,500*(a-o),200*(o-n),i]}function j9(e){return e<=.04045?e/12.92:((e+.055)/1.055)**2.4}function $9(e){return e>.008856451679035631?e**(1/3):e/Oie+qie}function Uie([e,t,r,i]){let a=(e+16)/116,n=isNaN(t)?a:a+t/500,o=isNaN(r)?a:a-r/200;return a=1*Z9(a),n=Rie*Z9(n),o=Bie*Z9(o),[H9(3.1338561*n-1.6168667*a-.4906146*o),H9(-.9787684*n+1.9161415*a+.033454*o),H9(.0719453*n-.2289914*a+1.4052427*o),i]}function H9(e){return e=e<=.00304?12.92*e:1.055*e**(1/2.4)-.055,e<0?0:e>1?1:e}function Z9(e){return e>sE?e*e*e:Oie*(e-qie)}function yIe(e){let[t,r,i,a]=Vie(e),n=Math.sqrt(r*r+i*i);return[Math.round(n*1e4)?Nie(Math.atan2(i,r)*gIe):NaN,n,t,a]}function _Ie([e,t,r,i]){return e=isNaN(e)?0:e*vIe,Uie([r,Math.cos(e)*t,Math.sin(e)*t,i])}function xIe([e,t,r,i]){e=Nie(e),t/=100,r/=100;function a(n){let o=(n+e/30)%12,s=t*Math.min(r,1-r);return r-s*Math.max(-1,Math.min(o-3,9-o,1))}return[a(0),a(8),a(4),i]}function zy(e,t){return bIe(e,t)?e[t]:void 0}function wIe(e){if(e=e.toLowerCase().trim(),e==="transparent")return[0,0,0,0];let t=zy(AIe,e);if(t){let[i,a,n]=t;return[i/255,a/255,n/255,1]}if(e.startsWith("#")&&/^#(?:[0-9a-f]{3,4}|[0-9a-f]{6}|[0-9a-f]{8})$/.test(e)){let i=e.length<6?1:2,a=1;return[u4(e.slice(a,a+=i)),u4(e.slice(a,a+=i)),u4(e.slice(a,a+=i)),u4(e.slice(a,a+i)||"ff")]}if(e.startsWith("rgb")){let i=e.match(/^rgba?\(\s*([\de.+-]+)(%)?(?:\s+|\s*(,)\s*)([\de.+-]+)(%)?(?:\s+|\s*(,)\s*)([\de.+-]+)(%)?(?:\s*([,\/])\s*([\de.+-]+)(%)?)?\s*\)$/);if(i){let[a,n,o,s,l,u,c,h,f,d,p,m]=i,g=[s||" ",c||" ",d].join("");if(g===" "||g===" /"||g===",,"||g===",,,"){let y=[o,u,f].join(""),x=y==="%%%"?100:y===""?255:0;if(x){let b=[Q1(+n/x,0,1),Q1(+l/x,0,1),Q1(+h/x,0,1),p?mte(+p,m):1];if(vte(b))return b}}return}}let r=e.match(/^hsla?\(\s*([\de.+-]+)(?:deg)?(?:\s+|\s*(,)\s*)([\de.+-]+)%(?:\s+|\s*(,)\s*)([\de.+-]+)%(?:\s*([,\/])\s*([\de.+-]+)(%)?)?\s*\)$/);if(r){let[i,a,n,o,s,l,u,c,h]=r,f=[n||" ",s||" ",u].join("");if(f===" "||f===" /"||f===",,"||f===",,,"){let d=[+a,Q1(+o,0,100),Q1(+l,0,100),c?mte(+c,h):1];if(vte(d))return xIe(d)}}}function u4(e){return parseInt(e.padEnd(2,e),16)/255}function mte(e,t){return Q1(t?e/100:e,0,1)}function Q1(e,t,r){return Math.min(Math.max(t,e),r)}function vte(e){return!e.some(Number.isNaN)}function Nf(e,t,r){return e+r*(t-e)}function pm(e,t,r){return e.map((i,a)=>Nf(i,t[a],r))}function TIe(e){return e==="rgb"||e==="hcl"||e==="lab"}function jie(e,t,r,i){return typeof e=="number"&&e>=0&&e<=255&&typeof t=="number"&&t>=0&&t<=255&&typeof r=="number"&&r>=0&&r<=255?i===void 0||typeof i=="number"&&i>=0&&i<=1?null:`Invalid rgba value [${[e,t,r,i].join(", ")}]: 'a' must be between 0 and 1.`:`Invalid rgba value [${(typeof i=="number"?[e,t,r,i]:[e,t,r]).join(", ")}]: 'r', 'g', and 'b' must be between 0 and 255.`}function mm(e){if(e===null||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||e instanceof Th||e instanceof Sr||e instanceof zk||e instanceof yh||e instanceof Fc||e instanceof Pc||e instanceof Ul||e instanceof Ec||e instanceof kc)return!0;if(Array.isArray(e)){for(let t of e)if(!mm(t))return!1;return!0}if(typeof e=="object"){for(let t in e)if(!mm(e[t]))return!1;return!0}return!1}function Ja(e){if(e===null)return d2;if(typeof e=="string")return Fr;if(typeof e=="boolean")return ei;if(typeof e=="number")return Vt;if(e instanceof Sr)return Pu;if(e instanceof Th)return uw;if(e instanceof zk)return cw;if(e instanceof yh)return p2;if(e instanceof Fc)return hw;if(e instanceof Pc)return fw;if(e instanceof Ul)return Uy;if(e instanceof Ec)return dw;if(e instanceof kc)return m2;if(Array.isArray(e)){let t=e.length,r;for(let i of e){let a=Ja(i);if(!r)r=a;else{if(r===a)continue;r=Lr;break}}return zo(r||Lr,t)}return qd}function Ry(e){let t=typeof e;return e===null?"":t==="string"||t==="number"||t==="boolean"?String(e):e instanceof Sr||e instanceof Th||e instanceof yh||e instanceof Fc||e instanceof Pc||e instanceof Ul||e instanceof Ec||e instanceof kc?e.toString():JSON.stringify(e)}function pw(e,t,r){let i=e.length-1,a=0,n=i,o=0,s,l;for(;a<=n;)if(o=Math.floor((a+n)/2),s=e[o],l=e[o+1],s<=t){if(o===i||tt)n=o-1;else throw new Sa("Input is not a number.",r);return 0}function EIe(e,t,r,i){let a=3*e,n=3*(r-e)-a,o=1-a-n,s=3*t,l=3*(i-t)-s,u=1-s-l;return function(c,h=1e-6){if(c<=0)return 0;if(c>=1)return 1;let f=c;for(let m=0;m<8;m++){let g=((o*f+n)*f+a)*f-c;if(Math.abs(g)g?d=f:p=f,f=(d+p)*.5}return((u*f+l)*f+s)*f}}function Y9(e,t,r,i){let a=i-r,n=e-r;return a===0?0:t===1?n/a:(t**+n-1)/(t**+a-1)}function Xie(e,t,r=0,i=e.length-1,a=kIe){for(;i>r;){if(i-r>600){let l=i-r+1,u=t-r+1,c=Math.log(l),h=.5*Math.exp(2*c/3),f=.5*Math.sqrt(c*h*(l-h)/l)*(u-l/2<0?-1:1);Xie(e,t,Math.max(r,Math.floor(t-u*h/l+f)),Math.min(i,Math.floor(t+(l-u)*h/l+f)),a)}let n=e[t],o=r,s=i;for(_y(e,r,t),a(e[i],n)>0&&_y(e,r,i);o0;)s--}a(e[r],n)===0?_y(e,r,s):(s++,_y(e,s,i)),s<=t&&(r=s+1),t<=s&&(i=s-1)}}function _y(e,t,r){let i=e[t];e[t]=e[r],e[r]=i}function kIe(e,t){return et)}function mw(e,t){if(e.length<=1)return[e];let r=[],i,a;for(let n of e){let o=FIe(n);o!==0&&(n.area=Math.abs(o),a===void 0&&(a=o<0),a===o<0?(i&&r.push(i),i=[n]):i.push(n))}if(i&&r.push(i),t>1)for(let n=0;nr}function UIe(e,t,r){return t<=r}function GIe(e,t,r){return t>=r}function lae(e,t,r,i){return i.compare(t,r)===0}function jIe(e,t,r,i){return!lae(e,t,r,i)}function $Ie(e,t,r,i){return i.compare(t,r)<0}function HIe(e,t,r,i){return i.compare(t,r)>0}function ZIe(e,t,r,i){return i.compare(t,r)<=0}function YIe(e,t,r,i){return i.compare(t,r)>=0}function Dm(e,t,r){let i=e!=="=="&&e!=="!=";return class uae{constructor(n,o,s,l){this.lhs=n,this.rhs=o,this.key=s,this.collator=l,this.type=ei,this.hasUntypedArgument=n.type.kind==="value"||o.type.kind==="value"}static parse(n,o){if(n.length!==3&&n.length!==4)return o.error("Expected two or three arguments.");let s=n[0],l=o.parse(n[1],1,Lr);if(!l)return null;if(!yte(s,l.type))return o.concat(1).error(`"${s}" comparisons are not supported for type '${La(l.type)}'.`);let u=o.parse(n[2],2,Lr);if(!u)return null;if(!yte(s,u.type))return o.concat(2).error(`"${s}" comparisons are not supported for type '${La(u.type)}'.`);if(l.type.kind!==u.type.kind&&l.type.kind!=="value"&&u.type.kind!=="value")return o.error(`Cannot compare types '${La(l.type)}' and '${La(u.type)}'.`);i&&(l.type.kind==="value"&&u.type.kind!=="value"?l=new mh(u.type,[l],o.key):l.type.kind!=="value"&&u.type.kind==="value"&&(u=new mh(l.type,[u],o.key)));let c=null;if(n.length===4){if(l.type.kind!=="string"&&u.type.kind!=="string"&&l.type.kind!=="value"&&u.type.kind!=="value")return o.error("Cannot use collator to compare non-string types.");if(c=o.parse(n[3],3,cw),!c)return null}return new uae(l,u,o.key,c)}evaluate(n){let o=this.lhs.evaluate(n),s=this.rhs.evaluate(n);if(i&&this.hasUntypedArgument){let l=Ja(o),u=Ja(s);if(l.kind!==u.kind||l.kind!=="string"&&l.kind!=="number")throw new Sa(`Expected arguments for "${e}" to be (string, string) or (number, number), but found (${l.kind}, ${u.kind}) instead.`,this.key)}if(this.collator&&!i&&this.hasUntypedArgument){let l=Ja(o),u=Ja(s);if(l.kind!=="string"||u.kind!=="string")return t(n,o,s)}return this.collator?r(n,o,s,this.collator.evaluate(n)):t(n,o,s)}eachChild(n){n(this.lhs),n(this.rhs),this.collator&&n(this.collator)}outputDefined(){return!0}}}function aLe(e,t){let r=nLe(e[0]),i=sLe(e[1]),a=2**t.z;return[Math.round(r*a*Sc),Math.round(i*a*Sc)]}function Bk(e,t){let r=2**t.z,i=(e[0]/Sc+t.x)/r,a=(e[1]/Sc+t.y)/r;return[oLe(i),lLe(a)]}function nLe(e){return(180+e)/360}function oLe(e){return e*360-180}function sLe(e){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+e*Math.PI/360)))/360}function lLe(e){return 360/Math.PI*Math.atan(Math.exp((180-e*360)*Math.PI/180))-90}function v2(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.max(e[2],t[0]),e[3]=Math.max(e[3],t[1])}function jy(e,t){return!(e[0]<=t[0]||e[2]>=t[2]||e[1]<=t[1]||e[3]>=t[3])}function uLe(e,t,r){return t[1]>e[1]!=r[1]>e[1]&&e[0]<(r[0]-t[0])*(e[1]-t[1])/(r[1]-t[1])+t[0]}function cLe(e,t,r){let i=e[0]-t[0],a=e[1]-t[1],n=e[0]-r[0],o=e[1]-r[1];return i*o-n*a===0&&i*n<=0&&a*o<=0}function vw(e,t,r,i){let a=[t[0]-e[0],t[1]-e[1]];return pLe([i[0]-r[0],i[1]-r[1]],a)!==0&&!!(_te(e,t,r,i)&&_te(r,i,e,t))}function hLe(e,t,r){for(let i of r)for(let a=0;a0&&h<0||c<0&&h>0}function qk(e,t,r){let i=[];for(let a=0;ar[2]){let a=i*.5,n=e[0]-r[0]>a?-i:r[0]-e[0]>a?i:0;n===0&&(n=e[0]-r[2]>a?-i:r[2]-e[0]>a?i:0),e[0]+=n}v2(t,e)}function mLe(e){e[0]=e[1]=1/0,e[2]=e[3]=-1/0}function xte(e,t,r,i){let a=2**i.z*Sc,n=[i.x*Sc,i.y*Sc],o=[];for(let s of e)for(let l of s){let u=[l.x+n[0],l.y+n[1]];gae(u,t,r,a),o.push(u)}return o}function bte(e,t,r,i){let a=2**i.z*Sc,n=[i.x*Sc,i.y*Sc],o=[];for(let s of e){let l=[];for(let u of s){let c=[u.x+n[0],u.y+n[1]];v2(t,c),l.push(c)}o.push(l)}if(t[2]-t[0]<=a/2){mLe(t);for(let s of o)for(let l of s)gae(l,t,r,a)}return o}function vLe(e,t){let r=[1/0,1/0,-1/0,-1/0],i=[1/0,1/0,-1/0,-1/0],a=e.canonicalID();if(t.type==="Polygon"){let n=qk(t.coordinates,i,a),o=xte(e.geometry(),r,i,a);if(!jy(r,i))return!1;for(let s of o)if(!Sm(s,n))return!1}if(t.type==="MultiPolygon"){let n=vae(t.coordinates,i,a),o=xte(e.geometry(),r,i,a);if(!jy(r,i))return!1;for(let s of o)if(!fLe(s,n))return!1}return!0}function gLe(e,t){let r=[1/0,1/0,-1/0,-1/0],i=[1/0,1/0,-1/0,-1/0],a=e.canonicalID();if(t.type==="Polygon"){let n=qk(t.coordinates,i,a),o=bte(e.geometry(),r,i,a);if(!jy(r,i))return!1;for(let s of o)if(!mae(s,n))return!1}if(t.type==="MultiPolygon"){let n=vae(t.coordinates,i,a),o=bte(e.geometry(),r,i,a);if(!jy(r,i))return!1;for(let s of o)if(!dLe(s,n))return!1}return!0}function _ae(e,t){return t[0]-e[0]}function F4(e){return e[1]-e[0]+1}function _h(e,t){return e[1]>=e[0]&&e[1]e[1])return[null,null];let r=F4(e);if(t){if(r===2)return[e,null];let a=Math.floor(r/2);return[[e[0],e[0]+a],[e[0]+a,e[1]]]}if(r===1)return[e,null];let i=Math.floor(r/2)-1;return[[e[0],e[0]+i],[e[0]+i+1,e[1]]]}function pE(e,t){if(!_h(t,e.length))return[1/0,1/0,-1/0,-1/0];let r=[1/0,1/0,-1/0,-1/0];for(let i=t[0];i<=t[1];++i)v2(r,e[i]);return r}function mE(e){let t=[1/0,1/0,-1/0,-1/0];for(let r of e)for(let i of r)v2(t,i);return t}function Ate(e){return e[0]!==-1/0&&e[1]!==-1/0&&e[2]!==1/0&&e[3]!==1/0}function Vk(e,t,r){if(!Ate(e)||!Ate(t))return NaN;let i=0,a=0;return e[2]t[2]&&(i=e[0]-t[2]),e[1]>t[3]&&(a=e[1]-t[3]),e[3]=i)return i;if(jy(a,n)){if(Tte(e,t))return 0}else if(Tte(t,e))return 0;let o=1/0;for(let s of e)for(let l=0,u=s.length,c=u-1;l0;){let l=o.pop();if(l[0]>=n)continue;let u=l[1],c=t?50:100;if(F4(u)<=c){if(!_h(u,e.length))return NaN;if(t){let h=bLe(e,u,r,i);if(isNaN(h)||h===0)return h;n=Math.min(n,h)}else for(let h=u[0];h<=u[1];++h){let f=xLe(e[h],r,i);if(n=Math.min(n,f),n===0)return 0}}else{let h=dE(u,t);Mte(o,n,i,e,s,h[0]),Mte(o,n,i,e,s,h[1])}}return n}function I4(e,t,r,i,a,n=1/0){let o=Math.min(n,a.distance(e[0],r[0]));if(o===0)return o;let s=new yae([[0,[0,e.length-1],[0,r.length-1]]],_ae);for(;s.length>0;){let l=s.pop();if(l[0]>=o)continue;let u=l[1],c=l[2],h=t?50:100,f=i?50:100;if(F4(u)<=h&&F4(c)<=f){if(!_h(u,e.length)&&_h(c,r.length))return NaN;let d;if(t&&i)d=yLe(e,u,r,c,a),o=Math.min(o,d);else if(t&&!i){let p=e.slice(u[0],u[1]+1);for(let m=c[0];m<=c[1];++m)if(d=Rd(r[m],p,a),o=Math.min(o,d),o===0)return o}else if(!t&&i){let p=r.slice(c[0],c[1]+1);for(let m=u[0];m<=u[1];++m)if(d=Rd(e[m],p,a),o=Math.min(o,d),o===0)return o}else d=_Le(e,u,r,c,a),o=Math.min(o,d)}else{let d=dE(u,t),p=dE(c,i);h4(s,o,a,e,r,d[0],p[0]),h4(s,o,a,e,r,d[0],p[1]),h4(s,o,a,e,r,d[1],p[0]),h4(s,o,a,e,r,d[1],p[1])}}return o}function ALe(e,t){let r=e.geometry(),i=r.flat().map(o=>Bk([o.x,o.y],e.canonical));if(r.length===0)return NaN;let a=new Nk(i[0][1]),n=1/0;for(let o of t){switch(o.type){case"Point":n=Math.min(n,I4(i,!1,[o.coordinates],!1,a,n));break;case"LineString":n=Math.min(n,I4(i,!1,o.coordinates,!0,a,n));break;case"Polygon":n=Math.min(n,P4(i,!1,o.coordinates,a,n))}if(n===0)return n}return n}function TLe(e,t){let r=e.geometry(),i=r.flat().map(o=>Bk([o.x,o.y],e.canonical));if(r.length===0)return NaN;let a=new Nk(i[0][1]),n=1/0;for(let o of t){switch(o.type){case"Point":n=Math.min(n,I4(i,!0,[o.coordinates],!1,a,n));break;case"LineString":n=Math.min(n,I4(i,!0,o.coordinates,!0,a,n));break;case"Polygon":n=Math.min(n,P4(i,!0,o.coordinates,a,n))}if(n===0)return n}return n}function MLe(e,t){let r=e.geometry();if(r.length===0||r[0].length===0)return NaN;let i=mw(r,0).map(o=>o.map(s=>s.map(l=>Bk([l.x,l.y],e.canonical)))),a=new Nk(i[0][0][0][1]),n=1/0;for(let o of t)for(let s of i){switch(o.type){case"Point":n=Math.min(n,P4([o.coordinates],!1,s,a,n));break;case"LineString":n=Math.min(n,P4(o.coordinates,!0,s,a,n));break;case"Polygon":n=Math.min(n,wLe(s,o.coordinates,a,n))}if(n===0)return n}return n}function W9(e){return e.type==="MultiPolygon"?e.coordinates.map(t=>({type:"Polygon",coordinates:t})):e.type==="MultiLineString"?e.coordinates.map(t=>({type:"LineString",coordinates:t})):e.type==="MultiPoint"?e.coordinates.map(t=>({type:"Point",coordinates:t})):[e]}function Dte(e,[t,r,i,a],n){t=t.evaluate(e),r=r.evaluate(e),i=i.evaluate(e);let o=a?a.evaluate(e):1,s=jie(t,r,i,o);if(s)throw new Sa(s,n);return new Sr(t/255,r/255,i/255,o,!1)}function Ste(e,t){return e in t&&t[e]!==void 0}function X9(e,t){let r=t[e];return r===void 0?null:r}function ELe(e,t,r,i){for(;r<=i;){let a=r+i>>1;if(t[a]===e)return!0;t[a]>e?i=a-1:r=a+1}return!1}function Pd(e){return{type:e}}function kLe(e){return Array.isArray(e)?`(${e.map(La).join(", ")})`:`(${La(e.type)}...)`}function L4(e){if(e instanceof tae)return L4(e.boundExpression);if(e instanceof Xd&&e.name==="error"||e instanceof cae||e instanceof Ok||e instanceof Gk||e instanceof jk)return!1;let t=e instanceof am||e instanceof mh,r=!0;return e.eachChild(i=>{r&&(r=t?L4(i):i instanceof vm)}),r?gw(e)&&yw(e,["zoom","heatmap-density","elevation","line-progress","accumulated","is-supported-script"]):!1}function gw(e){if(e instanceof Xd&&(e.name==="get"&&e.args.length===1||e.name==="feature-state"||e.name==="has"&&e.args.length===1||e.name==="properties"||e.name==="geometry-type"||e.name==="id"||/^filter-/.test(e.name))||e instanceof Ok||e instanceof Gk)return!1;let t=!0;return e.eachChild(r=>{t&&!gw(r)&&(t=!1)}),t}function $y(e){if(e instanceof Xd&&e.name==="feature-state")return!1;let t=!0;return e.eachChild(r=>{t&&!$y(r)&&(t=!1)}),t}function yw(e,t){if(e instanceof Xd&&t.indexOf(e.name)>=0)return!1;let r=!0;return e.eachChild(i=>{r&&!yw(i,t)&&(r=!1)}),r}function gm(e){return e["property-type"]==="data-driven"||e["property-type"]==="cross-faded-data-driven"}function Mae(e){return!!e.expression&&e.expression.parameters.indexOf("zoom")>-1}function $k(e){return!!e.expression&&e.expression.interpolated}function Hy(e,...t){for(let r of t)for(let i in r)e[i]=r[i];return e}function jr(e){return e instanceof Number?"number":e instanceof String?"string":e instanceof Boolean?"boolean":Array.isArray(e)?"array":e===null?"null":typeof e}function _w(e){return typeof e=="object"&&!!e&&!Array.isArray(e)&&Ja(e)===qd}function CLe(e){return e}function FLe(e){switch(e.type){case"color":return Sr.parse;case"padding":return Fc.parse;case"numberArray":return Pc.parse;case"colorArray":return Ul.parse;default:return null}}function PLe(e){switch(e){case"exponential":return Sae;case"interval":return LLe;case"categorical":return ILe;case"identity":return zLe;default:throw Error(`Unknown function type "${e}"`)}}function Dae(e,t){let r=e.stops&&typeof e.stops[0][0]=="object",i=r||e.property!==void 0,a=r||!i,n=e.type||($k(t)?"exponential":"interval"),o=FLe(t);if(o&&(e=Hy({},e),e.stops&&(e.stops=e.stops.map(c=>[c[0],o(c[1])])),e.default?e.default=o(e.default):e.default=o(t.default)),e.colorSpace&&!TIe(e.colorSpace))throw Error(`Unknown color space: "${e.colorSpace}"`);let s=PLe(n),l,u;if(n==="categorical"){l=Object.create(null);for(let c of e.stops)l[c[0]]=c[1];u=typeof e.stops[0][0]}if(r){let c={},h=[];for(let p=0;pp[0]),evaluate({zoom:p},m){return Sae({stops:f,base:e.base},t,p).evaluate(p,m)}}}if(a){let c=n==="exponential"?{name:"exponential",base:e.base===void 0?1:e.base}:null;return{kind:"camera",interpolationType:c,interpolationFactor:Gl.interpolationFactor.bind(void 0,c),zoomStops:e.stops.map(h=>h[0]),evaluate:({zoom:h})=>s(e,t,h,l,u)}}return{kind:"source",evaluate(c,h){let f=h&&h.properties?h.properties[e.property]:void 0;return f===void 0?g2(e.default,t.default):s(e,t,f,l,u)}}}function g2(e,t,r){if(e!==void 0)return e;if(t!==void 0)return t;if(r!==void 0)return r}function ILe(e,t,r,i,a){return g2(typeof r===a?i[r]:void 0,e.default,t.default)}function LLe(e,t,r){if(jr(r)!=="number")return g2(e.default,t.default);let i=e.stops.length;if(i===1||r<=e.stops[0][0])return e.stops[0][1];if(r>=e.stops[i-1][0])return e.stops[i-1][1];let a=pw(e.stops.map(n=>n[0]),r,"");return e.stops[a][1]}function Sae(e,t,r){let i=e.base===void 0?1:e.base;if(jr(r)!=="number")return g2(e.default,t.default);let a=e.stops.length;if(a===1||r<=e.stops[0][0])return e.stops[0][1];if(r>=e.stops[a-1][0])return e.stops[a-1][1];let n=pw(e.stops.map(c=>c[0]),r,""),o=RLe(r,i,e.stops[n][0],e.stops[n+1][0]),s=e.stops[n][1],l=e.stops[n+1][1],u=wa[t.type]||CLe;return typeof s.evaluate=="function"?{evaluate(...c){let h=s.evaluate.apply(void 0,c),f=l.evaluate.apply(void 0,c);if(h!==void 0&&f!==void 0)return u(h,f,o,e.colorSpace)}}:u(s,l,o,e.colorSpace)}function zLe(e,t,r){switch(t.type){case"color":r=Sr.parse(r);break;case"formatted":r=yh.fromString(r.toString());break;case"resolvedImage":r=kc.fromString(r.toString());break;case"padding":r=Fc.parse(r);break;case"colorArray":r=Ul.parse(r);break;case"numberArray":r=Pc.parse(r);break;default:jr(r)!==t.type&&(t.type!=="enum"||!t.values[r])&&(r=void 0)}return g2(r,e.default,t.default)}function RLe(e,t,r,i){let a=i-r,n=e-r;return a===0?0:t===1?n/a:(t**+n-1)/(t**+a-1)}function vE(e){return{result:"success",value:e}}function tm(e){return{result:"error",value:e}}function Eae(e,t,r,i){return`${e}${t}: ${r}${i==null?"":` Falling back to ${String(i)}.`}`}function kae(e){if(!e)throw Error('rootKey must identify the location of the expression in the style JSON, e.g. "layers[3].paint.line-width".')}function xw(e){return Array.isArray(e)&&e.length>0&&typeof e[0]=="string"&&e[0]in sm}function bw(e,t,r,i){kae(t);let a=new Aae(sm,L4,[],r?OLe(r):void 0),n=a.parse(e,void 0,void 0,void 0,r&&r.type==="string"?{typeAnnotation:"coerce"}:void 0);return n?vE(new Zk(n,t,r,i)):tm(a.errors)}function BLe(e){return e._styleExpression!==void 0}function Cae(e,t,r,i){let a=bw(e,t,r,i);if(a.result==="error")return a;let n=a.value.expression,o=gw(n);if(!o&&!gm(r))return tm([new Ac("","data expressions not supported")]);let s=yw(n,["zoom"]);if(!s&&!Mae(r))return tm([new Ac("","zoom expressions not supported")]);let l=E4(n);if(!l&&!s)return tm([new Ac("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.')]);if(l instanceof Ac)return tm([l]);if(l instanceof Gl&&!$k(r))return tm([new Ac("",'"interpolate" expressions cannot be used with this property')]);if(!l)return vE(o?new Zy("constant",a.value,i):new Zy("source",a.value,i));let u=l instanceof Gl?l.interpolation:void 0;return vE(o?new z4("camera",a.value,l.labels,u,i):new z4("composite",a.value,l.labels,u,i))}function qLe(e,t,r,i){if(_w(e))return new Fae(e,t,r);if(xw(e)){let a=Cae(e,t,r,i);if(a.result==="error")throw Error(a.value.map(n=>`${n.key}: ${n.message}`).join(", "));return a.value}{let a=e;return r.type==="color"&&typeof e=="string"?a=Sr.parse(e):r.type==="padding"&&(typeof e=="number"||Array.isArray(e))?a=Fc.parse(e):r.type==="numberArray"&&(typeof e=="number"||Array.isArray(e))?a=Pc.parse(e):r.type==="colorArray"&&(typeof e=="string"||Array.isArray(e))?a=Ul.parse(e):r.type==="variableAnchorOffsetCollection"&&Array.isArray(e)?a=Ec.parse(e):r.type==="projectionDefinition"&&typeof e=="string"&&(a=Th.parse(e)),{globalStateRefs:new Set,_globalState:null,kind:"constant",evaluate:()=>a}}}function E4(e){let t=null;if(e instanceof Qie)t=E4(e.result);else if(e instanceof sae){for(let r of e.args)if(t=E4(r),t)break}else(e instanceof Rk||e instanceof Gl)&&e.input instanceof Xd&&e.input.name==="zoom"&&(t=e);return t instanceof Ac||e.eachChild(r=>{let i=E4(r);i instanceof Ac?t=i:!t&&i?t=new Ac("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.'):t&&i&&t!==i&&(t=new Ac("",'Only one zoom-based "step" or "interpolate" subexpression may be used in an expression.'))}),t}function y2(e,t=new Set){return e instanceof jk&&t.add(e.key),e.eachChild(r=>{y2(r,t)}),t}function OLe(e){let t={color:Pu,string:Fr,number:Vt,enum:Fr,boolean:ei,formatted:p2,padding:hw,numberArray:fw,colorArray:Uy,projectionDefinition:uw,resolvedImage:m2,variableAnchorOffsetCollection:dw};return e.type==="array"?zo(t[e.value]||Lr,e.length):t[e.type]}function Iae(e){if(e.type==="color"&&_w(e.default))return new Sr(0,0,0,0);switch(e.type){case"color":return Sr.parse(e.default)||null;case"padding":return Fc.parse(e.default)||null;case"numberArray":return Pc.parse(e.default)||null;case"colorArray":return Ul.parse(e.default)||null;case"variableAnchorOffsetCollection":return Ec.parse(e.default)||null;case"projectionDefinition":return Th.parse(e.default)||null;default:return e.default===void 0?null:e.default}}function ym(e,t){let{zoom:r,heatmapDensity:i,elevation:a,lineProgress:n,isSupportedScript:o,accumulated:s}=e!=null?e:{};return{zoom:r,heatmapDensity:i,elevation:a,lineProgress:n,isSupportedScript:o,accumulated:s,globalState:t}}function NLe(e){let t=!1;for(let r of e){let i=Lae(r);if(i==="expression")return"expression";i==="legacy"&&(t=!0)}return t?"legacy":"neutral"}function Lae(e){if(typeof e=="boolean")return"neutral";if(!Array.isArray(e)||e.length===0)return"legacy";switch(e[0]){case"has":return e.length<2||e[1]==="$id"||e[1]==="$type"?"legacy":e.length===2?"neutral":"expression";case"in":return e.length>=3&&(typeof e[1]!="string"||Array.isArray(e[2]))?"expression":"legacy";case"!in":case"!has":return"legacy";case"==":case"!=":case">":case">=":case"<":case"<=":return e.length!==3||Array.isArray(e[1])||Array.isArray(e[2])?"expression":"legacy";case"none":return"legacy";case"any":case"all":return NLe(e.slice(1));default:return"expression"}}function Yk(e){return Lae(e)!=="legacy"}function Ete(e){return e==="$type"?["geometry-type"]:e==="$id"?["id"]:["get",e]}function VLe(e){switch(e[0]){case"==":case"!=":case"<":case"<=":case">":case">=":return e.length!==3||typeof e[1]!="string"?null:[e[0],Ete(e[1]),e[2]];case"in":case"!in":{if(e.length<2||typeof e[1]!="string")return null;let t=["in",Ete(e[1]),["literal",e.slice(2)]];return e[0]==="!in"?["!",t]:t}case"has":case"!has":{if(e.length!==2||typeof e[1]!="string"||e[1]==="$type"||e[1]==="$id")return null;let t=["has",e[1]];return e[0]==="!has"?["!",t]:t}default:return null}}function zae(e){if((e[0]==="<"||e[0]==="<="||e[0]===">"||e[0]===">=")&&e[1]==="$type")return`"$type" cannot be use with operator "${e[0]}"`;let t=VLe(e);return t?`Mixing deprecated filter syntax with expression syntax is not supported. Replace ${JSON.stringify(e)} with ${JSON.stringify(t)}.`:`Mixing deprecated filter syntax with expression syntax is not supported. Convert ${JSON.stringify(e)} to expression syntax.`}function K9(e,t,r){let i=r[e];return Array.isArray(i)?Yk(i)?Wk(i,t.concat(e)):{path:t.concat(e),legacyFilter:i}:null}function Wk(e,t=[]){if(!Array.isArray(e)||e.length<1)return null;switch(e[0]){case"all":case"any":case"none":for(let r=1;r"u")return;let i=r.path.map(a=>`[${a}]`).join("");console.warn(`${t}${i}: ${zae(r.legacyFilter)}`)}function _m(e,t,r){if(e==null)return{filter:()=>!0,needGeometry:!1,getGlobalStateRefs:()=>new Set};Yk(e)?ULe(e,t):e=R4(e);let i=bw(e,t,GLe,r);if(i.result==="error")throw Error(i.value.map(a=>`${a.key}: ${a.message}`).join(", "));return{filter:(a,n,o)=>i.value.evaluate(a,n,{},o),needGeometry:Rae(e),getGlobalStateRefs:()=>y2(i.value.expression)}}function jLe(e,t){return et)}function Rae(e){if(!Array.isArray(e))return!1;if(e[0]==="within"||e[0]==="distance")return!0;for(let t=1;t"||t==="<="||t===">="?J9(e[1],e[2],t):t==="any"?$Le(e.slice(1)):t==="all"?["all"].concat(e.slice(1).map(R4)):t==="none"?["all"].concat(e.slice(1).map(R4).map(f4)):t==="in"?kte(e[1],e.slice(2)):t==="!in"?f4(kte(e[1],e.slice(2))):t==="has"?Cte(e[1]):t!=="!has"||f4(Cte(e[1]))}function J9(e,t,r){switch(e){case"$type":return[`filter-type-${r}`,t];case"$id":return[`filter-id-${r}`,t];default:return[`filter-${r}`,e,t]}}function $Le(e){return["any"].concat(e.map(R4))}function kte(e,t){if(t.length===0)return!1;switch(e){case"$type":return["filter-type-in",["literal",t]];case"$id":return["filter-id-in",["literal",t]];default:return t.length>200&&!t.some(r=>typeof r!=typeof t[0])?["filter-in-large",e,["literal",t.sort(jLe)]]:["filter-in-small",e,["literal",t]]}}function Cte(e){switch(e){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",e]}}function f4(e){return["!",e]}function Bae(e){let t=e.key,r=e.value;return r?[new xt(t,r,"constants have been deprecated as of v8")]:[]}function Xa(e){return e instanceof Number||e instanceof String||e instanceof Boolean?e.valueOf():e}function Gd(e){if(Array.isArray(e))return e.map(Gd);if(e instanceof Object&&!(e instanceof Number||e instanceof String||e instanceof Boolean)){let t={};for(let r in e)t[r]=Gd(e[r]);return t}return Xa(e)}function Js(e){let t=e.key,r=e.value,i=e.valueSpec||{},a=e.objectElementValidators||{},n=e.style,o=e.styleSpec,s=e.validateSpec,l=[],u=jr(r);if(u!=="object")return[new xt(t,r,`object expected, ${u} found`)];for(let c in r){let h=c.split(".")[0],f=zy(i,h)||i["*"],d;if(zy(a,h))d=a[h];else if(zy(i,h)){if(r[c]===void 0)continue;d=s}else if(a["*"])d=a["*"];else if(i["*"])d=s;else{l.push(new xt(t,r[c],`unknown property "${c}"`));continue}l=l.concat(d({key:(t&&`${t}.`)+c,value:r[c],valueSpec:f,style:n,styleSpec:o,object:r,objectKey:c,validateSpec:s},r))}for(let c in i)a[c]||i[c].required&&i[c].default===void 0&&r[c]===void 0&&l.push(new xt(t,r,`missing required property "${c}"`));return l}function Xk(e){let t=e.value,r=e.valueSpec,i=e.validateSpec,a=e.style,n=e.styleSpec,o=e.key,s=e.arrayElementValidator||i;if(jr(t)!=="array")return[new xt(o,t,`array expected, ${jr(t)} found`)];if(r.length&&t.length!==r.length)return[new xt(o,t,`array length ${r.length} expected, length ${t.length} found`)];let l={type:r.value,values:r.values};n.$version<7&&(l.function=r.function),jr(r.value)==="object"&&(l=r.value);let u=[];for(let c=0;ci.maximum?[new xt(t,r,`${r} is greater than the maximum value ${i.maximum}`)]:[]:[new xt(t,r,`number expected, ${a} found`)]}function qae(e){let t=e.valueSpec,r=Xa(e.value.type),i,a={},n,o,s=r!=="categorical"&&e.value.property===void 0,l=!s,u=jr(e.value.stops)==="array"&&jr(e.value.stops[0])==="array"&&jr(e.value.stops[0][0])==="object",c=Js({key:e.key,value:e.value,valueSpec:e.styleSpec.function,validateSpec:e.validateSpec,style:e.style,styleSpec:e.styleSpec,objectElementValidators:{stops:h,default:p}});return r==="identity"&&s&&c.push(new xt(e.key,e.value,'missing required property "property"')),r!=="identity"&&!e.value.stops&&c.push(new xt(e.key,e.value,'missing required property "stops"')),r==="exponential"&&e.valueSpec.expression&&!$k(e.valueSpec)&&c.push(new xt(e.key,e.value,"exponential functions not supported")),e.styleSpec.$version>=8&&(l&&!gm(e.valueSpec)?c.push(new xt(e.key,e.value,"property functions not supported")):s&&!Mae(e.valueSpec)&&c.push(new xt(e.key,e.value,"zoom functions not supported"))),(r==="categorical"||u)&&e.value.property===void 0&&c.push(new xt(e.key,e.value,'"property" property is required')),c;function h(m){if(r==="identity")return[new xt(m.key,m.value,'identity function may not have a "stops" property')];let g=[],y=m.value;return g=g.concat(Xk({key:m.key,value:y,valueSpec:m.valueSpec,validateSpec:m.validateSpec,style:m.style,styleSpec:m.styleSpec,arrayElementValidator:f})),jr(y)==="array"&&y.length===0&&g.push(new xt(m.key,y,"array must have at least one stop")),g}function f(m){let g=[],y=m.value,x=m.key;if(jr(y)!=="array")return[new xt(x,y,`array expected, ${jr(y)} found`)];if(y.length!==2)return[new xt(x,y,`array length 2 expected, length ${y.length} found`)];if(u){if(jr(y[0])!=="object")return[new xt(x,y,`object expected, ${jr(y[0])} found`)];if(y[0].zoom===void 0)return[new xt(x,y,"object stop key must have zoom")];if(y[0].value===void 0)return[new xt(x,y,"object stop key must have value")];if(o&&o>Xa(y[0].zoom))return[new xt(x,y[0].zoom,"stop zoom values must appear in ascending order")];Xa(y[0].zoom)!==o&&(o=Xa(y[0].zoom),n=void 0,a={}),g=g.concat(Js({key:`${x}[0]`,value:y[0],valueSpec:{zoom:{}},validateSpec:m.validateSpec,style:m.style,styleSpec:m.styleSpec,objectElementValidators:{zoom:ww,value:d}}))}else g=g.concat(d({key:`${x}[0]`,value:y[0],valueSpec:{},validateSpec:m.validateSpec,style:m.style,styleSpec:m.styleSpec},y));return xw(Gd(y[1]))?g.concat([new xt(`${x}[1]`,y[1],"expressions are not allowed in function stops.")]):g.concat(m.validateSpec({key:`${x}[1]`,value:y[1],valueSpec:t,validateSpec:m.validateSpec,style:m.style,styleSpec:m.styleSpec}))}function d(m,g){let y=jr(m.value),x=Xa(m.value),b=m.value===null?g:m.value;if(!i)i=y;else if(y!==i)return[new xt(m.key,b,`${y} stop domain type must match previous stop domain type ${i}`)];if(y!=="number"&&y!=="string"&&y!=="boolean")return[new xt(m.key,b,"stop domain value must be a number, string, or boolean")];if(y!=="number"&&r!=="categorical"){let _=`number expected, ${y} found`;return gm(t)&&r===void 0&&(_+='\nIf you intended to use a categorical function, specify `"type": "categorical"`.'),[new xt(m.key,b,_)]}return r==="categorical"&&y==="number"&&(!isFinite(x)||Math.floor(x)!==x)?[new xt(m.key,b,`integer expected, found ${x}`)]:r!=="categorical"&&y==="number"&&n!==void 0&&xnew xt(`${e.key}${i.key}`,e.value,i.message));let r=t.value.expression||t.value._styleExpression.expression;if(e.expressionContext==="property"&&e.propertyKey==="text-font"&&!r.outputDefined())return[new xt(e.key,e.value,`Invalid data expression for "${e.propertyKey}". Output values must be contained as literals within the expression.`)];if(e.expressionContext==="property"&&e.propertyType==="layout"&&!$y(r))return[new xt(e.key,e.value,'"feature-state" data expressions are not supported with layout properties.')];if(e.expressionContext==="filter"&&!$y(r))return[new xt(e.key,e.value,'"feature-state" data expressions are not supported with filters.')];if(e.expressionContext&&e.expressionContext.indexOf("cluster")===0){if(!yw(r,["zoom","feature-state"]))return[new xt(e.key,e.value,'"zoom" and "feature-state" expressions are not supported with cluster properties.')];if(e.expressionContext==="cluster-initial"&&!gw(r))return[new xt(e.key,e.value,"Feature data expressions are not supported with initial expression part of cluster properties.")]}return[]}function HLe(e){let t=e.value,r=e.key,i=jr(t);return i==="boolean"?[]:[new xt(r,t,`boolean expected, ${i} found`)]}function gE(e){let t=e.key,r=e.value,i=jr(r);return i==="string"?Sr.parse(String(r))?[]:[new xt(t,r,`color expected, "${r}" found`)]:[new xt(t,r,`color expected, ${i} found`)]}function Yy(e){let t=e.key,r=e.value,i=e.valueSpec,a=[];return Array.isArray(i.values)?i.values.indexOf(Xa(r))===-1&&a.push(new xt(t,r,`expected one of [${i.values.join(", ")}], ${JSON.stringify(r)} found`)):Object.keys(i.values).indexOf(Xa(r))===-1&&a.push(new xt(t,r,`expected one of [${Object.keys(i.values).join(", ")}], ${JSON.stringify(r)} found`)),a}function ZLe(e,t){let r=e;for(let i of t)r=r[i];return r}function YLe(e,t){let r=Wk(t);return r?[new xt(`${e.key}${r.path.map(i=>`[${i}]`).join("")}`,ZLe(e.value,r.path),zae(r.legacyFilter),null,"warning")]:[]}function Kk(e){let t=Gd(e.value);return Yk(t)?[...YLe(e,t),...xm(Hy({},e,{expressionContext:"filter",valueSpec:{value:"boolean"}}))]:Oae(e)}function Oae(e){let t=e.value,r=e.key;if(jr(t)!=="array")return[new xt(r,t,`array expected, ${jr(t)} found`)];let i=e.styleSpec,a,n=[];if(t.length<1)return[new xt(r,t,"filter array must have at least 1 element")];switch(n=n.concat(Yy({key:`${r}[0]`,value:t[0],valueSpec:i.filter_operator,style:e.style,styleSpec:e.styleSpec})),Xa(t[0])){case"<":case"<=":case">":case">=":t.length>=2&&Xa(t[1])==="$type"&&n.push(new xt(r,t,`"$type" cannot be use with operator "${t[0]}"`));case"==":case"!=":t.length!==3&&n.push(new xt(r,t,`filter array for operator "${t[0]}" must have 3 elements`));case"in":case"!in":t.length>=2&&(a=jr(t[1]),a!=="string"&&n.push(new xt(`${r}[1]`,t[1],`string expected, ${a} found`)));for(let o=2;o{h in r&&t.push(new xt(i,r[h],`"${h}" is prohibited for ref layers`))});let c;a.layers.forEach(h=>{Xa(h.id)===s&&(c=h)}),c?c.ref?t.push(new xt(i,r.ref,"ref cannot reference another ref layer")):o=Xa(c.type):t.push(new xt(i,r.ref,`ref layer "${s}" not found`))}else if(o!=="background")if(!r.source)t.push(new xt(i,r,'missing required property "source"'));else{let c=a.sources&&a.sources[r.source],h=c&&Xa(c.type);c?h==="vector"&&o==="raster"?t.push(new xt(i,r.source,`layer "${r.id}" requires a raster source`)):h!=="raster-dem"&&o==="hillshade"||h!=="raster-dem"&&o==="color-relief"?t.push(new xt(i,r.source,`layer "${r.id}" requires a raster-dem source`)):h==="raster"&&o!=="raster"?t.push(new xt(i,r.source,`layer "${r.id}" requires a vector source`)):h==="vector"&&!r["source-layer"]?t.push(new xt(i,r,`layer "${r.id}" must specify a "source-layer"`)):h==="raster-dem"&&o!=="hillshade"&&o!=="color-relief"?t.push(new xt(i,r.source,"raster-dem source can only be used with layer type 'hillshade' or 'color-relief'.")):o==="line"&&r.paint&&r.paint["line-gradient"]&&(h!=="geojson"||!c.lineMetrics)&&t.push(new xt(i,r,`layer "${r.id}" specifies a line-gradient, which requires a GeoJSON source with \`lineMetrics\` enabled.`)):t.push(new xt(i,r.source,`source "${r.source}" not found`))}return o==="raster"&&((l=r.paint)!=null&&l.resampling)&&((u=r.paint)!=null&&u["raster-resampling"])&&t.push(new xt(i,r.paint,`layer "${r.id}" redundantly specifies "resampling" and "raster-resampling" paint properties, but only one is allowed. It is advised to use "resampling".`)),t=t.concat(Js({key:i,value:r,valueSpec:n.layer,style:e.style,styleSpec:e.styleSpec,validateSpec:e.validateSpec,objectElementValidators:{"*"(){return[]},type(){return e.validateSpec({key:`${i}.type`,value:r.type,valueSpec:n.layer.type,style:e.style,styleSpec:e.styleSpec,validateSpec:e.validateSpec,object:r,objectKey:"type"})},filter:Kk,layout(c){return Js({layer:r,key:c.key,value:c.value,style:c.style,styleSpec:c.styleSpec,validateSpec:c.validateSpec,objectElementValidators:{"*"(h){return Uae(Hy({layerType:o},h))}}})},paint(c){return Js({layer:r,key:c.key,value:c.value,style:c.style,styleSpec:c.styleSpec,validateSpec:c.validateSpec,objectElementValidators:{"*"(h){return Vae(Hy({layerType:o},h))}}})}}})),t}function Gf(e){let t=e.value,r=e.key,i=jr(t);return i==="string"?[]:[new xt(r,t,`string expected, ${i} found`)]}function WLe(e){var h;let t=(h=e.sourceName)!=null?h:"",r=e.value,i=e.styleSpec,a=i.source_raster_dem,n=e.style,o=[],s=jr(r);if(r===void 0)return o;if(s!=="object")return o.push(new xt("source_raster_dem",r,`object expected, ${s} found`)),o;let l=Xa(r.encoding)==="custom",u=["redFactor","greenFactor","blueFactor","baseShift"],c=e.value.encoding?`"${e.value.encoding}"`:"Default";for(let f in r)!l&&u.includes(f)?o.push(new xt(f,r[f],`In "${t}": "${f}" is only valid when "encoding" is set to "custom". ${c} encoding found`)):a[f]?o=o.concat(e.validateSpec({key:f,value:r[f],valueSpec:a[f],validateSpec:e.validateSpec,style:n,styleSpec:i})):o.push(new xt(f,r[f],`unknown property "${f}"`));return o}function jae(e){let t=e.value,r=e.key,i=e.styleSpec,a=e.style,n=e.validateSpec;if(!t.type)return[new xt(r,t,'"type" is required')];let o=Xa(t.type),s;switch(o){case"vector":case"raster":return s=Js({key:r,value:t,valueSpec:i[`source_${o.replace("-","_")}`],style:e.style,styleSpec:i,objectElementValidators:Fte,validateSpec:n}),s;case"raster-dem":return s=WLe({sourceName:r,value:t,style:e.style,styleSpec:i,validateSpec:n}),s;case"geojson":if(s=Js({key:r,value:t,valueSpec:i.source_geojson,style:a,styleSpec:i,validateSpec:n,objectElementValidators:Fte}),t.cluster)for(let l in t.clusterProperties){let[u,c]=t.clusterProperties[l],h=typeof u=="string"?[u,["accumulated"],["get",l]]:u;s.push(...xm({key:`${r}.${l}.map`,value:c,validateSpec:n,expressionContext:"cluster-map"})),s.push(...xm({key:`${r}.${l}.reduce`,value:h,validateSpec:n,expressionContext:"cluster-reduce"}))}return s;case"video":return Js({key:r,value:t,valueSpec:i.source_video,style:a,validateSpec:n,styleSpec:i});case"image":return Js({key:r,value:t,valueSpec:i.source_image,style:a,validateSpec:n,styleSpec:i});case"canvas":return[new xt(r,null,"Please use runtime APIs to add canvas sources, rather than including them in stylesheets.","source.canvas")];default:return Yy({key:`${r}.type`,value:t.type,valueSpec:{values:["vector","raster","raster-dem","geojson","video","image"]},style:a,validateSpec:n,styleSpec:i})}}function XLe({key:e,value:t}){if(jr(t)==="string")return Gf({key:e,value:t});{let r=[];for(let i in t)r.push(...Gf({key:`${e}.${i}`,value:t[i]}));return r}}function $ae(e){let t=e.value,r=e.styleSpec,i=r.light,a=e.style,n=[],o=jr(t);if(t===void 0)return n;if(o!=="object")return n=n.concat([new xt("light",t,`object expected, ${o} found`)]),n;for(let s in t){let l=s.match(Hk);n=l&&i[l[1]]&&i[l[1]].transition?n.concat(e.validateSpec({key:s,value:t[s],valueSpec:r.transition,validateSpec:e.validateSpec,style:a,styleSpec:r})):i[s]?n.concat(e.validateSpec({key:s,value:t[s],valueSpec:i[s],validateSpec:e.validateSpec,style:a,styleSpec:r})):n.concat([new xt(s,t[s],`unknown property "${s}"`)])}return n}function Hae(e){let t=e.value,r=e.styleSpec,i=r.sky,a=e.style,n=jr(t);if(t===void 0)return[];if(n!=="object")return[new xt("sky",t,`object expected, ${n} found`)];let o=[];for(let s in t){let l=s.match(Hk);o=l&&i[l[1]]&&i[l[1]].transition?o.concat(e.validateSpec({key:s,value:t[s],valueSpec:r.transition,style:a,styleSpec:r})):i[s]?o.concat(e.validateSpec({key:s,value:t[s],valueSpec:i[s],style:a,styleSpec:r})):o.concat([new xt(s,t[s],`unknown property "${s}"`)])}return o}function Zae(e){let t=e.value,r=e.styleSpec,i=r.terrain,a=e.style,n=[],o=jr(t);if(t===void 0)return n;if(o!=="object")return n=n.concat([new xt("terrain",t,`object expected, ${o} found`)]),n;for(let s in t)n=i[s]?n.concat(e.validateSpec({key:s,value:t[s],valueSpec:i[s],validateSpec:e.validateSpec,style:a,styleSpec:r})):n.concat([new xt(s,t[s],`unknown property "${s}"`)]);return n}function KLe(e){return Gf(e).length===0?[]:xm(e)}function JLe(e){return Gf(e).length===0?[]:xm(e)}function QLe(e){let t=e.key,r=e.value;if(jr(r)==="array"){if(r.length<1||r.length>4)return[new xt(t,r,`padding requires 1 to 4 values; ${r.length} values found`)];let i={type:"number"},a=[];for(let n=0;n[new xt(e,t,'invalid unicode range, expected a value such as "U+26", "U+0-10FFFF" or "U+4??"')],a=r.match(sze);if(!a)return i();let[,n,o,s]=a;if(s!==void 0)return s.length>6?i():[];let l=parseInt(n,16),u=o===void 0?l:parseInt(o,16);return l>Pte||u>Pte?[new xt(e,t,"unicode range is out of bounds, the maximum code point is U+10FFFF")]:l>u?[new xt(e,t,`unicode range start must not be greater than its end, but ${r} is`)]:[]}function Xae(e){var s,l;let t=(s=e.key)!=null?s:"font-faces",r=e.value,i=e.validateSpec,a=(l=e.styleSpec)!=null?l:Lie,n=e.style;if(!yE(r))return[new xt(t,r,`object expected, ${jr(r)} found`)];let o=[];for(let u in r){let c=r[u],h=jr(c);if(h==="string")o.push(...Gf({key:`${t}.${u}`,value:c}));else if(h==="array"){let f={url:{type:"string",required:!0},"unicode-range":{type:"array",value:"string"}};for(let[d,p]of c.entries()){let m=`${t}.${u}[${d}]`;o.push(...Js({key:m,value:p,valueSpec:f,styleSpec:a,style:n,validateSpec:i}));let g=yE(p)?p["unicode-range"]:void 0;if(jr(g)==="array")for(let[y,x]of g.entries())o.push(...lze(`${m}.unicode-range[${y}]`,x))}}else o.push(new xt(`${t}.${u}`,c,`string or array expected, ${h} found`))}return o}function By(e){let t=e.value,r=e.valueSpec,i=e.styleSpec;return e.validateSpec=By,r.expression&&_w(Xa(t))?qae(e):r.expression&&xw(Gd(t))?xm(e):r.type&&Ite[r.type]?Ite[r.type](e):Js(Hy({},e,{valueSpec:r.type?i[r.type]:r}))}function Kae(e){let t=e.value,r=e.key,i=Gf(e);return i.length||(t.indexOf("{fontstack}")===-1&&i.push(new xt(r,t,'"glyphs" url must include a "{fontstack}" token')),t.indexOf("{range}")===-1&&i.push(new xt(r,t,'"glyphs" url must include a "{range}" token'))),i}function Ks(e,t=Xe){let r=[];return r=r.concat(By({key:"",value:e,valueSpec:t.$root,styleSpec:t,style:e,validateSpec:By,objectElementValidators:{glyphs:Kae,"*"(){return[]}}})),e.constants&&(r=r.concat(Bae({key:"constants",value:e.constants,style:e,styleSpec:t,validateSpec:By}))),Jae(r)}function Bl(e){return function(t){return e(Object.assign({},t,{validateSpec:By}))}}function Jae(e){return[].concat(e).sort((t,r)=>t.line-r.line)}function ql(e){return function(...t){return Jae(e.apply(this,t))}}function hze(e,t,r){return new cze(e,t,r)}function fze(e){var t;return Object.entries((t=e.sources)!=null?t:{}).filter(([,r])=>!Jk.has(r.type)).map(([r])=>`sources.${r}`)}function Qk(e,t){let r=fze(t);return Aw(e,es(t).filter(({message:i})=>!r.some(a=>i.startsWith(`${a}:`)||i.startsWith(`${a}.`))))}function Aw(e,t){let r=!1;for(let i of t){if(i.severity==="warning"){Xr(i.message);continue}e.fire(new or(Error(i.message))),r=!0}return r}function Em(e,t,r,i){return(i==null?void 0:i.validate)!==!1&&Aw(e,t(nr({styleSpec:Xe},r)))}function Yt(e,t,r={}){if(vh[e])throw Error(`${e} is already registered.`);Object.defineProperty(t,"_classRegistryKey",{value:e,writeable:!1}),vh[e]={klass:t,omit:r.omit||[],shallow:r.shallow||[]}}function ene(e){var t;return e&&typeof ArrayBuffer<"u"&&(e instanceof ArrayBuffer||((t=e.constructor)==null?void 0:t.name)==="ArrayBuffer")}function eC(e){let t=e.constructor;return e.$name||t._classRegistryKey}function dze(e){if(typeof e!="object"||!e)return!1;let t=eC(e);return t&&t!=="Object"}function tne(e){return!dze(e)&&(e==null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||e instanceof Boolean||e instanceof Number||e instanceof String||e instanceof Date||e instanceof RegExp||e instanceof Blob||e instanceof Error||ene(e)||Zf(e)||ArrayBuffer.isView(e)||e instanceof ImageData)}function qy(e,t){if(tne(e))return(ene(e)||Zf(e))&&t&&t.push(e),ArrayBuffer.isView(e)&&t&&t.push(e.buffer),e instanceof ImageData&&t&&t.push(e.data.buffer),e;if(Array.isArray(e)){let n=[];for(let o of e)n.push(qy(o,t));return n}if(typeof e!="object")throw Error(`can't serialize object of type ${typeof e}`);let r=eC(e);if(!r)throw Error(`can't serialize object of unregistered class ${e.constructor.name}`);if(!vh[r])throw Error(`${r} is not registered.`);let{klass:i}=vh[r],a=i.serialize?i.serialize(e,t):{};if(i.serialize){if(a===(t==null?void 0:t[t.length-1]))throw Error("statically serialized object won't survive transfer of $name property")}else{for(let n in e){if(!e.hasOwnProperty(n)||vh[r].omit.includes(n))continue;let o=e[n];o!==void 0&&(a[n]=vh[r].shallow.includes(n)?o:qy(o,t))}e instanceof Error&&(a.message=e.message)}if(a.$name)throw Error("$name property is reserved for worker serialization logic.");return r!=="Object"&&(a.$name=r),a}function Oy(e){if(tne(e))return e;if(Array.isArray(e))return e.map(Oy);if(typeof e!="object")throw Error(`can't deserialize object of type ${typeof e}`);let t=eC(e)||"Object";if(!vh[t])throw Error(`can't deserialize unregistered class ${t}`);let{klass:r}=vh[t];if(!r)throw Error(`can't deserialize unregistered class ${t}`);if(r.deserialize)return r.deserialize(e);let i=Object.create(r.prototype);for(let a of Object.keys(e)){if(a==="$name")continue;let n=e[a];i[a]=vh[t].shallow.includes(a)?n:Oy(n)}return i}function Rte(e){if(Array.isArray(e))return e.length;let t=e==null?void 0:e.values;return Array.isArray(t)?t.length:void 0}function rne(e,t){let r=Rte(e),i=Rte(t);return r!==void 0&&i!==void 0&&r!==i}function Ea(e,t=1){let r=0,i=0;return{members:e.map(a=>{let n=_ze(a.type),o=r=Ote(r,Math.max(t,n)),s=a.components||1;return i=Math.max(i,n),r+=n*s,{name:a.name,type:a.type,components:s,offset:o}}),size:Ote(r,Math.max(i,t)),alignment:t}}function _ze(e){return yze[e].BYTES_PER_ELEMENT}function Ote(e,t){return Math.ceil(e/t)*t}function Ute(e,t){return e=Tr(Math.floor(e),0,255),t=Tr(Math.floor(t),0,255),256*e+t}function Gte(e){let t=+e;return!isNaN(t)&&t<=2**53-1?t:(0,V4.default)(String(e))}function UE(e,t,r,i){for(;r>1],n=r-1,o=i+1;for(;;){do n++;while(e[n]a);if(n>=o)break;d4(e,n,o),d4(t,3*n,3*o),d4(t,3*n+1,3*o+1),d4(t,3*n+2,3*o+2)}o-ra.x+1||oa.y+1)&&Xr("Geometry exceeds allowed extent, reduce your vector tile buffer size")}return r}function Yf(e,t){return{type:e.type,id:e.id,properties:e.properties,geometry:t?Kd(e):[]}}function Bze(e,t,r,i,a){e.emplaceBack(Hte+t*8+i,Hte+r*8+a)}function nC(e,t){for(let r of e)if(bm(t,r))return!0;for(let r of t)if(bm(e,r))return!0;return oC(e,t)}function Sw(e,t,r){return bm(e,t)?!0:$E(t,e,r)}function Mne(e,t){if(e.length===1)return Zte(t,e[0]);for(let r of t)for(let i of r)if(bm(e,i))return!0;for(let r of e)if(Zte(t,r))return!0;for(let r of t)if(oC(e,r))return!0;return!1}function qze(e,t,r){for(let i of t){if(e.length>=3){for(let a of i)if(bm(e,a))return!0}if(Oze(e,i,r))return!0}return!1}function Oze(e,t,r){if(e.length>1){if(oC(e,t))return!0;for(let i of t)if($E(i,e,r))return!0}for(let i of e)if($E(i,t,r))return!0;return!1}function oC(e,t){if(e.length===0||t.length===0)return!1;for(let r=0;r1?e.distSqr(r):e.distSqr(r.sub(t)._mult(a)._add(t))}function Zte(e,t){let r=!1,i,a,n;for(let o of e){i=o;for(let s=0,l=i.length-1;st.y!=n.y>t.y&&t.x<(n.x-a.x)*(t.y-a.y)/(n.y-a.y)+a.x&&(r=!r)}return r}function bm(e,t){let r=!1;for(let i=0,a=e.length-1;it.y!=o.y>t.y&&t.x<(o.x-n.x)*(t.y-n.y)/(o.y-n.y)+n.x&&(r=!r)}return r}function Vze(e,t,r,i,a){for(let o of e)if(t<=o.x&&r<=o.y&&i>=o.x&&a>=o.y)return!0;let n=[new qe(t,r),new qe(t,a),new qe(i,a),new qe(i,r)];if(e.length>2){for(let o of n)if(bm(e,o))return!0}for(let o=0;oa.x&&t.x>a.x||e.ya.y&&t.y>a.y)return!1;let n=qf(e,t,r[0]);return n!==qf(e,t,r[1])||n!==qf(e,t,r[2])||n!==qf(e,t,r[3])}function lm(e,t,r){let i=t.paint.get(e).value;return i.kind==="constant"?i.value:r.programConfigurations.get(t.id).getMaxValue(e)}function Ew(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function kw(e,t,r,i,a){if(!t[0]&&!t[1])return e;let n=qe.convert(t)._mult(a);r==="viewport"&&n._rotate(-i);let o=[];for(let s of e)o.push(s.sub(n));return o}function Gze(e){let t=[];for(let r=0;rsC(a,t,r,i))}function lC(e,{width:t,height:r},i,a){if(!a)a=new Uint8Array(t*r*i);else if(a instanceof Uint8ClampedArray)a=new Uint8Array(a.buffer);else if(a.length!==t*r*i)throw RangeError(`mismatched image size. expected: ${a.length} but got: ${t*r*i}`);return e.width=t,e.height=r,e.data=a,e}function Cne(e,{width:t,height:r},i){if(t===e.width&&r===e.height)return;let a=lC({},{width:t,height:r},i);uC(e,a,{x:0,y:0},{x:0,y:0},{width:Math.min(e.width,t),height:Math.min(e.height,r)},i),e.width=t,e.height=r,e.data=a.data}function uC(e,t,r,i,a,n){if(a.width===0||a.height===0)return t;if(a.width>e.width||a.height>e.height||r.x>e.width-a.width||r.y>e.height-a.height)throw RangeError("out of range source coordinates for image copy");if(a.width>t.width||a.height>t.height||i.x>t.width-a.width||i.y>t.height-a.height)throw RangeError("out of range destination coordinates for image copy");let o=e.data,s=t.data;if(o===s)throw Error("srcData equals dstData, so image is already copied");for(let l=0;l{t[e.evaluationKey]=l;let u=e.expression.evaluate(t);a.setPixel(o/4/r,s/4,u)};if(e.clips)for(let o=0,s=0;o80*r){s=e[0],l=e[1];let c=s,h=l;for(let f=r;fc&&(c=d),p>h&&(h=p)}u=Math.max(c-s,h-l),u=u===0?0:32767/u}return YE(n,o,s,l,u),o}function Bne(e,t,r,i,a){let n=null;if(a===kRe(e,t,r,i)>0)for(let o=t;o=t;o-=i)n=tre(o/i|0,e[o],e[o+1],n);return n&&e2(n,n.next)&&(r2(n),n=n.next),n}function $d(e,t=e){let r=t===e,i=e,a;do a=!1,i!==i.next&&(Qy.size===0||!Qy.has(i))&&(e2(i,i.next)||Sn(i.prev,i,i.next)===0)?((r||i===t)&&(t=i.prev),ZE=!0,r2(i),i=i.prev,a=!0):(r||i!==t)&&(i=i.next,a=!r);while(a||i!==t);return t}function YE(e,t,r,i,a){a&&ARe(e,r,i,a);let n=e,o=!1;for(;e.prev!==e.next;){let s=e.prev,l=e.next;if(Sn(s,e,l)<0&&(a?dRe(e,r,i,a):fRe(e))){t.push(s.i,e.i,l.i),r2(e),e=l,n=l;continue}if(e=l,e===n){if(ZE=!1,e=$d(e),ZE){n=e;continue}if(!o){e=pRe(e,t),n=e,o=!0;continue}mRe(e,t,r,i,a);break}}}function fRe(e){let t=e.prev,r=e,i=e.next,a=t.x,n=r.x,o=i.x,s=t.y,l=r.y,u=i.y,c=Math.min(a,n,o),h=Math.min(s,l,u),f=Math.max(a,n,o),d=Math.max(s,l,u),p=i.next;for(;p!==t;){if(p.x>=c&&p.x<=f&&p.y>=h&&p.y<=d&&(a!==p.x||s!==p.y)&&j4(a,s,n,l,o,u,p.x,p.y)&&Sn(p.prev,p,p.next)>=0)return!1;p=p.next}return!0}function dRe(e,t,r,i){let a=e.prev,n=e,o=e.next,s=a.x,l=n.x,u=o.x,c=a.y,h=n.y,f=o.y,d=Math.min(s,l,u),p=Math.min(c,h,f),m=Math.max(s,l,u),g=Math.max(c,h,f),y=JE(d,p,t,r,i),x=JE(m,g,t,r,i),b=e.prevZ;for(;b&&b.z>=y;){if(b.x>=d&&b.x<=m&&b.y>=p&&b.y<=g&&b!==o&&(s!==b.x||c!==b.y)&&j4(s,c,l,h,u,f,b.x,b.y)&&Sn(b.prev,b,b.next)>=0)return!1;b=b.prevZ}let _=e.nextZ;for(;_&&_.z<=x;){if(_.x>=d&&_.x<=m&&_.y>=p&&_.y<=g&&_!==o&&(s!==_.x||c!==_.y)&&j4(s,c,l,h,u,f,_.x,_.y)&&Sn(_.prev,_,_.next)>=0)return!1;_=_.nextZ}return!0}function pRe(e,t){let r=e,i=!1;do{let a=r.prev,n=r.next.next;One(a,r,r.next,n,!1)&&t2(a,n)&&t2(n,a)&&(t.push(a.i,r.i,n.i),r2(r),r2(r.next),r=e=n,i=!0),r=r.next}while(r!==e);return i?$d(r):r}function mRe(e,t,r,i,a){let n=e;do{let o=n.next.next;for(;o!==n.prev;){if(n.i!==o.i&&DRe(n,o)){let s=Nne(n,o);n=$d(n,n.next),s=$d(s,s.next),YE(n,t,r,i,a),YE(s,t,r,i,a);return}o=o.next}n=n.next}while(n!==e)}function vRe(e,t,r,i){let a=[];for(let n=0,o=t.length;no&&(o=r.x),r.ys&&(s=r.y),c.xo&&(o=c.x),c.ys&&(s=c.y),r=c}while(++l<16&&r!==t);KE[i]=r;let u=i*4;Wa[u]=a,Wa[u+1]=n,Wa[u+2]=o,Wa[u+3]=s}while(r!==t)}function xRe(e,t){let r=e.z*4;t.xWa[r+2]&&(Wa[r+2]=t.x),t.y>Wa[r+3]&&(Wa[r+3]=t.y)}function Qte(e){let t=KE[e];for(;t.prev.next!==t;)t=t.next;return KE[e]=t,t}function ere(e){let t=XE[e];for(;t.prev.next!==t;)t=t.next;return XE[e]=t,t}function bRe(e,t){let r=t,i=e.x,a=e.y,n=-1/0,o;if(e2(e,r))return r;for(let f=0,d=0;fWa[d+3]||Wa[d]>i||Wa[d+2]<=n)continue;let p=Qte(f);r=ere(f);do{if(r.prev.next===r){if(e2(e,r.next))return r.next;if(a<=r.y&&a>=r.next.y&&r.next.y!==r.y){let m=r.x+(a-r.y)*(r.next.x-r.x)/(r.next.y-r.y);if(m<=i&&m>n&&(n=m,o=r.xi||Wa[d+3]c)continue;let p=Qte(f);r=ere(f);do{if(r.prev.next===r&&i>=r.x&&r.x>=s&&i!==r.x&&j4(ai)&&(mo.x||r.x===o.x&&wRe(o,r)))&&(o=r,h=m)}r=r.next}while(r!==p)}return o}function wRe(e,t){return Sn(e.prev,e,t.prev)<0&&Sn(t.next,e,e.next)<0}function ARe(e,t,r,i){let a=e,n=0;do a.z=JE(a.x,a.y,t,r,i),Nl[n++]=a,a=a.next;while(a!==e);TRe(n);let o=null;for(let s=0;s=0&&Nl[a].z>i;)Nl[a+1]=Nl[a],a--;Nl[a+1]=r}return}Id.length>>n&255]++;let o=0;for(let s=0;s<256;s++){let l=wy[s];wy[s]=o,o+=l}for(let s=0;s>>n&255]++;i[u]=t[s],a[u]=l}}function JE(e,t,r,i,a){return e=(e-r)*a|0,t=(t-i)*a|0,e=(e|e<<8)&16711935,e=(e|e<<4)&252645135,e=(e|e<<2)&858993459,e=(e|e<<1)&1431655765,t=(t|t<<8)&16711935,t=(t|t<<4)&252645135,t=(t|t<<2)&858993459,t=(t|t<<1)&1431655765,e|t<<1}function MRe(e){let t=e,r=e;do(t.x=(e-o)*(n-s)&&(e-o)*(i-s)>=(r-o)*(t-s)&&(r-o)*(n-s)>=(a-o)*(i-s)}function DRe(e,t){let r=e2(e,t)&&Sn(e.prev,e,e.next)>0&&Sn(t.prev,t,t.next)>0;return e.next.i!==t.i&&(r||t2(e,t)&&t2(t,e)&&(Sn(e.prev,e,t.prev)!==0||Sn(e,t.prev,t)!==0))&&!SRe(e,t)&&(r||ERe(e,t))}function Sn(e,t,r){return(t.y-e.y)*(r.x-t.x)-(t.x-e.x)*(r.y-t.y)}function e2(e,t){return e.x===t.x&&e.y===t.y}function One(e,t,r,i,a=!0){let n=Sn(e,t,r),o=Sn(e,t,i),s=Sn(r,i,e),l=Sn(r,i,t);return(n>0&&o<0||n<0&&o>0)&&(s>0&&l<0||s<0&&l>0)?!0:a?!!(n===0&&v4(e,r,t)||o===0&&v4(e,i,t)||s===0&&v4(r,e,i)||l===0&&v4(r,t,i)):!1}function v4(e,t,r){return t.x<=Math.max(e.x,r.x)&&t.x>=Math.min(e.x,r.x)&&t.y<=Math.max(e.y,r.y)&&t.y>=Math.min(e.y,r.y)}function SRe(e,t){let r=Math.min(e.x,t.x),i=Math.max(e.x,t.x),a=Math.min(e.y,t.y),n=Math.max(e.y,t.y),o=e;do{let s=o.next;if(o.x>i&&s.x>i||o.xn&&s.y>n||o.y=0&&Sn(e,e.prev,t)>=0:Sn(e,t,e.prev)<0||Sn(e,e.next,t)<0}function ERe(e,t){let r=e,i=!1,a=(e.x+t.x)/2,n=(e.y+t.y)/2;do{let o=r.next;r.y>n!=o.y>n&&a<(o.x-r.x)*(n-r.y)/(o.y-r.y)+r.x&&(i=!i),r=o}while(r!==e);return i}function Nne(e,t){let r=QE(e.i,e.x,e.y),i=QE(t.i,t.x,t.y),a=e.next,n=t.prev;return e.next=t,t.prev=e,r.next=a,a.prev=r,i.next=r,r.prev=i,n.next=i,i.prev=n,i}function tre(e,t,r,i){let a=QE(e,t,r);return i?(a.next=i.next,a.prev=i,i.next.prev=a,i.next=a):(a.prev=a,a.next=a),a}function r2(e){e.next.prev=e.prev,e.prev.next=e.next,e.prevZ&&(e.prevZ.nextZ=e.nextZ),e.nextZ&&(e.nextZ.prevZ=e.prevZ),WE&&xRe(e.prev,e.next)}function QE(e,t,r){return{i:e,x:t,y:r,prev:null,next:null,z:0,prevZ:null,nextZ:null}}function kRe(e,t,r,i){let a=0;for(let n=t,o=r-i;n0?(Math.floor(A/a)+1)*a:(Math.ceil(A/a)-1)*a,k=x>0?(Math.floor(T/a)+1)*a:(Math.ceil(T/a)-1)*a,P=Math.abs(A-S),I=Math.abs(T-k),B=Math.abs(A-d),L=Math.abs(T-p),z=m?P/b:1/0,q=g?I/_:1/0;if((B<=P||!m)&&(L<=I||!g))break;if(z0?(r.push(a),r.push(o),r.push(n)):(r.push(a),r.push(n),r.push(o))}return r}function LRe(e,t,r){if(t.length===0)throw Error("Subdivision vertex ring is empty.");let i=0,a=e[t[0]*2];for(let l=1;l=0?o-1:n-1,u=(s+1)%n,c=e[t[l]*2],h=e[t[l]*2+1],f=e[t[u]*2],d=e[t[u]*2+1],p=e[t[o]*2],m=e[t[o]*2+1],g=e[t[s]*2],y=e[t[s]*2+1],x=!1;if(cf)x=!1;else{let b=y-m,_=-(g-p),A=m((f-p)*b+(d-m)*_)*A&&(x=!0)}if(x){let b=t[l],_=t[o],A=t[s];b!==_&&b!==A&&_!==A&&r.push(A,_,b),o--,o<0&&(o=n-1)}else{let b=t[u],_=t[o],A=t[s];b!==_&&b!==A&&_!==A&&r.push(A,_,b),s++,s>=n&&(s=0)}if(l===u)break}}function Gne(e,t,r,i,a,n,o,s,l){let u=a.length/2,c=o&&s&&l;if(uAa.MAX_VERTEX_ARRAY_LENGTH&&(u=e.createNewSegment(t,r),l=s.count,m=!0,g=!0,y=!0,c=0);let b=Ny(o,i,n,s,f,m,u),_=Ny(o,i,n,s,d,g,u),A=Ny(o,i,n,s,p,y,u);r.emplaceBack(c+b-l,c+_-l,c+A-l),u.primitiveLength++}}function RRe(e,t,r,i,a,n){let o=[];for(let h=0;hAa.MAX_VERTEX_ARRAY_LENGTH&&(u=e.createNewSegment(t,r),l=s.count,m=!0,g=!0,c=0);let x=Ny(o,i,n,s,d,m,u),b=Ny(o,i,n,s,p,g,u);r.emplaceBack(c+x-l,c+b-l),u.primitiveLength++}}function rk(e,t){return e.x===t.x&&(e.x<0||e.x>8192)||e.y===t.y&&(e.y<0||e.y>8192)}function are(e){return e.every(t=>t.x<0)||e.every(t=>t.x>8192)||e.every(t=>t.y<0)||e.every(t=>t.y>8192)}function Zne(e){let t=e.length;if(t<=1)return[e];let r=[],i,a;for(let n=0;nKRe(r,t))}function XRe(e,t){let r=YRe(ct/2,ct/2,t),i=wi.fromLngLat(r).meterInMercatorCoordinateUnits(),a=(1<1&&t[0].x===t[t.length-1].x&&t[0].y===t[t.length-1].y;)t.pop();return t}function QRe(e,t,r,i,a){let n=t.sub(r),o=i.sub(r),s=n.mag(),l=o.mag();if(s<1e-6||l<1e-6){e.push(r.clone());return}n._div(s),o._div(l);let u=n.x*o.x+n.y*o.y;if(Math.abs(u)>Math.cos(5*Math.PI/180)){e.push(r.clone());return}let c=.2,h=Math.min(a,s*c,l*c),f=r.add(n.mult(h)),d=r.add(o.mult(h)),p=Math.sqrt((1+u)/2),m=r.add(n.add(o)._unit()._mult(h/p)),g=f.sub(m).angleWith(d.sub(m)),y=Math.max(2,Math.ceil(Math.abs(g)/(Math.PI/6)-1e-6));for(let x=0;x<=y;x++)e.push(f.rotateAround(x/y*g,m))}function Ay(e,t,r,i,a,n,o,s){e.emplaceBack(t,r,Math.floor(i*tE)*2+o,a*tE*2,n*tE*2,Math.round(s))}function eBe(e,t){for(let r=0;r0?t+2*e:e}function xBe(e){return/[\u0600-\u0604\u0606-\u060B\u060D-\u061A\u061C-\u061E\u0620-\u063F\u0641-\u064A\u0656-\u066F\u0671-\u06DC\u06DE-\u070D\u070F-\u074A\u074D-\u077F\u07C0-\u07FA\u07FD-\u07FF\u0840-\u085B\u085E\u0860-\u086A\u0870-\u0891\u0897-\u08E1\u08E3-\u08FF\u1800\u1801\u1804\u1806-\u1819\u1820-\u1878\u1880-\u18AA\uA840-\uA877\uFB50-\uFD3D\uFD40-\uFDCF\uFDF0-\uFDFF\uFE70-\uFE74\uFE76-\uFEFC]|\uD802[\uDEC0-\uDEE6\uDEEB-\uDEF6\uDF80-\uDF91\uDF99-\uDF9C\uDFA9-\uDFAF]|\uD803[\uDD00-\uDD27\uDD30-\uDD39\uDE60-\uDE7E\uDEC2-\uDEC7\uDED0-\uDED8\uDEFA-\uDEFF\uDF30-\uDF59\uDF70-\uDF89\uDFB0-\uDFCB]|\uD805[\uDE60-\uDE6C]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9C-\uDC9F]|\uD83A[\uDD00-\uDD4B\uDD50-\uDD59\uDD5E\uDD5F]|\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\uDEF0\uDEF1]/gim.test(String.fromCodePoint(e))}function bBe(e){return/[\u0591-\u05C7\u05D0-\u05EA\u05EF-\u05F4\u0600-\u0604\u0606-\u060B\u060D-\u061A\u061C-\u061E\u0620-\u063F\u0641-\u064A\u0656-\u066F\u0671-\u06DC\u06DE-\u070D\u070F-\u074A\u074D-\u07B1\u07C0-\u07FA\u07FD-\u082D\u0830-\u083E\u0840-\u085B\u085E\u0860-\u086A\u0870-\u0891\u0897-\u08E1\u08E3-\u08FF\uFB1D-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFD3D\uFD40-\uFDCF\uFDF0-\uFDFF\uFE70-\uFE74\uFE76-\uFEFC]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC57-\uDC9E\uDCA7-\uDCAF\uDCE0-\uDCF2\uDCF4\uDCF5\uDCFB-\uDD1B\uDD1F-\uDD39\uDD3F-\uDD59\uDD80-\uDDB7\uDDBC-\uDDCF\uDDD2-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE38-\uDE3A\uDE3F-\uDE48\uDE50-\uDE58\uDE60-\uDE9F\uDEC0-\uDEE6\uDEEB-\uDEF6\uDF00-\uDF35\uDF39-\uDF55\uDF58-\uDF72\uDF78-\uDF91\uDF99-\uDF9C\uDFA9-\uDFAF]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDCFA-\uDD27\uDD30-\uDD39\uDD40-\uDD65\uDD69-\uDD85\uDD8E\uDD8F\uDE60-\uDE7E\uDE80-\uDEA9\uDEAB-\uDEAD\uDEB0\uDEB1\uDEC2-\uDEC7\uDED0-\uDED8\uDEFA-\uDF27\uDF30-\uDF59\uDF70-\uDF89\uDFB0-\uDFCB\uDFE0-\uDFF6]|\uD83A[\uDC00-\uDCC4\uDCC7-\uDCD6\uDD00-\uDD4B\uDD50-\uDD59\uDD5E\uDD5F]|\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\uDEF0\uDEF1]/gim.test(String.fromCodePoint(e))}function aoe(e){return/[\u02EA\u02EB\u1100-\u11FF\u2E80-\u2FDF\u3000-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u4DBF\u4E00-\uA48C\uA490-\uA4C6\uA960-\uA97C\uAC00-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFE10-\uFE1F\uFE30-\uFE4F\uFF00-\uFFEF]|\uD81B[\uDFE0-\uDFFF]|[\uD81C-\uD822\uD840-\uD868\uD86A-\uD86D\uD86F-\uD872\uD874-\uD879\uD880-\uD883\uD885-\uD88C][\uDC00-\uDFFF]|\uD823[\uDC00-\uDCD5\uDCFF-\uDD1E\uDD80-\uDDF2]|\uD82B[\uDFF0-\uDFFF]|\uD82C[\uDC00-\uDEFB]|\uD83C[\uDE00-\uDEFF]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEAD\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0\uDFF0-\uDFFF]|\uD87B[\uDC00-\uDE5D]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A\uDF50-\uDFFF]|\uD88D[\uDC00-\uDC79]/gim.test(String.fromCodePoint(e))}function wBe(e){return/[\u02EA\u02EB\u2E80-\u2FDF\u2FF0-\u303F\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FD-\u30FF\u3105-\u312F\u31A0-\u4DBF\u4E00-\uA48C\uA490-\uA4C6\uF900-\uFA6D\uFA70-\uFAD9\uFE10-\uFE1F\uFE30-\uFE4F\uFF00-\uFFEF]|\uD81B[\uDFE0-\uDFFF]|[\uD81C-\uD822\uD840-\uD868\uD86A-\uD86D\uD86F-\uD872\uD874-\uD879\uD880-\uD883\uD885-\uD88C][\uDC00-\uDFFF]|\uD823[\uDC00-\uDCD5\uDCFF-\uDD1E\uDD80-\uDDF2]|\uD82B[\uDFF0-\uDFFF]|\uD82C[\uDC00-\uDEFB]|\uD83C[\uDE00-\uDEFF]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEAD\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0\uDFF0-\uDFFF]|\uD87B[\uDC00-\uDE5D]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A\uDF50-\uDFFF]|\uD88D[\uDC00-\uDC79]/gim.test(String.fromCodePoint(e))}function zw(e){return/[\u02EA\u02EB\u1100-\u11FF\u1401-\u167F\u18B0-\u18FF\u2065\u20DD-\u20E0\u20E2-\u20E4\u2B97\u2BF0-\u2BFF\u2E50\u2E51\u2E80-\u3007\u3012\u3013\u3020-\u302F\u3031-\u30FB\u30FD-\uA4CF\uA960-\uA97F\uAC00-\uD7FF\uF900-\uFAFF\uFE10-\uFE1F\uFE30-\uFE48\uFE50-\uFE57\uFE5F-\uFE62\uFE67-\uFE6F\uFF00-\uFF07\uFF0A-\uFF0C\uFF0E-\uFF19\uFF1F-\uFF3A\uFF3C\uFF3E\uFF40-\uFF5A\uFFE0-\uFFE2\uFFE4-\uFFE7\uFFF0-\uFFF8]|\uD802[\uDD80-\uDD9F]|\uD805[\uDD80-\uDDFF]|\uD806[\uDE00-\uDEBF]|[\uD80C-\uD810\uD81C-\uD822\uD83C\uD83D\uD840-\uD87E\uD880-\uD8BE][\uDC00-\uDFFF]|\uD811[\uDC00-\uDE7F]|\uD81B[\uDFE0-\uDFFF]|\uD823[\uDC00-\uDDFF]|\uD82B[\uDFF0-\uDFFF]|\uD82C[\uDC00-\uDEFF]|\uD833[\uDEC0-\uDFCF]|\uD834[\uDC00-\uDDFF\uDEE0-\uDF7F]|\uD836[\uDC00-\uDEAF]|\uD83E[\uDD00-\uDEFF]|[\uD87F\uD8BF][\uDC00-\uDFFD]/gim.test(String.fromCodePoint(e))}function ABe(e){return/[\xA7\xA9\xAE\xB1\xBC-\xBE\xD7\xF7\u2016\u2020\u2021\u2030\u2031\u203B\u203C\u2042\u2047-\u2049\u2051\u2100-\u218F\u221E\u2234\u2235\u2300-\u2307\u230C-\u231F\u2324-\u2328\u232B\u237D-\u239A\u23BE-\u23CD\u23CF\u23D1-\u23DB\u23E2-\u2422\u2424-\u24FF\u25A0-\u2619\u2620-\u2767\u2776-\u2793\u2B12-\u2B2F\u2B50-\u2B59\u2BB8-\u2BEB\u3000-\u303F\u30A0-\u30FF\uE000-\uF8FF\uFE30-\uFE6F\uFF00-\uFFEF\uFFFC\uFFFD]|[\uDB80-\uDBFF][\uDC00-\uDFFF]/gim.test(String.fromCodePoint(e))}function TBe(e){return/[\r\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0600-\u0605\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DD\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u070F\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0890\u0891\u0897-\u089F\u08CA-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D57\u0D62\u0D63\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E33-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB3-\u0EBC\u0EC8-\u0ECE\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1037\u1039-\u103E\u1056-\u1059\u105E-\u1060\u1071-\u1074\u1082\u1084-\u1086\u108D\u109D\u1100-\u11FF\u135D-\u135F\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u180F\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60\u1A62\u1A65-\u1A7C\u1A7F\u1AB0-\u1ADD\u1AE0-\u1AEB\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA953\uA960-\uA97C\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFF9E\uFF9F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDD69-\uDD6D\uDEAB\uDEAC\uDEFA-\uDEFF\uDF46-\uDF50\uDF82-\uDF85]|\uD804[\uDC00-\uDC02\uDC38-\uDC46\uDC70\uDC73\uDC74\uDC7F-\uDC82\uDCB0-\uDCBA\uDCBD\uDCC2\uDCCD\uDD00-\uDD02\uDD27-\uDD34\uDD45\uDD46\uDD73\uDD80-\uDD82\uDDB3-\uDDC0\uDDC2\uDDC3\uDDC9-\uDDCC\uDDCE\uDDCF\uDE2C-\uDE37\uDE3E\uDE41\uDEDF-\uDEEA\uDF00-\uDF03\uDF3B\uDF3C\uDF3E-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF57\uDF62\uDF63\uDF66-\uDF6C\uDF70-\uDF74\uDFB8-\uDFC0\uDFC2\uDFC5\uDFC7-\uDFCA\uDFCC-\uDFD2\uDFE1\uDFE2]|\uD805[\uDC35-\uDC46\uDC5E\uDCB0-\uDCC3\uDDAF-\uDDB5\uDDB8-\uDDC0\uDDDC\uDDDD\uDE30-\uDE40\uDEAB-\uDEB7\uDF1D-\uDF1F\uDF22-\uDF2B]|\uD806[\uDC2C-\uDC3A\uDD30-\uDD35\uDD37\uDD38\uDD3B-\uDD43\uDDD1-\uDDD7\uDDDA-\uDDE0\uDDE4\uDE01-\uDE0A\uDE33-\uDE39\uDE3B-\uDE3E\uDE47\uDE51-\uDE5B\uDE84-\uDE99\uDF60-\uDF67]|\uD807[\uDC2F-\uDC36\uDC38-\uDC3F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD8A-\uDD8E\uDD90\uDD91\uDD93-\uDD97\uDEF3-\uDEF6\uDF00-\uDF03\uDF34-\uDF3A\uDF3E-\uDF42\uDF5A]|\uD80D[\uDC40\uDC47-\uDC55]|\uD818[\uDD1E-\uDD2F]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDD63\uDD67-\uDD6A\uDF4F\uDF51-\uDF87\uDF8F-\uDF92\uDFE4\uDFF0\uDFF1]|\uD82F[\uDC9D\uDC9E]|\uD833[\uDF00-\uDF2D\uDF30-\uDF46]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDC8F\uDD30-\uDD36\uDEAE\uDEEC-\uDEEF]|\uD839[\uDCEC-\uDCEF\uDDEE\uDDEF\uDEE3\uDEE6\uDEEE\uDEEF\uDEF5]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uD83C[\uDDE6-\uDDFF\uDFFB-\uDFFF]|\uDB40[\uDC20-\uDC7F\uDD00-\uDDEF]/.test(e)}function pre(e){return/[\u0E01-\u0E3A\u0E40-\u0E4E\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECE\u0EDC-\u0EDF\u0F00-\u0F47\u0F49-\u0F6C\u0F71-\u0F97\u0F99-\u0FBC\u0FBE-\u0FCC\u0FCE-\u0FD4\u0FD9\u0FDA\u1000-\u103F\u1050-\u108F\u109A-\u109F\u1780-\u17D3\u17D7\u17DC\u17DD\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19DE\u19DF\u1A20-\u1A5E\u1A60-\u1A7C\u1AA0-\u1AAD\u1B00-\u1B4C\u1B4E-\u1B7F\uA980-\uA9CD\uA9D0-\uA9D9\uA9DE-\uA9EF\uA9FA-\uA9FE\uAA60-\uAAC2\uAADB-\uAADF]|\uD805[\uDF00-\uDF1A\uDF1D-\uDF2B\uDF3A\uDF3B\uDF3F-\uDF46]/gim.test(String.fromCodePoint(e))}function MBe(e,t){return/(?:[\u1039\u17D2\u1A60\u1BAB\u200D\uAAF6]|\uD802\uDE3F|\uD804[\uDD33\uDFD0]|\uD806[\uDD3E\uDE47\uDE99]|\uD807[\uDD45\uDD97\uDF42])$/.test(e)||new RegExp("^\\p{gc=Mc}","u").test(t)}function CBe(e,t,r){let i=0;for(let a of e.split(";")){let[n,o]=a.split(",").map(l=>parseInt(l,36)),s=i+n;for(let l=s;l{let r=t.codePointAt(0);return{codePoint:r,type:FBe(r),form:null}})}function RBe(e){let t=e.filter(r=>r.type!=="T");for(let r=0;r0&&PBe(t[r-1].type),n=r+1String.fromCodePoint(OBe(r))).join("")}function VBe(e,t,r){var a;let i=t.layout.get("text-transform").evaluate(r,{});return i==="uppercase"?e=e.toLocaleUpperCase():i==="lowercase"&&(e=e.toLocaleLowerCase()),((a=$4.applyArabicShaping)!=null?a:NBe)(e)}function UBe(e,t,r){for(let i of e.sections)i.text=VBe(i.text,t,r);return e}function rE(e,t,r){let i=r?t.last.points:t.first.points,a=r?i[i.length-1]:i[0];return`${e}:${a.x}:${a.y}`}function GBe(e){let t=e.first.points,r=t.length;for(let n=e.first.next;n;n=n.next)r+=n.points.length-1;let i=Array(r);for(let n=0;n=0&&MBe(t[i],r)?t[i]+=r:t.push(r)}return t}function $Be(e){let t=new Set;if(ooe){Dy!=null||(Dy=new Intl.Segmenter(void 0,{granularity:"word"}));for(let{index:i}of Dy.segment(e))t.add(i);return t}let r=0;for(let i of e.split(new RegExp("\\b|(?=\\p{Ideo})","u")))t.add(r),r+=i.length;return t}function A2(e){let t=e.codePointAt(0);return e.length>(t>65535?2:1)}function mC(e){return/\s/u.test(String.fromCodePoint(e))}function ok(e){for(let t of e)if(zw(t.codePointAt(0)))return!0;return!1}function HBe(e){for(let t of e)if(!ZBe(t.codePointAt(0)))return!1;return!0}function ZBe(e){return!xBe(e)}function yre(e){return!(zw(e)||ABe(e))}function soe(e){return new RegExp("\\p{sc=Arab}","u").test(String.fromCodePoint(e))}function loe(e){return bBe(e)}function uoe(e){for(let t of e)if(loe(t.codePointAt(0)))return!0;return!1}function YBe(e){let t="",r={premature:!0,value:void 0},i=e[Symbol.iterator](),a=i.next(),n=e[Symbol.iterator]();n.next();let o=n.next();for(;!a.done;)(o.done||!yre(o.value.codePointAt(0))||nm[o.value])&&(r.premature||!yre(r.value.codePointAt(0))||nm[r.value])&&nm[a.value]?t+=nm[a.value]:t+=a.value,r={value:a.value,premature:!1},a=i.next(),o=n.next();return t}function _re(e,t,r,i,a,n){var o;if("fontStack"in t){let s=(o=r[t.fontStack])==null?void 0:o.default,l=s==null?void 0:s[e];if(l)return l.metrics.advance*t.scale+a;let u=0;for(let c of e){let h=s==null?void 0:s[c];h&&(u+=h.metrics.advance*t.scale+a)}return u}{let s=i[t.imageName];return s?s.displaySize[0]*t.scale*24/n+a:0}}function xre(e,t,r,i){let a=(e-t)**2;return i?e1,1e>2,u>2,2wt>1,1>1,1ge>1,1wp>1,1j>1,f>1,hm>1,1>1,u>1,u6>1,1>1,+5,28>1,w>1,1>1,+3,b8>1,1>1,+3,1>3,-1>-1,3>1,1>1,+2,1s>1,1>1,x>1,th>1,1>1,+2,db>1,1>1,+3,3>1,1>1,+2,14qm>1,1>1,+1,4q>1,1e>2,u>2,2>1,+1",canonical:"6f1>-6dx,6dy>-6dx,6ec>-6ed,6ee>-6ed,6ww>2jj,-2ji>2jj,14r4>-1e7l,1e7m>-1e7l,1e7m>-1e5c,1e5d>-1e5b,1e5c>-14qx,14qy>-14qx,14vn>-1ecg,1ech>-1ecg,1edu>-1ecg,1eci>-1ecg,1eda>-1ecg,1eci>-1ecg,1eci>-168q,168r>-168q,168s>-14ye,14yf>-14ye"};function p(Me,Pe){var Fe=0,se=new Map,Ue=Pe&&new Map,Ne;return Me.split(",").forEach(function $e(Ae){if(Ae.indexOf("+")!==-1)for(var He=+Ae;He--;)$e(Ne);else{Ne=Ae;var it=Ae.split(">"),ie=it[0],Se=it[1];ie=String.fromCodePoint(Fe+=parseInt(ie,36)),Se=String.fromCodePoint(Fe+=parseInt(Se,36)),se.set(ie,Se),Pe&&Ue.set(Se,ie)}}),{map:se,reverseMap:Ue}}var m,g,y;function x(){if(!m){var Me=p(d.pairs,!0),Pe=Me.map,Fe=Me.reverseMap;m=Pe,g=Fe,y=p(d.canonical,!1).map}}function b(Me){return x(),m.get(Me)||null}function _(Me){return x(),g.get(Me)||null}function A(Me){return x(),y.get(Me)||null}var T=r.L,M=r.R,S=r.EN,k=r.ES,P=r.ET,I=r.AN,B=r.CS,L=r.B,z=r.S,q=r.ON,V=r.BN,j=r.NSM,$=r.AL,H=r.LRO,Z=r.RLO,Y=r.LRE,oe=r.RLE,pe=r.PDF,De=r.LRI,ye=r.RLI,de=r.FSI,Ce=r.PDI;function J(Me,Pe){for(var Fe=125,se=new Uint32Array(Me.length),Ue=0;Ue0)nt--;else if(pt>0){for(Qe=0;!xe[xe.length-1]._isolate;)xe.pop();var Ye=xe[xe.length-1]._isolInitIndex;Ye!=null&&(He.set(Ye,st),He.set(st,Ye)),xe.pop(),pt--}je=xe[xe.length-1],Ae[st]=je._level,je._override&&$e(st,je._override)}else yt&pe?(nt===0&&(Qe>0?Qe--:!je._isolate&&xe.length>1&&(xe.pop(),je=xe[xe.length-1])),Ae[st]=je._level):yt&L&&(Ae[st]=ie.level);else Ae[st]=je._level,je._override&&yt!==V&&$e(st,je._override)}for(var vt=[],Dt=null,Ft=ie.start;Ft<=ie.end;Ft++){var zt=se[Ft];if(!(zt&s)){var ce=Ae[Ft],ke=zt&a,Je=zt===Ce;Dt&&ce===Dt._level?(Dt._end=Ft,Dt._endsWithIsolInit=ke):vt.push(Dt={_start:Ft,_end:Ft,_level:ce,_startsWithPDI:Je,_endsWithIsolInit:ke})}}for(var at=[],Ar=0;Ar=0;ka--)if(!(se[ka]&s)){oa=Ae[ka];break}var Wi=Cr[Cr.length-1],va=Ae[Wi],At=ie.level;if(!(se[Wi]&a)){for(var $r=Wi+1;$r<=ie.end;$r++)if(!(se[$r]&s)){At=Ae[$r];break}}at.push({_seqIndices:Cr,_sosType:Math.max(oa,zi)%2?M:T,_eosType:Math.max(At,va)%2?M:T})}}for(var Er=0;Er=0;pn--)if(!(se[Ut[pn]]&s)){ro=se[Ut[pn]];break}$e(to,ro&(a|Ce)?q:ro)}}if(Ne.get(S))for(var Ui=0;Ui=-1;sa--){var Es=sa===-1?Fi:se[Ut[sa]];if(Es&n){Es===$&&$e(Jl,I);break}}}if(Ne.get($))for(var rs=0;rs=0&&(_o=se[Ut[ol]],_o&s);ol--);for(var Ql=Uo+1;Ql=0&&se[Ut[sl]]&(P|s);sl--)$e(Ut[sl],S);for(On++;On=0&&se[Ut[Jt]]&s;Jt--)$e(Ut[Jt],q);for(var Zr=Cs+1;Zr=0;jo--){var ll=Fs[jo].char;if(ll===Uu||ll===_(A(as))||b(A(ll))===as){is.push([Fs[jo].seqIndex,Go]),Fs.length=jo;break}}}is.sort(function(ga,Ho){return ga[0]-Ho[0]});for(var eu=0;eu=0;$o--){var zh=Ut[$o];if(se[zh]&mn){var zc=se[zh]&Hi?M:T;bo=zc===Hr?Hr:zc;break}}}if(bo){if(se[Ut[Lh]]=se[Ut[tu]]=bo,bo!==Hr){for(var ns=Lh+1;ns=0;Hu--)if(se[Ut[Hu]]&s)h0=Hu;else{Rh=se[Ut[Hu]]&Hi?M:T;break}for(var f0=Kr,Rc=Is+1;Rc=0&&h(Me[os])&l;os--)Ae[os]=ie.level}}return{levels:Ae,paragraphs:it};function Ls(ga,Ho){for(var Cn=ga;Cn=Ae&&h(Me[ie])&l;ie--)it[ie]=$e.level;for(var Se=$e.level,ot=1/0,bt=0;btSe&&(Se=Tt),Tt=ot;ve--)for(var xe=0;xe=ve){for(var je=xe;xe+1=ve;)xe++;xe>je&&Ne.push([je+Ae,xe+Ae])}}}),Ne}function Re(Me,Pe,Fe,se){var Ue=Ve(Me,Pe,Fe,se),Ne=[].concat(Me);return Ue.forEach(function($e,Ae){Ne[Ae]=(Pe.levels[$e]&1?re(Me[$e]):null)||Me[$e]}),Ne.join("")}function Ve(Me,Pe,Fe,se){for(var Ue=ge(Me,Pe,Fe,se),Ne=[],$e=0;$e=0;i--){let a=gC.getBidiCharTypeName(e[i].text[0]);tqe.has(a)?(e[i].level=t,r=!0):r&&eqe.has(a)?e[i].level=t:r=!1}}function aqe(e,t){let r=t,i=1/0;for(let{level:n}of e)n>r&&(r=n),(n|1)=i;n--)for(let o=0;o=n;)s++;for(let l=o,u=s;lt>=a.start&&t<=a.end))==null?void 0:r.level)!=null?i:0}function sqe(e,t,r,i,a){let n=rqe(e,t,i,a);iqe(n,r);let o="",s=[];for(let l of aqe(n,r)){if(QBe.test(l.text))continue;let u=nqe(l);o+=u,s.push(...Array(u.length).fill(l.index))}return{text:o,sourceIndices:s}}function lqe(e,t){let r=t.filter(n=>n>0&&nn-o),a=[];for(let n=0;n+1a.start))).map(([a,n])=>sqe(e,r,oqe(i,a),a,n))}function uqe(e,t){return hoe(e,t).map(r=>r.text)}function cqe(e,t,r){return hoe(e,r).map(i=>[i.text,i.sourceIndices.map(a=>{var n;return(n=t[a])!=null?n:0})])}function hqe(e,t,r){let i=r.buf,a,n;if(n=i[r.pos++],a=(n&112)>>4,n<128||(n=i[r.pos++],a|=(n&127)<<3,n<128)||(n=i[r.pos++],a|=(n&127)<<10,n<128)||(n=i[r.pos++],a|=(n&127)<<17,n<128)||(n=i[r.pos++],a|=(n&127)<<24,n<128)||(n=i[r.pos++],a|=(n&1)<<31,n<128))return fqe(e,a,t);throw Error("Expected varint not more than 10 bytes")}function fqe(e,t,r){return r?t*4294967296+(e>>>0):(t>>>0)*4294967296+(e>>>0)}function dqe(e,t,r){let i="",a=t;for(;a239?4:n>223?3:n>191?2:1;if(a+s>r)break;let l,u,c;s===1?n<128&&(o=n):s===2?(l=e[a+1],(l&192)==128&&(o=(n&31)<<6|l&63,o<=127&&(o=null))):s===3?(l=e[a+1],u=e[a+2],(l&192)==128&&(u&192)==128&&(o=(n&15)<<12|(l&63)<<6|u&63,(o<=2047||o>=55296&&o<=57343)&&(o=null))):s===4&&(l=e[a+1],u=e[a+2],c=e[a+3],(l&192)==128&&(u&192)==128&&(c&192)==128&&(o=(n&15)<<18|(l&63)<<12|(u&63)<<6|c&63,(o<=65535||o>=1114112)&&(o=null))),o===null?(o=65533,s=1):o>65535&&(o-=65536,i+=String.fromCharCode(o>>>10&1023|55296),o=56320|o&1023),i+=String.fromCharCode(o),a+=s}return i}function pqe(e,t,r){e===1&&r.readMessage(mqe,t)}function mqe(e,t,r){if(e===3){let{id:i,bitmap:a,width:n,height:o,left:s,top:l,advance:u}=r.readMessage(vqe,{});t.push({id:i,bitmap:new Cw({width:n+6,height:o+6},a),metrics:{width:n,height:o,left:s,top:l,advance:u}})}}function vqe(e,t,r){e===1?t.id=r.readVarint():e===2?t.bitmap=r.readBytes():e===3?t.width=r.readVarint():e===4?t.height=r.readVarint():e===5?t.left=r.readSVarint():e===6?t.top=r.readSVarint():e===7&&(t.advance=r.readVarint())}function doe(e){return new foe(e).readFields(pqe,[])}function T2(e){return typeof(e==null?void 0:e.renderWithWebGL)=="function"}function poe(e){let{userImage:t}=e;return!(t!=null&&t.render)||!t.render()?!1:(T2(t.data)||e.data.replace(new Uint8Array(t.data.buffer)),!0)}function yC(e){let t=0,r=0;for(let o of e)t+=o.w*o.h,r=Math.max(r,o.w);e.sort((o,s)=>s.h-o.h);let i=[{x:0,y:0,w:Math.max(Math.ceil(Math.sqrt(t/.95)),r),h:1/0}],a=0,n=0;for(let o of e)for(let s=i.length-1;s>=0;s--){let l=i[s];if(!(o.w>l.w||o.h>l.h)){if(o.x=l.x,o.y=l.y,n=Math.max(n,o.y+o.h),a=Math.max(a,o.x+o.w),o.w===l.w&&o.h===l.h){let u=i.pop();u&&s=r;n--)t.push(n);r=i+1}else{for(let n=r;ne.toCodeUnitIndex(n)),i=$4.isParsed()?$4:null;if(e.sections.length===1)return i?i.processBidirectionalText(e.toString(),r).map(n=>Mre(n,e.sections,[...n].map(()=>0))):uqe(e.toString(),r).map(n=>uk([...n],e.sections,[...n].map(()=>0)));let a=bqe(e);return i?i.processStyledBidirectionalText(e.text,a,r).map(([n,o])=>Mre(n,e.sections,o)):cqe(e.text,a,r).map(([n,o])=>{let s=[...n];return uk(s,e.sections,voe(s).map(l=>{var u;return(u=o[l])!=null?u:0}))})}function uk(e,t,r){var n;let i=new vC(e.join(""),t,[]),a=0;for(let o of i.graphemes())i.sectionIndex.push((n=r[a])!=null?n:0),a+=[...o].length;return i}function voe(e){let t=[],r=0;for(let i of e)t.push(r),r+=i.length;return t}function Mre(e,t,r){let i=[...e],a=voe(i),n=xqe(i);return uk(n.map(o=>i[o]),t,n.map(o=>{var s;return(s=r[a[o]])!=null?s:0}))}function y4(e,t,r,i,a,n,o,s,l,u,c,h,f,d,p){let m=vC.fromFeature(e,a);h===2&&m.verticalizePunctuation();let g=m.determineLineBreaks(u,n,t,i,d),y=uoe(m.text)?wqe(m,g):_qe(m,g),x=[],b={positionedLines:x,text:m.toString(),top:c[1],bottom:c[1],left:c[0],right:c[0],writingMode:h,iconsInText:!1,verticalizable:!1};return Fqe(b,t,r,i,y,o,s,l,h,u,f,p),!yqe(x)&&b}function M2(e){let t=.5,r=.5;switch(e){case"right":case"top-right":case"bottom-right":t=1;break;case"left":case"top-left":case"bottom-left":t=0}switch(e){case"bottom":case"bottom-right":case"bottom-left":r=1;break;case"top":case"top-right":case"top-left":r=0}return{horizontalAlign:t,verticalAlign:r}}function Aqe(e,t,r){let i=t.getMaxScale()*24,{maxImageWidth:a,maxImageHeight:n}=t.getMaxImageSize(e),o=Math.max(i,n*r);return{verticalLineContentWidth:Math.max(i,a*r),horizontalLineContentHeight:o}}function goe(e){switch(e){case"top":return 0;case"center":return .5;default:return 1}}function Tqe(e,t,r,i){var n,o;if(e!=null&&e.rect)return e;let a=(o=(n=t[r.fontStack])==null?void 0:n.default)==null?void 0:o[i];return a?{rect:null,metrics:a.metrics}:null}function Mqe(e,t,r){return!(e===1||!t&&!zw(r)||t&&(mC(r)||soe(r)))}function k4(e){return new RegExp("\\p{Nd}","u").test(String.fromCodePoint(e))}function yoe(e){return new RegExp("\\p{Lu}","u").test(String.fromCodePoint(e))}function Dqe(e){return/[\p{P}\p{S}]/u.test(String.fromCodePoint(e))}function Sqe(e){let t=e.some(k4)&&e.every(i=>k4(i)||Dqe(i)),r=e.length<=3&&e.every(i=>yoe(i)||k4(i));return t||r}function Eqe(e){return(k4(e)||yoe(e))&&!soe(e)}function kqe(e,t){let r=!1;for(let i=0;in.codePointAt(0)),i=r.map(zw),a=n=>!i[n]&&!mC(r[n])&&!("imageName"in e.getSection(n));for(let n=0;nu){let f=Math.ceil(i/u);r*=f/a,a=f}return{x1:t,y1:r,x2:t+i,y2:r+a}}function Dre(e,t,r,i,a,n){let o=e.image,s;if(o.content){let g=o.content,y=o.pixelRatio||1;s=[g[0]/y,g[1]/y,o.displaySize[0]-g[2]/y,o.displaySize[1]-g[3]/y]}let l=t.left*n,u=t.right*n,c,h,f,d;r==="width"||r==="both"?(d=a[0]+l-i[3],h=a[0]+u+i[1]):(d=a[0]+(l+u-o.displaySize[0])/2,h=d+o.displaySize[0]);let p=t.top*n,m=t.bottom*n;return r==="height"||r==="both"?(c=a[1]+p-i[0],f=a[1]+m+i[2]):(c=a[1]+(p+m-o.displaySize[1])/2,f=c+o.displaySize[1]),{image:o,top:c,right:h,bottom:f,left:d,collisionPadding:s}}function Ere(e,t){let{expression:r}=t;if(r.kind==="constant")return{kind:"constant",layoutSize:r.evaluate(new Di(e+1))};if(r.kind==="source")return{kind:"source"};if(r.kind==="composite"){let{minZoom:i,maxZoom:a}=Bqe(r.zoomStops,e);return{kind:"composite",minZoom:i,maxZoom:a,interpolationType:r.interpolationType}}{let i=qqe(r),a=r.evaluate(new Di(e+1));return{kind:"camera",zoomStops:r.zoomStops,sizes:i,layoutSize:a,interpolationType:r.interpolationType}}}function Bqe(e,t){let r=0;for(;re.evaluate(new Di(t===-1/0?e.zoomStops[1]-1:t)))}function Bw(e,{uSize:t,uSizeT:r},{lowerSize:i,upperSize:a}){return e.kind==="source"?i/128:e.kind==="composite"?wa.number(i/128,a/128,r):t}function D2(e,t){let r=0,i=0;return e.kind==="constant"?i=e.layoutSize:e.kind==="camera"?i=Oqe(e,t):e.kind==="composite"&&(r=Nqe(e,t)),{uSizeT:r,uSize:i}}function Oqe({zoomStops:e,sizes:t,layoutSize:r,interpolationType:i},a){let n=e.length-1;for(;n>0&&e[n]>a;)n--;let o=Math.min(n+1,e.length-1),s=i?Tr(Gl.interpolationFactor(i,a,e[n],e[o]),0,1):0;return Math.min(wa.number(t[n],t[o],s),r)}function Nqe({interpolationType:e,minZoom:t,maxZoom:r},i){return e?Tr(Gl.interpolationFactor(e,i,t,r),0,1):0}function boe(e,t,r,i,a){if(t.segment===void 0||r===0)return!0;let n=t,o=t.segment+1,s=0;for(;s>-r/2;){if(o--,o<0)return!1;s-=e[o].dist(n),n=e[o]}s+=e[o].dist(e[o+1]),o++;let l=[],u=0;for(;si;)u-=l.shift().angleDelta;if(u>a)return!1;o++,s+=h.dist(f)}return!0}function woe(e){let t=0;for(let r=0;ru){let p=(u-l)/d,m=new hm(wa.number(h.x,f.x,p),wa.number(h.y,f.y,p),f.angleTo(h),c);return m._round(),!o||boe(e,m,s,o,t)?m:void 0}l+=d}}function Uqe(e,t,r,i,a,n,o,s,l){let u=Aoe(i,n,o),c=Toe(i,a),h=c*o,f=e[0].x===0||e[0].x===l||e[0].y===0||e[0].y===l;t-h=0&&_=0&&A=0&&f+u<=c){let T=new hm(_,A,x,p);T._round(),(!i||boe(e,T,n,i,a))&&d.push(T)}}h+=y}return!s&&!d.length&&!o&&(d=Moe(e,h/2,r,i,a,n,o,!0,l)),d}function _C(e,t,r,i,a){let n=[];for(let o of e){let s;for(let l=0;l=i&&c.x>=i)&&(u.x>=i?u=new qe(i,u.y+(c.y-u.y)*((i-u.x)/(c.x-u.x)))._round():c.x>=i&&(c=new qe(i,u.y+(c.y-u.y)*((i-u.x)/(c.x-u.x)))._round()),!(u.y>=a&&c.y>=a)&&(u.y>=a?u=new qe(u.x+(c.x-u.x)*((a-u.y)/(c.y-u.y)),a)._round():c.y>=a&&(c=new qe(u.x+(c.x-u.x)*((a-u.y)/(c.y-u.y)),a)._round()),(!s||!u.equals(s[s.length-1]))&&(s=[u],n.push(s)),s.push(c)))))}}return n}function kre(e,t,r,i){let a=[],n=e.image,o=n.pixelRatio,s=n.paddedRect.w-2,l=n.paddedRect.h-2,u={x1:e.left,y1:e.top,x2:e.right,y2:e.bottom},c=n.stretchX||[[0,s]],h=n.stretchY||[[0,l]],f=(z,q)=>z+q[1]-q[0],d=c.reduce(f,0),p=h.reduce(f,0),m=s-d,g=l-p,y=0,x=d,b=0,_=p,A=0,T=m,M=0,S=g;if(n.content&&i){let z=n.content,q=z[2]-z[0],V=z[3]-z[1];(n.textFitWidth||n.textFitHeight)&&(u=_oe(e)),y=_4(c,0,z[0]),b=_4(h,0,z[1]),x=_4(c,z[0],z[2]),_=_4(h,z[1],z[3]),A=z[0]-y,M=z[1]-b,T=q-x,S=V-_}let k=u.x1,P=u.y1,I=u.x2-k,B=u.y2-P,L=(z,q,V,j)=>{let $=x4(z.stretch-y,x,I,k),H=b4(z.fixed-A,T,z.stretch,d),Z=x4(q.stretch-b,_,B,P),Y=b4(q.fixed-M,S,q.stretch,p),oe=x4(V.stretch-y,x,I,k),pe=b4(V.fixed-A,T,V.stretch,d),De=x4(j.stretch-b,_,B,P),ye=b4(j.fixed-M,S,j.stretch,p),de=new qe($,Z),Ce=new qe(oe,Z),J=new qe(oe,De),ue=new qe($,De),me=new qe(H/o,Y/o),te=new qe(pe/o,ye/o),re=t*Math.PI/180;if(re){let Me=Math.sin(re),Pe=Math.cos(re),Fe=[Pe,-Me,Me,Pe];de._matMult(Fe),Ce._matMult(Fe),ue._matMult(Fe),J._matMult(Fe)}let fe=z.stretch+z.fixed,ge=V.stretch+V.fixed,Re=q.stretch+q.fixed,Ve=j.stretch+j.fixed;return{tl:de,tr:Ce,bl:ue,br:J,tex:{x:n.paddedRect.x+1+fe,y:n.paddedRect.y+1+Re,w:ge-fe,h:Ve-Re},writingMode:void 0,glyphOffset:[0,0],sectionIndex:0,pixelOffsetTL:me,pixelOffsetBR:te,minFontScaleX:T/o/I,minFontScaleY:S/o/B,isSDF:r}};if(!i||!n.stretchX&&!n.stretchY)a.push(L({fixed:0,stretch:-1},{fixed:0,stretch:-1},{fixed:0,stretch:s+1},{fixed:0,stretch:l+1}));else{let z=Cre(c,m,d),q=Cre(h,g,p);for(let V=0;Vh.d||!h.d)&&(h=f),!(f.max-h.d<=t)&&(a=f.h/2,n.push(new im(f.p.x-a,f.p.y-a,a,e)),n.push(new im(f.p.x+a,f.p.y-a,a,e)),n.push(new im(f.p.x-a,f.p.y+a,a,e)),n.push(new im(f.p.x+a,f.p.y+a,a,e)))}return c.d>0&&h.d-c.d<=t?c.p:h.p}function Hqe(e,t){return t.max-e.max}function Zqe(e,t){let r=!1,i=1/0;for(let a of t)for(let n=0,o=a.length,s=o-1;ne.y!=u.y>e.y&&e.x<(u.x-l.x)*(e.y-l.y)/(u.y-l.y)+l.x&&(r=!r),i=Math.min(i,Dne(e,l,u))}return(r?1:-1)*Math.sqrt(i)}function Yqe(e){let t=0,r=0,i=0,a=e[0];for(let n=0,o=a.length,s=o-1;nf*24);c.startsWith("top")?h[1]-=7:c.startsWith("bottom")&&(h[1]+=7),l[u+1]=h}return new Ec(l)}let n=i.get("text-variable-anchor");if(n){let s;s=e._unevaluatedLayout.getValue("text-radial-offset")===void 0?i.get("text-offset").evaluate(t,{},r).map(u=>u*24):[i.get("text-radial-offset").evaluate(t,{},r)*24,xC];let l=[];for(let u of n)l.push(u,Doe(u,s));return new Ec(l)}return null}function Wqe(e){var c,h;e.bucket.createArrays();let t=512*e.bucket.overscaling;e.bucket.tilePixelRatio=ct/t,e.bucket.compareText={},e.bucket.iconsNeedLinear=!1;let r=e.bucket.layers[0],i=r.layout,a=r._unevaluatedLayout._values,n={layoutIconSize:a["icon-size"].possiblyEvaluate(new Di(e.bucket.zoom+1),e.canonical),layoutTextSize:a["text-size"].possiblyEvaluate(new Di(e.bucket.zoom+1),e.canonical),textMaxSize:a["text-size"].possiblyEvaluate(new Di(18))};if(e.bucket.textSizeData.kind==="composite"){let{minZoom:f,maxZoom:d}=e.bucket.textSizeData;n.compositeTextSizes=[a["text-size"].possiblyEvaluate(new Di(f),e.canonical),a["text-size"].possiblyEvaluate(new Di(d),e.canonical)]}if(e.bucket.iconSizeData.kind==="composite"){let{minZoom:f,maxZoom:d}=e.bucket.iconSizeData;n.compositeIconSizes=[a["icon-size"].possiblyEvaluate(new Di(f),e.canonical),a["icon-size"].possiblyEvaluate(new Di(d),e.canonical)]}let o=i.get("text-line-height")*24,s=i.get("text-rotation-alignment")!=="viewport"&&i.get("symbol-placement")!=="point",l=i.get("text-keep-upright"),u=i.get("text-size");for(let f of e.bucket.features){let d=i.get("text-font").evaluate(f,{},e.canonical).join(","),p=u.evaluate(f,{},e.canonical),m=n.layoutTextSize.evaluate(f,{},e.canonical),g=n.layoutIconSize.evaluate(f,{},e.canonical),y={horizontal:{},vertical:void 0},x=f.text,b=[0,0];if(x){let M=x.toString(),S=i.get("text-letter-spacing").evaluate(f,{},e.canonical)*24,k=HBe(M)?S:0,P=i.get("text-anchor").evaluate(f,{},e.canonical),I=Soe(r,f,e.canonical);if(!I){let q=i.get("text-radial-offset").evaluate(f,{},e.canonical);b=q?Doe(P,[q*24,xC]):i.get("text-offset").evaluate(f,{},e.canonical).map(V=>V*24)}let B=s?"center":i.get("text-justify").evaluate(f,{},e.canonical),L=i.get("symbol-placement")==="point"?i.get("text-max-width").evaluate(f,{},e.canonical)*24:1/0,z=()=>{e.bucket.allowVerticalPlacement&&ok(M)&&(y.vertical=y4(x,e.glyphMap,e.glyphPositions,e.imagePositions,d,L,o,P,"left",k,b,2,!0,m,p))};if(!s&&I){let q=new Set;if(B==="auto")for(let j=0;j{$.x<0||$.x>=8192||$.y<0||$.y>=8192||Jqe(e,$,j,r,i,a,z,e.layers[0],e.collisionBoxArray,t.index,t.sourceLayerIndex,e.index,x,[T,T,T,T],k,l,_,M,P,m,t,n,u,c,o,f)};if(I==="line")for(let j of _C(t.geometry,0,0,ct,ct)){let $=Bd(j,q),H=Uqe($,A,S,r.vertical||g,i,24,b,e.overscaling,ct);for(let Z of H){let Y=g;(!Y||!Qqe(e,Y.text,B,Z))&&V($,Z)}}else if(I==="line-center"){for(let j of t.geometry)if(j.length>1){let $=Bd(j,q),H=Vqe($,S,r.vertical||g,i,24,b);H&&V($,H)}}else if(t.type==="Polygon")for(let j of mw(t.geometry,0)){let $=$qe(j,16);V(Bd(j[0],q,!0),new hm($.x,$.y,0))}else if(t.type==="LineString")for(let j of t.geometry){let $=Bd(j,q);V($,new hm($[0].x,$[0].y,0))}else if(t.type==="Point")for(let j of t.geometry)for(let $ of j)V([$],new hm($.x,$.y,0))}function Kqe(e,t){let r=e.length,i=t==null?void 0:t.values;if((i==null?void 0:i.length)>0)for(let a=0;a32640&&Xr(`${e.layerIds[0]}: Value for "text-size" is >= 255. Reduce your "text-size".`)):y.kind==="composite"&&(x=[128*p.compositeTextSizes[0].evaluate(o,{},m),128*p.compositeTextSizes[1].evaluate(o,{},m)],(x[0]>32640||x[1]>32640)&&Xr(`${e.layerIds[0]}: Value for "text-size" is >= 255. Reduce your "text-size".`)),e.addSymbols(e.text,g,x,s,n,o,c,t,u.lineStartIndex,u.lineLength,d,m,l);for(let b of h)f[b]=e.text.placedSymbolArray.length-1;return g.length*4}function Eoe(e){for(let t in e)return e[t];return null}function Jqe(e,t,r,i,a,n,o,s,l,u,c,h,f,d,p,m,g,y,x,b,_,A,T,M,S,k){let P=e.addToLineVertexArray(t,r),I=s.layout.get("symbol-height-offset").evaluate(_,{},M);I>e.maxHeightOffset&&(e.maxHeightOffset=I);let B,L,z,q,V=0,j=0,$=0,H=0,Z=-1,Y=-1,oe={},pe=(0,V4.default)("");if(e.allowVerticalPlacement&&i.vertical){let Fe=s.layout.get("text-rotate").evaluate(_,{},M)+90,se=i.vertical;z=new w4(l,t,u,c,h,se,f,d,p,Fe),o&&(q=new w4(l,t,u,c,h,o,g,y,p,Fe))}if(a){let Fe=s.layout.get("icon-rotate").evaluate(_,{}),se=s.layout.get("icon-text-fit")!=="none",Ue=kre(a,Fe,T,se),Ne=o?kre(o,Fe,T,se):void 0;L=new w4(l,t,u,c,h,a,g,y,!1,Fe),V=Ue.length*4;let $e=e.iconSizeData,Ae=null;$e.kind==="source"?(Ae=[128*s.layout.get("icon-size").evaluate(_,{})],Ae[0]>32640&&Xr(`${e.layerIds[0]}: Value for "icon-size" is >= 255. Reduce your "icon-size".`)):$e.kind==="composite"&&(Ae=[128*A.compositeIconSizes[0].evaluate(_,{},M),128*A.compositeIconSizes[1].evaluate(_,{},M)],(Ae[0]>32640||Ae[1]>32640)&&Xr(`${e.layerIds[0]}: Value for "icon-size" is >= 255. Reduce your "icon-size".`)),e.addSymbols(e.icon,Ue,Ae,b,x,_,0,t,P.lineStartIndex,P.lineLength,-1,M,I),Z=e.icon.placedSymbolArray.length-1,Ne&&(j=Ne.length*4,e.addSymbols(e.icon,Ne,Ae,b,x,_,2,t,P.lineStartIndex,P.lineLength,-1,M,I),Y=e.icon.placedSymbolArray.length-1)}let De=Object.keys(i.horizontal);for(let Fe of De){let se=i.horizontal[Fe];B||(B=(pe=(0,V4.default)(se.text),new w4(l,t,u,c,h,se,f,d,p,s.layout.get("text-rotate").evaluate(_,{},M))));let Ue=se.positionedLines.length===1;if($+=Fre(e,t,se,n,s,p,_,m,I,P,i.vertical?1:3,Ue?De:[Fe],oe,Z,A,M),Ue)break}i.vertical&&(H+=Fre(e,t,i.vertical,n,s,p,_,m,I,P,2,["vertical"],oe,Y,A,M));let ye=B?B.boxStartIndex:e.collisionBoxArray.length,de=B?B.boxEndIndex:e.collisionBoxArray.length,Ce=z?z.boxStartIndex:e.collisionBoxArray.length,J=z?z.boxEndIndex:e.collisionBoxArray.length,ue=L?L.boxStartIndex:e.collisionBoxArray.length,me=L?L.boxEndIndex:e.collisionBoxArray.length,te=q?q.boxStartIndex:e.collisionBoxArray.length,re=q?q.boxEndIndex:e.collisionBoxArray.length,fe=-1,ge=(Fe,se)=>Fe!=null&&Fe.circleDiameter?Math.max(Fe.circleDiameter,se):se;fe=ge(B,fe),fe=ge(z,fe),fe=ge(L,fe),fe=ge(q,fe);let Re=+(fe>-1);Re&&(fe*=S/24),e.glyphOffsetArray.length>=e.maxGlyphs&&Xr("Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907"),_.sortKey!==void 0&&e.addToSortKeyRanges(e.symbolInstances.length,_.sortKey);let Ve=Soe(s,_,M),[Me,Pe]=Kqe(e.textAnchorOffsets,Ve);k&&(pe=eOe(pe,_)),e.symbolInstances.emplaceBack(t.x,t.y,oe.right>=0?oe.right:-1,oe.center>=0?oe.center:-1,oe.left>=0?oe.left:-1,oe.vertical||-1,Z,Y,pe,ye,de,Ce,J,ue,me,te,re,u,$,H,V,j,Re,0,f,fe,Me,Pe,I)}function Qqe(e,t,r,i){let a=e.compareText;if(!(t in a))a[t]=[];else{let n=a[t];for(let o=n.length-1;o>=0;o--)if(i.dist(n[o])e&&i in e?String(e[i]):"")}function sOe(e,t,r,i=1){var n;let a=(n=e.get("icon-padding").evaluate(t,{},r))==null?void 0:n.values;return[a[0]*i,a[1]*i,a[2]*i,a[3]*i]}function Foe(e){let t=[],r=e.id;return r===void 0&&t.push(new xt(`layers.${r}`,null,'missing required property "id"')),e.render===void 0&&t.push(new xt(`layers.${r}`,null,'missing required method "render"')),e.renderingMode&&e.renderingMode!=="2d"&&e.renderingMode!=="3d"&&t.push(new xt(`layers.${r}`,null,'property "renderingMode" must be either "2d" or "3d"')),t}function Ow(e,t){if(e.type==="custom")return new hOe(e,t);switch(e.type){case"background":return new cOe(e,t);case"circle":return new Qze(e,t);case"color-relief":return new uRe(e,t);case"fill":return new NRe(e,t);case"fill-extrusion":return new aBe(e,t);case"heatmap":return new rRe(e,t);case"hillshade":return new nRe(e,t);case"line":return new vBe(e,t);case"raster":return new gze(e,t);case"symbol":return new oOe(e,t)}}function pOe(e,t,r){return!(e<0||e>25||r<0||r>=2**e||t<0||t>=2**e)}function wC(e,t){let{x:r,y:i}=wi.fromLngLat(t);return!(e<0||e>25||i<0||i>=1||r<0||r>=1)}function Nd(e,t,r,i,a){e*=2,e<0&&(e=e*-1-1);let n=1<0;a--){let n=1<>>0;return((t&255)<<24|(t&65280)<<8|t>>>8&65280|t>>>24&255)>>>0}function bOe(e,t,r,i){let a=i,n=e[t]>>>0,o=e[t+1]>>>0;r[a++]=n>>>0&3,r[a++]=n>>>2&3,r[a++]=n>>>4&3,r[a++]=n>>>6&3,r[a++]=n>>>8&3,r[a++]=n>>>10&3,r[a++]=n>>>12&3,r[a++]=n>>>14&3,r[a++]=n>>>16&3,r[a++]=n>>>18&3,r[a++]=n>>>20&3,r[a++]=n>>>22&3,r[a++]=n>>>24&3,r[a++]=n>>>26&3,r[a++]=n>>>28&3,r[a++]=n>>>30&3,r[a++]=o>>>0&3,r[a++]=o>>>2&3,r[a++]=o>>>4&3,r[a++]=o>>>6&3,r[a++]=o>>>8&3,r[a++]=o>>>10&3,r[a++]=o>>>12&3,r[a++]=o>>>14&3,r[a++]=o>>>16&3,r[a++]=o>>>18&3,r[a++]=o>>>20&3,r[a++]=o>>>22&3,r[a++]=o>>>24&3,r[a++]=o>>>26&3,r[a++]=o>>>28&3,r[a]=o>>>30&3}function wOe(e,t,r,i){let a=i,n=e[t]>>>0,o=e[t+1]>>>0,s=e[t+2]>>>0;r[a++]=n>>>0&7,r[a++]=n>>>3&7,r[a++]=n>>>6&7,r[a++]=n>>>9&7,r[a++]=n>>>12&7,r[a++]=n>>>15&7,r[a++]=n>>>18&7,r[a++]=n>>>21&7,r[a++]=n>>>24&7,r[a++]=n>>>27&7,r[a++]=(n>>>30|(o&1)<<2)&7,r[a++]=o>>>1&7,r[a++]=o>>>4&7,r[a++]=o>>>7&7,r[a++]=o>>>10&7,r[a++]=o>>>13&7,r[a++]=o>>>16&7,r[a++]=o>>>19&7,r[a++]=o>>>22&7,r[a++]=o>>>25&7,r[a++]=o>>>28&7,r[a++]=(o>>>31|(s&3)<<1)&7,r[a++]=s>>>2&7,r[a++]=s>>>5&7,r[a++]=s>>>8&7,r[a++]=s>>>11&7,r[a++]=s>>>14&7,r[a++]=s>>>17&7,r[a++]=s>>>20&7,r[a++]=s>>>23&7,r[a++]=s>>>26&7,r[a]=s>>>29&7}function AOe(e,t,r,i){let a=i,n=e[t]>>>0,o=e[t+1]>>>0,s=e[t+2]>>>0,l=e[t+3]>>>0;r[a++]=n>>>0&15,r[a++]=n>>>4&15,r[a++]=n>>>8&15,r[a++]=n>>>12&15,r[a++]=n>>>16&15,r[a++]=n>>>20&15,r[a++]=n>>>24&15,r[a++]=n>>>28&15,r[a++]=o>>>0&15,r[a++]=o>>>4&15,r[a++]=o>>>8&15,r[a++]=o>>>12&15,r[a++]=o>>>16&15,r[a++]=o>>>20&15,r[a++]=o>>>24&15,r[a++]=o>>>28&15,r[a++]=s>>>0&15,r[a++]=s>>>4&15,r[a++]=s>>>8&15,r[a++]=s>>>12&15,r[a++]=s>>>16&15,r[a++]=s>>>20&15,r[a++]=s>>>24&15,r[a++]=s>>>28&15,r[a++]=l>>>0&15,r[a++]=l>>>4&15,r[a++]=l>>>8&15,r[a++]=l>>>12&15,r[a++]=l>>>16&15,r[a++]=l>>>20&15,r[a++]=l>>>24&15,r[a]=l>>>28&15}function TOe(e,t,r,i){let a=i,n=e[t]>>>0,o=e[t+1]>>>0,s=e[t+2]>>>0,l=e[t+3]>>>0,u=e[t+4]>>>0;r[a++]=n>>>0&31,r[a++]=n>>>5&31,r[a++]=n>>>10&31,r[a++]=n>>>15&31,r[a++]=n>>>20&31,r[a++]=n>>>25&31,r[a++]=(n>>>30|(o&7)<<2)&31,r[a++]=o>>>3&31,r[a++]=o>>>8&31,r[a++]=o>>>13&31,r[a++]=o>>>18&31,r[a++]=o>>>23&31,r[a++]=(o>>>28|(s&1)<<4)&31,r[a++]=s>>>1&31,r[a++]=s>>>6&31,r[a++]=s>>>11&31,r[a++]=s>>>16&31,r[a++]=s>>>21&31,r[a++]=s>>>26&31,r[a++]=(s>>>31|(l&15)<<1)&31,r[a++]=l>>>4&31,r[a++]=l>>>9&31,r[a++]=l>>>14&31,r[a++]=l>>>19&31,r[a++]=l>>>24&31,r[a++]=(l>>>29|(u&3)<<3)&31,r[a++]=u>>>2&31,r[a++]=u>>>7&31,r[a++]=u>>>12&31,r[a++]=u>>>17&31,r[a++]=u>>>22&31,r[a]=u>>>27&31}function MOe(e,t,r,i){let a=i,n=e[t]>>>0,o=e[t+1]>>>0,s=e[t+2]>>>0,l=e[t+3]>>>0,u=e[t+4]>>>0,c=e[t+5]>>>0;r[a++]=n>>>0&63,r[a++]=n>>>6&63,r[a++]=n>>>12&63,r[a++]=n>>>18&63,r[a++]=n>>>24&63,r[a++]=(n>>>30|(o&15)<<2)&63,r[a++]=o>>>4&63,r[a++]=o>>>10&63,r[a++]=o>>>16&63,r[a++]=o>>>22&63,r[a++]=(o>>>28|(s&3)<<4)&63,r[a++]=s>>>2&63,r[a++]=s>>>8&63,r[a++]=s>>>14&63,r[a++]=s>>>20&63,r[a++]=s>>>26&63,r[a++]=l>>>0&63,r[a++]=l>>>6&63,r[a++]=l>>>12&63,r[a++]=l>>>18&63,r[a++]=l>>>24&63,r[a++]=(l>>>30|(u&15)<<2)&63,r[a++]=u>>>4&63,r[a++]=u>>>10&63,r[a++]=u>>>16&63,r[a++]=u>>>22&63,r[a++]=(u>>>28|(c&3)<<4)&63,r[a++]=c>>>2&63,r[a++]=c>>>8&63,r[a++]=c>>>14&63,r[a++]=c>>>20&63,r[a]=c>>>26&63}function DOe(e,t,r,i){let a=i,n=e[t]>>>0,o=e[t+1]>>>0,s=e[t+2]>>>0,l=e[t+3]>>>0,u=e[t+4]>>>0,c=e[t+5]>>>0,h=e[t+6]>>>0;r[a++]=n>>>0&127,r[a++]=n>>>7&127,r[a++]=n>>>14&127,r[a++]=n>>>21&127,r[a++]=(n>>>28|(o&7)<<4)&127,r[a++]=o>>>3&127,r[a++]=o>>>10&127,r[a++]=o>>>17&127,r[a++]=o>>>24&127,r[a++]=(o>>>31|(s&63)<<1)&127,r[a++]=s>>>6&127,r[a++]=s>>>13&127,r[a++]=s>>>20&127,r[a++]=(s>>>27|(l&3)<<5)&127,r[a++]=l>>>2&127,r[a++]=l>>>9&127,r[a++]=l>>>16&127,r[a++]=l>>>23&127,r[a++]=(l>>>30|(u&31)<<2)&127,r[a++]=u>>>5&127,r[a++]=u>>>12&127,r[a++]=u>>>19&127,r[a++]=(u>>>26|(c&1)<<6)&127,r[a++]=c>>>1&127,r[a++]=c>>>8&127,r[a++]=c>>>15&127,r[a++]=c>>>22&127,r[a++]=(c>>>29|(h&15)<<3)&127,r[a++]=h>>>4&127,r[a++]=h>>>11&127,r[a++]=h>>>18&127,r[a]=h>>>25&127}function SOe(e,t,r,i){let a=i,n=e[t]>>>0,o=e[t+1]>>>0,s=e[t+2]>>>0,l=e[t+3]>>>0,u=e[t+4]>>>0,c=e[t+5]>>>0,h=e[t+6]>>>0,f=e[t+7]>>>0;r[a++]=n>>>0&255,r[a++]=n>>>8&255,r[a++]=n>>>16&255,r[a++]=n>>>24&255,r[a++]=o>>>0&255,r[a++]=o>>>8&255,r[a++]=o>>>16&255,r[a++]=o>>>24&255,r[a++]=s>>>0&255,r[a++]=s>>>8&255,r[a++]=s>>>16&255,r[a++]=s>>>24&255,r[a++]=l>>>0&255,r[a++]=l>>>8&255,r[a++]=l>>>16&255,r[a++]=l>>>24&255,r[a++]=u>>>0&255,r[a++]=u>>>8&255,r[a++]=u>>>16&255,r[a++]=u>>>24&255,r[a++]=c>>>0&255,r[a++]=c>>>8&255,r[a++]=c>>>16&255,r[a++]=c>>>24&255,r[a++]=h>>>0&255,r[a++]=h>>>8&255,r[a++]=h>>>16&255,r[a++]=h>>>24&255,r[a++]=f>>>0&255,r[a++]=f>>>8&255,r[a++]=f>>>16&255,r[a]=f>>>24&255}function EOe(e,t,r,i){let a=i,n=e[t]>>>0,o=e[t+1]>>>0,s=e[t+2]>>>0,l=e[t+3]>>>0,u=e[t+4]>>>0,c=e[t+5]>>>0,h=e[t+6]>>>0,f=e[t+7]>>>0,d=e[t+8]>>>0;r[a++]=n>>>0&511,r[a++]=n>>>9&511,r[a++]=n>>>18&511,r[a++]=(n>>>27|(o&15)<<5)&511,r[a++]=o>>>4&511,r[a++]=o>>>13&511,r[a++]=o>>>22&511,r[a++]=(o>>>31|(s&255)<<1)&511,r[a++]=s>>>8&511,r[a++]=s>>>17&511,r[a++]=(s>>>26|(l&7)<<6)&511,r[a++]=l>>>3&511,r[a++]=l>>>12&511,r[a++]=l>>>21&511,r[a++]=(l>>>30|(u&127)<<2)&511,r[a++]=u>>>7&511,r[a++]=u>>>16&511,r[a++]=(u>>>25|(c&3)<<7)&511,r[a++]=c>>>2&511,r[a++]=c>>>11&511,r[a++]=c>>>20&511,r[a++]=(c>>>29|(h&63)<<3)&511,r[a++]=h>>>6&511,r[a++]=h>>>15&511,r[a++]=(h>>>24|(f&1)<<8)&511,r[a++]=f>>>1&511,r[a++]=f>>>10&511,r[a++]=f>>>19&511,r[a++]=(f>>>28|(d&31)<<4)&511,r[a++]=d>>>5&511,r[a++]=d>>>14&511,r[a]=d>>>23&511}function kOe(e,t,r,i){let a=i,n=e[t]>>>0,o=e[t+1]>>>0,s=e[t+2]>>>0,l=e[t+3]>>>0,u=e[t+4]>>>0,c=e[t+5]>>>0,h=e[t+6]>>>0,f=e[t+7]>>>0,d=e[t+8]>>>0,p=e[t+9]>>>0;r[a++]=n>>>0&1023,r[a++]=n>>>10&1023,r[a++]=n>>>20&1023,r[a++]=(n>>>30|(o&255)<<2)&1023,r[a++]=o>>>8&1023,r[a++]=o>>>18&1023,r[a++]=(o>>>28|(s&63)<<4)&1023,r[a++]=s>>>6&1023,r[a++]=s>>>16&1023,r[a++]=(s>>>26|(l&15)<<6)&1023,r[a++]=l>>>4&1023,r[a++]=l>>>14&1023,r[a++]=(l>>>24|(u&3)<<8)&1023,r[a++]=u>>>2&1023,r[a++]=u>>>12&1023,r[a++]=u>>>22&1023,r[a++]=c>>>0&1023,r[a++]=c>>>10&1023,r[a++]=c>>>20&1023,r[a++]=(c>>>30|(h&255)<<2)&1023,r[a++]=h>>>8&1023,r[a++]=h>>>18&1023,r[a++]=(h>>>28|(f&63)<<4)&1023,r[a++]=f>>>6&1023,r[a++]=f>>>16&1023,r[a++]=(f>>>26|(d&15)<<6)&1023,r[a++]=d>>>4&1023,r[a++]=d>>>14&1023,r[a++]=(d>>>24|(p&3)<<8)&1023,r[a++]=p>>>2&1023,r[a++]=p>>>12&1023,r[a]=p>>>22&1023}function COe(e,t,r,i){let a=i,n=e[t]>>>0,o=e[t+1]>>>0,s=e[t+2]>>>0,l=e[t+3]>>>0,u=e[t+4]>>>0,c=e[t+5]>>>0,h=e[t+6]>>>0,f=e[t+7]>>>0,d=e[t+8]>>>0,p=e[t+9]>>>0,m=e[t+10]>>>0;r[a++]=n>>>0&2047,r[a++]=n>>>11&2047,r[a++]=(n>>>22|(o&1)<<10)&2047,r[a++]=o>>>1&2047,r[a++]=o>>>12&2047,r[a++]=(o>>>23|(s&3)<<9)&2047,r[a++]=s>>>2&2047,r[a++]=s>>>13&2047,r[a++]=(s>>>24|(l&7)<<8)&2047,r[a++]=l>>>3&2047,r[a++]=l>>>14&2047,r[a++]=(l>>>25|(u&15)<<7)&2047,r[a++]=u>>>4&2047,r[a++]=u>>>15&2047,r[a++]=(u>>>26|(c&31)<<6)&2047,r[a++]=c>>>5&2047,r[a++]=c>>>16&2047,r[a++]=(c>>>27|(h&63)<<5)&2047,r[a++]=h>>>6&2047,r[a++]=h>>>17&2047,r[a++]=(h>>>28|(f&127)<<4)&2047,r[a++]=f>>>7&2047,r[a++]=f>>>18&2047,r[a++]=(f>>>29|(d&255)<<3)&2047,r[a++]=d>>>8&2047,r[a++]=d>>>19&2047,r[a++]=(d>>>30|(p&511)<<2)&2047,r[a++]=p>>>9&2047,r[a++]=p>>>20&2047,r[a++]=(p>>>31|(m&1023)<<1)&2047,r[a++]=m>>>10&2047,r[a]=m>>>21&2047}function FOe(e,t,r,i){let a=i,n=e[t]>>>0,o=e[t+1]>>>0,s=e[t+2]>>>0,l=e[t+3]>>>0,u=e[t+4]>>>0,c=e[t+5]>>>0,h=e[t+6]>>>0,f=e[t+7]>>>0,d=e[t+8]>>>0,p=e[t+9]>>>0,m=e[t+10]>>>0,g=e[t+11]>>>0;r[a++]=n>>>0&4095,r[a++]=n>>>12&4095,r[a++]=(n>>>24|(o&15)<<8)&4095,r[a++]=o>>>4&4095,r[a++]=o>>>16&4095,r[a++]=(o>>>28|(s&255)<<4)&4095,r[a++]=s>>>8&4095,r[a++]=s>>>20&4095,r[a++]=l>>>0&4095,r[a++]=l>>>12&4095,r[a++]=(l>>>24|(u&15)<<8)&4095,r[a++]=u>>>4&4095,r[a++]=u>>>16&4095,r[a++]=(u>>>28|(c&255)<<4)&4095,r[a++]=c>>>8&4095,r[a++]=c>>>20&4095,r[a++]=h>>>0&4095,r[a++]=h>>>12&4095,r[a++]=(h>>>24|(f&15)<<8)&4095,r[a++]=f>>>4&4095,r[a++]=f>>>16&4095,r[a++]=(f>>>28|(d&255)<<4)&4095,r[a++]=d>>>8&4095,r[a++]=d>>>20&4095,r[a++]=p>>>0&4095,r[a++]=p>>>12&4095,r[a++]=(p>>>24|(m&15)<<8)&4095,r[a++]=m>>>4&4095,r[a++]=m>>>16&4095,r[a++]=(m>>>28|(g&255)<<4)&4095,r[a++]=g>>>8&4095,r[a]=g>>>20&4095}function POe(e,t,r,i){let a=i,n=e[t]>>>0,o=e[t+1]>>>0,s=e[t+2]>>>0,l=e[t+3]>>>0,u=e[t+4]>>>0,c=e[t+5]>>>0,h=e[t+6]>>>0,f=e[t+7]>>>0,d=e[t+8]>>>0,p=e[t+9]>>>0,m=e[t+10]>>>0,g=e[t+11]>>>0,y=e[t+12]>>>0,x=e[t+13]>>>0,b=e[t+14]>>>0,_=e[t+15]>>>0;r[a++]=n>>>0&65535,r[a++]=n>>>16&65535,r[a++]=o>>>0&65535,r[a++]=o>>>16&65535,r[a++]=s>>>0&65535,r[a++]=s>>>16&65535,r[a++]=l>>>0&65535,r[a++]=l>>>16&65535,r[a++]=u>>>0&65535,r[a++]=u>>>16&65535,r[a++]=c>>>0&65535,r[a++]=c>>>16&65535,r[a++]=h>>>0&65535,r[a++]=h>>>16&65535,r[a++]=f>>>0&65535,r[a++]=f>>>16&65535,r[a++]=d>>>0&65535,r[a++]=d>>>16&65535,r[a++]=p>>>0&65535,r[a++]=p>>>16&65535,r[a++]=m>>>0&65535,r[a++]=m>>>16&65535,r[a++]=g>>>0&65535,r[a++]=g>>>16&65535,r[a++]=y>>>0&65535,r[a++]=y>>>16&65535,r[a++]=x>>>0&65535,r[a++]=x>>>16&65535,r[a++]=b>>>0&65535,r[a++]=b>>>16&65535,r[a++]=_>>>0&65535,r[a]=_>>>16&65535}function IOe(e,t,r,i){let a=i,n=t;for(let o=0;o<8;o++){let s=e[n++]>>>0;r[a++]=s>>>0&1,r[a++]=s>>>1&1,r[a++]=s>>>2&1,r[a++]=s>>>3&1,r[a++]=s>>>4&1,r[a++]=s>>>5&1,r[a++]=s>>>6&1,r[a++]=s>>>7&1,r[a++]=s>>>8&1,r[a++]=s>>>9&1,r[a++]=s>>>10&1,r[a++]=s>>>11&1,r[a++]=s>>>12&1,r[a++]=s>>>13&1,r[a++]=s>>>14&1,r[a++]=s>>>15&1,r[a++]=s>>>16&1,r[a++]=s>>>17&1,r[a++]=s>>>18&1,r[a++]=s>>>19&1,r[a++]=s>>>20&1,r[a++]=s>>>21&1,r[a++]=s>>>22&1,r[a++]=s>>>23&1,r[a++]=s>>>24&1,r[a++]=s>>>25&1,r[a++]=s>>>26&1,r[a++]=s>>>27&1,r[a++]=s>>>28&1,r[a++]=s>>>29&1,r[a++]=s>>>30&1,r[a++]=s>>>31&1}}function LOe(e,t,r,i){let a=i,n=t;for(let o=0;o<8;o++){let s=e[n++]>>>0,l=e[n++]>>>0;r[a++]=s>>>0&3,r[a++]=s>>>2&3,r[a++]=s>>>4&3,r[a++]=s>>>6&3,r[a++]=s>>>8&3,r[a++]=s>>>10&3,r[a++]=s>>>12&3,r[a++]=s>>>14&3,r[a++]=s>>>16&3,r[a++]=s>>>18&3,r[a++]=s>>>20&3,r[a++]=s>>>22&3,r[a++]=s>>>24&3,r[a++]=s>>>26&3,r[a++]=s>>>28&3,r[a++]=s>>>30&3,r[a++]=l>>>0&3,r[a++]=l>>>2&3,r[a++]=l>>>4&3,r[a++]=l>>>6&3,r[a++]=l>>>8&3,r[a++]=l>>>10&3,r[a++]=l>>>12&3,r[a++]=l>>>14&3,r[a++]=l>>>16&3,r[a++]=l>>>18&3,r[a++]=l>>>20&3,r[a++]=l>>>22&3,r[a++]=l>>>24&3,r[a++]=l>>>26&3,r[a++]=l>>>28&3,r[a++]=l>>>30&3}}function zOe(e,t,r,i){let a=i,n=t;for(let o=0;o<8;o++){let s=e[n++]>>>0,l=e[n++]>>>0,u=e[n++]>>>0;r[a++]=s>>>0&7,r[a++]=s>>>3&7,r[a++]=s>>>6&7,r[a++]=s>>>9&7,r[a++]=s>>>12&7,r[a++]=s>>>15&7,r[a++]=s>>>18&7,r[a++]=s>>>21&7,r[a++]=s>>>24&7,r[a++]=s>>>27&7,r[a++]=(s>>>30|(l&1)<<2)&7,r[a++]=l>>>1&7,r[a++]=l>>>4&7,r[a++]=l>>>7&7,r[a++]=l>>>10&7,r[a++]=l>>>13&7,r[a++]=l>>>16&7,r[a++]=l>>>19&7,r[a++]=l>>>22&7,r[a++]=l>>>25&7,r[a++]=l>>>28&7,r[a++]=(l>>>31|(u&3)<<1)&7,r[a++]=u>>>2&7,r[a++]=u>>>5&7,r[a++]=u>>>8&7,r[a++]=u>>>11&7,r[a++]=u>>>14&7,r[a++]=u>>>17&7,r[a++]=u>>>20&7,r[a++]=u>>>23&7,r[a++]=u>>>26&7,r[a++]=u>>>29&7}}function ROe(e,t,r,i){let a=i,n=t;for(let o=0;o<8;o++){let s=e[n++]>>>0,l=e[n++]>>>0,u=e[n++]>>>0,c=e[n++]>>>0;r[a++]=s>>>0&15,r[a++]=s>>>4&15,r[a++]=s>>>8&15,r[a++]=s>>>12&15,r[a++]=s>>>16&15,r[a++]=s>>>20&15,r[a++]=s>>>24&15,r[a++]=s>>>28&15,r[a++]=l>>>0&15,r[a++]=l>>>4&15,r[a++]=l>>>8&15,r[a++]=l>>>12&15,r[a++]=l>>>16&15,r[a++]=l>>>20&15,r[a++]=l>>>24&15,r[a++]=l>>>28&15,r[a++]=u>>>0&15,r[a++]=u>>>4&15,r[a++]=u>>>8&15,r[a++]=u>>>12&15,r[a++]=u>>>16&15,r[a++]=u>>>20&15,r[a++]=u>>>24&15,r[a++]=u>>>28&15,r[a++]=c>>>0&15,r[a++]=c>>>4&15,r[a++]=c>>>8&15,r[a++]=c>>>12&15,r[a++]=c>>>16&15,r[a++]=c>>>20&15,r[a++]=c>>>24&15,r[a++]=c>>>28&15}}function BOe(e,t,r,i){let a=i,n=t;for(let o=0;o<8;o++){let s=e[n++]>>>0,l=e[n++]>>>0,u=e[n++]>>>0,c=e[n++]>>>0,h=e[n++]>>>0;r[a++]=s>>>0&31,r[a++]=s>>>5&31,r[a++]=s>>>10&31,r[a++]=s>>>15&31,r[a++]=s>>>20&31,r[a++]=s>>>25&31,r[a++]=(s>>>30|(l&7)<<2)&31,r[a++]=l>>>3&31,r[a++]=l>>>8&31,r[a++]=l>>>13&31,r[a++]=l>>>18&31,r[a++]=l>>>23&31,r[a++]=(l>>>28|(u&1)<<4)&31,r[a++]=u>>>1&31,r[a++]=u>>>6&31,r[a++]=u>>>11&31,r[a++]=u>>>16&31,r[a++]=u>>>21&31,r[a++]=u>>>26&31,r[a++]=(u>>>31|(c&15)<<1)&31,r[a++]=c>>>4&31,r[a++]=c>>>9&31,r[a++]=c>>>14&31,r[a++]=c>>>19&31,r[a++]=c>>>24&31,r[a++]=(c>>>29|(h&3)<<3)&31,r[a++]=h>>>2&31,r[a++]=h>>>7&31,r[a++]=h>>>12&31,r[a++]=h>>>17&31,r[a++]=h>>>22&31,r[a++]=h>>>27&31}}function qOe(e,t,r,i){let a=i,n=t;for(let o=0;o<8;o++){let s=e[n++]>>>0,l=e[n++]>>>0,u=e[n++]>>>0,c=e[n++]>>>0,h=e[n++]>>>0,f=e[n++]>>>0;r[a++]=s>>>0&63,r[a++]=s>>>6&63,r[a++]=s>>>12&63,r[a++]=s>>>18&63,r[a++]=s>>>24&63,r[a++]=(s>>>30|(l&15)<<2)&63,r[a++]=l>>>4&63,r[a++]=l>>>10&63,r[a++]=l>>>16&63,r[a++]=l>>>22&63,r[a++]=(l>>>28|(u&3)<<4)&63,r[a++]=u>>>2&63,r[a++]=u>>>8&63,r[a++]=u>>>14&63,r[a++]=u>>>20&63,r[a++]=u>>>26&63,r[a++]=c>>>0&63,r[a++]=c>>>6&63,r[a++]=c>>>12&63,r[a++]=c>>>18&63,r[a++]=c>>>24&63,r[a++]=(c>>>30|(h&15)<<2)&63,r[a++]=h>>>4&63,r[a++]=h>>>10&63,r[a++]=h>>>16&63,r[a++]=h>>>22&63,r[a++]=(h>>>28|(f&3)<<4)&63,r[a++]=f>>>2&63,r[a++]=f>>>8&63,r[a++]=f>>>14&63,r[a++]=f>>>20&63,r[a++]=f>>>26&63}}function OOe(e,t,r,i){let a=i,n=t;for(let o=0;o<8;o++){let s=e[n++]>>>0,l=e[n++]>>>0,u=e[n++]>>>0,c=e[n++]>>>0,h=e[n++]>>>0,f=e[n++]>>>0,d=e[n++]>>>0;r[a++]=s>>>0&127,r[a++]=s>>>7&127,r[a++]=s>>>14&127,r[a++]=s>>>21&127,r[a++]=(s>>>28|(l&7)<<4)&127,r[a++]=l>>>3&127,r[a++]=l>>>10&127,r[a++]=l>>>17&127,r[a++]=l>>>24&127,r[a++]=(l>>>31|(u&63)<<1)&127,r[a++]=u>>>6&127,r[a++]=u>>>13&127,r[a++]=u>>>20&127,r[a++]=(u>>>27|(c&3)<<5)&127,r[a++]=c>>>2&127,r[a++]=c>>>9&127,r[a++]=c>>>16&127,r[a++]=c>>>23&127,r[a++]=(c>>>30|(h&31)<<2)&127,r[a++]=h>>>5&127,r[a++]=h>>>12&127,r[a++]=h>>>19&127,r[a++]=(h>>>26|(f&1)<<6)&127,r[a++]=f>>>1&127,r[a++]=f>>>8&127,r[a++]=f>>>15&127,r[a++]=f>>>22&127,r[a++]=(f>>>29|(d&15)<<3)&127,r[a++]=d>>>4&127,r[a++]=d>>>11&127,r[a++]=d>>>18&127,r[a++]=d>>>25&127}}function NOe(e,t,r,i){let a=i,n=t;for(let o=0;o<8;o++){let s=e[n++]>>>0,l=e[n++]>>>0,u=e[n++]>>>0,c=e[n++]>>>0,h=e[n++]>>>0,f=e[n++]>>>0,d=e[n++]>>>0,p=e[n++]>>>0;r[a++]=s>>>0&255,r[a++]=s>>>8&255,r[a++]=s>>>16&255,r[a++]=s>>>24&255,r[a++]=l>>>0&255,r[a++]=l>>>8&255,r[a++]=l>>>16&255,r[a++]=l>>>24&255,r[a++]=u>>>0&255,r[a++]=u>>>8&255,r[a++]=u>>>16&255,r[a++]=u>>>24&255,r[a++]=c>>>0&255,r[a++]=c>>>8&255,r[a++]=c>>>16&255,r[a++]=c>>>24&255,r[a++]=h>>>0&255,r[a++]=h>>>8&255,r[a++]=h>>>16&255,r[a++]=h>>>24&255,r[a++]=f>>>0&255,r[a++]=f>>>8&255,r[a++]=f>>>16&255,r[a++]=f>>>24&255,r[a++]=d>>>0&255,r[a++]=d>>>8&255,r[a++]=d>>>16&255,r[a++]=d>>>24&255,r[a++]=p>>>0&255,r[a++]=p>>>8&255,r[a++]=p>>>16&255,r[a++]=p>>>24&255}}function VOe(e,t,r,i){let a=i,n=t;for(let o=0;o<128;o++){let s=e[n++]>>>0;r[a++]=s&65535,r[a++]=s>>>16&65535}}function UOe(e,t,r,i,a){let n=dk[a]>>>0,o=t,s=0,l=e[o]>>>0,u=i;for(let c=0;c<8;c++){for(let h=0;h<32;h++)if(s+a<=32){let f=l>>>s&n;r[u+h]=f|0,s+=a,s===32&&(s=0,o++,h!==31&&(l=e[o]>>>0))}else{let f=32-s,d=l>>>s;o++,l=e[o]>>>0;let p=a-f,m=-1>>>32-p>>>0,g=(d|(l&m)<>>0)}}function qoe(){let e=new Uint8Array(GOe);return{dataToBePacked:Array(33),dataPointers:new Int32Array(33),byteContainer:e,byteContainerI32:new Int32Array(e.buffer,e.byteOffset,e.byteLength>>>2),exceptionSizes:new Int32Array(33)}}function jOe(e=16){if(e<0)throw RangeError(`initialEncodedWordCapacity must be >= 0, got ${e}`);let t=Math.max(16,e|0);return{encodedWords:new Uint32Array(t),decoderWorkspace:qoe()}}function $Oe(e,t){if(t<=e.encodedWords.length)return e.encodedWords;let r=new Uint32Array(Math.max(16,t*2));return e.encodedWords=r,r}function HOe(e,t,r,i){i.byteContainer.length>>2;if(a.byteOffset&3)for(let s=0;s>>8&255,a[u+2|0]=l>>>16&255,a[u+3|0]=l>>>24&255}else{let s=i.byteContainerI32;(!s||s.buffer!==a.buffer||s.byteOffset!==a.byteOffset||s.length>>2)),s.set(e.subarray(t,t+n))}let o=r&3;if(o>0){let s=e[t+n|0]|0,l=n<<2;for(let u=0;u>>(u<<3)&255}return a}function ZOe(e,t,r){let i=e[t++]|0,a=r.dataToBePacked;for(let n=2;n<=32;n=n+1|0){if(!(i>>>n-1&1))continue;if(t>=e.length)throw Error(`FastPFOR decode: truncated exception stream header (bitWidth=${n}, streamWordIndex=${t}, needWords=1, availableWords=${e.length-t}, encodedWords=${e.length})`);let o=e[t++]>>>0,s=_Oe(o),l=o*n+31>>>5;if(t+l>e.length)throw Error(`FastPFOR decode: truncated exception stream (bitWidth=${n}, size=${o}, streamWordIndex=${t}, needWords=${l}, availableWords=${e.length-t}, encodedWords=${e.length})`);let u=a[n];(!u||u.length>>5)|0,r.exceptionSizes[n]=o}return t}function YOe(e,t,r,i,a){switch(a){case 1:IOe(e,t,r,i);break;case 2:LOe(e,t,r,i);break;case 3:zOe(e,t,r,i);break;case 4:ROe(e,t,r,i);break;case 5:BOe(e,t,r,i);break;case 6:qOe(e,t,r,i);break;case 7:OOe(e,t,r,i);break;case 8:NOe(e,t,r,i);break;case 16:VOe(e,t,r,i);break;default:UOe(e,t,r,i,a)}return t+(a<<3)|0}function WOe(e,t,r,i){if(r+2>t)throw Error(`FastPFOR decode: byteContainer underflow at block=${i} (need 2 bytes for [bitWidth, exceptionCount], bytePos=${r}, byteSize=${t})`);let a=e[r++],n=e[r++];if(a>32)throw Error(`FastPFOR decode: invalid bitWidth=${a} at block=${i} (expected 0..32). This likely indicates corrupted or truncated input.`);return{bitWidth:a,exceptionCount:n,bytePosIn:r}}function XOe(e,t,r,i,a,n){if(r+1>t)throw Error(`FastPFOR decode: exception header underflow at block=${n} (need 1 byte for maxBits, bytePos=${r}, byteSize=${t})`);let o=e[r++];if(o32)throw Error(`FastPFOR decode: invalid maxBits=${o} at block=${n} (bitWidth=${i}, expected ${i}..32)`);let s=o-i|0;if(s<1||s>32)throw Error(`FastPFOR decode: invalid exceptionBitWidth=${s} at block=${n} (bitWidth=${i}, maxBits=${o})`);if(r+a>t)throw Error(`FastPFOR decode: exception positions underflow at block=${n} (need=${a}, have=${t-r})`);return{maxBits:o,exceptionBitWidth:s,bytePosIn:r}}function KOe(e,t,r,i,a,n,o,s,l){let{maxBits:u,exceptionBitWidth:c,bytePosIn:h}=XOe(a,n,o,r,i,l);if(o=h,c===1){let g=1<m)throw Error(`FastPFOR decode: exception stream overflow for exceptionBitWidth=${c} (ptr=${p}, need ${i}, size=${m}) at block ${l}`);for(let g=0;g0&&(h=KOe(a,g,p,m,s,l,h,u,f))}if(c!==i)throw Error(`FastPFOR decode: packed region mismatch (pageStart=${t}, packedStart=${r}, consumedPackedEnd=${c}, expectedPackedEnd=${i}, packedWords=${i-r}, encoded.length=${e.length})`)}function QOe(e,t,r,i,a,n){let o=r|0,s=e[o]|0;if(s<=0||o+s>e.length-1)throw Error(`FastPFOR decode: invalid whereMeta=${s} at pageStart=${o} (expected > 0 and pageStart+whereMeta < encoded.length=${e.length})`);let l=o+1|0,u=o+s|0,c=e[u]>>>0,h=c+3>>>2,f=u+1,d=f+h;if(d>=e.length)throw Error(`FastPFOR decode: invalid byteSize=${c} (metaInts=${h}, pageStart=${o}, packedEnd=${u}, byteContainerStart=${f}) causes bitmapPos=${d} out of bounds (encoded.length=${e.length})`);let p=HOe(e,f,c,n),m=c,g=ZOe(e,d,n);return n.dataPointers.fill(0),JOe(e,o,l,u,t,i|0,a/256|0,p,m,n),g}function eNe(e,t,r,i,a,n){let o=i+FC(a,256),s=i,l=r;for(;s!==o;){let u=Math.min(pk,o-s);l=QOe(e,t,l,s,u,n),s=s+u|0}return l}function tNe(e,t,r,i,a,n){if(n===0)return t;let o=0,s=t,l=t+r,u=a,c=a,h=a+n,f=0,d=0;for(;s>>o&255;if(o+=8,s+=o>>>5,o&=31,f|=(p&127)<28)throw Error(`FastPFOR VByte: unterminated value (expected MSB=1 terminator within 5 bytes; shift=${d}, partial=${f}, decoded=${c-u}/${n}, inPos=${s}, inEnd=${l})`)}if(c!==h)throw Error(`FastPFOR VByte: truncated stream (decoded=${c-u}, expected=${n}, consumedWords=${s-t}/${r}, vbyteStart=${t}, vbyteEnd=${l})`);return s}function rNe(e,t,r){let i=0,a=0,n=new Uint32Array(t),o=r!=null?r:qoe();if(e.length>0){let u=e[i]|0;if(i=i+1|0,u&255)throw Error(`FastPFOR decode: invalid alignedLength=${u} (expected multiple of 256)`);if(a+u>n.length)throw Error(`FastPFOR decode: output buffer too small (outPos=${a}, alignedLength=${u}, out.length=${n.length})`);i=eNe(e,n,i,a,u,o),a=a+u|0}let s=e.length-i|0,l=t-a|0;return tNe(e,i,s,n,a,l),n}function iNe(e,t,r,i,a){switch(a){case 2:bOe(e,t,r,i);return;case 3:wOe(e,t,r,i);return;case 4:AOe(e,t,r,i);return;case 5:TOe(e,t,r,i);return;case 6:MOe(e,t,r,i);return;case 7:DOe(e,t,r,i);return;case 8:SOe(e,t,r,i);return;case 9:EOe(e,t,r,i);return;case 10:kOe(e,t,r,i);return;case 11:COe(e,t,r,i);return;case 12:FOe(e,t,r,i);return;case 16:POe(e,t,r,i);return;case 32:for(let u=0;u<32;u=u+1|0)r[i+u|0]=e[t+u|0]|0;return}let n=dk[a]>>>0,o=t,s=0,l=e[o]>>>0;for(let u=0;u<32;u++)if(s+a<=32){let c=l>>>s&n;r[i+u]=c|0,s+=a,s===32&&(s=0,o++,u!==31&&(l=e[o]>>>0))}else{let c=32-s,h=l>>>s;o++,l=e[o]>>>0;let f=dk[a-c]>>>0,d=(h|(l&f)<e.length)throw RangeError(`decodeBigEndianInt32sInto: out of bounds (offset=${t}, byteLength=${r}, bytes.length=${e.length})`);let a=Math.floor(r/4),n=r%4!=0,o=n?a+1:a;if(i.length0){let s=e.byteOffset+t;if(s&3)for(let l=0;l=64)throw Error("Varint too long")}return t.set(a),r}function oNe(e,t,r){let i=new Float64Array(r);for(let a=0;a>4,a<128||(a=t[r.get()],r.increment(),i|=(a&127)<<3,a<128)||(a=t[r.get()],r.increment(),i|=(a&127)<<10,a<128)||(a=t[r.get()],r.increment(),i|=(a&127)<<17,a<128)||(a=t[r.get()],r.increment(),i|=(a&127)<<24,a<128)||(a=t[r.get()],r.increment(),i|=(a&1)<<31,a<128))return i*4294967296+(e>>>0);throw Error("Expected varint not more than 10 bytes")}function uNe(e,t,r,i){return cNe(e,t,r,i,jOe(r>>>2))}function cNe(e,t,r,i,a){let n=i.get();if(r&3)throw Error(`FastPFOR: invalid encodedByteLength=${r} at offset=${n} (encodedBytes.length=${e.length}; expected a multiple of 4 bytes for an int32 big-endian word stream)`);let o=r>>>2,s=$Oe(a,o);aNe(e,n,r,s);let l=rNe(s.subarray(0,o),t,a.decoderWorkspace);return i.add(r),l}function ii(e){return e>>>1^-(e&1)}function po(e){return e>>BigInt(1)^-(e&BigInt(1))}function Rf(e){return e%2==1?(e+1)/-2:e/2}function hNe(e){let t=new Int32Array(e.length);for(let r=0;r=4)for(;i=4)for(;i=4)for(;r=4)for(let i=e[0];r=4)for(;i=4)for(;l>>0;for(let r=1;r>>0;return t}function Ore(e){let t=new BigUint64Array(e.length);t[0]=BigInt.asUintN(64,po(e[0]));for(let r=1;r>>0,t[1]=ii(e[1])>>>0;for(let r=2;r>>0,t[r+1]=t[r-1]+ii(e[r+1])>>>0;return t}function DNe(e,t,r,i){let a=Noe(e,t,r,i);return new Uint32Array(a)}function SNe(e){return e[1]}function ENe(e){return ii(e[1])}function kNe(e){if(e.length===2){let t=ii(e[1]);return[t,t]}return[ii(e[2]),ii(e[3])]}function CNe(e){return e[1]}function FNe(e){return po(e[1])}function PNe(e){if(e.length===2){let t=po(e[1]);return[t,t]}return[po(e[2]),po(e[3])]}function ba(e,t){let r=NNe(e,t);return r.logicalLevelTechnique1===Pr.MORTON?qNe(r,e,t):(Pr.RLE===r.logicalLevelTechnique1||Pr.RLE===r.logicalLevelTechnique2)&&Qs.NONE!==r.physicalLevelTechnique?ONe(r,e,t):r}function qNe(e,t,r){let i=mo(t,r,2);return{physicalStreamType:e.physicalStreamType,logicalStreamType:e.logicalStreamType,logicalLevelTechnique1:e.logicalLevelTechnique1,logicalLevelTechnique2:e.logicalLevelTechnique2,physicalLevelTechnique:e.physicalLevelTechnique,numValues:e.numValues,byteLength:e.byteLength,decompressedCount:e.decompressedCount,numBits:i[0],coordinateShift:i[1]}}function ONe(e,t,r){let i=mo(t,r,2);return{physicalStreamType:e.physicalStreamType,logicalStreamType:e.logicalStreamType,logicalLevelTechnique1:e.logicalLevelTechnique1,logicalLevelTechnique2:e.logicalLevelTechnique2,physicalLevelTechnique:e.physicalLevelTechnique,numValues:e.numValues,byteLength:e.byteLength,decompressedCount:i[1],runs:i[0],numRleValues:i[1]}}function NNe(e,t){let r=e[t.get()],i=INe[r>>4],a={};switch(i){case Ka.DATA:a={dictionaryType:zNe[r&15]};break;case Ka.OFFSET:a={offsetType:RNe[r&15]};break;case Ka.LENGTH:a={lengthType:BNe[r&15]}}t.increment();let n=e[t.get()],o=Nre[n>>5],s=Nre[n>>2&7],l=LNe[n&3];t.increment();let u=mo(e,t,2),c=u[0],h=u[1];return{physicalStreamType:i,logicalStreamType:a,logicalLevelTechnique1:o,logicalLevelTechnique2:s,physicalLevelTechnique:l,numValues:c,byteLength:h,decompressedCount:c}}function tp(e,t,r){if(!t)return e;let i=t.size(),a=e.constructor,n=new a(i),o=0;for(let s=0;s=o);){let s=e[i.increment()];if(s<=127){let l=s+3,u=e[i.increment()],c=Math.min(n+l,t);a.fill(u,n,c),n=c}else{let l=256-s;for(let u=0;u=12?$Ne.decode(e.subarray(t,r)):HNe(e,t,r)}function HNe(e,t,r){let i="",a=t;for(;a239?4:n>223?3:n>191?2:1;if(a+s>r)break;let l,u,c;s===1?n<128&&(o=n):s===2?(l=e[a+1],(l&192)==128&&(o=(n&31)<<6|l&63,o<=127&&(o=null))):s===3?(l=e[a+1],u=e[a+2],(l&192)==128&&(u&192)==128&&(o=(n&15)<<12|(l&63)<<6|u&63,(o<=2047||o>=55296&&o<=57343)&&(o=null))):s===4&&(l=e[a+1],u=e[a+2],c=e[a+3],(l&192)==128&&(u&192)==128&&(c&192)==128&&(o=(n&15)<<18|(l&63)<<12|(u&63)<<6|c&63,(o<=65535||o>=1114112)&&(o=null))),o===null?(o=65533,s=1):o>65535&&(o-=65536,i+=String.fromCharCode(o>>>10&1023|55296),o=56320|o&1023),i+=String.fromCharCode(o),a+=s}return i}function Z4(e,t,r,i,a){return KNe(Im(e,t,r),r,i,a)}function fo(e,t,r,i,a){return JNe(Im(e,t,r),r,i,a)}function Bf(e,t,r){return eVe(Im(e,t,r),r)}function Im(e,t,r){let i=r.physicalLevelTechnique;switch(i){case Qs.FAST_PFOR:return uNe(e,r.numValues,r.byteLength,t);case Qs.VARINT:return mo(e,t,r.numValues);case Qs.NONE:return GNe(e,t,r.numValues);default:throw Error(`Specified physicalLevelTechnique ${i} is not supported (yet).`)}}function P2(e,t,r){let i=r.physicalLevelTechnique;switch(i){case Qs.VARINT:return PC(e,t,r.numValues);case Qs.NONE:return jNe(e,t,r.numValues);default:throw Error(`Specified physicalLevelTechnique ${i} is not supported (yet).`)}}function ZNe(e,t,r){let i=Im(e,t,r);return i.length===1?ii(i[0]):ENe(i)}function zC(e,t,r){let i=Im(e,t,r);return i.length===1?r.logicalLevelTechnique1===Pr.DELTA?ii(i[0]):i[0]:SNe(i)}function joe(e,t,r){return kNe(Im(e,t,r))}function $oe(e,t,r){return PNe(PC(e,t,r.numValues))}function Hoe(e,t,r,i){return Yoe(P2(e,t,r),r,i)}function RC(e,t,r,i){return Woe(P2(e,t,r),r,i)}function YNe(e,t,r,i){let a=WNe(e,t,r,!1);return i?tp(a,i,0):a}function WNe(e,t,r,i){if(r.physicalLevelTechnique===Qs.VARINT)return QNe(oNe(e,t,r.numValues),r,i);let a=P2(e,t,r),n=i?Yoe(a,r):Woe(a,r);return Float64Array.from(n,Number)}function XNe(e,t,r){let i=P2(e,t,r);return i.length===1?po(i[0]):FNe(i)}function Zoe(e,t,r){let i=P2(e,t,r);return i.length===1?r.logicalLevelTechnique1===Pr.DELTA?po(i[0]):i[0]:CNe(i)}function KNe(e,t,r,i){let a;switch(t.logicalLevelTechnique1){case Pr.DELTA:if(t.logicalLevelTechnique2===Pr.RLE){let n=t;if(!i)return ANe(e,n.runs,n.numRleValues);e=mk(e,n.runs,n.numRleValues),a=Rre(e)}else a=Rre(e);break;case Pr.RLE:a=mNe(e,t.runs,t.numRleValues);break;case Pr.MORTON:IC(e),a=new Int32Array(e);break;case Pr.COMPONENTWISE_DELTA:if(r&&!i)return Noe(e,r.scale,r.min,r.max);a=_Ne(e);break;case Pr.NONE:a=hNe(e);break;default:throw Error(`The specified Logical level technique is not supported: ${t.logicalLevelTechnique1}`)}return i?tp(a,i,0):a}function JNe(e,t,r,i){let a;switch(t.logicalLevelTechnique1){case Pr.DELTA:if(t.logicalLevelTechnique2===Pr.RLE){let n=t;a=qre(mk(e,n.runs,n.numRleValues))}else a=qre(e);break;case Pr.RLE:a=mk(e,t.runs,t.numRleValues);break;case Pr.MORTON:IC(e),a=e;break;case Pr.COMPONENTWISE_DELTA:a=r&&!i?DNe(e,r.scale,r.min,r.max):MNe(e);break;case Pr.NONE:a=e;break;default:throw Error(`The specified Logical level technique is not supported: ${t.logicalLevelTechnique1}`)}return i?tp(a,i,0):a}function Yoe(e,t,r){let i;switch(t.logicalLevelTechnique1){case Pr.DELTA:if(t.logicalLevelTechnique2===Pr.RLE){let a=t;if(!r)return TNe(e,a.runs,a.numRleValues);e=vk(e,a.runs,a.numRleValues),i=Bre(e)}else i=Bre(e);break;case Pr.RLE:i=vNe(e,t.runs,t.numRleValues);break;case Pr.NONE:i=fNe(e);break;default:throw Error(`The specified Logical level technique is not supported: ${t.logicalLevelTechnique1}`)}return r?tp(i,r,BigInt(0)):i}function Woe(e,t,r){let i;switch(t.logicalLevelTechnique1){case Pr.DELTA:if(t.logicalLevelTechnique2===Pr.RLE){let a=t;i=Ore(vk(e,a.runs,a.numRleValues))}else i=Ore(e);break;case Pr.RLE:i=vk(e,t.runs,t.numRleValues);break;case Pr.NONE:i=e;break;default:throw Error(`The specified Logical level technique is not supported: ${t.logicalLevelTechnique1}`)}return r?tp(i,r,BigInt(0)):i}function QNe(e,t,r){switch(t.logicalLevelTechnique1){case Pr.DELTA:if(t.logicalLevelTechnique2===Pr.RLE){let i=t;e=Ooe(e,i.runs,i.numRleValues)}return pNe(e),e;case Pr.RLE:return rVe(e,t,r);case Pr.NONE:return r&&dNe(e),e;default:throw Error(`The specified Logical level technique is not supported: ${t.logicalLevelTechnique1}`)}}function eVe(e,t){if(t.logicalLevelTechnique1===Pr.DELTA&&t.logicalLevelTechnique2===Pr.NONE)return xNe(e);if(t.logicalLevelTechnique1===Pr.RLE&&t.logicalLevelTechnique2===Pr.NONE){let r=t;return wNe(e,r.runs,r.numRleValues)}if(t.logicalLevelTechnique1===Pr.NONE&&t.logicalLevelTechnique2===Pr.NONE){yNe(e);let r=new Uint32Array(t.numValues+1);return r[0]=0,r.set(e,1),r}if(t.logicalLevelTechnique1===Pr.DELTA&&t.logicalLevelTechnique2===Pr.RLE){let r=t,i=bNe(e,r.runs,r.numRleValues);return IC(i),new Uint32Array(i)}throw Error("Only delta encoding is supported for transforming length to offset streams yet.")}function Vw(e,t,r,i,a="int32"){let n=e.logicalLevelTechnique1;if(n===Pr.RLE)return e.runs===1?fa.CONST:fa.FLAT;if(n!==Pr.DELTA||e.logicalLevelTechnique2!==Pr.RLE)return e.numValues===1?fa.CONST:fa.FLAT;let o=t instanceof Lu?t.size():t,s=e;if(s.numRleValues!==o)return fa.FLAT;if(s.runs===1)return fa.SEQUENCE;if(s.runs!==2)return e.numValues===1?fa.CONST:fa.FLAT;let l=i.get();if(e.physicalLevelTechnique===Qs.VARINT)return tVe(r,i,a)?fa.SEQUENCE:e.numValues===1?fa.CONST:fa.FLAT;let u=i.get(),c=new Int32Array(r.buffer,r.byteOffset+u,4);return i.set(l),c[2]===2&&c[3]===2?fa.SEQUENCE:e.numValues===1?fa.CONST:fa.FLAT}function tVe(e,t,r){let i=new Roe(t.get());if(r==="int64"){let n=PC(e,i,4);return n[2]===BigInt(2)&&n[3]===BigInt(2)}let a=mo(e,i,4);return a[2]===2&&a[3]===2}function rVe(e,t,r){return r?gNe(e,t.runs,t.numRleValues):Ooe(e,t.runs,t.numRleValues)}function BC(e,t,r){return{x:Vre(e,t)-r,y:Vre(e>>1,t)-r}}function Vre(e,t){let r=0;for(let i=0;i>i;return r}function iVe(e){let t=Array(e.numGeometries),r=1,i=1,a=1,n=0,o=0,s=0,l=e.mortonSettings,u=e.topologyVector,c=u.geometryOffsets,h=u.partOffsets,f=u.ringOffsets,d=e.vertexOffsets,p=!d||d.length===0,m=e.containsPolygonGeometry(),g=e.vertexBuffer;for(let y=0;y[A]),r+=b,i+=b}break;case Yn.LINESTRING:{let b;m?(b=f[i]-f[i-1],i++):b=h[r]-h[r-1],r++;let _;p?(_=J1(g,o,b,!1),o+=b*2):(_=Ld(e.vertexBufferType,g,d,s,b,!1,l),s+=b),t[n++]=[_],c&&a++}break;case Yn.POLYGON:{let b=h[r]-h[r-1];r++;let _=Array(b-1),A,T=f[i]-f[i-1];if(i++,p){A=J1(g,o,T,!0),o+=T*2;for(let M=0;M<_.length;M++)T=f[i]-f[i-1],i++,_[M]=J1(g,o,T,!0),o+=T*2}else{A=Ld(e.vertexBufferType,g,d,s,T,!0,l),s+=T;for(let M=0;M<_.length;M++)T=f[i]-f[i-1],i++,_[M]=Ld(e.vertexBufferType,g,d,s,T,!0,l),s+=T}t[n++]=[A].concat(_),c&&a++}break;case Yn.MULTILINESTRING:{let b=c[a]-c[a-1];a++;let _=Array(b);for(let A=0;Ar?t[n++]:1);return i}function $re(e,t,r,i){let a=new Uint32Array(t[t.length-1]+1),n=0;a[0]=n;let o=1,s=0;for(let l=0;l0;)a[n++]=e[u++]}}return a}function nse(e,t,r,i,a){var d,p;let n,o,s,l,u,c=a,h,f;for(let m=0;m1&&!d.nullable||p===1&&d.nullable)throw Error(`The number of streams for the child field ${d.name} does not match its nullability. nullibilty: ${d.nullable}, numStreams: ${p}`);let g;if(d.nullable){let x=ba(e,t);g=new Lu(Pm(e,x.numValues,x.byteLength,t),x.numValues)}let y=fo(e,t,ba(e,t),void 0,g);if(s){if(!o)throw Error(`Incomplete shared FSST dictionary for column "${m}"`);c[f++]=new ase(m,y,a,n,o,s,g,h)}else c[f++]=new fm(m,y,a,n,g)}return c}function wVe(e,t,r,i){let a=AVe(r);if(i===0)return a.map(c=>new Zre(c,[]));let n=TVe(e,t,i),o=(n.presentStream?n.presentCount:n.lengthStream.length)/a.length,s=[],l=0,u=0;for(let c=0;c{var i;return e.name+((i=r.name)!=null?i:"")})}function TVe(e,t,r){let i=e[t.get()];t.add(1);let a=fo(e,t,ba(e,t)),n=r-1,o=[];i&Dc.STRING&&(n-=MVe(e,t,o)),n-=DVe(e,t,i,o),n-=SVe(e,t,i,o);let s,l=0;if(i&Dc.PRESENCE){let c=EVe(e,t);s=c.value,l=c.count,n--}let u=new Uint32Array;if(n>0&&(u=fo(e,t,ba(e,t)),n--),n!==0)throw Error(`Unexpected number of remaining streams while decoding map column: ${n}`);return{lengthStream:a,dictionary:o,presentStream:s,presentCount:l,flattenedValues:u}}function MVe(e,t,r){let i=e[t.get()];t.add(1);let a=nse("",e,t,i);if(a)for(let n=0;nn.length)throw Error("Merged map counts underflow while decoding child streams");let d=Array(r),p=i,m=a;for(let x=0;xo.length)throw Error("Map value stream underflow while decoding feature payload");let _=CVe(o,m,b,l);d[x]=_.value,m=_.nextIndex}let g=0;for(let x=i;x=r)throw Error("Unexpected end of map value stream");let a=e[t];if(a===Of.FALSE)return{value:!1,nextIndex:t+1};if(a===Of.TRUE)return{value:!0,nextIndex:t+1};if(a===Of.START_MAP){let n=Yre(e,t,r);return{value:ose(e,t+2,n,i).value,nextIndex:n}}if(a===Of.START_LIST){let n=Yre(e,t,r),o=[],s=t+2;for(;s=r)throw Error("Missing length for nested map/list payload");let i=e[t+1];if(i<2)throw Error(`Invalid nested payload length: ${i}`);let a=t+i;if(a>r)throw Error("Nested payload exceeds containing payload bounds");return a}function sse(e,t){let r=e-Of.COUNT;if(r<0||r>=t.length)throw Error(`Scalar dictionary index out of range: ${e}`);return t[r]}function om(e,t){for(let r of t)e.push(r)}function FVe(e,t,r,i,a,n){var o;return r.type==="scalarType"?n&&!n.has(r.name)?(Voe(i,e,t),null):PVe(i,e,t,a,r.scalarType,r):((o=r.complexType)==null?void 0:o.physicalType)===Vf.MAP?wVe(e,t,r,i):i===0?null:bVe(e,t,r,n)}function PVe(e,t,r,i,a,n){var l;let o;if(e===0)return null;if(n.nullable){let u=ba(t,r),c=u.numValues,h=r.get(),f=Pm(t,c,u.byteLength,r);r.set(h+u.byteLength),o=new Lu(f,u.numValues)}let s=o!=null?o:i;switch(a.physicalType){case vi.UINT_32:case vi.INT_32:return BVe(t,r,n,a,s);case vi.STRING:{let u=n.nullable?e-1:e;return(l=nse(n.name,t,r,u,o))!=null?l:null}case vi.BOOLEAN:return IVe(t,r,n,i,s);case vi.UINT_64:case vi.INT_64:return RVe(t,r,n,s,a);case vi.FLOAT:return LVe(t,r,n,s);case vi.DOUBLE:return zVe(t,r,n,s);default:throw Error(`The specified data type for the field is currently not supported: ${a}`)}}function IVe(e,t,r,i,a){let n=ba(e,t),o=n.numValues,s=t.get(),l=I2(a)?a:void 0,u=Pm(e,o,n.byteLength,t,l);t.set(s+n.byteLength);let c=new Lu(u,o);return new pVe(r.name,c,a)}function LVe(e,t,r,i){let a=ba(e,t),n=I2(i)?i:void 0,o=Uoe(e,t,a.numValues,n);return new mVe(r.name,o,i)}function zVe(e,t,r,i){let a=ba(e,t),n=I2(i)?i:void 0,o=Goe(e,t,a.numValues,n);return new DC(r.name,o,i)}function RVe(e,t,r,i,a){let n=ba(e,t),o=Vw(n,i,e,t,"int64"),s=a.physicalType===vi.INT_64;if(o===fa.FLAT){let u=I2(i)?i:void 0,c=s?Hoe(e,t,n,u):RC(e,t,n,u);return new Xoe(r.name,c,i)}if(o===fa.SEQUENCE){let u=$oe(e,t,n);return new Koe(r.name,u[0],u[1],n.numRleValues,s)}let l=s?XNe(e,t,n):Zoe(e,t,n);return new ise(r.name,l,i,s)}function BVe(e,t,r,i,a){let n=ba(e,t),o=Vw(n,a,e,t),s=i.physicalType===vi.INT_32;if(o===fa.FLAT){let u=I2(a)?a:void 0,c=s?Z4(e,t,n,void 0,u):fo(e,t,n,void 0,u);return new MC(r.name,c,a)}if(o===fa.SEQUENCE){let u=joe(e,t,n);return new SC(r.name,u[0],u[1],n.numRleValues,s)}let l=s?ZNe(e,t,n):zC(e,t,n);return new EC(r.name,l,a,s)}function I2(e){return e instanceof Lu}function lse(e){switch(e){case In.ID:case In.ID|In.ID_NULLABLE:case In.ID|In.ID_LONG:case In.ID|In.ID_LONG|In.ID_NULLABLE:return{nullable:(e&In.ID_NULLABLE)!==0,columnScope:Iy.FEATURE,type:"scalarType",scalarType:{longID:(e&In.ID_LONG)!==0,type:"logicalType",logicalType:zoe.ID}};case In.GEOMETRY:return{nullable:!1,columnScope:Iy.FEATURE,type:"complexType",complexType:{type:"physicalType",physicalType:Vf.GEOMETRY,children:[]}};case In.STRUCT:return{nullable:!1,columnScope:Iy.FEATURE,type:"complexType",complexType:{type:"physicalType",physicalType:Vf.STRUCT,children:[]}};case In.MAP:return{nullable:!0,columnScope:Iy.FEATURE,type:"complexType",complexType:{type:"physicalType",physicalType:Vf.MAP,children:[]}};default:return UVe(e)}}function qVe(e){return e>=In.SCALAR_BASE}function use(e){return e===In.STRUCT||e===In.MAP}function OVe(e){if(e.type==="scalarType"){let t=e.scalarType;if(t.type==="physicalType")switch(t.physicalType){case vi.BOOLEAN:case vi.INT_8:case vi.UINT_8:case vi.INT_32:case vi.UINT_32:case vi.INT_64:case vi.UINT_64:case vi.FLOAT:case vi.DOUBLE:return!1;case vi.STRING:return!0;default:return!1}if(t.type==="logicalType")return!1}else if(e.type==="complexType"){let t=e.complexType;if(t.type==="physicalType")switch(t.physicalType){case Vf.GEOMETRY:case Vf.STRUCT:case Vf.MAP:return!0;default:return!1}}return console.warn("Unexpected column type in hasStreamCount",e),!1}function NVe(e){var t;return e.type==="scalarType"&&((t=e.scalarType)==null?void 0:t.type)==="logicalType"&&e.scalarType.logicalType===zoe.ID}function VVe(e){var t;return e.type==="complexType"&&((t=e.complexType)==null?void 0:t.type)==="physicalType"&&e.complexType.physicalType===Vf.GEOMETRY}function UVe(e){let t;switch(e){case 10:case 11:t=vi.BOOLEAN;break;case 12:case 13:t=vi.INT_8;break;case 14:case 15:t=vi.UINT_8;break;case 16:case 17:t=vi.INT_32;break;case 18:case 19:t=vi.UINT_32;break;case 20:case 21:t=vi.INT_64;break;case 22:case 23:t=vi.UINT_64;break;case 24:case 25:t=vi.FLOAT;break;case 26:case 27:t=vi.DOUBLE;break;case 28:case 29:t=vi.STRING;break;default:return null}return{nullable:!!(e&1),columnScope:Iy.FEATURE,type:"scalarType",scalarType:{longID:!1,type:"physicalType",physicalType:t}}}function NC(e,t){let r=mo(e,t,1)[0];if(r===0)return"";let i=t.get(),a=i+r,n=e.subarray(i,a);return t.add(r),GVe.decode(n)}function jVe(e){let t=e.name,r=e.nullable;return e.type==="scalarType"?{type:"scalarField",scalarField:e.scalarType,name:t,nullable:r}:{type:"complexField",complexField:e.complexType,name:t,nullable:r}}function cse(e,t){let r=mo(e,t,1)[0]>>>0,i=r>=In.SCALAR_BASE?lse(r):null;if(!i)throw Error(`Unsupported field type code ${r}. Supported: 10-29(scalars), 30(STRUCT), 31(MAP)`);let a=Yr(nr({},i),{name:NC(e,t)});if(a.type==="complexType"&&use(r)){let n=a.complexType,o=mo(e,t,1)[0]>>>0;n.children=Array(o);for(let s=0;s>>0,i=lse(r);if(!i)throw Error(`Unsupported column type code ${r}. Supported: ${Wre}`);let a;if(qVe(r))a=NC(e,t);else if(r>>0,s=n.complexType;s.children=Array(o);for(let l=0;l>>0,n=mo(e,t,1)[0]>>>0;i.columns=Array(n);for(let o=0;o>>0,o=i.get()+n;if(o>e.length)throw Error(`Block overruns tile: ${o} > ${e.length}`);let s=mo(e,i,1)[0]>>>0;if(s!==1&&s!==2){i.set(o);continue}let[l,u]=HVe(e,i),c=l.featureTables[0],h=null,f=null,d=[],p=0;for(let g of c.columns){let y=g.name;if(NVe(g)){let x=null;if(g.nullable){let _=ba(e,i),A=i.get(),T=Pm(e,_.numValues,_.byteLength,i);i.set(A+_.byteLength),x=new Lu(T,_.numValues)}let b=ba(e,i);p=x?x.size():b.decompressedCount,h=YVe(e,g,i,y,b,x!=null?x:p,r)}else if(VVe(g)){let x=mo(e,i,1)[0];if(p===0){let b=i.get();p=ba(e,i).decompressedCount,i.set(b)}t&&(t.scale=t.extent/u),f=hVe(e,x,i,p,t)}else{let x=OVe(g)?mo(e,i,1)[0]:1;if(x===0)continue;let b=FVe(e,i,g,x,p,void 0);if(b)if(Array.isArray(b))for(let _ of b)d.push(_);else d.push(b)}}let m=new yOe(c.name,f,h,d,u);a.push(m),i.set(o)}return a}function YVe(e,t,r,i,a,n,o=!1){var c;let s=(c=t.scalarType)!=null&&c.longID?vi.UINT_64:vi.UINT_32,l=typeof n=="number"?void 0:n,u=Vw(a,n,e,r,s===vi.UINT_64?"int64":"int32");if(s===vi.UINT_32)switch(u){case fa.FLAT:return new MC(i,fo(e,r,a,void 0,l),n);case fa.SEQUENCE:{let h=joe(e,r,a);return new SC(i,h[0],h[1],a.numRleValues,!1)}case fa.CONST:return new EC(i,zC(e,r,a),n,!1)}switch(u){case fa.FLAT:return o?new DC(i,YNe(e,r,a,l),n):new Xoe(i,RC(e,r,a,l),n);case fa.SEQUENCE:{let h=$oe(e,r,a);return new Koe(i,h[0],h[1],a.numRleValues,!1)}case fa.CONST:return new ise(i,Zoe(e,r,a),n,!1)}throw Error("Vector type not supported for id column.")}function QVe(e){return typeof e=="object"&&!!e&&"evaluate"in e}function Xre(e,t,r,i,a){return ow(e,(n,o)=>{let s=t instanceof Tw?t.get(o):null;return QVe(s)?s.evaluate(r,i,void 0,a):s})}function eUe(e,t){return t-e}var UPe,Kre,GPe,jPe,$Pe,Jre,gk,HPe,ZPe,yy,l4,En,X4,zu,Cc,o2,hie,bk,cte,die,ct,nw,lIe,fte,U9,wie,Aie,Ru,Die,Sie,dte,Mm,Ts,C4,dm,hIe,h2,f2,Pk,Iie,Ms,or,tn,Lie,Xe,zie,xt,d2,Vt,Fr,ei,Pu,uw,qd,Lr,pIe,cw,p2,hw,Uy,fw,m2,dw,mIe,Rie,Bie,qie,sE,Oie,vIe,gIe,bIe,AIe,Zn,Sr,MIe,lE,yh,Fc,Pc,Ul,Sa,DIe,Ec,kc,Th,zk,vm,SIe,Hie,Rk,Gl,wa,Yie,c4,mh,gte,am,Qie,tae,PIe,IIe,LIe,zIe,RIe,BIe,sae,WIe,XIe,KIe,JIe,QIe,eLe,cae,tLe,rLe,iLe,Sc,Ok,yae,wte,Nk,Gk,DLe,jk,sm,Ac,SLe,Aae,Xd,Hk,Zk,Zy,z4,Fae,GLe,Fte,Pte,sze,Ite,uze,cze,es,Jk,_E,vh,B4,Di,Wy,xE,_2,Lte,zte,pze,Vl,Tw,Gt,cr,Xy,ine,Mw,Ln,Bte,Q9,Bu,qte,mze,vze,Dw,gze,yze,x2,za,Ky,q4,bE,wE,AE,Jy,TE,ME,DE,SE,EE,kE,CE,FE,PE,O4,IE,LE,N4,zE,RE,BE,qE,OE,ane,tC,nne,one,sne,lne,une,cne,hne,fne,dne,pne,Mh,mne,vne,xze,bze,wze,Aze,Tze,K1,Nte,Mze,Dze,Sze,Vte,gne,Eze,yne,qu,NE,_ne,VE,kze,Aa,Cze,Fze,Pze,Ize,V4,xne,Dh,sr,jt,zr,Oo,km,Sh,rC,iC,Lze,Zl,Fy,zd,ph,Cu,zf,wne,Ane,Tne,jd,jE,$te,Hte,aC,Yte,Xze,Wte,Kze,Jze,Ene,Qze,kne,Xte,eRe,tRe,Cw,na,b2,Ine,rRe,Kte,iRe,aRe,Lne,nRe,Jte,oRe,sRe,dn,gh,lRe,Rne,uRe,HE,cRe,Qy,ZE,WE,Wa,G4,XE,KE,Nl,xy,Id,by,wy,Tc,Vd,Fw,um,cm,CRe,jne,rre,BRe,ire,qRe,ORe,$ne,NRe,ek,VRe,URe,jl,Hne,w2,jRe,HRe,No,ar,Yne,wi,Xf,tE,Jne,nre,tBe,ore,rBe,iBe,Qne,aBe,lBe,uBe,ik,cBe,ak,hBe,fBe,eoe,lre,toe,ure,dBe,cre,pBe,hre,mBe,g4,roe,vBe,gBe,yBe,_Be,dre,ioe,$4,DBe,SBe,EBe,mre,kBe,noe,ooe,My,Dy,nm,WBe,XBe,vC,gC,QBe,eqe,tqe,lk,Gat,Are,foe,Rw,gqe,moe,Tre,Sre,hm,w4,jqe,im,qw,xC,tOe,ck,hk,E2,Pre,aOe,Ire,nOe,iE,koe,bC,oOe,Lre,lOe,uOe,Coe,cOe,Poe,hOe,fOe,dOe,Ioe,k2,C2,Qn,aE,F2,gOe,TC,ep,Nw,MC,DC,Loe,SC,EC,yOe,Iy,vi,Vf,zoe,Roe,Pr,Qs,kC,dk,CC,pk,GOe,Ka,Ro,Mc,Dn,INe,Nre,LNe,zNe,RNe,BNe,fa,Lu,$Ne,Xoe,Koe,Yn,Ure,jf,Joe,Qoe,tse,rse,uVe,cVe,pVe,mVe,ise,qC,Hre,fm,ase,Zre,Dc,Of,In,GVe,Wre,oE,WVe,XVe,KVe,JVe,hse,fse=Gi(()=>{UPe=Object.create,Kre=Object.defineProperty,GPe=Object.getOwnPropertyDescriptor,jPe=Object.getOwnPropertyNames,$Pe=Object.getPrototypeOf,Jre=Object.prototype.hasOwnProperty,gk=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),HPe=(e,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(var a=jPe(t),n=0,o=a.length,s;nt[l]).bind(null,s),enumerable:!(i=GPe(t,s))||i.enumerable});return e},ZPe=(e,t,r)=>(r=e==null?{}:UPe($Pe(e)),HPe(t||!e||!e.__esModule||!Jre.call(e,"default")?Kre(r,"default",{value:e,enumerable:!0}):r,e));qe.prototype={clone(){return new qe(this.x,this.y)},add(e){return this.clone()._add(e)},sub(e){return this.clone()._sub(e)},multByPoint(e){return this.clone()._multByPoint(e)},divByPoint(e){return this.clone()._divByPoint(e)},mult(e){return this.clone()._mult(e)},div(e){return this.clone()._div(e)},rotate(e){return this.clone()._rotate(e)},rotateAround(e,t){return this.clone()._rotateAround(e,t)},matMult(e){return this.clone()._matMult(e)},unit(){return this.clone()._unit()},perp(){return this.clone()._perp()},round(){return this.clone()._round()},mag(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals(e){return this.x===e.x&&this.y===e.y},dist(e){return Math.sqrt(this.distSqr(e))},distSqr(e){let t=e.x-this.x,r=e.y-this.y;return t*t+r*r},angle(){return Math.atan2(this.y,this.x)},angleTo(e){return Math.atan2(this.y-e.y,this.x-e.x)},angleWith(e){return this.angleWithSep(e.x,e.y)},angleWithSep(e,t){return Math.atan2(this.x*t-this.y*e,this.x*e+this.y*t)},_matMult(e){let t=e[0]*this.x+e[1]*this.y,r=e[2]*this.x+e[3]*this.y;return this.x=t,this.y=r,this},_add(e){return this.x+=e.x,this.y+=e.y,this},_sub(e){return this.x-=e.x,this.y-=e.y,this},_mult(e){return this.x*=e,this.y*=e,this},_div(e){return this.x/=e,this.y/=e,this},_multByPoint(e){return this.x*=e.x,this.y*=e.y,this},_divByPoint(e){return this.x/=e.x,this.y/=e.y,this},_unit(){return this._div(this.mag()),this},_perp(){let e=this.y;return this.y=this.x,this.x=-e,this},_rotate(e){let t=Math.cos(e),r=Math.sin(e),i=t*this.x-r*this.y,a=r*this.x+t*this.y;return this.x=i,this.y=a,this},_rotateAround(e,t){let r=Math.cos(e),i=Math.sin(e),a=t.x+r*(this.x-t.x)-i*(this.y-t.y),n=t.y+i*(this.x-t.x)+r*(this.y-t.y);return this.x=a,this.y=n,this},_round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},constructor:qe},qe.convert=function(e){if(e instanceof qe)return e;if(Array.isArray(e))return new qe(+e[0],+e[1]);if(e.x!==void 0&&e.y!==void 0)return new qe(+e.x,+e.y);throw Error("Expected [x, y] or {x, y} point format")};En=typeof Float32Array<"u"?Float32Array:Array;X4=KPe;zu=JPe;Cc=J4,o2=Hl;(function(){var e=aie();return function(t,r,i,a,n,o){var s,l;for(r||(r=3),i||(i=0),l=a?Math.min(a*r+i,t.length):t.length,s=i;s.999999?(i[0]=0,i[1]=0,i[2]=0,i[3]=1,i):(Qo(e,a,n),i[0]=e[0],i[1]=e[1],i[2]=e[2],i[3]=1+o,cte(i,i))}})(),(function(){var e=ute(),t=ute();return function(r,i,a,n,o,s){return Ly(e,i,o,s),Ly(t,a,n,s),Ly(r,e,t,2*s*(1-s)),r}})(),(function(){var e=_k();return function(t,r,i,a){return e[0]=i[0],e[3]=i[1],e[6]=i[2],e[1]=a[0],e[4]=a[1],e[7]=a[2],e[2]=-r[0],e[5]=-r[1],e[8]=-r[2],cte(t,aIe(t,e))}})();die=nIe;(function(){var e=rw();return function(t,r,i,a,n,o){var s,l;for(r||(r=2),i||(i=0),l=a?Math.min(a*r+i,t.length):t.length,s=i;sKt(null,null,function*(){let r=new Blob([new Uint8Array(e)],{type:"image/png"});try{return createImageBitmap(r,t)}catch(i){throw Error(`Could not load image because of ${Wn(i).message}. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported.`)}}),Aie=e=>new Promise((t,r)=>{let i=new Image;i.onload=()=>{t(i),URL.revokeObjectURL(i.src),i.onload=null,window.requestAnimationFrame(()=>i.src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=")},i.onerror=()=>r(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."));let a=new Blob([new Uint8Array(e)],{type:"image/png"});i.src=URL.createObjectURL(a)});Ru=85.051129,Die={touchstart:!0,touchmove:!0,touchmoveWindow:!0,touchend:!0,touchcancel:!0},Sie={dblclick:!0,click:!0,mouseover:!0,mouseout:!0,mousedown:!0,mousemove:!0,mousemoveWindow:!0,mouseup:!0,mouseupWindow:!0,contextmenu:!0,wheel:!0};dte="AbortError",Mm=class extends Error{constructor(e=dte){super(e instanceof Error?e.message:e),this.name=dte,e instanceof Error&&e.stack&&(this.stack=e.stack)}};Ts={MAX_PARALLEL_IMAGE_REQUESTS:16,MAX_PARALLEL_IMAGE_REQUESTS_PER_FRAME:8,MAX_TILE_CACHE_ZOOM_LEVELS:5,REGISTERED_PROTOCOLS:{},WORKER_URL:""};C4="global-dispatcher",dm=class extends Error{constructor(e,t,r,i){super(`AJAXError: ${t} (${e}): ${r}`),this.status=e,this.statusText=t,this.url=r,this.body=i}};hIe=e=>{var t;return e.startsWith("file:")||((t=lw())==null?void 0:t.startsWith("file:"))&&!/^\w+:/.test(e)};h2=function(e,t){return Kt(this,null,function*(){var r,i;if(e.url.includes("://")&&!/^https?:|^file:/.test(e.url)){let a=Fk(e.url);if(a){let n=yield a(e,t);return!n.data&&e.type==="arrayBuffer"?tr(n,{data:new ArrayBuffer(0)}):n}if(Ud(self)&&((r=self.worker)!=null&&r.actor))return self.worker.actor.sendAsync({type:"GR",data:e,targetMapId:C4},t)}if(!hIe(e.url)){if(fetch&&Request&&AbortController&&Object.hasOwn(Request.prototype,"signal"))return fIe(e,t);if(Ud(self)&&((i=self.worker)!=null&&i.actor))return self.worker.actor.sendAsync({type:"GR",data:e,mustQueue:!0,targetMapId:C4},t)}return dIe(e,t)})},f2=(e,t)=>h2(tr(e,{type:"json"}),t),Pk=(e,t)=>h2(tr(e,{type:"arrayBuffer"}),t);Iie=e=>{let t=window.document.createElement("video");return t.muted=!0,new Promise(r=>{t.onloadstart=()=>{r(t)};for(let i of e){let a=window.document.createElement("source");Ik(i)||(t.crossOrigin="Anonymous"),a.src=i,t.appendChild(a)}})};Ms=class{constructor(e,t={}){tr(this,t),this.type=e}},or=class extends Ms{constructor(e,t={}){super("error",tr({error:e},t))}},tn=class{on(e,t){return this._listeners||(this._listeners={}),pte(e,t,this._listeners),{unsubscribe:()=>{this.off(e,t)}}}off(e,t){return G9(e,t,this._listeners),G9(e,t,this._oneTimeListeners),this}once(e,t){return t?(this._oneTimeListeners||(this._oneTimeListeners={}),pte(e,t,this._oneTimeListeners),this):new Promise(r=>this.once(e,r))}fire(e,t){var a,n,o,s,l,u;let r=typeof e=="string"?new Ms(e,t||{}):e,i=r.type;if(this.listens(i)){r.target=this;let c=(o=(n=(a=this._listeners)==null?void 0:a[i])==null?void 0:n.slice())!=null?o:[];for(let d of c)d.call(this,r);let h=(u=(l=(s=this._oneTimeListeners)==null?void 0:s[i])==null?void 0:l.slice())!=null?u:[];for(let d of h)G9(i,d,this._oneTimeListeners),d.call(this,r);let f=this._eventedParent;f&&(tr(r,typeof this._eventedParentData=="function"?this._eventedParentData():this._eventedParentData),f.fire(r))}else r instanceof or&&console.error(r.error);return this}listens(e){var t,r,i,a,n;return!!((r=(t=this._listeners)==null?void 0:t[e])!=null&&r.length||(a=(i=this._oneTimeListeners)==null?void 0:i[e])!=null&&a.length||(n=this._eventedParent)!=null&&n.listens(e))}setEventedParent(e,t){return this._eventedParent=e,this._eventedParentData=t,this}},Lie={$version:8,$root:{version:{required:!0,type:"enum",values:[8]},name:{type:"string"},metadata:{type:"*"},center:{type:"array",value:"number",length:2},centerAltitude:{type:"number"},zoom:{type:"number"},bearing:{type:"number",default:0,period:360,units:"degrees"},pitch:{type:"number",default:0,units:"degrees"},roll:{type:"number",default:0,units:"degrees"},state:{type:"state",default:{}},light:{type:"light"},sky:{type:"sky"},projection:{type:"projection"},terrain:{type:"terrain"},sources:{required:!0,type:"sources"},sprite:{type:"sprite"},glyphs:{type:"string"},"font-faces":{type:"fontFaces"},transition:{type:"transition"},layers:{required:!0,type:"array",value:"layer"}},sources:{"*":{type:"source"}},source:["source_vector","source_raster","source_raster_dem","source_geojson","source_video","source_image"],source_vector:{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},encoding:{type:"enum",values:{mvt:{},mlt:{}},default:"mvt"},"*":{type:"*"}},source_raster:{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:"*"}},source_raster_dem:{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:{},custom:{}},default:"mapbox"},redFactor:{type:"number",default:1},blueFactor:{type:"number",default:1},greenFactor:{type:"number",default:1},baseShift:{type:"number",default:0},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_geojson:{type:{required:!0,type:"enum",values:{geojson:{}}},data:{required:!0,type:"*"},maxzoom:{type:"number",default:18},attribution:{type:"string"},buffer:{type:"number",default:128,maximum:512,minimum:0},filter:{type:"filter"},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"}},source_video:{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"}}},source_image:{type:{required:!0,type:"enum",values:{image:{}}},url:{type:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},layer:{id:{type:"string",required:!0},type:{type:"enum",values:{fill:{},line:{},symbol:{},circle:{},heatmap:{},"fill-extrusion":{},raster:{},hillshade:{},"color-relief":{},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"}},layout:["layout_fill","layout_line","layout_circle","layout_heatmap","layout_fill-extrusion","layout_symbol","layout_raster","layout_hillshade","layout_color-relief","layout_background"],layout_background:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible",expression:{interpolated:!1,parameters:["global-state"]},"property-type":"data-constant"}},layout_fill:{"fill-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible",expression:{interpolated:!1,parameters:["global-state"]},"property-type":"data-constant"}},layout_circle:{"circle-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible",expression:{interpolated:!1,parameters:["global-state"]},"property-type":"data-constant"}},layout_heatmap:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible",expression:{interpolated:!1,parameters:["global-state"]},"property-type":"data-constant"}},"layout_fill-extrusion":{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible",expression:{interpolated:!1,parameters:["global-state"]},"property-type":"data-constant"},"fill-extrusion-rounded-corner-distance":{type:"number",default:0,minimum:0,units:"meters","property-type":"constant"}},layout_line:{"line-cap":{type:"enum",values:{butt:{},round:{},square:{}},default:"butt",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"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","feature"]},"property-type":"data-driven"},"line-round-limit":{type:"number",default:1.05,requires:[{"line-join":"round"}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible",expression:{interpolated:!1,parameters:["global-state"]},"property-type":"data-constant"}},layout_symbol:{"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",{"!":"icon-overlap"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-overlap":{type:"enum",values:{never:{},always:{},cooperative:{}},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","feature"]},"property-type":"data-driven"},"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:"padding",default:[2],units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"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:{},"viewport-glyph":{},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-variable-anchor-offset":{type:"variableAnchorOffsetCollection",requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"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",{"!":"text-overlap"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-overlap":{type:"enum",values:{never:{},always:{},cooperative:{}},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"},"symbol-height-offset":{type:"number",default:0,units:"meters",requires:[{"symbol-placement":["point"]}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"symbol-height-anchor":{type:"enum",values:{ground:{},absolute:{}},default:"ground",requires:["symbol-height-offset"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible",expression:{interpolated:!1,parameters:["global-state"]},"property-type":"data-constant"}},layout_raster:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible",expression:{interpolated:!1,parameters:["global-state"]},"property-type":"data-constant"}},layout_hillshade:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible",expression:{interpolated:!1,parameters:["global-state"]},"property-type":"data-constant"}},"layout_color-relief":{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible",expression:{interpolated:!1,parameters:["global-state"]},"property-type":"data-constant"}},filter:{type:"boolean",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},filter_operator:{type:"enum",values:{"==":{},"!=":{},">":{},">=":{},"<":{},"<=":{},in:{},"!in":{},all:{},any:{},none:{},has:{},"!has":{}}},geometry_type:{type:"enum",values:{Point:{},LineString:{},Polygon:{}}},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:{type:"array",minimum:0,maximum:24,value:["number","color"],length:2},expression:{type:"array",value:"expression_name",minimum:1},light:{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}},sky:{"sky-color":{type:"color","property-type":"data-constant",default:"#88C6FC",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"horizon-color":{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"fog-color":{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"fog-ground-blend":{type:"number","property-type":"data-constant",default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"horizon-fog-blend":{type:"number","property-type":"data-constant",default:.8,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"sky-horizon-blend":{type:"number","property-type":"data-constant",default:.8,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"atmosphere-blend":{type:"number","property-type":"data-constant",default:.8,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0}},terrain:{source:{type:"string",required:!0},exaggeration:{type:"number",minimum:0,default:1}},projection:{type:{type:"projectionDefinition",default:"mercator","property-type":"data-constant",transition:!1,expression:{interpolated:!0,parameters:["zoom"]}}},paint:["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_symbol","paint_raster","paint_hillshade","paint_color-relief","paint_background"],paint_fill:{"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-layer-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","global-state"]},"property-type":"data-constant"},"fill-color":{type:"color",default:"#000000",transition:!0,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"}},"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,units:"meters",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{type:"number",default: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:{"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-layer-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","global-state"]},"property-type":"data-constant"},"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","feature"]},"property-type":"cross-faded-data-driven"},"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"}},paint_circle:{"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"}},paint_heatmap:{"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"}},paint_symbol:{"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"}},paint_raster:{"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"},resampling:{type:"enum",values:{linear:{},nearest:{}},default:"linear",expression:{interpolated:!1,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"}},paint_hillshade:{"hillshade-illumination-direction":{type:"numberArray",default:335,minimum:0,maximum:359,transition:!1,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-illumination-altitude":{type:"numberArray",default:45,minimum:0,maximum:90,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:"colorArray",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-highlight-color":{type:"colorArray",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"},"hillshade-method":{type:"enum",values:{standard:{},basic:{},combined:{},igor:{},multidirectional:{}},default:"standard",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},resampling:{type:"enum",values:{linear:{},nearest:{}},default:"linear",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},"paint_color-relief":{"color-relief-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"color-relief-color":{type:"color",transition:!1,expression:{interpolated:!0,parameters:["elevation"]},"property-type":"color-ramp"},resampling:{type:"enum",values:{linear:{},nearest:{}},default:"linear",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_background:{"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"}},transition:{duration:{type:"number",default:300,minimum:0,units:"milliseconds"},delay:{type:"number",default:0,minimum:0,units:"milliseconds"}},"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:{"*":{type:"string"}},interpolation:{type:"array",value:"interpolation_name",minimum:1},interpolation_name:{type:"enum",values:{linear:{syntax:{overloads:[{parameters:[],"output-type":"interpolation"}],parameters:[]}},exponential:{syntax:{overloads:[{parameters:["base"],"output-type":"interpolation"}],parameters:[{name:"base",type:"number literal"}]}},"cubic-bezier":{syntax:{overloads:[{parameters:["x1","y1","x2","y2"],"output-type":"interpolation"}],parameters:[{name:"x1",type:"number literal"},{name:"y1",type:"number literal"},{name:"x2",type:"number literal"},{name:"y2",type:"number literal"}]}}}}},Xe=Lie,zie=["type","source","source-layer","minzoom","maxzoom","filter","layout"],xt=class{constructor(e,t,r,i,a="error"){this.message=(e?`${e}: `:"")+r,i&&(this.identifier=i),this.severity=a,t!=null&&t.__line__&&(this.line=t.__line__)}},d2={kind:"null"},Vt={kind:"number"},Fr={kind:"string"},ei={kind:"boolean"},Pu={kind:"color"},uw={kind:"projectionDefinition"},qd={kind:"object"},Lr={kind:"value"},pIe={kind:"error"},cw={kind:"collator"},p2={kind:"formatted"},hw={kind:"padding"},Uy={kind:"colorArray"},fw={kind:"numberArray"},m2={kind:"resolvedImage"},dw={kind:"variableAnchorOffsetCollection"};mIe=[d2,Vt,Fr,ei,Pu,uw,p2,qd,zo(Lr),hw,fw,Uy,m2,dw];Rie=.96422,Bie=.82521,qie=4/29,sE=6/29,Oie=3*sE*sE,vIe=Math.PI/180,gIe=180/Math.PI;bIe=Object.hasOwn||function(e,t){return Object.prototype.hasOwnProperty.call(e,t)};AIe={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]};Sr=(Zn=class{constructor(t,r,i,a=1,n=!0){this.r=t,this.g=r,this.b=i,this.a=a,n||(this.r*=a,this.g*=a,this.b*=a,a||this.overwriteGetter("rgb",[t,r,i,a]))}static parse(t){if(t instanceof Zn)return t;if(typeof t!="string")return;let r=wIe(t);if(r)return new Zn(...r,!1)}get rgb(){let{r:t,g:r,b:i,a}=this,n=a||1/0;return this.overwriteGetter("rgb",[t/n,r/n,i/n,a])}get hcl(){return this.overwriteGetter("hcl",yIe(this.rgb))}get lab(){return this.overwriteGetter("lab",Vie(this.rgb))}overwriteGetter(t,r){return Object.defineProperty(this,t,{value:r}),r}toString(){let[t,r,i,a]=this.rgb;return`rgba(${[t,r,i].map(n=>Math.round(n*255)).join(",")},${a})`}static interpolate(t,r,i,a="rgb"){switch(a){case"rgb":{let[n,o,s,l]=pm(t.rgb,r.rgb,i);return new Zn(n,o,s,l,!1)}case"hcl":{let[n,o,s,l]=t.hcl,[u,c,h,f]=r.hcl,d,p;if(!isNaN(n)&&!isNaN(u)){let b=u-n;u>n&&b>180?b-=360:u180&&(b+=360),d=n+i*b}else isNaN(n)?isNaN(u)?d=NaN:(d=u,(s===1||s===0)&&(p=c)):(d=n,(h===1||h===0)&&(p=o));let[m,g,y,x]=_Ie([d,p!=null?p:Nf(o,c,i),Nf(s,h,i),Nf(l,f,i)]);return new Zn(m,g,y,x,!1)}case"lab":{let[n,o,s,l]=Uie(pm(t.lab,r.lab,i));return new Zn(n,o,s,l,!1)}}}},Zn.black=new Zn(0,0,0,1),Zn.white=new Zn(1,1,1,1),Zn.transparent=new Zn(0,0,0,0),Zn.red=new Zn(1,0,0,1),Zn),MIe=["bottom","center","top"],lE=class{constructor(e,t,r,i,a,n){this.text=e,this.image=t,this.scale=r,this.fontStack=i,this.textColor=a,this.verticalAlign=n}},yh=class T4{constructor(t){this.sections=t}static fromString(t){return new T4([new lE(t,null,null,null,null,null)])}isEmpty(){return this.sections.length===0||!this.sections.some(t=>t.text.length!==0||t.image&&t.image.name.length!==0)}static factory(t){return t instanceof T4?t:T4.fromString(t)}toString(){return this.sections.length===0?"":this.sections.map(t=>t.text).join("")}},Fc=class Sy{constructor(t){this.values=t.slice()}static parse(t){if(t instanceof Sy)return t;if(typeof t=="number")return new Sy([t,t,t,t]);if(Array.isArray(t)&&!(t.length<1||t.length>4)){for(let r of t)if(typeof r!="number")return;switch(t.length){case 1:t=[t[0],t[0],t[0],t[0]];break;case 2:t=[t[0],t[1],t[0],t[1]];break;case 3:t=[t[0],t[1],t[2],t[1]]}return new Sy(t)}}toString(){return JSON.stringify(this.values)}static interpolate(t,r,i){return new Sy(pm(t.values,r.values,i))}},Pc=class Ey{constructor(t){this.values=t.slice()}static parse(t){if(t instanceof Ey)return t;if(typeof t=="number")return new Ey([t]);if(Array.isArray(t)){for(let r of t)if(typeof r!="number")return;return new Ey(t)}}toString(){return JSON.stringify(this.values)}static interpolate(t,r,i){return new Ey(pm(t.values,r.values,i))}},Ul=class ky{constructor(t){this.values=t.slice()}static parse(t){if(t instanceof ky)return t;if(typeof t=="string"){let i=Sr.parse(t);return i?new ky([i]):void 0}if(!Array.isArray(t))return;let r=[];for(let i of t){if(typeof i!="string")return;let a=Sr.parse(i);if(!a)return;r.push(a)}return new ky(r)}toString(){return JSON.stringify(this.values)}static interpolate(t,r,i,a="rgb"){let n=[];if(t.values.length!=r.values.length)throw Error(`colorArray: Arrays have mismatched length (${t.values.length} vs. ${r.values.length}), cannot interpolate.`);for(let o=0;o=s)return r.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',u);let h=r.parse(l,c,n);if(!h)return null;n||(n=h.type),a.push([s,h])}return new Zie(n,i,a,r.key)}evaluate(t){let r=this.labels,i=this.outputs;if(r.length===1)return i[0].evaluate(t);let a=this.input.evaluate(t);if(a<=r[0])return i[0].evaluate(t);let n=r.length;return a>=r[n-1]?i[n-1].evaluate(t):i[pw(r,a,this.key)].evaluate(t)}eachChild(t){t(this.input);for(let r of this.outputs)t(r)}outputDefined(){return this.outputs.every(t=>t.outputDefined())}};Gl=class uE{constructor(t,r,i,a,n,o){this.type=t,this.operator=r,this.interpolation=i,this.input=a,this.key=o,this.labels=[],this.outputs=[];for(let[s,l]of n)this.labels.push(s),this.outputs.push(l)}static interpolationFactor(t,r,i,a){let n=0;if(t.name==="exponential")n=Y9(r,t.base,i,a);else if(t.name==="linear")n=Y9(r,1,i,a);else if(t.name==="cubic-bezier"){let o=t.controlPoints;n=EIe(o[0],o[1],o[2],o[3])(Y9(r,1,i,a))}return n}static parse(t,r){let[i,a,n,...o]=t;if(!Array.isArray(a)||a.length===0)return r.error("Expected an interpolation type expression.",1);if(a[0]==="linear")a={name:"linear"};else if(a[0]==="exponential"){let u=a[1];if(typeof u!="number")return r.error("Exponential interpolation requires a numeric base.",1,1);a={name:"exponential",base:u}}else if(a[0]==="cubic-bezier"){let u=a.slice(1);if(u.length!==4||u.some(c=>typeof c!="number"||c<0||c>1))return r.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);a={name:"cubic-bezier",controlPoints:u}}else return r.error(`Unknown interpolation type ${String(a[0])}`,1,0);if(t.length-1<4)return r.error(`Expected at least 4 arguments, but found only ${t.length-1}.`);if((t.length-1)%2!=0)return r.error("Expected an even number of arguments.");if(n=r.parse(n,2,Vt),!n)return null;let s=[],l=null;(i==="interpolate-hcl"||i==="interpolate-lab")&&r.expectedType!=Uy?l=Pu:r.expectedType&&r.expectedType.kind!=="value"&&(l=r.expectedType);for(let u=0;u=c)return r.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',f);let p=r.parse(h,d,l);if(!p)return null;l||(l=p.type),s.push([c,p])}return!If(l,Vt)&&!If(l,uw)&&!If(l,Pu)&&!If(l,hw)&&!If(l,fw)&&!If(l,Uy)&&!If(l,dw)&&!If(l,zo(Vt))?r.error(`Type ${La(l)} is not interpolatable.`):new uE(l,i,a,n,s,r.key)}evaluate(t){let r=this.labels,i=this.outputs;if(r.length===1)return i[0].evaluate(t);let a=this.input.evaluate(t);if(a<=r[0])return i[0].evaluate(t);let n=r.length;if(a>=r[n-1])return i[n-1].evaluate(t);let o=pw(r,a,this.key),s=r[o],l=r[o+1],u=uE.interpolationFactor(this.interpolation,a,s,l),c=i[o].evaluate(t),h=i[o+1].evaluate(t);switch(this.operator){case"interpolate":switch(this.type.kind){case"number":return Nf(c,h,u);case"color":return Sr.interpolate(c,h,u);case"padding":return Fc.interpolate(c,h,u);case"colorArray":return Ul.interpolate(c,h,u);case"numberArray":return Pc.interpolate(c,h,u);case"variableAnchorOffsetCollection":return Ec.interpolate(c,h,u,this.key);case"array":return pm(c,h,u);case"projectionDefinition":return Th.interpolate(c,h,u)}case"interpolate-hcl":switch(this.type.kind){case"color":return Sr.interpolate(c,h,u,"hcl");case"colorArray":return Ul.interpolate(c,h,u,"hcl")}case"interpolate-lab":switch(this.type.kind){case"color":return Sr.interpolate(c,h,u,"lab");case"colorArray":return Ul.interpolate(c,h,u,"lab")}}}eachChild(t){t(this.input);for(let r of this.outputs)t(r)}outputDefined(){return this.outputs.every(t=>t.outputDefined())}};wa={color:Sr.interpolate,number:Nf,padding:Fc.interpolate,numberArray:Pc.interpolate,colorArray:Ul.interpolate,variableAnchorOffsetCollection:Ec.interpolate,array:pm},Yie=class Wie{constructor(t){this.type=p2,this.sections=t}static parse(t,r){if(t.length<2)return r.error("Expected at least one argument.");let i=t[1];if(!Array.isArray(i)&&typeof i=="object")return r.error("First argument must be an image or text section.");let a=[],n=!1;for(let o=1;o<=t.length-1;++o){let s=t[o];if(n&&typeof s=="object"&&!Array.isArray(s)){n=!1;let l=null;if(s["font-scale"]&&(l=r.parse(s["font-scale"],1,Vt),!l))return null;let u=null;if(s["text-font"]&&(u=r.parse(s["text-font"],1,zo(Fr)),!u))return null;let c=null;if(s["text-color"]&&(c=r.parse(s["text-color"],1,Pu),!c))return null;let h=null;if(s["vertical-align"]){if(typeof s["vertical-align"]=="string"&&!MIe.includes(s["vertical-align"]))return r.error(`'vertical-align' must be one of: 'bottom', 'center', 'top' but found '${s["vertical-align"]}' instead.`);if(h=r.parse(s["vertical-align"],1,Fr),!h)return null}let f=a[a.length-1];f.scale=l,f.font=u,f.textColor=c,f.verticalAlign=h}else{let l=r.parse(t[o],1,Lr);if(!l)return null;let u=l.type.kind;if(u!=="string"&&u!=="value"&&u!=="null"&&u!=="resolvedImage")return r.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");n=!0,a.push({content:l,scale:null,font:null,textColor:null,verticalAlign:null})}}return new Wie(a)}evaluate(t){return new yh(this.sections.map(r=>{let i=r.content.evaluate(t);return Ja(i)===m2?new lE("",i,null,null,null,r.verticalAlign?r.verticalAlign.evaluate(t):null):new lE(Ry(i),null,r.scale?r.scale.evaluate(t):null,r.font?r.font.evaluate(t).join(","):null,r.textColor?r.textColor.evaluate(t):null,r.verticalAlign?r.verticalAlign.evaluate(t):null)}))}eachChild(t){for(let r of this.sections)t(r.content),r.scale&&t(r.scale),r.font&&t(r.font),r.textColor&&t(r.textColor),r.verticalAlign&&t(r.verticalAlign)}outputDefined(){return!1}};c4={string:Fr,number:Vt,boolean:ei,object:qd},mh=class Kie{constructor(t,r,i){this.type=t,this.args=r,this.key=i}static parse(t,r){if(t.length<2)return r.error("Expected at least one argument.");let i=1,a,n=t[0];if(n==="array"){let s;if(t.length>2){let u=t[1];if(typeof u!="string"||!(u in c4)||u==="object")return r.error('The item type argument of "array" must be one of string, number, boolean',1);s=c4[u],i++}else s=Lr;let l;if(t.length>3){if(t[2]!==null&&(typeof t[2]!="number"||t[2]<0||t[2]!==Math.floor(t[2])))return r.error('The length argument to "array" must be a positive integer literal',2);l=t[2],i++}a=zo(s,l)}else{if(!c4[n])throw Error(`Types doesn't contain name = ${n}`);a=c4[n]}let o=[];for(;it.outputDefined())}},gte={"to-boolean":ei,"to-color":Pu,"to-number":Vt,"to-string":Fr},am=class Jie{constructor(t,r,i){this.type=t,this.args=r,this.key=i}static parse(t,r){if(t.length<2)return r.error("Expected at least one argument.");let i=t[0];if(!gte[i])throw Error(`Can't parse ${i} as it is not part of the known types`);if((i==="to-boolean"||i==="to-string")&&t.length!==2)return r.error("Expected one argument.");let a=gte[i],n=[];for(let o=1;o4?`Invalid rgba value ${JSON.stringify(r)}: expected an array containing either three or four numeric values.`:jie(r[0],r[1],r[2],r[3]),!i))return new Sr(r[0]/255,r[1]/255,r[2]/255,r[3])}throw new Sa(i||`Could not parse color from value '${typeof r=="string"?r:JSON.stringify(r)}'`,this.key)}case"padding":{let r;for(let i of this.args){r=i.evaluate(t);let a=Fc.parse(r);if(a)return a}throw new Sa(`Could not parse padding from value '${typeof r=="string"?r:JSON.stringify(r)}'`,this.key)}case"numberArray":{let r;for(let i of this.args){r=i.evaluate(t);let a=Pc.parse(r);if(a)return a}throw new Sa(`Could not parse numberArray from value '${typeof r=="string"?r:JSON.stringify(r)}'`,this.key)}case"colorArray":{let r;for(let i of this.args){r=i.evaluate(t);let a=Ul.parse(r);if(a)return a}throw new Sa(`Could not parse colorArray from value '${typeof r=="string"?r:JSON.stringify(r)}'`,this.key)}case"variableAnchorOffsetCollection":{let r;for(let i of this.args){r=i.evaluate(t);let a=Ec.parse(r);if(a)return a}throw new Sa(`Could not parse variableAnchorOffsetCollection from value '${typeof r=="string"?r:JSON.stringify(r)}'`,this.key)}case"number":{let r=null;for(let i of this.args){if(r=i.evaluate(t),r===null)return 0;let a=Number(r);if(!isNaN(a))return a}throw new Sa(`Could not convert ${JSON.stringify(r)} to number.`,this.key)}case"formatted":return yh.fromString(Ry(this.args[0].evaluate(t)));case"resolvedImage":return kc.fromString(Ry(this.args[0].evaluate(t)));case"projectionDefinition":{let r=this.args[0].evaluate(t);if(Th.parse(r))return r;throw new Sa(`Could not parse projectionDefinition from value '${typeof r=="string"?r:JSON.stringify(r)}'`,this.key)}default:return Ry(this.args[0].evaluate(t))}}eachChild(t){this.args.forEach(t)}outputDefined(){return this.args.every(t=>t.outputDefined())}},Qie=class eae{constructor(t,r){this.type=r.type,this.bindings=[].concat(t),this.result=r}evaluate(t){return this.result.evaluate(t)}eachChild(t){for(let r of this.bindings)t(r[1]);t(this.result)}static parse(t,r){if(t.length<4)return r.error(`Expected at least 3 arguments, but found ${t.length-1} instead.`);let i=[];for(let n=1;n=i.length)throw new Sa(`Array index out of bounds: ${r} > ${i.length-1}.`,this.key);if(r!==Math.floor(r))throw new Sa(`Array index must be an integer, but found ${r} instead.`,this.key);return i[r]}eachChild(t){t(this.index),t(this.input)}outputDefined(){return!1}},IIe=class aae{constructor(t,r,i){this.needle=t,this.haystack=r,this.key=i,this.type=ei}static parse(t,r){if(t.length!==3)return r.error(`Expected 2 arguments, but found ${t.length-1} instead.`);let i=r.parse(t[1],1,Lr),a=r.parse(t[2],2,Lr);return!i||!a?null:Lk(i.type,[ei,Fr,Vt,d2,Lr])?new aae(i,a,r.key):r.error(`Expected first argument to be of type boolean, string, number or null, but found ${La(i.type)} instead`)}evaluate(t){let r=this.needle.evaluate(t),i=this.haystack.evaluate(t);if(!i)return!1;if(!Od(r,["boolean","string","number","null"]))throw new Sa(`Expected first argument to be of type boolean, string, number or null, but found ${La(Ja(r))} instead.`,this.key);if(!Od(i,["string","array"]))throw new Sa(`Expected second argument to be of type array or string, but found ${La(Ja(i))} instead.`,this.key);return i.indexOf(r)>=0}eachChild(t){t(this.needle),t(this.haystack)}outputDefined(){return!0}},LIe=class cE{constructor(t,r,i,a){this.needle=t,this.haystack=r,this.key=i,this.fromIndex=a,this.type=Vt}static parse(t,r){if(t.length<=2||t.length>=5)return r.error(`Expected 2 or 3 arguments, but found ${t.length-1} instead.`);let i=r.parse(t[1],1,Lr),a=r.parse(t[2],2,Lr);if(!i||!a)return null;if(!Lk(i.type,[ei,Fr,Vt,d2,Lr]))return r.error(`Expected first argument to be of type boolean, string, number or null, but found ${La(i.type)} instead`);if(t.length===4){let n=r.parse(t[3],3,Vt);return n?new cE(i,a,r.key,n):null}return new cE(i,a,r.key)}evaluate(t){let r=this.needle.evaluate(t),i=this.haystack.evaluate(t);if(!Od(r,["boolean","string","number","null"]))throw new Sa(`Expected first argument to be of type boolean, string, number or null, but found ${La(Ja(r))} instead.`,this.key);let a;if(this.fromIndex&&(a=this.fromIndex.evaluate(t)),Od(i,["string"])){let n=i.indexOf(r,a);return n===-1?-1:[...i.slice(0,n)].length}if(Od(i,["array"]))return i.indexOf(r,a);throw new Sa(`Expected second argument to be of type array or string, but found ${La(Ja(i))} instead.`,this.key)}eachChild(t){t(this.needle),t(this.haystack),this.fromIndex&&t(this.fromIndex)}outputDefined(){return!1}},zIe=class nae{constructor(t,r,i,a,n,o){this.inputType=t,this.type=r,this.input=i,this.cases=a,this.outputs=n,this.otherwise=o}static parse(t,r){if(t.length<5)return r.error(`Expected at least 4 arguments, but found only ${t.length-1}.`);if(t.length%2!=1)return r.error("Expected an even number of arguments.");let i,a;r.expectedType&&r.expectedType.kind!=="value"&&(a=r.expectedType);let n={},o=[];for(let u=2;u2**53-1)return f.error(`Branch labels must be integers no larger than ${2**53-1}.`);if(typeof p=="number"&&Math.floor(p)!==p)return f.error("Numeric branch labels must be integer values.");if(!i)i=Ja(p);else if(f.checkSubtype(i,Ja(p)))return null;if(n[String(p)]!==void 0)return f.error("Branch labels must be unique.");n[String(p)]=o.length}let d=r.parse(h,u,a);if(!d)return null;a||(a=d.type),o.push(d)}let s=r.parse(t[1],1,Lr);if(!s)return null;let l=r.parse(t[t.length-1],t.length-1,a);return!l||s.type.kind!=="value"&&r.concat(1).checkSubtype(i,s.type)?null:new nae(i,a,s,n,o,l)}evaluate(t){let r=this.input.evaluate(t);return(Ja(r)===this.inputType&&this.outputs[this.cases[r]]||this.otherwise).evaluate(t)}eachChild(t){t(this.input),this.outputs.forEach(t),t(this.otherwise)}outputDefined(){return this.outputs.every(t=>t.outputDefined())&&this.otherwise.outputDefined()}},RIe=class oae{constructor(t,r,i){this.type=t,this.branches=r,this.otherwise=i}static parse(t,r){if(t.length<4)return r.error(`Expected at least 3 arguments, but found only ${t.length-1}.`);if(t.length%2!=0)return r.error("Expected an odd number of arguments.");let i;r.expectedType&&r.expectedType.kind!=="value"&&(i=r.expectedType);let a=[];for(let o=1;or.outputDefined())&&this.otherwise.outputDefined()}},BIe=class hE{constructor(t,r,i,a,n){this.type=t,this.input=r,this.beginIndex=i,this.key=a,this.endIndex=n}static parse(t,r){if(t.length<=2||t.length>=5)return r.error(`Expected 2 or 3 arguments, but found ${t.length-1} instead.`);let i=r.parse(t[1],1,Lr),a=r.parse(t[2],2,Vt);if(!i||!a)return null;if(!Lk(i.type,[zo(Lr),Fr,Lr]))return r.error(`Expected first argument to be of type array or string, but found ${La(i.type)} instead`);if(t.length===4){let n=r.parse(t[3],3,Vt);return n?new hE(i.type,i,a,r.key,n):null}return new hE(i.type,i,a,r.key)}evaluate(t){let r=this.input.evaluate(t),i=this.beginIndex.evaluate(t),a;if(this.endIndex&&(a=this.endIndex.evaluate(t)),Od(r,["string"]))return[...r].slice(i,a).join("");if(Od(r,["array"]))return r.slice(i,a);throw new Sa(`Expected first argument to be of type array or string, but found ${La(Ja(r))} instead.`,this.key)}eachChild(t){t(this.input),t(this.beginIndex),this.endIndex&&t(this.endIndex)}outputDefined(){return!1}},sae=class fE{constructor(t,r){this.type=t,this.args=r}static parse(t,r){if(t.length<2)return r.error("Expected at least one argument.");let i=null,a=r.expectedType;a&&a.kind!=="value"&&(i=a);let n=[];for(let o of t.slice(1)){let s=r.parse(o,1+n.length,i,void 0,{typeAnnotation:"omit"});if(!s)return null;i||(i=s.type),n.push(s)}if(!i)throw Error("No output type");return a&&n.some(o=>Gy(a,o.type))?new fE(Lr,n):new fE(i,n)}evaluate(t){let r=null,i=0,a;for(let n of this.args)if(i++,r=n.evaluate(t),r&&r instanceof kc&&!r.available&&(a||(a=r.name),r=null,i===this.args.length&&(r=a)),r!==null)break;return r}eachChild(t){this.args.forEach(t)}outputDefined(){return this.args.every(t=>t.outputDefined())}};WIe=Dm("==",qIe,lae),XIe=Dm("!=",OIe,jIe),KIe=Dm("<",NIe,$Ie),JIe=Dm(">",VIe,HIe),QIe=Dm("<=",UIe,ZIe),eLe=Dm(">=",GIe,YIe),cae=class hae{constructor(t,r,i){this.type=cw,this.locale=i,this.caseSensitive=t,this.diacriticSensitive=r}static parse(t,r){if(t.length!==2)return r.error("Expected one argument.");let i=t[1];if(typeof i!="object"||Array.isArray(i))return r.error("Collator options argument must be an object.");let a=r.parse(i["case-sensitive"]!==void 0&&i["case-sensitive"],1,ei);if(!a)return null;let n=r.parse(i["diacritic-sensitive"]!==void 0&&i["diacritic-sensitive"],1,ei);if(!n)return null;let o=null;return i.locale&&(o=r.parse(i.locale,1,Fr),!o)?null:new hae(a,n,o)}evaluate(t){return new zk(this.caseSensitive.evaluate(t),this.diacriticSensitive.evaluate(t),this.locale?this.locale.evaluate(t):null)}eachChild(t){t(this.caseSensitive),t(this.diacriticSensitive),this.locale&&t(this.locale)}outputDefined(){return!1}},tLe=class fae{constructor(t,r,i,a,n,o){this.type=Fr,this.number=t,this.locale=r,this.currency=i,this.unit=a,this.minFractionDigits=n,this.maxFractionDigits=o}static parse(t,r){if(t.length!==3)return r.error("Expected two arguments.");let i=r.parse(t[1],1,Vt);if(!i)return null;let a=t[2];if(typeof a!="object"||Array.isArray(a))return r.error("NumberFormat options argument must be an object.");let n=null;if(a.locale&&(n=r.parse(a.locale,1,Fr),!n))return null;let o=null;if(a.currency&&(o=r.parse(a.currency,1,Fr),!o))return null;let s=null;if(a.unit&&(s=r.parse(a.unit,1,Fr),!s))return null;if(o&&s)return r.error("NumberFormat options `currency` and `unit` are mutually exclusive");let l=null;if(a["min-fraction-digits"]&&(l=r.parse(a["min-fraction-digits"],1,Vt),!l))return null;let u=null;return a["max-fraction-digits"]&&(u=r.parse(a["max-fraction-digits"],1,Vt),!u)?null:new fae(i,n,o,s,l,u)}evaluate(t){return new Intl.NumberFormat(this.locale?this.locale.evaluate(t):[],{style:this.currency?"currency":this.unit?"unit":"decimal",currency:this.currency?this.currency.evaluate(t):void 0,unit:this.unit?this.unit.evaluate(t):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(t):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(t):void 0}).format(this.number.evaluate(t))}eachChild(t){t(this.number),this.locale&&t(this.locale),this.currency&&t(this.currency),this.unit&&t(this.unit),this.minFractionDigits&&t(this.minFractionDigits),this.maxFractionDigits&&t(this.maxFractionDigits)}outputDefined(){return!1}},rLe=class dae{constructor(t){this.type=m2,this.input=t}static parse(t,r){if(t.length!==2)return r.error("Expected two arguments.");let i=r.parse(t[1],1,Fr);return i?new dae(i):r.error("No image name provided.")}evaluate(t){let r=this.input.evaluate(t),i=kc.fromString(r);return i&&t.availableImages&&(i.available=t.availableImages.indexOf(r)>-1),i}eachChild(t){t(this.input)}outputDefined(){return!1}},iLe=class pae{constructor(t,r){this.input=t,this.key=r,this.type=Vt}static parse(t,r){if(t.length!==2)return r.error(`Expected 1 argument, but found ${t.length-1} instead.`);let i=r.parse(t[1],1);return i?i.type.kind!=="array"&&i.type.kind!=="string"&&i.type.kind!=="value"?r.error(`Expected argument of type string or array, but found ${La(i.type)} instead.`):new pae(i,r.key):null}evaluate(t){let r=this.input.evaluate(t);if(typeof r=="string")return[...r].length;if(Array.isArray(r))return r.length;throw new Sa(`Expected value to be of type string or array, but found ${La(Ja(r))} instead.`,this.key)}eachChild(t){t(this.input)}outputDefined(){return!1}},Sc=8192;Ok=class D4{constructor(t,r){this.type=ei,this.geojson=t,this.geometries=r}static parse(t,r){if(t.length!==2)return r.error(`'within' expression requires exactly one argument, but found ${t.length-1} instead.`);if(mm(t[1])){let i=t[1];if(i.type==="FeatureCollection"){let a=[];for(let n of i.features){let{type:o,coordinates:s}=n.geometry;o==="Polygon"&&a.push(s),o==="MultiPolygon"&&a.push(...s)}if(a.length)return new D4(i,{type:"MultiPolygon",coordinates:a})}else if(i.type==="Feature"){let a=i.geometry.type;if(a==="Polygon"||a==="MultiPolygon")return new D4(i,i.geometry)}else if(i.type==="Polygon"||i.type==="MultiPolygon")return new D4(i,i)}return r.error("'within' expression requires valid geojson object that contains polygon geometry type.")}evaluate(t){if(t.geometry()!=null&&t.canonicalID()!=null){if(t.geometryType()==="Point")return vLe(t,this.geometries);if(t.geometryType()==="LineString")return gLe(t,this.geometries)}return!1}eachChild(){}outputDefined(){return!0}},yae=class{constructor(e=[],t=(r,i)=>ri)){if(this.data=e,this.length=this.data.length,this.compare=t,this.length>0)for(let r=(this.length>>1)-1;r>=0;r--)this._down(r)}push(e){this.data.push(e),this._up(this.length++)}pop(){if(this.length===0)return;let e=this.data[0],t=this.data.pop();return--this.length>0&&(this.data[0]=t,this._down(0)),e}peek(){return this.data[0]}_up(e){let{data:t,compare:r}=this,i=t[e];for(;e>0;){let a=e-1>>1,n=t[a];if(r(i,n)>=0)break;t[e]=n,e=a}t[e]=i}_down(e){let{data:t,compare:r}=this,i=this.length>>1,a=t[e];for(;e=0)break;t[e]=t[n],e=n}t[e]=a}},wte=Math.PI/180,Nk=class{constructor(e){let t=wte*6378.137*1e3,r=Math.cos(e*wte),i=1/(1-.0066943799901413165*(1-r*r)),a=Math.sqrt(i);this.kx=t*a*r,this.ky=t*a*i*.9933056200098587}distance(e,t){let r=this.wrap(e[0]-t[0])*this.kx,i=(e[1]-t[1])*this.ky;return Math.sqrt(r*r+i*i)}pointOnLine(e,t){let r=1/0,i,a,n,o;for(let s=0;s1?(l=e[s+1][0],u=e[s+1][1]):f>0&&(l+=c/this.kx*f,u+=h/this.ky*f)),c=this.wrap(t[0]-l)*this.kx,h=(t[1]-u)*this.ky;let d=c*c+h*h;d180;)e-=360;return e}};Gk=class S4{constructor(t,r){this.type=Vt,this.geojson=t,this.geometries=r}static parse(t,r){if(t.length!==2)return r.error(`'distance' expression requires exactly one argument, but found ${t.length-1} instead.`);if(mm(t[1])){let i=t[1];if(i.type==="FeatureCollection")return new S4(i,i.features.map(a=>W9(a.geometry)).flat());if(i.type==="Feature")return new S4(i,W9(i.geometry));if("type"in i&&"coordinates"in i)return new S4(i,W9(i))}return r.error("'distance' expression requires valid geojson object that contains polygon geometry type.")}evaluate(t){if(t.geometry()!=null&&t.canonicalID()!=null){if(t.geometryType()==="Point")return ALe(t,this.geometries);if(t.geometryType()==="LineString")return TLe(t,this.geometries);if(t.geometryType()==="Polygon")return MLe(t,this.geometries)}return NaN}eachChild(){}outputDefined(){return!0}},DLe=class xae{constructor(t){let r=null;for(let i of t)if(!r)r=i.type;else{if(r===i.type)continue;r=Lr;break}this.type=zo(r!=null?r:Lr,t.length),this.arr=t}static parse(t,r){if(t.length!==2)return r.error(`'semiliteral' expression requires exactly one argument, but found ${t.length-1} instead.`);if(!mm(t[1]))return r.error(`invalid value of type "${typeof t[1]}"`);let i=t[1],a=Ja(i);if(a.kind==="array"){let n=i,o=r.concat(1),s=[];for(let l=0;lr.evaluate(t))}eachChild(t){this.arr.forEach(t)}outputDefined(){return this.arr.every(t=>t.outputDefined())}},jk=class bae{constructor(t){this.key=t,this.type=Lr}static parse(t,r){if(t.length!==2)return r.error(`Expected 1 argument, but found ${t.length-1} instead.`);let i=t[1];return i==null?r.error("Global state property must be defined."):typeof i=="string"?new bae(i):r.error(`Global state property must be string, but found ${typeof t[1]} instead.`)}evaluate(t){var i,a;let r=(i=t.globals)==null?void 0:i.globalState;return!r||Object.keys(r).length===0?null:(a=zy(r,this.key))!=null?a:null}eachChild(){}outputDefined(){return!1}},sm={"==":WIe,"!=":XIe,">":JIe,"<":KIe,">=":eLe,"<=":QIe,array:mh,at:PIe,boolean:mh,case:RIe,coalesce:sae,collator:cae,format:Yie,image:rLe,in:IIe,"index-of":LIe,interpolate:Gl,"interpolate-hcl":Gl,"interpolate-lab":Gl,length:iLe,let:Qie,literal:vm,match:zIe,number:mh,"number-format":tLe,object:mh,semiliteral:DLe,slice:BIe,step:Rk,string:mh,"to-boolean":am,"to-color":am,"to-number":am,"to-string":am,var:tae,within:Ok,distance:Gk,"global-state":jk},Ac=class extends Error{constructor(e,t){super(t),this.message=t,this.key=e}},SLe=class wae{constructor(t,r=[]){this.parent=t,this.bindings={};for(let[i,a]of r)this.bindings[i]=a}concat(t){return new wae(this,t)}get(t){if(this.bindings[t])return this.bindings[t];if(this.parent)return this.parent.get(t);throw Error(`${t} not found in scope.`)}has(t){return this.bindings[t]?!0:this.parent?this.parent.has(t):!1}},Aae=class Tae{constructor(t,r,i=[],a,n=new SLe,o=[]){this.registry=t,this.path=i,this.key=i.map(s=>`[${s}]`).join(""),this.scope=n,this.errors=o,this.expectedType=a,this._isConstant=r}parse(t,r,i,a,n={}){return r==null?this._parse(t,n):this.concat(r,i,a)._parse(t,n)}_parse(t,r){(t===null||typeof t=="string"||typeof t=="boolean"||typeof t=="number")&&(t=["literal",t]);let i=this.key;function a(n,o,s){return s==="assert"?new mh(o,[n],i):s==="coerce"?new am(o,[n],i):n}if(Array.isArray(t)){if(t.length===0)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');let n=t[0];if(typeof n!="string")return this.error(`Expression name must be a string, but found ${typeof n} instead. If you wanted a literal array, use ["literal", [...]].`,0),null;let o=this.registry[n];if(o){let s=o.parse(t,this);if(!s)return null;if(this.expectedType){let l=this.expectedType,u=s.type;if((l.kind==="string"||l.kind==="number"||l.kind==="boolean"||l.kind==="object"||l.kind==="array")&&u.kind==="value")s=a(s,l,r.typeAnnotation||"assert");else if(l.kind==="projectionDefinition"&&["string","array","value"].includes(u.kind)||["color","formatted","resolvedImage"].includes(l.kind)&&["value","string"].includes(u.kind)||["padding","numberArray"].includes(l.kind)&&["value","number","array"].includes(u.kind)||l.kind==="colorArray"&&["value","string","array"].includes(u.kind)||l.kind==="variableAnchorOffsetCollection"&&["value","array"].includes(u.kind))s=a(s,l,r.typeAnnotation||"coerce");else if(this.checkSubtype(l,u))return null}if(!(s instanceof vm)&&s.type.kind!=="resolvedImage"&&this._isConstant(s)){let l=new Hie;try{s=new vm(s.type,s.evaluate(l))}catch(u){return this.error(u.message),null}}return s}return this.error(`Unknown expression "${n}". If you wanted a literal array, use ["literal", [...]].`,0)}return t===void 0?this.error("'undefined' value invalid. Use null instead."):typeof t=="object"?this.error('Bare objects invalid. Use ["literal", {...}] instead.'):this.error(`Expected an array, but found ${typeof t} instead.`)}concat(t,r,i){let a=typeof t=="number"?this.path.concat(t):this.path,n=i?this.scope.concat(i):this.scope;return new Tae(this.registry,this._isConstant,a,r||null,n,this.errors)}error(t,...r){let i=`${this.key}${r.map(a=>`[${a}]`).join("")}`;this.errors.push(new Ac(i,t))}checkSubtype(t,r){let i=Gy(t,r);return i&&this.error(i),i}},Xd=class Cy{constructor(t,r,i,a,n){this.name=t,this.type=r,this._evaluate=i,this.args=a,this.key=n}evaluate(t){return this._evaluate(t,this.args,this.key)}eachChild(t){this.args.forEach(t)}outputDefined(){return!1}static parse(t,r){let i=t[0],a=Cy.definitions[i];if(!a)return r.error(`Unknown expression "${i}". If you wanted a literal array, use ["literal", [...]].`,0);let n=Array.isArray(a)?a[0]:a.type,o=Array.isArray(a)?[[a[1],a[2]]]:a.overloads,s=o.filter(([u])=>!Array.isArray(u)||u.length===t.length-1),l=null;for(let[u,c]of s){l=new Aae(r.registry,L4,r.path,null,r.scope);let h=[],f=!1;for(let d=1;dkLe(h)).join(" | "),c=[];for(let h=1;h{throw new Sa(t.evaluate(e),r)}],typeof:[Fr,[Lr],(e,[t])=>La(Ja(t.evaluate(e)))],"to-rgba":[zo(Vt,4),[Pu],(e,[t])=>{let[r,i,a,n]=t.evaluate(e).rgb;return[r*255,i*255,a*255,n]}],rgb:[Pu,[Vt,Vt,Vt],Dte],rgba:[Pu,[Vt,Vt,Vt,Vt],Dte],has:{type:ei,overloads:[[[Fr],(e,[t])=>Ste(t.evaluate(e),e.properties())],[[Fr,qd],(e,[t,r])=>Ste(t.evaluate(e),r.evaluate(e))]]},get:{type:Lr,overloads:[[[Fr],(e,[t])=>X9(t.evaluate(e),e.properties())],[[Fr,qd],(e,[t,r])=>X9(t.evaluate(e),r.evaluate(e))]]},"feature-state":[Lr,[Fr],(e,[t])=>X9(t.evaluate(e),e.featureState||{})],properties:[qd,[],e=>e.properties()],"geometry-type":[Fr,[],e=>e.geometryType()],id:[Lr,[],e=>e.id()],zoom:[Vt,[],e=>e.globals.zoom],"heatmap-density":[Vt,[],e=>e.globals.heatmapDensity||0],elevation:[Vt,[],e=>e.globals.elevation||0],"line-progress":[Vt,[],e=>e.globals.lineProgress||0],accumulated:[Lr,[],e=>e.globals.accumulated===void 0?null:e.globals.accumulated],"+":[Vt,Pd(Vt),(e,t)=>{let r=0;for(let i of t)r+=i.evaluate(e);return r}],"*":[Vt,Pd(Vt),(e,t)=>{let r=1;for(let i of t)r*=i.evaluate(e);return r}],"-":{type:Vt,overloads:[[[Vt,Vt],(e,[t,r])=>t.evaluate(e)-r.evaluate(e)],[[Vt],(e,[t])=>-t.evaluate(e)]]},"/":[Vt,[Vt,Vt],(e,[t,r])=>t.evaluate(e)/r.evaluate(e)],"%":[Vt,[Vt,Vt],(e,[t,r])=>t.evaluate(e)%r.evaluate(e)],ln2:[Vt,[],()=>Math.LN2],pi:[Vt,[],()=>Math.PI],e:[Vt,[],()=>Math.E],"^":[Vt,[Vt,Vt],(e,[t,r])=>t.evaluate(e)**+r.evaluate(e)],sqrt:[Vt,[Vt],(e,[t])=>Math.sqrt(t.evaluate(e))],log10:[Vt,[Vt],(e,[t])=>Math.log(t.evaluate(e))/Math.LN10],ln:[Vt,[Vt],(e,[t])=>Math.log(t.evaluate(e))],log2:[Vt,[Vt],(e,[t])=>Math.log(t.evaluate(e))/Math.LN2],sin:[Vt,[Vt],(e,[t])=>Math.sin(t.evaluate(e))],cos:[Vt,[Vt],(e,[t])=>Math.cos(t.evaluate(e))],tan:[Vt,[Vt],(e,[t])=>Math.tan(t.evaluate(e))],asin:[Vt,[Vt],(e,[t])=>Math.asin(t.evaluate(e))],acos:[Vt,[Vt],(e,[t])=>Math.acos(t.evaluate(e))],atan:[Vt,[Vt],(e,[t])=>Math.atan(t.evaluate(e))],min:[Vt,Pd(Vt),(e,t)=>Math.min(...t.map(r=>r.evaluate(e)))],max:[Vt,Pd(Vt),(e,t)=>Math.max(...t.map(r=>r.evaluate(e)))],abs:[Vt,[Vt],(e,[t])=>Math.abs(t.evaluate(e))],round:[Vt,[Vt],(e,[t])=>{let r=t.evaluate(e);return r<0?-Math.round(-r):Math.round(r)}],floor:[Vt,[Vt],(e,[t])=>Math.floor(t.evaluate(e))],ceil:[Vt,[Vt],(e,[t])=>Math.ceil(t.evaluate(e))],"filter-==":[ei,[Fr,Lr],(e,[t,r])=>e.properties()[t.value]===r.value],"filter-id-==":[ei,[Lr],(e,[t])=>e.id()===t.value],"filter-type-==":[ei,[Fr],(e,[t])=>e.geometryType()===t.value],"filter-<":[ei,[Fr,Lr],(e,[t,r])=>{let i=e.properties()[t.value],a=r.value;return typeof i==typeof a&&i{let r=e.id(),i=t.value;return typeof r==typeof i&&r":[ei,[Fr,Lr],(e,[t,r])=>{let i=e.properties()[t.value],a=r.value;return typeof i==typeof a&&i>a}],"filter-id->":[ei,[Lr],(e,[t])=>{let r=e.id(),i=t.value;return typeof r==typeof i&&r>i}],"filter-<=":[ei,[Fr,Lr],(e,[t,r])=>{let i=e.properties()[t.value],a=r.value;return typeof i==typeof a&&i<=a}],"filter-id-<=":[ei,[Lr],(e,[t])=>{let r=e.id(),i=t.value;return typeof r==typeof i&&r<=i}],"filter->=":[ei,[Fr,Lr],(e,[t,r])=>{let i=e.properties()[t.value],a=r.value;return typeof i==typeof a&&i>=a}],"filter-id->=":[ei,[Lr],(e,[t])=>{let r=e.id(),i=t.value;return typeof r==typeof i&&r>=i}],"filter-has":[ei,[Lr],(e,[t])=>{let r=t.value,i=e.properties();return r in i&&i[r]!==void 0}],"filter-has-id":[ei,[],e=>e.id()!==null&&e.id()!==void 0],"filter-type-in":[ei,[zo(Fr)],(e,[t])=>t.value.indexOf(e.geometryType())>=0],"filter-id-in":[ei,[zo(Lr)],(e,[t])=>t.value.indexOf(e.id())>=0],"filter-in-small":[ei,[Fr,zo(Lr)],(e,[t,r])=>r.value.indexOf(e.properties()[t.value])>=0],"filter-in-large":[ei,[Fr,zo(Lr)],(e,[t,r])=>ELe(e.properties()[t.value],r.value,0,r.value.length-1)],all:{type:ei,overloads:[[[ei,ei],(e,[t,r])=>t.evaluate(e)&&r.evaluate(e)],[Pd(ei),(e,t)=>{for(let r of t)if(!r.evaluate(e))return!1;return!0}]]},any:{type:ei,overloads:[[[ei,ei],(e,[t,r])=>t.evaluate(e)||r.evaluate(e)],[Pd(ei),(e,t)=>{for(let r of t)if(r.evaluate(e))return!0;return!1}]]},"!":[ei,[ei],(e,[t])=>!t.evaluate(e)],"is-supported-script":[ei,[Fr],(e,[t])=>{let r=e.globals&&e.globals.isSupportedScript;return!r||r(t.evaluate(e))}],upcase:[Fr,[Fr],(e,[t])=>t.evaluate(e).toUpperCase()],downcase:[Fr,[Fr],(e,[t])=>t.evaluate(e).toLowerCase()],concat:[Fr,Pd(Lr),(e,t)=>t.map(r=>Ry(r.evaluate(e))).join("")],split:[zo(Fr),[Fr,Fr],(e,[t,r])=>t.evaluate(e).split(r.evaluate(e))],join:[Fr,[zo(Fr),Fr],(e,[t,r])=>t.evaluate(e).join(r.evaluate(e))],"resolved-locale":[Fr,[cw],(e,[t])=>t.evaluate(e).resolvedLocale()]});Hk=/^(.*)-transition$/;Zk=class{constructor(e,t,r,i){this.expression=e,this._warningHistory={},this._evaluator=new Hie,this._defaultValue=r?Iae(r):null,this._enumValues=r&&r.type==="enum"?r.values:null,this._globalState=i,this._rootKey=t}evaluateWithoutErrorHandling(e,t,r,i,a,n){return this._globalState&&(e=ym(e,this._globalState)),this._evaluator.globals=e,this._evaluator.feature=t,this._evaluator.featureState=r,this._evaluator.canonical=i,this._evaluator.availableImages=a||null,this._evaluator.formattedSection=n,this.expression.evaluate(this._evaluator)}evaluate(e,t,r,i,a,n){this._globalState&&(e=ym(e,this._globalState)),this._evaluator.globals=e,this._evaluator.feature=t||null,this._evaluator.featureState=r||null,this._evaluator.canonical=i,this._evaluator.availableImages=a||null,this._evaluator.formattedSection=n||null;try{let o=this.expression.evaluate(this._evaluator);if(o==null||typeof o=="number"&&o!==o)return this._defaultValue;if(this._enumValues&&!(o in this._enumValues))throw new Sa(`Expected value to be one of ${Object.keys(this._enumValues).map(s=>JSON.stringify(s)).join(", ")}, but found ${JSON.stringify(o)} instead.`,"");return o}catch(o){let s=o instanceof Sa?o.path:"",l=`${s}|${o.message}`;return this._warningHistory[l]||(this._warningHistory[l]=!0,typeof console<"u"&&console.warn(Eae(this._rootKey,s,o.message,this._defaultValue))),this._defaultValue}}};Zy=class{constructor(e,t,r){this.kind=e,this._styleExpression=t,this.isStateDependent=e!=="constant"&&!$y(t.expression),this.globalStateRefs=y2(t.expression),this._globalState=r}evaluateWithoutErrorHandling(e,t,r,i,a,n){return this._globalState&&(e=ym(e,this._globalState)),this._styleExpression.evaluateWithoutErrorHandling(e,t,r,i,a,n)}evaluate(e,t,r,i,a,n){return this._globalState&&(e=ym(e,this._globalState)),this._styleExpression.evaluate(e,t,r,i,a,n)}},z4=class{constructor(e,t,r,i,a){this.kind=e,this.zoomStops=r,this._styleExpression=t,this.isStateDependent=e!=="camera"&&!$y(t.expression),this.globalStateRefs=y2(t.expression),this.interpolationType=i,this._globalState=a}evaluateWithoutErrorHandling(e,t,r,i,a,n){return this._globalState&&(e=ym(e,this._globalState)),this._styleExpression.evaluateWithoutErrorHandling(e,t,r,i,a,n)}evaluate(e,t,r,i,a,n){return this._globalState&&(e=ym(e,this._globalState)),this._styleExpression.evaluate(e,t,r,i,a,n)}interpolationFactor(e,t,r){return this.interpolationType?Gl.interpolationFactor(this.interpolationType,e,t,r):0}};Fae=class Pae{constructor(t,r,i){this.isStateDependent=!1,this.globalStateRefs=new Set,this._globalState=null,kae(r),this._parameters=t,this._specification=i,this._rootKey=r,this._defaultValue=Iae(i),this._warningHistory={};let a=Dae(this._parameters,this._specification);this.kind=a.kind,this.interpolationFactor=a.interpolationFactor,this.zoomStops=a.zoomStops,this.interpolationType=a.interpolationType,this._innerEvaluate=a.evaluate}evaluate(t,r){try{return this._innerEvaluate(t,r)}catch(i){let a=i instanceof Error?i.message:String(i),n=`|${a}`;return this._warningHistory[n]||(this._warningHistory[n]=!0,typeof console<"u"&&console.warn(Eae(this._rootKey,"",a,this._defaultValue))),this._defaultValue}}static deserialize(t){return new Pae(t._parameters,t._rootKey,t._specification)}static serialize(t){return{_parameters:t._parameters,_specification:t._specification,_rootKey:t._rootKey}}};GLe={type:"boolean",default:!1,transition:!1,"property-type":"data-driven",expression:{interpolated:!1,parameters:["zoom","feature"]}};Fte={promoteId:XLe};Pte=1114111,sze=/^u\+(?:([0-9a-f]{1,6})(?:-([0-9a-f]{1,6}))?|([0-9a-f]{0,5}\?{1,6}))$/i;Ite={"*"(){return[]},array:Xk,boolean:HLe,number:ww,color:gE,constants:Bae,enum:Yy,filter:Kk,function:qae,layer:Gae,object:Js,source:jae,light:$ae,sky:Hae,terrain:Zae,projection:ize,projectionDefinition:aze,string:Gf,formatted:KLe,resolvedImage:JLe,padding:QLe,numberArray:eze,colorArray:tze,variableAnchorOffsetCollection:rze,sprite:Yae,state:Wae,fontFaces:Xae};Ks.source=ql(Bl(jae)),Ks.sprite=ql(Bl(Yae)),Ks.glyphs=ql(Bl(Kae)),Ks.fontFaces=ql(Bl(Xae)),Ks.light=ql(Bl($ae)),Ks.sky=ql(Bl(Hae)),Ks.terrain=ql(Bl(Zae)),Ks.state=ql(Bl(Wae)),Ks.layer=ql(Bl(Gae)),Ks.filter=ql(Bl(Kk)),Ks.paintProperty=ql(Bl(Vae)),Ks.layoutProperty=ql(Bl(Uae));uze={type:"enum","property-type":"data-constant",expression:{interpolated:!1,parameters:["global-state"]},values:{visible:{},none:{}},transition:!1,default:"visible"},cze=class{constructor(e,t,r){this._rootKey=t,this._globalState=r,this.setValue(e)}evaluate(){var e;return(e=this._literalValue)!=null?e:this._compiledValue.evaluate({})}setValue(e){if(e==null||e==="visible"||e==="none"){this._literalValue=e==="none"?"none":"visible",this._compiledValue=void 0,this._globalStateRefs=new Set;return}let t=bw(e,this._rootKey,uze,this._globalState);if(t.result==="error")throw this._literalValue="visible",this._compiledValue=void 0,Error(t.value.map(r=>`${r.key}: ${r.message}`).join(", "));this._literalValue=void 0,this._compiledValue=t.value,this._globalStateRefs=y2(t.value.expression)}getGlobalStateRefs(){return this._globalStateRefs}};es=Ks,Jk=new Set(Object.keys(Xe).filter(e=>e.startsWith("source_")).map(e=>e.slice(7).replaceAll("_","-")));_E=class Qae{constructor(t,r,i){let a=this.cells=[];if(t instanceof ArrayBuffer){this.arrayBuffer=t;let o=new Int32Array(this.arrayBuffer);t=o[0],r=o[1],i=o[2],this.d=r+2*i;for(let u=0;u=h[d+0]&&a>=h[d+1])?(s[f]=!0,o.push(c[f])):s[f]=!1}}}_forEachCell(t,r,i,a,n,o,s,l){let u=this._convertToCellCoord(t),c=this._convertToCellCoord(r),h=this._convertToCellCoord(i),f=this._convertToCellCoord(a);for(let d=u;d<=h;d++)for(let p=c;p<=f;p++){let m=this.d*p+d;if((!l||l(this._convertFromCellCoord(d),this._convertFromCellCoord(p),this._convertFromCellCoord(d+1),this._convertFromCellCoord(p+1)))&&n.call(this,t,r,i,a,m,o,s,l))return}}_convertFromCellCoord(t){return(t-this.padding)/this.scale}_convertToCellCoord(t){return Math.max(0,Math.min(this.d-1,Math.floor(t*this.scale)+this.padding))}toArrayBuffer(){if(this.arrayBuffer)return this.arrayBuffer;let t=this.cells,r=3+this.cells.length+1+1,i=0;for(let o of this.cells)i+=o.length;let a=new Int32Array(r+i+this.keys.length+this.bboxes.length);a[0]=this.extent,a[1]=this.n,a[2]=this.padding;let n=r;for(let o=0;or?(this.lastIntegerZoom=r+1,this.lastIntegerZoomTime=t):this.lastFloorZoomthis.zoomHistory.lastIntegerZoom?{fromScale:2,toScale:1,t:t+(1-t)*r}:{fromScale:.5,toScale:1,t:1-(1-r)*t}}},Wy=class{constructor(e,t,r,i){this.property=e,this.value=t,this.expression=qLe(t===void 0?e.specification.default:t,r,e.specification,i)}isDataDriven(){return this.expression.kind==="source"||this.expression.kind==="composite"}getGlobalStateRefs(){return this.expression.globalStateRefs||new Set}readsGlobalState(e){let t=this.getGlobalStateRefs();return e.some(r=>t.has(r))}possiblyEvaluate(e,t,r){return this.property.possiblyEvaluate(this,e,t,r)}},xE=class{constructor(e,t,r){this.property=e,this.value=new Wy(e,void 0,t,r)}transitioned(e,t){return t.value===this.value?t:new Lte(this.property,this.value,t,tr({},e.transition,this.transition),e.now)}untransitioned(){return new Lte(this.property,this.value,null,{},0)}},_2=class{constructor(e,t,r){this._properties=e,this._values=Object.create(e.defaultTransitionablePropertyValues),this._globalState=r,this._rootKey=t}_propertyRootKey(e){return`${this._rootKey}.${String(e)}`}hasProperty(e){return e in this._properties.defaultTransitionablePropertyValues}getValue(e){return Jo(this._values[e].value.value)}setValue(e,t){Object.hasOwn(this._values,e)||(this._values[e]=new xE(this._values[e].property,this._propertyRootKey(e),this._globalState)),this._values[e].value=new Wy(this._values[e].property,t===null?void 0:Jo(t),this._propertyRootKey(e),this._globalState)}setValues(e){for(let t in e){let r=e[t];t.endsWith("-transition")?this.setTransition(t.slice(0,-11),r):Iu(this._values[t].value.value,r)||this.setValue(t,r)}}getTransition(e){return Jo(this._values[e].transition)}setTransition(e,t){Object.hasOwn(this._values,e)||(this._values[e]=new xE(this._values[e].property,this._propertyRootKey(e),this._globalState)),this._values[e].transition=Jo(t)||void 0}retainPriorGlobalState(e,t,r){for(let i of Object.keys(r._values))for(let a=r._values[i];a;a=a.prior){let{value:n}=a;n.property.specification.transition&&!n.isDataDriven()&&n.expression._globalState===this._globalState&&n.readsGlobalState(e)&&(a.value=new Wy(n.property,n.value,this._propertyRootKey(i),t))}}applyGlobalStateChange(e,t,r,i){this.retainPriorGlobalState(e,t,r);let a=!1;for(let n of Object.keys(this._values)){let{value:o}=this._values[n];o.readsGlobalState(e)&&(this.setValue(n,o.value),a=!0)}return a?this.transitioned(i,r):r}serialize(){let e={};for(let t of Object.keys(this._values)){let r=this.getValue(t);r!==void 0&&(e[t]=r);let i=this.getTransition(t);i!==void 0&&(e[`${t}-transition`]=i)}return e}transitioned(e,t){let r=new zte(this._properties);for(let i of Object.keys(this._values))r._values[i]=this._values[i].transitioned(e,t._values[i]);return r}untransitioned(){let e=new zte(this._properties);for(let t of Object.keys(this._values))e._values[t]=this._values[t].untransitioned();return e}},Lte=class{constructor(e,t,r,i,a){this.property=e,this.value=t,this.begin=a+i.delay||0,this.end=this.begin+i.duration||0,e.specification.transition&&(i.delay||i.duration)&&(this.prior=r)}possiblyEvaluate(e,t,r){let i=e.now||0,a=this.value.possiblyEvaluate(e,t,r),n=this.prior;if(!n)return a;if(i>this.end||this.value.isDataDriven())return this.prior=null,a;if(ii.zoomHistory.lastIntegerZoom?{from:e,to:t}:{from:r,to:t}}interpolate(e){return e}},ine=class{constructor(e,t){this.specification=e,this.name=t}possiblyEvaluate(e,t,r,i){if(e.value!==void 0){if(e.expression.kind==="constant"){let a=e.expression.evaluate(t,null,{},r,i);return this._calculate(a,a,a,t)}return this._calculate(e.expression.evaluate(new Di(Math.floor(t.zoom-1),t)),e.expression.evaluate(new Di(Math.floor(t.zoom),t)),e.expression.evaluate(new Di(Math.floor(t.zoom+1),t)),t)}}_calculate(e,t,r,i){return i.zoom>i.zoomHistory.lastIntegerZoom?{from:e,to:t}:{from:r,to:t}}interpolate(e){return e}},Mw=class{constructor(e,t){this.specification=e,this.name=t}possiblyEvaluate(e,t,r,i){return!!e.expression.evaluate(t,null,{},r,i)}interpolate(){return!1}},Ln=class{constructor(e){this.properties=e,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},this.overridableProperties=[];for(let t in e){let r=e[t];r.specification.overridable&&this.overridableProperties.push(t);let i=this.defaultPropertyValues[t]=new Wy(r,void 0,r.name,void 0),a=this.defaultTransitionablePropertyValues[t]=new xE(r,r.name,void 0);this.defaultTransitioningPropertyValues[t]=a.untransitioned(),this.defaultPossiblyEvaluatedValues[t]=i.possiblyEvaluate({})}}};Yt("DataDrivenProperty",cr),Yt("DataConstantProperty",Gt),Yt("CrossFadedDataDrivenProperty",Xy),Yt("CrossFadedProperty",ine),Yt("ColorRampProperty",Mw);Bte=" is a PAINT property not a LAYOUT property. Use get/setPaintProperty instead?",Q9=" is a LAYOUT property not a PAINT property. Use get/setLayoutProperty instead?",Bu=class extends tn{constructor(e,t,r){if(super(),this.id=e.id,this.type=e.type,this._globalState=r,this._featureFilter={filter:()=>!0,needGeometry:!1,getGlobalStateRefs:()=>new Set},this._visibilityExpression=hze(this.visibility,`layers[${this.id}].layout.visibility`,r),e.type!=="custom"&&(this.metadata=e.metadata,this.minzoom=e.minzoom,this.maxzoom=e.maxzoom,e.type!=="background"&&(this.source=e.source,this.sourceLayer=e["source-layer"],this.filter=e.filter,this._featureFilter=_m(e.filter,`layers[${this.id}].filter`,r)),t.layout&&(this._unevaluatedLayout=new pze(t.layout,`layers[${this.id}].layout`,r)),t.paint)){this._transitionablePaint=new _2(t.paint,`layers[${this.id}].paint`,r);for(let i in e.paint)this.setPaintProperty(i,e.paint[i],{validate:!1});for(let i in e.layout)this.setLayoutProperty(i,e.layout[i],{validate:!1});this._transitioningPaint=this._transitionablePaint.untransitioned(),this.paint=new Tw(t.paint)}}setFilter(e){this.filter=e,this._featureFilter=_m(e,`layers[${this.id}].filter`,this._globalState)}getCrossfadeParameters(){return this._crossfadeParameters}getLayoutProperty(e){var t;if(e==="visibility")return this.visibility;if((t=this._transitionablePaint)!=null&&t.hasProperty(e))throw Error(e+Bte);if(!this._unevaluatedLayout)throw Error(`Cannot get layout property "${e}" on layer type "${this.type}" which has no layout properties.`);return this._unevaluatedLayout.getValue(e)}getLayoutAffectingGlobalStateRefs(){let e=new Set;for(let t of this._visibilityExpression.getGlobalStateRefs())e.add(t);if(this._unevaluatedLayout)for(let t in this._unevaluatedLayout._values){let r=this._unevaluatedLayout._values[t];for(let i of r.getGlobalStateRefs())e.add(i)}for(let t of this._featureFilter.getGlobalStateRefs())e.add(t);return e}getPaintAffectingGlobalStateRefs(){var t;let e=new globalThis.Map;if(this._transitionablePaint)for(let r in this._transitionablePaint._values){let i=this._transitionablePaint._values[r].value;for(let a of i.getGlobalStateRefs()){let n=(t=e.get(a))!=null?t:[];n.push({name:r,value:i.value}),e.set(a,n)}}return e}getVisibilityAffectingGlobalStateRefs(){return this._visibilityExpression.getGlobalStateRefs()}setLayoutProperty(e,t,r={}){var i;if(e==="visibility"){this.visibility=t,this._visibilityExpression.setValue(t),this.recalculateVisibility();return}if((i=this._transitionablePaint)!=null&&i.hasProperty(e)){this.fire(new or(Error(e+Bte)));return}t!=null&&this._validate(es.layoutProperty,`layers.${this.id}.layout.${e}`,e,t,r)||this._unevaluatedLayout.setValue(e,t)}getPaintProperty(e){var t,r;if(e.endsWith("-transition")){let i=e.slice(0,-11);if(i==="visibility"||(t=this._unevaluatedLayout)!=null&&t.hasProperty(i))throw Error(e+Q9);return this._transitionablePaint.getTransition(i)}if(e==="visibility"||(r=this._unevaluatedLayout)!=null&&r.hasProperty(e))throw Error(e+Q9);return this._transitionablePaint.getValue(e)}setPaintProperty(e,t,r={}){var i;if(e==="visibility"||(i=this._unevaluatedLayout)!=null&&i.hasProperty(e))return this.fire(new or(Error(e+Q9))),!1;if(t!=null&&this._validate(es.paintProperty,`layers.${this.id}.paint.${e}`,e,t,r))return!1;if(e.endsWith("-transition"))return this._transitionablePaint.setTransition(e.slice(0,-11),t||void 0),!1;{let a=this._transitionablePaint._values[e],n=a.property.specification["property-type"]==="cross-faded-data-driven",o=a.value.isDataDriven(),s=a.value;this._transitionablePaint.setValue(e,t),this._handleSpecialPaintPropertyUpdate(e);let l=this._transitionablePaint._values[e].value;return l.isDataDriven()||o||n||this._handleOverridablePaintPropertyUpdate(e,s,l)}}_handleSpecialPaintPropertyUpdate(e){}_handleOverridablePaintPropertyUpdate(e,t,r){return!1}isHidden(e=this.minzoom,t=!1){return this.minzoom&&e<(t?Math.floor(this.minzoom):this.minzoom)||this.maxzoom&&e>=this.maxzoom?!0:this._evaluatedVisibility==="none"}updateTransitions(e){this._transitioningPaint=this._transitionablePaint.transitioned(e,this._transitioningPaint)}retainPriorGlobalState(e,t){var r;(r=this._transitionablePaint)==null||r.retainPriorGlobalState(e,t,this._transitioningPaint)}hasTransition(){return this._transitioningPaint.hasTransition()}recalculateVisibility(){this._evaluatedVisibility=this._visibilityExpression.evaluate()}recalculate(e,t){e.getCrossfadeParameters&&(this._crossfadeParameters=e.getCrossfadeParameters()),this._unevaluatedLayout&&(this.layout=this._unevaluatedLayout.possiblyEvaluate(e,void 0,t)),this.paint=this._transitioningPaint.possiblyEvaluate(e,void 0,t)}serialize(){var t,r;let e={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:(t=this._unevaluatedLayout)==null?void 0:t.serialize(),paint:(r=this._transitionablePaint)==null?void 0:r.serialize()};return this.visibility&&(e.layout||(e.layout={}),e.layout.visibility=this.visibility),Sk(e,(i,a)=>i!==void 0&&!(a==="layout"&&!Object.keys(i).length)&&!(a==="paint"&&!Object.keys(i).length))}_validate(e,t,r,i,a={}){return Em(this,e,{key:t,layerType:this.type,objectKey:r,value:i},a)}is3D(){return!1}isTileClipped(){return!1}hasOffscreenPass(){return!1}resize(){}isStateDependent(){for(let e in this.paint._values){let t=this.paint.get(e);if(t instanceof Vl&&gm(t.property.specification)&&(t.value.kind==="source"||t.value.kind==="composite")&&t.value.isStateDependent)return!0}return!1}},mze=()=>qte||(qte=new Ln({"raster-opacity":new Gt(Xe.paint_raster["raster-opacity"],"raster-opacity"),"raster-hue-rotate":new Gt(Xe.paint_raster["raster-hue-rotate"],"raster-hue-rotate"),"raster-brightness-min":new Gt(Xe.paint_raster["raster-brightness-min"],"raster-brightness-min"),"raster-brightness-max":new Gt(Xe.paint_raster["raster-brightness-max"],"raster-brightness-max"),"raster-saturation":new Gt(Xe.paint_raster["raster-saturation"],"raster-saturation"),"raster-contrast":new Gt(Xe.paint_raster["raster-contrast"],"raster-contrast"),resampling:new Gt(Xe.paint_raster.resampling,"resampling"),"raster-resampling":new Gt(Xe.paint_raster["raster-resampling"],"raster-resampling"),"raster-fade-duration":new Gt(Xe.paint_raster["raster-fade-duration"],"raster-fade-duration")})),vze={get paint(){return mze()}},Dw=e=>e.type==="raster",gze=class extends Bu{constructor(e,t){super(e,vze,t)}},yze={Int8:Int8Array,Uint8:Uint8Array,Int16:Int16Array,Uint16:Uint16Array,Int32:Int32Array,Uint32:Uint32Array,Float32:Float32Array},x2=class{constructor(e,t){this._structArray=e,this._pos1=t*this.size,this._pos2=this._pos1/2,this._pos4=this._pos1/4,this._pos8=this._pos1/8}},za=class{constructor(){this.isTransferred=!1,this.capacity=-1,this.resize(0)}static serialize(e,t){return e._trim(),t&&(e.isTransferred=!0,t.push(e.arrayBuffer)),{length:e.length,arrayBuffer:e.arrayBuffer}}static deserialize(e){let t=Object.create(this.prototype);return t.arrayBuffer=e.arrayBuffer,t.length=e.length,t.capacity=e.arrayBuffer.byteLength/t.bytesPerElement,t._refreshViews(),t}_trim(){this.length!==this.capacity&&(this.capacity=this.length,this.arrayBuffer=this.arrayBuffer.slice(0,this.length*this.bytesPerElement),this._refreshViews())}clear(){this.length=0}resize(e){this.reserve(e),this.length=e}reserve(e){if(e>this.capacity){this.capacity=Math.max(e,Math.floor(this.capacity*5),128),this.arrayBuffer=new ArrayBuffer(this.capacity*this.bytesPerElement);let t=this.uint8;this._refreshViews(),t&&this.uint8.set(t)}}_refreshViews(){throw Error("_refreshViews() must be implemented by each concrete StructArray layout")}freeBufferAfterUpload(){this.arrayBuffer=new ArrayBuffer(0),this._refreshViews()}};Ky=class extends za{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,t){let r=this.length;return this.resize(r+1),this.emplace(r,e,t)}emplace(e,t,r){let i=e*2;return this.int16[i+0]=t,this.int16[i+1]=r,e}};Ky.prototype.bytesPerElement=4,Yt("StructArrayLayout2i4",Ky);q4=class extends za{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,t,r){let i=this.length;return this.resize(i+1),this.emplace(i,e,t,r)}emplace(e,t,r,i){let a=e*3;return this.int16[a+0]=t,this.int16[a+1]=r,this.int16[a+2]=i,e}};q4.prototype.bytesPerElement=6,Yt("StructArrayLayout3i6",q4);bE=class extends za{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,t,r,i){let a=this.length;return this.resize(a+1),this.emplace(a,e,t,r,i)}emplace(e,t,r,i,a){let n=e*4;return this.int16[n+0]=t,this.int16[n+1]=r,this.int16[n+2]=i,this.int16[n+3]=a,e}};bE.prototype.bytesPerElement=8,Yt("StructArrayLayout4i8",bE);wE=class extends za{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,t,r,i,a,n){let o=this.length;return this.resize(o+1),this.emplace(o,e,t,r,i,a,n)}emplace(e,t,r,i,a,n,o){let s=e*6;return this.int16[s+0]=t,this.int16[s+1]=r,this.int16[s+2]=i,this.int16[s+3]=a,this.int16[s+4]=n,this.int16[s+5]=o,e}};wE.prototype.bytesPerElement=12,Yt("StructArrayLayout2i4i12",wE);AE=class extends za{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,t,r,i,a,n){let o=this.length;return this.resize(o+1),this.emplace(o,e,t,r,i,a,n)}emplace(e,t,r,i,a,n,o){let s=e*4,l=e*8;return this.int16[s+0]=t,this.int16[s+1]=r,this.uint8[l+4]=i,this.uint8[l+5]=a,this.uint8[l+6]=n,this.uint8[l+7]=o,e}};AE.prototype.bytesPerElement=8,Yt("StructArrayLayout2i4ub8",AE);Jy=class extends za{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,t){let r=this.length;return this.resize(r+1),this.emplace(r,e,t)}emplace(e,t,r){let i=e*2;return this.float32[i+0]=t,this.float32[i+1]=r,e}};Jy.prototype.bytesPerElement=8,Yt("StructArrayLayout2f8",Jy);TE=class extends za{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,t,r,i,a,n,o,s,l,u){let c=this.length;return this.resize(c+1),this.emplace(c,e,t,r,i,a,n,o,s,l,u)}emplace(e,t,r,i,a,n,o,s,l,u,c){let h=e*10;return this.uint16[h+0]=t,this.uint16[h+1]=r,this.uint16[h+2]=i,this.uint16[h+3]=a,this.uint16[h+4]=n,this.uint16[h+5]=o,this.uint16[h+6]=s,this.uint16[h+7]=l,this.uint16[h+8]=u,this.uint16[h+9]=c,e}};TE.prototype.bytesPerElement=20,Yt("StructArrayLayout10ui20",TE);ME=class extends za{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,t,r,i,a,n,o,s){let l=this.length;return this.resize(l+1),this.emplace(l,e,t,r,i,a,n,o,s)}emplace(e,t,r,i,a,n,o,s,l){let u=e*8;return this.uint16[u+0]=t,this.uint16[u+1]=r,this.uint16[u+2]=i,this.uint16[u+3]=a,this.uint16[u+4]=n,this.uint16[u+5]=o,this.uint16[u+6]=s,this.uint16[u+7]=l,e}};ME.prototype.bytesPerElement=16,Yt("StructArrayLayout8ui16",ME);DE=class extends za{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,t,r,i,a,n,o,s,l,u,c,h,f){let d=this.length;return this.resize(d+1),this.emplace(d,e,t,r,i,a,n,o,s,l,u,c,h,f)}emplace(e,t,r,i,a,n,o,s,l,u,c,h,f,d){let p=e*14,m=e*7;return this.int16[p+0]=t,this.int16[p+1]=r,this.int16[p+2]=i,this.int16[p+3]=a,this.uint16[p+4]=n,this.uint16[p+5]=o,this.uint16[p+6]=s,this.uint16[p+7]=l,this.int16[p+8]=u,this.int16[p+9]=c,this.int16[p+10]=h,this.int16[p+11]=f,this.float32[m+6]=d,e}};DE.prototype.bytesPerElement=28,Yt("StructArrayLayout4i4ui4i1f28",DE);SE=class extends za{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,t,r){let i=this.length;return this.resize(i+1),this.emplace(i,e,t,r)}emplace(e,t,r,i){let a=e*3;return this.float32[a+0]=t,this.float32[a+1]=r,this.float32[a+2]=i,e}};SE.prototype.bytesPerElement=12,Yt("StructArrayLayout3f12",SE);EE=class extends za{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)}emplaceBack(e){let t=this.length;return this.resize(t+1),this.emplace(t,e)}emplace(e,t){let r=e*1;return this.uint32[r+0]=t,e}};EE.prototype.bytesPerElement=4,Yt("StructArrayLayout1ul4",EE);kE=class extends za{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,t,r,i,a,n,o,s,l){let u=this.length;return this.resize(u+1),this.emplace(u,e,t,r,i,a,n,o,s,l)}emplace(e,t,r,i,a,n,o,s,l,u){let c=e*10,h=e*5;return this.int16[c+0]=t,this.int16[c+1]=r,this.int16[c+2]=i,this.int16[c+3]=a,this.int16[c+4]=n,this.int16[c+5]=o,this.uint32[h+3]=s,this.uint16[c+8]=l,this.uint16[c+9]=u,e}};kE.prototype.bytesPerElement=20,Yt("StructArrayLayout6i1ul2ui20",kE);CE=class extends za{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,t,r,i,a,n){let o=this.length;return this.resize(o+1),this.emplace(o,e,t,r,i,a,n)}emplace(e,t,r,i,a,n,o){let s=e*6;return this.int16[s+0]=t,this.int16[s+1]=r,this.int16[s+2]=i,this.int16[s+3]=a,this.int16[s+4]=n,this.int16[s+5]=o,e}};CE.prototype.bytesPerElement=12,Yt("StructArrayLayout2i2i2i12",CE);FE=class extends za{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,t,r,i,a){let n=this.length;return this.resize(n+1),this.emplace(n,e,t,r,i,a)}emplace(e,t,r,i,a,n){let o=e*4,s=e*8;return this.float32[o+0]=t,this.float32[o+1]=r,this.float32[o+2]=i,this.int16[s+6]=a,this.int16[s+7]=n,e}};FE.prototype.bytesPerElement=16,Yt("StructArrayLayout2f1f2i16",FE);PE=class extends za{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,t,r,i,a,n){let o=this.length;return this.resize(o+1),this.emplace(o,e,t,r,i,a,n)}emplace(e,t,r,i,a,n,o){let s=e*16,l=e*4,u=e*8;return this.uint8[s+0]=t,this.uint8[s+1]=r,this.float32[l+1]=i,this.float32[l+2]=a,this.int16[u+6]=n,this.int16[u+7]=o,e}};PE.prototype.bytesPerElement=16,Yt("StructArrayLayout2ub2f2i16",PE);O4=class extends za{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,t,r){let i=this.length;return this.resize(i+1),this.emplace(i,e,t,r)}emplace(e,t,r,i){let a=e*3;return this.uint16[a+0]=t,this.uint16[a+1]=r,this.uint16[a+2]=i,e}};O4.prototype.bytesPerElement=6,Yt("StructArrayLayout3ui6",O4);IE=class extends za{_refreshViews(){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)}emplaceBack(e,t,r,i,a,n,o,s,l,u,c,h,f,d,p,m,g,y){let x=this.length;return this.resize(x+1),this.emplace(x,e,t,r,i,a,n,o,s,l,u,c,h,f,d,p,m,g,y)}emplace(e,t,r,i,a,n,o,s,l,u,c,h,f,d,p,m,g,y,x){let b=e*26,_=e*13,A=e*52;return this.int16[b+0]=t,this.int16[b+1]=r,this.uint16[b+2]=i,this.uint16[b+3]=a,this.uint32[_+2]=n,this.uint32[_+3]=o,this.uint32[_+4]=s,this.uint16[b+10]=l,this.uint16[b+11]=u,this.uint16[b+12]=c,this.float32[_+7]=h,this.float32[_+8]=f,this.uint8[A+36]=d,this.uint8[A+37]=p,this.uint8[A+38]=m,this.uint32[_+10]=g,this.int16[b+22]=y,this.float32[_+12]=x,e}};IE.prototype.bytesPerElement=52,Yt("StructArrayLayout2i2ui3ul3ui2f3ub1ul1i1f52",IE);LE=class extends za{_refreshViews(){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)}emplaceBack(e,t,r,i,a,n,o,s,l,u,c,h,f,d,p,m,g,y,x,b,_,A,T,M,S,k,P,I,B){let L=this.length;return this.resize(L+1),this.emplace(L,e,t,r,i,a,n,o,s,l,u,c,h,f,d,p,m,g,y,x,b,_,A,T,M,S,k,P,I,B)}emplace(e,t,r,i,a,n,o,s,l,u,c,h,f,d,p,m,g,y,x,b,_,A,T,M,S,k,P,I,B,L){let z=e*34,q=e*17;return this.int16[z+0]=t,this.int16[z+1]=r,this.int16[z+2]=i,this.int16[z+3]=a,this.int16[z+4]=n,this.int16[z+5]=o,this.int16[z+6]=s,this.int16[z+7]=l,this.uint16[z+8]=u,this.uint16[z+9]=c,this.uint16[z+10]=h,this.uint16[z+11]=f,this.uint16[z+12]=d,this.uint16[z+13]=p,this.uint16[z+14]=m,this.uint16[z+15]=g,this.uint16[z+16]=y,this.uint16[z+17]=x,this.uint16[z+18]=b,this.uint16[z+19]=_,this.uint16[z+20]=A,this.uint16[z+21]=T,this.uint16[z+22]=M,this.uint32[q+12]=S,this.float32[q+13]=k,this.float32[q+14]=P,this.uint16[z+30]=I,this.uint16[z+31]=B,this.float32[q+16]=L,e}};LE.prototype.bytesPerElement=68,Yt("StructArrayLayout8i15ui1ul2f2ui1f68",LE);N4=class extends za{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e){let t=this.length;return this.resize(t+1),this.emplace(t,e)}emplace(e,t){let r=e*1;return this.float32[r+0]=t,e}};N4.prototype.bytesPerElement=4,Yt("StructArrayLayout1f4",N4);zE=class extends za{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,t,r){let i=this.length;return this.resize(i+1),this.emplace(i,e,t,r)}emplace(e,t,r,i){let a=e*6,n=e*3;return this.uint16[a+0]=t,this.float32[n+1]=r,this.float32[n+2]=i,e}};zE.prototype.bytesPerElement=12,Yt("StructArrayLayout1ui2f12",zE);RE=class extends za{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,t,r){let i=this.length;return this.resize(i+1),this.emplace(i,e,t,r)}emplace(e,t,r,i){let a=e*2,n=e*4;return this.uint32[a+0]=t,this.uint16[n+2]=r,this.uint16[n+3]=i,e}};RE.prototype.bytesPerElement=8,Yt("StructArrayLayout1ul2ui8",RE);BE=class extends za{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,t){let r=this.length;return this.resize(r+1),this.emplace(r,e,t)}emplace(e,t,r){let i=e*2;return this.uint16[i+0]=t,this.uint16[i+1]=r,e}};BE.prototype.bytesPerElement=4,Yt("StructArrayLayout2ui4",BE);qE=class extends za{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e){let t=this.length;return this.resize(t+1),this.emplace(t,e)}emplace(e,t){let r=e*1;return this.uint16[r+0]=t,e}};qE.prototype.bytesPerElement=2,Yt("StructArrayLayout1ui2",qE);OE=class extends za{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,t,r,i){let a=this.length;return this.resize(a+1),this.emplace(a,e,t,r,i)}emplace(e,t,r,i,a){let n=e*4;return this.float32[n+0]=t,this.float32[n+1]=r,this.float32[n+2]=i,this.float32[n+3]=a,e}};OE.prototype.bytesPerElement=16,Yt("StructArrayLayout4f16",OE);ane=class extends x2{get anchorPointX(){return this._structArray.int16[this._pos2+0]}get anchorPointY(){return this._structArray.int16[this._pos2+1]}get x1(){return this._structArray.int16[this._pos2+2]}get y1(){return this._structArray.int16[this._pos2+3]}get x2(){return this._structArray.int16[this._pos2+4]}get y2(){return this._structArray.int16[this._pos2+5]}get featureIndex(){return this._structArray.uint32[this._pos4+3]}get sourceLayerIndex(){return this._structArray.uint16[this._pos2+8]}get bucketIndex(){return this._structArray.uint16[this._pos2+9]}get anchorPoint(){return new qe(this.anchorPointX,this.anchorPointY)}};ane.prototype.size=20;tC=class extends kE{get(e){return new ane(this,e)}};Yt("CollisionBoxArray",tC);nne=class extends x2{get anchorX(){return this._structArray.int16[this._pos2+0]}get anchorY(){return this._structArray.int16[this._pos2+1]}get glyphStartIndex(){return this._structArray.uint16[this._pos2+2]}get numGlyphs(){return this._structArray.uint16[this._pos2+3]}get vertexStartIndex(){return this._structArray.uint32[this._pos4+2]}get lineStartIndex(){return this._structArray.uint32[this._pos4+3]}get lineLength(){return this._structArray.uint32[this._pos4+4]}get segment(){return this._structArray.uint16[this._pos2+10]}get lowerSize(){return this._structArray.uint16[this._pos2+11]}get upperSize(){return this._structArray.uint16[this._pos2+12]}get lineOffsetX(){return this._structArray.float32[this._pos4+7]}get lineOffsetY(){return this._structArray.float32[this._pos4+8]}get writingMode(){return this._structArray.uint8[this._pos1+36]}get placedOrientation(){return this._structArray.uint8[this._pos1+37]}set placedOrientation(e){this._structArray.uint8[this._pos1+37]=e}get hidden(){return this._structArray.uint8[this._pos1+38]}set hidden(e){this._structArray.uint8[this._pos1+38]=e}get crossTileID(){return this._structArray.uint32[this._pos4+10]}set crossTileID(e){this._structArray.uint32[this._pos4+10]=e}get associatedIconIndex(){return this._structArray.int16[this._pos2+22]}get heightOffset(){return this._structArray.float32[this._pos4+12]}};nne.prototype.size=52;one=class extends IE{get(e){return new nne(this,e)}};Yt("PlacedSymbolArray",one);sne=class extends x2{get anchorX(){return this._structArray.int16[this._pos2+0]}get anchorY(){return this._structArray.int16[this._pos2+1]}get rightJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+2]}get centerJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+3]}get leftJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+4]}get verticalPlacedTextSymbolIndex(){return this._structArray.int16[this._pos2+5]}get placedIconSymbolIndex(){return this._structArray.int16[this._pos2+6]}get verticalPlacedIconSymbolIndex(){return this._structArray.int16[this._pos2+7]}get key(){return this._structArray.uint16[this._pos2+8]}get textBoxStartIndex(){return this._structArray.uint16[this._pos2+9]}get textBoxEndIndex(){return this._structArray.uint16[this._pos2+10]}get verticalTextBoxStartIndex(){return this._structArray.uint16[this._pos2+11]}get verticalTextBoxEndIndex(){return this._structArray.uint16[this._pos2+12]}get iconBoxStartIndex(){return this._structArray.uint16[this._pos2+13]}get iconBoxEndIndex(){return this._structArray.uint16[this._pos2+14]}get verticalIconBoxStartIndex(){return this._structArray.uint16[this._pos2+15]}get verticalIconBoxEndIndex(){return this._structArray.uint16[this._pos2+16]}get featureIndex(){return this._structArray.uint16[this._pos2+17]}get numHorizontalGlyphVertices(){return this._structArray.uint16[this._pos2+18]}get numVerticalGlyphVertices(){return this._structArray.uint16[this._pos2+19]}get numIconVertices(){return this._structArray.uint16[this._pos2+20]}get numVerticalIconVertices(){return this._structArray.uint16[this._pos2+21]}get useRuntimeCollisionCircles(){return this._structArray.uint16[this._pos2+22]}get crossTileID(){return this._structArray.uint32[this._pos4+12]}set crossTileID(e){this._structArray.uint32[this._pos4+12]=e}get textBoxScale(){return this._structArray.float32[this._pos4+13]}get collisionCircleDiameter(){return this._structArray.float32[this._pos4+14]}get textAnchorOffsetStartIndex(){return this._structArray.uint16[this._pos2+30]}get textAnchorOffsetEndIndex(){return this._structArray.uint16[this._pos2+31]}get heightOffset(){return this._structArray.float32[this._pos4+16]}};sne.prototype.size=68;lne=class extends LE{get(e){return new sne(this,e)}};Yt("SymbolInstanceArray",lne);une=class extends N4{getoffsetX(e){return this.float32[e*1+0]}};Yt("GlyphOffsetArray",une);cne=class extends q4{getx(e){return this.int16[e*3+0]}gety(e){return this.int16[e*3+1]}gettileUnitDistanceFromAnchor(e){return this.int16[e*3+2]}};Yt("SymbolLineVertexArray",cne);hne=class extends x2{get textAnchor(){return this._structArray.uint16[this._pos2+0]}get textOffset0(){return this._structArray.float32[this._pos4+1]}get textOffset1(){return this._structArray.float32[this._pos4+2]}};hne.prototype.size=12;fne=class extends zE{get(e){return new hne(this,e)}};Yt("TextAnchorOffsetArray",fne);dne=class extends x2{get featureIndex(){return this._structArray.uint32[this._pos4+0]}get sourceLayerIndex(){return this._structArray.uint16[this._pos2+2]}get bucketIndex(){return this._structArray.uint16[this._pos2+3]}};dne.prototype.size=8;pne=class extends RE{get(e){return new dne(this,e)}};Yt("FeatureIndexArray",pne);Mh=class extends Ky{},mne=class extends q4{},vne=class extends bE{},xze=class extends Ky{},bze=class extends Ky{},wze=class extends wE{},Aze=class extends AE{},Tze=class extends Jy{},K1=class extends TE{},Nte=class extends ME{},Mze=class extends DE{},Dze=class extends SE{},Sze=class extends EE{},Vte=class extends CE{},gne=class extends FE{},Eze=class extends PE{},yne=class extends O4{},qu=class extends O4{},NE=class extends BE{},_ne=class extends qE{},VE=Ea([{name:"a_pos",components:2,type:"Int16"}],4),kze=VE.members;VE.size,VE.alignment;Aa=class rm{constructor(t=[]){this._forceNewSegmentOnNextPrepare=!1,this.segments=t}prepareSegment(t,r,i,a){let n=this.segments[this.segments.length-1];return t>rm.MAX_VERTEX_ARRAY_LENGTH&&Xr(`Max vertices per segment is ${rm.MAX_VERTEX_ARRAY_LENGTH}: bucket requested ${t}. Consider using the \`fillLargeMeshArrays\` function if you require meshes with more than ${rm.MAX_VERTEX_ARRAY_LENGTH} vertices.`),this._forceNewSegmentOnNextPrepare||!n||n.vertexLength+t>rm.MAX_VERTEX_ARRAY_LENGTH||n.sortKey!==a?this.createNewSegment(r,i,a):n}createNewSegment(t,r,i){let a={vertexOffset:t.length,primitiveOffset:r.length,vertexLength:0,primitiveLength:0,vaos:{}};return i!==void 0&&(a.sortKey=i),this._forceNewSegmentOnNextPrepare=!1,this.segments.push(a),a}getOrCreateLatestSegment(t,r,i){return this.prepareSegment(0,t,r,i)}forceNewSegmentOnNextPrepare(){this._forceNewSegmentOnNextPrepare=!0}get(){return this.segments}destroy(){for(let t of this.segments)for(let r in t.vaos)t.vaos[r].destroy()}static simpleSegment(t,r,i,a){return new rm([{vertexOffset:t,primitiveOffset:r,vertexLength:i,primitiveLength:a,vaos:{},sortKey:0}])}};Aa.MAX_VERTEX_ARRAY_LENGTH=2**16-1,Yt("SegmentVector",Aa);Cze=Ea([{name:"a_pattern_from",components:4,type:"Uint16"},{name:"a_pattern_to",components:4,type:"Uint16"},{name:"a_pixel_ratio_from",components:1,type:"Uint16"},{name:"a_pixel_ratio_to",components:1,type:"Uint16"}]),Fze=Ea([{name:"a_dasharray_from",components:4,type:"Uint16"},{name:"a_dasharray_to",components:4,type:"Uint16"}]),Pze=gk(((e,t)=>{function r(i,a){for(var n=i.length&3,o=i.length-n,s=a,l,u=3432918353,c=461845907,h,f=0;f>>16)*u&65535)<<16)&4294967295,h=h<<15|h>>>17,h=(h&65535)*c+(((h>>>16)*c&65535)<<16)&4294967295,s^=h,s=s<<13|s>>>19,l=(s&65535)*5+(((s>>>16)*5&65535)<<16)&4294967295,s=(l&65535)+27492+(((l>>>16)+58964&65535)<<16);switch(h=0,n){case 3:h^=(i.charCodeAt(f+2)&255)<<16;case 2:h^=(i.charCodeAt(f+1)&255)<<8;case 1:h^=i.charCodeAt(f)&255,h=(h&65535)*u+(((h>>>16)*u&65535)<<16)&4294967295,h=h<<15|h>>>17,h=(h&65535)*c+(((h>>>16)*c&65535)<<16)&4294967295,s^=h}return s^=i.length,s^=s>>>16,s=(s&65535)*2246822507+(((s>>>16)*2246822507&65535)<<16)&4294967295,s^=s>>>13,s=(s&65535)*3266489909+(((s>>>16)*3266489909&65535)<<16)&4294967295,s^=s>>>16,s>>>0}t!==void 0&&(t.exports=r)})),Ize=gk(((e,t)=>{function r(i,a){for(var n=i.length,o=a^n,s=0,l;n>=4;)l=i.charCodeAt(s)&255|(i.charCodeAt(++s)&255)<<8|(i.charCodeAt(++s)&255)<<16|(i.charCodeAt(++s)&255)<<24,l=(l&65535)*1540483477+(((l>>>16)*1540483477&65535)<<16),l^=l>>>24,l=(l&65535)*1540483477+(((l>>>16)*1540483477&65535)<<16),o=(o&65535)*1540483477+(((o>>>16)*1540483477&65535)<<16)^l,n-=4,++s;switch(n){case 3:o^=(i.charCodeAt(s+2)&255)<<16;case 2:o^=(i.charCodeAt(s+1)&255)<<8;case 1:o^=i.charCodeAt(s)&255,o=(o&65535)*1540483477+(((o>>>16)*1540483477&65535)<<16)}return o^=o>>>13,o=(o&65535)*1540483477+(((o>>>16)*1540483477&65535)<<16),o^=o>>>15,o>>>0}t.exports=r})),V4=ZPe(gk(((e,t)=>{var r=Pze(),i=Ize();t.exports=r,t.exports.murmur3=r,t.exports.murmur2=i}))(),1),xne=class bne{constructor(){this.ids=[],this.positions=[],this.indexed=!1}add(t,r,i,a){this.ids.push(Gte(t)),this.positions.push(r,i,a)}getPositions(t){if(!this.indexed)throw Error("Trying to get index, but feature positions are not indexed");let r=Gte(t),i=0,a=this.ids.length-1;for(;i>1;this.ids[o]>=r?a=o:i=o+1}let n=[];for(;this.ids[i]===r;){let o=this.positions[3*i],s=this.positions[3*i+1],l=this.positions[3*i+2];n.push({index:o,start:s,end:l}),i++}return n}static serialize(t,r){let i=new Float64Array(t.ids),a=new Uint32Array(t.positions);return UE(i,a,0,i.length-1),r&&r.push(i.buffer,a.buffer),{ids:i,positions:a}}static deserialize(t){let r=new bne;return r.ids=t.ids,r.positions=t.positions,r.indexed=!0,r}};Yt("FeaturePositionMap",xne);Dh=class{constructor(e,t){this.gl=e.gl,this.location=t}},sr=class extends Dh{constructor(e,t){super(e,t),this.current=0}set(e){this.current!==e&&(this.current=e,this.gl.uniform1i(this.location,e))}},jt=class extends Dh{constructor(e,t){super(e,t),this.current=0}set(e){this.current!==e&&(this.current=e,this.gl.uniform1f(this.location,e))}},zr=class extends Dh{constructor(e,t){super(e,t),this.current=[0,0]}set(e){(e[0]!==this.current[0]||e[1]!==this.current[1])&&(this.current=e,this.gl.uniform2f(this.location,e[0],e[1]))}},Oo=class extends Dh{constructor(e,t){super(e,t),this.current=[0,0,0]}set(e){(e[0]!==this.current[0]||e[1]!==this.current[1]||e[2]!==this.current[2])&&(this.current=e,this.gl.uniform3f(this.location,e[0],e[1],e[2]))}},km=class extends Dh{constructor(e,t){super(e,t),this.current=[0,0,0,0]}set(e){(e[0]!==this.current[0]||e[1]!==this.current[1]||e[2]!==this.current[2]||e[3]!==this.current[3])&&(this.current=e,this.gl.uniform4f(this.location,e[0],e[1],e[2],e[3]))}},Sh=class extends Dh{constructor(e,t){super(e,t),this.current=Sr.transparent}set(e){(e.r!==this.current.r||e.g!==this.current.g||e.b!==this.current.b||e.a!==this.current.a)&&(this.current=e,this.gl.uniform4f(this.location,e.r,e.g,e.b,e.a))}},rC=class extends Dh{constructor(e,t){super(e,t),this.current=[]}set(e){if(e!=this.current){this.current=e;let t=new Float32Array(e.length*4);for(let r=0;r`u_${i}`),this.type=r}setUniform(e,t,r){e.set(r.constantOr(this.value))}getBinding(e,t,r){return this.type==="color"?new Sh(e,t):new jt(e,t)}},zd=class{constructor(e,t){this.uniformNames=t.map(r=>`u_${r}`),this.patternFrom=null,this.patternTo=null,this.pixelRatioFrom=1,this.pixelRatioTo=1}setConstantPatternPositions(e,t){this.pixelRatioFrom=t.pixelRatio,this.pixelRatioTo=e.pixelRatio,this.patternFrom=t.tlbr,this.patternTo=e.tlbr}setConstantDashPositions(e,t){this.dashTo=[0,e.y,e.height,e.width],this.dashFrom=[0,t.y,t.height,t.width]}setUniform(e,t,r,i){let a=null;i==="u_pattern_to"?a=this.patternTo:i==="u_pattern_from"?a=this.patternFrom:i==="u_dasharray_to"?a=this.dashTo:i==="u_dasharray_from"?a=this.dashFrom:i==="u_pixel_ratio_to"?a=this.pixelRatioTo:i==="u_pixel_ratio_from"&&(a=this.pixelRatioFrom),a!==null&&e.set(a)}getBinding(e,t,r){return r.startsWith("u_pattern")||r.startsWith("u_dasharray_")?new km(e,t):new jt(e,t)}},ph=class{constructor(e,t,r,i){this.expression=e,this.type=r,this.maxValue=0,this.paintVertexAttributes=t.map(a=>({name:`a_${a}`,type:"Float32",components:r==="color"?2:1,offset:0})),this.paintVertexArray=new i}populatePaintArray(e,t,r){let i=this.paintVertexArray.length,a=this.expression.evaluate(new Di(0,r),t,{},r.canonical,[],r.formattedSection);this.paintVertexArray.resize(e),this._setPaintValue(i,e,a)}updatePaintArray(e,t,r,i,a){let n=this.expression.evaluate(new Di(0,a),r,i);this._setPaintValue(e,t,n)}_setPaintValue(e,t,r){if(this.type==="color"){let i=GE(r);for(let a=e;a`u_${o}_t`),this.type=r,this.useIntegerZoom=i,this.zoom=a,this.maxValue=0,this.paintVertexAttributes=t.map(o=>({name:`a_${o}`,type:"Float32",components:r==="color"?4:2,offset:0})),this.paintVertexArray=new n}populatePaintArray(e,t,r){let i=this.expression.evaluate(new Di(this.zoom,r),t,{},r.canonical,[],r.formattedSection),a=this.expression.evaluate(new Di(this.zoom+1,r),t,{},r.canonical,[],r.formattedSection),n=this.paintVertexArray.length;this.paintVertexArray.resize(e),this._setPaintValue(n,e,i,a)}updatePaintArray(e,t,r,i,a){let n=this.expression.evaluate(new Di(this.zoom,a),r,i),o=this.expression.evaluate(new Di(this.zoom+1,a),r,i);this._setPaintValue(e,t,n,o)}_setPaintValue(e,t,r,i){if(this.type==="color"){let a=GE(r),n=GE(i);for(let o=e;o`#define HAS_UNIFORM_${i}`))}return e}getBinderAttributes(){let e=[];for(let t in this.binders){let r=this.binders[t];if(r instanceof ph||r instanceof Cu)for(let i of r.paintVertexAttributes)e.push(i.name);else if(r instanceof zf){let i=r.getVertexAttributes();for(let a of i)e.push(a.name)}}return e}getBinderUniforms(){let e=[];for(let t in this.binders){let r=this.binders[t];if(r instanceof Fy||r instanceof zd||r instanceof Cu)for(let i of r.uniformNames)e.push(i)}return e}getPaintVertexBuffers(){return this._buffers}getUniforms(e,t){let r=[];for(let i in this.binders){let a=this.binders[i];if(a instanceof Fy||a instanceof zd||a instanceof Cu){for(let n of a.uniformNames)if(t[n]){let o=a.getBinding(e,t[n],n);r.push({name:n,property:i,binding:o})}}}return r}setUniforms(e,t,r,i){for(let{name:a,property:n,binding:o}of t)this.binders[n].setUniform(o,i,r.get(n),a)}updatePaintBuffers(e){this._buffers=[];for(let t in this.binders){let r=this.binders[t];if(e&&r instanceof zf){let i=e.fromScale===2?r.zoomInPaintVertexBuffer:r.zoomOutPaintVertexBuffer;i&&this._buffers.push(i)}else(r instanceof ph||r instanceof Cu)&&r.paintVertexBuffer&&this._buffers.push(r.paintVertexBuffer)}}upload(e){for(let t in this.binders){let r=this.binders[t];(r instanceof ph||r instanceof Cu||r instanceof zf)&&r.upload(e)}this.updatePaintBuffers()}destroy(){for(let e in this.binders){let t=this.binders[e];(t instanceof ph||t instanceof Cu||t instanceof zf)&&t.destroy()}}},jd=class{constructor(e,t,r=()=>!0){this.programConfigurations={};for(let i of e)this.programConfigurations[i.id]=new Tne(i,t,r);this.needsUpload=!1,this._featureMap=new xne,this._bufferOffset=0}populatePaintArrays(e,t,r,i){for(let a in this.programConfigurations)this.programConfigurations[a].populatePaintArrays(e,t,i);t.id!==void 0&&this._featureMap.add(t.id,r,this._bufferOffset,e),this._bufferOffset=e,this.needsUpload=!0}updatePaintArrays(e,t,r,i){for(let a of r)this.needsUpload=this.programConfigurations[a.id].updatePaintArrays(e,this._featureMap,t,a,i)||this.needsUpload}get(e){return this.programConfigurations[e]}upload(e){if(this.needsUpload){for(let t in this.programConfigurations)this.programConfigurations[t].upload(e);this.needsUpload=!1}}destroy(){for(let e in this.programConfigurations)this.programConfigurations[e].destroy()}};Yt("ConstantBinder",Fy),Yt("CrossFadedConstantBinder",zd),Yt("SourceExpressionBinder",ph),Yt("CrossFadedPatternBinder",wne),Yt("CrossFadedDasharrayBinder",Ane),Yt("CompositeExpressionBinder",Cu),Yt("ProgramConfiguration",Tne,{omit:["_buffers"]}),Yt("ProgramConfigurationSet",jd);jE=2**14-1,$te=-jE-1;Hte=-32768;aC=class{constructor(e){this.zoom=e.zoom,this.overscaling=e.overscaling,this.layers=e.layers,this.layerIds=this.layers.map(t=>t.id),this.index=e.index,this.hasDependencies=!1,this.layoutVertexArray=new xze,this.indexArray=new qu,this.segments=new Aa,this.programConfigurations=new jd(e.layers,e.zoom),this.stateDependentLayerIds=this.layers.filter(t=>t.isStateDependent()).map(t=>t.id)}populate(e,t,r){let i=this.layers[0],a=[],n=null,o=!1,s=i.type==="heatmap";if(i.type==="circle"){let h=i;n=h.layout.get("circle-sort-key"),o=!n.isConstant(),s||(s=h.paint.get("circle-pitch-alignment")==="map")}let l=s?t.subdivisionGranularity.circle:1,u=new Di(this.zoom),c=this.layers[0]._featureFilter.needGeometry;for(let{feature:h,id:f,index:d,sourceLayerIndex:p}of e){let m=Yf(h,c);if(!this.layers[0]._featureFilter.filter(u,m,r))continue;let g=o?n.evaluate(m,{},r):void 0,y={id:f,properties:h.properties,type:h.type,sourceLayerIndex:p,index:d,geometry:c?m.geometry:Kd(h),patterns:{},sortKey:g};a.push(y)}o&&a.sort((h,f)=>h.sortKey-f.sortKey);for(let h of a){let{geometry:f,index:d,sourceLayerIndex:p}=h,m=e[d].feature;this.addFeature(h,f,d,r,l),t.featureIndex.insert(m,f,d,p,this.index)}}update(e,t,r){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(e,t,this.stateDependentLayers,{imagePositions:r})}addFeatures(e){}isEmpty(){return this.layoutVertexArray.length===0}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(e){this.uploaded||(this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,kze),this.indexBuffer=e.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(e),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())}addFeature(e,t,r,i,a=1){let n;switch(a){case 1:n=[0,7];break;case 3:n=[0,2,5,7];break;case 5:n=[0,1,3,4,6,7];break;case 7:n=[0,1,2,3,4,5,6,7];break;default:throw Error(`Invalid circle bucket granularity: ${a}; valid values are 1, 3, 5, 7.`)}let o=n.length;for(let s of t)for(let l of s){let u=l.x,c=l.y;if(u<0||u>=8192||c<0||c>=8192)continue;let h=this.segments.prepareSegment(o*o,this.layoutVertexArray,this.indexArray,e.sortKey),f=h.vertexLength;for(let d=0;dYte||(Yte=new Ln({"circle-sort-key":new cr(Xe.layout_circle["circle-sort-key"],"circle-sort-key")})),Kze=()=>Wte||(Wte=new Ln({"circle-radius":new cr(Xe.paint_circle["circle-radius"],"circle-radius"),"circle-color":new cr(Xe.paint_circle["circle-color"],"circle-color"),"circle-blur":new cr(Xe.paint_circle["circle-blur"],"circle-blur"),"circle-opacity":new cr(Xe.paint_circle["circle-opacity"],"circle-opacity"),"circle-translate":new Gt(Xe.paint_circle["circle-translate"],"circle-translate"),"circle-translate-anchor":new Gt(Xe.paint_circle["circle-translate-anchor"],"circle-translate-anchor"),"circle-pitch-scale":new Gt(Xe.paint_circle["circle-pitch-scale"],"circle-pitch-scale"),"circle-pitch-alignment":new Gt(Xe.paint_circle["circle-pitch-alignment"],"circle-pitch-alignment"),"circle-stroke-width":new cr(Xe.paint_circle["circle-stroke-width"],"circle-stroke-width"),"circle-stroke-color":new cr(Xe.paint_circle["circle-stroke-color"],"circle-stroke-color"),"circle-stroke-opacity":new cr(Xe.paint_circle["circle-stroke-opacity"],"circle-stroke-opacity")})),Jze={get paint(){return Kze()},get layout(){return Xze()}},Ene=e=>e.type==="circle",Qze=class extends Bu{constructor(e,t){super(e,Jze,t)}createBucket(e){return new aC(e)}queryRadius(e){let t=e;return lm("circle-radius",this,t)+lm("circle-stroke-width",this,t)+Ew(this.paint.get("circle-translate"))}queryIntersectsFeature({queryGeometry:e,feature:t,featureState:r,geometry:i,transform:a,pixelsToTileUnits:n,unwrappedTileID:o,getElevation:s}){let l=kw(e,this.paint.get("circle-translate"),this.paint.get("circle-translate-anchor"),-a.bearingInRadians,n),u=this.paint.get("circle-radius").evaluate(t,r)+this.paint.get("circle-stroke-width").evaluate(t,r),c=this.paint.get("circle-pitch-scale"),h=this.paint.get("circle-pitch-alignment"),f,d;return h==="map"?(f=l,d=u*n):(f=Wze(l,a,o,s),d=u),Sne({queryGeometry:f,size:d,transform:a,unwrappedTileID:o,getElevation:s,pitchAlignment:h,pitchScale:c},i)}},kne=class extends aC{};Yt("HeatmapBucket",kne,{omit:["layers"]});eRe=()=>Xte||(Xte=new Ln({"heatmap-radius":new cr(Xe.paint_heatmap["heatmap-radius"],"heatmap-radius"),"heatmap-weight":new cr(Xe.paint_heatmap["heatmap-weight"],"heatmap-weight"),"heatmap-intensity":new Gt(Xe.paint_heatmap["heatmap-intensity"],"heatmap-intensity"),"heatmap-color":new Mw(Xe.paint_heatmap["heatmap-color"],"heatmap-color"),"heatmap-opacity":new Gt(Xe.paint_heatmap["heatmap-opacity"],"heatmap-opacity")})),tRe={get paint(){return eRe()}};Cw=class Fne{constructor(t,r){lC(this,t,1,r)}resize(t){Cne(this,t,1)}clone(){return new Fne({width:this.width,height:this.height},new Uint8Array(this.data))}static copy(t,r,i,a,n){uC(t,r,i,a,n,1)}},na=class Pne{constructor(t,r){lC(this,t,4,r)}resize(t){Cne(this,t,4)}replace(t,r){r?this.data.set(t):this.data=t instanceof Uint8ClampedArray?new Uint8Array(t.buffer):t}clone(){return new Pne({width:this.width,height:this.height},new Uint8Array(this.data))}static copy(t,r,i,a,n){uC(t,r,i,a,n,4)}setPixel(t,r,i){let a=(t*this.width+r)*4;this.data[a+0]=Math.round(i.r*255/i.a),this.data[a+1]=Math.round(i.g*255/i.a),this.data[a+2]=Math.round(i.b*255/i.a),this.data[a+3]=Math.round(i.a*255)}};Yt("AlphaImage",Cw),Yt("RGBAImage",na);b2="big-fb",Ine=e=>e.type==="heatmap",rRe=class extends Bu{createBucket(e){return new kne(e)}constructor(e,t){super(e,tRe,t),this.heatmapFbos=new Map,this._updateColorRamp()}_handleSpecialPaintPropertyUpdate(e){e==="heatmap-color"&&this._updateColorRamp()}_updateColorRamp(){let e=this._transitionablePaint._values["heatmap-color"].value.expression;this.colorRamp=cC({expression:e,evaluationKey:"heatmapDensity",image:this.colorRamp}),this.colorRampTexture=null}resize(){this.heatmapFbos.has("big-fb")&&this.heatmapFbos.delete(b2)}queryRadius(e){return lm("heatmap-radius",this,e)}queryIntersectsFeature({queryGeometry:e,feature:t,featureState:r,geometry:i,transform:a,pixelsToTileUnits:n,unwrappedTileID:o,getElevation:s}){return Sne({queryGeometry:e,size:this.paint.get("heatmap-radius").evaluate(t,r)*n,transform:a,unwrappedTileID:o,getElevation:s},i)}hasOffscreenPass(){return this.paint.get("heatmap-opacity")!==0&&!this.isHidden()}},iRe=()=>Kte||(Kte=new Ln({"hillshade-illumination-direction":new Gt(Xe.paint_hillshade["hillshade-illumination-direction"],"hillshade-illumination-direction"),"hillshade-illumination-altitude":new Gt(Xe.paint_hillshade["hillshade-illumination-altitude"],"hillshade-illumination-altitude"),"hillshade-illumination-anchor":new Gt(Xe.paint_hillshade["hillshade-illumination-anchor"],"hillshade-illumination-anchor"),"hillshade-exaggeration":new Gt(Xe.paint_hillshade["hillshade-exaggeration"],"hillshade-exaggeration"),"hillshade-shadow-color":new Gt(Xe.paint_hillshade["hillshade-shadow-color"],"hillshade-shadow-color"),"hillshade-highlight-color":new Gt(Xe.paint_hillshade["hillshade-highlight-color"],"hillshade-highlight-color"),"hillshade-accent-color":new Gt(Xe.paint_hillshade["hillshade-accent-color"],"hillshade-accent-color"),"hillshade-method":new Gt(Xe.paint_hillshade["hillshade-method"],"hillshade-method"),resampling:new Gt(Xe.paint_hillshade.resampling,"resampling")})),aRe={get paint(){return iRe()}},Lne=e=>e.type==="hillshade",nRe=class extends Bu{constructor(e,t){super(e,aRe,t),this.recalculate({zoom:0,zoomHistory:{}},void 0)}getIlluminationProperties(){let e=this.paint.get("hillshade-illumination-direction").values,t=this.paint.get("hillshade-illumination-altitude").values,r=this.paint.get("hillshade-highlight-color").values,i=this.paint.get("hillshade-shadow-color").values,a=Math.max(e.length,t.length,r.length,i.length);e=e.concat(Array(a-e.length).fill(e.at(-1))),t=t.concat(Array(a-t.length).fill(t.at(-1))),r=r.concat(Array(a-r.length).fill(r.at(-1))),i=i.concat(Array(a-i.length).fill(i.at(-1)));let n=t.map(pa);return{directionRadians:e.map(pa),altitudeRadians:n,shadowColor:i,highlightColor:r}}hasOffscreenPass(){return this.paint.get("hillshade-exaggeration")!==0&&!this.isHidden()}},oRe=()=>Jte||(Jte=new Ln({"color-relief-opacity":new Gt(Xe["paint_color-relief"]["color-relief-opacity"],"color-relief-opacity"),"color-relief-color":new Mw(Xe["paint_color-relief"]["color-relief-color"],"color-relief-color"),resampling:new Gt(Xe["paint_color-relief"].resampling,"resampling")})),sRe={get paint(){return oRe()}};dn=class{constructor(e,t,r,i){this.context=e,this.format=r,this.texture=e.gl.createTexture(),this._ownedHandle=this.texture,this.update(t,i)}update(e,t,r){var u;let{width:i,height:a}=e,n=(((u=this.size)==null?void 0:u[0])!==i||this.size[1]!==a)&&!r,{context:o}=this,{gl:s}=o;this.useMipmap=!!(t!=null&&t.useMipmap),n&&this.size&&this.format===s.RGBA&&(s.deleteTexture(this.texture),this.texture=s.createTexture(),this._ownedHandle=this.texture,this.magFilter=void 0,this.minFilter=void 0,this.wrap=void 0),s.bindTexture(s.TEXTURE_2D,this.texture),o.pixelStoreUnpackFlipY.set(!1),o.pixelStoreUnpack.set(1);let l=this.format===s.RGBA&&(t==null?void 0:t.premultiply)!==!1;if(n)if(this.size=[i,a],this.format===s.RGBA&&i>0&&a>0){let c=this.useMipmap?Math.floor(Math.log2(Math.max(i,a)))+1:1;if(s.texStorage2D(s.TEXTURE_2D,c,s.RGBA8,i,a),p4(e)){o.pixelStoreUnpackPremultiplyAlpha.set(!1);let{data:h}=e;l&&h&&(h=eE(h)),h&&s.texSubImage2D(s.TEXTURE_2D,0,0,0,i,a,s.RGBA,s.UNSIGNED_BYTE,h)}else o.pixelStoreUnpackPremultiplyAlpha.set(l),s.texSubImage2D(s.TEXTURE_2D,0,0,0,s.RGBA,s.UNSIGNED_BYTE,e)}else p4(e)?(o.pixelStoreUnpackPremultiplyAlpha.set(!1),this._uploadRawData(e,l,i,a,s)):(o.pixelStoreUnpackPremultiplyAlpha.set(l),this._uploadDomImage(e,s));else{let{x:c,y:h}=r||{x:0,y:0};p4(e)?(o.pixelStoreUnpackPremultiplyAlpha.set(!1),this._updateRawData(e,l,c,h,i,a,s)):(o.pixelStoreUnpackPremultiplyAlpha.set(l),this._updateDomImage(e,c,h,s))}this.useMipmap&&!(p4(e)&&e.data===null)&&s.generateMipmap(s.TEXTURE_2D),o.pixelStoreUnpackFlipY.setDefault(),o.pixelStoreUnpack.setDefault(),o.pixelStoreUnpackPremultiplyAlpha.setDefault()}_uploadDomImage(e,t){t.texImage2D(t.TEXTURE_2D,0,this.format,this.format,t.UNSIGNED_BYTE,e)}_uploadRawData(e,t,r,i,a){let{data:n}=e;t&&n&&(n=eE(n)),a.texImage2D(a.TEXTURE_2D,0,this.format,r,i,0,this.format,a.UNSIGNED_BYTE,n)}_updateDomImage(e,t,r,i){i.texSubImage2D(i.TEXTURE_2D,0,t,r,i.RGBA,i.UNSIGNED_BYTE,e)}_updateRawData(e,t,r,i,a,n,o){let{data:s}=e;t&&s&&(s=eE(s)),o.texSubImage2D(o.TEXTURE_2D,0,r,i,a,n,o.RGBA,o.UNSIGNED_BYTE,s)}bind(e,t,r){let{context:i}=this,{gl:a}=i;this.texture!==this._ownedHandle&&(this.texture=this._ownedHandle),a.bindTexture(a.TEXTURE_2D,this.texture),(r===a.LINEAR_MIPMAP_NEAREST||r===a.LINEAR_MIPMAP_LINEAR)&&!this.useMipmap&&(r=a.LINEAR);let n=r||e;e!==this.magFilter&&(a.texParameteri(a.TEXTURE_2D,a.TEXTURE_MAG_FILTER,e),this.magFilter=e),n!==this.minFilter&&(a.texParameteri(a.TEXTURE_2D,a.TEXTURE_MIN_FILTER,n),this.minFilter=n),t!==this.wrap&&(a.texParameteri(a.TEXTURE_2D,a.TEXTURE_WRAP_S,t),a.texParameteri(a.TEXTURE_2D,a.TEXTURE_WRAP_T,t),this.wrap=t)}generateMipmap(){if(!this.useMipmap)return;let{gl:e}=this.context;e.bindTexture(e.TEXTURE_2D,this.texture),e.generateMipmap(e.TEXTURE_2D)}destroy(){let{gl:e}=this.context;e.deleteTexture(this.texture),this.texture=null,this._ownedHandle=null}},lRe=(gh=class{constructor(t,r,i,a=1,n=1,o=1,s=0){if(this.uid=t,r.height!==r.width)throw RangeError("DEM tiles must be square");if(i&&!["mapbox","terrarium","custom"].includes(i)){Xr(`"${i}" is not a valid encoding type. Valid types include "mapbox", "terrarium" and "custom".`);return}this.stride=r.height;let l=this.dim=r.height-4;switch(this.data=new Uint32Array(r.data.buffer),gh.byteViewCache.set(this,new Uint8Array(this.data.buffer)),i){case"terrarium":this.redFactor=256,this.greenFactor=1,this.blueFactor=1/256,this.baseShift=32768;break;case"custom":this.redFactor=a,this.greenFactor=n,this.blueFactor=o,this.baseShift=s;break;default:this.redFactor=6553.6,this.greenFactor=25.6,this.blueFactor=.1,this.baseShift=1e4}for(let c=-2;c=l)&&this.data.copyWithin(this._idx(0,c),h,h+l),this.data.fill(this.data[h],this._idx(-2,c),this._idx(0,c)),this.data.fill(this.data[h+l-1],this._idx(l,c),this._idx(l+1,c)+1)}let u=this._getByteView();this.min=2**53-1,this.max=-(2**53-1);for(let c=0;cthis.max&&(this.max=d),d=this.dim||a<-1||a>=this.dim)throw RangeError(`Out of range source coordinates for DEM data. x: ${t}, y: ${r}, dim: ${this.dim}`);let n=this._getByteView(),o=((a+2)*this.stride+i+2)*4,s=this.stride*4,l=t-i,u=r-a,c=this._unpackAtIndex(n,o),h=this._unpackAtIndex(n,o+4),f=this._unpackAtIndex(n,o+s),d=this._unpackAtIndex(n,o+s+4);return c*(1-l)*(1-u)+h*l*(1-u)+f*(1-l)*u+d*l*u}getUnpackVector(){return[this.redFactor,this.greenFactor,this.blueFactor,this.baseShift]}_idx(t,r){if(t<-2||t>=this.dim+2||r<-2||r>=this.dim+2)throw RangeError(`Out of range source coordinates for DEM data. x: ${t}, y: ${r}, dim: ${this.dim}`);return(r+2)*this.stride+(t+2)}unpack(t,r,i){return t*this.redFactor+r*this.greenFactor+i*this.blueFactor-this.baseShift}pack(t){return zne(t,this.getUnpackVector())}getPixels(){return new na({width:this.stride,height:this.stride},this._getByteView())}backfillBorder(t,r,i){if(this.dim!==t.dim)throw Error("dem dimension mismatch");let a=r*this.dim,n=r*this.dim+this.dim,o=i*this.dim,s=i*this.dim+this.dim;switch(r){case-1:a=n-2;break;case 1:n=a+2}switch(i){case-1:o=s-2;break;case 1:s=o+2}let l=-r*this.dim,u=-i*this.dim;for(let c=o;ce.type==="color-relief",uRe=class extends Bu{constructor(e,t){super(e,sRe,t)}_createColorRamp(e){let t={elevationStops:[],colorStops:[]},r=this._transitionablePaint._values["color-relief-color"].value.expression;if(r instanceof Zy&&r._styleExpression.expression instanceof Gl){this.colorRampExpression=r;let n=r._styleExpression.expression;t.elevationStops=n.labels,t.colorStops=[];for(let o of t.elevationStops)t.colorStops.push(n.evaluate({globals:{elevation:o}}))}if(t.elevationStops.length<1&&(t.elevationStops=[0],t.colorStops=[Sr.transparent]),t.elevationStops.length<2&&(t.elevationStops.push(t.elevationStops[0]+1),t.colorStops.push(t.colorStops[0])),t.elevationStops.length<=e)return t;let i={elevationStops:[],colorStops:[]},a=(t.elevationStops.length-1)/(e-1);for(let n=0;ne)throw Error("Min granularity must not be greater than base granularity.");this._baseZoomGranularity=e,this._minGranularity=t}getGranularityForZoomLevel(e){let t=1<32767||t>32767)throw Error("Vertex coordinates are out of signed 16 bit integer range.");let r=Math.round(e)|0,i=Math.round(t)|0,a=this._getKey(r,i),n=this._vertexDictionary.get(a);if(n!==void 0)return n;let o=this._vertexBuffer.length/2;return this._vertexDictionary.set(a,o),this._vertexBuffer.push(r,i),o}_subdivideTrianglesScanline(e,t){if(this._granularity<2)return IRe(this._vertexBuffer,PRe(e,t));let r=[],i=e.length;for(let a=0;a=1||_<=0)||g&&(la)){c>=i&&c<=a&&n.push(r[(o+1)%3]);continue}if(!g&&b>0){let M=s+d*b,S=l+p*b;n.push(this._vertexToIndex(M,S))}let A=s+d*Math.max(b,0),T=s+d*Math.min(_,1);if(m||this._generateIntraEdgeVertices(n,s,l,u,c,A,T),!g&&_<1){let M=s+d*_,S=l+p*_;n.push(this._vertexToIndex(M,S))}(g||c>=i&&c<=a)&&n.push(r[(o+1)%3]),!g&&(c<=i||c>=a)&&this._generateInterEdgeVertices(n,s,l,u,c,h,f,T,i,a)}return n}_generateIntraEdgeVertices(e,t,r,i,a,n,o){let s=i-t,l=a-r,u=l===0,c=u?Math.min(t,i):Math.min(n,o),h=u?Math.max(t,i):Math.max(n,o),f=Math.floor(c/this._granularityCellSize)+1,d=Math.ceil(h/this._granularityCellSize)-1;if(u?t=f;p--){let m=p*this._granularityCellSize,g=r+l*(m-t)/s;e.push(this._vertexToIndex(m,g))}}_generateInterEdgeVertices(e,t,r,i,a,n,o,s,l,u){let c=a-r,h=n-i,f=o-a,d=(l-a)/f,p=(u-a)/f,m=Math.min(d,p),g=Math.max(d,p),y=i+h*m,x=Math.floor(Math.min(y,s)/this._granularityCellSize)+1,b=Math.ceil(Math.max(y,s)/this._granularityCellSize)-1,_=s=1||g<=0){let M=t-n,S=r-o,k=(l-o)/S,P=(u-o)/S,I=n+M*Math.min(k,P);x=Math.floor(Math.min(I,s)/this._granularityCellSize)+1,b=Math.ceil(Math.max(I,s)/this._granularityCellSize)-1,_=s0?u:l;if(_)for(let M=x;M<=b;M++){let S=M*this._granularityCellSize;e.push(this._vertexToIndex(S,T))}else for(let M=b;M>=x;M--){let S=M*this._granularityCellSize;e.push(this._vertexToIndex(S,T))}}_generateOutline(e,t){let r=[],i=0;for(let a of e){let n=this._granularity<2?this._ringPathIndices(a,i,t):this._pointArrayToIndices(Bd(a,this._granularity,!0));i+=a.length;let o=[];for(let s=1;s=2&&Une(e)&&i.push(i[0]),i}_handlePoles(e){let t=!1,r=!1;this._canonical&&(this._canonical.y===0&&(t=!0),this._canonical.y===(1<a==(n===-32768)?(e.push(r),e.push(t),e.push(this._vertexToIndex(i,n)),e.push(this._vertexToIndex(a,n)),e.push(r),e.push(this._vertexToIndex(i,n))):(e.push(t),e.push(r),e.push(this._vertexToIndex(i,n)),e.push(r),e.push(this._vertexToIndex(a,n)),e.push(this._vertexToIndex(i,n)))}_fillPoles(e,t,r){let i=this._vertexBuffer,a=ct,n=e.length;for(let o=2;o=2&&((s=this._canonical)==null?void 0:s.z)===0&&(n=this._removeTrianglesOutsideTileX(n),o=o.map(l=>this._removeLinesOutsideTileX(l))),{verticesFlattened:this._vertexBuffer,indicesTriangles:n,indicesLineList:o}}_vertexOutsideTileX(e){let t=this._vertexBuffer[e*2];return t<0||t>8192}_removeTrianglesOutsideTileX(e){let t=[];for(let r=0;rt.id),this.index=e.index,this.hasDependencies=!1,this.sdfPatterns={},this.patternFeatures=[],this.layoutVertexArray=new bze,this.indexArray=new qu,this.indexArray2=new NE,this.programConfigurations=new jd(e.layers,e.zoom),this.segments=new Aa,this.segments2=new Aa,this.stateDependentLayerIds=this.layers.filter(t=>t.isStateDependent()).map(t=>t.id)}populate(e,t,r){this.hasDependencies=U4("fill",this.layers,t);let i=this.layers[0].layout.get("fill-sort-key"),a=!i.isConstant(),n=[],o=new Di(this.zoom),s=this.layers[0]._featureFilter.needGeometry;for(let{feature:l,id:u,index:c,sourceLayerIndex:h}of e){let f=Yf(l,s);if(!this.layers[0]._featureFilter.filter(o,f,r))continue;let d=a?i.evaluate(f,{},r,t.availableImages):void 0,p={id:u,properties:l.properties,type:l.type,sourceLayerIndex:h,index:c,geometry:s?f.geometry:Kd(l),patterns:{},sortKey:d};n.push(p)}a&&n.sort((l,u)=>l.sortKey-u.sortKey);for(let l of n){let{geometry:u,index:c,sourceLayerIndex:h}=l;if(this.hasDependencies){let d=hC("fill",this.layers,l,{zoom:this.zoom},t);this.patternFeatures.push(d)}else this.addFeature(l,u,c,r,{},t.subdivisionGranularity);let f=e[c].feature;t.featureIndex.insert(f,u,c,h,this.index)}}update(e,t,r){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(e,t,this.stateDependentLayers,{imagePositions:r})}addFeatures({options:e,canonical:t,patternPositions:r,patternMap:i}){this.detectSdfPatterns(i);for(let a of this.patternFeatures)this.addFeature(a,a.geometry,a.index,t,r,e.subdivisionGranularity)}detectSdfPatterns(e){for(let t of this.patternFeatures)for(let r in t.patterns){let i=t.patterns[r];this.recordSdfPattern(r,e[i.min]),this.recordSdfPattern(r,e[i.mid]),this.recordSdfPattern(r,e[i.max])}for(let t of this.layers){let r=t.paint.get("fill-pattern").constantOr(null);r&&(this.recordSdfPattern(t.id,e[r.from.toString()]),this.recordSdfPattern(t.id,e[r.to.toString()]))}}recordSdfPattern(e,t){if(!t)return;let r=t.sdf===!0,i=this.sdfPatterns[e];i===void 0?this.sdfPatterns[e]=r:i!==r&&Xr(`Style sheet warning: Cannot mix SDF and non-SDF fill patterns in layer "${e}"`)}isEmpty(){return this.layoutVertexArray.length===0}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(e){this.uploaded||(this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,cRe),this.indexBuffer=e.createIndexBuffer(this.indexArray),this.indexBuffer2=e.createIndexBuffer(this.indexArray2)),this.programConfigurations.upload(e),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.indexBuffer2.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.segments2.destroy())}addFeature(e,t,r,i,a,n){for(let o of mw(t,500)){let s=Vne(o,i,n.fill.getGranularityForZoomLevel(i.z)),l=this.layoutVertexArray;Gne((u,c)=>{l.emplaceBack(u,c)},this.segments,this.layoutVertexArray,this.indexArray,s.verticesFlattened,s.indicesTriangles,this.segments2,this.indexArray2,s.indicesLineList)}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,e,r,{imagePositions:a,canonical:i})}};Yt("FillBucket",jne,{omit:["layers","patternFeatures"]});BRe=()=>rre||(rre=new Ln({"fill-sort-key":new cr(Xe.layout_fill["fill-sort-key"],"fill-sort-key")})),qRe=()=>ire||(ire=new Ln({"fill-antialias":new Gt(Xe.paint_fill["fill-antialias"],"fill-antialias"),"fill-opacity":new cr(Xe.paint_fill["fill-opacity"],"fill-opacity"),"fill-layer-opacity":new Gt(Xe.paint_fill["fill-layer-opacity"],"fill-layer-opacity"),"fill-color":new cr(Xe.paint_fill["fill-color"],"fill-color"),"fill-outline-color":new cr(Xe.paint_fill["fill-outline-color"],"fill-outline-color"),"fill-translate":new Gt(Xe.paint_fill["fill-translate"],"fill-translate"),"fill-translate-anchor":new Gt(Xe.paint_fill["fill-translate-anchor"],"fill-translate-anchor"),"fill-pattern":new Xy(Xe.paint_fill["fill-pattern"],"fill-pattern")})),ORe={get paint(){return qRe()},get layout(){return BRe()}},$ne=e=>e.type==="fill",NRe=class extends Bu{constructor(e,t){super(e,ORe,t)}recalculate(e,t){super.recalculate(e,t);let r=this.paint._values["fill-outline-color"];r.value.kind==="constant"&&r.value.value===void 0&&(this.paint._values["fill-outline-color"]=this.paint._values["fill-color"])}createBucket(e){return new jne(e)}queryRadius(){return Ew(this.paint.get("fill-translate"))}queryIntersectsFeature({queryGeometry:e,geometry:t,transform:r,pixelsToTileUnits:i}){return Mne(kw(e,this.paint.get("fill-translate"),this.paint.get("fill-translate-anchor"),-r.bearingInRadians,i),t)}isTileClipped(){return!0}},ek=Ea([{name:"a_pos",components:2,type:"Int16"},{name:"a_normal_ed",components:4,type:"Int16"}],4),VRe=Ea([{name:"a_centroid",components:2,type:"Int16"}],4),URe=ek.members;ek.size,ek.alignment;jl=class tk{constructor(){this.minX=1/0,this.maxX=-1/0,this.minY=1/0,this.maxY=-1/0}extend(t){return this.minX=Math.min(this.minX,t.x),this.minY=Math.min(this.minY,t.y),this.maxX=Math.max(this.maxX,t.x),this.maxY=Math.max(this.maxY,t.y),this}expandBy(t){return this.minX-=t,this.minY-=t,this.maxX+=t,this.maxY+=t,(this.minX>this.maxX||this.minY>this.maxY)&&(this.minX=1/0,this.maxX=-1/0,this.minY=1/0,this.maxY=-1/0),this}shrinkBy(t){return this.expandBy(-t)}map(t){let r=new tk;return r.extend(t(new qe(this.minX,this.minY))),r.extend(t(new qe(this.maxX,this.minY))),r.extend(t(new qe(this.minX,this.maxY))),r.extend(t(new qe(this.maxX,this.maxY))),r}static fromPoints(t){let r=new tk;for(let i of t)r.extend(i);return r}contains(t){return t.x>=this.minX&&t.x<=this.maxX&&t.y>=this.minY&&t.y<=this.maxY}empty(){return this.minX>this.maxX}width(){return this.maxX-this.minX}height(){return this.maxY-this.minY}covers(t){return!this.empty()&&!t.empty()&&t.minX>=this.minX&&t.maxX<=this.maxX&&t.minY>=this.minY&&t.maxY<=this.maxY}intersects(t){return!this.empty()&&!t.empty()&&t.minX<=this.maxX&&t.maxX>=this.minX&&t.minY<=this.maxY&&t.maxY>=this.minY}},Hne=jl.fromPoints([new qe(0,0),new qe(ct,ct)]);w2=class{constructor(e,t,r,i,a){for(this.properties=Object.create(null),this.extent=r,this.type=0,this.id=void 0,this._pbf=e,this._geometry=-1,this._keys=i,this._values=a;e.pos>3,n===0)continue}if(n--,a===1)o+=e.readSVarint(),s+=e.readSVarint(),i&&r.push(i),i=[new qe(o,s)];else if(a===2)o+=e.readSVarint(),s+=e.readSVarint(),i&&i.push(new qe(o,s));else if(a===7)i&&i.push(i[0].clone());else throw Error(`unknown command ${a}`)}return i&&r.push(i),r}bbox(){if(this._geometry<0)throw Error("feature has no geometry");let e=this._pbf;e.pos=this._geometry;let t=e.readVarint()+e.pos,r=1,i=0,a=0,n=0,o=1/0,s=-1/0,l=1/0,u=-1/0;for(;e.pos>3,i===0)continue}if(i--,r===1||r===2)a+=e.readSVarint(),n+=e.readSVarint(),as&&(s=a),nu&&(u=n);else if(r!==7)throw Error(`unknown command ${r}`)}return[o,l,s,u]}toGeoJSON(e,t,r){let i=this.extent*2**r,a=this.extent*e,n=this.extent*t,o=this.loadGeometry();function s(h){return[(h.x+a)*360/i-180,360/Math.PI*Math.atan(Math.exp((1-(h.y+n)*2/i)*Math.PI))-90]}function l(h){return h.map(s)}let u;if(this.type===1){let h=[];for(let d of o)h.push(d[0]);let f=l(h);u=h.length===1?{type:"Point",coordinates:f[0]}:{type:"MultiPoint",coordinates:f}}else if(this.type===2){let h=o.map(l);u=h.length===1?{type:"LineString",coordinates:h[0]}:{type:"MultiLineString",coordinates:h}}else if(this.type===3){let h=Zne(o),f=[];for(let d of h)f.push(d.map(l));u=f.length===1?{type:"Polygon",coordinates:f[0]}:{type:"MultiPolygon",coordinates:f}}else throw Error("unknown feature type");let c={type:"Feature",geometry:u,properties:this.properties};return this.id!=null&&(c.id=this.id),c}};w2.types=["Unknown","Point","LineString","Polygon"];jRe=class{constructor(e,t){for(this.version=1,this.name="",this.extent=4096,this.length=0,this._pbf=e,this._keys=[],this._values=[],this._features=[],t===void 0&&(t=e.length);e.pos=this._features.length)throw Error("feature index out of bounds");this._pbf.pos=this._features[e];let t=this._pbf.readVarint()+this._pbf.pos;return new w2(this._pbf,t,this.extent,this._keys,this._values)}};HRe=class{constructor(e,t=e.length){let r=Object.create(null);for(;e.pos90||this.lat<-90)throw Error("Invalid LngLat latitude value: must be between -90 and 90")}wrap(){return new Py(rl(this.lng,-180,180),this.lat)}toArray(){return[this.lng,this.lat]}toString(){return`LngLat(${this.lng}, ${this.lat})`}distanceTo(t){let r=Math.PI/180,i=this.lat*r,a=t.lat*r,n=Math.sin(i)*Math.sin(a)+Math.cos(i)*Math.cos(a)*Math.cos((t.lng-this.lng)*r);return No*Math.acos(Math.min(n,1))}static convert(t){if(t instanceof Py)return t;if(Array.isArray(t)&&(t.length===2||t.length===3))return new Py(Number(t[0]),Number(t[1]));if(!Array.isArray(t)&&typeof t=="object"&&t)return new Py(Number("lng"in t?t.lng:t.lon),Number(t.lat));throw Error("`LngLatLike` argument must be specified as a LngLat instance, an object {lng: , lat: }, an object {lon: , lat: }, or an array of [, ]")}},Yne=2*Math.PI*No;wi=class Xne{constructor(t,r,i=0){this.x=+t,this.y=+r,this.z=+i}static fromLngLat(t,r=0){let i=ar.convert(t);return new Xne(Jd(i.lng),Qd(i.lat),Wf(r,i.lat))}toLngLat(){return new ar(Pw(this.x),wm(this.y))}toAltitude(){return fC(this.z,this.y)}meterInMercatorCoordinateUnits(){return 1/Yne*ZRe(wm(this.y))}},Xf=89.25;tE=8192;Jne=class{constructor(e){this.zoom=e.zoom,this.overscaling=e.overscaling,this.layers=e.layers,this.layerIds=this.layers.map(t=>t.id),this.index=e.index,this.hasDependencies=!1,this.layoutVertexArray=new wze,this.centroidVertexArray=new Mh,this.indexArray=new qu,this.programConfigurations=new jd(e.layers,e.zoom),this.segments=new Aa,this.stateDependentLayerIds=this.layers.filter(t=>t.isStateDependent()).map(t=>t.id)}populate(e,t,r){this.features=[],this.hasDependencies=U4("fill-extrusion",this.layers,t);let i=new Di(this.zoom),a=this.layers[0],n=a.layout.get("fill-extrusion-rounded-corner-distance"),o=n>0?XRe(n,r):0,s=a._featureFilter.needGeometry;for(let{feature:l,id:u,index:c,sourceLayerIndex:h}of e){let f=Yf(l,s);if(!a._featureFilter.filter(i,f,r))continue;let d={id:u,sourceLayerIndex:h,index:c,geometry:WRe(s?f.geometry:Kd(l),o),properties:l.properties,type:l.type,patterns:{}};this.hasDependencies?this.features.push(hC("fill-extrusion",this.layers,d,{zoom:this.zoom},t)):this.addFeature(d,d.geometry,c,r,{},t.subdivisionGranularity),t.featureIndex.insert(l,d.geometry,c,h,this.index,!0)}}addFeatures({options:e,canonical:t,patternPositions:r}){for(let i of this.features){let{geometry:a}=i;this.addFeature(i,a,i.index,t,r,e.subdivisionGranularity)}}update(e,t,r){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(e,t,this.stateDependentLayers,{imagePositions:r})}isEmpty(){return this.layoutVertexArray.length===0&&this.centroidVertexArray.length===0}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(e){this.uploaded||(this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,URe),this.centroidVertexBuffer=e.createVertexBuffer(this.centroidVertexArray,VRe.members,!0),this.indexBuffer=e.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(e),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.centroidVertexBuffer.destroy())}addFeature(e,t,r,i,a,n){for(let o of mw(t,500)){let s={x:0,y:0,sampleCount:0},l=this.layoutVertexArray.length;this.processPolygon(s,i,e,o,n);let u=this.layoutVertexArray.length-l,c=Math.floor(s.x/s.sampleCount),h=Math.floor(s.y/s.sampleCount);for(let f=0;f{Ay(u,c,h,0,0,1,1,0)},this.segments,this.layoutVertexArray,this.indexArray,l.verticesFlattened,l.indicesTriangles)}_generateSideFaces(e,t){let r=0;for(let i=1;iAa.MAX_VERTEX_ARRAY_LENGTH&&(t.segment=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray));let o=a.sub(n)._perp()._unit(),s=n.dist(a);r+s>32768&&(r=0),Ay(this.layoutVertexArray,a.x,a.y,o.x,o.y,0,0,r),Ay(this.layoutVertexArray,a.x,a.y,o.x,o.y,0,1,r),r+=s,Ay(this.layoutVertexArray,n.x,n.y,o.x,o.y,0,0,r),Ay(this.layoutVertexArray,n.x,n.y,o.x,o.y,0,1,r);let l=t.segment.vertexLength;this.indexArray.emplaceBack(l,l+2,l+1),this.indexArray.emplaceBack(l+1,l+2,l+3),t.segment.vertexLength+=4,t.segment.primitiveLength+=2}}};Yt("FillExtrusionBucket",Jne,{omit:["layers","features"]});tBe=()=>nre||(nre=new Ln({"fill-extrusion-rounded-corner-distance":new Gt(Xe["layout_fill-extrusion"]["fill-extrusion-rounded-corner-distance"],"fill-extrusion-rounded-corner-distance")})),rBe=()=>ore||(ore=new Ln({"fill-extrusion-opacity":new Gt(Xe["paint_fill-extrusion"]["fill-extrusion-opacity"],"fill-extrusion-opacity"),"fill-extrusion-color":new cr(Xe["paint_fill-extrusion"]["fill-extrusion-color"],"fill-extrusion-color"),"fill-extrusion-translate":new Gt(Xe["paint_fill-extrusion"]["fill-extrusion-translate"],"fill-extrusion-translate"),"fill-extrusion-translate-anchor":new Gt(Xe["paint_fill-extrusion"]["fill-extrusion-translate-anchor"],"fill-extrusion-translate-anchor"),"fill-extrusion-pattern":new Xy(Xe["paint_fill-extrusion"]["fill-extrusion-pattern"],"fill-extrusion-pattern"),"fill-extrusion-height":new cr(Xe["paint_fill-extrusion"]["fill-extrusion-height"],"fill-extrusion-height"),"fill-extrusion-base":new cr(Xe["paint_fill-extrusion"]["fill-extrusion-base"],"fill-extrusion-base"),"fill-extrusion-vertical-gradient":new Gt(Xe["paint_fill-extrusion"]["fill-extrusion-vertical-gradient"],"fill-extrusion-vertical-gradient")})),iBe={get paint(){return rBe()},get layout(){return tBe()}},Qne=e=>e.type==="fill-extrusion",aBe=class extends Bu{constructor(e,t){super(e,iBe,t)}createBucket(e){return new Jne(e)}queryRadius(){return Ew(this.paint.get("fill-extrusion-translate"))}is3D(){return!0}queryIntersectsFeature({queryGeometry:e,feature:t,featureState:r,geometry:i,transform:a,pixelsToTileUnits:n,pixelPosMatrix:o}){let s=kw(e,this.paint.get("fill-extrusion-translate"),this.paint.get("fill-extrusion-translate-anchor"),-a.bearingInRadians,n),l=this.paint.get("fill-extrusion-height").evaluate(t,r),u=this.paint.get("fill-extrusion-base").evaluate(t,r),c=sBe(s,o,0),h=oBe(i,u,l,o),f=h[0],d=h[1];return nBe(f,d,c)}};lBe="geojsonvt_clip_start",uBe="geojsonvt_clip_end",ik=Ea([{name:"a_pos_normal",components:2,type:"Int16"},{name:"a_data",components:4,type:"Uint8"}],4),cBe=ik.members;ik.size,ik.alignment;ak=Ea([{name:"a_uv_x",components:1,type:"Float32"},{name:"a_split_index",components:1,type:"Float32"}]),hBe=ak.members;ak.size,ak.alignment;fBe=Math.cos(75/2*(Math.PI/180)),eoe=1/2,lre=2**14/eoe,toe=class{constructor(e){this.zoom=e.zoom,this.overscaling=e.overscaling,this.layers=e.layers,this.layerIds=this.layers.map(t=>t.id),this.index=e.index,this.hasDependencies=!1,this.patternFeatures=[],this.lineClipsArray=[],this.gradients={};for(let t of this.layers)this.gradients[t.id]={};this.layoutVertexArray=new Aze,this.layoutVertexArray2=new Tze,this.indexArray=new qu,this.programConfigurations=new jd(e.layers,e.zoom),this.segments=new Aa,this.maxLineLength=0,this.stateDependentLayerIds=this.layers.filter(t=>t.isStateDependent()).map(t=>t.id)}populate(e,t,r){this.hasDependencies=U4("line",this.layers,t)||this.hasLineDasharray(this.layers);let i=this.layers[0].layout.get("line-sort-key"),a=!i.isConstant(),n=[],o=new Di(this.zoom),s=this.layers[0]._featureFilter.needGeometry;for(let{feature:l,id:u,index:c,sourceLayerIndex:h}of e){let f=Yf(l,s);if(!this.layers[0]._featureFilter.filter(o,f,r))continue;let d=a?i.evaluate(f,{},r):void 0,p={id:u,properties:l.properties,type:l.type,sourceLayerIndex:h,index:c,geometry:s?f.geometry:Kd(l),patterns:{},dashes:{},sortKey:d};n.push(p)}a&&n.sort((l,u)=>l.sortKey-u.sortKey);for(let l of n){let{geometry:u,index:c,sourceLayerIndex:h}=l;this.hasDependencies?(U4("line",this.layers,t)?hC("line",this.layers,l,{zoom:this.zoom},t):this.hasLineDasharray(this.layers)&&this.addLineDashDependencies(this.layers,l,this.zoom,t),this.patternFeatures.push(l)):this.addFeature(l,u,c,r,{},{},t.subdivisionGranularity);let f=e[c].feature;t.featureIndex.insert(f,u,c,h,this.index)}}update(e,t,r,i){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(e,t,this.stateDependentLayers,{imagePositions:r,dashPositions:i})}addFeatures({options:e,canonical:t,patternPositions:r,dashPositions:i}){for(let a of this.patternFeatures)this.addFeature(a,a.geometry,a.index,t,r,i,e.subdivisionGranularity)}isEmpty(){return this.layoutVertexArray.length===0}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(e){this.uploaded||(this.layoutVertexArray2.length!==0&&(this.layoutVertexBuffer2=e.createVertexBuffer(this.layoutVertexArray2,hBe)),this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,cBe),this.indexBuffer=e.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(e),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())}lineFeatureClips(e){if(e.properties&&Object.hasOwn(e.properties,"geojsonvt_clip_start")&&Object.hasOwn(e.properties,"geojsonvt_clip_end"))return{start:+e.properties[lBe],end:+e.properties[uBe]}}addFeature(e,t,r,i,a,n,o){let s=this.layers[0].layout,l=s.get("line-join").evaluate(e,{}),u=s.get("line-cap").evaluate(e,{}),c=s.get("line-miter-limit").evaluate(e,{}),h=s.get("line-round-limit").evaluate(e,{});this.lineClips=this.lineFeatureClips(e);for(let f of t)this.addLine(f,e,l,u,c,h,i,o);this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,e,r,{imagePositions:a,dashPositions:n,canonical:i})}addLine(e,t,r,i,a,n,o,s){this.distance=0,this.scaledDistance=0,this.totalDistance=0;let l=o?s.line.getGranularityForZoomLevel(o.z):1;if(e=Bd(e,l),this.lineClips){this.lineClipsArray.push(this.lineClips);for(let b=0;b=2&&e[c-1].equals(e[c-2]);)c--;let h=0;for(;h0;if(k&&b>h){let L=p.dist(m);if(L>2*f){let z=p.sub(p.sub(m)._mult(f/L)._round());this.updateDistance(m,z),this.addCurrentVertex(z,y,0,0,d),m=z}}let I=m&&g,B=I?r:u?"butt":i;if(I&&B==="round"&&(Ma&&(B="bevel"),B==="bevel"&&(M>2&&(B="flipbevel"),M100)_=x.mult(-1);else{let L=M*y.add(x).mag()/y.sub(x).mag();_._perp()._mult(L*(P?-1:1))}this.addCurrentVertex(p,_,0,0,d),this.addCurrentVertex(p,_.mult(-1),0,0,d)}else if(B==="bevel"||B==="fakeround"){let L=-Math.sqrt(M*M-1),z=P?L:0,q=P?0:L;if(m&&this.addCurrentVertex(p,y,z,q,d),B==="fakeround"){let V=Math.round(S*180/Math.PI/20);for(let j=1;j2*f){let z=p.add(g.sub(p)._mult(f/L)._round());this.updateDistance(p,z),this.addCurrentVertex(z,x,0,0,d),p=z}}}}addCurrentVertex(e,t,r,i,a,n=!1){let o=t.x+t.y*r,s=t.y-t.x*r,l=-t.x+t.y*i,u=-t.y-t.x*i;this.addHalfVertex(e,o,s,n,!1,r,a),this.addHalfVertex(e,l,u,n,!0,-i,a),this.distance>lre/2&&this.totalDistance===0&&(this.distance=0,this.updateScaledDistance(),this.addCurrentVertex(e,t,r,i,a,n))}addHalfVertex({x:e,y:t},r,i,a,n,o,s){let l=(this.lineClips?this.scaledDistance*(lre-1):this.scaledDistance)*eoe;if(this.layoutVertexArray.emplaceBack((e<<1)+ +!!a,(t<<1)+ +!!n,Math.round(63*r)+128,Math.round(63*i)+128,(o===0?0:o<0?-1:1)+1|(l&63)<<2,l>>6),this.lineClips){let c=(this.scaledDistance-this.lineClips.start)/(this.lineClips.end-this.lineClips.start);this.layoutVertexArray2.emplaceBack(c,this.lineClipsArray.length)}let u=s.vertexLength++;this.e1>=0&&this.e2>=0&&(this.indexArray.emplaceBack(this.e1,u,this.e2),s.primitiveLength++),n?this.e2=u:this.e1=u}updateScaledDistance(){this.scaledDistance=this.lineClips?this.lineClips.start+(this.lineClips.end-this.lineClips.start)*this.distance/this.totalDistance:this.distance}updateDistance(e,t){this.distance+=e.dist(t),this.updateScaledDistance()}hasLineDasharray(e){for(let t of e){let r=t.paint.get("line-dasharray");if(r&&!r.isConstant())return!0}return!1}addLineDashDependencies(e,t,r,i){for(let a of e){let n=a.paint.get("line-dasharray");if(!n||n.value.kind==="constant")continue;let o=a.layout.get("line-cap").evaluate(t,{})==="round",s={dasharray:n.value.evaluate({zoom:r-1},t,{}),round:o},l={dasharray:n.value.evaluate({zoom:r},t,{}),round:o},u={dasharray:n.value.evaluate({zoom:r+1},t,{}),round:o},c=`${s.dasharray.join(",")},${s.round}`,h=`${l.dasharray.join(",")},${l.round}`,f=`${u.dasharray.join(",")},${u.round}`;i.dashDependencies[c]=s,i.dashDependencies[h]=l,i.dashDependencies[f]=u,t.dashes[a.id]={min:c,mid:h,max:f}}}};Yt("LineBucket",toe,{omit:["layers","patternFeatures"]});dBe=()=>ure||(ure=new Ln({"line-cap":new cr(Xe.layout_line["line-cap"],"line-cap"),"line-join":new cr(Xe.layout_line["line-join"],"line-join"),"line-miter-limit":new cr(Xe.layout_line["line-miter-limit"],"line-miter-limit"),"line-round-limit":new cr(Xe.layout_line["line-round-limit"],"line-round-limit"),"line-sort-key":new cr(Xe.layout_line["line-sort-key"],"line-sort-key")})),pBe=()=>cre||(cre=new Ln({"line-opacity":new cr(Xe.paint_line["line-opacity"],"line-opacity"),"line-layer-opacity":new Gt(Xe.paint_line["line-layer-opacity"],"line-layer-opacity"),"line-color":new cr(Xe.paint_line["line-color"],"line-color"),"line-translate":new Gt(Xe.paint_line["line-translate"],"line-translate"),"line-translate-anchor":new Gt(Xe.paint_line["line-translate-anchor"],"line-translate-anchor"),"line-width":new cr(Xe.paint_line["line-width"],"line-width"),"line-gap-width":new cr(Xe.paint_line["line-gap-width"],"line-gap-width"),"line-offset":new cr(Xe.paint_line["line-offset"],"line-offset"),"line-blur":new cr(Xe.paint_line["line-blur"],"line-blur"),"line-dasharray":new Xy(Xe.paint_line["line-dasharray"],"line-dasharray"),"line-pattern":new Xy(Xe.paint_line["line-pattern"],"line-pattern"),"line-gradient":new Mw(Xe.paint_line["line-gradient"],"line-gradient")})),hre={get paint(){return pBe()},get layout(){return dBe()}},mBe=class extends cr{possiblyEvaluate(e,t){return t=new Di(Math.floor(t.zoom),{now:t.now,fadeDuration:t.fadeDuration,zoomHistory:t.zoomHistory,transition:t.transition}),super.possiblyEvaluate(e,t)}evaluate(e,t,r,i){return t=tr({},t,{zoom:Math.floor(t.zoom)}),super.evaluate(e,t,r,i)}},roe=e=>e.type==="line",vBe=class extends Bu{constructor(e,t){super(e,hre,t),this.gradientVersion=0,g4||(g4=new mBe(hre.paint.properties["line-width"].specification,"line-floorwidth"),g4.useIntegerZoom=!0)}_handleSpecialPaintPropertyUpdate(e){if(e==="line-gradient"){let t=this.gradientExpression();this.stepInterpolant=BLe(t)?t._styleExpression.expression instanceof Rk:!1,this.gradientVersion=(this.gradientVersion+1)%(2**53-1)}}gradientExpression(){return this._transitionablePaint._values["line-gradient"].value.expression}recalculate(e,t){super.recalculate(e,t),this.paint._values["line-floorwidth"]=g4.possiblyEvaluate(this._transitioningPaint._values["line-width"].value,e)}createBucket(e){return new toe(e)}queryRadius(e){let t=e,r=fre(lm("line-width",this,t),lm("line-gap-width",this,t)),i=lm("line-offset",this,t);return r/2+Math.abs(i)+Ew(this.paint.get("line-translate"))}queryIntersectsFeature({queryGeometry:e,feature:t,featureState:r,geometry:i,transform:a,pixelsToTileUnits:n}){let o=kw(e,this.paint.get("line-translate"),this.paint.get("line-translate-anchor"),-a.bearingInRadians,n),s=n/2*fre(this.paint.get("line-width").evaluate(t,r),this.paint.get("line-gap-width").evaluate(t,r)),l=this.paint.get("line-offset").evaluate(t,r);return l&&(i=jze(i,l*n)),qze(o,i,s)}isTileClipped(){return!0}};gBe=Ea([{name:"a_pos_offset",components:4,type:"Int16"},{name:"a_data",components:4,type:"Uint16"},{name:"a_pixeloffset",components:4,type:"Int16"},{name:"a_height_offset",components:1,type:"Float32"}],4),yBe=Ea([{name:"a_projected_pos",components:3,type:"Float32"}],4);Ea([{name:"a_fade_opacity",components:1,type:"Uint32"}],4);_Be=Ea([{name:"a_placed",components:2,type:"Uint8"},{name:"a_shift",components:2,type:"Float32"},{name:"a_box_real",components:2,type:"Int16"}]);Ea([{type:"Int16",name:"anchorPointX"},{type:"Int16",name:"anchorPointY"},{type:"Int16",name:"x1"},{type:"Int16",name:"y1"},{type:"Int16",name:"x2"},{type:"Int16",name:"y2"},{type:"Uint32",name:"featureIndex"},{type:"Uint16",name:"sourceLayerIndex"},{type:"Uint16",name:"bucketIndex"}]);dre=Ea([{name:"a_pos",components:2,type:"Int16"},{name:"a_anchor_pos",components:2,type:"Int16"},{name:"a_extrude",components:2,type:"Int16"}],4),ioe=Ea([{name:"a_pos",components:2,type:"Float32"},{name:"a_radius",components:1,type:"Float32"},{name:"a_flags",components:2,type:"Int16"}],4);Ea([{name:"triangle",components:3,type:"Uint16"}]),Ea([{type:"Int16",name:"anchorX"},{type:"Int16",name:"anchorY"},{type:"Uint16",name:"glyphStartIndex"},{type:"Uint16",name:"numGlyphs"},{type:"Uint32",name:"vertexStartIndex"},{type:"Uint32",name:"lineStartIndex"},{type:"Uint32",name:"lineLength"},{type:"Uint16",name:"segment"},{type:"Uint16",name:"lowerSize"},{type:"Uint16",name:"upperSize"},{type:"Float32",name:"lineOffsetX"},{type:"Float32",name:"lineOffsetY"},{type:"Uint8",name:"writingMode"},{type:"Uint8",name:"placedOrientation"},{type:"Uint8",name:"hidden"},{type:"Uint32",name:"crossTileID"},{type:"Int16",name:"associatedIconIndex"},{type:"Float32",name:"heightOffset"}]),Ea([{type:"Int16",name:"anchorX"},{type:"Int16",name:"anchorY"},{type:"Int16",name:"rightJustifiedTextSymbolIndex"},{type:"Int16",name:"centerJustifiedTextSymbolIndex"},{type:"Int16",name:"leftJustifiedTextSymbolIndex"},{type:"Int16",name:"verticalPlacedTextSymbolIndex"},{type:"Int16",name:"placedIconSymbolIndex"},{type:"Int16",name:"verticalPlacedIconSymbolIndex"},{type:"Uint16",name:"key"},{type:"Uint16",name:"textBoxStartIndex"},{type:"Uint16",name:"textBoxEndIndex"},{type:"Uint16",name:"verticalTextBoxStartIndex"},{type:"Uint16",name:"verticalTextBoxEndIndex"},{type:"Uint16",name:"iconBoxStartIndex"},{type:"Uint16",name:"iconBoxEndIndex"},{type:"Uint16",name:"verticalIconBoxStartIndex"},{type:"Uint16",name:"verticalIconBoxEndIndex"},{type:"Uint16",name:"featureIndex"},{type:"Uint16",name:"numHorizontalGlyphVertices"},{type:"Uint16",name:"numVerticalGlyphVertices"},{type:"Uint16",name:"numIconVertices"},{type:"Uint16",name:"numVerticalIconVertices"},{type:"Uint16",name:"useRuntimeCollisionCircles"},{type:"Uint32",name:"crossTileID"},{type:"Float32",name:"textBoxScale"},{type:"Float32",name:"collisionCircleDiameter"},{type:"Uint16",name:"textAnchorOffsetStartIndex"},{type:"Uint16",name:"textAnchorOffsetEndIndex"},{type:"Float32",name:"heightOffset"}]),Ea([{type:"Float32",name:"offsetX"}]),Ea([{type:"Int16",name:"x"},{type:"Int16",name:"y"},{type:"Int16",name:"tileUnitDistanceFromAnchor"}]),Ea([{type:"Uint16",name:"textAnchor"},{type:"Float32",components:2,name:"textOffset"}]);$4=new class{constructor(){this.TIMEOUT=5e3,this.applyArabicShaping=null,this.processBidirectionalText=null,this.processStyledBidirectionalText=null,this.pluginStatus="unavailable",this.pluginURL=null,this.loadScriptResolve=()=>{}}setState(e){this.pluginStatus=e.pluginStatus,this.pluginURL=e.pluginURL}getState(){return{pluginStatus:this.pluginStatus,pluginURL:this.pluginURL}}setMethods(e){if($4.isParsed())throw Error("RTL text plugin already registered.");this.applyArabicShaping=e.applyArabicShaping,this.processBidirectionalText=e.processBidirectionalText,this.processStyledBidirectionalText=e.processStyledBidirectionalText,this.loadScriptResolve()}isParsed(){return this.applyArabicShaping!=null&&this.processBidirectionalText!=null&&this.processStyledBidirectionalText!=null}getRTLTextPluginStatus(){return this.pluginStatus}syncState(e,t){return Kt(this,null,function*(){if(this.isParsed())return this.getState();if(e.pluginStatus!=="loading")return this.setState(e),e;let r=e.pluginURL,i=new Promise(n=>{this.loadScriptResolve=n}),a=new Promise(n=>setTimeout(()=>n(),this.TIMEOUT));if(yield t(r),yield Promise.race([i,a]),this.isParsed()){let n={pluginStatus:"loaded",pluginURL:r};return this.setState(n),n}throw this.setState({pluginStatus:"error",pluginURL:""}),Error(`RTL Text Plugin failed to import scripts from ${r}`)})}};DBe={C:"18g,1;g2,3;4nb,1",D:"17k,1;5,1;1,1;1,5;4,d;1,7;1,2;z,2;8,g;i,12;1,2;9,1;1,1;1,2;14,3;2,1;28,9;3,f;2,4;1,1;2,3;2,6;7a,1;2,5;1,1;g,a;5,2;2,6;1,f",R:"17m,4;1,1;1,1;5,4;l,1;14,3;1,3;g,i;12,1;2,9;1,1;1,1;2,2;1,1;o,2;2x,3;f,2;4,1;1,2;3,2;6u,j;b,1;r,3;1,1;2,2;6,1",T:"174,b;1,1;1a,l;g,1;2t,7;2,6;2,2;1,4;bt,9;16,o;1,t;1clb,1"},SBe={1569:[65152,0,0,0],1570:[65153,65154,0,0],1571:[65155,65156,0,0],1572:[65157,65158,0,0],1573:[65159,65160,0,0],1574:[65161,65162,65163,65164],1575:[65165,65166,0,0],1576:[65167,65168,65169,65170],1577:[65171,65172,0,0],1578:[65173,65174,65175,65176],1579:[65177,65178,65179,65180],1580:[65181,65182,65183,65184],1581:[65185,65186,65187,65188],1582:[65189,65190,65191,65192],1583:[65193,65194,0,0],1584:[65195,65196,0,0],1585:[65197,65198,0,0],1586:[65199,65200,0,0],1587:[65201,65202,65203,65204],1588:[65205,65206,65207,65208],1589:[65209,65210,65211,65212],1590:[65213,65214,65215,65216],1591:[65217,65218,65219,65220],1592:[65221,65222,65223,65224],1593:[65225,65226,65227,65228],1594:[65229,65230,65231,65232],1601:[65233,65234,65235,65236],1602:[65237,65238,65239,65240],1603:[65241,65242,65243,65244],1604:[65245,65246,65247,65248],1605:[65249,65250,65251,65252],1606:[65253,65254,65255,65256],1607:[65257,65258,65259,65260],1608:[65261,65262,0,0],1609:[65263,65264,64488,64489],1610:[65265,65266,65267,65268],1611:[65136,0,0,65137],1612:[65138,0,0,0],1613:[65140,0,0,0],1614:[65142,0,0,65143],1615:[65144,0,0,65145],1616:[65146,0,0,65147],1617:[65148,0,0,65149],1618:[65150,0,0,65151],1649:[64336,64337,0,0],1655:[64477,0,0,0],1657:[64358,64359,64360,64361],1658:[64350,64351,64352,64353],1659:[64338,64339,64340,64341],1662:[64342,64343,64344,64345],1663:[64354,64355,64356,64357],1664:[64346,64347,64348,64349],1667:[64374,64375,64376,64377],1668:[64370,64371,64372,64373],1670:[64378,64379,64380,64381],1671:[64382,64383,64384,64385],1672:[64392,64393,0,0],1676:[64388,64389,0,0],1677:[64386,64387,0,0],1678:[64390,64391,0,0],1681:[64396,64397,0,0],1688:[64394,64395,0,0],1700:[64362,64363,64364,64365],1702:[64366,64367,64368,64369],1705:[64398,64399,64400,64401],1709:[64467,64468,64469,64470],1711:[64402,64403,64404,64405],1713:[64410,64411,64412,64413],1715:[64406,64407,64408,64409],1722:[64414,64415,0,0],1723:[64416,64417,64418,64419],1726:[64426,64427,64428,64429],1728:[64420,64421,0,0],1729:[64422,64423,64424,64425],1733:[64480,64481,0,0],1734:[64473,64474,0,0],1735:[64471,64472,0,0],1736:[64475,64476,0,0],1737:[64482,64483,0,0],1739:[64478,64479,0,0],1740:[64508,64509,64510,64511],1744:[64484,64485,64486,64487],1746:[64430,64431,0,0],1747:[64432,64433,0,0]},EBe={\u0644\u0622:[65269,65270],\u0644\u0623:[65271,65272],\u0644\u0625:[65273,65274],\u0644\u0627:[65275,65276]},mre=1604,kBe=/[\u0600-\u06ff\u0750-\u077f\u0870-\u089f\u08a0-\u08ff\ufb50-\ufdff\ufe70-\ufeff]/;noe=new Map;for(let[e,t]of Object.entries(DBe))CBe(t,e,noe);ooe=typeof Intl<"u"&&"Segmenter"in Intl;nm={"!":"\uFE15","#":"\uFF03",$:"\uFF04","%":"\uFF05","&":"\uFF06","(":"\uFE35",")":"\uFE36","*":"\uFF0A","+":"\uFF0B",",":"\uFE10","-":"\uFE32",".":"\u30FB","/":"\uFF0F",":":"\uFE13",";":"\uFE14","<":"\uFE3F","=":"\uFF1D",">":"\uFE40","?":"\uFE16","@":"\uFF20","[":"\uFE47","\\":"\uFF3C","]":"\uFE48","^":"\uFF3E",_:"\uFE33","`":"\uFF40","{":"\uFE37","|":"\u2015","}":"\uFE38","~":"\uFF5E","\xA2":"\uFFE0","\xA3":"\uFFE1","\xA5":"\uFFE5","\xA6":"\uFFE4","\xAC":"\uFFE2","\xAF":"\uFFE3","\u2013":"\uFE32","\u2014":"\uFE31","\u2018":"\uFE43","\u2019":"\uFE44","\u201C":"\uFE41","\u201D":"\uFE42","\u2026":"\uFE19","\u22EF":"\uFE19","\u2027":"\u30FB","\u20A9":"\uFFE6","\u3001":"\uFE11","\u3002":"\uFE12","\u3008":"\uFE3F","\u3009":"\uFE40","\u300A":"\uFE3D","\u300B":"\uFE3E","\u300C":"\uFE41","\u300D":"\uFE42","\u300E":"\uFE43","\u300F":"\uFE44","\u3010":"\uFE3B","\u3011":"\uFE3C","\u3014":"\uFE39","\u3015":"\uFE3A","\u3016":"\uFE17","\u3017":"\uFE18","\uFF01":"\uFE15","\uFF08":"\uFE35","\uFF09":"\uFE36","\uFF0C":"\uFE10","\uFF0D":"\uFE32","\uFF0E":"\u30FB","\uFF1A":"\uFE13","\uFF1B":"\uFE14","\uFF1C":"\uFE3F","\uFF1E":"\uFE40","\uFF1F":"\uFE16","\uFF3B":"\uFE47","\uFF3D":"\uFE48","\uFF3F":"\uFE33","\uFF5B":"\uFE37","\uFF5C":"\u2015","\uFF5D":"\uFE38","\uFF5F":"\uFE35","\uFF60":"\uFE36","\uFF61":"\uFE12","\uFF62":"\uFE41","\uFF63":"\uFE42"};WBe={10:!0,13:!0,32:!0,38:!0,41:!0,43:!0,45:!0,47:!0,173:!0,183:!0,8203:!0,8208:!0,8211:!0,8231:!0},XBe={40:!0};vC=class sk{constructor(t="",r=[],i=[]){this.text=t,this.sections=r,this.sectionIndex=i,this.imageSectionID=null,this._graphemes=null}graphemes(){var t;return(t=this._graphemes)!=null||(this._graphemes=nk(this.text)),this._graphemes}static fromFeature(t,r){let i=new sk;for(let a of t.sections)a.image?i.addImageSection(a):i.addTextSection(a,r);return i}length(){return this.graphemes().length}getSection(t){return this.sections[this.sectionIndex[t]]}getSectionIndex(t){return this.sectionIndex[t]}verticalizePunctuation(){this.text=YBe(this.text),this._graphemes=null}hasZeroWidthSpaces(){return this.text.includes("\u200B")}trim(){let t=this.graphemes(),r=0;for(;rr&&bre(t[i-1]);)i--;this.text=t.slice(r,i).join(""),this.sectionIndex=this.sectionIndex.slice(r,i),this._graphemes=null}substring(t,r){let i=this.graphemes().slice(t,r).join(""),a=this.sectionIndex.slice(t,r);return new sk(i,this.sections,a)}toCodeUnitIndex(t){return this.graphemes().slice(0,t).join("").length}toString(){return this.text}getMaxScale(){return this.sectionIndex.reduce((t,r)=>Math.max(t,this.sections[r].scale),0)}getMaxImageSize(t){let r=0,i=0;for(let a=0;a0?i[i.length-1]:"",n=nk(a+t);this.text+=t,this._graphemes=i.slice(0,a?-1:void 0).concat(n);let o=n.length-+!!a;for(let s=0;s=63743?null:++this.imageSectionID:(this.imageSectionID=57344,this.imageSectionID)}determineLineBreaks(t,r,i,a,n){let o=[],s=this.determineAverageLineWidth(t,r,i,a,n),l=this.hasZeroWidthSpaces(),u=this.graphemes(),c=null,h=0,f=0;for(let d=0;d0){let m=u[d-1].codePointAt(0),g=p.codePointAt(0),y=wBe(m),x=pre(m)&&pre(g);(WBe[m]||y||"imageName"in this.getSection(d-1)||u[d+1]!==void 0&&XBe[g]||x&&(c!=null?c:c=$Be(this.text)).has(f))&&o.push(wre(d,h,s,o,KBe(m,g,y&&l),!1))}mC(p.codePointAt(0))||(h+=_re(p,this.getSection(d),i,a,t,n)),f+=p.length}return coe(wre(this.length(),h,s,o,0,!0))}determineAverageLineWidth(t,r,i,a,n){let o=0,s=0;for(let u of this.graphemes()){let c=this.getSection(s);o+=_re(u,c,i,a,t,n),s++}let l=Math.max(1,Math.ceil(o/r));return o/l}};gC=JBe(),QBe=/[\u061c\u200e\u200f\u202a-\u202e\u2066-\u2069]/,eqe=new Set(["WS","FSI","LRI","RLI","PDI"]),tqe=new Set(["S","B"]);lk=4294967296,Gat=1/lk,Are=typeof TextDecoder>"u"?null:new TextDecoder("utf-8"),foe=class{constructor(e){this.buf=ArrayBuffer.isView(e)?e:new Uint8Array(e),this.dataView=new DataView(this.buf.buffer,this.buf.byteOffset,this.buf.byteLength),this.pos=0,this.type=0,this._valueStart=-1,this.length=this.buf.length}readFields(e,t,r=this.length){let i;for(;i=this.nextField(r);)e(i,t,this);return t}readMessage(e,t){return this.readFields(e,t,this.readVarint()+this.pos)}readFixed32(){let e=this.dataView.getUint32(this.pos,!0);return this.pos+=4,e}readSFixed32(){let e=this.dataView.getInt32(this.pos,!0);return this.pos+=4,e}readFixed64(){let e=this.dataView.getUint32(this.pos,!0)+this.dataView.getUint32(this.pos+4,!0)*lk;return this.pos+=8,e}readSFixed64(){let e=this.dataView.getUint32(this.pos,!0)+this.dataView.getInt32(this.pos+4,!0)*lk;return this.pos+=8,e}readFloat(){let e=this.dataView.getFloat32(this.pos,!0);return this.pos+=4,e}readDouble(){let e=this.dataView.getFloat64(this.pos,!0);return this.pos+=8,e}readVarint(e){let t=this.buf,r=t[this.pos++];if(r<128)return r;let i=r&127,a;return a=t[this.pos++],i|=(a&127)<<7,a<128||(a=t[this.pos++],i|=(a&127)<<14,a<128)||(a=t[this.pos++],i|=(a&127)<<21,a<128)?i:(a=t[this.pos],i|=(a&15)<<28,hqe(i,e,this))}readSVarint(){let e=this.readVarint();return e%2==1?(e+1)/-2:e/2}readBoolean(){return!!this.readVarint()}readString(){let e=this.readVarint()+this.pos,t=this.pos;return this.pos=e,e-t>=12&&Are?Are.decode(this.buf.subarray(t,e)):dqe(this.buf,t,e)}readBytes(){let e=this.readVarint()+this.pos,t=this.buf.subarray(this.pos,e);return this.pos=e,t}readPackedVarint(e=[],t){let r=this.readPackedEnd();for(;this.pos=e)return 0;let t=this.readVarint();return this.type=t&7,this._valueStart=this.pos,t>>>3}skip(e){let t=e&7;if(t===0)for(;this.buf[this.pos++]>127;);else if(t===2)this.pos=this.readVarint()+this.pos;else if(t===5)this.pos+=4;else if(t===1)this.pos+=8;else throw Error(`Unimplemented type: ${t}`)}};Rw=class{constructor(e,{pixelRatio:t,version:r,isWebGLImage:i=!1,stretchX:a,stretchY:n,content:o,textFitWidth:s,textFitHeight:l}){this.paddedRect=e,this.pixelRatio=t,this.stretchX=a,this.stretchY=n,this.content=o,this.version=r,this.needsFirstWebGLRender=i,this.textFitWidth=s,this.textFitHeight=l}get tl(){return[this.paddedRect.x+1,this.paddedRect.y+1]}get br(){return[this.paddedRect.x+this.paddedRect.w-1,this.paddedRect.y+this.paddedRect.h-1]}get tlbr(){return this.tl.concat(this.br)}get displaySize(){return[(this.paddedRect.w-2)/this.pixelRatio,(this.paddedRect.h-2)/this.pixelRatio]}},gqe=class{constructor(e,t){let r={},i={};this.haveRenderCallbacks=[],this.patchedUpdateVersion=-1;let a=[];this.addImages(e,r,a),this.addImages(t,i,a);let{w:n,h:o}=yC(a),s=new na({width:n||1,height:o||1});for(let l in e){let u=e[l];if(u.isWebGLImage)continue;let c=r[l].paddedRect;na.copy(u.data,s,{x:0,y:0},{x:c.x+1,y:c.y+1},u.data)}for(let l in t){let u=t[l],c=i[l].paddedRect,h=c.x+1,f=c.y+1,d=u.data.width,p=u.data.height;na.copy(u.data,s,{x:0,y:0},{x:h,y:f},u.data),na.copy(u.data,s,{x:0,y:p-1},{x:h,y:f-1},{width:d,height:1}),na.copy(u.data,s,{x:0,y:0},{x:h,y:f+p},{width:d,height:1}),na.copy(u.data,s,{x:d-1,y:0},{x:h-1,y:f},{width:1,height:p}),na.copy(u.data,s,{x:0,y:0},{x:h+d,y:f},{width:1,height:p})}this.image=s,this.iconPositions=r,this.patternPositions=i}addImages(e,t,r){for(let i in e){let a=e[i],n={x:0,y:0,w:a.data.width+2,h:a.data.height+2};r.push(n),t[i]=new Rw(n,a),a.hasRenderCallback&&this.haveRenderCallbacks.push(i)}}patchUpdatedImages(e,t){if(e.dispatchRenderCallbacks(this.haveRenderCallbacks),this.patchedUpdateVersion!==e.updateVersion){this.patchedUpdateVersion=e.updateVersion;for(let r in this.iconPositions)this.patchUpdatedImage(this.iconPositions[r],e.getImage(r),t);for(let r in this.patternPositions)this.patchUpdatedImage(this.patternPositions[r],e.getImage(r),t)}}patchUpdatedImage(e,t,r){var l;if(!e||!t||!e.needsFirstWebGLRender&&e.version===t.version)return;e.needsFirstWebGLRender=!1,e.version=t.version;let[i,a]=e.tl,n=(l=t.userImage)==null?void 0:l.data;if(!T2(n)){r.update(t.data,void 0,{x:i,y:a});return}let{width:o,height:s}=t.data;r.context.setCustomLayerDefaults(),n.renderWithWebGL({gl:r.context.gl,texture:r.texture,x:i,y:a,width:o,height:s}),r.context.setDirty()}};Yt("ImagePosition",Rw),Yt("ImageAtlas",gqe);moe=(function(e){return e[e.none=0]="none",e[e.horizontal=1]="horizontal",e[e.vertical=2]="vertical",e[e.horizontalOnly=3]="horizontalOnly",e})(moe||{});Tre=new RegExp("^\\p{gc=M}$","u");Sre=32640;hm=class xoe extends qe{constructor(t,r,i,a){super(t,r),this.angle=i,a!==void 0&&(this.segment=a)}clone(){return new xoe(this.x,this.y,this.angle,this.segment)}};Yt("Anchor",hm);w4=class{constructor(e,t,r,i,a,n,o,s,l,u){var c;if(this.boxStartIndex=e.length,l){let h=n.top,f=n.bottom,d=n.collisionPadding;d&&(h-=d[1],f+=d[3]);let p=f-h;p>0&&(p=Math.max(10,p),this.circleDiameter=p)}else{let h=(c=n.image)!=null&&c.content&&(n.image.textFitWidth||n.image.textFitHeight)?_oe(n):{x1:n.left,y1:n.top,x2:n.right,y2:n.bottom};h.y1=h.y1*o-s[0],h.y2=h.y2*o+s[2],h.x1=h.x1*o-s[3],h.x2=h.x2*o+s[1];let f=n.collisionPadding;if(f&&(h.x1-=f[0]*o,h.y1-=f[1]*o,h.x2+=f[2]*o,h.y2+=f[3]*o),u){let d=new qe(h.x1,h.y1),p=new qe(h.x2,h.y1),m=new qe(h.x1,h.y2),g=new qe(h.x2,h.y2),y=u*Math.PI/180;d._rotate(y),p._rotate(y),m._rotate(y),g._rotate(y),h.x1=Math.min(d.x,p.x,m.x,g.x),h.x2=Math.max(d.x,p.x,m.x,g.x),h.y1=Math.min(d.y,p.y,m.y,g.y),h.y2=Math.max(d.y,p.y,m.y,g.y)}e.emplaceBack(t.x,t.y,h.x1,h.y1,h.x2,h.y2,r,i,a)}this.boxEndIndex=e.length}},jqe=class{constructor(e=[],t=(r,i)=>ri)){if(this.data=e,this.length=this.data.length,this.compare=t,this.length>0)for(let r=(this.length>>1)-1;r>=0;r--)this._down(r)}push(e){this.data.push(e),this._up(this.length++)}pop(){if(this.length===0)return;let e=this.data[0],t=this.data.pop();return--this.length>0&&(this.data[0]=t,this._down(0)),e}peek(){return this.data[0]}_up(e){let{data:t,compare:r}=this,i=t[e];for(;e>0;){let a=e-1>>1,n=t[a];if(r(i,n)>=0)break;t[e]=n,e=a}t[e]=i}_down(e){let{data:t,compare:r}=this,i=this.length>>1,a=t[e];for(;e=0)break;t[e]=t[n],e=n}t[e]=a}};im=class{constructor(e,t,r,i){this.p=new qe(e,t),this.h=r,this.d=Zqe(this.p,i),this.max=this.d+this.h*Math.SQRT2}};qw=(function(e){return e[e.center=1]="center",e[e.left=2]="left",e[e.right=3]="right",e[e.top=4]="top",e[e.bottom=5]="bottom",e[e["top-left"]=6]="top-left",e[e["top-right"]=7]="top-right",e[e["bottom-left"]=8]="bottom-left",e[e["bottom-right"]=9]="bottom-right",e})({}),xC=1/0;tOe=[{name:"a_fade_opacity",components:1,type:"Uint8",offset:0}];ck=class{constructor(e){this.layoutVertexArray=new Mze,this.indexArray=new qu,this.programConfigurations=e,this.segments=new Aa,this.dynamicLayoutVertexArray=new Dze,this.opacityVertexArray=new Sze,this.hasVisibleVertices=!1,this.placedSymbolArray=new one}isEmpty(){return this.layoutVertexArray.length===0&&this.indexArray.length===0&&this.dynamicLayoutVertexArray.length===0&&this.opacityVertexArray.length===0}upload(e,t,r,i){this.isEmpty()||(r&&(this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,gBe.members),this.indexBuffer=e.createIndexBuffer(this.indexArray,t),this.dynamicLayoutVertexBuffer=e.createVertexBuffer(this.dynamicLayoutVertexArray,yBe.members,!0),this.opacityVertexBuffer=e.createVertexBuffer(this.opacityVertexArray,tOe,!0),this.opacityVertexBuffer.itemSize=1),(r||i)&&this.programConfigurations.upload(e))}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.dynamicLayoutVertexBuffer.destroy(),this.opacityVertexBuffer.destroy())}};Yt("SymbolBuffers",ck);hk=class{constructor(e,t,r){this.layoutVertexArray=new e,this.layoutAttributes=t,this.indexArray=new r,this.segments=new Aa,this.collisionVertexArray=new Eze}upload(e){this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,this.layoutAttributes),this.indexBuffer=e.createIndexBuffer(this.indexArray),this.collisionVertexBuffer=e.createVertexBuffer(this.collisionVertexArray,_Be.members,!0)}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.segments.destroy(),this.collisionVertexBuffer.destroy())}};Yt("CollisionBuffers",hk);E2=class{constructor(e){this.collisionBoxArray=e.collisionBoxArray,this.zoom=e.zoom,this.overscaling=e.overscaling,this.layers=e.layers,this.layerIds=this.layers.map(o=>o.id),this.index=e.index,this.pixelRatio=e.pixelRatio,this.sourceLayerIndex=e.sourceLayerIndex,this.hasDependencies=!0,this.hasRTLText=!1,this.maxHeightOffset=0,this.sortKeyRanges=[],this.collisionCircleArray=[],this.maxGlyphs=65535;let t=this.layers[0]._unevaluatedLayout._values;this.textSizeData=Ere(this.zoom,t["text-size"]),this.iconSizeData=Ere(this.zoom,t["icon-size"]);let r=this.layers[0].layout,i=r.get("symbol-sort-key"),a=r.get("symbol-z-order");this.canOverlap=i2(r,"text-overlap","text-allow-overlap")!=="never"||i2(r,"icon-overlap","icon-allow-overlap")!=="never"||r.get("text-ignore-placement")||r.get("icon-ignore-placement"),this.sortFeaturesByKey=a!=="viewport-y"&&!i.isConstant();let n=a==="viewport-y"||a==="auto"&&!this.sortFeaturesByKey;this.sortFeaturesByY=n&&this.canOverlap,r.get("symbol-placement")==="point"&&(this.writingModes=r.get("text-writing-mode").map(o=>moe[o])),this.stateDependentLayerIds=this.layers.filter(o=>o.isStateDependent()).map(o=>o.id),this.sourceID=e.sourceID}createArrays(){this.text=new ck(new jd(this.layers,this.zoom,e=>e.startsWith("text"))),this.icon=new ck(new jd(this.layers,this.zoom,e=>e.startsWith("icon"))),this.glyphOffsetArray=new une,this.lineVertexArray=new cne,this.symbolInstances=new lne,this.textAnchorOffsets=new fne}calculateGlyphDependencies(e,t,r,i,a){var l;let n=(i||this.allowVerticalPlacement)&&a,o=vC.fromFeature(e,r),s=o.graphemes();for(let u=0;u0)&&(n.value.kind!=="constant"||n.value.value.length>0),u=s.value.kind!=="constant"||!!s.value.value||Object.keys(s.parameters).length>0,c=a.get("symbol-sort-key");if(this.features=[],!l&&!u)return;let h=t.iconDependencies,f=t.glyphDependencies,d=t.availableImages,p=new Di(this.zoom);for(let{feature:g,id:y,index:x,sourceLayerIndex:b}of e){let _=i._featureFilter.needGeometry,A=Yf(g,_);if(!i._featureFilter.filter(p,A,r))continue;_||(A.geometry=Kd(g));let T;if(l){let P=i.getValueAndResolveTokens("text-field",A,r,d),I=yh.factory(P);this.hasRTLText||(this.hasRTLText=rOe(I)),T=UBe(I,i,A)}let M;if(u){let P=i.getValueAndResolveTokens("icon-image",A,r,d);M=P instanceof kc?P:kc.fromString(P)}if(!T&&!M)continue;let S=this.sortFeaturesByKey?c.evaluate(A,{},r):void 0,k={id:y,text:T,icon:M,index:x,sourceLayerIndex:b,geometry:A.geometry,properties:g.properties,type:w2.types[g.type],sortKey:S};if(this.features.push(k),M&&(h[M.name]=!0),T){let P=n.evaluate(A,{},r).join(","),I=a.get("text-rotation-alignment")!=="viewport"&&a.get("symbol-placement")!=="point";this.allowVerticalPlacement=(m=this.writingModes)==null?void 0:m.includes(2);let B=ok(T.toString());this.calculateGlyphDependencies(T,f,P,I,B);for(let L of T.sections)L.image&&(h[L.image.name]=!0)}}a.get("symbol-placement")==="line"&&(this.features=jBe(this.features)),this.sortFeaturesByKey&&this.features.sort((g,y)=>g.sortKey-y.sortKey)}update(e,t,r){this.stateDependentLayers.length&&(this.text.programConfigurations.updatePaintArrays(e,t,this.layers,{imagePositions:r}),this.icon.programConfigurations.updatePaintArrays(e,t,this.layers,{imagePositions:r}))}addFeatures({options:e,canonical:t,glyphMap:r,glyphPositions:i,iconMap:a,iconPositions:n,showCollisionBoxes:o}){Wqe({bucket:this,glyphMap:r,glyphPositions:i,imageMap:a,imagePositions:n,showCollisionBoxes:o,canonical:t,subdivisionGranularity:e.subdivisionGranularity,hasPromoteId:e.featureIndex.promoteId!=null})}isEmpty(){return this.symbolInstances.length===0}uploadPending(){return!this.uploaded||this.text.programConfigurations.needsUpload||this.icon.programConfigurations.needsUpload}upload(e){!this.uploaded&&this.hasDebugData()&&(this.textCollisionBox.upload(e),this.iconCollisionBox.upload(e)),this.text.upload(e,this.sortFeaturesByY,!this.uploaded,this.text.programConfigurations.needsUpload),this.icon.upload(e,this.sortFeaturesByY,!this.uploaded,this.icon.programConfigurations.needsUpload),this.uploaded=!0}destroyDebugData(){this.textCollisionBox.destroy(),this.iconCollisionBox.destroy()}destroy(){this.text.destroy(),this.icon.destroy(),this.hasDebugData()&&this.destroyDebugData()}addToLineVertexArray(e,t){let r=this.lineVertexArray.length;if(e.segment!==void 0){let i=e.dist(t[e.segment+1]),a=e.dist(t[e.segment]),n={};for(let o=e.segment+1;o=0;o--)n[o]={x:t[o].x,y:t[o].y,tileUnitDistanceFromAnchor:a},o>0&&(a+=t[o-1].dist(t[o]));for(let o=0;o0}hasIconData(){return this.icon.segments.get().length>0}hasDebugData(){return this.textCollisionBox&&this.iconCollisionBox}hasTextCollisionBoxData(){return this.hasDebugData()&&this.textCollisionBox.segments.get().length>0}hasIconCollisionBoxData(){return this.hasDebugData()&&this.iconCollisionBox.segments.get().length>0}addIndicesForPlacedSymbol(e,t){let r=e.placedSymbolArray.get(t),i=r.vertexStartIndex+r.numGlyphs*4;for(let a=r.vertexStartIndex;ai[o]-i[s]||a[s]-a[o]),n}addToSortKeyRanges(e,t){let r=this.sortKeyRanges[this.sortKeyRanges.length-1];(r==null?void 0:r.sortKey)===t?r.symbolInstanceEnd=e+1:this.sortKeyRanges.push({sortKey:t,symbolInstanceStart:e,symbolInstanceEnd:e+1})}sortFeatures(e){if(this.sortFeaturesByY&&this.sortedAngle!==e&&!(this.text.segments.get().length>1||this.icon.segments.get().length>1)){this.symbolInstanceIndexes=this.getSortedSymbolIndexes(e),this.sortedAngle=e,this.text.indexArray.clear(),this.icon.indexArray.clear(),this.featureSortOrder=[];for(let t of this.symbolInstanceIndexes){let r=this.symbolInstances.get(t);this.featureSortOrder.push(r.featureIndex);let i=[r.rightJustifiedTextSymbolIndex,r.centerJustifiedTextSymbolIndex,r.leftJustifiedTextSymbolIndex];for(let a=0;a=0&&i.indexOf(n)===a&&this.addIndicesForPlacedSymbol(this.text,n)}r.verticalPlacedTextSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.text,r.verticalPlacedTextSymbolIndex),r.placedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,r.placedIconSymbolIndex),r.verticalPlacedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,r.verticalPlacedIconSymbolIndex)}this.text.indexBuffer&&this.text.indexBuffer.updateData(this.text.indexArray),this.icon.indexBuffer&&this.icon.indexBuffer.updateData(this.icon.indexArray)}}};Yt("SymbolBucket",E2,{omit:["layers","collisionBoxArray","features","compareText"]});aOe=()=>Pre||(Pre=new Ln({"symbol-placement":new Gt(Xe.layout_symbol["symbol-placement"],"symbol-placement"),"symbol-spacing":new Gt(Xe.layout_symbol["symbol-spacing"],"symbol-spacing"),"symbol-avoid-edges":new Gt(Xe.layout_symbol["symbol-avoid-edges"],"symbol-avoid-edges"),"symbol-sort-key":new cr(Xe.layout_symbol["symbol-sort-key"],"symbol-sort-key"),"symbol-z-order":new Gt(Xe.layout_symbol["symbol-z-order"],"symbol-z-order"),"icon-allow-overlap":new Gt(Xe.layout_symbol["icon-allow-overlap"],"icon-allow-overlap"),"icon-overlap":new Gt(Xe.layout_symbol["icon-overlap"],"icon-overlap"),"icon-ignore-placement":new Gt(Xe.layout_symbol["icon-ignore-placement"],"icon-ignore-placement"),"icon-optional":new Gt(Xe.layout_symbol["icon-optional"],"icon-optional"),"icon-rotation-alignment":new cr(Xe.layout_symbol["icon-rotation-alignment"],"icon-rotation-alignment"),"icon-size":new cr(Xe.layout_symbol["icon-size"],"icon-size"),"icon-text-fit":new Gt(Xe.layout_symbol["icon-text-fit"],"icon-text-fit"),"icon-text-fit-padding":new Gt(Xe.layout_symbol["icon-text-fit-padding"],"icon-text-fit-padding"),"icon-image":new cr(Xe.layout_symbol["icon-image"],"icon-image"),"icon-rotate":new cr(Xe.layout_symbol["icon-rotate"],"icon-rotate"),"icon-padding":new cr(Xe.layout_symbol["icon-padding"],"icon-padding"),"icon-keep-upright":new Gt(Xe.layout_symbol["icon-keep-upright"],"icon-keep-upright"),"icon-offset":new cr(Xe.layout_symbol["icon-offset"],"icon-offset"),"icon-anchor":new cr(Xe.layout_symbol["icon-anchor"],"icon-anchor"),"icon-pitch-alignment":new Gt(Xe.layout_symbol["icon-pitch-alignment"],"icon-pitch-alignment"),"text-pitch-alignment":new Gt(Xe.layout_symbol["text-pitch-alignment"],"text-pitch-alignment"),"text-rotation-alignment":new Gt(Xe.layout_symbol["text-rotation-alignment"],"text-rotation-alignment"),"text-field":new cr(Xe.layout_symbol["text-field"],"text-field"),"text-font":new cr(Xe.layout_symbol["text-font"],"text-font"),"text-size":new cr(Xe.layout_symbol["text-size"],"text-size"),"text-max-width":new cr(Xe.layout_symbol["text-max-width"],"text-max-width"),"text-line-height":new Gt(Xe.layout_symbol["text-line-height"],"text-line-height"),"text-letter-spacing":new cr(Xe.layout_symbol["text-letter-spacing"],"text-letter-spacing"),"text-justify":new cr(Xe.layout_symbol["text-justify"],"text-justify"),"text-radial-offset":new cr(Xe.layout_symbol["text-radial-offset"],"text-radial-offset"),"text-variable-anchor":new Gt(Xe.layout_symbol["text-variable-anchor"],"text-variable-anchor"),"text-variable-anchor-offset":new cr(Xe.layout_symbol["text-variable-anchor-offset"],"text-variable-anchor-offset"),"text-anchor":new cr(Xe.layout_symbol["text-anchor"],"text-anchor"),"text-max-angle":new Gt(Xe.layout_symbol["text-max-angle"],"text-max-angle"),"text-writing-mode":new Gt(Xe.layout_symbol["text-writing-mode"],"text-writing-mode"),"text-rotate":new cr(Xe.layout_symbol["text-rotate"],"text-rotate"),"text-padding":new Gt(Xe.layout_symbol["text-padding"],"text-padding"),"text-keep-upright":new Gt(Xe.layout_symbol["text-keep-upright"],"text-keep-upright"),"text-transform":new cr(Xe.layout_symbol["text-transform"],"text-transform"),"text-offset":new cr(Xe.layout_symbol["text-offset"],"text-offset"),"text-allow-overlap":new Gt(Xe.layout_symbol["text-allow-overlap"],"text-allow-overlap"),"text-overlap":new Gt(Xe.layout_symbol["text-overlap"],"text-overlap"),"text-ignore-placement":new Gt(Xe.layout_symbol["text-ignore-placement"],"text-ignore-placement"),"text-optional":new Gt(Xe.layout_symbol["text-optional"],"text-optional"),"symbol-height-offset":new cr(Xe.layout_symbol["symbol-height-offset"],"symbol-height-offset"),"symbol-height-anchor":new Gt(Xe.layout_symbol["symbol-height-anchor"],"symbol-height-anchor")})),nOe=()=>Ire||(Ire=new Ln({"icon-opacity":new cr(Xe.paint_symbol["icon-opacity"],"icon-opacity"),"icon-color":new cr(Xe.paint_symbol["icon-color"],"icon-color"),"icon-halo-color":new cr(Xe.paint_symbol["icon-halo-color"],"icon-halo-color"),"icon-halo-width":new cr(Xe.paint_symbol["icon-halo-width"],"icon-halo-width"),"icon-halo-blur":new cr(Xe.paint_symbol["icon-halo-blur"],"icon-halo-blur"),"icon-translate":new Gt(Xe.paint_symbol["icon-translate"],"icon-translate"),"icon-translate-anchor":new Gt(Xe.paint_symbol["icon-translate-anchor"],"icon-translate-anchor"),"text-opacity":new cr(Xe.paint_symbol["text-opacity"],"text-opacity"),"text-color":new cr(Xe.paint_symbol["text-color"],"text-color",{runtimeType:Pu,getOverride:e=>e.textColor,hasOverride:e=>!!e.textColor}),"text-halo-color":new cr(Xe.paint_symbol["text-halo-color"],"text-halo-color"),"text-halo-width":new cr(Xe.paint_symbol["text-halo-width"],"text-halo-width"),"text-halo-blur":new cr(Xe.paint_symbol["text-halo-blur"],"text-halo-blur"),"text-translate":new Gt(Xe.paint_symbol["text-translate"],"text-translate"),"text-translate-anchor":new Gt(Xe.paint_symbol["text-translate-anchor"],"text-translate-anchor")})),iE={get paint(){return nOe()},get layout(){return aOe()}},koe=class{constructor(e){if(e.property.overrides===void 0)throw Error("overrides must be provided to instantiate FormatSectionOverride class");this.type=e.property.overrides?e.property.overrides.runtimeType:d2,this.defaultValue=e}evaluate(e){if(e.formattedSection){let t=this.defaultValue.property.overrides;if(t!=null&&t.hasOverride(e.formattedSection))return t.getOverride(e.formattedSection)}return e.feature&&e.featureState?this.defaultValue.evaluate(e.feature,e.featureState):this.defaultValue.property.specification.default}eachChild(e){if(!this.defaultValue.isConstant()){let t=this.defaultValue.value;e(t._styleExpression.expression)}}outputDefined(){return!1}serialize(){return null}};Yt("FormatSectionOverride",koe,{omit:["defaultValue"]});bC=e=>e.type==="symbol",oOe=class fk extends Bu{constructor(t,r){super(t,iE,r)}recalculate(t,r){super.recalculate(t,r);let i=this.layout.get("icon-rotation-alignment");if((i.value.kind!=="constant"||i.value.value==="auto")&&(this.layout._values["icon-rotation-alignment"]=new Vl(i.property,{kind:"constant",value:this.layout.get("symbol-placement")==="point"?"viewport":"map"},i.parameters)),this.layout.get("text-rotation-alignment")==="auto"&&(this.layout.get("symbol-placement")==="point"?this.layout._values["text-rotation-alignment"]="viewport":this.layout._values["text-rotation-alignment"]="map"),this.layout.get("text-pitch-alignment")==="auto"&&(this.layout._values["text-pitch-alignment"]=this.layout.get("text-rotation-alignment")==="map"?"map":"viewport"),this.layout.get("icon-pitch-alignment")==="auto"&&(this.layout._values["icon-pitch-alignment"]=this.layout.get("icon-rotation-alignment").constantOr("viewport")),this.layout.get("symbol-placement")==="point"){let a=this.layout.get("text-writing-mode");if(a){let n=[];for(let o of a)n.includes(o)||n.push(o);this.layout._values["text-writing-mode"]=n}else this.layout._values["text-writing-mode"]=["horizontal"]}this._setPaintOverrides()}getValueAndResolveTokens(t,r,i,a){let n=this.layout.get(t).evaluate(r,{},i,a),o=this._unevaluatedLayout._values[t];return!o.isDataDriven()&&!xw(o.value)&&n?iOe(r.properties,n):n}createBucket(t){return new E2(t)}queryRadius(){return 0}queryIntersectsFeature(){throw Error("Should take a different path in FeatureIndex")}_setPaintOverrides(){for(let t of iE.paint.overridableProperties){if(!fk.hasPaintOverride(this.layout,t))continue;let r=this.paint.get(t),i=new Zk(new koe(r),`layers[${this.id}].paint.${r.property.name}`,r.property.specification),a=null;a=r.value.kind==="constant"||r.value.kind==="source"?new Zy("source",i):new z4("composite",i,r.value.zoomStops),this.paint._values[t]=new Vl(r.property,a,r.parameters)}}_handleOverridablePaintPropertyUpdate(t,r,i){return!this.layout||r.isDataDriven()||i.isDataDriven()?!1:fk.hasPaintOverride(this.layout,t)}static hasPaintOverride(t,r){let i=t.get("text-field"),a=iE.paint.properties[r],n=!1,o=s=>{var l;for(let u of s)if((l=a.overrides)!=null&&l.hasOverride(u)){n=!0;return}};if(i.value.kind==="constant"&&i.value.value instanceof yh)o(i.value.value.sections);else if(i.value.kind==="source"||i.value.kind==="composite"){let s=u=>{if(!n)if(u instanceof vm&&Ja(u.value)===p2){let c=u.value;o(c.sections)}else u instanceof Yie?o(u.sections):u.eachChild(s)},l=i.value;l._styleExpression&&s(l._styleExpression.expression)}return n}};lOe=()=>Lre||(Lre=new Ln({"background-color":new Gt(Xe.paint_background["background-color"],"background-color"),"background-pattern":new ine(Xe.paint_background["background-pattern"],"background-pattern"),"background-opacity":new Gt(Xe.paint_background["background-opacity"],"background-opacity")})),uOe={get paint(){return lOe()}},Coe=e=>e.type==="background",cOe=class extends Bu{constructor(e,t){super(e,uOe,t)}};Poe=e=>e.type==="custom",hOe=class extends Bu{constructor(e,t){super(e,{},t),this.onAdd=r=>{this.implementation.onAdd&&this.implementation.onAdd(r,r.painter.context.gl)},this.onRemove=r=>{this.implementation.onRemove&&this.implementation.onRemove(r,r.painter.context.gl)},this.implementation=e}is3D(){return this.implementation.renderingMode==="3d"}hasOffscreenPass(){return this.implementation.prerender!==void 0}recalculate(){}updateTransitions(){}hasTransition(){return!1}serialize(){throw Error("Custom layers cannot be serialized")}};fOe=class{constructor(e){this._methodToThrottle=e,this._triggered=!1,this._channel=new MessageChannel,this._channel.port2.onmessage=()=>{this._triggered=!1,this._methodToThrottle()}}trigger(){var e;this._triggered||(this._triggered=!0,(e=this._channel)==null||e.port1.postMessage(!0))}remove(){delete this._channel,this._methodToThrottle=()=>{}}},dOe={once:!0},Ioe=class{constructor(e,t){this.target=e,this.mapId=t,this.resolveRejects={},this.tasks={},this.taskQueue=[],this.abortControllers={},this.messageHandlers={},this.invoker=new fOe(()=>this.process()),this.subscription=Vy(this.target,"message",r=>this.receive(r),!1),this.globalScope=Ud(self)?e:window}registerMessageHandler(e,t){this.messageHandlers[e]=t}unregisterMessageHandler(e){delete this.messageHandlers[e]}sendAsync(e,t){return new Promise((r,i)=>{let a=Math.round(Math.random()*1e18).toString(36).substring(0,10),n=t?Vy(t.signal,"abort",()=>{n==null||n.unsubscribe(),delete this.resolveRejects[a];let l={id:a,type:"",origin:location.origin,targetMapId:e.targetMapId,sourceMapId:this.mapId};this.target.postMessage(l),i(new Mm(t.signal.reason))},dOe):null;this.resolveRejects[a]={resolve:l=>{n==null||n.unsubscribe(),r(l)},reject:l=>{n==null||n.unsubscribe(),i(l)}};let o=[],s=Yr(nr({},e),{id:a,sourceMapId:this.mapId,origin:location.origin,data:qy(e.data,o)});this.target.postMessage(s,{transfer:o})})}receive(e){let t=e.data,r=t.id,i=["file://","resource://android","null"],a=[t.origin,location.origin],n=t.origin===location.origin,o=a.some(s=>i.includes(s));if((n||o)&&!(t.targetMapId&&this.mapId!==t.targetMapId)){if(t.type===""){delete this.tasks[r];let s=this.abortControllers[r];delete this.abortControllers[r],s&&s.abort();return}if(Ud(self)||t.mustQueue){this.tasks[r]=t,this.taskQueue.push(r),this.invoker.trigger();return}this.processTask(r,t)}}process(){if(this.taskQueue.length===0)return;let e=this.taskQueue.shift(),t=this.tasks[e];delete this.tasks[e],this.taskQueue.length>0&&this.invoker.trigger(),t&&this.processTask(e,t)}processTask(e,t){return Kt(this,null,function*(){if(t.type===""){let a=this.resolveRejects[e];if(delete this.resolveRejects[e],!a)return;t.error?a.reject(Wn(Oy(t.error))):a.resolve(Oy(t.data));return}if(!this.messageHandlers[t.type]){this.completeTask(e,null,null);return}let r=Oy(t.data),i=new AbortController;this.abortControllers[e]=i;try{let a=yield this.messageHandlers[t.type](t.sourceMapId,r,i);this.completeTask(e,null,a)}catch(a){this.completeTask(e,Wn(a))}})}completeTask(e,t,r){let i=[];delete this.abortControllers[e];let a={id:e,type:"",sourceMapId:this.mapId,origin:location.origin,error:t?qy(t):null,data:qy(r,i)};this.target.postMessage(a,{transfer:i})}remove(){this.invoker.remove(),this.subscription.unsubscribe()}};k2=class{constructor(e,t,r){if(!pOe(e,t,r))throw Error(`x=${t}, y=${r}, z=${e} outside of bounds. 0<=x<${2**e}, 0<=y<${2**e} 0<=z<=25 `);this.z=e,this.x=t,this.y=r,this.key=Nd(0,e,e,t,r)}equals(e){return this.z===e.z&&this.x===e.x&&this.y===e.y}url(e,t,r){let i=mOe(this.x,this.y,this.z),a=vOe(this.z,this.x,this.y);return e[(this.x+this.y)%e.length].replace(/{prefix}/g,(this.x%16).toString(16)+(this.y%16).toString(16)).replace(/{z}/g,String(this.z)).replace(/{x}/g,String(this.x)).replace(/{y}/g,String(r==="tms"?2**this.z-this.y-1:this.y)).replace(/{ratio}/g,t>1?"@2x":"").replace(/{quadkey}/g,a).replace(/{bbox-epsg-3857}/g,i)}isChildOf(e){let t=this.z-e.z;return t>0&&e.x===this.x>>t&&e.y===this.y>>t}getTilePoint(e){let t=2**this.z;return new qe((e.x*t-this.x)*ct,(e.y*t-this.y)*ct)}toString(){return`${this.z}/${this.x}/${this.y}`}},C2=class{constructor(e,t){this.wrap=e,this.canonical=t,this.key=Nd(e,t.z,t.z,t.x,t.y)}},Qn=class Ol{constructor(t,r,i,a,n){if(this.terrainRttPosMatrix32f=null,t= z; overscaledZ = ${t}; z = ${i}`);this.overscaledZ=t,this.wrap=r,this.canonical=new k2(i,+a,+n),this.key=Nd(r,t,i,a,n)}clone(){return new Ol(this.overscaledZ,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)}equals(t){return this.overscaledZ===t.overscaledZ&&this.wrap===t.wrap&&this.canonical.equals(t.canonical)}scaledTo(t){if(t>this.overscaledZ)throw Error(`targetZ > this.overscaledZ; targetZ = ${t}; overscaledZ = ${this.overscaledZ}`);let r=this.canonical.z-t;return t>this.canonical.z?new Ol(t,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y):new Ol(t,this.wrap,t,this.canonical.x>>r,this.canonical.y>>r)}isOverscaled(){return this.overscaledZ>this.canonical.z}calculateScaledKey(t,r){if(t>this.overscaledZ)throw Error(`targetZ > this.overscaledZ; targetZ = ${t}; overscaledZ = ${this.overscaledZ}`);let i=this.canonical.z-t;return t>this.canonical.z?Nd(this.wrap*+r,t,this.canonical.z,this.canonical.x,this.canonical.y):Nd(this.wrap*+r,t,t,this.canonical.x>>i,this.canonical.y>>i)}isChildOf(t){if(t.wrap!==this.wrap||this.overscaledZ-t.overscaledZ<=0)return!1;if(t.overscaledZ===0)return this.overscaledZ>0;let r=this.canonical.z-t.canonical.z;return r<0?!1:t.canonical.x===this.canonical.x>>r&&t.canonical.y===this.canonical.y>>r}children(t){if(this.overscaledZ>=t)return[new Ol(this.overscaledZ+1,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)];let r=this.canonical.z+1,i=this.canonical.x*2,a=this.canonical.y*2;return[new Ol(r,this.wrap,r,i,a),new Ol(r,this.wrap,r,i+1,a),new Ol(r,this.wrap,r,i,a+1),new Ol(r,this.wrap,r,i+1,a+1)]}isLessThan(t){return this.wrapt.wrap?!1:this.overscaledZt.overscaledZ?!1:this.canonical.xt.canonical.x?!1:this.canonical.y=0&&t=0&&r=u)return null;let h=this.canonical.x+a,f=this.wrap;return h<0?(f-=Math.ceil(-h/u),h=(h%u+u)%u):h>=u&&(f+=Math.floor(h/u),h%=u),{tileID:new Ol(this.overscaledZ,f,l,h,c),x:o,y:s}}};aE=Math.PI*6378137;Yt("CanonicalTileID",k2),Yt("OverscaledTileID",Qn,{omit:["terrainRttPosMatrix32f"]});F2="_geojsonTileLayer",gOe=class{constructor(e){this._stringToNumber={},this._numberToString=[];for(let t=0;t=this._numberToString.length)throw Error(`Out of bounds. Index requested n=${e} can't be >= this._numberToString.length ${this._numberToString.length}`);return this._numberToString[e]}},TC=class{constructor(e,t,r,i,a){this.type="Feature",this._vectorTileFeature=e,this._x=r,this._y=i,this._z=t;for(let n in e.properties)typeof e.properties[n]=="string"&&e.properties[n].startsWith("__$json__:")&&(e.properties[n]=JSON.parse(e.properties[n].slice(10)));this.properties=e.properties,this.id=a}projectPoint(e,t,r,i){return[(e.x+t)*360/i-180,360/Math.PI*Math.atan(Math.exp((1-(e.y+r)*2/i)*Math.PI))-90]}projectLine(e,t,r,i){return e.map(a=>this.projectPoint(a,t,r,i))}get geometry(){if(this._geometry)return this._geometry;let e=this._vectorTileFeature,t=e.extent*2**this._z,r=e.extent*this._x,i=e.extent*this._y,a=e.loadGeometry();switch(e.type){case 1:{let n=[];for(let s of a)n.push(s[0]);let o=this.projectLine(n,r,i,t);this._geometry=n.length===1?{type:"Point",coordinates:o[0]}:{type:"MultiPoint",coordinates:o};break}case 2:{let n=a.map(o=>this.projectLine(o,r,i,t));this._geometry=n.length===1?{type:"LineString",coordinates:n[0]}:{type:"MultiLineString",coordinates:n};break}case 3:{let n=Zne(a),o=[];for(let s of n)o.push(s.map(l=>this.projectLine(l,r,i,t)));this._geometry=o.length===1?{type:"Polygon",coordinates:o[0]}:{type:"MultiPolygon",coordinates:o};break}default:throw Error(`unknown feature type: ${e.type}`)}return this._geometry}set geometry(e){this._geometry=e}toJSON(){let e={geometry:this.geometry};for(let t in this)t!=="_geometry"&&t!=="_vectorTileFeature"&&t!=="_x"&&t!=="_y"&&t!=="_z"&&(e[t]=this[t]);return e}},ep=class{constructor(e,t,r){this._name=e,this.dataBuffer=t,typeof r=="number"?this._size=r:(this.nullabilityBuffer=r,this._size=r.size())}getValue(e){return this.nullabilityBuffer&&!this.nullabilityBuffer.get(e)?null:this.getValueFromBuffer(e)}has(e){var t;return((t=this.nullabilityBuffer)==null?void 0:t.get(e))||!this.nullabilityBuffer}get name(){return this._name}get size(){return this._size}},Nw=class extends ep{},MC=class extends Nw{getValueFromBuffer(e){return this.dataBuffer[e]}},DC=class extends Nw{getValueFromBuffer(e){return this.dataBuffer[e]}},Loe=class extends ep{constructor(e,t,r,i){super(e,t,i),this.delta=r}},SC=class extends Loe{constructor(e,t,r,i,a){super(e,a?Int32Array.of(t):Uint32Array.of(t),r,i)}getValueFromBuffer(e){return this.dataBuffer[0]+e*this.delta}},EC=class extends ep{constructor(e,t,r,i){super(e,i?Int32Array.of(t):Uint32Array.of(t),r)}getValueFromBuffer(e){return this.dataBuffer[0]}},yOe=class{constructor(e,t,r,i,a=4096){if(this._name=e,this._geometryVector=t,this._idVector=r,this._propertyVectors=i,this._extent=a,e.length===0)throw Error("Missing layer name")}get name(){return this._name}get idVector(){return this._idVector}get geometryVector(){return this._geometryVector}get propertyVectors(){var e;return(e=this._propertyVectors)!=null?e:[]}getPropertyVector(e){return this.propertyVectorsMap||(this.propertyVectorsMap=new Map(this.propertyVectors.map(t=>[t.name,t]))),this.propertyVectorsMap.get(e)}get numFeatures(){return this.geometryVector.numGeometries}get extent(){return this._extent}getFeatures(){let e=[],t=this.geometryVector.getGeometries();for(let r=0;r>>32-e;dk=kC,CC=65536;pk=Boe(CC),GOe=3*pk/256+pk|0;(function(e){e.PRESENT="PRESENT",e.DATA="DATA",e.OFFSET="OFFSET",e.LENGTH="LENGTH"})(Ka||(Ka={}));(function(e){e.NONE="NONE",e.SINGLE="SINGLE",e.SHARED="SHARED",e.VERTEX="VERTEX",e.MORTON="MORTON",e.FSST="FSST"})(Ro||(Ro={}));(function(e){e.VERTEX="VERTEX",e.INDEX="INDEX",e.STRING="STRING",e.KEY="KEY"})(Mc||(Mc={}));(function(e){e.VAR_BINARY="VAR_BINARY",e.GEOMETRIES="GEOMETRIES",e.PARTS="PARTS",e.RINGS="RINGS",e.TRIANGLES="TRIANGLES",e.SYMBOL="SYMBOL",e.DICTIONARY="DICTIONARY"})(Dn||(Dn={}));INe=[Ka.PRESENT,Ka.DATA,Ka.OFFSET,Ka.LENGTH],Nre=[Pr.NONE,Pr.DELTA,Pr.COMPONENTWISE_DELTA,Pr.RLE,Pr.MORTON],LNe=[Qs.NONE,Qs.FAST_PFOR,Qs.VARINT],zNe=[Ro.NONE,Ro.SINGLE,Ro.SHARED,Ro.VERTEX,Ro.MORTON,Ro.FSST],RNe=[Mc.VERTEX,Mc.INDEX,Mc.STRING,Mc.KEY],BNe=[Dn.VAR_BINARY,Dn.GEOMETRIES,Dn.PARTS,Dn.RINGS,Dn.TRIANGLES,Dn.SYMBOL,Dn.DICTIONARY];(function(e){e[e.FLAT=0]="FLAT",e[e.CONST=1]="CONST",e[e.SEQUENCE=2]="SEQUENCE",e[e.DICTIONARY=3]="DICTIONARY",e[e.FSST_DICTIONARY=4]="FSST_DICTIONARY"})(fa||(fa={}));Lu=class{constructor(e,t){this.values=e,this._size=t}get(e){let t=Math.floor(e/8),r=e%8;return(this.values[t]>>r&1)==1}set(e,t){let r=Math.floor(e/8),i=e%8;this.values[r]=this.values[r]|+!!t<>r&1}size(){return this._size}getBuffer(){return this.values}};$Ne=new TextDecoder;Xoe=class extends Nw{getValueFromBuffer(e){return this.dataBuffer[e]}},Koe=class extends Loe{constructor(e,t,r,i,a){super(e,a?BigInt64Array.of(t):BigUint64Array.of(t),r,i)}getValueFromBuffer(e){return this.dataBuffer[0]+BigInt(e)*this.delta}};(function(e){e[e.POINT=0]="POINT",e[e.LINESTRING=1]="LINESTRING",e[e.POLYGON=2]="POLYGON",e[e.MULTIPOINT=3]="MULTIPOINT",e[e.MULTILINESTRING=4]="MULTILINESTRING",e[e.MULTIPOLYGON=5]="MULTIPOLYGON"})(Yn||(Yn={}));(function(e){e[e.POINT=0]="POINT",e[e.LINESTRING=1]="LINESTRING",e[e.POLYGON=2]="POLYGON"})(Ure||(Ure={}));(function(e){e[e.MORTON=0]="MORTON",e[e.VEC_2=1]="VEC_2",e[e.VEC_3=2]="VEC_3"})(jf||(jf={}));Joe=class{constructor(e,t,r,i,a){this._vertexBufferType=e,this._topologyVector=t,this._vertexOffsets=r,this._vertexBuffer=i,this._mortonSettings=a}get vertexBufferType(){return this._vertexBufferType}get topologyVector(){return this._topologyVector}get vertexOffsets(){return this._vertexOffsets}get vertexBuffer(){return this._vertexBuffer}getSimpleEncodedVertex(e){let t=this.vertexOffsets?this.vertexOffsets[e]*2:e*2;return[this.vertexBuffer[t],this.vertexBuffer[t+1]]}getVertex(e){if(this.vertexOffsets&&this.mortonSettings){let r=this.vertexOffsets[e],i=this.vertexBuffer[r],a=BC(i,this.mortonSettings.numBits,this.mortonSettings.coordinateShift);return[a.x,a.y]}let t=this.vertexOffsets?this.vertexOffsets[e]*2:e*2;return[this.vertexBuffer[t],this.vertexBuffer[t+1]]}getGeometries(){return iVe(this)}get mortonSettings(){return this._mortonSettings}};Qoe=class extends Joe{constructor(e,t,r,i,a,n,o){super(r,i,a,n,o),this._numGeometries=e,this._geometryType=t}geometryType(e){return this._geometryType}get numGeometries(){return this._numGeometries}containsPolygonGeometry(){return this._geometryType===Yn.POLYGON||this._geometryType===Yn.MULTIPOLYGON}containsSingleGeometryType(){return!0}};tse=class extends Joe{constructor(e,t,r,i,a,n){super(e,r,i,a,n),this._geometryTypes=t}geometryType(e){return this._geometryTypes[e]}get numGeometries(){return this._geometryTypes.length}containsPolygonGeometry(){for(let e=0;eYr(nr({},r),{[i.name]:new XVe(i)}),{})}},JVe=class{constructor(e,t){this.tileID=e,this.x=e.canonical.x,this.y=e.canonical.y,this.z=e.canonical.z,this.grid=new _E(ct,16,0),this.grid3D=new _E(ct,16,0),this.featureIndexArray=new pne,this.promoteId=t}insert(e,t,r,i,a,n){let o=this.featureIndexArray.length;this.featureIndexArray.emplaceBack(r,i,a);let s=n?this.grid3D:this.grid;for(let l of t){let u=[1/0,1/0,-1/0,-1/0];for(let c of l)u[0]=Math.min(u[0],c.x),u[1]=Math.min(u[1],c.y),u[2]=Math.max(u[2],c.x),u[3]=Math.max(u[3],c.y);u[0]<8192&&u[1]<8192&&u[2]>=0&&u[3]>=0&&s.insert(o,u[0],u[1],u[2],u[3])}}loadVTLayers(){return this.vtLayers||(this.encoding==="mlt"?this.vtLayers=new KVe(this.rawTileData).layers:this.vtLayers=new HRe(new foe(this.rawTileData)).layers,this.sourceLayerCoder=new gOe(this.vtLayers?Object.keys(this.vtLayers).sort():[F2])),this.vtLayers}query(e,t,r,i){this.loadVTLayers();let a=e.params,n=ct/e.tileSize/e.scale,o=_m(a.filter,"queryRenderedFeatures filter",a.globalState),s=e.queryGeometry,l=e.queryPadding*n,u=jl.fromPoints(s),c=this.grid.query(u.minX-l,u.minY-l,u.maxX+l,u.maxY+l),h=jl.fromPoints(e.cameraQueryGeometry).expandBy(l),f=this.grid3D.query(h.minX,h.minY,h.maxX,h.maxY,(m,g,y,x)=>Vze(e.cameraQueryGeometry,m-l,g-l,y+l,x+l));for(let m of f)c.push(m);c.sort(eUe);let d={},p;for(let m of c){if(m===p)continue;p=m;let g=this.featureIndexArray.get(m),y=null;this.loadMatchingFeature(d,g.bucketIndex,g.sourceLayerIndex,g.featureIndex,o,a.layers,a.availableImages,t,r,i,(x,b,_)=>(y||(y=Kd(x)),b.queryIntersectsFeature({queryGeometry:s,feature:x,featureState:_,geometry:y,zoom:this.z,transform:e.transform,pixelsToTileUnits:n,pixelPosMatrix:e.pixelPosMatrix,unwrappedTileID:this.tileID.toUnwrapped(),getElevation:e.getElevation})))}return d}loadMatchingFeature(e,t,r,i,a,n,o,s,l,u,c){let h=this.bucketLayerIDs[t];if(n&&!h.some(m=>n.has(m)))return;let f=this.sourceLayerCoder.decode(r),d=this.vtLayers[f].feature(i);if(a.needGeometry){let m=Yf(d,!0);if(!a.filter(new Di(this.tileID.overscaledZ),m,this.tileID.canonical))return}else if(!a.filter(new Di(this.tileID.overscaledZ),d))return;let p=this.getId(d,f);for(let m of h){if(n&&!n.has(m))continue;let g=s[m];if(!g)continue;let y={};p&&u&&(y=u.getState(g.sourceLayer||"_geojsonTileLayer",p));let x=tr({},l[m]);x.paint=Xre(x.paint,g.paint,d,y,o),x.layout=Xre(x.layout,g.layout,d,y,o);let b=!c||c(d,g,y);if(!b)continue;let _=new TC(d,this.z,this.x,this.y,p);_.layer=x;let A=e[m];A===void 0&&(A=e[m]=[]),A.push({featureIndex:i,feature:_,intersectionZ:b})}}lookupSymbolFeatures(e,t,r,i,a,n,o,s){let l={};this.loadVTLayers();let u=_m(a.filterSpec,"queryRenderedFeatures symbol filter",a.globalState);for(let c of e)this.loadMatchingFeature(l,r,i,c,u,n,o,s,t);return l}hasLayer(e){for(let t of this.bucketLayerIDs)for(let r of t)if(e===r)return!0;return!1}getId(e,t){var i;let r=e.id;if(this.promoteId){let a=typeof this.promoteId=="string"?this.promoteId:this.promoteId[t];r=e.properties[a],typeof r=="boolean"&&(r=Number(r)),r===void 0&&((i=e.properties)!=null&&i.cluster)&&this.promoteId&&(r=Number(e.properties.cluster_id))}return r}};Yt("FeatureIndex",JVe,{omit:["rawTileData","sourceLayerCoder"]});hse=class{constructor(e,t){this.max=e,this.onRemove=t,this.reset()}reset(){for(let e in this.data)for(let t of this.data[e])t.timeout&&clearTimeout(t.timeout),this.onRemove(t.value);return this.data={},this.order=[],this}add(e,t,r){let i=e.wrapped().key;this.data[i]===void 0&&(this.data[i]=[]);let a={value:t,timeout:void 0};if(r!==void 0&&(a.timeout=setTimeout(()=>{this.remove(e,a)},r)),this.data[i].push(a),this.order.push(i),this.order.length>this.max){let n=this._getAndRemoveByKey(this.order[0]);n&&this.onRemove(n)}return this}has(e){return e.wrapped().key in this.data}getAndRemove(e){return this.has(e)?this._getAndRemoveByKey(e.wrapped().key):null}_getAndRemoveByKey(e){let t=this.data[e].shift();return t.timeout&&clearTimeout(t.timeout),this.data[e].length===0&&delete this.data[e],this.order.splice(this.order.indexOf(e),1),t.value}getByKey(e){let t=this.data[e];return t?t[0].value:null}get(e){return this.has(e)?this.data[e.wrapped().key][0].value:null}remove(e,t){if(!this.has(e))return this;let r=e.wrapped().key,i=t===void 0?0:this.data[r].indexOf(t),a=this.data[r][i];return this.data[r].splice(i,1),a.timeout&&clearTimeout(a.timeout),this.data[r].length===0&&delete this.data[r],this.onRemove(a.value),this.order.splice(this.order.indexOf(r),1),this}setMaxSize(e){for(this.max=e;this.order.length>this.max;){let t=this._getAndRemoveByKey(this.order[0]);t&&this.onRemove(t)}return this}filter(e){let t=[];for(let r in this.data)for(let i of this.data[r])e(i.value)||t.push(i);for(let r of t)this.remove(r.value.tileID,r)}}});var cce={};Yi(cce,{AJAXError:()=>dm,AttributionControl:()=>rce,BoxZoomHandler:()=>jue,CanvasSource:()=>$le,CooperativeGesturesHandler:()=>ece,DoubleClickZoomHandler:()=>Xue,DragPanHandler:()=>Kue,DragRotateHandler:()=>Jue,EXTENT:()=>ct,EdgeInsets:()=>_F,ErrorEvent:()=>or,Event:()=>Ms,Evented:()=>tn,FullscreenControl:()=>xYe,FullscreenEvent:()=>DF,GPUInitializationError:()=>Uue,GeoJSONSource:()=>Nle,GeolocateControl:()=>mYe,GeolocateErrorEvent:()=>lce,GeolocateEvent:()=>ap,GeolocatePositionEvent:()=>MF,GlobeControl:()=>wYe,Hash:()=>Gue,ImageSource:()=>Om,KeyboardHandler:()=>Yue,LngLat:()=>ar,LngLatBounds:()=>Vu,LogoControl:()=>ice,Map:()=>sYe,MapBoxZoomEvent:()=>uF,MapContextEvent:()=>i6,MapLibreEvent:()=>Rn,MapLibreMap:()=>sYe,MapMouseEvent:()=>Ds,MapMovementEvent:()=>hr,MapProjectionEvent:()=>Sle,MapSourceDataEvent:()=>ma,MapStyleDataEvent:()=>Wl,MapStyleImageMissingEvent:()=>Ele,MapStyleLoadEvent:()=>lF,MapTerrainEvent:()=>Dle,MapTouchEvent:()=>j2,MapWheelEvent:()=>Mle,Marker:()=>TF,MarkerClickEvent:()=>sce,MarkerDragEvent:()=>ip,MercatorCoordinate:()=>wi,NavigationControl:()=>uYe,Point:()=>qe,Popup:()=>MYe,PopupEvent:()=>SF,RasterDEMTileSource:()=>qle,RasterTileSource:()=>PF,ScaleControl:()=>gYe,ScrollZoomHandler:()=>Wue,Style:()=>bF,TerrainControl:()=>bYe,TwoFingersTouchPitchHandler:()=>Zue,TwoFingersTouchRotateHandler:()=>Hue,TwoFingersTouchZoomHandler:()=>$ue,TwoFingersTouchZoomRotateHandler:()=>Que,VectorTileSource:()=>Ble,VideoSource:()=>jle,addProtocol:()=>Fie,addSourceType:()=>gGe,clearPrewarmedResources:()=>jUe,config:()=>Ts,createTileMesh:()=>Ule,getGlobalDispatcher:()=>FF,getMaxParallelImageRequests:()=>IYe,getRTLTextPluginStatus:()=>kYe,getVersion:()=>CYe,getWorkerCount:()=>FYe,getWorkerUrl:()=>zYe,importScriptInWorkers:()=>BYe,isTimeFrozen:()=>oUe,now:()=>Ei,prewarm:()=>GUe,removeProtocol:()=>Pie,restoreNow:()=>nUe,setMaxParallelImageRequests:()=>LYe,setNow:()=>aUe,setRTLTextPlugin:()=>EYe,setWorkerCount:()=>PYe,setWorkerUrl:()=>RYe});function Tle(){var e=new En(4);return En!=Float32Array&&(e[1]=0,e[2]=0),e[0]=1,e[3]=1,e}function tUe(e,t){var r=t[0],i=t[1],a=t[2],n=t[3],o=r*n-a*i;return o?(o=1/o,e[0]=n*o,e[1]=-i*o,e[2]=-a*o,e[3]=r*o,e):null}function rUe(e){return e[0]*e[3]-e[2]*e[1]}function iUe(e,t,r){var i=t[0],a=t[1],n=t[2],o=t[3],s=Math.sin(r),l=Math.cos(r);return e[0]=i*l+n*s,e[1]=a*l+o*s,e[2]=i*-s+n*l,e[3]=a*-s+o*l,e}function Ei(){return v6.getCurrentTime()}function aUe(e){v6.setNow(e)}function nUe(){v6.restoreNow()}function oUe(){return v6.isFrozen()}function UC(){return z2!=null||(z2={getAttribute:Element.prototype.getAttribute,getAttributeNames:Element.prototype.getAttributeNames,querySelectorAll:Element.prototype.querySelectorAll,remove:Element.prototype.remove,removeAttribute:Element.prototype.removeAttribute,localName:Object.getOwnPropertyDescriptor(Element.prototype,"localName").get,namespaceURI:Object.getOwnPropertyDescriptor(Element.prototype,"namespaceURI").get}),z2}function fUe(e,t){let r={};for(let i in e)i!=="ref"&&(r[i]=e[i]);return zie.forEach(i=>{i in t&&(r[i]=t[i])}),r}function dse(e){e=e.slice();let t=Object.create(null);for(let r=0;r{"source"in s&&a[s.source]?r.push({command:"removeLayer",args:[s.id]}):o.push(s)}),r=r.concat(n),vUe(o,t.layers,r),i&&t.terrain&&r.push({command:"setTerrain",args:[t.terrain]})}catch(i){console.warn("Unable to compute style diff:",i),r=[{command:"setStyle",args:[t]}]}return r}function yUe(){let e={},t=Xe.$version;for(let r in Xe.$root){let i=Xe.$root[r];if(i.required){let a=null;a=r==="version"?t:i.type==="array"?[]:{},a!=null&&(e[r]=a)}}return e}function a6(e){let t=[];if(typeof e=="string")t.push({id:"default",url:e});else if(e&&e.length>0){let r=[];for(let{id:i,url:a}of e){let n=`${i}${a}`;r.includes(n)||(r.push(n),t.push({id:i,url:a}))}}return t}function gse(e,t,r){try{let i=new URL(e);return i.pathname+=`${t}${r}`,i.toString()}catch(i){throw Error(`Invalid sprite URL "${e}", must be absolute. Modify style specification directly or use TransformStyleFunction to correct the issue dynamically`)}}function _Ue(e,t,r,i){return Kt(this,null,function*(){let a=a6(e),n=r>1?"@2x":"",o={},s={};for(let{id:l,url:u}of a){let c=yield t.transformRequest(gse(u,n,".json"),"SpriteJSON");o[l]=f2(c,i);let h=yield t.transformRequest(gse(u,n,".png"),"SpriteImage");s[l]=Nu.getImage(h,i)}return yield Promise.all([...Object.values(o),...Object.values(s)]),xUe(o,s)})}function xUe(e,t){return Kt(this,null,function*(){let r={};for(let i in e){r[i]={};let a=(yield t[i]).data;if(!a)throw Error(`Could not load sprite image for ${i}: the response is empty`);let n=Ss.getImageCanvasContext(a),o=(yield e[i]).data;for(let s in o){let{width:l,height:u,x:c,y:h,sdf:f,pixelRatio:d,stretchX:p,stretchY:m,content:g,textFitWidth:y,textFitHeight:x}=o[s],b={width:l,height:u,x:c,y:h,context:n};r[i][s]={data:null,pixelRatio:d,sdf:f,stretchX:p,stretchY:m,content:g,textFitWidth:y,textFitHeight:x,spriteData:b}}}return r})}function MUe(e){let t=/^u\+([0-9a-f]*)(\?+)$/i.exec(e);if(t){let[,a,n]=t;return a.length+n.length>6?null:yse(parseInt(`${a}${"0".repeat(n.length)}`,16),parseInt(`${a}${"f".repeat(n.length)}`,16))}let r=/^u\+([0-9a-f]{1,6})(?:-([0-9a-f]{1,6}))?$/i.exec(e);if(!r)return null;let i=parseInt(r[1],16);return yse(i,r[2]===void 0?i:parseInt(r[2],16))}function yse(e,t){return e>t||e>cF?null:{start:e,end:Math.min(t,cF)}}function DUe(e,t){return e.ranges.some(({start:r,end:i})=>t>=r&&t<=i)}function _se(e,t,r,i,a,n,o,s,l){for(let u=t;u-1);l++,n[l]=s,o[l]=u,o[l+1]=hF}for(let s=0,l=0;sh2(t,r))),jw}function $Ue(e,t){let r=xh();return Qa(r,r,[1,1,0]),Xn(r,r,[e.width*.5,e.height*.5,1]),e.calculatePosMatrix?Hd(r,r,e.calculatePosMatrix(t.toUnwrapped())):r}function HUe(e,t,r){if(e)for(let i of e){let a=t[i];if((a==null?void 0:a.source)===r&&a.type==="fill-extrusion")return!0}else for(let i in t){let a=t[i];if(a.source===r&&a.type==="fill-extrusion")return!0}return!1}function ZUe(e,t,r,i,a,n,o){var h;let s=HUe((h=a==null?void 0:a.layers)!=null?h:null,t,e.id),l=n.maxPitchScaleFactor(),u=e.tilesIn(i,l,s);u.sort(Ile);let c=[];for(let f of u)c.push({wrappedTileID:f.tileID.wrapped().key,queryResults:f.tile.queryRenderedFeatures(t,r,e.getState(),f.queryGeometry,f.cameraQueryGeometry,f.scale,a,n,l,$Ue(n,f.tileID),o?(d,p)=>o(f.tileID,d,p):void 0)});return KUe(XUe(c),e)}function YUe(e,t,r,i,a,n,o){let s={},l=n.queryRenderedSymbols(i),u=[];for(let c of Object.keys(l).map(Number))u.push(o[c]);u.sort(Ile);for(let c of u){let h=c.featureIndex.lookupSymbolFeatures(l[c.bucketInstanceId],t,c.bucketIndex,c.sourceLayerIndex,{filterSpec:a.filter,globalState:a.globalState},a.layers,a.availableImages,e);for(let f in h){s[f]||(s[f]=[]);let d=h[f];d.sort((p,m)=>{let g=c.featureSortOrder;if(g){let y=g.indexOf(p.featureIndex);return g.indexOf(m.featureIndex)-y}return m.featureIndex-p.featureIndex});for(let p of d)s[f].push(p)}}return JUe(s,e,r)}function WUe(e,t){let r=e.getRenderableIds().map(n=>e.getTileByID(n)),i=[],a={};for(let n of r){let o=n.tileID.canonical.key;a[o]||(a[o]=!0,n.querySourceFeatures(i,t))}return i}function Ile(e,t){let r=e.tileID,i=t.tileID;return r.overscaledZ-i.overscaledZ||r.canonical.y-i.canonical.y||r.wrap-i.wrap||r.canonical.x-i.canonical.x}function XUe(e){let t={},r={};for(let{queryResults:i,wrappedTileID:a}of e){r[a]||(r[a]={});let n=r[a];for(let o in i){let s=i[o];n[o]||(n[o]={});let l=n[o];t[o]||(t[o]=[]);for(let u of s)l[u.featureIndex]||(l[u.featureIndex]=!0,t[o].push(u))}}return t}function KUe(e,t){for(let r in e)for(let i of e[r])Lle(i,t);return e}function JUe(e,t,r){for(let i in e)for(let a of e[i]){let n=r[t[i].source];Lle(a,n)}return e}function Lle(e,t){let r=e.feature,i=t.getFeatureState(r.layer["source-layer"],r.id);r.source=r.layer.source,r.layer["source-layer"]&&(r.sourceLayer=r.layer["source-layer"]),r.state=i}function zle(e,t,r,i){return Kt(this,null,function*(){let a=e;if(e.url?a=(yield f2(yield t.transformRequest(e.url,"Source"),r)).data:yield Ss.frameAsync(r,i),!a)return null;let n=Tm(tr(a,e),["tiles","minzoom","maxzoom","attribution","bounds","scheme","tileSize","encoding"]);return"vector_layers"in a&&a.vector_layers&&(n.vectorLayerIds=a.vector_layers.map(o=>o.id)),n})}function u6(e,t){return t?e.properties[t]:e.id}function QUe(e,t){let r=new Map;if(e==null||e.type==null)return r;if(e.type==="Feature"){let i=u6(e,t);return i==null?void 0:(r.set(i,e),r)}if(e.type==="FeatureCollection"){let i=new Set;for(let a of e.features){let n=u6(a,t);if(n==null||i.has(n))return;i.add(n),r.set(n,a)}return r}}function eGe(e,t,r){var a,n;let i=[];if(t.removeAll)e.clear();else if(t.remove)for(let o of t.remove){let s=e.get(o);s&&(i.push(s.geometry),e.delete(o))}if(t.add)for(let o of t.add){let s=u6(o,r);if(s==null)continue;let l=e.get(s);l&&i.push(l.geometry),i.push(o.geometry),e.set(s,o)}if(t.update)for(let o of t.update){let s=e.get(o.id);if(!s)continue;let l=!!o.newGeometry,u=o.removeAllProperties||((a=o.removeProperties)==null?void 0:a.length)>0||((n=o.addOrUpdateProperties)==null?void 0:n.length)>0;if(!l&&!u)continue;i.push(s.geometry);let c=nr({},s);if(e.set(o.id,c),l&&(i.push(o.newGeometry),c.geometry=o.newGeometry),u){if(c.properties=o.removeAllProperties?{}:nr({},c.properties||{}),o.removeProperties)for(let h of o.removeProperties)delete c.properties[h];if(o.addOrUpdateProperties)for(let{key:h,value:f}of o.addOrUpdateProperties)c.properties[h]=f}}return i}function tGe(e,t,r){if(!e)return t||{};if(!t)return e||{};let i=Ase(e,r),a=Ase(t,r);rGe(i,a);let n={};if((i.removeAll||a.removeAll)&&(n.removeAll=!0),n.remove=new Set([...i.remove,...a.remove]),n.add=new Map([...i.add,...a.add]),n.update=new Map([...i.update,...a.update]),n.remove.size&&n.add.size)for(let o of n.add.keys())n.remove.delete(o);return aGe(n)}function rGe(e,t){t.removeAll&&(e.add.clear(),e.update.clear(),e.remove.clear(),t.remove.clear());for(let r of t.remove)e.add.delete(r),e.update.delete(r);for(let[r,i]of t.update){let a=e.update.get(r);a&&(t.update.set(r,iGe(a,i)),e.update.delete(r))}}function iGe(e,t){let r={id:e.id};if(t.removeAllProperties&&(delete e.removeProperties,delete e.addOrUpdateProperties,delete t.removeProperties),t.removeProperties&&e.addOrUpdateProperties){let i=new Set(t.removeProperties);e.addOrUpdateProperties=e.addOrUpdateProperties.filter(a=>!i.has(a.key))}return(e.removeAllProperties||t.removeAllProperties)&&(r.removeAllProperties=!0),(e.removeProperties||t.removeProperties)&&(r.removeProperties=[...e.removeProperties||[],...t.removeProperties||[]]),(e.addOrUpdateProperties||t.addOrUpdateProperties)&&(r.addOrUpdateProperties=[...e.addOrUpdateProperties||[],...t.addOrUpdateProperties||[]]),(e.newGeometry||t.newGeometry)&&(r.newGeometry=t.newGeometry||e.newGeometry),r}function Ase(e,t){var i,a;if(!e)return{};let r={};return r.removeAll=e.removeAll,r.remove=new Set(e.remove||[]),r.add=new Map((i=e.add)==null?void 0:i.map(n=>[u6(n,t),n])),r.update=new Map((a=e.update)==null?void 0:a.map(n=>[n.id,n])),r}function aGe(e){let t={};return e.removeAll&&(t.removeAll=e.removeAll),e.remove&&(t.remove=Array.from(e.remove)),e.add&&(t.add=Array.from(e.add.values())),e.update&&(t.update=Array.from(e.update.values())),t}function Ole(e){return!e||e.length===0?[]:typeof e[0]=="number"?[e]:e.flatMap(t=>Ole(t))}function n6(e){return e.type==="GeometryCollection"?e.geometries.flatMap(t=>n6(t)):Ole(e.coordinates)}function Tse(e){let t=new Vu,r;switch(e.type){case"FeatureCollection":r=e.features.flatMap(i=>n6(i.geometry));break;case"Feature":r=n6(e.geometry);break;default:r=n6(e)}if(r.length===0)return t;for(let i of r){let[a,n]=i;t.extend([a,n])}return t}function nGe({x:e,y:t,z:r},i=0){let a=Pw((e-i)/2**r),n=wm((t+1+i)/2**r),o=Pw((e+1+i)/2**r),s=wm((t-i)/2**r);return new Vu([a,n],[o,s])}function lGe(e){e*=Math.PI/180;let t=Math.sin(e),r=Math.cos(e);return[(2*r+1)/3,(-Math.sqrt(3)*t-r+1)/3,(Math.sqrt(3)*t-r+1)/3]}function uGe(e){return e>0?1/(1-e):1+e}function cGe(e){return e>0?1-1/(1.001-e):-e}function Vle(e,t){let r=Ule(t,"16bit"),i=Mh.deserialize({arrayBuffer:r.vertices,length:r.vertices.byteLength/2/2}),a=qu.deserialize({arrayBuffer:r.indices,length:r.indices.byteLength/2/3});return new Y2(e.createVertexBuffer(i,np.members),e.createIndexBuffer(a),Aa.simpleSegment(0,0,i.length,a.length))}function Ule(e,t){let r=e.granularity===void 0?1:Math.max(e.granularity,1),i=r+(e.generateBorders?2:0),a=r+(e.extendToNorthPole||e.generateBorders?1:0)+(e.extendToSouthPole||e.generateBorders?1:0),n=i+1,o=a+1,s=e.generateBorders?-1:0,l=e.generateBorders||e.extendToNorthPole?-1:0,u=r+ +!!e.generateBorders,c=r+(e.generateBorders||e.extendToSouthPole?1:0),h=n*o,f=i*a*6,d=n*o>65536;if(d&&t==="16bit")throw Error("Granularity is too large and meshes would not fit inside 16 bit vertex indices.");let p=d||t==="32bit",m=new Int16Array(h*2),g=0;for(let b=l;b<=c;b++)for(let _=s;_<=u;_++){let A=_/r*ct;_===-1&&(A=-$w),_===r+1&&(A=ct+$w);let T=b/r*ct;b===-1&&(T=e.extendToNorthPole?um:-$w),b===r+1&&(T=e.extendToSouthPole?cm:ct+$w),m[g++]=A,m[g++]=T}let y=p?new Uint32Array(f):new Uint16Array(f),x=0;for(let b=0;b=1&&y<=512)||x>=1?Rm:[p,m,x]}function pGe(e){let t=(1-4/e)/.9921875;return Math.max(0,t)}function Gle(e){let[t,r,i,a]=e;return t.x+i.x===r.x+a.x&&t.y+i.y===r.y+a.y}function yGe(e,t){let r={};if(!t)return r;for(let i of e){let a=i.layerIds.map(n=>t.getLayer(n)).filter(Boolean);if(a.length!==0){i.layers=a,i.stateDependentLayerIds&&(i.stateDependentLayers=i.stateDependentLayerIds.map(n=>a.filter(o=>o.id===n)[0]));for(let n of a)r[n.id]=i}}return r}function Z2(){return jC||(jC=new _Ge),jC}function Mse(e){let t=[];for(let r in e)t.push({id:r,state:e[r]});return t}function bGe(e,t,r,i){let a=Kn([],e,t),n=1/a[3]/r*i;return hie(a,a,[n,n,1/a[3],n])}function wGe(e,t,r,i){let a=i?4:0,n=i?0:4,o=0,s=[],l=[];for(let h=0;h<4;h++){let f=Cc([],e[h+n],e[h+a]),d=Hl(f);da(f,f,1/d),s.push(d),l.push(f)}for(let h=0;h<4;h++){let f=pie(e[h+a],l[h],r);o=f!==null&&f>=0?Math.max(o,f):Math.max(o,s[h])}let u=AGe(e,t),c=TGe(r,u);if(c!==null){let h=c/en(l[0],u);o=Math.min(o,h)}for(let h=0;h<4;h++){let f=Math.min(o,s[h]);e[h+n]=[e[h+a][0]+l[h][0]*f,e[h+a][1]+l[h][1]*f,e[h+a][2]+l[h][2]*f,1]}}function AGe(e,t){let r=Cc([],e[t[0]],e[t[1]]),i=Cc([],e[t[2]],e[t[1]]),a=[0,0,0,0];return Bo(a,Qo([],r,i)),a[3]=-en(a,e[t[0]]),a}function TGe(e,t){let r=o2(e),i=cie([],e,1/r),a=Cc([],t,da([],i,en(t,i))),n=o2(a);if(n>0){let o=Math.sqrt(1-i[3]*i[3]),s=da([],i,-i[3]),l=el([],s,da([],a,o/n));return iw(t,l)}return null}function MGe(e,t,r){let i=t.intersectsFrustum(e);if(!r||i===0)return i;let a=t.intersectsPlane(r);return a===0?0:i===2&&a===2?2:1}function Dse(e,t,r){let i=0,a=(r-t)/10;for(let n=0;n<10;n++){let o=t+(n+.5)/10*(r-t);i+=a*Math.cos(o)**+e}return i}function dF(e,t){return function(r,i,a,n,o){let s=2*((e-1)/Jn(Math.cos(pa(Xf-o))/Math.cos(pa(Xf)))-1),l=Math.acos(a/n),u=2*Dse(s-1,0,pa(o/2)),c=Math.min(pa(Xf),l+pa(o/2)),h=Math.min(c,l-pa(o/2)),f=Dse(s-1,h,c),d=Math.atan(i/a),p=Math.hypot(i,a),m=r;return m+=Jn(n/p/Math.max(.5,Math.cos(pa(o/2)))),m+=s*Jn(Math.cos(d))/2,m-=Jn(Math.max(1,f/u/t))/2,m}}function zF(e,t){let r=(t.roundZoom?Math.round:Math.floor)(e.zoom+Jn(e.tileSize/t.tileSize));return Math.max(0,r)}function SGe(e,t){let r=Xf-e.pitch-e.fov/2,i=Tr((15-r)/15,0,1),a=Math.max(500,t!=null?t:0);return e.elevation+i*a}function EGe(e,t,r){let i=e.planes[1],a=e.points.map(l=>{let u=i[0]*l[0]+i[1]*l[1]+i[2]*l[2]+i[3];if(Math.abs(u)>1e-6)return l;let c=[l[0]-r[0],l[1]-r[1],l[2]-r[2]],h=i[0]*c[0]+i[1]*c[1]+i[2]*c[2];if(h>=-1e-9)return l;let f=t/-h;return[l[0]+c[0]*f,l[1]+c[1]*f,l[2]+c[2]*f,l[3]]}),n=e.planes.map((l,u)=>u===1?[l[0],l[1],l[2],l[3]+t]:l),o=[1/0,1/0,1/0],s=[-1/0,-1/0,-1/0];for(let l of a)for(let u=0;u<3;u++)o[u]=Math.min(o[u],l[u]),s[u]=Math.max(s[u],l[u]);return new LF(a,n,new IF(o,s))}function kGe(e,t,r,i){let a=Math.hypot(t[0],t[1],t[2]);if(a===0)return{frustum:e,plane:t};let n=1+i/No,o=Tr(-t[3]/a,-1,1),s=Math.cos(Math.acos(o)+Math.acos(1/n));return{frustum:EGe(e,Math.sqrt(n*n-1),r),plane:[t[0],t[1],t[2],-s*a]}}function Nm(e,t){let r=e.getCameraFrustum(),i=e.getClippingPlane();i&&t.maxContentElevation>0&&({frustum:r,plane:i}=kGe(r,i,e.cameraPosition,t.maxContentElevation));let a=Kne(e),n=wi.fromLngLat(e.center,e.elevation),o=SGe(e,t.maxContentElevation),s=e.getCoveringTilesDetailsProvider(),l=s.allowVariableZoom(e,t),u=zF(e,t),c=t.minzoom||0,h=t.maxzoom===void 0?e.maxZoom:t.maxzoom,f=Math.min(Math.max(0,u),h),d=2**f,p=[d*a.x,d*a.y,0],m=[d*n.x,d*n.y,0],g=Math.hypot(n.x-a.x,n.y-a.y),y=Math.abs(n.z-a.z),x=Math.hypot(g,y),b=T=>({zoom:0,x:0,y:0,wrap:T,fullyVisible:!1}),_=[],A=[];if(e.renderWorldCopies&&s.allowWorldCopies())for(let T=1;T<=3;T++)_.push(b(-T)),_.push(b(T));for(_.push(b(0));_.length>0;){let T=_.pop(),M=T.x,S=T.y,k=T.fullyVisible,P={x:M,y:S,z:T.zoom},I=s.getTileBoundingVolume(P,T.wrap,o,t);if(!k){let q=MGe(r,I,i);if(q===0)continue;k=q===2}let B=s.distanceToTile2d(a.x,a.y,P,I),L=u;l&&(L=(t.calculateTileZoom||DGe)(e.zoom+Jn(e.tileSize/t.tileSize),B,y,x,e.fov)),L=(t.roundZoom?Math.round:Math.floor)(L),L=Math.max(0,L);let z=Math.min(L,h);if(T.wrap=s.getWrap(n,P,T.wrap),T.zoom>=z){if(T.zoom>1),$=T.zoom+1;_.push({zoom:$,x:V,y:j,wrap:T.wrap,fullyVisible:k})}}return A.sort((T,M)=>T.distanceSq-M.distanceSq).map(T=>T.tileID)}function Sse(e){return e==="raster"||e==="image"||e==="video"}function CGe(e,t,r,i,a,n,o){let s=Ei(),l=vie(t);for(let u of t){let c=e.getTileById(u.key);(c.fadingDirection===0||c.fadeOpacity===0)&&c.resetFadeLogic(),!FGe(e,c,r,s,i,a,o)&&(PGe(e,c,r,s,n,o)||IGe(c,l,s,o)||c.resetFadeLogic())}}function FGe(e,t,r,i,a,n,o){if(!t.hasData())return!1;let{tileID:s,fadingRole:l,fadingDirection:u,fadingParentID:c}=t;if(l===0&&u===1&&c)return r[c.key]=c,!0;let h=Math.max(s.overscaledZ-a,n);for(let f=s.overscaledZ-1;f>=h;f--){let d=s.scaledTo(f),p=e.getLoadedTile(d);if(p)return t.setCrossFadeLogic({fadingRole:0,fadingDirection:1,fadingParentID:p.tileID,fadeEndTime:i+o}),p.setCrossFadeLogic({fadingRole:1,fadingDirection:0,fadeEndTime:i+o}),r[d.key]=d,!0}return!1}function PGe(e,t,r,i,a,n){if(!t.hasData())return!1;let o=t.tileID.children(a),s=Ese(e,t,o,r,i,a,n);if(s)return!0;for(let l of o)Ese(e,t,l.children(a),r,i,a,n)&&(s=!0);return s}function Ese(e,t,r,i,a,n,o){if(r[0].overscaledZ>=n)return!1;let s=!1;for(let l of r){let u=e.getLoadedTile(l);if(!u)continue;let{fadingRole:c,fadingDirection:h,fadingParentID:f}=u;(c!==0||h!==0||!f)&&(u.setCrossFadeLogic({fadingRole:0,fadingDirection:0,fadingParentID:t.tileID,fadeEndTime:a+o}),t.setCrossFadeLogic({fadingRole:1,fadingDirection:1,fadeEndTime:a+o})),i[l.key]=l,s=!0}return s}function IGe(e,t,r,i){let a=e.tileID;if(e.selfFading)return!0;if(e.hasData())return!1;if(t.has(a)){let n=r+i;return e.setSelfFadeLogic(n),!0}return!1}function LGe(e,t){if(t<=0)return!1;let r=Ei();for(let i of e.getAllTiles())if(i.fadeEndTime>=r)return!0;return!1}function zGe(e,t){var i,a,n;let r=t.getRenderableIds();for(let o of r){if(!((i=e.neighboringTiles)!=null&&i[o]))continue;let s=t.getTileById(o);e.neighboringTiles[o].backfilled||kse(e,s),!((n=(a=s.neighboringTiles)==null?void 0:a[e.tileID.key])!=null&&n.backfilled)&&kse(s,e)}}function kse(e,t){var o;e.needsHillshadePrepare=!0,e.needsTerrainPrepare=!0,e.needsColorReliefPrepare=!0;let r=t.tileID.canonical.x-e.tileID.canonical.x,i=t.tileID.canonical.y-e.tileID.canonical.y,a=2**e.tileID.canonical.z,n=t.tileID.key;(r!==0||i!==0)&&(Math.abs(i)>1||(Math.abs(r)>1&&(Math.abs(r+a)===1?r+=a:Math.abs(r-a)===1&&(r-=a)),t.dem&&e.dem&&(e.dem.backfillBorder(t.dem,r,i),(o=e.neighboringTiles)!=null&&o[n]&&(e.neighboringTiles[n].backfilled=!0))))}function o6(e,t,r,i,a){return a?e?e(t,r)+i:i===0?void 0:i:i}function Hw(e,t){let r=!0;return e==="always"||(e==="never"||t==="never")&&(r=!1),r}function BGe(e,t){let r=1/(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]),i=1/(t[8]*t[8]+t[9]*t[9]+t[10]*t[10]),a=t[0]*r,n=t[4]*r,o=t[8]*i,s=t[1]*r,l=t[5]*r,u=t[9]*i,c=t[2]*r,h=t[6]*r,f=t[10]*i;e[0]=a,e[1]=n,e[2]=o,e[4]=s,e[5]=l,e[6]=u,e[8]=c,e[9]=h,e[10]=f;let d=t[12],p=t[13],m=t[14];return e[12]=-a*d-s*p-c*m,e[13]=-n*d-l*p-h*m,e[14]=-o*d-u*p-f*m,e[3]=0,e[7]=0,e[11]=0,e[15]=1,e}function qGe(e,t){return e[0]=1/t[0],e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1/t[5],e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=0,e[11]=1/t[14],e[12]=0,e[13]=0,e[14]=-1,e[15]=t[10]/t[14],e}function OGe(e,t){let r=1/(t[0]*t[5]-t[1]*t[4]);return e[0]=t[5]*r,e[1]=-t[1]*r,e[2]=0,e[3]=0,e[4]=-t[4]*r,e[5]=t[0]*r,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1/t[10],e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1/t[15],e}function RF(e,t,r){let i=xh();if(!e){let{vecSouth:a,vecEast:n}=BF(t),o=Tle();o[0]=n[0],o[1]=n[1],o[2]=a[0],o[3]=a[1],tUe(o,o),i[0]=o[0],i[1]=o[1],i[4]=o[2],i[5]=o[3]}return Xn(i,i,[1/r,1/r,1]),i}function VGe(e,t,r,i){if(e){let a=xh();if(!t){let{vecSouth:n,vecEast:o}=BF(r);a[0]=o[0],a[1]=o[1],a[4]=n[0],a[5]=n[1]}return Xn(a,a,[i,i,1]),a}return r.pixelsToClipSpaceMatrix}function BF(e){let t=Math.cos(e.rollInRadians),r=Math.sin(e.rollInRadians),i=Math.cos(e.pitchInRadians),a=Math.cos(e.bearingInRadians),n=Math.sin(e.bearingInRadians),o=rw();o[0]=-a*i*r-n*t,o[1]=-n*i*r+a*t;let s=Ak(o);s<1e-9?Tk(o):wk(o,o,1/s);let l=rw();l[0]=a*i*t-n*r,l[1]=n*i*t+a*r;let u=Ak(l);return u<1e-9?Tk(l):wk(l,l,1/u),{vecEast:l,vecSouth:o}}function sp(e,t,r){var i,a;return o6(e.getElevation,t,r,(i=e.heightOffset)!=null?i:0,(a=e.heightAnchorGround)!=null?a:!0)}function qF(e,t,r,i){let a;i==null?(a=[e,t,0,1],OF(a,a,r)):(a=[e,t,i,1],Kn(a,a,r));let n=a[3];return{point:new qe(a[0]/n,a[1]/n),signedDistanceFromCamera:n,isOccluded:!1}}function Kle(e,t){return .5+e/t*.5}function UGe(e,t){return e.x>=-t[0]&&e.x<=t[0]&&e.y>=-t[1]&&e.y<=t[1]}function GGe(e,t,r,i,a,n,o,s,l,u,c,h,f){let d=r?e.textSizeData:e.iconSizeData,p=D2(d,t.transform.zoom),m=[256/t.width*2+1,256/t.height*2+1],g=r?e.text.dynamicLayoutVertexArray:e.icon.dynamicLayoutVertexArray;g.clear();let y=e.lineVertexArray,x=r?e.text.placedSymbolArray:e.icon.placedSymbolArray,b=t.transform.width/t.transform.height,_=!1;for(let A=0;AMath.abs(r.x-t.x)*i?{useVertical:!0}:(e===2?t.yr.x)?{needsFlipping:!0}:null}function Ise(e){let{projectionContext:t,pitchedLabelPlaneMatrixInverse:r,symbol:i,fontSize:a,flip:n,keepUpright:o,glyphOffsetArray:s,dynamicLayoutVertexArray:l,aspectRatio:u,rotateToLine:c}=e,h=a/24,f=i.lineOffsetX*h,d=i.lineOffsetY*h,p;if(i.numGlyphs>1){let m=i.glyphStartIndex+i.numGlyphs,g=i.lineStartIndex,y=i.lineStartIndex+i.lineLength,x=Jle(h,s,f,d,n,i,c,t);if(!x)return{notEnoughRoom:!0};let b=Zw(x.first.point.x,x.first.point.y,t,r),_=Zw(x.last.point.x,x.last.point.y,t,r);if(o&&!n){let A=Pse(i.writingMode,b,_,u);if(A)return A}p=[x.first];for(let A=i.glyphStartIndex+1;A0?b.point:Qle(t.tileAnchorPoint,x,g,1,t),A=Zw(g.x,g.y,t,r),T=Zw(_.x,_.y,t,r),M=Pse(i.writingMode,A,T,u);if(M)return M}let m=c6(h*s.getoffsetX(i.glyphStartIndex),f,d,n,i.segment,i.lineStartIndex,i.lineStartIndex+i.lineLength,t,c);if(!m||t.projectionCache.anyProjectionOccluded)return{notEnoughRoom:!0};p=[m]}for(let m of p)S2(l,m.point,m.angle);return{}}function Qle(e,t,r,i,a){let n=e.add(e.sub(t)._unit()),o=lp(n.x,n.y,a).point,s=r.sub(o);return r.add(s._mult(i/s.mag()))}function mF(e,t,r){let i=t.projectionCache;if(i.projections[e])return i.projections[e];let a=new qe(t.lineVertexArray.getx(e),t.lineVertexArray.gety(e)),n=lp(a.x,a.y,t);if(n.signedDistanceFromCamera>0)return i.projections[e]=n.point,i.anyProjectionOccluded||(i.anyProjectionOccluded=n.isOccluded),n.point;let o=e-r.direction,s=r.distanceFromAnchor===0?t.tileAnchorPoint:new qe(t.lineVertexArray.getx(o),t.lineVertexArray.gety(o)),l=r.absOffsetX-r.distanceFromAnchor+1;return Qle(s,a,r.previousVertex,l,t)}function lp(e,t,r){let i=e+r.translation[0],a=t+r.translation[1],n;return r.pitchWithMap?(n=qF(i,a,r.pitchedLabelPlaneMatrix,sp(r,i,a)),n.isOccluded=!1):(n=r.transform.projectTileCoordinates(i,a,r.unwrappedTileID,sp(r,i,a)),n.point.x=(n.point.x*.5+.5)*r.width,n.point.y=(-n.point.y*.5+.5)*r.height),n}function Zw(e,t,r,i){if(r.pitchWithMap){let a=[e,t,0,1];Kn(a,a,i);let n=a[0]/a[3],o=a[1]/a[3];return r.transform.projectTileCoordinates(n,o,r.unwrappedTileID,sp(r,n,o)).point}return{x:e/r.width*2-1,y:1-t/r.height*2}}function eue(e,t,r){return r.transform.projectTileCoordinates(e,t,r.unwrappedTileID,sp(r,e,t))}function vF(e,t,r){return e._unit()._perp()._mult(t*r)}function jGe(e,t,r,i,a,n,o,s,l){if(s.projectionCache.offsets[e])return s.projectionCache.offsets[e];let u=r.add(t);if(e+l.direction=a)return s.projectionCache.offsets[e]=u,u;let c=mF(e+l.direction,s,l),h=vF(c.sub(r),o,l.direction),f=r.add(h),d=c.add(h);return s.projectionCache.offsets[e]=yie(n,u,f,d)||u,s.projectionCache.offsets[e]}function c6(e,t,r,i,a,n,o,s,l){let u=i?e-t:e+t,c=u>0?1:-1,h=0;i&&(c*=-1,h=Math.PI),c<0&&(h+=Math.PI);let f=c>0?n+a:n+a+1,d;s.projectionCache.cachedAnchorPoint?d=s.projectionCache.cachedAnchorPoint:(d=lp(s.tileAnchorPoint.x,s.tileAnchorPoint.y,s).point,s.projectionCache.cachedAnchorPoint=d);let p=d,m=d,g,y,x=0,b=0,_=Math.abs(u),A=[],T;for(;x+b<=_;){if(f+=c,f=o)return null;x+=b,m=p,y=g;let P={absOffsetX:_,direction:c,distanceFromAnchor:x,previousVertex:m};if(p=mF(f,s,P),r===0)A.push(m),T=p.sub(m);else{let I,B=p.sub(m);I=B.mag()===0?vF(mF(f+c,s,P).sub(p),r,c):vF(B,r,c),y||(y=m.add(I)),g=jGe(f,I,p,n,o,y,r,s,P),A.push(y),T=g.sub(y)}b=T.mag()}let M=(_-x)/b,S=T._mult(M)._add(y||m),k=h+Math.atan2(p.y-m.y,p.x-m.x);return A.push(S),{point:S,angle:l?k:0,path:A}}function Bm(e,t){for(let r=0;r{let a=qF(i.x,i.y,r,sp(t,i.x,i.y)),n=t.transform.projectTileCoordinates(a.point.x,a.point.y,t.unwrappedTileID,sp(t,a.point.x,a.point.y));return n.point.x=(n.point.x*.5+.5)*t.width,n.point.y=(-n.point.y*.5+.5)*t.height,n})}function ZGe(e){let t=0,r=0,i=0,a=0;for(let n=0;nr&&(r=a,t=i));return e.slice(t,t+r)}function Rse(e,t,r,i,a){let{horizontalAlign:n,verticalAlign:o}=M2(e),s=-(n-.5)*t,l=-(o-.5)*r;return new qe(s+i[0]*a,l+i[1]*a)}function Bse(e,t,r,i,a,n){(!i||i.length===0)&&(i=[0,0,0,0]);let o=i[0]-100,s=i[1]-100,l=i[2]-100,u=i[3]-100;e.emplaceBack(+!!t,+!!r,a||0,n||0,o,s),e.emplaceBack(+!!t,+!!r,a||0,n||0,l,s),e.emplaceBack(+!!t,+!!r,a||0,n||0,l,u),e.emplaceBack(+!!t,+!!r,a||0,n||0,o,u)}function qse(e){if(e.opacity===0&&!e.placed)return 0;if(e.opacity===1&&e.placed)return 4294967295;let t=+!!e.placed,r=Math.floor(e.opacity*127);return r*JGe+t*QGe+r*eje+t*tje+r*512+t*256+r*2+t}function gF(e,t,r,i,a,n){if(a-i<=r)return;let o=i+a>>1;rue(e,t,o,i,a,n),gF(e,t,r,i,o-1,1-n),gF(e,t,r,o+1,a,1-n)}function rue(e,t,r,i,a,n){for(;a>i;){if(a-i>600){let u=a-i+1,c=r-i+1,h=Math.log(u),f=.5*Math.exp(2*h/3),d=.5*Math.sqrt(h*f*(u-f)/u)*(c-u/2<0?-1:1);rue(e,t,r,Math.max(i,Math.floor(r-c*f/u+d)),Math.min(a,Math.floor(r+(u-c)*f/u+d)),n)}let o=t[2*r+n],s=i,l=a;for(q2(e,t,i,r),t[2*a+n]>o&&q2(e,t,i,a);so;)l--}t[2*i+n]===o?q2(e,t,i,l):(l++,q2(e,t,l,a)),l<=r&&(i=l+1),r<=l&&(a=l-1)}}function q2(e,t,r,i){$C(e,r,i),$C(t,2*r,2*i),$C(t,2*r+1,2*i+1)}function $C(e,t,r){let i=e[t];e[t]=e[r],e[r]=i}function Nse(e,t,r,i){let a=e-r,n=t-i;return a*a+n*n}function mi(e,t){let r=/#pragma maplibre: ([\w]+) ([\w]+) ([\w]+) ([\w]+)/g,i=t.match(/in ([\w]+) ([\w]+)/g),a=e.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),n=t.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),o=n?n.concat(a):a,s=i?i.length:0,l={};return e=e.replace(r,(u,c,h,f,d)=>(l[d]=!0,c==="define"?` #ifndef HAS_UNIFORM_u_${d} in ${h} ${f} ${d}; #else @@ -84,9 +84,9 @@ uniform ${h} ${f} u_${d}; #else ${h} ${f} ${d} = u_${d}; #endif -`}),{fragmentSource:e,vertexSource:t,staticAttributes:i,staticUniforms:o}}function s6(e,t){if(!e.renderWorldCopies||e.lngRange)return;let r=t.lng-e.center.lng;t.lng+=r>180?-360:r<-180?360:0}function Bse(e){return Math.max(0,Math.floor(e))}function LF(e,t,r,i){if(i<0||i>=1)return Nse;let a=Math.floor(r),n=r-a;for(let o of e.zooms){let s=1<a;n++){let o=(r+i)/2;t(e,o)?i=o:r=o}return{lo:r,hi:i}}function i6(e,t){return LF(e.index,e.exaggeration,(e.near[0]+t*e.dx)/e.worldSize,(e.near[1]+t*e.dy)/e.worldSize)}function jw(e,t){return rue(i6(e,t),e.near[2]+t*e.dz)}function Vse({near:e,far:t},r,i,a){let n=t[0]-e[0],o=t[1]-e[1],s=t[2]-e[2];return((r-e[0])*n+(i-e[1])*o+(a-e[2])*s)/(n*n+o*o+s*s)}function nue(){$r("Map cannot fit within canvas with the given bounds, padding, and/or offset.")}function oue(e){if(e.useSlerp)if(e.k<1){let t=Ak(e.startEulerAngles.roll,e.startEulerAngles.pitch,e.startEulerAngles.bearing),r=Ak(e.endEulerAngles.roll,e.endEulerAngles.pitch,e.endEulerAngles.bearing),i=new Float64Array(4);zy(i,t,r,e.k);let a=xie(i);e.tr.setRoll(a.roll),e.tr.setPitch(a.pitch),e.tr.setBearing(a.bearing)}else e.tr.setRoll(e.endEulerAngles.roll),e.tr.setPitch(e.endEulerAngles.pitch),e.tr.setBearing(e.endEulerAngles.bearing);else e.tr.setRoll(pa.number(e.startEulerAngles.roll,e.endEulerAngles.roll,e.k)),e.tr.setPitch(pa.number(e.startEulerAngles.pitch,e.endEulerAngles.pitch,e.k)),e.tr.setBearing(pa.number(e.startEulerAngles.bearing,e.endEulerAngles.bearing,e.k))}function sue(e,t,r,i,a){let n=a.padding,o=Bu(a.worldSize,r.getNorthWest()),s=Bu(a.worldSize,r.getNorthEast()),l=Bu(a.worldSize,r.getSouthEast()),u=Bu(a.worldSize,r.getSouthWest()),c=ua(-i),h=o.rotate(c),f=s.rotate(c),d=l.rotate(c),p=u.rotate(c),m=new Be(Math.max(h.x,f.x,p.x,d.x),Math.max(h.y,f.y,p.y,d.y)),g=new Be(Math.min(h.x,f.x,p.x,d.x),Math.min(h.y,f.y,p.y,d.y)),y=m.sub(g),x=a.width-(n.left+n.right+t.left+t.right),w=a.height-(n.top+n.bottom+t.top+t.bottom),_=x/y.x,A=w/y.y;if(A<0||_<0){nue();return}let T=Math.min(Wn(a.scale*Math.min(_,A)),e.maxZoom),M=Be.convert(e.offset),S=(t.left-t.right)/2,k=(t.top-t.bottom)/2,P=new Be(S,k).rotate(ua(i)),I=M.add(P).mult(a.scale/Po(T));return{center:Fm(a.worldSize,o.add(l).div(2).sub(I)),zoom:T,bearing:i}}function uue(e){let t=Om(e.worldSize,e.center.lat);return 2*Math.PI*t}function fje(e,t,r){let i=Pn(t),a=Pn(r),n=Wa(i,a),o=Math.acos(n),s=uue(e);return o/(2*Math.PI)*s}function dje(e,t){return[Nf(e*Math.PI*2+Math.PI,Math.PI*2),2*Math.atan(Math.exp(Math.PI-t*Math.PI*2))-Math.PI*.5]}function pje(e,t){let r=Math.cos(t),i=new Float64Array(3);return i[0]=Math.sin(e)*r,i[1]=Math.sin(t),i[2]=Math.cos(e)*r,i}function Wf(e,t,r,i,a){let n=1/(1<1e-6){let i=e[0]/r,a=e[2]/r,n=Math.acos(a),o=(i>0?n:-n)/Math.PI*180;return new ar(Js(o,-180,180),t)}return new ar(0,t)}function mje(e,t){return K4(Gf(),-e.lng,-e.lat,t)}function vje(e){let t=e[0],r=e[1],i=e[2],a=e[3];return{lng:-Math.atan2(2*(a*t+r*i),1-2*(t*t+r*r))*180/Math.PI,lat:-Math.asin(Ar(2*(a*r-i*t),-1,1))*180/Math.PI,bearing:Math.atan2(2*(a*i+t*r),1-2*(r*r+i*i))*180/Math.PI}}function jse(e,t){let r=e.cameraPosition,i=$l(r);if(i<=1)return e.screenPointToLocation(t);let a=wi();Fo(a,r);let n=e.getRayDirectionFromPixel(t),o=-Wa(n,a),s=wi();o2(s,n,a,o);let l=$l(s);if(l<1e-9)return e.screenPointToLocation(t);let u=Math.atan2(l,o),c=Math.asin(1/i)*.9;if(u=0?90:-90,s=e.locationToScreenPoint(new ar(0,o)),l=t.x-s.x,u=t.y-s.y,c=l*l+u*u,h=Ar(1-(Lu-Math.abs(n))/12,0,1),f=h*h*(3-2*h),d=Nf(i-a+180,360)-180,p=0;if(f>0&&r){let m=(l*r.y-u*r.x)/Math.max(c,400);p=(o>0?1:-1)*m*180/Math.PI}return a+(1-f)*d+f*p}function _je(e){let t=wi();return t[0]=e[0]*-e[3],t[1]=e[1]*-e[3],t[2]=e[2]*-e[3],{center:t,radius:Math.sqrt(1-e[3]*e[3])}}function xje(e,t,r){let i=wi();Cc(i,r,e);let a=wi();return o2(a,e,i,t/s2(i)),a}function c6(e){return Math.cos(e*Math.PI/180)}function Kn(e,t){let r=c6(e),i=c6(t);return Wn(i/r)}function bje(e,t){return 360/uue({worldSize:e,center:{lat:t}})}function wje(e,t){let r=e.rotate(t.bearingInRadians),i=t.zoom+Kn(t.center.lat,0),a=Yd(1/c6(t.center.lat),1/c6(Math.min(Math.abs(t.center.lat),60)),h2(i,7,3,0,1)),n=bje(t.worldSize,t.center.lat);return new ar(t.center.lng-r.x*n*a,Ar(t.center.lat+r.y*n,-Lu,Lu))}function VC(e){let t=.5*e,r=Math.sin(t),i=Math.cos(t);return Math.log(r+i)-Math.log(i-r)}function $se(e,t,r,i){let a=e.lat+r*i;if(Math.abs(r)>1){let n=e.lat+r,o=(Math.sign(n)===Math.sign(e.lat)?Math.abs(e.lat):-Math.abs(e.lat))*Math.PI/180,s=Math.abs(e.lat+r)*Math.PI/180,l=VC(o+i*(s-o)),u=VC(o),c=VC(s),h=(l-u)/(c-u),f=e.lng+t*h;return new ar(f,a)}{let n=e.lng+t*i;return new ar(n,a)}}function $w(e,t,r=1){let i=Wa(e,t),a=r*r,n=wi(),o=wi();la(o,t,i),Cc(n,e,o);let s=a-Wa(n,n);if(s<0)return null;let l=Wa(e,e)-a,u=-i+(i<0?1:-1)*Math.sqrt(s),c=l/u,h=u,f=Math.max(c,h);return f<0?null:{tMin:Math.min(c,h),tMax:f}}function hue(e,t){let r=t*.01569612305760477,i=Ar((e-r)/(9*r),0,1);return i*i*(3-2*i)}function a6(e,t,r){let i=e-t;return i<0?-i:Math.max(0,i-r)}function GC(e,t,r,i,a){let n=e-r,o;return o=n<0?Math.min(-n,1+n-a):n>a?Math.min(Math.max(n-a,0),1-n):0,Math.max(o,a6(t,i,a))}function Hse(e,t){let r=1/0,i=-1/0;for(let a of t){let n=Wa(e,a);r=Math.min(r,n),i=Math.max(i,n)}return{min:r,max:i}}function pue(e,t){let r=wi();o2(r,e.origin,e.direction,t);let i=$l(r),a=wi();la(a,r,1/i);let n=Z2(a),o=bi.fromLngLat(n),s=new bi(o.x,Ar(o.y,0,.999999999)),l=LF(e.index,e.exaggeration,s.x,s.y),u=Math.abs(n.lat)>85.051129?0:l.elevation;return{sample:Gr(nr({},l),{elevation:u}),radius:i,mercator:s}}function Yse(e,t){let{sample:r,radius:i}=pue(e,t);return rue(r,(i-1)*Lo)}function Wse(e,t){let r=Pn(e);return la(r,r,1+t/Lo)}function Xse(e,t,r){let i=Y4(wi(),r,e);return Wa(i,t)}function Mje(e,t,r){let i={constrainOverride:t};if(Array.isArray(e)){let a=new Gse({type:e},r);return{projection:a,transform:new Kse(i),cameraHelper:new Jse(a)}}switch(e){case"mercator":return{projection:new hF,transform:new l6(i),cameraHelper:new u6};case"globe":{let a=new Gse({type:["interpolate",["linear"],["zoom"],11,"vertical-perspective",12,"mercator"]},{});return{projection:a,transform:new Kse(i),cameraHelper:new Jse(a)}}case"vertical-perspective":return{projection:new lue,transform:new fue(i),cameraHelper:new vue};default:return $r(`Unknown projection name: ${e}. Falling back to mercator projection.`),{projection:new hF,transform:new l6(i),cameraHelper:new u6}}}function Lje(e,t){for(let[r,i]of Object.entries(p6)){let a=e.getUniformBlockIndex(t,r);a!==e.INVALID_INDEX&&e.uniformBlockBinding(t,a,i)}}function zF(e){let t={},r=0;for(let{name:i,type:a}of e){let[n,o]=zje[a];r=Math.ceil(r/o)*o,t[i]=r,r+=n}return{offsets:t,contentWords:r,sizeWords:Math.ceil(r/4)*4}}function yue(e){return new RF(e,p6.ProjectionUBO,gue)}function Qse(e,t){let r=e.pending;r.set(t.mainMatrix,zm.u_projection_matrix),r.set(t.fallbackMatrix,zm.u_projection_fallback_matrix),r.set(t.tileMercatorCoords,zm.u_projection_tile_mercator_coords),r.set(t.clippingPlane,zm.u_projection_clipping_plane),r[zm.u_projection_transition]=t.projectionTransition,e.pendingWords[zm.u_projection_clip_antimeridian]=+!!t.clipAntimeridian,e.upload()}function Rje(e,t){var n;if(!t){e.projectionUniformBuffer.bind();return}let r=t.uniformBufferKey;if(r===void 0){Qse(e.projectionUniformBuffer,t);return}let i=e.keyedProjectionUniformBuffers.get(r);if(i){i.bind();return}let a=(n=e.freeProjectionUniformBuffers.pop())!=null?n:yue(e);e.keyedProjectionUniformBuffers.set(r,a),Qse(a,t)}function Bje(e){e.freeProjectionUniformBuffers.push(...e.keyedProjectionUniformBuffers.values()),e.keyedProjectionUniformBuffers.clear()}function qje(e){e.projectionUniformBuffer.destroy();for(let t of e.keyedProjectionUniformBuffers.values())t.destroy();for(let t of e.freeProjectionUniformBuffers)t.destroy()}function Oje(e){return new RF(e,p6.TerrainUBO,_ue)}function Nje(e,t){let r=e.pending;r.set(t.u_terrain_matrix,Hw.u_terrain_matrix),r.set(t.u_terrain_unpack,Hw.u_terrain_unpack),r[Hw.u_terrain_dim]=t.u_terrain_dim,r[Hw.u_terrain_exaggeration]=t.u_terrain_exaggeration,e.upload()}function jC(e){let t=[];for(let r of e){if(r===null)continue;let i=r.split(" ");t.push(i.pop())}return t}function Vje(e,t){let r=new Set([e.INT,e.INT_VEC2,e.INT_VEC3,e.INT_VEC4,e.UNSIGNED_INT,e.UNSIGNED_INT_VEC2,e.UNSIGNED_INT_VEC3,e.UNSIGNED_INT_VEC4]),i=new Set,a=e.getProgramParameter(t,e.ACTIVE_ATTRIBUTES);for(let n=0;n>16,s>>16],u_pixel_coord_lower:[o&65535,s&65535]}}function Gje(e,t,r,i){let a=r.patternAtlas.getPattern(e.from.toString()),n=r.patternAtlas.getPattern(e.to.toString()),{width:o,height:s}=r.patternAtlas.getPixelSize(),l=2**i.tileID.overscaledZ,u=i.tileSize*2**r.transform.tileZoom/l,c=u*(i.tileID.canonical.x+i.tileID.wrap*l),h=u*i.tileID.canonical.y;return{u_image:0,u_pattern_tl_a:a.tl,u_pattern_br_a:a.br,u_pattern_tl_b:n.tl,u_pattern_br_b:n.br,u_texsize:[o,s],u_mix:t.t,u_pattern_size_a:a.displaySize,u_pattern_size_b:n.displaySize,u_scale_a:t.fromScale,u_scale_b:t.toScale,u_tile_units_to_pixels:1/vs(i,1,r.transform.tileZoom),u_pixel_coord_upper:[c>>16,h>>16],u_pixel_coord_lower:[c&65535,h&65535]}}function u$e(e,t){let r=2**t.canonical.z,i=t.canonical.y;return[new bi(0,i/r).toLngLat().lat,new bi(0,(i+1)/r).toLngLat().lat]}function BF(e,t){return 1/vs(e,1,t.tileZoom)}function Mue(e,t,r){return xh(e.transform,t,r.paint.get("line-translate"),r.paint.get("line-translate-anchor"))}function _He(e){return new RF(e,p6.FrameUBO,Eue)}function xHe(e,t){let r=e.pending,{transform:i}=t,a=t.context.gl;r[Qs.u_units_to_pixels]=1/i.pixelsToGLUnits[0],r[Qs.u_units_to_pixels+1]=1/i.pixelsToGLUnits[1],r[Qs.u_world_size]=a.drawingBufferWidth,r[Qs.u_world_size+1]=a.drawingBufferHeight,r[Qs.u_camera_to_center_distance]=i.cameraToCenterDistance,r[Qs.u_symbol_fade_change]=t.options.fadeDuration?t.symbolFadeChange:1,r[Qs.u_aspect_ratio]=i.width/i.height,r[Qs.u_device_pixel_ratio]=t.pixelRatio,r[Qs.u_viewport_size]=i.width,r[Qs.u_viewport_size+1]=i.height,r[Qs.u_pixel_extrude_scale]=1/i.width,r[Qs.u_pixel_extrude_scale+1]=1/i.height,r[Qs.u_pitch]=i.pitch/360*2*Math.PI,e.upload()}function wHe(e,t,r){var a;let i=(a=t==null?void 0:t.transitionState)!=null?a:0;return{currentPass:"offscreen",currentLayer:0,opaquePassCutoff:1/0,depthRangeFor3D:[0,1],isRenderingToTexture:!1,transform:e,terrain:r,projectionTransition:i,isRenderingGlobe:i>0}}function co(e,t,r={}){var a;let i=e.transform.getProjectionData({overscaledTileID:t,aligned:r.aligned,applyGlobeMatrix:!e.isRenderingToTexture,applyTerrainMatrix:(a=r.applyTerrainMatrix)!=null?a:!0});return e.isRenderingToTexture||(i.uniformBufferKey=r.aligned?`${t.key}/aligned`:t.key),i}function Xo(e,t){var r,i;return e.isRenderingToTexture?null:(i=(r=e.terrain)==null?void 0:r.getTerrainData(t))!=null?i:null}function ile(e,t,r,i,a,n){let o=e.context,s=o.gl,l=e.useProgram("collisionBox"),u=[],c=0,h=0;for(let y of i){let x=t.getTile(y).getBucket(r);if(!x)continue;let w=a?x.textCollisionBox:x.iconCollisionBox,_=x.collisionCircleArray;_.length>0&&(u.push({circleArray:_,circleOffset:h,coord:y}),c+=_.length/4,h=c),w&&l.draw(o,s.LINES,Jr.disabled,Ei.disabled,e.colorModeForRenderPass(),Ai.disabled,null,Xo(n,y),co(n,y),r.id,w.layoutVertexBuffer,w.indexBuffer,w.segments,null,e.transform.zoom,null,null,w.collisionVertexBuffer)}if(!a||!u.length)return;let f=e.useProgram("collisionCircle"),d=new fne;d.resize(c*4),d._trim();let p=0;for(let y of u)for(let x=0;xc.getElevation(p,S,k):void 0;kHe(g,h,f,l,u,_,T,x,A,xh(u,m,o,s),p.toUnwrapped(),M,r.layout.get("symbol-height-anchor")==="ground")}}}function EHe(e,t,r,i,a,n){let o=t.tileAnchorPoint.add(new Be(t.translation[0],t.translation[1]));if(t.pitchWithMap){let s=i.mult(n);r||(s=s.rotate(-a));let l=o.add(s);return FF(l.x,l.y,t.pitchedLabelPlaneMatrix,op(t,l.x,l.y)).point}if(r){let s=sp(t.tileAnchorPoint.x+1,t.tileAnchorPoint.y,t).point.sub(e),l=Math.atan(s.y/s.x)+(s.x<0?Math.PI:0);return e.add(i.rotate(l))}return e.add(i)}function kHe(e,t,r,i,a,n,o,s,l,u,c,h,f){let d=e.text.placedSymbolArray,p=e.text.dynamicLayoutVertexArray,m=e.icon.dynamicLayoutVertexArray,g={};p.clear();for(let y=0;y=0&&(g[x.associatedIconIndex]={shiftedAnchor:$,angle:j})}}if(l){m.clear();let y=e.icon.placedSymbolArray;for(let x=0;xe.style.map.terrain.getElevation(L,ie,we):void 0;LGe(O,e,a,te,Ge,y,u,r.layout.get("text-rotation-alignment")==="map",L.toUnwrapped(),m.width,m.height,ce,tt)}let qe=a&&M||He,se=y?te:e.transform.clipSpaceToPixelsMatrix,je=x||qe?THe:se,Re=j&&r.paint.get(a?"text-halo-width":"icon-halo-width").constantOr(1)!==0,Ve;Ve=j?O.iconsInText?D$e(H.kind,le,w,y,x,qe,e,je,re,ce,_e,De,k,ke,Oe):Sue(H.kind,le,w,y,x,qe,e,je,re,ce,a,_e,Re,k,ke,Oe):Due(H.kind,le,w,y,x,qe,e,je,re,ce,a,_e,k,ke,Oe);let ge={program:W,buffers:V,uniformValues:Ve,projectionData:me,atlasTexture:de,atlasTextureIcon:Q,atlasInterpolation:Ce,atlasInterpolationIcon:ae,isSDF:j,hasHalo:Re};if(_&&O.canOverlap){A=!0;let Ge=V.segments.get();for(let tt of Ge)S.push({segments:new ma([tt]),sortKey:tt.sortKey,state:ge,terrainData:pe})}else S.push({segments:V.segments,sortKey:0,state:ge,terrainData:pe})}A&&S.sort((L,z)=>L.sortKey-z.sortKey);let P=(B=r.paint.get(a?"text-halo-width":"icon-halo-width").constantOr(null))!=null?B:1/0,I=r.layout.get("text-letter-spacing").constantOr(0)*24<0||P>1;for(let L of S){let z=L.state;d.activeTexture.set(p.TEXTURE0),z.atlasTexture.bind(z.atlasInterpolation,p.CLAMP_TO_EDGE),z.atlasTextureIcon&&(d.activeTexture.set(p.TEXTURE1),z.atlasTextureIcon&&z.atlasTextureIcon.bind(z.atlasInterpolationIcon,p.CLAMP_TO_EDGE));let O=z.isSDF&&z.hasHalo;if(O){let V=z.uniformValues;V.u_is_halo=1,I&&(V.u_is_plain=0,nle(z.buffers,L.segments,r,e,z.program,T,c,h,V,z.projectionData,L.terrainData),V.u_is_halo=0,V.u_is_plain=1)}nle(z.buffers,L.segments,r,e,z.program,T,c,h,z.uniformValues,z.projectionData,L.terrainData),O&&!I&&(z.uniformValues.u_is_halo=0)}}function nle(e,t,r,i,a,n,o,s,l,u,c){let h=i.context,f=h.gl;a.draw(h,f.TRIANGLES,n,o,s,Ai.backCCW,l,c,u,r.id,e.layoutVertexBuffer,e.indexBuffer,t,r.paint,i.transform.zoom,e.programConfigurations.get(r.id),e.dynamicLayoutVertexBuffer,e.opacityVertexBuffer)}function FHe(e,t,r,i,a){if(a.currentPass!=="translucent")return;let n=r.paint.get("circle-opacity"),o=r.paint.get("circle-stroke-width"),s=r.paint.get("circle-stroke-opacity"),l=!r.layout.get("circle-sort-key").isConstant();if(n.constantOr(1)===0&&(o.constantOr(1)===0||s.constantOr(1)===0))return;let u=e.context,c=u.gl,h=e.transform,f=e.getDepthModeForSublayer(0,Jr.ReadOnly),d=Ei.disabled,p=e.colorModeForRenderPass(),m=[],g=h.getCircleRadiusCorrection();for(let y of i){let x=t.getTile(y),w=x.getBucket(r);if(!w)continue;let _=r.paint.get("circle-translate"),A=r.paint.get("circle-translate-anchor"),T=xh(h,x,_,A),M=w.programConfigurations.get(r.id),S=e.useProgram("circle",M),k=w.layoutVertexBuffer,P=w.indexBuffer,I=Xo(a,y),B={programConfiguration:M,program:S,layoutVertexBuffer:k,indexBuffer:P,uniformValues:t$e(e,x,r,T,g),terrainData:I,projectionData:co(a,y)};if(l){let L=w.segments.get();for(let z of L)m.push({segments:new ma([z]),sortKey:z.sortKey,state:B})}else m.push({segments:w.segments,sortKey:0,state:B})}l&&m.sort((y,x)=>y.sortKey-x.sortKey);for(let y of m){let{programConfiguration:x,program:w,layoutVertexBuffer:_,indexBuffer:A,uniformValues:T,terrainData:M,projectionData:S}=y.state,k=y.segments;w.draw(u,c.TRIANGLES,f,d,p,Ai.backCCW,T,M,S,r.id,_,A,k,r.paint,e.transform.zoom,x)}}function PHe(e,t,r,i,a){if(r.paint.get("heatmap-opacity")===0)return;let n=e.context;if(e.style.map.terrain){for(let o of i){let s=t.getTile(o);t.hasRenderableParent(o)||(a.currentPass==="offscreen"?zHe(e,s,r,o,a):a.currentPass==="translucent"&&RHe(e,r,o,a))}n.viewport.set([0,0,e.width,e.height])}else a.currentPass==="offscreen"?IHe(e,t,r,i,a):a.currentPass==="translucent"&&LHe(e,r)}function IHe(e,t,r,i,a){let n=e.context,o=n.gl,s=e.transform,l=Ei.disabled,u=new Oa([o.ONE,o.ONE],Dr.transparent,[!0,!0,!0,!0]);BHe(n,e,r),n.clear({color:Dr.transparent});for(let c of i){if(t.hasRenderableParent(c))continue;let h=t.getTile(c),f=h.getBucket(r);if(!f)continue;let d=f.programConfigurations.get(r.id),p=e.useProgram("heatmap",d),m=co(a,c,{applyTerrainMatrix:!1}),g=s.getCircleRadiusCorrection();p.draw(n,o.TRIANGLES,Jr.disabled,l,u,Ai.backCCW,Aue(h,s.zoom,r.paint.get("heatmap-intensity"),g),null,m,r.id,f.layoutVertexBuffer,f.indexBuffer,f.segments,r.paint,s.zoom,d)}n.viewport.set([0,0,e.width,e.height])}function LHe(e,t){let r=e.context,i=r.gl;r.setColorMode(e.colorModeForRenderPass());let a=t.heatmapFbos.get(w2);a&&(r.activeTexture.set(i.TEXTURE0),i.bindTexture(i.TEXTURE_2D,a.colorAttachment.get()),r.activeTexture.set(i.TEXTURE1),Cue(r,t).bind(i.LINEAR,i.CLAMP_TO_EDGE),e.useProgram("heatmapTexture").draw(r,i.TRIANGLES,Jr.disabled,Ei.disabled,e.colorModeForRenderPass(),Ai.disabled,Tue(e,t,0,1),null,null,t.id,e.viewportBuffer,e.quadTriangleIndexBuffer,e.viewportSegments,t.paint,e.transform.zoom))}function zHe(e,t,r,i,a){let n=e.context,o=n.gl,s=Ei.disabled,l=new Oa([o.ONE,o.ONE],Dr.transparent,[!0,!0,!0,!0]),u=t.getBucket(r);if(!u)return;let c=i.key,h=r.heatmapFbos.get(c);h||(h=kue(n,t.tileSize,t.tileSize),r.heatmapFbos.set(c,h)),n.bindFramebuffer.set(h.framebuffer),n.viewport.set([0,0,t.tileSize,t.tileSize]),n.clear({color:Dr.transparent});let f=u.programConfigurations.get(r.id),d=e.useProgram("heatmap",f,!a.isRenderingGlobe),p=co(a,t.tileID),m=Xo(a,i);d.draw(n,o.TRIANGLES,Jr.disabled,s,l,Ai.disabled,Aue(t,e.transform.zoom,r.paint.get("heatmap-intensity"),1),m,p,r.id,u.layoutVertexBuffer,u.indexBuffer,u.segments,r.paint,e.transform.zoom,f)}function RHe(e,t,r,i){let a=e.context,n=a.gl,o=e.transform;a.setColorMode(e.colorModeForRenderPass());let s=Cue(a,t),l=r.key,u=t.heatmapFbos.get(l);if(!u)return;a.activeTexture.set(n.TEXTURE0),n.bindTexture(n.TEXTURE_2D,u.colorAttachment.get()),a.activeTexture.set(n.TEXTURE1),s.bind(n.LINEAR,n.CLAMP_TO_EDGE);let c=co(i,r,{applyTerrainMatrix:i.isRenderingGlobe});e.useProgram("heatmapTexture").draw(a,n.TRIANGLES,Jr.disabled,Ei.disabled,e.colorModeForRenderPass(),Ai.disabled,Tue(e,t,0,1),null,c,t.id,e.rasterBoundsBuffer,e.quadTriangleIndexBuffer,e.rasterBoundsSegments,t.paint,o.zoom),u.destroy(),t.heatmapFbos.delete(l)}function BHe(e,t,r){let i=e.gl;e.activeTexture.set(i.TEXTURE1),e.viewport.set([0,0,t.width/4,t.height/4]);let a=r.heatmapFbos.get(w2);a?(i.bindTexture(i.TEXTURE_2D,a.colorAttachment.get()),e.bindFramebuffer.set(a.framebuffer)):(a=kue(e,t.width/4,t.height/4),r.heatmapFbos.set(w2,a))}function kue(e,t,r){let i=e.gl,a=i.createTexture();i.bindTexture(i.TEXTURE_2D,a),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_WRAP_S,i.CLAMP_TO_EDGE),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_WRAP_T,i.CLAMP_TO_EDGE),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_MIN_FILTER,i.LINEAR),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_MAG_FILTER,i.LINEAR),i.texStorage2D(i.TEXTURE_2D,1,i.RGBA16F,t,r);let n=e.createFramebuffer(t,r,!1,!1);return n.colorAttachment.set(a),n}function Cue(e,t){return t.colorRampTexture||(t.colorRampTexture=new cn(e,t.colorRamp,e.gl.RGBA)),t.colorRampTexture}function Fue(e,t,r){let i=e.context,a=i.bindFramebuffer.get(),n=i.viewport.get(),[,,o,s]=n;return qHe(e,o,s),i.viewport.set([0,0,o,s]),i.clear({color:Dr.transparent,depth:1,stencil:0}),e.currentStencilSource=void 0,e.renderTileClippingMasks(t,r),{compositeTarget:a,compositeViewport:n}}function qHe(e,t,r){let i=e.context.gl;if(!e.layerOpacityFbo){let n=e.context.createFramebuffer(t,r,!0,!0),o=i.createTexture();i.bindTexture(i.TEXTURE_2D,o),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_WRAP_S,i.CLAMP_TO_EDGE),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_WRAP_T,i.CLAMP_TO_EDGE),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_MIN_FILTER,i.LINEAR),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_MAG_FILTER,i.LINEAR),i.texImage2D(i.TEXTURE_2D,0,i.RGBA,t,r,0,i.RGBA,i.UNSIGNED_BYTE,null),n.colorAttachment.set(o),n.depthAttachment.set(e.context.createRenderbuffer(i.DEPTH_STENCIL,t,r)),e.layerOpacityFbo=n,e.context.bindFramebuffer.set(e.layerOpacityFbo.framebuffer);return}if(e.layerOpacityFbo.width===t&&e.layerOpacityFbo.height===r){e.context.bindFramebuffer.set(e.layerOpacityFbo.framebuffer);return}let a=e.layerOpacityFbo;i.bindTexture(i.TEXTURE_2D,a.colorAttachment.get()),i.texImage2D(i.TEXTURE_2D,0,i.RGBA,t,r,0,i.RGBA,i.UNSIGNED_BYTE,null),e.context.bindRenderbuffer.set(a.depthAttachment.get()),i.renderbufferStorage(i.RENDERBUFFER,i.DEPTH_STENCIL,t,r),e.context.bindRenderbuffer.set(null),a.width=t,a.height=r,e.context.bindFramebuffer.set(a.framebuffer)}function Pue(e,t,r,i){let a=e.context,n=a.gl;a.bindFramebuffer.set(r.compositeTarget),a.viewport.set(r.compositeViewport),a.activeTexture.set(n.TEXTURE0),n.bindTexture(n.TEXTURE_2D,e.layerOpacityFbo.colorAttachment.get()),e.useProgram("layerOpacity").draw(a,n.TRIANGLES,Jr.disabled,Ei.disabled,e.colorModeForRenderPass(),Ai.disabled,w$e(t,0),null,null,i.id,e.viewportBuffer,e.quadTriangleIndexBuffer,e.viewportSegments,i.paint,e.transform.zoom),e.currentStencilSource=void 0}function Iue(e,t,r,i,a,n,o,s){let l=256;if(a.stepInterpolant){let u=t.getSource().maxzoom,c=o.canonical.z===u?Math.ceil(1<e.options.anisotropicFilterPitch&&p.texParameterf(p.TEXTURE_2D,d.extTextureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT,d.extTextureFilterAnisotropicMax);let z=Xo(c,M),O=co(c,M,{aligned:x}),V=JUe(B,I,L.fadeMix,r,s,l),$=h!=null?h:g.getMeshFromTileID(d,M.canonical,n,o,"raster"),j=a?a[M.overscaledZ]:Ei.disabled;m.draw(d,p.TRIANGLES,S,j,y,u?Ai.frontCCW:Ai.backCCW,V,z,O,r.id,$.vertexBuffer,$.indexBuffer,$.segments)}}function XHe(e,t,r,i){let a={parentTile:null,parentScaleBy:1,parentTopLeft:[0,0],fadeValues:{tileOpacity:1,parentTileOpacity:1,fadeMix:{opacity:1,mix:0}}};if(r===0||i)return a;if(e.fadingParentID){let n=t.getLoadedTile(e.fadingParentID);if(!n)return a;let o=2**(n.tileID.overscaledZ-e.tileID.overscaledZ);return{parentTile:n,parentScaleBy:o,parentTopLeft:[e.tileID.canonical.x*o%1,e.tileID.canonical.y*o%1],fadeValues:KHe(e,n,r)}}return e.selfFading?{parentTile:null,parentScaleBy:1,parentTopLeft:[0,0],fadeValues:JHe(e,r)}:a}function KHe(e,t,r){let i=ki(),a=(i-e.timeAdded)/r,n=(i-t.timeAdded)/r,o=e.fadingDirection===1,s=Ar(a,0,1),l=Ar(1-n,0,1),u=o?s:l;return{tileOpacity:u,parentTileOpacity:o?l:s,fadeMix:{opacity:1,mix:1-u}}}function JHe(e,t){let r=(ki()-e.timeAdded)/t,i=Ar(r,0,1);return{tileOpacity:i,fadeMix:{opacity:i,mix:0}}}function QHe(e,t,r,i,a){let n=r.paint.get("background-color"),o=r.paint.get("background-opacity");if(o===0)return;let s=e.context,l=s.gl,u=e.style.projection,c=e.transform,h=c.tileSize,f=r.paint.get("background-pattern");if(e.isPatternMissing(f))return;let d=!f&&n.a===1&&o===1&&e.opaquePassEnabledForLayer()?"opaque":"translucent";if(a.currentPass!==d)return;let p=Ei.disabled,m=e.getDepthModeForSublayer(0,d==="opaque"?Jr.ReadWrite:Jr.ReadOnly),g=e.colorModeForRenderPass(),y=e.useProgram(f?"backgroundPattern":"background"),x=i||Vm(c,{tileSize:h,terrain:e.style.map.terrain});f&&(s.activeTexture.set(l.TEXTURE0),e.patternAtlas.bind(e.context));let w=r.getCrossfadeParameters();for(let _ of x){let A=co(a,_),T=f?C$e(o,e,f,{tileID:_,tileSize:h},w):k$e(o,n),M=Xo(a,_),S=u.getMeshFromTileID(s,_.canonical,!1,!0,"raster");y.draw(s,l.TRIANGLES,m,p,g,Ai.backCCW,T,M,A,r.id,S.vertexBuffer,S.indexBuffer,S.segments)}}function nZe(e){let t=e.transform.padding;lle(e,e.transform.height-(t.top||0),3,eZe),lle(e,t.bottom||0,3,tZe),ule(e,t.left||0,3,rZe),ule(e,e.transform.width-(t.right||0),3,iZe);let r=e.transform.centerPoint;oZe(e,r.x,e.transform.height-r.y,aZe)}function oZe(e,t,r,i){h6(e,t-1,r-10,2,20,i),h6(e,t-10,r-1,20,2,i)}function lle(e,t,r,i){h6(e,0,t+r/2,e.transform.width,r,i)}function ule(e,t,r,i){h6(e,t-r/2,0,r,e.transform.height,i)}function h6(e,t,r,i,a,n){let o=e.context,s=o.gl;s.enable(s.SCISSOR_TEST),s.scissor(t*e.pixelRatio,r*e.pixelRatio,i*e.pixelRatio,a*e.pixelRatio),o.clear({color:n}),s.disable(s.SCISSOR_TEST)}function sZe(e,t,r,i){for(let a of r)lZe(e,t,a,i)}function lZe(e,t,r,i){var x;let a=e.context,n=a.gl,o=e.useProgram("debug"),s=Jr.disabled,l=Ei.disabled,u=e.colorModeForRenderPass(),c="$debug",h=Xo(i,r);a.activeTexture.set(n.TEXTURE0);let f=((x=t.getTileByID(r.key).latestRawTileData)==null?void 0:x.byteLength)||0,d=Math.floor(f/1024),p=t.getTile(r).tileSize,m=512/Math.min(p,512)*(r.overscaledZ/e.transform.zoom)*.5,g=r.canonical.toString();r.overscaledZ!==r.canonical.z&&(g+=` => ${r.overscaledZ}`),uZe(e,`${g} ${d}kB`);let y=co(i,r);o.draw(a,n.TRIANGLES,s,l,Oa.alphaBlended,Ai.disabled,ele(Dr.transparent,m),null,y,c,e.debugBuffer,e.quadTriangleIndexBuffer,e.debugSegments),o.draw(a,n.LINE_STRIP,s,l,u,Ai.disabled,ele(Dr.red),h,y,c,e.debugBuffer,e.tileBorderIndexBuffer,e.debugSegments)}function uZe(e,t){e.initDebugOverlayCanvas();let r=e.debugOverlayCanvas,i=e.context.gl,a=e.debugOverlayCanvas.getContext("2d");a.clearRect(0,0,r.width,r.height),a.shadowColor="white",a.shadowBlur=2,a.lineWidth=1.5,a.strokeStyle="white",a.textBaseline="top",a.font="bold 36px Open Sans, sans-serif",a.fillText(t,5,5),a.strokeText(t,5,5),e.debugOverlayTexture.update(r),e.debugOverlayTexture.bind(i.LINEAR,i.CLAMP_TO_EDGE)}function cZe(e,t){let r=null,i=Object.values(e._layers).flatMap(s=>s.source&&!s.isHidden(t)?[e.tileManagers[s.source]]:[]),a=i.filter(s=>s.getSource().type==="vector"),n=i.filter(s=>s.getSource().type!=="vector"),o=s=>{(!r||r.getSource().maxzoom180?-360:r<-180?360:0}function Use(e){return Math.max(0,Math.floor(e))}function VF(e,t,r,i){if(i<0||i>=1)return $se;let a=Math.floor(r),n=r-a;for(let o of e.zooms){let s=1<a;n++){let o=(r+i)/2;t(e,o)?i=o:r=o}return{lo:r,hi:i}}function s6(e,t){return VF(e.index,e.exaggeration,(e.near[0]+t*e.dx)/e.worldSize,(e.near[1]+t*e.dy)/e.worldSize)}function Yw(e,t){return sue(s6(e,t),e.near[2]+t*e.dz)}function Hse({near:e,far:t},r,i,a){let n=t[0]-e[0],o=t[1]-e[1],s=t[2]-e[2];return((r-e[0])*n+(i-e[1])*o+(a-e[2])*s)/(n*n+o*o+s*s)}function cue(){Xr("Map cannot fit within canvas with the given bounds, padding, and/or offset.")}function hue(e){if(e.useSlerp)if(e.k<1){let t=Ck(e.startEulerAngles.roll,e.startEulerAngles.pitch,e.startEulerAngles.bearing),r=Ck(e.endEulerAngles.roll,e.endEulerAngles.pitch,e.endEulerAngles.bearing),i=new Float64Array(4);Ly(i,t,r,e.k);let a=Mie(i);e.tr.setRoll(a.roll),e.tr.setPitch(a.pitch),e.tr.setBearing(a.bearing)}else e.tr.setRoll(e.endEulerAngles.roll),e.tr.setPitch(e.endEulerAngles.pitch),e.tr.setBearing(e.endEulerAngles.bearing);else e.tr.setRoll(wa.number(e.startEulerAngles.roll,e.endEulerAngles.roll,e.k)),e.tr.setPitch(wa.number(e.startEulerAngles.pitch,e.endEulerAngles.pitch,e.k)),e.tr.setBearing(wa.number(e.startEulerAngles.bearing,e.endEulerAngles.bearing,e.k))}function fue(e,t,r,i,a){let n=a.padding,o=Ou(a.worldSize,r.getNorthWest()),s=Ou(a.worldSize,r.getNorthEast()),l=Ou(a.worldSize,r.getSouthEast()),u=Ou(a.worldSize,r.getSouthWest()),c=pa(-i),h=o.rotate(c),f=s.rotate(c),d=l.rotate(c),p=u.rotate(c),m=new qe(Math.max(h.x,f.x,p.x,d.x),Math.max(h.y,f.y,p.y,d.y)),g=new qe(Math.min(h.x,f.x,p.x,d.x),Math.min(h.y,f.y,p.y,d.y)),y=m.sub(g),x=a.width-(n.left+n.right+t.left+t.right),b=a.height-(n.top+n.bottom+t.top+t.bottom),_=x/y.x,A=b/y.y;if(A<0||_<0){cue();return}let T=Math.min(Jn(a.scale*Math.min(_,A)),e.maxZoom),M=qe.convert(e.offset),S=(t.left-t.right)/2,k=(t.top-t.bottom)/2,P=new qe(S,k).rotate(pa(i)),I=M.add(P).mult(a.scale/qo(T));return{center:Cm(a.worldSize,o.add(l).div(2).sub(I)),zoom:T,bearing:i}}function pue(e){let t=qm(e.worldSize,e.center.lat);return 2*Math.PI*t}function bje(e,t,r){let i=zn(t),a=zn(r),n=en(i,a),o=Math.acos(n),s=pue(e);return o/(2*Math.PI)*s}function wje(e,t){return[Uf(e*Math.PI*2+Math.PI,Math.PI*2),2*Math.atan(Math.exp(Math.PI-t*Math.PI*2))-Math.PI*.5]}function Aje(e,t){let r=Math.cos(t),i=new Float64Array(3);return i[0]=Math.sin(e)*r,i[1]=Math.sin(t),i[2]=Math.cos(e)*r,i}function Kf(e,t,r,i,a){let n=1/(1<1e-6){let i=e[0]/r,a=e[2]/r,n=Math.acos(a),o=(i>0?n:-n)/Math.PI*180;return new ar(rl(o,-180,180),t)}return new ar(0,t)}function Tje(e,t){return tw($f(),-e.lng,-e.lat,t)}function Mje(e){let t=e[0],r=e[1],i=e[2],a=e[3];return{lng:-Math.atan2(2*(a*t+r*i),1-2*(t*t+r*r))*180/Math.PI,lat:-Math.asin(Tr(2*(a*r-i*t),-1,1))*180/Math.PI,bearing:Math.atan2(2*(a*i+t*r),1-2*(r*r+i*i))*180/Math.PI}}function Wse(e,t){let r=e.cameraPosition,i=Hl(r);if(i<=1)return e.screenPointToLocation(t);let a=Ai();Bo(a,r);let n=e.getRayDirectionFromPixel(t),o=-en(n,a),s=Ai();n2(s,n,a,o);let l=Hl(s);if(l<1e-9)return e.screenPointToLocation(t);let u=Math.atan2(l,o),c=Math.asin(1/i)*.9;if(u=0?90:-90,s=e.locationToScreenPoint(new ar(0,o)),l=t.x-s.x,u=t.y-s.y,c=l*l+u*u,h=Tr(1-(Ru-Math.abs(n))/12,0,1),f=h*h*(3-2*h),d=Uf(i-a+180,360)-180,p=0;if(f>0&&r){let m=(l*r.y-u*r.x)/Math.max(c,400);p=(o>0?1:-1)*m*180/Math.PI}return a+(1-f)*d+f*p}function Eje(e){let t=Ai();return t[0]=e[0]*-e[3],t[1]=e[1]*-e[3],t[2]=e[2]*-e[3],{center:t,radius:Math.sqrt(1-e[3]*e[3])}}function kje(e,t,r){let i=Ai();Cc(i,r,e);let a=Ai();return n2(a,e,i,t/o2(i)),a}function p6(e){return Math.cos(e*Math.PI/180)}function eo(e,t){let r=p6(e),i=p6(t);return Jn(i/r)}function Cje(e,t){return 360/pue({worldSize:e,center:{lat:t}})}function Fje(e,t){let r=e.rotate(t.bearingInRadians),i=t.zoom+eo(t.center.lat,0),a=Wd(1/p6(t.center.lat),1/p6(Math.min(Math.abs(t.center.lat),60)),c2(i,7,3,0,1)),n=Cje(t.worldSize,t.center.lat);return new ar(t.center.lng-r.x*n*a,Tr(t.center.lat+r.y*n,-Ru,Ru))}function YC(e){let t=.5*e,r=Math.sin(t),i=Math.cos(t);return Math.log(r+i)-Math.log(i-r)}function Xse(e,t,r,i){let a=e.lat+r*i;if(Math.abs(r)>1){let n=e.lat+r,o=(Math.sign(n)===Math.sign(e.lat)?Math.abs(e.lat):-Math.abs(e.lat))*Math.PI/180,s=Math.abs(e.lat+r)*Math.PI/180,l=YC(o+i*(s-o)),u=YC(o),c=YC(s),h=(l-u)/(c-u),f=e.lng+t*h;return new ar(f,a)}{let n=e.lng+t*i;return new ar(n,a)}}function Ww(e,t,r=1){let i=en(e,t),a=r*r,n=Ai(),o=Ai();da(o,t,i),Cc(n,e,o);let s=a-en(n,n);if(s<0)return null;let l=en(e,e)-a,u=-i+(i<0?1:-1)*Math.sqrt(s),c=l/u,h=u,f=Math.max(c,h);return f<0?null:{tMin:Math.min(c,h),tMax:f}}function vue(e,t){let r=t*.01569612305760477,i=Tr((e-r)/(9*r),0,1);return i*i*(3-2*i)}function l6(e,t,r){let i=e-t;return i<0?-i:Math.max(0,i-r)}function XC(e,t,r,i,a){let n=e-r,o;return o=n<0?Math.min(-n,1+n-a):n>a?Math.min(Math.max(n-a,0),1-n):0,Math.max(o,l6(t,i,a))}function Kse(e,t){let r=1/0,i=-1/0;for(let a of t){let n=en(e,a);r=Math.min(r,n),i=Math.max(i,n)}return{min:r,max:i}}function _ue(e,t){let r=Ai();n2(r,e.origin,e.direction,t);let i=Hl(r),a=Ai();da(a,r,1/i);let n=H2(a),o=wi.fromLngLat(n),s=new wi(o.x,Tr(o.y,0,.999999999)),l=VF(e.index,e.exaggeration,s.x,s.y),u=Math.abs(n.lat)>85.051129?0:l.elevation;return{sample:Yr(nr({},l),{elevation:u}),radius:i,mercator:s}}function Qse(e,t){let{sample:r,radius:i}=_ue(e,t);return sue(r,(i-1)*No)}function ele(e,t){let r=zn(e);return da(r,r,1+t/No)}function tle(e,t,r){let i=J4(Ai(),r,e);return en(i,t)}function Lje(e,t,r){let i={constrainOverride:t};if(Array.isArray(e)){let a=new Yse({type:e},r);return{projection:a,transform:new rle(i),cameraHelper:new ile(a)}}switch(e){case"mercator":return{projection:new yF,transform:new f6(i),cameraHelper:new d6};case"globe":{let a=new Yse({type:["interpolate",["linear"],["zoom"],11,"vertical-perspective",12,"mercator"]},{});return{projection:a,transform:new rle(i),cameraHelper:new ile(a)}}case"vertical-perspective":return{projection:new due,transform:new gue(i),cameraHelper:new bue};default:return Xr(`Unknown projection name: ${e}. Falling back to mercator projection.`),{projection:new yF,transform:new f6(i),cameraHelper:new d6}}}function Gje(e,t){for(let[r,i]of Object.entries(y6)){let a=e.getUniformBlockIndex(t,r);a!==e.INVALID_INDEX&&e.uniformBlockBinding(t,a,i)}}function UF(e){let t={},r=0;for(let{name:i,type:a}of e){let[n,o]=jje[a];r=Math.ceil(r/o)*o,t[i]=r,r+=n}return{offsets:t,contentWords:r,sizeWords:Math.ceil(r/4)*4}}function Aue(e){return new GF(e,y6.ProjectionUBO,wue)}function ale(e,t){let r=e.pending;r.set(t.mainMatrix,Lm.u_projection_matrix),r.set(t.fallbackMatrix,Lm.u_projection_fallback_matrix),r.set(t.tileMercatorCoords,Lm.u_projection_tile_mercator_coords),r.set(t.clippingPlane,Lm.u_projection_clipping_plane),r[Lm.u_projection_transition]=t.projectionTransition,e.pendingWords[Lm.u_projection_clip_antimeridian]=+!!t.clipAntimeridian,e.upload()}function $je(e,t){var n;if(!t){e.projectionUniformBuffer.bind();return}let r=t.uniformBufferKey;if(r===void 0){ale(e.projectionUniformBuffer,t);return}let i=e.keyedProjectionUniformBuffers.get(r);if(i){i.bind();return}let a=(n=e.freeProjectionUniformBuffers.pop())!=null?n:Aue(e);e.keyedProjectionUniformBuffers.set(r,a),ale(a,t)}function Hje(e){e.freeProjectionUniformBuffers.push(...e.keyedProjectionUniformBuffers.values()),e.keyedProjectionUniformBuffers.clear()}function Zje(e){e.projectionUniformBuffer.destroy();for(let t of e.keyedProjectionUniformBuffers.values())t.destroy();for(let t of e.freeProjectionUniformBuffers)t.destroy()}function Yje(e){return new GF(e,y6.TerrainUBO,Tue)}function Wje(e,t){let r=e.pending;r.set(t.u_terrain_matrix,Xw.u_terrain_matrix),r.set(t.u_terrain_unpack,Xw.u_terrain_unpack),r[Xw.u_terrain_dim]=t.u_terrain_dim,r[Xw.u_terrain_exaggeration]=t.u_terrain_exaggeration,e.upload()}function KC(e){let t=[];for(let r of e){if(r===null)continue;let i=r.split(" ");t.push(i.pop())}return t}function Xje(e,t){let r=new Set([e.INT,e.INT_VEC2,e.INT_VEC3,e.INT_VEC4,e.UNSIGNED_INT,e.UNSIGNED_INT_VEC2,e.UNSIGNED_INT_VEC3,e.UNSIGNED_INT_VEC4]),i=new Set,a=e.getProgramParameter(t,e.ACTIVE_ATTRIBUTES);for(let n=0;n>16,s>>16],u_pixel_coord_lower:[o&65535,s&65535]}}function Jje(e,t,r,i){let a=r.patternAtlas.getPattern(e.from.toString()),n=r.patternAtlas.getPattern(e.to.toString()),{width:o,height:s}=r.patternAtlas.getPixelSize(),l=2**i.tileID.overscaledZ,u=i.tileSize*2**r.transform.tileZoom/l,c=u*(i.tileID.canonical.x+i.tileID.wrap*l),h=u*i.tileID.canonical.y;return{u_image:0,u_pattern_tl_a:a.tl,u_pattern_br_a:a.br,u_pattern_tl_b:n.tl,u_pattern_br_b:n.br,u_texsize:[o,s],u_mix:t.t,u_pattern_size_a:a.displaySize,u_pattern_size_b:n.displaySize,u_scale_a:t.fromScale,u_scale_b:t.toScale,u_tile_units_to_pixels:1/bs(i,1,r.transform.tileZoom),u_pixel_coord_upper:[c>>16,h>>16],u_pixel_coord_lower:[c&65535,h&65535]}}function y$e(e,t){let r=2**t.canonical.z,i=t.canonical.y;return[new wi(0,i/r).toLngLat().lat,new wi(0,(i+1)/r).toLngLat().lat]}function jF(e,t){return 1/bs(e,1,t.tileZoom)}function Cue(e,t,r){return wh(e.transform,t,r.paint.get("line-translate"),r.paint.get("line-translate-anchor"))}function EHe(e){return new GF(e,y6.FrameUBO,Iue)}function kHe(e,t){let r=e.pending,{transform:i}=t,a=t.context.gl;r[il.u_units_to_pixels]=1/i.pixelsToGLUnits[0],r[il.u_units_to_pixels+1]=1/i.pixelsToGLUnits[1],r[il.u_world_size]=a.drawingBufferWidth,r[il.u_world_size+1]=a.drawingBufferHeight,r[il.u_camera_to_center_distance]=i.cameraToCenterDistance,r[il.u_symbol_fade_change]=t.options.fadeDuration?t.symbolFadeChange:1,r[il.u_aspect_ratio]=i.width/i.height,r[il.u_device_pixel_ratio]=t.pixelRatio,r[il.u_viewport_size]=i.width,r[il.u_viewport_size+1]=i.height,r[il.u_pixel_extrude_scale]=1/i.width,r[il.u_pixel_extrude_scale+1]=1/i.height,r[il.u_pitch]=i.pitch/360*2*Math.PI,e.upload()}function FHe(e,t,r){var a;let i=(a=t==null?void 0:t.transitionState)!=null?a:0;return{currentPass:"offscreen",currentLayer:0,opaquePassCutoff:1/0,depthRangeFor3D:[0,1],isRenderingToTexture:!1,transform:e,terrain:r,projectionTransition:i,isRenderingGlobe:i>0}}function vo(e,t,r={}){var a;let i=e.transform.getProjectionData({overscaledTileID:t,aligned:r.aligned,applyGlobeMatrix:!e.isRenderingToTexture,applyTerrainMatrix:(a=r.applyTerrainMatrix)!=null?a:!0});return e.isRenderingToTexture||(i.uniformBufferKey=r.aligned?`${t.key}/aligned`:t.key),i}function ts(e,t){var r,i;return e.isRenderingToTexture?null:(i=(r=e.terrain)==null?void 0:r.getTerrainData(t))!=null?i:null}function lle(e,t,r,i,a,n){let o=e.context,s=o.gl,l=e.useProgram("collisionBox"),u=[],c=0,h=0;for(let y of i){let x=t.getTile(y).getBucket(r);if(!x)continue;let b=a?x.textCollisionBox:x.iconCollisionBox,_=x.collisionCircleArray;_.length>0&&(u.push({circleArray:_,circleOffset:h,coord:y}),c+=_.length/4,h=c),b&&l.draw(o,s.LINES,ri.disabled,Si.disabled,e.colorModeForRenderPass(),Ti.disabled,null,ts(n,y),vo(n,y),r.id,b.layoutVertexBuffer,b.indexBuffer,b.segments,null,e.transform.zoom,null,null,b.collisionVertexBuffer)}if(!a||!u.length)return;let f=e.useProgram("collisionCircle"),d=new gne;d.resize(c*4),d._trim();let p=0;for(let y of u)for(let x=0;xc.getElevation(p,S,k):void 0;qHe(g,h,f,l,u,_,T,x,A,wh(u,m,o,s),p.toUnwrapped(),M,r.layout.get("symbol-height-anchor")==="ground")}}}function BHe(e,t,r,i,a,n){let o=t.tileAnchorPoint.add(new qe(t.translation[0],t.translation[1]));if(t.pitchWithMap){let s=i.mult(n);r||(s=s.rotate(-a));let l=o.add(s);return qF(l.x,l.y,t.pitchedLabelPlaneMatrix,sp(t,l.x,l.y)).point}if(r){let s=lp(t.tileAnchorPoint.x+1,t.tileAnchorPoint.y,t).point.sub(e),l=Math.atan(s.y/s.x)+(s.x<0?Math.PI:0);return e.add(i.rotate(l))}return e.add(i)}function qHe(e,t,r,i,a,n,o,s,l,u,c,h,f){let d=e.text.placedSymbolArray,p=e.text.dynamicLayoutVertexArray,m=e.icon.dynamicLayoutVertexArray,g={};p.clear();for(let y=0;y=0&&(g[x.associatedIconIndex]={shiftedAnchor:j,angle:$})}}if(l){m.clear();let y=e.icon.placedSymbolArray;for(let x=0;xe.style.map.terrain.getElevation(L,ie,Se):void 0;GGe(q,e,a,te,He,y,u,r.layout.get("text-rotation-alignment")==="map",L.toUnwrapped(),m.width,m.height,fe,it)}let Fe=a&&M||Ve,se=y?te:e.transform.clipSpaceToPixelsMatrix,Ue=x||Fe?IHe:se,Ne=$&&r.paint.get(a?"text-halo-width":"icon-halo-width").constantOr(1)!==0,$e;$e=$?q.iconsInText?z$e(H.kind,oe,b,y,x,Fe,e,Ue,re,fe,De,ye,k,Me,Pe):Pue(H.kind,oe,b,y,x,Fe,e,Ue,re,fe,a,De,Ne,k,Me,Pe):Fue(H.kind,oe,b,y,x,Fe,e,Ue,re,fe,a,De,k,Me,Pe);let Ae={program:Y,buffers:V,uniformValues:$e,projectionData:ge,atlasTexture:de,atlasTextureIcon:J,atlasInterpolation:Ce,atlasInterpolationIcon:ue,isSDF:$,hasHalo:Ne};if(_&&q.canOverlap){A=!0;let He=V.segments.get();for(let it of He)S.push({segments:new Aa([it]),sortKey:it.sortKey,state:Ae,terrainData:pe})}else S.push({segments:V.segments,sortKey:0,state:Ae,terrainData:pe})}A&&S.sort((L,z)=>L.sortKey-z.sortKey);let P=(B=r.paint.get(a?"text-halo-width":"icon-halo-width").constantOr(null))!=null?B:1/0,I=r.layout.get("text-letter-spacing").constantOr(0)*24<0||P>1;for(let L of S){let z=L.state;d.activeTexture.set(p.TEXTURE0),z.atlasTexture.bind(z.atlasInterpolation,p.CLAMP_TO_EDGE),z.atlasTextureIcon&&(d.activeTexture.set(p.TEXTURE1),z.atlasTextureIcon&&z.atlasTextureIcon.bind(z.atlasInterpolationIcon,p.CLAMP_TO_EDGE));let q=z.isSDF&&z.hasHalo;if(q){let V=z.uniformValues;V.u_is_halo=1,I&&(V.u_is_plain=0,cle(z.buffers,L.segments,r,e,z.program,T,c,h,V,z.projectionData,L.terrainData),V.u_is_halo=0,V.u_is_plain=1)}cle(z.buffers,L.segments,r,e,z.program,T,c,h,z.uniformValues,z.projectionData,L.terrainData),q&&!I&&(z.uniformValues.u_is_halo=0)}}function cle(e,t,r,i,a,n,o,s,l,u,c){let h=i.context,f=h.gl;a.draw(h,f.TRIANGLES,n,o,s,Ti.backCCW,l,c,u,r.id,e.layoutVertexBuffer,e.indexBuffer,t,r.paint,i.transform.zoom,e.programConfigurations.get(r.id),e.dynamicLayoutVertexBuffer,e.opacityVertexBuffer)}function NHe(e,t,r,i,a){if(a.currentPass!=="translucent")return;let n=r.paint.get("circle-opacity"),o=r.paint.get("circle-stroke-width"),s=r.paint.get("circle-stroke-opacity"),l=!r.layout.get("circle-sort-key").isConstant();if(n.constantOr(1)===0&&(o.constantOr(1)===0||s.constantOr(1)===0))return;let u=e.context,c=u.gl,h=e.transform,f=e.getDepthModeForSublayer(0,ri.ReadOnly),d=Si.disabled,p=e.colorModeForRenderPass(),m=[],g=h.getCircleRadiusCorrection();for(let y of i){let x=t.getTile(y),b=x.getBucket(r);if(!b)continue;let _=r.paint.get("circle-translate"),A=r.paint.get("circle-translate-anchor"),T=wh(h,x,_,A),M=b.programConfigurations.get(r.id),S=e.useProgram("circle",M),k=b.layoutVertexBuffer,P=b.indexBuffer,I=ts(a,y),B={programConfiguration:M,program:S,layoutVertexBuffer:k,indexBuffer:P,uniformValues:c$e(e,x,r,T,g),terrainData:I,projectionData:vo(a,y)};if(l){let L=b.segments.get();for(let z of L)m.push({segments:new Aa([z]),sortKey:z.sortKey,state:B})}else m.push({segments:b.segments,sortKey:0,state:B})}l&&m.sort((y,x)=>y.sortKey-x.sortKey);for(let y of m){let{programConfiguration:x,program:b,layoutVertexBuffer:_,indexBuffer:A,uniformValues:T,terrainData:M,projectionData:S}=y.state,k=y.segments;b.draw(u,c.TRIANGLES,f,d,p,Ti.backCCW,T,M,S,r.id,_,A,k,r.paint,e.transform.zoom,x)}}function VHe(e,t,r,i,a){if(r.paint.get("heatmap-opacity")===0)return;let n=e.context;if(e.style.map.terrain){for(let o of i){let s=t.getTile(o);t.hasRenderableParent(o)||(a.currentPass==="offscreen"?jHe(e,s,r,o,a):a.currentPass==="translucent"&&$He(e,r,o,a))}n.viewport.set([0,0,e.width,e.height])}else a.currentPass==="offscreen"?UHe(e,t,r,i,a):a.currentPass==="translucent"&&GHe(e,r)}function UHe(e,t,r,i,a){let n=e.context,o=n.gl,s=e.transform,l=Si.disabled,u=new $a([o.ONE,o.ONE],Sr.transparent,[!0,!0,!0,!0]);HHe(n,e,r),n.clear({color:Sr.transparent});for(let c of i){if(t.hasRenderableParent(c))continue;let h=t.getTile(c),f=h.getBucket(r);if(!f)continue;let d=f.programConfigurations.get(r.id),p=e.useProgram("heatmap",d),m=vo(a,c,{applyTerrainMatrix:!1}),g=s.getCircleRadiusCorrection();p.draw(n,o.TRIANGLES,ri.disabled,l,u,Ti.backCCW,Eue(h,s.zoom,r.paint.get("heatmap-intensity"),g),null,m,r.id,f.layoutVertexBuffer,f.indexBuffer,f.segments,r.paint,s.zoom,d)}n.viewport.set([0,0,e.width,e.height])}function GHe(e,t){let r=e.context,i=r.gl;r.setColorMode(e.colorModeForRenderPass());let a=t.heatmapFbos.get(b2);a&&(r.activeTexture.set(i.TEXTURE0),i.bindTexture(i.TEXTURE_2D,a.colorAttachment.get()),r.activeTexture.set(i.TEXTURE1),zue(r,t).bind(i.LINEAR,i.CLAMP_TO_EDGE),e.useProgram("heatmapTexture").draw(r,i.TRIANGLES,ri.disabled,Si.disabled,e.colorModeForRenderPass(),Ti.disabled,kue(e,t,0,1),null,null,t.id,e.viewportBuffer,e.quadTriangleIndexBuffer,e.viewportSegments,t.paint,e.transform.zoom))}function jHe(e,t,r,i,a){let n=e.context,o=n.gl,s=Si.disabled,l=new $a([o.ONE,o.ONE],Sr.transparent,[!0,!0,!0,!0]),u=t.getBucket(r);if(!u)return;let c=i.key,h=r.heatmapFbos.get(c);h||(h=Lue(n,t.tileSize,t.tileSize),r.heatmapFbos.set(c,h)),n.bindFramebuffer.set(h.framebuffer),n.viewport.set([0,0,t.tileSize,t.tileSize]),n.clear({color:Sr.transparent});let f=u.programConfigurations.get(r.id),d=e.useProgram("heatmap",f,!a.isRenderingGlobe),p=vo(a,t.tileID),m=ts(a,i);d.draw(n,o.TRIANGLES,ri.disabled,s,l,Ti.disabled,Eue(t,e.transform.zoom,r.paint.get("heatmap-intensity"),1),m,p,r.id,u.layoutVertexBuffer,u.indexBuffer,u.segments,r.paint,e.transform.zoom,f)}function $He(e,t,r,i){let a=e.context,n=a.gl,o=e.transform;a.setColorMode(e.colorModeForRenderPass());let s=zue(a,t),l=r.key,u=t.heatmapFbos.get(l);if(!u)return;a.activeTexture.set(n.TEXTURE0),n.bindTexture(n.TEXTURE_2D,u.colorAttachment.get()),a.activeTexture.set(n.TEXTURE1),s.bind(n.LINEAR,n.CLAMP_TO_EDGE);let c=vo(i,r,{applyTerrainMatrix:i.isRenderingGlobe});e.useProgram("heatmapTexture").draw(a,n.TRIANGLES,ri.disabled,Si.disabled,e.colorModeForRenderPass(),Ti.disabled,kue(e,t,0,1),null,c,t.id,e.rasterBoundsBuffer,e.quadTriangleIndexBuffer,e.rasterBoundsSegments,t.paint,o.zoom),u.destroy(),t.heatmapFbos.delete(l)}function HHe(e,t,r){let i=e.gl;e.activeTexture.set(i.TEXTURE1),e.viewport.set([0,0,t.width/4,t.height/4]);let a=r.heatmapFbos.get(b2);a?(i.bindTexture(i.TEXTURE_2D,a.colorAttachment.get()),e.bindFramebuffer.set(a.framebuffer)):(a=Lue(e,t.width/4,t.height/4),r.heatmapFbos.set(b2,a))}function Lue(e,t,r){let i=e.gl,a=i.createTexture();i.bindTexture(i.TEXTURE_2D,a),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_WRAP_S,i.CLAMP_TO_EDGE),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_WRAP_T,i.CLAMP_TO_EDGE),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_MIN_FILTER,i.LINEAR),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_MAG_FILTER,i.LINEAR),i.texStorage2D(i.TEXTURE_2D,1,i.RGBA16F,t,r);let n=e.createFramebuffer(t,r,!1,!1);return n.colorAttachment.set(a),n}function zue(e,t){return t.colorRampTexture||(t.colorRampTexture=new dn(e,t.colorRamp,e.gl.RGBA)),t.colorRampTexture}function Rue(e,t,r){let i=e.context,a=i.bindFramebuffer.get(),n=i.viewport.get(),[,,o,s]=n;return ZHe(e,o,s),i.viewport.set([0,0,o,s]),i.clear({color:Sr.transparent,depth:1,stencil:0}),e.currentStencilSource=void 0,e.renderTileClippingMasks(t,r),{compositeTarget:a,compositeViewport:n}}function ZHe(e,t,r){let i=e.context.gl;if(!e.layerOpacityFbo){let n=e.context.createFramebuffer(t,r,!0,!0),o=i.createTexture();i.bindTexture(i.TEXTURE_2D,o),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_WRAP_S,i.CLAMP_TO_EDGE),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_WRAP_T,i.CLAMP_TO_EDGE),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_MIN_FILTER,i.LINEAR),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_MAG_FILTER,i.LINEAR),i.texImage2D(i.TEXTURE_2D,0,i.RGBA,t,r,0,i.RGBA,i.UNSIGNED_BYTE,null),n.colorAttachment.set(o),n.depthAttachment.set(e.context.createRenderbuffer(i.DEPTH_STENCIL,t,r)),e.layerOpacityFbo=n,e.context.bindFramebuffer.set(e.layerOpacityFbo.framebuffer);return}if(e.layerOpacityFbo.width===t&&e.layerOpacityFbo.height===r){e.context.bindFramebuffer.set(e.layerOpacityFbo.framebuffer);return}let a=e.layerOpacityFbo;i.bindTexture(i.TEXTURE_2D,a.colorAttachment.get()),i.texImage2D(i.TEXTURE_2D,0,i.RGBA,t,r,0,i.RGBA,i.UNSIGNED_BYTE,null),e.context.bindRenderbuffer.set(a.depthAttachment.get()),i.renderbufferStorage(i.RENDERBUFFER,i.DEPTH_STENCIL,t,r),e.context.bindRenderbuffer.set(null),a.width=t,a.height=r,e.context.bindFramebuffer.set(a.framebuffer)}function Bue(e,t,r,i){let a=e.context,n=a.gl;a.bindFramebuffer.set(r.compositeTarget),a.viewport.set(r.compositeViewport),a.activeTexture.set(n.TEXTURE0),n.bindTexture(n.TEXTURE_2D,e.layerOpacityFbo.colorAttachment.get()),e.useProgram("layerOpacity").draw(a,n.TRIANGLES,ri.disabled,Si.disabled,e.colorModeForRenderPass(),Ti.disabled,F$e(t,0),null,null,i.id,e.viewportBuffer,e.quadTriangleIndexBuffer,e.viewportSegments,i.paint,e.transform.zoom),e.currentStencilSource=void 0}function que(e,t,r,i,a,n,o,s){let l=256;if(a.stepInterpolant){let u=t.getSource().maxzoom,c=o.canonical.z===u?Math.ceil(1<e.options.anisotropicFilterPitch&&p.texParameterf(p.TEXTURE_2D,d.extTextureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT,d.extTextureFilterAnisotropicMax);let z=ts(c,M),q=vo(c,M,{aligned:x}),V=sGe(B,I,L.fadeMix,r,s,l),j=h!=null?h:g.getMeshFromTileID(d,M.canonical,n,o,"raster"),$=a?a[M.overscaledZ]:Si.disabled;m.draw(d,p.TRIANGLES,S,$,y,u?Ti.frontCCW:Ti.backCCW,V,z,q,r.id,j.vertexBuffer,j.indexBuffer,j.segments)}}function nZe(e,t,r,i){let a={parentTile:null,parentScaleBy:1,parentTopLeft:[0,0],fadeValues:{tileOpacity:1,parentTileOpacity:1,fadeMix:{opacity:1,mix:0}}};if(r===0||i)return a;if(e.fadingParentID){let n=t.getLoadedTile(e.fadingParentID);if(!n)return a;let o=2**(n.tileID.overscaledZ-e.tileID.overscaledZ);return{parentTile:n,parentScaleBy:o,parentTopLeft:[e.tileID.canonical.x*o%1,e.tileID.canonical.y*o%1],fadeValues:oZe(e,n,r)}}return e.selfFading?{parentTile:null,parentScaleBy:1,parentTopLeft:[0,0],fadeValues:sZe(e,r)}:a}function oZe(e,t,r){let i=Ei(),a=(i-e.timeAdded)/r,n=(i-t.timeAdded)/r,o=e.fadingDirection===1,s=Tr(a,0,1),l=Tr(1-n,0,1),u=o?s:l;return{tileOpacity:u,parentTileOpacity:o?l:s,fadeMix:{opacity:1,mix:1-u}}}function sZe(e,t){let r=(Ei()-e.timeAdded)/t,i=Tr(r,0,1);return{tileOpacity:i,fadeMix:{opacity:i,mix:0}}}function lZe(e,t,r,i,a){let n=r.paint.get("background-color"),o=r.paint.get("background-opacity");if(o===0)return;let s=e.context,l=s.gl,u=e.style.projection,c=e.transform,h=c.tileSize,f=r.paint.get("background-pattern");if(e.isPatternMissing(f))return;let d=!f&&n.a===1&&o===1&&e.opaquePassEnabledForLayer()?"opaque":"translucent";if(a.currentPass!==d)return;let p=Si.disabled,m=e.getDepthModeForSublayer(0,d==="opaque"?ri.ReadWrite:ri.ReadOnly),g=e.colorModeForRenderPass(),y=e.useProgram(f?"backgroundPattern":"background"),x=i||Nm(c,{tileSize:h,terrain:e.style.map.terrain});f&&(s.activeTexture.set(l.TEXTURE0),e.patternAtlas.bind(e.context));let b=r.getCrossfadeParameters();for(let _ of x){let A=vo(a,_),T=f?O$e(o,e,f,{tileID:_,tileSize:h},b):q$e(o,n),M=ts(a,_),S=u.getMeshFromTileID(s,_.canonical,!1,!0,"raster");y.draw(s,l.TRIANGLES,m,p,g,Ti.backCCW,T,M,A,r.id,S.vertexBuffer,S.indexBuffer,S.segments)}}function pZe(e){let t=e.transform.padding;dle(e,e.transform.height-(t.top||0),3,uZe),dle(e,t.bottom||0,3,cZe),ple(e,t.left||0,3,hZe),ple(e,e.transform.width-(t.right||0),3,fZe);let r=e.transform.centerPoint;mZe(e,r.x,e.transform.height-r.y,dZe)}function mZe(e,t,r,i){m6(e,t-1,r-10,2,20,i),m6(e,t-10,r-1,20,2,i)}function dle(e,t,r,i){m6(e,0,t+r/2,e.transform.width,r,i)}function ple(e,t,r,i){m6(e,t-r/2,0,r,e.transform.height,i)}function m6(e,t,r,i,a,n){let o=e.context,s=o.gl;s.enable(s.SCISSOR_TEST),s.scissor(t*e.pixelRatio,r*e.pixelRatio,i*e.pixelRatio,a*e.pixelRatio),o.clear({color:n}),s.disable(s.SCISSOR_TEST)}function vZe(e,t,r,i){for(let a of r)gZe(e,t,a,i)}function gZe(e,t,r,i){var x;let a=e.context,n=a.gl,o=e.useProgram("debug"),s=ri.disabled,l=Si.disabled,u=e.colorModeForRenderPass(),c="$debug",h=ts(i,r);a.activeTexture.set(n.TEXTURE0);let f=((x=t.getTileByID(r.key).latestRawTileData)==null?void 0:x.byteLength)||0,d=Math.floor(f/1024),p=t.getTile(r).tileSize,m=512/Math.min(p,512)*(r.overscaledZ/e.transform.zoom)*.5,g=r.canonical.toString();r.overscaledZ!==r.canonical.z&&(g+=` => ${r.overscaledZ}`),yZe(e,`${g} ${d}kB`);let y=vo(i,r);o.draw(a,n.TRIANGLES,s,l,$a.alphaBlended,Ti.disabled,nle(Sr.transparent,m),null,y,c,e.debugBuffer,e.quadTriangleIndexBuffer,e.debugSegments),o.draw(a,n.LINE_STRIP,s,l,u,Ti.disabled,nle(Sr.red),h,y,c,e.debugBuffer,e.tileBorderIndexBuffer,e.debugSegments)}function yZe(e,t){e.initDebugOverlayCanvas();let r=e.debugOverlayCanvas,i=e.context.gl,a=e.debugOverlayCanvas.getContext("2d");a.clearRect(0,0,r.width,r.height),a.shadowColor="white",a.shadowBlur=2,a.lineWidth=1.5,a.strokeStyle="white",a.textBaseline="top",a.font="bold 36px Open Sans, sans-serif",a.fillText(t,5,5),a.strokeText(t,5,5),e.debugOverlayTexture.update(r),e.debugOverlayTexture.bind(i.LINEAR,i.CLAMP_TO_EDGE)}function _Ze(e,t){let r=null,i=Object.values(e._layers).flatMap(s=>s.source&&!s.isHidden(t)?[e.tileManagers[s.source]]:[]),a=i.filter(s=>s.getSource().type==="vector"),n=i.filter(s=>s.getSource().type!=="vector"),o=s=>{(!r||r.getSource().maxzoom{var d;return l.getProjectionData({overscaledTileID:new Xn(f.tileID.canonical.z,(d=f.tileID.wrap)!=null?d:0,f.tileID.canonical.z,f.tileID.canonical.x,f.tileID.canonical.y),aligned:f.aligned,applyGlobeMatrix:f.applyGlobeMatrix,applyTerrainMatrix:f.applyTerrainMatrix})}},h=o.renderingMode?o.renderingMode:"2d";if(i.currentPass==="offscreen"){let f=o.prerender;f&&(e.setCustomLayerDefaults(),n.setColorMode(e.colorModeForRenderPass()),f.call(o,n.gl,c),n.setDirty(),e.setBaseState())}else if(i.currentPass==="translucent"){e.setCustomLayerDefaults(),n.setColorMode(e.colorModeForRenderPass()),n.setStencilMode(Ei.disabled);let f=h==="3d"?e.getDepthModeFor3D():e.getDepthModeForSublayer(0,Jr.ReadOnly);n.setDepthMode(f),o.render(n.gl,c),n.setDirty(),e.setBaseState(),n.bindFramebuffer.set(null)}}function fZe(e,t){let r=e.context,i=r.gl,a=e.transform,n=Oa.unblended,o=new Jr(i.LEQUAL,Jr.ReadWrite,[0,1]),s=t.tileManager.getRenderableTiles(),l=e.useProgram("terrainDepth");r.bindFramebuffer.set(t.getFramebuffer().framebuffer),r.viewport.set([0,0,e.width/devicePixelRatio,e.height/devicePixelRatio]),r.clear({color:Dr.white,depth:1});for(let u of s){let c=t.getTerrainMesh(u.tileID),h=t.getTerrainData(u.tileID),f=a.getProjectionData({overscaledTileID:u.tileID,applyTerrainMatrix:!1,applyGlobeMatrix:!0}),d=Ije(t.getSkirtLength(a.zoom));l.draw(r,i.TRIANGLES,o,Ei.disabled,n,Ai.backCCW,d,h,f,"terrain",c.vertexBuffer,c.indexBuffer,c.segments)}r.bindFramebuffer.set(null),r.viewport.set([0,0,e.width,e.height])}function dZe(e,t,r,i){let{isRenderingGlobe:a}=i,n=e.context,o=n.gl,s=e.transform,l=e.colorModeForRenderPass(),u=e.getDepthModeFor3D(),c=e.useProgram("terrain");n.bindFramebuffer.set(null),n.viewport.set([0,0,e.width,e.height]);for(let h of r){let f=t.getTerrainMesh(h.tileID),d=e.renderToTexture.getTexture(h),p=t.getTerrainData(h.tileID);n.activeTexture.set(o.TEXTURE0),d.bind(o.LINEAR,o.CLAMP_TO_EDGE,o.LINEAR_MIPMAP_LINEAR);let m=t.getSkirtLength(s.zoom),g=s.calculateFogMatrix(h.tileID.toUnwrapped()),y=Pje(m,g,e.style.sky,s.pitch,a),x=co(i,h.tileID,{applyTerrainMatrix:!1});c.draw(n,o.TRIANGLES,u,Ei.disabled,l,Ai.backCCW,y,p,x,"terrain",f.vertexBuffer,f.indexBuffer,f.segments)}}function Rue(e,t){if(!t.mesh){let r=new Ah;r.emplaceBack(-1,-1),r.emplaceBack(1,-1),r.emplaceBack(1,1),r.emplaceBack(-1,1);let i=new Ru;i.emplaceBack(0,1,2),i.emplaceBack(0,2,3),t.mesh=new W2(e.createVertexBuffer(r,ap.members),e.createIndexBuffer(i),ma.simpleSegment(0,0,r.length,i.length))}return t.mesh}function pZe(e,t){let r=e.context,i=r.gl,a=L$e(t,e.transform,e.pixelRatio),n=new Jr(i.LEQUAL,Jr.ReadWrite,[0,1]),o=Ei.disabled,s=e.colorModeForRenderPass(),l=e.useProgram("sky"),u=Rue(r,t);l.draw(r,i.TRIANGLES,n,o,s,Ai.disabled,a,null,void 0,"sky",u.vertexBuffer,u.indexBuffer,u.segments)}function mZe(e,t){let r=e.getCartesianPosition();tie(r,r);let i=jl(new Float64Array(16));return e.properties.get("anchor")==="map"&&(_h(i,i,t.rollInRadians),Hd(i,i,-t.pitchInRadians),_h(i,i,t.bearingInRadians),Hd(i,i,t.center.lat*Math.PI/180),dk(i,i,-t.center.lng*Math.PI/180)),rie(r,r,i),r}function vZe(e,t,r){let i=e.context,a=i.gl,n=e.useProgram("atmosphere"),o=new Jr(a.LEQUAL,Jr.ReadOnly,[0,1]),s=e.transform,l=mZe(r,e.transform),u=s.getProjectionData({overscaledTileID:null,applyGlobeMatrix:!0,applyTerrainMatrix:!0}),c=Om(s.worldSize,s.center.lat),h=cue(s),f=hue($l(h)-c,c),d=t.properties.get("atmosphere-blend")*u.projectionTransition*f;if(d===0)return;let p=P$e(l,d,h,c,s.inverseProjectionMatrix),m=Rue(i,t);n.draw(i,a.TRIANGLES,o,Ei.disabled,Oa.alphaBlended,Ai.disabled,p,null,null,"atmosphere",m.vertexBuffer,m.indexBuffer,m.segments)}function NF(e,t){let r=!1,i=null,a,n=()=>{i=null,r&&(r=(e(...a),i=setTimeout(n,t),!1))};return(...o)=>(r=!0,a=o,i||n(),i)}function V2(e,t){(!e.duration||e.duration({around:i,panDelta:i.sub(r)}),activateOnStart:!0,moveStateManager:new J2({checkCorrectEvent:r=>r.button===0&&!r.ctrlKey}),enable:e,assignEvents:v6})}function zZe({enable:e,clickTolerance:t,aroundCenter:r=!0,minPixelCenterThreshold:i=100,rotateSpeed:a=.8},n){return new K2({clickTolerance:t,move:(o,s)=>{let l=n();if(r&&Math.abs(l.y-o.y)>i)return{bearingDelta:wk(new Be(o.x,s.y),s,l)};let u=(s.x-o.x)*a;return r&&s.yo.button===0&&o.ctrlKey||o.button===2&&!o.ctrlKey}),enable:e,assignEvents:v6})}function RZe({enable:e,clickTolerance:t,pitchSpeed:r=-.5}){return new K2({clickTolerance:t,move:(i,a)=>({pitchDelta:(a.y-i.y)*r}),moveStateManager:new J2({checkCorrectEvent:i=>i.button===0&&i.ctrlKey||i.button===2}),enable:e,assignEvents:v6})}function BZe({enable:e,clickTolerance:t,rollDegreesPerPixelMoved:r=.3},i){return new K2({clickTolerance:t,move:(a,n)=>{let o=i(),s=(n.x-a.x)*r;return n.ya.button===2&&a.ctrlKey}),enable:e,assignEvents:v6})}function Xw(e,t,r){for(let i=0;iMath.abs(e.x)}function NZe(e){return e*(2-e)}function QC(e){var t;return((t=e.panDelta)==null?void 0:t.mag())||e.zoomDelta||e.bearingDelta||e.pitchDelta||e.rollDelta}function rYe(e=!1){return Kt(this,null,function*(){if(tp!==void 0&&!e)return tp;if(window.navigator.permissions===void 0)return tp=!!window.navigator.geolocation,tp;try{tp=(yield window.navigator.permissions.query({name:"geolocation"})).state!=="denied"}catch(t){tp=!!window.navigator.geolocation}return tp})}function Que(e,t,r,i=!1){if(i||!r.getCoveringTilesDetailsProvider().allowWorldCopies())return e==null?void 0:e.wrap();let a=new ar(e.lng,e.lat);if(e=new ar(e.lng,e.lat),t){let n=new ar(e.lng-360,e.lat),o=new ar(e.lng+360,e.lat),s=r.locationToScreenPoint(e).distSqr(t);r.locationToScreenPoint(n).distSqr(t)180;){let n=r.locationToScreenPoint(e);if(n.x>=0&&n.y>=0&&n.x<=r.width&&n.y<=r.height)break;e.lng>r.center.lng?e.lng-=360:e.lng+=360}return e.lng!==a.lng&&r.isPointOnMapSurface(r.locationToScreenPoint(e))?e:a}function ece(e,t,r){let i=e.classList;for(let a in UF)i.remove(`maplibregl-${r}-anchor-${a}`);i.add(`maplibregl-${r}-anchor-${t}`)}function Zl(e,t,r=[]){let i=wr.createNS("http://www.w3.org/2000/svg",e);for(let a in t)i.setAttributeNS(null,a,t[a]);for(let a of r)i.appendChild(a);return i}function iYe(){return eF||(eF=Zl("svg",{display:"block",height:"41px",width:"27px",viewBox:"0 0 27 41"},[Zl("g",{"fill-rule":"nonzero"},[Zl("g",{transform:"translate(3.0, 29.0)",fill:"#000000"},[["10.5","5.25002273"],["10.5","5.25002273"],["9.5","4.77275007"],["8.5","4.29549936"],["7.5","3.81822308"],["6.5","3.34094679"],["5.5","2.86367051"],["4.5","2.38636864"]].map(([e,t])=>Zl("ellipse",{opacity:"0.04",cx:"10.5",cy:"5.80029008",rx:e,ry:t}))),Zl("g",{fill:tce},[Zl("path",{d:"M27,13.5 C27,19.074644 20.250001,27.000002 14.75,34.500002 C14.016665,35.500004 12.983335,35.500004 12.25,34.500002 C6.7499993,27.000002 0,19.222562 0,13.5 C0,6.0441559 6.0441559,0 13.5,0 C20.955844,0 27,6.0441559 27,13.5 Z"})]),Zl("g",{opacity:"0.25",fill:"#000000"},[Zl("path",{d:"M13.5,0 C6.0441559,0 0,6.0441559 0,13.5 C0,19.222562 6.7499993,27 12.25,34.5 C13,35.522727 14.016664,35.500004 14.75,34.5 C20.250001,27 27,19.074644 27,13.5 C27,6.0441559 20.955844,0 13.5,0 Z M13.5,1 C20.415404,1 26,6.584596 26,13.5 C26,15.898657 24.495584,19.181431 22.220703,22.738281 C19.945823,26.295132 16.705119,30.142167 13.943359,33.908203 C13.743445,34.180814 13.612715,34.322738 13.5,34.441406 C13.387285,34.322738 13.256555,34.180814 13.056641,33.908203 C10.284481,30.127985 7.4148684,26.314159 5.015625,22.773438 C2.6163816,19.232715 1,15.953538 1,13.5 C1,6.584596 6.584596,1 13.5,1 Z"})]),Zl("g",{transform:"translate(6.0, 7.0)",fill:"#FFFFFF"}),Zl("g",{transform:"translate(8.0, 8.0)"},[Zl("circle",{fill:"#000000",opacity:"0.25",cx:"5.5",cy:"5.5",r:"5.4999962"}),Zl("circle",{fill:"#FFFFFF",cx:"5.5",cy:"5.5",r:"5.4999962"})])])]),eF)}function aYe(e){return e.firstElementChild.children[1]}function gle(e,t,r){let i=(r==null?void 0:r.maxWidth)||100,{width:a,height:n}=e._camera.transform,o=n/2,s=a/2,l=e.unproject([s-i/2,o]),u=e.unproject([s+i/2,o]),c=Math.round(e.project(u).x-e.project(l).x),h=Math.min(i,c,a),f=l.distanceTo(u);if((r==null?void 0:r.unit)==="imperial"){let d=3.2808*f;d>5280?j2(t,h,d/5280,e._getUIString("ScaleControl.Miles")):j2(t,h,d,e._getUIString("ScaleControl.Feet"))}else(r==null?void 0:r.unit)==="nautical"?j2(t,h,f/1852,e._getUIString("ScaleControl.NauticalMiles")):f>=1e3?j2(t,h,f/1e3,e._getUIString("ScaleControl.Kilometers")):j2(t,h,f,e._getUIString("ScaleControl.Meters"))}function j2(e,t,r,i){let a=cYe(r),n=a/r;e.style.width=`${t*n}px`;let o=`${a}\xA0${i}`;e.textContent!==o&&(e.textContent=o)}function uYe(e){let t=10**Math.ceil(-Math.log(e)/Math.LN10);return Math.round(e*t)/t}function cYe(e){let t=10**(`${Math.floor(e)}`.length-1),r=e/t;return r=r>=10?10:r>=5?5:r>=3?3:r>=2?2:r>=1?1:uYe(r),t*r}function ace(e){if(!e)return ace(new Be(0,0));if(typeof e=="number"){let t=Math.round(Math.abs(e)/Math.SQRT2);return{center:new Be(0,0),top:new Be(0,e),"top-left":new Be(t,t),"top-right":new Be(-t,t),bottom:new Be(0,-e),"bottom-left":new Be(t,-t),"bottom-right":new Be(-t,-t),left:new Be(e,0),right:new Be(-e,0)}}if(e instanceof Be||Array.isArray(e)){let t=Be.convert(e);return{center:t,top:t,"top-left":t,"top-right":t,bottom:t,"bottom-left":t,"bottom-right":t,left:t,right:t}}return{center:Be.convert(e.center||[0,0]),top:Be.convert(e.top||[0,0]),"top-left":Be.convert(e["top-left"]||[0,0]),"top-right":Be.convert(e["top-right"]||[0,0]),bottom:Be.convert(e.bottom||[0,0]),"bottom-left":Be.convert(e["bottom-left"]||[0,0]),"bottom-right":Be.convert(e["bottom-right"]||[0,0]),left:Be.convert(e.left||[0,0]),right:Be.convert(e.right||[0,0])}}function gYe(e){var t,r,i,a;return e?{top:(t=e.top)!=null?t:0,right:(r=e.right)!=null?r:0,bottom:(i=e.bottom)!=null?i:0,left:(a=e.left)!=null?a:0}:{top:0,right:0,bottom:0,left:0}}function _Ye(e,t){return Y2().setRTLTextPlugin(e,t)}function xYe(){return Y2().getRTLTextPluginStatus()}function bYe(){return yYe}function wYe(){return d6.workerCount}function AYe(e){d6.workerCount=e}function TYe(){return _s.MAX_PARALLEL_IMAGE_REQUESTS}function MYe(e){_s.MAX_PARALLEL_IMAGE_REQUESTS=e}function DYe(){return _s.WORKER_URL}function SYe(e){_s.WORKER_URL=e}function EYe(e){return Kt(this,null,function*(){yield TF().broadcast("IS",e)})}var oce,yle,qw,z2,LC,ws,f6,JVe,QVe,eUe,tUe,R2,t,Oi,wr,qu,rUe,In,hr,tF,Yl,ca,bs,$2,xle,rF,ble,wle,Qw,Ale,fUe,dUe,iF,pUe,mUe,yUe,aF,bF,_Ue,xUe,bUe,wUe,vse,AUe,TUe,gse,MUe,DUe,SUe,wF,d6,IUe,H2,Sle,Nw,Ou,Fle,Ple,MF,Ile,zle,Bm,KUe,JUe,W2,ap,Vw,Nm,Ole,Nle,Vle,oGe,Ule,sGe,lGe,nF,cGe,BC,Gle,hGe,DF,SF,gGe,Mse,Eh,sF,SGe,Dse,FGe,RGe,OGe,kse,B2,Cse,NGe,VGe,UGe,GGe,jGe,$Ge,HGe,q2,ZGe,YGe,Lse,ka,WGe,N2,XGe,KGe,JGe,Jle,QGe,eje,tje,rje,ije,aje,nje,oje,Rse,Ic,Qle,eue,hF,fF,IF,sje,lje,uje,qse,Ose,cje,Nse,l6,u6,Use,hje,OC,lue,Gse,NC,Aje,UC,Tje,Zse,fue,Kse,vue,Jse,Dje,pF,Sje,Eje,kje,Cje,Fje,Pje,Ije,p6,zje,RF,gue,zm,_ue,Hw,Uje,jje,$je,bue,Hje,Zje,Yje,Wje,Xje,wue,Kje,Jje,Qje,e$e,t$e,r$e,ele,i$e,a$e,Aue,Tue,n$e,o$e,s$e,l$e,c$e,h$e,f$e,d$e,p$e,m$e,v$e,m6,g$e,y$e,_$e,x$e,b$e,w$e,A$e,T$e,M$e,Due,Sue,D$e,S$e,E$e,k$e,C$e,F$e,P$e,I$e,L$e,Zw,z$e,R$e,tle,B$e,Ii,q$e,O$e,N$e,V$e,U$e,G$e,j$e,$$e,H$e,Z$e,Y$e,W$e,X$e,K$e,J$e,Q$e,eHe,tHe,rHe,iHe,aHe,nHe,oHe,sHe,lHe,uHe,cHe,hHe,fHe,dHe,pHe,qF,mHe,vHe,gHe,yHe,Eue,Qs,Oa,bHe,Jr,$C,Ei,rle,HC,Ai,Yw,THe,WC,KC,eZe,tZe,rZe,iZe,aZe,gZe,np,yZe,Bue,que,X2,_Ze,xZe,bZe,wZe,AZe,TZe,MZe,DZe,Oue,EZe,vF,kZe,K2,CZe,J2,PZe,IZe,v6,qZe,VF,cle,Nue,Vue,Uue,OZe,Gue,dle,jue,$ue,VZe,UZe,Hue,Zue,Yue,Wue,GZe,Kw,jZe,$Ze,HZe,Xue,Kue,Jue,ZZe,ple,YZe,Rm,WZe,XZe,KZe,mle,JZe,QZe,eYe,tYe,tp,UF,vle,tce,eF,rp,rce,gF,nYe,Jw,G2,ip,yF,ice,oYe,sYe,lYe,_F,hYe,fYe,dYe,pYe,mYe,xF,vYe,yYe,sce=Vi(()=>{sse();oce={};yle="6.11.2";ws={frame(e,t,r,i){let a=i||window,n=a.requestAnimationFrame(s=>{o(),t(s)}),{unsubscribe:o}=Uy(e.signal,"abort",()=>{o(),a.cancelAnimationFrame(n),r(new Dm(e.signal.reason))},!1)},frameAsync(e,t){return new Promise((r,i)=>{this.frame(e,r,i,t)})},getImageData(e,t=0){return this.getImageCanvasContext(e).getImageData(-t,-t,e.width+2*t,e.height+2*t)},getImageCanvasContext(e){let t;if(j4()&&!hk())t=new OffscreenCanvas(e.width,e.height).getContext("2d",{willReadFrequently:!0});else{let r=window.document.createElement("canvas");r.width=e.width,r.height=e.height,t=r.getContext("2d",{willReadFrequently:!0})}if(!t)throw Error("failed to create canvas 2d context");return t.drawImage(e,0,0,e.width,e.height),t},resolveURL(e){return qw||(qw=document.createElement("a")),qw.href=e,qw.href},get hardwareConcurrency(){return typeof navigator<"u"&&navigator.hardwareConcurrency||4},get prefersReducedMotion(){return LC===void 0?matchMedia?(z2!=null||(z2=matchMedia("(prefers-reduced-motion: reduce)")),z2.matches):!1:LC},set prefersReducedMotion(e){LC=e}},f6=new class{constructor(){this._frozenAt=null}getCurrentTime(){return this._frozenAt===null?performance.now():this._frozenAt}setNow(e){this._frozenAt=e}restoreNow(){this._frozenAt=null}isFrozen(){return this._frozenAt!==null}};JVe=new Set("a.abbr.b.bdi.bdo.br.cite.code.del.div.em.i.img.ins.kbd.li.mark.ol.p.q.s.samp.small.span.strong.sub.sup.time.u.ul.var.wbr".split(".")),QVe=new Set(["alt","class","datetime","dir","height","href","hreflang","lang","referrerpolicy","rel","role","src","target","title","translate","type","width"]),eUe=new Set(["href","src"]),tUe=new Set(["http:","https:","mailto:"]);wr=(Oi=class{static create(t,r,i){let a=window.document.createElement(t);return r!==void 0&&(a.className=r),i&&i.appendChild(a),a}static createNS(t,r){return window.document.createElementNS(t,r)}static disableDrag(){Oi.docStyle&&Oi.selectProp&&(Oi.userSelect=Oi.docStyle[Oi.selectProp],Oi.docStyle[Oi.selectProp]="none")}static enableDrag(){Oi.docStyle&&Oi.selectProp&&(Oi.docStyle[Oi.selectProp]=Oi.userSelect)}static suppressClickInternal(t){t.preventDefault(),t.stopPropagation(),window.removeEventListener("click",Oi.suppressClickInternal,!0)}static suppressClick(){window.addEventListener("click",Oi.suppressClickInternal,!0),window.setTimeout(()=>{window.removeEventListener("click",Oi.suppressClickInternal,!0)},0)}static getScale(t){let r=t.getBoundingClientRect();return{x:r.width/t.offsetWidth||1,y:r.height/t.offsetHeight||1,boundingClientRect:r}}static getPoint(t,r,i){let a=r.boundingClientRect;return new Be((i.clientX-a.left)/r.x-t.clientLeft,(i.clientY-a.top)/r.y-t.clientTop)}static mousePos(t,r){let i=Oi.getScale(t);return Oi.getPoint(t,i,r)}static touchPos(t,r){let i=[],a=Oi.getScale(t);for(let n of r)i.push(Oi.getPoint(t,a,n));return i}static sanitize(t){let r=new DOMParser().parseFromString(t,"text/html").body,{querySelectorAll:i,remove:a}=zC();for(let o of Array.from(i.call(r,"*")))Oi.isAllowedElement(o)?Oi.removeDisallowedAttributes(o):a.call(o);let n=document.createDocumentFragment();return n.append(...r.childNodes),n}static isAllowedElement(t){let{namespaceURI:r,localName:i}=zC();return r.call(t)==="http://www.w3.org/1999/xhtml"&&JVe.has(i.call(t))}static removeDisallowedAttributes(t){let{getAttributeNames:r,getAttribute:i,removeAttribute:a}=zC();for(let n of r.call(t))Oi.isAllowedAttribute(n,i.call(t,n))||a.call(t,n)}static isAllowedAttribute(t,r){if(!QVe.has(t)&&!t.startsWith("aria-"))return!1;if(!eUe.has(t))return!0;try{return tUe.has(new URL(r,"https://maplibre.invalid/").protocol)}catch(i){return!1}}},Oi.docStyle=typeof window<"u"&&((t=window.document)==null?void 0:t.documentElement.style),Oi.selectProp=!Oi.docStyle||"userSelect"in Oi.docStyle?"userSelect":"webkitUserSelect",Oi);(function(e){let t,r,i,a;e.resetRequestQueue=()=>{t=[],r=0,i=0,a={}},e.addThrottleControl=h=>{let f=i++;return a[f]=h,f},e.removeThrottleControl=h=>{delete a[h],u()};let n=()=>{for(let h of Object.keys(a))if(a[h]())return!0;return!1};function o(h,f,d,p,m=!0,g){return Kt(this,null,function*(){let y=yield h.transformRequest(f,d);return iw(p.signal),qu.getImage(y,p,m,g)})}e.transformAndGetImage=o,e.getImage=(h,f,d=!0,p)=>new Promise((m,g)=>{h.headers||(h.headers={}),h.headers.accept="image/webp,*/*",tr(h,{type:"image"});let y={abortController:f,requestParameters:h,supportImageRefresh:d,imageBitmapOptions:p,state:"queued",onError:x=>{g(x)},onSuccess:x=>{m(x)}};t.push(y),u()});let s=(h,f)=>typeof createImageBitmap=="function"?gie(h,f):yie(h),l=h=>Kt(null,null,function*(){h.state="running";let{requestParameters:f,supportImageRefresh:d,imageBitmapOptions:p,onError:m,onSuccess:g,abortController:y}=h,x=d===!1&&!p&&!Vd(self)&&!Tk(f.url)&&(!f.headers||Object.keys(f.headers).reduce((_,A)=>_&&A==="accept",!0));r++;let w=x?c(f,y):f2(f,y);try{let _=yield w;delete h.abortController,h.state="completed",_.data instanceof HTMLImageElement||$f(_.data)?g(_):!_.data||_.data.byteLength===0?g({data:null,cacheControl:_.cacheControl,expires:_.expires}):g({data:yield s(_.data,p),cacheControl:_.cacheControl,expires:_.expires})}catch(_){delete h.abortController,m(Hn(_))}finally{r--,u()}}),u=()=>{let h=n()?_s.MAX_PARALLEL_IMAGE_REQUESTS_PER_FRAME:_s.MAX_PARALLEL_IMAGE_REQUESTS;for(let f=r;f0;f++){let d=t.shift();if(d.abortController.signal.aborted){f--;continue}l(d)}},c=(h,f)=>new Promise((d,p)=>{let m=new Image,g=h.url,y=h.credentials;y&&y==="include"?m.crossOrigin="use-credentials":(y&&y==="same-origin"||!Dk(g))&&(m.crossOrigin="anonymous"),f.signal.addEventListener("abort",()=>{m.src="",p(new Dm(f.signal.reason))}),m.fetchPriority="high",m.onload=()=>{m.onerror=m.onload=null,d({data:m})},m.onerror=()=>{m.onerror=m.onload=null,!f.signal.aborted&&p(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."))},m.src=g})})(qu||(qu={})),qu.resetRequestQueue();rUe=class{constructor(e){this._transformRequestFn=e!=null?e:null}transformRequest(e,t){return this._transformRequestFn&&this._transformRequestFn(e,t)||{url:e}}setTransformRequest(e){this._transformRequestFn=e}},In=class extends xs{},hr=class extends In{},tF=class extends In{constructor(e={}){super("style.load",e)}},Yl=class extends In{constructor(e,t={}){super(e,t),this.dataType="style"}},ca=class extends In{constructor(e,t={}){super(e,t),this.dataType="source"}},bs=class extends In{preventDefault(){this._defaultPrevented=!0}get defaultPrevented(){return this._defaultPrevented}constructor(e,t,r,i={}){r=r instanceof MouseEvent?r:new MouseEvent(e,r);let a=wr.mousePos(t.getCanvas(),r),n=t.unproject(a);super(e,tr({point:a,lngLat:n,originalEvent:r},i)),this._defaultPrevented=!1,this.target=t}},$2=class extends In{preventDefault(){this._defaultPrevented=!0}get defaultPrevented(){return this._defaultPrevented}constructor(e,t,r){let i=e==="touchend"?r.changedTouches:r.touches,a=wr.touchPos(t.getCanvasContainer(),i),n=a.map(l=>t.unproject(l)),o=a.reduce((l,u,c,h)=>l.add(u.div(h.length)),new Be(0,0)),s=t.unproject(o);super(e,{points:a,point:o,lngLats:n,lngLat:s,originalEvent:r}),this._defaultPrevented=!1}},xle=class extends In{preventDefault(){this._defaultPrevented=!0}get defaultPrevented(){return this._defaultPrevented}constructor(e,t){super("wheel",{originalEvent:t}),this._defaultPrevented=!1}},rF=class extends In{},ble=class extends In{constructor(e={}){super("terrain",e)}},wle=class extends In{constructor(e={}){super("projectiontransition",e)}},Qw=class extends In{},Ale=class extends In{constructor(e={}){super("styleimagemissing",e)}};fUe=class extends Xa{constructor(){super(),this.images={},this.updateVersion=0,this.loaded=!1,this.requestors=[],this.missingImageResolver=null,this._spriteImagesIds={},this._imagesIds=null,this._renderCallbacksDispatchedThisFrame={}}destroy(){for(let e of Object.keys(this.images))this.removeImage(e);this._spriteImagesIds={}}isLoaded(){return this.loaded}setLoaded(e){if(this.loaded!==e&&(this.loaded=e,e)){for(let{ids:t,promiseResolve:r}of this.requestors)r(this._getImagesForIds(t));this.requestors=[]}}getImage(e){let t=this.images[e];if(t&&!t.data&&t.spriteData){let r=t.spriteData;t.data=new aa({width:r.width,height:r.height},r.context.getImageData(r.x,r.y,r.width,r.height).data),t.spriteData=null}return t}addImage(e,t){if(this.images[e])throw Error(`Image id ${e} already exist, use updateImage instead`);this._validate(e,t)&&(this.images[e]=t,this._imagesIds=null,t.isWebGLImage&&this.updateImage(e,t,!1))}_validate(e,t){let r=!0,i=t.data||t.spriteData;return this._validateStretch(t.stretchX,i==null?void 0:i.width)||(this.fire(new sr(Error(`Image "${e}" has invalid "stretchX" value`))),r=!1),this._validateStretch(t.stretchY,i==null?void 0:i.height)||(this.fire(new sr(Error(`Image "${e}" has invalid "stretchY" value`))),r=!1),this._validateContent(t.content,t)||(this.fire(new sr(Error(`Image "${e}" has invalid "content" value`))),r=!1),r}_validateStretch(e,t){if(!e)return!0;let r=0;for(let i of e){if(i[0]=e[1]}updateImage(e,t,r=!0){var a;let i=this.images[e];if(r){let n=i.data||i.spriteData;if(n.width!==t.data.width||n.height!==t.data.height)throw Error(`size mismatch between old image (${n.width}x${n.height}) and new image (${t.data.width}x${t.data.height}).`)}t.version=((a=i.version)!=null?a:0)+1,this.images[e]=t,this.updateVersion++}removeImage(e){var r;let t=this.images[e];t&&(delete this.images[e],this._imagesIds=null,(r=t.userImage)!=null&&r.onRemove&&t.userImage.onRemove())}listImages(){var e;return(e=this._imagesIds)!=null||(this._imagesIds=Object.keys(this.images)),this._imagesIds}_getSpriteImageId(e,t){return e==="default"?t:`${e}:${t}`}setSpriteImages(e,t){var o;let r=(o=this._spriteImagesIds[e])!=null?o:[],i=[];for(let s in t){let l=this._getSpriteImageId(e,s);i.push(l),l in this.images?this.updateImage(l,t[s],!1):this.addImage(l,t[s])}let a=new Set(i),n=r.filter(s=>!a.has(s));for(let s of n)this.removeImage(s);return this._spriteImagesIds[e]=i,{loaded:i,removed:n}}removeSpriteImages(e){var r;let t=(r=this._spriteImagesIds[e])!=null?r:[];for(let i of t)this.removeImage(i);return delete this._spriteImagesIds[e],t}removeAllSpriteImages(){let e=Object.values(this._spriteImagesIds).flat();for(let t of e)this.removeImage(t);return this._spriteImagesIds={},e}setMissingImageResolver(e){this.missingImageResolver=e}getImages(e){return new Promise((t,r)=>{let i=!0;if(!this.isLoaded())for(let a of e)this.images[a]||(i=!1);this.isLoaded()||i?t(this._getImagesForIds(e)):this.requestors.push({ids:e,promiseResolve:t})})}_getImagesForIds(e){return Kt(this,null,function*(){var a;let t=new Set(e.filter(n=>!this.getImage(n))),r=this.missingImageResolver;r&&(yield Promise.allSettled(Array.from(t,n=>r(n))));let i={};for(let n of e){let o=this.getImage(n);o&&(t.delete(n),i[n]={data:o.data.clone(),pixelRatio:o.pixelRatio,sdf:o.sdf,version:o.version,stretchX:o.stretchX,stretchY:o.stretchY,content:o.content,textFitWidth:o.textFitWidth,textFitHeight:o.textFitHeight,hasRenderCallback:!!((a=o.userImage)!=null&&a.render),isWebGLImage:o.isWebGLImage})}for(let n of t)this.fire(new Ale({id:n})),$r(`Image "${n}" could not be loaded. Please make sure you have added the image before it is needed with map.addImage(), resolved it with map.setMissingStyleImageResolver(), or included it in a "sprite" property in your style.`);return i})}beginFrame(){this._renderCallbacksDispatchedThisFrame={}}dispatchRenderCallbacks(e){for(let t of e){if(this._renderCallbacksDispatchedThisFrame[t])continue;this._renderCallbacksDispatchedThisFrame[t]=!0;let r=this.getImage(t);r||$r(`Image with ID: "${t}" was not found`),uoe(r)&&this.updateImage(t,r)}}cloneImages(){let e={};for(let t in this.images){let r=this.images[t];e[t]=Gr(nr({},r),{data:r.data?r.data.clone():null})}return e}},dUe=class{constructor(e){this._imageManager=e,this._entries={},this._image=new aa({width:1,height:1}),this._dirty=!0}destroy(){this._texture&&(this._texture=(this._texture.destroy(),null)),this._entries={},this._image=new aa({width:1,height:1}),this._dirty=!0}getPixelSize(){let{width:e,height:t}=this._image;return{width:e,height:t}}getPattern(e){let t=this._imageManager.getImage(e);if(!t)return null;let r=this._entries[e];if((r==null?void 0:r.image)!==t){let i={w:t.data.width+2,h:t.data.height+2,x:0,y:0};this._entries[e]={bin:i,position:new Pw(i,t),image:t}}else if(r.position.version!==t.version)r.position.version=t.version;else return r.position;return this._update(),this._entries[e].position}bind(e){let t=e.gl;this._texture?this._dirty&&(this._dirty=(this._texture.update(this._image),!1)):(this._texture=new cn(e,this._image,t.RGBA),this._dirty=!1),this._texture.bind(t.LINEAR,t.CLAMP_TO_EDGE)}_update(){for(let a in this._entries)this._imageManager.getImage(a)||delete this._entries[a];let e=[];for(let a in this._entries)e.push(this._entries[a].bin);let{w:t,h:r}=hC(e),i=this._image;i.resize({width:t||1,height:r||1});for(let a in this._entries){let{bin:n}=this._entries[a],o=n.x+1,s=n.y+1,l=this._entries[a].image.data,u=l.width,c=l.height;aa.copy(l,i,{x:0,y:0},{x:o,y:s},{width:u,height:c}),aa.copy(l,i,{x:0,y:c-1},{x:o,y:s-1},{width:u,height:1}),aa.copy(l,i,{x:0,y:0},{x:o,y:s+c},{width:u,height:1}),aa.copy(l,i,{x:u-1,y:0},{x:o-1,y:s},{width:1,height:c}),aa.copy(l,i,{x:0,y:0},{x:o+u,y:s},{width:1,height:c})}this._dirty=!0}},iF=1114111,pUe={start:0,end:iF},mUe=0;yUe=class{constructor(e){this.requestManager=e,this._faces={},this._registered=new Set}setFontFaces(e){this._unregisterAll(),this._faces={};for(let[t,r]of Object.entries(e!=null?e:{})){let i=Array.isArray(r)?r:[r];this._faces[t]=i.map(a=>this._declareFontFace(t,a)).filter(a=>a!==null)}}hasFontFaces(){return Object.keys(this._faces).length>0}getFontFamily(e,t){return Kt(this,null,function*(){var r,i;for(let a of e.split(","))for(let n of(r=this._faces[a.trim()])!=null?r:[])if(gUe(n,t)&&((i=n.loaded)!=null||(n.loaded=this._loadFontFace(n)),yield n.loaded))return n.family;return null})}_declareFontFace(e,t){let r=typeof t=="string"?{url:t}:t;if(typeof(r==null?void 0:r.url)!="string")return $r(`Ignoring the font face declared for "${e}": it has no URL.`),null;let i=`maplibre-gl-font-face-${mUe++}`,a=r["unicode-range"];if(!(a!=null&&a.length))return{url:r.url,ranges:[pUe],family:i};let n=[];for(let o of a){let s=vUe(o);if(!s){$r(`Ignoring the unicode range "${o}" of the font face at ${r.url}: it is not a valid range.`);continue}n.push(s)}return n.length?{url:r.url,ranges:n,family:i}:null}_loadFontFace(e){return Kt(this,null,function*(){if(typeof FontFace>"u"||typeof document>"u"||!document.fonts)return $r(`Ignoring the font face at ${e.url}: this environment has no CSS Font Loading API.`),!1;let t;try{return t=new FontFace(e.family,yield this._downloadFontFile(e.url)),Object.values(this._faces).some(r=>r.includes(e))?(document.fonts.add(t),this._registered.add(t),yield t.load(),!0):!1}catch(r){return t&&this._unregister(t),$r(`Ignoring the font face at ${e.url}: ${Hn(r).message}`),!1}})}_downloadFontFile(e){return Kt(this,null,function*(){let t=yield this.requestManager.transformRequest(e,"Glyphs"),r=yield Mk(t,new AbortController);if(!(r!=null&&r.data))throw Error(`the response was empty for the font file at ${e}`);return r.data})}_unregister(e){var t;(t=document.fonts)==null||t.delete(e),this._registered.delete(e)}_unregisterAll(){var e;for(let t of this._registered)(e=document.fonts)==null||e.delete(t);this._registered.clear()}destroy(){this._unregisterAll(),this._faces={}}},aF=1e20,bF=new Float64Array(256);for(let e=0;e<256;e++){let t=.5-(e/255)**.45454545454545453;bF[e]=t*Math.abs(t)}bF[255]=-1e20;_Ue=class{constructor({fontSize:e=24,buffer:t=3,radius:r=8,cutoff:i=.25,fontFamily:a="sans-serif",fontWeight:n="normal",fontStyle:o="normal",lang:s=null}={}){this.buffer=t,this.radius=r,this.cutoff=i,this.lang=s;let l=this.size=e+t*4,u=this._createCanvas(l),c=this.ctx=u.getContext("2d",{willReadFrequently:!0});c.font=`${o} ${n} ${e}px ${a}`,c.textBaseline="alphabetic",c.textAlign="left",c.fillStyle="black",this.gridOuter=new Float64Array(l*l),this.gridInner=new Float64Array(l*l),this.f=new Float64Array(l),this.z=new Float64Array(l+1),this.v=new Uint16Array(l)}_createCanvas(e){if(typeof OffscreenCanvas<"u")return new OffscreenCanvas(e,e);let t=document.createElement("canvas");return t.width=t.height=e,t}draw(e){let{width:t,actualBoundingBoxAscent:r,actualBoundingBoxDescent:i,actualBoundingBoxLeft:a,actualBoundingBoxRight:n}=this.ctx.measureText(e),o=Math.ceil(r),s=Math.floor(-a),l=Math.max(0,Math.min(this.size-this.buffer,Math.ceil(n)-s)),u=Math.max(0,Math.min(this.size-this.buffer,o+Math.ceil(i))),c=l+2*this.buffer,h=u+2*this.buffer,f=Math.max(c*h,0),d=new Uint8ClampedArray(f),p={data:d,width:c,height:h,glyphWidth:l,glyphHeight:u,glyphTop:o,glyphLeft:s,glyphAdvance:t};if(l===0||u===0)return p;let{ctx:m,buffer:g,gridInner:y,gridOuter:x}=this;this.lang&&(m.lang=this.lang),m.clearRect(g,g,l,u),m.fillText(e,g-s,g+o);let w=m.getImageData(g,g,l,u);x.fill(aF,0,f),y.fill(0,0,f);let _=3;for(let S=0;S{let r=new _Ue(e);return r.buffer=t,r},wUe=class{constructor(e,t,r,i=bUe){this.requestManager=e,this.localIdeographFontFamily=t,this.entries={},this.lang=r,this.fontFaceManager=new yUe(e),this.createRasterizer=i}setURL(e){this.url=e}setFontFaces(e){this.fontFaceManager.setFontFaces(e),this.entries={}}getGlyphs(e){return Kt(this,null,function*(){var a;let t=[];for(let n in e)for(let o in e[n])for(let s of e[n][o])t.push(this._getAndCacheGlyphsPromise(n,s,o));let r=yield Promise.all(t),i={};for(let{stack:n,id:o,variant:s,glyph:l}of r)i[n]||(i[n]={}),(a=i[n])[s]||(a[s]={}),i[n][s][o]=l&&{id:l.id,bitmap:l.bitmap.clone(),metrics:l.metrics};return i})}_getAndCacheGlyphsPromise(e,t,r){return Kt(this,null,function*(){var l,u,c;(u=(l=this.entries)[e])!=null||(l[e]={glyphs:{default:{}},requests:{},ranges:{}});let i=this.entries[e],a=(c=i.glyphs)[r]||(c[r]={}),n=a[t];if(n!==void 0)return{stack:e,id:t,variant:r,glyph:n};if(r!=="default")return a[t]=null,{stack:e,id:t,variant:r,glyph:null};let o=t.codePointAt(0),s=this.fontFaceManager.hasFontFaces()?yield this.fontFaceManager.getFontFamily(e,o):null;return s?(n=a[t]=yield this._drawGlyph(i,e,t,s),{stack:e,id:t,variant:r,glyph:n}):!this.url||T2(t)||this._charUsesLocalIdeographFontFamily(o)?(n=a[t]=yield this._drawGlyph(i,e,t),{stack:e,id:t,variant:r,glyph:n}):Gr(nr({},yield this._downloadAndCacheRangePromise(e,t)),{variant:r})})}_downloadAndCacheRangePromise(e,t){return Kt(this,null,function*(){var n;let r=t.codePointAt(0),i=this.entries[e],a=Math.floor(r/256);if(i.ranges[a])return{stack:e,id:t,glyph:null};(n=i.requests)[a]||(n[a]=this._loadGlyphRange(e,a));try{let o=yield i.requests[a];for(let s in o)i.glyphs.default[String.fromCodePoint(+s)]=o[+s];return i.ranges[a]=!0,{stack:e,id:t,glyph:o[r]||null}}catch(o){let s=i.glyphs.default[t]=yield this._drawGlyph(i,e,t);return this._warnOnMissingGlyphRange(s,a,r,Hn(o)),{stack:e,id:t,glyph:s}}})}_loadGlyphRange(e,t){return Kt(this,null,function*(){let r=t*256,i=r+255,a=yield this.requestManager.transformRequest(this.url.replace("{fontstack}",e).replace("{range}",`${r}-${i}`),"Glyphs"),n=yield Mk(a,new AbortController);if(!(n!=null&&n.data))throw Error(`Could not load glyph range. range: ${t}, ${r}-${i}`);let o={};for(let s of loe(n.data))o[s.id]=s;return o})}_warnOnMissingGlyphRange(e,t,r,i){let a=t*256,n=a+255,o=r.toString(16).padStart(4,"0").toUpperCase();$r(`Unable to load glyph range ${t}, ${a}-${n}. Rendering codepoint U+${o} locally instead. ${i}`)}_charUsesLocalIdeographFontFamily(e){return!!this.localIdeographFontFamily&&Qne(e)}_drawGlyph(e,t,r,i){return Kt(this,null,function*(){let a=(yield this._getTinySDF(e,t,r,i)).draw(r),n=new RegExp("^\\p{gc=Cf}+$","u").test(r);return{id:r.codePointAt(0),bitmap:new Dw({width:a.width||60,height:a.height||60},a.data),metrics:{width:n?0:a.glyphWidth/2||24,height:a.glyphHeight/2||24,left:a.glyphLeft/2+.5||0,top:a.glyphTop/2-27.5||-8,advance:n?0:a.glyphAdvance/2||24,isDoubleResolution:!0}}})}_getTinySDF(e,t,r,i){var l,u,c,h;let a=T2(r);if(i){let f=a?"clusterTinySDFs":"fontFaceTinySDFs";return(l=e[f])!=null||(e[f]={}),(u=e[f])[i]||(u[i]=this._createTinySDF(i,!1,a?3:1)),e[f][i]}let n=t===xUe&&this.localIdeographFontFamily!==""&&this._charUsesLocalIdeographFontFamily(r.codePointAt(0)),o=n?this.localIdeographFontFamily:t;if(a)return(c=e.clusterTinySDFs)!=null||(e.clusterTinySDFs={}),(h=e.clusterTinySDFs)[o]||(h[o]=this._createTinySDF(o,!0,3)),e.clusterTinySDFs[o];let s=n?"ideographTinySDF":"tinySDF";return e[s]||(e[s]=this._createTinySDF(o)),e[s]}_createTinySDF(e,t=!0,r=1){return Kt(this,null,function*(){var s;let i=e?e.split(","):[];i.push("sans-serif");let a=i.map(l=>/[-\w]+/.test(l)?l:`'${CSS.escape(l)}'`).join(","),n=t?this._fontWeight(i[0]):void 0,o=t?this._fontStyle(i[0]):"normal";if(typeof document<"u"&&((s=document.fonts)!=null&&s.load))try{yield document.fonts.load(`${o} ${n||"normal"} 48px ${a}`)}catch(l){$r(`Failed to load font "${a}": ${Hn(l).message}`)}return this.createRasterizer({fontSize:48,buffer:Math.max(6,Math.ceil(48*(r-1)/4)),radius:16,cutoff:.25,fontFamily:a,fontWeight:n,fontStyle:o,lang:this.lang},6)})}_fontStyle(e){return/italic/i.test(e)?"italic":/oblique/i.test(e)?"oblique":"normal"}_fontWeight(e){let t={thin:100,hairline:100,"extra light":200,"ultra light":200,light:300,normal:400,regular:400,medium:500,semibold:600,demibold:600,bold:700,"extra bold":800,"ultra bold":800,black:900,heavy:900,"extra black":950,"ultra black":950},r;for(let[i,a]of Object.entries(t))RegExp(`\\b${i}\\b`,"i").test(e)&&(r=`${a}`);return r}destroy(){for(let e in this.entries){let t=this.entries[e];t.tinySDF=null,t.ideographTinySDF=null,t.fontFaceTinySDFs={},t.glyphs={default:{}},t.requests={},t.ranges={}}this.entries={},this.fontFaceManager.destroy()}},AUe=()=>vse||(vse=new Fn({anchor:new Ut(Xe.light.anchor,"anchor"),position:new Ut(Xe.light.position,"position"),color:new Ut(Xe.light.color,"color"),intensity:new Ut(Xe.light.intensity,"intensity")})),TUe=class extends Xa{constructor(e,t){super(),this._transitionable=new x2(AUe(),"light",t),this.setLight(e),this._transitioning=this._transitionable.untransitioned()}getLight(){return this._transitionable.serialize()}getCartesianPosition(){return pie(this.properties.get("position"))}setLight(e,t={}){this._validate(Wo.light,e,t)||this._transitionable.setValues(e)}updateTransitions(e){this._transitioning=this._transitionable.transitioned(e,this._transitioning)}hasTransition(){return this._transitioning.hasTransition()}applyGlobalStateChange(e,t,r){this._transitioning=this._transitionable.applyGlobalStateChange(e,t,this._transitioning,r)}recalculate(e){this.properties=this._transitioning.possiblyEvaluate(e)}_validate(e,t,r){return km(this,e,{value:t},r)}},MUe=()=>gse||(gse=new Fn({"sky-color":new Ut(Xe.sky["sky-color"],"sky-color"),"horizon-color":new Ut(Xe.sky["horizon-color"],"horizon-color"),"fog-color":new Ut(Xe.sky["fog-color"],"fog-color"),"fog-ground-blend":new Ut(Xe.sky["fog-ground-blend"],"fog-ground-blend"),"horizon-fog-blend":new Ut(Xe.sky["horizon-fog-blend"],"horizon-fog-blend"),"sky-horizon-blend":new Ut(Xe.sky["sky-horizon-blend"],"sky-horizon-blend"),"atmosphere-blend":new Ut(Xe.sky["atmosphere-blend"],"atmosphere-blend")})),DUe=class extends Xa{constructor(e,t){super(),this._transitionable=new x2(MUe(),"sky",t),this.setSky(e),this._transitioning=this._transitionable.untransitioned(),this.recalculate(new Si(0))}setSky(e,t={}){return!this._validate(Wo.sky,e,t)&&(e||(e={"sky-color":"transparent","horizon-color":"transparent","fog-color":"transparent","fog-ground-blend":1,"atmosphere-blend":0}),this._transitionable.setValues(e),!0)}getSky(){return this._transitionable.serialize()}updateTransitions(e){this._transitioning=this._transitionable.transitioned(e,this._transitioning)}hasTransition(){return this._transitioning.hasTransition()}applyGlobalStateChange(e,t,r){this._transitioning=this._transitionable.applyGlobalStateChange(e,t,this._transitioning,r)}recalculate(e){this.properties=this._transitioning.possiblyEvaluate(e)}_validate(e,t,r={}){return km(this,e,{value:t},r)}calculateFogBlendOpacity(e){return e<60?0:e<70?(e-60)/10:1}},SUe=class{constructor(e,t){this.width=e,this.height=t,this.nextRow=0,this.data=new Uint8Array(this.width*this.height),this.dashEntry={}}getDash(e,t){var i;let r=e.join(",")+String(t);return(i=this.dashEntry)[r]||(i[r]=this.addDash(e,t)),this.dashEntry[r]}getDashRanges(e,t,r){let i=e.length%2==1,a=[],n=i?-e[e.length-1]*r:0,o=e[0]*r,s=!0;a.push({left:n,right:o,isDash:s,zeroLength:e[0]===0});let l=e[0];for(let u=1;u1&&(l=e[++s]);let c=Math.abs(u-l.left),h=Math.abs(u-l.right),f=Math.min(c,h),d,p=a/r*(i+1);if(l.isDash){let m=i-Math.abs(p);d=Math.sqrt(f*f+m*m)}else d=i-Math.sqrt(f*f+p*p);this.data[o+u]=Math.max(0,Math.min(255,d+128))}}}addRegularDash(e){for(let o=e.length-1;o>=0;--o){let s=e[o],l=e[o+1];s.zeroLength?e.splice(o,1):(l==null?void 0:l.isDash)===s.isDash&&(l.left=s.left,e.splice(o,1))}let t=e[0],r=e[e.length-1];t.isDash===r.isDash&&(t.left=r.left-this.width,r.right=t.right+this.width);let i=this.width*this.nextRow,a=0,n=e[a];for(let o=0;o1&&(n=e[++a]);let s=Math.abs(o-n.left),l=Math.abs(o-n.right),u=Math.min(s,l),c=n.isDash?u:-u;this.data[i+o]=Math.max(0,Math.min(255,c+128))}}addDash(e,t){let r=t?7:0,i=2*r+1;if(this.nextRow+i>this.height)return $r("LineAtlas out of space"),null;let a=0;for(let o of e)a+=o;if(a!==0){let o=this.width/a,s=this.getDashRanges(e,this.width,o);t?this.addRoundDash(s,o,r):this.addRegularDash(s)}let n={y:this.nextRow+r,height:2*r,width:a};return this.nextRow+=i,this.dirty=!0,n}bind(e){let t=e.gl;this.texture?(t.bindTexture(t.TEXTURE_2D,this.texture),this.dirty&&(this.dirty=!1,t.texSubImage2D(t.TEXTURE_2D,0,0,0,this.width,this.height,t.ALPHA,t.UNSIGNED_BYTE,this.data))):(this.texture=t.createTexture(),t.bindTexture(t.TEXTURE_2D,this.texture),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_S,t.REPEAT),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_T,t.REPEAT),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,t.LINEAR),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,t.LINEAR),t.texImage2D(t.TEXTURE_2D,0,t.ALPHA,this.width,this.height,0,t.ALPHA,t.UNSIGNED_BYTE,this.data))}};wF="maplibre_preloaded_worker_pool",d6=class Dle{constructor(){this.active={},this.workersPromise=null}acquire(t){return Kt(this,null,function*(){if(this.active[t]=!0,!this.workersPromise){let r=[];for(;r.length{for(let a of i)a.terminate()})}}isPreloaded(){return!!this.active[wF]}numActive(){return Object.keys(this.active).length}},IUe=Math.floor(ws.hardwareConcurrency/2);d6.workerCount=vie(globalThis)?Math.max(Math.min(IUe,3),1):1;Sle=class extends Xa{constructor(e,t){super(),this.workerPool=e,this.actors=[],this.currentActor=0,this.id=t,this.removed=!1,this.workerErrorSubscriptions=[],this.actorsPromise=this.initActors(t)}initActors(e){return Kt(this,null,function*(){let t=yield this.workerPool.acquire(e);if(this.removed)return[];if(this.actors=t.map((r,i)=>{this.workerErrorSubscriptions.push(Uy(r,"error",()=>{this.fire(new sr(Error("Worker failed to load. Check that the worker URL is correct.")))},!1));let a=new Eoe(r,e);return a.name=`Worker ${i}`,a}),!this.actors.length)throw Error("No actors found");return this.actors})}broadcast(e,t){return Kt(this,null,function*(){let r=yield this.actorsPromise;return Promise.all(r.map(i=>i.sendAsync({type:e,data:t})))})}getActor(){return Kt(this,null,function*(){let e=yield this.actorsPromise;return this.currentActor=(this.currentActor+1)%e.length,e[this.currentActor]})}waitForInitComplete(){return Kt(this,null,function*(){this.actors.length===0&&(yield this.actorsPromise)})}getReadyActor(){return this.currentActor=(this.currentActor+1)%this.actors.length,this.actors[this.currentActor]}remove(e=!0){this.removed=!0;for(let t of this.actors)t.remove();for(let t of this.workerErrorSubscriptions)t.unsubscribe();this.actors=[],this.workerErrorSubscriptions=[],this.setEventedParent(null),e&&this.workerPool.release(this.id)}registerMessageHandler(e,t){return Kt(this,null,function*(){let r=yield this.actorsPromise;for(let i of r)i.registerMessageHandler(e,t)})}unregisterMessageHandler(e){return Kt(this,null,function*(){let t=yield this.actorsPromise;for(let r of t)r.unregisterMessageHandler(e)})}};Ou=class Dh{constructor(t,r){t&&(r?this.setSouthWest(t).setNorthEast(r):Array.isArray(t)&&(t.length===4?this.setSouthWest([t[0],t[1]]).setNorthEast([t[2],t[3]]):this.setSouthWest(t[0]).setNorthEast(t[1])))}setNorthEast(t){return this._ne=t instanceof ar?new ar(t.lng,t.lat):ar.convert(t),this}setSouthWest(t){return this._sw=t instanceof ar?new ar(t.lng,t.lat):ar.convert(t),this}extend(t){let r=this._sw,i=this._ne,a,n;if(t instanceof ar)a=t,n=t;else if(t instanceof Dh){if(a=t._sw,n=t._ne,!a||!n)return this}else{if(Array.isArray(t)){if(t.length===4||t.every(Array.isArray)){let o=t;return this.extend(Dh.convert(o))}{let o=t;return this.extend(ar.convert(o))}}return t&&("lng"in t||"lon"in t)&&"lat"in t?this.extend(ar.convert(t)):this}return!r&&!i?(this._sw=new ar(a.lng,a.lat),this._ne=new ar(n.lng,n.lat)):(r.lng=Math.min(a.lng,r.lng),r.lat=Math.min(a.lat,r.lat),i.lng=Math.max(n.lng,i.lng),i.lat=Math.max(n.lat,i.lat)),this}getCenter(){return new ar((this._sw.lng+this._ne.lng)/2,(this._sw.lat+this._ne.lat)/2)}getSouthWest(){return this._sw}getNorthEast(){return this._ne}getNorthWest(){return new ar(this.getWest(),this.getNorth())}getSouthEast(){return new ar(this.getEast(),this.getSouth())}getWest(){return this._sw.lng}getSouth(){return this._sw.lat}getEast(){return this._ne.lng}getNorth(){return this._ne.lat}toArray(){return[this._sw.toArray(),this._ne.toArray()]}toString(){return`LngLatBounds(${this._sw.toString()}, ${this._ne.toString()})`}isEmpty(){return!(this._sw&&this._ne)}contains(t){let{lng:r,lat:i}=ar.convert(t),a=this._sw.lat<=i&&i<=this._ne.lat,n=this._sw.lng<=r&&r<=this._ne.lng;return this._sw.lng>this._ne.lng&&(n=this._sw.lng>=r&&r>=this._ne.lng),a&&n}intersects(t){if(t=Dh.convert(t),!(t.getNorth()>=this.getSouth()&&t.getSouth()<=this.getNorth()))return!1;let r=Math.abs(this.getEast()-this.getWest()),i=Math.abs(t.getEast()-t.getWest());if(r>=360||i>=360)return!0;let a=Js(this.getWest(),-180,180),n=Js(this.getEast(),-180,180),o=Js(t.getWest(),-180,180),s=Js(t.getEast(),-180,180),l=a>n,u=o>s;return l&&u?!0:l?s>=a||o<=n:u?n>=o||a<=s:o<=n&&s>=a}static convert(t){return t instanceof Dh||!t?t:new Dh(t)}static fromLngLat(t,r=0){let i=360*r/40075017,a=i/Math.cos(Math.PI/180*t.lat);return new Dh(new ar(t.lng-a,t.lat-i),new ar(t.lng+a,t.lat+i))}adjustAntiMeridian(){let t=new ar(this._sw.lng,this._sw.lat),r=new ar(this._ne.lng,this._ne.lat);return t.lng>r.lng?new Dh(t,new ar(r.lng+360,r.lat)):new Dh(t,r)}},Fle=class{constructor(e,t,r){this.bounds=Ou.convert(this.validateBounds(e)),this.minzoom=t||0,this.maxzoom=r||24}validateBounds(e){return!Array.isArray(e)||e.length!==4?[-180,-90,180,90]:[Math.max(-180,e[0]),Math.max(-90,e[1]),Math.min(180,e[2]),Math.min(90,e[3])]}contains(e){let t=2**e.z,r={minX:Math.floor(Kd(this.bounds.getWest())*t),minY:Math.floor(Jd(this.bounds.getNorth())*t),maxX:Math.ceil(Kd(this.bounds.getEast())*t),maxY:Math.ceil(Jd(this.bounds.getSouth())*t)};return e.x>=r.minX&&e.x=r.minY&&e.y{this.tiles=e,this._options.tiles=e}),this}setUrl(e){return this.setSourceProperty(()=>{this.url=e,this._options.url=e}),this}onRemove(){this._tileJSONRequest&&(this._tileJSONRequest=(this._tileJSONRequest.abort(),null))}serialize(){return tr({},this._options)}loadTile(e){return Kt(this,null,function*(){let t=e.tileID.canonical.url(this.tiles,this.map.getPixelRatio(),this.scheme),r={request:yield this.map._requestManager.transformRequest(t,"Tile"),uid:e.uid,tileID:e.tileID,zoom:e.tileID.overscaledZ,tileSize:this.tileSize*e.tileID.overscaleFactor(),type:this.type,source:this.id,pixelRatio:this.map.getPixelRatio(),showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId,subdivisionGranularity:this.map.style.projection.subdivisionGranularity,encoding:this.encoding,overzoomParameters:yield this._getOverzoomParameters(e),etag:e.etag};if(r.request.collectResourceTiming=this._collectResourceTiming,yield this.dispatcher.waitForInitComplete(),e.aborted)return;let i="RT";if(!e.actor||e.state==="expired")e.actor=this.dispatcher.getReadyActor(),i="LT";else if(e.state==="loading")return new Promise((a,n)=>{e.reloadPromise={resolve:a,reject:n}});e.abortController=new AbortController;try{let a=yield e.actor.sendAsync({type:i,data:r},e.abortController);if(delete e.abortController,e.aborted)return;this._afterTileLoadWorkerResponse(e,a);let n={};return a!=null&&a.etagUnmodified&&(n.unmodified=!0),n}catch(a){if(delete e.abortController,e.aborted||bh(a))return;if(a&&a.status!==404)throw a;this._afterTileLoadWorkerResponse(e,null)}})}_getOverzoomParameters(e){return Kt(this,null,function*(){if(e.tileID.canonical.z<=this.maxzoom||this.map._zoomLevelsToOverscale===void 0)return;let t=e.tileID.scaledTo(this.maxzoom).canonical,r=t.url(this.tiles,this.map.getPixelRatio(),this.scheme);return{maxZoomTileID:t,overzoomRequest:yield this.map._requestManager.transformRequest(r,"Tile")}})}_afterTileLoadWorkerResponse(e,t){if(t!=null&&t.resourceTiming&&(e.resourceTiming=t.resourceTiming),t&&this.map._refreshExpiredTiles&&e.setExpiryData(t),e.etag=t==null?void 0:t.etag,e.loadVectorData(t,this.map.painter),e.reloadPromise){let r=e.reloadPromise;e.reloadPromise=null,this.loadTile(e).then(r.resolve).catch(r.reject)}}abortTile(e){return Kt(this,null,function*(){e.abortController&&(e.abortController.abort(),delete e.abortController),e.actor&&(yield e.actor.sendAsync({type:"AT",data:{uid:e.uid,type:this.type,source:this.id}}))})}unloadTile(e){return Kt(this,null,function*(){e.unloadVectorData(),e.actor&&(yield e.actor.sendAsync({type:"RMT",data:{uid:e.uid,type:this.type,source:this.id}}))})}hasTransition(){return!1}},MF=class extends Xa{constructor(e,t,r,i){super(),this.id=e,this.dispatcher=r,this.setEventedParent(i),this.type="raster",this.minzoom=0,this.maxzoom=22,this.roundZoom=!0,this.scheme="xyz",this.tileSize=512,this._loaded=!1,this._premultiplyAlpha=!0,this._options=tr({type:"raster"},t),tr(this,Mm(t,["url","scheme","tileSize"]))}load(e=!1){return Kt(this,null,function*(){this._loaded=!1,this.fire(new ca("dataloading")),this._tileJSONRequest=new AbortController;try{let t=yield Cle(this._options,this.map._requestManager,this._tileJSONRequest,this.map._ownerWindow);this._tileJSONRequest=null,this._loaded=!0,t&&(tr(this,t),t.bounds&&(this.tileBounds=new Fle(t.bounds,this.minzoom,this.maxzoom)),this.fire(new ca("data",{sourceDataType:"metadata"})),this.fire(new ca("data",{sourceDataType:"content",sourceDataChanged:e})))}catch(t){this._tileJSONRequest=null,this._loaded=!0,bh(t)||this.fire(new sr(Hn(t)))}})}loaded(){return this._loaded}onAdd(e){this.map=e,this.load()}onRemove(){this._tileJSONRequest&&(this._tileJSONRequest=(this._tileJSONRequest.abort(),null))}setSourceProperty(e){this._tileJSONRequest&&(this._tileJSONRequest=(this._tileJSONRequest.abort(),null)),e(),this.load(!0)}setTiles(e){return this.setSourceProperty(()=>{this.tiles=e,this._options.tiles=e}),this}setUrl(e){return this.setSourceProperty(()=>{this.url=e,this._options.url=e}),this}serialize(){return tr({},this._options)}setPremultiplyAlpha(e){return this._premultiplyAlpha===e||this.setSourceProperty(()=>{this._premultiplyAlpha=e}),this}hasTile(e){return!this.tileBounds||this.tileBounds.contains(e.canonical)}loadTile(e){return Kt(this,null,function*(){var a;let t=e.tileID.canonical.url(this.tiles,this.map.getPixelRatio(),this.scheme),r=this._premultiplyAlpha,i=r?void 0:{premultiplyAlpha:"none"};e.abortController=new AbortController;try{let n=yield qu.transformAndGetImage(this.map._requestManager,t,"Tile",e.abortController,this.map._refreshExpiredTiles,i);if(delete e.abortController,e.aborted){e.state="unloaded";return}if(n){this.map._refreshExpiredTiles&&(n.cacheControl||n.expires)&&e.setExpiryData({cacheControl:n.cacheControl,expires:n.expires});let o=this.map.painter.context,s=o.gl,l=(a=n.data)!=null?a:new aa({width:1,height:1},new Uint8Array(4));e.texture=this.map.painter.getTileTexture(l.width),e.texture?e.texture.update(l,{useMipmap:!0,premultiply:r}):(e.texture=new cn(o,l,s.RGBA,{useMipmap:!0,premultiply:r}),e.texture.bind(s.LINEAR,s.CLAMP_TO_EDGE,s.LINEAR_MIPMAP_NEAREST)),e.state="loaded"}}catch(n){if(delete e.abortController,e.aborted)e.state="unloaded";else if(n)throw e.state="errored",n}})}abortTile(e){return Kt(this,null,function*(){e.abortController&&(e.abortController.abort(),delete e.abortController)})}unloadTile(e){return Kt(this,null,function*(){e.texture&&this.map.painter.saveTileTexture(e.texture)})}hasTransition(){return!1}},Ile=class extends MF{constructor(e,t,r,i){super(e,t,r,i),this.type="raster-dem",this.maxzoom=22,this._options=tr({type:"raster-dem"},t),this.encoding=t.encoding||"mapbox",this.redFactor=t.redFactor,this.greenFactor=t.greenFactor,this.blueFactor=t.blueFactor,this.baseShift=t.baseShift}loadTile(e){return Kt(this,null,function*(){let t=e.tileID.canonical.url(this.tiles,this.map.getPixelRatio(),this.scheme);e.neighboringTiles=this._getNeighboringTiles(e.tileID),e.abortController=new AbortController;try{let r=yield qu.transformAndGetImage(this.map._requestManager,t,"Tile",e.abortController,this.map._refreshExpiredTiles,{colorSpaceConversion:"none"});if(delete e.abortController,e.aborted){e.state="unloaded";return}if(r){if(this.map._refreshExpiredTiles&&(r.cacheControl||r.expires)&&e.setExpiryData({cacheControl:r.cacheControl,expires:r.expires}),!r.data){e.state="loaded";return}let i=r.data,a=$f(i)&&j4()?i:yield this.readImageNow(i),n={type:this.type,uid:e.uid,source:this.id,rawImageData:a,encoding:this.encoding,redFactor:this.redFactor,greenFactor:this.greenFactor,blueFactor:this.blueFactor,baseShift:this.baseShift};if(e.actor&&e.state!=="expired"&&e.state!=="reloading")return;yield this.dispatcher.waitForInitComplete(),(!e.actor||e.state==="expired")&&(e.actor=this.dispatcher.getReadyActor()),e.dem=yield e.actor.sendAsync({type:"LDT",data:n}),e.needsHillshadePrepare=!0,e.needsTerrainPrepare=!0,e.needsColorReliefPrepare=!0,e.state="loaded"}}catch(r){if(delete e.abortController,e.aborted)e.state="unloaded";else if(r)throw e.state="errored",r}})}readImageNow(e){return Kt(this,null,function*(){if(typeof VideoFrame<"u"&&hk()){let t=e.width+4,r=e.height+4;try{return new aa({width:t,height:r},yield _ie(e,-2,-2,t,r))}catch(i){}}return ws.getImageData(e,2)})}_getNeighboringTiles(e){let t=e.canonical,r=2**t.z,i=(t.x-1+r)%r,a=t.x===0?e.wrap-1:e.wrap,n=(t.x+1+r)%r,o=t.x+1===r?e.wrap+1:e.wrap,s={};return s[new Xn(e.overscaledZ,a,t.z,i,t.y).key]={backfilled:!1},s[new Xn(e.overscaledZ,o,t.z,n,t.y).key]={backfilled:!1},t.y>0&&(s[new Xn(e.overscaledZ,a,t.z,i,t.y-1).key]={backfilled:!1},s[new Xn(e.overscaledZ,e.wrap,t.z,t.x,t.y-1).key]={backfilled:!1},s[new Xn(e.overscaledZ,o,t.z,n,t.y-1).key]={backfilled:!1}),t.y+1_se(t))}}shouldReloadTile(e,{affectedBounds:t}){if(e.state==="loading")return!0;if(e.state==="unloaded")return!1;let{buffer:r,extent:i}=this.workerOptions.geojsonVtOptions,a=XUe(e.tileID.canonical,r/i);for(let n of t)if(a.intersects(n))return!0;return!1}loaded(){return!this._isUpdatingWorker&&!this._hasPendingWorkerUpdate()}loadTile(e){return Kt(this,null,function*(){let t=e.actor?"RT":"LT";e.actor=yield this.actorPromise;let r={type:this.type,uid:e.uid,tileID:e.tileID,zoom:e.tileID.overscaledZ,maxZoom:this.maxzoom,tileSize:this.tileSize,source:this.id,pixelRatio:this.map.getPixelRatio(),showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId,subdivisionGranularity:this.map.style.projection.subdivisionGranularity};e.abortController=new AbortController;try{let i=yield(yield this.actorPromise).sendAsync({type:t,data:r},e.abortController);delete e.abortController,e.unloadVectorData(),e.aborted||e.loadVectorData(i,this.map.painter,t==="RT")}catch(i){if(delete e.abortController,e.aborted||bh(i))return;throw i}})}abortTile(e){return Kt(this,null,function*(){e.abortController&&(e.abortController.abort(),delete e.abortController),e.aborted=!0})}unloadTile(e){return Kt(this,null,function*(){e.unloadVectorData(),yield(yield this.actorPromise).sendAsync({type:"RMT",data:{uid:e.uid,type:this.type,source:this.id}})})}onRemove(){this._removed=!0,this.actorPromise.then(e=>e.sendAsync({type:"RS",data:{type:this.type,source:this.id}}))}serialize(){return tr({},this._options,{type:this.type,data:this._data.updateable?{type:"FeatureCollection",features:Array.from(this._data.updateable.values())}:this._data.url||this._data.geojson})}hasTransition(){return!1}},Bm=[0,0,1],KUe=(e,t)=>({u_tl_parent:new Lr(e,t.u_tl_parent),u_scale_parent:new Gt(e,t.u_scale_parent),u_buffer_scale:new Gt(e,t.u_buffer_scale),u_image_warp:new Io(e,t.u_image_warp),u_fade_t:new Gt(e,t.u_fade_t),u_opacity:new Gt(e,t.u_opacity),u_image0:new lr(e,t.u_image0),u_image1:new lr(e,t.u_image1),u_brightness_low:new Gt(e,t.u_brightness_low),u_brightness_high:new Gt(e,t.u_brightness_high),u_saturation_factor:new Gt(e,t.u_saturation_factor),u_contrast_factor:new Gt(e,t.u_contrast_factor),u_spin_weights:new Io(e,t.u_spin_weights),u_coords_top:new Cm(e,t.u_coords_top),u_coords_bottom:new Cm(e,t.u_coords_bottom)}),JUe=(e,t,r,i,a,n)=>({u_tl_parent:e,u_scale_parent:t,u_buffer_scale:1,u_image_warp:n,u_fade_t:r.mix,u_opacity:r.opacity*i.paint.get("raster-opacity"),u_image0:0,u_image1:1,u_brightness_low:i.paint.get("raster-brightness-min"),u_brightness_high:i.paint.get("raster-brightness-max"),u_saturation_factor:tGe(i.paint.get("raster-saturation")),u_contrast_factor:eGe(i.paint.get("raster-contrast")),u_spin_weights:QUe(i.paint.get("raster-hue-rotate")),u_coords_top:[a[0].x,a[0].y,a[1].x,a[1].y],u_coords_bottom:[a[3].x,a[3].y,a[2].x,a[2].y]});W2=class{constructor(e,t,r){this.vertexBuffer=e,this.indexBuffer=t,this.segments=r}destroy(){this.vertexBuffer.destroy(),this.indexBuffer.destroy(),this.segments.destroy(),this.vertexBuffer=null,this.indexBuffer=null,this.segments=null}},ap=wa([{name:"a_pos",type:"Int16",components:2}]),Vw=ft/128;Nm=class extends Xa{constructor(e,t,r,i){super(),this.imageWarp=Bm,this.flippedWindingOrder=!1,this._warp="auto",this._imageDirty=!1,this._subdividedQuad=!1,this._subdividedMesh=null,this.id=e,this.dispatcher=r,this.coordinates=t.coordinates,this.type="image",this.minzoom=0,this.maxzoom=22,this.tileSize=512,this.tiles={},this._loaded=!1,this.setEventedParent(i),this.options=t}load(e){return Kt(this,null,function*(){if(this.options.url===void 0){this._loaded=!0,this._finishLoading();return}this._loaded=!1,this.fire(new ca("dataloading")),this.url=this.options.url,this._abortController=new AbortController;try{let t=yield qu.transformAndGetImage(this.map._requestManager,this.url,"Image",this._abortController);this._abortController=null,this._loaded=!0,t!=null&&t.data?(this._setImage(t.data),e&&(this.coordinates=e),this._finishLoading()):this.fire(new sr(Error(`Could not load image ${this.url}: the response is empty`)))}catch(t){if(bh(t))return;this._abortController=null,this._loaded=!0,this.fire(new sr(Hn(t)))}})}loaded(){return this._loaded}updateImage(e){return this._abortController&&(this._abortController=(this._abortController.abort(),null)),"image"in e?(this._loaded=!0,this._setImage(e.image),e.coordinates&&(this.coordinates=e.coordinates),this._finishLoading(),this):e.url?(this.options.url=e.url,this.load(e.coordinates),this):this}_setImage(e){this.image=e,this._imageDirty=!0}getMesh(e,t){var r;return!this._subdividedQuad||t?null:((r=this._subdividedMesh)!=null||(this._subdividedMesh=Rle(e,{granularity:16})),this._subdividedMesh)}_disposeTexture(){var e;(e=this.texture)==null||e.destroy(),this.texture=null}_finishLoading(){this.map&&(this.setCoordinates(this.coordinates),this.fire(new ca("data",{sourceDataType:"metadata"})))}onAdd(e){this.map=e,this.load()}onRemove(){var e;this._abortController&&(this._abortController=(this._abortController.abort(),null)),this._disposeTexture(),(e=this._subdividedMesh)==null||e.destroy(),this._subdividedMesh=null,this.image=null,this.tiles={}}setWarp(e){return this._warp===e?this:(this._warp=e,this.tileCoords&&this.setCoordinates(this.coordinates),this)}getWarp(){return this._warp}setCoordinates(e){this.coordinates=e;let t=e.map(bi.fromLngLat);return this.tileID=rGe(t),this.terrainTileRanges=this._getOverlappingTileRanges(t),this.minzoom=this.maxzoom=this.tileID.z,this.tileCoords=t.map(r=>this.tileID.getTilePoint(r)._round()),this.imageWarp=aGe(this.tileCoords,this._warp),this._subdividedQuad=this.imageWarp[2]>0&&!qle(this.tileCoords),this.flippedWindingOrder=iGe(this.tileCoords),this.fire(new ca("data",{sourceDataType:"content"})),this}prepare(){if(Object.keys(this.tiles).length===0||!this.image)return;let e=this.map.painter.context,t=e.gl;this.texture?this._imageDirty&&(this.texture.update(this.image),this.texture.bind(t.LINEAR,t.CLAMP_TO_EDGE)):(this.texture=new cn(e,this.image,t.RGBA),this.texture.bind(t.LINEAR,t.CLAMP_TO_EDGE)),this._imageDirty=!1;let r=!1;for(let i in this.tiles){let a=this.tiles[i];a.state!=="loaded"&&(a.state="loaded",a.texture=this.texture,r=!0)}r&&this.fire(new ca("data",{sourceDataType:"idle",sourceId:this.id}))}loadTile(e){return Kt(this,null,function*(){var t;(t=this.tileID)!=null&&t.equals(e.tileID.canonical)?(this.tiles[String(e.tileID.wrap)]=e,e.buckets={}):e.state="errored"})}serialize(){let e={type:"image",coordinates:this.coordinates};return this.options.url!==void 0&&(e.url=this.options.url),e}hasTransition(){return!1}_getOverlappingTileRanges(e){let{minX:t,minY:r,maxX:i,maxY:a}=Gl.fromPoints(e),n={};for(let o=0;o<=25;o++){let s=2**o,l=Math.floor(t*s),u=Math.floor(r*s),c=Math.floor(i*s),h=Math.floor(a*s),f=(l%s+s)%s,d=c%s,p=Math.floor(l/s),m=Math.floor(c/s);n[o]={minWrap:p,maxWrap:m,minTileXWrapped:f,maxTileXWrapped:d,minTileY:u,maxTileY:h}}return n}};Ole=class extends Nm{constructor(e,t,r,i){super(e,t,r,i),this._onPlayingHandler=()=>{var a;(a=this.map)==null||a.triggerRepaint()},this.roundZoom=!0,this.type="video",this.options=t}load(){return Kt(this,null,function*(){this._loaded=!1;let e=this.options;this.urls=[];for(let t of e.urls)this.urls.push((yield this.map._requestManager.transformRequest(t,"Source")).url);try{let t=yield Eie(this.urls);if(this._loaded=!0,!t)return;this.video=t,this.video.loop=!0,this.video.addEventListener("playing",this._onPlayingHandler),this.map&&this.video.play(),this._finishLoading()}catch(t){this.fire(new sr(Hn(t)))}})}pause(){this.video&&this.video.pause()}play(){this.video&&this.video.play()}seek(e){if(this.video){let t=this.video.seekable;et.end(0)?this.fire(new sr(new xt(`sources.${this.id}`,null,`Playback for this video can be set only between the ${t.start(0)} and ${t.end(0)}-second mark.`))):this.video.currentTime=e}}getVideo(){return this.video}onAdd(e){this.map||(this.map=e,this.load(),this.video&&(this.video.play(),this.setCoordinates(this.coordinates)))}onRemove(){super.onRemove(),this.video&&(this.video.removeEventListener("playing",this._onPlayingHandler),this.video.pause())}prepare(){if(Object.keys(this.tiles).length===0||this.video.readyState<2)return;let e=this.map.painter.context,t=e.gl;this.texture?this.video.paused||(this.texture.bind(t.LINEAR,t.CLAMP_TO_EDGE),t.texSubImage2D(t.TEXTURE_2D,0,0,0,t.RGBA,t.UNSIGNED_BYTE,this.video)):(this.texture=new cn(e,this.video,t.RGBA),this.texture.bind(t.LINEAR,t.CLAMP_TO_EDGE));let r=!1;for(let i in this.tiles){let a=this.tiles[i];a.state!=="loaded"&&(a.state="loaded",a.texture=this.texture,r=!0)}r&&this.fire(new ca("data",{sourceDataType:"idle",sourceId:this.id}))}serialize(){return{type:"video",urls:this.urls,coordinates:this.coordinates}}hasTransition(){return this.video&&!this.video.paused}},Nle=class extends Nm{constructor(e,t,r,i){super(e,t,r,i),t.coordinates?(!Array.isArray(t.coordinates)||t.coordinates.length!==4||t.coordinates.some(a=>!Array.isArray(a)||a.length!==2||a.some(n=>typeof n!="number")))&&this.fire(new sr(new xt(`sources.${e}`,null,'"coordinates" property must be an array of 4 longitude/latitude array pairs'))):this.fire(new sr(new xt(`sources.${e}`,null,'missing required property "coordinates"'))),t.animate&&typeof t.animate!="boolean"&&this.fire(new sr(new xt(`sources.${e}`,null,'optional "animate" property must be a boolean value'))),t.canvas?typeof t.canvas!="string"&&!(t.canvas instanceof HTMLCanvasElement)&&this.fire(new sr(new xt(`sources.${e}`,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 sr(new xt(`sources.${e}`,null,'missing required property "canvas"'))),this.options=t,this.animate=t.animate===void 0||t.animate}load(){return Kt(this,null,function*(){if(this._loaded=!0,this.canvas||(this.canvas=this.options.canvas instanceof HTMLCanvasElement?this.options.canvas:document.getElementById(this.options.canvas)),this.width=this.canvas.width,this.height=this.canvas.height,this._hasInvalidDimensions()){this.fire(new sr(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._playing=(this.prepare(),!1))},this._finishLoading()})}getCanvas(){return this.canvas}onAdd(e){this.map=e,this.load(),this.canvas&&this.animate&&this.play()}onRemove(){this._playing=!1,super.onRemove()}prepare(){let e=!1;if(this.canvas.width!==this.width&&(this.width=this.canvas.width,e=!0),this.canvas.height!==this.height&&(this.height=this.canvas.height,e=!0),this._hasInvalidDimensions()||Object.keys(this.tiles).length===0)return;let t=this.map.painter.context,r=t.gl;this.texture?(e||this._playing)&&this.texture.update(this.canvas,{premultiply:!0}):(this.texture=new cn(t,this.canvas,r.RGBA,{premultiply:!0}),this.texture.bind(r.LINEAR,r.CLAMP_TO_EDGE));let i=!1;for(let a in this.tiles){let n=this.tiles[a];n.state!=="loaded"&&(n.state="loaded",n.texture=this.texture,i=!0)}i&&this.fire(new ca("data",{sourceDataType:"idle",sourceId:this.id}))}serialize(){return{type:"canvas",animate:this.animate,canvas:this.options.canvas,coordinates:this.coordinates}}hasTransition(){return this._playing}_hasInvalidDimensions(){for(let e of[this.canvas.width,this.canvas.height])if(isNaN(e)||e<=0)return!0;return!1}},Vle={},oGe=(e,t,r,i)=>{let a=new(Ule(t.type))(e,t,r,i);if(a.id!==e)throw Error(`Expected Source id to be ${e} instead of ${a.id}`);return a},Ule=e=>{switch(e){case"geojson":return zle;case"image":return Nm;case"raster":return MF;case"raster-dem":return Ile;case"vector":return Ple;case"video":return Ole;case"canvas":return Nle}return Vle[e]},sGe=(e,t)=>{Vle[e]=t},lGe=(e,t)=>Kt(null,null,function*(){if(Ule(e))throw Error(`A source type called "${e}" already exists.`);sGe(e,t)});nF="RTLPluginLoaded",cGe=class extends Xa{constructor(...e){super(...e),this.status="unavailable",this.url=null,this.dispatcher=TF()}_syncState(e){return this.status=e,this.dispatcher.broadcast("SRPS",{pluginStatus:e,pluginURL:this.url}).catch(t=>{throw this.status="error",t})}getRTLTextPluginStatus(){return this.status}clearRTLTextPlugin(){this.status="unavailable",this.url=null}setRTLTextPlugin(e,t=!1){return Kt(this,null,function*(){if(this.url)throw Error("setRTLTextPlugin cannot be called multiple times.");if(this.url=ws.resolveURL(e),!this.url)throw Error(`requested url ${e} is invalid`);if(this.status==="unavailable")if(t)this.status="deferred",this._syncState(this.status);else return this._requestImport();else if(this.status==="requested")return this._requestImport()})}_requestImport(){return Kt(this,null,function*(){yield this._syncState("loading"),this.status="loaded",this.fire(new xs(nF))})}lazyLoad(){this.status==="unavailable"?this.status="requested":this.status==="deferred"&&this._requestImport()}},BC=null;Gle=class{constructor(e,t){this.timeAdded=0,this.fadeEndTime=0,this.fadeOpacity=1,this.tileID=e,this.uid=_k(),this.uses=0,this.tileSize=t,this.buckets={},this.expirationTime=null,this.queryPadding=0,this.hasSymbolBuckets=!1,this.hasRTLText=!1,this.dependencies={},this.rttObjects=[],this.rttFingerprint={},this.expiredRequestCount=0,this.state="loading",this.featureStateRevision=-1}isRenderable(e){return this.hasData()&&(!this.fadeEndTime||this.fadingDirection!==0||this.fadeOpacity>0)&&(e||!this.holdingForSymbolFade())}setCrossFadeLogic({fadingRole:e,fadingDirection:t,fadingParentID:r,fadeEndTime:i}){this.resetFadeLogic(),this.fadingRole=e,this.fadingDirection=t,this.fadingParentID=r,this.fadeEndTime=i}setSelfFadeLogic(e){this.resetFadeLogic(),this.selfFading=!0,this.fadeEndTime=e}resetFadeLogic(){this.fadingRole=null,this.fadingDirection=null,this.fadingParentID=null,this.selfFading=!1,this.timeAdded=ki(),this.fadeEndTime=0,this.fadeOpacity=1}wasRequested(){return this.state==="errored"||this.state==="loaded"||this.state==="reloading"}clearTextures(e){this.demTexture&&e.saveTileTexture(this.demTexture),this.demTexture=null}getRTT(e){return this.rttObjects[e]}acquireRTT(e,t,r){return this.rttObjects[t]=e.acquireRTT(r)}releaseRTT(e){if(this.rttObjects.length!==0){for(let t of this.rttObjects)t&&e.releaseRTT(t);this.rttObjects.length=0}}loadVectorData(e,t,r){if((e==null?void 0:e.etagUnmodified)===!0){this.state="loaded";return}if(this.hasData()&&this.unloadVectorData(),this.state="loaded",!e){this.collisionBoxArray=new Yk;return}e.featureIndex&&(this.latestFeatureIndex=e.featureIndex,e.rawTileData?(this.latestRawTileData=e.rawTileData,this.latestEncoding=e.encoding,this.latestFeatureIndex.rawTileData=e.rawTileData,this.latestFeatureIndex.encoding=e.encoding):this.latestRawTileData&&(this.latestFeatureIndex.rawTileData=this.latestRawTileData,this.latestFeatureIndex.encoding=this.latestEncoding)),this.collisionBoxArray=e.collisionBoxArray,this.buckets=uGe(e.buckets,t==null?void 0:t.style),this.hasSymbolBuckets=!1;for(let i in this.buckets){let a=this.buckets[i];if(a instanceof k2)if(this.hasSymbolBuckets=!0,r)a.justReloaded=!0;else break}if(this.hasRTLText=!1,this.hasSymbolBuckets)for(let i in this.buckets){let a=this.buckets[i];if(a instanceof k2&&a.hasRTLText){this.hasRTLText=!0,Y2().lazyLoad();break}}this.queryPadding=0;for(let i in this.buckets){let a=this.buckets[i];this.queryPadding=Math.max(this.queryPadding,t.style.getLayer(i).queryRadius(a))}e.imageAtlas&&(this.imageAtlas=e.imageAtlas),e.glyphAtlasImage&&(this.glyphAtlasImage=e.glyphAtlasImage),this.dashPositions=e.dashPositions}unloadVectorData(){for(let e in this.buckets)this.buckets[e].destroy();this.buckets={},this.imageAtlasTexture&&this.imageAtlasTexture.destroy(),this.glyphAtlasTexture&&this.glyphAtlasTexture.destroy(),this.imageAtlas=null,this.dashPositions=null,this.latestFeatureIndex=null,this.state="unloaded"}getBucket(e){return this.buckets[e.id]}upload(e){for(let r in this.buckets){let i=this.buckets[r];i.uploadPending()&&i.upload(e)}let t=e.gl;this.imageAtlas&&!this.imageAtlas.uploaded&&(this.imageAtlasTexture=new cn(e,this.imageAtlas.image,t.RGBA),this.imageAtlas.uploaded=!0),this.glyphAtlasImage&&(this.glyphAtlasImage=(this.glyphAtlasTexture=new cn(e,this.glyphAtlasImage,t.ALPHA),null))}prepare(e){this.imageAtlas&&this.imageAtlas.patchUpdatedImages(e,this.imageAtlasTexture)}queryRenderedFeatures(e,t,r,i,a,n,o,s,l,u,c){var h;return(h=this.latestFeatureIndex)!=null&&h.rawTileData?this.latestFeatureIndex.query({queryGeometry:i,cameraQueryGeometry:a,scale:n,tileSize:this.tileSize,pixelPosMatrix:u,transform:s,params:o,queryPadding:this.queryPadding*l,getElevation:c},e,t,r):{}}querySourceFeatures(e,t){let r=this.latestFeatureIndex;if(!(r!=null&&r.rawTileData))return;let i=r.loadVTLayers(),a=t!=null&&t.sourceLayer?t.sourceLayer:"",n=i._geojsonTileLayer||i[a];if(!n)return;let o=xm(t==null?void 0:t.filter,`querySourceFeatures[${a}].filter`,t==null?void 0:t.globalState),{z:s,x:l,y:u}=this.tileID.canonical,c={z:s,x:l,y:u};for(let h=0;hr)i=!1;else if(!t)i=!0;else if(this.expirationTimethis.max[0]||t.aabb.min[1]>this.max[1]||t.aabb.min[2]>this.max[2]||t.aabb.max[0]0?(r+=t[a]*this.min[a],i+=t[a]*this.max[a]):(i+=t[a]*this.min[a],r+=t[a]*this.max[a]);return r>=0?2:i<0?0:1}},SF=class $le{constructor(t,r,i){this.points=t,this.planes=r,this.aabb=i}static fromInvProjectionMatrix(t,r=1,i=0,a,n){let o=[[-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]],s=n?[[6,5,4],[0,1,2],[0,3,7],[2,1,5],[3,2,6],[0,4,5]]:[[0,1,2],[6,5,4],[0,3,7],[2,1,5],[3,2,6],[0,4,5]],l=2**i,u=o.map(d=>fGe(d,t,r,l));a&&dGe(u,s[0],a,n);let c=s.map(d=>{let p=Cc([],u[d[0]],u[d[1]]),m=Cc([],u[d[2]],u[d[1]]),g=Fo([],Yo([],p,m)),y=-Wa(g,u[d[1]]);return g.concat(y)}),h=[1/0,1/0,1/0],f=[-1/0,-1/0,-1/0];for(let d of u)for(let p=0;p<3;p++)h[p]=Math.min(h[p],d[p]),f[p]=Math.max(f[p],d[p]);return new $le(u,c,new DF(h,f))}};gGe=oF(9.314,3);Mse=class{constructor(){this._tiles={}}handleWrapJump(e){let t={};for(let r in this._tiles){let i=this._tiles[r];i.tileID=i.tileID.unwrapTo(i.tileID.wrap+e),t[i.tileID.key]=i}this._tiles=t}setFeatureState(e,t,r){for(let i in this._tiles)this._tiles[i].setFeatureState(e,t,r)}getAllTiles(){return Object.values(this._tiles)}getAllIds(e=!1){return e?Object.values(this._tiles).map(t=>t.tileID).sort(vC).map(t=>t.key):Object.keys(this._tiles)}getTileById(e){return this._tiles[e]}setTile(e,t){this._tiles[e]=t}deleteTileById(e){delete this._tiles[e]}getLoadedTile(e){let t=this.getTileById(e.key);return t!=null&&t.hasData()?t:null}isIdRenderable(e,t=!1){var r;return(r=this.getTileById(e))==null?void 0:r.isRenderable(t)}getRenderableIds(e=0,t){let r=[];for(let i of this.getAllIds())this.isIdRenderable(i,t)&&r.push(this.getTileById(i));return t?r.sort((i,a)=>{let n=i.tileID,o=a.tileID,s=new Be(n.canonical.x,n.canonical.y)._rotate(-e),l=new Be(o.canonical.x,o.canonical.y)._rotate(-e);return n.overscaledZ-o.overscaledZ||l.y-s.y||l.x-s.x}).map(i=>i.tileID.key):r.map(i=>i.tileID).sort(vC).map(i=>i.key)}},sF=(Eh=class extends Xa{constructor(t,r,i){super(),this._maxContentElevationSeen=0,this.id=t,this.dispatcher=i,this.on("data",a=>{this._dataHandler(a)}),this.on("dataloading",()=>{this._sourceErrored=!1}),this.on("error",()=>{this._sourceErrored=this._source.loaded()}),this._source=oGe(t,r,i,this),this._inViewTiles=new Mse,this._outOfViewCache=new ose(0,a=>this._unloadTile(a)),this._timers={},this._maxTileCacheSize=null,this._maxTileCacheZoomLevels=null,this._rasterFadeDuration=0,this._maxFadingAncestorLevels=5,this._state=new hGe,this._didEmitContent=!1,this._updated=!1}onAdd(t){var r;this.map=t,this._maxTileCacheSize=t?t._maxTileCacheSize:null,this._maxTileCacheZoomLevels=t?t._maxTileCacheZoomLevels:null,(r=this._source)!=null&&r.onAdd&&this._source.onAdd(t)}onRemove(t){var r;for(let i of this._inViewTiles.getAllTiles())i.unloadVectorData();this.clearTiles(),(r=this._source)!=null&&r.onRemove&&this._source.onRemove(t),this._inViewTiles=new Mse}loaded(){if(this._sourceErrored)return!0;if(!this._sourceLoaded||!this._source.loaded())return!1;if((this.used!==void 0||this.usedForTerrain!==void 0)&&!this.used&&!this.usedForTerrain)return!0;if(!this._updated)return!1;for(let t of this._inViewTiles.getAllTiles())if(t.state!=="loaded"&&t.state!=="errored")return!1;return!0}getSource(){return this._source}getState(){return this._state}pause(){this._paused=!0}resume(){if(!this._paused)return;let t=this._shouldReloadOnResume;this._paused=!1,this._shouldReloadOnResume=!1,t&&this.reload(),this.transform&&this.update(this.transform,this.terrain)}_loadTile(t,r,i,a){return Kt(this,null,function*(){try{let n=yield this._source.loadTile(t);this._tileLoaded(t,r,i,a,n)}catch(n){t.state="errored",n.status===404?this.update(this.transform,this.terrain):this._source.fire(new sr(Hn(n),{tile:t}))}})}_unloadTile(t){this._source.unloadTile&&this._source.unloadTile(t)}_abortTile(t){this._source.abortTile&&this._source.abortTile(t),this._source.fire(new ca("dataabort",{tile:t,coord:t.tileID}))}serialize(){return this._source.serialize()}prepare(t){this._source.prepare&&this._source.prepare(),this._state.coalesceChanges(this._inViewTiles,this.map?this.map.painter:null);for(let r of this._inViewTiles.getAllTiles())r.upload(t),r.prepare(this.map.style.imageManager)}getIds(){return this._inViewTiles.getAllIds(!0)}getRenderableIds(t){var r;return this._inViewTiles.getRenderableIds((r=this.transform)==null?void 0:r.bearingInRadians,t)}hasRenderableParent(t){let r=t.overscaledZ-1;if(r>=this._source.minzoom){let i=this.getLoadedTile(t.scaledTo(r));if(i)return this._inViewTiles.isIdRenderable(i.tileID.key)}return!1}reload(t,r=void 0){if(this._paused){this._shouldReloadOnResume=!0;return}this._outOfViewCache.reset();for(let i of this._inViewTiles.getAllIds()){let a=this._inViewTiles.getTileById(i);(!r||this._source.shouldReloadTile(a,r))&&(t?this._reloadTile(i,a.state==="errored"?"loading":"expired"):a.state!=="errored"&&this._reloadTile(i,"reloading"))}}_reloadTile(t,r){return Kt(this,null,function*(){let i=this._inViewTiles.getTileById(t);if(!i)return;let a=i.hasData();i.state!=="loading"&&(i.state=r),yield this._loadTile(i,t,r,a)})}_tileLoaded(t,r,i,a,n){a||(t.timeAdded=ki(),t.selfFading&&(t.fadeEndTime=t.timeAdded+this._rasterFadeDuration)),i==="expired"&&(t.refreshedUponExpiration=!0),this._setTileReloadTimer(r,t),!(n!=null&&n.unmodified)&&(this.getSource().type==="raster-dem"&&t.dem&&DGe(t,this._inViewTiles),t.featureStateRevision=-1,this._state.initializeTileState(t,this.map?this.map.painter:null),t.aborted||this._source.fire(new ca("data",{tile:t,coord:t.tileID})))}getTile(t){return this.getTileByID(t.key)}getTileByID(t){return this._inViewTiles.getTileById(t)}_retainLoadedChildren(t,r){let i=this._getLoadedDescendents(r),a=new Set;for(let n of r){let o=i[n.key];if(!(o!=null&&o.length)){a.add(n);continue}let s=n.overscaledZ+Eh.maxOverzooming,l=o.filter(h=>h.tileID.overscaledZ<=s);if(!l.length){a.add(n);continue}let u=Math.min(...l.map(h=>h.tileID.overscaledZ)),c=l.filter(h=>h.tileID.overscaledZ===u).map(h=>h.tileID);for(let h of c)t[h.key]=h;this._areDescendentsComplete(c,u,n.overscaledZ)||a.add(n)}return a}_getLoadedDescendents(t){var i;let r={};for(let a of this._inViewTiles.getAllTiles().filter(n=>n.hasData()))for(let n of t)a.tileID.isChildOf(n)&&(r[i=n.key]||(r[i]=[]),r[n.key].push(a));return r}_areDescendentsComplete(t,r,i){return t.length===1&&t[0].isOverscaled()?t[0].overscaledZ===r:4**(r-i)===t.length}getLoadedTile(t){return this._inViewTiles.getLoadedTile(t)}updateCacheSize(t){let r=(Math.ceil(t.width/this._source.tileSize)+1)*(Math.ceil(t.height/this._source.tileSize)+1),i=this._maxTileCacheZoomLevels===null?_s.MAX_TILE_CACHE_ZOOM_LEVELS:this._maxTileCacheZoomLevels,a=Math.floor(r*i),n=typeof this._maxTileCacheSize=="number"?Math.min(this._maxTileCacheSize,a):a;this._outOfViewCache.setMaxSize(n)}handleWrapJump(t){let r=(t-(this._prevLng===void 0?t:this._prevLng))/360,i=Math.round(r);this._prevLng=t,i&&(this._inViewTiles.handleWrapJump(i),this._resetTileReloadTimers())}_updateMaxContentElevation(){var a,n;let t=this._maxContentElevationSeen,r=(n=(a=this.map)==null?void 0:a.style)==null?void 0:n._layers;if(!r)return t;let i=this._inViewTiles.getAllTiles();for(let o in r){let s=r[o];if(s.type!=="symbol"||s.source!==this.id||s.isHidden(this.transform.zoom))continue;let l=s;if(!l.layout)continue;let u=l.layout.get("symbol-height-offset");if(t=Math.max(t,u.constantOr(0)),!u.isConstant())for(let c of i){let h=c.getBucket(s);h&&h.maxHeightOffset>t&&(t=h.maxHeightOffset)}}return this._maxContentElevationSeen=t,t}update(t,r){if(!this._sourceLoaded||this._paused)return;this.transform=t,this.terrain=r,this.updateCacheSize(t),this.handleWrapJump(this.transform.center.lng);let i;!this.used&&!this.usedForTerrain?i=[]:this._source.tileID?i=t.getVisibleUnwrappedCoordinates(this._source.tileID).map(l=>new Xn(l.canonical.z,l.wrap,l.canonical.z,l.canonical.x,l.canonical.y)):(i=Vm(t,{tileSize:this.usedForTerrain?this.tileSize:this._source.tileSize,minzoom:this._source.minzoom,maxzoom:this._source.type==="vector"&&this.map._zoomLevelsToOverscale!==void 0?Math.max(this._source.maxzoom,t.maxZoom-this.map._zoomLevelsToOverscale):this._source.maxzoom,roundZoom:!this.usedForTerrain&&this._source.roundZoom,reparseOverscaled:this._source.reparseOverscaled,terrain:r,calculateTileZoom:this._source.calculateTileZoom,maxContentElevation:this._updateMaxContentElevation()}),this._source.hasTile&&(i=i.filter(l=>this._source.hasTile(l)))),this.usedForTerrain&&(i=this._addTerrainIdealTiles(i));let a=i.length===0&&!this._updated&&this._didEmitContent;this._updated=!0,a&&this.fire(new ca("data",{sourceDataType:"idle",sourceId:this.id}));let n=EF(t,this._source),o=this._updateRetainedTiles(i,n),s=wse(this._source.type);s&&this._rasterFadeDuration>0&&!r&&bGe(this._inViewTiles,i,o,this._maxFadingAncestorLevels,this._source.minzoom,this._source.maxzoom,this._rasterFadeDuration),s?this._cleanUpRasterTiles(o):this._cleanUpVectorTiles(o)}_cleanUpRasterTiles(t){for(let r of this._inViewTiles.getAllIds())t[r]||this._removeTile(r)}_cleanUpVectorTiles(t){for(let r of this._inViewTiles.getAllIds()){let i=this._inViewTiles.getTileById(r);if(t[r]){i.clearSymbolFadeHold();continue}if(!i.hasSymbolBuckets){this._removeTile(r);continue}i.holdingForSymbolFade()?i.symbolFadeFinished()&&this._removeTile(r):i.setSymbolHoldDuration(this.map._fadeDuration)}}_addTerrainIdealTiles(t){let r=[];for(let i of t)if(i.canonical.z>this._source.minzoom){let a=i.scaledTo(i.canonical.z-1);r.push(a);let n=i.scaledTo(Math.max(this._source.minzoom,Math.min(i.canonical.z,5)));r.push(n)}return t.concat(r)}releaseSymbolFadeTiles(){for(let t of this._inViewTiles.getAllIds())this._inViewTiles.getTileById(t).holdingForSymbolFade()&&this._removeTile(t)}_updateRetainedTiles(t,r){var l;let i=new Set;for(let u of t)this._addTile(u).hasData()||i.add(u);let a=t.reduce((u,c)=>(u[c.key]=c,u),{}),n=this._retainLoadedChildren(a,i),o={},s=Math.max(r-Eh.maxUnderzooming,this._source.minzoom);for(let u of n){let c=this._inViewTiles.getTileById(u.key),h=c==null?void 0:c.wasRequested();for(let f=u.overscaledZ-1;f>=s;--f){let d=u.scaledTo(f);if(o[d.key])break;if(o[d.key]=!0,c=this.getTile(d),!c&&h&&(c=this._addTile(d)),c){let p=c.hasData();if((p||!((l=this.map)!=null&&l.cancelPendingTileRequestsWhileZooming)||h)&&(a[d.key]=d),h=c.wasRequested(),p)break}}}return a}_addTile(t){let r=this._inViewTiles.getTileById(t.key);if(r)return r;r=this._outOfViewCache.getAndRemove(t),r&&(r.resetFadeLogic(),this._setTileReloadTimer(t.key,r),r.tileID=t,this._state.initializeTileState(r,this.map?this.map.painter:null));let i=r;return r||(r=new Gle(t,this._source.tileSize*t.overscaleFactor()),this._loadTile(r,t.key,r.state,!1)),r.uses++,this._inViewTiles.setTile(t.key,r),i||this._source.fire(new ca("dataloading",{tile:r,coord:r.tileID})),r}_setTileReloadTimer(t,r){this._clearTileReloadTimer(t);let i=r.getExpiryTimeout();if(i){let a=()=>{this._reloadTile(t,"expired"),delete this._timers[t]};this._timers[t]=setTimeout(a,i)}}_clearTileReloadTimer(t){let r=this._timers[t];r&&(clearTimeout(r),delete this._timers[t])}_resetTileReloadTimers(){for(let t in this._timers)clearTimeout(this._timers[t]),delete this._timers[t];for(let t of this._inViewTiles.getAllIds()){let r=this._inViewTiles.getTileById(t);this._setTileReloadTimer(t,r)}}refreshTiles(t){for(let r of this._inViewTiles.getAllIds()){let i=this._inViewTiles.getTileById(r);(this._inViewTiles.isIdRenderable(r)||i.state=="errored")&&t.some(a=>a.equals(i.tileID.canonical))&&this._reloadTile(r,"expired")}}_removeTile(t){let r=this._inViewTiles.getTileById(t);r&&(r.uses--,this._inViewTiles.deleteTileById(t),this._clearTileReloadTimer(t),!(r.uses>0)&&(r.hasData()&&r.state!=="reloading"?this._outOfViewCache.add(r.tileID,r,r.getExpiryTimeout()):(r.aborted=!0,this._abortTile(r),this._unloadTile(r))))}_dataHandler(t){if(t.dataType==="source"){if(t.sourceDataType==="metadata"){this._sourceLoaded=!0;return}t.sourceDataType==="content"&&this._sourceLoaded&&!this._paused&&(this.reload(t.sourceDataChanged,t.shouldReloadTileOptions),this.transform&&this.update(this.transform,this.terrain),this._didEmitContent=!0)}}resetMaxContentElevation(){this._maxContentElevationSeen=0}clearTiles(){this._shouldReloadOnResume=!1,this._paused=!1,this.resetMaxContentElevation();for(let t of this._inViewTiles.getAllIds())this._removeTile(t);this._outOfViewCache.reset()}tilesIn(t,r,i){let a=[],n=this.transform;if(!n)return a;let o=n.getCoveringTilesDetailsProvider().allowWorldCopies(),s=i?n.getCameraQueryGeometry(t):t,l=d=>n.screenPointToMercatorCoordinate(d,this.terrain),u=this.transformBbox(t,l,!o),c=this.transformBbox(s,l,!o),h=this.getIds(),f=Gl.fromPoints(c);for(let d of h){let p=this._inViewTiles.getTileById(d);if(p.holdingForSymbolFade())continue;let m=o?[p.tileID]:[p.tileID.unwrapTo(-1),p.tileID.unwrapTo(0)],g=2**(n.zoom-p.tileID.overscaledZ),y=r*p.queryPadding*ft/p.tileSize/g;for(let x of m){let w=f.map(_=>x.getTilePoint(new bi(_.x,_.y)));if(w.expandBy(y),w.intersects(Vne)){let _=u.map(T=>x.getTilePoint(T)),A=c.map(T=>x.getTilePoint(T));a.push({tile:p,tileID:o?x:x.unwrapTo(0),queryGeometry:_,cameraQueryGeometry:A,scale:g})}}}return a}transformBbox(t,r,i){let a=t.map(r);if(i){let n=Gl.fromPoints(t);n.shrinkBy(Math.min(n.width(),n.height())*.001);let o=n.map(r);Gl.fromPoints(a).covers(o)||(a=a.map(s=>s.x>.5?new bi(s.x-1,s.y,s.z):s))}return a}getVisibleCoordinates(t){let r=this.getRenderableIds(t).map(i=>this._inViewTiles.getTileById(i).tileID);return this.transform&&this.transform.populateCache(r),r}hasTransition(){return this._source.hasTransition()?!0:wse(this._source.type)&&MGe(this._inViewTiles,this._rasterFadeDuration)}setRasterFadeDuration(t){this._rasterFadeDuration=t}setFeatureState(t,r,i){t||(t=P2),this._state.updateState(t,r,i)}removeFeatureState(t,r,i){t||(t=P2),this._state.removeFeatureState(t,r,i)}getFeatureState(t,r){return t||(t=P2),this._state.getState(t,r)}setDependencies(t,r,i){let a=this._inViewTiles.getTileById(t);a&&a.setDependencies(r,i)}reloadTilesForDependencies(t,r){for(let i of this._inViewTiles.getAllIds())this._inViewTiles.getTileById(i).hasDependency(t,r)&&this._reloadTile(i,"reloading");this._outOfViewCache.filter(i=>!i.hasDependency(t,r))}areTilesLoaded(){for(let t of this._inViewTiles.getAllTiles())if(t.state!=="loaded"&&t.state!=="errored")return!1;return!0}},Eh.maxUnderzooming=10,Eh.maxOverzooming=3,Eh),SGe=class{constructor(e,t){this.reset(e,t)}reset(e,t){this.points=e||[],this._distances=[0];for(let r=1;r0?(i-n)/o:0;return this.points[a].mult(1-s).add(this.points[t].mult(s))}};Dse=class{constructor(e,t,r){let i=this.boxCells=[],a=this.circleCells=[];this.xCellCount=Math.ceil(e/r),this.yCellCount=Math.ceil(t/r);for(let n=0;nthis.width||i<0||t>this.height)return[];let s=[];if(e<=0&&t<=0&&this.width<=r&&this.height<=i){if(a)return[{key:null,x1:e,y1:t,x2:r,y2:i}];for(let l=0;l0}hitTestCircle(e,t,r,i,a){let n=e-r,o=e+r,s=t-r,l=t+r;if(o<0||n>this.width||l<0||s>this.height)return!1;let u=[],c={hitTest:!0,overlapMode:i,circle:{x:e,y:t,radius:r},seenUids:{box:{},circle:{}}};return this._forEachCell(n,s,o,l,this._queryCellCircle,u,c,a),u.length>0}_queryCell(e,t,r,i,a,n,o,s){let{seenUids:l,hitTest:u,overlapMode:c}=o,h=this.boxCells[a],f=1e-6;if(h!==null){let p=this.bboxes;for(let m of h)if(!l.box[m]){l.box[m]=!0;let g=m*4,y=this.boxKeys[m];if(e<=p[g+2]+f&&t<=p[g+3]+f&&r>=p[g+0]-f&&i>=p[g+1]-f&&(!s||s(y))&&(!u||!Uw(c,y.overlapMode))&&(n.push({key:y,x1:p[g],y1:p[g+1],x2:p[g+2],y2:p[g+3]}),u))return!0}}let d=this.circleCells[a];if(d!==null){let p=this.circles;for(let m of d)if(!l.circle[m]){l.circle[m]=!0;let g=m*3,y=this.circleKeys[m];if(this._circleAndRectCollide(p[g],p[g+1],p[g+2],e,t,r,i)&&(!s||s(y))&&(!u||!Uw(c,y.overlapMode))){let x=p[g],w=p[g+1],_=p[g+2];if(n.push({key:y,x1:x-_,y1:w-_,x2:x+_,y2:w+_}),u)return!0}}}return!1}_queryCellCircle(e,t,r,i,a,n,o,s){let{circle:l,seenUids:u,overlapMode:c}=o,h=this.boxCells[a];if(h!==null){let d=this.bboxes;for(let p of h)if(!u.box[p]){u.box[p]=!0;let m=p*4,g=this.boxKeys[p];if(this._circleAndRectCollide(l.x,l.y,l.radius,d[m+0],d[m+1],d[m+2],d[m+3])&&(!s||s(g))&&!Uw(c,g.overlapMode))return n.push(!0),!0}}let f=this.circleCells[a];if(f!==null){let d=this.circles;for(let p of f)if(!u.circle[p]){u.circle[p]=!0;let m=p*3,g=this.circleKeys[p];if(this._circlesCollide(d[m],d[m+1],d[m+2],l.x,l.y,l.radius)&&(!s||s(g))&&!Uw(c,g.overlapMode))return n.push(!0),!0}}}_forEachCell(e,t,r,i,a,n,o,s){let l=this._convertToXCellCoord(e),u=this._convertToYCellCoord(t),c=this._convertToXCellCoord(r),h=this._convertToYCellCoord(i);for(let f=l;f<=c;f++)for(let d=u;d<=h;d++){let p=this.xCellCount*d+f;if(a.call(this,e,t,r,i,p,n,o,s))return}}_convertToXCellCoord(e){return Math.max(0,Math.min(this.xCellCount-1,Math.floor(e*this.xScale)))}_convertToYCellCoord(e){return Math.max(0,Math.min(this.yCellCount-1,Math.floor(e*this.yScale)))}_circlesCollide(e,t,r,i,a,n){let o=i-e,s=a-t,l=r+n;return l*l>o*o+s*s}_circleAndRectCollide(e,t,r,i,a,n,o){let s=(n-i)/2,l=Math.abs(e-(i+s));if(l>s+r)return!1;let u=(o-a)/2,c=Math.abs(t-(a+u));if(c>u+r)return!1;if(l<=s||c<=u)return!0;let h=l-s,f=c-u;return h*h+f*f<=r*r}};FGe=yh();RGe=new Float32Array([-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0]);OGe=class{constructor(e,t=new Dse(e.width+200,e.height+200,25),r=new Dse(e.width+200,e.height+200,25)){this.transform=e,this.grid=t,this.ignoredGrid=r,this.pitchFactor=Math.cos(e.pitch*Math.PI/180)*e.cameraToCenterDistance,this.screenRightBoundary=e.width+100,this.screenBottomBoundary=e.height+100,this.gridRightBoundary=e.width+200,this.gridBottomBoundary=e.height+200,this.perspectiveRatioCutoff=.6}placeCollisionBox(e,t,r,i,a,n,o,s,l,u,c,h,f=0,d=!0){let p=e.anchorPointX+s[0],m=e.anchorPointY+s[1],g=this.projectAndGetPerspectiveRatio(p,m,a,r6(u,p,m,f,d),h),y=r*g.perspectiveRatio,x;if(!n&&!o){let k=g.x+(c?c.x*y:0),P=g.y+(c?c.y*y:0);x={allPointsOccluded:!1,box:[k+e.x1*y,P+e.y1*y,k+e.x2*y,P+e.y2*y]}}else x=this._projectCollisionBox(e,y,i,a,n,o,s,g,u,c,h,f,d);let[w,_,A,T]=x.box,M=n?x.allPointsOccluded:g.isOccluded,S=M;return S||(S=g.perspectiveRatio=1;H--)V.push(z.path[H]);for(let H=1;HZ.signedDistanceFromCamera<=0)?[]:H.map(Z=>Z.point)}let j=[];if(V.length>0){let H=V[0].clone(),Z=V[0].clone();for(let W=1;W=I.x&&Z.x<=B.x&&H.y>=I.y&&Z.y<=B.y?[V]:Z.xB.x||Z.yB.y?[]:fC([V],I.x,I.y,B.x,B.y)}for(let H of j){L.reset(H,P*.25);let Z=0;Z=L.length<=.5*P?1:Math.ceil(L.paddedLength/$)+1;for(let W=0;W=this.screenRightBoundary||i<100||t>this.screenBottomBoundary}isInsideGrid(e,t,r,i){return r>=0&&e=0&&tthis.projectAndGetPerspectiveRatio(V.x,V.y,i,r6(l,V.x,V.y,h,f),c));z=O.some(V=>!V.isOccluded),L=O.map(V=>new Be(V.x,V.y))}else z=!0;return{box:cie(L),allPointsOccluded:!z}}},kse=class{constructor(e,t,r,i){this.opacity=e?Math.max(0,Math.min(1,e.opacity+(e.placed?t:-t))):i&&r?1:0,this.placed=r}isHidden(){return this.opacity===0&&!this.placed}},B2=class{constructor(e,t,r,i,a){this.text=new kse(e?e.text:null,t,r,a),this.icon=new kse(e?e.icon:null,t,i,a)}isHidden(){return this.text.isHidden()&&this.icon.isHidden()}},Cse=class{constructor(e,t,r){this.text=e,this.icon=t,this.skipFade=r}},NGe=class{constructor(e,t,r,i,a){this.bucketInstanceId=e,this.featureIndex=t,this.sourceLayerIndex=r,this.bucketIndex=i,this.tileID=a}},VGe=class{constructor(e){this.crossSourceCollisions=e,this.maxGroupID=0,this.collisionGroups={}}get(e){if(this.crossSourceCollisions)return{ID:0,predicate:null};if(!this.collisionGroups[e]){let t=++this.maxGroupID;this.collisionGroups[e]={ID:t,predicate:r=>r.collisionGroupID===t}}return this.collisionGroups[e]}};UGe=class{constructor(e,t,r,i,a){this.transform=e.clone(),this.terrain=t,this.collisionIndex=new OGe(this.transform),this.placements={},this.opacities={},this.variableOffsets={},this.stale=!1,this.commitTime=0,this.fadeDuration=r,this.retainedQueryData={},this.collisionGroups=new VGe(i),this.collisionCircleArrays={},this.collisionBoxArrays=new Map,this.prevPlacement=a,a&&(a.prevPlacement=void 0),this.placedOrientations={}}_getTerrainElevationFunc(e){let t=this.terrain;if(t)return(r,i)=>t.getElevation(e,r,i)}getBucketParts(e,t,r,i){let a=r.getBucket(t),n=r.latestFeatureIndex;if(!a||!n||t.id!==a.layerIds[0])return;let o=r.collisionBoxArray,s=a.layers[0].layout,l=a.layers[0].paint,u=2**(this.transform.zoom-r.tileID.overscaledZ),c=r.tileSize/ft,h=r.tileID.toUnwrapped(),f=s.get("text-rotation-alignment")==="map",d=vs(r,1,this.transform.zoom),p=xh(this.collisionIndex.transform,r,l.get("text-translate"),l.get("text-translate-anchor")),m=xh(this.collisionIndex.transform,r,l.get("icon-translate"),l.get("icon-translate-anchor")),g=kF(f,this.transform,d);this.retainedQueryData[a.bucketInstanceId]=new NGe(a.bucketInstanceId,n,a.sourceLayerIndex,a.index,r.tileID);let y={bucket:a,layout:s,translationText:p,translationIcon:m,unwrappedTileID:h,pitchedLabelPlaneMatrix:g,scale:u,textPixelRatio:c,holdingForFade:r.holdingForSymbolFade(),collisionBoxArray:o,partiallyEvaluatedTextSize:S2(a.textSizeData,this.transform.zoom),collisionGroup:this.collisionGroups.get(a.sourceID)};if(i)for(let x of a.sortKeyRanges){let{sortKey:w,symbolInstanceStart:_,symbolInstanceEnd:A}=x;e.push({sortKey:w,symbolInstanceStart:_,symbolInstanceEnd:A,parameters:y})}else e.push({symbolInstanceStart:0,symbolInstanceEnd:a.symbolInstances.length,parameters:y})}attemptAnchorPlacement(e,t,r,i,a,n,o,s,l,u,c,h,f,d,p,m,g,y,x,w,_,A){var P,I,B;let T=Lw[e.textAnchor],M=[e.textOffset0,e.textOffset1],S=Fse(T,r,i,M,a),k=this.collisionIndex.placeCollisionBox(t,h,s,l,u,o,n,m,c.predicate,x,S,w,_,A);if((!y||this.collisionIndex.placeCollisionBox(y,h,s,l,u,o,n,g,c.predicate,x,S,w,_,A).placeable)&&k.placeable){let L;if((P=this.prevPlacement)!=null&&P.variableOffsets[f.crossTileID]&&((B=(I=this.prevPlacement)==null?void 0:I.placements[f.crossTileID])!=null&&B.text)&&(L=this.prevPlacement.variableOffsets[f.crossTileID].anchor),f.crossTileID===0)throw Error("symbolInstance.crossTileID can't be 0");return this.variableOffsets[f.crossTileID]={textOffset:M,width:r,height:i,anchor:T,textBoxScale:a,prevAnchor:L},this.markUsedJustification(d,T,f,p),d.allowVerticalPlacement&&(this.markUsedOrientation(d,p,f),this.placedOrientations[f.crossTileID]=p),{shift:S,placedGlyphBoxes:k}}}placeLayerBucketPart(e,t,r){let{bucket:i,layout:a,translationText:n,translationIcon:o,unwrappedTileID:s,pitchedLabelPlaneMatrix:l,textPixelRatio:u,holdingForFade:c,collisionBoxArray:h,partiallyEvaluatedTextSize:f,collisionGroup:d}=e.parameters,p=a.get("text-optional"),m=a.get("icon-optional"),g=a2(a,"text-overlap","text-allow-overlap"),y=g==="always",x=a2(a,"icon-overlap","icon-allow-overlap"),w=x==="always",_=a.get("text-rotation-alignment")==="map",A=a.get("text-pitch-alignment")==="map",T=a.get("icon-text-fit")!=="none",M=a.get("symbol-z-order")==="viewport-y",S=a.get("symbol-height-anchor")==="ground",k=y&&(w||!i.hasIconData()||m),P=w&&(y||!i.hasTextData()||p);!i.collisionArrays&&h&&i.deserializeCollisionBoxes(h);let I=this.retainedQueryData[i.bucketInstanceId].tileID,B=this._getTerrainElevationFunc(I),L=this.transform.getFastPathSimpleProjectionMatrix(I),z=(O,V,$)=>{var Oe,qe;if(t[O.crossTileID])return;if(c){this.placements[O.crossTileID]=new Cse(!1,!1,!1);return}let j=O.heightOffset,H=!1,Z=!1,W=!0,le=null,pe={box:null,placeable:!1,offscreen:null,occluded:!1},_e={box:null,placeable:!1,offscreen:null},De=null,de=null,Ce=null,Q=0,ae=0,ye=0;V.textFeatureIndex?Q=V.textFeatureIndex:O.useRuntimeCollisionCircles&&(Q=O.featureIndex),V.verticalTextFeatureIndex&&(ae=V.verticalTextFeatureIndex);let te=V.textBox;if(te){let se=ge=>{let Ge=1;if(i.allowVerticalPlacement&&!ge&&this.prevPlacement){let tt=this.prevPlacement.placedOrientations[O.crossTileID];tt&&(this.placedOrientations[O.crossTileID]=tt,Ge=tt,this.markUsedOrientation(i,Ge,O))}return Ge},je=(ge,Ge)=>{if(i.allowVerticalPlacement&&O.numVerticalGlyphVertices>0&&V.verticalTextBox){for(let tt of i.writingModes)if(tt===2?(pe=Ge(),_e=pe):pe=ge(),pe==null?void 0:pe.placeable)break}else pe=ge()},Re=O.textAnchorOffsetStartIndex,Ve=O.textAnchorOffsetEndIndex;if(Ve===Re){let ge=(Ge,tt)=>{let ie=this.collisionIndex.placeCollisionBox(Ge,g,u,I,s,A,_,n,d.predicate,B,void 0,L,j,S);return ie!=null&&ie.placeable&&(this.markUsedOrientation(i,tt,O),this.placedOrientations[O.crossTileID]=tt),ie};je(()=>ge(te,1),()=>{let Ge=V.verticalTextBox;return i.allowVerticalPlacement&&O.numVerticalGlyphVertices>0&&Ge?ge(Ge,2):{box:null,offscreen:null}}),se(pe==null?void 0:pe.placeable)}else{let ge=Lw[(qe=(Oe=this.prevPlacement)==null?void 0:Oe.variableOffsets[O.crossTileID])==null?void 0:qe.anchor],Ge=(ie,we,ot)=>{let At=ie.x2-ie.x1,$e=ie.y2-ie.y1,Ee=O.textBoxScale,Me=T&&x==="never"?we:null,We=null,lt=g==="never"?1:2,Qe="never";ge&<++;for(let st=0;stGe(te,V.iconBox,1),()=>{let ie=V.verticalTextBox,we=pe==null?void 0:pe.placeable;return i.allowVerticalPlacement&&!we&&O.numVerticalGlyphVertices>0&&ie?Ge(ie,V.verticalIconBox,2):{box:null,occluded:!0,offscreen:null}}),pe&&(H=pe.placeable,W=pe.offscreen);let tt=se(pe==null?void 0:pe.placeable);if(!H&&this.prevPlacement){let ie=this.prevPlacement.variableOffsets[O.crossTileID];ie&&(this.variableOffsets[O.crossTileID]=ie,this.markUsedJustification(i,ie.anchor,O,tt))}}}if(De=pe,H=De==null?void 0:De.placeable,W=De==null?void 0:De.offscreen,O.useRuntimeCollisionCircles&&O.centerJustifiedTextSymbolIndex>=0){let se=i.text.placedSymbolArray.get(O.centerJustifiedTextSymbolIndex),je=Iw(i.textSizeData,f,se),Re=a.get("text-padding"),Ve=O.collisionCircleDiameter;de=this.collisionIndex.placeCollisionCircles(g,se,i.lineVertexArray,i.glyphOffsetArray,je,s,l,r,A,d.predicate,Ve,Re,n,B),de.circles.length&&de.collisionDetected&&!r&&$r("Collisions detected, but collision boxes are not shown"),H=y||de.circles.length>0&&!de.collisionDetected,W&&(W=de.offscreen)}if(V.iconFeatureIndex&&(ye=V.iconFeatureIndex),V.iconBox){let se=je=>this.collisionIndex.placeCollisionBox(je,x,u,I,s,A,_,o,d.predicate,B,T&&le?le:void 0,L,j,S);_e&&_e.placeable&&V.verticalIconBox?(Ce=se(V.verticalIconBox),Z=Ce.placeable):(Ce=se(V.iconBox),Z=Ce.placeable),W&&(W=Ce.offscreen)}let re=p||O.numHorizontalGlyphVertices===0&&O.numVerticalGlyphVertices===0,ce=m||O.numIconVertices===0;!re&&!ce?Z=H=Z&&H:ce?re||Z&&(Z=H):H=Z&&H;let me=H&&De.placeable,ze=Z&&Ce.placeable;if(me&&(_e&&_e.placeable&&ae?this.collisionIndex.insertCollisionBox(De.box,g,a.get("text-ignore-placement"),i.bucketInstanceId,ae,d.ID):this.collisionIndex.insertCollisionBox(De.box,g,a.get("text-ignore-placement"),i.bucketInstanceId,Q,d.ID)),ze&&this.collisionIndex.insertCollisionBox(Ce.box,x,a.get("icon-ignore-placement"),i.bucketInstanceId,ye,d.ID),de&&H&&this.collisionIndex.insertCollisionCircles(de.circles,g,a.get("text-ignore-placement"),i.bucketInstanceId,Q,d.ID),r&&this.storeCollisionData(i.bucketInstanceId,$,V,De,Ce,de),O.crossTileID===0)throw Error("symbolInstance.crossTileID can't be 0");if(i.bucketInstanceId===0)throw Error("bucket.bucketInstanceId can't be 0");let He=(H||k)&&!(De!=null&&De.occluded),ke=(Z||P)&&!(Ce!=null&&Ce.occluded);this.placements[O.crossTileID]=new Cse(He,ke,W||i.justReloaded),t[O.crossTileID]=!0};if(M){if(e.symbolInstanceStart!==0)throw Error("bucket.bucketInstanceId should be 0");let O=i.getSortedSymbolIndexes(-this.transform.bearingInRadians);for(let V=O.length-1;V>=0;--V){let $=O[V];z(i.symbolInstances.get($),i.collisionArrays[$],$)}}else for(let O=e.symbolInstanceStart;O=0&&(n>=0&&s!==n?e.text.placedSymbolArray.get(s).crossTileID=0:e.text.placedSymbolArray.get(s).crossTileID=r.crossTileID)}markUsedOrientation(e,t,r){let i=t===1||t===3?t:0,a=t===2?t:0,n=[r.leftJustifiedTextSymbolIndex,r.centerJustifiedTextSymbolIndex,r.rightJustifiedTextSymbolIndex];for(let o of n)e.text.placedSymbolArray.get(o).placedOrientation=i;r.verticalPlacedTextSymbolIndex&&(e.text.placedSymbolArray.get(r.verticalPlacedTextSymbolIndex).placedOrientation=a)}commit(e){this.commitTime=e,this.zoomAtLastRecencyCheck=this.transform.zoom;let t=this.prevPlacement,r=!1;this.prevZoomAdjustment=t?t.zoomAdjustment(this.transform.zoom):0;let i=t?t.symbolFadeChange(e):1,a=t?t.opacities:{},n=t?t.variableOffsets:{},o=t?t.placedOrientations:{};for(let s in this.placements){let l=this.placements[s],u=a[s];u?(this.opacities[s]=new B2(u,i,l.text,l.icon),r||(r=l.text!==u.text.placed),r||(r=l.icon!==u.icon.placed)):(this.opacities[s]=new B2(null,i,l.text,l.icon,l.skipFade),r||(r=l.text||l.icon))}for(let s in a){let l=a[s];if(!this.opacities[s]){let u=new B2(l,i,!1,!1);u.isHidden()||(this.opacities[s]=u,r||(r=l.text.placed),r||(r=l.icon.placed))}}for(let s in n)!this.variableOffsets[s]&&this.opacities[s]&&!this.opacities[s].isHidden()&&(this.variableOffsets[s]=n[s]);for(let s in o)!this.placedOrientations[s]&&this.opacities[s]&&!this.opacities[s].isHidden()&&(this.placedOrientations[s]=o[s]);if(t&&t.lastPlacementChangeTime===void 0)throw Error("Last placement time for previous placement is not defined");r?this.lastPlacementChangeTime=e:typeof this.lastPlacementChangeTime!="number"&&(this.lastPlacementChangeTime=t?t.lastPlacementChangeTime:e)}updateLayerOpacities(e,t){let r={};for(let i of t){let a=i.getBucket(e);a&&i.latestFeatureIndex&&e.id===a.layerIds[0]&&this.updateBucketOpacities(a,i.tileID,r,i.collisionBoxArray)}}updateBucketOpacities(e,t,r,i){e.hasTextData()&&(e.text.opacityVertexArray.clear(),e.text.hasVisibleVertices=!1),e.hasIconData()&&(e.icon.opacityVertexArray.clear(),e.icon.hasVisibleVertices=!1),e.hasIconCollisionBoxData()&&e.iconCollisionBox.collisionVertexArray.clear(),e.hasTextCollisionBoxData()&&e.textCollisionBox.collisionVertexArray.clear();let a=e.layers[0],n=a.layout,o=new B2(null,0,!1,!1,!0),s=n.get("text-allow-overlap"),l=n.get("icon-allow-overlap"),u=a._unevaluatedLayout.hasValue("text-variable-anchor")||a._unevaluatedLayout.hasValue("text-variable-anchor-offset"),c=n.get("text-rotation-alignment")==="map",h=n.get("text-pitch-alignment")==="map",f=n.get("icon-text-fit")!=="none",d=new B2(null,0,s&&(l||!e.hasIconData()||n.get("icon-optional")),l&&(s||!e.hasTextData()||n.get("text-optional")),!0);!e.collisionArrays&&i&&(e.hasIconCollisionBoxData()||e.hasTextCollisionBoxData())&&e.deserializeCollisionBoxes(i);let p=(g,y,x)=>{for(let w=0;w0||w>0,S=y.numIconVertices>0,k=this.placedOrientations[y.crossTileID],P=k===2,I=k===1||k===3;if(M){let L=Ise(T.text),z=P?q2:L;p(e.text,x,z);let O=I?q2:L;p(e.text,w,O);let V=T.text.isHidden(),$=[y.rightJustifiedTextSymbolIndex,y.centerJustifiedTextSymbolIndex,y.leftJustifiedTextSymbolIndex];for(let Z of $)Z>=0&&(e.text.placedSymbolArray.get(Z).hidden=V||P?1:0);y.verticalPlacedTextSymbolIndex>=0&&(e.text.placedSymbolArray.get(y.verticalPlacedTextSymbolIndex).hidden=V||I?1:0);let j=this.variableOffsets[y.crossTileID];j&&this.markUsedJustification(e,j.anchor,y,k);let H=this.placedOrientations[y.crossTileID];H&&(this.markUsedJustification(e,"left",y,H),this.markUsedOrientation(e,H,y))}if(S){let L=Ise(T.icon),z=!(f&&y.verticalPlacedIconSymbolIndex&&P);if(y.placedIconSymbolIndex>=0){let O=z?L:q2;p(e.icon,y.numIconVertices,O),e.icon.placedSymbolArray.get(y.placedIconSymbolIndex).hidden=T.icon.isHidden()}if(y.verticalPlacedIconSymbolIndex>=0){let O=z?q2:L;p(e.icon,y.numVerticalIconVertices,O),e.icon.placedSymbolArray.get(y.verticalPlacedIconSymbolIndex).hidden=T.icon.isHidden()}}let B=m!=null&&m.has(g)?m.get(g):{text:null,icon:null};if(e.hasIconCollisionBoxData()||e.hasTextCollisionBoxData()){let L=e.collisionArrays[g];if(L){let z=new Be(0,0);if(L.textBox||L.verticalTextBox){let O=!0;if(u){let V=this.variableOffsets[_];V?(z=Fse(V.anchor,V.width,V.height,V.textOffset,V.textBoxScale),c&&z._rotate(h?-this.transform.bearingInRadians:this.transform.bearingInRadians)):O=!1}if(L.textBox||L.verticalTextBox){let V;L.textBox&&(V=P),L.verticalTextBox&&(V=I),Pse(e.textCollisionBox.collisionVertexArray,T.text.placed,!O||V,B.text,z.x,z.y)}}if(L.iconBox||L.verticalIconBox){let O=!(I||!L.verticalIconBox),V;L.iconBox&&(V=O),L.verticalIconBox&&(V=!O),Pse(e.iconCollisionBox.collisionVertexArray,T.icon.placed,V,B.icon,f?z.x:0,f?z.y:0)}}}}if(e.sortFeatures(-this.transform.bearingInRadians),this.retainedQueryData[e.bucketInstanceId]&&(this.retainedQueryData[e.bucketInstanceId].featureSortOrder=e.featureSortOrder),e.hasTextData()&&e.text.opacityVertexBuffer&&e.text.opacityVertexBuffer.updateData(e.text.opacityVertexArray),e.hasIconData()&&e.icon.opacityVertexBuffer&&e.icon.opacityVertexBuffer.updateData(e.icon.opacityVertexArray),e.hasIconCollisionBoxData()&&e.iconCollisionBox.collisionVertexBuffer&&e.iconCollisionBox.collisionVertexBuffer.updateData(e.iconCollisionBox.collisionVertexArray),e.hasTextCollisionBoxData()&&e.textCollisionBox.collisionVertexBuffer&&e.textCollisionBox.collisionVertexBuffer.updateData(e.textCollisionBox.collisionVertexArray),e.text.opacityVertexArray.length!==e.text.layoutVertexArray.length/4)throw Error(`bucket.text.opacityVertexArray.length (= ${e.text.opacityVertexArray.length}) !== bucket.text.layoutVertexArray.length (= ${e.text.layoutVertexArray.length}) / 4`);if(e.icon.opacityVertexArray.length!==e.icon.layoutVertexArray.length/4)throw Error(`bucket.icon.opacityVertexArray.length (= ${e.icon.opacityVertexArray.length}) !== bucket.icon.layoutVertexArray.length (= ${e.icon.layoutVertexArray.length}) / 4`);e.bucketInstanceId in this.collisionCircleArrays&&(e.collisionCircleArray=this.collisionCircleArrays[e.bucketInstanceId],delete this.collisionCircleArrays[e.bucketInstanceId])}symbolFadeChange(e){return this.fadeDuration===0?1:(e-this.commitTime)/this.fadeDuration+this.prevZoomAdjustment}zoomAdjustment(e){return Math.max(0,(this.transform.zoom-e)/1.5)}hasTransitions(e){return this.stale||e-this.lastPlacementChangeTimee}setStale(){this.stale=!0}};GGe=2**25,jGe=2**24,$Ge=2**17,HGe=2**16;q2=0,ZGe=class{constructor(e){this._sortAcrossTiles=e.layout.get("symbol-z-order")!=="viewport-y"&&!e.layout.get("symbol-sort-key").isConstant(),this._currentTileIndex=0,this._currentPartIndex=0,this._seenCrossTileIDs={},this._bucketParts=[]}continuePlacement(e,t,r,i,a){let n=this._bucketParts;for(;this._currentTileIndexo.sortKey-s.sortKey));this._currentPartIndex!this._forceFullPlacement&&ki()-i>2;for(;this._currentPlacementIndex>=0;){let n=t[e[this._currentPlacementIndex]],o=this.placement.collisionIndex.transform.zoom;if(pC(n)&&n.layout&&(!n.minzoom||n.minzoom<=o)&&(!n.maxzoom||n.maxzoom>o)){if(this._inProgressLayer||(this._inProgressLayer=new ZGe(n)),this._inProgressLayer.continuePlacement(r[n.source],this.placement,this._showCollisionBoxes,n,a))return;delete this._inProgressLayer}this._currentPlacementIndex--}this._done=!0}commit(e){return this.placement.commit(e),this.placement}},Lse=[Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array],ka=new Uint32Array(96),WGe=class Xle{static from(t){if(!t||t.byteLength===void 0||t.buffer)throw Error("Data must be an instance of ArrayBuffer or SharedArrayBuffer.");let[r,i]=new Uint8Array(t,0,2);if(r!==219)throw Error("Data does not appear to be in a KDBush format.");let a=i>>4;if(a!==1)throw Error(`Got v${a} data when expected v1.`);let n=Lse[i&15];if(!n)throw Error("Unrecognized array type.");let[o]=new Uint16Array(t,2,1),[s]=new Uint32Array(t,4,1);return new Xle(s,o,n,void 0,t)}constructor(t,r=64,i=Float64Array,a=ArrayBuffer,n){if(isNaN(t)||t<0)throw Error(`Unexpected numItems value: ${t}.`);this.numItems=+t,this.nodeSize=Math.min(Math.max(+r,2),65535),this.ArrayType=i,this.IndexArrayType=t<65536?Uint16Array:Uint32Array;let o=Lse.indexOf(this.ArrayType),s=t*2*this.ArrayType.BYTES_PER_ELEMENT,l=t*this.IndexArrayType.BYTES_PER_ELEMENT,u=(8-l%8)%8;if(o<0)throw Error(`Unexpected typed array class: ${i}.`);if(n)this.data=n,this.ids=new this.IndexArrayType(n,8,t),this.coords=new i(n,8+l+u,t*2),this._pos=t*2,this._finished=!0;else{let c=this.data=new a(8+s+l+u);this.ids=new this.IndexArrayType(c,8,t),this.coords=new i(c,8+l+u,t*2),this._pos=0,this._finished=!1,new Uint8Array(c,0,2).set([219,16+o]),new Uint16Array(c,2,1)[0]=r,new Uint32Array(c,4,1)[0]=t}}add(t,r){let i=this._pos>>1;return this.ids[i]=i,this.coords[this._pos++]=t,this.coords[this._pos++]=r,i}finish(){let t=this._pos>>1;if(t!==this.numItems)throw Error(`Added ${t} items when expected ${this.numItems}.`);return cF(this.ids,this.coords,this.nodeSize,0,this.numItems-1,0),this._finished=!0,this}range(t,r,i,a){if(!this._finished)throw Error("Data not yet indexed - call index.finish().");let{ids:n,coords:o,nodeSize:s}=this;ka[0]=0,ka[1]=n.length-1,ka[2]=0;let l=3,u=[];for(;l>0;){let c=ka[--l],h=ka[--l],f=ka[--l];if(h-f<=s){for(let g=f;g<=h;g++){let y=o[2*g],x=o[2*g+1];y>=t&&y<=i&&x>=r&&x<=a&&u.push(n[g])}continue}let d=f+h>>1,p=o[2*d],m=o[2*d+1];p>=t&&p<=i&&m>=r&&m<=a&&u.push(n[d]),(c===0?t<=p:r<=m)&&(ka[l++]=f,ka[l++]=d-1,ka[l++]=1-c),(c===0?i>=p:a>=m)&&(ka[l++]=d+1,ka[l++]=h,ka[l++]=1-c)}return u}within(t,r,i){let a=[];return this.withinInto(t,r,i,a),a}withinInto(t,r,i,a){if(!this._finished)throw Error("Data not yet indexed - call index.finish().");let{ids:n,coords:o,nodeSize:s}=this;ka[0]=0,ka[1]=n.length-1,ka[2]=0;let l=3,u=0,c=i*i;for(;l>0;){let h=ka[--l],f=ka[--l],d=ka[--l];if(f-d<=s){for(let y=d;y<=f;y++)zse(o[2*y],o[2*y+1],t,r)<=c&&(a[u++]=n[y]);continue}let p=d+f>>1,m=o[2*p],g=o[2*p+1];zse(m,g,t,r)<=c&&(a[u++]=n[p]),(h===0?t-i<=m:r-i<=g)&&(ka[l++]=d,ka[l++]=p-1,ka[l++]=1-h),(h===0?t+i>=m:r+i>=g)&&(ka[l++]=p+1,ka[l++]=f,ka[l++]=1-h)}return u}};N2=512/ft/2,XGe=class{constructor(e,t,r){this.tileID=e,this.bucketInstanceId=r,this._symbolsByKey={};let i=new Map;for(let a=0;a({x:Math.floor(s.anchorX*N2),y:Math.floor(s.anchorY*N2)})),crossTileIDs:n.map(s=>s.crossTileID)};if(o.positions.length>128){let s=new WGe(o.positions.length,16,Uint16Array);for(let{x:l,y:u}of o.positions)s.add(l,u);s.finish(),delete o.positions,o.index=s}this._symbolsByKey[a]=o}}getScaledCoordinates(e,t){let{x:r,y:i,z:a}=this.tileID.canonical,{x:n,y:o,z:s}=t.canonical,l=s-a,u=N2/2**l,c=(n*ft+e.anchorX)*u,h=(o*ft+e.anchorY)*u,f=r*ft*N2,d=i*ft*N2;return{x:Math.floor(c-f),y:Math.floor(h-d)}}findMatches(e,t,r){let i=this.tileID.canonical.ze)}},KGe=class{constructor(){this.maxCrossTileID=0}generate(){return++this.maxCrossTileID}},JGe=class{constructor(){this.indexes={},this.usedCrossTileIDs={},this.lng=0}handleWrapJump(e){let t=Math.round((e-this.lng)/360);if(t!==0)for(let r in this.indexes){let i=this.indexes[r],a={};for(let n in i){let o=i[n];o.tileID=o.tileID.unwrapTo(o.tileID.wrap+t),a[o.tileID.key]=o}this.indexes[r]=a}this.lng=e}addBucket(e,t,r){var a,n,o;if((a=this.indexes[e.overscaledZ])!=null&&a[e.key]){if(this.indexes[e.overscaledZ][e.key].bucketInstanceId===t.bucketInstanceId)return!1;this.removeBucketCrossTileIDs(e.overscaledZ,this.indexes[e.overscaledZ][e.key])}for(let s=0;se.overscaledZ)for(let u in l){let c=l[u];c.tileID.isChildOf(e)&&c.findMatches(t.symbolInstances,e,i)}else{let u=l[e.scaledTo(Number(s)).key];u&&u.findMatches(t.symbolInstances,e,i)}}for(let s=0;s{var d;return l.getProjectionData({overscaledTileID:new Qn(f.tileID.canonical.z,(d=f.tileID.wrap)!=null?d:0,f.tileID.canonical.z,f.tileID.canonical.x,f.tileID.canonical.y),aligned:f.aligned,applyGlobeMatrix:f.applyGlobeMatrix,applyTerrainMatrix:f.applyTerrainMatrix})}},h=o.renderingMode?o.renderingMode:"2d";if(i.currentPass==="offscreen"){let f=o.prerender;f&&(e.setCustomLayerDefaults(),n.setColorMode(e.colorModeForRenderPass()),f.call(o,n.gl,c),n.setDirty(),e.setBaseState())}else if(i.currentPass==="translucent"){e.setCustomLayerDefaults(),n.setColorMode(e.colorModeForRenderPass()),n.setStencilMode(Si.disabled);let f=h==="3d"?e.getDepthModeFor3D():e.getDepthModeForSublayer(0,ri.ReadOnly);n.setDepthMode(f),o.render(n.gl,c),n.setDirty(),e.setBaseState(),n.bindFramebuffer.set(null)}}function bZe(e,t){let r=e.context,i=r.gl,a=e.transform,n=$a.unblended,o=new ri(i.LEQUAL,ri.ReadWrite,[0,1]),s=t.tileManager.getRenderableTiles(),l=e.useProgram("terrainDepth");r.bindFramebuffer.set(t.getFramebuffer().framebuffer),r.viewport.set([0,0,e.width/devicePixelRatio,e.height/devicePixelRatio]),r.clear({color:Sr.white,depth:1});for(let u of s){let c=t.getTerrainMesh(u.tileID),h=t.getTerrainData(u.tileID),f=a.getProjectionData({overscaledTileID:u.tileID,applyTerrainMatrix:!1,applyGlobeMatrix:!0}),d=Uje(t.getSkirtLength(a.zoom));l.draw(r,i.TRIANGLES,o,Si.disabled,n,Ti.backCCW,d,h,f,"terrain",c.vertexBuffer,c.indexBuffer,c.segments)}r.bindFramebuffer.set(null),r.viewport.set([0,0,e.width,e.height])}function wZe(e,t,r,i){let{isRenderingGlobe:a}=i,n=e.context,o=n.gl,s=e.transform,l=e.colorModeForRenderPass(),u=e.getDepthModeFor3D(),c=e.useProgram("terrain");n.bindFramebuffer.set(null),n.viewport.set([0,0,e.width,e.height]);for(let h of r){let f=t.getTerrainMesh(h.tileID),d=e.renderToTexture.getTexture(h),p=t.getTerrainData(h.tileID);n.activeTexture.set(o.TEXTURE0),d.bind(o.LINEAR,o.CLAMP_TO_EDGE,o.LINEAR_MIPMAP_LINEAR);let m=t.getSkirtLength(s.zoom),g=s.calculateFogMatrix(h.tileID.toUnwrapped()),y=Vje(m,g,e.style.sky,s.pitch,a),x=vo(i,h.tileID,{applyTerrainMatrix:!1});c.draw(n,o.TRIANGLES,u,Si.disabled,l,Ti.backCCW,y,p,x,"terrain",f.vertexBuffer,f.indexBuffer,f.segments)}}function Vue(e,t){if(!t.mesh){let r=new Mh;r.emplaceBack(-1,-1),r.emplaceBack(1,-1),r.emplaceBack(1,1),r.emplaceBack(-1,1);let i=new qu;i.emplaceBack(0,1,2),i.emplaceBack(0,2,3),t.mesh=new Y2(e.createVertexBuffer(r,np.members),e.createIndexBuffer(i),Aa.simpleSegment(0,0,r.length,i.length))}return t.mesh}function AZe(e,t){let r=e.context,i=r.gl,a=G$e(t,e.transform,e.pixelRatio),n=new ri(i.LEQUAL,ri.ReadWrite,[0,1]),o=Si.disabled,s=e.colorModeForRenderPass(),l=e.useProgram("sky"),u=Vue(r,t);l.draw(r,i.TRIANGLES,n,o,s,Ti.disabled,a,null,void 0,"sky",u.vertexBuffer,u.indexBuffer,u.segments)}function TZe(e,t){let r=e.getCartesianPosition();oie(r,r);let i=$l(new Float64Array(16));return e.properties.get("anchor")==="map"&&(bh(i,i,t.rollInRadians),Zd(i,i,-t.pitchInRadians),bh(i,i,t.bearingInRadians),Zd(i,i,t.center.lat*Math.PI/180),xk(i,i,-t.center.lng*Math.PI/180)),sie(r,r,i),r}function MZe(e,t,r){let i=e.context,a=i.gl,n=e.useProgram("atmosphere"),o=new ri(a.LEQUAL,ri.ReadOnly,[0,1]),s=e.transform,l=TZe(r,e.transform),u=s.getProjectionData({overscaledTileID:null,applyGlobeMatrix:!0,applyTerrainMatrix:!0}),c=qm(s.worldSize,s.center.lat),h=mue(s),f=vue(Hl(h)-c,c),d=t.properties.get("atmosphere-blend")*u.projectionTransition*f;if(d===0)return;let p=V$e(l,d,h,c,s.inverseProjectionMatrix),m=Vue(i,t);n.draw(i,a.TRIANGLES,o,Si.disabled,$a.alphaBlended,Ti.disabled,p,null,null,"atmosphere",m.vertexBuffer,m.indexBuffer,m.segments)}function ZF(e,t){let r=!1,i=null,a,n=()=>{i=null,r&&(r=(e(...a),i=setTimeout(n,t),!1))};return(...o)=>(r=!0,a=o,i||n(),i)}function N2(e,t){(!e.duration||e.duration({around:i,panDelta:i.sub(r)}),activateOnStart:!0,moveStateManager:new K2({checkCorrectEvent:r=>r.button===0&&!r.ctrlKey}),enable:e,assignEvents:x6})}function jZe({enable:e,clickTolerance:t,aroundCenter:r=!0,minPixelCenterThreshold:i=100,rotateSpeed:a=.8},n){return new X2({clickTolerance:t,move:(o,s)=>{let l=n();if(r&&Math.abs(l.y-o.y)>i)return{bearingDelta:kk(new qe(o.x,s.y),s,l)};let u=(s.x-o.x)*a;return r&&s.yo.button===0&&o.ctrlKey||o.button===2&&!o.ctrlKey}),enable:e,assignEvents:x6})}function $Ze({enable:e,clickTolerance:t,pitchSpeed:r=-.5}){return new X2({clickTolerance:t,move:(i,a)=>({pitchDelta:(a.y-i.y)*r}),moveStateManager:new K2({checkCorrectEvent:i=>i.button===0&&i.ctrlKey||i.button===2}),enable:e,assignEvents:x6})}function HZe({enable:e,clickTolerance:t,rollDegreesPerPixelMoved:r=.3},i){return new X2({clickTolerance:t,move:(a,n)=>{let o=i(),s=(n.x-a.x)*r;return n.ya.button===2&&a.ctrlKey}),enable:e,assignEvents:x6})}function e6(e,t,r){for(let i=0;iMath.abs(e.x)}function WZe(e){return e*(2-e)}function oF(e){var t;return((t=e.panDelta)==null?void 0:t.mag())||e.zoomDelta||e.bearingDelta||e.pitchDelta||e.rollDelta}function hYe(e=!1){return Kt(this,null,function*(){if(rp!==void 0&&!e)return rp;if(window.navigator.permissions===void 0)return rp=!!window.navigator.geolocation,rp;try{rp=(yield window.navigator.permissions.query({name:"geolocation"})).state!=="denied"}catch(t){rp=!!window.navigator.geolocation}return rp})}function ace(e,t,r,i=!1){if(i||!r.getCoveringTilesDetailsProvider().allowWorldCopies())return e==null?void 0:e.wrap();let a=new ar(e.lng,e.lat);if(e=new ar(e.lng,e.lat),t){let n=new ar(e.lng-360,e.lat),o=new ar(e.lng+360,e.lat),s=r.locationToScreenPoint(e).distSqr(t);r.locationToScreenPoint(n).distSqr(t)180;){let n=r.locationToScreenPoint(e);if(n.x>=0&&n.y>=0&&n.x<=r.width&&n.y<=r.height)break;e.lng>r.center.lng?e.lng-=360:e.lng+=360}return e.lng!==a.lng&&r.isPointOnMapSurface(r.locationToScreenPoint(e))?e:a}function nce(e,t,r){let i=e.classList;for(let a in WF)i.remove(`maplibregl-${r}-anchor-${a}`);i.add(`maplibregl-${r}-anchor-${t}`)}function Yl(e,t,r=[]){let i=wr.createNS("http://www.w3.org/2000/svg",e);for(let a in t)i.setAttributeNS(null,a,t[a]);for(let a of r)i.appendChild(a);return i}function fYe(){return sF||(sF=Yl("svg",{display:"block",height:"41px",width:"27px",viewBox:"0 0 27 41"},[Yl("g",{"fill-rule":"nonzero"},[Yl("g",{transform:"translate(3.0, 29.0)",fill:"#000000"},[["10.5","5.25002273"],["10.5","5.25002273"],["9.5","4.77275007"],["8.5","4.29549936"],["7.5","3.81822308"],["6.5","3.34094679"],["5.5","2.86367051"],["4.5","2.38636864"]].map(([e,t])=>Yl("ellipse",{opacity:"0.04",cx:"10.5",cy:"5.80029008",rx:e,ry:t}))),Yl("g",{fill:oce},[Yl("path",{d:"M27,13.5 C27,19.074644 20.250001,27.000002 14.75,34.500002 C14.016665,35.500004 12.983335,35.500004 12.25,34.500002 C6.7499993,27.000002 0,19.222562 0,13.5 C0,6.0441559 6.0441559,0 13.5,0 C20.955844,0 27,6.0441559 27,13.5 Z"})]),Yl("g",{opacity:"0.25",fill:"#000000"},[Yl("path",{d:"M13.5,0 C6.0441559,0 0,6.0441559 0,13.5 C0,19.222562 6.7499993,27 12.25,34.5 C13,35.522727 14.016664,35.500004 14.75,34.5 C20.250001,27 27,19.074644 27,13.5 C27,6.0441559 20.955844,0 13.5,0 Z M13.5,1 C20.415404,1 26,6.584596 26,13.5 C26,15.898657 24.495584,19.181431 22.220703,22.738281 C19.945823,26.295132 16.705119,30.142167 13.943359,33.908203 C13.743445,34.180814 13.612715,34.322738 13.5,34.441406 C13.387285,34.322738 13.256555,34.180814 13.056641,33.908203 C10.284481,30.127985 7.4148684,26.314159 5.015625,22.773438 C2.6163816,19.232715 1,15.953538 1,13.5 C1,6.584596 6.584596,1 13.5,1 Z"})]),Yl("g",{transform:"translate(6.0, 7.0)",fill:"#FFFFFF"}),Yl("g",{transform:"translate(8.0, 8.0)"},[Yl("circle",{fill:"#000000",opacity:"0.25",cx:"5.5",cy:"5.5",r:"5.4999962"}),Yl("circle",{fill:"#FFFFFF",cx:"5.5",cy:"5.5",r:"5.4999962"})])])]),sF)}function dYe(e){return e.firstElementChild.children[1]}function wle(e,t,r){let i=(r==null?void 0:r.maxWidth)||100,{width:a,height:n}=e._camera.transform,o=n/2,s=a/2,l=e.unproject([s-i/2,o]),u=e.unproject([s+i/2,o]),c=Math.round(e.project(u).x-e.project(l).x),h=Math.min(i,c,a),f=l.distanceTo(u);if((r==null?void 0:r.unit)==="imperial"){let d=3.2808*f;d>5280?G2(t,h,d/5280,e._getUIString("ScaleControl.Miles")):G2(t,h,d,e._getUIString("ScaleControl.Feet"))}else(r==null?void 0:r.unit)==="nautical"?G2(t,h,f/1852,e._getUIString("ScaleControl.NauticalMiles")):f>=1e3?G2(t,h,f/1e3,e._getUIString("ScaleControl.Kilometers")):G2(t,h,f,e._getUIString("ScaleControl.Meters"))}function G2(e,t,r,i){let a=_Ye(r),n=a/r;e.style.width=`${t*n}px`;let o=`${a}\xA0${i}`;e.textContent!==o&&(e.textContent=o)}function yYe(e){let t=10**Math.ceil(-Math.log(e)/Math.LN10);return Math.round(e*t)/t}function _Ye(e){let t=10**(`${Math.floor(e)}`.length-1),r=e/t;return r=r>=10?10:r>=5?5:r>=3?3:r>=2?2:r>=1?1:yYe(r),t*r}function uce(e){if(!e)return uce(new qe(0,0));if(typeof e=="number"){let t=Math.round(Math.abs(e)/Math.SQRT2);return{center:new qe(0,0),top:new qe(0,e),"top-left":new qe(t,t),"top-right":new qe(-t,t),bottom:new qe(0,-e),"bottom-left":new qe(t,-t),"bottom-right":new qe(-t,-t),left:new qe(e,0),right:new qe(-e,0)}}if(e instanceof qe||Array.isArray(e)){let t=qe.convert(e);return{center:t,top:t,"top-left":t,"top-right":t,bottom:t,"bottom-left":t,"bottom-right":t,left:t,right:t}}return{center:qe.convert(e.center||[0,0]),top:qe.convert(e.top||[0,0]),"top-left":qe.convert(e["top-left"]||[0,0]),"top-right":qe.convert(e["top-right"]||[0,0]),bottom:qe.convert(e.bottom||[0,0]),"bottom-left":qe.convert(e["bottom-left"]||[0,0]),"bottom-right":qe.convert(e["bottom-right"]||[0,0]),left:qe.convert(e.left||[0,0]),right:qe.convert(e.right||[0,0])}}function DYe(e){var t,r,i,a;return e?{top:(t=e.top)!=null?t:0,right:(r=e.right)!=null?r:0,bottom:(i=e.bottom)!=null?i:0,left:(a=e.left)!=null?a:0}:{top:0,right:0,bottom:0,left:0}}function EYe(e,t){return Z2().setRTLTextPlugin(e,t)}function kYe(){return Z2().getRTLTextPluginStatus()}function CYe(){return SYe}function FYe(){return g6.workerCount}function PYe(e){g6.workerCount=e}function IYe(){return Ts.MAX_PARALLEL_IMAGE_REQUESTS}function LYe(e){Ts.MAX_PARALLEL_IMAGE_REQUESTS=e}function zYe(){return Ts.WORKER_URL}function RYe(e){Ts.WORKER_URL=e}function BYe(e){return Kt(this,null,function*(){yield FF().broadcast("IS",e)})}var hce,Ale,Uw,L2,VC,Ss,v6,sUe,lUe,uUe,cUe,z2,t,Ni,wr,Nu,hUe,Rn,hr,lF,Wl,ma,Ds,j2,Mle,uF,Dle,Sle,i6,Ele,bUe,wUe,cF,AUe,TUe,SUe,hF,EF,EUe,kUe,CUe,FUe,bse,PUe,IUe,wse,LUe,zUe,RUe,kF,g6,UUe,$2,Ple,jw,Vu,Rle,Ble,PF,qle,Nle,Rm,oGe,sGe,Y2,np,$w,Om,jle,$le,Hle,mGe,Zle,vGe,gGe,fF,_Ge,jC,Yle,xGe,IF,LF,DGe,Cse,Ch,pF,RGe,Fse,NGe,$Ge,YGe,Lse,R2,zse,WGe,XGe,KGe,JGe,QGe,eje,tje,B2,rje,ije,Ose,Ra,aje,O2,nje,oje,sje,iue,lje,uje,cje,hje,fje,dje,pje,mje,Vse,Ic,aue,nue,yF,_F,NF,vje,gje,yje,Gse,jse,_je,$se,f6,d6,Zse,xje,HC,due,Yse,ZC,Pje,WC,Ije,Jse,gue,rle,bue,ile,zje,bF,Rje,Bje,qje,Oje,Nje,Vje,Uje,y6,jje,GF,wue,Lm,Tue,Xw,Kje,Qje,e$e,Due,t$e,r$e,i$e,a$e,n$e,Sue,o$e,s$e,l$e,u$e,c$e,h$e,nle,f$e,d$e,Eue,kue,p$e,m$e,v$e,g$e,_$e,x$e,b$e,w$e,A$e,T$e,M$e,_6,D$e,S$e,E$e,k$e,C$e,F$e,P$e,I$e,L$e,Fue,Pue,z$e,R$e,B$e,q$e,O$e,N$e,V$e,U$e,G$e,Kw,j$e,$$e,ole,H$e,Ii,Z$e,Y$e,W$e,X$e,K$e,J$e,Q$e,eHe,tHe,rHe,iHe,aHe,nHe,oHe,sHe,lHe,uHe,cHe,hHe,fHe,dHe,pHe,mHe,vHe,gHe,yHe,_He,xHe,bHe,wHe,AHe,$F,THe,MHe,DHe,SHe,Iue,il,$a,CHe,ri,JC,Si,sle,QC,Ti,Jw,IHe,rF,aF,uZe,cZe,hZe,fZe,dZe,DZe,op,SZe,Uue,Gue,W2,EZe,kZe,CZe,FZe,PZe,IZe,LZe,zZe,jue,BZe,AF,qZe,X2,OZe,K2,VZe,UZe,x6,ZZe,YF,mle,$ue,Hue,Zue,YZe,Yue,yle,Wue,Xue,XZe,KZe,Kue,Jue,Que,ece,JZe,t6,QZe,eYe,tYe,tce,rce,ice,rYe,_le,iYe,zm,aYe,nYe,oYe,xle,sYe,lYe,uYe,cYe,rp,WF,ble,oce,sF,ip,sce,TF,pYe,r6,U2,ap,MF,lce,mYe,vYe,gYe,DF,xYe,bYe,wYe,AYe,TYe,SF,MYe,SYe,fce=Gi(()=>{fse();hce={};Ale="6.11.2";Ss={frame(e,t,r,i){let a=i||window,n=a.requestAnimationFrame(s=>{o(),t(s)}),{unsubscribe:o}=Vy(e.signal,"abort",()=>{o(),a.cancelAnimationFrame(n),r(new Mm(e.signal.reason))},!1)},frameAsync(e,t){return new Promise((r,i)=>{this.frame(e,r,i,t)})},getImageData(e,t=0){return this.getImageCanvasContext(e).getImageData(-t,-t,e.width+2*t,e.height+2*t)},getImageCanvasContext(e){let t;if(Y4()&&!yk())t=new OffscreenCanvas(e.width,e.height).getContext("2d",{willReadFrequently:!0});else{let r=window.document.createElement("canvas");r.width=e.width,r.height=e.height,t=r.getContext("2d",{willReadFrequently:!0})}if(!t)throw Error("failed to create canvas 2d context");return t.drawImage(e,0,0,e.width,e.height),t},resolveURL(e){return Uw||(Uw=document.createElement("a")),Uw.href=e,Uw.href},get hardwareConcurrency(){return typeof navigator<"u"&&navigator.hardwareConcurrency||4},get prefersReducedMotion(){return VC===void 0?matchMedia?(L2!=null||(L2=matchMedia("(prefers-reduced-motion: reduce)")),L2.matches):!1:VC},set prefersReducedMotion(e){VC=e}},v6=new class{constructor(){this._frozenAt=null}getCurrentTime(){return this._frozenAt===null?performance.now():this._frozenAt}setNow(e){this._frozenAt=e}restoreNow(){this._frozenAt=null}isFrozen(){return this._frozenAt!==null}};sUe=new Set("a.abbr.b.bdi.bdo.br.cite.code.del.div.em.i.img.ins.kbd.li.mark.ol.p.q.s.samp.small.span.strong.sub.sup.time.u.ul.var.wbr".split(".")),lUe=new Set(["alt","class","datetime","dir","height","href","hreflang","lang","referrerpolicy","rel","role","src","target","title","translate","type","width"]),uUe=new Set(["href","src"]),cUe=new Set(["http:","https:","mailto:"]);wr=(Ni=class{static create(t,r,i){let a=window.document.createElement(t);return r!==void 0&&(a.className=r),i&&i.appendChild(a),a}static createNS(t,r){return window.document.createElementNS(t,r)}static disableDrag(){Ni.docStyle&&Ni.selectProp&&(Ni.userSelect=Ni.docStyle[Ni.selectProp],Ni.docStyle[Ni.selectProp]="none")}static enableDrag(){Ni.docStyle&&Ni.selectProp&&(Ni.docStyle[Ni.selectProp]=Ni.userSelect)}static suppressClickInternal(t){t.preventDefault(),t.stopPropagation(),window.removeEventListener("click",Ni.suppressClickInternal,!0)}static suppressClick(){window.addEventListener("click",Ni.suppressClickInternal,!0),window.setTimeout(()=>{window.removeEventListener("click",Ni.suppressClickInternal,!0)},0)}static getScale(t){let r=t.getBoundingClientRect();return{x:r.width/t.offsetWidth||1,y:r.height/t.offsetHeight||1,boundingClientRect:r}}static getPoint(t,r,i){let a=r.boundingClientRect;return new qe((i.clientX-a.left)/r.x-t.clientLeft,(i.clientY-a.top)/r.y-t.clientTop)}static mousePos(t,r){let i=Ni.getScale(t);return Ni.getPoint(t,i,r)}static touchPos(t,r){let i=[],a=Ni.getScale(t);for(let n of r)i.push(Ni.getPoint(t,a,n));return i}static sanitize(t){let r=new DOMParser().parseFromString(t,"text/html").body,{querySelectorAll:i,remove:a}=UC();for(let o of Array.from(i.call(r,"*")))Ni.isAllowedElement(o)?Ni.removeDisallowedAttributes(o):a.call(o);let n=document.createDocumentFragment();return n.append(...r.childNodes),n}static isAllowedElement(t){let{namespaceURI:r,localName:i}=UC();return r.call(t)==="http://www.w3.org/1999/xhtml"&&sUe.has(i.call(t))}static removeDisallowedAttributes(t){let{getAttributeNames:r,getAttribute:i,removeAttribute:a}=UC();for(let n of r.call(t))Ni.isAllowedAttribute(n,i.call(t,n))||a.call(t,n)}static isAllowedAttribute(t,r){if(!lUe.has(t)&&!t.startsWith("aria-"))return!1;if(!uUe.has(t))return!0;try{return cUe.has(new URL(r,"https://maplibre.invalid/").protocol)}catch(i){return!1}}},Ni.docStyle=typeof window<"u"&&((t=window.document)==null?void 0:t.documentElement.style),Ni.selectProp=!Ni.docStyle||"userSelect"in Ni.docStyle?"userSelect":"webkitUserSelect",Ni);(function(e){let t,r,i,a;e.resetRequestQueue=()=>{t=[],r=0,i=0,a={}},e.addThrottleControl=h=>{let f=i++;return a[f]=h,f},e.removeThrottleControl=h=>{delete a[h],u()};let n=()=>{for(let h of Object.keys(a))if(a[h]())return!0;return!1};function o(h,f,d,p,m=!0,g){return Kt(this,null,function*(){let y=yield h.transformRequest(f,d);return sw(p.signal),Nu.getImage(y,p,m,g)})}e.transformAndGetImage=o,e.getImage=(h,f,d=!0,p)=>new Promise((m,g)=>{h.headers||(h.headers={}),h.headers.accept="image/webp,*/*",tr(h,{type:"image"});let y={abortController:f,requestParameters:h,supportImageRefresh:d,imageBitmapOptions:p,state:"queued",onError:x=>{g(x)},onSuccess:x=>{m(x)}};t.push(y),u()});let s=(h,f)=>typeof createImageBitmap=="function"?wie(h,f):Aie(h),l=h=>Kt(null,null,function*(){h.state="running";let{requestParameters:f,supportImageRefresh:d,imageBitmapOptions:p,onError:m,onSuccess:g,abortController:y}=h,x=d===!1&&!p&&!Ud(self)&&!Fk(f.url)&&(!f.headers||Object.keys(f.headers).reduce((_,A)=>_&&A==="accept",!0));r++;let b=x?c(f,y):h2(f,y);try{let _=yield b;delete h.abortController,h.state="completed",_.data instanceof HTMLImageElement||Zf(_.data)?g(_):!_.data||_.data.byteLength===0?g({data:null,cacheControl:_.cacheControl,expires:_.expires}):g({data:yield s(_.data,p),cacheControl:_.cacheControl,expires:_.expires})}catch(_){delete h.abortController,m(Wn(_))}finally{r--,u()}}),u=()=>{let h=n()?Ts.MAX_PARALLEL_IMAGE_REQUESTS_PER_FRAME:Ts.MAX_PARALLEL_IMAGE_REQUESTS;for(let f=r;f0;f++){let d=t.shift();if(d.abortController.signal.aborted){f--;continue}l(d)}},c=(h,f)=>new Promise((d,p)=>{let m=new Image,g=h.url,y=h.credentials;y&&y==="include"?m.crossOrigin="use-credentials":(y&&y==="same-origin"||!Ik(g))&&(m.crossOrigin="anonymous"),f.signal.addEventListener("abort",()=>{m.src="",p(new Mm(f.signal.reason))}),m.fetchPriority="high",m.onload=()=>{m.onerror=m.onload=null,d({data:m})},m.onerror=()=>{m.onerror=m.onload=null,!f.signal.aborted&&p(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."))},m.src=g})})(Nu||(Nu={})),Nu.resetRequestQueue();hUe=class{constructor(e){this._transformRequestFn=e!=null?e:null}transformRequest(e,t){return this._transformRequestFn&&this._transformRequestFn(e,t)||{url:e}}setTransformRequest(e){this._transformRequestFn=e}},Rn=class extends Ms{},hr=class extends Rn{},lF=class extends Rn{constructor(e={}){super("style.load",e)}},Wl=class extends Rn{constructor(e,t={}){super(e,t),this.dataType="style"}},ma=class extends Rn{constructor(e,t={}){super(e,t),this.dataType="source"}},Ds=class extends Rn{preventDefault(){this._defaultPrevented=!0}get defaultPrevented(){return this._defaultPrevented}constructor(e,t,r,i={}){r=r instanceof MouseEvent?r:new MouseEvent(e,r);let a=wr.mousePos(t.getCanvas(),r),n=t.unproject(a);super(e,tr({point:a,lngLat:n,originalEvent:r},i)),this._defaultPrevented=!1,this.target=t}},j2=class extends Rn{preventDefault(){this._defaultPrevented=!0}get defaultPrevented(){return this._defaultPrevented}constructor(e,t,r){let i=e==="touchend"?r.changedTouches:r.touches,a=wr.touchPos(t.getCanvasContainer(),i),n=a.map(l=>t.unproject(l)),o=a.reduce((l,u,c,h)=>l.add(u.div(h.length)),new qe(0,0)),s=t.unproject(o);super(e,{points:a,point:o,lngLats:n,lngLat:s,originalEvent:r}),this._defaultPrevented=!1}},Mle=class extends Rn{preventDefault(){this._defaultPrevented=!0}get defaultPrevented(){return this._defaultPrevented}constructor(e,t){super("wheel",{originalEvent:t}),this._defaultPrevented=!1}},uF=class extends Rn{},Dle=class extends Rn{constructor(e={}){super("terrain",e)}},Sle=class extends Rn{constructor(e={}){super("projectiontransition",e)}},i6=class extends Rn{},Ele=class extends Rn{constructor(e={}){super("styleimagemissing",e)}};bUe=class extends tn{constructor(){super(),this.images={},this.updateVersion=0,this.loaded=!1,this.requestors=[],this.missingImageResolver=null,this._spriteImagesIds={},this._imagesIds=null,this._renderCallbacksDispatchedThisFrame={}}destroy(){for(let e of Object.keys(this.images))this.removeImage(e);this._spriteImagesIds={}}isLoaded(){return this.loaded}setLoaded(e){if(this.loaded!==e&&(this.loaded=e,e)){for(let{ids:t,promiseResolve:r}of this.requestors)r(this._getImagesForIds(t));this.requestors=[]}}getImage(e){let t=this.images[e];if(t&&!t.data&&t.spriteData){let r=t.spriteData;t.data=new na({width:r.width,height:r.height},r.context.getImageData(r.x,r.y,r.width,r.height).data),t.spriteData=null}return t}addImage(e,t){if(this.images[e])throw Error(`Image id ${e} already exist, use updateImage instead`);this._validate(e,t)&&(this.images[e]=t,this._imagesIds=null,t.isWebGLImage&&this.updateImage(e,t,!1))}_validate(e,t){let r=!0,i=t.data||t.spriteData;return this._validateStretch(t.stretchX,i==null?void 0:i.width)||(this.fire(new or(Error(`Image "${e}" has invalid "stretchX" value`))),r=!1),this._validateStretch(t.stretchY,i==null?void 0:i.height)||(this.fire(new or(Error(`Image "${e}" has invalid "stretchY" value`))),r=!1),this._validateContent(t.content,t)||(this.fire(new or(Error(`Image "${e}" has invalid "content" value`))),r=!1),r}_validateStretch(e,t){if(!e)return!0;let r=0;for(let i of e){if(i[0]=e[1]}updateImage(e,t,r=!0){var a;let i=this.images[e];if(r){let n=i.data||i.spriteData;if(n.width!==t.data.width||n.height!==t.data.height)throw Error(`size mismatch between old image (${n.width}x${n.height}) and new image (${t.data.width}x${t.data.height}).`)}t.version=((a=i.version)!=null?a:0)+1,this.images[e]=t,this.updateVersion++}removeImage(e){var r;let t=this.images[e];t&&(delete this.images[e],this._imagesIds=null,(r=t.userImage)!=null&&r.onRemove&&t.userImage.onRemove())}listImages(){var e;return(e=this._imagesIds)!=null||(this._imagesIds=Object.keys(this.images)),this._imagesIds}_getSpriteImageId(e,t){return e==="default"?t:`${e}:${t}`}setSpriteImages(e,t){var o;let r=(o=this._spriteImagesIds[e])!=null?o:[],i=[];for(let s in t){let l=this._getSpriteImageId(e,s);i.push(l),l in this.images?this.updateImage(l,t[s],!1):this.addImage(l,t[s])}let a=new Set(i),n=r.filter(s=>!a.has(s));for(let s of n)this.removeImage(s);return this._spriteImagesIds[e]=i,{loaded:i,removed:n}}removeSpriteImages(e){var r;let t=(r=this._spriteImagesIds[e])!=null?r:[];for(let i of t)this.removeImage(i);return delete this._spriteImagesIds[e],t}removeAllSpriteImages(){let e=Object.values(this._spriteImagesIds).flat();for(let t of e)this.removeImage(t);return this._spriteImagesIds={},e}setMissingImageResolver(e){this.missingImageResolver=e}getImages(e){return new Promise((t,r)=>{let i=!0;if(!this.isLoaded())for(let a of e)this.images[a]||(i=!1);this.isLoaded()||i?t(this._getImagesForIds(e)):this.requestors.push({ids:e,promiseResolve:t})})}_getImagesForIds(e){return Kt(this,null,function*(){var a;let t=new Set(e.filter(n=>!this.getImage(n))),r=this.missingImageResolver;r&&(yield Promise.allSettled(Array.from(t,n=>r(n))));let i={};for(let n of e){let o=this.getImage(n);o&&(t.delete(n),i[n]={data:o.data.clone(),pixelRatio:o.pixelRatio,sdf:o.sdf,version:o.version,stretchX:o.stretchX,stretchY:o.stretchY,content:o.content,textFitWidth:o.textFitWidth,textFitHeight:o.textFitHeight,hasRenderCallback:!!((a=o.userImage)!=null&&a.render),isWebGLImage:o.isWebGLImage})}for(let n of t)this.fire(new Ele({id:n})),Xr(`Image "${n}" could not be loaded. Please make sure you have added the image before it is needed with map.addImage(), resolved it with map.setMissingStyleImageResolver(), or included it in a "sprite" property in your style.`);return i})}beginFrame(){this._renderCallbacksDispatchedThisFrame={}}dispatchRenderCallbacks(e){for(let t of e){if(this._renderCallbacksDispatchedThisFrame[t])continue;this._renderCallbacksDispatchedThisFrame[t]=!0;let r=this.getImage(t);r||Xr(`Image with ID: "${t}" was not found`),poe(r)&&this.updateImage(t,r)}}cloneImages(){let e={};for(let t in this.images){let r=this.images[t];e[t]=Yr(nr({},r),{data:r.data?r.data.clone():null})}return e}},wUe=class{constructor(e){this._imageManager=e,this._entries={},this._image=new na({width:1,height:1}),this._dirty=!0}destroy(){this._texture&&(this._texture=(this._texture.destroy(),null)),this._entries={},this._image=new na({width:1,height:1}),this._dirty=!0}getPixelSize(){let{width:e,height:t}=this._image;return{width:e,height:t}}getPattern(e){let t=this._imageManager.getImage(e);if(!t)return null;let r=this._entries[e];if((r==null?void 0:r.image)!==t){let i={w:t.data.width+2,h:t.data.height+2,x:0,y:0};this._entries[e]={bin:i,position:new Rw(i,t),image:t}}else if(r.position.version!==t.version)r.position.version=t.version;else return r.position;return this._update(),this._entries[e].position}bind(e){let t=e.gl;this._texture?this._dirty&&(this._dirty=(this._texture.update(this._image),!1)):(this._texture=new dn(e,this._image,t.RGBA),this._dirty=!1),this._texture.bind(t.LINEAR,t.CLAMP_TO_EDGE)}_update(){for(let a in this._entries)this._imageManager.getImage(a)||delete this._entries[a];let e=[];for(let a in this._entries)e.push(this._entries[a].bin);let{w:t,h:r}=yC(e),i=this._image;i.resize({width:t||1,height:r||1});for(let a in this._entries){let{bin:n}=this._entries[a],o=n.x+1,s=n.y+1,l=this._entries[a].image.data,u=l.width,c=l.height;na.copy(l,i,{x:0,y:0},{x:o,y:s},{width:u,height:c}),na.copy(l,i,{x:0,y:c-1},{x:o,y:s-1},{width:u,height:1}),na.copy(l,i,{x:0,y:0},{x:o,y:s+c},{width:u,height:1}),na.copy(l,i,{x:u-1,y:0},{x:o-1,y:s},{width:1,height:c}),na.copy(l,i,{x:0,y:0},{x:o+u,y:s},{width:1,height:c})}this._dirty=!0}},cF=1114111,AUe={start:0,end:cF},TUe=0;SUe=class{constructor(e){this.requestManager=e,this._faces={},this._registered=new Set}setFontFaces(e){this._unregisterAll(),this._faces={};for(let[t,r]of Object.entries(e!=null?e:{})){let i=Array.isArray(r)?r:[r];this._faces[t]=i.map(a=>this._declareFontFace(t,a)).filter(a=>a!==null)}}hasFontFaces(){return Object.keys(this._faces).length>0}getFontFamily(e,t){return Kt(this,null,function*(){var r,i;for(let a of e.split(","))for(let n of(r=this._faces[a.trim()])!=null?r:[])if(DUe(n,t)&&((i=n.loaded)!=null||(n.loaded=this._loadFontFace(n)),yield n.loaded))return n.family;return null})}_declareFontFace(e,t){let r=typeof t=="string"?{url:t}:t;if(typeof(r==null?void 0:r.url)!="string")return Xr(`Ignoring the font face declared for "${e}": it has no URL.`),null;let i=`maplibre-gl-font-face-${TUe++}`,a=r["unicode-range"];if(!(a!=null&&a.length))return{url:r.url,ranges:[AUe],family:i};let n=[];for(let o of a){let s=MUe(o);if(!s){Xr(`Ignoring the unicode range "${o}" of the font face at ${r.url}: it is not a valid range.`);continue}n.push(s)}return n.length?{url:r.url,ranges:n,family:i}:null}_loadFontFace(e){return Kt(this,null,function*(){if(typeof FontFace>"u"||typeof document>"u"||!document.fonts)return Xr(`Ignoring the font face at ${e.url}: this environment has no CSS Font Loading API.`),!1;let t;try{return t=new FontFace(e.family,yield this._downloadFontFile(e.url)),Object.values(this._faces).some(r=>r.includes(e))?(document.fonts.add(t),this._registered.add(t),yield t.load(),!0):!1}catch(r){return t&&this._unregister(t),Xr(`Ignoring the font face at ${e.url}: ${Wn(r).message}`),!1}})}_downloadFontFile(e){return Kt(this,null,function*(){let t=yield this.requestManager.transformRequest(e,"Glyphs"),r=yield Pk(t,new AbortController);if(!(r!=null&&r.data))throw Error(`the response was empty for the font file at ${e}`);return r.data})}_unregister(e){var t;(t=document.fonts)==null||t.delete(e),this._registered.delete(e)}_unregisterAll(){var e;for(let t of this._registered)(e=document.fonts)==null||e.delete(t);this._registered.clear()}destroy(){this._unregisterAll(),this._faces={}}},hF=1e20,EF=new Float64Array(256);for(let e=0;e<256;e++){let t=.5-(e/255)**.45454545454545453;EF[e]=t*Math.abs(t)}EF[255]=-1e20;EUe=class{constructor({fontSize:e=24,buffer:t=3,radius:r=8,cutoff:i=.25,fontFamily:a="sans-serif",fontWeight:n="normal",fontStyle:o="normal",lang:s=null}={}){this.buffer=t,this.radius=r,this.cutoff=i,this.lang=s;let l=this.size=e+t*4,u=this._createCanvas(l),c=this.ctx=u.getContext("2d",{willReadFrequently:!0});c.font=`${o} ${n} ${e}px ${a}`,c.textBaseline="alphabetic",c.textAlign="left",c.fillStyle="black",this.gridOuter=new Float64Array(l*l),this.gridInner=new Float64Array(l*l),this.f=new Float64Array(l),this.z=new Float64Array(l+1),this.v=new Uint16Array(l)}_createCanvas(e){if(typeof OffscreenCanvas<"u")return new OffscreenCanvas(e,e);let t=document.createElement("canvas");return t.width=t.height=e,t}draw(e){let{width:t,actualBoundingBoxAscent:r,actualBoundingBoxDescent:i,actualBoundingBoxLeft:a,actualBoundingBoxRight:n}=this.ctx.measureText(e),o=Math.ceil(r),s=Math.floor(-a),l=Math.max(0,Math.min(this.size-this.buffer,Math.ceil(n)-s)),u=Math.max(0,Math.min(this.size-this.buffer,o+Math.ceil(i))),c=l+2*this.buffer,h=u+2*this.buffer,f=Math.max(c*h,0),d=new Uint8ClampedArray(f),p={data:d,width:c,height:h,glyphWidth:l,glyphHeight:u,glyphTop:o,glyphLeft:s,glyphAdvance:t};if(l===0||u===0)return p;let{ctx:m,buffer:g,gridInner:y,gridOuter:x}=this;this.lang&&(m.lang=this.lang),m.clearRect(g,g,l,u),m.fillText(e,g-s,g+o);let b=m.getImageData(g,g,l,u);x.fill(hF,0,f),y.fill(0,0,f);let _=3;for(let S=0;S{let r=new EUe(e);return r.buffer=t,r},FUe=class{constructor(e,t,r,i=CUe){this.requestManager=e,this.localIdeographFontFamily=t,this.entries={},this.lang=r,this.fontFaceManager=new SUe(e),this.createRasterizer=i}setURL(e){this.url=e}setFontFaces(e){this.fontFaceManager.setFontFaces(e),this.entries={}}getGlyphs(e){return Kt(this,null,function*(){var a;let t=[];for(let n in e)for(let o in e[n])for(let s of e[n][o])t.push(this._getAndCacheGlyphsPromise(n,s,o));let r=yield Promise.all(t),i={};for(let{stack:n,id:o,variant:s,glyph:l}of r)i[n]||(i[n]={}),(a=i[n])[s]||(a[s]={}),i[n][s][o]=l&&{id:l.id,bitmap:l.bitmap.clone(),metrics:l.metrics};return i})}_getAndCacheGlyphsPromise(e,t,r){return Kt(this,null,function*(){var l,u,c;(u=(l=this.entries)[e])!=null||(l[e]={glyphs:{default:{}},requests:{},ranges:{}});let i=this.entries[e],a=(c=i.glyphs)[r]||(c[r]={}),n=a[t];if(n!==void 0)return{stack:e,id:t,variant:r,glyph:n};if(r!=="default")return a[t]=null,{stack:e,id:t,variant:r,glyph:null};let o=t.codePointAt(0),s=this.fontFaceManager.hasFontFaces()?yield this.fontFaceManager.getFontFamily(e,o):null;return s?(n=a[t]=yield this._drawGlyph(i,e,t,s),{stack:e,id:t,variant:r,glyph:n}):!this.url||A2(t)||this._charUsesLocalIdeographFontFamily(o)?(n=a[t]=yield this._drawGlyph(i,e,t),{stack:e,id:t,variant:r,glyph:n}):Yr(nr({},yield this._downloadAndCacheRangePromise(e,t)),{variant:r})})}_downloadAndCacheRangePromise(e,t){return Kt(this,null,function*(){var n;let r=t.codePointAt(0),i=this.entries[e],a=Math.floor(r/256);if(i.ranges[a])return{stack:e,id:t,glyph:null};(n=i.requests)[a]||(n[a]=this._loadGlyphRange(e,a));try{let o=yield i.requests[a];for(let s in o)i.glyphs.default[String.fromCodePoint(+s)]=o[+s];return i.ranges[a]=!0,{stack:e,id:t,glyph:o[r]||null}}catch(o){let s=i.glyphs.default[t]=yield this._drawGlyph(i,e,t);return this._warnOnMissingGlyphRange(s,a,r,Wn(o)),{stack:e,id:t,glyph:s}}})}_loadGlyphRange(e,t){return Kt(this,null,function*(){let r=t*256,i=r+255,a=yield this.requestManager.transformRequest(this.url.replace("{fontstack}",e).replace("{range}",`${r}-${i}`),"Glyphs"),n=yield Pk(a,new AbortController);if(!(n!=null&&n.data))throw Error(`Could not load glyph range. range: ${t}, ${r}-${i}`);let o={};for(let s of doe(n.data))o[s.id]=s;return o})}_warnOnMissingGlyphRange(e,t,r,i){let a=t*256,n=a+255,o=r.toString(16).padStart(4,"0").toUpperCase();Xr(`Unable to load glyph range ${t}, ${a}-${n}. Rendering codepoint U+${o} locally instead. ${i}`)}_charUsesLocalIdeographFontFamily(e){return!!this.localIdeographFontFamily&&aoe(e)}_drawGlyph(e,t,r,i){return Kt(this,null,function*(){let a=(yield this._getTinySDF(e,t,r,i)).draw(r),n=new RegExp("^\\p{gc=Cf}+$","u").test(r);return{id:r.codePointAt(0),bitmap:new Cw({width:a.width||60,height:a.height||60},a.data),metrics:{width:n?0:a.glyphWidth/2||24,height:a.glyphHeight/2||24,left:a.glyphLeft/2+.5||0,top:a.glyphTop/2-27.5||-8,advance:n?0:a.glyphAdvance/2||24,isDoubleResolution:!0}}})}_getTinySDF(e,t,r,i){var l,u,c,h;let a=A2(r);if(i){let f=a?"clusterTinySDFs":"fontFaceTinySDFs";return(l=e[f])!=null||(e[f]={}),(u=e[f])[i]||(u[i]=this._createTinySDF(i,!1,a?3:1)),e[f][i]}let n=t===kUe&&this.localIdeographFontFamily!==""&&this._charUsesLocalIdeographFontFamily(r.codePointAt(0)),o=n?this.localIdeographFontFamily:t;if(a)return(c=e.clusterTinySDFs)!=null||(e.clusterTinySDFs={}),(h=e.clusterTinySDFs)[o]||(h[o]=this._createTinySDF(o,!0,3)),e.clusterTinySDFs[o];let s=n?"ideographTinySDF":"tinySDF";return e[s]||(e[s]=this._createTinySDF(o)),e[s]}_createTinySDF(e,t=!0,r=1){return Kt(this,null,function*(){var s;let i=e?e.split(","):[];i.push("sans-serif");let a=i.map(l=>/[-\w]+/.test(l)?l:`'${CSS.escape(l)}'`).join(","),n=t?this._fontWeight(i[0]):void 0,o=t?this._fontStyle(i[0]):"normal";if(typeof document<"u"&&((s=document.fonts)!=null&&s.load))try{yield document.fonts.load(`${o} ${n||"normal"} 48px ${a}`)}catch(l){Xr(`Failed to load font "${a}": ${Wn(l).message}`)}return this.createRasterizer({fontSize:48,buffer:Math.max(6,Math.ceil(48*(r-1)/4)),radius:16,cutoff:.25,fontFamily:a,fontWeight:n,fontStyle:o,lang:this.lang},6)})}_fontStyle(e){return/italic/i.test(e)?"italic":/oblique/i.test(e)?"oblique":"normal"}_fontWeight(e){let t={thin:100,hairline:100,"extra light":200,"ultra light":200,light:300,normal:400,regular:400,medium:500,semibold:600,demibold:600,bold:700,"extra bold":800,"ultra bold":800,black:900,heavy:900,"extra black":950,"ultra black":950},r;for(let[i,a]of Object.entries(t))RegExp(`\\b${i}\\b`,"i").test(e)&&(r=`${a}`);return r}destroy(){for(let e in this.entries){let t=this.entries[e];t.tinySDF=null,t.ideographTinySDF=null,t.fontFaceTinySDFs={},t.glyphs={default:{}},t.requests={},t.ranges={}}this.entries={},this.fontFaceManager.destroy()}},PUe=()=>bse||(bse=new Ln({anchor:new Gt(Xe.light.anchor,"anchor"),position:new Gt(Xe.light.position,"position"),color:new Gt(Xe.light.color,"color"),intensity:new Gt(Xe.light.intensity,"intensity")})),IUe=class extends tn{constructor(e,t){super(),this._transitionable=new _2(PUe(),"light",t),this.setLight(e),this._transitioning=this._transitionable.untransitioned()}getLight(){return this._transitionable.serialize()}getCartesianPosition(){return _ie(this.properties.get("position"))}setLight(e,t={}){this._validate(es.light,e,t)||this._transitionable.setValues(e)}updateTransitions(e){this._transitioning=this._transitionable.transitioned(e,this._transitioning)}hasTransition(){return this._transitioning.hasTransition()}applyGlobalStateChange(e,t,r){this._transitioning=this._transitionable.applyGlobalStateChange(e,t,this._transitioning,r)}recalculate(e){this.properties=this._transitioning.possiblyEvaluate(e)}_validate(e,t,r){return Em(this,e,{value:t},r)}},LUe=()=>wse||(wse=new Ln({"sky-color":new Gt(Xe.sky["sky-color"],"sky-color"),"horizon-color":new Gt(Xe.sky["horizon-color"],"horizon-color"),"fog-color":new Gt(Xe.sky["fog-color"],"fog-color"),"fog-ground-blend":new Gt(Xe.sky["fog-ground-blend"],"fog-ground-blend"),"horizon-fog-blend":new Gt(Xe.sky["horizon-fog-blend"],"horizon-fog-blend"),"sky-horizon-blend":new Gt(Xe.sky["sky-horizon-blend"],"sky-horizon-blend"),"atmosphere-blend":new Gt(Xe.sky["atmosphere-blend"],"atmosphere-blend")})),zUe=class extends tn{constructor(e,t){super(),this._transitionable=new _2(LUe(),"sky",t),this.setSky(e),this._transitioning=this._transitionable.untransitioned(),this.recalculate(new Di(0))}setSky(e,t={}){return!this._validate(es.sky,e,t)&&(e||(e={"sky-color":"transparent","horizon-color":"transparent","fog-color":"transparent","fog-ground-blend":1,"atmosphere-blend":0}),this._transitionable.setValues(e),!0)}getSky(){return this._transitionable.serialize()}updateTransitions(e){this._transitioning=this._transitionable.transitioned(e,this._transitioning)}hasTransition(){return this._transitioning.hasTransition()}applyGlobalStateChange(e,t,r){this._transitioning=this._transitionable.applyGlobalStateChange(e,t,this._transitioning,r)}recalculate(e){this.properties=this._transitioning.possiblyEvaluate(e)}_validate(e,t,r={}){return Em(this,e,{value:t},r)}calculateFogBlendOpacity(e){return e<60?0:e<70?(e-60)/10:1}},RUe=class{constructor(e,t){this.width=e,this.height=t,this.nextRow=0,this.data=new Uint8Array(this.width*this.height),this.dashEntry={}}getDash(e,t){var i;let r=e.join(",")+String(t);return(i=this.dashEntry)[r]||(i[r]=this.addDash(e,t)),this.dashEntry[r]}getDashRanges(e,t,r){let i=e.length%2==1,a=[],n=i?-e[e.length-1]*r:0,o=e[0]*r,s=!0;a.push({left:n,right:o,isDash:s,zeroLength:e[0]===0});let l=e[0];for(let u=1;u1&&(l=e[++s]);let c=Math.abs(u-l.left),h=Math.abs(u-l.right),f=Math.min(c,h),d,p=a/r*(i+1);if(l.isDash){let m=i-Math.abs(p);d=Math.sqrt(f*f+m*m)}else d=i-Math.sqrt(f*f+p*p);this.data[o+u]=Math.max(0,Math.min(255,d+128))}}}addRegularDash(e){for(let o=e.length-1;o>=0;--o){let s=e[o],l=e[o+1];s.zeroLength?e.splice(o,1):(l==null?void 0:l.isDash)===s.isDash&&(l.left=s.left,e.splice(o,1))}let t=e[0],r=e[e.length-1];t.isDash===r.isDash&&(t.left=r.left-this.width,r.right=t.right+this.width);let i=this.width*this.nextRow,a=0,n=e[a];for(let o=0;o1&&(n=e[++a]);let s=Math.abs(o-n.left),l=Math.abs(o-n.right),u=Math.min(s,l),c=n.isDash?u:-u;this.data[i+o]=Math.max(0,Math.min(255,c+128))}}addDash(e,t){let r=t?7:0,i=2*r+1;if(this.nextRow+i>this.height)return Xr("LineAtlas out of space"),null;let a=0;for(let o of e)a+=o;if(a!==0){let o=this.width/a,s=this.getDashRanges(e,this.width,o);t?this.addRoundDash(s,o,r):this.addRegularDash(s)}let n={y:this.nextRow+r,height:2*r,width:a};return this.nextRow+=i,this.dirty=!0,n}bind(e){let t=e.gl;this.texture?(t.bindTexture(t.TEXTURE_2D,this.texture),this.dirty&&(this.dirty=!1,t.texSubImage2D(t.TEXTURE_2D,0,0,0,this.width,this.height,t.ALPHA,t.UNSIGNED_BYTE,this.data))):(this.texture=t.createTexture(),t.bindTexture(t.TEXTURE_2D,this.texture),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_S,t.REPEAT),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_T,t.REPEAT),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,t.LINEAR),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,t.LINEAR),t.texImage2D(t.TEXTURE_2D,0,t.ALPHA,this.width,this.height,0,t.ALPHA,t.UNSIGNED_BYTE,this.data))}};kF="maplibre_preloaded_worker_pool",g6=class Fle{constructor(){this.active={},this.workersPromise=null}acquire(t){return Kt(this,null,function*(){if(this.active[t]=!0,!this.workersPromise){let r=[];for(;r.length{for(let a of i)a.terminate()})}}isPreloaded(){return!!this.active[kF]}numActive(){return Object.keys(this.active).length}},UUe=Math.floor(Ss.hardwareConcurrency/2);g6.workerCount=bie(globalThis)?Math.max(Math.min(UUe,3),1):1;Ple=class extends tn{constructor(e,t){super(),this.workerPool=e,this.actors=[],this.currentActor=0,this.id=t,this.removed=!1,this.workerErrorSubscriptions=[],this.actorsPromise=this.initActors(t)}initActors(e){return Kt(this,null,function*(){let t=yield this.workerPool.acquire(e);if(this.removed)return[];if(this.actors=t.map((r,i)=>{this.workerErrorSubscriptions.push(Vy(r,"error",()=>{this.fire(new or(Error("Worker failed to load. Check that the worker URL is correct.")))},!1));let a=new Ioe(r,e);return a.name=`Worker ${i}`,a}),!this.actors.length)throw Error("No actors found");return this.actors})}broadcast(e,t){return Kt(this,null,function*(){let r=yield this.actorsPromise;return Promise.all(r.map(i=>i.sendAsync({type:e,data:t})))})}getActor(){return Kt(this,null,function*(){let e=yield this.actorsPromise;return this.currentActor=(this.currentActor+1)%e.length,e[this.currentActor]})}waitForInitComplete(){return Kt(this,null,function*(){this.actors.length===0&&(yield this.actorsPromise)})}getReadyActor(){return this.currentActor=(this.currentActor+1)%this.actors.length,this.actors[this.currentActor]}remove(e=!0){this.removed=!0;for(let t of this.actors)t.remove();for(let t of this.workerErrorSubscriptions)t.unsubscribe();this.actors=[],this.workerErrorSubscriptions=[],this.setEventedParent(null),e&&this.workerPool.release(this.id)}registerMessageHandler(e,t){return Kt(this,null,function*(){let r=yield this.actorsPromise;for(let i of r)i.registerMessageHandler(e,t)})}unregisterMessageHandler(e){return Kt(this,null,function*(){let t=yield this.actorsPromise;for(let r of t)r.unregisterMessageHandler(e)})}};Vu=class Eh{constructor(t,r){t&&(r?this.setSouthWest(t).setNorthEast(r):Array.isArray(t)&&(t.length===4?this.setSouthWest([t[0],t[1]]).setNorthEast([t[2],t[3]]):this.setSouthWest(t[0]).setNorthEast(t[1])))}setNorthEast(t){return this._ne=t instanceof ar?new ar(t.lng,t.lat):ar.convert(t),this}setSouthWest(t){return this._sw=t instanceof ar?new ar(t.lng,t.lat):ar.convert(t),this}extend(t){let r=this._sw,i=this._ne,a,n;if(t instanceof ar)a=t,n=t;else if(t instanceof Eh){if(a=t._sw,n=t._ne,!a||!n)return this}else{if(Array.isArray(t)){if(t.length===4||t.every(Array.isArray)){let o=t;return this.extend(Eh.convert(o))}{let o=t;return this.extend(ar.convert(o))}}return t&&("lng"in t||"lon"in t)&&"lat"in t?this.extend(ar.convert(t)):this}return!r&&!i?(this._sw=new ar(a.lng,a.lat),this._ne=new ar(n.lng,n.lat)):(r.lng=Math.min(a.lng,r.lng),r.lat=Math.min(a.lat,r.lat),i.lng=Math.max(n.lng,i.lng),i.lat=Math.max(n.lat,i.lat)),this}getCenter(){return new ar((this._sw.lng+this._ne.lng)/2,(this._sw.lat+this._ne.lat)/2)}getSouthWest(){return this._sw}getNorthEast(){return this._ne}getNorthWest(){return new ar(this.getWest(),this.getNorth())}getSouthEast(){return new ar(this.getEast(),this.getSouth())}getWest(){return this._sw.lng}getSouth(){return this._sw.lat}getEast(){return this._ne.lng}getNorth(){return this._ne.lat}toArray(){return[this._sw.toArray(),this._ne.toArray()]}toString(){return`LngLatBounds(${this._sw.toString()}, ${this._ne.toString()})`}isEmpty(){return!(this._sw&&this._ne)}contains(t){let{lng:r,lat:i}=ar.convert(t),a=this._sw.lat<=i&&i<=this._ne.lat,n=this._sw.lng<=r&&r<=this._ne.lng;return this._sw.lng>this._ne.lng&&(n=this._sw.lng>=r&&r>=this._ne.lng),a&&n}intersects(t){if(t=Eh.convert(t),!(t.getNorth()>=this.getSouth()&&t.getSouth()<=this.getNorth()))return!1;let r=Math.abs(this.getEast()-this.getWest()),i=Math.abs(t.getEast()-t.getWest());if(r>=360||i>=360)return!0;let a=rl(this.getWest(),-180,180),n=rl(this.getEast(),-180,180),o=rl(t.getWest(),-180,180),s=rl(t.getEast(),-180,180),l=a>n,u=o>s;return l&&u?!0:l?s>=a||o<=n:u?n>=o||a<=s:o<=n&&s>=a}static convert(t){return t instanceof Eh||!t?t:new Eh(t)}static fromLngLat(t,r=0){let i=360*r/40075017,a=i/Math.cos(Math.PI/180*t.lat);return new Eh(new ar(t.lng-a,t.lat-i),new ar(t.lng+a,t.lat+i))}adjustAntiMeridian(){let t=new ar(this._sw.lng,this._sw.lat),r=new ar(this._ne.lng,this._ne.lat);return t.lng>r.lng?new Eh(t,new ar(r.lng+360,r.lat)):new Eh(t,r)}},Rle=class{constructor(e,t,r){this.bounds=Vu.convert(this.validateBounds(e)),this.minzoom=t||0,this.maxzoom=r||24}validateBounds(e){return!Array.isArray(e)||e.length!==4?[-180,-90,180,90]:[Math.max(-180,e[0]),Math.max(-90,e[1]),Math.min(180,e[2]),Math.min(90,e[3])]}contains(e){let t=2**e.z,r={minX:Math.floor(Jd(this.bounds.getWest())*t),minY:Math.floor(Qd(this.bounds.getNorth())*t),maxX:Math.ceil(Jd(this.bounds.getEast())*t),maxY:Math.ceil(Qd(this.bounds.getSouth())*t)};return e.x>=r.minX&&e.x=r.minY&&e.y{this.tiles=e,this._options.tiles=e}),this}setUrl(e){return this.setSourceProperty(()=>{this.url=e,this._options.url=e}),this}onRemove(){this._tileJSONRequest&&(this._tileJSONRequest=(this._tileJSONRequest.abort(),null))}serialize(){return tr({},this._options)}loadTile(e){return Kt(this,null,function*(){let t=e.tileID.canonical.url(this.tiles,this.map.getPixelRatio(),this.scheme),r={request:yield this.map._requestManager.transformRequest(t,"Tile"),uid:e.uid,tileID:e.tileID,zoom:e.tileID.overscaledZ,tileSize:this.tileSize*e.tileID.overscaleFactor(),type:this.type,source:this.id,pixelRatio:this.map.getPixelRatio(),showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId,subdivisionGranularity:this.map.style.projection.subdivisionGranularity,encoding:this.encoding,overzoomParameters:yield this._getOverzoomParameters(e),etag:e.etag};if(r.request.collectResourceTiming=this._collectResourceTiming,yield this.dispatcher.waitForInitComplete(),e.aborted)return;let i="RT";if(!e.actor||e.state==="expired")e.actor=this.dispatcher.getReadyActor(),i="LT";else if(e.state==="loading")return new Promise((a,n)=>{e.reloadPromise={resolve:a,reject:n}});e.abortController=new AbortController;try{let a=yield e.actor.sendAsync({type:i,data:r},e.abortController);if(delete e.abortController,e.aborted)return;this._afterTileLoadWorkerResponse(e,a);let n={};return a!=null&&a.etagUnmodified&&(n.unmodified=!0),n}catch(a){if(delete e.abortController,e.aborted||Ah(a))return;if(a&&a.status!==404)throw a;this._afterTileLoadWorkerResponse(e,null)}})}_getOverzoomParameters(e){return Kt(this,null,function*(){if(e.tileID.canonical.z<=this.maxzoom||this.map._zoomLevelsToOverscale===void 0)return;let t=e.tileID.scaledTo(this.maxzoom).canonical,r=t.url(this.tiles,this.map.getPixelRatio(),this.scheme);return{maxZoomTileID:t,overzoomRequest:yield this.map._requestManager.transformRequest(r,"Tile")}})}_afterTileLoadWorkerResponse(e,t){if(t!=null&&t.resourceTiming&&(e.resourceTiming=t.resourceTiming),t&&this.map._refreshExpiredTiles&&e.setExpiryData(t),e.etag=t==null?void 0:t.etag,e.loadVectorData(t,this.map.painter),e.reloadPromise){let r=e.reloadPromise;e.reloadPromise=null,this.loadTile(e).then(r.resolve).catch(r.reject)}}abortTile(e){return Kt(this,null,function*(){e.abortController&&(e.abortController.abort(),delete e.abortController),e.actor&&(yield e.actor.sendAsync({type:"AT",data:{uid:e.uid,type:this.type,source:this.id}}))})}unloadTile(e){return Kt(this,null,function*(){e.unloadVectorData(),e.actor&&(yield e.actor.sendAsync({type:"RMT",data:{uid:e.uid,type:this.type,source:this.id}}))})}hasTransition(){return!1}},PF=class extends tn{constructor(e,t,r,i){super(),this.id=e,this.dispatcher=r,this.setEventedParent(i),this.type="raster",this.minzoom=0,this.maxzoom=22,this.roundZoom=!0,this.scheme="xyz",this.tileSize=512,this._loaded=!1,this._premultiplyAlpha=!0,this._options=tr({type:"raster"},t),tr(this,Tm(t,["url","scheme","tileSize"]))}load(e=!1){return Kt(this,null,function*(){this._loaded=!1,this.fire(new ma("dataloading")),this._tileJSONRequest=new AbortController;try{let t=yield zle(this._options,this.map._requestManager,this._tileJSONRequest,this.map._ownerWindow);this._tileJSONRequest=null,this._loaded=!0,t&&(tr(this,t),t.bounds&&(this.tileBounds=new Rle(t.bounds,this.minzoom,this.maxzoom)),this.fire(new ma("data",{sourceDataType:"metadata"})),this.fire(new ma("data",{sourceDataType:"content",sourceDataChanged:e})))}catch(t){this._tileJSONRequest=null,this._loaded=!0,Ah(t)||this.fire(new or(Wn(t)))}})}loaded(){return this._loaded}onAdd(e){this.map=e,this.load()}onRemove(){this._tileJSONRequest&&(this._tileJSONRequest=(this._tileJSONRequest.abort(),null))}setSourceProperty(e){this._tileJSONRequest&&(this._tileJSONRequest=(this._tileJSONRequest.abort(),null)),e(),this.load(!0)}setTiles(e){return this.setSourceProperty(()=>{this.tiles=e,this._options.tiles=e}),this}setUrl(e){return this.setSourceProperty(()=>{this.url=e,this._options.url=e}),this}serialize(){return tr({},this._options)}setPremultiplyAlpha(e){return this._premultiplyAlpha===e||this.setSourceProperty(()=>{this._premultiplyAlpha=e}),this}hasTile(e){return!this.tileBounds||this.tileBounds.contains(e.canonical)}loadTile(e){return Kt(this,null,function*(){var a;let t=e.tileID.canonical.url(this.tiles,this.map.getPixelRatio(),this.scheme),r=this._premultiplyAlpha,i=r?void 0:{premultiplyAlpha:"none"};e.abortController=new AbortController;try{let n=yield Nu.transformAndGetImage(this.map._requestManager,t,"Tile",e.abortController,this.map._refreshExpiredTiles,i);if(delete e.abortController,e.aborted){e.state="unloaded";return}if(n){this.map._refreshExpiredTiles&&(n.cacheControl||n.expires)&&e.setExpiryData({cacheControl:n.cacheControl,expires:n.expires});let o=this.map.painter.context,s=o.gl,l=(a=n.data)!=null?a:new na({width:1,height:1},new Uint8Array(4));e.texture=this.map.painter.getTileTexture(l.width),e.texture?e.texture.update(l,{useMipmap:!0,premultiply:r}):(e.texture=new dn(o,l,s.RGBA,{useMipmap:!0,premultiply:r}),e.texture.bind(s.LINEAR,s.CLAMP_TO_EDGE,s.LINEAR_MIPMAP_NEAREST)),e.state="loaded"}}catch(n){if(delete e.abortController,e.aborted)e.state="unloaded";else if(n)throw e.state="errored",n}})}abortTile(e){return Kt(this,null,function*(){e.abortController&&(e.abortController.abort(),delete e.abortController)})}unloadTile(e){return Kt(this,null,function*(){e.texture&&this.map.painter.saveTileTexture(e.texture)})}hasTransition(){return!1}},qle=class extends PF{constructor(e,t,r,i){super(e,t,r,i),this.type="raster-dem",this.maxzoom=22,this._options=tr({type:"raster-dem"},t),this.encoding=t.encoding||"mapbox",this.redFactor=t.redFactor,this.greenFactor=t.greenFactor,this.blueFactor=t.blueFactor,this.baseShift=t.baseShift}loadTile(e){return Kt(this,null,function*(){let t=e.tileID.canonical.url(this.tiles,this.map.getPixelRatio(),this.scheme);e.neighboringTiles=this._getNeighboringTiles(e.tileID),e.abortController=new AbortController;try{let r=yield Nu.transformAndGetImage(this.map._requestManager,t,"Tile",e.abortController,this.map._refreshExpiredTiles,{colorSpaceConversion:"none"});if(delete e.abortController,e.aborted){e.state="unloaded";return}if(r){if(this.map._refreshExpiredTiles&&(r.cacheControl||r.expires)&&e.setExpiryData({cacheControl:r.cacheControl,expires:r.expires}),!r.data){e.state="loaded";return}let i=r.data,a=Zf(i)&&Y4()?i:yield this.readImageNow(i),n={type:this.type,uid:e.uid,source:this.id,rawImageData:a,encoding:this.encoding,redFactor:this.redFactor,greenFactor:this.greenFactor,blueFactor:this.blueFactor,baseShift:this.baseShift};if(e.actor&&e.state!=="expired"&&e.state!=="reloading")return;yield this.dispatcher.waitForInitComplete(),(!e.actor||e.state==="expired")&&(e.actor=this.dispatcher.getReadyActor()),e.dem=yield e.actor.sendAsync({type:"LDT",data:n}),e.needsHillshadePrepare=!0,e.needsTerrainPrepare=!0,e.needsColorReliefPrepare=!0,e.state="loaded"}}catch(r){if(delete e.abortController,e.aborted)e.state="unloaded";else if(r)throw e.state="errored",r}})}readImageNow(e){return Kt(this,null,function*(){if(typeof VideoFrame<"u"&&yk()){let t=e.width+4,r=e.height+4;try{return new na({width:t,height:r},yield Tie(e,-2,-2,t,r))}catch(i){}}return Ss.getImageData(e,2)})}_getNeighboringTiles(e){let t=e.canonical,r=2**t.z,i=(t.x-1+r)%r,a=t.x===0?e.wrap-1:e.wrap,n=(t.x+1+r)%r,o=t.x+1===r?e.wrap+1:e.wrap,s={};return s[new Qn(e.overscaledZ,a,t.z,i,t.y).key]={backfilled:!1},s[new Qn(e.overscaledZ,o,t.z,n,t.y).key]={backfilled:!1},t.y>0&&(s[new Qn(e.overscaledZ,a,t.z,i,t.y-1).key]={backfilled:!1},s[new Qn(e.overscaledZ,e.wrap,t.z,t.x,t.y-1).key]={backfilled:!1},s[new Qn(e.overscaledZ,o,t.z,n,t.y-1).key]={backfilled:!1}),t.y+1Tse(t))}}shouldReloadTile(e,{affectedBounds:t}){if(e.state==="loading")return!0;if(e.state==="unloaded")return!1;let{buffer:r,extent:i}=this.workerOptions.geojsonVtOptions,a=nGe(e.tileID.canonical,r/i);for(let n of t)if(a.intersects(n))return!0;return!1}loaded(){return!this._isUpdatingWorker&&!this._hasPendingWorkerUpdate()}loadTile(e){return Kt(this,null,function*(){let t=e.actor?"RT":"LT";e.actor=yield this.actorPromise;let r={type:this.type,uid:e.uid,tileID:e.tileID,zoom:e.tileID.overscaledZ,maxZoom:this.maxzoom,tileSize:this.tileSize,source:this.id,pixelRatio:this.map.getPixelRatio(),showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId,subdivisionGranularity:this.map.style.projection.subdivisionGranularity};e.abortController=new AbortController;try{let i=yield(yield this.actorPromise).sendAsync({type:t,data:r},e.abortController);delete e.abortController,e.unloadVectorData(),e.aborted||e.loadVectorData(i,this.map.painter,t==="RT")}catch(i){if(delete e.abortController,e.aborted||Ah(i))return;throw i}})}abortTile(e){return Kt(this,null,function*(){e.abortController&&(e.abortController.abort(),delete e.abortController),e.aborted=!0})}unloadTile(e){return Kt(this,null,function*(){e.unloadVectorData(),yield(yield this.actorPromise).sendAsync({type:"RMT",data:{uid:e.uid,type:this.type,source:this.id}})})}onRemove(){this._removed=!0,this.actorPromise.then(e=>e.sendAsync({type:"RS",data:{type:this.type,source:this.id}}))}serialize(){return tr({},this._options,{type:this.type,data:this._data.updateable?{type:"FeatureCollection",features:Array.from(this._data.updateable.values())}:this._data.url||this._data.geojson})}hasTransition(){return!1}},Rm=[0,0,1],oGe=(e,t)=>({u_tl_parent:new zr(e,t.u_tl_parent),u_scale_parent:new jt(e,t.u_scale_parent),u_buffer_scale:new jt(e,t.u_buffer_scale),u_image_warp:new Oo(e,t.u_image_warp),u_fade_t:new jt(e,t.u_fade_t),u_opacity:new jt(e,t.u_opacity),u_image0:new sr(e,t.u_image0),u_image1:new sr(e,t.u_image1),u_brightness_low:new jt(e,t.u_brightness_low),u_brightness_high:new jt(e,t.u_brightness_high),u_saturation_factor:new jt(e,t.u_saturation_factor),u_contrast_factor:new jt(e,t.u_contrast_factor),u_spin_weights:new Oo(e,t.u_spin_weights),u_coords_top:new km(e,t.u_coords_top),u_coords_bottom:new km(e,t.u_coords_bottom)}),sGe=(e,t,r,i,a,n)=>({u_tl_parent:e,u_scale_parent:t,u_buffer_scale:1,u_image_warp:n,u_fade_t:r.mix,u_opacity:r.opacity*i.paint.get("raster-opacity"),u_image0:0,u_image1:1,u_brightness_low:i.paint.get("raster-brightness-min"),u_brightness_high:i.paint.get("raster-brightness-max"),u_saturation_factor:cGe(i.paint.get("raster-saturation")),u_contrast_factor:uGe(i.paint.get("raster-contrast")),u_spin_weights:lGe(i.paint.get("raster-hue-rotate")),u_coords_top:[a[0].x,a[0].y,a[1].x,a[1].y],u_coords_bottom:[a[3].x,a[3].y,a[2].x,a[2].y]});Y2=class{constructor(e,t,r){this.vertexBuffer=e,this.indexBuffer=t,this.segments=r}destroy(){this.vertexBuffer.destroy(),this.indexBuffer.destroy(),this.segments.destroy(),this.vertexBuffer=null,this.indexBuffer=null,this.segments=null}},np=Ea([{name:"a_pos",type:"Int16",components:2}]),$w=ct/128;Om=class extends tn{constructor(e,t,r,i){super(),this.imageWarp=Rm,this.flippedWindingOrder=!1,this._warp="auto",this._imageDirty=!1,this._subdividedQuad=!1,this._subdividedMesh=null,this.id=e,this.dispatcher=r,this.coordinates=t.coordinates,this.type="image",this.minzoom=0,this.maxzoom=22,this.tileSize=512,this.tiles={},this._loaded=!1,this.setEventedParent(i),this.options=t}load(e){return Kt(this,null,function*(){if(this.options.url===void 0){this._loaded=!0,this._finishLoading();return}this._loaded=!1,this.fire(new ma("dataloading")),this.url=this.options.url,this._abortController=new AbortController;try{let t=yield Nu.transformAndGetImage(this.map._requestManager,this.url,"Image",this._abortController);this._abortController=null,this._loaded=!0,t!=null&&t.data?(this._setImage(t.data),e&&(this.coordinates=e),this._finishLoading()):this.fire(new or(Error(`Could not load image ${this.url}: the response is empty`)))}catch(t){if(Ah(t))return;this._abortController=null,this._loaded=!0,this.fire(new or(Wn(t)))}})}loaded(){return this._loaded}updateImage(e){return this._abortController&&(this._abortController=(this._abortController.abort(),null)),"image"in e?(this._loaded=!0,this._setImage(e.image),e.coordinates&&(this.coordinates=e.coordinates),this._finishLoading(),this):e.url?(this.options.url=e.url,this.load(e.coordinates),this):this}_setImage(e){this.image=e,this._imageDirty=!0}getMesh(e,t){var r;return!this._subdividedQuad||t?null:((r=this._subdividedMesh)!=null||(this._subdividedMesh=Vle(e,{granularity:16})),this._subdividedMesh)}_disposeTexture(){var e;(e=this.texture)==null||e.destroy(),this.texture=null}_finishLoading(){this.map&&(this.setCoordinates(this.coordinates),this.fire(new ma("data",{sourceDataType:"metadata"})))}onAdd(e){this.map=e,this.load()}onRemove(){var e;this._abortController&&(this._abortController=(this._abortController.abort(),null)),this._disposeTexture(),(e=this._subdividedMesh)==null||e.destroy(),this._subdividedMesh=null,this.image=null,this.tiles={}}setWarp(e){return this._warp===e?this:(this._warp=e,this.tileCoords&&this.setCoordinates(this.coordinates),this)}getWarp(){return this._warp}setCoordinates(e){this.coordinates=e;let t=e.map(wi.fromLngLat);return this.tileID=hGe(t),this.terrainTileRanges=this._getOverlappingTileRanges(t),this.minzoom=this.maxzoom=this.tileID.z,this.tileCoords=t.map(r=>this.tileID.getTilePoint(r)._round()),this.imageWarp=dGe(this.tileCoords,this._warp),this._subdividedQuad=this.imageWarp[2]>0&&!Gle(this.tileCoords),this.flippedWindingOrder=fGe(this.tileCoords),this.fire(new ma("data",{sourceDataType:"content"})),this}prepare(){if(Object.keys(this.tiles).length===0||!this.image)return;let e=this.map.painter.context,t=e.gl;this.texture?this._imageDirty&&(this.texture.update(this.image),this.texture.bind(t.LINEAR,t.CLAMP_TO_EDGE)):(this.texture=new dn(e,this.image,t.RGBA),this.texture.bind(t.LINEAR,t.CLAMP_TO_EDGE)),this._imageDirty=!1;let r=!1;for(let i in this.tiles){let a=this.tiles[i];a.state!=="loaded"&&(a.state="loaded",a.texture=this.texture,r=!0)}r&&this.fire(new ma("data",{sourceDataType:"idle",sourceId:this.id}))}loadTile(e){return Kt(this,null,function*(){var t;(t=this.tileID)!=null&&t.equals(e.tileID.canonical)?(this.tiles[String(e.tileID.wrap)]=e,e.buckets={}):e.state="errored"})}serialize(){let e={type:"image",coordinates:this.coordinates};return this.options.url!==void 0&&(e.url=this.options.url),e}hasTransition(){return!1}_getOverlappingTileRanges(e){let{minX:t,minY:r,maxX:i,maxY:a}=jl.fromPoints(e),n={};for(let o=0;o<=25;o++){let s=2**o,l=Math.floor(t*s),u=Math.floor(r*s),c=Math.floor(i*s),h=Math.floor(a*s),f=(l%s+s)%s,d=c%s,p=Math.floor(l/s),m=Math.floor(c/s);n[o]={minWrap:p,maxWrap:m,minTileXWrapped:f,maxTileXWrapped:d,minTileY:u,maxTileY:h}}return n}};jle=class extends Om{constructor(e,t,r,i){super(e,t,r,i),this._onPlayingHandler=()=>{var a;(a=this.map)==null||a.triggerRepaint()},this.roundZoom=!0,this.type="video",this.options=t}load(){return Kt(this,null,function*(){this._loaded=!1;let e=this.options;this.urls=[];for(let t of e.urls)this.urls.push((yield this.map._requestManager.transformRequest(t,"Source")).url);try{let t=yield Iie(this.urls);if(this._loaded=!0,!t)return;this.video=t,this.video.loop=!0,this.video.addEventListener("playing",this._onPlayingHandler),this.map&&this.video.play(),this._finishLoading()}catch(t){this.fire(new or(Wn(t)))}})}pause(){this.video&&this.video.pause()}play(){this.video&&this.video.play()}seek(e){if(this.video){let t=this.video.seekable;et.end(0)?this.fire(new or(new xt(`sources.${this.id}`,null,`Playback for this video can be set only between the ${t.start(0)} and ${t.end(0)}-second mark.`))):this.video.currentTime=e}}getVideo(){return this.video}onAdd(e){this.map||(this.map=e,this.load(),this.video&&(this.video.play(),this.setCoordinates(this.coordinates)))}onRemove(){super.onRemove(),this.video&&(this.video.removeEventListener("playing",this._onPlayingHandler),this.video.pause())}prepare(){if(Object.keys(this.tiles).length===0||this.video.readyState<2)return;let e=this.map.painter.context,t=e.gl;this.texture?this.video.paused||(this.texture.bind(t.LINEAR,t.CLAMP_TO_EDGE),t.texSubImage2D(t.TEXTURE_2D,0,0,0,t.RGBA,t.UNSIGNED_BYTE,this.video)):(this.texture=new dn(e,this.video,t.RGBA),this.texture.bind(t.LINEAR,t.CLAMP_TO_EDGE));let r=!1;for(let i in this.tiles){let a=this.tiles[i];a.state!=="loaded"&&(a.state="loaded",a.texture=this.texture,r=!0)}r&&this.fire(new ma("data",{sourceDataType:"idle",sourceId:this.id}))}serialize(){return{type:"video",urls:this.urls,coordinates:this.coordinates}}hasTransition(){return this.video&&!this.video.paused}},$le=class extends Om{constructor(e,t,r,i){super(e,t,r,i),t.coordinates?(!Array.isArray(t.coordinates)||t.coordinates.length!==4||t.coordinates.some(a=>!Array.isArray(a)||a.length!==2||a.some(n=>typeof n!="number")))&&this.fire(new or(new xt(`sources.${e}`,null,'"coordinates" property must be an array of 4 longitude/latitude array pairs'))):this.fire(new or(new xt(`sources.${e}`,null,'missing required property "coordinates"'))),t.animate&&typeof t.animate!="boolean"&&this.fire(new or(new xt(`sources.${e}`,null,'optional "animate" property must be a boolean value'))),t.canvas?typeof t.canvas!="string"&&!(t.canvas instanceof HTMLCanvasElement)&&this.fire(new or(new xt(`sources.${e}`,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 or(new xt(`sources.${e}`,null,'missing required property "canvas"'))),this.options=t,this.animate=t.animate===void 0||t.animate}load(){return Kt(this,null,function*(){if(this._loaded=!0,this.canvas||(this.canvas=this.options.canvas instanceof HTMLCanvasElement?this.options.canvas:document.getElementById(this.options.canvas)),this.width=this.canvas.width,this.height=this.canvas.height,this._hasInvalidDimensions()){this.fire(new or(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._playing=(this.prepare(),!1))},this._finishLoading()})}getCanvas(){return this.canvas}onAdd(e){this.map=e,this.load(),this.canvas&&this.animate&&this.play()}onRemove(){this._playing=!1,super.onRemove()}prepare(){let e=!1;if(this.canvas.width!==this.width&&(this.width=this.canvas.width,e=!0),this.canvas.height!==this.height&&(this.height=this.canvas.height,e=!0),this._hasInvalidDimensions()||Object.keys(this.tiles).length===0)return;let t=this.map.painter.context,r=t.gl;this.texture?(e||this._playing)&&this.texture.update(this.canvas,{premultiply:!0}):(this.texture=new dn(t,this.canvas,r.RGBA,{premultiply:!0}),this.texture.bind(r.LINEAR,r.CLAMP_TO_EDGE));let i=!1;for(let a in this.tiles){let n=this.tiles[a];n.state!=="loaded"&&(n.state="loaded",n.texture=this.texture,i=!0)}i&&this.fire(new ma("data",{sourceDataType:"idle",sourceId:this.id}))}serialize(){return{type:"canvas",animate:this.animate,canvas:this.options.canvas,coordinates:this.coordinates}}hasTransition(){return this._playing}_hasInvalidDimensions(){for(let e of[this.canvas.width,this.canvas.height])if(isNaN(e)||e<=0)return!0;return!1}},Hle={},mGe=(e,t,r,i)=>{let a=new(Zle(t.type))(e,t,r,i);if(a.id!==e)throw Error(`Expected Source id to be ${e} instead of ${a.id}`);return a},Zle=e=>{switch(e){case"geojson":return Nle;case"image":return Om;case"raster":return PF;case"raster-dem":return qle;case"vector":return Ble;case"video":return jle;case"canvas":return $le}return Hle[e]},vGe=(e,t)=>{Hle[e]=t},gGe=(e,t)=>Kt(null,null,function*(){if(Zle(e))throw Error(`A source type called "${e}" already exists.`);vGe(e,t)});fF="RTLPluginLoaded",_Ge=class extends tn{constructor(...e){super(...e),this.status="unavailable",this.url=null,this.dispatcher=FF()}_syncState(e){return this.status=e,this.dispatcher.broadcast("SRPS",{pluginStatus:e,pluginURL:this.url}).catch(t=>{throw this.status="error",t})}getRTLTextPluginStatus(){return this.status}clearRTLTextPlugin(){this.status="unavailable",this.url=null}setRTLTextPlugin(e,t=!1){return Kt(this,null,function*(){if(this.url)throw Error("setRTLTextPlugin cannot be called multiple times.");if(this.url=Ss.resolveURL(e),!this.url)throw Error(`requested url ${e} is invalid`);if(this.status==="unavailable")if(t)this.status="deferred",this._syncState(this.status);else return this._requestImport();else if(this.status==="requested")return this._requestImport()})}_requestImport(){return Kt(this,null,function*(){yield this._syncState("loading"),this.status="loaded",this.fire(new Ms(fF))})}lazyLoad(){this.status==="unavailable"?this.status="requested":this.status==="deferred"&&this._requestImport()}},jC=null;Yle=class{constructor(e,t){this.timeAdded=0,this.fadeEndTime=0,this.fadeOpacity=1,this.tileID=e,this.uid=Dk(),this.uses=0,this.tileSize=t,this.buckets={},this.expirationTime=null,this.queryPadding=0,this.hasSymbolBuckets=!1,this.hasRTLText=!1,this.dependencies={},this.rttObjects=[],this.rttFingerprint={},this.expiredRequestCount=0,this.state="loading",this.featureStateRevision=-1}isRenderable(e){return this.hasData()&&(!this.fadeEndTime||this.fadingDirection!==0||this.fadeOpacity>0)&&(e||!this.holdingForSymbolFade())}setCrossFadeLogic({fadingRole:e,fadingDirection:t,fadingParentID:r,fadeEndTime:i}){this.resetFadeLogic(),this.fadingRole=e,this.fadingDirection=t,this.fadingParentID=r,this.fadeEndTime=i}setSelfFadeLogic(e){this.resetFadeLogic(),this.selfFading=!0,this.fadeEndTime=e}resetFadeLogic(){this.fadingRole=null,this.fadingDirection=null,this.fadingParentID=null,this.selfFading=!1,this.timeAdded=Ei(),this.fadeEndTime=0,this.fadeOpacity=1}wasRequested(){return this.state==="errored"||this.state==="loaded"||this.state==="reloading"}clearTextures(e){this.demTexture&&e.saveTileTexture(this.demTexture),this.demTexture=null}getRTT(e){return this.rttObjects[e]}acquireRTT(e,t,r){return this.rttObjects[t]=e.acquireRTT(r)}releaseRTT(e){if(this.rttObjects.length!==0){for(let t of this.rttObjects)t&&e.releaseRTT(t);this.rttObjects.length=0}}loadVectorData(e,t,r){if((e==null?void 0:e.etagUnmodified)===!0){this.state="loaded";return}if(this.hasData()&&this.unloadVectorData(),this.state="loaded",!e){this.collisionBoxArray=new tC;return}e.featureIndex&&(this.latestFeatureIndex=e.featureIndex,e.rawTileData?(this.latestRawTileData=e.rawTileData,this.latestEncoding=e.encoding,this.latestFeatureIndex.rawTileData=e.rawTileData,this.latestFeatureIndex.encoding=e.encoding):this.latestRawTileData&&(this.latestFeatureIndex.rawTileData=this.latestRawTileData,this.latestFeatureIndex.encoding=this.latestEncoding)),this.collisionBoxArray=e.collisionBoxArray,this.buckets=yGe(e.buckets,t==null?void 0:t.style),this.hasSymbolBuckets=!1;for(let i in this.buckets){let a=this.buckets[i];if(a instanceof E2)if(this.hasSymbolBuckets=!0,r)a.justReloaded=!0;else break}if(this.hasRTLText=!1,this.hasSymbolBuckets)for(let i in this.buckets){let a=this.buckets[i];if(a instanceof E2&&a.hasRTLText){this.hasRTLText=!0,Z2().lazyLoad();break}}this.queryPadding=0;for(let i in this.buckets){let a=this.buckets[i];this.queryPadding=Math.max(this.queryPadding,t.style.getLayer(i).queryRadius(a))}e.imageAtlas&&(this.imageAtlas=e.imageAtlas),e.glyphAtlasImage&&(this.glyphAtlasImage=e.glyphAtlasImage),this.dashPositions=e.dashPositions}unloadVectorData(){for(let e in this.buckets)this.buckets[e].destroy();this.buckets={},this.imageAtlasTexture&&this.imageAtlasTexture.destroy(),this.glyphAtlasTexture&&this.glyphAtlasTexture.destroy(),this.imageAtlas=null,this.dashPositions=null,this.latestFeatureIndex=null,this.state="unloaded"}getBucket(e){return this.buckets[e.id]}upload(e){for(let r in this.buckets){let i=this.buckets[r];i.uploadPending()&&i.upload(e)}let t=e.gl;this.imageAtlas&&!this.imageAtlas.uploaded&&(this.imageAtlasTexture=new dn(e,this.imageAtlas.image,t.RGBA),this.imageAtlas.uploaded=!0),this.glyphAtlasImage&&(this.glyphAtlasImage=(this.glyphAtlasTexture=new dn(e,this.glyphAtlasImage,t.ALPHA),null))}prepare(e){this.imageAtlas&&this.imageAtlas.patchUpdatedImages(e,this.imageAtlasTexture)}queryRenderedFeatures(e,t,r,i,a,n,o,s,l,u,c){var h;return(h=this.latestFeatureIndex)!=null&&h.rawTileData?this.latestFeatureIndex.query({queryGeometry:i,cameraQueryGeometry:a,scale:n,tileSize:this.tileSize,pixelPosMatrix:u,transform:s,params:o,queryPadding:this.queryPadding*l,getElevation:c},e,t,r):{}}querySourceFeatures(e,t){let r=this.latestFeatureIndex;if(!(r!=null&&r.rawTileData))return;let i=r.loadVTLayers(),a=t!=null&&t.sourceLayer?t.sourceLayer:"",n=i._geojsonTileLayer||i[a];if(!n)return;let o=_m(t==null?void 0:t.filter,`querySourceFeatures[${a}].filter`,t==null?void 0:t.globalState),{z:s,x:l,y:u}=this.tileID.canonical,c={z:s,x:l,y:u};for(let h=0;hr)i=!1;else if(!t)i=!0;else if(this.expirationTimethis.max[0]||t.aabb.min[1]>this.max[1]||t.aabb.min[2]>this.max[2]||t.aabb.max[0]0?(r+=t[a]*this.min[a],i+=t[a]*this.max[a]):(i+=t[a]*this.min[a],r+=t[a]*this.max[a]);return r>=0?2:i<0?0:1}},LF=class Xle{constructor(t,r,i){this.points=t,this.planes=r,this.aabb=i}static fromInvProjectionMatrix(t,r=1,i=0,a,n){let o=[[-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]],s=n?[[6,5,4],[0,1,2],[0,3,7],[2,1,5],[3,2,6],[0,4,5]]:[[0,1,2],[6,5,4],[0,3,7],[2,1,5],[3,2,6],[0,4,5]],l=2**i,u=o.map(d=>bGe(d,t,r,l));a&&wGe(u,s[0],a,n);let c=s.map(d=>{let p=Cc([],u[d[0]],u[d[1]]),m=Cc([],u[d[2]],u[d[1]]),g=Bo([],Qo([],p,m)),y=-en(g,u[d[1]]);return g.concat(y)}),h=[1/0,1/0,1/0],f=[-1/0,-1/0,-1/0];for(let d of u)for(let p=0;p<3;p++)h[p]=Math.min(h[p],d[p]),f[p]=Math.max(f[p],d[p]);return new Xle(u,c,new IF(h,f))}};DGe=dF(9.314,3);Cse=class{constructor(){this._tiles={}}handleWrapJump(e){let t={};for(let r in this._tiles){let i=this._tiles[r];i.tileID=i.tileID.unwrapTo(i.tileID.wrap+e),t[i.tileID.key]=i}this._tiles=t}setFeatureState(e,t,r){for(let i in this._tiles)this._tiles[i].setFeatureState(e,t,r)}getAllTiles(){return Object.values(this._tiles)}getAllIds(e=!1){return e?Object.values(this._tiles).map(t=>t.tileID).sort(AC).map(t=>t.key):Object.keys(this._tiles)}getTileById(e){return this._tiles[e]}setTile(e,t){this._tiles[e]=t}deleteTileById(e){delete this._tiles[e]}getLoadedTile(e){let t=this.getTileById(e.key);return t!=null&&t.hasData()?t:null}isIdRenderable(e,t=!1){var r;return(r=this.getTileById(e))==null?void 0:r.isRenderable(t)}getRenderableIds(e=0,t){let r=[];for(let i of this.getAllIds())this.isIdRenderable(i,t)&&r.push(this.getTileById(i));return t?r.sort((i,a)=>{let n=i.tileID,o=a.tileID,s=new qe(n.canonical.x,n.canonical.y)._rotate(-e),l=new qe(o.canonical.x,o.canonical.y)._rotate(-e);return n.overscaledZ-o.overscaledZ||l.y-s.y||l.x-s.x}).map(i=>i.tileID.key):r.map(i=>i.tileID).sort(AC).map(i=>i.key)}},pF=(Ch=class extends tn{constructor(t,r,i){super(),this._maxContentElevationSeen=0,this.id=t,this.dispatcher=i,this.on("data",a=>{this._dataHandler(a)}),this.on("dataloading",()=>{this._sourceErrored=!1}),this.on("error",()=>{this._sourceErrored=this._source.loaded()}),this._source=mGe(t,r,i,this),this._inViewTiles=new Cse,this._outOfViewCache=new hse(0,a=>this._unloadTile(a)),this._timers={},this._maxTileCacheSize=null,this._maxTileCacheZoomLevels=null,this._rasterFadeDuration=0,this._maxFadingAncestorLevels=5,this._state=new xGe,this._didEmitContent=!1,this._updated=!1}onAdd(t){var r;this.map=t,this._maxTileCacheSize=t?t._maxTileCacheSize:null,this._maxTileCacheZoomLevels=t?t._maxTileCacheZoomLevels:null,(r=this._source)!=null&&r.onAdd&&this._source.onAdd(t)}onRemove(t){var r;for(let i of this._inViewTiles.getAllTiles())i.unloadVectorData();this.clearTiles(),(r=this._source)!=null&&r.onRemove&&this._source.onRemove(t),this._inViewTiles=new Cse}loaded(){if(this._sourceErrored)return!0;if(!this._sourceLoaded||!this._source.loaded())return!1;if((this.used!==void 0||this.usedForTerrain!==void 0)&&!this.used&&!this.usedForTerrain)return!0;if(!this._updated)return!1;for(let t of this._inViewTiles.getAllTiles())if(t.state!=="loaded"&&t.state!=="errored")return!1;return!0}getSource(){return this._source}getState(){return this._state}pause(){this._paused=!0}resume(){if(!this._paused)return;let t=this._shouldReloadOnResume;this._paused=!1,this._shouldReloadOnResume=!1,t&&this.reload(),this.transform&&this.update(this.transform,this.terrain)}_loadTile(t,r,i,a){return Kt(this,null,function*(){try{let n=yield this._source.loadTile(t);this._tileLoaded(t,r,i,a,n)}catch(n){t.state="errored",n.status===404?this.update(this.transform,this.terrain):this._source.fire(new or(Wn(n),{tile:t}))}})}_unloadTile(t){this._source.unloadTile&&this._source.unloadTile(t)}_abortTile(t){this._source.abortTile&&this._source.abortTile(t),this._source.fire(new ma("dataabort",{tile:t,coord:t.tileID}))}serialize(){return this._source.serialize()}prepare(t){this._source.prepare&&this._source.prepare(),this._state.coalesceChanges(this._inViewTiles,this.map?this.map.painter:null);for(let r of this._inViewTiles.getAllTiles())r.upload(t),r.prepare(this.map.style.imageManager)}getIds(){return this._inViewTiles.getAllIds(!0)}getRenderableIds(t){var r;return this._inViewTiles.getRenderableIds((r=this.transform)==null?void 0:r.bearingInRadians,t)}hasRenderableParent(t){let r=t.overscaledZ-1;if(r>=this._source.minzoom){let i=this.getLoadedTile(t.scaledTo(r));if(i)return this._inViewTiles.isIdRenderable(i.tileID.key)}return!1}reload(t,r=void 0){if(this._paused){this._shouldReloadOnResume=!0;return}this._outOfViewCache.reset();for(let i of this._inViewTiles.getAllIds()){let a=this._inViewTiles.getTileById(i);(!r||this._source.shouldReloadTile(a,r))&&(t?this._reloadTile(i,a.state==="errored"?"loading":"expired"):a.state!=="errored"&&this._reloadTile(i,"reloading"))}}_reloadTile(t,r){return Kt(this,null,function*(){let i=this._inViewTiles.getTileById(t);if(!i)return;let a=i.hasData();i.state!=="loading"&&(i.state=r),yield this._loadTile(i,t,r,a)})}_tileLoaded(t,r,i,a,n){a||(t.timeAdded=Ei(),t.selfFading&&(t.fadeEndTime=t.timeAdded+this._rasterFadeDuration)),i==="expired"&&(t.refreshedUponExpiration=!0),this._setTileReloadTimer(r,t),!(n!=null&&n.unmodified)&&(this.getSource().type==="raster-dem"&&t.dem&&zGe(t,this._inViewTiles),t.featureStateRevision=-1,this._state.initializeTileState(t,this.map?this.map.painter:null),t.aborted||this._source.fire(new ma("data",{tile:t,coord:t.tileID})))}getTile(t){return this.getTileByID(t.key)}getTileByID(t){return this._inViewTiles.getTileById(t)}_retainLoadedChildren(t,r){let i=this._getLoadedDescendents(r),a=new Set;for(let n of r){let o=i[n.key];if(!(o!=null&&o.length)){a.add(n);continue}let s=n.overscaledZ+Ch.maxOverzooming,l=o.filter(h=>h.tileID.overscaledZ<=s);if(!l.length){a.add(n);continue}let u=Math.min(...l.map(h=>h.tileID.overscaledZ)),c=l.filter(h=>h.tileID.overscaledZ===u).map(h=>h.tileID);for(let h of c)t[h.key]=h;this._areDescendentsComplete(c,u,n.overscaledZ)||a.add(n)}return a}_getLoadedDescendents(t){var i;let r={};for(let a of this._inViewTiles.getAllTiles().filter(n=>n.hasData()))for(let n of t)a.tileID.isChildOf(n)&&(r[i=n.key]||(r[i]=[]),r[n.key].push(a));return r}_areDescendentsComplete(t,r,i){return t.length===1&&t[0].isOverscaled()?t[0].overscaledZ===r:4**(r-i)===t.length}getLoadedTile(t){return this._inViewTiles.getLoadedTile(t)}updateCacheSize(t){let r=(Math.ceil(t.width/this._source.tileSize)+1)*(Math.ceil(t.height/this._source.tileSize)+1),i=this._maxTileCacheZoomLevels===null?Ts.MAX_TILE_CACHE_ZOOM_LEVELS:this._maxTileCacheZoomLevels,a=Math.floor(r*i),n=typeof this._maxTileCacheSize=="number"?Math.min(this._maxTileCacheSize,a):a;this._outOfViewCache.setMaxSize(n)}handleWrapJump(t){let r=(t-(this._prevLng===void 0?t:this._prevLng))/360,i=Math.round(r);this._prevLng=t,i&&(this._inViewTiles.handleWrapJump(i),this._resetTileReloadTimers())}_updateMaxContentElevation(){var a,n;let t=this._maxContentElevationSeen,r=(n=(a=this.map)==null?void 0:a.style)==null?void 0:n._layers;if(!r)return t;let i=this._inViewTiles.getAllTiles();for(let o in r){let s=r[o];if(s.type!=="symbol"||s.source!==this.id||s.isHidden(this.transform.zoom))continue;let l=s;if(!l.layout)continue;let u=l.layout.get("symbol-height-offset");if(t=Math.max(t,u.constantOr(0)),!u.isConstant())for(let c of i){let h=c.getBucket(s);h&&h.maxHeightOffset>t&&(t=h.maxHeightOffset)}}return this._maxContentElevationSeen=t,t}update(t,r){if(!this._sourceLoaded||this._paused)return;this.transform=t,this.terrain=r,this.updateCacheSize(t),this.handleWrapJump(this.transform.center.lng);let i;!this.used&&!this.usedForTerrain?i=[]:this._source.tileID?i=t.getVisibleUnwrappedCoordinates(this._source.tileID).map(l=>new Qn(l.canonical.z,l.wrap,l.canonical.z,l.canonical.x,l.canonical.y)):(i=Nm(t,{tileSize:this.usedForTerrain?this.tileSize:this._source.tileSize,minzoom:this._source.minzoom,maxzoom:this._source.type==="vector"&&this.map._zoomLevelsToOverscale!==void 0?Math.max(this._source.maxzoom,t.maxZoom-this.map._zoomLevelsToOverscale):this._source.maxzoom,roundZoom:!this.usedForTerrain&&this._source.roundZoom,reparseOverscaled:this._source.reparseOverscaled,terrain:r,calculateTileZoom:this._source.calculateTileZoom,maxContentElevation:this._updateMaxContentElevation()}),this._source.hasTile&&(i=i.filter(l=>this._source.hasTile(l)))),this.usedForTerrain&&(i=this._addTerrainIdealTiles(i));let a=i.length===0&&!this._updated&&this._didEmitContent;this._updated=!0,a&&this.fire(new ma("data",{sourceDataType:"idle",sourceId:this.id}));let n=zF(t,this._source),o=this._updateRetainedTiles(i,n),s=Sse(this._source.type);s&&this._rasterFadeDuration>0&&!r&&CGe(this._inViewTiles,i,o,this._maxFadingAncestorLevels,this._source.minzoom,this._source.maxzoom,this._rasterFadeDuration),s?this._cleanUpRasterTiles(o):this._cleanUpVectorTiles(o)}_cleanUpRasterTiles(t){for(let r of this._inViewTiles.getAllIds())t[r]||this._removeTile(r)}_cleanUpVectorTiles(t){for(let r of this._inViewTiles.getAllIds()){let i=this._inViewTiles.getTileById(r);if(t[r]){i.clearSymbolFadeHold();continue}if(!i.hasSymbolBuckets){this._removeTile(r);continue}i.holdingForSymbolFade()?i.symbolFadeFinished()&&this._removeTile(r):i.setSymbolHoldDuration(this.map._fadeDuration)}}_addTerrainIdealTiles(t){let r=[];for(let i of t)if(i.canonical.z>this._source.minzoom){let a=i.scaledTo(i.canonical.z-1);r.push(a);let n=i.scaledTo(Math.max(this._source.minzoom,Math.min(i.canonical.z,5)));r.push(n)}return t.concat(r)}releaseSymbolFadeTiles(){for(let t of this._inViewTiles.getAllIds())this._inViewTiles.getTileById(t).holdingForSymbolFade()&&this._removeTile(t)}_updateRetainedTiles(t,r){var l;let i=new Set;for(let u of t)this._addTile(u).hasData()||i.add(u);let a=t.reduce((u,c)=>(u[c.key]=c,u),{}),n=this._retainLoadedChildren(a,i),o={},s=Math.max(r-Ch.maxUnderzooming,this._source.minzoom);for(let u of n){let c=this._inViewTiles.getTileById(u.key),h=c==null?void 0:c.wasRequested();for(let f=u.overscaledZ-1;f>=s;--f){let d=u.scaledTo(f);if(o[d.key])break;if(o[d.key]=!0,c=this.getTile(d),!c&&h&&(c=this._addTile(d)),c){let p=c.hasData();if((p||!((l=this.map)!=null&&l.cancelPendingTileRequestsWhileZooming)||h)&&(a[d.key]=d),h=c.wasRequested(),p)break}}}return a}_addTile(t){let r=this._inViewTiles.getTileById(t.key);if(r)return r;r=this._outOfViewCache.getAndRemove(t),r&&(r.resetFadeLogic(),this._setTileReloadTimer(t.key,r),r.tileID=t,this._state.initializeTileState(r,this.map?this.map.painter:null));let i=r;return r||(r=new Yle(t,this._source.tileSize*t.overscaleFactor()),this._loadTile(r,t.key,r.state,!1)),r.uses++,this._inViewTiles.setTile(t.key,r),i||this._source.fire(new ma("dataloading",{tile:r,coord:r.tileID})),r}_setTileReloadTimer(t,r){this._clearTileReloadTimer(t);let i=r.getExpiryTimeout();if(i){let a=()=>{this._reloadTile(t,"expired"),delete this._timers[t]};this._timers[t]=setTimeout(a,i)}}_clearTileReloadTimer(t){let r=this._timers[t];r&&(clearTimeout(r),delete this._timers[t])}_resetTileReloadTimers(){for(let t in this._timers)clearTimeout(this._timers[t]),delete this._timers[t];for(let t of this._inViewTiles.getAllIds()){let r=this._inViewTiles.getTileById(t);this._setTileReloadTimer(t,r)}}refreshTiles(t){for(let r of this._inViewTiles.getAllIds()){let i=this._inViewTiles.getTileById(r);(this._inViewTiles.isIdRenderable(r)||i.state=="errored")&&t.some(a=>a.equals(i.tileID.canonical))&&this._reloadTile(r,"expired")}}_removeTile(t){let r=this._inViewTiles.getTileById(t);r&&(r.uses--,this._inViewTiles.deleteTileById(t),this._clearTileReloadTimer(t),!(r.uses>0)&&(r.hasData()&&r.state!=="reloading"?this._outOfViewCache.add(r.tileID,r,r.getExpiryTimeout()):(r.aborted=!0,this._abortTile(r),this._unloadTile(r))))}_dataHandler(t){if(t.dataType==="source"){if(t.sourceDataType==="metadata"){this._sourceLoaded=!0;return}t.sourceDataType==="content"&&this._sourceLoaded&&!this._paused&&(this.reload(t.sourceDataChanged,t.shouldReloadTileOptions),this.transform&&this.update(this.transform,this.terrain),this._didEmitContent=!0)}}resetMaxContentElevation(){this._maxContentElevationSeen=0}clearTiles(){this._shouldReloadOnResume=!1,this._paused=!1,this.resetMaxContentElevation();for(let t of this._inViewTiles.getAllIds())this._removeTile(t);this._outOfViewCache.reset()}tilesIn(t,r,i){let a=[],n=this.transform;if(!n)return a;let o=n.getCoveringTilesDetailsProvider().allowWorldCopies(),s=i?n.getCameraQueryGeometry(t):t,l=d=>n.screenPointToMercatorCoordinate(d,this.terrain),u=this.transformBbox(t,l,!o),c=this.transformBbox(s,l,!o),h=this.getIds(),f=jl.fromPoints(c);for(let d of h){let p=this._inViewTiles.getTileById(d);if(p.holdingForSymbolFade())continue;let m=o?[p.tileID]:[p.tileID.unwrapTo(-1),p.tileID.unwrapTo(0)],g=2**(n.zoom-p.tileID.overscaledZ),y=r*p.queryPadding*ct/p.tileSize/g;for(let x of m){let b=f.map(_=>x.getTilePoint(new wi(_.x,_.y)));if(b.expandBy(y),b.intersects(Hne)){let _=u.map(T=>x.getTilePoint(T)),A=c.map(T=>x.getTilePoint(T));a.push({tile:p,tileID:o?x:x.unwrapTo(0),queryGeometry:_,cameraQueryGeometry:A,scale:g})}}}return a}transformBbox(t,r,i){let a=t.map(r);if(i){let n=jl.fromPoints(t);n.shrinkBy(Math.min(n.width(),n.height())*.001);let o=n.map(r);jl.fromPoints(a).covers(o)||(a=a.map(s=>s.x>.5?new wi(s.x-1,s.y,s.z):s))}return a}getVisibleCoordinates(t){let r=this.getRenderableIds(t).map(i=>this._inViewTiles.getTileById(i).tileID);return this.transform&&this.transform.populateCache(r),r}hasTransition(){return this._source.hasTransition()?!0:Sse(this._source.type)&&LGe(this._inViewTiles,this._rasterFadeDuration)}setRasterFadeDuration(t){this._rasterFadeDuration=t}setFeatureState(t,r,i){t||(t=F2),this._state.updateState(t,r,i)}removeFeatureState(t,r,i){t||(t=F2),this._state.removeFeatureState(t,r,i)}getFeatureState(t,r){return t||(t=F2),this._state.getState(t,r)}setDependencies(t,r,i){let a=this._inViewTiles.getTileById(t);a&&a.setDependencies(r,i)}reloadTilesForDependencies(t,r){for(let i of this._inViewTiles.getAllIds())this._inViewTiles.getTileById(i).hasDependency(t,r)&&this._reloadTile(i,"reloading");this._outOfViewCache.filter(i=>!i.hasDependency(t,r))}areTilesLoaded(){for(let t of this._inViewTiles.getAllTiles())if(t.state!=="loaded"&&t.state!=="errored")return!1;return!0}},Ch.maxUnderzooming=10,Ch.maxOverzooming=3,Ch),RGe=class{constructor(e,t){this.reset(e,t)}reset(e,t){this.points=e||[],this._distances=[0];for(let r=1;r0?(i-n)/o:0;return this.points[a].mult(1-s).add(this.points[t].mult(s))}};Fse=class{constructor(e,t,r){let i=this.boxCells=[],a=this.circleCells=[];this.xCellCount=Math.ceil(e/r),this.yCellCount=Math.ceil(t/r);for(let n=0;nthis.width||i<0||t>this.height)return[];let s=[];if(e<=0&&t<=0&&this.width<=r&&this.height<=i){if(a)return[{key:null,x1:e,y1:t,x2:r,y2:i}];for(let l=0;l0}hitTestCircle(e,t,r,i,a){let n=e-r,o=e+r,s=t-r,l=t+r;if(o<0||n>this.width||l<0||s>this.height)return!1;let u=[],c={hitTest:!0,overlapMode:i,circle:{x:e,y:t,radius:r},seenUids:{box:{},circle:{}}};return this._forEachCell(n,s,o,l,this._queryCellCircle,u,c,a),u.length>0}_queryCell(e,t,r,i,a,n,o,s){let{seenUids:l,hitTest:u,overlapMode:c}=o,h=this.boxCells[a],f=1e-6;if(h!==null){let p=this.bboxes;for(let m of h)if(!l.box[m]){l.box[m]=!0;let g=m*4,y=this.boxKeys[m];if(e<=p[g+2]+f&&t<=p[g+3]+f&&r>=p[g+0]-f&&i>=p[g+1]-f&&(!s||s(y))&&(!u||!Hw(c,y.overlapMode))&&(n.push({key:y,x1:p[g],y1:p[g+1],x2:p[g+2],y2:p[g+3]}),u))return!0}}let d=this.circleCells[a];if(d!==null){let p=this.circles;for(let m of d)if(!l.circle[m]){l.circle[m]=!0;let g=m*3,y=this.circleKeys[m];if(this._circleAndRectCollide(p[g],p[g+1],p[g+2],e,t,r,i)&&(!s||s(y))&&(!u||!Hw(c,y.overlapMode))){let x=p[g],b=p[g+1],_=p[g+2];if(n.push({key:y,x1:x-_,y1:b-_,x2:x+_,y2:b+_}),u)return!0}}}return!1}_queryCellCircle(e,t,r,i,a,n,o,s){let{circle:l,seenUids:u,overlapMode:c}=o,h=this.boxCells[a];if(h!==null){let d=this.bboxes;for(let p of h)if(!u.box[p]){u.box[p]=!0;let m=p*4,g=this.boxKeys[p];if(this._circleAndRectCollide(l.x,l.y,l.radius,d[m+0],d[m+1],d[m+2],d[m+3])&&(!s||s(g))&&!Hw(c,g.overlapMode))return n.push(!0),!0}}let f=this.circleCells[a];if(f!==null){let d=this.circles;for(let p of f)if(!u.circle[p]){u.circle[p]=!0;let m=p*3,g=this.circleKeys[p];if(this._circlesCollide(d[m],d[m+1],d[m+2],l.x,l.y,l.radius)&&(!s||s(g))&&!Hw(c,g.overlapMode))return n.push(!0),!0}}}_forEachCell(e,t,r,i,a,n,o,s){let l=this._convertToXCellCoord(e),u=this._convertToYCellCoord(t),c=this._convertToXCellCoord(r),h=this._convertToYCellCoord(i);for(let f=l;f<=c;f++)for(let d=u;d<=h;d++){let p=this.xCellCount*d+f;if(a.call(this,e,t,r,i,p,n,o,s))return}}_convertToXCellCoord(e){return Math.max(0,Math.min(this.xCellCount-1,Math.floor(e*this.xScale)))}_convertToYCellCoord(e){return Math.max(0,Math.min(this.yCellCount-1,Math.floor(e*this.yScale)))}_circlesCollide(e,t,r,i,a,n){let o=i-e,s=a-t,l=r+n;return l*l>o*o+s*s}_circleAndRectCollide(e,t,r,i,a,n,o){let s=(n-i)/2,l=Math.abs(e-(i+s));if(l>s+r)return!1;let u=(o-a)/2,c=Math.abs(t-(a+u));if(c>u+r)return!1;if(l<=s||c<=u)return!0;let h=l-s,f=c-u;return h*h+f*f<=r*r}};NGe=xh();$Ge=new Float32Array([-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0]);YGe=class{constructor(e,t=new Fse(e.width+200,e.height+200,25),r=new Fse(e.width+200,e.height+200,25)){this.transform=e,this.grid=t,this.ignoredGrid=r,this.pitchFactor=Math.cos(e.pitch*Math.PI/180)*e.cameraToCenterDistance,this.screenRightBoundary=e.width+100,this.screenBottomBoundary=e.height+100,this.gridRightBoundary=e.width+200,this.gridBottomBoundary=e.height+200,this.perspectiveRatioCutoff=.6}placeCollisionBox(e,t,r,i,a,n,o,s,l,u,c,h,f=0,d=!0){let p=e.anchorPointX+s[0],m=e.anchorPointY+s[1],g=this.projectAndGetPerspectiveRatio(p,m,a,o6(u,p,m,f,d),h),y=r*g.perspectiveRatio,x;if(!n&&!o){let k=g.x+(c?c.x*y:0),P=g.y+(c?c.y*y:0);x={allPointsOccluded:!1,box:[k+e.x1*y,P+e.y1*y,k+e.x2*y,P+e.y2*y]}}else x=this._projectCollisionBox(e,y,i,a,n,o,s,g,u,c,h,f,d);let[b,_,A,T]=x.box,M=n?x.allPointsOccluded:g.isOccluded,S=M;return S||(S=g.perspectiveRatio=1;H--)V.push(z.path[H]);for(let H=1;HZ.signedDistanceFromCamera<=0)?[]:H.map(Z=>Z.point)}let $=[];if(V.length>0){let H=V[0].clone(),Z=V[0].clone();for(let Y=1;Y=I.x&&Z.x<=B.x&&H.y>=I.y&&Z.y<=B.y?[V]:Z.xB.x||Z.yB.y?[]:_C([V],I.x,I.y,B.x,B.y)}for(let H of $){L.reset(H,P*.25);let Z=0;Z=L.length<=.5*P?1:Math.ceil(L.paddedLength/j)+1;for(let Y=0;Y=this.screenRightBoundary||i<100||t>this.screenBottomBoundary}isInsideGrid(e,t,r,i){return r>=0&&e=0&&tthis.projectAndGetPerspectiveRatio(V.x,V.y,i,o6(l,V.x,V.y,h,f),c));z=q.some(V=>!V.isOccluded),L=q.map(V=>new qe(V.x,V.y))}else z=!0;return{box:mie(L),allPointsOccluded:!z}}},Lse=class{constructor(e,t,r,i){this.opacity=e?Math.max(0,Math.min(1,e.opacity+(e.placed?t:-t))):i&&r?1:0,this.placed=r}isHidden(){return this.opacity===0&&!this.placed}},R2=class{constructor(e,t,r,i,a){this.text=new Lse(e?e.text:null,t,r,a),this.icon=new Lse(e?e.icon:null,t,i,a)}isHidden(){return this.text.isHidden()&&this.icon.isHidden()}},zse=class{constructor(e,t,r){this.text=e,this.icon=t,this.skipFade=r}},WGe=class{constructor(e,t,r,i,a){this.bucketInstanceId=e,this.featureIndex=t,this.sourceLayerIndex=r,this.bucketIndex=i,this.tileID=a}},XGe=class{constructor(e){this.crossSourceCollisions=e,this.maxGroupID=0,this.collisionGroups={}}get(e){if(this.crossSourceCollisions)return{ID:0,predicate:null};if(!this.collisionGroups[e]){let t=++this.maxGroupID;this.collisionGroups[e]={ID:t,predicate:r=>r.collisionGroupID===t}}return this.collisionGroups[e]}};KGe=class{constructor(e,t,r,i,a){this.transform=e.clone(),this.terrain=t,this.collisionIndex=new YGe(this.transform),this.placements={},this.opacities={},this.variableOffsets={},this.stale=!1,this.commitTime=0,this.fadeDuration=r,this.retainedQueryData={},this.collisionGroups=new XGe(i),this.collisionCircleArrays={},this.collisionBoxArrays=new Map,this.prevPlacement=a,a&&(a.prevPlacement=void 0),this.placedOrientations={}}_getTerrainElevationFunc(e){let t=this.terrain;if(t)return(r,i)=>t.getElevation(e,r,i)}getBucketParts(e,t,r,i){let a=r.getBucket(t),n=r.latestFeatureIndex;if(!a||!n||t.id!==a.layerIds[0])return;let o=r.collisionBoxArray,s=a.layers[0].layout,l=a.layers[0].paint,u=2**(this.transform.zoom-r.tileID.overscaledZ),c=r.tileSize/ct,h=r.tileID.toUnwrapped(),f=s.get("text-rotation-alignment")==="map",d=bs(r,1,this.transform.zoom),p=wh(this.collisionIndex.transform,r,l.get("text-translate"),l.get("text-translate-anchor")),m=wh(this.collisionIndex.transform,r,l.get("icon-translate"),l.get("icon-translate-anchor")),g=RF(f,this.transform,d);this.retainedQueryData[a.bucketInstanceId]=new WGe(a.bucketInstanceId,n,a.sourceLayerIndex,a.index,r.tileID);let y={bucket:a,layout:s,translationText:p,translationIcon:m,unwrappedTileID:h,pitchedLabelPlaneMatrix:g,scale:u,textPixelRatio:c,holdingForFade:r.holdingForSymbolFade(),collisionBoxArray:o,partiallyEvaluatedTextSize:D2(a.textSizeData,this.transform.zoom),collisionGroup:this.collisionGroups.get(a.sourceID)};if(i)for(let x of a.sortKeyRanges){let{sortKey:b,symbolInstanceStart:_,symbolInstanceEnd:A}=x;e.push({sortKey:b,symbolInstanceStart:_,symbolInstanceEnd:A,parameters:y})}else e.push({symbolInstanceStart:0,symbolInstanceEnd:a.symbolInstances.length,parameters:y})}attemptAnchorPlacement(e,t,r,i,a,n,o,s,l,u,c,h,f,d,p,m,g,y,x,b,_,A){var P,I,B;let T=qw[e.textAnchor],M=[e.textOffset0,e.textOffset1],S=Rse(T,r,i,M,a),k=this.collisionIndex.placeCollisionBox(t,h,s,l,u,o,n,m,c.predicate,x,S,b,_,A);if((!y||this.collisionIndex.placeCollisionBox(y,h,s,l,u,o,n,g,c.predicate,x,S,b,_,A).placeable)&&k.placeable){let L;if((P=this.prevPlacement)!=null&&P.variableOffsets[f.crossTileID]&&((B=(I=this.prevPlacement)==null?void 0:I.placements[f.crossTileID])!=null&&B.text)&&(L=this.prevPlacement.variableOffsets[f.crossTileID].anchor),f.crossTileID===0)throw Error("symbolInstance.crossTileID can't be 0");return this.variableOffsets[f.crossTileID]={textOffset:M,width:r,height:i,anchor:T,textBoxScale:a,prevAnchor:L},this.markUsedJustification(d,T,f,p),d.allowVerticalPlacement&&(this.markUsedOrientation(d,p,f),this.placedOrientations[f.crossTileID]=p),{shift:S,placedGlyphBoxes:k}}}placeLayerBucketPart(e,t,r){let{bucket:i,layout:a,translationText:n,translationIcon:o,unwrappedTileID:s,pitchedLabelPlaneMatrix:l,textPixelRatio:u,holdingForFade:c,collisionBoxArray:h,partiallyEvaluatedTextSize:f,collisionGroup:d}=e.parameters,p=a.get("text-optional"),m=a.get("icon-optional"),g=i2(a,"text-overlap","text-allow-overlap"),y=g==="always",x=i2(a,"icon-overlap","icon-allow-overlap"),b=x==="always",_=a.get("text-rotation-alignment")==="map",A=a.get("text-pitch-alignment")==="map",T=a.get("icon-text-fit")!=="none",M=a.get("symbol-z-order")==="viewport-y",S=a.get("symbol-height-anchor")==="ground",k=y&&(b||!i.hasIconData()||m),P=b&&(y||!i.hasTextData()||p);!i.collisionArrays&&h&&i.deserializeCollisionBoxes(h);let I=this.retainedQueryData[i.bucketInstanceId].tileID,B=this._getTerrainElevationFunc(I),L=this.transform.getFastPathSimpleProjectionMatrix(I),z=(q,V,j)=>{var Pe,Fe;if(t[q.crossTileID])return;if(c){this.placements[q.crossTileID]=new zse(!1,!1,!1);return}let $=q.heightOffset,H=!1,Z=!1,Y=!0,oe=null,pe={box:null,placeable:!1,offscreen:null,occluded:!1},De={box:null,placeable:!1,offscreen:null},ye=null,de=null,Ce=null,J=0,ue=0,me=0;V.textFeatureIndex?J=V.textFeatureIndex:q.useRuntimeCollisionCircles&&(J=q.featureIndex),V.verticalTextFeatureIndex&&(ue=V.verticalTextFeatureIndex);let te=V.textBox;if(te){let se=Ae=>{let He=1;if(i.allowVerticalPlacement&&!Ae&&this.prevPlacement){let it=this.prevPlacement.placedOrientations[q.crossTileID];it&&(this.placedOrientations[q.crossTileID]=it,He=it,this.markUsedOrientation(i,He,q))}return He},Ue=(Ae,He)=>{if(i.allowVerticalPlacement&&q.numVerticalGlyphVertices>0&&V.verticalTextBox){for(let it of i.writingModes)if(it===2?(pe=He(),De=pe):pe=Ae(),pe==null?void 0:pe.placeable)break}else pe=Ae()},Ne=q.textAnchorOffsetStartIndex,$e=q.textAnchorOffsetEndIndex;if($e===Ne){let Ae=(He,it)=>{let ie=this.collisionIndex.placeCollisionBox(He,g,u,I,s,A,_,n,d.predicate,B,void 0,L,$,S);return ie!=null&&ie.placeable&&(this.markUsedOrientation(i,it,q),this.placedOrientations[q.crossTileID]=it),ie};Ue(()=>Ae(te,1),()=>{let He=V.verticalTextBox;return i.allowVerticalPlacement&&q.numVerticalGlyphVertices>0&&He?Ae(He,2):{box:null,offscreen:null}}),se(pe==null?void 0:pe.placeable)}else{let Ae=qw[(Fe=(Pe=this.prevPlacement)==null?void 0:Pe.variableOffsets[q.crossTileID])==null?void 0:Fe.anchor],He=(ie,Se,ot)=>{let bt=ie.x2-ie.x1,Tt=ie.y2-ie.y1,ve=q.textBoxScale,xe=T&&x==="never"?Se:null,je=null,nt=g==="never"?1:2,Qe="never";Ae&&nt++;for(let pt=0;ptHe(te,V.iconBox,1),()=>{let ie=V.verticalTextBox,Se=pe==null?void 0:pe.placeable;return i.allowVerticalPlacement&&!Se&&q.numVerticalGlyphVertices>0&&ie?He(ie,V.verticalIconBox,2):{box:null,occluded:!0,offscreen:null}}),pe&&(H=pe.placeable,Y=pe.offscreen);let it=se(pe==null?void 0:pe.placeable);if(!H&&this.prevPlacement){let ie=this.prevPlacement.variableOffsets[q.crossTileID];ie&&(this.variableOffsets[q.crossTileID]=ie,this.markUsedJustification(i,ie.anchor,q,it))}}}if(ye=pe,H=ye==null?void 0:ye.placeable,Y=ye==null?void 0:ye.offscreen,q.useRuntimeCollisionCircles&&q.centerJustifiedTextSymbolIndex>=0){let se=i.text.placedSymbolArray.get(q.centerJustifiedTextSymbolIndex),Ue=Bw(i.textSizeData,f,se),Ne=a.get("text-padding"),$e=q.collisionCircleDiameter;de=this.collisionIndex.placeCollisionCircles(g,se,i.lineVertexArray,i.glyphOffsetArray,Ue,s,l,r,A,d.predicate,$e,Ne,n,B),de.circles.length&&de.collisionDetected&&!r&&Xr("Collisions detected, but collision boxes are not shown"),H=y||de.circles.length>0&&!de.collisionDetected,Y&&(Y=de.offscreen)}if(V.iconFeatureIndex&&(me=V.iconFeatureIndex),V.iconBox){let se=Ue=>this.collisionIndex.placeCollisionBox(Ue,x,u,I,s,A,_,o,d.predicate,B,T&&oe?oe:void 0,L,$,S);De&&De.placeable&&V.verticalIconBox?(Ce=se(V.verticalIconBox),Z=Ce.placeable):(Ce=se(V.iconBox),Z=Ce.placeable),Y&&(Y=Ce.offscreen)}let re=p||q.numHorizontalGlyphVertices===0&&q.numVerticalGlyphVertices===0,fe=m||q.numIconVertices===0;!re&&!fe?Z=H=Z&&H:fe?re||Z&&(Z=H):H=Z&&H;let ge=H&&ye.placeable,Re=Z&&Ce.placeable;if(ge&&(De&&De.placeable&&ue?this.collisionIndex.insertCollisionBox(ye.box,g,a.get("text-ignore-placement"),i.bucketInstanceId,ue,d.ID):this.collisionIndex.insertCollisionBox(ye.box,g,a.get("text-ignore-placement"),i.bucketInstanceId,J,d.ID)),Re&&this.collisionIndex.insertCollisionBox(Ce.box,x,a.get("icon-ignore-placement"),i.bucketInstanceId,me,d.ID),de&&H&&this.collisionIndex.insertCollisionCircles(de.circles,g,a.get("text-ignore-placement"),i.bucketInstanceId,J,d.ID),r&&this.storeCollisionData(i.bucketInstanceId,j,V,ye,Ce,de),q.crossTileID===0)throw Error("symbolInstance.crossTileID can't be 0");if(i.bucketInstanceId===0)throw Error("bucket.bucketInstanceId can't be 0");let Ve=(H||k)&&!(ye!=null&&ye.occluded),Me=(Z||P)&&!(Ce!=null&&Ce.occluded);this.placements[q.crossTileID]=new zse(Ve,Me,Y||i.justReloaded),t[q.crossTileID]=!0};if(M){if(e.symbolInstanceStart!==0)throw Error("bucket.bucketInstanceId should be 0");let q=i.getSortedSymbolIndexes(-this.transform.bearingInRadians);for(let V=q.length-1;V>=0;--V){let j=q[V];z(i.symbolInstances.get(j),i.collisionArrays[j],j)}}else for(let q=e.symbolInstanceStart;q=0&&(n>=0&&s!==n?e.text.placedSymbolArray.get(s).crossTileID=0:e.text.placedSymbolArray.get(s).crossTileID=r.crossTileID)}markUsedOrientation(e,t,r){let i=t===1||t===3?t:0,a=t===2?t:0,n=[r.leftJustifiedTextSymbolIndex,r.centerJustifiedTextSymbolIndex,r.rightJustifiedTextSymbolIndex];for(let o of n)e.text.placedSymbolArray.get(o).placedOrientation=i;r.verticalPlacedTextSymbolIndex&&(e.text.placedSymbolArray.get(r.verticalPlacedTextSymbolIndex).placedOrientation=a)}commit(e){this.commitTime=e,this.zoomAtLastRecencyCheck=this.transform.zoom;let t=this.prevPlacement,r=!1;this.prevZoomAdjustment=t?t.zoomAdjustment(this.transform.zoom):0;let i=t?t.symbolFadeChange(e):1,a=t?t.opacities:{},n=t?t.variableOffsets:{},o=t?t.placedOrientations:{};for(let s in this.placements){let l=this.placements[s],u=a[s];u?(this.opacities[s]=new R2(u,i,l.text,l.icon),r||(r=l.text!==u.text.placed),r||(r=l.icon!==u.icon.placed)):(this.opacities[s]=new R2(null,i,l.text,l.icon,l.skipFade),r||(r=l.text||l.icon))}for(let s in a){let l=a[s];if(!this.opacities[s]){let u=new R2(l,i,!1,!1);u.isHidden()||(this.opacities[s]=u,r||(r=l.text.placed),r||(r=l.icon.placed))}}for(let s in n)!this.variableOffsets[s]&&this.opacities[s]&&!this.opacities[s].isHidden()&&(this.variableOffsets[s]=n[s]);for(let s in o)!this.placedOrientations[s]&&this.opacities[s]&&!this.opacities[s].isHidden()&&(this.placedOrientations[s]=o[s]);if(t&&t.lastPlacementChangeTime===void 0)throw Error("Last placement time for previous placement is not defined");r?this.lastPlacementChangeTime=e:typeof this.lastPlacementChangeTime!="number"&&(this.lastPlacementChangeTime=t?t.lastPlacementChangeTime:e)}updateLayerOpacities(e,t){let r={};for(let i of t){let a=i.getBucket(e);a&&i.latestFeatureIndex&&e.id===a.layerIds[0]&&this.updateBucketOpacities(a,i.tileID,r,i.collisionBoxArray)}}updateBucketOpacities(e,t,r,i){e.hasTextData()&&(e.text.opacityVertexArray.clear(),e.text.hasVisibleVertices=!1),e.hasIconData()&&(e.icon.opacityVertexArray.clear(),e.icon.hasVisibleVertices=!1),e.hasIconCollisionBoxData()&&e.iconCollisionBox.collisionVertexArray.clear(),e.hasTextCollisionBoxData()&&e.textCollisionBox.collisionVertexArray.clear();let a=e.layers[0],n=a.layout,o=new R2(null,0,!1,!1,!0),s=n.get("text-allow-overlap"),l=n.get("icon-allow-overlap"),u=a._unevaluatedLayout.hasValue("text-variable-anchor")||a._unevaluatedLayout.hasValue("text-variable-anchor-offset"),c=n.get("text-rotation-alignment")==="map",h=n.get("text-pitch-alignment")==="map",f=n.get("icon-text-fit")!=="none",d=new R2(null,0,s&&(l||!e.hasIconData()||n.get("icon-optional")),l&&(s||!e.hasTextData()||n.get("text-optional")),!0);!e.collisionArrays&&i&&(e.hasIconCollisionBoxData()||e.hasTextCollisionBoxData())&&e.deserializeCollisionBoxes(i);let p=(g,y,x)=>{for(let b=0;b0||b>0,S=y.numIconVertices>0,k=this.placedOrientations[y.crossTileID],P=k===2,I=k===1||k===3;if(M){let L=qse(T.text),z=P?B2:L;p(e.text,x,z);let q=I?B2:L;p(e.text,b,q);let V=T.text.isHidden(),j=[y.rightJustifiedTextSymbolIndex,y.centerJustifiedTextSymbolIndex,y.leftJustifiedTextSymbolIndex];for(let Z of j)Z>=0&&(e.text.placedSymbolArray.get(Z).hidden=V||P?1:0);y.verticalPlacedTextSymbolIndex>=0&&(e.text.placedSymbolArray.get(y.verticalPlacedTextSymbolIndex).hidden=V||I?1:0);let $=this.variableOffsets[y.crossTileID];$&&this.markUsedJustification(e,$.anchor,y,k);let H=this.placedOrientations[y.crossTileID];H&&(this.markUsedJustification(e,"left",y,H),this.markUsedOrientation(e,H,y))}if(S){let L=qse(T.icon),z=!(f&&y.verticalPlacedIconSymbolIndex&&P);if(y.placedIconSymbolIndex>=0){let q=z?L:B2;p(e.icon,y.numIconVertices,q),e.icon.placedSymbolArray.get(y.placedIconSymbolIndex).hidden=T.icon.isHidden()}if(y.verticalPlacedIconSymbolIndex>=0){let q=z?B2:L;p(e.icon,y.numVerticalIconVertices,q),e.icon.placedSymbolArray.get(y.verticalPlacedIconSymbolIndex).hidden=T.icon.isHidden()}}let B=m!=null&&m.has(g)?m.get(g):{text:null,icon:null};if(e.hasIconCollisionBoxData()||e.hasTextCollisionBoxData()){let L=e.collisionArrays[g];if(L){let z=new qe(0,0);if(L.textBox||L.verticalTextBox){let q=!0;if(u){let V=this.variableOffsets[_];V?(z=Rse(V.anchor,V.width,V.height,V.textOffset,V.textBoxScale),c&&z._rotate(h?-this.transform.bearingInRadians:this.transform.bearingInRadians)):q=!1}if(L.textBox||L.verticalTextBox){let V;L.textBox&&(V=P),L.verticalTextBox&&(V=I),Bse(e.textCollisionBox.collisionVertexArray,T.text.placed,!q||V,B.text,z.x,z.y)}}if(L.iconBox||L.verticalIconBox){let q=!(I||!L.verticalIconBox),V;L.iconBox&&(V=q),L.verticalIconBox&&(V=!q),Bse(e.iconCollisionBox.collisionVertexArray,T.icon.placed,V,B.icon,f?z.x:0,f?z.y:0)}}}}if(e.sortFeatures(-this.transform.bearingInRadians),this.retainedQueryData[e.bucketInstanceId]&&(this.retainedQueryData[e.bucketInstanceId].featureSortOrder=e.featureSortOrder),e.hasTextData()&&e.text.opacityVertexBuffer&&e.text.opacityVertexBuffer.updateData(e.text.opacityVertexArray),e.hasIconData()&&e.icon.opacityVertexBuffer&&e.icon.opacityVertexBuffer.updateData(e.icon.opacityVertexArray),e.hasIconCollisionBoxData()&&e.iconCollisionBox.collisionVertexBuffer&&e.iconCollisionBox.collisionVertexBuffer.updateData(e.iconCollisionBox.collisionVertexArray),e.hasTextCollisionBoxData()&&e.textCollisionBox.collisionVertexBuffer&&e.textCollisionBox.collisionVertexBuffer.updateData(e.textCollisionBox.collisionVertexArray),e.text.opacityVertexArray.length!==e.text.layoutVertexArray.length/4)throw Error(`bucket.text.opacityVertexArray.length (= ${e.text.opacityVertexArray.length}) !== bucket.text.layoutVertexArray.length (= ${e.text.layoutVertexArray.length}) / 4`);if(e.icon.opacityVertexArray.length!==e.icon.layoutVertexArray.length/4)throw Error(`bucket.icon.opacityVertexArray.length (= ${e.icon.opacityVertexArray.length}) !== bucket.icon.layoutVertexArray.length (= ${e.icon.layoutVertexArray.length}) / 4`);e.bucketInstanceId in this.collisionCircleArrays&&(e.collisionCircleArray=this.collisionCircleArrays[e.bucketInstanceId],delete this.collisionCircleArrays[e.bucketInstanceId])}symbolFadeChange(e){return this.fadeDuration===0?1:(e-this.commitTime)/this.fadeDuration+this.prevZoomAdjustment}zoomAdjustment(e){return Math.max(0,(this.transform.zoom-e)/1.5)}hasTransitions(e){return this.stale||e-this.lastPlacementChangeTimee}setStale(){this.stale=!0}};JGe=2**25,QGe=2**24,eje=2**17,tje=2**16;B2=0,rje=class{constructor(e){this._sortAcrossTiles=e.layout.get("symbol-z-order")!=="viewport-y"&&!e.layout.get("symbol-sort-key").isConstant(),this._currentTileIndex=0,this._currentPartIndex=0,this._seenCrossTileIDs={},this._bucketParts=[]}continuePlacement(e,t,r,i,a){let n=this._bucketParts;for(;this._currentTileIndexo.sortKey-s.sortKey));this._currentPartIndex!this._forceFullPlacement&&Ei()-i>2;for(;this._currentPlacementIndex>=0;){let n=t[e[this._currentPlacementIndex]],o=this.placement.collisionIndex.transform.zoom;if(bC(n)&&n.layout&&(!n.minzoom||n.minzoom<=o)&&(!n.maxzoom||n.maxzoom>o)){if(this._inProgressLayer||(this._inProgressLayer=new rje(n)),this._inProgressLayer.continuePlacement(r[n.source],this.placement,this._showCollisionBoxes,n,a))return;delete this._inProgressLayer}this._currentPlacementIndex--}this._done=!0}commit(e){return this.placement.commit(e),this.placement}},Ose=[Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array],Ra=new Uint32Array(96),aje=class tue{static from(t){if(!t||t.byteLength===void 0||t.buffer)throw Error("Data must be an instance of ArrayBuffer or SharedArrayBuffer.");let[r,i]=new Uint8Array(t,0,2);if(r!==219)throw Error("Data does not appear to be in a KDBush format.");let a=i>>4;if(a!==1)throw Error(`Got v${a} data when expected v1.`);let n=Ose[i&15];if(!n)throw Error("Unrecognized array type.");let[o]=new Uint16Array(t,2,1),[s]=new Uint32Array(t,4,1);return new tue(s,o,n,void 0,t)}constructor(t,r=64,i=Float64Array,a=ArrayBuffer,n){if(isNaN(t)||t<0)throw Error(`Unexpected numItems value: ${t}.`);this.numItems=+t,this.nodeSize=Math.min(Math.max(+r,2),65535),this.ArrayType=i,this.IndexArrayType=t<65536?Uint16Array:Uint32Array;let o=Ose.indexOf(this.ArrayType),s=t*2*this.ArrayType.BYTES_PER_ELEMENT,l=t*this.IndexArrayType.BYTES_PER_ELEMENT,u=(8-l%8)%8;if(o<0)throw Error(`Unexpected typed array class: ${i}.`);if(n)this.data=n,this.ids=new this.IndexArrayType(n,8,t),this.coords=new i(n,8+l+u,t*2),this._pos=t*2,this._finished=!0;else{let c=this.data=new a(8+s+l+u);this.ids=new this.IndexArrayType(c,8,t),this.coords=new i(c,8+l+u,t*2),this._pos=0,this._finished=!1,new Uint8Array(c,0,2).set([219,16+o]),new Uint16Array(c,2,1)[0]=r,new Uint32Array(c,4,1)[0]=t}}add(t,r){let i=this._pos>>1;return this.ids[i]=i,this.coords[this._pos++]=t,this.coords[this._pos++]=r,i}finish(){let t=this._pos>>1;if(t!==this.numItems)throw Error(`Added ${t} items when expected ${this.numItems}.`);return gF(this.ids,this.coords,this.nodeSize,0,this.numItems-1,0),this._finished=!0,this}range(t,r,i,a){if(!this._finished)throw Error("Data not yet indexed - call index.finish().");let{ids:n,coords:o,nodeSize:s}=this;Ra[0]=0,Ra[1]=n.length-1,Ra[2]=0;let l=3,u=[];for(;l>0;){let c=Ra[--l],h=Ra[--l],f=Ra[--l];if(h-f<=s){for(let g=f;g<=h;g++){let y=o[2*g],x=o[2*g+1];y>=t&&y<=i&&x>=r&&x<=a&&u.push(n[g])}continue}let d=f+h>>1,p=o[2*d],m=o[2*d+1];p>=t&&p<=i&&m>=r&&m<=a&&u.push(n[d]),(c===0?t<=p:r<=m)&&(Ra[l++]=f,Ra[l++]=d-1,Ra[l++]=1-c),(c===0?i>=p:a>=m)&&(Ra[l++]=d+1,Ra[l++]=h,Ra[l++]=1-c)}return u}within(t,r,i){let a=[];return this.withinInto(t,r,i,a),a}withinInto(t,r,i,a){if(!this._finished)throw Error("Data not yet indexed - call index.finish().");let{ids:n,coords:o,nodeSize:s}=this;Ra[0]=0,Ra[1]=n.length-1,Ra[2]=0;let l=3,u=0,c=i*i;for(;l>0;){let h=Ra[--l],f=Ra[--l],d=Ra[--l];if(f-d<=s){for(let y=d;y<=f;y++)Nse(o[2*y],o[2*y+1],t,r)<=c&&(a[u++]=n[y]);continue}let p=d+f>>1,m=o[2*p],g=o[2*p+1];Nse(m,g,t,r)<=c&&(a[u++]=n[p]),(h===0?t-i<=m:r-i<=g)&&(Ra[l++]=d,Ra[l++]=p-1,Ra[l++]=1-h),(h===0?t+i>=m:r+i>=g)&&(Ra[l++]=p+1,Ra[l++]=f,Ra[l++]=1-h)}return u}};O2=512/ct/2,nje=class{constructor(e,t,r){this.tileID=e,this.bucketInstanceId=r,this._symbolsByKey={};let i=new Map;for(let a=0;a({x:Math.floor(s.anchorX*O2),y:Math.floor(s.anchorY*O2)})),crossTileIDs:n.map(s=>s.crossTileID)};if(o.positions.length>128){let s=new aje(o.positions.length,16,Uint16Array);for(let{x:l,y:u}of o.positions)s.add(l,u);s.finish(),delete o.positions,o.index=s}this._symbolsByKey[a]=o}}getScaledCoordinates(e,t){let{x:r,y:i,z:a}=this.tileID.canonical,{x:n,y:o,z:s}=t.canonical,l=s-a,u=O2/2**l,c=(n*ct+e.anchorX)*u,h=(o*ct+e.anchorY)*u,f=r*ct*O2,d=i*ct*O2;return{x:Math.floor(c-f),y:Math.floor(h-d)}}findMatches(e,t,r){let i=this.tileID.canonical.ze)}},oje=class{constructor(){this.maxCrossTileID=0}generate(){return++this.maxCrossTileID}},sje=class{constructor(){this.indexes={},this.usedCrossTileIDs={},this.lng=0}handleWrapJump(e){let t=Math.round((e-this.lng)/360);if(t!==0)for(let r in this.indexes){let i=this.indexes[r],a={};for(let n in i){let o=i[n];o.tileID=o.tileID.unwrapTo(o.tileID.wrap+t),a[o.tileID.key]=o}this.indexes[r]=a}this.lng=e}addBucket(e,t,r){var a,n,o;if((a=this.indexes[e.overscaledZ])!=null&&a[e.key]){if(this.indexes[e.overscaledZ][e.key].bucketInstanceId===t.bucketInstanceId)return!1;this.removeBucketCrossTileIDs(e.overscaledZ,this.indexes[e.overscaledZ][e.key])}for(let s=0;se.overscaledZ)for(let u in l){let c=l[u];c.tileID.isChildOf(e)&&c.findMatches(t.symbolInstances,e,i)}else{let u=l[e.scaledTo(Number(s)).key];u&&u.findMatches(t.symbolInstances,e,i)}}for(let s=0;s 1.0) {gl_Position.xy=vec2(10000.0);}if (u_scale_with_map) {gl_Position.xy+=extrude*(radius+stroke_width)*u_extrude_scale*u_camera_to_center_distance;} else {gl_Position.xy+=extrude*(radius+stroke_width)*u_extrude_scale*gl_Position.w;}}float antialiasblur=-max(1.0/u_device_pixel_ratio/(radius+stroke_width),blur);v_data=vec3(extrude.x,extrude.y,antialiasblur);}`,Rse="void main() {fragColor=vec4(1.0);}",Ic={prelude:pi(QGe,eje),projectionMercator:pi(` -void clipAntimeridian() {}`,"float projectLineThickness(float tileY) {return 1.0;}float projectCircleRadius(float tileY) {return 1.0;}vec4 projectTile(vec2 p) {vec4 result=u_projection_matrix*vec4(p,0.0,1.0);return result;}vec4 projectTile(vec2 p,vec2 rawPos) {vec4 result=u_projection_matrix*vec4(p,0.0,1.0);if (rawPos.y <-32767.5 || rawPos.y > 32766.5) {result.z=-10000000.0;}return result;}vec4 projectTileWithElevation(vec2 posInTile,float elevation) {return u_projection_matrix*vec4(posInTile,elevation,1.0);}vec4 projectTileFor3D(vec2 posInTile,float elevation) {return projectTileWithElevation(posInTile,elevation);}"),projectionGlobe:pi("in highp float v_projection_tile_x;void clipAntimeridian() {if (u_projection_clip_antimeridian !=0 && (v_projection_tile_x < 0.0 || v_projection_tile_x >=8192.0)) {discard;}}",`#define GLOBE_RADIUS 6371008.8 +} else {gl_Position=projectTileWithElevation(circle_center,ele);if (gl_Position.z/gl_Position.w > 1.0) {gl_Position.xy=vec2(10000.0);}if (u_scale_with_map) {gl_Position.xy+=extrude*(radius+stroke_width)*u_extrude_scale*u_camera_to_center_distance;} else {gl_Position.xy+=extrude*(radius+stroke_width)*u_extrude_scale*gl_Position.w;}}float antialiasblur=-max(1.0/u_device_pixel_ratio/(radius+stroke_width),blur);v_data=vec3(extrude.x,extrude.y,antialiasblur);}`,Vse="void main() {fragColor=vec4(1.0);}",Ic={prelude:mi(lje,uje),projectionMercator:mi(` +void clipAntimeridian() {}`,"float projectLineThickness(float tileY) {return 1.0;}float projectCircleRadius(float tileY) {return 1.0;}vec4 projectTile(vec2 p) {vec4 result=u_projection_matrix*vec4(p,0.0,1.0);return result;}vec4 projectTile(vec2 p,vec2 rawPos) {vec4 result=u_projection_matrix*vec4(p,0.0,1.0);if (rawPos.y <-32767.5 || rawPos.y > 32766.5) {result.z=-10000000.0;}return result;}vec4 projectTileWithElevation(vec2 posInTile,float elevation) {return u_projection_matrix*vec4(posInTile,elevation,1.0);}vec4 projectTileFor3D(vec2 posInTile,float elevation) {return projectTileWithElevation(posInTile,elevation);}"),projectionGlobe:mi("in highp float v_projection_tile_x;void clipAntimeridian() {if (u_projection_clip_antimeridian !=0 && (v_projection_tile_x < 0.0 || v_projection_tile_x >=8192.0)) {discard;}}",`#define GLOBE_RADIUS 6371008.8 #ifndef PROJECTION_UBO uniform highp vec4 u_projection_tile_mercator_coords;uniform highp vec4 u_projection_clipping_plane;uniform highp float u_projection_transition;uniform mat4 u_projection_fallback_matrix; #endif out highp float v_projection_tile_x;vec3 globeRotateVector(vec3 vec,vec2 angles) {vec3 axisRight=vec3(vec.z,0.0,-vec.x);vec3 axisUp=cross(axisRight,vec);axisRight=normalize(axisRight);axisUp=normalize(axisUp);vec2 t=tan(angles);return normalize(vec+axisRight*t.x+axisUp*t.y);}mat3 globeGetRotationMatrix(vec3 spherePos) {vec3 axisRight=vec3(spherePos.z,0.0,-spherePos.x);vec3 axisDown=cross(axisRight,spherePos);axisRight=normalize(axisRight);axisDown=normalize(axisDown);return mat3(axisRight,axisDown,spherePos );}float circumferenceRatioAtTileY(float tileY) {float mercator_pos_y=u_projection_tile_mercator_coords.y+u_projection_tile_mercator_coords.w*tileY;float t=exp(PI-(mercator_pos_y*PI*2.0));return (2.0*t)/(t*t+1.0);}float projectLineThickness(float tileY) {float thickness=1.0/circumferenceRatioAtTileY(tileY);if (u_projection_transition < 0.999) {return mix(1.0,thickness,u_projection_transition);} else {return thickness;}}vec3 projectToSphere(vec2 translatedPos,vec2 rawPos) {vec2 mercator_pos=u_projection_tile_mercator_coords.xy+u_projection_tile_mercator_coords.zw*translatedPos;float spherical_x=mercator_pos.x*PI*2.0+PI;float t=exp(PI-(mercator_pos.y*PI*2.0));float t2=t*t;float denom=t2+1.0;float sin_sy=(t2-1.0)/denom;float cos_sy=(2.0*t)/denom;vec3 pos=vec3(sin(spherical_x)*cos_sy,sin_sy,cos(spherical_x)*cos_sy -);if (rawPos.y <-32767.5) {pos=vec3(0.0,1.0,0.0);}if (rawPos.y > 32766.5) {pos=vec3(0.0,-1.0,0.0);}return pos;}vec3 projectToSphere(vec2 posInTile) {return projectToSphere(posInTile,vec2(0.0,0.0));}float globeComputeClippingZ(vec3 spherePos) {return (1.0-(dot(spherePos,u_projection_clipping_plane.xyz)+u_projection_clipping_plane.w));}vec4 interpolateProjection(vec2 posInTile,vec3 spherePos,float elevation) {v_projection_tile_x=posInTile.x;vec3 elevatedPos=spherePos*(1.0+elevation/GLOBE_RADIUS);vec4 globePosition=u_projection_matrix*vec4(elevatedPos,1.0);globePosition.z=globeComputeClippingZ(elevatedPos)*globePosition.w;if (u_projection_transition > 0.999) {return globePosition;}vec4 flatPosition=u_projection_fallback_matrix*vec4(posInTile,elevation,1.0);const float z_globeness_threshold=0.2;vec4 result=globePosition;result.z=mix(0.0,globePosition.z,clamp((u_projection_transition-z_globeness_threshold)/(1.0-z_globeness_threshold),0.0,1.0));result.xyw=mix(flatPosition.xyw,globePosition.xyw,u_projection_transition);if ((posInTile.y <-32767.5) || (posInTile.y > 32766.5)) {result=globePosition;const float poles_hidden_anim_percentage=0.02;result.z=mix(globePosition.z,100.0,pow(max((1.0-u_projection_transition)/poles_hidden_anim_percentage,0.0),8.0));}return result;}vec4 interpolateProjectionFor3D(vec2 posInTile,vec3 spherePos,float elevation) {v_projection_tile_x=posInTile.x;vec3 elevatedPos=spherePos*(1.0+elevation/GLOBE_RADIUS);vec4 globePosition=u_projection_matrix*vec4(elevatedPos,1.0);if (u_projection_transition > 0.999) {return globePosition;}vec4 fallbackPosition=u_projection_fallback_matrix*vec4(posInTile,elevation,1.0);return mix(fallbackPosition,globePosition,u_projection_transition);}vec4 projectTile(vec2 posInTile) {return interpolateProjection(posInTile,projectToSphere(posInTile),0.0);}vec4 projectTile(vec2 posInTile,vec2 rawPos) {return interpolateProjection(posInTile,projectToSphere(posInTile,rawPos),0.0);}vec4 projectTileWithElevation(vec2 posInTile,float elevation) {return interpolateProjection(posInTile,projectToSphere(posInTile),elevation);}vec4 projectTileFor3D(vec2 posInTile,float elevation) {vec3 spherePos=projectToSphere(posInTile,posInTile);return interpolateProjectionFor3D(posInTile,spherePos,elevation);}`),background:pi(tje,rje),backgroundPattern:pi(ije,aje),circle:pi(nje,oje),clippingMask:pi(Rse,"layout(location=0) in vec2 a_pos;void main() {gl_Position=projectTile(a_pos);}"),heatmap:pi(`uniform highp float u_intensity;in vec2 v_extrude; +);if (rawPos.y <-32767.5) {pos=vec3(0.0,1.0,0.0);}if (rawPos.y > 32766.5) {pos=vec3(0.0,-1.0,0.0);}return pos;}vec3 projectToSphere(vec2 posInTile) {return projectToSphere(posInTile,vec2(0.0,0.0));}float globeComputeClippingZ(vec3 spherePos) {return (1.0-(dot(spherePos,u_projection_clipping_plane.xyz)+u_projection_clipping_plane.w));}vec4 interpolateProjection(vec2 posInTile,vec3 spherePos,float elevation) {v_projection_tile_x=posInTile.x;vec3 elevatedPos=spherePos*(1.0+elevation/GLOBE_RADIUS);vec4 globePosition=u_projection_matrix*vec4(elevatedPos,1.0);globePosition.z=globeComputeClippingZ(elevatedPos)*globePosition.w;if (u_projection_transition > 0.999) {return globePosition;}vec4 flatPosition=u_projection_fallback_matrix*vec4(posInTile,elevation,1.0);const float z_globeness_threshold=0.2;vec4 result=globePosition;result.z=mix(0.0,globePosition.z,clamp((u_projection_transition-z_globeness_threshold)/(1.0-z_globeness_threshold),0.0,1.0));result.xyw=mix(flatPosition.xyw,globePosition.xyw,u_projection_transition);if ((posInTile.y <-32767.5) || (posInTile.y > 32766.5)) {result=globePosition;const float poles_hidden_anim_percentage=0.02;result.z=mix(globePosition.z,100.0,pow(max((1.0-u_projection_transition)/poles_hidden_anim_percentage,0.0),8.0));}return result;}vec4 interpolateProjectionFor3D(vec2 posInTile,vec3 spherePos,float elevation) {v_projection_tile_x=posInTile.x;vec3 elevatedPos=spherePos*(1.0+elevation/GLOBE_RADIUS);vec4 globePosition=u_projection_matrix*vec4(elevatedPos,1.0);if (u_projection_transition > 0.999) {return globePosition;}vec4 fallbackPosition=u_projection_fallback_matrix*vec4(posInTile,elevation,1.0);return mix(fallbackPosition,globePosition,u_projection_transition);}vec4 projectTile(vec2 posInTile) {return interpolateProjection(posInTile,projectToSphere(posInTile),0.0);}vec4 projectTile(vec2 posInTile,vec2 rawPos) {return interpolateProjection(posInTile,projectToSphere(posInTile,rawPos),0.0);}vec4 projectTileWithElevation(vec2 posInTile,float elevation) {return interpolateProjection(posInTile,projectToSphere(posInTile),elevation);}vec4 projectTileFor3D(vec2 posInTile,float elevation) {vec3 spherePos=projectToSphere(posInTile,posInTile);return interpolateProjectionFor3D(posInTile,spherePos,elevation);}`),background:mi(cje,hje),backgroundPattern:mi(fje,dje),circle:mi(pje,mje),clippingMask:mi(Vse,"layout(location=0) in vec2 a_pos;void main() {gl_Position=projectTile(a_pos);}"),heatmap:mi(`uniform highp float u_intensity;in vec2 v_extrude; #pragma maplibre: define highp float weight #define GAUSS_COEF 0.3989422804014327 void main() { @@ -237,11 +237,11 @@ vec2 angles=v_extrude*radius*u_globe_extrude_scale;vec3 center_vector=projectToS #else gl_Position=projectTileFor3D(circle_center+extrude,get_elevation(circle_center)); #endif -}`),heatmapTexture:pi(`uniform sampler2D u_image;uniform sampler2D u_color_ramp;uniform float u_opacity;in vec2 v_pos;void main() {float t=texture(u_image,v_pos).r;vec4 color=texture(u_color_ramp,vec2(t,0.5));fragColor=color*u_opacity; +}`),heatmapTexture:mi(`uniform sampler2D u_image;uniform sampler2D u_color_ramp;uniform float u_opacity;in vec2 v_pos;void main() {float t=texture(u_image,v_pos).r;vec4 color=texture(u_color_ramp,vec2(t,0.5));fragColor=color*u_opacity; #ifdef OVERDRAW_INSPECTOR fragColor=vec4(0.0); #endif -}`,"uniform mat4 u_matrix;layout(location=0) in vec2 a_pos;out vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos*u_world_size,0,1);v_pos.x=a_pos.x;v_pos.y=1.0-a_pos.y;}"),collisionBox:pi("flat in float v_placed;flat in float v_notUsed;void main() {float alpha=0.5;fragColor=vec4(1.0,0.0,0.0,1.0)*alpha;if (v_placed > 0.5) {fragColor=vec4(0.0,0.0,1.0,0.5)*alpha;}if (v_notUsed > 0.5) {fragColor*=.1;}}","layout(location=0) in vec2 a_anchor_pos;layout(location=1) in vec2 a_placed;layout(location=2) in vec2 a_box_real;flat out float v_placed;flat out float v_notUsed;void main() {gl_Position=projectTileWithElevation(a_anchor_pos,get_elevation(a_anchor_pos));gl_Position.xy=((a_box_real+0.5)*u_pixel_extrude_scale*2.0-1.0)*vec2(1.0,-1.0)*gl_Position.w;if (gl_Position.z/gl_Position.w < 1.1) {gl_Position.z=0.5;}v_placed=a_placed.x;v_notUsed=a_placed.y;}"),collisionCircle:pi("flat in float v_radius;in vec2 v_extrude;flat in float v_collision;void main() {float alpha=0.5;float stroke_radius=0.9;float distance_to_center=length(v_extrude);float distance_to_edge=abs(distance_to_center-v_radius);float opacity_t=smoothstep(-stroke_radius,0.0,-distance_to_edge);vec4 color=mix(vec4(0.0,0.0,1.0,0.5),vec4(1.0,0.0,0.0,1.0),v_collision);fragColor=color*alpha*opacity_t;}","layout(location=0) in vec2 a_pos;layout(location=1) in float a_radius;layout(location=2) in vec2 a_flags;flat out float v_radius;out vec2 v_extrude;flat out float v_collision;void main() {float radius=a_radius;float collision=a_flags.x;float vertexIdx=a_flags.y;vec2 quadVertexOffset=vec2(mix(-1.0,1.0,float(vertexIdx >=2.0)),mix(-1.0,1.0,float(vertexIdx >=1.0 && vertexIdx <=2.0)));vec2 quadVertexExtent=quadVertexOffset*radius;float padding_factor=1.2;v_radius=radius;v_extrude=quadVertexExtent*padding_factor;v_collision=collision;gl_Position=vec4((a_pos/u_viewport_size*2.0-1.0)*vec2(1.0,-1.0),0.0,1.0)+vec4(quadVertexExtent*padding_factor/u_viewport_size*2.0,0.0,0.0);}"),colorRelief:pi(`#ifdef GL_ES +}`,"uniform mat4 u_matrix;layout(location=0) in vec2 a_pos;out vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos*u_world_size,0,1);v_pos.x=a_pos.x;v_pos.y=1.0-a_pos.y;}"),collisionBox:mi("flat in float v_placed;flat in float v_notUsed;void main() {float alpha=0.5;fragColor=vec4(1.0,0.0,0.0,1.0)*alpha;if (v_placed > 0.5) {fragColor=vec4(0.0,0.0,1.0,0.5)*alpha;}if (v_notUsed > 0.5) {fragColor*=.1;}}","layout(location=0) in vec2 a_anchor_pos;layout(location=1) in vec2 a_placed;layout(location=2) in vec2 a_box_real;flat out float v_placed;flat out float v_notUsed;void main() {gl_Position=projectTileWithElevation(a_anchor_pos,get_elevation(a_anchor_pos));gl_Position.xy=((a_box_real+0.5)*u_pixel_extrude_scale*2.0-1.0)*vec2(1.0,-1.0)*gl_Position.w;if (gl_Position.z/gl_Position.w < 1.1) {gl_Position.z=0.5;}v_placed=a_placed.x;v_notUsed=a_placed.y;}"),collisionCircle:mi("flat in float v_radius;in vec2 v_extrude;flat in float v_collision;void main() {float alpha=0.5;float stroke_radius=0.9;float distance_to_center=length(v_extrude);float distance_to_edge=abs(distance_to_center-v_radius);float opacity_t=smoothstep(-stroke_radius,0.0,-distance_to_edge);vec4 color=mix(vec4(0.0,0.0,1.0,0.5),vec4(1.0,0.0,0.0,1.0),v_collision);fragColor=color*alpha*opacity_t;}","layout(location=0) in vec2 a_pos;layout(location=1) in float a_radius;layout(location=2) in vec2 a_flags;flat out float v_radius;out vec2 v_extrude;flat out float v_collision;void main() {float radius=a_radius;float collision=a_flags.x;float vertexIdx=a_flags.y;vec2 quadVertexOffset=vec2(mix(-1.0,1.0,float(vertexIdx >=2.0)),mix(-1.0,1.0,float(vertexIdx >=1.0 && vertexIdx <=2.0)));vec2 quadVertexExtent=quadVertexOffset*radius;float padding_factor=1.2;v_radius=radius;v_extrude=quadVertexExtent*padding_factor;v_collision=collision;gl_Position=vec4((a_pos/u_viewport_size*2.0-1.0)*vec2(1.0,-1.0),0.0,1.0)+vec4(quadVertexExtent*padding_factor/u_viewport_size*2.0,0.0,0.0);}"),colorRelief:mi(`#ifdef GL_ES precision highp float; #endif uniform sampler2D u_image;uniform vec4 u_unpack;uniform sampler2D u_elevation_stops;uniform sampler2D u_color_stops;uniform int u_color_ramp_size;uniform float u_opacity;in vec2 v_pos;float getElevation(vec2 coord) {vec4 data=texture(u_image,coord)*255.0;data.a=-1.0;return dot(data,u_unpack);}float getElevationStop(int stop) {vec4 data=texelFetch(u_elevation_stops,ivec2(stop,0),0)*255.0;data.a=-1.0;return dot(data,u_unpack);}void main() {float el=getElevation(v_pos);int r=(u_color_ramp_size-1);int l=0;float el_l=getElevationStop(l);float el_r=getElevationStop(r);while(r-l > 1){int m=(r+l)/2;float el_m=getElevationStop(m);if(el < el_m){r=m;el_r=el_m;}else @@ -249,13 +249,13 @@ uniform sampler2D u_image;uniform vec4 u_unpack;uniform sampler2D u_elevation_st #ifdef OVERDRAW_INSPECTOR fragColor=vec4(1.0); #endif -}`,"uniform vec2 u_dimension;layout(location=0) in vec2 a_pos;out vec2 v_pos;void main() {gl_Position=projectTile(a_pos,a_pos);highp vec2 epsilon=2.0/u_dimension;float scale=(u_dimension.x-4.0)/u_dimension.x;v_pos=(a_pos/8192.0)*scale+epsilon;if (a_pos.y <-32767.5) {v_pos.y=0.0;}if (a_pos.y > 32766.5) {v_pos.y=1.0;}}"),debug:pi("uniform highp vec4 u_color;uniform sampler2D u_overlay;in vec2 v_uv;void main() {vec4 overlay_color=texture(u_overlay,v_uv);fragColor=mix(u_color,overlay_color,overlay_color.a);}","layout(location=0) in vec2 a_pos;out vec2 v_uv;uniform float u_overlay_scale;void main() {v_uv=a_pos/8192.0;gl_Position=projectTileWithElevation(a_pos*u_overlay_scale,get_elevation(a_pos));}"),depth:pi(Rse,`layout(location=0) in vec2 a_pos;void main() { +}`,"uniform vec2 u_dimension;layout(location=0) in vec2 a_pos;out vec2 v_pos;void main() {gl_Position=projectTile(a_pos,a_pos);highp vec2 epsilon=2.0/u_dimension;float scale=(u_dimension.x-4.0)/u_dimension.x;v_pos=(a_pos/8192.0)*scale+epsilon;if (a_pos.y <-32767.5) {v_pos.y=0.0;}if (a_pos.y > 32766.5) {v_pos.y=1.0;}}"),debug:mi("uniform highp vec4 u_color;uniform sampler2D u_overlay;in vec2 v_uv;void main() {vec4 overlay_color=texture(u_overlay,v_uv);fragColor=mix(u_color,overlay_color,overlay_color.a);}","layout(location=0) in vec2 a_pos;out vec2 v_uv;uniform float u_overlay_scale;void main() {v_uv=a_pos/8192.0;gl_Position=projectTileWithElevation(a_pos*u_overlay_scale,get_elevation(a_pos));}"),depth:mi(Vse,`layout(location=0) in vec2 a_pos;void main() { #ifdef GLOBE gl_Position=projectTileFor3D(a_pos,0.0); #else gl_Position=u_projection_matrix*vec4(a_pos,0.0,1.0); #endif -}`),fill:pi(`#pragma maplibre: define highp vec4 color +}`),fill:mi(`#pragma maplibre: define highp vec4 color #pragma maplibre: define lowp float opacity void main() { #pragma maplibre: initialize highp vec4 color @@ -270,7 +270,7 @@ fragColor=vec4(1.0); void main() { #pragma maplibre: initialize highp vec4 color #pragma maplibre: initialize lowp float opacity -if (opacity < 0.01) {gl_Position=vec4(-2.0,-2.0,-2.0,1.0);return;}gl_Position=projectTile(a_pos+u_fill_translate,a_pos);}`),fillOutline:pi(`in vec2 v_pos; +if (opacity < 0.01) {gl_Position=vec4(-2.0,-2.0,-2.0,1.0);return;}gl_Position=projectTile(a_pos+u_fill_translate,a_pos);}`),fillOutline:mi(`in vec2 v_pos; #ifdef GLOBE in float v_depth; #endif @@ -299,7 +299,7 @@ if (opacity < 0.01) {gl_Position=vec4(-2.0,-2.0,-2.0,1.0);return;}gl_Position=pr #ifdef GLOBE v_depth=gl_Position.z/gl_Position.w; #endif -}`),fillOutlinePattern:pi(`uniform vec2 u_texsize;uniform sampler2D u_image;uniform float u_fade;uniform bool u_sdf_pattern;in vec2 v_pos_a;in vec2 v_pos_b;in vec2 v_pos; +}`),fillOutlinePattern:mi(`uniform vec2 u_texsize;uniform sampler2D u_image;uniform float u_fade;uniform bool u_sdf_pattern;in vec2 v_pos_a;in vec2 v_pos_b;in vec2 v_pos; #ifdef GLOBE in float v_depth; #endif @@ -340,7 +340,7 @@ if (opacity < 0.01) {gl_Position=vec4(-2.0,-2.0,-2.0,1.0);return;}vec2 pattern_t #ifdef GLOBE v_depth=gl_Position.z/gl_Position.w; #endif -}`),fillPattern:pi(`#ifdef GL_ES +}`),fillPattern:mi(`#ifdef GL_ES precision highp float; #endif uniform vec2 u_texsize;uniform float u_fade;uniform bool u_sdf_pattern;uniform sampler2D u_image;in vec2 v_pos_a;in vec2 v_pos_b; @@ -371,7 +371,7 @@ void main() { #pragma maplibre: initialize mediump vec4 pattern_to #pragma maplibre: initialize lowp float pixel_ratio_from #pragma maplibre: initialize lowp float pixel_ratio_to -if (opacity < 0.01) {gl_Position=vec4(-2.0,-2.0,-2.0,1.0);return;}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;gl_Position=projectTile(a_pos+u_fill_translate,a_pos);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileZoomRatio,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileZoomRatio,a_pos);}`),fillExtrusion:pi(`in vec4 v_color;void main() {fragColor=v_color; +if (opacity < 0.01) {gl_Position=vec4(-2.0,-2.0,-2.0,1.0);return;}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;gl_Position=projectTile(a_pos+u_fill_translate,a_pos);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileZoomRatio,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileZoomRatio,a_pos);}`),fillExtrusion:mi(`in vec4 v_color;void main() {fragColor=v_color; #ifdef OVERDRAW_INSPECTOR fragColor=vec4(1.0); #endif @@ -403,7 +403,7 @@ float colorvalue=color.r*0.2126+color.g*0.7152+color.b*0.0722;v_color=vec4(0.0,0 #ifdef GLOBE mat3 rotMatrix=globeGetRotationMatrix(spherePos);normalForLighting=rotMatrix*normalForLighting;directional=mix(directional,clamp(dot(normalForLighting,u_lightpos_globe),0.0,1.0),u_projection_transition); #endif -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+gradient_base)*pow(gradient_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;}`),fillExtrusionPattern:pi(`uniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;in vec2 v_pos_a;in vec2 v_pos_b;in vec4 v_lighting; +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+gradient_base)*pow(gradient_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;}`),fillExtrusionPattern:mi(`uniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;in vec2 v_pos_a;in vec2 v_pos_b;in vec4 v_lighting; #pragma maplibre: define lowp float base #pragma maplibre: define lowp float height #pragma maplibre: define lowp vec4 pattern_from @@ -456,14 +456,14 @@ gl_Position=u_projection_matrix*vec4(posInTile,elevation,1.0); #endif vec2 pos=a_normal_ed.x==1 && a_normal_ed.y==0 && a_normal_ed.z==16384 ? a_pos -: vec2(edgedistance,elevation*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+gradient_base)*pow(gradient_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;}`),hillshadePrepare:pi(`#ifdef GL_ES +: vec2(edgedistance,elevation*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+gradient_base)*pow(gradient_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;}`),hillshadePrepare:mi(`#ifdef GL_ES precision highp float; #endif uniform sampler2D u_image;in vec2 v_pos;uniform vec2 u_dimension;uniform float u_zoom;uniform vec4 u_unpack;float getElevation(ivec2 texel) {vec4 data=texelFetch(u_image,texel,0)*255.0;data.a=-1.0;return dot(data,u_unpack);}void main() {ivec2 pos=ivec2(gl_FragCoord.xy)+ivec2(1);float tileSize=u_dimension.x-4.0;float a=getElevation(pos+ivec2(-1,-1));float b=getElevation(pos+ivec2(0,-1));float c=getElevation(pos+ivec2(1,-1));float d=getElevation(pos+ivec2(-1,0));float e=getElevation(pos);float f=getElevation(pos+ivec2(1,0));float g=getElevation(pos+ivec2(-1,1));float h=getElevation(pos+ivec2(0,1));float i=getElevation(pos+ivec2(1,1));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))*tileSize/pow(2.0,exaggeration+(28.2562-u_zoom));fragColor=clamp(vec4(deriv.x/8.0+128.0/255.0,deriv.y/8.0+128.0/255.0,1.0,1.0),0.0,1.0); #ifdef OVERDRAW_INSPECTOR fragColor=vec4(1.0); #endif -}`,"uniform mat4 u_matrix;uniform vec2 u_dimension;layout(location=0) in vec2 a_pos;layout(location=1) in vec2 a_texture_pos;out 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;}"),hillshade:pi(`uniform sampler2D u_image;in highp vec2 v_pos;uniform vec2 u_latrange;uniform float u_exaggeration;uniform vec4 u_accent;uniform int u_method;uniform float u_altitudes[NUM_ILLUMINATION_SOURCES];uniform float u_azimuths[NUM_ILLUMINATION_SOURCES];uniform vec4 u_shadows[NUM_ILLUMINATION_SOURCES];uniform vec4 u_highlights[NUM_ILLUMINATION_SOURCES]; +}`,"uniform mat4 u_matrix;uniform vec2 u_dimension;layout(location=0) in vec2 a_pos;layout(location=1) in vec2 a_texture_pos;out 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;}"),hillshade:mi(`uniform sampler2D u_image;in highp vec2 v_pos;uniform vec2 u_latrange;uniform float u_exaggeration;uniform vec4 u_accent;uniform int u_method;uniform float u_altitudes[NUM_ILLUMINATION_SOURCES];uniform float u_azimuths[NUM_ILLUMINATION_SOURCES];uniform vec4 u_shadows[NUM_ILLUMINATION_SOURCES];uniform vec4 u_highlights[NUM_ILLUMINATION_SOURCES]; #define PI 3.141592653589793 #define STANDARD 0 #define COMBINED 1 @@ -476,7 +476,7 @@ float get_aspect(vec2 deriv){return deriv.x !=0.0 ? atan(deriv.y,-deriv.x) : PI/ #ifdef OVERDRAW_INSPECTOR fragColor=vec4(1.0); #endif -}`,"uniform mat4 u_matrix;layout(location=0) in vec2 a_pos;out vec2 v_pos;void main() {gl_Position=projectTile(a_pos,a_pos);v_pos=a_pos/8192.0;if (a_pos.y <-32767.5) {v_pos.y=0.0;}if (a_pos.y > 32766.5) {v_pos.y=1.0;}}"),line:pi(`flat in vec2 v_width2;in vec2 v_normal;in float v_gamma_scale; +}`,"uniform mat4 u_matrix;layout(location=0) in vec2 a_pos;out vec2 v_pos;void main() {gl_Position=projectTile(a_pos,a_pos);v_pos=a_pos/8192.0;if (a_pos.y <-32767.5) {v_pos.y=0.0;}if (a_pos.y > 32766.5) {v_pos.y=1.0;}}"),line:mi(`flat in vec2 v_width2;in vec2 v_normal;in float v_gamma_scale; #ifdef GLOBE in float v_depth; #endif @@ -522,7 +522,7 @@ v_gamma_scale=1.0; #else float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length((projected_with_extrude.xy-projected_no_extrude.xy)/projected_with_extrude.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective; #endif -v_width2=vec2(outset,inset);}`),lineGradient:pi(`uniform sampler2D u_image;flat in vec2 v_width2;in vec2 v_normal;in float v_gamma_scale;in highp vec2 v_uv; +v_width2=vec2(outset,inset);}`),lineGradient:mi(`uniform sampler2D u_image;flat in vec2 v_width2;in vec2 v_normal;in float v_gamma_scale;in highp vec2 v_uv; #ifdef GLOBE in float v_depth; #endif @@ -564,7 +564,7 @@ v_gamma_scale=1.0; #else float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length((projected_with_extrude.xy-projected_no_extrude.xy)/projected_with_extrude.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective; #endif -v_width2=vec2(outset,inset);}`),linePattern:pi(`#ifdef GL_ES +v_width2=vec2(outset,inset);}`),linePattern:mi(`#ifdef GL_ES precision highp float; #endif uniform vec2 u_texsize;uniform float u_fade;uniform mediump vec3 u_scale;uniform sampler2D u_image;in vec2 v_normal;flat in vec2 v_width2;in float v_linesofar;in float v_gamma_scale;flat in float v_width; @@ -628,7 +628,7 @@ v_gamma_scale=1.0; #else float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length((projected_with_extrude.xy-projected_no_extrude.xy)/projected_with_extrude.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective; #endif -v_linesofar=a_linesofar;v_width2=vec2(outset,inset);v_width=floorwidth;}`),lineSDF:pi(`uniform lowp float u_lineatlas_width;uniform sampler2D u_image;uniform float u_mix;in vec2 v_normal;flat in vec2 v_width2;in vec2 v_tex_a;in vec2 v_tex_b;in float v_gamma_scale; +v_linesofar=a_linesofar;v_width2=vec2(outset,inset);v_width=floorwidth;}`),lineSDF:mi(`uniform lowp float u_lineatlas_width;uniform sampler2D u_image;uniform float u_mix;in vec2 v_normal;flat in vec2 v_width2;in vec2 v_tex_a;in vec2 v_tex_b;in float v_gamma_scale; #ifdef GLOBE in float v_depth; #endif @@ -689,7 +689,7 @@ v_gamma_scale=1.0; #else float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length((projected_with_extrude.xy-projected_no_extrude.xy)/projected_with_extrude.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective; #endif -float u_patternscale_a_x=u_tileratio/dasharray_from.w/u_crossfade_from;float u_patternscale_a_y=-dasharray_from.z/2.0/u_lineatlas_height;float u_patternscale_b_x=u_tileratio/dasharray_to.w/u_crossfade_to;float u_patternscale_b_y=-dasharray_to.z/2.0/u_lineatlas_height;v_tex_a=vec2(a_linesofar*u_patternscale_a_x/floorwidth,normal.y*u_patternscale_a_y+(float(dasharray_from.y)+0.5)/u_lineatlas_height);v_tex_b=vec2(a_linesofar*u_patternscale_b_x/floorwidth,normal.y*u_patternscale_b_y+(float(dasharray_to.y)+0.5)/u_lineatlas_height);v_width2=vec2(outset,inset);}`),lineGradientSDF:pi(`uniform sampler2D u_image;uniform sampler2D u_image_dash;uniform float u_mix;uniform lowp float u_lineatlas_width;in vec2 v_normal;flat in vec2 v_width2;in vec2 v_tex_a;in vec2 v_tex_b;in float v_gamma_scale;in highp vec2 v_uv; +float u_patternscale_a_x=u_tileratio/dasharray_from.w/u_crossfade_from;float u_patternscale_a_y=-dasharray_from.z/2.0/u_lineatlas_height;float u_patternscale_b_x=u_tileratio/dasharray_to.w/u_crossfade_to;float u_patternscale_b_y=-dasharray_to.z/2.0/u_lineatlas_height;v_tex_a=vec2(a_linesofar*u_patternscale_a_x/floorwidth,normal.y*u_patternscale_a_y+(float(dasharray_from.y)+0.5)/u_lineatlas_height);v_tex_b=vec2(a_linesofar*u_patternscale_b_x/floorwidth,normal.y*u_patternscale_b_y+(float(dasharray_to.y)+0.5)/u_lineatlas_height);v_width2=vec2(outset,inset);}`),lineGradientSDF:mi(`uniform sampler2D u_image;uniform sampler2D u_image_dash;uniform float u_mix;uniform lowp float u_lineatlas_width;in vec2 v_normal;flat in vec2 v_width2;in vec2 v_tex_a;in vec2 v_tex_b;in float v_gamma_scale;in highp vec2 v_uv; #ifdef GLOBE in float v_depth; #endif @@ -746,11 +746,11 @@ v_gamma_scale=1.0; #else float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length((projected_with_extrude.xy-projected_no_extrude.xy)/projected_with_extrude.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective; #endif -float u_patternscale_a_x=u_tileratio/dasharray_from.w/u_crossfade_from;float u_patternscale_a_y=-dasharray_from.z/2.0/u_lineatlas_height;float u_patternscale_b_x=u_tileratio/dasharray_to.w/u_crossfade_to;float u_patternscale_b_y=-dasharray_to.z/2.0/u_lineatlas_height;v_tex_a=vec2(a_linesofar*u_patternscale_a_x/floorwidth,normal.y*u_patternscale_a_y+(float(dasharray_from.y)+0.5)/u_lineatlas_height);v_tex_b=vec2(a_linesofar*u_patternscale_b_x/floorwidth,normal.y*u_patternscale_b_y+(float(dasharray_to.y)+0.5)/u_lineatlas_height);v_width2=vec2(outset,inset);}`),layerOpacity:pi(`uniform sampler2D u_image;uniform float u_opacity;in vec2 v_pos;void main() {fragColor=texture(u_image,v_pos)*u_opacity; +float u_patternscale_a_x=u_tileratio/dasharray_from.w/u_crossfade_from;float u_patternscale_a_y=-dasharray_from.z/2.0/u_lineatlas_height;float u_patternscale_b_x=u_tileratio/dasharray_to.w/u_crossfade_to;float u_patternscale_b_y=-dasharray_to.z/2.0/u_lineatlas_height;v_tex_a=vec2(a_linesofar*u_patternscale_a_x/floorwidth,normal.y*u_patternscale_a_y+(float(dasharray_from.y)+0.5)/u_lineatlas_height);v_tex_b=vec2(a_linesofar*u_patternscale_b_x/floorwidth,normal.y*u_patternscale_b_y+(float(dasharray_to.y)+0.5)/u_lineatlas_height);v_width2=vec2(outset,inset);}`),layerOpacity:mi(`uniform sampler2D u_image;uniform float u_opacity;in vec2 v_pos;void main() {fragColor=texture(u_image,v_pos)*u_opacity; #ifdef OVERDRAW_INSPECTOR fragColor=vec4(0.0); #endif -}`,"layout(location=0) in vec2 a_pos;out vec2 v_pos;void main() {gl_Position=vec4(a_pos.x*2.0-1.0,1.0-a_pos.y*2.0,0.0,1.0);v_pos.x=a_pos.x;v_pos.y=1.0-a_pos.y;}"),raster:pi(`uniform float u_fade_t;uniform float u_opacity;uniform sampler2D u_image0;uniform sampler2D u_image1;in vec3 v_pos0;in vec3 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=texture(u_image0,v_pos0.xy/v_pos0.z);vec4 color1=texture(u_image1,v_pos1.xy/v_pos1.z);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);fragColor=vec4(mix(u_high_vec,u_low_vec,rgb)*color.a,color.a); +}`,"layout(location=0) in vec2 a_pos;out vec2 v_pos;void main() {gl_Position=vec4(a_pos.x*2.0-1.0,1.0-a_pos.y*2.0,0.0,1.0);v_pos.x=a_pos.x;v_pos.y=1.0-a_pos.y;}"),raster:mi(`uniform float u_fade_t;uniform float u_opacity;uniform sampler2D u_image0;uniform sampler2D u_image1;in vec3 v_pos0;in vec3 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=texture(u_image0,v_pos0.xy/v_pos0.z);vec4 color1=texture(u_image1,v_pos1.xy/v_pos1.z);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);fragColor=vec4(mix(u_high_vec,u_low_vec,rgb)*color.a,color.a); #ifdef OVERDRAW_INSPECTOR fragColor=vec4(1.0); #endif @@ -758,7 +758,7 @@ fragColor=vec4(1.0); #ifdef GLOBE if (a_pos.y <-32767.5) {texturePos.y=0.0;}if (a_pos.y > 32766.5) {texturePos.y=1.0;} #endif -float perspectiveRatio=mix(1.0/denominator,1.0,u_image_warp.z);v_pos0=vec3(texturePos*perspectiveRatio,perspectiveRatio);vec2 parentPos=(texturePos*u_scale_parent)+u_tl_parent;v_pos1=vec3(parentPos*perspectiveRatio,perspectiveRatio);}`),symbolIcon:pi(`uniform sampler2D u_texture;in vec2 v_tex;flat in float v_total_opacity;void main() {fragColor=texture(u_texture,v_tex)*v_total_opacity; +float perspectiveRatio=mix(1.0/denominator,1.0,u_image_warp.z);v_pos0=vec3(texturePos*perspectiveRatio,perspectiveRatio);vec2 parentPos=(texturePos*u_scale_parent)+u_tl_parent;v_pos1=vec3(parentPos*perspectiveRatio,perspectiveRatio);}`),symbolIcon:mi(`uniform sampler2D u_texture;in vec2 v_tex;flat in float v_total_opacity;void main() {fragColor=texture(u_texture,v_tex)*v_total_opacity; #ifdef OVERDRAW_INSPECTOR fragColor=vec4(1.0); #endif @@ -772,7 +772,7 @@ u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ra #ifdef GLOBE if(u_pitch_with_map) {float anchor_pos_tile_y=(u_coord_matrix*vec4(projected_pos.xy/projected_pos.w,z,1.0)).y;projectionScaling=mix(projectionScaling,1.0/circumferenceRatioAtTileY(anchor_pos_tile_y)*u_pitched_scale,u_projection_transition);} #endif -vec4 finalPos=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*max(a_minFontScale,fontScale)+a_pxoffset/16.0)*projectionScaling,z,1.0);if(u_pitch_with_map) {finalPos=projectTileWithElevation(finalPos.xy,finalPos.z);}gl_Position=finalPos;v_tex=a_tex/u_texsize;}`),symbolSDF:pi(`#define SDF_PX 8.0 +vec4 finalPos=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*max(a_minFontScale,fontScale)+a_pxoffset/16.0)*projectionScaling,z,1.0);if(u_pitch_with_map) {finalPos=projectTileWithElevation(finalPos.xy,finalPos.z);}gl_Position=finalPos;v_tex=a_tex/u_texsize;}`),symbolSDF:mi(`#define SDF_PX 8.0 uniform bool u_is_halo;uniform bool u_is_plain;uniform sampler2D u_texture;uniform highp float u_gamma_scale;uniform bool u_is_text;in vec2 v_data0;in vec3 v_data1; #pragma maplibre: define highp vec4 fill_color #pragma maplibre: define highp vec4 halo_color @@ -805,7 +805,7 @@ u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ra #ifdef GLOBE if(u_pitch_with_map) {float anchor_pos_tile_y=(u_coord_matrix*vec4(projected_pos.xy/projected_pos.w,z,1.0)).y;projectionScaling=mix(projectionScaling,1.0/circumferenceRatioAtTileY(anchor_pos_tile_y)*u_pitched_scale,u_projection_transition);} #endif -vec4 finalPos=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*max(a_minFontScale,fontScale)+a_pxoffset)*projectionScaling,z,1.0);if(u_pitch_with_map) {finalPos=projectTileWithElevation(finalPos.xy,finalPos.z);}float gamma_scale=finalPos.w;gl_Position=finalPos;v_data0=a_tex/u_texsize;v_data1=vec3(gamma_scale,size,total_opacity);}`),symbolTextAndIcon:pi(`#define SDF_PX 8.0 +vec4 finalPos=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*max(a_minFontScale,fontScale)+a_pxoffset)*projectionScaling,z,1.0);if(u_pitch_with_map) {finalPos=projectTileWithElevation(finalPos.xy,finalPos.z);}float gamma_scale=finalPos.w;gl_Position=finalPos;v_data0=a_tex/u_texsize;v_data1=vec3(gamma_scale,size,total_opacity);}`),symbolTextAndIcon:mi(`#define SDF_PX 8.0 #define SDF 1.0 #define ICON 0.0 uniform bool u_is_halo;uniform bool u_is_text;uniform sampler2D u_texture;uniform sampler2D u_texture_icon;uniform highp float u_gamma_scale;in vec4 v_data0;in vec3 v_data1;flat in float v_is_sdf; @@ -844,13 +844,13 @@ u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ra #ifdef GLOBE if(u_pitch_with_map && !u_is_along_line) {float anchor_pos_tile_y=(u_coord_matrix*vec4(projected_pos.xy/projected_pos.w,z,1.0)).y;projectionScaling=mix(projectionScaling,1.0/circumferenceRatioAtTileY(anchor_pos_tile_y)*u_pitched_scale,u_projection_transition);} #endif -vec4 finalPos=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale)*projectionScaling,z,1.0);if(u_pitch_with_map) {finalPos=projectTileWithElevation(finalPos.xy,finalPos.z);}float gamma_scale=finalPos.w;gl_Position=finalPos;v_data0.xy=a_tex/u_texsize;v_data0.zw=a_tex/u_texsize_icon;v_data1=vec3(gamma_scale,size,total_opacity);v_is_sdf=is_sdf;}`),terrain:pi("uniform sampler2D u_texture;uniform vec4 u_fog_color;uniform vec4 u_horizon_color;uniform float u_fog_ground_blend;uniform float u_fog_ground_blend_opacity;uniform float u_horizon_fog_blend;uniform bool u_is_globe_mode;in vec2 v_texture_pos;in float v_fog_depth;const float gamma=2.2;vec4 gammaToLinear(vec4 color) {return pow(color,vec4(gamma));}vec4 linearToGamma(vec4 color) {return pow(color,vec4(1.0/gamma));}void main() {vec4 surface_color=texture(u_texture,vec2(v_texture_pos.x,1.0-v_texture_pos.y));if (!u_is_globe_mode && u_fog_ground_blend_opacity > 0.0 && v_fog_depth > u_fog_ground_blend) {vec4 surface_color_linear=gammaToLinear(surface_color);float blend_color=smoothstep(0.0,1.0,max((v_fog_depth-u_horizon_fog_blend)/(1.0-u_horizon_fog_blend),0.0));vec4 fog_horizon_color_linear=mix(gammaToLinear(u_fog_color),gammaToLinear(u_horizon_color),blend_color);float factor_fog=max(v_fog_depth-u_fog_ground_blend,0.0)/(1.0-u_fog_ground_blend);fragColor=linearToGamma(mix(surface_color_linear,fog_horizon_color_linear,pow(factor_fog,2.0)*u_fog_ground_blend_opacity));} else {fragColor=surface_color;}}","layout(location=0) in vec3 a_pos3d;uniform mat4 u_fog_matrix;uniform float u_ele_delta;out vec2 v_texture_pos;out float v_fog_depth;void main() {float ele=get_elevation(a_pos3d.xy);float ele_delta=a_pos3d.z==1.0 ? u_ele_delta : 0.0;v_texture_pos=a_pos3d.xy/8192.0;gl_Position=projectTileFor3D(a_pos3d.xy,ele-ele_delta);vec4 pos=u_fog_matrix*vec4(a_pos3d.xy,ele,1.0);v_fog_depth=pos.z/pos.w*0.5+0.5;}"),terrainDepth:pi("in float v_depth;const highp vec4 bitSh=vec4(256.*256.*256.,256.*256.,256.,1.);const highp vec4 bitMsk=vec4(0.,vec3(1./256.0));highp vec4 pack(highp float value) {highp vec4 comp=fract(value*bitSh);comp-=comp.xxyz*bitMsk;return comp;}void main() {fragColor=pack(v_depth);}","layout(location=0) in vec3 a_pos3d;uniform float u_ele_delta;out float v_depth;void main() {float ele=get_elevation(a_pos3d.xy);float ele_delta=a_pos3d.z==1.0 ? u_ele_delta : 0.0;gl_Position=projectTileFor3D(a_pos3d.xy,ele-ele_delta);v_depth=gl_Position.z/gl_Position.w;}"),atmosphere:pi(`#ifdef GL_ES +vec4 finalPos=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale)*projectionScaling,z,1.0);if(u_pitch_with_map) {finalPos=projectTileWithElevation(finalPos.xy,finalPos.z);}float gamma_scale=finalPos.w;gl_Position=finalPos;v_data0.xy=a_tex/u_texsize;v_data0.zw=a_tex/u_texsize_icon;v_data1=vec3(gamma_scale,size,total_opacity);v_is_sdf=is_sdf;}`),terrain:mi("uniform sampler2D u_texture;uniform vec4 u_fog_color;uniform vec4 u_horizon_color;uniform float u_fog_ground_blend;uniform float u_fog_ground_blend_opacity;uniform float u_horizon_fog_blend;uniform bool u_is_globe_mode;in vec2 v_texture_pos;in float v_fog_depth;const float gamma=2.2;vec4 gammaToLinear(vec4 color) {return pow(color,vec4(gamma));}vec4 linearToGamma(vec4 color) {return pow(color,vec4(1.0/gamma));}void main() {vec4 surface_color=texture(u_texture,vec2(v_texture_pos.x,1.0-v_texture_pos.y));if (!u_is_globe_mode && u_fog_ground_blend_opacity > 0.0 && v_fog_depth > u_fog_ground_blend) {vec4 surface_color_linear=gammaToLinear(surface_color);float blend_color=smoothstep(0.0,1.0,max((v_fog_depth-u_horizon_fog_blend)/(1.0-u_horizon_fog_blend),0.0));vec4 fog_horizon_color_linear=mix(gammaToLinear(u_fog_color),gammaToLinear(u_horizon_color),blend_color);float factor_fog=max(v_fog_depth-u_fog_ground_blend,0.0)/(1.0-u_fog_ground_blend);fragColor=linearToGamma(mix(surface_color_linear,fog_horizon_color_linear,pow(factor_fog,2.0)*u_fog_ground_blend_opacity));} else {fragColor=surface_color;}}","layout(location=0) in vec3 a_pos3d;uniform mat4 u_fog_matrix;uniform float u_ele_delta;out vec2 v_texture_pos;out float v_fog_depth;void main() {float ele=get_elevation(a_pos3d.xy);float ele_delta=a_pos3d.z==1.0 ? u_ele_delta : 0.0;v_texture_pos=a_pos3d.xy/8192.0;gl_Position=projectTileFor3D(a_pos3d.xy,ele-ele_delta);vec4 pos=u_fog_matrix*vec4(a_pos3d.xy,ele,1.0);v_fog_depth=pos.z/pos.w*0.5+0.5;}"),terrainDepth:mi("in float v_depth;const highp vec4 bitSh=vec4(256.*256.*256.,256.*256.,256.,1.);const highp vec4 bitMsk=vec4(0.,vec3(1./256.0));highp vec4 pack(highp float value) {highp vec4 comp=fract(value*bitSh);comp-=comp.xxyz*bitMsk;return comp;}void main() {fragColor=pack(v_depth);}","layout(location=0) in vec3 a_pos3d;uniform float u_ele_delta;out float v_depth;void main() {float ele=get_elevation(a_pos3d.xy);float ele_delta=a_pos3d.z==1.0 ? u_ele_delta : 0.0;gl_Position=projectTileFor3D(a_pos3d.xy,ele-ele_delta);v_depth=gl_Position.z/gl_Position.w;}"),atmosphere:mi(`#ifdef GL_ES precision highp float; #endif in vec3 view_direction;uniform vec3 u_sun_pos;uniform vec3 u_globe_position;uniform float u_globe_radius;uniform float u_atmosphere_blend;/**Shader use from https:*Made some change to adapt to MapLibre Globe geometry*/const float PI=3.141592653589793;const int iSteps=5;const int jSteps=3;/*radius of the planet*/const float EARTH_RADIUS=6371e3;/*radius of the atmosphere*/const float ATMOS_RADIUS=6471e3;vec2 rsi(vec3 r0,vec3 rd,float sr) {float a=dot(rd,rd);float b=2.0*dot(rd,r0);float c=dot(r0,r0)-(sr*sr);float d=(b*b)-4.0*a*c;if (d < 0.0) return vec2(1e5,-1e5);return vec2((-b-sqrt(d))/(2.0*a),(-b+sqrt(d))/(2.0*a));}vec4 atmosphere(vec3 r,vec3 r0,vec3 pSun,float iSun,float rPlanet,float rAtmos,vec3 kRlh,float kMie,float shRlh,float shMie,float g) {pSun=normalize(pSun);r=normalize(r);vec2 p=rsi(r0,r,rAtmos);if (p.x > p.y) {return vec4(0.0,0.0,0.0,1.0);}if (p.x < 0.0) {p.x=0.0;}vec3 pos=r0+r*p.x;vec2 p2=rsi(r0,r,rPlanet);if (p2.x <=p2.y && p2.x > 0.0) {p.y=min(p.y,p2.x);}float iStepSize=(p.y-p.x)/float(iSteps);float iTime=p.x+iStepSize*0.5;vec3 totalRlh=vec3(0,0,0);vec3 totalMie=vec3(0,0,0);float iOdRlh=0.0;float iOdMie=0.0;float mu=dot(r,pSun);float mumu=mu*mu;float gg=g*g;float pRlh=3.0/(16.0*PI)*(1.0+mumu);float pMie=3.0/(8.0*PI)*((1.0-gg)*(mumu+1.0))/(pow(1.0+gg-2.0*mu*g,1.5)*(2.0+gg));for (int i=0; i < iSteps; i++) {vec3 iPos=r0+r*iTime;float iHeight=length(iPos)-rPlanet;float odStepRlh=exp(-iHeight/shRlh)*iStepSize;float odStepMie=exp(-iHeight/shMie)*iStepSize;iOdRlh+=odStepRlh;iOdMie+=odStepMie;float jStepSize=rsi(iPos,pSun,rAtmos).y/float(jSteps);float jTime=jStepSize*0.5;float jOdRlh=0.0;float jOdMie=0.0;for (int j=0; j < jSteps; j++) {vec3 jPos=iPos+pSun*jTime;float jHeight=length(jPos)-rPlanet;jOdRlh+=exp(-jHeight/shRlh)*jStepSize;jOdMie+=exp(-jHeight/shMie)*jStepSize;jTime+=jStepSize;}vec3 attn=exp(-(kMie*(iOdMie+jOdMie)+kRlh*(iOdRlh+jOdRlh)));totalRlh+=odStepRlh*attn;totalMie+=odStepMie*attn;iTime+=iStepSize;}float opacity=exp(-(length(kRlh)*length(totalRlh)+kMie*length(totalMie)));vec3 color=iSun*(pRlh*kRlh*totalRlh+pMie*kMie*totalMie);return vec4(color,opacity);}void main() {vec3 scale_camera_pos=-u_globe_position*EARTH_RADIUS/u_globe_radius;vec4 color=atmosphere(normalize(view_direction),scale_camera_pos,u_sun_pos,22.0,EARTH_RADIUS,ATMOS_RADIUS,vec3(5.5e-6,13.0e-6,22.4e-6),21e-6,8e3,1.2e3,0.758 -);color.rgb=1.0-exp(-1.0*color.rgb);color=pow(color,vec4(1.0/2.2));fragColor=vec4(color.rgb,1.0-color.a)*u_atmosphere_blend;}`,"layout(location=0) in vec2 a_pos;uniform mat4 u_inv_proj_matrix;out vec3 view_direction;void main() {view_direction=(u_inv_proj_matrix*vec4(a_pos,0.0,1.0)).xyz;gl_Position=vec4(a_pos,0.0,1.0);}"),sky:pi("uniform vec4 u_sky_color;uniform vec4 u_horizon_color;uniform vec2 u_horizon;uniform vec2 u_horizon_normal;uniform float u_sky_horizon_blend;uniform float u_sky_blend;uniform vec3 u_globe_position;uniform float u_globe_radius;uniform float u_atmosphere_blend;in vec3 v_view_direction;const float ATMOSPHERE_HEIGHT_TO_GLOBE_RADIUS=100000.0/6371000.0;void main() {float x=gl_FragCoord.x;float y=gl_FragCoord.y;float blend=(y-u_horizon.y)*u_horizon_normal.y+(x-u_horizon.x)*u_horizon_normal.x;float opacity=1.0;if (u_sky_blend > 0.0) {vec3 ray=normalize(v_view_direction);float globe_distance=length(u_globe_position);float angle_to_globe_center=acos(clamp(dot(ray,u_globe_position)/globe_distance,-1.0,1.0));float horizon_angle=asin(min(u_globe_radius/globe_distance,1.0));blend=mix(blend,((angle_to_globe_center-horizon_angle)*u_camera_to_center_distance+1.0)*u_device_pixel_ratio,u_sky_blend);float closest_approach=max(dot(ray,u_globe_position),0.0);float lowest_altitude=sqrt(max(globe_distance*globe_distance-closest_approach*closest_approach,0.0))-u_globe_radius;float atmosphere_height=u_globe_radius*ATMOSPHERE_HEIGHT_TO_GLOBE_RADIUS;float inside_atmosphere=1.0-smoothstep(atmosphere_height,10.0*atmosphere_height,globe_distance-u_globe_radius);float through_atmosphere=1.0-smoothstep(0.0,atmosphere_height,lowest_altitude);opacity=inside_atmosphere*through_atmosphere*(1.0-u_atmosphere_blend);}if (blend > 0.0) {if (blend < u_sky_horizon_blend) {fragColor=mix(u_sky_color,u_horizon_color,pow(1.0-blend/u_sky_horizon_blend,2.0));} else {fragColor=u_sky_color;}}fragColor*=mix(1.0,opacity,u_sky_blend);}","layout(location=0) in vec2 a_pos;uniform mat4 u_inv_proj_matrix;out vec3 v_view_direction;void main() {v_view_direction=(u_inv_proj_matrix*vec4(a_pos,0.0,1.0)).xyz;gl_Position=vec4(a_pos,1.0,1.0);}")};Qle="#define PROJECTION_MERCATOR",eue="mercator",hF=class{constructor(){this._cachedMesh=null}get name(){return"mercator"}get useSubdivision(){return!1}get shaderVariantName(){return eue}get shaderDefine(){return Qle}get shaderPreludeCode(){return Ic.projectionMercator}get vertexShaderPreludeCode(){return Ic.projectionMercator.vertexSource}get subdivisionGranularity(){return Sw.noSubdivision}get useGlobeControls(){return!1}get transitionState(){return 0}destroy(){}getMeshFromTileID(e,t,r,i,a){if(this._cachedMesh)return this._cachedMesh;let n=new Ah;n.emplaceBack(0,0),n.emplaceBack(ft,0),n.emplaceBack(0,ft),n.emplaceBack(ft,ft);let o=e.createVertexBuffer(n,ap.members),s=ma.simpleSegment(0,0,4,2),l=new Ru;l.emplaceBack(1,0,2),l.emplaceBack(1,2,3);let u=e.createIndexBuffer(l);return this._cachedMesh=new W2(o,u,s),this._cachedMesh}recalculate(){}hasTransition(){return!1}},fF=class tue{constructor(t=0,r=0,i=0,a=0){if(isNaN(t)||t<0||isNaN(r)||r<0||isNaN(i)||i<0||isNaN(a)||a<0)throw Error("Invalid value for edge-insets, top, bottom, left and right must all be numbers");this.top=t,this.bottom=r,this.left=i,this.right=a}interpolate(t,r,i){return r.top!=null&&t.top!=null&&(this.top=pa.number(t.top,r.top,i)),r.bottom!=null&&t.bottom!=null&&(this.bottom=pa.number(t.bottom,r.bottom,i)),r.left!=null&&t.left!=null&&(this.left=pa.number(t.left,r.left,i)),r.right!=null&&t.right!=null&&(this.right=pa.number(t.right,r.right,i)),this}getCenter(t,r){let i=Ar((this.left+t-this.right)/2,0,t),a=Ar((this.top+r-this.bottom)/2,0,r);return new Be(i,a)}equals(t){return this.top===t.top&&this.bottom===t.bottom&&this.left===t.left&&this.right===t.right}clone(){return new tue(this.top,this.bottom,this.left,this.right)}toJSON(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}}};IF=class{constructor(e,t){var r;this.applyConstrain=(i,a)=>this._constrainOverride===null?this._callbacks.defaultConstrain(i,a):this._constrainOverride(i,a),this._callbacks=e,this._tileSize=512,this._renderWorldCopies=(t==null?void 0:t.renderWorldCopies)===void 0||!!(t!=null&&t.renderWorldCopies),this._minZoom=(t==null?void 0:t.minZoom)||0,this._maxZoom=(t==null?void 0:t.maxZoom)||22,this._minPitch=(t==null?void 0:t.minPitch)===void 0||(t==null?void 0:t.minPitch)===null?0:t==null?void 0:t.minPitch,this._maxPitch=(t==null?void 0:t.maxPitch)===void 0||(t==null?void 0:t.maxPitch)===null?60:t==null?void 0:t.maxPitch,this._constrainOverride=(r=t==null?void 0:t.constrainOverride)!=null?r:null,this.setMaxBounds(),this._width=0,this._height=0,this._center=new ar(0,0),this._elevation=0,this._zoom=0,this._tileZoom=Bse(this._zoom),this._scale=Po(this._zoom),this._bearingInRadians=0,this._fovInRadians=.6435011087932844,this._pitchInRadians=0,this._rollInRadians=0,this._unmodified=!0,this._edgeInsets=new fF,this._minElevationForCurrentTile=0,this._autoCalculateNearFarZ=!0}apply(e,t){this._constrainOverride=e.constrainOverride,this._latRange=e.latRange,this._lngRange=e.lngRange,this._width=e.width,this._height=e.height,this._center=e.center,this._elevation=e.elevation,this._minElevationForCurrentTile=e.minElevationForCurrentTile,this._zoom=e.zoom,this._tileZoom=Bse(this._zoom),this._scale=Po(this._zoom),this._bearingInRadians=e.bearingInRadians,this._fovInRadians=e.fovInRadians,this._pitchInRadians=e.pitchInRadians,this._rollInRadians=e.rollInRadians,this._unmodified=e.unmodified,this._edgeInsets=new fF(e.padding.top,e.padding.bottom,e.padding.left,e.padding.right),this._minZoom=e.minZoom,this._maxZoom=e.maxZoom,this._minPitch=e.minPitch,this._maxPitch=e.maxPitch,this._renderWorldCopies=e.renderWorldCopies,this._cameraToCenterDistance=e.cameraToCenterDistance,this._nearZ=e.nearZ,this._farZ=e.farZ,this._autoCalculateNearFarZ=e.autoCalculateNearFarZ,t&&this.constrainInternal(),this._calcMatrices()}get pixelsToClipSpaceMatrix(){return this._pixelsToClipSpaceMatrix}get clipSpaceToPixelsMatrix(){return this._clipSpaceToPixelsMatrix}get minElevationForCurrentTile(){return this._minElevationForCurrentTile}setMinElevationForCurrentTile(e){this._minElevationForCurrentTile=e}get tileSize(){return this._tileSize}get tileZoom(){return this._tileZoom}get scale(){return this._scale}get width(){return this._width}get height(){return this._height}get bearingInRadians(){return this._bearingInRadians}get lngRange(){return this._lngRange}get latRange(){return this._latRange}get pixelsToGLUnits(){return this._pixelsToGLUnits}get minZoom(){return this._minZoom}setMinZoom(e){if(this._minZoom===e)return;this._minZoom=e;let t=this._unmodified;this.setZoom(this.applyConstrain(this._center,this.zoom).zoom),this._unmodified=t}get maxZoom(){return this._maxZoom}setMaxZoom(e){if(this._maxZoom===e)return;this._maxZoom=e;let t=this._unmodified;this.setZoom(this.applyConstrain(this._center,this.zoom).zoom),this._unmodified=t}get minPitch(){return this._minPitch}setMinPitch(e){if(this._minPitch===e)return;this._minPitch=e;let t=this._unmodified;this.setPitch(Math.max(this.pitch,e)),this._unmodified=t}get maxPitch(){return this._maxPitch}setMaxPitch(e){if(this._maxPitch===e)return;this._maxPitch=e;let t=this._unmodified;this.setPitch(Math.min(this.pitch,e)),this._unmodified=t}get renderWorldCopies(){return this._renderWorldCopies}setRenderWorldCopies(e){e===void 0?e=!0:e===null&&(e=!1),this._renderWorldCopies=e}get constrainOverride(){return this._constrainOverride}setConstrainOverride(e){e===void 0&&(e=null),this._constrainOverride!==e&&(this._constrainOverride=e,this.constrainInternal(),this._calcMatrices())}get worldSize(){return this._tileSize*this._scale}get centerOffset(){return this.centerPoint._sub(this.size._div(2))}get size(){return new Be(this._width,this._height)}get bearing(){return this._bearingInRadians/Math.PI*180}setBearing(e){let t=Js(e,-180,180)*Math.PI/180;this._bearingInRadians!==t&&(this._unmodified=!1,this._bearingInRadians=t,this._calcMatrices(),this._rotationMatrix=_le(),YVe(this._rotationMatrix,this._rotationMatrix,-this._bearingInRadians))}get rotationMatrix(){return this._rotationMatrix}get pitchInRadians(){return this._pitchInRadians}get pitch(){return this._pitchInRadians/Math.PI*180}setPitch(e){let t=Ar(e,this.minPitch,this.maxPitch)/180*Math.PI;this._pitchInRadians!==t&&(this._unmodified=!1,this._pitchInRadians=t,this._calcMatrices())}get rollInRadians(){return this._rollInRadians}get roll(){return this._rollInRadians/Math.PI*180}setRoll(e){let t=e/180*Math.PI;this._rollInRadians!==t&&(this._unmodified=!1,this._rollInRadians=t,this._calcMatrices())}get fovInRadians(){return this._fovInRadians}get fov(){return ku(this._fovInRadians)}setFov(e){e=Ar(e,.1,150),this.fov!==e&&(this._unmodified=!1,this._fovInRadians=ua(e),this._calcMatrices())}get zoom(){return this._zoom}setZoom(e){let t=this.applyConstrain(this._center,e).zoom;this._zoom!==t&&(this._unmodified=!1,this._zoom=t,this._tileZoom=Math.max(0,Math.floor(t)),this._scale=Po(t),this.constrainInternal(),this._calcMatrices())}get center(){return this._center}setCenter(e){(e.lat!==this._center.lat||e.lng!==this._center.lng)&&(this._unmodified=!1,this._center=e,this.constrainInternal(),this._calcMatrices())}get elevation(){return this._elevation}setElevation(e){e!==this._elevation&&(this._elevation=e,this.constrainInternal(),this._calcMatrices())}get padding(){return this._edgeInsets.toJSON()}setPadding(e){this._edgeInsets.equals(e)||(this._unmodified=!1,this._edgeInsets.interpolate(this._edgeInsets,e,1),this._calcMatrices())}get centerPoint(){return this._edgeInsets.getCenter(this._width,this._height)}get pixelsPerMeter(){return this._pixelPerMeter}get unmodified(){return this._unmodified}get cameraToCenterDistance(){return this._cameraToCenterDistance}get nearZ(){return this._nearZ}get farZ(){return this._farZ}get autoCalculateNearFarZ(){return this._autoCalculateNearFarZ}overrideNearFarZ(e,t){this._autoCalculateNearFarZ=!1,this._nearZ=e,this._farZ=t,this._calcMatrices()}clearNearFarZOverride(){this._autoCalculateNearFarZ=!0,this._calcMatrices()}isPaddingEqual(e){return this._edgeInsets.equals(e)}interpolatePadding(e,t,r){this._unmodified=!1,this._edgeInsets.interpolate(e,t,r),this.constrainInternal(),this._calcMatrices()}resize(e,t,r=!0){this._width=e,this._height=t,r&&this.constrainInternal(),this._calcMatrices()}getMaxBounds(){var e,t;return((e=this._latRange)==null?void 0:e.length)!==2||((t=this._lngRange)==null?void 0:t.length)!==2?null:new Ou([this._lngRange[0],this._latRange[0]],[this._lngRange[1],this._latRange[1]])}setMaxBounds(e){e?(this._lngRange=[e.getWest(),e.getEast()],this._latRange=[e.getSouth(),e.getNorth()],this.constrainInternal()):(this._lngRange=null,this._latRange=[-Lu,Lu])}getCameraQueryGeometry(e,t){if(t.length===1)return[t[0],e];{let{minX:r,minY:i,maxX:a,maxY:n}=Gl.fromPoints(t).extend(e);return[new Be(r,i),new Be(a,i),new Be(a,n),new Be(r,n),new Be(r,i)]}}constrainInternal(){if(!this.center||!this._width||!this._height||this._constraining)return;this._constraining=!0;let e=this._unmodified,{center:t,zoom:r}=this.applyConstrain(this.center,this.zoom);this.setCenter(t),this.setZoom(r),this._unmodified=e,this._constraining=!1}_calcMatrices(){if(this._pixelPerMeter=Zf(1,this.center.lat)*this.worldSize,!this._width||!this._height)return;this._pixelsToGLUnits=[2/this._width,-2/this._height];let e=jl(new Float64Array(16));Zn(e,e,[this._width/2,-this._height/2,1]),Ya(e,e,[1,-1,0]),this._clipSpaceToPixelsMatrix=e,e=jl(new Float64Array(16)),Zn(e,e,[1,-1,1]),Ya(e,e,[-1,-1,0]),Zn(e,e,[2/this._width,2/this._height,1]),this._pixelsToClipSpaceMatrix=e;let t=this.fovInRadians/2;this._cameraToCenterDistance=.5/Math.tan(t)*this._height,this._callbacks.calcMatrices()}calculateCenterFromCameraLngLatAlt(e,t,r,i){let a=r===void 0?this.bearing:r,n=i=i===void 0?this.pitch:i,{distanceToCenter:o,clampedElevation:s}=this._distanceToCenterFromAltElevationPitch(t,this.elevation,n),{x:l,y:u}=Cw(n,a),c=bi.fromLngLat(e,t),h=nC(1,c.y),f,d,p=0;do{if(p+=1,p>10)break;d=o/h;let m=l*d,g=u*d;f=new bi(c.x+m,c.y+g),h=1/f.meterInMercatorCoordinateUnits()}while(Math.abs(o-d*h)>1e-12);return{center:f.toLngLat(),elevation:s,zoom:Wn(this.height/2/Math.tan(this.fovInRadians/2)/d/this.tileSize)}}recalculateZoomAndCenter(e){if(this.elevation-e===0)return;let t=1/this.worldSize,r=Zf(1,this.center.lat)*this.worldSize,i=bi.fromLngLat(this.center,this.elevation),a=i.x/t,n=i.y/t,o=i.z/t,s=this.pitch,l=this.bearing,{x:u,y:c,z:h}=Cw(s,l),f=this.cameraToCenterDistance,d=a+f*-u,p=n+f*-c,m=o+f*h,{distanceToCenter:g,clampedElevation:y}=this._distanceToCenterFromAltElevationPitch(m/r,e,s),x=g*r,w=d+u*x,_=p+c*x,A=new bi(w*t,_*t,0).toLngLat(),T=Zf(1,A.lat),M=Wn(this.height/2/Math.tan(this.fovInRadians/2)/g/T/this.tileSize);this._elevation=y,this._center=A,this.setZoom(M)}_distanceToCenterFromAltElevationPitch(e,t,r){let i=-Math.cos(ua(r)),a=e-t,n,o=t;return i*a>=0||Math.abs(i)=0?1<i}allowWorldCopies(){return!0}prepareNextFrame(){}},lje=wa([{name:"a_pos3d",type:"Int16",components:3}]),uje=class extends Xa{constructor(e){super(),this._lastTilesetChange=ki(),this.tileManager=e,this._tiles={},this._renderableTilesKeys=[],this._sourceTileCache={},this.minzoom=0,this.maxzoom=22,this.deltaZoom=1,this.tileSize=e._source.tileSize*2**this.deltaZoom,e.usedForTerrain=!0,e.tileSize=this.tileSize}destruct(){this.tileManager.usedForTerrain=!1,this.tileManager.tileSize=null,this.releaseAllRTT()}getSource(){return this.tileManager._source}update(e,t){this.tileManager.update(e,t),this._renderableTilesKeys=[];let r={},i=!1;for(let a of Vm(e,{tileSize:this.tileSize,minzoom:this.minzoom,maxzoom:this.maxzoom,reparseOverscaled:!1,terrain:t}))r[a.key]=!0,this._renderableTilesKeys.push(a.key),this._tiles[a.key]||(a.terrainRttPosMatrix32f=new Float32Array(16),Iu(a.terrainRttPosMatrix32f,0,ft,ft,0,0,1),this._tiles[a.key]=new Gle(a,this.tileSize),this._lastTilesetChange=ki(),i=!0);for(let a in this._tiles)r[a]||(this._tiles[a].releaseRTT(this.tileManager.map.painter),delete this._tiles[a],i=!0);return i}releaseRTT(e){for(let t in this._tiles){let r=this._tiles[t];(r.tileID.equals(e)||r.tileID.isChildOf(e)||e.isChildOf(r.tileID))&&r.releaseRTT(this.tileManager.map.painter)}}releaseAllRTT(){for(let e in this._tiles)this._tiles[e].releaseRTT(this.tileManager.map.painter)}getRenderableTiles(){return this._renderableTilesKeys.map(e=>this.getTileByID(e))}getTileByID(e){return this._tiles[e]}getTerrainCoords(e,t){return t?this._getTerrainCoordsForTileRanges(e,t):this._getTerrainCoordsForRegularTile(e)}_getTerrainCoordsForRegularTile(e){let t={};for(let r of this._renderableTilesKeys){let i=this._tiles[r].tileID,a=e.clone(),n=jf();if(i.canonical.equals(e.canonical))Iu(n,0,ft,ft,0,0,1);else if(i.canonical.isChildOf(e.canonical)){let o=i.canonical.z-e.canonical.z,s=i.canonical.x-(i.canonical.x>>o<>o<>o;Iu(n,0,u,u,0,0,1),Ya(n,n,[-s*u,-l*u,0])}else if(e.canonical.isChildOf(i.canonical)){let o=e.canonical.z-i.canonical.z,s=e.canonical.x-(e.canonical.x>>o<>o<>o;Iu(n,0,ft,ft,0,0,1),Ya(n,n,[s*u,l*u,0]),Zn(n,n,[1/2**o,1/2**o,0])}else continue;a.terrainRttPosMatrix32f=new Float32Array(n),t[r]=a}return t}_getTerrainCoordsForTileRanges(e,t){let r={};for(let i of this._renderableTilesKeys){let a=this._tiles[i].tileID;if(!this._isWithinTileRanges(a,t))continue;let n=e.clone(),o=jf();if(a.canonical.z===e.canonical.z){let s=e.canonical.x-a.canonical.x+e.wrap*(1<e.canonical.z){let s=a.canonical.z-e.canonical.z,l=a.canonical.x-(a.canonical.x>>s<>s<>s),h=e.canonical.y-(a.canonical.y>>s),f=ft>>s;Iu(o,0,f,f,0,0,1),Ya(o,o,[-l*f+c*ft,-u*f+h*ft,0])}else{let s=e.canonical.z-a.canonical.z,l=e.canonical.x-(e.canonical.x>>s<>s<>s)-a.canonical.x,h=(e.canonical.y>>s)-a.canonical.y,f=ft<r.maxzoom&&(i=r.maxzoom),i=r.minzoom&&!(a!=null&&a.dem);)a=this.findTileInCaches(e.scaledTo(i--).key);return a}findTileInCaches(e){let t=this.tileManager.getTileByID(e);return t||(t=this.tileManager._outOfViewCache.getByKey(e),t)}anyTilesAfterTime(e=ki()){return this._lastTilesetChange>=e}_isWithinTileRanges(e,t){let r=t[e.canonical.z];return!!r&&(e.wrap>r.minWrap||e.wrap=r.minTileXWrapped&&e.canonical.x<=r.maxTileXWrapped&&e.canonical.y>=r.minTileY&&e.canonical.y<=r.maxTileY)}},qse=ft*(1-1e-12),Ose=-.5,cje=class{constructor(e,t,r,i="auto"){this._meshCache={},this.painter=e,this.tileManager=new uje(t),this.options=r,this.exaggeration=typeof r.exaggeration=="number"?r.exaggeration:1,this._terrainSkirtLength=i,this.qualityFactor=2,this.meshSize=128,this._demMatrixCache=new Map,this._elevationSamplerCache=new Map}destroy(){this._fbo&&(this._fbo=(this._fbo.destroy(),null)),this._fboDepthTexture&&(this._fboDepthTexture=(this._fboDepthTexture.destroy(),null)),this._emptyDemTexture&&(this._emptyDemTexture=(this._emptyDemTexture.destroy(),null)),this._emptyDepthTexture&&(this._emptyDepthTexture=(this._emptyDepthTexture.destroy(),null));for(let e in this._meshCache)this._meshCache[e].destroy();this._meshCache={},this.tileManager.destruct()}getDEMElevation(e,t,r,i=ft){let a=e.normalizeCoordinates(t,r,i);if(!a)return 0;let n=this.getElevationSampler(a.tileID);return n?n(a.x,a.y,i):0}getElevationForLngLatZoom(e,t){if(!mC(t,e.wrap()))return 0;let{tileID:r,mercatorX:i,mercatorY:a}=this._getOverscaledTileIDFromLngLatZoom(e,t);return this.getElevation(r,i%ft,a%ft,ft)}getElevationForLngLat(e,t){let r=this.getCoverageIndex();if(r){let n=bi.fromLngLat(e),o=LF(r,this.exaggeration,n.x,n.y);if(o.demLoaded)return o.elevation}let i=Vm(t,{maxzoom:this.tileManager.maxzoom,minzoom:this.tileManager.minzoom,tileSize:512,terrain:this}),a=0;for(let n of i)n.canonical.z>a&&(a=Math.min(n.canonical.z,this.tileManager.maxzoom));return this.getElevationForLngLatZoom(e,a)}getElevation(e,t,r,i=ft){return this.getDEMElevation(e,t,r,i)*this.exaggeration}resetElevationCache(){this._elevationSamplerCache.clear(),this._coverageIndex=void 0}getCoverageIndex(){return this._coverageIndex===void 0&&(this._coverageIndex=this._buildCoverageIndex()),this._coverageIndex}_buildCoverageIndex(){let e=[],t=new Map,r=0,i=0;for(let a of this.tileManager.getRenderableTiles()){if(!a)continue;let{canonical:n,wrap:o}=a.tileID;e.includes(n.z)||e.push(n.z);let s=this.getElevationSampler(a.tileID);t.set(`${o}/${n.z}/${n.x}/${n.y}`,s);let{minElevation:l,maxElevation:u}=this.getMinMaxElevation(a.tileID);r=Math.min(r,l!=null?l:0),i=Math.max(i,u!=null?u:0)}return t.size===0?null:(e.sort((a,n)=>n-a),{zooms:e,samplerPerTile:t,minElevation:r-10,maxElevation:i+10})}getElevationSampler(e){let t=e.key,r=this._elevationSamplerCache.get(t);if(r)return r;let i=this.tileManager.getSourceTile(e,!0),a=i==null?void 0:i.dem;if(!i||!a)return null;let n=this._getDEMTileMatrix(e,i),o=n[0]*a.dim,s=n[5]*a.dim,l=n[12]*a.dim+Ose,u=n[13]*a.dim+Ose,c=(h,f,d)=>{let p=d===8192?1:ft/d;return a.sampleBilinear(h*p*o+l,f*p*s+u)};return this._elevationSamplerCache.set(t,c),c}_getDEMTileMatrix(e,t){let r=`${t.tileID.key}/${e.key}`,i=this._demMatrixCache.get(r);if(i)return i;let a=e.canonical.z-t.tileID.canonical.z,n=e.canonical.x-(e.canonical.x>>a<>a<0,r=t&&e.canonical.y===0,i=t&&e.canonical.y===(1<{a=Ar(+a,this.minZoom,this.maxZoom);let n={center:new ar(i.lng,i.lat),zoom:a},o=this._helper._lngRange;!this._helper._renderWorldCopies&&o===null&&(o=[-179.9999999999,180-1e-10]);let s=this.tileSize*Po(n.zoom),l=0,u=s,c=0,h=s,f=0,d=0,{x:p,y:m}=this.size;if(this._helper._latRange){let A=this._helper._latRange;l=Jd(A[1])*s,u=Jd(A[0])*s,u-lu&&(w=u-A)}if(o){let A=(c+h)/2,T=g;this._helper._renderWorldCopies&&(T=Js(g,A-s/2,A+s/2));let M=p/2;T-Mh&&(x=h-M)}if(x!==void 0||w!==void 0){let A=new Be(x!=null?x:g,w!=null?w:y);n.center=Fm(s,A).wrap()}return n},this.applyConstrain=(i,a)=>this._helper.applyConstrain(i,a),this._helper=r!=null?r:new IF({calcMatrices:()=>this._calcMatrices(),defaultConstrain:(i,a)=>this.defaultConstrain(i,a)},t),this._coveringTilesDetailsProvider=new sje}clone(){let t=new aue;return t.apply(this,!1),t}apply(t,r){this._helper.apply(t,r)}get cameraPosition(){return this._cameraPosition}get projectionMatrix(){return this._projectionMatrix}get modelViewProjectionMatrix(){return this._viewProjMatrix}get inverseProjectionMatrix(){return this._invProjMatrix}get mercatorMatrix(){return this._mercatorMatrix}getVisibleUnwrappedCoordinates(t){let r=[new F2(0,t)];if(this._helper._renderWorldCopies){let i=this.screenPointToMercatorCoordinate(new Be(0,0)),a=this.screenPointToMercatorCoordinate(new Be(this._helper._width,0)),n=this.screenPointToMercatorCoordinate(new Be(this._helper._width,this._helper._height)),o=this.screenPointToMercatorCoordinate(new Be(0,this._helper._height)),s=Math.floor(Math.min(i.x,a.x,n.x,o.x)),l=Math.floor(Math.max(i.x,a.x,n.x,o.x));for(let u=s-1;u<=l+1;u++)u!==0&&r.push(new F2(u,t))}return r}getCameraFrustum(){return SF.fromInvProjectionMatrix(this._invViewProjMatrix,this.worldSize)}getClippingPlane(){return null}getCoveringTilesDetailsProvider(){return this._coveringTilesDetailsProvider}recalculateZoomAndCenter(t){let r=this.screenPointToLocation(this.centerPoint,t),i=t?t.getElevationForLngLat(r,this):0;this._helper.recalculateZoomAndCenter(i)}setLocationAtPoint(t,r,i=this.elevation){let a=i-this.elevation,n=this.screenPointToMercatorCoordinateAtZ(r,a),o=this.screenPointToMercatorCoordinateAtZ(this.centerPoint,0),s=bi.fromLngLat(t),l=new bi(s.x-(n.x-o.x),s.y-(n.y-o.y));this.setCenter(l==null?void 0:l.toLngLat()),this._helper._renderWorldCopies&&this.setCenter(this.center.wrap())}locationToScreenPoint(t,r){return r?this.coordinatePoint(bi.fromLngLat(t),r.getElevationForLngLat(t,this),this._pixelMatrix3D):this.coordinatePoint(bi.fromLngLat(t))}screenPointToLocation(t,r){var i;return(i=this.screenPointToMercatorCoordinate(t,r))==null?void 0:i.toLngLat()}screenPointToLocationAtElevation(t,r){var i;return(i=this.screenPointToMercatorCoordinateAtZ(t,r-this.elevation))==null?void 0:i.toLngLat()}screenPointToMercatorCoordinate(t,r){if(r){let i=this.screenTerrainPointToMercatorCoordinate(t,r);if(i!=null)return i}return this.screenPointToMercatorCoordinateAtZ(t)}screenTerrainPointToMercatorCoordinate(t,r){let i=r.getCoverageIndex();if(!i)return null;let{near:a,far:n}=this.getRaySegmentFromPixel(t),o=this.worldSize,s=n[0]-a[0],l=n[1]-a[1],u=n[2]-a[2],c={index:i,exaggeration:r.exaggeration,near:a,dx:s,dy:l,dz:u,worldSize:o},h=0,f=1;if(u===0){if(a[2]>i.maxElevation||a[2]f)return null}let d=Math.hypot(s,l),p=Ar(Math.ceil(d*(f-h)/4),1,512),m=0,g=!jw(c,0);for(let y=0;y<=p;y++){let x=h+(f-h)*y/p;if(!g)g=!jw(c,x);else if(jw(c,x)){let{lo:w,hi:_}=iue(c,jw,m,x,.001/d),A=i6(c,w),T=i6(c,_),M=a[2]+w*u-A.elevation,S=a[2]+_*u-T.elevation,k=A.covered&&M>S?Ar(w+M*(_-w)/(M-S),w,_):_;return new bi((a[0]+k*s)/o,(a[1]+k*l)/o,i6(c,k).elevation)}m=x}return null}getRaySegmentFromPixel(t){let r=[t.x,t.y,0,1],i=[t.x,t.y,1,1];Yn(r,r,this._pixelMatrixInverse),Yn(i,i,this._pixelMatrixInverse);let a=r[3],n=i[3],o=this.elevation;return{near:[r[0]/a,r[1]/a,r[2]/a+o],far:[i[0]/n,i[1]/n,i[2]/n+o]}}screenPointToMercatorCoordinateAtZ(t,r){let i=r||0,{near:a,far:n}=this.getRaySegmentFromPixel(t),o=a[2]===n[2]?0:(i+this.elevation-a[2])/(n[2]-a[2]);return new bi(pa.number(a[0],n[0],o)/this.worldSize,pa.number(a[1],n[1],o)/this.worldSize,i)}coordinatePoint(t,r=0,i=this._pixelMatrix){let a=this._coordinateClipPoint(t,r,i),n=a[3];return n>0?new Be(a[0]/n,a[1]/n):this._offScreenPointBehindCamera(a[0],a[1],n)}_coordinateClipPoint(t,r,i){let a=[t.x*this.worldSize,t.y*this.worldSize,r,1];return Yn(a,a,i)}_offScreenPointBehindCamera(t,r,i){let a=this.width/2,n=this.height/2,o=t-a*i,s=r-n*i;o===0&&s===0&&(s=1);let l=a+this.width,u=n+this.height,c=Math.min(o===0?1/0:l/Math.abs(o),s===0?1/0:u/Math.abs(s));return new Be(a+o*c,n+s*c)}getBounds(){let t=Math.max(0,this._helper._height/2-Pm(this));return new Ou().extend(this.screenPointToLocation(new Be(0,t))).extend(this.screenPointToLocation(new Be(this._helper._width,t))).extend(this.screenPointToLocation(new Be(this._helper._width,this._helper._height))).extend(this.screenPointToLocation(new Be(0,this._helper._height)))}isPointOnMapSurface(t,r){return r?this.screenTerrainPointToMercatorCoordinate(t,r)!=null:t.y>this.centerPoint.y-Pm(this)}calculatePosMatrix(t,r=!1,i=!1){var l;let a=(l=t.key)!=null?l:Od(t.wrap,t.canonical.z,t.canonical.z,t.canonical.x,t.canonical.y),n=r?this._alignedPosMatrixCache:this._posMatrixCache;if(n.has(a)){let u=n.get(a);return i?u.f32:u.f64}let o=kw(t,this.worldSize);$d(o,r?this._alignedProjMatrix:this._viewProjMatrix,o);let s={f64:o,f32:new Float32Array(o)};return n.set(a,s),i?s.f32:s.f64}calculateFogMatrix(t){let r=t.key,i=this._fogMatrixCacheF32;if(i.has(r))return i.get(r);let a=kw(t,this.worldSize);return $d(a,this._fogMatrix,a),i.set(r,new Float32Array(a)),i.get(r)}calculateCenterFromCameraLngLatAlt(t,r,i,a){return this._helper.calculateCenterFromCameraLngLatAlt(t,r,i,a)}calculateCameraOptionsFromTo(t,r,i,a){let n=bi.fromLngLat(t,r),o=bi.fromLngLat(i,a),s=o.x-n.x,l=o.y-n.y,u=o.z-n.z,c=Math.hypot(s,l,u);if(c===0)throw Error("Can't calculate camera options with same From and To");let h=Math.hypot(s,l),f=Wn(this.cameraToCenterDistance/c/this.tileSize),d=ku(Math.atan2(s,-l)),p=ku(Math.acos(h/c));return p=u<0?90-p:90+p,{center:o.toLngLat(),elevation:a,zoom:f,pitch:p,bearing:d}}_calculateNearFarZ(t,r,i){let a=Math.min(this.elevation,this.minElevationForCurrentTile,this.getCameraAltitude()-100),n=t-a*this._helper._pixelPerMeter/Math.cos(r),o=a<0?n:t,s=Math.PI/2+this.pitchInRadians,l=ua(this.fov)*(Math.abs(Math.cos(ua(this.roll)))*this.height+Math.abs(Math.sin(ua(this.roll)))*this.width)/this.height*(.5+i.y/this.height),u=Math.sin(l)*o/Math.sin(Ar(Math.PI-s-l,.01,Math.PI-.01)),c=Pm(this),h=Math.atan(c/this._helper.cameraToCenterDistance),f=ua(90-Yf),d=h>f?2*h*(.5+i.y/(c*2)):f,p=Math.sin(d)*o/Math.sin(Ar(Math.PI-s-d,.01,Math.PI-.01)),m=Math.min(u,p);this._helper._farZ=(Math.cos(Math.PI/2-r)*m+o)*1.01,this._helper._nearZ=this._helper._height/50}_calcMatrices(t=this._helper.autoCalculateNearFarZ){let r=this.centerOffset,i=Bu(this.worldSize,this.center),a=i.x,n=i.y,o=ua(Math.min(this.pitch,Yf)),s=Math.max(this._helper.cameraToCenterDistance/2,this._helper.cameraToCenterDistance+this._helper._elevation*this._helper._pixelPerMeter/Math.cos(o));t&&this._calculateNearFarZ(s,o,r);let l;l=new Float64Array(16),H4(l,this.fovInRadians,this._helper._width/this._helper._height,this._helper._nearZ,this._helper._farZ),this._invProjMatrix=new Float64Array(16),kGe(this._invProjMatrix,l),l[8]=-r.x*2/this._helper._width,l[9]=r.y*2/this._helper._height,this._projectionMatrix=$4(l),Zn(l,l,[1,-1,1]),Ya(l,l,[0,0,-this._helper.cameraToCenterDistance]),_h(l,l,-this.rollInRadians),Hd(l,l,this.pitchInRadians),_h(l,l,-this.bearingInRadians),Ya(l,l,[-a,-n,0]),this._mercatorMatrix=Zn([],l,[this.worldSize,this.worldSize,this.worldSize]),Zn(l,l,[1,1,this._helper._pixelPerMeter]),this._pixelMatrix=$d(new Float64Array(16),this.clipSpaceToPixelsMatrix,l),Ya(l,l,[0,0,-this.elevation]),this._viewProjMatrix=l,this._invViewProjMatrix=n2([],l);let u=[0,0,-1,1];Yn(u,u,this._invViewProjMatrix),this._cameraPosition=[u[0]/u[3],u[1]/u[3],u[2]/u[3]],this._fogMatrix=new Float64Array(16),H4(this._fogMatrix,this.fovInRadians,this.width/this.height,s,this._helper._farZ),this._fogMatrix[8]=-r.x*2/this.width,this._fogMatrix[9]=r.y*2/this.height,Zn(this._fogMatrix,this._fogMatrix,[1,-1,1]),Ya(this._fogMatrix,this._fogMatrix,[0,0,-this.cameraToCenterDistance]),_h(this._fogMatrix,this._fogMatrix,-this.rollInRadians),Hd(this._fogMatrix,this._fogMatrix,this.pitchInRadians),_h(this._fogMatrix,this._fogMatrix,-this.bearingInRadians),Ya(this._fogMatrix,this._fogMatrix,[-a,-n,0]),Zn(this._fogMatrix,this._fogMatrix,[1,1,this._helper._pixelPerMeter]),Ya(this._fogMatrix,this._fogMatrix,[0,0,-this.elevation]),this._pixelMatrix3D=$d(new Float64Array(16),this.clipSpaceToPixelsMatrix,l);let c=this._helper._width%2/2,h=this._helper._height%2/2,f=Math.cos(this.bearingInRadians),d=Math.sin(-this.bearingInRadians),p=a-Math.round(a)+f*c+d*h,m=n-Math.round(n)+f*h+d*c,g=new Float64Array(l);if(Ya(g,g,[p>.5?p-1:p,m>.5?m-1:m,0]),this._alignedProjMatrix=g,l=n2(new Float64Array(16),this._pixelMatrix),!l)throw Error("failed to invert matrix");this._pixelMatrixInverse=l,this._clearMatrixCaches()}_clearMatrixCaches(){this._posMatrixCache.clear(),this._alignedPosMatrixCache.clear(),this._fogMatrixCacheF32.clear()}maxPitchScaleFactor(){if(!this._pixelMatrixInverse)return 1;let t=this.screenPointToMercatorCoordinate(new Be(0,0)),r=[t.x*this.worldSize,t.y*this.worldSize,0,1];return Yn(r,r,this._pixelMatrix)[3]/this._helper.cameraToCenterDistance}getCameraPoint(){return this._helper.getCameraPoint()}getCameraAltitude(){return Math.cos(this.pitchInRadians)*this.cameraToCenterDistance/this.pixelsPerMeter+this.elevation}getCameraLngLat(){let t=Zf(1,this.center.lat)*this.worldSize,r=this._helper.cameraToCenterDistance/t;return sC(this.center,this.elevation,this.pitch,this.bearing,r).toLngLat()}getProjectionData(t){let{overscaledTileID:r,aligned:i,applyTerrainMatrix:a}=t,n=this._helper.getMercatorTileCoordinates(r),o=r?this.calculatePosMatrix(r,i,!0):null,s;return s=r!=null&&r.terrainRttPosMatrix32f&&a?r.terrainRttPosMatrix32f:o||yk(),{mainMatrix:s,tileMercatorCoords:n,clippingPlane:[0,0,0,0],projectionTransition:0,fallbackMatrix:s,clipAntimeridian:!1}}isLocationOccluded(t,r,i){if(!(r!=null&&r.getCoverageIndex()))return!1;let a=bi.fromLngLat(t);i!=null||(i=r.getElevationForLngLat(t,this));let n=this._coordinateClipPoint(a,i,this._pixelMatrix3D),o=n[3];if(o<=0||n[2]>o)return!0;let s=new Be(n[0]/o,n[1]/o),l=this.screenTerrainPointToMercatorCoordinate(s,r);if(l==null)return!1;let u=this.getRaySegmentFromPixel(s),c=Vse(u,a.x*this.worldSize,a.y*this.worldSize,i);return Vse(u,l.x*this.worldSize,l.y*this.worldSize,l.z){if(l&&e.setZoom(pa.number(r,d,w)),bk(a,n)||oue({startEulerAngles:a,endEulerAngles:n,tr:e,k:w,useSlerp:a.roll!=n.roll}),s&&(e.interpolatePadding(i,t.padding,w),c=e.centerPoint.add(t.offsetAsPoint)),t.around)e.setLocationAtPoint(t.around,t.aroundPoint);else{let _=Po(e.zoom-r),A=(d>r?Math.min(2,g):Math.max(.5,g))**(1-w),T=Fm(e.worldSize,p.add(m.mult(w*A)).mult(_));e.setLocationAtPoint(e.renderWorldCopies?T.wrap():T,c)}},x=this._transformAtAnimationEnd(e,d,n,t.padding);return t.around?x.setLocationAtPoint(t.around,t.aroundPoint):x.setLocationAtPoint(f,x.centerPoint.add(t.offsetAsPoint)),{easeFunc:y,isZooming:l,elevationCenter:x.center}}handleFlyTo(e,t){let r=t.zoom!==void 0,i=e.zoom,a=e.applyConstrain(ar.convert(t.center||t.locationAtOffset),r?+t.zoom:i),n=a.center,o=a.zoom;s6(e,n);let s=e.worldSize,l=Bu(s,t.locationAtOffset),u=Bu(s,n).sub(l),c=u.mag(),h=Po(o-i),f=t.minZoom===void 0?e.minZoom:+t.minZoom,d=Math.max(f,e.minZoom),p=Math.min(d,i,o),m=e.applyConstrain(n,p).zoom,g=Po(m-i),y=(w,_,A,T)=>{e.setZoom(w===1?o:i+Wn(_));let M=w===1?n:Fm(s,l.add(u.mult(A)));e.setLocationAtPoint(e.renderWorldCopies?M.wrap():M,T)},x=this._transformAtAnimationEnd(e,o,{roll:t.roll,pitch:t.pitch,bearing:t.bearing},t.padding);return x.setLocationAtPoint(n,x.centerPoint.add(t.offsetAsPoint)),{easeFunc:y,scaleOfZoom:h,targetCenter:x.center,scaleOfMinZoom:g,pixelPathLength:c}}_transformAtAnimationEnd(e,t,r,i){let a=e.clone();return a.setZoom(t),a.setRoll(r.roll),a.setPitch(r.pitch),a.setBearing(r.bearing),a.setPadding(i),a}},hje=()=>Use||(Use=new Fn({type:new Ut(Xe.projection.type,"type")})),OC=new Sw({fill:new Tc(128,2),line:new Tc(512,0),tile:new Tc(128,32),stencil:new Tc(128,1),circle:3}),lue=class{constructor(){this._tileMeshCache={}}get name(){return"vertical-perspective"}get transitionState(){return 1}get useSubdivision(){return!0}get shaderVariantName(){return"globe"}get shaderDefine(){return"#define GLOBE"}get shaderPreludeCode(){return Ic.projectionGlobe}get vertexShaderPreludeCode(){return Ic.projectionMercator.vertexSource}get subdivisionGranularity(){return OC}get useGlobeControls(){return!0}destroy(){}_getMeshKey(e){return`${e.granularity.toString(36)}_${e.generateBorders?"b":""}${e.extendToNorthPole?"n":""}${e.extendToSouthPole?"s":""}`}getMeshFromTileID(e,t,r,i,a){let n=(a==="stencil"?OC.stencil:OC.tile).getGranularityForZoomLevel(t.z),o=t.y===0&&i,s=t.y===(1<0}get currentProjection(){return this.useGlobeRendering?this._verticalPerspectiveProjection:this._mercatorProjection}get name(){return"globe"}get useSubdivision(){return this.currentProjection.useSubdivision}get shaderVariantName(){return this.currentProjection.shaderVariantName}get shaderDefine(){return this.currentProjection.shaderDefine}get shaderPreludeCode(){return this.currentProjection.shaderPreludeCode}get vertexShaderPreludeCode(){return this.currentProjection.vertexShaderPreludeCode}get subdivisionGranularity(){return this.currentProjection.subdivisionGranularity}get useGlobeControls(){return this.transitionState>0}destroy(){this._mercatorProjection.destroy(),this._verticalPerspectiveProjection.destroy()}getMeshFromTileID(e,t,r,i,a){return this.currentProjection.getMeshFromTileID(e,t,r,i,a)}setProjection(e){this._transitionable.setValue("type",(e==null?void 0:e.type)||"mercator")}updateTransitions(e){this._transitioning=this._transitionable.transitioned(e,this._transitioning)}hasTransition(){return this._transitioning.hasTransition()||this.currentProjection.hasTransition()}recalculate(e){this.properties=this._transitioning.possiblyEvaluate(e)}};NC=Math.PI*.98;Aje=class{constructor(e){this._cachePrevious=new Map,this._cache=new Map,this._hadAnyChanges=!1,this._boundingVolumeFactory=e}swapBuffers(){if(!this._hadAnyChanges)return;let e=this._cachePrevious;this._cachePrevious=this._cache,this._cache=e,this._cache.clear(),this._hadAnyChanges=!1}getTileBoundingVolume(e,t,r,i){let a=`${e.z}_${e.x}_${e.y}_${i!=null&&i.terrain?"t":""}_${Math.round(r)}`,n=this._cache.get(a);if(n)return n;let o=this._cachePrevious.get(a);if(o)return this._cache.set(a,o),o;let s=this._boundingVolumeFactory(e,t,r,i);return this._cache.set(a,s),this._hadAnyChanges=!0,s}},UC=class dF{constructor(t,r,i,a){this.min=i,this.max=a,this.points=t,this.planes=r}static fromAabb(t,r){let i=[];for(let a=0;a<8;a++)i.push([(a>>0&1)==1?r[0]:t[0],(a>>1&1)==1?r[1]:t[1],(a>>2&1)==1?r[2]:t[2]]);return new dF(i,[[-1,0,0,r[0]],[1,0,0,-t[0]],[0,-1,0,r[1]],[0,1,0,-t[1]],[0,0,-1,r[2]],[0,0,1,-t[2]]],t,r)}static fromCenterSizeAngles(t,r,i){let a=K4([],i[0],i[1],i[2]),n=W4([],[r[0],0,0],a),o=W4([],[0,r[1],0],a),s=W4([],[0,0,r[2]],a),l=[...t],u=[...t];for(let h=0;h<8;h++)for(let f=0;f<3;f++){let d=t[f]+n[f]*((h>>0&1)==1?1:-1)+o[f]*((h>>1&1)==1?1:-1)+s[f]*((h>>2&1)==1?1:-1);l[f]=Math.min(l[f],d),u[f]=Math.max(u[f],d)}let c=[];for(let h=0;h<8;h++){let f=[...t];Xs(f,f,la([],n,(h>>0&1)==1?1:-1)),Xs(f,f,la([],o,(h>>1&1)==1?1:-1)),Xs(f,f,la([],s,(h>>2&1)==1?1:-1)),c.push(f)}return new dF(c,[[...n,-Wa(n,c[0])],[...o,-Wa(o,c[0])],[...s,-Wa(s,c[0])],[-n[0],-n[1],-n[2],-Wa(n,c[7])],[-o[0],-o[1],-o[2],-Wa(o,c[7])],[-s[0],-s[1],-s[2],-Wa(s,c[7])]],l,u)}intersectsFrustum(t){let r=!0,i=this.points.length,a=this.planes.length,n=t.planes.length,o=t.points.length;for(let s=0;s=0&&u++}if(u===0)return 0;u=0&&u++}if(u===0)return 0}return 1}intersectsPlane(t){let r=this.points.length,i=0;for(let a=0;a=0&&i++}return i===r?2:i===0?0:1}};Tje=class{constructor(){this._boundingVolumeCache=new Aje(this._computeTileBoundingVolume)}prepareNextFrame(){this._boundingVolumeCache.swapBuffers()}distanceToTile2d(e,t,r,i){let a=1<4}allowWorldCopies(){return!1}getTileBoundingVolume(e,t,r,i){return this._boundingVolumeCache.getTileBoundingVolume(e,t,r,i)}_computeTileBoundingVolume(e,t,r,i){var o,s;let a=Math.min(0,r),n=Math.max(0,r);if(i!=null&&i.terrain){let l=new Xn(e.z,t,e.z,e.x,e.y),u=i.terrain.getMinMaxElevation(l);a=(o=u.minElevation)!=null?o:a,n=Math.max((s=u.maxElevation)!=null?s:n,n)}if(a/=Lo,n/=Lo,a+=1,n+=1,e.z<=0)return UC.fromAabb([-n,-n,-n],[n,n,n]);if(e.z===1)return UC.fromAabb([e.x===0?-n:0,e.y===0?0:-n,-n],[e.x===0?0:n,e.y===0?n:0,n]);{let l=[Wf(0,0,e.x,e.y,e.z),Wf(ft,0,e.x,e.y,e.z),Wf(ft,ft,e.x,e.y,e.z),Wf(0,ft,e.x,e.y,e.z)],u=[];for(let P of l)u.push(la([],P,n));if(n!==a)for(let P of l)u.push(la([],P,a));e.y===0&&u.push([0,1,0]),e.y===(1<=(1<{let n=Ar(i.lat,-Lu,Lu),o=Ar(+a,this.minZoom+Kn(0,n),this.maxZoom);return{center:new ar(i.lng,n),zoom:o}},this.applyConstrain=(i,a)=>this._helper.applyConstrain(i,a),this._helper=r!=null?r:new IF({calcMatrices:()=>this._calcMatrices(),defaultConstrain:(i,a)=>this.defaultConstrain(i,a)},t),this._coveringTilesDetailsProvider=new Tje}clone(){let t=new due;return t.apply(this,!1),t}apply(t,r){this._helper.apply(t,r)}get projectionMatrix(){return this._projectionMatrix}get modelViewProjectionMatrix(){return this._globeViewProjMatrixF64}get inverseProjectionMatrix(){return this._globeProjMatrixInverted}get cameraPosition(){let t=wi();return t[0]=this._cameraPosition[0],t[1]=this._cameraPosition[1],t[2]=this._cameraPosition[2],t}get cameraToCenterDistance(){return this._helper.cameraToCenterDistance}getProjectionData(t){let{overscaledTileID:r,applyGlobeMatrix:i}=t,a=this._helper.getMercatorTileCoordinates(r);return{mainMatrix:this._globeViewProjMatrix32f,tileMercatorCoords:a,clippingPlane:this._cachedClippingPlane,projectionTransition:+!!i,fallbackMatrix:this._globeViewProjMatrix32f,clipAntimeridian:(r==null?void 0:r.canonical.z)===0}}_computeClippingPlane(t){let r=this.pitchInRadians,i=this.cameraToCenterDistance/t,a=Math.sin(r)*i,n=Math.cos(r)*i+1,o=1/Math.sqrt(a*a+n*n)*1,s=-a,l=n,u=Math.sqrt(s*s+l*l);s/=u,l/=u;let c=[0,s,l];X4(c,c,[0,0,0],-this.bearingInRadians),Tm(c,c,[0,0,0],-1*this.center.lat*Math.PI/180),Zd(c,c,[0,0,0],this.center.lng*Math.PI/180);let h=1/$l(c);return la(c,c,h),[...c,-o*h]}isLocationOccluded(t,r,i){let a=r==null?void 0:r.getCoverageIndex();i!=null||(i=a?r.getElevationForLngLat(t,this):0);let n=Wse(t,i);if(!this.isSurfacePointVisible(n))return!0;if(!a)return!1;let o=this._projectSurfacePointToScreen(n),s=this.cameraPosition,l=this.getRayDirectionFromPixel(o),u=Xse(s,l,n);if(u<=0)return!0;let c=this.screenTerrainPointToMercatorCoordinate(o,r);return c!=null&&Xse(s,l,Wse(c.toLngLat(),c.z))n&&(n=f),ds&&(s=d)}let c=[u.lng+o,u.lat+l,u.lng+n,u.lat+s];return this.isSurfacePointOnScreen([0,1,0])&&(c[3]=90,c[0]=-180,c[2]=180),this.isSurfacePointOnScreen([0,-1,0])&&(c[1]=-90,c[0]=-180,c[2]=180),new Ou(c)}calculateCenterFromCameraLngLatAlt(t,r,i,a){return this._helper.calculateCenterFromCameraLngLatAlt(t,r,i,a)}calculateCameraOptionsFromTo(t,r,i,a){let n=ar.convert(i),o=Pn(ar.convert(t));la(o,o,1+r/Lo);let s=Pn(n),l=la(wi(),s,1+a/Lo),u=Y4(wi(),o,s),c=$l(u);if(c=-x&&m<=x,_=y>=-x&&y<=x,A,T;if(w&&_){let P=this.center.lng*Math.PI/180,I=this.center.lat*Math.PI/180,B=c2(f,P),L=c2(m,I),z=c2(d,P),O=c2(y,I);B+L=0}isSurfacePointOnScreen(t){if(!this.isSurfacePointVisible(t))return!1;let r=Gf();return Yn(r,[...t,1],this._globeViewProjMatrixF64),r[0]/=r[3],r[1]/=r[3],r[2]/=r[3],r[0]>-1&&r[0]<1&&r[1]>-1&&r[1]<1&&r[2]>-1&&r[2]<1}unprojectScreenPoint(t){let r=this._cameraPosition,i=this.getRayDirectionFromPixel(t),a=$w(r,i);if(a){let c=wi();Xs(c,r,[i[0]*a.tMin,i[1]*a.tMin,i[2]*a.tMin]);let h=wi();return Fo(h,c),Z2(h)}let n=this._cachedClippingPlane,o=n[0]*i[0]+n[1]*i[1]+n[2]*i[2],s=-Q4(n,r)/o,l=wi();if(s>0)Xs(l,r,[i[0]*s,i[1]*s,i[2]*s]);else{let c=wi();Xs(c,r,[i[0]*2,i[1]*2,i[2]*2]);let h=Q4(this._cachedClippingPlane,c);Cc(l,c,[this._cachedClippingPlane[0]*h,this._cachedClippingPlane[1]*h,this._cachedClippingPlane[2]*h])}let u=_je(n);return Z2(xje(u.center,u.radius,l))}getProjectionDataForCustomLayer(t=!0){let r=this.getProjectionData({overscaledTileID:new Xn(0,0,0,0,0),applyGlobeMatrix:t});return r.tileMercatorCoords=[0,0,1,1],r}getFastPathSimpleProjectionMatrix(t){}};Kse=class mue{get pixelsToClipSpaceMatrix(){return this._helper.pixelsToClipSpaceMatrix}get clipSpaceToPixelsMatrix(){return this._helper.clipSpaceToPixelsMatrix}get pixelsToGLUnits(){return this._helper.pixelsToGLUnits}get centerOffset(){return this._helper.centerOffset}get size(){return this._helper.size}get rotationMatrix(){return this._helper.rotationMatrix}get centerPoint(){return this._helper.centerPoint}get pixelsPerMeter(){return this._helper.pixelsPerMeter}setMinZoom(t){this._helper.setMinZoom(t)}setMaxZoom(t){this._helper.setMaxZoom(t)}setMinPitch(t){this._helper.setMinPitch(t)}setMaxPitch(t){this._helper.setMaxPitch(t)}setRenderWorldCopies(t){this._helper.setRenderWorldCopies(t)}setBearing(t){this._helper.setBearing(t)}setPitch(t){this._helper.setPitch(t)}setRoll(t){this._helper.setRoll(t)}setFov(t){this._helper.setFov(t)}setZoom(t){this._helper.setZoom(t)}setCenter(t){this._helper.setCenter(t)}setElevation(t){this._helper.setElevation(t)}setMinElevationForCurrentTile(t){this._helper.setMinElevationForCurrentTile(t)}setPadding(t){this._helper.setPadding(t)}interpolatePadding(t,r,i){this._helper.interpolatePadding(t,r,i)}isPaddingEqual(t){return this._helper.isPaddingEqual(t)}resize(t,r,i=!0){this._helper.resize(t,r,i)}getMaxBounds(){return this._helper.getMaxBounds()}setMaxBounds(t){this._helper.setMaxBounds(t)}setConstrainOverride(t){this._helper.setConstrainOverride(t)}overrideNearFarZ(t,r){this._helper.overrideNearFarZ(t,r)}clearNearFarZOverride(){this._helper.clearNearFarZOverride()}getCameraQueryGeometry(t){return this._helper.getCameraQueryGeometry(this.getCameraPoint(),t)}get tileSize(){return this._helper.tileSize}get tileZoom(){return this._helper.tileZoom}get scale(){return this._helper.scale}get worldSize(){return this._helper.worldSize}get width(){return this._helper.width}get height(){return this._helper.height}get lngRange(){return this._helper.lngRange}get latRange(){return this._helper.latRange}get minZoom(){return this._helper.minZoom}get maxZoom(){return this._helper.maxZoom}get zoom(){return this._helper.zoom}get center(){return this._helper.center}get minPitch(){return this._helper.minPitch}get maxPitch(){return this._helper.maxPitch}get pitch(){return this._helper.pitch}get pitchInRadians(){return this._helper.pitchInRadians}get roll(){return this._helper.roll}get rollInRadians(){return this._helper.rollInRadians}get bearing(){return this._helper.bearing}get bearingInRadians(){return this._helper.bearingInRadians}get fov(){return this._helper.fov}get fovInRadians(){return this._helper.fovInRadians}get elevation(){return this._helper.elevation}get minElevationForCurrentTile(){return this._helper.minElevationForCurrentTile}get padding(){return this._helper.padding}get unmodified(){return this._helper.unmodified}get renderWorldCopies(){return this._helper.renderWorldCopies}get cameraToCenterDistance(){return this._helper.cameraToCenterDistance}get constrainOverride(){return this._helper.constrainOverride}get nearZ(){return this._helper.nearZ}get farZ(){return this._helper.farZ}get autoCalculateNearFarZ(){return this._helper.autoCalculateNearFarZ}get isGlobeRendering(){return this._globeness>0}setTransitionState(t){this._globeness=t,this._calcMatrices(),this._verticalPerspectiveTransform.getCoveringTilesDetailsProvider().prepareNextFrame(),this._mercatorTransform.getCoveringTilesDetailsProvider().prepareNextFrame()}get currentTransform(){return this.isGlobeRendering?this._verticalPerspectiveTransform:this._mercatorTransform}constructor(t){this._globeness=1,this.defaultConstrain=(r,i)=>this.currentTransform.defaultConstrain(r,i),this.applyConstrain=(r,i)=>this._helper.applyConstrain(r,i),this._helper=new IF({calcMatrices:()=>this._calcMatrices(),defaultConstrain:(r,i)=>this.defaultConstrain(r,i)},t),this._globeness=1,this._mercatorTransform=new l6(void 0,this._helper),this._verticalPerspectiveTransform=new fue(void 0,this._helper)}clone(){let t=new mue;return t._globeness=this._globeness,t.apply(this,!1),t}apply(t,r){this._helper.apply(t,r)}get projectionMatrix(){return this.currentTransform.projectionMatrix}get modelViewProjectionMatrix(){return this.currentTransform.modelViewProjectionMatrix}get inverseProjectionMatrix(){return this.currentTransform.inverseProjectionMatrix}get cameraPosition(){return this.currentTransform.cameraPosition}getProjectionData(t){let r=this._mercatorTransform.getProjectionData(t),i=this._verticalPerspectiveTransform.getProjectionData(t);return{mainMatrix:this.isGlobeRendering?i.mainMatrix:r.mainMatrix,clippingPlane:i.clippingPlane,tileMercatorCoords:i.tileMercatorCoords,projectionTransition:t.applyGlobeMatrix?this._globeness:0,fallbackMatrix:r.fallbackMatrix,clipAntimeridian:i.clipAntimeridian}}isLocationOccluded(t,r,i){return this.currentTransform.isLocationOccluded(t,r,i)}transformLightDirection(t){return this.currentTransform.transformLightDirection(t)}getPixelScale(){return Yd(this._mercatorTransform.getPixelScale(),this._verticalPerspectiveTransform.getPixelScale(),this._globeness)}getCircleRadiusCorrection(){return Yd(this._mercatorTransform.getCircleRadiusCorrection(),this._verticalPerspectiveTransform.getCircleRadiusCorrection(),this._globeness)}getPitchedTextCorrection(t,r,i){let a=this._mercatorTransform.getPitchedTextCorrection(t,r,i),n=this._verticalPerspectiveTransform.getPitchedTextCorrection(t,r,i);return Yd(a,n,this._globeness)}projectTileCoordinates(t,r,i,a){return this.currentTransform.projectTileCoordinates(t,r,i,a)}_calcMatrices(){this._helper._width&&this._helper._height&&(this._verticalPerspectiveTransform._calcMatrices(),this._mercatorTransform._calcMatrices(this.autoCalculateNearFarZ&&!this.isGlobeRendering))}calculateFogMatrix(t){return this.currentTransform.calculateFogMatrix(t)}getVisibleUnwrappedCoordinates(t){return this.currentTransform.getVisibleUnwrappedCoordinates(t)}getCameraFrustum(){return this.currentTransform.getCameraFrustum()}getClippingPlane(){return this.currentTransform.getClippingPlane()}getCoveringTilesDetailsProvider(){return this.currentTransform.getCoveringTilesDetailsProvider()}recalculateZoomAndCenter(t){this.currentTransform.recalculateZoomAndCenter(t)}maxPitchScaleFactor(){return this._mercatorTransform.maxPitchScaleFactor()}getCameraPoint(){return this._helper.getCameraPoint()}getCameraAltitude(){return this.currentTransform.getCameraAltitude()}getCameraLngLat(){return this.currentTransform.getCameraLngLat()}populateCache(t){this._mercatorTransform.populateCache(t),this._verticalPerspectiveTransform.populateCache(t)}getBounds(){return this.currentTransform.getBounds()}calculateCenterFromCameraLngLatAlt(t,r,i,a){return this._helper.calculateCenterFromCameraLngLatAlt(t,r,i,a)}calculateCameraOptionsFromTo(t,r,i,a){return this.currentTransform.calculateCameraOptionsFromTo(t,r,i,a)}setLocationAtPoint(t,r,i){this.currentTransform.setLocationAtPoint(t,r,i)}locationToScreenPoint(t,r){return this.currentTransform.locationToScreenPoint(t,r)}screenPointToMercatorCoordinate(t,r){return this.currentTransform.screenPointToMercatorCoordinate(t,r)}screenTerrainPointToMercatorCoordinate(t,r){return this.currentTransform.screenTerrainPointToMercatorCoordinate(t,r)}screenPointToLocation(t,r){return this.currentTransform.screenPointToLocation(t,r)}screenPointToLocationAtElevation(t,r){return this.currentTransform.screenPointToLocationAtElevation(t,r)}isPointOnMapSurface(t,r){return this.currentTransform.isPointOnMapSurface(t,r)}getRayDirectionFromPixel(t){return this._verticalPerspectiveTransform.getRayDirectionFromPixel(t)}getProjectionDataForCustomLayer(t=!0){let r=this._mercatorTransform.getProjectionDataForCustomLayer(t);if(!this.isGlobeRendering)return r;let i=this._verticalPerspectiveTransform.getProjectionDataForCustomLayer(t);return i.fallbackMatrix=r.mainMatrix,i.projectionTransition=this._globeness,i}getFastPathSimpleProjectionMatrix(t){return this.currentTransform.getFastPathSimpleProjectionMatrix(t)}},vue=class Sh{get useGlobeControls(){return!0}handlePanInertia(t,r){let i=wje(t,r);return Math.abs(i.lng-r.center.lng)>180&&(i.lng=r.center.lng+179.5*Math.sign(i.lng-r.center.lng)),{easingCenter:i,easingOffset:new Be(0,0)}}handleMapControlsRollPitchBearingZoom(t,r){let i=t.around,a=r.screenPointToLocation(i);t.bearingDelta&&r.setBearing(r.bearing+t.bearingDelta),t.pitchDelta&&r.setPitch(r.pitch+t.pitchDelta),t.rollDelta&&r.setRoll(r.roll+t.rollDelta);let n=r.zoom;t.zoomDelta&&r.setZoom(r.zoom+t.zoomDelta);let o=r.zoom-n;if(o===0)return;let s=gs(r.center.lng,a.lng),l=s/(Math.abs(s/180)+1),u=gs(r.center.lat,a.lat),c=r.getRayDirectionFromPixel(i),h=r.cameraPosition,f=Wa(h,c)*-1,d=wi();Xs(d,h,[c[0]*f,c[1]*f,c[2]*f]);let p=$l(d),m=p-1,g=Math.exp(-Math.max(m-.3,0)*.5),y=h2(p,.95,.999,0,1),x=Om(r.worldSize,r.center.lat)/Math.min(r.width,r.height),w=h2(x,.9,.5,1,.25),_=Math.min(g,Yd(1,w,y)),A=(1-Po(-o))*_,T=r.center.lat,M=r.zoom,S=new ar(r.center.lng+l*A,Ar(r.center.lat+u*A,-Lu,Lu));r.setLocationAtPoint(a,i);let k=r.center,P=h2(Math.abs(s),45,85,0,1),I=Math.max(P,y)**.25,B=gs(k.lng,S.lng),L=gs(k.lat,S.lat);r.setCenter(new ar(k.lng+B*I,k.lat+L*I).wrap()),r.setZoom(M+Kn(T,r.center.lat))}handleMapControlsPan(t,r,i){t.panDelta&&gje(r,i,r.isPointOnMapSurface(t.around)?t.around:r.centerPoint,t.panDelta)}cameraForBoxAndBearing(t,r,i,a,n){let o=sue(t,r,i,a,n);if(!o)return;let s=r.left/n.width*2-1,l=(n.width-r.right)/n.width*2-1,u=r.top/n.height*-2+1,c=(n.height-r.bottom)/n.height*-2+1,h=gs(i.getWest(),i.getEast())<0,f=h?i.getEast():i.getWest(),d=h?i.getWest():i.getEast(),p=Math.max(i.getNorth(),i.getSouth()),m=Math.min(i.getNorth(),i.getSouth()),g=f+gs(f,d)*.5,y=p+gs(p,m)*.5,x=n.clone();x.setCenter(o.center),x.setBearing(o.bearing),x.setPitch(0),x.setRoll(0),x.setZoom(o.zoom);let w=x.modelViewProjectionMatrix,_=[Pn(i.getNorthWest()),Pn(i.getNorthEast()),Pn(i.getSouthWest()),Pn(i.getSouthEast()),Pn(new ar(d,y)),Pn(new ar(f,y)),Pn(new ar(g,p)),Pn(new ar(g,m))],A=Pn(o.center),T=1/0;for(let M of _)s<0&&(T=Sh.getLesserNonNegativeNonNull(T,Sh.solveVectorScale(M,A,w,"x",s))),l>0&&(T=Sh.getLesserNonNegativeNonNull(T,Sh.solveVectorScale(M,A,w,"x",l))),u>0&&(T=Sh.getLesserNonNegativeNonNull(T,Sh.solveVectorScale(M,A,w,"y",u))),c<0&&(T=Sh.getLesserNonNegativeNonNull(T,Sh.solveVectorScale(M,A,w,"y",c)));if(!Number.isFinite(T)||T===0){nue();return}return o.zoom=Math.min(x.zoom+Wn(T),t.maxZoom),o}handleJumpToCenterZoom(t,r){let i=t.center.lat,a=t.applyConstrain(r.center?ar.convert(r.center):t.center,t.zoom).center;t.setCenter(a.wrap());let n=r.zoom===void 0?t.zoom+Kn(i,a.lat):+r.zoom;t.zoom!==n&&t.setZoom(n)}handleEaseTo(t,r){let i=t.zoom,a=t.center,n=t.padding,o={roll:t.roll,pitch:t.pitch,bearing:t.bearing},s={roll:r.roll===void 0?t.roll:r.roll,pitch:r.pitch===void 0?t.pitch:r.pitch,bearing:r.bearing===void 0?t.bearing:r.bearing},l=r.zoom!==void 0,u=!t.isPaddingEqual(r.padding),c=!1,h=r.center?ar.convert(r.center):a,f=t.applyConstrain(h,i).center;s6(t,f);let d=t.clone();d.setCenter(f),d.setZoom(l?+r.zoom:i+Kn(a.lat,h.lat)),d.setBearing(r.bearing);let p=new Be(Ar(t.centerPoint.x+r.offsetAsPoint.x,0,t.width),Ar(t.centerPoint.y+r.offsetAsPoint.y,0,t.height));d.setLocationAtPoint(f,p);let m=(r.offset&&r.offsetAsPoint.mag())>0?d.center:f,g=l?+r.zoom:i+Kn(a.lat,m.lat),y=i+Kn(a.lat,0),x=g+Kn(m.lat,0),w=gs(a.lng,m.lng),_=gs(a.lat,m.lat),A=Po(x-y);return c=g!==i,{easeFunc:T=>{if(bk(o,s)||oue({startEulerAngles:o,endEulerAngles:s,tr:t,k:T,useSlerp:o.roll!=s.roll}),u&&t.interpolatePadding(n,r.padding,T),r.around)$r("Easing around a point is not supported under globe projection."),t.setLocationAtPoint(r.around,r.aroundPoint);else{let M=T*(x>y?Math.min(2,A):Math.max(.5,A))**(1-T),S=$se(a,w,_,M);t.setCenter(S.wrap())}if(c){let M=pa.number(y,x,T)+Kn(0,t.center.lat);t.setZoom(M)}},isZooming:c,elevationCenter:m}}handleFlyTo(t,r){let i=r.zoom!==void 0,a=t.center,n=t.zoom,o=t.padding,s=!t.isPaddingEqual(r.padding),l=t.applyConstrain(ar.convert(r.center||r.locationAtOffset),n).center,u=i?+r.zoom:t.zoom+Kn(t.center.lat,l.lat),c=t.clone();c.setCenter(l),c.setZoom(u),c.setBearing(r.bearing);let h=new Be(Ar(t.centerPoint.x+r.offsetAsPoint.x,0,t.width),Ar(t.centerPoint.y+r.offsetAsPoint.y,0,t.height));c.setLocationAtPoint(l,h);let f=c.center;s6(t,f);let d=fje(t,a,f),p=n+Kn(a.lat,0),m=u+Kn(f.lat,0),g=Po(m-p),y=typeof r.minZoom=="number"?+r.minZoom:t.minZoom,x=Math.max(y,t.minZoom)+Kn(f.lat,0),w=Math.min(x,p,m)+Kn(0,f.lat),_=t.applyConstrain(f,w).zoom+Kn(f.lat,0),A=Po(_-p),T=gs(a.lng,f.lng),M=gs(a.lat,f.lat);return{easeFunc:(S,k,P,I)=>{let B=$se(a,T,M,P);s&&t.interpolatePadding(o,r.padding,S);let L=S===1?f:B;t.setCenter(L.wrap());let z=p+Wn(k);t.setZoom(S===1?u:z+Kn(0,L.lat))},scaleOfZoom:g,targetCenter:f,scaleOfMinZoom:A,pixelPathLength:d}}static solveVectorScale(t,r,i,a,n){let o=n,s=a==="x"?[i[0],i[4],i[8],i[12]]:[i[1],i[5],i[9],i[13]],l=[i[3],i[7],i[11],i[15]],u=t[0]*s[0]+t[1]*s[1]+t[2]*s[2],c=t[0]*l[0]+t[1]*l[1]+t[2]*l[2],h=r[0]*s[0]+r[1]*s[1]+r[2]*s[2],f=r[0]*l[0]+r[1]*l[1]+r[2]*l[2],d=(h+s[3]-o*f-o*l[3])/(h-u-o*f+o*c);return h+o*c===u+o*f||l[3]*(u-h)+s[3]*(f-c)+u*f===h*c?null:d}static getLesserNonNegativeNonNull(t,r){return r!==null&&r>=0&&r{for(let n in this.tileManagers){let o=this.tileManagers[n].getSource().type;(o==="vector"||o==="geojson")&&this.tileManagers[n].reload()}},this.map=e,this.dispatcher=new Sle(AF(),e._getMapId()).setEventedParent(this),this.dispatcher.registerMessageHandler("GG",(n,o)=>this.getGlyphs(n,o)),this.dispatcher.registerMessageHandler("GI",(n,o)=>this.getImages(n,o)),this.dispatcher.registerMessageHandler("GDA",(n,o)=>this.getDashes(n,o)),this.imageManager=new fUe,this.imageManager.setEventedParent(this),this.imageManager.setMissingImageResolver(e._missingStyleImageResolver),this.patternAtlas=new dUe(this.imageManager);let r=((i=e._container)==null?void 0:i.lang)||typeof document<"u"&&((a=document.documentElement)==null?void 0:a.lang)||void 0;this.glyphManager=new wUe(e._requestManager,t.localIdeographFontFamily,r),this.lineAtlas=new SUe(256,512),this.crossTileSymbolIndex=new Jle,this._setInitialValues(),this._resetUpdates(),this.dispatcher.broadcast("SR",aw()),Y2().on(nF,this._rtlPluginLoaded),this.on("data",n=>{if(n.dataType!=="source"||n.sourceDataType!=="metadata")return;let o=this.tileManagers[n.sourceId];if(!o)return;let s=o.getSource();if(s!=null&&s.vectorLayerIds)for(let l in this._layers){let u=this._layers[l];u.source===s.id&&this._validateLayer(u)}})}_setInitialValues(){var e;this._layers={},this._order=[],this.tileManagers={},this.zoomHistory=new I4,this._imagesListDirty=!1,this._globalState={},this._serializedLayers={},this.stylesheet=null,this.light=null,this.sky=null,this.projection&&(this.projection.destroy(),delete this.projection),this._loaded=!1,this._changed=!1,this._updatedLayers={},this._updatedSources={},this._changedImages={},this._glyphsDidChange=!1,this._updatedPaintProps={},this._layerOrderChanged=!1,this._symbolPlacementTriggered=!1,this._placedProjectionTransition=void 0,this.crossTileSymbolIndex=new(((e=this.crossTileSymbolIndex)==null?void 0:e.constructor)||Object),this.pauseablePlacement=void 0,this.placement=void 0,this.z=0}setGlobalStateProperty(e,t){var i,a,n;this._checkLoaded();let r=t===null?(n=(a=(i=this.stylesheet.state)==null?void 0:i[e])==null?void 0:a.default)!=null?n:null:t;return this._setGlobalStateValues({[e]:r}),this}getGlobalState(){return this._globalState}setGlobalState(e){this._checkLoaded();let t={};for(let r in e)t[r]=e[r].default;this._setGlobalStateValues(t)}_setGlobalStateValues(e){let t=[];for(let i in e)Fu(e[i],this._globalState[i])||t.push(i);if(t.length===0)return;let r=nr({},this._globalState);for(let i of t)this._globalState[i]=e[i];this._applyGlobalStateChanges(t,r)}_applyGlobalStateChanges(e,t){var n,o;let r=new Set,i={};for(let s of e)i[s]=this._globalState[s];for(let s in this._layers){let l=this._layers[s];l.retainPriorGlobalState(e,t);let u=l.getLayoutAffectingGlobalStateRefs(),c=l.getPaintAffectingGlobalStateRefs(),h=l.getVisibilityAffectingGlobalStateRefs();for(let f of e){if(u.has(f)&&r.add(l.source),c.has(f))for(let{name:d,value:p}of c.get(f))this._updatePaintProperty(l,d,p,{validate:!1});h!=null&&h.has(f)&&(l.recalculateVisibility(),this._updateLayer(l))}}let a={now:ki(),transition:this.getTransition()};(n=this.light)==null||n.applyGlobalStateChange(e,t,a),(o=this.sky)==null||o.applyGlobalStateChange(e,t,a),this.dispatcher.broadcast("UGS",i);for(let s in this.tileManagers)r.has(s)&&(this._reloadSource(s),this._changed=!0)}loadURL(i){return Kt(this,arguments,function*(e,t={},r){this.fire(new Yl("dataloading")),t.validate=typeof t.validate!="boolean"||t.validate,this._loadStyleRequest=new AbortController;let a=this._loadStyleRequest;try{let n=yield this.map._requestManager.transformRequest(e,"Style");iw(a.signal);let o=yield d2(n,a);this._loadStyleRequest===a&&(this._loadStyleRequest=null),this._load(o.data,t,r)}catch(n){this._loadStyleRequest===a&&(this._loadStyleRequest=null),n&&!a.signal.aborted&&this.fire(new sr(Hn(n)))}})}loadJSON(e,t={},r){this.fire(new Yl("dataloading")),this._frameRequest=new AbortController,ws.frameAsync(this._frameRequest,this.map._ownerWindow).then(()=>{this._frameRequest=null,t.validate=t.validate!==!1,this._load(e,t,r)}).catch(()=>{})}loadEmpty(){this.fire(new Yl("dataloading")),this._load(Dje,{validate:!1})}_load(e,t,r){var a,n,o;let i=t.transformStyle?t.transformStyle(r,e):e;if(!(t.validate&&Hk(this,i))){i=nr({},i),this._loaded=!0,this.stylesheet=i;for(let s in i.sources)this.addSource(s,i.sources[s],{validate:!1});i.sprite?this._loadSprite(i.sprite):this.imageManager.setLoaded(!0),this.glyphManager.setURL(i.glyphs),this.glyphManager.setFontFaces(i["font-faces"]),this._createLayers(),this.light=new TUe((a=this.stylesheet.light)!=null?a:{},this._globalState),this._setProjectionInternal(((n=this.stylesheet.projection)==null?void 0:n.type)||"mercator"),this.sky=new DUe(this.stylesheet.sky,this._globalState),this.sky.setEventedParent(this),this.map.setTerrain((o=this.stylesheet.terrain)!=null?o:null,{validate:!1}),this.fire(new Yl("data")),this.fire(new tF)}}_createLayers(){var t,r,i;let e=lse(this.stylesheet.layers);this.setGlobalState((t=this.stylesheet.state)!=null?t:null),this.dispatcher.broadcast("SL",e),this._order=e.map(a=>a.id),this._layers={},this._serializedLayers=null;for(let a of e){let n=zw(a,this._globalState);if(n.setEventedParent(this,{layer:{id:a.id}}),this._layers[a.id]=n,ww(n)&&this.tileManagers[n.source]){let o=(i=(r=a.paint)==null?void 0:r["raster-fade-duration"])!=null?i:n.paint.get("raster-fade-duration");this.tileManagers[n.source].setRasterFadeDuration(o)}}}_loadSprite(e,t=!1,r=void 0){return Kt(this,null,function*(){this.imageManager.setLoaded(!1);let i=new AbortController;this._spriteRequest=i;let a;try{let n=yield cUe(e,this.map._requestManager,this.map.getPixelRatio(),i);if(!n)return;for(let o in n){let{loaded:s,removed:l}=this.imageManager.setSpriteImages(o,n[o]);this._markImagesChanged(l),t&&this._markImagesChanged(s)}}catch(n){a=n,i.signal.aborted||this.fire(new sr(a))}finally{this._spriteRequest=null,this.imageManager.setLoaded(!0),t&&(this._changed=!0),this.dispatcher.broadcast("SI",this.imageManager.listImages()),this.fire(new Yl("data")),r==null||r(a)}})}_unloadSprite(){this._markImagesChanged(this.imageManager.removeAllSpriteImages()),this._imagesListDirty=!0,this._changed=!0,this.fire(new Yl("data"))}_validateLayer(e){let t=this.tileManagers[e.source];if(!t)return;let r=e.sourceLayer;if(!r)return;let i=t.getSource();(i.type==="geojson"||i.vectorLayerIds&&!i.vectorLayerIds.includes(r))&&this.fire(new sr(Error(`Source layer "${r}" does not exist on source "${i.id}" as specified by style layer "${e.id}".`)))}loaded(){if(!this._loaded||Object.keys(this._updatedSources).length)return!1;for(let e in this.tileManagers)if(!this.tileManagers[e].loaded())return!1;return this.imageManager.isLoaded()}_serializeByIds(e,t=!1){let r=this._serializedAllLayers();if(!e||e.length===0)return Object.values(t?Zo(r):r);let i=[];for(let a of e)if(r[a]){let n=t?Zo(r[a]):r[a];i.push(n)}return i}_serializedAllLayers(){let e=this._serializedLayers;if(e)return e;e=this._serializedLayers={};let t=Object.keys(this._layers);for(let r of t){let i=this._layers[r];i.type!=="custom"&&(e[r]=i.serialize())}return e}hasTransitions(){var e,t,r;if((e=this.light)!=null&&e.hasTransition()||(t=this.sky)!=null&&t.hasTransition()||(r=this.projection)!=null&&r.hasTransition())return!0;for(let i in this.tileManagers)if(this.tileManagers[i].hasTransition())return!0;for(let i in this._layers)if(this._layers[i].hasTransition())return!0;return!1}_checkLoaded(){if(!this._loaded)throw Error("Style is not done loading.")}update(e){if(!this._loaded)return;let t=this._changed;if(t){this._imagesListDirty&&(this._imagesListDirty=(this.dispatcher.broadcast("SI",this.imageManager.listImages()),!1));let a=Object.keys(this._updatedLayers),n=Object.keys(this._removedLayers);(a.length||n.length)&&this._updateWorkerLayers(a,n);for(let o in this._updatedSources){let s=this._updatedSources[o];if(s==="reload")this._reloadSource(o);else if(s==="clear")this._clearSource(o);else throw Error(`Invalid action ${s}`)}this._updateTilesForChangedImages(),this._updateTilesForChangedGlyphs();for(let o in this._updatedPaintProps)this._layers[o].updateTransitions(e);this._resetUpdates()}let r={};for(let a in this.tileManagers){let n=this.tileManagers[a];r[a]=n.used,n.used=!1}let i=this.imageManager.listImages();for(let a of this._order){let n=this._layers[a];n.recalculate(e,i),!n.isHidden(e.zoom)&&n.source&&(this.tileManagers[n.source].used=!0)}for(let a in r){let n=this.tileManagers[a];!!r[a]!=!!n.used&&n.fire(new ca("data",{sourceDataType:"visibility",sourceId:a}))}this.light.recalculate(e),this.sky.recalculate(e),this.projection.recalculate(e),this.z=e.zoom,t&&this.fire(new Yl("data"))}_updateTilesForChangedImages(){let e=Object.keys(this._changedImages);if(e.length){for(let t in this.tileManagers)this.tileManagers[t].reloadTilesForDependencies(["icons","patterns"],e);this._changedImages={}}}_updateTilesForChangedGlyphs(){if(this._glyphsDidChange){for(let e in this.tileManagers)this.tileManagers[e].reloadTilesForDependencies(["glyphs"],[""]);this._glyphsDidChange=!1}}_updateWorkerLayers(e,t){this.dispatcher.broadcast("UL",{layers:this._serializeByIds(e,!1),removedIds:t})}_resetUpdates(){this._changed=!1,this._updatedLayers={},this._removedLayers={},this._updatedSources={},this._updatedPaintProps={},this._changedImages={},this._glyphsDidChange=!1}setState(e,t={}){var n;this._checkLoaded();let r=this.serialize();if(e=t.transformStyle?t.transformStyle(r,e):e,((n=t.validate)!=null?n:!0)&&Hk(this,e))return!1;e=Zo(e),e.layers=lse(e.layers);let i=lUe(r,e),a=this._getOperationsToPerform(i);if(a.unimplemented.length>0)throw Error(`Unimplemented: ${a.unimplemented.join(", ")}.`);if(a.operations.length===0)return!1;for(let o of a.operations)o();return this.stylesheet=e,this._serializedLayers=null,this.fire(new tF({style:this})),!0}_getOperationsToPerform(e){let t=[],r=[];for(let i of e)switch(i.command){case"setCenter":case"setZoom":case"setBearing":case"setPitch":case"setRoll":continue;case"addLayer":{let[a,n]=i.args;t.push(()=>this.addLayer(a,n));break}case"removeLayer":{let[a]=i.args;t.push(()=>this.removeLayer(a));break}case"setPaintProperty":{let[a,n,o]=i.args;t.push(()=>this.setPaintProperty(a,n,o));break}case"setLayoutProperty":{let[a,n,o]=i.args;t.push(()=>this.setLayoutProperty(a,n,o));break}case"setFilter":{let[a,n]=i.args;t.push(()=>this.setFilter(a,n));break}case"addSource":{let[a,n]=i.args;t.push(()=>this.addSource(a,n));break}case"removeSource":{let[a]=i.args;t.push(()=>this.removeSource(a));break}case"setLayerZoomRange":{let[a,n,o]=i.args;t.push(()=>this.setLayerZoomRange(a,n,o));break}case"setLight":{let[a]=i.args;t.push(()=>this.setLight(a));break}case"setGeoJSONSourceData":{let[a,n]=i.args;t.push(()=>this.setGeoJSONSourceData(a,n));break}case"setGlyphs":{let[a]=i.args;t.push(()=>this.setGlyphs(a));break}case"setFontFaces":{let[a]=i.args;t.push(()=>this.setFontFaces(a));break}case"setSprite":{let[a]=i.args;t.push(()=>this.setSprite(a));break}case"setTerrain":{let[a]=i.args;t.push(()=>this.map.setTerrain(a));break}case"setSky":{let[a]=i.args;t.push(()=>this.setSky(a));break}case"setProjection":{let[a]=i.args;t.push(()=>this.setProjection(a));break}case"setGlobalState":{let[a]=i.args;t.push(()=>this.setGlobalState(a));break}case"setTransition":t.push(()=>{});break;default:r.push(i.command)}return{operations:t,unimplemented:r}}addImage(e,t){if(this.getImage(e)){this.fire(new sr(Error(`An image named "${e}" already exists.`)));return}this.imageManager.addImage(e,t),this._afterImageUpdated(e)}updateImage(e,t){this.imageManager.updateImage(e,t)}getImage(e){return this.imageManager.getImage(e)}setMissingImageResolver(e){this.imageManager.setMissingImageResolver(e)}removeImage(e){if(!this.getImage(e)){this.fire(new sr(Error(`An image named "${e}" does not exist.`)));return}this.imageManager.removeImage(e),this._afterImageUpdated(e)}_markImagesChanged(e){for(let t of e)this._changedImages[t]=!0}_afterImageUpdated(e){this._changedImages[e]=!0,this._imagesListDirty=!0,this._changed=!0,this.fire(new Yl("data"))}listImages(){return this._checkLoaded(),this.imageManager.listImages()}addSource(e,t,r={}){var a;if(this._checkLoaded(),this.tileManagers[e]!==void 0)throw Error(`Source "${e}" already exists.`);if(!t.type)throw Error(`The type property must be defined, but only the following properties were given: ${Object.keys(t).join(", ")}.`);if($k.has(t.type)&&this._validate(Wo.source,`sources.${e}`,t,null,r))return;(a=this.map)!=null&&a._collectResourceTiming&&(t.collectResourceTiming=!0);let i=this.tileManagers[e]=new sF(e,t,this.dispatcher);i.style=this,i.setEventedParent(this,()=>({isSourceLoaded:i.loaded(),source:i.serialize(),sourceId:e})),i.onAdd(this.map),this._changed=!0}removeSource(e){if(this._checkLoaded(),this.tileManagers[e]===void 0)throw Error(`There is no source with this ID=${e}`);for(let r in this._layers)if(this._layers[r].source===e)return this.fire(new sr(Error(`Source "${e}" cannot be removed while layer "${r}" is using it.`)));let t=this.tileManagers[e];delete this.tileManagers[e],delete this._updatedSources[e],t.fire(new ca("data",{sourceDataType:"metadata",sourceId:e})),t.setEventedParent(null),t.onRemove(this.map),this._changed=!0}setGeoJSONSourceData(e,t){if(this._checkLoaded(),this.tileManagers[e]===void 0)throw Error(`There is no source with this ID=${e}`);let r=this.tileManagers[e].getSource();if(r.type!=="geojson")throw Error(`geojsonSource.type is ${r.type}, which is !== 'geojson`);r.setData(t),this._changed=!0}getSource(e){var t;return(t=this.tileManagers[e])==null?void 0:t.getSource()}addLayer(e,t,r={}){this._checkLoaded();let i=e.id;if(this.getLayer(i)){this.fire(new sr(Error(`Layer "${i}" already exists on this map.`)));return}let a;if(e.type==="custom"){if(_w(this,Doe(e)))return;a=zw(e,this._globalState)}else{if("source"in e&&typeof e.source=="object"&&(this.addSource(i,e.source),e=Zo(e),e=tr(e,{source:i})),this._validate(Wo.layer,`layers.${i}`,e,{arrayIndex:-1},r))return;a=zw(e,this._globalState),this._validateLayer(a),a.setEventedParent(this,{layer:{id:i}})}let n=t?this._order.indexOf(t):this._order.length;if(t&&n===-1){this.fire(new sr(Error(`Cannot add layer "${i}" before non-existing layer "${t}".`)));return}if(this._order.splice(n,0,i),this._layerOrderChanged=!0,this._layers[i]=a,this._removedLayers[i]&&a.source&&a.type!=="custom"){let o=this._removedLayers[i];delete this._removedLayers[i],o.type===a.type?(this._updatedSources[a.source]="reload",this.tileManagers[a.source].pause()):this._updatedSources[a.source]="clear"}this._updateLayer(a),a.onAdd&&a.onAdd(this.map)}moveLayer(e,t){if(this._checkLoaded(),this._changed=!0,!this._layers[e]){this.fire(new sr(Error(`The layer '${e}' does not exist in the map's style and cannot be moved.`)));return}if(e===t)return;if(t&&!this._order.includes(t)){this.fire(new sr(Error(`Cannot move layer "${e}" before non-existing layer "${t}".`)));return}let r=this._order.indexOf(e);this._order.splice(r,1);let i=t?this._order.indexOf(t):this._order.length;this._order.splice(i,0,e),this._layerOrderChanged=!0}removeLayer(e){var i;this._checkLoaded();let t=this._layers[e];if(!t){this.fire(new sr(Error(`Cannot remove non-existing layer "${e}".`)));return}t.setEventedParent(null);let r=this._order.indexOf(e);this._order.splice(r,1),this._layerOrderChanged=!0,this._changed=!0,this._removedLayers[e]=t,delete this._layers[e],this._serializedLayers&&delete this._serializedLayers[e],delete this._updatedLayers[e],delete this._updatedPaintProps[e],t.type==="symbol"&&t.source&&((i=this.tileManagers[t.source])==null||i.resetMaxContentElevation()),t.onRemove&&t.onRemove(this.map)}getLayer(e){return this._layers[e]}getLayersOrder(){return[...this._order]}hasLayer(e){return e in this._layers}setLayerZoomRange(e,t,r){this._checkLoaded();let i=this.getLayer(e);if(!i){this.fire(new sr(Error(`Cannot set the zoom range of non-existing layer "${e}".`)));return}(i.minzoom!==t||i.maxzoom!==r)&&(t!=null&&(i.minzoom=t),r!=null&&(i.maxzoom=r),this._updateLayer(i))}setFilter(e,t,r={}){this._checkLoaded();let i=this.getLayer(e);if(!i){this.fire(new sr(Error(`Cannot filter non-existing layer "${e}".`)));return}if(!Fu(i.filter,t)){if(t==null){i.setFilter(void 0),this._updateLayer(i);return}this._validate(Wo.filter,`layers.${i.id}.filter`,t,null,r)||(i.setFilter(Zo(t)),this._updateLayer(i))}}getFilter(e){return Zo(this.getLayer(e).filter)}setLayoutProperty(e,t,r,i={}){this._checkLoaded();let a=this.getLayer(e);if(!a){this.fire(new sr(Error(`Cannot style non-existing layer "${e}".`)));return}Fu(a.getLayoutProperty(t),r)||(a.setLayoutProperty(t,r,i),this._updateLayer(a))}getLayoutProperty(e,t){let r=this.getLayer(e);if(!r){this.fire(new sr(Error(`Cannot get style of non-existing layer "${e}".`)));return}return r.getLayoutProperty(t)}setPaintProperty(e,t,r,i={}){this._checkLoaded();let a=this.getLayer(e);if(!a){this.fire(new sr(Error(`Cannot style non-existing layer "${e}".`)));return}Fu(a.getPaintProperty(t),r)||this._updatePaintProperty(a,t,r,i)}_updatePaintProperty(e,t,r,i={}){e.setPaintProperty(t,r,i)&&this._updateLayer(e),ww(e)&&t==="raster-fade-duration"&&this.tileManagers[e.source].setRasterFadeDuration(r),this._changed=!0,this._updatedPaintProps[e.id]=!0,e.type==="symbol"&&this.triggerSymbolPlacement(),this._serializedLayers=null}getPaintProperty(e,t){return this.getLayer(e).getPaintProperty(t)}setFeatureState(e,t){this._checkLoaded();let r=e.source,i=e.sourceLayer,a=this.tileManagers[r];if(a===void 0){this.fire(new sr(Error(`The source '${r}' does not exist in the map's style.`)));return}let n=a.getSource().type;if(n==="geojson"&&i){this.fire(new sr(Error("GeoJSON sources cannot have a sourceLayer parameter.")));return}if(n==="vector"&&!i){this.fire(new sr(Error("The sourceLayer parameter must be provided for vector source types.")));return}if(e.id===void 0){this.fire(new sr(Error("The feature id parameter must be provided.")));return}let o=["__proto__","constructor","prototype"];if(t&&Object.keys(t).some(s=>o.includes(s))){this.fire(new sr(Error(`The feature state should not include one of the following keys: ${o}`)));return}a.setFeatureState(i,e.id,t)}removeFeatureState(e,t){this._checkLoaded();let r=e.source,i=this.tileManagers[r];if(i===void 0){this.fire(new sr(Error(`The source '${r}' does not exist in the map's style.`)));return}let a=i.getSource().type,n=a==="vector"?e.sourceLayer:void 0;if(a==="vector"&&!n){this.fire(new sr(Error("The sourceLayer parameter must be provided for vector source types.")));return}if(t&&typeof e.id!="string"&&typeof e.id!="number"){this.fire(new sr(Error("A feature id is required to remove its specific state property.")));return}i.removeFeatureState(n,e.id,t)}getFeatureState(e){this._checkLoaded();let t=e.source,r=e.sourceLayer,i=this.tileManagers[t];if(i===void 0){this.fire(new sr(Error(`The source '${t}' does not exist in the map's style.`)));return}if(i.getSource().type==="vector"&&!r){this.fire(new sr(Error("The sourceLayer parameter must be provided for vector source types.")));return}return e.id===void 0&&this.fire(new sr(Error("The feature id parameter must be provided."))),i.getFeatureState(r,e.id)}getTransition(){var e;return tr({duration:300,delay:0},(e=this.stylesheet)==null?void 0:e.transition)}serialize(){if(!this._loaded)return;let e=rw(this.tileManagers,a=>a.serialize()),t=this._serializeByIds(this._order,!0),r=this.map.getTerrain()||void 0,i=this.stylesheet;return xk({version:i.version,name:i.name,metadata:i.metadata,light:i.light,sky:i.sky,center:i.center,zoom:i.zoom,bearing:i.bearing,pitch:i.pitch,sprite:i.sprite,glyphs:i.glyphs,"font-faces":i["font-faces"],transition:i.transition,projection:i.projection,state:i.state,sources:e,layers:t,terrain:r},a=>a!==void 0)}_updateLayer(e){this._updatedLayers[e.id]=!0,e.source&&!this._updatedSources[e.source]&&this.tileManagers[e.source].getSource().type!=="raster"&&(this._updatedSources[e.source]="reload",this.tileManagers[e.source].pause()),this._serializedLayers=null,this._changed=!0}_flattenAndSortRenderedFeatures(e){let t=n=>this._layers[n].type==="fill-extrusion",r={},i=[];for(let n=this._order.length-1;n>=0;n--){let o=this._order[n];if(t(o)){r[o]=n;for(let s of e){let l=s[o];if(l)for(let u of l)i.push(u)}}}i.sort((n,o)=>o.intersectionZ-n.intersectionZ);let a=[];for(let n=this._order.length-1;n>=0;n--){let o=this._order[n];if(t(o))for(let s=i.length-1;s>=0;s--){let l=i[s].feature;if(r[l.layer.id]this.map.terrain.getElevation(u,c,h):void 0));return this.placement&&a.push(OUe(this._layers,n,this.tileManagers,e,s,this.placement.collisionIndex,this.placement.retainedQueryData)),this._flattenAndSortRenderedFeatures(a)}querySourceFeatures(e,t){t!=null&&t.filter&&this._validate(Wo.filter,"querySourceFeatures.filter",t.filter,null,t);let r=this.tileManagers[e];return r?NUe(r,t?Gr(nr({},t),{globalState:this._globalState}):{globalState:this._globalState}):[]}getLight(){return this.light.getLight()}setLight(e,t={}){this._checkLoaded();let r=this.light.getLight(),i=!1;for(let n in e)if(!Fu(e[n],r[n])){i=!0;break}if(!i)return;let a={now:ki(),transition:tr({duration:300,delay:0},this.stylesheet.transition)};this.light.setLight(e,t),this.light.updateTransitions(a)}getProjection(){var e;return(e=this.stylesheet)==null?void 0:e.projection}setProjection(e){this._checkLoaded();let t=e!=null?e:{type:"mercator"};if(this.stylesheet.projection=e,this.projection){if(this.projection.name===t.type)return;this.projection.destroy(),delete this.projection}this._setProjectionInternal(t.type)}getSky(){var e;return(e=this.stylesheet)==null?void 0:e.sky}setSky(e,t={}){this._checkLoaded();let r=this.getSky(),i=!1;if(!e&&!r)return;if(e&&!r)i=!0;else if(!e&&r)i=!0;else for(let n in e)if(!Fu(e[n],r[n])){i=!0;break}if(!i)return;let a={now:ki(),transition:tr({duration:300,delay:0},this.stylesheet.transition)};this.sky.setSky(e,t)&&(this.stylesheet.sky=e,this.sky.updateTransitions(a))}_setProjectionInternal(e){var r;let t=Mje(e,(r=this.map._camera)==null?void 0:r.transform.constrainOverride,this._globalState);this.projection=t.projection,this.map.migrateProjection(t.transform,t.cameraHelper);for(let i in this.tileManagers)this.tileManagers[i].reload()}_validate(e,t,r,i,a={}){return a.validate!==!1&&km(this,e,nr({key:t,style:this.serialize(),value:r},i),a)}_remove(e=!0){this._frameRequest&&(this._frameRequest=(this._frameRequest.abort(),null)),this._loadStyleRequest&&(this._loadStyleRequest=(this._loadStyleRequest.abort(),null)),this._spriteRequest&&(this._spriteRequest=(this._spriteRequest.abort(),null)),Y2().off(nF,this._rtlPluginLoaded);for(let t in this._layers)this._layers[t].setEventedParent(null);for(let t in this.tileManagers){let r=this.tileManagers[t];r.setEventedParent(null),r.onRemove(this.map)}this.imageManager.setEventedParent(null),this.setEventedParent(null),e&&this.dispatcher.broadcast("RM",void 0),this.dispatcher.remove(e)}_clearSource(e){this.tileManagers[e].clearTiles()}_reloadSource(e){this.tileManagers[e].resume(),this.tileManagers[e].reload()}_updateSources(e){for(let t in this.tileManagers)this.tileManagers[t].update(e,this.map.terrain)}_generateCollisionBoxes(){for(let e in this.tileManagers)this._reloadSource(e)}triggerSymbolPlacement(){this._symbolPlacementTriggered=!0}_placementInputsChanged(e,t,r){var a;let i=this.pauseablePlacement;return!i||this._symbolPlacementTriggered||this._placedProjectionTransition!==((a=this.projection)==null?void 0:a.transitionState)||i._showCollisionBoxes!==t||i.placement.collisionGroups.crossSourceCollisions!==r||i.placement.transform.renderWorldCopies!==e.renderWorldCopies||!Kre(i.placement.transform.modelViewProjectionMatrix,e.modelViewProjectionMatrix)}_updatePlacement(e,t,r,i,a=!1){var c,h;let n=!1,o=!1,s={};for(let f of this._order){let d=this._layers[f];if(d.type!=="symbol")continue;if(!s[d.source]){let m=this.tileManagers[d.source];s[d.source]=m.getRenderableIds(!0).map(g=>m.getTileByID(g)).sort((g,y)=>y.tileID.overscaledZ-g.tileID.overscaledZ||(g.tileID.isLessThan(y.tileID)?-1:1))}let p=this.crossTileSymbolIndex.addLayer(d,s[d.source],e.center.lng);n||(n=p)}this.crossTileSymbolIndex.pruneUnusedLayers(this._order),a||(a=this._layerOrderChanged||r===0);let l=n||this._placementInputsChanged(e,t,i),u=((c=this.pauseablePlacement)==null?void 0:c.isDone())&&!this.placement.stillRecent(ki(),e.zoom);if((a||!this.pauseablePlacement||u&&(l||this.placement.stale))&&(this._symbolPlacementTriggered=!1,this._placedProjectionTransition=(h=this.projection)==null?void 0:h.transitionState,this.pauseablePlacement=new YGe(e,this.map.terrain,this._order,a,t,r,i,this.placement),this._layerOrderChanged=!1),this.pauseablePlacement.isDone()?l&&this.placement.setStale():(this.pauseablePlacement.continuePlacement(this._order,this._layers,s),this.pauseablePlacement.isDone()&&(this.placement=this.pauseablePlacement.commit(ki()),o=!0),n&&this.pauseablePlacement.placement.setStale()),o||n)for(let f of this._order){let d=this._layers[f];d.type==="symbol"&&this.placement.updateLayerOpacities(d,s[d.source])}return!this.pauseablePlacement.isDone()||this.placement.hasTransitions(ki())}_releaseSymbolFadeTiles(){for(let e in this.tileManagers)this.tileManagers[e].releaseSymbolFadeTiles()}getImages(e,t){return Kt(this,null,function*(){let r=yield this.imageManager.getImages(t.icons);this._updateTilesForChangedImages();let i=this.tileManagers[t.source];return i&&i.setDependencies(t.tileID.key,t.type,t.icons),r})}getGlyphs(e,t){return Kt(this,null,function*(){let r=yield this.glyphManager.getGlyphs(t.stacks),i=this.tileManagers[t.source];return i&&i.setDependencies(t.tileID.key,t.type,[""]),r})}getGlyphsUrl(){return this.stylesheet.glyphs||null}setGlyphs(e,t={}){this._checkLoaded(),!(e&&this._validate(Wo.glyphs,"glyphs",e,null,t))&&(this._changed=!0,this._glyphsDidChange=!0,this.stylesheet.glyphs=e,this.glyphManager.entries={},this.glyphManager.setURL(e))}getFontFaces(){return this.stylesheet["font-faces"]||null}setFontFaces(e){this._checkLoaded(),this._changed=!0,this._glyphsDidChange=!0,this.stylesheet["font-faces"]=e,this.glyphManager.setFontFaces(e)}getDashes(e,t){return Kt(this,null,function*(){let r={};for(let[i,a]of Object.entries(t.dashes))r[i]=this.lineAtlas.getDash(a.dasharray,a.round);return r})}addSprite(e,t,r={},i){this._checkLoaded();let a=[{id:e,url:t}],n=[...e6(this.stylesheet.sprite),...a];this._validate(Wo.sprite,"sprite",n,null,r)||(this.stylesheet.sprite=n,this._loadSprite(a,!0,i))}removeSprite(e){this._checkLoaded();let t=e6(this.stylesheet.sprite);if(!t.find(i=>i.id===e)){this.fire(new sr(Error(`Sprite "${e}" doesn't exists on this map.`)));return}let r=this.imageManager.removeSpriteImages(e);this._markImagesChanged(r),t.splice(t.findIndex(i=>i.id===e),1),this.stylesheet.sprite=t.length>0?t:void 0,this._imagesListDirty=!0,this._changed=!0,this.fire(new Yl("data"))}getSprite(){return e6(this.stylesheet.sprite)}setSprite(e,t={},r){this._checkLoaded(),!(e&&this._validate(Wo.sprite,"sprite",e,null,t))&&(this.stylesheet.sprite=e,e?this._loadSprite(e,!0,r):(this._unloadSprite(),r&&r(null)))}destroy(){this._frameRequest&&(this._frameRequest=(this._frameRequest.abort(),null)),this._loadStyleRequest&&(this._loadStyleRequest=(this._loadStyleRequest.abort(),null)),this._spriteRequest&&(this._spriteRequest=(this._spriteRequest.abort(),null));for(let e in this.tileManagers){let t=this.tileManagers[e];t.setEventedParent(null),t.onRemove(this.map)}this.tileManagers={},this.imageManager&&(this.imageManager.setEventedParent(null),this.imageManager.destroy(),this.patternAtlas.destroy()),this.glyphManager&&this.glyphManager.destroy();for(let e in this._layers){let t=this._layers[e];t.setEventedParent(null),t.onRemove&&t.onRemove(this.map)}this._setInitialValues(),this.setEventedParent(null),this.dispatcher.unregisterMessageHandler("GG"),this.dispatcher.unregisterMessageHandler("GI"),this.dispatcher.unregisterMessageHandler("GDA"),this.dispatcher.remove(!0),this._listeners={},this._oneTimeListeners={}}},Sje=wa([{name:"a_pos",type:"Int16",components:2},{name:"a_texture_pos",type:"Int16",components:2}]),Eje=class{constructor(){this.boundProgram=null,this.boundLayoutVertexBuffer=null,this.boundPaintVertexBuffers=[],this.boundIndexBuffer=null,this.boundVertexOffset=null,this.boundDynamicVertexBuffer=null,this.vao=null}bind(e,t,r,i,a,n,o,s,l){this.context=e;let u=this.boundPaintVertexBuffers.length!==i.length;for(let c=0;!u&&c({u_depth:new lr(e,t.u_depth),u_terrain:new lr(e,t.u_terrain)}),Cje=(e,t)=>({u_texture:new lr(e,t.u_texture),u_ele_delta:new Gt(e,t.u_ele_delta),u_fog_matrix:new Hl(e,t.u_fog_matrix),u_fog_color:new Mh(e,t.u_fog_color),u_fog_ground_blend:new Gt(e,t.u_fog_ground_blend),u_fog_ground_blend_opacity:new Gt(e,t.u_fog_ground_blend_opacity),u_horizon_color:new Mh(e,t.u_horizon_color),u_horizon_fog_blend:new Gt(e,t.u_horizon_fog_blend),u_is_globe_mode:new Gt(e,t.u_is_globe_mode)}),Fje=(e,t)=>({u_ele_delta:new Gt(e,t.u_ele_delta)}),Pje=(e,t,r,i,a)=>({u_texture:0,u_ele_delta:e,u_fog_matrix:t,u_fog_color:r?r.properties.get("fog-color"):Dr.white,u_fog_ground_blend:r?r.properties.get("fog-ground-blend"):1,u_fog_ground_blend_opacity:a?0:r?r.calculateFogBlendOpacity(i):0,u_horizon_color:r?r.properties.get("horizon-color"):Dr.white,u_horizon_fog_blend:r?r.properties.get("horizon-fog-blend"):1,u_is_globe_mode:+!!a}),Ije=e=>({u_ele_delta:e}),p6={ProjectionUBO:0,TerrainUBO:1,FrameUBO:2};zje={float:[1,1],int:[1,1],vec2:[2,2],vec4:[4,4],mat4:[16,4]};RF=class{constructor(e,t,r){this.context=e,this.binding=t,this.contentWords=r.contentWords;let i=e.gl;this.buffer=i.createBuffer(),i.bindBuffer(i.UNIFORM_BUFFER,this.buffer),i.bufferData(i.UNIFORM_BUFFER,r.sizeWords*4,i.DYNAMIC_DRAW),this.uploaded=new Float32Array(r.sizeWords),this.pending=new Float32Array(r.sizeWords),this.uploadedWords=new Uint32Array(this.uploaded.buffer),this.pendingWords=new Uint32Array(this.pending.buffer),this.hasData=!1}upload(){let e=this.context.gl,t=!this.hasData;if(!t){let r=this.pendingWords,i=this.uploadedWords;for(let a=0;a 0.0) {vec3 ray=normalize(v_view_direction);float globe_distance=length(u_globe_position);float angle_to_globe_center=acos(clamp(dot(ray,u_globe_position)/globe_distance,-1.0,1.0));float horizon_angle=asin(min(u_globe_radius/globe_distance,1.0));blend=mix(blend,((angle_to_globe_center-horizon_angle)*u_camera_to_center_distance+1.0)*u_device_pixel_ratio,u_sky_blend);float closest_approach=max(dot(ray,u_globe_position),0.0);float lowest_altitude=sqrt(max(globe_distance*globe_distance-closest_approach*closest_approach,0.0))-u_globe_radius;float atmosphere_height=u_globe_radius*ATMOSPHERE_HEIGHT_TO_GLOBE_RADIUS;float inside_atmosphere=1.0-smoothstep(atmosphere_height,10.0*atmosphere_height,globe_distance-u_globe_radius);float through_atmosphere=1.0-smoothstep(0.0,atmosphere_height,lowest_altitude);opacity=inside_atmosphere*through_atmosphere*(1.0-u_atmosphere_blend);}if (blend > 0.0) {if (blend < u_sky_horizon_blend) {fragColor=mix(u_sky_color,u_horizon_color,pow(1.0-blend/u_sky_horizon_blend,2.0));} else {fragColor=u_sky_color;}}fragColor*=mix(1.0,opacity,u_sky_blend);}","layout(location=0) in vec2 a_pos;uniform mat4 u_inv_proj_matrix;out vec3 v_view_direction;void main() {v_view_direction=(u_inv_proj_matrix*vec4(a_pos,0.0,1.0)).xyz;gl_Position=vec4(a_pos,1.0,1.0);}")};aue="#define PROJECTION_MERCATOR",nue="mercator",yF=class{constructor(){this._cachedMesh=null}get name(){return"mercator"}get useSubdivision(){return!1}get shaderVariantName(){return nue}get shaderDefine(){return aue}get shaderPreludeCode(){return Ic.projectionMercator}get vertexShaderPreludeCode(){return Ic.projectionMercator.vertexSource}get subdivisionGranularity(){return Fw.noSubdivision}get useGlobeControls(){return!1}get transitionState(){return 0}destroy(){}getMeshFromTileID(e,t,r,i,a){if(this._cachedMesh)return this._cachedMesh;let n=new Mh;n.emplaceBack(0,0),n.emplaceBack(ct,0),n.emplaceBack(0,ct),n.emplaceBack(ct,ct);let o=e.createVertexBuffer(n,np.members),s=Aa.simpleSegment(0,0,4,2),l=new qu;l.emplaceBack(1,0,2),l.emplaceBack(1,2,3);let u=e.createIndexBuffer(l);return this._cachedMesh=new Y2(o,u,s),this._cachedMesh}recalculate(){}hasTransition(){return!1}},_F=class oue{constructor(t=0,r=0,i=0,a=0){if(isNaN(t)||t<0||isNaN(r)||r<0||isNaN(i)||i<0||isNaN(a)||a<0)throw Error("Invalid value for edge-insets, top, bottom, left and right must all be numbers");this.top=t,this.bottom=r,this.left=i,this.right=a}interpolate(t,r,i){return r.top!=null&&t.top!=null&&(this.top=wa.number(t.top,r.top,i)),r.bottom!=null&&t.bottom!=null&&(this.bottom=wa.number(t.bottom,r.bottom,i)),r.left!=null&&t.left!=null&&(this.left=wa.number(t.left,r.left,i)),r.right!=null&&t.right!=null&&(this.right=wa.number(t.right,r.right,i)),this}getCenter(t,r){let i=Tr((this.left+t-this.right)/2,0,t),a=Tr((this.top+r-this.bottom)/2,0,r);return new qe(i,a)}equals(t){return this.top===t.top&&this.bottom===t.bottom&&this.left===t.left&&this.right===t.right}clone(){return new oue(this.top,this.bottom,this.left,this.right)}toJSON(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}}};NF=class{constructor(e,t){var r;this.applyConstrain=(i,a)=>this._constrainOverride===null?this._callbacks.defaultConstrain(i,a):this._constrainOverride(i,a),this._callbacks=e,this._tileSize=512,this._renderWorldCopies=(t==null?void 0:t.renderWorldCopies)===void 0||!!(t!=null&&t.renderWorldCopies),this._minZoom=(t==null?void 0:t.minZoom)||0,this._maxZoom=(t==null?void 0:t.maxZoom)||22,this._minPitch=(t==null?void 0:t.minPitch)===void 0||(t==null?void 0:t.minPitch)===null?0:t==null?void 0:t.minPitch,this._maxPitch=(t==null?void 0:t.maxPitch)===void 0||(t==null?void 0:t.maxPitch)===null?60:t==null?void 0:t.maxPitch,this._constrainOverride=(r=t==null?void 0:t.constrainOverride)!=null?r:null,this.setMaxBounds(),this._width=0,this._height=0,this._center=new ar(0,0),this._elevation=0,this._zoom=0,this._tileZoom=Use(this._zoom),this._scale=qo(this._zoom),this._bearingInRadians=0,this._fovInRadians=.6435011087932844,this._pitchInRadians=0,this._rollInRadians=0,this._unmodified=!0,this._edgeInsets=new _F,this._minElevationForCurrentTile=0,this._autoCalculateNearFarZ=!0}apply(e,t){this._constrainOverride=e.constrainOverride,this._latRange=e.latRange,this._lngRange=e.lngRange,this._width=e.width,this._height=e.height,this._center=e.center,this._elevation=e.elevation,this._minElevationForCurrentTile=e.minElevationForCurrentTile,this._zoom=e.zoom,this._tileZoom=Use(this._zoom),this._scale=qo(this._zoom),this._bearingInRadians=e.bearingInRadians,this._fovInRadians=e.fovInRadians,this._pitchInRadians=e.pitchInRadians,this._rollInRadians=e.rollInRadians,this._unmodified=e.unmodified,this._edgeInsets=new _F(e.padding.top,e.padding.bottom,e.padding.left,e.padding.right),this._minZoom=e.minZoom,this._maxZoom=e.maxZoom,this._minPitch=e.minPitch,this._maxPitch=e.maxPitch,this._renderWorldCopies=e.renderWorldCopies,this._cameraToCenterDistance=e.cameraToCenterDistance,this._nearZ=e.nearZ,this._farZ=e.farZ,this._autoCalculateNearFarZ=e.autoCalculateNearFarZ,t&&this.constrainInternal(),this._calcMatrices()}get pixelsToClipSpaceMatrix(){return this._pixelsToClipSpaceMatrix}get clipSpaceToPixelsMatrix(){return this._clipSpaceToPixelsMatrix}get minElevationForCurrentTile(){return this._minElevationForCurrentTile}setMinElevationForCurrentTile(e){this._minElevationForCurrentTile=e}get tileSize(){return this._tileSize}get tileZoom(){return this._tileZoom}get scale(){return this._scale}get width(){return this._width}get height(){return this._height}get bearingInRadians(){return this._bearingInRadians}get lngRange(){return this._lngRange}get latRange(){return this._latRange}get pixelsToGLUnits(){return this._pixelsToGLUnits}get minZoom(){return this._minZoom}setMinZoom(e){if(this._minZoom===e)return;this._minZoom=e;let t=this._unmodified;this.setZoom(this.applyConstrain(this._center,this.zoom).zoom),this._unmodified=t}get maxZoom(){return this._maxZoom}setMaxZoom(e){if(this._maxZoom===e)return;this._maxZoom=e;let t=this._unmodified;this.setZoom(this.applyConstrain(this._center,this.zoom).zoom),this._unmodified=t}get minPitch(){return this._minPitch}setMinPitch(e){if(this._minPitch===e)return;this._minPitch=e;let t=this._unmodified;this.setPitch(Math.max(this.pitch,e)),this._unmodified=t}get maxPitch(){return this._maxPitch}setMaxPitch(e){if(this._maxPitch===e)return;this._maxPitch=e;let t=this._unmodified;this.setPitch(Math.min(this.pitch,e)),this._unmodified=t}get renderWorldCopies(){return this._renderWorldCopies}setRenderWorldCopies(e){e===void 0?e=!0:e===null&&(e=!1),this._renderWorldCopies=e}get constrainOverride(){return this._constrainOverride}setConstrainOverride(e){e===void 0&&(e=null),this._constrainOverride!==e&&(this._constrainOverride=e,this.constrainInternal(),this._calcMatrices())}get worldSize(){return this._tileSize*this._scale}get centerOffset(){return this.centerPoint._sub(this.size._div(2))}get size(){return new qe(this._width,this._height)}get bearing(){return this._bearingInRadians/Math.PI*180}setBearing(e){let t=rl(e,-180,180)*Math.PI/180;this._bearingInRadians!==t&&(this._unmodified=!1,this._bearingInRadians=t,this._calcMatrices(),this._rotationMatrix=Tle(),iUe(this._rotationMatrix,this._rotationMatrix,-this._bearingInRadians))}get rotationMatrix(){return this._rotationMatrix}get pitchInRadians(){return this._pitchInRadians}get pitch(){return this._pitchInRadians/Math.PI*180}setPitch(e){let t=Tr(e,this.minPitch,this.maxPitch)/180*Math.PI;this._pitchInRadians!==t&&(this._unmodified=!1,this._pitchInRadians=t,this._calcMatrices())}get rollInRadians(){return this._rollInRadians}get roll(){return this._rollInRadians/Math.PI*180}setRoll(e){let t=e/180*Math.PI;this._rollInRadians!==t&&(this._unmodified=!1,this._rollInRadians=t,this._calcMatrices())}get fovInRadians(){return this._fovInRadians}get fov(){return Fu(this._fovInRadians)}setFov(e){e=Tr(e,.1,150),this.fov!==e&&(this._unmodified=!1,this._fovInRadians=pa(e),this._calcMatrices())}get zoom(){return this._zoom}setZoom(e){let t=this.applyConstrain(this._center,e).zoom;this._zoom!==t&&(this._unmodified=!1,this._zoom=t,this._tileZoom=Math.max(0,Math.floor(t)),this._scale=qo(t),this.constrainInternal(),this._calcMatrices())}get center(){return this._center}setCenter(e){(e.lat!==this._center.lat||e.lng!==this._center.lng)&&(this._unmodified=!1,this._center=e,this.constrainInternal(),this._calcMatrices())}get elevation(){return this._elevation}setElevation(e){e!==this._elevation&&(this._elevation=e,this.constrainInternal(),this._calcMatrices())}get padding(){return this._edgeInsets.toJSON()}setPadding(e){this._edgeInsets.equals(e)||(this._unmodified=!1,this._edgeInsets.interpolate(this._edgeInsets,e,1),this._calcMatrices())}get centerPoint(){return this._edgeInsets.getCenter(this._width,this._height)}get pixelsPerMeter(){return this._pixelPerMeter}get unmodified(){return this._unmodified}get cameraToCenterDistance(){return this._cameraToCenterDistance}get nearZ(){return this._nearZ}get farZ(){return this._farZ}get autoCalculateNearFarZ(){return this._autoCalculateNearFarZ}overrideNearFarZ(e,t){this._autoCalculateNearFarZ=!1,this._nearZ=e,this._farZ=t,this._calcMatrices()}clearNearFarZOverride(){this._autoCalculateNearFarZ=!0,this._calcMatrices()}isPaddingEqual(e){return this._edgeInsets.equals(e)}interpolatePadding(e,t,r){this._unmodified=!1,this._edgeInsets.interpolate(e,t,r),this.constrainInternal(),this._calcMatrices()}resize(e,t,r=!0){this._width=e,this._height=t,r&&this.constrainInternal(),this._calcMatrices()}getMaxBounds(){var e,t;return((e=this._latRange)==null?void 0:e.length)!==2||((t=this._lngRange)==null?void 0:t.length)!==2?null:new Vu([this._lngRange[0],this._latRange[0]],[this._lngRange[1],this._latRange[1]])}setMaxBounds(e){e?(this._lngRange=[e.getWest(),e.getEast()],this._latRange=[e.getSouth(),e.getNorth()],this.constrainInternal()):(this._lngRange=null,this._latRange=[-Ru,Ru])}getCameraQueryGeometry(e,t){if(t.length===1)return[t[0],e];{let{minX:r,minY:i,maxX:a,maxY:n}=jl.fromPoints(t).extend(e);return[new qe(r,i),new qe(a,i),new qe(a,n),new qe(r,n),new qe(r,i)]}}constrainInternal(){if(!this.center||!this._width||!this._height||this._constraining)return;this._constraining=!0;let e=this._unmodified,{center:t,zoom:r}=this.applyConstrain(this.center,this.zoom);this.setCenter(t),this.setZoom(r),this._unmodified=e,this._constraining=!1}_calcMatrices(){if(this._pixelPerMeter=Wf(1,this.center.lat)*this.worldSize,!this._width||!this._height)return;this._pixelsToGLUnits=[2/this._width,-2/this._height];let e=$l(new Float64Array(16));Xn(e,e,[this._width/2,-this._height/2,1]),Qa(e,e,[1,-1,0]),this._clipSpaceToPixelsMatrix=e,e=$l(new Float64Array(16)),Xn(e,e,[1,-1,1]),Qa(e,e,[-1,-1,0]),Xn(e,e,[2/this._width,2/this._height,1]),this._pixelsToClipSpaceMatrix=e;let t=this.fovInRadians/2;this._cameraToCenterDistance=.5/Math.tan(t)*this._height,this._callbacks.calcMatrices()}calculateCenterFromCameraLngLatAlt(e,t,r,i){let a=r===void 0?this.bearing:r,n=i=i===void 0?this.pitch:i,{distanceToCenter:o,clampedElevation:s}=this._distanceToCenterFromAltElevationPitch(t,this.elevation,n),{x:l,y:u}=Lw(n,a),c=wi.fromLngLat(e,t),h=fC(1,c.y),f,d,p=0;do{if(p+=1,p>10)break;d=o/h;let m=l*d,g=u*d;f=new wi(c.x+m,c.y+g),h=1/f.meterInMercatorCoordinateUnits()}while(Math.abs(o-d*h)>1e-12);return{center:f.toLngLat(),elevation:s,zoom:Jn(this.height/2/Math.tan(this.fovInRadians/2)/d/this.tileSize)}}recalculateZoomAndCenter(e){if(this.elevation-e===0)return;let t=1/this.worldSize,r=Wf(1,this.center.lat)*this.worldSize,i=wi.fromLngLat(this.center,this.elevation),a=i.x/t,n=i.y/t,o=i.z/t,s=this.pitch,l=this.bearing,{x:u,y:c,z:h}=Lw(s,l),f=this.cameraToCenterDistance,d=a+f*-u,p=n+f*-c,m=o+f*h,{distanceToCenter:g,clampedElevation:y}=this._distanceToCenterFromAltElevationPitch(m/r,e,s),x=g*r,b=d+u*x,_=p+c*x,A=new wi(b*t,_*t,0).toLngLat(),T=Wf(1,A.lat),M=Jn(this.height/2/Math.tan(this.fovInRadians/2)/g/T/this.tileSize);this._elevation=y,this._center=A,this.setZoom(M)}_distanceToCenterFromAltElevationPitch(e,t,r){let i=-Math.cos(pa(r)),a=e-t,n,o=t;return i*a>=0||Math.abs(i)=0?1<i}allowWorldCopies(){return!0}prepareNextFrame(){}},gje=Ea([{name:"a_pos3d",type:"Int16",components:3}]),yje=class extends tn{constructor(e){super(),this._lastTilesetChange=Ei(),this.tileManager=e,this._tiles={},this._renderableTilesKeys=[],this._sourceTileCache={},this.minzoom=0,this.maxzoom=22,this.deltaZoom=1,this.tileSize=e._source.tileSize*2**this.deltaZoom,e.usedForTerrain=!0,e.tileSize=this.tileSize}destruct(){this.tileManager.usedForTerrain=!1,this.tileManager.tileSize=null,this.releaseAllRTT()}getSource(){return this.tileManager._source}update(e,t){this.tileManager.update(e,t),this._renderableTilesKeys=[];let r={},i=!1;for(let a of Nm(e,{tileSize:this.tileSize,minzoom:this.minzoom,maxzoom:this.maxzoom,reparseOverscaled:!1,terrain:t}))r[a.key]=!0,this._renderableTilesKeys.push(a.key),this._tiles[a.key]||(a.terrainRttPosMatrix32f=new Float32Array(16),zu(a.terrainRttPosMatrix32f,0,ct,ct,0,0,1),this._tiles[a.key]=new Yle(a,this.tileSize),this._lastTilesetChange=Ei(),i=!0);for(let a in this._tiles)r[a]||(this._tiles[a].releaseRTT(this.tileManager.map.painter),delete this._tiles[a],i=!0);return i}releaseRTT(e){for(let t in this._tiles){let r=this._tiles[t];(r.tileID.equals(e)||r.tileID.isChildOf(e)||e.isChildOf(r.tileID))&&r.releaseRTT(this.tileManager.map.painter)}}releaseAllRTT(){for(let e in this._tiles)this._tiles[e].releaseRTT(this.tileManager.map.painter)}getRenderableTiles(){return this._renderableTilesKeys.map(e=>this.getTileByID(e))}getTileByID(e){return this._tiles[e]}getTerrainCoords(e,t){return t?this._getTerrainCoordsForTileRanges(e,t):this._getTerrainCoordsForRegularTile(e)}_getTerrainCoordsForRegularTile(e){let t={};for(let r of this._renderableTilesKeys){let i=this._tiles[r].tileID,a=e.clone(),n=Hf();if(i.canonical.equals(e.canonical))zu(n,0,ct,ct,0,0,1);else if(i.canonical.isChildOf(e.canonical)){let o=i.canonical.z-e.canonical.z,s=i.canonical.x-(i.canonical.x>>o<>o<>o;zu(n,0,u,u,0,0,1),Qa(n,n,[-s*u,-l*u,0])}else if(e.canonical.isChildOf(i.canonical)){let o=e.canonical.z-i.canonical.z,s=e.canonical.x-(e.canonical.x>>o<>o<>o;zu(n,0,ct,ct,0,0,1),Qa(n,n,[s*u,l*u,0]),Xn(n,n,[1/2**o,1/2**o,0])}else continue;a.terrainRttPosMatrix32f=new Float32Array(n),t[r]=a}return t}_getTerrainCoordsForTileRanges(e,t){let r={};for(let i of this._renderableTilesKeys){let a=this._tiles[i].tileID;if(!this._isWithinTileRanges(a,t))continue;let n=e.clone(),o=Hf();if(a.canonical.z===e.canonical.z){let s=e.canonical.x-a.canonical.x+e.wrap*(1<e.canonical.z){let s=a.canonical.z-e.canonical.z,l=a.canonical.x-(a.canonical.x>>s<>s<>s),h=e.canonical.y-(a.canonical.y>>s),f=ct>>s;zu(o,0,f,f,0,0,1),Qa(o,o,[-l*f+c*ct,-u*f+h*ct,0])}else{let s=e.canonical.z-a.canonical.z,l=e.canonical.x-(e.canonical.x>>s<>s<>s)-a.canonical.x,h=(e.canonical.y>>s)-a.canonical.y,f=ct<r.maxzoom&&(i=r.maxzoom),i=r.minzoom&&!(a!=null&&a.dem);)a=this.findTileInCaches(e.scaledTo(i--).key);return a}findTileInCaches(e){let t=this.tileManager.getTileByID(e);return t||(t=this.tileManager._outOfViewCache.getByKey(e),t)}anyTilesAfterTime(e=Ei()){return this._lastTilesetChange>=e}_isWithinTileRanges(e,t){let r=t[e.canonical.z];return!!r&&(e.wrap>r.minWrap||e.wrap=r.minTileXWrapped&&e.canonical.x<=r.maxTileXWrapped&&e.canonical.y>=r.minTileY&&e.canonical.y<=r.maxTileY)}},Gse=ct*(1-1e-12),jse=-.5,_je=class{constructor(e,t,r,i="auto"){this._meshCache={},this.painter=e,this.tileManager=new yje(t),this.options=r,this.exaggeration=typeof r.exaggeration=="number"?r.exaggeration:1,this._terrainSkirtLength=i,this.qualityFactor=2,this.meshSize=128,this._demMatrixCache=new Map,this._elevationSamplerCache=new Map}destroy(){this._fbo&&(this._fbo=(this._fbo.destroy(),null)),this._fboDepthTexture&&(this._fboDepthTexture=(this._fboDepthTexture.destroy(),null)),this._emptyDemTexture&&(this._emptyDemTexture=(this._emptyDemTexture.destroy(),null)),this._emptyDepthTexture&&(this._emptyDepthTexture=(this._emptyDepthTexture.destroy(),null));for(let e in this._meshCache)this._meshCache[e].destroy();this._meshCache={},this.tileManager.destruct()}getDEMElevation(e,t,r,i=ct){let a=e.normalizeCoordinates(t,r,i);if(!a)return 0;let n=this.getElevationSampler(a.tileID);return n?n(a.x,a.y,i):0}getElevationForLngLatZoom(e,t){if(!wC(t,e.wrap()))return 0;let{tileID:r,mercatorX:i,mercatorY:a}=this._getOverscaledTileIDFromLngLatZoom(e,t);return this.getElevation(r,i%ct,a%ct,ct)}getElevationForLngLat(e,t){let r=this.getCoverageIndex();if(r){let n=wi.fromLngLat(e),o=VF(r,this.exaggeration,n.x,n.y);if(o.demLoaded)return o.elevation}let i=Nm(t,{maxzoom:this.tileManager.maxzoom,minzoom:this.tileManager.minzoom,tileSize:512,terrain:this}),a=0;for(let n of i)n.canonical.z>a&&(a=Math.min(n.canonical.z,this.tileManager.maxzoom));return this.getElevationForLngLatZoom(e,a)}getElevation(e,t,r,i=ct){return this.getDEMElevation(e,t,r,i)*this.exaggeration}resetElevationCache(){this._elevationSamplerCache.clear(),this._coverageIndex=void 0}getCoverageIndex(){return this._coverageIndex===void 0&&(this._coverageIndex=this._buildCoverageIndex()),this._coverageIndex}_buildCoverageIndex(){let e=[],t=new Map,r=0,i=0;for(let a of this.tileManager.getRenderableTiles()){if(!a)continue;let{canonical:n,wrap:o}=a.tileID;e.includes(n.z)||e.push(n.z);let s=this.getElevationSampler(a.tileID);t.set(`${o}/${n.z}/${n.x}/${n.y}`,s);let{minElevation:l,maxElevation:u}=this.getMinMaxElevation(a.tileID);r=Math.min(r,l!=null?l:0),i=Math.max(i,u!=null?u:0)}return t.size===0?null:(e.sort((a,n)=>n-a),{zooms:e,samplerPerTile:t,minElevation:r-10,maxElevation:i+10})}getElevationSampler(e){let t=e.key,r=this._elevationSamplerCache.get(t);if(r)return r;let i=this.tileManager.getSourceTile(e,!0),a=i==null?void 0:i.dem;if(!i||!a)return null;let n=this._getDEMTileMatrix(e,i),o=n[0]*a.dim,s=n[5]*a.dim,l=n[12]*a.dim+jse,u=n[13]*a.dim+jse,c=(h,f,d)=>{let p=d===8192?1:ct/d;return a.sampleBilinear(h*p*o+l,f*p*s+u)};return this._elevationSamplerCache.set(t,c),c}_getDEMTileMatrix(e,t){let r=`${t.tileID.key}/${e.key}`,i=this._demMatrixCache.get(r);if(i)return i;let a=e.canonical.z-t.tileID.canonical.z,n=e.canonical.x-(e.canonical.x>>a<>a<0,r=t&&e.canonical.y===0,i=t&&e.canonical.y===(1<{a=Tr(+a,this.minZoom,this.maxZoom);let n={center:new ar(i.lng,i.lat),zoom:a},o=this._helper._lngRange;!this._helper._renderWorldCopies&&o===null&&(o=[-179.9999999999,180-1e-10]);let s=this.tileSize*qo(n.zoom),l=0,u=s,c=0,h=s,f=0,d=0,{x:p,y:m}=this.size;if(this._helper._latRange){let A=this._helper._latRange;l=Qd(A[1])*s,u=Qd(A[0])*s,u-lu&&(b=u-A)}if(o){let A=(c+h)/2,T=g;this._helper._renderWorldCopies&&(T=rl(g,A-s/2,A+s/2));let M=p/2;T-Mh&&(x=h-M)}if(x!==void 0||b!==void 0){let A=new qe(x!=null?x:g,b!=null?b:y);n.center=Cm(s,A).wrap()}return n},this.applyConstrain=(i,a)=>this._helper.applyConstrain(i,a),this._helper=r!=null?r:new NF({calcMatrices:()=>this._calcMatrices(),defaultConstrain:(i,a)=>this.defaultConstrain(i,a)},t),this._coveringTilesDetailsProvider=new vje}clone(){let t=new uue;return t.apply(this,!1),t}apply(t,r){this._helper.apply(t,r)}get cameraPosition(){return this._cameraPosition}get projectionMatrix(){return this._projectionMatrix}get modelViewProjectionMatrix(){return this._viewProjMatrix}get inverseProjectionMatrix(){return this._invProjMatrix}get mercatorMatrix(){return this._mercatorMatrix}getVisibleUnwrappedCoordinates(t){let r=[new C2(0,t)];if(this._helper._renderWorldCopies){let i=this.screenPointToMercatorCoordinate(new qe(0,0)),a=this.screenPointToMercatorCoordinate(new qe(this._helper._width,0)),n=this.screenPointToMercatorCoordinate(new qe(this._helper._width,this._helper._height)),o=this.screenPointToMercatorCoordinate(new qe(0,this._helper._height)),s=Math.floor(Math.min(i.x,a.x,n.x,o.x)),l=Math.floor(Math.max(i.x,a.x,n.x,o.x));for(let u=s-1;u<=l+1;u++)u!==0&&r.push(new C2(u,t))}return r}getCameraFrustum(){return LF.fromInvProjectionMatrix(this._invViewProjMatrix,this.worldSize)}getClippingPlane(){return null}getCoveringTilesDetailsProvider(){return this._coveringTilesDetailsProvider}recalculateZoomAndCenter(t){let r=this.screenPointToLocation(this.centerPoint,t),i=t?t.getElevationForLngLat(r,this):0;this._helper.recalculateZoomAndCenter(i)}setLocationAtPoint(t,r,i=this.elevation){let a=i-this.elevation,n=this.screenPointToMercatorCoordinateAtZ(r,a),o=this.screenPointToMercatorCoordinateAtZ(this.centerPoint,0),s=wi.fromLngLat(t),l=new wi(s.x-(n.x-o.x),s.y-(n.y-o.y));this.setCenter(l==null?void 0:l.toLngLat()),this._helper._renderWorldCopies&&this.setCenter(this.center.wrap())}locationToScreenPoint(t,r){return r?this.coordinatePoint(wi.fromLngLat(t),r.getElevationForLngLat(t,this),this._pixelMatrix3D):this.coordinatePoint(wi.fromLngLat(t))}screenPointToLocation(t,r){var i;return(i=this.screenPointToMercatorCoordinate(t,r))==null?void 0:i.toLngLat()}screenPointToLocationAtElevation(t,r){var i;return(i=this.screenPointToMercatorCoordinateAtZ(t,r-this.elevation))==null?void 0:i.toLngLat()}screenPointToMercatorCoordinate(t,r){if(r){let i=this.screenTerrainPointToMercatorCoordinate(t,r);if(i!=null)return i}return this.screenPointToMercatorCoordinateAtZ(t)}screenTerrainPointToMercatorCoordinate(t,r){let i=r.getCoverageIndex();if(!i)return null;let{near:a,far:n}=this.getRaySegmentFromPixel(t),o=this.worldSize,s=n[0]-a[0],l=n[1]-a[1],u=n[2]-a[2],c={index:i,exaggeration:r.exaggeration,near:a,dx:s,dy:l,dz:u,worldSize:o},h=0,f=1;if(u===0){if(a[2]>i.maxElevation||a[2]f)return null}let d=Math.hypot(s,l),p=Tr(Math.ceil(d*(f-h)/4),1,512),m=0,g=!Yw(c,0);for(let y=0;y<=p;y++){let x=h+(f-h)*y/p;if(!g)g=!Yw(c,x);else if(Yw(c,x)){let{lo:b,hi:_}=lue(c,Yw,m,x,.001/d),A=s6(c,b),T=s6(c,_),M=a[2]+b*u-A.elevation,S=a[2]+_*u-T.elevation,k=A.covered&&M>S?Tr(b+M*(_-b)/(M-S),b,_):_;return new wi((a[0]+k*s)/o,(a[1]+k*l)/o,s6(c,k).elevation)}m=x}return null}getRaySegmentFromPixel(t){let r=[t.x,t.y,0,1],i=[t.x,t.y,1,1];Kn(r,r,this._pixelMatrixInverse),Kn(i,i,this._pixelMatrixInverse);let a=r[3],n=i[3],o=this.elevation;return{near:[r[0]/a,r[1]/a,r[2]/a+o],far:[i[0]/n,i[1]/n,i[2]/n+o]}}screenPointToMercatorCoordinateAtZ(t,r){let i=r||0,{near:a,far:n}=this.getRaySegmentFromPixel(t),o=a[2]===n[2]?0:(i+this.elevation-a[2])/(n[2]-a[2]);return new wi(wa.number(a[0],n[0],o)/this.worldSize,wa.number(a[1],n[1],o)/this.worldSize,i)}coordinatePoint(t,r=0,i=this._pixelMatrix){let a=this._coordinateClipPoint(t,r,i),n=a[3];return n>0?new qe(a[0]/n,a[1]/n):this._offScreenPointBehindCamera(a[0],a[1],n)}_coordinateClipPoint(t,r,i){let a=[t.x*this.worldSize,t.y*this.worldSize,r,1];return Kn(a,a,i)}_offScreenPointBehindCamera(t,r,i){let a=this.width/2,n=this.height/2,o=t-a*i,s=r-n*i;o===0&&s===0&&(s=1);let l=a+this.width,u=n+this.height,c=Math.min(o===0?1/0:l/Math.abs(o),s===0?1/0:u/Math.abs(s));return new qe(a+o*c,n+s*c)}getBounds(){let t=Math.max(0,this._helper._height/2-Fm(this));return new Vu().extend(this.screenPointToLocation(new qe(0,t))).extend(this.screenPointToLocation(new qe(this._helper._width,t))).extend(this.screenPointToLocation(new qe(this._helper._width,this._helper._height))).extend(this.screenPointToLocation(new qe(0,this._helper._height)))}isPointOnMapSurface(t,r){return r?this.screenTerrainPointToMercatorCoordinate(t,r)!=null:t.y>this.centerPoint.y-Fm(this)}calculatePosMatrix(t,r=!1,i=!1){var l;let a=(l=t.key)!=null?l:Nd(t.wrap,t.canonical.z,t.canonical.z,t.canonical.x,t.canonical.y),n=r?this._alignedPosMatrixCache:this._posMatrixCache;if(n.has(a)){let u=n.get(a);return i?u.f32:u.f64}let o=Iw(t,this.worldSize);Hd(o,r?this._alignedProjMatrix:this._viewProjMatrix,o);let s={f64:o,f32:new Float32Array(o)};return n.set(a,s),i?s.f32:s.f64}calculateFogMatrix(t){let r=t.key,i=this._fogMatrixCacheF32;if(i.has(r))return i.get(r);let a=Iw(t,this.worldSize);return Hd(a,this._fogMatrix,a),i.set(r,new Float32Array(a)),i.get(r)}calculateCenterFromCameraLngLatAlt(t,r,i,a){return this._helper.calculateCenterFromCameraLngLatAlt(t,r,i,a)}calculateCameraOptionsFromTo(t,r,i,a){let n=wi.fromLngLat(t,r),o=wi.fromLngLat(i,a),s=o.x-n.x,l=o.y-n.y,u=o.z-n.z,c=Math.hypot(s,l,u);if(c===0)throw Error("Can't calculate camera options with same From and To");let h=Math.hypot(s,l),f=Jn(this.cameraToCenterDistance/c/this.tileSize),d=Fu(Math.atan2(s,-l)),p=Fu(Math.acos(h/c));return p=u<0?90-p:90+p,{center:o.toLngLat(),elevation:a,zoom:f,pitch:p,bearing:d}}_calculateNearFarZ(t,r,i){let a=Math.min(this.elevation,this.minElevationForCurrentTile,this.getCameraAltitude()-100),n=t-a*this._helper._pixelPerMeter/Math.cos(r),o=a<0?n:t,s=Math.PI/2+this.pitchInRadians,l=pa(this.fov)*(Math.abs(Math.cos(pa(this.roll)))*this.height+Math.abs(Math.sin(pa(this.roll)))*this.width)/this.height*(.5+i.y/this.height),u=Math.sin(l)*o/Math.sin(Tr(Math.PI-s-l,.01,Math.PI-.01)),c=Fm(this),h=Math.atan(c/this._helper.cameraToCenterDistance),f=pa(90-Xf),d=h>f?2*h*(.5+i.y/(c*2)):f,p=Math.sin(d)*o/Math.sin(Tr(Math.PI-s-d,.01,Math.PI-.01)),m=Math.min(u,p);this._helper._farZ=(Math.cos(Math.PI/2-r)*m+o)*1.01,this._helper._nearZ=this._helper._height/50}_calcMatrices(t=this._helper.autoCalculateNearFarZ){let r=this.centerOffset,i=Ou(this.worldSize,this.center),a=i.x,n=i.y,o=pa(Math.min(this.pitch,Xf)),s=Math.max(this._helper.cameraToCenterDistance/2,this._helper.cameraToCenterDistance+this._helper._elevation*this._helper._pixelPerMeter/Math.cos(o));t&&this._calculateNearFarZ(s,o,r);let l;l=new Float64Array(16),X4(l,this.fovInRadians,this._helper._width/this._helper._height,this._helper._nearZ,this._helper._farZ),this._invProjMatrix=new Float64Array(16),qGe(this._invProjMatrix,l),l[8]=-r.x*2/this._helper._width,l[9]=r.y*2/this._helper._height,this._projectionMatrix=W4(l),Xn(l,l,[1,-1,1]),Qa(l,l,[0,0,-this._helper.cameraToCenterDistance]),bh(l,l,-this.rollInRadians),Zd(l,l,this.pitchInRadians),bh(l,l,-this.bearingInRadians),Qa(l,l,[-a,-n,0]),this._mercatorMatrix=Xn([],l,[this.worldSize,this.worldSize,this.worldSize]),Xn(l,l,[1,1,this._helper._pixelPerMeter]),this._pixelMatrix=Hd(new Float64Array(16),this.clipSpaceToPixelsMatrix,l),Qa(l,l,[0,0,-this.elevation]),this._viewProjMatrix=l,this._invViewProjMatrix=a2([],l);let u=[0,0,-1,1];Kn(u,u,this._invViewProjMatrix),this._cameraPosition=[u[0]/u[3],u[1]/u[3],u[2]/u[3]],this._fogMatrix=new Float64Array(16),X4(this._fogMatrix,this.fovInRadians,this.width/this.height,s,this._helper._farZ),this._fogMatrix[8]=-r.x*2/this.width,this._fogMatrix[9]=r.y*2/this.height,Xn(this._fogMatrix,this._fogMatrix,[1,-1,1]),Qa(this._fogMatrix,this._fogMatrix,[0,0,-this.cameraToCenterDistance]),bh(this._fogMatrix,this._fogMatrix,-this.rollInRadians),Zd(this._fogMatrix,this._fogMatrix,this.pitchInRadians),bh(this._fogMatrix,this._fogMatrix,-this.bearingInRadians),Qa(this._fogMatrix,this._fogMatrix,[-a,-n,0]),Xn(this._fogMatrix,this._fogMatrix,[1,1,this._helper._pixelPerMeter]),Qa(this._fogMatrix,this._fogMatrix,[0,0,-this.elevation]),this._pixelMatrix3D=Hd(new Float64Array(16),this.clipSpaceToPixelsMatrix,l);let c=this._helper._width%2/2,h=this._helper._height%2/2,f=Math.cos(this.bearingInRadians),d=Math.sin(-this.bearingInRadians),p=a-Math.round(a)+f*c+d*h,m=n-Math.round(n)+f*h+d*c,g=new Float64Array(l);if(Qa(g,g,[p>.5?p-1:p,m>.5?m-1:m,0]),this._alignedProjMatrix=g,l=a2(new Float64Array(16),this._pixelMatrix),!l)throw Error("failed to invert matrix");this._pixelMatrixInverse=l,this._clearMatrixCaches()}_clearMatrixCaches(){this._posMatrixCache.clear(),this._alignedPosMatrixCache.clear(),this._fogMatrixCacheF32.clear()}maxPitchScaleFactor(){if(!this._pixelMatrixInverse)return 1;let t=this.screenPointToMercatorCoordinate(new qe(0,0)),r=[t.x*this.worldSize,t.y*this.worldSize,0,1];return Kn(r,r,this._pixelMatrix)[3]/this._helper.cameraToCenterDistance}getCameraPoint(){return this._helper.getCameraPoint()}getCameraAltitude(){return Math.cos(this.pitchInRadians)*this.cameraToCenterDistance/this.pixelsPerMeter+this.elevation}getCameraLngLat(){let t=Wf(1,this.center.lat)*this.worldSize,r=this._helper.cameraToCenterDistance/t;return pC(this.center,this.elevation,this.pitch,this.bearing,r).toLngLat()}getProjectionData(t){let{overscaledTileID:r,aligned:i,applyTerrainMatrix:a}=t,n=this._helper.getMercatorTileCoordinates(r),o=r?this.calculatePosMatrix(r,i,!0):null,s;return s=r!=null&&r.terrainRttPosMatrix32f&&a?r.terrainRttPosMatrix32f:o||Mk(),{mainMatrix:s,tileMercatorCoords:n,clippingPlane:[0,0,0,0],projectionTransition:0,fallbackMatrix:s,clipAntimeridian:!1}}isLocationOccluded(t,r,i){if(!(r!=null&&r.getCoverageIndex()))return!1;let a=wi.fromLngLat(t);i!=null||(i=r.getElevationForLngLat(t,this));let n=this._coordinateClipPoint(a,i,this._pixelMatrix3D),o=n[3];if(o<=0||n[2]>o)return!0;let s=new qe(n[0]/o,n[1]/o),l=this.screenTerrainPointToMercatorCoordinate(s,r);if(l==null)return!1;let u=this.getRaySegmentFromPixel(s),c=Hse(u,a.x*this.worldSize,a.y*this.worldSize,i);return Hse(u,l.x*this.worldSize,l.y*this.worldSize,l.z){if(l&&e.setZoom(wa.number(r,d,b)),Ek(a,n)||hue({startEulerAngles:a,endEulerAngles:n,tr:e,k:b,useSlerp:a.roll!=n.roll}),s&&(e.interpolatePadding(i,t.padding,b),c=e.centerPoint.add(t.offsetAsPoint)),t.around)e.setLocationAtPoint(t.around,t.aroundPoint);else{let _=qo(e.zoom-r),A=(d>r?Math.min(2,g):Math.max(.5,g))**(1-b),T=Cm(e.worldSize,p.add(m.mult(b*A)).mult(_));e.setLocationAtPoint(e.renderWorldCopies?T.wrap():T,c)}},x=this._transformAtAnimationEnd(e,d,n,t.padding);return t.around?x.setLocationAtPoint(t.around,t.aroundPoint):x.setLocationAtPoint(f,x.centerPoint.add(t.offsetAsPoint)),{easeFunc:y,isZooming:l,elevationCenter:x.center}}handleFlyTo(e,t){let r=t.zoom!==void 0,i=e.zoom,a=e.applyConstrain(ar.convert(t.center||t.locationAtOffset),r?+t.zoom:i),n=a.center,o=a.zoom;h6(e,n);let s=e.worldSize,l=Ou(s,t.locationAtOffset),u=Ou(s,n).sub(l),c=u.mag(),h=qo(o-i),f=t.minZoom===void 0?e.minZoom:+t.minZoom,d=Math.max(f,e.minZoom),p=Math.min(d,i,o),m=e.applyConstrain(n,p).zoom,g=qo(m-i),y=(b,_,A,T)=>{e.setZoom(b===1?o:i+Jn(_));let M=b===1?n:Cm(s,l.add(u.mult(A)));e.setLocationAtPoint(e.renderWorldCopies?M.wrap():M,T)},x=this._transformAtAnimationEnd(e,o,{roll:t.roll,pitch:t.pitch,bearing:t.bearing},t.padding);return x.setLocationAtPoint(n,x.centerPoint.add(t.offsetAsPoint)),{easeFunc:y,scaleOfZoom:h,targetCenter:x.center,scaleOfMinZoom:g,pixelPathLength:c}}_transformAtAnimationEnd(e,t,r,i){let a=e.clone();return a.setZoom(t),a.setRoll(r.roll),a.setPitch(r.pitch),a.setBearing(r.bearing),a.setPadding(i),a}},xje=()=>Zse||(Zse=new Ln({type:new Gt(Xe.projection.type,"type")})),HC=new Fw({fill:new Tc(128,2),line:new Tc(512,0),tile:new Tc(128,32),stencil:new Tc(128,1),circle:3}),due=class{constructor(){this._tileMeshCache={}}get name(){return"vertical-perspective"}get transitionState(){return 1}get useSubdivision(){return!0}get shaderVariantName(){return"globe"}get shaderDefine(){return"#define GLOBE"}get shaderPreludeCode(){return Ic.projectionGlobe}get vertexShaderPreludeCode(){return Ic.projectionMercator.vertexSource}get subdivisionGranularity(){return HC}get useGlobeControls(){return!0}destroy(){}_getMeshKey(e){return`${e.granularity.toString(36)}_${e.generateBorders?"b":""}${e.extendToNorthPole?"n":""}${e.extendToSouthPole?"s":""}`}getMeshFromTileID(e,t,r,i,a){let n=(a==="stencil"?HC.stencil:HC.tile).getGranularityForZoomLevel(t.z),o=t.y===0&&i,s=t.y===(1<0}get currentProjection(){return this.useGlobeRendering?this._verticalPerspectiveProjection:this._mercatorProjection}get name(){return"globe"}get useSubdivision(){return this.currentProjection.useSubdivision}get shaderVariantName(){return this.currentProjection.shaderVariantName}get shaderDefine(){return this.currentProjection.shaderDefine}get shaderPreludeCode(){return this.currentProjection.shaderPreludeCode}get vertexShaderPreludeCode(){return this.currentProjection.vertexShaderPreludeCode}get subdivisionGranularity(){return this.currentProjection.subdivisionGranularity}get useGlobeControls(){return this.transitionState>0}destroy(){this._mercatorProjection.destroy(),this._verticalPerspectiveProjection.destroy()}getMeshFromTileID(e,t,r,i,a){return this.currentProjection.getMeshFromTileID(e,t,r,i,a)}setProjection(e){this._transitionable.setValue("type",(e==null?void 0:e.type)||"mercator")}updateTransitions(e){this._transitioning=this._transitionable.transitioned(e,this._transitioning)}hasTransition(){return this._transitioning.hasTransition()||this.currentProjection.hasTransition()}recalculate(e){this.properties=this._transitioning.possiblyEvaluate(e)}};ZC=Math.PI*.98;Pje=class{constructor(e){this._cachePrevious=new Map,this._cache=new Map,this._hadAnyChanges=!1,this._boundingVolumeFactory=e}swapBuffers(){if(!this._hadAnyChanges)return;let e=this._cachePrevious;this._cachePrevious=this._cache,this._cache=e,this._cache.clear(),this._hadAnyChanges=!1}getTileBoundingVolume(e,t,r,i){let a=`${e.z}_${e.x}_${e.y}_${i!=null&&i.terrain?"t":""}_${Math.round(r)}`,n=this._cache.get(a);if(n)return n;let o=this._cachePrevious.get(a);if(o)return this._cache.set(a,o),o;let s=this._boundingVolumeFactory(e,t,r,i);return this._cache.set(a,s),this._hadAnyChanges=!0,s}},WC=class xF{constructor(t,r,i,a){this.min=i,this.max=a,this.points=t,this.planes=r}static fromAabb(t,r){let i=[];for(let a=0;a<8;a++)i.push([(a>>0&1)==1?r[0]:t[0],(a>>1&1)==1?r[1]:t[1],(a>>2&1)==1?r[2]:t[2]]);return new xF(i,[[-1,0,0,r[0]],[1,0,0,-t[0]],[0,-1,0,r[1]],[0,1,0,-t[1]],[0,0,-1,r[2]],[0,0,1,-t[2]]],t,r)}static fromCenterSizeAngles(t,r,i){let a=tw([],i[0],i[1],i[2]),n=Q4([],[r[0],0,0],a),o=Q4([],[0,r[1],0],a),s=Q4([],[0,0,r[2]],a),l=[...t],u=[...t];for(let h=0;h<8;h++)for(let f=0;f<3;f++){let d=t[f]+n[f]*((h>>0&1)==1?1:-1)+o[f]*((h>>1&1)==1?1:-1)+s[f]*((h>>2&1)==1?1:-1);l[f]=Math.min(l[f],d),u[f]=Math.max(u[f],d)}let c=[];for(let h=0;h<8;h++){let f=[...t];el(f,f,da([],n,(h>>0&1)==1?1:-1)),el(f,f,da([],o,(h>>1&1)==1?1:-1)),el(f,f,da([],s,(h>>2&1)==1?1:-1)),c.push(f)}return new xF(c,[[...n,-en(n,c[0])],[...o,-en(o,c[0])],[...s,-en(s,c[0])],[-n[0],-n[1],-n[2],-en(n,c[7])],[-o[0],-o[1],-o[2],-en(o,c[7])],[-s[0],-s[1],-s[2],-en(s,c[7])]],l,u)}intersectsFrustum(t){let r=!0,i=this.points.length,a=this.planes.length,n=t.planes.length,o=t.points.length;for(let s=0;s=0&&u++}if(u===0)return 0;u=0&&u++}if(u===0)return 0}return 1}intersectsPlane(t){let r=this.points.length,i=0;for(let a=0;a=0&&i++}return i===r?2:i===0?0:1}};Ije=class{constructor(){this._boundingVolumeCache=new Pje(this._computeTileBoundingVolume)}prepareNextFrame(){this._boundingVolumeCache.swapBuffers()}distanceToTile2d(e,t,r,i){let a=1<4}allowWorldCopies(){return!1}getTileBoundingVolume(e,t,r,i){return this._boundingVolumeCache.getTileBoundingVolume(e,t,r,i)}_computeTileBoundingVolume(e,t,r,i){var o,s;let a=Math.min(0,r),n=Math.max(0,r);if(i!=null&&i.terrain){let l=new Qn(e.z,t,e.z,e.x,e.y),u=i.terrain.getMinMaxElevation(l);a=(o=u.minElevation)!=null?o:a,n=Math.max((s=u.maxElevation)!=null?s:n,n)}if(a/=No,n/=No,a+=1,n+=1,e.z<=0)return WC.fromAabb([-n,-n,-n],[n,n,n]);if(e.z===1)return WC.fromAabb([e.x===0?-n:0,e.y===0?0:-n,-n],[e.x===0?0:n,e.y===0?n:0,n]);{let l=[Kf(0,0,e.x,e.y,e.z),Kf(ct,0,e.x,e.y,e.z),Kf(ct,ct,e.x,e.y,e.z),Kf(0,ct,e.x,e.y,e.z)],u=[];for(let P of l)u.push(da([],P,n));if(n!==a)for(let P of l)u.push(da([],P,a));e.y===0&&u.push([0,1,0]),e.y===(1<=(1<{let n=Tr(i.lat,-Ru,Ru),o=Tr(+a,this.minZoom+eo(0,n),this.maxZoom);return{center:new ar(i.lng,n),zoom:o}},this.applyConstrain=(i,a)=>this._helper.applyConstrain(i,a),this._helper=r!=null?r:new NF({calcMatrices:()=>this._calcMatrices(),defaultConstrain:(i,a)=>this.defaultConstrain(i,a)},t),this._coveringTilesDetailsProvider=new Ije}clone(){let t=new yue;return t.apply(this,!1),t}apply(t,r){this._helper.apply(t,r)}get projectionMatrix(){return this._projectionMatrix}get modelViewProjectionMatrix(){return this._globeViewProjMatrixF64}get inverseProjectionMatrix(){return this._globeProjMatrixInverted}get cameraPosition(){let t=Ai();return t[0]=this._cameraPosition[0],t[1]=this._cameraPosition[1],t[2]=this._cameraPosition[2],t}get cameraToCenterDistance(){return this._helper.cameraToCenterDistance}getProjectionData(t){let{overscaledTileID:r,applyGlobeMatrix:i}=t,a=this._helper.getMercatorTileCoordinates(r);return{mainMatrix:this._globeViewProjMatrix32f,tileMercatorCoords:a,clippingPlane:this._cachedClippingPlane,projectionTransition:+!!i,fallbackMatrix:this._globeViewProjMatrix32f,clipAntimeridian:(r==null?void 0:r.canonical.z)===0}}_computeClippingPlane(t){let r=this.pitchInRadians,i=this.cameraToCenterDistance/t,a=Math.sin(r)*i,n=Math.cos(r)*i+1,o=1/Math.sqrt(a*a+n*n)*1,s=-a,l=n,u=Math.sqrt(s*s+l*l);s/=u,l/=u;let c=[0,s,l];ew(c,c,[0,0,0],-this.bearingInRadians),Am(c,c,[0,0,0],-1*this.center.lat*Math.PI/180),Yd(c,c,[0,0,0],this.center.lng*Math.PI/180);let h=1/Hl(c);return da(c,c,h),[...c,-o*h]}isLocationOccluded(t,r,i){let a=r==null?void 0:r.getCoverageIndex();i!=null||(i=a?r.getElevationForLngLat(t,this):0);let n=ele(t,i);if(!this.isSurfacePointVisible(n))return!0;if(!a)return!1;let o=this._projectSurfacePointToScreen(n),s=this.cameraPosition,l=this.getRayDirectionFromPixel(o),u=tle(s,l,n);if(u<=0)return!0;let c=this.screenTerrainPointToMercatorCoordinate(o,r);return c!=null&&tle(s,l,ele(c.toLngLat(),c.z))n&&(n=f),ds&&(s=d)}let c=[u.lng+o,u.lat+l,u.lng+n,u.lat+s];return this.isSurfacePointOnScreen([0,1,0])&&(c[3]=90,c[0]=-180,c[2]=180),this.isSurfacePointOnScreen([0,-1,0])&&(c[1]=-90,c[0]=-180,c[2]=180),new Vu(c)}calculateCenterFromCameraLngLatAlt(t,r,i,a){return this._helper.calculateCenterFromCameraLngLatAlt(t,r,i,a)}calculateCameraOptionsFromTo(t,r,i,a){let n=ar.convert(i),o=zn(ar.convert(t));da(o,o,1+r/No);let s=zn(n),l=da(Ai(),s,1+a/No),u=J4(Ai(),o,s),c=Hl(u);if(c=-x&&m<=x,_=y>=-x&&y<=x,A,T;if(b&&_){let P=this.center.lng*Math.PI/180,I=this.center.lat*Math.PI/180,B=u2(f,P),L=u2(m,I),z=u2(d,P),q=u2(y,I);B+L=0}isSurfacePointOnScreen(t){if(!this.isSurfacePointVisible(t))return!1;let r=$f();return Kn(r,[...t,1],this._globeViewProjMatrixF64),r[0]/=r[3],r[1]/=r[3],r[2]/=r[3],r[0]>-1&&r[0]<1&&r[1]>-1&&r[1]<1&&r[2]>-1&&r[2]<1}unprojectScreenPoint(t){let r=this._cameraPosition,i=this.getRayDirectionFromPixel(t),a=Ww(r,i);if(a){let c=Ai();el(c,r,[i[0]*a.tMin,i[1]*a.tMin,i[2]*a.tMin]);let h=Ai();return Bo(h,c),H2(h)}let n=this._cachedClippingPlane,o=n[0]*i[0]+n[1]*i[1]+n[2]*i[2],s=-iw(n,r)/o,l=Ai();if(s>0)el(l,r,[i[0]*s,i[1]*s,i[2]*s]);else{let c=Ai();el(c,r,[i[0]*2,i[1]*2,i[2]*2]);let h=iw(this._cachedClippingPlane,c);Cc(l,c,[this._cachedClippingPlane[0]*h,this._cachedClippingPlane[1]*h,this._cachedClippingPlane[2]*h])}let u=Eje(n);return H2(kje(u.center,u.radius,l))}getProjectionDataForCustomLayer(t=!0){let r=this.getProjectionData({overscaledTileID:new Qn(0,0,0,0,0),applyGlobeMatrix:t});return r.tileMercatorCoords=[0,0,1,1],r}getFastPathSimpleProjectionMatrix(t){}};rle=class xue{get pixelsToClipSpaceMatrix(){return this._helper.pixelsToClipSpaceMatrix}get clipSpaceToPixelsMatrix(){return this._helper.clipSpaceToPixelsMatrix}get pixelsToGLUnits(){return this._helper.pixelsToGLUnits}get centerOffset(){return this._helper.centerOffset}get size(){return this._helper.size}get rotationMatrix(){return this._helper.rotationMatrix}get centerPoint(){return this._helper.centerPoint}get pixelsPerMeter(){return this._helper.pixelsPerMeter}setMinZoom(t){this._helper.setMinZoom(t)}setMaxZoom(t){this._helper.setMaxZoom(t)}setMinPitch(t){this._helper.setMinPitch(t)}setMaxPitch(t){this._helper.setMaxPitch(t)}setRenderWorldCopies(t){this._helper.setRenderWorldCopies(t)}setBearing(t){this._helper.setBearing(t)}setPitch(t){this._helper.setPitch(t)}setRoll(t){this._helper.setRoll(t)}setFov(t){this._helper.setFov(t)}setZoom(t){this._helper.setZoom(t)}setCenter(t){this._helper.setCenter(t)}setElevation(t){this._helper.setElevation(t)}setMinElevationForCurrentTile(t){this._helper.setMinElevationForCurrentTile(t)}setPadding(t){this._helper.setPadding(t)}interpolatePadding(t,r,i){this._helper.interpolatePadding(t,r,i)}isPaddingEqual(t){return this._helper.isPaddingEqual(t)}resize(t,r,i=!0){this._helper.resize(t,r,i)}getMaxBounds(){return this._helper.getMaxBounds()}setMaxBounds(t){this._helper.setMaxBounds(t)}setConstrainOverride(t){this._helper.setConstrainOverride(t)}overrideNearFarZ(t,r){this._helper.overrideNearFarZ(t,r)}clearNearFarZOverride(){this._helper.clearNearFarZOverride()}getCameraQueryGeometry(t){return this._helper.getCameraQueryGeometry(this.getCameraPoint(),t)}get tileSize(){return this._helper.tileSize}get tileZoom(){return this._helper.tileZoom}get scale(){return this._helper.scale}get worldSize(){return this._helper.worldSize}get width(){return this._helper.width}get height(){return this._helper.height}get lngRange(){return this._helper.lngRange}get latRange(){return this._helper.latRange}get minZoom(){return this._helper.minZoom}get maxZoom(){return this._helper.maxZoom}get zoom(){return this._helper.zoom}get center(){return this._helper.center}get minPitch(){return this._helper.minPitch}get maxPitch(){return this._helper.maxPitch}get pitch(){return this._helper.pitch}get pitchInRadians(){return this._helper.pitchInRadians}get roll(){return this._helper.roll}get rollInRadians(){return this._helper.rollInRadians}get bearing(){return this._helper.bearing}get bearingInRadians(){return this._helper.bearingInRadians}get fov(){return this._helper.fov}get fovInRadians(){return this._helper.fovInRadians}get elevation(){return this._helper.elevation}get minElevationForCurrentTile(){return this._helper.minElevationForCurrentTile}get padding(){return this._helper.padding}get unmodified(){return this._helper.unmodified}get renderWorldCopies(){return this._helper.renderWorldCopies}get cameraToCenterDistance(){return this._helper.cameraToCenterDistance}get constrainOverride(){return this._helper.constrainOverride}get nearZ(){return this._helper.nearZ}get farZ(){return this._helper.farZ}get autoCalculateNearFarZ(){return this._helper.autoCalculateNearFarZ}get isGlobeRendering(){return this._globeness>0}setTransitionState(t){this._globeness=t,this._calcMatrices(),this._verticalPerspectiveTransform.getCoveringTilesDetailsProvider().prepareNextFrame(),this._mercatorTransform.getCoveringTilesDetailsProvider().prepareNextFrame()}get currentTransform(){return this.isGlobeRendering?this._verticalPerspectiveTransform:this._mercatorTransform}constructor(t){this._globeness=1,this.defaultConstrain=(r,i)=>this.currentTransform.defaultConstrain(r,i),this.applyConstrain=(r,i)=>this._helper.applyConstrain(r,i),this._helper=new NF({calcMatrices:()=>this._calcMatrices(),defaultConstrain:(r,i)=>this.defaultConstrain(r,i)},t),this._globeness=1,this._mercatorTransform=new f6(void 0,this._helper),this._verticalPerspectiveTransform=new gue(void 0,this._helper)}clone(){let t=new xue;return t._globeness=this._globeness,t.apply(this,!1),t}apply(t,r){this._helper.apply(t,r)}get projectionMatrix(){return this.currentTransform.projectionMatrix}get modelViewProjectionMatrix(){return this.currentTransform.modelViewProjectionMatrix}get inverseProjectionMatrix(){return this.currentTransform.inverseProjectionMatrix}get cameraPosition(){return this.currentTransform.cameraPosition}getProjectionData(t){let r=this._mercatorTransform.getProjectionData(t),i=this._verticalPerspectiveTransform.getProjectionData(t);return{mainMatrix:this.isGlobeRendering?i.mainMatrix:r.mainMatrix,clippingPlane:i.clippingPlane,tileMercatorCoords:i.tileMercatorCoords,projectionTransition:t.applyGlobeMatrix?this._globeness:0,fallbackMatrix:r.fallbackMatrix,clipAntimeridian:i.clipAntimeridian}}isLocationOccluded(t,r,i){return this.currentTransform.isLocationOccluded(t,r,i)}transformLightDirection(t){return this.currentTransform.transformLightDirection(t)}getPixelScale(){return Wd(this._mercatorTransform.getPixelScale(),this._verticalPerspectiveTransform.getPixelScale(),this._globeness)}getCircleRadiusCorrection(){return Wd(this._mercatorTransform.getCircleRadiusCorrection(),this._verticalPerspectiveTransform.getCircleRadiusCorrection(),this._globeness)}getPitchedTextCorrection(t,r,i){let a=this._mercatorTransform.getPitchedTextCorrection(t,r,i),n=this._verticalPerspectiveTransform.getPitchedTextCorrection(t,r,i);return Wd(a,n,this._globeness)}projectTileCoordinates(t,r,i,a){return this.currentTransform.projectTileCoordinates(t,r,i,a)}_calcMatrices(){this._helper._width&&this._helper._height&&(this._verticalPerspectiveTransform._calcMatrices(),this._mercatorTransform._calcMatrices(this.autoCalculateNearFarZ&&!this.isGlobeRendering))}calculateFogMatrix(t){return this.currentTransform.calculateFogMatrix(t)}getVisibleUnwrappedCoordinates(t){return this.currentTransform.getVisibleUnwrappedCoordinates(t)}getCameraFrustum(){return this.currentTransform.getCameraFrustum()}getClippingPlane(){return this.currentTransform.getClippingPlane()}getCoveringTilesDetailsProvider(){return this.currentTransform.getCoveringTilesDetailsProvider()}recalculateZoomAndCenter(t){this.currentTransform.recalculateZoomAndCenter(t)}maxPitchScaleFactor(){return this._mercatorTransform.maxPitchScaleFactor()}getCameraPoint(){return this._helper.getCameraPoint()}getCameraAltitude(){return this.currentTransform.getCameraAltitude()}getCameraLngLat(){return this.currentTransform.getCameraLngLat()}populateCache(t){this._mercatorTransform.populateCache(t),this._verticalPerspectiveTransform.populateCache(t)}getBounds(){return this.currentTransform.getBounds()}calculateCenterFromCameraLngLatAlt(t,r,i,a){return this._helper.calculateCenterFromCameraLngLatAlt(t,r,i,a)}calculateCameraOptionsFromTo(t,r,i,a){return this.currentTransform.calculateCameraOptionsFromTo(t,r,i,a)}setLocationAtPoint(t,r,i){this.currentTransform.setLocationAtPoint(t,r,i)}locationToScreenPoint(t,r){return this.currentTransform.locationToScreenPoint(t,r)}screenPointToMercatorCoordinate(t,r){return this.currentTransform.screenPointToMercatorCoordinate(t,r)}screenTerrainPointToMercatorCoordinate(t,r){return this.currentTransform.screenTerrainPointToMercatorCoordinate(t,r)}screenPointToLocation(t,r){return this.currentTransform.screenPointToLocation(t,r)}screenPointToLocationAtElevation(t,r){return this.currentTransform.screenPointToLocationAtElevation(t,r)}isPointOnMapSurface(t,r){return this.currentTransform.isPointOnMapSurface(t,r)}getRayDirectionFromPixel(t){return this._verticalPerspectiveTransform.getRayDirectionFromPixel(t)}getProjectionDataForCustomLayer(t=!0){let r=this._mercatorTransform.getProjectionDataForCustomLayer(t);if(!this.isGlobeRendering)return r;let i=this._verticalPerspectiveTransform.getProjectionDataForCustomLayer(t);return i.fallbackMatrix=r.mainMatrix,i.projectionTransition=this._globeness,i}getFastPathSimpleProjectionMatrix(t){return this.currentTransform.getFastPathSimpleProjectionMatrix(t)}},bue=class kh{get useGlobeControls(){return!0}handlePanInertia(t,r){let i=Fje(t,r);return Math.abs(i.lng-r.center.lng)>180&&(i.lng=r.center.lng+179.5*Math.sign(i.lng-r.center.lng)),{easingCenter:i,easingOffset:new qe(0,0)}}handleMapControlsRollPitchBearingZoom(t,r){let i=t.around,a=r.screenPointToLocation(i);t.bearingDelta&&r.setBearing(r.bearing+t.bearingDelta),t.pitchDelta&&r.setPitch(r.pitch+t.pitchDelta),t.rollDelta&&r.setRoll(r.roll+t.rollDelta);let n=r.zoom;t.zoomDelta&&r.setZoom(r.zoom+t.zoomDelta);let o=r.zoom-n;if(o===0)return;let s=ws(r.center.lng,a.lng),l=s/(Math.abs(s/180)+1),u=ws(r.center.lat,a.lat),c=r.getRayDirectionFromPixel(i),h=r.cameraPosition,f=en(h,c)*-1,d=Ai();el(d,h,[c[0]*f,c[1]*f,c[2]*f]);let p=Hl(d),m=p-1,g=Math.exp(-Math.max(m-.3,0)*.5),y=c2(p,.95,.999,0,1),x=qm(r.worldSize,r.center.lat)/Math.min(r.width,r.height),b=c2(x,.9,.5,1,.25),_=Math.min(g,Wd(1,b,y)),A=(1-qo(-o))*_,T=r.center.lat,M=r.zoom,S=new ar(r.center.lng+l*A,Tr(r.center.lat+u*A,-Ru,Ru));r.setLocationAtPoint(a,i);let k=r.center,P=c2(Math.abs(s),45,85,0,1),I=Math.max(P,y)**.25,B=ws(k.lng,S.lng),L=ws(k.lat,S.lat);r.setCenter(new ar(k.lng+B*I,k.lat+L*I).wrap()),r.setZoom(M+eo(T,r.center.lat))}handleMapControlsPan(t,r,i){t.panDelta&&Dje(r,i,r.isPointOnMapSurface(t.around)?t.around:r.centerPoint,t.panDelta)}cameraForBoxAndBearing(t,r,i,a,n){let o=fue(t,r,i,a,n);if(!o)return;let s=r.left/n.width*2-1,l=(n.width-r.right)/n.width*2-1,u=r.top/n.height*-2+1,c=(n.height-r.bottom)/n.height*-2+1,h=ws(i.getWest(),i.getEast())<0,f=h?i.getEast():i.getWest(),d=h?i.getWest():i.getEast(),p=Math.max(i.getNorth(),i.getSouth()),m=Math.min(i.getNorth(),i.getSouth()),g=f+ws(f,d)*.5,y=p+ws(p,m)*.5,x=n.clone();x.setCenter(o.center),x.setBearing(o.bearing),x.setPitch(0),x.setRoll(0),x.setZoom(o.zoom);let b=x.modelViewProjectionMatrix,_=[zn(i.getNorthWest()),zn(i.getNorthEast()),zn(i.getSouthWest()),zn(i.getSouthEast()),zn(new ar(d,y)),zn(new ar(f,y)),zn(new ar(g,p)),zn(new ar(g,m))],A=zn(o.center),T=1/0;for(let M of _)s<0&&(T=kh.getLesserNonNegativeNonNull(T,kh.solveVectorScale(M,A,b,"x",s))),l>0&&(T=kh.getLesserNonNegativeNonNull(T,kh.solveVectorScale(M,A,b,"x",l))),u>0&&(T=kh.getLesserNonNegativeNonNull(T,kh.solveVectorScale(M,A,b,"y",u))),c<0&&(T=kh.getLesserNonNegativeNonNull(T,kh.solveVectorScale(M,A,b,"y",c)));if(!Number.isFinite(T)||T===0){cue();return}return o.zoom=Math.min(x.zoom+Jn(T),t.maxZoom),o}handleJumpToCenterZoom(t,r){let i=t.center.lat,a=t.applyConstrain(r.center?ar.convert(r.center):t.center,t.zoom).center;t.setCenter(a.wrap());let n=r.zoom===void 0?t.zoom+eo(i,a.lat):+r.zoom;t.zoom!==n&&t.setZoom(n)}handleEaseTo(t,r){let i=t.zoom,a=t.center,n=t.padding,o={roll:t.roll,pitch:t.pitch,bearing:t.bearing},s={roll:r.roll===void 0?t.roll:r.roll,pitch:r.pitch===void 0?t.pitch:r.pitch,bearing:r.bearing===void 0?t.bearing:r.bearing},l=r.zoom!==void 0,u=!t.isPaddingEqual(r.padding),c=!1,h=r.center?ar.convert(r.center):a,f=t.applyConstrain(h,i).center;h6(t,f);let d=t.clone();d.setCenter(f),d.setZoom(l?+r.zoom:i+eo(a.lat,h.lat)),d.setBearing(r.bearing);let p=new qe(Tr(t.centerPoint.x+r.offsetAsPoint.x,0,t.width),Tr(t.centerPoint.y+r.offsetAsPoint.y,0,t.height));d.setLocationAtPoint(f,p);let m=(r.offset&&r.offsetAsPoint.mag())>0?d.center:f,g=l?+r.zoom:i+eo(a.lat,m.lat),y=i+eo(a.lat,0),x=g+eo(m.lat,0),b=ws(a.lng,m.lng),_=ws(a.lat,m.lat),A=qo(x-y);return c=g!==i,{easeFunc:T=>{if(Ek(o,s)||hue({startEulerAngles:o,endEulerAngles:s,tr:t,k:T,useSlerp:o.roll!=s.roll}),u&&t.interpolatePadding(n,r.padding,T),r.around)Xr("Easing around a point is not supported under globe projection."),t.setLocationAtPoint(r.around,r.aroundPoint);else{let M=T*(x>y?Math.min(2,A):Math.max(.5,A))**(1-T),S=Xse(a,b,_,M);t.setCenter(S.wrap())}if(c){let M=wa.number(y,x,T)+eo(0,t.center.lat);t.setZoom(M)}},isZooming:c,elevationCenter:m}}handleFlyTo(t,r){let i=r.zoom!==void 0,a=t.center,n=t.zoom,o=t.padding,s=!t.isPaddingEqual(r.padding),l=t.applyConstrain(ar.convert(r.center||r.locationAtOffset),n).center,u=i?+r.zoom:t.zoom+eo(t.center.lat,l.lat),c=t.clone();c.setCenter(l),c.setZoom(u),c.setBearing(r.bearing);let h=new qe(Tr(t.centerPoint.x+r.offsetAsPoint.x,0,t.width),Tr(t.centerPoint.y+r.offsetAsPoint.y,0,t.height));c.setLocationAtPoint(l,h);let f=c.center;h6(t,f);let d=bje(t,a,f),p=n+eo(a.lat,0),m=u+eo(f.lat,0),g=qo(m-p),y=typeof r.minZoom=="number"?+r.minZoom:t.minZoom,x=Math.max(y,t.minZoom)+eo(f.lat,0),b=Math.min(x,p,m)+eo(0,f.lat),_=t.applyConstrain(f,b).zoom+eo(f.lat,0),A=qo(_-p),T=ws(a.lng,f.lng),M=ws(a.lat,f.lat);return{easeFunc:(S,k,P,I)=>{let B=Xse(a,T,M,P);s&&t.interpolatePadding(o,r.padding,S);let L=S===1?f:B;t.setCenter(L.wrap());let z=p+Jn(k);t.setZoom(S===1?u:z+eo(0,L.lat))},scaleOfZoom:g,targetCenter:f,scaleOfMinZoom:A,pixelPathLength:d}}static solveVectorScale(t,r,i,a,n){let o=n,s=a==="x"?[i[0],i[4],i[8],i[12]]:[i[1],i[5],i[9],i[13]],l=[i[3],i[7],i[11],i[15]],u=t[0]*s[0]+t[1]*s[1]+t[2]*s[2],c=t[0]*l[0]+t[1]*l[1]+t[2]*l[2],h=r[0]*s[0]+r[1]*s[1]+r[2]*s[2],f=r[0]*l[0]+r[1]*l[1]+r[2]*l[2],d=(h+s[3]-o*f-o*l[3])/(h-u-o*f+o*c);return h+o*c===u+o*f||l[3]*(u-h)+s[3]*(f-c)+u*f===h*c?null:d}static getLesserNonNegativeNonNull(t,r){return r!==null&&r>=0&&r{for(let n in this.tileManagers){let o=this.tileManagers[n].getSource().type;(o==="vector"||o==="geojson")&&this.tileManagers[n].reload()}},this.map=e,this.dispatcher=new Ple(CF(),e._getMapId()).setEventedParent(this),this.dispatcher.registerMessageHandler("GG",(n,o)=>this.getGlyphs(n,o)),this.dispatcher.registerMessageHandler("GI",(n,o)=>this.getImages(n,o)),this.dispatcher.registerMessageHandler("GDA",(n,o)=>this.getDashes(n,o)),this.imageManager=new bUe,this.imageManager.setEventedParent(this),this.imageManager.setMissingImageResolver(e._missingStyleImageResolver),this.patternAtlas=new wUe(this.imageManager);let r=((i=e._container)==null?void 0:i.lang)||typeof document<"u"&&((a=document.documentElement)==null?void 0:a.lang)||void 0;this.glyphManager=new FUe(e._requestManager,t.localIdeographFontFamily,r),this.lineAtlas=new RUe(256,512),this.crossTileSymbolIndex=new iue,this._setInitialValues(),this._resetUpdates(),this.dispatcher.broadcast("SR",lw()),Z2().on(fF,this._rtlPluginLoaded),this.on("data",n=>{if(n.dataType!=="source"||n.sourceDataType!=="metadata")return;let o=this.tileManagers[n.sourceId];if(!o)return;let s=o.getSource();if(s!=null&&s.vectorLayerIds)for(let l in this._layers){let u=this._layers[l];u.source===s.id&&this._validateLayer(u)}})}_setInitialValues(){var e;this._layers={},this._order=[],this.tileManagers={},this.zoomHistory=new B4,this._imagesListDirty=!1,this._globalState={},this._serializedLayers={},this.stylesheet=null,this.light=null,this.sky=null,this.projection&&(this.projection.destroy(),delete this.projection),this._loaded=!1,this._changed=!1,this._updatedLayers={},this._updatedSources={},this._changedImages={},this._glyphsDidChange=!1,this._updatedPaintProps={},this._layerOrderChanged=!1,this._symbolPlacementTriggered=!1,this._placedProjectionTransition=void 0,this.crossTileSymbolIndex=new(((e=this.crossTileSymbolIndex)==null?void 0:e.constructor)||Object),this.pauseablePlacement=void 0,this.placement=void 0,this.z=0}setGlobalStateProperty(e,t){var i,a,n;this._checkLoaded();let r=t===null?(n=(a=(i=this.stylesheet.state)==null?void 0:i[e])==null?void 0:a.default)!=null?n:null:t;return this._setGlobalStateValues({[e]:r}),this}getGlobalState(){return this._globalState}setGlobalState(e){this._checkLoaded();let t={};for(let r in e)t[r]=e[r].default;this._setGlobalStateValues(t)}_setGlobalStateValues(e){let t=[];for(let i in e)Iu(e[i],this._globalState[i])||t.push(i);if(t.length===0)return;let r=nr({},this._globalState);for(let i of t)this._globalState[i]=e[i];this._applyGlobalStateChanges(t,r)}_applyGlobalStateChanges(e,t){var n,o;let r=new Set,i={};for(let s of e)i[s]=this._globalState[s];for(let s in this._layers){let l=this._layers[s];l.retainPriorGlobalState(e,t);let u=l.getLayoutAffectingGlobalStateRefs(),c=l.getPaintAffectingGlobalStateRefs(),h=l.getVisibilityAffectingGlobalStateRefs();for(let f of e){if(u.has(f)&&r.add(l.source),c.has(f))for(let{name:d,value:p}of c.get(f))this._updatePaintProperty(l,d,p,{validate:!1});h!=null&&h.has(f)&&(l.recalculateVisibility(),this._updateLayer(l))}}let a={now:Ei(),transition:this.getTransition()};(n=this.light)==null||n.applyGlobalStateChange(e,t,a),(o=this.sky)==null||o.applyGlobalStateChange(e,t,a),this.dispatcher.broadcast("UGS",i);for(let s in this.tileManagers)r.has(s)&&(this._reloadSource(s),this._changed=!0)}loadURL(i){return Kt(this,arguments,function*(e,t={},r){this.fire(new Wl("dataloading")),t.validate=typeof t.validate!="boolean"||t.validate,this._loadStyleRequest=new AbortController;let a=this._loadStyleRequest;try{let n=yield this.map._requestManager.transformRequest(e,"Style");sw(a.signal);let o=yield f2(n,a);this._loadStyleRequest===a&&(this._loadStyleRequest=null),this._load(o.data,t,r)}catch(n){this._loadStyleRequest===a&&(this._loadStyleRequest=null),n&&!a.signal.aborted&&this.fire(new or(Wn(n)))}})}loadJSON(e,t={},r){this.fire(new Wl("dataloading")),this._frameRequest=new AbortController,Ss.frameAsync(this._frameRequest,this.map._ownerWindow).then(()=>{this._frameRequest=null,t.validate=t.validate!==!1,this._load(e,t,r)}).catch(()=>{})}loadEmpty(){this.fire(new Wl("dataloading")),this._load(zje,{validate:!1})}_load(e,t,r){var a,n,o;let i=t.transformStyle?t.transformStyle(r,e):e;if(!(t.validate&&Qk(this,i))){i=nr({},i),this._loaded=!0,this.stylesheet=i;for(let s in i.sources)this.addSource(s,i.sources[s],{validate:!1});i.sprite?this._loadSprite(i.sprite):this.imageManager.setLoaded(!0),this.glyphManager.setURL(i.glyphs),this.glyphManager.setFontFaces(i["font-faces"]),this._createLayers(),this.light=new IUe((a=this.stylesheet.light)!=null?a:{},this._globalState),this._setProjectionInternal(((n=this.stylesheet.projection)==null?void 0:n.type)||"mercator"),this.sky=new zUe(this.stylesheet.sky,this._globalState),this.sky.setEventedParent(this),this.map.setTerrain((o=this.stylesheet.terrain)!=null?o:null,{validate:!1}),this.fire(new Wl("data")),this.fire(new lF)}}_createLayers(){var t,r,i;let e=dse(this.stylesheet.layers);this.setGlobalState((t=this.stylesheet.state)!=null?t:null),this.dispatcher.broadcast("SL",e),this._order=e.map(a=>a.id),this._layers={},this._serializedLayers=null;for(let a of e){let n=Ow(a,this._globalState);if(n.setEventedParent(this,{layer:{id:a.id}}),this._layers[a.id]=n,Dw(n)&&this.tileManagers[n.source]){let o=(i=(r=a.paint)==null?void 0:r["raster-fade-duration"])!=null?i:n.paint.get("raster-fade-duration");this.tileManagers[n.source].setRasterFadeDuration(o)}}}_loadSprite(e,t=!1,r=void 0){return Kt(this,null,function*(){this.imageManager.setLoaded(!1);let i=new AbortController;this._spriteRequest=i;let a;try{let n=yield _Ue(e,this.map._requestManager,this.map.getPixelRatio(),i);if(!n)return;for(let o in n){let{loaded:s,removed:l}=this.imageManager.setSpriteImages(o,n[o]);this._markImagesChanged(l),t&&this._markImagesChanged(s)}}catch(n){a=n,i.signal.aborted||this.fire(new or(a))}finally{this._spriteRequest=null,this.imageManager.setLoaded(!0),t&&(this._changed=!0),this.dispatcher.broadcast("SI",this.imageManager.listImages()),this.fire(new Wl("data")),r==null||r(a)}})}_unloadSprite(){this._markImagesChanged(this.imageManager.removeAllSpriteImages()),this._imagesListDirty=!0,this._changed=!0,this.fire(new Wl("data"))}_validateLayer(e){let t=this.tileManagers[e.source];if(!t)return;let r=e.sourceLayer;if(!r)return;let i=t.getSource();(i.type==="geojson"||i.vectorLayerIds&&!i.vectorLayerIds.includes(r))&&this.fire(new or(Error(`Source layer "${r}" does not exist on source "${i.id}" as specified by style layer "${e.id}".`)))}loaded(){if(!this._loaded||Object.keys(this._updatedSources).length)return!1;for(let e in this.tileManagers)if(!this.tileManagers[e].loaded())return!1;return this.imageManager.isLoaded()}_serializeByIds(e,t=!1){let r=this._serializedAllLayers();if(!e||e.length===0)return Object.values(t?Jo(r):r);let i=[];for(let a of e)if(r[a]){let n=t?Jo(r[a]):r[a];i.push(n)}return i}_serializedAllLayers(){let e=this._serializedLayers;if(e)return e;e=this._serializedLayers={};let t=Object.keys(this._layers);for(let r of t){let i=this._layers[r];i.type!=="custom"&&(e[r]=i.serialize())}return e}hasTransitions(){var e,t,r;if((e=this.light)!=null&&e.hasTransition()||(t=this.sky)!=null&&t.hasTransition()||(r=this.projection)!=null&&r.hasTransition())return!0;for(let i in this.tileManagers)if(this.tileManagers[i].hasTransition())return!0;for(let i in this._layers)if(this._layers[i].hasTransition())return!0;return!1}_checkLoaded(){if(!this._loaded)throw Error("Style is not done loading.")}update(e){if(!this._loaded)return;let t=this._changed;if(t){this._imagesListDirty&&(this._imagesListDirty=(this.dispatcher.broadcast("SI",this.imageManager.listImages()),!1));let a=Object.keys(this._updatedLayers),n=Object.keys(this._removedLayers);(a.length||n.length)&&this._updateWorkerLayers(a,n);for(let o in this._updatedSources){let s=this._updatedSources[o];if(s==="reload")this._reloadSource(o);else if(s==="clear")this._clearSource(o);else throw Error(`Invalid action ${s}`)}this._updateTilesForChangedImages(),this._updateTilesForChangedGlyphs();for(let o in this._updatedPaintProps)this._layers[o].updateTransitions(e);this._resetUpdates()}let r={};for(let a in this.tileManagers){let n=this.tileManagers[a];r[a]=n.used,n.used=!1}let i=this.imageManager.listImages();for(let a of this._order){let n=this._layers[a];n.recalculate(e,i),!n.isHidden(e.zoom)&&n.source&&(this.tileManagers[n.source].used=!0)}for(let a in r){let n=this.tileManagers[a];!!r[a]!=!!n.used&&n.fire(new ma("data",{sourceDataType:"visibility",sourceId:a}))}this.light.recalculate(e),this.sky.recalculate(e),this.projection.recalculate(e),this.z=e.zoom,t&&this.fire(new Wl("data"))}_updateTilesForChangedImages(){let e=Object.keys(this._changedImages);if(e.length){for(let t in this.tileManagers)this.tileManagers[t].reloadTilesForDependencies(["icons","patterns"],e);this._changedImages={}}}_updateTilesForChangedGlyphs(){if(this._glyphsDidChange){for(let e in this.tileManagers)this.tileManagers[e].reloadTilesForDependencies(["glyphs"],[""]);this._glyphsDidChange=!1}}_updateWorkerLayers(e,t){this.dispatcher.broadcast("UL",{layers:this._serializeByIds(e,!1),removedIds:t})}_resetUpdates(){this._changed=!1,this._updatedLayers={},this._removedLayers={},this._updatedSources={},this._updatedPaintProps={},this._changedImages={},this._glyphsDidChange=!1}setState(e,t={}){var n;this._checkLoaded();let r=this.serialize();if(e=t.transformStyle?t.transformStyle(r,e):e,((n=t.validate)!=null?n:!0)&&Qk(this,e))return!1;e=Jo(e),e.layers=dse(e.layers);let i=gUe(r,e),a=this._getOperationsToPerform(i);if(a.unimplemented.length>0)throw Error(`Unimplemented: ${a.unimplemented.join(", ")}.`);if(a.operations.length===0)return!1;for(let o of a.operations)o();return this.stylesheet=e,this._serializedLayers=null,this.fire(new lF({style:this})),!0}_getOperationsToPerform(e){let t=[],r=[];for(let i of e)switch(i.command){case"setCenter":case"setZoom":case"setBearing":case"setPitch":case"setRoll":continue;case"addLayer":{let[a,n]=i.args;t.push(()=>this.addLayer(a,n));break}case"removeLayer":{let[a]=i.args;t.push(()=>this.removeLayer(a));break}case"setPaintProperty":{let[a,n,o]=i.args;t.push(()=>this.setPaintProperty(a,n,o));break}case"setLayoutProperty":{let[a,n,o]=i.args;t.push(()=>this.setLayoutProperty(a,n,o));break}case"setFilter":{let[a,n]=i.args;t.push(()=>this.setFilter(a,n));break}case"addSource":{let[a,n]=i.args;t.push(()=>this.addSource(a,n));break}case"removeSource":{let[a]=i.args;t.push(()=>this.removeSource(a));break}case"setLayerZoomRange":{let[a,n,o]=i.args;t.push(()=>this.setLayerZoomRange(a,n,o));break}case"setLight":{let[a]=i.args;t.push(()=>this.setLight(a));break}case"setGeoJSONSourceData":{let[a,n]=i.args;t.push(()=>this.setGeoJSONSourceData(a,n));break}case"setGlyphs":{let[a]=i.args;t.push(()=>this.setGlyphs(a));break}case"setFontFaces":{let[a]=i.args;t.push(()=>this.setFontFaces(a));break}case"setSprite":{let[a]=i.args;t.push(()=>this.setSprite(a));break}case"setTerrain":{let[a]=i.args;t.push(()=>this.map.setTerrain(a));break}case"setSky":{let[a]=i.args;t.push(()=>this.setSky(a));break}case"setProjection":{let[a]=i.args;t.push(()=>this.setProjection(a));break}case"setGlobalState":{let[a]=i.args;t.push(()=>this.setGlobalState(a));break}case"setTransition":t.push(()=>{});break;default:r.push(i.command)}return{operations:t,unimplemented:r}}addImage(e,t){if(this.getImage(e)){this.fire(new or(Error(`An image named "${e}" already exists.`)));return}this.imageManager.addImage(e,t),this._afterImageUpdated(e)}updateImage(e,t){this.imageManager.updateImage(e,t)}getImage(e){return this.imageManager.getImage(e)}setMissingImageResolver(e){this.imageManager.setMissingImageResolver(e)}removeImage(e){if(!this.getImage(e)){this.fire(new or(Error(`An image named "${e}" does not exist.`)));return}this.imageManager.removeImage(e),this._afterImageUpdated(e)}_markImagesChanged(e){for(let t of e)this._changedImages[t]=!0}_afterImageUpdated(e){this._changedImages[e]=!0,this._imagesListDirty=!0,this._changed=!0,this.fire(new Wl("data"))}listImages(){return this._checkLoaded(),this.imageManager.listImages()}addSource(e,t,r={}){var a;if(this._checkLoaded(),this.tileManagers[e]!==void 0)throw Error(`Source "${e}" already exists.`);if(!t.type)throw Error(`The type property must be defined, but only the following properties were given: ${Object.keys(t).join(", ")}.`);if(Jk.has(t.type)&&this._validate(es.source,`sources.${e}`,t,null,r))return;(a=this.map)!=null&&a._collectResourceTiming&&(t.collectResourceTiming=!0);let i=this.tileManagers[e]=new pF(e,t,this.dispatcher);i.style=this,i.setEventedParent(this,()=>({isSourceLoaded:i.loaded(),source:i.serialize(),sourceId:e})),i.onAdd(this.map),this._changed=!0}removeSource(e){if(this._checkLoaded(),this.tileManagers[e]===void 0)throw Error(`There is no source with this ID=${e}`);for(let r in this._layers)if(this._layers[r].source===e)return this.fire(new or(Error(`Source "${e}" cannot be removed while layer "${r}" is using it.`)));let t=this.tileManagers[e];delete this.tileManagers[e],delete this._updatedSources[e],t.fire(new ma("data",{sourceDataType:"metadata",sourceId:e})),t.setEventedParent(null),t.onRemove(this.map),this._changed=!0}setGeoJSONSourceData(e,t){if(this._checkLoaded(),this.tileManagers[e]===void 0)throw Error(`There is no source with this ID=${e}`);let r=this.tileManagers[e].getSource();if(r.type!=="geojson")throw Error(`geojsonSource.type is ${r.type}, which is !== 'geojson`);r.setData(t),this._changed=!0}getSource(e){var t;return(t=this.tileManagers[e])==null?void 0:t.getSource()}addLayer(e,t,r={}){this._checkLoaded();let i=e.id;if(this.getLayer(i)){this.fire(new or(Error(`Layer "${i}" already exists on this map.`)));return}let a;if(e.type==="custom"){if(Aw(this,Foe(e)))return;a=Ow(e,this._globalState)}else{if("source"in e&&typeof e.source=="object"&&(this.addSource(i,e.source),e=Jo(e),e=tr(e,{source:i})),this._validate(es.layer,`layers.${i}`,e,{arrayIndex:-1},r))return;a=Ow(e,this._globalState),this._validateLayer(a),a.setEventedParent(this,{layer:{id:i}})}let n=t?this._order.indexOf(t):this._order.length;if(t&&n===-1){this.fire(new or(Error(`Cannot add layer "${i}" before non-existing layer "${t}".`)));return}if(this._order.splice(n,0,i),this._layerOrderChanged=!0,this._layers[i]=a,this._removedLayers[i]&&a.source&&a.type!=="custom"){let o=this._removedLayers[i];delete this._removedLayers[i],o.type===a.type?(this._updatedSources[a.source]="reload",this.tileManagers[a.source].pause()):this._updatedSources[a.source]="clear"}this._updateLayer(a),a.onAdd&&a.onAdd(this.map)}moveLayer(e,t){if(this._checkLoaded(),this._changed=!0,!this._layers[e]){this.fire(new or(Error(`The layer '${e}' does not exist in the map's style and cannot be moved.`)));return}if(e===t)return;if(t&&!this._order.includes(t)){this.fire(new or(Error(`Cannot move layer "${e}" before non-existing layer "${t}".`)));return}let r=this._order.indexOf(e);this._order.splice(r,1);let i=t?this._order.indexOf(t):this._order.length;this._order.splice(i,0,e),this._layerOrderChanged=!0}removeLayer(e){var i;this._checkLoaded();let t=this._layers[e];if(!t){this.fire(new or(Error(`Cannot remove non-existing layer "${e}".`)));return}t.setEventedParent(null);let r=this._order.indexOf(e);this._order.splice(r,1),this._layerOrderChanged=!0,this._changed=!0,this._removedLayers[e]=t,delete this._layers[e],this._serializedLayers&&delete this._serializedLayers[e],delete this._updatedLayers[e],delete this._updatedPaintProps[e],t.type==="symbol"&&t.source&&((i=this.tileManagers[t.source])==null||i.resetMaxContentElevation()),t.onRemove&&t.onRemove(this.map)}getLayer(e){return this._layers[e]}getLayersOrder(){return[...this._order]}hasLayer(e){return e in this._layers}setLayerZoomRange(e,t,r){this._checkLoaded();let i=this.getLayer(e);if(!i){this.fire(new or(Error(`Cannot set the zoom range of non-existing layer "${e}".`)));return}(i.minzoom!==t||i.maxzoom!==r)&&(t!=null&&(i.minzoom=t),r!=null&&(i.maxzoom=r),this._updateLayer(i))}setFilter(e,t,r={}){this._checkLoaded();let i=this.getLayer(e);if(!i){this.fire(new or(Error(`Cannot filter non-existing layer "${e}".`)));return}if(!Iu(i.filter,t)){if(t==null){i.setFilter(void 0),this._updateLayer(i);return}this._validate(es.filter,`layers.${i.id}.filter`,t,null,r)||(i.setFilter(Jo(t)),this._updateLayer(i))}}getFilter(e){return Jo(this.getLayer(e).filter)}setLayoutProperty(e,t,r,i={}){this._checkLoaded();let a=this.getLayer(e);if(!a){this.fire(new or(Error(`Cannot style non-existing layer "${e}".`)));return}Iu(a.getLayoutProperty(t),r)||(a.setLayoutProperty(t,r,i),this._updateLayer(a))}getLayoutProperty(e,t){let r=this.getLayer(e);if(!r){this.fire(new or(Error(`Cannot get style of non-existing layer "${e}".`)));return}return r.getLayoutProperty(t)}setPaintProperty(e,t,r,i={}){this._checkLoaded();let a=this.getLayer(e);if(!a){this.fire(new or(Error(`Cannot style non-existing layer "${e}".`)));return}Iu(a.getPaintProperty(t),r)||this._updatePaintProperty(a,t,r,i)}_updatePaintProperty(e,t,r,i={}){e.setPaintProperty(t,r,i)&&this._updateLayer(e),Dw(e)&&t==="raster-fade-duration"&&this.tileManagers[e.source].setRasterFadeDuration(r),this._changed=!0,this._updatedPaintProps[e.id]=!0,e.type==="symbol"&&this.triggerSymbolPlacement(),this._serializedLayers=null}getPaintProperty(e,t){return this.getLayer(e).getPaintProperty(t)}setFeatureState(e,t){this._checkLoaded();let r=e.source,i=e.sourceLayer,a=this.tileManagers[r];if(a===void 0){this.fire(new or(Error(`The source '${r}' does not exist in the map's style.`)));return}let n=a.getSource().type;if(n==="geojson"&&i){this.fire(new or(Error("GeoJSON sources cannot have a sourceLayer parameter.")));return}if(n==="vector"&&!i){this.fire(new or(Error("The sourceLayer parameter must be provided for vector source types.")));return}if(e.id===void 0){this.fire(new or(Error("The feature id parameter must be provided.")));return}let o=["__proto__","constructor","prototype"];if(t&&Object.keys(t).some(s=>o.includes(s))){this.fire(new or(Error(`The feature state should not include one of the following keys: ${o}`)));return}a.setFeatureState(i,e.id,t)}removeFeatureState(e,t){this._checkLoaded();let r=e.source,i=this.tileManagers[r];if(i===void 0){this.fire(new or(Error(`The source '${r}' does not exist in the map's style.`)));return}let a=i.getSource().type,n=a==="vector"?e.sourceLayer:void 0;if(a==="vector"&&!n){this.fire(new or(Error("The sourceLayer parameter must be provided for vector source types.")));return}if(t&&typeof e.id!="string"&&typeof e.id!="number"){this.fire(new or(Error("A feature id is required to remove its specific state property.")));return}i.removeFeatureState(n,e.id,t)}getFeatureState(e){this._checkLoaded();let t=e.source,r=e.sourceLayer,i=this.tileManagers[t];if(i===void 0){this.fire(new or(Error(`The source '${t}' does not exist in the map's style.`)));return}if(i.getSource().type==="vector"&&!r){this.fire(new or(Error("The sourceLayer parameter must be provided for vector source types.")));return}return e.id===void 0&&this.fire(new or(Error("The feature id parameter must be provided."))),i.getFeatureState(r,e.id)}getTransition(){var e;return tr({duration:300,delay:0},(e=this.stylesheet)==null?void 0:e.transition)}serialize(){if(!this._loaded)return;let e=ow(this.tileManagers,a=>a.serialize()),t=this._serializeByIds(this._order,!0),r=this.map.getTerrain()||void 0,i=this.stylesheet;return Sk({version:i.version,name:i.name,metadata:i.metadata,light:i.light,sky:i.sky,center:i.center,zoom:i.zoom,bearing:i.bearing,pitch:i.pitch,sprite:i.sprite,glyphs:i.glyphs,"font-faces":i["font-faces"],transition:i.transition,projection:i.projection,state:i.state,sources:e,layers:t,terrain:r},a=>a!==void 0)}_updateLayer(e){this._updatedLayers[e.id]=!0,e.source&&!this._updatedSources[e.source]&&this.tileManagers[e.source].getSource().type!=="raster"&&(this._updatedSources[e.source]="reload",this.tileManagers[e.source].pause()),this._serializedLayers=null,this._changed=!0}_flattenAndSortRenderedFeatures(e){let t=n=>this._layers[n].type==="fill-extrusion",r={},i=[];for(let n=this._order.length-1;n>=0;n--){let o=this._order[n];if(t(o)){r[o]=n;for(let s of e){let l=s[o];if(l)for(let u of l)i.push(u)}}}i.sort((n,o)=>o.intersectionZ-n.intersectionZ);let a=[];for(let n=this._order.length-1;n>=0;n--){let o=this._order[n];if(t(o))for(let s=i.length-1;s>=0;s--){let l=i[s].feature;if(r[l.layer.id]this.map.terrain.getElevation(u,c,h):void 0));return this.placement&&a.push(YUe(this._layers,n,this.tileManagers,e,s,this.placement.collisionIndex,this.placement.retainedQueryData)),this._flattenAndSortRenderedFeatures(a)}querySourceFeatures(e,t){t!=null&&t.filter&&this._validate(es.filter,"querySourceFeatures.filter",t.filter,null,t);let r=this.tileManagers[e];return r?WUe(r,t?Yr(nr({},t),{globalState:this._globalState}):{globalState:this._globalState}):[]}getLight(){return this.light.getLight()}setLight(e,t={}){this._checkLoaded();let r=this.light.getLight(),i=!1;for(let n in e)if(!Iu(e[n],r[n])){i=!0;break}if(!i)return;let a={now:Ei(),transition:tr({duration:300,delay:0},this.stylesheet.transition)};this.light.setLight(e,t),this.light.updateTransitions(a)}getProjection(){var e;return(e=this.stylesheet)==null?void 0:e.projection}setProjection(e){this._checkLoaded();let t=e!=null?e:{type:"mercator"};if(this.stylesheet.projection=e,this.projection){if(this.projection.name===t.type)return;this.projection.destroy(),delete this.projection}this._setProjectionInternal(t.type)}getSky(){var e;return(e=this.stylesheet)==null?void 0:e.sky}setSky(e,t={}){this._checkLoaded();let r=this.getSky(),i=!1;if(!e&&!r)return;if(e&&!r)i=!0;else if(!e&&r)i=!0;else for(let n in e)if(!Iu(e[n],r[n])){i=!0;break}if(!i)return;let a={now:Ei(),transition:tr({duration:300,delay:0},this.stylesheet.transition)};this.sky.setSky(e,t)&&(this.stylesheet.sky=e,this.sky.updateTransitions(a))}_setProjectionInternal(e){var r;let t=Lje(e,(r=this.map._camera)==null?void 0:r.transform.constrainOverride,this._globalState);this.projection=t.projection,this.map.migrateProjection(t.transform,t.cameraHelper);for(let i in this.tileManagers)this.tileManagers[i].reload()}_validate(e,t,r,i,a={}){return a.validate!==!1&&Em(this,e,nr({key:t,style:this.serialize(),value:r},i),a)}_remove(e=!0){this._frameRequest&&(this._frameRequest=(this._frameRequest.abort(),null)),this._loadStyleRequest&&(this._loadStyleRequest=(this._loadStyleRequest.abort(),null)),this._spriteRequest&&(this._spriteRequest=(this._spriteRequest.abort(),null)),Z2().off(fF,this._rtlPluginLoaded);for(let t in this._layers)this._layers[t].setEventedParent(null);for(let t in this.tileManagers){let r=this.tileManagers[t];r.setEventedParent(null),r.onRemove(this.map)}this.imageManager.setEventedParent(null),this.setEventedParent(null),e&&this.dispatcher.broadcast("RM",void 0),this.dispatcher.remove(e)}_clearSource(e){this.tileManagers[e].clearTiles()}_reloadSource(e){this.tileManagers[e].resume(),this.tileManagers[e].reload()}_updateSources(e){for(let t in this.tileManagers)this.tileManagers[t].update(e,this.map.terrain)}_generateCollisionBoxes(){for(let e in this.tileManagers)this._reloadSource(e)}triggerSymbolPlacement(){this._symbolPlacementTriggered=!0}_placementInputsChanged(e,t,r){var a;let i=this.pauseablePlacement;return!i||this._symbolPlacementTriggered||this._placedProjectionTransition!==((a=this.projection)==null?void 0:a.transitionState)||i._showCollisionBoxes!==t||i.placement.collisionGroups.crossSourceCollisions!==r||i.placement.transform.renderWorldCopies!==e.renderWorldCopies||!rie(i.placement.transform.modelViewProjectionMatrix,e.modelViewProjectionMatrix)}_updatePlacement(e,t,r,i,a=!1){var c,h;let n=!1,o=!1,s={};for(let f of this._order){let d=this._layers[f];if(d.type!=="symbol")continue;if(!s[d.source]){let m=this.tileManagers[d.source];s[d.source]=m.getRenderableIds(!0).map(g=>m.getTileByID(g)).sort((g,y)=>y.tileID.overscaledZ-g.tileID.overscaledZ||(g.tileID.isLessThan(y.tileID)?-1:1))}let p=this.crossTileSymbolIndex.addLayer(d,s[d.source],e.center.lng);n||(n=p)}this.crossTileSymbolIndex.pruneUnusedLayers(this._order),a||(a=this._layerOrderChanged||r===0);let l=n||this._placementInputsChanged(e,t,i),u=((c=this.pauseablePlacement)==null?void 0:c.isDone())&&!this.placement.stillRecent(Ei(),e.zoom);if((a||!this.pauseablePlacement||u&&(l||this.placement.stale))&&(this._symbolPlacementTriggered=!1,this._placedProjectionTransition=(h=this.projection)==null?void 0:h.transitionState,this.pauseablePlacement=new ije(e,this.map.terrain,this._order,a,t,r,i,this.placement),this._layerOrderChanged=!1),this.pauseablePlacement.isDone()?l&&this.placement.setStale():(this.pauseablePlacement.continuePlacement(this._order,this._layers,s),this.pauseablePlacement.isDone()&&(this.placement=this.pauseablePlacement.commit(Ei()),o=!0),n&&this.pauseablePlacement.placement.setStale()),o||n)for(let f of this._order){let d=this._layers[f];d.type==="symbol"&&this.placement.updateLayerOpacities(d,s[d.source])}return!this.pauseablePlacement.isDone()||this.placement.hasTransitions(Ei())}_releaseSymbolFadeTiles(){for(let e in this.tileManagers)this.tileManagers[e].releaseSymbolFadeTiles()}getImages(e,t){return Kt(this,null,function*(){let r=yield this.imageManager.getImages(t.icons);this._updateTilesForChangedImages();let i=this.tileManagers[t.source];return i&&i.setDependencies(t.tileID.key,t.type,t.icons),r})}getGlyphs(e,t){return Kt(this,null,function*(){let r=yield this.glyphManager.getGlyphs(t.stacks),i=this.tileManagers[t.source];return i&&i.setDependencies(t.tileID.key,t.type,[""]),r})}getGlyphsUrl(){return this.stylesheet.glyphs||null}setGlyphs(e,t={}){this._checkLoaded(),!(e&&this._validate(es.glyphs,"glyphs",e,null,t))&&(this._changed=!0,this._glyphsDidChange=!0,this.stylesheet.glyphs=e,this.glyphManager.entries={},this.glyphManager.setURL(e))}getFontFaces(){return this.stylesheet["font-faces"]||null}setFontFaces(e){this._checkLoaded(),this._changed=!0,this._glyphsDidChange=!0,this.stylesheet["font-faces"]=e,this.glyphManager.setFontFaces(e)}getDashes(e,t){return Kt(this,null,function*(){let r={};for(let[i,a]of Object.entries(t.dashes))r[i]=this.lineAtlas.getDash(a.dasharray,a.round);return r})}addSprite(e,t,r={},i){this._checkLoaded();let a=[{id:e,url:t}],n=[...a6(this.stylesheet.sprite),...a];this._validate(es.sprite,"sprite",n,null,r)||(this.stylesheet.sprite=n,this._loadSprite(a,!0,i))}removeSprite(e){this._checkLoaded();let t=a6(this.stylesheet.sprite);if(!t.find(i=>i.id===e)){this.fire(new or(Error(`Sprite "${e}" doesn't exists on this map.`)));return}let r=this.imageManager.removeSpriteImages(e);this._markImagesChanged(r),t.splice(t.findIndex(i=>i.id===e),1),this.stylesheet.sprite=t.length>0?t:void 0,this._imagesListDirty=!0,this._changed=!0,this.fire(new Wl("data"))}getSprite(){return a6(this.stylesheet.sprite)}setSprite(e,t={},r){this._checkLoaded(),!(e&&this._validate(es.sprite,"sprite",e,null,t))&&(this.stylesheet.sprite=e,e?this._loadSprite(e,!0,r):(this._unloadSprite(),r&&r(null)))}destroy(){this._frameRequest&&(this._frameRequest=(this._frameRequest.abort(),null)),this._loadStyleRequest&&(this._loadStyleRequest=(this._loadStyleRequest.abort(),null)),this._spriteRequest&&(this._spriteRequest=(this._spriteRequest.abort(),null));for(let e in this.tileManagers){let t=this.tileManagers[e];t.setEventedParent(null),t.onRemove(this.map)}this.tileManagers={},this.imageManager&&(this.imageManager.setEventedParent(null),this.imageManager.destroy(),this.patternAtlas.destroy()),this.glyphManager&&this.glyphManager.destroy();for(let e in this._layers){let t=this._layers[e];t.setEventedParent(null),t.onRemove&&t.onRemove(this.map)}this._setInitialValues(),this.setEventedParent(null),this.dispatcher.unregisterMessageHandler("GG"),this.dispatcher.unregisterMessageHandler("GI"),this.dispatcher.unregisterMessageHandler("GDA"),this.dispatcher.remove(!0),this._listeners={},this._oneTimeListeners={}}},Rje=Ea([{name:"a_pos",type:"Int16",components:2},{name:"a_texture_pos",type:"Int16",components:2}]),Bje=class{constructor(){this.boundProgram=null,this.boundLayoutVertexBuffer=null,this.boundPaintVertexBuffers=[],this.boundIndexBuffer=null,this.boundVertexOffset=null,this.boundDynamicVertexBuffer=null,this.vao=null}bind(e,t,r,i,a,n,o,s,l){this.context=e;let u=this.boundPaintVertexBuffers.length!==i.length;for(let c=0;!u&&c({u_depth:new sr(e,t.u_depth),u_terrain:new sr(e,t.u_terrain)}),Oje=(e,t)=>({u_texture:new sr(e,t.u_texture),u_ele_delta:new jt(e,t.u_ele_delta),u_fog_matrix:new Zl(e,t.u_fog_matrix),u_fog_color:new Sh(e,t.u_fog_color),u_fog_ground_blend:new jt(e,t.u_fog_ground_blend),u_fog_ground_blend_opacity:new jt(e,t.u_fog_ground_blend_opacity),u_horizon_color:new Sh(e,t.u_horizon_color),u_horizon_fog_blend:new jt(e,t.u_horizon_fog_blend),u_is_globe_mode:new jt(e,t.u_is_globe_mode)}),Nje=(e,t)=>({u_ele_delta:new jt(e,t.u_ele_delta)}),Vje=(e,t,r,i,a)=>({u_texture:0,u_ele_delta:e,u_fog_matrix:t,u_fog_color:r?r.properties.get("fog-color"):Sr.white,u_fog_ground_blend:r?r.properties.get("fog-ground-blend"):1,u_fog_ground_blend_opacity:a?0:r?r.calculateFogBlendOpacity(i):0,u_horizon_color:r?r.properties.get("horizon-color"):Sr.white,u_horizon_fog_blend:r?r.properties.get("horizon-fog-blend"):1,u_is_globe_mode:+!!a}),Uje=e=>({u_ele_delta:e}),y6={ProjectionUBO:0,TerrainUBO:1,FrameUBO:2};jje={float:[1,1],int:[1,1],vec2:[2,2],vec4:[4,4],mat4:[16,4]};GF=class{constructor(e,t,r){this.context=e,this.binding=t,this.contentWords=r.contentWords;let i=e.gl;this.buffer=i.createBuffer(),i.bindBuffer(i.UNIFORM_BUFFER,this.buffer),i.bufferData(i.UNIFORM_BUFFER,r.sizeWords*4,i.DYNAMIC_DRAW),this.uploaded=new Float32Array(r.sizeWords),this.pending=new Float32Array(r.sizeWords),this.uploadedWords=new Uint32Array(this.uploaded.buffer),this.pendingWords=new Uint32Array(this.pending.buffer),this.hasData=!1}upload(){let e=this.context.gl,t=!this.hasData;if(!t){let r=this.pendingWords,i=this.uploadedWords;for(let a=0;a=0&&(this.attributes[k]={location:P,isInteger:S.has(k)})}u.deleteShader(T),u.deleteShader(A);for(let k of y)if(k&&!M[k]){let P=u.getUniformLocation(this.program,k);P&&(M[k]=P)}this.fixedUniforms=i(e,M),this.terrainUniforms=kje(e,M),this.binderUniforms=r?r.getUniforms(e,M):[]}draw(e,t,r,i,a,n,o,s,l,u,c,h,f,d,p,m,g,y,x){var A;let w=e.gl;if(this.failedToCreate)return;if(e.program.set(this.program),e.terrainUniformBuffer.bind(),e.frameUniformBuffer.bind(),e.setDepthMode(r),e.setStencilMode(i),e.setColorMode(a),e.setCullFace(n),s){e.activeTexture.set(w.TEXTURE2),w.bindTexture(w.TEXTURE_2D,s.depthTexture),e.activeTexture.set(w.TEXTURE3),w.bindTexture(w.TEXTURE_2D,s.texture);for(let T in this.terrainUniforms)this.terrainUniforms[T].set(s[T]);Nje(e.terrainUniformBuffer,s)}if(Rje(e,l),o)for(let T in this.fixedUniforms)this.fixedUniforms[T].set(o[T]);m&&m.setUniforms(e,this.binderUniforms,d,{zoom:p});let _=0;switch(t){case w.LINES:_=2;break;case w.TRIANGLES:_=3;break;case w.LINE_STRIP:_=1}for(let T of f.get())T.vaos||(T.vaos={}),(A=T.vaos)[u]||(A[u]=new Eje),T.vaos[u].bind(e,this,c,m?m.getPaintVertexBuffers():[],h,T.vertexOffset,g,y,x),w.drawElements(t,T.primitiveLength*_,w.UNSIGNED_SHORT,T.primitiveOffset*_*2)}};jje=(e,t)=>({u_lightpos:new Io(e,t.u_lightpos),u_lightpos_globe:new Io(e,t.u_lightpos_globe),u_lightintensity:new Gt(e,t.u_lightintensity),u_lightcolor:new Io(e,t.u_lightcolor),u_vertical_gradient:new Gt(e,t.u_vertical_gradient),u_opacity:new Gt(e,t.u_opacity),u_fill_translate:new Lr(e,t.u_fill_translate)}),$je=(e,t)=>({u_lightpos:new Io(e,t.u_lightpos),u_lightpos_globe:new Io(e,t.u_lightpos_globe),u_lightintensity:new Gt(e,t.u_lightintensity),u_lightcolor:new Io(e,t.u_lightcolor),u_vertical_gradient:new Gt(e,t.u_vertical_gradient),u_height_factor:new Gt(e,t.u_height_factor),u_opacity:new Gt(e,t.u_opacity),u_fill_translate:new Lr(e,t.u_fill_translate),u_image:new lr(e,t.u_image),u_texsize:new Lr(e,t.u_texsize),u_pixel_coord_upper:new Lr(e,t.u_pixel_coord_upper),u_pixel_coord_lower:new Lr(e,t.u_pixel_coord_lower),u_scale:new Io(e,t.u_scale),u_fade:new Gt(e,t.u_fade)}),bue=(e,t,r,i)=>{let a=e.style.light,n=a.getCartesianPosition(),o=fk();a.properties.get("anchor")==="viewport"&&Yre(o,e.transform.bearingInRadians),iie(n,n,o);let s=e.transform.transformLightDirection(n),l=a.properties.get("color");return{u_lightpos:n,u_lightpos_globe:s,u_lightintensity:a.properties.get("intensity"),u_lightcolor:[l.r,l.g,l.b],u_vertical_gradient:+t,u_opacity:r,u_fill_translate:i}},Hje=(e,t,r,i,a,n,o)=>tr(bue(e,t,r,i),xue(n,e,o),{u_height_factor:-(2**a.overscaledZ)/o.tileSize/8}),Zje=(e,t)=>({u_fill_translate:new Lr(e,t.u_fill_translate)}),Yje=(e,t)=>({u_image:new lr(e,t.u_image),u_texsize:new Lr(e,t.u_texsize),u_pixel_coord_upper:new Lr(e,t.u_pixel_coord_upper),u_pixel_coord_lower:new Lr(e,t.u_pixel_coord_lower),u_scale:new Io(e,t.u_scale),u_fade:new Gt(e,t.u_fade),u_sdf_pattern:new lr(e,t.u_sdf_pattern),u_fill_translate:new Lr(e,t.u_fill_translate)}),Wje=(e,t)=>({u_fill_translate:new Lr(e,t.u_fill_translate)}),Xje=(e,t)=>({u_image:new lr(e,t.u_image),u_texsize:new Lr(e,t.u_texsize),u_pixel_coord_upper:new Lr(e,t.u_pixel_coord_upper),u_pixel_coord_lower:new Lr(e,t.u_pixel_coord_lower),u_scale:new Io(e,t.u_scale),u_fade:new Gt(e,t.u_fade),u_sdf_pattern:new lr(e,t.u_sdf_pattern),u_fill_translate:new Lr(e,t.u_fill_translate)}),wue=(e,t,r,i,a)=>tr(xue(t,e,r),{u_fill_translate:i,u_sdf_pattern:+!!a}),Kje=e=>({u_fill_translate:e}),Jje=e=>({u_fill_translate:e}),Qje=(e,t,r,i,a)=>wue(e,t,r,i,a),e$e=(e,t)=>({u_scale_with_map:new lr(e,t.u_scale_with_map),u_pitch_with_map:new lr(e,t.u_pitch_with_map),u_extrude_scale:new Lr(e,t.u_extrude_scale),u_globe_extrude_scale:new Gt(e,t.u_globe_extrude_scale),u_translate:new Lr(e,t.u_translate)}),t$e=(e,t,r,i,a)=>{let n=e.transform,o,s,l=0;if(r.paint.get("circle-pitch-alignment")==="map"){let u=vs(t,1,n.zoom);o=!0,s=[u,u],l=u/(ft*2**t.tileID.overscaledZ)*2*Math.PI*a}else o=!1,s=n.pixelsToGLUnits;return{u_scale_with_map:+(r.paint.get("circle-pitch-scale")==="map"),u_pitch_with_map:+o,u_extrude_scale:s,u_globe_extrude_scale:l,u_translate:i}},r$e=(e,t)=>({u_color:new Mh(e,t.u_color),u_overlay:new lr(e,t.u_overlay),u_overlay_scale:new Gt(e,t.u_overlay_scale)}),ele=(e,t=1)=>({u_color:e,u_overlay:0,u_overlay_scale:t}),i$e=(e,t)=>({u_extrude_scale:new Gt(e,t.u_extrude_scale),u_intensity:new Gt(e,t.u_intensity),u_globe_extrude_scale:new Gt(e,t.u_globe_extrude_scale)}),a$e=(e,t)=>({u_matrix:new Hl(e,t.u_matrix),u_image:new lr(e,t.u_image),u_color_ramp:new lr(e,t.u_color_ramp),u_opacity:new Gt(e,t.u_opacity)}),Aue=(e,t,r,i)=>{let a=vs(e,1,t)/(ft*2**e.tileID.overscaledZ)*2*Math.PI*i;return{u_extrude_scale:vs(e,1,t),u_intensity:r,u_globe_extrude_scale:a}},Tue=(e,t,r,i)=>{let a=yh();return Iu(a,0,e.width,e.height,0,0,1),{u_matrix:a,u_image:r,u_color_ramp:i,u_opacity:t.paint.get("heatmap-opacity")}},n$e=(e,t)=>({u_image:new lr(e,t.u_image),u_latrange:new Lr(e,t.u_latrange),u_exaggeration:new Gt(e,t.u_exaggeration),u_altitudes:new Xk(e,t.u_altitudes),u_azimuths:new Xk(e,t.u_azimuths),u_accent:new Mh(e,t.u_accent),u_method:new lr(e,t.u_method),u_shadows:new Wk(e,t.u_shadows),u_highlights:new Wk(e,t.u_highlights)}),o$e=(e,t)=>({u_matrix:new Hl(e,t.u_matrix),u_image:new lr(e,t.u_image),u_dimension:new Lr(e,t.u_dimension),u_zoom:new Gt(e,t.u_zoom),u_unpack:new Cm(e,t.u_unpack)}),s$e=(e,t,r)=>{let i=r.paint.get("hillshade-accent-color"),a;switch(r.paint.get("hillshade-method")){case"basic":a=4;break;case"combined":a=1;break;case"igor":a=2;break;case"multidirectional":a=3;break;default:a=0}let n=r.getIlluminationProperties();for(let o=0;o{let r=t.stride,i=yh();return Iu(i,0,ft,-ft,0,0,1),Ya(i,i,[0,-ft,0]),{u_matrix:i,u_image:1,u_dimension:[r,r],u_zoom:e.overscaledZ,u_unpack:t.getUnpackVector()}};c$e=(e,t)=>({u_image:new lr(e,t.u_image),u_unpack:new Cm(e,t.u_unpack),u_dimension:new Lr(e,t.u_dimension),u_elevation_stops:new lr(e,t.u_elevation_stops),u_color_stops:new lr(e,t.u_color_stops),u_color_ramp_size:new lr(e,t.u_color_ramp_size),u_opacity:new Gt(e,t.u_opacity)}),h$e=(e,t,r=0)=>({u_image:0,u_unpack:t.getUnpackVector(),u_dimension:[t.stride,t.stride],u_elevation_stops:1,u_color_stops:4,u_color_ramp_size:r,u_opacity:e.paint.get("color-relief-opacity")}),f$e=(e,t)=>({u_translation:new Lr(e,t.u_translation),u_ratio:new Gt(e,t.u_ratio)}),d$e=(e,t)=>({u_translation:new Lr(e,t.u_translation),u_ratio:new Gt(e,t.u_ratio),u_image:new lr(e,t.u_image),u_image_height:new Gt(e,t.u_image_height)}),p$e=(e,t)=>({u_translation:new Lr(e,t.u_translation),u_texsize:new Lr(e,t.u_texsize),u_ratio:new Gt(e,t.u_ratio),u_image:new lr(e,t.u_image),u_scale:new Io(e,t.u_scale),u_fade:new Gt(e,t.u_fade)}),m$e=(e,t)=>({u_translation:new Lr(e,t.u_translation),u_ratio:new Gt(e,t.u_ratio),u_image:new lr(e,t.u_image),u_mix:new Gt(e,t.u_mix),u_tileratio:new Gt(e,t.u_tileratio),u_crossfade_from:new Gt(e,t.u_crossfade_from),u_crossfade_to:new Gt(e,t.u_crossfade_to),u_lineatlas_width:new Gt(e,t.u_lineatlas_width),u_lineatlas_height:new Gt(e,t.u_lineatlas_height)}),v$e=(e,t)=>({u_translation:new Lr(e,t.u_translation),u_ratio:new Gt(e,t.u_ratio),u_image:new lr(e,t.u_image),u_image_height:new Gt(e,t.u_image_height),u_tileratio:new Gt(e,t.u_tileratio),u_crossfade_from:new Gt(e,t.u_crossfade_from),u_crossfade_to:new Gt(e,t.u_crossfade_to),u_image_dash:new lr(e,t.u_image_dash),u_mix:new Gt(e,t.u_mix),u_lineatlas_width:new Gt(e,t.u_lineatlas_width),u_lineatlas_height:new Gt(e,t.u_lineatlas_height)}),m6=(e,t,r,i)=>{let a=e.transform;return{u_translation:Mue(e,t,r),u_ratio:i/vs(t,1,a.zoom)}},g$e=(e,t,r,i,a)=>tr(m6(e,t,r,i),{u_image:0,u_image_height:a}),y$e=(e,t,r,i,a)=>{let n=e.transform,o=BF(t,n);return{u_translation:Mue(e,t,r),u_texsize:t.imageAtlasTexture.size,u_ratio:i/vs(t,1,n.zoom),u_image:0,u_scale:[o,a.fromScale,a.toScale],u_fade:a.t}},_$e=(e,t,r,i,a)=>{let n=e.transform,o=BF(t,n);return tr(m6(e,t,r,i),{u_tileratio:o,u_crossfade_from:a.fromScale,u_crossfade_to:a.toScale,u_image:0,u_mix:a.t,u_lineatlas_width:e.lineAtlas.width,u_lineatlas_height:e.lineAtlas.height})},x$e=(e,t,r,i,a,n)=>{let o=e.transform,s=BF(t,o);return tr(m6(e,t,r,i),{u_image:0,u_image_height:n,u_tileratio:s,u_crossfade_from:a.fromScale,u_crossfade_to:a.toScale,u_image_dash:1,u_mix:a.t,u_lineatlas_width:e.lineAtlas.width,u_lineatlas_height:e.lineAtlas.height})};b$e=(e,t)=>({u_image:new lr(e,t.u_image),u_opacity:new Gt(e,t.u_opacity)}),w$e=(e,t)=>({u_image:t,u_opacity:e}),A$e=(e,t)=>({u_is_size_zoom_constant:new lr(e,t.u_is_size_zoom_constant),u_is_size_feature_constant:new lr(e,t.u_is_size_feature_constant),u_size_t:new Gt(e,t.u_size_t),u_size:new Gt(e,t.u_size),u_rotate_symbol:new lr(e,t.u_rotate_symbol),u_label_plane_matrix:new Hl(e,t.u_label_plane_matrix),u_coord_matrix:new Hl(e,t.u_coord_matrix),u_is_text:new lr(e,t.u_is_text),u_pitch_with_map:new lr(e,t.u_pitch_with_map),u_is_along_line:new lr(e,t.u_is_along_line),u_is_variable_anchor:new lr(e,t.u_is_variable_anchor),u_texsize:new Lr(e,t.u_texsize),u_texture:new lr(e,t.u_texture),u_translation:new Lr(e,t.u_translation),u_pitched_scale:new Gt(e,t.u_pitched_scale),u_is_offset:new lr(e,t.u_is_offset),u_height_anchor_ground:new lr(e,t.u_height_anchor_ground)}),T$e=(e,t)=>({u_is_size_zoom_constant:new lr(e,t.u_is_size_zoom_constant),u_is_size_feature_constant:new lr(e,t.u_is_size_feature_constant),u_size_t:new Gt(e,t.u_size_t),u_size:new Gt(e,t.u_size),u_rotate_symbol:new lr(e,t.u_rotate_symbol),u_label_plane_matrix:new Hl(e,t.u_label_plane_matrix),u_coord_matrix:new Hl(e,t.u_coord_matrix),u_is_text:new lr(e,t.u_is_text),u_pitch_with_map:new lr(e,t.u_pitch_with_map),u_is_along_line:new lr(e,t.u_is_along_line),u_is_variable_anchor:new lr(e,t.u_is_variable_anchor),u_texsize:new Lr(e,t.u_texsize),u_texture:new lr(e,t.u_texture),u_gamma_scale:new Gt(e,t.u_gamma_scale),u_is_halo:new lr(e,t.u_is_halo),u_is_plain:new lr(e,t.u_is_plain),u_translation:new Lr(e,t.u_translation),u_pitched_scale:new Gt(e,t.u_pitched_scale),u_is_offset:new lr(e,t.u_is_offset),u_height_anchor_ground:new lr(e,t.u_height_anchor_ground)}),M$e=(e,t)=>({u_is_size_zoom_constant:new lr(e,t.u_is_size_zoom_constant),u_is_size_feature_constant:new lr(e,t.u_is_size_feature_constant),u_size_t:new Gt(e,t.u_size_t),u_size:new Gt(e,t.u_size),u_rotate_symbol:new lr(e,t.u_rotate_symbol),u_label_plane_matrix:new Hl(e,t.u_label_plane_matrix),u_coord_matrix:new Hl(e,t.u_coord_matrix),u_is_text:new lr(e,t.u_is_text),u_pitch_with_map:new lr(e,t.u_pitch_with_map),u_is_along_line:new lr(e,t.u_is_along_line),u_is_variable_anchor:new lr(e,t.u_is_variable_anchor),u_texsize:new Lr(e,t.u_texsize),u_texsize_icon:new Lr(e,t.u_texsize_icon),u_texture:new lr(e,t.u_texture),u_texture_icon:new lr(e,t.u_texture_icon),u_gamma_scale:new Gt(e,t.u_gamma_scale),u_is_halo:new lr(e,t.u_is_halo),u_translation:new Lr(e,t.u_translation),u_pitched_scale:new Gt(e,t.u_pitched_scale),u_is_offset:new lr(e,t.u_is_offset),u_height_anchor_ground:new lr(e,t.u_height_anchor_ground)}),Due=(e,t,r,i,a,n,o,s,l,u,c,h,f,d,p)=>({u_is_size_zoom_constant:+(e==="constant"||e==="source"),u_is_size_feature_constant:+(e==="constant"||e==="camera"),u_size_t:t?t.uSizeT:0,u_size:t?t.uSize:0,u_rotate_symbol:+r,u_label_plane_matrix:s,u_coord_matrix:l,u_is_text:+c,u_pitch_with_map:+i,u_is_along_line:a,u_is_variable_anchor:n,u_texsize:h,u_texture:0,u_translation:u,u_pitched_scale:f,u_is_offset:d,u_height_anchor_ground:+p}),Sue=(e,t,r,i,a,n,o,s,l,u,c,h,f,d,p,m)=>{let g=o.transform;return tr(Due(e,t,r,i,a,n,o,s,l,u,c,h,d,p,m),{u_gamma_scale:i?Math.cos(g.pitch*Math.PI/180)*g.cameraToCenterDistance:1,u_is_halo:+!!f,u_is_plain:1})},D$e=(e,t,r,i,a,n,o,s,l,u,c,h,f,d,p)=>tr(Sue(e,t,r,i,a,n,o,s,l,u,!0,c,!0,f,d,p),{u_texsize_icon:h,u_texture_icon:1}),S$e=(e,t)=>({u_opacity:new Gt(e,t.u_opacity),u_color:new Mh(e,t.u_color)}),E$e=(e,t)=>({u_opacity:new Gt(e,t.u_opacity),u_image:new lr(e,t.u_image),u_pattern_tl_a:new Lr(e,t.u_pattern_tl_a),u_pattern_br_a:new Lr(e,t.u_pattern_br_a),u_pattern_tl_b:new Lr(e,t.u_pattern_tl_b),u_pattern_br_b:new Lr(e,t.u_pattern_br_b),u_texsize:new Lr(e,t.u_texsize),u_mix:new Gt(e,t.u_mix),u_pattern_size_a:new Lr(e,t.u_pattern_size_a),u_pattern_size_b:new Lr(e,t.u_pattern_size_b),u_scale_a:new Gt(e,t.u_scale_a),u_scale_b:new Gt(e,t.u_scale_b),u_pixel_coord_upper:new Lr(e,t.u_pixel_coord_upper),u_pixel_coord_lower:new Lr(e,t.u_pixel_coord_lower),u_tile_units_to_pixels:new Gt(e,t.u_tile_units_to_pixels)}),k$e=(e,t)=>({u_opacity:e,u_color:t}),C$e=(e,t,r,i,a)=>tr(Gje(r,a,t,i),{u_opacity:e}),F$e=(e,t)=>({u_sun_pos:new Io(e,t.u_sun_pos),u_atmosphere_blend:new Gt(e,t.u_atmosphere_blend),u_globe_position:new Io(e,t.u_globe_position),u_globe_radius:new Gt(e,t.u_globe_radius),u_inv_proj_matrix:new Hl(e,t.u_inv_proj_matrix)}),P$e=(e,t,r,i,a)=>({u_sun_pos:e,u_atmosphere_blend:t,u_globe_position:r,u_globe_radius:i,u_inv_proj_matrix:a}),I$e=(e,t)=>({u_sky_color:new Mh(e,t.u_sky_color),u_horizon_color:new Mh(e,t.u_horizon_color),u_horizon:new Lr(e,t.u_horizon),u_horizon_normal:new Lr(e,t.u_horizon_normal),u_sky_horizon_blend:new Gt(e,t.u_sky_horizon_blend),u_sky_blend:new Gt(e,t.u_sky_blend),u_inv_proj_matrix:new Hl(e,t.u_inv_proj_matrix),u_globe_position:new Io(e,t.u_globe_position),u_globe_radius:new Gt(e,t.u_globe_radius),u_atmosphere_blend:new Gt(e,t.u_atmosphere_blend)}),L$e=(e,t,r)=>{let i=Math.cos(t.rollInRadians),a=Math.sin(t.rollInRadians),n=Pm(t),o=t.getProjectionData({overscaledTileID:null,applyGlobeMatrix:!0,applyTerrainMatrix:!0}).projectionTransition,s=cue(t),l=Om(t.worldSize,t.center.lat);return{u_sky_color:e.properties.get("sky-color"),u_horizon_color:e.properties.get("horizon-color"),u_horizon:[(t.width/2-n*a)*r,(t.height/2+n*i)*r],u_horizon_normal:[-a,i],u_sky_horizon_blend:e.properties.get("sky-horizon-blend")*t.height/2*r,u_sky_blend:o,u_inv_proj_matrix:t.inverseProjectionMatrix,u_globe_position:s,u_globe_radius:l,u_atmosphere_blend:e.properties.get("atmosphere-blend")*hue($l(s)-l,l)}},Zw=(e,t)=>({}),z$e={fillExtrusion:jje,fillExtrusionPattern:$je,fill:Zje,fillPattern:Yje,fillOutline:Wje,fillOutlinePattern:Xje,circle:e$e,collisionBox:Zw,collisionCircle:Zw,debug:r$e,depth:Zw,clippingMask:Zw,heatmap:i$e,heatmapTexture:a$e,hillshade:n$e,hillshadePrepare:o$e,colorRelief:c$e,line:f$e,lineGradient:d$e,linePattern:p$e,lineSDF:m$e,lineGradientSDF:v$e,layerOpacity:b$e,raster:KUe,symbolIcon:A$e,symbolSDF:T$e,symbolTextAndIcon:M$e,background:S$e,backgroundPattern:E$e,terrain:Cje,terrainDepth:Fje,atmosphere:F$e,sky:I$e},R$e=class{constructor(e,t,r){this.context=e;let i=e.gl;this.buffer=i.createBuffer(),this.dynamicDraw=!!r,this.context.unbindVAO(),e.bindElementBuffer.set(this.buffer),i.bufferData(i.ELEMENT_ARRAY_BUFFER,t.arrayBuffer,this.dynamicDraw?i.DYNAMIC_DRAW:i.STATIC_DRAW),this.dynamicDraw||t.freeBufferAfterUpload()}bind(){this.context.bindElementBuffer.set(this.buffer)}updateData(e){let t=this.context.gl;if(!this.dynamicDraw)throw Error("Attempted to update data while not in dynamic mode.");this.context.unbindVAO(),this.bind(),t.bufferSubData(t.ELEMENT_ARRAY_BUFFER,0,e.arrayBuffer)}destroy(){let e=this.context.gl;this.buffer&&(e.deleteBuffer(this.buffer),delete this.buffer)}},tle={Int8:"BYTE",Uint8:"UNSIGNED_BYTE",Int16:"SHORT",Uint16:"UNSIGNED_SHORT",Int32:"INT",Uint32:"UNSIGNED_INT",Float32:"FLOAT"},B$e=class{constructor(e,t,r,i){this.length=t.length,this.attributes=r,this.itemSize=t.bytesPerElement,this.dynamicDraw=i,this.context=e;let a=e.gl;this.buffer=a.createBuffer(),e.bindVertexBuffer.set(this.buffer),a.bufferData(a.ARRAY_BUFFER,t.arrayBuffer,this.dynamicDraw?a.DYNAMIC_DRAW:a.STATIC_DRAW),this.dynamicDraw||t.freeBufferAfterUpload()}bind(){this.context.bindVertexBuffer.set(this.buffer)}updateData(e){if(e.length!==this.length)throw Error(`Length of new data is ${e.length}, which doesn't match current length of ${this.length}`);let t=this.context.gl;this.bind(),t.bufferSubData(t.ARRAY_BUFFER,0,e.arrayBuffer)}enableAttributes(e,t){for(let r of this.attributes){let i=t.attributes[r.name];i!==void 0&&e.enableVertexAttribArray(i.location)}}setVertexAttribPointers(e,t,r){for(let i of this.attributes){let a=t.attributes[i.name];if(a!==void 0){let n=i.offset+this.itemSize*(r||0);a.isInteger?e.vertexAttribIPointer(a.location,i.components,e[tle[i.type]],this.itemSize,n):e.vertexAttribPointer(a.location,i.components,e[tle[i.type]],!1,this.itemSize,n)}}}destroy(){let e=this.context.gl;this.buffer&&(e.deleteBuffer(this.buffer),delete this.buffer)}},Ii=class{constructor(e){this.gl=e.gl,this.default=this.getDefault(),this.current=this.default,this.dirty=!1}get(){return this.current}set(e){}getDefault(){return this.default}setDefault(){this.set(this.default)}},q$e=class extends Ii{getDefault(){return Dr.transparent}set(e){let t=this.current;(e.r!==t.r||e.g!==t.g||e.b!==t.b||e.a!==t.a||this.dirty)&&(this.gl.clearColor(e.r,e.g,e.b,e.a),this.current=e,this.dirty=!1)}},O$e=class extends Ii{getDefault(){return 1}set(e){(e!==this.current||this.dirty)&&(this.gl.clearDepth(e),this.current=e,this.dirty=!1)}},N$e=class extends Ii{getDefault(){return 0}set(e){(e!==this.current||this.dirty)&&(this.gl.clearStencil(e),this.current=e,this.dirty=!1)}},V$e=class extends Ii{getDefault(){return[!0,!0,!0,!0]}set(e){let t=this.current;(e[0]!==t[0]||e[1]!==t[1]||e[2]!==t[2]||e[3]!==t[3]||this.dirty)&&(this.gl.colorMask(e[0],e[1],e[2],e[3]),this.current=e,this.dirty=!1)}},U$e=class extends Ii{getDefault(){return!0}set(e){(e!==this.current||this.dirty)&&(this.gl.depthMask(e),this.current=e,this.dirty=!1)}},G$e=class extends Ii{getDefault(){return 255}set(e){(e!==this.current||this.dirty)&&(this.gl.stencilMask(e),this.current=e,this.dirty=!1)}},j$e=class extends Ii{getDefault(){return{func:this.gl.ALWAYS,ref:0,mask:255}}set(e){let t=this.current;(e.func!==t.func||e.ref!==t.ref||e.mask!==t.mask||this.dirty)&&(this.gl.stencilFunc(e.func,e.ref,e.mask),this.current=e,this.dirty=!1)}},$$e=class extends Ii{getDefault(){let e=this.gl;return[e.KEEP,e.KEEP,e.KEEP]}set(e){let t=this.current;(e[0]!==t[0]||e[1]!==t[1]||e[2]!==t[2]||this.dirty)&&(this.gl.stencilOp(e[0],e[1],e[2]),this.current=e,this.dirty=!1)}},H$e=class extends Ii{getDefault(){return!1}set(e){if(e===this.current&&!this.dirty)return;let t=this.gl;e?t.enable(t.STENCIL_TEST):t.disable(t.STENCIL_TEST),this.current=e,this.dirty=!1}},Z$e=class extends Ii{getDefault(){return[0,1]}set(e){let t=this.current;(e[0]!==t[0]||e[1]!==t[1]||this.dirty)&&(this.gl.depthRange(e[0],e[1]),this.current=e,this.dirty=!1)}},Y$e=class extends Ii{getDefault(){return!1}set(e){if(e===this.current&&!this.dirty)return;let t=this.gl;e?t.enable(t.DEPTH_TEST):t.disable(t.DEPTH_TEST),this.current=e,this.dirty=!1}},W$e=class extends Ii{getDefault(){return this.gl.LESS}set(e){(e!==this.current||this.dirty)&&(this.gl.depthFunc(e),this.current=e,this.dirty=!1)}},X$e=class extends Ii{getDefault(){return!1}set(e){if(e===this.current&&!this.dirty)return;let t=this.gl;e?t.enable(t.BLEND):t.disable(t.BLEND),this.current=e,this.dirty=!1}},K$e=class extends Ii{getDefault(){let e=this.gl;return[e.ONE,e.ZERO]}set(e){let t=this.current;(e[0]!==t[0]||e[1]!==t[1]||this.dirty)&&(this.gl.blendFunc(e[0],e[1]),this.current=e,this.dirty=!1)}},J$e=class extends Ii{getDefault(){return Dr.transparent}set(e){let t=this.current;(e.r!==t.r||e.g!==t.g||e.b!==t.b||e.a!==t.a||this.dirty)&&(this.gl.blendColor(e.r,e.g,e.b,e.a),this.current=e,this.dirty=!1)}},Q$e=class extends Ii{getDefault(){return this.gl.FUNC_ADD}set(e){(e!==this.current||this.dirty)&&(this.gl.blendEquation(e),this.current=e,this.dirty=!1)}},eHe=class extends Ii{getDefault(){return!1}set(e){if(e===this.current&&!this.dirty)return;let t=this.gl;e?t.enable(t.CULL_FACE):t.disable(t.CULL_FACE),this.current=e,this.dirty=!1}},tHe=class extends Ii{getDefault(){return this.gl.BACK}set(e){(e!==this.current||this.dirty)&&(this.gl.cullFace(e),this.current=e,this.dirty=!1)}},rHe=class extends Ii{getDefault(){return this.gl.CCW}set(e){(e!==this.current||this.dirty)&&(this.gl.frontFace(e),this.current=e,this.dirty=!1)}},iHe=class extends Ii{getDefault(){return null}set(e){(e!==this.current||this.dirty)&&(this.gl.useProgram(e),this.current=e,this.dirty=!1)}},aHe=class extends Ii{getDefault(){return this.gl.TEXTURE0}set(e){(e!==this.current||this.dirty)&&(this.gl.activeTexture(e),this.current=e,this.dirty=!1)}},nHe=class extends Ii{getDefault(){let e=this.gl;return[0,0,e.drawingBufferWidth,e.drawingBufferHeight]}set(e){let t=this.current;(e[0]!==t[0]||e[1]!==t[1]||e[2]!==t[2]||e[3]!==t[3]||this.dirty)&&(this.gl.viewport(e[0],e[1],e[2],e[3]),this.current=e,this.dirty=!1)}},oHe=class extends Ii{getDefault(){return null}set(e){if(e===this.current&&!this.dirty)return;let t=this.gl;t.bindFramebuffer(t.FRAMEBUFFER,e),this.current=e,this.dirty=!1}},sHe=class extends Ii{getDefault(){return null}set(e){if(e===this.current&&!this.dirty)return;let t=this.gl;t.bindRenderbuffer(t.RENDERBUFFER,e),this.current=e,this.dirty=!1}},lHe=class extends Ii{getDefault(){return null}set(e){if(e===this.current&&!this.dirty)return;let t=this.gl;t.bindTexture(t.TEXTURE_2D,e),this.current=e,this.dirty=!1}},uHe=class extends Ii{getDefault(){return null}set(e){if(e===this.current&&!this.dirty)return;let t=this.gl;t.bindBuffer(t.ARRAY_BUFFER,e),this.current=e,this.dirty=!1}},cHe=class extends Ii{getDefault(){return null}set(e){let t=this.gl;t.bindBuffer(t.ELEMENT_ARRAY_BUFFER,e),this.current=e,this.dirty=!1}},hHe=class extends Ii{getDefault(){return null}set(e){(e!==this.current||this.dirty)&&(this.gl.bindVertexArray(e),this.current=e,this.dirty=!1)}},fHe=class extends Ii{getDefault(){return 4}set(e){if(e===this.current&&!this.dirty)return;let t=this.gl;t.pixelStorei(t.UNPACK_ALIGNMENT,e),this.current=e,this.dirty=!1}},dHe=class extends Ii{getDefault(){return!1}set(e){if(e===this.current&&!this.dirty)return;let t=this.gl;t.pixelStorei(t.UNPACK_PREMULTIPLY_ALPHA_WEBGL,e),this.current=e,this.dirty=!1}},pHe=class extends Ii{getDefault(){return!1}set(e){if(e===this.current&&!this.dirty)return;let t=this.gl;t.pixelStorei(t.UNPACK_FLIP_Y_WEBGL,e),this.current=e,this.dirty=!1}},qF=class extends Ii{constructor(e,t){super(e),this.context=e,this.parent=t}getDefault(){return null}},mHe=class extends qF{setDirty(){this.dirty=!0}set(e){if(e===this.current&&!this.dirty)return;this.context.bindFramebuffer.set(this.parent);let t=this.gl;t.framebufferTexture2D(t.FRAMEBUFFER,t.COLOR_ATTACHMENT0,t.TEXTURE_2D,e,0),this.current=e,this.dirty=!1}},vHe=class extends qF{set(e){if(e===this.current&&!this.dirty)return;this.context.bindFramebuffer.set(this.parent);let t=this.gl;t.framebufferRenderbuffer(t.FRAMEBUFFER,t.DEPTH_ATTACHMENT,t.RENDERBUFFER,e),this.current=e,this.dirty=!1}},gHe=class extends qF{set(e){if(e===this.current&&!this.dirty)return;this.context.bindFramebuffer.set(this.parent);let t=this.gl;t.framebufferRenderbuffer(t.FRAMEBUFFER,t.DEPTH_STENCIL_ATTACHMENT,t.RENDERBUFFER,e),this.current=e,this.dirty=!1}},yHe=class{constructor(e,t,r,i,a){this.context=e,this.width=t,this.height=r;let n=e.gl,o=this.framebuffer=n.createFramebuffer();if(this.colorAttachment=new mHe(e,o),i)this.depthAttachment=a?new gHe(e,o):new vHe(e,o);else if(a)throw Error("Stencil cannot be set without depth")}destroy(){let e=this.context.gl,t=this.colorAttachment.get();if(t&&e.deleteTexture(t),this.depthAttachment){let r=this.depthAttachment.get();r&&e.deleteRenderbuffer(r)}e.deleteFramebuffer(this.framebuffer)}},Eue=zF([{name:"u_units_to_pixels",type:"vec2"},{name:"u_world_size",type:"vec2"},{name:"u_camera_to_center_distance",type:"float"},{name:"u_symbol_fade_change",type:"float"},{name:"u_aspect_ratio",type:"float"},{name:"u_device_pixel_ratio",type:"float"},{name:"u_viewport_size",type:"vec2"},{name:"u_pixel_extrude_scale",type:"vec2"},{name:"u_pitch",type:"float"}]),Qs=Eue.offsets;Oa=class{constructor(e,t,r){this.blendFunction=e,this.blendColor=t,this.mask=r}};Oa.Replace=[1,0],Oa.disabled=new Oa(Oa.Replace,Dr.transparent,[!1,!1,!1,!1]),Oa.unblended=new Oa(Oa.Replace,Dr.transparent,[!0,!0,!0,!0]),Oa.alphaBlended=new Oa([1,771],Dr.transparent,[!0,!0,!0,!0]);bHe=class{constructor(e){this.gl=e,this.clearColor=new q$e(this),this.clearDepth=new O$e(this),this.clearStencil=new N$e(this),this.colorMask=new V$e(this),this.depthMask=new U$e(this),this.stencilMask=new G$e(this),this.stencilFunc=new j$e(this),this.stencilOp=new $$e(this),this.stencilTest=new H$e(this),this.depthRange=new Z$e(this),this.depthTest=new Y$e(this),this.depthFunc=new W$e(this),this.blend=new X$e(this),this.blendFunc=new K$e(this),this.blendColor=new J$e(this),this.blendEquation=new Q$e(this),this.cullFace=new eHe(this),this.cullFaceSide=new tHe(this),this.frontFace=new rHe(this),this.program=new iHe(this),this.activeTexture=new aHe(this),this.viewport=new nHe(this),this.bindFramebuffer=new oHe(this),this.bindRenderbuffer=new sHe(this),this.bindTexture=new lHe(this),this.bindVertexBuffer=new uHe(this),this.bindElementBuffer=new cHe(this),this.bindVertexArray=new hHe(this),this.pixelStoreUnpack=new fHe(this),this.pixelStoreUnpackPremultiplyAlpha=new dHe(this),this.pixelStoreUnpackFlipY=new pHe(this),this.extTextureFilterAnisotropic=e.getExtension("EXT_texture_filter_anisotropic"),this.extTextureFilterAnisotropic&&(this.extTextureFilterAnisotropicMax=e.getParameter(this.extTextureFilterAnisotropic.MAX_TEXTURE_MAX_ANISOTROPY_EXT)),this.maxTextureSize=e.getParameter(e.MAX_TEXTURE_SIZE),e.getExtension("EXT_color_buffer_half_float"),e.getExtension("EXT_color_buffer_float"),this.boundUniformBuffers=[],this.projectionUniformBuffer=yue(this),this.keyedProjectionUniformBuffers=new Map,this.freeProjectionUniformBuffers=[],this.terrainUniformBuffer=Oje(this),this.frameUniformBuffer=_He(this)}setDefault(){this.unbindVAO(),this.clearColor.setDefault(),this.clearDepth.setDefault(),this.clearStencil.setDefault(),this.colorMask.setDefault(),this.depthMask.setDefault(),this.stencilMask.setDefault(),this.stencilFunc.setDefault(),this.stencilOp.setDefault(),this.stencilTest.setDefault(),this.depthRange.setDefault(),this.depthTest.setDefault(),this.depthFunc.setDefault(),this.blend.setDefault(),this.blendFunc.setDefault(),this.blendColor.setDefault(),this.blendEquation.setDefault(),this.cullFace.setDefault(),this.cullFaceSide.setDefault(),this.frontFace.setDefault(),this.program.setDefault(),this.activeTexture.setDefault(),this.bindFramebuffer.setDefault(),this.pixelStoreUnpack.setDefault(),this.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.pixelStoreUnpackFlipY.setDefault()}setDirty(){this.clearColor.dirty=!0,this.clearDepth.dirty=!0,this.clearStencil.dirty=!0,this.colorMask.dirty=!0,this.depthMask.dirty=!0,this.stencilMask.dirty=!0,this.stencilFunc.dirty=!0,this.stencilOp.dirty=!0,this.stencilTest.dirty=!0,this.depthRange.dirty=!0,this.depthTest.dirty=!0,this.depthFunc.dirty=!0,this.blend.dirty=!0,this.blendFunc.dirty=!0,this.blendColor.dirty=!0,this.blendEquation.dirty=!0,this.cullFace.dirty=!0,this.cullFaceSide.dirty=!0,this.frontFace.dirty=!0,this.program.dirty=!0,this.activeTexture.dirty=!0,this.viewport.dirty=!0,this.bindFramebuffer.dirty=!0,this.bindRenderbuffer.dirty=!0,this.bindTexture.dirty=!0,this.bindVertexBuffer.dirty=!0,this.bindElementBuffer.dirty=!0,this.bindVertexArray.dirty=!0,this.pixelStoreUnpack.dirty=!0,this.pixelStoreUnpackPremultiplyAlpha.dirty=!0,this.pixelStoreUnpackFlipY.dirty=!0,this.boundUniformBuffers=[]}setCustomLayerDefaults(){this.unbindVAO(),this.cullFace.setDefault(),this.activeTexture.setDefault(),this.pixelStoreUnpack.setDefault(),this.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.pixelStoreUnpackFlipY.setDefault()}createIndexBuffer(e,t){return new R$e(this,e,t)}createVertexBuffer(e,t,r){return new B$e(this,e,t,r)}createRenderbuffer(e,t,r){let i=this.gl,a=i.createRenderbuffer();return this.bindRenderbuffer.set(a),i.renderbufferStorage(i.RENDERBUFFER,e,t,r),this.bindRenderbuffer.set(null),a}createFramebuffer(e,t,r,i){return new yHe(this,e,t,r,i)}clear({color:e,depth:t,stencil:r}){let i=this.gl,a=0;e&&(a|=i.COLOR_BUFFER_BIT,this.clearColor.set(e),this.colorMask.set([!0,!0,!0,!0])),t!==void 0&&(a|=i.DEPTH_BUFFER_BIT,this.depthRange.set([0,1]),this.clearDepth.set(t),this.depthMask.set(!0)),r!==void 0&&(a|=i.STENCIL_BUFFER_BIT,this.clearStencil.set(r),this.stencilMask.set(255)),i.clear(a)}setCullFace(e){e.enable===!1?this.cullFace.set(!1):(this.cullFace.set(!0),this.cullFaceSide.set(e.mode),this.frontFace.set(e.frontFace))}setDepthMode(e){e.func===this.gl.ALWAYS&&!e.mask?this.depthTest.set(!1):(this.depthTest.set(!0),this.depthFunc.set(e.func),this.depthMask.set(e.mask),this.depthRange.set(e.range))}setStencilMode(e){e.test.func===this.gl.ALWAYS&&!e.mask?this.stencilTest.set(!1):(this.stencilTest.set(!0),this.stencilMask.set(e.mask),this.stencilOp.set([e.fail,e.depthFail,e.pass]),this.stencilFunc.set({func:e.test.func,ref:e.ref,mask:e.test.mask}))}setColorMode(e){Fu(e.blendFunction,Oa.Replace)?this.blend.set(!1):(this.blend.set(!0),this.blendFunc.set(e.blendFunction),this.blendColor.set(e.blendColor)),this.colorMask.set(e.mask)}createVertexArray(){return this.gl.createVertexArray()}deleteVertexArray(e){this.gl.deleteVertexArray(e)}unbindVAO(){this.bindVertexArray.set(null)}},Jr=class{constructor(e,t,r){this.func=e,this.mask=t,this.range=r}};Jr.ReadOnly=!1,Jr.ReadWrite=!0,Jr.disabled=new Jr(519,Jr.ReadOnly,[0,1]);$C=7680,Ei=class{constructor(e,t,r,i,a,n){this.test=e,this.ref=t,this.mask=r,this.fail=i,this.depthFail=a,this.pass=n}};Ei.disabled=new Ei({func:519,mask:0},0,0,$C,$C,$C);rle=1029,HC=2305,Ai=class{constructor(e,t,r){this.enable=e,this.mode=t,this.frontFace=r}};Ai.disabled=new Ai(!1,rle,HC),Ai.backCCW=new Ai(!0,rle,HC),Ai.frontCCW=new Ai(!0,1028,HC);THe=jl(new Float32Array(16));WC=0;KC=[new Be(0,0),new Be(ft,0),new Be(ft,ft),new Be(0,ft)];eZe=new Dr(1,0,0,1),tZe=new Dr(0,1,0,1),rZe=new Dr(0,0,1,1),iZe=new Dr(1,0,1,1),aZe=new Dr(0,1,1,1);gZe={symbol:MHe,circle:FHe,heatmap:PHe,line:GHe,fill:jHe,fillExtrusion:$He,hillshade:HHe,colorRelief:YHe,raster:WHe,background:QHe,sky:pZe,atmosphere:vZe,custom:hZe,debug:sZe,debugPadding:nZe,terrainDepth:fZe},yZe=(np=class{constructor(t,r){this.drawFunctions=gZe,this.context=new bHe(t),this.transform=r,this.layerOpacityFbo=null,this._tileTextures={},this._rttObjectRecyclePool=[],this._rttSharedFbo=null,this.terrainFacilitator={depthDirty:!0,matrix:jl(new Float64Array(16)),renderTime:0},this.setup(),this.numSublayers=sF.maxOverzooming+sF.maxUnderzooming+1,this.depthEpsilon=1/2**16,this.crossTileSymbolIndex=new Jle}resize(t,r,i){if(this.width=Math.round(t*i),this.height=Math.round(r*i),this.pixelRatio=i,this.context.viewport.set([0,0,this.width,this.height]),this.style)for(let a of this.style._order)this.style._layers[a].resize()}setup(){let t=this.context,r=new Ah;r.emplaceBack(0,0),r.emplaceBack(ft,0),r.emplaceBack(0,ft),r.emplaceBack(ft,ft),this.tileExtentBuffer=t.createVertexBuffer(r,ap.members),this.tileExtentSegments=ma.simpleSegment(0,0,4,2);let i=new Ah;i.emplaceBack(0,0),i.emplaceBack(ft,0),i.emplaceBack(0,ft),i.emplaceBack(ft,ft),this.debugBuffer=t.createVertexBuffer(i,ap.members),this.debugSegments=ma.simpleSegment(0,0,4,5);let a=new hne;a.emplaceBack(0,0,0,0),a.emplaceBack(ft,0,ft,0),a.emplaceBack(0,ft,0,ft),a.emplaceBack(ft,ft,ft,ft),this.rasterBoundsBuffer=t.createVertexBuffer(a,Sje.members),this.rasterBoundsSegments=ma.simpleSegment(0,0,4,2);let n=new Ah;n.emplaceBack(0,0),n.emplaceBack(ft,0),n.emplaceBack(0,ft),n.emplaceBack(ft,ft),this.rasterBoundsBufferPosOnly=t.createVertexBuffer(n,ap.members),this.rasterBoundsSegmentsPosOnly=ma.simpleSegment(0,0,4,5);let o=new Ah;o.emplaceBack(0,0),o.emplaceBack(1,0),o.emplaceBack(0,1),o.emplaceBack(1,1),this.viewportBuffer=t.createVertexBuffer(o,ap.members),this.viewportSegments=ma.simpleSegment(0,0,4,2);let s=new pne;s.emplaceBack(0),s.emplaceBack(1),s.emplaceBack(3),s.emplaceBack(2),s.emplaceBack(0),this.tileBorderIndexBuffer=t.createIndexBuffer(s);let l=new Ru;l.emplaceBack(1,0,2),l.emplaceBack(1,2,3),this.quadTriangleIndexBuffer=t.createIndexBuffer(l);let u=this.context.gl;this.stencilClearMode=new Ei({func:u.ALWAYS,mask:0},0,255,u.ZERO,u.ZERO,u.ZERO),this.tileExtentMesh=new W2(this.tileExtentBuffer,this.quadTriangleIndexBuffer,this.tileExtentSegments)}clearStencil(){let t=this.context,r=t.gl;this.nextStencilID=1,this.currentStencilSource=void 0;let i=yh();Iu(i,0,this.width,this.height,0,0,1),Zn(i,i,[r.drawingBufferWidth,r.drawingBufferHeight,0]);let a={mainMatrix:i,tileMercatorCoords:[0,0,1,1],clippingPlane:[0,0,0,0],projectionTransition:0,fallbackMatrix:i,clipAntimeridian:!1};this.useProgram("clippingMask",null,!0).draw(t,r.TRIANGLES,Jr.disabled,this.stencilClearMode,Oa.disabled,Ai.disabled,null,null,a,"$clipping",this.viewportBuffer,this.quadTriangleIndexBuffer,this.viewportSegments)}renderTileClippingMasks(t,r){if(this.currentStencilSource===t.source||!t.isTileClipped()||!(r!=null&&r.length))return;this.currentStencilSource=t.source,this.nextStencilID+r.length>256&&this.clearStencil();let i=this.context;i.setColorMode(Oa.disabled),i.setDepthMode(Jr.disabled);let a={};for(let n of r)a[n.key]=this.nextStencilID++;this.style.projection.useSubdivision&&this._renderTileMasks(a,r,!0),this._renderTileMasks(a,r,!1),this._tileClippingMaskIDs=a}_renderTileMasks(t,r,i){let a=this.context,n=a.gl,o=this.style.projection,s=this.renderContext,l=this.useProgram("clippingMask");for(let u of r){let c=t[u.key],h=Xo(s,u),f=o.getMeshFromTileID(this.context,u.canonical,i,!0,"stencil"),d=co(s,u);l.draw(a,n.TRIANGLES,Jr.disabled,new Ei({func:n.ALWAYS,mask:0},c,255,n.KEEP,n.KEEP,n.REPLACE),Oa.disabled,s.isRenderingToTexture?Ai.disabled:Ai.backCCW,null,h,d,"$clipping",f.vertexBuffer,f.indexBuffer,f.segments)}}_renderTilesDepthBuffer(){let t=this.context,r=t.gl,i=this.style.projection,a=this.transform,n=this.useProgram("depth"),o=this.getDepthModeFor3D(),s=Vm(a,{tileSize:a.tileSize});for(let l of s){let u=Xo(this.renderContext,l),c=i.getMeshFromTileID(this.context,l.canonical,!0,!0,"raster"),h=co(this.renderContext,l);n.draw(t,r.TRIANGLES,o,Ei.disabled,Oa.disabled,Ai.backCCW,null,u,h,"$clipping",c.vertexBuffer,c.indexBuffer,c.segments)}}stencilModeFor3D(){this.currentStencilSource=void 0,this.nextStencilID+1>256&&this.clearStencil();let t=this.nextStencilID++,r=this.context.gl;return new Ei({func:r.NOTEQUAL,mask:255},t,255,r.KEEP,r.KEEP,r.REPLACE)}stencilModeForClipping(t){let r=this.context.gl;return new Ei({func:r.EQUAL,mask:255},this._tileClippingMaskIDs[t.key],0,r.KEEP,r.KEEP,r.REPLACE)}getStencilConfigForOverlapAndUpdateStencilID(t){let r=this.context.gl,i=t.sort((o,s)=>s.overscaledZ-o.overscaledZ),a=i[i.length-1].overscaledZ,n=i[0].overscaledZ-a+1;if(n>1){this.currentStencilSource=void 0,this.nextStencilID+n>256&&this.clearStencil();let o={};for(let s=0;ss.overscaledZ-o.overscaledZ),a=i[i.length-1].overscaledZ,n=i[0].overscaledZ-a+1;if(this.clearStencil(),n>1){let o={},s={};for(let l=0;l=0;i.currentLayer--){let f=this.style._layers[a[i.currentLayer]];if(f.isHidden(this.transform.zoom))continue;let d=n[f.source],p=o[f.source];this.renderTileClippingMasks(f,p),this.renderLayer(this,d,f,p,i)}i.currentPass="translucent";let u=!1;for(i.currentLayer=0;i.currentLayer0?r.pop():null}acquireRTT(t){let r=this.context.gl,i=this._rttObjectRecyclePool.pop();if(i)return i.size!==t&&(i.texture.update({width:t,height:t,data:null},{premultiply:!1,useMipmap:!0}),i.texture.bind(r.LINEAR,r.CLAMP_TO_EDGE,r.LINEAR_MIPMAP_LINEAR),this.context.extTextureFilterAnisotropic&&r.texParameterf(r.TEXTURE_2D,this.context.extTextureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT,this.context.extTextureFilterAnisotropicMax),i.size=t),i;let a=new cn(this.context,{width:t,height:t,data:null},r.RGBA,{premultiply:!1,useMipmap:!0});return a.bind(r.LINEAR,r.CLAMP_TO_EDGE,r.LINEAR_MIPMAP_LINEAR),this.context.extTextureFilterAnisotropic&&r.texParameterf(r.TEXTURE_2D,this.context.extTextureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT,this.context.extTextureFilterAnisotropicMax),{texture:a,size:t}}bindRTT(t){let r=this.context.gl,i=t.size;if(!this._rttSharedFbo){let a=this.context.createFramebuffer(i,i,!0,!0),n=this.context.createRenderbuffer(r.DEPTH_STENCIL,i,i);a.depthAttachment.set(n),this._rttSharedFbo={fbo:a,depthRenderbuffer:n,size:i}}this._rttSharedFbo.size!==i&&(this.context.bindRenderbuffer.set(this._rttSharedFbo.depthRenderbuffer),r.renderbufferStorage(r.RENDERBUFFER,r.DEPTH_STENCIL,i,i),this.context.bindRenderbuffer.set(null),this._rttSharedFbo.fbo.width=i,this._rttSharedFbo.fbo.height=i,this._rttSharedFbo.size=i),this._rttSharedFbo.fbo.colorAttachment.set(t.texture.texture),this.context.bindFramebuffer.set(this._rttSharedFbo.fbo.framebuffer)}releaseRTT(t){this._rttObjectRecyclePool.push(t)}clearRTTPool(){for(let t of this._rttObjectRecyclePool)t.texture.destroy();this._rttObjectRecyclePool.length=0}destroyRTTResources(){if(this.clearRTTPool(),!this._rttSharedFbo)return;this._rttSharedFbo.fbo.colorAttachment.set(null),this._rttSharedFbo.fbo.depthAttachment.set(null);let t=this.context.gl;t.deleteRenderbuffer(this._rttSharedFbo.depthRenderbuffer),t.deleteFramebuffer(this._rttSharedFbo.fbo.framebuffer),this._rttSharedFbo=null}isPatternMissing(t){if(!t)return!1;if(!t.from||!t.to)return!0;let r=this.patternAtlas.getPattern(t.from.toString()),i=this.patternAtlas.getPattern(t.to.toString());return!r||!i}useProgram(t,r,i=!1,a=[]){var m;this.cache||(this.cache={});let n=!!this.style.map.terrain,o=this.style.projection,s=i?Ic.projectionMercator:o.shaderPreludeCode,l=i?Qle:o.shaderDefine,u=`/${i?eue:o.shaderVariantName}`,c=r?r.cacheKey:"",h=this._showOverdrawInspector?"/overdraw":"",f=n?"/terrain":"",d=a?`/${a.join("/")}`:"",p=t+c+u+h+f+d;return(m=this.cache)[p]||(m[p]=new Uje(this.context,Ic[t],r,z$e[t],this._showOverdrawInspector,n,s,l,a)),this.cache[p]}setCustomLayerDefaults(){this.context.setCustomLayerDefaults()}setBaseState(){let t=this.context.gl;this.context.cullFace.set(!1),this.context.viewport.set([0,0,this.width,this.height]),this.context.blendEquation.set(t.FUNC_ADD)}initDebugOverlayCanvas(){if(this.debugOverlayCanvas==null){this.debugOverlayCanvas=document.createElement("canvas"),this.debugOverlayCanvas.width=512,this.debugOverlayCanvas.height=512;let t=this.context.gl;this.debugOverlayTexture=new cn(this.context,this.debugOverlayCanvas,t.RGBA)}}destroy(){var t,r,i;if(this._tileTextures){for(let a in this._tileTextures){let n=this._tileTextures[a];if(n)for(let o of n)o.destroy()}this._tileTextures={}}if(this.destroyRTTResources(),(t=this.layerOpacityFbo)==null||t.destroy(),this.layerOpacityFbo=null,this.tileExtentBuffer&&this.tileExtentBuffer.destroy(),this.debugBuffer&&this.debugBuffer.destroy(),this.rasterBoundsBuffer&&this.rasterBoundsBuffer.destroy(),this.rasterBoundsBufferPosOnly&&this.rasterBoundsBufferPosOnly.destroy(),this.viewportBuffer&&this.viewportBuffer.destroy(),this.tileBorderIndexBuffer&&this.tileBorderIndexBuffer.destroy(),this.quadTriangleIndexBuffer&&this.quadTriangleIndexBuffer.destroy(),this.tileExtentMesh&&((r=this.tileExtentMesh.vertexBuffer)==null||r.destroy()),this.tileExtentMesh&&((i=this.tileExtentMesh.indexBuffer)==null||i.destroy()),this.debugOverlayTexture&&this.debugOverlayTexture.destroy(),qje(this.context),this.context.terrainUniformBuffer.destroy(),this.context.frameUniformBuffer.destroy(),this.cache){for(let a in this.cache){let n=this.cache[a];n!=null&&n.program&&this.context.gl.deleteProgram(n.program)}this.cache={}}this.context&&this.context.setDefault()}overLimit(){let{drawingBufferWidth:t,drawingBufferHeight:r}=this.context.gl;return this.width!==t||this.height!==r}},np.MAX_TEXTURE_POOL_SIZE_PER_BUCKET=50,np),Bue=class extends Error{constructor(e,t){var r;super("WebGL2 is required to display this map. We are sorry, but it seems that your browser does not support WebGL2, a technology for rendering 3D graphics on the web. Read more on https://wiki.openstreetmap.org/wiki/This_map_requires_WebGL"),this.name="GPUInitializationError",this.requestedAttributes=e,this.statusMessage=(r=t==null?void 0:t.statusMessage)!=null?r:null}};que=class{constructor(e){this._getHashParams=()=>new URLSearchParams(window.location.hash.replace("#","")),this._getCurrentHash=()=>{var r;let t=this._getHashParams();return this._hashName?(t.get(this._hashName)||"").split("/"):((r=[...t.keys()][0])!=null?r:"").split("/")},this._onHashChange=()=>{let t=this._getCurrentHash();if(!this._isValidHash(t))return!1;let r=this._map.dragRotate.isEnabled()&&this._map.touchZoomRotate.isEnabled()?+(t[3]||0):this._map.getBearing();return this._map.jumpTo({center:[+t[2],+t[1]],zoom:+t[0],bearing:r,pitch:+(t[4]||0)}),!0},this._updateHashUnthrottled=()=>{let t=window.location.href.replace(/(#.*)?$/,this.getHashString());window.history.replaceState(window.history.state,null,t)},this._removeHash=()=>{let t=this._getHashParams();if(this._hashName)t.delete(this._hashName);else{let n=Array.from(t.keys());n.length>0&&t.delete(n[0])}let r=decodeURIComponent(t.toString()).replace(/=&/g,"&").replace(/=$/g,""),i=r?`#${r}`:"",a=window.location.href.replace(/(#.+)?$/,i);a=a.replace("&&","&"),window.history.replaceState(window.history.state,null,a)},this._updateHash=NF(this._updateHashUnthrottled,300),this._hashName=e&&encodeURIComponent(e)}addTo(e){return this._map=e,addEventListener("hashchange",this._onHashChange,!1),this._map.on("moveend",this._updateHash),this}remove(){return removeEventListener("hashchange",this._onHashChange,!1),this._map.off("moveend",this._updateHash),clearTimeout(this._updateHash()),this._removeHash(),delete this._map,this}getHashString(e){let t=this._map.getCenter(),r=Math.round(this._map.getZoom()*100)/100,i=10**Math.ceil((r*Math.LN2+Math.log(512/360/.5))/Math.LN10),a=Math.round(t.lng*i)/i,n=Math.round(t.lat*i)/i,o=this._map.getBearing(),s=this._map.getPitch(),l="";if(l+=e?`/${a}/${n}/${r}`:`${r}/${n}/${a}`,(o||s)&&(l+=`/${Math.round(o*10)/10}`),s&&(l+=`/${Math.round(s)}`),this._hashName){let u=this._getHashParams();return u.set(this._hashName,l),`#${decodeURIComponent(u.toString()).replace(/=&/g,"&").replace(/=$/g,"")}`}return`#${l}`}_isValidHash(e){if(e.length<3||e.some(a=>isNaN(+a)))return!1;try{new ar(+e[2],+e[1])}catch(a){return!1}let t=+e[0],r=+(e[3]||0),i=+(e[4]||0);return t>=this._map.getMinZoom()&&t<=this._map.getMaxZoom()&&r>=-180&&r<=180&&i>=this._map.getMinPitch()&&i<=this._map.getMaxPitch()}},X2={linearity:.3,easing:ew(0,0,.3,1)},_Ze=tr({deceleration:2500,maxSpeed:1400},X2),xZe=tr({deceleration:20,maxSpeed:1400},X2),bZe=tr({deceleration:1e3,maxSpeed:360},X2),wZe=tr({deceleration:1e3,maxSpeed:90},X2),AZe=tr({deceleration:1e3,maxSpeed:360},X2),TZe=class{constructor(e){this._map=e,this.clear()}clear(){this._inertiaBuffer=[]}record(e){this._drainInertiaBuffer(),this._inertiaBuffer.push({time:ki(),settings:e})}_drainInertiaBuffer(){let e=this._inertiaBuffer,t=ki();for(;e.length>0&&t-e[0].time>160;)e.shift()}_getVelocityEntries(){let e=this._inertiaBuffer,t=ki()-60,r=Math.max(0,e.length-2);for(;r>0&&e[r-1].time>=t;)r--;return e.slice(r)}_onMoveEnd(e){this._drainInertiaBuffer();let t=this._getVelocityEntries();if(t.length<2){this.clear();return}let r={zoom:0,bearing:0,pitch:0,roll:0,pan:new Be(0,0),pinchAround:void 0,around:void 0};for(let{settings:n}of t)n.around&&(r.around=n.around),n.pinchAround&&(r.pinchAround=n.pinchAround);for(let{settings:n}of t.slice(1))r.zoom+=n.zoomDelta||0,r.bearing+=n.bearingDelta||0,r.pitch+=n.pitchDelta||0,r.roll+=n.rollDelta||0,n.panDelta&&r.pan._add(n.panDelta);if(!r.pan.mag()&&!r.zoom&&!r.bearing&&!r.pitch&&!r.roll){this.clear();return}let i=ki()-t[0].time,a={};if(r.pan.mag()){let n=U2(r.pan.mag(),i,tr({},_Ze,e||{})),o=r.pan.mult(n.amount/r.pan.mag()),s=this._map._camera.cameraHelper.handlePanInertia(o,this._map._camera.transform);a.center=s.easingCenter,a.offset=s.easingOffset,V2(a,n)}if(r.zoom){let n=U2(r.zoom,i,xZe);a.zoom=ys(this._map.getZoom()+n.amount,this._map.getZoomSnap(),n.amount),V2(a,n)}if(r.bearing){let n=U2(r.bearing,i,bZe);a.bearing=this._map.getBearing()+Ar(n.amount,-179,179),V2(a,n)}if(r.pitch){let n=U2(r.pitch,i,wZe);a.pitch=this._map.getPitch()+n.amount,V2(a,n)}if(r.roll){let n=U2(r.roll,i,AZe);a.roll=this._map.getRoll()+Ar(n.amount,-179,179),V2(a,n)}if(a.zoom||a.bearing){let n=r.pinchAround===void 0?r.around:r.pinchAround;a.around=n?this._map.unproject(n):this._map.getCenter()}return this.clear(),tr(a,{noMoveStart:!0})}};MZe=class{constructor(e,t){this._map=e,this._clickTolerance=t.clickTolerance}reset(){delete this._mousedownPos}wheel(e){return this._firePreventable(new xle(this._map,e))}mousedown(e,t){return this._mousedownPos=t,this._firePreventable(new bs(e.type,this._map,e))}mouseup(e){this._map.fire(new bs(e.type,this._map,e))}click(e,t){this._mousedownPos&&this._mousedownPos.dist(t)>=this._clickTolerance||this._map.fire(new bs(e.type,this._map,e))}dblclick(e){return this._firePreventable(new bs(e.type,this._map,e))}mouseover(e){this._map.fire(new bs(e.type,this._map,e))}mouseout(e){this._map.fire(new bs(e.type,this._map,e))}touchstart(e){return this._firePreventable(new $2(e.type,this._map,e))}touchmove(e){this._map.fire(new $2(e.type,this._map,e))}touchend(e){this._map.fire(new $2(e.type,this._map,e))}touchcancel(e){this._map.fire(new $2(e.type,this._map,e))}_firePreventable(e){if(this._map.fire(e),e.defaultPrevented)return{}}isEnabled(){return!0}isActive(){return!1}enable(){}disable(){}},DZe=class{constructor(e,t){this._map=e,this._clickTolerance=t.clickTolerance}reset(){this._delayContextMenu=!1,this._ignoreContextMenu=!0,delete this._contextMenuEvent,this._clearLongPress(),this._touchActive=!1}mousemove(e){this._map.fire(new bs(e.type,this._map,e))}mousedown(){this._delayContextMenu=!0,this._ignoreContextMenu=!1}mouseup(){this._delayContextMenu=!1,this._contextMenuEvent&&(this._map.fire(new bs("contextmenu",this._map,this._contextMenuEvent)),delete this._contextMenuEvent)}touchstart(e,t,r){if(this._clearLongPress(),this._touchActive=r.length>0,r.length!==1)return;this._longPressStart=t[0];let i=r[0];this._longPressTimer=setTimeout(()=>{this._longPressTimer=void 0;let a=new MouseEvent("contextmenu",{clientX:i.clientX,clientY:i.clientY,button:2,bubbles:!0,cancelable:!0});this._map.fire(new bs("contextmenu",this._map,a))},500)}touchmove(e,t,r){this._longPressTimer&&(r.length!==1||!this._longPressStart||t[0].dist(this._longPressStart)>this._clickTolerance)&&this._clearLongPress()}touchend(){this._touchActive=!1,this._clearLongPress()}touchcancel(){this._touchActive=!1,this._clearLongPress()}_clearLongPress(){this._longPressTimer&&(this._longPressTimer=(clearTimeout(this._longPressTimer),void 0)),this._longPressStart=void 0}contextmenu(e){if(this._touchActive){e.preventDefault();return}this._delayContextMenu?this._contextMenuEvent=e:this._ignoreContextMenu||this._map.fire(new bs(e.type,this._map,e)),this._map.listens("contextmenu")&&e.preventDefault()}isEnabled(){return!0}isActive(){return!1}enable(){}disable(){}},Oue=class{constructor(e,t,r){this._map=e,this._tr=r,this._el=e.getCanvasContainer(),this._container=e.getContainer(),this._clickTolerance=t.clickTolerance||1,t.boxZoom&&typeof t.boxZoom=="object"&&(this._boxZoomEnd=t.boxZoom.boxZoomEnd)}isEnabled(){return!!this._enabled}isActive(){return!!this._active}enable(){this.isEnabled()||(this._enabled=!0)}disable(){this.isEnabled()&&(this._enabled=!1)}mousedown(e,t){this.isEnabled()&&e.shiftKey&&e.button===0&&(wr.disableDrag(),this._startPos=this._lastPos=t,this._active=!0)}mousemoveWindow(e,t){if(!this._active)return;let r=t;if(this._lastPos.equals(r)||!this._box&&r.dist(this._startPos)a.fitScreenCoordinates(r,i,this._tr.bearing,{linear:!0})}}}keydown(e){this._active&&e.keyCode===27&&(this.reset(),this._fireEvent("boxzoomcancel",e))}reset(){this._active=!1,this._container.classList.remove("maplibregl-crosshair"),this._box&&(this._box=(this._box.remove(),null)),wr.enableDrag(),delete this._startPos,delete this._lastPos}_fireEvent(e,t){return this._map.fire(new rF(e,{originalEvent:t}))}};EZe=class{constructor(e){this.reset(),this.numTouches=e.numTouches}reset(){delete this.centroid,delete this.startTime,delete this.touches,this.aborted=!1}touchstart(e,t,r){(this.centroid||r.length>this.numTouches)&&(this.aborted=!0),!this.aborted&&(this.startTime===void 0&&(this.startTime=e.timeStamp),r.length===this.numTouches&&(this.centroid=SZe(t),this.touches=mF(r,t)))}touchmove(e,t,r){if(this.aborted||!this.centroid)return;let i=mF(r,t);for(let a in this.touches){let n=this.touches[a],o=i[a];(!o||o.dist(n)>30)&&(this.aborted=!0)}}touchend(e,t,r){if((!this.centroid||e.timeStamp-this.startTime>500)&&(this.aborted=!0),r.length===0){let i=!this.aborted&&this.centroid;if(this.reset(),i)return i}}},vF=class{constructor(e){this.singleTap=new EZe(e),this.numTaps=e.numTaps,this.reset()}reset(){this.lastTime=1/0,delete this.lastTap,this.count=0,this.singleTap.reset()}touchstart(e,t,r){this.singleTap.touchstart(e,t,r)}touchmove(e,t,r){this.singleTap.touchmove(e,t,r)}touchend(e,t,r){let i=this.singleTap.touchend(e,t,r);if(i){let a=e.timeStamp-this.lastTime<500,n=!this.lastTap||this.lastTap.dist(i)<30;if((!a||!n)&&this.reset(),this.count++,this.lastTime=e.timeStamp,this.lastTap=i,this.count===this.numTaps)return this.reset(),i}}},kZe=class{constructor(e,t){this._tr=t,this._zoomIn=new vF({numTouches:1,numTaps:2}),this._zoomOut=new vF({numTouches:2,numTaps:1}),this.reset()}reset(){this._active=!1,this._zoomIn.reset(),this._zoomOut.reset()}touchstart(e,t,r){this._zoomIn.touchstart(e,t,r),this._zoomOut.touchstart(e,t,r)}touchmove(e,t,r){this._zoomIn.touchmove(e,t,r),this._zoomOut.touchmove(e,t,r)}touchend(e,t,r){let i=this._zoomIn.touchend(e,t,r),a=this._zoomOut.touchend(e,t,r),n=this._tr;if(i)return this._active=!0,e.preventDefault(),setTimeout(()=>this.reset(),0),{cameraAnimation:o=>o.easeTo({duration:300,zoom:ys(n.zoom+1,o.getZoomSnap()),around:n.transform.isPointOnMapSurface(i)?n.unproject(i):void 0},{originalEvent:e})};if(a)return this._active=!0,e.preventDefault(),setTimeout(()=>this.reset(),0),{cameraAnimation:o=>o.easeTo({duration:300,zoom:ys(n.zoom-1,o.getZoomSnap()),around:n.transform.isPointOnMapSurface(a)?n.unproject(a):void 0},{originalEvent:e})}}touchcancel(){this.reset()}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}},K2=class{constructor(e){this._enabled=!!e.enable,this._moveStateManager=e.moveStateManager,this._clickTolerance=e.clickTolerance||1,this._moveFunction=e.move,this._activateOnStart=!!e.activateOnStart,e.assignEvents(this),this.reset()}reset(e){this._active=!1,this._moved=!1,delete this._lastPoint,this._moveStateManager.endMove(e)}_move(...e){let t=this._moveFunction(...e);if(t.bearingDelta||t.pitchDelta||t.rollDelta||t.around||t.panDelta)return this._active=!0,t}dragStart(e,t){this.isEnabled()&&!this._lastPoint&&this._moveStateManager.isValidStartEvent(e)&&(this._moveStateManager.startMove(e),this._lastPoint=Array.isArray(t)?t[0]:t,this._activateOnStart&&this._lastPoint&&(this._active=!0))}dragMove(e,t){if(!this.isEnabled())return;let r=this._lastPoint;if(!r)return;if(e.preventDefault(),!this._moveStateManager.isValidMoveEvent(e)){this.reset(e);return}let i=Array.isArray(t)?t[0]:t;if(!(!this._moved&&i.dist(r)!0}),t=new PZe){this.mouseMoveStateManager=e,this.oneFingerTouchMoveStateManager=t}_executeRelevantHandler(e,t,r){if(e instanceof MouseEvent)return t(e);if(typeof TouchEvent<"u"&&e instanceof TouchEvent)return r(e)}startMove(e){this._executeRelevantHandler(e,t=>{this.mouseMoveStateManager.startMove(t)},t=>{this.oneFingerTouchMoveStateManager.startMove(t)})}endMove(e){this._executeRelevantHandler(e,t=>{this.mouseMoveStateManager.endMove(t)},t=>{this.oneFingerTouchMoveStateManager.endMove(t)})}isValidStartEvent(e){return!!this._executeRelevantHandler(e,t=>this.mouseMoveStateManager.isValidStartEvent(t),t=>this.oneFingerTouchMoveStateManager.isValidStartEvent(t))}isValidMoveEvent(e){return!!this._executeRelevantHandler(e,t=>this.mouseMoveStateManager.isValidMoveEvent(t),t=>this.oneFingerTouchMoveStateManager.isValidMoveEvent(t))}isValidEndEvent(e){return!!this._executeRelevantHandler(e,t=>this.mouseMoveStateManager.isValidEndEvent(t),t=>this.oneFingerTouchMoveStateManager.isValidEndEvent(t))}},v6=e=>{e.mousedown=e.dragStart,e.mousemoveWindow=e.dragMove,e.mouseup=e.dragEnd,e.contextmenu=t=>{t.preventDefault()}};qZe=class{constructor(e,t){this._clickTolerance=e.clickTolerance||1,this._map=t,this.reset()}reset(){this._active=!1,this._touches={},this._sum=new Be(0,0)}_shouldBePrevented(e){return e<(this._map.cooperativeGestures.isEnabled()?2:1)}touchstart(e,t,r){return this._calculateTransform(e,t,r)}touchmove(e,t,r){if(this._active){if(this._shouldBePrevented(r.length)){this._map.cooperativeGestures.notifyGestureBlocked("touch_pan",e);return}return e.preventDefault(),this._calculateTransform(e,t,r)}}touchend(e,t,r){this._calculateTransform(e,t,r),this._active&&this._shouldBePrevented(r.length)&&this.reset()}touchcancel(){this.reset()}_calculateTransform(e,t,r){r.length>0&&(this._active=!0);let i=mF(r,t),a=new Be(0,0),n=new Be(0,0),o=0;for(let l in i){let u=i[l],c=this._touches[l];c&&(a._add(u),n._add(u.sub(c)),o++,i[l]=u)}if(this._touches=i,this._shouldBePrevented(o)||!n.mag())return;let s=n.div(o);if(this._sum._add(s),!(this._sum.mag()=2,a=t.mag()>=2;if(!i&&!a)return;if(!i||!a)return this._firstMove===void 0&&(this._firstMove=r),r-this._firstMove<100&&void 0;let n=e.y>0==t.y>0;return JC(e)&&JC(t)&&n}},OZe={panStep:100,bearingStep:15,pitchStep:10},Gue=class{constructor(e,t){this._tr=t;let r=OZe;this._panStep=r.panStep,this._bearingStep=r.bearingStep,this._pitchStep=r.pitchStep,this._rotationDisabled=!1}reset(){this._active=!1}keydown(e){if(e.altKey||e.ctrlKey||e.metaKey)return;let t=0,r=0,i=0,a=0,n=0;switch(e.keyCode){case 61:case 107:case 171:case 187:t=1;break;case 189:case 109:case 173:t=-1;break;case 37:e.shiftKey?r=-1:(e.preventDefault(),a=-1);break;case 39:e.shiftKey?r=1:(e.preventDefault(),a=1);break;case 38:e.shiftKey?i=1:(e.preventDefault(),n=-1);break;case 40:e.shiftKey?i=-1:(e.preventDefault(),n=1);break;default:return}return this._rotationDisabled&&(r=0,i=0),{cameraAnimation:o=>{let s=this._tr;o.easeTo({duration:300,easeId:"keyboardHandler",easing:NZe,zoom:t?ys(s.zoom+t*(e.shiftKey?2:1),o.getZoomSnap()):s.zoom,bearing:s.bearing+r*this._bearingStep,pitch:s.pitch+i*this._pitchStep,offset:[-a*this._panStep,-n*this._panStep],center:s.center},{originalEvent:e})}}}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}disableRotation(){this._rotationDisabled=!0}enableRotation(){this._rotationDisabled=!1}};dle=4.000244140625,jue=class{constructor(e,t,r){this._onTimeout=i=>{this._type="wheel",this._delta-=this._lastValue,this._active||this._start(i)},this._map=e,this._tr=r,this._triggerRenderFrame=t,this._delta=0,this._defaultZoomRate=.01,this._wheelZoomRate=.0022222222222222222}setZoomRate(e){this._defaultZoomRate=e}setWheelZoomRate(e){this._wheelZoomRate=e}isEnabled(){return!!this._enabled}isActive(){return!!this._active||this._finishTimeout!==void 0}isZooming(){return!!this._zooming}enable(e){this.isEnabled()||(this._enabled=!0,this._aroundCenter=!!e&&e.around==="center")}disable(){this.isEnabled()&&(this._enabled=!1)}_shouldBePrevented(e){return this._map.cooperativeGestures.isEnabled()?!(e.ctrlKey||this._map.cooperativeGestures.isBypassed(e)):!1}wheel(e){if(!this.isEnabled())return;if(this._shouldBePrevented(e)){this._map.cooperativeGestures.notifyGestureBlocked("wheel_zoom",e);return}let t=e.deltaMode===WheelEvent.DOM_DELTA_LINE?e.deltaY*40:e.deltaY,r=ki(),i=r-(this._lastWheelEventTime||0);this._lastWheelEventTime=r,t!==0&&t%dle==0?this._type="wheel":t!==0&&Math.abs(t)<4?this._type="trackpad":i>400?(this._type=null,this._lastValue=t,this._timeout=setTimeout(this._onTimeout,40,e)):this._type||(this._type=Math.abs(i*t)<200?"trackpad":"wheel",this._timeout&&(clearTimeout(this._timeout),this._timeout=null,t+=this._lastValue)),e.shiftKey&&t&&(t/=4),this._type&&(this._lastWheelEvent=e,this._delta-=t,this._active||this._start(e)),e.preventDefault()}_start(e){if(!this._delta)return;this._needsRerender=!1,this._active=!0,this.isZooming()||(this._zooming=!0),this._finishTimeout&&(clearTimeout(this._finishTimeout),delete this._finishTimeout);let t=wr.mousePos(this._map.getCanvas(),e),r=this._tr;this._aroundPoint=this._aroundCenter?r.transform.locationToScreenPoint(ar.convert(r.center)):t,this._needsRerender||(this._needsRerender=!0,this._triggerRenderFrame())}renderFrame(){if(!this._needsRerender||(this._needsRerender=!1,!this.isActive()))return;let e=this._tr.transform;if(typeof this._lastExpectedZoom=="number"){let o=e.zoom-this._lastExpectedZoom;typeof this._startZoom=="number"&&(this._startZoom+=o),typeof this._targetZoom=="number"&&(this._targetZoom+=o)}if(this._delta!==0){let o=this._type==="wheel"&&Math.abs(this._delta)>dle?this._wheelZoomRate:this._defaultZoomRate,s=2/(1+Math.exp(-Math.abs(this._delta*o)));this._delta<0&&s!==0&&(s=1/s);let l=typeof this._targetZoom=="number"?Po(this._targetZoom):e.scale,u=e.applyConstrain(e.getCameraLngLat(),Wn(l*s)).zoom,c=this._map.getZoomSnap();if(this._type==="wheel"&&c>0){let h=ys(e.zoom,c);this._targetZoom=ys(u,c,u-h)}else this._targetZoom=u;this._type==="wheel"&&(this._startZoom=e.zoom,this._easing=this._smoothOutEasing(200)),this._delta=0}let t=typeof this._targetZoom=="number"?this._targetZoom:e.zoom,r=this._startZoom,i=this._easing,a=!1,n;if(this._type==="wheel"&&r&&i){let o=ki()-this._lastWheelEventTime,s=Math.min((o+5)/200,1),l=i(s);n=pa.number(r,t,l),s<1?this._needsRerender=!0:a=!0}else n=t,a=!0;return this._active=!0,a&&(this._active=!1,this._finishTimeout=setTimeout(()=>{this._zooming=!1,this._triggerRenderFrame(),delete this._targetZoom,delete this._lastExpectedZoom,delete this._finishTimeout},200)),this._lastExpectedZoom=n,{noInertia:!0,needsRenderFrame:!a,zoomDelta:n-e.zoom,around:this._aroundPoint,originalEvent:this._lastWheelEvent}}_smoothOutEasing(e){let t=tw;if(this._prevEase){let r=this._prevEase,i=(ki()-r.start)/r.duration,a=r.easing(i+.01)-r.easing(i),n=.27/Math.sqrt(a*a+1e-4)*.01,o=Math.sqrt(.0729-n*n);t=ew(n,o,.25,1)}return this._prevEase={start:ki(),duration:e,easing:t},t}reset(){this._active=!1,this._zooming=!1,delete this._targetZoom,delete this._lastExpectedZoom,this._finishTimeout&&(clearTimeout(this._finishTimeout),delete this._finishTimeout)}},$ue=class{constructor(e,t){this._clickZoom=e,this._tapZoom=t}enable(){this._clickZoom.enable(),this._tapZoom.enable()}disable(){this._clickZoom.disable(),this._tapZoom.disable()}isEnabled(){return this._clickZoom.isEnabled()&&this._tapZoom.isEnabled()}isActive(){return this._clickZoom.isActive()||this._tapZoom.isActive()}},VZe=class{constructor(e,t){this._tr=t,this.reset()}reset(){this._active=!1}dblclick(e,t){return e.preventDefault(),{cameraAnimation:r=>{r.easeTo({duration:300,zoom:ys(this._tr.zoom+(e.shiftKey?-1:1),r.getZoomSnap()),around:this._tr.transform.isPointOnMapSurface(t)?this._tr.unproject(t):void 0},{originalEvent:e})}}}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}},UZe=class{constructor(){this._tap=new vF({numTouches:1,numTaps:1}),this._zoomRate=1,this.reset()}setZoomRate(e){this._zoomRate=e!=null?e:1}reset(){this._active=!1,delete this._swipePoint,delete this._swipeTouch,delete this._tapTime,delete this._tapPoint,this._tap.reset()}touchstart(e,t,r){if(!this._swipePoint)if(!this._tapTime)this._tap.touchstart(e,t,r);else{let i=t[0],a=e.timeStamp-this._tapTime<500,n=this._tapPoint.dist(i)<30;!a||!n?this.reset():r.length>0&&(this._swipePoint=i,this._swipeTouch=r[0].identifier)}}touchmove(e,t,r){if(!this._tapTime)this._tap.touchmove(e,t,r);else if(this._swipePoint){if(r[0].identifier!==this._swipeTouch)return;let i=t[0],a=i.y-this._swipePoint.y;return this._swipePoint=i,e.preventDefault(),this._active=!0,{zoomDelta:a/128*this._zoomRate}}}touchend(e,t,r){if(this._tapTime)this._swipePoint&&r.length===0&&this.reset();else{let i=this._tap.touchend(e,t,r);i&&(this._tapTime=e.timeStamp,this._tapPoint=i)}}touchcancel(){this.reset()}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}},Hue=class{constructor(e,t,r){this._el=e,this._mousePan=t,this._touchPan=r}enable(e){this._inertiaOptions=e||{},this._mousePan.enable(),this._touchPan.enable(),this._el.classList.add("maplibregl-touch-drag-pan")}disable(){this._mousePan.disable(),this._touchPan.disable(),this._el.classList.remove("maplibregl-touch-drag-pan")}isEnabled(){return this._mousePan.isEnabled()&&this._touchPan.isEnabled()}isActive(){return this._mousePan.isActive()||this._touchPan.isActive()}},Zue=class{constructor(e,t,r,i){this._pitchWithRotate=e.pitchWithRotate,this._rollEnabled=e.rollEnabled,this._mouseRotate=t,this._mousePitch=r,this._mouseRoll=i}enable(){this._mouseRotate.enable(),this._pitchWithRotate&&this._mousePitch.enable(),this._rollEnabled&&this._mouseRoll.enable()}disable(){this._mouseRotate.disable(),this._mousePitch.disable(),this._mouseRoll.disable()}isEnabled(){return this._mouseRotate.isEnabled()&&(!this._pitchWithRotate||this._mousePitch.isEnabled())&&(!this._rollEnabled||this._mouseRoll.isEnabled())}isActive(){return this._mouseRotate.isActive()||this._mousePitch.isActive()||this._mouseRoll.isActive()}},Yue=class{constructor(e,t,r,i){this._el=e,this._touchZoom=t,this._touchRotate=r,this._tapDragZoom=i,this._rotationDisabled=!1,this._enabled=!0}enable(e){this._touchZoom.enable(e),this._rotationDisabled||this._touchRotate.enable(e),this._tapDragZoom.enable(),this._el.classList.add("maplibregl-touch-zoom-rotate")}disable(){this._touchZoom.disable(),this._touchRotate.disable(),this._tapDragZoom.disable(),this._el.classList.remove("maplibregl-touch-zoom-rotate")}isEnabled(){return this._touchZoom.isEnabled()&&(this._rotationDisabled||this._touchRotate.isEnabled())&&this._tapDragZoom.isEnabled()}isActive(){return this._touchZoom.isActive()||this._touchRotate.isActive()||this._tapDragZoom.isActive()}setZoomRate(e){this._touchZoom.setZoomRate(e),this._tapDragZoom.setZoomRate(e)}setZoomThreshold(e){this._touchZoom.setZoomThreshold(e)}disableRotation(){this._rotationDisabled=!0,this._touchRotate.disable()}enableRotation(){this._rotationDisabled=!1,this._touchZoom.isEnabled()&&this._touchRotate.enable()}},Wue=class{constructor(e,t){this._bypassKey=navigator.userAgent.includes("Mac")?"metaKey":"ctrlKey",this._map=e,this._options=t,this._enabled=!1}isActive(){return!1}reset(){}_setupUI(){if(this._container)return;let e=this._map.getCanvasContainer();e.classList.add("maplibregl-cooperative-gestures"),this._container=wr.create("div","maplibregl-cooperative-gesture-screen",e);let t=this._map._getUIString("CooperativeGesturesHandler.WindowsHelpText");this._bypassKey==="metaKey"&&(t=this._map._getUIString("CooperativeGesturesHandler.MacHelpText"));let r=this._map._getUIString("CooperativeGesturesHandler.MobileHelpText"),i=document.createElement("div");i.className="maplibregl-desktop-message",i.textContent=t,this._container.appendChild(i);let a=document.createElement("div");a.className="maplibregl-mobile-message",a.textContent=r,this._container.appendChild(a),this._container.setAttribute("aria-hidden","true")}_destroyUI(){this._container&&(this._container.remove(),this._map.getCanvasContainer().classList.remove("maplibregl-cooperative-gestures")),delete this._container}enable(){this._setupUI(),this._enabled=!0}disable(){this._enabled=!1,this._destroyUI()}isEnabled(){return this._enabled}isBypassed(e){return e[this._bypassKey]}notifyGestureBlocked(e,t){this._enabled&&(this._map.fire(new In("cooperativegestureprevented",{gestureType:e,originalEvent:t})),this._container.classList.add("maplibregl-show"),setTimeout(()=>{this._container.classList.remove("maplibregl-show")},100))}},GZe=class{constructor(e){this._camera=e}get transform(){return this._camera._requestedCameraState||this._camera.transform}get center(){return{lng:this.transform.center.lng,lat:this.transform.center.lat}}get zoom(){return this.transform.zoom}get pitch(){return this.transform.pitch}get bearing(){return this.transform.bearing}unproject(e){return this.transform.screenPointToLocation(Be.convert(e),this._camera.terrain)}},Kw=e=>e.zoom||e.drag||e.roll||e.pitch||e.rotate,jZe=class extends xs{};$Ze=class{get _ownerDocument(){var e;return((e=this._el)==null?void 0:e.ownerDocument)||document}get _ownerWindow(){var e,t;return((t=(e=this._el)==null?void 0:e.ownerDocument)==null?void 0:t.defaultView)||window}constructor(e,t,r){this._terrainGesture={inFlight:!1,anchorElevation:null},this.handleWindowEvent=a=>{this.handleEvent(a,`${a.type}Window`)},this.handleEvent=(a,n)=>{if(a.type==="blur"){this.stop(!0);return}this._updatingCamera=!0;let o=a.type==="renderFrame"?void 0:a,s={needsRenderFrame:!1},l={},u={};for(let{handlerName:f,handler:d,allowed:p}of this._handlers){if(!d.isEnabled())continue;let m;if(this._blockedByActive(u,p,f))d.reset();else if(d[n||a.type]){if(Tie(a,n||a.type)){let g=wr.mousePos(this._map.getCanvas(),a);m=d[n||a.type](a,g)}else if(Aie(a,n||a.type)){let g=a.touches,y=this._getMapTouches(g),x=wr.touchPos(this._map.getCanvas(),y);m=d[n||a.type](a,x,y)}else Mie(n||a.type)||(m=d[n||a.type](a));this.mergeHandlerResult(s,l,m,f,o),m!=null&&m.needsRenderFrame&&this._triggerRenderFrame()}(m||d.isActive())&&(u[f]=d)}let c={};for(let f in this._previousActiveHandlers)u[f]||(c[f]=o);this._previousActiveHandlers=u,(Object.keys(c).length||QC(s))&&(this._changes.push([s,l,c]),this._triggerRenderFrame()),(Object.keys(u).length||QC(s))&&this._camera.stop(!0),this._updatingCamera=!1;let{cameraAnimation:h}=s;h&&(this._inertia.clear(),this._fireEvents({},{},!0),this._changes=[],h(this._map))},this._map=e,this._camera=t,this._transformProvider=new GZe(this._camera),this._el=this._map.getCanvasContainer(),this._handlers=[],this._handlersById={},this._changes=[],this._inertia=new TZe(e),this._bearingSnap=r.bearingSnap,this._previousActiveHandlers={},this._eventsInProgress={},this._addDefaultHandlers(r);let i=this._el;this._listeners=[[i,"touchstart",{passive:!0}],[i,"touchmove",{passive:!1}],[i,"touchend",void 0],[i,"touchcancel",void 0],[i,"mousedown",void 0],[i,"mousemove",void 0],[i,"mouseup",void 0],[this._ownerDocument,"mousemove",{capture:!0}],[this._ownerDocument,"mouseup",void 0],[i,"mouseover",void 0],[i,"mouseout",void 0],[i,"dblclick",void 0],[i,"click",void 0],[i,"keydown",{capture:!1}],[i,"keyup",void 0],[i,"wheel",{passive:!1}],[i,"contextmenu",void 0],[this._ownerWindow,"blur",void 0]];for(let[a,n,o]of this._listeners)a.addEventListener(n,a===this._ownerDocument?this.handleWindowEvent:this.handleEvent,o)}destroy(){for(let[e,t,r]of this._listeners)e.removeEventListener(t,e===this._ownerDocument?this.handleWindowEvent:this.handleEvent,r)}_addDefaultHandlers(e){let t=this._map,r=t.getCanvasContainer();this._add("mapEvent",new MZe(t,e));let i=t.boxZoom=new Oue(t,e,this._transformProvider);this._add("boxZoom",i),e.interactive&&e.boxZoom&&i.enable();let a=t.cooperativeGestures=new Wue(t,e.cooperativeGestures);this._add("cooperativeGestures",a),e.cooperativeGestures&&a.enable();let n=new kZe(t,this._transformProvider),o=new VZe(t,this._transformProvider);t.doubleClickZoom=new $ue(o,n),this._add("tapZoom",n),this._add("clickZoom",o),e.interactive&&e.doubleClickZoom&&t.doubleClickZoom.enable();let s=new UZe;this._add("tapDragZoom",s);let l=t.touchPitch=new Uue(t);this._add("touchPitch",l),e.interactive&&e.touchPitch&&t.touchPitch.enable(e.touchPitch);let u=()=>this._camera.transform.centerPoint,c=zZe(e,u),h=RZe(e),f=BZe(e,u);t.dragRotate=new Zue(e,c,h,f),this._add("mouseRotate",c,["mousePitch"]),this._add("mousePitch",h,["mouseRotate","mouseRoll"]),this._add("mouseRoll",f,["mousePitch"]),e.interactive&&e.dragRotate&&t.dragRotate.enable();let d=LZe(e),p=new qZe(e,t);t.dragPan=new Hue(r,d,p),this._add("mousePan",d),this._add("touchPan",p,["touchZoom","touchRotate"]),e.interactive&&e.dragPan&&t.dragPan.enable(e.dragPan);let m=new Vue,g=new Nue;t.touchZoomRotate=new Yue(r,g,m,s),this._add("touchRotate",m,["touchPan","touchZoom"]),this._add("touchZoom",g,["touchPan","touchRotate"]),e.interactive&&e.touchZoomRotate&&t.touchZoomRotate.enable(e.touchZoomRotate),this._add("blockableMapEvent",new DZe(t,e),["touchPan"]);let y=t.scrollZoom=new jue(t,()=>this._triggerRenderFrame(),this._transformProvider);this._add("scrollZoom",y,["mousePan"]),e.interactive&&e.scrollZoom&&t.scrollZoom.enable(e.scrollZoom);let x=t.keyboard=new Gue(t,this._transformProvider);this._add("keyboard",x),e.interactive&&e.keyboard&&t.keyboard.enable()}_add(e,t,r){this._handlers.push({handlerName:e,handler:t,allowed:r}),this._handlersById[e]=t}stop(e){if(!this._updatingCamera){for(let{handler:t}of this._handlers)t.reset();this._inertia.clear(),this._fireEvents({},{},e),this._changes=[]}}isActive(){for(let{handler:e}of this._handlers)if(e.isActive())return!0;return!1}isZooming(){return!!this._eventsInProgress.zoom||this._map.scrollZoom.isZooming()}isRotating(){return!!this._eventsInProgress.rotate}isMoving(){return!!Kw(this._eventsInProgress)||this.isZooming()}_blockedByActive(e,t,r){for(let i in e)if(i!==r&&!(t!=null&&t.includes(i)))return!0;return!1}_getMapTouches(e){let t=[];for(let r of e){let i=r.target;this._el.contains(i)&&t.push(r)}return t}mergeHandlerResult(e,t,r,i,a){if(!r)return;tr(e,r);let n={handlerName:i,originalEvent:r.originalEvent||a};r.zoomDelta!==void 0&&(t.zoom=n),r.panDelta!==void 0&&(t.drag=n),r.rollDelta!==void 0&&(t.roll=n),r.pitchDelta!==void 0&&(t.pitch=n),r.bearingDelta!==void 0&&(t.rotate=n)}_applyChanges(){let e={},t={},r={};for(let[i,a,n]of this._changes)i.panDelta&&(e.panDelta=(e.panDelta||new Be(0,0))._add(i.panDelta)),i.zoomDelta&&(e.zoomDelta=(e.zoomDelta||0)+i.zoomDelta),i.bearingDelta&&(e.bearingDelta=(e.bearingDelta||0)+i.bearingDelta),i.pitchDelta&&(e.pitchDelta=(e.pitchDelta||0)+i.pitchDelta),i.rollDelta&&(e.rollDelta=(e.rollDelta||0)+i.rollDelta),i.around!==void 0&&(e.around=i.around),i.pinchAround!==void 0&&(e.pinchAround=i.pinchAround),i.noInertia&&(e.noInertia=i.noInertia),tr(t,a),tr(r,n);this._updateMapTransform(e,t,r),this._changes=[]}_updateMapTransform(e,t,r){let i=this._map.terrain;if(!QC(e)){this._fireEvents(t,r,!0);return}let a=this._camera.getTransformForUpdate();this._camera.stop(!0);let{panDelta:n,zoomDelta:o,bearingDelta:s,pitchDelta:l,rollDelta:u}=e,{around:c,aroundOnSurface:h}=this._resolveAround(e,i,a),f=i?this._terrainGestureElevation(i,c,h,a,t):void 0,d={panDelta:n,zoomDelta:o,rollDelta:u,pitchDelta:l,bearingDelta:s,around:c,aroundElevation:f};this._camera.cameraHelper.useGlobeControls&&!a.isPointOnMapSurface(c)&&(c=a.centerPoint);let p=this._computePreZoomAroundLoc(a,c,n,f);this._handleMapControls({terrain:i,tr:a,deltasForHelper:d,preZoomAroundLoc:p,combinedEventsInProgress:t,panDelta:n}),this._camera.applyUpdatedTransform(a),this._map._update(),e.noInertia||this._inertia.record(e),this._fireEvents(t,r,!0)}_resolveAround(e,t,r){let i=e.pinchAround===void 0?e.around:e.pinchAround;return i||(i=this._camera.transform.centerPoint),t&&!r.isPointOnMapSurface(i)?{around:r.centerPoint,aroundOnSurface:!1}:{around:i,aroundOnSurface:!0}}_terrainGestureElevation(e,t,r,i,a){if(!r)return;if(this._terrainGesture.anchorElevation===null&&(a.drag||a.zoom)){let o=i.screenTerrainPointToMercatorCoordinate(t,e);this._terrainGesture.anchorElevation=o?o.z:void 0}let n=this._terrainGesture.anchorElevation;if(n!=null&&!(t.distSqr(i.centerPoint)<.01)&&!(n-i.elevation>=.9*(i.getCameraAltitude()-i.elevation)))return n}_computePreZoomAroundLoc(e,t,r,i){if(t.distSqr(e.centerPoint)<.01)return e.center;let a=r?t.sub(r):t;return i===void 0?e.screenPointToLocation(a):e.screenPointToLocationAtElevation(a,i)}_handleMapControls({terrain:e,tr:t,deltasForHelper:r,preZoomAroundLoc:i,combinedEventsInProgress:a,panDelta:n}){let o=this._camera.cameraHelper;if(o.handleMapControlsRollPitchBearingZoom(r,t),!e&&!o.useGlobeControls&&!t.isPointOnMapSurface(r.around)){n&&t.setCenter(t.screenPointToLocation(t.centerPoint.sub(n)));return}if(!e){o.handleMapControlsPan(r,t,i);return}if(!this._terrainGesture.inFlight){this._terrainGesture.inFlight=!0,this._camera.elevationFreeze=!0,o.handleMapControlsPan(r,t,i);return}if(!o.useGlobeControls&&r.aroundElevation===void 0&&a.drag&&n){t.setCenter(t.screenPointToLocation(t.centerPoint.sub(n)));return}o.handleMapControlsPan(r,t,i)}_fireEvents(e,t,r){let i=Kw(this._eventsInProgress),a=Kw(e),n={};for(let c in e){let{originalEvent:h}=e[c];this._eventsInProgress[c]||(n[`${c}start`]=h),this._eventsInProgress[c]=e[c]}!i&&a&&this._fireEvent("movestart",a.originalEvent);for(let c in n)this._fireEvent(c,n[c]);a&&this._fireEvent("move",a.originalEvent);for(let c in e){let{originalEvent:h}=e[c];this._fireEvent(c,h)}let o={},s;for(let c in this._eventsInProgress){let{handlerName:h,originalEvent:f}=this._eventsInProgress[c];this._handlersById[h].isActive()||(delete this._eventsInProgress[c],s=t[h]||f,o[`${c}end`]=s)}for(let c in o)this._fireEvent(c,o[c]);let l=Kw(this._eventsInProgress),u=(i||a)&&!l;if(u&&this._terrainGesture.inFlight){this._camera.elevationFreeze=!1,this._terrainGesture={inFlight:!1,anchorElevation:null};let c=this._camera.getTransformForUpdate();this._map.getCenterClampedToGround()&&c.recalculateZoomAndCenter(this._map.terrain),this._camera.applyUpdatedTransform(c)}if(r&&u){this._updatingCamera=!0;let c=this._inertia._onMoveEnd(this._map.dragPan._inertiaOptions),h=f=>f!==0&&-this._bearingSnap{delete this._frameId,this.handleEvent(new jZe("renderFrame",{timeStamp:e})),this._applyChanges()})}_triggerRenderFrame(){this._frameId===void 0&&(this._frameId=this._requestFrame())}},HZe=class extends Xa{constructor(e){var t,r,i;super(),this._renderFrameCallback=()=>{let a=Math.min((ki()-this._easeStart)/this._easeOptions.duration,1);this._onEaseFrame(this._easeOptions.easing(a)),a<1&&this._easeFrameId?this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback):this.stop()},this.transform=new l6,this.cameraHelper=new u6,e.minZoom!==void 0&&this.transform.setMinZoom(e.minZoom),e.maxZoom!==void 0&&this.transform.setMaxZoom(e.maxZoom),e.minPitch!==void 0&&this.transform.setMinPitch(e.minPitch),e.maxPitch!==void 0&&this.transform.setMaxPitch(e.maxPitch),e.renderWorldCopies!==void 0&&this.transform.setRenderWorldCopies(e.renderWorldCopies),e.transformConstrain!==null&&this.transform.setConstrainOverride(e.transformConstrain),this._moving=!1,this._zooming=!1,this._bearingSnap=e.bearingSnap,this._zoomSnap=e.zoomSnap,this._requestRenderFrame=e.requestRenderFrame,this._cancelRenderFrame=e.cancelRenderFrame,this.terrain=e.terrain,this._centerClampedToGround=(t=e.centerClampedToGround)!=null?t:!0,this.transformCameraUpdate=(r=e.transformCameraUpdate)!=null?r:null,this._stopHandlers=(i=e.stopHandlers)!=null?i:(()=>{}),this.on("moveend",()=>{delete this._requestedCameraState})}setTerrain(e){this.terrain=e,this.applyTerrainChange()}migrateProjection(e,t){if(e.apply(this.transform,!0),this.transform=e,this.cameraHelper=t,this._requestedCameraState){let r=e.clone();r.apply(this._requestedCameraState,!0),this._requestedCameraState=r}}getCenter(){return new ar(this.transform.center.lng,this.transform.center.lat)}setCenter(e,t){return this.jumpTo({center:e},t)}getCenterElevation(){return this.transform.elevation}setCenterElevation(e,t){return this.jumpTo({elevation:e},t),this}getCenterClampedToGround(){return this._centerClampedToGround}setCenterClampedToGround(e){this._centerClampedToGround=e}panBy(e,t,r){return e=Be.convert(e).mult(-1),this.panTo(this.transform.center,tr({offset:e},t),r)}panTo(e,t,r){return this.easeTo(tr({center:e},t),r)}getZoom(){return this.transform.zoom}setZoom(e,t){return this.jumpTo({zoom:e},t),this}zoomTo(e,t,r){return this.easeTo(tr({zoom:e},t),r)}zoomIn(e,t){return this.zoomTo(ys(this.getZoom()+1,this._zoomSnap),e,t),this}zoomOut(e,t){return this.zoomTo(ys(this.getZoom()-1,this._zoomSnap),e,t),this}getVerticalFieldOfView(){return this.transform.fov}setVerticalFieldOfView(e,t){return e!=this.transform.fov&&(this.applyTransformChange(r=>r.setFov(e)),this.fire(new hr("movestart",t)).fire(new hr("move",t)).fire(new hr("moveend",t))),this}getBearing(){return this.transform.bearing}setZoomSnap(e){return this._zoomSnap=e,this}getZoomSnap(){return this._zoomSnap}setBearing(e,t){return this.jumpTo({bearing:e},t),this}getPadding(){return this.transform.padding}setPadding(e,t){return this.jumpTo({padding:e},t),this}rotateTo(e,t,r){return this.easeTo(tr({bearing:e},t),r)}resetNorth(e,t){return this.rotateTo(0,tr({duration:1e3},e),t),this}resetNorthPitch(e,t){return this.easeTo(tr({bearing:0,pitch:0,roll:0,duration:1e3},e),t),this}snapToNorth(e,t){return Math.abs(this.getBearing()){p.easeFunc(m),this.terrain&&!e.freezeElevation&&this._updateElevation(m,r),this.applyUpdatedTransform(r),this._fireMoveEvents(t)},m=>{this.terrain&&e.freezeElevation?this._finalizeElevation():this.elevationFreeze=!1,this._afterEase(t,m)},e),this}_prepareEase(e,t,r={}){this._moving=!0,!t&&!r.moving&&this.fire(new hr("movestart",e)),this._zooming&&!r.zooming&&this.fire(new hr("zoomstart",e)),this._rotating&&!r.rotating&&this.fire(new hr("rotatestart",e)),this._pitching&&!r.pitching&&this.fire(new hr("pitchstart",e)),this._rolling&&!r.rolling&&this.fire(new hr("rollstart",e))}_prepareElevation(e,t){this._elevationCenter=e,this._elevationStart=t.elevation,this._elevationTarget=this.terrain.getElevationForLngLat(e,t),this.elevationFreeze=!0}_updateElevation(e,t){(this._elevationStart===void 0||this._elevationCenter===void 0)&&this._prepareElevation(t.center,t),t.setMinElevationForCurrentTile(this.terrain.getMinTileElevationForLngLatZoom(this._elevationCenter,t.tileZoom));let r=this.terrain.getElevationForLngLat(this._elevationCenter,t);if(e<1&&r!==this._elevationTarget){let i=this._elevationTarget-this._elevationStart,a=(r-(i*e+this._elevationStart))/(1-e);this._elevationStart+=e*(i-a),this._elevationTarget=r}t.setElevation(pa.number(this._elevationStart,this._elevationTarget,e))}_finalizeElevation(){this.elevationFreeze=!1,this.getCenterClampedToGround()&&this.transform.recalculateZoomAndCenter(this.terrain)}applyTerrainChange(){if(this.elevationFreeze)return;let e=this.transform;e.setMinElevationForCurrentTile(this.terrain?this.terrain.getMinTileElevationForLngLatZoom(e.center,e.tileZoom):0),this.getCenterClampedToGround()&&e.setElevation(this.terrain?this.terrain.getElevationForLngLat(e.center,e):0)}getTransformForUpdate(){return!this.transformCameraUpdate&&!this.terrain?this.transform:(this._requestedCameraState||(this._requestedCameraState=this.transform.clone()),this._requestedCameraState)}_elevateCameraIfInsideTerrain(e){if(!this.terrain&&e.elevation>=0&&e.pitch<=90)return{};let t=e.getCameraLngLat(),r=e.getCameraAltitude(),i=this.terrain?this.terrain.getElevationForLngLatZoom(t,e.zoom):0;if(rthis._elevateCameraIfInsideTerrain(i)),this.transformCameraUpdate&&t.push(i=>this.transformCameraUpdate(i)),!t.length)return;let r=e.clone();for(let i of t){let a=r.clone(),{center:n,zoom:o,roll:s,pitch:l,bearing:u,elevation:c}=i(a);n&&a.setCenter(n),c!==void 0&&a.setElevation(c),o!==void 0&&a.setZoom(o),s!==void 0&&a.setRoll(s),l!==void 0&&a.setPitch(l),u!==void 0&&a.setBearing(u),r.apply(a,!1)}this.transform.apply(r,!1)}applyTransformChange(e){let t=this._requestedCameraState!==void 0,r=this.getTransformForUpdate();e(r),this.applyUpdatedTransform(r),t||delete this._requestedCameraState}_fireMoveEvents(e){this.fire(new hr("move",e)),this._zooming&&this.fire(new hr("zoom",e)),this._rotating&&this.fire(new hr("rotate",e)),this._pitching&&this.fire(new hr("pitch",e)),this._rolling&&this.fire(new hr("roll",e))}_afterEase(e,t){if(this._easeId&&t&&this._easeId===t)return;delete this._easeId;let r=this._zooming,i=this._rotating,a=this._pitching,n=this._rolling;this._moving=!1,this._zooming=!1,this._rotating=!1,this._pitching=!1,this._rolling=!1,this._padding=!1,r&&this.fire(new hr("zoomend",e)),i&&this.fire(new hr("rotateend",e)),a&&this.fire(new hr("pitchend",e)),n&&this.fire(new hr("rollend",e)),this.fire(new hr("moveend",e))}flyTo(e,t){if(!e.essential&&ws.prefersReducedMotion){let L=Mm(e,["center","zoom","bearing","pitch","roll","elevation","padding"]);return this.jumpTo(L,t)}this.stop(),e=tr({offset:[0,0],speed:1.2,curve:1.42,easing:tw},e),e.zoom!==void 0&&this._zoomSnap&&(e.zoom=ys(e.zoom,this._zoomSnap));let r=this.getTransformForUpdate(),i=r.bearing,a=r.pitch,n=r.roll,o=r.padding,s=e.bearing===void 0?i:this._normalizeBearing(e.bearing,i),l=e.pitch===void 0?a:+e.pitch,u=e.roll===void 0?n:this._normalizeBearing(e.roll,n),c=e.padding===void 0?r.padding:e.padding,h=Be.convert(e.offset),f=r.centerPoint.add(h),d=r.screenPointToLocation(f),p=this.cameraHelper.handleFlyTo(r,{bearing:s,pitch:l,roll:u,padding:c,locationAtOffset:d,offsetAsPoint:h,center:e.center,minZoom:e.minZoom,zoom:e.zoom}),m=e.curve,g=Math.max(r.width,r.height),y=g/p.scaleOfZoom,x=p.pixelPathLength,w=g/p.scaleOfMinZoom;m=Math.min(m,Math.sqrt(w/x*2));let _=m*m;function A(L){let z=(y*y-g*g+(L?-1:1)*_*_*x*x)/(2*(L?y:g)*_*x);return Math.log(Math.sqrt(z*z+1)-z)}function T(L){return(Math.exp(L)-Math.exp(-L))/2}function M(L){return(Math.exp(L)+Math.exp(-L))/2}function S(L){return T(L)/M(L)}let k=A(!1),P=function(L){return M(k)/M(k+m*L)},I=function(L){return g*((M(k)*S(k+m*L)-T(k))/_)/x},B=(A(!0)-k)/m;if(Math.abs(x)<2e-6||!isFinite(B)){if(Math.abs(g-y)<1e-6)return this.easeTo(e,t);let L=y0,P=z=>Math.exp(L*m*z)}if(e.duration!==void 0)e.duration=+e.duration;else{let L=e.screenSpeed===void 0?+e.speed:+e.screenSpeed/m;e.duration=1e3*B/L}return e.maxDuration&&e.duration>e.maxDuration&&(e.duration=0),this._zooming=!0,this._rotating=i!==s,this._pitching=l!==a,this._rolling=u!==n,this._padding=!r.isPaddingEqual(c),this._prepareEase(t,!1),this.terrain&&this._prepareElevation(p.targetCenter,r),this._ease(L=>{let z=L*B,O=1/P(z),V=I(z);this._rotating&&r.setBearing(pa.number(i,s,L)),this._pitching&&r.setPitch(pa.number(a,l,L)),this._rolling&&r.setRoll(pa.number(n,u,L)),this._padding&&(r.interpolatePadding(o,c,L),f=r.centerPoint.add(h)),p.easeFunc(L,O,V,f),this.terrain&&!e.freezeElevation&&this._updateElevation(L,r),this.applyUpdatedTransform(r),this._fireMoveEvents(t)},()=>{this.terrain&&e.freezeElevation?this._finalizeElevation():this.elevationFreeze=!1,this._afterEase(t)},e),this}isEasing(){return!!this._easeFrameId}stop(e){return this._stop(e)}_stop(e,t){if(this._easeFrameId&&(this._cancelRenderFrame(this._easeFrameId),delete this._easeFrameId,delete this._onEaseFrame),this._onEaseEnd){let r=this._onEaseEnd;delete this._onEaseEnd,r.call(this,t)}return e||this._stopHandlers(),this}_ease(e,t,r){r.animate===!1||r.duration===0?(e(1),t()):(this._easeStart=ki(),this._easeOptions=r,this._onEaseFrame=e,this._onEaseEnd=t,this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback))}_normalizeBearing(e,t){e=Js(e,-180,180);let r=Math.abs(e-t);return Math.abs(e-360-t)MapLibre'},Kue=class{constructor(e=Xue){this._toggleAttribution=()=>{this._container.classList.contains("maplibregl-compact")&&(this._container.classList.contains("maplibregl-compact-show")?(this._container.setAttribute("open",""),this._container.classList.remove("maplibregl-compact-show")):(this._container.classList.add("maplibregl-compact-show"),this._container.removeAttribute("open")))},this._updateData=t=>{t&&(t.type==="terrain"||t.dataType==="style"||t.dataType==="source"&&(t.sourceDataType==="metadata"||t.sourceDataType==="visibility"))&&this._updateAttributions()},this._updateCompact=()=>{this._map.getCanvasContainer().offsetWidth<=640||this._compact?this._compact===!1?this._container.setAttribute("open",""):!this._container.classList.contains("maplibregl-compact")&&!this._container.classList.contains("maplibregl-attrib-empty")&&(this._container.setAttribute("open",""),this._container.classList.add("maplibregl-compact","maplibregl-compact-show")):(this._container.setAttribute("open",""),this._container.classList.contains("maplibregl-compact")&&this._container.classList.remove("maplibregl-compact","maplibregl-compact-show"))},this._updateCompactMinimize=()=>{this._container.classList.contains("maplibregl-compact")&&this._container.classList.contains("maplibregl-compact-show")&&this._container.classList.remove("maplibregl-compact-show")},this.options=e}getDefaultPosition(){return"bottom-right"}onAdd(e){return this._map=e,this._compact=this.options.compact,this._container=wr.create("details","maplibregl-ctrl maplibregl-ctrl-attrib"),this._compactButton=wr.create("summary","maplibregl-ctrl-attrib-button",this._container),this._compactButton.addEventListener("click",this._toggleAttribution),this._setElementTitle(this._compactButton,"ToggleAttribution"),this._innerContainer=wr.create("div","maplibregl-ctrl-attrib-inner",this._container),this._updateAttributions(),this._updateCompact(),this._map.on("styledata",this._updateData),this._map.on("sourcedata",this._updateData),this._map.on("terrain",this._updateData),this._map.on("resize",this._updateCompact),this._map.on("drag",this._updateCompactMinimize),this._container}onRemove(){this._container.remove(),this._map.off("styledata",this._updateData),this._map.off("sourcedata",this._updateData),this._map.off("terrain",this._updateData),this._map.off("resize",this._updateCompact),this._map.off("drag",this._updateCompactMinimize),this._map=void 0,this._compact=void 0,this._attribHTML=void 0}_setElementTitle(e,t){let r=this._map._getUIString(`AttributionControl.${t}`);e.title=r,e.setAttribute("aria-label",r)}_updateAttributions(){if(!this._map.style)return;let e=[];if(this.options.customAttribution&&(Array.isArray(this.options.customAttribution)?e=e.concat(this.options.customAttribution.map(i=>typeof i=="string"?i:"")):typeof this.options.customAttribution=="string"&&e.push(this.options.customAttribution)),this._map.style.stylesheet){let i=this._map.style.stylesheet;this.styleOwner=i.owner,this.styleId=i.id}let t=this._map.style.tileManagers;for(let i in t){let a=t[i];if(a.used||a.usedForTerrain){let n=a.getSource();n.attribution&&!e.includes(n.attribution)&&e.push(n.attribution)}}e=e.filter(i=>String(i).trim()),e.sort((i,a)=>i.length-a.length),e=e.filter((i,a)=>{for(let n=a+1;n{let t=this._container.children;if(t.length){let r=t[0];this._map.getCanvasContainer().offsetWidth<=640||this._compact?this._compact!==!1&&r.classList.add("maplibregl-compact"):r.classList.remove("maplibregl-compact")}},this.options=e}getDefaultPosition(){return"bottom-left"}onAdd(e){var r;this._map=e,this._compact=(r=this.options)==null?void 0:r.compact,this._container=wr.create("div","maplibregl-ctrl");let t=wr.create("a","maplibregl-ctrl-logo");return t.target="_blank",t.rel="noopener nofollow",t.href="https://maplibre.org/",t.setAttribute("aria-label",this._map._getUIString("LogoControl.Title")),t.setAttribute("rel","noopener nofollow"),this._container.appendChild(t),this._container.style.display="block",this._map.on("resize",this._updateCompact),this._updateCompact(),this._container}onRemove(){this._container.remove(),this._map.off("resize",this._updateCompact),this._map=void 0,this._compact=void 0}},ZZe=class{constructor(){this._queue=[],this._id=0,this._cleared=!1,this._currentlyRunning=!1}add(e){let t=++this._id;return this._queue.push({callback:e,id:t,cancelled:!1}),t}remove(e){let t=this._currentlyRunning,r=t?this._queue.concat(t):this._queue;for(let i of r)if(i.id===e){i.cancelled=!0;return}}run(e=0){if(this._currentlyRunning)throw Error("Attempting to run(), but is already running.");let t=this._currentlyRunning=this._queue;this._queue=[];let r=!1,i;for(let a of t)if(!a.cancelled){try{a.callback(e)}catch(n){r||(r=!0,i=n)}if(this._cleared)break}if(this._cleared=!1,this._currentlyRunning=!1,r)throw i}clear(){this._currentlyRunning&&(this._cleared=!0),this._queue=[]}},ple=["none","zoom","sourceTiles","visibleLayers","revision"],YZe=class{constructor(e,t,r,i){this._tileKeys=e.map(a=>a.key).sort().join(),this._revision=t,this._zoom=r,this._visibleLayerIds=i}difference(e){return this._revision===(e==null?void 0:e._revision)?this._visibleLayerIds===e._visibleLayerIds?this._tileKeys===e._tileKeys?this._zoom===e._zoom?"none":"zoom":"sourceTiles":"visibleLayers":"revision"}},Rm={background:!0,fill:!0,line:!0,raster:!0,hillshade:!0,"color-relief":!0},WZe=class{constructor(e,t){this.needsFollowUpFrame=!1,this.painter=e,this.terrain=t,this.rttSize=t.tileManager.tileSize*t.qualityFactor}getTexture(e){return e.getRTT(this._stacks.length-1).texture}prepareForRender(e,t){let r=t!==this._lastPrepareZoom;this._lastPrepareZoom=t,this._stacks=[],this._prevType=null,this._rttTiles=[],this._renderableTiles=this.terrain.tileManager.getRenderableTiles(),this._renderableLayerIds=e._order.filter(s=>!e._layers[s].isHidden(t));let i=this._renderableLayerIds.join(),a=new Set;for(let s of this._renderableLayerIds){let l=e._layers[s],u=l.source;u&&Rm[l.type]&&a.add(u)}this._coordsAscending={},this._rttFingerprints={};for(let s of a){let l=e.tileManagers[s];if(!l)continue;this._coordsAscending[s]={};let u=this._coordsAscending[s],c=l.getSource(),h=c instanceof Nm?c.terrainTileRanges:null;for(let p of l.getVisibleCoordinates()){let m=this.terrain.tileManager.getTerrainCoords(p,h);for(let g in m)u[g]||(u[g]=[]),u[g].push(m[g])}this._rttFingerprints[s]={};let f=this._rttFingerprints[s],d=l.getState().revision;for(let p in u)f[p]=new YZe(u[p],d,t,i)}this.needsFollowUpFrame=!1;let n=r||this.painter.options.moving,o=!1;for(let s of this._renderableTiles){let l=this._textureDifference(s);l!=="none"&&(l==="zoom"&&n||l==="visibleLayers"&&r?this.needsFollowUpFrame=!0:l==="zoom"||l==="sourceTiles"?(o?this.needsFollowUpFrame=!0:s.releaseRTT(this.painter),o=!0):s.releaseRTT(this.painter))}}_textureDifference(e){let t="none";for(let r in this._rttFingerprints){let i=this._rttFingerprints[r][e.tileID.key];if(!i)continue;let a=i.difference(e.rttFingerprint[r]);ple.indexOf(a)>ple.indexOf(t)&&(t=a)}return t}renderLayer(e,t){if(e.isHidden(this.painter.transform.zoom))return!1;let r=e.type,i=this.painter,a=this._renderableLayerIds[this._renderableLayerIds.length-1]===e.id;if(Rm[r]&&((!this._prevType||!Rm[this._prevType])&&this._stacks.push([]),this._prevType=r,this._stacks[this._stacks.length-1].push(e.id),!a))return!0;if(Rm[this._prevType]||Rm[r]&&a){this._prevType=r;let n=this._stacks.length-1,o=this._stacks[n]||[];t.isRenderingToTexture=!0;for(let s of this._renderableTiles){if(this._rttTiles.push(s),s.getRTT(n))continue;let l=s.acquireRTT(i,n,this.rttSize);i.bindRTT(l),i.context.clear({color:Dr.transparent,stencil:0}),i.currentStencilSource=void 0;for(let u of o){let c=i.style._layers[u],h=c.source?this._coordsAscending[c.source][s.tileID.key]:[s.tileID];i.context.viewport.set([0,0,this.rttSize,this.rttSize]),i.renderTileClippingMasks(c,h),i.renderLayer(i,i.style.tileManagers[c.source],c,h,t),c.source&&(s.rttFingerprint[c.source]=this._rttFingerprints[c.source][s.tileID.key])}l.texture.generateMipmap()}return t.isRenderingToTexture=!1,dZe(this.painter,this.terrain,this._rttTiles,t),this._rttTiles=[],Rm[r]}return!1}},XZe={"AttributionControl.ToggleAttribution":"Toggle attribution","AttributionControl.MapFeedback":"Map feedback","FullscreenControl.Enter":"Enter fullscreen","FullscreenControl.Exit":"Exit fullscreen","GeolocateControl.FindMyLocation":"Find my location","GeolocateControl.LocationNotAvailable":"Location not available","LogoControl.Title":"MapLibre logo","Map.Title":"Map","Marker.Title":"Map marker","NavigationControl.ResetBearing":"Drag to rotate map, click to reset north","NavigationControl.ZoomIn":"Zoom in","NavigationControl.ZoomOut":"Zoom out","Popup.Close":"Close popup","ScaleControl.Feet":"ft","ScaleControl.Meters":"m","ScaleControl.Kilometers":"km","ScaleControl.Miles":"mi","ScaleControl.NauticalMiles":"nm","GlobeControl.Enable":"Enable globe","GlobeControl.Disable":"Disable globe","TerrainControl.Enable":"Enable terrain","TerrainControl.Disable":"Disable terrain","CooperativeGesturesHandler.WindowsHelpText":"Use Ctrl + scroll to zoom the map","CooperativeGesturesHandler.MacHelpText":"Use \u2318 + scroll to zoom the map","CooperativeGesturesHandler.MobileHelpText":"Use two fingers to move the map"},KZe=yle,mle={hash:!1,interactive:!0,bearingSnap:7,zoomSnap:0,attributionControl:Xue,maplibreLogo:!1,refreshExpiredTiles:!0,canvasContextAttributes:{antialias:!1,preserveDrawingBuffer:!1,powerPreference:"high-performance",failIfMajorPerformanceCaveat:!1,desynchronized:!1,contextType:void 0},scrollZoom:!0,minZoom:-2,maxZoom:22,minPitch:0,maxPitch:60,boxZoom:!0,dragRotate:!0,dragPan:!0,keyboard:!0,doubleClickZoom:!0,touchZoomRotate:!0,touchPitch:!0,cooperativeGestures:!1,trackResize:!0,center:[0,0],elevation:0,zoom:0,bearing:0,pitch:0,roll:0,renderWorldCopies:!0,maxTileCacheSize:null,maxTileCacheZoomLevels:_s.MAX_TILE_CACHE_ZOOM_LEVELS,transformRequest:null,transformCameraUpdate:null,transformConstrain:null,fadeDuration:300,crossSourceCollisions:!0,clickTolerance:3,localIdeographFontFamily:"sans-serif",pitchWithRotate:!0,rollEnabled:!1,rotateSpeed:.8,pitchSpeed:-.5,reduceMotion:void 0,validateStyle:!0,maxCanvasSize:[4096,4096],cancelPendingTileRequestsWhileZooming:!0,centerClampedToGround:!0,terrainSkirtLength:"auto",zoomLevelsToOverscale:4,anisotropicFilterPitch:20},JZe=class extends Xa{get _ownerWindow(){var e,t;return((t=(e=this._container)==null?void 0:e.ownerDocument)==null?void 0:t.defaultView)||window}constructor(e){var a,n,o;super(),this._idleTriggered=!1,this._crossFadingFactor=1,this._renderTaskQueue=new ZZe,this._controls=[],this._mapId=_k(),this._styleUrl=null,this._missingStyleImageResolver=null,this._lostContextStyle={style:null,images:null},this._contextLost=s=>{if(s.preventDefault(),this._frameRequest&&(this._frameRequest=(this._frameRequest.abort(),null)),this.painter.destroy(),this._lostContextStyle=this._getStyleAndImages(),!this.style){this.fire(new Qw("webglcontextlost",{originalEvent:s}));return}for(let l of Object.values(this.style._layers))if(l.type==="custom"&&console.warn(`Custom layer with id '${l.id}' cannot be restored after WebGL context loss. You will need to re-add it manually after context restoration.`),l._listeners)for(let[u]of Object.entries(l._listeners))console.warn(`Custom layer with id '${l.id}' had event listeners for event '${u}' which cannot be restored after WebGL context loss. You will need to re-add them manually after context restoration.`);this.style.destroy(),this.style=null,this.fire(new Qw("webglcontextlost",{originalEvent:s}))},this._contextRestored=s=>{if(this._lostContextStyle.style&&this.setStyle(this._lostContextStyle.style,{diff:!1}),this._lostContextStyle.images&&this.style){this.style.imageManager.images=this._lostContextStyle.images;for(let l in this._lostContextStyle.images){let u=this._lostContextStyle.images[l];u.isWebGLImage&&this.style.imageManager.updateImage(l,u,!1)}}this._lostContextStyle={style:null,images:null};try{this._setupPainter()}catch(l){this.fire(new sr(l));return}this.resize(),this._update(),this._resizeInternal(),this.fire(new Qw("webglcontextrestored",{originalEvent:s}))},this._onMapScroll=s=>{if(s.target===this._container)return this._container.scrollTop=0,this._container.scrollLeft=0,!1},this._onWindowOnline=()=>{this._update()};let t=Gr(nr(nr({},mle),e),{canvasContextAttributes:nr(nr({},mle.canvasContextAttributes),e.canvasContextAttributes)});if(t.minZoom!=null&&t.maxZoom!=null&&t.minZoom>t.maxZoom)throw Error("maxZoom must be greater than or equal to minZoom");if(t.minPitch!=null&&t.maxPitch!=null&&t.minPitch>t.maxPitch)throw Error("maxPitch must be greater than or equal to minPitch");if(t.minPitch!=null&&t.minPitch<0)throw Error("minPitch must be greater than or equal to 0");if(t.maxPitch!=null&&t.maxPitch>180)throw Error("maxPitch must be less than or equal to 180");this._camera=new HZe({minZoom:t.minZoom,maxZoom:t.maxZoom,minPitch:t.minPitch,maxPitch:t.maxPitch,bearingSnap:t.bearingSnap,zoomSnap:t.zoomSnap,renderWorldCopies:t.renderWorldCopies,centerClampedToGround:t.centerClampedToGround,terrain:this.terrain,transformConstrain:t.transformConstrain,requestRenderFrame:s=>this._requestRenderFrame(s),cancelRenderFrame:s=>this._cancelRenderFrame(s),transformCameraUpdate:t.transformCameraUpdate,stopHandlers:()=>{var s;return(s=this._handlers)==null?void 0:s.stop(!1)}}),this._camera.setEventedParent(this),this._interactive=t.interactive,this._maxTileCacheSize=t.maxTileCacheSize,this._maxTileCacheZoomLevels=t.maxTileCacheZoomLevels,this._canvasContextAttributes=nr({},t.canvasContextAttributes),this._trackResize=t.trackResize===!0,this._terrainSkirtLength=t.terrainSkirtLength,this._refreshExpiredTiles=t.refreshExpiredTiles===!0,this._fadeDuration=t.fadeDuration,this._crossSourceCollisions=t.crossSourceCollisions===!0,this._collectResourceTiming=t.collectResourceTiming===!0,this._locale=nr(nr({},XZe),t.locale),this._clickTolerance=t.clickTolerance,this._overridePixelRatio=t.pixelRatio,this._maxCanvasSize=t.maxCanvasSize,this._zoomLevelsToOverscale=t.zoomLevelsToOverscale,this.cancelPendingTileRequestsWhileZooming=t.cancelPendingTileRequestsWhileZooming===!0,this.setAnisotropicFilterPitch(t.anisotropicFilterPitch),t.reduceMotion!==void 0&&(ws.prefersReducedMotion=t.reduceMotion),this._requestManager=new rUe(t.transformRequest),this._container=this._resolveContainer(t.container),t.maxBounds&&this.setMaxBounds(t.maxBounds),this._setupContainer();try{this._setupPainter()}catch(s){throw this._cleanupContainer(),s}this._imageQueueHandle=qu.addThrottleControl(()=>this.isMoving()),this.on("move",()=>this._update(!1)),this.on("moveend",()=>this._update(!1)),this.on("zoom",()=>this._update(!0)),this.on("terrain",()=>{this.painter.markTerrainDepthDirty(),this._update(!0)}),this.once("idle",()=>this._idleTriggered=!0),this._handlers=new $Ze(this,this._camera,t),typeof window<"u"&&(this._ownerWindow.addEventListener("online",this._onWindowOnline,!1),this._setupResizeObserver());let r=typeof t.hash=="string"&&t.hash||void 0;this._hash=t.hash?new que(r).addTo(this):void 0,(a=this._hash)!=null&&a._onHashChange()||(this.jumpTo({center:t.center,elevation:t.elevation,zoom:t.zoom,bearing:t.bearing,pitch:t.pitch,roll:t.roll}),t.bounds&&(this.resize(),this.fitBounds(t.bounds,tr({},t.fitBoundsOptions,{duration:0}))));let i=typeof t.style=="string"||((o=(n=t.style)==null?void 0:n.projection)==null?void 0:o.type)!=="globe";this.resize(null,i),this._localIdeographFontFamily=t.localIdeographFontFamily,this._validateStyle=t.validateStyle,t.style&&this.setStyle(t.style,{localIdeographFontFamily:t.localIdeographFontFamily}),t.attributionControl&&this.addControl(new Kue(typeof t.attributionControl=="boolean"?void 0:t.attributionControl)),t.maplibreLogo&&this.addControl(new Jue,t.logoPosition),this.on("style.load",()=>{if(i||this._resizeTransform(),this._camera.transform.unmodified){let s=Mm(this.style.stylesheet,["center","zoom","bearing","pitch","roll"]);this.jumpTo(s)}}),this.on("data",s=>{this._update(s.dataType==="style"),this.fire(s.dataType==="style"?new Yl("styledata",s):new ca("sourcedata",s))}),this.on("dataloading",s=>{this.fire(s.dataType==="style"?new Yl("styledataloading",s):new ca("sourcedataloading",s))}),this.on("dataabort",s=>{this.fire(new ca("sourcedataabort",s))})}_getMapId(){return this._mapId}setGlobalStateProperty(e,t){return this.style.setGlobalStateProperty(e,t),this._update(!0)}getGlobalState(){return this.style.getGlobalState()}addControl(e,t){if(t===void 0&&(t=e.getDefaultPosition?e.getDefaultPosition():"top-right"),!(e!=null&&e.onAdd))return this.fire(new sr(Error("Invalid argument to map.addControl(). Argument must be a control with onAdd and onRemove methods.")));let r=e.onAdd(this);this._controls.push(e);let i=this._controlPositions[t];return t.includes("bottom")?i.insertBefore(r,i.firstChild):i.appendChild(r),this}removeControl(e){if(!(e!=null&&e.onRemove))return this.fire(new sr(Error("Invalid argument to map.removeControl(). Argument must be a control with onAdd and onRemove methods.")));let t=this._controls.indexOf(e);return t>-1&&this._controls.splice(t,1),e.onRemove(this),this}hasControl(e){return this._controls.includes(e)}coveringTiles(e){return Vm(this._camera.transform,e)}setTransformCameraUpdate(e){this._camera.transformCameraUpdate=e}getCenter(){return new ar(this._camera.transform.center.lng,this._camera.transform.center.lat)}setCenter(e,t){return this._camera.setCenter(e,t),this}getCenterElevation(){return this._camera.transform.elevation}setCenterElevation(e,t){return this._camera.setCenterElevation(e,t),this}setCenterClampedToGround(e){this._camera.setCenterClampedToGround(e)}panBy(e,t,r){return this._camera.panBy(e,t,r),this}panTo(e,t,r){return this._camera.panTo(e,t,r),this}getZoom(){return this._camera.transform.zoom}setZoom(e,t){return this._camera.setZoom(e,t),this}zoomTo(e,t,r){return this._camera.zoomTo(e,t,r),this}zoomIn(e,t){return this._camera.zoomIn(e,t),this}zoomOut(e,t){return this._camera.zoomOut(e,t),this}getVerticalFieldOfView(){return this._camera.transform.fov}setVerticalFieldOfView(e,t){return this._camera.setVerticalFieldOfView(e,t),this}getBearing(){return this._camera.transform.bearing}setBearing(e,t){return this._camera.setBearing(e,t),this}getZoomSnap(){return this._camera.getZoomSnap()}setZoomSnap(e){return this._camera.setZoomSnap(e),this}getPadding(){return this._camera.transform.padding}setPadding(e,t){return this._camera.setPadding(e,t),this}rotateTo(e,t,r){return this._camera.rotateTo(e,t,r),this}resetNorth(e,t){return this._camera.resetNorth(e,t),this}resetNorthPitch(e,t){return this._camera.resetNorthPitch(e,t),this}snapToNorth(e,t){return this._camera.snapToNorth(e,t),this}getPitch(){return this._camera.transform.pitch}setPitch(e,t){return this._camera.setPitch(e,t),this}getRoll(){return this._camera.transform.roll}setRoll(e,t){return this._camera.setRoll(e,t),this}cameraForBounds(e,t){return this._camera.cameraForBounds(e,t)}fitBounds(e,t,r){return this._camera.fitBounds(e,t,r),this}fitScreenCoordinates(e,t,r,i,a){return this._camera.fitScreenCoordinates(e,t,r,i,a),this}jumpTo(e,t){return this._camera.jumpTo(e,t),this}calculateAnchoredCameraOptions(e){return this._camera.calculateAnchoredCameraOptions(e)}calculateCameraOptionsFromCameraLngLatAltRotation(e,t,r,i,a){return this._camera.calculateCameraOptionsFromCameraLngLatAltRotation(e,t,r,i,a)}easeTo(e,t){return this._camera.easeTo(e,t),this}flyTo(e,t){return this._camera.flyTo(e,t),this}stop(){return this._camera.stop(),this}queryTerrainElevation(e){return this.terrain?this.terrain.getElevationForLngLat(ar.convert(e),this._camera.transform):null}getCenterClampedToGround(){return this._camera.getCenterClampedToGround()}calculateCameraOptionsFromTo(e,t,r,i){return i==null&&this.terrain&&(i=this.terrain.getElevationForLngLat(r,this._camera.transform)),this._camera.transform.calculateCameraOptionsFromTo(e,t,r,i!=null?i:0)}resize(e,t=!0){if(this._lostContextStyle.style!==null)return this;this._resizeInternal(t);let r=!this._camera._moving;return r&&(this.stop(),this.fire(new hr("movestart",e)).fire(new hr("move",e))),this.fire(new In("resize",e)),r&&this.fire(new hr("moveend",e)),this}_resizeInternal(e=!0){let[t,r]=this._containerDimensions(),i=this._getClampedPixelRatio(t,r);if(this._resizeCanvas(t,r,i),this.painter.resize(t,r,i),this.painter.overLimit()){let a=this.painter.context.gl;this._maxCanvasSize=[a.drawingBufferWidth,a.drawingBufferHeight];let n=this._getClampedPixelRatio(t,r);this._resizeCanvas(t,r,n),this.painter.resize(t,r,n)}this._resizeTransform(e)}_resizeTransform(e=!0){var i;let[t,r]=this._containerDimensions();this._camera.transform.resize(t,r,e),(i=this._camera._requestedCameraState)==null||i.resize(t,r,e)}_getClampedPixelRatio(e,t){let{0:r,1:i}=this._maxCanvasSize,a=this.getPixelRatio(),n=e*a,o=t*a,s=n>r?r/n:1,l=o>i?i/o:1,u=Math.min(s,l);return u<1&&$r("The canvas is larger than maxCanvasSize and is rendered at a lower pixel ratio to fit. Increase maxCanvasSize, within MAX_TEXTURE_SIZE, to render at full resolution."),u*a}getPixelRatio(){var e;return(e=this._overridePixelRatio)!=null?e:devicePixelRatio}setPixelRatio(e){this._overridePixelRatio=e,this.resize()}getBounds(){return this._camera.transform.getBounds()}getMaxBounds(){return this._camera.transform.getMaxBounds()}setMaxBounds(e){return this._camera.applyTransformChange(t=>t.setMaxBounds(Ou.convert(e))),this._update()}setMinZoom(e){if(e!=null||(e=-2),e>=-2&&e<=this._camera.transform.maxZoom){let t=this._camera.transform.zoom;return this._camera.applyTransformChange(r=>r.setMinZoom(e)),this._update(),t!==this._camera.transform.zoom&&this.fire(new hr("zoomstart")).fire(new hr("zoom")).fire(new hr("zoomend")).fire(new hr("movestart")).fire(new hr("move")).fire(new hr("moveend")),this}throw Error("minZoom must be between -2 and the current maxZoom, inclusive")}getMinZoom(e=!1){let t=this._camera.transform;return e?t.applyConstrain(t.center,t.minZoom).zoom:t.minZoom}setMaxZoom(e){if(e!=null||(e=22),e>=this._camera.transform.minZoom){let t=this._camera.transform.zoom;return this._camera.applyTransformChange(r=>r.setMaxZoom(e)),this._update(),t!==this._camera.transform.zoom&&this.fire(new hr("zoomstart")).fire(new hr("zoom")).fire(new hr("zoomend")).fire(new hr("movestart")).fire(new hr("move")).fire(new hr("moveend")),this}throw Error("maxZoom must be greater than the current minZoom")}getMaxZoom(){return this._camera.transform.maxZoom}setMinPitch(e){if(e!=null||(e=0),e<0)throw Error("minPitch must be greater than or equal to 0");if(e>=0&&e<=this._camera.transform.maxPitch){let t=this._camera.transform.pitch;return this._camera.applyTransformChange(r=>r.setMinPitch(e)),this._update(),t!==this._camera.transform.pitch&&this.fire(new hr("pitchstart")).fire(new hr("pitch")).fire(new hr("pitchend")).fire(new hr("movestart")).fire(new hr("move")).fire(new hr("moveend")),this}throw Error("minPitch must be between 0 and the current maxPitch, inclusive")}getMinPitch(){return this._camera.transform.minPitch}setMaxPitch(e){if(e!=null||(e=60),e>180)throw Error("maxPitch must be less than or equal to 180");if(e>=this._camera.transform.minPitch){let t=this._camera.transform.pitch;return this._camera.applyTransformChange(r=>r.setMaxPitch(e)),this._update(),t!==this._camera.transform.pitch&&this.fire(new hr("pitchstart")).fire(new hr("pitch")).fire(new hr("pitchend")).fire(new hr("movestart")).fire(new hr("move")).fire(new hr("moveend")),this}throw Error("maxPitch must be greater than the current minPitch")}getMaxPitch(){return this._camera.transform.maxPitch}getAnisotropicFilterPitch(){return this._anisotropicFilterPitch}setAnisotropicFilterPitch(e){if(e!=null||(e=20),e>180)throw Error("anisotropicFilterPitch must be less than or equal to 180");if(e<0)throw Error("anisotropicFilterPitch must be greater than or equal to 0");return this._anisotropicFilterPitch=e,this._update()}getRenderWorldCopies(){return this._camera.transform.renderWorldCopies}setRenderWorldCopies(e){return this._camera.applyTransformChange(t=>t.setRenderWorldCopies(e)),this._update()}setTransformConstrain(e){return this._camera.applyTransformChange(t=>t.setConstrainOverride(e)),this._update()}project(e){return this._camera.transform.locationToScreenPoint(ar.convert(e),this.style&&this.terrain)}unproject(e){return this._camera.transform.screenPointToLocation(Be.convert(e),this.terrain)}isMoving(){var e;return this._camera.isMoving()||((e=this._handlers)==null?void 0:e.isMoving())||!1}isZooming(){var e;return this._camera.isZooming()||((e=this._handlers)==null?void 0:e.isZooming())||!1}isRotating(){var e;return this._camera.isRotating()||((e=this._handlers)==null?void 0:e.isRotating())||!1}_createDelegates(e,t,r){if(e==="mouseenter"||e==="mouseover"){let i=!1;return{mousemove:a=>{let n=t.filter(s=>this.getLayer(s)),o=n.length===0?[]:this.queryRenderedFeatures(a.point,{layers:n});o.length?i||(i=!0,r.call(this,new bs(e,this,a.originalEvent,{features:o}))):i=!1},mouseout:()=>{i=!1}}}if(e==="mouseleave"||e==="mouseout"){let i=!1;return{mousemove:a=>{let n=t.filter(o=>this.getLayer(o));(n.length===0?[]:this.queryRenderedFeatures(a.point,{layers:n})).length?i=!0:i&&(i=!1,r.call(this,new bs(e,this,a.originalEvent)))},mouseout:a=>{i&&(i=!1,r.call(this,new bs(e,this,a.originalEvent)))}}}{let i=a=>{let n=t.filter(s=>this.getLayer(s)),o=n.length===0?[]:this.queryRenderedFeatures(a.point,{layers:n});o.length&&(a.features=o,r.call(this,a),delete a.features)};return{[e]:i}}}_addDelegatedListener(e,t){var r;this._delegatedListeners||(this._delegatedListeners={}),(r=this._delegatedListeners)[e]||(r[e]=[]),this._delegatedListeners[e].push(t);for(let i in t.delegates)this.on(i,t.delegates[i])}_removeDelegatedListener(e,t,r){var a;if(!((a=this._delegatedListeners)!=null&&a[e]))return;let i=this._delegatedListeners[e];for(let n=0;nt.includes(s))){for(let s in o.delegates)this.off(s,o.delegates[s]);i.splice(n,1);return}}}on(e,t,r){if(r===void 0)return super.on(e,t);let i=typeof t=="string"?[t]:t,a={layers:i,listener:r,delegates:this._createDelegates(e,i,r)};return this._addDelegatedListener(e,a),{unsubscribe:()=>{this._removeDelegatedListener(e,i,r)}}}once(e,t,r){if(r===void 0)return super.once(e,t);let i=typeof t=="string"?[t]:t,a={layers:i,listener:r,delegates:this._createDelegates(e,i,n=>{this._removeDelegatedListener(e,i,r),r.call(this,n)})};return this._addDelegatedListener(e,a),this}off(e,t,r){if(r===void 0)return super.off(e,t);let i=typeof t=="string"?[t]:t;return this._removeDelegatedListener(e,i,r),this}queryRenderedFeatures(e,t){if(!this.style)return[];let r,i=e instanceof Be||Array.isArray(e),a=i?e:[[0,0],[this._camera.transform.width,this._camera.transform.height]];if(t||(t=(i?{}:e)||{}),a instanceof Be||typeof a[0]=="number")r=[Be.convert(a)];else{let n=Be.convert(a[0]),o=Be.convert(a[1]);r=[n,new Be(o.x,n.y),o,new Be(n.x,o.y),n]}return this.style.queryRenderedFeatures(r,t,this._camera.transform)}querySourceFeatures(e,t){return this.style.querySourceFeatures(e,t)}setStyle(e,t){return t=tr({},{localIdeographFontFamily:this._localIdeographFontFamily,validate:this._validateStyle},t),this._styleUrl=typeof e=="string"?e:null,t.diff!==!1&&t.localIdeographFontFamily===this._localIdeographFontFamily&&this.style&&e?(this._diffStyle(e,t),this):(this._localIdeographFontFamily=t.localIdeographFontFamily,this._updateStyle(e,t))}setTransformRequest(e){return this._requestManager.setTransformRequest(e),this}_getUIString(e){let t=this._locale[e];if(t==null)throw Error(`Missing UI string '${e}'`);return t}_updateStyle(e,t){var i,a,n;if((i=this._diffStyleRequest)==null||i.abort(),this._diffStyleRequest=null,t.transformStyle&&this.style&&!this.style._loaded){this.style.once("style.load",()=>this._updateStyle(e,t));return}let r=this.style&&t.transformStyle?this.style.serialize():void 0;if(this.style&&(this.style.setEventedParent(null),this.style._remove(!e)),e)this.style=new pF(this,t||{});else return this._frameRequest&&(this._frameRequest=(this._frameRequest.abort(),null)),(n=(a=this.style)==null?void 0:a.projection)==null||n.destroy(),delete this.style,this;return this.style.setEventedParent(this,{style:this.style}),typeof e=="string"?this.style.loadURL(e,t,r):this.style.loadJSON(e,t,r),this}_lazyInitEmptyStyle(){this.style||(this.style=new pF(this,{}),this.style.setEventedParent(this,{style:this.style}),this.style.loadEmpty())}_diffStyle(e,t){return Kt(this,null,function*(){var r;if((r=this._diffStyleRequest)==null||r.abort(),typeof e=="string"){let i=e;this._diffStyleRequest=new AbortController;let a=this._diffStyleRequest;try{let n=yield this._requestManager.transformRequest(i,"Style");if(a.signal.aborted){this._diffStyleRequest=null;return}let o=yield d2(n,a);this._diffStyleRequest=null,this._updateDiff(o.data,t)}catch(n){this._diffStyleRequest=null,bh(n)||this.fire(new sr(Hn(n)))}}else typeof e=="object"&&(this._diffStyleRequest=null,this._updateDiff(e,t))})}_updateDiff(e,t){try{this.style.setState(e,t)&&this._update(!0)}catch(r){$r(`Unable to perform style diff: ${Hn(r).message}. Rebuilding the style from scratch.`),this._updateStyle(e,t)}}getStyle(){if(this.style)return this.style.serialize()}getStyleUrl(){return this._styleUrl}_getStyleAndImages(){return this.style?{style:this.style.serialize(),images:this.style.imageManager.cloneImages()}:{style:null,images:{}}}isStyleLoaded(){if(!this.style){$r("There is no style added to the map.");return}return this.style.loaded()}addSource(e,t){return this._lazyInitEmptyStyle(),this.style.addSource(e,t),this._update(!0)}isSourceLoaded(e){var r;let t=(r=this.style)==null?void 0:r.tileManagers[e];if(t===void 0){this.fire(new sr(Error(`There is no tile manager with ID '${e}'`)));return}return t.loaded()}setTerrain(e,t={}){if(this.style._checkLoaded(),e&&km(this,Wo.terrain,{value:e},t))return this;if(this._terrainDataCallback&&this.style.off("data",this._terrainDataCallback),!e)this.terrain&&this.terrain.destroy(),this.terrain=null,this.painter.renderToTexture=null,this.painter.destroyRTTResources(),this._camera.setTerrain(null);else{let r=this.style.tileManagers[e.source];if(!r)throw Error(`cannot load terrain, because there exists no source with ID: ${e.source}`);this.terrain===null&&r.reload();for(let i in this.style._layers){let a=this.style._layers[i];a.type==="hillshade"&&a.source===e.source&&$r("You are using the same source for a hillshade layer and for 3D terrain. Please consider using two separate sources to improve rendering quality."),a.type==="color-relief"&&a.source===e.source&&$r("You are using the same source for a color-relief layer and for 3D terrain. Please consider using two separate sources to improve rendering quality.")}this.terrain&&this.terrain.destroy(),this.terrain=new cje(this.painter,r,e,this._terrainSkirtLength),this.painter.renderToTexture=new WZe(this.painter,this.terrain),this._camera.setTerrain(this.terrain),this._terrainDataCallback=i=>this._handleTerrainDataEvent(i,e.source),this.style.on("data",this._terrainDataCallback)}return this.style.triggerSymbolPlacement(),this.fire(new ble({terrain:e})),this}_handleTerrainDataEvent(e,t){var i;if(e.dataType==="style"){this.terrain.tileManager.releaseAllRTT();return}let r=e.sourceId===t;if(r&&(this.terrain.resetElevationCache(),this.style.triggerSymbolPlacement()),r&&e.tile&&(this.painter.markTerrainDepthDirty(),this._camera.applyTerrainChange()),e.tile){if(((i=e.source)==null?void 0:i.type)==="image"){this.terrain.tileManager.releaseAllRTT();return}this.terrain.tileManager.releaseRTT(e.tile.tileID)}}getTerrain(){var e,t;return(t=(e=this.terrain)==null?void 0:e.options)!=null?t:null}areTilesLoaded(){var t;let e=(t=this.style)==null?void 0:t.tileManagers;for(let r of Object.values(e))if(!r.areTilesLoaded())return!1;return!0}removeSource(e){return this.style.removeSource(e),this._update(!0)}getSource(e){var t;return(t=this.style)==null?void 0:t.getSource(e)}setSourceTileLodParams(e,t,r){if(r){let i=this.getSource(r);if(!i)throw Error(`There is no source with ID "${r}", cannot set LOD parameters`);i.calculateTileZoom=oF(Math.max(1,e),Math.max(1,t))}else for(let i in this.style.tileManagers)this.style.tileManagers[i].getSource().calculateTileZoom=oF(Math.max(1,e),Math.max(1,t));return this._update(!0),this}refreshTiles(e,t){let r=this.style.tileManagers[e];if(!r)throw Error(`There is no tile manager with ID "${e}", cannot refresh tile`);t===void 0?r.reload(!0):r.refreshTiles(t.map(i=>new C2(i.z,i.x,i.y)))}addImage(e,t,r={}){var a;this._lazyInitEmptyStyle();let i=this._createStyleImage(t,r);return i?(this.style.addImage(e,i),(a=i.userImage)!=null&&a.onAdd&&i.userImage.onAdd(this,e),this):this}setMissingStyleImageResolver(e){var t;return this._missingStyleImageResolver=e,(t=this.style)==null||t.setMissingImageResolver(e),this}_createStyleImage(e,t={}){let{pixelRatio:r=1,sdf:i=!1,stretchX:a,stretchY:n,content:o,textFitWidth:s,textFitHeight:l}=t;if(e instanceof HTMLImageElement||$f(e)){let{width:u,height:c,data:h}=ws.getImageData(e);return{data:new aa({width:u,height:c},h),pixelRatio:r,stretchX:a,stretchY:n,content:o,textFitWidth:s,textFitHeight:l,sdf:i,version:0}}if(e.width===void 0||e.height===void 0)return this.fire(new sr(Error("Invalid arguments to map.addImage(). The second argument must be an `HTMLImageElement`, `ImageData`, `ImageBitmap`, or object with `width`, `height`, and `data` properties with the same format as `ImageData`"))),null;{let{width:u,height:c,data:h}=e,f=e,d=M2(f.data);return{data:d?new aa({width:u,height:c}):new aa({width:u,height:c},new Uint8Array(h)),pixelRatio:r,stretchX:a,stretchY:n,content:o,textFitWidth:s,textFitHeight:l,sdf:i,version:0,isWebGLImage:d,userImage:f}}}updateImage(e,t){let r=this.style.getImage(e);if(!r)return this.fire(new sr(Error("The map has no image with that id. If you are adding a new image use `map.addImage(...)` instead.")));let{width:i,height:a,data:n}=t instanceof HTMLImageElement||$f(t)?ws.getImageData(t):t;if(i===void 0||a===void 0)return this.fire(new sr(Error("Invalid arguments to map.updateImage(). The second argument must be an `HTMLImageElement`, `ImageData`, `ImageBitmap`, or object with `width`, `height`, and `data` properties with the same format as `ImageData`")));if(i!==r.data.width||a!==r.data.height)return this.fire(new sr(Error("The width and height of the updated image must be that same as the previous version of the image")));if(r.isWebGLImage=M2(n),r.isWebGLImage)r.userImage=t;else{let o=!(t instanceof HTMLImageElement||$f(t));r.data.replace(n,o)}return this.style.updateImage(e,r),this}getImage(e){return this.style.getImage(e)}hasImage(e){return e?!!this.style.getImage(e):(this.fire(new sr(Error("Missing required image id"))),!1)}removeImage(e){this.style.removeImage(e)}loadImage(e){return Kt(this,null,function*(){let t=yield qu.getImage(yield this._requestManager.transformRequest(e,"Image"),new AbortController);if(!t.data)throw Error(`Could not load image ${e}: the response is empty`);return t})}listImages(){var e,t;return(t=(e=this.style)==null?void 0:e.listImages())!=null?t:[]}addLayer(e,t){return this._lazyInitEmptyStyle(),this.style.addLayer(e,t),this._update(!0)}moveLayer(e,t){return this.style.moveLayer(e,t),this._update(!0)}removeLayer(e){return this.style.removeLayer(e),this._update(!0)}getLayer(e){var t;return(t=this.style)==null?void 0:t.getLayer(e)}getLayersOrder(){var e,t;return(t=(e=this.style)==null?void 0:e.getLayersOrder())!=null?t:[]}setLayerZoomRange(e,t,r){return this.style.setLayerZoomRange(e,t,r),this._update(!0)}setFilter(e,t,r={}){var i;return(i=this.style)==null||i.setFilter(e,t,r),this._update(!0)}getFilter(e){return this.style.getFilter(e)}setPaintProperty(e,t,r,i={}){var a;return(a=this.style)==null||a.setPaintProperty(e,t,r,i),this._update(!0)}getPaintProperty(e,t){return this.style.getPaintProperty(e,t)}setLayoutProperty(e,t,r,i={}){return this.style.setLayoutProperty(e,t,r,i),this._update(!0)}getLayoutProperty(e,t){return this.style.getLayoutProperty(e,t)}setGlyphs(e,t={}){return this._lazyInitEmptyStyle(),this.style.setGlyphs(e,t),this._update(!0)}getGlyphs(){return this.style.getGlyphsUrl()}setFontFaces(e){return this._lazyInitEmptyStyle(),this.style.setFontFaces(e),this._update(!0)}getFontFaces(){return this.style.getFontFaces()}addSprite(e,t,r={}){return this._lazyInitEmptyStyle(),this.style.addSprite(e,t,r,i=>{i||this._update(!0)}),this}removeSprite(e){return this._lazyInitEmptyStyle(),this.style.removeSprite(e),this._update(!0)}getSprite(){return this.style.getSprite()}setSprite(e,t={}){return this._lazyInitEmptyStyle(),this.style.setSprite(e,t,r=>{r||this._update(!0)}),this}setLight(e,t={}){return this._lazyInitEmptyStyle(),this.style.setLight(e,t),this._update(!0)}getLight(){return this.style.getLight()}setSky(e,t={}){return this._lazyInitEmptyStyle(),this.style.setSky(e,t),this._update(!0)}getSky(){return this.style.getSky()}setFeatureState(e,t){return this.style.setFeatureState(e,t),this._update()}removeFeatureState(e,t){return this.style.removeFeatureState(e,t),this._update()}getFeatureState(e){return this.style.getFeatureState(e)}getContainer(){return this._container}getCanvasContainer(){return this._canvasContainer}getCanvas(){return this._canvas}_containerDimensions(){let e=0,t=0;return this._container&&(e=Math.floor(this._container.clientWidth)||400,t=Math.floor(this._container.clientHeight)||300),[e,t]}_shouldHandleInitialResize(){var r;if(!((r=this._container)!=null&&r.clientWidth)||!this._container.clientHeight)return!1;let[e,t]=this._containerDimensions();return e!==this._camera.transform.width||t!==this._camera.transform.height}_setupResizeObserver(){var i;let e=!1,t=NF(a=>{this._trackResize&&!this._removed&&(this.resize(a),this.redraw())},50),r=(i=this._ownerWindow.ResizeObserver)!=null?i:ResizeObserver;this._resizeObserver=new r(a=>{!e&&(e=!0,!this._shouldHandleInitialResize())||t(a)}),this._resizeObserver.observe(this._container)}_resolveContainer(e){if(typeof e=="string"){let t=document.getElementById(e);if(!t)throw Error(`Container '${e}' not found.`);return t}if(e instanceof HTMLElement||e&&typeof e=="object"&&e.nodeType===1)return e;throw Error("Invalid type: 'container' must be a String or HTMLElement.")}_setupContainer(){let e=this._containerDimensions(),t=this._getClampedPixelRatio(e[0],e[1]),r=this._container;r.classList.add("maplibregl-map");let i=this._canvasContainer=wr.create("div","maplibregl-canvas-container",r);this._interactive&&i.classList.add("maplibregl-interactive"),this._canvas=wr.create("canvas","maplibregl-canvas",i),this._canvas.addEventListener("webglcontextlost",this._contextLost,!1),this._canvas.addEventListener("webglcontextrestored",this._contextRestored,!1),this._canvas.setAttribute("tabindex",this._interactive?"0":"-1"),this._canvas.setAttribute("aria-label",this._getUIString("Map.Title")),this._canvas.setAttribute("role","region"),this._resizeCanvas(e[0],e[1],t);let a=this._controlContainer=wr.create("div","maplibregl-control-container",r),n=this._controlPositions={};for(let o of["top-left","top-right","bottom-left","bottom-right"])n[o]=wr.create("div",`maplibregl-ctrl-${o} `,a);this._container.addEventListener("scroll",this._onMapScroll,!1)}_cleanupContainer(){this._canvas.removeEventListener("webglcontextrestored",this._contextRestored,!1),this._canvas.removeEventListener("webglcontextlost",this._contextLost,!1),this._canvasContainer.remove(),this._controlContainer.remove(),this._container.removeEventListener("scroll",this._onMapScroll,!1),this._container.classList.remove("maplibregl-map")}_resizeCanvas(e,t,r){let i=Math.round(r*e),a=Math.round(r*t);this._canvas.width=i,this._canvas.height=a,this._canvas.style.width=`${i/r}px`,this._canvas.style.height=`${a/r}px`}_setupPainter(){let e=Gr(nr({},this._canvasContextAttributes),{alpha:!0,depth:!0,stencil:!0,premultipliedAlpha:!0}),t=null;this._canvas.addEventListener("webglcontextcreationerror",i=>{t=i},{once:!0});let r=this._canvas.getContext("webgl2",e);if(!r)throw new Bue(e,t);this.painter=new yZe(r,this._camera.transform)}migrateProjection(e,t){this._camera.migrateProjection(e,t),this.painter.transform=e,this.fire(new wle({newProjection:this.style.projection.name}))}loaded(){return!this._styleDirty&&!this._sourcesDirty&&!!this.style&&this.style.loaded()}_update(e){var t;return(t=this.style)!=null&&t._loaded?(this._styleDirty||(this._styleDirty=e),this._sourcesDirty=!0,this.triggerRepaint(),this):this}_requestRenderFrame(e){return this._update(),this._renderTaskQueue.add(e)}_cancelRenderFrame(e){this._renderTaskQueue.remove(e)}_render(e){var o,s,l,u,c;let t=this._idleTriggered?this._fadeDuration:0,r=((o=this.style.projection)==null?void 0:o.transitionState)>0;if(this.painter.context.setDirty(),this.painter.setBaseState(),this._renderTaskQueue.run(e),this._removed)return;let i=!1;if(this.style&&this._styleDirty){this._styleDirty=!1;let h=this._camera.transform.zoom,f=ki();this.style.zoomHistory.update(h,f);let d=new Si(h,{now:f,fadeDuration:t,zoomHistory:this.style.zoomHistory,transition:this.style.getTransition()}),p=d.crossFadingFactor();(p!==1||p!==this._crossFadingFactor)&&(i=!0,this._crossFadingFactor=p),this.style.update(d)}let a=((s=this.style.projection)==null?void 0:s.transitionState)>0!==r;this._camera.transform.setTransitionState((l=this.style.projection)==null?void 0:l.transitionState),this.style&&(this._sourcesDirty||a)&&(this._sourcesDirty=!1,this.style._updateSources(this._camera.transform)),this.terrain?(this.terrain.tileManager.update(this._camera.transform,this.terrain)&&this.terrain.resetElevationCache(),this._camera.transform.setMinElevationForCurrentTile(this.terrain.getMinTileElevationForLngLatZoom(this._camera.transform.center,this._camera.transform.tileZoom)),!this._camera.elevationFreeze&&this.getCenterClampedToGround()&&this._camera.transform.setElevation(this.terrain.getElevationForLngLat(this._camera.transform.center,this._camera.transform))):(this._camera.transform.setMinElevationForCurrentTile(0),this.getCenterClampedToGround()&&this._camera.transform.setElevation(0)),this._placementDirty=(u=this.style)==null?void 0:u._updatePlacement(this._camera.transform,this.showCollisionBoxes,t,this._crossSourceCollisions,a),this.painter.render(this.style,{showTileBoundaries:this.showTileBoundaries,showOverdrawInspector:this._showOverdrawInspector,rotating:this.isRotating(),zooming:this.isZooming(),moving:this.isMoving(),fadeDuration:t,showPadding:this.showPadding,anisotropicFilterPitch:this.getAnisotropicFilterPitch()}),this.fire(new In("render")),this.loaded()&&!this._loaded&&(this._loaded=!0,this.fire(new In("load"))),this.style&&(this.style.hasTransitions()||i)&&(this._styleDirty=!0),this.style&&!this._placementDirty&&this.style._releaseSymbolFadeTiles();let n=this._sourcesDirty||this._styleDirty||this._placementDirty||((c=this.painter.renderToTexture)==null?void 0:c.needsFollowUpFrame);return n||this._repaint?this.triggerRepaint():!this.isMoving()&&this.loaded()&&this.fire(new In("idle")),this._loaded&&!this._fullyLoaded&&!n&&(this._fullyLoaded=!0),this}redraw(){return this.style&&(this._frameRequest&&(this._frameRequest=(this._frameRequest.abort(),null)),this._render(0)),this}remove(){var t,r;this._hash&&this._hash.remove();for(let i of this._controls)i.onRemove(this);this._controls=[],this._frameRequest&&(this._frameRequest=(this._frameRequest.abort(),null)),this._renderTaskQueue.clear(),(t=this._diffStyleRequest)==null||t.abort(),this.painter.destroy(),this._handlers.destroy(),this.setStyle(null),typeof window<"u"&&this._ownerWindow.removeEventListener("online",this._onWindowOnline,!1),qu.removeThrottleControl(this._imageQueueHandle),(r=this._resizeObserver)==null||r.disconnect();let e=this.painter.context.gl.getExtension("WEBGL_lose_context");e!=null&&e.loseContext&&e.loseContext(),this._cleanupContainer(),this._removed=!0,this.fire(new In("remove"))}triggerRepaint(){this.style&&!this._frameRequest&&(this._frameRequest=new AbortController,ws.frame(this._frameRequest,e=>{this._frameRequest=null;try{this._render(e)}catch(t){if(!bh(t))throw t}},()=>{},this._ownerWindow))}get showTileBoundaries(){return!!this._showTileBoundaries}set showTileBoundaries(e){this._showTileBoundaries!==e&&(this._showTileBoundaries=e,this._update())}get showPadding(){return!!this._showPadding}set showPadding(e){this._showPadding!==e&&(this._showPadding=e,this._update())}get showCollisionBoxes(){return!!this._showCollisionBoxes}set showCollisionBoxes(e){this._showCollisionBoxes!==e&&(this._showCollisionBoxes=e,e?this.style._generateCollisionBoxes():this._update())}get showOverdrawInspector(){return!!this._showOverdrawInspector}set showOverdrawInspector(e){this._showOverdrawInspector!==e&&(this._showOverdrawInspector=e,this._update())}get repaint(){return!!this._repaint}set repaint(e){this._repaint!==e&&(this._repaint=e,this.triggerRepaint())}get vertices(){return!!this._vertices}set vertices(e){this._vertices=e,this._update()}get version(){return KZe}getCameraTargetElevation(){return this._camera.transform.elevation}getProjection(){return this.style.getProjection()}setProjection(e){return this._lazyInitEmptyStyle(),this.style.setProjection(e),this._update(!0)}},QZe={showCompass:!0,showZoom:!0,visualizePitch:!1,visualizeRoll:!0},eYe=class{constructor(e){this._updateZoomButtons=()=>{let t=this._map.getZoom(),r=t===this._map.getMaxZoom(),i=t===this._map.getMinZoom(!0);this._zoomInButton.disabled=r,this._zoomOutButton.disabled=i,this._zoomInButton.setAttribute("aria-disabled",r.toString()),this._zoomOutButton.setAttribute("aria-disabled",i.toString())},this._rotateCompassArrow=()=>{let t=this._map.getPitch(),r=this._map.getRoll(),i=this._map.getBearing(),a=1/Math.cos(ua(t))**.5;if(this.options.visualizePitch&&this.options.visualizeRoll){this._compassIcon.style.transform=`scale(${a}) rotateZ(${-r}deg) rotateX(${t}deg) rotateZ(${-i}deg)`;return}if(this.options.visualizePitch){this._compassIcon.style.transform=`scale(${a}) rotateX(${t}deg) rotateZ(${-i}deg)`;return}if(this.options.visualizeRoll){this._compassIcon.style.transform=`rotate(${-i-r}deg)`;return}this._compassIcon.style.transform=`rotate(${-i}deg)`},this._setButtonTitle=(t,r)=>{let i=this._map._getUIString(`NavigationControl.${r}`);t.title=i,t.setAttribute("aria-label",i)},this.options=tr({},QZe,e),this._container=wr.create("div","maplibregl-ctrl maplibregl-ctrl-group"),this._container.addEventListener("contextmenu",t=>t.preventDefault()),this.options.showZoom&&(this._zoomInButton=this._createButton("maplibregl-ctrl-zoom-in",t=>this._map.zoomIn({},{originalEvent:t})),wr.create("span","maplibregl-ctrl-icon",this._zoomInButton).setAttribute("aria-hidden","true"),this._zoomOutButton=this._createButton("maplibregl-ctrl-zoom-out",t=>this._map.zoomOut({},{originalEvent:t})),wr.create("span","maplibregl-ctrl-icon",this._zoomOutButton).setAttribute("aria-hidden","true")),this.options.showCompass&&(this._compass=this._createButton("maplibregl-ctrl-compass",t=>{this.options.visualizePitch?this._map.resetNorthPitch({},{originalEvent:t}):this._map.resetNorth({},{originalEvent:t})}),this._compassIcon=wr.create("span","maplibregl-ctrl-icon",this._compass),this._compassIcon.setAttribute("aria-hidden","true"))}onAdd(e){return this._map=e,this.options.showZoom&&(this._setButtonTitle(this._zoomInButton,"ZoomIn"),this._setButtonTitle(this._zoomOutButton,"ZoomOut"),this._map.on("move",this._updateZoomButtons),this._updateZoomButtons()),this.options.showCompass&&(this._setButtonTitle(this._compass,"ResetBearing"),this.options.visualizePitch&&this._map.on("pitch",this._rotateCompassArrow),this.options.visualizeRoll&&this._map.on("roll",this._rotateCompassArrow),this._map.on("rotate",this._rotateCompassArrow),this._rotateCompassArrow(),this._handler=new tYe(this._map,this._compass,this.options.visualizePitch)),this._container}onRemove(){this._container.remove(),this.options.showZoom&&this._map.off("move",this._updateZoomButtons),this.options.showCompass&&(this.options.visualizePitch&&this._map.off("pitch",this._rotateCompassArrow),this.options.visualizeRoll&&this._map.off("roll",this._rotateCompassArrow),this._map.off("rotate",this._rotateCompassArrow),this._handler.off(),delete this._handler),delete this._map}_createButton(e,t){let r=wr.create("button",e,this._container);return r.type="button",r.addEventListener("click",t),r}},tYe=class{constructor(e,t,r=!1){this.mousedown=a=>{this.startMove(a,wr.mousePos(this.element,a)),window.addEventListener("mousemove",this.mousemove),window.addEventListener("mouseup",this.mouseup)},this.mousemove=a=>{this.move(a,wr.mousePos(this.element,a))},this.mouseup=a=>{this._rotatePitchHandler.dragEnd(a),this.offTemp()},this.touchstart=a=>{a.targetTouches.length===1?(this._startPos=this._lastPos=wr.touchPos(this.element,a.targetTouches)[0],this.startMove(a,this._startPos),window.addEventListener("touchmove",this.touchmove,{passive:!1}),window.addEventListener("touchend",this.touchend)):this.reset()},this.touchmove=a=>{a.targetTouches.length===1?(this._lastPos=wr.touchPos(this.element,a.targetTouches)[0],this.move(a,this._lastPos)):this.reset()},this.touchend=a=>{a.targetTouches.length===0&&this._startPos&&this._lastPos&&this._startPos.dist(this._lastPos){this._rotatePitchHandler.reset(),delete this._startPos,delete this._lastPos,this.offTemp()},this._clickTolerance=10,this.element=t;let i=new IZe;this._rotatePitchHandler=new K2({clickTolerance:3,move:(a,n)=>{let o=t.getBoundingClientRect(),s=new Be((o.bottom-o.top)/2,(o.right-o.left)/2);return{bearingDelta:wk(new Be(a.x,n.y),n,s),pitchDelta:r?(n.y-a.y)*-.5:void 0}},moveStateManager:i,enable:!0,assignEvents:()=>{}}),this.map=e,t.addEventListener("mousedown",this.mousedown),t.addEventListener("touchstart",this.touchstart,{passive:!1}),t.addEventListener("touchcancel",this.reset)}startMove(e,t){this._rotatePitchHandler.dragStart(e,t),wr.disableDrag()}move(e,t){let r=this.map,{bearingDelta:i,pitchDelta:a}=this._rotatePitchHandler.dragMove(e,t)||{};i&&r.setBearing(r.getBearing()+i),a&&r.setPitch(r.getPitch()+a)}off(){let e=this.element;e.removeEventListener("mousedown",this.mousedown),e.removeEventListener("touchstart",this.touchstart),window.removeEventListener("touchmove",this.touchmove),window.removeEventListener("touchend",this.touchend),e.removeEventListener("touchcancel",this.reset),this.offTemp()}offTemp(){wr.enableDrag(),window.removeEventListener("mousemove",this.mousemove),window.removeEventListener("mouseup",this.mouseup),window.removeEventListener("touchmove",this.touchmove),window.removeEventListener("touchend",this.touchend)}};UF={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%)"};vle={ArrowLeft:[-1,0],ArrowRight:[1,0],ArrowUp:[0,-1],ArrowDown:[0,1]},tce="#3FB1CE";rp=class extends xs{},rce=class extends xs{},gF=class extends Xa{constructor(e){if(super(),this._onClick=t=>{this.fire(new rce("click",{originalEvent:t}))},this._onKeyPress=t=>{(t.code==="Space"||t.code==="Enter")&&this.togglePopup()},this._onKeyDown=t=>{if(!this._defaultMarker||!this._draggable||!this._map||!this._lngLat||t.composedPath()[0]!==this._element||t.altKey||t.ctrlKey||t.metaKey)return;let r=vle[t.key];if(!r)return;t.preventDefault(),t.stopPropagation();let i=t.shiftKey?10:1,a=this._map.project(this._lngLat);this.setLngLat(this._map.unproject(new Be(a.x+r[0]*i,a.y+r[1]*i))),this._keyboardDragActive||(this._keyboardDragActive=!0,this.fire(new rp("dragstart"))),this.fire(new rp("drag"))},this._onKeyUp=t=>{vle[t.key]&&this._endKeyboardDrag()},this._onBlur=()=>{this._endKeyboardDrag()},this._onMapClick=t=>{let r=t.originalEvent.target,i=this._element;this._popup&&(r===i||i.contains(r))&&this.togglePopup()},this._updateCoveredUnthrottled=()=>{var i,a;let t=(i=this._map)==null?void 0:i.terrain;if(!t||!this._isInViewport())return;let r=this._isCovered(t);r&&((a=this._popup)!=null&&a.isOpen())&&this._popup.remove(),this._element.style.opacity=r?this._opacityWhenCovered:this._opacity,this._element.classList.toggle("maplibregl-marker-covered",r)},this._updateCovered=NF(this._updateCoveredUnthrottled,100),this._update=t=>{if(!this._map)return;this._lngLat=Que(this._lngLat,this._flatPos,this._map._camera.transform),this._flatPos=this._pos=this._map.project(this._lngLat)._add(this._offset),this._map.terrain&&(this._flatPos=this._map._camera.transform.locationToScreenPoint(this._lngLat)._add(this._offset));let r="";this._rotationAlignment==="viewport"||this._rotationAlignment==="auto"?r=`rotateZ(${this._rotation}deg)`:this._rotationAlignment==="map"&&(r=`rotateZ(${this._rotation-this._map.getBearing()}deg)`);let i="";this._pitchAlignment==="viewport"||this._pitchAlignment==="auto"?i="rotateX(0deg)":this._pitchAlignment==="map"&&(i=`rotateX(${this._map.getPitch()}deg)`),!this._subpixelPositioning&&(t==null?void 0:t.type)!=="move"&&(this._pos=this._pos.round()),this._element.style.transform=`${UF[this._anchor]} translate(${this._pos.x}px, ${this._pos.y}px) ${i} ${r}`,this._updateOpacity()},this._onMove=t=>{if(!this._isDragging){let r=this._clickTolerance||this._map._clickTolerance;this._isDragging=t.point.dist(this._pointerdownPos)>=r}this._isDragging&&(this._pos=t.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 rp("dragstart"))),this.fire(new rp("drag")))},this._onUp=()=>{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 rp("dragend")),this._state="inactive"},this._addDragHandler=t=>{this._element.contains(t.originalEvent.target)&&(t.preventDefault(),this._positionDelta=t.point.sub(this._pos).add(this._offset),this._pointerdownPos=t.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))},this._anchor=(e==null?void 0:e.anchor)||"center",this._color=(e==null?void 0:e.color)||tce,this._scale=(e==null?void 0:e.scale)||1,this._draggable=(e==null?void 0:e.draggable)||!1,this._clickTolerance=(e==null?void 0:e.clickTolerance)||0,this._subpixelPositioning=(e==null?void 0:e.subpixelPositioning)||!1,this._isDragging=!1,this._roleManaged=!1,this._tabIndexManaged=!1,this._keyboardDragActive=!1,this._state="inactive",this._rotation=(e==null?void 0:e.rotation)||0,this._rotationAlignment=(e==null?void 0:e.rotationAlignment)||"auto",this._pitchAlignment=e!=null&&e.pitchAlignment&&e.pitchAlignment!=="auto"?e.pitchAlignment:this._rotationAlignment,this.setOpacity(e==null?void 0:e.opacity,e==null?void 0:e.opacityWhenCovered),e==null?void 0:e.element)this._element=e.element,this._offset=Be.convert((e==null?void 0:e.offset)||[0,0]);else{this._defaultMarker=!0,this._element=wr.create("div");let t=iYe().cloneNode(!0);t.setAttributeNS(null,"height",`${41*this._scale}px`),t.setAttributeNS(null,"width",`${27*this._scale}px`),aYe(t).setAttributeNS(null,"fill",this._color),this._element.appendChild(t),this._offset=Be.convert((e==null?void 0:e.offset)||[0,-14])}if(this._element.classList.add("maplibregl-marker"),this._element.addEventListener("dragstart",t=>{t.preventDefault()}),this._element.addEventListener("mousedown",t=>{t.preventDefault()}),ece(this._element,this._anchor,"marker"),e==null?void 0:e.className)for(let t of e.className.split(" "))this._element.classList.add(t);this._popup=null}addTo(e){return this.remove(),this._map=e,this._defaultMarker&&!this._element.hasAttribute("aria-label")&&this._element.setAttribute("aria-label",e._getUIString("Marker.Title")),this._updateAccessibilityRole(),e.getCanvasContainer().appendChild(this._element),e.on("move",this._update),e.on("moveend",this._update),e.on("terrain",this._update),e.on("projectiontransition",this._update),e.on("idle",this._update),this._element.addEventListener("click",this._onClick),this.setDraggable(this._draggable),this._update(),this._map.on("click",this._onMapClick),this}remove(){return this._map&&(this._map.off("click",this._onMapClick),this._map.off("move",this._update),this._map.off("moveend",this._update),this._map.off("terrain",this._update),this._map.off("projectiontransition",this._update),this._map.off("idle",this._update),this._map.off("mousedown",this._addDragHandler),this._map.off("touchstart",this._addDragHandler),this._map.off("mouseup",this._onUp),this._map.off("touchend",this._onUp),this._map.off("mousemove",this._onMove),this._map.off("touchmove",this._onMove),delete this._map),this._element.removeEventListener("click",this._onClick),this._element.removeEventListener("keydown",this._onKeyDown),this._element.removeEventListener("keyup",this._onKeyUp),this._element.removeEventListener("blur",this._onBlur),this._element.removeEventListener("keypress",this._onKeyPress),this._keyboardDragActive=!1,this._element.remove(),this._popup&&this._popup.remove(),this}getLngLat(){return this._lngLat}setLngLat(e){return this._lngLat=ar.convert(e),this._pos=null,this._update(),this._popup&&this._popup.setLngLat(this._lngLat),this}getElement(){return this._element}setPopup(e){if(this._popup&&(this._popup.remove(),this._popup=null,this._element.removeEventListener("keypress",this._onKeyPress)),e){if(!("offset"in e.options)){let t=13.5/Math.SQRT2;e.options.offset=this._defaultMarker?{top:[0,0],"top-left":[0,0],"top-right":[0,0],bottom:[0,-38.1],"bottom-left":[t,(24.6+t)*-1],"bottom-right":[-t,(24.6+t)*-1],left:[13.5,-24.6],right:[-13.5,-24.6]}:this._offset}this._popup=e,this._element.addEventListener("keypress",this._onKeyPress)}return this._updateTabIndex(),this._updateAccessibilityRole(),this}setSubpixelPositioning(e){return this._subpixelPositioning=e,this}_endKeyboardDrag(){this._keyboardDragActive&&(this._keyboardDragActive=!1,this.fire(new rp("dragend")))}getPopup(){return this._popup}togglePopup(){let e=this._popup;if(this._element.style.opacity===this._opacityWhenCovered)return this;if(e)e.isOpen()?e.remove():(e.setLngLat(this._lngLat),e.addTo(this._map));else return this;return this}_updateOpacity(){var r;if(!this._isInViewport())return;let e=(r=this._map)==null?void 0:r.terrain,t=this._map._camera.transform.isLocationOccluded(this._lngLat);if(!e||t){let i=t?this._opacityWhenCovered:this._opacity;this._element.style.opacity!==i&&(this._element.style.opacity=i,this._element.classList.toggle("maplibregl-marker-covered",t));return}this._updateCovered()}_isInViewport(){let{width:e,height:t}=this._map._camera.transform;return!!this._pos&&this._pos.x>=0&&this._pos.y>=0&&this._pos.x<=e&&this._pos.y<=t}_isCovered(e){let t=this._map._camera.transform,r=e.getElevationForLngLat(this._lngLat,t),i=Math.max(0,-this._offset.y)/t.pixelsPerMeter,a=Math.sin(this._map.getPitch()*Math.PI/180)*i;return t.isLocationOccluded(this._lngLat,e,r+a)}getOffset(){return this._offset}setOffset(e){return this._offset=Be.convert(e),this._update(),this}addClassName(e){this._element.classList.add(e)}removeClassName(e){this._element.classList.remove(e)}toggleClassName(e){return this._element.classList.toggle(e)}setDraggable(e){return this._draggable=!!e,this._element.classList.toggle("maplibregl-marker-draggable",this._draggable),this._map&&(e?(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._defaultMarker&&(this._draggable?(this._element.addEventListener("keydown",this._onKeyDown),this._element.addEventListener("keyup",this._onKeyUp),this._element.addEventListener("blur",this._onBlur)):(this._element.removeEventListener("keydown",this._onKeyDown),this._element.removeEventListener("keyup",this._onKeyUp),this._element.removeEventListener("blur",this._onBlur),this._endKeyboardDrag())),this._updateTabIndex(),this._updateAccessibilityRole(),this}isDraggable(){return this._draggable}_updateTabIndex(){this._popup||this._defaultMarker&&this._draggable?this._element.hasAttribute("tabindex")||(this._element.setAttribute("tabindex","0"),this._tabIndexManaged=!0):this._tabIndexManaged&&(this._tabIndexManaged=(this._element.getAttribute("tabindex")==="0"&&this._element.removeAttribute("tabindex"),!1))}_updateAccessibilityRole(){if(!this._defaultMarker||this._element.hasAttribute("role")&&!this._roleManaged)return;let e=this._draggable||this._popup?"button":"img";this._element.setAttribute("role",e),this._roleManaged=!0}setRotation(e){return this._rotation=e||0,this._update(),this}getRotation(){return this._rotation}setRotationAlignment(e){return this._rotationAlignment=e||"auto",this._update(),this}getRotationAlignment(){return this._rotationAlignment}setPitchAlignment(e){return this._pitchAlignment=e&&e!=="auto"?e:this._rotationAlignment,this._update(),this}getPitchAlignment(){return this._pitchAlignment}setOpacity(e,t){return(this._opacity===void 0||e===void 0&&t===void 0)&&(this._opacity="1",this._opacityWhenCovered="0.2"),e!==void 0&&(this._opacity=String(e)),t!==void 0&&(this._opacityWhenCovered=String(t)),this._map&&this._updateOpacity(),this}},nYe={positionOptions:{enableHighAccuracy:!1,maximumAge:0,timeout:6e3},fitBoundsOptions:{maxZoom:15},trackUserLocation:!1,showAccuracyCircle:!0,showUserLocation:!0},Jw=0,G2=!1,ip=class extends xs{},yF=class extends xs{},ice=class extends xs{},oYe=class extends Xa{constructor(e){super(),this._onSuccess=t=>{if(this._map){if(this._isOutOfMapMaxBounds(t)){this._setErrorState(),this.fire(new yF("outofmaxbounds",t)),this._updateMarker(),this._finish();return}if(this.options.trackUserLocation)switch(this._lastKnownPosition=t,this._watchState){case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active");break;case"BACKGROUND":case"BACKGROUND_ERROR":this._watchState="BACKGROUND",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-background");break;default:throw Error(`Unexpected watchState ${this._watchState}`)}this.options.showUserLocation&&this._watchState!=="OFF"&&this._updateMarker(t),(!this.options.trackUserLocation||this._watchState==="ACTIVE_LOCK")&&this._updateCamera(t),this.options.showUserLocation&&this._dotElement.classList.remove("maplibregl-user-location-dot-stale"),this.fire(new yF("geolocate",t)),this._finish()}},this._updateCamera=t=>{let r=new ar(t.coords.longitude,t.coords.latitude),i=t.coords.accuracy,a=this._map.getBearing(),n=tr({bearing:a},this.options.fitBoundsOptions),o=Ou.fromLngLat(r,i);this._map.fitBounds(o,n,{geolocateSource:!0})},this._updateMarker=t=>{if(t){let r=new ar(t.coords.longitude,t.coords.latitude);this._accuracyCircleMarker.setLngLat(r).addTo(this._map),this._userLocationDotMarker.setLngLat(r).addTo(this._map),this._accuracy=t.coords.accuracy,this._updateCircleRadiusIfNeeded()}else this._userLocationDotMarker.remove(),this._accuracyCircleMarker.remove()},this._onUpdate=()=>{this._updateCircleRadiusIfNeeded()},this._onError=t=>{if(this._map){if(t.code===1){this._watchState="OFF",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background-error"),this._geolocateButton.disabled=!0;let r=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.title=r,this._geolocateButton.setAttribute("aria-label",r),this._geolocationWatchID!==void 0&&this._clearWatch()}else{if(t.code===3&&G2)return;this._setErrorState()}this._watchState!=="OFF"&&this.options.showUserLocation&&this._dotElement.classList.add("maplibregl-user-location-dot-stale"),this.fire(new ice("error",t)),this._finish()}},this._finish=()=>{this._timeoutId&&clearTimeout(this._timeoutId),this._timeoutId=void 0},this._onMoveStart=t=>{if(!this._map)return;let r=(t==null?void 0:t[0])instanceof ResizeObserverEntry;!t.geolocateSource&&this._watchState==="ACTIVE_LOCK"&&!r&&!this._map.isZooming()&&(this._watchState="BACKGROUND",this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active"),this.fire(new ip("trackuserlocationend")),this.fire(new ip("userlocationlostfocus")))},this._setupUI=()=>{this._map&&(this._container.addEventListener("contextmenu",t=>{t.preventDefault()}),this._geolocateButton=wr.create("button","maplibregl-ctrl-geolocate",this._container),wr.create("span","maplibregl-ctrl-icon",this._geolocateButton).setAttribute("aria-hidden","true"),this._geolocateButton.type="button",this._geolocateButton.disabled=!0)},this._finishSetupUI=t=>{if(this._map){if(t===!1){$r("Geolocation support is not available so the GeolocateControl will be disabled.");let r=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.disabled=!0,this._geolocateButton.title=r,this._geolocateButton.setAttribute("aria-label",r)}else{let r=this._map._getUIString("GeolocateControl.FindMyLocation");this._geolocateButton.disabled=!1,this._geolocateButton.title=r,this._geolocateButton.setAttribute("aria-label",r)}this.options.trackUserLocation&&(this._geolocateButton.setAttribute("aria-pressed","false"),this._watchState="OFF"),this.options.showUserLocation&&(this._dotElement=wr.create("div","maplibregl-user-location-dot"),this._userLocationDotMarker=new gF({element:this._dotElement}),this._circleElement=wr.create("div","maplibregl-user-location-accuracy-circle"),this._accuracyCircleMarker=new gF({element:this._circleElement,pitchAlignment:"map"}),this.options.trackUserLocation&&(this._watchState="OFF"),this._map.on("zoom",this._onUpdate),this._map.on("move",this._onUpdate),this._map.on("rotate",this._onUpdate),this._map.on("pitch",this._onUpdate)),this._geolocateButton.addEventListener("click",()=>this.trigger()),this._setup=!0,this.options.trackUserLocation&&this._map.on("movestart",this._onMoveStart)}},this.options=tr({},nYe,e)}onAdd(e){return this._map=e,this._container=wr.create("div","maplibregl-ctrl maplibregl-ctrl-group"),this._setupUI(),rYe().then(t=>this._finishSetupUI(t)),this._container}onRemove(){this._geolocationWatchID!==void 0&&(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(),this._container.remove(),this._map.off("movestart",this._onMoveStart),this._map.off("zoom",this._onUpdate),this._map.off("move",this._onUpdate),this._map.off("rotate",this._onUpdate),this._map.off("pitch",this._onUpdate),this._map=void 0,Jw=0,G2=!1}_isOutOfMapMaxBounds(e){let t=this._map.getMaxBounds(),r=e.coords;return t&&(r.longitudet.getEast()||r.latitudet.getNorth())}_setErrorState(){switch(this._watchState){case"WAITING_ACTIVE":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active-error");break;case"ACTIVE_LOCK":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-waiting");break;case"BACKGROUND":this._watchState="BACKGROUND_ERROR",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-waiting");break;case"ACTIVE_ERROR":case"BACKGROUND_ERROR":break;case"OFF":case void 0:break;default:throw Error(`Unexpected watchState ${this._watchState}`)}}_updateCircleRadiusIfNeeded(){let e=this._userLocationDotMarker.getLngLat();if(!this.options.showUserLocation||!this.options.showAccuracyCircle||!this._accuracy||!e)return;let t=this._map.project(e),r=this._map.unproject([t.x+100,t.y]),i=e.distanceTo(r)/100,a=2*this._accuracy/i;this._circleElement.style.width=`${a.toFixed(2)}px`,this._circleElement.style.height=`${a.toFixed(2)}px`}trigger(){if(!this._setup)return $r("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 ip("trackuserlocationstart"));break;case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":case"BACKGROUND_ERROR":Jw--,G2=!1,this._watchState="OFF",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background-error"),this.fire(new ip("trackuserlocationend"));break;case"BACKGROUND":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background"),this._lastKnownPosition&&this._updateCamera(this._lastKnownPosition),this.fire(new ip("trackuserlocationstart")),this.fire(new ip("userlocationfocus"));break;default:throw Error(`Unexpected watchState ${this._watchState}`)}switch(this._watchState){case"WAITING_ACTIVE":this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active");break;case"ACTIVE_LOCK":this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active");break;case"OFF":break;default:throw Error(`Unexpected watchState ${this._watchState}`)}if(this._watchState==="OFF"&&this._geolocationWatchID!==void 0)this._clearWatch();else if(this._geolocationWatchID===void 0){this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","true"),Jw++;let e;Jw>1?(e={maximumAge:6e5,timeout:0},G2=!0):(e=this.options.positionOptions,G2=!1),this._geolocationWatchID=window.navigator.geolocation.watchPosition(this._onSuccess,this._onError,e)}}else window.navigator.geolocation.getCurrentPosition(this._onSuccess,this._onError,this.options.positionOptions),this._timeoutId=setTimeout(this._finish,1e4);return!0}_clearWatch(){window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0,this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","false"),this.options.showUserLocation&&this._updateMarker(null)}},sYe={maxWidth:100,unit:"metric"},lYe=class{constructor(e){this._onMove=()=>{gle(this._map,this._container,this.options)},this.setUnit=t=>{this.options.unit=t,gle(this._map,this._container,this.options)},this.options=nr(nr({},sYe),e)}getDefaultPosition(){return"bottom-left"}onAdd(e){return this._map=e,this._container=wr.create("div","maplibregl-ctrl maplibregl-ctrl-scale",e.getContainer()),this._map.on("move",this._onMove),this._onMove(),this._container}onRemove(){this._container.remove(),this._map.off("move",this._onMove),this._map=void 0}};_F=class extends xs{},hYe=class extends Xa{constructor(e={}){var t;super(),this._onFullscreenChange=()=>{var i;let r=window.document.fullscreenElement||window.document.webkitFullscreenElement;for(;(i=r==null?void 0:r.shadowRoot)!=null&&i.fullscreenElement;)r=r.shadowRoot.fullscreenElement;r===this._container!==this._fullscreen&&this._handleFullscreenChange()},this._onClickFullscreen=()=>{this._isFullscreen()?this._exitFullscreen():this._requestFullscreen()},this._fullscreen=!1,this._pseudo=(t=e.pseudo)!=null?t:!1,e!=null&&e.container&&(e.container instanceof HTMLElement?this._container=e.container:$r("Full screen control 'container' must be a DOM element.")),"onfullscreenchange"in document?this._fullscreenchange="fullscreenchange":"onmozfullscreenchange"in document?this._fullscreenchange="mozfullscreenchange":"onwebkitfullscreenchange"in document?this._fullscreenchange="webkitfullscreenchange":"onmsfullscreenchange"in document&&(this._fullscreenchange="MSFullscreenChange")}onAdd(e){return this._map=e,this._container||(this._container=this._map.getContainer()),this._controlContainer=wr.create("div","maplibregl-ctrl maplibregl-ctrl-group"),this._setupUI(),this._controlContainer}onRemove(){this._controlContainer.remove(),this._map=null,window.document.removeEventListener(this._fullscreenchange,this._onFullscreenChange)}_setupUI(){let e=this._fullscreenButton=wr.create("button","maplibregl-ctrl-fullscreen",this._controlContainer);wr.create("span","maplibregl-ctrl-icon",e).setAttribute("aria-hidden","true"),e.type="button",this._updateTitle(),this._fullscreenButton.addEventListener("click",this._onClickFullscreen),window.document.addEventListener(this._fullscreenchange,this._onFullscreenChange)}_updateTitle(){let e=this._getTitle();this._fullscreenButton.setAttribute("aria-label",e),this._fullscreenButton.title=e}_getTitle(){return this._map._getUIString(this._isFullscreen()?"FullscreenControl.Exit":"FullscreenControl.Enter")}_isFullscreen(){return this._fullscreen}_handleFullscreenChange(){this._fullscreen=!this._fullscreen,this._fullscreenButton.classList.toggle("maplibregl-ctrl-shrink"),this._fullscreenButton.classList.toggle("maplibregl-ctrl-fullscreen"),this._updateTitle(),this._fullscreen?(this.fire(new _F("fullscreenstart")),this._prevCooperativeGesturesEnabled=this._map.cooperativeGestures.isEnabled(),this._map.cooperativeGestures.disable()):(this.fire(new _F("fullscreenend")),this._prevCooperativeGesturesEnabled&&this._map.cooperativeGestures.enable())}_exitFullscreen(){this._pseudo?this._togglePseudoFullScreen():window.document.exitFullscreen?window.document.exitFullscreen():window.document.webkitCancelFullScreen?window.document.webkitCancelFullScreen():this._togglePseudoFullScreen()}_requestFullscreen(){this._pseudo?this._togglePseudoFullScreen():this._container.requestFullscreen?this._container.requestFullscreen():this._container.webkitRequestFullscreen?this._container.webkitRequestFullscreen():this._togglePseudoFullScreen()}_togglePseudoFullScreen(){this._container.classList.toggle("maplibregl-pseudo-fullscreen"),this._handleFullscreenChange(),this._map.resize()}},fYe=class{constructor(e){this._toggleTerrain=()=>{this._map.getTerrain()?this._map.setTerrain(null):this._map.setTerrain(this.options),this._updateTerrainIcon()},this._updateTerrainIcon=()=>{this._terrainButton.classList.remove("maplibregl-ctrl-terrain"),this._terrainButton.classList.remove("maplibregl-ctrl-terrain-enabled"),this._map.terrain?(this._terrainButton.classList.add("maplibregl-ctrl-terrain-enabled"),this._terrainButton.title=this._map._getUIString("TerrainControl.Disable")):(this._terrainButton.classList.add("maplibregl-ctrl-terrain"),this._terrainButton.title=this._map._getUIString("TerrainControl.Enable"))},this.options=e}onAdd(e){return this._map=e,this._container=wr.create("div","maplibregl-ctrl maplibregl-ctrl-group"),this._terrainButton=wr.create("button","maplibregl-ctrl-terrain",this._container),wr.create("span","maplibregl-ctrl-icon",this._terrainButton).setAttribute("aria-hidden","true"),this._terrainButton.type="button",this._terrainButton.addEventListener("click",this._toggleTerrain),this._updateTerrainIcon(),this._map.on("terrain",this._updateTerrainIcon),this._container}onRemove(){this._container.remove(),this._map.off("terrain",this._updateTerrainIcon),this._map=void 0}},dYe=class{constructor(){this._toggleProjection=()=>{var t;let e=(t=this._map.getProjection())==null?void 0:t.type;e==="mercator"||!e?this._map.setProjection({type:"globe"}):this._map.setProjection({type:"mercator"}),this._updateGlobeIcon()},this._updateGlobeIcon=()=>{var e;this._globeButton.classList.remove("maplibregl-ctrl-globe"),this._globeButton.classList.remove("maplibregl-ctrl-globe-enabled"),((e=this._map.getProjection())==null?void 0:e.type)==="globe"?(this._globeButton.classList.add("maplibregl-ctrl-globe-enabled"),this._globeButton.title=this._map._getUIString("GlobeControl.Disable")):(this._globeButton.classList.add("maplibregl-ctrl-globe"),this._globeButton.title=this._map._getUIString("GlobeControl.Enable"))}}onAdd(e){return this._map=e,this._container=wr.create("div","maplibregl-ctrl maplibregl-ctrl-group"),this._globeButton=wr.create("button","maplibregl-ctrl-globe",this._container),wr.create("span","maplibregl-ctrl-icon",this._globeButton).setAttribute("aria-hidden","true"),this._globeButton.type="button",this._globeButton.addEventListener("click",this._toggleProjection),this._updateGlobeIcon(),this._map.on("styledata",this._updateGlobeIcon),this._map.on("projectiontransition",this._updateGlobeIcon),this._container}onRemove(){this._container.remove(),this._map.off("styledata",this._updateGlobeIcon),this._map.off("projectiontransition",this._updateGlobeIcon),this._globeButton.removeEventListener("click",this._toggleProjection),this._map=void 0}},pYe={closeButton:!0,closeOnClick:!0,focusAfterOpen:!0,className:"",maxWidth:"240px",subpixelPositioning:!1,locationOccludedOpacity:void 0,padding:void 0},mYe=["a[href]","[tabindex]:not([tabindex='-1'])","[contenteditable]:not([contenteditable='false'])","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].join(", "),xF=class extends xs{},vYe=class extends Xa{constructor(e){super(),this._updateOpacity=()=>{this.options.locationOccludedOpacity!==void 0&&(this._map._camera.transform.isLocationOccluded(this.getLngLat())?this._container.style.opacity=`${this.options.locationOccludedOpacity}`:this._container.style.opacity="")},this.remove=()=>(this._content&&this._content.remove(),this._container&&(this._container.remove(),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("terrain",this._update),this._map.off("projectiontransition",this._update),this._map.off("idle",this._update),this._map.off("mousemove",this._update),this._map.off("mouseup",this._update),this._map.off("drag",this._update),this._map._canvasContainer.classList.remove("maplibregl-track-pointer"),delete this._map,this.fire(new xF("close"))),this),this._update=t=>{let r=this._lngLat||this._trackPointer;if(!this._map||!r||!this._content)return;if(!this._container){if(this._container=wr.create("div","maplibregl-popup",this._map.getContainer()),this._tip=wr.create("div","maplibregl-popup-tip",this._container),this._container.appendChild(this._content),this.options.className)for(let l of this.options.className.split(" "))this._container.classList.add(l);this._closeButton&&this._closeButton.setAttribute("aria-label",this._map._getUIString("Popup.Close")),this._trackPointer&&this._container.classList.add("maplibregl-popup-track-pointer")}this.options.maxWidth&&this._container.style.maxWidth!==this.options.maxWidth&&(this._container.style.maxWidth=this.options.maxWidth),this._lngLat=Que(this._lngLat,this._flatPos,this._map._camera.transform,this._trackPointer);let i;if(t&&"point"in t&&t.point&&(i=t.point),this._trackPointer&&!i)return;let a=this._flatPos=this._pos=this._trackPointer&&i?i:this._map.project(this._lngLat);this._map.terrain&&(this._flatPos=this._trackPointer&&i?i:this._map._camera.transform.locationToScreenPoint(this._lngLat));let n=this.options.anchor,o=ace(this.options.offset);if(!n){let l=this._container.offsetWidth,u=this._container.offsetHeight,c=gYe(this.options.padding),h;h=a.y+o.bottom.ythis._map._camera.transform.height-u-c.bottom?["bottom"]:[],a.xthis._map._camera.transform.width-l/2-c.right&&h.push("right"),n=h.length===0?"bottom":h.join("-")}let s=a.add(o[n]);this.options.subpixelPositioning||(s=s.round()),this._container.style.transform=`${UF[n]} translate(${s.x}px,${s.y}px)`,ece(this._container,n,"popup"),this._updateOpacity()},this._onClose=()=>{this.remove()},this.options=tr(Object.create(pYe),e)}addTo(e){return this._map&&this.remove(),this._map=e,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._map.on("terrain",this._update),this._map.on("projectiontransition",this._update),this._map.on("idle",this._update),this._update(),this._focusFirstElement(),this._trackPointer?(this._map.on("mousemove",this._update),this._map.on("mouseup",this._update),this._container&&this._container.classList.add("maplibregl-popup-track-pointer"),this._map._canvasContainer.classList.add("maplibregl-track-pointer")):this._map.on("move",this._update),this.fire(new xF("open")),this}isOpen(){return!!this._map}getLngLat(){return this._lngLat}setLngLat(e){return this._lngLat=ar.convert(e),this._pos=null,this._flatPos=null,this._trackPointer=!1,this._update(),this._map&&(this._map.on("move",this._update),this._map.off("mousemove",this._update),this._container&&this._container.classList.remove("maplibregl-popup-track-pointer"),this._map._canvasContainer.classList.remove("maplibregl-track-pointer")),this}trackPointer(){return this._trackPointer=!0,this._pos=null,this._flatPos=null,this._update(),this._map&&(this._map.off("move",this._update),this._map.on("mousemove",this._update),this._map.on("drag",this._update),this._container&&this._container.classList.add("maplibregl-popup-track-pointer"),this._map._canvasContainer.classList.add("maplibregl-track-pointer")),this}getElement(){return this._container}setText(e){return this.setDOMContent(document.createTextNode(e))}setHTML(e){let t=document.createDocumentFragment(),r=document.createElement("body"),i;for(r.innerHTML=e;i=r.firstChild,i;)t.appendChild(i);return this.setDOMContent(t)}getMaxWidth(){var e;return(e=this._container)==null?void 0:e.style.maxWidth}setMaxWidth(e){return this.options.maxWidth=e,this._update(),this}setDOMContent(e){if(this._content)for(;this._content.hasChildNodes();)this._content.firstChild&&this._content.removeChild(this._content.firstChild);else this._content=wr.create("div","maplibregl-popup-content",this._container);return this._content.appendChild(e),this._createCloseButton(),this._update(),this._focusFirstElement(),this}addClassName(e){return this._container&&this._container.classList.add(e),this}removeClassName(e){return this._container&&this._container.classList.remove(e),this}setOffset(e){return this.options.offset=e,this._update(),this}toggleClassName(e){if(this._container)return this._container.classList.toggle(e)}setSubpixelPositioning(e){this.options.subpixelPositioning=e}setPadding(e){this.options.padding=e,this._update()}_createCloseButton(){this.options.closeButton&&(this._closeButton=wr.create("button","maplibregl-popup-close-button",this._content),this._closeButton.type="button",this._closeButton.innerHTML="×",this._closeButton.addEventListener("click",this._onClose))}_focusFirstElement(){if(!this.options.focusAfterOpen||!this._container)return;let e=this._container.querySelector(mYe);e&&e.focus()}};yYe=yle});var uce=X((oht,lce)=>{"use strict";lce.exports='var D1=Object.defineProperty,_1=Object.defineProperties;var A1=Object.getOwnPropertyDescriptors;var lh=Object.getOwnPropertySymbols;var S1=Object.prototype.hasOwnProperty,E1=Object.prototype.propertyIsEnumerable;var uh=(t,e,r)=>e in t?D1(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Xe=(t,e)=>{for(var r in e||(e={}))S1.call(e,r)&&uh(t,r,e[r]);if(lh)for(var r of lh(e))E1.call(e,r)&&uh(t,r,e[r]);return t},Si=(t,e)=>_1(t,A1(e));var et=(t,e,r)=>new Promise((i,n)=>{var a=l=>{try{o(r.next(l))}catch(u){n(u)}},s=l=>{try{o(r.throw(l))}catch(u){n(u)}},o=l=>l.done?i(l.value):Promise.resolve(l.value).then(a,s);o((r=r.apply(t,e)).next())});var F1=Object.create,Dp=Object.defineProperty,T1=Object.getOwnPropertyDescriptor,k1=Object.getOwnPropertyNames,I1=Object.getPrototypeOf,_p=Object.prototype.hasOwnProperty,ml=(t,e)=>()=>(e||(t((e={exports:{}}).exports,e),t=null),e.exports),C1=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(var n=k1(e),a=0,s=n.length,o;ae[l]).bind(null,o),enumerable:!(i=T1(e,o))||i.enumerable});return t},M1=(t,e,r)=>(r=t==null?{}:F1(I1(t)),C1(e||!t||!t.__esModule||!_p.call(t,"default")?Dp(r,"default",{value:t,enumerable:!0}):r,t));function M(t,e){this.x=t,this.y=e}M.prototype={clone(){return new M(this.x,this.y)},add(t){return this.clone()._add(t)},sub(t){return this.clone()._sub(t)},multByPoint(t){return this.clone()._multByPoint(t)},divByPoint(t){return this.clone()._divByPoint(t)},mult(t){return this.clone()._mult(t)},div(t){return this.clone()._div(t)},rotate(t){return this.clone()._rotate(t)},rotateAround(t,e){return this.clone()._rotateAround(t,e)},matMult(t){return this.clone()._matMult(t)},unit(){return this.clone()._unit()},perp(){return this.clone()._perp()},round(){return this.clone()._round()},mag(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals(t){return this.x===t.x&&this.y===t.y},dist(t){return Math.sqrt(this.distSqr(t))},distSqr(t){let e=t.x-this.x,r=t.y-this.y;return e*e+r*r},angle(){return Math.atan2(this.y,this.x)},angleTo(t){return Math.atan2(this.y-t.y,this.x-t.x)},angleWith(t){return this.angleWithSep(t.x,t.y)},angleWithSep(t,e){return Math.atan2(this.x*e-this.y*t,this.x*t+this.y*e)},_matMult(t){let e=t[0]*this.x+t[1]*this.y,r=t[2]*this.x+t[3]*this.y;return this.x=e,this.y=r,this},_add(t){return this.x+=t.x,this.y+=t.y,this},_sub(t){return this.x-=t.x,this.y-=t.y,this},_mult(t){return this.x*=t,this.y*=t,this},_div(t){return this.x/=t,this.y/=t,this},_multByPoint(t){return this.x*=t.x,this.y*=t.y,this},_divByPoint(t){return this.x/=t.x,this.y/=t.y,this},_unit(){return this._div(this.mag()),this},_perp(){let t=this.y;return this.y=this.x,this.x=-t,this},_rotate(t){let e=Math.cos(t),r=Math.sin(t),i=e*this.x-r*this.y,n=r*this.x+e*this.y;return this.x=i,this.y=n,this},_rotateAround(t,e){let r=Math.cos(t),i=Math.sin(t),n=e.x+r*(this.x-e.x)-i*(this.y-e.y),a=e.y+i*(this.x-e.x)+r*(this.y-e.y);return this.x=n,this.y=a,this},_round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},constructor:M},M.convert=function(t){if(t instanceof M)return t;if(Array.isArray(t))return new M(+t[0],+t[1]);if(t.x!==void 0&&t.y!==void 0)return new M(+t.x,+t.y);throw Error("Expected [x, y] or {x, y} point format")};function B1(t,e,r,i){let n=3*t,a=3*(r-t)-n,s=1-n-a,o=3*e,l=3*(i-e)-o,u=1-o-l;return function(h,c=1e-6){if(h<=0)return 0;if(h>=1)return 1;let p=h;for(let y=0;y<8;y++){let m=((s*p+a)*p+n)*p-h;if(Math.abs(m)m?f=p:d=p,p=(f+d)*.5}return((u*p+l)*p+o)*p}}var Ei;function P1(){return Ei!=null||(Ei=typeof OffscreenCanvas<"u"&&!!new OffscreenCanvas(1,1).getContext("2d")&&typeof createImageBitmap=="function"),Ei}var Xn;function z1(){if(Xn==null&&(Xn=!1,P1())){let t=new OffscreenCanvas(5,5).getContext("2d",{willReadFrequently:!0});if(t){for(let r=0;r<25;r++){let i=r*4;t.fillStyle=`rgb(${i},${i+1},${i+2})`,t.fillRect(r%5,Math.floor(r/5),1,1)}let e=t.getImageData(0,0,5,5).data;for(let r=0;r<100;r++)if(r%4!=3&&e[r]!==r){Xn=!0;break}}}return Xn||!1}var fe=typeof Float32Array<"u"?Float32Array:Array;function L1(){var t=new fe(9);return fe!=Float32Array&&(t[1]=0,t[2]=0,t[3]=0,t[5]=0,t[6]=0,t[7]=0),t[0]=1,t[4]=1,t[8]=1,t}function Ap(){var t=new fe(3);return fe!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0),t}function V1(t){var e=t[0],r=t[1],i=t[2];return Math.sqrt(e*e+r*r+i*i)}function hh(t,e,r){var i=new fe(3);return i[0]=t,i[1]=e,i[2]=r,i}function O1(t,e){var r=e[0],i=e[1],n=e[2],a=r*r+i*i+n*n;return a>0&&(a=1/Math.sqrt(a)),t[0]=e[0]*a,t[1]=e[1]*a,t[2]=e[2]*a,t}function R1(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function ks(t,e,r){var i=e[0],n=e[1],a=e[2],s=r[0],o=r[1],l=r[2];return t[0]=n*l-a*o,t[1]=a*s-i*l,t[2]=i*o-n*s,t}var $1=V1;(function(){var t=Ap();return function(e,r,i,n,a,s){var o,l;for(r||(r=3),i||(i=0),l=n?Math.min(n*r+i,e.length):e.length,o=i;o0&&(s=1/Math.sqrt(s)),t[0]=r*s,t[1]=i*s,t[2]=n*s,t[3]=a*s,t}function q1(t,e,r){var i=e[0],n=e[1],a=e[2],s=e[3];return t[0]=r[0]*i+r[4]*n+r[8]*a+r[12]*s,t[1]=r[1]*i+r[5]*n+r[9]*a+r[13]*s,t[2]=r[2]*i+r[6]*n+r[10]*a+r[14]*s,t[3]=r[3]*i+r[7]*n+r[11]*a+r[15]*s,t}(function(){var t=N1();return function(e,r,i,n,a,s){var o,l;for(r||(r=4),i||(i=0),l=n?Math.min(n*r+i,e.length):e.length,o=i;o1e-6?(p=Math.acos(f),d=Math.sin(p),y=Math.sin((1-i)*p)/d,m=Math.sin(i*p)/d):(y=1-i,m=i),t[0]=y*n+m*l,t[1]=y*a+m*u,t[2]=y*s+m*h,t[3]=y*o+m*c,t}function G1(t,e){var r=e[0]+e[4]+e[8],i;if(r>0)i=Math.sqrt(r+1),t[3]=.5*i,i=.5/i,t[0]=(e[5]-e[7])*i,t[1]=(e[6]-e[2])*i,t[2]=(e[1]-e[3])*i;else{var n=0;e[4]>e[0]&&(n=1),e[8]>e[n*3+n]&&(n=2);var a=(n+1)%3,s=(n+2)%3;i=Math.sqrt(e[n*3+n]-e[a*3+a]-e[s*3+s]+1),t[n]=.5*i,i=.5/i,t[3]=(e[a*3+s]-e[s*3+a])*i,t[a]=(e[a*3+n]+e[n*3+a])*i,t[s]=(e[s*3+n]+e[n*3+s])*i}return t}var ph=U1;(function(){var t=Ap(),e=hh(1,0,0),r=hh(0,1,0);return function(i,n,a){var s=R1(n,a);return s<-.999999?(ks(t,e,n),$1(t)<1e-6&&ks(t,r,n),O1(t,t),j1(i,t,Math.PI),i):s>.999999?(i[0]=0,i[1]=0,i[2]=0,i[3]=1,i):(ks(t,n,a),i[0]=t[0],i[1]=t[1],i[2]=t[2],i[3]=1+s,ph(i,i))}})(),(function(){var t=ch(),e=ch();return function(r,i,n,a,s,o){return Is(t,i,s,o),Is(e,n,a,o),Is(r,t,e,2*o*(1-o)),r}})(),(function(){var t=L1();return function(e,r,i,n){return t[0]=i[0],t[3]=i[1],t[6]=i[2],t[1]=n[0],t[4]=n[1],t[7]=n[2],t[2]=-r[0],t[5]=-r[1],t[8]=-r[2],ph(e,G1(e,t))}})();function X1(){var t=new fe(2);return fe!=Float32Array&&(t[0]=0,t[1]=0),t}(function(){var t=X1();return function(e,r,i,n,a,s){var o,l;for(r||(r=2),i||(i=0),l=n?Math.min(n*r+i,e.length):e.length,o=i;o=1)return 1;let e=t*t,r=e*t;return 4*(t<.5?r:3*(t-e)+r-.75)}function W1(t,e,r,i){return B1(t,e,r,i)}var D5=W1(.25,.1,.25,1);function en(t,e,r){return Math.min(r,Math.max(e,t))}function Z1(t,e,r){let i=r-e,n=((t-e)%i+i)%i+e;return n===e?r:n}function Xt(t,...e){for(let r of e)for(let i in r)t[i]=r[i];return t}function H1(t){return Math.log(t)/Math.LN2%1==0}function xn(t,e,r){let i={};for(let n in t)i[n]=e.call(r||this,t[n],n,t);return i}function K1(t,e,r){let i={};for(let n in t)e.call(r||this,t[n],n,t)&&(i[n]=t[n]);return i}function to(t,e){if(Array.isArray(t)){if(!Array.isArray(e)||t.length!==e.length)return!1;for(let r=0;r(e.y-t.y)*(r.x-t.x)}function vr(t){return typeof WorkerGlobalScope<"u"&&t!==void 0&&t instanceof WorkerGlobalScope}function Ba(t){return typeof ImageBitmap<"u"&&t instanceof ImageBitmap}function J1(t,e,r,i,n){let a=Math.max(-e,0)*4,s=(Math.max(0,r)-r)*i*4+a,o=i*4,l=Math.max(0,e),u=Math.max(0,r),h=Math.min(t.width,e+i),c=Math.min(t.height,r+n);return{rect:{x:l,y:u,width:h-l,height:c-u},layout:[{offset:s,stride:o}]}}function Q1(t,e,r,i,n){return et(this,null,function*(){if(typeof VideoFrame>"u")throw Error("VideoFrame not supported");let a=new VideoFrame(t,{timestamp:0});try{let s=a==null?void 0:a.format;if(!s||!(s.startsWith("BGR")||s.startsWith("RGB")))throw Error(`Unrecognized format ${s}`);let o=s.startsWith("BGR"),l=new Uint8ClampedArray(i*n*4);if(yield a.copyTo(l,J1(t,e,r,i,n)),o)for(let u=0;u{t.removeEventListener(e,r,i)}}}function yh(t){return t*Math.PI/180}var mh="AbortError",gl=class extends Error{constructor(t=mh){super(t instanceof Error?t.message:t),this.name=mh,t instanceof Error&&t.stack&&(this.stack=t.stack)}};function xl(t){return t instanceof Error&&t.name==="AbortError"}function e0(t){if(t.aborted)throw new gl(t.reason)}var vl={MAX_PARALLEL_IMAGE_REQUESTS:16,MAX_PARALLEL_IMAGE_REQUESTS_PER_FRAME:8,MAX_TILE_CACHE_ZOOM_LEVELS:5,REGISTERED_PROTOCOLS:{},WORKER_URL:""};function r0(t){return vl.REGISTERED_PROTOCOLS[t.substring(0,t.indexOf("://"))]}function Fp(t,e){vl.REGISTERED_PROTOCOLS[t]=e}function Tp(t){delete vl.REGISTERED_PROTOCOLS[t]}var gh="global-dispatcher",ga=class extends Error{constructor(t,e,r,i){super(`AJAXError: ${e} (${t}): ${r}`),this.status=t,this.statusText=e,this.url=r,this.body=i}};function kp(){var t;if(vr(self))return(t=self.worker)==null?void 0:t.referrer;if(window.location.protocol==="blob:")try{return window.parent.location.href}catch(e){}return window.location.href}var i0=t=>{var e;return t.startsWith("file:")||((e=kp())==null?void 0:e.startsWith("file:"))&&!/^\\w+:/.test(t)};function n0(t,e){return et(this,null,function*(){let r=new Request(t.url,{method:t.method||"GET",body:t.body,credentials:t.credentials,headers:t.headers,cache:t.cache,referrer:kp(),referrerPolicy:t.referrerPolicy,signal:e.signal});t.type==="json"&&!r.headers.has("Accept")&&r.headers.set("Accept","application/json");let i;try{i=yield fetch(r)}catch(s){throw xl(s)?s:new ga(0,tn(s).message,t.url,new Blob)}if(!i.ok){let s=yield i.blob();throw new ga(i.status,i.statusText,t.url,s)}let n;n=t.type==="arrayBuffer"||t.type==="image"?i.arrayBuffer():t.type==="json"?i.json():i.text();let a=yield n;return e0(e.signal),{data:a,cacheControl:i.headers.get("Cache-Control"),expires:i.headers.get("Expires"),etag:i.headers.get("ETag")}})}function a0(t,e){return new Promise((r,i)=>{var a;let n=new XMLHttpRequest;n.open(t.method||"GET",t.url,!0),(t.type==="arrayBuffer"||t.type==="image")&&(n.responseType="arraybuffer");for(let s in t.headers)n.setRequestHeader(s,t.headers[s]);t.type==="json"&&(n.responseType="text",(a=t.headers)!=null&&a.Accept||n.setRequestHeader("Accept","application/json")),n.withCredentials=t.credentials==="include",n.onerror=()=>{i(Error(n.statusText))},n.onload=()=>{if(!e.signal.aborted)if((n.status>=200&&n.status<300||n.status===0)&&n.response!==null){let s=n.response;if(t.type==="json")try{s=JSON.parse(n.response)}catch(o){i(o);return}r({data:s,cacheControl:n.getResponseHeader("Cache-Control"),expires:n.getResponseHeader("Expires"),etag:n.getResponseHeader("ETag")})}else{let s=new Blob([n.response],{type:n.getResponseHeader("Content-Type")});i(new ga(n.status,n.statusText,t.url,s))}},e.signal.addEventListener("abort",()=>{n.abort(),i(new gl(e.signal.reason))}),n.send(t.body)})}var Pa=function(t,e){return et(this,null,function*(){var r,i;if(t.url.includes("://")&&!/^https?:|^file:/.test(t.url)){let n=r0(t.url);if(n){let a=yield n(t,e);return!a.data&&t.type==="arrayBuffer"?Xt(a,{data:new ArrayBuffer(0)}):a}if(vr(self)&&((r=self.worker)!=null&&r.actor))return self.worker.actor.sendAsync({type:"GR",data:t,targetMapId:gh},e)}if(!i0(t.url)){if(fetch&&Request&&AbortController&&Object.hasOwn(Request.prototype,"signal"))return n0(t,e);if(vr(self)&&((i=self.worker)!=null&&i.actor))return self.worker.actor.sendAsync({type:"GR",data:t,mustQueue:!0,targetMapId:gh},e)}return a0(t,e)})},Ip=(t,e)=>Pa(Xt(t,{type:"json"}),e),Cp=(t,e)=>Pa(Xt(t,{type:"arrayBuffer"}),e);function xh(t,e,r){var i;(i=r[t])!=null&&i.includes(e)||(r[t]||(r[t]=[]),r[t].push(e))}function Cs(t,e,r){if(r!=null&&r[t]){let i=r[t].indexOf(e);i!==-1&&r[t].splice(i,1)}}var Mp=class{constructor(t,e={}){Xt(this,e),this.type=t}},xa=class extends Mp{constructor(t,e={}){super("error",Xt({error:t},e))}},s0=class{on(t,e){return this._listeners||(this._listeners={}),xh(t,e,this._listeners),{unsubscribe:()=>{this.off(t,e)}}}off(t,e){return Cs(t,e,this._listeners),Cs(t,e,this._oneTimeListeners),this}once(t,e){return e?(this._oneTimeListeners||(this._oneTimeListeners={}),xh(t,e,this._oneTimeListeners),this):new Promise(r=>this.once(t,r))}fire(t,e){var n,a,s,o,l,u;let r=typeof t=="string"?new Mp(t,e||{}):t,i=r.type;if(this.listens(i)){r.target=this;let h=(s=(a=(n=this._listeners)==null?void 0:n[i])==null?void 0:a.slice())!=null?s:[];for(let f of h)f.call(this,r);let c=(u=(l=(o=this._oneTimeListeners)==null?void 0:o[i])==null?void 0:l.slice())!=null?u:[];for(let f of c)Cs(i,f,this._oneTimeListeners),f.call(this,r);let p=this._eventedParent;p&&(Xt(r,typeof this._eventedParentData=="function"?this._eventedParentData():this._eventedParentData),p.fire(r))}else r instanceof xa&&console.error(r.error);return this}listens(t){var e,r,i,n,a;return!!((r=(e=this._listeners)==null?void 0:e[t])!=null&&r.length||(n=(i=this._oneTimeListeners)==null?void 0:i[t])!=null&&n.length||(a=this._eventedParent)!=null&&a.listens(t))}setEventedParent(t,e){return this._eventedParent=t,this._eventedParentData=e,this}},Bp={$version:8,$root:{version:{required:!0,type:"enum",values:[8]},name:{type:"string"},metadata:{type:"*"},center:{type:"array",value:"number",length:2},centerAltitude:{type:"number"},zoom:{type:"number"},bearing:{type:"number",default:0,period:360,units:"degrees"},pitch:{type:"number",default:0,units:"degrees"},roll:{type:"number",default:0,units:"degrees"},state:{type:"state",default:{}},light:{type:"light"},sky:{type:"sky"},projection:{type:"projection"},terrain:{type:"terrain"},sources:{required:!0,type:"sources"},sprite:{type:"sprite"},glyphs:{type:"string"},"font-faces":{type:"fontFaces"},transition:{type:"transition"},layers:{required:!0,type:"array",value:"layer"}},sources:{"*":{type:"source"}},source:["source_vector","source_raster","source_raster_dem","source_geojson","source_video","source_image"],source_vector:{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},encoding:{type:"enum",values:{mvt:{},mlt:{}},default:"mvt"},"*":{type:"*"}},source_raster:{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:"*"}},source_raster_dem:{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:{},custom:{}},default:"mapbox"},redFactor:{type:"number",default:1},blueFactor:{type:"number",default:1},greenFactor:{type:"number",default:1},baseShift:{type:"number",default:0},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_geojson:{type:{required:!0,type:"enum",values:{geojson:{}}},data:{required:!0,type:"*"},maxzoom:{type:"number",default:18},attribution:{type:"string"},buffer:{type:"number",default:128,maximum:512,minimum:0},filter:{type:"filter"},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"}},source_video:{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"}}},source_image:{type:{required:!0,type:"enum",values:{image:{}}},url:{type:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},layer:{id:{type:"string",required:!0},type:{type:"enum",values:{fill:{},line:{},symbol:{},circle:{},heatmap:{},"fill-extrusion":{},raster:{},hillshade:{},"color-relief":{},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"}},layout:["layout_fill","layout_line","layout_circle","layout_heatmap","layout_fill-extrusion","layout_symbol","layout_raster","layout_hillshade","layout_color-relief","layout_background"],layout_background:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible",expression:{interpolated:!1,parameters:["global-state"]},"property-type":"data-constant"}},layout_fill:{"fill-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible",expression:{interpolated:!1,parameters:["global-state"]},"property-type":"data-constant"}},layout_circle:{"circle-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible",expression:{interpolated:!1,parameters:["global-state"]},"property-type":"data-constant"}},layout_heatmap:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible",expression:{interpolated:!1,parameters:["global-state"]},"property-type":"data-constant"}},"layout_fill-extrusion":{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible",expression:{interpolated:!1,parameters:["global-state"]},"property-type":"data-constant"},"fill-extrusion-rounded-corner-distance":{type:"number",default:0,minimum:0,units:"meters","property-type":"constant"}},layout_line:{"line-cap":{type:"enum",values:{butt:{},round:{},square:{}},default:"butt",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"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","feature"]},"property-type":"data-driven"},"line-round-limit":{type:"number",default:1.05,requires:[{"line-join":"round"}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible",expression:{interpolated:!1,parameters:["global-state"]},"property-type":"data-constant"}},layout_symbol:{"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",{"!":"icon-overlap"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-overlap":{type:"enum",values:{never:{},always:{},cooperative:{}},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","feature"]},"property-type":"data-driven"},"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:"padding",default:[2],units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"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:{},"viewport-glyph":{},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-variable-anchor-offset":{type:"variableAnchorOffsetCollection",requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"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",{"!":"text-overlap"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-overlap":{type:"enum",values:{never:{},always:{},cooperative:{}},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"},"symbol-height-offset":{type:"number",default:0,units:"meters",requires:[{"symbol-placement":["point"]}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"symbol-height-anchor":{type:"enum",values:{ground:{},absolute:{}},default:"ground",requires:["symbol-height-offset"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible",expression:{interpolated:!1,parameters:["global-state"]},"property-type":"data-constant"}},layout_raster:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible",expression:{interpolated:!1,parameters:["global-state"]},"property-type":"data-constant"}},layout_hillshade:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible",expression:{interpolated:!1,parameters:["global-state"]},"property-type":"data-constant"}},"layout_color-relief":{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible",expression:{interpolated:!1,parameters:["global-state"]},"property-type":"data-constant"}},filter:{type:"boolean",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},filter_operator:{type:"enum",values:{"==":{},"!=":{},">":{},">=":{},"<":{},"<=":{},in:{},"!in":{},all:{},any:{},none:{},has:{},"!has":{}}},geometry_type:{type:"enum",values:{Point:{},LineString:{},Polygon:{}}},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:{type:"array",minimum:0,maximum:24,value:["number","color"],length:2},expression:{type:"array",value:"expression_name",minimum:1},light:{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}},sky:{"sky-color":{type:"color","property-type":"data-constant",default:"#88C6FC",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"horizon-color":{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"fog-color":{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"fog-ground-blend":{type:"number","property-type":"data-constant",default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"horizon-fog-blend":{type:"number","property-type":"data-constant",default:.8,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"sky-horizon-blend":{type:"number","property-type":"data-constant",default:.8,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"atmosphere-blend":{type:"number","property-type":"data-constant",default:.8,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0}},terrain:{source:{type:"string",required:!0},exaggeration:{type:"number",minimum:0,default:1}},projection:{type:{type:"projectionDefinition",default:"mercator","property-type":"data-constant",transition:!1,expression:{interpolated:!0,parameters:["zoom"]}}},paint:["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_symbol","paint_raster","paint_hillshade","paint_color-relief","paint_background"],paint_fill:{"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-layer-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","global-state"]},"property-type":"data-constant"},"fill-color":{type:"color",default:"#000000",transition:!0,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"}},"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,units:"meters",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{type:"number",default: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:{"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-layer-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","global-state"]},"property-type":"data-constant"},"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","feature"]},"property-type":"cross-faded-data-driven"},"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"}},paint_circle:{"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"}},paint_heatmap:{"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"}},paint_symbol:{"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"}},paint_raster:{"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"},resampling:{type:"enum",values:{linear:{},nearest:{}},default:"linear",expression:{interpolated:!1,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"}},paint_hillshade:{"hillshade-illumination-direction":{type:"numberArray",default:335,minimum:0,maximum:359,transition:!1,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-illumination-altitude":{type:"numberArray",default:45,minimum:0,maximum:90,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:"colorArray",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-highlight-color":{type:"colorArray",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"},"hillshade-method":{type:"enum",values:{standard:{},basic:{},combined:{},igor:{},multidirectional:{}},default:"standard",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},resampling:{type:"enum",values:{linear:{},nearest:{}},default:"linear",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},"paint_color-relief":{"color-relief-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"color-relief-color":{type:"color",transition:!1,expression:{interpolated:!0,parameters:["elevation"]},"property-type":"color-ramp"},resampling:{type:"enum",values:{linear:{},nearest:{}},default:"linear",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_background:{"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"}},transition:{duration:{type:"number",default:300,minimum:0,units:"milliseconds"},delay:{type:"number",default:0,minimum:0,units:"milliseconds"}},"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:{"*":{type:"string"}},interpolation:{type:"array",value:"interpolation_name",minimum:1},interpolation_name:{type:"enum",values:{linear:{syntax:{overloads:[{parameters:[],"output-type":"interpolation"}],parameters:[]}},exponential:{syntax:{overloads:[{parameters:["base"],"output-type":"interpolation"}],parameters:[{name:"base",type:"number literal"}]}},"cubic-bezier":{syntax:{overloads:[{parameters:["x1","y1","x2","y2"],"output-type":"interpolation"}],parameters:[{name:"x1",type:"number literal"},{name:"y1",type:"number literal"},{name:"x2",type:"number literal"},{name:"y2",type:"number literal"}]}}}}},D=Bp,Pp=["type","source","source-layer","minzoom","maxzoom","filter","layout"],E=class{constructor(t,e,r,i,n="error"){this.message=(t?`${t}: `:"")+r,i&&(this.identifier=i),this.severity=n,e!=null&&e.__line__&&(this.line=e.__line__)}},vn={kind:"null"},I={kind:"number"},W={kind:"string"},Q={kind:"boolean"},pe={kind:"color"},za={kind:"projectionDefinition"},mr={kind:"object"},H={kind:"value"},o0={kind:"error"},La={kind:"collator"},bn={kind:"formatted"},Va={kind:"padding"},rn={kind:"colorArray"},Oa={kind:"numberArray"},wn={kind:"resolvedImage"},Ra={kind:"variableAnchorOffsetCollection"};function Ut(t,e){return{kind:"array",itemType:t,N:e}}function mt(t){if(t.kind==="array"){let e=mt(t.itemType);return typeof t.N=="number"?`array<${e}, ${t.N}>`:t.itemType.kind==="value"?"array":`array<${e}>`}return t.kind}var l0=[vn,I,W,Q,pe,za,bn,mr,Ut(H),Va,Oa,rn,wn,Ra];function nn(t,e){if(e.kind==="error")return null;if(t.kind==="array"){if(e.kind==="array"&&(e.N===0&&e.itemType.kind==="value"||!nn(t.itemType,e.itemType))&&(typeof t.N!="number"||t.N===e.N))return null}else{if(t.kind===e.kind)return null;if(t.kind==="value"){for(let r of l0)if(!nn(r,e))return null}}return`Expected ${mt(t)} but found ${mt(e)} instead.`}function bl(t,e){return e.some(r=>r.kind===t.kind)}function gr(t,e){return e.some(r=>r==="null"?t===null:r==="array"?Array.isArray(t):r==="object"?t&&!Array.isArray(t)&&typeof t=="object":r===typeof t)}function Ye(t,e){return t.kind==="array"&&e.kind==="array"?t.itemType.kind===e.itemType.kind&&typeof t.N=="number":t.kind===e.kind}var zp=.96422,Lp=.82521,Vp=4/29,eo=6/29,Op=3*eo*eo,u0=Math.PI/180,h0=180/Math.PI;function Rp(t){return t%=360,t<0&&(t+=360),t}function $p([t,e,r,i]){t=Ms(t),e=Ms(e),r=Ms(r);let n,a,s=Bs((.2225045*t+.7168786*e+.0606169*r)/1);t===e&&e===r?n=a=s:(n=Bs((.4360747*t+.3850649*e+.1430804*r)/zp),a=Bs((.0139322*t+.0971045*e+.7141733*r)/Lp));let o=116*s-16;return[o<0?0:o,500*(n-s),200*(s-a),i]}function Ms(t){return t<=.04045?t/12.92:((t+.055)/1.055)**2.4}function Bs(t){return t>.008856451679035631?t**(1/3):t/Op+Vp}function Np([t,e,r,i]){let n=(t+16)/116,a=isNaN(e)?n:n+e/500,s=isNaN(r)?n:n-r/200;return n=1*zs(n),a=zp*zs(a),s=Lp*zs(s),[Ps(3.1338561*a-1.6168667*n-.4906146*s),Ps(-.9787684*a+1.9161415*n+.033454*s),Ps(.0719453*a-.2289914*n+1.4052427*s),i]}function Ps(t){return t=t<=.00304?12.92*t:1.055*t**(1/2.4)-.055,t<0?0:t>1?1:t}function zs(t){return t>eo?t*t*t:Op*(t-Vp)}function c0(t){let[e,r,i,n]=$p(t),a=Math.sqrt(r*r+i*i);return[Math.round(a*1e4)?Rp(Math.atan2(i,r)*h0):NaN,a,e,n]}function p0([t,e,r,i]){return t=isNaN(t)?0:t*u0,Np([r,Math.cos(t)*e,Math.sin(t)*e,i])}function f0([t,e,r,i]){t=Rp(t),e/=100,r/=100;function n(a){let s=(a+t/30)%12,o=e*Math.min(r,1-r);return r-o*Math.max(-1,Math.min(s-3,9-s,1))}return[n(0),n(8),n(4),i]}var d0=Object.hasOwn||function(t,e){return Object.prototype.hasOwnProperty.call(t,e)};function Yi(t,e){return d0(t,e)?t[e]:void 0}function y0(t){if(t=t.toLowerCase().trim(),t==="transparent")return[0,0,0,0];let e=Yi(m0,t);if(e){let[i,n,a]=e;return[i/255,n/255,a/255,1]}if(t.startsWith("#")&&/^#(?:[0-9a-f]{3,4}|[0-9a-f]{6}|[0-9a-f]{8})$/.test(t)){let i=t.length<6?1:2,n=1;return[Yn(t.slice(n,n+=i)),Yn(t.slice(n,n+=i)),Yn(t.slice(n,n+=i)),Yn(t.slice(n,n+i)||"ff")]}if(t.startsWith("rgb")){let i=t.match(/^rgba?\\(\\s*([\\de.+-]+)(%)?(?:\\s+|\\s*(,)\\s*)([\\de.+-]+)(%)?(?:\\s+|\\s*(,)\\s*)([\\de.+-]+)(%)?(?:\\s*([,\\/])\\s*([\\de.+-]+)(%)?)?\\s*\\)$/);if(i){let[n,a,s,o,l,u,h,c,p,f,d,y]=i,m=[o||" ",h||" ",f].join("");if(m===" "||m===" /"||m===",,"||m===",,,"){let g=[s,u,p].join(""),x=g==="%%%"?100:g===""?255:0;if(x){let v=[Rr(+a/x,0,1),Rr(+l/x,0,1),Rr(+c/x,0,1),d?vh(+d,y):1];if(bh(v))return v}}return}}let r=t.match(/^hsla?\\(\\s*([\\de.+-]+)(?:deg)?(?:\\s+|\\s*(,)\\s*)([\\de.+-]+)%(?:\\s+|\\s*(,)\\s*)([\\de.+-]+)%(?:\\s*([,\\/])\\s*([\\de.+-]+)(%)?)?\\s*\\)$/);if(r){let[i,n,a,s,o,l,u,h,c]=r,p=[a||" ",o||" ",u].join("");if(p===" "||p===" /"||p===",,"||p===",,,"){let f=[+n,Rr(+s,0,100),Rr(+l,0,100),h?vh(+h,c):1];if(bh(f))return f0(f)}}}function Yn(t){return parseInt(t.padEnd(2,t),16)/255}function vh(t,e){return Rr(e?t/100:t,0,1)}function Rr(t,e,r){return Math.min(Math.max(e,t),r)}function bh(t){return!t.some(Number.isNaN)}var m0={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]};function er(t,e,r){return t+r*(e-t)}function ti(t,e,r){return t.map((i,n)=>er(i,e[n],r))}function g0(t){return t==="rgb"||t==="hcl"||t==="lab"}var Bt,xt=(Bt=class{constructor(e,r,i,n=1,a=!0){this.r=e,this.g=r,this.b=i,this.a=n,a||(this.r*=n,this.g*=n,this.b*=n,n||this.overwriteGetter("rgb",[e,r,i,n]))}static parse(e){if(e instanceof Bt)return e;if(typeof e!="string")return;let r=y0(e);if(r)return new Bt(...r,!1)}get rgb(){let{r:e,g:r,b:i,a:n}=this,a=n||1/0;return this.overwriteGetter("rgb",[e/a,r/a,i/a,n])}get hcl(){return this.overwriteGetter("hcl",c0(this.rgb))}get lab(){return this.overwriteGetter("lab",$p(this.rgb))}overwriteGetter(e,r){return Object.defineProperty(this,e,{value:r}),r}toString(){let[e,r,i,n]=this.rgb;return`rgba(${[e,r,i].map(a=>Math.round(a*255)).join(",")},${n})`}static interpolate(e,r,i,n="rgb"){switch(n){case"rgb":{let[a,s,o,l]=ti(e.rgb,r.rgb,i);return new Bt(a,s,o,l,!1)}case"hcl":{let[a,s,o,l]=e.hcl,[u,h,c,p]=r.hcl,f,d;if(!isNaN(a)&&!isNaN(u)){let v=u-a;u>a&&v>180?v-=360:u180&&(v+=360),f=a+i*v}else isNaN(a)?isNaN(u)?f=NaN:(f=u,(o===1||o===0)&&(d=h)):(f=a,(c===1||c===0)&&(d=s));let[y,m,g,x]=p0([f,d!=null?d:er(s,h,i),er(o,c,i),er(l,p,i)]);return new Bt(y,m,g,x,!1)}case"lab":{let[a,s,o,l]=Np(ti(e.lab,r.lab,i));return new Bt(a,s,o,l,!1)}}}},Bt.black=new Bt(0,0,0,1),Bt.white=new Bt(1,1,1,1),Bt.transparent=new Bt(0,0,0,0),Bt.red=new Bt(1,0,0,1),Bt),x0=["bottom","center","top"],ro=class{constructor(t,e,r,i,n,a){this.text=t,this.image=e,this.scale=r,this.fontStack=i,this.textColor=n,this.verticalAlign=a}},Le=class ha{constructor(e){this.sections=e}static fromString(e){return new ha([new ro(e,null,null,null,null,null)])}isEmpty(){return this.sections.length===0||!this.sections.some(e=>e.text.length!==0||e.image&&e.image.name.length!==0)}static factory(e){return e instanceof ha?e:ha.fromString(e)}toString(){return this.sections.length===0?"":this.sections.map(e=>e.text).join("")}},Ee=class Ri{constructor(e){this.values=e.slice()}static parse(e){if(e instanceof Ri)return e;if(typeof e=="number")return new Ri([e,e,e,e]);if(Array.isArray(e)&&!(e.length<1||e.length>4)){for(let r of e)if(typeof r!="number")return;switch(e.length){case 1:e=[e[0],e[0],e[0],e[0]];break;case 2:e=[e[0],e[1],e[0],e[1]];break;case 3:e=[e[0],e[1],e[2],e[1]]}return new Ri(e)}}toString(){return JSON.stringify(this.values)}static interpolate(e,r,i){return new Ri(ti(e.values,r.values,i))}},Fe=class $i{constructor(e){this.values=e.slice()}static parse(e){if(e instanceof $i)return e;if(typeof e=="number")return new $i([e]);if(Array.isArray(e)){for(let r of e)if(typeof r!="number")return;return new $i(e)}}toString(){return JSON.stringify(this.values)}static interpolate(e,r,i){return new $i(ti(e.values,r.values,i))}},ue=class Ni{constructor(e){this.values=e.slice()}static parse(e){if(e instanceof Ni)return e;if(typeof e=="string"){let i=xt.parse(e);return i?new Ni([i]):void 0}if(!Array.isArray(e))return;let r=[];for(let i of e){if(typeof i!="string")return;let n=xt.parse(i);if(!n)return;r.push(n)}return new Ni(r)}toString(){return JSON.stringify(this.values)}static interpolate(e,r,i,n="rgb"){let a=[];if(e.values.length!=r.values.length)throw Error(`colorArray: Arrays have mismatched length (${e.values.length} vs. ${r.values.length}), cannot interpolate.`);for(let s=0;s=0&&t<=255&&typeof e=="number"&&e>=0&&e<=255&&typeof r=="number"&&r>=0&&r<=255?i===void 0||typeof i=="number"&&i>=0&&i<=1?null:`Invalid rgba value [${[t,e,r,i].join(", ")}]: \'a\' must be between 0 and 1.`:`Invalid rgba value [${(typeof i=="number"?[t,e,r,i]:[t,e,r]).join(", ")}]: \'r\', \'g\', and \'b\' must be between 0 and 255.`}function ei(t){if(t===null||typeof t=="string"||typeof t=="boolean"||typeof t=="number"||t instanceof Sr||t instanceof xt||t instanceof wl||t instanceof Le||t instanceof Ee||t instanceof Fe||t instanceof ue||t instanceof Ae||t instanceof Se)return!0;if(Array.isArray(t)){for(let e of t)if(!ei(e))return!1;return!0}if(typeof t=="object"){for(let e in t)if(!ei(t[e]))return!1;return!0}return!1}function St(t){if(t===null)return vn;if(typeof t=="string")return W;if(typeof t=="boolean")return Q;if(typeof t=="number")return I;if(t instanceof xt)return pe;if(t instanceof Sr)return za;if(t instanceof wl)return La;if(t instanceof Le)return bn;if(t instanceof Ee)return Va;if(t instanceof Fe)return Oa;if(t instanceof ue)return rn;if(t instanceof Ae)return Ra;if(t instanceof Se)return wn;if(Array.isArray(t)){let e=t.length,r;for(let i of t){let n=St(i);if(!r)r=n;else{if(r===n)continue;r=H;break}}return Ut(r||H,e)}return mr}function Wi(t){let e=typeof t;return t===null?"":e==="string"||e==="number"||e==="boolean"?String(t):t instanceof xt||t instanceof Sr||t instanceof Le||t instanceof Ee||t instanceof Fe||t instanceof ue||t instanceof Ae||t instanceof Se?t.toString():JSON.stringify(t)}var ri=class jp{constructor(e,r){this.type=e,this.value=r}static parse(e,r){if(e.length!==2)return r.error(`\'literal\' expression requires exactly one argument, but found ${e.length-1} instead.`);if(!ei(e[1]))return r.error(`invalid value of type "${typeof e[1]}"`);let i=e[1],n=St(i),a=r.expectedType;return n.kind==="array"&&n.N===0&&a&&a.kind==="array"&&(typeof a.N!="number"||a.N===0)&&(n=a),new jp(n,i)}evaluate(){return this.value}eachChild(){}outputDefined(){return!0}},b0=["Unknown","Point","LineString","Polygon"],Gp=class{constructor(){this.globals=null,this.feature=null,this.featureState=null,this.formattedSection=null,this._parseColorCache=new Map,this.availableImages=null,this.canonical=null}id(){return this.feature&&"id"in this.feature?this.feature.id:null}geometryType(){return this.feature?typeof this.feature.type=="number"?b0[this.feature.type]:this.feature.type:null}geometry(){return this.feature&&"geometry"in this.feature?this.feature.geometry:null}canonicalID(){return this.canonical}properties(){return this.feature&&this.feature.properties||{}}parseColor(t){let e=this._parseColorCache.get(t);return e||(e=xt.parse(t),this._parseColorCache.set(t,e)),e}};function $a(t,e,r){let i=t.length-1,n=0,a=i,s=0,o,l;for(;n<=a;)if(s=Math.floor((n+a)/2),o=t[s],l=t[s+1],o<=e){if(s===i||ee)a=s-1;else throw new ft("Input is not a number.",r);return 0}var Dl=class Xp{constructor(e,r,i,n){this.type=e,this.input=r,this.key=n,this.labels=[],this.outputs=[];for(let[a,s]of i)this.labels.push(a),this.outputs.push(s)}static parse(e,r){if(e.length-1<4)return r.error(`Expected at least 4 arguments, but found only ${e.length-1}.`);if((e.length-1)%2!=0)return r.error("Expected an even number of arguments.");let i=r.parse(e[1],1,I);if(!i)return null;let n=[],a=null;r.expectedType&&r.expectedType.kind!=="value"&&(a=r.expectedType);for(let s=1;s=o)return r.error(\'Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.\',u);let c=r.parse(l,h,a);if(!c)return null;a||(a=c.type),n.push([o,c])}return new Xp(a,i,n,r.key)}evaluate(e){let r=this.labels,i=this.outputs;if(r.length===1)return i[0].evaluate(e);let n=this.input.evaluate(e);if(n<=r[0])return i[0].evaluate(e);let a=r.length;return n>=r[a-1]?i[a-1].evaluate(e):i[$a(r,n,this.key)].evaluate(e)}eachChild(e){e(this.input);for(let r of this.outputs)e(r)}outputDefined(){return this.outputs.every(e=>e.outputDefined())}};function w0(t,e,r,i){let n=3*t,a=3*(r-t)-n,s=1-n-a,o=3*e,l=3*(i-e)-o,u=1-o-l;return function(h,c=1e-6){if(h<=0)return 0;if(h>=1)return 1;let p=h;for(let y=0;y<8;y++){let m=((s*p+a)*p+n)*p-h;if(Math.abs(m)m?f=p:d=p,p=(f+d)*.5}return((u*p+l)*p+o)*p}}var De=class io{constructor(e,r,i,n,a,s){this.type=e,this.operator=r,this.interpolation=i,this.input=n,this.key=s,this.labels=[],this.outputs=[];for(let[o,l]of a)this.labels.push(o),this.outputs.push(l)}static interpolationFactor(e,r,i,n){let a=0;if(e.name==="exponential")a=Ls(r,e.base,i,n);else if(e.name==="linear")a=Ls(r,1,i,n);else if(e.name==="cubic-bezier"){let s=e.controlPoints;a=w0(s[0],s[1],s[2],s[3])(Ls(r,1,i,n))}return a}static parse(e,r){let[i,n,a,...s]=e;if(!Array.isArray(n)||n.length===0)return r.error("Expected an interpolation type expression.",1);if(n[0]==="linear")n={name:"linear"};else if(n[0]==="exponential"){let u=n[1];if(typeof u!="number")return r.error("Exponential interpolation requires a numeric base.",1,1);n={name:"exponential",base:u}}else if(n[0]==="cubic-bezier"){let u=n.slice(1);if(u.length!==4||u.some(h=>typeof h!="number"||h<0||h>1))return r.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);n={name:"cubic-bezier",controlPoints:u}}else return r.error(`Unknown interpolation type ${String(n[0])}`,1,0);if(e.length-1<4)return r.error(`Expected at least 4 arguments, but found only ${e.length-1}.`);if((e.length-1)%2!=0)return r.error("Expected an even number of arguments.");if(a=r.parse(a,2,I),!a)return null;let o=[],l=null;(i==="interpolate-hcl"||i==="interpolate-lab")&&r.expectedType!=rn?l=pe:r.expectedType&&r.expectedType.kind!=="value"&&(l=r.expectedType);for(let u=0;u=h)return r.error(\'Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.\',p);let d=r.parse(c,f,l);if(!d)return null;l||(l=d.type),o.push([h,d])}return!Ye(l,I)&&!Ye(l,za)&&!Ye(l,pe)&&!Ye(l,Va)&&!Ye(l,Oa)&&!Ye(l,rn)&&!Ye(l,Ra)&&!Ye(l,Ut(I))?r.error(`Type ${mt(l)} is not interpolatable.`):new io(l,i,n,a,o,r.key)}evaluate(e){let r=this.labels,i=this.outputs;if(r.length===1)return i[0].evaluate(e);let n=this.input.evaluate(e);if(n<=r[0])return i[0].evaluate(e);let a=r.length;if(n>=r[a-1])return i[a-1].evaluate(e);let s=$a(r,n,this.key),o=r[s],l=r[s+1],u=io.interpolationFactor(this.interpolation,n,o,l),h=i[s].evaluate(e),c=i[s+1].evaluate(e);switch(this.operator){case"interpolate":switch(this.type.kind){case"number":return er(h,c,u);case"color":return xt.interpolate(h,c,u);case"padding":return Ee.interpolate(h,c,u);case"colorArray":return ue.interpolate(h,c,u);case"numberArray":return Fe.interpolate(h,c,u);case"variableAnchorOffsetCollection":return Ae.interpolate(h,c,u,this.key);case"array":return ti(h,c,u);case"projectionDefinition":return Sr.interpolate(h,c,u)}case"interpolate-hcl":switch(this.type.kind){case"color":return xt.interpolate(h,c,u,"hcl");case"colorArray":return ue.interpolate(h,c,u,"hcl")}case"interpolate-lab":switch(this.type.kind){case"color":return xt.interpolate(h,c,u,"lab");case"colorArray":return ue.interpolate(h,c,u,"lab")}}}eachChild(e){e(this.input);for(let r of this.outputs)e(r)}outputDefined(){return this.outputs.every(e=>e.outputDefined())}};function Ls(t,e,r,i){let n=i-r,a=t-r;return n===0?0:e===1?a/n:(e**+a-1)/(e**+n-1)}var br={color:xt.interpolate,number:er,padding:Ee.interpolate,numberArray:Fe.interpolate,colorArray:ue.interpolate,variableAnchorOffsetCollection:Ae.interpolate,array:ti},Yp=class Wp{constructor(e){this.type=bn,this.sections=e}static parse(e,r){if(e.length<2)return r.error("Expected at least one argument.");let i=e[1];if(!Array.isArray(i)&&typeof i=="object")return r.error("First argument must be an image or text section.");let n=[],a=!1;for(let s=1;s<=e.length-1;++s){let o=e[s];if(a&&typeof o=="object"&&!Array.isArray(o)){a=!1;let l=null;if(o["font-scale"]&&(l=r.parse(o["font-scale"],1,I),!l))return null;let u=null;if(o["text-font"]&&(u=r.parse(o["text-font"],1,Ut(W)),!u))return null;let h=null;if(o["text-color"]&&(h=r.parse(o["text-color"],1,pe),!h))return null;let c=null;if(o["vertical-align"]){if(typeof o["vertical-align"]=="string"&&!x0.includes(o["vertical-align"]))return r.error(`\'vertical-align\' must be one of: \'bottom\', \'center\', \'top\' but found \'${o["vertical-align"]}\' instead.`);if(c=r.parse(o["vertical-align"],1,W),!c)return null}let p=n[n.length-1];p.scale=l,p.font=u,p.textColor=h,p.verticalAlign=c}else{let l=r.parse(e[s],1,H);if(!l)return null;let u=l.type.kind;if(u!=="string"&&u!=="value"&&u!=="null"&&u!=="resolvedImage")return r.error("Formatted text type must be \'string\', \'value\', \'image\' or \'null\'.");a=!0,n.push({content:l,scale:null,font:null,textColor:null,verticalAlign:null})}}return new Wp(n)}evaluate(e){return new Le(this.sections.map(r=>{let i=r.content.evaluate(e);return St(i)===wn?new ro("",i,null,null,null,r.verticalAlign?r.verticalAlign.evaluate(e):null):new ro(Wi(i),null,r.scale?r.scale.evaluate(e):null,r.font?r.font.evaluate(e).join(","):null,r.textColor?r.textColor.evaluate(e):null,r.verticalAlign?r.verticalAlign.evaluate(e):null)}))}eachChild(e){for(let r of this.sections)e(r.content),r.scale&&e(r.scale),r.font&&e(r.font),r.textColor&&e(r.textColor),r.verticalAlign&&e(r.verticalAlign)}outputDefined(){return!1}};function Zp(t,e,r=0,i=t.length-1,n=D0){for(;i>r;){if(i-r>600){let l=i-r+1,u=e-r+1,h=Math.log(l),c=.5*Math.exp(2*h/3),p=.5*Math.sqrt(h*c*(l-c)/l)*(u-l/2<0?-1:1);Zp(t,e,Math.max(r,Math.floor(e-u*c/l+p)),Math.min(i,Math.floor(e+(l-u)*c/l+p)),n)}let a=t[e],s=r,o=i;for(ki(t,r,e),n(t[i],a)>0&&ki(t,r,i);s0;)o--}n(t[r],a)===0?ki(t,r,o):(o++,ki(t,o,i)),o<=e&&(r=o+1),e<=o&&(i=o-1)}}function ki(t,e,r){let i=t[e];t[e]=t[r],t[r]=i}function D0(t,e){return te)}function Na(t,e){if(t.length<=1)return[t];let r=[],i,n;for(let a of t){let s=A0(a);s!==0&&(a.area=Math.abs(s),n===void 0&&(n=s<0),n===s<0?(i&&r.push(i),i=[a]):i.push(a))}if(i&&r.push(i),e>1)for(let a=0;a2){let u=e[1];if(typeof u!="string"||!(u in Wn)||u==="object")return r.error(\'The item type argument of "array" must be one of string, number, boolean\',1);o=Wn[u],i++}else o=H;let l;if(e.length>3){if(e[2]!==null&&(typeof e[2]!="number"||e[2]<0||e[2]!==Math.floor(e[2])))return r.error(\'The length argument to "array" must be a positive integer literal\',2);l=e[2],i++}n=Ut(o,l)}else{if(!Wn[a])throw Error(`Types doesn\'t contain name = ${a}`);n=Wn[a]}let s=[];for(;ie.outputDefined())}},wh={"to-boolean":Q,"to-color":pe,"to-number":I,"to-string":W},jr=class Kp{constructor(e,r,i){this.type=e,this.args=r,this.key=i}static parse(e,r){if(e.length<2)return r.error("Expected at least one argument.");let i=e[0];if(!wh[i])throw Error(`Can\'t parse ${i} as it is not part of the known types`);if((i==="to-boolean"||i==="to-string")&&e.length!==2)return r.error("Expected one argument.");let n=wh[i],a=[];for(let s=1;s4?`Invalid rgba value ${JSON.stringify(r)}: expected an array containing either three or four numeric values.`:qp(r[0],r[1],r[2],r[3]),!i))return new xt(r[0]/255,r[1]/255,r[2]/255,r[3])}throw new ft(i||`Could not parse color from value \'${typeof r=="string"?r:JSON.stringify(r)}\'`,this.key)}case"padding":{let r;for(let i of this.args){r=i.evaluate(e);let n=Ee.parse(r);if(n)return n}throw new ft(`Could not parse padding from value \'${typeof r=="string"?r:JSON.stringify(r)}\'`,this.key)}case"numberArray":{let r;for(let i of this.args){r=i.evaluate(e);let n=Fe.parse(r);if(n)return n}throw new ft(`Could not parse numberArray from value \'${typeof r=="string"?r:JSON.stringify(r)}\'`,this.key)}case"colorArray":{let r;for(let i of this.args){r=i.evaluate(e);let n=ue.parse(r);if(n)return n}throw new ft(`Could not parse colorArray from value \'${typeof r=="string"?r:JSON.stringify(r)}\'`,this.key)}case"variableAnchorOffsetCollection":{let r;for(let i of this.args){r=i.evaluate(e);let n=Ae.parse(r);if(n)return n}throw new ft(`Could not parse variableAnchorOffsetCollection from value \'${typeof r=="string"?r:JSON.stringify(r)}\'`,this.key)}case"number":{let r=null;for(let i of this.args){if(r=i.evaluate(e),r===null)return 0;let n=Number(r);if(!isNaN(n))return n}throw new ft(`Could not convert ${JSON.stringify(r)} to number.`,this.key)}case"formatted":return Le.fromString(Wi(this.args[0].evaluate(e)));case"resolvedImage":return Se.fromString(Wi(this.args[0].evaluate(e)));case"projectionDefinition":{let r=this.args[0].evaluate(e);if(Sr.parse(r))return r;throw new ft(`Could not parse projectionDefinition from value \'${typeof r=="string"?r:JSON.stringify(r)}\'`,this.key)}default:return Wi(this.args[0].evaluate(e))}}eachChild(e){this.args.forEach(e)}outputDefined(){return this.args.every(e=>e.outputDefined())}},Jp=class Qp{constructor(e,r){this.type=r.type,this.bindings=[].concat(e),this.result=r}evaluate(e){return this.result.evaluate(e)}eachChild(e){for(let r of this.bindings)e(r[1]);e(this.result)}static parse(e,r){if(e.length<4)return r.error(`Expected at least 3 arguments, but found ${e.length-1} instead.`);let i=[];for(let a=1;a=i.length)throw new ft(`Array index out of bounds: ${r} > ${i.length-1}.`,this.key);if(r!==Math.floor(r))throw new ft(`Array index must be an integer, but found ${r} instead.`,this.key);return i[r]}eachChild(e){e(this.index),e(this.input)}outputDefined(){return!1}},E0=class nf{constructor(e,r,i){this.needle=e,this.haystack=r,this.key=i,this.type=Q}static parse(e,r){if(e.length!==3)return r.error(`Expected 2 arguments, but found ${e.length-1} instead.`);let i=r.parse(e[1],1,H),n=r.parse(e[2],2,H);return!i||!n?null:bl(i.type,[Q,W,I,vn,H])?new nf(i,n,r.key):r.error(`Expected first argument to be of type boolean, string, number or null, but found ${mt(i.type)} instead`)}evaluate(e){let r=this.needle.evaluate(e),i=this.haystack.evaluate(e);if(!i)return!1;if(!gr(r,["boolean","string","number","null"]))throw new ft(`Expected first argument to be of type boolean, string, number or null, but found ${mt(St(r))} instead.`,this.key);if(!gr(i,["string","array"]))throw new ft(`Expected second argument to be of type array or string, but found ${mt(St(i))} instead.`,this.key);return i.indexOf(r)>=0}eachChild(e){e(this.needle),e(this.haystack)}outputDefined(){return!0}},F0=class no{constructor(e,r,i,n){this.needle=e,this.haystack=r,this.key=i,this.fromIndex=n,this.type=I}static parse(e,r){if(e.length<=2||e.length>=5)return r.error(`Expected 2 or 3 arguments, but found ${e.length-1} instead.`);let i=r.parse(e[1],1,H),n=r.parse(e[2],2,H);if(!i||!n)return null;if(!bl(i.type,[Q,W,I,vn,H]))return r.error(`Expected first argument to be of type boolean, string, number or null, but found ${mt(i.type)} instead`);if(e.length===4){let a=r.parse(e[3],3,I);return a?new no(i,n,r.key,a):null}return new no(i,n,r.key)}evaluate(e){let r=this.needle.evaluate(e),i=this.haystack.evaluate(e);if(!gr(r,["boolean","string","number","null"]))throw new ft(`Expected first argument to be of type boolean, string, number or null, but found ${mt(St(r))} instead.`,this.key);let n;if(this.fromIndex&&(n=this.fromIndex.evaluate(e)),gr(i,["string"])){let a=i.indexOf(r,n);return a===-1?-1:[...i.slice(0,a)].length}if(gr(i,["array"]))return i.indexOf(r,n);throw new ft(`Expected second argument to be of type array or string, but found ${mt(St(i))} instead.`,this.key)}eachChild(e){e(this.needle),e(this.haystack),this.fromIndex&&e(this.fromIndex)}outputDefined(){return!1}},T0=class af{constructor(e,r,i,n,a,s){this.inputType=e,this.type=r,this.input=i,this.cases=n,this.outputs=a,this.otherwise=s}static parse(e,r){if(e.length<5)return r.error(`Expected at least 4 arguments, but found only ${e.length-1}.`);if(e.length%2!=1)return r.error("Expected an even number of arguments.");let i,n;r.expectedType&&r.expectedType.kind!=="value"&&(n=r.expectedType);let a={},s=[];for(let u=2;u2**53-1)return p.error(`Branch labels must be integers no larger than ${2**53-1}.`);if(typeof d=="number"&&Math.floor(d)!==d)return p.error("Numeric branch labels must be integer values.");if(!i)i=St(d);else if(p.checkSubtype(i,St(d)))return null;if(a[String(d)]!==void 0)return p.error("Branch labels must be unique.");a[String(d)]=s.length}let f=r.parse(c,u,n);if(!f)return null;n||(n=f.type),s.push(f)}let o=r.parse(e[1],1,H);if(!o)return null;let l=r.parse(e[e.length-1],e.length-1,n);return!l||o.type.kind!=="value"&&r.concat(1).checkSubtype(i,o.type)?null:new af(i,n,o,a,s,l)}evaluate(e){let r=this.input.evaluate(e);return(St(r)===this.inputType&&this.outputs[this.cases[r]]||this.otherwise).evaluate(e)}eachChild(e){e(this.input),this.outputs.forEach(e),e(this.otherwise)}outputDefined(){return this.outputs.every(e=>e.outputDefined())&&this.otherwise.outputDefined()}},k0=class sf{constructor(e,r,i){this.type=e,this.branches=r,this.otherwise=i}static parse(e,r){if(e.length<4)return r.error(`Expected at least 3 arguments, but found only ${e.length-1}.`);if(e.length%2!=0)return r.error("Expected an odd number of arguments.");let i;r.expectedType&&r.expectedType.kind!=="value"&&(i=r.expectedType);let n=[];for(let s=1;sr.outputDefined())&&this.otherwise.outputDefined()}},I0=class ao{constructor(e,r,i,n,a){this.type=e,this.input=r,this.beginIndex=i,this.key=n,this.endIndex=a}static parse(e,r){if(e.length<=2||e.length>=5)return r.error(`Expected 2 or 3 arguments, but found ${e.length-1} instead.`);let i=r.parse(e[1],1,H),n=r.parse(e[2],2,I);if(!i||!n)return null;if(!bl(i.type,[Ut(H),W,H]))return r.error(`Expected first argument to be of type array or string, but found ${mt(i.type)} instead`);if(e.length===4){let a=r.parse(e[3],3,I);return a?new ao(i.type,i,n,r.key,a):null}return new ao(i.type,i,n,r.key)}evaluate(e){let r=this.input.evaluate(e),i=this.beginIndex.evaluate(e),n;if(this.endIndex&&(n=this.endIndex.evaluate(e)),gr(r,["string"]))return[...r].slice(i,n).join("");if(gr(r,["array"]))return r.slice(i,n);throw new ft(`Expected first argument to be of type array or string, but found ${mt(St(r))} instead.`,this.key)}eachChild(e){e(this.input),e(this.beginIndex),this.endIndex&&e(this.endIndex)}outputDefined(){return!1}},of=class so{constructor(e,r){this.type=e,this.args=r}static parse(e,r){if(e.length<2)return r.error("Expected at least one argument.");let i=null,n=r.expectedType;n&&n.kind!=="value"&&(i=n);let a=[];for(let s of e.slice(1)){let o=r.parse(s,1+a.length,i,void 0,{typeAnnotation:"omit"});if(!o)return null;i||(i=o.type),a.push(o)}if(!i)throw Error("No output type");return n&&a.some(s=>nn(n,s.type))?new so(H,a):new so(i,a)}evaluate(e){let r=null,i=0,n;for(let a of this.args)if(i++,r=a.evaluate(e),r&&r instanceof Se&&!r.available&&(n||(n=r.name),r=null,i===this.args.length&&(r=n)),r!==null)break;return r}eachChild(e){this.args.forEach(e)}outputDefined(){return this.args.every(e=>e.outputDefined())}};function Dh(t,e){return t==="=="||t==="!="?e.kind==="boolean"||e.kind==="string"||e.kind==="number"||e.kind==="null"||e.kind==="value":e.kind==="string"||e.kind==="number"||e.kind==="value"}function C0(t,e,r){return e===r}function M0(t,e,r){return e!==r}function B0(t,e,r){return er}function z0(t,e,r){return e<=r}function L0(t,e,r){return e>=r}function lf(t,e,r,i){return i.compare(e,r)===0}function V0(t,e,r,i){return!lf(t,e,r,i)}function O0(t,e,r,i){return i.compare(e,r)<0}function R0(t,e,r,i){return i.compare(e,r)>0}function $0(t,e,r,i){return i.compare(e,r)<=0}function N0(t,e,r,i){return i.compare(e,r)>=0}function li(t,e,r){let i=t!=="=="&&t!=="!=";return class uf{constructor(a,s,o,l){this.lhs=a,this.rhs=s,this.key=o,this.collator=l,this.type=Q,this.hasUntypedArgument=a.type.kind==="value"||s.type.kind==="value"}static parse(a,s){if(a.length!==3&&a.length!==4)return s.error("Expected two or three arguments.");let o=a[0],l=s.parse(a[1],1,H);if(!l)return null;if(!Dh(o,l.type))return s.concat(1).error(`"${o}" comparisons are not supported for type \'${mt(l.type)}\'.`);let u=s.parse(a[2],2,H);if(!u)return null;if(!Dh(o,u.type))return s.concat(2).error(`"${o}" comparisons are not supported for type \'${mt(u.type)}\'.`);if(l.type.kind!==u.type.kind&&l.type.kind!=="value"&&u.type.kind!=="value")return s.error(`Cannot compare types \'${mt(l.type)}\' and \'${mt(u.type)}\'.`);i&&(l.type.kind==="value"&&u.type.kind!=="value"?l=new Be(u.type,[l],s.key):l.type.kind!=="value"&&u.type.kind==="value"&&(u=new Be(l.type,[u],s.key)));let h=null;if(a.length===4){if(l.type.kind!=="string"&&u.type.kind!=="string"&&l.type.kind!=="value"&&u.type.kind!=="value")return s.error("Cannot use collator to compare non-string types.");if(h=s.parse(a[3],3,La),!h)return null}return new uf(l,u,s.key,h)}evaluate(a){let s=this.lhs.evaluate(a),o=this.rhs.evaluate(a);if(i&&this.hasUntypedArgument){let l=St(s),u=St(o);if(l.kind!==u.kind||l.kind!=="string"&&l.kind!=="number")throw new ft(`Expected arguments for "${t}" to be (string, string) or (number, number), but found (${l.kind}, ${u.kind}) instead.`,this.key)}if(this.collator&&!i&&this.hasUntypedArgument){let l=St(s),u=St(o);if(l.kind!=="string"||u.kind!=="string")return e(a,s,o)}return this.collator?r(a,s,o,this.collator.evaluate(a)):e(a,s,o)}eachChild(a){a(this.lhs),a(this.rhs),this.collator&&a(this.collator)}outputDefined(){return!0}}}var U0=li("==",C0,lf),q0=li("!=",M0,V0),j0=li("<",B0,O0),G0=li(">",P0,R0),X0=li("<=",z0,$0),Y0=li(">=",L0,N0),hf=class cf{constructor(e,r,i){this.type=La,this.locale=i,this.caseSensitive=e,this.diacriticSensitive=r}static parse(e,r){if(e.length!==2)return r.error("Expected one argument.");let i=e[1];if(typeof i!="object"||Array.isArray(i))return r.error("Collator options argument must be an object.");let n=r.parse(i["case-sensitive"]!==void 0&&i["case-sensitive"],1,Q);if(!n)return null;let a=r.parse(i["diacritic-sensitive"]!==void 0&&i["diacritic-sensitive"],1,Q);if(!a)return null;let s=null;return i.locale&&(s=r.parse(i.locale,1,W),!s)?null:new cf(n,a,s)}evaluate(e){return new wl(this.caseSensitive.evaluate(e),this.diacriticSensitive.evaluate(e),this.locale?this.locale.evaluate(e):null)}eachChild(e){e(this.caseSensitive),e(this.diacriticSensitive),this.locale&&e(this.locale)}outputDefined(){return!1}},W0=class pf{constructor(e,r,i,n,a,s){this.type=W,this.number=e,this.locale=r,this.currency=i,this.unit=n,this.minFractionDigits=a,this.maxFractionDigits=s}static parse(e,r){if(e.length!==3)return r.error("Expected two arguments.");let i=r.parse(e[1],1,I);if(!i)return null;let n=e[2];if(typeof n!="object"||Array.isArray(n))return r.error("NumberFormat options argument must be an object.");let a=null;if(n.locale&&(a=r.parse(n.locale,1,W),!a))return null;let s=null;if(n.currency&&(s=r.parse(n.currency,1,W),!s))return null;let o=null;if(n.unit&&(o=r.parse(n.unit,1,W),!o))return null;if(s&&o)return r.error("NumberFormat options `currency` and `unit` are mutually exclusive");let l=null;if(n["min-fraction-digits"]&&(l=r.parse(n["min-fraction-digits"],1,I),!l))return null;let u=null;return n["max-fraction-digits"]&&(u=r.parse(n["max-fraction-digits"],1,I),!u)?null:new pf(i,a,s,o,l,u)}evaluate(e){return new Intl.NumberFormat(this.locale?this.locale.evaluate(e):[],{style:this.currency?"currency":this.unit?"unit":"decimal",currency:this.currency?this.currency.evaluate(e):void 0,unit:this.unit?this.unit.evaluate(e):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(e):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(e):void 0}).format(this.number.evaluate(e))}eachChild(e){e(this.number),this.locale&&e(this.locale),this.currency&&e(this.currency),this.unit&&e(this.unit),this.minFractionDigits&&e(this.minFractionDigits),this.maxFractionDigits&&e(this.maxFractionDigits)}outputDefined(){return!1}},Z0=class ff{constructor(e){this.type=wn,this.input=e}static parse(e,r){if(e.length!==2)return r.error("Expected two arguments.");let i=r.parse(e[1],1,W);return i?new ff(i):r.error("No image name provided.")}evaluate(e){let r=this.input.evaluate(e),i=Se.fromString(r);return i&&e.availableImages&&(i.available=e.availableImages.indexOf(r)>-1),i}eachChild(e){e(this.input)}outputDefined(){return!1}},H0=class df{constructor(e,r){this.input=e,this.key=r,this.type=I}static parse(e,r){if(e.length!==2)return r.error(`Expected 1 argument, but found ${e.length-1} instead.`);let i=r.parse(e[1],1);return i?i.type.kind!=="array"&&i.type.kind!=="string"&&i.type.kind!=="value"?r.error(`Expected argument of type string or array, but found ${mt(i.type)} instead.`):new df(i,r.key):null}evaluate(e){let r=this.input.evaluate(e);if(typeof r=="string")return[...r].length;if(Array.isArray(r))return r.length;throw new ft(`Expected value to be of type string or array, but found ${mt(St(r))} instead.`,this.key)}eachChild(e){e(this.input)}outputDefined(){return!1}},_e=8192;function K0(t,e){let r=J0(t[0]),i=tm(t[1]),n=2**e.z;return[Math.round(r*n*_e),Math.round(i*n*_e)]}function _l(t,e){let r=2**e.z,i=(t[0]/_e+e.x)/r,n=(t[1]/_e+e.y)/r;return[Q0(i),em(n)]}function J0(t){return(180+t)/360}function Q0(t){return t*360-180}function tm(t){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+t*Math.PI/360)))/360}function em(t){return 360/Math.PI*Math.atan(Math.exp((180-t*360)*Math.PI/180))-90}function Dn(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[2]=Math.max(t[2],e[0]),t[3]=Math.max(t[3],e[1])}function an(t,e){return!(t[0]<=e[0]||t[2]>=e[2]||t[1]<=e[1]||t[3]>=e[3])}function rm(t,e,r){return e[1]>t[1]!=r[1]>t[1]&&t[0]<(r[0]-e[0])*(t[1]-e[1])/(r[1]-e[1])+e[0]}function im(t,e,r){let i=t[0]-e[0],n=t[1]-e[1],a=t[0]-r[0],s=t[1]-r[1];return i*s-a*n===0&&i*a<=0&&n*s<=0}function Ua(t,e,r,i){let n=[e[0]-t[0],e[1]-t[1]];return om([i[0]-r[0],i[1]-r[1]],n)!==0&&!!(_h(t,e,r,i)&&_h(r,i,t,e))}function nm(t,e,r){for(let i of r)for(let n=0;n0&&c<0||h<0&&c>0}function Al(t,e,r){let i=[];for(let n=0;nr[2]){let n=i*.5,a=t[0]-r[0]>n?-i:r[0]-t[0]>n?i:0;a===0&&(a=t[0]-r[2]>n?-i:r[2]-t[0]>n?i:0),t[0]+=a}Dn(e,t)}function lm(t){t[0]=t[1]=1/0,t[2]=t[3]=-1/0}function Ah(t,e,r,i){let n=2**i.z*_e,a=[i.x*_e,i.y*_e],s=[];for(let o of t)for(let l of o){let u=[l.x+a[0],l.y+a[1]];gf(u,e,r,n),s.push(u)}return s}function Sh(t,e,r,i){let n=2**i.z*_e,a=[i.x*_e,i.y*_e],s=[];for(let o of t){let l=[];for(let u of o){let h=[u.x+a[0],u.y+a[1]];Dn(e,h),l.push(h)}s.push(l)}if(e[2]-e[0]<=n/2){lm(e);for(let o of s)for(let l of o)gf(l,e,r,n)}return s}function um(t,e){let r=[1/0,1/0,-1/0,-1/0],i=[1/0,1/0,-1/0,-1/0],n=t.canonicalID();if(e.type==="Polygon"){let a=Al(e.coordinates,i,n),s=Ah(t.geometry(),r,i,n);if(!an(r,i))return!1;for(let o of s)if(!ui(o,a))return!1}if(e.type==="MultiPolygon"){let a=mf(e.coordinates,i,n),s=Ah(t.geometry(),r,i,n);if(!an(r,i))return!1;for(let o of s)if(!am(o,a))return!1}return!0}function hm(t,e){let r=[1/0,1/0,-1/0,-1/0],i=[1/0,1/0,-1/0,-1/0],n=t.canonicalID();if(e.type==="Polygon"){let a=Al(e.coordinates,i,n),s=Sh(t.geometry(),r,i,n);if(!an(r,i))return!1;for(let o of s)if(!yf(o,a))return!1}if(e.type==="MultiPolygon"){let a=mf(e.coordinates,i,n),s=Sh(t.geometry(),r,i,n);if(!an(r,i))return!1;for(let o of s)if(!sm(o,a))return!1}return!0}var Sl=class pa{constructor(e,r){this.type=Q,this.geojson=e,this.geometries=r}static parse(e,r){if(e.length!==2)return r.error(`\'within\' expression requires exactly one argument, but found ${e.length-1} instead.`);if(ei(e[1])){let i=e[1];if(i.type==="FeatureCollection"){let n=[];for(let a of i.features){let{type:s,coordinates:o}=a.geometry;s==="Polygon"&&n.push(o),s==="MultiPolygon"&&n.push(...o)}if(n.length)return new pa(i,{type:"MultiPolygon",coordinates:n})}else if(i.type==="Feature"){let n=i.geometry.type;if(n==="Polygon"||n==="MultiPolygon")return new pa(i,i.geometry)}else if(i.type==="Polygon"||i.type==="MultiPolygon")return new pa(i,i)}return r.error("\'within\' expression requires valid geojson object that contains polygon geometry type.")}evaluate(e){if(e.geometry()!=null&&e.canonicalID()!=null){if(e.geometryType()==="Point")return um(e,this.geometries);if(e.geometryType()==="LineString")return hm(e,this.geometries)}return!1}eachChild(){}outputDefined(){return!0}},xf=class{constructor(t=[],e=(r,i)=>ri)){if(this.data=t,this.length=this.data.length,this.compare=e,this.length>0)for(let r=(this.length>>1)-1;r>=0;r--)this._down(r)}push(t){this.data.push(t),this._up(this.length++)}pop(){if(this.length===0)return;let t=this.data[0],e=this.data.pop();return--this.length>0&&(this.data[0]=e,this._down(0)),t}peek(){return this.data[0]}_up(t){let{data:e,compare:r}=this,i=e[t];for(;t>0;){let n=t-1>>1,a=e[n];if(r(i,a)>=0)break;e[t]=a,t=n}e[t]=i}_down(t){let{data:e,compare:r}=this,i=this.length>>1,n=e[t];for(;t=0)break;e[t]=e[a],t=a}e[t]=n}},Eh=Math.PI/180,El=class{constructor(t){let e=Eh*6378.137*1e3,r=Math.cos(t*Eh),i=1/(1-.0066943799901413165*(1-r*r)),n=Math.sqrt(i);this.kx=e*n*r,this.ky=e*n*i*.9933056200098587}distance(t,e){let r=this.wrap(t[0]-e[0])*this.kx,i=(t[1]-e[1])*this.ky;return Math.sqrt(r*r+i*i)}pointOnLine(t,e){let r=1/0,i,n,a,s;for(let o=0;o1?(l=t[o+1][0],u=t[o+1][1]):p>0&&(l+=h/this.kx*p,u+=c/this.ky*p)),h=this.wrap(e[0]-l)*this.kx,c=(e[1]-u)*this.ky;let f=h*h+c*c;f180;)t-=360;return t}};function vf(t,e){return e[0]-t[0]}function va(t){return t[1]-t[0]+1}function Ve(t,e){return t[1]>=t[0]&&t[1]t[1])return[null,null];let r=va(t);if(e){if(r===2)return[t,null];let n=Math.floor(r/2);return[[t[0],t[0]+n],[t[0]+n,t[1]]]}if(r===1)return[t,null];let i=Math.floor(r/2)-1;return[[t[0],t[0]+i],[t[0]+i+1,t[1]]]}function lo(t,e){if(!Ve(e,t.length))return[1/0,1/0,-1/0,-1/0];let r=[1/0,1/0,-1/0,-1/0];for(let i=e[0];i<=e[1];++i)Dn(r,t[i]);return r}function uo(t){let e=[1/0,1/0,-1/0,-1/0];for(let r of t)for(let i of r)Dn(e,i);return e}function Fh(t){return t[0]!==-1/0&&t[1]!==-1/0&&t[2]!==1/0&&t[3]!==1/0}function Fl(t,e,r){if(!Fh(t)||!Fh(e))return NaN;let i=0,n=0;return t[2]e[2]&&(i=t[0]-e[2]),t[1]>e[3]&&(n=t[1]-e[3]),t[3]=i)return i;if(an(n,a)){if(Th(t,e))return 0}else if(Th(e,t))return 0;let s=1/0;for(let o of t)for(let l=0,u=o.length,h=u-1;l0;){let l=s.pop();if(l[0]>=a)continue;let u=l[1],h=e?50:100;if(va(u)<=h){if(!Ve(u,t.length))return NaN;if(e){let c=dm(t,u,r,i);if(isNaN(c)||c===0)return c;a=Math.min(a,c)}else for(let c=u[0];c<=u[1];++c){let p=fm(t[c],r,i);if(a=Math.min(a,p),a===0)return 0}}else{let c=oo(u,e);kh(s,a,i,t,o,c[0]),kh(s,a,i,t,o,c[1])}}return a}function wa(t,e,r,i,n,a=1/0){let s=Math.min(a,n.distance(t[0],r[0]));if(s===0)return s;let o=new xf([[0,[0,t.length-1],[0,r.length-1]]],vf);for(;o.length>0;){let l=o.pop();if(l[0]>=s)continue;let u=l[1],h=l[2],c=e?50:100,p=i?50:100;if(va(u)<=c&&va(h)<=p){if(!Ve(u,t.length)&&Ve(h,r.length))return NaN;let f;if(e&&i)f=cm(t,u,r,h,n),s=Math.min(s,f);else if(e&&!i){let d=t.slice(u[0],u[1]+1);for(let y=h[0];y<=h[1];++y)if(f=dr(r[y],d,n),s=Math.min(s,f),s===0)return s}else if(!e&&i){let d=r.slice(h[0],h[1]+1);for(let y=u[0];y<=u[1];++y)if(f=dr(t[y],d,n),s=Math.min(s,f),s===0)return s}else f=pm(t,u,r,h,n),s=Math.min(s,f)}else{let f=oo(u,e),d=oo(h,i);Zn(o,s,n,t,r,f[0],d[0]),Zn(o,s,n,t,r,f[0],d[1]),Zn(o,s,n,t,r,f[1],d[0]),Zn(o,s,n,t,r,f[1],d[1])}}return s}function mm(t,e){let r=t.geometry(),i=r.flat().map(s=>_l([s.x,s.y],t.canonical));if(r.length===0)return NaN;let n=new El(i[0][1]),a=1/0;for(let s of e){switch(s.type){case"Point":a=Math.min(a,wa(i,!1,[s.coordinates],!1,n,a));break;case"LineString":a=Math.min(a,wa(i,!1,s.coordinates,!0,n,a));break;case"Polygon":a=Math.min(a,ba(i,!1,s.coordinates,n,a))}if(a===0)return a}return a}function gm(t,e){let r=t.geometry(),i=r.flat().map(s=>_l([s.x,s.y],t.canonical));if(r.length===0)return NaN;let n=new El(i[0][1]),a=1/0;for(let s of e){switch(s.type){case"Point":a=Math.min(a,wa(i,!0,[s.coordinates],!1,n,a));break;case"LineString":a=Math.min(a,wa(i,!0,s.coordinates,!0,n,a));break;case"Polygon":a=Math.min(a,ba(i,!0,s.coordinates,n,a))}if(a===0)return a}return a}function xm(t,e){let r=t.geometry();if(r.length===0||r[0].length===0)return NaN;let i=Na(r,0).map(s=>s.map(o=>o.map(l=>_l([l.x,l.y],t.canonical)))),n=new El(i[0][0][0][1]),a=1/0;for(let s of e)for(let o of i){switch(s.type){case"Point":a=Math.min(a,ba([s.coordinates],!1,o,n,a));break;case"LineString":a=Math.min(a,ba(s.coordinates,!0,o,n,a));break;case"Polygon":a=Math.min(a,ym(o,s.coordinates,n,a))}if(a===0)return a}return a}function Vs(t){return t.type==="MultiPolygon"?t.coordinates.map(e=>({type:"Polygon",coordinates:e})):t.type==="MultiLineString"?t.coordinates.map(e=>({type:"LineString",coordinates:e})):t.type==="MultiPoint"?t.coordinates.map(e=>({type:"Point",coordinates:e})):[t]}var kl=class fa{constructor(e,r){this.type=I,this.geojson=e,this.geometries=r}static parse(e,r){if(e.length!==2)return r.error(`\'distance\' expression requires exactly one argument, but found ${e.length-1} instead.`);if(ei(e[1])){let i=e[1];if(i.type==="FeatureCollection")return new fa(i,i.features.map(n=>Vs(n.geometry)).flat());if(i.type==="Feature")return new fa(i,Vs(i.geometry));if("type"in i&&"coordinates"in i)return new fa(i,Vs(i))}return r.error("\'distance\' expression requires valid geojson object that contains polygon geometry type.")}evaluate(e){if(e.geometry()!=null&&e.canonicalID()!=null){if(e.geometryType()==="Point")return mm(e,this.geometries);if(e.geometryType()==="LineString")return gm(e,this.geometries);if(e.geometryType()==="Polygon")return xm(e,this.geometries)}return NaN}eachChild(){}outputDefined(){return!0}},vm=class bf{constructor(e){let r=null;for(let i of e)if(!r)r=i.type;else{if(r===i.type)continue;r=H;break}this.type=Ut(r!=null?r:H,e.length),this.arr=e}static parse(e,r){if(e.length!==2)return r.error(`\'semiliteral\' expression requires exactly one argument, but found ${e.length-1} instead.`);if(!ei(e[1]))return r.error(`invalid value of type "${typeof e[1]}"`);let i=e[1],n=St(i);if(n.kind==="array"){let a=i,s=r.concat(1),o=[];for(let l=0;lr.evaluate(e))}eachChild(e){this.arr.forEach(e)}outputDefined(){return this.arr.every(e=>e.outputDefined())}},Il=class wf{constructor(e){this.key=e,this.type=H}static parse(e,r){if(e.length!==2)return r.error(`Expected 1 argument, but found ${e.length-1} instead.`);let i=e[1];return i==null?r.error("Global state property must be defined."):typeof i=="string"?new wf(i):r.error(`Global state property must be string, but found ${typeof e[1]} instead.`)}evaluate(e){var i,n;let r=(i=e.globals)==null?void 0:i.globalState;return!r||Object.keys(r).length===0?null:(n=Yi(r,this.key))!=null?n:null}eachChild(){}outputDefined(){return!1}},Yr={"==":U0,"!=":q0,">":G0,"<":j0,">=":Y0,"<=":X0,array:Be,at:S0,boolean:Be,case:k0,coalesce:of,collator:hf,format:Yp,image:Z0,in:E0,"index-of":F0,interpolate:De,"interpolate-hcl":De,"interpolate-lab":De,length:H0,let:Jp,literal:ri,match:T0,number:Be,"number-format":W0,object:Be,semiliteral:vm,slice:I0,step:Dl,string:Be,"to-boolean":jr,"to-color":jr,"to-number":jr,"to-string":jr,var:tf,within:Sl,distance:kl,"global-state":Il},ve=class extends Error{constructor(t,e){super(e),this.message=e,this.key=t}},bm=class Df{constructor(e,r=[]){this.parent=e,this.bindings={};for(let[i,n]of r)this.bindings[i]=n}concat(e){return new Df(this,e)}get(e){if(this.bindings[e])return this.bindings[e];if(this.parent)return this.parent.get(e);throw Error(`${e} not found in scope.`)}has(e){return this.bindings[e]?!0:this.parent?this.parent.has(e):!1}},_f=class Af{constructor(e,r,i=[],n,a=new bm,s=[]){this.registry=e,this.path=i,this.key=i.map(o=>`[${o}]`).join(""),this.scope=a,this.errors=s,this.expectedType=n,this._isConstant=r}parse(e,r,i,n,a={}){return r==null?this._parse(e,a):this.concat(r,i,n)._parse(e,a)}_parse(e,r){(e===null||typeof e=="string"||typeof e=="boolean"||typeof e=="number")&&(e=["literal",e]);let i=this.key;function n(a,s,o){return o==="assert"?new Be(s,[a],i):o==="coerce"?new jr(s,[a],i):a}if(Array.isArray(e)){if(e.length===0)return this.error(\'Expected an array with at least one element. If you wanted a literal array, use ["literal", []].\');let a=e[0];if(typeof a!="string")return this.error(`Expression name must be a string, but found ${typeof a} instead. If you wanted a literal array, use ["literal", [...]].`,0),null;let s=this.registry[a];if(s){let o=s.parse(e,this);if(!o)return null;if(this.expectedType){let l=this.expectedType,u=o.type;if((l.kind==="string"||l.kind==="number"||l.kind==="boolean"||l.kind==="object"||l.kind==="array")&&u.kind==="value")o=n(o,l,r.typeAnnotation||"assert");else if(l.kind==="projectionDefinition"&&["string","array","value"].includes(u.kind)||["color","formatted","resolvedImage"].includes(l.kind)&&["value","string"].includes(u.kind)||["padding","numberArray"].includes(l.kind)&&["value","number","array"].includes(u.kind)||l.kind==="colorArray"&&["value","string","array"].includes(u.kind)||l.kind==="variableAnchorOffsetCollection"&&["value","array"].includes(u.kind))o=n(o,l,r.typeAnnotation||"coerce");else if(this.checkSubtype(l,u))return null}if(!(o instanceof ri)&&o.type.kind!=="resolvedImage"&&this._isConstant(o)){let l=new Gp;try{o=new ri(o.type,o.evaluate(l))}catch(u){return this.error(u.message),null}}return o}return this.error(`Unknown expression "${a}". If you wanted a literal array, use ["literal", [...]].`,0)}return e===void 0?this.error("\'undefined\' value invalid. Use null instead."):typeof e=="object"?this.error(\'Bare objects invalid. Use ["literal", {...}] instead.\'):this.error(`Expected an array, but found ${typeof e} instead.`)}concat(e,r,i){let n=typeof e=="number"?this.path.concat(e):this.path,a=i?this.scope.concat(i):this.scope;return new Af(this.registry,this._isConstant,n,r||null,a,this.errors)}error(e,...r){let i=`${this.key}${r.map(n=>`[${n}]`).join("")}`;this.errors.push(new ve(i,e))}checkSubtype(e,r){let i=nn(e,r);return i&&this.error(i),i}},Er=class Ui{constructor(e,r,i,n,a){this.name=e,this.type=r,this._evaluate=i,this.args=n,this.key=a}evaluate(e){return this._evaluate(e,this.args,this.key)}eachChild(e){this.args.forEach(e)}outputDefined(){return!1}static parse(e,r){let i=e[0],n=Ui.definitions[i];if(!n)return r.error(`Unknown expression "${i}". If you wanted a literal array, use ["literal", [...]].`,0);let a=Array.isArray(n)?n[0]:n.type,s=Array.isArray(n)?[[n[1],n[2]]]:n.overloads,o=s.filter(([u])=>!Array.isArray(u)||u.length===e.length-1),l=null;for(let[u,h]of o){l=new _f(r.registry,Da,r.path,null,r.scope);let c=[],p=!1;for(let f=1;fDm(c)).join(" | "),h=[];for(let c=1;c>1;if(e[n]===t)return!0;e[n]>t?i=n-1:r=n+1}return!1}function hr(t){return{type:t}}Er.register(Yr,{error:[o0,[W],(t,[e],r)=>{throw new ft(e.evaluate(t),r)}],typeof:[W,[H],(t,[e])=>mt(St(e.evaluate(t)))],"to-rgba":[Ut(I,4),[pe],(t,[e])=>{let[r,i,n,a]=e.evaluate(t).rgb;return[r*255,i*255,n*255,a]}],rgb:[pe,[I,I,I],Ih],rgba:[pe,[I,I,I,I],Ih],has:{type:Q,overloads:[[[W],(t,[e])=>Ch(e.evaluate(t),t.properties())],[[W,mr],(t,[e,r])=>Ch(e.evaluate(t),r.evaluate(t))]]},get:{type:H,overloads:[[[W],(t,[e])=>Os(e.evaluate(t),t.properties())],[[W,mr],(t,[e,r])=>Os(e.evaluate(t),r.evaluate(t))]]},"feature-state":[H,[W],(t,[e])=>Os(e.evaluate(t),t.featureState||{})],properties:[mr,[],t=>t.properties()],"geometry-type":[W,[],t=>t.geometryType()],id:[H,[],t=>t.id()],zoom:[I,[],t=>t.globals.zoom],"heatmap-density":[I,[],t=>t.globals.heatmapDensity||0],elevation:[I,[],t=>t.globals.elevation||0],"line-progress":[I,[],t=>t.globals.lineProgress||0],accumulated:[H,[],t=>t.globals.accumulated===void 0?null:t.globals.accumulated],"+":[I,hr(I),(t,e)=>{let r=0;for(let i of e)r+=i.evaluate(t);return r}],"*":[I,hr(I),(t,e)=>{let r=1;for(let i of e)r*=i.evaluate(t);return r}],"-":{type:I,overloads:[[[I,I],(t,[e,r])=>e.evaluate(t)-r.evaluate(t)],[[I],(t,[e])=>-e.evaluate(t)]]},"/":[I,[I,I],(t,[e,r])=>e.evaluate(t)/r.evaluate(t)],"%":[I,[I,I],(t,[e,r])=>e.evaluate(t)%r.evaluate(t)],ln2:[I,[],()=>Math.LN2],pi:[I,[],()=>Math.PI],e:[I,[],()=>Math.E],"^":[I,[I,I],(t,[e,r])=>e.evaluate(t)**+r.evaluate(t)],sqrt:[I,[I],(t,[e])=>Math.sqrt(e.evaluate(t))],log10:[I,[I],(t,[e])=>Math.log(e.evaluate(t))/Math.LN10],ln:[I,[I],(t,[e])=>Math.log(e.evaluate(t))],log2:[I,[I],(t,[e])=>Math.log(e.evaluate(t))/Math.LN2],sin:[I,[I],(t,[e])=>Math.sin(e.evaluate(t))],cos:[I,[I],(t,[e])=>Math.cos(e.evaluate(t))],tan:[I,[I],(t,[e])=>Math.tan(e.evaluate(t))],asin:[I,[I],(t,[e])=>Math.asin(e.evaluate(t))],acos:[I,[I],(t,[e])=>Math.acos(e.evaluate(t))],atan:[I,[I],(t,[e])=>Math.atan(e.evaluate(t))],min:[I,hr(I),(t,e)=>Math.min(...e.map(r=>r.evaluate(t)))],max:[I,hr(I),(t,e)=>Math.max(...e.map(r=>r.evaluate(t)))],abs:[I,[I],(t,[e])=>Math.abs(e.evaluate(t))],round:[I,[I],(t,[e])=>{let r=e.evaluate(t);return r<0?-Math.round(-r):Math.round(r)}],floor:[I,[I],(t,[e])=>Math.floor(e.evaluate(t))],ceil:[I,[I],(t,[e])=>Math.ceil(e.evaluate(t))],"filter-==":[Q,[W,H],(t,[e,r])=>t.properties()[e.value]===r.value],"filter-id-==":[Q,[H],(t,[e])=>t.id()===e.value],"filter-type-==":[Q,[W],(t,[e])=>t.geometryType()===e.value],"filter-<":[Q,[W,H],(t,[e,r])=>{let i=t.properties()[e.value],n=r.value;return typeof i==typeof n&&i{let r=t.id(),i=e.value;return typeof r==typeof i&&r":[Q,[W,H],(t,[e,r])=>{let i=t.properties()[e.value],n=r.value;return typeof i==typeof n&&i>n}],"filter-id->":[Q,[H],(t,[e])=>{let r=t.id(),i=e.value;return typeof r==typeof i&&r>i}],"filter-<=":[Q,[W,H],(t,[e,r])=>{let i=t.properties()[e.value],n=r.value;return typeof i==typeof n&&i<=n}],"filter-id-<=":[Q,[H],(t,[e])=>{let r=t.id(),i=e.value;return typeof r==typeof i&&r<=i}],"filter->=":[Q,[W,H],(t,[e,r])=>{let i=t.properties()[e.value],n=r.value;return typeof i==typeof n&&i>=n}],"filter-id->=":[Q,[H],(t,[e])=>{let r=t.id(),i=e.value;return typeof r==typeof i&&r>=i}],"filter-has":[Q,[H],(t,[e])=>{let r=e.value,i=t.properties();return r in i&&i[r]!==void 0}],"filter-has-id":[Q,[],t=>t.id()!==null&&t.id()!==void 0],"filter-type-in":[Q,[Ut(W)],(t,[e])=>e.value.indexOf(t.geometryType())>=0],"filter-id-in":[Q,[Ut(H)],(t,[e])=>e.value.indexOf(t.id())>=0],"filter-in-small":[Q,[W,Ut(H)],(t,[e,r])=>r.value.indexOf(t.properties()[e.value])>=0],"filter-in-large":[Q,[W,Ut(H)],(t,[e,r])=>wm(t.properties()[e.value],r.value,0,r.value.length-1)],all:{type:Q,overloads:[[[Q,Q],(t,[e,r])=>e.evaluate(t)&&r.evaluate(t)],[hr(Q),(t,e)=>{for(let r of e)if(!r.evaluate(t))return!1;return!0}]]},any:{type:Q,overloads:[[[Q,Q],(t,[e,r])=>e.evaluate(t)||r.evaluate(t)],[hr(Q),(t,e)=>{for(let r of e)if(r.evaluate(t))return!0;return!1}]]},"!":[Q,[Q],(t,[e])=>!e.evaluate(t)],"is-supported-script":[Q,[W],(t,[e])=>{let r=t.globals&&t.globals.isSupportedScript;return!r||r(e.evaluate(t))}],upcase:[W,[W],(t,[e])=>e.evaluate(t).toUpperCase()],downcase:[W,[W],(t,[e])=>e.evaluate(t).toLowerCase()],concat:[W,hr(H),(t,e)=>e.map(r=>Wi(r.evaluate(t))).join("")],split:[Ut(W),[W,W],(t,[e,r])=>e.evaluate(t).split(r.evaluate(t))],join:[W,[Ut(W),W],(t,[e,r])=>e.evaluate(t).join(r.evaluate(t))],"resolved-locale":[W,[La],(t,[e])=>e.evaluate(t).resolvedLocale()]});function Dm(t){return Array.isArray(t)?`(${t.map(mt).join(", ")})`:`(${mt(t.type)}...)`}function Da(t){if(t instanceof tf)return Da(t.boundExpression);if(t instanceof Er&&t.name==="error"||t instanceof hf||t instanceof Sl||t instanceof kl||t instanceof Il)return!1;let e=t instanceof jr||t instanceof Be,r=!0;return t.eachChild(i=>{r&&(r=e?Da(i):i instanceof ri)}),r?qa(t)&&ja(t,["zoom","heatmap-density","elevation","line-progress","accumulated","is-supported-script"]):!1}function qa(t){if(t instanceof Er&&(t.name==="get"&&t.args.length===1||t.name==="feature-state"||t.name==="has"&&t.args.length===1||t.name==="properties"||t.name==="geometry-type"||t.name==="id"||/^filter-/.test(t.name))||t instanceof Sl||t instanceof kl)return!1;let e=!0;return t.eachChild(r=>{e&&!qa(r)&&(e=!1)}),e}function sn(t){if(t instanceof Er&&t.name==="feature-state")return!1;let e=!0;return t.eachChild(r=>{e&&!sn(r)&&(e=!1)}),e}function ja(t,e){if(t instanceof Er&&e.indexOf(t.name)>=0)return!1;let r=!0;return t.eachChild(i=>{r&&!ja(i,e)&&(r=!1)}),r}function ii(t){return t["property-type"]==="data-driven"||t["property-type"]==="cross-faded-data-driven"}function Sf(t){return!!t.expression&&t.expression.parameters.indexOf("zoom")>-1}function Cl(t){return!!t.expression&&t.expression.interpolated}var Ml=/^(.*)-transition$/;function on(t,...e){for(let r of e)for(let i in r)t[i]=r[i];return t}function J(t){return t instanceof Number?"number":t instanceof String?"string":t instanceof Boolean?"boolean":Array.isArray(t)?"array":t===null?"null":typeof t}function Ga(t){return typeof t=="object"&&!!t&&!Array.isArray(t)&&St(t)===mr}function _m(t){return t}function Am(t){switch(t.type){case"color":return xt.parse;case"padding":return Ee.parse;case"numberArray":return Fe.parse;case"colorArray":return ue.parse;default:return null}}function Sm(t){switch(t){case"exponential":return Ff;case"interval":return Fm;case"categorical":return Em;case"identity":return Tm;default:throw Error(`Unknown function type "${t}"`)}}function Ef(t,e){let r=t.stops&&typeof t.stops[0][0]=="object",i=r||t.property!==void 0,n=r||!i,a=t.type||(Cl(e)?"exponential":"interval"),s=Am(e);if(s&&(t=on({},t),t.stops&&(t.stops=t.stops.map(h=>[h[0],s(h[1])])),t.default?t.default=s(t.default):t.default=s(e.default)),t.colorSpace&&!g0(t.colorSpace))throw Error(`Unknown color space: "${t.colorSpace}"`);let o=Sm(a),l,u;if(a==="categorical"){l=Object.create(null);for(let h of t.stops)l[h[0]]=h[1];u=typeof t.stops[0][0]}if(r){let h={},c=[];for(let d=0;dd[0]),evaluate({zoom:d},y){return Ff({stops:p,base:t.base},e,d).evaluate(d,y)}}}if(n){let h=a==="exponential"?{name:"exponential",base:t.base===void 0?1:t.base}:null;return{kind:"camera",interpolationType:h,interpolationFactor:De.interpolationFactor.bind(void 0,h),zoomStops:t.stops.map(c=>c[0]),evaluate:({zoom:c})=>o(t,e,c,l,u)}}return{kind:"source",evaluate(h,c){let p=c&&c.properties?c.properties[t.property]:void 0;return p===void 0?_n(t.default,e.default):o(t,e,p,l,u)}}}function _n(t,e,r){if(t!==void 0)return t;if(e!==void 0)return e;if(r!==void 0)return r}function Em(t,e,r,i,n){return _n(typeof r===n?i[r]:void 0,t.default,e.default)}function Fm(t,e,r){if(J(r)!=="number")return _n(t.default,e.default);let i=t.stops.length;if(i===1||r<=t.stops[0][0])return t.stops[0][1];if(r>=t.stops[i-1][0])return t.stops[i-1][1];let n=$a(t.stops.map(a=>a[0]),r,"");return t.stops[n][1]}function Ff(t,e,r){let i=t.base===void 0?1:t.base;if(J(r)!=="number")return _n(t.default,e.default);let n=t.stops.length;if(n===1||r<=t.stops[0][0])return t.stops[0][1];if(r>=t.stops[n-1][0])return t.stops[n-1][1];let a=$a(t.stops.map(h=>h[0]),r,""),s=km(r,i,t.stops[a][0],t.stops[a+1][0]),o=t.stops[a][1],l=t.stops[a+1][1],u=br[e.type]||_m;return typeof o.evaluate=="function"?{evaluate(...h){let c=o.evaluate.apply(void 0,h),p=l.evaluate.apply(void 0,h);if(c!==void 0&&p!==void 0)return u(c,p,s,t.colorSpace)}}:u(o,l,s,t.colorSpace)}function Tm(t,e,r){switch(e.type){case"color":r=xt.parse(r);break;case"formatted":r=Le.fromString(r.toString());break;case"resolvedImage":r=Se.fromString(r.toString());break;case"padding":r=Ee.parse(r);break;case"colorArray":r=ue.parse(r);break;case"numberArray":r=Fe.parse(r);break;default:J(r)!==e.type&&(e.type!=="enum"||!e.values[r])&&(r=void 0)}return _n(r,t.default,e.default)}function km(t,e,r,i){let n=i-r,a=t-r;return n===0?0:e===1?a/n:(e**+a-1)/(e**+n-1)}function ho(t){return{result:"success",value:t}}function Nr(t){return{result:"error",value:t}}var Bl=class{constructor(t,e,r,i){this.expression=t,this._warningHistory={},this._evaluator=new Gp,this._defaultValue=r?Bf(r):null,this._enumValues=r&&r.type==="enum"?r.values:null,this._globalState=i,this._rootKey=e}evaluateWithoutErrorHandling(t,e,r,i,n,a){return this._globalState&&(t=ni(t,this._globalState)),this._evaluator.globals=t,this._evaluator.feature=e,this._evaluator.featureState=r,this._evaluator.canonical=i,this._evaluator.availableImages=n||null,this._evaluator.formattedSection=a,this.expression.evaluate(this._evaluator)}evaluate(t,e,r,i,n,a){this._globalState&&(t=ni(t,this._globalState)),this._evaluator.globals=t,this._evaluator.feature=e||null,this._evaluator.featureState=r||null,this._evaluator.canonical=i,this._evaluator.availableImages=n||null,this._evaluator.formattedSection=a||null;try{let s=this.expression.evaluate(this._evaluator);if(s==null||typeof s=="number"&&s!==s)return this._defaultValue;if(this._enumValues&&!(s in this._enumValues))throw new ft(`Expected value to be one of ${Object.keys(this._enumValues).map(o=>JSON.stringify(o)).join(", ")}, but found ${JSON.stringify(s)} instead.`,"");return s}catch(s){let o=s instanceof ft?s.path:"",l=`${o}|${s.message}`;return this._warningHistory[l]||(this._warningHistory[l]=!0,typeof console<"u"&&console.warn(Tf(this._rootKey,o,s.message,this._defaultValue))),this._defaultValue}}};function Tf(t,e,r,i){return`${t}${e}: ${r}${i==null?"":` Falling back to ${String(i)}.`}`}function kf(t){if(!t)throw Error(\'rootKey must identify the location of the expression in the style JSON, e.g. "layers[3].paint.line-width".\')}function Xa(t){return Array.isArray(t)&&t.length>0&&typeof t[0]=="string"&&t[0]in Yr}function ar(t,e,r,i){kf(e);let n=new _f(Yr,Da,[],r?Mm(r):void 0),a=n.parse(t,void 0,void 0,void 0,r&&r.type==="string"?{typeAnnotation:"coerce"}:void 0);return a?ho(new Bl(a,e,r,i)):Nr(n.errors)}var ln=class{constructor(t,e,r){this.kind=t,this._styleExpression=e,this.isStateDependent=t!=="constant"&&!sn(e.expression),this.globalStateRefs=An(e.expression),this._globalState=r}evaluateWithoutErrorHandling(t,e,r,i,n,a){return this._globalState&&(t=ni(t,this._globalState)),this._styleExpression.evaluateWithoutErrorHandling(t,e,r,i,n,a)}evaluate(t,e,r,i,n,a){return this._globalState&&(t=ni(t,this._globalState)),this._styleExpression.evaluate(t,e,r,i,n,a)}},_a=class{constructor(t,e,r,i,n){this.kind=t,this.zoomStops=r,this._styleExpression=e,this.isStateDependent=t!=="camera"&&!sn(e.expression),this.globalStateRefs=An(e.expression),this.interpolationType=i,this._globalState=n}evaluateWithoutErrorHandling(t,e,r,i,n,a){return this._globalState&&(t=ni(t,this._globalState)),this._styleExpression.evaluateWithoutErrorHandling(t,e,r,i,n,a)}evaluate(t,e,r,i,n,a){return this._globalState&&(t=ni(t,this._globalState)),this._styleExpression.evaluate(t,e,r,i,n,a)}interpolationFactor(t,e,r){return this.interpolationType?De.interpolationFactor(this.interpolationType,t,e,r):0}};function Im(t){return t._styleExpression!==void 0}function If(t,e,r,i){let n=ar(t,e,r,i);if(n.result==="error")return n;let a=n.value.expression,s=qa(a);if(!s&&!ii(r))return Nr([new ve("","data expressions not supported")]);let o=ja(a,["zoom"]);if(!o&&!Sf(r))return Nr([new ve("","zoom expressions not supported")]);let l=da(a);if(!l&&!o)return Nr([new ve("",\'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.\')]);if(l instanceof ve)return Nr([l]);if(l instanceof De&&!Cl(r))return Nr([new ve("",\'"interpolate" expressions cannot be used with this property\')]);if(!l)return ho(s?new ln("constant",n.value,i):new ln("source",n.value,i));let u=l instanceof De?l.interpolation:void 0;return ho(s?new _a("camera",n.value,l.labels,u,i):new _a("composite",n.value,l.labels,u,i))}var Cf=class Mf{constructor(e,r,i){this.isStateDependent=!1,this.globalStateRefs=new Set,this._globalState=null,kf(r),this._parameters=e,this._specification=i,this._rootKey=r,this._defaultValue=Bf(i),this._warningHistory={};let n=Ef(this._parameters,this._specification);this.kind=n.kind,this.interpolationFactor=n.interpolationFactor,this.zoomStops=n.zoomStops,this.interpolationType=n.interpolationType,this._innerEvaluate=n.evaluate}evaluate(e,r){try{return this._innerEvaluate(e,r)}catch(i){let n=i instanceof Error?i.message:String(i),a=`|${n}`;return this._warningHistory[a]||(this._warningHistory[a]=!0,typeof console<"u"&&console.warn(Tf(this._rootKey,"",n,this._defaultValue))),this._defaultValue}}static deserialize(e){return new Mf(e._parameters,e._rootKey,e._specification)}static serialize(e){return{_parameters:e._parameters,_specification:e._specification,_rootKey:e._rootKey}}};function Cm(t,e,r,i){if(Ga(t))return new Cf(t,e,r);if(Xa(t)){let n=If(t,e,r,i);if(n.result==="error")throw Error(n.value.map(a=>`${a.key}: ${a.message}`).join(", "));return n.value}{let n=t;return r.type==="color"&&typeof t=="string"?n=xt.parse(t):r.type==="padding"&&(typeof t=="number"||Array.isArray(t))?n=Ee.parse(t):r.type==="numberArray"&&(typeof t=="number"||Array.isArray(t))?n=Fe.parse(t):r.type==="colorArray"&&(typeof t=="string"||Array.isArray(t))?n=ue.parse(t):r.type==="variableAnchorOffsetCollection"&&Array.isArray(t)?n=Ae.parse(t):r.type==="projectionDefinition"&&typeof t=="string"&&(n=Sr.parse(t)),{globalStateRefs:new Set,_globalState:null,kind:"constant",evaluate:()=>n}}}function da(t){let e=null;if(t instanceof Jp)e=da(t.result);else if(t instanceof of){for(let r of t.args)if(e=da(r),e)break}else(t instanceof Dl||t instanceof De)&&t.input instanceof Er&&t.input.name==="zoom"&&(e=t);return e instanceof ve||t.eachChild(r=>{let i=da(r);i instanceof ve?e=i:!e&&i?e=new ve("",\'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.\'):e&&i&&e!==i&&(e=new ve("",\'Only one zoom-based "step" or "interpolate" subexpression may be used in an expression.\'))}),e}function An(t,e=new Set){return t instanceof Il&&e.add(t.key),t.eachChild(r=>{An(r,e)}),e}function Mm(t){let e={color:pe,string:W,number:I,enum:W,boolean:Q,formatted:bn,padding:Va,numberArray:Oa,colorArray:rn,projectionDefinition:za,resolvedImage:wn,variableAnchorOffsetCollection:Ra};return t.type==="array"?Ut(e[t.value]||H,t.length):e[t.type]}function Bf(t){if(t.type==="color"&&Ga(t.default))return new xt(0,0,0,0);switch(t.type){case"color":return xt.parse(t.default)||null;case"padding":return Ee.parse(t.default)||null;case"numberArray":return Fe.parse(t.default)||null;case"colorArray":return ue.parse(t.default)||null;case"variableAnchorOffsetCollection":return Ae.parse(t.default)||null;case"projectionDefinition":return Sr.parse(t.default)||null;default:return t.default===void 0?null:t.default}}function ni(t,e){let{zoom:r,heatmapDensity:i,elevation:n,lineProgress:a,isSupportedScript:s,accumulated:o}=t!=null?t:{};return{zoom:r,heatmapDensity:i,elevation:n,lineProgress:a,isSupportedScript:s,accumulated:o,globalState:e}}function Bm(t){let e=!1;for(let r of t){let i=Pf(r);if(i==="expression")return"expression";i==="legacy"&&(e=!0)}return e?"legacy":"neutral"}function Pf(t){if(typeof t=="boolean")return"neutral";if(!Array.isArray(t)||t.length===0)return"legacy";switch(t[0]){case"has":return t.length<2||t[1]==="$id"||t[1]==="$type"?"legacy":t.length===2?"neutral":"expression";case"in":return t.length>=3&&(typeof t[1]!="string"||Array.isArray(t[2]))?"expression":"legacy";case"!in":case"!has":return"legacy";case"==":case"!=":case">":case">=":case"<":case"<=":return t.length!==3||Array.isArray(t[1])||Array.isArray(t[2])?"expression":"legacy";case"none":return"legacy";case"any":case"all":return Bm(t.slice(1));default:return"expression"}}function Pl(t){return Pf(t)!=="legacy"}function Mh(t){return t==="$type"?["geometry-type"]:t==="$id"?["id"]:["get",t]}function Pm(t){switch(t[0]){case"==":case"!=":case"<":case"<=":case">":case">=":return t.length!==3||typeof t[1]!="string"?null:[t[0],Mh(t[1]),t[2]];case"in":case"!in":{if(t.length<2||typeof t[1]!="string")return null;let e=["in",Mh(t[1]),["literal",t.slice(2)]];return t[0]==="!in"?["!",e]:e}case"has":case"!has":{if(t.length!==2||typeof t[1]!="string"||t[1]==="$type"||t[1]==="$id")return null;let e=["has",t[1]];return t[0]==="!has"?["!",e]:e}default:return null}}function zf(t){if((t[0]==="<"||t[0]==="<="||t[0]===">"||t[0]===">=")&&t[1]==="$type")return`"$type" cannot be use with operator "${t[0]}"`;let e=Pm(t);return e?`Mixing deprecated filter syntax with expression syntax is not supported. Replace ${JSON.stringify(t)} with ${JSON.stringify(e)}.`:`Mixing deprecated filter syntax with expression syntax is not supported. Convert ${JSON.stringify(t)} to expression syntax.`}function Rs(t,e,r){let i=r[t];return Array.isArray(i)?Pl(i)?zl(i,e.concat(t)):{path:e.concat(t),legacyFilter:i}:null}function zl(t,e=[]){if(!Array.isArray(t)||t.length<1)return null;switch(t[0]){case"all":case"any":case"none":for(let r=1;r"u")return;let i=r.path.map(n=>`[${n}]`).join("");console.warn(`${e}${i}: ${zf(r.legacyFilter)}`)}var Lm={type:"boolean",default:!1,transition:!1,"property-type":"data-driven",expression:{interpolated:!1,parameters:["zoom","feature"]}};function ai(t,e,r){if(t==null)return{filter:()=>!0,needGeometry:!1,getGlobalStateRefs:()=>new Set};Pl(t)?zm(t,e):t=Aa(t);let i=ar(t,e,Lm,r);if(i.result==="error")throw Error(i.value.map(n=>`${n.key}: ${n.message}`).join(", "));return{filter:(n,a,s)=>i.value.evaluate(n,a,{},s),needGeometry:Lf(t),getGlobalStateRefs:()=>An(i.value.expression)}}function Vm(t,e){return te)}function Lf(t){if(!Array.isArray(t))return!1;if(t[0]==="within"||t[0]==="distance")return!0;for(let e=1;e"||e==="<="||e===">="?$s(t[1],t[2],e):e==="any"?Om(t.slice(1)):e==="all"?["all"].concat(t.slice(1).map(Aa)):e==="none"?["all"].concat(t.slice(1).map(Aa).map(Hn)):e==="in"?Bh(t[1],t.slice(2)):e==="!in"?Hn(Bh(t[1],t.slice(2))):e==="has"?Ph(t[1]):e!=="!has"||Hn(Ph(t[1]))}function $s(t,e,r){switch(t){case"$type":return[`filter-type-${r}`,e];case"$id":return[`filter-id-${r}`,e];default:return[`filter-${r}`,t,e]}}function Om(t){return["any"].concat(t.map(Aa))}function Bh(t,e){if(e.length===0)return!1;switch(t){case"$type":return["filter-type-in",["literal",e]];case"$id":return["filter-id-in",["literal",e]];default:return e.length>200&&!e.some(r=>typeof r!=typeof e[0])?["filter-in-large",t,["literal",e.sort(Vm)]]:["filter-in-small",t,["literal",e]]}}function Ph(t){switch(t){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",t]}}function Hn(t){return["!",t]}function Vf(t){let e=t.key,r=t.value;return r?[new E(e,r,"constants have been deprecated as of v8")]:[]}function _t(t){return t instanceof Number||t instanceof String||t instanceof Boolean?t.valueOf():t}function wr(t){if(Array.isArray(t))return t.map(wr);if(t instanceof Object&&!(t instanceof Number||t instanceof String||t instanceof Boolean)){let e={};for(let r in t)e[r]=wr(t[r]);return e}return _t(t)}function ee(t){let e=t.key,r=t.value,i=t.valueSpec||{},n=t.objectElementValidators||{},a=t.style,s=t.styleSpec,o=t.validateSpec,l=[],u=J(r);if(u!=="object")return[new E(e,r,`object expected, ${u} found`)];for(let h in r){let c=h.split(".")[0],p=Yi(i,c)||i["*"],f;if(Yi(n,c))f=n[c];else if(Yi(i,c)){if(r[h]===void 0)continue;f=o}else if(n["*"])f=n["*"];else if(i["*"])f=o;else{l.push(new E(e,r[h],`unknown property "${h}"`));continue}l=l.concat(f({key:(e&&`${e}.`)+h,value:r[h],valueSpec:p,style:a,styleSpec:s,object:r,objectKey:h,validateSpec:o},r))}for(let h in i)n[h]||i[h].required&&i[h].default===void 0&&r[h]===void 0&&l.push(new E(e,r,`missing required property "${h}"`));return l}function Ll(t){let e=t.value,r=t.valueSpec,i=t.validateSpec,n=t.style,a=t.styleSpec,s=t.key,o=t.arrayElementValidator||i;if(J(e)!=="array")return[new E(s,e,`array expected, ${J(e)} found`)];if(r.length&&e.length!==r.length)return[new E(s,e,`array length ${r.length} expected, length ${e.length} found`)];let l={type:r.value,values:r.values};a.$version<7&&(l.function=r.function),J(r.value)==="object"&&(l=r.value);let u=[];for(let h=0;hi.maximum?[new E(e,r,`${r} is greater than the maximum value ${i.maximum}`)]:[]:[new E(e,r,`number expected, ${n} found`)]}function Of(t){let e=t.valueSpec,r=_t(t.value.type),i,n={},a,s,o=r!=="categorical"&&t.value.property===void 0,l=!o,u=J(t.value.stops)==="array"&&J(t.value.stops[0])==="array"&&J(t.value.stops[0][0])==="object",h=ee({key:t.key,value:t.value,valueSpec:t.styleSpec.function,validateSpec:t.validateSpec,style:t.style,styleSpec:t.styleSpec,objectElementValidators:{stops:c,default:d}});return r==="identity"&&o&&h.push(new E(t.key,t.value,\'missing required property "property"\')),r!=="identity"&&!t.value.stops&&h.push(new E(t.key,t.value,\'missing required property "stops"\')),r==="exponential"&&t.valueSpec.expression&&!Cl(t.valueSpec)&&h.push(new E(t.key,t.value,"exponential functions not supported")),t.styleSpec.$version>=8&&(l&&!ii(t.valueSpec)?h.push(new E(t.key,t.value,"property functions not supported")):o&&!Sf(t.valueSpec)&&h.push(new E(t.key,t.value,"zoom functions not supported"))),(r==="categorical"||u)&&t.value.property===void 0&&h.push(new E(t.key,t.value,\'"property" property is required\')),h;function c(y){if(r==="identity")return[new E(y.key,y.value,\'identity function may not have a "stops" property\')];let m=[],g=y.value;return m=m.concat(Ll({key:y.key,value:g,valueSpec:y.valueSpec,validateSpec:y.validateSpec,style:y.style,styleSpec:y.styleSpec,arrayElementValidator:p})),J(g)==="array"&&g.length===0&&m.push(new E(y.key,g,"array must have at least one stop")),m}function p(y){let m=[],g=y.value,x=y.key;if(J(g)!=="array")return[new E(x,g,`array expected, ${J(g)} found`)];if(g.length!==2)return[new E(x,g,`array length 2 expected, length ${g.length} found`)];if(u){if(J(g[0])!=="object")return[new E(x,g,`object expected, ${J(g[0])} found`)];if(g[0].zoom===void 0)return[new E(x,g,"object stop key must have zoom")];if(g[0].value===void 0)return[new E(x,g,"object stop key must have value")];if(s&&s>_t(g[0].zoom))return[new E(x,g[0].zoom,"stop zoom values must appear in ascending order")];_t(g[0].zoom)!==s&&(s=_t(g[0].zoom),a=void 0,n={}),m=m.concat(ee({key:`${x}[0]`,value:g[0],valueSpec:{zoom:{}},validateSpec:y.validateSpec,style:y.style,styleSpec:y.styleSpec,objectElementValidators:{zoom:Ya,value:f}}))}else m=m.concat(f({key:`${x}[0]`,value:g[0],valueSpec:{},validateSpec:y.validateSpec,style:y.style,styleSpec:y.styleSpec},g));return Xa(wr(g[1]))?m.concat([new E(`${x}[1]`,g[1],"expressions are not allowed in function stops.")]):m.concat(y.validateSpec({key:`${x}[1]`,value:g[1],valueSpec:e,validateSpec:y.validateSpec,style:y.style,styleSpec:y.styleSpec}))}function f(y,m){let g=J(y.value),x=_t(y.value),v=y.value===null?m:y.value;if(!i)i=g;else if(g!==i)return[new E(y.key,v,`${g} stop domain type must match previous stop domain type ${i}`)];if(g!=="number"&&g!=="string"&&g!=="boolean")return[new E(y.key,v,"stop domain value must be a number, string, or boolean")];if(g!=="number"&&r!=="categorical"){let b=`number expected, ${g} found`;return ii(e)&&r===void 0&&(b+=\'\\nIf you intended to use a categorical function, specify `"type": "categorical"`.\'),[new E(y.key,v,b)]}return r==="categorical"&&g==="number"&&(!isFinite(x)||Math.floor(x)!==x)?[new E(y.key,v,`integer expected, found ${x}`)]:r!=="categorical"&&g==="number"&&a!==void 0&&xnew E(`${t.key}${i.key}`,t.value,i.message));let r=e.value.expression||e.value._styleExpression.expression;if(t.expressionContext==="property"&&t.propertyKey==="text-font"&&!r.outputDefined())return[new E(t.key,t.value,`Invalid data expression for "${t.propertyKey}". Output values must be contained as literals within the expression.`)];if(t.expressionContext==="property"&&t.propertyType==="layout"&&!sn(r))return[new E(t.key,t.value,\'"feature-state" data expressions are not supported with layout properties.\')];if(t.expressionContext==="filter"&&!sn(r))return[new E(t.key,t.value,\'"feature-state" data expressions are not supported with filters.\')];if(t.expressionContext&&t.expressionContext.indexOf("cluster")===0){if(!ja(r,["zoom","feature-state"]))return[new E(t.key,t.value,\'"zoom" and "feature-state" expressions are not supported with cluster properties.\')];if(t.expressionContext==="cluster-initial"&&!qa(r))return[new E(t.key,t.value,"Feature data expressions are not supported with initial expression part of cluster properties.")]}return[]}function Rm(t){let e=t.value,r=t.key,i=J(e);return i==="boolean"?[]:[new E(r,e,`boolean expected, ${i} found`)]}function co(t){let e=t.key,r=t.value,i=J(r);return i==="string"?xt.parse(String(r))?[]:[new E(e,r,`color expected, "${r}" found`)]:[new E(e,r,`color expected, ${i} found`)]}function un(t){let e=t.key,r=t.value,i=t.valueSpec,n=[];return Array.isArray(i.values)?i.values.indexOf(_t(r))===-1&&n.push(new E(e,r,`expected one of [${i.values.join(", ")}], ${JSON.stringify(r)} found`)):Object.keys(i.values).indexOf(_t(r))===-1&&n.push(new E(e,r,`expected one of [${Object.keys(i.values).join(", ")}], ${JSON.stringify(r)} found`)),n}function $m(t,e){let r=t;for(let i of e)r=r[i];return r}function Nm(t,e){let r=zl(e);return r?[new E(`${t.key}${r.path.map(i=>`[${i}]`).join("")}`,$m(t.value,r.path),zf(r.legacyFilter),null,"warning")]:[]}function Vl(t){let e=wr(t.value);return Pl(e)?[...Nm(t,e),...si(on({},t,{expressionContext:"filter",valueSpec:{value:"boolean"}}))]:Rf(t)}function Rf(t){let e=t.value,r=t.key;if(J(e)!=="array")return[new E(r,e,`array expected, ${J(e)} found`)];let i=t.styleSpec,n,a=[];if(e.length<1)return[new E(r,e,"filter array must have at least 1 element")];switch(a=a.concat(un({key:`${r}[0]`,value:e[0],valueSpec:i.filter_operator,style:t.style,styleSpec:t.styleSpec})),_t(e[0])){case"<":case"<=":case">":case">=":e.length>=2&&_t(e[1])==="$type"&&a.push(new E(r,e,`"$type" cannot be use with operator "${e[0]}"`));case"==":case"!=":e.length!==3&&a.push(new E(r,e,`filter array for operator "${e[0]}" must have 3 elements`));case"in":case"!in":e.length>=2&&(n=J(e[1]),n!=="string"&&a.push(new E(`${r}[1]`,e[1],`string expected, ${n} found`)));for(let s=2;s{c in r&&e.push(new E(i,r[c],`"${c}" is prohibited for ref layers`))});let h;n.layers.forEach(c=>{_t(c.id)===o&&(h=c)}),h?h.ref?e.push(new E(i,r.ref,"ref cannot reference another ref layer")):s=_t(h.type):e.push(new E(i,r.ref,`ref layer "${o}" not found`))}else if(s!=="background")if(!r.source)e.push(new E(i,r,\'missing required property "source"\'));else{let h=n.sources&&n.sources[r.source],c=h&&_t(h.type);h?c==="vector"&&s==="raster"?e.push(new E(i,r.source,`layer "${r.id}" requires a raster source`)):c!=="raster-dem"&&s==="hillshade"||c!=="raster-dem"&&s==="color-relief"?e.push(new E(i,r.source,`layer "${r.id}" requires a raster-dem source`)):c==="raster"&&s!=="raster"?e.push(new E(i,r.source,`layer "${r.id}" requires a vector source`)):c==="vector"&&!r["source-layer"]?e.push(new E(i,r,`layer "${r.id}" must specify a "source-layer"`)):c==="raster-dem"&&s!=="hillshade"&&s!=="color-relief"?e.push(new E(i,r.source,"raster-dem source can only be used with layer type \'hillshade\' or \'color-relief\'.")):s==="line"&&r.paint&&r.paint["line-gradient"]&&(c!=="geojson"||!h.lineMetrics)&&e.push(new E(i,r,`layer "${r.id}" specifies a line-gradient, which requires a GeoJSON source with \\`lineMetrics\\` enabled.`)):e.push(new E(i,r.source,`source "${r.source}" not found`))}return s==="raster"&&((l=r.paint)!=null&&l.resampling)&&((u=r.paint)!=null&&u["raster-resampling"])&&e.push(new E(i,r.paint,`layer "${r.id}" redundantly specifies "resampling" and "raster-resampling" paint properties, but only one is allowed. It is advised to use "resampling".`)),e=e.concat(ee({key:i,value:r,valueSpec:a.layer,style:t.style,styleSpec:t.styleSpec,validateSpec:t.validateSpec,objectElementValidators:{"*"(){return[]},type(){return t.validateSpec({key:`${i}.type`,value:r.type,valueSpec:a.layer.type,style:t.style,styleSpec:t.styleSpec,validateSpec:t.validateSpec,object:r,objectKey:"type"})},filter:Vl,layout(h){return ee({layer:r,key:h.key,value:h.value,style:h.style,styleSpec:h.styleSpec,validateSpec:h.validateSpec,objectElementValidators:{"*"(c){return Uf(on({layerType:s},c))}}})},paint(h){return ee({layer:r,key:h.key,value:h.value,style:h.style,styleSpec:h.styleSpec,validateSpec:h.validateSpec,objectElementValidators:{"*"(c){return Nf(on({layerType:s},c))}}})}}})),e}function ir(t){let e=t.value,r=t.key,i=J(e);return i==="string"?[]:[new E(r,e,`string expected, ${i} found`)]}function Um(t){var c;let e=(c=t.sourceName)!=null?c:"",r=t.value,i=t.styleSpec,n=i.source_raster_dem,a=t.style,s=[],o=J(r);if(r===void 0)return s;if(o!=="object")return s.push(new E("source_raster_dem",r,`object expected, ${o} found`)),s;let l=_t(r.encoding)==="custom",u=["redFactor","greenFactor","blueFactor","baseShift"],h=t.value.encoding?`"${t.value.encoding}"`:"Default";for(let p in r)!l&&u.includes(p)?s.push(new E(p,r[p],`In "${e}": "${p}" is only valid when "encoding" is set to "custom". ${h} encoding found`)):n[p]?s=s.concat(t.validateSpec({key:p,value:r[p],valueSpec:n[p],validateSpec:t.validateSpec,style:a,styleSpec:i})):s.push(new E(p,r[p],`unknown property "${p}"`));return s}var zh={promoteId:qm};function jf(t){let e=t.value,r=t.key,i=t.styleSpec,n=t.style,a=t.validateSpec;if(!e.type)return[new E(r,e,\'"type" is required\')];let s=_t(e.type),o;switch(s){case"vector":case"raster":return o=ee({key:r,value:e,valueSpec:i[`source_${s.replace("-","_")}`],style:t.style,styleSpec:i,objectElementValidators:zh,validateSpec:a}),o;case"raster-dem":return o=Um({sourceName:r,value:e,style:t.style,styleSpec:i,validateSpec:a}),o;case"geojson":if(o=ee({key:r,value:e,valueSpec:i.source_geojson,style:n,styleSpec:i,validateSpec:a,objectElementValidators:zh}),e.cluster)for(let l in e.clusterProperties){let[u,h]=e.clusterProperties[l],c=typeof u=="string"?[u,["accumulated"],["get",l]]:u;o.push(...si({key:`${r}.${l}.map`,value:h,validateSpec:a,expressionContext:"cluster-map"})),o.push(...si({key:`${r}.${l}.reduce`,value:c,validateSpec:a,expressionContext:"cluster-reduce"}))}return o;case"video":return ee({key:r,value:e,valueSpec:i.source_video,style:n,validateSpec:a,styleSpec:i});case"image":return ee({key:r,value:e,valueSpec:i.source_image,style:n,validateSpec:a,styleSpec:i});case"canvas":return[new E(r,null,"Please use runtime APIs to add canvas sources, rather than including them in stylesheets.","source.canvas")];default:return un({key:`${r}.type`,value:e.type,valueSpec:{values:["vector","raster","raster-dem","geojson","video","image"]},style:n,validateSpec:a,styleSpec:i})}}function qm({key:t,value:e}){if(J(e)==="string")return ir({key:t,value:e});{let r=[];for(let i in e)r.push(...ir({key:`${t}.${i}`,value:e[i]}));return r}}function Gf(t){let e=t.value,r=t.styleSpec,i=r.light,n=t.style,a=[],s=J(e);if(e===void 0)return a;if(s!=="object")return a=a.concat([new E("light",e,`object expected, ${s} found`)]),a;for(let o in e){let l=o.match(Ml);a=l&&i[l[1]]&&i[l[1]].transition?a.concat(t.validateSpec({key:o,value:e[o],valueSpec:r.transition,validateSpec:t.validateSpec,style:n,styleSpec:r})):i[o]?a.concat(t.validateSpec({key:o,value:e[o],valueSpec:i[o],validateSpec:t.validateSpec,style:n,styleSpec:r})):a.concat([new E(o,e[o],`unknown property "${o}"`)])}return a}function Xf(t){let e=t.value,r=t.styleSpec,i=r.sky,n=t.style,a=J(e);if(e===void 0)return[];if(a!=="object")return[new E("sky",e,`object expected, ${a} found`)];let s=[];for(let o in e){let l=o.match(Ml);s=l&&i[l[1]]&&i[l[1]].transition?s.concat(t.validateSpec({key:o,value:e[o],valueSpec:r.transition,style:n,styleSpec:r})):i[o]?s.concat(t.validateSpec({key:o,value:e[o],valueSpec:i[o],style:n,styleSpec:r})):s.concat([new E(o,e[o],`unknown property "${o}"`)])}return s}function Yf(t){let e=t.value,r=t.styleSpec,i=r.terrain,n=t.style,a=[],s=J(e);if(e===void 0)return a;if(s!=="object")return a=a.concat([new E("terrain",e,`object expected, ${s} found`)]),a;for(let o in e)a=i[o]?a.concat(t.validateSpec({key:o,value:e[o],valueSpec:i[o],validateSpec:t.validateSpec,style:n,styleSpec:r})):a.concat([new E(o,e[o],`unknown property "${o}"`)]);return a}function jm(t){return ir(t).length===0?[]:si(t)}function Gm(t){return ir(t).length===0?[]:si(t)}function Xm(t){let e=t.key,r=t.value;if(J(r)==="array"){if(r.length<1||r.length>4)return[new E(e,r,`padding requires 1 to 4 values; ${r.length} values found`)];let i={type:"number"},n=[];for(let a=0;a[new E(t,e,\'invalid unicode range, expected a value such as "U+26", "U+0-10FFFF" or "U+4??"\')],n=r.match(tg);if(!n)return i();let[,a,s,o]=n;if(o!==void 0)return o.length>6?i():[];let l=parseInt(a,16),u=s===void 0?l:parseInt(s,16);return l>Lh||u>Lh?[new E(t,e,"unicode range is out of bounds, the maximum code point is U+10FFFF")]:l>u?[new E(t,e,`unicode range start must not be greater than its end, but ${r} is`)]:[]}function Hf(t){var o,l;let e=(o=t.key)!=null?o:"font-faces",r=t.value,i=t.validateSpec,n=(l=t.styleSpec)!=null?l:Bp,a=t.style;if(!po(r))return[new E(e,r,`object expected, ${J(r)} found`)];let s=[];for(let u in r){let h=r[u],c=J(h);if(c==="string")s.push(...ir({key:`${e}.${u}`,value:h}));else if(c==="array"){let p={url:{type:"string",required:!0},"unicode-range":{type:"array",value:"string"}};for(let[f,d]of h.entries()){let y=`${e}.${u}[${f}]`;s.push(...ee({key:y,value:d,valueSpec:p,styleSpec:n,style:a,validateSpec:i}));let m=po(d)?d["unicode-range"]:void 0;if(J(m)==="array")for(let[g,x]of m.entries())s.push(...eg(`${y}.unicode-range[${g}]`,x))}}else s.push(new E(`${e}.${u}`,h,`string or array expected, ${c} found`))}return s}var Vh={"*"(){return[]},array:Ll,boolean:Rm,number:Ya,color:co,constants:Vf,enum:un,filter:Vl,function:Of,layer:qf,object:ee,source:jf,light:Gf,sky:Xf,terrain:Yf,projection:Hm,projectionDefinition:Km,string:ir,formatted:jm,resolvedImage:Gm,padding:Xm,numberArray:Ym,colorArray:Wm,variableAnchorOffsetCollection:Zm,sprite:Wf,state:Zf,fontFaces:Hf};function Zi(t){let e=t.value,r=t.valueSpec,i=t.styleSpec;return t.validateSpec=Zi,r.expression&&Ga(_t(e))?Of(t):r.expression&&Xa(wr(e))?si(t):r.type&&Vh[r.type]?Vh[r.type](t):ee(on({},t,{valueSpec:r.type?i[r.type]:r}))}function Kf(t){let e=t.value,r=t.key,i=ir(t);return i.length||(e.indexOf("{fontstack}")===-1&&i.push(new E(r,e,\'"glyphs" url must include a "{fontstack}" token\')),e.indexOf("{range}")===-1&&i.push(new E(r,e,\'"glyphs" url must include a "{range}" token\'))),i}function te(t,e=D){let r=[];return r=r.concat(Zi({key:"",value:t,valueSpec:e.$root,styleSpec:e,style:t,validateSpec:Zi,objectElementValidators:{glyphs:Kf,"*"(){return[]}}})),t.constants&&(r=r.concat(Vf({key:"constants",value:t.constants,style:t,styleSpec:e,validateSpec:Zi}))),Jf(r)}te.source=ae(ne(jf)),te.sprite=ae(ne(Wf)),te.glyphs=ae(ne(Kf)),te.fontFaces=ae(ne(Hf)),te.light=ae(ne(Gf)),te.sky=ae(ne(Xf)),te.terrain=ae(ne(Yf)),te.state=ae(ne(Zf)),te.layer=ae(ne(qf)),te.filter=ae(ne(Vl)),te.paintProperty=ae(ne(Nf)),te.layoutProperty=ae(ne(Uf));function ne(t){return function(e){return t(Object.assign({},e,{validateSpec:Zi}))}}function Jf(t){return[].concat(t).sort((e,r)=>e.line-r.line)}function ae(t){return function(...e){return Jf(t.apply(this,e))}}var rg={type:"enum","property-type":"data-constant",expression:{interpolated:!1,parameters:["global-state"]},values:{visible:{},none:{}},transition:!1,default:"visible"},ig=class{constructor(t,e,r){this._rootKey=e,this._globalState=r,this.setValue(t)}evaluate(){var t;return(t=this._literalValue)!=null?t:this._compiledValue.evaluate({})}setValue(t){if(t==null||t==="visible"||t==="none"){this._literalValue=t==="none"?"none":"visible",this._compiledValue=void 0,this._globalStateRefs=new Set;return}let e=ar(t,this._rootKey,rg,this._globalState);if(e.result==="error")throw this._literalValue="visible",this._compiledValue=void 0,Error(e.value.map(r=>`${r.key}: ${r.message}`).join(", "));this._literalValue=void 0,this._compiledValue=e.value,this._globalStateRefs=An(e.value.expression)}getGlobalStateRefs(){return this._globalStateRefs}};function ng(t,e,r){return new ig(t,e,r)}var Oh=te,_5=new Set(Object.keys(D).filter(t=>t.startsWith("source_")).map(t=>t.slice(7).replaceAll("_","-")));function ag(t,e){let r=!1;for(let i of e){if(i.severity==="warning"){Mt(i.message);continue}t.fire(new xa(Error(i.message))),r=!0}return r}function sg(t,e,r,i){return(i==null?void 0:i.validate)!==!1&&ag(t,e(Xe({styleSpec:D},r)))}var fo=class Qf{constructor(e,r,i){let n=this.cells=[];if(e instanceof ArrayBuffer){this.arrayBuffer=e;let s=new Int32Array(this.arrayBuffer);e=s[0],r=s[1],i=s[2],this.d=r+2*i;for(let u=0;u=c[f+0]&&n>=c[f+1])?(o[p]=!0,s.push(h[p])):o[p]=!1}}}_forEachCell(e,r,i,n,a,s,o,l){let u=this._convertToCellCoord(e),h=this._convertToCellCoord(r),c=this._convertToCellCoord(i),p=this._convertToCellCoord(n);for(let f=u;f<=c;f++)for(let d=h;d<=p;d++){let y=this.d*d+f;if((!l||l(this._convertFromCellCoord(f),this._convertFromCellCoord(d),this._convertFromCellCoord(f+1),this._convertFromCellCoord(d+1)))&&a.call(this,e,r,i,n,y,s,o,l))return}}_convertFromCellCoord(e){return(e-this.padding)/this.scale}_convertToCellCoord(e){return Math.max(0,Math.min(this.d-1,Math.floor(e*this.scale)+this.padding))}toArrayBuffer(){if(this.arrayBuffer)return this.arrayBuffer;let e=this.cells,r=3+this.cells.length+1+1,i=0;for(let s of this.cells)i+=s.length;let n=new Int32Array(r+i+this.keys.length+this.bboxes.length);n[0]=this.extent,n[1]=this.n,n[2]=this.padding;let a=r;for(let s=0;sr?(this.lastIntegerZoom=r+1,this.lastIntegerZoomTime=e):this.lastFloorZoomthis.zoomHistory.lastIntegerZoom?{fromScale:2,toScale:1,t:e+(1-e)*r}:{fromScale:.5,toScale:1,t:1-(1-r)*e}}},hn=class{constructor(t,e,r,i){this.property=t,this.value=e,this.expression=Cm(e===void 0?t.specification.default:e,r,t.specification,i)}isDataDriven(){return this.expression.kind==="source"||this.expression.kind==="composite"}getGlobalStateRefs(){return this.expression.globalStateRefs||new Set}readsGlobalState(t){let e=this.getGlobalStateRefs();return t.some(r=>e.has(r))}possiblyEvaluate(t,e,r){return this.property.possiblyEvaluate(this,t,e,r)}},yo=class{constructor(t,e,r){this.property=t,this.value=new hn(t,void 0,e,r)}transitioned(t,e){return e.value===this.value?e:new $h(this.property,this.value,e,Xt({},t.transition,this.transition),t.now)}untransitioned(){return new $h(this.property,this.value,null,{},0)}},lg=class{constructor(t,e,r){this._properties=t,this._values=Object.create(t.defaultTransitionablePropertyValues),this._globalState=r,this._rootKey=e}_propertyRootKey(t){return`${this._rootKey}.${String(t)}`}hasProperty(t){return t in this._properties.defaultTransitionablePropertyValues}getValue(t){return Je(this._values[t].value.value)}setValue(t,e){Object.hasOwn(this._values,t)||(this._values[t]=new yo(this._values[t].property,this._propertyRootKey(t),this._globalState)),this._values[t].value=new hn(this._values[t].property,e===null?void 0:Je(e),this._propertyRootKey(t),this._globalState)}setValues(t){for(let e in t){let r=t[e];e.endsWith("-transition")?this.setTransition(e.slice(0,-11),r):to(this._values[e].value.value,r)||this.setValue(e,r)}}getTransition(t){return Je(this._values[t].transition)}setTransition(t,e){Object.hasOwn(this._values,t)||(this._values[t]=new yo(this._values[t].property,this._propertyRootKey(t),this._globalState)),this._values[t].transition=Je(e)||void 0}retainPriorGlobalState(t,e,r){for(let i of Object.keys(r._values))for(let n=r._values[i];n;n=n.prior){let{value:a}=n;a.property.specification.transition&&!a.isDataDriven()&&a.expression._globalState===this._globalState&&a.readsGlobalState(t)&&(n.value=new hn(a.property,a.value,this._propertyRootKey(i),e))}}applyGlobalStateChange(t,e,r,i){this.retainPriorGlobalState(t,e,r);let n=!1;for(let a of Object.keys(this._values)){let{value:s}=this._values[a];s.readsGlobalState(t)&&(this.setValue(a,s.value),n=!0)}return n?this.transitioned(i,r):r}serialize(){let t={};for(let e of Object.keys(this._values)){let r=this.getValue(e);r!==void 0&&(t[e]=r);let i=this.getTransition(e);i!==void 0&&(t[`${e}-transition`]=i)}return t}transitioned(t,e){let r=new Nh(this._properties);for(let i of Object.keys(this._values))r._values[i]=this._values[i].transitioned(t,e._values[i]);return r}untransitioned(){let t=new Nh(this._properties);for(let e of Object.keys(this._values))t._values[e]=this._values[e].untransitioned();return t}},$h=class{constructor(t,e,r,i,n){this.property=t,this.value=e,this.begin=n+i.delay||0,this.end=this.begin+i.duration||0,t.specification.transition&&(i.delay||i.duration)&&(this.prior=r)}possiblyEvaluate(t,e,r){let i=t.now||0,n=this.value.possiblyEvaluate(t,e,r),a=this.prior;if(!a)return n;if(i>this.end||this.value.isDataDriven())return this.prior=null,n;if(ii.zoomHistory.lastIntegerZoom?{from:t,to:e}:{from:r,to:e}}interpolate(t){return t}},id=class{constructor(t,e){this.specification=t,this.name=e}possiblyEvaluate(t,e,r,i){if(t.value!==void 0){if(t.expression.kind==="constant"){let n=t.expression.evaluate(e,null,{},r,i);return this._calculate(n,n,n,e)}return this._calculate(t.expression.evaluate(new st(Math.floor(e.zoom-1),e)),t.expression.evaluate(new st(Math.floor(e.zoom),e)),t.expression.evaluate(new st(Math.floor(e.zoom+1),e)),e)}}_calculate(t,e,r,i){return i.zoom>i.zoomHistory.lastIntegerZoom?{from:t,to:e}:{from:r,to:e}}interpolate(t){return t}},Za=class{constructor(t,e){this.specification=t,this.name=e}possiblyEvaluate(t,e,r,i){return!!t.expression.evaluate(e,null,{},r,i)}interpolate(){return!1}},Yt=class{constructor(t){this.properties=t,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},this.overridableProperties=[];for(let e in t){let r=t[e];r.specification.overridable&&this.overridableProperties.push(e);let i=this.defaultPropertyValues[e]=new hn(r,void 0,r.name,void 0),n=this.defaultTransitionablePropertyValues[e]=new yo(r,r.name,void 0);this.defaultTransitioningPropertyValues[e]=n.untransitioned(),this.defaultPossiblyEvaluatedValues[e]=i.possiblyEvaluate({})}}};C("DataDrivenProperty",U),C("DataConstantProperty",R),C("CrossFadedDataDrivenProperty",cn),C("CrossFadedProperty",id),C("ColorRampProperty",Za);var qh=" is a PAINT property not a LAYOUT property. Use get/setPaintProperty instead?",Ns=" is a LAYOUT property not a PAINT property. Use get/setLayoutProperty instead?",ye=class extends s0{constructor(t,e,r){if(super(),this.id=t.id,this.type=t.type,this._globalState=r,this._featureFilter={filter:()=>!0,needGeometry:!1,getGlobalStateRefs:()=>new Set},this._visibilityExpression=ng(this.visibility,`layers[${this.id}].layout.visibility`,r),t.type!=="custom"&&(this.metadata=t.metadata,this.minzoom=t.minzoom,this.maxzoom=t.maxzoom,t.type!=="background"&&(this.source=t.source,this.sourceLayer=t["source-layer"],this.filter=t.filter,this._featureFilter=ai(t.filter,`layers[${this.id}].filter`,r)),e.layout&&(this._unevaluatedLayout=new ug(e.layout,`layers[${this.id}].layout`,r)),e.paint)){this._transitionablePaint=new lg(e.paint,`layers[${this.id}].paint`,r);for(let i in t.paint)this.setPaintProperty(i,t.paint[i],{validate:!1});for(let i in t.layout)this.setLayoutProperty(i,t.layout[i],{validate:!1});this._transitioningPaint=this._transitionablePaint.untransitioned(),this.paint=new Wa(e.paint)}}setFilter(t){this.filter=t,this._featureFilter=ai(t,`layers[${this.id}].filter`,this._globalState)}getCrossfadeParameters(){return this._crossfadeParameters}getLayoutProperty(t){var e;if(t==="visibility")return this.visibility;if((e=this._transitionablePaint)!=null&&e.hasProperty(t))throw Error(t+qh);if(!this._unevaluatedLayout)throw Error(`Cannot get layout property "${t}" on layer type "${this.type}" which has no layout properties.`);return this._unevaluatedLayout.getValue(t)}getLayoutAffectingGlobalStateRefs(){let t=new Set;for(let e of this._visibilityExpression.getGlobalStateRefs())t.add(e);if(this._unevaluatedLayout)for(let e in this._unevaluatedLayout._values){let r=this._unevaluatedLayout._values[e];for(let i of r.getGlobalStateRefs())t.add(i)}for(let e of this._featureFilter.getGlobalStateRefs())t.add(e);return t}getPaintAffectingGlobalStateRefs(){var e;let t=new globalThis.Map;if(this._transitionablePaint)for(let r in this._transitionablePaint._values){let i=this._transitionablePaint._values[r].value;for(let n of i.getGlobalStateRefs()){let a=(e=t.get(n))!=null?e:[];a.push({name:r,value:i.value}),t.set(n,a)}}return t}getVisibilityAffectingGlobalStateRefs(){return this._visibilityExpression.getGlobalStateRefs()}setLayoutProperty(t,e,r={}){var i;if(t==="visibility"){this.visibility=e,this._visibilityExpression.setValue(e),this.recalculateVisibility();return}if((i=this._transitionablePaint)!=null&&i.hasProperty(t)){this.fire(new xa(Error(t+qh)));return}e!=null&&this._validate(Oh.layoutProperty,`layers.${this.id}.layout.${t}`,t,e,r)||this._unevaluatedLayout.setValue(t,e)}getPaintProperty(t){var e,r;if(t.endsWith("-transition")){let i=t.slice(0,-11);if(i==="visibility"||(e=this._unevaluatedLayout)!=null&&e.hasProperty(i))throw Error(t+Ns);return this._transitionablePaint.getTransition(i)}if(t==="visibility"||(r=this._unevaluatedLayout)!=null&&r.hasProperty(t))throw Error(t+Ns);return this._transitionablePaint.getValue(t)}setPaintProperty(t,e,r={}){var i;if(t==="visibility"||(i=this._unevaluatedLayout)!=null&&i.hasProperty(t))return this.fire(new xa(Error(t+Ns))),!1;if(e!=null&&this._validate(Oh.paintProperty,`layers.${this.id}.paint.${t}`,t,e,r))return!1;if(t.endsWith("-transition"))return this._transitionablePaint.setTransition(t.slice(0,-11),e||void 0),!1;{let n=this._transitionablePaint._values[t],a=n.property.specification["property-type"]==="cross-faded-data-driven",s=n.value.isDataDriven(),o=n.value;this._transitionablePaint.setValue(t,e),this._handleSpecialPaintPropertyUpdate(t);let l=this._transitionablePaint._values[t].value;return l.isDataDriven()||s||a||this._handleOverridablePaintPropertyUpdate(t,o,l)}}_handleSpecialPaintPropertyUpdate(t){}_handleOverridablePaintPropertyUpdate(t,e,r){return!1}isHidden(t=this.minzoom,e=!1){return this.minzoom&&t<(e?Math.floor(this.minzoom):this.minzoom)||this.maxzoom&&t>=this.maxzoom?!0:this._evaluatedVisibility==="none"}updateTransitions(t){this._transitioningPaint=this._transitionablePaint.transitioned(t,this._transitioningPaint)}retainPriorGlobalState(t,e){var r;(r=this._transitionablePaint)==null||r.retainPriorGlobalState(t,e,this._transitioningPaint)}hasTransition(){return this._transitioningPaint.hasTransition()}recalculateVisibility(){this._evaluatedVisibility=this._visibilityExpression.evaluate()}recalculate(t,e){t.getCrossfadeParameters&&(this._crossfadeParameters=t.getCrossfadeParameters()),this._unevaluatedLayout&&(this.layout=this._unevaluatedLayout.possiblyEvaluate(t,void 0,e)),this.paint=this._transitioningPaint.possiblyEvaluate(t,void 0,e)}serialize(){var e,r;let t={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:(e=this._unevaluatedLayout)==null?void 0:e.serialize(),paint:(r=this._transitionablePaint)==null?void 0:r.serialize()};return this.visibility&&(t.layout||(t.layout={}),t.layout.visibility=this.visibility),K1(t,(i,n)=>i!==void 0&&!(n==="layout"&&!Object.keys(i).length)&&!(n==="paint"&&!Object.keys(i).length))}_validate(t,e,r,i,n={}){return sg(this,t,{key:e,layerType:this.type,objectKey:r,value:i},n)}is3D(){return!1}isTileClipped(){return!1}hasOffscreenPass(){return!1}resize(){}isStateDependent(){for(let t in this.paint._values){let e=this.paint.get(t);if(e instanceof le&&ii(e.property.specification)&&(e.value.kind==="source"||e.value.kind==="composite")&&e.value.isStateDependent)return!0}return!1}},jh,hg=()=>jh||(jh=new Yt({"raster-opacity":new R(D.paint_raster["raster-opacity"],"raster-opacity"),"raster-hue-rotate":new R(D.paint_raster["raster-hue-rotate"],"raster-hue-rotate"),"raster-brightness-min":new R(D.paint_raster["raster-brightness-min"],"raster-brightness-min"),"raster-brightness-max":new R(D.paint_raster["raster-brightness-max"],"raster-brightness-max"),"raster-saturation":new R(D.paint_raster["raster-saturation"],"raster-saturation"),"raster-contrast":new R(D.paint_raster["raster-contrast"],"raster-contrast"),resampling:new R(D.paint_raster.resampling,"resampling"),"raster-resampling":new R(D.paint_raster["raster-resampling"],"raster-resampling"),"raster-fade-duration":new R(D.paint_raster["raster-fade-duration"],"raster-fade-duration")})),cg={get paint(){return hg()}};var pg=class extends ye{constructor(t,e){super(t,cg,e)}},fg={Int8:Int8Array,Uint8:Uint8Array,Int16:Int16Array,Uint16:Uint16Array,Int32:Int32Array,Uint32:Uint32Array,Float32:Float32Array},Sn=class{constructor(t,e){this._structArray=t,this._pos1=e*this.size,this._pos2=this._pos1/2,this._pos4=this._pos1/4,this._pos8=this._pos1/8}},vt=class{constructor(){this.isTransferred=!1,this.capacity=-1,this.resize(0)}static serialize(t,e){return t._trim(),e&&(t.isTransferred=!0,e.push(t.arrayBuffer)),{length:t.length,arrayBuffer:t.arrayBuffer}}static deserialize(t){let e=Object.create(this.prototype);return e.arrayBuffer=t.arrayBuffer,e.length=t.length,e.capacity=t.arrayBuffer.byteLength/e.bytesPerElement,e._refreshViews(),e}_trim(){this.length!==this.capacity&&(this.capacity=this.length,this.arrayBuffer=this.arrayBuffer.slice(0,this.length*this.bytesPerElement),this._refreshViews())}clear(){this.length=0}resize(t){this.reserve(t),this.length=t}reserve(t){if(t>this.capacity){this.capacity=Math.max(t,Math.floor(this.capacity*5),128),this.arrayBuffer=new ArrayBuffer(this.capacity*this.bytesPerElement);let e=this.uint8;this._refreshViews(),e&&this.uint8.set(e)}}_refreshViews(){throw Error("_refreshViews() must be implemented by each concrete StructArray layout")}freeBufferAfterUpload(){this.arrayBuffer=new ArrayBuffer(0),this._refreshViews()}};function Et(t,e=1){let r=0,i=0;return{members:t.map(n=>{let a=dg(n.type),s=r=Gh(r,Math.max(e,a)),o=n.components||1;return i=Math.max(i,a),r+=a*o,{name:n.name,type:n.type,components:o,offset:s}}),size:Gh(r,Math.max(i,e)),alignment:e}}function dg(t){return fg[t].BYTES_PER_ELEMENT}function Gh(t,e){return Math.ceil(t/e)*e}var pn=class extends vt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(t,e){let r=this.length;return this.resize(r+1),this.emplace(r,t,e)}emplace(t,e,r){let i=t*2;return this.int16[i+0]=e,this.int16[i+1]=r,t}};pn.prototype.bytesPerElement=4,C("StructArrayLayout2i4",pn);var mo=class extends vt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(t,e,r){let i=this.length;return this.resize(i+1),this.emplace(i,t,e,r)}emplace(t,e,r,i){let n=t*3;return this.int16[n+0]=e,this.int16[n+1]=r,this.int16[n+2]=i,t}};mo.prototype.bytesPerElement=6,C("StructArrayLayout3i6",mo);var Xh=class extends vt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(t,e,r,i){let n=this.length;return this.resize(n+1),this.emplace(n,t,e,r,i)}emplace(t,e,r,i,n){let a=t*4;return this.int16[a+0]=e,this.int16[a+1]=r,this.int16[a+2]=i,this.int16[a+3]=n,t}};Xh.prototype.bytesPerElement=8,C("StructArrayLayout4i8",Xh);var go=class extends vt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(t,e,r,i,n,a){let s=this.length;return this.resize(s+1),this.emplace(s,t,e,r,i,n,a)}emplace(t,e,r,i,n,a,s){let o=t*6;return this.int16[o+0]=e,this.int16[o+1]=r,this.int16[o+2]=i,this.int16[o+3]=n,this.int16[o+4]=a,this.int16[o+5]=s,t}};go.prototype.bytesPerElement=12,C("StructArrayLayout2i4i12",go);var xo=class extends vt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(t,e,r,i,n,a){let s=this.length;return this.resize(s+1),this.emplace(s,t,e,r,i,n,a)}emplace(t,e,r,i,n,a,s){let o=t*4,l=t*8;return this.int16[o+0]=e,this.int16[o+1]=r,this.uint8[l+4]=i,this.uint8[l+5]=n,this.uint8[l+6]=a,this.uint8[l+7]=s,t}};xo.prototype.bytesPerElement=8,C("StructArrayLayout2i4ub8",xo);var fn=class extends vt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(t,e){let r=this.length;return this.resize(r+1),this.emplace(r,t,e)}emplace(t,e,r){let i=t*2;return this.float32[i+0]=e,this.float32[i+1]=r,t}};fn.prototype.bytesPerElement=8,C("StructArrayLayout2f8",fn);var vo=class extends vt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(t,e,r,i,n,a,s,o,l,u){let h=this.length;return this.resize(h+1),this.emplace(h,t,e,r,i,n,a,s,o,l,u)}emplace(t,e,r,i,n,a,s,o,l,u,h){let c=t*10;return this.uint16[c+0]=e,this.uint16[c+1]=r,this.uint16[c+2]=i,this.uint16[c+3]=n,this.uint16[c+4]=a,this.uint16[c+5]=s,this.uint16[c+6]=o,this.uint16[c+7]=l,this.uint16[c+8]=u,this.uint16[c+9]=h,t}};vo.prototype.bytesPerElement=20,C("StructArrayLayout10ui20",vo);var bo=class extends vt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(t,e,r,i,n,a,s,o){let l=this.length;return this.resize(l+1),this.emplace(l,t,e,r,i,n,a,s,o)}emplace(t,e,r,i,n,a,s,o,l){let u=t*8;return this.uint16[u+0]=e,this.uint16[u+1]=r,this.uint16[u+2]=i,this.uint16[u+3]=n,this.uint16[u+4]=a,this.uint16[u+5]=s,this.uint16[u+6]=o,this.uint16[u+7]=l,t}};bo.prototype.bytesPerElement=16,C("StructArrayLayout8ui16",bo);var wo=class extends vt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(t,e,r,i,n,a,s,o,l,u,h,c,p){let f=this.length;return this.resize(f+1),this.emplace(f,t,e,r,i,n,a,s,o,l,u,h,c,p)}emplace(t,e,r,i,n,a,s,o,l,u,h,c,p,f){let d=t*14,y=t*7;return this.int16[d+0]=e,this.int16[d+1]=r,this.int16[d+2]=i,this.int16[d+3]=n,this.uint16[d+4]=a,this.uint16[d+5]=s,this.uint16[d+6]=o,this.uint16[d+7]=l,this.int16[d+8]=u,this.int16[d+9]=h,this.int16[d+10]=c,this.int16[d+11]=p,this.float32[y+6]=f,t}};wo.prototype.bytesPerElement=28,C("StructArrayLayout4i4ui4i1f28",wo);var Do=class extends vt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(t,e,r){let i=this.length;return this.resize(i+1),this.emplace(i,t,e,r)}emplace(t,e,r,i){let n=t*3;return this.float32[n+0]=e,this.float32[n+1]=r,this.float32[n+2]=i,t}};Do.prototype.bytesPerElement=12,C("StructArrayLayout3f12",Do);var _o=class extends vt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)}emplaceBack(t){let e=this.length;return this.resize(e+1),this.emplace(e,t)}emplace(t,e){let r=t*1;return this.uint32[r+0]=e,t}};_o.prototype.bytesPerElement=4,C("StructArrayLayout1ul4",_o);var Ao=class extends vt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(t,e,r,i,n,a,s,o,l){let u=this.length;return this.resize(u+1),this.emplace(u,t,e,r,i,n,a,s,o,l)}emplace(t,e,r,i,n,a,s,o,l,u){let h=t*10,c=t*5;return this.int16[h+0]=e,this.int16[h+1]=r,this.int16[h+2]=i,this.int16[h+3]=n,this.int16[h+4]=a,this.int16[h+5]=s,this.uint32[c+3]=o,this.uint16[h+8]=l,this.uint16[h+9]=u,t}};Ao.prototype.bytesPerElement=20,C("StructArrayLayout6i1ul2ui20",Ao);var So=class extends vt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(t,e,r,i,n,a){let s=this.length;return this.resize(s+1),this.emplace(s,t,e,r,i,n,a)}emplace(t,e,r,i,n,a,s){let o=t*6;return this.int16[o+0]=e,this.int16[o+1]=r,this.int16[o+2]=i,this.int16[o+3]=n,this.int16[o+4]=a,this.int16[o+5]=s,t}};So.prototype.bytesPerElement=12,C("StructArrayLayout2i2i2i12",So);var Yh=class extends vt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(t,e,r,i,n){let a=this.length;return this.resize(a+1),this.emplace(a,t,e,r,i,n)}emplace(t,e,r,i,n,a){let s=t*4,o=t*8;return this.float32[s+0]=e,this.float32[s+1]=r,this.float32[s+2]=i,this.int16[o+6]=n,this.int16[o+7]=a,t}};Yh.prototype.bytesPerElement=16,C("StructArrayLayout2f1f2i16",Yh);var Eo=class extends vt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(t,e,r,i,n,a){let s=this.length;return this.resize(s+1),this.emplace(s,t,e,r,i,n,a)}emplace(t,e,r,i,n,a,s){let o=t*16,l=t*4,u=t*8;return this.uint8[o+0]=e,this.uint8[o+1]=r,this.float32[l+1]=i,this.float32[l+2]=n,this.int16[u+6]=a,this.int16[u+7]=s,t}};Eo.prototype.bytesPerElement=16,C("StructArrayLayout2ub2f2i16",Eo);var Fo=class extends vt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(t,e,r){let i=this.length;return this.resize(i+1),this.emplace(i,t,e,r)}emplace(t,e,r,i){let n=t*3;return this.uint16[n+0]=e,this.uint16[n+1]=r,this.uint16[n+2]=i,t}};Fo.prototype.bytesPerElement=6,C("StructArrayLayout3ui6",Fo);var To=class extends vt{_refreshViews(){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)}emplaceBack(t,e,r,i,n,a,s,o,l,u,h,c,p,f,d,y,m,g){let x=this.length;return this.resize(x+1),this.emplace(x,t,e,r,i,n,a,s,o,l,u,h,c,p,f,d,y,m,g)}emplace(t,e,r,i,n,a,s,o,l,u,h,c,p,f,d,y,m,g,x){let v=t*26,b=t*13,w=t*52;return this.int16[v+0]=e,this.int16[v+1]=r,this.uint16[v+2]=i,this.uint16[v+3]=n,this.uint32[b+2]=a,this.uint32[b+3]=s,this.uint32[b+4]=o,this.uint16[v+10]=l,this.uint16[v+11]=u,this.uint16[v+12]=h,this.float32[b+7]=c,this.float32[b+8]=p,this.uint8[w+36]=f,this.uint8[w+37]=d,this.uint8[w+38]=y,this.uint32[b+10]=m,this.int16[v+22]=g,this.float32[b+12]=x,t}};To.prototype.bytesPerElement=52,C("StructArrayLayout2i2ui3ul3ui2f3ub1ul1i1f52",To);var ko=class extends vt{_refreshViews(){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)}emplaceBack(t,e,r,i,n,a,s,o,l,u,h,c,p,f,d,y,m,g,x,v,b,w,_,A,S,T,L,O,B){let V=this.length;return this.resize(V+1),this.emplace(V,t,e,r,i,n,a,s,o,l,u,h,c,p,f,d,y,m,g,x,v,b,w,_,A,S,T,L,O,B)}emplace(t,e,r,i,n,a,s,o,l,u,h,c,p,f,d,y,m,g,x,v,b,w,_,A,S,T,L,O,B,V){let F=t*34,$=t*17;return this.int16[F+0]=e,this.int16[F+1]=r,this.int16[F+2]=i,this.int16[F+3]=n,this.int16[F+4]=a,this.int16[F+5]=s,this.int16[F+6]=o,this.int16[F+7]=l,this.uint16[F+8]=u,this.uint16[F+9]=h,this.uint16[F+10]=c,this.uint16[F+11]=p,this.uint16[F+12]=f,this.uint16[F+13]=d,this.uint16[F+14]=y,this.uint16[F+15]=m,this.uint16[F+16]=g,this.uint16[F+17]=x,this.uint16[F+18]=v,this.uint16[F+19]=b,this.uint16[F+20]=w,this.uint16[F+21]=_,this.uint16[F+22]=A,this.uint32[$+12]=S,this.float32[$+13]=T,this.float32[$+14]=L,this.uint16[F+30]=O,this.uint16[F+31]=B,this.float32[$+16]=V,t}};ko.prototype.bytesPerElement=68,C("StructArrayLayout8i15ui1ul2f2ui1f68",ko);var Sa=class extends vt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(t){let e=this.length;return this.resize(e+1),this.emplace(e,t)}emplace(t,e){let r=t*1;return this.float32[r+0]=e,t}};Sa.prototype.bytesPerElement=4,C("StructArrayLayout1f4",Sa);var Io=class extends vt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(t,e,r){let i=this.length;return this.resize(i+1),this.emplace(i,t,e,r)}emplace(t,e,r,i){let n=t*6,a=t*3;return this.uint16[n+0]=e,this.float32[a+1]=r,this.float32[a+2]=i,t}};Io.prototype.bytesPerElement=12,C("StructArrayLayout1ui2f12",Io);var Co=class extends vt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(t,e,r){let i=this.length;return this.resize(i+1),this.emplace(i,t,e,r)}emplace(t,e,r,i){let n=t*2,a=t*4;return this.uint32[n+0]=e,this.uint16[a+2]=r,this.uint16[a+3]=i,t}};Co.prototype.bytesPerElement=8,C("StructArrayLayout1ul2ui8",Co);var Mo=class extends vt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(t,e){let r=this.length;return this.resize(r+1),this.emplace(r,t,e)}emplace(t,e,r){let i=t*2;return this.uint16[i+0]=e,this.uint16[i+1]=r,t}};Mo.prototype.bytesPerElement=4,C("StructArrayLayout2ui4",Mo);var Wh=class extends vt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(t){let e=this.length;return this.resize(e+1),this.emplace(e,t)}emplace(t,e){let r=t*1;return this.uint16[r+0]=e,t}};Wh.prototype.bytesPerElement=2,C("StructArrayLayout1ui2",Wh);var Bo=class extends vt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(t,e,r,i){let n=this.length;return this.resize(n+1),this.emplace(n,t,e,r,i)}emplace(t,e,r,i,n){let a=t*4;return this.float32[a+0]=e,this.float32[a+1]=r,this.float32[a+2]=i,this.float32[a+3]=n,t}};Bo.prototype.bytesPerElement=16,C("StructArrayLayout4f16",Bo);var nd=class extends Sn{get anchorPointX(){return this._structArray.int16[this._pos2+0]}get anchorPointY(){return this._structArray.int16[this._pos2+1]}get x1(){return this._structArray.int16[this._pos2+2]}get y1(){return this._structArray.int16[this._pos2+3]}get x2(){return this._structArray.int16[this._pos2+4]}get y2(){return this._structArray.int16[this._pos2+5]}get featureIndex(){return this._structArray.uint32[this._pos4+3]}get sourceLayerIndex(){return this._structArray.uint16[this._pos2+8]}get bucketIndex(){return this._structArray.uint16[this._pos2+9]}get anchorPoint(){return new M(this.anchorPointX,this.anchorPointY)}};nd.prototype.size=20;var Rl=class extends Ao{get(t){return new nd(this,t)}};C("CollisionBoxArray",Rl);var ad=class extends Sn{get anchorX(){return this._structArray.int16[this._pos2+0]}get anchorY(){return this._structArray.int16[this._pos2+1]}get glyphStartIndex(){return this._structArray.uint16[this._pos2+2]}get numGlyphs(){return this._structArray.uint16[this._pos2+3]}get vertexStartIndex(){return this._structArray.uint32[this._pos4+2]}get lineStartIndex(){return this._structArray.uint32[this._pos4+3]}get lineLength(){return this._structArray.uint32[this._pos4+4]}get segment(){return this._structArray.uint16[this._pos2+10]}get lowerSize(){return this._structArray.uint16[this._pos2+11]}get upperSize(){return this._structArray.uint16[this._pos2+12]}get lineOffsetX(){return this._structArray.float32[this._pos4+7]}get lineOffsetY(){return this._structArray.float32[this._pos4+8]}get writingMode(){return this._structArray.uint8[this._pos1+36]}get placedOrientation(){return this._structArray.uint8[this._pos1+37]}set placedOrientation(t){this._structArray.uint8[this._pos1+37]=t}get hidden(){return this._structArray.uint8[this._pos1+38]}set hidden(t){this._structArray.uint8[this._pos1+38]=t}get crossTileID(){return this._structArray.uint32[this._pos4+10]}set crossTileID(t){this._structArray.uint32[this._pos4+10]=t}get associatedIconIndex(){return this._structArray.int16[this._pos2+22]}get heightOffset(){return this._structArray.float32[this._pos4+12]}};ad.prototype.size=52;var sd=class extends To{get(t){return new ad(this,t)}};C("PlacedSymbolArray",sd);var od=class extends Sn{get anchorX(){return this._structArray.int16[this._pos2+0]}get anchorY(){return this._structArray.int16[this._pos2+1]}get rightJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+2]}get centerJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+3]}get leftJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+4]}get verticalPlacedTextSymbolIndex(){return this._structArray.int16[this._pos2+5]}get placedIconSymbolIndex(){return this._structArray.int16[this._pos2+6]}get verticalPlacedIconSymbolIndex(){return this._structArray.int16[this._pos2+7]}get key(){return this._structArray.uint16[this._pos2+8]}get textBoxStartIndex(){return this._structArray.uint16[this._pos2+9]}get textBoxEndIndex(){return this._structArray.uint16[this._pos2+10]}get verticalTextBoxStartIndex(){return this._structArray.uint16[this._pos2+11]}get verticalTextBoxEndIndex(){return this._structArray.uint16[this._pos2+12]}get iconBoxStartIndex(){return this._structArray.uint16[this._pos2+13]}get iconBoxEndIndex(){return this._structArray.uint16[this._pos2+14]}get verticalIconBoxStartIndex(){return this._structArray.uint16[this._pos2+15]}get verticalIconBoxEndIndex(){return this._structArray.uint16[this._pos2+16]}get featureIndex(){return this._structArray.uint16[this._pos2+17]}get numHorizontalGlyphVertices(){return this._structArray.uint16[this._pos2+18]}get numVerticalGlyphVertices(){return this._structArray.uint16[this._pos2+19]}get numIconVertices(){return this._structArray.uint16[this._pos2+20]}get numVerticalIconVertices(){return this._structArray.uint16[this._pos2+21]}get useRuntimeCollisionCircles(){return this._structArray.uint16[this._pos2+22]}get crossTileID(){return this._structArray.uint32[this._pos4+12]}set crossTileID(t){this._structArray.uint32[this._pos4+12]=t}get textBoxScale(){return this._structArray.float32[this._pos4+13]}get collisionCircleDiameter(){return this._structArray.float32[this._pos4+14]}get textAnchorOffsetStartIndex(){return this._structArray.uint16[this._pos2+30]}get textAnchorOffsetEndIndex(){return this._structArray.uint16[this._pos2+31]}get heightOffset(){return this._structArray.float32[this._pos4+16]}};od.prototype.size=68;var ld=class extends ko{get(t){return new od(this,t)}};C("SymbolInstanceArray",ld);var ud=class extends Sa{getoffsetX(t){return this.float32[t*1+0]}};C("GlyphOffsetArray",ud);var hd=class extends mo{getx(t){return this.int16[t*3+0]}gety(t){return this.int16[t*3+1]}gettileUnitDistanceFromAnchor(t){return this.int16[t*3+2]}};C("SymbolLineVertexArray",hd);var cd=class extends Sn{get textAnchor(){return this._structArray.uint16[this._pos2+0]}get textOffset0(){return this._structArray.float32[this._pos4+1]}get textOffset1(){return this._structArray.float32[this._pos4+2]}};cd.prototype.size=12;var pd=class extends Io{get(t){return new cd(this,t)}};C("TextAnchorOffsetArray",pd);var fd=class extends Sn{get featureIndex(){return this._structArray.uint32[this._pos4+0]}get sourceLayerIndex(){return this._structArray.uint16[this._pos2+2]}get bucketIndex(){return this._structArray.uint16[this._pos2+3]}};fd.prototype.size=8;var dd=class extends Co{get(t){return new fd(this,t)}};C("FeatureIndexArray",dd);var yg=class extends pn{};var mg=class extends pn{},gg=class extends pn{},xg=class extends go{},vg=class extends xo{},bg=class extends fn{},Vr=class extends vo{},Zh=class extends bo{},wg=class extends wo{},Dg=class extends Do{},_g=class extends _o{},Hh=class extends So{};var Ag=class extends Eo{};var En=class extends Fo{},Po=class extends Mo{};var zo=Et([{name:"a_pos",components:2,type:"Int16"}],4),Sg=zo.members;zo.size,zo.alignment;var ie=class Ur{constructor(e=[]){this._forceNewSegmentOnNextPrepare=!1,this.segments=e}prepareSegment(e,r,i,n){let a=this.segments[this.segments.length-1];return e>Ur.MAX_VERTEX_ARRAY_LENGTH&&Mt(`Max vertices per segment is ${Ur.MAX_VERTEX_ARRAY_LENGTH}: bucket requested ${e}. Consider using the \\`fillLargeMeshArrays\\` function if you require meshes with more than ${Ur.MAX_VERTEX_ARRAY_LENGTH} vertices.`),this._forceNewSegmentOnNextPrepare||!a||a.vertexLength+e>Ur.MAX_VERTEX_ARRAY_LENGTH||a.sortKey!==n?this.createNewSegment(r,i,n):a}createNewSegment(e,r,i){let n={vertexOffset:e.length,primitiveOffset:r.length,vertexLength:0,primitiveLength:0,vaos:{}};return i!==void 0&&(n.sortKey=i),this._forceNewSegmentOnNextPrepare=!1,this.segments.push(n),n}getOrCreateLatestSegment(e,r,i){return this.prepareSegment(0,e,r,i)}forceNewSegmentOnNextPrepare(){this._forceNewSegmentOnNextPrepare=!0}get(){return this.segments}destroy(){for(let e of this.segments)for(let r in e.vaos)e.vaos[r].destroy()}static simpleSegment(e,r,i,n){return new Ur([{vertexOffset:e,primitiveOffset:r,vertexLength:i,primitiveLength:n,vaos:{},sortKey:0}])}};ie.MAX_VERTEX_ARRAY_LENGTH=2**16-1,C("SegmentVector",ie);function Kh(t,e){return t=en(Math.floor(t),0,255),e=en(Math.floor(e),0,255),256*t+e}var Eg=Et([{name:"a_pattern_from",components:4,type:"Uint16"},{name:"a_pattern_to",components:4,type:"Uint16"},{name:"a_pixel_ratio_from",components:1,type:"Uint16"},{name:"a_pixel_ratio_to",components:1,type:"Uint16"}]),Fg=Et([{name:"a_dasharray_from",components:4,type:"Uint16"},{name:"a_dasharray_to",components:4,type:"Uint16"}]),Tg=ml(((t,e)=>{function r(i,n){for(var a=i.length&3,s=i.length-a,o=n,l,u=3432918353,h=461845907,c,p=0;p>>16)*u&65535)<<16)&4294967295,c=c<<15|c>>>17,c=(c&65535)*h+(((c>>>16)*h&65535)<<16)&4294967295,o^=c,o=o<<13|o>>>19,l=(o&65535)*5+(((o>>>16)*5&65535)<<16)&4294967295,o=(l&65535)+27492+(((l>>>16)+58964&65535)<<16);switch(c=0,a){case 3:c^=(i.charCodeAt(p+2)&255)<<16;case 2:c^=(i.charCodeAt(p+1)&255)<<8;case 1:c^=i.charCodeAt(p)&255,c=(c&65535)*u+(((c>>>16)*u&65535)<<16)&4294967295,c=c<<15|c>>>17,c=(c&65535)*h+(((c>>>16)*h&65535)<<16)&4294967295,o^=c}return o^=i.length,o^=o>>>16,o=(o&65535)*2246822507+(((o>>>16)*2246822507&65535)<<16)&4294967295,o^=o>>>13,o=(o&65535)*3266489909+(((o>>>16)*3266489909&65535)<<16)&4294967295,o^=o>>>16,o>>>0}e!==void 0&&(e.exports=r)})),kg=ml(((t,e)=>{function r(i,n){for(var a=i.length,s=n^a,o=0,l;a>=4;)l=i.charCodeAt(o)&255|(i.charCodeAt(++o)&255)<<8|(i.charCodeAt(++o)&255)<<16|(i.charCodeAt(++o)&255)<<24,l=(l&65535)*1540483477+(((l>>>16)*1540483477&65535)<<16),l^=l>>>24,l=(l&65535)*1540483477+(((l>>>16)*1540483477&65535)<<16),s=(s&65535)*1540483477+(((s>>>16)*1540483477&65535)<<16)^l,a-=4,++o;switch(a){case 3:s^=(i.charCodeAt(o+2)&255)<<16;case 2:s^=(i.charCodeAt(o+1)&255)<<8;case 1:s^=i.charCodeAt(o)&255,s=(s&65535)*1540483477+(((s>>>16)*1540483477&65535)<<16)}return s^=s>>>13,s=(s&65535)*1540483477+(((s>>>16)*1540483477&65535)<<16),s^=s>>>15,s>>>0}e.exports=r})),Ea=M1(ml(((t,e)=>{var r=Tg(),i=kg();e.exports=r,e.exports.murmur3=r,e.exports.murmur2=i}))(),1),yd=class md{constructor(){this.ids=[],this.positions=[],this.indexed=!1}add(e,r,i,n){this.ids.push(Jh(e)),this.positions.push(r,i,n)}getPositions(e){if(!this.indexed)throw Error("Trying to get index, but feature positions are not indexed");let r=Jh(e),i=0,n=this.ids.length-1;for(;i>1;this.ids[s]>=r?n=s:i=s+1}let a=[];for(;this.ids[i]===r;){let s=this.positions[3*i],o=this.positions[3*i+1],l=this.positions[3*i+2];a.push({index:s,start:o,end:l}),i++}return a}static serialize(e,r){let i=new Float64Array(e.ids),n=new Uint32Array(e.positions);return Lo(i,n,0,i.length-1),r&&r.push(i.buffer,n.buffer),{ids:i,positions:n}}static deserialize(e){let r=new md;return r.ids=e.ids,r.positions=e.positions,r.indexed=!0,r}};function Jh(t){let e=+t;return!isNaN(e)&&e<=2**53-1?e:(0,Ea.default)(String(t))}function Lo(t,e,r,i){for(;r>1],a=r-1,s=i+1;for(;;){do a++;while(t[a]n);if(a>=s)break;Kn(t,a,s),Kn(e,3*a,3*s),Kn(e,3*a+1,3*s+1),Kn(e,3*a+2,3*s+2)}s-r`u_${i}`),this.type=r}setUniform(t,e,r){t.set(r.constantOr(this.value))}getBinding(t,e,r){return this.type==="color"?new Cg(t,e):new Nl(t,e)}},fr=class{constructor(t,e){this.uniformNames=e.map(r=>`u_${r}`),this.patternFrom=null,this.patternTo=null,this.pixelRatioFrom=1,this.pixelRatioTo=1}setConstantPatternPositions(t,e){this.pixelRatioFrom=e.pixelRatio,this.pixelRatioTo=t.pixelRatio,this.patternFrom=e.tlbr,this.patternTo=t.tlbr}setConstantDashPositions(t,e){this.dashTo=[0,t.y,t.height,t.width],this.dashFrom=[0,e.y,e.height,e.width]}setUniform(t,e,r,i){let n=null;i==="u_pattern_to"?n=this.patternTo:i==="u_pattern_from"?n=this.patternFrom:i==="u_dasharray_to"?n=this.dashTo:i==="u_dasharray_from"?n=this.dashFrom:i==="u_pixel_ratio_to"?n=this.pixelRatioTo:i==="u_pixel_ratio_from"&&(n=this.pixelRatioFrom),n!==null&&t.set(n)}getBinding(t,e,r){return r.startsWith("u_pattern")||r.startsWith("u_dasharray_")?new Ig(t,e):new Nl(t,e)}},Ce=class{constructor(t,e,r,i){this.expression=t,this.type=r,this.maxValue=0,this.paintVertexAttributes=e.map(n=>({name:`a_${n}`,type:"Float32",components:r==="color"?2:1,offset:0})),this.paintVertexArray=new i}populatePaintArray(t,e,r){let i=this.paintVertexArray.length,n=this.expression.evaluate(new st(0,r),e,{},r.canonical,[],r.formattedSection);this.paintVertexArray.resize(t),this._setPaintValue(i,t,n)}updatePaintArray(t,e,r,i,n){let a=this.expression.evaluate(new st(0,n),r,i);this._setPaintValue(t,e,a)}_setPaintValue(t,e,r){if(this.type==="color"){let i=Vo(r);for(let n=t;n`u_${s}_t`),this.type=r,this.useIntegerZoom=i,this.zoom=n,this.maxValue=0,this.paintVertexAttributes=e.map(s=>({name:`a_${s}`,type:"Float32",components:r==="color"?4:2,offset:0})),this.paintVertexArray=new a}populatePaintArray(t,e,r){let i=this.expression.evaluate(new st(this.zoom,r),e,{},r.canonical,[],r.formattedSection),n=this.expression.evaluate(new st(this.zoom+1,r),e,{},r.canonical,[],r.formattedSection),a=this.paintVertexArray.length;this.paintVertexArray.resize(t),this._setPaintValue(a,t,i,n)}updatePaintArray(t,e,r,i,n){let a=this.expression.evaluate(new st(this.zoom,n),r,i),s=this.expression.evaluate(new st(this.zoom+1,n),r,i);this._setPaintValue(t,e,a,s)}_setPaintValue(t,e,r,i){if(this.type==="color"){let n=Vo(r),a=Vo(i);for(let s=t;s`#define HAS_UNIFORM_${i}`))}return t}getBinderAttributes(){let t=[];for(let e in this.binders){let r=this.binders[e];if(r instanceof Ce||r instanceof ce)for(let i of r.paintVertexAttributes)t.push(i.name);else if(r instanceof Ze){let i=r.getVertexAttributes();for(let n of i)t.push(n.name)}}return t}getBinderUniforms(){let t=[];for(let e in this.binders){let r=this.binders[e];if(r instanceof qi||r instanceof fr||r instanceof ce)for(let i of r.uniformNames)t.push(i)}return t}getPaintVertexBuffers(){return this._buffers}getUniforms(t,e){let r=[];for(let i in this.binders){let n=this.binders[i];if(n instanceof qi||n instanceof fr||n instanceof ce){for(let a of n.uniformNames)if(e[a]){let s=n.getBinding(t,e[a],a);r.push({name:a,property:i,binding:s})}}}return r}setUniforms(t,e,r,i){for(let{name:n,property:a,binding:s}of e)this.binders[a].setUniform(s,i,r.get(a),n)}updatePaintBuffers(t){this._buffers=[];for(let e in this.binders){let r=this.binders[e];if(t&&r instanceof Ze){let i=t.fromScale===2?r.zoomInPaintVertexBuffer:r.zoomOutPaintVertexBuffer;i&&this._buffers.push(i)}else(r instanceof Ce||r instanceof ce)&&r.paintVertexBuffer&&this._buffers.push(r.paintVertexBuffer)}}upload(t){for(let e in this.binders){let r=this.binders[e];(r instanceof Ce||r instanceof ce||r instanceof Ze)&&r.upload(t)}this.updatePaintBuffers()}destroy(){for(let t in this.binders){let e=this.binders[t];(e instanceof Ce||e instanceof ce||e instanceof Ze)&&e.destroy()}}},Dr=class{constructor(t,e,r=()=>!0){this.programConfigurations={};for(let i of t)this.programConfigurations[i.id]=new vd(i,e,r);this.needsUpload=!1,this._featureMap=new yd,this._bufferOffset=0}populatePaintArrays(t,e,r,i){for(let n in this.programConfigurations)this.programConfigurations[n].populatePaintArrays(t,e,i);e.id!==void 0&&this._featureMap.add(e.id,r,this._bufferOffset,t),this._bufferOffset=t,this.needsUpload=!0}updatePaintArrays(t,e,r,i){for(let n of r)this.needsUpload=this.programConfigurations[n.id].updatePaintArrays(t,this._featureMap,e,n,i)||this.needsUpload}get(t){return this.programConfigurations[t]}upload(t){if(this.needsUpload){for(let e in this.programConfigurations)this.programConfigurations[e].upload(t);this.needsUpload=!1}}destroy(){for(let t in this.programConfigurations)this.programConfigurations[t].destroy()}};function Mg(t,e){return{"text-opacity":["opacity"],"icon-opacity":["opacity"],"text-color":["fill_color"],"icon-color":["fill_color"],"text-halo-color":["halo_color"],"icon-halo-color":["halo_color"],"text-halo-blur":["halo_blur"],"icon-halo-blur":["halo_blur"],"text-halo-width":["halo_width"],"icon-halo-width":["halo_width"],"line-gap-width":["gapwidth"],"line-dasharray":["dasharray_to","dasharray_from"],"line-pattern":["pattern_to","pattern_from","pixel_ratio_to","pixel_ratio_from"],"fill-pattern":["pattern_to","pattern_from","pixel_ratio_to","pixel_ratio_from"],"fill-extrusion-pattern":["pattern_to","pattern_from","pixel_ratio_to","pixel_ratio_from"]}[t]||[t.replace(`${e}-`,"").replace(/-/g,"_")]}function Bg(t){return{"line-pattern":{source:Vr,composite:Vr},"fill-pattern":{source:Vr,composite:Vr},"fill-extrusion-pattern":{source:Vr,composite:Vr},"line-dasharray":{source:Zh,composite:Zh}}[t]}function Qh(t,e,r){var n;let i={color:{source:fn,composite:Bo},number:{source:Sa,composite:fn}};return((n=Bg(t))==null?void 0:n[r])||i[e][r]}C("ConstantBinder",qi),C("CrossFadedConstantBinder",fr),C("SourceExpressionBinder",Ce),C("CrossFadedPatternBinder",gd),C("CrossFadedDasharrayBinder",xd),C("CompositeExpressionBinder",ce),C("ProgramConfiguration",vd,{omit:["_buffers"]}),C("ProgramConfigurationSet",Dr);var Oo=2**14-1,tc=-Oo-1;function Fr(t){let e=gt/t.extent,r=t.loadGeometry();for(let i of r)for(let n of i){let a=Math.round(n.x*e),s=Math.round(n.y*e);n.x=en(a,tc,Oo),n.y=en(s,tc,Oo),(an.x+1||sn.y+1)&&Mt("Geometry exceeds allowed extent, reduce your vector tile buffer size")}return r}function hi(t,e){return{type:t.type,id:t.id,properties:t.properties,geometry:e?Fr(t):[]}}var ec=-32768;function Pg(t,e,r,i,n){t.emplaceBack(ec+e*8+i,ec+r*8+n)}var Ul=class{constructor(t){this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map(e=>e.id),this.index=t.index,this.hasDependencies=!1,this.layoutVertexArray=new mg,this.indexArray=new En,this.segments=new ie,this.programConfigurations=new Dr(t.layers,t.zoom),this.stateDependentLayerIds=this.layers.filter(e=>e.isStateDependent()).map(e=>e.id)}populate(t,e,r){let i=this.layers[0],n=[],a=null,s=!1,o=i.type==="heatmap";if(i.type==="circle"){let c=i;a=c.layout.get("circle-sort-key"),s=!a.isConstant(),o||(o=c.paint.get("circle-pitch-alignment")==="map")}let l=o?e.subdivisionGranularity.circle:1,u=new st(this.zoom),h=this.layers[0]._featureFilter.needGeometry;for(let{feature:c,id:p,index:f,sourceLayerIndex:d}of t){let y=hi(c,h);if(!this.layers[0]._featureFilter.filter(u,y,r))continue;let m=s?a.evaluate(y,{},r):void 0,g={id:p,properties:c.properties,type:c.type,sourceLayerIndex:d,index:f,geometry:h?y.geometry:Fr(c),patterns:{},sortKey:m};n.push(g)}s&&n.sort((c,p)=>c.sortKey-p.sortKey);for(let c of n){let{geometry:p,index:f,sourceLayerIndex:d}=c,y=t[f].feature;this.addFeature(c,p,f,r,l),e.featureIndex.insert(y,p,f,d,this.index)}}update(t,e,r){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(t,e,this.stateDependentLayers,{imagePositions:r})}addFeatures(t){}isEmpty(){return this.layoutVertexArray.length===0}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(t){this.uploaded||(this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,Sg),this.indexBuffer=t.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(t),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())}addFeature(t,e,r,i,n=1){let a;switch(n){case 1:a=[0,7];break;case 3:a=[0,2,5,7];break;case 5:a=[0,1,3,4,6,7];break;case 7:a=[0,1,2,3,4,5,6,7];break;default:throw Error(`Invalid circle bucket granularity: ${n}; valid values are 1, 3, 5, 7.`)}let s=a.length;for(let o of e)for(let l of o){let u=l.x,h=l.y;if(u<0||u>=8192||h<0||h>=8192)continue;let c=this.segments.prepareSegment(s*s,this.layoutVertexArray,this.indexArray,t.sortKey),p=c.vertexLength;for(let f=0;f=3){for(let n of i)if(oi(t,n))return!0}if(Vg(t,i,r))return!0}return!1}function Vg(t,e,r){if(t.length>1){if(ql(t,e))return!0;for(let i of e)if(Ro(i,t,r))return!0}for(let i of t)if(Ro(i,e,r))return!0;return!1}function ql(t,e){if(t.length===0||e.length===0)return!1;for(let r=0;r1?t.distSqr(r):t.distSqr(r.sub(e)._mult(n)._add(e))}function rc(t,e){let r=!1,i,n,a;for(let s of t){i=s;for(let o=0,l=i.length-1;oe.y!=a.y>e.y&&e.x<(a.x-n.x)*(e.y-n.y)/(a.y-n.y)+n.x&&(r=!r)}return r}function oi(t,e){let r=!1;for(let i=0,n=t.length-1;ie.y!=s.y>e.y&&e.x<(s.x-a.x)*(e.y-a.y)/(s.y-a.y)+a.x&&(r=!r)}return r}function Rg(t,e,r,i,n){for(let s of t)if(e<=s.x&&r<=s.y&&i>=s.x&&n>=s.y)return!0;let a=[new M(e,r),new M(e,n),new M(i,n),new M(i,r)];if(t.length>2){for(let s of a)if(oi(t,s))return!0}for(let s=0;sn.x&&e.x>n.x||t.yn.y&&e.y>n.y)return!1;let a=Qe(t,e,r[0]);return a!==Qe(t,e,r[1])||a!==Qe(t,e,r[2])||a!==Qe(t,e,r[3])}function Wr(t,e,r){let i=e.paint.get(t).value;return i.kind==="constant"?i.value:r.programConfigurations.get(e.id).getMaxValue(t)}function Ka(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function Ja(t,e,r,i,n){if(!e[0]&&!e[1])return t;let a=M.convert(e)._mult(n);r==="viewport"&&a._rotate(-i);let s=[];for(let o of t)s.push(o.sub(a));return s}function Ng(t){let e=[];for(let r=0;rjl(n,e,r,i))}var ic,Wg=()=>ic||(ic=new Yt({"circle-sort-key":new U(D.layout_circle["circle-sort-key"],"circle-sort-key")})),nc,Zg=()=>nc||(nc=new Yt({"circle-radius":new U(D.paint_circle["circle-radius"],"circle-radius"),"circle-color":new U(D.paint_circle["circle-color"],"circle-color"),"circle-blur":new U(D.paint_circle["circle-blur"],"circle-blur"),"circle-opacity":new U(D.paint_circle["circle-opacity"],"circle-opacity"),"circle-translate":new R(D.paint_circle["circle-translate"],"circle-translate"),"circle-translate-anchor":new R(D.paint_circle["circle-translate-anchor"],"circle-translate-anchor"),"circle-pitch-scale":new R(D.paint_circle["circle-pitch-scale"],"circle-pitch-scale"),"circle-pitch-alignment":new R(D.paint_circle["circle-pitch-alignment"],"circle-pitch-alignment"),"circle-stroke-width":new U(D.paint_circle["circle-stroke-width"],"circle-stroke-width"),"circle-stroke-color":new U(D.paint_circle["circle-stroke-color"],"circle-stroke-color"),"circle-stroke-opacity":new U(D.paint_circle["circle-stroke-opacity"],"circle-stroke-opacity")})),Hg={get paint(){return Zg()},get layout(){return Wg()}};var Kg=class extends ye{constructor(t,e){super(t,Hg,e)}createBucket(t){return new Ul(t)}queryRadius(t){let e=t;return Wr("circle-radius",this,e)+Wr("circle-stroke-width",this,e)+Ka(this.paint.get("circle-translate"))}queryIntersectsFeature({queryGeometry:t,feature:e,featureState:r,geometry:i,transform:n,pixelsToTileUnits:a,unwrappedTileID:s,getElevation:o}){let l=Ja(t,this.paint.get("circle-translate"),this.paint.get("circle-translate-anchor"),-n.bearingInRadians,a),u=this.paint.get("circle-radius").evaluate(e,r)+this.paint.get("circle-stroke-width").evaluate(e,r),h=this.paint.get("circle-pitch-scale"),c=this.paint.get("circle-pitch-alignment"),p,f;return c==="map"?(p=l,f=u*a):(p=Yg(l,n,s,o),f=u),Dd({queryGeometry:p,size:f,transform:n,unwrappedTileID:s,getElevation:o,pitchAlignment:c,pitchScale:h},i)}},_d=class extends Ul{};C("HeatmapBucket",_d,{omit:["layers"]});var ac,Jg=()=>ac||(ac=new Yt({"heatmap-radius":new U(D.paint_heatmap["heatmap-radius"],"heatmap-radius"),"heatmap-weight":new U(D.paint_heatmap["heatmap-weight"],"heatmap-weight"),"heatmap-intensity":new R(D.paint_heatmap["heatmap-intensity"],"heatmap-intensity"),"heatmap-color":new Za(D.paint_heatmap["heatmap-color"],"heatmap-color"),"heatmap-opacity":new R(D.paint_heatmap["heatmap-opacity"],"heatmap-opacity")})),Qg={get paint(){return Jg()}};function Gl(t,{width:e,height:r},i,n){if(!n)n=new Uint8Array(e*r*i);else if(n instanceof Uint8ClampedArray)n=new Uint8Array(n.buffer);else if(n.length!==e*r*i)throw RangeError(`mismatched image size. expected: ${n.length} but got: ${e*r*i}`);return t.width=e,t.height=r,t.data=n,t}function Ad(t,{width:e,height:r},i){if(e===t.width&&r===t.height)return;let n=Gl({},{width:e,height:r},i);Xl(t,n,{x:0,y:0},{x:0,y:0},{width:Math.min(t.width,e),height:Math.min(t.height,r)},i),t.width=e,t.height=r,t.data=n.data}function Xl(t,e,r,i,n,a){if(n.width===0||n.height===0)return e;if(n.width>t.width||n.height>t.height||r.x>t.width-n.width||r.y>t.height-n.height)throw RangeError("out of range source coordinates for image copy");if(n.width>e.width||n.height>e.height||i.x>e.width-n.width||i.y>e.height-n.height)throw RangeError("out of range destination coordinates for image copy");let s=t.data,o=e.data;if(s===o)throw Error("srcData equals dstData, so image is already copied");for(let l=0;l{e[t.evaluationKey]=l;let u=t.expression.evaluate(e);n.setPixel(s/4/r,o/4,u)};if(t.clips)for(let s=0,o=0;ssc||(sc=new Yt({"hillshade-illumination-direction":new R(D.paint_hillshade["hillshade-illumination-direction"],"hillshade-illumination-direction"),"hillshade-illumination-altitude":new R(D.paint_hillshade["hillshade-illumination-altitude"],"hillshade-illumination-altitude"),"hillshade-illumination-anchor":new R(D.paint_hillshade["hillshade-illumination-anchor"],"hillshade-illumination-anchor"),"hillshade-exaggeration":new R(D.paint_hillshade["hillshade-exaggeration"],"hillshade-exaggeration"),"hillshade-shadow-color":new R(D.paint_hillshade["hillshade-shadow-color"],"hillshade-shadow-color"),"hillshade-highlight-color":new R(D.paint_hillshade["hillshade-highlight-color"],"hillshade-highlight-color"),"hillshade-accent-color":new R(D.paint_hillshade["hillshade-accent-color"],"hillshade-accent-color"),"hillshade-method":new R(D.paint_hillshade["hillshade-method"],"hillshade-method"),resampling:new R(D.paint_hillshade.resampling,"resampling")})),nx={get paint(){return ix()}};var ax=class extends ye{constructor(t,e){super(t,nx,e),this.recalculate({zoom:0,zoomHistory:{}},void 0)}getIlluminationProperties(){let t=this.paint.get("hillshade-illumination-direction").values,e=this.paint.get("hillshade-illumination-altitude").values,r=this.paint.get("hillshade-highlight-color").values,i=this.paint.get("hillshade-shadow-color").values,n=Math.max(t.length,e.length,r.length,i.length);t=t.concat(Array(n-t.length).fill(t.at(-1))),e=e.concat(Array(n-e.length).fill(e.at(-1))),r=r.concat(Array(n-r.length).fill(r.at(-1))),i=i.concat(Array(n-i.length).fill(i.at(-1)));let a=e.map(yh);return{directionRadians:t.map(yh),altitudeRadians:a,shadowColor:i,highlightColor:r}}hasOffscreenPass(){return this.paint.get("hillshade-exaggeration")!==0&&!this.isHidden()}},oc,sx=()=>oc||(oc=new Yt({"color-relief-opacity":new R(D["paint_color-relief"]["color-relief-opacity"],"color-relief-opacity"),"color-relief-color":new Za(D["paint_color-relief"]["color-relief-color"],"color-relief-color"),resampling:new R(D["paint_color-relief"].resampling,"resampling")})),ox={get paint(){return sx()}};function Jn(t){return"data"in t}var lc=class{constructor(t,e,r,i){this.context=t,this.format=r,this.texture=t.gl.createTexture(),this._ownedHandle=this.texture,this.update(e,i)}update(t,e,r){var u;let{width:i,height:n}=t,a=(((u=this.size)==null?void 0:u[0])!==i||this.size[1]!==n)&&!r,{context:s}=this,{gl:o}=s;this.useMipmap=!!(e!=null&&e.useMipmap),a&&this.size&&this.format===o.RGBA&&(o.deleteTexture(this.texture),this.texture=o.createTexture(),this._ownedHandle=this.texture,this.magFilter=void 0,this.minFilter=void 0,this.wrap=void 0),o.bindTexture(o.TEXTURE_2D,this.texture),s.pixelStoreUnpackFlipY.set(!1),s.pixelStoreUnpack.set(1);let l=this.format===o.RGBA&&(e==null?void 0:e.premultiply)!==!1;if(a)if(this.size=[i,n],this.format===o.RGBA&&i>0&&n>0){let h=this.useMipmap?Math.floor(Math.log2(Math.max(i,n)))+1:1;if(o.texStorage2D(o.TEXTURE_2D,h,o.RGBA8,i,n),Jn(t)){s.pixelStoreUnpackPremultiplyAlpha.set(!1);let{data:c}=t;l&&c&&(c=Us(c)),c&&o.texSubImage2D(o.TEXTURE_2D,0,0,0,i,n,o.RGBA,o.UNSIGNED_BYTE,c)}else s.pixelStoreUnpackPremultiplyAlpha.set(l),o.texSubImage2D(o.TEXTURE_2D,0,0,0,o.RGBA,o.UNSIGNED_BYTE,t)}else Jn(t)?(s.pixelStoreUnpackPremultiplyAlpha.set(!1),this._uploadRawData(t,l,i,n,o)):(s.pixelStoreUnpackPremultiplyAlpha.set(l),this._uploadDomImage(t,o));else{let{x:h,y:c}=r||{x:0,y:0};Jn(t)?(s.pixelStoreUnpackPremultiplyAlpha.set(!1),this._updateRawData(t,l,h,c,i,n,o)):(s.pixelStoreUnpackPremultiplyAlpha.set(l),this._updateDomImage(t,h,c,o))}this.useMipmap&&!(Jn(t)&&t.data===null)&&o.generateMipmap(o.TEXTURE_2D),s.pixelStoreUnpackFlipY.setDefault(),s.pixelStoreUnpack.setDefault(),s.pixelStoreUnpackPremultiplyAlpha.setDefault()}_uploadDomImage(t,e){e.texImage2D(e.TEXTURE_2D,0,this.format,this.format,e.UNSIGNED_BYTE,t)}_uploadRawData(t,e,r,i,n){let{data:a}=t;e&&a&&(a=Us(a)),n.texImage2D(n.TEXTURE_2D,0,this.format,r,i,0,this.format,n.UNSIGNED_BYTE,a)}_updateDomImage(t,e,r,i){i.texSubImage2D(i.TEXTURE_2D,0,e,r,i.RGBA,i.UNSIGNED_BYTE,t)}_updateRawData(t,e,r,i,n,a,s){let{data:o}=t;e&&o&&(o=Us(o)),s.texSubImage2D(s.TEXTURE_2D,0,r,i,n,a,s.RGBA,s.UNSIGNED_BYTE,o)}bind(t,e,r){let{context:i}=this,{gl:n}=i;this.texture!==this._ownedHandle&&(this.texture=this._ownedHandle),n.bindTexture(n.TEXTURE_2D,this.texture),(r===n.LINEAR_MIPMAP_NEAREST||r===n.LINEAR_MIPMAP_LINEAR)&&!this.useMipmap&&(r=n.LINEAR);let a=r||t;t!==this.magFilter&&(n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MAG_FILTER,t),this.magFilter=t),a!==this.minFilter&&(n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MIN_FILTER,a),this.minFilter=a),e!==this.wrap&&(n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_S,e),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_T,e),this.wrap=e)}generateMipmap(){if(!this.useMipmap)return;let{gl:t}=this.context;t.bindTexture(t.TEXTURE_2D,this.texture),t.generateMipmap(t.TEXTURE_2D)}destroy(){let{gl:t}=this.context;t.deleteTexture(this.texture),this.texture=null,this._ownedHandle=null}},ze,Yl=(ze=class{constructor(e,r,i,n=1,a=1,s=1,o=0){if(this.uid=e,r.height!==r.width)throw RangeError("DEM tiles must be square");if(i&&!["mapbox","terrarium","custom"].includes(i)){Mt(`"${i}" is not a valid encoding type. Valid types include "mapbox", "terrarium" and "custom".`);return}this.stride=r.height;let l=this.dim=r.height-4;switch(this.data=new Uint32Array(r.data.buffer),ze.byteViewCache.set(this,new Uint8Array(this.data.buffer)),i){case"terrarium":this.redFactor=256,this.greenFactor=1,this.blueFactor=1/256,this.baseShift=32768;break;case"custom":this.redFactor=n,this.greenFactor=a,this.blueFactor=s,this.baseShift=o;break;default:this.redFactor=6553.6,this.greenFactor=25.6,this.blueFactor=.1,this.baseShift=1e4}for(let h=-2;h=l)&&this.data.copyWithin(this._idx(0,h),c,c+l),this.data.fill(this.data[c],this._idx(-2,h),this._idx(0,h)),this.data.fill(this.data[c+l-1],this._idx(l,h),this._idx(l+1,h)+1)}let u=this._getByteView();this.min=2**53-1,this.max=-(2**53-1);for(let h=0;hthis.max&&(this.max=f),f=this.dim||n<-1||n>=this.dim)throw RangeError(`Out of range source coordinates for DEM data. x: ${e}, y: ${r}, dim: ${this.dim}`);let a=this._getByteView(),s=((n+2)*this.stride+i+2)*4,o=this.stride*4,l=e-i,u=r-n,h=this._unpackAtIndex(a,s),c=this._unpackAtIndex(a,s+4),p=this._unpackAtIndex(a,s+o),f=this._unpackAtIndex(a,s+o+4);return h*(1-l)*(1-u)+c*l*(1-u)+p*(1-l)*u+f*l*u}getUnpackVector(){return[this.redFactor,this.greenFactor,this.blueFactor,this.baseShift]}_idx(e,r){if(e<-2||e>=this.dim+2||r<-2||r>=this.dim+2)throw RangeError(`Out of range source coordinates for DEM data. x: ${e}, y: ${r}, dim: ${this.dim}`);return(r+2)*this.stride+(e+2)}unpack(e,r,i){return e*this.redFactor+r*this.greenFactor+i*this.blueFactor-this.baseShift}pack(e){return Fd(e,this.getUnpackVector())}getPixels(){return new Ht({width:this.stride,height:this.stride},this._getByteView())}backfillBorder(e,r,i){if(this.dim!==e.dim)throw Error("dem dimension mismatch");let n=r*this.dim,a=r*this.dim+this.dim,s=i*this.dim,o=i*this.dim+this.dim;switch(r){case-1:n=a-2;break;case 1:a=n+2}switch(i){case-1:s=o-2;break;case 1:o=s+2}let l=-r*this.dim,u=-i*this.dim;for(let h=s;h80*r){o=t[0],l=t[1];let h=o,c=l;for(let p=r;ph&&(h=f),d>c&&(c=d)}u=Math.max(h-o,c-l),u=u===0?0:32767/u}return Uo(a,s,o,l,u),s}function Td(t,e,r,i,n){let a=null;if(n===Tx(t,e,r,i)>0)for(let s=e;s=e;s-=i)a=cc(s/i|0,t[s],t[s+1],a);return a&&yn(a,a.next)&&(gn(a),a=a.next),a}function _r(t,e=t){let r=e===t,i=t,n;do n=!1,i!==i.next&&(dn.size===0||!dn.has(i))&&(yn(i,i.next)||Tt(i.prev,i,i.next)===0)?((r||i===e)&&(e=i.prev),No=!0,gn(i),i=i.prev,n=!0):(r||i!==e)&&(i=i.next,n=!r);while(n||i!==e);return e}function Uo(t,e,r,i,n){n&&Dx(t,r,i,n);let a=t,s=!1;for(;t.prev!==t.next;){let o=t.prev,l=t.next;if(Tt(o,t,l)<0&&(n?px(t,r,i,n):cx(t))){e.push(o.i,t.i,l.i),gn(t),t=l,a=l;continue}if(t=l,t===a){if(No=!1,t=_r(t),No){a=t;continue}if(!s){t=fx(t,e),a=t,s=!0;continue}dx(t,e,r,i,n);break}}}function cx(t){let e=t.prev,r=t,i=t.next,n=e.x,a=r.x,s=i.x,o=e.y,l=r.y,u=i.y,h=Math.min(n,a,s),c=Math.min(o,l,u),p=Math.max(n,a,s),f=Math.max(o,l,u),d=i.next;for(;d!==e;){if(d.x>=h&&d.x<=p&&d.y>=c&&d.y<=f&&(n!==d.x||o!==d.y)&&ka(n,o,a,l,s,u,d.x,d.y)&&Tt(d.prev,d,d.next)>=0)return!1;d=d.next}return!0}function px(t,e,r,i){let n=t.prev,a=t,s=t.next,o=n.x,l=a.x,u=s.x,h=n.y,c=a.y,p=s.y,f=Math.min(o,l,u),d=Math.min(h,c,p),y=Math.max(o,l,u),m=Math.max(h,c,p),g=Xo(f,d,e,r,i),x=Xo(y,m,e,r,i),v=t.prevZ;for(;v&&v.z>=g;){if(v.x>=f&&v.x<=y&&v.y>=d&&v.y<=m&&v!==s&&(o!==v.x||h!==v.y)&&ka(o,h,l,c,u,p,v.x,v.y)&&Tt(v.prev,v,v.next)>=0)return!1;v=v.prevZ}let b=t.nextZ;for(;b&&b.z<=x;){if(b.x>=f&&b.x<=y&&b.y>=d&&b.y<=m&&b!==s&&(o!==b.x||h!==b.y)&&ka(o,h,l,c,u,p,b.x,b.y)&&Tt(b.prev,b,b.next)>=0)return!1;b=b.nextZ}return!0}function fx(t,e){let r=t,i=!1;do{let n=r.prev,a=r.next.next;Id(n,r,r.next,a,!1)&&mn(n,a)&&mn(a,n)&&(e.push(n.i,r.i,a.i),gn(r),gn(r.next),r=t=a,i=!0),r=r.next}while(r!==t);return i?_r(r):r}function dx(t,e,r,i,n){let a=t;do{let s=a.next.next;for(;s!==a.prev;){if(a.i!==s.i&&Sx(a,s)){let o=Cd(a,s);a=_r(a,a.next),o=_r(o,o.next),Uo(a,e,r,i,n),Uo(o,e,r,i,n);return}s=s.next}a=a.next}while(a!==t)}var qo=!1;function yx(t,e,r,i){let n=[];for(let a=0,s=e.length;as&&(s=r.x),r.yo&&(o=r.y),h.xs&&(s=h.x),h.yo&&(o=h.y),r=h}while(++l<16&&r!==e);Go[i]=r;let u=i*4;Dt[u]=n,Dt[u+1]=a,Dt[u+2]=s,Dt[u+3]=o}while(r!==e)}function vx(t,e){let r=t.z*4;e.xDt[r+2]&&(Dt[r+2]=e.x),e.y>Dt[r+3]&&(Dt[r+3]=e.y)}function uc(t){let e=Go[t];for(;e.prev.next!==e;)e=e.next;return Go[t]=e,e}function hc(t){let e=jo[t];for(;e.prev.next!==e;)e=e.next;return jo[t]=e,e}function bx(t,e){let r=e,i=t.x,n=t.y,a=-1/0,s;if(yn(t,r))return r;for(let p=0,f=0;pDt[f+3]||Dt[f]>i||Dt[f+2]<=a)continue;let d=uc(p);r=hc(p);do{if(r.prev.next===r){if(yn(t,r.next))return r.next;if(n<=r.y&&n>=r.next.y&&r.next.y!==r.y){let y=r.x+(n-r.y)*(r.next.x-r.x)/(r.next.y-r.y);if(y<=i&&y>a&&(a=y,s=r.xi||Dt[f+3]h)continue;let d=uc(p);r=hc(p);do{if(r.prev.next===r&&i>=r.x&&r.x>=o&&i!==r.x&&ka(ni)&&(ys.x||r.x===s.x&&wx(s,r)))&&(s=r,c=y)}r=r.next}while(r!==d)}return s}function wx(t,e){return Tt(t.prev,t,e.prev)<0&&Tt(e.next,t,t.next)<0}var oe=[],Ii=[],cr=new Uint32Array,Ci=new Uint32Array,Mi=new Uint32Array(256);function Dx(t,e,r,i){let n=t,a=0;do n.z=Xo(n.x,n.y,e,r,i),oe[a++]=n,n=n.next;while(n!==t);_x(a);let s=null;for(let o=0;o=0&&oe[n].z>i;)oe[n+1]=oe[n],n--;oe[n+1]=r}return}cr.length>>a&255]++;let s=0;for(let o=0;o<256;o++){let l=Mi[o];Mi[o]=s,s+=l}for(let o=0;o>>a&255]++;i[u]=e[o],n[u]=l}}function Xo(t,e,r,i,n){return t=(t-r)*n|0,e=(e-i)*n|0,t=(t|t<<8)&16711935,t=(t|t<<4)&252645135,t=(t|t<<2)&858993459,t=(t|t<<1)&1431655765,e=(e|e<<8)&16711935,e=(e|e<<4)&252645135,e=(e|e<<2)&858993459,e=(e|e<<1)&1431655765,t|e<<1}function Ax(t){let e=t,r=t;do(e.x=(t-s)*(a-o)&&(t-s)*(i-o)>=(r-s)*(e-o)&&(r-s)*(a-o)>=(n-s)*(i-o)}function Sx(t,e){let r=yn(t,e)&&Tt(t.prev,t,t.next)>0&&Tt(e.prev,e,e.next)>0;return t.next.i!==e.i&&(r||mn(t,e)&&mn(e,t)&&(Tt(t.prev,t,e.prev)!==0||Tt(t,e.prev,e)!==0))&&!Ex(t,e)&&(r||Fx(t,e))}function Tt(t,e,r){return(e.y-t.y)*(r.x-e.x)-(e.x-t.x)*(r.y-e.y)}function yn(t,e){return t.x===e.x&&t.y===e.y}function Id(t,e,r,i,n=!0){let a=Tt(t,e,r),s=Tt(t,e,i),o=Tt(r,i,t),l=Tt(r,i,e);return(a>0&&s<0||a<0&&s>0)&&(o>0&&l<0||o<0&&l>0)?!0:n?!!(a===0&&ta(t,r,e)||s===0&&ta(t,i,e)||o===0&&ta(r,t,i)||l===0&&ta(r,e,i)):!1}function ta(t,e,r){return e.x<=Math.max(t.x,r.x)&&e.x>=Math.min(t.x,r.x)&&e.y<=Math.max(t.y,r.y)&&e.y>=Math.min(t.y,r.y)}function Ex(t,e){let r=Math.min(t.x,e.x),i=Math.max(t.x,e.x),n=Math.min(t.y,e.y),a=Math.max(t.y,e.y),s=t;do{let o=s.next;if(s.x>i&&o.x>i||s.xa&&o.y>a||s.y=0&&Tt(t,t.prev,e)>=0:Tt(t,e,t.prev)<0||Tt(t,t.next,e)<0}function Fx(t,e){let r=t,i=!1,n=(t.x+e.x)/2,a=(t.y+e.y)/2;do{let s=r.next;r.y>a!=s.y>a&&n<(s.x-r.x)*(a-r.y)/(s.y-r.y)+r.x&&(i=!i),r=s}while(r!==t);return i}function Cd(t,e){let r=Yo(t.i,t.x,t.y),i=Yo(e.i,e.x,e.y),n=t.next,a=e.prev;return t.next=e,e.prev=t,r.next=n,n.prev=r,i.next=r,r.prev=i,a.next=i,i.prev=a,i}function cc(t,e,r,i){let n=Yo(t,e,r);return i?(n.next=i.next,n.prev=i,i.next.prev=n,i.next=n):(n.prev=n,n.next=n),n}function gn(t){t.next.prev=t.prev,t.prev.next=t.next,t.prevZ&&(t.prevZ.nextZ=t.nextZ),t.nextZ&&(t.nextZ.prevZ=t.prevZ),qo&&vx(t.prev,t.next)}function Yo(t,e,r){return{i:t,x:e,y:r,prev:null,next:null,z:0,prevZ:null,nextZ:null}}function Tx(t,e,r,i){let n=0;for(let a=e,s=r-i;at)throw Error("Min granularity must not be greater than base granularity.");this._baseZoomGranularity=t,this._minGranularity=e}getGranularityForZoomLevel(t){let e=1<32767||e>32767)throw Error("Vertex coordinates are out of signed 16 bit integer range.");let r=Math.round(t)|0,i=Math.round(e)|0,n=this._getKey(r,i),a=this._vertexDictionary.get(n);if(a!==void 0)return a;let s=this._vertexBuffer.length/2;return this._vertexDictionary.set(n,s),this._vertexBuffer.push(r,i),s}_subdivideTrianglesScanline(t,e){if(this._granularity<2)return Bx(this._vertexBuffer,Mx(t,e));let r=[],i=t.length;for(let n=0;n=1||b<=0)||m&&(ln)){h>=i&&h<=n&&a.push(r[(s+1)%3]);continue}if(!m&&v>0){let A=o+f*v,S=l+d*v;a.push(this._vertexToIndex(A,S))}let w=o+f*Math.max(v,0),_=o+f*Math.min(b,1);if(y||this._generateIntraEdgeVertices(a,o,l,u,h,w,_),!m&&b<1){let A=o+f*b,S=l+d*b;a.push(this._vertexToIndex(A,S))}(m||h>=i&&h<=n)&&a.push(r[(s+1)%3]),!m&&(h<=i||h>=n)&&this._generateInterEdgeVertices(a,o,l,u,h,c,p,_,i,n)}return a}_generateIntraEdgeVertices(t,e,r,i,n,a,s){let o=i-e,l=n-r,u=l===0,h=u?Math.min(e,i):Math.min(a,s),c=u?Math.max(e,i):Math.max(a,s),p=Math.floor(h/this._granularityCellSize)+1,f=Math.ceil(c/this._granularityCellSize)-1;if(u?e=p;d--){let y=d*this._granularityCellSize,m=r+l*(y-e)/o;t.push(this._vertexToIndex(y,m))}}_generateInterEdgeVertices(t,e,r,i,n,a,s,o,l,u){let h=n-r,c=a-i,p=s-n,f=(l-n)/p,d=(u-n)/p,y=Math.min(f,d),m=Math.max(f,d),g=i+c*y,x=Math.floor(Math.min(g,o)/this._granularityCellSize)+1,v=Math.ceil(Math.max(g,o)/this._granularityCellSize)-1,b=o=1||m<=0){let A=e-a,S=r-s,T=(l-s)/S,L=(u-s)/S,O=a+A*Math.min(T,L);x=Math.floor(Math.min(O,o)/this._granularityCellSize)+1,v=Math.ceil(Math.max(O,o)/this._granularityCellSize)-1,b=o0?u:l;if(b)for(let A=x;A<=v;A++){let S=A*this._granularityCellSize;t.push(this._vertexToIndex(S,_))}else for(let A=v;A>=x;A--){let S=A*this._granularityCellSize;t.push(this._vertexToIndex(S,_))}}_generateOutline(t,e){let r=[],i=0;for(let n of t){let a=this._granularity<2?this._ringPathIndices(n,i,e):this._pointArrayToIndices(yr(n,this._granularity,!0));i+=n.length;let s=[];for(let o=1;o=2&&Bd(t)&&i.push(i[0]),i}_handlePoles(t){let e=!1,r=!1;this._canonical&&(this._canonical.y===0&&(e=!0),this._canonical.y===(1<n==(a===-32768)?(t.push(r),t.push(e),t.push(this._vertexToIndex(i,a)),t.push(this._vertexToIndex(n,a)),t.push(r),t.push(this._vertexToIndex(i,a))):(t.push(e),t.push(r),t.push(this._vertexToIndex(i,a)),t.push(r),t.push(this._vertexToIndex(n,a)),t.push(this._vertexToIndex(i,a)))}_fillPoles(t,e,r){let i=this._vertexBuffer,n=gt,a=t.length;for(let s=2;s=2&&((o=this._canonical)==null?void 0:o.z)===0&&(a=this._removeTrianglesOutsideTileX(a),s=s.map(l=>this._removeLinesOutsideTileX(l))),{verticesFlattened:this._vertexBuffer,indicesTriangles:a,indicesLineList:s}}_vertexOutsideTileX(t){let e=this._vertexBuffer[t*2];return e<0||e>8192}_removeTrianglesOutsideTileX(t){let e=[];for(let r=0;r0?(Math.floor(w/n)+1)*n:(Math.ceil(w/n)-1)*n,T=x>0?(Math.floor(_/n)+1)*n:(Math.ceil(_/n)-1)*n,L=Math.abs(w-S),O=Math.abs(_-T),B=Math.abs(w-f),V=Math.abs(_-d),F=y?L/v:1/0,$=m?O/b:1/0;if((B<=L||!y)&&(V<=O||!m))break;if(F<$&&y||!m){w=S,_+=x*F;let G=new M(w,Math.round(_));(a[a.length-1].x!==G.x||a[a.length-1].y!==G.y)&&a.push(G)}else{w+=g*$,_=T;let G=new M(Math.round(w),_);(a[a.length-1].x!==G.x||a[a.length-1].y!==G.y)&&a.push(G)}}let A=new M(f,d);(a[a.length-1].x!==A.x||a[a.length-1].y!==A.y)&&a.push(A)}return a}function Bd(t){return!t[0].equals(t[t.length-1])}function Cx(t){let e=[],r=[];for(let i of t)if(i.length!==0){i!==t[0]&&e.push(r.length/2);for(let n of i)r.push(n.x),r.push(n.y)}return{flattened:r,holeIndices:e}}function Mx(t,e){let r=Array(t.length);for(let i=0;i0?(r.push(n),r.push(s),r.push(a)):(r.push(n),r.push(a),r.push(s))}return r}function Px(t,e,r){if(e.length===0)throw Error("Subdivision vertex ring is empty.");let i=0,n=t[e[0]*2];for(let l=1;l=0?s-1:a-1,u=(o+1)%a,h=t[e[l]*2],c=t[e[l]*2+1],p=t[e[u]*2],f=t[e[u]*2+1],d=t[e[s]*2],y=t[e[s]*2+1],m=t[e[o]*2],g=t[e[o]*2+1],x=!1;if(hp)x=!1;else{let v=g-y,b=-(m-d),w=y((p-d)*v+(f-y)*b)*w&&(x=!0)}if(x){let v=e[l],b=e[s],w=e[o];v!==b&&v!==w&&b!==w&&r.push(w,b,v),s--,s<0&&(s=a-1)}else{let v=e[u],b=e[s],w=e[o];v!==b&&v!==w&&b!==w&&r.push(w,b,v),o++,o>=a&&(o=0)}if(l===u)break}}function Pd(t,e,r,i,n,a,s,o,l){let u=n.length/2,h=s&&o&&l;if(uie.MAX_VERTEX_ARRAY_LENGTH&&(u=t.createNewSegment(e,r),l=o.count,y=!0,m=!0,g=!0,h=0);let v=Ji(s,i,a,o,p,y,u),b=Ji(s,i,a,o,f,m,u),w=Ji(s,i,a,o,d,g,u);r.emplaceBack(h+v-l,h+b-l,h+w-l),u.primitiveLength++}}function Lx(t,e,r,i,n,a){let s=[];for(let c=0;cie.MAX_VERTEX_ARRAY_LENGTH&&(u=t.createNewSegment(e,r),l=o.count,y=!0,m=!0,h=0);let x=Ji(s,i,a,o,f,y,u),v=Ji(s,i,a,o,d,m,u);r.emplaceBack(h+x-l,h+v-l),u.primitiveLength++}}var zd=class{constructor(t){this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map(e=>e.id),this.index=t.index,this.hasDependencies=!1,this.sdfPatterns={},this.patternFeatures=[],this.layoutVertexArray=new gg,this.indexArray=new En,this.indexArray2=new Po,this.programConfigurations=new Dr(t.layers,t.zoom),this.segments=new ie,this.segments2=new ie,this.stateDependentLayerIds=this.layers.filter(e=>e.isStateDependent()).map(e=>e.id)}populate(t,e,r){this.hasDependencies=Fa("fill",this.layers,e);let i=this.layers[0].layout.get("fill-sort-key"),n=!i.isConstant(),a=[],s=new st(this.zoom),o=this.layers[0]._featureFilter.needGeometry;for(let{feature:l,id:u,index:h,sourceLayerIndex:c}of t){let p=hi(l,o);if(!this.layers[0]._featureFilter.filter(s,p,r))continue;let f=n?i.evaluate(p,{},r,e.availableImages):void 0,d={id:u,properties:l.properties,type:l.type,sourceLayerIndex:c,index:h,geometry:o?p.geometry:Fr(l),patterns:{},sortKey:f};a.push(d)}n&&a.sort((l,u)=>l.sortKey-u.sortKey);for(let l of a){let{geometry:u,index:h,sourceLayerIndex:c}=l;if(this.hasDependencies){let f=Wl("fill",this.layers,l,{zoom:this.zoom},e);this.patternFeatures.push(f)}else this.addFeature(l,u,h,r,{},e.subdivisionGranularity);let p=t[h].feature;e.featureIndex.insert(p,u,h,c,this.index)}}update(t,e,r){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(t,e,this.stateDependentLayers,{imagePositions:r})}addFeatures({options:t,canonical:e,patternPositions:r,patternMap:i}){this.detectSdfPatterns(i);for(let n of this.patternFeatures)this.addFeature(n,n.geometry,n.index,e,r,t.subdivisionGranularity)}detectSdfPatterns(t){for(let e of this.patternFeatures)for(let r in e.patterns){let i=e.patterns[r];this.recordSdfPattern(r,t[i.min]),this.recordSdfPattern(r,t[i.mid]),this.recordSdfPattern(r,t[i.max])}for(let e of this.layers){let r=e.paint.get("fill-pattern").constantOr(null);r&&(this.recordSdfPattern(e.id,t[r.from.toString()]),this.recordSdfPattern(e.id,t[r.to.toString()]))}}recordSdfPattern(t,e){if(!e)return;let r=e.sdf===!0,i=this.sdfPatterns[t];i===void 0?this.sdfPatterns[t]=r:i!==r&&Mt(`Style sheet warning: Cannot mix SDF and non-SDF fill patterns in layer "${t}"`)}isEmpty(){return this.layoutVertexArray.length===0}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(t){this.uploaded||(this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,ux),this.indexBuffer=t.createIndexBuffer(this.indexArray),this.indexBuffer2=t.createIndexBuffer(this.indexArray2)),this.programConfigurations.upload(t),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.indexBuffer2.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.segments2.destroy())}addFeature(t,e,r,i,n,a){for(let s of Na(e,500)){let o=Md(s,i,a.fill.getGranularityForZoomLevel(i.z)),l=this.layoutVertexArray;Pd((u,h)=>{l.emplaceBack(u,h)},this.segments,this.layoutVertexArray,this.indexArray,o.verticesFlattened,o.indicesTriangles,this.segments2,this.indexArray2,o.indicesLineList)}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,t,r,{imagePositions:n,canonical:i})}};C("FillBucket",zd,{omit:["layers","patternFeatures"]});var pc,Vx=()=>pc||(pc=new Yt({"fill-sort-key":new U(D.layout_fill["fill-sort-key"],"fill-sort-key")})),fc,Ox=()=>fc||(fc=new Yt({"fill-antialias":new R(D.paint_fill["fill-antialias"],"fill-antialias"),"fill-opacity":new U(D.paint_fill["fill-opacity"],"fill-opacity"),"fill-layer-opacity":new R(D.paint_fill["fill-layer-opacity"],"fill-layer-opacity"),"fill-color":new U(D.paint_fill["fill-color"],"fill-color"),"fill-outline-color":new U(D.paint_fill["fill-outline-color"],"fill-outline-color"),"fill-translate":new R(D.paint_fill["fill-translate"],"fill-translate"),"fill-translate-anchor":new R(D.paint_fill["fill-translate-anchor"],"fill-translate-anchor"),"fill-pattern":new cn(D.paint_fill["fill-pattern"],"fill-pattern")})),Rx={get paint(){return Ox()},get layout(){return Vx()}};var $x=class extends ye{constructor(t,e){super(t,Rx,e)}recalculate(t,e){super.recalculate(t,e);let r=this.paint._values["fill-outline-color"];r.value.kind==="constant"&&r.value.value===void 0&&(this.paint._values["fill-outline-color"]=this.paint._values["fill-color"])}createBucket(t){return new zd(t)}queryRadius(){return Ka(this.paint.get("fill-translate"))}queryIntersectsFeature({queryGeometry:t,geometry:e,transform:r,pixelsToTileUnits:i}){return bd(Ja(t,this.paint.get("fill-translate"),this.paint.get("fill-translate-anchor"),-r.bearingInRadians,i),e)}isTileClipped(){return!0}},Wo=Et([{name:"a_pos",components:2,type:"Int16"},{name:"a_normal_ed",components:4,type:"Int16"}],4),Nx=Et([{name:"a_centroid",components:2,type:"Int16"}],4),Ux=Wo.members;Wo.size,Wo.alignment;var Ia=class Zo{constructor(){this.minX=1/0,this.maxX=-1/0,this.minY=1/0,this.maxY=-1/0}extend(e){return this.minX=Math.min(this.minX,e.x),this.minY=Math.min(this.minY,e.y),this.maxX=Math.max(this.maxX,e.x),this.maxY=Math.max(this.maxY,e.y),this}expandBy(e){return this.minX-=e,this.minY-=e,this.maxX+=e,this.maxY+=e,(this.minX>this.maxX||this.minY>this.maxY)&&(this.minX=1/0,this.maxX=-1/0,this.minY=1/0,this.maxY=-1/0),this}shrinkBy(e){return this.expandBy(-e)}map(e){let r=new Zo;return r.extend(e(new M(this.minX,this.minY))),r.extend(e(new M(this.maxX,this.minY))),r.extend(e(new M(this.minX,this.maxY))),r.extend(e(new M(this.maxX,this.maxY))),r}static fromPoints(e){let r=new Zo;for(let i of e)r.extend(i);return r}contains(e){return e.x>=this.minX&&e.x<=this.maxX&&e.y>=this.minY&&e.y<=this.maxY}empty(){return this.minX>this.maxX}width(){return this.maxX-this.minX}height(){return this.maxY-this.minY}covers(e){return!this.empty()&&!e.empty()&&e.minX>=this.minX&&e.maxX<=this.maxX&&e.minY>=this.minY&&e.maxY<=this.maxY}intersects(e){return!this.empty()&&!e.empty()&&e.minX<=this.maxX&&e.maxX>=this.minX&&e.minY<=this.maxY&&e.maxY>=this.minY}},A5=Ia.fromPoints([new M(0,0),new M(gt,gt)]);function Ho(t,e){return t.x===e.x&&(t.x<0||t.x>8192)||t.y===e.y&&(t.y<0||t.y>8192)}function dc(t){return t.every(e=>e.x<0)||t.every(e=>e.x>8192)||t.every(e=>e.y<0)||t.every(e=>e.y>8192)}var Fn=class{constructor(t,e,r,i,n){for(this.properties=Object.create(null),this.extent=r,this.type=0,this.id=void 0,this._pbf=t,this._geometry=-1,this._keys=i,this._values=n;t.pos>3,a===0)continue}if(a--,n===1)s+=t.readSVarint(),o+=t.readSVarint(),i&&r.push(i),i=[new M(s,o)];else if(n===2)s+=t.readSVarint(),o+=t.readSVarint(),i&&i.push(new M(s,o));else if(n===7)i&&i.push(i[0].clone());else throw Error(`unknown command ${n}`)}return i&&r.push(i),r}bbox(){if(this._geometry<0)throw Error("feature has no geometry");let t=this._pbf;t.pos=this._geometry;let e=t.readVarint()+t.pos,r=1,i=0,n=0,a=0,s=1/0,o=-1/0,l=1/0,u=-1/0;for(;t.pos>3,i===0)continue}if(i--,r===1||r===2)n+=t.readSVarint(),a+=t.readSVarint(),no&&(o=n),au&&(u=a);else if(r!==7)throw Error(`unknown command ${r}`)}return[s,l,o,u]}toGeoJSON(t,e,r){let i=this.extent*2**r,n=this.extent*t,a=this.extent*e,s=this.loadGeometry();function o(c){return[(c.x+n)*360/i-180,360/Math.PI*Math.atan(Math.exp((1-(c.y+a)*2/i)*Math.PI))-90]}function l(c){return c.map(o)}let u;if(this.type===1){let c=[];for(let f of s)c.push(f[0]);let p=l(c);u=c.length===1?{type:"Point",coordinates:p[0]}:{type:"MultiPoint",coordinates:p}}else if(this.type===2){let c=s.map(l);u=c.length===1?{type:"LineString",coordinates:c[0]}:{type:"MultiLineString",coordinates:c}}else if(this.type===3){let c=Ld(s),p=[];for(let f of c)p.push(f.map(l));u=p.length===1?{type:"Polygon",coordinates:p[0]}:{type:"MultiPolygon",coordinates:p}}else throw Error("unknown feature type");let h={type:"Feature",geometry:u,properties:this.properties};return this.id!=null&&(h.id=this.id),h}};Fn.types=["Unknown","Point","LineString","Polygon"];function Ld(t){let e=t.length;if(e<=1)return[t];let r=[],i,n;for(let a=0;a=this._features.length)throw Error("feature index out of bounds");this._pbf.pos=this._features[t];let e=this._pbf.readVarint()+this._pbf.pos;return new Fn(this._pbf,e,this.extent,this._keys,this._values)}};function Gx(t){let e=null,r=t.readVarint()+t.pos;for(;t.pos90||this.lat<-90)throw Error("Invalid LngLat latitude value: must be between -90 and 90")}wrap(){return new Gi(Z1(this.lng,-180,180),this.lat)}toArray(){return[this.lng,this.lat]}toString(){return`LngLat(${this.lng}, ${this.lat})`}distanceTo(e){let r=Math.PI/180,i=this.lat*r,n=e.lat*r,a=Math.sin(i)*Math.sin(n)+Math.cos(i)*Math.cos(n)*Math.cos((e.lng-this.lng)*r);return Vd*Math.acos(Math.min(a,1))}static convert(e){if(e instanceof Gi)return e;if(Array.isArray(e)&&(e.length===2||e.length===3))return new Gi(Number(e[0]),Number(e[1]));if(!Array.isArray(e)&&typeof e=="object"&&e)return new Gi(Number("lng"in e?e.lng:e.lon),Number(e.lat));throw Error("`LngLatLike` argument must be specified as a LngLat instance, an object {lng: , lat: }, an object {lon: , lat: }, or an array of [, ]")}},Od=2*Math.PI*Vd;function Rd(t){return Od*Math.cos(t*Math.PI/180)}function Xx(t){return(180+t)/360}function Yx(t){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+t*Math.PI/360)))/360}function Wx(t,e){return t/Rd(e)}function Zx(t){return t*360-180}function Ko(t){let e=180-t*360;return 360/Math.PI*Math.atan(Math.exp(e*Math.PI/180))-90}function Hx(t,e){return t*Rd(Ko(e))}function Kx(t){return 1/Math.cos(t*Math.PI/180)}var Hl=class $d{constructor(e,r,i=0){this.x=+e,this.y=+r,this.z=+i}static fromLngLat(e,r=0){let i=yc.convert(e);return new $d(Xx(i.lng),Yx(i.lat),Wx(r,i.lat))}toLngLat(){return new yc(Zx(this.x),Ko(this.y))}toAltitude(){return Hx(this.z,this.y)}meterInMercatorCoordinateUnits(){return 1/Od*Kx(Ko(this.y))}};function Jx(t,e,r){let i=1/(1<r2(r,e))}function e2(t,e){let r=Qx(gt/2,gt/2,e),i=Hl.fromLngLat(r).meterInMercatorCoordinateUnits(),n=(1<1&&e[0].x===e[e.length-1].x&&e[0].y===e[e.length-1].y;)e.pop();return e}function n2(t,e,r,i,n){let a=e.sub(r),s=i.sub(r),o=a.mag(),l=s.mag();if(o<1e-6||l<1e-6){t.push(r.clone());return}a._div(o),s._div(l);let u=a.x*s.x+a.y*s.y;if(Math.abs(u)>Math.cos(5*Math.PI/180)){t.push(r.clone());return}let h=.2,c=Math.min(n,o*h,l*h),p=r.add(a.mult(c)),f=r.add(s.mult(c)),d=Math.sqrt((1+u)/2),y=r.add(a.add(s)._unit()._mult(c/d)),m=p.sub(y).angleWith(f.sub(y)),g=Math.max(2,Math.ceil(Math.abs(m)/(Math.PI/6)-1e-6));for(let x=0;x<=g;x++)t.push(p.rotateAround(x/g*m,y))}var Gs=8192;function Bi(t,e,r,i,n,a,s,o){t.emplaceBack(e,r,Math.floor(i*Gs)*2+s,n*Gs*2,a*Gs*2,Math.round(o))}var Nd=class{constructor(t){this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map(e=>e.id),this.index=t.index,this.hasDependencies=!1,this.layoutVertexArray=new xg,this.centroidVertexArray=new yg,this.indexArray=new En,this.programConfigurations=new Dr(t.layers,t.zoom),this.segments=new ie,this.stateDependentLayerIds=this.layers.filter(e=>e.isStateDependent()).map(e=>e.id)}populate(t,e,r){this.features=[],this.hasDependencies=Fa("fill-extrusion",this.layers,e);let i=new st(this.zoom),n=this.layers[0],a=n.layout.get("fill-extrusion-rounded-corner-distance"),s=a>0?e2(a,r):0,o=n._featureFilter.needGeometry;for(let{feature:l,id:u,index:h,sourceLayerIndex:c}of t){let p=hi(l,o);if(!n._featureFilter.filter(i,p,r))continue;let f={id:u,sourceLayerIndex:c,index:h,geometry:t2(o?p.geometry:Fr(l),s),properties:l.properties,type:l.type,patterns:{}};this.hasDependencies?this.features.push(Wl("fill-extrusion",this.layers,f,{zoom:this.zoom},e)):this.addFeature(f,f.geometry,h,r,{},e.subdivisionGranularity),e.featureIndex.insert(l,f.geometry,h,c,this.index,!0)}}addFeatures({options:t,canonical:e,patternPositions:r}){for(let i of this.features){let{geometry:n}=i;this.addFeature(i,n,i.index,e,r,t.subdivisionGranularity)}}update(t,e,r){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(t,e,this.stateDependentLayers,{imagePositions:r})}isEmpty(){return this.layoutVertexArray.length===0&&this.centroidVertexArray.length===0}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(t){this.uploaded||(this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,Ux),this.centroidVertexBuffer=t.createVertexBuffer(this.centroidVertexArray,Nx.members,!0),this.indexBuffer=t.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(t),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.centroidVertexBuffer.destroy())}addFeature(t,e,r,i,n,a){for(let s of Na(e,500)){let o={x:0,y:0,sampleCount:0},l=this.layoutVertexArray.length;this.processPolygon(o,i,t,s,a);let u=this.layoutVertexArray.length-l,h=Math.floor(o.x/o.sampleCount),c=Math.floor(o.y/o.sampleCount);for(let p=0;p{Bi(u,h,c,0,0,1,1,0)},this.segments,this.layoutVertexArray,this.indexArray,l.verticesFlattened,l.indicesTriangles)}_generateSideFaces(t,e){let r=0;for(let i=1;iie.MAX_VERTEX_ARRAY_LENGTH&&(e.segment=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray));let s=n.sub(a)._perp()._unit(),o=a.dist(n);r+o>32768&&(r=0),Bi(this.layoutVertexArray,n.x,n.y,s.x,s.y,0,0,r),Bi(this.layoutVertexArray,n.x,n.y,s.x,s.y,0,1,r),r+=o,Bi(this.layoutVertexArray,a.x,a.y,s.x,s.y,0,0,r),Bi(this.layoutVertexArray,a.x,a.y,s.x,s.y,0,1,r);let l=e.segment.vertexLength;this.indexArray.emplaceBack(l,l+2,l+1),this.indexArray.emplaceBack(l+1,l+2,l+3),e.segment.vertexLength+=4,e.segment.primitiveLength+=2}}};function a2(t,e){for(let r=0;rmc||(mc=new Yt({"fill-extrusion-rounded-corner-distance":new R(D["layout_fill-extrusion"]["fill-extrusion-rounded-corner-distance"],"fill-extrusion-rounded-corner-distance")})),gc,o2=()=>gc||(gc=new Yt({"fill-extrusion-opacity":new R(D["paint_fill-extrusion"]["fill-extrusion-opacity"],"fill-extrusion-opacity"),"fill-extrusion-color":new U(D["paint_fill-extrusion"]["fill-extrusion-color"],"fill-extrusion-color"),"fill-extrusion-translate":new R(D["paint_fill-extrusion"]["fill-extrusion-translate"],"fill-extrusion-translate"),"fill-extrusion-translate-anchor":new R(D["paint_fill-extrusion"]["fill-extrusion-translate-anchor"],"fill-extrusion-translate-anchor"),"fill-extrusion-pattern":new cn(D["paint_fill-extrusion"]["fill-extrusion-pattern"],"fill-extrusion-pattern"),"fill-extrusion-height":new U(D["paint_fill-extrusion"]["fill-extrusion-height"],"fill-extrusion-height"),"fill-extrusion-base":new U(D["paint_fill-extrusion"]["fill-extrusion-base"],"fill-extrusion-base"),"fill-extrusion-vertical-gradient":new R(D["paint_fill-extrusion"]["fill-extrusion-vertical-gradient"],"fill-extrusion-vertical-gradient")})),l2={get paint(){return o2()},get layout(){return s2()}};var u2=class extends ye{constructor(t,e){super(t,l2,e)}createBucket(t){return new Nd(t)}queryRadius(){return Ka(this.paint.get("fill-extrusion-translate"))}is3D(){return!0}queryIntersectsFeature({queryGeometry:t,feature:e,featureState:r,geometry:i,transform:n,pixelsToTileUnits:a,pixelPosMatrix:s}){let o=Ja(t,this.paint.get("fill-extrusion-translate"),this.paint.get("fill-extrusion-translate-anchor"),-n.bearingInRadians,a),l=this.paint.get("fill-extrusion-height").evaluate(e,r),u=this.paint.get("fill-extrusion-base").evaluate(e,r),h=p2(o,s,0),c=c2(i,u,l,s),p=c[0],f=c[1];return h2(p,f,h)}};function Pi(t,e){return t.x*e.x+t.y*e.y}function xc(t,e){if(t.length===1){let r=0,i=e[r++],n;for(;!n||i.equals(n);)if(n=e[r++],!n)return 1/0;for(;r>1),s=r-e,o,l=t[e],u=t[e+1],h=t[r],c=t[r+1];for(let p=e+3;pn){o=p,n=f;continue}if(f===n){let d=Math.abs(p-a);di&&(o-e>3&&Jo(t,e,o,i),t[o+2]=n,r-o>3&&Jo(t,o,r,i))}function f2(t,e,r,i,n,a){let s=n-r,o=a-i;if(s!==0||o!==0){let l=((t-r)*s+(e-i)*o)/(s*s+o*o);l>1?(r=n,i=a):l>0&&(r+=s*l,i+=o*l)}return s=t-r,o=e-i,s*s+o*o}function Ct(t,e,r,i){let n={type:e,geom:r},a={id:t!=null?t:null,type:n.type,geometry:n.geom,tags:i,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};switch(n.type){case"Point":case"MultiPoint":zi(a,n.geom);break;case"LineString":zi(a,n.geom.points);break;case"Polygon":zi(a,n.geom[0].points);break;case"MultiLineString":for(let s of n.geom)zi(a,s.points);break;case"MultiPolygon":for(let s of n.geom)zi(a,s[0].points)}return a}function Kl(t){let e=t;t.points.length>64&&(e.points=new Float64Array(t.points))}function zi(t,e){for(let r=0;r1024)throw Error("GeometryCollection nesting exceeds supported depth: 1024");if(e.geometry.type==="GeometryCollection"){y2(t,e,e.geometry,r,i,n+1);return}if(!((o=e.geometry.coordinates)!=null&&o.length))return;let a=d2(e,r,i),s=(r.tolerance/((1<0&&(s+=i?(n*h-u*a)/2:Math.sqrt((u-n)**2+(h-a)**2)),n=u,a=h}let o=e.points.length-3;e.points[2]=1,r>0&&Jo(e.points,0,o,r),e.points[o+2]=1,Kl(e),e.size=Math.abs(s),e.start=0,e.end=e.size}function tu(t,e,r,i){for(let n=0;n1?1:r}function D2(t){return{type:"FeatureCollection",features:t.map(e=>Ca(e))}}function Ca(t){let e={type:"Feature",geometry:_2(t),properties:t.tags};return t.id!=null&&(e.id=t.id),e}function _2(t){let{type:e,geometry:r}=t;switch(e){case"Point":return{type:e,coordinates:Ud(r[0],r[1])};case"MultiPoint":return{type:e,coordinates:ea(r)};case"LineString":return{type:e,coordinates:ea(r.points)};case"MultiLineString":case"Polygon":return{type:e,coordinates:r.map(i=>ea(i.points))};case"MultiPolygon":return{type:e,coordinates:r.map(i=>i.map(n=>ea(n.points)))}}}function ea(t){let e=[];for(let r=0;r=r&&s=i)return null;let l=[];for(let u of t){let h=n===0?u.minX:u.minY,c=n===0?u.maxX:u.maxY;if(h>=r&&c=i))switch(u.type){case"Point":case"MultiPoint":A2(u,l,r,i,n);continue;case"LineString":S2(u,l,r,i,n,o);continue;case"MultiLineString":E2(u,l,r,i,n);continue;case"Polygon":F2(u,l,r,i,n);continue;case"MultiPolygon":T2(u,l,r,i,n);continue}}return l.length?l:null}function A2(t,e,r,i,n){let a=[];if(k2(t.geometry,a,r,i,n),!a.length)return;let s=a.length===3?"Point":"MultiPoint";e.push(Ct(t.id,s,a,t.tags))}function S2(t,e,r,i,n,a){let s=[];if(Gd(t.geometry,s,r,i,n,!1,a.lineMetrics),s.length){if(a.lineMetrics){for(let o of s)e.push(Ct(t.id,"LineString",o,t.tags));return}if(s.length>1){e.push(Ct(t.id,"MultiLineString",s,t.tags));return}e.push(Ct(t.id,"LineString",s[0],t.tags))}}function E2(t,e,r,i,n){let a=[];if(eu(t.geometry,a,r,i,n,!1),a.length){if(a.length===1){e.push(Ct(t.id,"LineString",a[0],t.tags));return}e.push(Ct(t.id,"MultiLineString",a,t.tags))}}function F2(t,e,r,i,n){let a=[];eu(t.geometry,a,r,i,n,!0),a.length&&e.push(Ct(t.id,"Polygon",a,t.tags))}function T2(t,e,r,i,n){let a=[];for(let s of t.geometry){let o=[];eu(s,o,r,i,n,!0),o.length&&a.push(o)}a.length&&e.push(Ct(t.id,"MultiPolygon",a,t.tags))}function k2(t,e,r,i,n){for(let a=0;a=r&&s<=i&&Kr(e,t[a],t[a+1],t[a+2])}}function Gd(t,e,r,i,n,a,s){let o=vc(t),l=n===0?I2:C2,u=t.start,h,c;for(let g=0;gr&&(c=l(o,x,v,w,_,r),s&&(o.start=u+h*c)):A>i?S=r&&(c=l(o,x,v,w,_,r),T=!0),S>i&&A<=i&&(c=l(o,x,v,w,_,i),T=!0),!a&&T&&(s&&(o.end=u+h*c),e.push(o),o=vc(t)),s&&(u+=h)}let p=t.points.length-3,f=t.points[p],d=t.points[p+1],y=t.points[p+2],m=n===0?f:d;m>=r&&m<=i&&Kr(o.points,f,d,y),p=o.points.length-3,a&&p>=3&&(o.points[p]!==o.points[0]||o.points[p+1]!==o.points[1])&&Kr(o.points,o.points[0],o.points[1],o.points[2]),o.points.length&&(Kl(o),e.push(o))}function vc(t){return{points:[],size:t.size,start:t.start,end:t.end}}function eu(t,e,r,i,n,a){for(let s of t)Gd(s,e,r,i,n,a,!1)}function Kr(t,e,r,i){t.push(e,r,i)}function I2(t,e,r,i,n,a){let s=(a-e)/(i-e);return Kr(t.points,a,r+(n-r)*s,1),s}function C2(t,e,r,i,n,a){let s=(a-r)/(n-r);return Kr(t.points,e+(i-e)*s,a,1),s}function ru(t,e){let r=e.buffer/e.extent,i=t,n=Me(t,1,-1-r,r,0,-1,2,e),a=Me(t,1,1-r,2+r,0,-1,2,e);return!n&&!a||(i=Me(t,1,-r,1+r,0,-1,2,e)||[],n&&(i=bc(n,1).concat(i)),a&&(i=i.concat(bc(a,-1)))),i}function bc(t,e){let r=[];for(let i of t)switch(i.type){case"Point":case"MultiPoint":{let n=M2(i.geometry,e);r.push(Ct(i.id,i.type,n,i.tags));continue}case"LineString":{let n=Xs(i.geometry,e);r.push(Ct(i.id,i.type,n,i.tags));continue}case"MultiLineString":case"Polygon":{let n=[];for(let a of i.geometry)n.push(Xs(a,e));r.push(Ct(i.id,i.type,n,i.tags));continue}case"MultiPolygon":{let n=[];for(let a of i.geometry){let s=[];for(let o of a)s.push(Xs(o,e));n.push(s)}r.push(Ct(i.id,i.type,n,i.tags));continue}}return r}function M2(t,e){let r=[];for(let i=0;io.id));t=t.filter(o=>!s.has(o.id))}if(i.add.size){let s=Jl({type:"FeatureCollection",features:Array.from(i.add.values())},r);s=ru(s,r),n=n.concat(s),t=t.concat(s)}}if(i.update.size){let a=new Map,s=[];for(let o of t)i.update.has(o.id)?a.set(o.id,[...a.get(o.id)||[],o]):s.push(o);for(let[o,l]of i.update){let u=a.get(o);if(!u||u.length===0)continue;let h=P2(u,l,r);n=n.concat(u,h),s=s.concat(h)}t=s}return{affected:n,source:t}}function P2(t,e,r){var a,s;let i=!!e.newGeometry,n=e.removeAllProperties||((a=e.removeProperties)==null?void 0:a.length)>0||((s=e.addOrUpdateProperties)==null?void 0:s.length)>0;if(i){let o=t[0],l=Jl({type:"FeatureCollection",features:[{type:"Feature",id:o.id,geometry:e.newGeometry,properties:n?wc(o.tags,e):o.tags}]},r);return l=ru(l,r),l}if(n){let o=[];for(let l of t){let u=Xe({},l);u.tags=wc(u.tags,e),o.push(u)}return o}return t}function wc(t,e){if(e.removeAllProperties)return{};let r=Xe({},t||{});if(e.removeProperties)for(let i of e.removeProperties)delete r[i];if(e.addOrUpdateProperties)for(let{key:i,value:n}of e.addOrUpdateProperties)r[i]=n;return r}function z2(t,e){var r,i;return t?{removeAll:t.removeAll,remove:new Set(t.remove||[]),add:new Map((r=t.add)==null?void 0:r.map(n=>[e.promoteId?n.properties[e.promoteId]:n.id,n])),update:new Map((i=t.update)==null?void 0:i.map(n=>[n.id,n]))}:{remove:new Set,add:new Map,update:new Map}}var Dc=[Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array],yt=new Uint32Array(96),L2=class Xd{static from(e){if(!e||e.byteLength===void 0||e.buffer)throw Error("Data must be an instance of ArrayBuffer or SharedArrayBuffer.");let[r,i]=new Uint8Array(e,0,2);if(r!==219)throw Error("Data does not appear to be in a KDBush format.");let n=i>>4;if(n!==1)throw Error(`Got v${n} data when expected v1.`);let a=Dc[i&15];if(!a)throw Error("Unrecognized array type.");let[s]=new Uint16Array(e,2,1),[o]=new Uint32Array(e,4,1);return new Xd(o,s,a,void 0,e)}constructor(e,r=64,i=Float64Array,n=ArrayBuffer,a){if(isNaN(e)||e<0)throw Error(`Unexpected numItems value: ${e}.`);this.numItems=+e,this.nodeSize=Math.min(Math.max(+r,2),65535),this.ArrayType=i,this.IndexArrayType=e<65536?Uint16Array:Uint32Array;let s=Dc.indexOf(this.ArrayType),o=e*2*this.ArrayType.BYTES_PER_ELEMENT,l=e*this.IndexArrayType.BYTES_PER_ELEMENT,u=(8-l%8)%8;if(s<0)throw Error(`Unexpected typed array class: ${i}.`);if(a)this.data=a,this.ids=new this.IndexArrayType(a,8,e),this.coords=new i(a,8+l+u,e*2),this._pos=e*2,this._finished=!0;else{let h=this.data=new n(8+o+l+u);this.ids=new this.IndexArrayType(h,8,e),this.coords=new i(h,8+l+u,e*2),this._pos=0,this._finished=!1,new Uint8Array(h,0,2).set([219,16+s]),new Uint16Array(h,2,1)[0]=r,new Uint32Array(h,4,1)[0]=e}}add(e,r){let i=this._pos>>1;return this.ids[i]=i,this.coords[this._pos++]=e,this.coords[this._pos++]=r,i}finish(){let e=this._pos>>1;if(e!==this.numItems)throw Error(`Added ${e} items when expected ${this.numItems}.`);return Qo(this.ids,this.coords,this.nodeSize,0,this.numItems-1,0),this._finished=!0,this}range(e,r,i,n){if(!this._finished)throw Error("Data not yet indexed - call index.finish().");let{ids:a,coords:s,nodeSize:o}=this;yt[0]=0,yt[1]=a.length-1,yt[2]=0;let l=3,u=[];for(;l>0;){let h=yt[--l],c=yt[--l],p=yt[--l];if(c-p<=o){for(let m=p;m<=c;m++){let g=s[2*m],x=s[2*m+1];g>=e&&g<=i&&x>=r&&x<=n&&u.push(a[m])}continue}let f=p+c>>1,d=s[2*f],y=s[2*f+1];d>=e&&d<=i&&y>=r&&y<=n&&u.push(a[f]),(h===0?e<=d:r<=y)&&(yt[l++]=p,yt[l++]=f-1,yt[l++]=1-h),(h===0?i>=d:n>=y)&&(yt[l++]=f+1,yt[l++]=c,yt[l++]=1-h)}return u}within(e,r,i){let n=[];return this.withinInto(e,r,i,n),n}withinInto(e,r,i,n){if(!this._finished)throw Error("Data not yet indexed - call index.finish().");let{ids:a,coords:s,nodeSize:o}=this;yt[0]=0,yt[1]=a.length-1,yt[2]=0;let l=3,u=0,h=i*i;for(;l>0;){let c=yt[--l],p=yt[--l],f=yt[--l];if(p-f<=o){for(let g=f;g<=p;g++)_c(s[2*g],s[2*g+1],e,r)<=h&&(n[u++]=a[g]);continue}let d=f+p>>1,y=s[2*d],m=s[2*d+1];_c(y,m,e,r)<=h&&(n[u++]=a[d]),(c===0?e-i<=y:r-i<=m)&&(yt[l++]=f,yt[l++]=d-1,yt[l++]=1-c),(c===0?e+i>=y:r+i>=m)&&(yt[l++]=d+1,yt[l++]=p,yt[l++]=1-c)}return u}};function Qo(t,e,r,i,n,a){if(n-i<=r)return;let s=i+n>>1;Yd(t,e,s,i,n,a),Qo(t,e,r,i,s-1,1-a),Qo(t,e,r,s+1,n,1-a)}function Yd(t,e,r,i,n,a){for(;n>i;){if(n-i>600){let u=n-i+1,h=r-i+1,c=Math.log(u),p=.5*Math.exp(2*c/3),f=.5*Math.sqrt(c*p*(u-p)/u)*(h-u/2<0?-1:1);Yd(t,e,r,Math.max(i,Math.floor(r-h*p/u+f)),Math.min(n,Math.floor(r+(u-h)*p/u+f)),a)}let s=e[2*r+a],o=i,l=n;for(Li(t,e,i,r),e[2*n+a]>s&&Li(t,e,i,n);os;)l--}e[2*i+a]===s?Li(t,e,i,l):(l++,Li(t,e,l,n)),l<=r&&(i=l+1),r<=l&&(n=l-1)}}function Li(t,e,r,i){Ys(t,r,i),Ys(e,2*r,2*i),Ys(e,2*r+1,2*i+1)}function Ys(t,e,r){let i=t[e];t[e]=t[r],t[r]=i}function _c(t,e,r,i){let n=t-r,a=e-i;return n*n+a*a}var tl={minZoom:0,maxZoom:16,minPoints:2,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:t=>t},V2=class{constructor(t){this.options=Object.assign(Object.create(tl),t),this.trees=Array(this.options.maxZoom+1),this.stride=this.options.reduce?7:6,this.clusterProps=[],this.points=[]}load(t){let e=[];for(let r of t){if(!r.geometry)continue;let[i,n]=r.geometry.coordinates,[a,s]=[Zr(i),Hr(n)],o={id:r.id,type:"Point",geometry:[a,s],tags:r.properties};e.push(o)}this.createIndex(e)}initialize(t){let e=[];for(let r of t)r.type==="Point"&&e.push(r);this.createIndex(e)}updateIndex(t,e,r){this.options=Object.assign(Object.create(tl),r.clusterOptions),this.initialize(t)}createIndex(t){let{log:e,minZoom:r,maxZoom:i}=this.options;e&&console.time("total time");let n=`prepare ${t.length} points`;e&&console.time(n),this.points=t;let a=[];for(let o=0;o=r;o--){let l=Date.now();s=this.trees[o]=this.createTree(this.cluster(s,o)),e&&console.log("z%d: %d clusters in %dms",o,s.numItems,Date.now()-l)}e&&console.timeEnd("total time")}getClusters(t,e){return this.getClustersInternal(t,e).map(r=>Ca(r))}getClustersInternal(t,e){let r=((t[0]+180)%360+360)%360-180,i=Math.max(-90,Math.min(90,t[1])),n=t[2]===180?180:((t[2]+180)%360+360)%360-180,a=Math.max(-90,Math.min(90,t[3]));if(t[2]-t[0]>=360)r=-180,n=180;else if(r>n){let h=this.getClustersInternal([r,i,180,a],e),c=this.getClustersInternal([-180,i,n,a],e);return h.concat(c)}let s=this.trees[this.limitZoom(e)],o=s.range(Zr(r),Hr(a),Zr(n),Hr(i)),l=s.flatData,u=[];for(let h of o){let c=this.stride*h;u.push(l[c+5]>1?O2(l,c,this.clusterProps):this.points[l[c+3]])}return u}getChildren(t){let e=this.getOriginId(t),r=this.getOriginZoom(t),i=Error("No cluster with the specified id: "+t),n=this.trees[r];if(!n)throw i;let a=n.flatData;if(e*this.stride>=a.length)throw i;let s=this.options.radius/(this.options.extent*2**(r-1)),o=a[e*this.stride],l=a[e*this.stride+1],u=n.within(o,l,s),h=[];for(let c of u){let p=c*this.stride;a[p+4]===t&&h.push(a[p+5]>1?R2(a,p,this.clusterProps):Ca(this.points[a[p+3]]))}if(h.length===0)throw i;return h}getLeaves(t,e,r){e||(e=10),r||(r=0);let i=[];return this.appendLeaves(i,t,e,r,0),i}getTile(t,e,r){let i=this.trees[this.limitZoom(t)];if(!i)return null;let n=2**t,{extent:a,radius:s}=this.options,o=s/a,l=(r-o)/n,u=(r+1+o)/n,h={transformed:!0,features:[],source:null,x:e,y:r,z:t};return this.addTileFeatures(i.range((e-o)/n,l,(e+1+o)/n,u),i.flatData,e,r,n,h),e===0&&this.addTileFeatures(i.range(1-o/n,l,1,u),i.flatData,n,r,n,h),e===n-1&&this.addTileFeatures(i.range(0,l,o/n,u),i.flatData,-1,r,n,h),h}getClusterExpansionZoom(t){return this.getOriginZoom(t)}appendLeaves(t,e,r,i,n){let a=this.getChildren(e);for(let s of a){let o=s.properties;if(o!=null&&o.cluster?n+o.point_count<=i?n+=o.point_count:n=this.appendLeaves(t,o.cluster_id,r,i,n):n1,u,h,c;if(l)u=iu(e,o,this.clusterProps),h=e[o],c=e[o+1];else{let d=this.points[e[o+3]];u=d.tags,[h,c]=d.geometry}let p={type:1,geometry:[[Math.round(this.options.extent*(h*n-r)),Math.round(this.options.extent*(c*n-i))]],tags:u},f;f=l||this.options.generateId?e[o+3]:this.points[e[o+3]].id,f!==void 0&&(p.id=f),a.features.push(p)}}limitZoom(t){return Math.max(this.options.minZoom,Math.min(Math.floor(+t),this.options.maxZoom+1))}cluster(t,e){let{radius:r,extent:i,reduce:n,minPoints:a}=this.options,s=r/(i*2**e),o=t.flatData,l=[],u=this.stride;for(let h=0;he&&(y+=o[g+5])}if(y>d&&y>=a){let m=c*d,g=p*d,x,v=-1,b=((h/u|0)<<5)+(e+1)+this.points.length;for(let w of f){let _=w*u;if(o[_+2]<=e)continue;o[_+2]=e;let A=o[_+5];m+=o[_]*A,g+=o[_+1]*A,o[_+4]=b,n&&(x||(x=this.map(o,h,!0),v=this.clusterProps.length,this.clusterProps.push(x)),n(x,this.map(o,_)))}o[h+4]=b,l.push(m/y,g/y,1/0,b,-1,y),n&&l.push(v)}else{for(let m=0;m1)for(let m of f){let g=m*u;if(!(o[g+2]<=e)){o[g+2]=e;for(let x=0;x>5}getOriginZoom(t){return(t-this.points.length)%32}map(t,e,r){if(t[e+5]>1){let a=this.clusterProps[t[e+6]];return r?Object.assign({},a):a}let i=this.points[t[e+3]].tags,n=this.options.map(i);return r&&n===i?Object.assign({},n):n}};function O2(t,e,r){return{id:t[e+3],type:"Point",tags:iu(t,e,r),geometry:[t[e],t[e+1]]}}function R2(t,e,r){return{type:"Feature",id:t[e+3],properties:iu(t,e,r),geometry:{type:"Point",coordinates:[qd(t[e]),jd(t[e+1])]}}}function iu(t,e,r){let i=t[e+5],n=i>=1e4?`${Math.round(i/1e3)}k`:i>=1e3?`${Math.round(i/100)/10}k`:i,a=t[e+6],s=a===-1?{}:Object.assign({},r[a]);return Object.assign(s,{cluster:!0,cluster_id:t[e+3],point_count:i,point_count_abbreviated:n})}var Wd="geojsonvt_clip_start",Zd="geojsonvt_clip_end";function Ac(t,e,r,i,n){let a=e===n.maxZoom?0:n.tolerance/((1<0&&e.size<(n?s:i)){r.numPoints+=e.points.length/3;return}let o=[];for(let l=0;ls)&&(r.numSimplified++,o.push(e.points[l],e.points[l+1])),r.numPoints++;n&&G2(o,a),t.push(o)}function G2(t,e){let r=0;for(let i=0,n=t.length,a=n-2;i0===e)for(let i=0,n=t.length;i1&&(console.log("invalidating tiles"),console.time("invalidating")),this.invalidateTiles(e),r.debug>1&&console.timeEnd("invalidating");let[i,n,a]=[0,0,0],s=Ac(t,i,n,a,r);s.source=t;let o=ra(i,n,a);if(this.tiles[o]=s,this.tileCoords.push({z:i,x:n,y:a,id:o}),r.debug){let l=`z${i}`;this.stats[l]=(this.stats[l]||0)+1,this.total++}}getClusterExpansionZoom(t){return null}getChildren(t){return null}getLeaves(t,e,r){return null}getTile(t,e,r){let{extent:i,debug:n}=this.options,a=1<1&&console.log("drilling down to z%d-%d-%d",t,e,r);let o=t,l=e,u=r,h;for(;!h&&o>0;)o--,l>>=1,u>>=1,h=this.tiles[ra(o,l,u)];return!(h!=null&&h.source)||(n>1&&(console.log("found parent tile z%d-%d-%d",o,l,u),console.time("drilling down")),this.splitTile(h.source,o,l,u,t,e,r),n>1&&console.timeEnd("drilling down"),!this.tiles[s])?null:Sc(this.tiles[s],i)}splitTile(t,e,r,i,n,a,s){let o=[t,e,r,i],l=this.options,u=l.debug;for(;o.length;){i=o.pop(),r=o.pop(),e=o.pop(),t=o.pop();let h=1<1&&console.time("creation"),p=this.tiles[c]=Ac(t,e,r,i,l),this.tileCoords.push({z:e,x:r,y:i,id:c}),u)){u>1&&(console.log("tile z%d-%d-%d (features: %d, points: %d, simplified: %d)",e,r,i,p.numFeatures,p.numPoints,p.numSimplified),console.timeEnd("creation"));let A=`z${e}`;this.stats[A]=(this.stats[A]||0)+1,this.total++}if(p.source=t,n==null){if(e===l.indexMaxZoom||p.numPoints<=l.indexMaxPoints)continue}else{if(e===l.maxZoom||e===n)continue;if(n!=null){let A=n-e;if(r!==a>>A||i!==s>>A)continue}}if(p.source=null,!t.length)continue;u>1&&console.time("clipping");let f=.5*l.buffer/l.extent,d=.5-f,y=.5+f,m=1+f,g=null,x=null,v=null,b=null,w=Me(t,h,r-f,r+y,0,p.minX,p.maxX,l),_=Me(t,h,r+d,r+m,0,p.minX,p.maxX,l);w&&(g=Me(w,h,i-f,i+y,1,p.minY,p.maxY,l),x=Me(w,h,i+d,i+m,1,p.minY,p.maxY,l)),_&&(v=Me(_,h,i-f,i+y,1,p.minY,p.maxY,l),b=Me(_,h,i+d,i+m,1,p.minY,p.maxY,l)),u>1&&console.timeEnd("clipping"),o.push(g||[],e+1,r*2,i*2),o.push(x||[],e+1,r*2,i*2+1),o.push(v||[],e+1,r*2+1,i*2),o.push(b||[],e+1,r*2+1,i*2+1)}}invalidateTiles(t){if(!t.length)return;let e=this.options,{debug:r}=e,i=1/0,n=-1/0,a=1/0,s=-1/0;for(let u of t)i=Math.min(i,u.minX),n=Math.max(n,u.maxX),a=Math.min(a,u.minY),s=Math.max(s,u.maxY);let o=e.buffer/e.extent,l=new Set;for(let u in this.tiles){let h=this.tiles[u],c=1<=f||s=y)continue;let m=!1;for(let g of t)if(g.maxX>=p&&g.minX=d&&g.minY1&&console.log("invalidate tile z%d-%d-%d (features: %d, points: %d, simplified: %d)",h.z,h.x,h.y,h.numFeatures,h.numPoints,h.numSimplified);let g=`z${h.z}`;this.stats[g]=(this.stats[g]||0)-1,this.total--}delete this.tiles[u],l.add(u)}}l.size&&(this.tileCoords=this.tileCoords.filter(u=>!l.has(u.id)))}};function ra(t,e,r){return((1<24)throw Error("maxZoom should be in the 0-24 range");if(e.promoteId&&e.generateId)throw Error("promoteId and generateId cannot be used together.");let i=Jl(t,e);r&&(console.timeEnd("preprocess data"),console.log("index: maxZoom: %d, maxPoints: %d",e.indexMaxZoom,e.indexMaxPoints),console.time("generate tiles")),i=ru(i,e),e.updateable&&(this.source=i),this.initializeIndex(i,e)}initializeIndex(t,e){this.tileIndex=e.cluster?new V2(e.clusterOptions):new W2(e),t.length&&this.tileIndex.initialize(t)}getTile(t,e,r){return t=+t,e=+e,r=+r,t<0||t>24?null:this.tileIndex.getTile(t,e,r)}updateData(t,e){let r=this.options;if(!r.updateable)throw Error("to update tile geojson `updateable` option must be set to true");let{affected:i,source:n}=B2(this.source,t,r);e&&({affected:i,source:n}=this.filterUpdate(n,i,e)),i.length&&(this.source=n,this.tileIndex.updateIndex(n,i,r))}filterUpdate(t,e,r){let i=new Set;for(let n of t)n.id!=null&&(r(Ca(n))||(e.push(n),i.add(n.id)));return t=t.filter(n=>!i.has(n.id)),{affected:e,source:t}}getData(){if(!this.options.updateable)throw Error("to retrieve data the `updateable` option must be set to true");return D2(this.source)}updateClusterOptions(t,e){let r=this.options.cluster;if(this.options.cluster=t,this.options.clusterOptions=e,r==t){this.tileIndex.updateIndex(this.source,[],this.options);return}this.initializeIndex(this.source,this.options)}getClusterExpansionZoom(t){return this.tileIndex.getClusterExpansionZoom(t)}getClusterChildren(t){return this.tileIndex.getChildren(t)}getClusterLeaves(t,e,r){return this.tileIndex.getLeaves(t,e,r)}},el=Et([{name:"a_pos_normal",components:2,type:"Int16"},{name:"a_data",components:4,type:"Uint8"}],4),H2=el.members;el.size,el.alignment;var rl=Et([{name:"a_uv_x",components:1,type:"Float32"},{name:"a_split_index",components:1,type:"Float32"}]),K2=rl.members;rl.size,rl.alignment;var J2=Math.cos(75/2*(Math.PI/180)),Jd=1/2,Ec=2**14/Jd,Qd=class{constructor(t){this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map(e=>e.id),this.index=t.index,this.hasDependencies=!1,this.patternFeatures=[],this.lineClipsArray=[],this.gradients={};for(let e of this.layers)this.gradients[e.id]={};this.layoutVertexArray=new vg,this.layoutVertexArray2=new bg,this.indexArray=new En,this.programConfigurations=new Dr(t.layers,t.zoom),this.segments=new ie,this.maxLineLength=0,this.stateDependentLayerIds=this.layers.filter(e=>e.isStateDependent()).map(e=>e.id)}populate(t,e,r){this.hasDependencies=Fa("line",this.layers,e)||this.hasLineDasharray(this.layers);let i=this.layers[0].layout.get("line-sort-key"),n=!i.isConstant(),a=[],s=new st(this.zoom),o=this.layers[0]._featureFilter.needGeometry;for(let{feature:l,id:u,index:h,sourceLayerIndex:c}of t){let p=hi(l,o);if(!this.layers[0]._featureFilter.filter(s,p,r))continue;let f=n?i.evaluate(p,{},r):void 0,d={id:u,properties:l.properties,type:l.type,sourceLayerIndex:c,index:h,geometry:o?p.geometry:Fr(l),patterns:{},dashes:{},sortKey:f};a.push(d)}n&&a.sort((l,u)=>l.sortKey-u.sortKey);for(let l of a){let{geometry:u,index:h,sourceLayerIndex:c}=l;this.hasDependencies?(Fa("line",this.layers,e)?Wl("line",this.layers,l,{zoom:this.zoom},e):this.hasLineDasharray(this.layers)&&this.addLineDashDependencies(this.layers,l,this.zoom,e),this.patternFeatures.push(l)):this.addFeature(l,u,h,r,{},{},e.subdivisionGranularity);let p=t[h].feature;e.featureIndex.insert(p,u,h,c,this.index)}}update(t,e,r,i){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(t,e,this.stateDependentLayers,{imagePositions:r,dashPositions:i})}addFeatures({options:t,canonical:e,patternPositions:r,dashPositions:i}){for(let n of this.patternFeatures)this.addFeature(n,n.geometry,n.index,e,r,i,t.subdivisionGranularity)}isEmpty(){return this.layoutVertexArray.length===0}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(t){this.uploaded||(this.layoutVertexArray2.length!==0&&(this.layoutVertexBuffer2=t.createVertexBuffer(this.layoutVertexArray2,K2)),this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,H2),this.indexBuffer=t.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(t),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())}lineFeatureClips(t){if(t.properties&&Object.hasOwn(t.properties,"geojsonvt_clip_start")&&Object.hasOwn(t.properties,"geojsonvt_clip_end"))return{start:+t.properties[Wd],end:+t.properties[Zd]}}addFeature(t,e,r,i,n,a,s){let o=this.layers[0].layout,l=o.get("line-join").evaluate(t,{}),u=o.get("line-cap").evaluate(t,{}),h=o.get("line-miter-limit").evaluate(t,{}),c=o.get("line-round-limit").evaluate(t,{});this.lineClips=this.lineFeatureClips(t);for(let p of e)this.addLine(p,t,l,u,h,c,i,s);this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,t,r,{imagePositions:n,dashPositions:a,canonical:i})}addLine(t,e,r,i,n,a,s,o){this.distance=0,this.scaledDistance=0,this.totalDistance=0;let l=s?o.line.getGranularityForZoomLevel(s.z):1;if(t=yr(t,l),this.lineClips){this.lineClipsArray.push(this.lineClips);for(let v=0;v=2&&t[h-1].equals(t[h-2]);)h--;let c=0;for(;c0;if(T&&v>c){let V=d.dist(y);if(V>2*p){let F=d.sub(d.sub(y)._mult(p/V)._round());this.updateDistance(y,F),this.addCurrentVertex(F,g,0,0,f),y=F}}let O=y&&m,B=O?r:u?"butt":i;if(O&&B==="round"&&(An&&(B="bevel"),B==="bevel"&&(A>2&&(B="flipbevel"),A100)b=x.mult(-1);else{let V=A*g.add(x).mag()/g.sub(x).mag();b._perp()._mult(V*(L?-1:1))}this.addCurrentVertex(d,b,0,0,f),this.addCurrentVertex(d,b.mult(-1),0,0,f)}else if(B==="bevel"||B==="fakeround"){let V=-Math.sqrt(A*A-1),F=L?V:0,$=L?0:V;if(y&&this.addCurrentVertex(d,g,F,$,f),B==="fakeround"){let G=Math.round(S*180/Math.PI/20);for(let P=1;P2*p){let F=d.add(m.sub(d)._mult(p/V)._round());this.updateDistance(d,F),this.addCurrentVertex(F,x,0,0,f),d=F}}}}addCurrentVertex(t,e,r,i,n,a=!1){let s=e.x+e.y*r,o=e.y-e.x*r,l=-e.x+e.y*i,u=-e.y-e.x*i;this.addHalfVertex(t,s,o,a,!1,r,n),this.addHalfVertex(t,l,u,a,!0,-i,n),this.distance>Ec/2&&this.totalDistance===0&&(this.distance=0,this.updateScaledDistance(),this.addCurrentVertex(t,e,r,i,n,a))}addHalfVertex({x:t,y:e},r,i,n,a,s,o){let l=(this.lineClips?this.scaledDistance*(Ec-1):this.scaledDistance)*Jd;if(this.layoutVertexArray.emplaceBack((t<<1)+ +!!n,(e<<1)+ +!!a,Math.round(63*r)+128,Math.round(63*i)+128,(s===0?0:s<0?-1:1)+1|(l&63)<<2,l>>6),this.lineClips){let h=(this.scaledDistance-this.lineClips.start)/(this.lineClips.end-this.lineClips.start);this.layoutVertexArray2.emplaceBack(h,this.lineClipsArray.length)}let u=o.vertexLength++;this.e1>=0&&this.e2>=0&&(this.indexArray.emplaceBack(this.e1,u,this.e2),o.primitiveLength++),a?this.e2=u:this.e1=u}updateScaledDistance(){this.scaledDistance=this.lineClips?this.lineClips.start+(this.lineClips.end-this.lineClips.start)*this.distance/this.totalDistance:this.distance}updateDistance(t,e){this.distance+=t.dist(e),this.updateScaledDistance()}hasLineDasharray(t){for(let e of t){let r=e.paint.get("line-dasharray");if(r&&!r.isConstant())return!0}return!1}addLineDashDependencies(t,e,r,i){for(let n of t){let a=n.paint.get("line-dasharray");if(!a||a.value.kind==="constant")continue;let s=n.layout.get("line-cap").evaluate(e,{})==="round",o={dasharray:a.value.evaluate({zoom:r-1},e,{}),round:s},l={dasharray:a.value.evaluate({zoom:r},e,{}),round:s},u={dasharray:a.value.evaluate({zoom:r+1},e,{}),round:s},h=`${o.dasharray.join(",")},${o.round}`,c=`${l.dasharray.join(",")},${l.round}`,p=`${u.dasharray.join(",")},${u.round}`;i.dashDependencies[h]=o,i.dashDependencies[c]=l,i.dashDependencies[p]=u,e.dashes[n.id]={min:h,mid:c,max:p}}}};C("LineBucket",Qd,{omit:["layers","patternFeatures"]});var Fc,Q2=()=>Fc||(Fc=new Yt({"line-cap":new U(D.layout_line["line-cap"],"line-cap"),"line-join":new U(D.layout_line["line-join"],"line-join"),"line-miter-limit":new U(D.layout_line["line-miter-limit"],"line-miter-limit"),"line-round-limit":new U(D.layout_line["line-round-limit"],"line-round-limit"),"line-sort-key":new U(D.layout_line["line-sort-key"],"line-sort-key")})),Tc,tv=()=>Tc||(Tc=new Yt({"line-opacity":new U(D.paint_line["line-opacity"],"line-opacity"),"line-layer-opacity":new R(D.paint_line["line-layer-opacity"],"line-layer-opacity"),"line-color":new U(D.paint_line["line-color"],"line-color"),"line-translate":new R(D.paint_line["line-translate"],"line-translate"),"line-translate-anchor":new R(D.paint_line["line-translate-anchor"],"line-translate-anchor"),"line-width":new U(D.paint_line["line-width"],"line-width"),"line-gap-width":new U(D.paint_line["line-gap-width"],"line-gap-width"),"line-offset":new U(D.paint_line["line-offset"],"line-offset"),"line-blur":new U(D.paint_line["line-blur"],"line-blur"),"line-dasharray":new cn(D.paint_line["line-dasharray"],"line-dasharray"),"line-pattern":new cn(D.paint_line["line-pattern"],"line-pattern"),"line-gradient":new Za(D.paint_line["line-gradient"],"line-gradient")})),kc={get paint(){return tv()},get layout(){return Q2()}},ev=class extends U{possiblyEvaluate(t,e){return e=new st(Math.floor(e.zoom),{now:e.now,fadeDuration:e.fadeDuration,zoomHistory:e.zoomHistory,transition:e.transition}),super.possiblyEvaluate(t,e)}evaluate(t,e,r,i){return e=Xt({},e,{zoom:Math.floor(e.zoom)}),super.evaluate(t,e,r,i)}},ia;var rv=class extends ye{constructor(t,e){super(t,kc,e),this.gradientVersion=0,ia||(ia=new ev(kc.paint.properties["line-width"].specification,"line-floorwidth"),ia.useIntegerZoom=!0)}_handleSpecialPaintPropertyUpdate(t){if(t==="line-gradient"){let e=this.gradientExpression();this.stepInterpolant=Im(e)?e._styleExpression.expression instanceof Dl:!1,this.gradientVersion=(this.gradientVersion+1)%(2**53-1)}}gradientExpression(){return this._transitionablePaint._values["line-gradient"].value.expression}recalculate(t,e){super.recalculate(t,e),this.paint._values["line-floorwidth"]=ia.possiblyEvaluate(this._transitioningPaint._values["line-width"].value,t)}createBucket(t){return new Qd(t)}queryRadius(t){let e=t,r=Ic(Wr("line-width",this,e),Wr("line-gap-width",this,e)),i=Wr("line-offset",this,e);return r/2+Math.abs(i)+Ka(this.paint.get("line-translate"))}queryIntersectsFeature({queryGeometry:t,feature:e,featureState:r,geometry:i,transform:n,pixelsToTileUnits:a}){let s=Ja(t,this.paint.get("line-translate"),this.paint.get("line-translate-anchor"),-n.bearingInRadians,a),o=a/2*Ic(this.paint.get("line-width").evaluate(e,r),this.paint.get("line-gap-width").evaluate(e,r)),l=this.paint.get("line-offset").evaluate(e,r);return l&&(i=Ug(i,l*a)),Lg(s,i,o)}isTileClipped(){return!0}};function Ic(t,e){return e>0?e+2*t:t}var iv=Et([{name:"a_pos_offset",components:4,type:"Int16"},{name:"a_data",components:4,type:"Uint16"},{name:"a_pixeloffset",components:4,type:"Int16"},{name:"a_height_offset",components:1,type:"Float32"}],4),nv=Et([{name:"a_projected_pos",components:3,type:"Float32"}],4);Et([{name:"a_fade_opacity",components:1,type:"Uint32"}],4);var av=Et([{name:"a_placed",components:2,type:"Uint8"},{name:"a_shift",components:2,type:"Float32"},{name:"a_box_real",components:2,type:"Int16"}]);Et([{type:"Int16",name:"anchorPointX"},{type:"Int16",name:"anchorPointY"},{type:"Int16",name:"x1"},{type:"Int16",name:"y1"},{type:"Int16",name:"x2"},{type:"Int16",name:"y2"},{type:"Uint32",name:"featureIndex"},{type:"Uint16",name:"sourceLayerIndex"},{type:"Uint16",name:"bucketIndex"}]);var Cc=Et([{name:"a_pos",components:2,type:"Int16"},{name:"a_anchor_pos",components:2,type:"Int16"},{name:"a_extrude",components:2,type:"Int16"}],4),S5=Et([{name:"a_pos",components:2,type:"Float32"},{name:"a_radius",components:1,type:"Float32"},{name:"a_flags",components:2,type:"Int16"}],4);Et([{name:"triangle",components:3,type:"Uint16"}]),Et([{type:"Int16",name:"anchorX"},{type:"Int16",name:"anchorY"},{type:"Uint16",name:"glyphStartIndex"},{type:"Uint16",name:"numGlyphs"},{type:"Uint32",name:"vertexStartIndex"},{type:"Uint32",name:"lineStartIndex"},{type:"Uint32",name:"lineLength"},{type:"Uint16",name:"segment"},{type:"Uint16",name:"lowerSize"},{type:"Uint16",name:"upperSize"},{type:"Float32",name:"lineOffsetX"},{type:"Float32",name:"lineOffsetY"},{type:"Uint8",name:"writingMode"},{type:"Uint8",name:"placedOrientation"},{type:"Uint8",name:"hidden"},{type:"Uint32",name:"crossTileID"},{type:"Int16",name:"associatedIconIndex"},{type:"Float32",name:"heightOffset"}]),Et([{type:"Int16",name:"anchorX"},{type:"Int16",name:"anchorY"},{type:"Int16",name:"rightJustifiedTextSymbolIndex"},{type:"Int16",name:"centerJustifiedTextSymbolIndex"},{type:"Int16",name:"leftJustifiedTextSymbolIndex"},{type:"Int16",name:"verticalPlacedTextSymbolIndex"},{type:"Int16",name:"placedIconSymbolIndex"},{type:"Int16",name:"verticalPlacedIconSymbolIndex"},{type:"Uint16",name:"key"},{type:"Uint16",name:"textBoxStartIndex"},{type:"Uint16",name:"textBoxEndIndex"},{type:"Uint16",name:"verticalTextBoxStartIndex"},{type:"Uint16",name:"verticalTextBoxEndIndex"},{type:"Uint16",name:"iconBoxStartIndex"},{type:"Uint16",name:"iconBoxEndIndex"},{type:"Uint16",name:"verticalIconBoxStartIndex"},{type:"Uint16",name:"verticalIconBoxEndIndex"},{type:"Uint16",name:"featureIndex"},{type:"Uint16",name:"numHorizontalGlyphVertices"},{type:"Uint16",name:"numVerticalGlyphVertices"},{type:"Uint16",name:"numIconVertices"},{type:"Uint16",name:"numVerticalIconVertices"},{type:"Uint16",name:"useRuntimeCollisionCircles"},{type:"Uint32",name:"crossTileID"},{type:"Float32",name:"textBoxScale"},{type:"Float32",name:"collisionCircleDiameter"},{type:"Uint16",name:"textAnchorOffsetStartIndex"},{type:"Uint16",name:"textAnchorOffsetEndIndex"},{type:"Float32",name:"heightOffset"}]),Et([{type:"Float32",name:"offsetX"}]),Et([{type:"Int16",name:"x"},{type:"Int16",name:"y"},{type:"Int16",name:"tileUnitDistanceFromAnchor"}]),Et([{type:"Uint16",name:"textAnchor"},{type:"Float32",components:2,name:"textOffset"}]);var Ar=new class{constructor(){this.TIMEOUT=5e3,this.applyArabicShaping=null,this.processBidirectionalText=null,this.processStyledBidirectionalText=null,this.pluginStatus="unavailable",this.pluginURL=null,this.loadScriptResolve=()=>{}}setState(t){this.pluginStatus=t.pluginStatus,this.pluginURL=t.pluginURL}getState(){return{pluginStatus:this.pluginStatus,pluginURL:this.pluginURL}}setMethods(t){if(Ar.isParsed())throw Error("RTL text plugin already registered.");this.applyArabicShaping=t.applyArabicShaping,this.processBidirectionalText=t.processBidirectionalText,this.processStyledBidirectionalText=t.processStyledBidirectionalText,this.loadScriptResolve()}isParsed(){return this.applyArabicShaping!=null&&this.processBidirectionalText!=null&&this.processStyledBidirectionalText!=null}getRTLTextPluginStatus(){return this.pluginStatus}syncState(t,e){return et(this,null,function*(){if(this.isParsed())return this.getState();if(t.pluginStatus!=="loading")return this.setState(t),t;let r=t.pluginURL,i=new Promise(a=>{this.loadScriptResolve=a}),n=new Promise(a=>setTimeout(()=>a(),this.TIMEOUT));if(yield e(r),yield Promise.race([i,n]),this.isParsed()){let a={pluginStatus:"loaded",pluginURL:r};return this.setState(a),a}throw this.setState({pluginStatus:"error",pluginURL:""}),Error(`RTL Text Plugin failed to import scripts from ${r}`)})}};function sv(t){return/[\\u0600-\\u0604\\u0606-\\u060B\\u060D-\\u061A\\u061C-\\u061E\\u0620-\\u063F\\u0641-\\u064A\\u0656-\\u066F\\u0671-\\u06DC\\u06DE-\\u070D\\u070F-\\u074A\\u074D-\\u077F\\u07C0-\\u07FA\\u07FD-\\u07FF\\u0840-\\u085B\\u085E\\u0860-\\u086A\\u0870-\\u0891\\u0897-\\u08E1\\u08E3-\\u08FF\\u1800\\u1801\\u1804\\u1806-\\u1819\\u1820-\\u1878\\u1880-\\u18AA\\uA840-\\uA877\\uFB50-\\uFD3D\\uFD40-\\uFDCF\\uFDF0-\\uFDFF\\uFE70-\\uFE74\\uFE76-\\uFEFC]|\\uD802[\\uDEC0-\\uDEE6\\uDEEB-\\uDEF6\\uDF80-\\uDF91\\uDF99-\\uDF9C\\uDFA9-\\uDFAF]|\\uD803[\\uDD00-\\uDD27\\uDD30-\\uDD39\\uDE60-\\uDE7E\\uDEC2-\\uDEC7\\uDED0-\\uDED8\\uDEFA-\\uDEFF\\uDF30-\\uDF59\\uDF70-\\uDF89\\uDFB0-\\uDFCB]|\\uD805[\\uDE60-\\uDE6C]|\\uD82F[\\uDC00-\\uDC6A\\uDC70-\\uDC7C\\uDC80-\\uDC88\\uDC90-\\uDC99\\uDC9C-\\uDC9F]|\\uD83A[\\uDD00-\\uDD4B\\uDD50-\\uDD59\\uDD5E\\uDD5F]|\\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\\uDEF0\\uDEF1]/gim.test(String.fromCodePoint(t))}function ov(t){return/[\\u0591-\\u05C7\\u05D0-\\u05EA\\u05EF-\\u05F4\\u0600-\\u0604\\u0606-\\u060B\\u060D-\\u061A\\u061C-\\u061E\\u0620-\\u063F\\u0641-\\u064A\\u0656-\\u066F\\u0671-\\u06DC\\u06DE-\\u070D\\u070F-\\u074A\\u074D-\\u07B1\\u07C0-\\u07FA\\u07FD-\\u082D\\u0830-\\u083E\\u0840-\\u085B\\u085E\\u0860-\\u086A\\u0870-\\u0891\\u0897-\\u08E1\\u08E3-\\u08FF\\uFB1D-\\uFB36\\uFB38-\\uFB3C\\uFB3E\\uFB40\\uFB41\\uFB43\\uFB44\\uFB46-\\uFD3D\\uFD40-\\uFDCF\\uFDF0-\\uFDFF\\uFE70-\\uFE74\\uFE76-\\uFEFC]|\\uD802[\\uDC00-\\uDC05\\uDC08\\uDC0A-\\uDC35\\uDC37\\uDC38\\uDC3C\\uDC3F-\\uDC55\\uDC57-\\uDC9E\\uDCA7-\\uDCAF\\uDCE0-\\uDCF2\\uDCF4\\uDCF5\\uDCFB-\\uDD1B\\uDD1F-\\uDD39\\uDD3F-\\uDD59\\uDD80-\\uDDB7\\uDDBC-\\uDDCF\\uDDD2-\\uDE03\\uDE05\\uDE06\\uDE0C-\\uDE13\\uDE15-\\uDE17\\uDE19-\\uDE35\\uDE38-\\uDE3A\\uDE3F-\\uDE48\\uDE50-\\uDE58\\uDE60-\\uDE9F\\uDEC0-\\uDEE6\\uDEEB-\\uDEF6\\uDF00-\\uDF35\\uDF39-\\uDF55\\uDF58-\\uDF72\\uDF78-\\uDF91\\uDF99-\\uDF9C\\uDFA9-\\uDFAF]|\\uD803[\\uDC00-\\uDC48\\uDC80-\\uDCB2\\uDCC0-\\uDCF2\\uDCFA-\\uDD27\\uDD30-\\uDD39\\uDD40-\\uDD65\\uDD69-\\uDD85\\uDD8E\\uDD8F\\uDE60-\\uDE7E\\uDE80-\\uDEA9\\uDEAB-\\uDEAD\\uDEB0\\uDEB1\\uDEC2-\\uDEC7\\uDED0-\\uDED8\\uDEFA-\\uDF27\\uDF30-\\uDF59\\uDF70-\\uDF89\\uDFB0-\\uDFCB\\uDFE0-\\uDFF6]|\\uD83A[\\uDC00-\\uDCC4\\uDCC7-\\uDCD6\\uDD00-\\uDD4B\\uDD50-\\uDD59\\uDD5E\\uDD5F]|\\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\\uDEF0\\uDEF1]/gim.test(String.fromCodePoint(t))}function lv(t){return/[\\u02EA\\u02EB\\u2E80-\\u2FDF\\u2FF0-\\u303F\\u3041-\\u3096\\u309D-\\u309F\\u30A1-\\u30FA\\u30FD-\\u30FF\\u3105-\\u312F\\u31A0-\\u4DBF\\u4E00-\\uA48C\\uA490-\\uA4C6\\uF900-\\uFA6D\\uFA70-\\uFAD9\\uFE10-\\uFE1F\\uFE30-\\uFE4F\\uFF00-\\uFFEF]|\\uD81B[\\uDFE0-\\uDFFF]|[\\uD81C-\\uD822\\uD840-\\uD868\\uD86A-\\uD86D\\uD86F-\\uD872\\uD874-\\uD879\\uD880-\\uD883\\uD885-\\uD88C][\\uDC00-\\uDFFF]|\\uD823[\\uDC00-\\uDCD5\\uDCFF-\\uDD1E\\uDD80-\\uDDF2]|\\uD82B[\\uDFF0-\\uDFFF]|\\uD82C[\\uDC00-\\uDEFB]|\\uD83C[\\uDE00-\\uDEFF]|\\uD869[\\uDC00-\\uDEDF\\uDF00-\\uDFFF]|\\uD86E[\\uDC00-\\uDC1D\\uDC20-\\uDFFF]|\\uD873[\\uDC00-\\uDEAD\\uDEB0-\\uDFFF]|\\uD87A[\\uDC00-\\uDFE0\\uDFF0-\\uDFFF]|\\uD87B[\\uDC00-\\uDE5D]|\\uD87E[\\uDC00-\\uDE1D]|\\uD884[\\uDC00-\\uDF4A\\uDF50-\\uDFFF]|\\uD88D[\\uDC00-\\uDC79]/gim.test(String.fromCodePoint(t))}function ts(t){return/[\\u02EA\\u02EB\\u1100-\\u11FF\\u1401-\\u167F\\u18B0-\\u18FF\\u2065\\u20DD-\\u20E0\\u20E2-\\u20E4\\u2B97\\u2BF0-\\u2BFF\\u2E50\\u2E51\\u2E80-\\u3007\\u3012\\u3013\\u3020-\\u302F\\u3031-\\u30FB\\u30FD-\\uA4CF\\uA960-\\uA97F\\uAC00-\\uD7FF\\uF900-\\uFAFF\\uFE10-\\uFE1F\\uFE30-\\uFE48\\uFE50-\\uFE57\\uFE5F-\\uFE62\\uFE67-\\uFE6F\\uFF00-\\uFF07\\uFF0A-\\uFF0C\\uFF0E-\\uFF19\\uFF1F-\\uFF3A\\uFF3C\\uFF3E\\uFF40-\\uFF5A\\uFFE0-\\uFFE2\\uFFE4-\\uFFE7\\uFFF0-\\uFFF8]|\\uD802[\\uDD80-\\uDD9F]|\\uD805[\\uDD80-\\uDDFF]|\\uD806[\\uDE00-\\uDEBF]|[\\uD80C-\\uD810\\uD81C-\\uD822\\uD83C\\uD83D\\uD840-\\uD87E\\uD880-\\uD8BE][\\uDC00-\\uDFFF]|\\uD811[\\uDC00-\\uDE7F]|\\uD81B[\\uDFE0-\\uDFFF]|\\uD823[\\uDC00-\\uDDFF]|\\uD82B[\\uDFF0-\\uDFFF]|\\uD82C[\\uDC00-\\uDEFF]|\\uD833[\\uDEC0-\\uDFCF]|\\uD834[\\uDC00-\\uDDFF\\uDEE0-\\uDF7F]|\\uD836[\\uDC00-\\uDEAF]|\\uD83E[\\uDD00-\\uDEFF]|[\\uD87F\\uD8BF][\\uDC00-\\uDFFD]/gim.test(String.fromCodePoint(t))}function uv(t){return/[\\xA7\\xA9\\xAE\\xB1\\xBC-\\xBE\\xD7\\xF7\\u2016\\u2020\\u2021\\u2030\\u2031\\u203B\\u203C\\u2042\\u2047-\\u2049\\u2051\\u2100-\\u218F\\u221E\\u2234\\u2235\\u2300-\\u2307\\u230C-\\u231F\\u2324-\\u2328\\u232B\\u237D-\\u239A\\u23BE-\\u23CD\\u23CF\\u23D1-\\u23DB\\u23E2-\\u2422\\u2424-\\u24FF\\u25A0-\\u2619\\u2620-\\u2767\\u2776-\\u2793\\u2B12-\\u2B2F\\u2B50-\\u2B59\\u2BB8-\\u2BEB\\u3000-\\u303F\\u30A0-\\u30FF\\uE000-\\uF8FF\\uFE30-\\uFE6F\\uFF00-\\uFFEF\\uFFFC\\uFFFD]|[\\uDB80-\\uDBFF][\\uDC00-\\uDFFF]/gim.test(String.fromCodePoint(t))}function hv(t){return/[\\r\\u0300-\\u036F\\u0483-\\u0489\\u0591-\\u05BD\\u05BF\\u05C1\\u05C2\\u05C4\\u05C5\\u05C7\\u0600-\\u0605\\u0610-\\u061A\\u064B-\\u065F\\u0670\\u06D6-\\u06DD\\u06DF-\\u06E4\\u06E7\\u06E8\\u06EA-\\u06ED\\u070F\\u0711\\u0730-\\u074A\\u07A6-\\u07B0\\u07EB-\\u07F3\\u07FD\\u0816-\\u0819\\u081B-\\u0823\\u0825-\\u0827\\u0829-\\u082D\\u0859-\\u085B\\u0890\\u0891\\u0897-\\u089F\\u08CA-\\u0903\\u093A-\\u093C\\u093E-\\u094F\\u0951-\\u0957\\u0962\\u0963\\u0981-\\u0983\\u09BC\\u09BE-\\u09C4\\u09C7\\u09C8\\u09CB-\\u09CD\\u09D7\\u09E2\\u09E3\\u09FE\\u0A01-\\u0A03\\u0A3C\\u0A3E-\\u0A42\\u0A47\\u0A48\\u0A4B-\\u0A4D\\u0A51\\u0A70\\u0A71\\u0A75\\u0A81-\\u0A83\\u0ABC\\u0ABE-\\u0AC5\\u0AC7-\\u0AC9\\u0ACB-\\u0ACD\\u0AE2\\u0AE3\\u0AFA-\\u0AFF\\u0B01-\\u0B03\\u0B3C\\u0B3E-\\u0B44\\u0B47\\u0B48\\u0B4B-\\u0B4D\\u0B55-\\u0B57\\u0B62\\u0B63\\u0B82\\u0BBE-\\u0BC2\\u0BC6-\\u0BC8\\u0BCA-\\u0BCD\\u0BD7\\u0C00-\\u0C04\\u0C3C\\u0C3E-\\u0C44\\u0C46-\\u0C48\\u0C4A-\\u0C4D\\u0C55\\u0C56\\u0C62\\u0C63\\u0C81-\\u0C83\\u0CBC\\u0CBE-\\u0CC4\\u0CC6-\\u0CC8\\u0CCA-\\u0CCD\\u0CD5\\u0CD6\\u0CE2\\u0CE3\\u0CF3\\u0D00-\\u0D03\\u0D3B\\u0D3C\\u0D3E-\\u0D44\\u0D46-\\u0D48\\u0D4A-\\u0D4E\\u0D57\\u0D62\\u0D63\\u0D81-\\u0D83\\u0DCA\\u0DCF-\\u0DD4\\u0DD6\\u0DD8-\\u0DDF\\u0DF2\\u0DF3\\u0E31\\u0E33-\\u0E3A\\u0E47-\\u0E4E\\u0EB1\\u0EB3-\\u0EBC\\u0EC8-\\u0ECE\\u0F18\\u0F19\\u0F35\\u0F37\\u0F39\\u0F3E\\u0F3F\\u0F71-\\u0F84\\u0F86\\u0F87\\u0F8D-\\u0F97\\u0F99-\\u0FBC\\u0FC6\\u102D-\\u1037\\u1039-\\u103E\\u1056-\\u1059\\u105E-\\u1060\\u1071-\\u1074\\u1082\\u1084-\\u1086\\u108D\\u109D\\u1100-\\u11FF\\u135D-\\u135F\\u1712-\\u1715\\u1732-\\u1734\\u1752\\u1753\\u1772\\u1773\\u17B4-\\u17D3\\u17DD\\u180B-\\u180D\\u180F\\u1885\\u1886\\u18A9\\u1920-\\u192B\\u1930-\\u193B\\u1A17-\\u1A1B\\u1A55-\\u1A5E\\u1A60\\u1A62\\u1A65-\\u1A7C\\u1A7F\\u1AB0-\\u1ADD\\u1AE0-\\u1AEB\\u1B00-\\u1B04\\u1B34-\\u1B44\\u1B6B-\\u1B73\\u1B80-\\u1B82\\u1BA1-\\u1BAD\\u1BE6-\\u1BF3\\u1C24-\\u1C37\\u1CD0-\\u1CD2\\u1CD4-\\u1CE8\\u1CED\\u1CF4\\u1CF7-\\u1CF9\\u1DC0-\\u1DFF\\u200C\\u200D\\u20D0-\\u20F0\\u2CEF-\\u2CF1\\u2D7F\\u2DE0-\\u2DFF\\u302A-\\u302F\\u3099\\u309A\\uA66F-\\uA672\\uA674-\\uA67D\\uA69E\\uA69F\\uA6F0\\uA6F1\\uA802\\uA806\\uA80B\\uA823-\\uA827\\uA82C\\uA880\\uA881\\uA8B4-\\uA8C5\\uA8E0-\\uA8F1\\uA8FF\\uA926-\\uA92D\\uA947-\\uA953\\uA960-\\uA97C\\uA980-\\uA983\\uA9B3-\\uA9C0\\uA9E5\\uAA29-\\uAA36\\uAA43\\uAA4C\\uAA4D\\uAA7C\\uAAB0\\uAAB2-\\uAAB4\\uAAB7\\uAAB8\\uAABE\\uAABF\\uAAC1\\uAAEB-\\uAAEF\\uAAF5\\uAAF6\\uABE3-\\uABEA\\uABEC\\uABED\\uAC00-\\uD7A3\\uD7B0-\\uD7C6\\uD7CB-\\uD7FB\\uFB1E\\uFE00-\\uFE0F\\uFE20-\\uFE2F\\uFF9E\\uFF9F]|\\uD800[\\uDDFD\\uDEE0\\uDF76-\\uDF7A]|\\uD802[\\uDE01-\\uDE03\\uDE05\\uDE06\\uDE0C-\\uDE0F\\uDE38-\\uDE3A\\uDE3F\\uDEE5\\uDEE6]|\\uD803[\\uDD24-\\uDD27\\uDD69-\\uDD6D\\uDEAB\\uDEAC\\uDEFA-\\uDEFF\\uDF46-\\uDF50\\uDF82-\\uDF85]|\\uD804[\\uDC00-\\uDC02\\uDC38-\\uDC46\\uDC70\\uDC73\\uDC74\\uDC7F-\\uDC82\\uDCB0-\\uDCBA\\uDCBD\\uDCC2\\uDCCD\\uDD00-\\uDD02\\uDD27-\\uDD34\\uDD45\\uDD46\\uDD73\\uDD80-\\uDD82\\uDDB3-\\uDDC0\\uDDC2\\uDDC3\\uDDC9-\\uDDCC\\uDDCE\\uDDCF\\uDE2C-\\uDE37\\uDE3E\\uDE41\\uDEDF-\\uDEEA\\uDF00-\\uDF03\\uDF3B\\uDF3C\\uDF3E-\\uDF44\\uDF47\\uDF48\\uDF4B-\\uDF4D\\uDF57\\uDF62\\uDF63\\uDF66-\\uDF6C\\uDF70-\\uDF74\\uDFB8-\\uDFC0\\uDFC2\\uDFC5\\uDFC7-\\uDFCA\\uDFCC-\\uDFD2\\uDFE1\\uDFE2]|\\uD805[\\uDC35-\\uDC46\\uDC5E\\uDCB0-\\uDCC3\\uDDAF-\\uDDB5\\uDDB8-\\uDDC0\\uDDDC\\uDDDD\\uDE30-\\uDE40\\uDEAB-\\uDEB7\\uDF1D-\\uDF1F\\uDF22-\\uDF2B]|\\uD806[\\uDC2C-\\uDC3A\\uDD30-\\uDD35\\uDD37\\uDD38\\uDD3B-\\uDD43\\uDDD1-\\uDDD7\\uDDDA-\\uDDE0\\uDDE4\\uDE01-\\uDE0A\\uDE33-\\uDE39\\uDE3B-\\uDE3E\\uDE47\\uDE51-\\uDE5B\\uDE84-\\uDE99\\uDF60-\\uDF67]|\\uD807[\\uDC2F-\\uDC36\\uDC38-\\uDC3F\\uDC92-\\uDCA7\\uDCA9-\\uDCB6\\uDD31-\\uDD36\\uDD3A\\uDD3C\\uDD3D\\uDD3F-\\uDD47\\uDD8A-\\uDD8E\\uDD90\\uDD91\\uDD93-\\uDD97\\uDEF3-\\uDEF6\\uDF00-\\uDF03\\uDF34-\\uDF3A\\uDF3E-\\uDF42\\uDF5A]|\\uD80D[\\uDC40\\uDC47-\\uDC55]|\\uD818[\\uDD1E-\\uDD2F]|\\uD81A[\\uDEF0-\\uDEF4\\uDF30-\\uDF36]|\\uD81B[\\uDD63\\uDD67-\\uDD6A\\uDF4F\\uDF51-\\uDF87\\uDF8F-\\uDF92\\uDFE4\\uDFF0\\uDFF1]|\\uD82F[\\uDC9D\\uDC9E]|\\uD833[\\uDF00-\\uDF2D\\uDF30-\\uDF46]|\\uD834[\\uDD65-\\uDD69\\uDD6D-\\uDD72\\uDD7B-\\uDD82\\uDD85-\\uDD8B\\uDDAA-\\uDDAD\\uDE42-\\uDE44]|\\uD836[\\uDE00-\\uDE36\\uDE3B-\\uDE6C\\uDE75\\uDE84\\uDE9B-\\uDE9F\\uDEA1-\\uDEAF]|\\uD838[\\uDC00-\\uDC06\\uDC08-\\uDC18\\uDC1B-\\uDC21\\uDC23\\uDC24\\uDC26-\\uDC2A\\uDC8F\\uDD30-\\uDD36\\uDEAE\\uDEEC-\\uDEEF]|\\uD839[\\uDCEC-\\uDCEF\\uDDEE\\uDDEF\\uDEE3\\uDEE6\\uDEEE\\uDEEF\\uDEF5]|\\uD83A[\\uDCD0-\\uDCD6\\uDD44-\\uDD4A]|\\uD83C[\\uDDE6-\\uDDFF\\uDFFB-\\uDFFF]|\\uDB40[\\uDC20-\\uDC7F\\uDD00-\\uDDEF]/.test(t)}function Mc(t){return/[\\u0E01-\\u0E3A\\u0E40-\\u0E4E\\u0E81\\u0E82\\u0E84\\u0E86-\\u0E8A\\u0E8C-\\u0EA3\\u0EA5\\u0EA7-\\u0EBD\\u0EC0-\\u0EC4\\u0EC6\\u0EC8-\\u0ECE\\u0EDC-\\u0EDF\\u0F00-\\u0F47\\u0F49-\\u0F6C\\u0F71-\\u0F97\\u0F99-\\u0FBC\\u0FBE-\\u0FCC\\u0FCE-\\u0FD4\\u0FD9\\u0FDA\\u1000-\\u103F\\u1050-\\u108F\\u109A-\\u109F\\u1780-\\u17D3\\u17D7\\u17DC\\u17DD\\u1950-\\u196D\\u1970-\\u1974\\u1980-\\u19AB\\u19B0-\\u19C9\\u19DE\\u19DF\\u1A20-\\u1A5E\\u1A60-\\u1A7C\\u1AA0-\\u1AAD\\u1B00-\\u1B4C\\u1B4E-\\u1B7F\\uA980-\\uA9CD\\uA9D0-\\uA9D9\\uA9DE-\\uA9EF\\uA9FA-\\uA9FE\\uAA60-\\uAAC2\\uAADB-\\uAADF]|\\uD805[\\uDF00-\\uDF1A\\uDF1D-\\uDF2B\\uDF3A\\uDF3B\\uDF3F-\\uDF46]/gim.test(String.fromCodePoint(t))}function cv(t,e){return/(?:[\\u1039\\u17D2\\u1A60\\u1BAB\\u200D\\uAAF6]|\\uD802\\uDE3F|\\uD804[\\uDD33\\uDFD0]|\\uD806[\\uDD3E\\uDE47\\uDE99]|\\uD807[\\uDD45\\uDD97\\uDF42])$/.test(t)||new RegExp("^\\\\p{gc=Mc}","u").test(e)}var pv={C:"18g,1;g2,3;4nb,1",D:"17k,1;5,1;1,1;1,5;4,d;1,7;1,2;z,2;8,g;i,12;1,2;9,1;1,1;1,2;14,3;2,1;28,9;3,f;2,4;1,1;2,3;2,6;7a,1;2,5;1,1;g,a;5,2;2,6;1,f",R:"17m,4;1,1;1,1;5,4;l,1;14,3;1,3;g,i;12,1;2,9;1,1;1,1;2,2;1,1;o,2;2x,3;f,2;4,1;1,2;3,2;6u,j;b,1;r,3;1,1;2,2;6,1",T:"174,b;1,1;1a,l;g,1;2t,7;2,6;2,2;1,4;bt,9;16,o;1,t;1clb,1"},fv={1569:[65152,0,0,0],1570:[65153,65154,0,0],1571:[65155,65156,0,0],1572:[65157,65158,0,0],1573:[65159,65160,0,0],1574:[65161,65162,65163,65164],1575:[65165,65166,0,0],1576:[65167,65168,65169,65170],1577:[65171,65172,0,0],1578:[65173,65174,65175,65176],1579:[65177,65178,65179,65180],1580:[65181,65182,65183,65184],1581:[65185,65186,65187,65188],1582:[65189,65190,65191,65192],1583:[65193,65194,0,0],1584:[65195,65196,0,0],1585:[65197,65198,0,0],1586:[65199,65200,0,0],1587:[65201,65202,65203,65204],1588:[65205,65206,65207,65208],1589:[65209,65210,65211,65212],1590:[65213,65214,65215,65216],1591:[65217,65218,65219,65220],1592:[65221,65222,65223,65224],1593:[65225,65226,65227,65228],1594:[65229,65230,65231,65232],1601:[65233,65234,65235,65236],1602:[65237,65238,65239,65240],1603:[65241,65242,65243,65244],1604:[65245,65246,65247,65248],1605:[65249,65250,65251,65252],1606:[65253,65254,65255,65256],1607:[65257,65258,65259,65260],1608:[65261,65262,0,0],1609:[65263,65264,64488,64489],1610:[65265,65266,65267,65268],1611:[65136,0,0,65137],1612:[65138,0,0,0],1613:[65140,0,0,0],1614:[65142,0,0,65143],1615:[65144,0,0,65145],1616:[65146,0,0,65147],1617:[65148,0,0,65149],1618:[65150,0,0,65151],1649:[64336,64337,0,0],1655:[64477,0,0,0],1657:[64358,64359,64360,64361],1658:[64350,64351,64352,64353],1659:[64338,64339,64340,64341],1662:[64342,64343,64344,64345],1663:[64354,64355,64356,64357],1664:[64346,64347,64348,64349],1667:[64374,64375,64376,64377],1668:[64370,64371,64372,64373],1670:[64378,64379,64380,64381],1671:[64382,64383,64384,64385],1672:[64392,64393,0,0],1676:[64388,64389,0,0],1677:[64386,64387,0,0],1678:[64390,64391,0,0],1681:[64396,64397,0,0],1688:[64394,64395,0,0],1700:[64362,64363,64364,64365],1702:[64366,64367,64368,64369],1705:[64398,64399,64400,64401],1709:[64467,64468,64469,64470],1711:[64402,64403,64404,64405],1713:[64410,64411,64412,64413],1715:[64406,64407,64408,64409],1722:[64414,64415,0,0],1723:[64416,64417,64418,64419],1726:[64426,64427,64428,64429],1728:[64420,64421,0,0],1729:[64422,64423,64424,64425],1733:[64480,64481,0,0],1734:[64473,64474,0,0],1735:[64471,64472,0,0],1736:[64475,64476,0,0],1737:[64482,64483,0,0],1739:[64478,64479,0,0],1740:[64508,64509,64510,64511],1744:[64484,64485,64486,64487],1746:[64430,64431,0,0],1747:[64432,64433,0,0]},dv={\\u0644\\u0622:[65269,65270],\\u0644\\u0623:[65271,65272],\\u0644\\u0625:[65273,65274],\\u0644\\u0627:[65275,65276]},Bc=1604,yv=/[\\u0600-\\u06ff\\u0750-\\u077f\\u0870-\\u089f\\u08a0-\\u08ff\\ufb50-\\ufdff\\ufe70-\\ufeff]/;function mv(t,e,r){let i=0;for(let n of t.split(";")){let[a,s]=n.split(",").map(l=>parseInt(l,36)),o=i+a;for(let l=o;l{let r=e.codePointAt(0);return{codePoint:r,type:gv(r),form:null}})}function Dv(t){let e=t.filter(r=>r.type!=="T");for(let r=0;r0&&xv(e[r-1].type),a=r+1String.fromCodePoint(Sv(r))).join("")}function Fv(t,e,r){var n;let i=e.layout.get("text-transform").evaluate(r,{});return i==="uppercase"?t=t.toLocaleUpperCase():i==="lowercase"&&(t=t.toLocaleLowerCase()),((n=Ar.applyArabicShaping)!=null?n:Ev)(t)}function Tv(t,e,r){for(let i of t.sections)i.text=Fv(i.text,e,r);return t}function Ws(t,e,r){let i=r?e.last.points:e.first.points,n=r?i[i.length-1]:i[0];return`${t}:${n.x}:${n.y}`}function kv(t){let e=t.first.points,r=e.length;for(let a=t.first.next;a;a=a.next)r+=a.points.length-1;let i=Array(r);for(let a=0;a=0&&cv(e[i],r)?e[i]+=r:e.push(r)}return e}function Cv(t){let e=new Set;if(ey){Oi!=null||(Oi=new Intl.Segmenter(void 0,{granularity:"word"}));for(let{index:i}of Oi.segment(t))e.add(i);return e}let r=0;for(let i of t.split(new RegExp("\\\\b|(?=\\\\p{Ideo})","u")))e.add(r),r+=i.length;return e}function ry(t){let e=t.codePointAt(0);return t.length>(e>65535?2:1)}function au(t){return/\\s/u.test(String.fromCodePoint(t))}function nl(t){for(let e of t)if(ts(e.codePointAt(0)))return!0;return!1}function Mv(t){for(let e of t)if(!Bv(e.codePointAt(0)))return!1;return!0}function Bv(t){return!sv(t)}function Lc(t){return!(ts(t)||uv(t))}function iy(t){return new RegExp("\\\\p{sc=Arab}","u").test(String.fromCodePoint(t))}function ny(t){return ov(t)}function ay(t){for(let e of t)if(ny(e.codePointAt(0)))return!0;return!1}var Gr={"!":"\\uFE15","#":"\\uFF03",$:"\\uFF04","%":"\\uFF05","&":"\\uFF06","(":"\\uFE35",")":"\\uFE36","*":"\\uFF0A","+":"\\uFF0B",",":"\\uFE10","-":"\\uFE32",".":"\\u30FB","/":"\\uFF0F",":":"\\uFE13",";":"\\uFE14","<":"\\uFE3F","=":"\\uFF1D",">":"\\uFE40","?":"\\uFE16","@":"\\uFF20","[":"\\uFE47","\\\\":"\\uFF3C","]":"\\uFE48","^":"\\uFF3E",_:"\\uFE33","`":"\\uFF40","{":"\\uFE37","|":"\\u2015","}":"\\uFE38","~":"\\uFF5E","\\xA2":"\\uFFE0","\\xA3":"\\uFFE1","\\xA5":"\\uFFE5","\\xA6":"\\uFFE4","\\xAC":"\\uFFE2","\\xAF":"\\uFFE3","\\u2013":"\\uFE32","\\u2014":"\\uFE31","\\u2018":"\\uFE43","\\u2019":"\\uFE44","\\u201C":"\\uFE41","\\u201D":"\\uFE42","\\u2026":"\\uFE19","\\u22EF":"\\uFE19","\\u2027":"\\u30FB","\\u20A9":"\\uFFE6","\\u3001":"\\uFE11","\\u3002":"\\uFE12","\\u3008":"\\uFE3F","\\u3009":"\\uFE40","\\u300A":"\\uFE3D","\\u300B":"\\uFE3E","\\u300C":"\\uFE41","\\u300D":"\\uFE42","\\u300E":"\\uFE43","\\u300F":"\\uFE44","\\u3010":"\\uFE3B","\\u3011":"\\uFE3C","\\u3014":"\\uFE39","\\u3015":"\\uFE3A","\\u3016":"\\uFE17","\\u3017":"\\uFE18","\\uFF01":"\\uFE15","\\uFF08":"\\uFE35","\\uFF09":"\\uFE36","\\uFF0C":"\\uFE10","\\uFF0D":"\\uFE32","\\uFF0E":"\\u30FB","\\uFF1A":"\\uFE13","\\uFF1B":"\\uFE14","\\uFF1C":"\\uFE3F","\\uFF1E":"\\uFE40","\\uFF1F":"\\uFE16","\\uFF3B":"\\uFE47","\\uFF3D":"\\uFE48","\\uFF3F":"\\uFE33","\\uFF5B":"\\uFE37","\\uFF5C":"\\u2015","\\uFF5D":"\\uFE38","\\uFF5F":"\\uFE35","\\uFF60":"\\uFE36","\\uFF61":"\\uFE12","\\uFF62":"\\uFE41","\\uFF63":"\\uFE42"};function Pv(t){let e="",r={premature:!0,value:void 0},i=t[Symbol.iterator](),n=i.next(),a=t[Symbol.iterator]();a.next();let s=a.next();for(;!n.done;)(s.done||!Lc(s.value.codePointAt(0))||Gr[s.value])&&(r.premature||!Lc(r.value.codePointAt(0))||Gr[r.value])&&Gr[n.value]?e+=Gr[n.value]:e+=n.value,r={value:n.value,premature:!1},n=i.next(),s=a.next();return e}var zv={10:!0,13:!0,32:!0,38:!0,41:!0,43:!0,45:!0,47:!0,173:!0,183:!0,8203:!0,8208:!0,8211:!0,8231:!0},Lv={40:!0};function Vc(t,e,r,i,n,a){var s;if("fontStack"in e){let o=(s=r[e.fontStack])==null?void 0:s.default,l=o==null?void 0:o[t];if(l)return l.metrics.advance*e.scale+n;let u=0;for(let h of t){let c=o==null?void 0:o[h];c&&(u+=c.metrics.advance*e.scale+n)}return u}{let o=i[e.imageName];return o?o.displaySize[0]*e.scale*24/a+n:0}}function Oc(t,e,r,i){let n=(t-e)**2;return i?tr&&Rc(e[i-1]);)i--;this.text=e.slice(r,i).join(""),this.sectionIndex=this.sectionIndex.slice(r,i),this._graphemes=null}substring(e,r){let i=this.graphemes().slice(e,r).join(""),n=this.sectionIndex.slice(e,r);return new al(i,this.sections,n)}toCodeUnitIndex(e){return this.graphemes().slice(0,e).join("").length}toString(){return this.text}getMaxScale(){return this.sectionIndex.reduce((e,r)=>Math.max(e,this.sections[r].scale),0)}getMaxImageSize(e){let r=0,i=0;for(let n=0;n0?i[i.length-1]:"",a=il(n+e);this.text+=e,this._graphemes=i.slice(0,n?-1:void 0).concat(a);let s=a.length-+!!n;for(let o=0;o=63743?null:++this.imageSectionID:(this.imageSectionID=57344,this.imageSectionID)}determineLineBreaks(e,r,i,n,a){let s=[],o=this.determineAverageLineWidth(e,r,i,n,a),l=this.hasZeroWidthSpaces(),u=this.graphemes(),h=null,c=0,p=0;for(let f=0;f0){let y=u[f-1].codePointAt(0),m=d.codePointAt(0),g=lv(y),x=Mc(y)&&Mc(m);(zv[y]||g||"imageName"in this.getSection(f-1)||u[f+1]!==void 0&&Lv[m]||x&&(h!=null?h:h=Cv(this.text)).has(p))&&s.push($c(f,c,o,s,Vv(y,m,g&&l),!1))}au(d.codePointAt(0))||(c+=Vc(d,this.getSection(f),i,n,e,a)),p+=d.length}return sy($c(this.length(),c,o,s,0,!0))}determineAverageLineWidth(e,r,i,n,a){let s=0,o=0;for(let u of this.graphemes()){let h=this.getSection(o);s+=Vc(u,h,i,n,e,a),o++}let l=Math.max(1,Math.ceil(s/r));return s/l}};function Ov(){return(function(t){var e={R:"13k,1a,2,3,3,2+1j,ch+16,a+1,5+2,2+n,5,a,4,6+16,4+3,h+1b,4mo,179q,2+9,2+11,2i9+7y,2+68,4,3+4,5+13,4+3,2+4k,3+29,8+cf,1t+7z,w+17,3+3m,1t+3z,16o1+5r,8+30,8+mc,29+1r,29+4v,75+73",EN:"1c+9,3d+1,6,187+9,513,4+5,7+9,sf+j,175h+9,qw+q,161f+1d,4xt+a,25i+9",ES:"17,2,6dp+1,f+1,av,16vr,mx+1,4o,2",ET:"z+2,3h+3,b+1,ym,3e+1,2o,p4+1,8,6u,7c,g6,1wc,1n9+4,30+1b,2n,6d,qhx+1,h0m,a+1,49+2,63+1,4+1,6bb+3,12jj",AN:"16o+5,2j+9,2+1,35,ed,1ff2+9,87+u",CS:"18,2+1,b,2u,12k,55v,l,17v0,2,3,53,2+1,b",B:"a,3,f+2,2v,690",S:"9,2,k",WS:"c,k,4f4,1vk+a,u,1j,335",ON:"x+1,4+4,h+5,r+5,r+3,z,5+3,2+1,2+1,5,2+2,3+4,o,w,ci+1,8+d,3+d,6+8,2+g,39+1,9,6+1,2,33,b8,3+1,3c+1,7+1,5r,b,7h+3,sa+5,2,3i+6,jg+3,ur+9,2v,ij+1,9g+9,7+a,8m,4+1,49+x,14u,2+2,c+2,e+2,e+2,e+1,i+n,e+e,2+p,u+2,e+2,36+1,2+3,2+1,b,2+2,6+5,2,2,2,h+1,5+4,6+3,3+f,16+2,5+3l,3+81,1y+p,2+40,q+a,m+13,2r+ch,2+9e,75+hf,3+v,2+2w,6e+5,f+6,75+2a,1a+p,2+2g,d+5x,r+b,6+3,4+o,g,6+1,6+2,2k+1,4,2j,5h+z,1m+1,1e+f,t+2,1f+e,d+3,4o+3,2s+1,w,535+1r,h3l+1i,93+2,2s,b+1,3l+x,2v,4g+3,21+3,kz+1,g5v+1,5a,j+9,n+v,2,3,2+8,2+1,3+2,2,3,46+1,4+4,h+5,r+5,r+a,3h+2,4+6,b+4,78,1r+24,4+c,4,1hb,ey+6,103+j,16j+c,1ux+7,5+g,fsh,jdq+1t,4,57+2e,p1,1m,1m,1m,1m,4kt+1,7j+17,5+2r,d+e,3+e,2+e,2+10,m+4,w,1n+5,1q,4z+5,4b+rb,9+c,4+c,4+37,d+2g,8+b,l+b,5+1j,9+9,7+13,9+t,3+1,27+3c,2+29,2+3q,d+d,3+4,4+2,6+6,a+o,8+6,a+2,e+6,16+42,2+1i",BN:"0+8,6+d,2s+5,2+p,e,4m9,1kt+2,2b+5,5+5,17q9+v,7k,6p+8,6+1,119d+3,440+7,96s+1,1ekf+1,1ekf+1,1ekf+1,1ekf+1,1ekf+1,1ekf+1,1ekf+1,1ekf+1,1ekf+1,1ekf+1,1ekf+1,1ekf+75,6p+2rz,1ben+1,1ekf+1,1ekf+1",NSM:"lc+33,7o+6,7c+18,2,2+1,2+1,2,21+a,1d+k,h,2u+6,3+5,3+1,2+3,10,v+q,2k+a,1n+8,a,p+3,2+8,2+2,2+4,18+2,3c+e,2+v,1k,2,5+7,5,4+6,b+1,u,1n,5+3,9,l+1,r,3+1,1m,5+1,5+1,3+2,4,v+1,4,c+1,1m,5+4,2+1,5,l+1,n+5,2,1n,3,2+3,9,8+1,c+1,v,1q,d,1f,4,1m+2,6+2,2+3,8+1,c+1,u,1n,g+1,l+1,t+1,1m+1,5+3,9,l+1,u,21,8+2,2,2j,3+6,d+7,2r,3+8,c+5,23+1,s,2,2,1k+d,2+4,2+1,6+a,2+z,a,2v+3,2+5,2+1,3+1,q+1,5+2,h+3,e,3+1,7,g,jk+2,qb+2,u+2,u+1,v+1,1t+1,2+6,9,3+a,a,1a+2,3c+1,z,3b+2,5+1,a,7+2,64+1,3,1n,2+6,2,2,3+7,7+9,3,1d+g,1s+3,1d,2+4,2,6,15+8,d+1,x+3,3+1,2+2,1l,2+1,4,2+2,1n+7,3+1,49+2,2+c,2+6,5,7,4+1,5j+1l,2+4,k1+w,2db+2,3y,2p+v,ff+3,30+1,n9x+3,2+9,x+1,29+1,7l,4,5,q+1,6,48+1,r+h,e,13+7,q+a,1b+2,1d,3+3,3+1,14,1w+5,3+1,3+1,d,9,1c,1g,2+2,3+1,6+1,2,17+1,9,6n,3,5,fn5,ki+f,h+f,r2,6b,46+4,1af+2,2+1,6+3,15+2,5,4m+1,fy+3,as+1,4a+a,4x,1j+e,1l+2,1e+3,3+1,1y+2,11+4,2+7,1r,d+1,1h+8,b+3,3,2o+2,3,2+1,7,4h,4+7,m+1,1m+1,4,12+6,4+4,5g+7,3+2,2,o,2d+5,2,5+1,2+1,6n+3,7+1,2+1,s+1,2e+7,3,2+1,2z,2,3+5,2,2u+2,3+3,2+4,78+8,2+1,75+1,2,5,41+3,3+1,5,x+5,3+1,15+5,3+3,9,a+5,3+2,1b+c,2+1,bb+6,2+5,2d+l,3+6,2+1,2+1,3f+5,4,2+1,2+6,2,21+1,4,2,9o+1,f0c+4,1o+6,t5,1s+3,2a,f5l+1,43t+2,i+7,3+6,v+3,45+2,1j0+1i,5+1d,9,f,n+4,2+e,11t+6,2+g,3+6,2+1,2+4,7a+6,c6+3,15t+6,32+6,gzhy+6n",AL:"16w,3,2,e+1b,z+2,2+2s,g+1,8+1,b+m,2+t,s+2i,c+e,4h+f,1d+1e,1bwe+dp,3+3z,x+c,2+1,35+3y,2rm+z,5+7,b+5,dt+l,c+u,17nl+27,1t+27,4x+6n,3+d",LRO:"6ct",RLO:"6cu",LRE:"6cq",RLE:"6cr",PDF:"6cs",LRI:"6ee",RLI:"6ef",FSI:"6eg",PDI:"6eh"},r={},i={};r.L=1,i[1]="L",Object.keys(e).forEach(function(N,at){r[N]=1<1,1e>2,u>2,2wt>1,1>1,1ge>1,1wp>1,1j>1,f>1,hm>1,1>1,u>1,u6>1,1>1,+5,28>1,w>1,1>1,+3,b8>1,1>1,+3,1>3,-1>-1,3>1,1>1,+2,1s>1,1>1,x>1,th>1,1>1,+2,db>1,1>1,+3,3>1,1>1,+2,14qm>1,1>1,+1,4q>1,1e>2,u>2,2>1,+1",canonical:"6f1>-6dx,6dy>-6dx,6ec>-6ed,6ee>-6ed,6ww>2jj,-2ji>2jj,14r4>-1e7l,1e7m>-1e7l,1e7m>-1e5c,1e5d>-1e5b,1e5c>-14qx,14qy>-14qx,14vn>-1ecg,1ech>-1ecg,1edu>-1ecg,1eci>-1ecg,1eda>-1ecg,1eci>-1ecg,1eci>-168q,168r>-168q,168s>-14ye,14yf>-14ye"};function d(N,at){var Y=0,k=new Map,ot=at&&new Map,X;return N.split(",").forEach(function K(j){if(j.indexOf("+")!==-1)for(var Nt=+j;Nt--;)K(X);else{X=j;var bt=j.split(">"),nt=bt[0],kt=bt[1];nt=String.fromCodePoint(Y+=parseInt(nt,36)),kt=String.fromCodePoint(Y+=parseInt(kt,36)),k.set(nt,kt),at&&ot.set(kt,nt)}}),{map:k,reverseMap:ot}}var y,m,g;function x(){if(!y){var N=d(f.pairs,!0),at=N.map,Y=N.reverseMap;y=at,m=Y,g=d(f.canonical,!1).map}}function v(N){return x(),y.get(N)||null}function b(N){return x(),m.get(N)||null}function w(N){return x(),g.get(N)||null}var _=r.L,A=r.R,S=r.EN,T=r.ES,L=r.ET,O=r.AN,B=r.CS,V=r.B,F=r.S,$=r.ON,G=r.BN,P=r.NSM,z=r.AL,it=r.LRO,dt=r.RLO,ct=r.LRE,pt=r.RLE,Kt=r.PDF,jt=r.LRI,Jt=r.RLI,Oe=r.FSI,Gt=r.PDI;function Re(N,at){for(var Y=125,k=new Uint32Array(N.length),ot=0;ot0)Ie--;else if(is>0){for(qe=0;!lt[lt.length-1]._isolate;)lt.pop();var ns=lt[lt.length-1]._isolInitIndex;ns!=null&&(Nt.set(ns,zt),Nt.set(zt,ns)),lt.pop(),is--}wt=lt[lt.length-1],j[zt]=wt._level,wt._override&&K(zt,wt._override)}else Lt&Kt?(Ie===0&&(qe>0?qe--:!wt._isolate&<.length>1&&(lt.pop(),wt=lt[lt.length-1])),j[zt]=wt._level):Lt&V&&(j[zt]=nt.level);else j[zt]=wt._level,wt._override&&Lt!==G&&K(zt,wt._override)}for(var Cr=[],me=null,ur=nt.start;ur<=nt.end;ur++){var as=k[ur];if(!(as&o)){var Vu=j[ur],Ou=as&n,m1=as===Gt;me&&Vu===me._level?(me._end=ur,me._endsWithIsolInit=Ou):Cr.push(me={_start:ur,_end:ur,_level:Vu,_startsWithPDI:m1,_endsWithIsolInit:Ou})}}for(var ss=[],In=0;In=0;Bn--)if(!(k[Bn]&o)){Nu=j[Bn];break}var hs=Mr[Mr.length-1],x1=j[hs],Uu=nt.level;if(!(k[hs]&n)){for(var Pn=hs+1;Pn<=nt.end;Pn++)if(!(k[Pn]&o)){Uu=j[Pn];break}}ss.push({_seqIndices:Mr,_sosType:Math.max(Nu,g1)%2?A:_,_eosType:Math.max(Uu,x1)%2?A:_})}}for(var cs=0;cs=0;Ln--)if(!(k[q[Ln]]&o)){fs=k[q[Ln]];break}K(qu,fs&(n|Gt)?$:fs)}}if(X.get(S))for(var Vn=0;Vn=-1;On--){var Gu=On===-1?yi:k[q[On]];if(Gu&a){Gu===z&&K(ju,O);break}}}if(X.get(z))for(var ds=0;ds=0&&(Pr=k[q[gs]],Pr&o);gs--);for(var xs=mi+1;xs=0&&k[q[Rn]]&(L|o);Rn--)K(q[Rn],S);for(ge++;ge=0&&k[q[$n]]&o;$n--)K(q[$n],$);for(var Nn=gi+1;Nn=0;bi--){var ws=zr[bi].char;if(ws===Ku||ws===b(w(vi))||v(w(ws))===vi){Un.push([zr[bi].seqIndex,Lr]),zr.length=bi;break}}}Un.sort(function(Wt,he){return Wt[0]-he[0]});for(var Ds=0;Ds=0;Ss--){var rh=q[Ss];if(k[rh]&Hu){var ih=k[rh]&xi?A:_;xe=ih===Br?Br:ih;break}}}if(xe){if(k[q[qn]]=k[q[_s]]=xe,xe!==Br){for(var wi=qn+1;wi=0;_i--)if(k[q[_i]]&o)nh=_i;else{Fs=k[q[_i]]&xi?A:_;break}for(var ah=v1,Ai=je+1;Ai=0&&c(N[Gn])&l;Gn--)j[Gn]=nt.level}}return{levels:j,paragraphs:bt};function sh(Wt,he){for(var Zt=Wt;Zt=j&&c(N[nt])&l;nt--)bt[nt]=K.level;for(var kt=K.level,di=1/0,lr=0;lrkt&&(kt=Ne),Ne=di;Ue--)for(var lt=0;lt=Ue){for(var wt=lt;lt+1=Ue;)lt++;lt>wt&&X.push([wt+j,lt+j])}}}),X}function or(N,at,Y,k){var ot=Ir(N,at,Y,k),X=[].concat(N);return ot.forEach(function(K,j){X[j]=(at.levels[K]&1?Te(N[K]):null)||N[K]}),X.join("")}function Ir(N,at,Y,k){for(var ot=ke(N,at,Y,k),X=[],K=0;K=0;i--){let n=ou.getBidiCharTypeName(t[i].text[0]);Nv.has(n)?(t[i].level=e,r=!0):r&&$v.has(n)?t[i].level=e:r=!1}}function jv(t,e){let r=e,i=1/0;for(let{level:a}of t)a>r&&(r=a),(a|1)=i;a--)for(let s=0;s=a;)o++;for(let l=s,u=o;le>=n.start&&e<=n.end))==null?void 0:r.level)!=null?i:0}function Yv(t,e,r,i,n){let a=Uv(t,e,i,n);qv(a,r);let s="",o=[];for(let l of jv(a,r)){if(Rv.test(l.text))continue;let u=Gv(l);s+=u,o.push(...Array(u.length).fill(l.index))}return{text:s,sourceIndices:o}}function Wv(t,e){let r=e.filter(a=>a>0&&aa-s),n=[];for(let a=0;a+1n.start))).map(([n,a])=>Yv(t,r,Xv(i,n),n,a))}function Zv(t,e){return oy(t,e).map(r=>r.text)}function Hv(t,e,r){return oy(t,r).map(i=>[i.text,i.sourceIndices.map(n=>{var a;return(a=e[n])!=null?a:0})])}var sl=4294967296,Nc=1/sl,Uc=typeof TextDecoder>"u"?null:new TextDecoder("utf-8"),lu=class{constructor(t){this.buf=ArrayBuffer.isView(t)?t:new Uint8Array(t),this.dataView=new DataView(this.buf.buffer,this.buf.byteOffset,this.buf.byteLength),this.pos=0,this.type=0,this._valueStart=-1,this.length=this.buf.length}readFields(t,e,r=this.length){let i;for(;i=this.nextField(r);)t(i,e,this);return e}readMessage(t,e){return this.readFields(t,e,this.readVarint()+this.pos)}readFixed32(){let t=this.dataView.getUint32(this.pos,!0);return this.pos+=4,t}readSFixed32(){let t=this.dataView.getInt32(this.pos,!0);return this.pos+=4,t}readFixed64(){let t=this.dataView.getUint32(this.pos,!0)+this.dataView.getUint32(this.pos+4,!0)*sl;return this.pos+=8,t}readSFixed64(){let t=this.dataView.getUint32(this.pos,!0)+this.dataView.getInt32(this.pos+4,!0)*sl;return this.pos+=8,t}readFloat(){let t=this.dataView.getFloat32(this.pos,!0);return this.pos+=4,t}readDouble(){let t=this.dataView.getFloat64(this.pos,!0);return this.pos+=8,t}readVarint(t){let e=this.buf,r=e[this.pos++];if(r<128)return r;let i=r&127,n;return n=e[this.pos++],i|=(n&127)<<7,n<128||(n=e[this.pos++],i|=(n&127)<<14,n<128)||(n=e[this.pos++],i|=(n&127)<<21,n<128)?i:(n=e[this.pos],i|=(n&15)<<28,Jv(i,t,this))}readSVarint(){let t=this.readVarint();return t%2==1?(t+1)/-2:t/2}readBoolean(){return!!this.readVarint()}readString(){let t=this.readVarint()+this.pos,e=this.pos;return this.pos=t,t-e>=12&&Uc?Uc.decode(this.buf.subarray(e,t)):pb(this.buf,e,t)}readBytes(){let t=this.readVarint()+this.pos,e=this.buf.subarray(this.pos,t);return this.pos=t,e}readPackedVarint(t=[],e){let r=this.readPackedEnd();for(;this.pos=t)return 0;let e=this.readVarint();return this.type=e&7,this._valueStart=this.pos,e>>>3}skip(t){let e=t&7;if(e===0)for(;this.buf[this.pos++]>127;);else if(e===2)this.pos=this.readVarint()+this.pos;else if(e===5)this.pos+=4;else if(e===1)this.pos+=8;else throw Error(`Unimplemented type: ${e}`)}},Kv=class{constructor(t=new Uint8Array(16)){this.buf=ArrayBuffer.isView(t)?t:new Uint8Array(t),this.dataView=new DataView(this.buf.buffer,this.buf.byteOffset,this.buf.byteLength),this.pos=0,this.length=this.buf.length}writeTag(t,e){this.writeVarint(t<<3|e)}realloc(t){let e=this.length||16;for(;e=0&&t<128){this.pos>=this.length&&this.realloc(1),this.buf[this.pos++]=t;return}if(t>268435455||t<0){tb(t,this);return}this.realloc(4),this.buf[this.pos++]=t&127|(t>127?128:0),!(t<=127)&&(this.buf[this.pos++]=(t>>>=7)&127|(t>127?128:0),!(t<=127)&&(this.buf[this.pos++]=(t>>>=7)&127|(t>127?128:0),!(t<=127)&&(this.buf[this.pos++]=t>>>7&127)))}writeSVarint(t){this.writeVarint(t<0?-t*2-1:t*2)}writeBoolean(t){this.writeVarint(+t)}writeString(t){t=String(t),this.realloc(t.length*4),this.pos++;let e=this.pos;this.pos=fb(this.buf,t,this.pos);let r=this.pos-e;r>=128&&qc(e,r,this),this.pos=e-1,this.writeVarint(r),this.pos+=r}writeFloat(t){this.realloc(4),this.dataView.setFloat32(this.pos,t,!0),this.pos+=4}writeDouble(t){this.realloc(8),this.dataView.setFloat64(this.pos,t,!0),this.pos+=8}writeBytes(t){let e=t.length;this.writeVarint(e),this.realloc(e),this.buf.set(t,this.pos),this.pos+=e}writeRawMessage(t,e){this.pos++;let r=this.pos;t(e,this);let i=this.pos-r;i>=128&&qc(r,i,this),this.pos=r-1,this.writeVarint(i),this.pos+=i}writeMessage(t,e,r){this.writeTag(t,2),this.writeRawMessage(e,r)}writePackedVarint(t,e){e.length&&this.writeMessage(t,ib,e)}writePackedSVarint(t,e){e.length&&this.writeMessage(t,nb,e)}writePackedBoolean(t,e){e.length&&this.writeMessage(t,ob,e)}writePackedFloat(t,e){e.length&&this.writeMessage(t,ab,e)}writePackedDouble(t,e){e.length&&this.writeMessage(t,sb,e)}writePackedFixed32(t,e){e.length&&this.writeMessage(t,lb,e)}writePackedSFixed32(t,e){e.length&&this.writeMessage(t,ub,e)}writePackedFixed64(t,e){e.length&&this.writeMessage(t,hb,e)}writePackedSFixed64(t,e){e.length&&this.writeMessage(t,cb,e)}writeBytesField(t,e){this.writeTag(t,2),this.writeBytes(e)}writeFixed32Field(t,e){this.writeTag(t,5),this.writeFixed32(e)}writeSFixed32Field(t,e){this.writeTag(t,5),this.writeSFixed32(e)}writeFixed64Field(t,e){this.writeTag(t,1),this.writeFixed64(e)}writeSFixed64Field(t,e){this.writeTag(t,1),this.writeSFixed64(e)}writeVarintField(t,e){this.writeTag(t,0),this.writeVarint(e)}writeSVarintField(t,e){this.writeTag(t,0),this.writeSVarint(e)}writeStringField(t,e){this.writeTag(t,2),this.writeString(e)}writeFloatField(t,e){this.writeTag(t,5),this.writeFloat(e)}writeDoubleField(t,e){this.writeTag(t,1),this.writeDouble(e)}writeBooleanField(t,e){this.writeVarintField(t,+e)}};function Jv(t,e,r){let i=r.buf,n,a;if(a=i[r.pos++],n=(a&112)>>4,a<128||(a=i[r.pos++],n|=(a&127)<<3,a<128)||(a=i[r.pos++],n|=(a&127)<<10,a<128)||(a=i[r.pos++],n|=(a&127)<<17,a<128)||(a=i[r.pos++],n|=(a&127)<<24,a<128)||(a=i[r.pos++],n|=(a&1)<<31,a<128))return Qv(t,n,e);throw Error("Expected varint not more than 10 bytes")}function Qv(t,e,r){return r?e*4294967296+(t>>>0):(e>>>0)*4294967296+(t>>>0)}function tb(t,e){let r,i;if(t>=0?(r=t%4294967296|0,i=t/4294967296|0):(r=~(-t%4294967296),i=~(-t/4294967296),r^4294967295?r=r+1|0:(r=0,i=i+1|0)),t>=18446744073709552e3||t<-18446744073709552e3)throw Error("Given varint doesn\'t fit into 10 bytes");e.realloc(10),eb(r,i,e),rb(i,e)}function eb(t,e,r){r.buf[r.pos++]=t&127|128,t>>>=7,r.buf[r.pos++]=t&127|128,t>>>=7,r.buf[r.pos++]=t&127|128,t>>>=7,r.buf[r.pos++]=t&127|128,t>>>=7,r.buf[r.pos]=t&127}function rb(t,e){let r=(t&7)<<4;e.buf[e.pos++]|=r|((t>>>=3)?128:0),t&&(e.buf[e.pos++]=t&127|((t>>>=7)?128:0),t&&(e.buf[e.pos++]=t&127|((t>>>=7)?128:0),t&&(e.buf[e.pos++]=t&127|((t>>>=7)?128:0),t&&(e.buf[e.pos++]=t&127|((t>>>=7)?128:0),t&&(e.buf[e.pos++]=t&127)))))}function qc(t,e,r){let i=e<=16383?1:e<=2097151?2:e<=268435455?3:Math.floor(Math.log(e)/(Math.LN2*7));r.realloc(i),r.buf.copyWithin(t+i,t,r.pos)}function ib(t,e){let r=t.length,i=e.buf,n=e.pos,a=e.length;for(let s=0;sa){e.pos=n,e.writeVarint(o),i=e.buf,n=e.pos,a=e.length;continue}for(;o>127;)i[n++]=o%128|128,o=Math.floor(o/128);i[n++]=o}e.pos=n}function nb(t,e){for(let r=0;r239?4:a>223?3:a>191?2:1;if(n+o>r)break;let l,u,h;o===1?a<128&&(s=a):o===2?(l=t[n+1],(l&192)==128&&(s=(a&31)<<6|l&63,s<=127&&(s=null))):o===3?(l=t[n+1],u=t[n+2],(l&192)==128&&(u&192)==128&&(s=(a&15)<<12|(l&63)<<6|u&63,(s<=2047||s>=55296&&s<=57343)&&(s=null))):o===4&&(l=t[n+1],u=t[n+2],h=t[n+3],(l&192)==128&&(u&192)==128&&(h&192)==128&&(s=(a&15)<<18|(l&63)<<12|(u&63)<<6|h&63,(s<=65535||s>=1114112)&&(s=null))),s===null?(s=65533,o=1):s>65535&&(s-=65536,i+=String.fromCharCode(s>>>10&1023|55296),s=56320|s&1023),i+=String.fromCharCode(s),n+=o}return i}function fb(t,e,r){for(let i=0,n,a;i55295&&n<57344)if(a){if(n<56320){t[r++]=239,t[r++]=191,t[r++]=189,a=n;continue}n=a-55296<<10|n-56320|65536,a=null}else{n>56319||i+1===e.length?(t[r++]=239,t[r++]=191,t[r++]=189):a=n;continue}else a&&(a=(t[r++]=239,t[r++]=191,t[r++]=189,null));n<128?t[r++]=n:(n<2048?t[r++]=n>>6|192:(n<65536?t[r++]=n>>12|224:(t[r++]=n>>18|240,t[r++]=n>>12&63|128),t[r++]=n>>6&63|128),t[r++]=n&63|128)}return r}function db(t){return typeof(t==null?void 0:t.renderWithWebGL)=="function"}function uu(t){let e=0,r=0;for(let s of t)e+=s.w*s.h,r=Math.max(r,s.w);t.sort((s,o)=>o.h-s.h);let i=[{x:0,y:0,w:Math.max(Math.ceil(Math.sqrt(e/.95)),r),h:1/0}],n=0,a=0;for(let s of t)for(let o=i.length-1;o>=0;o--){let l=i[o];if(!(s.w>l.w||s.h>l.h)){if(s.x=l.x,s.y=l.y,a=Math.max(a,s.y+s.h),n=Math.max(n,s.x+s.w),s.w===l.w&&s.h===l.h){let u=i.pop();u&&o=r;a--)e.push(a);r=i+1}else{for(let a=r;at.toCodeUnitIndex(a)),i=Ar.isParsed()?Ar:null;if(t.sections.length===1)return i?i.processBidirectionalText(t.toString(),r).map(a=>Gc(a,t.sections,[...a].map(()=>0))):Zv(t.toString(),r).map(a=>ol([...a],t.sections,[...a].map(()=>0)));let n=xb(t);return i?i.processStyledBidirectionalText(t.text,n,r).map(([a,s])=>Gc(a,t.sections,s)):Hv(t.text,n,r).map(([a,s])=>{let o=[...a];return ol(o,t.sections,hy(o).map(l=>{var u;return(u=s[l])!=null?u:0}))})}function ol(t,e,r){var a;let i=new su(t.join(""),e,[]),n=0;for(let s of i.graphemes())i.sectionIndex.push((a=r[n])!=null?a:0),n+=[...s].length;return i}function hy(t){let e=[],r=0;for(let i of t)e.push(r),r+=i.length;return e}function Gc(t,e,r){let i=[...t],n=hy(i),a=gb(i);return ol(a.map(s=>i[s]),e,a.map(s=>{var o;return(o=r[n[s]])!=null?o:0}))}function na(t,e,r,i,n,a,s,o,l,u,h,c,p,f,d){let y=su.fromFeature(t,n);c===2&&y.verticalizePunctuation();let m=y.determineLineBreaks(u,a,e,i,f),g=ay(y.text)?vb(y,m):mb(y,m),x=[],v={positionedLines:x,text:y.toString(),top:h[1],bottom:h[1],left:h[0],right:h[0],writingMode:c,iconsInText:!1,verticalizable:!1};return Tb(v,e,r,i,g,s,o,l,c,u,p,d),!yb(x)&&v}function cy(t){let e=.5,r=.5;switch(t){case"right":case"top-right":case"bottom-right":e=1;break;case"left":case"top-left":case"bottom-left":e=0}switch(t){case"bottom":case"bottom-right":case"bottom-left":r=1;break;case"top":case"top-right":case"top-left":r=0}return{horizontalAlign:e,verticalAlign:r}}function bb(t,e,r){let i=e.getMaxScale()*24,{maxImageWidth:n,maxImageHeight:a}=e.getMaxImageSize(t),s=Math.max(i,a*r);return{verticalLineContentWidth:Math.max(i,n*r),horizontalLineContentHeight:s}}function py(t){switch(t){case"top":return 0;case"center":return .5;default:return 1}}function wb(t,e,r,i){var a,s;if(t!=null&&t.rect)return t;let n=(s=(a=e[r.fontStack])==null?void 0:a.default)==null?void 0:s[i];return n?{rect:null,metrics:n.metrics}:null}function Db(t,e,r){return!(t===1||!e&&!ts(r)||e&&(au(r)||iy(r)))}function ma(t){return new RegExp("\\\\p{Nd}","u").test(String.fromCodePoint(t))}function fy(t){return new RegExp("\\\\p{Lu}","u").test(String.fromCodePoint(t))}function _b(t){return/[\\p{P}\\p{S}]/u.test(String.fromCodePoint(t))}function Ab(t){let e=t.some(ma)&&t.every(i=>ma(i)||_b(i)),r=t.length<=3&&t.every(i=>fy(i)||ma(i));return e||r}function Sb(t){return(ma(t)||fy(t))&&!iy(t)}function Eb(t,e){let r=!1;for(let i=0;ia.codePointAt(0)),i=r.map(ts),n=a=>!i[a]&&!au(r[a])&&!("imageName"in t.getSection(a));for(let a=0;au){let p=Math.ceil(i/u);r*=p/n,n=p}return{x1:e,y1:r,x2:e+i,y2:r+n}}function Xc(t,e,r,i,n,a){let s=t.image,o;if(s.content){let m=s.content,g=s.pixelRatio||1;o=[m[0]/g,m[1]/g,s.displaySize[0]-m[2]/g,s.displaySize[1]-m[3]/g]}let l=e.left*a,u=e.right*a,h,c,p,f;r==="width"||r==="both"?(f=n[0]+l-i[3],c=n[0]+u+i[1]):(f=n[0]+(l+u-s.displaySize[0])/2,c=f+s.displaySize[0]);let d=e.top*a,y=e.bottom*a;return r==="height"||r==="both"?(h=n[1]+d-i[0],p=n[1]+y+i[2]):(h=n[1]+(d+y-s.displaySize[1])/2,p=h+s.displaySize[1]),{image:s,top:h,right:c,bottom:p,left:f,collisionPadding:o}}var Yc=32640;function Wc(t,e){let{expression:r}=e;if(r.kind==="constant")return{kind:"constant",layoutSize:r.evaluate(new st(t+1))};if(r.kind==="source")return{kind:"source"};if(r.kind==="composite"){let{minZoom:i,maxZoom:n}=Pb(r.zoomStops,t);return{kind:"composite",minZoom:i,maxZoom:n,interpolationType:r.interpolationType}}{let i=zb(r),n=r.evaluate(new st(t+1));return{kind:"camera",zoomStops:r.zoomStops,sizes:i,layoutSize:n,interpolationType:r.interpolationType}}}function Pb(t,e){let r=0;for(;rt.evaluate(new st(e===-1/0?t.zoomStops[1]-1:e)))}var Jr=class yy extends M{constructor(e,r,i,n){super(e,r),this.angle=i,n!==void 0&&(this.segment=n)}clone(){return new yy(this.x,this.y,this.angle,this.segment)}};C("Anchor",Jr);function my(t,e,r,i,n){if(e.segment===void 0||r===0)return!0;let a=e,s=e.segment+1,o=0;for(;o>-r/2;){if(s--,s<0)return!1;o-=t[s].dist(a),a=t[s]}o+=t[s].dist(t[s+1]),s++;let l=[],u=0;for(;oi;)u-=l.shift().angleDelta;if(u>n)return!1;s++,o+=c.dist(p)}return!0}function gy(t){let e=0;for(let r=0;ru){let d=(u-l)/f,y=new Jr(br.number(c.x,p.x,d),br.number(c.y,p.y,d),p.angleTo(c),h);return y._round(),!s||my(t,y,o,s,e)?y:void 0}l+=f}}function Vb(t,e,r,i,n,a,s,o,l){let u=xy(i,a,s),h=vy(i,n),c=h*s,p=t[0].x===0||t[0].x===l||t[0].y===0||t[0].y===l;e-c=0&&b=0&&w=0&&p+u<=h){let _=new Jr(b,w,x,d);_._round(),(!i||my(t,_,a,i,n))&&f.push(_)}}c+=g}return!o&&!f.length&&!s&&(f=by(t,c/2,r,i,n,a,s,!0,l)),f}function Ob(t,e,r,i,n){let a=[];for(let s of t){let o;for(let l=0;l=i&&h.x>=i)&&(u.x>=i?u=new M(i,u.y+(h.y-u.y)*((i-u.x)/(h.x-u.x)))._round():h.x>=i&&(h=new M(i,u.y+(h.y-u.y)*((i-u.x)/(h.x-u.x)))._round()),!(u.y>=n&&h.y>=n)&&(u.y>=n?u=new M(u.x+(h.x-u.x)*((n-u.y)/(h.y-u.y)),n)._round():h.y>=n&&(h=new M(u.x+(h.x-u.x)*((n-u.y)/(h.y-u.y)),n)._round()),(!o||!u.equals(o[o.length-1]))&&(o=[u],a.push(o)),o.push(h)))))}}return a}function wy(t,e,r,i,n,a){let s=Zc(t,e,r,n,0);return s=Zc(s,e,i,a,1),s}function Zc(t,e,r,i,n){switch(e){case 1:return Rb(t,r,i,n);case 2:return Hc(t,r,i,n,!1);case 3:return Hc(t,r,i,n,!0)}return[]}function Rb(t,e,r,i){let n=[];for(let a of t)for(let s of a){let o=i===0?s.x:s.y;o>=e&&o<=r&&n.push([s])}return n}function $b(t,e,r,i,n){let a=i===0?Nb:Ub,s=[],o=[];for(let h=0;he&&s.push(a(c,p,e)):f>r?d=e&&(s.push(a(c,p,e)),y=!0),d>r&&f<=r&&(s.push(a(c,p,r)),y=!0),!n&&y&&(o.push(s),s=[])}let l=t.length-1,u=i===0?t[l].x:t[l].y;return u>=e&&u<=r&&s.push(t[l]),n&&s.length>0&&!s[0].equals(s[s.length-1])&&s.push(new M(s[0].x,s[0].y)),s.length>0&&o.push(s),o}function Hc(t,e,r,i,n){let a=[];for(let s of t){let o=$b(s,e,r,i,n);o.length>0&&a.push(...o)}return a}function Nb(t,e,r){let i=(r-t.x)/(e.x-t.x);return new M(r,t.y+(e.y-t.y)*i)}function Ub(t,e,r){let i=(r-t.y)/(e.y-t.y);return new M(t.x+(e.x-t.x)*i,r)}function Kc(t,e,r,i){let n=[],a=t.image,s=a.pixelRatio,o=a.paddedRect.w-2,l=a.paddedRect.h-2,u={x1:t.left,y1:t.top,x2:t.right,y2:t.bottom},h=a.stretchX||[[0,o]],c=a.stretchY||[[0,l]],p=(F,$)=>F+$[1]-$[0],f=h.reduce(p,0),d=c.reduce(p,0),y=o-f,m=l-d,g=0,x=f,v=0,b=d,w=0,_=y,A=0,S=m;if(a.content&&i){let F=a.content,$=F[2]-F[0],G=F[3]-F[1];(a.textFitWidth||a.textFitHeight)&&(u=dy(t)),g=aa(h,0,F[0]),v=aa(c,0,F[1]),x=aa(h,F[0],F[2]),b=aa(c,F[1],F[3]),w=F[0]-g,A=F[1]-v,_=$-x,S=G-b}let T=u.x1,L=u.y1,O=u.x2-T,B=u.y2-L,V=(F,$,G,P)=>{let z=sa(F.stretch-g,x,O,T),it=oa(F.fixed-w,_,F.stretch,f),dt=sa($.stretch-v,b,B,L),ct=oa($.fixed-A,S,$.stretch,d),pt=sa(G.stretch-g,x,O,T),Kt=oa(G.fixed-w,_,G.stretch,f),jt=sa(P.stretch-v,b,B,L),Jt=oa(P.fixed-A,S,P.stretch,d),Oe=new M(z,dt),Gt=new M(pt,dt),Re=new M(pt,jt),$e=new M(z,jt),sr=new M(it/s,ct/s),fi=new M(Kt/s,Jt/s),Te=e*Math.PI/180;if(Te){let N=Math.sin(Te),at=Math.cos(Te),Y=[at,-N,N,at];Oe._matMult(Y),Gt._matMult(Y),$e._matMult(Y),Re._matMult(Y)}let $t=F.stretch+F.fixed,ke=G.stretch+G.fixed,or=$.stretch+$.fixed,Ir=P.stretch+P.fixed;return{tl:Oe,tr:Gt,bl:$e,br:Re,tex:{x:a.paddedRect.x+1+$t,y:a.paddedRect.y+1+or,w:ke-$t,h:Ir-or},writingMode:void 0,glyphOffset:[0,0],sectionIndex:0,pixelOffsetTL:sr,pixelOffsetBR:fi,minFontScaleX:_/s/O,minFontScaleY:S/s/B,isSDF:r}};if(!i||!a.stretchX&&!a.stretchY)n.push(V({fixed:0,stretch:-1},{fixed:0,stretch:-1},{fixed:0,stretch:o+1},{fixed:0,stretch:l+1}));else{let F=Jc(h,y,f),$=Jc(c,m,d);for(let G=0;G0&&(d=Math.max(10,d),this.circleDiameter=d)}else{let c=(h=a.image)!=null&&h.content&&(a.image.textFitWidth||a.image.textFitHeight)?dy(a):{x1:a.left,y1:a.top,x2:a.right,y2:a.bottom};c.y1=c.y1*s-o[0],c.y2=c.y2*s+o[2],c.x1=c.x1*s-o[3],c.x2=c.x2*s+o[1];let p=a.collisionPadding;if(p&&(c.x1-=p[0]*s,c.y1-=p[1]*s,c.x2+=p[2]*s,c.y2+=p[3]*s),u){let f=new M(c.x1,c.y1),d=new M(c.x2,c.y1),y=new M(c.x1,c.y2),m=new M(c.x2,c.y2),g=u*Math.PI/180;f._rotate(g),d._rotate(g),y._rotate(g),m._rotate(g),c.x1=Math.min(f.x,d.x,y.x,m.x),c.x2=Math.max(f.x,d.x,y.x,m.x),c.y1=Math.min(f.y,d.y,y.y,m.y),c.y2=Math.max(f.y,d.y,y.y,m.y)}t.emplaceBack(e.x,e.y,c.x1,c.y1,c.x2,c.y2,r,i,n)}this.boxEndIndex=t.length}},jb=class{constructor(t=[],e=(r,i)=>ri)){if(this.data=t,this.length=this.data.length,this.compare=e,this.length>0)for(let r=(this.length>>1)-1;r>=0;r--)this._down(r)}push(t){this.data.push(t),this._up(this.length++)}pop(){if(this.length===0)return;let t=this.data[0],e=this.data.pop();return--this.length>0&&(this.data[0]=e,this._down(0)),t}peek(){return this.data[0]}_up(t){let{data:e,compare:r}=this,i=e[t];for(;t>0;){let n=t-1>>1,a=e[n];if(r(i,a)>=0)break;e[t]=a,t=n}e[t]=i}_down(t){let{data:e,compare:r}=this,i=this.length>>1,n=e[t];for(;t=0)break;e[t]=e[a],t=a}e[t]=n}};function Gb(t,e=1){let r=Ia.fromPoints(t[0]),i=Math.min(r.width(),r.height()),n=i/2,a=new jb([],Xb),{minX:s,minY:o,maxX:l,maxY:u}=r;if(i===0)return new M(s,o);for(let p=s;pc.d||!c.d)&&(c=p),!(p.max-c.d<=e)&&(n=p.h/2,a.push(new qr(p.p.x-n,p.p.y-n,n,t)),a.push(new qr(p.p.x+n,p.p.y-n,n,t)),a.push(new qr(p.p.x-n,p.p.y+n,n,t)),a.push(new qr(p.p.x+n,p.p.y+n,n,t)))}return h.d>0&&c.d-h.d<=e?h.p:c.p}function Xb(t,e){return e.max-t.max}var qr=class{constructor(t,e,r,i){this.p=new M(t,e),this.h=r,this.d=Yb(this.p,i),this.max=this.d+this.h*Math.SQRT2}};function Yb(t,e){let r=!1,i=1/0;for(let n of e)for(let a=0,s=n.length,o=s-1;at.y!=u.y>t.y&&t.x<(u.x-l.x)*(t.y-l.y)/(u.y-l.y)+l.x&&(r=!r),i=Math.min(i,wd(t,l,u))}return(r?1:-1)*Math.sqrt(i)}function Wb(t){let e=0,r=0,i=0,n=t[0];for(let a=0,s=n.length,o=s-1;ap*24);h.startsWith("top")?c[1]-=7:h.startsWith("bottom")&&(c[1]+=7),l[u+1]=c}return new Ae(l)}let a=i.get("text-variable-anchor");if(a){let o;o=t._unevaluatedLayout.getValue("text-radial-offset")===void 0?i.get("text-offset").evaluate(e,{},r).map(u=>u*24):[i.get("text-radial-offset").evaluate(e,{},r)*24,cu];let l=[];for(let u of a)l.push(u,Dy(u,o));return new Ae(l)}return null}function Hb(t){var h,c;t.bucket.createArrays();let e=512*t.bucket.overscaling;t.bucket.tilePixelRatio=gt/e,t.bucket.compareText={},t.bucket.iconsNeedLinear=!1;let r=t.bucket.layers[0],i=r.layout,n=r._unevaluatedLayout._values,a={layoutIconSize:n["icon-size"].possiblyEvaluate(new st(t.bucket.zoom+1),t.canonical),layoutTextSize:n["text-size"].possiblyEvaluate(new st(t.bucket.zoom+1),t.canonical),textMaxSize:n["text-size"].possiblyEvaluate(new st(18))};if(t.bucket.textSizeData.kind==="composite"){let{minZoom:p,maxZoom:f}=t.bucket.textSizeData;a.compositeTextSizes=[n["text-size"].possiblyEvaluate(new st(p),t.canonical),n["text-size"].possiblyEvaluate(new st(f),t.canonical)]}if(t.bucket.iconSizeData.kind==="composite"){let{minZoom:p,maxZoom:f}=t.bucket.iconSizeData;a.compositeIconSizes=[n["icon-size"].possiblyEvaluate(new st(p),t.canonical),n["icon-size"].possiblyEvaluate(new st(f),t.canonical)]}let s=i.get("text-line-height")*24,o=i.get("text-rotation-alignment")!=="viewport"&&i.get("symbol-placement")!=="point",l=i.get("text-keep-upright"),u=i.get("text-size");for(let p of t.bucket.features){let f=i.get("text-font").evaluate(p,{},t.canonical).join(","),d=u.evaluate(p,{},t.canonical),y=a.layoutTextSize.evaluate(p,{},t.canonical),m=a.layoutIconSize.evaluate(p,{},t.canonical),g={horizontal:{},vertical:void 0},x=p.text,v=[0,0];if(x){let A=x.toString(),S=i.get("text-letter-spacing").evaluate(p,{},t.canonical)*24,T=Mv(A)?S:0,L=i.get("text-anchor").evaluate(p,{},t.canonical),O=_y(r,p,t.canonical);if(!O){let $=i.get("text-radial-offset").evaluate(p,{},t.canonical);v=$?Dy(L,[$*24,cu]):i.get("text-offset").evaluate(p,{},t.canonical).map(G=>G*24)}let B=o?"center":i.get("text-justify").evaluate(p,{},t.canonical),V=i.get("symbol-placement")==="point"?i.get("text-max-width").evaluate(p,{},t.canonical)*24:1/0,F=()=>{t.bucket.allowVerticalPlacement&&nl(A)&&(g.vertical=na(x,t.glyphMap,t.glyphPositions,t.imagePositions,f,V,s,L,"left",T,v,2,!0,y,d))};if(!o&&O){let $=new Set;if(B==="auto")for(let P=0;P{z.x<0||z.x>=8192||z.y<0||z.y>=8192||Qb(t,z,P,r,i,n,F,t.layers[0],t.collisionBoxArray,e.index,e.sourceLayerIndex,t.index,x,[_,_,_,_],T,l,b,A,L,y,e,a,u,h,s,p)};if(O==="line")for(let P of Ob(e.geometry,0,0,gt,gt)){let z=yr(P,$),it=Vb(z,w,S,r.vertical||m,i,24,v,t.overscaling,gt);for(let dt of it){let ct=m;(!ct||!tw(t,ct.text,B,dt))&&G(z,dt)}}else if(O==="line-center"){for(let P of e.geometry)if(P.length>1){let z=yr(P,$),it=Lb(z,S,r.vertical||m,i,24,v);it&&G(z,it)}}else if(e.type==="Polygon")for(let P of Na(e.geometry,0)){let z=Gb(P,16);G(yr(P[0],$,!0),new Jr(z.x,z.y,0))}else if(e.type==="LineString")for(let P of e.geometry){let z=yr(P,$);G(z,new Jr(z[0].x,z[0].y,0))}else if(e.type==="Point")for(let P of e.geometry)for(let z of P)G([z],new Jr(z.x,z.y,0))}function Jb(t,e){let r=t.length,i=e==null?void 0:e.values;if((i==null?void 0:i.length)>0)for(let n=0;n32640&&Mt(`${t.layerIds[0]}: Value for "text-size" is >= 255. Reduce your "text-size".`)):g.kind==="composite"&&(x=[128*d.compositeTextSizes[0].evaluate(s,{},y),128*d.compositeTextSizes[1].evaluate(s,{},y)],(x[0]>32640||x[1]>32640)&&Mt(`${t.layerIds[0]}: Value for "text-size" is >= 255. Reduce your "text-size".`)),t.addSymbols(t.text,m,x,o,a,s,h,e,u.lineStartIndex,u.lineLength,f,y,l);for(let v of c)p[v]=t.text.placedSymbolArray.length-1;return m.length*4}function Ay(t){for(let e in t)return t[e];return null}function Qb(t,e,r,i,n,a,s,o,l,u,h,c,p,f,d,y,m,g,x,v,b,w,_,A,S,T){let L=t.addToLineVertexArray(e,r),O=o.layout.get("symbol-height-offset").evaluate(b,{},A);O>t.maxHeightOffset&&(t.maxHeightOffset=O);let B,V,F,$,G=0,P=0,z=0,it=0,dt=-1,ct=-1,pt={},Kt=(0,Ea.default)("");if(t.allowVerticalPlacement&&i.vertical){let Y=o.layout.get("text-rotate").evaluate(b,{},A)+90,k=i.vertical;F=new la(l,e,u,h,c,k,p,f,d,Y),s&&($=new la(l,e,u,h,c,s,m,g,d,Y))}if(n){let Y=o.layout.get("icon-rotate").evaluate(b,{}),k=o.layout.get("icon-text-fit")!=="none",ot=Kc(n,Y,_,k),X=s?Kc(s,Y,_,k):void 0;V=new la(l,e,u,h,c,n,m,g,!1,Y),G=ot.length*4;let K=t.iconSizeData,j=null;K.kind==="source"?(j=[128*o.layout.get("icon-size").evaluate(b,{})],j[0]>32640&&Mt(`${t.layerIds[0]}: Value for "icon-size" is >= 255. Reduce your "icon-size".`)):K.kind==="composite"&&(j=[128*w.compositeIconSizes[0].evaluate(b,{},A),128*w.compositeIconSizes[1].evaluate(b,{},A)],(j[0]>32640||j[1]>32640)&&Mt(`${t.layerIds[0]}: Value for "icon-size" is >= 255. Reduce your "icon-size".`)),t.addSymbols(t.icon,ot,j,v,x,b,0,e,L.lineStartIndex,L.lineLength,-1,A,O),dt=t.icon.placedSymbolArray.length-1,X&&(P=X.length*4,t.addSymbols(t.icon,X,j,v,x,b,2,e,L.lineStartIndex,L.lineLength,-1,A,O),ct=t.icon.placedSymbolArray.length-1)}let jt=Object.keys(i.horizontal);for(let Y of jt){let k=i.horizontal[Y];B||(B=(Kt=(0,Ea.default)(k.text),new la(l,e,u,h,c,k,p,f,d,o.layout.get("text-rotate").evaluate(b,{},A))));let ot=k.positionedLines.length===1;if(z+=tp(t,e,k,a,o,d,b,y,O,L,i.vertical?1:3,ot?jt:[Y],pt,dt,w,A),ot)break}i.vertical&&(it+=tp(t,e,i.vertical,a,o,d,b,y,O,L,2,["vertical"],pt,ct,w,A));let Jt=B?B.boxStartIndex:t.collisionBoxArray.length,Oe=B?B.boxEndIndex:t.collisionBoxArray.length,Gt=F?F.boxStartIndex:t.collisionBoxArray.length,Re=F?F.boxEndIndex:t.collisionBoxArray.length,$e=V?V.boxStartIndex:t.collisionBoxArray.length,sr=V?V.boxEndIndex:t.collisionBoxArray.length,fi=$?$.boxStartIndex:t.collisionBoxArray.length,Te=$?$.boxEndIndex:t.collisionBoxArray.length,$t=-1,ke=(Y,k)=>Y!=null&&Y.circleDiameter?Math.max(Y.circleDiameter,k):k;$t=ke(B,$t),$t=ke(F,$t),$t=ke(V,$t),$t=ke($,$t);let or=+($t>-1);or&&($t*=S/24),t.glyphOffsetArray.length>=t.maxGlyphs&&Mt("Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907"),b.sortKey!==void 0&&t.addToSortKeyRanges(t.symbolInstances.length,b.sortKey);let Ir=_y(o,b,A),[N,at]=Jb(t.textAnchorOffsets,Ir);T&&(Kt=ew(Kt,b)),t.symbolInstances.emplaceBack(e.x,e.y,pt.right>=0?pt.right:-1,pt.center>=0?pt.center:-1,pt.left>=0?pt.left:-1,pt.vertical||-1,dt,ct,Kt,Jt,Oe,Gt,Re,$e,sr,fi,Te,u,z,it,G,P,or,0,p,$t,N,at,O)}function tw(t,e,r,i){let n=t.compareText;if(!(e in n))n[e]=[];else{let a=n[e];for(let s=a.length-1;s>=0;s--)if(i.dist(a[s])s.id),this.index=t.index,this.pixelRatio=t.pixelRatio,this.sourceLayerIndex=t.sourceLayerIndex,this.hasDependencies=!0,this.hasRTLText=!1,this.maxHeightOffset=0,this.sortKeyRanges=[],this.collisionCircleArray=[],this.maxGlyphs=65535;let e=this.layers[0]._unevaluatedLayout._values;this.textSizeData=Wc(this.zoom,e["text-size"]),this.iconSizeData=Wc(this.zoom,e["icon-size"]);let r=this.layers[0].layout,i=r.get("symbol-sort-key"),n=r.get("symbol-z-order");this.canOverlap=ep(r,"text-overlap","text-allow-overlap")!=="never"||ep(r,"icon-overlap","icon-allow-overlap")!=="never"||r.get("text-ignore-placement")||r.get("icon-ignore-placement"),this.sortFeaturesByKey=n!=="viewport-y"&&!i.isConstant();let a=n==="viewport-y"||n==="auto"&&!this.sortFeaturesByKey;this.sortFeaturesByY=a&&this.canOverlap,r.get("symbol-placement")==="point"&&(this.writingModes=r.get("text-writing-mode").map(s=>uy[s])),this.stateDependentLayerIds=this.layers.filter(s=>s.isStateDependent()).map(s=>s.id),this.sourceID=t.sourceID}createArrays(){this.text=new ll(new Dr(this.layers,this.zoom,t=>t.startsWith("text"))),this.icon=new ll(new Dr(this.layers,this.zoom,t=>t.startsWith("icon"))),this.glyphOffsetArray=new ud,this.lineVertexArray=new hd,this.symbolInstances=new ld,this.textAnchorOffsets=new pd}calculateGlyphDependencies(t,e,r,i,n){var l;let a=(i||this.allowVerticalPlacement)&&n,s=su.fromFeature(t,r),o=s.graphemes();for(let u=0;u0)&&(a.value.kind!=="constant"||a.value.value.length>0),u=o.value.kind!=="constant"||!!o.value.value||Object.keys(o.parameters).length>0,h=n.get("symbol-sort-key");if(this.features=[],!l&&!u)return;let c=e.iconDependencies,p=e.glyphDependencies,f=e.availableImages,d=new st(this.zoom);for(let{feature:m,id:g,index:x,sourceLayerIndex:v}of t){let b=i._featureFilter.needGeometry,w=hi(m,b);if(!i._featureFilter.filter(d,w,r))continue;b||(w.geometry=Fr(m));let _;if(l){let L=i.getValueAndResolveTokens("text-field",w,r,f),O=Le.factory(L);this.hasRTLText||(this.hasRTLText=nw(O)),_=Tv(O,i,w)}let A;if(u){let L=i.getValueAndResolveTokens("icon-image",w,r,f);A=L instanceof Se?L:Se.fromString(L)}if(!_&&!A)continue;let S=this.sortFeaturesByKey?h.evaluate(w,{},r):void 0,T={id:g,text:_,icon:A,index:x,sourceLayerIndex:v,geometry:w.geometry,properties:m.properties,type:Fn.types[m.type],sortKey:S};if(this.features.push(T),A&&(c[A.name]=!0),_){let L=a.evaluate(w,{},r).join(","),O=n.get("text-rotation-alignment")!=="viewport"&&n.get("symbol-placement")!=="point";this.allowVerticalPlacement=(y=this.writingModes)==null?void 0:y.includes(2);let B=nl(_.toString());this.calculateGlyphDependencies(_,p,L,O,B);for(let V of _.sections)V.image&&(c[V.image.name]=!0)}}n.get("symbol-placement")==="line"&&(this.features=Iv(this.features)),this.sortFeaturesByKey&&this.features.sort((m,g)=>m.sortKey-g.sortKey)}update(t,e,r){this.stateDependentLayers.length&&(this.text.programConfigurations.updatePaintArrays(t,e,this.layers,{imagePositions:r}),this.icon.programConfigurations.updatePaintArrays(t,e,this.layers,{imagePositions:r}))}addFeatures({options:t,canonical:e,glyphMap:r,glyphPositions:i,iconMap:n,iconPositions:a,showCollisionBoxes:s}){Hb({bucket:this,glyphMap:r,glyphPositions:i,imageMap:n,imagePositions:a,showCollisionBoxes:s,canonical:e,subdivisionGranularity:t.subdivisionGranularity,hasPromoteId:t.featureIndex.promoteId!=null})}isEmpty(){return this.symbolInstances.length===0}uploadPending(){return!this.uploaded||this.text.programConfigurations.needsUpload||this.icon.programConfigurations.needsUpload}upload(t){!this.uploaded&&this.hasDebugData()&&(this.textCollisionBox.upload(t),this.iconCollisionBox.upload(t)),this.text.upload(t,this.sortFeaturesByY,!this.uploaded,this.text.programConfigurations.needsUpload),this.icon.upload(t,this.sortFeaturesByY,!this.uploaded,this.icon.programConfigurations.needsUpload),this.uploaded=!0}destroyDebugData(){this.textCollisionBox.destroy(),this.iconCollisionBox.destroy()}destroy(){this.text.destroy(),this.icon.destroy(),this.hasDebugData()&&this.destroyDebugData()}addToLineVertexArray(t,e){let r=this.lineVertexArray.length;if(t.segment!==void 0){let i=t.dist(e[t.segment+1]),n=t.dist(e[t.segment]),a={};for(let s=t.segment+1;s=0;s--)a[s]={x:e[s].x,y:e[s].y,tileUnitDistanceFromAnchor:n},s>0&&(n+=e[s-1].dist(e[s]));for(let s=0;s0}hasIconData(){return this.icon.segments.get().length>0}hasDebugData(){return this.textCollisionBox&&this.iconCollisionBox}hasTextCollisionBoxData(){return this.hasDebugData()&&this.textCollisionBox.segments.get().length>0}hasIconCollisionBoxData(){return this.hasDebugData()&&this.iconCollisionBox.segments.get().length>0}addIndicesForPlacedSymbol(t,e){let r=t.placedSymbolArray.get(e),i=r.vertexStartIndex+r.numGlyphs*4;for(let n=r.vertexStartIndex;ni[s]-i[o]||n[o]-n[s]),a}addToSortKeyRanges(t,e){let r=this.sortKeyRanges[this.sortKeyRanges.length-1];(r==null?void 0:r.sortKey)===e?r.symbolInstanceEnd=t+1:this.sortKeyRanges.push({sortKey:e,symbolInstanceStart:t,symbolInstanceEnd:t+1})}sortFeatures(t){if(this.sortFeaturesByY&&this.sortedAngle!==t&&!(this.text.segments.get().length>1||this.icon.segments.get().length>1)){this.symbolInstanceIndexes=this.getSortedSymbolIndexes(t),this.sortedAngle=t,this.text.indexArray.clear(),this.icon.indexArray.clear(),this.featureSortOrder=[];for(let e of this.symbolInstanceIndexes){let r=this.symbolInstances.get(e);this.featureSortOrder.push(r.featureIndex);let i=[r.rightJustifiedTextSymbolIndex,r.centerJustifiedTextSymbolIndex,r.leftJustifiedTextSymbolIndex];for(let n=0;n=0&&i.indexOf(a)===n&&this.addIndicesForPlacedSymbol(this.text,a)}r.verticalPlacedTextSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.text,r.verticalPlacedTextSymbolIndex),r.placedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,r.placedIconSymbolIndex),r.verticalPlacedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,r.verticalPlacedIconSymbolIndex)}this.text.indexBuffer&&this.text.indexBuffer.updateData(this.text.indexArray),this.icon.indexBuffer&&this.icon.indexBuffer.updateData(this.icon.indexArray)}}};C("SymbolBucket",Sy,{omit:["layers","collisionBoxArray","features","compareText"]});function aw(t,e){return e.replace(/{([^{}]+)}/g,(r,i)=>t&&i in t?String(t[i]):"")}var rp,sw=()=>rp||(rp=new Yt({"symbol-placement":new R(D.layout_symbol["symbol-placement"],"symbol-placement"),"symbol-spacing":new R(D.layout_symbol["symbol-spacing"],"symbol-spacing"),"symbol-avoid-edges":new R(D.layout_symbol["symbol-avoid-edges"],"symbol-avoid-edges"),"symbol-sort-key":new U(D.layout_symbol["symbol-sort-key"],"symbol-sort-key"),"symbol-z-order":new R(D.layout_symbol["symbol-z-order"],"symbol-z-order"),"icon-allow-overlap":new R(D.layout_symbol["icon-allow-overlap"],"icon-allow-overlap"),"icon-overlap":new R(D.layout_symbol["icon-overlap"],"icon-overlap"),"icon-ignore-placement":new R(D.layout_symbol["icon-ignore-placement"],"icon-ignore-placement"),"icon-optional":new R(D.layout_symbol["icon-optional"],"icon-optional"),"icon-rotation-alignment":new U(D.layout_symbol["icon-rotation-alignment"],"icon-rotation-alignment"),"icon-size":new U(D.layout_symbol["icon-size"],"icon-size"),"icon-text-fit":new R(D.layout_symbol["icon-text-fit"],"icon-text-fit"),"icon-text-fit-padding":new R(D.layout_symbol["icon-text-fit-padding"],"icon-text-fit-padding"),"icon-image":new U(D.layout_symbol["icon-image"],"icon-image"),"icon-rotate":new U(D.layout_symbol["icon-rotate"],"icon-rotate"),"icon-padding":new U(D.layout_symbol["icon-padding"],"icon-padding"),"icon-keep-upright":new R(D.layout_symbol["icon-keep-upright"],"icon-keep-upright"),"icon-offset":new U(D.layout_symbol["icon-offset"],"icon-offset"),"icon-anchor":new U(D.layout_symbol["icon-anchor"],"icon-anchor"),"icon-pitch-alignment":new R(D.layout_symbol["icon-pitch-alignment"],"icon-pitch-alignment"),"text-pitch-alignment":new R(D.layout_symbol["text-pitch-alignment"],"text-pitch-alignment"),"text-rotation-alignment":new R(D.layout_symbol["text-rotation-alignment"],"text-rotation-alignment"),"text-field":new U(D.layout_symbol["text-field"],"text-field"),"text-font":new U(D.layout_symbol["text-font"],"text-font"),"text-size":new U(D.layout_symbol["text-size"],"text-size"),"text-max-width":new U(D.layout_symbol["text-max-width"],"text-max-width"),"text-line-height":new R(D.layout_symbol["text-line-height"],"text-line-height"),"text-letter-spacing":new U(D.layout_symbol["text-letter-spacing"],"text-letter-spacing"),"text-justify":new U(D.layout_symbol["text-justify"],"text-justify"),"text-radial-offset":new U(D.layout_symbol["text-radial-offset"],"text-radial-offset"),"text-variable-anchor":new R(D.layout_symbol["text-variable-anchor"],"text-variable-anchor"),"text-variable-anchor-offset":new U(D.layout_symbol["text-variable-anchor-offset"],"text-variable-anchor-offset"),"text-anchor":new U(D.layout_symbol["text-anchor"],"text-anchor"),"text-max-angle":new R(D.layout_symbol["text-max-angle"],"text-max-angle"),"text-writing-mode":new R(D.layout_symbol["text-writing-mode"],"text-writing-mode"),"text-rotate":new U(D.layout_symbol["text-rotate"],"text-rotate"),"text-padding":new R(D.layout_symbol["text-padding"],"text-padding"),"text-keep-upright":new R(D.layout_symbol["text-keep-upright"],"text-keep-upright"),"text-transform":new U(D.layout_symbol["text-transform"],"text-transform"),"text-offset":new U(D.layout_symbol["text-offset"],"text-offset"),"text-allow-overlap":new R(D.layout_symbol["text-allow-overlap"],"text-allow-overlap"),"text-overlap":new R(D.layout_symbol["text-overlap"],"text-overlap"),"text-ignore-placement":new R(D.layout_symbol["text-ignore-placement"],"text-ignore-placement"),"text-optional":new R(D.layout_symbol["text-optional"],"text-optional"),"symbol-height-offset":new U(D.layout_symbol["symbol-height-offset"],"symbol-height-offset"),"symbol-height-anchor":new R(D.layout_symbol["symbol-height-anchor"],"symbol-height-anchor")})),ip,ow=()=>ip||(ip=new Yt({"icon-opacity":new U(D.paint_symbol["icon-opacity"],"icon-opacity"),"icon-color":new U(D.paint_symbol["icon-color"],"icon-color"),"icon-halo-color":new U(D.paint_symbol["icon-halo-color"],"icon-halo-color"),"icon-halo-width":new U(D.paint_symbol["icon-halo-width"],"icon-halo-width"),"icon-halo-blur":new U(D.paint_symbol["icon-halo-blur"],"icon-halo-blur"),"icon-translate":new R(D.paint_symbol["icon-translate"],"icon-translate"),"icon-translate-anchor":new R(D.paint_symbol["icon-translate-anchor"],"icon-translate-anchor"),"text-opacity":new U(D.paint_symbol["text-opacity"],"text-opacity"),"text-color":new U(D.paint_symbol["text-color"],"text-color",{runtimeType:pe,getOverride:t=>t.textColor,hasOverride:t=>!!t.textColor}),"text-halo-color":new U(D.paint_symbol["text-halo-color"],"text-halo-color"),"text-halo-width":new U(D.paint_symbol["text-halo-width"],"text-halo-width"),"text-halo-blur":new U(D.paint_symbol["text-halo-blur"],"text-halo-blur"),"text-translate":new R(D.paint_symbol["text-translate"],"text-translate"),"text-translate-anchor":new R(D.paint_symbol["text-translate-anchor"],"text-translate-anchor")})),Zs={get paint(){return ow()},get layout(){return sw()}},Ey=class{constructor(t){if(t.property.overrides===void 0)throw Error("overrides must be provided to instantiate FormatSectionOverride class");this.type=t.property.overrides?t.property.overrides.runtimeType:vn,this.defaultValue=t}evaluate(t){if(t.formattedSection){let e=this.defaultValue.property.overrides;if(e!=null&&e.hasOverride(t.formattedSection))return e.getOverride(t.formattedSection)}return t.feature&&t.featureState?this.defaultValue.evaluate(t.feature,t.featureState):this.defaultValue.property.specification.default}eachChild(t){if(!this.defaultValue.isConstant()){let e=this.defaultValue.value;t(e._styleExpression.expression)}}outputDefined(){return!1}serialize(){return null}};C("FormatSectionOverride",Ey,{omit:["defaultValue"]});var lw=class hl extends ye{constructor(e,r){super(e,Zs,r)}recalculate(e,r){super.recalculate(e,r);let i=this.layout.get("icon-rotation-alignment");if((i.value.kind!=="constant"||i.value.value==="auto")&&(this.layout._values["icon-rotation-alignment"]=new le(i.property,{kind:"constant",value:this.layout.get("symbol-placement")==="point"?"viewport":"map"},i.parameters)),this.layout.get("text-rotation-alignment")==="auto"&&(this.layout.get("symbol-placement")==="point"?this.layout._values["text-rotation-alignment"]="viewport":this.layout._values["text-rotation-alignment"]="map"),this.layout.get("text-pitch-alignment")==="auto"&&(this.layout._values["text-pitch-alignment"]=this.layout.get("text-rotation-alignment")==="map"?"map":"viewport"),this.layout.get("icon-pitch-alignment")==="auto"&&(this.layout._values["icon-pitch-alignment"]=this.layout.get("icon-rotation-alignment").constantOr("viewport")),this.layout.get("symbol-placement")==="point"){let n=this.layout.get("text-writing-mode");if(n){let a=[];for(let s of n)a.includes(s)||a.push(s);this.layout._values["text-writing-mode"]=a}else this.layout._values["text-writing-mode"]=["horizontal"]}this._setPaintOverrides()}getValueAndResolveTokens(e,r,i,n){let a=this.layout.get(e).evaluate(r,{},i,n),s=this._unevaluatedLayout._values[e];return!s.isDataDriven()&&!Xa(s.value)&&a?aw(r.properties,a):a}createBucket(e){return new Sy(e)}queryRadius(){return 0}queryIntersectsFeature(){throw Error("Should take a different path in FeatureIndex")}_setPaintOverrides(){for(let e of Zs.paint.overridableProperties){if(!hl.hasPaintOverride(this.layout,e))continue;let r=this.paint.get(e),i=new Bl(new Ey(r),`layers[${this.id}].paint.${r.property.name}`,r.property.specification),n=null;n=r.value.kind==="constant"||r.value.kind==="source"?new ln("source",i):new _a("composite",i,r.value.zoomStops),this.paint._values[e]=new le(r.property,n,r.parameters)}}_handleOverridablePaintPropertyUpdate(e,r,i){return!this.layout||r.isDataDriven()||i.isDataDriven()?!1:hl.hasPaintOverride(this.layout,e)}static hasPaintOverride(e,r){let i=e.get("text-field"),n=Zs.paint.properties[r],a=!1,s=o=>{var l;for(let u of o)if((l=n.overrides)!=null&&l.hasOverride(u)){a=!0;return}};if(i.value.kind==="constant"&&i.value.value instanceof Le)s(i.value.value.sections);else if(i.value.kind==="source"||i.value.kind==="composite"){let o=u=>{if(!a)if(u instanceof ri&&St(u.value)===bn){let h=u.value;s(h.sections)}else u instanceof Yp?s(u.sections):u.eachChild(o)},l=i.value;l._styleExpression&&o(l._styleExpression.expression)}return a}};function uw(t,e,r,i=1){var a;let n=(a=t.get("icon-padding").evaluate(e,{},r))==null?void 0:a.values;return[n[0]*i,n[1]*i,n[2]*i,n[3]*i]}var np,hw=()=>np||(np=new Yt({"background-color":new R(D.paint_background["background-color"],"background-color"),"background-pattern":new id(D.paint_background["background-pattern"],"background-pattern"),"background-opacity":new R(D.paint_background["background-opacity"],"background-opacity")})),cw={get paint(){return hw()}};var pw=class extends ye{constructor(t,e){super(t,cw,e)}};var fw=class extends ye{constructor(t,e){super(t,{},e),this.onAdd=r=>{this.implementation.onAdd&&this.implementation.onAdd(r,r.painter.context.gl)},this.onRemove=r=>{this.implementation.onRemove&&this.implementation.onRemove(r,r.painter.context.gl)},this.implementation=t}is3D(){return this.implementation.renderingMode==="3d"}hasOffscreenPass(){return this.implementation.prerender!==void 0}recalculate(){}updateTransitions(){}hasTransition(){return!1}serialize(){throw Error("Custom layers cannot be serialized")}};function Fy(t,e){if(t.type==="custom")return new fw(t,e);switch(t.type){case"background":return new pw(t,e);case"circle":return new Kg(t,e);case"color-relief":return new lx(t,e);case"fill":return new $x(t,e);case"fill-extrusion":return new u2(t,e);case"heatmap":return new rx(t,e);case"hillshade":return new ax(t,e);case"line":return new rv(t,e);case"raster":return new pg(t,e);case"symbol":return new lw(t,e)}}var dw=class{constructor(t){this._methodToThrottle=t,this._triggered=!1,this._channel=new MessageChannel,this._channel.port2.onmessage=()=>{this._triggered=!1,this._methodToThrottle()}}trigger(){var t;this._triggered||(this._triggered=!0,(t=this._channel)==null||t.port1.postMessage(!0))}remove(){delete this._channel,this._methodToThrottle=()=>{}}},yw={once:!0},Ty=class{constructor(t,e){this.target=t,this.mapId=e,this.resolveRejects={},this.tasks={},this.taskQueue=[],this.abortControllers={},this.messageHandlers={},this.invoker=new dw(()=>this.process()),this.subscription=dh(this.target,"message",r=>this.receive(r),!1),this.globalScope=vr(self)?t:window}registerMessageHandler(t,e){this.messageHandlers[t]=e}unregisterMessageHandler(t){delete this.messageHandlers[t]}sendAsync(t,e){return new Promise((r,i)=>{let n=Math.round(Math.random()*1e18).toString(36).substring(0,10),a=e?dh(e.signal,"abort",()=>{a==null||a.unsubscribe(),delete this.resolveRejects[n];let l={id:n,type:"",origin:location.origin,targetMapId:t.targetMapId,sourceMapId:this.mapId};this.target.postMessage(l),i(new gl(e.signal.reason))},yw):null;this.resolveRejects[n]={resolve:l=>{a==null||a.unsubscribe(),r(l)},reject:l=>{a==null||a.unsubscribe(),i(l)}};let s=[],o=Si(Xe({},t),{id:n,sourceMapId:this.mapId,origin:location.origin,data:Hi(t.data,s)});this.target.postMessage(o,{transfer:s})})}receive(t){let e=t.data,r=e.id,i=["file://","resource://android","null"],n=[e.origin,location.origin],a=e.origin===location.origin,s=n.some(o=>i.includes(o));if((a||s)&&!(e.targetMapId&&this.mapId!==e.targetMapId)){if(e.type===""){delete this.tasks[r];let o=this.abortControllers[r];delete this.abortControllers[r],o&&o.abort();return}if(vr(self)||e.mustQueue){this.tasks[r]=e,this.taskQueue.push(r),this.invoker.trigger();return}this.processTask(r,e)}}process(){if(this.taskQueue.length===0)return;let t=this.taskQueue.shift(),e=this.tasks[t];delete this.tasks[t],this.taskQueue.length>0&&this.invoker.trigger(),e&&this.processTask(t,e)}processTask(t,e){return et(this,null,function*(){if(e.type===""){let n=this.resolveRejects[t];if(delete this.resolveRejects[t],!n)return;e.error?n.reject(tn(Ki(e.error))):n.resolve(Ki(e.data));return}if(!this.messageHandlers[e.type]){this.completeTask(t,null,null);return}let r=Ki(e.data),i=new AbortController;this.abortControllers[t]=i;try{let n=yield this.messageHandlers[e.type](e.sourceMapId,r,i);this.completeTask(t,null,n)}catch(n){this.completeTask(t,tn(n))}})}completeTask(t,e,r){let i=[];delete this.abortControllers[t];let n={id:t,type:"",sourceMapId:this.mapId,origin:location.origin,error:e?Hi(e):null,data:Hi(r,i)};this.target.postMessage(n,{transfer:i})}remove(){this.invoker.remove(),this.subscription.unsubscribe()}};function mw(t,e,r){return!(t<0||t>25||r<0||r>=2**t||e<0||e>=2**t)}var ky=class{constructor(t,e,r){if(!mw(t,e,r))throw Error(`x=${e}, y=${r}, z=${t} outside of bounds. 0<=x<${2**t}, 0<=y<${2**t} 0<=z<=25 `);this.z=t,this.x=e,this.y=r,this.key=Qi(0,t,t,e,r)}equals(t){return this.z===t.z&&this.x===t.x&&this.y===t.y}url(t,e,r){let i=xw(this.x,this.y,this.z),n=vw(this.z,this.x,this.y);return t[(this.x+this.y)%t.length].replace(/{prefix}/g,(this.x%16).toString(16)+(this.y%16).toString(16)).replace(/{z}/g,String(this.z)).replace(/{x}/g,String(this.x)).replace(/{y}/g,String(r==="tms"?2**this.z-this.y-1:this.y)).replace(/{ratio}/g,e>1?"@2x":"").replace(/{quadkey}/g,n).replace(/{bbox-epsg-3857}/g,i)}isChildOf(t){let e=this.z-t.z;return e>0&&t.x===this.x>>e&&t.y===this.y>>e}getTilePoint(t){let e=2**this.z;return new M((t.x*e-this.x)*gt,(t.y*e-this.y)*gt)}toString(){return`${this.z}/${this.x}/${this.y}`}},gw=class{constructor(t,e){this.wrap=t,this.canonical=e,this.key=Qi(t,e.z,e.z,e.x,e.y)}},pu=class se{constructor(e,r,i,n,a){if(this.terrainRttPosMatrix32f=null,e= z; overscaledZ = ${e}; z = ${i}`);this.overscaledZ=e,this.wrap=r,this.canonical=new ky(i,+n,+a),this.key=Qi(r,e,i,n,a)}clone(){return new se(this.overscaledZ,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)}equals(e){return this.overscaledZ===e.overscaledZ&&this.wrap===e.wrap&&this.canonical.equals(e.canonical)}scaledTo(e){if(e>this.overscaledZ)throw Error(`targetZ > this.overscaledZ; targetZ = ${e}; overscaledZ = ${this.overscaledZ}`);let r=this.canonical.z-e;return e>this.canonical.z?new se(e,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y):new se(e,this.wrap,e,this.canonical.x>>r,this.canonical.y>>r)}isOverscaled(){return this.overscaledZ>this.canonical.z}calculateScaledKey(e,r){if(e>this.overscaledZ)throw Error(`targetZ > this.overscaledZ; targetZ = ${e}; overscaledZ = ${this.overscaledZ}`);let i=this.canonical.z-e;return e>this.canonical.z?Qi(this.wrap*+r,e,this.canonical.z,this.canonical.x,this.canonical.y):Qi(this.wrap*+r,e,e,this.canonical.x>>i,this.canonical.y>>i)}isChildOf(e){if(e.wrap!==this.wrap||this.overscaledZ-e.overscaledZ<=0)return!1;if(e.overscaledZ===0)return this.overscaledZ>0;let r=this.canonical.z-e.canonical.z;return r<0?!1:e.canonical.x===this.canonical.x>>r&&e.canonical.y===this.canonical.y>>r}children(e){if(this.overscaledZ>=e)return[new se(this.overscaledZ+1,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)];let r=this.canonical.z+1,i=this.canonical.x*2,n=this.canonical.y*2;return[new se(r,this.wrap,r,i,n),new se(r,this.wrap,r,i+1,n),new se(r,this.wrap,r,i,n+1),new se(r,this.wrap,r,i+1,n+1)]}isLessThan(e){return this.wrape.wrap?!1:this.overscaledZe.overscaledZ?!1:this.canonical.xe.canonical.x?!1:this.canonical.y=0&&e=0&&r=u)return null;let c=this.canonical.x+n,p=this.wrap;return c<0?(p-=Math.ceil(-c/u),c=(c%u+u)%u):c>=u&&(p+=Math.floor(c/u),c%=u),{tileID:new se(this.overscaledZ,p,l,c,h),x:s,y:o}}};function Qi(t,e,r,i,n){t*=2,t<0&&(t=t*-1-1);let a=1<0;n--){let a=1<Dw(n,a,r),t.layers[i])}function Dw(t,e,r=""){e.writeVarintField(15,t.version||1),e.writeStringField(1,t.name||""),e.writeVarintField(5,t.extent||4096);let i={jsonPrefix:r,keys:[],values:[],keycache:{},valuecache:{}};for(let s=0;s>31}function Sw(t,e){let r=t.loadGeometry(),i=t.type,n=0,a=0;for(let s of r){let o=1;i===1&&(o=s.length),e.writeVarint(Ks(1,o));let l=i===3?s.length-1:s.length;for(let u=0;u=this._numberToString.length)throw Error(`Out of bounds. Index requested n=${t} can\'t be >= this._numberToString.length ${this._numberToString.length}`);return this._numberToString[t]}},Fw=class{constructor(t,e,r,i,n){this.type="Feature",this._vectorTileFeature=t,this._x=r,this._y=i,this._z=e;for(let a in t.properties)typeof t.properties[a]=="string"&&t.properties[a].startsWith("__$json__:")&&(t.properties[a]=JSON.parse(t.properties[a].slice(10)));this.properties=t.properties,this.id=n}projectPoint(t,e,r,i){return[(t.x+e)*360/i-180,360/Math.PI*Math.atan(Math.exp((1-(t.y+r)*2/i)*Math.PI))-90]}projectLine(t,e,r,i){return t.map(n=>this.projectPoint(n,e,r,i))}get geometry(){if(this._geometry)return this._geometry;let t=this._vectorTileFeature,e=t.extent*2**this._z,r=t.extent*this._x,i=t.extent*this._y,n=t.loadGeometry();switch(t.type){case 1:{let a=[];for(let o of n)a.push(o[0]);let s=this.projectLine(a,r,i,e);this._geometry=a.length===1?{type:"Point",coordinates:s[0]}:{type:"MultiPoint",coordinates:s};break}case 2:{let a=n.map(s=>this.projectLine(s,r,i,e));this._geometry=a.length===1?{type:"LineString",coordinates:a[0]}:{type:"MultiLineString",coordinates:a};break}case 3:{let a=Ld(n),s=[];for(let o of a)s.push(o.map(l=>this.projectLine(l,r,i,e)));this._geometry=s.length===1?{type:"Polygon",coordinates:s[0]}:{type:"MultiPolygon",coordinates:s};break}default:throw Error(`unknown feature type: ${t.type}`)}return this._geometry}set geometry(t){this._geometry=t}toJSON(){let t={geometry:this.geometry};for(let e in this)e!=="_geometry"&&e!=="_vectorTileFeature"&&e!=="_x"&&e!=="_y"&&e!=="_z"&&(t[e]=this[e]);return t}},Tr=class{constructor(t,e,r){this._name=t,this.dataBuffer=e,typeof r=="number"?this._size=r:(this.nullabilityBuffer=r,this._size=r.size())}getValue(t){return this.nullabilityBuffer&&!this.nullabilityBuffer.get(t)?null:this.getValueFromBuffer(t)}has(t){var e;return((e=this.nullabilityBuffer)==null?void 0:e.get(t))||!this.nullabilityBuffer}get name(){return this._name}get size(){return this._size}},es=class extends Tr{},yu=class extends es{getValueFromBuffer(t){return this.dataBuffer[t]}},mu=class extends es{getValueFromBuffer(t){return this.dataBuffer[t]}},Cy=class extends Tr{constructor(t,e,r,i){super(t,e,i),this.delta=r}},gu=class extends Cy{constructor(t,e,r,i,n){super(t,n?Int32Array.of(e):Uint32Array.of(e),r,i)}getValueFromBuffer(t){return this.dataBuffer[0]+t*this.delta}},xu=class extends Tr{constructor(t,e,r,i){super(t,i?Int32Array.of(e):Uint32Array.of(e),r)}getValueFromBuffer(t){return this.dataBuffer[0]}},Tw=class{constructor(t,e,r,i,n=4096){if(this._name=t,this._geometryVector=e,this._idVector=r,this._propertyVectors=i,this._extent=n,t.length===0)throw Error("Missing layer name")}get name(){return this._name}get idVector(){return this._idVector}get geometryVector(){return this._geometryVector}get propertyVectors(){var t;return(t=this._propertyVectors)!=null?t:[]}getPropertyVector(t){return this.propertyVectorsMap||(this.propertyVectorsMap=new Map(this.propertyVectors.map(e=>[e.name,e]))),this.propertyVectorsMap.get(t)}get numFeatures(){return this.geometryVector.numGeometries}get extent(){return this._extent}getFeatures(){let t=[],e=this.geometryVector.getGeometries();for(let r=0;r>>32-t;var pl=vu,bu=65536;function wu(t,e){return t-t%e}function kw(t){return wu(t+31,32)}function Py(t){if(!Number.isFinite(t)||t<=0)return bu;let e=wu(Math.floor(t),256);return e===0?256:e}function Iw(t){let e=t>>>0;return((e&255)<<24|(e&65280)<<8|e>>>8&65280|e>>>24&255)>>>0}function Cw(t,e,r,i){let n=i,a=t[e]>>>0,s=t[e+1]>>>0;r[n++]=a>>>0&3,r[n++]=a>>>2&3,r[n++]=a>>>4&3,r[n++]=a>>>6&3,r[n++]=a>>>8&3,r[n++]=a>>>10&3,r[n++]=a>>>12&3,r[n++]=a>>>14&3,r[n++]=a>>>16&3,r[n++]=a>>>18&3,r[n++]=a>>>20&3,r[n++]=a>>>22&3,r[n++]=a>>>24&3,r[n++]=a>>>26&3,r[n++]=a>>>28&3,r[n++]=a>>>30&3,r[n++]=s>>>0&3,r[n++]=s>>>2&3,r[n++]=s>>>4&3,r[n++]=s>>>6&3,r[n++]=s>>>8&3,r[n++]=s>>>10&3,r[n++]=s>>>12&3,r[n++]=s>>>14&3,r[n++]=s>>>16&3,r[n++]=s>>>18&3,r[n++]=s>>>20&3,r[n++]=s>>>22&3,r[n++]=s>>>24&3,r[n++]=s>>>26&3,r[n++]=s>>>28&3,r[n]=s>>>30&3}function Mw(t,e,r,i){let n=i,a=t[e]>>>0,s=t[e+1]>>>0,o=t[e+2]>>>0;r[n++]=a>>>0&7,r[n++]=a>>>3&7,r[n++]=a>>>6&7,r[n++]=a>>>9&7,r[n++]=a>>>12&7,r[n++]=a>>>15&7,r[n++]=a>>>18&7,r[n++]=a>>>21&7,r[n++]=a>>>24&7,r[n++]=a>>>27&7,r[n++]=(a>>>30|(s&1)<<2)&7,r[n++]=s>>>1&7,r[n++]=s>>>4&7,r[n++]=s>>>7&7,r[n++]=s>>>10&7,r[n++]=s>>>13&7,r[n++]=s>>>16&7,r[n++]=s>>>19&7,r[n++]=s>>>22&7,r[n++]=s>>>25&7,r[n++]=s>>>28&7,r[n++]=(s>>>31|(o&3)<<1)&7,r[n++]=o>>>2&7,r[n++]=o>>>5&7,r[n++]=o>>>8&7,r[n++]=o>>>11&7,r[n++]=o>>>14&7,r[n++]=o>>>17&7,r[n++]=o>>>20&7,r[n++]=o>>>23&7,r[n++]=o>>>26&7,r[n]=o>>>29&7}function Bw(t,e,r,i){let n=i,a=t[e]>>>0,s=t[e+1]>>>0,o=t[e+2]>>>0,l=t[e+3]>>>0;r[n++]=a>>>0&15,r[n++]=a>>>4&15,r[n++]=a>>>8&15,r[n++]=a>>>12&15,r[n++]=a>>>16&15,r[n++]=a>>>20&15,r[n++]=a>>>24&15,r[n++]=a>>>28&15,r[n++]=s>>>0&15,r[n++]=s>>>4&15,r[n++]=s>>>8&15,r[n++]=s>>>12&15,r[n++]=s>>>16&15,r[n++]=s>>>20&15,r[n++]=s>>>24&15,r[n++]=s>>>28&15,r[n++]=o>>>0&15,r[n++]=o>>>4&15,r[n++]=o>>>8&15,r[n++]=o>>>12&15,r[n++]=o>>>16&15,r[n++]=o>>>20&15,r[n++]=o>>>24&15,r[n++]=o>>>28&15,r[n++]=l>>>0&15,r[n++]=l>>>4&15,r[n++]=l>>>8&15,r[n++]=l>>>12&15,r[n++]=l>>>16&15,r[n++]=l>>>20&15,r[n++]=l>>>24&15,r[n]=l>>>28&15}function Pw(t,e,r,i){let n=i,a=t[e]>>>0,s=t[e+1]>>>0,o=t[e+2]>>>0,l=t[e+3]>>>0,u=t[e+4]>>>0;r[n++]=a>>>0&31,r[n++]=a>>>5&31,r[n++]=a>>>10&31,r[n++]=a>>>15&31,r[n++]=a>>>20&31,r[n++]=a>>>25&31,r[n++]=(a>>>30|(s&7)<<2)&31,r[n++]=s>>>3&31,r[n++]=s>>>8&31,r[n++]=s>>>13&31,r[n++]=s>>>18&31,r[n++]=s>>>23&31,r[n++]=(s>>>28|(o&1)<<4)&31,r[n++]=o>>>1&31,r[n++]=o>>>6&31,r[n++]=o>>>11&31,r[n++]=o>>>16&31,r[n++]=o>>>21&31,r[n++]=o>>>26&31,r[n++]=(o>>>31|(l&15)<<1)&31,r[n++]=l>>>4&31,r[n++]=l>>>9&31,r[n++]=l>>>14&31,r[n++]=l>>>19&31,r[n++]=l>>>24&31,r[n++]=(l>>>29|(u&3)<<3)&31,r[n++]=u>>>2&31,r[n++]=u>>>7&31,r[n++]=u>>>12&31,r[n++]=u>>>17&31,r[n++]=u>>>22&31,r[n]=u>>>27&31}function zw(t,e,r,i){let n=i,a=t[e]>>>0,s=t[e+1]>>>0,o=t[e+2]>>>0,l=t[e+3]>>>0,u=t[e+4]>>>0,h=t[e+5]>>>0;r[n++]=a>>>0&63,r[n++]=a>>>6&63,r[n++]=a>>>12&63,r[n++]=a>>>18&63,r[n++]=a>>>24&63,r[n++]=(a>>>30|(s&15)<<2)&63,r[n++]=s>>>4&63,r[n++]=s>>>10&63,r[n++]=s>>>16&63,r[n++]=s>>>22&63,r[n++]=(s>>>28|(o&3)<<4)&63,r[n++]=o>>>2&63,r[n++]=o>>>8&63,r[n++]=o>>>14&63,r[n++]=o>>>20&63,r[n++]=o>>>26&63,r[n++]=l>>>0&63,r[n++]=l>>>6&63,r[n++]=l>>>12&63,r[n++]=l>>>18&63,r[n++]=l>>>24&63,r[n++]=(l>>>30|(u&15)<<2)&63,r[n++]=u>>>4&63,r[n++]=u>>>10&63,r[n++]=u>>>16&63,r[n++]=u>>>22&63,r[n++]=(u>>>28|(h&3)<<4)&63,r[n++]=h>>>2&63,r[n++]=h>>>8&63,r[n++]=h>>>14&63,r[n++]=h>>>20&63,r[n]=h>>>26&63}function Lw(t,e,r,i){let n=i,a=t[e]>>>0,s=t[e+1]>>>0,o=t[e+2]>>>0,l=t[e+3]>>>0,u=t[e+4]>>>0,h=t[e+5]>>>0,c=t[e+6]>>>0;r[n++]=a>>>0&127,r[n++]=a>>>7&127,r[n++]=a>>>14&127,r[n++]=a>>>21&127,r[n++]=(a>>>28|(s&7)<<4)&127,r[n++]=s>>>3&127,r[n++]=s>>>10&127,r[n++]=s>>>17&127,r[n++]=s>>>24&127,r[n++]=(s>>>31|(o&63)<<1)&127,r[n++]=o>>>6&127,r[n++]=o>>>13&127,r[n++]=o>>>20&127,r[n++]=(o>>>27|(l&3)<<5)&127,r[n++]=l>>>2&127,r[n++]=l>>>9&127,r[n++]=l>>>16&127,r[n++]=l>>>23&127,r[n++]=(l>>>30|(u&31)<<2)&127,r[n++]=u>>>5&127,r[n++]=u>>>12&127,r[n++]=u>>>19&127,r[n++]=(u>>>26|(h&1)<<6)&127,r[n++]=h>>>1&127,r[n++]=h>>>8&127,r[n++]=h>>>15&127,r[n++]=h>>>22&127,r[n++]=(h>>>29|(c&15)<<3)&127,r[n++]=c>>>4&127,r[n++]=c>>>11&127,r[n++]=c>>>18&127,r[n]=c>>>25&127}function Vw(t,e,r,i){let n=i,a=t[e]>>>0,s=t[e+1]>>>0,o=t[e+2]>>>0,l=t[e+3]>>>0,u=t[e+4]>>>0,h=t[e+5]>>>0,c=t[e+6]>>>0,p=t[e+7]>>>0;r[n++]=a>>>0&255,r[n++]=a>>>8&255,r[n++]=a>>>16&255,r[n++]=a>>>24&255,r[n++]=s>>>0&255,r[n++]=s>>>8&255,r[n++]=s>>>16&255,r[n++]=s>>>24&255,r[n++]=o>>>0&255,r[n++]=o>>>8&255,r[n++]=o>>>16&255,r[n++]=o>>>24&255,r[n++]=l>>>0&255,r[n++]=l>>>8&255,r[n++]=l>>>16&255,r[n++]=l>>>24&255,r[n++]=u>>>0&255,r[n++]=u>>>8&255,r[n++]=u>>>16&255,r[n++]=u>>>24&255,r[n++]=h>>>0&255,r[n++]=h>>>8&255,r[n++]=h>>>16&255,r[n++]=h>>>24&255,r[n++]=c>>>0&255,r[n++]=c>>>8&255,r[n++]=c>>>16&255,r[n++]=c>>>24&255,r[n++]=p>>>0&255,r[n++]=p>>>8&255,r[n++]=p>>>16&255,r[n]=p>>>24&255}function Ow(t,e,r,i){let n=i,a=t[e]>>>0,s=t[e+1]>>>0,o=t[e+2]>>>0,l=t[e+3]>>>0,u=t[e+4]>>>0,h=t[e+5]>>>0,c=t[e+6]>>>0,p=t[e+7]>>>0,f=t[e+8]>>>0;r[n++]=a>>>0&511,r[n++]=a>>>9&511,r[n++]=a>>>18&511,r[n++]=(a>>>27|(s&15)<<5)&511,r[n++]=s>>>4&511,r[n++]=s>>>13&511,r[n++]=s>>>22&511,r[n++]=(s>>>31|(o&255)<<1)&511,r[n++]=o>>>8&511,r[n++]=o>>>17&511,r[n++]=(o>>>26|(l&7)<<6)&511,r[n++]=l>>>3&511,r[n++]=l>>>12&511,r[n++]=l>>>21&511,r[n++]=(l>>>30|(u&127)<<2)&511,r[n++]=u>>>7&511,r[n++]=u>>>16&511,r[n++]=(u>>>25|(h&3)<<7)&511,r[n++]=h>>>2&511,r[n++]=h>>>11&511,r[n++]=h>>>20&511,r[n++]=(h>>>29|(c&63)<<3)&511,r[n++]=c>>>6&511,r[n++]=c>>>15&511,r[n++]=(c>>>24|(p&1)<<8)&511,r[n++]=p>>>1&511,r[n++]=p>>>10&511,r[n++]=p>>>19&511,r[n++]=(p>>>28|(f&31)<<4)&511,r[n++]=f>>>5&511,r[n++]=f>>>14&511,r[n]=f>>>23&511}function Rw(t,e,r,i){let n=i,a=t[e]>>>0,s=t[e+1]>>>0,o=t[e+2]>>>0,l=t[e+3]>>>0,u=t[e+4]>>>0,h=t[e+5]>>>0,c=t[e+6]>>>0,p=t[e+7]>>>0,f=t[e+8]>>>0,d=t[e+9]>>>0;r[n++]=a>>>0&1023,r[n++]=a>>>10&1023,r[n++]=a>>>20&1023,r[n++]=(a>>>30|(s&255)<<2)&1023,r[n++]=s>>>8&1023,r[n++]=s>>>18&1023,r[n++]=(s>>>28|(o&63)<<4)&1023,r[n++]=o>>>6&1023,r[n++]=o>>>16&1023,r[n++]=(o>>>26|(l&15)<<6)&1023,r[n++]=l>>>4&1023,r[n++]=l>>>14&1023,r[n++]=(l>>>24|(u&3)<<8)&1023,r[n++]=u>>>2&1023,r[n++]=u>>>12&1023,r[n++]=u>>>22&1023,r[n++]=h>>>0&1023,r[n++]=h>>>10&1023,r[n++]=h>>>20&1023,r[n++]=(h>>>30|(c&255)<<2)&1023,r[n++]=c>>>8&1023,r[n++]=c>>>18&1023,r[n++]=(c>>>28|(p&63)<<4)&1023,r[n++]=p>>>6&1023,r[n++]=p>>>16&1023,r[n++]=(p>>>26|(f&15)<<6)&1023,r[n++]=f>>>4&1023,r[n++]=f>>>14&1023,r[n++]=(f>>>24|(d&3)<<8)&1023,r[n++]=d>>>2&1023,r[n++]=d>>>12&1023,r[n]=d>>>22&1023}function $w(t,e,r,i){let n=i,a=t[e]>>>0,s=t[e+1]>>>0,o=t[e+2]>>>0,l=t[e+3]>>>0,u=t[e+4]>>>0,h=t[e+5]>>>0,c=t[e+6]>>>0,p=t[e+7]>>>0,f=t[e+8]>>>0,d=t[e+9]>>>0,y=t[e+10]>>>0;r[n++]=a>>>0&2047,r[n++]=a>>>11&2047,r[n++]=(a>>>22|(s&1)<<10)&2047,r[n++]=s>>>1&2047,r[n++]=s>>>12&2047,r[n++]=(s>>>23|(o&3)<<9)&2047,r[n++]=o>>>2&2047,r[n++]=o>>>13&2047,r[n++]=(o>>>24|(l&7)<<8)&2047,r[n++]=l>>>3&2047,r[n++]=l>>>14&2047,r[n++]=(l>>>25|(u&15)<<7)&2047,r[n++]=u>>>4&2047,r[n++]=u>>>15&2047,r[n++]=(u>>>26|(h&31)<<6)&2047,r[n++]=h>>>5&2047,r[n++]=h>>>16&2047,r[n++]=(h>>>27|(c&63)<<5)&2047,r[n++]=c>>>6&2047,r[n++]=c>>>17&2047,r[n++]=(c>>>28|(p&127)<<4)&2047,r[n++]=p>>>7&2047,r[n++]=p>>>18&2047,r[n++]=(p>>>29|(f&255)<<3)&2047,r[n++]=f>>>8&2047,r[n++]=f>>>19&2047,r[n++]=(f>>>30|(d&511)<<2)&2047,r[n++]=d>>>9&2047,r[n++]=d>>>20&2047,r[n++]=(d>>>31|(y&1023)<<1)&2047,r[n++]=y>>>10&2047,r[n]=y>>>21&2047}function Nw(t,e,r,i){let n=i,a=t[e]>>>0,s=t[e+1]>>>0,o=t[e+2]>>>0,l=t[e+3]>>>0,u=t[e+4]>>>0,h=t[e+5]>>>0,c=t[e+6]>>>0,p=t[e+7]>>>0,f=t[e+8]>>>0,d=t[e+9]>>>0,y=t[e+10]>>>0,m=t[e+11]>>>0;r[n++]=a>>>0&4095,r[n++]=a>>>12&4095,r[n++]=(a>>>24|(s&15)<<8)&4095,r[n++]=s>>>4&4095,r[n++]=s>>>16&4095,r[n++]=(s>>>28|(o&255)<<4)&4095,r[n++]=o>>>8&4095,r[n++]=o>>>20&4095,r[n++]=l>>>0&4095,r[n++]=l>>>12&4095,r[n++]=(l>>>24|(u&15)<<8)&4095,r[n++]=u>>>4&4095,r[n++]=u>>>16&4095,r[n++]=(u>>>28|(h&255)<<4)&4095,r[n++]=h>>>8&4095,r[n++]=h>>>20&4095,r[n++]=c>>>0&4095,r[n++]=c>>>12&4095,r[n++]=(c>>>24|(p&15)<<8)&4095,r[n++]=p>>>4&4095,r[n++]=p>>>16&4095,r[n++]=(p>>>28|(f&255)<<4)&4095,r[n++]=f>>>8&4095,r[n++]=f>>>20&4095,r[n++]=d>>>0&4095,r[n++]=d>>>12&4095,r[n++]=(d>>>24|(y&15)<<8)&4095,r[n++]=y>>>4&4095,r[n++]=y>>>16&4095,r[n++]=(y>>>28|(m&255)<<4)&4095,r[n++]=m>>>8&4095,r[n]=m>>>20&4095}function Uw(t,e,r,i){let n=i,a=t[e]>>>0,s=t[e+1]>>>0,o=t[e+2]>>>0,l=t[e+3]>>>0,u=t[e+4]>>>0,h=t[e+5]>>>0,c=t[e+6]>>>0,p=t[e+7]>>>0,f=t[e+8]>>>0,d=t[e+9]>>>0,y=t[e+10]>>>0,m=t[e+11]>>>0,g=t[e+12]>>>0,x=t[e+13]>>>0,v=t[e+14]>>>0,b=t[e+15]>>>0;r[n++]=a>>>0&65535,r[n++]=a>>>16&65535,r[n++]=s>>>0&65535,r[n++]=s>>>16&65535,r[n++]=o>>>0&65535,r[n++]=o>>>16&65535,r[n++]=l>>>0&65535,r[n++]=l>>>16&65535,r[n++]=u>>>0&65535,r[n++]=u>>>16&65535,r[n++]=h>>>0&65535,r[n++]=h>>>16&65535,r[n++]=c>>>0&65535,r[n++]=c>>>16&65535,r[n++]=p>>>0&65535,r[n++]=p>>>16&65535,r[n++]=f>>>0&65535,r[n++]=f>>>16&65535,r[n++]=d>>>0&65535,r[n++]=d>>>16&65535,r[n++]=y>>>0&65535,r[n++]=y>>>16&65535,r[n++]=m>>>0&65535,r[n++]=m>>>16&65535,r[n++]=g>>>0&65535,r[n++]=g>>>16&65535,r[n++]=x>>>0&65535,r[n++]=x>>>16&65535,r[n++]=v>>>0&65535,r[n++]=v>>>16&65535,r[n++]=b>>>0&65535,r[n]=b>>>16&65535}function qw(t,e,r,i){let n=i,a=e;for(let s=0;s<8;s++){let o=t[a++]>>>0;r[n++]=o>>>0&1,r[n++]=o>>>1&1,r[n++]=o>>>2&1,r[n++]=o>>>3&1,r[n++]=o>>>4&1,r[n++]=o>>>5&1,r[n++]=o>>>6&1,r[n++]=o>>>7&1,r[n++]=o>>>8&1,r[n++]=o>>>9&1,r[n++]=o>>>10&1,r[n++]=o>>>11&1,r[n++]=o>>>12&1,r[n++]=o>>>13&1,r[n++]=o>>>14&1,r[n++]=o>>>15&1,r[n++]=o>>>16&1,r[n++]=o>>>17&1,r[n++]=o>>>18&1,r[n++]=o>>>19&1,r[n++]=o>>>20&1,r[n++]=o>>>21&1,r[n++]=o>>>22&1,r[n++]=o>>>23&1,r[n++]=o>>>24&1,r[n++]=o>>>25&1,r[n++]=o>>>26&1,r[n++]=o>>>27&1,r[n++]=o>>>28&1,r[n++]=o>>>29&1,r[n++]=o>>>30&1,r[n++]=o>>>31&1}}function jw(t,e,r,i){let n=i,a=e;for(let s=0;s<8;s++){let o=t[a++]>>>0,l=t[a++]>>>0;r[n++]=o>>>0&3,r[n++]=o>>>2&3,r[n++]=o>>>4&3,r[n++]=o>>>6&3,r[n++]=o>>>8&3,r[n++]=o>>>10&3,r[n++]=o>>>12&3,r[n++]=o>>>14&3,r[n++]=o>>>16&3,r[n++]=o>>>18&3,r[n++]=o>>>20&3,r[n++]=o>>>22&3,r[n++]=o>>>24&3,r[n++]=o>>>26&3,r[n++]=o>>>28&3,r[n++]=o>>>30&3,r[n++]=l>>>0&3,r[n++]=l>>>2&3,r[n++]=l>>>4&3,r[n++]=l>>>6&3,r[n++]=l>>>8&3,r[n++]=l>>>10&3,r[n++]=l>>>12&3,r[n++]=l>>>14&3,r[n++]=l>>>16&3,r[n++]=l>>>18&3,r[n++]=l>>>20&3,r[n++]=l>>>22&3,r[n++]=l>>>24&3,r[n++]=l>>>26&3,r[n++]=l>>>28&3,r[n++]=l>>>30&3}}function Gw(t,e,r,i){let n=i,a=e;for(let s=0;s<8;s++){let o=t[a++]>>>0,l=t[a++]>>>0,u=t[a++]>>>0;r[n++]=o>>>0&7,r[n++]=o>>>3&7,r[n++]=o>>>6&7,r[n++]=o>>>9&7,r[n++]=o>>>12&7,r[n++]=o>>>15&7,r[n++]=o>>>18&7,r[n++]=o>>>21&7,r[n++]=o>>>24&7,r[n++]=o>>>27&7,r[n++]=(o>>>30|(l&1)<<2)&7,r[n++]=l>>>1&7,r[n++]=l>>>4&7,r[n++]=l>>>7&7,r[n++]=l>>>10&7,r[n++]=l>>>13&7,r[n++]=l>>>16&7,r[n++]=l>>>19&7,r[n++]=l>>>22&7,r[n++]=l>>>25&7,r[n++]=l>>>28&7,r[n++]=(l>>>31|(u&3)<<1)&7,r[n++]=u>>>2&7,r[n++]=u>>>5&7,r[n++]=u>>>8&7,r[n++]=u>>>11&7,r[n++]=u>>>14&7,r[n++]=u>>>17&7,r[n++]=u>>>20&7,r[n++]=u>>>23&7,r[n++]=u>>>26&7,r[n++]=u>>>29&7}}function Xw(t,e,r,i){let n=i,a=e;for(let s=0;s<8;s++){let o=t[a++]>>>0,l=t[a++]>>>0,u=t[a++]>>>0,h=t[a++]>>>0;r[n++]=o>>>0&15,r[n++]=o>>>4&15,r[n++]=o>>>8&15,r[n++]=o>>>12&15,r[n++]=o>>>16&15,r[n++]=o>>>20&15,r[n++]=o>>>24&15,r[n++]=o>>>28&15,r[n++]=l>>>0&15,r[n++]=l>>>4&15,r[n++]=l>>>8&15,r[n++]=l>>>12&15,r[n++]=l>>>16&15,r[n++]=l>>>20&15,r[n++]=l>>>24&15,r[n++]=l>>>28&15,r[n++]=u>>>0&15,r[n++]=u>>>4&15,r[n++]=u>>>8&15,r[n++]=u>>>12&15,r[n++]=u>>>16&15,r[n++]=u>>>20&15,r[n++]=u>>>24&15,r[n++]=u>>>28&15,r[n++]=h>>>0&15,r[n++]=h>>>4&15,r[n++]=h>>>8&15,r[n++]=h>>>12&15,r[n++]=h>>>16&15,r[n++]=h>>>20&15,r[n++]=h>>>24&15,r[n++]=h>>>28&15}}function Yw(t,e,r,i){let n=i,a=e;for(let s=0;s<8;s++){let o=t[a++]>>>0,l=t[a++]>>>0,u=t[a++]>>>0,h=t[a++]>>>0,c=t[a++]>>>0;r[n++]=o>>>0&31,r[n++]=o>>>5&31,r[n++]=o>>>10&31,r[n++]=o>>>15&31,r[n++]=o>>>20&31,r[n++]=o>>>25&31,r[n++]=(o>>>30|(l&7)<<2)&31,r[n++]=l>>>3&31,r[n++]=l>>>8&31,r[n++]=l>>>13&31,r[n++]=l>>>18&31,r[n++]=l>>>23&31,r[n++]=(l>>>28|(u&1)<<4)&31,r[n++]=u>>>1&31,r[n++]=u>>>6&31,r[n++]=u>>>11&31,r[n++]=u>>>16&31,r[n++]=u>>>21&31,r[n++]=u>>>26&31,r[n++]=(u>>>31|(h&15)<<1)&31,r[n++]=h>>>4&31,r[n++]=h>>>9&31,r[n++]=h>>>14&31,r[n++]=h>>>19&31,r[n++]=h>>>24&31,r[n++]=(h>>>29|(c&3)<<3)&31,r[n++]=c>>>2&31,r[n++]=c>>>7&31,r[n++]=c>>>12&31,r[n++]=c>>>17&31,r[n++]=c>>>22&31,r[n++]=c>>>27&31}}function Ww(t,e,r,i){let n=i,a=e;for(let s=0;s<8;s++){let o=t[a++]>>>0,l=t[a++]>>>0,u=t[a++]>>>0,h=t[a++]>>>0,c=t[a++]>>>0,p=t[a++]>>>0;r[n++]=o>>>0&63,r[n++]=o>>>6&63,r[n++]=o>>>12&63,r[n++]=o>>>18&63,r[n++]=o>>>24&63,r[n++]=(o>>>30|(l&15)<<2)&63,r[n++]=l>>>4&63,r[n++]=l>>>10&63,r[n++]=l>>>16&63,r[n++]=l>>>22&63,r[n++]=(l>>>28|(u&3)<<4)&63,r[n++]=u>>>2&63,r[n++]=u>>>8&63,r[n++]=u>>>14&63,r[n++]=u>>>20&63,r[n++]=u>>>26&63,r[n++]=h>>>0&63,r[n++]=h>>>6&63,r[n++]=h>>>12&63,r[n++]=h>>>18&63,r[n++]=h>>>24&63,r[n++]=(h>>>30|(c&15)<<2)&63,r[n++]=c>>>4&63,r[n++]=c>>>10&63,r[n++]=c>>>16&63,r[n++]=c>>>22&63,r[n++]=(c>>>28|(p&3)<<4)&63,r[n++]=p>>>2&63,r[n++]=p>>>8&63,r[n++]=p>>>14&63,r[n++]=p>>>20&63,r[n++]=p>>>26&63}}function Zw(t,e,r,i){let n=i,a=e;for(let s=0;s<8;s++){let o=t[a++]>>>0,l=t[a++]>>>0,u=t[a++]>>>0,h=t[a++]>>>0,c=t[a++]>>>0,p=t[a++]>>>0,f=t[a++]>>>0;r[n++]=o>>>0&127,r[n++]=o>>>7&127,r[n++]=o>>>14&127,r[n++]=o>>>21&127,r[n++]=(o>>>28|(l&7)<<4)&127,r[n++]=l>>>3&127,r[n++]=l>>>10&127,r[n++]=l>>>17&127,r[n++]=l>>>24&127,r[n++]=(l>>>31|(u&63)<<1)&127,r[n++]=u>>>6&127,r[n++]=u>>>13&127,r[n++]=u>>>20&127,r[n++]=(u>>>27|(h&3)<<5)&127,r[n++]=h>>>2&127,r[n++]=h>>>9&127,r[n++]=h>>>16&127,r[n++]=h>>>23&127,r[n++]=(h>>>30|(c&31)<<2)&127,r[n++]=c>>>5&127,r[n++]=c>>>12&127,r[n++]=c>>>19&127,r[n++]=(c>>>26|(p&1)<<6)&127,r[n++]=p>>>1&127,r[n++]=p>>>8&127,r[n++]=p>>>15&127,r[n++]=p>>>22&127,r[n++]=(p>>>29|(f&15)<<3)&127,r[n++]=f>>>4&127,r[n++]=f>>>11&127,r[n++]=f>>>18&127,r[n++]=f>>>25&127}}function Hw(t,e,r,i){let n=i,a=e;for(let s=0;s<8;s++){let o=t[a++]>>>0,l=t[a++]>>>0,u=t[a++]>>>0,h=t[a++]>>>0,c=t[a++]>>>0,p=t[a++]>>>0,f=t[a++]>>>0,d=t[a++]>>>0;r[n++]=o>>>0&255,r[n++]=o>>>8&255,r[n++]=o>>>16&255,r[n++]=o>>>24&255,r[n++]=l>>>0&255,r[n++]=l>>>8&255,r[n++]=l>>>16&255,r[n++]=l>>>24&255,r[n++]=u>>>0&255,r[n++]=u>>>8&255,r[n++]=u>>>16&255,r[n++]=u>>>24&255,r[n++]=h>>>0&255,r[n++]=h>>>8&255,r[n++]=h>>>16&255,r[n++]=h>>>24&255,r[n++]=c>>>0&255,r[n++]=c>>>8&255,r[n++]=c>>>16&255,r[n++]=c>>>24&255,r[n++]=p>>>0&255,r[n++]=p>>>8&255,r[n++]=p>>>16&255,r[n++]=p>>>24&255,r[n++]=f>>>0&255,r[n++]=f>>>8&255,r[n++]=f>>>16&255,r[n++]=f>>>24&255,r[n++]=d>>>0&255,r[n++]=d>>>8&255,r[n++]=d>>>16&255,r[n++]=d>>>24&255}}function Kw(t,e,r,i){let n=i,a=e;for(let s=0;s<128;s++){let o=t[a++]>>>0;r[n++]=o&65535,r[n++]=o>>>16&65535}}function Jw(t,e,r,i,n){let a=pl[n]>>>0,s=e,o=0,l=t[s]>>>0,u=i;for(let h=0;h<8;h++){for(let c=0;c<32;c++)if(o+n<=32){let p=l>>>o&a;r[u+c]=p|0,o+=n,o===32&&(o=0,s++,c!==31&&(l=t[s]>>>0))}else{let p=32-o,f=l>>>o;s++,l=t[s]>>>0;let d=n-p,y=-1>>>32-d>>>0,m=(f|(l&y)<>>0)}}var fl=Py(bu),Qw=3*fl/256+fl|0;function zy(){let t=new Uint8Array(Qw);return{dataToBePacked:Array(33),dataPointers:new Int32Array(33),byteContainer:t,byteContainerI32:new Int32Array(t.buffer,t.byteOffset,t.byteLength>>>2),exceptionSizes:new Int32Array(33)}}function t3(t=16){if(t<0)throw RangeError(`initialEncodedWordCapacity must be >= 0, got ${t}`);let e=Math.max(16,t|0);return{encodedWords:new Uint32Array(e),decoderWorkspace:zy()}}function e3(t,e){if(e<=t.encodedWords.length)return t.encodedWords;let r=new Uint32Array(Math.max(16,e*2));return t.encodedWords=r,r}function r3(t,e,r,i){i.byteContainer.length>>2;if(n.byteOffset&3)for(let o=0;o>>8&255,n[u+2|0]=l>>>16&255,n[u+3|0]=l>>>24&255}else{let o=i.byteContainerI32;(!o||o.buffer!==n.buffer||o.byteOffset!==n.byteOffset||o.length>>2)),o.set(t.subarray(e,e+a))}let s=r&3;if(s>0){let o=t[e+a|0]|0,l=a<<2;for(let u=0;u>>(u<<3)&255}return n}function i3(t,e,r){let i=t[e++]|0,n=r.dataToBePacked;for(let a=2;a<=32;a=a+1|0){if(!(i>>>a-1&1))continue;if(e>=t.length)throw Error(`FastPFOR decode: truncated exception stream header (bitWidth=${a}, streamWordIndex=${e}, needWords=1, availableWords=${t.length-e}, encodedWords=${t.length})`);let s=t[e++]>>>0,o=kw(s),l=s*a+31>>>5;if(e+l>t.length)throw Error(`FastPFOR decode: truncated exception stream (bitWidth=${a}, size=${s}, streamWordIndex=${e}, needWords=${l}, availableWords=${t.length-e}, encodedWords=${t.length})`);let u=n[a];(!u||u.length>>5)|0,r.exceptionSizes[a]=s}return e}function n3(t,e,r,i,n){switch(n){case 1:qw(t,e,r,i);break;case 2:jw(t,e,r,i);break;case 3:Gw(t,e,r,i);break;case 4:Xw(t,e,r,i);break;case 5:Yw(t,e,r,i);break;case 6:Ww(t,e,r,i);break;case 7:Zw(t,e,r,i);break;case 8:Hw(t,e,r,i);break;case 16:Kw(t,e,r,i);break;default:Jw(t,e,r,i,n)}return e+(n<<3)|0}function a3(t,e,r,i){if(r+2>e)throw Error(`FastPFOR decode: byteContainer underflow at block=${i} (need 2 bytes for [bitWidth, exceptionCount], bytePos=${r}, byteSize=${e})`);let n=t[r++],a=t[r++];if(n>32)throw Error(`FastPFOR decode: invalid bitWidth=${n} at block=${i} (expected 0..32). This likely indicates corrupted or truncated input.`);return{bitWidth:n,exceptionCount:a,bytePosIn:r}}function s3(t,e,r,i,n,a){if(r+1>e)throw Error(`FastPFOR decode: exception header underflow at block=${a} (need 1 byte for maxBits, bytePos=${r}, byteSize=${e})`);let s=t[r++];if(s32)throw Error(`FastPFOR decode: invalid maxBits=${s} at block=${a} (bitWidth=${i}, expected ${i}..32)`);let o=s-i|0;if(o<1||o>32)throw Error(`FastPFOR decode: invalid exceptionBitWidth=${o} at block=${a} (bitWidth=${i}, maxBits=${s})`);if(r+n>e)throw Error(`FastPFOR decode: exception positions underflow at block=${a} (need=${n}, have=${e-r})`);return{maxBits:s,exceptionBitWidth:o,bytePosIn:r}}function o3(t,e,r,i,n,a,s,o,l){let{maxBits:u,exceptionBitWidth:h,bytePosIn:c}=s3(n,a,s,r,i,l);if(s=c,h===1){let m=1<y)throw Error(`FastPFOR decode: exception stream overflow for exceptionBitWidth=${h} (ptr=${d}, need ${i}, size=${y}) at block ${l}`);for(let m=0;m0&&(c=o3(n,m,d,y,o,l,c,u,p))}if(h!==i)throw Error(`FastPFOR decode: packed region mismatch (pageStart=${e}, packedStart=${r}, consumedPackedEnd=${h}, expectedPackedEnd=${i}, packedWords=${i-r}, encoded.length=${t.length})`)}function u3(t,e,r,i,n,a){let s=r|0,o=t[s]|0;if(o<=0||s+o>t.length-1)throw Error(`FastPFOR decode: invalid whereMeta=${o} at pageStart=${s} (expected > 0 and pageStart+whereMeta < encoded.length=${t.length})`);let l=s+1|0,u=s+o|0,h=t[u]>>>0,c=h+3>>>2,p=u+1,f=p+c;if(f>=t.length)throw Error(`FastPFOR decode: invalid byteSize=${h} (metaInts=${c}, pageStart=${s}, packedEnd=${u}, byteContainerStart=${p}) causes bitmapPos=${f} out of bounds (encoded.length=${t.length})`);let d=r3(t,p,h,a),y=h,m=i3(t,f,a);return a.dataPointers.fill(0),l3(t,s,l,u,e,i|0,n/256|0,d,y,a),m}function h3(t,e,r,i,n,a){let s=i+wu(n,256),o=i,l=r;for(;o!==s;){let u=Math.min(fl,s-o);l=u3(t,e,l,o,u,a),o=o+u|0}return l}function c3(t,e,r,i,n,a){if(a===0)return e;let s=0,o=e,l=e+r,u=n,h=n,c=n+a,p=0,f=0;for(;o>>s&255;if(s+=8,o+=s>>>5,s&=31,p|=(d&127)<28)throw Error(`FastPFOR VByte: unterminated value (expected MSB=1 terminator within 5 bytes; shift=${f}, partial=${p}, decoded=${h-u}/${a}, inPos=${o}, inEnd=${l})`)}if(h!==c)throw Error(`FastPFOR VByte: truncated stream (decoded=${h-u}, expected=${a}, consumedWords=${o-e}/${r}, vbyteStart=${e}, vbyteEnd=${l})`);return o}function p3(t,e,r){let i=0,n=0,a=new Uint32Array(e),s=r!=null?r:zy();if(t.length>0){let u=t[i]|0;if(i=i+1|0,u&255)throw Error(`FastPFOR decode: invalid alignedLength=${u} (expected multiple of 256)`);if(n+u>a.length)throw Error(`FastPFOR decode: output buffer too small (outPos=${n}, alignedLength=${u}, out.length=${a.length})`);i=h3(t,a,i,n,u,s),n=n+u|0}let o=t.length-i|0,l=e-n|0;return c3(t,i,o,a,n,l),a}function f3(t,e,r,i,n){switch(n){case 2:Cw(t,e,r,i);return;case 3:Mw(t,e,r,i);return;case 4:Bw(t,e,r,i);return;case 5:Pw(t,e,r,i);return;case 6:zw(t,e,r,i);return;case 7:Lw(t,e,r,i);return;case 8:Vw(t,e,r,i);return;case 9:Ow(t,e,r,i);return;case 10:Rw(t,e,r,i);return;case 11:$w(t,e,r,i);return;case 12:Nw(t,e,r,i);return;case 16:Uw(t,e,r,i);return;case 32:for(let u=0;u<32;u=u+1|0)r[i+u|0]=t[e+u|0]|0;return}let a=pl[n]>>>0,s=e,o=0,l=t[s]>>>0;for(let u=0;u<32;u++)if(o+n<=32){let h=l>>>o&a;r[i+u]=h|0,o+=n,o===32&&(o=0,s++,u!==31&&(l=t[s]>>>0))}else{let h=32-o,c=l>>>o;s++,l=t[s]>>>0;let p=pl[n-h]>>>0,f=(c|(l&p)<t.length)throw RangeError(`decodeBigEndianInt32sInto: out of bounds (offset=${e}, byteLength=${r}, bytes.length=${t.length})`);let n=Math.floor(r/4),a=r%4!=0,s=a?n+1:n;if(i.length0){let o=t.byteOffset+e;if(o&3)for(let l=0;l=64)throw Error("Varint too long")}return e.set(n),r}function m3(t,e,r){let i=new Float64Array(r);for(let n=0;n>4,n<128||(n=e[r.get()],r.increment(),i|=(n&127)<<3,n<128)||(n=e[r.get()],r.increment(),i|=(n&127)<<10,n<128)||(n=e[r.get()],r.increment(),i|=(n&127)<<17,n<128)||(n=e[r.get()],r.increment(),i|=(n&127)<<24,n<128)||(n=e[r.get()],r.increment(),i|=(n&1)<<31,n<128))return i*4294967296+(t>>>0);throw Error("Expected varint not more than 10 bytes")}function v3(t,e,r,i){return b3(t,e,r,i,t3(r>>>2))}function b3(t,e,r,i,n){let a=i.get();if(r&3)throw Error(`FastPFOR: invalid encodedByteLength=${r} at offset=${a} (encodedBytes.length=${t.length}; expected a multiple of 4 bytes for an int32 big-endian word stream)`);let s=r>>>2,o=e3(n,s);d3(t,a,r,o);let l=p3(o.subarray(0,s),e,n.decoderWorkspace);return i.add(r),l}function tt(t){return t>>>1^-(t&1)}function Ot(t){return t>>BigInt(1)^-(t&BigInt(1))}function He(t){return t%2==1?(t+1)/-2:t/2}function w3(t){let e=new Int32Array(t.length);for(let r=0;r=4)for(;i=4)for(;i=4)for(;r=4)for(let i=t[0];r=4)for(;i=4)for(;l>>0;for(let r=1;r>>0;return e}function hp(t){let e=new BigUint64Array(t.length);e[0]=BigInt.asUintN(64,Ot(t[0]));for(let r=1;r>>0,e[1]=tt(t[1])>>>0;for(let r=2;r>>0,e[r+1]=e[r-1]+tt(t[r+1])>>>0;return e}function L3(t,e,r,i){let n=Vy(t,e,r,i);return new Uint32Array(n)}function V3(t){return t[1]}function O3(t){return tt(t[1])}function R3(t){if(t.length===2){let e=tt(t[1]);return[e,e]}return[tt(t[2]),tt(t[3])]}function $3(t){return t[1]}function N3(t){return Ot(t[1])}function U3(t){if(t.length===2){let e=Ot(t[1]);return[e,e]}return[Ot(t[2]),Ot(t[3])]}var At;(function(t){t.PRESENT="PRESENT",t.DATA="DATA",t.OFFSET="OFFSET",t.LENGTH="LENGTH"})(At||(At={}));var qt;(function(t){t.NONE="NONE",t.SINGLE="SINGLE",t.SHARED="SHARED",t.VERTEX="VERTEX",t.MORTON="MORTON",t.FSST="FSST"})(qt||(qt={}));var be;(function(t){t.VERTEX="VERTEX",t.INDEX="INDEX",t.STRING="STRING",t.KEY="KEY"})(be||(be={}));var Ft;(function(t){t.VAR_BINARY="VAR_BINARY",t.GEOMETRIES="GEOMETRIES",t.PARTS="PARTS",t.RINGS="RINGS",t.TRIANGLES="TRIANGLES",t.SYMBOL="SYMBOL",t.DICTIONARY="DICTIONARY"})(Ft||(Ft={}));var q3=[At.PRESENT,At.DATA,At.OFFSET,At.LENGTH],cp=[Z.NONE,Z.DELTA,Z.COMPONENTWISE_DELTA,Z.RLE,Z.MORTON],j3=[re.NONE,re.FAST_PFOR,re.VARINT],G3=[qt.NONE,qt.SINGLE,qt.SHARED,qt.VERTEX,qt.MORTON,qt.FSST],X3=[be.VERTEX,be.INDEX,be.STRING,be.KEY],Y3=[Ft.VAR_BINARY,Ft.GEOMETRIES,Ft.PARTS,Ft.RINGS,Ft.TRIANGLES,Ft.SYMBOL,Ft.DICTIONARY];function ht(t,e){let r=H3(t,e);return r.logicalLevelTechnique1===Z.MORTON?W3(r,t,e):(Z.RLE===r.logicalLevelTechnique1||Z.RLE===r.logicalLevelTechnique2)&&re.NONE!==r.physicalLevelTechnique?Z3(r,t,e):r}function W3(t,e,r){let i=Rt(e,r,2);return{physicalStreamType:t.physicalStreamType,logicalStreamType:t.logicalStreamType,logicalLevelTechnique1:t.logicalLevelTechnique1,logicalLevelTechnique2:t.logicalLevelTechnique2,physicalLevelTechnique:t.physicalLevelTechnique,numValues:t.numValues,byteLength:t.byteLength,decompressedCount:t.decompressedCount,numBits:i[0],coordinateShift:i[1]}}function Z3(t,e,r){let i=Rt(e,r,2);return{physicalStreamType:t.physicalStreamType,logicalStreamType:t.logicalStreamType,logicalLevelTechnique1:t.logicalLevelTechnique1,logicalLevelTechnique2:t.logicalLevelTechnique2,physicalLevelTechnique:t.physicalLevelTechnique,numValues:t.numValues,byteLength:t.byteLength,decompressedCount:i[1],runs:i[0],numRleValues:i[1]}}function H3(t,e){let r=t[e.get()],i=q3[r>>4],n={};switch(i){case At.DATA:n={dictionaryType:G3[r&15]};break;case At.OFFSET:n={offsetType:X3[r&15]};break;case At.LENGTH:n={lengthType:Y3[r&15]}}e.increment();let a=t[e.get()],s=cp[a>>5],o=cp[a>>2&7],l=j3[a&3];e.increment();let u=Rt(t,e,2),h=u[0],c=u[1];return{physicalStreamType:i,logicalStreamType:n,logicalLevelTechnique1:s,logicalLevelTechnique2:o,physicalLevelTechnique:l,numValues:h,byteLength:c,decompressedCount:h}}var ut;(function(t){t[t.FLAT=0]="FLAT",t[t.CONST=1]="CONST",t[t.SEQUENCE=2]="SEQUENCE",t[t.DICTIONARY=3]="DICTIONARY",t[t.FSST_DICTIONARY=4]="FSST_DICTIONARY"})(ut||(ut={}));var de=class{constructor(t,e){this.values=t,this._size=e}get(t){let e=Math.floor(t/8),r=t%8;return(this.values[e]>>r&1)==1}set(t,e){let r=Math.floor(t/8),i=t%8;this.values[r]=this.values[r]|+!!e<>r&1}size(){return this._size}getBuffer(){return this.values}};function kr(t,e,r){if(!e)return t;let i=e.size(),n=t.constructor,a=new n(i),s=0;for(let o=0;o=s);){let o=t[i.increment()];if(o<=127){let l=o+3,u=t[i.increment()],h=Math.min(a+l,e);n.fill(u,a,h),a=h}else{let l=256-o;for(let u=0;u=12?e6.decode(t.subarray(e,r)):r6(t,e,r)}function r6(t,e,r){let i="",n=e;for(;n239?4:a>223?3:a>191?2:1;if(n+o>r)break;let l,u,h;o===1?a<128&&(s=a):o===2?(l=t[n+1],(l&192)==128&&(s=(a&31)<<6|l&63,s<=127&&(s=null))):o===3?(l=t[n+1],u=t[n+2],(l&192)==128&&(u&192)==128&&(s=(a&15)<<12|(l&63)<<6|u&63,(s<=2047||s>=55296&&s<=57343)&&(s=null))):o===4&&(l=t[n+1],u=t[n+2],h=t[n+3],(l&192)==128&&(u&192)==128&&(h&192)==128&&(s=(a&15)<<18|(l&63)<<12|(u&63)<<6|h&63,(s<=65535||s>=1114112)&&(s=null))),s===null?(s=65533,o=1):s>65535&&(s-=65536,i+=String.fromCharCode(s>>>10&1023|55296),s=56320|s&1023),i+=String.fromCharCode(s),n+=o}return i}function Ma(t,e,r,i,n){return o6(pi(t,e,r),r,i,n)}function Vt(t,e,r,i,n){return l6(pi(t,e,r),r,i,n)}function Ke(t,e,r){return h6(pi(t,e,r),r)}function pi(t,e,r){let i=r.physicalLevelTechnique;switch(i){case re.FAST_PFOR:return v3(t,r.numValues,r.byteLength,e);case re.VARINT:return Rt(t,e,r.numValues);case re.NONE:return Q3(t,e,r.numValues);default:throw Error(`Specified physicalLevelTechnique ${i} is not supported (yet).`)}}function Tn(t,e,r){let i=r.physicalLevelTechnique;switch(i){case re.VARINT:return Du(t,e,r.numValues);case re.NONE:return t6(t,e,r.numValues);default:throw Error(`Specified physicalLevelTechnique ${i} is not supported (yet).`)}}function i6(t,e,r){let i=pi(t,e,r);return i.length===1?tt(i[0]):O3(i)}function Su(t,e,r){let i=pi(t,e,r);return i.length===1?r.logicalLevelTechnique1===Z.DELTA?tt(i[0]):i[0]:V3(i)}function Ny(t,e,r){return R3(pi(t,e,r))}function Uy(t,e,r){return U3(Du(t,e,r.numValues))}function qy(t,e,r,i){return Gy(Tn(t,e,r),r,i)}function Eu(t,e,r,i){return Xy(Tn(t,e,r),r,i)}function n6(t,e,r,i){let n=a6(t,e,r,!1);return i?kr(n,i,0):n}function a6(t,e,r,i){if(r.physicalLevelTechnique===re.VARINT)return u6(m3(t,e,r.numValues),r,i);let n=Tn(t,e,r),a=i?Gy(n,r):Xy(n,r);return Float64Array.from(a,Number)}function s6(t,e,r){let i=Tn(t,e,r);return i.length===1?Ot(i[0]):N3(i)}function jy(t,e,r){let i=Tn(t,e,r);return i.length===1?r.logicalLevelTechnique1===Z.DELTA?Ot(i[0]):i[0]:$3(i)}function o6(t,e,r,i){let n;switch(e.logicalLevelTechnique1){case Z.DELTA:if(e.logicalLevelTechnique2===Z.RLE){let a=e;if(!i)return B3(t,a.runs,a.numRleValues);t=dl(t,a.runs,a.numRleValues),n=op(t)}else n=op(t);break;case Z.RLE:n=S3(t,e.runs,e.numRleValues);break;case Z.MORTON:_u(t),n=new Int32Array(t);break;case Z.COMPONENTWISE_DELTA:if(r&&!i)return Vy(t,r.scale,r.min,r.max);n=k3(t);break;case Z.NONE:n=w3(t);break;default:throw Error(`The specified Logical level technique is not supported: ${e.logicalLevelTechnique1}`)}return i?kr(n,i,0):n}function l6(t,e,r,i){let n;switch(e.logicalLevelTechnique1){case Z.DELTA:if(e.logicalLevelTechnique2===Z.RLE){let a=e;n=up(dl(t,a.runs,a.numRleValues))}else n=up(t);break;case Z.RLE:n=dl(t,e.runs,e.numRleValues);break;case Z.MORTON:_u(t),n=t;break;case Z.COMPONENTWISE_DELTA:n=r&&!i?L3(t,r.scale,r.min,r.max):z3(t);break;case Z.NONE:n=t;break;default:throw Error(`The specified Logical level technique is not supported: ${e.logicalLevelTechnique1}`)}return i?kr(n,i,0):n}function Gy(t,e,r){let i;switch(e.logicalLevelTechnique1){case Z.DELTA:if(e.logicalLevelTechnique2===Z.RLE){let n=e;if(!r)return P3(t,n.runs,n.numRleValues);t=yl(t,n.runs,n.numRleValues),i=lp(t)}else i=lp(t);break;case Z.RLE:i=E3(t,e.runs,e.numRleValues);break;case Z.NONE:i=D3(t);break;default:throw Error(`The specified Logical level technique is not supported: ${e.logicalLevelTechnique1}`)}return r?kr(i,r,BigInt(0)):i}function Xy(t,e,r){let i;switch(e.logicalLevelTechnique1){case Z.DELTA:if(e.logicalLevelTechnique2===Z.RLE){let n=e;i=hp(yl(t,n.runs,n.numRleValues))}else i=hp(t);break;case Z.RLE:i=yl(t,e.runs,e.numRleValues);break;case Z.NONE:i=t;break;default:throw Error(`The specified Logical level technique is not supported: ${e.logicalLevelTechnique1}`)}return r?kr(i,r,BigInt(0)):i}function u6(t,e,r){switch(e.logicalLevelTechnique1){case Z.DELTA:if(e.logicalLevelTechnique2===Z.RLE){let i=e;t=Ly(t,i.runs,i.numRleValues)}return A3(t),t;case Z.RLE:return p6(t,e,r);case Z.NONE:return r&&_3(t),t;default:throw Error(`The specified Logical level technique is not supported: ${e.logicalLevelTechnique1}`)}}function h6(t,e){if(e.logicalLevelTechnique1===Z.DELTA&&e.logicalLevelTechnique2===Z.NONE)return I3(t);if(e.logicalLevelTechnique1===Z.RLE&&e.logicalLevelTechnique2===Z.NONE){let r=e;return M3(t,r.runs,r.numRleValues)}if(e.logicalLevelTechnique1===Z.NONE&&e.logicalLevelTechnique2===Z.NONE){T3(t);let r=new Uint32Array(e.numValues+1);return r[0]=0,r.set(t,1),r}if(e.logicalLevelTechnique1===Z.DELTA&&e.logicalLevelTechnique2===Z.RLE){let r=e,i=C3(t,r.runs,r.numRleValues);return _u(i),new Uint32Array(i)}throw Error("Only delta encoding is supported for transforming length to offset streams yet.")}function rs(t,e,r,i,n="int32"){let a=t.logicalLevelTechnique1;if(a===Z.RLE)return t.runs===1?ut.CONST:ut.FLAT;if(a!==Z.DELTA||t.logicalLevelTechnique2!==Z.RLE)return t.numValues===1?ut.CONST:ut.FLAT;let s=e instanceof de?e.size():e,o=t;if(o.numRleValues!==s)return ut.FLAT;if(o.runs===1)return ut.SEQUENCE;if(o.runs!==2)return t.numValues===1?ut.CONST:ut.FLAT;let l=i.get();if(t.physicalLevelTechnique===re.VARINT)return c6(r,i,n)?ut.SEQUENCE:t.numValues===1?ut.CONST:ut.FLAT;let u=i.get(),h=new Int32Array(r.buffer,r.byteOffset+u,4);return i.set(l),h[2]===2&&h[3]===2?ut.SEQUENCE:t.numValues===1?ut.CONST:ut.FLAT}function c6(t,e,r){let i=new By(e.get());if(r==="int64"){let a=Du(t,i,4);return a[2]===BigInt(2)&&a[3]===BigInt(2)}let n=Rt(t,i,4);return n[2]===2&&n[3]===2}function p6(t,e,r){return r?F3(t,e.runs,e.numRleValues):Ly(t,e.runs,e.numRleValues)}var Yy=class extends es{getValueFromBuffer(t){return this.dataBuffer[t]}},Wy=class extends Cy{constructor(t,e,r,i,n){super(t,n?BigInt64Array.of(e):BigUint64Array.of(e),r,i)}getValueFromBuffer(t){return this.dataBuffer[0]+BigInt(t)*this.delta}};function Fu(t,e,r){return{x:pp(t,e)-r,y:pp(t>>1,e)-r}}function pp(t,e){let r=0;for(let i=0;i>i;return r}var Pt;(function(t){t[t.POINT=0]="POINT",t[t.LINESTRING=1]="LINESTRING",t[t.POLYGON=2]="POLYGON",t[t.MULTIPOINT=3]="MULTIPOINT",t[t.MULTILINESTRING=4]="MULTILINESTRING",t[t.MULTIPOLYGON=5]="MULTIPOLYGON"})(Pt||(Pt={}));var fp;(function(t){t[t.POINT=0]="POINT",t[t.LINESTRING=1]="LINESTRING",t[t.POLYGON=2]="POLYGON"})(fp||(fp={}));var nr;(function(t){t[t.MORTON=0]="MORTON",t[t.VEC_2=1]="VEC_2",t[t.VEC_3=2]="VEC_3"})(nr||(nr={}));function f6(t){let e=Array(t.numGeometries),r=1,i=1,n=1,a=0,s=0,o=0,l=t.mortonSettings,u=t.topologyVector,h=u.geometryOffsets,c=u.partOffsets,p=u.ringOffsets,f=t.vertexOffsets,d=!f||f.length===0,y=t.containsPolygonGeometry(),m=t.vertexBuffer;for(let g=0;g[w]),r+=v,i+=v}break;case Pt.LINESTRING:{let v;y?(v=p[i]-p[i-1],i++):v=c[r]-c[r-1],r++;let b;d?(b=Or(m,s,v,!1),s+=v*2):(b=pr(t.vertexBufferType,m,f,o,v,!1,l),o+=v),e[a++]=[b],h&&n++}break;case Pt.POLYGON:{let v=c[r]-c[r-1];r++;let b=Array(v-1),w,_=p[i]-p[i-1];if(i++,d){w=Or(m,s,_,!0),s+=_*2;for(let A=0;Ar?e[a++]:1);return i}function mp(t,e,r,i){let n=new Uint32Array(e[e.length-1]+1),a=0;n[0]=a;let s=1,o=0;for(let l=0;l0;)n[a++]=t[u++]}}return n}var e1=class extends Tu{constructor(t,e,r,i,n,a,s,o){super(t,r,i,s!=null?s:e.length),this.indexBuffer=e,this.symbolOffsetBuffer=n,this.symbolTableBuffer=a,this.sharedDictionaryCache=o}getValueFromBuffer(t){var n,a,s;(s=this.decodedDictionary)!=null||(this.decodedDictionary=(n=this.sharedDictionaryCache)==null?void 0:n.decodedDictionary,(a=this.decodedDictionary)!=null||(this.decodedDictionary=this.decodeDictionary(),this.sharedDictionaryCache&&(this.sharedDictionaryCache.decodedDictionary=this.decodedDictionary)));let e=this.indexBuffer[t],r=this.offsetBuffer[e],i=this.offsetBuffer[e+1];return Au(this.decodedDictionary,r,i)}decodeDictionary(){var t;return(t=this.symbolLengthBuffer)!=null||(this.symbolLengthBuffer=this.offsetToLengthBuffer(this.symbolOffsetBuffer)),F6(this.symbolTableBuffer,this.symbolLengthBuffer,this.dataBuffer)}offsetToLengthBuffer(t){let e=new Uint32Array(t.length-1),r=t[0];for(let i=1;i1&&!f.nullable||d===1&&f.nullable)throw Error(`The number of streams for the child field ${f.name} does not match its nullability. nullibilty: ${f.nullable}, numStreams: ${d}`);let m;if(f.nullable){let x=ht(t,e);m=new de(ci(t,x.numValues,x.byteLength,e),x.numValues)}let g=Vt(t,e,ht(t,e),void 0,m);if(o){if(!s)throw Error(`Incomplete shared FSST dictionary for column "${y}"`);h[p++]=new e1(y,g,n,a,s,o,m,c)}else h[p++]=new Qr(y,g,n,a,m)}return h}var xp=class extends Tr{constructor(t,e,r){super(t,new Uint8Array,r!=null?r:e.length),this.values=e}getValueFromBuffer(t){return this.values[t]}},we;(function(t){t[t.STRING=1]="STRING",t[t.INT32=2]="INT32",t[t.UINT32=4]="UINT32",t[t.INT64=8]="INT64",t[t.UINT64=16]="UINT64",t[t.FLOAT=32]="FLOAT",t[t.DOUBLE=64]="DOUBLE",t[t.PRESENCE=128]="PRESENCE"})(we||(we={}));var tr;(function(t){t[t.FALSE=0]="FALSE",t[t.TRUE=1]="TRUE",t[t.START_MAP=2]="START_MAP",t[t.START_LIST=3]="START_LIST",t[t.COUNT=4]="COUNT"})(tr||(tr={}));function M6(t,e,r,i){let n=B6(r);if(i===0)return n.map(h=>new xp(h,[]));let a=P6(t,e,i),s=(a.presentStream?a.presentCount:a.lengthStream.length)/n.length,o=[],l=0,u=0;for(let h=0;h{var i;return t.name+((i=r.name)!=null?i:"")})}function P6(t,e,r){let i=t[e.get()];e.add(1);let n=Vt(t,e,ht(t,e)),a=r-1,s=[];i&we.STRING&&(a-=z6(t,e,s)),a-=L6(t,e,i,s),a-=V6(t,e,i,s);let o,l=0;if(i&we.PRESENCE){let h=O6(t,e);o=h.value,l=h.count,a--}let u=new Uint32Array;if(a>0&&(u=Vt(t,e,ht(t,e)),a--),a!==0)throw Error(`Unexpected number of remaining streams while decoding map column: ${a}`);return{lengthStream:n,dictionary:s,presentStream:o,presentCount:l,flattenedValues:u}}function z6(t,e,r){let i=t[e.get()];e.add(1);let n=r1("",t,e,i);if(n)for(let a=0;aa.length)throw Error("Merged map counts underflow while decoding child streams");let f=Array(r),d=i,y=n;for(let x=0;xs.length)throw Error("Map value stream underflow while decoding feature payload");let b=$6(s,y,v,l);f[x]=b.value,y=b.nextIndex}let m=0;for(let x=i;x=r)throw Error("Unexpected end of map value stream");let n=t[e];if(n===tr.FALSE)return{value:!1,nextIndex:e+1};if(n===tr.TRUE)return{value:!0,nextIndex:e+1};if(n===tr.START_MAP){let a=vp(t,e,r);return{value:i1(t,e+2,a,i).value,nextIndex:a}}if(n===tr.START_LIST){let a=vp(t,e,r),s=[],o=e+2;for(;o=r)throw Error("Missing length for nested map/list payload");let i=t[e+1];if(i<2)throw Error(`Invalid nested payload length: ${i}`);let n=e+i;if(n>r)throw Error("Nested payload exceeds containing payload bounds");return n}function n1(t,e){let r=t-tr.COUNT;if(r<0||r>=e.length)throw Error(`Scalar dictionary index out of range: ${t}`);return e[r]}function Xr(t,e){for(let r of e)t.push(r)}function N6(t,e,r,i,n,a){var s;return r.type==="scalarType"?a&&!a.has(r.name)?(Oy(i,t,e),null):U6(i,t,e,n,r.scalarType,r):((s=r.complexType)==null?void 0:s.physicalType)===rr.MAP?M6(t,e,r,i):i===0?null:C6(t,e,r,a)}function U6(t,e,r,i,n,a){var l;let s;if(t===0)return null;if(a.nullable){let u=ht(e,r),h=u.numValues,c=r.get(),p=ci(e,h,u.byteLength,r);r.set(c+u.byteLength),s=new de(p,u.numValues)}let o=s!=null?s:i;switch(n.physicalType){case rt.UINT_32:case rt.INT_32:return Y6(e,r,a,n,o);case rt.STRING:{let u=a.nullable?t-1:t;return(l=r1(a.name,e,r,u,s))!=null?l:null}case rt.BOOLEAN:return q6(e,r,a,i,o);case rt.UINT_64:case rt.INT_64:return X6(e,r,a,o,n);case rt.FLOAT:return j6(e,r,a,o);case rt.DOUBLE:return G6(e,r,a,o);default:throw Error(`The specified data type for the field is currently not supported: ${n}`)}}function q6(t,e,r,i,n){let a=ht(t,e),s=a.numValues,o=e.get(),l=kn(n)?n:void 0,u=ci(t,s,a.byteLength,e,l);e.set(o+a.byteLength);let h=new de(u,s);return new A6(r.name,h,n)}function j6(t,e,r,i){let n=ht(t,e),a=kn(i)?i:void 0,s=Ry(t,e,n.numValues,a);return new S6(r.name,s,i)}function G6(t,e,r,i){let n=ht(t,e),a=kn(i)?i:void 0,s=$y(t,e,n.numValues,a);return new mu(r.name,s,i)}function X6(t,e,r,i,n){let a=ht(t,e),s=rs(a,i,t,e,"int64"),o=n.physicalType===rt.INT_64;if(s===ut.FLAT){let u=kn(i)?i:void 0,h=o?qy(t,e,a,u):Eu(t,e,a,u);return new Yy(r.name,h,i)}if(s===ut.SEQUENCE){let u=Uy(t,e,a);return new Wy(r.name,u[0],u[1],a.numRleValues,o)}let l=o?s6(t,e,a):jy(t,e,a);return new t1(r.name,l,i,o)}function Y6(t,e,r,i,n){let a=ht(t,e),s=rs(a,n,t,e),o=i.physicalType===rt.INT_32;if(s===ut.FLAT){let u=kn(n)?n:void 0,h=o?Ma(t,e,a,void 0,u):Vt(t,e,a,void 0,u);return new yu(r.name,h,n)}if(s===ut.SEQUENCE){let u=Ny(t,e,a);return new gu(r.name,u[0],u[1],a.numRleValues,o)}let l=o?i6(t,e,a):Su(t,e,a);return new xu(r.name,l,n,o)}function kn(t){return t instanceof de}var It={ID:0,ID_NULLABLE:1,ID_LONG:2,GEOMETRY:4,SCALAR_BASE:10,STRUCT:30,MAP:31};function a1(t){switch(t){case It.ID:case It.ID|It.ID_NULLABLE:case It.ID|It.ID_LONG:case It.ID|It.ID_LONG|It.ID_NULLABLE:return{nullable:(t&It.ID_NULLABLE)!==0,columnScope:Xi.FEATURE,type:"scalarType",scalarType:{longID:(t&It.ID_LONG)!==0,type:"logicalType",logicalType:My.ID}};case It.GEOMETRY:return{nullable:!1,columnScope:Xi.FEATURE,type:"complexType",complexType:{type:"physicalType",physicalType:rr.GEOMETRY,children:[]}};case It.STRUCT:return{nullable:!1,columnScope:Xi.FEATURE,type:"complexType",complexType:{type:"physicalType",physicalType:rr.STRUCT,children:[]}};case It.MAP:return{nullable:!0,columnScope:Xi.FEATURE,type:"complexType",complexType:{type:"physicalType",physicalType:rr.MAP,children:[]}};default:return J6(t)}}function W6(t){return t>=It.SCALAR_BASE}function s1(t){return t===It.STRUCT||t===It.MAP}function Z6(t){if(t.type==="scalarType"){let e=t.scalarType;if(e.type==="physicalType")switch(e.physicalType){case rt.BOOLEAN:case rt.INT_8:case rt.UINT_8:case rt.INT_32:case rt.UINT_32:case rt.INT_64:case rt.UINT_64:case rt.FLOAT:case rt.DOUBLE:return!1;case rt.STRING:return!0;default:return!1}if(e.type==="logicalType")return!1}else if(t.type==="complexType"){let e=t.complexType;if(e.type==="physicalType")switch(e.physicalType){case rr.GEOMETRY:case rr.STRUCT:case rr.MAP:return!0;default:return!1}}return console.warn("Unexpected column type in hasStreamCount",t),!1}function H6(t){var e;return t.type==="scalarType"&&((e=t.scalarType)==null?void 0:e.type)==="logicalType"&&t.scalarType.logicalType===My.ID}function K6(t){var e;return t.type==="complexType"&&((e=t.complexType)==null?void 0:e.type)==="physicalType"&&t.complexType.physicalType===rr.GEOMETRY}function J6(t){let e;switch(t){case 10:case 11:e=rt.BOOLEAN;break;case 12:case 13:e=rt.INT_8;break;case 14:case 15:e=rt.UINT_8;break;case 16:case 17:e=rt.INT_32;break;case 18:case 19:e=rt.UINT_32;break;case 20:case 21:e=rt.INT_64;break;case 22:case 23:e=rt.UINT_64;break;case 24:case 25:e=rt.FLOAT;break;case 26:case 27:e=rt.DOUBLE;break;case 28:case 29:e=rt.STRING;break;default:return null}return{nullable:!!(t&1),columnScope:Xi.FEATURE,type:"scalarType",scalarType:{longID:!1,type:"physicalType",physicalType:e}}}var Q6=new TextDecoder,bp="0-3(ID), 4(GEOMETRY), 10-29(scalars), 30(STRUCT), 31(MAP)";function Iu(t,e){let r=Rt(t,e,1)[0];if(r===0)return"";let i=e.get(),n=i+r,a=t.subarray(i,n);return e.add(r),Q6.decode(a)}function t5(t){let e=t.name,r=t.nullable;return t.type==="scalarType"?{type:"scalarField",scalarField:t.scalarType,name:e,nullable:r}:{type:"complexField",complexField:t.complexType,name:e,nullable:r}}function o1(t,e){let r=Rt(t,e,1)[0]>>>0,i=r>=It.SCALAR_BASE?a1(r):null;if(!i)throw Error(`Unsupported field type code ${r}. Supported: 10-29(scalars), 30(STRUCT), 31(MAP)`);let n=Si(Xe({},i),{name:Iu(t,e)});if(n.type==="complexType"&&s1(r)){let a=n.complexType,s=Rt(t,e,1)[0]>>>0;a.children=Array(s);for(let o=0;o>>0,i=a1(r);if(!i)throw Error(`Unsupported column type code ${r}. Supported: ${bp}`);let n;if(W6(r))n=Iu(t,e);else if(r>>0,o=a.complexType;o.children=Array(s);for(let l=0;l>>0,a=Rt(t,e,1)[0]>>>0;i.columns=Array(a);for(let s=0;s>>0,s=i.get()+a;if(s>t.length)throw Error(`Block overruns tile: ${s} > ${t.length}`);let o=Rt(t,i,1)[0]>>>0;if(o!==1&&o!==2){i.set(s);continue}let[l,u]=r5(t,i),h=l.featureTables[0],c=null,p=null,f=[],d=0;for(let m of h.columns){let g=m.name;if(H6(m)){let x=null;if(m.nullable){let b=ht(t,i),w=i.get(),_=ci(t,b.numValues,b.byteLength,i);i.set(w+b.byteLength),x=new de(_,b.numValues)}let v=ht(t,i);d=x?x.size():v.decompressedCount,c=n5(t,m,i,g,v,x!=null?x:d,r)}else if(K6(m)){let x=Rt(t,i,1)[0];if(d===0){let v=i.get();d=ht(t,i).decompressedCount,i.set(v)}e&&(e.scale=e.extent/u),p=w6(t,x,i,d,e)}else{let x=Z6(m)?Rt(t,i,1)[0]:1;if(x===0)continue;let v=N6(t,i,m,x,d,void 0);if(v)if(Array.isArray(v))for(let b of v)f.push(b);else f.push(v)}}let y=new Tw(h.name,p,c,f,u);n.push(y),i.set(s)}return n}function n5(t,e,r,i,n,a,s=!1){var h;let o=(h=e.scalarType)!=null&&h.longID?rt.UINT_64:rt.UINT_32,l=typeof a=="number"?void 0:a,u=rs(n,a,t,r,o===rt.UINT_64?"int64":"int32");if(o===rt.UINT_32)switch(u){case ut.FLAT:return new yu(i,Vt(t,r,n,void 0,l),a);case ut.SEQUENCE:{let c=Ny(t,r,n);return new gu(i,c[0],c[1],n.numRleValues,!1)}case ut.CONST:return new xu(i,Su(t,r,n),a,!1)}switch(u){case ut.FLAT:return s?new mu(i,n6(t,r,n,l),a):new Yy(i,Eu(t,r,n,l),a);case ut.SEQUENCE:{let c=Uy(t,r,n);return new Wy(i,c[0],c[1],n.numRleValues,!1)}case ut.CONST:return new t1(i,jy(t,r,n),a,!1)}throw Error("Vector type not supported for id column.")}var Qs=Py(bu);Qs/32*4,3*Qs/256+Qs|0;var a5=class{constructor(t,e){var r;switch(this._featureData=t,this.properties=this._featureData.properties||{},(r=this._featureData.geometry)==null?void 0:r.type){case Pt.POINT:case Pt.MULTIPOINT:this.type=1;break;case Pt.LINESTRING:case Pt.MULTILINESTRING:this.type=2;break;case Pt.POLYGON:case Pt.MULTIPOLYGON:this.type=3;break;default:this.type=0}this.extent=e,this.id=Number(this._featureData.id)}loadGeometry(){let t=[];for(let e of this._featureData.geometry.coordinates){let r=[];for(let i of e)r.push(new M(i.x,i.y));t.push(r)}return t}},s5=class{constructor(t){this.features=[],this.featureTable=t,this.name=t.name,this.extent=t.extent,this.version=2,this.features=t.getFeatures(),this.length=this.features.length}feature(t){return new a5(this.features[t],this.extent)}},Cu=class{constructor(t){this.layers={};let e=i5(new Uint8Array(t));this.layers=e.reduce((r,i)=>Si(Xe({},r),{[i.name]:new s5(i)}),{})}},Mu=class{constructor(t,e){this.tileID=t,this.x=t.canonical.x,this.y=t.canonical.y,this.z=t.canonical.z,this.grid=new fo(gt,16,0),this.grid3D=new fo(gt,16,0),this.featureIndexArray=new dd,this.promoteId=e}insert(t,e,r,i,n,a){let s=this.featureIndexArray.length;this.featureIndexArray.emplaceBack(r,i,n);let o=a?this.grid3D:this.grid;for(let l of e){let u=[1/0,1/0,-1/0,-1/0];for(let h of l)u[0]=Math.min(u[0],h.x),u[1]=Math.min(u[1],h.y),u[2]=Math.max(u[2],h.x),u[3]=Math.max(u[3],h.y);u[0]<8192&&u[1]<8192&&u[2]>=0&&u[3]>=0&&o.insert(s,u[0],u[1],u[2],u[3])}}loadVTLayers(){return this.vtLayers||(this.encoding==="mlt"?this.vtLayers=new Cu(this.rawTileData).layers:this.vtLayers=new Zl(new lu(this.rawTileData)).layers,this.sourceLayerCoder=new du(this.vtLayers?Object.keys(this.vtLayers).sort():[cl])),this.vtLayers}query(t,e,r,i){this.loadVTLayers();let n=t.params,a=gt/t.tileSize/t.scale,s=ai(n.filter,"queryRenderedFeatures filter",n.globalState),o=t.queryGeometry,l=t.queryPadding*a,u=Ia.fromPoints(o),h=this.grid.query(u.minX-l,u.minY-l,u.maxX+l,u.maxY+l),c=Ia.fromPoints(t.cameraQueryGeometry).expandBy(l),p=this.grid3D.query(c.minX,c.minY,c.maxX,c.maxY,(y,m,g,x)=>Rg(t.cameraQueryGeometry,y-l,m-l,g+l,x+l));for(let y of p)h.push(y);h.sort(l5);let f={},d;for(let y of h){if(y===d)continue;d=y;let m=this.featureIndexArray.get(y),g=null;this.loadMatchingFeature(f,m.bucketIndex,m.sourceLayerIndex,m.featureIndex,s,n.layers,n.availableImages,e,r,i,(x,v,b)=>(g||(g=Fr(x)),v.queryIntersectsFeature({queryGeometry:o,feature:x,featureState:b,geometry:g,zoom:this.z,transform:t.transform,pixelsToTileUnits:a,pixelPosMatrix:t.pixelPosMatrix,unwrappedTileID:this.tileID.toUnwrapped(),getElevation:t.getElevation})))}return f}loadMatchingFeature(t,e,r,i,n,a,s,o,l,u,h){let c=this.bucketLayerIDs[e];if(a&&!c.some(y=>a.has(y)))return;let p=this.sourceLayerCoder.decode(r),f=this.vtLayers[p].feature(i);if(n.needGeometry){let y=hi(f,!0);if(!n.filter(new st(this.tileID.overscaledZ),y,this.tileID.canonical))return}else if(!n.filter(new st(this.tileID.overscaledZ),f))return;let d=this.getId(f,p);for(let y of c){if(a&&!a.has(y))continue;let m=o[y];if(!m)continue;let g={};d&&u&&(g=u.getState(m.sourceLayer||"_geojsonTileLayer",d));let x=Xt({},l[y]);x.paint=wp(x.paint,m.paint,f,g,s),x.layout=wp(x.layout,m.layout,f,g,s);let v=!h||h(f,m,g);if(!v)continue;let b=new Fw(f,this.z,this.x,this.y,d);b.layer=x;let w=t[y];w===void 0&&(w=t[y]=[]),w.push({featureIndex:i,feature:b,intersectionZ:v})}}lookupSymbolFeatures(t,e,r,i,n,a,s,o){let l={};this.loadVTLayers();let u=ai(n.filterSpec,"queryRenderedFeatures symbol filter",n.globalState);for(let h of t)this.loadMatchingFeature(l,r,i,h,u,a,s,o,e);return l}hasLayer(t){for(let e of this.bucketLayerIDs)for(let r of e)if(t===r)return!0;return!1}getId(t,e){var i;let r=t.id;if(this.promoteId){let n=typeof this.promoteId=="string"?this.promoteId:this.promoteId[e];r=t.properties[n],typeof r=="boolean"&&(r=Number(r)),r===void 0&&((i=t.properties)!=null&&i.cluster)&&this.promoteId&&(r=Number(t.properties.cluster_id))}return r}};C("FeatureIndex",Mu,{omit:["rawTileData","sourceLayerCoder"]});function o5(t){return typeof t=="object"&&!!t&&"evaluate"in t}function wp(t,e,r,i,n){return xn(t,(a,s)=>{let o=e instanceof Wa?e.get(s):null;return o5(o)?o.evaluate(r,i,void 0,n):o})}function l5(t,e){return e-t}var l1=class{constructor(t){this.maxEntries=t,this.map=new Map}get(t){let e=this.map.get(t);return e!==void 0&&(this.map.delete(t),this.map.set(t,e)),e}set(t,e){if(this.map.has(t))this.map.delete(t);else if(this.map.size>=this.maxEntries){let r=this.map.keys().next().value;this.map.delete(r)}this.map.set(t,e)}clear(){this.map.clear()}};function Bu(t){let e=typeof t;if(e==="number"||e==="boolean"||e==="string"||t==null)return JSON.stringify(t);if(Array.isArray(t)){let n="[";for(let a of t)n+=`${Bu(a)},`;return`${n}]`}let r=Object.keys(t).sort(),i="{";for(let n=0;nthis._layers[c.id]),s=a[0];if(s.isHidden())continue;let o=s.source||"",l=this.familiesBySource[o];l||(l=this.familiesBySource[o]={});let u=s.sourceLayer||"_geojsonTileLayer",h=l[u];h||(h=l[u]=[]),h.push(a)}}},c1=class{constructor(t){let e={},r=[];for(let s in t){let o=e[s]={};for(let l in t[s]){let u=t[s][l];o[l]={};for(let h in u){let c=u[h];if(!c||c.bitmap.width===0||c.bitmap.height===0)continue;let p={x:0,y:0,w:c.bitmap.width+2,h:c.bitmap.height+2};r.push(p),o[l][h]={rect:p,metrics:c.metrics}}}}let{w:i,h:n}=uu(r),a=new Qa({width:i||1,height:n||1});for(let s in t)for(let o in t[s]){let l=t[s][o];for(let u in l){let h=l[u];if(!h||h.bitmap.width===0||h.bitmap.height===0)continue;let c=e[s][o][u].rect;Qa.copy(h.bitmap,a,{x:0,y:0},{x:c.x+1,y:c.y+1},h.bitmap)}}this.image=a,this.positions=e}};C("GlyphAtlas",c1);var p1=class{constructor(t){this.tileID=new pu(t.tileID.overscaledZ,t.tileID.wrap,t.tileID.canonical.z,t.tileID.canonical.x,t.tileID.canonical.y),this.uid=t.uid,this.zoom=t.zoom,this.pixelRatio=t.pixelRatio,this.tileSize=t.tileSize,this.source=t.source,this.overscaling=this.tileID.overscaleFactor(),this.showCollisionBoxes=t.showCollisionBoxes,this.collectResourceTiming=!!t.collectResourceTiming,this.returnDependencies=!!t.returnDependencies,this.promoteId=t.promoteId,this.inFlightDependencies=[]}parse(t,e,r,i,n){return et(this,null,function*(){this.data=t,this.collisionBoxArray=new Rl;let a=new du(Object.keys(t.layers).sort()),s=new Mu(this.tileID,this.promoteId);s.bucketLayerIDs=[];let o={},l={featureIndex:s,iconDependencies:{},patternDependencies:{},glyphDependencies:{},dashDependencies:{},availableImages:r,subdivisionGranularity:n},u=e.familiesBySource[this.source];for(let S in u){let T=t.layers[S];if(!T)continue;T.version===1&&Mt(`Vector tile source "${this.source}" layer "${S}" does not use vector tile spec v2 and therefore may have some rendering errors.`);let L=a.encode(S),O=[];for(let B=0;BF.id)))}}let h=xn(l.glyphDependencies,S=>xn(S,T=>Object.keys(T)));for(let S of this.inFlightDependencies)S==null||S.abort();this.inFlightDependencies=[];let c=Promise.resolve({});if(Object.keys(h).length){let S=new AbortController;this.inFlightDependencies.push(S),c=i.sendAsync({type:"GG",data:{stacks:h,source:this.source,tileID:this.tileID,type:"glyphs"}},S)}let p=Object.keys(l.iconDependencies),f=Promise.resolve({});if(p.length){let S=new AbortController;this.inFlightDependencies.push(S),f=i.sendAsync({type:"GI",data:{icons:p,source:this.source,tileID:this.tileID,type:"icons"}},S)}let d=Object.keys(l.patternDependencies),y=Promise.resolve({});if(d.length){let S=new AbortController;this.inFlightDependencies.push(S),y=i.sendAsync({type:"GI",data:{icons:d,source:this.source,tileID:this.tileID,type:"patterns"}},S)}let m=l.dashDependencies,g=Promise.resolve({});if(Object.keys(m).length){let S=new AbortController;this.inFlightDependencies.push(S),g=i.sendAsync({type:"GDA",data:{dashes:m}},S)}let[x,v,b,w]=yield Promise.all([c,f,y,g]),_=new c1(x),A=new hu(v,b);for(let S in o){let T=o[S];T.hasDependencies&&(u1(T.layers,this.zoom,r),T.addFeatures({options:l,canonical:this.tileID.canonical,glyphMap:x,glyphPositions:_.positions,iconMap:v,iconPositions:A.iconPositions,patternMap:b,patternPositions:A.patternPositions,dashPositions:w,showCollisionBoxes:this.showCollisionBoxes}))}return{buckets:Object.values(o).filter(S=>!S.isEmpty()),featureIndex:s,collisionBoxArray:this.collisionBoxArray,glyphAtlasImage:_.image,imageAtlas:A,dashPositions:w,glyphMap:this.returnDependencies?x:null,iconMap:this.returnDependencies?v:null,glyphPositions:this.returnDependencies?_.positions:null}})}};function u1(t,e,r){let i=new st(e);for(let n of t)n.recalculate(i,r)}var f1=class{constructor(){this.loading={},this.loaded={},this.parsing={}}startLoading(t,e){this.loading[t]=e}finishLoading(t){delete this.loading[t]}abort(t){let e=this.loading[t];e!=null&&e.abort&&(e.abort.abort(),delete this.loading[t])}getParsing(t){return this.parsing[t]}setParsing(t,e){this.parsing[t]=e}removeParsing(t){delete this.parsing[t]}markLoaded(t,e){this.loaded[t]=e}getLoaded(t){let e=this.loaded[t];if(e)return e}removeLoaded(t){delete this.loaded[t]}clearLoaded(){this.loaded={}}},d1=class{constructor(t){this.start=`${t}#start`,this.end=`${t}#end`,this.measure=t,performance.mark(this.start)}finish(){performance.mark(this.end);let t=performance.getEntriesByName(this.measure);return t.length===0&&(performance.measure(this.measure,this.start,this.end),t=performance.getEntriesByName(this.measure),performance.clearMarks(this.start),performance.clearMarks(this.end),performance.clearMeasures(this.measure)),t}},p5=class{constructor(t,e,r,i,n){this.type=t,this.properties=r||{},this.extent=n,this.pointsArray=e,this.id=i}loadGeometry(){return this.pointsArray.map(t=>t.map(e=>new M(e.x,e.y)))}},f5=class{constructor(t,e,r){this.version=2,this._myFeatures=t,this.name=e,this.length=t.length,this.extent=r}feature(t){return this._myFeatures[t]}},d5=class{constructor(){this.layers={}}addLayer(t){this.layers[t.name]=t}};function y5(t,e,r){let{extent:i}=t,n=2**(r.z-e.z),a=(r.x-e.x*n)*i,s=(r.y-e.y*n)*i,o=[];for(let l=0;l0&&l.addLayer(d)}let h={vectorTile:l,rawData:fu(l).buffer};return this.overzoomedTileResultCache.set(s,h),h}reloadTile(t){return et(this,null,function*(){let e=t.uid,r=this.tileState.getLoaded(e);if(!r)throw Error("Should not be trying to reload a tile that was never loaded or has been removed");if(r.vectorTile)return r.showCollisionBoxes=t.showCollisionBoxes,yield this._parseWorkerTile(r,t)})}abortTile(t){return et(this,null,function*(){this.tileState.abort(t.uid)})}removeTile(t){return et(this,null,function*(){this.tileState.removeLoaded(t.uid)})}},g5=class{constructor(){this.loaded={}}loadTile(t){return et(this,null,function*(){let{uid:e,encoding:r,rawImageData:i,redFactor:n,greenFactor:a,blueFactor:s,baseShift:o}=t,l=i.width+4,u=i.height+4,h=Ba(i)?new Ht({width:l,height:u},yield Ep(i,-2,-2,l,u)):i,c=new Yl(e,h,r,n,a,s,o);return this.loaded||(this.loaded={}),this.loaded[e]=c,c})}removeTile(t){let e=this.loaded,r=t.uid;e!=null&&e[r]&&delete e[r]}},x5=class{constructor(t,e,r,i=v5){this.actor=t,this.layerIndex=e,this.availableImages=r,this.tileState=new f1,this._createGeoJSONIndex=i}loadVectorTile(t){if(!this._geoJSONIndex)throw Error("Unable to parse the data into a cluster or geojson");let{z:e,x:r,y:i}=t.tileID.canonical,n=this._geoJSONIndex.getTile(e,r,i);if(!n)return null;let a=new Iy(n.features,{version:2,extent:gt});return{vectorTile:a,rawData:fu(a,Sp).buffer}}loadTile(t){return et(this,null,function*(){let{uid:e}=t,r=new p1(t);r.abort=new AbortController;try{let i=this.loadVectorTile(t);if(!i)return null;let{vectorTile:n,rawData:a}=i;r.vectorTile=n,this.tileState.markLoaded(e,r);let s={rawData:a};return this.tileState.setParsing(e,s),yield this._parseWorkerTile(r,t)}catch(i){throw this.tileState.markLoaded(e,r),i}})}_parseWorkerTile(t,e){return et(this,null,function*(){let r=this.tileState.getParsing(t.uid),i=yield t.parse(t.vectorTile,this.layerIndex,this.availableImages,this.actor,e.subdivisionGranularity);if(r){let{rawData:n}=r;i=Xt({rawTileData:n.slice(0),encoding:"mvt"},i),this.tileState.removeParsing(t.uid)}return i})}abortTile(t){return et(this,null,function*(){this.tileState.abort(t.uid)})}removeTile(t){return et(this,null,function*(){this.tileState.removeLoaded(t.uid)})}loadData(t){return et(this,null,function*(){var r;(r=this._pendingRequest)==null||r.abort();let e=this._startRequestTiming(t);this._pendingRequest=new AbortController;try{yield this.loadAndProcessGeoJSON(t,this._pendingRequest),delete this._pendingRequest,this.tileState.clearLoaded();let i={};return t.request&&(i.data=t.data),this._finishRequestTiming(e,t,i),i}catch(i){if(delete this._pendingRequest,!xl(i))throw i;return{abandoned:!0}}})}_startRequestTiming(t){var e;if((e=t.request)!=null&&e.collectResourceTiming)return new d1(t.request.url)}_finishRequestTiming(t,e,r){let i=t==null?void 0:t.finish();i&&(r.resourceTiming={[e.source]:JSON.parse(JSON.stringify(i))})}reloadTile(t){return et(this,null,function*(){let e=t.uid,r=this.tileState.getLoaded(e);if(!r)return yield this.loadTile(t);if(r.vectorTile)return r.showCollisionBoxes=t.showCollisionBoxes,yield this._parseWorkerTile(r,t)})}loadAndProcessGeoJSON(t,e){return et(this,null,function*(){var r;if(t.request&&(t.data=(yield Ip(t.request,e)).data),t.data){t.data=this._filterGeoJSON(t.data,t.filter,t.source),this._geoJSONIndex=this._createGeoJSONIndex(t.data,t);return}if(t.dataDiff){(r=this._geoJSONIndex)!=null||(this._geoJSONIndex=this._createGeoJSONIndex({type:"FeatureCollection",features:[]},t)),this._geoJSONIndex.updateData(t.dataDiff,this._getFilterPredicate(t.filter,t.source));return}if(t.updateCluster&&this._geoJSONIndex.updateClusterOptions(t.geojsonVtOptions.cluster,y1(t)),this._geoJSONIndex==null)throw Error(`Input data given to \'${t.source}\' is not a valid GeoJSON object.`)})}_filterGeoJSON(t,e,r){if(t.type!=="FeatureCollection")return t;let i=this._getFilterPredicate(e,r);return i?{type:"FeatureCollection",features:t.features.filter(n=>i(n))}:t}_getFilterPredicate(t,e){if(typeof t!="boolean"&&!(t!=null&&t.length))return;let r=ar(t,`sources.${e}.filter`,{type:"boolean","property-type":"data-driven",overridable:!1,transition:!1});if(r.result==="error")throw Error(r.value.map(i=>`${i.key}: ${i.message}`).join(", "));return i=>r.value.evaluate({zoom:0},i)}removeSource(t){return et(this,null,function*(){var e;(e=this._pendingRequest)==null||e.abort()})}getClusterExpansionZoom(t){return this._geoJSONIndex.getClusterExpansionZoom(t.clusterId)}getClusterChildren(t){return this._geoJSONIndex.getClusterChildren(t.clusterId)}getClusterLeaves(t){return this._geoJSONIndex.getClusterLeaves(t.clusterId,t.limit,t.offset)}};function v5(t,e){let r=Xt(e.geojsonVtOptions||{},{updateable:!0,clusterOptions:y1(e)});return new Kd(t,r)}function y1({geojsonVtOptions:t,clusterProperties:e,source:r}){if(!e||!t.clusterOptions)return t.clusterOptions;let i={},n={},a={accumulated:null,zoom:0},s={properties:null},o=Object.keys(e);for(let l of o){let[u,h]=e[l],c=ar(h,`sources.${r}.clusterProperties.${l}[1]`),p=ar(typeof u=="string"?[u,["accumulated"],["get",l]]:u,`sources.${r}.clusterProperties.${l}[0]`);i[l]=c.value,n[l]=p.value}return t.clusterOptions.map=l=>{s.properties=l;let u={};for(let h of o)u[h]=i[h].evaluate(a,s);return u},t.clusterOptions.reduce=(l,u)=>{s.properties=u;for(let h of o)a.accumulated=l[h],l[h]=n[h].evaluate(a,s)},t.clusterOptions}function h1(t){return et(this,null,function*(){if(t.endsWith(".mjs")){yield import(t);return}let e=yield fetch(t,{credentials:"same-origin"});if(!e.ok)throw Error(`Failed to load ${t}: ${e.status}`);let r=yield e.text();if(/^[ \\t]*(import|export)\\s/m.test(r)){let i=URL.createObjectURL(new Blob([r],{type:"text/javascript"}));try{yield import(i)}finally{URL.revokeObjectURL(i)}return}globalThis.eval(r)})}var b5=class{constructor(t){this.self=t,this.actor=new Ty(t),this.layerIndexes={},this.availableImages={},this.workerSources={},this.demWorkerSources={},this.externalWorkerSourceTypes={},this.globalStates=new Map,this.self.registerWorkerSource=(e,r)=>{if(this.externalWorkerSourceTypes[e])throw Error(`Worker source with name "${e}" already registered.`);this.externalWorkerSourceTypes[e]=r},this.self.addProtocol=Fp,this.self.removeProtocol=Tp,this.self.registerRTLTextPlugin=e=>{Ar.setMethods(e)},this.self.makeRequest=Pa,this.actor.registerMessageHandler("LDT",(e,r)=>this._getDEMWorkerSource(e,r.source).loadTile(r)),this.actor.registerMessageHandler("RDT",(e,r)=>et(this,null,function*(){this._getDEMWorkerSource(e,r.source).removeTile(r)})),this.actor.registerMessageHandler("GCEZ",(e,r)=>et(this,null,function*(){return this._getWorkerSource(e,r.type,r.source).getClusterExpansionZoom(r)})),this.actor.registerMessageHandler("GCC",(e,r)=>et(this,null,function*(){return this._getWorkerSource(e,r.type,r.source).getClusterChildren(r)})),this.actor.registerMessageHandler("GCL",(e,r)=>et(this,null,function*(){return this._getWorkerSource(e,r.type,r.source).getClusterLeaves(r)})),this.actor.registerMessageHandler("LD",(e,r)=>this._getWorkerSource(e,r.type,r.source).loadData(r)),this.actor.registerMessageHandler("LT",(e,r)=>this._getWorkerSource(e,r.type,r.source).loadTile(r)),this.actor.registerMessageHandler("RT",(e,r)=>this._getWorkerSource(e,r.type,r.source).reloadTile(r)),this.actor.registerMessageHandler("AT",(e,r)=>this._getWorkerSource(e,r.type,r.source).abortTile(r)),this.actor.registerMessageHandler("RMT",(e,r)=>this._getWorkerSource(e,r.type,r.source).removeTile(r)),this.actor.registerMessageHandler("RS",(e,r)=>et(this,null,function*(){var n,a;if(!((a=(n=this.workerSources[e])==null?void 0:n[r.type])!=null&&a[r.source]))return;let i=this.workerSources[e][r.type][r.source];delete this.workerSources[e][r.type][r.source],i.removeSource!==void 0&&i.removeSource(r)})),this.actor.registerMessageHandler("RM",e=>et(this,null,function*(){delete this.layerIndexes[e],delete this.availableImages[e],delete this.workerSources[e],delete this.demWorkerSources[e],this.globalStates.delete(e)})),this.actor.registerMessageHandler("SR",(e,r)=>et(this,null,function*(){this.referrer=r})),this.actor.registerMessageHandler("SRPS",(e,r)=>this._syncRTLPluginState(e,r)),this.actor.registerMessageHandler("IS",(e,r)=>et(this,null,function*(){yield h1(r)})),this.actor.registerMessageHandler("SI",(e,r)=>this._setImages(e,r)),this.actor.registerMessageHandler("UL",(e,r)=>et(this,null,function*(){this._getLayerIndex(e).update(r.layers,r.removedIds,this._getGlobalState(e))})),this.actor.registerMessageHandler("UGS",(e,r)=>et(this,null,function*(){let i=this._getGlobalState(e);for(let n in r)i[n]=r[n]})),this.actor.registerMessageHandler("SL",(e,r)=>et(this,null,function*(){this._getLayerIndex(e).replace(r,this._getGlobalState(e))}))}_getGlobalState(t){let e=this.globalStates.get(t);return e||(e={},this.globalStates.set(t,e)),e}_setImages(t,e){return et(this,null,function*(){this.availableImages[t]=e;for(let r in this.workerSources[t]){let i=this.workerSources[t][r];for(let n in i)i[n].availableImages=e}})}_syncRTLPluginState(t,e){return et(this,null,function*(){return yield Ar.syncState(e,h1)})}_getAvailableImages(t){let e=this.availableImages[t];return e||(e=[]),e}_getLayerIndex(t){let e=this.layerIndexes[t];return e||(e=this.layerIndexes[t]=new c5),e}_getWorkerSource(t,e,r){var i,n;if((i=this.workerSources)[t]||(i[t]={}),(n=this.workerSources[t])[e]||(n[e]={}),!this.workerSources[t][e][r]){let a={sendAsync:(s,o)=>(s.targetMapId=t,this.actor.sendAsync(s,o))};switch(e){case"vector":this.workerSources[t][e][r]=new m5(a,this._getLayerIndex(t),this._getAvailableImages(t));break;case"geojson":this.workerSources[t][e][r]=new x5(a,this._getLayerIndex(t),this._getAvailableImages(t));break;default:this.workerSources[t][e][r]=new this.externalWorkerSourceTypes[e](a,this._getLayerIndex(t),this._getAvailableImages(t))}}return this.workerSources[t][e][r]}_getDEMWorkerSource(t,e){var r,i;return(r=this.demWorkerSources)[t]||(r[t]={}),(i=this.demWorkerSources[t])[e]||(i[e]=new g5),this.demWorkerSources[t][e]}};vr(self)&&(self.worker=new b5(self));export{b5 as default};\n/*! Bundled license information:\n\nmaplibre-gl/dist/maplibre-gl-shared.mjs:\nmaplibre-gl/dist/maplibre-gl-worker.mjs:\n (**\n * MapLibre GL JS\n * @license 3-Clause BSD. Full text of license: https://github.com/maplibre/maplibre-gl-js/blob/v6.11.2/LICENSE.txt\n *)\n*/\n'});var pce=X((sht,dce)=>{"use strict";var jF=Object.defineProperty,kYe=Object.getOwnPropertyDescriptor,CYe=Object.getOwnPropertyNames,FYe=Object.prototype.hasOwnProperty,PYe=(e,t)=>{for(var r in t)jF(e,r,{get:t[r],enumerable:!0})},IYe=(e,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of CYe(t))!FYe.call(e,a)&&a!==r&&jF(e,a,{get:()=>t[a],enumerable:!(i=kYe(t,a))||i.enumerable});return e},LYe=e=>IYe(jF({},"__esModule",{value:!0}),e),cce={};PYe(cce,{COUNTRIES:()=>hce,byAlpha2:()=>qYe,byAlpha3:()=>BYe,byM49:()=>OYe,createLookup:()=>fce,lookup:()=>zYe,lookupAlpha3:()=>RYe,sanitize:()=>GF});dce.exports=LYe(cce);var hce=[{iso3:"ABW",iso2:"AW",m49:"533",name:"Aruba",aliases:["\u{1F1E6}\u{1F1FC}","country of aruba","land aruba","pais aruba"]},{iso3:"AFG",iso2:"AF",m49:"004",name:"Afghanistan",aliases:["\u{1F1E6}\u{1F1EB}","affghanistan","affghanisthan","affghaunistan","afghania","afghanisthan","afghaunistan","afghaunistaun","afgoniston","de afghanistan islami jumhuriyat","owganystan","\u0430\u0444\u0493\u043E\u043D\u0438\u0441\u0442\u043E\u043D","\u0623\u0641\u063A\u0627\u0646\u0633\u062A\u0627\u0646","\u0627\u0641\u063A\u0627\u0646\u0633\u062A\u0627\u0646","\u062F \u0627\u0641\u063A\u0627\u0646\u0633\u062A\u0627\u0646 \u0627\u0633\u0644\u0627\u0645\u06CC \u062C\u0645\u0647\u0648\u0631\u06CC\u062A"]},{iso3:"AGO",iso2:"AO",m49:"024",name:"Angola",aliases:["\u{1F1E6}\u{1F1F4}","republic of angola","republica de angola"]},{iso3:"AIA",iso2:"AI",m49:"660",name:"Anguilla",aliases:["\u{1F1E6}\u{1F1EE}","malliouhana"]},{iso3:"ALA",iso2:"AX",m49:"248",name:"\xC5land Islands",aliases:["\u{1F1E6}\u{1F1FD}","aaland","aaland islands","ahvenanmaa","aland","aland isles","aland region","alands lan","landskapet aland"]},{iso3:"ALB",iso2:"AL",m49:"008",name:"Albania",aliases:["\u{1F1E6}\u{1F1F1}","peoples republic of albania","peoples socialist republic of albania","republic of albania","republika e shqiperise","shqiperi","shqiperia","shqiperise","socialist republic of albania"]},{iso3:"AND",iso2:"AD",m49:"020",name:"Andorra",aliases:["\u{1F1E6}\u{1F1E9}","el pais dels pirineus","les valls dandorra","principality of andorra","principality of the valleys of andorra","principat dandorra","valls dandorra"]},{iso3:"ARE",iso2:"AE",m49:"784",name:"United Arab Emirates",aliases:["\u{1F1E6}\u{1F1EA}","emirates","uae","\u0627\u0644\u0625\u0645\u0627\u0631\u0627\u062A","\u0627\u0644\u0625\u0645\u0627\u0631\u0627\u062A \u0627\u0644\u0639\u0631\u0628\u064A\u0629 \u0627\u0644\u0645\u062A\u062D\u062F\u0629","\u0627\u0644\u0627\u0645\u0627\u0631\u0627\u062A","\u0627\u0644\u0627\u0645\u0627\u0631\u0627\u062A \u0627\u0644\u0639\u0631\u0628\u064A\u0629 \u0627\u0644\u0645\u062A\u062D\u062F\u0629","\u062F\u0648\u0644\u0629 \u0627\u0644\u0625\u0645\u0627\u0631\u0627\u062A \u0627\u0644\u0639\u0631\u0628\u064A\u0629 \u0627\u0644\u0645\u062A\u062D\u062F\u0629"]},{iso3:"ARG",iso2:"AR",m49:"032",name:"Argentina",aliases:["\u{1F1E6}\u{1F1F7}","argentine republic","nacion argentina","republic of argentina","republica argentina"]},{iso3:"ARM",iso2:"AM",m49:"051",name:"Armenia",aliases:["\u{1F1E6}\u{1F1F2}","hayastan","hayastani hanrapetutyun","republic of armenia","\u0570\u0561\u0575\u0561\u057D\u057F\u0561\u0576","\u0570\u0561\u0575\u0561\u057D\u057F\u0561\u0576\u056B \u0570\u0561\u0576\u0580\u0561\u057A\u0565\u057F\u0578\u0582\u0569\u0575\u0578\u0582\u0576","\u0570\u0561\u0575\u0584","\u0570\u0570"]},{iso3:"ASM",iso2:"AS",m49:"016",name:"American Samoa",aliases:["\u{1F1E6}\u{1F1F8}","amerika samoa","east samoa","samoa american","samoa united states","territory of american samoa","us samoa"]},{iso3:"ATA",iso2:"AQ",m49:"010",name:"Antarctica",aliases:["\u{1F1E6}\u{1F1F6}","antarctica treaty area"]},{iso3:"ATF",iso2:"TF",m49:"260",name:"French Southern Territories",aliases:["\u{1F1F9}\u{1F1EB}","taaf","terres australes et antarctiques francaises","terres australes francaises","terres australes francaises les","territoire des terres australes et antarctiques francaises"]},{iso3:"ATG",iso2:"AG",m49:"028",name:"Antigua and Barbuda",aliases:["\u{1F1E6}\u{1F1EC}","antigua","antigua barbuda","barbuda"]},{iso3:"AUS",iso2:"AU",m49:"036",name:"Australia",aliases:["\u{1F1E6}\u{1F1FA}","commonwealth of australia","new holland","new hollandia","nova hollandia"]},{iso3:"AUT",iso2:"AT",m49:"040",name:"Austria",aliases:["\u{1F1E6}\u{1F1F9}","osterreich","republic of austria","republik osterreich","zweite republik"]},{iso3:"AZE",iso2:"AZ",m49:"031",name:"Azerbaijan",aliases:["\u{1F1E6}\u{1F1FF}","az\u0259rbaycan","az\u0259rbaycan respublikas\u0131","republic of azerbaijan"]},{iso3:"BDI",iso2:"BI",m49:"108",name:"Burundi",aliases:["\u{1F1E7}\u{1F1EE}","gouvernement du burundi","la republique du burundi","republic of burundi","republika yu burundi","republika yuburundi","republique du burundi","repuburika yuburundi","uburundi"]},{iso3:"BEL",iso2:"BE",m49:"056",name:"Belgium",aliases:["\u{1F1E7}\u{1F1EA}","belg","belgie","belgien","belgique","kingdom of belgium","konigreich belgien","koninkrijk belgie","royaume de belgique"]},{iso3:"BEN",iso2:"BJ",m49:"204",name:"Benin",aliases:["\u{1F1E7}\u{1F1EF}","dahomey","la republique du benin","republic of benin","republique du benin"]},{iso3:"BES",iso2:"BQ",m49:"535",name:"Bonaire, Sint Eustatius and Saba",aliases:["\u{1F1E7}\u{1F1F6}","bes eilanden","bes islands","bijzondere gemeente","bonaire","bonaire saint eustatius and saba","bonaire sint eustatius en saba","caraibisch nederland","caribbean netherlands","caribisch nederland","hulanda karibense","islanan bes","netherlands antilles","saba","sint eustatius"]},{iso3:"BFA",iso2:"BF",m49:"854",name:"Burkina Faso",aliases:["\u{1F1E7}\u{1F1EB}","republic of burkina faso","republic of upper volta"]},{iso3:"BGD",iso2:"BD",m49:"050",name:"Bangladesh",aliases:["\u{1F1E7}\u{1F1E9}","bangla desh","east pakistan","gonaoprojatontri bangladesh","peoples republic of bangladesh","\u0997\u09A3\u09AA\u09CD\u09B0\u099C\u09BE\u09A4\u09A8\u09CD\u09A4\u09CD\u09B0\u09C0 \u09AC\u09BE\u0982\u09B2\u09BE\u09A6\u09C7\u09B6","\u09AC\u09BE\u0982\u09B2\u09BE \u09A6\u09C7\u09B6","\u09AC\u09BE\u0982\u09B2\u09BE\u09A6\u09C7\u09B6","\u09AC\u09BF\u09A1\u09BF"]},{iso3:"BGR",iso2:"BG",m49:"100",name:"Bulgaria",aliases:["\u{1F1E7}\u{1F1EC}","bulgarian republic","republic of bulgaria","republika bulgaria","republika bulgariya","\u0431\u0433","\u0431\u044A\u043B\u0433\u0430\u0440\u0438\u044F","\u0440\u0435\u043F\u0443\u0431\u043B\u0438\u043A\u0430 \u0431\u044A\u043B\u0433\u0430\u0440\u0438\u044F"]},{iso3:"BHR",iso2:"BH",m49:"048",name:"Bahrain",aliases:["\u{1F1E7}\u{1F1ED}","bahrein islands","kingdom of bahrain","\u0627\u0644\u0628\u062D\u0631\u064A\u0646","\u062F\u0648\u0644\u0629 \u0627\u0644\u0628\u062D\u0631\u064A\u0646","\u0645\u0645\u0644\u0643\u0629 \u0627\u0644\u0628\u062D\u0631\u064A\u0646"]},{iso3:"BHS",iso2:"BS",m49:"044",name:"Bahamas",aliases:["\u{1F1E7}\u{1F1F8}","bahama islands","bahamas the","commonwealth of the bahamas"]},{iso3:"BIH",iso2:"BA",m49:"070",name:"Bosnia and Herzegovina",aliases:["\u{1F1E7}\u{1F1E6}","bosna","bosna i hercegovina","bosnia","bosnia and hercegovina","bosnia herzegovina","hercegovina","herzegovina","\u0431\u0438\u0445","\u0431\u043E\u0441\u043D\u0430","\u0431\u043E\u0441\u043D\u0430 \u0438 \u0445\u0435\u0440\u0446\u0435\u0433\u043E\u0432\u0438\u043D\u0430","\u0431\u0445"]},{iso3:"BLM",iso2:"BL",m49:"652",name:"Saint Barth\xE9lemy",aliases:["\u{1F1E7}\u{1F1F1}","collectivite doutre mer de saint barthelemy","collectivite territoriale de saint barthelemy","collectivity of saint barthelemy","saint barth","saint barths","saint barts","saint bartz"]},{iso3:"BLR",iso2:"BY",m49:"112",name:"Belarus",aliases:["\u{1F1E7}\u{1F1FE}","republic of belarus","respublika belarus","respublika byelarus","\u0431\u0435\u043B\u0430\u0440\u0443\u0441\u043A\u0430\u044F \u0440\u044D\u0441\u043F\u0443\u0431\u043B\u0456\u043A\u0430","\u0431\u0435\u043B\u0430\u0440\u0443\u0441\u044C","\u0431\u0435\u043B\u0430\u044F \u0440\u0443\u0441\u044C","\u0431\u0435\u043B\u043E\u0440\u0443\u0441\u0441\u0438\u044F","\u0440\u0431","\u0440\u0435\u0441\u043F\u0443\u0431\u043B\u0438\u043A\u0430 \u0431\u0435\u043B\u0430\u0440\u0443\u0441\u044C","\u0440\u044D\u0441\u043F\u0443\u0431\u043B\u0456\u043A\u0430 \u0431\u0435\u043B\u0430\u0440\u0443\u0441\u044C"]},{iso3:"BLZ",iso2:"BZ",m49:"084",name:"Belize",aliases:["\u{1F1E7}\u{1F1FF}"]},{iso3:"BMU",iso2:"BM",m49:"060",name:"Bermuda",aliases:["\u{1F1E7}\u{1F1F2}","barmuda","barmuda i","barmuda isl","barmuda islands","barmudas","bermoothes","bermuda islands","bermudas","bermudian islands","colony of bermuda","devils isles","isle of devils","somers islands","somers isles","summers isles","territory of bermuda","virgineola"]},{iso3:"BOL",iso2:"BO",m49:"068",name:"Bolivia (Plurinational State of)",aliases:["\u{1F1E7}\u{1F1F4}","bolivia","bulibiya","estado plurinacional de bolivia","plurinational state of bolivia","puliwya","republic of bolivia","republica de bolivia","volivia","wuliwiya","wuliwya"]},{iso3:"BRA",iso2:"BR",m49:"076",name:"Brazil",aliases:["\u{1F1E7}\u{1F1F7}","brasil","federative republic of brazil","pindorama","republica federativa do brasil"]},{iso3:"BRB",iso2:"BB",m49:"052",name:"Barbados",aliases:["\u{1F1E7}\u{1F1E7}","barbadoes"]},{iso3:"BRN",iso2:"BN",m49:"096",name:"Brunei Darussalam",aliases:["\u{1F1E7}\u{1F1F3}","brunei","nation of brunei the abode of peace","negara brunei darussalam"]},{iso3:"BTN",iso2:"BT",m49:"064",name:"Bhutan",aliases:["\u{1F1E7}\u{1F1F9}","kingdom of bhutan","\u0F60\u0F56\u0FB2\u0F74\u0F42","\u0F60\u0F56\u0FB2\u0F74\u0F42\u0F0B\u0F61\u0F74\u0F63\u0F0B","\u0F60\u0F56\u0FB2\u0F74\u0F42\u0F61\u0F74\u0F63\u0F0B\u0F0B"]},{iso3:"BVT",iso2:"BV",m49:"074",name:"Bouvet Island",aliases:["\u{1F1E7}\u{1F1FB}"]},{iso3:"BWA",iso2:"BW",m49:"072",name:"Botswana",aliases:["\u{1F1E7}\u{1F1FC}","lefatshe la botswana","republic of botswana"]},{iso3:"CAF",iso2:"CF",m49:"140",name:"Central African Republic",aliases:["\u{1F1E8}\u{1F1EB}","centrafricaine republique","centrafrique","central africa","kodorosese ti beafrika","la republique","rep centrafrique","republique centrafricaine"]},{iso3:"CAN",iso2:"CA",m49:"124",name:"Canada",aliases:["\u{1F1E8}\u{1F1E6}","le canada"]},{iso3:"CCK",iso2:"CC",m49:"166",name:"Cocos (Keeling) Islands",aliases:["\u{1F1E8}\u{1F1E8}","cocos islands","keeling islands","territory of the cocos keeling islands"]},{iso3:"CHE",iso2:"CH",m49:"756",name:"Switzerland",aliases:["\u{1F1E8}\u{1F1ED}","confederation helvetique","confederation suisse","confederazione elvetica","confederazione svizzera","confederaziun svizra","confoederatio helvetica","conf\u0153deratio helvetica","eidgenossenschaft","elvezia","helvetie","la confederation suisse","schweiz","schweizerische eidgenossenschaft","suisse","svizra","svizzera","swiss","swiss confederation"]},{iso3:"CHL",iso2:"CL",m49:"152",name:"Chile",aliases:["\u{1F1E8}\u{1F1F1}","republic of chile","republica de chile"]},{iso3:"CHN",iso2:"CN",m49:"156",name:"China",aliases:["\u{1F1E8}\u{1F1F3}","china pr","peoples republic of china","pr china","prc","\u4E2D\u534E\u4EBA\u6C11\u5171\u548C\u56FD","\u4E2D\u56FD"]},{iso3:"CIV",iso2:"CI",m49:"384",name:"C\xF4te d'Ivoire",aliases:["\u{1F1E8}\u{1F1EE}","cote ivoire","ivory coast","republic of cote divoire","republic of ivory coast","republic of the ivory coast","republique de cote divoire"]},{iso3:"CMR",iso2:"CM",m49:"120",name:"Cameroon",aliases:["\u{1F1E8}\u{1F1F2}","cameroun","la republique du cameroun","republic of cameroon","republique du cameroun"]},{iso3:"COD",iso2:"CD",m49:"180",name:"Democratic Republic of the Congo",aliases:["\u{1F1E8}\u{1F1E9}","congo belge","congo democratic republic of the","congo kinshasa","dem rep congo","dem republic of congo","dem republic of the congo","democratic republic of congo","dr congo","drc","rd congo","rep demcongo","republic of the congo","republique democratique du congo","republique du zaire","zaire"]},{iso3:"COG",iso2:"CG",m49:"178",name:"Congo",aliases:["\u{1F1E8}\u{1F1EC}","congo brazza","congo brazzaville","congo republic","rep congo","republic of congo","republique du congo"]},{iso3:"COK",iso2:"CK",m49:"184",name:"Cook Islands",aliases:["\u{1F1E8}\u{1F1F0}","cook group","hervey islands"]},{iso3:"COL",iso2:"CO",m49:"170",name:"Colombia",aliases:["\u{1F1E8}\u{1F1F4}","republic of colombia","republica de colombia"]},{iso3:"COM",iso2:"KM",m49:"174",name:"Comoros",aliases:["\u{1F1F0}\u{1F1F2}","comores","comores archipel","etat comorien","lunion des comores","republique des comores","republique federale et islamique des comores","republique federale islamique des comores","territoire des comores","union des comores","union of the comoros","\u0625\u062A\u062D\u0627\u062F \u0627\u0644\u0642\u0645\u0631","\u0627\u062A\u062D\u0627\u062F \u062C\u0632\u0631 \u0627\u0644\u0642\u0645\u0631","\u0627\u0644\u0627\u062A\u062D\u0627\u062F \u0627\u0644\u0642\u0645\u0631\u064A","\u0627\u0644\u0642\u0645\u0631","\u062C\u0632\u0631 \u0627\u0644\u0642\u0645\u0631","\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u0627\u0644\u0642\u0645\u0631 \u0627\u0644\u0645\u062A\u062D\u062F\u0629","\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u062C\u0632\u0631 \u0627\u0644\u0642\u0645\u0631 \u0627\u0644\u0627\u062A\u062D\u0627\u062F\u064A\u0629 \u0627\u0644\u0625\u0633\u0644\u0627\u0645\u064A\u0629","\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u062C\u0632\u0631\u0627\u0644\u0642\u0645\u0631 \u0627\u0644\u0645\u062A\u062D\u062F\u0629"]},{iso3:"CPV",iso2:"CV",m49:"132",name:"Cabo Verde",aliases:["\u{1F1E8}\u{1F1FB}","cape verde","cape verde islands","kab verd","kabu verdi","kauberdi","republic of cabo verde","republic of cape verde","republica de cabo verde"]},{iso3:"CRI",iso2:"CR",m49:"188",name:"Costa Rica",aliases:["\u{1F1E8}\u{1F1F7}","republic of costa rica","republica de costa rica"]},{iso3:"CUB",iso2:"CU",m49:"192",name:"Cuba",aliases:["\u{1F1E8}\u{1F1FA}","isla juana","republic of cuba","republica de cuba"]},{iso3:"CUW",iso2:"CW",m49:"531",name:"Cura\xE7ao",aliases:["\u{1F1E8}\u{1F1FC}","corsou","corsouw","corsow","country of curacao","curacau","curacoa","curazao","cura\u03C2ao","curocao","island territory of curacao","korsou","land curacao","pais korsou"]},{iso3:"CXR",iso2:"CX",m49:"162",name:"Christmas Island",aliases:["\u{1F1E8}\u{1F1FD}","christmas island other territories","christmas island other territories australia","territory of christmas island"]},{iso3:"CYM",iso2:"KY",m49:"136",name:"Cayman Islands",aliases:["\u{1F1F0}\u{1F1FE}","caymans"]},{iso3:"CYP",iso2:"CY",m49:"196",name:"Cyprus",aliases:["\u{1F1E8}\u{1F1FE}","greek administration of southern cyprus","greek cypriot state","guney k\u0131br\u0131s","guney k\u0131br\u0131s rum cumhuriyeti","guney k\u0131br\u0131s rum kesimi","guney k\u0131br\u0131s rum yonetimi","kipriaki dhimokratia","k\u0131br\u0131s","k\u0131br\u0131s cumhuriyeti","k\u0131br\u0131s rum kesimi","kypriaki dimokratia","kypros","republic of cyprus","\u03BA\u03C5\u03C0\u03C1\u03B9\u03B1\u03BA\u03B7 \u03B4\u03B7\u03BC\u03BF\u03BA\u03C1\u03B1\u03C4\u03B9\u03B1","\u03BA\u03C5\u03C0\u03C1\u03BF\u03C2"]},{iso3:"CZE",iso2:"CZ",m49:"203",name:"Czechia",aliases:["\u{1F1E8}\u{1F1FF}","ceska republika","ceske kraje","ceske uzemi","ceske zeme","cesko","cr","czech republic"]},{iso3:"DEU",iso2:"DE",m49:"276",name:"Germany",aliases:["\u{1F1E9}\u{1F1EA}","br deutschland","bundesrepublik","bundesrepublik deutschland","deutschland","federal republic of germany"]},{iso3:"DJI",iso2:"DJ",m49:"262",name:"Djibouti",aliases:["\u{1F1E9}\u{1F1EF}","la republique de djibouti","republic of djibouti","republique de djibouti","\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u062C\u064A\u0628\u0648\u062A\u064A","\u062C\u064A\u0628\u0648\u062A\u064A"]},{iso3:"DMA",iso2:"DM",m49:"212",name:"Dominica",aliases:["\u{1F1E9}\u{1F1F2}","commonwealth of dominica","island of dominica","waitu kubuli"]},{iso3:"DNK",iso2:"DK",m49:"208",name:"Denmark",aliases:["\u{1F1E9}\u{1F1F0}","dania","danmark","denmark proper","kongeriget danmark","metropolitan denmark"]},{iso3:"DOM",iso2:"DO",m49:"214",name:"Dominican Republic",aliases:["\u{1F1E9}\u{1F1F4}","dominicana","domrep","haiti espanol","quisqueya","republica de santo domingo","republica dominicana","santo domingo"]},{iso3:"DZA",iso2:"DZ",m49:"012",name:"Algeria",aliases:["\u{1F1E9}\u{1F1FF}","peoples democratic republic of algeria","\u0627\u0644\u062C\u0632\u0627\u0626\u0631","\u0627\u0644\u062C\u0632\u0627\u064A\u0631","\u0627\u0644\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u0627\u0644\u062C\u0632\u0627\u0626\u0631\u064A\u0629 \u0627\u0644\u062F\u064A\u0645\u0642\u0631\u0627\u0637\u064A\u0629 \u0627\u0644\u0634\u0639\u0628\u064A\u0629","\u0627\u0644\u062F\u0632\u0627\u064A\u0631","\u062F\u0632\u0627\u064A\u0631"]},{iso3:"ECU",iso2:"EC",m49:"218",name:"Ecuador",aliases:["\u{1F1EA}\u{1F1E8}","ecuadorian state","el ecuador","estado ecuatoriano","republic of ecuador","republic of equator","republic of the equator","republica del ecuador"]},{iso3:"EGY",iso2:"EG",m49:"818",name:"Egypt",aliases:["\u{1F1EA}\u{1F1EC}","arab rep egypt","arab republic of egypt","rep egypt","republic of egypt","\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u0645\u0635\u0631 \u0627\u0644\u0639\u0631\u0628\u064A\u0629","\u0645\u0635\u0631"]},{iso3:"ERI",iso2:"ER",m49:"232",name:"Eritrea",aliases:["\u{1F1EA}\u{1F1F7}","ertra","hagere ertra","hagere iertra","iertra","iritriya","state of eritrea","\u0625\u0631\u062A\u0631\u064A\u0627","\u0625\u0631\u064A\u062A\u0631\u064A\u0627","\u0627\u0631\u062A\u0631\u064A\u0627","\u0627\u0631\u062A\u064A\u0631\u064A\u0627","\u0627\u0631\u064A\u062A\u0631\u064A\u0627","\u062F\u0648\u0644\u0629 \u0625\u0631\u062A\u0631\u064A\u0627","\u062F\u0648\u0644\u0629 \u0625\u0631\u064A\u062A\u0631\u064A\u0627","\u1203\u1308\u1228 \u12A4\u122D\u1275\u122B","\u12A4\u122D\u1275\u122B"]},{iso3:"ESH",iso2:"EH",m49:"732",name:"Western Sahara",aliases:["\u{1F1EA}\u{1F1ED}","southern provinces","spanish sahara","west sahara"]},{iso3:"ESP",iso2:"ES",m49:"724",name:"Spain",aliases:["\u{1F1EA}\u{1F1F8}","espana","estado espanol","kingdom of spain","reino de espana"]},{iso3:"EST",iso2:"EE",m49:"233",name:"Estonia",aliases:["\u{1F1EA}\u{1F1EA}","eesti","eesti noukogude sotsialistlik vabariik","eesti vabariik","estland","republic of estonia"]},{iso3:"ETH",iso2:"ET",m49:"231",name:"Ethiopia",aliases:["\u{1F1EA}\u{1F1F9}","federal democratic republic of ethiopia","ityopiya","yeityopiya federalawi demokrasiyawi ripeblik","yeityopiya hizbawi dimokrasiyawi ripublik","\u12A2\u1275\u12EE\u1335\u12EB","\u12E8\u12A2\u1275\u12EE\u1335\u12EB \u134C\u12F4\u122B\u120B\u12CA \u12F4\u121E\u12AD\u122B\u1232\u12EB\u12CA \u122A\u1350\u1265\u120A\u12AD"]},{iso3:"FIN",iso2:"FI",m49:"246",name:"Finland",aliases:["\u{1F1EB}\u{1F1EE}","republic of finland","republiken finland","suomen tasavalta","suomi"]},{iso3:"FJI",iso2:"FJ",m49:"242",name:"Fiji",aliases:["\u{1F1EB}\u{1F1EF}","fiji ganarajya","matanitu ko viti","matanitu tugalala o viti","republic of fiji","republic of the fiji islands","viti"]},{iso3:"FLK",iso2:"FK",m49:"238",name:"Falkland Islands (Malvinas)",aliases:["\u{1F1EB}\u{1F1F0}","colony of the falkland islands","falkland islands","falklands","islas malvinas","malvinas","malvinas islands"]},{iso3:"FRA",iso2:"FR",m49:"250",name:"France",aliases:["\u{1F1EB}\u{1F1F7}","fr","french republic","la france","la republique francaise","lhexagone","republique francaise"]},{iso3:"FRO",iso2:"FO",m49:"234",name:"Faroe Islands",aliases:["\u{1F1EB}\u{1F1F4}","faer oer","f\xE6r\xF8","faeroe is","faeroe islands","faeroe isles","f\xE6r\xF8erne","faeroes","far oer","faroe island","faroe isles","faroes","faroese islands","f\xF8roya","f\xF8royar","f\xF8royum"]},{iso3:"FSM",iso2:"FM",m49:"583",name:"Micronesia (Federated States of)",aliases:["\u{1F1EB}\u{1F1F2}","fed sts micronesia","fed sts of micronesia","federated states of micronesia","federated states of micronesia fsm","micronesia"]},{iso3:"GAB",iso2:"GA",m49:"266",name:"Gabon",aliases:["\u{1F1EC}\u{1F1E6}","gabonese republic","la republique gabonaise","le gabon","republique du gabon","republique gabonaise"]},{iso3:"GBR",iso2:"GB",m49:"826",name:"United Kingdom of Great Britain and Northern Ireland",aliases:["\u{1F1EC}\u{1F1E7}","britain","england","great britain","great britain and northern ireland","northern ireland","scotland","uk","united kingdom","wales"]},{iso3:"GEO",iso2:"GE",m49:"268",name:"Georgia",aliases:["\u{1F1EC}\u{1F1EA}","georgia country","republic of georgia","sakartvelo","\u049B\u044B\u0440\u04AD\u0442\u04D9\u044B\u043B\u0430","\u10E1\u10D0\u10E5\u10D0\u10E0\u10D7\u10D5\u10D4\u10DA\u10DD","\u10E1\u10D0\u10E5\u10D0\u10E0\u10D7\u10D5\u10D4\u10DA\u10DD\u10E1 \u10E0\u10D4\u10E1\u10DE\u10E3\u10D1\u10DA\u10D8\u10D9\u10D0"]},{iso3:"GGY",iso2:"GG",m49:"831",name:"Guernsey",aliases:["\u{1F1EC}\u{1F1EC}","bailiwick of guernsey","bailliage de guernesey","bailliage de guernesi","giernesi","great britain guernsey","guernesey","lisia"]},{iso3:"GHA",iso2:"GH",m49:"288",name:"Ghana",aliases:["\u{1F1EC}\u{1F1ED}","republic of ghana"]},{iso3:"GIB",iso2:"GI",m49:"292",name:"Gibraltar",aliases:["\u{1F1EC}\u{1F1EE}","rock of gibraltar"]},{iso3:"GIN",iso2:"GN",m49:"324",name:"Guinea",aliases:["\u{1F1EC}\u{1F1F3}","guinee","guinee conakry","republic of guinea","republique de guinee"]},{iso3:"GLP",iso2:"GP",m49:"312",name:"Guadeloupe",aliases:["\u{1F1EC}\u{1F1F5}"]},{iso3:"GMB",iso2:"GM",m49:"270",name:"Gambia",aliases:["\u{1F1EC}\u{1F1F2}","islamic republic of the gambia","republic of the gambia"]},{iso3:"GNB",iso2:"GW",m49:"624",name:"Guinea-Bissau",aliases:["\u{1F1EC}\u{1F1FC}","guine bissau","republic of guinea bissau","republica da guine bissau"]},{iso3:"GNQ",iso2:"GQ",m49:"226",name:"Equatorial Guinea",aliases:["\u{1F1EC}\u{1F1F6}","guine equatorial","guinea ecuatorial","guinea espanola","guinee equat","guinee equatoriale","la republique de guinee equatoriale","posesiones espanolas del golfo de guinea","provincia de la guinea ecuatorial","republic of equatorial guinea","republica da guine equatorial","republica de guinea ecuatorial","territorios espanoles del golfo de guinea"]},{iso3:"GRC",iso2:"GR",m49:"300",name:"Greece",aliases:["\u{1F1EC}\u{1F1F7}","ellada","ellas","elliniki dhimokratia","elliniki dimokratia","greek republic","hellas","hellas greece","hellenic republic","vasilion tis ellados","\u03B4\u03B7\u03BC\u03BF\u03BA\u03C1\u03B1\u03C4\u03B9\u03B1 \u03C4\u03B7\u03C2 \u03B5\u03BB\u03BB\u03B1\u03B4\u03B1\u03C2","\u03B4\u03B7\u03BC\u03BF\u03BA\u03C1\u03B1\u03C4\u03B9\u03B1 \u03C4\u03B7\u03C2 \u03B5\u03BB\u03BB\u03B1\u03B4\u03BF\u03C2","\u03B5\u03BB\u03BB\u03B1\u03B4\u03B1","\u03B5\u03BB\u03BB\u03B1\u03C2","\u03B5\u03BB\u03BB\u03B1\u03C2 \u03B5\u03BB\u03BB\u03B1\u03B4\u03B1","\u03B5\u03BB\u03BB\u03B7\u03BD\u03B9\u03BA\u03B7 \u03B4\u03B7\u03BC\u03BF\u03BA\u03C1\u03B1\u03C4\u03B9\u03B1"]},{iso3:"GRD",iso2:"GD",m49:"308",name:"Grenada",aliases:["\u{1F1EC}\u{1F1E9}"]},{iso3:"GRL",iso2:"GL",m49:"304",name:"Greenland",aliases:["\u{1F1EC}\u{1F1F1}","kalaallit nunaat"]},{iso3:"GTM",iso2:"GT",m49:"320",name:"Guatemala",aliases:["\u{1F1EC}\u{1F1F9}","republic of guatemala","republica de guatemala"]},{iso3:"GUF",iso2:"GF",m49:"254",name:"French Guiana",aliases:["\u{1F1EC}\u{1F1EB}","fr 973","guiana","guiana france","guyane","guyane francaise","gwiyann","gwiyann franse","lagwiyann"]},{iso3:"GUM",iso2:"GU",m49:"316",name:"Guam",aliases:["\u{1F1EC}\u{1F1FA}","guahan","guam usa","islan guahan","island of guam","territory of guam"]},{iso3:"GUY",iso2:"GY",m49:"328",name:"Guyana",aliases:["\u{1F1EC}\u{1F1FE}","co operative republic of guyana","republic of guyana"]},{iso3:"HKG",iso2:"HK",m49:"344",name:"Hong Kong",aliases:["\u{1F1ED}\u{1F1F0}","hksar","hong kong sar","hong kong special administrative region","hong kong special administrative region of the peoples republic of china","hongkong"]},{iso3:"HMD",iso2:"HM",m49:"334",name:"Heard Island and McDonald Islands",aliases:["\u{1F1ED}\u{1F1F2}","heard","heard & mcdonald islands","heard and macdonald islands","heard island","himi","mcdonald","mcdonald island","territory of heard island and mcdonald islands"]},{iso3:"HND",iso2:"HN",m49:"340",name:"Honduras",aliases:["\u{1F1ED}\u{1F1F3}","guaymuras","higueras","honduran republic","republic of honduras","republica de honduras"]},{iso3:"HRV",iso2:"HR",m49:"191",name:"Croatia",aliases:["\u{1F1ED}\u{1F1F7}","hrvatska","republic of croatia","republika hrvatska"]},{iso3:"HTI",iso2:"HT",m49:"332",name:"Haiti",aliases:["\u{1F1ED}\u{1F1F9}","ayiti","haitian republic","la republique dhaiti","repiblik d ayiti","republic of haiti","republique dhaiti"]},{iso3:"HUN",iso2:"HU",m49:"348",name:"Hungary",aliases:["\u{1F1ED}\u{1F1FA}","a magyar koztarsasag","a magyar nepkoztarsasag","harmadik magyar koztarsasag","magyar koztarsasag","magyar nepkoztarsasag","magyarorszag","mo"]},{iso3:"IDN",iso2:"ID",m49:"360",name:"Indonesia",aliases:["\u{1F1EE}\u{1F1E9}","negara kesatuan republik indonesia","nkri","republic of indonesia","republik indonesia"]},{iso3:"IMN",iso2:"IM",m49:"833",name:"Isle of Man",aliases:["\u{1F1EE}\u{1F1F2}","ellan vannin","i man","i mann","i mannin","isle of mann","mann","mannin","manx"]},{iso3:"IND",iso2:"IN",m49:"356",name:"India",aliases:["\u{1F1EE}\u{1F1F3}","al hind","bharat","bharat ganarajya","bharata","bharatvarsh","hindoostan","hindustan","indostan","republic of india","tenjiku","tianzhu","\u0906\u0930\u094D\u092F\u0935\u0930\u094D\u0924","\u0907\u0902\u0921\u093F\u092F\u093E","\u0907\u0923\u094D\u0921\u093F\u092F\u093E","\u092D\u093E\u0930\u0924","\u092D\u093E\u0930\u0924 \u0917\u0923\u0930\u093E\u091C\u094D\u092F","\u092D\u093E\u0930\u0924\u0935\u0930\u094D\u0937","\u0939\u093F\u0902\u0926\u0941\u0938\u094D\u0924\u093E\u0928","\u0939\u093F\u0928\u094D\u0926\u0941\u0938\u094D\u0924\u093E\u0928","\u0939\u093F\u0928\u094D\u0926\u094B\u0938\u094D\u0924\u093E\u0928"]},{iso3:"IOT",iso2:"IO",m49:"086",name:"British Indian Ocean Territory",aliases:["\u{1F1EE}\u{1F1F4}","biot"]},{iso3:"IRL",iso2:"IE",m49:"372",name:"Ireland",aliases:["\u{1F1EE}\u{1F1EA}","eire","hibernia","irish republic","poblacht na heireann","republic of ireland","southern ireland"]},{iso3:"IRN",iso2:"IR",m49:"364",name:"Iran (Islamic Republic of)",aliases:["\u{1F1EE}\u{1F1F7}","iran","islamic rep iran","islamic republic of iran","persia","\u0627\u06CC\u0631\u0627\u0646","\u0627\u06CC\u0631\u0627\u0646\u0632\u0645\u06CC\u0646","\u067E\u0627\u0631\u0633","\u062C\u0645\u0647\u0648\u0631\u06CC \u0627\u0633\u0644\u0627\u0645\u06CC \u0627\u064A\u0631\u0627\u0646","\u062C\u0645\u0647\u0648\u0631\u06CC \u0627\u0633\u0644\u0627\u0645\u06CC \u0627\u06CC\u0631\u0627\u0646","\u0643\u0634\u0648\u0631 \u0634\u0627\u0647\u0646\u0634\u0627\u0647\u06CC \u0627\u064A\u0631\u0627\u0646"]},{iso3:"IRQ",iso2:"IQ",m49:"368",name:"Iraq",aliases:["\u{1F1EE}\u{1F1F6}","eraq","iraqe","komar i eraq","republic of iraq","\u0627\u0644\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u0627\u0644\u0639\u0631\u0627\u0642\u064A\u0629","\u0627\u0644\u0639\u0631\u0627\u0642","\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u0627\u0644\u0639\u0631\u0627\u0642","\u0639\u0631\u0627\u0642","\u0639\u06CE\u0631\u0627\u0642"]},{iso3:"ISL",iso2:"IS",m49:"352",name:"Iceland",aliases:["\u{1F1EE}\u{1F1F8}","icelandic republic","island","ly\xF0veldi\xF0 island","republic of iceland","ysland"]},{iso3:"ISR",iso2:"IL",m49:"376",name:"Israel",aliases:["\u{1F1EE}\u{1F1F1}","erez yisrael","medinat yisrael","state of israel","yisrael","\u05D9\u05E9\u05E8\u05D0\u05DC","\u05DE\u05D3\u05D9\u05E0\u05EA \u05D9\u05E9\u05E8\u05D0\u05DC"]},{iso3:"ITA",iso2:"IT",m49:"380",name:"Italy",aliases:["\u{1F1EE}\u{1F1F9}","il bel paese","italia","italian republic","repubblica italiana","republic of italy"]},{iso3:"JAM",iso2:"JM",m49:"388",name:"Jamaica",aliases:["\u{1F1EF}\u{1F1F2}","commonwealth of jamaica","jamieka","jomieka","jumieka"]},{iso3:"JEY",iso2:"JE",m49:"832",name:"Jersey",aliases:["\u{1F1EF}\u{1F1EA}","bailliage de jerri","bailliage de jersey","balliwick of jersey","i iersey","i jersey","iersey","iersey i","isle of jersey","jerri","jersey i","jersey island"]},{iso3:"JOR",iso2:"JO",m49:"400",name:"Jordan",aliases:["\u{1F1EF}\u{1F1F4}","giordania","hashemite kingdom of jordan","kingdom of jordan","state of jordan","yarden","\u0627\u0644\u0623\u0631\u062F\u0646","\u0627\u0644\u0627\u0631\u062F\u0646","\u0627\u0644\u0645\u0645\u0644\u0643\u0629 \u0627\u0644\u0623\u0631\u062F\u0646\u064A\u0629 \u0627\u0644\u0647\u0627\u0634\u0645\u064A\u0629","\u0627\u0644\u0645\u0645\u0644\u0643\u0629 \u0627\u0644\u0627\u0631\u062F\u0646\u064A\u0629 \u0627\u0644\u0647\u0627\u0634\u0645\u064A\u0629"]},{iso3:"JPN",iso2:"JP",m49:"392",name:"Japan",aliases:["\u{1F1EF}\u{1F1F5}","state of japan","\u3042\u304D\u3064\u3057\u307E","\u304A\u304A\u3084\u3057\u307E","\u3057\u304D\u3057\u307E","\u30B8\u30E3\u30D1\u30F3","\u3057\u3093\u3057\u3085\u3046","\u306B\u3063\u307D\u3093","\u306B\u3063\u307D\u3093\u3053\u304F","\u306B\u307B\u3093","\u306B\u307B\u3093\u3053\u304F","\u3072\u3044\u305A\u308B\u304F\u306B","\u3075\u305D\u3046","\u5927\u516B\u5DDE","\u6276\u6728\u4E4B\u5730","\u6276\u6851","\u6276\u6851\u56FD","\u6577\u5CF6","\u65E5\u51FA\u308B\u56FD","\u65E5\u672C","\u6991\u6728\u4E4B\u5730","\u745E\u7A42\u56FD","\u795E\u5DDE","\u79CB\u6D25\u5CF6","\u8466\u539F\u4E2D\u56FD"]},{iso3:"KAZ",iso2:"KZ",m49:"398",name:"Kazakhstan",aliases:["\u{1F1F0}\u{1F1FF}","qazaqstan","qazaqstan respublikasy","republic of kazakhstan","\u043A\u0430\u0437\u0430\u0445\u0441\u0442\u0430\u043D","\u049B\u0430\u0437\u0430\u049B\u0441\u0442\u0430\u043D","\u049B\u0430\u0437\u0430\u049B\u0441\u0442\u0430\u043D \u0440\u0435\u0441\u043F\u0443\u0431\u043B\u0438\u043A\u0430\u0441\u044B","\u0440\u0435\u0441\u043F\u0443\u0431\u043B\u0438\u043A\u0430 \u043A\u0430\u0437\u0430\u0445\u0441\u0442\u0430\u043D","\u0440\u043A"]},{iso3:"KEN",iso2:"KE",m49:"404",name:"Kenya",aliases:["\u{1F1F0}\u{1F1EA}","jamhuri ya kenya","republic of kenya"]},{iso3:"KGZ",iso2:"KG",m49:"417",name:"Kyrgyzstan",aliases:["\u{1F1F0}\u{1F1EC}","kyrgyz republic","kyrgyz respublikasy","kyrgyzstan respublikasy","\u043A\u0440","\u043A\u044B\u0440\u0433\u044B\u0437 \u0440\u0435\u0441\u043F\u0443\u0431\u043B\u0438\u043A\u0430\u0441\u044B","\u043A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D"]},{iso3:"KHM",iso2:"KH",m49:"116",name:"Cambodia",aliases:["\u{1F1F0}\u{1F1ED}","camboya","campuchia","kambodzha","kamboja","kampuchea","kingdom of cambodia","\u1780\u1798\u17D2\u1796\u17BB\u1787\u17B6","\u1796\u17D2\u179A\u17C7\u179A\u17B6\u1787\u17B6\u178E\u17B6\u1785\u1780\u17D2\u179A\u1780\u1798\u17D2\u1796\u17BB\u1787\u17B6"]},{iso3:"KIR",iso2:"KI",m49:"296",name:"Kiribati",aliases:["\u{1F1F0}\u{1F1EE}","republic of kiribati"]},{iso3:"KNA",iso2:"KN",m49:"659",name:"Saint Kitts and Nevis",aliases:["\u{1F1F0}\u{1F1F3}","federation of saint christopher and nevis","federation of saint kitts and nevis","kitts & nevis","nevis","saint christopher","saint christopher and nevis","saint kitts"]},{iso3:"KOR",iso2:"KR",m49:"410",name:"Republic of Korea",aliases:["\u{1F1F0}\u{1F1F7}","korea","korea republic","korea republic of","korea south","rep korea","s korea","south korea","taehan minguk","\uB0A8\uC870\uC120","\uB0A8\uD55C","\uB300\uD55C","\uB300\uD55C\uBBFC\uAD6D","\uCF54\uB9AC\uC544","\uD55C\uAD6D"]},{iso3:"KWT",iso2:"KW",m49:"414",name:"Kuwait",aliases:["\u{1F1F0}\u{1F1FC}","state of kuwait","\u0627\u0644\u0643\u0648\u064A\u062A","\u062F\u0648\u0644\u0629 \u0627\u0644\u0643\u0648\u064A\u062A"]},{iso3:"LAO",iso2:"LA",m49:"418",name:"Lao People's Democratic Republic",aliases:["\u{1F1F1}\u{1F1E6}","laos","sathalanalat paxathipatai paxaxon lao","\u0EAA\u0EB2\u0E97\u0EB2\u0EA5\u0EB0\u0E99\u0EB0\u0EA5\u0EB1\u0E94 \u0E9B\u0EB0\u0E8A\u0EB2\u0E97\u0EB4\u0E9B\u0EB0\u0EC4\u0E95 \u0E9B\u0EB0\u0E8A\u0EB2\u0E8A\u0EBB\u0E99\u0EA5\u0EB2\u0EA7","\u0E9B\u0EB0\u0EC0\u0E97\u0E94\u0EA5\u0EB2\u0EA7","\u0EA5\u0EB2\u0EA7"]},{iso3:"LBN",iso2:"LB",m49:"422",name:"Lebanon",aliases:["\u{1F1F1}\u{1F1E7}","lebanese republic","republic of lebanon","state of lebanon","\u0627\u0644\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u0627\u0644\u0644\u0628\u0646\u0627\u0646\u064A\u0629","\u0644\u0628\u0646\u0627\u0646"]},{iso3:"LBR",iso2:"LR",m49:"430",name:"Liberia",aliases:["\u{1F1F1}\u{1F1F7}","liber","republic of liberia"]},{iso3:"LBY",iso2:"LY",m49:"434",name:"Libya",aliases:["\u{1F1F1}\u{1F1FE}","state of libya","\u0627\u0644\u062C\u0645\u0627\u0647\u064A\u0631\u064A\u0629 \u0627\u0644\u0639\u0631\u0628\u064A\u0629 \u0627\u0644\u0644\u064A\u0628\u064A\u0629 \u0627\u0644\u0634\u0639\u0628\u064A\u0629 \u0627\u0644\u0625\u0634\u062A\u0631\u0627\u0643\u064A\u0629","\u0627\u0644\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u0627\u0644\u0644\u064A\u0628\u064A\u0629","\u0627\u0644\u0644\u064A\u0628\u064A","\u0627\u0644\u0644\u064A\u0628\u064A\u0629","\u0627\u0644\u0644\u064A\u0628\u064A\u0646","\u062F\u0648\u0644\u0629 \u0644\u064A\u0628\u064A\u0627","\u0644\u064A\u0628\u0628\u064A\u0627","\u0644\u064A\u0628\u064A","\u0644\u064A\u0628\u064A\u0627","\u0644\u064A\u0628\u064A\u0629"]},{iso3:"LCA",iso2:"LC",m49:"662",name:"Saint Lucia",aliases:["\u{1F1F1}\u{1F1E8}","hewanorra","iyonola"]},{iso3:"LIE",iso2:"LI",m49:"438",name:"Liechtenstein",aliases:["\u{1F1F1}\u{1F1EE}","furstentum lichtenstein","furstentum liechtenstein","principality of liechtenstein"]},{iso3:"LKA",iso2:"LK",m49:"144",name:"Sri Lanka",aliases:["\u{1F1F1}\u{1F1F0}","ceylan","ceylon","democratic socialist republic of sri lanka","ilankaic cananayaka cocalicak kutiyarcu","lankava","prajatantravadi samajavadi janarajaya sri lanka","serendib","srilanka","taprobane","\u0B87\u0BB2\u0B99\u0BCD\u0B95\u0BC8","\u0B87\u0BB2\u0B99\u0BCD\u0B95\u0BC8 \u0B9A\u0BA9\u0BA8\u0BBE\u0BAF\u0B95 \u0B9A\u0BCB\u0B9A\u0BB2\u0BBF\u0B9A\u0B95\u0BCD \u0B95\u0BC1\u0B9F\u0BBF\u0BAF\u0BB0\u0B9A\u0BC1","\u0B87\u0BB2\u0B99\u0BCD\u0B95\u0BC8 \u0B9A\u0BA9\u0BA8\u0BBE\u0BAF\u0B95 \u0B9A\u0BCB\u0BB7\u0BB2\u0BBF\u0B9A\u0B95\u0BCD \u0B95\u0BC1\u0B9F\u0BBF\u0BAF\u0BB0\u0B9A\u0BC1","\u0B88\u0BB4\u0BAE\u0BCD","\u0B9A\u0BBF\u0BB2\u0BCB\u0BA9\u0BCD","\u0DBD\u0D82\u0D9A\u0DCF\u0DC0","\u0DC1\u0DCA\u0DBB\u0DD3 \u0DBD\u0D82\u0D9A\u0DCF \u0DB4\u0DCA\u0DBB\u0DA2\u0DCF\u0DAD\u0DB1\u0DCA\u0DAD\u0DCA\u0DBB\u0DC0\u0DCF\u0DAF\u0DD3 \u0DC3\u0DB8\u0DCF\u0DA2\u0DC0\u0DCF\u0DAF\u0DD3 \u0DA2\u0DB1\u0DBB\u0DA2\u0DBA","\u0DC1\u0DCA\u0DBB\u0DD3 \u0DBD\u0D82\u0D9A\u0DCF\u0DC0","\u0DC1\u0DCA\u200D\u0DBB\u0DD3 \u0DBD\u0D82\u0D9A\u0DCF\u0DC0"]},{iso3:"LSO",iso2:"LS",m49:"426",name:"Lesotho",aliases:["\u{1F1F1}\u{1F1F8}","kingdom of lesotho","mmuso wa lesotho","mountain kingdom"]},{iso3:"LTU",iso2:"LT",m49:"440",name:"Lithuania",aliases:["\u{1F1F1}\u{1F1F9}","lietuva","lietuvos respublika","republic of lithuania"]},{iso3:"LUX",iso2:"LU",m49:"442",name:"Luxembourg",aliases:["\u{1F1F1}\u{1F1FA}","grand duche","grand duche de luxembourg","grand duchy of luxembourg","gro\xDFherzogtum luxemburg","groussherzogtum letzebuerg","le grand duche de luxembourg","letzebuerg","letzebuerger land","lux","luxemburg"]},{iso3:"LVA",iso2:"LV",m49:"428",name:"Latvia",aliases:["\u{1F1F1}\u{1F1FB}","latveja","latvejas republika","latvian republic","latvija","latvijas republika","letm\u043E","letm\u043E vabam\u043E","republic of latvia"]},{iso3:"MAC",iso2:"MO",m49:"446",name:"Macao",aliases:["\u{1F1F2}\u{1F1F4}","aomen","macao sar","macao special administrative region","macao special administrative region of the peoples republic of china","macau","macau rae da china","macau sar","macau special administrative region","macau special administrative region of the peoples republic of china","raem","regiao administrativa especial de macau","regiao administrativa especial de macau da republica popular da china","\u4E2D\u570B\u6FB3\u9580\u7279\u5225\u884C\u653F\u5340","\u6FB3\u9580"]},{iso3:"MAF",iso2:"MF",m49:"663",name:"Saint Martin (French Part)",aliases:["\u{1F1F2}\u{1F1EB}","collectivite de saint martin","collectivity of saint martin","saint martin","saint martin antilles francaises","saint martin france"]},{iso3:"MAR",iso2:"MA",m49:"504",name:"Morocco",aliases:["\u{1F1F2}\u{1F1E6}","kingdom of morocco","\u0627\u0644\u0645\u063A\u0631\u0628","\u0627\u0644\u0645\u0645\u0644\u0643\u0629 \u0627\u0644\u0645\u063A\u0631\u0628\u064A\u0629","\u2D30\u2D4E\u2D53\u2D54 \u2D4F \u2D61\u2D30\u2D3D\u2D53\u2D5B","\u2D30\u2D4E\u2D55\u2D55\u2D53\u2D3D","\u2D4D\u2D4E\u2D55\u2D55\u2D53\u2D3D","\u2D4D\u2D4E\u2D56\u2D54\u2D49\u2D31","\u2D5C\u2D30\u2D33\u2D4D\u2D37\u2D49\u2D5C \u2D4F \u2D4D\u2D4E\u2D56\u2D54\u2D49\u2D31"]},{iso3:"MCO",iso2:"MC",m49:"492",name:"Monaco",aliases:["\u{1F1F2}\u{1F1E8}","fort hercule","la principaute de monaco","monaco rattachee au district de menton en 1793","munegu","principality and diocese of monaco","principality of monaco","principatu de munegu","principaute de monaco"]},{iso3:"MDA",iso2:"MD",m49:"498",name:"Republic of Moldova",aliases:["\u{1F1F2}\u{1F1E9}","moldavia","moldova","moldova republic of","moldova republica","r moldova","rep moldova","republica moldova","\u043C\u043E\u043B\u0434\u043E\u0432\u0430"]},{iso3:"MDG",iso2:"MG",m49:"450",name:"Madagascar",aliases:["\u{1F1F2}\u{1F1EC}","la republique de madagascar","madagasikara","repoblikani madagasikara","republic of madagascar","republique de madagascar"]},{iso3:"MDV",iso2:"MV",m49:"462",name:"Maldives",aliases:["\u{1F1F2}\u{1F1FB}","dhivehi raajjeyge jumhooriyyaa","republic of maldives","\u078B\u07A8\u0788\u07AC\u0780\u07A8 \u0783\u07A7\u0787\u07B0\u0796\u07AC","\u078B\u07A8\u0788\u07AC\u0780\u07A8\u0783\u07A7\u0787\u07B0\u0796\u07AC","\u078B\u07A8\u0788\u07AC\u0780\u07A8\u0783\u07A7\u0787\u07B0\u0796\u07AD\u078E\u07AC \u0796\u07AA\u0789\u07AA\u0780\u07AB\u0783\u07A8\u0787\u07B0\u0794\u07A7","\u078B\u07A8\u0788\u07AC\u0780\u07A8\u0783\u07A7\u0787\u07B0\u0796\u07AD\u078E\u07AC \u0796\u07AA\u0789\u07B0\u0780\u07AB\u0783\u07A8\u0787\u07B0\u0794\u07A7"]},{iso3:"MEX",iso2:"MX",m49:"484",name:"Mexico",aliases:["\u{1F1F2}\u{1F1FD}","estados unidos mejicanos","estados unidos mexicanos","mejico","mexican republic","mexican united states","mexihco","mexihko","mexika sentik wexteyowalko","mexiko","mexko","mexko axkayotl","mexko tlalli","nueva espana","republica mejicana","republica mexicana","united mexican states","united states of mexico"]},{iso3:"MHL",iso2:"MH",m49:"584",name:"Marshall Islands",aliases:["\u{1F1F2}\u{1F1ED}","aelon kein ad","aolepan aorokin majel","jolet jen anij","majel","majol","republic of the marshall islands"]},{iso3:"MKD",iso2:"MK",m49:"807",name:"North Macedonia",aliases:["\u{1F1F2}\u{1F1F0}","former yugoslav republic of macedonia","fyr macedonia","fyrom","irjm","ish republika jugosllave e maqedonise","macedonia","macedonia former yugoslav republic of","macedonia fyr","maqedoni","maqedonia","maqedonia e veriut","republic of macedonia","republic of north macedonia","republika e maqedonise","republika e maqedonise se veriut","\u043C\u0430\u043A\u0435\u0434\u043E\u043D\u0438\u0458\u0430","\u0440\u0435\u043F\u0443\u0431\u043B\u0438\u043A\u0430 \u043C\u0430\u043A\u0435\u0434\u043E\u043D\u0438\u0458\u0430","\u0440\u0435\u043F\u0443\u0431\u043B\u0438\u043A\u0430 \u0441\u0435\u0432\u0435\u0440\u043D\u0430 \u043C\u0430\u043A\u0435\u0434\u043E\u043D\u0438\u0458\u0430","\u0440\u043C","\u0440\u0441\u043C","\u0441\u0435\u0432\u0435\u0440\u043D\u0430 \u043C\u0430\u043A\u0435\u0434\u043E\u043D\u0438\u0458\u0430"]},{iso3:"MLI",iso2:"ML",m49:"466",name:"Mali",aliases:["\u{1F1F2}\u{1F1F1}","maali","republic of mali"]},{iso3:"MLT",iso2:"MT",m49:"470",name:"Malta",aliases:["\u{1F1F2}\u{1F1F9}","malta island","repubblika ta malta","republic of malta"]},{iso3:"MMR",iso2:"MM",m49:"104",name:"Myanmar",aliases:["\u{1F1F2}\u{1F1F2}","burma","pyidaungzu myanma naingngandaw","pyidaungzu thammada myanma naingngandaw","republic of the union of myanmar","union of burma","\u1015\u103C\u100A\u103A\u1011\u1031\u102C\u1004\u103A\u1005\u102F \u1019\u103C\u1014\u103A\u1019\u102C\u1014\u102D\u102F\u1004\u103A\u1004\u1036","\u1015\u103C\u100A\u103A\u1011\u1031\u102C\u1004\u103A\u1005\u102F \u1019\u103C\u1014\u103A\u1019\u102C\u1014\u102D\u102F\u1004\u103A\u1004\u1036\u1010\u1031\u102C\u103A","\u1015\u103C\u100A\u103A\u1011\u1031\u102C\u1004\u103A\u1005\u102F \u101E\u1019\u1039\u1019\u1010 \u1019\u103C\u1014\u103A\u1019\u102C\u1014\u102D\u102F\u1004\u103A\u1004\u1036","\u1015\u103C\u100A\u103A\u1011\u1031\u102C\u1004\u103A\u1005\u102F \u101E\u1019\u1039\u1019\u1010 \u1019\u103C\u1014\u103A\u1019\u102C\u1014\u102D\u102F\u1004\u103A\u1004\u1036\u1010\u1031\u102C\u103A","\u1015\u103C\u100A\u103A\u1011\u1031\u102C\u1004\u103A\u1005\u102F\u1019\u103C\u1014\u103A\u1019\u102C\u1014\u102D\u102F\u1004\u103A\u1004\u1036\u1010\u1031\u102C\u103A","\u1015\u103C\u100A\u103A\u1011\u1031\u102C\u1004\u103A\u1005\u102F\u101E\u1019\u1039\u1019\u1010\u1019\u103C\u1014\u103A\u1019\u102C\u1014\u102D\u102F\u1004\u103A\u1004\u1036","\u1015\u103C\u200C\u100A\u103A\u1011\u1031\u102C\u1004\u103A\u1005\u102F\u101E\u1019\u1039\u1019\u1010\u1019\u103C\u1014\u103A\u1019\u102C\u1014\u102D\u102F\u1004\u103A\u1004\u1036","\u1015\u103C\u100A\u103A\u1011\u1031\u102C\u1004\u103A\u1005\u102F\u101E\u1019\u1039\u1019\u1010\u1019\u103C\u1014\u103A\u1019\u102C\u1014\u102D\u102F\u1004\u103A\u1004\u1036\u1010\u1031\u102C\u103A","\u1017\u1019\u102C\u1015\u103C\u100A\u103A","\u1019\u103C\u1014\u103A\u1019\u102C","\u1019\u103C\u1014\u103A\u1019\u102C\u1014\u102D\u102F\u1004\u103A\u1004\u1036","\u1019\u103C\u1014\u103A\u1019\u102C\u1014\u102D\u102F\u1004\u103A\u1004\u1036\u1010\u1031\u102C\u103A","\u1019\u103C\u1014\u103A\u1019\u102C\u1015\u103C\u100A\u103A"]},{iso3:"MNE",iso2:"ME",m49:"499",name:"Montenegro",aliases:["\u{1F1F2}\u{1F1EA}","crna cora","\u0446\u0440\u043D\u0430 \u0433\u043E\u0440\u0430"]},{iso3:"MNG",iso2:"MN",m49:"496",name:"Mongolia",aliases:["\u{1F1F2}\u{1F1F3}","bugd nayramdah mongol ard uls","mongol uls","state of mongolia","\u043C\u043E\u043D\u0433\u043E\u043B","\u043C\u043E\u043D\u0433\u043E\u043B \u0443\u043B\u0441","\u182E\u1824\u1829\u182D\u1824\u182F \u1824\u182F\u1824\u1830"]},{iso3:"MNP",iso2:"MP",m49:"580",name:"Northern Mariana Islands",aliases:["\u{1F1F2}\u{1F1F5}","cnmi","commonwealth of the northern maria islands","commonwealth of the northern mariana islands","northern marianas","notte marianas","sankattan siha na islas marianas"]},{iso3:"MOZ",iso2:"MZ",m49:"508",name:"Mozambique",aliases:["\u{1F1F2}\u{1F1FF}","mocambique","republic of mozambique","republica de mocambique"]},{iso3:"MRT",iso2:"MR",m49:"478",name:"Mauritania",aliases:["\u{1F1F2}\u{1F1F7}","islamic republic of mauritania","\u0627\u0644\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u0627\u0644\u0625\u0633\u0644\u0627\u0645\u064A\u0629 \u0627\u0644\u0645\u0648\u0631\u064A\u062A\u0627\u0646\u064A\u0629","\u0645\u0648\u0631\u064A\u062A\u0627\u0646\u064A\u0627"]},{iso3:"MSR",iso2:"MS",m49:"500",name:"Montserrat",aliases:["\u{1F1F2}\u{1F1F8}","island of montserrat"]},{iso3:"MTQ",iso2:"MQ",m49:"474",name:"Martinique",aliases:["\u{1F1F2}\u{1F1F6}","territorial collectivity of martinique"]},{iso3:"MUS",iso2:"MU",m49:"480",name:"Mauritius",aliases:["\u{1F1F2}\u{1F1FA}","ile maurice","la republique de maurice","maurice","moris","republic of mauritius","republique de maurice"]},{iso3:"MWI",iso2:"MW",m49:"454",name:"Malawi",aliases:["\u{1F1F2}\u{1F1FC}","republic of malawi"]},{iso3:"MYS",iso2:"MY",m49:"458",name:"Malaysia",aliases:["\u{1F1F2}\u{1F1FE}","federation of malaysia","malaysia federation","negara seberang tambak","persekutuan malaysia"]},{iso3:"MYT",iso2:"YT",m49:"175",name:"Mayotte",aliases:["\u{1F1FE}\u{1F1F9}","departement de mayotte","departement region de mayotte","department of mayotte"]},{iso3:"NAM",iso2:"NA",m49:"516",name:"Namibia",aliases:["\u{1F1F3}\u{1F1E6}","republic of namibia"]},{iso3:"NCL",iso2:"NC",m49:"540",name:"New Caledonia",aliases:["\u{1F1F3}\u{1F1E8}","caledonie","kanaky","kanaky nouvelle caledonie","nouvelle caledonie","territoire de la nouvelle caledonie et dependances","territoire des nouvelle caledonie et dependances","territory of new caledonia and dependencies"]},{iso3:"NER",iso2:"NE",m49:"562",name:"Niger",aliases:["\u{1F1F3}\u{1F1EA}","jamhuriyar nijar","nijar","republic niger","republic of niger","republic of the niger"]},{iso3:"NFK",iso2:"NF",m49:"574",name:"Norfolk Island",aliases:["\u{1F1F3}\u{1F1EB}","norfolk island australia","norfolk island other territories","norfolk island other territories australia","territory of norfolk island"]},{iso3:"NGA",iso2:"NG",m49:"566",name:"Nigeria",aliases:["\u{1F1F3}\u{1F1EC}","federal republic of nigeria","naija"]},{iso3:"NIC",iso2:"NI",m49:"558",name:"Nicaragua",aliases:["\u{1F1F3}\u{1F1EE}","republic of nicaragua","republica de nicaragua"]},{iso3:"NIU",iso2:"NU",m49:"570",name:"Niue",aliases:["\u{1F1F3}\u{1F1FA}"]},{iso3:"NLD",iso2:"NL",m49:"528",name:"Kingdom of the Netherlands",aliases:["\u{1F1F3}\u{1F1F1}","hollandt","kingdom of netherlands","koninkrijk der nederlanden","nederland","nederlanden","nederlandt","netherlands","netherlands kingdom of the"]},{iso3:"NOR",iso2:"NO",m49:"578",name:"Norway",aliases:["\u{1F1F3}\u{1F1F4}","kingdom of norway","kongeriket noreg","kongeriket norge","noreg","norge"]},{iso3:"NPL",iso2:"NP",m49:"524",name:"Nepal",aliases:["\u{1F1F3}\u{1F1F5}","bal bo","bal poi yul","bal yul","balbo","balpo","balpo yul","nipal","sanghiya loktantrik ganatantra nepal","\u0928\u0947\u092A\u093E\u0932","\u0938\u0902\u0918\u093F\u092F \u0932\u094B\u0915\u0924\u093E\u0928\u094D\u0924\u094D\u0930\u093F\u0915 \u0917\u0923\u0924\u0928\u094D\u0924\u094D\u0930 \u0928\u0947\u092A\u093E\u0932","\u0938\u0902\u0918\u093F\u092F \u0932\u094B\u0915\u0924\u093E\u0928\u094D\u0924\u094D\u0930\u093F\u0915 \u0917\u0923\u0924\u0928\u094D\u0924\u094D\u0930\u093E\u0924\u094D\u092E\u0915 \u0928\u0947\u092A\u093E\u0932","\u0938\u0902\u0918\u0940\u092F \u0932\u094B\u0915\u0924\u093E\u0928\u094D\u0924\u094D\u0930\u093F\u0915 \u0917\u0923\u0924\u0928\u094D\u0924\u094D\u0930 \u0928\u0947\u092A\u093E\u0932"]},{iso3:"NRU",iso2:"NR",m49:"520",name:"Naoero",aliases:["\u{1F1F3}\u{1F1F7}","nauru","pleasant island","republic of naoero","republic of nauru"]},{iso3:"NZL",iso2:"NZ",m49:"554",name:"New Zealand",aliases:["\u{1F1F3}\u{1F1FF}","aotearoa","aotearoa new zealand","dominion of new zealand"]},{iso3:"OMN",iso2:"OM",m49:"512",name:"Oman",aliases:["\u{1F1F4}\u{1F1F2}","sultanate of oman","uman","\u0633\u0644\u0637\u0646\u0629 \u0639\u0645\u0627\u0646","\u0639\u0645\u0627\u0646"]},{iso3:"PAK",iso2:"PK",m49:"586",name:"Pakistan",aliases:["\u{1F1F5}\u{1F1F0}","hoi quoc","islamic republic of pakistan","republic of pakistan","tay hoi","\u0627\u0633\u0644\u0627\u0645\u06CC \u062C\u0645\u06C1\u0648\u0631\u06CC\u06C1 \u067E\u0627\u06A9\u0633\u062A\u0627\u0646","\u0628\u0627\u06A9\u0633\u062A\u0627\u0646","\u067E\u0627\u06A9\u0633\u062A\u0627\u0646"]},{iso3:"PAN",iso2:"PA",m49:"591",name:"Panama",aliases:["\u{1F1F5}\u{1F1E6}","republic of panama","republica de panama"]},{iso3:"PCN",iso2:"PN",m49:"612",name:"Pitcairn",aliases:["\u{1F1F5}\u{1F1F3}","occas island","pisskern ali\u0435n","pitcairn henderson ducie and oeno islands","pitcairn island","pitcairn islands","pitkern ailen"]},{iso3:"PER",iso2:"PE",m49:"604",name:"Peru",aliases:["\u{1F1F5}\u{1F1EA}","piruw","piruw ripuwlika","republic of peru","republica del peru"]},{iso3:"PHL",iso2:"PH",m49:"608",name:"Philippines",aliases:["\u{1F1F5}\u{1F1ED}","philippine islands","republic of the philippines"]},{iso3:"PLW",iso2:"PW",m49:"585",name:"Palau",aliases:["\u{1F1F5}\u{1F1FC}","belau","peeloo","pelew","pelew islands","pellew","republic of belau","republic of palau","\u30D1\u30E9\u30AA","\u30D1\u30E9\u30AA\u5171\u548C\u56FD"]},{iso3:"PNG",iso2:"PG",m49:"598",name:"Papua New Guinea",aliases:["\u{1F1F5}\u{1F1EC}","independent state of papua new guinea","papua niugini"]},{iso3:"POL",iso2:"PL",m49:"616",name:"Poland",aliases:["\u{1F1F5}\u{1F1F1}","polska","republic of poland","rzeczpospolita polska"]},{iso3:"PRI",iso2:"PR",m49:"630",name:"Puerto Rico",aliases:["\u{1F1F5}\u{1F1F7}","boriken","borinquen","boriquen","commonwealth of puerto rico","estado libre asociado de puerto rico","free associated state of puerto rico","isla del encanto","island of enchantment","isle of enchantment","mancomunidad de puerto rico","porto rico","territorio de puerto rico","territorio estadounidense de puerto rico","territory of porto rico","territory of puerto rico"]},{iso3:"PRK",iso2:"KP",m49:"408",name:"Democratic People's Republic of Korea",aliases:["\u{1F1F0}\u{1F1F5}","choson minjujuui inmin konghwaguk","dpr korea","dprk","korea democratic peoples republic of","n korea","north korea","\uACF5\uD654\uAD6D","\uBD81\uC870\uC120","\uBD81\uD55C","\uC870\uC120","\uC870\uC120\uBBFC\uC8FC\uC8FC\uC758\uC778\uBBFC\uACF5\uD654\uAD6D"]},{iso3:"PRT",iso2:"PT",m49:"620",name:"Portugal",aliases:["\u{1F1F5}\u{1F1F9}","republica portuguesa"]},{iso3:"PRY",iso2:"PY",m49:"600",name:"Paraguay",aliases:["\u{1F1F5}\u{1F1FE}","paraguai","republic of paraguay","republica del paraguay","teta paraguai"]},{iso3:"PSE",iso2:"PS",m49:"275",name:"State of Palestine",aliases:["\u{1F1F5}\u{1F1F8}","palestine","palestine state of","palestinian authority","palestinian national authority","palestinian territory","west bank and gaza","\u0623\u0631\u0627\u0636\u064A \u0641\u0644\u0633\u0637\u064A\u0646\u064A\u0629","\u0627\u0644\u0623\u0631\u0627\u0636\u064A \u0627\u0644\u0641\u0644\u0633\u0637\u064A\u0646\u064A\u0629","\u0627\u0644\u062F\u0648\u0644\u0629 \u0627\u0644\u0641\u0644\u0633\u0637\u064A\u0646\u064A\u0629","\u0627\u0644\u0633\u0644\u0637\u0629 \u0627\u0644\u0641\u0644\u0633\u0637\u064A\u0646\u064A\u0629","\u0627\u0644\u0633\u0644\u0637\u0629 \u0627\u0644\u0648\u0637\u0646\u064A\u0629 \u0627\u0644\u0641\u0644\u0633\u0637\u064A\u0646\u064A\u0629","\u0627\u0644\u0636\u0641\u0629 \u0627\u0644\u063A\u0631\u0628\u064A\u0629 \u0648\u0642\u0637\u0627\u0639 \u063A\u0632\u0629","\u062F\u0648\u0644\u0629 \u0641\u0644\u0633\u0637\u064A\u0646","\u0641\u0644\u0633\u0637\u064A\u0646"]},{iso3:"PYF",iso2:"PF",m49:"258",name:"French Polynesia",aliases:["\u{1F1F5}\u{1F1EB}","f oh","french establishments in oceania","french oceania","french settlements in oceania","polynesie francaise","territoire de la polynesie francaise","territory of french polynesia"]},{iso3:"QAT",iso2:"QA",m49:"634",name:"Qatar",aliases:["\u{1F1F6}\u{1F1E6}","state of qatar","\u0625\u0645\u0627\u0631\u0629 \u0642\u0637\u0631","\u062F\u0648\u0644\u0629 \u0642\u0637\u0631","\u0642\u0637\u0631"]},{iso3:"REU",iso2:"RE",m49:"638",name:"R\xE9union",aliases:["\u{1F1F7}\u{1F1EA}","ile bourbon","ile de la reunion","la reunion","re","region reunion","reunion island"]},{iso3:"ROU",iso2:"RO",m49:"642",name:"Romania",aliases:["\u{1F1F7}\u{1F1F4}"]},{iso3:"RUS",iso2:"RU",m49:"643",name:"Russian Federation",aliases:["\u{1F1F7}\u{1F1FA}","federation of russia","russia","\u0440\u043E\u0441\u0441\u0438\u0438\u0441\u043A\u0430\u044F \u0444\u0435\u0434\u0435\u0440\u0430\u0446\u0438\u044F","\u0440\u043E\u0441\u0441\u0438\u044F","\u0440\u0444"]},{iso3:"RWA",iso2:"RW",m49:"646",name:"Rwanda",aliases:["\u{1F1F7}\u{1F1FC}","igihugu cyimisozi igihumbi","jamhuri ya rwanda","la republique du rwanda","land of a thousand hills","republic of rwanda","republika yu rwanda","republique du rwanda","republique rwandaise","repubulika yu rwanda","u rwanda"]},{iso3:"SAU",iso2:"SA",m49:"682",name:"Saudi Arabia",aliases:["\u{1F1F8}\u{1F1E6}","kingdom of saudi arabia","\u0627\u0644\u062F\u0648\u0644\u0629 \u0627\u0644\u0633\u0639\u0648\u062F\u064A\u0629","\u0627\u0644\u062F\u0648\u0644\u0647 \u0627\u0644\u0633\u0639\u0648\u062F\u064A\u0647","\u0627\u0644\u0633\u0639\u0648\u062F\u064A\u0629","\u0627\u0644\u0633\u0639\u0648\u062F\u064A\u0647","\u0627\u0644\u0639\u0631\u0628\u064A\u0629 \u0627\u0644\u0633\u0639\u0648\u062F\u064A\u0629","\u0627\u0644\u0645\u0645\u0644\u0643\u0629","\u0627\u0644\u0645\u0645\u0644\u0643\u0629 \u0627\u0644\u0633\u0639\u0648\u062F\u064A\u0629","\u0627\u0644\u0645\u0645\u0644\u0643\u0629 \u0627\u0644\u0639\u0631\u0628\u064A\u0629","\u0627\u0644\u0645\u0645\u0644\u0643\u0629 \u0627\u0644\u0639\u0631\u0628\u064A\u0629 \u0627\u0644\u0633\u0639\u0648\u062F\u064A\u0629","\u0627\u0644\u0645\u0645\u0644\u0643\u0647","\u0627\u0644\u0645\u0645\u0644\u0643\u0647 \u0627\u0644\u0639\u0631\u0628\u064A\u0647 \u0627\u0644\u0633\u0639\u0648\u062F\u064A\u0647","\u0628\u0644\u0627\u062F \u0627\u0644\u062D\u0631\u0645\u064A\u0646 \u0627\u0644\u0634\u0631\u064A\u0641\u064A\u0646","\u062F\u0648\u0644\u0629 \u0622\u0644 \u0633\u0639\u0648\u062F","\u0633\u0639\u0648\u062F\u064A\u0629","\u0633\u0639\u0648\u062F\u064A\u0647","\u0645\u0646\u0628\u0639 \u0627\u0644\u0631\u0633\u0627\u0644\u0629","\u0645\u0647\u0628\u0637 \u0627\u0644\u0648\u062D\u064A"]},{iso3:"SDN",iso2:"SD",m49:"729",name:"Sudan",aliases:["\u{1F1F8}\u{1F1E9}","al sudan","as sudan","north sudan","republic of sudan","republic of the sudan","soudan","\u0627\u0644\u0633\u0648\u062F\u0627\u0646","\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u0627\u0644\u0633\u0648\u062F\u0627\u0646"]},{iso3:"SEN",iso2:"SN",m49:"686",name:"Senegal",aliases:["\u{1F1F8}\u{1F1F3}","la republique du senegal","republic of senegal","republique du senegal","sen","senegaal"]},{iso3:"SGP",iso2:"SG",m49:"702",name:"Singapore",aliases:["\u{1F1F8}\u{1F1EC}","garden city","lion city","republic of singapore","republik singapura","singapore city","singapura","spore","\u0B9A\u0BBF\u0B99\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0BC2\u0BB0\u0BCD","\u0B9A\u0BBF\u0B99\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0BC2\u0BB0\u0BCD \u0B95\u0BC1\u0B9F\u0BBF\u0BAF\u0BB0\u0B9A\u0BC1","\u0B9A\u0BBF\u0B99\u0BCD\u0B95\u0BC8","\u0BB8\u0BBF\u0B99\u0BCD\u0B95\u0BAA\u0BC2\u0BB0\u0BCD"]},{iso3:"SGS",iso2:"GS",m49:"239",name:"South Georgia and the South Sandwich Islands",aliases:["\u{1F1EC}\u{1F1F8}","falkland islands dependencies","sgssi","south georgia","south georgia & south sandwich islands","south sandwich islands"]},{iso3:"SHN",iso2:"SH",m49:"654",name:"Saint Helena",aliases:["\u{1F1F8}\u{1F1ED}","ascension","saint helena and dependencies","saint helena ascension and tristan da cunha","tristan da cunha"]},{iso3:"SJM",iso2:"SJ",m49:"744",name:"Svalbard and Jan Mayen Islands",aliases:["\u{1F1F8}\u{1F1EF}","jan mayen","svalbard","svalbard and jan mayen","svalbard og jan mayen"]},{iso3:"SLB",iso2:"SB",m49:"090",name:"Solomon Islands",aliases:["\u{1F1F8}\u{1F1E7}"]},{iso3:"SLE",iso2:"SL",m49:"694",name:"Sierra Leone",aliases:["\u{1F1F8}\u{1F1F1}","republic of sierra leone"]},{iso3:"SLV",iso2:"SV",m49:"222",name:"El Salvador",aliases:["\u{1F1F8}\u{1F1FB}","republic of el salvador","republica de el salvador","salvador"]},{iso3:"SMR",iso2:"SM",m49:"674",name:"San Marino",aliases:["\u{1F1F8}\u{1F1F2}","most serene republic of san marino","repubblica di san marino","serenissima repubblica di san marino"]},{iso3:"SOM",iso2:"SO",m49:"706",name:"Somalia",aliases:["\u{1F1F8}\u{1F1F4}","as sumal","federal republic of somalia","jamhuuriyadda federaalka soomaaliya","jamhuuriyadda soomaaliyeed","soomaaliya","soomaaliyeey toosoo","\u0627\u0644\u0635\u0648\u0645\u0627\u0644","\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u0627\u0644\u0635\u0648\u0645\u0627\u0644","\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u0627\u0644\u0635\u0648\u0645\u0627\u0644 \u0627\u0644\u062F\u064A\u0645\u0648\u0642\u0631\u0627\u0637\u064A\u0629","\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u0627\u0644\u0635\u0648\u0645\u0627\u0644 \u0627\u0644\u0641\u064A\u062F\u0631\u0627\u0644\u064A\u0629","\u0635\u0648\u0645\u0627\u0644"]},{iso3:"SPM",iso2:"PM",m49:"666",name:"Saint Pierre and Miquelon",aliases:["\u{1F1F5}\u{1F1F2}","collectivite territoriale de saint pierre et miquelon","miquelon","saint pierre","saint pierre et miquelon","territorial collectivity of saint pierre and miquelon"]},{iso3:"SRB",iso2:"RS",m49:"688",name:"Serbia",aliases:["\u{1F1F7}\u{1F1F8}","republic of serbia","republika srbija","\u0440\u0435\u043F\u0443\u0431\u043B\u0438\u043A\u0430 \u0441\u0440\u0431\u0438\u0458\u0430","\u0441\u0440\u0431\u0438\u0458\u0430"]},{iso3:"SSD",iso2:"SS",m49:"728",name:"South Sudan",aliases:["\u{1F1F8}\u{1F1F8}","republic of south sudan","southern sudan"]},{iso3:"STP",iso2:"ST",m49:"678",name:"Sao Tome and Principe",aliases:["\u{1F1F8}\u{1F1F9}","democratic republic of sao tome and principe","principe","republica democratica de sao tome e principe","sao tome","sao tome e principe","sao tome og principe"]},{iso3:"SUR",iso2:"SR",m49:"740",name:"Suriname",aliases:["\u{1F1F8}\u{1F1F7}","dutch guiana","republic of surinam","republic of suriname","republiek suriname","surinam","surrinam"]},{iso3:"SVK",iso2:"SK",m49:"703",name:"Slovakia",aliases:["\u{1F1F8}\u{1F1F0}","slovak republic","slovenska republika","slovensko"]},{iso3:"SVN",iso2:"SI",m49:"705",name:"Slovenia",aliases:["\u{1F1F8}\u{1F1EE}","republic of slovenia","republika slovenija","slovenija"]},{iso3:"SWE",iso2:"SE",m49:"752",name:"Sweden",aliases:["\u{1F1F8}\u{1F1EA}","kingdom of sweden","konungadomet sverige","konungariket sverige","kungadomet sverige","kungariket sverige","sverige","swedish kingdom"]},{iso3:"SWZ",iso2:"SZ",m49:"748",name:"Eswatini",aliases:["\u{1F1F8}\u{1F1FF}","kingdom of eswatini","kingdom of swaziland","swaziland","umbuso weswatini"]},{iso3:"SXM",iso2:"SX",m49:"534",name:"Sint Maarten (Dutch part)",aliases:["\u{1F1F8}\u{1F1FD}","country of sint maarten","eilandgebied sint maarten","land sint maarten","saint maarten","saint martin dutch part","sint maarten","sint martin"]},{iso3:"SYC",iso2:"SC",m49:"690",name:"Seychelles",aliases:["\u{1F1F8}\u{1F1E8}","la republique des seychelles","repiblik sesel","republic of seychelles","republique des seychelles"]},{iso3:"SYR",iso2:"SY",m49:"760",name:"Syrian Arab Republic",aliases:["\u{1F1F8}\u{1F1FE}","surya","syria","\u0627\u0644\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u0627\u0644\u0639\u0631\u0628\u064A\u0629 \u0627\u0644\u0633\u0648\u0631\u064A\u0629","\u0627\u0644\u0634\u0627\u0645","\u0633\u0648\u0631\u064A\u0627","\u0633\u0648\u0631\u064A\u0629"]},{iso3:"TCA",iso2:"TC",m49:"796",name:"Turks and Caicos Islands",aliases:["\u{1F1F9}\u{1F1E8}","caicos","caicos islands","turks","turks & caicos","turks islands"]},{iso3:"TCD",iso2:"TD",m49:"148",name:"Chad",aliases:["\u{1F1F9}\u{1F1E9}","la republique du tchad","republic of chad","republique du tchad","tchad","\u062A\u0634\u0627\u062F","\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u062A\u0634\u0627\u062F"]},{iso3:"TGO",iso2:"TG",m49:"768",name:"Togo",aliases:["\u{1F1F9}\u{1F1EC}","la republique togolaise","republique togolaise","togolese republic"]},{iso3:"THA",iso2:"TH",m49:"764",name:"Thailand",aliases:["\u{1F1F9}\u{1F1ED}","kingdom of siam","kingdom of thailand","siam","thai","\u0E44\u0E17\u0E22","\u0E1B\u0E23\u0E30\u0E40\u0E17\u0E28\u0E44\u0E17\u0E22","\u0E1B\u0E23\u0E30\u0E40\u0E17\u0E28\u0E2A\u0E22\u0E32\u0E21","\u0E40\u0E21\u0E37\u0E2D\u0E07\u0E44\u0E17\u0E22","\u0E23\u0E32\u0E0A\u0E2D\u0E32\u0E13\u0E32\u0E08\u0E31\u0E01\u0E23\u0E44\u0E17\u0E22","\u0E23\u0E32\u0E0A\u0E2D\u0E32\u0E13\u0E32\u0E08\u0E31\u0E01\u0E23\u0E2A\u0E22\u0E32\u0E21","\u0E2A\u0E22\u0E32\u0E21"]},{iso3:"TJK",iso2:"TJ",m49:"762",name:"Tajikistan",aliases:["\u{1F1F9}\u{1F1EF}","jumhurii tojikiston","republic of tajikistan","\u0442\u043E\u04B7\u0438\u043A\u0438\u0441\u0442\u043E\u043D","\u0442\u04B7","\u0442\u04B7\u043A","\u04B7\u0442","\u04B7\u0443\u043C\u04B3\u0443\u0440\u0438\u0438 \u0442\u043E\u04B7\u0438\u043A\u0438\u0441\u0442\u043E\u043D"]},{iso3:"TKL",iso2:"TK",m49:"772",name:"Tokelau",aliases:["\u{1F1F9}\u{1F1F0}","tokelau islands","union islands"]},{iso3:"TKM",iso2:"TM",m49:"795",name:"Turkmenistan",aliases:["\u{1F1F9}\u{1F1F2}"]},{iso3:"TLS",iso2:"TL",m49:"626",name:"Timor-Leste",aliases:["\u{1F1F9}\u{1F1F1}","democratic republic of timor leste","east timor","republica democratica de timor leste","republika demokratika timor lorosae","timor loro sae","timor lorosae"]},{iso3:"TON",iso2:"TO",m49:"776",name:"Tonga",aliases:["\u{1F1F9}\u{1F1F4}","friendly islands","kingdom of tonga","puleanga fakatui o tonga","tonga islands"]},{iso3:"TTO",iso2:"TT",m49:"780",name:"Trinidad and Tobago",aliases:["\u{1F1F9}\u{1F1F9}","republic of trinidad and tobago","tobago","trinidad"]},{iso3:"TUN",iso2:"TN",m49:"788",name:"Tunisia",aliases:["\u{1F1F9}\u{1F1F3}","republic of tunisia","tunisian republic","\u0627\u0644\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u0627\u0644\u062A\u0648\u0646\u0633\u064A\u0629","\u062A\u0648\u0646\u0633","\u062A\u0648\u0646\u0633 \u0627\u0644\u062E\u0636\u0631\u0627\u0621"]},{iso3:"TUR",iso2:"TR",m49:"792",name:"T\xFCrkiye",aliases:["\u{1F1F9}\u{1F1F7}","republic of turkey","republic of turkiye","turkey","turkiye cumhuriyeti"]},{iso3:"TUV",iso2:"TV",m49:"798",name:"Tuvalu",aliases:["\u{1F1F9}\u{1F1FB}","ellice islands"]},{iso3:"TWN",iso2:"TW",m49:"158",name:"Taiwan",aliases:["\u{1F1F9}\u{1F1FC}","chinese republic","chinese taipei","chunghwa minkuo","chunghwa minkwo","conghwaminku","cunghwa minkwo","cyukamingkok","formosa","nanasian","nationalist china","republic of china","republic of china taiwan","roc","taivang","taiwan province of china","taiwan roc","taywan","taywang","teywan","\u4E2D\u83EF\u6C11\u570B","\u4E2D\u83EF\u6C11\u570B\uFF08\u81FA\u7063\uFF09","\u4E2D\u83EF\u81FA\u5317","\u53F0\u7063","\u81FA\u6F8E\u91D1\u99AC","\u81FA\u7063"]},{iso3:"TZA",iso2:"TZ",m49:"834",name:"United Republic of Tanzania",aliases:["\u{1F1F9}\u{1F1FF}","jamhuri ya muungano wa tanganyika na zanzibar","jamhuri ya muungano wa tanzania","tanzania","tanzania jamhuri ya muungano wa","tanzania united republic of","united republic of tanganyika and zanzibar"]},{iso3:"UGA",iso2:"UG",m49:"800",name:"Uganda",aliases:["\u{1F1FA}\u{1F1EC}","jamhuri ya uganda","lulu ya afrika","ouganda","pearl of africa","republic of uganda","ugandah"]},{iso3:"UKR",iso2:"UA",m49:"804",name:"Ukraine",aliases:["\u{1F1FA}\u{1F1E6}","ukr","ukraina","ukrainia","ukrayina","\u0432\u043A\u0440\u0430\u0456\u043D\u0430","\u0443\u043A\u0440\u0430\u0456\u043D\u0430"]},{iso3:"UMI",iso2:"UM",m49:"581",name:"United States Minor Outlying Islands",aliases:["\u{1F1FA}\u{1F1F2}","us minor outlying islands","us outlying islands","usmoi"]},{iso3:"URY",iso2:"UY",m49:"858",name:"Uruguay",aliases:["\u{1F1FA}\u{1F1FE}","eastern republic of uruguay","oriental republic of uruguay"]},{iso3:"USA",iso2:"US",m49:"840",name:"United States of America",aliases:["\u{1F1FA}\u{1F1F8}","amelika","amelika hui pu ia","amelika huipuia","amelika mokuaina hui pu ia","america","eeuu","eeuu de america","estados unidos","estados unidos de america","los estados","los estados unidos","los estados unidos de america","mokuaina hui pu ia","union americana","united states","us","us of a","us of america","usa"]},{iso3:"UZB",iso2:"UZ",m49:"860",name:"Uzbekistan",aliases:["\u{1F1FA}\u{1F1FF}","ozbek","ozbekiston","ozbekiston respublikasi","republic of uzbekistan","uzbekiston respublikasi"]},{iso3:"VAT",iso2:"VA",m49:"336",name:"Holy See",aliases:["\u{1F1FB}\u{1F1E6}","citta del vaticano","civitas vaticana","colle vaticano","papal state","santa sede citta del vaticano","state of vatican city","stato della citta del vaticano","status civitatis vaticanae","status civitatis vatican\xE6","vatican","vatican city","vatican city state","vaticano"]},{iso3:"VCT",iso2:"VC",m49:"670",name:"Saint Vincent and the Grenadines",aliases:["\u{1F1FB}\u{1F1E8}","grenadines","saint vincent","saint vincent and grenadines"]},{iso3:"VEN",iso2:"VE",m49:"862",name:"Venezuela (Bolivarian Republic of)",aliases:["\u{1F1FB}\u{1F1EA}","bolivarian republic of venezuela","br venezuela","estados unidos de venezuela","rb venezuela","republic of venezuela","republica bolivariana de venezuela","republica de venezuela","venezuela"]},{iso3:"VGB",iso2:"VG",m49:"092",name:"British Virgin Islands",aliases:["\u{1F1FB}\u{1F1EC}","bvi","virgin islands british","virgin islands of the united kingdom","virgin islands united kingdom"]},{iso3:"VIR",iso2:"VI",m49:"850",name:"United States Virgin Islands",aliases:["\u{1F1FB}\u{1F1EE}","american virgin islands","us virgin islands","virgin islands of the united states","virgin islands us"]},{iso3:"VNM",iso2:"VN",m49:"704",name:"Viet Nam",aliases:["\u{1F1FB}\u{1F1F3}","chxhcn viet nam","chxhcnvn","cong hoa xa hoi chu nghia viet nam","socialist republic of viet nam","socialist republic of vietnam","vietnam"]},{iso3:"VUT",iso2:"VU",m49:"548",name:"Vanuatu",aliases:["\u{1F1FB}\u{1F1FA}","la republique du vanuatu","republic of vanuatu","republique de vanuatu","ripablik blong vanuatu"]},{iso3:"WLF",iso2:"WF",m49:"876",name:"Wallis and Futuna Islands",aliases:["\u{1F1FC}\u{1F1EB}","collectivite des iles wallis et futuna","emeni simete","futuna","iles wallis et futuna","makape papilio","territoire de wallis et futuna","territoire des iles wallis et futuna","wallis","wallis & futuna","wallis et futuna"]},{iso3:"WSM",iso2:"WS",m49:"882",name:"Samoa",aliases:["\u{1F1FC}\u{1F1F8}","independent state of samoa","malo saoloto tutoatasi o samoa","samoa i sisifo","western samoa"]},{iso3:"YEM",iso2:"YE",m49:"887",name:"Yemen",aliases:["\u{1F1FE}\u{1F1EA}","rep yemen","republic of yemen","\u0627\u0644\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u0627\u0644\u064A\u0645\u0646\u064A\u0629","\u0627\u0644\u064A\u0645\u0646","\u062F\u0648\u0644\u0629 \u0627\u0644\u064A\u0645\u0646"]},{iso3:"ZAF",iso2:"ZA",m49:"710",name:"South Africa",aliases:["\u{1F1FF}\u{1F1E6}","aferika borwa","aforika borwa","afrika boroa","afrika borwa","afrika dzonga","afurika tshipembe","emzantsi afrika","iningizimu afrika","iriphabhulikhi ye ningizimu afrika","iriphabhulikhi yeningizimu afrika","iriphabhuliki yase ningizimu afrika","iriphabliki yasemzantsi afrika","iriphabliki yaseningizimu afrika","iriphabliki yom zantsi afrika","isewula afrika","repabliki ya afrika borwa","rephaboliki ya aforika borwa","rephaboliki ya afrika borwa","republic of south africa","republiek van suid afrika","riphabliki ra afrika dzonga","rsa","suid afrika","umzansi","umzantsi afrika","unie van suid afrika","union of south africa"]},{iso3:"ZMB",iso2:"ZM",m49:"894",name:"Zambia",aliases:["\u{1F1FF}\u{1F1F2}","northern rhodesia","republic of zambia"]},{iso3:"ZWE",iso2:"ZW",m49:"716",name:"Zimbabwe",aliases:["\u{1F1FF}\u{1F1FC}","ezimbabwe","izimbabwe","republic of zimbabwe","rhodesia","southern rhodesia","zimbabwe rhodesia","zimbagwe"]}];function GF(e){return e.normalize("NFD").replace(/[\u0300-\u036F]/g,"").normalize("NFC").toLowerCase().replace(/[\u064B-\u065F]/g,"").replace(/['\u2018\u2019\u02BB\u02BC\u02BD\u02C8\u2032`]/g,"").replace(/&/g," and ").replace(/([,(])\s*the\b/g,"$1").replace(/[.(),[\]]/g,"").replace(/[-\u2013\u2014]/g," ").replace(/\bst\b/g,"saint").trim().replace(/\s+/g," ").replace(/^the\s+/,"")}function fce(e){let t=new Map,r=new Map,i=new Map;for(let s of e)t.set(s.iso3,s),s.iso2&&r.set(s.iso2,s),s.m49&&i.set(s.m49,s);let a=new Map;for(let s of e)for(let l of[s.name,...s.aliases]){let u=GF(l),c=a.get(u);if(c!==void 0&&c!==s.iso3)throw new Error(`Duplicate name/alias "${u}": ${c} vs ${s.iso3}`);a.set(u,s.iso3)}function n(s){if(s==null)return;let l=String(s).trim();if(!l)return;if(/^\d+$/.test(l)){let c=i.get(String(parseInt(l,10)).padStart(3,"0"));if(c)return c}if(/^[A-Za-z]{2}$/.test(l)){let c=r.get(l.toUpperCase());if(c)return c}if(/^[A-Za-z]{3}$/.test(l)){let c=t.get(l.toUpperCase());if(c)return c}let u=a.get(GF(l));return u===void 0?void 0:t.get(u)}function o(s){var l;return(l=n(s))==null?void 0:l.iso3}return{lookup:n,lookupAlpha3:o,byAlpha3:t,byAlpha2:r,byM49:i}}var Q2=fce(hce),zYe=Q2.lookup,RYe=Q2.lookupAlpha3,BYe=Q2.byAlpha3,qYe=Q2.byAlpha2,OYe=Q2.byM49});var x6=X(Ci=>{"use strict";Object.defineProperty(Ci,"__esModule",{value:!0});var Na=63710088e-1,HF={centimeters:Na*100,centimetres:Na*100,cm:Na*100,degrees:360/(2*Math.PI),deg:360/(2*Math.PI),feet:Na*3.28084,ft:Na*3.28084,inches:Na*39.37,in:Na*39.37,kilometers:Na/1e3,kilometres:Na/1e3,km:Na/1e3,meters:Na,metres:Na,m:Na,miles:Na/1609.344,mi:Na/1609.344,millimeters:Na*1e3,millimetres:Na*1e3,mm:Na*1e3,nauticalmiles:Na/1852,nmi:Na/1852,radians:1,rad:1,yards:Na*1.0936,yd:Na*1.0936},$F={acres:247105e-9,ac:247105e-9,centimeters:1e4,centimetres:1e4,cm:1e4,feet:10.763910417,ft:10.763910417,hectares:1e-4,ha:1e-4,inches:1550.003100006,in:1550.003100006,kilometers:1e-6,kilometres:1e-6,km:1e-6,meters:1,metres:1,m:1,miles:386e-9,mi:386e-9,nauticalmiles:29155334959812285e-23,nmi:29155334959812285e-23,millimeters:1e6,millimetres:1e6,mm:1e6,yards:1.195990046,yd:1.195990046};function Xf(e,t,r={}){let i={type:"Feature"};return(r.id===0||r.id)&&(i.id=r.id),r.bbox&&(i.bbox=r.bbox),i.properties=t||{},i.geometry=e,i}function NYe(e,t,r={}){switch(e){case"Point":return ZF(t).geometry;case"LineString":return WF(t).geometry;case"Polygon":return YF(t).geometry;case"MultiPoint":return vce(t).geometry;case"MultiLineString":return mce(t).geometry;case"MultiPolygon":return gce(t).geometry;default:throw new Error(e+" is invalid")}}function ZF(e,t,r={}){if(!e)throw new Error("coordinates is required");if(!Array.isArray(e))throw new Error("coordinates must be an Array");if(e.length<2)throw new Error("coordinates must be at least 2 numbers long");if(!y6(e[0])||!y6(e[1]))throw new Error("coordinates must contain numbers");return Xf({type:"Point",coordinates:e},t,r)}function VYe(e,t,r={}){return _6(e.map(i=>ZF(i,t)),r)}function YF(e,t,r={}){for(let a of e){if(a.length<4)throw new Error("Each LinearRing of a Polygon must have 4 or more Positions.");if(a[a.length-1].length!==a[0].length)throw new Error("First and last Position are not equivalent.");for(let n=0;nYF(i,t)),r)}function WF(e,t,r={}){if(e.length<2)throw new Error("coordinates must be an array of two or more positions");return Xf({type:"LineString",coordinates:e},t,r)}function GYe(e,t,r={}){return _6(e.map(i=>WF(i,t)),r)}function _6(e,t={}){let r={type:"FeatureCollection"};return t.id&&(r.id=t.id),t.bbox&&(r.bbox=t.bbox),r.features=e,r}function mce(e,t,r={}){return Xf({type:"MultiLineString",coordinates:e},t,r)}function vce(e,t,r={}){return Xf({type:"MultiPoint",coordinates:e},t,r)}function gce(e,t,r={}){return Xf({type:"MultiPolygon",coordinates:e},t,r)}function jYe(e,t,r={}){return Xf({type:"GeometryCollection",geometries:e},t,r)}function $Ye(e,t=0){if(t&&!(t>=0))throw new Error("precision must be a positive number");let r=Math.pow(10,t||0);return Math.round(e*r)/r}function yce(e,t="kilometers"){let r=HF[t];if(!r)throw new Error(t+" units is invalid");return e*r}function XF(e,t="kilometers"){let r=HF[t];if(!r)throw new Error(t+" units is invalid");return e/r}function HYe(e,t){return _ce(XF(e,t))}function ZYe(e){let t=e%360;return t<0&&(t+=360),t}function YYe(e){return e=e%360,e>180?e-360:e<-180?e+360:e}function _ce(e){return e%(2*Math.PI)*180/Math.PI}function WYe(e){return e%360*Math.PI/180}function XYe(e,t="kilometers",r="kilometers"){if(!(e>=0))throw new Error("length must be a positive number");return yce(XF(e,t),r)}function KYe(e,t="meters",r="kilometers"){if(!(e>=0))throw new Error("area must be a positive number");let i=$F[t];if(!i)throw new Error("invalid original units");let a=$F[r];if(!a)throw new Error("invalid final units");return e/i*a}function y6(e){return!isNaN(e)&&e!==null&&!Array.isArray(e)}function JYe(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function g6(e){delete e.bbox,e.type==="Feature"?e.geometry&&g6(e.geometry):e.type==="FeatureCollection"?e.features.forEach(g6):e.type==="GeometryCollection"&&e.geometries.forEach(g6)}function QYe(e){if(!e)throw new Error("bbox is required");if(!Array.isArray(e))throw new Error("bbox must be an Array");if(e.length!==4&&e.length!==6)throw new Error("bbox must be an Array of 4 or 6 numbers");e.forEach(t=>{if(!y6(t))throw new Error("bbox must only contain numbers")})}function eWe(e){if(!e)throw new Error("id is required");if(["string","number"].indexOf(typeof e)===-1)throw new Error("id must be a number or a string")}Ci.areaFactors=$F;Ci.azimuthToBearing=YYe;Ci.bearingToAzimuth=ZYe;Ci.convertArea=KYe;Ci.convertLength=XYe;Ci.degreesToRadians=WYe;Ci.earthRadius=Na;Ci.factors=HF;Ci.feature=Xf;Ci.featureCollection=_6;Ci.geometry=NYe;Ci.geometryCollection=jYe;Ci.isNumber=y6;Ci.isObject=JYe;Ci.lengthToDegrees=HYe;Ci.lengthToRadians=XF;Ci.lineString=WF;Ci.lineStrings=GYe;Ci.multiLineString=mce;Ci.multiPoint=vce;Ci.multiPolygon=gce;Ci.point=ZF;Ci.points=VYe;Ci.polygon=YF;Ci.polygons=UYe;Ci.radiansToDegrees=_ce;Ci.radiansToLength=yce;Ci.removeBbox=g6;Ci.round=$Ye;Ci.validateBBox=QYe;Ci.validateId=eWe});var w6=X(Ln=>{"use strict";Object.defineProperty(Ln,"__esModule",{value:!0});var zo=x6();function e_(e,t,r){if(e!==null)for(var i,a,n,o,s,l,u,c=0,h=0,f,d=e.type,p=d==="FeatureCollection",m=d==="Feature",g=p?e.features.length:1,y=0;yl||p>u||m>c){s=h,l=i,u=p,c=m,n=0;return}var g=zo.lineString.call(void 0,[s,h],r.properties);if(t(g,i,a,m,n)===!1)return!1;n++,s=h})===!1)return!1}}})}function sWe(e,t,r){var i=r,a=!1;return wce(e,function(n,o,s,l,u){a===!1&&r===void 0?i=n:i=t(i,n,o,s,l,u),a=!0}),i}function Ace(e,t){if(!e)throw new Error("geojson is required");b6(e,function(r,i,a){if(r.geometry!==null){var n=r.geometry.type,o=r.geometry.coordinates;switch(n){case"LineString":if(t(r,i,a,0,0)===!1)return!1;break;case"Polygon":for(var s=0;s{"use strict";Object.defineProperty(A6,"__esModule",{value:!0});var Tce=x6(),hWe=w6();function Sce(e){return hWe.geomReduce.call(void 0,e,(t,r)=>t+fWe(r),0)}function fWe(e){let t=0,r;switch(e.type){case"Polygon":return Mce(e.coordinates);case"MultiPolygon":for(r=0;r0){t+=Math.abs(Dce(e[0]));for(let r=1;r=t?(i+2)%t:i+2],s=a[0]*JF,l=n[1]*JF,u=o[0]*JF;r+=(u-s)*Math.sin(l),i++}return r*dWe}var pWe=Sce;A6.area=Sce;A6.default=pWe});var Cce=X(T6=>{"use strict";Object.defineProperty(T6,"__esModule",{value:!0});var mWe=x6(),vWe=w6();function kce(e,t={}){let r=0,i=0,a=0;return vWe.coordEach.call(void 0,e,function(n){r+=n[0],i+=n[1],a++},!0),mWe.point.call(void 0,[r/a,i/a],t.properties)}var gWe=kce;T6.centroid=kce;T6.default=gWe});var Pce=X((M6,Fce)=>{(function(e,t){t(typeof M6=="object"&&typeof Fce!="undefined"?M6:e.d3=e.d3||{})})(M6,(function(e){"use strict";function t(Q,ae){return Qae?1:Q>=ae?0:NaN}function r(Q){return Q.length===1&&(Q=i(Q)),{left:function(ae,ye,te,re){for(te==null&&(te=0),re==null&&(re=ae.length);te>>1;Q(ae[ce],ye)<0?te=ce+1:re=ce}return te},right:function(ae,ye,te,re){for(te==null&&(te=0),re==null&&(re=ae.length);te>>1;Q(ae[ce],ye)>0?re=ce:te=ce+1}return te}}}function i(Q){return function(ae,ye){return t(Q(ae),ye)}}var a=r(t),n=a.right,o=a.left;function s(Q,ae){ae==null&&(ae=l);for(var ye=0,te=Q.length-1,re=Q[0],ce=new Array(te<0?0:te);yeQ?1:ae>=Q?0:NaN}function h(Q){return Q===null?NaN:+Q}function f(Q,ae){var ye=Q.length,te=0,re=-1,ce=0,me,ze,He=0;if(ae==null)for(;++re1)return He/(te-1)}function d(Q,ae){var ye=f(Q,ae);return ye&&Math.sqrt(ye)}function p(Q,ae){var ye=Q.length,te=-1,re,ce,me;if(ae==null){for(;++te=re)for(ce=me=re;++tere&&(ce=re),me=re)for(ce=me=re;++tere&&(ce=re),me0)return[Q];if((te=ae0)for(Q=Math.ceil(Q/ze),ae=Math.floor(ae/ze),me=new Array(ce=Math.ceil(ae-Q+1));++re=0?(ce>=A?10:ce>=T?5:ce>=M?2:1)*Math.pow(10,re):-Math.pow(10,-re)/(ce>=A?10:ce>=T?5:ce>=M?2:1)}function P(Q,ae,ye){var te=Math.abs(ae-Q)/Math.max(0,ye),re=Math.pow(10,Math.floor(Math.log(te)/Math.LN10)),ce=te/re;return ce>=A?re*=10:ce>=T?re*=5:ce>=M&&(re*=2),aeqe;)se.pop(),--je;var Re=new Array(je+1),Ve;for(ce=0;ce<=je;++ce)Ve=Re[ce]=[],Ve.x0=ce>0?se[ce-1]:Oe,Ve.x1=ce=1)return+ye(Q[te-1],te-1,Q);var te,re=(te-1)*ae,ce=Math.floor(re),me=+ye(Q[ce],ce,Q),ze=+ye(Q[ce+1],ce+1,Q);return me+(ze-me)*(re-ce)}}function z(Q,ae,ye){return Q=y.call(Q,h).sort(t),Math.ceil((ye-ae)/(2*(L(Q,.75)-L(Q,.25))*Math.pow(Q.length,-1/3)))}function O(Q,ae,ye){return Math.ceil((ye-ae)/(3.5*d(Q)*Math.pow(Q.length,-1/3)))}function V(Q,ae){var ye=Q.length,te=-1,re,ce;if(ae==null){for(;++te=re)for(ce=re;++tece&&(ce=re)}else for(;++te=re)for(ce=re;++tece&&(ce=re);return ce}function $(Q,ae){var ye=Q.length,te=ye,re=-1,ce,me=0;if(ae==null)for(;++re=0;)for(me=Q[ae],ye=me.length;--ye>=0;)ce[--re]=me[ye];return ce}function Z(Q,ae){var ye=Q.length,te=-1,re,ce;if(ae==null){for(;++te=re)for(ce=re;++tere&&(ce=re)}else for(;++te=re)for(ce=re;++tere&&(ce=re);return ce}function W(Q,ae){for(var ye=ae.length,te=new Array(ye);ye--;)te[ye]=Q[ae[ye]];return te}function le(Q,ae){if(ye=Q.length){var ye,te=0,re=0,ce,me=Q[re];for(ae==null&&(ae=t);++te{(function(e,t){typeof D6=="object"&&typeof Ice!="undefined"?t(D6,Pce()):(e=e||self,t(e.d3=e.d3||{},e.d3))})(D6,(function(e,t){"use strict";function r(){return new i}function i(){this.reset()}i.prototype={constructor:i,reset:function(){this.s=this.t=0},add:function(q){n(a,q,this.t),n(this,a.s,this.s),this.s?this.t+=a.t:this.s=a.t},valueOf:function(){return this.s}};var a=new i;function n(q,G,ee){var J=q.s=G+ee,he=J-G,Le=J-he;q.t=G-Le+(ee-he)}var o=1e-6,s=1e-12,l=Math.PI,u=l/2,c=l/4,h=l*2,f=180/l,d=l/180,p=Math.abs,m=Math.atan,g=Math.atan2,y=Math.cos,x=Math.ceil,w=Math.exp,_=Math.log,A=Math.pow,T=Math.sin,M=Math.sign||function(q){return q>0?1:q<0?-1:0},S=Math.sqrt,k=Math.tan;function P(q){return q>1?0:q<-1?l:Math.acos(q)}function I(q){return q>1?u:q<-1?-u:Math.asin(q)}function B(q){return(q=T(q/2))*q}function L(){}function z(q,G){q&&V.hasOwnProperty(q.type)&&V[q.type](q,G)}var O={Feature:function(q,G){z(q.geometry,G)},FeatureCollection:function(q,G){for(var ee=q.features,J=-1,he=ee.length;++J=0?1:-1,he=J*ee,Le=y(G),Ne=T(G),Ye=de*Ne,Ke=De*Le+Ye*y(he),pt=Ye*J*T(he);Z.add(g(pt,Ke)),_e=q,De=Le,de=Ne}function re(q){return W.reset(),H(q,Ce),W*2}function ce(q){return[g(q[1],q[0]),I(q[2])]}function me(q){var G=q[0],ee=q[1],J=y(ee);return[J*y(G),J*T(G),T(ee)]}function ze(q,G){return q[0]*G[0]+q[1]*G[1]+q[2]*G[2]}function He(q,G){return[q[1]*G[2]-q[2]*G[1],q[2]*G[0]-q[0]*G[2],q[0]*G[1]-q[1]*G[0]]}function ke(q,G){q[0]+=G[0],q[1]+=G[1],q[2]+=G[2]}function Oe(q,G){return[q[0]*G,q[1]*G,q[2]*G]}function qe(q){var G=S(q[0]*q[0]+q[1]*q[1]+q[2]*q[2]);q[0]/=G,q[1]/=G,q[2]/=G}var se,je,Re,Ve,ge,Ge,tt,ie,we=r(),ot,At,$e={point:Ee,lineStart:We,lineEnd:lt,polygonStart:function(){$e.point=Qe,$e.lineStart=st,$e.lineEnd=vt,we.reset(),Ce.polygonStart()},polygonEnd:function(){Ce.polygonEnd(),$e.point=Ee,$e.lineStart=We,$e.lineEnd=lt,Z<0?(se=-(Re=180),je=-(Ve=90)):we>o?Ve=90:we<-o&&(je=-90),At[0]=se,At[1]=Re},sphere:function(){se=-(Re=180),je=-(Ve=90)}};function Ee(q,G){ot.push(At=[se=q,Re=q]),GVe&&(Ve=G)}function Me(q,G){var ee=me([q*d,G*d]);if(ie){var J=He(ie,ee),he=[J[1],-J[0],0],Le=He(he,J);qe(Le),Le=ce(Le);var Ne=q-ge,Ye=Ne>0?1:-1,Ke=Le[0]*f*Ye,pt,Ue=p(Ne)>180;Ue^(Ye*geVe&&(Ve=pt)):(Ke=(Ke+360)%360-180,Ue^(Ye*geVe&&(Ve=G))),Ue?qut(se,Re)&&(Re=q):ut(q,Re)>ut(se,Re)&&(se=q):Re>=se?(qRe&&(Re=q)):q>ge?ut(se,q)>ut(se,Re)&&(Re=q):ut(q,Re)>ut(se,Re)&&(se=q)}else ot.push(At=[se=q,Re=q]);GVe&&(Ve=G),ie=ee,ge=q}function We(){$e.point=Me}function lt(){At[0]=se,At[1]=Re,$e.point=Ee,ie=null}function Qe(q,G){if(ie){var ee=q-ge;we.add(p(ee)>180?ee+(ee>0?360:-360):ee)}else Ge=q,tt=G;Ce.point(q,G),Me(q,G)}function st(){Ce.lineStart()}function vt(){Qe(Ge,tt),Ce.lineEnd(),p(we)>o&&(se=-(Re=180)),At[0]=se,At[1]=Re,ie=null}function ut(q,G){return(G-=q)<0?G+360:G}function Tt(q,G){return q[0]-G[0]}function Ze(q,G){return q[0]<=q[1]?q[0]<=G&&G<=q[1]:Gut(J[0],J[1])&&(J[1]=he[1]),ut(he[0],J[1])>ut(J[0],J[1])&&(J[0]=he[0])):Le.push(J=he);for(Ne=-1/0,ee=Le.length-1,G=0,J=Le[ee];G<=ee;J=he,++G)he=Le[G],(Ye=ut(J[1],he[0]))>Ne&&(Ne=Ye,se=he[0],Re=J[1])}return ot=At=null,se===1/0||je===1/0?[[NaN,NaN],[NaN,NaN]]:[[se,je],[Re,Ve]]}var rt,Ft,Pt,bt,zt,fe,Se,it,nt,Fr,Kr,si,Ni,Pr,Hr,gi,hi={sphere:L,point:Ca,lineStart:Mn,lineEnd:Zr,polygonStart:function(){hi.lineStart=Ti,hi.lineEnd=Fi},polygonEnd:function(){hi.lineStart=Mn,hi.lineEnd=Zr}};function Ca(q,G){q*=d,G*=d;var ee=y(G);Ja(ee*y(q),ee*T(q),T(G))}function Ja(q,G,ee){++rt,Pt+=(q-Pt)/rt,bt+=(G-bt)/rt,zt+=(ee-zt)/rt}function Mn(){hi.point=Rt}function Rt(q,G){q*=d,G*=d;var ee=y(G);Pr=ee*y(q),Hr=ee*T(q),gi=T(G),hi.point=fi,Ja(Pr,Hr,gi)}function fi(q,G){q*=d,G*=d;var ee=y(G),J=ee*y(q),he=ee*T(q),Le=T(G),Ne=g(S((Ne=Hr*Le-gi*he)*Ne+(Ne=gi*J-Pr*Le)*Ne+(Ne=Pr*he-Hr*J)*Ne),Pr*J+Hr*he+gi*Le);Ft+=Ne,fe+=Ne*(Pr+(Pr=J)),Se+=Ne*(Hr+(Hr=he)),it+=Ne*(gi+(gi=Le)),Ja(Pr,Hr,gi)}function Zr(){hi.point=Ca}function Ti(){hi.point=Mi}function Fi(){ei(si,Ni),hi.point=Ca}function Mi(q,G){si=q,Ni=G,q*=d,G*=d,hi.point=ei;var ee=y(G);Pr=ee*y(q),Hr=ee*T(q),gi=T(G),Ja(Pr,Hr,gi)}function ei(q,G){q*=d,G*=d;var ee=y(G),J=ee*y(q),he=ee*T(q),Le=T(G),Ne=Hr*Le-gi*he,Ye=gi*J-Pr*Le,Ke=Pr*he-Hr*J,pt=S(Ne*Ne+Ye*Ye+Ke*Ke),Ue=I(pt),at=pt&&-Ue/pt;nt+=at*Ne,Fr+=at*Ye,Kr+=at*Ke,Ft+=Ue,fe+=Ue*(Pr+(Pr=J)),Se+=Ue*(Hr+(Hr=he)),it+=Ue*(gi+(gi=Le)),Ja(Pr,Hr,gi)}function Ht(q){rt=Ft=Pt=bt=zt=fe=Se=it=nt=Fr=Kr=0,H(q,hi);var G=nt,ee=Fr,J=Kr,he=G*G+ee*ee+J*J;return hel?q+Math.round(-q/h)*h:q,G]}ti.invert=ti;function Li(q,G,ee){return(q%=h)?G||ee?ji(Ko(q),po(G,ee)):Ko(q):G||ee?po(G,ee):ti}function Yi(q){return function(G,ee){return G+=q,[G>l?G-h:G<-l?G+h:G,ee]}}function Ko(q){var G=Yi(q);return G.invert=Yi(-q),G}function po(q,G){var ee=y(q),J=T(q),he=y(G),Le=T(G);function Ne(Ye,Ke){var pt=y(Ke),Ue=y(Ye)*pt,at=T(Ye)*pt,Je=T(Ke),mt=Je*ee+Ue*J;return[g(at*he-mt*Le,Ue*ee-Je*J),I(mt*he+at*Le)]}return Ne.invert=function(Ye,Ke){var pt=y(Ke),Ue=y(Ye)*pt,at=T(Ye)*pt,Je=T(Ke),mt=Je*he-at*Le;return[g(at*he+Je*Le,Ue*ee+mt*J),I(mt*ee-Ue*J)]},Ne}function rl(q){q=Li(q[0]*d,q[1]*d,q.length>2?q[2]*d:0);function G(ee){return ee=q(ee[0]*d,ee[1]*d),ee[0]*=f,ee[1]*=f,ee}return G.invert=function(ee){return ee=q.invert(ee[0]*d,ee[1]*d),ee[0]*=f,ee[1]*=f,ee},G}function Nu(q,G,ee,J,he,Le){if(ee){var Ne=y(G),Ye=T(G),Ke=J*ee;he==null?(he=G+J*h,Le=G-Ke/2):(he=As(Ne,he),Le=As(Ne,Le),(J>0?heLe)&&(he+=J*h));for(var pt,Ue=he;J>0?Ue>Le:Ue1&&q.push(q.pop().concat(q.shift()))},result:function(){var ee=q;return q=[],G=null,ee}}}function Aa(q,G){return p(q[0]-G[0])=0;--Ye)he.point((at=Ue[Ye])[0],at[1]);else J(Je.x,Je.p.x,-1,he);Je=Je.p}Je=Je.o,Ue=Je.z,mt=!mt}while(!Je.v);he.lineEnd()}}}function mo(q){if(G=q.length){for(var G,ee=0,J=q[0],he;++ee=0?1:-1,di=zi*li,Xi=di>l,Yr=er*ur;if(vo.add(g(Yr*zi*T(di),Wt*vr+Yr*y(di))),Ne+=Xi?li+zi*h:li,Xi^mt>=ee^wt>=ee){var Bn=He(me(Je),me(ir));qe(Bn);var Qa=He(Le,Bn);qe(Qa);var Hi=(Xi^li>=0?-1:1)*I(Qa[2]);(J>Hi||J===Hi&&(Bn[0]||Bn[1]))&&(Ye+=Xi^li>=0?1:-1)}}return(Ne<-o||Ne0){for(Ke||(he.polygonStart(),Ke=!0),he.lineStart(),vr=0;vr1&&It&2&&ur.push(ur.pop().concat(ur.shift())),Ue.push(ur.filter(nl))}}return Je}}function nl(q){return q.length>1}function Ms(q,G){return((q=q.x)[0]<0?q[1]-u-o:u-q[1])-((G=G.x)[0]<0?G[1]-u-o:u-G[1])}var Qt=Rn(function(){return!0},Jt,Dt,[-l,-u]);function Jt(q){var G=NaN,ee=NaN,J=NaN,he;return{lineStart:function(){q.lineStart(),he=1},point:function(Le,Ne){var Ye=Le>0?l:-l,Ke=p(Le-G);p(Ke-l)0?u:-u),q.point(J,ee),q.lineEnd(),q.lineStart(),q.point(Ye,ee),q.point(Le,ee),he=0):J!==Ye&&Ke>=l&&(p(G-J)o?m((T(G)*(Le=y(J))*T(ee)-T(J)*(he=y(G))*T(q))/(he*Le*Ne)):(G+J)/2}function Dt(q,G,ee,J){var he;if(q==null)he=ee*u,J.point(-l,he),J.point(0,he),J.point(l,he),J.point(l,0),J.point(l,-he),J.point(0,-he),J.point(-l,-he),J.point(-l,0),J.point(-l,he);else if(p(q[0]-G[0])>o){var Le=q[0]0,he=p(G)>o;function Le(Ue,at,Je,mt){Nu(mt,q,ee,Je,Ue,at)}function Ne(Ue,at){return y(Ue)*y(at)>G}function Ye(Ue){var at,Je,mt,_t,er;return{lineStart:function(){_t=mt=!1,er=1},point:function(Wt,rr){var ir=[Wt,rr],wt,It=Ne(Wt,rr),ur=J?It?0:pt(Wt,rr):It?pt(Wt+(Wt<0?l:-l),rr):0;if(!at&&(_t=mt=It)&&Ue.lineStart(),It!==mt&&(wt=Ke(at,ir),(!wt||Aa(at,wt)||Aa(ir,wt))&&(ir[2]=1)),It!==mt)er=0,It?(Ue.lineStart(),wt=Ke(ir,at),Ue.point(wt[0],wt[1])):(wt=Ke(at,ir),Ue.point(wt[0],wt[1],2),Ue.lineEnd()),at=wt;else if(he&&at&&J^It){var vr;!(ur&Je)&&(vr=Ke(ir,at,!0))&&(er=0,J?(Ue.lineStart(),Ue.point(vr[0][0],vr[0][1]),Ue.point(vr[1][0],vr[1][1]),Ue.lineEnd()):(Ue.point(vr[1][0],vr[1][1]),Ue.lineEnd(),Ue.lineStart(),Ue.point(vr[0][0],vr[0][1],3)))}It&&(!at||!Aa(at,ir))&&Ue.point(ir[0],ir[1]),at=ir,mt=It,Je=ur},lineEnd:function(){mt&&Ue.lineEnd(),at=null},clean:function(){return er|(_t&&mt)<<1}}}function Ke(Ue,at,Je){var mt=me(Ue),_t=me(at),er=[1,0,0],Wt=He(mt,_t),rr=ze(Wt,Wt),ir=Wt[0],wt=rr-ir*ir;if(!wt)return!Je&&Ue;var It=G*rr/wt,ur=-G*ir/wt,vr=He(er,Wt),li=Oe(er,It),zi=Oe(Wt,ur);ke(li,zi);var di=vr,Xi=ze(li,di),Yr=ze(di,di),Bn=Xi*Xi-Yr*(ze(li,li)-1);if(!(Bn<0)){var Qa=S(Bn),Hi=Oe(di,(-Xi-Qa)/Yr);if(ke(Hi,li),Hi=ce(Hi),!Je)return Hi;var Bt=Ue[0],ai=at[0],en=Ue[1],Qn=at[1],is;ai0^Hi[1]<(p(Hi[0]-Bt)l^(Bt<=Hi[0]&&Hi[0]<=ai)){var cl=Oe(di,(-Xi+Qa)/Yr);return ke(cl,li),[Hi,ce(cl)]}}}function pt(Ue,at){var Je=J?q:l-q,mt=0;return Ue<-Je?mt|=1:Ue>Je&&(mt|=2),at<-Je?mt|=4:at>Je&&(mt|=8),mt}return Rn(Ne,Ye,Le,J?[0,-q]:[-l,q-l])}function Di(q,G,ee,J,he,Le){var Ne=q[0],Ye=q[1],Ke=G[0],pt=G[1],Ue=0,at=1,Je=Ke-Ne,mt=pt-Ye,_t;if(_t=ee-Ne,!(!Je&&_t>0)){if(_t/=Je,Je<0){if(_t0){if(_t>at)return;_t>Ue&&(Ue=_t)}if(_t=he-Ne,!(!Je&&_t<0)){if(_t/=Je,Je<0){if(_t>at)return;_t>Ue&&(Ue=_t)}else if(Je>0){if(_t0)){if(_t/=mt,mt<0){if(_t0){if(_t>at)return;_t>Ue&&(Ue=_t)}if(_t=Le-Ye,!(!mt&&_t<0)){if(_t/=mt,mt<0){if(_t>at)return;_t>Ue&&(Ue=_t)}else if(mt>0){if(_t0&&(q[0]=Ne+Ue*Je,q[1]=Ye+Ue*mt),at<1&&(G[0]=Ne+at*Je,G[1]=Ye+at*mt),!0}}}}}var Wi=1e9,$i=-Wi;function hn(q,G,ee,J){function he(pt,Ue){return q<=pt&&pt<=ee&&G<=Ue&&Ue<=J}function Le(pt,Ue,at,Je){var mt=0,_t=0;if(pt==null||(mt=Ne(pt,at))!==(_t=Ne(Ue,at))||Ke(pt,Ue)<0^at>0)do Je.point(mt===0||mt===3?q:ee,mt>1?J:G);while((mt=(mt+at+4)%4)!==_t);else Je.point(Ue[0],Ue[1])}function Ne(pt,Ue){return p(pt[0]-q)0?0:3:p(pt[0]-ee)0?2:1:p(pt[1]-G)0?1:0:Ue>0?3:2}function Ye(pt,Ue){return Ke(pt.x,Ue.x)}function Ke(pt,Ue){var at=Ne(pt,1),Je=Ne(Ue,1);return at!==Je?at-Je:at===0?Ue[1]-pt[1]:at===1?pt[0]-Ue[0]:at===2?pt[1]-Ue[1]:Ue[0]-pt[0]}return function(pt){var Ue=pt,at=il(),Je,mt,_t,er,Wt,rr,ir,wt,It,ur,vr,li={point:zi,lineStart:Bn,lineEnd:Qa,polygonStart:Xi,polygonEnd:Yr};function zi(Bt,ai){he(Bt,ai)&&Ue.point(Bt,ai)}function di(){for(var Bt=0,ai=0,en=mt.length;aiJ&&(S0-Gc)*(J-cl)>(Nh-cl)*(q-Gc)&&++Bt:Nh<=J&&(S0-Gc)*(J-cl)<(Nh-cl)*(q-Gc)&&--Bt;return Bt}function Xi(){Ue=at,Je=[],mt=[],vr=!0}function Yr(){var Bt=di(),ai=vr&&Bt,en=(Je=t.merge(Je)).length;(ai||en)&&(pt.polygonStart(),ai&&(pt.lineStart(),Le(null,null,1,pt),pt.lineEnd()),en&&Ts(Je,Ye,Bt,Le,pt),pt.polygonEnd()),Ue=pt,Je=mt=_t=null}function Bn(){li.point=Hi,mt&&mt.push(_t=[]),ur=!0,It=!1,ir=wt=NaN}function Qa(){Je&&(Hi(er,Wt),rr&&It&&at.rejoin(),Je.push(at.result())),li.point=zi,It&&Ue.lineEnd()}function Hi(Bt,ai){var en=he(Bt,ai);if(mt&&_t.push([Bt,ai]),ur)er=Bt,Wt=ai,rr=en,ur=!1,en&&(Ue.lineStart(),Ue.point(Bt,ai));else if(en&&It)Ue.point(Bt,ai);else{var Qn=[ir=Math.max($i,Math.min(Wi,ir)),wt=Math.max($i,Math.min(Wi,wt))],is=[Bt=Math.max($i,Math.min(Wi,Bt)),ai=Math.max($i,Math.min(Wi,ai))];Di(Qn,is,q,G,ee,J)?(It||(Ue.lineStart(),Ue.point(Qn[0],Qn[1])),Ue.point(is[0],is[1]),en||Ue.lineEnd(),vr=!1):en&&(Ue.lineStart(),Ue.point(Bt,ai),vr=!1)}ir=Bt,wt=ai,It=en}return li}}function Jo(){var q=0,G=0,ee=960,J=500,he,Le,Ne;return Ne={stream:function(Ye){return he&&Le===Ye?he:he=hn(q,G,ee,J)(Le=Ye)},extent:function(Ye){return arguments.length?(q=+Ye[0][0],G=+Ye[0][1],ee=+Ye[1][0],J=+Ye[1][1],he=Le=null,Ne):[[q,G],[ee,J]]}}}var Ds=r(),Bo,Qo,Uu,qo={sphere:L,point:L,lineStart:ol,lineEnd:L,polygonStart:L,polygonEnd:L};function ol(){qo.point=l0,qo.lineEnd=Jl}function Jl(){qo.point=qo.lineEnd=L}function l0(q,G){q*=d,G*=d,Bo=q,Qo=T(G),Uu=y(G),qo.point=Ph}function Ph(q,G){q*=d,G*=d;var ee=T(G),J=y(G),he=p(q-Bo),Le=y(he),Ne=T(he),Ye=J*Ne,Ke=Uu*ee-Qo*J*Le,pt=Qo*ee+Uu*J*Le;Ds.add(g(S(Ye*Ye+Ke*Ke),pt)),Bo=q,Qo=ee,Uu=J}function Ql(q){return Ds.reset(),H(q,qo),+Ds}var Gu=[null,null],go={type:"LineString",coordinates:Gu};function eu(q,G){return Gu[0]=q,Gu[1]=G,Ql(go)}var sl={Feature:function(q,G){return Oo(q.geometry,G)},FeatureCollection:function(q,G){for(var ee=q.features,J=-1,he=ee.length;++J0&&(he=eu(q[Le],q[Le-1]),he>0&&ee<=he&&J<=he&&(ee+J-he)*(1-Math.pow((ee-J)/he,2))o}).map(Je)).concat(t.range(x(Le/pt)*pt,he,pt).filter(function(wt){return p(wt%at)>o}).map(mt))}return rr.lines=function(){return ir().map(function(wt){return{type:"LineString",coordinates:wt}})},rr.outline=function(){return{type:"Polygon",coordinates:[_t(J).concat(er(Ne).slice(1),_t(ee).reverse().slice(1),er(Ye).reverse().slice(1))]}},rr.extent=function(wt){return arguments.length?rr.extentMajor(wt).extentMinor(wt):rr.extentMinor()},rr.extentMajor=function(wt){return arguments.length?(J=+wt[0][0],ee=+wt[1][0],Ye=+wt[0][1],Ne=+wt[1][1],J>ee&&(wt=J,J=ee,ee=wt),Ye>Ne&&(wt=Ye,Ye=Ne,Ne=wt),rr.precision(Wt)):[[J,Ye],[ee,Ne]]},rr.extentMinor=function(wt){return arguments.length?(G=+wt[0][0],q=+wt[1][0],Le=+wt[0][1],he=+wt[1][1],G>q&&(wt=G,G=q,q=wt),Le>he&&(wt=Le,Le=he,he=wt),rr.precision(Wt)):[[G,Le],[q,he]]},rr.step=function(wt){return arguments.length?rr.stepMajor(wt).stepMinor(wt):rr.stepMinor()},rr.stepMajor=function(wt){return arguments.length?(Ue=+wt[0],at=+wt[1],rr):[Ue,at]},rr.stepMinor=function(wt){return arguments.length?(Ke=+wt[0],pt=+wt[1],rr):[Ke,pt]},rr.precision=function(wt){return arguments.length?(Wt=+wt,Je=$u(Le,he,90),mt=Lh(G,q,Wt),_t=$u(Ye,Ne,90),er=Lh(J,ee,Wt),rr):Wt},rr.extentMajor([[-180,-90+o],[180,90-o]]).extentMinor([[-180,-80-o],[180,80+o]])}function c0(){return Hu()()}function Rc(q,G){var ee=q[0]*d,J=q[1]*d,he=G[0]*d,Le=G[1]*d,Ne=y(J),Ye=T(J),Ke=y(Le),pt=T(Le),Ue=Ne*y(ee),at=Ne*T(ee),Je=Ke*y(he),mt=Ke*T(he),_t=2*I(S(B(Le-J)+Ne*Ke*B(he-ee))),er=T(_t),Wt=_t?function(rr){var ir=T(rr*=_t)/er,wt=T(_t-rr)/er,It=wt*Ue+ir*Je,ur=wt*at+ir*mt,vr=wt*Ye+ir*pt;return[g(ur,It)*f,g(vr,S(It*It+ur*ur))*f]}:function(){return[ee*f,J*f]};return Wt.distance=_t,Wt}function ll(q){return q}var Dn=r(),zh=r(),Bc,ts,ks,h0,ha={point:L,lineStart:L,lineEnd:L,polygonStart:function(){ha.lineStart=No,ha.lineEnd=vp},polygonEnd:function(){ha.lineStart=ha.lineEnd=ha.point=L,Dn.add(p(zh)),zh.reset()},result:function(){var q=Dn/2;return Dn.reset(),q}};function No(){ha.point=Sn}function Sn(q,G){ha.point=Jn,Bc=ks=q,ts=h0=G}function Jn(q,G){zh.add(h0*q-ks*G),ks=q,h0=G}function vp(){Jn(Bc,ts)}var tu=1/0,qc=tu,Oc=-tu,Nc=Oc,Zu={point:f0,lineStart:L,lineEnd:L,polygonStart:L,polygonEnd:L,result:function(){var q=[[tu,qc],[Oc,Nc]];return Oc=Nc=-(qc=tu=1/0),q}};function f0(q,G){qOc&&(Oc=q),GNc&&(Nc=G)}var gp=0,d0=0,p0=0,Vc=0,yp=0,Rh=0,$m=0,_p=0,ru=0,s_,xp,Cs,fn,Vo={point:iu,lineStart:bp,lineEnd:Hm,polygonStart:function(){Vo.lineStart=$6,Vo.lineEnd=H6},polygonEnd:function(){Vo.point=iu,Vo.lineStart=bp,Vo.lineEnd=Hm},result:function(){var q=ru?[$m/ru,_p/ru]:Rh?[Vc/Rh,yp/Rh]:p0?[gp/p0,d0/p0]:[NaN,NaN];return gp=d0=p0=Vc=yp=Rh=$m=_p=ru=0,q}};function iu(q,G){gp+=q,d0+=G,++p0}function bp(){Vo.point=Uc}function Uc(q,G){Vo.point=wp,iu(Cs=q,fn=G)}function wp(q,G){var ee=q-Cs,J=G-fn,he=S(ee*ee+J*J);Vc+=he*(Cs+q)/2,yp+=he*(fn+G)/2,Rh+=he,iu(Cs=q,fn=G)}function Hm(){Vo.point=iu}function $6(){Vo.point=Z6}function H6(){Zm(s_,xp)}function Z6(q,G){Vo.point=Zm,iu(s_=Cs=q,xp=fn=G)}function Zm(q,G){var ee=q-Cs,J=G-fn,he=S(ee*ee+J*J);Vc+=he*(Cs+q)/2,yp+=he*(fn+G)/2,Rh+=he,he=fn*q-Cs*G,$m+=he*(Cs+q),_p+=he*(fn+G),ru+=he*3,iu(Cs=q,fn=G)}function Ym(q){this._context=q}Ym.prototype={_radius:4.5,pointRadius:function(q){return this._radius=q,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(q,G){switch(this._point){case 0:{this._context.moveTo(q,G),this._point=1;break}case 1:{this._context.lineTo(q,G);break}default:{this._context.moveTo(q+this._radius,G),this._context.arc(q,G,this._radius,0,h);break}}},result:L};var Wm=r(),Xm,l_,u_,m0,v0,g0={point:L,lineStart:function(){g0.point=Y6},lineEnd:function(){Xm&&c_(l_,u_),g0.point=L},polygonStart:function(){Xm=!0},polygonEnd:function(){Xm=null},result:function(){var q=+Wm;return Wm.reset(),q}};function Y6(q,G){g0.point=c_,l_=m0=q,u_=v0=G}function c_(q,G){m0-=q,v0-=G,Wm.add(S(m0*m0+v0*v0)),m0=q,v0=G}function h_(){this._string=[]}h_.prototype={_radius:4.5,_circle:f_(4.5),pointRadius:function(q){return(q=+q)!==this._radius&&(this._radius=q,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(q,G){switch(this._point){case 0:{this._string.push("M",q,",",G),this._point=1;break}case 1:{this._string.push("L",q,",",G);break}default:{this._circle==null&&(this._circle=f_(this._radius)),this._string.push("M",q,",",G,this._circle);break}}},result:function(){if(this._string.length){var q=this._string.join("");return this._string=[],q}else return null}};function f_(q){return"m0,"+q+"a"+q+","+q+" 0 1,1 0,"+-2*q+"a"+q+","+q+" 0 1,1 0,"+2*q+"z"}function W6(q,G){var ee=4.5,J,he;function Le(Ne){return Ne&&(typeof ee=="function"&&he.pointRadius(+ee.apply(this,arguments)),H(Ne,J(he))),he.result()}return Le.area=function(Ne){return H(Ne,J(ha)),ha.result()},Le.measure=function(Ne){return H(Ne,J(g0)),g0.result()},Le.bounds=function(Ne){return H(Ne,J(Zu)),Zu.result()},Le.centroid=function(Ne){return H(Ne,J(Vo)),Vo.result()},Le.projection=function(Ne){return arguments.length?(J=Ne==null?(q=null,ll):(q=Ne).stream,Le):q},Le.context=function(Ne){return arguments.length?(he=Ne==null?(G=null,new h_):new Ym(G=Ne),typeof ee!="function"&&he.pointRadius(ee),Le):G},Le.pointRadius=function(Ne){return arguments.length?(ee=typeof Ne=="function"?Ne:(he.pointRadius(+Ne),+Ne),Le):ee},Le.projection(q).context(G)}function X6(q){return{stream:Bh(q)}}function Bh(q){return function(G){var ee=new Ap;for(var J in q)ee[J]=q[J];return ee.stream=G,ee}}function Ap(){}Ap.prototype={constructor:Ap,point:function(q,G){this.stream.point(q,G)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};function Tp(q,G,ee){var J=q.clipExtent&&q.clipExtent();return q.scale(150).translate([0,0]),J!=null&&q.clipExtent(null),H(ee,q.stream(Zu)),G(Zu.result()),J!=null&&q.clipExtent(J),q}function y0(q,G,ee){return Tp(q,function(J){var he=G[1][0]-G[0][0],Le=G[1][1]-G[0][1],Ne=Math.min(he/(J[1][0]-J[0][0]),Le/(J[1][1]-J[0][1])),Ye=+G[0][0]+(he-Ne*(J[1][0]+J[0][0]))/2,Ke=+G[0][1]+(Le-Ne*(J[1][1]+J[0][1]))/2;q.scale(150*Ne).translate([Ye,Ke])},ee)}function Km(q,G,ee){return y0(q,[[0,0],G],ee)}function Jm(q,G,ee){return Tp(q,function(J){var he=+G,Le=he/(J[1][0]-J[0][0]),Ne=(he-Le*(J[1][0]+J[0][0]))/2,Ye=-Le*J[0][1];q.scale(150*Le).translate([Ne,Ye])},ee)}function Yu(q,G,ee){return Tp(q,function(J){var he=+G,Le=he/(J[1][1]-J[0][1]),Ne=-Le*J[0][0],Ye=(he-Le*(J[1][1]+J[0][1]))/2;q.scale(150*Le).translate([Ne,Ye])},ee)}var d_=16,K6=y(30*d);function p_(q,G){return+G?m_(q,G):J6(q)}function J6(q){return Bh({point:function(G,ee){G=q(G,ee),this.stream.point(G[0],G[1])}})}function m_(q,G){function ee(J,he,Le,Ne,Ye,Ke,pt,Ue,at,Je,mt,_t,er,Wt){var rr=pt-J,ir=Ue-he,wt=rr*rr+ir*ir;if(wt>4*G&&er--){var It=Ne+Je,ur=Ye+mt,vr=Ke+_t,li=S(It*It+ur*ur+vr*vr),zi=I(vr/=li),di=p(p(vr)-1)G||p((rr*Qa+ir*Hi)/wt-.5)>.3||Ne*Je+Ye*mt+Ke*_t2?Bt[2]%360*d:0,Qa()):[Ye*f,Ke*f,pt*f]},Yr.angle=function(Bt){return arguments.length?(at=Bt%360*d,Qa()):at*f},Yr.reflectX=function(Bt){return arguments.length?(Je=Bt?-1:1,Qa()):Je<0},Yr.reflectY=function(Bt){return arguments.length?(mt=Bt?-1:1,Qa()):mt<0},Yr.precision=function(Bt){return arguments.length?(vr=p_(li,ur=Bt*Bt),Hi()):S(ur)},Yr.fitExtent=function(Bt,ai){return y0(Yr,Bt,ai)},Yr.fitSize=function(Bt,ai){return Km(Yr,Bt,ai)},Yr.fitWidth=function(Bt,ai){return Jm(Yr,Bt,ai)},Yr.fitHeight=function(Bt,ai){return Yu(Yr,Bt,ai)};function Qa(){var Bt=Qm(ee,0,0,Je,mt,at).apply(null,G(Le,Ne)),ai=(at?Qm:tA)(ee,J-Bt[0],he-Bt[1],Je,mt,at);return Ue=Li(Ye,Ke,pt),li=ji(G,ai),zi=ji(Ue,li),vr=p_(li,ur),Hi()}function Hi(){return di=Xi=null,Yr}return function(){return G=q.apply(this,arguments),Yr.invert=G.invert&&Bn,Qa()}}function tv(q){var G=0,ee=l/3,J=ev(q),he=J(G,ee);return he.parallels=function(Le){return arguments.length?J(G=Le[0]*d,ee=Le[1]*d):[G*f,ee*f]},he}function rA(q){var G=y(q);function ee(J,he){return[J*G,T(he)/G]}return ee.invert=function(J,he){return[J/G,I(he*G)]},ee}function v_(q,G){var ee=T(q),J=(ee+T(G))/2;if(p(J)=.12&&Wt<.234&&er>=-.425&&er<-.214?he:Wt>=.166&&Wt<.234&&er>=-.214&&er<-.115?Ne:ee).invert(Je)},Ue.stream=function(Je){return q&&G===Je?q:q=iA([ee.stream(G=Je),he.stream(Je),Ne.stream(Je)])},Ue.precision=function(Je){return arguments.length?(ee.precision(Je),he.precision(Je),Ne.precision(Je),at()):ee.precision()},Ue.scale=function(Je){return arguments.length?(ee.scale(Je),he.scale(Je*.35),Ne.scale(Je),Ue.translate(ee.translate())):ee.scale()},Ue.translate=function(Je){if(!arguments.length)return ee.translate();var mt=ee.scale(),_t=+Je[0],er=+Je[1];return J=ee.translate(Je).clipExtent([[_t-.455*mt,er-.238*mt],[_t+.455*mt,er+.238*mt]]).stream(pt),Le=he.translate([_t-.307*mt,er+.201*mt]).clipExtent([[_t-.425*mt+o,er+.12*mt+o],[_t-.214*mt-o,er+.234*mt-o]]).stream(pt),Ye=Ne.translate([_t-.205*mt,er+.212*mt]).clipExtent([[_t-.214*mt+o,er+.166*mt+o],[_t-.115*mt-o,er+.234*mt-o]]).stream(pt),at()},Ue.fitExtent=function(Je,mt){return y0(Ue,Je,mt)},Ue.fitSize=function(Je,mt){return Km(Ue,Je,mt)},Ue.fitWidth=function(Je,mt){return Jm(Ue,Je,mt)},Ue.fitHeight=function(Je,mt){return Yu(Ue,Je,mt)};function at(){return q=G=null,Ue}return Ue.scale(1070)}function qh(q){return function(G,ee){var J=y(G),he=y(ee),Le=q(J*he);return[Le*he*T(G),Le*T(ee)]}}function au(q){return function(G,ee){var J=S(G*G+ee*ee),he=q(J),Le=T(he),Ne=y(he);return[g(G*Le,J*Ne),I(J&&ee*Le/J)]}}var rs=qh(function(q){return S(2/(1+q))});rs.invert=au(function(q){return 2*I(q/2)});function nA(){return ul(rs).scale(124.75).clipAngle(180-.001)}var rv=qh(function(q){return(q=P(q))&&q/T(q)});rv.invert=au(function(q){return q});function oA(){return ul(rv).scale(79.4188).clipAngle(180-.001)}function x0(q,G){return[q,_(k((u+G)/2))]}x0.invert=function(q,G){return[q,2*m(w(G))-u]};function y_(){return __(x0).scale(961/h)}function __(q){var G=ul(q),ee=G.center,J=G.scale,he=G.translate,Le=G.clipExtent,Ne=null,Ye,Ke,pt;G.scale=function(at){return arguments.length?(J(at),Ue()):J()},G.translate=function(at){return arguments.length?(he(at),Ue()):he()},G.center=function(at){return arguments.length?(ee(at),Ue()):ee()},G.clipExtent=function(at){return arguments.length?(at==null?Ne=Ye=Ke=pt=null:(Ne=+at[0][0],Ye=+at[0][1],Ke=+at[1][0],pt=+at[1][1]),Ue()):Ne==null?null:[[Ne,Ye],[Ke,pt]]};function Ue(){var at=l*J(),Je=G(rl(G.rotate()).invert([0,0]));return Le(Ne==null?[[Je[0]-at,Je[1]-at],[Je[0]+at,Je[1]+at]]:q===x0?[[Math.max(Je[0]-at,Ne),Ye],[Math.min(Je[0]+at,Ke),pt]]:[[Ne,Math.max(Je[1]-at,Ye)],[Ke,Math.min(Je[1]+at,pt)]])}return Ue()}function Mp(q){return k((u+q)/2)}function x_(q,G){var ee=y(q),J=q===G?T(q):_(ee/y(G))/_(Mp(G)/Mp(q)),he=ee*A(Mp(q),J)/J;if(!J)return x0;function Le(Ne,Ye){he>0?Ye<-u+o&&(Ye=-u+o):Ye>u-o&&(Ye=u-o);var Ke=he/A(Mp(Ye),J);return[Ke*T(J*Ne),he-Ke*y(J*Ne)]}return Le.invert=function(Ne,Ye){var Ke=he-Ye,pt=M(J)*S(Ne*Ne+Ke*Ke),Ue=g(Ne,p(Ke))*M(Ke);return Ke*J<0&&(Ue-=l*M(Ne)*M(Ke)),[Ue/J,2*m(A(he/pt,1/J))-u]},Le}function sA(){return tv(x_).scale(109.5).parallels([30,30])}function b0(q,G){return[q,G]}b0.invert=b0;function iv(){return ul(b0).scale(152.63)}function Dp(q,G){var ee=y(q),J=q===G?T(q):(ee-y(G))/(G-q),he=ee/J+q;if(p(J)o&&--J>0);return[q/(.8707+(Le=ee*ee)*(-.131979+Le*(-.013791+Le*Le*Le*(.003971-.001529*Le)))),ee]};function A_(){return ul(av).scale(175.295)}function kp(q,G){return[y(G)*T(q),T(G)]}kp.invert=au(I);function T_(){return ul(kp).scale(249.5).clipAngle(90+o)}function D0(q,G){var ee=y(G),J=1+y(q)*ee;return[ee*T(q)/J,T(G)/J]}D0.invert=au(function(q){return 2*m(q)});function nv(){return ul(D0).scale(250).clipAngle(142)}function ov(q,G){return[_(k((u+G)/2)),-q]}ov.invert=function(q,G){return[-G,2*m(w(q))-u]};function hA(){var q=__(ov),G=q.center,ee=q.rotate;return q.center=function(J){return arguments.length?G([-J[1],J[0]]):(J=G(),[J[1],-J[0]])},q.rotate=function(J){return arguments.length?ee([J[0],J[1],J.length>2?J[2]+90:90]):(J=ee(),[J[0],J[1],J[2]-90])},ee([0,0,90]).scale(159.155)}e.geoAlbers=g_,e.geoAlbersUsa=aA,e.geoArea=re,e.geoAzimuthalEqualArea=nA,e.geoAzimuthalEqualAreaRaw=rs,e.geoAzimuthalEquidistant=oA,e.geoAzimuthalEquidistantRaw=rv,e.geoBounds=gt,e.geoCentroid=Ht,e.geoCircle=Vu,e.geoClipAntimeridian=Qt,e.geoClipCircle=Va,e.geoClipExtent=Jo,e.geoClipRectangle=hn,e.geoConicConformal=sA,e.geoConicConformalRaw=x_,e.geoConicEqualArea=_0,e.geoConicEqualAreaRaw=v_,e.geoConicEquidistant=lA,e.geoConicEquidistantRaw=Dp,e.geoContains=u0,e.geoDistance=eu,e.geoEqualEarth=b_,e.geoEqualEarthRaw=M0,e.geoEquirectangular=iv,e.geoEquirectangularRaw=b0,e.geoGnomonic=w_,e.geoGnomonicRaw=Ep,e.geoGraticule=Hu,e.geoGraticule10=c0,e.geoIdentity=cA,e.geoInterpolate=Rc,e.geoLength=Ql,e.geoMercator=y_,e.geoMercatorRaw=x0,e.geoNaturalEarth1=A_,e.geoNaturalEarth1Raw=av,e.geoOrthographic=T_,e.geoOrthographicRaw=kp,e.geoPath=W6,e.geoProjection=ul,e.geoProjectionMutator=ev,e.geoRotation=rl,e.geoStereographic=nv,e.geoStereographicRaw=D0,e.geoStream=H,e.geoTransform=X6,e.geoTransverseMercator=hA,e.geoTransverseMercatorRaw=ov,Object.defineProperty(e,"__esModule",{value:!0})}))});var Bce=X((fht,Rce)=>{"use strict";var zce={alabama:"AL",alaska:"AK",arizona:"AZ",arkansas:"AR",california:"CA",colorado:"CO",connecticut:"CT",delaware:"DE","district of columbia":"DC",florida:"FL",georgia:"GA",hawaii:"HI",idaho:"ID",illinois:"IL",indiana:"IN",iowa:"IA",kansas:"KS",kentucky:"KY",louisiana:"LA",maine:"ME",maryland:"MD",massachusetts:"MA",michigan:"MI",minnesota:"MN",mississippi:"MS",missouri:"MO",montana:"MT",nebraska:"NE",nevada:"NV","new hampshire":"NH","new jersey":"NJ","new mexico":"NM","new york":"NY","north carolina":"NC","north dakota":"ND",ohio:"OH",oklahoma:"OK",oregon:"OR",pennsylvania:"PA","rhode island":"RI","south carolina":"SC","south dakota":"SD",tennessee:"TN",texas:"TX",utah:"UT",vermont:"VT",virginia:"VA",washington:"WA","washington dc":"DC","washington d.c.":"DC","west virginia":"WV",wisconsin:"WI",wyoming:"WY"},yWe=new Set(Object.values(zce));Rce.exports={usaLocationAbbreviations:yWe,usaLocationList:zce}});var qce={};Zi(qce,{COUNTRIES_X:()=>_We});var _We,Oce=Vi(()=>{"use strict";_We=[{iso3:"XAC",iso2:"",m49:"",name:"Aksai Chin",aliases:[]},{iso3:"XAP",iso2:"",m49:"",name:"Arunachal Pradesh",aliases:[]},{iso3:"XBT",iso2:"",m49:"",name:"Bir Tawil",aliases:[]},{iso3:"XHT",iso2:"",m49:"",name:"Halaib Triangle",aliases:[]},{iso3:"XIT",iso2:"",m49:"",name:"Ilemi Triangle",aliases:[]},{iso3:"XJK",iso2:"",m49:"",name:"Jammu and Kashmir",aliases:[]}]});var t_=X((dht,Uce)=>{"use strict";var xWe=Wr(),{COUNTRIES:bWe,createLookup:wWe}=pce(),{area:AWe}=Ece(),{centroid:TWe}=Cce(),{coordAll:MWe}=w6(),{geoBounds:DWe}=Lce(),SWe=Fx(),Kf=Hc(),EWe=Gh(),kWe=cv(),S6=x3(),{usaLocationAbbreviations:CWe,usaLocationList:FWe}=Bce(),{COUNTRIES_X:PWe}=(Oce(),ct(qce)),{lookupAlpha3:IWe}=wWe([...bWe,...PWe]),LWe={"ISO-3":SWe,"USA-states":RWe,"country names":zWe};function zWe(e){let t=IWe(e);return t||(Kf.log("Unrecognized country name: "+e+"."),!1)}function RWe(e){e=e.trim();let t=CWe.has(e.toUpperCase())?e.toUpperCase():FWe[e.toLowerCase()];return t||(Kf.log("Unrecognized US location: "+e+"."),!1)}function BWe(e,t,r){var a;if(!t||typeof t!="string")return!1;let i=LWe[e](t);if(i){let n;if(e==="USA-states"){n=[];for(let o of r)((a=o==null?void 0:o.properties)==null?void 0:a.gu)==="USA"&&n.push(o)}else n=r;for(let o of n)if(o.id===i)return o;Kf.log(`Location with id ${i} does not have a matching topojson feature at this resolution.`)}return!1}var E6=360;function QF(e){for(let t=0;t0&&e[t+1][0]<0)return t;return null}function qWe(e){var t=e.geometry,r=t.coordinates,i=e.id,a=[],n,o,s,l;switch(i==="RUS"||i==="FJI"?n=function(u){var c;if(QF(u)===null)c=u;else for(c=new Array(u.length),l=0;lc?h[f++]=[u[l][0]+E6,u[l][1]]:l===c?(h[f++]=u[l],h[f++]=[u[l][0],-90]):h[f++]=u[l];var d=S6.tester(h);d.pts.pop(),a.push(d)}:n=function(u){a.push(S6.tester(u))},t.type){case"MultiPolygon":for(o=0;oa&&(a=s,r=o)}else r=t;return!r||!r.coordinates.some(l=>l.length>0)?[NaN,NaN]:TWe(r).geometry.coordinates}function VWe(e){var t=window.PlotlyGeoAssets||{},r=[];function i(l){return new Promise(function(u,c){xWe.json(l,function(h,f){if(h){delete t[l];var d=h.status===404?'GeoJSON at URL "'+l+'" does not exist.':"Unexpected error while fetching from "+l;return c(new Error(d))}return t[l]=f,u(f)})})}function a(l){return new Promise(function(u,c){var h=0,f=setInterval(function(){if(t[l]&&t[l]!=="pending")return clearInterval(f),u(t[l]);if(h>100)return clearInterval(f),c("Unexpected error while fetching from "+l);h++},50)})}for(var n=0;nrP(tP(e));function tP(e){try{return MWe(e)}catch(t){return[]}}function rP(e){if(e.length===0)return null;if(e.length===1){let[n,o]=e[0];return[n,o,n,o]}let[[t,r],[i,a]]=DWe({type:"MultiPoint",coordinates:e});return[t,r,Vce([t,i])[1],a]}var GWe=(e,t)=>t.fitbounds==="geojson"&&e.locationmode==="geojson-id",Nce=(e,t)=>GWe(e,t)?tP(eP(e)):[],jWe=(e,t)=>rP(Nce(e,t));function Vce([e,t]){return[e,e>t?t+E6:t]}Uce.exports={locationToFeature:BWe,feature2polygons:qWe,getTraceGeojson:eP,extractTraceFeature:OWe,fetchTraceGeoData:VWe,boundsOfCoords:rP,computeBbox:UWe,coordsOf:tP,doesCrossAntiMeridian:QF,fitGeojsonBbox:jWe,fitGeojsonCoords:Nce,unwrapLonRange:Vce,ANTIMERIDIAN_LON_SHIFT:E6}});var Zce=X((pht,Hce)=>{"use strict";var lp=et(),$We=sn().sanitizeHTML,HWe=C9(),Gce=Cf();function jce(e,t){this.subplot=e,this.uid=e.uid+"-"+t,this.index=t,this.idSource="source-"+this.uid,this.idLayer=Gce.layoutLayerPrefix+this.uid,this.sourceType=null,this.source=null,this.layerType=null,this.below=null,this.visible=!1}var Wl=jce.prototype;Wl.update=function(t){this.visible?this.needsNewImage(t)?this.updateImage(t):this.needsNewSource(t)?(this.removeLayer(),this.updateSource(t),this.updateLayer(t)):this.needsNewLayer(t)?this.updateLayer(t):this.updateStyle(t):(this.updateSource(t),this.updateLayer(t)),this.visible=k6(t)};Wl.needsNewImage=function(e){var t=this.subplot.map;return t.getSource(this.idSource)&&this.sourceType==="image"&&e.sourcetype==="image"&&(this.source!==e.source||JSON.stringify(this.coordinates)!==JSON.stringify(e.coordinates))};Wl.needsNewSource=function(e){return this.sourceType!==e.sourcetype||JSON.stringify(this.source)!==JSON.stringify(e.source)||this.layerType!==e.type};Wl.needsNewLayer=function(e){return this.layerType!==e.type||this.below!==this.subplot.belowLookup["layout-"+this.index]};Wl.lookupBelow=function(){return this.subplot.belowLookup["layout-"+this.index]};Wl.updateImage=function(e){var t=this.subplot.map;t.getSource(this.idSource).updateImage({url:e.source,coordinates:e.coordinates});var r=this.findFollowingMapLayerId(this.lookupBelow());r!==null&&this.subplot.map.moveLayer(this.idLayer,r)};Wl.updateSource=function(e){var t=this.subplot.map;if(t.getSource(this.idSource)&&t.removeSource(this.idSource),this.sourceType=e.sourcetype,this.source=e.source,!!k6(e)){var r=ZWe(e);t.addSource(this.idSource,r)}};Wl.findFollowingMapLayerId=function(e){if(e==="traces")for(var t=this.subplot.getMapLayers(),r=0;r0){for(var r=0;r0}function $ce(e){var t={},r={};switch(e.type){case"circle":lp.extendFlat(r,{"circle-radius":e.circle.radius,"circle-color":e.color,"circle-opacity":e.opacity});break;case"line":lp.extendFlat(r,{"line-width":e.line.width,"line-color":e.color,"line-opacity":e.opacity,"line-dasharray":e.line.dash});break;case"fill":lp.extendFlat(r,{"fill-color":e.color,"fill-outline-color":e.fill.outlinecolor,"fill-opacity":e.opacity});break;case"symbol":var i=e.symbol,a=HWe(i.textposition,i.iconsize);lp.extendFlat(t,{"icon-image":i.icon,"icon-size":i.iconsize/10,"text-field":i.text,"text-size":i.textfont.size,"text-anchor":a.anchor,"text-offset":a.offset,"symbol-placement":i.placement}),lp.extendFlat(r,{"icon-color":e.color,"text-color":i.textfont.color,"text-opacity":e.opacity});break;case"raster":lp.extendFlat(r,{"raster-fade-duration":0,"raster-opacity":e.opacity});break}return{layout:t,paint:r}}function ZWe(e){var t=e.sourcetype,r=e.source,i={type:t},a;return t==="geojson"?a="data":t==="vector"?a=typeof r=="string"?"url":"tiles":t==="raster"?(a="tiles",i.tileSize=256):t==="image"&&(a="url",i.coordinates=e.coordinates),i[a]=r,e.sourceattribution&&(i.attribution=$We(e.sourceattribution)),i}Hce.exports=function(t,r,i){var a=new jce(t,r);return a.update(i),a}});var ahe=X((mht,ihe)=>{"use strict";var F6=(sce(),ct(nce)),YWe=uce(),Yce=!1,WWe=()=>{Yce||(Yce=!0,F6.setWorkerUrl(URL.createObjectURL(new Blob([YWe],{type:"text/javascript"}))))},P6=et(),Kce=t_(),Wce=mr(),XWe=ta(),KWe=_l(),C6=vu(),Jce=fd(),JWe=Jce.drawMode,QWe=Jce.selectMode,eXe=yc().prepSelect,tXe=yc().clearOutline,rXe=yc().clearSelectionsCache,iXe=yc().selectOnClick,Jf=Cf(),aXe=Zce();function Qce(e,t){this.id=t,this.gd=e;var r=e._fullLayout,i=e._context;this.container=r._glcontainer.node(),this.isStatic=i.staticPlot,this.uid=r._uid+"-"+this.id,this.div=null,this.xaxis=null,this.yaxis=null,this.createFramework(r),this.map=null,this.styleObj=null,this.traceHash={},this.layerList=[],this.belowLookup={},this.dragging=!1,this.wheeling=!1}var Ka=Qce.prototype;Ka.plot=function(e,t,r){var i=this,a;i.map?a=new Promise(function(n,o){i.updateMap(e,t,n,o)}):a=new Promise(function(n,o){i.createMap(e,t,n,o)}),r.push(a)};Ka.createMap=function(e,t,r,i){var a=this,n=t[a.id],o=a.styleObj=rhe(n.style),s=n.bounds,l=s?[[s.west,s.south],[s.east,s.north]]:null;let u={container:a.div,style:o.style,center:iP(n.center),zoom:n.zoom,bearing:n.bearing,pitch:n.pitch,maxBounds:l,interactive:!a.isStatic,canvasContextAttributes:{preserveDrawingBuffer:a.isStatic},doubleClickZoom:!1,boxZoom:!1,attributionControl:!1},c=n._fitBounds;c&&(u.bounds=[[c.west,c.south],[c.east,c.north]],u.fitBoundsOptions={padding:Jf.fitBoundsPadding}),WWe();let h=a.map=new F6.Map(u).addControl(new F6.AttributionControl({compact:!0})),f={};h.setMissingStyleImageResolver(p=>(!f[p]&&/^[a-zA-Z0-9-]+$/.test(p)&&(f[p]=new Promise(m=>{let g=new Image(15,15);g.onload=()=>{h.addImage(p,g,{sdf:!0}),m()},g.onerror=()=>m(),g.crossOrigin="Anonymous",g.src=`https://cdn.jsdelivr.net/npm/@mapbox/maki@8.2.0/icons/${p}.svg`})),f[p])),h.setTransformRequest(function(p){return p=p.replace("https://fonts.openmaptiles.org/Open Sans Extrabold","https://fonts.openmaptiles.org/Open Sans Extra Bold"),p=p.replace("https://tiles.basemaps.cartocdn.com/fonts/Open Sans Extrabold","https://fonts.openmaptiles.org/Open Sans Extra Bold"),p=p.replace("https://fonts.openmaptiles.org/Open Sans Regular,Arial Unicode MS Regular","https://fonts.openmaptiles.org/Klokantech Noto Sans Regular"),{url:p}}),h._canvas.style.left="0px",h._canvas.style.top="0px",a.rejectOnError(i),a.isStatic||a.initFx(e,t);var d=[];d.push(new Promise(function(p){h.once("load",p)})),d=d.concat(Kce.fetchTraceGeoData(e)),Promise.all(d).then(function(){c&&ehe(a,n),the(a,n),a.fillBelowLookup(e,t),a.updateData(e),a.updateLayout(t),a.resolveOnRender(r)}).catch(i)};Ka.updateMap=function(e,t,r,i){var a=this,n=a.map,o=t[this.id];a.rejectOnError(i);var s=[],l=rhe(o.style);JSON.stringify(a.styleObj)!==JSON.stringify(l)&&(a.styleObj=l,n.setStyle(l.style),a.traceHash={},s.push(new Promise(function(u){n.once("styledata",u)}))),s=s.concat(Kce.fetchTraceGeoData(e)),Promise.all(s).then(function(){a.fillBelowLookup(e,t),a.updateData(e);let u=o._fitBounds;u&&(n.fitBounds([[u.west,u.south],[u.east,u.north]],{padding:Jf.fitBoundsPadding,animate:!1}),ehe(a,o),the(a,o)),a.updateLayout(t),a.resolveOnRender(r)}).catch(i)};function ehe(e,t){let{center:r,zoom:i}=e.getView();t._input.center=t.center=r,t._input.zoom=t.zoom=i,t._input._fitView={center:nr({},r),zoom:i}}function the(e,t){let r=e.getView();e.viewInitial={center:P6.extendFlat({},r.center),bearing:t.bearing,pitch:t.pitch,zoom:r.zoom}}Ka.fillBelowLookup=function(e,t){var r=t[this.id],i=r.layers,a,n,o=this.belowLookup={},s=!1;for(a=0;a1)for(a=0;at.project(i).x,_subplot:t},t.yaxis={_id:"y",c2p:i=>t.project(i).y,_subplot:t},t.updateFramework(e),t.mockAxis={type:"linear",showexponent:"all",exponentformat:"B"},XWe.setConvert(t.mockAxis,e)};Ka.initFx=function(e,t){var r=this,i=r.gd,a=r.map;a.on("moveend",function(s){if(r.map){var l=i._fullLayout;if(s.originalEvent||r.wheeling){var u=l[r.id];Wce.call("_storeDirectGUIEdit",i.layout,l._preGUI,r.getViewEdits(u));var c=r.getView();u._input.center=u.center=c.center,u._input.zoom=u.zoom=c.zoom,u._input.bearing=u.bearing=c.bearing,u._input.pitch=u.pitch=c.pitch,i.emit("plotly_relayout",r.getViewEditsWithDerived(c))}s.originalEvent&&s.originalEvent.type==="mouseup"?r.dragging=!1:r.wheeling&&(r.wheeling=!1),l&&l._rehover&&l._rehover()}}),a.on("wheel",function(){r.wheeling=!0}),a.on("mousemove",function(s){var l=r.div.getBoundingClientRect(),u=[s.originalEvent.offsetX,s.originalEvent.offsetY];s.target.getBoundingClientRect=function(){return l},r.xaxis.p2c=function(){return a.unproject(u).lng},r.yaxis.p2c=function(){return a.unproject(u).lat},i._fullLayout._rehover=function(){i._fullLayout._hoversubplot===r.id&&i._fullLayout[r.id]&&C6.hover(i,s,r.id)},C6.hover(i,s,r.id),i._fullLayout._hoversubplot=r.id});function n(){C6.loneUnhover(t._hoverlayer)}a.on("dragstart",function(){r.dragging=!0,n()}),a.on("zoomstart",n),a.on("mouseout",function(){i._fullLayout._hoversubplot=null});function o(){var s=r.getView();i.emit("plotly_relayouting",r.getViewEditsWithDerived(s))}a.on("drag",o),a.on("zoom",o),a.on("dblclick",function(){var s=i._fullLayout[r.id];Wce.call("_storeDirectGUIEdit",i.layout,i._fullLayout._preGUI,r.getViewEdits(s));var l=r.viewInitial;a.setCenter(iP(l.center)),a.setZoom(l.zoom),a.setBearing(l.bearing),a.setPitch(l.pitch);var u=r.getView();s._input.center=s.center=u.center,s._input.zoom=s.zoom=u.zoom,s._input.bearing=s.bearing=u.bearing,s._input.pitch=s.pitch=u.pitch,i.emit("plotly_doubleclick",null),i.emit("plotly_relayout",r.getViewEditsWithDerived(u))}),r.clearOutline=function(){rXe(r.dragOptions),tXe(r.dragOptions.gd)},r.onClickInPanFn=function(s){return function(l){var u=i._fullLayout.clickmode;u.indexOf("select")>-1&&iXe(l.originalEvent,i,[r.xaxis],[r.yaxis],r.id,s),u.indexOf("event")>-1&&C6.click(i,l.originalEvent)}}};Ka.updateFx=function(e){var t=this,r=t.map,i=t.gd;if(t.isStatic)return;function a(l){var u=t.map.unproject(l);return[u.lng,u.lat]}var n=e.dragmode,o;o=function(l,u){if(u.isRect){var c=l.range={};c[t.id]=[a([u.xmin,u.ymin]),a([u.xmax,u.ymax])]}else{var h=l.lassoPoints={};h[t.id]=u.map(a)}};var s=t.dragOptions;t.dragOptions=P6.extendDeep(s||{},{dragmode:e.dragmode,element:t.div,gd:i,plotinfo:{id:t.id,domain:e[t.id].domain,xaxis:t.xaxis,yaxis:t.yaxis,fillRangeItems:o},xaxes:[t.xaxis],yaxes:[t.yaxis],subplot:t.id}),r.off("click",t.onClickInPanHandler),QWe(n)||JWe(n)?(r.dragPan.disable(),r.on("zoomstart",t.clearOutline),t.dragOptions.prepFn=function(l,u,c){eXe(l,u,c,t.dragOptions,n)},KWe.init(t.dragOptions)):(r.dragPan.enable(),r.off("zoomstart",t.clearOutline),t.div.onmousedown=null,t.div.ontouchstart=null,t.div.removeEventListener("touchstart",t.div._ontouchstart),t.onClickInPanHandler=t.onClickInPanFn(t.dragOptions),r.on("click",t.onClickInPanHandler))};Ka.updateFramework=function(e){var t=e[this.id].domain,r=e._size,i=this.div.style;i.width=r.w*(t.x[1]-t.x[0])+"px",i.height=r.h*(t.y[1]-t.y[0])+"px",i.left=r.l+t.x[0]*r.w+"px",i.top=r.t+(1-t.y[1])*r.h+"px",this.xaxis._offset=r.l+t.x[0]*r.w,this.xaxis._length=r.w*(t.x[1]-t.x[0]),this.yaxis._offset=r.t+(1-t.y[1])*r.h,this.yaxis._length=r.h*(t.y[1]-t.y[0])};Ka.updateLayers=function(e){var t=e[this.id],r=t.layers,i=this.layerList,a;if(r.length!==i.length){for(a=0;a{"use strict";var nXe=et(),oXe=Bi(),sXe=U5().defaults;nhe.exports=function(t,r,i,a){var n=a.type,o=a.attributes,s=a.handleDefaults,l=a.partition||"x",u=r._subplots[n],c=u.length,h=c&&u[0].replace(/\d+$/,""),f,d;function p(x,w){return nXe.coerce(f,d,o,x,w)}for(var m=0;mlXe});function lXe(e,t){let r=[];for(let l of e){if(l.subplot!==t||l.visible!==!0)continue;if(l.type==="choroplethmap")return null;let{lat:u,lon:c}=l;if(!c||!u)continue;let h=Math.min(c.length,u.length);for(let f=0;f{"use strict";she=wA(t_())});var fhe=X((yht,hhe)=>{"use strict";var aP=et(),uXe=ohe(),cXe=gl(),che=py(),{getMapFitBounds:hXe}=(uhe(),ct(lhe));hhe.exports=function(t,r,i){uXe(t,r,i,{type:"map",attributes:che,handleDefaults:fXe,partition:"y",fullData:i})};function fXe(e,t,r,i){r("style"),r("center.lon"),r("center.lat"),r("zoom"),r("bearing"),r("pitch");let a=r("fitbounds");var n=r("bounds.west"),o=r("bounds.east"),s=r("bounds.south"),l=r("bounds.north");(n===void 0||o===void 0||s===void 0||l===void 0)&&delete t.bounds,cXe(e,t,{name:"layers",handleItemDefaults:dXe}),t._fitBounds=null;let{_fitView:{center:u,zoom:c}={},center:h,zoom:f}=e,d=(h==null?void 0:h.lon)===(u==null?void 0:u.lon)&&(h==null?void 0:h.lat)===(u==null?void 0:u.lat)&&f===c;if(a&&d){let p=hXe(i.fullData,i.id);p&&(t._fitBounds=p)}t._input=e}function dXe(e,t){function r(l,u){return aP.coerce(e,t,che.layers,l,u)}var i=r("visible");if(i){var a=r("sourcetype"),n=a==="raster"||a==="image";r("source"),r("sourceattribution"),a==="vector"&&r("sourcelayer"),a==="image"&&r("coordinates");var o;n&&(o="raster");var s=r("type",o);n&&s!=="raster"&&(s=t.type="raster",aP.log("Source types *raster* and *image* must drawn *raster* layer type.")),r("below"),r("color"),r("opacity"),r("minzoom"),r("maxzoom"),s==="circle"&&r("circle.radius"),s==="line"&&(r("line.width"),r("line.dash")),s==="fill"&&r("fill.outlinecolor"),s==="symbol"&&(r("symbol.icon"),r("symbol.iconsize"),r("symbol.text"),aP.coerceFont(r,"symbol.textfont",void 0,{noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0}),r("symbol.textposition"),r("symbol.placement"))}}});var I6=X(tl=>{"use strict";var nP=et(),dhe=nP.strTranslate,pXe=nP.strScale,mXe=Jx().getSubplotCalcData,vXe=(of(),ct(nf)),gXe=Wr(),phe=xi(),yXe=sn(),_Xe=ahe(),Qf="map";tl.name=Qf;tl.attr="subplot";tl.idRoot=Qf;tl.idRegex=tl.attrRegex=nP.counterRegex(Qf);tl.attributes={subplot:{valType:"subplotid",dflt:"map",editType:"calc"}};tl.layoutAttributes=py();tl.supplyLayoutDefaults=fhe();tl.plot=function(t){for(var r=t._fullLayout,i=t.calcdata,a=r._subplots[Qf],n=0;nm/2){var g=h.split("|").join("
");d.text(g).attr("data-unformatted",g).call(yXe.convertToTspans,e),p=phe.bBox(d.node())}d.attr("transform",dhe(-3,-p.height+8)),f.insert("rect",".static-attribution").attr({x:-p.width-6,y:-p.height-3,width:p.width+6,height:p.height+3,fill:"rgba(255, 255, 255, 0.75)"});var y=1;p.width+6>m&&(y=m/(p.width+6));var x=[i.l+i.w*o.x[1],i.t+i.h*(1-o.y[0])];f.attr("transform",dhe(x[0],x[1])+pXe(y))}};tl.updateFx=function(e){for(var t=e._fullLayout,r=t._subplots[Qf],i=0;i{"use strict";mhe.exports={attributes:W5(),supplyDefaults:Fee(),colorbar:vS(),formatLabels:E9(),calc:qee(),plot:Xee(),hoverPoints:t4().hoverPoints,eventData:ete(),selectPoints:rte(),styleOnSelect:function(e,t){if(t){var r=t[0].trace;r._glTrace.update(t)}},moduleType:"trace",name:"scattermap",basePlotModule:I6(),categories:["map","gl","symbols","showLegend","scatter-like"],meta:{}}});var yhe=X((bht,ghe)=>{"use strict";ghe.exports=vhe()});var oP=X((wht,bhe)=>{"use strict";var{hovertemplateAttrs:xXe,templatefallbackAttrs:bXe}=tc(),t0=T9(),wXe=eh(),_he=Go(),AXe=ec().defaultLine,e0=Ta().extendFlat,xhe=t0.marker.line;bhe.exports=e0({locations:{valType:"data_array",editType:"calc"},locationmode:t0.locationmode,z:{valType:"data_array",editType:"calc"},geojson:e0({},t0.geojson,{}),featureidkey:t0.featureidkey,text:e0({},t0.text,{}),hovertext:e0({},t0.hovertext,{}),marker:{line:{color:e0({},xhe.color,{dflt:AXe}),width:e0({},xhe.width,{dflt:1}),editType:"calc"},opacity:{valType:"number",arrayOk:!0,min:0,max:1,dflt:1,editType:"style"},editType:"calc"},selected:{marker:{opacity:t0.selected.marker.opacity,editType:"plot"},editType:"plot"},unselected:{marker:{opacity:t0.unselected.marker.opacity,editType:"plot"},editType:"plot"},hoverinfo:e0({},_he.hoverinfo,{editType:"calc",flags:["location","z","text","name"]}),hovertemplate:xXe(),hovertemplatefallback:bXe(),showlegend:e0({},_he.showlegend,{dflt:!1})},wXe("",{cLetter:"z",editTypeOverride:"calc"}))});var sP=X((Aht,whe)=>{"use strict";var kh=oP(),TXe=eh(),{hovertemplateAttrs:MXe,templatefallbackAttrs:DXe}=tc(),SXe=Go(),r0=Ta().extendFlat;whe.exports=r0({locations:{valType:"data_array",editType:"calc"},z:{valType:"data_array",editType:"calc"},geojson:{valType:"any",editType:"calc"},featureidkey:r0({},kh.featureidkey,{}),below:{valType:"string",editType:"plot"},text:kh.text,hovertext:kh.hovertext,marker:{line:{color:r0({},kh.marker.line.color,{editType:"plot"}),width:r0({},kh.marker.line.width,{editType:"plot"}),editType:"calc"},opacity:r0({},kh.marker.opacity,{editType:"plot"}),editType:"calc"},selected:{marker:{opacity:r0({},kh.selected.marker.opacity,{editType:"plot"}),editType:"plot"},editType:"plot"},unselected:{marker:{opacity:r0({},kh.unselected.marker.opacity,{editType:"plot"}),editType:"plot"},editType:"plot"},hoverinfo:kh.hoverinfo,hovertemplate:MXe({},{keys:["properties"]}),hovertemplatefallback:DXe(),showlegend:r0({},SXe.showlegend,{dflt:!1})},TXe("",{cLetter:"z",editTypeOverride:"calc"}))});var The=X((Tht,Ahe)=>{"use strict";var r_=et(),EXe=K0(),kXe=sP();Ahe.exports=function(t,r,i,a){function n(c,h){return r_.coerce(t,r,kXe,c,h)}var o=n("locations"),s=n("z"),l=n("geojson");if(!r_.isArrayOrTypedArray(o)||!o.length||!r_.isArrayOrTypedArray(s)||!s.length||!(typeof l=="string"&&l!==""||r_.isPlainObject(l))){r.visible=!1;return}n("featureidkey"),r._length=Math.min(o.length,s.length),n("below"),n("text"),n("hovertext"),n("hovertemplate"),n("hovertemplatefallback");var u=n("marker.line.width");u&&n("marker.line.color"),n("marker.opacity"),EXe(t,r,a,n,{prefix:"",cLetter:"z"}),r_.coerceSelectionMarkerOpacity(r,n)}});var lP=X((Mht,Mhe)=>{"use strict";Mhe.exports={min:"zmin",max:"zmax"}});var khe=X((Dht,Ehe)=>{"use strict";var Dhe=Br(),CXe=(Ki(),ct(na)).BADNUM,FXe=Yv(),PXe=Wg(),IXe=a5();function She(e){return e&&typeof e=="string"}Ehe.exports=function(t,r){var i=r._length,a=new Array(i),n;r.geojson?n=function(c){return She(c)||Dhe(c)}:n=She;for(var o=0;o{"use strict";var LXe=Br(),Ch=et(),zXe=u1(),RXe=xi(),BXe=X5().makeBlank,Che=t_();function qXe(e){var t=e[0].trace,r=t.visible===!0&&t._length!==0,i={layout:{visibility:"none"},paint:{}},a={layout:{visibility:"none"},paint:{}},n=t._opts={fill:i,line:a,geojson:BXe()};if(!r)return n;var o=Che.extractTraceFeature(e);if(!o)return n;var s=zXe.makeColorScaleFuncFromTrace(t),l=t.marker,u=l.line||{},c;Ch.isArrayOrTypedArray(l.opacity)&&(c=function(x){var w=x.mo;return LXe(w)?+Ch.constrain(w,0,1):0});var h;Ch.isArrayOrTypedArray(u.color)&&(h=function(x){return x.mlc});var f;Ch.isArrayOrTypedArray(u.width)&&(f=function(x){return x.mlw});for(var d=0;d{"use strict";var Lhe=uP().convert,OXe=uP().convertOnSelect,Ihe=Cf().traceLayerPrefix;function zhe(e,t){this.type="choroplethmap",this.subplot=e,this.uid=t,this.sourceId="source-"+t,this.layerList=[["fill",Ihe+t+"-fill"],["line",Ihe+t+"-line"]],this.below=null}var Um=zhe.prototype;Um.update=function(e){this._update(Lhe(e)),e[0].trace._glTrace=this};Um.updateOnSelect=function(e){this._update(OXe(e))};Um._update=function(e){var t=this.subplot,r=this.layerList,i=t.belowLookup["trace-"+this.uid];t.map.getSource(this.sourceId).setData(e.geojson),i!==this.below&&(this._removeLayers(),this._addLayers(e,i),this.below=i);for(var a=0;a=0;r--)e.removeLayer(t[r][1])};Um.dispose=function(){var e=this.subplot.map;this._removeLayers(),e.removeSource(this.sourceId)};Rhe.exports=function(t,r){var i=r[0].trace,a=new zhe(t,i.uid),n=a.sourceId,o=Lhe(r),s=a.below=t.belowLookup["trace-"+i.uid];return t.map.addSource(n,{type:"geojson",data:o.geojson}),a._addLayers(o,s),r[0].trace._glTrace=a,a}});var Ohe=X((kht,qhe)=>{"use strict";var NXe=ta(),VXe=oP(),UXe=et().fillText,{ANTIMERIDIAN_LON_SHIFT:GXe}=t_();qhe.exports=function(t,r,i){var a=t.cd,n=a[0].trace,o=t.subplot,s,l,u,c,h=[r,i];let f=[r+GXe,i];for(l=0;l")}}});var Vhe=X((Cht,Nhe)=>{"use strict";Nhe.exports=function(t,r,i,a,n){t.location=r.location,t.z=r.z;var o=a[n];return o.fIn&&o.fIn.properties&&(t.properties=o.fIn.properties),t.ct=o.ct,t}});var Ghe=X((Fht,Uhe)=>{"use strict";Uhe.exports=function(t,r){var i=t.cd,a=t.xaxis,n=t.yaxis,o=[],s,l,u,c,h;if(r===!1)for(s=0;s{"use strict";jhe.exports={attributes:sP(),supplyDefaults:The(),colorbar:lP(),calc:khe(),plot:Bhe(),hoverPoints:Ohe(),eventData:Vhe(),selectPoints:Ghe(),styleOnSelect:function(e,t){if(t){var r=t[0].trace;r._glTrace.updateOnSelect(t)}},getBelow:function(e,t){for(var r=t.getMapLayers(),i=r.length-2;i>=0;i--){var a=r[i].id;if(typeof a=="string"&&a.indexOf("water")===0){for(var n=i+1;n{"use strict";Hhe.exports=$he()});var hP=X((Lht,Whe)=>{"use strict";var $Xe=eh(),{hovertemplateAttrs:HXe,templatefallbackAttrs:ZXe}=tc(),Yhe=Go(),L6=W5(),cP=Ta().extendFlat;Whe.exports=cP({lon:L6.lon,lat:L6.lat,z:{valType:"data_array",editType:"calc"},radius:{valType:"number",editType:"plot",arrayOk:!0,min:1,dflt:30},below:{valType:"string",editType:"plot"},text:L6.text,hovertext:L6.hovertext,hoverinfo:cP({},Yhe.hoverinfo,{flags:["lon","lat","z","text","name"]}),hovertemplate:HXe(),hovertemplatefallback:ZXe(),showlegend:cP({},Yhe.showlegend,{dflt:!1})},$Xe("",{cLetter:"z",editTypeOverride:"calc"}))});var Khe=X((zht,Xhe)=>{"use strict";var YXe=et(),WXe=K0(),XXe=hP();Xhe.exports=function(t,r,i,a){function n(u,c){return YXe.coerce(t,r,XXe,u,c)}var o=n("lon")||[],s=n("lat")||[],l=Math.min(o.length,s.length);if(!l){r.visible=!1;return}r._length=l,n("z"),n("radius"),n("below"),n("text"),n("hovertext"),n("hovertemplate"),n("hovertemplatefallback"),WXe(t,r,a,n,{prefix:"",cLetter:"z"})}});var efe=X((Rht,Qhe)=>{"use strict";var fP=Br(),KXe=et().isArrayOrTypedArray,dP=(Ki(),ct(na)).BADNUM,JXe=Yv(),Jhe=et()._;Qhe.exports=function(t,r){for(var i=r._length,a=new Array(i),n=r.z,o=KXe(n)&&n.length,s=0;s{"use strict";var QXe=Br(),pP=et(),tfe=qr(),rfe=u1(),ife=(Ki(),ct(na)).BADNUM,eKe=X5().makeBlank;afe.exports=function(t){var r=t[0].trace,i=r.visible===!0&&r._length!==0,a={layout:{visibility:"none"},paint:{}},n=r._opts={heatmap:a,geojson:eKe()};if(!i)return n;var o=[],s,l=r.z,u=r.radius,c=pP.isArrayOrTypedArray(l)&&l.length,h=pP.isArrayOrTypedArray(u);for(s=0;s0?+u[s]:0),o.push({type:"Feature",geometry:{type:"Point",coordinates:d},properties:p})}}var g=rfe.extractOpts(r),y=g.reversescale?rfe.flipScale(g.colorscale):g.colorscale,x=y[0][1],w=tfe.opacity(x)<1?x:tfe.addOpacity(x,0),_=["interpolate",["linear"],["heatmap-density"],0,w];for(s=1;s{"use strict";var ofe=nfe(),tKe=Cf().traceLayerPrefix;function sfe(e,t){this.type="densitymap",this.subplot=e,this.uid=t,this.sourceId="source-"+t,this.layerList=[["heatmap",tKe+t+"-heatmap"]],this.below=null}var z6=sfe.prototype;z6.update=function(e){var t=this.subplot,r=this.layerList,i=ofe(e),a=t.belowLookup["trace-"+this.uid];t.map.getSource(this.sourceId).setData(i.geojson),a!==this.below&&(this._removeLayers(),this._addLayers(i,a),this.below=a);for(var n=0;n=0;r--)e.removeLayer(t[r][1])};z6.dispose=function(){var e=this.subplot.map;this._removeLayers(),e.removeSource(this.sourceId)};lfe.exports=function(t,r){var i=r[0].trace,a=new sfe(t,i.uid),n=a.sourceId,o=ofe(r),s=a.below=t.belowLookup["trace-"+i.uid];return t.map.addSource(n,{type:"geojson",data:o.geojson}),a._addLayers(o,s),a}});var hfe=X((Oht,cfe)=>{"use strict";var rKe=ta(),iKe=t4().hoverPoints,aKe=t4().getExtraText;cfe.exports=function(t,r,i){var a=iKe(t,r,i);if(a){var n=a[0],o=n.cd,s=o[0].trace,l=o[n.index];if(delete n.color,"z"in l){var u=n.subplot.mockAxis;n.z=l.z,n.zLabel=rKe.tickText(u,u.c2l(l.z),"hover").text}return n.extraText=aKe(s,l,o[0].t.labels),[n]}}});var dfe=X((Nht,ffe)=>{"use strict";ffe.exports=function(t,r){return t.lon=r.lon,t.lat=r.lat,t.z=r.z,t}});var mfe=X((Vht,pfe)=>{"use strict";pfe.exports={attributes:hP(),supplyDefaults:Khe(),colorbar:lP(),formatLabels:E9(),calc:efe(),plot:ufe(),hoverPoints:hfe(),eventData:dfe(),getBelow:function(e,t){for(var r=t.getMapLayers(),i=0;i{"use strict";vfe.exports=mfe()});var ho=X((Ght,_fe)=>{"use strict";var yfe=Object.getOwnPropertySymbols,nKe=Object.prototype.hasOwnProperty,oKe=Object.prototype.propertyIsEnumerable;function sKe(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function lKe(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;var i=Object.getOwnPropertyNames(t).map(function(n){return t[n]});if(i.join("")!=="0123456789")return!1;var a={};return"abcdefghijklmnopqrst".split("").forEach(function(n){a[n]=n}),Object.keys(Object.assign({},a)).join("")==="abcdefghijklmnopqrst"}catch(n){return!1}}_fe.exports=lKe()?Object.assign:function(e,t){for(var r,i=sKe(e),a,n=1;n{var B6=ho();function xfe(){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={}}B6(xfe.prototype,{instance:function(e,t){e=(e||"gregorian").toLowerCase(),t=t||"";var r=this._localCals[e+"-"+t];if(!r&&this.calendars[e]&&(r=new this.calendars[e](t),this._localCals[e+"-"+t]=r),!r)throw(this.local.invalidCalendar||this.regionalOptions[""].invalidCalendar).replace(/\{0\}/,e);return r},newDate:function(e,t,r,i,a){return i=(e!=null&&e.year?e.calendar():typeof i=="string"?this.instance(i,a):i)||this.instance(),i.newDate(e,t,r)},substituteDigits:function(e){return function(t){return(t+"").replace(/[0-9]/g,function(r){return e[r]})}},substituteChineseDigits:function(e,t){return function(r){for(var i="",a=0;r>0;){var n=r%10;i=(n===0?"":e[n]+t[a])+i,a++,r=Math.floor(r/10)}return i.indexOf(e[1]+t[1])===0&&(i=i.substr(1)),i||e[0]}}});function mP(e,t,r,i){if(this._calendar=e,this._year=t,this._month=r,this._day=i,this._calendar._validateLevel===0&&!this._calendar.isValid(this._year,this._month,this._day))throw(Cr.local.invalidDate||Cr.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name)}function R6(e,t){return e=""+e,"000000".substring(0,t-e.length)+e}B6(mP.prototype,{newDate:function(e,t,r){return this._calendar.newDate(e==null?this:e,t,r)},year:function(e){return arguments.length===0?this._year:this.set(e,"y")},month:function(e){return arguments.length===0?this._month:this.set(e,"m")},day:function(e){return arguments.length===0?this._day:this.set(e,"d")},date:function(e,t,r){if(!this._calendar.isValid(e,t,r))throw(Cr.local.invalidDate||Cr.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name);return this._year=e,this._month=t,this._day=r,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(e,t){return this._calendar.add(this,e,t)},set:function(e,t){return this._calendar.set(this,e,t)},compareTo:function(e){if(this._calendar.name!==e._calendar.name)throw(Cr.local.differentCalendars||Cr.regionalOptions[""].differentCalendars).replace(/\{0\}/,this._calendar.local.name).replace(/\{1\}/,e._calendar.local.name);var t=this._year!==e._year?this._year-e._year:this._month!==e._month?this.monthOfYear()-e.monthOfYear():this._day-e._day;return t===0?0:t<0?-1:1},calendar:function(){return this._calendar},toJD:function(){return this._calendar.toJD(this)},fromJD:function(e){return this._calendar.fromJD(e)},toJSDate:function(){return this._calendar.toJSDate(this)},fromJSDate:function(e){return this._calendar.fromJSDate(e)},toString:function(){return(this.year()<0?"-":"")+R6(Math.abs(this.year()),4)+"-"+R6(this.month(),2)+"-"+R6(this.day(),2)}});function vP(){this.shortYearCutoff="+10"}B6(vP.prototype,{_validateLevel:0,newDate:function(e,t,r){return e==null?this.today():(e.year&&(this._validate(e,t,r,Cr.local.invalidDate||Cr.regionalOptions[""].invalidDate),r=e.day(),t=e.month(),e=e.year()),new mP(this,e,t,r))},today:function(){return this.fromJSDate(new Date)},epoch:function(e){var t=this._validate(e,this.minMonth,this.minDay,Cr.local.invalidYear||Cr.regionalOptions[""].invalidYear);return t.year()<0?this.local.epochs[0]:this.local.epochs[1]},formatYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,Cr.local.invalidYear||Cr.regionalOptions[""].invalidYear);return(t.year()<0?"-":"")+R6(Math.abs(t.year()),4)},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Cr.local.invalidYear||Cr.regionalOptions[""].invalidYear),12},monthOfYear:function(e,t){var r=this._validate(e,t,this.minDay,Cr.local.invalidMonth||Cr.regionalOptions[""].invalidMonth);return(r.month()+this.monthsInYear(r)-this.firstMonth)%this.monthsInYear(r)+this.minMonth},fromMonthOfYear:function(e,t){var r=(t+this.firstMonth-2*this.minMonth)%this.monthsInYear(e)+this.minMonth;return this._validate(e,r,this.minDay,Cr.local.invalidMonth||Cr.regionalOptions[""].invalidMonth),r},daysInYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,Cr.local.invalidYear||Cr.regionalOptions[""].invalidYear);return this.leapYear(t)?366:365},dayOfYear:function(e,t,r){var i=this._validate(e,t,r,Cr.local.invalidDate||Cr.regionalOptions[""].invalidDate);return i.toJD()-this.newDate(i.year(),this.fromMonthOfYear(i.year(),this.minMonth),this.minDay).toJD()+1},daysInWeek:function(){return 7},dayOfWeek:function(e,t,r){var i=this._validate(e,t,r,Cr.local.invalidDate||Cr.regionalOptions[""].invalidDate);return(Math.floor(this.toJD(i))+2)%this.daysInWeek()},extraInfo:function(e,t,r){return this._validate(e,t,r,Cr.local.invalidDate||Cr.regionalOptions[""].invalidDate),{}},add:function(e,t,r){return this._validate(e,this.minMonth,this.minDay,Cr.local.invalidDate||Cr.regionalOptions[""].invalidDate),this._correctAdd(e,this._add(e,t,r),t,r)},_add:function(e,t,r){if(this._validateLevel++,r==="d"||r==="w"){var i=e.toJD()+t*(r==="w"?this.daysInWeek():1),a=e.calendar().fromJD(i);return this._validateLevel--,[a.year(),a.month(),a.day()]}try{var n=e.year()+(r==="y"?t:0),o=e.monthOfYear()+(r==="m"?t:0),a=e.day(),s=function(c){for(;oh-1+c.minMonth;)n++,o-=h,h=c.monthsInYear(n)};r==="y"?(e.month()!==this.fromMonthOfYear(n,o)&&(o=this.newDate(n,e.month(),this.minDay).monthOfYear()),o=Math.min(o,this.monthsInYear(n)),a=Math.min(a,this.daysInMonth(n,this.fromMonthOfYear(n,o)))):r==="m"&&(s(this),a=Math.min(a,this.daysInMonth(n,this.fromMonthOfYear(n,o))));var l=[n,this.fromMonthOfYear(n,o),a];return this._validateLevel--,l}catch(u){throw this._validateLevel--,u}},_correctAdd:function(e,t,r,i){if(!this.hasYearZero&&(i==="y"||i==="m")&&(t[0]===0||e.year()>0!=t[0]>0)){var a={y:[1,1,"y"],m:[1,this.monthsInYear(-1),"m"],w:[this.daysInWeek(),this.daysInYear(-1),"d"],d:[1,this.daysInYear(-1),"d"]}[i],n=r<0?-1:1;t=this._add(e,r*a[0]+n*a[1],a[2])}return e.date(t[0],t[1],t[2])},set:function(e,t,r){this._validate(e,this.minMonth,this.minDay,Cr.local.invalidDate||Cr.regionalOptions[""].invalidDate);var i=r==="y"?t:e.year(),a=r==="m"?t:e.month(),n=r==="d"?t:e.day();return(r==="y"||r==="m")&&(n=Math.min(n,this.daysInMonth(i,a))),e.date(i,a,n)},isValid:function(e,t,r){this._validateLevel++;var i=this.hasYearZero||e!==0;if(i){var a=this.newDate(e,t,this.minDay);i=t>=this.minMonth&&t-this.minMonth=this.minDay&&r-this.minDay13.5?13:1),u=a-(l>2.5?4716:4715);return u<=0&&u--,this.newDate(u,l,s)},toJSDate:function(e,t,r){var i=this._validate(e,t,r,Cr.local.invalidDate||Cr.regionalOptions[""].invalidDate),a=new Date(i.year(),i.month()-1,i.day());return a.setHours(0),a.setMinutes(0),a.setSeconds(0),a.setMilliseconds(0),a.setHours(a.getHours()>12?a.getHours()+2:0),a},fromJSDate:function(e){return this.newDate(e.getFullYear(),e.getMonth()+1,e.getDate())}});var Cr=bfe.exports=new xfe;Cr.cdate=mP;Cr.baseCalendar=vP;Cr.calendars.gregorian=gP});var wfe=X(()=>{var yP=ho(),zn=fo();yP(zn.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"});zn.local=zn.regionalOptions[""];yP(zn.cdate.prototype,{formatDate:function(e,t){return typeof e!="string"&&(t=e,e=""),this._calendar.formatDate(e||"",this,t)}});yP(zn.baseCalendar.prototype,{UNIX_EPOCH:zn.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:1440*60,TICKS_EPOCH:zn.instance().jdEpoch,TICKS_PER_DAY:1440*60*1e7,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(e,t,r){if(typeof e!="string"&&(r=t,t=e,e=""),!t)return"";if(t.calendar()!==this)throw zn.local.invalidFormat||zn.regionalOptions[""].invalidFormat;e=e||this.local.dateFormat,r=r||{};for(var i=r.dayNamesShort||this.local.dayNamesShort,a=r.dayNames||this.local.dayNames,n=r.monthNumbers||this.local.monthNumbers,o=r.monthNamesShort||this.local.monthNamesShort,s=r.monthNames||this.local.monthNames,l=r.calculateWeek||this.local.calculateWeek,u=function(_,A){for(var T=1;w+T1},c=function(_,A,T,M){var S=""+A;if(u(_,M))for(;S.length1},x=function(B,L){var z=y(B,L),O=[2,3,z?4:2,z?4:2,10,11,20]["oyYJ@!".indexOf(B)+1],V=new RegExp("^-?\\d{1,"+O+"}"),$=t.substring(S).match(V);if(!$)throw(zn.local.missingNumberAt||zn.regionalOptions[""].missingNumberAt).replace(/\{0\}/,S);return S+=$[0].length,parseInt($[0],10)},w=this,_=function(){if(typeof s=="function"){y("m");var B=s.call(w,t.substring(S));return S+=B.length,B}return x("m")},A=function(B,L,z,O){for(var V=y(B,O)?z:L,$=0;$-1){f=1,d=p;for(var I=this.daysInMonth(h,f);d>I;I=this.daysInMonth(h,f))f++,d-=I}return c>-1?this.fromJD(c):this.newDate(h,f,d)},determineDate:function(e,t,r,i,a){r&&typeof r!="object"&&(a=i,i=r,r=null),typeof i!="string"&&(a=i,i="");var n=this,o=function(s){try{return n.parseDate(i,s,a)}catch(h){}s=s.toLowerCase();for(var l=(s.match(/^c/)&&r?r.newDate():null)||n.today(),u=/([+-]?[0-9]+)\s*(d|w|m|y)?/g,c=u.exec(s);c;)l.add(parseInt(c[1],10),c[2]||"d"),c=u.exec(s);return l};return t=t?t.newDate():null,e=e==null?t:typeof e=="string"?o(e):typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?t:n.today().add(e,"d"):n.newDate(e),e}})});var Afe=X(()=>{var i0=fo(),uKe=ho(),_P=i0.instance();function q6(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}q6.prototype=new i0.baseCalendar;uKe(q6.prototype,{name:"Chinese",jdEpoch:17214255e-1,hasYearZero:!1,minMonth:0,firstMonth:0,minDay:1,regionalOptions:{"":{name:"Chinese",epochs:["BEC","EC"],monthNumbers:function(e,t){if(typeof e=="string"){var r=e.match(hKe);return r?r[0]:""}var i=this._validateYear(e),a=e.month(),n=""+this.toChineseMonth(i,a);return t&&n.length<2&&(n="0"+n),this.isIntercalaryMonth(i,a)&&(n+="i"),n},monthNames:function(e){if(typeof e=="string"){var t=e.match(fKe);return t?t[0]:""}var r=this._validateYear(e),i=e.month(),a=this.toChineseMonth(r,i),n=["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"][a-1];return this.isIntercalaryMonth(r,i)&&(n="\u95F0"+n),n},monthNamesShort:function(e){if(typeof e=="string"){var t=e.match(dKe);return t?t[0]:""}var r=this._validateYear(e),i=e.month(),a=this.toChineseMonth(r,i),n=["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"][a-1];return this.isIntercalaryMonth(r,i)&&(n="\u95F0"+n),n},parseMonth:function(e,t){e=this._validateYear(e);var r=parseInt(t),i;if(isNaN(r))t[0]==="\u95F0"&&(i=!0,t=t.substring(1)),t[t.length-1]==="\u6708"&&(t=t.substring(0,t.length-1)),r=1+["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"].indexOf(t);else{var a=t[t.length-1];i=a==="i"||a==="I"}var n=this.toMonthIndex(e,r,i);return n},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(e,t){if(e.year&&(e=e.year()),typeof e!="number"||e<1888||e>2111)throw t.replace(/\{0\}/,this.local.name);return e},toMonthIndex:function(e,t,r){var i=this.intercalaryMonth(e),a=r&&t!==i;if(a||t<1||t>12)throw i0.local.invalidMonth.replace(/\{0\}/,this.local.name);var n;return i?!r&&t<=i?n=t-1:n=t:n=t-1,n},toChineseMonth:function(e,t){e.year&&(e=e.year(),t=e.month());var r=this.intercalaryMonth(e),i=r?12:11;if(t<0||t>i)throw i0.local.invalidMonth.replace(/\{0\}/,this.local.name);var a;return r?t>13;return r},isIntercalaryMonth:function(e,t){e.year&&(e=e.year(),t=e.month());var r=this.intercalaryMonth(e);return!!r&&r===t},leapYear:function(e){return this.intercalaryMonth(e)!==0},weekOfYear:function(e,t,r){var i=this._validateYear(e,i0.local.invalidyear),a=n0[i-n0[0]],n=a>>9&4095,o=a>>5&15,s=a&31,l;l=_P.newDate(n,o,s),l.add(4-(l.dayOfWeek()||7),"d");var u=this.toJD(e,t,r)-l.toJD();return 1+Math.floor(u/7)},monthsInYear:function(e){return this.leapYear(e)?13:12},daysInMonth:function(e,t){e.year&&(t=e.month(),e=e.year()),e=this._validateYear(e);var r=a0[e-a0[0]],i=r>>13,a=i?12:11;if(t>a)throw i0.local.invalidMonth.replace(/\{0\}/,this.local.name);var n=r&1<<12-t?30:29;return n},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(e,t,r){var i=this._validate(e,n,r,i0.local.invalidDate);e=this._validateYear(i.year()),t=i.month(),r=i.day();var a=this.isIntercalaryMonth(e,t),n=this.toChineseMonth(e,t),o=mKe(e,n,r,a);return _P.toJD(o.year,o.month,o.day)},fromJD:function(e){var t=_P.fromJD(e),r=pKe(t.year(),t.month(),t.day()),i=this.toMonthIndex(r.year,r.month,r.isIntercalary);return this.newDate(r.year,i,r.day)},fromString:function(e){var t=e.match(cKe),r=this._validateYear(+t[1]),i=+t[2],a=!!t[3],n=this.toMonthIndex(r,i,a),o=+t[4];return this.newDate(r,n,o)},add:function(e,t,r){var i=e.year(),a=e.month(),n=this.isIntercalaryMonth(i,a),o=this.toChineseMonth(i,a),s=Object.getPrototypeOf(q6.prototype).add.call(this,e,t,r);if(r==="y"){var l=s.year(),u=s.month(),c=this.isIntercalaryMonth(l,o),h=n&&c?this.toMonthIndex(l,o,!0):this.toMonthIndex(l,o,!1);h!==u&&s.month(h)}return s}});var cKe=/^\s*(-?\d\d\d\d|\d\d)[-/](\d?\d)([iI]?)[-/](\d?\d)/m,hKe=/^\d?\d[iI]?/m,fKe=/^闰?十?[一二三四五六七八九]?月/m,dKe=/^闰?十?[一二三四五六七八九]?/m;i0.calendars.chinese=q6;var a0=[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],n0=[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 pKe(e,t,r,i){var a,n;if(typeof e=="object")a=e,n=t||{};else{var o=typeof e=="number"&&e>=1888&&e<=2111;if(!o)throw new Error("Solar year outside range 1888-2111");var s=typeof t=="number"&&t>=1&&t<=12;if(!s)throw new Error("Solar month outside range 1 - 12");var l=typeof r=="number"&&r>=1&&r<=31;if(!l)throw new Error("Solar day outside range 1 - 31");a={year:e,month:t,day:r},n=i||{}}var u=n0[a.year-n0[0]],c=a.year<<9|a.month<<5|a.day;n.year=c>=u?a.year:a.year-1,u=n0[n.year-n0[0]];var h=u>>9&4095,f=u>>5&15,d=u&31,p,m=new Date(h,f-1,d),g=new Date(a.year,a.month-1,a.day);p=Math.round((g-m)/(24*3600*1e3));var y=a0[n.year-a0[0]],x;for(x=0;x<13;x++){var w=y&1<<12-x?30:29;if(p>13;return!_||x<_?(n.isIntercalary=!1,n.month=1+x):x===_?(n.isIntercalary=!0,n.month=x):(n.isIntercalary=!1,n.month=x),n.day=1+p,n}function mKe(e,t,r,i,a){var n,o;if(typeof e=="object")o=e,n=t||{};else{var s=typeof e=="number"&&e>=1888&&e<=2111;if(!s)throw new Error("Lunar year outside range 1888-2111");var l=typeof t=="number"&&t>=1&&t<=12;if(!l)throw new Error("Lunar month outside range 1 - 12");var u=typeof r=="number"&&r>=1&&r<=30;if(!u)throw new Error("Lunar day outside range 1 - 30");var c;typeof i=="object"?(c=!1,n=i):(c=!!i,n=a||{}),o={year:e,month:t,day:r,isIntercalary:c}}var h;h=o.day-1;var f=a0[o.year-a0[0]],d=f>>13,p;d&&(o.month>d||o.isIntercalary)?p=o.month:p=o.month-1;for(var m=0;m>9&4095,w=y>>5&15,_=y&31,A=new Date(x,w-1,_+h);return n.year=A.getFullYear(),n.month=1+A.getMonth(),n.day=A.getDate(),n}});var Tfe=X(()=>{var up=fo(),vKe=ho();function xP(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}xP.prototype=new up.baseCalendar;vKe(xP.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(r){var t=this._validate(r,this.minMonth,this.minDay,up.local.invalidYear),r=t.year()+(t.year()<0?1:0);return r%4===3||r%4===-1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,up.local.invalidYear||up.regionalOptions[""].invalidYear),13},weekOfYear:function(e,t,r){var i=this.newDate(e,t,r);return i.add(-i.dayOfWeek(),"d"),Math.floor((i.dayOfYear()-1)/7)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,up.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===13&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(e,t,r){var i=this._validate(e,t,r,up.local.invalidDate);return e=i.year(),e<0&&e++,i.day()+(i.month()-1)*30+(e-1)*365+Math.floor(e/4)+this.jdEpoch-1},fromJD:function(e){var t=Math.floor(e)+.5-this.jdEpoch,r=Math.floor((t-Math.floor((t+366)/1461))/365)+1;r<=0&&r--,t=Math.floor(e)+.5-this.newDate(r,1,1).toJD();var i=Math.floor(t/30)+1,a=t-(i-1)*30+1;return this.newDate(r,i,a)}});up.calendars.coptic=xP});var Mfe=X(()=>{var Fh=fo(),gKe=ho();function bP(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}bP.prototype=new Fh.baseCalendar;gKe(bP.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(e){return this._validate(e,this.minMonth,this.minDay,Fh.local.invalidYear),!1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Fh.local.invalidYear),13},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Fh.local.invalidYear),400},weekOfYear:function(e,t,r){var i=this.newDate(e,t,r);return i.add(-i.dayOfWeek(),"d"),Math.floor((i.dayOfYear()-1)/8)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,Fh.local.invalidMonth);return this.daysPerMonth[r.month()-1]},daysInWeek:function(){return 8},dayOfWeek:function(e,t,r){var i=this._validate(e,t,r,Fh.local.invalidDate);return(i.day()+1)%8},weekDay:function(e,t,r){var i=this.dayOfWeek(e,t,r);return i>=2&&i<=6},extraInfo:function(e,t,r){var i=this._validate(e,t,r,Fh.local.invalidDate);return{century:yKe[Math.floor((i.year()-1)/100)+1]||""}},toJD:function(e,t,r){var i=this._validate(e,t,r,Fh.local.invalidDate);return e=i.year()+(i.year()<0?1:0),t=i.month(),r=i.day(),r+(t>1?16:0)+(t>2?(t-2)*32:0)+(e-1)*400+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e+.5)-Math.floor(this.jdEpoch)-1;var t=Math.floor(e/400)+1;e-=(t-1)*400,e+=e>15?16:0;var r=Math.floor(e/32)+1,i=e-(r-1)*32+1;return this.newDate(t<=0?t-1:t,r,i)}});var yKe={20:"Fruitbat",21:"Anchovy"};Fh.calendars.discworld=bP});var Dfe=X(()=>{var cp=fo(),_Ke=ho();function wP(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}wP.prototype=new cp.baseCalendar;_Ke(wP.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(r){var t=this._validate(r,this.minMonth,this.minDay,cp.local.invalidYear),r=t.year()+(t.year()<0?1:0);return r%4===3||r%4===-1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,cp.local.invalidYear||cp.regionalOptions[""].invalidYear),13},weekOfYear:function(e,t,r){var i=this.newDate(e,t,r);return i.add(-i.dayOfWeek(),"d"),Math.floor((i.dayOfYear()-1)/7)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,cp.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===13&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(e,t,r){var i=this._validate(e,t,r,cp.local.invalidDate);return e=i.year(),e<0&&e++,i.day()+(i.month()-1)*30+(e-1)*365+Math.floor(e/4)+this.jdEpoch-1},fromJD:function(e){var t=Math.floor(e)+.5-this.jdEpoch,r=Math.floor((t-Math.floor((t+366)/1461))/365)+1;r<=0&&r--,t=Math.floor(e)+.5-this.newDate(r,1,1).toJD();var i=Math.floor(t/30)+1,a=t-(i-1)*30+1;return this.newDate(r,i,a)}});cp.calendars.ethiopian=wP});var Sfe=X(()=>{var o0=fo(),xKe=ho();function AP(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}AP.prototype=new o0.baseCalendar;xKe(AP.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(e){var t=this._validate(e,this.minMonth,this.minDay,o0.local.invalidYear);return this._leapYear(t.year())},_leapYear:function(e){return e=e<0?e+1:e,O6(e*7+1,19)<7},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,o0.local.invalidYear),this._leapYear(e.year?e.year():e)?13:12},weekOfYear:function(e,t,r){var i=this.newDate(e,t,r);return i.add(-i.dayOfWeek(),"d"),Math.floor((i.dayOfYear()-1)/7)+1},daysInYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,o0.local.invalidYear);return e=t.year(),this.toJD(e===-1?1:e+1,7,1)-this.toJD(e,7,1)},daysInMonth:function(e,t){return e.year&&(t=e.month(),e=e.year()),this._validate(e,t,this.minDay,o0.local.invalidMonth),t===12&&this.leapYear(e)||t===8&&O6(this.daysInYear(e),10)===5?30:t===9&&O6(this.daysInYear(e),10)===3?29:this.daysPerMonth[t-1]},weekDay:function(e,t,r){return this.dayOfWeek(e,t,r)!==6},extraInfo:function(e,t,r){var i=this._validate(e,t,r,o0.local.invalidDate);return{yearType:(this.leapYear(i)?"embolismic":"common")+" "+["deficient","regular","complete"][this.daysInYear(i)%10-3]}},toJD:function(e,t,r){var i=this._validate(e,t,r,o0.local.invalidDate);e=i.year(),t=i.month(),r=i.day();var a=e<=0?e+1:e,n=this.jdEpoch+this._delay1(a)+this._delay2(a)+r+1;if(t<7){for(var o=7;o<=this.monthsInYear(e);o++)n+=this.daysInMonth(e,o);for(var o=1;o=this.toJD(t===-1?1:t+1,7,1);)t++;for(var r=ethis.toJD(t,r,this.daysInMonth(t,r));)r++;var i=e-this.toJD(t,r,1)+1;return this.newDate(t,r,i)}});function O6(e,t){return e-t*Math.floor(e/t)}o0.calendars.hebrew=AP});var Efe=X(()=>{var i_=fo(),bKe=ho();function TP(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}TP.prototype=new i_.baseCalendar;bKe(TP.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\u012Bs","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(e){var t=this._validate(e,this.minMonth,this.minDay,i_.local.invalidYear);return(t.year()*11+14)%30<11},weekOfYear:function(e,t,r){var i=this.newDate(e,t,r);return i.add(-i.dayOfWeek(),"d"),Math.floor((i.dayOfYear()-1)/7)+1},daysInYear:function(e){return this.leapYear(e)?355:354},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,i_.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===12&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return this.dayOfWeek(e,t,r)!==5},toJD:function(e,t,r){var i=this._validate(e,t,r,i_.local.invalidDate);return e=i.year(),t=i.month(),r=i.day(),e=e<=0?e+1:e,r+Math.ceil(29.5*(t-1))+(e-1)*354+Math.floor((3+11*e)/30)+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e)+.5;var t=Math.floor((30*(e-this.jdEpoch)+10646)/10631);t=t<=0?t-1:t;var r=Math.min(12,Math.ceil((e-29-this.toJD(t,1,1))/29.5)+1),i=e-this.toJD(t,r,1)+1;return this.newDate(t,r,i)}});i_.calendars.islamic=TP});var kfe=X(()=>{var a_=fo(),wKe=ho();function MP(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}MP.prototype=new a_.baseCalendar;wKe(MP.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(r){var t=this._validate(r,this.minMonth,this.minDay,a_.local.invalidYear),r=t.year()<0?t.year()+1:t.year();return r%4===0},weekOfYear:function(e,t,r){var i=this.newDate(e,t,r);return i.add(4-(i.dayOfWeek()||7),"d"),Math.floor((i.dayOfYear()-1)/7)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,a_.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===2&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(e,t,r){var i=this._validate(e,t,r,a_.local.invalidDate);return e=i.year(),t=i.month(),r=i.day(),e<0&&e++,t<=2&&(e--,t+=12),Math.floor(365.25*(e+4716))+Math.floor(30.6001*(t+1))+r-1524.5},fromJD:function(e){var t=Math.floor(e+.5),r=t+1524,i=Math.floor((r-122.1)/365.25),a=Math.floor(365.25*i),n=Math.floor((r-a)/30.6001),o=n-Math.floor(n<14?1:13),s=i-Math.floor(o>2?4716:4715),l=r-a-Math.floor(30.6001*n);return s<=0&&s--,this.newDate(s,o,l)}});a_.calendars.julian=MP});var Ffe=X(()=>{var Xl=fo(),AKe=ho();function SP(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}SP.prototype=new Xl.baseCalendar;AKe(SP.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(e){return this._validate(e,this.minMonth,this.minDay,Xl.local.invalidYear),!1},formatYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,Xl.local.invalidYear);e=t.year();var r=Math.floor(e/400);e=e%400,e+=e<0?400:0;var i=Math.floor(e/20);return r+"."+i+"."+e%20},forYear:function(e){if(e=e.split("."),e.length<3)throw"Invalid Mayan year";for(var t=0,r=0;r19||r>0&&i<0)throw"Invalid Mayan year";t=t*20+i}return t},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Xl.local.invalidYear),18},weekOfYear:function(e,t,r){return this._validate(e,t,r,Xl.local.invalidDate),0},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Xl.local.invalidYear),360},daysInMonth:function(e,t){return this._validate(e,t,this.minDay,Xl.local.invalidMonth),20},daysInWeek:function(){return 5},dayOfWeek:function(e,t,r){var i=this._validate(e,t,r,Xl.local.invalidDate);return i.day()},weekDay:function(e,t,r){return this._validate(e,t,r,Xl.local.invalidDate),!0},extraInfo:function(e,t,r){var i=this._validate(e,t,r,Xl.local.invalidDate),a=i.toJD(),n=this._toHaab(a),o=this._toTzolkin(a);return{haabMonthName:this.local.haabMonths[n[0]-1],haabMonth:n[0],haabDay:n[1],tzolkinDayName:this.local.tzolkinMonths[o[0]-1],tzolkinDay:o[0],tzolkinTrecena:o[1]}},_toHaab:function(e){e-=this.jdEpoch;var t=DP(e+8+340,365);return[Math.floor(t/20)+1,DP(t,20)]},_toTzolkin:function(e){return e-=this.jdEpoch,[Cfe(e+20,20),Cfe(e+4,13)]},toJD:function(e,t,r){var i=this._validate(e,t,r,Xl.local.invalidDate);return i.day()+i.month()*20+i.year()*360+this.jdEpoch},fromJD:function(e){e=Math.floor(e)+.5-this.jdEpoch;var t=Math.floor(e/360);e=e%360,e+=e<0?360:0;var r=Math.floor(e/20),i=e%20;return this.newDate(t,r,i)}});function DP(e,t){return e-t*Math.floor(e/t)}function Cfe(e,t){return DP(e-1,t)+1}Xl.calendars.mayan=SP});var Ife=X(()=>{var hp=fo(),TKe=ho();function EP(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}EP.prototype=new hp.baseCalendar;var Pfe=hp.instance("gregorian");TKe(EP.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(e){var t=this._validate(e,this.minMonth,this.minDay,hp.local.invalidYear||hp.regionalOptions[""].invalidYear);return Pfe.leapYear(t.year()+(t.year()<1?1:0)+1469)},weekOfYear:function(e,t,r){var i=this.newDate(e,t,r);return i.add(1-(i.dayOfWeek()||7),"d"),Math.floor((i.dayOfYear()-1)/7)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,hp.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===12&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(a,t,r){var i=this._validate(a,t,r,hp.local.invalidMonth),a=i.year();a<0&&a++;for(var n=i.day(),o=1;o=this.toJD(t+1,1,1);)t++;for(var r=e-Math.floor(this.toJD(t,1,1)+.5)+1,i=1;r>this.daysInMonth(t,i);)r-=this.daysInMonth(t,i),i++;return this.newDate(t,i,r)}});hp.calendars.nanakshahi=EP});var Lfe=X(()=>{var fp=fo(),MKe=ho();function kP(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}kP.prototype=new fp.baseCalendar;MKe(kP.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(e){return this.daysInYear(e)!==this.daysPerYear},weekOfYear:function(e,t,r){var i=this.newDate(e,t,r);return i.add(-i.dayOfWeek(),"d"),Math.floor((i.dayOfYear()-1)/7)+1},daysInYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,fp.local.invalidYear);if(e=t.year(),typeof this.NEPALI_CALENDAR_DATA[e]=="undefined")return this.daysPerYear;for(var r=0,i=this.minMonth;i<=12;i++)r+=this.NEPALI_CALENDAR_DATA[e][i];return r},daysInMonth:function(e,t){return e.year&&(t=e.month(),e=e.year()),this._validate(e,t,this.minDay,fp.local.invalidMonth),typeof this.NEPALI_CALENDAR_DATA[e]=="undefined"?this.daysPerMonth[t-1]:this.NEPALI_CALENDAR_DATA[e][t]},weekDay:function(e,t,r){return this.dayOfWeek(e,t,r)!==6},toJD:function(e,t,r){var i=this._validate(e,t,r,fp.local.invalidDate);e=i.year(),t=i.month(),r=i.day();var a=fp.instance(),n=0,o=t,s=e;this._createMissingCalendarData(e);var l=e-(o>9||o===9&&r>=this.NEPALI_CALENDAR_DATA[s][0]?56:57);for(t!==9&&(n=r,o--);o!==9;)o<=0&&(o=12,s--),n+=this.NEPALI_CALENDAR_DATA[s][o],o--;return t===9?(n+=r-this.NEPALI_CALENDAR_DATA[s][0],n<0&&(n+=a.daysInYear(l))):n+=this.NEPALI_CALENDAR_DATA[s][9]-this.NEPALI_CALENDAR_DATA[s][0],a.newDate(l,1,1).add(n,"d").toJD()},fromJD:function(e){var t=fp.instance(),r=t.fromJD(e),i=r.year(),a=r.dayOfYear(),n=i+56;this._createMissingCalendarData(n);for(var o=9,s=this.NEPALI_CALENDAR_DATA[n][0],l=this.NEPALI_CALENDAR_DATA[n][o]-s+1;a>l;)o++,o>12&&(o=1,n++),l+=this.NEPALI_CALENDAR_DATA[n][o];var u=this.NEPALI_CALENDAR_DATA[n][o]-(l-a);return this.newDate(n,o,u)},_createMissingCalendarData:function(e){var t=this.daysPerMonth.slice(0);t.unshift(17);for(var r=e-1;r{var Gm=fo(),DKe=ho();function V6(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}function N6(e){var t=e-475;e<0&&t++;var r=.242197,i=r*t,a=r*(t+1),n=i-Math.floor(i),o=a-Math.floor(a);return n>o}V6.prototype=new Gm.baseCalendar;DKe(V6.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","Dey","Bahman","Esfand"],monthNamesShort:["Far","Ord","Kho","Tir","Mor","Sha","Meh","Aba","Aza","Dey","Bah","Esf"],dayNames:["Yekshanbeh","Doshanbeh","Seshanbeh","Chah\u0101rshanbeh","Panjshanbeh","Jom'eh","Shanbeh"],dayNamesShort:["Yek","Do","Se","Cha","Panj","Jom","Sha"],dayNamesMin:["Ye","Do","Se","Ch","Pa","Jo","Sh"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,Gm.local.invalidYear);return N6(t.year())},weekOfYear:function(e,t,r){var i=this.newDate(e,t,r);return i.add(-((i.dayOfWeek()+1)%7),"d"),Math.floor((i.dayOfYear()-1)/7)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,Gm.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===12&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return this.dayOfWeek(e,t,r)!==5},toJD:function(e,t,r){var i=this._validate(e,t,r,Gm.local.invalidDate);e=i.year(),t=i.month(),r=i.day();var a=0;if(e>0)for(var n=1;n0?e-1:e)*365+a+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e)+.5;var t=475+(e-this.toJD(475,1,1))/365.242197,r=Math.floor(t);r<=0&&r--,e>this.toJD(r,12,N6(r)?30:29)&&(r++,r===0&&r++);var i=e-this.toJD(r,1,1)+1,a=i<=186?Math.ceil(i/31):Math.ceil((i-6)/30),n=e-this.toJD(r,a,1)+1;return this.newDate(r,a,n)}});Gm.calendars.persian=V6;Gm.calendars.jalali=V6});var Rfe=X(()=>{var dp=fo(),SKe=ho(),U6=dp.instance();function CP(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}CP.prototype=new dp.baseCalendar;SKe(CP.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(r){var t=this._validate(r,this.minMonth,this.minDay,dp.local.invalidYear),r=this._t2gYear(t.year());return U6.leapYear(r)},weekOfYear:function(a,t,r){var i=this._validate(a,this.minMonth,this.minDay,dp.local.invalidYear),a=this._t2gYear(i.year());return U6.weekOfYear(a,i.month(),i.day())},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,dp.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===2&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(a,t,r){var i=this._validate(a,t,r,dp.local.invalidDate),a=this._t2gYear(i.year());return U6.toJD(a,i.month(),i.day())},fromJD:function(e){var t=U6.fromJD(e),r=this._g2tYear(t.year());return this.newDate(r,t.month(),t.day())},_t2gYear:function(e){return e+this.yearsOffset+(e>=-this.yearsOffset&&e<=-1?1:0)},_g2tYear:function(e){return e-this.yearsOffset-(e>=1&&e<=this.yearsOffset?1:0)}});dp.calendars.taiwan=CP});var Bfe=X(()=>{var pp=fo(),EKe=ho(),G6=pp.instance();function FP(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}FP.prototype=new pp.baseCalendar;EKe(FP.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(r){var t=this._validate(r,this.minMonth,this.minDay,pp.local.invalidYear),r=this._t2gYear(t.year());return G6.leapYear(r)},weekOfYear:function(a,t,r){var i=this._validate(a,this.minMonth,this.minDay,pp.local.invalidYear),a=this._t2gYear(i.year());return G6.weekOfYear(a,i.month(),i.day())},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,pp.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===2&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(a,t,r){var i=this._validate(a,t,r,pp.local.invalidDate),a=this._t2gYear(i.year());return G6.toJD(a,i.month(),i.day())},fromJD:function(e){var t=G6.fromJD(e),r=this._g2tYear(t.year());return this.newDate(r,t.month(),t.day())},_t2gYear:function(e){return e-this.yearsOffset-(e>=1&&e<=this.yearsOffset?1:0)},_g2tYear:function(e){return e+this.yearsOffset+(e>=-this.yearsOffset&&e<=-1?1:0)}});pp.calendars.thai=FP});var qfe=X(()=>{var mp=fo(),kKe=ho();function PP(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}PP.prototype=new mp.baseCalendar;kKe(PP.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\u0101th\u0101\u2019","Yawm al-Arba\u2018\u0101\u2019","Yawm al-Kham\u012Bs","Yawm al-Jum\u2018a","Yawm al-Sabt"],dayNamesMin:["Ah","Ith","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!0}},leapYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,mp.local.invalidYear);return this.daysInYear(t.year())===355},weekOfYear:function(e,t,r){var i=this.newDate(e,t,r);return i.add(-i.dayOfWeek(),"d"),Math.floor((i.dayOfYear()-1)/7)+1},daysInYear:function(e){for(var t=0,r=1;r<=12;r++)t+=this.daysInMonth(e,r);return t},daysInMonth:function(e,t){for(var r=this._validate(e,t,this.minDay,mp.local.invalidMonth),i=r.toJD()-24e5+.5,a=0,n=0;ni)return s0[a]-s0[a-1];a++}return 30},weekDay:function(e,t,r){return this.dayOfWeek(e,t,r)!==5},toJD:function(e,t,r){var i=this._validate(e,t,r,mp.local.invalidDate),a=12*(i.year()-1)+i.month()-15292,n=i.day()+s0[a-1]-1;return n+24e5-.5},fromJD:function(e){for(var t=e-24e5+.5,r=0,i=0;it);i++)r++;var a=r+15292,n=Math.floor((a-1)/12),o=n+1,s=a-12*n,l=t-s0[r-1]+1;return this.newDate(o,s,l)},isValid:function(e,t,r){var i=mp.baseCalendar.prototype.isValid.apply(this,arguments);return i&&(e=e.year!=null?e.year:e,i=e>=1276&&e<=1500),i},_validate:function(e,t,r,i){var a=mp.baseCalendar.prototype._validate.apply(this,arguments);if(a.year<1276||a.year>1500)throw i.replace(/\{0\}/,this.local.name);return a}});mp.calendars.ummalqura=PP;var s0=[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]});var Nfe=X((bft,Ofe)=>{"use strict";Ofe.exports=fo();wfe();Afe();Tfe();Mfe();Dfe();Sfe();Efe();kfe();Ffe();Ife();Lfe();zfe();Rfe();Bfe();qfe()});var Zfe=X((wft,Hfe)=>{"use strict";var Ufe=Nfe(),n_=et(),Gfe=(Ki(),ct(na)),CKe=Gfe.EPOCHJD,FKe=Gfe.ONEDAY,zP={valType:"enumerated",values:n_.sortObjectKeys(Ufe.calendars),editType:"calc",dflt:"gregorian"},jfe=function(e,t,r,i){var a={};return a[r]=zP,n_.coerce(e,t,a,r,i)},PKe=function(e,t,r,i){for(var a=0;a{"use strict";Yfe.exports=Zfe()});var qKe=X((Tft,Kfe)=>{var Xfe=nee();Xfe.register([yhe(),Zhe(),gfe(),Wfe()]);Kfe.exports=Xfe});return qKe();})(); +`),A=u.createShader(u.FRAGMENT_SHADER);if(u.isContextLost()){this.failedToCreate=!0;return}u.shaderSource(A,b),u.compileShader(A),u.attachShader(this.program,A);let T=u.createShader(u.VERTEX_SHADER);if(u.isContextLost()){this.failedToCreate=!0;return}u.shaderSource(T,_),u.compileShader(T),u.attachShader(this.program,T),this.attributes={};let M={};if(this.numAttributes=f.length,u.linkProgram(this.program),!u.getProgramParameter(this.program,u.LINK_STATUS)){if(u.isContextLost()){this.failedToCreate=!0;return}throw u.getShaderParameter(A,u.COMPILE_STATUS)?u.getShaderParameter(T,u.COMPILE_STATUS)?Error(`Program failed to link: ${u.getProgramInfoLog(this.program)}`):Error(`Could not compile vertex shader: ${u.getShaderInfoLog(T)}`):Error(`Could not compile fragment shader: ${u.getShaderInfoLog(A)}`)}Gje(u,this.program);let S=Xje(u,this.program);for(let k of f){if(!k)continue;let P=u.getAttribLocation(this.program,k);P>=0&&(this.attributes[k]={location:P,isInteger:S.has(k)})}u.deleteShader(T),u.deleteShader(A);for(let k of y)if(k&&!M[k]){let P=u.getUniformLocation(this.program,k);P&&(M[k]=P)}this.fixedUniforms=i(e,M),this.terrainUniforms=qje(e,M),this.binderUniforms=r?r.getUniforms(e,M):[]}draw(e,t,r,i,a,n,o,s,l,u,c,h,f,d,p,m,g,y,x){var A;let b=e.gl;if(this.failedToCreate)return;if(e.program.set(this.program),e.terrainUniformBuffer.bind(),e.frameUniformBuffer.bind(),e.setDepthMode(r),e.setStencilMode(i),e.setColorMode(a),e.setCullFace(n),s){e.activeTexture.set(b.TEXTURE2),b.bindTexture(b.TEXTURE_2D,s.depthTexture),e.activeTexture.set(b.TEXTURE3),b.bindTexture(b.TEXTURE_2D,s.texture);for(let T in this.terrainUniforms)this.terrainUniforms[T].set(s[T]);Wje(e.terrainUniformBuffer,s)}if($je(e,l),o)for(let T in this.fixedUniforms)this.fixedUniforms[T].set(o[T]);m&&m.setUniforms(e,this.binderUniforms,d,{zoom:p});let _=0;switch(t){case b.LINES:_=2;break;case b.TRIANGLES:_=3;break;case b.LINE_STRIP:_=1}for(let T of f.get())T.vaos||(T.vaos={}),(A=T.vaos)[u]||(A[u]=new Bje),T.vaos[u].bind(e,this,c,m?m.getPaintVertexBuffers():[],h,T.vertexOffset,g,y,x),b.drawElements(t,T.primitiveLength*_,b.UNSIGNED_SHORT,T.primitiveOffset*_*2)}};Qje=(e,t)=>({u_lightpos:new Oo(e,t.u_lightpos),u_lightpos_globe:new Oo(e,t.u_lightpos_globe),u_lightintensity:new jt(e,t.u_lightintensity),u_lightcolor:new Oo(e,t.u_lightcolor),u_vertical_gradient:new jt(e,t.u_vertical_gradient),u_opacity:new jt(e,t.u_opacity),u_fill_translate:new zr(e,t.u_fill_translate)}),e$e=(e,t)=>({u_lightpos:new Oo(e,t.u_lightpos),u_lightpos_globe:new Oo(e,t.u_lightpos_globe),u_lightintensity:new jt(e,t.u_lightintensity),u_lightcolor:new Oo(e,t.u_lightcolor),u_vertical_gradient:new jt(e,t.u_vertical_gradient),u_height_factor:new jt(e,t.u_height_factor),u_opacity:new jt(e,t.u_opacity),u_fill_translate:new zr(e,t.u_fill_translate),u_image:new sr(e,t.u_image),u_texsize:new zr(e,t.u_texsize),u_pixel_coord_upper:new zr(e,t.u_pixel_coord_upper),u_pixel_coord_lower:new zr(e,t.u_pixel_coord_lower),u_scale:new Oo(e,t.u_scale),u_fade:new jt(e,t.u_fade)}),Due=(e,t,r,i)=>{let a=e.style.light,n=a.getCartesianPosition(),o=_k();a.properties.get("anchor")==="viewport"&&Qre(o,e.transform.bearingInRadians),lie(n,n,o);let s=e.transform.transformLightDirection(n),l=a.properties.get("color");return{u_lightpos:n,u_lightpos_globe:s,u_lightintensity:a.properties.get("intensity"),u_lightcolor:[l.r,l.g,l.b],u_vertical_gradient:+t,u_opacity:r,u_fill_translate:i}},t$e=(e,t,r,i,a,n,o)=>tr(Due(e,t,r,i),Mue(n,e,o),{u_height_factor:-(2**a.overscaledZ)/o.tileSize/8}),r$e=(e,t)=>({u_fill_translate:new zr(e,t.u_fill_translate)}),i$e=(e,t)=>({u_image:new sr(e,t.u_image),u_texsize:new zr(e,t.u_texsize),u_pixel_coord_upper:new zr(e,t.u_pixel_coord_upper),u_pixel_coord_lower:new zr(e,t.u_pixel_coord_lower),u_scale:new Oo(e,t.u_scale),u_fade:new jt(e,t.u_fade),u_sdf_pattern:new sr(e,t.u_sdf_pattern),u_fill_translate:new zr(e,t.u_fill_translate)}),a$e=(e,t)=>({u_fill_translate:new zr(e,t.u_fill_translate)}),n$e=(e,t)=>({u_image:new sr(e,t.u_image),u_texsize:new zr(e,t.u_texsize),u_pixel_coord_upper:new zr(e,t.u_pixel_coord_upper),u_pixel_coord_lower:new zr(e,t.u_pixel_coord_lower),u_scale:new Oo(e,t.u_scale),u_fade:new jt(e,t.u_fade),u_sdf_pattern:new sr(e,t.u_sdf_pattern),u_fill_translate:new zr(e,t.u_fill_translate)}),Sue=(e,t,r,i,a)=>tr(Mue(t,e,r),{u_fill_translate:i,u_sdf_pattern:+!!a}),o$e=e=>({u_fill_translate:e}),s$e=e=>({u_fill_translate:e}),l$e=(e,t,r,i,a)=>Sue(e,t,r,i,a),u$e=(e,t)=>({u_scale_with_map:new sr(e,t.u_scale_with_map),u_pitch_with_map:new sr(e,t.u_pitch_with_map),u_extrude_scale:new zr(e,t.u_extrude_scale),u_globe_extrude_scale:new jt(e,t.u_globe_extrude_scale),u_translate:new zr(e,t.u_translate)}),c$e=(e,t,r,i,a)=>{let n=e.transform,o,s,l=0;if(r.paint.get("circle-pitch-alignment")==="map"){let u=bs(t,1,n.zoom);o=!0,s=[u,u],l=u/(ct*2**t.tileID.overscaledZ)*2*Math.PI*a}else o=!1,s=n.pixelsToGLUnits;return{u_scale_with_map:+(r.paint.get("circle-pitch-scale")==="map"),u_pitch_with_map:+o,u_extrude_scale:s,u_globe_extrude_scale:l,u_translate:i}},h$e=(e,t)=>({u_color:new Sh(e,t.u_color),u_overlay:new sr(e,t.u_overlay),u_overlay_scale:new jt(e,t.u_overlay_scale)}),nle=(e,t=1)=>({u_color:e,u_overlay:0,u_overlay_scale:t}),f$e=(e,t)=>({u_extrude_scale:new jt(e,t.u_extrude_scale),u_intensity:new jt(e,t.u_intensity),u_globe_extrude_scale:new jt(e,t.u_globe_extrude_scale)}),d$e=(e,t)=>({u_matrix:new Zl(e,t.u_matrix),u_image:new sr(e,t.u_image),u_color_ramp:new sr(e,t.u_color_ramp),u_opacity:new jt(e,t.u_opacity)}),Eue=(e,t,r,i)=>{let a=bs(e,1,t)/(ct*2**e.tileID.overscaledZ)*2*Math.PI*i;return{u_extrude_scale:bs(e,1,t),u_intensity:r,u_globe_extrude_scale:a}},kue=(e,t,r,i)=>{let a=xh();return zu(a,0,e.width,e.height,0,0,1),{u_matrix:a,u_image:r,u_color_ramp:i,u_opacity:t.paint.get("heatmap-opacity")}},p$e=(e,t)=>({u_image:new sr(e,t.u_image),u_latrange:new zr(e,t.u_latrange),u_exaggeration:new jt(e,t.u_exaggeration),u_altitudes:new iC(e,t.u_altitudes),u_azimuths:new iC(e,t.u_azimuths),u_accent:new Sh(e,t.u_accent),u_method:new sr(e,t.u_method),u_shadows:new rC(e,t.u_shadows),u_highlights:new rC(e,t.u_highlights)}),m$e=(e,t)=>({u_matrix:new Zl(e,t.u_matrix),u_image:new sr(e,t.u_image),u_dimension:new zr(e,t.u_dimension),u_zoom:new jt(e,t.u_zoom),u_unpack:new km(e,t.u_unpack)}),v$e=(e,t,r)=>{let i=r.paint.get("hillshade-accent-color"),a;switch(r.paint.get("hillshade-method")){case"basic":a=4;break;case"combined":a=1;break;case"igor":a=2;break;case"multidirectional":a=3;break;default:a=0}let n=r.getIlluminationProperties();for(let o=0;o{let r=t.stride,i=xh();return zu(i,0,ct,-ct,0,0,1),Qa(i,i,[0,-ct,0]),{u_matrix:i,u_image:1,u_dimension:[r,r],u_zoom:e.overscaledZ,u_unpack:t.getUnpackVector()}};_$e=(e,t)=>({u_image:new sr(e,t.u_image),u_unpack:new km(e,t.u_unpack),u_dimension:new zr(e,t.u_dimension),u_elevation_stops:new sr(e,t.u_elevation_stops),u_color_stops:new sr(e,t.u_color_stops),u_color_ramp_size:new sr(e,t.u_color_ramp_size),u_opacity:new jt(e,t.u_opacity)}),x$e=(e,t,r=0)=>({u_image:0,u_unpack:t.getUnpackVector(),u_dimension:[t.stride,t.stride],u_elevation_stops:1,u_color_stops:4,u_color_ramp_size:r,u_opacity:e.paint.get("color-relief-opacity")}),b$e=(e,t)=>({u_translation:new zr(e,t.u_translation),u_ratio:new jt(e,t.u_ratio)}),w$e=(e,t)=>({u_translation:new zr(e,t.u_translation),u_ratio:new jt(e,t.u_ratio),u_image:new sr(e,t.u_image),u_image_height:new jt(e,t.u_image_height)}),A$e=(e,t)=>({u_translation:new zr(e,t.u_translation),u_texsize:new zr(e,t.u_texsize),u_ratio:new jt(e,t.u_ratio),u_image:new sr(e,t.u_image),u_scale:new Oo(e,t.u_scale),u_fade:new jt(e,t.u_fade)}),T$e=(e,t)=>({u_translation:new zr(e,t.u_translation),u_ratio:new jt(e,t.u_ratio),u_image:new sr(e,t.u_image),u_mix:new jt(e,t.u_mix),u_tileratio:new jt(e,t.u_tileratio),u_crossfade_from:new jt(e,t.u_crossfade_from),u_crossfade_to:new jt(e,t.u_crossfade_to),u_lineatlas_width:new jt(e,t.u_lineatlas_width),u_lineatlas_height:new jt(e,t.u_lineatlas_height)}),M$e=(e,t)=>({u_translation:new zr(e,t.u_translation),u_ratio:new jt(e,t.u_ratio),u_image:new sr(e,t.u_image),u_image_height:new jt(e,t.u_image_height),u_tileratio:new jt(e,t.u_tileratio),u_crossfade_from:new jt(e,t.u_crossfade_from),u_crossfade_to:new jt(e,t.u_crossfade_to),u_image_dash:new sr(e,t.u_image_dash),u_mix:new jt(e,t.u_mix),u_lineatlas_width:new jt(e,t.u_lineatlas_width),u_lineatlas_height:new jt(e,t.u_lineatlas_height)}),_6=(e,t,r,i)=>{let a=e.transform;return{u_translation:Cue(e,t,r),u_ratio:i/bs(t,1,a.zoom)}},D$e=(e,t,r,i,a)=>tr(_6(e,t,r,i),{u_image:0,u_image_height:a}),S$e=(e,t,r,i,a)=>{let n=e.transform,o=jF(t,n);return{u_translation:Cue(e,t,r),u_texsize:t.imageAtlasTexture.size,u_ratio:i/bs(t,1,n.zoom),u_image:0,u_scale:[o,a.fromScale,a.toScale],u_fade:a.t}},E$e=(e,t,r,i,a)=>{let n=e.transform,o=jF(t,n);return tr(_6(e,t,r,i),{u_tileratio:o,u_crossfade_from:a.fromScale,u_crossfade_to:a.toScale,u_image:0,u_mix:a.t,u_lineatlas_width:e.lineAtlas.width,u_lineatlas_height:e.lineAtlas.height})},k$e=(e,t,r,i,a,n)=>{let o=e.transform,s=jF(t,o);return tr(_6(e,t,r,i),{u_image:0,u_image_height:n,u_tileratio:s,u_crossfade_from:a.fromScale,u_crossfade_to:a.toScale,u_image_dash:1,u_mix:a.t,u_lineatlas_width:e.lineAtlas.width,u_lineatlas_height:e.lineAtlas.height})};C$e=(e,t)=>({u_image:new sr(e,t.u_image),u_opacity:new jt(e,t.u_opacity)}),F$e=(e,t)=>({u_image:t,u_opacity:e}),P$e=(e,t)=>({u_is_size_zoom_constant:new sr(e,t.u_is_size_zoom_constant),u_is_size_feature_constant:new sr(e,t.u_is_size_feature_constant),u_size_t:new jt(e,t.u_size_t),u_size:new jt(e,t.u_size),u_rotate_symbol:new sr(e,t.u_rotate_symbol),u_label_plane_matrix:new Zl(e,t.u_label_plane_matrix),u_coord_matrix:new Zl(e,t.u_coord_matrix),u_is_text:new sr(e,t.u_is_text),u_pitch_with_map:new sr(e,t.u_pitch_with_map),u_is_along_line:new sr(e,t.u_is_along_line),u_is_variable_anchor:new sr(e,t.u_is_variable_anchor),u_texsize:new zr(e,t.u_texsize),u_texture:new sr(e,t.u_texture),u_translation:new zr(e,t.u_translation),u_pitched_scale:new jt(e,t.u_pitched_scale),u_is_offset:new sr(e,t.u_is_offset),u_height_anchor_ground:new sr(e,t.u_height_anchor_ground)}),I$e=(e,t)=>({u_is_size_zoom_constant:new sr(e,t.u_is_size_zoom_constant),u_is_size_feature_constant:new sr(e,t.u_is_size_feature_constant),u_size_t:new jt(e,t.u_size_t),u_size:new jt(e,t.u_size),u_rotate_symbol:new sr(e,t.u_rotate_symbol),u_label_plane_matrix:new Zl(e,t.u_label_plane_matrix),u_coord_matrix:new Zl(e,t.u_coord_matrix),u_is_text:new sr(e,t.u_is_text),u_pitch_with_map:new sr(e,t.u_pitch_with_map),u_is_along_line:new sr(e,t.u_is_along_line),u_is_variable_anchor:new sr(e,t.u_is_variable_anchor),u_texsize:new zr(e,t.u_texsize),u_texture:new sr(e,t.u_texture),u_gamma_scale:new jt(e,t.u_gamma_scale),u_is_halo:new sr(e,t.u_is_halo),u_is_plain:new sr(e,t.u_is_plain),u_translation:new zr(e,t.u_translation),u_pitched_scale:new jt(e,t.u_pitched_scale),u_is_offset:new sr(e,t.u_is_offset),u_height_anchor_ground:new sr(e,t.u_height_anchor_ground)}),L$e=(e,t)=>({u_is_size_zoom_constant:new sr(e,t.u_is_size_zoom_constant),u_is_size_feature_constant:new sr(e,t.u_is_size_feature_constant),u_size_t:new jt(e,t.u_size_t),u_size:new jt(e,t.u_size),u_rotate_symbol:new sr(e,t.u_rotate_symbol),u_label_plane_matrix:new Zl(e,t.u_label_plane_matrix),u_coord_matrix:new Zl(e,t.u_coord_matrix),u_is_text:new sr(e,t.u_is_text),u_pitch_with_map:new sr(e,t.u_pitch_with_map),u_is_along_line:new sr(e,t.u_is_along_line),u_is_variable_anchor:new sr(e,t.u_is_variable_anchor),u_texsize:new zr(e,t.u_texsize),u_texsize_icon:new zr(e,t.u_texsize_icon),u_texture:new sr(e,t.u_texture),u_texture_icon:new sr(e,t.u_texture_icon),u_gamma_scale:new jt(e,t.u_gamma_scale),u_is_halo:new sr(e,t.u_is_halo),u_translation:new zr(e,t.u_translation),u_pitched_scale:new jt(e,t.u_pitched_scale),u_is_offset:new sr(e,t.u_is_offset),u_height_anchor_ground:new sr(e,t.u_height_anchor_ground)}),Fue=(e,t,r,i,a,n,o,s,l,u,c,h,f,d,p)=>({u_is_size_zoom_constant:+(e==="constant"||e==="source"),u_is_size_feature_constant:+(e==="constant"||e==="camera"),u_size_t:t?t.uSizeT:0,u_size:t?t.uSize:0,u_rotate_symbol:+r,u_label_plane_matrix:s,u_coord_matrix:l,u_is_text:+c,u_pitch_with_map:+i,u_is_along_line:a,u_is_variable_anchor:n,u_texsize:h,u_texture:0,u_translation:u,u_pitched_scale:f,u_is_offset:d,u_height_anchor_ground:+p}),Pue=(e,t,r,i,a,n,o,s,l,u,c,h,f,d,p,m)=>{let g=o.transform;return tr(Fue(e,t,r,i,a,n,o,s,l,u,c,h,d,p,m),{u_gamma_scale:i?Math.cos(g.pitch*Math.PI/180)*g.cameraToCenterDistance:1,u_is_halo:+!!f,u_is_plain:1})},z$e=(e,t,r,i,a,n,o,s,l,u,c,h,f,d,p)=>tr(Pue(e,t,r,i,a,n,o,s,l,u,!0,c,!0,f,d,p),{u_texsize_icon:h,u_texture_icon:1}),R$e=(e,t)=>({u_opacity:new jt(e,t.u_opacity),u_color:new Sh(e,t.u_color)}),B$e=(e,t)=>({u_opacity:new jt(e,t.u_opacity),u_image:new sr(e,t.u_image),u_pattern_tl_a:new zr(e,t.u_pattern_tl_a),u_pattern_br_a:new zr(e,t.u_pattern_br_a),u_pattern_tl_b:new zr(e,t.u_pattern_tl_b),u_pattern_br_b:new zr(e,t.u_pattern_br_b),u_texsize:new zr(e,t.u_texsize),u_mix:new jt(e,t.u_mix),u_pattern_size_a:new zr(e,t.u_pattern_size_a),u_pattern_size_b:new zr(e,t.u_pattern_size_b),u_scale_a:new jt(e,t.u_scale_a),u_scale_b:new jt(e,t.u_scale_b),u_pixel_coord_upper:new zr(e,t.u_pixel_coord_upper),u_pixel_coord_lower:new zr(e,t.u_pixel_coord_lower),u_tile_units_to_pixels:new jt(e,t.u_tile_units_to_pixels)}),q$e=(e,t)=>({u_opacity:e,u_color:t}),O$e=(e,t,r,i,a)=>tr(Jje(r,a,t,i),{u_opacity:e}),N$e=(e,t)=>({u_sun_pos:new Oo(e,t.u_sun_pos),u_atmosphere_blend:new jt(e,t.u_atmosphere_blend),u_globe_position:new Oo(e,t.u_globe_position),u_globe_radius:new jt(e,t.u_globe_radius),u_inv_proj_matrix:new Zl(e,t.u_inv_proj_matrix)}),V$e=(e,t,r,i,a)=>({u_sun_pos:e,u_atmosphere_blend:t,u_globe_position:r,u_globe_radius:i,u_inv_proj_matrix:a}),U$e=(e,t)=>({u_sky_color:new Sh(e,t.u_sky_color),u_horizon_color:new Sh(e,t.u_horizon_color),u_horizon:new zr(e,t.u_horizon),u_horizon_normal:new zr(e,t.u_horizon_normal),u_sky_horizon_blend:new jt(e,t.u_sky_horizon_blend),u_sky_blend:new jt(e,t.u_sky_blend),u_inv_proj_matrix:new Zl(e,t.u_inv_proj_matrix),u_globe_position:new Oo(e,t.u_globe_position),u_globe_radius:new jt(e,t.u_globe_radius),u_atmosphere_blend:new jt(e,t.u_atmosphere_blend)}),G$e=(e,t,r)=>{let i=Math.cos(t.rollInRadians),a=Math.sin(t.rollInRadians),n=Fm(t),o=t.getProjectionData({overscaledTileID:null,applyGlobeMatrix:!0,applyTerrainMatrix:!0}).projectionTransition,s=mue(t),l=qm(t.worldSize,t.center.lat);return{u_sky_color:e.properties.get("sky-color"),u_horizon_color:e.properties.get("horizon-color"),u_horizon:[(t.width/2-n*a)*r,(t.height/2+n*i)*r],u_horizon_normal:[-a,i],u_sky_horizon_blend:e.properties.get("sky-horizon-blend")*t.height/2*r,u_sky_blend:o,u_inv_proj_matrix:t.inverseProjectionMatrix,u_globe_position:s,u_globe_radius:l,u_atmosphere_blend:e.properties.get("atmosphere-blend")*vue(Hl(s)-l,l)}},Kw=(e,t)=>({}),j$e={fillExtrusion:Qje,fillExtrusionPattern:e$e,fill:r$e,fillPattern:i$e,fillOutline:a$e,fillOutlinePattern:n$e,circle:u$e,collisionBox:Kw,collisionCircle:Kw,debug:h$e,depth:Kw,clippingMask:Kw,heatmap:f$e,heatmapTexture:d$e,hillshade:p$e,hillshadePrepare:m$e,colorRelief:_$e,line:b$e,lineGradient:w$e,linePattern:A$e,lineSDF:T$e,lineGradientSDF:M$e,layerOpacity:C$e,raster:oGe,symbolIcon:P$e,symbolSDF:I$e,symbolTextAndIcon:L$e,background:R$e,backgroundPattern:B$e,terrain:Oje,terrainDepth:Nje,atmosphere:N$e,sky:U$e},$$e=class{constructor(e,t,r){this.context=e;let i=e.gl;this.buffer=i.createBuffer(),this.dynamicDraw=!!r,this.context.unbindVAO(),e.bindElementBuffer.set(this.buffer),i.bufferData(i.ELEMENT_ARRAY_BUFFER,t.arrayBuffer,this.dynamicDraw?i.DYNAMIC_DRAW:i.STATIC_DRAW),this.dynamicDraw||t.freeBufferAfterUpload()}bind(){this.context.bindElementBuffer.set(this.buffer)}updateData(e){let t=this.context.gl;if(!this.dynamicDraw)throw Error("Attempted to update data while not in dynamic mode.");this.context.unbindVAO(),this.bind(),t.bufferSubData(t.ELEMENT_ARRAY_BUFFER,0,e.arrayBuffer)}destroy(){let e=this.context.gl;this.buffer&&(e.deleteBuffer(this.buffer),delete this.buffer)}},ole={Int8:"BYTE",Uint8:"UNSIGNED_BYTE",Int16:"SHORT",Uint16:"UNSIGNED_SHORT",Int32:"INT",Uint32:"UNSIGNED_INT",Float32:"FLOAT"},H$e=class{constructor(e,t,r,i){this.length=t.length,this.attributes=r,this.itemSize=t.bytesPerElement,this.dynamicDraw=i,this.context=e;let a=e.gl;this.buffer=a.createBuffer(),e.bindVertexBuffer.set(this.buffer),a.bufferData(a.ARRAY_BUFFER,t.arrayBuffer,this.dynamicDraw?a.DYNAMIC_DRAW:a.STATIC_DRAW),this.dynamicDraw||t.freeBufferAfterUpload()}bind(){this.context.bindVertexBuffer.set(this.buffer)}updateData(e){if(e.length!==this.length)throw Error(`Length of new data is ${e.length}, which doesn't match current length of ${this.length}`);let t=this.context.gl;this.bind(),t.bufferSubData(t.ARRAY_BUFFER,0,e.arrayBuffer)}enableAttributes(e,t){for(let r of this.attributes){let i=t.attributes[r.name];i!==void 0&&e.enableVertexAttribArray(i.location)}}setVertexAttribPointers(e,t,r){for(let i of this.attributes){let a=t.attributes[i.name];if(a!==void 0){let n=i.offset+this.itemSize*(r||0);a.isInteger?e.vertexAttribIPointer(a.location,i.components,e[ole[i.type]],this.itemSize,n):e.vertexAttribPointer(a.location,i.components,e[ole[i.type]],!1,this.itemSize,n)}}}destroy(){let e=this.context.gl;this.buffer&&(e.deleteBuffer(this.buffer),delete this.buffer)}},Ii=class{constructor(e){this.gl=e.gl,this.default=this.getDefault(),this.current=this.default,this.dirty=!1}get(){return this.current}set(e){}getDefault(){return this.default}setDefault(){this.set(this.default)}},Z$e=class extends Ii{getDefault(){return Sr.transparent}set(e){let t=this.current;(e.r!==t.r||e.g!==t.g||e.b!==t.b||e.a!==t.a||this.dirty)&&(this.gl.clearColor(e.r,e.g,e.b,e.a),this.current=e,this.dirty=!1)}},Y$e=class extends Ii{getDefault(){return 1}set(e){(e!==this.current||this.dirty)&&(this.gl.clearDepth(e),this.current=e,this.dirty=!1)}},W$e=class extends Ii{getDefault(){return 0}set(e){(e!==this.current||this.dirty)&&(this.gl.clearStencil(e),this.current=e,this.dirty=!1)}},X$e=class extends Ii{getDefault(){return[!0,!0,!0,!0]}set(e){let t=this.current;(e[0]!==t[0]||e[1]!==t[1]||e[2]!==t[2]||e[3]!==t[3]||this.dirty)&&(this.gl.colorMask(e[0],e[1],e[2],e[3]),this.current=e,this.dirty=!1)}},K$e=class extends Ii{getDefault(){return!0}set(e){(e!==this.current||this.dirty)&&(this.gl.depthMask(e),this.current=e,this.dirty=!1)}},J$e=class extends Ii{getDefault(){return 255}set(e){(e!==this.current||this.dirty)&&(this.gl.stencilMask(e),this.current=e,this.dirty=!1)}},Q$e=class extends Ii{getDefault(){return{func:this.gl.ALWAYS,ref:0,mask:255}}set(e){let t=this.current;(e.func!==t.func||e.ref!==t.ref||e.mask!==t.mask||this.dirty)&&(this.gl.stencilFunc(e.func,e.ref,e.mask),this.current=e,this.dirty=!1)}},eHe=class extends Ii{getDefault(){let e=this.gl;return[e.KEEP,e.KEEP,e.KEEP]}set(e){let t=this.current;(e[0]!==t[0]||e[1]!==t[1]||e[2]!==t[2]||this.dirty)&&(this.gl.stencilOp(e[0],e[1],e[2]),this.current=e,this.dirty=!1)}},tHe=class extends Ii{getDefault(){return!1}set(e){if(e===this.current&&!this.dirty)return;let t=this.gl;e?t.enable(t.STENCIL_TEST):t.disable(t.STENCIL_TEST),this.current=e,this.dirty=!1}},rHe=class extends Ii{getDefault(){return[0,1]}set(e){let t=this.current;(e[0]!==t[0]||e[1]!==t[1]||this.dirty)&&(this.gl.depthRange(e[0],e[1]),this.current=e,this.dirty=!1)}},iHe=class extends Ii{getDefault(){return!1}set(e){if(e===this.current&&!this.dirty)return;let t=this.gl;e?t.enable(t.DEPTH_TEST):t.disable(t.DEPTH_TEST),this.current=e,this.dirty=!1}},aHe=class extends Ii{getDefault(){return this.gl.LESS}set(e){(e!==this.current||this.dirty)&&(this.gl.depthFunc(e),this.current=e,this.dirty=!1)}},nHe=class extends Ii{getDefault(){return!1}set(e){if(e===this.current&&!this.dirty)return;let t=this.gl;e?t.enable(t.BLEND):t.disable(t.BLEND),this.current=e,this.dirty=!1}},oHe=class extends Ii{getDefault(){let e=this.gl;return[e.ONE,e.ZERO]}set(e){let t=this.current;(e[0]!==t[0]||e[1]!==t[1]||this.dirty)&&(this.gl.blendFunc(e[0],e[1]),this.current=e,this.dirty=!1)}},sHe=class extends Ii{getDefault(){return Sr.transparent}set(e){let t=this.current;(e.r!==t.r||e.g!==t.g||e.b!==t.b||e.a!==t.a||this.dirty)&&(this.gl.blendColor(e.r,e.g,e.b,e.a),this.current=e,this.dirty=!1)}},lHe=class extends Ii{getDefault(){return this.gl.FUNC_ADD}set(e){(e!==this.current||this.dirty)&&(this.gl.blendEquation(e),this.current=e,this.dirty=!1)}},uHe=class extends Ii{getDefault(){return!1}set(e){if(e===this.current&&!this.dirty)return;let t=this.gl;e?t.enable(t.CULL_FACE):t.disable(t.CULL_FACE),this.current=e,this.dirty=!1}},cHe=class extends Ii{getDefault(){return this.gl.BACK}set(e){(e!==this.current||this.dirty)&&(this.gl.cullFace(e),this.current=e,this.dirty=!1)}},hHe=class extends Ii{getDefault(){return this.gl.CCW}set(e){(e!==this.current||this.dirty)&&(this.gl.frontFace(e),this.current=e,this.dirty=!1)}},fHe=class extends Ii{getDefault(){return null}set(e){(e!==this.current||this.dirty)&&(this.gl.useProgram(e),this.current=e,this.dirty=!1)}},dHe=class extends Ii{getDefault(){return this.gl.TEXTURE0}set(e){(e!==this.current||this.dirty)&&(this.gl.activeTexture(e),this.current=e,this.dirty=!1)}},pHe=class extends Ii{getDefault(){let e=this.gl;return[0,0,e.drawingBufferWidth,e.drawingBufferHeight]}set(e){let t=this.current;(e[0]!==t[0]||e[1]!==t[1]||e[2]!==t[2]||e[3]!==t[3]||this.dirty)&&(this.gl.viewport(e[0],e[1],e[2],e[3]),this.current=e,this.dirty=!1)}},mHe=class extends Ii{getDefault(){return null}set(e){if(e===this.current&&!this.dirty)return;let t=this.gl;t.bindFramebuffer(t.FRAMEBUFFER,e),this.current=e,this.dirty=!1}},vHe=class extends Ii{getDefault(){return null}set(e){if(e===this.current&&!this.dirty)return;let t=this.gl;t.bindRenderbuffer(t.RENDERBUFFER,e),this.current=e,this.dirty=!1}},gHe=class extends Ii{getDefault(){return null}set(e){if(e===this.current&&!this.dirty)return;let t=this.gl;t.bindTexture(t.TEXTURE_2D,e),this.current=e,this.dirty=!1}},yHe=class extends Ii{getDefault(){return null}set(e){if(e===this.current&&!this.dirty)return;let t=this.gl;t.bindBuffer(t.ARRAY_BUFFER,e),this.current=e,this.dirty=!1}},_He=class extends Ii{getDefault(){return null}set(e){let t=this.gl;t.bindBuffer(t.ELEMENT_ARRAY_BUFFER,e),this.current=e,this.dirty=!1}},xHe=class extends Ii{getDefault(){return null}set(e){(e!==this.current||this.dirty)&&(this.gl.bindVertexArray(e),this.current=e,this.dirty=!1)}},bHe=class extends Ii{getDefault(){return 4}set(e){if(e===this.current&&!this.dirty)return;let t=this.gl;t.pixelStorei(t.UNPACK_ALIGNMENT,e),this.current=e,this.dirty=!1}},wHe=class extends Ii{getDefault(){return!1}set(e){if(e===this.current&&!this.dirty)return;let t=this.gl;t.pixelStorei(t.UNPACK_PREMULTIPLY_ALPHA_WEBGL,e),this.current=e,this.dirty=!1}},AHe=class extends Ii{getDefault(){return!1}set(e){if(e===this.current&&!this.dirty)return;let t=this.gl;t.pixelStorei(t.UNPACK_FLIP_Y_WEBGL,e),this.current=e,this.dirty=!1}},$F=class extends Ii{constructor(e,t){super(e),this.context=e,this.parent=t}getDefault(){return null}},THe=class extends $F{setDirty(){this.dirty=!0}set(e){if(e===this.current&&!this.dirty)return;this.context.bindFramebuffer.set(this.parent);let t=this.gl;t.framebufferTexture2D(t.FRAMEBUFFER,t.COLOR_ATTACHMENT0,t.TEXTURE_2D,e,0),this.current=e,this.dirty=!1}},MHe=class extends $F{set(e){if(e===this.current&&!this.dirty)return;this.context.bindFramebuffer.set(this.parent);let t=this.gl;t.framebufferRenderbuffer(t.FRAMEBUFFER,t.DEPTH_ATTACHMENT,t.RENDERBUFFER,e),this.current=e,this.dirty=!1}},DHe=class extends $F{set(e){if(e===this.current&&!this.dirty)return;this.context.bindFramebuffer.set(this.parent);let t=this.gl;t.framebufferRenderbuffer(t.FRAMEBUFFER,t.DEPTH_STENCIL_ATTACHMENT,t.RENDERBUFFER,e),this.current=e,this.dirty=!1}},SHe=class{constructor(e,t,r,i,a){this.context=e,this.width=t,this.height=r;let n=e.gl,o=this.framebuffer=n.createFramebuffer();if(this.colorAttachment=new THe(e,o),i)this.depthAttachment=a?new DHe(e,o):new MHe(e,o);else if(a)throw Error("Stencil cannot be set without depth")}destroy(){let e=this.context.gl,t=this.colorAttachment.get();if(t&&e.deleteTexture(t),this.depthAttachment){let r=this.depthAttachment.get();r&&e.deleteRenderbuffer(r)}e.deleteFramebuffer(this.framebuffer)}},Iue=UF([{name:"u_units_to_pixels",type:"vec2"},{name:"u_world_size",type:"vec2"},{name:"u_camera_to_center_distance",type:"float"},{name:"u_symbol_fade_change",type:"float"},{name:"u_aspect_ratio",type:"float"},{name:"u_device_pixel_ratio",type:"float"},{name:"u_viewport_size",type:"vec2"},{name:"u_pixel_extrude_scale",type:"vec2"},{name:"u_pitch",type:"float"}]),il=Iue.offsets;$a=class{constructor(e,t,r){this.blendFunction=e,this.blendColor=t,this.mask=r}};$a.Replace=[1,0],$a.disabled=new $a($a.Replace,Sr.transparent,[!1,!1,!1,!1]),$a.unblended=new $a($a.Replace,Sr.transparent,[!0,!0,!0,!0]),$a.alphaBlended=new $a([1,771],Sr.transparent,[!0,!0,!0,!0]);CHe=class{constructor(e){this.gl=e,this.clearColor=new Z$e(this),this.clearDepth=new Y$e(this),this.clearStencil=new W$e(this),this.colorMask=new X$e(this),this.depthMask=new K$e(this),this.stencilMask=new J$e(this),this.stencilFunc=new Q$e(this),this.stencilOp=new eHe(this),this.stencilTest=new tHe(this),this.depthRange=new rHe(this),this.depthTest=new iHe(this),this.depthFunc=new aHe(this),this.blend=new nHe(this),this.blendFunc=new oHe(this),this.blendColor=new sHe(this),this.blendEquation=new lHe(this),this.cullFace=new uHe(this),this.cullFaceSide=new cHe(this),this.frontFace=new hHe(this),this.program=new fHe(this),this.activeTexture=new dHe(this),this.viewport=new pHe(this),this.bindFramebuffer=new mHe(this),this.bindRenderbuffer=new vHe(this),this.bindTexture=new gHe(this),this.bindVertexBuffer=new yHe(this),this.bindElementBuffer=new _He(this),this.bindVertexArray=new xHe(this),this.pixelStoreUnpack=new bHe(this),this.pixelStoreUnpackPremultiplyAlpha=new wHe(this),this.pixelStoreUnpackFlipY=new AHe(this),this.extTextureFilterAnisotropic=e.getExtension("EXT_texture_filter_anisotropic"),this.extTextureFilterAnisotropic&&(this.extTextureFilterAnisotropicMax=e.getParameter(this.extTextureFilterAnisotropic.MAX_TEXTURE_MAX_ANISOTROPY_EXT)),this.maxTextureSize=e.getParameter(e.MAX_TEXTURE_SIZE),e.getExtension("EXT_color_buffer_half_float"),e.getExtension("EXT_color_buffer_float"),this.boundUniformBuffers=[],this.projectionUniformBuffer=Aue(this),this.keyedProjectionUniformBuffers=new Map,this.freeProjectionUniformBuffers=[],this.terrainUniformBuffer=Yje(this),this.frameUniformBuffer=EHe(this)}setDefault(){this.unbindVAO(),this.clearColor.setDefault(),this.clearDepth.setDefault(),this.clearStencil.setDefault(),this.colorMask.setDefault(),this.depthMask.setDefault(),this.stencilMask.setDefault(),this.stencilFunc.setDefault(),this.stencilOp.setDefault(),this.stencilTest.setDefault(),this.depthRange.setDefault(),this.depthTest.setDefault(),this.depthFunc.setDefault(),this.blend.setDefault(),this.blendFunc.setDefault(),this.blendColor.setDefault(),this.blendEquation.setDefault(),this.cullFace.setDefault(),this.cullFaceSide.setDefault(),this.frontFace.setDefault(),this.program.setDefault(),this.activeTexture.setDefault(),this.bindFramebuffer.setDefault(),this.pixelStoreUnpack.setDefault(),this.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.pixelStoreUnpackFlipY.setDefault()}setDirty(){this.clearColor.dirty=!0,this.clearDepth.dirty=!0,this.clearStencil.dirty=!0,this.colorMask.dirty=!0,this.depthMask.dirty=!0,this.stencilMask.dirty=!0,this.stencilFunc.dirty=!0,this.stencilOp.dirty=!0,this.stencilTest.dirty=!0,this.depthRange.dirty=!0,this.depthTest.dirty=!0,this.depthFunc.dirty=!0,this.blend.dirty=!0,this.blendFunc.dirty=!0,this.blendColor.dirty=!0,this.blendEquation.dirty=!0,this.cullFace.dirty=!0,this.cullFaceSide.dirty=!0,this.frontFace.dirty=!0,this.program.dirty=!0,this.activeTexture.dirty=!0,this.viewport.dirty=!0,this.bindFramebuffer.dirty=!0,this.bindRenderbuffer.dirty=!0,this.bindTexture.dirty=!0,this.bindVertexBuffer.dirty=!0,this.bindElementBuffer.dirty=!0,this.bindVertexArray.dirty=!0,this.pixelStoreUnpack.dirty=!0,this.pixelStoreUnpackPremultiplyAlpha.dirty=!0,this.pixelStoreUnpackFlipY.dirty=!0,this.boundUniformBuffers=[]}setCustomLayerDefaults(){this.unbindVAO(),this.cullFace.setDefault(),this.activeTexture.setDefault(),this.pixelStoreUnpack.setDefault(),this.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.pixelStoreUnpackFlipY.setDefault()}createIndexBuffer(e,t){return new $$e(this,e,t)}createVertexBuffer(e,t,r){return new H$e(this,e,t,r)}createRenderbuffer(e,t,r){let i=this.gl,a=i.createRenderbuffer();return this.bindRenderbuffer.set(a),i.renderbufferStorage(i.RENDERBUFFER,e,t,r),this.bindRenderbuffer.set(null),a}createFramebuffer(e,t,r,i){return new SHe(this,e,t,r,i)}clear({color:e,depth:t,stencil:r}){let i=this.gl,a=0;e&&(a|=i.COLOR_BUFFER_BIT,this.clearColor.set(e),this.colorMask.set([!0,!0,!0,!0])),t!==void 0&&(a|=i.DEPTH_BUFFER_BIT,this.depthRange.set([0,1]),this.clearDepth.set(t),this.depthMask.set(!0)),r!==void 0&&(a|=i.STENCIL_BUFFER_BIT,this.clearStencil.set(r),this.stencilMask.set(255)),i.clear(a)}setCullFace(e){e.enable===!1?this.cullFace.set(!1):(this.cullFace.set(!0),this.cullFaceSide.set(e.mode),this.frontFace.set(e.frontFace))}setDepthMode(e){e.func===this.gl.ALWAYS&&!e.mask?this.depthTest.set(!1):(this.depthTest.set(!0),this.depthFunc.set(e.func),this.depthMask.set(e.mask),this.depthRange.set(e.range))}setStencilMode(e){e.test.func===this.gl.ALWAYS&&!e.mask?this.stencilTest.set(!1):(this.stencilTest.set(!0),this.stencilMask.set(e.mask),this.stencilOp.set([e.fail,e.depthFail,e.pass]),this.stencilFunc.set({func:e.test.func,ref:e.ref,mask:e.test.mask}))}setColorMode(e){Iu(e.blendFunction,$a.Replace)?this.blend.set(!1):(this.blend.set(!0),this.blendFunc.set(e.blendFunction),this.blendColor.set(e.blendColor)),this.colorMask.set(e.mask)}createVertexArray(){return this.gl.createVertexArray()}deleteVertexArray(e){this.gl.deleteVertexArray(e)}unbindVAO(){this.bindVertexArray.set(null)}},ri=class{constructor(e,t,r){this.func=e,this.mask=t,this.range=r}};ri.ReadOnly=!1,ri.ReadWrite=!0,ri.disabled=new ri(519,ri.ReadOnly,[0,1]);JC=7680,Si=class{constructor(e,t,r,i,a,n){this.test=e,this.ref=t,this.mask=r,this.fail=i,this.depthFail=a,this.pass=n}};Si.disabled=new Si({func:519,mask:0},0,0,JC,JC,JC);sle=1029,QC=2305,Ti=class{constructor(e,t,r){this.enable=e,this.mode=t,this.frontFace=r}};Ti.disabled=new Ti(!1,sle,QC),Ti.backCCW=new Ti(!0,sle,QC),Ti.frontCCW=new Ti(!0,1028,QC);IHe=$l(new Float32Array(16));rF=0;aF=[new qe(0,0),new qe(ct,0),new qe(ct,ct),new qe(0,ct)];uZe=new Sr(1,0,0,1),cZe=new Sr(0,1,0,1),hZe=new Sr(0,0,1,1),fZe=new Sr(1,0,1,1),dZe=new Sr(0,1,1,1);DZe={symbol:LHe,circle:NHe,heatmap:VHe,line:JHe,fill:QHe,fillExtrusion:eZe,hillshade:tZe,colorRelief:iZe,raster:aZe,background:lZe,sky:AZe,atmosphere:MZe,custom:xZe,debug:vZe,debugPadding:pZe,terrainDepth:bZe},SZe=(op=class{constructor(t,r){this.drawFunctions=DZe,this.context=new CHe(t),this.transform=r,this.layerOpacityFbo=null,this._tileTextures={},this._rttObjectRecyclePool=[],this._rttSharedFbo=null,this.terrainFacilitator={depthDirty:!0,matrix:$l(new Float64Array(16)),renderTime:0},this.setup(),this.numSublayers=pF.maxOverzooming+pF.maxUnderzooming+1,this.depthEpsilon=1/2**16,this.crossTileSymbolIndex=new iue}resize(t,r,i){if(this.width=Math.round(t*i),this.height=Math.round(r*i),this.pixelRatio=i,this.context.viewport.set([0,0,this.width,this.height]),this.style)for(let a of this.style._order)this.style._layers[a].resize()}setup(){let t=this.context,r=new Mh;r.emplaceBack(0,0),r.emplaceBack(ct,0),r.emplaceBack(0,ct),r.emplaceBack(ct,ct),this.tileExtentBuffer=t.createVertexBuffer(r,np.members),this.tileExtentSegments=Aa.simpleSegment(0,0,4,2);let i=new Mh;i.emplaceBack(0,0),i.emplaceBack(ct,0),i.emplaceBack(0,ct),i.emplaceBack(ct,ct),this.debugBuffer=t.createVertexBuffer(i,np.members),this.debugSegments=Aa.simpleSegment(0,0,4,5);let a=new vne;a.emplaceBack(0,0,0,0),a.emplaceBack(ct,0,ct,0),a.emplaceBack(0,ct,0,ct),a.emplaceBack(ct,ct,ct,ct),this.rasterBoundsBuffer=t.createVertexBuffer(a,Rje.members),this.rasterBoundsSegments=Aa.simpleSegment(0,0,4,2);let n=new Mh;n.emplaceBack(0,0),n.emplaceBack(ct,0),n.emplaceBack(0,ct),n.emplaceBack(ct,ct),this.rasterBoundsBufferPosOnly=t.createVertexBuffer(n,np.members),this.rasterBoundsSegmentsPosOnly=Aa.simpleSegment(0,0,4,5);let o=new Mh;o.emplaceBack(0,0),o.emplaceBack(1,0),o.emplaceBack(0,1),o.emplaceBack(1,1),this.viewportBuffer=t.createVertexBuffer(o,np.members),this.viewportSegments=Aa.simpleSegment(0,0,4,2);let s=new _ne;s.emplaceBack(0),s.emplaceBack(1),s.emplaceBack(3),s.emplaceBack(2),s.emplaceBack(0),this.tileBorderIndexBuffer=t.createIndexBuffer(s);let l=new qu;l.emplaceBack(1,0,2),l.emplaceBack(1,2,3),this.quadTriangleIndexBuffer=t.createIndexBuffer(l);let u=this.context.gl;this.stencilClearMode=new Si({func:u.ALWAYS,mask:0},0,255,u.ZERO,u.ZERO,u.ZERO),this.tileExtentMesh=new Y2(this.tileExtentBuffer,this.quadTriangleIndexBuffer,this.tileExtentSegments)}clearStencil(){let t=this.context,r=t.gl;this.nextStencilID=1,this.currentStencilSource=void 0;let i=xh();zu(i,0,this.width,this.height,0,0,1),Xn(i,i,[r.drawingBufferWidth,r.drawingBufferHeight,0]);let a={mainMatrix:i,tileMercatorCoords:[0,0,1,1],clippingPlane:[0,0,0,0],projectionTransition:0,fallbackMatrix:i,clipAntimeridian:!1};this.useProgram("clippingMask",null,!0).draw(t,r.TRIANGLES,ri.disabled,this.stencilClearMode,$a.disabled,Ti.disabled,null,null,a,"$clipping",this.viewportBuffer,this.quadTriangleIndexBuffer,this.viewportSegments)}renderTileClippingMasks(t,r){if(this.currentStencilSource===t.source||!t.isTileClipped()||!(r!=null&&r.length))return;this.currentStencilSource=t.source,this.nextStencilID+r.length>256&&this.clearStencil();let i=this.context;i.setColorMode($a.disabled),i.setDepthMode(ri.disabled);let a={};for(let n of r)a[n.key]=this.nextStencilID++;this.style.projection.useSubdivision&&this._renderTileMasks(a,r,!0),this._renderTileMasks(a,r,!1),this._tileClippingMaskIDs=a}_renderTileMasks(t,r,i){let a=this.context,n=a.gl,o=this.style.projection,s=this.renderContext,l=this.useProgram("clippingMask");for(let u of r){let c=t[u.key],h=ts(s,u),f=o.getMeshFromTileID(this.context,u.canonical,i,!0,"stencil"),d=vo(s,u);l.draw(a,n.TRIANGLES,ri.disabled,new Si({func:n.ALWAYS,mask:0},c,255,n.KEEP,n.KEEP,n.REPLACE),$a.disabled,s.isRenderingToTexture?Ti.disabled:Ti.backCCW,null,h,d,"$clipping",f.vertexBuffer,f.indexBuffer,f.segments)}}_renderTilesDepthBuffer(){let t=this.context,r=t.gl,i=this.style.projection,a=this.transform,n=this.useProgram("depth"),o=this.getDepthModeFor3D(),s=Nm(a,{tileSize:a.tileSize});for(let l of s){let u=ts(this.renderContext,l),c=i.getMeshFromTileID(this.context,l.canonical,!0,!0,"raster"),h=vo(this.renderContext,l);n.draw(t,r.TRIANGLES,o,Si.disabled,$a.disabled,Ti.backCCW,null,u,h,"$clipping",c.vertexBuffer,c.indexBuffer,c.segments)}}stencilModeFor3D(){this.currentStencilSource=void 0,this.nextStencilID+1>256&&this.clearStencil();let t=this.nextStencilID++,r=this.context.gl;return new Si({func:r.NOTEQUAL,mask:255},t,255,r.KEEP,r.KEEP,r.REPLACE)}stencilModeForClipping(t){let r=this.context.gl;return new Si({func:r.EQUAL,mask:255},this._tileClippingMaskIDs[t.key],0,r.KEEP,r.KEEP,r.REPLACE)}getStencilConfigForOverlapAndUpdateStencilID(t){let r=this.context.gl,i=t.sort((o,s)=>s.overscaledZ-o.overscaledZ),a=i[i.length-1].overscaledZ,n=i[0].overscaledZ-a+1;if(n>1){this.currentStencilSource=void 0,this.nextStencilID+n>256&&this.clearStencil();let o={};for(let s=0;ss.overscaledZ-o.overscaledZ),a=i[i.length-1].overscaledZ,n=i[0].overscaledZ-a+1;if(this.clearStencil(),n>1){let o={},s={};for(let l=0;l=0;i.currentLayer--){let f=this.style._layers[a[i.currentLayer]];if(f.isHidden(this.transform.zoom))continue;let d=n[f.source],p=o[f.source];this.renderTileClippingMasks(f,p),this.renderLayer(this,d,f,p,i)}i.currentPass="translucent";let u=!1;for(i.currentLayer=0;i.currentLayer0?r.pop():null}acquireRTT(t){let r=this.context.gl,i=this._rttObjectRecyclePool.pop();if(i)return i.size!==t&&(i.texture.update({width:t,height:t,data:null},{premultiply:!1,useMipmap:!0}),i.texture.bind(r.LINEAR,r.CLAMP_TO_EDGE,r.LINEAR_MIPMAP_LINEAR),this.context.extTextureFilterAnisotropic&&r.texParameterf(r.TEXTURE_2D,this.context.extTextureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT,this.context.extTextureFilterAnisotropicMax),i.size=t),i;let a=new dn(this.context,{width:t,height:t,data:null},r.RGBA,{premultiply:!1,useMipmap:!0});return a.bind(r.LINEAR,r.CLAMP_TO_EDGE,r.LINEAR_MIPMAP_LINEAR),this.context.extTextureFilterAnisotropic&&r.texParameterf(r.TEXTURE_2D,this.context.extTextureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT,this.context.extTextureFilterAnisotropicMax),{texture:a,size:t}}bindRTT(t){let r=this.context.gl,i=t.size;if(!this._rttSharedFbo){let a=this.context.createFramebuffer(i,i,!0,!0),n=this.context.createRenderbuffer(r.DEPTH_STENCIL,i,i);a.depthAttachment.set(n),this._rttSharedFbo={fbo:a,depthRenderbuffer:n,size:i}}this._rttSharedFbo.size!==i&&(this.context.bindRenderbuffer.set(this._rttSharedFbo.depthRenderbuffer),r.renderbufferStorage(r.RENDERBUFFER,r.DEPTH_STENCIL,i,i),this.context.bindRenderbuffer.set(null),this._rttSharedFbo.fbo.width=i,this._rttSharedFbo.fbo.height=i,this._rttSharedFbo.size=i),this._rttSharedFbo.fbo.colorAttachment.set(t.texture.texture),this.context.bindFramebuffer.set(this._rttSharedFbo.fbo.framebuffer)}releaseRTT(t){this._rttObjectRecyclePool.push(t)}clearRTTPool(){for(let t of this._rttObjectRecyclePool)t.texture.destroy();this._rttObjectRecyclePool.length=0}destroyRTTResources(){if(this.clearRTTPool(),!this._rttSharedFbo)return;this._rttSharedFbo.fbo.colorAttachment.set(null),this._rttSharedFbo.fbo.depthAttachment.set(null);let t=this.context.gl;t.deleteRenderbuffer(this._rttSharedFbo.depthRenderbuffer),t.deleteFramebuffer(this._rttSharedFbo.fbo.framebuffer),this._rttSharedFbo=null}isPatternMissing(t){if(!t)return!1;if(!t.from||!t.to)return!0;let r=this.patternAtlas.getPattern(t.from.toString()),i=this.patternAtlas.getPattern(t.to.toString());return!r||!i}useProgram(t,r,i=!1,a=[]){var m;this.cache||(this.cache={});let n=!!this.style.map.terrain,o=this.style.projection,s=i?Ic.projectionMercator:o.shaderPreludeCode,l=i?aue:o.shaderDefine,u=`/${i?nue:o.shaderVariantName}`,c=r?r.cacheKey:"",h=this._showOverdrawInspector?"/overdraw":"",f=n?"/terrain":"",d=a?`/${a.join("/")}`:"",p=t+c+u+h+f+d;return(m=this.cache)[p]||(m[p]=new Kje(this.context,Ic[t],r,j$e[t],this._showOverdrawInspector,n,s,l,a)),this.cache[p]}setCustomLayerDefaults(){this.context.setCustomLayerDefaults()}setBaseState(){let t=this.context.gl;this.context.cullFace.set(!1),this.context.viewport.set([0,0,this.width,this.height]),this.context.blendEquation.set(t.FUNC_ADD)}initDebugOverlayCanvas(){if(this.debugOverlayCanvas==null){this.debugOverlayCanvas=document.createElement("canvas"),this.debugOverlayCanvas.width=512,this.debugOverlayCanvas.height=512;let t=this.context.gl;this.debugOverlayTexture=new dn(this.context,this.debugOverlayCanvas,t.RGBA)}}destroy(){var t,r,i;if(this._tileTextures){for(let a in this._tileTextures){let n=this._tileTextures[a];if(n)for(let o of n)o.destroy()}this._tileTextures={}}if(this.destroyRTTResources(),(t=this.layerOpacityFbo)==null||t.destroy(),this.layerOpacityFbo=null,this.tileExtentBuffer&&this.tileExtentBuffer.destroy(),this.debugBuffer&&this.debugBuffer.destroy(),this.rasterBoundsBuffer&&this.rasterBoundsBuffer.destroy(),this.rasterBoundsBufferPosOnly&&this.rasterBoundsBufferPosOnly.destroy(),this.viewportBuffer&&this.viewportBuffer.destroy(),this.tileBorderIndexBuffer&&this.tileBorderIndexBuffer.destroy(),this.quadTriangleIndexBuffer&&this.quadTriangleIndexBuffer.destroy(),this.tileExtentMesh&&((r=this.tileExtentMesh.vertexBuffer)==null||r.destroy()),this.tileExtentMesh&&((i=this.tileExtentMesh.indexBuffer)==null||i.destroy()),this.debugOverlayTexture&&this.debugOverlayTexture.destroy(),Zje(this.context),this.context.terrainUniformBuffer.destroy(),this.context.frameUniformBuffer.destroy(),this.cache){for(let a in this.cache){let n=this.cache[a];n!=null&&n.program&&this.context.gl.deleteProgram(n.program)}this.cache={}}this.context&&this.context.setDefault()}overLimit(){let{drawingBufferWidth:t,drawingBufferHeight:r}=this.context.gl;return this.width!==t||this.height!==r}},op.MAX_TEXTURE_POOL_SIZE_PER_BUCKET=50,op),Uue=class extends Error{constructor(e,t){var r;super("WebGL2 is required to display this map. We are sorry, but it seems that your browser does not support WebGL2, a technology for rendering 3D graphics on the web. Read more on https://wiki.openstreetmap.org/wiki/This_map_requires_WebGL"),this.name="GPUInitializationError",this.requestedAttributes=e,this.statusMessage=(r=t==null?void 0:t.statusMessage)!=null?r:null}};Gue=class{constructor(e){this._getHashParams=()=>new URLSearchParams(window.location.hash.replace("#","")),this._getCurrentHash=()=>{var r;let t=this._getHashParams();return this._hashName?(t.get(this._hashName)||"").split("/"):((r=[...t.keys()][0])!=null?r:"").split("/")},this._onHashChange=()=>{let t=this._getCurrentHash();if(!this._isValidHash(t))return!1;let r=this._map.dragRotate.isEnabled()&&this._map.touchZoomRotate.isEnabled()?+(t[3]||0):this._map.getBearing();return this._map.jumpTo({center:[+t[2],+t[1]],zoom:+t[0],bearing:r,pitch:+(t[4]||0)}),!0},this._updateHashUnthrottled=()=>{let t=window.location.href.replace(/(#.*)?$/,this.getHashString());window.history.replaceState(window.history.state,null,t)},this._removeHash=()=>{let t=this._getHashParams();if(this._hashName)t.delete(this._hashName);else{let n=Array.from(t.keys());n.length>0&&t.delete(n[0])}let r=decodeURIComponent(t.toString()).replace(/=&/g,"&").replace(/=$/g,""),i=r?`#${r}`:"",a=window.location.href.replace(/(#.+)?$/,i);a=a.replace("&&","&"),window.history.replaceState(window.history.state,null,a)},this._updateHash=ZF(this._updateHashUnthrottled,300),this._hashName=e&&encodeURIComponent(e)}addTo(e){return this._map=e,addEventListener("hashchange",this._onHashChange,!1),this._map.on("moveend",this._updateHash),this}remove(){return removeEventListener("hashchange",this._onHashChange,!1),this._map.off("moveend",this._updateHash),clearTimeout(this._updateHash()),this._removeHash(),delete this._map,this}getHashString(e){let t=this._map.getCenter(),r=Math.round(this._map.getZoom()*100)/100,i=10**Math.ceil((r*Math.LN2+Math.log(512/360/.5))/Math.LN10),a=Math.round(t.lng*i)/i,n=Math.round(t.lat*i)/i,o=this._map.getBearing(),s=this._map.getPitch(),l="";if(l+=e?`/${a}/${n}/${r}`:`${r}/${n}/${a}`,(o||s)&&(l+=`/${Math.round(o*10)/10}`),s&&(l+=`/${Math.round(s)}`),this._hashName){let u=this._getHashParams();return u.set(this._hashName,l),`#${decodeURIComponent(u.toString()).replace(/=&/g,"&").replace(/=$/g,"")}`}return`#${l}`}_isValidHash(e){if(e.length<3||e.some(a=>isNaN(+a)))return!1;try{new ar(+e[2],+e[1])}catch(a){return!1}let t=+e[0],r=+(e[3]||0),i=+(e[4]||0);return t>=this._map.getMinZoom()&&t<=this._map.getMaxZoom()&&r>=-180&&r<=180&&i>=this._map.getMinPitch()&&i<=this._map.getMaxPitch()}},W2={linearity:.3,easing:aw(0,0,.3,1)},EZe=tr({deceleration:2500,maxSpeed:1400},W2),kZe=tr({deceleration:20,maxSpeed:1400},W2),CZe=tr({deceleration:1e3,maxSpeed:360},W2),FZe=tr({deceleration:1e3,maxSpeed:90},W2),PZe=tr({deceleration:1e3,maxSpeed:360},W2),IZe=class{constructor(e){this._map=e,this.clear()}clear(){this._inertiaBuffer=[]}record(e){this._drainInertiaBuffer(),this._inertiaBuffer.push({time:Ei(),settings:e})}_drainInertiaBuffer(){let e=this._inertiaBuffer,t=Ei();for(;e.length>0&&t-e[0].time>160;)e.shift()}_getVelocityEntries(){let e=this._inertiaBuffer,t=Ei()-60,r=Math.max(0,e.length-2);for(;r>0&&e[r-1].time>=t;)r--;return e.slice(r)}_onMoveEnd(e){this._drainInertiaBuffer();let t=this._getVelocityEntries();if(t.length<2){this.clear();return}let r={zoom:0,bearing:0,pitch:0,roll:0,pan:new qe(0,0),pinchAround:void 0,around:void 0};for(let{settings:n}of t)n.around&&(r.around=n.around),n.pinchAround&&(r.pinchAround=n.pinchAround);for(let{settings:n}of t.slice(1))r.zoom+=n.zoomDelta||0,r.bearing+=n.bearingDelta||0,r.pitch+=n.pitchDelta||0,r.roll+=n.rollDelta||0,n.panDelta&&r.pan._add(n.panDelta);if(!r.pan.mag()&&!r.zoom&&!r.bearing&&!r.pitch&&!r.roll){this.clear();return}let i=Ei()-t[0].time,a={};if(r.pan.mag()){let n=V2(r.pan.mag(),i,tr({},EZe,e||{})),o=r.pan.mult(n.amount/r.pan.mag()),s=this._map._camera.cameraHelper.handlePanInertia(o,this._map._camera.transform);a.center=s.easingCenter,a.offset=s.easingOffset,N2(a,n)}if(r.zoom){let n=V2(r.zoom,i,kZe);a.zoom=As(this._map.getZoom()+n.amount,this._map.getZoomSnap(),n.amount),N2(a,n)}if(r.bearing){let n=V2(r.bearing,i,CZe);a.bearing=this._map.getBearing()+Tr(n.amount,-179,179),N2(a,n)}if(r.pitch){let n=V2(r.pitch,i,FZe);a.pitch=this._map.getPitch()+n.amount,N2(a,n)}if(r.roll){let n=V2(r.roll,i,PZe);a.roll=this._map.getRoll()+Tr(n.amount,-179,179),N2(a,n)}if(a.zoom||a.bearing){let n=r.pinchAround===void 0?r.around:r.pinchAround;a.around=n?this._map.unproject(n):this._map.getCenter()}return this.clear(),tr(a,{noMoveStart:!0})}};LZe=class{constructor(e,t){this._map=e,this._clickTolerance=t.clickTolerance}reset(){delete this._mousedownPos}wheel(e){return this._firePreventable(new Mle(this._map,e))}mousedown(e,t){return this._mousedownPos=t,this._firePreventable(new Ds(e.type,this._map,e))}mouseup(e){this._map.fire(new Ds(e.type,this._map,e))}click(e,t){this._mousedownPos&&this._mousedownPos.dist(t)>=this._clickTolerance||this._map.fire(new Ds(e.type,this._map,e))}dblclick(e){return this._firePreventable(new Ds(e.type,this._map,e))}mouseover(e){this._map.fire(new Ds(e.type,this._map,e))}mouseout(e){this._map.fire(new Ds(e.type,this._map,e))}touchstart(e){return this._firePreventable(new j2(e.type,this._map,e))}touchmove(e){this._map.fire(new j2(e.type,this._map,e))}touchend(e){this._map.fire(new j2(e.type,this._map,e))}touchcancel(e){this._map.fire(new j2(e.type,this._map,e))}_firePreventable(e){if(this._map.fire(e),e.defaultPrevented)return{}}isEnabled(){return!0}isActive(){return!1}enable(){}disable(){}},zZe=class{constructor(e,t){this._map=e,this._clickTolerance=t.clickTolerance}reset(){this._delayContextMenu=!1,this._ignoreContextMenu=!0,delete this._contextMenuEvent,this._clearLongPress(),this._touchActive=!1}mousemove(e){this._map.fire(new Ds(e.type,this._map,e))}mousedown(){this._delayContextMenu=!0,this._ignoreContextMenu=!1}mouseup(){this._delayContextMenu=!1,this._contextMenuEvent&&(this._map.fire(new Ds("contextmenu",this._map,this._contextMenuEvent)),delete this._contextMenuEvent)}touchstart(e,t,r){if(this._clearLongPress(),this._touchActive=r.length>0,r.length!==1)return;this._longPressStart=t[0];let i=r[0];this._longPressTimer=setTimeout(()=>{this._longPressTimer=void 0;let a=new MouseEvent("contextmenu",{clientX:i.clientX,clientY:i.clientY,button:2,bubbles:!0,cancelable:!0});this._map.fire(new Ds("contextmenu",this._map,a))},500)}touchmove(e,t,r){this._longPressTimer&&(r.length!==1||!this._longPressStart||t[0].dist(this._longPressStart)>this._clickTolerance)&&this._clearLongPress()}touchend(){this._touchActive=!1,this._clearLongPress()}touchcancel(){this._touchActive=!1,this._clearLongPress()}_clearLongPress(){this._longPressTimer&&(this._longPressTimer=(clearTimeout(this._longPressTimer),void 0)),this._longPressStart=void 0}contextmenu(e){if(this._touchActive){e.preventDefault();return}this._delayContextMenu?this._contextMenuEvent=e:this._ignoreContextMenu||this._map.fire(new Ds(e.type,this._map,e)),this._map.listens("contextmenu")&&e.preventDefault()}isEnabled(){return!0}isActive(){return!1}enable(){}disable(){}},jue=class{constructor(e,t,r){this._map=e,this._tr=r,this._el=e.getCanvasContainer(),this._container=e.getContainer(),this._clickTolerance=t.clickTolerance||1,t.boxZoom&&typeof t.boxZoom=="object"&&(this._boxZoomEnd=t.boxZoom.boxZoomEnd)}isEnabled(){return!!this._enabled}isActive(){return!!this._active}enable(){this.isEnabled()||(this._enabled=!0)}disable(){this.isEnabled()&&(this._enabled=!1)}mousedown(e,t){this.isEnabled()&&e.shiftKey&&e.button===0&&(wr.disableDrag(),this._startPos=this._lastPos=t,this._active=!0)}mousemoveWindow(e,t){if(!this._active)return;let r=t;if(this._lastPos.equals(r)||!this._box&&r.dist(this._startPos)a.fitScreenCoordinates(r,i,this._tr.bearing,{linear:!0})}}}keydown(e){this._active&&e.keyCode===27&&(this.reset(),this._fireEvent("boxzoomcancel",e))}reset(){this._active=!1,this._container.classList.remove("maplibregl-crosshair"),this._box&&(this._box=(this._box.remove(),null)),wr.enableDrag(),delete this._startPos,delete this._lastPos}_fireEvent(e,t){return this._map.fire(new uF(e,{originalEvent:t}))}};BZe=class{constructor(e){this.reset(),this.numTouches=e.numTouches}reset(){delete this.centroid,delete this.startTime,delete this.touches,this.aborted=!1}touchstart(e,t,r){(this.centroid||r.length>this.numTouches)&&(this.aborted=!0),!this.aborted&&(this.startTime===void 0&&(this.startTime=e.timeStamp),r.length===this.numTouches&&(this.centroid=RZe(t),this.touches=wF(r,t)))}touchmove(e,t,r){if(this.aborted||!this.centroid)return;let i=wF(r,t);for(let a in this.touches){let n=this.touches[a],o=i[a];(!o||o.dist(n)>30)&&(this.aborted=!0)}}touchend(e,t,r){if((!this.centroid||e.timeStamp-this.startTime>500)&&(this.aborted=!0),r.length===0){let i=!this.aborted&&this.centroid;if(this.reset(),i)return i}}},AF=class{constructor(e){this.singleTap=new BZe(e),this.numTaps=e.numTaps,this.reset()}reset(){this.lastTime=1/0,delete this.lastTap,this.count=0,this.singleTap.reset()}touchstart(e,t,r){this.singleTap.touchstart(e,t,r)}touchmove(e,t,r){this.singleTap.touchmove(e,t,r)}touchend(e,t,r){let i=this.singleTap.touchend(e,t,r);if(i){let a=e.timeStamp-this.lastTime<500,n=!this.lastTap||this.lastTap.dist(i)<30;if((!a||!n)&&this.reset(),this.count++,this.lastTime=e.timeStamp,this.lastTap=i,this.count===this.numTaps)return this.reset(),i}}},qZe=class{constructor(e,t){this._tr=t,this._zoomIn=new AF({numTouches:1,numTaps:2}),this._zoomOut=new AF({numTouches:2,numTaps:1}),this.reset()}reset(){this._active=!1,this._zoomIn.reset(),this._zoomOut.reset()}touchstart(e,t,r){this._zoomIn.touchstart(e,t,r),this._zoomOut.touchstart(e,t,r)}touchmove(e,t,r){this._zoomIn.touchmove(e,t,r),this._zoomOut.touchmove(e,t,r)}touchend(e,t,r){let i=this._zoomIn.touchend(e,t,r),a=this._zoomOut.touchend(e,t,r),n=this._tr;if(i)return this._active=!0,e.preventDefault(),setTimeout(()=>this.reset(),0),{cameraAnimation:o=>o.easeTo({duration:300,zoom:As(n.zoom+1,o.getZoomSnap()),around:n.transform.isPointOnMapSurface(i)?n.unproject(i):void 0},{originalEvent:e})};if(a)return this._active=!0,e.preventDefault(),setTimeout(()=>this.reset(),0),{cameraAnimation:o=>o.easeTo({duration:300,zoom:As(n.zoom-1,o.getZoomSnap()),around:n.transform.isPointOnMapSurface(a)?n.unproject(a):void 0},{originalEvent:e})}}touchcancel(){this.reset()}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}},X2=class{constructor(e){this._enabled=!!e.enable,this._moveStateManager=e.moveStateManager,this._clickTolerance=e.clickTolerance||1,this._moveFunction=e.move,this._activateOnStart=!!e.activateOnStart,e.assignEvents(this),this.reset()}reset(e){this._active=!1,this._moved=!1,delete this._lastPoint,this._moveStateManager.endMove(e)}_move(...e){let t=this._moveFunction(...e);if(t.bearingDelta||t.pitchDelta||t.rollDelta||t.around||t.panDelta)return this._active=!0,t}dragStart(e,t){this.isEnabled()&&!this._lastPoint&&this._moveStateManager.isValidStartEvent(e)&&(this._moveStateManager.startMove(e),this._lastPoint=Array.isArray(t)?t[0]:t,this._activateOnStart&&this._lastPoint&&(this._active=!0))}dragMove(e,t){if(!this.isEnabled())return;let r=this._lastPoint;if(!r)return;if(e.preventDefault(),!this._moveStateManager.isValidMoveEvent(e)){this.reset(e);return}let i=Array.isArray(t)?t[0]:t;if(!(!this._moved&&i.dist(r)!0}),t=new VZe){this.mouseMoveStateManager=e,this.oneFingerTouchMoveStateManager=t}_executeRelevantHandler(e,t,r){if(e instanceof MouseEvent)return t(e);if(typeof TouchEvent<"u"&&e instanceof TouchEvent)return r(e)}startMove(e){this._executeRelevantHandler(e,t=>{this.mouseMoveStateManager.startMove(t)},t=>{this.oneFingerTouchMoveStateManager.startMove(t)})}endMove(e){this._executeRelevantHandler(e,t=>{this.mouseMoveStateManager.endMove(t)},t=>{this.oneFingerTouchMoveStateManager.endMove(t)})}isValidStartEvent(e){return!!this._executeRelevantHandler(e,t=>this.mouseMoveStateManager.isValidStartEvent(t),t=>this.oneFingerTouchMoveStateManager.isValidStartEvent(t))}isValidMoveEvent(e){return!!this._executeRelevantHandler(e,t=>this.mouseMoveStateManager.isValidMoveEvent(t),t=>this.oneFingerTouchMoveStateManager.isValidMoveEvent(t))}isValidEndEvent(e){return!!this._executeRelevantHandler(e,t=>this.mouseMoveStateManager.isValidEndEvent(t),t=>this.oneFingerTouchMoveStateManager.isValidEndEvent(t))}},x6=e=>{e.mousedown=e.dragStart,e.mousemoveWindow=e.dragMove,e.mouseup=e.dragEnd,e.contextmenu=t=>{t.preventDefault()}};ZZe=class{constructor(e,t){this._clickTolerance=e.clickTolerance||1,this._map=t,this.reset()}reset(){this._active=!1,this._touches={},this._sum=new qe(0,0)}_shouldBePrevented(e){return e<(this._map.cooperativeGestures.isEnabled()?2:1)}touchstart(e,t,r){return this._calculateTransform(e,t,r)}touchmove(e,t,r){if(this._active){if(this._shouldBePrevented(r.length)){this._map.cooperativeGestures.notifyGestureBlocked("touch_pan",e);return}return e.preventDefault(),this._calculateTransform(e,t,r)}}touchend(e,t,r){this._calculateTransform(e,t,r),this._active&&this._shouldBePrevented(r.length)&&this.reset()}touchcancel(){this.reset()}_calculateTransform(e,t,r){r.length>0&&(this._active=!0);let i=wF(r,t),a=new qe(0,0),n=new qe(0,0),o=0;for(let l in i){let u=i[l],c=this._touches[l];c&&(a._add(u),n._add(u.sub(c)),o++,i[l]=u)}if(this._touches=i,this._shouldBePrevented(o)||!n.mag())return;let s=n.div(o);if(this._sum._add(s),!(this._sum.mag()=2,a=t.mag()>=2;if(!i&&!a)return;if(!i||!a)return this._firstMove===void 0&&(this._firstMove=r),r-this._firstMove<100&&void 0;let n=e.y>0==t.y>0;return nF(e)&&nF(t)&&n}},YZe={panStep:100,bearingStep:15,pitchStep:10},Yue=class{constructor(e,t){this._tr=t;let r=YZe;this._panStep=r.panStep,this._bearingStep=r.bearingStep,this._pitchStep=r.pitchStep,this._rotationDisabled=!1}reset(){this._active=!1}keydown(e){if(e.altKey||e.ctrlKey||e.metaKey)return;let t=0,r=0,i=0,a=0,n=0;switch(e.keyCode){case 61:case 107:case 171:case 187:t=1;break;case 189:case 109:case 173:t=-1;break;case 37:e.shiftKey?r=-1:(e.preventDefault(),a=-1);break;case 39:e.shiftKey?r=1:(e.preventDefault(),a=1);break;case 38:e.shiftKey?i=1:(e.preventDefault(),n=-1);break;case 40:e.shiftKey?i=-1:(e.preventDefault(),n=1);break;default:return}return this._rotationDisabled&&(r=0,i=0),{cameraAnimation:o=>{let s=this._tr;o.easeTo({duration:300,easeId:"keyboardHandler",easing:WZe,zoom:t?As(s.zoom+t*(e.shiftKey?2:1),o.getZoomSnap()):s.zoom,bearing:s.bearing+r*this._bearingStep,pitch:s.pitch+i*this._pitchStep,offset:[-a*this._panStep,-n*this._panStep],center:s.center},{originalEvent:e})}}}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}disableRotation(){this._rotationDisabled=!0}enableRotation(){this._rotationDisabled=!1}};yle=4.000244140625,Wue=class{constructor(e,t,r){this._onTimeout=i=>{this._type="wheel",this._delta-=this._lastValue,this._active||this._start(i)},this._map=e,this._tr=r,this._triggerRenderFrame=t,this._delta=0,this._defaultZoomRate=.01,this._wheelZoomRate=.0022222222222222222}setZoomRate(e){this._defaultZoomRate=e}setWheelZoomRate(e){this._wheelZoomRate=e}isEnabled(){return!!this._enabled}isActive(){return!!this._active||this._finishTimeout!==void 0}isZooming(){return!!this._zooming}enable(e){this.isEnabled()||(this._enabled=!0,this._aroundCenter=!!e&&e.around==="center")}disable(){this.isEnabled()&&(this._enabled=!1)}_shouldBePrevented(e){return this._map.cooperativeGestures.isEnabled()?!(e.ctrlKey||this._map.cooperativeGestures.isBypassed(e)):!1}wheel(e){if(!this.isEnabled())return;if(this._shouldBePrevented(e)){this._map.cooperativeGestures.notifyGestureBlocked("wheel_zoom",e);return}let t=e.deltaMode===WheelEvent.DOM_DELTA_LINE?e.deltaY*40:e.deltaY,r=Ei(),i=r-(this._lastWheelEventTime||0);this._lastWheelEventTime=r,t!==0&&t%yle==0?this._type="wheel":t!==0&&Math.abs(t)<4?this._type="trackpad":i>400?(this._type=null,this._lastValue=t,this._timeout=setTimeout(this._onTimeout,40,e)):this._type||(this._type=Math.abs(i*t)<200?"trackpad":"wheel",this._timeout&&(clearTimeout(this._timeout),this._timeout=null,t+=this._lastValue)),e.shiftKey&&t&&(t/=4),this._type&&(this._lastWheelEvent=e,this._delta-=t,this._active||this._start(e)),e.preventDefault()}_start(e){if(!this._delta)return;this._needsRerender=!1,this._active=!0,this.isZooming()||(this._zooming=!0),this._finishTimeout&&(clearTimeout(this._finishTimeout),delete this._finishTimeout);let t=wr.mousePos(this._map.getCanvas(),e),r=this._tr;this._aroundPoint=this._aroundCenter?r.transform.locationToScreenPoint(ar.convert(r.center)):t,this._needsRerender||(this._needsRerender=!0,this._triggerRenderFrame())}renderFrame(){if(!this._needsRerender||(this._needsRerender=!1,!this.isActive()))return;let e=this._tr.transform;if(typeof this._lastExpectedZoom=="number"){let o=e.zoom-this._lastExpectedZoom;typeof this._startZoom=="number"&&(this._startZoom+=o),typeof this._targetZoom=="number"&&(this._targetZoom+=o)}if(this._delta!==0){let o=this._type==="wheel"&&Math.abs(this._delta)>yle?this._wheelZoomRate:this._defaultZoomRate,s=2/(1+Math.exp(-Math.abs(this._delta*o)));this._delta<0&&s!==0&&(s=1/s);let l=typeof this._targetZoom=="number"?qo(this._targetZoom):e.scale,u=e.applyConstrain(e.getCameraLngLat(),Jn(l*s)).zoom,c=this._map.getZoomSnap();if(this._type==="wheel"&&c>0){let h=As(e.zoom,c);this._targetZoom=As(u,c,u-h)}else this._targetZoom=u;this._type==="wheel"&&(this._startZoom=e.zoom,this._easing=this._smoothOutEasing(200)),this._delta=0}let t=typeof this._targetZoom=="number"?this._targetZoom:e.zoom,r=this._startZoom,i=this._easing,a=!1,n;if(this._type==="wheel"&&r&&i){let o=Ei()-this._lastWheelEventTime,s=Math.min((o+5)/200,1),l=i(s);n=wa.number(r,t,l),s<1?this._needsRerender=!0:a=!0}else n=t,a=!0;return this._active=!0,a&&(this._active=!1,this._finishTimeout=setTimeout(()=>{this._zooming=!1,this._triggerRenderFrame(),delete this._targetZoom,delete this._lastExpectedZoom,delete this._finishTimeout},200)),this._lastExpectedZoom=n,{noInertia:!0,needsRenderFrame:!a,zoomDelta:n-e.zoom,around:this._aroundPoint,originalEvent:this._lastWheelEvent}}_smoothOutEasing(e){let t=nw;if(this._prevEase){let r=this._prevEase,i=(Ei()-r.start)/r.duration,a=r.easing(i+.01)-r.easing(i),n=.27/Math.sqrt(a*a+1e-4)*.01,o=Math.sqrt(.0729-n*n);t=aw(n,o,.25,1)}return this._prevEase={start:Ei(),duration:e,easing:t},t}reset(){this._active=!1,this._zooming=!1,delete this._targetZoom,delete this._lastExpectedZoom,this._finishTimeout&&(clearTimeout(this._finishTimeout),delete this._finishTimeout)}},Xue=class{constructor(e,t){this._clickZoom=e,this._tapZoom=t}enable(){this._clickZoom.enable(),this._tapZoom.enable()}disable(){this._clickZoom.disable(),this._tapZoom.disable()}isEnabled(){return this._clickZoom.isEnabled()&&this._tapZoom.isEnabled()}isActive(){return this._clickZoom.isActive()||this._tapZoom.isActive()}},XZe=class{constructor(e,t){this._tr=t,this.reset()}reset(){this._active=!1}dblclick(e,t){return e.preventDefault(),{cameraAnimation:r=>{r.easeTo({duration:300,zoom:As(this._tr.zoom+(e.shiftKey?-1:1),r.getZoomSnap()),around:this._tr.transform.isPointOnMapSurface(t)?this._tr.unproject(t):void 0},{originalEvent:e})}}}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}},KZe=class{constructor(){this._tap=new AF({numTouches:1,numTaps:1}),this._zoomRate=1,this.reset()}setZoomRate(e){this._zoomRate=e!=null?e:1}reset(){this._active=!1,delete this._swipePoint,delete this._swipeTouch,delete this._tapTime,delete this._tapPoint,this._tap.reset()}touchstart(e,t,r){if(!this._swipePoint)if(!this._tapTime)this._tap.touchstart(e,t,r);else{let i=t[0],a=e.timeStamp-this._tapTime<500,n=this._tapPoint.dist(i)<30;!a||!n?this.reset():r.length>0&&(this._swipePoint=i,this._swipeTouch=r[0].identifier)}}touchmove(e,t,r){if(!this._tapTime)this._tap.touchmove(e,t,r);else if(this._swipePoint){if(r[0].identifier!==this._swipeTouch)return;let i=t[0],a=i.y-this._swipePoint.y;return this._swipePoint=i,e.preventDefault(),this._active=!0,{zoomDelta:a/128*this._zoomRate}}}touchend(e,t,r){if(this._tapTime)this._swipePoint&&r.length===0&&this.reset();else{let i=this._tap.touchend(e,t,r);i&&(this._tapTime=e.timeStamp,this._tapPoint=i)}}touchcancel(){this.reset()}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}},Kue=class{constructor(e,t,r){this._el=e,this._mousePan=t,this._touchPan=r}enable(e){this._inertiaOptions=e||{},this._mousePan.enable(),this._touchPan.enable(),this._el.classList.add("maplibregl-touch-drag-pan")}disable(){this._mousePan.disable(),this._touchPan.disable(),this._el.classList.remove("maplibregl-touch-drag-pan")}isEnabled(){return this._mousePan.isEnabled()&&this._touchPan.isEnabled()}isActive(){return this._mousePan.isActive()||this._touchPan.isActive()}},Jue=class{constructor(e,t,r,i){this._pitchWithRotate=e.pitchWithRotate,this._rollEnabled=e.rollEnabled,this._mouseRotate=t,this._mousePitch=r,this._mouseRoll=i}enable(){this._mouseRotate.enable(),this._pitchWithRotate&&this._mousePitch.enable(),this._rollEnabled&&this._mouseRoll.enable()}disable(){this._mouseRotate.disable(),this._mousePitch.disable(),this._mouseRoll.disable()}isEnabled(){return this._mouseRotate.isEnabled()&&(!this._pitchWithRotate||this._mousePitch.isEnabled())&&(!this._rollEnabled||this._mouseRoll.isEnabled())}isActive(){return this._mouseRotate.isActive()||this._mousePitch.isActive()||this._mouseRoll.isActive()}},Que=class{constructor(e,t,r,i){this._el=e,this._touchZoom=t,this._touchRotate=r,this._tapDragZoom=i,this._rotationDisabled=!1,this._enabled=!0}enable(e){this._touchZoom.enable(e),this._rotationDisabled||this._touchRotate.enable(e),this._tapDragZoom.enable(),this._el.classList.add("maplibregl-touch-zoom-rotate")}disable(){this._touchZoom.disable(),this._touchRotate.disable(),this._tapDragZoom.disable(),this._el.classList.remove("maplibregl-touch-zoom-rotate")}isEnabled(){return this._touchZoom.isEnabled()&&(this._rotationDisabled||this._touchRotate.isEnabled())&&this._tapDragZoom.isEnabled()}isActive(){return this._touchZoom.isActive()||this._touchRotate.isActive()||this._tapDragZoom.isActive()}setZoomRate(e){this._touchZoom.setZoomRate(e),this._tapDragZoom.setZoomRate(e)}setZoomThreshold(e){this._touchZoom.setZoomThreshold(e)}disableRotation(){this._rotationDisabled=!0,this._touchRotate.disable()}enableRotation(){this._rotationDisabled=!1,this._touchZoom.isEnabled()&&this._touchRotate.enable()}},ece=class{constructor(e,t){this._bypassKey=navigator.userAgent.includes("Mac")?"metaKey":"ctrlKey",this._map=e,this._options=t,this._enabled=!1}isActive(){return!1}reset(){}_setupUI(){if(this._container)return;let e=this._map.getCanvasContainer();e.classList.add("maplibregl-cooperative-gestures"),this._container=wr.create("div","maplibregl-cooperative-gesture-screen",e);let t=this._map._getUIString("CooperativeGesturesHandler.WindowsHelpText");this._bypassKey==="metaKey"&&(t=this._map._getUIString("CooperativeGesturesHandler.MacHelpText"));let r=this._map._getUIString("CooperativeGesturesHandler.MobileHelpText"),i=document.createElement("div");i.className="maplibregl-desktop-message",i.textContent=t,this._container.appendChild(i);let a=document.createElement("div");a.className="maplibregl-mobile-message",a.textContent=r,this._container.appendChild(a),this._container.setAttribute("aria-hidden","true")}_destroyUI(){this._container&&(this._container.remove(),this._map.getCanvasContainer().classList.remove("maplibregl-cooperative-gestures")),delete this._container}enable(){this._setupUI(),this._enabled=!0}disable(){this._enabled=!1,this._destroyUI()}isEnabled(){return this._enabled}isBypassed(e){return e[this._bypassKey]}notifyGestureBlocked(e,t){this._enabled&&(this._map.fire(new Rn("cooperativegestureprevented",{gestureType:e,originalEvent:t})),this._container.classList.add("maplibregl-show"),setTimeout(()=>{this._container.classList.remove("maplibregl-show")},100))}},JZe=class{constructor(e){this._camera=e}get transform(){return this._camera._requestedCameraState||this._camera.transform}get center(){return{lng:this.transform.center.lng,lat:this.transform.center.lat}}get zoom(){return this.transform.zoom}get pitch(){return this.transform.pitch}get bearing(){return this.transform.bearing}unproject(e){return this.transform.screenPointToLocation(qe.convert(e),this._camera.terrain)}},t6=e=>e.zoom||e.drag||e.roll||e.pitch||e.rotate,QZe=class extends Ms{};eYe=class{get _ownerDocument(){var e;return((e=this._el)==null?void 0:e.ownerDocument)||document}get _ownerWindow(){var e,t;return((t=(e=this._el)==null?void 0:e.ownerDocument)==null?void 0:t.defaultView)||window}constructor(e,t,r){this._terrainGesture={inFlight:!1,anchorElevation:null},this.handleWindowEvent=a=>{this.handleEvent(a,`${a.type}Window`)},this.handleEvent=(a,n)=>{if(a.type==="blur"){this.stop(!0);return}this._updatingCamera=!0;let o=a.type==="renderFrame"?void 0:a,s={needsRenderFrame:!1},l={},u={};for(let{handlerName:f,handler:d,allowed:p}of this._handlers){if(!d.isEnabled())continue;let m;if(this._blockedByActive(u,p,f))d.reset();else if(d[n||a.type]){if(kie(a,n||a.type)){let g=wr.mousePos(this._map.getCanvas(),a);m=d[n||a.type](a,g)}else if(Eie(a,n||a.type)){let g=a.touches,y=this._getMapTouches(g),x=wr.touchPos(this._map.getCanvas(),y);m=d[n||a.type](a,x,y)}else Cie(n||a.type)||(m=d[n||a.type](a));this.mergeHandlerResult(s,l,m,f,o),m!=null&&m.needsRenderFrame&&this._triggerRenderFrame()}(m||d.isActive())&&(u[f]=d)}let c={};for(let f in this._previousActiveHandlers)u[f]||(c[f]=o);this._previousActiveHandlers=u,(Object.keys(c).length||oF(s))&&(this._changes.push([s,l,c]),this._triggerRenderFrame()),(Object.keys(u).length||oF(s))&&this._camera.stop(!0),this._updatingCamera=!1;let{cameraAnimation:h}=s;h&&(this._inertia.clear(),this._fireEvents({},{},!0),this._changes=[],h(this._map))},this._map=e,this._camera=t,this._transformProvider=new JZe(this._camera),this._el=this._map.getCanvasContainer(),this._handlers=[],this._handlersById={},this._changes=[],this._inertia=new IZe(e),this._bearingSnap=r.bearingSnap,this._previousActiveHandlers={},this._eventsInProgress={},this._addDefaultHandlers(r);let i=this._el;this._listeners=[[i,"touchstart",{passive:!0}],[i,"touchmove",{passive:!1}],[i,"touchend",void 0],[i,"touchcancel",void 0],[i,"mousedown",void 0],[i,"mousemove",void 0],[i,"mouseup",void 0],[this._ownerDocument,"mousemove",{capture:!0}],[this._ownerDocument,"mouseup",void 0],[i,"mouseover",void 0],[i,"mouseout",void 0],[i,"dblclick",void 0],[i,"click",void 0],[i,"keydown",{capture:!1}],[i,"keyup",void 0],[i,"wheel",{passive:!1}],[i,"contextmenu",void 0],[this._ownerWindow,"blur",void 0]];for(let[a,n,o]of this._listeners)a.addEventListener(n,a===this._ownerDocument?this.handleWindowEvent:this.handleEvent,o)}destroy(){for(let[e,t,r]of this._listeners)e.removeEventListener(t,e===this._ownerDocument?this.handleWindowEvent:this.handleEvent,r)}_addDefaultHandlers(e){let t=this._map,r=t.getCanvasContainer();this._add("mapEvent",new LZe(t,e));let i=t.boxZoom=new jue(t,e,this._transformProvider);this._add("boxZoom",i),e.interactive&&e.boxZoom&&i.enable();let a=t.cooperativeGestures=new ece(t,e.cooperativeGestures);this._add("cooperativeGestures",a),e.cooperativeGestures&&a.enable();let n=new qZe(t,this._transformProvider),o=new XZe(t,this._transformProvider);t.doubleClickZoom=new Xue(o,n),this._add("tapZoom",n),this._add("clickZoom",o),e.interactive&&e.doubleClickZoom&&t.doubleClickZoom.enable();let s=new KZe;this._add("tapDragZoom",s);let l=t.touchPitch=new Zue(t);this._add("touchPitch",l),e.interactive&&e.touchPitch&&t.touchPitch.enable(e.touchPitch);let u=()=>this._camera.transform.centerPoint,c=jZe(e,u),h=$Ze(e),f=HZe(e,u);t.dragRotate=new Jue(e,c,h,f),this._add("mouseRotate",c,["mousePitch"]),this._add("mousePitch",h,["mouseRotate","mouseRoll"]),this._add("mouseRoll",f,["mousePitch"]),e.interactive&&e.dragRotate&&t.dragRotate.enable();let d=GZe(e),p=new ZZe(e,t);t.dragPan=new Kue(r,d,p),this._add("mousePan",d),this._add("touchPan",p,["touchZoom","touchRotate"]),e.interactive&&e.dragPan&&t.dragPan.enable(e.dragPan);let m=new Hue,g=new $ue;t.touchZoomRotate=new Que(r,g,m,s),this._add("touchRotate",m,["touchPan","touchZoom"]),this._add("touchZoom",g,["touchPan","touchRotate"]),e.interactive&&e.touchZoomRotate&&t.touchZoomRotate.enable(e.touchZoomRotate),this._add("blockableMapEvent",new zZe(t,e),["touchPan"]);let y=t.scrollZoom=new Wue(t,()=>this._triggerRenderFrame(),this._transformProvider);this._add("scrollZoom",y,["mousePan"]),e.interactive&&e.scrollZoom&&t.scrollZoom.enable(e.scrollZoom);let x=t.keyboard=new Yue(t,this._transformProvider);this._add("keyboard",x),e.interactive&&e.keyboard&&t.keyboard.enable()}_add(e,t,r){this._handlers.push({handlerName:e,handler:t,allowed:r}),this._handlersById[e]=t}stop(e){if(!this._updatingCamera){for(let{handler:t}of this._handlers)t.reset();this._inertia.clear(),this._fireEvents({},{},e),this._changes=[]}}isActive(){for(let{handler:e}of this._handlers)if(e.isActive())return!0;return!1}isZooming(){return!!this._eventsInProgress.zoom||this._map.scrollZoom.isZooming()}isRotating(){return!!this._eventsInProgress.rotate}isMoving(){return!!t6(this._eventsInProgress)||this.isZooming()}_blockedByActive(e,t,r){for(let i in e)if(i!==r&&!(t!=null&&t.includes(i)))return!0;return!1}_getMapTouches(e){let t=[];for(let r of e){let i=r.target;this._el.contains(i)&&t.push(r)}return t}mergeHandlerResult(e,t,r,i,a){if(!r)return;tr(e,r);let n={handlerName:i,originalEvent:r.originalEvent||a};r.zoomDelta!==void 0&&(t.zoom=n),r.panDelta!==void 0&&(t.drag=n),r.rollDelta!==void 0&&(t.roll=n),r.pitchDelta!==void 0&&(t.pitch=n),r.bearingDelta!==void 0&&(t.rotate=n)}_applyChanges(){let e={},t={},r={};for(let[i,a,n]of this._changes)i.panDelta&&(e.panDelta=(e.panDelta||new qe(0,0))._add(i.panDelta)),i.zoomDelta&&(e.zoomDelta=(e.zoomDelta||0)+i.zoomDelta),i.bearingDelta&&(e.bearingDelta=(e.bearingDelta||0)+i.bearingDelta),i.pitchDelta&&(e.pitchDelta=(e.pitchDelta||0)+i.pitchDelta),i.rollDelta&&(e.rollDelta=(e.rollDelta||0)+i.rollDelta),i.around!==void 0&&(e.around=i.around),i.pinchAround!==void 0&&(e.pinchAround=i.pinchAround),i.noInertia&&(e.noInertia=i.noInertia),tr(t,a),tr(r,n);this._updateMapTransform(e,t,r),this._changes=[]}_updateMapTransform(e,t,r){let i=this._map.terrain;if(!oF(e)){this._fireEvents(t,r,!0);return}let a=this._camera.getTransformForUpdate();this._camera.stop(!0);let{panDelta:n,zoomDelta:o,bearingDelta:s,pitchDelta:l,rollDelta:u}=e,{around:c,aroundOnSurface:h}=this._resolveAround(e,i,a),f=i?this._terrainGestureElevation(i,c,h,a,t):void 0,d={panDelta:n,zoomDelta:o,rollDelta:u,pitchDelta:l,bearingDelta:s,around:c,aroundElevation:f};this._camera.cameraHelper.useGlobeControls&&!a.isPointOnMapSurface(c)&&(c=a.centerPoint);let p=this._computePreZoomAroundLoc(a,c,n,f);this._handleMapControls({terrain:i,tr:a,deltasForHelper:d,preZoomAroundLoc:p,combinedEventsInProgress:t,panDelta:n}),this._camera.applyUpdatedTransform(a),this._map._update(),e.noInertia||this._inertia.record(e),this._fireEvents(t,r,!0)}_resolveAround(e,t,r){let i=e.pinchAround===void 0?e.around:e.pinchAround;return i||(i=this._camera.transform.centerPoint),t&&!r.isPointOnMapSurface(i)?{around:r.centerPoint,aroundOnSurface:!1}:{around:i,aroundOnSurface:!0}}_terrainGestureElevation(e,t,r,i,a){if(!r)return;if(this._terrainGesture.anchorElevation===null&&(a.drag||a.zoom)){let o=i.screenTerrainPointToMercatorCoordinate(t,e);this._terrainGesture.anchorElevation=o?o.z:void 0}let n=this._terrainGesture.anchorElevation;if(n!=null&&!(t.distSqr(i.centerPoint)<.01)&&!(n-i.elevation>=.9*(i.getCameraAltitude()-i.elevation)))return n}_computePreZoomAroundLoc(e,t,r,i){if(t.distSqr(e.centerPoint)<.01)return e.center;let a=r?t.sub(r):t;return i===void 0?e.screenPointToLocation(a):e.screenPointToLocationAtElevation(a,i)}_handleMapControls({terrain:e,tr:t,deltasForHelper:r,preZoomAroundLoc:i,combinedEventsInProgress:a,panDelta:n}){let o=this._camera.cameraHelper;if(o.handleMapControlsRollPitchBearingZoom(r,t),!e&&!o.useGlobeControls&&!t.isPointOnMapSurface(r.around)){n&&t.setCenter(t.screenPointToLocation(t.centerPoint.sub(n)));return}if(!e){o.handleMapControlsPan(r,t,i);return}if(!this._terrainGesture.inFlight){this._terrainGesture.inFlight=!0,this._camera.elevationFreeze=!0,o.handleMapControlsPan(r,t,i);return}if(!o.useGlobeControls&&r.aroundElevation===void 0&&a.drag&&n){t.setCenter(t.screenPointToLocation(t.centerPoint.sub(n)));return}o.handleMapControlsPan(r,t,i)}_fireEvents(e,t,r){let i=t6(this._eventsInProgress),a=t6(e),n={};for(let c in e){let{originalEvent:h}=e[c];this._eventsInProgress[c]||(n[`${c}start`]=h),this._eventsInProgress[c]=e[c]}!i&&a&&this._fireEvent("movestart",a.originalEvent);for(let c in n)this._fireEvent(c,n[c]);a&&this._fireEvent("move",a.originalEvent);for(let c in e){let{originalEvent:h}=e[c];this._fireEvent(c,h)}let o={},s;for(let c in this._eventsInProgress){let{handlerName:h,originalEvent:f}=this._eventsInProgress[c];this._handlersById[h].isActive()||(delete this._eventsInProgress[c],s=t[h]||f,o[`${c}end`]=s)}for(let c in o)this._fireEvent(c,o[c]);let l=t6(this._eventsInProgress),u=(i||a)&&!l;if(u&&this._terrainGesture.inFlight){this._camera.elevationFreeze=!1,this._terrainGesture={inFlight:!1,anchorElevation:null};let c=this._camera.getTransformForUpdate();this._map.getCenterClampedToGround()&&c.recalculateZoomAndCenter(this._map.terrain),this._camera.applyUpdatedTransform(c)}if(r&&u){this._updatingCamera=!0;let c=this._inertia._onMoveEnd(this._map.dragPan._inertiaOptions),h=f=>f!==0&&-this._bearingSnap{delete this._frameId,this.handleEvent(new QZe("renderFrame",{timeStamp:e})),this._applyChanges()})}_triggerRenderFrame(){this._frameId===void 0&&(this._frameId=this._requestFrame())}},tYe=class extends tn{constructor(e){var t,r,i;super(),this._renderFrameCallback=()=>{let a=Math.min((Ei()-this._easeStart)/this._easeOptions.duration,1);this._onEaseFrame(this._easeOptions.easing(a)),a<1&&this._easeFrameId?this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback):this.stop()},this.transform=new f6,this.cameraHelper=new d6,e.minZoom!==void 0&&this.transform.setMinZoom(e.minZoom),e.maxZoom!==void 0&&this.transform.setMaxZoom(e.maxZoom),e.minPitch!==void 0&&this.transform.setMinPitch(e.minPitch),e.maxPitch!==void 0&&this.transform.setMaxPitch(e.maxPitch),e.renderWorldCopies!==void 0&&this.transform.setRenderWorldCopies(e.renderWorldCopies),e.transformConstrain!==null&&this.transform.setConstrainOverride(e.transformConstrain),this._moving=!1,this._zooming=!1,this._bearingSnap=e.bearingSnap,this._zoomSnap=e.zoomSnap,this._requestRenderFrame=e.requestRenderFrame,this._cancelRenderFrame=e.cancelRenderFrame,this.terrain=e.terrain,this._centerClampedToGround=(t=e.centerClampedToGround)!=null?t:!0,this.transformCameraUpdate=(r=e.transformCameraUpdate)!=null?r:null,this._stopHandlers=(i=e.stopHandlers)!=null?i:(()=>{}),this.on("moveend",()=>{delete this._requestedCameraState})}setTerrain(e){this.terrain=e,this.applyTerrainChange()}migrateProjection(e,t){if(e.apply(this.transform,!0),this.transform=e,this.cameraHelper=t,this._requestedCameraState){let r=e.clone();r.apply(this._requestedCameraState,!0),this._requestedCameraState=r}}getCenter(){return new ar(this.transform.center.lng,this.transform.center.lat)}setCenter(e,t){return this.jumpTo({center:e},t)}getCenterElevation(){return this.transform.elevation}setCenterElevation(e,t){return this.jumpTo({elevation:e},t),this}getCenterClampedToGround(){return this._centerClampedToGround}setCenterClampedToGround(e){this._centerClampedToGround=e}panBy(e,t,r){return e=qe.convert(e).mult(-1),this.panTo(this.transform.center,tr({offset:e},t),r)}panTo(e,t,r){return this.easeTo(tr({center:e},t),r)}getZoom(){return this.transform.zoom}setZoom(e,t){return this.jumpTo({zoom:e},t),this}zoomTo(e,t,r){return this.easeTo(tr({zoom:e},t),r)}zoomIn(e,t){return this.zoomTo(As(this.getZoom()+1,this._zoomSnap),e,t),this}zoomOut(e,t){return this.zoomTo(As(this.getZoom()-1,this._zoomSnap),e,t),this}getVerticalFieldOfView(){return this.transform.fov}setVerticalFieldOfView(e,t){return e!=this.transform.fov&&(this.applyTransformChange(r=>r.setFov(e)),this.fire(new hr("movestart",t)).fire(new hr("move",t)).fire(new hr("moveend",t))),this}getBearing(){return this.transform.bearing}setZoomSnap(e){return this._zoomSnap=e,this}getZoomSnap(){return this._zoomSnap}setBearing(e,t){return this.jumpTo({bearing:e},t),this}getPadding(){return this.transform.padding}setPadding(e,t){return this.jumpTo({padding:e},t),this}rotateTo(e,t,r){return this.easeTo(tr({bearing:e},t),r)}resetNorth(e,t){return this.rotateTo(0,tr({duration:1e3},e),t),this}resetNorthPitch(e,t){return this.easeTo(tr({bearing:0,pitch:0,roll:0,duration:1e3},e),t),this}snapToNorth(e,t){return Math.abs(this.getBearing()){p.easeFunc(m),this.terrain&&!e.freezeElevation&&this._updateElevation(m,r),this.applyUpdatedTransform(r),this._fireMoveEvents(t)},m=>{this.terrain&&e.freezeElevation?this._finalizeElevation():this.elevationFreeze=!1,this._afterEase(t,m)},e),this}_prepareEase(e,t,r={}){this._moving=!0,!t&&!r.moving&&this.fire(new hr("movestart",e)),this._zooming&&!r.zooming&&this.fire(new hr("zoomstart",e)),this._rotating&&!r.rotating&&this.fire(new hr("rotatestart",e)),this._pitching&&!r.pitching&&this.fire(new hr("pitchstart",e)),this._rolling&&!r.rolling&&this.fire(new hr("rollstart",e))}_prepareElevation(e,t){this._elevationCenter=e,this._elevationStart=t.elevation,this._elevationTarget=this.terrain.getElevationForLngLat(e,t),this.elevationFreeze=!0}_updateElevation(e,t){(this._elevationStart===void 0||this._elevationCenter===void 0)&&this._prepareElevation(t.center,t),t.setMinElevationForCurrentTile(this.terrain.getMinTileElevationForLngLatZoom(this._elevationCenter,t.tileZoom));let r=this.terrain.getElevationForLngLat(this._elevationCenter,t);if(e<1&&r!==this._elevationTarget){let i=this._elevationTarget-this._elevationStart,a=(r-(i*e+this._elevationStart))/(1-e);this._elevationStart+=e*(i-a),this._elevationTarget=r}t.setElevation(wa.number(this._elevationStart,this._elevationTarget,e))}_finalizeElevation(){this.elevationFreeze=!1,this.getCenterClampedToGround()&&this.transform.recalculateZoomAndCenter(this.terrain)}applyTerrainChange(){if(this.elevationFreeze)return;let e=this.transform;e.setMinElevationForCurrentTile(this.terrain?this.terrain.getMinTileElevationForLngLatZoom(e.center,e.tileZoom):0),this.getCenterClampedToGround()&&e.setElevation(this.terrain?this.terrain.getElevationForLngLat(e.center,e):0)}getTransformForUpdate(){return!this.transformCameraUpdate&&!this.terrain?this.transform:(this._requestedCameraState||(this._requestedCameraState=this.transform.clone()),this._requestedCameraState)}_elevateCameraIfInsideTerrain(e){if(!this.terrain&&e.elevation>=0&&e.pitch<=90)return{};let t=e.getCameraLngLat(),r=e.getCameraAltitude(),i=this.terrain?this.terrain.getElevationForLngLatZoom(t,e.zoom):0;if(rthis._elevateCameraIfInsideTerrain(i)),this.transformCameraUpdate&&t.push(i=>this.transformCameraUpdate(i)),!t.length)return;let r=e.clone();for(let i of t){let a=r.clone(),{center:n,zoom:o,roll:s,pitch:l,bearing:u,elevation:c}=i(a);n&&a.setCenter(n),c!==void 0&&a.setElevation(c),o!==void 0&&a.setZoom(o),s!==void 0&&a.setRoll(s),l!==void 0&&a.setPitch(l),u!==void 0&&a.setBearing(u),r.apply(a,!1)}this.transform.apply(r,!1)}applyTransformChange(e){let t=this._requestedCameraState!==void 0,r=this.getTransformForUpdate();e(r),this.applyUpdatedTransform(r),t||delete this._requestedCameraState}_fireMoveEvents(e){this.fire(new hr("move",e)),this._zooming&&this.fire(new hr("zoom",e)),this._rotating&&this.fire(new hr("rotate",e)),this._pitching&&this.fire(new hr("pitch",e)),this._rolling&&this.fire(new hr("roll",e))}_afterEase(e,t){if(this._easeId&&t&&this._easeId===t)return;delete this._easeId;let r=this._zooming,i=this._rotating,a=this._pitching,n=this._rolling;this._moving=!1,this._zooming=!1,this._rotating=!1,this._pitching=!1,this._rolling=!1,this._padding=!1,r&&this.fire(new hr("zoomend",e)),i&&this.fire(new hr("rotateend",e)),a&&this.fire(new hr("pitchend",e)),n&&this.fire(new hr("rollend",e)),this.fire(new hr("moveend",e))}flyTo(e,t){if(!e.essential&&Ss.prefersReducedMotion){let L=Tm(e,["center","zoom","bearing","pitch","roll","elevation","padding"]);return this.jumpTo(L,t)}this.stop(),e=tr({offset:[0,0],speed:1.2,curve:1.42,easing:nw},e),e.zoom!==void 0&&this._zoomSnap&&(e.zoom=As(e.zoom,this._zoomSnap));let r=this.getTransformForUpdate(),i=r.bearing,a=r.pitch,n=r.roll,o=r.padding,s=e.bearing===void 0?i:this._normalizeBearing(e.bearing,i),l=e.pitch===void 0?a:+e.pitch,u=e.roll===void 0?n:this._normalizeBearing(e.roll,n),c=e.padding===void 0?r.padding:e.padding,h=qe.convert(e.offset),f=r.centerPoint.add(h),d=r.screenPointToLocation(f),p=this.cameraHelper.handleFlyTo(r,{bearing:s,pitch:l,roll:u,padding:c,locationAtOffset:d,offsetAsPoint:h,center:e.center,minZoom:e.minZoom,zoom:e.zoom}),m=e.curve,g=Math.max(r.width,r.height),y=g/p.scaleOfZoom,x=p.pixelPathLength,b=g/p.scaleOfMinZoom;m=Math.min(m,Math.sqrt(b/x*2));let _=m*m;function A(L){let z=(y*y-g*g+(L?-1:1)*_*_*x*x)/(2*(L?y:g)*_*x);return Math.log(Math.sqrt(z*z+1)-z)}function T(L){return(Math.exp(L)-Math.exp(-L))/2}function M(L){return(Math.exp(L)+Math.exp(-L))/2}function S(L){return T(L)/M(L)}let k=A(!1),P=function(L){return M(k)/M(k+m*L)},I=function(L){return g*((M(k)*S(k+m*L)-T(k))/_)/x},B=(A(!0)-k)/m;if(Math.abs(x)<2e-6||!isFinite(B)){if(Math.abs(g-y)<1e-6)return this.easeTo(e,t);let L=y0,P=z=>Math.exp(L*m*z)}if(e.duration!==void 0)e.duration=+e.duration;else{let L=e.screenSpeed===void 0?+e.speed:+e.screenSpeed/m;e.duration=1e3*B/L}return e.maxDuration&&e.duration>e.maxDuration&&(e.duration=0),this._zooming=!0,this._rotating=i!==s,this._pitching=l!==a,this._rolling=u!==n,this._padding=!r.isPaddingEqual(c),this._prepareEase(t,!1),this.terrain&&this._prepareElevation(p.targetCenter,r),this._ease(L=>{let z=L*B,q=1/P(z),V=I(z);this._rotating&&r.setBearing(wa.number(i,s,L)),this._pitching&&r.setPitch(wa.number(a,l,L)),this._rolling&&r.setRoll(wa.number(n,u,L)),this._padding&&(r.interpolatePadding(o,c,L),f=r.centerPoint.add(h)),p.easeFunc(L,q,V,f),this.terrain&&!e.freezeElevation&&this._updateElevation(L,r),this.applyUpdatedTransform(r),this._fireMoveEvents(t)},()=>{this.terrain&&e.freezeElevation?this._finalizeElevation():this.elevationFreeze=!1,this._afterEase(t)},e),this}isEasing(){return!!this._easeFrameId}stop(e){return this._stop(e)}_stop(e,t){if(this._easeFrameId&&(this._cancelRenderFrame(this._easeFrameId),delete this._easeFrameId,delete this._onEaseFrame),this._onEaseEnd){let r=this._onEaseEnd;delete this._onEaseEnd,r.call(this,t)}return e||this._stopHandlers(),this}_ease(e,t,r){r.animate===!1||r.duration===0?(e(1),t()):(this._easeStart=Ei(),this._easeOptions=r,this._onEaseFrame=e,this._onEaseEnd=t,this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback))}_normalizeBearing(e,t){e=rl(e,-180,180);let r=Math.abs(e-t);return Math.abs(e-360-t)MapLibre'},rce=class{constructor(e=tce){this._toggleAttribution=()=>{this._container.classList.contains("maplibregl-compact")&&(this._container.classList.contains("maplibregl-compact-show")?(this._container.setAttribute("open",""),this._container.classList.remove("maplibregl-compact-show")):(this._container.classList.add("maplibregl-compact-show"),this._container.removeAttribute("open")))},this._updateData=t=>{t&&(t.type==="terrain"||t.dataType==="style"||t.dataType==="source"&&(t.sourceDataType==="metadata"||t.sourceDataType==="visibility"))&&this._updateAttributions()},this._updateCompact=()=>{this._map.getCanvasContainer().offsetWidth<=640||this._compact?this._compact===!1?this._container.setAttribute("open",""):!this._container.classList.contains("maplibregl-compact")&&!this._container.classList.contains("maplibregl-attrib-empty")&&(this._container.setAttribute("open",""),this._container.classList.add("maplibregl-compact","maplibregl-compact-show")):(this._container.setAttribute("open",""),this._container.classList.contains("maplibregl-compact")&&this._container.classList.remove("maplibregl-compact","maplibregl-compact-show"))},this._updateCompactMinimize=()=>{this._container.classList.contains("maplibregl-compact")&&this._container.classList.contains("maplibregl-compact-show")&&this._container.classList.remove("maplibregl-compact-show")},this.options=e}getDefaultPosition(){return"bottom-right"}onAdd(e){return this._map=e,this._compact=this.options.compact,this._container=wr.create("details","maplibregl-ctrl maplibregl-ctrl-attrib"),this._compactButton=wr.create("summary","maplibregl-ctrl-attrib-button",this._container),this._compactButton.addEventListener("click",this._toggleAttribution),this._setElementTitle(this._compactButton,"ToggleAttribution"),this._innerContainer=wr.create("div","maplibregl-ctrl-attrib-inner",this._container),this._updateAttributions(),this._updateCompact(),this._map.on("styledata",this._updateData),this._map.on("sourcedata",this._updateData),this._map.on("terrain",this._updateData),this._map.on("resize",this._updateCompact),this._map.on("drag",this._updateCompactMinimize),this._container}onRemove(){this._container.remove(),this._map.off("styledata",this._updateData),this._map.off("sourcedata",this._updateData),this._map.off("terrain",this._updateData),this._map.off("resize",this._updateCompact),this._map.off("drag",this._updateCompactMinimize),this._map=void 0,this._compact=void 0,this._attribHTML=void 0}_setElementTitle(e,t){let r=this._map._getUIString(`AttributionControl.${t}`);e.title=r,e.setAttribute("aria-label",r)}_updateAttributions(){if(!this._map.style)return;let e=[];if(this.options.customAttribution&&(Array.isArray(this.options.customAttribution)?e=e.concat(this.options.customAttribution.map(i=>typeof i=="string"?i:"")):typeof this.options.customAttribution=="string"&&e.push(this.options.customAttribution)),this._map.style.stylesheet){let i=this._map.style.stylesheet;this.styleOwner=i.owner,this.styleId=i.id}let t=this._map.style.tileManagers;for(let i in t){let a=t[i];if(a.used||a.usedForTerrain){let n=a.getSource();n.attribution&&!e.includes(n.attribution)&&e.push(n.attribution)}}e=e.filter(i=>String(i).trim()),e.sort((i,a)=>i.length-a.length),e=e.filter((i,a)=>{for(let n=a+1;n{let t=this._container.children;if(t.length){let r=t[0];this._map.getCanvasContainer().offsetWidth<=640||this._compact?this._compact!==!1&&r.classList.add("maplibregl-compact"):r.classList.remove("maplibregl-compact")}},this.options=e}getDefaultPosition(){return"bottom-left"}onAdd(e){var r;this._map=e,this._compact=(r=this.options)==null?void 0:r.compact,this._container=wr.create("div","maplibregl-ctrl");let t=wr.create("a","maplibregl-ctrl-logo");return t.target="_blank",t.rel="noopener nofollow",t.href="https://maplibre.org/",t.setAttribute("aria-label",this._map._getUIString("LogoControl.Title")),t.setAttribute("rel","noopener nofollow"),this._container.appendChild(t),this._container.style.display="block",this._map.on("resize",this._updateCompact),this._updateCompact(),this._container}onRemove(){this._container.remove(),this._map.off("resize",this._updateCompact),this._map=void 0,this._compact=void 0}},rYe=class{constructor(){this._queue=[],this._id=0,this._cleared=!1,this._currentlyRunning=!1}add(e){let t=++this._id;return this._queue.push({callback:e,id:t,cancelled:!1}),t}remove(e){let t=this._currentlyRunning,r=t?this._queue.concat(t):this._queue;for(let i of r)if(i.id===e){i.cancelled=!0;return}}run(e=0){if(this._currentlyRunning)throw Error("Attempting to run(), but is already running.");let t=this._currentlyRunning=this._queue;this._queue=[];let r=!1,i;for(let a of t)if(!a.cancelled){try{a.callback(e)}catch(n){r||(r=!0,i=n)}if(this._cleared)break}if(this._cleared=!1,this._currentlyRunning=!1,r)throw i}clear(){this._currentlyRunning&&(this._cleared=!0),this._queue=[]}},_le=["none","zoom","sourceTiles","visibleLayers","revision"],iYe=class{constructor(e,t,r,i){this._tileKeys=e.map(a=>a.key).sort().join(),this._revision=t,this._zoom=r,this._visibleLayerIds=i}difference(e){return this._revision===(e==null?void 0:e._revision)?this._visibleLayerIds===e._visibleLayerIds?this._tileKeys===e._tileKeys?this._zoom===e._zoom?"none":"zoom":"sourceTiles":"visibleLayers":"revision"}},zm={background:!0,fill:!0,line:!0,raster:!0,hillshade:!0,"color-relief":!0},aYe=class{constructor(e,t){this.needsFollowUpFrame=!1,this.painter=e,this.terrain=t,this.rttSize=t.tileManager.tileSize*t.qualityFactor}getTexture(e){return e.getRTT(this._stacks.length-1).texture}prepareForRender(e,t){let r=t!==this._lastPrepareZoom;this._lastPrepareZoom=t,this._stacks=[],this._prevType=null,this._rttTiles=[],this._renderableTiles=this.terrain.tileManager.getRenderableTiles(),this._renderableLayerIds=e._order.filter(s=>!e._layers[s].isHidden(t));let i=this._renderableLayerIds.join(),a=new Set;for(let s of this._renderableLayerIds){let l=e._layers[s],u=l.source;u&&zm[l.type]&&a.add(u)}this._coordsAscending={},this._rttFingerprints={};for(let s of a){let l=e.tileManagers[s];if(!l)continue;this._coordsAscending[s]={};let u=this._coordsAscending[s],c=l.getSource(),h=c instanceof Om?c.terrainTileRanges:null;for(let p of l.getVisibleCoordinates()){let m=this.terrain.tileManager.getTerrainCoords(p,h);for(let g in m)u[g]||(u[g]=[]),u[g].push(m[g])}this._rttFingerprints[s]={};let f=this._rttFingerprints[s],d=l.getState().revision;for(let p in u)f[p]=new iYe(u[p],d,t,i)}this.needsFollowUpFrame=!1;let n=r||this.painter.options.moving,o=!1;for(let s of this._renderableTiles){let l=this._textureDifference(s);l!=="none"&&(l==="zoom"&&n||l==="visibleLayers"&&r?this.needsFollowUpFrame=!0:l==="zoom"||l==="sourceTiles"?(o?this.needsFollowUpFrame=!0:s.releaseRTT(this.painter),o=!0):s.releaseRTT(this.painter))}}_textureDifference(e){let t="none";for(let r in this._rttFingerprints){let i=this._rttFingerprints[r][e.tileID.key];if(!i)continue;let a=i.difference(e.rttFingerprint[r]);_le.indexOf(a)>_le.indexOf(t)&&(t=a)}return t}renderLayer(e,t){if(e.isHidden(this.painter.transform.zoom))return!1;let r=e.type,i=this.painter,a=this._renderableLayerIds[this._renderableLayerIds.length-1]===e.id;if(zm[r]&&((!this._prevType||!zm[this._prevType])&&this._stacks.push([]),this._prevType=r,this._stacks[this._stacks.length-1].push(e.id),!a))return!0;if(zm[this._prevType]||zm[r]&&a){this._prevType=r;let n=this._stacks.length-1,o=this._stacks[n]||[];t.isRenderingToTexture=!0;for(let s of this._renderableTiles){if(this._rttTiles.push(s),s.getRTT(n))continue;let l=s.acquireRTT(i,n,this.rttSize);i.bindRTT(l),i.context.clear({color:Sr.transparent,stencil:0}),i.currentStencilSource=void 0;for(let u of o){let c=i.style._layers[u],h=c.source?this._coordsAscending[c.source][s.tileID.key]:[s.tileID];i.context.viewport.set([0,0,this.rttSize,this.rttSize]),i.renderTileClippingMasks(c,h),i.renderLayer(i,i.style.tileManagers[c.source],c,h,t),c.source&&(s.rttFingerprint[c.source]=this._rttFingerprints[c.source][s.tileID.key])}l.texture.generateMipmap()}return t.isRenderingToTexture=!1,wZe(this.painter,this.terrain,this._rttTiles,t),this._rttTiles=[],zm[r]}return!1}},nYe={"AttributionControl.ToggleAttribution":"Toggle attribution","AttributionControl.MapFeedback":"Map feedback","FullscreenControl.Enter":"Enter fullscreen","FullscreenControl.Exit":"Exit fullscreen","GeolocateControl.FindMyLocation":"Find my location","GeolocateControl.LocationNotAvailable":"Location not available","LogoControl.Title":"MapLibre logo","Map.Title":"Map","Marker.Title":"Map marker","NavigationControl.ResetBearing":"Drag to rotate map, click to reset north","NavigationControl.ZoomIn":"Zoom in","NavigationControl.ZoomOut":"Zoom out","Popup.Close":"Close popup","ScaleControl.Feet":"ft","ScaleControl.Meters":"m","ScaleControl.Kilometers":"km","ScaleControl.Miles":"mi","ScaleControl.NauticalMiles":"nm","GlobeControl.Enable":"Enable globe","GlobeControl.Disable":"Disable globe","TerrainControl.Enable":"Enable terrain","TerrainControl.Disable":"Disable terrain","CooperativeGesturesHandler.WindowsHelpText":"Use Ctrl + scroll to zoom the map","CooperativeGesturesHandler.MacHelpText":"Use \u2318 + scroll to zoom the map","CooperativeGesturesHandler.MobileHelpText":"Use two fingers to move the map"},oYe=Ale,xle={hash:!1,interactive:!0,bearingSnap:7,zoomSnap:0,attributionControl:tce,maplibreLogo:!1,refreshExpiredTiles:!0,canvasContextAttributes:{antialias:!1,preserveDrawingBuffer:!1,powerPreference:"high-performance",failIfMajorPerformanceCaveat:!1,desynchronized:!1,contextType:void 0},scrollZoom:!0,minZoom:-2,maxZoom:22,minPitch:0,maxPitch:60,boxZoom:!0,dragRotate:!0,dragPan:!0,keyboard:!0,doubleClickZoom:!0,touchZoomRotate:!0,touchPitch:!0,cooperativeGestures:!1,trackResize:!0,center:[0,0],elevation:0,zoom:0,bearing:0,pitch:0,roll:0,renderWorldCopies:!0,maxTileCacheSize:null,maxTileCacheZoomLevels:Ts.MAX_TILE_CACHE_ZOOM_LEVELS,transformRequest:null,transformCameraUpdate:null,transformConstrain:null,fadeDuration:300,crossSourceCollisions:!0,clickTolerance:3,localIdeographFontFamily:"sans-serif",pitchWithRotate:!0,rollEnabled:!1,rotateSpeed:.8,pitchSpeed:-.5,reduceMotion:void 0,validateStyle:!0,maxCanvasSize:[4096,4096],cancelPendingTileRequestsWhileZooming:!0,centerClampedToGround:!0,terrainSkirtLength:"auto",zoomLevelsToOverscale:4,anisotropicFilterPitch:20},sYe=class extends tn{get _ownerWindow(){var e,t;return((t=(e=this._container)==null?void 0:e.ownerDocument)==null?void 0:t.defaultView)||window}constructor(e){var a,n,o;super(),this._idleTriggered=!1,this._crossFadingFactor=1,this._renderTaskQueue=new rYe,this._controls=[],this._mapId=Dk(),this._styleUrl=null,this._missingStyleImageResolver=null,this._lostContextStyle={style:null,images:null},this._contextLost=s=>{if(s.preventDefault(),this._frameRequest&&(this._frameRequest=(this._frameRequest.abort(),null)),this.painter.destroy(),this._lostContextStyle=this._getStyleAndImages(),!this.style){this.fire(new i6("webglcontextlost",{originalEvent:s}));return}for(let l of Object.values(this.style._layers))if(l.type==="custom"&&console.warn(`Custom layer with id '${l.id}' cannot be restored after WebGL context loss. You will need to re-add it manually after context restoration.`),l._listeners)for(let[u]of Object.entries(l._listeners))console.warn(`Custom layer with id '${l.id}' had event listeners for event '${u}' which cannot be restored after WebGL context loss. You will need to re-add them manually after context restoration.`);this.style.destroy(),this.style=null,this.fire(new i6("webglcontextlost",{originalEvent:s}))},this._contextRestored=s=>{if(this._lostContextStyle.style&&this.setStyle(this._lostContextStyle.style,{diff:!1}),this._lostContextStyle.images&&this.style){this.style.imageManager.images=this._lostContextStyle.images;for(let l in this._lostContextStyle.images){let u=this._lostContextStyle.images[l];u.isWebGLImage&&this.style.imageManager.updateImage(l,u,!1)}}this._lostContextStyle={style:null,images:null};try{this._setupPainter()}catch(l){this.fire(new or(l));return}this.resize(),this._update(),this._resizeInternal(),this.fire(new i6("webglcontextrestored",{originalEvent:s}))},this._onMapScroll=s=>{if(s.target===this._container)return this._container.scrollTop=0,this._container.scrollLeft=0,!1},this._onWindowOnline=()=>{this._update()};let t=Yr(nr(nr({},xle),e),{canvasContextAttributes:nr(nr({},xle.canvasContextAttributes),e.canvasContextAttributes)});if(t.minZoom!=null&&t.maxZoom!=null&&t.minZoom>t.maxZoom)throw Error("maxZoom must be greater than or equal to minZoom");if(t.minPitch!=null&&t.maxPitch!=null&&t.minPitch>t.maxPitch)throw Error("maxPitch must be greater than or equal to minPitch");if(t.minPitch!=null&&t.minPitch<0)throw Error("minPitch must be greater than or equal to 0");if(t.maxPitch!=null&&t.maxPitch>180)throw Error("maxPitch must be less than or equal to 180");this._camera=new tYe({minZoom:t.minZoom,maxZoom:t.maxZoom,minPitch:t.minPitch,maxPitch:t.maxPitch,bearingSnap:t.bearingSnap,zoomSnap:t.zoomSnap,renderWorldCopies:t.renderWorldCopies,centerClampedToGround:t.centerClampedToGround,terrain:this.terrain,transformConstrain:t.transformConstrain,requestRenderFrame:s=>this._requestRenderFrame(s),cancelRenderFrame:s=>this._cancelRenderFrame(s),transformCameraUpdate:t.transformCameraUpdate,stopHandlers:()=>{var s;return(s=this._handlers)==null?void 0:s.stop(!1)}}),this._camera.setEventedParent(this),this._interactive=t.interactive,this._maxTileCacheSize=t.maxTileCacheSize,this._maxTileCacheZoomLevels=t.maxTileCacheZoomLevels,this._canvasContextAttributes=nr({},t.canvasContextAttributes),this._trackResize=t.trackResize===!0,this._terrainSkirtLength=t.terrainSkirtLength,this._refreshExpiredTiles=t.refreshExpiredTiles===!0,this._fadeDuration=t.fadeDuration,this._crossSourceCollisions=t.crossSourceCollisions===!0,this._collectResourceTiming=t.collectResourceTiming===!0,this._locale=nr(nr({},nYe),t.locale),this._clickTolerance=t.clickTolerance,this._overridePixelRatio=t.pixelRatio,this._maxCanvasSize=t.maxCanvasSize,this._zoomLevelsToOverscale=t.zoomLevelsToOverscale,this.cancelPendingTileRequestsWhileZooming=t.cancelPendingTileRequestsWhileZooming===!0,this.setAnisotropicFilterPitch(t.anisotropicFilterPitch),t.reduceMotion!==void 0&&(Ss.prefersReducedMotion=t.reduceMotion),this._requestManager=new hUe(t.transformRequest),this._container=this._resolveContainer(t.container),t.maxBounds&&this.setMaxBounds(t.maxBounds),this._setupContainer();try{this._setupPainter()}catch(s){throw this._cleanupContainer(),s}this._imageQueueHandle=Nu.addThrottleControl(()=>this.isMoving()),this.on("move",()=>this._update(!1)),this.on("moveend",()=>this._update(!1)),this.on("zoom",()=>this._update(!0)),this.on("terrain",()=>{this.painter.markTerrainDepthDirty(),this._update(!0)}),this.once("idle",()=>this._idleTriggered=!0),this._handlers=new eYe(this,this._camera,t),typeof window<"u"&&(this._ownerWindow.addEventListener("online",this._onWindowOnline,!1),this._setupResizeObserver());let r=typeof t.hash=="string"&&t.hash||void 0;this._hash=t.hash?new Gue(r).addTo(this):void 0,(a=this._hash)!=null&&a._onHashChange()||(this.jumpTo({center:t.center,elevation:t.elevation,zoom:t.zoom,bearing:t.bearing,pitch:t.pitch,roll:t.roll}),t.bounds&&(this.resize(),this.fitBounds(t.bounds,tr({},t.fitBoundsOptions,{duration:0}))));let i=typeof t.style=="string"||((o=(n=t.style)==null?void 0:n.projection)==null?void 0:o.type)!=="globe";this.resize(null,i),this._localIdeographFontFamily=t.localIdeographFontFamily,this._validateStyle=t.validateStyle,t.style&&this.setStyle(t.style,{localIdeographFontFamily:t.localIdeographFontFamily}),t.attributionControl&&this.addControl(new rce(typeof t.attributionControl=="boolean"?void 0:t.attributionControl)),t.maplibreLogo&&this.addControl(new ice,t.logoPosition),this.on("style.load",()=>{if(i||this._resizeTransform(),this._camera.transform.unmodified){let s=Tm(this.style.stylesheet,["center","zoom","bearing","pitch","roll"]);this.jumpTo(s)}}),this.on("data",s=>{this._update(s.dataType==="style"),this.fire(s.dataType==="style"?new Wl("styledata",s):new ma("sourcedata",s))}),this.on("dataloading",s=>{this.fire(s.dataType==="style"?new Wl("styledataloading",s):new ma("sourcedataloading",s))}),this.on("dataabort",s=>{this.fire(new ma("sourcedataabort",s))})}_getMapId(){return this._mapId}setGlobalStateProperty(e,t){return this.style.setGlobalStateProperty(e,t),this._update(!0)}getGlobalState(){return this.style.getGlobalState()}addControl(e,t){if(t===void 0&&(t=e.getDefaultPosition?e.getDefaultPosition():"top-right"),!(e!=null&&e.onAdd))return this.fire(new or(Error("Invalid argument to map.addControl(). Argument must be a control with onAdd and onRemove methods.")));let r=e.onAdd(this);this._controls.push(e);let i=this._controlPositions[t];return t.includes("bottom")?i.insertBefore(r,i.firstChild):i.appendChild(r),this}removeControl(e){if(!(e!=null&&e.onRemove))return this.fire(new or(Error("Invalid argument to map.removeControl(). Argument must be a control with onAdd and onRemove methods.")));let t=this._controls.indexOf(e);return t>-1&&this._controls.splice(t,1),e.onRemove(this),this}hasControl(e){return this._controls.includes(e)}coveringTiles(e){return Nm(this._camera.transform,e)}setTransformCameraUpdate(e){this._camera.transformCameraUpdate=e}getCenter(){return new ar(this._camera.transform.center.lng,this._camera.transform.center.lat)}setCenter(e,t){return this._camera.setCenter(e,t),this}getCenterElevation(){return this._camera.transform.elevation}setCenterElevation(e,t){return this._camera.setCenterElevation(e,t),this}setCenterClampedToGround(e){this._camera.setCenterClampedToGround(e)}panBy(e,t,r){return this._camera.panBy(e,t,r),this}panTo(e,t,r){return this._camera.panTo(e,t,r),this}getZoom(){return this._camera.transform.zoom}setZoom(e,t){return this._camera.setZoom(e,t),this}zoomTo(e,t,r){return this._camera.zoomTo(e,t,r),this}zoomIn(e,t){return this._camera.zoomIn(e,t),this}zoomOut(e,t){return this._camera.zoomOut(e,t),this}getVerticalFieldOfView(){return this._camera.transform.fov}setVerticalFieldOfView(e,t){return this._camera.setVerticalFieldOfView(e,t),this}getBearing(){return this._camera.transform.bearing}setBearing(e,t){return this._camera.setBearing(e,t),this}getZoomSnap(){return this._camera.getZoomSnap()}setZoomSnap(e){return this._camera.setZoomSnap(e),this}getPadding(){return this._camera.transform.padding}setPadding(e,t){return this._camera.setPadding(e,t),this}rotateTo(e,t,r){return this._camera.rotateTo(e,t,r),this}resetNorth(e,t){return this._camera.resetNorth(e,t),this}resetNorthPitch(e,t){return this._camera.resetNorthPitch(e,t),this}snapToNorth(e,t){return this._camera.snapToNorth(e,t),this}getPitch(){return this._camera.transform.pitch}setPitch(e,t){return this._camera.setPitch(e,t),this}getRoll(){return this._camera.transform.roll}setRoll(e,t){return this._camera.setRoll(e,t),this}cameraForBounds(e,t){return this._camera.cameraForBounds(e,t)}fitBounds(e,t,r){return this._camera.fitBounds(e,t,r),this}fitScreenCoordinates(e,t,r,i,a){return this._camera.fitScreenCoordinates(e,t,r,i,a),this}jumpTo(e,t){return this._camera.jumpTo(e,t),this}calculateAnchoredCameraOptions(e){return this._camera.calculateAnchoredCameraOptions(e)}calculateCameraOptionsFromCameraLngLatAltRotation(e,t,r,i,a){return this._camera.calculateCameraOptionsFromCameraLngLatAltRotation(e,t,r,i,a)}easeTo(e,t){return this._camera.easeTo(e,t),this}flyTo(e,t){return this._camera.flyTo(e,t),this}stop(){return this._camera.stop(),this}queryTerrainElevation(e){return this.terrain?this.terrain.getElevationForLngLat(ar.convert(e),this._camera.transform):null}getCenterClampedToGround(){return this._camera.getCenterClampedToGround()}calculateCameraOptionsFromTo(e,t,r,i){return i==null&&this.terrain&&(i=this.terrain.getElevationForLngLat(r,this._camera.transform)),this._camera.transform.calculateCameraOptionsFromTo(e,t,r,i!=null?i:0)}resize(e,t=!0){if(this._lostContextStyle.style!==null)return this;this._resizeInternal(t);let r=!this._camera._moving;return r&&(this.stop(),this.fire(new hr("movestart",e)).fire(new hr("move",e))),this.fire(new Rn("resize",e)),r&&this.fire(new hr("moveend",e)),this}_resizeInternal(e=!0){let[t,r]=this._containerDimensions(),i=this._getClampedPixelRatio(t,r);if(this._resizeCanvas(t,r,i),this.painter.resize(t,r,i),this.painter.overLimit()){let a=this.painter.context.gl;this._maxCanvasSize=[a.drawingBufferWidth,a.drawingBufferHeight];let n=this._getClampedPixelRatio(t,r);this._resizeCanvas(t,r,n),this.painter.resize(t,r,n)}this._resizeTransform(e)}_resizeTransform(e=!0){var i;let[t,r]=this._containerDimensions();this._camera.transform.resize(t,r,e),(i=this._camera._requestedCameraState)==null||i.resize(t,r,e)}_getClampedPixelRatio(e,t){let{0:r,1:i}=this._maxCanvasSize,a=this.getPixelRatio(),n=e*a,o=t*a,s=n>r?r/n:1,l=o>i?i/o:1,u=Math.min(s,l);return u<1&&Xr("The canvas is larger than maxCanvasSize and is rendered at a lower pixel ratio to fit. Increase maxCanvasSize, within MAX_TEXTURE_SIZE, to render at full resolution."),u*a}getPixelRatio(){var e;return(e=this._overridePixelRatio)!=null?e:devicePixelRatio}setPixelRatio(e){this._overridePixelRatio=e,this.resize()}getBounds(){return this._camera.transform.getBounds()}getMaxBounds(){return this._camera.transform.getMaxBounds()}setMaxBounds(e){return this._camera.applyTransformChange(t=>t.setMaxBounds(Vu.convert(e))),this._update()}setMinZoom(e){if(e!=null||(e=-2),e>=-2&&e<=this._camera.transform.maxZoom){let t=this._camera.transform.zoom;return this._camera.applyTransformChange(r=>r.setMinZoom(e)),this._update(),t!==this._camera.transform.zoom&&this.fire(new hr("zoomstart")).fire(new hr("zoom")).fire(new hr("zoomend")).fire(new hr("movestart")).fire(new hr("move")).fire(new hr("moveend")),this}throw Error("minZoom must be between -2 and the current maxZoom, inclusive")}getMinZoom(e=!1){let t=this._camera.transform;return e?t.applyConstrain(t.center,t.minZoom).zoom:t.minZoom}setMaxZoom(e){if(e!=null||(e=22),e>=this._camera.transform.minZoom){let t=this._camera.transform.zoom;return this._camera.applyTransformChange(r=>r.setMaxZoom(e)),this._update(),t!==this._camera.transform.zoom&&this.fire(new hr("zoomstart")).fire(new hr("zoom")).fire(new hr("zoomend")).fire(new hr("movestart")).fire(new hr("move")).fire(new hr("moveend")),this}throw Error("maxZoom must be greater than the current minZoom")}getMaxZoom(){return this._camera.transform.maxZoom}setMinPitch(e){if(e!=null||(e=0),e<0)throw Error("minPitch must be greater than or equal to 0");if(e>=0&&e<=this._camera.transform.maxPitch){let t=this._camera.transform.pitch;return this._camera.applyTransformChange(r=>r.setMinPitch(e)),this._update(),t!==this._camera.transform.pitch&&this.fire(new hr("pitchstart")).fire(new hr("pitch")).fire(new hr("pitchend")).fire(new hr("movestart")).fire(new hr("move")).fire(new hr("moveend")),this}throw Error("minPitch must be between 0 and the current maxPitch, inclusive")}getMinPitch(){return this._camera.transform.minPitch}setMaxPitch(e){if(e!=null||(e=60),e>180)throw Error("maxPitch must be less than or equal to 180");if(e>=this._camera.transform.minPitch){let t=this._camera.transform.pitch;return this._camera.applyTransformChange(r=>r.setMaxPitch(e)),this._update(),t!==this._camera.transform.pitch&&this.fire(new hr("pitchstart")).fire(new hr("pitch")).fire(new hr("pitchend")).fire(new hr("movestart")).fire(new hr("move")).fire(new hr("moveend")),this}throw Error("maxPitch must be greater than the current minPitch")}getMaxPitch(){return this._camera.transform.maxPitch}getAnisotropicFilterPitch(){return this._anisotropicFilterPitch}setAnisotropicFilterPitch(e){if(e!=null||(e=20),e>180)throw Error("anisotropicFilterPitch must be less than or equal to 180");if(e<0)throw Error("anisotropicFilterPitch must be greater than or equal to 0");return this._anisotropicFilterPitch=e,this._update()}getRenderWorldCopies(){return this._camera.transform.renderWorldCopies}setRenderWorldCopies(e){return this._camera.applyTransformChange(t=>t.setRenderWorldCopies(e)),this._update()}setTransformConstrain(e){return this._camera.applyTransformChange(t=>t.setConstrainOverride(e)),this._update()}project(e){return this._camera.transform.locationToScreenPoint(ar.convert(e),this.style&&this.terrain)}unproject(e){return this._camera.transform.screenPointToLocation(qe.convert(e),this.terrain)}isMoving(){var e;return this._camera.isMoving()||((e=this._handlers)==null?void 0:e.isMoving())||!1}isZooming(){var e;return this._camera.isZooming()||((e=this._handlers)==null?void 0:e.isZooming())||!1}isRotating(){var e;return this._camera.isRotating()||((e=this._handlers)==null?void 0:e.isRotating())||!1}_createDelegates(e,t,r){if(e==="mouseenter"||e==="mouseover"){let i=!1;return{mousemove:a=>{let n=t.filter(s=>this.getLayer(s)),o=n.length===0?[]:this.queryRenderedFeatures(a.point,{layers:n});o.length?i||(i=!0,r.call(this,new Ds(e,this,a.originalEvent,{features:o}))):i=!1},mouseout:()=>{i=!1}}}if(e==="mouseleave"||e==="mouseout"){let i=!1;return{mousemove:a=>{let n=t.filter(o=>this.getLayer(o));(n.length===0?[]:this.queryRenderedFeatures(a.point,{layers:n})).length?i=!0:i&&(i=!1,r.call(this,new Ds(e,this,a.originalEvent)))},mouseout:a=>{i&&(i=!1,r.call(this,new Ds(e,this,a.originalEvent)))}}}{let i=a=>{let n=t.filter(s=>this.getLayer(s)),o=n.length===0?[]:this.queryRenderedFeatures(a.point,{layers:n});o.length&&(a.features=o,r.call(this,a),delete a.features)};return{[e]:i}}}_addDelegatedListener(e,t){var r;this._delegatedListeners||(this._delegatedListeners={}),(r=this._delegatedListeners)[e]||(r[e]=[]),this._delegatedListeners[e].push(t);for(let i in t.delegates)this.on(i,t.delegates[i])}_removeDelegatedListener(e,t,r){var a;if(!((a=this._delegatedListeners)!=null&&a[e]))return;let i=this._delegatedListeners[e];for(let n=0;nt.includes(s))){for(let s in o.delegates)this.off(s,o.delegates[s]);i.splice(n,1);return}}}on(e,t,r){if(r===void 0)return super.on(e,t);let i=typeof t=="string"?[t]:t,a={layers:i,listener:r,delegates:this._createDelegates(e,i,r)};return this._addDelegatedListener(e,a),{unsubscribe:()=>{this._removeDelegatedListener(e,i,r)}}}once(e,t,r){if(r===void 0)return super.once(e,t);let i=typeof t=="string"?[t]:t,a={layers:i,listener:r,delegates:this._createDelegates(e,i,n=>{this._removeDelegatedListener(e,i,r),r.call(this,n)})};return this._addDelegatedListener(e,a),this}off(e,t,r){if(r===void 0)return super.off(e,t);let i=typeof t=="string"?[t]:t;return this._removeDelegatedListener(e,i,r),this}queryRenderedFeatures(e,t){if(!this.style)return[];let r,i=e instanceof qe||Array.isArray(e),a=i?e:[[0,0],[this._camera.transform.width,this._camera.transform.height]];if(t||(t=(i?{}:e)||{}),a instanceof qe||typeof a[0]=="number")r=[qe.convert(a)];else{let n=qe.convert(a[0]),o=qe.convert(a[1]);r=[n,new qe(o.x,n.y),o,new qe(n.x,o.y),n]}return this.style.queryRenderedFeatures(r,t,this._camera.transform)}querySourceFeatures(e,t){return this.style.querySourceFeatures(e,t)}setStyle(e,t){return t=tr({},{localIdeographFontFamily:this._localIdeographFontFamily,validate:this._validateStyle},t),this._styleUrl=typeof e=="string"?e:null,t.diff!==!1&&t.localIdeographFontFamily===this._localIdeographFontFamily&&this.style&&e?(this._diffStyle(e,t),this):(this._localIdeographFontFamily=t.localIdeographFontFamily,this._updateStyle(e,t))}setTransformRequest(e){return this._requestManager.setTransformRequest(e),this}_getUIString(e){let t=this._locale[e];if(t==null)throw Error(`Missing UI string '${e}'`);return t}_updateStyle(e,t){var i,a,n;if((i=this._diffStyleRequest)==null||i.abort(),this._diffStyleRequest=null,t.transformStyle&&this.style&&!this.style._loaded){this.style.once("style.load",()=>this._updateStyle(e,t));return}let r=this.style&&t.transformStyle?this.style.serialize():void 0;if(this.style&&(this.style.setEventedParent(null),this.style._remove(!e)),e)this.style=new bF(this,t||{});else return this._frameRequest&&(this._frameRequest=(this._frameRequest.abort(),null)),(n=(a=this.style)==null?void 0:a.projection)==null||n.destroy(),delete this.style,this;return this.style.setEventedParent(this,{style:this.style}),typeof e=="string"?this.style.loadURL(e,t,r):this.style.loadJSON(e,t,r),this}_lazyInitEmptyStyle(){this.style||(this.style=new bF(this,{}),this.style.setEventedParent(this,{style:this.style}),this.style.loadEmpty())}_diffStyle(e,t){return Kt(this,null,function*(){var r;if((r=this._diffStyleRequest)==null||r.abort(),typeof e=="string"){let i=e;this._diffStyleRequest=new AbortController;let a=this._diffStyleRequest;try{let n=yield this._requestManager.transformRequest(i,"Style");if(a.signal.aborted){this._diffStyleRequest=null;return}let o=yield f2(n,a);this._diffStyleRequest=null,this._updateDiff(o.data,t)}catch(n){this._diffStyleRequest=null,Ah(n)||this.fire(new or(Wn(n)))}}else typeof e=="object"&&(this._diffStyleRequest=null,this._updateDiff(e,t))})}_updateDiff(e,t){try{this.style.setState(e,t)&&this._update(!0)}catch(r){Xr(`Unable to perform style diff: ${Wn(r).message}. Rebuilding the style from scratch.`),this._updateStyle(e,t)}}getStyle(){if(this.style)return this.style.serialize()}getStyleUrl(){return this._styleUrl}_getStyleAndImages(){return this.style?{style:this.style.serialize(),images:this.style.imageManager.cloneImages()}:{style:null,images:{}}}isStyleLoaded(){if(!this.style){Xr("There is no style added to the map.");return}return this.style.loaded()}addSource(e,t){return this._lazyInitEmptyStyle(),this.style.addSource(e,t),this._update(!0)}isSourceLoaded(e){var r;let t=(r=this.style)==null?void 0:r.tileManagers[e];if(t===void 0){this.fire(new or(Error(`There is no tile manager with ID '${e}'`)));return}return t.loaded()}setTerrain(e,t={}){if(this.style._checkLoaded(),e&&Em(this,es.terrain,{value:e},t))return this;if(this._terrainDataCallback&&this.style.off("data",this._terrainDataCallback),!e)this.terrain&&this.terrain.destroy(),this.terrain=null,this.painter.renderToTexture=null,this.painter.destroyRTTResources(),this._camera.setTerrain(null);else{let r=this.style.tileManagers[e.source];if(!r)throw Error(`cannot load terrain, because there exists no source with ID: ${e.source}`);this.terrain===null&&r.reload();for(let i in this.style._layers){let a=this.style._layers[i];a.type==="hillshade"&&a.source===e.source&&Xr("You are using the same source for a hillshade layer and for 3D terrain. Please consider using two separate sources to improve rendering quality."),a.type==="color-relief"&&a.source===e.source&&Xr("You are using the same source for a color-relief layer and for 3D terrain. Please consider using two separate sources to improve rendering quality.")}this.terrain&&this.terrain.destroy(),this.terrain=new _je(this.painter,r,e,this._terrainSkirtLength),this.painter.renderToTexture=new aYe(this.painter,this.terrain),this._camera.setTerrain(this.terrain),this._terrainDataCallback=i=>this._handleTerrainDataEvent(i,e.source),this.style.on("data",this._terrainDataCallback)}return this.style.triggerSymbolPlacement(),this.fire(new Dle({terrain:e})),this}_handleTerrainDataEvent(e,t){var i;if(e.dataType==="style"){this.terrain.tileManager.releaseAllRTT();return}let r=e.sourceId===t;if(r&&(this.terrain.resetElevationCache(),this.style.triggerSymbolPlacement()),r&&e.tile&&(this.painter.markTerrainDepthDirty(),this._camera.applyTerrainChange()),e.tile){if(((i=e.source)==null?void 0:i.type)==="image"){this.terrain.tileManager.releaseAllRTT();return}this.terrain.tileManager.releaseRTT(e.tile.tileID)}}getTerrain(){var e,t;return(t=(e=this.terrain)==null?void 0:e.options)!=null?t:null}areTilesLoaded(){var t;let e=(t=this.style)==null?void 0:t.tileManagers;for(let r of Object.values(e))if(!r.areTilesLoaded())return!1;return!0}removeSource(e){return this.style.removeSource(e),this._update(!0)}getSource(e){var t;return(t=this.style)==null?void 0:t.getSource(e)}setSourceTileLodParams(e,t,r){if(r){let i=this.getSource(r);if(!i)throw Error(`There is no source with ID "${r}", cannot set LOD parameters`);i.calculateTileZoom=dF(Math.max(1,e),Math.max(1,t))}else for(let i in this.style.tileManagers)this.style.tileManagers[i].getSource().calculateTileZoom=dF(Math.max(1,e),Math.max(1,t));return this._update(!0),this}refreshTiles(e,t){let r=this.style.tileManagers[e];if(!r)throw Error(`There is no tile manager with ID "${e}", cannot refresh tile`);t===void 0?r.reload(!0):r.refreshTiles(t.map(i=>new k2(i.z,i.x,i.y)))}addImage(e,t,r={}){var a;this._lazyInitEmptyStyle();let i=this._createStyleImage(t,r);return i?(this.style.addImage(e,i),(a=i.userImage)!=null&&a.onAdd&&i.userImage.onAdd(this,e),this):this}setMissingStyleImageResolver(e){var t;return this._missingStyleImageResolver=e,(t=this.style)==null||t.setMissingImageResolver(e),this}_createStyleImage(e,t={}){let{pixelRatio:r=1,sdf:i=!1,stretchX:a,stretchY:n,content:o,textFitWidth:s,textFitHeight:l}=t;if(e instanceof HTMLImageElement||Zf(e)){let{width:u,height:c,data:h}=Ss.getImageData(e);return{data:new na({width:u,height:c},h),pixelRatio:r,stretchX:a,stretchY:n,content:o,textFitWidth:s,textFitHeight:l,sdf:i,version:0}}if(e.width===void 0||e.height===void 0)return this.fire(new or(Error("Invalid arguments to map.addImage(). The second argument must be an `HTMLImageElement`, `ImageData`, `ImageBitmap`, or object with `width`, `height`, and `data` properties with the same format as `ImageData`"))),null;{let{width:u,height:c,data:h}=e,f=e,d=T2(f.data);return{data:d?new na({width:u,height:c}):new na({width:u,height:c},new Uint8Array(h)),pixelRatio:r,stretchX:a,stretchY:n,content:o,textFitWidth:s,textFitHeight:l,sdf:i,version:0,isWebGLImage:d,userImage:f}}}updateImage(e,t){let r=this.style.getImage(e);if(!r)return this.fire(new or(Error("The map has no image with that id. If you are adding a new image use `map.addImage(...)` instead.")));let{width:i,height:a,data:n}=t instanceof HTMLImageElement||Zf(t)?Ss.getImageData(t):t;if(i===void 0||a===void 0)return this.fire(new or(Error("Invalid arguments to map.updateImage(). The second argument must be an `HTMLImageElement`, `ImageData`, `ImageBitmap`, or object with `width`, `height`, and `data` properties with the same format as `ImageData`")));if(i!==r.data.width||a!==r.data.height)return this.fire(new or(Error("The width and height of the updated image must be that same as the previous version of the image")));if(r.isWebGLImage=T2(n),r.isWebGLImage)r.userImage=t;else{let o=!(t instanceof HTMLImageElement||Zf(t));r.data.replace(n,o)}return this.style.updateImage(e,r),this}getImage(e){return this.style.getImage(e)}hasImage(e){return e?!!this.style.getImage(e):(this.fire(new or(Error("Missing required image id"))),!1)}removeImage(e){this.style.removeImage(e)}loadImage(e){return Kt(this,null,function*(){let t=yield Nu.getImage(yield this._requestManager.transformRequest(e,"Image"),new AbortController);if(!t.data)throw Error(`Could not load image ${e}: the response is empty`);return t})}listImages(){var e,t;return(t=(e=this.style)==null?void 0:e.listImages())!=null?t:[]}addLayer(e,t){return this._lazyInitEmptyStyle(),this.style.addLayer(e,t),this._update(!0)}moveLayer(e,t){return this.style.moveLayer(e,t),this._update(!0)}removeLayer(e){return this.style.removeLayer(e),this._update(!0)}getLayer(e){var t;return(t=this.style)==null?void 0:t.getLayer(e)}getLayersOrder(){var e,t;return(t=(e=this.style)==null?void 0:e.getLayersOrder())!=null?t:[]}setLayerZoomRange(e,t,r){return this.style.setLayerZoomRange(e,t,r),this._update(!0)}setFilter(e,t,r={}){var i;return(i=this.style)==null||i.setFilter(e,t,r),this._update(!0)}getFilter(e){return this.style.getFilter(e)}setPaintProperty(e,t,r,i={}){var a;return(a=this.style)==null||a.setPaintProperty(e,t,r,i),this._update(!0)}getPaintProperty(e,t){return this.style.getPaintProperty(e,t)}setLayoutProperty(e,t,r,i={}){return this.style.setLayoutProperty(e,t,r,i),this._update(!0)}getLayoutProperty(e,t){return this.style.getLayoutProperty(e,t)}setGlyphs(e,t={}){return this._lazyInitEmptyStyle(),this.style.setGlyphs(e,t),this._update(!0)}getGlyphs(){return this.style.getGlyphsUrl()}setFontFaces(e){return this._lazyInitEmptyStyle(),this.style.setFontFaces(e),this._update(!0)}getFontFaces(){return this.style.getFontFaces()}addSprite(e,t,r={}){return this._lazyInitEmptyStyle(),this.style.addSprite(e,t,r,i=>{i||this._update(!0)}),this}removeSprite(e){return this._lazyInitEmptyStyle(),this.style.removeSprite(e),this._update(!0)}getSprite(){return this.style.getSprite()}setSprite(e,t={}){return this._lazyInitEmptyStyle(),this.style.setSprite(e,t,r=>{r||this._update(!0)}),this}setLight(e,t={}){return this._lazyInitEmptyStyle(),this.style.setLight(e,t),this._update(!0)}getLight(){return this.style.getLight()}setSky(e,t={}){return this._lazyInitEmptyStyle(),this.style.setSky(e,t),this._update(!0)}getSky(){return this.style.getSky()}setFeatureState(e,t){return this.style.setFeatureState(e,t),this._update()}removeFeatureState(e,t){return this.style.removeFeatureState(e,t),this._update()}getFeatureState(e){return this.style.getFeatureState(e)}getContainer(){return this._container}getCanvasContainer(){return this._canvasContainer}getCanvas(){return this._canvas}_containerDimensions(){let e=0,t=0;return this._container&&(e=Math.floor(this._container.clientWidth)||400,t=Math.floor(this._container.clientHeight)||300),[e,t]}_shouldHandleInitialResize(){var r;if(!((r=this._container)!=null&&r.clientWidth)||!this._container.clientHeight)return!1;let[e,t]=this._containerDimensions();return e!==this._camera.transform.width||t!==this._camera.transform.height}_setupResizeObserver(){var i;let e=!1,t=ZF(a=>{this._trackResize&&!this._removed&&(this.resize(a),this.redraw())},50),r=(i=this._ownerWindow.ResizeObserver)!=null?i:ResizeObserver;this._resizeObserver=new r(a=>{!e&&(e=!0,!this._shouldHandleInitialResize())||t(a)}),this._resizeObserver.observe(this._container)}_resolveContainer(e){if(typeof e=="string"){let t=document.getElementById(e);if(!t)throw Error(`Container '${e}' not found.`);return t}if(e instanceof HTMLElement||e&&typeof e=="object"&&e.nodeType===1)return e;throw Error("Invalid type: 'container' must be a String or HTMLElement.")}_setupContainer(){let e=this._containerDimensions(),t=this._getClampedPixelRatio(e[0],e[1]),r=this._container;r.classList.add("maplibregl-map");let i=this._canvasContainer=wr.create("div","maplibregl-canvas-container",r);this._interactive&&i.classList.add("maplibregl-interactive"),this._canvas=wr.create("canvas","maplibregl-canvas",i),this._canvas.addEventListener("webglcontextlost",this._contextLost,!1),this._canvas.addEventListener("webglcontextrestored",this._contextRestored,!1),this._canvas.setAttribute("tabindex",this._interactive?"0":"-1"),this._canvas.setAttribute("aria-label",this._getUIString("Map.Title")),this._canvas.setAttribute("role","region"),this._resizeCanvas(e[0],e[1],t);let a=this._controlContainer=wr.create("div","maplibregl-control-container",r),n=this._controlPositions={};for(let o of["top-left","top-right","bottom-left","bottom-right"])n[o]=wr.create("div",`maplibregl-ctrl-${o} `,a);this._container.addEventListener("scroll",this._onMapScroll,!1)}_cleanupContainer(){this._canvas.removeEventListener("webglcontextrestored",this._contextRestored,!1),this._canvas.removeEventListener("webglcontextlost",this._contextLost,!1),this._canvasContainer.remove(),this._controlContainer.remove(),this._container.removeEventListener("scroll",this._onMapScroll,!1),this._container.classList.remove("maplibregl-map")}_resizeCanvas(e,t,r){let i=Math.round(r*e),a=Math.round(r*t);this._canvas.width=i,this._canvas.height=a,this._canvas.style.width=`${i/r}px`,this._canvas.style.height=`${a/r}px`}_setupPainter(){let e=Yr(nr({},this._canvasContextAttributes),{alpha:!0,depth:!0,stencil:!0,premultipliedAlpha:!0}),t=null;this._canvas.addEventListener("webglcontextcreationerror",i=>{t=i},{once:!0});let r=this._canvas.getContext("webgl2",e);if(!r)throw new Uue(e,t);this.painter=new SZe(r,this._camera.transform)}migrateProjection(e,t){this._camera.migrateProjection(e,t),this.painter.transform=e,this.fire(new Sle({newProjection:this.style.projection.name}))}loaded(){return!this._styleDirty&&!this._sourcesDirty&&!!this.style&&this.style.loaded()}_update(e){var t;return(t=this.style)!=null&&t._loaded?(this._styleDirty||(this._styleDirty=e),this._sourcesDirty=!0,this.triggerRepaint(),this):this}_requestRenderFrame(e){return this._update(),this._renderTaskQueue.add(e)}_cancelRenderFrame(e){this._renderTaskQueue.remove(e)}_render(e){var o,s,l,u,c;let t=this._idleTriggered?this._fadeDuration:0,r=((o=this.style.projection)==null?void 0:o.transitionState)>0;if(this.painter.context.setDirty(),this.painter.setBaseState(),this._renderTaskQueue.run(e),this._removed)return;let i=!1;if(this.style&&this._styleDirty){this._styleDirty=!1;let h=this._camera.transform.zoom,f=Ei();this.style.zoomHistory.update(h,f);let d=new Di(h,{now:f,fadeDuration:t,zoomHistory:this.style.zoomHistory,transition:this.style.getTransition()}),p=d.crossFadingFactor();(p!==1||p!==this._crossFadingFactor)&&(i=!0,this._crossFadingFactor=p),this.style.update(d)}let a=((s=this.style.projection)==null?void 0:s.transitionState)>0!==r;this._camera.transform.setTransitionState((l=this.style.projection)==null?void 0:l.transitionState),this.style&&(this._sourcesDirty||a)&&(this._sourcesDirty=!1,this.style._updateSources(this._camera.transform)),this.terrain?(this.terrain.tileManager.update(this._camera.transform,this.terrain)&&this.terrain.resetElevationCache(),this._camera.transform.setMinElevationForCurrentTile(this.terrain.getMinTileElevationForLngLatZoom(this._camera.transform.center,this._camera.transform.tileZoom)),!this._camera.elevationFreeze&&this.getCenterClampedToGround()&&this._camera.transform.setElevation(this.terrain.getElevationForLngLat(this._camera.transform.center,this._camera.transform))):(this._camera.transform.setMinElevationForCurrentTile(0),this.getCenterClampedToGround()&&this._camera.transform.setElevation(0)),this._placementDirty=(u=this.style)==null?void 0:u._updatePlacement(this._camera.transform,this.showCollisionBoxes,t,this._crossSourceCollisions,a),this.painter.render(this.style,{showTileBoundaries:this.showTileBoundaries,showOverdrawInspector:this._showOverdrawInspector,rotating:this.isRotating(),zooming:this.isZooming(),moving:this.isMoving(),fadeDuration:t,showPadding:this.showPadding,anisotropicFilterPitch:this.getAnisotropicFilterPitch()}),this.fire(new Rn("render")),this.loaded()&&!this._loaded&&(this._loaded=!0,this.fire(new Rn("load"))),this.style&&(this.style.hasTransitions()||i)&&(this._styleDirty=!0),this.style&&!this._placementDirty&&this.style._releaseSymbolFadeTiles();let n=this._sourcesDirty||this._styleDirty||this._placementDirty||((c=this.painter.renderToTexture)==null?void 0:c.needsFollowUpFrame);return n||this._repaint?this.triggerRepaint():!this.isMoving()&&this.loaded()&&this.fire(new Rn("idle")),this._loaded&&!this._fullyLoaded&&!n&&(this._fullyLoaded=!0),this}redraw(){return this.style&&(this._frameRequest&&(this._frameRequest=(this._frameRequest.abort(),null)),this._render(0)),this}remove(){var t,r;this._hash&&this._hash.remove();for(let i of this._controls)i.onRemove(this);this._controls=[],this._frameRequest&&(this._frameRequest=(this._frameRequest.abort(),null)),this._renderTaskQueue.clear(),(t=this._diffStyleRequest)==null||t.abort(),this.painter.destroy(),this._handlers.destroy(),this.setStyle(null),typeof window<"u"&&this._ownerWindow.removeEventListener("online",this._onWindowOnline,!1),Nu.removeThrottleControl(this._imageQueueHandle),(r=this._resizeObserver)==null||r.disconnect();let e=this.painter.context.gl.getExtension("WEBGL_lose_context");e!=null&&e.loseContext&&e.loseContext(),this._cleanupContainer(),this._removed=!0,this.fire(new Rn("remove"))}triggerRepaint(){this.style&&!this._frameRequest&&(this._frameRequest=new AbortController,Ss.frame(this._frameRequest,e=>{this._frameRequest=null;try{this._render(e)}catch(t){if(!Ah(t))throw t}},()=>{},this._ownerWindow))}get showTileBoundaries(){return!!this._showTileBoundaries}set showTileBoundaries(e){this._showTileBoundaries!==e&&(this._showTileBoundaries=e,this._update())}get showPadding(){return!!this._showPadding}set showPadding(e){this._showPadding!==e&&(this._showPadding=e,this._update())}get showCollisionBoxes(){return!!this._showCollisionBoxes}set showCollisionBoxes(e){this._showCollisionBoxes!==e&&(this._showCollisionBoxes=e,e?this.style._generateCollisionBoxes():this._update())}get showOverdrawInspector(){return!!this._showOverdrawInspector}set showOverdrawInspector(e){this._showOverdrawInspector!==e&&(this._showOverdrawInspector=e,this._update())}get repaint(){return!!this._repaint}set repaint(e){this._repaint!==e&&(this._repaint=e,this.triggerRepaint())}get vertices(){return!!this._vertices}set vertices(e){this._vertices=e,this._update()}get version(){return oYe}getCameraTargetElevation(){return this._camera.transform.elevation}getProjection(){return this.style.getProjection()}setProjection(e){return this._lazyInitEmptyStyle(),this.style.setProjection(e),this._update(!0)}},lYe={showCompass:!0,showZoom:!0,visualizePitch:!1,visualizeRoll:!0},uYe=class{constructor(e){this._updateZoomButtons=()=>{let t=this._map.getZoom(),r=t===this._map.getMaxZoom(),i=t===this._map.getMinZoom(!0);this._zoomInButton.disabled=r,this._zoomOutButton.disabled=i,this._zoomInButton.setAttribute("aria-disabled",r.toString()),this._zoomOutButton.setAttribute("aria-disabled",i.toString())},this._rotateCompassArrow=()=>{let t=this._map.getPitch(),r=this._map.getRoll(),i=this._map.getBearing(),a=1/Math.cos(pa(t))**.5;if(this.options.visualizePitch&&this.options.visualizeRoll){this._compassIcon.style.transform=`scale(${a}) rotateZ(${-r}deg) rotateX(${t}deg) rotateZ(${-i}deg)`;return}if(this.options.visualizePitch){this._compassIcon.style.transform=`scale(${a}) rotateX(${t}deg) rotateZ(${-i}deg)`;return}if(this.options.visualizeRoll){this._compassIcon.style.transform=`rotate(${-i-r}deg)`;return}this._compassIcon.style.transform=`rotate(${-i}deg)`},this._setButtonTitle=(t,r)=>{let i=this._map._getUIString(`NavigationControl.${r}`);t.title=i,t.setAttribute("aria-label",i)},this.options=tr({},lYe,e),this._container=wr.create("div","maplibregl-ctrl maplibregl-ctrl-group"),this._container.addEventListener("contextmenu",t=>t.preventDefault()),this.options.showZoom&&(this._zoomInButton=this._createButton("maplibregl-ctrl-zoom-in",t=>this._map.zoomIn({},{originalEvent:t})),wr.create("span","maplibregl-ctrl-icon",this._zoomInButton).setAttribute("aria-hidden","true"),this._zoomOutButton=this._createButton("maplibregl-ctrl-zoom-out",t=>this._map.zoomOut({},{originalEvent:t})),wr.create("span","maplibregl-ctrl-icon",this._zoomOutButton).setAttribute("aria-hidden","true")),this.options.showCompass&&(this._compass=this._createButton("maplibregl-ctrl-compass",t=>{this.options.visualizePitch?this._map.resetNorthPitch({},{originalEvent:t}):this._map.resetNorth({},{originalEvent:t})}),this._compassIcon=wr.create("span","maplibregl-ctrl-icon",this._compass),this._compassIcon.setAttribute("aria-hidden","true"))}onAdd(e){return this._map=e,this.options.showZoom&&(this._setButtonTitle(this._zoomInButton,"ZoomIn"),this._setButtonTitle(this._zoomOutButton,"ZoomOut"),this._map.on("move",this._updateZoomButtons),this._updateZoomButtons()),this.options.showCompass&&(this._setButtonTitle(this._compass,"ResetBearing"),this.options.visualizePitch&&this._map.on("pitch",this._rotateCompassArrow),this.options.visualizeRoll&&this._map.on("roll",this._rotateCompassArrow),this._map.on("rotate",this._rotateCompassArrow),this._rotateCompassArrow(),this._handler=new cYe(this._map,this._compass,this.options.visualizePitch)),this._container}onRemove(){this._container.remove(),this.options.showZoom&&this._map.off("move",this._updateZoomButtons),this.options.showCompass&&(this.options.visualizePitch&&this._map.off("pitch",this._rotateCompassArrow),this.options.visualizeRoll&&this._map.off("roll",this._rotateCompassArrow),this._map.off("rotate",this._rotateCompassArrow),this._handler.off(),delete this._handler),delete this._map}_createButton(e,t){let r=wr.create("button",e,this._container);return r.type="button",r.addEventListener("click",t),r}},cYe=class{constructor(e,t,r=!1){this.mousedown=a=>{this.startMove(a,wr.mousePos(this.element,a)),window.addEventListener("mousemove",this.mousemove),window.addEventListener("mouseup",this.mouseup)},this.mousemove=a=>{this.move(a,wr.mousePos(this.element,a))},this.mouseup=a=>{this._rotatePitchHandler.dragEnd(a),this.offTemp()},this.touchstart=a=>{a.targetTouches.length===1?(this._startPos=this._lastPos=wr.touchPos(this.element,a.targetTouches)[0],this.startMove(a,this._startPos),window.addEventListener("touchmove",this.touchmove,{passive:!1}),window.addEventListener("touchend",this.touchend)):this.reset()},this.touchmove=a=>{a.targetTouches.length===1?(this._lastPos=wr.touchPos(this.element,a.targetTouches)[0],this.move(a,this._lastPos)):this.reset()},this.touchend=a=>{a.targetTouches.length===0&&this._startPos&&this._lastPos&&this._startPos.dist(this._lastPos){this._rotatePitchHandler.reset(),delete this._startPos,delete this._lastPos,this.offTemp()},this._clickTolerance=10,this.element=t;let i=new UZe;this._rotatePitchHandler=new X2({clickTolerance:3,move:(a,n)=>{let o=t.getBoundingClientRect(),s=new qe((o.bottom-o.top)/2,(o.right-o.left)/2);return{bearingDelta:kk(new qe(a.x,n.y),n,s),pitchDelta:r?(n.y-a.y)*-.5:void 0}},moveStateManager:i,enable:!0,assignEvents:()=>{}}),this.map=e,t.addEventListener("mousedown",this.mousedown),t.addEventListener("touchstart",this.touchstart,{passive:!1}),t.addEventListener("touchcancel",this.reset)}startMove(e,t){this._rotatePitchHandler.dragStart(e,t),wr.disableDrag()}move(e,t){let r=this.map,{bearingDelta:i,pitchDelta:a}=this._rotatePitchHandler.dragMove(e,t)||{};i&&r.setBearing(r.getBearing()+i),a&&r.setPitch(r.getPitch()+a)}off(){let e=this.element;e.removeEventListener("mousedown",this.mousedown),e.removeEventListener("touchstart",this.touchstart),window.removeEventListener("touchmove",this.touchmove),window.removeEventListener("touchend",this.touchend),e.removeEventListener("touchcancel",this.reset),this.offTemp()}offTemp(){wr.enableDrag(),window.removeEventListener("mousemove",this.mousemove),window.removeEventListener("mouseup",this.mouseup),window.removeEventListener("touchmove",this.touchmove),window.removeEventListener("touchend",this.touchend)}};WF={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%)"};ble={ArrowLeft:[-1,0],ArrowRight:[1,0],ArrowUp:[0,-1],ArrowDown:[0,1]},oce="#3FB1CE";ip=class extends Ms{},sce=class extends Ms{},TF=class extends tn{constructor(e){if(super(),this._onClick=t=>{this.fire(new sce("click",{originalEvent:t}))},this._onKeyPress=t=>{(t.code==="Space"||t.code==="Enter")&&this.togglePopup()},this._onKeyDown=t=>{if(!this._defaultMarker||!this._draggable||!this._map||!this._lngLat||t.composedPath()[0]!==this._element||t.altKey||t.ctrlKey||t.metaKey)return;let r=ble[t.key];if(!r)return;t.preventDefault(),t.stopPropagation();let i=t.shiftKey?10:1,a=this._map.project(this._lngLat);this.setLngLat(this._map.unproject(new qe(a.x+r[0]*i,a.y+r[1]*i))),this._keyboardDragActive||(this._keyboardDragActive=!0,this.fire(new ip("dragstart"))),this.fire(new ip("drag"))},this._onKeyUp=t=>{ble[t.key]&&this._endKeyboardDrag()},this._onBlur=()=>{this._endKeyboardDrag()},this._onMapClick=t=>{let r=t.originalEvent.target,i=this._element;this._popup&&(r===i||i.contains(r))&&this.togglePopup()},this._updateCoveredUnthrottled=()=>{var i,a;let t=(i=this._map)==null?void 0:i.terrain;if(!t||!this._isInViewport())return;let r=this._isCovered(t);r&&((a=this._popup)!=null&&a.isOpen())&&this._popup.remove(),this._element.style.opacity=r?this._opacityWhenCovered:this._opacity,this._element.classList.toggle("maplibregl-marker-covered",r)},this._updateCovered=ZF(this._updateCoveredUnthrottled,100),this._update=t=>{if(!this._map)return;this._lngLat=ace(this._lngLat,this._flatPos,this._map._camera.transform),this._flatPos=this._pos=this._map.project(this._lngLat)._add(this._offset),this._map.terrain&&(this._flatPos=this._map._camera.transform.locationToScreenPoint(this._lngLat)._add(this._offset));let r="";this._rotationAlignment==="viewport"||this._rotationAlignment==="auto"?r=`rotateZ(${this._rotation}deg)`:this._rotationAlignment==="map"&&(r=`rotateZ(${this._rotation-this._map.getBearing()}deg)`);let i="";this._pitchAlignment==="viewport"||this._pitchAlignment==="auto"?i="rotateX(0deg)":this._pitchAlignment==="map"&&(i=`rotateX(${this._map.getPitch()}deg)`),!this._subpixelPositioning&&(t==null?void 0:t.type)!=="move"&&(this._pos=this._pos.round()),this._element.style.transform=`${WF[this._anchor]} translate(${this._pos.x}px, ${this._pos.y}px) ${i} ${r}`,this._updateOpacity()},this._onMove=t=>{if(!this._isDragging){let r=this._clickTolerance||this._map._clickTolerance;this._isDragging=t.point.dist(this._pointerdownPos)>=r}this._isDragging&&(this._pos=t.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 ip("dragstart"))),this.fire(new ip("drag")))},this._onUp=()=>{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 ip("dragend")),this._state="inactive"},this._addDragHandler=t=>{this._element.contains(t.originalEvent.target)&&(t.preventDefault(),this._positionDelta=t.point.sub(this._pos).add(this._offset),this._pointerdownPos=t.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))},this._anchor=(e==null?void 0:e.anchor)||"center",this._color=(e==null?void 0:e.color)||oce,this._scale=(e==null?void 0:e.scale)||1,this._draggable=(e==null?void 0:e.draggable)||!1,this._clickTolerance=(e==null?void 0:e.clickTolerance)||0,this._subpixelPositioning=(e==null?void 0:e.subpixelPositioning)||!1,this._isDragging=!1,this._roleManaged=!1,this._tabIndexManaged=!1,this._keyboardDragActive=!1,this._state="inactive",this._rotation=(e==null?void 0:e.rotation)||0,this._rotationAlignment=(e==null?void 0:e.rotationAlignment)||"auto",this._pitchAlignment=e!=null&&e.pitchAlignment&&e.pitchAlignment!=="auto"?e.pitchAlignment:this._rotationAlignment,this.setOpacity(e==null?void 0:e.opacity,e==null?void 0:e.opacityWhenCovered),e==null?void 0:e.element)this._element=e.element,this._offset=qe.convert((e==null?void 0:e.offset)||[0,0]);else{this._defaultMarker=!0,this._element=wr.create("div");let t=fYe().cloneNode(!0);t.setAttributeNS(null,"height",`${41*this._scale}px`),t.setAttributeNS(null,"width",`${27*this._scale}px`),dYe(t).setAttributeNS(null,"fill",this._color),this._element.appendChild(t),this._offset=qe.convert((e==null?void 0:e.offset)||[0,-14])}if(this._element.classList.add("maplibregl-marker"),this._element.addEventListener("dragstart",t=>{t.preventDefault()}),this._element.addEventListener("mousedown",t=>{t.preventDefault()}),nce(this._element,this._anchor,"marker"),e==null?void 0:e.className)for(let t of e.className.split(" "))this._element.classList.add(t);this._popup=null}addTo(e){return this.remove(),this._map=e,this._defaultMarker&&!this._element.hasAttribute("aria-label")&&this._element.setAttribute("aria-label",e._getUIString("Marker.Title")),this._updateAccessibilityRole(),e.getCanvasContainer().appendChild(this._element),e.on("move",this._update),e.on("moveend",this._update),e.on("terrain",this._update),e.on("projectiontransition",this._update),e.on("idle",this._update),this._element.addEventListener("click",this._onClick),this.setDraggable(this._draggable),this._update(),this._map.on("click",this._onMapClick),this}remove(){return this._map&&(this._map.off("click",this._onMapClick),this._map.off("move",this._update),this._map.off("moveend",this._update),this._map.off("terrain",this._update),this._map.off("projectiontransition",this._update),this._map.off("idle",this._update),this._map.off("mousedown",this._addDragHandler),this._map.off("touchstart",this._addDragHandler),this._map.off("mouseup",this._onUp),this._map.off("touchend",this._onUp),this._map.off("mousemove",this._onMove),this._map.off("touchmove",this._onMove),delete this._map),this._element.removeEventListener("click",this._onClick),this._element.removeEventListener("keydown",this._onKeyDown),this._element.removeEventListener("keyup",this._onKeyUp),this._element.removeEventListener("blur",this._onBlur),this._element.removeEventListener("keypress",this._onKeyPress),this._keyboardDragActive=!1,this._element.remove(),this._popup&&this._popup.remove(),this}getLngLat(){return this._lngLat}setLngLat(e){return this._lngLat=ar.convert(e),this._pos=null,this._update(),this._popup&&this._popup.setLngLat(this._lngLat),this}getElement(){return this._element}setPopup(e){if(this._popup&&(this._popup.remove(),this._popup=null,this._element.removeEventListener("keypress",this._onKeyPress)),e){if(!("offset"in e.options)){let t=13.5/Math.SQRT2;e.options.offset=this._defaultMarker?{top:[0,0],"top-left":[0,0],"top-right":[0,0],bottom:[0,-38.1],"bottom-left":[t,(24.6+t)*-1],"bottom-right":[-t,(24.6+t)*-1],left:[13.5,-24.6],right:[-13.5,-24.6]}:this._offset}this._popup=e,this._element.addEventListener("keypress",this._onKeyPress)}return this._updateTabIndex(),this._updateAccessibilityRole(),this}setSubpixelPositioning(e){return this._subpixelPositioning=e,this}_endKeyboardDrag(){this._keyboardDragActive&&(this._keyboardDragActive=!1,this.fire(new ip("dragend")))}getPopup(){return this._popup}togglePopup(){let e=this._popup;if(this._element.style.opacity===this._opacityWhenCovered)return this;if(e)e.isOpen()?e.remove():(e.setLngLat(this._lngLat),e.addTo(this._map));else return this;return this}_updateOpacity(){var r;if(!this._isInViewport())return;let e=(r=this._map)==null?void 0:r.terrain,t=this._map._camera.transform.isLocationOccluded(this._lngLat);if(!e||t){let i=t?this._opacityWhenCovered:this._opacity;this._element.style.opacity!==i&&(this._element.style.opacity=i,this._element.classList.toggle("maplibregl-marker-covered",t));return}this._updateCovered()}_isInViewport(){let{width:e,height:t}=this._map._camera.transform;return!!this._pos&&this._pos.x>=0&&this._pos.y>=0&&this._pos.x<=e&&this._pos.y<=t}_isCovered(e){let t=this._map._camera.transform,r=e.getElevationForLngLat(this._lngLat,t),i=Math.max(0,-this._offset.y)/t.pixelsPerMeter,a=Math.sin(this._map.getPitch()*Math.PI/180)*i;return t.isLocationOccluded(this._lngLat,e,r+a)}getOffset(){return this._offset}setOffset(e){return this._offset=qe.convert(e),this._update(),this}addClassName(e){this._element.classList.add(e)}removeClassName(e){this._element.classList.remove(e)}toggleClassName(e){return this._element.classList.toggle(e)}setDraggable(e){return this._draggable=!!e,this._element.classList.toggle("maplibregl-marker-draggable",this._draggable),this._map&&(e?(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._defaultMarker&&(this._draggable?(this._element.addEventListener("keydown",this._onKeyDown),this._element.addEventListener("keyup",this._onKeyUp),this._element.addEventListener("blur",this._onBlur)):(this._element.removeEventListener("keydown",this._onKeyDown),this._element.removeEventListener("keyup",this._onKeyUp),this._element.removeEventListener("blur",this._onBlur),this._endKeyboardDrag())),this._updateTabIndex(),this._updateAccessibilityRole(),this}isDraggable(){return this._draggable}_updateTabIndex(){this._popup||this._defaultMarker&&this._draggable?this._element.hasAttribute("tabindex")||(this._element.setAttribute("tabindex","0"),this._tabIndexManaged=!0):this._tabIndexManaged&&(this._tabIndexManaged=(this._element.getAttribute("tabindex")==="0"&&this._element.removeAttribute("tabindex"),!1))}_updateAccessibilityRole(){if(!this._defaultMarker||this._element.hasAttribute("role")&&!this._roleManaged)return;let e=this._draggable||this._popup?"button":"img";this._element.setAttribute("role",e),this._roleManaged=!0}setRotation(e){return this._rotation=e||0,this._update(),this}getRotation(){return this._rotation}setRotationAlignment(e){return this._rotationAlignment=e||"auto",this._update(),this}getRotationAlignment(){return this._rotationAlignment}setPitchAlignment(e){return this._pitchAlignment=e&&e!=="auto"?e:this._rotationAlignment,this._update(),this}getPitchAlignment(){return this._pitchAlignment}setOpacity(e,t){return(this._opacity===void 0||e===void 0&&t===void 0)&&(this._opacity="1",this._opacityWhenCovered="0.2"),e!==void 0&&(this._opacity=String(e)),t!==void 0&&(this._opacityWhenCovered=String(t)),this._map&&this._updateOpacity(),this}},pYe={positionOptions:{enableHighAccuracy:!1,maximumAge:0,timeout:6e3},fitBoundsOptions:{maxZoom:15},trackUserLocation:!1,showAccuracyCircle:!0,showUserLocation:!0},r6=0,U2=!1,ap=class extends Ms{},MF=class extends Ms{},lce=class extends Ms{},mYe=class extends tn{constructor(e){super(),this._onSuccess=t=>{if(this._map){if(this._isOutOfMapMaxBounds(t)){this._setErrorState(),this.fire(new MF("outofmaxbounds",t)),this._updateMarker(),this._finish();return}if(this.options.trackUserLocation)switch(this._lastKnownPosition=t,this._watchState){case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active");break;case"BACKGROUND":case"BACKGROUND_ERROR":this._watchState="BACKGROUND",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-background");break;default:throw Error(`Unexpected watchState ${this._watchState}`)}this.options.showUserLocation&&this._watchState!=="OFF"&&this._updateMarker(t),(!this.options.trackUserLocation||this._watchState==="ACTIVE_LOCK")&&this._updateCamera(t),this.options.showUserLocation&&this._dotElement.classList.remove("maplibregl-user-location-dot-stale"),this.fire(new MF("geolocate",t)),this._finish()}},this._updateCamera=t=>{let r=new ar(t.coords.longitude,t.coords.latitude),i=t.coords.accuracy,a=this._map.getBearing(),n=tr({bearing:a},this.options.fitBoundsOptions),o=Vu.fromLngLat(r,i);this._map.fitBounds(o,n,{geolocateSource:!0})},this._updateMarker=t=>{if(t){let r=new ar(t.coords.longitude,t.coords.latitude);this._accuracyCircleMarker.setLngLat(r).addTo(this._map),this._userLocationDotMarker.setLngLat(r).addTo(this._map),this._accuracy=t.coords.accuracy,this._updateCircleRadiusIfNeeded()}else this._userLocationDotMarker.remove(),this._accuracyCircleMarker.remove()},this._onUpdate=()=>{this._updateCircleRadiusIfNeeded()},this._onError=t=>{if(this._map){if(t.code===1){this._watchState="OFF",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background-error"),this._geolocateButton.disabled=!0;let r=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.title=r,this._geolocateButton.setAttribute("aria-label",r),this._geolocationWatchID!==void 0&&this._clearWatch()}else{if(t.code===3&&U2)return;this._setErrorState()}this._watchState!=="OFF"&&this.options.showUserLocation&&this._dotElement.classList.add("maplibregl-user-location-dot-stale"),this.fire(new lce("error",t)),this._finish()}},this._finish=()=>{this._timeoutId&&clearTimeout(this._timeoutId),this._timeoutId=void 0},this._onMoveStart=t=>{if(!this._map)return;let r=(t==null?void 0:t[0])instanceof ResizeObserverEntry;!t.geolocateSource&&this._watchState==="ACTIVE_LOCK"&&!r&&!this._map.isZooming()&&(this._watchState="BACKGROUND",this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active"),this.fire(new ap("trackuserlocationend")),this.fire(new ap("userlocationlostfocus")))},this._setupUI=()=>{this._map&&(this._container.addEventListener("contextmenu",t=>{t.preventDefault()}),this._geolocateButton=wr.create("button","maplibregl-ctrl-geolocate",this._container),wr.create("span","maplibregl-ctrl-icon",this._geolocateButton).setAttribute("aria-hidden","true"),this._geolocateButton.type="button",this._geolocateButton.disabled=!0)},this._finishSetupUI=t=>{if(this._map){if(t===!1){Xr("Geolocation support is not available so the GeolocateControl will be disabled.");let r=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.disabled=!0,this._geolocateButton.title=r,this._geolocateButton.setAttribute("aria-label",r)}else{let r=this._map._getUIString("GeolocateControl.FindMyLocation");this._geolocateButton.disabled=!1,this._geolocateButton.title=r,this._geolocateButton.setAttribute("aria-label",r)}this.options.trackUserLocation&&(this._geolocateButton.setAttribute("aria-pressed","false"),this._watchState="OFF"),this.options.showUserLocation&&(this._dotElement=wr.create("div","maplibregl-user-location-dot"),this._userLocationDotMarker=new TF({element:this._dotElement}),this._circleElement=wr.create("div","maplibregl-user-location-accuracy-circle"),this._accuracyCircleMarker=new TF({element:this._circleElement,pitchAlignment:"map"}),this.options.trackUserLocation&&(this._watchState="OFF"),this._map.on("zoom",this._onUpdate),this._map.on("move",this._onUpdate),this._map.on("rotate",this._onUpdate),this._map.on("pitch",this._onUpdate)),this._geolocateButton.addEventListener("click",()=>this.trigger()),this._setup=!0,this.options.trackUserLocation&&this._map.on("movestart",this._onMoveStart)}},this.options=tr({},pYe,e)}onAdd(e){return this._map=e,this._container=wr.create("div","maplibregl-ctrl maplibregl-ctrl-group"),this._setupUI(),hYe().then(t=>this._finishSetupUI(t)),this._container}onRemove(){this._geolocationWatchID!==void 0&&(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(),this._container.remove(),this._map.off("movestart",this._onMoveStart),this._map.off("zoom",this._onUpdate),this._map.off("move",this._onUpdate),this._map.off("rotate",this._onUpdate),this._map.off("pitch",this._onUpdate),this._map=void 0,r6=0,U2=!1}_isOutOfMapMaxBounds(e){let t=this._map.getMaxBounds(),r=e.coords;return t&&(r.longitudet.getEast()||r.latitudet.getNorth())}_setErrorState(){switch(this._watchState){case"WAITING_ACTIVE":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active-error");break;case"ACTIVE_LOCK":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-waiting");break;case"BACKGROUND":this._watchState="BACKGROUND_ERROR",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-waiting");break;case"ACTIVE_ERROR":case"BACKGROUND_ERROR":break;case"OFF":case void 0:break;default:throw Error(`Unexpected watchState ${this._watchState}`)}}_updateCircleRadiusIfNeeded(){let e=this._userLocationDotMarker.getLngLat();if(!this.options.showUserLocation||!this.options.showAccuracyCircle||!this._accuracy||!e)return;let t=this._map.project(e),r=this._map.unproject([t.x+100,t.y]),i=e.distanceTo(r)/100,a=2*this._accuracy/i;this._circleElement.style.width=`${a.toFixed(2)}px`,this._circleElement.style.height=`${a.toFixed(2)}px`}trigger(){if(!this._setup)return Xr("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 ap("trackuserlocationstart"));break;case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":case"BACKGROUND_ERROR":r6--,U2=!1,this._watchState="OFF",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background-error"),this.fire(new ap("trackuserlocationend"));break;case"BACKGROUND":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background"),this._lastKnownPosition&&this._updateCamera(this._lastKnownPosition),this.fire(new ap("trackuserlocationstart")),this.fire(new ap("userlocationfocus"));break;default:throw Error(`Unexpected watchState ${this._watchState}`)}switch(this._watchState){case"WAITING_ACTIVE":this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active");break;case"ACTIVE_LOCK":this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active");break;case"OFF":break;default:throw Error(`Unexpected watchState ${this._watchState}`)}if(this._watchState==="OFF"&&this._geolocationWatchID!==void 0)this._clearWatch();else if(this._geolocationWatchID===void 0){this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","true"),r6++;let e;r6>1?(e={maximumAge:6e5,timeout:0},U2=!0):(e=this.options.positionOptions,U2=!1),this._geolocationWatchID=window.navigator.geolocation.watchPosition(this._onSuccess,this._onError,e)}}else window.navigator.geolocation.getCurrentPosition(this._onSuccess,this._onError,this.options.positionOptions),this._timeoutId=setTimeout(this._finish,1e4);return!0}_clearWatch(){window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0,this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","false"),this.options.showUserLocation&&this._updateMarker(null)}},vYe={maxWidth:100,unit:"metric"},gYe=class{constructor(e){this._onMove=()=>{wle(this._map,this._container,this.options)},this.setUnit=t=>{this.options.unit=t,wle(this._map,this._container,this.options)},this.options=nr(nr({},vYe),e)}getDefaultPosition(){return"bottom-left"}onAdd(e){return this._map=e,this._container=wr.create("div","maplibregl-ctrl maplibregl-ctrl-scale",e.getContainer()),this._map.on("move",this._onMove),this._onMove(),this._container}onRemove(){this._container.remove(),this._map.off("move",this._onMove),this._map=void 0}};DF=class extends Ms{},xYe=class extends tn{constructor(e={}){var t;super(),this._onFullscreenChange=()=>{var i;let r=window.document.fullscreenElement||window.document.webkitFullscreenElement;for(;(i=r==null?void 0:r.shadowRoot)!=null&&i.fullscreenElement;)r=r.shadowRoot.fullscreenElement;r===this._container!==this._fullscreen&&this._handleFullscreenChange()},this._onClickFullscreen=()=>{this._isFullscreen()?this._exitFullscreen():this._requestFullscreen()},this._fullscreen=!1,this._pseudo=(t=e.pseudo)!=null?t:!1,e!=null&&e.container&&(e.container instanceof HTMLElement?this._container=e.container:Xr("Full screen control 'container' must be a DOM element.")),"onfullscreenchange"in document?this._fullscreenchange="fullscreenchange":"onmozfullscreenchange"in document?this._fullscreenchange="mozfullscreenchange":"onwebkitfullscreenchange"in document?this._fullscreenchange="webkitfullscreenchange":"onmsfullscreenchange"in document&&(this._fullscreenchange="MSFullscreenChange")}onAdd(e){return this._map=e,this._container||(this._container=this._map.getContainer()),this._controlContainer=wr.create("div","maplibregl-ctrl maplibregl-ctrl-group"),this._setupUI(),this._controlContainer}onRemove(){this._controlContainer.remove(),this._map=null,window.document.removeEventListener(this._fullscreenchange,this._onFullscreenChange)}_setupUI(){let e=this._fullscreenButton=wr.create("button","maplibregl-ctrl-fullscreen",this._controlContainer);wr.create("span","maplibregl-ctrl-icon",e).setAttribute("aria-hidden","true"),e.type="button",this._updateTitle(),this._fullscreenButton.addEventListener("click",this._onClickFullscreen),window.document.addEventListener(this._fullscreenchange,this._onFullscreenChange)}_updateTitle(){let e=this._getTitle();this._fullscreenButton.setAttribute("aria-label",e),this._fullscreenButton.title=e}_getTitle(){return this._map._getUIString(this._isFullscreen()?"FullscreenControl.Exit":"FullscreenControl.Enter")}_isFullscreen(){return this._fullscreen}_handleFullscreenChange(){this._fullscreen=!this._fullscreen,this._fullscreenButton.classList.toggle("maplibregl-ctrl-shrink"),this._fullscreenButton.classList.toggle("maplibregl-ctrl-fullscreen"),this._updateTitle(),this._fullscreen?(this.fire(new DF("fullscreenstart")),this._prevCooperativeGesturesEnabled=this._map.cooperativeGestures.isEnabled(),this._map.cooperativeGestures.disable()):(this.fire(new DF("fullscreenend")),this._prevCooperativeGesturesEnabled&&this._map.cooperativeGestures.enable())}_exitFullscreen(){this._pseudo?this._togglePseudoFullScreen():window.document.exitFullscreen?window.document.exitFullscreen():window.document.webkitCancelFullScreen?window.document.webkitCancelFullScreen():this._togglePseudoFullScreen()}_requestFullscreen(){this._pseudo?this._togglePseudoFullScreen():this._container.requestFullscreen?this._container.requestFullscreen():this._container.webkitRequestFullscreen?this._container.webkitRequestFullscreen():this._togglePseudoFullScreen()}_togglePseudoFullScreen(){this._container.classList.toggle("maplibregl-pseudo-fullscreen"),this._handleFullscreenChange(),this._map.resize()}},bYe=class{constructor(e){this._toggleTerrain=()=>{this._map.getTerrain()?this._map.setTerrain(null):this._map.setTerrain(this.options),this._updateTerrainIcon()},this._updateTerrainIcon=()=>{this._terrainButton.classList.remove("maplibregl-ctrl-terrain"),this._terrainButton.classList.remove("maplibregl-ctrl-terrain-enabled"),this._map.terrain?(this._terrainButton.classList.add("maplibregl-ctrl-terrain-enabled"),this._terrainButton.title=this._map._getUIString("TerrainControl.Disable")):(this._terrainButton.classList.add("maplibregl-ctrl-terrain"),this._terrainButton.title=this._map._getUIString("TerrainControl.Enable"))},this.options=e}onAdd(e){return this._map=e,this._container=wr.create("div","maplibregl-ctrl maplibregl-ctrl-group"),this._terrainButton=wr.create("button","maplibregl-ctrl-terrain",this._container),wr.create("span","maplibregl-ctrl-icon",this._terrainButton).setAttribute("aria-hidden","true"),this._terrainButton.type="button",this._terrainButton.addEventListener("click",this._toggleTerrain),this._updateTerrainIcon(),this._map.on("terrain",this._updateTerrainIcon),this._container}onRemove(){this._container.remove(),this._map.off("terrain",this._updateTerrainIcon),this._map=void 0}},wYe=class{constructor(){this._toggleProjection=()=>{var t;let e=(t=this._map.getProjection())==null?void 0:t.type;e==="mercator"||!e?this._map.setProjection({type:"globe"}):this._map.setProjection({type:"mercator"}),this._updateGlobeIcon()},this._updateGlobeIcon=()=>{var e;this._globeButton.classList.remove("maplibregl-ctrl-globe"),this._globeButton.classList.remove("maplibregl-ctrl-globe-enabled"),((e=this._map.getProjection())==null?void 0:e.type)==="globe"?(this._globeButton.classList.add("maplibregl-ctrl-globe-enabled"),this._globeButton.title=this._map._getUIString("GlobeControl.Disable")):(this._globeButton.classList.add("maplibregl-ctrl-globe"),this._globeButton.title=this._map._getUIString("GlobeControl.Enable"))}}onAdd(e){return this._map=e,this._container=wr.create("div","maplibregl-ctrl maplibregl-ctrl-group"),this._globeButton=wr.create("button","maplibregl-ctrl-globe",this._container),wr.create("span","maplibregl-ctrl-icon",this._globeButton).setAttribute("aria-hidden","true"),this._globeButton.type="button",this._globeButton.addEventListener("click",this._toggleProjection),this._updateGlobeIcon(),this._map.on("styledata",this._updateGlobeIcon),this._map.on("projectiontransition",this._updateGlobeIcon),this._container}onRemove(){this._container.remove(),this._map.off("styledata",this._updateGlobeIcon),this._map.off("projectiontransition",this._updateGlobeIcon),this._globeButton.removeEventListener("click",this._toggleProjection),this._map=void 0}},AYe={closeButton:!0,closeOnClick:!0,focusAfterOpen:!0,className:"",maxWidth:"240px",subpixelPositioning:!1,locationOccludedOpacity:void 0,padding:void 0},TYe=["a[href]","[tabindex]:not([tabindex='-1'])","[contenteditable]:not([contenteditable='false'])","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].join(", "),SF=class extends Ms{},MYe=class extends tn{constructor(e){super(),this._updateOpacity=()=>{this.options.locationOccludedOpacity!==void 0&&(this._map._camera.transform.isLocationOccluded(this.getLngLat())?this._container.style.opacity=`${this.options.locationOccludedOpacity}`:this._container.style.opacity="")},this.remove=()=>(this._content&&this._content.remove(),this._container&&(this._container.remove(),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("terrain",this._update),this._map.off("projectiontransition",this._update),this._map.off("idle",this._update),this._map.off("mousemove",this._update),this._map.off("mouseup",this._update),this._map.off("drag",this._update),this._map._canvasContainer.classList.remove("maplibregl-track-pointer"),delete this._map,this.fire(new SF("close"))),this),this._update=t=>{let r=this._lngLat||this._trackPointer;if(!this._map||!r||!this._content)return;if(!this._container){if(this._container=wr.create("div","maplibregl-popup",this._map.getContainer()),this._tip=wr.create("div","maplibregl-popup-tip",this._container),this._container.appendChild(this._content),this.options.className)for(let l of this.options.className.split(" "))this._container.classList.add(l);this._closeButton&&this._closeButton.setAttribute("aria-label",this._map._getUIString("Popup.Close")),this._trackPointer&&this._container.classList.add("maplibregl-popup-track-pointer")}this.options.maxWidth&&this._container.style.maxWidth!==this.options.maxWidth&&(this._container.style.maxWidth=this.options.maxWidth),this._lngLat=ace(this._lngLat,this._flatPos,this._map._camera.transform,this._trackPointer);let i;if(t&&"point"in t&&t.point&&(i=t.point),this._trackPointer&&!i)return;let a=this._flatPos=this._pos=this._trackPointer&&i?i:this._map.project(this._lngLat);this._map.terrain&&(this._flatPos=this._trackPointer&&i?i:this._map._camera.transform.locationToScreenPoint(this._lngLat));let n=this.options.anchor,o=uce(this.options.offset);if(!n){let l=this._container.offsetWidth,u=this._container.offsetHeight,c=DYe(this.options.padding),h;h=a.y+o.bottom.ythis._map._camera.transform.height-u-c.bottom?["bottom"]:[],a.xthis._map._camera.transform.width-l/2-c.right&&h.push("right"),n=h.length===0?"bottom":h.join("-")}let s=a.add(o[n]);this.options.subpixelPositioning||(s=s.round()),this._container.style.transform=`${WF[n]} translate(${s.x}px,${s.y}px)`,nce(this._container,n,"popup"),this._updateOpacity()},this._onClose=()=>{this.remove()},this.options=tr(Object.create(AYe),e)}addTo(e){return this._map&&this.remove(),this._map=e,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._map.on("terrain",this._update),this._map.on("projectiontransition",this._update),this._map.on("idle",this._update),this._update(),this._focusFirstElement(),this._trackPointer?(this._map.on("mousemove",this._update),this._map.on("mouseup",this._update),this._container&&this._container.classList.add("maplibregl-popup-track-pointer"),this._map._canvasContainer.classList.add("maplibregl-track-pointer")):this._map.on("move",this._update),this.fire(new SF("open")),this}isOpen(){return!!this._map}getLngLat(){return this._lngLat}setLngLat(e){return this._lngLat=ar.convert(e),this._pos=null,this._flatPos=null,this._trackPointer=!1,this._update(),this._map&&(this._map.on("move",this._update),this._map.off("mousemove",this._update),this._container&&this._container.classList.remove("maplibregl-popup-track-pointer"),this._map._canvasContainer.classList.remove("maplibregl-track-pointer")),this}trackPointer(){return this._trackPointer=!0,this._pos=null,this._flatPos=null,this._update(),this._map&&(this._map.off("move",this._update),this._map.on("mousemove",this._update),this._map.on("drag",this._update),this._container&&this._container.classList.add("maplibregl-popup-track-pointer"),this._map._canvasContainer.classList.add("maplibregl-track-pointer")),this}getElement(){return this._container}setText(e){return this.setDOMContent(document.createTextNode(e))}setHTML(e){let t=document.createDocumentFragment(),r=document.createElement("body"),i;for(r.innerHTML=e;i=r.firstChild,i;)t.appendChild(i);return this.setDOMContent(t)}getMaxWidth(){var e;return(e=this._container)==null?void 0:e.style.maxWidth}setMaxWidth(e){return this.options.maxWidth=e,this._update(),this}setDOMContent(e){if(this._content)for(;this._content.hasChildNodes();)this._content.firstChild&&this._content.removeChild(this._content.firstChild);else this._content=wr.create("div","maplibregl-popup-content",this._container);return this._content.appendChild(e),this._createCloseButton(),this._update(),this._focusFirstElement(),this}addClassName(e){return this._container&&this._container.classList.add(e),this}removeClassName(e){return this._container&&this._container.classList.remove(e),this}setOffset(e){return this.options.offset=e,this._update(),this}toggleClassName(e){if(this._container)return this._container.classList.toggle(e)}setSubpixelPositioning(e){this.options.subpixelPositioning=e}setPadding(e){this.options.padding=e,this._update()}_createCloseButton(){this.options.closeButton&&(this._closeButton=wr.create("button","maplibregl-popup-close-button",this._content),this._closeButton.type="button",this._closeButton.innerHTML="×",this._closeButton.addEventListener("click",this._onClose))}_focusFirstElement(){if(!this.options.focusAfterOpen||!this._container)return;let e=this._container.querySelector(TYe);e&&e.focus()}};SYe=Ale});var pce=X((mht,dce)=>{"use strict";dce.exports='var D1=Object.defineProperty,_1=Object.defineProperties;var A1=Object.getOwnPropertyDescriptors;var lh=Object.getOwnPropertySymbols;var S1=Object.prototype.hasOwnProperty,E1=Object.prototype.propertyIsEnumerable;var uh=(t,e,r)=>e in t?D1(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Xe=(t,e)=>{for(var r in e||(e={}))S1.call(e,r)&&uh(t,r,e[r]);if(lh)for(var r of lh(e))E1.call(e,r)&&uh(t,r,e[r]);return t},Si=(t,e)=>_1(t,A1(e));var et=(t,e,r)=>new Promise((i,n)=>{var a=l=>{try{o(r.next(l))}catch(u){n(u)}},s=l=>{try{o(r.throw(l))}catch(u){n(u)}},o=l=>l.done?i(l.value):Promise.resolve(l.value).then(a,s);o((r=r.apply(t,e)).next())});var F1=Object.create,Dp=Object.defineProperty,T1=Object.getOwnPropertyDescriptor,k1=Object.getOwnPropertyNames,I1=Object.getPrototypeOf,_p=Object.prototype.hasOwnProperty,ml=(t,e)=>()=>(e||(t((e={exports:{}}).exports,e),t=null),e.exports),C1=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(var n=k1(e),a=0,s=n.length,o;ae[l]).bind(null,o),enumerable:!(i=T1(e,o))||i.enumerable});return t},M1=(t,e,r)=>(r=t==null?{}:F1(I1(t)),C1(e||!t||!t.__esModule||!_p.call(t,"default")?Dp(r,"default",{value:t,enumerable:!0}):r,t));function M(t,e){this.x=t,this.y=e}M.prototype={clone(){return new M(this.x,this.y)},add(t){return this.clone()._add(t)},sub(t){return this.clone()._sub(t)},multByPoint(t){return this.clone()._multByPoint(t)},divByPoint(t){return this.clone()._divByPoint(t)},mult(t){return this.clone()._mult(t)},div(t){return this.clone()._div(t)},rotate(t){return this.clone()._rotate(t)},rotateAround(t,e){return this.clone()._rotateAround(t,e)},matMult(t){return this.clone()._matMult(t)},unit(){return this.clone()._unit()},perp(){return this.clone()._perp()},round(){return this.clone()._round()},mag(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals(t){return this.x===t.x&&this.y===t.y},dist(t){return Math.sqrt(this.distSqr(t))},distSqr(t){let e=t.x-this.x,r=t.y-this.y;return e*e+r*r},angle(){return Math.atan2(this.y,this.x)},angleTo(t){return Math.atan2(this.y-t.y,this.x-t.x)},angleWith(t){return this.angleWithSep(t.x,t.y)},angleWithSep(t,e){return Math.atan2(this.x*e-this.y*t,this.x*t+this.y*e)},_matMult(t){let e=t[0]*this.x+t[1]*this.y,r=t[2]*this.x+t[3]*this.y;return this.x=e,this.y=r,this},_add(t){return this.x+=t.x,this.y+=t.y,this},_sub(t){return this.x-=t.x,this.y-=t.y,this},_mult(t){return this.x*=t,this.y*=t,this},_div(t){return this.x/=t,this.y/=t,this},_multByPoint(t){return this.x*=t.x,this.y*=t.y,this},_divByPoint(t){return this.x/=t.x,this.y/=t.y,this},_unit(){return this._div(this.mag()),this},_perp(){let t=this.y;return this.y=this.x,this.x=-t,this},_rotate(t){let e=Math.cos(t),r=Math.sin(t),i=e*this.x-r*this.y,n=r*this.x+e*this.y;return this.x=i,this.y=n,this},_rotateAround(t,e){let r=Math.cos(t),i=Math.sin(t),n=e.x+r*(this.x-e.x)-i*(this.y-e.y),a=e.y+i*(this.x-e.x)+r*(this.y-e.y);return this.x=n,this.y=a,this},_round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},constructor:M},M.convert=function(t){if(t instanceof M)return t;if(Array.isArray(t))return new M(+t[0],+t[1]);if(t.x!==void 0&&t.y!==void 0)return new M(+t.x,+t.y);throw Error("Expected [x, y] or {x, y} point format")};function B1(t,e,r,i){let n=3*t,a=3*(r-t)-n,s=1-n-a,o=3*e,l=3*(i-e)-o,u=1-o-l;return function(h,c=1e-6){if(h<=0)return 0;if(h>=1)return 1;let p=h;for(let y=0;y<8;y++){let m=((s*p+a)*p+n)*p-h;if(Math.abs(m)m?f=p:d=p,p=(f+d)*.5}return((u*p+l)*p+o)*p}}var Ei;function P1(){return Ei!=null||(Ei=typeof OffscreenCanvas<"u"&&!!new OffscreenCanvas(1,1).getContext("2d")&&typeof createImageBitmap=="function"),Ei}var Xn;function z1(){if(Xn==null&&(Xn=!1,P1())){let t=new OffscreenCanvas(5,5).getContext("2d",{willReadFrequently:!0});if(t){for(let r=0;r<25;r++){let i=r*4;t.fillStyle=`rgb(${i},${i+1},${i+2})`,t.fillRect(r%5,Math.floor(r/5),1,1)}let e=t.getImageData(0,0,5,5).data;for(let r=0;r<100;r++)if(r%4!=3&&e[r]!==r){Xn=!0;break}}}return Xn||!1}var fe=typeof Float32Array<"u"?Float32Array:Array;function L1(){var t=new fe(9);return fe!=Float32Array&&(t[1]=0,t[2]=0,t[3]=0,t[5]=0,t[6]=0,t[7]=0),t[0]=1,t[4]=1,t[8]=1,t}function Ap(){var t=new fe(3);return fe!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0),t}function V1(t){var e=t[0],r=t[1],i=t[2];return Math.sqrt(e*e+r*r+i*i)}function hh(t,e,r){var i=new fe(3);return i[0]=t,i[1]=e,i[2]=r,i}function O1(t,e){var r=e[0],i=e[1],n=e[2],a=r*r+i*i+n*n;return a>0&&(a=1/Math.sqrt(a)),t[0]=e[0]*a,t[1]=e[1]*a,t[2]=e[2]*a,t}function R1(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function ks(t,e,r){var i=e[0],n=e[1],a=e[2],s=r[0],o=r[1],l=r[2];return t[0]=n*l-a*o,t[1]=a*s-i*l,t[2]=i*o-n*s,t}var $1=V1;(function(){var t=Ap();return function(e,r,i,n,a,s){var o,l;for(r||(r=3),i||(i=0),l=n?Math.min(n*r+i,e.length):e.length,o=i;o0&&(s=1/Math.sqrt(s)),t[0]=r*s,t[1]=i*s,t[2]=n*s,t[3]=a*s,t}function q1(t,e,r){var i=e[0],n=e[1],a=e[2],s=e[3];return t[0]=r[0]*i+r[4]*n+r[8]*a+r[12]*s,t[1]=r[1]*i+r[5]*n+r[9]*a+r[13]*s,t[2]=r[2]*i+r[6]*n+r[10]*a+r[14]*s,t[3]=r[3]*i+r[7]*n+r[11]*a+r[15]*s,t}(function(){var t=N1();return function(e,r,i,n,a,s){var o,l;for(r||(r=4),i||(i=0),l=n?Math.min(n*r+i,e.length):e.length,o=i;o1e-6?(p=Math.acos(f),d=Math.sin(p),y=Math.sin((1-i)*p)/d,m=Math.sin(i*p)/d):(y=1-i,m=i),t[0]=y*n+m*l,t[1]=y*a+m*u,t[2]=y*s+m*h,t[3]=y*o+m*c,t}function G1(t,e){var r=e[0]+e[4]+e[8],i;if(r>0)i=Math.sqrt(r+1),t[3]=.5*i,i=.5/i,t[0]=(e[5]-e[7])*i,t[1]=(e[6]-e[2])*i,t[2]=(e[1]-e[3])*i;else{var n=0;e[4]>e[0]&&(n=1),e[8]>e[n*3+n]&&(n=2);var a=(n+1)%3,s=(n+2)%3;i=Math.sqrt(e[n*3+n]-e[a*3+a]-e[s*3+s]+1),t[n]=.5*i,i=.5/i,t[3]=(e[a*3+s]-e[s*3+a])*i,t[a]=(e[a*3+n]+e[n*3+a])*i,t[s]=(e[s*3+n]+e[n*3+s])*i}return t}var ph=U1;(function(){var t=Ap(),e=hh(1,0,0),r=hh(0,1,0);return function(i,n,a){var s=R1(n,a);return s<-.999999?(ks(t,e,n),$1(t)<1e-6&&ks(t,r,n),O1(t,t),j1(i,t,Math.PI),i):s>.999999?(i[0]=0,i[1]=0,i[2]=0,i[3]=1,i):(ks(t,n,a),i[0]=t[0],i[1]=t[1],i[2]=t[2],i[3]=1+s,ph(i,i))}})(),(function(){var t=ch(),e=ch();return function(r,i,n,a,s,o){return Is(t,i,s,o),Is(e,n,a,o),Is(r,t,e,2*o*(1-o)),r}})(),(function(){var t=L1();return function(e,r,i,n){return t[0]=i[0],t[3]=i[1],t[6]=i[2],t[1]=n[0],t[4]=n[1],t[7]=n[2],t[2]=-r[0],t[5]=-r[1],t[8]=-r[2],ph(e,G1(e,t))}})();function X1(){var t=new fe(2);return fe!=Float32Array&&(t[0]=0,t[1]=0),t}(function(){var t=X1();return function(e,r,i,n,a,s){var o,l;for(r||(r=2),i||(i=0),l=n?Math.min(n*r+i,e.length):e.length,o=i;o=1)return 1;let e=t*t,r=e*t;return 4*(t<.5?r:3*(t-e)+r-.75)}function W1(t,e,r,i){return B1(t,e,r,i)}var D5=W1(.25,.1,.25,1);function en(t,e,r){return Math.min(r,Math.max(e,t))}function Z1(t,e,r){let i=r-e,n=((t-e)%i+i)%i+e;return n===e?r:n}function Xt(t,...e){for(let r of e)for(let i in r)t[i]=r[i];return t}function H1(t){return Math.log(t)/Math.LN2%1==0}function xn(t,e,r){let i={};for(let n in t)i[n]=e.call(r||this,t[n],n,t);return i}function K1(t,e,r){let i={};for(let n in t)e.call(r||this,t[n],n,t)&&(i[n]=t[n]);return i}function to(t,e){if(Array.isArray(t)){if(!Array.isArray(e)||t.length!==e.length)return!1;for(let r=0;r(e.y-t.y)*(r.x-t.x)}function vr(t){return typeof WorkerGlobalScope<"u"&&t!==void 0&&t instanceof WorkerGlobalScope}function Ba(t){return typeof ImageBitmap<"u"&&t instanceof ImageBitmap}function J1(t,e,r,i,n){let a=Math.max(-e,0)*4,s=(Math.max(0,r)-r)*i*4+a,o=i*4,l=Math.max(0,e),u=Math.max(0,r),h=Math.min(t.width,e+i),c=Math.min(t.height,r+n);return{rect:{x:l,y:u,width:h-l,height:c-u},layout:[{offset:s,stride:o}]}}function Q1(t,e,r,i,n){return et(this,null,function*(){if(typeof VideoFrame>"u")throw Error("VideoFrame not supported");let a=new VideoFrame(t,{timestamp:0});try{let s=a==null?void 0:a.format;if(!s||!(s.startsWith("BGR")||s.startsWith("RGB")))throw Error(`Unrecognized format ${s}`);let o=s.startsWith("BGR"),l=new Uint8ClampedArray(i*n*4);if(yield a.copyTo(l,J1(t,e,r,i,n)),o)for(let u=0;u{t.removeEventListener(e,r,i)}}}function yh(t){return t*Math.PI/180}var mh="AbortError",gl=class extends Error{constructor(t=mh){super(t instanceof Error?t.message:t),this.name=mh,t instanceof Error&&t.stack&&(this.stack=t.stack)}};function xl(t){return t instanceof Error&&t.name==="AbortError"}function e0(t){if(t.aborted)throw new gl(t.reason)}var vl={MAX_PARALLEL_IMAGE_REQUESTS:16,MAX_PARALLEL_IMAGE_REQUESTS_PER_FRAME:8,MAX_TILE_CACHE_ZOOM_LEVELS:5,REGISTERED_PROTOCOLS:{},WORKER_URL:""};function r0(t){return vl.REGISTERED_PROTOCOLS[t.substring(0,t.indexOf("://"))]}function Fp(t,e){vl.REGISTERED_PROTOCOLS[t]=e}function Tp(t){delete vl.REGISTERED_PROTOCOLS[t]}var gh="global-dispatcher",ga=class extends Error{constructor(t,e,r,i){super(`AJAXError: ${e} (${t}): ${r}`),this.status=t,this.statusText=e,this.url=r,this.body=i}};function kp(){var t;if(vr(self))return(t=self.worker)==null?void 0:t.referrer;if(window.location.protocol==="blob:")try{return window.parent.location.href}catch(e){}return window.location.href}var i0=t=>{var e;return t.startsWith("file:")||((e=kp())==null?void 0:e.startsWith("file:"))&&!/^\\w+:/.test(t)};function n0(t,e){return et(this,null,function*(){let r=new Request(t.url,{method:t.method||"GET",body:t.body,credentials:t.credentials,headers:t.headers,cache:t.cache,referrer:kp(),referrerPolicy:t.referrerPolicy,signal:e.signal});t.type==="json"&&!r.headers.has("Accept")&&r.headers.set("Accept","application/json");let i;try{i=yield fetch(r)}catch(s){throw xl(s)?s:new ga(0,tn(s).message,t.url,new Blob)}if(!i.ok){let s=yield i.blob();throw new ga(i.status,i.statusText,t.url,s)}let n;n=t.type==="arrayBuffer"||t.type==="image"?i.arrayBuffer():t.type==="json"?i.json():i.text();let a=yield n;return e0(e.signal),{data:a,cacheControl:i.headers.get("Cache-Control"),expires:i.headers.get("Expires"),etag:i.headers.get("ETag")}})}function a0(t,e){return new Promise((r,i)=>{var a;let n=new XMLHttpRequest;n.open(t.method||"GET",t.url,!0),(t.type==="arrayBuffer"||t.type==="image")&&(n.responseType="arraybuffer");for(let s in t.headers)n.setRequestHeader(s,t.headers[s]);t.type==="json"&&(n.responseType="text",(a=t.headers)!=null&&a.Accept||n.setRequestHeader("Accept","application/json")),n.withCredentials=t.credentials==="include",n.onerror=()=>{i(Error(n.statusText))},n.onload=()=>{if(!e.signal.aborted)if((n.status>=200&&n.status<300||n.status===0)&&n.response!==null){let s=n.response;if(t.type==="json")try{s=JSON.parse(n.response)}catch(o){i(o);return}r({data:s,cacheControl:n.getResponseHeader("Cache-Control"),expires:n.getResponseHeader("Expires"),etag:n.getResponseHeader("ETag")})}else{let s=new Blob([n.response],{type:n.getResponseHeader("Content-Type")});i(new ga(n.status,n.statusText,t.url,s))}},e.signal.addEventListener("abort",()=>{n.abort(),i(new gl(e.signal.reason))}),n.send(t.body)})}var Pa=function(t,e){return et(this,null,function*(){var r,i;if(t.url.includes("://")&&!/^https?:|^file:/.test(t.url)){let n=r0(t.url);if(n){let a=yield n(t,e);return!a.data&&t.type==="arrayBuffer"?Xt(a,{data:new ArrayBuffer(0)}):a}if(vr(self)&&((r=self.worker)!=null&&r.actor))return self.worker.actor.sendAsync({type:"GR",data:t,targetMapId:gh},e)}if(!i0(t.url)){if(fetch&&Request&&AbortController&&Object.hasOwn(Request.prototype,"signal"))return n0(t,e);if(vr(self)&&((i=self.worker)!=null&&i.actor))return self.worker.actor.sendAsync({type:"GR",data:t,mustQueue:!0,targetMapId:gh},e)}return a0(t,e)})},Ip=(t,e)=>Pa(Xt(t,{type:"json"}),e),Cp=(t,e)=>Pa(Xt(t,{type:"arrayBuffer"}),e);function xh(t,e,r){var i;(i=r[t])!=null&&i.includes(e)||(r[t]||(r[t]=[]),r[t].push(e))}function Cs(t,e,r){if(r!=null&&r[t]){let i=r[t].indexOf(e);i!==-1&&r[t].splice(i,1)}}var Mp=class{constructor(t,e={}){Xt(this,e),this.type=t}},xa=class extends Mp{constructor(t,e={}){super("error",Xt({error:t},e))}},s0=class{on(t,e){return this._listeners||(this._listeners={}),xh(t,e,this._listeners),{unsubscribe:()=>{this.off(t,e)}}}off(t,e){return Cs(t,e,this._listeners),Cs(t,e,this._oneTimeListeners),this}once(t,e){return e?(this._oneTimeListeners||(this._oneTimeListeners={}),xh(t,e,this._oneTimeListeners),this):new Promise(r=>this.once(t,r))}fire(t,e){var n,a,s,o,l,u;let r=typeof t=="string"?new Mp(t,e||{}):t,i=r.type;if(this.listens(i)){r.target=this;let h=(s=(a=(n=this._listeners)==null?void 0:n[i])==null?void 0:a.slice())!=null?s:[];for(let f of h)f.call(this,r);let c=(u=(l=(o=this._oneTimeListeners)==null?void 0:o[i])==null?void 0:l.slice())!=null?u:[];for(let f of c)Cs(i,f,this._oneTimeListeners),f.call(this,r);let p=this._eventedParent;p&&(Xt(r,typeof this._eventedParentData=="function"?this._eventedParentData():this._eventedParentData),p.fire(r))}else r instanceof xa&&console.error(r.error);return this}listens(t){var e,r,i,n,a;return!!((r=(e=this._listeners)==null?void 0:e[t])!=null&&r.length||(n=(i=this._oneTimeListeners)==null?void 0:i[t])!=null&&n.length||(a=this._eventedParent)!=null&&a.listens(t))}setEventedParent(t,e){return this._eventedParent=t,this._eventedParentData=e,this}},Bp={$version:8,$root:{version:{required:!0,type:"enum",values:[8]},name:{type:"string"},metadata:{type:"*"},center:{type:"array",value:"number",length:2},centerAltitude:{type:"number"},zoom:{type:"number"},bearing:{type:"number",default:0,period:360,units:"degrees"},pitch:{type:"number",default:0,units:"degrees"},roll:{type:"number",default:0,units:"degrees"},state:{type:"state",default:{}},light:{type:"light"},sky:{type:"sky"},projection:{type:"projection"},terrain:{type:"terrain"},sources:{required:!0,type:"sources"},sprite:{type:"sprite"},glyphs:{type:"string"},"font-faces":{type:"fontFaces"},transition:{type:"transition"},layers:{required:!0,type:"array",value:"layer"}},sources:{"*":{type:"source"}},source:["source_vector","source_raster","source_raster_dem","source_geojson","source_video","source_image"],source_vector:{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},encoding:{type:"enum",values:{mvt:{},mlt:{}},default:"mvt"},"*":{type:"*"}},source_raster:{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:"*"}},source_raster_dem:{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:{},custom:{}},default:"mapbox"},redFactor:{type:"number",default:1},blueFactor:{type:"number",default:1},greenFactor:{type:"number",default:1},baseShift:{type:"number",default:0},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_geojson:{type:{required:!0,type:"enum",values:{geojson:{}}},data:{required:!0,type:"*"},maxzoom:{type:"number",default:18},attribution:{type:"string"},buffer:{type:"number",default:128,maximum:512,minimum:0},filter:{type:"filter"},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"}},source_video:{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"}}},source_image:{type:{required:!0,type:"enum",values:{image:{}}},url:{type:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},layer:{id:{type:"string",required:!0},type:{type:"enum",values:{fill:{},line:{},symbol:{},circle:{},heatmap:{},"fill-extrusion":{},raster:{},hillshade:{},"color-relief":{},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"}},layout:["layout_fill","layout_line","layout_circle","layout_heatmap","layout_fill-extrusion","layout_symbol","layout_raster","layout_hillshade","layout_color-relief","layout_background"],layout_background:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible",expression:{interpolated:!1,parameters:["global-state"]},"property-type":"data-constant"}},layout_fill:{"fill-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible",expression:{interpolated:!1,parameters:["global-state"]},"property-type":"data-constant"}},layout_circle:{"circle-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible",expression:{interpolated:!1,parameters:["global-state"]},"property-type":"data-constant"}},layout_heatmap:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible",expression:{interpolated:!1,parameters:["global-state"]},"property-type":"data-constant"}},"layout_fill-extrusion":{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible",expression:{interpolated:!1,parameters:["global-state"]},"property-type":"data-constant"},"fill-extrusion-rounded-corner-distance":{type:"number",default:0,minimum:0,units:"meters","property-type":"constant"}},layout_line:{"line-cap":{type:"enum",values:{butt:{},round:{},square:{}},default:"butt",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"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","feature"]},"property-type":"data-driven"},"line-round-limit":{type:"number",default:1.05,requires:[{"line-join":"round"}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible",expression:{interpolated:!1,parameters:["global-state"]},"property-type":"data-constant"}},layout_symbol:{"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",{"!":"icon-overlap"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-overlap":{type:"enum",values:{never:{},always:{},cooperative:{}},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","feature"]},"property-type":"data-driven"},"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:"padding",default:[2],units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"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:{},"viewport-glyph":{},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-variable-anchor-offset":{type:"variableAnchorOffsetCollection",requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"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",{"!":"text-overlap"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-overlap":{type:"enum",values:{never:{},always:{},cooperative:{}},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"},"symbol-height-offset":{type:"number",default:0,units:"meters",requires:[{"symbol-placement":["point"]}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"symbol-height-anchor":{type:"enum",values:{ground:{},absolute:{}},default:"ground",requires:["symbol-height-offset"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible",expression:{interpolated:!1,parameters:["global-state"]},"property-type":"data-constant"}},layout_raster:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible",expression:{interpolated:!1,parameters:["global-state"]},"property-type":"data-constant"}},layout_hillshade:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible",expression:{interpolated:!1,parameters:["global-state"]},"property-type":"data-constant"}},"layout_color-relief":{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible",expression:{interpolated:!1,parameters:["global-state"]},"property-type":"data-constant"}},filter:{type:"boolean",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},filter_operator:{type:"enum",values:{"==":{},"!=":{},">":{},">=":{},"<":{},"<=":{},in:{},"!in":{},all:{},any:{},none:{},has:{},"!has":{}}},geometry_type:{type:"enum",values:{Point:{},LineString:{},Polygon:{}}},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:{type:"array",minimum:0,maximum:24,value:["number","color"],length:2},expression:{type:"array",value:"expression_name",minimum:1},light:{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}},sky:{"sky-color":{type:"color","property-type":"data-constant",default:"#88C6FC",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"horizon-color":{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"fog-color":{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"fog-ground-blend":{type:"number","property-type":"data-constant",default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"horizon-fog-blend":{type:"number","property-type":"data-constant",default:.8,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"sky-horizon-blend":{type:"number","property-type":"data-constant",default:.8,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"atmosphere-blend":{type:"number","property-type":"data-constant",default:.8,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0}},terrain:{source:{type:"string",required:!0},exaggeration:{type:"number",minimum:0,default:1}},projection:{type:{type:"projectionDefinition",default:"mercator","property-type":"data-constant",transition:!1,expression:{interpolated:!0,parameters:["zoom"]}}},paint:["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_symbol","paint_raster","paint_hillshade","paint_color-relief","paint_background"],paint_fill:{"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-layer-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","global-state"]},"property-type":"data-constant"},"fill-color":{type:"color",default:"#000000",transition:!0,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"}},"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,units:"meters",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{type:"number",default: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:{"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-layer-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","global-state"]},"property-type":"data-constant"},"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","feature"]},"property-type":"cross-faded-data-driven"},"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"}},paint_circle:{"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"}},paint_heatmap:{"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"}},paint_symbol:{"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"}},paint_raster:{"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"},resampling:{type:"enum",values:{linear:{},nearest:{}},default:"linear",expression:{interpolated:!1,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"}},paint_hillshade:{"hillshade-illumination-direction":{type:"numberArray",default:335,minimum:0,maximum:359,transition:!1,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-illumination-altitude":{type:"numberArray",default:45,minimum:0,maximum:90,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:"colorArray",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-highlight-color":{type:"colorArray",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"},"hillshade-method":{type:"enum",values:{standard:{},basic:{},combined:{},igor:{},multidirectional:{}},default:"standard",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},resampling:{type:"enum",values:{linear:{},nearest:{}},default:"linear",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},"paint_color-relief":{"color-relief-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"color-relief-color":{type:"color",transition:!1,expression:{interpolated:!0,parameters:["elevation"]},"property-type":"color-ramp"},resampling:{type:"enum",values:{linear:{},nearest:{}},default:"linear",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_background:{"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"}},transition:{duration:{type:"number",default:300,minimum:0,units:"milliseconds"},delay:{type:"number",default:0,minimum:0,units:"milliseconds"}},"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:{"*":{type:"string"}},interpolation:{type:"array",value:"interpolation_name",minimum:1},interpolation_name:{type:"enum",values:{linear:{syntax:{overloads:[{parameters:[],"output-type":"interpolation"}],parameters:[]}},exponential:{syntax:{overloads:[{parameters:["base"],"output-type":"interpolation"}],parameters:[{name:"base",type:"number literal"}]}},"cubic-bezier":{syntax:{overloads:[{parameters:["x1","y1","x2","y2"],"output-type":"interpolation"}],parameters:[{name:"x1",type:"number literal"},{name:"y1",type:"number literal"},{name:"x2",type:"number literal"},{name:"y2",type:"number literal"}]}}}}},D=Bp,Pp=["type","source","source-layer","minzoom","maxzoom","filter","layout"],E=class{constructor(t,e,r,i,n="error"){this.message=(t?`${t}: `:"")+r,i&&(this.identifier=i),this.severity=n,e!=null&&e.__line__&&(this.line=e.__line__)}},vn={kind:"null"},I={kind:"number"},W={kind:"string"},Q={kind:"boolean"},pe={kind:"color"},za={kind:"projectionDefinition"},mr={kind:"object"},H={kind:"value"},o0={kind:"error"},La={kind:"collator"},bn={kind:"formatted"},Va={kind:"padding"},rn={kind:"colorArray"},Oa={kind:"numberArray"},wn={kind:"resolvedImage"},Ra={kind:"variableAnchorOffsetCollection"};function Ut(t,e){return{kind:"array",itemType:t,N:e}}function mt(t){if(t.kind==="array"){let e=mt(t.itemType);return typeof t.N=="number"?`array<${e}, ${t.N}>`:t.itemType.kind==="value"?"array":`array<${e}>`}return t.kind}var l0=[vn,I,W,Q,pe,za,bn,mr,Ut(H),Va,Oa,rn,wn,Ra];function nn(t,e){if(e.kind==="error")return null;if(t.kind==="array"){if(e.kind==="array"&&(e.N===0&&e.itemType.kind==="value"||!nn(t.itemType,e.itemType))&&(typeof t.N!="number"||t.N===e.N))return null}else{if(t.kind===e.kind)return null;if(t.kind==="value"){for(let r of l0)if(!nn(r,e))return null}}return`Expected ${mt(t)} but found ${mt(e)} instead.`}function bl(t,e){return e.some(r=>r.kind===t.kind)}function gr(t,e){return e.some(r=>r==="null"?t===null:r==="array"?Array.isArray(t):r==="object"?t&&!Array.isArray(t)&&typeof t=="object":r===typeof t)}function Ye(t,e){return t.kind==="array"&&e.kind==="array"?t.itemType.kind===e.itemType.kind&&typeof t.N=="number":t.kind===e.kind}var zp=.96422,Lp=.82521,Vp=4/29,eo=6/29,Op=3*eo*eo,u0=Math.PI/180,h0=180/Math.PI;function Rp(t){return t%=360,t<0&&(t+=360),t}function $p([t,e,r,i]){t=Ms(t),e=Ms(e),r=Ms(r);let n,a,s=Bs((.2225045*t+.7168786*e+.0606169*r)/1);t===e&&e===r?n=a=s:(n=Bs((.4360747*t+.3850649*e+.1430804*r)/zp),a=Bs((.0139322*t+.0971045*e+.7141733*r)/Lp));let o=116*s-16;return[o<0?0:o,500*(n-s),200*(s-a),i]}function Ms(t){return t<=.04045?t/12.92:((t+.055)/1.055)**2.4}function Bs(t){return t>.008856451679035631?t**(1/3):t/Op+Vp}function Np([t,e,r,i]){let n=(t+16)/116,a=isNaN(e)?n:n+e/500,s=isNaN(r)?n:n-r/200;return n=1*zs(n),a=zp*zs(a),s=Lp*zs(s),[Ps(3.1338561*a-1.6168667*n-.4906146*s),Ps(-.9787684*a+1.9161415*n+.033454*s),Ps(.0719453*a-.2289914*n+1.4052427*s),i]}function Ps(t){return t=t<=.00304?12.92*t:1.055*t**(1/2.4)-.055,t<0?0:t>1?1:t}function zs(t){return t>eo?t*t*t:Op*(t-Vp)}function c0(t){let[e,r,i,n]=$p(t),a=Math.sqrt(r*r+i*i);return[Math.round(a*1e4)?Rp(Math.atan2(i,r)*h0):NaN,a,e,n]}function p0([t,e,r,i]){return t=isNaN(t)?0:t*u0,Np([r,Math.cos(t)*e,Math.sin(t)*e,i])}function f0([t,e,r,i]){t=Rp(t),e/=100,r/=100;function n(a){let s=(a+t/30)%12,o=e*Math.min(r,1-r);return r-o*Math.max(-1,Math.min(s-3,9-s,1))}return[n(0),n(8),n(4),i]}var d0=Object.hasOwn||function(t,e){return Object.prototype.hasOwnProperty.call(t,e)};function Yi(t,e){return d0(t,e)?t[e]:void 0}function y0(t){if(t=t.toLowerCase().trim(),t==="transparent")return[0,0,0,0];let e=Yi(m0,t);if(e){let[i,n,a]=e;return[i/255,n/255,a/255,1]}if(t.startsWith("#")&&/^#(?:[0-9a-f]{3,4}|[0-9a-f]{6}|[0-9a-f]{8})$/.test(t)){let i=t.length<6?1:2,n=1;return[Yn(t.slice(n,n+=i)),Yn(t.slice(n,n+=i)),Yn(t.slice(n,n+=i)),Yn(t.slice(n,n+i)||"ff")]}if(t.startsWith("rgb")){let i=t.match(/^rgba?\\(\\s*([\\de.+-]+)(%)?(?:\\s+|\\s*(,)\\s*)([\\de.+-]+)(%)?(?:\\s+|\\s*(,)\\s*)([\\de.+-]+)(%)?(?:\\s*([,\\/])\\s*([\\de.+-]+)(%)?)?\\s*\\)$/);if(i){let[n,a,s,o,l,u,h,c,p,f,d,y]=i,m=[o||" ",h||" ",f].join("");if(m===" "||m===" /"||m===",,"||m===",,,"){let g=[s,u,p].join(""),x=g==="%%%"?100:g===""?255:0;if(x){let v=[Rr(+a/x,0,1),Rr(+l/x,0,1),Rr(+c/x,0,1),d?vh(+d,y):1];if(bh(v))return v}}return}}let r=t.match(/^hsla?\\(\\s*([\\de.+-]+)(?:deg)?(?:\\s+|\\s*(,)\\s*)([\\de.+-]+)%(?:\\s+|\\s*(,)\\s*)([\\de.+-]+)%(?:\\s*([,\\/])\\s*([\\de.+-]+)(%)?)?\\s*\\)$/);if(r){let[i,n,a,s,o,l,u,h,c]=r,p=[a||" ",o||" ",u].join("");if(p===" "||p===" /"||p===",,"||p===",,,"){let f=[+n,Rr(+s,0,100),Rr(+l,0,100),h?vh(+h,c):1];if(bh(f))return f0(f)}}}function Yn(t){return parseInt(t.padEnd(2,t),16)/255}function vh(t,e){return Rr(e?t/100:t,0,1)}function Rr(t,e,r){return Math.min(Math.max(e,t),r)}function bh(t){return!t.some(Number.isNaN)}var m0={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]};function er(t,e,r){return t+r*(e-t)}function ti(t,e,r){return t.map((i,n)=>er(i,e[n],r))}function g0(t){return t==="rgb"||t==="hcl"||t==="lab"}var Bt,xt=(Bt=class{constructor(e,r,i,n=1,a=!0){this.r=e,this.g=r,this.b=i,this.a=n,a||(this.r*=n,this.g*=n,this.b*=n,n||this.overwriteGetter("rgb",[e,r,i,n]))}static parse(e){if(e instanceof Bt)return e;if(typeof e!="string")return;let r=y0(e);if(r)return new Bt(...r,!1)}get rgb(){let{r:e,g:r,b:i,a:n}=this,a=n||1/0;return this.overwriteGetter("rgb",[e/a,r/a,i/a,n])}get hcl(){return this.overwriteGetter("hcl",c0(this.rgb))}get lab(){return this.overwriteGetter("lab",$p(this.rgb))}overwriteGetter(e,r){return Object.defineProperty(this,e,{value:r}),r}toString(){let[e,r,i,n]=this.rgb;return`rgba(${[e,r,i].map(a=>Math.round(a*255)).join(",")},${n})`}static interpolate(e,r,i,n="rgb"){switch(n){case"rgb":{let[a,s,o,l]=ti(e.rgb,r.rgb,i);return new Bt(a,s,o,l,!1)}case"hcl":{let[a,s,o,l]=e.hcl,[u,h,c,p]=r.hcl,f,d;if(!isNaN(a)&&!isNaN(u)){let v=u-a;u>a&&v>180?v-=360:u180&&(v+=360),f=a+i*v}else isNaN(a)?isNaN(u)?f=NaN:(f=u,(o===1||o===0)&&(d=h)):(f=a,(c===1||c===0)&&(d=s));let[y,m,g,x]=p0([f,d!=null?d:er(s,h,i),er(o,c,i),er(l,p,i)]);return new Bt(y,m,g,x,!1)}case"lab":{let[a,s,o,l]=Np(ti(e.lab,r.lab,i));return new Bt(a,s,o,l,!1)}}}},Bt.black=new Bt(0,0,0,1),Bt.white=new Bt(1,1,1,1),Bt.transparent=new Bt(0,0,0,0),Bt.red=new Bt(1,0,0,1),Bt),x0=["bottom","center","top"],ro=class{constructor(t,e,r,i,n,a){this.text=t,this.image=e,this.scale=r,this.fontStack=i,this.textColor=n,this.verticalAlign=a}},Le=class ha{constructor(e){this.sections=e}static fromString(e){return new ha([new ro(e,null,null,null,null,null)])}isEmpty(){return this.sections.length===0||!this.sections.some(e=>e.text.length!==0||e.image&&e.image.name.length!==0)}static factory(e){return e instanceof ha?e:ha.fromString(e)}toString(){return this.sections.length===0?"":this.sections.map(e=>e.text).join("")}},Ee=class Ri{constructor(e){this.values=e.slice()}static parse(e){if(e instanceof Ri)return e;if(typeof e=="number")return new Ri([e,e,e,e]);if(Array.isArray(e)&&!(e.length<1||e.length>4)){for(let r of e)if(typeof r!="number")return;switch(e.length){case 1:e=[e[0],e[0],e[0],e[0]];break;case 2:e=[e[0],e[1],e[0],e[1]];break;case 3:e=[e[0],e[1],e[2],e[1]]}return new Ri(e)}}toString(){return JSON.stringify(this.values)}static interpolate(e,r,i){return new Ri(ti(e.values,r.values,i))}},Fe=class $i{constructor(e){this.values=e.slice()}static parse(e){if(e instanceof $i)return e;if(typeof e=="number")return new $i([e]);if(Array.isArray(e)){for(let r of e)if(typeof r!="number")return;return new $i(e)}}toString(){return JSON.stringify(this.values)}static interpolate(e,r,i){return new $i(ti(e.values,r.values,i))}},ue=class Ni{constructor(e){this.values=e.slice()}static parse(e){if(e instanceof Ni)return e;if(typeof e=="string"){let i=xt.parse(e);return i?new Ni([i]):void 0}if(!Array.isArray(e))return;let r=[];for(let i of e){if(typeof i!="string")return;let n=xt.parse(i);if(!n)return;r.push(n)}return new Ni(r)}toString(){return JSON.stringify(this.values)}static interpolate(e,r,i,n="rgb"){let a=[];if(e.values.length!=r.values.length)throw Error(`colorArray: Arrays have mismatched length (${e.values.length} vs. ${r.values.length}), cannot interpolate.`);for(let s=0;s=0&&t<=255&&typeof e=="number"&&e>=0&&e<=255&&typeof r=="number"&&r>=0&&r<=255?i===void 0||typeof i=="number"&&i>=0&&i<=1?null:`Invalid rgba value [${[t,e,r,i].join(", ")}]: \'a\' must be between 0 and 1.`:`Invalid rgba value [${(typeof i=="number"?[t,e,r,i]:[t,e,r]).join(", ")}]: \'r\', \'g\', and \'b\' must be between 0 and 255.`}function ei(t){if(t===null||typeof t=="string"||typeof t=="boolean"||typeof t=="number"||t instanceof Sr||t instanceof xt||t instanceof wl||t instanceof Le||t instanceof Ee||t instanceof Fe||t instanceof ue||t instanceof Ae||t instanceof Se)return!0;if(Array.isArray(t)){for(let e of t)if(!ei(e))return!1;return!0}if(typeof t=="object"){for(let e in t)if(!ei(t[e]))return!1;return!0}return!1}function St(t){if(t===null)return vn;if(typeof t=="string")return W;if(typeof t=="boolean")return Q;if(typeof t=="number")return I;if(t instanceof xt)return pe;if(t instanceof Sr)return za;if(t instanceof wl)return La;if(t instanceof Le)return bn;if(t instanceof Ee)return Va;if(t instanceof Fe)return Oa;if(t instanceof ue)return rn;if(t instanceof Ae)return Ra;if(t instanceof Se)return wn;if(Array.isArray(t)){let e=t.length,r;for(let i of t){let n=St(i);if(!r)r=n;else{if(r===n)continue;r=H;break}}return Ut(r||H,e)}return mr}function Wi(t){let e=typeof t;return t===null?"":e==="string"||e==="number"||e==="boolean"?String(t):t instanceof xt||t instanceof Sr||t instanceof Le||t instanceof Ee||t instanceof Fe||t instanceof ue||t instanceof Ae||t instanceof Se?t.toString():JSON.stringify(t)}var ri=class jp{constructor(e,r){this.type=e,this.value=r}static parse(e,r){if(e.length!==2)return r.error(`\'literal\' expression requires exactly one argument, but found ${e.length-1} instead.`);if(!ei(e[1]))return r.error(`invalid value of type "${typeof e[1]}"`);let i=e[1],n=St(i),a=r.expectedType;return n.kind==="array"&&n.N===0&&a&&a.kind==="array"&&(typeof a.N!="number"||a.N===0)&&(n=a),new jp(n,i)}evaluate(){return this.value}eachChild(){}outputDefined(){return!0}},b0=["Unknown","Point","LineString","Polygon"],Gp=class{constructor(){this.globals=null,this.feature=null,this.featureState=null,this.formattedSection=null,this._parseColorCache=new Map,this.availableImages=null,this.canonical=null}id(){return this.feature&&"id"in this.feature?this.feature.id:null}geometryType(){return this.feature?typeof this.feature.type=="number"?b0[this.feature.type]:this.feature.type:null}geometry(){return this.feature&&"geometry"in this.feature?this.feature.geometry:null}canonicalID(){return this.canonical}properties(){return this.feature&&this.feature.properties||{}}parseColor(t){let e=this._parseColorCache.get(t);return e||(e=xt.parse(t),this._parseColorCache.set(t,e)),e}};function $a(t,e,r){let i=t.length-1,n=0,a=i,s=0,o,l;for(;n<=a;)if(s=Math.floor((n+a)/2),o=t[s],l=t[s+1],o<=e){if(s===i||ee)a=s-1;else throw new ft("Input is not a number.",r);return 0}var Dl=class Xp{constructor(e,r,i,n){this.type=e,this.input=r,this.key=n,this.labels=[],this.outputs=[];for(let[a,s]of i)this.labels.push(a),this.outputs.push(s)}static parse(e,r){if(e.length-1<4)return r.error(`Expected at least 4 arguments, but found only ${e.length-1}.`);if((e.length-1)%2!=0)return r.error("Expected an even number of arguments.");let i=r.parse(e[1],1,I);if(!i)return null;let n=[],a=null;r.expectedType&&r.expectedType.kind!=="value"&&(a=r.expectedType);for(let s=1;s=o)return r.error(\'Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.\',u);let c=r.parse(l,h,a);if(!c)return null;a||(a=c.type),n.push([o,c])}return new Xp(a,i,n,r.key)}evaluate(e){let r=this.labels,i=this.outputs;if(r.length===1)return i[0].evaluate(e);let n=this.input.evaluate(e);if(n<=r[0])return i[0].evaluate(e);let a=r.length;return n>=r[a-1]?i[a-1].evaluate(e):i[$a(r,n,this.key)].evaluate(e)}eachChild(e){e(this.input);for(let r of this.outputs)e(r)}outputDefined(){return this.outputs.every(e=>e.outputDefined())}};function w0(t,e,r,i){let n=3*t,a=3*(r-t)-n,s=1-n-a,o=3*e,l=3*(i-e)-o,u=1-o-l;return function(h,c=1e-6){if(h<=0)return 0;if(h>=1)return 1;let p=h;for(let y=0;y<8;y++){let m=((s*p+a)*p+n)*p-h;if(Math.abs(m)m?f=p:d=p,p=(f+d)*.5}return((u*p+l)*p+o)*p}}var De=class io{constructor(e,r,i,n,a,s){this.type=e,this.operator=r,this.interpolation=i,this.input=n,this.key=s,this.labels=[],this.outputs=[];for(let[o,l]of a)this.labels.push(o),this.outputs.push(l)}static interpolationFactor(e,r,i,n){let a=0;if(e.name==="exponential")a=Ls(r,e.base,i,n);else if(e.name==="linear")a=Ls(r,1,i,n);else if(e.name==="cubic-bezier"){let s=e.controlPoints;a=w0(s[0],s[1],s[2],s[3])(Ls(r,1,i,n))}return a}static parse(e,r){let[i,n,a,...s]=e;if(!Array.isArray(n)||n.length===0)return r.error("Expected an interpolation type expression.",1);if(n[0]==="linear")n={name:"linear"};else if(n[0]==="exponential"){let u=n[1];if(typeof u!="number")return r.error("Exponential interpolation requires a numeric base.",1,1);n={name:"exponential",base:u}}else if(n[0]==="cubic-bezier"){let u=n.slice(1);if(u.length!==4||u.some(h=>typeof h!="number"||h<0||h>1))return r.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);n={name:"cubic-bezier",controlPoints:u}}else return r.error(`Unknown interpolation type ${String(n[0])}`,1,0);if(e.length-1<4)return r.error(`Expected at least 4 arguments, but found only ${e.length-1}.`);if((e.length-1)%2!=0)return r.error("Expected an even number of arguments.");if(a=r.parse(a,2,I),!a)return null;let o=[],l=null;(i==="interpolate-hcl"||i==="interpolate-lab")&&r.expectedType!=rn?l=pe:r.expectedType&&r.expectedType.kind!=="value"&&(l=r.expectedType);for(let u=0;u=h)return r.error(\'Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.\',p);let d=r.parse(c,f,l);if(!d)return null;l||(l=d.type),o.push([h,d])}return!Ye(l,I)&&!Ye(l,za)&&!Ye(l,pe)&&!Ye(l,Va)&&!Ye(l,Oa)&&!Ye(l,rn)&&!Ye(l,Ra)&&!Ye(l,Ut(I))?r.error(`Type ${mt(l)} is not interpolatable.`):new io(l,i,n,a,o,r.key)}evaluate(e){let r=this.labels,i=this.outputs;if(r.length===1)return i[0].evaluate(e);let n=this.input.evaluate(e);if(n<=r[0])return i[0].evaluate(e);let a=r.length;if(n>=r[a-1])return i[a-1].evaluate(e);let s=$a(r,n,this.key),o=r[s],l=r[s+1],u=io.interpolationFactor(this.interpolation,n,o,l),h=i[s].evaluate(e),c=i[s+1].evaluate(e);switch(this.operator){case"interpolate":switch(this.type.kind){case"number":return er(h,c,u);case"color":return xt.interpolate(h,c,u);case"padding":return Ee.interpolate(h,c,u);case"colorArray":return ue.interpolate(h,c,u);case"numberArray":return Fe.interpolate(h,c,u);case"variableAnchorOffsetCollection":return Ae.interpolate(h,c,u,this.key);case"array":return ti(h,c,u);case"projectionDefinition":return Sr.interpolate(h,c,u)}case"interpolate-hcl":switch(this.type.kind){case"color":return xt.interpolate(h,c,u,"hcl");case"colorArray":return ue.interpolate(h,c,u,"hcl")}case"interpolate-lab":switch(this.type.kind){case"color":return xt.interpolate(h,c,u,"lab");case"colorArray":return ue.interpolate(h,c,u,"lab")}}}eachChild(e){e(this.input);for(let r of this.outputs)e(r)}outputDefined(){return this.outputs.every(e=>e.outputDefined())}};function Ls(t,e,r,i){let n=i-r,a=t-r;return n===0?0:e===1?a/n:(e**+a-1)/(e**+n-1)}var br={color:xt.interpolate,number:er,padding:Ee.interpolate,numberArray:Fe.interpolate,colorArray:ue.interpolate,variableAnchorOffsetCollection:Ae.interpolate,array:ti},Yp=class Wp{constructor(e){this.type=bn,this.sections=e}static parse(e,r){if(e.length<2)return r.error("Expected at least one argument.");let i=e[1];if(!Array.isArray(i)&&typeof i=="object")return r.error("First argument must be an image or text section.");let n=[],a=!1;for(let s=1;s<=e.length-1;++s){let o=e[s];if(a&&typeof o=="object"&&!Array.isArray(o)){a=!1;let l=null;if(o["font-scale"]&&(l=r.parse(o["font-scale"],1,I),!l))return null;let u=null;if(o["text-font"]&&(u=r.parse(o["text-font"],1,Ut(W)),!u))return null;let h=null;if(o["text-color"]&&(h=r.parse(o["text-color"],1,pe),!h))return null;let c=null;if(o["vertical-align"]){if(typeof o["vertical-align"]=="string"&&!x0.includes(o["vertical-align"]))return r.error(`\'vertical-align\' must be one of: \'bottom\', \'center\', \'top\' but found \'${o["vertical-align"]}\' instead.`);if(c=r.parse(o["vertical-align"],1,W),!c)return null}let p=n[n.length-1];p.scale=l,p.font=u,p.textColor=h,p.verticalAlign=c}else{let l=r.parse(e[s],1,H);if(!l)return null;let u=l.type.kind;if(u!=="string"&&u!=="value"&&u!=="null"&&u!=="resolvedImage")return r.error("Formatted text type must be \'string\', \'value\', \'image\' or \'null\'.");a=!0,n.push({content:l,scale:null,font:null,textColor:null,verticalAlign:null})}}return new Wp(n)}evaluate(e){return new Le(this.sections.map(r=>{let i=r.content.evaluate(e);return St(i)===wn?new ro("",i,null,null,null,r.verticalAlign?r.verticalAlign.evaluate(e):null):new ro(Wi(i),null,r.scale?r.scale.evaluate(e):null,r.font?r.font.evaluate(e).join(","):null,r.textColor?r.textColor.evaluate(e):null,r.verticalAlign?r.verticalAlign.evaluate(e):null)}))}eachChild(e){for(let r of this.sections)e(r.content),r.scale&&e(r.scale),r.font&&e(r.font),r.textColor&&e(r.textColor),r.verticalAlign&&e(r.verticalAlign)}outputDefined(){return!1}};function Zp(t,e,r=0,i=t.length-1,n=D0){for(;i>r;){if(i-r>600){let l=i-r+1,u=e-r+1,h=Math.log(l),c=.5*Math.exp(2*h/3),p=.5*Math.sqrt(h*c*(l-c)/l)*(u-l/2<0?-1:1);Zp(t,e,Math.max(r,Math.floor(e-u*c/l+p)),Math.min(i,Math.floor(e+(l-u)*c/l+p)),n)}let a=t[e],s=r,o=i;for(ki(t,r,e),n(t[i],a)>0&&ki(t,r,i);s0;)o--}n(t[r],a)===0?ki(t,r,o):(o++,ki(t,o,i)),o<=e&&(r=o+1),e<=o&&(i=o-1)}}function ki(t,e,r){let i=t[e];t[e]=t[r],t[r]=i}function D0(t,e){return te)}function Na(t,e){if(t.length<=1)return[t];let r=[],i,n;for(let a of t){let s=A0(a);s!==0&&(a.area=Math.abs(s),n===void 0&&(n=s<0),n===s<0?(i&&r.push(i),i=[a]):i.push(a))}if(i&&r.push(i),e>1)for(let a=0;a2){let u=e[1];if(typeof u!="string"||!(u in Wn)||u==="object")return r.error(\'The item type argument of "array" must be one of string, number, boolean\',1);o=Wn[u],i++}else o=H;let l;if(e.length>3){if(e[2]!==null&&(typeof e[2]!="number"||e[2]<0||e[2]!==Math.floor(e[2])))return r.error(\'The length argument to "array" must be a positive integer literal\',2);l=e[2],i++}n=Ut(o,l)}else{if(!Wn[a])throw Error(`Types doesn\'t contain name = ${a}`);n=Wn[a]}let s=[];for(;ie.outputDefined())}},wh={"to-boolean":Q,"to-color":pe,"to-number":I,"to-string":W},jr=class Kp{constructor(e,r,i){this.type=e,this.args=r,this.key=i}static parse(e,r){if(e.length<2)return r.error("Expected at least one argument.");let i=e[0];if(!wh[i])throw Error(`Can\'t parse ${i} as it is not part of the known types`);if((i==="to-boolean"||i==="to-string")&&e.length!==2)return r.error("Expected one argument.");let n=wh[i],a=[];for(let s=1;s4?`Invalid rgba value ${JSON.stringify(r)}: expected an array containing either three or four numeric values.`:qp(r[0],r[1],r[2],r[3]),!i))return new xt(r[0]/255,r[1]/255,r[2]/255,r[3])}throw new ft(i||`Could not parse color from value \'${typeof r=="string"?r:JSON.stringify(r)}\'`,this.key)}case"padding":{let r;for(let i of this.args){r=i.evaluate(e);let n=Ee.parse(r);if(n)return n}throw new ft(`Could not parse padding from value \'${typeof r=="string"?r:JSON.stringify(r)}\'`,this.key)}case"numberArray":{let r;for(let i of this.args){r=i.evaluate(e);let n=Fe.parse(r);if(n)return n}throw new ft(`Could not parse numberArray from value \'${typeof r=="string"?r:JSON.stringify(r)}\'`,this.key)}case"colorArray":{let r;for(let i of this.args){r=i.evaluate(e);let n=ue.parse(r);if(n)return n}throw new ft(`Could not parse colorArray from value \'${typeof r=="string"?r:JSON.stringify(r)}\'`,this.key)}case"variableAnchorOffsetCollection":{let r;for(let i of this.args){r=i.evaluate(e);let n=Ae.parse(r);if(n)return n}throw new ft(`Could not parse variableAnchorOffsetCollection from value \'${typeof r=="string"?r:JSON.stringify(r)}\'`,this.key)}case"number":{let r=null;for(let i of this.args){if(r=i.evaluate(e),r===null)return 0;let n=Number(r);if(!isNaN(n))return n}throw new ft(`Could not convert ${JSON.stringify(r)} to number.`,this.key)}case"formatted":return Le.fromString(Wi(this.args[0].evaluate(e)));case"resolvedImage":return Se.fromString(Wi(this.args[0].evaluate(e)));case"projectionDefinition":{let r=this.args[0].evaluate(e);if(Sr.parse(r))return r;throw new ft(`Could not parse projectionDefinition from value \'${typeof r=="string"?r:JSON.stringify(r)}\'`,this.key)}default:return Wi(this.args[0].evaluate(e))}}eachChild(e){this.args.forEach(e)}outputDefined(){return this.args.every(e=>e.outputDefined())}},Jp=class Qp{constructor(e,r){this.type=r.type,this.bindings=[].concat(e),this.result=r}evaluate(e){return this.result.evaluate(e)}eachChild(e){for(let r of this.bindings)e(r[1]);e(this.result)}static parse(e,r){if(e.length<4)return r.error(`Expected at least 3 arguments, but found ${e.length-1} instead.`);let i=[];for(let a=1;a=i.length)throw new ft(`Array index out of bounds: ${r} > ${i.length-1}.`,this.key);if(r!==Math.floor(r))throw new ft(`Array index must be an integer, but found ${r} instead.`,this.key);return i[r]}eachChild(e){e(this.index),e(this.input)}outputDefined(){return!1}},E0=class nf{constructor(e,r,i){this.needle=e,this.haystack=r,this.key=i,this.type=Q}static parse(e,r){if(e.length!==3)return r.error(`Expected 2 arguments, but found ${e.length-1} instead.`);let i=r.parse(e[1],1,H),n=r.parse(e[2],2,H);return!i||!n?null:bl(i.type,[Q,W,I,vn,H])?new nf(i,n,r.key):r.error(`Expected first argument to be of type boolean, string, number or null, but found ${mt(i.type)} instead`)}evaluate(e){let r=this.needle.evaluate(e),i=this.haystack.evaluate(e);if(!i)return!1;if(!gr(r,["boolean","string","number","null"]))throw new ft(`Expected first argument to be of type boolean, string, number or null, but found ${mt(St(r))} instead.`,this.key);if(!gr(i,["string","array"]))throw new ft(`Expected second argument to be of type array or string, but found ${mt(St(i))} instead.`,this.key);return i.indexOf(r)>=0}eachChild(e){e(this.needle),e(this.haystack)}outputDefined(){return!0}},F0=class no{constructor(e,r,i,n){this.needle=e,this.haystack=r,this.key=i,this.fromIndex=n,this.type=I}static parse(e,r){if(e.length<=2||e.length>=5)return r.error(`Expected 2 or 3 arguments, but found ${e.length-1} instead.`);let i=r.parse(e[1],1,H),n=r.parse(e[2],2,H);if(!i||!n)return null;if(!bl(i.type,[Q,W,I,vn,H]))return r.error(`Expected first argument to be of type boolean, string, number or null, but found ${mt(i.type)} instead`);if(e.length===4){let a=r.parse(e[3],3,I);return a?new no(i,n,r.key,a):null}return new no(i,n,r.key)}evaluate(e){let r=this.needle.evaluate(e),i=this.haystack.evaluate(e);if(!gr(r,["boolean","string","number","null"]))throw new ft(`Expected first argument to be of type boolean, string, number or null, but found ${mt(St(r))} instead.`,this.key);let n;if(this.fromIndex&&(n=this.fromIndex.evaluate(e)),gr(i,["string"])){let a=i.indexOf(r,n);return a===-1?-1:[...i.slice(0,a)].length}if(gr(i,["array"]))return i.indexOf(r,n);throw new ft(`Expected second argument to be of type array or string, but found ${mt(St(i))} instead.`,this.key)}eachChild(e){e(this.needle),e(this.haystack),this.fromIndex&&e(this.fromIndex)}outputDefined(){return!1}},T0=class af{constructor(e,r,i,n,a,s){this.inputType=e,this.type=r,this.input=i,this.cases=n,this.outputs=a,this.otherwise=s}static parse(e,r){if(e.length<5)return r.error(`Expected at least 4 arguments, but found only ${e.length-1}.`);if(e.length%2!=1)return r.error("Expected an even number of arguments.");let i,n;r.expectedType&&r.expectedType.kind!=="value"&&(n=r.expectedType);let a={},s=[];for(let u=2;u2**53-1)return p.error(`Branch labels must be integers no larger than ${2**53-1}.`);if(typeof d=="number"&&Math.floor(d)!==d)return p.error("Numeric branch labels must be integer values.");if(!i)i=St(d);else if(p.checkSubtype(i,St(d)))return null;if(a[String(d)]!==void 0)return p.error("Branch labels must be unique.");a[String(d)]=s.length}let f=r.parse(c,u,n);if(!f)return null;n||(n=f.type),s.push(f)}let o=r.parse(e[1],1,H);if(!o)return null;let l=r.parse(e[e.length-1],e.length-1,n);return!l||o.type.kind!=="value"&&r.concat(1).checkSubtype(i,o.type)?null:new af(i,n,o,a,s,l)}evaluate(e){let r=this.input.evaluate(e);return(St(r)===this.inputType&&this.outputs[this.cases[r]]||this.otherwise).evaluate(e)}eachChild(e){e(this.input),this.outputs.forEach(e),e(this.otherwise)}outputDefined(){return this.outputs.every(e=>e.outputDefined())&&this.otherwise.outputDefined()}},k0=class sf{constructor(e,r,i){this.type=e,this.branches=r,this.otherwise=i}static parse(e,r){if(e.length<4)return r.error(`Expected at least 3 arguments, but found only ${e.length-1}.`);if(e.length%2!=0)return r.error("Expected an odd number of arguments.");let i;r.expectedType&&r.expectedType.kind!=="value"&&(i=r.expectedType);let n=[];for(let s=1;sr.outputDefined())&&this.otherwise.outputDefined()}},I0=class ao{constructor(e,r,i,n,a){this.type=e,this.input=r,this.beginIndex=i,this.key=n,this.endIndex=a}static parse(e,r){if(e.length<=2||e.length>=5)return r.error(`Expected 2 or 3 arguments, but found ${e.length-1} instead.`);let i=r.parse(e[1],1,H),n=r.parse(e[2],2,I);if(!i||!n)return null;if(!bl(i.type,[Ut(H),W,H]))return r.error(`Expected first argument to be of type array or string, but found ${mt(i.type)} instead`);if(e.length===4){let a=r.parse(e[3],3,I);return a?new ao(i.type,i,n,r.key,a):null}return new ao(i.type,i,n,r.key)}evaluate(e){let r=this.input.evaluate(e),i=this.beginIndex.evaluate(e),n;if(this.endIndex&&(n=this.endIndex.evaluate(e)),gr(r,["string"]))return[...r].slice(i,n).join("");if(gr(r,["array"]))return r.slice(i,n);throw new ft(`Expected first argument to be of type array or string, but found ${mt(St(r))} instead.`,this.key)}eachChild(e){e(this.input),e(this.beginIndex),this.endIndex&&e(this.endIndex)}outputDefined(){return!1}},of=class so{constructor(e,r){this.type=e,this.args=r}static parse(e,r){if(e.length<2)return r.error("Expected at least one argument.");let i=null,n=r.expectedType;n&&n.kind!=="value"&&(i=n);let a=[];for(let s of e.slice(1)){let o=r.parse(s,1+a.length,i,void 0,{typeAnnotation:"omit"});if(!o)return null;i||(i=o.type),a.push(o)}if(!i)throw Error("No output type");return n&&a.some(s=>nn(n,s.type))?new so(H,a):new so(i,a)}evaluate(e){let r=null,i=0,n;for(let a of this.args)if(i++,r=a.evaluate(e),r&&r instanceof Se&&!r.available&&(n||(n=r.name),r=null,i===this.args.length&&(r=n)),r!==null)break;return r}eachChild(e){this.args.forEach(e)}outputDefined(){return this.args.every(e=>e.outputDefined())}};function Dh(t,e){return t==="=="||t==="!="?e.kind==="boolean"||e.kind==="string"||e.kind==="number"||e.kind==="null"||e.kind==="value":e.kind==="string"||e.kind==="number"||e.kind==="value"}function C0(t,e,r){return e===r}function M0(t,e,r){return e!==r}function B0(t,e,r){return er}function z0(t,e,r){return e<=r}function L0(t,e,r){return e>=r}function lf(t,e,r,i){return i.compare(e,r)===0}function V0(t,e,r,i){return!lf(t,e,r,i)}function O0(t,e,r,i){return i.compare(e,r)<0}function R0(t,e,r,i){return i.compare(e,r)>0}function $0(t,e,r,i){return i.compare(e,r)<=0}function N0(t,e,r,i){return i.compare(e,r)>=0}function li(t,e,r){let i=t!=="=="&&t!=="!=";return class uf{constructor(a,s,o,l){this.lhs=a,this.rhs=s,this.key=o,this.collator=l,this.type=Q,this.hasUntypedArgument=a.type.kind==="value"||s.type.kind==="value"}static parse(a,s){if(a.length!==3&&a.length!==4)return s.error("Expected two or three arguments.");let o=a[0],l=s.parse(a[1],1,H);if(!l)return null;if(!Dh(o,l.type))return s.concat(1).error(`"${o}" comparisons are not supported for type \'${mt(l.type)}\'.`);let u=s.parse(a[2],2,H);if(!u)return null;if(!Dh(o,u.type))return s.concat(2).error(`"${o}" comparisons are not supported for type \'${mt(u.type)}\'.`);if(l.type.kind!==u.type.kind&&l.type.kind!=="value"&&u.type.kind!=="value")return s.error(`Cannot compare types \'${mt(l.type)}\' and \'${mt(u.type)}\'.`);i&&(l.type.kind==="value"&&u.type.kind!=="value"?l=new Be(u.type,[l],s.key):l.type.kind!=="value"&&u.type.kind==="value"&&(u=new Be(l.type,[u],s.key)));let h=null;if(a.length===4){if(l.type.kind!=="string"&&u.type.kind!=="string"&&l.type.kind!=="value"&&u.type.kind!=="value")return s.error("Cannot use collator to compare non-string types.");if(h=s.parse(a[3],3,La),!h)return null}return new uf(l,u,s.key,h)}evaluate(a){let s=this.lhs.evaluate(a),o=this.rhs.evaluate(a);if(i&&this.hasUntypedArgument){let l=St(s),u=St(o);if(l.kind!==u.kind||l.kind!=="string"&&l.kind!=="number")throw new ft(`Expected arguments for "${t}" to be (string, string) or (number, number), but found (${l.kind}, ${u.kind}) instead.`,this.key)}if(this.collator&&!i&&this.hasUntypedArgument){let l=St(s),u=St(o);if(l.kind!=="string"||u.kind!=="string")return e(a,s,o)}return this.collator?r(a,s,o,this.collator.evaluate(a)):e(a,s,o)}eachChild(a){a(this.lhs),a(this.rhs),this.collator&&a(this.collator)}outputDefined(){return!0}}}var U0=li("==",C0,lf),q0=li("!=",M0,V0),j0=li("<",B0,O0),G0=li(">",P0,R0),X0=li("<=",z0,$0),Y0=li(">=",L0,N0),hf=class cf{constructor(e,r,i){this.type=La,this.locale=i,this.caseSensitive=e,this.diacriticSensitive=r}static parse(e,r){if(e.length!==2)return r.error("Expected one argument.");let i=e[1];if(typeof i!="object"||Array.isArray(i))return r.error("Collator options argument must be an object.");let n=r.parse(i["case-sensitive"]!==void 0&&i["case-sensitive"],1,Q);if(!n)return null;let a=r.parse(i["diacritic-sensitive"]!==void 0&&i["diacritic-sensitive"],1,Q);if(!a)return null;let s=null;return i.locale&&(s=r.parse(i.locale,1,W),!s)?null:new cf(n,a,s)}evaluate(e){return new wl(this.caseSensitive.evaluate(e),this.diacriticSensitive.evaluate(e),this.locale?this.locale.evaluate(e):null)}eachChild(e){e(this.caseSensitive),e(this.diacriticSensitive),this.locale&&e(this.locale)}outputDefined(){return!1}},W0=class pf{constructor(e,r,i,n,a,s){this.type=W,this.number=e,this.locale=r,this.currency=i,this.unit=n,this.minFractionDigits=a,this.maxFractionDigits=s}static parse(e,r){if(e.length!==3)return r.error("Expected two arguments.");let i=r.parse(e[1],1,I);if(!i)return null;let n=e[2];if(typeof n!="object"||Array.isArray(n))return r.error("NumberFormat options argument must be an object.");let a=null;if(n.locale&&(a=r.parse(n.locale,1,W),!a))return null;let s=null;if(n.currency&&(s=r.parse(n.currency,1,W),!s))return null;let o=null;if(n.unit&&(o=r.parse(n.unit,1,W),!o))return null;if(s&&o)return r.error("NumberFormat options `currency` and `unit` are mutually exclusive");let l=null;if(n["min-fraction-digits"]&&(l=r.parse(n["min-fraction-digits"],1,I),!l))return null;let u=null;return n["max-fraction-digits"]&&(u=r.parse(n["max-fraction-digits"],1,I),!u)?null:new pf(i,a,s,o,l,u)}evaluate(e){return new Intl.NumberFormat(this.locale?this.locale.evaluate(e):[],{style:this.currency?"currency":this.unit?"unit":"decimal",currency:this.currency?this.currency.evaluate(e):void 0,unit:this.unit?this.unit.evaluate(e):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(e):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(e):void 0}).format(this.number.evaluate(e))}eachChild(e){e(this.number),this.locale&&e(this.locale),this.currency&&e(this.currency),this.unit&&e(this.unit),this.minFractionDigits&&e(this.minFractionDigits),this.maxFractionDigits&&e(this.maxFractionDigits)}outputDefined(){return!1}},Z0=class ff{constructor(e){this.type=wn,this.input=e}static parse(e,r){if(e.length!==2)return r.error("Expected two arguments.");let i=r.parse(e[1],1,W);return i?new ff(i):r.error("No image name provided.")}evaluate(e){let r=this.input.evaluate(e),i=Se.fromString(r);return i&&e.availableImages&&(i.available=e.availableImages.indexOf(r)>-1),i}eachChild(e){e(this.input)}outputDefined(){return!1}},H0=class df{constructor(e,r){this.input=e,this.key=r,this.type=I}static parse(e,r){if(e.length!==2)return r.error(`Expected 1 argument, but found ${e.length-1} instead.`);let i=r.parse(e[1],1);return i?i.type.kind!=="array"&&i.type.kind!=="string"&&i.type.kind!=="value"?r.error(`Expected argument of type string or array, but found ${mt(i.type)} instead.`):new df(i,r.key):null}evaluate(e){let r=this.input.evaluate(e);if(typeof r=="string")return[...r].length;if(Array.isArray(r))return r.length;throw new ft(`Expected value to be of type string or array, but found ${mt(St(r))} instead.`,this.key)}eachChild(e){e(this.input)}outputDefined(){return!1}},_e=8192;function K0(t,e){let r=J0(t[0]),i=tm(t[1]),n=2**e.z;return[Math.round(r*n*_e),Math.round(i*n*_e)]}function _l(t,e){let r=2**e.z,i=(t[0]/_e+e.x)/r,n=(t[1]/_e+e.y)/r;return[Q0(i),em(n)]}function J0(t){return(180+t)/360}function Q0(t){return t*360-180}function tm(t){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+t*Math.PI/360)))/360}function em(t){return 360/Math.PI*Math.atan(Math.exp((180-t*360)*Math.PI/180))-90}function Dn(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[2]=Math.max(t[2],e[0]),t[3]=Math.max(t[3],e[1])}function an(t,e){return!(t[0]<=e[0]||t[2]>=e[2]||t[1]<=e[1]||t[3]>=e[3])}function rm(t,e,r){return e[1]>t[1]!=r[1]>t[1]&&t[0]<(r[0]-e[0])*(t[1]-e[1])/(r[1]-e[1])+e[0]}function im(t,e,r){let i=t[0]-e[0],n=t[1]-e[1],a=t[0]-r[0],s=t[1]-r[1];return i*s-a*n===0&&i*a<=0&&n*s<=0}function Ua(t,e,r,i){let n=[e[0]-t[0],e[1]-t[1]];return om([i[0]-r[0],i[1]-r[1]],n)!==0&&!!(_h(t,e,r,i)&&_h(r,i,t,e))}function nm(t,e,r){for(let i of r)for(let n=0;n0&&c<0||h<0&&c>0}function Al(t,e,r){let i=[];for(let n=0;nr[2]){let n=i*.5,a=t[0]-r[0]>n?-i:r[0]-t[0]>n?i:0;a===0&&(a=t[0]-r[2]>n?-i:r[2]-t[0]>n?i:0),t[0]+=a}Dn(e,t)}function lm(t){t[0]=t[1]=1/0,t[2]=t[3]=-1/0}function Ah(t,e,r,i){let n=2**i.z*_e,a=[i.x*_e,i.y*_e],s=[];for(let o of t)for(let l of o){let u=[l.x+a[0],l.y+a[1]];gf(u,e,r,n),s.push(u)}return s}function Sh(t,e,r,i){let n=2**i.z*_e,a=[i.x*_e,i.y*_e],s=[];for(let o of t){let l=[];for(let u of o){let h=[u.x+a[0],u.y+a[1]];Dn(e,h),l.push(h)}s.push(l)}if(e[2]-e[0]<=n/2){lm(e);for(let o of s)for(let l of o)gf(l,e,r,n)}return s}function um(t,e){let r=[1/0,1/0,-1/0,-1/0],i=[1/0,1/0,-1/0,-1/0],n=t.canonicalID();if(e.type==="Polygon"){let a=Al(e.coordinates,i,n),s=Ah(t.geometry(),r,i,n);if(!an(r,i))return!1;for(let o of s)if(!ui(o,a))return!1}if(e.type==="MultiPolygon"){let a=mf(e.coordinates,i,n),s=Ah(t.geometry(),r,i,n);if(!an(r,i))return!1;for(let o of s)if(!am(o,a))return!1}return!0}function hm(t,e){let r=[1/0,1/0,-1/0,-1/0],i=[1/0,1/0,-1/0,-1/0],n=t.canonicalID();if(e.type==="Polygon"){let a=Al(e.coordinates,i,n),s=Sh(t.geometry(),r,i,n);if(!an(r,i))return!1;for(let o of s)if(!yf(o,a))return!1}if(e.type==="MultiPolygon"){let a=mf(e.coordinates,i,n),s=Sh(t.geometry(),r,i,n);if(!an(r,i))return!1;for(let o of s)if(!sm(o,a))return!1}return!0}var Sl=class pa{constructor(e,r){this.type=Q,this.geojson=e,this.geometries=r}static parse(e,r){if(e.length!==2)return r.error(`\'within\' expression requires exactly one argument, but found ${e.length-1} instead.`);if(ei(e[1])){let i=e[1];if(i.type==="FeatureCollection"){let n=[];for(let a of i.features){let{type:s,coordinates:o}=a.geometry;s==="Polygon"&&n.push(o),s==="MultiPolygon"&&n.push(...o)}if(n.length)return new pa(i,{type:"MultiPolygon",coordinates:n})}else if(i.type==="Feature"){let n=i.geometry.type;if(n==="Polygon"||n==="MultiPolygon")return new pa(i,i.geometry)}else if(i.type==="Polygon"||i.type==="MultiPolygon")return new pa(i,i)}return r.error("\'within\' expression requires valid geojson object that contains polygon geometry type.")}evaluate(e){if(e.geometry()!=null&&e.canonicalID()!=null){if(e.geometryType()==="Point")return um(e,this.geometries);if(e.geometryType()==="LineString")return hm(e,this.geometries)}return!1}eachChild(){}outputDefined(){return!0}},xf=class{constructor(t=[],e=(r,i)=>ri)){if(this.data=t,this.length=this.data.length,this.compare=e,this.length>0)for(let r=(this.length>>1)-1;r>=0;r--)this._down(r)}push(t){this.data.push(t),this._up(this.length++)}pop(){if(this.length===0)return;let t=this.data[0],e=this.data.pop();return--this.length>0&&(this.data[0]=e,this._down(0)),t}peek(){return this.data[0]}_up(t){let{data:e,compare:r}=this,i=e[t];for(;t>0;){let n=t-1>>1,a=e[n];if(r(i,a)>=0)break;e[t]=a,t=n}e[t]=i}_down(t){let{data:e,compare:r}=this,i=this.length>>1,n=e[t];for(;t=0)break;e[t]=e[a],t=a}e[t]=n}},Eh=Math.PI/180,El=class{constructor(t){let e=Eh*6378.137*1e3,r=Math.cos(t*Eh),i=1/(1-.0066943799901413165*(1-r*r)),n=Math.sqrt(i);this.kx=e*n*r,this.ky=e*n*i*.9933056200098587}distance(t,e){let r=this.wrap(t[0]-e[0])*this.kx,i=(t[1]-e[1])*this.ky;return Math.sqrt(r*r+i*i)}pointOnLine(t,e){let r=1/0,i,n,a,s;for(let o=0;o1?(l=t[o+1][0],u=t[o+1][1]):p>0&&(l+=h/this.kx*p,u+=c/this.ky*p)),h=this.wrap(e[0]-l)*this.kx,c=(e[1]-u)*this.ky;let f=h*h+c*c;f180;)t-=360;return t}};function vf(t,e){return e[0]-t[0]}function va(t){return t[1]-t[0]+1}function Ve(t,e){return t[1]>=t[0]&&t[1]t[1])return[null,null];let r=va(t);if(e){if(r===2)return[t,null];let n=Math.floor(r/2);return[[t[0],t[0]+n],[t[0]+n,t[1]]]}if(r===1)return[t,null];let i=Math.floor(r/2)-1;return[[t[0],t[0]+i],[t[0]+i+1,t[1]]]}function lo(t,e){if(!Ve(e,t.length))return[1/0,1/0,-1/0,-1/0];let r=[1/0,1/0,-1/0,-1/0];for(let i=e[0];i<=e[1];++i)Dn(r,t[i]);return r}function uo(t){let e=[1/0,1/0,-1/0,-1/0];for(let r of t)for(let i of r)Dn(e,i);return e}function Fh(t){return t[0]!==-1/0&&t[1]!==-1/0&&t[2]!==1/0&&t[3]!==1/0}function Fl(t,e,r){if(!Fh(t)||!Fh(e))return NaN;let i=0,n=0;return t[2]e[2]&&(i=t[0]-e[2]),t[1]>e[3]&&(n=t[1]-e[3]),t[3]=i)return i;if(an(n,a)){if(Th(t,e))return 0}else if(Th(e,t))return 0;let s=1/0;for(let o of t)for(let l=0,u=o.length,h=u-1;l0;){let l=s.pop();if(l[0]>=a)continue;let u=l[1],h=e?50:100;if(va(u)<=h){if(!Ve(u,t.length))return NaN;if(e){let c=dm(t,u,r,i);if(isNaN(c)||c===0)return c;a=Math.min(a,c)}else for(let c=u[0];c<=u[1];++c){let p=fm(t[c],r,i);if(a=Math.min(a,p),a===0)return 0}}else{let c=oo(u,e);kh(s,a,i,t,o,c[0]),kh(s,a,i,t,o,c[1])}}return a}function wa(t,e,r,i,n,a=1/0){let s=Math.min(a,n.distance(t[0],r[0]));if(s===0)return s;let o=new xf([[0,[0,t.length-1],[0,r.length-1]]],vf);for(;o.length>0;){let l=o.pop();if(l[0]>=s)continue;let u=l[1],h=l[2],c=e?50:100,p=i?50:100;if(va(u)<=c&&va(h)<=p){if(!Ve(u,t.length)&&Ve(h,r.length))return NaN;let f;if(e&&i)f=cm(t,u,r,h,n),s=Math.min(s,f);else if(e&&!i){let d=t.slice(u[0],u[1]+1);for(let y=h[0];y<=h[1];++y)if(f=dr(r[y],d,n),s=Math.min(s,f),s===0)return s}else if(!e&&i){let d=r.slice(h[0],h[1]+1);for(let y=u[0];y<=u[1];++y)if(f=dr(t[y],d,n),s=Math.min(s,f),s===0)return s}else f=pm(t,u,r,h,n),s=Math.min(s,f)}else{let f=oo(u,e),d=oo(h,i);Zn(o,s,n,t,r,f[0],d[0]),Zn(o,s,n,t,r,f[0],d[1]),Zn(o,s,n,t,r,f[1],d[0]),Zn(o,s,n,t,r,f[1],d[1])}}return s}function mm(t,e){let r=t.geometry(),i=r.flat().map(s=>_l([s.x,s.y],t.canonical));if(r.length===0)return NaN;let n=new El(i[0][1]),a=1/0;for(let s of e){switch(s.type){case"Point":a=Math.min(a,wa(i,!1,[s.coordinates],!1,n,a));break;case"LineString":a=Math.min(a,wa(i,!1,s.coordinates,!0,n,a));break;case"Polygon":a=Math.min(a,ba(i,!1,s.coordinates,n,a))}if(a===0)return a}return a}function gm(t,e){let r=t.geometry(),i=r.flat().map(s=>_l([s.x,s.y],t.canonical));if(r.length===0)return NaN;let n=new El(i[0][1]),a=1/0;for(let s of e){switch(s.type){case"Point":a=Math.min(a,wa(i,!0,[s.coordinates],!1,n,a));break;case"LineString":a=Math.min(a,wa(i,!0,s.coordinates,!0,n,a));break;case"Polygon":a=Math.min(a,ba(i,!0,s.coordinates,n,a))}if(a===0)return a}return a}function xm(t,e){let r=t.geometry();if(r.length===0||r[0].length===0)return NaN;let i=Na(r,0).map(s=>s.map(o=>o.map(l=>_l([l.x,l.y],t.canonical)))),n=new El(i[0][0][0][1]),a=1/0;for(let s of e)for(let o of i){switch(s.type){case"Point":a=Math.min(a,ba([s.coordinates],!1,o,n,a));break;case"LineString":a=Math.min(a,ba(s.coordinates,!0,o,n,a));break;case"Polygon":a=Math.min(a,ym(o,s.coordinates,n,a))}if(a===0)return a}return a}function Vs(t){return t.type==="MultiPolygon"?t.coordinates.map(e=>({type:"Polygon",coordinates:e})):t.type==="MultiLineString"?t.coordinates.map(e=>({type:"LineString",coordinates:e})):t.type==="MultiPoint"?t.coordinates.map(e=>({type:"Point",coordinates:e})):[t]}var kl=class fa{constructor(e,r){this.type=I,this.geojson=e,this.geometries=r}static parse(e,r){if(e.length!==2)return r.error(`\'distance\' expression requires exactly one argument, but found ${e.length-1} instead.`);if(ei(e[1])){let i=e[1];if(i.type==="FeatureCollection")return new fa(i,i.features.map(n=>Vs(n.geometry)).flat());if(i.type==="Feature")return new fa(i,Vs(i.geometry));if("type"in i&&"coordinates"in i)return new fa(i,Vs(i))}return r.error("\'distance\' expression requires valid geojson object that contains polygon geometry type.")}evaluate(e){if(e.geometry()!=null&&e.canonicalID()!=null){if(e.geometryType()==="Point")return mm(e,this.geometries);if(e.geometryType()==="LineString")return gm(e,this.geometries);if(e.geometryType()==="Polygon")return xm(e,this.geometries)}return NaN}eachChild(){}outputDefined(){return!0}},vm=class bf{constructor(e){let r=null;for(let i of e)if(!r)r=i.type;else{if(r===i.type)continue;r=H;break}this.type=Ut(r!=null?r:H,e.length),this.arr=e}static parse(e,r){if(e.length!==2)return r.error(`\'semiliteral\' expression requires exactly one argument, but found ${e.length-1} instead.`);if(!ei(e[1]))return r.error(`invalid value of type "${typeof e[1]}"`);let i=e[1],n=St(i);if(n.kind==="array"){let a=i,s=r.concat(1),o=[];for(let l=0;lr.evaluate(e))}eachChild(e){this.arr.forEach(e)}outputDefined(){return this.arr.every(e=>e.outputDefined())}},Il=class wf{constructor(e){this.key=e,this.type=H}static parse(e,r){if(e.length!==2)return r.error(`Expected 1 argument, but found ${e.length-1} instead.`);let i=e[1];return i==null?r.error("Global state property must be defined."):typeof i=="string"?new wf(i):r.error(`Global state property must be string, but found ${typeof e[1]} instead.`)}evaluate(e){var i,n;let r=(i=e.globals)==null?void 0:i.globalState;return!r||Object.keys(r).length===0?null:(n=Yi(r,this.key))!=null?n:null}eachChild(){}outputDefined(){return!1}},Yr={"==":U0,"!=":q0,">":G0,"<":j0,">=":Y0,"<=":X0,array:Be,at:S0,boolean:Be,case:k0,coalesce:of,collator:hf,format:Yp,image:Z0,in:E0,"index-of":F0,interpolate:De,"interpolate-hcl":De,"interpolate-lab":De,length:H0,let:Jp,literal:ri,match:T0,number:Be,"number-format":W0,object:Be,semiliteral:vm,slice:I0,step:Dl,string:Be,"to-boolean":jr,"to-color":jr,"to-number":jr,"to-string":jr,var:tf,within:Sl,distance:kl,"global-state":Il},ve=class extends Error{constructor(t,e){super(e),this.message=e,this.key=t}},bm=class Df{constructor(e,r=[]){this.parent=e,this.bindings={};for(let[i,n]of r)this.bindings[i]=n}concat(e){return new Df(this,e)}get(e){if(this.bindings[e])return this.bindings[e];if(this.parent)return this.parent.get(e);throw Error(`${e} not found in scope.`)}has(e){return this.bindings[e]?!0:this.parent?this.parent.has(e):!1}},_f=class Af{constructor(e,r,i=[],n,a=new bm,s=[]){this.registry=e,this.path=i,this.key=i.map(o=>`[${o}]`).join(""),this.scope=a,this.errors=s,this.expectedType=n,this._isConstant=r}parse(e,r,i,n,a={}){return r==null?this._parse(e,a):this.concat(r,i,n)._parse(e,a)}_parse(e,r){(e===null||typeof e=="string"||typeof e=="boolean"||typeof e=="number")&&(e=["literal",e]);let i=this.key;function n(a,s,o){return o==="assert"?new Be(s,[a],i):o==="coerce"?new jr(s,[a],i):a}if(Array.isArray(e)){if(e.length===0)return this.error(\'Expected an array with at least one element. If you wanted a literal array, use ["literal", []].\');let a=e[0];if(typeof a!="string")return this.error(`Expression name must be a string, but found ${typeof a} instead. If you wanted a literal array, use ["literal", [...]].`,0),null;let s=this.registry[a];if(s){let o=s.parse(e,this);if(!o)return null;if(this.expectedType){let l=this.expectedType,u=o.type;if((l.kind==="string"||l.kind==="number"||l.kind==="boolean"||l.kind==="object"||l.kind==="array")&&u.kind==="value")o=n(o,l,r.typeAnnotation||"assert");else if(l.kind==="projectionDefinition"&&["string","array","value"].includes(u.kind)||["color","formatted","resolvedImage"].includes(l.kind)&&["value","string"].includes(u.kind)||["padding","numberArray"].includes(l.kind)&&["value","number","array"].includes(u.kind)||l.kind==="colorArray"&&["value","string","array"].includes(u.kind)||l.kind==="variableAnchorOffsetCollection"&&["value","array"].includes(u.kind))o=n(o,l,r.typeAnnotation||"coerce");else if(this.checkSubtype(l,u))return null}if(!(o instanceof ri)&&o.type.kind!=="resolvedImage"&&this._isConstant(o)){let l=new Gp;try{o=new ri(o.type,o.evaluate(l))}catch(u){return this.error(u.message),null}}return o}return this.error(`Unknown expression "${a}". If you wanted a literal array, use ["literal", [...]].`,0)}return e===void 0?this.error("\'undefined\' value invalid. Use null instead."):typeof e=="object"?this.error(\'Bare objects invalid. Use ["literal", {...}] instead.\'):this.error(`Expected an array, but found ${typeof e} instead.`)}concat(e,r,i){let n=typeof e=="number"?this.path.concat(e):this.path,a=i?this.scope.concat(i):this.scope;return new Af(this.registry,this._isConstant,n,r||null,a,this.errors)}error(e,...r){let i=`${this.key}${r.map(n=>`[${n}]`).join("")}`;this.errors.push(new ve(i,e))}checkSubtype(e,r){let i=nn(e,r);return i&&this.error(i),i}},Er=class Ui{constructor(e,r,i,n,a){this.name=e,this.type=r,this._evaluate=i,this.args=n,this.key=a}evaluate(e){return this._evaluate(e,this.args,this.key)}eachChild(e){this.args.forEach(e)}outputDefined(){return!1}static parse(e,r){let i=e[0],n=Ui.definitions[i];if(!n)return r.error(`Unknown expression "${i}". If you wanted a literal array, use ["literal", [...]].`,0);let a=Array.isArray(n)?n[0]:n.type,s=Array.isArray(n)?[[n[1],n[2]]]:n.overloads,o=s.filter(([u])=>!Array.isArray(u)||u.length===e.length-1),l=null;for(let[u,h]of o){l=new _f(r.registry,Da,r.path,null,r.scope);let c=[],p=!1;for(let f=1;fDm(c)).join(" | "),h=[];for(let c=1;c>1;if(e[n]===t)return!0;e[n]>t?i=n-1:r=n+1}return!1}function hr(t){return{type:t}}Er.register(Yr,{error:[o0,[W],(t,[e],r)=>{throw new ft(e.evaluate(t),r)}],typeof:[W,[H],(t,[e])=>mt(St(e.evaluate(t)))],"to-rgba":[Ut(I,4),[pe],(t,[e])=>{let[r,i,n,a]=e.evaluate(t).rgb;return[r*255,i*255,n*255,a]}],rgb:[pe,[I,I,I],Ih],rgba:[pe,[I,I,I,I],Ih],has:{type:Q,overloads:[[[W],(t,[e])=>Ch(e.evaluate(t),t.properties())],[[W,mr],(t,[e,r])=>Ch(e.evaluate(t),r.evaluate(t))]]},get:{type:H,overloads:[[[W],(t,[e])=>Os(e.evaluate(t),t.properties())],[[W,mr],(t,[e,r])=>Os(e.evaluate(t),r.evaluate(t))]]},"feature-state":[H,[W],(t,[e])=>Os(e.evaluate(t),t.featureState||{})],properties:[mr,[],t=>t.properties()],"geometry-type":[W,[],t=>t.geometryType()],id:[H,[],t=>t.id()],zoom:[I,[],t=>t.globals.zoom],"heatmap-density":[I,[],t=>t.globals.heatmapDensity||0],elevation:[I,[],t=>t.globals.elevation||0],"line-progress":[I,[],t=>t.globals.lineProgress||0],accumulated:[H,[],t=>t.globals.accumulated===void 0?null:t.globals.accumulated],"+":[I,hr(I),(t,e)=>{let r=0;for(let i of e)r+=i.evaluate(t);return r}],"*":[I,hr(I),(t,e)=>{let r=1;for(let i of e)r*=i.evaluate(t);return r}],"-":{type:I,overloads:[[[I,I],(t,[e,r])=>e.evaluate(t)-r.evaluate(t)],[[I],(t,[e])=>-e.evaluate(t)]]},"/":[I,[I,I],(t,[e,r])=>e.evaluate(t)/r.evaluate(t)],"%":[I,[I,I],(t,[e,r])=>e.evaluate(t)%r.evaluate(t)],ln2:[I,[],()=>Math.LN2],pi:[I,[],()=>Math.PI],e:[I,[],()=>Math.E],"^":[I,[I,I],(t,[e,r])=>e.evaluate(t)**+r.evaluate(t)],sqrt:[I,[I],(t,[e])=>Math.sqrt(e.evaluate(t))],log10:[I,[I],(t,[e])=>Math.log(e.evaluate(t))/Math.LN10],ln:[I,[I],(t,[e])=>Math.log(e.evaluate(t))],log2:[I,[I],(t,[e])=>Math.log(e.evaluate(t))/Math.LN2],sin:[I,[I],(t,[e])=>Math.sin(e.evaluate(t))],cos:[I,[I],(t,[e])=>Math.cos(e.evaluate(t))],tan:[I,[I],(t,[e])=>Math.tan(e.evaluate(t))],asin:[I,[I],(t,[e])=>Math.asin(e.evaluate(t))],acos:[I,[I],(t,[e])=>Math.acos(e.evaluate(t))],atan:[I,[I],(t,[e])=>Math.atan(e.evaluate(t))],min:[I,hr(I),(t,e)=>Math.min(...e.map(r=>r.evaluate(t)))],max:[I,hr(I),(t,e)=>Math.max(...e.map(r=>r.evaluate(t)))],abs:[I,[I],(t,[e])=>Math.abs(e.evaluate(t))],round:[I,[I],(t,[e])=>{let r=e.evaluate(t);return r<0?-Math.round(-r):Math.round(r)}],floor:[I,[I],(t,[e])=>Math.floor(e.evaluate(t))],ceil:[I,[I],(t,[e])=>Math.ceil(e.evaluate(t))],"filter-==":[Q,[W,H],(t,[e,r])=>t.properties()[e.value]===r.value],"filter-id-==":[Q,[H],(t,[e])=>t.id()===e.value],"filter-type-==":[Q,[W],(t,[e])=>t.geometryType()===e.value],"filter-<":[Q,[W,H],(t,[e,r])=>{let i=t.properties()[e.value],n=r.value;return typeof i==typeof n&&i{let r=t.id(),i=e.value;return typeof r==typeof i&&r":[Q,[W,H],(t,[e,r])=>{let i=t.properties()[e.value],n=r.value;return typeof i==typeof n&&i>n}],"filter-id->":[Q,[H],(t,[e])=>{let r=t.id(),i=e.value;return typeof r==typeof i&&r>i}],"filter-<=":[Q,[W,H],(t,[e,r])=>{let i=t.properties()[e.value],n=r.value;return typeof i==typeof n&&i<=n}],"filter-id-<=":[Q,[H],(t,[e])=>{let r=t.id(),i=e.value;return typeof r==typeof i&&r<=i}],"filter->=":[Q,[W,H],(t,[e,r])=>{let i=t.properties()[e.value],n=r.value;return typeof i==typeof n&&i>=n}],"filter-id->=":[Q,[H],(t,[e])=>{let r=t.id(),i=e.value;return typeof r==typeof i&&r>=i}],"filter-has":[Q,[H],(t,[e])=>{let r=e.value,i=t.properties();return r in i&&i[r]!==void 0}],"filter-has-id":[Q,[],t=>t.id()!==null&&t.id()!==void 0],"filter-type-in":[Q,[Ut(W)],(t,[e])=>e.value.indexOf(t.geometryType())>=0],"filter-id-in":[Q,[Ut(H)],(t,[e])=>e.value.indexOf(t.id())>=0],"filter-in-small":[Q,[W,Ut(H)],(t,[e,r])=>r.value.indexOf(t.properties()[e.value])>=0],"filter-in-large":[Q,[W,Ut(H)],(t,[e,r])=>wm(t.properties()[e.value],r.value,0,r.value.length-1)],all:{type:Q,overloads:[[[Q,Q],(t,[e,r])=>e.evaluate(t)&&r.evaluate(t)],[hr(Q),(t,e)=>{for(let r of e)if(!r.evaluate(t))return!1;return!0}]]},any:{type:Q,overloads:[[[Q,Q],(t,[e,r])=>e.evaluate(t)||r.evaluate(t)],[hr(Q),(t,e)=>{for(let r of e)if(r.evaluate(t))return!0;return!1}]]},"!":[Q,[Q],(t,[e])=>!e.evaluate(t)],"is-supported-script":[Q,[W],(t,[e])=>{let r=t.globals&&t.globals.isSupportedScript;return!r||r(e.evaluate(t))}],upcase:[W,[W],(t,[e])=>e.evaluate(t).toUpperCase()],downcase:[W,[W],(t,[e])=>e.evaluate(t).toLowerCase()],concat:[W,hr(H),(t,e)=>e.map(r=>Wi(r.evaluate(t))).join("")],split:[Ut(W),[W,W],(t,[e,r])=>e.evaluate(t).split(r.evaluate(t))],join:[W,[Ut(W),W],(t,[e,r])=>e.evaluate(t).join(r.evaluate(t))],"resolved-locale":[W,[La],(t,[e])=>e.evaluate(t).resolvedLocale()]});function Dm(t){return Array.isArray(t)?`(${t.map(mt).join(", ")})`:`(${mt(t.type)}...)`}function Da(t){if(t instanceof tf)return Da(t.boundExpression);if(t instanceof Er&&t.name==="error"||t instanceof hf||t instanceof Sl||t instanceof kl||t instanceof Il)return!1;let e=t instanceof jr||t instanceof Be,r=!0;return t.eachChild(i=>{r&&(r=e?Da(i):i instanceof ri)}),r?qa(t)&&ja(t,["zoom","heatmap-density","elevation","line-progress","accumulated","is-supported-script"]):!1}function qa(t){if(t instanceof Er&&(t.name==="get"&&t.args.length===1||t.name==="feature-state"||t.name==="has"&&t.args.length===1||t.name==="properties"||t.name==="geometry-type"||t.name==="id"||/^filter-/.test(t.name))||t instanceof Sl||t instanceof kl)return!1;let e=!0;return t.eachChild(r=>{e&&!qa(r)&&(e=!1)}),e}function sn(t){if(t instanceof Er&&t.name==="feature-state")return!1;let e=!0;return t.eachChild(r=>{e&&!sn(r)&&(e=!1)}),e}function ja(t,e){if(t instanceof Er&&e.indexOf(t.name)>=0)return!1;let r=!0;return t.eachChild(i=>{r&&!ja(i,e)&&(r=!1)}),r}function ii(t){return t["property-type"]==="data-driven"||t["property-type"]==="cross-faded-data-driven"}function Sf(t){return!!t.expression&&t.expression.parameters.indexOf("zoom")>-1}function Cl(t){return!!t.expression&&t.expression.interpolated}var Ml=/^(.*)-transition$/;function on(t,...e){for(let r of e)for(let i in r)t[i]=r[i];return t}function J(t){return t instanceof Number?"number":t instanceof String?"string":t instanceof Boolean?"boolean":Array.isArray(t)?"array":t===null?"null":typeof t}function Ga(t){return typeof t=="object"&&!!t&&!Array.isArray(t)&&St(t)===mr}function _m(t){return t}function Am(t){switch(t.type){case"color":return xt.parse;case"padding":return Ee.parse;case"numberArray":return Fe.parse;case"colorArray":return ue.parse;default:return null}}function Sm(t){switch(t){case"exponential":return Ff;case"interval":return Fm;case"categorical":return Em;case"identity":return Tm;default:throw Error(`Unknown function type "${t}"`)}}function Ef(t,e){let r=t.stops&&typeof t.stops[0][0]=="object",i=r||t.property!==void 0,n=r||!i,a=t.type||(Cl(e)?"exponential":"interval"),s=Am(e);if(s&&(t=on({},t),t.stops&&(t.stops=t.stops.map(h=>[h[0],s(h[1])])),t.default?t.default=s(t.default):t.default=s(e.default)),t.colorSpace&&!g0(t.colorSpace))throw Error(`Unknown color space: "${t.colorSpace}"`);let o=Sm(a),l,u;if(a==="categorical"){l=Object.create(null);for(let h of t.stops)l[h[0]]=h[1];u=typeof t.stops[0][0]}if(r){let h={},c=[];for(let d=0;dd[0]),evaluate({zoom:d},y){return Ff({stops:p,base:t.base},e,d).evaluate(d,y)}}}if(n){let h=a==="exponential"?{name:"exponential",base:t.base===void 0?1:t.base}:null;return{kind:"camera",interpolationType:h,interpolationFactor:De.interpolationFactor.bind(void 0,h),zoomStops:t.stops.map(c=>c[0]),evaluate:({zoom:c})=>o(t,e,c,l,u)}}return{kind:"source",evaluate(h,c){let p=c&&c.properties?c.properties[t.property]:void 0;return p===void 0?_n(t.default,e.default):o(t,e,p,l,u)}}}function _n(t,e,r){if(t!==void 0)return t;if(e!==void 0)return e;if(r!==void 0)return r}function Em(t,e,r,i,n){return _n(typeof r===n?i[r]:void 0,t.default,e.default)}function Fm(t,e,r){if(J(r)!=="number")return _n(t.default,e.default);let i=t.stops.length;if(i===1||r<=t.stops[0][0])return t.stops[0][1];if(r>=t.stops[i-1][0])return t.stops[i-1][1];let n=$a(t.stops.map(a=>a[0]),r,"");return t.stops[n][1]}function Ff(t,e,r){let i=t.base===void 0?1:t.base;if(J(r)!=="number")return _n(t.default,e.default);let n=t.stops.length;if(n===1||r<=t.stops[0][0])return t.stops[0][1];if(r>=t.stops[n-1][0])return t.stops[n-1][1];let a=$a(t.stops.map(h=>h[0]),r,""),s=km(r,i,t.stops[a][0],t.stops[a+1][0]),o=t.stops[a][1],l=t.stops[a+1][1],u=br[e.type]||_m;return typeof o.evaluate=="function"?{evaluate(...h){let c=o.evaluate.apply(void 0,h),p=l.evaluate.apply(void 0,h);if(c!==void 0&&p!==void 0)return u(c,p,s,t.colorSpace)}}:u(o,l,s,t.colorSpace)}function Tm(t,e,r){switch(e.type){case"color":r=xt.parse(r);break;case"formatted":r=Le.fromString(r.toString());break;case"resolvedImage":r=Se.fromString(r.toString());break;case"padding":r=Ee.parse(r);break;case"colorArray":r=ue.parse(r);break;case"numberArray":r=Fe.parse(r);break;default:J(r)!==e.type&&(e.type!=="enum"||!e.values[r])&&(r=void 0)}return _n(r,t.default,e.default)}function km(t,e,r,i){let n=i-r,a=t-r;return n===0?0:e===1?a/n:(e**+a-1)/(e**+n-1)}function ho(t){return{result:"success",value:t}}function Nr(t){return{result:"error",value:t}}var Bl=class{constructor(t,e,r,i){this.expression=t,this._warningHistory={},this._evaluator=new Gp,this._defaultValue=r?Bf(r):null,this._enumValues=r&&r.type==="enum"?r.values:null,this._globalState=i,this._rootKey=e}evaluateWithoutErrorHandling(t,e,r,i,n,a){return this._globalState&&(t=ni(t,this._globalState)),this._evaluator.globals=t,this._evaluator.feature=e,this._evaluator.featureState=r,this._evaluator.canonical=i,this._evaluator.availableImages=n||null,this._evaluator.formattedSection=a,this.expression.evaluate(this._evaluator)}evaluate(t,e,r,i,n,a){this._globalState&&(t=ni(t,this._globalState)),this._evaluator.globals=t,this._evaluator.feature=e||null,this._evaluator.featureState=r||null,this._evaluator.canonical=i,this._evaluator.availableImages=n||null,this._evaluator.formattedSection=a||null;try{let s=this.expression.evaluate(this._evaluator);if(s==null||typeof s=="number"&&s!==s)return this._defaultValue;if(this._enumValues&&!(s in this._enumValues))throw new ft(`Expected value to be one of ${Object.keys(this._enumValues).map(o=>JSON.stringify(o)).join(", ")}, but found ${JSON.stringify(s)} instead.`,"");return s}catch(s){let o=s instanceof ft?s.path:"",l=`${o}|${s.message}`;return this._warningHistory[l]||(this._warningHistory[l]=!0,typeof console<"u"&&console.warn(Tf(this._rootKey,o,s.message,this._defaultValue))),this._defaultValue}}};function Tf(t,e,r,i){return`${t}${e}: ${r}${i==null?"":` Falling back to ${String(i)}.`}`}function kf(t){if(!t)throw Error(\'rootKey must identify the location of the expression in the style JSON, e.g. "layers[3].paint.line-width".\')}function Xa(t){return Array.isArray(t)&&t.length>0&&typeof t[0]=="string"&&t[0]in Yr}function ar(t,e,r,i){kf(e);let n=new _f(Yr,Da,[],r?Mm(r):void 0),a=n.parse(t,void 0,void 0,void 0,r&&r.type==="string"?{typeAnnotation:"coerce"}:void 0);return a?ho(new Bl(a,e,r,i)):Nr(n.errors)}var ln=class{constructor(t,e,r){this.kind=t,this._styleExpression=e,this.isStateDependent=t!=="constant"&&!sn(e.expression),this.globalStateRefs=An(e.expression),this._globalState=r}evaluateWithoutErrorHandling(t,e,r,i,n,a){return this._globalState&&(t=ni(t,this._globalState)),this._styleExpression.evaluateWithoutErrorHandling(t,e,r,i,n,a)}evaluate(t,e,r,i,n,a){return this._globalState&&(t=ni(t,this._globalState)),this._styleExpression.evaluate(t,e,r,i,n,a)}},_a=class{constructor(t,e,r,i,n){this.kind=t,this.zoomStops=r,this._styleExpression=e,this.isStateDependent=t!=="camera"&&!sn(e.expression),this.globalStateRefs=An(e.expression),this.interpolationType=i,this._globalState=n}evaluateWithoutErrorHandling(t,e,r,i,n,a){return this._globalState&&(t=ni(t,this._globalState)),this._styleExpression.evaluateWithoutErrorHandling(t,e,r,i,n,a)}evaluate(t,e,r,i,n,a){return this._globalState&&(t=ni(t,this._globalState)),this._styleExpression.evaluate(t,e,r,i,n,a)}interpolationFactor(t,e,r){return this.interpolationType?De.interpolationFactor(this.interpolationType,t,e,r):0}};function Im(t){return t._styleExpression!==void 0}function If(t,e,r,i){let n=ar(t,e,r,i);if(n.result==="error")return n;let a=n.value.expression,s=qa(a);if(!s&&!ii(r))return Nr([new ve("","data expressions not supported")]);let o=ja(a,["zoom"]);if(!o&&!Sf(r))return Nr([new ve("","zoom expressions not supported")]);let l=da(a);if(!l&&!o)return Nr([new ve("",\'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.\')]);if(l instanceof ve)return Nr([l]);if(l instanceof De&&!Cl(r))return Nr([new ve("",\'"interpolate" expressions cannot be used with this property\')]);if(!l)return ho(s?new ln("constant",n.value,i):new ln("source",n.value,i));let u=l instanceof De?l.interpolation:void 0;return ho(s?new _a("camera",n.value,l.labels,u,i):new _a("composite",n.value,l.labels,u,i))}var Cf=class Mf{constructor(e,r,i){this.isStateDependent=!1,this.globalStateRefs=new Set,this._globalState=null,kf(r),this._parameters=e,this._specification=i,this._rootKey=r,this._defaultValue=Bf(i),this._warningHistory={};let n=Ef(this._parameters,this._specification);this.kind=n.kind,this.interpolationFactor=n.interpolationFactor,this.zoomStops=n.zoomStops,this.interpolationType=n.interpolationType,this._innerEvaluate=n.evaluate}evaluate(e,r){try{return this._innerEvaluate(e,r)}catch(i){let n=i instanceof Error?i.message:String(i),a=`|${n}`;return this._warningHistory[a]||(this._warningHistory[a]=!0,typeof console<"u"&&console.warn(Tf(this._rootKey,"",n,this._defaultValue))),this._defaultValue}}static deserialize(e){return new Mf(e._parameters,e._rootKey,e._specification)}static serialize(e){return{_parameters:e._parameters,_specification:e._specification,_rootKey:e._rootKey}}};function Cm(t,e,r,i){if(Ga(t))return new Cf(t,e,r);if(Xa(t)){let n=If(t,e,r,i);if(n.result==="error")throw Error(n.value.map(a=>`${a.key}: ${a.message}`).join(", "));return n.value}{let n=t;return r.type==="color"&&typeof t=="string"?n=xt.parse(t):r.type==="padding"&&(typeof t=="number"||Array.isArray(t))?n=Ee.parse(t):r.type==="numberArray"&&(typeof t=="number"||Array.isArray(t))?n=Fe.parse(t):r.type==="colorArray"&&(typeof t=="string"||Array.isArray(t))?n=ue.parse(t):r.type==="variableAnchorOffsetCollection"&&Array.isArray(t)?n=Ae.parse(t):r.type==="projectionDefinition"&&typeof t=="string"&&(n=Sr.parse(t)),{globalStateRefs:new Set,_globalState:null,kind:"constant",evaluate:()=>n}}}function da(t){let e=null;if(t instanceof Jp)e=da(t.result);else if(t instanceof of){for(let r of t.args)if(e=da(r),e)break}else(t instanceof Dl||t instanceof De)&&t.input instanceof Er&&t.input.name==="zoom"&&(e=t);return e instanceof ve||t.eachChild(r=>{let i=da(r);i instanceof ve?e=i:!e&&i?e=new ve("",\'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.\'):e&&i&&e!==i&&(e=new ve("",\'Only one zoom-based "step" or "interpolate" subexpression may be used in an expression.\'))}),e}function An(t,e=new Set){return t instanceof Il&&e.add(t.key),t.eachChild(r=>{An(r,e)}),e}function Mm(t){let e={color:pe,string:W,number:I,enum:W,boolean:Q,formatted:bn,padding:Va,numberArray:Oa,colorArray:rn,projectionDefinition:za,resolvedImage:wn,variableAnchorOffsetCollection:Ra};return t.type==="array"?Ut(e[t.value]||H,t.length):e[t.type]}function Bf(t){if(t.type==="color"&&Ga(t.default))return new xt(0,0,0,0);switch(t.type){case"color":return xt.parse(t.default)||null;case"padding":return Ee.parse(t.default)||null;case"numberArray":return Fe.parse(t.default)||null;case"colorArray":return ue.parse(t.default)||null;case"variableAnchorOffsetCollection":return Ae.parse(t.default)||null;case"projectionDefinition":return Sr.parse(t.default)||null;default:return t.default===void 0?null:t.default}}function ni(t,e){let{zoom:r,heatmapDensity:i,elevation:n,lineProgress:a,isSupportedScript:s,accumulated:o}=t!=null?t:{};return{zoom:r,heatmapDensity:i,elevation:n,lineProgress:a,isSupportedScript:s,accumulated:o,globalState:e}}function Bm(t){let e=!1;for(let r of t){let i=Pf(r);if(i==="expression")return"expression";i==="legacy"&&(e=!0)}return e?"legacy":"neutral"}function Pf(t){if(typeof t=="boolean")return"neutral";if(!Array.isArray(t)||t.length===0)return"legacy";switch(t[0]){case"has":return t.length<2||t[1]==="$id"||t[1]==="$type"?"legacy":t.length===2?"neutral":"expression";case"in":return t.length>=3&&(typeof t[1]!="string"||Array.isArray(t[2]))?"expression":"legacy";case"!in":case"!has":return"legacy";case"==":case"!=":case">":case">=":case"<":case"<=":return t.length!==3||Array.isArray(t[1])||Array.isArray(t[2])?"expression":"legacy";case"none":return"legacy";case"any":case"all":return Bm(t.slice(1));default:return"expression"}}function Pl(t){return Pf(t)!=="legacy"}function Mh(t){return t==="$type"?["geometry-type"]:t==="$id"?["id"]:["get",t]}function Pm(t){switch(t[0]){case"==":case"!=":case"<":case"<=":case">":case">=":return t.length!==3||typeof t[1]!="string"?null:[t[0],Mh(t[1]),t[2]];case"in":case"!in":{if(t.length<2||typeof t[1]!="string")return null;let e=["in",Mh(t[1]),["literal",t.slice(2)]];return t[0]==="!in"?["!",e]:e}case"has":case"!has":{if(t.length!==2||typeof t[1]!="string"||t[1]==="$type"||t[1]==="$id")return null;let e=["has",t[1]];return t[0]==="!has"?["!",e]:e}default:return null}}function zf(t){if((t[0]==="<"||t[0]==="<="||t[0]===">"||t[0]===">=")&&t[1]==="$type")return`"$type" cannot be use with operator "${t[0]}"`;let e=Pm(t);return e?`Mixing deprecated filter syntax with expression syntax is not supported. Replace ${JSON.stringify(t)} with ${JSON.stringify(e)}.`:`Mixing deprecated filter syntax with expression syntax is not supported. Convert ${JSON.stringify(t)} to expression syntax.`}function Rs(t,e,r){let i=r[t];return Array.isArray(i)?Pl(i)?zl(i,e.concat(t)):{path:e.concat(t),legacyFilter:i}:null}function zl(t,e=[]){if(!Array.isArray(t)||t.length<1)return null;switch(t[0]){case"all":case"any":case"none":for(let r=1;r"u")return;let i=r.path.map(n=>`[${n}]`).join("");console.warn(`${e}${i}: ${zf(r.legacyFilter)}`)}var Lm={type:"boolean",default:!1,transition:!1,"property-type":"data-driven",expression:{interpolated:!1,parameters:["zoom","feature"]}};function ai(t,e,r){if(t==null)return{filter:()=>!0,needGeometry:!1,getGlobalStateRefs:()=>new Set};Pl(t)?zm(t,e):t=Aa(t);let i=ar(t,e,Lm,r);if(i.result==="error")throw Error(i.value.map(n=>`${n.key}: ${n.message}`).join(", "));return{filter:(n,a,s)=>i.value.evaluate(n,a,{},s),needGeometry:Lf(t),getGlobalStateRefs:()=>An(i.value.expression)}}function Vm(t,e){return te)}function Lf(t){if(!Array.isArray(t))return!1;if(t[0]==="within"||t[0]==="distance")return!0;for(let e=1;e"||e==="<="||e===">="?$s(t[1],t[2],e):e==="any"?Om(t.slice(1)):e==="all"?["all"].concat(t.slice(1).map(Aa)):e==="none"?["all"].concat(t.slice(1).map(Aa).map(Hn)):e==="in"?Bh(t[1],t.slice(2)):e==="!in"?Hn(Bh(t[1],t.slice(2))):e==="has"?Ph(t[1]):e!=="!has"||Hn(Ph(t[1]))}function $s(t,e,r){switch(t){case"$type":return[`filter-type-${r}`,e];case"$id":return[`filter-id-${r}`,e];default:return[`filter-${r}`,t,e]}}function Om(t){return["any"].concat(t.map(Aa))}function Bh(t,e){if(e.length===0)return!1;switch(t){case"$type":return["filter-type-in",["literal",e]];case"$id":return["filter-id-in",["literal",e]];default:return e.length>200&&!e.some(r=>typeof r!=typeof e[0])?["filter-in-large",t,["literal",e.sort(Vm)]]:["filter-in-small",t,["literal",e]]}}function Ph(t){switch(t){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",t]}}function Hn(t){return["!",t]}function Vf(t){let e=t.key,r=t.value;return r?[new E(e,r,"constants have been deprecated as of v8")]:[]}function _t(t){return t instanceof Number||t instanceof String||t instanceof Boolean?t.valueOf():t}function wr(t){if(Array.isArray(t))return t.map(wr);if(t instanceof Object&&!(t instanceof Number||t instanceof String||t instanceof Boolean)){let e={};for(let r in t)e[r]=wr(t[r]);return e}return _t(t)}function ee(t){let e=t.key,r=t.value,i=t.valueSpec||{},n=t.objectElementValidators||{},a=t.style,s=t.styleSpec,o=t.validateSpec,l=[],u=J(r);if(u!=="object")return[new E(e,r,`object expected, ${u} found`)];for(let h in r){let c=h.split(".")[0],p=Yi(i,c)||i["*"],f;if(Yi(n,c))f=n[c];else if(Yi(i,c)){if(r[h]===void 0)continue;f=o}else if(n["*"])f=n["*"];else if(i["*"])f=o;else{l.push(new E(e,r[h],`unknown property "${h}"`));continue}l=l.concat(f({key:(e&&`${e}.`)+h,value:r[h],valueSpec:p,style:a,styleSpec:s,object:r,objectKey:h,validateSpec:o},r))}for(let h in i)n[h]||i[h].required&&i[h].default===void 0&&r[h]===void 0&&l.push(new E(e,r,`missing required property "${h}"`));return l}function Ll(t){let e=t.value,r=t.valueSpec,i=t.validateSpec,n=t.style,a=t.styleSpec,s=t.key,o=t.arrayElementValidator||i;if(J(e)!=="array")return[new E(s,e,`array expected, ${J(e)} found`)];if(r.length&&e.length!==r.length)return[new E(s,e,`array length ${r.length} expected, length ${e.length} found`)];let l={type:r.value,values:r.values};a.$version<7&&(l.function=r.function),J(r.value)==="object"&&(l=r.value);let u=[];for(let h=0;hi.maximum?[new E(e,r,`${r} is greater than the maximum value ${i.maximum}`)]:[]:[new E(e,r,`number expected, ${n} found`)]}function Of(t){let e=t.valueSpec,r=_t(t.value.type),i,n={},a,s,o=r!=="categorical"&&t.value.property===void 0,l=!o,u=J(t.value.stops)==="array"&&J(t.value.stops[0])==="array"&&J(t.value.stops[0][0])==="object",h=ee({key:t.key,value:t.value,valueSpec:t.styleSpec.function,validateSpec:t.validateSpec,style:t.style,styleSpec:t.styleSpec,objectElementValidators:{stops:c,default:d}});return r==="identity"&&o&&h.push(new E(t.key,t.value,\'missing required property "property"\')),r!=="identity"&&!t.value.stops&&h.push(new E(t.key,t.value,\'missing required property "stops"\')),r==="exponential"&&t.valueSpec.expression&&!Cl(t.valueSpec)&&h.push(new E(t.key,t.value,"exponential functions not supported")),t.styleSpec.$version>=8&&(l&&!ii(t.valueSpec)?h.push(new E(t.key,t.value,"property functions not supported")):o&&!Sf(t.valueSpec)&&h.push(new E(t.key,t.value,"zoom functions not supported"))),(r==="categorical"||u)&&t.value.property===void 0&&h.push(new E(t.key,t.value,\'"property" property is required\')),h;function c(y){if(r==="identity")return[new E(y.key,y.value,\'identity function may not have a "stops" property\')];let m=[],g=y.value;return m=m.concat(Ll({key:y.key,value:g,valueSpec:y.valueSpec,validateSpec:y.validateSpec,style:y.style,styleSpec:y.styleSpec,arrayElementValidator:p})),J(g)==="array"&&g.length===0&&m.push(new E(y.key,g,"array must have at least one stop")),m}function p(y){let m=[],g=y.value,x=y.key;if(J(g)!=="array")return[new E(x,g,`array expected, ${J(g)} found`)];if(g.length!==2)return[new E(x,g,`array length 2 expected, length ${g.length} found`)];if(u){if(J(g[0])!=="object")return[new E(x,g,`object expected, ${J(g[0])} found`)];if(g[0].zoom===void 0)return[new E(x,g,"object stop key must have zoom")];if(g[0].value===void 0)return[new E(x,g,"object stop key must have value")];if(s&&s>_t(g[0].zoom))return[new E(x,g[0].zoom,"stop zoom values must appear in ascending order")];_t(g[0].zoom)!==s&&(s=_t(g[0].zoom),a=void 0,n={}),m=m.concat(ee({key:`${x}[0]`,value:g[0],valueSpec:{zoom:{}},validateSpec:y.validateSpec,style:y.style,styleSpec:y.styleSpec,objectElementValidators:{zoom:Ya,value:f}}))}else m=m.concat(f({key:`${x}[0]`,value:g[0],valueSpec:{},validateSpec:y.validateSpec,style:y.style,styleSpec:y.styleSpec},g));return Xa(wr(g[1]))?m.concat([new E(`${x}[1]`,g[1],"expressions are not allowed in function stops.")]):m.concat(y.validateSpec({key:`${x}[1]`,value:g[1],valueSpec:e,validateSpec:y.validateSpec,style:y.style,styleSpec:y.styleSpec}))}function f(y,m){let g=J(y.value),x=_t(y.value),v=y.value===null?m:y.value;if(!i)i=g;else if(g!==i)return[new E(y.key,v,`${g} stop domain type must match previous stop domain type ${i}`)];if(g!=="number"&&g!=="string"&&g!=="boolean")return[new E(y.key,v,"stop domain value must be a number, string, or boolean")];if(g!=="number"&&r!=="categorical"){let b=`number expected, ${g} found`;return ii(e)&&r===void 0&&(b+=\'\\nIf you intended to use a categorical function, specify `"type": "categorical"`.\'),[new E(y.key,v,b)]}return r==="categorical"&&g==="number"&&(!isFinite(x)||Math.floor(x)!==x)?[new E(y.key,v,`integer expected, found ${x}`)]:r!=="categorical"&&g==="number"&&a!==void 0&&xnew E(`${t.key}${i.key}`,t.value,i.message));let r=e.value.expression||e.value._styleExpression.expression;if(t.expressionContext==="property"&&t.propertyKey==="text-font"&&!r.outputDefined())return[new E(t.key,t.value,`Invalid data expression for "${t.propertyKey}". Output values must be contained as literals within the expression.`)];if(t.expressionContext==="property"&&t.propertyType==="layout"&&!sn(r))return[new E(t.key,t.value,\'"feature-state" data expressions are not supported with layout properties.\')];if(t.expressionContext==="filter"&&!sn(r))return[new E(t.key,t.value,\'"feature-state" data expressions are not supported with filters.\')];if(t.expressionContext&&t.expressionContext.indexOf("cluster")===0){if(!ja(r,["zoom","feature-state"]))return[new E(t.key,t.value,\'"zoom" and "feature-state" expressions are not supported with cluster properties.\')];if(t.expressionContext==="cluster-initial"&&!qa(r))return[new E(t.key,t.value,"Feature data expressions are not supported with initial expression part of cluster properties.")]}return[]}function Rm(t){let e=t.value,r=t.key,i=J(e);return i==="boolean"?[]:[new E(r,e,`boolean expected, ${i} found`)]}function co(t){let e=t.key,r=t.value,i=J(r);return i==="string"?xt.parse(String(r))?[]:[new E(e,r,`color expected, "${r}" found`)]:[new E(e,r,`color expected, ${i} found`)]}function un(t){let e=t.key,r=t.value,i=t.valueSpec,n=[];return Array.isArray(i.values)?i.values.indexOf(_t(r))===-1&&n.push(new E(e,r,`expected one of [${i.values.join(", ")}], ${JSON.stringify(r)} found`)):Object.keys(i.values).indexOf(_t(r))===-1&&n.push(new E(e,r,`expected one of [${Object.keys(i.values).join(", ")}], ${JSON.stringify(r)} found`)),n}function $m(t,e){let r=t;for(let i of e)r=r[i];return r}function Nm(t,e){let r=zl(e);return r?[new E(`${t.key}${r.path.map(i=>`[${i}]`).join("")}`,$m(t.value,r.path),zf(r.legacyFilter),null,"warning")]:[]}function Vl(t){let e=wr(t.value);return Pl(e)?[...Nm(t,e),...si(on({},t,{expressionContext:"filter",valueSpec:{value:"boolean"}}))]:Rf(t)}function Rf(t){let e=t.value,r=t.key;if(J(e)!=="array")return[new E(r,e,`array expected, ${J(e)} found`)];let i=t.styleSpec,n,a=[];if(e.length<1)return[new E(r,e,"filter array must have at least 1 element")];switch(a=a.concat(un({key:`${r}[0]`,value:e[0],valueSpec:i.filter_operator,style:t.style,styleSpec:t.styleSpec})),_t(e[0])){case"<":case"<=":case">":case">=":e.length>=2&&_t(e[1])==="$type"&&a.push(new E(r,e,`"$type" cannot be use with operator "${e[0]}"`));case"==":case"!=":e.length!==3&&a.push(new E(r,e,`filter array for operator "${e[0]}" must have 3 elements`));case"in":case"!in":e.length>=2&&(n=J(e[1]),n!=="string"&&a.push(new E(`${r}[1]`,e[1],`string expected, ${n} found`)));for(let s=2;s{c in r&&e.push(new E(i,r[c],`"${c}" is prohibited for ref layers`))});let h;n.layers.forEach(c=>{_t(c.id)===o&&(h=c)}),h?h.ref?e.push(new E(i,r.ref,"ref cannot reference another ref layer")):s=_t(h.type):e.push(new E(i,r.ref,`ref layer "${o}" not found`))}else if(s!=="background")if(!r.source)e.push(new E(i,r,\'missing required property "source"\'));else{let h=n.sources&&n.sources[r.source],c=h&&_t(h.type);h?c==="vector"&&s==="raster"?e.push(new E(i,r.source,`layer "${r.id}" requires a raster source`)):c!=="raster-dem"&&s==="hillshade"||c!=="raster-dem"&&s==="color-relief"?e.push(new E(i,r.source,`layer "${r.id}" requires a raster-dem source`)):c==="raster"&&s!=="raster"?e.push(new E(i,r.source,`layer "${r.id}" requires a vector source`)):c==="vector"&&!r["source-layer"]?e.push(new E(i,r,`layer "${r.id}" must specify a "source-layer"`)):c==="raster-dem"&&s!=="hillshade"&&s!=="color-relief"?e.push(new E(i,r.source,"raster-dem source can only be used with layer type \'hillshade\' or \'color-relief\'.")):s==="line"&&r.paint&&r.paint["line-gradient"]&&(c!=="geojson"||!h.lineMetrics)&&e.push(new E(i,r,`layer "${r.id}" specifies a line-gradient, which requires a GeoJSON source with \\`lineMetrics\\` enabled.`)):e.push(new E(i,r.source,`source "${r.source}" not found`))}return s==="raster"&&((l=r.paint)!=null&&l.resampling)&&((u=r.paint)!=null&&u["raster-resampling"])&&e.push(new E(i,r.paint,`layer "${r.id}" redundantly specifies "resampling" and "raster-resampling" paint properties, but only one is allowed. It is advised to use "resampling".`)),e=e.concat(ee({key:i,value:r,valueSpec:a.layer,style:t.style,styleSpec:t.styleSpec,validateSpec:t.validateSpec,objectElementValidators:{"*"(){return[]},type(){return t.validateSpec({key:`${i}.type`,value:r.type,valueSpec:a.layer.type,style:t.style,styleSpec:t.styleSpec,validateSpec:t.validateSpec,object:r,objectKey:"type"})},filter:Vl,layout(h){return ee({layer:r,key:h.key,value:h.value,style:h.style,styleSpec:h.styleSpec,validateSpec:h.validateSpec,objectElementValidators:{"*"(c){return Uf(on({layerType:s},c))}}})},paint(h){return ee({layer:r,key:h.key,value:h.value,style:h.style,styleSpec:h.styleSpec,validateSpec:h.validateSpec,objectElementValidators:{"*"(c){return Nf(on({layerType:s},c))}}})}}})),e}function ir(t){let e=t.value,r=t.key,i=J(e);return i==="string"?[]:[new E(r,e,`string expected, ${i} found`)]}function Um(t){var c;let e=(c=t.sourceName)!=null?c:"",r=t.value,i=t.styleSpec,n=i.source_raster_dem,a=t.style,s=[],o=J(r);if(r===void 0)return s;if(o!=="object")return s.push(new E("source_raster_dem",r,`object expected, ${o} found`)),s;let l=_t(r.encoding)==="custom",u=["redFactor","greenFactor","blueFactor","baseShift"],h=t.value.encoding?`"${t.value.encoding}"`:"Default";for(let p in r)!l&&u.includes(p)?s.push(new E(p,r[p],`In "${e}": "${p}" is only valid when "encoding" is set to "custom". ${h} encoding found`)):n[p]?s=s.concat(t.validateSpec({key:p,value:r[p],valueSpec:n[p],validateSpec:t.validateSpec,style:a,styleSpec:i})):s.push(new E(p,r[p],`unknown property "${p}"`));return s}var zh={promoteId:qm};function jf(t){let e=t.value,r=t.key,i=t.styleSpec,n=t.style,a=t.validateSpec;if(!e.type)return[new E(r,e,\'"type" is required\')];let s=_t(e.type),o;switch(s){case"vector":case"raster":return o=ee({key:r,value:e,valueSpec:i[`source_${s.replace("-","_")}`],style:t.style,styleSpec:i,objectElementValidators:zh,validateSpec:a}),o;case"raster-dem":return o=Um({sourceName:r,value:e,style:t.style,styleSpec:i,validateSpec:a}),o;case"geojson":if(o=ee({key:r,value:e,valueSpec:i.source_geojson,style:n,styleSpec:i,validateSpec:a,objectElementValidators:zh}),e.cluster)for(let l in e.clusterProperties){let[u,h]=e.clusterProperties[l],c=typeof u=="string"?[u,["accumulated"],["get",l]]:u;o.push(...si({key:`${r}.${l}.map`,value:h,validateSpec:a,expressionContext:"cluster-map"})),o.push(...si({key:`${r}.${l}.reduce`,value:c,validateSpec:a,expressionContext:"cluster-reduce"}))}return o;case"video":return ee({key:r,value:e,valueSpec:i.source_video,style:n,validateSpec:a,styleSpec:i});case"image":return ee({key:r,value:e,valueSpec:i.source_image,style:n,validateSpec:a,styleSpec:i});case"canvas":return[new E(r,null,"Please use runtime APIs to add canvas sources, rather than including them in stylesheets.","source.canvas")];default:return un({key:`${r}.type`,value:e.type,valueSpec:{values:["vector","raster","raster-dem","geojson","video","image"]},style:n,validateSpec:a,styleSpec:i})}}function qm({key:t,value:e}){if(J(e)==="string")return ir({key:t,value:e});{let r=[];for(let i in e)r.push(...ir({key:`${t}.${i}`,value:e[i]}));return r}}function Gf(t){let e=t.value,r=t.styleSpec,i=r.light,n=t.style,a=[],s=J(e);if(e===void 0)return a;if(s!=="object")return a=a.concat([new E("light",e,`object expected, ${s} found`)]),a;for(let o in e){let l=o.match(Ml);a=l&&i[l[1]]&&i[l[1]].transition?a.concat(t.validateSpec({key:o,value:e[o],valueSpec:r.transition,validateSpec:t.validateSpec,style:n,styleSpec:r})):i[o]?a.concat(t.validateSpec({key:o,value:e[o],valueSpec:i[o],validateSpec:t.validateSpec,style:n,styleSpec:r})):a.concat([new E(o,e[o],`unknown property "${o}"`)])}return a}function Xf(t){let e=t.value,r=t.styleSpec,i=r.sky,n=t.style,a=J(e);if(e===void 0)return[];if(a!=="object")return[new E("sky",e,`object expected, ${a} found`)];let s=[];for(let o in e){let l=o.match(Ml);s=l&&i[l[1]]&&i[l[1]].transition?s.concat(t.validateSpec({key:o,value:e[o],valueSpec:r.transition,style:n,styleSpec:r})):i[o]?s.concat(t.validateSpec({key:o,value:e[o],valueSpec:i[o],style:n,styleSpec:r})):s.concat([new E(o,e[o],`unknown property "${o}"`)])}return s}function Yf(t){let e=t.value,r=t.styleSpec,i=r.terrain,n=t.style,a=[],s=J(e);if(e===void 0)return a;if(s!=="object")return a=a.concat([new E("terrain",e,`object expected, ${s} found`)]),a;for(let o in e)a=i[o]?a.concat(t.validateSpec({key:o,value:e[o],valueSpec:i[o],validateSpec:t.validateSpec,style:n,styleSpec:r})):a.concat([new E(o,e[o],`unknown property "${o}"`)]);return a}function jm(t){return ir(t).length===0?[]:si(t)}function Gm(t){return ir(t).length===0?[]:si(t)}function Xm(t){let e=t.key,r=t.value;if(J(r)==="array"){if(r.length<1||r.length>4)return[new E(e,r,`padding requires 1 to 4 values; ${r.length} values found`)];let i={type:"number"},n=[];for(let a=0;a[new E(t,e,\'invalid unicode range, expected a value such as "U+26", "U+0-10FFFF" or "U+4??"\')],n=r.match(tg);if(!n)return i();let[,a,s,o]=n;if(o!==void 0)return o.length>6?i():[];let l=parseInt(a,16),u=s===void 0?l:parseInt(s,16);return l>Lh||u>Lh?[new E(t,e,"unicode range is out of bounds, the maximum code point is U+10FFFF")]:l>u?[new E(t,e,`unicode range start must not be greater than its end, but ${r} is`)]:[]}function Hf(t){var o,l;let e=(o=t.key)!=null?o:"font-faces",r=t.value,i=t.validateSpec,n=(l=t.styleSpec)!=null?l:Bp,a=t.style;if(!po(r))return[new E(e,r,`object expected, ${J(r)} found`)];let s=[];for(let u in r){let h=r[u],c=J(h);if(c==="string")s.push(...ir({key:`${e}.${u}`,value:h}));else if(c==="array"){let p={url:{type:"string",required:!0},"unicode-range":{type:"array",value:"string"}};for(let[f,d]of h.entries()){let y=`${e}.${u}[${f}]`;s.push(...ee({key:y,value:d,valueSpec:p,styleSpec:n,style:a,validateSpec:i}));let m=po(d)?d["unicode-range"]:void 0;if(J(m)==="array")for(let[g,x]of m.entries())s.push(...eg(`${y}.unicode-range[${g}]`,x))}}else s.push(new E(`${e}.${u}`,h,`string or array expected, ${c} found`))}return s}var Vh={"*"(){return[]},array:Ll,boolean:Rm,number:Ya,color:co,constants:Vf,enum:un,filter:Vl,function:Of,layer:qf,object:ee,source:jf,light:Gf,sky:Xf,terrain:Yf,projection:Hm,projectionDefinition:Km,string:ir,formatted:jm,resolvedImage:Gm,padding:Xm,numberArray:Ym,colorArray:Wm,variableAnchorOffsetCollection:Zm,sprite:Wf,state:Zf,fontFaces:Hf};function Zi(t){let e=t.value,r=t.valueSpec,i=t.styleSpec;return t.validateSpec=Zi,r.expression&&Ga(_t(e))?Of(t):r.expression&&Xa(wr(e))?si(t):r.type&&Vh[r.type]?Vh[r.type](t):ee(on({},t,{valueSpec:r.type?i[r.type]:r}))}function Kf(t){let e=t.value,r=t.key,i=ir(t);return i.length||(e.indexOf("{fontstack}")===-1&&i.push(new E(r,e,\'"glyphs" url must include a "{fontstack}" token\')),e.indexOf("{range}")===-1&&i.push(new E(r,e,\'"glyphs" url must include a "{range}" token\'))),i}function te(t,e=D){let r=[];return r=r.concat(Zi({key:"",value:t,valueSpec:e.$root,styleSpec:e,style:t,validateSpec:Zi,objectElementValidators:{glyphs:Kf,"*"(){return[]}}})),t.constants&&(r=r.concat(Vf({key:"constants",value:t.constants,style:t,styleSpec:e,validateSpec:Zi}))),Jf(r)}te.source=ae(ne(jf)),te.sprite=ae(ne(Wf)),te.glyphs=ae(ne(Kf)),te.fontFaces=ae(ne(Hf)),te.light=ae(ne(Gf)),te.sky=ae(ne(Xf)),te.terrain=ae(ne(Yf)),te.state=ae(ne(Zf)),te.layer=ae(ne(qf)),te.filter=ae(ne(Vl)),te.paintProperty=ae(ne(Nf)),te.layoutProperty=ae(ne(Uf));function ne(t){return function(e){return t(Object.assign({},e,{validateSpec:Zi}))}}function Jf(t){return[].concat(t).sort((e,r)=>e.line-r.line)}function ae(t){return function(...e){return Jf(t.apply(this,e))}}var rg={type:"enum","property-type":"data-constant",expression:{interpolated:!1,parameters:["global-state"]},values:{visible:{},none:{}},transition:!1,default:"visible"},ig=class{constructor(t,e,r){this._rootKey=e,this._globalState=r,this.setValue(t)}evaluate(){var t;return(t=this._literalValue)!=null?t:this._compiledValue.evaluate({})}setValue(t){if(t==null||t==="visible"||t==="none"){this._literalValue=t==="none"?"none":"visible",this._compiledValue=void 0,this._globalStateRefs=new Set;return}let e=ar(t,this._rootKey,rg,this._globalState);if(e.result==="error")throw this._literalValue="visible",this._compiledValue=void 0,Error(e.value.map(r=>`${r.key}: ${r.message}`).join(", "));this._literalValue=void 0,this._compiledValue=e.value,this._globalStateRefs=An(e.value.expression)}getGlobalStateRefs(){return this._globalStateRefs}};function ng(t,e,r){return new ig(t,e,r)}var Oh=te,_5=new Set(Object.keys(D).filter(t=>t.startsWith("source_")).map(t=>t.slice(7).replaceAll("_","-")));function ag(t,e){let r=!1;for(let i of e){if(i.severity==="warning"){Mt(i.message);continue}t.fire(new xa(Error(i.message))),r=!0}return r}function sg(t,e,r,i){return(i==null?void 0:i.validate)!==!1&&ag(t,e(Xe({styleSpec:D},r)))}var fo=class Qf{constructor(e,r,i){let n=this.cells=[];if(e instanceof ArrayBuffer){this.arrayBuffer=e;let s=new Int32Array(this.arrayBuffer);e=s[0],r=s[1],i=s[2],this.d=r+2*i;for(let u=0;u=c[f+0]&&n>=c[f+1])?(o[p]=!0,s.push(h[p])):o[p]=!1}}}_forEachCell(e,r,i,n,a,s,o,l){let u=this._convertToCellCoord(e),h=this._convertToCellCoord(r),c=this._convertToCellCoord(i),p=this._convertToCellCoord(n);for(let f=u;f<=c;f++)for(let d=h;d<=p;d++){let y=this.d*d+f;if((!l||l(this._convertFromCellCoord(f),this._convertFromCellCoord(d),this._convertFromCellCoord(f+1),this._convertFromCellCoord(d+1)))&&a.call(this,e,r,i,n,y,s,o,l))return}}_convertFromCellCoord(e){return(e-this.padding)/this.scale}_convertToCellCoord(e){return Math.max(0,Math.min(this.d-1,Math.floor(e*this.scale)+this.padding))}toArrayBuffer(){if(this.arrayBuffer)return this.arrayBuffer;let e=this.cells,r=3+this.cells.length+1+1,i=0;for(let s of this.cells)i+=s.length;let n=new Int32Array(r+i+this.keys.length+this.bboxes.length);n[0]=this.extent,n[1]=this.n,n[2]=this.padding;let a=r;for(let s=0;sr?(this.lastIntegerZoom=r+1,this.lastIntegerZoomTime=e):this.lastFloorZoomthis.zoomHistory.lastIntegerZoom?{fromScale:2,toScale:1,t:e+(1-e)*r}:{fromScale:.5,toScale:1,t:1-(1-r)*e}}},hn=class{constructor(t,e,r,i){this.property=t,this.value=e,this.expression=Cm(e===void 0?t.specification.default:e,r,t.specification,i)}isDataDriven(){return this.expression.kind==="source"||this.expression.kind==="composite"}getGlobalStateRefs(){return this.expression.globalStateRefs||new Set}readsGlobalState(t){let e=this.getGlobalStateRefs();return t.some(r=>e.has(r))}possiblyEvaluate(t,e,r){return this.property.possiblyEvaluate(this,t,e,r)}},yo=class{constructor(t,e,r){this.property=t,this.value=new hn(t,void 0,e,r)}transitioned(t,e){return e.value===this.value?e:new $h(this.property,this.value,e,Xt({},t.transition,this.transition),t.now)}untransitioned(){return new $h(this.property,this.value,null,{},0)}},lg=class{constructor(t,e,r){this._properties=t,this._values=Object.create(t.defaultTransitionablePropertyValues),this._globalState=r,this._rootKey=e}_propertyRootKey(t){return`${this._rootKey}.${String(t)}`}hasProperty(t){return t in this._properties.defaultTransitionablePropertyValues}getValue(t){return Je(this._values[t].value.value)}setValue(t,e){Object.hasOwn(this._values,t)||(this._values[t]=new yo(this._values[t].property,this._propertyRootKey(t),this._globalState)),this._values[t].value=new hn(this._values[t].property,e===null?void 0:Je(e),this._propertyRootKey(t),this._globalState)}setValues(t){for(let e in t){let r=t[e];e.endsWith("-transition")?this.setTransition(e.slice(0,-11),r):to(this._values[e].value.value,r)||this.setValue(e,r)}}getTransition(t){return Je(this._values[t].transition)}setTransition(t,e){Object.hasOwn(this._values,t)||(this._values[t]=new yo(this._values[t].property,this._propertyRootKey(t),this._globalState)),this._values[t].transition=Je(e)||void 0}retainPriorGlobalState(t,e,r){for(let i of Object.keys(r._values))for(let n=r._values[i];n;n=n.prior){let{value:a}=n;a.property.specification.transition&&!a.isDataDriven()&&a.expression._globalState===this._globalState&&a.readsGlobalState(t)&&(n.value=new hn(a.property,a.value,this._propertyRootKey(i),e))}}applyGlobalStateChange(t,e,r,i){this.retainPriorGlobalState(t,e,r);let n=!1;for(let a of Object.keys(this._values)){let{value:s}=this._values[a];s.readsGlobalState(t)&&(this.setValue(a,s.value),n=!0)}return n?this.transitioned(i,r):r}serialize(){let t={};for(let e of Object.keys(this._values)){let r=this.getValue(e);r!==void 0&&(t[e]=r);let i=this.getTransition(e);i!==void 0&&(t[`${e}-transition`]=i)}return t}transitioned(t,e){let r=new Nh(this._properties);for(let i of Object.keys(this._values))r._values[i]=this._values[i].transitioned(t,e._values[i]);return r}untransitioned(){let t=new Nh(this._properties);for(let e of Object.keys(this._values))t._values[e]=this._values[e].untransitioned();return t}},$h=class{constructor(t,e,r,i,n){this.property=t,this.value=e,this.begin=n+i.delay||0,this.end=this.begin+i.duration||0,t.specification.transition&&(i.delay||i.duration)&&(this.prior=r)}possiblyEvaluate(t,e,r){let i=t.now||0,n=this.value.possiblyEvaluate(t,e,r),a=this.prior;if(!a)return n;if(i>this.end||this.value.isDataDriven())return this.prior=null,n;if(ii.zoomHistory.lastIntegerZoom?{from:t,to:e}:{from:r,to:e}}interpolate(t){return t}},id=class{constructor(t,e){this.specification=t,this.name=e}possiblyEvaluate(t,e,r,i){if(t.value!==void 0){if(t.expression.kind==="constant"){let n=t.expression.evaluate(e,null,{},r,i);return this._calculate(n,n,n,e)}return this._calculate(t.expression.evaluate(new st(Math.floor(e.zoom-1),e)),t.expression.evaluate(new st(Math.floor(e.zoom),e)),t.expression.evaluate(new st(Math.floor(e.zoom+1),e)),e)}}_calculate(t,e,r,i){return i.zoom>i.zoomHistory.lastIntegerZoom?{from:t,to:e}:{from:r,to:e}}interpolate(t){return t}},Za=class{constructor(t,e){this.specification=t,this.name=e}possiblyEvaluate(t,e,r,i){return!!t.expression.evaluate(e,null,{},r,i)}interpolate(){return!1}},Yt=class{constructor(t){this.properties=t,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},this.overridableProperties=[];for(let e in t){let r=t[e];r.specification.overridable&&this.overridableProperties.push(e);let i=this.defaultPropertyValues[e]=new hn(r,void 0,r.name,void 0),n=this.defaultTransitionablePropertyValues[e]=new yo(r,r.name,void 0);this.defaultTransitioningPropertyValues[e]=n.untransitioned(),this.defaultPossiblyEvaluatedValues[e]=i.possiblyEvaluate({})}}};C("DataDrivenProperty",U),C("DataConstantProperty",R),C("CrossFadedDataDrivenProperty",cn),C("CrossFadedProperty",id),C("ColorRampProperty",Za);var qh=" is a PAINT property not a LAYOUT property. Use get/setPaintProperty instead?",Ns=" is a LAYOUT property not a PAINT property. Use get/setLayoutProperty instead?",ye=class extends s0{constructor(t,e,r){if(super(),this.id=t.id,this.type=t.type,this._globalState=r,this._featureFilter={filter:()=>!0,needGeometry:!1,getGlobalStateRefs:()=>new Set},this._visibilityExpression=ng(this.visibility,`layers[${this.id}].layout.visibility`,r),t.type!=="custom"&&(this.metadata=t.metadata,this.minzoom=t.minzoom,this.maxzoom=t.maxzoom,t.type!=="background"&&(this.source=t.source,this.sourceLayer=t["source-layer"],this.filter=t.filter,this._featureFilter=ai(t.filter,`layers[${this.id}].filter`,r)),e.layout&&(this._unevaluatedLayout=new ug(e.layout,`layers[${this.id}].layout`,r)),e.paint)){this._transitionablePaint=new lg(e.paint,`layers[${this.id}].paint`,r);for(let i in t.paint)this.setPaintProperty(i,t.paint[i],{validate:!1});for(let i in t.layout)this.setLayoutProperty(i,t.layout[i],{validate:!1});this._transitioningPaint=this._transitionablePaint.untransitioned(),this.paint=new Wa(e.paint)}}setFilter(t){this.filter=t,this._featureFilter=ai(t,`layers[${this.id}].filter`,this._globalState)}getCrossfadeParameters(){return this._crossfadeParameters}getLayoutProperty(t){var e;if(t==="visibility")return this.visibility;if((e=this._transitionablePaint)!=null&&e.hasProperty(t))throw Error(t+qh);if(!this._unevaluatedLayout)throw Error(`Cannot get layout property "${t}" on layer type "${this.type}" which has no layout properties.`);return this._unevaluatedLayout.getValue(t)}getLayoutAffectingGlobalStateRefs(){let t=new Set;for(let e of this._visibilityExpression.getGlobalStateRefs())t.add(e);if(this._unevaluatedLayout)for(let e in this._unevaluatedLayout._values){let r=this._unevaluatedLayout._values[e];for(let i of r.getGlobalStateRefs())t.add(i)}for(let e of this._featureFilter.getGlobalStateRefs())t.add(e);return t}getPaintAffectingGlobalStateRefs(){var e;let t=new globalThis.Map;if(this._transitionablePaint)for(let r in this._transitionablePaint._values){let i=this._transitionablePaint._values[r].value;for(let n of i.getGlobalStateRefs()){let a=(e=t.get(n))!=null?e:[];a.push({name:r,value:i.value}),t.set(n,a)}}return t}getVisibilityAffectingGlobalStateRefs(){return this._visibilityExpression.getGlobalStateRefs()}setLayoutProperty(t,e,r={}){var i;if(t==="visibility"){this.visibility=e,this._visibilityExpression.setValue(e),this.recalculateVisibility();return}if((i=this._transitionablePaint)!=null&&i.hasProperty(t)){this.fire(new xa(Error(t+qh)));return}e!=null&&this._validate(Oh.layoutProperty,`layers.${this.id}.layout.${t}`,t,e,r)||this._unevaluatedLayout.setValue(t,e)}getPaintProperty(t){var e,r;if(t.endsWith("-transition")){let i=t.slice(0,-11);if(i==="visibility"||(e=this._unevaluatedLayout)!=null&&e.hasProperty(i))throw Error(t+Ns);return this._transitionablePaint.getTransition(i)}if(t==="visibility"||(r=this._unevaluatedLayout)!=null&&r.hasProperty(t))throw Error(t+Ns);return this._transitionablePaint.getValue(t)}setPaintProperty(t,e,r={}){var i;if(t==="visibility"||(i=this._unevaluatedLayout)!=null&&i.hasProperty(t))return this.fire(new xa(Error(t+Ns))),!1;if(e!=null&&this._validate(Oh.paintProperty,`layers.${this.id}.paint.${t}`,t,e,r))return!1;if(t.endsWith("-transition"))return this._transitionablePaint.setTransition(t.slice(0,-11),e||void 0),!1;{let n=this._transitionablePaint._values[t],a=n.property.specification["property-type"]==="cross-faded-data-driven",s=n.value.isDataDriven(),o=n.value;this._transitionablePaint.setValue(t,e),this._handleSpecialPaintPropertyUpdate(t);let l=this._transitionablePaint._values[t].value;return l.isDataDriven()||s||a||this._handleOverridablePaintPropertyUpdate(t,o,l)}}_handleSpecialPaintPropertyUpdate(t){}_handleOverridablePaintPropertyUpdate(t,e,r){return!1}isHidden(t=this.minzoom,e=!1){return this.minzoom&&t<(e?Math.floor(this.minzoom):this.minzoom)||this.maxzoom&&t>=this.maxzoom?!0:this._evaluatedVisibility==="none"}updateTransitions(t){this._transitioningPaint=this._transitionablePaint.transitioned(t,this._transitioningPaint)}retainPriorGlobalState(t,e){var r;(r=this._transitionablePaint)==null||r.retainPriorGlobalState(t,e,this._transitioningPaint)}hasTransition(){return this._transitioningPaint.hasTransition()}recalculateVisibility(){this._evaluatedVisibility=this._visibilityExpression.evaluate()}recalculate(t,e){t.getCrossfadeParameters&&(this._crossfadeParameters=t.getCrossfadeParameters()),this._unevaluatedLayout&&(this.layout=this._unevaluatedLayout.possiblyEvaluate(t,void 0,e)),this.paint=this._transitioningPaint.possiblyEvaluate(t,void 0,e)}serialize(){var e,r;let t={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:(e=this._unevaluatedLayout)==null?void 0:e.serialize(),paint:(r=this._transitionablePaint)==null?void 0:r.serialize()};return this.visibility&&(t.layout||(t.layout={}),t.layout.visibility=this.visibility),K1(t,(i,n)=>i!==void 0&&!(n==="layout"&&!Object.keys(i).length)&&!(n==="paint"&&!Object.keys(i).length))}_validate(t,e,r,i,n={}){return sg(this,t,{key:e,layerType:this.type,objectKey:r,value:i},n)}is3D(){return!1}isTileClipped(){return!1}hasOffscreenPass(){return!1}resize(){}isStateDependent(){for(let t in this.paint._values){let e=this.paint.get(t);if(e instanceof le&&ii(e.property.specification)&&(e.value.kind==="source"||e.value.kind==="composite")&&e.value.isStateDependent)return!0}return!1}},jh,hg=()=>jh||(jh=new Yt({"raster-opacity":new R(D.paint_raster["raster-opacity"],"raster-opacity"),"raster-hue-rotate":new R(D.paint_raster["raster-hue-rotate"],"raster-hue-rotate"),"raster-brightness-min":new R(D.paint_raster["raster-brightness-min"],"raster-brightness-min"),"raster-brightness-max":new R(D.paint_raster["raster-brightness-max"],"raster-brightness-max"),"raster-saturation":new R(D.paint_raster["raster-saturation"],"raster-saturation"),"raster-contrast":new R(D.paint_raster["raster-contrast"],"raster-contrast"),resampling:new R(D.paint_raster.resampling,"resampling"),"raster-resampling":new R(D.paint_raster["raster-resampling"],"raster-resampling"),"raster-fade-duration":new R(D.paint_raster["raster-fade-duration"],"raster-fade-duration")})),cg={get paint(){return hg()}};var pg=class extends ye{constructor(t,e){super(t,cg,e)}},fg={Int8:Int8Array,Uint8:Uint8Array,Int16:Int16Array,Uint16:Uint16Array,Int32:Int32Array,Uint32:Uint32Array,Float32:Float32Array},Sn=class{constructor(t,e){this._structArray=t,this._pos1=e*this.size,this._pos2=this._pos1/2,this._pos4=this._pos1/4,this._pos8=this._pos1/8}},vt=class{constructor(){this.isTransferred=!1,this.capacity=-1,this.resize(0)}static serialize(t,e){return t._trim(),e&&(t.isTransferred=!0,e.push(t.arrayBuffer)),{length:t.length,arrayBuffer:t.arrayBuffer}}static deserialize(t){let e=Object.create(this.prototype);return e.arrayBuffer=t.arrayBuffer,e.length=t.length,e.capacity=t.arrayBuffer.byteLength/e.bytesPerElement,e._refreshViews(),e}_trim(){this.length!==this.capacity&&(this.capacity=this.length,this.arrayBuffer=this.arrayBuffer.slice(0,this.length*this.bytesPerElement),this._refreshViews())}clear(){this.length=0}resize(t){this.reserve(t),this.length=t}reserve(t){if(t>this.capacity){this.capacity=Math.max(t,Math.floor(this.capacity*5),128),this.arrayBuffer=new ArrayBuffer(this.capacity*this.bytesPerElement);let e=this.uint8;this._refreshViews(),e&&this.uint8.set(e)}}_refreshViews(){throw Error("_refreshViews() must be implemented by each concrete StructArray layout")}freeBufferAfterUpload(){this.arrayBuffer=new ArrayBuffer(0),this._refreshViews()}};function Et(t,e=1){let r=0,i=0;return{members:t.map(n=>{let a=dg(n.type),s=r=Gh(r,Math.max(e,a)),o=n.components||1;return i=Math.max(i,a),r+=a*o,{name:n.name,type:n.type,components:o,offset:s}}),size:Gh(r,Math.max(i,e)),alignment:e}}function dg(t){return fg[t].BYTES_PER_ELEMENT}function Gh(t,e){return Math.ceil(t/e)*e}var pn=class extends vt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(t,e){let r=this.length;return this.resize(r+1),this.emplace(r,t,e)}emplace(t,e,r){let i=t*2;return this.int16[i+0]=e,this.int16[i+1]=r,t}};pn.prototype.bytesPerElement=4,C("StructArrayLayout2i4",pn);var mo=class extends vt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(t,e,r){let i=this.length;return this.resize(i+1),this.emplace(i,t,e,r)}emplace(t,e,r,i){let n=t*3;return this.int16[n+0]=e,this.int16[n+1]=r,this.int16[n+2]=i,t}};mo.prototype.bytesPerElement=6,C("StructArrayLayout3i6",mo);var Xh=class extends vt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(t,e,r,i){let n=this.length;return this.resize(n+1),this.emplace(n,t,e,r,i)}emplace(t,e,r,i,n){let a=t*4;return this.int16[a+0]=e,this.int16[a+1]=r,this.int16[a+2]=i,this.int16[a+3]=n,t}};Xh.prototype.bytesPerElement=8,C("StructArrayLayout4i8",Xh);var go=class extends vt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(t,e,r,i,n,a){let s=this.length;return this.resize(s+1),this.emplace(s,t,e,r,i,n,a)}emplace(t,e,r,i,n,a,s){let o=t*6;return this.int16[o+0]=e,this.int16[o+1]=r,this.int16[o+2]=i,this.int16[o+3]=n,this.int16[o+4]=a,this.int16[o+5]=s,t}};go.prototype.bytesPerElement=12,C("StructArrayLayout2i4i12",go);var xo=class extends vt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(t,e,r,i,n,a){let s=this.length;return this.resize(s+1),this.emplace(s,t,e,r,i,n,a)}emplace(t,e,r,i,n,a,s){let o=t*4,l=t*8;return this.int16[o+0]=e,this.int16[o+1]=r,this.uint8[l+4]=i,this.uint8[l+5]=n,this.uint8[l+6]=a,this.uint8[l+7]=s,t}};xo.prototype.bytesPerElement=8,C("StructArrayLayout2i4ub8",xo);var fn=class extends vt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(t,e){let r=this.length;return this.resize(r+1),this.emplace(r,t,e)}emplace(t,e,r){let i=t*2;return this.float32[i+0]=e,this.float32[i+1]=r,t}};fn.prototype.bytesPerElement=8,C("StructArrayLayout2f8",fn);var vo=class extends vt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(t,e,r,i,n,a,s,o,l,u){let h=this.length;return this.resize(h+1),this.emplace(h,t,e,r,i,n,a,s,o,l,u)}emplace(t,e,r,i,n,a,s,o,l,u,h){let c=t*10;return this.uint16[c+0]=e,this.uint16[c+1]=r,this.uint16[c+2]=i,this.uint16[c+3]=n,this.uint16[c+4]=a,this.uint16[c+5]=s,this.uint16[c+6]=o,this.uint16[c+7]=l,this.uint16[c+8]=u,this.uint16[c+9]=h,t}};vo.prototype.bytesPerElement=20,C("StructArrayLayout10ui20",vo);var bo=class extends vt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(t,e,r,i,n,a,s,o){let l=this.length;return this.resize(l+1),this.emplace(l,t,e,r,i,n,a,s,o)}emplace(t,e,r,i,n,a,s,o,l){let u=t*8;return this.uint16[u+0]=e,this.uint16[u+1]=r,this.uint16[u+2]=i,this.uint16[u+3]=n,this.uint16[u+4]=a,this.uint16[u+5]=s,this.uint16[u+6]=o,this.uint16[u+7]=l,t}};bo.prototype.bytesPerElement=16,C("StructArrayLayout8ui16",bo);var wo=class extends vt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(t,e,r,i,n,a,s,o,l,u,h,c,p){let f=this.length;return this.resize(f+1),this.emplace(f,t,e,r,i,n,a,s,o,l,u,h,c,p)}emplace(t,e,r,i,n,a,s,o,l,u,h,c,p,f){let d=t*14,y=t*7;return this.int16[d+0]=e,this.int16[d+1]=r,this.int16[d+2]=i,this.int16[d+3]=n,this.uint16[d+4]=a,this.uint16[d+5]=s,this.uint16[d+6]=o,this.uint16[d+7]=l,this.int16[d+8]=u,this.int16[d+9]=h,this.int16[d+10]=c,this.int16[d+11]=p,this.float32[y+6]=f,t}};wo.prototype.bytesPerElement=28,C("StructArrayLayout4i4ui4i1f28",wo);var Do=class extends vt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(t,e,r){let i=this.length;return this.resize(i+1),this.emplace(i,t,e,r)}emplace(t,e,r,i){let n=t*3;return this.float32[n+0]=e,this.float32[n+1]=r,this.float32[n+2]=i,t}};Do.prototype.bytesPerElement=12,C("StructArrayLayout3f12",Do);var _o=class extends vt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)}emplaceBack(t){let e=this.length;return this.resize(e+1),this.emplace(e,t)}emplace(t,e){let r=t*1;return this.uint32[r+0]=e,t}};_o.prototype.bytesPerElement=4,C("StructArrayLayout1ul4",_o);var Ao=class extends vt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(t,e,r,i,n,a,s,o,l){let u=this.length;return this.resize(u+1),this.emplace(u,t,e,r,i,n,a,s,o,l)}emplace(t,e,r,i,n,a,s,o,l,u){let h=t*10,c=t*5;return this.int16[h+0]=e,this.int16[h+1]=r,this.int16[h+2]=i,this.int16[h+3]=n,this.int16[h+4]=a,this.int16[h+5]=s,this.uint32[c+3]=o,this.uint16[h+8]=l,this.uint16[h+9]=u,t}};Ao.prototype.bytesPerElement=20,C("StructArrayLayout6i1ul2ui20",Ao);var So=class extends vt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(t,e,r,i,n,a){let s=this.length;return this.resize(s+1),this.emplace(s,t,e,r,i,n,a)}emplace(t,e,r,i,n,a,s){let o=t*6;return this.int16[o+0]=e,this.int16[o+1]=r,this.int16[o+2]=i,this.int16[o+3]=n,this.int16[o+4]=a,this.int16[o+5]=s,t}};So.prototype.bytesPerElement=12,C("StructArrayLayout2i2i2i12",So);var Yh=class extends vt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(t,e,r,i,n){let a=this.length;return this.resize(a+1),this.emplace(a,t,e,r,i,n)}emplace(t,e,r,i,n,a){let s=t*4,o=t*8;return this.float32[s+0]=e,this.float32[s+1]=r,this.float32[s+2]=i,this.int16[o+6]=n,this.int16[o+7]=a,t}};Yh.prototype.bytesPerElement=16,C("StructArrayLayout2f1f2i16",Yh);var Eo=class extends vt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(t,e,r,i,n,a){let s=this.length;return this.resize(s+1),this.emplace(s,t,e,r,i,n,a)}emplace(t,e,r,i,n,a,s){let o=t*16,l=t*4,u=t*8;return this.uint8[o+0]=e,this.uint8[o+1]=r,this.float32[l+1]=i,this.float32[l+2]=n,this.int16[u+6]=a,this.int16[u+7]=s,t}};Eo.prototype.bytesPerElement=16,C("StructArrayLayout2ub2f2i16",Eo);var Fo=class extends vt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(t,e,r){let i=this.length;return this.resize(i+1),this.emplace(i,t,e,r)}emplace(t,e,r,i){let n=t*3;return this.uint16[n+0]=e,this.uint16[n+1]=r,this.uint16[n+2]=i,t}};Fo.prototype.bytesPerElement=6,C("StructArrayLayout3ui6",Fo);var To=class extends vt{_refreshViews(){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)}emplaceBack(t,e,r,i,n,a,s,o,l,u,h,c,p,f,d,y,m,g){let x=this.length;return this.resize(x+1),this.emplace(x,t,e,r,i,n,a,s,o,l,u,h,c,p,f,d,y,m,g)}emplace(t,e,r,i,n,a,s,o,l,u,h,c,p,f,d,y,m,g,x){let v=t*26,b=t*13,w=t*52;return this.int16[v+0]=e,this.int16[v+1]=r,this.uint16[v+2]=i,this.uint16[v+3]=n,this.uint32[b+2]=a,this.uint32[b+3]=s,this.uint32[b+4]=o,this.uint16[v+10]=l,this.uint16[v+11]=u,this.uint16[v+12]=h,this.float32[b+7]=c,this.float32[b+8]=p,this.uint8[w+36]=f,this.uint8[w+37]=d,this.uint8[w+38]=y,this.uint32[b+10]=m,this.int16[v+22]=g,this.float32[b+12]=x,t}};To.prototype.bytesPerElement=52,C("StructArrayLayout2i2ui3ul3ui2f3ub1ul1i1f52",To);var ko=class extends vt{_refreshViews(){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)}emplaceBack(t,e,r,i,n,a,s,o,l,u,h,c,p,f,d,y,m,g,x,v,b,w,_,A,S,T,L,O,B){let V=this.length;return this.resize(V+1),this.emplace(V,t,e,r,i,n,a,s,o,l,u,h,c,p,f,d,y,m,g,x,v,b,w,_,A,S,T,L,O,B)}emplace(t,e,r,i,n,a,s,o,l,u,h,c,p,f,d,y,m,g,x,v,b,w,_,A,S,T,L,O,B,V){let F=t*34,$=t*17;return this.int16[F+0]=e,this.int16[F+1]=r,this.int16[F+2]=i,this.int16[F+3]=n,this.int16[F+4]=a,this.int16[F+5]=s,this.int16[F+6]=o,this.int16[F+7]=l,this.uint16[F+8]=u,this.uint16[F+9]=h,this.uint16[F+10]=c,this.uint16[F+11]=p,this.uint16[F+12]=f,this.uint16[F+13]=d,this.uint16[F+14]=y,this.uint16[F+15]=m,this.uint16[F+16]=g,this.uint16[F+17]=x,this.uint16[F+18]=v,this.uint16[F+19]=b,this.uint16[F+20]=w,this.uint16[F+21]=_,this.uint16[F+22]=A,this.uint32[$+12]=S,this.float32[$+13]=T,this.float32[$+14]=L,this.uint16[F+30]=O,this.uint16[F+31]=B,this.float32[$+16]=V,t}};ko.prototype.bytesPerElement=68,C("StructArrayLayout8i15ui1ul2f2ui1f68",ko);var Sa=class extends vt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(t){let e=this.length;return this.resize(e+1),this.emplace(e,t)}emplace(t,e){let r=t*1;return this.float32[r+0]=e,t}};Sa.prototype.bytesPerElement=4,C("StructArrayLayout1f4",Sa);var Io=class extends vt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(t,e,r){let i=this.length;return this.resize(i+1),this.emplace(i,t,e,r)}emplace(t,e,r,i){let n=t*6,a=t*3;return this.uint16[n+0]=e,this.float32[a+1]=r,this.float32[a+2]=i,t}};Io.prototype.bytesPerElement=12,C("StructArrayLayout1ui2f12",Io);var Co=class extends vt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(t,e,r){let i=this.length;return this.resize(i+1),this.emplace(i,t,e,r)}emplace(t,e,r,i){let n=t*2,a=t*4;return this.uint32[n+0]=e,this.uint16[a+2]=r,this.uint16[a+3]=i,t}};Co.prototype.bytesPerElement=8,C("StructArrayLayout1ul2ui8",Co);var Mo=class extends vt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(t,e){let r=this.length;return this.resize(r+1),this.emplace(r,t,e)}emplace(t,e,r){let i=t*2;return this.uint16[i+0]=e,this.uint16[i+1]=r,t}};Mo.prototype.bytesPerElement=4,C("StructArrayLayout2ui4",Mo);var Wh=class extends vt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(t){let e=this.length;return this.resize(e+1),this.emplace(e,t)}emplace(t,e){let r=t*1;return this.uint16[r+0]=e,t}};Wh.prototype.bytesPerElement=2,C("StructArrayLayout1ui2",Wh);var Bo=class extends vt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(t,e,r,i){let n=this.length;return this.resize(n+1),this.emplace(n,t,e,r,i)}emplace(t,e,r,i,n){let a=t*4;return this.float32[a+0]=e,this.float32[a+1]=r,this.float32[a+2]=i,this.float32[a+3]=n,t}};Bo.prototype.bytesPerElement=16,C("StructArrayLayout4f16",Bo);var nd=class extends Sn{get anchorPointX(){return this._structArray.int16[this._pos2+0]}get anchorPointY(){return this._structArray.int16[this._pos2+1]}get x1(){return this._structArray.int16[this._pos2+2]}get y1(){return this._structArray.int16[this._pos2+3]}get x2(){return this._structArray.int16[this._pos2+4]}get y2(){return this._structArray.int16[this._pos2+5]}get featureIndex(){return this._structArray.uint32[this._pos4+3]}get sourceLayerIndex(){return this._structArray.uint16[this._pos2+8]}get bucketIndex(){return this._structArray.uint16[this._pos2+9]}get anchorPoint(){return new M(this.anchorPointX,this.anchorPointY)}};nd.prototype.size=20;var Rl=class extends Ao{get(t){return new nd(this,t)}};C("CollisionBoxArray",Rl);var ad=class extends Sn{get anchorX(){return this._structArray.int16[this._pos2+0]}get anchorY(){return this._structArray.int16[this._pos2+1]}get glyphStartIndex(){return this._structArray.uint16[this._pos2+2]}get numGlyphs(){return this._structArray.uint16[this._pos2+3]}get vertexStartIndex(){return this._structArray.uint32[this._pos4+2]}get lineStartIndex(){return this._structArray.uint32[this._pos4+3]}get lineLength(){return this._structArray.uint32[this._pos4+4]}get segment(){return this._structArray.uint16[this._pos2+10]}get lowerSize(){return this._structArray.uint16[this._pos2+11]}get upperSize(){return this._structArray.uint16[this._pos2+12]}get lineOffsetX(){return this._structArray.float32[this._pos4+7]}get lineOffsetY(){return this._structArray.float32[this._pos4+8]}get writingMode(){return this._structArray.uint8[this._pos1+36]}get placedOrientation(){return this._structArray.uint8[this._pos1+37]}set placedOrientation(t){this._structArray.uint8[this._pos1+37]=t}get hidden(){return this._structArray.uint8[this._pos1+38]}set hidden(t){this._structArray.uint8[this._pos1+38]=t}get crossTileID(){return this._structArray.uint32[this._pos4+10]}set crossTileID(t){this._structArray.uint32[this._pos4+10]=t}get associatedIconIndex(){return this._structArray.int16[this._pos2+22]}get heightOffset(){return this._structArray.float32[this._pos4+12]}};ad.prototype.size=52;var sd=class extends To{get(t){return new ad(this,t)}};C("PlacedSymbolArray",sd);var od=class extends Sn{get anchorX(){return this._structArray.int16[this._pos2+0]}get anchorY(){return this._structArray.int16[this._pos2+1]}get rightJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+2]}get centerJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+3]}get leftJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+4]}get verticalPlacedTextSymbolIndex(){return this._structArray.int16[this._pos2+5]}get placedIconSymbolIndex(){return this._structArray.int16[this._pos2+6]}get verticalPlacedIconSymbolIndex(){return this._structArray.int16[this._pos2+7]}get key(){return this._structArray.uint16[this._pos2+8]}get textBoxStartIndex(){return this._structArray.uint16[this._pos2+9]}get textBoxEndIndex(){return this._structArray.uint16[this._pos2+10]}get verticalTextBoxStartIndex(){return this._structArray.uint16[this._pos2+11]}get verticalTextBoxEndIndex(){return this._structArray.uint16[this._pos2+12]}get iconBoxStartIndex(){return this._structArray.uint16[this._pos2+13]}get iconBoxEndIndex(){return this._structArray.uint16[this._pos2+14]}get verticalIconBoxStartIndex(){return this._structArray.uint16[this._pos2+15]}get verticalIconBoxEndIndex(){return this._structArray.uint16[this._pos2+16]}get featureIndex(){return this._structArray.uint16[this._pos2+17]}get numHorizontalGlyphVertices(){return this._structArray.uint16[this._pos2+18]}get numVerticalGlyphVertices(){return this._structArray.uint16[this._pos2+19]}get numIconVertices(){return this._structArray.uint16[this._pos2+20]}get numVerticalIconVertices(){return this._structArray.uint16[this._pos2+21]}get useRuntimeCollisionCircles(){return this._structArray.uint16[this._pos2+22]}get crossTileID(){return this._structArray.uint32[this._pos4+12]}set crossTileID(t){this._structArray.uint32[this._pos4+12]=t}get textBoxScale(){return this._structArray.float32[this._pos4+13]}get collisionCircleDiameter(){return this._structArray.float32[this._pos4+14]}get textAnchorOffsetStartIndex(){return this._structArray.uint16[this._pos2+30]}get textAnchorOffsetEndIndex(){return this._structArray.uint16[this._pos2+31]}get heightOffset(){return this._structArray.float32[this._pos4+16]}};od.prototype.size=68;var ld=class extends ko{get(t){return new od(this,t)}};C("SymbolInstanceArray",ld);var ud=class extends Sa{getoffsetX(t){return this.float32[t*1+0]}};C("GlyphOffsetArray",ud);var hd=class extends mo{getx(t){return this.int16[t*3+0]}gety(t){return this.int16[t*3+1]}gettileUnitDistanceFromAnchor(t){return this.int16[t*3+2]}};C("SymbolLineVertexArray",hd);var cd=class extends Sn{get textAnchor(){return this._structArray.uint16[this._pos2+0]}get textOffset0(){return this._structArray.float32[this._pos4+1]}get textOffset1(){return this._structArray.float32[this._pos4+2]}};cd.prototype.size=12;var pd=class extends Io{get(t){return new cd(this,t)}};C("TextAnchorOffsetArray",pd);var fd=class extends Sn{get featureIndex(){return this._structArray.uint32[this._pos4+0]}get sourceLayerIndex(){return this._structArray.uint16[this._pos2+2]}get bucketIndex(){return this._structArray.uint16[this._pos2+3]}};fd.prototype.size=8;var dd=class extends Co{get(t){return new fd(this,t)}};C("FeatureIndexArray",dd);var yg=class extends pn{};var mg=class extends pn{},gg=class extends pn{},xg=class extends go{},vg=class extends xo{},bg=class extends fn{},Vr=class extends vo{},Zh=class extends bo{},wg=class extends wo{},Dg=class extends Do{},_g=class extends _o{},Hh=class extends So{};var Ag=class extends Eo{};var En=class extends Fo{},Po=class extends Mo{};var zo=Et([{name:"a_pos",components:2,type:"Int16"}],4),Sg=zo.members;zo.size,zo.alignment;var ie=class Ur{constructor(e=[]){this._forceNewSegmentOnNextPrepare=!1,this.segments=e}prepareSegment(e,r,i,n){let a=this.segments[this.segments.length-1];return e>Ur.MAX_VERTEX_ARRAY_LENGTH&&Mt(`Max vertices per segment is ${Ur.MAX_VERTEX_ARRAY_LENGTH}: bucket requested ${e}. Consider using the \\`fillLargeMeshArrays\\` function if you require meshes with more than ${Ur.MAX_VERTEX_ARRAY_LENGTH} vertices.`),this._forceNewSegmentOnNextPrepare||!a||a.vertexLength+e>Ur.MAX_VERTEX_ARRAY_LENGTH||a.sortKey!==n?this.createNewSegment(r,i,n):a}createNewSegment(e,r,i){let n={vertexOffset:e.length,primitiveOffset:r.length,vertexLength:0,primitiveLength:0,vaos:{}};return i!==void 0&&(n.sortKey=i),this._forceNewSegmentOnNextPrepare=!1,this.segments.push(n),n}getOrCreateLatestSegment(e,r,i){return this.prepareSegment(0,e,r,i)}forceNewSegmentOnNextPrepare(){this._forceNewSegmentOnNextPrepare=!0}get(){return this.segments}destroy(){for(let e of this.segments)for(let r in e.vaos)e.vaos[r].destroy()}static simpleSegment(e,r,i,n){return new Ur([{vertexOffset:e,primitiveOffset:r,vertexLength:i,primitiveLength:n,vaos:{},sortKey:0}])}};ie.MAX_VERTEX_ARRAY_LENGTH=2**16-1,C("SegmentVector",ie);function Kh(t,e){return t=en(Math.floor(t),0,255),e=en(Math.floor(e),0,255),256*t+e}var Eg=Et([{name:"a_pattern_from",components:4,type:"Uint16"},{name:"a_pattern_to",components:4,type:"Uint16"},{name:"a_pixel_ratio_from",components:1,type:"Uint16"},{name:"a_pixel_ratio_to",components:1,type:"Uint16"}]),Fg=Et([{name:"a_dasharray_from",components:4,type:"Uint16"},{name:"a_dasharray_to",components:4,type:"Uint16"}]),Tg=ml(((t,e)=>{function r(i,n){for(var a=i.length&3,s=i.length-a,o=n,l,u=3432918353,h=461845907,c,p=0;p>>16)*u&65535)<<16)&4294967295,c=c<<15|c>>>17,c=(c&65535)*h+(((c>>>16)*h&65535)<<16)&4294967295,o^=c,o=o<<13|o>>>19,l=(o&65535)*5+(((o>>>16)*5&65535)<<16)&4294967295,o=(l&65535)+27492+(((l>>>16)+58964&65535)<<16);switch(c=0,a){case 3:c^=(i.charCodeAt(p+2)&255)<<16;case 2:c^=(i.charCodeAt(p+1)&255)<<8;case 1:c^=i.charCodeAt(p)&255,c=(c&65535)*u+(((c>>>16)*u&65535)<<16)&4294967295,c=c<<15|c>>>17,c=(c&65535)*h+(((c>>>16)*h&65535)<<16)&4294967295,o^=c}return o^=i.length,o^=o>>>16,o=(o&65535)*2246822507+(((o>>>16)*2246822507&65535)<<16)&4294967295,o^=o>>>13,o=(o&65535)*3266489909+(((o>>>16)*3266489909&65535)<<16)&4294967295,o^=o>>>16,o>>>0}e!==void 0&&(e.exports=r)})),kg=ml(((t,e)=>{function r(i,n){for(var a=i.length,s=n^a,o=0,l;a>=4;)l=i.charCodeAt(o)&255|(i.charCodeAt(++o)&255)<<8|(i.charCodeAt(++o)&255)<<16|(i.charCodeAt(++o)&255)<<24,l=(l&65535)*1540483477+(((l>>>16)*1540483477&65535)<<16),l^=l>>>24,l=(l&65535)*1540483477+(((l>>>16)*1540483477&65535)<<16),s=(s&65535)*1540483477+(((s>>>16)*1540483477&65535)<<16)^l,a-=4,++o;switch(a){case 3:s^=(i.charCodeAt(o+2)&255)<<16;case 2:s^=(i.charCodeAt(o+1)&255)<<8;case 1:s^=i.charCodeAt(o)&255,s=(s&65535)*1540483477+(((s>>>16)*1540483477&65535)<<16)}return s^=s>>>13,s=(s&65535)*1540483477+(((s>>>16)*1540483477&65535)<<16),s^=s>>>15,s>>>0}e.exports=r})),Ea=M1(ml(((t,e)=>{var r=Tg(),i=kg();e.exports=r,e.exports.murmur3=r,e.exports.murmur2=i}))(),1),yd=class md{constructor(){this.ids=[],this.positions=[],this.indexed=!1}add(e,r,i,n){this.ids.push(Jh(e)),this.positions.push(r,i,n)}getPositions(e){if(!this.indexed)throw Error("Trying to get index, but feature positions are not indexed");let r=Jh(e),i=0,n=this.ids.length-1;for(;i>1;this.ids[s]>=r?n=s:i=s+1}let a=[];for(;this.ids[i]===r;){let s=this.positions[3*i],o=this.positions[3*i+1],l=this.positions[3*i+2];a.push({index:s,start:o,end:l}),i++}return a}static serialize(e,r){let i=new Float64Array(e.ids),n=new Uint32Array(e.positions);return Lo(i,n,0,i.length-1),r&&r.push(i.buffer,n.buffer),{ids:i,positions:n}}static deserialize(e){let r=new md;return r.ids=e.ids,r.positions=e.positions,r.indexed=!0,r}};function Jh(t){let e=+t;return!isNaN(e)&&e<=2**53-1?e:(0,Ea.default)(String(t))}function Lo(t,e,r,i){for(;r>1],a=r-1,s=i+1;for(;;){do a++;while(t[a]n);if(a>=s)break;Kn(t,a,s),Kn(e,3*a,3*s),Kn(e,3*a+1,3*s+1),Kn(e,3*a+2,3*s+2)}s-r`u_${i}`),this.type=r}setUniform(t,e,r){t.set(r.constantOr(this.value))}getBinding(t,e,r){return this.type==="color"?new Cg(t,e):new Nl(t,e)}},fr=class{constructor(t,e){this.uniformNames=e.map(r=>`u_${r}`),this.patternFrom=null,this.patternTo=null,this.pixelRatioFrom=1,this.pixelRatioTo=1}setConstantPatternPositions(t,e){this.pixelRatioFrom=e.pixelRatio,this.pixelRatioTo=t.pixelRatio,this.patternFrom=e.tlbr,this.patternTo=t.tlbr}setConstantDashPositions(t,e){this.dashTo=[0,t.y,t.height,t.width],this.dashFrom=[0,e.y,e.height,e.width]}setUniform(t,e,r,i){let n=null;i==="u_pattern_to"?n=this.patternTo:i==="u_pattern_from"?n=this.patternFrom:i==="u_dasharray_to"?n=this.dashTo:i==="u_dasharray_from"?n=this.dashFrom:i==="u_pixel_ratio_to"?n=this.pixelRatioTo:i==="u_pixel_ratio_from"&&(n=this.pixelRatioFrom),n!==null&&t.set(n)}getBinding(t,e,r){return r.startsWith("u_pattern")||r.startsWith("u_dasharray_")?new Ig(t,e):new Nl(t,e)}},Ce=class{constructor(t,e,r,i){this.expression=t,this.type=r,this.maxValue=0,this.paintVertexAttributes=e.map(n=>({name:`a_${n}`,type:"Float32",components:r==="color"?2:1,offset:0})),this.paintVertexArray=new i}populatePaintArray(t,e,r){let i=this.paintVertexArray.length,n=this.expression.evaluate(new st(0,r),e,{},r.canonical,[],r.formattedSection);this.paintVertexArray.resize(t),this._setPaintValue(i,t,n)}updatePaintArray(t,e,r,i,n){let a=this.expression.evaluate(new st(0,n),r,i);this._setPaintValue(t,e,a)}_setPaintValue(t,e,r){if(this.type==="color"){let i=Vo(r);for(let n=t;n`u_${s}_t`),this.type=r,this.useIntegerZoom=i,this.zoom=n,this.maxValue=0,this.paintVertexAttributes=e.map(s=>({name:`a_${s}`,type:"Float32",components:r==="color"?4:2,offset:0})),this.paintVertexArray=new a}populatePaintArray(t,e,r){let i=this.expression.evaluate(new st(this.zoom,r),e,{},r.canonical,[],r.formattedSection),n=this.expression.evaluate(new st(this.zoom+1,r),e,{},r.canonical,[],r.formattedSection),a=this.paintVertexArray.length;this.paintVertexArray.resize(t),this._setPaintValue(a,t,i,n)}updatePaintArray(t,e,r,i,n){let a=this.expression.evaluate(new st(this.zoom,n),r,i),s=this.expression.evaluate(new st(this.zoom+1,n),r,i);this._setPaintValue(t,e,a,s)}_setPaintValue(t,e,r,i){if(this.type==="color"){let n=Vo(r),a=Vo(i);for(let s=t;s`#define HAS_UNIFORM_${i}`))}return t}getBinderAttributes(){let t=[];for(let e in this.binders){let r=this.binders[e];if(r instanceof Ce||r instanceof ce)for(let i of r.paintVertexAttributes)t.push(i.name);else if(r instanceof Ze){let i=r.getVertexAttributes();for(let n of i)t.push(n.name)}}return t}getBinderUniforms(){let t=[];for(let e in this.binders){let r=this.binders[e];if(r instanceof qi||r instanceof fr||r instanceof ce)for(let i of r.uniformNames)t.push(i)}return t}getPaintVertexBuffers(){return this._buffers}getUniforms(t,e){let r=[];for(let i in this.binders){let n=this.binders[i];if(n instanceof qi||n instanceof fr||n instanceof ce){for(let a of n.uniformNames)if(e[a]){let s=n.getBinding(t,e[a],a);r.push({name:a,property:i,binding:s})}}}return r}setUniforms(t,e,r,i){for(let{name:n,property:a,binding:s}of e)this.binders[a].setUniform(s,i,r.get(a),n)}updatePaintBuffers(t){this._buffers=[];for(let e in this.binders){let r=this.binders[e];if(t&&r instanceof Ze){let i=t.fromScale===2?r.zoomInPaintVertexBuffer:r.zoomOutPaintVertexBuffer;i&&this._buffers.push(i)}else(r instanceof Ce||r instanceof ce)&&r.paintVertexBuffer&&this._buffers.push(r.paintVertexBuffer)}}upload(t){for(let e in this.binders){let r=this.binders[e];(r instanceof Ce||r instanceof ce||r instanceof Ze)&&r.upload(t)}this.updatePaintBuffers()}destroy(){for(let t in this.binders){let e=this.binders[t];(e instanceof Ce||e instanceof ce||e instanceof Ze)&&e.destroy()}}},Dr=class{constructor(t,e,r=()=>!0){this.programConfigurations={};for(let i of t)this.programConfigurations[i.id]=new vd(i,e,r);this.needsUpload=!1,this._featureMap=new yd,this._bufferOffset=0}populatePaintArrays(t,e,r,i){for(let n in this.programConfigurations)this.programConfigurations[n].populatePaintArrays(t,e,i);e.id!==void 0&&this._featureMap.add(e.id,r,this._bufferOffset,t),this._bufferOffset=t,this.needsUpload=!0}updatePaintArrays(t,e,r,i){for(let n of r)this.needsUpload=this.programConfigurations[n.id].updatePaintArrays(t,this._featureMap,e,n,i)||this.needsUpload}get(t){return this.programConfigurations[t]}upload(t){if(this.needsUpload){for(let e in this.programConfigurations)this.programConfigurations[e].upload(t);this.needsUpload=!1}}destroy(){for(let t in this.programConfigurations)this.programConfigurations[t].destroy()}};function Mg(t,e){return{"text-opacity":["opacity"],"icon-opacity":["opacity"],"text-color":["fill_color"],"icon-color":["fill_color"],"text-halo-color":["halo_color"],"icon-halo-color":["halo_color"],"text-halo-blur":["halo_blur"],"icon-halo-blur":["halo_blur"],"text-halo-width":["halo_width"],"icon-halo-width":["halo_width"],"line-gap-width":["gapwidth"],"line-dasharray":["dasharray_to","dasharray_from"],"line-pattern":["pattern_to","pattern_from","pixel_ratio_to","pixel_ratio_from"],"fill-pattern":["pattern_to","pattern_from","pixel_ratio_to","pixel_ratio_from"],"fill-extrusion-pattern":["pattern_to","pattern_from","pixel_ratio_to","pixel_ratio_from"]}[t]||[t.replace(`${e}-`,"").replace(/-/g,"_")]}function Bg(t){return{"line-pattern":{source:Vr,composite:Vr},"fill-pattern":{source:Vr,composite:Vr},"fill-extrusion-pattern":{source:Vr,composite:Vr},"line-dasharray":{source:Zh,composite:Zh}}[t]}function Qh(t,e,r){var n;let i={color:{source:fn,composite:Bo},number:{source:Sa,composite:fn}};return((n=Bg(t))==null?void 0:n[r])||i[e][r]}C("ConstantBinder",qi),C("CrossFadedConstantBinder",fr),C("SourceExpressionBinder",Ce),C("CrossFadedPatternBinder",gd),C("CrossFadedDasharrayBinder",xd),C("CompositeExpressionBinder",ce),C("ProgramConfiguration",vd,{omit:["_buffers"]}),C("ProgramConfigurationSet",Dr);var Oo=2**14-1,tc=-Oo-1;function Fr(t){let e=gt/t.extent,r=t.loadGeometry();for(let i of r)for(let n of i){let a=Math.round(n.x*e),s=Math.round(n.y*e);n.x=en(a,tc,Oo),n.y=en(s,tc,Oo),(an.x+1||sn.y+1)&&Mt("Geometry exceeds allowed extent, reduce your vector tile buffer size")}return r}function hi(t,e){return{type:t.type,id:t.id,properties:t.properties,geometry:e?Fr(t):[]}}var ec=-32768;function Pg(t,e,r,i,n){t.emplaceBack(ec+e*8+i,ec+r*8+n)}var Ul=class{constructor(t){this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map(e=>e.id),this.index=t.index,this.hasDependencies=!1,this.layoutVertexArray=new mg,this.indexArray=new En,this.segments=new ie,this.programConfigurations=new Dr(t.layers,t.zoom),this.stateDependentLayerIds=this.layers.filter(e=>e.isStateDependent()).map(e=>e.id)}populate(t,e,r){let i=this.layers[0],n=[],a=null,s=!1,o=i.type==="heatmap";if(i.type==="circle"){let c=i;a=c.layout.get("circle-sort-key"),s=!a.isConstant(),o||(o=c.paint.get("circle-pitch-alignment")==="map")}let l=o?e.subdivisionGranularity.circle:1,u=new st(this.zoom),h=this.layers[0]._featureFilter.needGeometry;for(let{feature:c,id:p,index:f,sourceLayerIndex:d}of t){let y=hi(c,h);if(!this.layers[0]._featureFilter.filter(u,y,r))continue;let m=s?a.evaluate(y,{},r):void 0,g={id:p,properties:c.properties,type:c.type,sourceLayerIndex:d,index:f,geometry:h?y.geometry:Fr(c),patterns:{},sortKey:m};n.push(g)}s&&n.sort((c,p)=>c.sortKey-p.sortKey);for(let c of n){let{geometry:p,index:f,sourceLayerIndex:d}=c,y=t[f].feature;this.addFeature(c,p,f,r,l),e.featureIndex.insert(y,p,f,d,this.index)}}update(t,e,r){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(t,e,this.stateDependentLayers,{imagePositions:r})}addFeatures(t){}isEmpty(){return this.layoutVertexArray.length===0}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(t){this.uploaded||(this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,Sg),this.indexBuffer=t.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(t),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())}addFeature(t,e,r,i,n=1){let a;switch(n){case 1:a=[0,7];break;case 3:a=[0,2,5,7];break;case 5:a=[0,1,3,4,6,7];break;case 7:a=[0,1,2,3,4,5,6,7];break;default:throw Error(`Invalid circle bucket granularity: ${n}; valid values are 1, 3, 5, 7.`)}let s=a.length;for(let o of e)for(let l of o){let u=l.x,h=l.y;if(u<0||u>=8192||h<0||h>=8192)continue;let c=this.segments.prepareSegment(s*s,this.layoutVertexArray,this.indexArray,t.sortKey),p=c.vertexLength;for(let f=0;f=3){for(let n of i)if(oi(t,n))return!0}if(Vg(t,i,r))return!0}return!1}function Vg(t,e,r){if(t.length>1){if(ql(t,e))return!0;for(let i of e)if(Ro(i,t,r))return!0}for(let i of t)if(Ro(i,e,r))return!0;return!1}function ql(t,e){if(t.length===0||e.length===0)return!1;for(let r=0;r1?t.distSqr(r):t.distSqr(r.sub(e)._mult(n)._add(e))}function rc(t,e){let r=!1,i,n,a;for(let s of t){i=s;for(let o=0,l=i.length-1;oe.y!=a.y>e.y&&e.x<(a.x-n.x)*(e.y-n.y)/(a.y-n.y)+n.x&&(r=!r)}return r}function oi(t,e){let r=!1;for(let i=0,n=t.length-1;ie.y!=s.y>e.y&&e.x<(s.x-a.x)*(e.y-a.y)/(s.y-a.y)+a.x&&(r=!r)}return r}function Rg(t,e,r,i,n){for(let s of t)if(e<=s.x&&r<=s.y&&i>=s.x&&n>=s.y)return!0;let a=[new M(e,r),new M(e,n),new M(i,n),new M(i,r)];if(t.length>2){for(let s of a)if(oi(t,s))return!0}for(let s=0;sn.x&&e.x>n.x||t.yn.y&&e.y>n.y)return!1;let a=Qe(t,e,r[0]);return a!==Qe(t,e,r[1])||a!==Qe(t,e,r[2])||a!==Qe(t,e,r[3])}function Wr(t,e,r){let i=e.paint.get(t).value;return i.kind==="constant"?i.value:r.programConfigurations.get(e.id).getMaxValue(t)}function Ka(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function Ja(t,e,r,i,n){if(!e[0]&&!e[1])return t;let a=M.convert(e)._mult(n);r==="viewport"&&a._rotate(-i);let s=[];for(let o of t)s.push(o.sub(a));return s}function Ng(t){let e=[];for(let r=0;rjl(n,e,r,i))}var ic,Wg=()=>ic||(ic=new Yt({"circle-sort-key":new U(D.layout_circle["circle-sort-key"],"circle-sort-key")})),nc,Zg=()=>nc||(nc=new Yt({"circle-radius":new U(D.paint_circle["circle-radius"],"circle-radius"),"circle-color":new U(D.paint_circle["circle-color"],"circle-color"),"circle-blur":new U(D.paint_circle["circle-blur"],"circle-blur"),"circle-opacity":new U(D.paint_circle["circle-opacity"],"circle-opacity"),"circle-translate":new R(D.paint_circle["circle-translate"],"circle-translate"),"circle-translate-anchor":new R(D.paint_circle["circle-translate-anchor"],"circle-translate-anchor"),"circle-pitch-scale":new R(D.paint_circle["circle-pitch-scale"],"circle-pitch-scale"),"circle-pitch-alignment":new R(D.paint_circle["circle-pitch-alignment"],"circle-pitch-alignment"),"circle-stroke-width":new U(D.paint_circle["circle-stroke-width"],"circle-stroke-width"),"circle-stroke-color":new U(D.paint_circle["circle-stroke-color"],"circle-stroke-color"),"circle-stroke-opacity":new U(D.paint_circle["circle-stroke-opacity"],"circle-stroke-opacity")})),Hg={get paint(){return Zg()},get layout(){return Wg()}};var Kg=class extends ye{constructor(t,e){super(t,Hg,e)}createBucket(t){return new Ul(t)}queryRadius(t){let e=t;return Wr("circle-radius",this,e)+Wr("circle-stroke-width",this,e)+Ka(this.paint.get("circle-translate"))}queryIntersectsFeature({queryGeometry:t,feature:e,featureState:r,geometry:i,transform:n,pixelsToTileUnits:a,unwrappedTileID:s,getElevation:o}){let l=Ja(t,this.paint.get("circle-translate"),this.paint.get("circle-translate-anchor"),-n.bearingInRadians,a),u=this.paint.get("circle-radius").evaluate(e,r)+this.paint.get("circle-stroke-width").evaluate(e,r),h=this.paint.get("circle-pitch-scale"),c=this.paint.get("circle-pitch-alignment"),p,f;return c==="map"?(p=l,f=u*a):(p=Yg(l,n,s,o),f=u),Dd({queryGeometry:p,size:f,transform:n,unwrappedTileID:s,getElevation:o,pitchAlignment:c,pitchScale:h},i)}},_d=class extends Ul{};C("HeatmapBucket",_d,{omit:["layers"]});var ac,Jg=()=>ac||(ac=new Yt({"heatmap-radius":new U(D.paint_heatmap["heatmap-radius"],"heatmap-radius"),"heatmap-weight":new U(D.paint_heatmap["heatmap-weight"],"heatmap-weight"),"heatmap-intensity":new R(D.paint_heatmap["heatmap-intensity"],"heatmap-intensity"),"heatmap-color":new Za(D.paint_heatmap["heatmap-color"],"heatmap-color"),"heatmap-opacity":new R(D.paint_heatmap["heatmap-opacity"],"heatmap-opacity")})),Qg={get paint(){return Jg()}};function Gl(t,{width:e,height:r},i,n){if(!n)n=new Uint8Array(e*r*i);else if(n instanceof Uint8ClampedArray)n=new Uint8Array(n.buffer);else if(n.length!==e*r*i)throw RangeError(`mismatched image size. expected: ${n.length} but got: ${e*r*i}`);return t.width=e,t.height=r,t.data=n,t}function Ad(t,{width:e,height:r},i){if(e===t.width&&r===t.height)return;let n=Gl({},{width:e,height:r},i);Xl(t,n,{x:0,y:0},{x:0,y:0},{width:Math.min(t.width,e),height:Math.min(t.height,r)},i),t.width=e,t.height=r,t.data=n.data}function Xl(t,e,r,i,n,a){if(n.width===0||n.height===0)return e;if(n.width>t.width||n.height>t.height||r.x>t.width-n.width||r.y>t.height-n.height)throw RangeError("out of range source coordinates for image copy");if(n.width>e.width||n.height>e.height||i.x>e.width-n.width||i.y>e.height-n.height)throw RangeError("out of range destination coordinates for image copy");let s=t.data,o=e.data;if(s===o)throw Error("srcData equals dstData, so image is already copied");for(let l=0;l{e[t.evaluationKey]=l;let u=t.expression.evaluate(e);n.setPixel(s/4/r,o/4,u)};if(t.clips)for(let s=0,o=0;ssc||(sc=new Yt({"hillshade-illumination-direction":new R(D.paint_hillshade["hillshade-illumination-direction"],"hillshade-illumination-direction"),"hillshade-illumination-altitude":new R(D.paint_hillshade["hillshade-illumination-altitude"],"hillshade-illumination-altitude"),"hillshade-illumination-anchor":new R(D.paint_hillshade["hillshade-illumination-anchor"],"hillshade-illumination-anchor"),"hillshade-exaggeration":new R(D.paint_hillshade["hillshade-exaggeration"],"hillshade-exaggeration"),"hillshade-shadow-color":new R(D.paint_hillshade["hillshade-shadow-color"],"hillshade-shadow-color"),"hillshade-highlight-color":new R(D.paint_hillshade["hillshade-highlight-color"],"hillshade-highlight-color"),"hillshade-accent-color":new R(D.paint_hillshade["hillshade-accent-color"],"hillshade-accent-color"),"hillshade-method":new R(D.paint_hillshade["hillshade-method"],"hillshade-method"),resampling:new R(D.paint_hillshade.resampling,"resampling")})),nx={get paint(){return ix()}};var ax=class extends ye{constructor(t,e){super(t,nx,e),this.recalculate({zoom:0,zoomHistory:{}},void 0)}getIlluminationProperties(){let t=this.paint.get("hillshade-illumination-direction").values,e=this.paint.get("hillshade-illumination-altitude").values,r=this.paint.get("hillshade-highlight-color").values,i=this.paint.get("hillshade-shadow-color").values,n=Math.max(t.length,e.length,r.length,i.length);t=t.concat(Array(n-t.length).fill(t.at(-1))),e=e.concat(Array(n-e.length).fill(e.at(-1))),r=r.concat(Array(n-r.length).fill(r.at(-1))),i=i.concat(Array(n-i.length).fill(i.at(-1)));let a=e.map(yh);return{directionRadians:t.map(yh),altitudeRadians:a,shadowColor:i,highlightColor:r}}hasOffscreenPass(){return this.paint.get("hillshade-exaggeration")!==0&&!this.isHidden()}},oc,sx=()=>oc||(oc=new Yt({"color-relief-opacity":new R(D["paint_color-relief"]["color-relief-opacity"],"color-relief-opacity"),"color-relief-color":new Za(D["paint_color-relief"]["color-relief-color"],"color-relief-color"),resampling:new R(D["paint_color-relief"].resampling,"resampling")})),ox={get paint(){return sx()}};function Jn(t){return"data"in t}var lc=class{constructor(t,e,r,i){this.context=t,this.format=r,this.texture=t.gl.createTexture(),this._ownedHandle=this.texture,this.update(e,i)}update(t,e,r){var u;let{width:i,height:n}=t,a=(((u=this.size)==null?void 0:u[0])!==i||this.size[1]!==n)&&!r,{context:s}=this,{gl:o}=s;this.useMipmap=!!(e!=null&&e.useMipmap),a&&this.size&&this.format===o.RGBA&&(o.deleteTexture(this.texture),this.texture=o.createTexture(),this._ownedHandle=this.texture,this.magFilter=void 0,this.minFilter=void 0,this.wrap=void 0),o.bindTexture(o.TEXTURE_2D,this.texture),s.pixelStoreUnpackFlipY.set(!1),s.pixelStoreUnpack.set(1);let l=this.format===o.RGBA&&(e==null?void 0:e.premultiply)!==!1;if(a)if(this.size=[i,n],this.format===o.RGBA&&i>0&&n>0){let h=this.useMipmap?Math.floor(Math.log2(Math.max(i,n)))+1:1;if(o.texStorage2D(o.TEXTURE_2D,h,o.RGBA8,i,n),Jn(t)){s.pixelStoreUnpackPremultiplyAlpha.set(!1);let{data:c}=t;l&&c&&(c=Us(c)),c&&o.texSubImage2D(o.TEXTURE_2D,0,0,0,i,n,o.RGBA,o.UNSIGNED_BYTE,c)}else s.pixelStoreUnpackPremultiplyAlpha.set(l),o.texSubImage2D(o.TEXTURE_2D,0,0,0,o.RGBA,o.UNSIGNED_BYTE,t)}else Jn(t)?(s.pixelStoreUnpackPremultiplyAlpha.set(!1),this._uploadRawData(t,l,i,n,o)):(s.pixelStoreUnpackPremultiplyAlpha.set(l),this._uploadDomImage(t,o));else{let{x:h,y:c}=r||{x:0,y:0};Jn(t)?(s.pixelStoreUnpackPremultiplyAlpha.set(!1),this._updateRawData(t,l,h,c,i,n,o)):(s.pixelStoreUnpackPremultiplyAlpha.set(l),this._updateDomImage(t,h,c,o))}this.useMipmap&&!(Jn(t)&&t.data===null)&&o.generateMipmap(o.TEXTURE_2D),s.pixelStoreUnpackFlipY.setDefault(),s.pixelStoreUnpack.setDefault(),s.pixelStoreUnpackPremultiplyAlpha.setDefault()}_uploadDomImage(t,e){e.texImage2D(e.TEXTURE_2D,0,this.format,this.format,e.UNSIGNED_BYTE,t)}_uploadRawData(t,e,r,i,n){let{data:a}=t;e&&a&&(a=Us(a)),n.texImage2D(n.TEXTURE_2D,0,this.format,r,i,0,this.format,n.UNSIGNED_BYTE,a)}_updateDomImage(t,e,r,i){i.texSubImage2D(i.TEXTURE_2D,0,e,r,i.RGBA,i.UNSIGNED_BYTE,t)}_updateRawData(t,e,r,i,n,a,s){let{data:o}=t;e&&o&&(o=Us(o)),s.texSubImage2D(s.TEXTURE_2D,0,r,i,n,a,s.RGBA,s.UNSIGNED_BYTE,o)}bind(t,e,r){let{context:i}=this,{gl:n}=i;this.texture!==this._ownedHandle&&(this.texture=this._ownedHandle),n.bindTexture(n.TEXTURE_2D,this.texture),(r===n.LINEAR_MIPMAP_NEAREST||r===n.LINEAR_MIPMAP_LINEAR)&&!this.useMipmap&&(r=n.LINEAR);let a=r||t;t!==this.magFilter&&(n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MAG_FILTER,t),this.magFilter=t),a!==this.minFilter&&(n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MIN_FILTER,a),this.minFilter=a),e!==this.wrap&&(n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_S,e),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_T,e),this.wrap=e)}generateMipmap(){if(!this.useMipmap)return;let{gl:t}=this.context;t.bindTexture(t.TEXTURE_2D,this.texture),t.generateMipmap(t.TEXTURE_2D)}destroy(){let{gl:t}=this.context;t.deleteTexture(this.texture),this.texture=null,this._ownedHandle=null}},ze,Yl=(ze=class{constructor(e,r,i,n=1,a=1,s=1,o=0){if(this.uid=e,r.height!==r.width)throw RangeError("DEM tiles must be square");if(i&&!["mapbox","terrarium","custom"].includes(i)){Mt(`"${i}" is not a valid encoding type. Valid types include "mapbox", "terrarium" and "custom".`);return}this.stride=r.height;let l=this.dim=r.height-4;switch(this.data=new Uint32Array(r.data.buffer),ze.byteViewCache.set(this,new Uint8Array(this.data.buffer)),i){case"terrarium":this.redFactor=256,this.greenFactor=1,this.blueFactor=1/256,this.baseShift=32768;break;case"custom":this.redFactor=n,this.greenFactor=a,this.blueFactor=s,this.baseShift=o;break;default:this.redFactor=6553.6,this.greenFactor=25.6,this.blueFactor=.1,this.baseShift=1e4}for(let h=-2;h=l)&&this.data.copyWithin(this._idx(0,h),c,c+l),this.data.fill(this.data[c],this._idx(-2,h),this._idx(0,h)),this.data.fill(this.data[c+l-1],this._idx(l,h),this._idx(l+1,h)+1)}let u=this._getByteView();this.min=2**53-1,this.max=-(2**53-1);for(let h=0;hthis.max&&(this.max=f),f=this.dim||n<-1||n>=this.dim)throw RangeError(`Out of range source coordinates for DEM data. x: ${e}, y: ${r}, dim: ${this.dim}`);let a=this._getByteView(),s=((n+2)*this.stride+i+2)*4,o=this.stride*4,l=e-i,u=r-n,h=this._unpackAtIndex(a,s),c=this._unpackAtIndex(a,s+4),p=this._unpackAtIndex(a,s+o),f=this._unpackAtIndex(a,s+o+4);return h*(1-l)*(1-u)+c*l*(1-u)+p*(1-l)*u+f*l*u}getUnpackVector(){return[this.redFactor,this.greenFactor,this.blueFactor,this.baseShift]}_idx(e,r){if(e<-2||e>=this.dim+2||r<-2||r>=this.dim+2)throw RangeError(`Out of range source coordinates for DEM data. x: ${e}, y: ${r}, dim: ${this.dim}`);return(r+2)*this.stride+(e+2)}unpack(e,r,i){return e*this.redFactor+r*this.greenFactor+i*this.blueFactor-this.baseShift}pack(e){return Fd(e,this.getUnpackVector())}getPixels(){return new Ht({width:this.stride,height:this.stride},this._getByteView())}backfillBorder(e,r,i){if(this.dim!==e.dim)throw Error("dem dimension mismatch");let n=r*this.dim,a=r*this.dim+this.dim,s=i*this.dim,o=i*this.dim+this.dim;switch(r){case-1:n=a-2;break;case 1:a=n+2}switch(i){case-1:s=o-2;break;case 1:o=s+2}let l=-r*this.dim,u=-i*this.dim;for(let h=s;h80*r){o=t[0],l=t[1];let h=o,c=l;for(let p=r;ph&&(h=f),d>c&&(c=d)}u=Math.max(h-o,c-l),u=u===0?0:32767/u}return Uo(a,s,o,l,u),s}function Td(t,e,r,i,n){let a=null;if(n===Tx(t,e,r,i)>0)for(let s=e;s=e;s-=i)a=cc(s/i|0,t[s],t[s+1],a);return a&&yn(a,a.next)&&(gn(a),a=a.next),a}function _r(t,e=t){let r=e===t,i=t,n;do n=!1,i!==i.next&&(dn.size===0||!dn.has(i))&&(yn(i,i.next)||Tt(i.prev,i,i.next)===0)?((r||i===e)&&(e=i.prev),No=!0,gn(i),i=i.prev,n=!0):(r||i!==e)&&(i=i.next,n=!r);while(n||i!==e);return e}function Uo(t,e,r,i,n){n&&Dx(t,r,i,n);let a=t,s=!1;for(;t.prev!==t.next;){let o=t.prev,l=t.next;if(Tt(o,t,l)<0&&(n?px(t,r,i,n):cx(t))){e.push(o.i,t.i,l.i),gn(t),t=l,a=l;continue}if(t=l,t===a){if(No=!1,t=_r(t),No){a=t;continue}if(!s){t=fx(t,e),a=t,s=!0;continue}dx(t,e,r,i,n);break}}}function cx(t){let e=t.prev,r=t,i=t.next,n=e.x,a=r.x,s=i.x,o=e.y,l=r.y,u=i.y,h=Math.min(n,a,s),c=Math.min(o,l,u),p=Math.max(n,a,s),f=Math.max(o,l,u),d=i.next;for(;d!==e;){if(d.x>=h&&d.x<=p&&d.y>=c&&d.y<=f&&(n!==d.x||o!==d.y)&&ka(n,o,a,l,s,u,d.x,d.y)&&Tt(d.prev,d,d.next)>=0)return!1;d=d.next}return!0}function px(t,e,r,i){let n=t.prev,a=t,s=t.next,o=n.x,l=a.x,u=s.x,h=n.y,c=a.y,p=s.y,f=Math.min(o,l,u),d=Math.min(h,c,p),y=Math.max(o,l,u),m=Math.max(h,c,p),g=Xo(f,d,e,r,i),x=Xo(y,m,e,r,i),v=t.prevZ;for(;v&&v.z>=g;){if(v.x>=f&&v.x<=y&&v.y>=d&&v.y<=m&&v!==s&&(o!==v.x||h!==v.y)&&ka(o,h,l,c,u,p,v.x,v.y)&&Tt(v.prev,v,v.next)>=0)return!1;v=v.prevZ}let b=t.nextZ;for(;b&&b.z<=x;){if(b.x>=f&&b.x<=y&&b.y>=d&&b.y<=m&&b!==s&&(o!==b.x||h!==b.y)&&ka(o,h,l,c,u,p,b.x,b.y)&&Tt(b.prev,b,b.next)>=0)return!1;b=b.nextZ}return!0}function fx(t,e){let r=t,i=!1;do{let n=r.prev,a=r.next.next;Id(n,r,r.next,a,!1)&&mn(n,a)&&mn(a,n)&&(e.push(n.i,r.i,a.i),gn(r),gn(r.next),r=t=a,i=!0),r=r.next}while(r!==t);return i?_r(r):r}function dx(t,e,r,i,n){let a=t;do{let s=a.next.next;for(;s!==a.prev;){if(a.i!==s.i&&Sx(a,s)){let o=Cd(a,s);a=_r(a,a.next),o=_r(o,o.next),Uo(a,e,r,i,n),Uo(o,e,r,i,n);return}s=s.next}a=a.next}while(a!==t)}var qo=!1;function yx(t,e,r,i){let n=[];for(let a=0,s=e.length;as&&(s=r.x),r.yo&&(o=r.y),h.xs&&(s=h.x),h.yo&&(o=h.y),r=h}while(++l<16&&r!==e);Go[i]=r;let u=i*4;Dt[u]=n,Dt[u+1]=a,Dt[u+2]=s,Dt[u+3]=o}while(r!==e)}function vx(t,e){let r=t.z*4;e.xDt[r+2]&&(Dt[r+2]=e.x),e.y>Dt[r+3]&&(Dt[r+3]=e.y)}function uc(t){let e=Go[t];for(;e.prev.next!==e;)e=e.next;return Go[t]=e,e}function hc(t){let e=jo[t];for(;e.prev.next!==e;)e=e.next;return jo[t]=e,e}function bx(t,e){let r=e,i=t.x,n=t.y,a=-1/0,s;if(yn(t,r))return r;for(let p=0,f=0;pDt[f+3]||Dt[f]>i||Dt[f+2]<=a)continue;let d=uc(p);r=hc(p);do{if(r.prev.next===r){if(yn(t,r.next))return r.next;if(n<=r.y&&n>=r.next.y&&r.next.y!==r.y){let y=r.x+(n-r.y)*(r.next.x-r.x)/(r.next.y-r.y);if(y<=i&&y>a&&(a=y,s=r.xi||Dt[f+3]h)continue;let d=uc(p);r=hc(p);do{if(r.prev.next===r&&i>=r.x&&r.x>=o&&i!==r.x&&ka(ni)&&(ys.x||r.x===s.x&&wx(s,r)))&&(s=r,c=y)}r=r.next}while(r!==d)}return s}function wx(t,e){return Tt(t.prev,t,e.prev)<0&&Tt(e.next,t,t.next)<0}var oe=[],Ii=[],cr=new Uint32Array,Ci=new Uint32Array,Mi=new Uint32Array(256);function Dx(t,e,r,i){let n=t,a=0;do n.z=Xo(n.x,n.y,e,r,i),oe[a++]=n,n=n.next;while(n!==t);_x(a);let s=null;for(let o=0;o=0&&oe[n].z>i;)oe[n+1]=oe[n],n--;oe[n+1]=r}return}cr.length>>a&255]++;let s=0;for(let o=0;o<256;o++){let l=Mi[o];Mi[o]=s,s+=l}for(let o=0;o>>a&255]++;i[u]=e[o],n[u]=l}}function Xo(t,e,r,i,n){return t=(t-r)*n|0,e=(e-i)*n|0,t=(t|t<<8)&16711935,t=(t|t<<4)&252645135,t=(t|t<<2)&858993459,t=(t|t<<1)&1431655765,e=(e|e<<8)&16711935,e=(e|e<<4)&252645135,e=(e|e<<2)&858993459,e=(e|e<<1)&1431655765,t|e<<1}function Ax(t){let e=t,r=t;do(e.x=(t-s)*(a-o)&&(t-s)*(i-o)>=(r-s)*(e-o)&&(r-s)*(a-o)>=(n-s)*(i-o)}function Sx(t,e){let r=yn(t,e)&&Tt(t.prev,t,t.next)>0&&Tt(e.prev,e,e.next)>0;return t.next.i!==e.i&&(r||mn(t,e)&&mn(e,t)&&(Tt(t.prev,t,e.prev)!==0||Tt(t,e.prev,e)!==0))&&!Ex(t,e)&&(r||Fx(t,e))}function Tt(t,e,r){return(e.y-t.y)*(r.x-e.x)-(e.x-t.x)*(r.y-e.y)}function yn(t,e){return t.x===e.x&&t.y===e.y}function Id(t,e,r,i,n=!0){let a=Tt(t,e,r),s=Tt(t,e,i),o=Tt(r,i,t),l=Tt(r,i,e);return(a>0&&s<0||a<0&&s>0)&&(o>0&&l<0||o<0&&l>0)?!0:n?!!(a===0&&ta(t,r,e)||s===0&&ta(t,i,e)||o===0&&ta(r,t,i)||l===0&&ta(r,e,i)):!1}function ta(t,e,r){return e.x<=Math.max(t.x,r.x)&&e.x>=Math.min(t.x,r.x)&&e.y<=Math.max(t.y,r.y)&&e.y>=Math.min(t.y,r.y)}function Ex(t,e){let r=Math.min(t.x,e.x),i=Math.max(t.x,e.x),n=Math.min(t.y,e.y),a=Math.max(t.y,e.y),s=t;do{let o=s.next;if(s.x>i&&o.x>i||s.xa&&o.y>a||s.y=0&&Tt(t,t.prev,e)>=0:Tt(t,e,t.prev)<0||Tt(t,t.next,e)<0}function Fx(t,e){let r=t,i=!1,n=(t.x+e.x)/2,a=(t.y+e.y)/2;do{let s=r.next;r.y>a!=s.y>a&&n<(s.x-r.x)*(a-r.y)/(s.y-r.y)+r.x&&(i=!i),r=s}while(r!==t);return i}function Cd(t,e){let r=Yo(t.i,t.x,t.y),i=Yo(e.i,e.x,e.y),n=t.next,a=e.prev;return t.next=e,e.prev=t,r.next=n,n.prev=r,i.next=r,r.prev=i,a.next=i,i.prev=a,i}function cc(t,e,r,i){let n=Yo(t,e,r);return i?(n.next=i.next,n.prev=i,i.next.prev=n,i.next=n):(n.prev=n,n.next=n),n}function gn(t){t.next.prev=t.prev,t.prev.next=t.next,t.prevZ&&(t.prevZ.nextZ=t.nextZ),t.nextZ&&(t.nextZ.prevZ=t.prevZ),qo&&vx(t.prev,t.next)}function Yo(t,e,r){return{i:t,x:e,y:r,prev:null,next:null,z:0,prevZ:null,nextZ:null}}function Tx(t,e,r,i){let n=0;for(let a=e,s=r-i;at)throw Error("Min granularity must not be greater than base granularity.");this._baseZoomGranularity=t,this._minGranularity=e}getGranularityForZoomLevel(t){let e=1<32767||e>32767)throw Error("Vertex coordinates are out of signed 16 bit integer range.");let r=Math.round(t)|0,i=Math.round(e)|0,n=this._getKey(r,i),a=this._vertexDictionary.get(n);if(a!==void 0)return a;let s=this._vertexBuffer.length/2;return this._vertexDictionary.set(n,s),this._vertexBuffer.push(r,i),s}_subdivideTrianglesScanline(t,e){if(this._granularity<2)return Bx(this._vertexBuffer,Mx(t,e));let r=[],i=t.length;for(let n=0;n=1||b<=0)||m&&(ln)){h>=i&&h<=n&&a.push(r[(s+1)%3]);continue}if(!m&&v>0){let A=o+f*v,S=l+d*v;a.push(this._vertexToIndex(A,S))}let w=o+f*Math.max(v,0),_=o+f*Math.min(b,1);if(y||this._generateIntraEdgeVertices(a,o,l,u,h,w,_),!m&&b<1){let A=o+f*b,S=l+d*b;a.push(this._vertexToIndex(A,S))}(m||h>=i&&h<=n)&&a.push(r[(s+1)%3]),!m&&(h<=i||h>=n)&&this._generateInterEdgeVertices(a,o,l,u,h,c,p,_,i,n)}return a}_generateIntraEdgeVertices(t,e,r,i,n,a,s){let o=i-e,l=n-r,u=l===0,h=u?Math.min(e,i):Math.min(a,s),c=u?Math.max(e,i):Math.max(a,s),p=Math.floor(h/this._granularityCellSize)+1,f=Math.ceil(c/this._granularityCellSize)-1;if(u?e=p;d--){let y=d*this._granularityCellSize,m=r+l*(y-e)/o;t.push(this._vertexToIndex(y,m))}}_generateInterEdgeVertices(t,e,r,i,n,a,s,o,l,u){let h=n-r,c=a-i,p=s-n,f=(l-n)/p,d=(u-n)/p,y=Math.min(f,d),m=Math.max(f,d),g=i+c*y,x=Math.floor(Math.min(g,o)/this._granularityCellSize)+1,v=Math.ceil(Math.max(g,o)/this._granularityCellSize)-1,b=o=1||m<=0){let A=e-a,S=r-s,T=(l-s)/S,L=(u-s)/S,O=a+A*Math.min(T,L);x=Math.floor(Math.min(O,o)/this._granularityCellSize)+1,v=Math.ceil(Math.max(O,o)/this._granularityCellSize)-1,b=o0?u:l;if(b)for(let A=x;A<=v;A++){let S=A*this._granularityCellSize;t.push(this._vertexToIndex(S,_))}else for(let A=v;A>=x;A--){let S=A*this._granularityCellSize;t.push(this._vertexToIndex(S,_))}}_generateOutline(t,e){let r=[],i=0;for(let n of t){let a=this._granularity<2?this._ringPathIndices(n,i,e):this._pointArrayToIndices(yr(n,this._granularity,!0));i+=n.length;let s=[];for(let o=1;o=2&&Bd(t)&&i.push(i[0]),i}_handlePoles(t){let e=!1,r=!1;this._canonical&&(this._canonical.y===0&&(e=!0),this._canonical.y===(1<n==(a===-32768)?(t.push(r),t.push(e),t.push(this._vertexToIndex(i,a)),t.push(this._vertexToIndex(n,a)),t.push(r),t.push(this._vertexToIndex(i,a))):(t.push(e),t.push(r),t.push(this._vertexToIndex(i,a)),t.push(r),t.push(this._vertexToIndex(n,a)),t.push(this._vertexToIndex(i,a)))}_fillPoles(t,e,r){let i=this._vertexBuffer,n=gt,a=t.length;for(let s=2;s=2&&((o=this._canonical)==null?void 0:o.z)===0&&(a=this._removeTrianglesOutsideTileX(a),s=s.map(l=>this._removeLinesOutsideTileX(l))),{verticesFlattened:this._vertexBuffer,indicesTriangles:a,indicesLineList:s}}_vertexOutsideTileX(t){let e=this._vertexBuffer[t*2];return e<0||e>8192}_removeTrianglesOutsideTileX(t){let e=[];for(let r=0;r0?(Math.floor(w/n)+1)*n:(Math.ceil(w/n)-1)*n,T=x>0?(Math.floor(_/n)+1)*n:(Math.ceil(_/n)-1)*n,L=Math.abs(w-S),O=Math.abs(_-T),B=Math.abs(w-f),V=Math.abs(_-d),F=y?L/v:1/0,$=m?O/b:1/0;if((B<=L||!y)&&(V<=O||!m))break;if(F<$&&y||!m){w=S,_+=x*F;let G=new M(w,Math.round(_));(a[a.length-1].x!==G.x||a[a.length-1].y!==G.y)&&a.push(G)}else{w+=g*$,_=T;let G=new M(Math.round(w),_);(a[a.length-1].x!==G.x||a[a.length-1].y!==G.y)&&a.push(G)}}let A=new M(f,d);(a[a.length-1].x!==A.x||a[a.length-1].y!==A.y)&&a.push(A)}return a}function Bd(t){return!t[0].equals(t[t.length-1])}function Cx(t){let e=[],r=[];for(let i of t)if(i.length!==0){i!==t[0]&&e.push(r.length/2);for(let n of i)r.push(n.x),r.push(n.y)}return{flattened:r,holeIndices:e}}function Mx(t,e){let r=Array(t.length);for(let i=0;i0?(r.push(n),r.push(s),r.push(a)):(r.push(n),r.push(a),r.push(s))}return r}function Px(t,e,r){if(e.length===0)throw Error("Subdivision vertex ring is empty.");let i=0,n=t[e[0]*2];for(let l=1;l=0?s-1:a-1,u=(o+1)%a,h=t[e[l]*2],c=t[e[l]*2+1],p=t[e[u]*2],f=t[e[u]*2+1],d=t[e[s]*2],y=t[e[s]*2+1],m=t[e[o]*2],g=t[e[o]*2+1],x=!1;if(hp)x=!1;else{let v=g-y,b=-(m-d),w=y((p-d)*v+(f-y)*b)*w&&(x=!0)}if(x){let v=e[l],b=e[s],w=e[o];v!==b&&v!==w&&b!==w&&r.push(w,b,v),s--,s<0&&(s=a-1)}else{let v=e[u],b=e[s],w=e[o];v!==b&&v!==w&&b!==w&&r.push(w,b,v),o++,o>=a&&(o=0)}if(l===u)break}}function Pd(t,e,r,i,n,a,s,o,l){let u=n.length/2,h=s&&o&&l;if(uie.MAX_VERTEX_ARRAY_LENGTH&&(u=t.createNewSegment(e,r),l=o.count,y=!0,m=!0,g=!0,h=0);let v=Ji(s,i,a,o,p,y,u),b=Ji(s,i,a,o,f,m,u),w=Ji(s,i,a,o,d,g,u);r.emplaceBack(h+v-l,h+b-l,h+w-l),u.primitiveLength++}}function Lx(t,e,r,i,n,a){let s=[];for(let c=0;cie.MAX_VERTEX_ARRAY_LENGTH&&(u=t.createNewSegment(e,r),l=o.count,y=!0,m=!0,h=0);let x=Ji(s,i,a,o,f,y,u),v=Ji(s,i,a,o,d,m,u);r.emplaceBack(h+x-l,h+v-l),u.primitiveLength++}}var zd=class{constructor(t){this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map(e=>e.id),this.index=t.index,this.hasDependencies=!1,this.sdfPatterns={},this.patternFeatures=[],this.layoutVertexArray=new gg,this.indexArray=new En,this.indexArray2=new Po,this.programConfigurations=new Dr(t.layers,t.zoom),this.segments=new ie,this.segments2=new ie,this.stateDependentLayerIds=this.layers.filter(e=>e.isStateDependent()).map(e=>e.id)}populate(t,e,r){this.hasDependencies=Fa("fill",this.layers,e);let i=this.layers[0].layout.get("fill-sort-key"),n=!i.isConstant(),a=[],s=new st(this.zoom),o=this.layers[0]._featureFilter.needGeometry;for(let{feature:l,id:u,index:h,sourceLayerIndex:c}of t){let p=hi(l,o);if(!this.layers[0]._featureFilter.filter(s,p,r))continue;let f=n?i.evaluate(p,{},r,e.availableImages):void 0,d={id:u,properties:l.properties,type:l.type,sourceLayerIndex:c,index:h,geometry:o?p.geometry:Fr(l),patterns:{},sortKey:f};a.push(d)}n&&a.sort((l,u)=>l.sortKey-u.sortKey);for(let l of a){let{geometry:u,index:h,sourceLayerIndex:c}=l;if(this.hasDependencies){let f=Wl("fill",this.layers,l,{zoom:this.zoom},e);this.patternFeatures.push(f)}else this.addFeature(l,u,h,r,{},e.subdivisionGranularity);let p=t[h].feature;e.featureIndex.insert(p,u,h,c,this.index)}}update(t,e,r){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(t,e,this.stateDependentLayers,{imagePositions:r})}addFeatures({options:t,canonical:e,patternPositions:r,patternMap:i}){this.detectSdfPatterns(i);for(let n of this.patternFeatures)this.addFeature(n,n.geometry,n.index,e,r,t.subdivisionGranularity)}detectSdfPatterns(t){for(let e of this.patternFeatures)for(let r in e.patterns){let i=e.patterns[r];this.recordSdfPattern(r,t[i.min]),this.recordSdfPattern(r,t[i.mid]),this.recordSdfPattern(r,t[i.max])}for(let e of this.layers){let r=e.paint.get("fill-pattern").constantOr(null);r&&(this.recordSdfPattern(e.id,t[r.from.toString()]),this.recordSdfPattern(e.id,t[r.to.toString()]))}}recordSdfPattern(t,e){if(!e)return;let r=e.sdf===!0,i=this.sdfPatterns[t];i===void 0?this.sdfPatterns[t]=r:i!==r&&Mt(`Style sheet warning: Cannot mix SDF and non-SDF fill patterns in layer "${t}"`)}isEmpty(){return this.layoutVertexArray.length===0}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(t){this.uploaded||(this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,ux),this.indexBuffer=t.createIndexBuffer(this.indexArray),this.indexBuffer2=t.createIndexBuffer(this.indexArray2)),this.programConfigurations.upload(t),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.indexBuffer2.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.segments2.destroy())}addFeature(t,e,r,i,n,a){for(let s of Na(e,500)){let o=Md(s,i,a.fill.getGranularityForZoomLevel(i.z)),l=this.layoutVertexArray;Pd((u,h)=>{l.emplaceBack(u,h)},this.segments,this.layoutVertexArray,this.indexArray,o.verticesFlattened,o.indicesTriangles,this.segments2,this.indexArray2,o.indicesLineList)}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,t,r,{imagePositions:n,canonical:i})}};C("FillBucket",zd,{omit:["layers","patternFeatures"]});var pc,Vx=()=>pc||(pc=new Yt({"fill-sort-key":new U(D.layout_fill["fill-sort-key"],"fill-sort-key")})),fc,Ox=()=>fc||(fc=new Yt({"fill-antialias":new R(D.paint_fill["fill-antialias"],"fill-antialias"),"fill-opacity":new U(D.paint_fill["fill-opacity"],"fill-opacity"),"fill-layer-opacity":new R(D.paint_fill["fill-layer-opacity"],"fill-layer-opacity"),"fill-color":new U(D.paint_fill["fill-color"],"fill-color"),"fill-outline-color":new U(D.paint_fill["fill-outline-color"],"fill-outline-color"),"fill-translate":new R(D.paint_fill["fill-translate"],"fill-translate"),"fill-translate-anchor":new R(D.paint_fill["fill-translate-anchor"],"fill-translate-anchor"),"fill-pattern":new cn(D.paint_fill["fill-pattern"],"fill-pattern")})),Rx={get paint(){return Ox()},get layout(){return Vx()}};var $x=class extends ye{constructor(t,e){super(t,Rx,e)}recalculate(t,e){super.recalculate(t,e);let r=this.paint._values["fill-outline-color"];r.value.kind==="constant"&&r.value.value===void 0&&(this.paint._values["fill-outline-color"]=this.paint._values["fill-color"])}createBucket(t){return new zd(t)}queryRadius(){return Ka(this.paint.get("fill-translate"))}queryIntersectsFeature({queryGeometry:t,geometry:e,transform:r,pixelsToTileUnits:i}){return bd(Ja(t,this.paint.get("fill-translate"),this.paint.get("fill-translate-anchor"),-r.bearingInRadians,i),e)}isTileClipped(){return!0}},Wo=Et([{name:"a_pos",components:2,type:"Int16"},{name:"a_normal_ed",components:4,type:"Int16"}],4),Nx=Et([{name:"a_centroid",components:2,type:"Int16"}],4),Ux=Wo.members;Wo.size,Wo.alignment;var Ia=class Zo{constructor(){this.minX=1/0,this.maxX=-1/0,this.minY=1/0,this.maxY=-1/0}extend(e){return this.minX=Math.min(this.minX,e.x),this.minY=Math.min(this.minY,e.y),this.maxX=Math.max(this.maxX,e.x),this.maxY=Math.max(this.maxY,e.y),this}expandBy(e){return this.minX-=e,this.minY-=e,this.maxX+=e,this.maxY+=e,(this.minX>this.maxX||this.minY>this.maxY)&&(this.minX=1/0,this.maxX=-1/0,this.minY=1/0,this.maxY=-1/0),this}shrinkBy(e){return this.expandBy(-e)}map(e){let r=new Zo;return r.extend(e(new M(this.minX,this.minY))),r.extend(e(new M(this.maxX,this.minY))),r.extend(e(new M(this.minX,this.maxY))),r.extend(e(new M(this.maxX,this.maxY))),r}static fromPoints(e){let r=new Zo;for(let i of e)r.extend(i);return r}contains(e){return e.x>=this.minX&&e.x<=this.maxX&&e.y>=this.minY&&e.y<=this.maxY}empty(){return this.minX>this.maxX}width(){return this.maxX-this.minX}height(){return this.maxY-this.minY}covers(e){return!this.empty()&&!e.empty()&&e.minX>=this.minX&&e.maxX<=this.maxX&&e.minY>=this.minY&&e.maxY<=this.maxY}intersects(e){return!this.empty()&&!e.empty()&&e.minX<=this.maxX&&e.maxX>=this.minX&&e.minY<=this.maxY&&e.maxY>=this.minY}},A5=Ia.fromPoints([new M(0,0),new M(gt,gt)]);function Ho(t,e){return t.x===e.x&&(t.x<0||t.x>8192)||t.y===e.y&&(t.y<0||t.y>8192)}function dc(t){return t.every(e=>e.x<0)||t.every(e=>e.x>8192)||t.every(e=>e.y<0)||t.every(e=>e.y>8192)}var Fn=class{constructor(t,e,r,i,n){for(this.properties=Object.create(null),this.extent=r,this.type=0,this.id=void 0,this._pbf=t,this._geometry=-1,this._keys=i,this._values=n;t.pos>3,a===0)continue}if(a--,n===1)s+=t.readSVarint(),o+=t.readSVarint(),i&&r.push(i),i=[new M(s,o)];else if(n===2)s+=t.readSVarint(),o+=t.readSVarint(),i&&i.push(new M(s,o));else if(n===7)i&&i.push(i[0].clone());else throw Error(`unknown command ${n}`)}return i&&r.push(i),r}bbox(){if(this._geometry<0)throw Error("feature has no geometry");let t=this._pbf;t.pos=this._geometry;let e=t.readVarint()+t.pos,r=1,i=0,n=0,a=0,s=1/0,o=-1/0,l=1/0,u=-1/0;for(;t.pos>3,i===0)continue}if(i--,r===1||r===2)n+=t.readSVarint(),a+=t.readSVarint(),no&&(o=n),au&&(u=a);else if(r!==7)throw Error(`unknown command ${r}`)}return[s,l,o,u]}toGeoJSON(t,e,r){let i=this.extent*2**r,n=this.extent*t,a=this.extent*e,s=this.loadGeometry();function o(c){return[(c.x+n)*360/i-180,360/Math.PI*Math.atan(Math.exp((1-(c.y+a)*2/i)*Math.PI))-90]}function l(c){return c.map(o)}let u;if(this.type===1){let c=[];for(let f of s)c.push(f[0]);let p=l(c);u=c.length===1?{type:"Point",coordinates:p[0]}:{type:"MultiPoint",coordinates:p}}else if(this.type===2){let c=s.map(l);u=c.length===1?{type:"LineString",coordinates:c[0]}:{type:"MultiLineString",coordinates:c}}else if(this.type===3){let c=Ld(s),p=[];for(let f of c)p.push(f.map(l));u=p.length===1?{type:"Polygon",coordinates:p[0]}:{type:"MultiPolygon",coordinates:p}}else throw Error("unknown feature type");let h={type:"Feature",geometry:u,properties:this.properties};return this.id!=null&&(h.id=this.id),h}};Fn.types=["Unknown","Point","LineString","Polygon"];function Ld(t){let e=t.length;if(e<=1)return[t];let r=[],i,n;for(let a=0;a=this._features.length)throw Error("feature index out of bounds");this._pbf.pos=this._features[t];let e=this._pbf.readVarint()+this._pbf.pos;return new Fn(this._pbf,e,this.extent,this._keys,this._values)}};function Gx(t){let e=null,r=t.readVarint()+t.pos;for(;t.pos90||this.lat<-90)throw Error("Invalid LngLat latitude value: must be between -90 and 90")}wrap(){return new Gi(Z1(this.lng,-180,180),this.lat)}toArray(){return[this.lng,this.lat]}toString(){return`LngLat(${this.lng}, ${this.lat})`}distanceTo(e){let r=Math.PI/180,i=this.lat*r,n=e.lat*r,a=Math.sin(i)*Math.sin(n)+Math.cos(i)*Math.cos(n)*Math.cos((e.lng-this.lng)*r);return Vd*Math.acos(Math.min(a,1))}static convert(e){if(e instanceof Gi)return e;if(Array.isArray(e)&&(e.length===2||e.length===3))return new Gi(Number(e[0]),Number(e[1]));if(!Array.isArray(e)&&typeof e=="object"&&e)return new Gi(Number("lng"in e?e.lng:e.lon),Number(e.lat));throw Error("`LngLatLike` argument must be specified as a LngLat instance, an object {lng: , lat: }, an object {lon: , lat: }, or an array of [, ]")}},Od=2*Math.PI*Vd;function Rd(t){return Od*Math.cos(t*Math.PI/180)}function Xx(t){return(180+t)/360}function Yx(t){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+t*Math.PI/360)))/360}function Wx(t,e){return t/Rd(e)}function Zx(t){return t*360-180}function Ko(t){let e=180-t*360;return 360/Math.PI*Math.atan(Math.exp(e*Math.PI/180))-90}function Hx(t,e){return t*Rd(Ko(e))}function Kx(t){return 1/Math.cos(t*Math.PI/180)}var Hl=class $d{constructor(e,r,i=0){this.x=+e,this.y=+r,this.z=+i}static fromLngLat(e,r=0){let i=yc.convert(e);return new $d(Xx(i.lng),Yx(i.lat),Wx(r,i.lat))}toLngLat(){return new yc(Zx(this.x),Ko(this.y))}toAltitude(){return Hx(this.z,this.y)}meterInMercatorCoordinateUnits(){return 1/Od*Kx(Ko(this.y))}};function Jx(t,e,r){let i=1/(1<r2(r,e))}function e2(t,e){let r=Qx(gt/2,gt/2,e),i=Hl.fromLngLat(r).meterInMercatorCoordinateUnits(),n=(1<1&&e[0].x===e[e.length-1].x&&e[0].y===e[e.length-1].y;)e.pop();return e}function n2(t,e,r,i,n){let a=e.sub(r),s=i.sub(r),o=a.mag(),l=s.mag();if(o<1e-6||l<1e-6){t.push(r.clone());return}a._div(o),s._div(l);let u=a.x*s.x+a.y*s.y;if(Math.abs(u)>Math.cos(5*Math.PI/180)){t.push(r.clone());return}let h=.2,c=Math.min(n,o*h,l*h),p=r.add(a.mult(c)),f=r.add(s.mult(c)),d=Math.sqrt((1+u)/2),y=r.add(a.add(s)._unit()._mult(c/d)),m=p.sub(y).angleWith(f.sub(y)),g=Math.max(2,Math.ceil(Math.abs(m)/(Math.PI/6)-1e-6));for(let x=0;x<=g;x++)t.push(p.rotateAround(x/g*m,y))}var Gs=8192;function Bi(t,e,r,i,n,a,s,o){t.emplaceBack(e,r,Math.floor(i*Gs)*2+s,n*Gs*2,a*Gs*2,Math.round(o))}var Nd=class{constructor(t){this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map(e=>e.id),this.index=t.index,this.hasDependencies=!1,this.layoutVertexArray=new xg,this.centroidVertexArray=new yg,this.indexArray=new En,this.programConfigurations=new Dr(t.layers,t.zoom),this.segments=new ie,this.stateDependentLayerIds=this.layers.filter(e=>e.isStateDependent()).map(e=>e.id)}populate(t,e,r){this.features=[],this.hasDependencies=Fa("fill-extrusion",this.layers,e);let i=new st(this.zoom),n=this.layers[0],a=n.layout.get("fill-extrusion-rounded-corner-distance"),s=a>0?e2(a,r):0,o=n._featureFilter.needGeometry;for(let{feature:l,id:u,index:h,sourceLayerIndex:c}of t){let p=hi(l,o);if(!n._featureFilter.filter(i,p,r))continue;let f={id:u,sourceLayerIndex:c,index:h,geometry:t2(o?p.geometry:Fr(l),s),properties:l.properties,type:l.type,patterns:{}};this.hasDependencies?this.features.push(Wl("fill-extrusion",this.layers,f,{zoom:this.zoom},e)):this.addFeature(f,f.geometry,h,r,{},e.subdivisionGranularity),e.featureIndex.insert(l,f.geometry,h,c,this.index,!0)}}addFeatures({options:t,canonical:e,patternPositions:r}){for(let i of this.features){let{geometry:n}=i;this.addFeature(i,n,i.index,e,r,t.subdivisionGranularity)}}update(t,e,r){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(t,e,this.stateDependentLayers,{imagePositions:r})}isEmpty(){return this.layoutVertexArray.length===0&&this.centroidVertexArray.length===0}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(t){this.uploaded||(this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,Ux),this.centroidVertexBuffer=t.createVertexBuffer(this.centroidVertexArray,Nx.members,!0),this.indexBuffer=t.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(t),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.centroidVertexBuffer.destroy())}addFeature(t,e,r,i,n,a){for(let s of Na(e,500)){let o={x:0,y:0,sampleCount:0},l=this.layoutVertexArray.length;this.processPolygon(o,i,t,s,a);let u=this.layoutVertexArray.length-l,h=Math.floor(o.x/o.sampleCount),c=Math.floor(o.y/o.sampleCount);for(let p=0;p{Bi(u,h,c,0,0,1,1,0)},this.segments,this.layoutVertexArray,this.indexArray,l.verticesFlattened,l.indicesTriangles)}_generateSideFaces(t,e){let r=0;for(let i=1;iie.MAX_VERTEX_ARRAY_LENGTH&&(e.segment=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray));let s=n.sub(a)._perp()._unit(),o=a.dist(n);r+o>32768&&(r=0),Bi(this.layoutVertexArray,n.x,n.y,s.x,s.y,0,0,r),Bi(this.layoutVertexArray,n.x,n.y,s.x,s.y,0,1,r),r+=o,Bi(this.layoutVertexArray,a.x,a.y,s.x,s.y,0,0,r),Bi(this.layoutVertexArray,a.x,a.y,s.x,s.y,0,1,r);let l=e.segment.vertexLength;this.indexArray.emplaceBack(l,l+2,l+1),this.indexArray.emplaceBack(l+1,l+2,l+3),e.segment.vertexLength+=4,e.segment.primitiveLength+=2}}};function a2(t,e){for(let r=0;rmc||(mc=new Yt({"fill-extrusion-rounded-corner-distance":new R(D["layout_fill-extrusion"]["fill-extrusion-rounded-corner-distance"],"fill-extrusion-rounded-corner-distance")})),gc,o2=()=>gc||(gc=new Yt({"fill-extrusion-opacity":new R(D["paint_fill-extrusion"]["fill-extrusion-opacity"],"fill-extrusion-opacity"),"fill-extrusion-color":new U(D["paint_fill-extrusion"]["fill-extrusion-color"],"fill-extrusion-color"),"fill-extrusion-translate":new R(D["paint_fill-extrusion"]["fill-extrusion-translate"],"fill-extrusion-translate"),"fill-extrusion-translate-anchor":new R(D["paint_fill-extrusion"]["fill-extrusion-translate-anchor"],"fill-extrusion-translate-anchor"),"fill-extrusion-pattern":new cn(D["paint_fill-extrusion"]["fill-extrusion-pattern"],"fill-extrusion-pattern"),"fill-extrusion-height":new U(D["paint_fill-extrusion"]["fill-extrusion-height"],"fill-extrusion-height"),"fill-extrusion-base":new U(D["paint_fill-extrusion"]["fill-extrusion-base"],"fill-extrusion-base"),"fill-extrusion-vertical-gradient":new R(D["paint_fill-extrusion"]["fill-extrusion-vertical-gradient"],"fill-extrusion-vertical-gradient")})),l2={get paint(){return o2()},get layout(){return s2()}};var u2=class extends ye{constructor(t,e){super(t,l2,e)}createBucket(t){return new Nd(t)}queryRadius(){return Ka(this.paint.get("fill-extrusion-translate"))}is3D(){return!0}queryIntersectsFeature({queryGeometry:t,feature:e,featureState:r,geometry:i,transform:n,pixelsToTileUnits:a,pixelPosMatrix:s}){let o=Ja(t,this.paint.get("fill-extrusion-translate"),this.paint.get("fill-extrusion-translate-anchor"),-n.bearingInRadians,a),l=this.paint.get("fill-extrusion-height").evaluate(e,r),u=this.paint.get("fill-extrusion-base").evaluate(e,r),h=p2(o,s,0),c=c2(i,u,l,s),p=c[0],f=c[1];return h2(p,f,h)}};function Pi(t,e){return t.x*e.x+t.y*e.y}function xc(t,e){if(t.length===1){let r=0,i=e[r++],n;for(;!n||i.equals(n);)if(n=e[r++],!n)return 1/0;for(;r>1),s=r-e,o,l=t[e],u=t[e+1],h=t[r],c=t[r+1];for(let p=e+3;pn){o=p,n=f;continue}if(f===n){let d=Math.abs(p-a);di&&(o-e>3&&Jo(t,e,o,i),t[o+2]=n,r-o>3&&Jo(t,o,r,i))}function f2(t,e,r,i,n,a){let s=n-r,o=a-i;if(s!==0||o!==0){let l=((t-r)*s+(e-i)*o)/(s*s+o*o);l>1?(r=n,i=a):l>0&&(r+=s*l,i+=o*l)}return s=t-r,o=e-i,s*s+o*o}function Ct(t,e,r,i){let n={type:e,geom:r},a={id:t!=null?t:null,type:n.type,geometry:n.geom,tags:i,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};switch(n.type){case"Point":case"MultiPoint":zi(a,n.geom);break;case"LineString":zi(a,n.geom.points);break;case"Polygon":zi(a,n.geom[0].points);break;case"MultiLineString":for(let s of n.geom)zi(a,s.points);break;case"MultiPolygon":for(let s of n.geom)zi(a,s[0].points)}return a}function Kl(t){let e=t;t.points.length>64&&(e.points=new Float64Array(t.points))}function zi(t,e){for(let r=0;r1024)throw Error("GeometryCollection nesting exceeds supported depth: 1024");if(e.geometry.type==="GeometryCollection"){y2(t,e,e.geometry,r,i,n+1);return}if(!((o=e.geometry.coordinates)!=null&&o.length))return;let a=d2(e,r,i),s=(r.tolerance/((1<0&&(s+=i?(n*h-u*a)/2:Math.sqrt((u-n)**2+(h-a)**2)),n=u,a=h}let o=e.points.length-3;e.points[2]=1,r>0&&Jo(e.points,0,o,r),e.points[o+2]=1,Kl(e),e.size=Math.abs(s),e.start=0,e.end=e.size}function tu(t,e,r,i){for(let n=0;n1?1:r}function D2(t){return{type:"FeatureCollection",features:t.map(e=>Ca(e))}}function Ca(t){let e={type:"Feature",geometry:_2(t),properties:t.tags};return t.id!=null&&(e.id=t.id),e}function _2(t){let{type:e,geometry:r}=t;switch(e){case"Point":return{type:e,coordinates:Ud(r[0],r[1])};case"MultiPoint":return{type:e,coordinates:ea(r)};case"LineString":return{type:e,coordinates:ea(r.points)};case"MultiLineString":case"Polygon":return{type:e,coordinates:r.map(i=>ea(i.points))};case"MultiPolygon":return{type:e,coordinates:r.map(i=>i.map(n=>ea(n.points)))}}}function ea(t){let e=[];for(let r=0;r=r&&s=i)return null;let l=[];for(let u of t){let h=n===0?u.minX:u.minY,c=n===0?u.maxX:u.maxY;if(h>=r&&c=i))switch(u.type){case"Point":case"MultiPoint":A2(u,l,r,i,n);continue;case"LineString":S2(u,l,r,i,n,o);continue;case"MultiLineString":E2(u,l,r,i,n);continue;case"Polygon":F2(u,l,r,i,n);continue;case"MultiPolygon":T2(u,l,r,i,n);continue}}return l.length?l:null}function A2(t,e,r,i,n){let a=[];if(k2(t.geometry,a,r,i,n),!a.length)return;let s=a.length===3?"Point":"MultiPoint";e.push(Ct(t.id,s,a,t.tags))}function S2(t,e,r,i,n,a){let s=[];if(Gd(t.geometry,s,r,i,n,!1,a.lineMetrics),s.length){if(a.lineMetrics){for(let o of s)e.push(Ct(t.id,"LineString",o,t.tags));return}if(s.length>1){e.push(Ct(t.id,"MultiLineString",s,t.tags));return}e.push(Ct(t.id,"LineString",s[0],t.tags))}}function E2(t,e,r,i,n){let a=[];if(eu(t.geometry,a,r,i,n,!1),a.length){if(a.length===1){e.push(Ct(t.id,"LineString",a[0],t.tags));return}e.push(Ct(t.id,"MultiLineString",a,t.tags))}}function F2(t,e,r,i,n){let a=[];eu(t.geometry,a,r,i,n,!0),a.length&&e.push(Ct(t.id,"Polygon",a,t.tags))}function T2(t,e,r,i,n){let a=[];for(let s of t.geometry){let o=[];eu(s,o,r,i,n,!0),o.length&&a.push(o)}a.length&&e.push(Ct(t.id,"MultiPolygon",a,t.tags))}function k2(t,e,r,i,n){for(let a=0;a=r&&s<=i&&Kr(e,t[a],t[a+1],t[a+2])}}function Gd(t,e,r,i,n,a,s){let o=vc(t),l=n===0?I2:C2,u=t.start,h,c;for(let g=0;gr&&(c=l(o,x,v,w,_,r),s&&(o.start=u+h*c)):A>i?S=r&&(c=l(o,x,v,w,_,r),T=!0),S>i&&A<=i&&(c=l(o,x,v,w,_,i),T=!0),!a&&T&&(s&&(o.end=u+h*c),e.push(o),o=vc(t)),s&&(u+=h)}let p=t.points.length-3,f=t.points[p],d=t.points[p+1],y=t.points[p+2],m=n===0?f:d;m>=r&&m<=i&&Kr(o.points,f,d,y),p=o.points.length-3,a&&p>=3&&(o.points[p]!==o.points[0]||o.points[p+1]!==o.points[1])&&Kr(o.points,o.points[0],o.points[1],o.points[2]),o.points.length&&(Kl(o),e.push(o))}function vc(t){return{points:[],size:t.size,start:t.start,end:t.end}}function eu(t,e,r,i,n,a){for(let s of t)Gd(s,e,r,i,n,a,!1)}function Kr(t,e,r,i){t.push(e,r,i)}function I2(t,e,r,i,n,a){let s=(a-e)/(i-e);return Kr(t.points,a,r+(n-r)*s,1),s}function C2(t,e,r,i,n,a){let s=(a-r)/(n-r);return Kr(t.points,e+(i-e)*s,a,1),s}function ru(t,e){let r=e.buffer/e.extent,i=t,n=Me(t,1,-1-r,r,0,-1,2,e),a=Me(t,1,1-r,2+r,0,-1,2,e);return!n&&!a||(i=Me(t,1,-r,1+r,0,-1,2,e)||[],n&&(i=bc(n,1).concat(i)),a&&(i=i.concat(bc(a,-1)))),i}function bc(t,e){let r=[];for(let i of t)switch(i.type){case"Point":case"MultiPoint":{let n=M2(i.geometry,e);r.push(Ct(i.id,i.type,n,i.tags));continue}case"LineString":{let n=Xs(i.geometry,e);r.push(Ct(i.id,i.type,n,i.tags));continue}case"MultiLineString":case"Polygon":{let n=[];for(let a of i.geometry)n.push(Xs(a,e));r.push(Ct(i.id,i.type,n,i.tags));continue}case"MultiPolygon":{let n=[];for(let a of i.geometry){let s=[];for(let o of a)s.push(Xs(o,e));n.push(s)}r.push(Ct(i.id,i.type,n,i.tags));continue}}return r}function M2(t,e){let r=[];for(let i=0;io.id));t=t.filter(o=>!s.has(o.id))}if(i.add.size){let s=Jl({type:"FeatureCollection",features:Array.from(i.add.values())},r);s=ru(s,r),n=n.concat(s),t=t.concat(s)}}if(i.update.size){let a=new Map,s=[];for(let o of t)i.update.has(o.id)?a.set(o.id,[...a.get(o.id)||[],o]):s.push(o);for(let[o,l]of i.update){let u=a.get(o);if(!u||u.length===0)continue;let h=P2(u,l,r);n=n.concat(u,h),s=s.concat(h)}t=s}return{affected:n,source:t}}function P2(t,e,r){var a,s;let i=!!e.newGeometry,n=e.removeAllProperties||((a=e.removeProperties)==null?void 0:a.length)>0||((s=e.addOrUpdateProperties)==null?void 0:s.length)>0;if(i){let o=t[0],l=Jl({type:"FeatureCollection",features:[{type:"Feature",id:o.id,geometry:e.newGeometry,properties:n?wc(o.tags,e):o.tags}]},r);return l=ru(l,r),l}if(n){let o=[];for(let l of t){let u=Xe({},l);u.tags=wc(u.tags,e),o.push(u)}return o}return t}function wc(t,e){if(e.removeAllProperties)return{};let r=Xe({},t||{});if(e.removeProperties)for(let i of e.removeProperties)delete r[i];if(e.addOrUpdateProperties)for(let{key:i,value:n}of e.addOrUpdateProperties)r[i]=n;return r}function z2(t,e){var r,i;return t?{removeAll:t.removeAll,remove:new Set(t.remove||[]),add:new Map((r=t.add)==null?void 0:r.map(n=>[e.promoteId?n.properties[e.promoteId]:n.id,n])),update:new Map((i=t.update)==null?void 0:i.map(n=>[n.id,n]))}:{remove:new Set,add:new Map,update:new Map}}var Dc=[Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array],yt=new Uint32Array(96),L2=class Xd{static from(e){if(!e||e.byteLength===void 0||e.buffer)throw Error("Data must be an instance of ArrayBuffer or SharedArrayBuffer.");let[r,i]=new Uint8Array(e,0,2);if(r!==219)throw Error("Data does not appear to be in a KDBush format.");let n=i>>4;if(n!==1)throw Error(`Got v${n} data when expected v1.`);let a=Dc[i&15];if(!a)throw Error("Unrecognized array type.");let[s]=new Uint16Array(e,2,1),[o]=new Uint32Array(e,4,1);return new Xd(o,s,a,void 0,e)}constructor(e,r=64,i=Float64Array,n=ArrayBuffer,a){if(isNaN(e)||e<0)throw Error(`Unexpected numItems value: ${e}.`);this.numItems=+e,this.nodeSize=Math.min(Math.max(+r,2),65535),this.ArrayType=i,this.IndexArrayType=e<65536?Uint16Array:Uint32Array;let s=Dc.indexOf(this.ArrayType),o=e*2*this.ArrayType.BYTES_PER_ELEMENT,l=e*this.IndexArrayType.BYTES_PER_ELEMENT,u=(8-l%8)%8;if(s<0)throw Error(`Unexpected typed array class: ${i}.`);if(a)this.data=a,this.ids=new this.IndexArrayType(a,8,e),this.coords=new i(a,8+l+u,e*2),this._pos=e*2,this._finished=!0;else{let h=this.data=new n(8+o+l+u);this.ids=new this.IndexArrayType(h,8,e),this.coords=new i(h,8+l+u,e*2),this._pos=0,this._finished=!1,new Uint8Array(h,0,2).set([219,16+s]),new Uint16Array(h,2,1)[0]=r,new Uint32Array(h,4,1)[0]=e}}add(e,r){let i=this._pos>>1;return this.ids[i]=i,this.coords[this._pos++]=e,this.coords[this._pos++]=r,i}finish(){let e=this._pos>>1;if(e!==this.numItems)throw Error(`Added ${e} items when expected ${this.numItems}.`);return Qo(this.ids,this.coords,this.nodeSize,0,this.numItems-1,0),this._finished=!0,this}range(e,r,i,n){if(!this._finished)throw Error("Data not yet indexed - call index.finish().");let{ids:a,coords:s,nodeSize:o}=this;yt[0]=0,yt[1]=a.length-1,yt[2]=0;let l=3,u=[];for(;l>0;){let h=yt[--l],c=yt[--l],p=yt[--l];if(c-p<=o){for(let m=p;m<=c;m++){let g=s[2*m],x=s[2*m+1];g>=e&&g<=i&&x>=r&&x<=n&&u.push(a[m])}continue}let f=p+c>>1,d=s[2*f],y=s[2*f+1];d>=e&&d<=i&&y>=r&&y<=n&&u.push(a[f]),(h===0?e<=d:r<=y)&&(yt[l++]=p,yt[l++]=f-1,yt[l++]=1-h),(h===0?i>=d:n>=y)&&(yt[l++]=f+1,yt[l++]=c,yt[l++]=1-h)}return u}within(e,r,i){let n=[];return this.withinInto(e,r,i,n),n}withinInto(e,r,i,n){if(!this._finished)throw Error("Data not yet indexed - call index.finish().");let{ids:a,coords:s,nodeSize:o}=this;yt[0]=0,yt[1]=a.length-1,yt[2]=0;let l=3,u=0,h=i*i;for(;l>0;){let c=yt[--l],p=yt[--l],f=yt[--l];if(p-f<=o){for(let g=f;g<=p;g++)_c(s[2*g],s[2*g+1],e,r)<=h&&(n[u++]=a[g]);continue}let d=f+p>>1,y=s[2*d],m=s[2*d+1];_c(y,m,e,r)<=h&&(n[u++]=a[d]),(c===0?e-i<=y:r-i<=m)&&(yt[l++]=f,yt[l++]=d-1,yt[l++]=1-c),(c===0?e+i>=y:r+i>=m)&&(yt[l++]=d+1,yt[l++]=p,yt[l++]=1-c)}return u}};function Qo(t,e,r,i,n,a){if(n-i<=r)return;let s=i+n>>1;Yd(t,e,s,i,n,a),Qo(t,e,r,i,s-1,1-a),Qo(t,e,r,s+1,n,1-a)}function Yd(t,e,r,i,n,a){for(;n>i;){if(n-i>600){let u=n-i+1,h=r-i+1,c=Math.log(u),p=.5*Math.exp(2*c/3),f=.5*Math.sqrt(c*p*(u-p)/u)*(h-u/2<0?-1:1);Yd(t,e,r,Math.max(i,Math.floor(r-h*p/u+f)),Math.min(n,Math.floor(r+(u-h)*p/u+f)),a)}let s=e[2*r+a],o=i,l=n;for(Li(t,e,i,r),e[2*n+a]>s&&Li(t,e,i,n);os;)l--}e[2*i+a]===s?Li(t,e,i,l):(l++,Li(t,e,l,n)),l<=r&&(i=l+1),r<=l&&(n=l-1)}}function Li(t,e,r,i){Ys(t,r,i),Ys(e,2*r,2*i),Ys(e,2*r+1,2*i+1)}function Ys(t,e,r){let i=t[e];t[e]=t[r],t[r]=i}function _c(t,e,r,i){let n=t-r,a=e-i;return n*n+a*a}var tl={minZoom:0,maxZoom:16,minPoints:2,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:t=>t},V2=class{constructor(t){this.options=Object.assign(Object.create(tl),t),this.trees=Array(this.options.maxZoom+1),this.stride=this.options.reduce?7:6,this.clusterProps=[],this.points=[]}load(t){let e=[];for(let r of t){if(!r.geometry)continue;let[i,n]=r.geometry.coordinates,[a,s]=[Zr(i),Hr(n)],o={id:r.id,type:"Point",geometry:[a,s],tags:r.properties};e.push(o)}this.createIndex(e)}initialize(t){let e=[];for(let r of t)r.type==="Point"&&e.push(r);this.createIndex(e)}updateIndex(t,e,r){this.options=Object.assign(Object.create(tl),r.clusterOptions),this.initialize(t)}createIndex(t){let{log:e,minZoom:r,maxZoom:i}=this.options;e&&console.time("total time");let n=`prepare ${t.length} points`;e&&console.time(n),this.points=t;let a=[];for(let o=0;o=r;o--){let l=Date.now();s=this.trees[o]=this.createTree(this.cluster(s,o)),e&&console.log("z%d: %d clusters in %dms",o,s.numItems,Date.now()-l)}e&&console.timeEnd("total time")}getClusters(t,e){return this.getClustersInternal(t,e).map(r=>Ca(r))}getClustersInternal(t,e){let r=((t[0]+180)%360+360)%360-180,i=Math.max(-90,Math.min(90,t[1])),n=t[2]===180?180:((t[2]+180)%360+360)%360-180,a=Math.max(-90,Math.min(90,t[3]));if(t[2]-t[0]>=360)r=-180,n=180;else if(r>n){let h=this.getClustersInternal([r,i,180,a],e),c=this.getClustersInternal([-180,i,n,a],e);return h.concat(c)}let s=this.trees[this.limitZoom(e)],o=s.range(Zr(r),Hr(a),Zr(n),Hr(i)),l=s.flatData,u=[];for(let h of o){let c=this.stride*h;u.push(l[c+5]>1?O2(l,c,this.clusterProps):this.points[l[c+3]])}return u}getChildren(t){let e=this.getOriginId(t),r=this.getOriginZoom(t),i=Error("No cluster with the specified id: "+t),n=this.trees[r];if(!n)throw i;let a=n.flatData;if(e*this.stride>=a.length)throw i;let s=this.options.radius/(this.options.extent*2**(r-1)),o=a[e*this.stride],l=a[e*this.stride+1],u=n.within(o,l,s),h=[];for(let c of u){let p=c*this.stride;a[p+4]===t&&h.push(a[p+5]>1?R2(a,p,this.clusterProps):Ca(this.points[a[p+3]]))}if(h.length===0)throw i;return h}getLeaves(t,e,r){e||(e=10),r||(r=0);let i=[];return this.appendLeaves(i,t,e,r,0),i}getTile(t,e,r){let i=this.trees[this.limitZoom(t)];if(!i)return null;let n=2**t,{extent:a,radius:s}=this.options,o=s/a,l=(r-o)/n,u=(r+1+o)/n,h={transformed:!0,features:[],source:null,x:e,y:r,z:t};return this.addTileFeatures(i.range((e-o)/n,l,(e+1+o)/n,u),i.flatData,e,r,n,h),e===0&&this.addTileFeatures(i.range(1-o/n,l,1,u),i.flatData,n,r,n,h),e===n-1&&this.addTileFeatures(i.range(0,l,o/n,u),i.flatData,-1,r,n,h),h}getClusterExpansionZoom(t){return this.getOriginZoom(t)}appendLeaves(t,e,r,i,n){let a=this.getChildren(e);for(let s of a){let o=s.properties;if(o!=null&&o.cluster?n+o.point_count<=i?n+=o.point_count:n=this.appendLeaves(t,o.cluster_id,r,i,n):n1,u,h,c;if(l)u=iu(e,o,this.clusterProps),h=e[o],c=e[o+1];else{let d=this.points[e[o+3]];u=d.tags,[h,c]=d.geometry}let p={type:1,geometry:[[Math.round(this.options.extent*(h*n-r)),Math.round(this.options.extent*(c*n-i))]],tags:u},f;f=l||this.options.generateId?e[o+3]:this.points[e[o+3]].id,f!==void 0&&(p.id=f),a.features.push(p)}}limitZoom(t){return Math.max(this.options.minZoom,Math.min(Math.floor(+t),this.options.maxZoom+1))}cluster(t,e){let{radius:r,extent:i,reduce:n,minPoints:a}=this.options,s=r/(i*2**e),o=t.flatData,l=[],u=this.stride;for(let h=0;he&&(y+=o[g+5])}if(y>d&&y>=a){let m=c*d,g=p*d,x,v=-1,b=((h/u|0)<<5)+(e+1)+this.points.length;for(let w of f){let _=w*u;if(o[_+2]<=e)continue;o[_+2]=e;let A=o[_+5];m+=o[_]*A,g+=o[_+1]*A,o[_+4]=b,n&&(x||(x=this.map(o,h,!0),v=this.clusterProps.length,this.clusterProps.push(x)),n(x,this.map(o,_)))}o[h+4]=b,l.push(m/y,g/y,1/0,b,-1,y),n&&l.push(v)}else{for(let m=0;m1)for(let m of f){let g=m*u;if(!(o[g+2]<=e)){o[g+2]=e;for(let x=0;x>5}getOriginZoom(t){return(t-this.points.length)%32}map(t,e,r){if(t[e+5]>1){let a=this.clusterProps[t[e+6]];return r?Object.assign({},a):a}let i=this.points[t[e+3]].tags,n=this.options.map(i);return r&&n===i?Object.assign({},n):n}};function O2(t,e,r){return{id:t[e+3],type:"Point",tags:iu(t,e,r),geometry:[t[e],t[e+1]]}}function R2(t,e,r){return{type:"Feature",id:t[e+3],properties:iu(t,e,r),geometry:{type:"Point",coordinates:[qd(t[e]),jd(t[e+1])]}}}function iu(t,e,r){let i=t[e+5],n=i>=1e4?`${Math.round(i/1e3)}k`:i>=1e3?`${Math.round(i/100)/10}k`:i,a=t[e+6],s=a===-1?{}:Object.assign({},r[a]);return Object.assign(s,{cluster:!0,cluster_id:t[e+3],point_count:i,point_count_abbreviated:n})}var Wd="geojsonvt_clip_start",Zd="geojsonvt_clip_end";function Ac(t,e,r,i,n){let a=e===n.maxZoom?0:n.tolerance/((1<0&&e.size<(n?s:i)){r.numPoints+=e.points.length/3;return}let o=[];for(let l=0;ls)&&(r.numSimplified++,o.push(e.points[l],e.points[l+1])),r.numPoints++;n&&G2(o,a),t.push(o)}function G2(t,e){let r=0;for(let i=0,n=t.length,a=n-2;i0===e)for(let i=0,n=t.length;i1&&(console.log("invalidating tiles"),console.time("invalidating")),this.invalidateTiles(e),r.debug>1&&console.timeEnd("invalidating");let[i,n,a]=[0,0,0],s=Ac(t,i,n,a,r);s.source=t;let o=ra(i,n,a);if(this.tiles[o]=s,this.tileCoords.push({z:i,x:n,y:a,id:o}),r.debug){let l=`z${i}`;this.stats[l]=(this.stats[l]||0)+1,this.total++}}getClusterExpansionZoom(t){return null}getChildren(t){return null}getLeaves(t,e,r){return null}getTile(t,e,r){let{extent:i,debug:n}=this.options,a=1<1&&console.log("drilling down to z%d-%d-%d",t,e,r);let o=t,l=e,u=r,h;for(;!h&&o>0;)o--,l>>=1,u>>=1,h=this.tiles[ra(o,l,u)];return!(h!=null&&h.source)||(n>1&&(console.log("found parent tile z%d-%d-%d",o,l,u),console.time("drilling down")),this.splitTile(h.source,o,l,u,t,e,r),n>1&&console.timeEnd("drilling down"),!this.tiles[s])?null:Sc(this.tiles[s],i)}splitTile(t,e,r,i,n,a,s){let o=[t,e,r,i],l=this.options,u=l.debug;for(;o.length;){i=o.pop(),r=o.pop(),e=o.pop(),t=o.pop();let h=1<1&&console.time("creation"),p=this.tiles[c]=Ac(t,e,r,i,l),this.tileCoords.push({z:e,x:r,y:i,id:c}),u)){u>1&&(console.log("tile z%d-%d-%d (features: %d, points: %d, simplified: %d)",e,r,i,p.numFeatures,p.numPoints,p.numSimplified),console.timeEnd("creation"));let A=`z${e}`;this.stats[A]=(this.stats[A]||0)+1,this.total++}if(p.source=t,n==null){if(e===l.indexMaxZoom||p.numPoints<=l.indexMaxPoints)continue}else{if(e===l.maxZoom||e===n)continue;if(n!=null){let A=n-e;if(r!==a>>A||i!==s>>A)continue}}if(p.source=null,!t.length)continue;u>1&&console.time("clipping");let f=.5*l.buffer/l.extent,d=.5-f,y=.5+f,m=1+f,g=null,x=null,v=null,b=null,w=Me(t,h,r-f,r+y,0,p.minX,p.maxX,l),_=Me(t,h,r+d,r+m,0,p.minX,p.maxX,l);w&&(g=Me(w,h,i-f,i+y,1,p.minY,p.maxY,l),x=Me(w,h,i+d,i+m,1,p.minY,p.maxY,l)),_&&(v=Me(_,h,i-f,i+y,1,p.minY,p.maxY,l),b=Me(_,h,i+d,i+m,1,p.minY,p.maxY,l)),u>1&&console.timeEnd("clipping"),o.push(g||[],e+1,r*2,i*2),o.push(x||[],e+1,r*2,i*2+1),o.push(v||[],e+1,r*2+1,i*2),o.push(b||[],e+1,r*2+1,i*2+1)}}invalidateTiles(t){if(!t.length)return;let e=this.options,{debug:r}=e,i=1/0,n=-1/0,a=1/0,s=-1/0;for(let u of t)i=Math.min(i,u.minX),n=Math.max(n,u.maxX),a=Math.min(a,u.minY),s=Math.max(s,u.maxY);let o=e.buffer/e.extent,l=new Set;for(let u in this.tiles){let h=this.tiles[u],c=1<=f||s=y)continue;let m=!1;for(let g of t)if(g.maxX>=p&&g.minX=d&&g.minY1&&console.log("invalidate tile z%d-%d-%d (features: %d, points: %d, simplified: %d)",h.z,h.x,h.y,h.numFeatures,h.numPoints,h.numSimplified);let g=`z${h.z}`;this.stats[g]=(this.stats[g]||0)-1,this.total--}delete this.tiles[u],l.add(u)}}l.size&&(this.tileCoords=this.tileCoords.filter(u=>!l.has(u.id)))}};function ra(t,e,r){return((1<24)throw Error("maxZoom should be in the 0-24 range");if(e.promoteId&&e.generateId)throw Error("promoteId and generateId cannot be used together.");let i=Jl(t,e);r&&(console.timeEnd("preprocess data"),console.log("index: maxZoom: %d, maxPoints: %d",e.indexMaxZoom,e.indexMaxPoints),console.time("generate tiles")),i=ru(i,e),e.updateable&&(this.source=i),this.initializeIndex(i,e)}initializeIndex(t,e){this.tileIndex=e.cluster?new V2(e.clusterOptions):new W2(e),t.length&&this.tileIndex.initialize(t)}getTile(t,e,r){return t=+t,e=+e,r=+r,t<0||t>24?null:this.tileIndex.getTile(t,e,r)}updateData(t,e){let r=this.options;if(!r.updateable)throw Error("to update tile geojson `updateable` option must be set to true");let{affected:i,source:n}=B2(this.source,t,r);e&&({affected:i,source:n}=this.filterUpdate(n,i,e)),i.length&&(this.source=n,this.tileIndex.updateIndex(n,i,r))}filterUpdate(t,e,r){let i=new Set;for(let n of t)n.id!=null&&(r(Ca(n))||(e.push(n),i.add(n.id)));return t=t.filter(n=>!i.has(n.id)),{affected:e,source:t}}getData(){if(!this.options.updateable)throw Error("to retrieve data the `updateable` option must be set to true");return D2(this.source)}updateClusterOptions(t,e){let r=this.options.cluster;if(this.options.cluster=t,this.options.clusterOptions=e,r==t){this.tileIndex.updateIndex(this.source,[],this.options);return}this.initializeIndex(this.source,this.options)}getClusterExpansionZoom(t){return this.tileIndex.getClusterExpansionZoom(t)}getClusterChildren(t){return this.tileIndex.getChildren(t)}getClusterLeaves(t,e,r){return this.tileIndex.getLeaves(t,e,r)}},el=Et([{name:"a_pos_normal",components:2,type:"Int16"},{name:"a_data",components:4,type:"Uint8"}],4),H2=el.members;el.size,el.alignment;var rl=Et([{name:"a_uv_x",components:1,type:"Float32"},{name:"a_split_index",components:1,type:"Float32"}]),K2=rl.members;rl.size,rl.alignment;var J2=Math.cos(75/2*(Math.PI/180)),Jd=1/2,Ec=2**14/Jd,Qd=class{constructor(t){this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map(e=>e.id),this.index=t.index,this.hasDependencies=!1,this.patternFeatures=[],this.lineClipsArray=[],this.gradients={};for(let e of this.layers)this.gradients[e.id]={};this.layoutVertexArray=new vg,this.layoutVertexArray2=new bg,this.indexArray=new En,this.programConfigurations=new Dr(t.layers,t.zoom),this.segments=new ie,this.maxLineLength=0,this.stateDependentLayerIds=this.layers.filter(e=>e.isStateDependent()).map(e=>e.id)}populate(t,e,r){this.hasDependencies=Fa("line",this.layers,e)||this.hasLineDasharray(this.layers);let i=this.layers[0].layout.get("line-sort-key"),n=!i.isConstant(),a=[],s=new st(this.zoom),o=this.layers[0]._featureFilter.needGeometry;for(let{feature:l,id:u,index:h,sourceLayerIndex:c}of t){let p=hi(l,o);if(!this.layers[0]._featureFilter.filter(s,p,r))continue;let f=n?i.evaluate(p,{},r):void 0,d={id:u,properties:l.properties,type:l.type,sourceLayerIndex:c,index:h,geometry:o?p.geometry:Fr(l),patterns:{},dashes:{},sortKey:f};a.push(d)}n&&a.sort((l,u)=>l.sortKey-u.sortKey);for(let l of a){let{geometry:u,index:h,sourceLayerIndex:c}=l;this.hasDependencies?(Fa("line",this.layers,e)?Wl("line",this.layers,l,{zoom:this.zoom},e):this.hasLineDasharray(this.layers)&&this.addLineDashDependencies(this.layers,l,this.zoom,e),this.patternFeatures.push(l)):this.addFeature(l,u,h,r,{},{},e.subdivisionGranularity);let p=t[h].feature;e.featureIndex.insert(p,u,h,c,this.index)}}update(t,e,r,i){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(t,e,this.stateDependentLayers,{imagePositions:r,dashPositions:i})}addFeatures({options:t,canonical:e,patternPositions:r,dashPositions:i}){for(let n of this.patternFeatures)this.addFeature(n,n.geometry,n.index,e,r,i,t.subdivisionGranularity)}isEmpty(){return this.layoutVertexArray.length===0}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(t){this.uploaded||(this.layoutVertexArray2.length!==0&&(this.layoutVertexBuffer2=t.createVertexBuffer(this.layoutVertexArray2,K2)),this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,H2),this.indexBuffer=t.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(t),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())}lineFeatureClips(t){if(t.properties&&Object.hasOwn(t.properties,"geojsonvt_clip_start")&&Object.hasOwn(t.properties,"geojsonvt_clip_end"))return{start:+t.properties[Wd],end:+t.properties[Zd]}}addFeature(t,e,r,i,n,a,s){let o=this.layers[0].layout,l=o.get("line-join").evaluate(t,{}),u=o.get("line-cap").evaluate(t,{}),h=o.get("line-miter-limit").evaluate(t,{}),c=o.get("line-round-limit").evaluate(t,{});this.lineClips=this.lineFeatureClips(t);for(let p of e)this.addLine(p,t,l,u,h,c,i,s);this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,t,r,{imagePositions:n,dashPositions:a,canonical:i})}addLine(t,e,r,i,n,a,s,o){this.distance=0,this.scaledDistance=0,this.totalDistance=0;let l=s?o.line.getGranularityForZoomLevel(s.z):1;if(t=yr(t,l),this.lineClips){this.lineClipsArray.push(this.lineClips);for(let v=0;v=2&&t[h-1].equals(t[h-2]);)h--;let c=0;for(;c0;if(T&&v>c){let V=d.dist(y);if(V>2*p){let F=d.sub(d.sub(y)._mult(p/V)._round());this.updateDistance(y,F),this.addCurrentVertex(F,g,0,0,f),y=F}}let O=y&&m,B=O?r:u?"butt":i;if(O&&B==="round"&&(An&&(B="bevel"),B==="bevel"&&(A>2&&(B="flipbevel"),A100)b=x.mult(-1);else{let V=A*g.add(x).mag()/g.sub(x).mag();b._perp()._mult(V*(L?-1:1))}this.addCurrentVertex(d,b,0,0,f),this.addCurrentVertex(d,b.mult(-1),0,0,f)}else if(B==="bevel"||B==="fakeround"){let V=-Math.sqrt(A*A-1),F=L?V:0,$=L?0:V;if(y&&this.addCurrentVertex(d,g,F,$,f),B==="fakeround"){let G=Math.round(S*180/Math.PI/20);for(let P=1;P2*p){let F=d.add(m.sub(d)._mult(p/V)._round());this.updateDistance(d,F),this.addCurrentVertex(F,x,0,0,f),d=F}}}}addCurrentVertex(t,e,r,i,n,a=!1){let s=e.x+e.y*r,o=e.y-e.x*r,l=-e.x+e.y*i,u=-e.y-e.x*i;this.addHalfVertex(t,s,o,a,!1,r,n),this.addHalfVertex(t,l,u,a,!0,-i,n),this.distance>Ec/2&&this.totalDistance===0&&(this.distance=0,this.updateScaledDistance(),this.addCurrentVertex(t,e,r,i,n,a))}addHalfVertex({x:t,y:e},r,i,n,a,s,o){let l=(this.lineClips?this.scaledDistance*(Ec-1):this.scaledDistance)*Jd;if(this.layoutVertexArray.emplaceBack((t<<1)+ +!!n,(e<<1)+ +!!a,Math.round(63*r)+128,Math.round(63*i)+128,(s===0?0:s<0?-1:1)+1|(l&63)<<2,l>>6),this.lineClips){let h=(this.scaledDistance-this.lineClips.start)/(this.lineClips.end-this.lineClips.start);this.layoutVertexArray2.emplaceBack(h,this.lineClipsArray.length)}let u=o.vertexLength++;this.e1>=0&&this.e2>=0&&(this.indexArray.emplaceBack(this.e1,u,this.e2),o.primitiveLength++),a?this.e2=u:this.e1=u}updateScaledDistance(){this.scaledDistance=this.lineClips?this.lineClips.start+(this.lineClips.end-this.lineClips.start)*this.distance/this.totalDistance:this.distance}updateDistance(t,e){this.distance+=t.dist(e),this.updateScaledDistance()}hasLineDasharray(t){for(let e of t){let r=e.paint.get("line-dasharray");if(r&&!r.isConstant())return!0}return!1}addLineDashDependencies(t,e,r,i){for(let n of t){let a=n.paint.get("line-dasharray");if(!a||a.value.kind==="constant")continue;let s=n.layout.get("line-cap").evaluate(e,{})==="round",o={dasharray:a.value.evaluate({zoom:r-1},e,{}),round:s},l={dasharray:a.value.evaluate({zoom:r},e,{}),round:s},u={dasharray:a.value.evaluate({zoom:r+1},e,{}),round:s},h=`${o.dasharray.join(",")},${o.round}`,c=`${l.dasharray.join(",")},${l.round}`,p=`${u.dasharray.join(",")},${u.round}`;i.dashDependencies[h]=o,i.dashDependencies[c]=l,i.dashDependencies[p]=u,e.dashes[n.id]={min:h,mid:c,max:p}}}};C("LineBucket",Qd,{omit:["layers","patternFeatures"]});var Fc,Q2=()=>Fc||(Fc=new Yt({"line-cap":new U(D.layout_line["line-cap"],"line-cap"),"line-join":new U(D.layout_line["line-join"],"line-join"),"line-miter-limit":new U(D.layout_line["line-miter-limit"],"line-miter-limit"),"line-round-limit":new U(D.layout_line["line-round-limit"],"line-round-limit"),"line-sort-key":new U(D.layout_line["line-sort-key"],"line-sort-key")})),Tc,tv=()=>Tc||(Tc=new Yt({"line-opacity":new U(D.paint_line["line-opacity"],"line-opacity"),"line-layer-opacity":new R(D.paint_line["line-layer-opacity"],"line-layer-opacity"),"line-color":new U(D.paint_line["line-color"],"line-color"),"line-translate":new R(D.paint_line["line-translate"],"line-translate"),"line-translate-anchor":new R(D.paint_line["line-translate-anchor"],"line-translate-anchor"),"line-width":new U(D.paint_line["line-width"],"line-width"),"line-gap-width":new U(D.paint_line["line-gap-width"],"line-gap-width"),"line-offset":new U(D.paint_line["line-offset"],"line-offset"),"line-blur":new U(D.paint_line["line-blur"],"line-blur"),"line-dasharray":new cn(D.paint_line["line-dasharray"],"line-dasharray"),"line-pattern":new cn(D.paint_line["line-pattern"],"line-pattern"),"line-gradient":new Za(D.paint_line["line-gradient"],"line-gradient")})),kc={get paint(){return tv()},get layout(){return Q2()}},ev=class extends U{possiblyEvaluate(t,e){return e=new st(Math.floor(e.zoom),{now:e.now,fadeDuration:e.fadeDuration,zoomHistory:e.zoomHistory,transition:e.transition}),super.possiblyEvaluate(t,e)}evaluate(t,e,r,i){return e=Xt({},e,{zoom:Math.floor(e.zoom)}),super.evaluate(t,e,r,i)}},ia;var rv=class extends ye{constructor(t,e){super(t,kc,e),this.gradientVersion=0,ia||(ia=new ev(kc.paint.properties["line-width"].specification,"line-floorwidth"),ia.useIntegerZoom=!0)}_handleSpecialPaintPropertyUpdate(t){if(t==="line-gradient"){let e=this.gradientExpression();this.stepInterpolant=Im(e)?e._styleExpression.expression instanceof Dl:!1,this.gradientVersion=(this.gradientVersion+1)%(2**53-1)}}gradientExpression(){return this._transitionablePaint._values["line-gradient"].value.expression}recalculate(t,e){super.recalculate(t,e),this.paint._values["line-floorwidth"]=ia.possiblyEvaluate(this._transitioningPaint._values["line-width"].value,t)}createBucket(t){return new Qd(t)}queryRadius(t){let e=t,r=Ic(Wr("line-width",this,e),Wr("line-gap-width",this,e)),i=Wr("line-offset",this,e);return r/2+Math.abs(i)+Ka(this.paint.get("line-translate"))}queryIntersectsFeature({queryGeometry:t,feature:e,featureState:r,geometry:i,transform:n,pixelsToTileUnits:a}){let s=Ja(t,this.paint.get("line-translate"),this.paint.get("line-translate-anchor"),-n.bearingInRadians,a),o=a/2*Ic(this.paint.get("line-width").evaluate(e,r),this.paint.get("line-gap-width").evaluate(e,r)),l=this.paint.get("line-offset").evaluate(e,r);return l&&(i=Ug(i,l*a)),Lg(s,i,o)}isTileClipped(){return!0}};function Ic(t,e){return e>0?e+2*t:t}var iv=Et([{name:"a_pos_offset",components:4,type:"Int16"},{name:"a_data",components:4,type:"Uint16"},{name:"a_pixeloffset",components:4,type:"Int16"},{name:"a_height_offset",components:1,type:"Float32"}],4),nv=Et([{name:"a_projected_pos",components:3,type:"Float32"}],4);Et([{name:"a_fade_opacity",components:1,type:"Uint32"}],4);var av=Et([{name:"a_placed",components:2,type:"Uint8"},{name:"a_shift",components:2,type:"Float32"},{name:"a_box_real",components:2,type:"Int16"}]);Et([{type:"Int16",name:"anchorPointX"},{type:"Int16",name:"anchorPointY"},{type:"Int16",name:"x1"},{type:"Int16",name:"y1"},{type:"Int16",name:"x2"},{type:"Int16",name:"y2"},{type:"Uint32",name:"featureIndex"},{type:"Uint16",name:"sourceLayerIndex"},{type:"Uint16",name:"bucketIndex"}]);var Cc=Et([{name:"a_pos",components:2,type:"Int16"},{name:"a_anchor_pos",components:2,type:"Int16"},{name:"a_extrude",components:2,type:"Int16"}],4),S5=Et([{name:"a_pos",components:2,type:"Float32"},{name:"a_radius",components:1,type:"Float32"},{name:"a_flags",components:2,type:"Int16"}],4);Et([{name:"triangle",components:3,type:"Uint16"}]),Et([{type:"Int16",name:"anchorX"},{type:"Int16",name:"anchorY"},{type:"Uint16",name:"glyphStartIndex"},{type:"Uint16",name:"numGlyphs"},{type:"Uint32",name:"vertexStartIndex"},{type:"Uint32",name:"lineStartIndex"},{type:"Uint32",name:"lineLength"},{type:"Uint16",name:"segment"},{type:"Uint16",name:"lowerSize"},{type:"Uint16",name:"upperSize"},{type:"Float32",name:"lineOffsetX"},{type:"Float32",name:"lineOffsetY"},{type:"Uint8",name:"writingMode"},{type:"Uint8",name:"placedOrientation"},{type:"Uint8",name:"hidden"},{type:"Uint32",name:"crossTileID"},{type:"Int16",name:"associatedIconIndex"},{type:"Float32",name:"heightOffset"}]),Et([{type:"Int16",name:"anchorX"},{type:"Int16",name:"anchorY"},{type:"Int16",name:"rightJustifiedTextSymbolIndex"},{type:"Int16",name:"centerJustifiedTextSymbolIndex"},{type:"Int16",name:"leftJustifiedTextSymbolIndex"},{type:"Int16",name:"verticalPlacedTextSymbolIndex"},{type:"Int16",name:"placedIconSymbolIndex"},{type:"Int16",name:"verticalPlacedIconSymbolIndex"},{type:"Uint16",name:"key"},{type:"Uint16",name:"textBoxStartIndex"},{type:"Uint16",name:"textBoxEndIndex"},{type:"Uint16",name:"verticalTextBoxStartIndex"},{type:"Uint16",name:"verticalTextBoxEndIndex"},{type:"Uint16",name:"iconBoxStartIndex"},{type:"Uint16",name:"iconBoxEndIndex"},{type:"Uint16",name:"verticalIconBoxStartIndex"},{type:"Uint16",name:"verticalIconBoxEndIndex"},{type:"Uint16",name:"featureIndex"},{type:"Uint16",name:"numHorizontalGlyphVertices"},{type:"Uint16",name:"numVerticalGlyphVertices"},{type:"Uint16",name:"numIconVertices"},{type:"Uint16",name:"numVerticalIconVertices"},{type:"Uint16",name:"useRuntimeCollisionCircles"},{type:"Uint32",name:"crossTileID"},{type:"Float32",name:"textBoxScale"},{type:"Float32",name:"collisionCircleDiameter"},{type:"Uint16",name:"textAnchorOffsetStartIndex"},{type:"Uint16",name:"textAnchorOffsetEndIndex"},{type:"Float32",name:"heightOffset"}]),Et([{type:"Float32",name:"offsetX"}]),Et([{type:"Int16",name:"x"},{type:"Int16",name:"y"},{type:"Int16",name:"tileUnitDistanceFromAnchor"}]),Et([{type:"Uint16",name:"textAnchor"},{type:"Float32",components:2,name:"textOffset"}]);var Ar=new class{constructor(){this.TIMEOUT=5e3,this.applyArabicShaping=null,this.processBidirectionalText=null,this.processStyledBidirectionalText=null,this.pluginStatus="unavailable",this.pluginURL=null,this.loadScriptResolve=()=>{}}setState(t){this.pluginStatus=t.pluginStatus,this.pluginURL=t.pluginURL}getState(){return{pluginStatus:this.pluginStatus,pluginURL:this.pluginURL}}setMethods(t){if(Ar.isParsed())throw Error("RTL text plugin already registered.");this.applyArabicShaping=t.applyArabicShaping,this.processBidirectionalText=t.processBidirectionalText,this.processStyledBidirectionalText=t.processStyledBidirectionalText,this.loadScriptResolve()}isParsed(){return this.applyArabicShaping!=null&&this.processBidirectionalText!=null&&this.processStyledBidirectionalText!=null}getRTLTextPluginStatus(){return this.pluginStatus}syncState(t,e){return et(this,null,function*(){if(this.isParsed())return this.getState();if(t.pluginStatus!=="loading")return this.setState(t),t;let r=t.pluginURL,i=new Promise(a=>{this.loadScriptResolve=a}),n=new Promise(a=>setTimeout(()=>a(),this.TIMEOUT));if(yield e(r),yield Promise.race([i,n]),this.isParsed()){let a={pluginStatus:"loaded",pluginURL:r};return this.setState(a),a}throw this.setState({pluginStatus:"error",pluginURL:""}),Error(`RTL Text Plugin failed to import scripts from ${r}`)})}};function sv(t){return/[\\u0600-\\u0604\\u0606-\\u060B\\u060D-\\u061A\\u061C-\\u061E\\u0620-\\u063F\\u0641-\\u064A\\u0656-\\u066F\\u0671-\\u06DC\\u06DE-\\u070D\\u070F-\\u074A\\u074D-\\u077F\\u07C0-\\u07FA\\u07FD-\\u07FF\\u0840-\\u085B\\u085E\\u0860-\\u086A\\u0870-\\u0891\\u0897-\\u08E1\\u08E3-\\u08FF\\u1800\\u1801\\u1804\\u1806-\\u1819\\u1820-\\u1878\\u1880-\\u18AA\\uA840-\\uA877\\uFB50-\\uFD3D\\uFD40-\\uFDCF\\uFDF0-\\uFDFF\\uFE70-\\uFE74\\uFE76-\\uFEFC]|\\uD802[\\uDEC0-\\uDEE6\\uDEEB-\\uDEF6\\uDF80-\\uDF91\\uDF99-\\uDF9C\\uDFA9-\\uDFAF]|\\uD803[\\uDD00-\\uDD27\\uDD30-\\uDD39\\uDE60-\\uDE7E\\uDEC2-\\uDEC7\\uDED0-\\uDED8\\uDEFA-\\uDEFF\\uDF30-\\uDF59\\uDF70-\\uDF89\\uDFB0-\\uDFCB]|\\uD805[\\uDE60-\\uDE6C]|\\uD82F[\\uDC00-\\uDC6A\\uDC70-\\uDC7C\\uDC80-\\uDC88\\uDC90-\\uDC99\\uDC9C-\\uDC9F]|\\uD83A[\\uDD00-\\uDD4B\\uDD50-\\uDD59\\uDD5E\\uDD5F]|\\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\\uDEF0\\uDEF1]/gim.test(String.fromCodePoint(t))}function ov(t){return/[\\u0591-\\u05C7\\u05D0-\\u05EA\\u05EF-\\u05F4\\u0600-\\u0604\\u0606-\\u060B\\u060D-\\u061A\\u061C-\\u061E\\u0620-\\u063F\\u0641-\\u064A\\u0656-\\u066F\\u0671-\\u06DC\\u06DE-\\u070D\\u070F-\\u074A\\u074D-\\u07B1\\u07C0-\\u07FA\\u07FD-\\u082D\\u0830-\\u083E\\u0840-\\u085B\\u085E\\u0860-\\u086A\\u0870-\\u0891\\u0897-\\u08E1\\u08E3-\\u08FF\\uFB1D-\\uFB36\\uFB38-\\uFB3C\\uFB3E\\uFB40\\uFB41\\uFB43\\uFB44\\uFB46-\\uFD3D\\uFD40-\\uFDCF\\uFDF0-\\uFDFF\\uFE70-\\uFE74\\uFE76-\\uFEFC]|\\uD802[\\uDC00-\\uDC05\\uDC08\\uDC0A-\\uDC35\\uDC37\\uDC38\\uDC3C\\uDC3F-\\uDC55\\uDC57-\\uDC9E\\uDCA7-\\uDCAF\\uDCE0-\\uDCF2\\uDCF4\\uDCF5\\uDCFB-\\uDD1B\\uDD1F-\\uDD39\\uDD3F-\\uDD59\\uDD80-\\uDDB7\\uDDBC-\\uDDCF\\uDDD2-\\uDE03\\uDE05\\uDE06\\uDE0C-\\uDE13\\uDE15-\\uDE17\\uDE19-\\uDE35\\uDE38-\\uDE3A\\uDE3F-\\uDE48\\uDE50-\\uDE58\\uDE60-\\uDE9F\\uDEC0-\\uDEE6\\uDEEB-\\uDEF6\\uDF00-\\uDF35\\uDF39-\\uDF55\\uDF58-\\uDF72\\uDF78-\\uDF91\\uDF99-\\uDF9C\\uDFA9-\\uDFAF]|\\uD803[\\uDC00-\\uDC48\\uDC80-\\uDCB2\\uDCC0-\\uDCF2\\uDCFA-\\uDD27\\uDD30-\\uDD39\\uDD40-\\uDD65\\uDD69-\\uDD85\\uDD8E\\uDD8F\\uDE60-\\uDE7E\\uDE80-\\uDEA9\\uDEAB-\\uDEAD\\uDEB0\\uDEB1\\uDEC2-\\uDEC7\\uDED0-\\uDED8\\uDEFA-\\uDF27\\uDF30-\\uDF59\\uDF70-\\uDF89\\uDFB0-\\uDFCB\\uDFE0-\\uDFF6]|\\uD83A[\\uDC00-\\uDCC4\\uDCC7-\\uDCD6\\uDD00-\\uDD4B\\uDD50-\\uDD59\\uDD5E\\uDD5F]|\\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\\uDEF0\\uDEF1]/gim.test(String.fromCodePoint(t))}function lv(t){return/[\\u02EA\\u02EB\\u2E80-\\u2FDF\\u2FF0-\\u303F\\u3041-\\u3096\\u309D-\\u309F\\u30A1-\\u30FA\\u30FD-\\u30FF\\u3105-\\u312F\\u31A0-\\u4DBF\\u4E00-\\uA48C\\uA490-\\uA4C6\\uF900-\\uFA6D\\uFA70-\\uFAD9\\uFE10-\\uFE1F\\uFE30-\\uFE4F\\uFF00-\\uFFEF]|\\uD81B[\\uDFE0-\\uDFFF]|[\\uD81C-\\uD822\\uD840-\\uD868\\uD86A-\\uD86D\\uD86F-\\uD872\\uD874-\\uD879\\uD880-\\uD883\\uD885-\\uD88C][\\uDC00-\\uDFFF]|\\uD823[\\uDC00-\\uDCD5\\uDCFF-\\uDD1E\\uDD80-\\uDDF2]|\\uD82B[\\uDFF0-\\uDFFF]|\\uD82C[\\uDC00-\\uDEFB]|\\uD83C[\\uDE00-\\uDEFF]|\\uD869[\\uDC00-\\uDEDF\\uDF00-\\uDFFF]|\\uD86E[\\uDC00-\\uDC1D\\uDC20-\\uDFFF]|\\uD873[\\uDC00-\\uDEAD\\uDEB0-\\uDFFF]|\\uD87A[\\uDC00-\\uDFE0\\uDFF0-\\uDFFF]|\\uD87B[\\uDC00-\\uDE5D]|\\uD87E[\\uDC00-\\uDE1D]|\\uD884[\\uDC00-\\uDF4A\\uDF50-\\uDFFF]|\\uD88D[\\uDC00-\\uDC79]/gim.test(String.fromCodePoint(t))}function ts(t){return/[\\u02EA\\u02EB\\u1100-\\u11FF\\u1401-\\u167F\\u18B0-\\u18FF\\u2065\\u20DD-\\u20E0\\u20E2-\\u20E4\\u2B97\\u2BF0-\\u2BFF\\u2E50\\u2E51\\u2E80-\\u3007\\u3012\\u3013\\u3020-\\u302F\\u3031-\\u30FB\\u30FD-\\uA4CF\\uA960-\\uA97F\\uAC00-\\uD7FF\\uF900-\\uFAFF\\uFE10-\\uFE1F\\uFE30-\\uFE48\\uFE50-\\uFE57\\uFE5F-\\uFE62\\uFE67-\\uFE6F\\uFF00-\\uFF07\\uFF0A-\\uFF0C\\uFF0E-\\uFF19\\uFF1F-\\uFF3A\\uFF3C\\uFF3E\\uFF40-\\uFF5A\\uFFE0-\\uFFE2\\uFFE4-\\uFFE7\\uFFF0-\\uFFF8]|\\uD802[\\uDD80-\\uDD9F]|\\uD805[\\uDD80-\\uDDFF]|\\uD806[\\uDE00-\\uDEBF]|[\\uD80C-\\uD810\\uD81C-\\uD822\\uD83C\\uD83D\\uD840-\\uD87E\\uD880-\\uD8BE][\\uDC00-\\uDFFF]|\\uD811[\\uDC00-\\uDE7F]|\\uD81B[\\uDFE0-\\uDFFF]|\\uD823[\\uDC00-\\uDDFF]|\\uD82B[\\uDFF0-\\uDFFF]|\\uD82C[\\uDC00-\\uDEFF]|\\uD833[\\uDEC0-\\uDFCF]|\\uD834[\\uDC00-\\uDDFF\\uDEE0-\\uDF7F]|\\uD836[\\uDC00-\\uDEAF]|\\uD83E[\\uDD00-\\uDEFF]|[\\uD87F\\uD8BF][\\uDC00-\\uDFFD]/gim.test(String.fromCodePoint(t))}function uv(t){return/[\\xA7\\xA9\\xAE\\xB1\\xBC-\\xBE\\xD7\\xF7\\u2016\\u2020\\u2021\\u2030\\u2031\\u203B\\u203C\\u2042\\u2047-\\u2049\\u2051\\u2100-\\u218F\\u221E\\u2234\\u2235\\u2300-\\u2307\\u230C-\\u231F\\u2324-\\u2328\\u232B\\u237D-\\u239A\\u23BE-\\u23CD\\u23CF\\u23D1-\\u23DB\\u23E2-\\u2422\\u2424-\\u24FF\\u25A0-\\u2619\\u2620-\\u2767\\u2776-\\u2793\\u2B12-\\u2B2F\\u2B50-\\u2B59\\u2BB8-\\u2BEB\\u3000-\\u303F\\u30A0-\\u30FF\\uE000-\\uF8FF\\uFE30-\\uFE6F\\uFF00-\\uFFEF\\uFFFC\\uFFFD]|[\\uDB80-\\uDBFF][\\uDC00-\\uDFFF]/gim.test(String.fromCodePoint(t))}function hv(t){return/[\\r\\u0300-\\u036F\\u0483-\\u0489\\u0591-\\u05BD\\u05BF\\u05C1\\u05C2\\u05C4\\u05C5\\u05C7\\u0600-\\u0605\\u0610-\\u061A\\u064B-\\u065F\\u0670\\u06D6-\\u06DD\\u06DF-\\u06E4\\u06E7\\u06E8\\u06EA-\\u06ED\\u070F\\u0711\\u0730-\\u074A\\u07A6-\\u07B0\\u07EB-\\u07F3\\u07FD\\u0816-\\u0819\\u081B-\\u0823\\u0825-\\u0827\\u0829-\\u082D\\u0859-\\u085B\\u0890\\u0891\\u0897-\\u089F\\u08CA-\\u0903\\u093A-\\u093C\\u093E-\\u094F\\u0951-\\u0957\\u0962\\u0963\\u0981-\\u0983\\u09BC\\u09BE-\\u09C4\\u09C7\\u09C8\\u09CB-\\u09CD\\u09D7\\u09E2\\u09E3\\u09FE\\u0A01-\\u0A03\\u0A3C\\u0A3E-\\u0A42\\u0A47\\u0A48\\u0A4B-\\u0A4D\\u0A51\\u0A70\\u0A71\\u0A75\\u0A81-\\u0A83\\u0ABC\\u0ABE-\\u0AC5\\u0AC7-\\u0AC9\\u0ACB-\\u0ACD\\u0AE2\\u0AE3\\u0AFA-\\u0AFF\\u0B01-\\u0B03\\u0B3C\\u0B3E-\\u0B44\\u0B47\\u0B48\\u0B4B-\\u0B4D\\u0B55-\\u0B57\\u0B62\\u0B63\\u0B82\\u0BBE-\\u0BC2\\u0BC6-\\u0BC8\\u0BCA-\\u0BCD\\u0BD7\\u0C00-\\u0C04\\u0C3C\\u0C3E-\\u0C44\\u0C46-\\u0C48\\u0C4A-\\u0C4D\\u0C55\\u0C56\\u0C62\\u0C63\\u0C81-\\u0C83\\u0CBC\\u0CBE-\\u0CC4\\u0CC6-\\u0CC8\\u0CCA-\\u0CCD\\u0CD5\\u0CD6\\u0CE2\\u0CE3\\u0CF3\\u0D00-\\u0D03\\u0D3B\\u0D3C\\u0D3E-\\u0D44\\u0D46-\\u0D48\\u0D4A-\\u0D4E\\u0D57\\u0D62\\u0D63\\u0D81-\\u0D83\\u0DCA\\u0DCF-\\u0DD4\\u0DD6\\u0DD8-\\u0DDF\\u0DF2\\u0DF3\\u0E31\\u0E33-\\u0E3A\\u0E47-\\u0E4E\\u0EB1\\u0EB3-\\u0EBC\\u0EC8-\\u0ECE\\u0F18\\u0F19\\u0F35\\u0F37\\u0F39\\u0F3E\\u0F3F\\u0F71-\\u0F84\\u0F86\\u0F87\\u0F8D-\\u0F97\\u0F99-\\u0FBC\\u0FC6\\u102D-\\u1037\\u1039-\\u103E\\u1056-\\u1059\\u105E-\\u1060\\u1071-\\u1074\\u1082\\u1084-\\u1086\\u108D\\u109D\\u1100-\\u11FF\\u135D-\\u135F\\u1712-\\u1715\\u1732-\\u1734\\u1752\\u1753\\u1772\\u1773\\u17B4-\\u17D3\\u17DD\\u180B-\\u180D\\u180F\\u1885\\u1886\\u18A9\\u1920-\\u192B\\u1930-\\u193B\\u1A17-\\u1A1B\\u1A55-\\u1A5E\\u1A60\\u1A62\\u1A65-\\u1A7C\\u1A7F\\u1AB0-\\u1ADD\\u1AE0-\\u1AEB\\u1B00-\\u1B04\\u1B34-\\u1B44\\u1B6B-\\u1B73\\u1B80-\\u1B82\\u1BA1-\\u1BAD\\u1BE6-\\u1BF3\\u1C24-\\u1C37\\u1CD0-\\u1CD2\\u1CD4-\\u1CE8\\u1CED\\u1CF4\\u1CF7-\\u1CF9\\u1DC0-\\u1DFF\\u200C\\u200D\\u20D0-\\u20F0\\u2CEF-\\u2CF1\\u2D7F\\u2DE0-\\u2DFF\\u302A-\\u302F\\u3099\\u309A\\uA66F-\\uA672\\uA674-\\uA67D\\uA69E\\uA69F\\uA6F0\\uA6F1\\uA802\\uA806\\uA80B\\uA823-\\uA827\\uA82C\\uA880\\uA881\\uA8B4-\\uA8C5\\uA8E0-\\uA8F1\\uA8FF\\uA926-\\uA92D\\uA947-\\uA953\\uA960-\\uA97C\\uA980-\\uA983\\uA9B3-\\uA9C0\\uA9E5\\uAA29-\\uAA36\\uAA43\\uAA4C\\uAA4D\\uAA7C\\uAAB0\\uAAB2-\\uAAB4\\uAAB7\\uAAB8\\uAABE\\uAABF\\uAAC1\\uAAEB-\\uAAEF\\uAAF5\\uAAF6\\uABE3-\\uABEA\\uABEC\\uABED\\uAC00-\\uD7A3\\uD7B0-\\uD7C6\\uD7CB-\\uD7FB\\uFB1E\\uFE00-\\uFE0F\\uFE20-\\uFE2F\\uFF9E\\uFF9F]|\\uD800[\\uDDFD\\uDEE0\\uDF76-\\uDF7A]|\\uD802[\\uDE01-\\uDE03\\uDE05\\uDE06\\uDE0C-\\uDE0F\\uDE38-\\uDE3A\\uDE3F\\uDEE5\\uDEE6]|\\uD803[\\uDD24-\\uDD27\\uDD69-\\uDD6D\\uDEAB\\uDEAC\\uDEFA-\\uDEFF\\uDF46-\\uDF50\\uDF82-\\uDF85]|\\uD804[\\uDC00-\\uDC02\\uDC38-\\uDC46\\uDC70\\uDC73\\uDC74\\uDC7F-\\uDC82\\uDCB0-\\uDCBA\\uDCBD\\uDCC2\\uDCCD\\uDD00-\\uDD02\\uDD27-\\uDD34\\uDD45\\uDD46\\uDD73\\uDD80-\\uDD82\\uDDB3-\\uDDC0\\uDDC2\\uDDC3\\uDDC9-\\uDDCC\\uDDCE\\uDDCF\\uDE2C-\\uDE37\\uDE3E\\uDE41\\uDEDF-\\uDEEA\\uDF00-\\uDF03\\uDF3B\\uDF3C\\uDF3E-\\uDF44\\uDF47\\uDF48\\uDF4B-\\uDF4D\\uDF57\\uDF62\\uDF63\\uDF66-\\uDF6C\\uDF70-\\uDF74\\uDFB8-\\uDFC0\\uDFC2\\uDFC5\\uDFC7-\\uDFCA\\uDFCC-\\uDFD2\\uDFE1\\uDFE2]|\\uD805[\\uDC35-\\uDC46\\uDC5E\\uDCB0-\\uDCC3\\uDDAF-\\uDDB5\\uDDB8-\\uDDC0\\uDDDC\\uDDDD\\uDE30-\\uDE40\\uDEAB-\\uDEB7\\uDF1D-\\uDF1F\\uDF22-\\uDF2B]|\\uD806[\\uDC2C-\\uDC3A\\uDD30-\\uDD35\\uDD37\\uDD38\\uDD3B-\\uDD43\\uDDD1-\\uDDD7\\uDDDA-\\uDDE0\\uDDE4\\uDE01-\\uDE0A\\uDE33-\\uDE39\\uDE3B-\\uDE3E\\uDE47\\uDE51-\\uDE5B\\uDE84-\\uDE99\\uDF60-\\uDF67]|\\uD807[\\uDC2F-\\uDC36\\uDC38-\\uDC3F\\uDC92-\\uDCA7\\uDCA9-\\uDCB6\\uDD31-\\uDD36\\uDD3A\\uDD3C\\uDD3D\\uDD3F-\\uDD47\\uDD8A-\\uDD8E\\uDD90\\uDD91\\uDD93-\\uDD97\\uDEF3-\\uDEF6\\uDF00-\\uDF03\\uDF34-\\uDF3A\\uDF3E-\\uDF42\\uDF5A]|\\uD80D[\\uDC40\\uDC47-\\uDC55]|\\uD818[\\uDD1E-\\uDD2F]|\\uD81A[\\uDEF0-\\uDEF4\\uDF30-\\uDF36]|\\uD81B[\\uDD63\\uDD67-\\uDD6A\\uDF4F\\uDF51-\\uDF87\\uDF8F-\\uDF92\\uDFE4\\uDFF0\\uDFF1]|\\uD82F[\\uDC9D\\uDC9E]|\\uD833[\\uDF00-\\uDF2D\\uDF30-\\uDF46]|\\uD834[\\uDD65-\\uDD69\\uDD6D-\\uDD72\\uDD7B-\\uDD82\\uDD85-\\uDD8B\\uDDAA-\\uDDAD\\uDE42-\\uDE44]|\\uD836[\\uDE00-\\uDE36\\uDE3B-\\uDE6C\\uDE75\\uDE84\\uDE9B-\\uDE9F\\uDEA1-\\uDEAF]|\\uD838[\\uDC00-\\uDC06\\uDC08-\\uDC18\\uDC1B-\\uDC21\\uDC23\\uDC24\\uDC26-\\uDC2A\\uDC8F\\uDD30-\\uDD36\\uDEAE\\uDEEC-\\uDEEF]|\\uD839[\\uDCEC-\\uDCEF\\uDDEE\\uDDEF\\uDEE3\\uDEE6\\uDEEE\\uDEEF\\uDEF5]|\\uD83A[\\uDCD0-\\uDCD6\\uDD44-\\uDD4A]|\\uD83C[\\uDDE6-\\uDDFF\\uDFFB-\\uDFFF]|\\uDB40[\\uDC20-\\uDC7F\\uDD00-\\uDDEF]/.test(t)}function Mc(t){return/[\\u0E01-\\u0E3A\\u0E40-\\u0E4E\\u0E81\\u0E82\\u0E84\\u0E86-\\u0E8A\\u0E8C-\\u0EA3\\u0EA5\\u0EA7-\\u0EBD\\u0EC0-\\u0EC4\\u0EC6\\u0EC8-\\u0ECE\\u0EDC-\\u0EDF\\u0F00-\\u0F47\\u0F49-\\u0F6C\\u0F71-\\u0F97\\u0F99-\\u0FBC\\u0FBE-\\u0FCC\\u0FCE-\\u0FD4\\u0FD9\\u0FDA\\u1000-\\u103F\\u1050-\\u108F\\u109A-\\u109F\\u1780-\\u17D3\\u17D7\\u17DC\\u17DD\\u1950-\\u196D\\u1970-\\u1974\\u1980-\\u19AB\\u19B0-\\u19C9\\u19DE\\u19DF\\u1A20-\\u1A5E\\u1A60-\\u1A7C\\u1AA0-\\u1AAD\\u1B00-\\u1B4C\\u1B4E-\\u1B7F\\uA980-\\uA9CD\\uA9D0-\\uA9D9\\uA9DE-\\uA9EF\\uA9FA-\\uA9FE\\uAA60-\\uAAC2\\uAADB-\\uAADF]|\\uD805[\\uDF00-\\uDF1A\\uDF1D-\\uDF2B\\uDF3A\\uDF3B\\uDF3F-\\uDF46]/gim.test(String.fromCodePoint(t))}function cv(t,e){return/(?:[\\u1039\\u17D2\\u1A60\\u1BAB\\u200D\\uAAF6]|\\uD802\\uDE3F|\\uD804[\\uDD33\\uDFD0]|\\uD806[\\uDD3E\\uDE47\\uDE99]|\\uD807[\\uDD45\\uDD97\\uDF42])$/.test(t)||new RegExp("^\\\\p{gc=Mc}","u").test(e)}var pv={C:"18g,1;g2,3;4nb,1",D:"17k,1;5,1;1,1;1,5;4,d;1,7;1,2;z,2;8,g;i,12;1,2;9,1;1,1;1,2;14,3;2,1;28,9;3,f;2,4;1,1;2,3;2,6;7a,1;2,5;1,1;g,a;5,2;2,6;1,f",R:"17m,4;1,1;1,1;5,4;l,1;14,3;1,3;g,i;12,1;2,9;1,1;1,1;2,2;1,1;o,2;2x,3;f,2;4,1;1,2;3,2;6u,j;b,1;r,3;1,1;2,2;6,1",T:"174,b;1,1;1a,l;g,1;2t,7;2,6;2,2;1,4;bt,9;16,o;1,t;1clb,1"},fv={1569:[65152,0,0,0],1570:[65153,65154,0,0],1571:[65155,65156,0,0],1572:[65157,65158,0,0],1573:[65159,65160,0,0],1574:[65161,65162,65163,65164],1575:[65165,65166,0,0],1576:[65167,65168,65169,65170],1577:[65171,65172,0,0],1578:[65173,65174,65175,65176],1579:[65177,65178,65179,65180],1580:[65181,65182,65183,65184],1581:[65185,65186,65187,65188],1582:[65189,65190,65191,65192],1583:[65193,65194,0,0],1584:[65195,65196,0,0],1585:[65197,65198,0,0],1586:[65199,65200,0,0],1587:[65201,65202,65203,65204],1588:[65205,65206,65207,65208],1589:[65209,65210,65211,65212],1590:[65213,65214,65215,65216],1591:[65217,65218,65219,65220],1592:[65221,65222,65223,65224],1593:[65225,65226,65227,65228],1594:[65229,65230,65231,65232],1601:[65233,65234,65235,65236],1602:[65237,65238,65239,65240],1603:[65241,65242,65243,65244],1604:[65245,65246,65247,65248],1605:[65249,65250,65251,65252],1606:[65253,65254,65255,65256],1607:[65257,65258,65259,65260],1608:[65261,65262,0,0],1609:[65263,65264,64488,64489],1610:[65265,65266,65267,65268],1611:[65136,0,0,65137],1612:[65138,0,0,0],1613:[65140,0,0,0],1614:[65142,0,0,65143],1615:[65144,0,0,65145],1616:[65146,0,0,65147],1617:[65148,0,0,65149],1618:[65150,0,0,65151],1649:[64336,64337,0,0],1655:[64477,0,0,0],1657:[64358,64359,64360,64361],1658:[64350,64351,64352,64353],1659:[64338,64339,64340,64341],1662:[64342,64343,64344,64345],1663:[64354,64355,64356,64357],1664:[64346,64347,64348,64349],1667:[64374,64375,64376,64377],1668:[64370,64371,64372,64373],1670:[64378,64379,64380,64381],1671:[64382,64383,64384,64385],1672:[64392,64393,0,0],1676:[64388,64389,0,0],1677:[64386,64387,0,0],1678:[64390,64391,0,0],1681:[64396,64397,0,0],1688:[64394,64395,0,0],1700:[64362,64363,64364,64365],1702:[64366,64367,64368,64369],1705:[64398,64399,64400,64401],1709:[64467,64468,64469,64470],1711:[64402,64403,64404,64405],1713:[64410,64411,64412,64413],1715:[64406,64407,64408,64409],1722:[64414,64415,0,0],1723:[64416,64417,64418,64419],1726:[64426,64427,64428,64429],1728:[64420,64421,0,0],1729:[64422,64423,64424,64425],1733:[64480,64481,0,0],1734:[64473,64474,0,0],1735:[64471,64472,0,0],1736:[64475,64476,0,0],1737:[64482,64483,0,0],1739:[64478,64479,0,0],1740:[64508,64509,64510,64511],1744:[64484,64485,64486,64487],1746:[64430,64431,0,0],1747:[64432,64433,0,0]},dv={\\u0644\\u0622:[65269,65270],\\u0644\\u0623:[65271,65272],\\u0644\\u0625:[65273,65274],\\u0644\\u0627:[65275,65276]},Bc=1604,yv=/[\\u0600-\\u06ff\\u0750-\\u077f\\u0870-\\u089f\\u08a0-\\u08ff\\ufb50-\\ufdff\\ufe70-\\ufeff]/;function mv(t,e,r){let i=0;for(let n of t.split(";")){let[a,s]=n.split(",").map(l=>parseInt(l,36)),o=i+a;for(let l=o;l{let r=e.codePointAt(0);return{codePoint:r,type:gv(r),form:null}})}function Dv(t){let e=t.filter(r=>r.type!=="T");for(let r=0;r0&&xv(e[r-1].type),a=r+1String.fromCodePoint(Sv(r))).join("")}function Fv(t,e,r){var n;let i=e.layout.get("text-transform").evaluate(r,{});return i==="uppercase"?t=t.toLocaleUpperCase():i==="lowercase"&&(t=t.toLocaleLowerCase()),((n=Ar.applyArabicShaping)!=null?n:Ev)(t)}function Tv(t,e,r){for(let i of t.sections)i.text=Fv(i.text,e,r);return t}function Ws(t,e,r){let i=r?e.last.points:e.first.points,n=r?i[i.length-1]:i[0];return`${t}:${n.x}:${n.y}`}function kv(t){let e=t.first.points,r=e.length;for(let a=t.first.next;a;a=a.next)r+=a.points.length-1;let i=Array(r);for(let a=0;a=0&&cv(e[i],r)?e[i]+=r:e.push(r)}return e}function Cv(t){let e=new Set;if(ey){Oi!=null||(Oi=new Intl.Segmenter(void 0,{granularity:"word"}));for(let{index:i}of Oi.segment(t))e.add(i);return e}let r=0;for(let i of t.split(new RegExp("\\\\b|(?=\\\\p{Ideo})","u")))e.add(r),r+=i.length;return e}function ry(t){let e=t.codePointAt(0);return t.length>(e>65535?2:1)}function au(t){return/\\s/u.test(String.fromCodePoint(t))}function nl(t){for(let e of t)if(ts(e.codePointAt(0)))return!0;return!1}function Mv(t){for(let e of t)if(!Bv(e.codePointAt(0)))return!1;return!0}function Bv(t){return!sv(t)}function Lc(t){return!(ts(t)||uv(t))}function iy(t){return new RegExp("\\\\p{sc=Arab}","u").test(String.fromCodePoint(t))}function ny(t){return ov(t)}function ay(t){for(let e of t)if(ny(e.codePointAt(0)))return!0;return!1}var Gr={"!":"\\uFE15","#":"\\uFF03",$:"\\uFF04","%":"\\uFF05","&":"\\uFF06","(":"\\uFE35",")":"\\uFE36","*":"\\uFF0A","+":"\\uFF0B",",":"\\uFE10","-":"\\uFE32",".":"\\u30FB","/":"\\uFF0F",":":"\\uFE13",";":"\\uFE14","<":"\\uFE3F","=":"\\uFF1D",">":"\\uFE40","?":"\\uFE16","@":"\\uFF20","[":"\\uFE47","\\\\":"\\uFF3C","]":"\\uFE48","^":"\\uFF3E",_:"\\uFE33","`":"\\uFF40","{":"\\uFE37","|":"\\u2015","}":"\\uFE38","~":"\\uFF5E","\\xA2":"\\uFFE0","\\xA3":"\\uFFE1","\\xA5":"\\uFFE5","\\xA6":"\\uFFE4","\\xAC":"\\uFFE2","\\xAF":"\\uFFE3","\\u2013":"\\uFE32","\\u2014":"\\uFE31","\\u2018":"\\uFE43","\\u2019":"\\uFE44","\\u201C":"\\uFE41","\\u201D":"\\uFE42","\\u2026":"\\uFE19","\\u22EF":"\\uFE19","\\u2027":"\\u30FB","\\u20A9":"\\uFFE6","\\u3001":"\\uFE11","\\u3002":"\\uFE12","\\u3008":"\\uFE3F","\\u3009":"\\uFE40","\\u300A":"\\uFE3D","\\u300B":"\\uFE3E","\\u300C":"\\uFE41","\\u300D":"\\uFE42","\\u300E":"\\uFE43","\\u300F":"\\uFE44","\\u3010":"\\uFE3B","\\u3011":"\\uFE3C","\\u3014":"\\uFE39","\\u3015":"\\uFE3A","\\u3016":"\\uFE17","\\u3017":"\\uFE18","\\uFF01":"\\uFE15","\\uFF08":"\\uFE35","\\uFF09":"\\uFE36","\\uFF0C":"\\uFE10","\\uFF0D":"\\uFE32","\\uFF0E":"\\u30FB","\\uFF1A":"\\uFE13","\\uFF1B":"\\uFE14","\\uFF1C":"\\uFE3F","\\uFF1E":"\\uFE40","\\uFF1F":"\\uFE16","\\uFF3B":"\\uFE47","\\uFF3D":"\\uFE48","\\uFF3F":"\\uFE33","\\uFF5B":"\\uFE37","\\uFF5C":"\\u2015","\\uFF5D":"\\uFE38","\\uFF5F":"\\uFE35","\\uFF60":"\\uFE36","\\uFF61":"\\uFE12","\\uFF62":"\\uFE41","\\uFF63":"\\uFE42"};function Pv(t){let e="",r={premature:!0,value:void 0},i=t[Symbol.iterator](),n=i.next(),a=t[Symbol.iterator]();a.next();let s=a.next();for(;!n.done;)(s.done||!Lc(s.value.codePointAt(0))||Gr[s.value])&&(r.premature||!Lc(r.value.codePointAt(0))||Gr[r.value])&&Gr[n.value]?e+=Gr[n.value]:e+=n.value,r={value:n.value,premature:!1},n=i.next(),s=a.next();return e}var zv={10:!0,13:!0,32:!0,38:!0,41:!0,43:!0,45:!0,47:!0,173:!0,183:!0,8203:!0,8208:!0,8211:!0,8231:!0},Lv={40:!0};function Vc(t,e,r,i,n,a){var s;if("fontStack"in e){let o=(s=r[e.fontStack])==null?void 0:s.default,l=o==null?void 0:o[t];if(l)return l.metrics.advance*e.scale+n;let u=0;for(let h of t){let c=o==null?void 0:o[h];c&&(u+=c.metrics.advance*e.scale+n)}return u}{let o=i[e.imageName];return o?o.displaySize[0]*e.scale*24/a+n:0}}function Oc(t,e,r,i){let n=(t-e)**2;return i?tr&&Rc(e[i-1]);)i--;this.text=e.slice(r,i).join(""),this.sectionIndex=this.sectionIndex.slice(r,i),this._graphemes=null}substring(e,r){let i=this.graphemes().slice(e,r).join(""),n=this.sectionIndex.slice(e,r);return new al(i,this.sections,n)}toCodeUnitIndex(e){return this.graphemes().slice(0,e).join("").length}toString(){return this.text}getMaxScale(){return this.sectionIndex.reduce((e,r)=>Math.max(e,this.sections[r].scale),0)}getMaxImageSize(e){let r=0,i=0;for(let n=0;n0?i[i.length-1]:"",a=il(n+e);this.text+=e,this._graphemes=i.slice(0,n?-1:void 0).concat(a);let s=a.length-+!!n;for(let o=0;o=63743?null:++this.imageSectionID:(this.imageSectionID=57344,this.imageSectionID)}determineLineBreaks(e,r,i,n,a){let s=[],o=this.determineAverageLineWidth(e,r,i,n,a),l=this.hasZeroWidthSpaces(),u=this.graphemes(),h=null,c=0,p=0;for(let f=0;f0){let y=u[f-1].codePointAt(0),m=d.codePointAt(0),g=lv(y),x=Mc(y)&&Mc(m);(zv[y]||g||"imageName"in this.getSection(f-1)||u[f+1]!==void 0&&Lv[m]||x&&(h!=null?h:h=Cv(this.text)).has(p))&&s.push($c(f,c,o,s,Vv(y,m,g&&l),!1))}au(d.codePointAt(0))||(c+=Vc(d,this.getSection(f),i,n,e,a)),p+=d.length}return sy($c(this.length(),c,o,s,0,!0))}determineAverageLineWidth(e,r,i,n,a){let s=0,o=0;for(let u of this.graphemes()){let h=this.getSection(o);s+=Vc(u,h,i,n,e,a),o++}let l=Math.max(1,Math.ceil(s/r));return s/l}};function Ov(){return(function(t){var e={R:"13k,1a,2,3,3,2+1j,ch+16,a+1,5+2,2+n,5,a,4,6+16,4+3,h+1b,4mo,179q,2+9,2+11,2i9+7y,2+68,4,3+4,5+13,4+3,2+4k,3+29,8+cf,1t+7z,w+17,3+3m,1t+3z,16o1+5r,8+30,8+mc,29+1r,29+4v,75+73",EN:"1c+9,3d+1,6,187+9,513,4+5,7+9,sf+j,175h+9,qw+q,161f+1d,4xt+a,25i+9",ES:"17,2,6dp+1,f+1,av,16vr,mx+1,4o,2",ET:"z+2,3h+3,b+1,ym,3e+1,2o,p4+1,8,6u,7c,g6,1wc,1n9+4,30+1b,2n,6d,qhx+1,h0m,a+1,49+2,63+1,4+1,6bb+3,12jj",AN:"16o+5,2j+9,2+1,35,ed,1ff2+9,87+u",CS:"18,2+1,b,2u,12k,55v,l,17v0,2,3,53,2+1,b",B:"a,3,f+2,2v,690",S:"9,2,k",WS:"c,k,4f4,1vk+a,u,1j,335",ON:"x+1,4+4,h+5,r+5,r+3,z,5+3,2+1,2+1,5,2+2,3+4,o,w,ci+1,8+d,3+d,6+8,2+g,39+1,9,6+1,2,33,b8,3+1,3c+1,7+1,5r,b,7h+3,sa+5,2,3i+6,jg+3,ur+9,2v,ij+1,9g+9,7+a,8m,4+1,49+x,14u,2+2,c+2,e+2,e+2,e+1,i+n,e+e,2+p,u+2,e+2,36+1,2+3,2+1,b,2+2,6+5,2,2,2,h+1,5+4,6+3,3+f,16+2,5+3l,3+81,1y+p,2+40,q+a,m+13,2r+ch,2+9e,75+hf,3+v,2+2w,6e+5,f+6,75+2a,1a+p,2+2g,d+5x,r+b,6+3,4+o,g,6+1,6+2,2k+1,4,2j,5h+z,1m+1,1e+f,t+2,1f+e,d+3,4o+3,2s+1,w,535+1r,h3l+1i,93+2,2s,b+1,3l+x,2v,4g+3,21+3,kz+1,g5v+1,5a,j+9,n+v,2,3,2+8,2+1,3+2,2,3,46+1,4+4,h+5,r+5,r+a,3h+2,4+6,b+4,78,1r+24,4+c,4,1hb,ey+6,103+j,16j+c,1ux+7,5+g,fsh,jdq+1t,4,57+2e,p1,1m,1m,1m,1m,4kt+1,7j+17,5+2r,d+e,3+e,2+e,2+10,m+4,w,1n+5,1q,4z+5,4b+rb,9+c,4+c,4+37,d+2g,8+b,l+b,5+1j,9+9,7+13,9+t,3+1,27+3c,2+29,2+3q,d+d,3+4,4+2,6+6,a+o,8+6,a+2,e+6,16+42,2+1i",BN:"0+8,6+d,2s+5,2+p,e,4m9,1kt+2,2b+5,5+5,17q9+v,7k,6p+8,6+1,119d+3,440+7,96s+1,1ekf+1,1ekf+1,1ekf+1,1ekf+1,1ekf+1,1ekf+1,1ekf+1,1ekf+1,1ekf+1,1ekf+1,1ekf+1,1ekf+75,6p+2rz,1ben+1,1ekf+1,1ekf+1",NSM:"lc+33,7o+6,7c+18,2,2+1,2+1,2,21+a,1d+k,h,2u+6,3+5,3+1,2+3,10,v+q,2k+a,1n+8,a,p+3,2+8,2+2,2+4,18+2,3c+e,2+v,1k,2,5+7,5,4+6,b+1,u,1n,5+3,9,l+1,r,3+1,1m,5+1,5+1,3+2,4,v+1,4,c+1,1m,5+4,2+1,5,l+1,n+5,2,1n,3,2+3,9,8+1,c+1,v,1q,d,1f,4,1m+2,6+2,2+3,8+1,c+1,u,1n,g+1,l+1,t+1,1m+1,5+3,9,l+1,u,21,8+2,2,2j,3+6,d+7,2r,3+8,c+5,23+1,s,2,2,1k+d,2+4,2+1,6+a,2+z,a,2v+3,2+5,2+1,3+1,q+1,5+2,h+3,e,3+1,7,g,jk+2,qb+2,u+2,u+1,v+1,1t+1,2+6,9,3+a,a,1a+2,3c+1,z,3b+2,5+1,a,7+2,64+1,3,1n,2+6,2,2,3+7,7+9,3,1d+g,1s+3,1d,2+4,2,6,15+8,d+1,x+3,3+1,2+2,1l,2+1,4,2+2,1n+7,3+1,49+2,2+c,2+6,5,7,4+1,5j+1l,2+4,k1+w,2db+2,3y,2p+v,ff+3,30+1,n9x+3,2+9,x+1,29+1,7l,4,5,q+1,6,48+1,r+h,e,13+7,q+a,1b+2,1d,3+3,3+1,14,1w+5,3+1,3+1,d,9,1c,1g,2+2,3+1,6+1,2,17+1,9,6n,3,5,fn5,ki+f,h+f,r2,6b,46+4,1af+2,2+1,6+3,15+2,5,4m+1,fy+3,as+1,4a+a,4x,1j+e,1l+2,1e+3,3+1,1y+2,11+4,2+7,1r,d+1,1h+8,b+3,3,2o+2,3,2+1,7,4h,4+7,m+1,1m+1,4,12+6,4+4,5g+7,3+2,2,o,2d+5,2,5+1,2+1,6n+3,7+1,2+1,s+1,2e+7,3,2+1,2z,2,3+5,2,2u+2,3+3,2+4,78+8,2+1,75+1,2,5,41+3,3+1,5,x+5,3+1,15+5,3+3,9,a+5,3+2,1b+c,2+1,bb+6,2+5,2d+l,3+6,2+1,2+1,3f+5,4,2+1,2+6,2,21+1,4,2,9o+1,f0c+4,1o+6,t5,1s+3,2a,f5l+1,43t+2,i+7,3+6,v+3,45+2,1j0+1i,5+1d,9,f,n+4,2+e,11t+6,2+g,3+6,2+1,2+4,7a+6,c6+3,15t+6,32+6,gzhy+6n",AL:"16w,3,2,e+1b,z+2,2+2s,g+1,8+1,b+m,2+t,s+2i,c+e,4h+f,1d+1e,1bwe+dp,3+3z,x+c,2+1,35+3y,2rm+z,5+7,b+5,dt+l,c+u,17nl+27,1t+27,4x+6n,3+d",LRO:"6ct",RLO:"6cu",LRE:"6cq",RLE:"6cr",PDF:"6cs",LRI:"6ee",RLI:"6ef",FSI:"6eg",PDI:"6eh"},r={},i={};r.L=1,i[1]="L",Object.keys(e).forEach(function(N,at){r[N]=1<1,1e>2,u>2,2wt>1,1>1,1ge>1,1wp>1,1j>1,f>1,hm>1,1>1,u>1,u6>1,1>1,+5,28>1,w>1,1>1,+3,b8>1,1>1,+3,1>3,-1>-1,3>1,1>1,+2,1s>1,1>1,x>1,th>1,1>1,+2,db>1,1>1,+3,3>1,1>1,+2,14qm>1,1>1,+1,4q>1,1e>2,u>2,2>1,+1",canonical:"6f1>-6dx,6dy>-6dx,6ec>-6ed,6ee>-6ed,6ww>2jj,-2ji>2jj,14r4>-1e7l,1e7m>-1e7l,1e7m>-1e5c,1e5d>-1e5b,1e5c>-14qx,14qy>-14qx,14vn>-1ecg,1ech>-1ecg,1edu>-1ecg,1eci>-1ecg,1eda>-1ecg,1eci>-1ecg,1eci>-168q,168r>-168q,168s>-14ye,14yf>-14ye"};function d(N,at){var Y=0,k=new Map,ot=at&&new Map,X;return N.split(",").forEach(function K(j){if(j.indexOf("+")!==-1)for(var Nt=+j;Nt--;)K(X);else{X=j;var bt=j.split(">"),nt=bt[0],kt=bt[1];nt=String.fromCodePoint(Y+=parseInt(nt,36)),kt=String.fromCodePoint(Y+=parseInt(kt,36)),k.set(nt,kt),at&&ot.set(kt,nt)}}),{map:k,reverseMap:ot}}var y,m,g;function x(){if(!y){var N=d(f.pairs,!0),at=N.map,Y=N.reverseMap;y=at,m=Y,g=d(f.canonical,!1).map}}function v(N){return x(),y.get(N)||null}function b(N){return x(),m.get(N)||null}function w(N){return x(),g.get(N)||null}var _=r.L,A=r.R,S=r.EN,T=r.ES,L=r.ET,O=r.AN,B=r.CS,V=r.B,F=r.S,$=r.ON,G=r.BN,P=r.NSM,z=r.AL,it=r.LRO,dt=r.RLO,ct=r.LRE,pt=r.RLE,Kt=r.PDF,jt=r.LRI,Jt=r.RLI,Oe=r.FSI,Gt=r.PDI;function Re(N,at){for(var Y=125,k=new Uint32Array(N.length),ot=0;ot0)Ie--;else if(is>0){for(qe=0;!lt[lt.length-1]._isolate;)lt.pop();var ns=lt[lt.length-1]._isolInitIndex;ns!=null&&(Nt.set(ns,zt),Nt.set(zt,ns)),lt.pop(),is--}wt=lt[lt.length-1],j[zt]=wt._level,wt._override&&K(zt,wt._override)}else Lt&Kt?(Ie===0&&(qe>0?qe--:!wt._isolate&<.length>1&&(lt.pop(),wt=lt[lt.length-1])),j[zt]=wt._level):Lt&V&&(j[zt]=nt.level);else j[zt]=wt._level,wt._override&&Lt!==G&&K(zt,wt._override)}for(var Cr=[],me=null,ur=nt.start;ur<=nt.end;ur++){var as=k[ur];if(!(as&o)){var Vu=j[ur],Ou=as&n,m1=as===Gt;me&&Vu===me._level?(me._end=ur,me._endsWithIsolInit=Ou):Cr.push(me={_start:ur,_end:ur,_level:Vu,_startsWithPDI:m1,_endsWithIsolInit:Ou})}}for(var ss=[],In=0;In=0;Bn--)if(!(k[Bn]&o)){Nu=j[Bn];break}var hs=Mr[Mr.length-1],x1=j[hs],Uu=nt.level;if(!(k[hs]&n)){for(var Pn=hs+1;Pn<=nt.end;Pn++)if(!(k[Pn]&o)){Uu=j[Pn];break}}ss.push({_seqIndices:Mr,_sosType:Math.max(Nu,g1)%2?A:_,_eosType:Math.max(Uu,x1)%2?A:_})}}for(var cs=0;cs=0;Ln--)if(!(k[q[Ln]]&o)){fs=k[q[Ln]];break}K(qu,fs&(n|Gt)?$:fs)}}if(X.get(S))for(var Vn=0;Vn=-1;On--){var Gu=On===-1?yi:k[q[On]];if(Gu&a){Gu===z&&K(ju,O);break}}}if(X.get(z))for(var ds=0;ds=0&&(Pr=k[q[gs]],Pr&o);gs--);for(var xs=mi+1;xs=0&&k[q[Rn]]&(L|o);Rn--)K(q[Rn],S);for(ge++;ge=0&&k[q[$n]]&o;$n--)K(q[$n],$);for(var Nn=gi+1;Nn=0;bi--){var ws=zr[bi].char;if(ws===Ku||ws===b(w(vi))||v(w(ws))===vi){Un.push([zr[bi].seqIndex,Lr]),zr.length=bi;break}}}Un.sort(function(Wt,he){return Wt[0]-he[0]});for(var Ds=0;Ds=0;Ss--){var rh=q[Ss];if(k[rh]&Hu){var ih=k[rh]&xi?A:_;xe=ih===Br?Br:ih;break}}}if(xe){if(k[q[qn]]=k[q[_s]]=xe,xe!==Br){for(var wi=qn+1;wi=0;_i--)if(k[q[_i]]&o)nh=_i;else{Fs=k[q[_i]]&xi?A:_;break}for(var ah=v1,Ai=je+1;Ai=0&&c(N[Gn])&l;Gn--)j[Gn]=nt.level}}return{levels:j,paragraphs:bt};function sh(Wt,he){for(var Zt=Wt;Zt=j&&c(N[nt])&l;nt--)bt[nt]=K.level;for(var kt=K.level,di=1/0,lr=0;lrkt&&(kt=Ne),Ne=di;Ue--)for(var lt=0;lt=Ue){for(var wt=lt;lt+1=Ue;)lt++;lt>wt&&X.push([wt+j,lt+j])}}}),X}function or(N,at,Y,k){var ot=Ir(N,at,Y,k),X=[].concat(N);return ot.forEach(function(K,j){X[j]=(at.levels[K]&1?Te(N[K]):null)||N[K]}),X.join("")}function Ir(N,at,Y,k){for(var ot=ke(N,at,Y,k),X=[],K=0;K=0;i--){let n=ou.getBidiCharTypeName(t[i].text[0]);Nv.has(n)?(t[i].level=e,r=!0):r&&$v.has(n)?t[i].level=e:r=!1}}function jv(t,e){let r=e,i=1/0;for(let{level:a}of t)a>r&&(r=a),(a|1)=i;a--)for(let s=0;s=a;)o++;for(let l=s,u=o;le>=n.start&&e<=n.end))==null?void 0:r.level)!=null?i:0}function Yv(t,e,r,i,n){let a=Uv(t,e,i,n);qv(a,r);let s="",o=[];for(let l of jv(a,r)){if(Rv.test(l.text))continue;let u=Gv(l);s+=u,o.push(...Array(u.length).fill(l.index))}return{text:s,sourceIndices:o}}function Wv(t,e){let r=e.filter(a=>a>0&&aa-s),n=[];for(let a=0;a+1n.start))).map(([n,a])=>Yv(t,r,Xv(i,n),n,a))}function Zv(t,e){return oy(t,e).map(r=>r.text)}function Hv(t,e,r){return oy(t,r).map(i=>[i.text,i.sourceIndices.map(n=>{var a;return(a=e[n])!=null?a:0})])}var sl=4294967296,Nc=1/sl,Uc=typeof TextDecoder>"u"?null:new TextDecoder("utf-8"),lu=class{constructor(t){this.buf=ArrayBuffer.isView(t)?t:new Uint8Array(t),this.dataView=new DataView(this.buf.buffer,this.buf.byteOffset,this.buf.byteLength),this.pos=0,this.type=0,this._valueStart=-1,this.length=this.buf.length}readFields(t,e,r=this.length){let i;for(;i=this.nextField(r);)t(i,e,this);return e}readMessage(t,e){return this.readFields(t,e,this.readVarint()+this.pos)}readFixed32(){let t=this.dataView.getUint32(this.pos,!0);return this.pos+=4,t}readSFixed32(){let t=this.dataView.getInt32(this.pos,!0);return this.pos+=4,t}readFixed64(){let t=this.dataView.getUint32(this.pos,!0)+this.dataView.getUint32(this.pos+4,!0)*sl;return this.pos+=8,t}readSFixed64(){let t=this.dataView.getUint32(this.pos,!0)+this.dataView.getInt32(this.pos+4,!0)*sl;return this.pos+=8,t}readFloat(){let t=this.dataView.getFloat32(this.pos,!0);return this.pos+=4,t}readDouble(){let t=this.dataView.getFloat64(this.pos,!0);return this.pos+=8,t}readVarint(t){let e=this.buf,r=e[this.pos++];if(r<128)return r;let i=r&127,n;return n=e[this.pos++],i|=(n&127)<<7,n<128||(n=e[this.pos++],i|=(n&127)<<14,n<128)||(n=e[this.pos++],i|=(n&127)<<21,n<128)?i:(n=e[this.pos],i|=(n&15)<<28,Jv(i,t,this))}readSVarint(){let t=this.readVarint();return t%2==1?(t+1)/-2:t/2}readBoolean(){return!!this.readVarint()}readString(){let t=this.readVarint()+this.pos,e=this.pos;return this.pos=t,t-e>=12&&Uc?Uc.decode(this.buf.subarray(e,t)):pb(this.buf,e,t)}readBytes(){let t=this.readVarint()+this.pos,e=this.buf.subarray(this.pos,t);return this.pos=t,e}readPackedVarint(t=[],e){let r=this.readPackedEnd();for(;this.pos=t)return 0;let e=this.readVarint();return this.type=e&7,this._valueStart=this.pos,e>>>3}skip(t){let e=t&7;if(e===0)for(;this.buf[this.pos++]>127;);else if(e===2)this.pos=this.readVarint()+this.pos;else if(e===5)this.pos+=4;else if(e===1)this.pos+=8;else throw Error(`Unimplemented type: ${e}`)}},Kv=class{constructor(t=new Uint8Array(16)){this.buf=ArrayBuffer.isView(t)?t:new Uint8Array(t),this.dataView=new DataView(this.buf.buffer,this.buf.byteOffset,this.buf.byteLength),this.pos=0,this.length=this.buf.length}writeTag(t,e){this.writeVarint(t<<3|e)}realloc(t){let e=this.length||16;for(;e=0&&t<128){this.pos>=this.length&&this.realloc(1),this.buf[this.pos++]=t;return}if(t>268435455||t<0){tb(t,this);return}this.realloc(4),this.buf[this.pos++]=t&127|(t>127?128:0),!(t<=127)&&(this.buf[this.pos++]=(t>>>=7)&127|(t>127?128:0),!(t<=127)&&(this.buf[this.pos++]=(t>>>=7)&127|(t>127?128:0),!(t<=127)&&(this.buf[this.pos++]=t>>>7&127)))}writeSVarint(t){this.writeVarint(t<0?-t*2-1:t*2)}writeBoolean(t){this.writeVarint(+t)}writeString(t){t=String(t),this.realloc(t.length*4),this.pos++;let e=this.pos;this.pos=fb(this.buf,t,this.pos);let r=this.pos-e;r>=128&&qc(e,r,this),this.pos=e-1,this.writeVarint(r),this.pos+=r}writeFloat(t){this.realloc(4),this.dataView.setFloat32(this.pos,t,!0),this.pos+=4}writeDouble(t){this.realloc(8),this.dataView.setFloat64(this.pos,t,!0),this.pos+=8}writeBytes(t){let e=t.length;this.writeVarint(e),this.realloc(e),this.buf.set(t,this.pos),this.pos+=e}writeRawMessage(t,e){this.pos++;let r=this.pos;t(e,this);let i=this.pos-r;i>=128&&qc(r,i,this),this.pos=r-1,this.writeVarint(i),this.pos+=i}writeMessage(t,e,r){this.writeTag(t,2),this.writeRawMessage(e,r)}writePackedVarint(t,e){e.length&&this.writeMessage(t,ib,e)}writePackedSVarint(t,e){e.length&&this.writeMessage(t,nb,e)}writePackedBoolean(t,e){e.length&&this.writeMessage(t,ob,e)}writePackedFloat(t,e){e.length&&this.writeMessage(t,ab,e)}writePackedDouble(t,e){e.length&&this.writeMessage(t,sb,e)}writePackedFixed32(t,e){e.length&&this.writeMessage(t,lb,e)}writePackedSFixed32(t,e){e.length&&this.writeMessage(t,ub,e)}writePackedFixed64(t,e){e.length&&this.writeMessage(t,hb,e)}writePackedSFixed64(t,e){e.length&&this.writeMessage(t,cb,e)}writeBytesField(t,e){this.writeTag(t,2),this.writeBytes(e)}writeFixed32Field(t,e){this.writeTag(t,5),this.writeFixed32(e)}writeSFixed32Field(t,e){this.writeTag(t,5),this.writeSFixed32(e)}writeFixed64Field(t,e){this.writeTag(t,1),this.writeFixed64(e)}writeSFixed64Field(t,e){this.writeTag(t,1),this.writeSFixed64(e)}writeVarintField(t,e){this.writeTag(t,0),this.writeVarint(e)}writeSVarintField(t,e){this.writeTag(t,0),this.writeSVarint(e)}writeStringField(t,e){this.writeTag(t,2),this.writeString(e)}writeFloatField(t,e){this.writeTag(t,5),this.writeFloat(e)}writeDoubleField(t,e){this.writeTag(t,1),this.writeDouble(e)}writeBooleanField(t,e){this.writeVarintField(t,+e)}};function Jv(t,e,r){let i=r.buf,n,a;if(a=i[r.pos++],n=(a&112)>>4,a<128||(a=i[r.pos++],n|=(a&127)<<3,a<128)||(a=i[r.pos++],n|=(a&127)<<10,a<128)||(a=i[r.pos++],n|=(a&127)<<17,a<128)||(a=i[r.pos++],n|=(a&127)<<24,a<128)||(a=i[r.pos++],n|=(a&1)<<31,a<128))return Qv(t,n,e);throw Error("Expected varint not more than 10 bytes")}function Qv(t,e,r){return r?e*4294967296+(t>>>0):(e>>>0)*4294967296+(t>>>0)}function tb(t,e){let r,i;if(t>=0?(r=t%4294967296|0,i=t/4294967296|0):(r=~(-t%4294967296),i=~(-t/4294967296),r^4294967295?r=r+1|0:(r=0,i=i+1|0)),t>=18446744073709552e3||t<-18446744073709552e3)throw Error("Given varint doesn\'t fit into 10 bytes");e.realloc(10),eb(r,i,e),rb(i,e)}function eb(t,e,r){r.buf[r.pos++]=t&127|128,t>>>=7,r.buf[r.pos++]=t&127|128,t>>>=7,r.buf[r.pos++]=t&127|128,t>>>=7,r.buf[r.pos++]=t&127|128,t>>>=7,r.buf[r.pos]=t&127}function rb(t,e){let r=(t&7)<<4;e.buf[e.pos++]|=r|((t>>>=3)?128:0),t&&(e.buf[e.pos++]=t&127|((t>>>=7)?128:0),t&&(e.buf[e.pos++]=t&127|((t>>>=7)?128:0),t&&(e.buf[e.pos++]=t&127|((t>>>=7)?128:0),t&&(e.buf[e.pos++]=t&127|((t>>>=7)?128:0),t&&(e.buf[e.pos++]=t&127)))))}function qc(t,e,r){let i=e<=16383?1:e<=2097151?2:e<=268435455?3:Math.floor(Math.log(e)/(Math.LN2*7));r.realloc(i),r.buf.copyWithin(t+i,t,r.pos)}function ib(t,e){let r=t.length,i=e.buf,n=e.pos,a=e.length;for(let s=0;sa){e.pos=n,e.writeVarint(o),i=e.buf,n=e.pos,a=e.length;continue}for(;o>127;)i[n++]=o%128|128,o=Math.floor(o/128);i[n++]=o}e.pos=n}function nb(t,e){for(let r=0;r239?4:a>223?3:a>191?2:1;if(n+o>r)break;let l,u,h;o===1?a<128&&(s=a):o===2?(l=t[n+1],(l&192)==128&&(s=(a&31)<<6|l&63,s<=127&&(s=null))):o===3?(l=t[n+1],u=t[n+2],(l&192)==128&&(u&192)==128&&(s=(a&15)<<12|(l&63)<<6|u&63,(s<=2047||s>=55296&&s<=57343)&&(s=null))):o===4&&(l=t[n+1],u=t[n+2],h=t[n+3],(l&192)==128&&(u&192)==128&&(h&192)==128&&(s=(a&15)<<18|(l&63)<<12|(u&63)<<6|h&63,(s<=65535||s>=1114112)&&(s=null))),s===null?(s=65533,o=1):s>65535&&(s-=65536,i+=String.fromCharCode(s>>>10&1023|55296),s=56320|s&1023),i+=String.fromCharCode(s),n+=o}return i}function fb(t,e,r){for(let i=0,n,a;i55295&&n<57344)if(a){if(n<56320){t[r++]=239,t[r++]=191,t[r++]=189,a=n;continue}n=a-55296<<10|n-56320|65536,a=null}else{n>56319||i+1===e.length?(t[r++]=239,t[r++]=191,t[r++]=189):a=n;continue}else a&&(a=(t[r++]=239,t[r++]=191,t[r++]=189,null));n<128?t[r++]=n:(n<2048?t[r++]=n>>6|192:(n<65536?t[r++]=n>>12|224:(t[r++]=n>>18|240,t[r++]=n>>12&63|128),t[r++]=n>>6&63|128),t[r++]=n&63|128)}return r}function db(t){return typeof(t==null?void 0:t.renderWithWebGL)=="function"}function uu(t){let e=0,r=0;for(let s of t)e+=s.w*s.h,r=Math.max(r,s.w);t.sort((s,o)=>o.h-s.h);let i=[{x:0,y:0,w:Math.max(Math.ceil(Math.sqrt(e/.95)),r),h:1/0}],n=0,a=0;for(let s of t)for(let o=i.length-1;o>=0;o--){let l=i[o];if(!(s.w>l.w||s.h>l.h)){if(s.x=l.x,s.y=l.y,a=Math.max(a,s.y+s.h),n=Math.max(n,s.x+s.w),s.w===l.w&&s.h===l.h){let u=i.pop();u&&o=r;a--)e.push(a);r=i+1}else{for(let a=r;at.toCodeUnitIndex(a)),i=Ar.isParsed()?Ar:null;if(t.sections.length===1)return i?i.processBidirectionalText(t.toString(),r).map(a=>Gc(a,t.sections,[...a].map(()=>0))):Zv(t.toString(),r).map(a=>ol([...a],t.sections,[...a].map(()=>0)));let n=xb(t);return i?i.processStyledBidirectionalText(t.text,n,r).map(([a,s])=>Gc(a,t.sections,s)):Hv(t.text,n,r).map(([a,s])=>{let o=[...a];return ol(o,t.sections,hy(o).map(l=>{var u;return(u=s[l])!=null?u:0}))})}function ol(t,e,r){var a;let i=new su(t.join(""),e,[]),n=0;for(let s of i.graphemes())i.sectionIndex.push((a=r[n])!=null?a:0),n+=[...s].length;return i}function hy(t){let e=[],r=0;for(let i of t)e.push(r),r+=i.length;return e}function Gc(t,e,r){let i=[...t],n=hy(i),a=gb(i);return ol(a.map(s=>i[s]),e,a.map(s=>{var o;return(o=r[n[s]])!=null?o:0}))}function na(t,e,r,i,n,a,s,o,l,u,h,c,p,f,d){let y=su.fromFeature(t,n);c===2&&y.verticalizePunctuation();let m=y.determineLineBreaks(u,a,e,i,f),g=ay(y.text)?vb(y,m):mb(y,m),x=[],v={positionedLines:x,text:y.toString(),top:h[1],bottom:h[1],left:h[0],right:h[0],writingMode:c,iconsInText:!1,verticalizable:!1};return Tb(v,e,r,i,g,s,o,l,c,u,p,d),!yb(x)&&v}function cy(t){let e=.5,r=.5;switch(t){case"right":case"top-right":case"bottom-right":e=1;break;case"left":case"top-left":case"bottom-left":e=0}switch(t){case"bottom":case"bottom-right":case"bottom-left":r=1;break;case"top":case"top-right":case"top-left":r=0}return{horizontalAlign:e,verticalAlign:r}}function bb(t,e,r){let i=e.getMaxScale()*24,{maxImageWidth:n,maxImageHeight:a}=e.getMaxImageSize(t),s=Math.max(i,a*r);return{verticalLineContentWidth:Math.max(i,n*r),horizontalLineContentHeight:s}}function py(t){switch(t){case"top":return 0;case"center":return .5;default:return 1}}function wb(t,e,r,i){var a,s;if(t!=null&&t.rect)return t;let n=(s=(a=e[r.fontStack])==null?void 0:a.default)==null?void 0:s[i];return n?{rect:null,metrics:n.metrics}:null}function Db(t,e,r){return!(t===1||!e&&!ts(r)||e&&(au(r)||iy(r)))}function ma(t){return new RegExp("\\\\p{Nd}","u").test(String.fromCodePoint(t))}function fy(t){return new RegExp("\\\\p{Lu}","u").test(String.fromCodePoint(t))}function _b(t){return/[\\p{P}\\p{S}]/u.test(String.fromCodePoint(t))}function Ab(t){let e=t.some(ma)&&t.every(i=>ma(i)||_b(i)),r=t.length<=3&&t.every(i=>fy(i)||ma(i));return e||r}function Sb(t){return(ma(t)||fy(t))&&!iy(t)}function Eb(t,e){let r=!1;for(let i=0;ia.codePointAt(0)),i=r.map(ts),n=a=>!i[a]&&!au(r[a])&&!("imageName"in t.getSection(a));for(let a=0;au){let p=Math.ceil(i/u);r*=p/n,n=p}return{x1:e,y1:r,x2:e+i,y2:r+n}}function Xc(t,e,r,i,n,a){let s=t.image,o;if(s.content){let m=s.content,g=s.pixelRatio||1;o=[m[0]/g,m[1]/g,s.displaySize[0]-m[2]/g,s.displaySize[1]-m[3]/g]}let l=e.left*a,u=e.right*a,h,c,p,f;r==="width"||r==="both"?(f=n[0]+l-i[3],c=n[0]+u+i[1]):(f=n[0]+(l+u-s.displaySize[0])/2,c=f+s.displaySize[0]);let d=e.top*a,y=e.bottom*a;return r==="height"||r==="both"?(h=n[1]+d-i[0],p=n[1]+y+i[2]):(h=n[1]+(d+y-s.displaySize[1])/2,p=h+s.displaySize[1]),{image:s,top:h,right:c,bottom:p,left:f,collisionPadding:o}}var Yc=32640;function Wc(t,e){let{expression:r}=e;if(r.kind==="constant")return{kind:"constant",layoutSize:r.evaluate(new st(t+1))};if(r.kind==="source")return{kind:"source"};if(r.kind==="composite"){let{minZoom:i,maxZoom:n}=Pb(r.zoomStops,t);return{kind:"composite",minZoom:i,maxZoom:n,interpolationType:r.interpolationType}}{let i=zb(r),n=r.evaluate(new st(t+1));return{kind:"camera",zoomStops:r.zoomStops,sizes:i,layoutSize:n,interpolationType:r.interpolationType}}}function Pb(t,e){let r=0;for(;rt.evaluate(new st(e===-1/0?t.zoomStops[1]-1:e)))}var Jr=class yy extends M{constructor(e,r,i,n){super(e,r),this.angle=i,n!==void 0&&(this.segment=n)}clone(){return new yy(this.x,this.y,this.angle,this.segment)}};C("Anchor",Jr);function my(t,e,r,i,n){if(e.segment===void 0||r===0)return!0;let a=e,s=e.segment+1,o=0;for(;o>-r/2;){if(s--,s<0)return!1;o-=t[s].dist(a),a=t[s]}o+=t[s].dist(t[s+1]),s++;let l=[],u=0;for(;oi;)u-=l.shift().angleDelta;if(u>n)return!1;s++,o+=c.dist(p)}return!0}function gy(t){let e=0;for(let r=0;ru){let d=(u-l)/f,y=new Jr(br.number(c.x,p.x,d),br.number(c.y,p.y,d),p.angleTo(c),h);return y._round(),!s||my(t,y,o,s,e)?y:void 0}l+=f}}function Vb(t,e,r,i,n,a,s,o,l){let u=xy(i,a,s),h=vy(i,n),c=h*s,p=t[0].x===0||t[0].x===l||t[0].y===0||t[0].y===l;e-c=0&&b=0&&w=0&&p+u<=h){let _=new Jr(b,w,x,d);_._round(),(!i||my(t,_,a,i,n))&&f.push(_)}}c+=g}return!o&&!f.length&&!s&&(f=by(t,c/2,r,i,n,a,s,!0,l)),f}function Ob(t,e,r,i,n){let a=[];for(let s of t){let o;for(let l=0;l=i&&h.x>=i)&&(u.x>=i?u=new M(i,u.y+(h.y-u.y)*((i-u.x)/(h.x-u.x)))._round():h.x>=i&&(h=new M(i,u.y+(h.y-u.y)*((i-u.x)/(h.x-u.x)))._round()),!(u.y>=n&&h.y>=n)&&(u.y>=n?u=new M(u.x+(h.x-u.x)*((n-u.y)/(h.y-u.y)),n)._round():h.y>=n&&(h=new M(u.x+(h.x-u.x)*((n-u.y)/(h.y-u.y)),n)._round()),(!o||!u.equals(o[o.length-1]))&&(o=[u],a.push(o)),o.push(h)))))}}return a}function wy(t,e,r,i,n,a){let s=Zc(t,e,r,n,0);return s=Zc(s,e,i,a,1),s}function Zc(t,e,r,i,n){switch(e){case 1:return Rb(t,r,i,n);case 2:return Hc(t,r,i,n,!1);case 3:return Hc(t,r,i,n,!0)}return[]}function Rb(t,e,r,i){let n=[];for(let a of t)for(let s of a){let o=i===0?s.x:s.y;o>=e&&o<=r&&n.push([s])}return n}function $b(t,e,r,i,n){let a=i===0?Nb:Ub,s=[],o=[];for(let h=0;he&&s.push(a(c,p,e)):f>r?d=e&&(s.push(a(c,p,e)),y=!0),d>r&&f<=r&&(s.push(a(c,p,r)),y=!0),!n&&y&&(o.push(s),s=[])}let l=t.length-1,u=i===0?t[l].x:t[l].y;return u>=e&&u<=r&&s.push(t[l]),n&&s.length>0&&!s[0].equals(s[s.length-1])&&s.push(new M(s[0].x,s[0].y)),s.length>0&&o.push(s),o}function Hc(t,e,r,i,n){let a=[];for(let s of t){let o=$b(s,e,r,i,n);o.length>0&&a.push(...o)}return a}function Nb(t,e,r){let i=(r-t.x)/(e.x-t.x);return new M(r,t.y+(e.y-t.y)*i)}function Ub(t,e,r){let i=(r-t.y)/(e.y-t.y);return new M(t.x+(e.x-t.x)*i,r)}function Kc(t,e,r,i){let n=[],a=t.image,s=a.pixelRatio,o=a.paddedRect.w-2,l=a.paddedRect.h-2,u={x1:t.left,y1:t.top,x2:t.right,y2:t.bottom},h=a.stretchX||[[0,o]],c=a.stretchY||[[0,l]],p=(F,$)=>F+$[1]-$[0],f=h.reduce(p,0),d=c.reduce(p,0),y=o-f,m=l-d,g=0,x=f,v=0,b=d,w=0,_=y,A=0,S=m;if(a.content&&i){let F=a.content,$=F[2]-F[0],G=F[3]-F[1];(a.textFitWidth||a.textFitHeight)&&(u=dy(t)),g=aa(h,0,F[0]),v=aa(c,0,F[1]),x=aa(h,F[0],F[2]),b=aa(c,F[1],F[3]),w=F[0]-g,A=F[1]-v,_=$-x,S=G-b}let T=u.x1,L=u.y1,O=u.x2-T,B=u.y2-L,V=(F,$,G,P)=>{let z=sa(F.stretch-g,x,O,T),it=oa(F.fixed-w,_,F.stretch,f),dt=sa($.stretch-v,b,B,L),ct=oa($.fixed-A,S,$.stretch,d),pt=sa(G.stretch-g,x,O,T),Kt=oa(G.fixed-w,_,G.stretch,f),jt=sa(P.stretch-v,b,B,L),Jt=oa(P.fixed-A,S,P.stretch,d),Oe=new M(z,dt),Gt=new M(pt,dt),Re=new M(pt,jt),$e=new M(z,jt),sr=new M(it/s,ct/s),fi=new M(Kt/s,Jt/s),Te=e*Math.PI/180;if(Te){let N=Math.sin(Te),at=Math.cos(Te),Y=[at,-N,N,at];Oe._matMult(Y),Gt._matMult(Y),$e._matMult(Y),Re._matMult(Y)}let $t=F.stretch+F.fixed,ke=G.stretch+G.fixed,or=$.stretch+$.fixed,Ir=P.stretch+P.fixed;return{tl:Oe,tr:Gt,bl:$e,br:Re,tex:{x:a.paddedRect.x+1+$t,y:a.paddedRect.y+1+or,w:ke-$t,h:Ir-or},writingMode:void 0,glyphOffset:[0,0],sectionIndex:0,pixelOffsetTL:sr,pixelOffsetBR:fi,minFontScaleX:_/s/O,minFontScaleY:S/s/B,isSDF:r}};if(!i||!a.stretchX&&!a.stretchY)n.push(V({fixed:0,stretch:-1},{fixed:0,stretch:-1},{fixed:0,stretch:o+1},{fixed:0,stretch:l+1}));else{let F=Jc(h,y,f),$=Jc(c,m,d);for(let G=0;G0&&(d=Math.max(10,d),this.circleDiameter=d)}else{let c=(h=a.image)!=null&&h.content&&(a.image.textFitWidth||a.image.textFitHeight)?dy(a):{x1:a.left,y1:a.top,x2:a.right,y2:a.bottom};c.y1=c.y1*s-o[0],c.y2=c.y2*s+o[2],c.x1=c.x1*s-o[3],c.x2=c.x2*s+o[1];let p=a.collisionPadding;if(p&&(c.x1-=p[0]*s,c.y1-=p[1]*s,c.x2+=p[2]*s,c.y2+=p[3]*s),u){let f=new M(c.x1,c.y1),d=new M(c.x2,c.y1),y=new M(c.x1,c.y2),m=new M(c.x2,c.y2),g=u*Math.PI/180;f._rotate(g),d._rotate(g),y._rotate(g),m._rotate(g),c.x1=Math.min(f.x,d.x,y.x,m.x),c.x2=Math.max(f.x,d.x,y.x,m.x),c.y1=Math.min(f.y,d.y,y.y,m.y),c.y2=Math.max(f.y,d.y,y.y,m.y)}t.emplaceBack(e.x,e.y,c.x1,c.y1,c.x2,c.y2,r,i,n)}this.boxEndIndex=t.length}},jb=class{constructor(t=[],e=(r,i)=>ri)){if(this.data=t,this.length=this.data.length,this.compare=e,this.length>0)for(let r=(this.length>>1)-1;r>=0;r--)this._down(r)}push(t){this.data.push(t),this._up(this.length++)}pop(){if(this.length===0)return;let t=this.data[0],e=this.data.pop();return--this.length>0&&(this.data[0]=e,this._down(0)),t}peek(){return this.data[0]}_up(t){let{data:e,compare:r}=this,i=e[t];for(;t>0;){let n=t-1>>1,a=e[n];if(r(i,a)>=0)break;e[t]=a,t=n}e[t]=i}_down(t){let{data:e,compare:r}=this,i=this.length>>1,n=e[t];for(;t=0)break;e[t]=e[a],t=a}e[t]=n}};function Gb(t,e=1){let r=Ia.fromPoints(t[0]),i=Math.min(r.width(),r.height()),n=i/2,a=new jb([],Xb),{minX:s,minY:o,maxX:l,maxY:u}=r;if(i===0)return new M(s,o);for(let p=s;pc.d||!c.d)&&(c=p),!(p.max-c.d<=e)&&(n=p.h/2,a.push(new qr(p.p.x-n,p.p.y-n,n,t)),a.push(new qr(p.p.x+n,p.p.y-n,n,t)),a.push(new qr(p.p.x-n,p.p.y+n,n,t)),a.push(new qr(p.p.x+n,p.p.y+n,n,t)))}return h.d>0&&c.d-h.d<=e?h.p:c.p}function Xb(t,e){return e.max-t.max}var qr=class{constructor(t,e,r,i){this.p=new M(t,e),this.h=r,this.d=Yb(this.p,i),this.max=this.d+this.h*Math.SQRT2}};function Yb(t,e){let r=!1,i=1/0;for(let n of e)for(let a=0,s=n.length,o=s-1;at.y!=u.y>t.y&&t.x<(u.x-l.x)*(t.y-l.y)/(u.y-l.y)+l.x&&(r=!r),i=Math.min(i,wd(t,l,u))}return(r?1:-1)*Math.sqrt(i)}function Wb(t){let e=0,r=0,i=0,n=t[0];for(let a=0,s=n.length,o=s-1;ap*24);h.startsWith("top")?c[1]-=7:h.startsWith("bottom")&&(c[1]+=7),l[u+1]=c}return new Ae(l)}let a=i.get("text-variable-anchor");if(a){let o;o=t._unevaluatedLayout.getValue("text-radial-offset")===void 0?i.get("text-offset").evaluate(e,{},r).map(u=>u*24):[i.get("text-radial-offset").evaluate(e,{},r)*24,cu];let l=[];for(let u of a)l.push(u,Dy(u,o));return new Ae(l)}return null}function Hb(t){var h,c;t.bucket.createArrays();let e=512*t.bucket.overscaling;t.bucket.tilePixelRatio=gt/e,t.bucket.compareText={},t.bucket.iconsNeedLinear=!1;let r=t.bucket.layers[0],i=r.layout,n=r._unevaluatedLayout._values,a={layoutIconSize:n["icon-size"].possiblyEvaluate(new st(t.bucket.zoom+1),t.canonical),layoutTextSize:n["text-size"].possiblyEvaluate(new st(t.bucket.zoom+1),t.canonical),textMaxSize:n["text-size"].possiblyEvaluate(new st(18))};if(t.bucket.textSizeData.kind==="composite"){let{minZoom:p,maxZoom:f}=t.bucket.textSizeData;a.compositeTextSizes=[n["text-size"].possiblyEvaluate(new st(p),t.canonical),n["text-size"].possiblyEvaluate(new st(f),t.canonical)]}if(t.bucket.iconSizeData.kind==="composite"){let{minZoom:p,maxZoom:f}=t.bucket.iconSizeData;a.compositeIconSizes=[n["icon-size"].possiblyEvaluate(new st(p),t.canonical),n["icon-size"].possiblyEvaluate(new st(f),t.canonical)]}let s=i.get("text-line-height")*24,o=i.get("text-rotation-alignment")!=="viewport"&&i.get("symbol-placement")!=="point",l=i.get("text-keep-upright"),u=i.get("text-size");for(let p of t.bucket.features){let f=i.get("text-font").evaluate(p,{},t.canonical).join(","),d=u.evaluate(p,{},t.canonical),y=a.layoutTextSize.evaluate(p,{},t.canonical),m=a.layoutIconSize.evaluate(p,{},t.canonical),g={horizontal:{},vertical:void 0},x=p.text,v=[0,0];if(x){let A=x.toString(),S=i.get("text-letter-spacing").evaluate(p,{},t.canonical)*24,T=Mv(A)?S:0,L=i.get("text-anchor").evaluate(p,{},t.canonical),O=_y(r,p,t.canonical);if(!O){let $=i.get("text-radial-offset").evaluate(p,{},t.canonical);v=$?Dy(L,[$*24,cu]):i.get("text-offset").evaluate(p,{},t.canonical).map(G=>G*24)}let B=o?"center":i.get("text-justify").evaluate(p,{},t.canonical),V=i.get("symbol-placement")==="point"?i.get("text-max-width").evaluate(p,{},t.canonical)*24:1/0,F=()=>{t.bucket.allowVerticalPlacement&&nl(A)&&(g.vertical=na(x,t.glyphMap,t.glyphPositions,t.imagePositions,f,V,s,L,"left",T,v,2,!0,y,d))};if(!o&&O){let $=new Set;if(B==="auto")for(let P=0;P{z.x<0||z.x>=8192||z.y<0||z.y>=8192||Qb(t,z,P,r,i,n,F,t.layers[0],t.collisionBoxArray,e.index,e.sourceLayerIndex,t.index,x,[_,_,_,_],T,l,b,A,L,y,e,a,u,h,s,p)};if(O==="line")for(let P of Ob(e.geometry,0,0,gt,gt)){let z=yr(P,$),it=Vb(z,w,S,r.vertical||m,i,24,v,t.overscaling,gt);for(let dt of it){let ct=m;(!ct||!tw(t,ct.text,B,dt))&&G(z,dt)}}else if(O==="line-center"){for(let P of e.geometry)if(P.length>1){let z=yr(P,$),it=Lb(z,S,r.vertical||m,i,24,v);it&&G(z,it)}}else if(e.type==="Polygon")for(let P of Na(e.geometry,0)){let z=Gb(P,16);G(yr(P[0],$,!0),new Jr(z.x,z.y,0))}else if(e.type==="LineString")for(let P of e.geometry){let z=yr(P,$);G(z,new Jr(z[0].x,z[0].y,0))}else if(e.type==="Point")for(let P of e.geometry)for(let z of P)G([z],new Jr(z.x,z.y,0))}function Jb(t,e){let r=t.length,i=e==null?void 0:e.values;if((i==null?void 0:i.length)>0)for(let n=0;n32640&&Mt(`${t.layerIds[0]}: Value for "text-size" is >= 255. Reduce your "text-size".`)):g.kind==="composite"&&(x=[128*d.compositeTextSizes[0].evaluate(s,{},y),128*d.compositeTextSizes[1].evaluate(s,{},y)],(x[0]>32640||x[1]>32640)&&Mt(`${t.layerIds[0]}: Value for "text-size" is >= 255. Reduce your "text-size".`)),t.addSymbols(t.text,m,x,o,a,s,h,e,u.lineStartIndex,u.lineLength,f,y,l);for(let v of c)p[v]=t.text.placedSymbolArray.length-1;return m.length*4}function Ay(t){for(let e in t)return t[e];return null}function Qb(t,e,r,i,n,a,s,o,l,u,h,c,p,f,d,y,m,g,x,v,b,w,_,A,S,T){let L=t.addToLineVertexArray(e,r),O=o.layout.get("symbol-height-offset").evaluate(b,{},A);O>t.maxHeightOffset&&(t.maxHeightOffset=O);let B,V,F,$,G=0,P=0,z=0,it=0,dt=-1,ct=-1,pt={},Kt=(0,Ea.default)("");if(t.allowVerticalPlacement&&i.vertical){let Y=o.layout.get("text-rotate").evaluate(b,{},A)+90,k=i.vertical;F=new la(l,e,u,h,c,k,p,f,d,Y),s&&($=new la(l,e,u,h,c,s,m,g,d,Y))}if(n){let Y=o.layout.get("icon-rotate").evaluate(b,{}),k=o.layout.get("icon-text-fit")!=="none",ot=Kc(n,Y,_,k),X=s?Kc(s,Y,_,k):void 0;V=new la(l,e,u,h,c,n,m,g,!1,Y),G=ot.length*4;let K=t.iconSizeData,j=null;K.kind==="source"?(j=[128*o.layout.get("icon-size").evaluate(b,{})],j[0]>32640&&Mt(`${t.layerIds[0]}: Value for "icon-size" is >= 255. Reduce your "icon-size".`)):K.kind==="composite"&&(j=[128*w.compositeIconSizes[0].evaluate(b,{},A),128*w.compositeIconSizes[1].evaluate(b,{},A)],(j[0]>32640||j[1]>32640)&&Mt(`${t.layerIds[0]}: Value for "icon-size" is >= 255. Reduce your "icon-size".`)),t.addSymbols(t.icon,ot,j,v,x,b,0,e,L.lineStartIndex,L.lineLength,-1,A,O),dt=t.icon.placedSymbolArray.length-1,X&&(P=X.length*4,t.addSymbols(t.icon,X,j,v,x,b,2,e,L.lineStartIndex,L.lineLength,-1,A,O),ct=t.icon.placedSymbolArray.length-1)}let jt=Object.keys(i.horizontal);for(let Y of jt){let k=i.horizontal[Y];B||(B=(Kt=(0,Ea.default)(k.text),new la(l,e,u,h,c,k,p,f,d,o.layout.get("text-rotate").evaluate(b,{},A))));let ot=k.positionedLines.length===1;if(z+=tp(t,e,k,a,o,d,b,y,O,L,i.vertical?1:3,ot?jt:[Y],pt,dt,w,A),ot)break}i.vertical&&(it+=tp(t,e,i.vertical,a,o,d,b,y,O,L,2,["vertical"],pt,ct,w,A));let Jt=B?B.boxStartIndex:t.collisionBoxArray.length,Oe=B?B.boxEndIndex:t.collisionBoxArray.length,Gt=F?F.boxStartIndex:t.collisionBoxArray.length,Re=F?F.boxEndIndex:t.collisionBoxArray.length,$e=V?V.boxStartIndex:t.collisionBoxArray.length,sr=V?V.boxEndIndex:t.collisionBoxArray.length,fi=$?$.boxStartIndex:t.collisionBoxArray.length,Te=$?$.boxEndIndex:t.collisionBoxArray.length,$t=-1,ke=(Y,k)=>Y!=null&&Y.circleDiameter?Math.max(Y.circleDiameter,k):k;$t=ke(B,$t),$t=ke(F,$t),$t=ke(V,$t),$t=ke($,$t);let or=+($t>-1);or&&($t*=S/24),t.glyphOffsetArray.length>=t.maxGlyphs&&Mt("Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907"),b.sortKey!==void 0&&t.addToSortKeyRanges(t.symbolInstances.length,b.sortKey);let Ir=_y(o,b,A),[N,at]=Jb(t.textAnchorOffsets,Ir);T&&(Kt=ew(Kt,b)),t.symbolInstances.emplaceBack(e.x,e.y,pt.right>=0?pt.right:-1,pt.center>=0?pt.center:-1,pt.left>=0?pt.left:-1,pt.vertical||-1,dt,ct,Kt,Jt,Oe,Gt,Re,$e,sr,fi,Te,u,z,it,G,P,or,0,p,$t,N,at,O)}function tw(t,e,r,i){let n=t.compareText;if(!(e in n))n[e]=[];else{let a=n[e];for(let s=a.length-1;s>=0;s--)if(i.dist(a[s])s.id),this.index=t.index,this.pixelRatio=t.pixelRatio,this.sourceLayerIndex=t.sourceLayerIndex,this.hasDependencies=!0,this.hasRTLText=!1,this.maxHeightOffset=0,this.sortKeyRanges=[],this.collisionCircleArray=[],this.maxGlyphs=65535;let e=this.layers[0]._unevaluatedLayout._values;this.textSizeData=Wc(this.zoom,e["text-size"]),this.iconSizeData=Wc(this.zoom,e["icon-size"]);let r=this.layers[0].layout,i=r.get("symbol-sort-key"),n=r.get("symbol-z-order");this.canOverlap=ep(r,"text-overlap","text-allow-overlap")!=="never"||ep(r,"icon-overlap","icon-allow-overlap")!=="never"||r.get("text-ignore-placement")||r.get("icon-ignore-placement"),this.sortFeaturesByKey=n!=="viewport-y"&&!i.isConstant();let a=n==="viewport-y"||n==="auto"&&!this.sortFeaturesByKey;this.sortFeaturesByY=a&&this.canOverlap,r.get("symbol-placement")==="point"&&(this.writingModes=r.get("text-writing-mode").map(s=>uy[s])),this.stateDependentLayerIds=this.layers.filter(s=>s.isStateDependent()).map(s=>s.id),this.sourceID=t.sourceID}createArrays(){this.text=new ll(new Dr(this.layers,this.zoom,t=>t.startsWith("text"))),this.icon=new ll(new Dr(this.layers,this.zoom,t=>t.startsWith("icon"))),this.glyphOffsetArray=new ud,this.lineVertexArray=new hd,this.symbolInstances=new ld,this.textAnchorOffsets=new pd}calculateGlyphDependencies(t,e,r,i,n){var l;let a=(i||this.allowVerticalPlacement)&&n,s=su.fromFeature(t,r),o=s.graphemes();for(let u=0;u0)&&(a.value.kind!=="constant"||a.value.value.length>0),u=o.value.kind!=="constant"||!!o.value.value||Object.keys(o.parameters).length>0,h=n.get("symbol-sort-key");if(this.features=[],!l&&!u)return;let c=e.iconDependencies,p=e.glyphDependencies,f=e.availableImages,d=new st(this.zoom);for(let{feature:m,id:g,index:x,sourceLayerIndex:v}of t){let b=i._featureFilter.needGeometry,w=hi(m,b);if(!i._featureFilter.filter(d,w,r))continue;b||(w.geometry=Fr(m));let _;if(l){let L=i.getValueAndResolveTokens("text-field",w,r,f),O=Le.factory(L);this.hasRTLText||(this.hasRTLText=nw(O)),_=Tv(O,i,w)}let A;if(u){let L=i.getValueAndResolveTokens("icon-image",w,r,f);A=L instanceof Se?L:Se.fromString(L)}if(!_&&!A)continue;let S=this.sortFeaturesByKey?h.evaluate(w,{},r):void 0,T={id:g,text:_,icon:A,index:x,sourceLayerIndex:v,geometry:w.geometry,properties:m.properties,type:Fn.types[m.type],sortKey:S};if(this.features.push(T),A&&(c[A.name]=!0),_){let L=a.evaluate(w,{},r).join(","),O=n.get("text-rotation-alignment")!=="viewport"&&n.get("symbol-placement")!=="point";this.allowVerticalPlacement=(y=this.writingModes)==null?void 0:y.includes(2);let B=nl(_.toString());this.calculateGlyphDependencies(_,p,L,O,B);for(let V of _.sections)V.image&&(c[V.image.name]=!0)}}n.get("symbol-placement")==="line"&&(this.features=Iv(this.features)),this.sortFeaturesByKey&&this.features.sort((m,g)=>m.sortKey-g.sortKey)}update(t,e,r){this.stateDependentLayers.length&&(this.text.programConfigurations.updatePaintArrays(t,e,this.layers,{imagePositions:r}),this.icon.programConfigurations.updatePaintArrays(t,e,this.layers,{imagePositions:r}))}addFeatures({options:t,canonical:e,glyphMap:r,glyphPositions:i,iconMap:n,iconPositions:a,showCollisionBoxes:s}){Hb({bucket:this,glyphMap:r,glyphPositions:i,imageMap:n,imagePositions:a,showCollisionBoxes:s,canonical:e,subdivisionGranularity:t.subdivisionGranularity,hasPromoteId:t.featureIndex.promoteId!=null})}isEmpty(){return this.symbolInstances.length===0}uploadPending(){return!this.uploaded||this.text.programConfigurations.needsUpload||this.icon.programConfigurations.needsUpload}upload(t){!this.uploaded&&this.hasDebugData()&&(this.textCollisionBox.upload(t),this.iconCollisionBox.upload(t)),this.text.upload(t,this.sortFeaturesByY,!this.uploaded,this.text.programConfigurations.needsUpload),this.icon.upload(t,this.sortFeaturesByY,!this.uploaded,this.icon.programConfigurations.needsUpload),this.uploaded=!0}destroyDebugData(){this.textCollisionBox.destroy(),this.iconCollisionBox.destroy()}destroy(){this.text.destroy(),this.icon.destroy(),this.hasDebugData()&&this.destroyDebugData()}addToLineVertexArray(t,e){let r=this.lineVertexArray.length;if(t.segment!==void 0){let i=t.dist(e[t.segment+1]),n=t.dist(e[t.segment]),a={};for(let s=t.segment+1;s=0;s--)a[s]={x:e[s].x,y:e[s].y,tileUnitDistanceFromAnchor:n},s>0&&(n+=e[s-1].dist(e[s]));for(let s=0;s0}hasIconData(){return this.icon.segments.get().length>0}hasDebugData(){return this.textCollisionBox&&this.iconCollisionBox}hasTextCollisionBoxData(){return this.hasDebugData()&&this.textCollisionBox.segments.get().length>0}hasIconCollisionBoxData(){return this.hasDebugData()&&this.iconCollisionBox.segments.get().length>0}addIndicesForPlacedSymbol(t,e){let r=t.placedSymbolArray.get(e),i=r.vertexStartIndex+r.numGlyphs*4;for(let n=r.vertexStartIndex;ni[s]-i[o]||n[o]-n[s]),a}addToSortKeyRanges(t,e){let r=this.sortKeyRanges[this.sortKeyRanges.length-1];(r==null?void 0:r.sortKey)===e?r.symbolInstanceEnd=t+1:this.sortKeyRanges.push({sortKey:e,symbolInstanceStart:t,symbolInstanceEnd:t+1})}sortFeatures(t){if(this.sortFeaturesByY&&this.sortedAngle!==t&&!(this.text.segments.get().length>1||this.icon.segments.get().length>1)){this.symbolInstanceIndexes=this.getSortedSymbolIndexes(t),this.sortedAngle=t,this.text.indexArray.clear(),this.icon.indexArray.clear(),this.featureSortOrder=[];for(let e of this.symbolInstanceIndexes){let r=this.symbolInstances.get(e);this.featureSortOrder.push(r.featureIndex);let i=[r.rightJustifiedTextSymbolIndex,r.centerJustifiedTextSymbolIndex,r.leftJustifiedTextSymbolIndex];for(let n=0;n=0&&i.indexOf(a)===n&&this.addIndicesForPlacedSymbol(this.text,a)}r.verticalPlacedTextSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.text,r.verticalPlacedTextSymbolIndex),r.placedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,r.placedIconSymbolIndex),r.verticalPlacedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,r.verticalPlacedIconSymbolIndex)}this.text.indexBuffer&&this.text.indexBuffer.updateData(this.text.indexArray),this.icon.indexBuffer&&this.icon.indexBuffer.updateData(this.icon.indexArray)}}};C("SymbolBucket",Sy,{omit:["layers","collisionBoxArray","features","compareText"]});function aw(t,e){return e.replace(/{([^{}]+)}/g,(r,i)=>t&&i in t?String(t[i]):"")}var rp,sw=()=>rp||(rp=new Yt({"symbol-placement":new R(D.layout_symbol["symbol-placement"],"symbol-placement"),"symbol-spacing":new R(D.layout_symbol["symbol-spacing"],"symbol-spacing"),"symbol-avoid-edges":new R(D.layout_symbol["symbol-avoid-edges"],"symbol-avoid-edges"),"symbol-sort-key":new U(D.layout_symbol["symbol-sort-key"],"symbol-sort-key"),"symbol-z-order":new R(D.layout_symbol["symbol-z-order"],"symbol-z-order"),"icon-allow-overlap":new R(D.layout_symbol["icon-allow-overlap"],"icon-allow-overlap"),"icon-overlap":new R(D.layout_symbol["icon-overlap"],"icon-overlap"),"icon-ignore-placement":new R(D.layout_symbol["icon-ignore-placement"],"icon-ignore-placement"),"icon-optional":new R(D.layout_symbol["icon-optional"],"icon-optional"),"icon-rotation-alignment":new U(D.layout_symbol["icon-rotation-alignment"],"icon-rotation-alignment"),"icon-size":new U(D.layout_symbol["icon-size"],"icon-size"),"icon-text-fit":new R(D.layout_symbol["icon-text-fit"],"icon-text-fit"),"icon-text-fit-padding":new R(D.layout_symbol["icon-text-fit-padding"],"icon-text-fit-padding"),"icon-image":new U(D.layout_symbol["icon-image"],"icon-image"),"icon-rotate":new U(D.layout_symbol["icon-rotate"],"icon-rotate"),"icon-padding":new U(D.layout_symbol["icon-padding"],"icon-padding"),"icon-keep-upright":new R(D.layout_symbol["icon-keep-upright"],"icon-keep-upright"),"icon-offset":new U(D.layout_symbol["icon-offset"],"icon-offset"),"icon-anchor":new U(D.layout_symbol["icon-anchor"],"icon-anchor"),"icon-pitch-alignment":new R(D.layout_symbol["icon-pitch-alignment"],"icon-pitch-alignment"),"text-pitch-alignment":new R(D.layout_symbol["text-pitch-alignment"],"text-pitch-alignment"),"text-rotation-alignment":new R(D.layout_symbol["text-rotation-alignment"],"text-rotation-alignment"),"text-field":new U(D.layout_symbol["text-field"],"text-field"),"text-font":new U(D.layout_symbol["text-font"],"text-font"),"text-size":new U(D.layout_symbol["text-size"],"text-size"),"text-max-width":new U(D.layout_symbol["text-max-width"],"text-max-width"),"text-line-height":new R(D.layout_symbol["text-line-height"],"text-line-height"),"text-letter-spacing":new U(D.layout_symbol["text-letter-spacing"],"text-letter-spacing"),"text-justify":new U(D.layout_symbol["text-justify"],"text-justify"),"text-radial-offset":new U(D.layout_symbol["text-radial-offset"],"text-radial-offset"),"text-variable-anchor":new R(D.layout_symbol["text-variable-anchor"],"text-variable-anchor"),"text-variable-anchor-offset":new U(D.layout_symbol["text-variable-anchor-offset"],"text-variable-anchor-offset"),"text-anchor":new U(D.layout_symbol["text-anchor"],"text-anchor"),"text-max-angle":new R(D.layout_symbol["text-max-angle"],"text-max-angle"),"text-writing-mode":new R(D.layout_symbol["text-writing-mode"],"text-writing-mode"),"text-rotate":new U(D.layout_symbol["text-rotate"],"text-rotate"),"text-padding":new R(D.layout_symbol["text-padding"],"text-padding"),"text-keep-upright":new R(D.layout_symbol["text-keep-upright"],"text-keep-upright"),"text-transform":new U(D.layout_symbol["text-transform"],"text-transform"),"text-offset":new U(D.layout_symbol["text-offset"],"text-offset"),"text-allow-overlap":new R(D.layout_symbol["text-allow-overlap"],"text-allow-overlap"),"text-overlap":new R(D.layout_symbol["text-overlap"],"text-overlap"),"text-ignore-placement":new R(D.layout_symbol["text-ignore-placement"],"text-ignore-placement"),"text-optional":new R(D.layout_symbol["text-optional"],"text-optional"),"symbol-height-offset":new U(D.layout_symbol["symbol-height-offset"],"symbol-height-offset"),"symbol-height-anchor":new R(D.layout_symbol["symbol-height-anchor"],"symbol-height-anchor")})),ip,ow=()=>ip||(ip=new Yt({"icon-opacity":new U(D.paint_symbol["icon-opacity"],"icon-opacity"),"icon-color":new U(D.paint_symbol["icon-color"],"icon-color"),"icon-halo-color":new U(D.paint_symbol["icon-halo-color"],"icon-halo-color"),"icon-halo-width":new U(D.paint_symbol["icon-halo-width"],"icon-halo-width"),"icon-halo-blur":new U(D.paint_symbol["icon-halo-blur"],"icon-halo-blur"),"icon-translate":new R(D.paint_symbol["icon-translate"],"icon-translate"),"icon-translate-anchor":new R(D.paint_symbol["icon-translate-anchor"],"icon-translate-anchor"),"text-opacity":new U(D.paint_symbol["text-opacity"],"text-opacity"),"text-color":new U(D.paint_symbol["text-color"],"text-color",{runtimeType:pe,getOverride:t=>t.textColor,hasOverride:t=>!!t.textColor}),"text-halo-color":new U(D.paint_symbol["text-halo-color"],"text-halo-color"),"text-halo-width":new U(D.paint_symbol["text-halo-width"],"text-halo-width"),"text-halo-blur":new U(D.paint_symbol["text-halo-blur"],"text-halo-blur"),"text-translate":new R(D.paint_symbol["text-translate"],"text-translate"),"text-translate-anchor":new R(D.paint_symbol["text-translate-anchor"],"text-translate-anchor")})),Zs={get paint(){return ow()},get layout(){return sw()}},Ey=class{constructor(t){if(t.property.overrides===void 0)throw Error("overrides must be provided to instantiate FormatSectionOverride class");this.type=t.property.overrides?t.property.overrides.runtimeType:vn,this.defaultValue=t}evaluate(t){if(t.formattedSection){let e=this.defaultValue.property.overrides;if(e!=null&&e.hasOverride(t.formattedSection))return e.getOverride(t.formattedSection)}return t.feature&&t.featureState?this.defaultValue.evaluate(t.feature,t.featureState):this.defaultValue.property.specification.default}eachChild(t){if(!this.defaultValue.isConstant()){let e=this.defaultValue.value;t(e._styleExpression.expression)}}outputDefined(){return!1}serialize(){return null}};C("FormatSectionOverride",Ey,{omit:["defaultValue"]});var lw=class hl extends ye{constructor(e,r){super(e,Zs,r)}recalculate(e,r){super.recalculate(e,r);let i=this.layout.get("icon-rotation-alignment");if((i.value.kind!=="constant"||i.value.value==="auto")&&(this.layout._values["icon-rotation-alignment"]=new le(i.property,{kind:"constant",value:this.layout.get("symbol-placement")==="point"?"viewport":"map"},i.parameters)),this.layout.get("text-rotation-alignment")==="auto"&&(this.layout.get("symbol-placement")==="point"?this.layout._values["text-rotation-alignment"]="viewport":this.layout._values["text-rotation-alignment"]="map"),this.layout.get("text-pitch-alignment")==="auto"&&(this.layout._values["text-pitch-alignment"]=this.layout.get("text-rotation-alignment")==="map"?"map":"viewport"),this.layout.get("icon-pitch-alignment")==="auto"&&(this.layout._values["icon-pitch-alignment"]=this.layout.get("icon-rotation-alignment").constantOr("viewport")),this.layout.get("symbol-placement")==="point"){let n=this.layout.get("text-writing-mode");if(n){let a=[];for(let s of n)a.includes(s)||a.push(s);this.layout._values["text-writing-mode"]=a}else this.layout._values["text-writing-mode"]=["horizontal"]}this._setPaintOverrides()}getValueAndResolveTokens(e,r,i,n){let a=this.layout.get(e).evaluate(r,{},i,n),s=this._unevaluatedLayout._values[e];return!s.isDataDriven()&&!Xa(s.value)&&a?aw(r.properties,a):a}createBucket(e){return new Sy(e)}queryRadius(){return 0}queryIntersectsFeature(){throw Error("Should take a different path in FeatureIndex")}_setPaintOverrides(){for(let e of Zs.paint.overridableProperties){if(!hl.hasPaintOverride(this.layout,e))continue;let r=this.paint.get(e),i=new Bl(new Ey(r),`layers[${this.id}].paint.${r.property.name}`,r.property.specification),n=null;n=r.value.kind==="constant"||r.value.kind==="source"?new ln("source",i):new _a("composite",i,r.value.zoomStops),this.paint._values[e]=new le(r.property,n,r.parameters)}}_handleOverridablePaintPropertyUpdate(e,r,i){return!this.layout||r.isDataDriven()||i.isDataDriven()?!1:hl.hasPaintOverride(this.layout,e)}static hasPaintOverride(e,r){let i=e.get("text-field"),n=Zs.paint.properties[r],a=!1,s=o=>{var l;for(let u of o)if((l=n.overrides)!=null&&l.hasOverride(u)){a=!0;return}};if(i.value.kind==="constant"&&i.value.value instanceof Le)s(i.value.value.sections);else if(i.value.kind==="source"||i.value.kind==="composite"){let o=u=>{if(!a)if(u instanceof ri&&St(u.value)===bn){let h=u.value;s(h.sections)}else u instanceof Yp?s(u.sections):u.eachChild(o)},l=i.value;l._styleExpression&&o(l._styleExpression.expression)}return a}};function uw(t,e,r,i=1){var a;let n=(a=t.get("icon-padding").evaluate(e,{},r))==null?void 0:a.values;return[n[0]*i,n[1]*i,n[2]*i,n[3]*i]}var np,hw=()=>np||(np=new Yt({"background-color":new R(D.paint_background["background-color"],"background-color"),"background-pattern":new id(D.paint_background["background-pattern"],"background-pattern"),"background-opacity":new R(D.paint_background["background-opacity"],"background-opacity")})),cw={get paint(){return hw()}};var pw=class extends ye{constructor(t,e){super(t,cw,e)}};var fw=class extends ye{constructor(t,e){super(t,{},e),this.onAdd=r=>{this.implementation.onAdd&&this.implementation.onAdd(r,r.painter.context.gl)},this.onRemove=r=>{this.implementation.onRemove&&this.implementation.onRemove(r,r.painter.context.gl)},this.implementation=t}is3D(){return this.implementation.renderingMode==="3d"}hasOffscreenPass(){return this.implementation.prerender!==void 0}recalculate(){}updateTransitions(){}hasTransition(){return!1}serialize(){throw Error("Custom layers cannot be serialized")}};function Fy(t,e){if(t.type==="custom")return new fw(t,e);switch(t.type){case"background":return new pw(t,e);case"circle":return new Kg(t,e);case"color-relief":return new lx(t,e);case"fill":return new $x(t,e);case"fill-extrusion":return new u2(t,e);case"heatmap":return new rx(t,e);case"hillshade":return new ax(t,e);case"line":return new rv(t,e);case"raster":return new pg(t,e);case"symbol":return new lw(t,e)}}var dw=class{constructor(t){this._methodToThrottle=t,this._triggered=!1,this._channel=new MessageChannel,this._channel.port2.onmessage=()=>{this._triggered=!1,this._methodToThrottle()}}trigger(){var t;this._triggered||(this._triggered=!0,(t=this._channel)==null||t.port1.postMessage(!0))}remove(){delete this._channel,this._methodToThrottle=()=>{}}},yw={once:!0},Ty=class{constructor(t,e){this.target=t,this.mapId=e,this.resolveRejects={},this.tasks={},this.taskQueue=[],this.abortControllers={},this.messageHandlers={},this.invoker=new dw(()=>this.process()),this.subscription=dh(this.target,"message",r=>this.receive(r),!1),this.globalScope=vr(self)?t:window}registerMessageHandler(t,e){this.messageHandlers[t]=e}unregisterMessageHandler(t){delete this.messageHandlers[t]}sendAsync(t,e){return new Promise((r,i)=>{let n=Math.round(Math.random()*1e18).toString(36).substring(0,10),a=e?dh(e.signal,"abort",()=>{a==null||a.unsubscribe(),delete this.resolveRejects[n];let l={id:n,type:"",origin:location.origin,targetMapId:t.targetMapId,sourceMapId:this.mapId};this.target.postMessage(l),i(new gl(e.signal.reason))},yw):null;this.resolveRejects[n]={resolve:l=>{a==null||a.unsubscribe(),r(l)},reject:l=>{a==null||a.unsubscribe(),i(l)}};let s=[],o=Si(Xe({},t),{id:n,sourceMapId:this.mapId,origin:location.origin,data:Hi(t.data,s)});this.target.postMessage(o,{transfer:s})})}receive(t){let e=t.data,r=e.id,i=["file://","resource://android","null"],n=[e.origin,location.origin],a=e.origin===location.origin,s=n.some(o=>i.includes(o));if((a||s)&&!(e.targetMapId&&this.mapId!==e.targetMapId)){if(e.type===""){delete this.tasks[r];let o=this.abortControllers[r];delete this.abortControllers[r],o&&o.abort();return}if(vr(self)||e.mustQueue){this.tasks[r]=e,this.taskQueue.push(r),this.invoker.trigger();return}this.processTask(r,e)}}process(){if(this.taskQueue.length===0)return;let t=this.taskQueue.shift(),e=this.tasks[t];delete this.tasks[t],this.taskQueue.length>0&&this.invoker.trigger(),e&&this.processTask(t,e)}processTask(t,e){return et(this,null,function*(){if(e.type===""){let n=this.resolveRejects[t];if(delete this.resolveRejects[t],!n)return;e.error?n.reject(tn(Ki(e.error))):n.resolve(Ki(e.data));return}if(!this.messageHandlers[e.type]){this.completeTask(t,null,null);return}let r=Ki(e.data),i=new AbortController;this.abortControllers[t]=i;try{let n=yield this.messageHandlers[e.type](e.sourceMapId,r,i);this.completeTask(t,null,n)}catch(n){this.completeTask(t,tn(n))}})}completeTask(t,e,r){let i=[];delete this.abortControllers[t];let n={id:t,type:"",sourceMapId:this.mapId,origin:location.origin,error:e?Hi(e):null,data:Hi(r,i)};this.target.postMessage(n,{transfer:i})}remove(){this.invoker.remove(),this.subscription.unsubscribe()}};function mw(t,e,r){return!(t<0||t>25||r<0||r>=2**t||e<0||e>=2**t)}var ky=class{constructor(t,e,r){if(!mw(t,e,r))throw Error(`x=${e}, y=${r}, z=${t} outside of bounds. 0<=x<${2**t}, 0<=y<${2**t} 0<=z<=25 `);this.z=t,this.x=e,this.y=r,this.key=Qi(0,t,t,e,r)}equals(t){return this.z===t.z&&this.x===t.x&&this.y===t.y}url(t,e,r){let i=xw(this.x,this.y,this.z),n=vw(this.z,this.x,this.y);return t[(this.x+this.y)%t.length].replace(/{prefix}/g,(this.x%16).toString(16)+(this.y%16).toString(16)).replace(/{z}/g,String(this.z)).replace(/{x}/g,String(this.x)).replace(/{y}/g,String(r==="tms"?2**this.z-this.y-1:this.y)).replace(/{ratio}/g,e>1?"@2x":"").replace(/{quadkey}/g,n).replace(/{bbox-epsg-3857}/g,i)}isChildOf(t){let e=this.z-t.z;return e>0&&t.x===this.x>>e&&t.y===this.y>>e}getTilePoint(t){let e=2**this.z;return new M((t.x*e-this.x)*gt,(t.y*e-this.y)*gt)}toString(){return`${this.z}/${this.x}/${this.y}`}},gw=class{constructor(t,e){this.wrap=t,this.canonical=e,this.key=Qi(t,e.z,e.z,e.x,e.y)}},pu=class se{constructor(e,r,i,n,a){if(this.terrainRttPosMatrix32f=null,e= z; overscaledZ = ${e}; z = ${i}`);this.overscaledZ=e,this.wrap=r,this.canonical=new ky(i,+n,+a),this.key=Qi(r,e,i,n,a)}clone(){return new se(this.overscaledZ,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)}equals(e){return this.overscaledZ===e.overscaledZ&&this.wrap===e.wrap&&this.canonical.equals(e.canonical)}scaledTo(e){if(e>this.overscaledZ)throw Error(`targetZ > this.overscaledZ; targetZ = ${e}; overscaledZ = ${this.overscaledZ}`);let r=this.canonical.z-e;return e>this.canonical.z?new se(e,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y):new se(e,this.wrap,e,this.canonical.x>>r,this.canonical.y>>r)}isOverscaled(){return this.overscaledZ>this.canonical.z}calculateScaledKey(e,r){if(e>this.overscaledZ)throw Error(`targetZ > this.overscaledZ; targetZ = ${e}; overscaledZ = ${this.overscaledZ}`);let i=this.canonical.z-e;return e>this.canonical.z?Qi(this.wrap*+r,e,this.canonical.z,this.canonical.x,this.canonical.y):Qi(this.wrap*+r,e,e,this.canonical.x>>i,this.canonical.y>>i)}isChildOf(e){if(e.wrap!==this.wrap||this.overscaledZ-e.overscaledZ<=0)return!1;if(e.overscaledZ===0)return this.overscaledZ>0;let r=this.canonical.z-e.canonical.z;return r<0?!1:e.canonical.x===this.canonical.x>>r&&e.canonical.y===this.canonical.y>>r}children(e){if(this.overscaledZ>=e)return[new se(this.overscaledZ+1,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)];let r=this.canonical.z+1,i=this.canonical.x*2,n=this.canonical.y*2;return[new se(r,this.wrap,r,i,n),new se(r,this.wrap,r,i+1,n),new se(r,this.wrap,r,i,n+1),new se(r,this.wrap,r,i+1,n+1)]}isLessThan(e){return this.wrape.wrap?!1:this.overscaledZe.overscaledZ?!1:this.canonical.xe.canonical.x?!1:this.canonical.y=0&&e=0&&r=u)return null;let c=this.canonical.x+n,p=this.wrap;return c<0?(p-=Math.ceil(-c/u),c=(c%u+u)%u):c>=u&&(p+=Math.floor(c/u),c%=u),{tileID:new se(this.overscaledZ,p,l,c,h),x:s,y:o}}};function Qi(t,e,r,i,n){t*=2,t<0&&(t=t*-1-1);let a=1<0;n--){let a=1<Dw(n,a,r),t.layers[i])}function Dw(t,e,r=""){e.writeVarintField(15,t.version||1),e.writeStringField(1,t.name||""),e.writeVarintField(5,t.extent||4096);let i={jsonPrefix:r,keys:[],values:[],keycache:{},valuecache:{}};for(let s=0;s>31}function Sw(t,e){let r=t.loadGeometry(),i=t.type,n=0,a=0;for(let s of r){let o=1;i===1&&(o=s.length),e.writeVarint(Ks(1,o));let l=i===3?s.length-1:s.length;for(let u=0;u=this._numberToString.length)throw Error(`Out of bounds. Index requested n=${t} can\'t be >= this._numberToString.length ${this._numberToString.length}`);return this._numberToString[t]}},Fw=class{constructor(t,e,r,i,n){this.type="Feature",this._vectorTileFeature=t,this._x=r,this._y=i,this._z=e;for(let a in t.properties)typeof t.properties[a]=="string"&&t.properties[a].startsWith("__$json__:")&&(t.properties[a]=JSON.parse(t.properties[a].slice(10)));this.properties=t.properties,this.id=n}projectPoint(t,e,r,i){return[(t.x+e)*360/i-180,360/Math.PI*Math.atan(Math.exp((1-(t.y+r)*2/i)*Math.PI))-90]}projectLine(t,e,r,i){return t.map(n=>this.projectPoint(n,e,r,i))}get geometry(){if(this._geometry)return this._geometry;let t=this._vectorTileFeature,e=t.extent*2**this._z,r=t.extent*this._x,i=t.extent*this._y,n=t.loadGeometry();switch(t.type){case 1:{let a=[];for(let o of n)a.push(o[0]);let s=this.projectLine(a,r,i,e);this._geometry=a.length===1?{type:"Point",coordinates:s[0]}:{type:"MultiPoint",coordinates:s};break}case 2:{let a=n.map(s=>this.projectLine(s,r,i,e));this._geometry=a.length===1?{type:"LineString",coordinates:a[0]}:{type:"MultiLineString",coordinates:a};break}case 3:{let a=Ld(n),s=[];for(let o of a)s.push(o.map(l=>this.projectLine(l,r,i,e)));this._geometry=s.length===1?{type:"Polygon",coordinates:s[0]}:{type:"MultiPolygon",coordinates:s};break}default:throw Error(`unknown feature type: ${t.type}`)}return this._geometry}set geometry(t){this._geometry=t}toJSON(){let t={geometry:this.geometry};for(let e in this)e!=="_geometry"&&e!=="_vectorTileFeature"&&e!=="_x"&&e!=="_y"&&e!=="_z"&&(t[e]=this[e]);return t}},Tr=class{constructor(t,e,r){this._name=t,this.dataBuffer=e,typeof r=="number"?this._size=r:(this.nullabilityBuffer=r,this._size=r.size())}getValue(t){return this.nullabilityBuffer&&!this.nullabilityBuffer.get(t)?null:this.getValueFromBuffer(t)}has(t){var e;return((e=this.nullabilityBuffer)==null?void 0:e.get(t))||!this.nullabilityBuffer}get name(){return this._name}get size(){return this._size}},es=class extends Tr{},yu=class extends es{getValueFromBuffer(t){return this.dataBuffer[t]}},mu=class extends es{getValueFromBuffer(t){return this.dataBuffer[t]}},Cy=class extends Tr{constructor(t,e,r,i){super(t,e,i),this.delta=r}},gu=class extends Cy{constructor(t,e,r,i,n){super(t,n?Int32Array.of(e):Uint32Array.of(e),r,i)}getValueFromBuffer(t){return this.dataBuffer[0]+t*this.delta}},xu=class extends Tr{constructor(t,e,r,i){super(t,i?Int32Array.of(e):Uint32Array.of(e),r)}getValueFromBuffer(t){return this.dataBuffer[0]}},Tw=class{constructor(t,e,r,i,n=4096){if(this._name=t,this._geometryVector=e,this._idVector=r,this._propertyVectors=i,this._extent=n,t.length===0)throw Error("Missing layer name")}get name(){return this._name}get idVector(){return this._idVector}get geometryVector(){return this._geometryVector}get propertyVectors(){var t;return(t=this._propertyVectors)!=null?t:[]}getPropertyVector(t){return this.propertyVectorsMap||(this.propertyVectorsMap=new Map(this.propertyVectors.map(e=>[e.name,e]))),this.propertyVectorsMap.get(t)}get numFeatures(){return this.geometryVector.numGeometries}get extent(){return this._extent}getFeatures(){let t=[],e=this.geometryVector.getGeometries();for(let r=0;r>>32-t;var pl=vu,bu=65536;function wu(t,e){return t-t%e}function kw(t){return wu(t+31,32)}function Py(t){if(!Number.isFinite(t)||t<=0)return bu;let e=wu(Math.floor(t),256);return e===0?256:e}function Iw(t){let e=t>>>0;return((e&255)<<24|(e&65280)<<8|e>>>8&65280|e>>>24&255)>>>0}function Cw(t,e,r,i){let n=i,a=t[e]>>>0,s=t[e+1]>>>0;r[n++]=a>>>0&3,r[n++]=a>>>2&3,r[n++]=a>>>4&3,r[n++]=a>>>6&3,r[n++]=a>>>8&3,r[n++]=a>>>10&3,r[n++]=a>>>12&3,r[n++]=a>>>14&3,r[n++]=a>>>16&3,r[n++]=a>>>18&3,r[n++]=a>>>20&3,r[n++]=a>>>22&3,r[n++]=a>>>24&3,r[n++]=a>>>26&3,r[n++]=a>>>28&3,r[n++]=a>>>30&3,r[n++]=s>>>0&3,r[n++]=s>>>2&3,r[n++]=s>>>4&3,r[n++]=s>>>6&3,r[n++]=s>>>8&3,r[n++]=s>>>10&3,r[n++]=s>>>12&3,r[n++]=s>>>14&3,r[n++]=s>>>16&3,r[n++]=s>>>18&3,r[n++]=s>>>20&3,r[n++]=s>>>22&3,r[n++]=s>>>24&3,r[n++]=s>>>26&3,r[n++]=s>>>28&3,r[n]=s>>>30&3}function Mw(t,e,r,i){let n=i,a=t[e]>>>0,s=t[e+1]>>>0,o=t[e+2]>>>0;r[n++]=a>>>0&7,r[n++]=a>>>3&7,r[n++]=a>>>6&7,r[n++]=a>>>9&7,r[n++]=a>>>12&7,r[n++]=a>>>15&7,r[n++]=a>>>18&7,r[n++]=a>>>21&7,r[n++]=a>>>24&7,r[n++]=a>>>27&7,r[n++]=(a>>>30|(s&1)<<2)&7,r[n++]=s>>>1&7,r[n++]=s>>>4&7,r[n++]=s>>>7&7,r[n++]=s>>>10&7,r[n++]=s>>>13&7,r[n++]=s>>>16&7,r[n++]=s>>>19&7,r[n++]=s>>>22&7,r[n++]=s>>>25&7,r[n++]=s>>>28&7,r[n++]=(s>>>31|(o&3)<<1)&7,r[n++]=o>>>2&7,r[n++]=o>>>5&7,r[n++]=o>>>8&7,r[n++]=o>>>11&7,r[n++]=o>>>14&7,r[n++]=o>>>17&7,r[n++]=o>>>20&7,r[n++]=o>>>23&7,r[n++]=o>>>26&7,r[n]=o>>>29&7}function Bw(t,e,r,i){let n=i,a=t[e]>>>0,s=t[e+1]>>>0,o=t[e+2]>>>0,l=t[e+3]>>>0;r[n++]=a>>>0&15,r[n++]=a>>>4&15,r[n++]=a>>>8&15,r[n++]=a>>>12&15,r[n++]=a>>>16&15,r[n++]=a>>>20&15,r[n++]=a>>>24&15,r[n++]=a>>>28&15,r[n++]=s>>>0&15,r[n++]=s>>>4&15,r[n++]=s>>>8&15,r[n++]=s>>>12&15,r[n++]=s>>>16&15,r[n++]=s>>>20&15,r[n++]=s>>>24&15,r[n++]=s>>>28&15,r[n++]=o>>>0&15,r[n++]=o>>>4&15,r[n++]=o>>>8&15,r[n++]=o>>>12&15,r[n++]=o>>>16&15,r[n++]=o>>>20&15,r[n++]=o>>>24&15,r[n++]=o>>>28&15,r[n++]=l>>>0&15,r[n++]=l>>>4&15,r[n++]=l>>>8&15,r[n++]=l>>>12&15,r[n++]=l>>>16&15,r[n++]=l>>>20&15,r[n++]=l>>>24&15,r[n]=l>>>28&15}function Pw(t,e,r,i){let n=i,a=t[e]>>>0,s=t[e+1]>>>0,o=t[e+2]>>>0,l=t[e+3]>>>0,u=t[e+4]>>>0;r[n++]=a>>>0&31,r[n++]=a>>>5&31,r[n++]=a>>>10&31,r[n++]=a>>>15&31,r[n++]=a>>>20&31,r[n++]=a>>>25&31,r[n++]=(a>>>30|(s&7)<<2)&31,r[n++]=s>>>3&31,r[n++]=s>>>8&31,r[n++]=s>>>13&31,r[n++]=s>>>18&31,r[n++]=s>>>23&31,r[n++]=(s>>>28|(o&1)<<4)&31,r[n++]=o>>>1&31,r[n++]=o>>>6&31,r[n++]=o>>>11&31,r[n++]=o>>>16&31,r[n++]=o>>>21&31,r[n++]=o>>>26&31,r[n++]=(o>>>31|(l&15)<<1)&31,r[n++]=l>>>4&31,r[n++]=l>>>9&31,r[n++]=l>>>14&31,r[n++]=l>>>19&31,r[n++]=l>>>24&31,r[n++]=(l>>>29|(u&3)<<3)&31,r[n++]=u>>>2&31,r[n++]=u>>>7&31,r[n++]=u>>>12&31,r[n++]=u>>>17&31,r[n++]=u>>>22&31,r[n]=u>>>27&31}function zw(t,e,r,i){let n=i,a=t[e]>>>0,s=t[e+1]>>>0,o=t[e+2]>>>0,l=t[e+3]>>>0,u=t[e+4]>>>0,h=t[e+5]>>>0;r[n++]=a>>>0&63,r[n++]=a>>>6&63,r[n++]=a>>>12&63,r[n++]=a>>>18&63,r[n++]=a>>>24&63,r[n++]=(a>>>30|(s&15)<<2)&63,r[n++]=s>>>4&63,r[n++]=s>>>10&63,r[n++]=s>>>16&63,r[n++]=s>>>22&63,r[n++]=(s>>>28|(o&3)<<4)&63,r[n++]=o>>>2&63,r[n++]=o>>>8&63,r[n++]=o>>>14&63,r[n++]=o>>>20&63,r[n++]=o>>>26&63,r[n++]=l>>>0&63,r[n++]=l>>>6&63,r[n++]=l>>>12&63,r[n++]=l>>>18&63,r[n++]=l>>>24&63,r[n++]=(l>>>30|(u&15)<<2)&63,r[n++]=u>>>4&63,r[n++]=u>>>10&63,r[n++]=u>>>16&63,r[n++]=u>>>22&63,r[n++]=(u>>>28|(h&3)<<4)&63,r[n++]=h>>>2&63,r[n++]=h>>>8&63,r[n++]=h>>>14&63,r[n++]=h>>>20&63,r[n]=h>>>26&63}function Lw(t,e,r,i){let n=i,a=t[e]>>>0,s=t[e+1]>>>0,o=t[e+2]>>>0,l=t[e+3]>>>0,u=t[e+4]>>>0,h=t[e+5]>>>0,c=t[e+6]>>>0;r[n++]=a>>>0&127,r[n++]=a>>>7&127,r[n++]=a>>>14&127,r[n++]=a>>>21&127,r[n++]=(a>>>28|(s&7)<<4)&127,r[n++]=s>>>3&127,r[n++]=s>>>10&127,r[n++]=s>>>17&127,r[n++]=s>>>24&127,r[n++]=(s>>>31|(o&63)<<1)&127,r[n++]=o>>>6&127,r[n++]=o>>>13&127,r[n++]=o>>>20&127,r[n++]=(o>>>27|(l&3)<<5)&127,r[n++]=l>>>2&127,r[n++]=l>>>9&127,r[n++]=l>>>16&127,r[n++]=l>>>23&127,r[n++]=(l>>>30|(u&31)<<2)&127,r[n++]=u>>>5&127,r[n++]=u>>>12&127,r[n++]=u>>>19&127,r[n++]=(u>>>26|(h&1)<<6)&127,r[n++]=h>>>1&127,r[n++]=h>>>8&127,r[n++]=h>>>15&127,r[n++]=h>>>22&127,r[n++]=(h>>>29|(c&15)<<3)&127,r[n++]=c>>>4&127,r[n++]=c>>>11&127,r[n++]=c>>>18&127,r[n]=c>>>25&127}function Vw(t,e,r,i){let n=i,a=t[e]>>>0,s=t[e+1]>>>0,o=t[e+2]>>>0,l=t[e+3]>>>0,u=t[e+4]>>>0,h=t[e+5]>>>0,c=t[e+6]>>>0,p=t[e+7]>>>0;r[n++]=a>>>0&255,r[n++]=a>>>8&255,r[n++]=a>>>16&255,r[n++]=a>>>24&255,r[n++]=s>>>0&255,r[n++]=s>>>8&255,r[n++]=s>>>16&255,r[n++]=s>>>24&255,r[n++]=o>>>0&255,r[n++]=o>>>8&255,r[n++]=o>>>16&255,r[n++]=o>>>24&255,r[n++]=l>>>0&255,r[n++]=l>>>8&255,r[n++]=l>>>16&255,r[n++]=l>>>24&255,r[n++]=u>>>0&255,r[n++]=u>>>8&255,r[n++]=u>>>16&255,r[n++]=u>>>24&255,r[n++]=h>>>0&255,r[n++]=h>>>8&255,r[n++]=h>>>16&255,r[n++]=h>>>24&255,r[n++]=c>>>0&255,r[n++]=c>>>8&255,r[n++]=c>>>16&255,r[n++]=c>>>24&255,r[n++]=p>>>0&255,r[n++]=p>>>8&255,r[n++]=p>>>16&255,r[n]=p>>>24&255}function Ow(t,e,r,i){let n=i,a=t[e]>>>0,s=t[e+1]>>>0,o=t[e+2]>>>0,l=t[e+3]>>>0,u=t[e+4]>>>0,h=t[e+5]>>>0,c=t[e+6]>>>0,p=t[e+7]>>>0,f=t[e+8]>>>0;r[n++]=a>>>0&511,r[n++]=a>>>9&511,r[n++]=a>>>18&511,r[n++]=(a>>>27|(s&15)<<5)&511,r[n++]=s>>>4&511,r[n++]=s>>>13&511,r[n++]=s>>>22&511,r[n++]=(s>>>31|(o&255)<<1)&511,r[n++]=o>>>8&511,r[n++]=o>>>17&511,r[n++]=(o>>>26|(l&7)<<6)&511,r[n++]=l>>>3&511,r[n++]=l>>>12&511,r[n++]=l>>>21&511,r[n++]=(l>>>30|(u&127)<<2)&511,r[n++]=u>>>7&511,r[n++]=u>>>16&511,r[n++]=(u>>>25|(h&3)<<7)&511,r[n++]=h>>>2&511,r[n++]=h>>>11&511,r[n++]=h>>>20&511,r[n++]=(h>>>29|(c&63)<<3)&511,r[n++]=c>>>6&511,r[n++]=c>>>15&511,r[n++]=(c>>>24|(p&1)<<8)&511,r[n++]=p>>>1&511,r[n++]=p>>>10&511,r[n++]=p>>>19&511,r[n++]=(p>>>28|(f&31)<<4)&511,r[n++]=f>>>5&511,r[n++]=f>>>14&511,r[n]=f>>>23&511}function Rw(t,e,r,i){let n=i,a=t[e]>>>0,s=t[e+1]>>>0,o=t[e+2]>>>0,l=t[e+3]>>>0,u=t[e+4]>>>0,h=t[e+5]>>>0,c=t[e+6]>>>0,p=t[e+7]>>>0,f=t[e+8]>>>0,d=t[e+9]>>>0;r[n++]=a>>>0&1023,r[n++]=a>>>10&1023,r[n++]=a>>>20&1023,r[n++]=(a>>>30|(s&255)<<2)&1023,r[n++]=s>>>8&1023,r[n++]=s>>>18&1023,r[n++]=(s>>>28|(o&63)<<4)&1023,r[n++]=o>>>6&1023,r[n++]=o>>>16&1023,r[n++]=(o>>>26|(l&15)<<6)&1023,r[n++]=l>>>4&1023,r[n++]=l>>>14&1023,r[n++]=(l>>>24|(u&3)<<8)&1023,r[n++]=u>>>2&1023,r[n++]=u>>>12&1023,r[n++]=u>>>22&1023,r[n++]=h>>>0&1023,r[n++]=h>>>10&1023,r[n++]=h>>>20&1023,r[n++]=(h>>>30|(c&255)<<2)&1023,r[n++]=c>>>8&1023,r[n++]=c>>>18&1023,r[n++]=(c>>>28|(p&63)<<4)&1023,r[n++]=p>>>6&1023,r[n++]=p>>>16&1023,r[n++]=(p>>>26|(f&15)<<6)&1023,r[n++]=f>>>4&1023,r[n++]=f>>>14&1023,r[n++]=(f>>>24|(d&3)<<8)&1023,r[n++]=d>>>2&1023,r[n++]=d>>>12&1023,r[n]=d>>>22&1023}function $w(t,e,r,i){let n=i,a=t[e]>>>0,s=t[e+1]>>>0,o=t[e+2]>>>0,l=t[e+3]>>>0,u=t[e+4]>>>0,h=t[e+5]>>>0,c=t[e+6]>>>0,p=t[e+7]>>>0,f=t[e+8]>>>0,d=t[e+9]>>>0,y=t[e+10]>>>0;r[n++]=a>>>0&2047,r[n++]=a>>>11&2047,r[n++]=(a>>>22|(s&1)<<10)&2047,r[n++]=s>>>1&2047,r[n++]=s>>>12&2047,r[n++]=(s>>>23|(o&3)<<9)&2047,r[n++]=o>>>2&2047,r[n++]=o>>>13&2047,r[n++]=(o>>>24|(l&7)<<8)&2047,r[n++]=l>>>3&2047,r[n++]=l>>>14&2047,r[n++]=(l>>>25|(u&15)<<7)&2047,r[n++]=u>>>4&2047,r[n++]=u>>>15&2047,r[n++]=(u>>>26|(h&31)<<6)&2047,r[n++]=h>>>5&2047,r[n++]=h>>>16&2047,r[n++]=(h>>>27|(c&63)<<5)&2047,r[n++]=c>>>6&2047,r[n++]=c>>>17&2047,r[n++]=(c>>>28|(p&127)<<4)&2047,r[n++]=p>>>7&2047,r[n++]=p>>>18&2047,r[n++]=(p>>>29|(f&255)<<3)&2047,r[n++]=f>>>8&2047,r[n++]=f>>>19&2047,r[n++]=(f>>>30|(d&511)<<2)&2047,r[n++]=d>>>9&2047,r[n++]=d>>>20&2047,r[n++]=(d>>>31|(y&1023)<<1)&2047,r[n++]=y>>>10&2047,r[n]=y>>>21&2047}function Nw(t,e,r,i){let n=i,a=t[e]>>>0,s=t[e+1]>>>0,o=t[e+2]>>>0,l=t[e+3]>>>0,u=t[e+4]>>>0,h=t[e+5]>>>0,c=t[e+6]>>>0,p=t[e+7]>>>0,f=t[e+8]>>>0,d=t[e+9]>>>0,y=t[e+10]>>>0,m=t[e+11]>>>0;r[n++]=a>>>0&4095,r[n++]=a>>>12&4095,r[n++]=(a>>>24|(s&15)<<8)&4095,r[n++]=s>>>4&4095,r[n++]=s>>>16&4095,r[n++]=(s>>>28|(o&255)<<4)&4095,r[n++]=o>>>8&4095,r[n++]=o>>>20&4095,r[n++]=l>>>0&4095,r[n++]=l>>>12&4095,r[n++]=(l>>>24|(u&15)<<8)&4095,r[n++]=u>>>4&4095,r[n++]=u>>>16&4095,r[n++]=(u>>>28|(h&255)<<4)&4095,r[n++]=h>>>8&4095,r[n++]=h>>>20&4095,r[n++]=c>>>0&4095,r[n++]=c>>>12&4095,r[n++]=(c>>>24|(p&15)<<8)&4095,r[n++]=p>>>4&4095,r[n++]=p>>>16&4095,r[n++]=(p>>>28|(f&255)<<4)&4095,r[n++]=f>>>8&4095,r[n++]=f>>>20&4095,r[n++]=d>>>0&4095,r[n++]=d>>>12&4095,r[n++]=(d>>>24|(y&15)<<8)&4095,r[n++]=y>>>4&4095,r[n++]=y>>>16&4095,r[n++]=(y>>>28|(m&255)<<4)&4095,r[n++]=m>>>8&4095,r[n]=m>>>20&4095}function Uw(t,e,r,i){let n=i,a=t[e]>>>0,s=t[e+1]>>>0,o=t[e+2]>>>0,l=t[e+3]>>>0,u=t[e+4]>>>0,h=t[e+5]>>>0,c=t[e+6]>>>0,p=t[e+7]>>>0,f=t[e+8]>>>0,d=t[e+9]>>>0,y=t[e+10]>>>0,m=t[e+11]>>>0,g=t[e+12]>>>0,x=t[e+13]>>>0,v=t[e+14]>>>0,b=t[e+15]>>>0;r[n++]=a>>>0&65535,r[n++]=a>>>16&65535,r[n++]=s>>>0&65535,r[n++]=s>>>16&65535,r[n++]=o>>>0&65535,r[n++]=o>>>16&65535,r[n++]=l>>>0&65535,r[n++]=l>>>16&65535,r[n++]=u>>>0&65535,r[n++]=u>>>16&65535,r[n++]=h>>>0&65535,r[n++]=h>>>16&65535,r[n++]=c>>>0&65535,r[n++]=c>>>16&65535,r[n++]=p>>>0&65535,r[n++]=p>>>16&65535,r[n++]=f>>>0&65535,r[n++]=f>>>16&65535,r[n++]=d>>>0&65535,r[n++]=d>>>16&65535,r[n++]=y>>>0&65535,r[n++]=y>>>16&65535,r[n++]=m>>>0&65535,r[n++]=m>>>16&65535,r[n++]=g>>>0&65535,r[n++]=g>>>16&65535,r[n++]=x>>>0&65535,r[n++]=x>>>16&65535,r[n++]=v>>>0&65535,r[n++]=v>>>16&65535,r[n++]=b>>>0&65535,r[n]=b>>>16&65535}function qw(t,e,r,i){let n=i,a=e;for(let s=0;s<8;s++){let o=t[a++]>>>0;r[n++]=o>>>0&1,r[n++]=o>>>1&1,r[n++]=o>>>2&1,r[n++]=o>>>3&1,r[n++]=o>>>4&1,r[n++]=o>>>5&1,r[n++]=o>>>6&1,r[n++]=o>>>7&1,r[n++]=o>>>8&1,r[n++]=o>>>9&1,r[n++]=o>>>10&1,r[n++]=o>>>11&1,r[n++]=o>>>12&1,r[n++]=o>>>13&1,r[n++]=o>>>14&1,r[n++]=o>>>15&1,r[n++]=o>>>16&1,r[n++]=o>>>17&1,r[n++]=o>>>18&1,r[n++]=o>>>19&1,r[n++]=o>>>20&1,r[n++]=o>>>21&1,r[n++]=o>>>22&1,r[n++]=o>>>23&1,r[n++]=o>>>24&1,r[n++]=o>>>25&1,r[n++]=o>>>26&1,r[n++]=o>>>27&1,r[n++]=o>>>28&1,r[n++]=o>>>29&1,r[n++]=o>>>30&1,r[n++]=o>>>31&1}}function jw(t,e,r,i){let n=i,a=e;for(let s=0;s<8;s++){let o=t[a++]>>>0,l=t[a++]>>>0;r[n++]=o>>>0&3,r[n++]=o>>>2&3,r[n++]=o>>>4&3,r[n++]=o>>>6&3,r[n++]=o>>>8&3,r[n++]=o>>>10&3,r[n++]=o>>>12&3,r[n++]=o>>>14&3,r[n++]=o>>>16&3,r[n++]=o>>>18&3,r[n++]=o>>>20&3,r[n++]=o>>>22&3,r[n++]=o>>>24&3,r[n++]=o>>>26&3,r[n++]=o>>>28&3,r[n++]=o>>>30&3,r[n++]=l>>>0&3,r[n++]=l>>>2&3,r[n++]=l>>>4&3,r[n++]=l>>>6&3,r[n++]=l>>>8&3,r[n++]=l>>>10&3,r[n++]=l>>>12&3,r[n++]=l>>>14&3,r[n++]=l>>>16&3,r[n++]=l>>>18&3,r[n++]=l>>>20&3,r[n++]=l>>>22&3,r[n++]=l>>>24&3,r[n++]=l>>>26&3,r[n++]=l>>>28&3,r[n++]=l>>>30&3}}function Gw(t,e,r,i){let n=i,a=e;for(let s=0;s<8;s++){let o=t[a++]>>>0,l=t[a++]>>>0,u=t[a++]>>>0;r[n++]=o>>>0&7,r[n++]=o>>>3&7,r[n++]=o>>>6&7,r[n++]=o>>>9&7,r[n++]=o>>>12&7,r[n++]=o>>>15&7,r[n++]=o>>>18&7,r[n++]=o>>>21&7,r[n++]=o>>>24&7,r[n++]=o>>>27&7,r[n++]=(o>>>30|(l&1)<<2)&7,r[n++]=l>>>1&7,r[n++]=l>>>4&7,r[n++]=l>>>7&7,r[n++]=l>>>10&7,r[n++]=l>>>13&7,r[n++]=l>>>16&7,r[n++]=l>>>19&7,r[n++]=l>>>22&7,r[n++]=l>>>25&7,r[n++]=l>>>28&7,r[n++]=(l>>>31|(u&3)<<1)&7,r[n++]=u>>>2&7,r[n++]=u>>>5&7,r[n++]=u>>>8&7,r[n++]=u>>>11&7,r[n++]=u>>>14&7,r[n++]=u>>>17&7,r[n++]=u>>>20&7,r[n++]=u>>>23&7,r[n++]=u>>>26&7,r[n++]=u>>>29&7}}function Xw(t,e,r,i){let n=i,a=e;for(let s=0;s<8;s++){let o=t[a++]>>>0,l=t[a++]>>>0,u=t[a++]>>>0,h=t[a++]>>>0;r[n++]=o>>>0&15,r[n++]=o>>>4&15,r[n++]=o>>>8&15,r[n++]=o>>>12&15,r[n++]=o>>>16&15,r[n++]=o>>>20&15,r[n++]=o>>>24&15,r[n++]=o>>>28&15,r[n++]=l>>>0&15,r[n++]=l>>>4&15,r[n++]=l>>>8&15,r[n++]=l>>>12&15,r[n++]=l>>>16&15,r[n++]=l>>>20&15,r[n++]=l>>>24&15,r[n++]=l>>>28&15,r[n++]=u>>>0&15,r[n++]=u>>>4&15,r[n++]=u>>>8&15,r[n++]=u>>>12&15,r[n++]=u>>>16&15,r[n++]=u>>>20&15,r[n++]=u>>>24&15,r[n++]=u>>>28&15,r[n++]=h>>>0&15,r[n++]=h>>>4&15,r[n++]=h>>>8&15,r[n++]=h>>>12&15,r[n++]=h>>>16&15,r[n++]=h>>>20&15,r[n++]=h>>>24&15,r[n++]=h>>>28&15}}function Yw(t,e,r,i){let n=i,a=e;for(let s=0;s<8;s++){let o=t[a++]>>>0,l=t[a++]>>>0,u=t[a++]>>>0,h=t[a++]>>>0,c=t[a++]>>>0;r[n++]=o>>>0&31,r[n++]=o>>>5&31,r[n++]=o>>>10&31,r[n++]=o>>>15&31,r[n++]=o>>>20&31,r[n++]=o>>>25&31,r[n++]=(o>>>30|(l&7)<<2)&31,r[n++]=l>>>3&31,r[n++]=l>>>8&31,r[n++]=l>>>13&31,r[n++]=l>>>18&31,r[n++]=l>>>23&31,r[n++]=(l>>>28|(u&1)<<4)&31,r[n++]=u>>>1&31,r[n++]=u>>>6&31,r[n++]=u>>>11&31,r[n++]=u>>>16&31,r[n++]=u>>>21&31,r[n++]=u>>>26&31,r[n++]=(u>>>31|(h&15)<<1)&31,r[n++]=h>>>4&31,r[n++]=h>>>9&31,r[n++]=h>>>14&31,r[n++]=h>>>19&31,r[n++]=h>>>24&31,r[n++]=(h>>>29|(c&3)<<3)&31,r[n++]=c>>>2&31,r[n++]=c>>>7&31,r[n++]=c>>>12&31,r[n++]=c>>>17&31,r[n++]=c>>>22&31,r[n++]=c>>>27&31}}function Ww(t,e,r,i){let n=i,a=e;for(let s=0;s<8;s++){let o=t[a++]>>>0,l=t[a++]>>>0,u=t[a++]>>>0,h=t[a++]>>>0,c=t[a++]>>>0,p=t[a++]>>>0;r[n++]=o>>>0&63,r[n++]=o>>>6&63,r[n++]=o>>>12&63,r[n++]=o>>>18&63,r[n++]=o>>>24&63,r[n++]=(o>>>30|(l&15)<<2)&63,r[n++]=l>>>4&63,r[n++]=l>>>10&63,r[n++]=l>>>16&63,r[n++]=l>>>22&63,r[n++]=(l>>>28|(u&3)<<4)&63,r[n++]=u>>>2&63,r[n++]=u>>>8&63,r[n++]=u>>>14&63,r[n++]=u>>>20&63,r[n++]=u>>>26&63,r[n++]=h>>>0&63,r[n++]=h>>>6&63,r[n++]=h>>>12&63,r[n++]=h>>>18&63,r[n++]=h>>>24&63,r[n++]=(h>>>30|(c&15)<<2)&63,r[n++]=c>>>4&63,r[n++]=c>>>10&63,r[n++]=c>>>16&63,r[n++]=c>>>22&63,r[n++]=(c>>>28|(p&3)<<4)&63,r[n++]=p>>>2&63,r[n++]=p>>>8&63,r[n++]=p>>>14&63,r[n++]=p>>>20&63,r[n++]=p>>>26&63}}function Zw(t,e,r,i){let n=i,a=e;for(let s=0;s<8;s++){let o=t[a++]>>>0,l=t[a++]>>>0,u=t[a++]>>>0,h=t[a++]>>>0,c=t[a++]>>>0,p=t[a++]>>>0,f=t[a++]>>>0;r[n++]=o>>>0&127,r[n++]=o>>>7&127,r[n++]=o>>>14&127,r[n++]=o>>>21&127,r[n++]=(o>>>28|(l&7)<<4)&127,r[n++]=l>>>3&127,r[n++]=l>>>10&127,r[n++]=l>>>17&127,r[n++]=l>>>24&127,r[n++]=(l>>>31|(u&63)<<1)&127,r[n++]=u>>>6&127,r[n++]=u>>>13&127,r[n++]=u>>>20&127,r[n++]=(u>>>27|(h&3)<<5)&127,r[n++]=h>>>2&127,r[n++]=h>>>9&127,r[n++]=h>>>16&127,r[n++]=h>>>23&127,r[n++]=(h>>>30|(c&31)<<2)&127,r[n++]=c>>>5&127,r[n++]=c>>>12&127,r[n++]=c>>>19&127,r[n++]=(c>>>26|(p&1)<<6)&127,r[n++]=p>>>1&127,r[n++]=p>>>8&127,r[n++]=p>>>15&127,r[n++]=p>>>22&127,r[n++]=(p>>>29|(f&15)<<3)&127,r[n++]=f>>>4&127,r[n++]=f>>>11&127,r[n++]=f>>>18&127,r[n++]=f>>>25&127}}function Hw(t,e,r,i){let n=i,a=e;for(let s=0;s<8;s++){let o=t[a++]>>>0,l=t[a++]>>>0,u=t[a++]>>>0,h=t[a++]>>>0,c=t[a++]>>>0,p=t[a++]>>>0,f=t[a++]>>>0,d=t[a++]>>>0;r[n++]=o>>>0&255,r[n++]=o>>>8&255,r[n++]=o>>>16&255,r[n++]=o>>>24&255,r[n++]=l>>>0&255,r[n++]=l>>>8&255,r[n++]=l>>>16&255,r[n++]=l>>>24&255,r[n++]=u>>>0&255,r[n++]=u>>>8&255,r[n++]=u>>>16&255,r[n++]=u>>>24&255,r[n++]=h>>>0&255,r[n++]=h>>>8&255,r[n++]=h>>>16&255,r[n++]=h>>>24&255,r[n++]=c>>>0&255,r[n++]=c>>>8&255,r[n++]=c>>>16&255,r[n++]=c>>>24&255,r[n++]=p>>>0&255,r[n++]=p>>>8&255,r[n++]=p>>>16&255,r[n++]=p>>>24&255,r[n++]=f>>>0&255,r[n++]=f>>>8&255,r[n++]=f>>>16&255,r[n++]=f>>>24&255,r[n++]=d>>>0&255,r[n++]=d>>>8&255,r[n++]=d>>>16&255,r[n++]=d>>>24&255}}function Kw(t,e,r,i){let n=i,a=e;for(let s=0;s<128;s++){let o=t[a++]>>>0;r[n++]=o&65535,r[n++]=o>>>16&65535}}function Jw(t,e,r,i,n){let a=pl[n]>>>0,s=e,o=0,l=t[s]>>>0,u=i;for(let h=0;h<8;h++){for(let c=0;c<32;c++)if(o+n<=32){let p=l>>>o&a;r[u+c]=p|0,o+=n,o===32&&(o=0,s++,c!==31&&(l=t[s]>>>0))}else{let p=32-o,f=l>>>o;s++,l=t[s]>>>0;let d=n-p,y=-1>>>32-d>>>0,m=(f|(l&y)<>>0)}}var fl=Py(bu),Qw=3*fl/256+fl|0;function zy(){let t=new Uint8Array(Qw);return{dataToBePacked:Array(33),dataPointers:new Int32Array(33),byteContainer:t,byteContainerI32:new Int32Array(t.buffer,t.byteOffset,t.byteLength>>>2),exceptionSizes:new Int32Array(33)}}function t3(t=16){if(t<0)throw RangeError(`initialEncodedWordCapacity must be >= 0, got ${t}`);let e=Math.max(16,t|0);return{encodedWords:new Uint32Array(e),decoderWorkspace:zy()}}function e3(t,e){if(e<=t.encodedWords.length)return t.encodedWords;let r=new Uint32Array(Math.max(16,e*2));return t.encodedWords=r,r}function r3(t,e,r,i){i.byteContainer.length>>2;if(n.byteOffset&3)for(let o=0;o>>8&255,n[u+2|0]=l>>>16&255,n[u+3|0]=l>>>24&255}else{let o=i.byteContainerI32;(!o||o.buffer!==n.buffer||o.byteOffset!==n.byteOffset||o.length>>2)),o.set(t.subarray(e,e+a))}let s=r&3;if(s>0){let o=t[e+a|0]|0,l=a<<2;for(let u=0;u>>(u<<3)&255}return n}function i3(t,e,r){let i=t[e++]|0,n=r.dataToBePacked;for(let a=2;a<=32;a=a+1|0){if(!(i>>>a-1&1))continue;if(e>=t.length)throw Error(`FastPFOR decode: truncated exception stream header (bitWidth=${a}, streamWordIndex=${e}, needWords=1, availableWords=${t.length-e}, encodedWords=${t.length})`);let s=t[e++]>>>0,o=kw(s),l=s*a+31>>>5;if(e+l>t.length)throw Error(`FastPFOR decode: truncated exception stream (bitWidth=${a}, size=${s}, streamWordIndex=${e}, needWords=${l}, availableWords=${t.length-e}, encodedWords=${t.length})`);let u=n[a];(!u||u.length>>5)|0,r.exceptionSizes[a]=s}return e}function n3(t,e,r,i,n){switch(n){case 1:qw(t,e,r,i);break;case 2:jw(t,e,r,i);break;case 3:Gw(t,e,r,i);break;case 4:Xw(t,e,r,i);break;case 5:Yw(t,e,r,i);break;case 6:Ww(t,e,r,i);break;case 7:Zw(t,e,r,i);break;case 8:Hw(t,e,r,i);break;case 16:Kw(t,e,r,i);break;default:Jw(t,e,r,i,n)}return e+(n<<3)|0}function a3(t,e,r,i){if(r+2>e)throw Error(`FastPFOR decode: byteContainer underflow at block=${i} (need 2 bytes for [bitWidth, exceptionCount], bytePos=${r}, byteSize=${e})`);let n=t[r++],a=t[r++];if(n>32)throw Error(`FastPFOR decode: invalid bitWidth=${n} at block=${i} (expected 0..32). This likely indicates corrupted or truncated input.`);return{bitWidth:n,exceptionCount:a,bytePosIn:r}}function s3(t,e,r,i,n,a){if(r+1>e)throw Error(`FastPFOR decode: exception header underflow at block=${a} (need 1 byte for maxBits, bytePos=${r}, byteSize=${e})`);let s=t[r++];if(s32)throw Error(`FastPFOR decode: invalid maxBits=${s} at block=${a} (bitWidth=${i}, expected ${i}..32)`);let o=s-i|0;if(o<1||o>32)throw Error(`FastPFOR decode: invalid exceptionBitWidth=${o} at block=${a} (bitWidth=${i}, maxBits=${s})`);if(r+n>e)throw Error(`FastPFOR decode: exception positions underflow at block=${a} (need=${n}, have=${e-r})`);return{maxBits:s,exceptionBitWidth:o,bytePosIn:r}}function o3(t,e,r,i,n,a,s,o,l){let{maxBits:u,exceptionBitWidth:h,bytePosIn:c}=s3(n,a,s,r,i,l);if(s=c,h===1){let m=1<y)throw Error(`FastPFOR decode: exception stream overflow for exceptionBitWidth=${h} (ptr=${d}, need ${i}, size=${y}) at block ${l}`);for(let m=0;m0&&(c=o3(n,m,d,y,o,l,c,u,p))}if(h!==i)throw Error(`FastPFOR decode: packed region mismatch (pageStart=${e}, packedStart=${r}, consumedPackedEnd=${h}, expectedPackedEnd=${i}, packedWords=${i-r}, encoded.length=${t.length})`)}function u3(t,e,r,i,n,a){let s=r|0,o=t[s]|0;if(o<=0||s+o>t.length-1)throw Error(`FastPFOR decode: invalid whereMeta=${o} at pageStart=${s} (expected > 0 and pageStart+whereMeta < encoded.length=${t.length})`);let l=s+1|0,u=s+o|0,h=t[u]>>>0,c=h+3>>>2,p=u+1,f=p+c;if(f>=t.length)throw Error(`FastPFOR decode: invalid byteSize=${h} (metaInts=${c}, pageStart=${s}, packedEnd=${u}, byteContainerStart=${p}) causes bitmapPos=${f} out of bounds (encoded.length=${t.length})`);let d=r3(t,p,h,a),y=h,m=i3(t,f,a);return a.dataPointers.fill(0),l3(t,s,l,u,e,i|0,n/256|0,d,y,a),m}function h3(t,e,r,i,n,a){let s=i+wu(n,256),o=i,l=r;for(;o!==s;){let u=Math.min(fl,s-o);l=u3(t,e,l,o,u,a),o=o+u|0}return l}function c3(t,e,r,i,n,a){if(a===0)return e;let s=0,o=e,l=e+r,u=n,h=n,c=n+a,p=0,f=0;for(;o>>s&255;if(s+=8,o+=s>>>5,s&=31,p|=(d&127)<28)throw Error(`FastPFOR VByte: unterminated value (expected MSB=1 terminator within 5 bytes; shift=${f}, partial=${p}, decoded=${h-u}/${a}, inPos=${o}, inEnd=${l})`)}if(h!==c)throw Error(`FastPFOR VByte: truncated stream (decoded=${h-u}, expected=${a}, consumedWords=${o-e}/${r}, vbyteStart=${e}, vbyteEnd=${l})`);return o}function p3(t,e,r){let i=0,n=0,a=new Uint32Array(e),s=r!=null?r:zy();if(t.length>0){let u=t[i]|0;if(i=i+1|0,u&255)throw Error(`FastPFOR decode: invalid alignedLength=${u} (expected multiple of 256)`);if(n+u>a.length)throw Error(`FastPFOR decode: output buffer too small (outPos=${n}, alignedLength=${u}, out.length=${a.length})`);i=h3(t,a,i,n,u,s),n=n+u|0}let o=t.length-i|0,l=e-n|0;return c3(t,i,o,a,n,l),a}function f3(t,e,r,i,n){switch(n){case 2:Cw(t,e,r,i);return;case 3:Mw(t,e,r,i);return;case 4:Bw(t,e,r,i);return;case 5:Pw(t,e,r,i);return;case 6:zw(t,e,r,i);return;case 7:Lw(t,e,r,i);return;case 8:Vw(t,e,r,i);return;case 9:Ow(t,e,r,i);return;case 10:Rw(t,e,r,i);return;case 11:$w(t,e,r,i);return;case 12:Nw(t,e,r,i);return;case 16:Uw(t,e,r,i);return;case 32:for(let u=0;u<32;u=u+1|0)r[i+u|0]=t[e+u|0]|0;return}let a=pl[n]>>>0,s=e,o=0,l=t[s]>>>0;for(let u=0;u<32;u++)if(o+n<=32){let h=l>>>o&a;r[i+u]=h|0,o+=n,o===32&&(o=0,s++,u!==31&&(l=t[s]>>>0))}else{let h=32-o,c=l>>>o;s++,l=t[s]>>>0;let p=pl[n-h]>>>0,f=(c|(l&p)<t.length)throw RangeError(`decodeBigEndianInt32sInto: out of bounds (offset=${e}, byteLength=${r}, bytes.length=${t.length})`);let n=Math.floor(r/4),a=r%4!=0,s=a?n+1:n;if(i.length0){let o=t.byteOffset+e;if(o&3)for(let l=0;l=64)throw Error("Varint too long")}return e.set(n),r}function m3(t,e,r){let i=new Float64Array(r);for(let n=0;n>4,n<128||(n=e[r.get()],r.increment(),i|=(n&127)<<3,n<128)||(n=e[r.get()],r.increment(),i|=(n&127)<<10,n<128)||(n=e[r.get()],r.increment(),i|=(n&127)<<17,n<128)||(n=e[r.get()],r.increment(),i|=(n&127)<<24,n<128)||(n=e[r.get()],r.increment(),i|=(n&1)<<31,n<128))return i*4294967296+(t>>>0);throw Error("Expected varint not more than 10 bytes")}function v3(t,e,r,i){return b3(t,e,r,i,t3(r>>>2))}function b3(t,e,r,i,n){let a=i.get();if(r&3)throw Error(`FastPFOR: invalid encodedByteLength=${r} at offset=${a} (encodedBytes.length=${t.length}; expected a multiple of 4 bytes for an int32 big-endian word stream)`);let s=r>>>2,o=e3(n,s);d3(t,a,r,o);let l=p3(o.subarray(0,s),e,n.decoderWorkspace);return i.add(r),l}function tt(t){return t>>>1^-(t&1)}function Ot(t){return t>>BigInt(1)^-(t&BigInt(1))}function He(t){return t%2==1?(t+1)/-2:t/2}function w3(t){let e=new Int32Array(t.length);for(let r=0;r=4)for(;i=4)for(;i=4)for(;r=4)for(let i=t[0];r=4)for(;i=4)for(;l>>0;for(let r=1;r>>0;return e}function hp(t){let e=new BigUint64Array(t.length);e[0]=BigInt.asUintN(64,Ot(t[0]));for(let r=1;r>>0,e[1]=tt(t[1])>>>0;for(let r=2;r>>0,e[r+1]=e[r-1]+tt(t[r+1])>>>0;return e}function L3(t,e,r,i){let n=Vy(t,e,r,i);return new Uint32Array(n)}function V3(t){return t[1]}function O3(t){return tt(t[1])}function R3(t){if(t.length===2){let e=tt(t[1]);return[e,e]}return[tt(t[2]),tt(t[3])]}function $3(t){return t[1]}function N3(t){return Ot(t[1])}function U3(t){if(t.length===2){let e=Ot(t[1]);return[e,e]}return[Ot(t[2]),Ot(t[3])]}var At;(function(t){t.PRESENT="PRESENT",t.DATA="DATA",t.OFFSET="OFFSET",t.LENGTH="LENGTH"})(At||(At={}));var qt;(function(t){t.NONE="NONE",t.SINGLE="SINGLE",t.SHARED="SHARED",t.VERTEX="VERTEX",t.MORTON="MORTON",t.FSST="FSST"})(qt||(qt={}));var be;(function(t){t.VERTEX="VERTEX",t.INDEX="INDEX",t.STRING="STRING",t.KEY="KEY"})(be||(be={}));var Ft;(function(t){t.VAR_BINARY="VAR_BINARY",t.GEOMETRIES="GEOMETRIES",t.PARTS="PARTS",t.RINGS="RINGS",t.TRIANGLES="TRIANGLES",t.SYMBOL="SYMBOL",t.DICTIONARY="DICTIONARY"})(Ft||(Ft={}));var q3=[At.PRESENT,At.DATA,At.OFFSET,At.LENGTH],cp=[Z.NONE,Z.DELTA,Z.COMPONENTWISE_DELTA,Z.RLE,Z.MORTON],j3=[re.NONE,re.FAST_PFOR,re.VARINT],G3=[qt.NONE,qt.SINGLE,qt.SHARED,qt.VERTEX,qt.MORTON,qt.FSST],X3=[be.VERTEX,be.INDEX,be.STRING,be.KEY],Y3=[Ft.VAR_BINARY,Ft.GEOMETRIES,Ft.PARTS,Ft.RINGS,Ft.TRIANGLES,Ft.SYMBOL,Ft.DICTIONARY];function ht(t,e){let r=H3(t,e);return r.logicalLevelTechnique1===Z.MORTON?W3(r,t,e):(Z.RLE===r.logicalLevelTechnique1||Z.RLE===r.logicalLevelTechnique2)&&re.NONE!==r.physicalLevelTechnique?Z3(r,t,e):r}function W3(t,e,r){let i=Rt(e,r,2);return{physicalStreamType:t.physicalStreamType,logicalStreamType:t.logicalStreamType,logicalLevelTechnique1:t.logicalLevelTechnique1,logicalLevelTechnique2:t.logicalLevelTechnique2,physicalLevelTechnique:t.physicalLevelTechnique,numValues:t.numValues,byteLength:t.byteLength,decompressedCount:t.decompressedCount,numBits:i[0],coordinateShift:i[1]}}function Z3(t,e,r){let i=Rt(e,r,2);return{physicalStreamType:t.physicalStreamType,logicalStreamType:t.logicalStreamType,logicalLevelTechnique1:t.logicalLevelTechnique1,logicalLevelTechnique2:t.logicalLevelTechnique2,physicalLevelTechnique:t.physicalLevelTechnique,numValues:t.numValues,byteLength:t.byteLength,decompressedCount:i[1],runs:i[0],numRleValues:i[1]}}function H3(t,e){let r=t[e.get()],i=q3[r>>4],n={};switch(i){case At.DATA:n={dictionaryType:G3[r&15]};break;case At.OFFSET:n={offsetType:X3[r&15]};break;case At.LENGTH:n={lengthType:Y3[r&15]}}e.increment();let a=t[e.get()],s=cp[a>>5],o=cp[a>>2&7],l=j3[a&3];e.increment();let u=Rt(t,e,2),h=u[0],c=u[1];return{physicalStreamType:i,logicalStreamType:n,logicalLevelTechnique1:s,logicalLevelTechnique2:o,physicalLevelTechnique:l,numValues:h,byteLength:c,decompressedCount:h}}var ut;(function(t){t[t.FLAT=0]="FLAT",t[t.CONST=1]="CONST",t[t.SEQUENCE=2]="SEQUENCE",t[t.DICTIONARY=3]="DICTIONARY",t[t.FSST_DICTIONARY=4]="FSST_DICTIONARY"})(ut||(ut={}));var de=class{constructor(t,e){this.values=t,this._size=e}get(t){let e=Math.floor(t/8),r=t%8;return(this.values[e]>>r&1)==1}set(t,e){let r=Math.floor(t/8),i=t%8;this.values[r]=this.values[r]|+!!e<>r&1}size(){return this._size}getBuffer(){return this.values}};function kr(t,e,r){if(!e)return t;let i=e.size(),n=t.constructor,a=new n(i),s=0;for(let o=0;o=s);){let o=t[i.increment()];if(o<=127){let l=o+3,u=t[i.increment()],h=Math.min(a+l,e);n.fill(u,a,h),a=h}else{let l=256-o;for(let u=0;u=12?e6.decode(t.subarray(e,r)):r6(t,e,r)}function r6(t,e,r){let i="",n=e;for(;n239?4:a>223?3:a>191?2:1;if(n+o>r)break;let l,u,h;o===1?a<128&&(s=a):o===2?(l=t[n+1],(l&192)==128&&(s=(a&31)<<6|l&63,s<=127&&(s=null))):o===3?(l=t[n+1],u=t[n+2],(l&192)==128&&(u&192)==128&&(s=(a&15)<<12|(l&63)<<6|u&63,(s<=2047||s>=55296&&s<=57343)&&(s=null))):o===4&&(l=t[n+1],u=t[n+2],h=t[n+3],(l&192)==128&&(u&192)==128&&(h&192)==128&&(s=(a&15)<<18|(l&63)<<12|(u&63)<<6|h&63,(s<=65535||s>=1114112)&&(s=null))),s===null?(s=65533,o=1):s>65535&&(s-=65536,i+=String.fromCharCode(s>>>10&1023|55296),s=56320|s&1023),i+=String.fromCharCode(s),n+=o}return i}function Ma(t,e,r,i,n){return o6(pi(t,e,r),r,i,n)}function Vt(t,e,r,i,n){return l6(pi(t,e,r),r,i,n)}function Ke(t,e,r){return h6(pi(t,e,r),r)}function pi(t,e,r){let i=r.physicalLevelTechnique;switch(i){case re.FAST_PFOR:return v3(t,r.numValues,r.byteLength,e);case re.VARINT:return Rt(t,e,r.numValues);case re.NONE:return Q3(t,e,r.numValues);default:throw Error(`Specified physicalLevelTechnique ${i} is not supported (yet).`)}}function Tn(t,e,r){let i=r.physicalLevelTechnique;switch(i){case re.VARINT:return Du(t,e,r.numValues);case re.NONE:return t6(t,e,r.numValues);default:throw Error(`Specified physicalLevelTechnique ${i} is not supported (yet).`)}}function i6(t,e,r){let i=pi(t,e,r);return i.length===1?tt(i[0]):O3(i)}function Su(t,e,r){let i=pi(t,e,r);return i.length===1?r.logicalLevelTechnique1===Z.DELTA?tt(i[0]):i[0]:V3(i)}function Ny(t,e,r){return R3(pi(t,e,r))}function Uy(t,e,r){return U3(Du(t,e,r.numValues))}function qy(t,e,r,i){return Gy(Tn(t,e,r),r,i)}function Eu(t,e,r,i){return Xy(Tn(t,e,r),r,i)}function n6(t,e,r,i){let n=a6(t,e,r,!1);return i?kr(n,i,0):n}function a6(t,e,r,i){if(r.physicalLevelTechnique===re.VARINT)return u6(m3(t,e,r.numValues),r,i);let n=Tn(t,e,r),a=i?Gy(n,r):Xy(n,r);return Float64Array.from(a,Number)}function s6(t,e,r){let i=Tn(t,e,r);return i.length===1?Ot(i[0]):N3(i)}function jy(t,e,r){let i=Tn(t,e,r);return i.length===1?r.logicalLevelTechnique1===Z.DELTA?Ot(i[0]):i[0]:$3(i)}function o6(t,e,r,i){let n;switch(e.logicalLevelTechnique1){case Z.DELTA:if(e.logicalLevelTechnique2===Z.RLE){let a=e;if(!i)return B3(t,a.runs,a.numRleValues);t=dl(t,a.runs,a.numRleValues),n=op(t)}else n=op(t);break;case Z.RLE:n=S3(t,e.runs,e.numRleValues);break;case Z.MORTON:_u(t),n=new Int32Array(t);break;case Z.COMPONENTWISE_DELTA:if(r&&!i)return Vy(t,r.scale,r.min,r.max);n=k3(t);break;case Z.NONE:n=w3(t);break;default:throw Error(`The specified Logical level technique is not supported: ${e.logicalLevelTechnique1}`)}return i?kr(n,i,0):n}function l6(t,e,r,i){let n;switch(e.logicalLevelTechnique1){case Z.DELTA:if(e.logicalLevelTechnique2===Z.RLE){let a=e;n=up(dl(t,a.runs,a.numRleValues))}else n=up(t);break;case Z.RLE:n=dl(t,e.runs,e.numRleValues);break;case Z.MORTON:_u(t),n=t;break;case Z.COMPONENTWISE_DELTA:n=r&&!i?L3(t,r.scale,r.min,r.max):z3(t);break;case Z.NONE:n=t;break;default:throw Error(`The specified Logical level technique is not supported: ${e.logicalLevelTechnique1}`)}return i?kr(n,i,0):n}function Gy(t,e,r){let i;switch(e.logicalLevelTechnique1){case Z.DELTA:if(e.logicalLevelTechnique2===Z.RLE){let n=e;if(!r)return P3(t,n.runs,n.numRleValues);t=yl(t,n.runs,n.numRleValues),i=lp(t)}else i=lp(t);break;case Z.RLE:i=E3(t,e.runs,e.numRleValues);break;case Z.NONE:i=D3(t);break;default:throw Error(`The specified Logical level technique is not supported: ${e.logicalLevelTechnique1}`)}return r?kr(i,r,BigInt(0)):i}function Xy(t,e,r){let i;switch(e.logicalLevelTechnique1){case Z.DELTA:if(e.logicalLevelTechnique2===Z.RLE){let n=e;i=hp(yl(t,n.runs,n.numRleValues))}else i=hp(t);break;case Z.RLE:i=yl(t,e.runs,e.numRleValues);break;case Z.NONE:i=t;break;default:throw Error(`The specified Logical level technique is not supported: ${e.logicalLevelTechnique1}`)}return r?kr(i,r,BigInt(0)):i}function u6(t,e,r){switch(e.logicalLevelTechnique1){case Z.DELTA:if(e.logicalLevelTechnique2===Z.RLE){let i=e;t=Ly(t,i.runs,i.numRleValues)}return A3(t),t;case Z.RLE:return p6(t,e,r);case Z.NONE:return r&&_3(t),t;default:throw Error(`The specified Logical level technique is not supported: ${e.logicalLevelTechnique1}`)}}function h6(t,e){if(e.logicalLevelTechnique1===Z.DELTA&&e.logicalLevelTechnique2===Z.NONE)return I3(t);if(e.logicalLevelTechnique1===Z.RLE&&e.logicalLevelTechnique2===Z.NONE){let r=e;return M3(t,r.runs,r.numRleValues)}if(e.logicalLevelTechnique1===Z.NONE&&e.logicalLevelTechnique2===Z.NONE){T3(t);let r=new Uint32Array(e.numValues+1);return r[0]=0,r.set(t,1),r}if(e.logicalLevelTechnique1===Z.DELTA&&e.logicalLevelTechnique2===Z.RLE){let r=e,i=C3(t,r.runs,r.numRleValues);return _u(i),new Uint32Array(i)}throw Error("Only delta encoding is supported for transforming length to offset streams yet.")}function rs(t,e,r,i,n="int32"){let a=t.logicalLevelTechnique1;if(a===Z.RLE)return t.runs===1?ut.CONST:ut.FLAT;if(a!==Z.DELTA||t.logicalLevelTechnique2!==Z.RLE)return t.numValues===1?ut.CONST:ut.FLAT;let s=e instanceof de?e.size():e,o=t;if(o.numRleValues!==s)return ut.FLAT;if(o.runs===1)return ut.SEQUENCE;if(o.runs!==2)return t.numValues===1?ut.CONST:ut.FLAT;let l=i.get();if(t.physicalLevelTechnique===re.VARINT)return c6(r,i,n)?ut.SEQUENCE:t.numValues===1?ut.CONST:ut.FLAT;let u=i.get(),h=new Int32Array(r.buffer,r.byteOffset+u,4);return i.set(l),h[2]===2&&h[3]===2?ut.SEQUENCE:t.numValues===1?ut.CONST:ut.FLAT}function c6(t,e,r){let i=new By(e.get());if(r==="int64"){let a=Du(t,i,4);return a[2]===BigInt(2)&&a[3]===BigInt(2)}let n=Rt(t,i,4);return n[2]===2&&n[3]===2}function p6(t,e,r){return r?F3(t,e.runs,e.numRleValues):Ly(t,e.runs,e.numRleValues)}var Yy=class extends es{getValueFromBuffer(t){return this.dataBuffer[t]}},Wy=class extends Cy{constructor(t,e,r,i,n){super(t,n?BigInt64Array.of(e):BigUint64Array.of(e),r,i)}getValueFromBuffer(t){return this.dataBuffer[0]+BigInt(t)*this.delta}};function Fu(t,e,r){return{x:pp(t,e)-r,y:pp(t>>1,e)-r}}function pp(t,e){let r=0;for(let i=0;i>i;return r}var Pt;(function(t){t[t.POINT=0]="POINT",t[t.LINESTRING=1]="LINESTRING",t[t.POLYGON=2]="POLYGON",t[t.MULTIPOINT=3]="MULTIPOINT",t[t.MULTILINESTRING=4]="MULTILINESTRING",t[t.MULTIPOLYGON=5]="MULTIPOLYGON"})(Pt||(Pt={}));var fp;(function(t){t[t.POINT=0]="POINT",t[t.LINESTRING=1]="LINESTRING",t[t.POLYGON=2]="POLYGON"})(fp||(fp={}));var nr;(function(t){t[t.MORTON=0]="MORTON",t[t.VEC_2=1]="VEC_2",t[t.VEC_3=2]="VEC_3"})(nr||(nr={}));function f6(t){let e=Array(t.numGeometries),r=1,i=1,n=1,a=0,s=0,o=0,l=t.mortonSettings,u=t.topologyVector,h=u.geometryOffsets,c=u.partOffsets,p=u.ringOffsets,f=t.vertexOffsets,d=!f||f.length===0,y=t.containsPolygonGeometry(),m=t.vertexBuffer;for(let g=0;g[w]),r+=v,i+=v}break;case Pt.LINESTRING:{let v;y?(v=p[i]-p[i-1],i++):v=c[r]-c[r-1],r++;let b;d?(b=Or(m,s,v,!1),s+=v*2):(b=pr(t.vertexBufferType,m,f,o,v,!1,l),o+=v),e[a++]=[b],h&&n++}break;case Pt.POLYGON:{let v=c[r]-c[r-1];r++;let b=Array(v-1),w,_=p[i]-p[i-1];if(i++,d){w=Or(m,s,_,!0),s+=_*2;for(let A=0;Ar?e[a++]:1);return i}function mp(t,e,r,i){let n=new Uint32Array(e[e.length-1]+1),a=0;n[0]=a;let s=1,o=0;for(let l=0;l0;)n[a++]=t[u++]}}return n}var e1=class extends Tu{constructor(t,e,r,i,n,a,s,o){super(t,r,i,s!=null?s:e.length),this.indexBuffer=e,this.symbolOffsetBuffer=n,this.symbolTableBuffer=a,this.sharedDictionaryCache=o}getValueFromBuffer(t){var n,a,s;(s=this.decodedDictionary)!=null||(this.decodedDictionary=(n=this.sharedDictionaryCache)==null?void 0:n.decodedDictionary,(a=this.decodedDictionary)!=null||(this.decodedDictionary=this.decodeDictionary(),this.sharedDictionaryCache&&(this.sharedDictionaryCache.decodedDictionary=this.decodedDictionary)));let e=this.indexBuffer[t],r=this.offsetBuffer[e],i=this.offsetBuffer[e+1];return Au(this.decodedDictionary,r,i)}decodeDictionary(){var t;return(t=this.symbolLengthBuffer)!=null||(this.symbolLengthBuffer=this.offsetToLengthBuffer(this.symbolOffsetBuffer)),F6(this.symbolTableBuffer,this.symbolLengthBuffer,this.dataBuffer)}offsetToLengthBuffer(t){let e=new Uint32Array(t.length-1),r=t[0];for(let i=1;i1&&!f.nullable||d===1&&f.nullable)throw Error(`The number of streams for the child field ${f.name} does not match its nullability. nullibilty: ${f.nullable}, numStreams: ${d}`);let m;if(f.nullable){let x=ht(t,e);m=new de(ci(t,x.numValues,x.byteLength,e),x.numValues)}let g=Vt(t,e,ht(t,e),void 0,m);if(o){if(!s)throw Error(`Incomplete shared FSST dictionary for column "${y}"`);h[p++]=new e1(y,g,n,a,s,o,m,c)}else h[p++]=new Qr(y,g,n,a,m)}return h}var xp=class extends Tr{constructor(t,e,r){super(t,new Uint8Array,r!=null?r:e.length),this.values=e}getValueFromBuffer(t){return this.values[t]}},we;(function(t){t[t.STRING=1]="STRING",t[t.INT32=2]="INT32",t[t.UINT32=4]="UINT32",t[t.INT64=8]="INT64",t[t.UINT64=16]="UINT64",t[t.FLOAT=32]="FLOAT",t[t.DOUBLE=64]="DOUBLE",t[t.PRESENCE=128]="PRESENCE"})(we||(we={}));var tr;(function(t){t[t.FALSE=0]="FALSE",t[t.TRUE=1]="TRUE",t[t.START_MAP=2]="START_MAP",t[t.START_LIST=3]="START_LIST",t[t.COUNT=4]="COUNT"})(tr||(tr={}));function M6(t,e,r,i){let n=B6(r);if(i===0)return n.map(h=>new xp(h,[]));let a=P6(t,e,i),s=(a.presentStream?a.presentCount:a.lengthStream.length)/n.length,o=[],l=0,u=0;for(let h=0;h{var i;return t.name+((i=r.name)!=null?i:"")})}function P6(t,e,r){let i=t[e.get()];e.add(1);let n=Vt(t,e,ht(t,e)),a=r-1,s=[];i&we.STRING&&(a-=z6(t,e,s)),a-=L6(t,e,i,s),a-=V6(t,e,i,s);let o,l=0;if(i&we.PRESENCE){let h=O6(t,e);o=h.value,l=h.count,a--}let u=new Uint32Array;if(a>0&&(u=Vt(t,e,ht(t,e)),a--),a!==0)throw Error(`Unexpected number of remaining streams while decoding map column: ${a}`);return{lengthStream:n,dictionary:s,presentStream:o,presentCount:l,flattenedValues:u}}function z6(t,e,r){let i=t[e.get()];e.add(1);let n=r1("",t,e,i);if(n)for(let a=0;aa.length)throw Error("Merged map counts underflow while decoding child streams");let f=Array(r),d=i,y=n;for(let x=0;xs.length)throw Error("Map value stream underflow while decoding feature payload");let b=$6(s,y,v,l);f[x]=b.value,y=b.nextIndex}let m=0;for(let x=i;x=r)throw Error("Unexpected end of map value stream");let n=t[e];if(n===tr.FALSE)return{value:!1,nextIndex:e+1};if(n===tr.TRUE)return{value:!0,nextIndex:e+1};if(n===tr.START_MAP){let a=vp(t,e,r);return{value:i1(t,e+2,a,i).value,nextIndex:a}}if(n===tr.START_LIST){let a=vp(t,e,r),s=[],o=e+2;for(;o=r)throw Error("Missing length for nested map/list payload");let i=t[e+1];if(i<2)throw Error(`Invalid nested payload length: ${i}`);let n=e+i;if(n>r)throw Error("Nested payload exceeds containing payload bounds");return n}function n1(t,e){let r=t-tr.COUNT;if(r<0||r>=e.length)throw Error(`Scalar dictionary index out of range: ${t}`);return e[r]}function Xr(t,e){for(let r of e)t.push(r)}function N6(t,e,r,i,n,a){var s;return r.type==="scalarType"?a&&!a.has(r.name)?(Oy(i,t,e),null):U6(i,t,e,n,r.scalarType,r):((s=r.complexType)==null?void 0:s.physicalType)===rr.MAP?M6(t,e,r,i):i===0?null:C6(t,e,r,a)}function U6(t,e,r,i,n,a){var l;let s;if(t===0)return null;if(a.nullable){let u=ht(e,r),h=u.numValues,c=r.get(),p=ci(e,h,u.byteLength,r);r.set(c+u.byteLength),s=new de(p,u.numValues)}let o=s!=null?s:i;switch(n.physicalType){case rt.UINT_32:case rt.INT_32:return Y6(e,r,a,n,o);case rt.STRING:{let u=a.nullable?t-1:t;return(l=r1(a.name,e,r,u,s))!=null?l:null}case rt.BOOLEAN:return q6(e,r,a,i,o);case rt.UINT_64:case rt.INT_64:return X6(e,r,a,o,n);case rt.FLOAT:return j6(e,r,a,o);case rt.DOUBLE:return G6(e,r,a,o);default:throw Error(`The specified data type for the field is currently not supported: ${n}`)}}function q6(t,e,r,i,n){let a=ht(t,e),s=a.numValues,o=e.get(),l=kn(n)?n:void 0,u=ci(t,s,a.byteLength,e,l);e.set(o+a.byteLength);let h=new de(u,s);return new A6(r.name,h,n)}function j6(t,e,r,i){let n=ht(t,e),a=kn(i)?i:void 0,s=Ry(t,e,n.numValues,a);return new S6(r.name,s,i)}function G6(t,e,r,i){let n=ht(t,e),a=kn(i)?i:void 0,s=$y(t,e,n.numValues,a);return new mu(r.name,s,i)}function X6(t,e,r,i,n){let a=ht(t,e),s=rs(a,i,t,e,"int64"),o=n.physicalType===rt.INT_64;if(s===ut.FLAT){let u=kn(i)?i:void 0,h=o?qy(t,e,a,u):Eu(t,e,a,u);return new Yy(r.name,h,i)}if(s===ut.SEQUENCE){let u=Uy(t,e,a);return new Wy(r.name,u[0],u[1],a.numRleValues,o)}let l=o?s6(t,e,a):jy(t,e,a);return new t1(r.name,l,i,o)}function Y6(t,e,r,i,n){let a=ht(t,e),s=rs(a,n,t,e),o=i.physicalType===rt.INT_32;if(s===ut.FLAT){let u=kn(n)?n:void 0,h=o?Ma(t,e,a,void 0,u):Vt(t,e,a,void 0,u);return new yu(r.name,h,n)}if(s===ut.SEQUENCE){let u=Ny(t,e,a);return new gu(r.name,u[0],u[1],a.numRleValues,o)}let l=o?i6(t,e,a):Su(t,e,a);return new xu(r.name,l,n,o)}function kn(t){return t instanceof de}var It={ID:0,ID_NULLABLE:1,ID_LONG:2,GEOMETRY:4,SCALAR_BASE:10,STRUCT:30,MAP:31};function a1(t){switch(t){case It.ID:case It.ID|It.ID_NULLABLE:case It.ID|It.ID_LONG:case It.ID|It.ID_LONG|It.ID_NULLABLE:return{nullable:(t&It.ID_NULLABLE)!==0,columnScope:Xi.FEATURE,type:"scalarType",scalarType:{longID:(t&It.ID_LONG)!==0,type:"logicalType",logicalType:My.ID}};case It.GEOMETRY:return{nullable:!1,columnScope:Xi.FEATURE,type:"complexType",complexType:{type:"physicalType",physicalType:rr.GEOMETRY,children:[]}};case It.STRUCT:return{nullable:!1,columnScope:Xi.FEATURE,type:"complexType",complexType:{type:"physicalType",physicalType:rr.STRUCT,children:[]}};case It.MAP:return{nullable:!0,columnScope:Xi.FEATURE,type:"complexType",complexType:{type:"physicalType",physicalType:rr.MAP,children:[]}};default:return J6(t)}}function W6(t){return t>=It.SCALAR_BASE}function s1(t){return t===It.STRUCT||t===It.MAP}function Z6(t){if(t.type==="scalarType"){let e=t.scalarType;if(e.type==="physicalType")switch(e.physicalType){case rt.BOOLEAN:case rt.INT_8:case rt.UINT_8:case rt.INT_32:case rt.UINT_32:case rt.INT_64:case rt.UINT_64:case rt.FLOAT:case rt.DOUBLE:return!1;case rt.STRING:return!0;default:return!1}if(e.type==="logicalType")return!1}else if(t.type==="complexType"){let e=t.complexType;if(e.type==="physicalType")switch(e.physicalType){case rr.GEOMETRY:case rr.STRUCT:case rr.MAP:return!0;default:return!1}}return console.warn("Unexpected column type in hasStreamCount",t),!1}function H6(t){var e;return t.type==="scalarType"&&((e=t.scalarType)==null?void 0:e.type)==="logicalType"&&t.scalarType.logicalType===My.ID}function K6(t){var e;return t.type==="complexType"&&((e=t.complexType)==null?void 0:e.type)==="physicalType"&&t.complexType.physicalType===rr.GEOMETRY}function J6(t){let e;switch(t){case 10:case 11:e=rt.BOOLEAN;break;case 12:case 13:e=rt.INT_8;break;case 14:case 15:e=rt.UINT_8;break;case 16:case 17:e=rt.INT_32;break;case 18:case 19:e=rt.UINT_32;break;case 20:case 21:e=rt.INT_64;break;case 22:case 23:e=rt.UINT_64;break;case 24:case 25:e=rt.FLOAT;break;case 26:case 27:e=rt.DOUBLE;break;case 28:case 29:e=rt.STRING;break;default:return null}return{nullable:!!(t&1),columnScope:Xi.FEATURE,type:"scalarType",scalarType:{longID:!1,type:"physicalType",physicalType:e}}}var Q6=new TextDecoder,bp="0-3(ID), 4(GEOMETRY), 10-29(scalars), 30(STRUCT), 31(MAP)";function Iu(t,e){let r=Rt(t,e,1)[0];if(r===0)return"";let i=e.get(),n=i+r,a=t.subarray(i,n);return e.add(r),Q6.decode(a)}function t5(t){let e=t.name,r=t.nullable;return t.type==="scalarType"?{type:"scalarField",scalarField:t.scalarType,name:e,nullable:r}:{type:"complexField",complexField:t.complexType,name:e,nullable:r}}function o1(t,e){let r=Rt(t,e,1)[0]>>>0,i=r>=It.SCALAR_BASE?a1(r):null;if(!i)throw Error(`Unsupported field type code ${r}. Supported: 10-29(scalars), 30(STRUCT), 31(MAP)`);let n=Si(Xe({},i),{name:Iu(t,e)});if(n.type==="complexType"&&s1(r)){let a=n.complexType,s=Rt(t,e,1)[0]>>>0;a.children=Array(s);for(let o=0;o>>0,i=a1(r);if(!i)throw Error(`Unsupported column type code ${r}. Supported: ${bp}`);let n;if(W6(r))n=Iu(t,e);else if(r>>0,o=a.complexType;o.children=Array(s);for(let l=0;l>>0,a=Rt(t,e,1)[0]>>>0;i.columns=Array(a);for(let s=0;s>>0,s=i.get()+a;if(s>t.length)throw Error(`Block overruns tile: ${s} > ${t.length}`);let o=Rt(t,i,1)[0]>>>0;if(o!==1&&o!==2){i.set(s);continue}let[l,u]=r5(t,i),h=l.featureTables[0],c=null,p=null,f=[],d=0;for(let m of h.columns){let g=m.name;if(H6(m)){let x=null;if(m.nullable){let b=ht(t,i),w=i.get(),_=ci(t,b.numValues,b.byteLength,i);i.set(w+b.byteLength),x=new de(_,b.numValues)}let v=ht(t,i);d=x?x.size():v.decompressedCount,c=n5(t,m,i,g,v,x!=null?x:d,r)}else if(K6(m)){let x=Rt(t,i,1)[0];if(d===0){let v=i.get();d=ht(t,i).decompressedCount,i.set(v)}e&&(e.scale=e.extent/u),p=w6(t,x,i,d,e)}else{let x=Z6(m)?Rt(t,i,1)[0]:1;if(x===0)continue;let v=N6(t,i,m,x,d,void 0);if(v)if(Array.isArray(v))for(let b of v)f.push(b);else f.push(v)}}let y=new Tw(h.name,p,c,f,u);n.push(y),i.set(s)}return n}function n5(t,e,r,i,n,a,s=!1){var h;let o=(h=e.scalarType)!=null&&h.longID?rt.UINT_64:rt.UINT_32,l=typeof a=="number"?void 0:a,u=rs(n,a,t,r,o===rt.UINT_64?"int64":"int32");if(o===rt.UINT_32)switch(u){case ut.FLAT:return new yu(i,Vt(t,r,n,void 0,l),a);case ut.SEQUENCE:{let c=Ny(t,r,n);return new gu(i,c[0],c[1],n.numRleValues,!1)}case ut.CONST:return new xu(i,Su(t,r,n),a,!1)}switch(u){case ut.FLAT:return s?new mu(i,n6(t,r,n,l),a):new Yy(i,Eu(t,r,n,l),a);case ut.SEQUENCE:{let c=Uy(t,r,n);return new Wy(i,c[0],c[1],n.numRleValues,!1)}case ut.CONST:return new t1(i,jy(t,r,n),a,!1)}throw Error("Vector type not supported for id column.")}var Qs=Py(bu);Qs/32*4,3*Qs/256+Qs|0;var a5=class{constructor(t,e){var r;switch(this._featureData=t,this.properties=this._featureData.properties||{},(r=this._featureData.geometry)==null?void 0:r.type){case Pt.POINT:case Pt.MULTIPOINT:this.type=1;break;case Pt.LINESTRING:case Pt.MULTILINESTRING:this.type=2;break;case Pt.POLYGON:case Pt.MULTIPOLYGON:this.type=3;break;default:this.type=0}this.extent=e,this.id=Number(this._featureData.id)}loadGeometry(){let t=[];for(let e of this._featureData.geometry.coordinates){let r=[];for(let i of e)r.push(new M(i.x,i.y));t.push(r)}return t}},s5=class{constructor(t){this.features=[],this.featureTable=t,this.name=t.name,this.extent=t.extent,this.version=2,this.features=t.getFeatures(),this.length=this.features.length}feature(t){return new a5(this.features[t],this.extent)}},Cu=class{constructor(t){this.layers={};let e=i5(new Uint8Array(t));this.layers=e.reduce((r,i)=>Si(Xe({},r),{[i.name]:new s5(i)}),{})}},Mu=class{constructor(t,e){this.tileID=t,this.x=t.canonical.x,this.y=t.canonical.y,this.z=t.canonical.z,this.grid=new fo(gt,16,0),this.grid3D=new fo(gt,16,0),this.featureIndexArray=new dd,this.promoteId=e}insert(t,e,r,i,n,a){let s=this.featureIndexArray.length;this.featureIndexArray.emplaceBack(r,i,n);let o=a?this.grid3D:this.grid;for(let l of e){let u=[1/0,1/0,-1/0,-1/0];for(let h of l)u[0]=Math.min(u[0],h.x),u[1]=Math.min(u[1],h.y),u[2]=Math.max(u[2],h.x),u[3]=Math.max(u[3],h.y);u[0]<8192&&u[1]<8192&&u[2]>=0&&u[3]>=0&&o.insert(s,u[0],u[1],u[2],u[3])}}loadVTLayers(){return this.vtLayers||(this.encoding==="mlt"?this.vtLayers=new Cu(this.rawTileData).layers:this.vtLayers=new Zl(new lu(this.rawTileData)).layers,this.sourceLayerCoder=new du(this.vtLayers?Object.keys(this.vtLayers).sort():[cl])),this.vtLayers}query(t,e,r,i){this.loadVTLayers();let n=t.params,a=gt/t.tileSize/t.scale,s=ai(n.filter,"queryRenderedFeatures filter",n.globalState),o=t.queryGeometry,l=t.queryPadding*a,u=Ia.fromPoints(o),h=this.grid.query(u.minX-l,u.minY-l,u.maxX+l,u.maxY+l),c=Ia.fromPoints(t.cameraQueryGeometry).expandBy(l),p=this.grid3D.query(c.minX,c.minY,c.maxX,c.maxY,(y,m,g,x)=>Rg(t.cameraQueryGeometry,y-l,m-l,g+l,x+l));for(let y of p)h.push(y);h.sort(l5);let f={},d;for(let y of h){if(y===d)continue;d=y;let m=this.featureIndexArray.get(y),g=null;this.loadMatchingFeature(f,m.bucketIndex,m.sourceLayerIndex,m.featureIndex,s,n.layers,n.availableImages,e,r,i,(x,v,b)=>(g||(g=Fr(x)),v.queryIntersectsFeature({queryGeometry:o,feature:x,featureState:b,geometry:g,zoom:this.z,transform:t.transform,pixelsToTileUnits:a,pixelPosMatrix:t.pixelPosMatrix,unwrappedTileID:this.tileID.toUnwrapped(),getElevation:t.getElevation})))}return f}loadMatchingFeature(t,e,r,i,n,a,s,o,l,u,h){let c=this.bucketLayerIDs[e];if(a&&!c.some(y=>a.has(y)))return;let p=this.sourceLayerCoder.decode(r),f=this.vtLayers[p].feature(i);if(n.needGeometry){let y=hi(f,!0);if(!n.filter(new st(this.tileID.overscaledZ),y,this.tileID.canonical))return}else if(!n.filter(new st(this.tileID.overscaledZ),f))return;let d=this.getId(f,p);for(let y of c){if(a&&!a.has(y))continue;let m=o[y];if(!m)continue;let g={};d&&u&&(g=u.getState(m.sourceLayer||"_geojsonTileLayer",d));let x=Xt({},l[y]);x.paint=wp(x.paint,m.paint,f,g,s),x.layout=wp(x.layout,m.layout,f,g,s);let v=!h||h(f,m,g);if(!v)continue;let b=new Fw(f,this.z,this.x,this.y,d);b.layer=x;let w=t[y];w===void 0&&(w=t[y]=[]),w.push({featureIndex:i,feature:b,intersectionZ:v})}}lookupSymbolFeatures(t,e,r,i,n,a,s,o){let l={};this.loadVTLayers();let u=ai(n.filterSpec,"queryRenderedFeatures symbol filter",n.globalState);for(let h of t)this.loadMatchingFeature(l,r,i,h,u,a,s,o,e);return l}hasLayer(t){for(let e of this.bucketLayerIDs)for(let r of e)if(t===r)return!0;return!1}getId(t,e){var i;let r=t.id;if(this.promoteId){let n=typeof this.promoteId=="string"?this.promoteId:this.promoteId[e];r=t.properties[n],typeof r=="boolean"&&(r=Number(r)),r===void 0&&((i=t.properties)!=null&&i.cluster)&&this.promoteId&&(r=Number(t.properties.cluster_id))}return r}};C("FeatureIndex",Mu,{omit:["rawTileData","sourceLayerCoder"]});function o5(t){return typeof t=="object"&&!!t&&"evaluate"in t}function wp(t,e,r,i,n){return xn(t,(a,s)=>{let o=e instanceof Wa?e.get(s):null;return o5(o)?o.evaluate(r,i,void 0,n):o})}function l5(t,e){return e-t}var l1=class{constructor(t){this.maxEntries=t,this.map=new Map}get(t){let e=this.map.get(t);return e!==void 0&&(this.map.delete(t),this.map.set(t,e)),e}set(t,e){if(this.map.has(t))this.map.delete(t);else if(this.map.size>=this.maxEntries){let r=this.map.keys().next().value;this.map.delete(r)}this.map.set(t,e)}clear(){this.map.clear()}};function Bu(t){let e=typeof t;if(e==="number"||e==="boolean"||e==="string"||t==null)return JSON.stringify(t);if(Array.isArray(t)){let n="[";for(let a of t)n+=`${Bu(a)},`;return`${n}]`}let r=Object.keys(t).sort(),i="{";for(let n=0;nthis._layers[c.id]),s=a[0];if(s.isHidden())continue;let o=s.source||"",l=this.familiesBySource[o];l||(l=this.familiesBySource[o]={});let u=s.sourceLayer||"_geojsonTileLayer",h=l[u];h||(h=l[u]=[]),h.push(a)}}},c1=class{constructor(t){let e={},r=[];for(let s in t){let o=e[s]={};for(let l in t[s]){let u=t[s][l];o[l]={};for(let h in u){let c=u[h];if(!c||c.bitmap.width===0||c.bitmap.height===0)continue;let p={x:0,y:0,w:c.bitmap.width+2,h:c.bitmap.height+2};r.push(p),o[l][h]={rect:p,metrics:c.metrics}}}}let{w:i,h:n}=uu(r),a=new Qa({width:i||1,height:n||1});for(let s in t)for(let o in t[s]){let l=t[s][o];for(let u in l){let h=l[u];if(!h||h.bitmap.width===0||h.bitmap.height===0)continue;let c=e[s][o][u].rect;Qa.copy(h.bitmap,a,{x:0,y:0},{x:c.x+1,y:c.y+1},h.bitmap)}}this.image=a,this.positions=e}};C("GlyphAtlas",c1);var p1=class{constructor(t){this.tileID=new pu(t.tileID.overscaledZ,t.tileID.wrap,t.tileID.canonical.z,t.tileID.canonical.x,t.tileID.canonical.y),this.uid=t.uid,this.zoom=t.zoom,this.pixelRatio=t.pixelRatio,this.tileSize=t.tileSize,this.source=t.source,this.overscaling=this.tileID.overscaleFactor(),this.showCollisionBoxes=t.showCollisionBoxes,this.collectResourceTiming=!!t.collectResourceTiming,this.returnDependencies=!!t.returnDependencies,this.promoteId=t.promoteId,this.inFlightDependencies=[]}parse(t,e,r,i,n){return et(this,null,function*(){this.data=t,this.collisionBoxArray=new Rl;let a=new du(Object.keys(t.layers).sort()),s=new Mu(this.tileID,this.promoteId);s.bucketLayerIDs=[];let o={},l={featureIndex:s,iconDependencies:{},patternDependencies:{},glyphDependencies:{},dashDependencies:{},availableImages:r,subdivisionGranularity:n},u=e.familiesBySource[this.source];for(let S in u){let T=t.layers[S];if(!T)continue;T.version===1&&Mt(`Vector tile source "${this.source}" layer "${S}" does not use vector tile spec v2 and therefore may have some rendering errors.`);let L=a.encode(S),O=[];for(let B=0;BF.id)))}}let h=xn(l.glyphDependencies,S=>xn(S,T=>Object.keys(T)));for(let S of this.inFlightDependencies)S==null||S.abort();this.inFlightDependencies=[];let c=Promise.resolve({});if(Object.keys(h).length){let S=new AbortController;this.inFlightDependencies.push(S),c=i.sendAsync({type:"GG",data:{stacks:h,source:this.source,tileID:this.tileID,type:"glyphs"}},S)}let p=Object.keys(l.iconDependencies),f=Promise.resolve({});if(p.length){let S=new AbortController;this.inFlightDependencies.push(S),f=i.sendAsync({type:"GI",data:{icons:p,source:this.source,tileID:this.tileID,type:"icons"}},S)}let d=Object.keys(l.patternDependencies),y=Promise.resolve({});if(d.length){let S=new AbortController;this.inFlightDependencies.push(S),y=i.sendAsync({type:"GI",data:{icons:d,source:this.source,tileID:this.tileID,type:"patterns"}},S)}let m=l.dashDependencies,g=Promise.resolve({});if(Object.keys(m).length){let S=new AbortController;this.inFlightDependencies.push(S),g=i.sendAsync({type:"GDA",data:{dashes:m}},S)}let[x,v,b,w]=yield Promise.all([c,f,y,g]),_=new c1(x),A=new hu(v,b);for(let S in o){let T=o[S];T.hasDependencies&&(u1(T.layers,this.zoom,r),T.addFeatures({options:l,canonical:this.tileID.canonical,glyphMap:x,glyphPositions:_.positions,iconMap:v,iconPositions:A.iconPositions,patternMap:b,patternPositions:A.patternPositions,dashPositions:w,showCollisionBoxes:this.showCollisionBoxes}))}return{buckets:Object.values(o).filter(S=>!S.isEmpty()),featureIndex:s,collisionBoxArray:this.collisionBoxArray,glyphAtlasImage:_.image,imageAtlas:A,dashPositions:w,glyphMap:this.returnDependencies?x:null,iconMap:this.returnDependencies?v:null,glyphPositions:this.returnDependencies?_.positions:null}})}};function u1(t,e,r){let i=new st(e);for(let n of t)n.recalculate(i,r)}var f1=class{constructor(){this.loading={},this.loaded={},this.parsing={}}startLoading(t,e){this.loading[t]=e}finishLoading(t){delete this.loading[t]}abort(t){let e=this.loading[t];e!=null&&e.abort&&(e.abort.abort(),delete this.loading[t])}getParsing(t){return this.parsing[t]}setParsing(t,e){this.parsing[t]=e}removeParsing(t){delete this.parsing[t]}markLoaded(t,e){this.loaded[t]=e}getLoaded(t){let e=this.loaded[t];if(e)return e}removeLoaded(t){delete this.loaded[t]}clearLoaded(){this.loaded={}}},d1=class{constructor(t){this.start=`${t}#start`,this.end=`${t}#end`,this.measure=t,performance.mark(this.start)}finish(){performance.mark(this.end);let t=performance.getEntriesByName(this.measure);return t.length===0&&(performance.measure(this.measure,this.start,this.end),t=performance.getEntriesByName(this.measure),performance.clearMarks(this.start),performance.clearMarks(this.end),performance.clearMeasures(this.measure)),t}},p5=class{constructor(t,e,r,i,n){this.type=t,this.properties=r||{},this.extent=n,this.pointsArray=e,this.id=i}loadGeometry(){return this.pointsArray.map(t=>t.map(e=>new M(e.x,e.y)))}},f5=class{constructor(t,e,r){this.version=2,this._myFeatures=t,this.name=e,this.length=t.length,this.extent=r}feature(t){return this._myFeatures[t]}},d5=class{constructor(){this.layers={}}addLayer(t){this.layers[t.name]=t}};function y5(t,e,r){let{extent:i}=t,n=2**(r.z-e.z),a=(r.x-e.x*n)*i,s=(r.y-e.y*n)*i,o=[];for(let l=0;l0&&l.addLayer(d)}let h={vectorTile:l,rawData:fu(l).buffer};return this.overzoomedTileResultCache.set(s,h),h}reloadTile(t){return et(this,null,function*(){let e=t.uid,r=this.tileState.getLoaded(e);if(!r)throw Error("Should not be trying to reload a tile that was never loaded or has been removed");if(r.vectorTile)return r.showCollisionBoxes=t.showCollisionBoxes,yield this._parseWorkerTile(r,t)})}abortTile(t){return et(this,null,function*(){this.tileState.abort(t.uid)})}removeTile(t){return et(this,null,function*(){this.tileState.removeLoaded(t.uid)})}},g5=class{constructor(){this.loaded={}}loadTile(t){return et(this,null,function*(){let{uid:e,encoding:r,rawImageData:i,redFactor:n,greenFactor:a,blueFactor:s,baseShift:o}=t,l=i.width+4,u=i.height+4,h=Ba(i)?new Ht({width:l,height:u},yield Ep(i,-2,-2,l,u)):i,c=new Yl(e,h,r,n,a,s,o);return this.loaded||(this.loaded={}),this.loaded[e]=c,c})}removeTile(t){let e=this.loaded,r=t.uid;e!=null&&e[r]&&delete e[r]}},x5=class{constructor(t,e,r,i=v5){this.actor=t,this.layerIndex=e,this.availableImages=r,this.tileState=new f1,this._createGeoJSONIndex=i}loadVectorTile(t){if(!this._geoJSONIndex)throw Error("Unable to parse the data into a cluster or geojson");let{z:e,x:r,y:i}=t.tileID.canonical,n=this._geoJSONIndex.getTile(e,r,i);if(!n)return null;let a=new Iy(n.features,{version:2,extent:gt});return{vectorTile:a,rawData:fu(a,Sp).buffer}}loadTile(t){return et(this,null,function*(){let{uid:e}=t,r=new p1(t);r.abort=new AbortController;try{let i=this.loadVectorTile(t);if(!i)return null;let{vectorTile:n,rawData:a}=i;r.vectorTile=n,this.tileState.markLoaded(e,r);let s={rawData:a};return this.tileState.setParsing(e,s),yield this._parseWorkerTile(r,t)}catch(i){throw this.tileState.markLoaded(e,r),i}})}_parseWorkerTile(t,e){return et(this,null,function*(){let r=this.tileState.getParsing(t.uid),i=yield t.parse(t.vectorTile,this.layerIndex,this.availableImages,this.actor,e.subdivisionGranularity);if(r){let{rawData:n}=r;i=Xt({rawTileData:n.slice(0),encoding:"mvt"},i),this.tileState.removeParsing(t.uid)}return i})}abortTile(t){return et(this,null,function*(){this.tileState.abort(t.uid)})}removeTile(t){return et(this,null,function*(){this.tileState.removeLoaded(t.uid)})}loadData(t){return et(this,null,function*(){var r;(r=this._pendingRequest)==null||r.abort();let e=this._startRequestTiming(t);this._pendingRequest=new AbortController;try{yield this.loadAndProcessGeoJSON(t,this._pendingRequest),delete this._pendingRequest,this.tileState.clearLoaded();let i={};return t.request&&(i.data=t.data),this._finishRequestTiming(e,t,i),i}catch(i){if(delete this._pendingRequest,!xl(i))throw i;return{abandoned:!0}}})}_startRequestTiming(t){var e;if((e=t.request)!=null&&e.collectResourceTiming)return new d1(t.request.url)}_finishRequestTiming(t,e,r){let i=t==null?void 0:t.finish();i&&(r.resourceTiming={[e.source]:JSON.parse(JSON.stringify(i))})}reloadTile(t){return et(this,null,function*(){let e=t.uid,r=this.tileState.getLoaded(e);if(!r)return yield this.loadTile(t);if(r.vectorTile)return r.showCollisionBoxes=t.showCollisionBoxes,yield this._parseWorkerTile(r,t)})}loadAndProcessGeoJSON(t,e){return et(this,null,function*(){var r;if(t.request&&(t.data=(yield Ip(t.request,e)).data),t.data){t.data=this._filterGeoJSON(t.data,t.filter,t.source),this._geoJSONIndex=this._createGeoJSONIndex(t.data,t);return}if(t.dataDiff){(r=this._geoJSONIndex)!=null||(this._geoJSONIndex=this._createGeoJSONIndex({type:"FeatureCollection",features:[]},t)),this._geoJSONIndex.updateData(t.dataDiff,this._getFilterPredicate(t.filter,t.source));return}if(t.updateCluster&&this._geoJSONIndex.updateClusterOptions(t.geojsonVtOptions.cluster,y1(t)),this._geoJSONIndex==null)throw Error(`Input data given to \'${t.source}\' is not a valid GeoJSON object.`)})}_filterGeoJSON(t,e,r){if(t.type!=="FeatureCollection")return t;let i=this._getFilterPredicate(e,r);return i?{type:"FeatureCollection",features:t.features.filter(n=>i(n))}:t}_getFilterPredicate(t,e){if(typeof t!="boolean"&&!(t!=null&&t.length))return;let r=ar(t,`sources.${e}.filter`,{type:"boolean","property-type":"data-driven",overridable:!1,transition:!1});if(r.result==="error")throw Error(r.value.map(i=>`${i.key}: ${i.message}`).join(", "));return i=>r.value.evaluate({zoom:0},i)}removeSource(t){return et(this,null,function*(){var e;(e=this._pendingRequest)==null||e.abort()})}getClusterExpansionZoom(t){return this._geoJSONIndex.getClusterExpansionZoom(t.clusterId)}getClusterChildren(t){return this._geoJSONIndex.getClusterChildren(t.clusterId)}getClusterLeaves(t){return this._geoJSONIndex.getClusterLeaves(t.clusterId,t.limit,t.offset)}};function v5(t,e){let r=Xt(e.geojsonVtOptions||{},{updateable:!0,clusterOptions:y1(e)});return new Kd(t,r)}function y1({geojsonVtOptions:t,clusterProperties:e,source:r}){if(!e||!t.clusterOptions)return t.clusterOptions;let i={},n={},a={accumulated:null,zoom:0},s={properties:null},o=Object.keys(e);for(let l of o){let[u,h]=e[l],c=ar(h,`sources.${r}.clusterProperties.${l}[1]`),p=ar(typeof u=="string"?[u,["accumulated"],["get",l]]:u,`sources.${r}.clusterProperties.${l}[0]`);i[l]=c.value,n[l]=p.value}return t.clusterOptions.map=l=>{s.properties=l;let u={};for(let h of o)u[h]=i[h].evaluate(a,s);return u},t.clusterOptions.reduce=(l,u)=>{s.properties=u;for(let h of o)a.accumulated=l[h],l[h]=n[h].evaluate(a,s)},t.clusterOptions}function h1(t){return et(this,null,function*(){if(t.endsWith(".mjs")){yield import(t);return}let e=yield fetch(t,{credentials:"same-origin"});if(!e.ok)throw Error(`Failed to load ${t}: ${e.status}`);let r=yield e.text();if(/^[ \\t]*(import|export)\\s/m.test(r)){let i=URL.createObjectURL(new Blob([r],{type:"text/javascript"}));try{yield import(i)}finally{URL.revokeObjectURL(i)}return}globalThis.eval(r)})}var b5=class{constructor(t){this.self=t,this.actor=new Ty(t),this.layerIndexes={},this.availableImages={},this.workerSources={},this.demWorkerSources={},this.externalWorkerSourceTypes={},this.globalStates=new Map,this.self.registerWorkerSource=(e,r)=>{if(this.externalWorkerSourceTypes[e])throw Error(`Worker source with name "${e}" already registered.`);this.externalWorkerSourceTypes[e]=r},this.self.addProtocol=Fp,this.self.removeProtocol=Tp,this.self.registerRTLTextPlugin=e=>{Ar.setMethods(e)},this.self.makeRequest=Pa,this.actor.registerMessageHandler("LDT",(e,r)=>this._getDEMWorkerSource(e,r.source).loadTile(r)),this.actor.registerMessageHandler("RDT",(e,r)=>et(this,null,function*(){this._getDEMWorkerSource(e,r.source).removeTile(r)})),this.actor.registerMessageHandler("GCEZ",(e,r)=>et(this,null,function*(){return this._getWorkerSource(e,r.type,r.source).getClusterExpansionZoom(r)})),this.actor.registerMessageHandler("GCC",(e,r)=>et(this,null,function*(){return this._getWorkerSource(e,r.type,r.source).getClusterChildren(r)})),this.actor.registerMessageHandler("GCL",(e,r)=>et(this,null,function*(){return this._getWorkerSource(e,r.type,r.source).getClusterLeaves(r)})),this.actor.registerMessageHandler("LD",(e,r)=>this._getWorkerSource(e,r.type,r.source).loadData(r)),this.actor.registerMessageHandler("LT",(e,r)=>this._getWorkerSource(e,r.type,r.source).loadTile(r)),this.actor.registerMessageHandler("RT",(e,r)=>this._getWorkerSource(e,r.type,r.source).reloadTile(r)),this.actor.registerMessageHandler("AT",(e,r)=>this._getWorkerSource(e,r.type,r.source).abortTile(r)),this.actor.registerMessageHandler("RMT",(e,r)=>this._getWorkerSource(e,r.type,r.source).removeTile(r)),this.actor.registerMessageHandler("RS",(e,r)=>et(this,null,function*(){var n,a;if(!((a=(n=this.workerSources[e])==null?void 0:n[r.type])!=null&&a[r.source]))return;let i=this.workerSources[e][r.type][r.source];delete this.workerSources[e][r.type][r.source],i.removeSource!==void 0&&i.removeSource(r)})),this.actor.registerMessageHandler("RM",e=>et(this,null,function*(){delete this.layerIndexes[e],delete this.availableImages[e],delete this.workerSources[e],delete this.demWorkerSources[e],this.globalStates.delete(e)})),this.actor.registerMessageHandler("SR",(e,r)=>et(this,null,function*(){this.referrer=r})),this.actor.registerMessageHandler("SRPS",(e,r)=>this._syncRTLPluginState(e,r)),this.actor.registerMessageHandler("IS",(e,r)=>et(this,null,function*(){yield h1(r)})),this.actor.registerMessageHandler("SI",(e,r)=>this._setImages(e,r)),this.actor.registerMessageHandler("UL",(e,r)=>et(this,null,function*(){this._getLayerIndex(e).update(r.layers,r.removedIds,this._getGlobalState(e))})),this.actor.registerMessageHandler("UGS",(e,r)=>et(this,null,function*(){let i=this._getGlobalState(e);for(let n in r)i[n]=r[n]})),this.actor.registerMessageHandler("SL",(e,r)=>et(this,null,function*(){this._getLayerIndex(e).replace(r,this._getGlobalState(e))}))}_getGlobalState(t){let e=this.globalStates.get(t);return e||(e={},this.globalStates.set(t,e)),e}_setImages(t,e){return et(this,null,function*(){this.availableImages[t]=e;for(let r in this.workerSources[t]){let i=this.workerSources[t][r];for(let n in i)i[n].availableImages=e}})}_syncRTLPluginState(t,e){return et(this,null,function*(){return yield Ar.syncState(e,h1)})}_getAvailableImages(t){let e=this.availableImages[t];return e||(e=[]),e}_getLayerIndex(t){let e=this.layerIndexes[t];return e||(e=this.layerIndexes[t]=new c5),e}_getWorkerSource(t,e,r){var i,n;if((i=this.workerSources)[t]||(i[t]={}),(n=this.workerSources[t])[e]||(n[e]={}),!this.workerSources[t][e][r]){let a={sendAsync:(s,o)=>(s.targetMapId=t,this.actor.sendAsync(s,o))};switch(e){case"vector":this.workerSources[t][e][r]=new m5(a,this._getLayerIndex(t),this._getAvailableImages(t));break;case"geojson":this.workerSources[t][e][r]=new x5(a,this._getLayerIndex(t),this._getAvailableImages(t));break;default:this.workerSources[t][e][r]=new this.externalWorkerSourceTypes[e](a,this._getLayerIndex(t),this._getAvailableImages(t))}}return this.workerSources[t][e][r]}_getDEMWorkerSource(t,e){var r,i;return(r=this.demWorkerSources)[t]||(r[t]={}),(i=this.demWorkerSources[t])[e]||(i[e]=new g5),this.demWorkerSources[t][e]}};vr(self)&&(self.worker=new b5(self));export{b5 as default};\n/*! Bundled license information:\n\nmaplibre-gl/dist/maplibre-gl-shared.mjs:\nmaplibre-gl/dist/maplibre-gl-worker.mjs:\n (**\n * MapLibre GL JS\n * @license 3-Clause BSD. Full text of license: https://github.com/maplibre/maplibre-gl-js/blob/v6.11.2/LICENSE.txt\n *)\n*/\n'});var _ce=X((vht,yce)=>{"use strict";var KF=Object.defineProperty,qYe=Object.getOwnPropertyDescriptor,OYe=Object.getOwnPropertyNames,NYe=Object.prototype.hasOwnProperty,VYe=(e,t)=>{for(var r in t)KF(e,r,{get:t[r],enumerable:!0})},UYe=(e,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of OYe(t))!NYe.call(e,a)&&a!==r&&KF(e,a,{get:()=>t[a],enumerable:!(i=qYe(t,a))||i.enumerable});return e},GYe=e=>UYe(KF({},"__esModule",{value:!0}),e),mce={};VYe(mce,{COUNTRIES:()=>vce,byAlpha2:()=>ZYe,byAlpha3:()=>HYe,byM49:()=>YYe,createLookup:()=>gce,lookup:()=>jYe,lookupAlpha3:()=>$Ye,sanitize:()=>XF});yce.exports=GYe(mce);var vce=[{iso3:"ABW",iso2:"AW",m49:"533",name:"Aruba",aliases:["\u{1F1E6}\u{1F1FC}","country of aruba","land aruba","pais aruba"]},{iso3:"AFG",iso2:"AF",m49:"004",name:"Afghanistan",aliases:["\u{1F1E6}\u{1F1EB}","affghanistan","affghanisthan","affghaunistan","afghania","afghanisthan","afghaunistan","afghaunistaun","afgoniston","de afghanistan islami jumhuriyat","owganystan","\u0430\u0444\u0493\u043E\u043D\u0438\u0441\u0442\u043E\u043D","\u0623\u0641\u063A\u0627\u0646\u0633\u062A\u0627\u0646","\u0627\u0641\u063A\u0627\u0646\u0633\u062A\u0627\u0646","\u062F \u0627\u0641\u063A\u0627\u0646\u0633\u062A\u0627\u0646 \u0627\u0633\u0644\u0627\u0645\u06CC \u062C\u0645\u0647\u0648\u0631\u06CC\u062A"]},{iso3:"AGO",iso2:"AO",m49:"024",name:"Angola",aliases:["\u{1F1E6}\u{1F1F4}","republic of angola","republica de angola"]},{iso3:"AIA",iso2:"AI",m49:"660",name:"Anguilla",aliases:["\u{1F1E6}\u{1F1EE}","malliouhana"]},{iso3:"ALA",iso2:"AX",m49:"248",name:"\xC5land Islands",aliases:["\u{1F1E6}\u{1F1FD}","aaland","aaland islands","ahvenanmaa","aland","aland isles","aland region","alands lan","landskapet aland"]},{iso3:"ALB",iso2:"AL",m49:"008",name:"Albania",aliases:["\u{1F1E6}\u{1F1F1}","peoples republic of albania","peoples socialist republic of albania","republic of albania","republika e shqiperise","shqiperi","shqiperia","shqiperise","socialist republic of albania"]},{iso3:"AND",iso2:"AD",m49:"020",name:"Andorra",aliases:["\u{1F1E6}\u{1F1E9}","el pais dels pirineus","les valls dandorra","principality of andorra","principality of the valleys of andorra","principat dandorra","valls dandorra"]},{iso3:"ARE",iso2:"AE",m49:"784",name:"United Arab Emirates",aliases:["\u{1F1E6}\u{1F1EA}","emirates","uae","\u0627\u0644\u0625\u0645\u0627\u0631\u0627\u062A","\u0627\u0644\u0625\u0645\u0627\u0631\u0627\u062A \u0627\u0644\u0639\u0631\u0628\u064A\u0629 \u0627\u0644\u0645\u062A\u062D\u062F\u0629","\u0627\u0644\u0627\u0645\u0627\u0631\u0627\u062A","\u0627\u0644\u0627\u0645\u0627\u0631\u0627\u062A \u0627\u0644\u0639\u0631\u0628\u064A\u0629 \u0627\u0644\u0645\u062A\u062D\u062F\u0629","\u062F\u0648\u0644\u0629 \u0627\u0644\u0625\u0645\u0627\u0631\u0627\u062A \u0627\u0644\u0639\u0631\u0628\u064A\u0629 \u0627\u0644\u0645\u062A\u062D\u062F\u0629"]},{iso3:"ARG",iso2:"AR",m49:"032",name:"Argentina",aliases:["\u{1F1E6}\u{1F1F7}","argentine republic","nacion argentina","republic of argentina","republica argentina"]},{iso3:"ARM",iso2:"AM",m49:"051",name:"Armenia",aliases:["\u{1F1E6}\u{1F1F2}","hayastan","hayastani hanrapetutyun","republic of armenia","\u0570\u0561\u0575\u0561\u057D\u057F\u0561\u0576","\u0570\u0561\u0575\u0561\u057D\u057F\u0561\u0576\u056B \u0570\u0561\u0576\u0580\u0561\u057A\u0565\u057F\u0578\u0582\u0569\u0575\u0578\u0582\u0576","\u0570\u0561\u0575\u0584","\u0570\u0570"]},{iso3:"ASM",iso2:"AS",m49:"016",name:"American Samoa",aliases:["\u{1F1E6}\u{1F1F8}","amerika samoa","east samoa","samoa american","samoa united states","territory of american samoa","us samoa"]},{iso3:"ATA",iso2:"AQ",m49:"010",name:"Antarctica",aliases:["\u{1F1E6}\u{1F1F6}","antarctica treaty area"]},{iso3:"ATF",iso2:"TF",m49:"260",name:"French Southern Territories",aliases:["\u{1F1F9}\u{1F1EB}","taaf","terres australes et antarctiques francaises","terres australes francaises","terres australes francaises les","territoire des terres australes et antarctiques francaises"]},{iso3:"ATG",iso2:"AG",m49:"028",name:"Antigua and Barbuda",aliases:["\u{1F1E6}\u{1F1EC}","antigua","antigua barbuda","barbuda"]},{iso3:"AUS",iso2:"AU",m49:"036",name:"Australia",aliases:["\u{1F1E6}\u{1F1FA}","commonwealth of australia","new holland","new hollandia","nova hollandia"]},{iso3:"AUT",iso2:"AT",m49:"040",name:"Austria",aliases:["\u{1F1E6}\u{1F1F9}","osterreich","republic of austria","republik osterreich","zweite republik"]},{iso3:"AZE",iso2:"AZ",m49:"031",name:"Azerbaijan",aliases:["\u{1F1E6}\u{1F1FF}","az\u0259rbaycan","az\u0259rbaycan respublikas\u0131","republic of azerbaijan"]},{iso3:"BDI",iso2:"BI",m49:"108",name:"Burundi",aliases:["\u{1F1E7}\u{1F1EE}","gouvernement du burundi","la republique du burundi","republic of burundi","republika yu burundi","republika yuburundi","republique du burundi","repuburika yuburundi","uburundi"]},{iso3:"BEL",iso2:"BE",m49:"056",name:"Belgium",aliases:["\u{1F1E7}\u{1F1EA}","belg","belgie","belgien","belgique","kingdom of belgium","konigreich belgien","koninkrijk belgie","royaume de belgique"]},{iso3:"BEN",iso2:"BJ",m49:"204",name:"Benin",aliases:["\u{1F1E7}\u{1F1EF}","dahomey","la republique du benin","republic of benin","republique du benin"]},{iso3:"BES",iso2:"BQ",m49:"535",name:"Bonaire, Sint Eustatius and Saba",aliases:["\u{1F1E7}\u{1F1F6}","bes eilanden","bes islands","bijzondere gemeente","bonaire","bonaire saint eustatius and saba","bonaire sint eustatius en saba","caraibisch nederland","caribbean netherlands","caribisch nederland","hulanda karibense","islanan bes","netherlands antilles","saba","sint eustatius"]},{iso3:"BFA",iso2:"BF",m49:"854",name:"Burkina Faso",aliases:["\u{1F1E7}\u{1F1EB}","republic of burkina faso","republic of upper volta"]},{iso3:"BGD",iso2:"BD",m49:"050",name:"Bangladesh",aliases:["\u{1F1E7}\u{1F1E9}","bangla desh","east pakistan","gonaoprojatontri bangladesh","peoples republic of bangladesh","\u0997\u09A3\u09AA\u09CD\u09B0\u099C\u09BE\u09A4\u09A8\u09CD\u09A4\u09CD\u09B0\u09C0 \u09AC\u09BE\u0982\u09B2\u09BE\u09A6\u09C7\u09B6","\u09AC\u09BE\u0982\u09B2\u09BE \u09A6\u09C7\u09B6","\u09AC\u09BE\u0982\u09B2\u09BE\u09A6\u09C7\u09B6","\u09AC\u09BF\u09A1\u09BF"]},{iso3:"BGR",iso2:"BG",m49:"100",name:"Bulgaria",aliases:["\u{1F1E7}\u{1F1EC}","bulgarian republic","republic of bulgaria","republika bulgaria","republika bulgariya","\u0431\u0433","\u0431\u044A\u043B\u0433\u0430\u0440\u0438\u044F","\u0440\u0435\u043F\u0443\u0431\u043B\u0438\u043A\u0430 \u0431\u044A\u043B\u0433\u0430\u0440\u0438\u044F"]},{iso3:"BHR",iso2:"BH",m49:"048",name:"Bahrain",aliases:["\u{1F1E7}\u{1F1ED}","bahrein islands","kingdom of bahrain","\u0627\u0644\u0628\u062D\u0631\u064A\u0646","\u062F\u0648\u0644\u0629 \u0627\u0644\u0628\u062D\u0631\u064A\u0646","\u0645\u0645\u0644\u0643\u0629 \u0627\u0644\u0628\u062D\u0631\u064A\u0646"]},{iso3:"BHS",iso2:"BS",m49:"044",name:"Bahamas",aliases:["\u{1F1E7}\u{1F1F8}","bahama islands","bahamas the","commonwealth of the bahamas"]},{iso3:"BIH",iso2:"BA",m49:"070",name:"Bosnia and Herzegovina",aliases:["\u{1F1E7}\u{1F1E6}","bosna","bosna i hercegovina","bosnia","bosnia and hercegovina","bosnia herzegovina","hercegovina","herzegovina","\u0431\u0438\u0445","\u0431\u043E\u0441\u043D\u0430","\u0431\u043E\u0441\u043D\u0430 \u0438 \u0445\u0435\u0440\u0446\u0435\u0433\u043E\u0432\u0438\u043D\u0430","\u0431\u0445"]},{iso3:"BLM",iso2:"BL",m49:"652",name:"Saint Barth\xE9lemy",aliases:["\u{1F1E7}\u{1F1F1}","collectivite doutre mer de saint barthelemy","collectivite territoriale de saint barthelemy","collectivity of saint barthelemy","saint barth","saint barths","saint barts","saint bartz"]},{iso3:"BLR",iso2:"BY",m49:"112",name:"Belarus",aliases:["\u{1F1E7}\u{1F1FE}","republic of belarus","respublika belarus","respublika byelarus","\u0431\u0435\u043B\u0430\u0440\u0443\u0441\u043A\u0430\u044F \u0440\u044D\u0441\u043F\u0443\u0431\u043B\u0456\u043A\u0430","\u0431\u0435\u043B\u0430\u0440\u0443\u0441\u044C","\u0431\u0435\u043B\u0430\u044F \u0440\u0443\u0441\u044C","\u0431\u0435\u043B\u043E\u0440\u0443\u0441\u0441\u0438\u044F","\u0440\u0431","\u0440\u0435\u0441\u043F\u0443\u0431\u043B\u0438\u043A\u0430 \u0431\u0435\u043B\u0430\u0440\u0443\u0441\u044C","\u0440\u044D\u0441\u043F\u0443\u0431\u043B\u0456\u043A\u0430 \u0431\u0435\u043B\u0430\u0440\u0443\u0441\u044C"]},{iso3:"BLZ",iso2:"BZ",m49:"084",name:"Belize",aliases:["\u{1F1E7}\u{1F1FF}"]},{iso3:"BMU",iso2:"BM",m49:"060",name:"Bermuda",aliases:["\u{1F1E7}\u{1F1F2}","barmuda","barmuda i","barmuda isl","barmuda islands","barmudas","bermoothes","bermuda islands","bermudas","bermudian islands","colony of bermuda","devils isles","isle of devils","somers islands","somers isles","summers isles","territory of bermuda","virgineola"]},{iso3:"BOL",iso2:"BO",m49:"068",name:"Bolivia (Plurinational State of)",aliases:["\u{1F1E7}\u{1F1F4}","bolivia","bulibiya","estado plurinacional de bolivia","plurinational state of bolivia","puliwya","republic of bolivia","republica de bolivia","volivia","wuliwiya","wuliwya"]},{iso3:"BRA",iso2:"BR",m49:"076",name:"Brazil",aliases:["\u{1F1E7}\u{1F1F7}","brasil","federative republic of brazil","pindorama","republica federativa do brasil"]},{iso3:"BRB",iso2:"BB",m49:"052",name:"Barbados",aliases:["\u{1F1E7}\u{1F1E7}","barbadoes"]},{iso3:"BRN",iso2:"BN",m49:"096",name:"Brunei Darussalam",aliases:["\u{1F1E7}\u{1F1F3}","brunei","nation of brunei the abode of peace","negara brunei darussalam"]},{iso3:"BTN",iso2:"BT",m49:"064",name:"Bhutan",aliases:["\u{1F1E7}\u{1F1F9}","kingdom of bhutan","\u0F60\u0F56\u0FB2\u0F74\u0F42","\u0F60\u0F56\u0FB2\u0F74\u0F42\u0F0B\u0F61\u0F74\u0F63\u0F0B","\u0F60\u0F56\u0FB2\u0F74\u0F42\u0F61\u0F74\u0F63\u0F0B\u0F0B"]},{iso3:"BVT",iso2:"BV",m49:"074",name:"Bouvet Island",aliases:["\u{1F1E7}\u{1F1FB}"]},{iso3:"BWA",iso2:"BW",m49:"072",name:"Botswana",aliases:["\u{1F1E7}\u{1F1FC}","lefatshe la botswana","republic of botswana"]},{iso3:"CAF",iso2:"CF",m49:"140",name:"Central African Republic",aliases:["\u{1F1E8}\u{1F1EB}","centrafricaine republique","centrafrique","central africa","kodorosese ti beafrika","la republique","rep centrafrique","republique centrafricaine"]},{iso3:"CAN",iso2:"CA",m49:"124",name:"Canada",aliases:["\u{1F1E8}\u{1F1E6}","le canada"]},{iso3:"CCK",iso2:"CC",m49:"166",name:"Cocos (Keeling) Islands",aliases:["\u{1F1E8}\u{1F1E8}","cocos islands","keeling islands","territory of the cocos keeling islands"]},{iso3:"CHE",iso2:"CH",m49:"756",name:"Switzerland",aliases:["\u{1F1E8}\u{1F1ED}","confederation helvetique","confederation suisse","confederazione elvetica","confederazione svizzera","confederaziun svizra","confoederatio helvetica","conf\u0153deratio helvetica","eidgenossenschaft","elvezia","helvetie","la confederation suisse","schweiz","schweizerische eidgenossenschaft","suisse","svizra","svizzera","swiss","swiss confederation"]},{iso3:"CHL",iso2:"CL",m49:"152",name:"Chile",aliases:["\u{1F1E8}\u{1F1F1}","republic of chile","republica de chile"]},{iso3:"CHN",iso2:"CN",m49:"156",name:"China",aliases:["\u{1F1E8}\u{1F1F3}","china pr","peoples republic of china","pr china","prc","\u4E2D\u534E\u4EBA\u6C11\u5171\u548C\u56FD","\u4E2D\u56FD"]},{iso3:"CIV",iso2:"CI",m49:"384",name:"C\xF4te d'Ivoire",aliases:["\u{1F1E8}\u{1F1EE}","cote ivoire","ivory coast","republic of cote divoire","republic of ivory coast","republic of the ivory coast","republique de cote divoire"]},{iso3:"CMR",iso2:"CM",m49:"120",name:"Cameroon",aliases:["\u{1F1E8}\u{1F1F2}","cameroun","la republique du cameroun","republic of cameroon","republique du cameroun"]},{iso3:"COD",iso2:"CD",m49:"180",name:"Democratic Republic of the Congo",aliases:["\u{1F1E8}\u{1F1E9}","congo belge","congo democratic republic of the","congo kinshasa","dem rep congo","dem republic of congo","dem republic of the congo","democratic republic of congo","dr congo","drc","rd congo","rep demcongo","republic of the congo","republique democratique du congo","republique du zaire","zaire"]},{iso3:"COG",iso2:"CG",m49:"178",name:"Congo",aliases:["\u{1F1E8}\u{1F1EC}","congo brazza","congo brazzaville","congo republic","rep congo","republic of congo","republique du congo"]},{iso3:"COK",iso2:"CK",m49:"184",name:"Cook Islands",aliases:["\u{1F1E8}\u{1F1F0}","cook group","hervey islands"]},{iso3:"COL",iso2:"CO",m49:"170",name:"Colombia",aliases:["\u{1F1E8}\u{1F1F4}","republic of colombia","republica de colombia"]},{iso3:"COM",iso2:"KM",m49:"174",name:"Comoros",aliases:["\u{1F1F0}\u{1F1F2}","comores","comores archipel","etat comorien","lunion des comores","republique des comores","republique federale et islamique des comores","republique federale islamique des comores","territoire des comores","union des comores","union of the comoros","\u0625\u062A\u062D\u0627\u062F \u0627\u0644\u0642\u0645\u0631","\u0627\u062A\u062D\u0627\u062F \u062C\u0632\u0631 \u0627\u0644\u0642\u0645\u0631","\u0627\u0644\u0627\u062A\u062D\u0627\u062F \u0627\u0644\u0642\u0645\u0631\u064A","\u0627\u0644\u0642\u0645\u0631","\u062C\u0632\u0631 \u0627\u0644\u0642\u0645\u0631","\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u0627\u0644\u0642\u0645\u0631 \u0627\u0644\u0645\u062A\u062D\u062F\u0629","\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u062C\u0632\u0631 \u0627\u0644\u0642\u0645\u0631 \u0627\u0644\u0627\u062A\u062D\u0627\u062F\u064A\u0629 \u0627\u0644\u0625\u0633\u0644\u0627\u0645\u064A\u0629","\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u062C\u0632\u0631\u0627\u0644\u0642\u0645\u0631 \u0627\u0644\u0645\u062A\u062D\u062F\u0629"]},{iso3:"CPV",iso2:"CV",m49:"132",name:"Cabo Verde",aliases:["\u{1F1E8}\u{1F1FB}","cape verde","cape verde islands","kab verd","kabu verdi","kauberdi","republic of cabo verde","republic of cape verde","republica de cabo verde"]},{iso3:"CRI",iso2:"CR",m49:"188",name:"Costa Rica",aliases:["\u{1F1E8}\u{1F1F7}","republic of costa rica","republica de costa rica"]},{iso3:"CUB",iso2:"CU",m49:"192",name:"Cuba",aliases:["\u{1F1E8}\u{1F1FA}","isla juana","republic of cuba","republica de cuba"]},{iso3:"CUW",iso2:"CW",m49:"531",name:"Cura\xE7ao",aliases:["\u{1F1E8}\u{1F1FC}","corsou","corsouw","corsow","country of curacao","curacau","curacoa","curazao","cura\u03C2ao","curocao","island territory of curacao","korsou","land curacao","pais korsou"]},{iso3:"CXR",iso2:"CX",m49:"162",name:"Christmas Island",aliases:["\u{1F1E8}\u{1F1FD}","christmas island other territories","christmas island other territories australia","territory of christmas island"]},{iso3:"CYM",iso2:"KY",m49:"136",name:"Cayman Islands",aliases:["\u{1F1F0}\u{1F1FE}","caymans"]},{iso3:"CYP",iso2:"CY",m49:"196",name:"Cyprus",aliases:["\u{1F1E8}\u{1F1FE}","greek administration of southern cyprus","greek cypriot state","guney k\u0131br\u0131s","guney k\u0131br\u0131s rum cumhuriyeti","guney k\u0131br\u0131s rum kesimi","guney k\u0131br\u0131s rum yonetimi","kipriaki dhimokratia","k\u0131br\u0131s","k\u0131br\u0131s cumhuriyeti","k\u0131br\u0131s rum kesimi","kypriaki dimokratia","kypros","republic of cyprus","\u03BA\u03C5\u03C0\u03C1\u03B9\u03B1\u03BA\u03B7 \u03B4\u03B7\u03BC\u03BF\u03BA\u03C1\u03B1\u03C4\u03B9\u03B1","\u03BA\u03C5\u03C0\u03C1\u03BF\u03C2"]},{iso3:"CZE",iso2:"CZ",m49:"203",name:"Czechia",aliases:["\u{1F1E8}\u{1F1FF}","ceska republika","ceske kraje","ceske uzemi","ceske zeme","cesko","cr","czech republic"]},{iso3:"DEU",iso2:"DE",m49:"276",name:"Germany",aliases:["\u{1F1E9}\u{1F1EA}","br deutschland","bundesrepublik","bundesrepublik deutschland","deutschland","federal republic of germany"]},{iso3:"DJI",iso2:"DJ",m49:"262",name:"Djibouti",aliases:["\u{1F1E9}\u{1F1EF}","la republique de djibouti","republic of djibouti","republique de djibouti","\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u062C\u064A\u0628\u0648\u062A\u064A","\u062C\u064A\u0628\u0648\u062A\u064A"]},{iso3:"DMA",iso2:"DM",m49:"212",name:"Dominica",aliases:["\u{1F1E9}\u{1F1F2}","commonwealth of dominica","island of dominica","waitu kubuli"]},{iso3:"DNK",iso2:"DK",m49:"208",name:"Denmark",aliases:["\u{1F1E9}\u{1F1F0}","dania","danmark","denmark proper","kongeriget danmark","metropolitan denmark"]},{iso3:"DOM",iso2:"DO",m49:"214",name:"Dominican Republic",aliases:["\u{1F1E9}\u{1F1F4}","dominicana","domrep","haiti espanol","quisqueya","republica de santo domingo","republica dominicana","santo domingo"]},{iso3:"DZA",iso2:"DZ",m49:"012",name:"Algeria",aliases:["\u{1F1E9}\u{1F1FF}","peoples democratic republic of algeria","\u0627\u0644\u062C\u0632\u0627\u0626\u0631","\u0627\u0644\u062C\u0632\u0627\u064A\u0631","\u0627\u0644\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u0627\u0644\u062C\u0632\u0627\u0626\u0631\u064A\u0629 \u0627\u0644\u062F\u064A\u0645\u0642\u0631\u0627\u0637\u064A\u0629 \u0627\u0644\u0634\u0639\u0628\u064A\u0629","\u0627\u0644\u062F\u0632\u0627\u064A\u0631","\u062F\u0632\u0627\u064A\u0631"]},{iso3:"ECU",iso2:"EC",m49:"218",name:"Ecuador",aliases:["\u{1F1EA}\u{1F1E8}","ecuadorian state","el ecuador","estado ecuatoriano","republic of ecuador","republic of equator","republic of the equator","republica del ecuador"]},{iso3:"EGY",iso2:"EG",m49:"818",name:"Egypt",aliases:["\u{1F1EA}\u{1F1EC}","arab rep egypt","arab republic of egypt","rep egypt","republic of egypt","\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u0645\u0635\u0631 \u0627\u0644\u0639\u0631\u0628\u064A\u0629","\u0645\u0635\u0631"]},{iso3:"ERI",iso2:"ER",m49:"232",name:"Eritrea",aliases:["\u{1F1EA}\u{1F1F7}","ertra","hagere ertra","hagere iertra","iertra","iritriya","state of eritrea","\u0625\u0631\u062A\u0631\u064A\u0627","\u0625\u0631\u064A\u062A\u0631\u064A\u0627","\u0627\u0631\u062A\u0631\u064A\u0627","\u0627\u0631\u062A\u064A\u0631\u064A\u0627","\u0627\u0631\u064A\u062A\u0631\u064A\u0627","\u062F\u0648\u0644\u0629 \u0625\u0631\u062A\u0631\u064A\u0627","\u062F\u0648\u0644\u0629 \u0625\u0631\u064A\u062A\u0631\u064A\u0627","\u1203\u1308\u1228 \u12A4\u122D\u1275\u122B","\u12A4\u122D\u1275\u122B"]},{iso3:"ESH",iso2:"EH",m49:"732",name:"Western Sahara",aliases:["\u{1F1EA}\u{1F1ED}","southern provinces","spanish sahara","west sahara"]},{iso3:"ESP",iso2:"ES",m49:"724",name:"Spain",aliases:["\u{1F1EA}\u{1F1F8}","espana","estado espanol","kingdom of spain","reino de espana"]},{iso3:"EST",iso2:"EE",m49:"233",name:"Estonia",aliases:["\u{1F1EA}\u{1F1EA}","eesti","eesti noukogude sotsialistlik vabariik","eesti vabariik","estland","republic of estonia"]},{iso3:"ETH",iso2:"ET",m49:"231",name:"Ethiopia",aliases:["\u{1F1EA}\u{1F1F9}","federal democratic republic of ethiopia","ityopiya","yeityopiya federalawi demokrasiyawi ripeblik","yeityopiya hizbawi dimokrasiyawi ripublik","\u12A2\u1275\u12EE\u1335\u12EB","\u12E8\u12A2\u1275\u12EE\u1335\u12EB \u134C\u12F4\u122B\u120B\u12CA \u12F4\u121E\u12AD\u122B\u1232\u12EB\u12CA \u122A\u1350\u1265\u120A\u12AD"]},{iso3:"FIN",iso2:"FI",m49:"246",name:"Finland",aliases:["\u{1F1EB}\u{1F1EE}","republic of finland","republiken finland","suomen tasavalta","suomi"]},{iso3:"FJI",iso2:"FJ",m49:"242",name:"Fiji",aliases:["\u{1F1EB}\u{1F1EF}","fiji ganarajya","matanitu ko viti","matanitu tugalala o viti","republic of fiji","republic of the fiji islands","viti"]},{iso3:"FLK",iso2:"FK",m49:"238",name:"Falkland Islands (Malvinas)",aliases:["\u{1F1EB}\u{1F1F0}","colony of the falkland islands","falkland islands","falklands","islas malvinas","malvinas","malvinas islands"]},{iso3:"FRA",iso2:"FR",m49:"250",name:"France",aliases:["\u{1F1EB}\u{1F1F7}","fr","french republic","la france","la republique francaise","lhexagone","republique francaise"]},{iso3:"FRO",iso2:"FO",m49:"234",name:"Faroe Islands",aliases:["\u{1F1EB}\u{1F1F4}","faer oer","f\xE6r\xF8","faeroe is","faeroe islands","faeroe isles","f\xE6r\xF8erne","faeroes","far oer","faroe island","faroe isles","faroes","faroese islands","f\xF8roya","f\xF8royar","f\xF8royum"]},{iso3:"FSM",iso2:"FM",m49:"583",name:"Micronesia (Federated States of)",aliases:["\u{1F1EB}\u{1F1F2}","fed sts micronesia","fed sts of micronesia","federated states of micronesia","federated states of micronesia fsm","micronesia"]},{iso3:"GAB",iso2:"GA",m49:"266",name:"Gabon",aliases:["\u{1F1EC}\u{1F1E6}","gabonese republic","la republique gabonaise","le gabon","republique du gabon","republique gabonaise"]},{iso3:"GBR",iso2:"GB",m49:"826",name:"United Kingdom of Great Britain and Northern Ireland",aliases:["\u{1F1EC}\u{1F1E7}","britain","england","great britain","great britain and northern ireland","northern ireland","scotland","uk","united kingdom","wales"]},{iso3:"GEO",iso2:"GE",m49:"268",name:"Georgia",aliases:["\u{1F1EC}\u{1F1EA}","georgia country","republic of georgia","sakartvelo","\u049B\u044B\u0440\u04AD\u0442\u04D9\u044B\u043B\u0430","\u10E1\u10D0\u10E5\u10D0\u10E0\u10D7\u10D5\u10D4\u10DA\u10DD","\u10E1\u10D0\u10E5\u10D0\u10E0\u10D7\u10D5\u10D4\u10DA\u10DD\u10E1 \u10E0\u10D4\u10E1\u10DE\u10E3\u10D1\u10DA\u10D8\u10D9\u10D0"]},{iso3:"GGY",iso2:"GG",m49:"831",name:"Guernsey",aliases:["\u{1F1EC}\u{1F1EC}","bailiwick of guernsey","bailliage de guernesey","bailliage de guernesi","giernesi","great britain guernsey","guernesey","lisia"]},{iso3:"GHA",iso2:"GH",m49:"288",name:"Ghana",aliases:["\u{1F1EC}\u{1F1ED}","republic of ghana"]},{iso3:"GIB",iso2:"GI",m49:"292",name:"Gibraltar",aliases:["\u{1F1EC}\u{1F1EE}","rock of gibraltar"]},{iso3:"GIN",iso2:"GN",m49:"324",name:"Guinea",aliases:["\u{1F1EC}\u{1F1F3}","guinee","guinee conakry","republic of guinea","republique de guinee"]},{iso3:"GLP",iso2:"GP",m49:"312",name:"Guadeloupe",aliases:["\u{1F1EC}\u{1F1F5}"]},{iso3:"GMB",iso2:"GM",m49:"270",name:"Gambia",aliases:["\u{1F1EC}\u{1F1F2}","islamic republic of the gambia","republic of the gambia"]},{iso3:"GNB",iso2:"GW",m49:"624",name:"Guinea-Bissau",aliases:["\u{1F1EC}\u{1F1FC}","guine bissau","republic of guinea bissau","republica da guine bissau"]},{iso3:"GNQ",iso2:"GQ",m49:"226",name:"Equatorial Guinea",aliases:["\u{1F1EC}\u{1F1F6}","guine equatorial","guinea ecuatorial","guinea espanola","guinee equat","guinee equatoriale","la republique de guinee equatoriale","posesiones espanolas del golfo de guinea","provincia de la guinea ecuatorial","republic of equatorial guinea","republica da guine equatorial","republica de guinea ecuatorial","territorios espanoles del golfo de guinea"]},{iso3:"GRC",iso2:"GR",m49:"300",name:"Greece",aliases:["\u{1F1EC}\u{1F1F7}","ellada","ellas","elliniki dhimokratia","elliniki dimokratia","greek republic","hellas","hellas greece","hellenic republic","vasilion tis ellados","\u03B4\u03B7\u03BC\u03BF\u03BA\u03C1\u03B1\u03C4\u03B9\u03B1 \u03C4\u03B7\u03C2 \u03B5\u03BB\u03BB\u03B1\u03B4\u03B1\u03C2","\u03B4\u03B7\u03BC\u03BF\u03BA\u03C1\u03B1\u03C4\u03B9\u03B1 \u03C4\u03B7\u03C2 \u03B5\u03BB\u03BB\u03B1\u03B4\u03BF\u03C2","\u03B5\u03BB\u03BB\u03B1\u03B4\u03B1","\u03B5\u03BB\u03BB\u03B1\u03C2","\u03B5\u03BB\u03BB\u03B1\u03C2 \u03B5\u03BB\u03BB\u03B1\u03B4\u03B1","\u03B5\u03BB\u03BB\u03B7\u03BD\u03B9\u03BA\u03B7 \u03B4\u03B7\u03BC\u03BF\u03BA\u03C1\u03B1\u03C4\u03B9\u03B1"]},{iso3:"GRD",iso2:"GD",m49:"308",name:"Grenada",aliases:["\u{1F1EC}\u{1F1E9}"]},{iso3:"GRL",iso2:"GL",m49:"304",name:"Greenland",aliases:["\u{1F1EC}\u{1F1F1}","kalaallit nunaat"]},{iso3:"GTM",iso2:"GT",m49:"320",name:"Guatemala",aliases:["\u{1F1EC}\u{1F1F9}","republic of guatemala","republica de guatemala"]},{iso3:"GUF",iso2:"GF",m49:"254",name:"French Guiana",aliases:["\u{1F1EC}\u{1F1EB}","fr 973","guiana","guiana france","guyane","guyane francaise","gwiyann","gwiyann franse","lagwiyann"]},{iso3:"GUM",iso2:"GU",m49:"316",name:"Guam",aliases:["\u{1F1EC}\u{1F1FA}","guahan","guam usa","islan guahan","island of guam","territory of guam"]},{iso3:"GUY",iso2:"GY",m49:"328",name:"Guyana",aliases:["\u{1F1EC}\u{1F1FE}","co operative republic of guyana","republic of guyana"]},{iso3:"HKG",iso2:"HK",m49:"344",name:"Hong Kong",aliases:["\u{1F1ED}\u{1F1F0}","hksar","hong kong sar","hong kong special administrative region","hong kong special administrative region of the peoples republic of china","hongkong"]},{iso3:"HMD",iso2:"HM",m49:"334",name:"Heard Island and McDonald Islands",aliases:["\u{1F1ED}\u{1F1F2}","heard","heard & mcdonald islands","heard and macdonald islands","heard island","himi","mcdonald","mcdonald island","territory of heard island and mcdonald islands"]},{iso3:"HND",iso2:"HN",m49:"340",name:"Honduras",aliases:["\u{1F1ED}\u{1F1F3}","guaymuras","higueras","honduran republic","republic of honduras","republica de honduras"]},{iso3:"HRV",iso2:"HR",m49:"191",name:"Croatia",aliases:["\u{1F1ED}\u{1F1F7}","hrvatska","republic of croatia","republika hrvatska"]},{iso3:"HTI",iso2:"HT",m49:"332",name:"Haiti",aliases:["\u{1F1ED}\u{1F1F9}","ayiti","haitian republic","la republique dhaiti","repiblik d ayiti","republic of haiti","republique dhaiti"]},{iso3:"HUN",iso2:"HU",m49:"348",name:"Hungary",aliases:["\u{1F1ED}\u{1F1FA}","a magyar koztarsasag","a magyar nepkoztarsasag","harmadik magyar koztarsasag","magyar koztarsasag","magyar nepkoztarsasag","magyarorszag","mo"]},{iso3:"IDN",iso2:"ID",m49:"360",name:"Indonesia",aliases:["\u{1F1EE}\u{1F1E9}","negara kesatuan republik indonesia","nkri","republic of indonesia","republik indonesia"]},{iso3:"IMN",iso2:"IM",m49:"833",name:"Isle of Man",aliases:["\u{1F1EE}\u{1F1F2}","ellan vannin","i man","i mann","i mannin","isle of mann","mann","mannin","manx"]},{iso3:"IND",iso2:"IN",m49:"356",name:"India",aliases:["\u{1F1EE}\u{1F1F3}","al hind","bharat","bharat ganarajya","bharata","bharatvarsh","hindoostan","hindustan","indostan","republic of india","tenjiku","tianzhu","\u0906\u0930\u094D\u092F\u0935\u0930\u094D\u0924","\u0907\u0902\u0921\u093F\u092F\u093E","\u0907\u0923\u094D\u0921\u093F\u092F\u093E","\u092D\u093E\u0930\u0924","\u092D\u093E\u0930\u0924 \u0917\u0923\u0930\u093E\u091C\u094D\u092F","\u092D\u093E\u0930\u0924\u0935\u0930\u094D\u0937","\u0939\u093F\u0902\u0926\u0941\u0938\u094D\u0924\u093E\u0928","\u0939\u093F\u0928\u094D\u0926\u0941\u0938\u094D\u0924\u093E\u0928","\u0939\u093F\u0928\u094D\u0926\u094B\u0938\u094D\u0924\u093E\u0928"]},{iso3:"IOT",iso2:"IO",m49:"086",name:"British Indian Ocean Territory",aliases:["\u{1F1EE}\u{1F1F4}","biot"]},{iso3:"IRL",iso2:"IE",m49:"372",name:"Ireland",aliases:["\u{1F1EE}\u{1F1EA}","eire","hibernia","irish republic","poblacht na heireann","republic of ireland","southern ireland"]},{iso3:"IRN",iso2:"IR",m49:"364",name:"Iran (Islamic Republic of)",aliases:["\u{1F1EE}\u{1F1F7}","iran","islamic rep iran","islamic republic of iran","persia","\u0627\u06CC\u0631\u0627\u0646","\u0627\u06CC\u0631\u0627\u0646\u0632\u0645\u06CC\u0646","\u067E\u0627\u0631\u0633","\u062C\u0645\u0647\u0648\u0631\u06CC \u0627\u0633\u0644\u0627\u0645\u06CC \u0627\u064A\u0631\u0627\u0646","\u062C\u0645\u0647\u0648\u0631\u06CC \u0627\u0633\u0644\u0627\u0645\u06CC \u0627\u06CC\u0631\u0627\u0646","\u0643\u0634\u0648\u0631 \u0634\u0627\u0647\u0646\u0634\u0627\u0647\u06CC \u0627\u064A\u0631\u0627\u0646"]},{iso3:"IRQ",iso2:"IQ",m49:"368",name:"Iraq",aliases:["\u{1F1EE}\u{1F1F6}","eraq","iraqe","komar i eraq","republic of iraq","\u0627\u0644\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u0627\u0644\u0639\u0631\u0627\u0642\u064A\u0629","\u0627\u0644\u0639\u0631\u0627\u0642","\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u0627\u0644\u0639\u0631\u0627\u0642","\u0639\u0631\u0627\u0642","\u0639\u06CE\u0631\u0627\u0642"]},{iso3:"ISL",iso2:"IS",m49:"352",name:"Iceland",aliases:["\u{1F1EE}\u{1F1F8}","icelandic republic","island","ly\xF0veldi\xF0 island","republic of iceland","ysland"]},{iso3:"ISR",iso2:"IL",m49:"376",name:"Israel",aliases:["\u{1F1EE}\u{1F1F1}","erez yisrael","medinat yisrael","state of israel","yisrael","\u05D9\u05E9\u05E8\u05D0\u05DC","\u05DE\u05D3\u05D9\u05E0\u05EA \u05D9\u05E9\u05E8\u05D0\u05DC"]},{iso3:"ITA",iso2:"IT",m49:"380",name:"Italy",aliases:["\u{1F1EE}\u{1F1F9}","il bel paese","italia","italian republic","repubblica italiana","republic of italy"]},{iso3:"JAM",iso2:"JM",m49:"388",name:"Jamaica",aliases:["\u{1F1EF}\u{1F1F2}","commonwealth of jamaica","jamieka","jomieka","jumieka"]},{iso3:"JEY",iso2:"JE",m49:"832",name:"Jersey",aliases:["\u{1F1EF}\u{1F1EA}","bailliage de jerri","bailliage de jersey","balliwick of jersey","i iersey","i jersey","iersey","iersey i","isle of jersey","jerri","jersey i","jersey island"]},{iso3:"JOR",iso2:"JO",m49:"400",name:"Jordan",aliases:["\u{1F1EF}\u{1F1F4}","giordania","hashemite kingdom of jordan","kingdom of jordan","state of jordan","yarden","\u0627\u0644\u0623\u0631\u062F\u0646","\u0627\u0644\u0627\u0631\u062F\u0646","\u0627\u0644\u0645\u0645\u0644\u0643\u0629 \u0627\u0644\u0623\u0631\u062F\u0646\u064A\u0629 \u0627\u0644\u0647\u0627\u0634\u0645\u064A\u0629","\u0627\u0644\u0645\u0645\u0644\u0643\u0629 \u0627\u0644\u0627\u0631\u062F\u0646\u064A\u0629 \u0627\u0644\u0647\u0627\u0634\u0645\u064A\u0629"]},{iso3:"JPN",iso2:"JP",m49:"392",name:"Japan",aliases:["\u{1F1EF}\u{1F1F5}","state of japan","\u3042\u304D\u3064\u3057\u307E","\u304A\u304A\u3084\u3057\u307E","\u3057\u304D\u3057\u307E","\u30B8\u30E3\u30D1\u30F3","\u3057\u3093\u3057\u3085\u3046","\u306B\u3063\u307D\u3093","\u306B\u3063\u307D\u3093\u3053\u304F","\u306B\u307B\u3093","\u306B\u307B\u3093\u3053\u304F","\u3072\u3044\u305A\u308B\u304F\u306B","\u3075\u305D\u3046","\u5927\u516B\u5DDE","\u6276\u6728\u4E4B\u5730","\u6276\u6851","\u6276\u6851\u56FD","\u6577\u5CF6","\u65E5\u51FA\u308B\u56FD","\u65E5\u672C","\u6991\u6728\u4E4B\u5730","\u745E\u7A42\u56FD","\u795E\u5DDE","\u79CB\u6D25\u5CF6","\u8466\u539F\u4E2D\u56FD"]},{iso3:"KAZ",iso2:"KZ",m49:"398",name:"Kazakhstan",aliases:["\u{1F1F0}\u{1F1FF}","qazaqstan","qazaqstan respublikasy","republic of kazakhstan","\u043A\u0430\u0437\u0430\u0445\u0441\u0442\u0430\u043D","\u049B\u0430\u0437\u0430\u049B\u0441\u0442\u0430\u043D","\u049B\u0430\u0437\u0430\u049B\u0441\u0442\u0430\u043D \u0440\u0435\u0441\u043F\u0443\u0431\u043B\u0438\u043A\u0430\u0441\u044B","\u0440\u0435\u0441\u043F\u0443\u0431\u043B\u0438\u043A\u0430 \u043A\u0430\u0437\u0430\u0445\u0441\u0442\u0430\u043D","\u0440\u043A"]},{iso3:"KEN",iso2:"KE",m49:"404",name:"Kenya",aliases:["\u{1F1F0}\u{1F1EA}","jamhuri ya kenya","republic of kenya"]},{iso3:"KGZ",iso2:"KG",m49:"417",name:"Kyrgyzstan",aliases:["\u{1F1F0}\u{1F1EC}","kyrgyz republic","kyrgyz respublikasy","kyrgyzstan respublikasy","\u043A\u0440","\u043A\u044B\u0440\u0433\u044B\u0437 \u0440\u0435\u0441\u043F\u0443\u0431\u043B\u0438\u043A\u0430\u0441\u044B","\u043A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D"]},{iso3:"KHM",iso2:"KH",m49:"116",name:"Cambodia",aliases:["\u{1F1F0}\u{1F1ED}","camboya","campuchia","kambodzha","kamboja","kampuchea","kingdom of cambodia","\u1780\u1798\u17D2\u1796\u17BB\u1787\u17B6","\u1796\u17D2\u179A\u17C7\u179A\u17B6\u1787\u17B6\u178E\u17B6\u1785\u1780\u17D2\u179A\u1780\u1798\u17D2\u1796\u17BB\u1787\u17B6"]},{iso3:"KIR",iso2:"KI",m49:"296",name:"Kiribati",aliases:["\u{1F1F0}\u{1F1EE}","republic of kiribati"]},{iso3:"KNA",iso2:"KN",m49:"659",name:"Saint Kitts and Nevis",aliases:["\u{1F1F0}\u{1F1F3}","federation of saint christopher and nevis","federation of saint kitts and nevis","kitts & nevis","nevis","saint christopher","saint christopher and nevis","saint kitts"]},{iso3:"KOR",iso2:"KR",m49:"410",name:"Republic of Korea",aliases:["\u{1F1F0}\u{1F1F7}","korea","korea republic","korea republic of","korea south","rep korea","s korea","south korea","taehan minguk","\uB0A8\uC870\uC120","\uB0A8\uD55C","\uB300\uD55C","\uB300\uD55C\uBBFC\uAD6D","\uCF54\uB9AC\uC544","\uD55C\uAD6D"]},{iso3:"KWT",iso2:"KW",m49:"414",name:"Kuwait",aliases:["\u{1F1F0}\u{1F1FC}","state of kuwait","\u0627\u0644\u0643\u0648\u064A\u062A","\u062F\u0648\u0644\u0629 \u0627\u0644\u0643\u0648\u064A\u062A"]},{iso3:"LAO",iso2:"LA",m49:"418",name:"Lao People's Democratic Republic",aliases:["\u{1F1F1}\u{1F1E6}","laos","sathalanalat paxathipatai paxaxon lao","\u0EAA\u0EB2\u0E97\u0EB2\u0EA5\u0EB0\u0E99\u0EB0\u0EA5\u0EB1\u0E94 \u0E9B\u0EB0\u0E8A\u0EB2\u0E97\u0EB4\u0E9B\u0EB0\u0EC4\u0E95 \u0E9B\u0EB0\u0E8A\u0EB2\u0E8A\u0EBB\u0E99\u0EA5\u0EB2\u0EA7","\u0E9B\u0EB0\u0EC0\u0E97\u0E94\u0EA5\u0EB2\u0EA7","\u0EA5\u0EB2\u0EA7"]},{iso3:"LBN",iso2:"LB",m49:"422",name:"Lebanon",aliases:["\u{1F1F1}\u{1F1E7}","lebanese republic","republic of lebanon","state of lebanon","\u0627\u0644\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u0627\u0644\u0644\u0628\u0646\u0627\u0646\u064A\u0629","\u0644\u0628\u0646\u0627\u0646"]},{iso3:"LBR",iso2:"LR",m49:"430",name:"Liberia",aliases:["\u{1F1F1}\u{1F1F7}","liber","republic of liberia"]},{iso3:"LBY",iso2:"LY",m49:"434",name:"Libya",aliases:["\u{1F1F1}\u{1F1FE}","state of libya","\u0627\u0644\u062C\u0645\u0627\u0647\u064A\u0631\u064A\u0629 \u0627\u0644\u0639\u0631\u0628\u064A\u0629 \u0627\u0644\u0644\u064A\u0628\u064A\u0629 \u0627\u0644\u0634\u0639\u0628\u064A\u0629 \u0627\u0644\u0625\u0634\u062A\u0631\u0627\u0643\u064A\u0629","\u0627\u0644\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u0627\u0644\u0644\u064A\u0628\u064A\u0629","\u0627\u0644\u0644\u064A\u0628\u064A","\u0627\u0644\u0644\u064A\u0628\u064A\u0629","\u0627\u0644\u0644\u064A\u0628\u064A\u0646","\u062F\u0648\u0644\u0629 \u0644\u064A\u0628\u064A\u0627","\u0644\u064A\u0628\u0628\u064A\u0627","\u0644\u064A\u0628\u064A","\u0644\u064A\u0628\u064A\u0627","\u0644\u064A\u0628\u064A\u0629"]},{iso3:"LCA",iso2:"LC",m49:"662",name:"Saint Lucia",aliases:["\u{1F1F1}\u{1F1E8}","hewanorra","iyonola"]},{iso3:"LIE",iso2:"LI",m49:"438",name:"Liechtenstein",aliases:["\u{1F1F1}\u{1F1EE}","furstentum lichtenstein","furstentum liechtenstein","principality of liechtenstein"]},{iso3:"LKA",iso2:"LK",m49:"144",name:"Sri Lanka",aliases:["\u{1F1F1}\u{1F1F0}","ceylan","ceylon","democratic socialist republic of sri lanka","ilankaic cananayaka cocalicak kutiyarcu","lankava","prajatantravadi samajavadi janarajaya sri lanka","serendib","srilanka","taprobane","\u0B87\u0BB2\u0B99\u0BCD\u0B95\u0BC8","\u0B87\u0BB2\u0B99\u0BCD\u0B95\u0BC8 \u0B9A\u0BA9\u0BA8\u0BBE\u0BAF\u0B95 \u0B9A\u0BCB\u0B9A\u0BB2\u0BBF\u0B9A\u0B95\u0BCD \u0B95\u0BC1\u0B9F\u0BBF\u0BAF\u0BB0\u0B9A\u0BC1","\u0B87\u0BB2\u0B99\u0BCD\u0B95\u0BC8 \u0B9A\u0BA9\u0BA8\u0BBE\u0BAF\u0B95 \u0B9A\u0BCB\u0BB7\u0BB2\u0BBF\u0B9A\u0B95\u0BCD \u0B95\u0BC1\u0B9F\u0BBF\u0BAF\u0BB0\u0B9A\u0BC1","\u0B88\u0BB4\u0BAE\u0BCD","\u0B9A\u0BBF\u0BB2\u0BCB\u0BA9\u0BCD","\u0DBD\u0D82\u0D9A\u0DCF\u0DC0","\u0DC1\u0DCA\u0DBB\u0DD3 \u0DBD\u0D82\u0D9A\u0DCF \u0DB4\u0DCA\u0DBB\u0DA2\u0DCF\u0DAD\u0DB1\u0DCA\u0DAD\u0DCA\u0DBB\u0DC0\u0DCF\u0DAF\u0DD3 \u0DC3\u0DB8\u0DCF\u0DA2\u0DC0\u0DCF\u0DAF\u0DD3 \u0DA2\u0DB1\u0DBB\u0DA2\u0DBA","\u0DC1\u0DCA\u0DBB\u0DD3 \u0DBD\u0D82\u0D9A\u0DCF\u0DC0","\u0DC1\u0DCA\u200D\u0DBB\u0DD3 \u0DBD\u0D82\u0D9A\u0DCF\u0DC0"]},{iso3:"LSO",iso2:"LS",m49:"426",name:"Lesotho",aliases:["\u{1F1F1}\u{1F1F8}","kingdom of lesotho","mmuso wa lesotho","mountain kingdom"]},{iso3:"LTU",iso2:"LT",m49:"440",name:"Lithuania",aliases:["\u{1F1F1}\u{1F1F9}","lietuva","lietuvos respublika","republic of lithuania"]},{iso3:"LUX",iso2:"LU",m49:"442",name:"Luxembourg",aliases:["\u{1F1F1}\u{1F1FA}","grand duche","grand duche de luxembourg","grand duchy of luxembourg","gro\xDFherzogtum luxemburg","groussherzogtum letzebuerg","le grand duche de luxembourg","letzebuerg","letzebuerger land","lux","luxemburg"]},{iso3:"LVA",iso2:"LV",m49:"428",name:"Latvia",aliases:["\u{1F1F1}\u{1F1FB}","latveja","latvejas republika","latvian republic","latvija","latvijas republika","letm\u043E","letm\u043E vabam\u043E","republic of latvia"]},{iso3:"MAC",iso2:"MO",m49:"446",name:"Macao",aliases:["\u{1F1F2}\u{1F1F4}","aomen","macao sar","macao special administrative region","macao special administrative region of the peoples republic of china","macau","macau rae da china","macau sar","macau special administrative region","macau special administrative region of the peoples republic of china","raem","regiao administrativa especial de macau","regiao administrativa especial de macau da republica popular da china","\u4E2D\u570B\u6FB3\u9580\u7279\u5225\u884C\u653F\u5340","\u6FB3\u9580"]},{iso3:"MAF",iso2:"MF",m49:"663",name:"Saint Martin (French Part)",aliases:["\u{1F1F2}\u{1F1EB}","collectivite de saint martin","collectivity of saint martin","saint martin","saint martin antilles francaises","saint martin france"]},{iso3:"MAR",iso2:"MA",m49:"504",name:"Morocco",aliases:["\u{1F1F2}\u{1F1E6}","kingdom of morocco","\u0627\u0644\u0645\u063A\u0631\u0628","\u0627\u0644\u0645\u0645\u0644\u0643\u0629 \u0627\u0644\u0645\u063A\u0631\u0628\u064A\u0629","\u2D30\u2D4E\u2D53\u2D54 \u2D4F \u2D61\u2D30\u2D3D\u2D53\u2D5B","\u2D30\u2D4E\u2D55\u2D55\u2D53\u2D3D","\u2D4D\u2D4E\u2D55\u2D55\u2D53\u2D3D","\u2D4D\u2D4E\u2D56\u2D54\u2D49\u2D31","\u2D5C\u2D30\u2D33\u2D4D\u2D37\u2D49\u2D5C \u2D4F \u2D4D\u2D4E\u2D56\u2D54\u2D49\u2D31"]},{iso3:"MCO",iso2:"MC",m49:"492",name:"Monaco",aliases:["\u{1F1F2}\u{1F1E8}","fort hercule","la principaute de monaco","monaco rattachee au district de menton en 1793","munegu","principality and diocese of monaco","principality of monaco","principatu de munegu","principaute de monaco"]},{iso3:"MDA",iso2:"MD",m49:"498",name:"Republic of Moldova",aliases:["\u{1F1F2}\u{1F1E9}","moldavia","moldova","moldova republic of","moldova republica","r moldova","rep moldova","republica moldova","\u043C\u043E\u043B\u0434\u043E\u0432\u0430"]},{iso3:"MDG",iso2:"MG",m49:"450",name:"Madagascar",aliases:["\u{1F1F2}\u{1F1EC}","la republique de madagascar","madagasikara","repoblikani madagasikara","republic of madagascar","republique de madagascar"]},{iso3:"MDV",iso2:"MV",m49:"462",name:"Maldives",aliases:["\u{1F1F2}\u{1F1FB}","dhivehi raajjeyge jumhooriyyaa","republic of maldives","\u078B\u07A8\u0788\u07AC\u0780\u07A8 \u0783\u07A7\u0787\u07B0\u0796\u07AC","\u078B\u07A8\u0788\u07AC\u0780\u07A8\u0783\u07A7\u0787\u07B0\u0796\u07AC","\u078B\u07A8\u0788\u07AC\u0780\u07A8\u0783\u07A7\u0787\u07B0\u0796\u07AD\u078E\u07AC \u0796\u07AA\u0789\u07AA\u0780\u07AB\u0783\u07A8\u0787\u07B0\u0794\u07A7","\u078B\u07A8\u0788\u07AC\u0780\u07A8\u0783\u07A7\u0787\u07B0\u0796\u07AD\u078E\u07AC \u0796\u07AA\u0789\u07B0\u0780\u07AB\u0783\u07A8\u0787\u07B0\u0794\u07A7"]},{iso3:"MEX",iso2:"MX",m49:"484",name:"Mexico",aliases:["\u{1F1F2}\u{1F1FD}","estados unidos mejicanos","estados unidos mexicanos","mejico","mexican republic","mexican united states","mexihco","mexihko","mexika sentik wexteyowalko","mexiko","mexko","mexko axkayotl","mexko tlalli","nueva espana","republica mejicana","republica mexicana","united mexican states","united states of mexico"]},{iso3:"MHL",iso2:"MH",m49:"584",name:"Marshall Islands",aliases:["\u{1F1F2}\u{1F1ED}","aelon kein ad","aolepan aorokin majel","jolet jen anij","majel","majol","republic of the marshall islands"]},{iso3:"MKD",iso2:"MK",m49:"807",name:"North Macedonia",aliases:["\u{1F1F2}\u{1F1F0}","former yugoslav republic of macedonia","fyr macedonia","fyrom","irjm","ish republika jugosllave e maqedonise","macedonia","macedonia former yugoslav republic of","macedonia fyr","maqedoni","maqedonia","maqedonia e veriut","republic of macedonia","republic of north macedonia","republika e maqedonise","republika e maqedonise se veriut","\u043C\u0430\u043A\u0435\u0434\u043E\u043D\u0438\u0458\u0430","\u0440\u0435\u043F\u0443\u0431\u043B\u0438\u043A\u0430 \u043C\u0430\u043A\u0435\u0434\u043E\u043D\u0438\u0458\u0430","\u0440\u0435\u043F\u0443\u0431\u043B\u0438\u043A\u0430 \u0441\u0435\u0432\u0435\u0440\u043D\u0430 \u043C\u0430\u043A\u0435\u0434\u043E\u043D\u0438\u0458\u0430","\u0440\u043C","\u0440\u0441\u043C","\u0441\u0435\u0432\u0435\u0440\u043D\u0430 \u043C\u0430\u043A\u0435\u0434\u043E\u043D\u0438\u0458\u0430"]},{iso3:"MLI",iso2:"ML",m49:"466",name:"Mali",aliases:["\u{1F1F2}\u{1F1F1}","maali","republic of mali"]},{iso3:"MLT",iso2:"MT",m49:"470",name:"Malta",aliases:["\u{1F1F2}\u{1F1F9}","malta island","repubblika ta malta","republic of malta"]},{iso3:"MMR",iso2:"MM",m49:"104",name:"Myanmar",aliases:["\u{1F1F2}\u{1F1F2}","burma","pyidaungzu myanma naingngandaw","pyidaungzu thammada myanma naingngandaw","republic of the union of myanmar","union of burma","\u1015\u103C\u100A\u103A\u1011\u1031\u102C\u1004\u103A\u1005\u102F \u1019\u103C\u1014\u103A\u1019\u102C\u1014\u102D\u102F\u1004\u103A\u1004\u1036","\u1015\u103C\u100A\u103A\u1011\u1031\u102C\u1004\u103A\u1005\u102F \u1019\u103C\u1014\u103A\u1019\u102C\u1014\u102D\u102F\u1004\u103A\u1004\u1036\u1010\u1031\u102C\u103A","\u1015\u103C\u100A\u103A\u1011\u1031\u102C\u1004\u103A\u1005\u102F \u101E\u1019\u1039\u1019\u1010 \u1019\u103C\u1014\u103A\u1019\u102C\u1014\u102D\u102F\u1004\u103A\u1004\u1036","\u1015\u103C\u100A\u103A\u1011\u1031\u102C\u1004\u103A\u1005\u102F \u101E\u1019\u1039\u1019\u1010 \u1019\u103C\u1014\u103A\u1019\u102C\u1014\u102D\u102F\u1004\u103A\u1004\u1036\u1010\u1031\u102C\u103A","\u1015\u103C\u100A\u103A\u1011\u1031\u102C\u1004\u103A\u1005\u102F\u1019\u103C\u1014\u103A\u1019\u102C\u1014\u102D\u102F\u1004\u103A\u1004\u1036\u1010\u1031\u102C\u103A","\u1015\u103C\u100A\u103A\u1011\u1031\u102C\u1004\u103A\u1005\u102F\u101E\u1019\u1039\u1019\u1010\u1019\u103C\u1014\u103A\u1019\u102C\u1014\u102D\u102F\u1004\u103A\u1004\u1036","\u1015\u103C\u200C\u100A\u103A\u1011\u1031\u102C\u1004\u103A\u1005\u102F\u101E\u1019\u1039\u1019\u1010\u1019\u103C\u1014\u103A\u1019\u102C\u1014\u102D\u102F\u1004\u103A\u1004\u1036","\u1015\u103C\u100A\u103A\u1011\u1031\u102C\u1004\u103A\u1005\u102F\u101E\u1019\u1039\u1019\u1010\u1019\u103C\u1014\u103A\u1019\u102C\u1014\u102D\u102F\u1004\u103A\u1004\u1036\u1010\u1031\u102C\u103A","\u1017\u1019\u102C\u1015\u103C\u100A\u103A","\u1019\u103C\u1014\u103A\u1019\u102C","\u1019\u103C\u1014\u103A\u1019\u102C\u1014\u102D\u102F\u1004\u103A\u1004\u1036","\u1019\u103C\u1014\u103A\u1019\u102C\u1014\u102D\u102F\u1004\u103A\u1004\u1036\u1010\u1031\u102C\u103A","\u1019\u103C\u1014\u103A\u1019\u102C\u1015\u103C\u100A\u103A"]},{iso3:"MNE",iso2:"ME",m49:"499",name:"Montenegro",aliases:["\u{1F1F2}\u{1F1EA}","crna cora","\u0446\u0440\u043D\u0430 \u0433\u043E\u0440\u0430"]},{iso3:"MNG",iso2:"MN",m49:"496",name:"Mongolia",aliases:["\u{1F1F2}\u{1F1F3}","bugd nayramdah mongol ard uls","mongol uls","state of mongolia","\u043C\u043E\u043D\u0433\u043E\u043B","\u043C\u043E\u043D\u0433\u043E\u043B \u0443\u043B\u0441","\u182E\u1824\u1829\u182D\u1824\u182F \u1824\u182F\u1824\u1830"]},{iso3:"MNP",iso2:"MP",m49:"580",name:"Northern Mariana Islands",aliases:["\u{1F1F2}\u{1F1F5}","cnmi","commonwealth of the northern maria islands","commonwealth of the northern mariana islands","northern marianas","notte marianas","sankattan siha na islas marianas"]},{iso3:"MOZ",iso2:"MZ",m49:"508",name:"Mozambique",aliases:["\u{1F1F2}\u{1F1FF}","mocambique","republic of mozambique","republica de mocambique"]},{iso3:"MRT",iso2:"MR",m49:"478",name:"Mauritania",aliases:["\u{1F1F2}\u{1F1F7}","islamic republic of mauritania","\u0627\u0644\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u0627\u0644\u0625\u0633\u0644\u0627\u0645\u064A\u0629 \u0627\u0644\u0645\u0648\u0631\u064A\u062A\u0627\u0646\u064A\u0629","\u0645\u0648\u0631\u064A\u062A\u0627\u0646\u064A\u0627"]},{iso3:"MSR",iso2:"MS",m49:"500",name:"Montserrat",aliases:["\u{1F1F2}\u{1F1F8}","island of montserrat"]},{iso3:"MTQ",iso2:"MQ",m49:"474",name:"Martinique",aliases:["\u{1F1F2}\u{1F1F6}","territorial collectivity of martinique"]},{iso3:"MUS",iso2:"MU",m49:"480",name:"Mauritius",aliases:["\u{1F1F2}\u{1F1FA}","ile maurice","la republique de maurice","maurice","moris","republic of mauritius","republique de maurice"]},{iso3:"MWI",iso2:"MW",m49:"454",name:"Malawi",aliases:["\u{1F1F2}\u{1F1FC}","republic of malawi"]},{iso3:"MYS",iso2:"MY",m49:"458",name:"Malaysia",aliases:["\u{1F1F2}\u{1F1FE}","federation of malaysia","malaysia federation","negara seberang tambak","persekutuan malaysia"]},{iso3:"MYT",iso2:"YT",m49:"175",name:"Mayotte",aliases:["\u{1F1FE}\u{1F1F9}","departement de mayotte","departement region de mayotte","department of mayotte"]},{iso3:"NAM",iso2:"NA",m49:"516",name:"Namibia",aliases:["\u{1F1F3}\u{1F1E6}","republic of namibia"]},{iso3:"NCL",iso2:"NC",m49:"540",name:"New Caledonia",aliases:["\u{1F1F3}\u{1F1E8}","caledonie","kanaky","kanaky nouvelle caledonie","nouvelle caledonie","territoire de la nouvelle caledonie et dependances","territoire des nouvelle caledonie et dependances","territory of new caledonia and dependencies"]},{iso3:"NER",iso2:"NE",m49:"562",name:"Niger",aliases:["\u{1F1F3}\u{1F1EA}","jamhuriyar nijar","nijar","republic niger","republic of niger","republic of the niger"]},{iso3:"NFK",iso2:"NF",m49:"574",name:"Norfolk Island",aliases:["\u{1F1F3}\u{1F1EB}","norfolk island australia","norfolk island other territories","norfolk island other territories australia","territory of norfolk island"]},{iso3:"NGA",iso2:"NG",m49:"566",name:"Nigeria",aliases:["\u{1F1F3}\u{1F1EC}","federal republic of nigeria","naija"]},{iso3:"NIC",iso2:"NI",m49:"558",name:"Nicaragua",aliases:["\u{1F1F3}\u{1F1EE}","republic of nicaragua","republica de nicaragua"]},{iso3:"NIU",iso2:"NU",m49:"570",name:"Niue",aliases:["\u{1F1F3}\u{1F1FA}"]},{iso3:"NLD",iso2:"NL",m49:"528",name:"Kingdom of the Netherlands",aliases:["\u{1F1F3}\u{1F1F1}","hollandt","kingdom of netherlands","koninkrijk der nederlanden","nederland","nederlanden","nederlandt","netherlands","netherlands kingdom of the"]},{iso3:"NOR",iso2:"NO",m49:"578",name:"Norway",aliases:["\u{1F1F3}\u{1F1F4}","kingdom of norway","kongeriket noreg","kongeriket norge","noreg","norge"]},{iso3:"NPL",iso2:"NP",m49:"524",name:"Nepal",aliases:["\u{1F1F3}\u{1F1F5}","bal bo","bal poi yul","bal yul","balbo","balpo","balpo yul","nipal","sanghiya loktantrik ganatantra nepal","\u0928\u0947\u092A\u093E\u0932","\u0938\u0902\u0918\u093F\u092F \u0932\u094B\u0915\u0924\u093E\u0928\u094D\u0924\u094D\u0930\u093F\u0915 \u0917\u0923\u0924\u0928\u094D\u0924\u094D\u0930 \u0928\u0947\u092A\u093E\u0932","\u0938\u0902\u0918\u093F\u092F \u0932\u094B\u0915\u0924\u093E\u0928\u094D\u0924\u094D\u0930\u093F\u0915 \u0917\u0923\u0924\u0928\u094D\u0924\u094D\u0930\u093E\u0924\u094D\u092E\u0915 \u0928\u0947\u092A\u093E\u0932","\u0938\u0902\u0918\u0940\u092F \u0932\u094B\u0915\u0924\u093E\u0928\u094D\u0924\u094D\u0930\u093F\u0915 \u0917\u0923\u0924\u0928\u094D\u0924\u094D\u0930 \u0928\u0947\u092A\u093E\u0932"]},{iso3:"NRU",iso2:"NR",m49:"520",name:"Naoero",aliases:["\u{1F1F3}\u{1F1F7}","nauru","pleasant island","republic of naoero","republic of nauru"]},{iso3:"NZL",iso2:"NZ",m49:"554",name:"New Zealand",aliases:["\u{1F1F3}\u{1F1FF}","aotearoa","aotearoa new zealand","dominion of new zealand"]},{iso3:"OMN",iso2:"OM",m49:"512",name:"Oman",aliases:["\u{1F1F4}\u{1F1F2}","sultanate of oman","uman","\u0633\u0644\u0637\u0646\u0629 \u0639\u0645\u0627\u0646","\u0639\u0645\u0627\u0646"]},{iso3:"PAK",iso2:"PK",m49:"586",name:"Pakistan",aliases:["\u{1F1F5}\u{1F1F0}","hoi quoc","islamic republic of pakistan","republic of pakistan","tay hoi","\u0627\u0633\u0644\u0627\u0645\u06CC \u062C\u0645\u06C1\u0648\u0631\u06CC\u06C1 \u067E\u0627\u06A9\u0633\u062A\u0627\u0646","\u0628\u0627\u06A9\u0633\u062A\u0627\u0646","\u067E\u0627\u06A9\u0633\u062A\u0627\u0646"]},{iso3:"PAN",iso2:"PA",m49:"591",name:"Panama",aliases:["\u{1F1F5}\u{1F1E6}","republic of panama","republica de panama"]},{iso3:"PCN",iso2:"PN",m49:"612",name:"Pitcairn",aliases:["\u{1F1F5}\u{1F1F3}","occas island","pisskern ali\u0435n","pitcairn henderson ducie and oeno islands","pitcairn island","pitcairn islands","pitkern ailen"]},{iso3:"PER",iso2:"PE",m49:"604",name:"Peru",aliases:["\u{1F1F5}\u{1F1EA}","piruw","piruw ripuwlika","republic of peru","republica del peru"]},{iso3:"PHL",iso2:"PH",m49:"608",name:"Philippines",aliases:["\u{1F1F5}\u{1F1ED}","philippine islands","republic of the philippines"]},{iso3:"PLW",iso2:"PW",m49:"585",name:"Palau",aliases:["\u{1F1F5}\u{1F1FC}","belau","peeloo","pelew","pelew islands","pellew","republic of belau","republic of palau","\u30D1\u30E9\u30AA","\u30D1\u30E9\u30AA\u5171\u548C\u56FD"]},{iso3:"PNG",iso2:"PG",m49:"598",name:"Papua New Guinea",aliases:["\u{1F1F5}\u{1F1EC}","independent state of papua new guinea","papua niugini"]},{iso3:"POL",iso2:"PL",m49:"616",name:"Poland",aliases:["\u{1F1F5}\u{1F1F1}","polska","republic of poland","rzeczpospolita polska"]},{iso3:"PRI",iso2:"PR",m49:"630",name:"Puerto Rico",aliases:["\u{1F1F5}\u{1F1F7}","boriken","borinquen","boriquen","commonwealth of puerto rico","estado libre asociado de puerto rico","free associated state of puerto rico","isla del encanto","island of enchantment","isle of enchantment","mancomunidad de puerto rico","porto rico","territorio de puerto rico","territorio estadounidense de puerto rico","territory of porto rico","territory of puerto rico"]},{iso3:"PRK",iso2:"KP",m49:"408",name:"Democratic People's Republic of Korea",aliases:["\u{1F1F0}\u{1F1F5}","choson minjujuui inmin konghwaguk","dpr korea","dprk","korea democratic peoples republic of","n korea","north korea","\uACF5\uD654\uAD6D","\uBD81\uC870\uC120","\uBD81\uD55C","\uC870\uC120","\uC870\uC120\uBBFC\uC8FC\uC8FC\uC758\uC778\uBBFC\uACF5\uD654\uAD6D"]},{iso3:"PRT",iso2:"PT",m49:"620",name:"Portugal",aliases:["\u{1F1F5}\u{1F1F9}","republica portuguesa"]},{iso3:"PRY",iso2:"PY",m49:"600",name:"Paraguay",aliases:["\u{1F1F5}\u{1F1FE}","paraguai","republic of paraguay","republica del paraguay","teta paraguai"]},{iso3:"PSE",iso2:"PS",m49:"275",name:"State of Palestine",aliases:["\u{1F1F5}\u{1F1F8}","palestine","palestine state of","palestinian authority","palestinian national authority","palestinian territory","west bank and gaza","\u0623\u0631\u0627\u0636\u064A \u0641\u0644\u0633\u0637\u064A\u0646\u064A\u0629","\u0627\u0644\u0623\u0631\u0627\u0636\u064A \u0627\u0644\u0641\u0644\u0633\u0637\u064A\u0646\u064A\u0629","\u0627\u0644\u062F\u0648\u0644\u0629 \u0627\u0644\u0641\u0644\u0633\u0637\u064A\u0646\u064A\u0629","\u0627\u0644\u0633\u0644\u0637\u0629 \u0627\u0644\u0641\u0644\u0633\u0637\u064A\u0646\u064A\u0629","\u0627\u0644\u0633\u0644\u0637\u0629 \u0627\u0644\u0648\u0637\u0646\u064A\u0629 \u0627\u0644\u0641\u0644\u0633\u0637\u064A\u0646\u064A\u0629","\u0627\u0644\u0636\u0641\u0629 \u0627\u0644\u063A\u0631\u0628\u064A\u0629 \u0648\u0642\u0637\u0627\u0639 \u063A\u0632\u0629","\u062F\u0648\u0644\u0629 \u0641\u0644\u0633\u0637\u064A\u0646","\u0641\u0644\u0633\u0637\u064A\u0646"]},{iso3:"PYF",iso2:"PF",m49:"258",name:"French Polynesia",aliases:["\u{1F1F5}\u{1F1EB}","f oh","french establishments in oceania","french oceania","french settlements in oceania","polynesie francaise","territoire de la polynesie francaise","territory of french polynesia"]},{iso3:"QAT",iso2:"QA",m49:"634",name:"Qatar",aliases:["\u{1F1F6}\u{1F1E6}","state of qatar","\u0625\u0645\u0627\u0631\u0629 \u0642\u0637\u0631","\u062F\u0648\u0644\u0629 \u0642\u0637\u0631","\u0642\u0637\u0631"]},{iso3:"REU",iso2:"RE",m49:"638",name:"R\xE9union",aliases:["\u{1F1F7}\u{1F1EA}","ile bourbon","ile de la reunion","la reunion","re","region reunion","reunion island"]},{iso3:"ROU",iso2:"RO",m49:"642",name:"Romania",aliases:["\u{1F1F7}\u{1F1F4}"]},{iso3:"RUS",iso2:"RU",m49:"643",name:"Russian Federation",aliases:["\u{1F1F7}\u{1F1FA}","federation of russia","russia","\u0440\u043E\u0441\u0441\u0438\u0438\u0441\u043A\u0430\u044F \u0444\u0435\u0434\u0435\u0440\u0430\u0446\u0438\u044F","\u0440\u043E\u0441\u0441\u0438\u044F","\u0440\u0444"]},{iso3:"RWA",iso2:"RW",m49:"646",name:"Rwanda",aliases:["\u{1F1F7}\u{1F1FC}","igihugu cyimisozi igihumbi","jamhuri ya rwanda","la republique du rwanda","land of a thousand hills","republic of rwanda","republika yu rwanda","republique du rwanda","republique rwandaise","repubulika yu rwanda","u rwanda"]},{iso3:"SAU",iso2:"SA",m49:"682",name:"Saudi Arabia",aliases:["\u{1F1F8}\u{1F1E6}","kingdom of saudi arabia","\u0627\u0644\u062F\u0648\u0644\u0629 \u0627\u0644\u0633\u0639\u0648\u062F\u064A\u0629","\u0627\u0644\u062F\u0648\u0644\u0647 \u0627\u0644\u0633\u0639\u0648\u062F\u064A\u0647","\u0627\u0644\u0633\u0639\u0648\u062F\u064A\u0629","\u0627\u0644\u0633\u0639\u0648\u062F\u064A\u0647","\u0627\u0644\u0639\u0631\u0628\u064A\u0629 \u0627\u0644\u0633\u0639\u0648\u062F\u064A\u0629","\u0627\u0644\u0645\u0645\u0644\u0643\u0629","\u0627\u0644\u0645\u0645\u0644\u0643\u0629 \u0627\u0644\u0633\u0639\u0648\u062F\u064A\u0629","\u0627\u0644\u0645\u0645\u0644\u0643\u0629 \u0627\u0644\u0639\u0631\u0628\u064A\u0629","\u0627\u0644\u0645\u0645\u0644\u0643\u0629 \u0627\u0644\u0639\u0631\u0628\u064A\u0629 \u0627\u0644\u0633\u0639\u0648\u062F\u064A\u0629","\u0627\u0644\u0645\u0645\u0644\u0643\u0647","\u0627\u0644\u0645\u0645\u0644\u0643\u0647 \u0627\u0644\u0639\u0631\u0628\u064A\u0647 \u0627\u0644\u0633\u0639\u0648\u062F\u064A\u0647","\u0628\u0644\u0627\u062F \u0627\u0644\u062D\u0631\u0645\u064A\u0646 \u0627\u0644\u0634\u0631\u064A\u0641\u064A\u0646","\u062F\u0648\u0644\u0629 \u0622\u0644 \u0633\u0639\u0648\u062F","\u0633\u0639\u0648\u062F\u064A\u0629","\u0633\u0639\u0648\u062F\u064A\u0647","\u0645\u0646\u0628\u0639 \u0627\u0644\u0631\u0633\u0627\u0644\u0629","\u0645\u0647\u0628\u0637 \u0627\u0644\u0648\u062D\u064A"]},{iso3:"SDN",iso2:"SD",m49:"729",name:"Sudan",aliases:["\u{1F1F8}\u{1F1E9}","al sudan","as sudan","north sudan","republic of sudan","republic of the sudan","soudan","\u0627\u0644\u0633\u0648\u062F\u0627\u0646","\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u0627\u0644\u0633\u0648\u062F\u0627\u0646"]},{iso3:"SEN",iso2:"SN",m49:"686",name:"Senegal",aliases:["\u{1F1F8}\u{1F1F3}","la republique du senegal","republic of senegal","republique du senegal","sen","senegaal"]},{iso3:"SGP",iso2:"SG",m49:"702",name:"Singapore",aliases:["\u{1F1F8}\u{1F1EC}","garden city","lion city","republic of singapore","republik singapura","singapore city","singapura","spore","\u0B9A\u0BBF\u0B99\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0BC2\u0BB0\u0BCD","\u0B9A\u0BBF\u0B99\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0BC2\u0BB0\u0BCD \u0B95\u0BC1\u0B9F\u0BBF\u0BAF\u0BB0\u0B9A\u0BC1","\u0B9A\u0BBF\u0B99\u0BCD\u0B95\u0BC8","\u0BB8\u0BBF\u0B99\u0BCD\u0B95\u0BAA\u0BC2\u0BB0\u0BCD"]},{iso3:"SGS",iso2:"GS",m49:"239",name:"South Georgia and the South Sandwich Islands",aliases:["\u{1F1EC}\u{1F1F8}","falkland islands dependencies","sgssi","south georgia","south georgia & south sandwich islands","south sandwich islands"]},{iso3:"SHN",iso2:"SH",m49:"654",name:"Saint Helena",aliases:["\u{1F1F8}\u{1F1ED}","ascension","saint helena and dependencies","saint helena ascension and tristan da cunha","tristan da cunha"]},{iso3:"SJM",iso2:"SJ",m49:"744",name:"Svalbard and Jan Mayen Islands",aliases:["\u{1F1F8}\u{1F1EF}","jan mayen","svalbard","svalbard and jan mayen","svalbard og jan mayen"]},{iso3:"SLB",iso2:"SB",m49:"090",name:"Solomon Islands",aliases:["\u{1F1F8}\u{1F1E7}"]},{iso3:"SLE",iso2:"SL",m49:"694",name:"Sierra Leone",aliases:["\u{1F1F8}\u{1F1F1}","republic of sierra leone"]},{iso3:"SLV",iso2:"SV",m49:"222",name:"El Salvador",aliases:["\u{1F1F8}\u{1F1FB}","republic of el salvador","republica de el salvador","salvador"]},{iso3:"SMR",iso2:"SM",m49:"674",name:"San Marino",aliases:["\u{1F1F8}\u{1F1F2}","most serene republic of san marino","repubblica di san marino","serenissima repubblica di san marino"]},{iso3:"SOM",iso2:"SO",m49:"706",name:"Somalia",aliases:["\u{1F1F8}\u{1F1F4}","as sumal","federal republic of somalia","jamhuuriyadda federaalka soomaaliya","jamhuuriyadda soomaaliyeed","soomaaliya","soomaaliyeey toosoo","\u0627\u0644\u0635\u0648\u0645\u0627\u0644","\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u0627\u0644\u0635\u0648\u0645\u0627\u0644","\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u0627\u0644\u0635\u0648\u0645\u0627\u0644 \u0627\u0644\u062F\u064A\u0645\u0648\u0642\u0631\u0627\u0637\u064A\u0629","\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u0627\u0644\u0635\u0648\u0645\u0627\u0644 \u0627\u0644\u0641\u064A\u062F\u0631\u0627\u0644\u064A\u0629","\u0635\u0648\u0645\u0627\u0644"]},{iso3:"SPM",iso2:"PM",m49:"666",name:"Saint Pierre and Miquelon",aliases:["\u{1F1F5}\u{1F1F2}","collectivite territoriale de saint pierre et miquelon","miquelon","saint pierre","saint pierre et miquelon","territorial collectivity of saint pierre and miquelon"]},{iso3:"SRB",iso2:"RS",m49:"688",name:"Serbia",aliases:["\u{1F1F7}\u{1F1F8}","republic of serbia","republika srbija","\u0440\u0435\u043F\u0443\u0431\u043B\u0438\u043A\u0430 \u0441\u0440\u0431\u0438\u0458\u0430","\u0441\u0440\u0431\u0438\u0458\u0430"]},{iso3:"SSD",iso2:"SS",m49:"728",name:"South Sudan",aliases:["\u{1F1F8}\u{1F1F8}","republic of south sudan","southern sudan"]},{iso3:"STP",iso2:"ST",m49:"678",name:"Sao Tome and Principe",aliases:["\u{1F1F8}\u{1F1F9}","democratic republic of sao tome and principe","principe","republica democratica de sao tome e principe","sao tome","sao tome e principe","sao tome og principe"]},{iso3:"SUR",iso2:"SR",m49:"740",name:"Suriname",aliases:["\u{1F1F8}\u{1F1F7}","dutch guiana","republic of surinam","republic of suriname","republiek suriname","surinam","surrinam"]},{iso3:"SVK",iso2:"SK",m49:"703",name:"Slovakia",aliases:["\u{1F1F8}\u{1F1F0}","slovak republic","slovenska republika","slovensko"]},{iso3:"SVN",iso2:"SI",m49:"705",name:"Slovenia",aliases:["\u{1F1F8}\u{1F1EE}","republic of slovenia","republika slovenija","slovenija"]},{iso3:"SWE",iso2:"SE",m49:"752",name:"Sweden",aliases:["\u{1F1F8}\u{1F1EA}","kingdom of sweden","konungadomet sverige","konungariket sverige","kungadomet sverige","kungariket sverige","sverige","swedish kingdom"]},{iso3:"SWZ",iso2:"SZ",m49:"748",name:"Eswatini",aliases:["\u{1F1F8}\u{1F1FF}","kingdom of eswatini","kingdom of swaziland","swaziland","umbuso weswatini"]},{iso3:"SXM",iso2:"SX",m49:"534",name:"Sint Maarten (Dutch part)",aliases:["\u{1F1F8}\u{1F1FD}","country of sint maarten","eilandgebied sint maarten","land sint maarten","saint maarten","saint martin dutch part","sint maarten","sint martin"]},{iso3:"SYC",iso2:"SC",m49:"690",name:"Seychelles",aliases:["\u{1F1F8}\u{1F1E8}","la republique des seychelles","repiblik sesel","republic of seychelles","republique des seychelles"]},{iso3:"SYR",iso2:"SY",m49:"760",name:"Syrian Arab Republic",aliases:["\u{1F1F8}\u{1F1FE}","surya","syria","\u0627\u0644\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u0627\u0644\u0639\u0631\u0628\u064A\u0629 \u0627\u0644\u0633\u0648\u0631\u064A\u0629","\u0627\u0644\u0634\u0627\u0645","\u0633\u0648\u0631\u064A\u0627","\u0633\u0648\u0631\u064A\u0629"]},{iso3:"TCA",iso2:"TC",m49:"796",name:"Turks and Caicos Islands",aliases:["\u{1F1F9}\u{1F1E8}","caicos","caicos islands","turks","turks & caicos","turks islands"]},{iso3:"TCD",iso2:"TD",m49:"148",name:"Chad",aliases:["\u{1F1F9}\u{1F1E9}","la republique du tchad","republic of chad","republique du tchad","tchad","\u062A\u0634\u0627\u062F","\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u062A\u0634\u0627\u062F"]},{iso3:"TGO",iso2:"TG",m49:"768",name:"Togo",aliases:["\u{1F1F9}\u{1F1EC}","la republique togolaise","republique togolaise","togolese republic"]},{iso3:"THA",iso2:"TH",m49:"764",name:"Thailand",aliases:["\u{1F1F9}\u{1F1ED}","kingdom of siam","kingdom of thailand","siam","thai","\u0E44\u0E17\u0E22","\u0E1B\u0E23\u0E30\u0E40\u0E17\u0E28\u0E44\u0E17\u0E22","\u0E1B\u0E23\u0E30\u0E40\u0E17\u0E28\u0E2A\u0E22\u0E32\u0E21","\u0E40\u0E21\u0E37\u0E2D\u0E07\u0E44\u0E17\u0E22","\u0E23\u0E32\u0E0A\u0E2D\u0E32\u0E13\u0E32\u0E08\u0E31\u0E01\u0E23\u0E44\u0E17\u0E22","\u0E23\u0E32\u0E0A\u0E2D\u0E32\u0E13\u0E32\u0E08\u0E31\u0E01\u0E23\u0E2A\u0E22\u0E32\u0E21","\u0E2A\u0E22\u0E32\u0E21"]},{iso3:"TJK",iso2:"TJ",m49:"762",name:"Tajikistan",aliases:["\u{1F1F9}\u{1F1EF}","jumhurii tojikiston","republic of tajikistan","\u0442\u043E\u04B7\u0438\u043A\u0438\u0441\u0442\u043E\u043D","\u0442\u04B7","\u0442\u04B7\u043A","\u04B7\u0442","\u04B7\u0443\u043C\u04B3\u0443\u0440\u0438\u0438 \u0442\u043E\u04B7\u0438\u043A\u0438\u0441\u0442\u043E\u043D"]},{iso3:"TKL",iso2:"TK",m49:"772",name:"Tokelau",aliases:["\u{1F1F9}\u{1F1F0}","tokelau islands","union islands"]},{iso3:"TKM",iso2:"TM",m49:"795",name:"Turkmenistan",aliases:["\u{1F1F9}\u{1F1F2}"]},{iso3:"TLS",iso2:"TL",m49:"626",name:"Timor-Leste",aliases:["\u{1F1F9}\u{1F1F1}","democratic republic of timor leste","east timor","republica democratica de timor leste","republika demokratika timor lorosae","timor loro sae","timor lorosae"]},{iso3:"TON",iso2:"TO",m49:"776",name:"Tonga",aliases:["\u{1F1F9}\u{1F1F4}","friendly islands","kingdom of tonga","puleanga fakatui o tonga","tonga islands"]},{iso3:"TTO",iso2:"TT",m49:"780",name:"Trinidad and Tobago",aliases:["\u{1F1F9}\u{1F1F9}","republic of trinidad and tobago","tobago","trinidad"]},{iso3:"TUN",iso2:"TN",m49:"788",name:"Tunisia",aliases:["\u{1F1F9}\u{1F1F3}","republic of tunisia","tunisian republic","\u0627\u0644\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u0627\u0644\u062A\u0648\u0646\u0633\u064A\u0629","\u062A\u0648\u0646\u0633","\u062A\u0648\u0646\u0633 \u0627\u0644\u062E\u0636\u0631\u0627\u0621"]},{iso3:"TUR",iso2:"TR",m49:"792",name:"T\xFCrkiye",aliases:["\u{1F1F9}\u{1F1F7}","republic of turkey","republic of turkiye","turkey","turkiye cumhuriyeti"]},{iso3:"TUV",iso2:"TV",m49:"798",name:"Tuvalu",aliases:["\u{1F1F9}\u{1F1FB}","ellice islands"]},{iso3:"TWN",iso2:"TW",m49:"158",name:"Taiwan",aliases:["\u{1F1F9}\u{1F1FC}","chinese republic","chinese taipei","chunghwa minkuo","chunghwa minkwo","conghwaminku","cunghwa minkwo","cyukamingkok","formosa","nanasian","nationalist china","republic of china","republic of china taiwan","roc","taivang","taiwan province of china","taiwan roc","taywan","taywang","teywan","\u4E2D\u83EF\u6C11\u570B","\u4E2D\u83EF\u6C11\u570B\uFF08\u81FA\u7063\uFF09","\u4E2D\u83EF\u81FA\u5317","\u53F0\u7063","\u81FA\u6F8E\u91D1\u99AC","\u81FA\u7063"]},{iso3:"TZA",iso2:"TZ",m49:"834",name:"United Republic of Tanzania",aliases:["\u{1F1F9}\u{1F1FF}","jamhuri ya muungano wa tanganyika na zanzibar","jamhuri ya muungano wa tanzania","tanzania","tanzania jamhuri ya muungano wa","tanzania united republic of","united republic of tanganyika and zanzibar"]},{iso3:"UGA",iso2:"UG",m49:"800",name:"Uganda",aliases:["\u{1F1FA}\u{1F1EC}","jamhuri ya uganda","lulu ya afrika","ouganda","pearl of africa","republic of uganda","ugandah"]},{iso3:"UKR",iso2:"UA",m49:"804",name:"Ukraine",aliases:["\u{1F1FA}\u{1F1E6}","ukr","ukraina","ukrainia","ukrayina","\u0432\u043A\u0440\u0430\u0456\u043D\u0430","\u0443\u043A\u0440\u0430\u0456\u043D\u0430"]},{iso3:"UMI",iso2:"UM",m49:"581",name:"United States Minor Outlying Islands",aliases:["\u{1F1FA}\u{1F1F2}","us minor outlying islands","us outlying islands","usmoi"]},{iso3:"URY",iso2:"UY",m49:"858",name:"Uruguay",aliases:["\u{1F1FA}\u{1F1FE}","eastern republic of uruguay","oriental republic of uruguay"]},{iso3:"USA",iso2:"US",m49:"840",name:"United States of America",aliases:["\u{1F1FA}\u{1F1F8}","amelika","amelika hui pu ia","amelika huipuia","amelika mokuaina hui pu ia","america","eeuu","eeuu de america","estados unidos","estados unidos de america","los estados","los estados unidos","los estados unidos de america","mokuaina hui pu ia","union americana","united states","us","us of a","us of america","usa"]},{iso3:"UZB",iso2:"UZ",m49:"860",name:"Uzbekistan",aliases:["\u{1F1FA}\u{1F1FF}","ozbek","ozbekiston","ozbekiston respublikasi","republic of uzbekistan","uzbekiston respublikasi"]},{iso3:"VAT",iso2:"VA",m49:"336",name:"Holy See",aliases:["\u{1F1FB}\u{1F1E6}","citta del vaticano","civitas vaticana","colle vaticano","papal state","santa sede citta del vaticano","state of vatican city","stato della citta del vaticano","status civitatis vaticanae","status civitatis vatican\xE6","vatican","vatican city","vatican city state","vaticano"]},{iso3:"VCT",iso2:"VC",m49:"670",name:"Saint Vincent and the Grenadines",aliases:["\u{1F1FB}\u{1F1E8}","grenadines","saint vincent","saint vincent and grenadines"]},{iso3:"VEN",iso2:"VE",m49:"862",name:"Venezuela (Bolivarian Republic of)",aliases:["\u{1F1FB}\u{1F1EA}","bolivarian republic of venezuela","br venezuela","estados unidos de venezuela","rb venezuela","republic of venezuela","republica bolivariana de venezuela","republica de venezuela","venezuela"]},{iso3:"VGB",iso2:"VG",m49:"092",name:"British Virgin Islands",aliases:["\u{1F1FB}\u{1F1EC}","bvi","virgin islands british","virgin islands of the united kingdom","virgin islands united kingdom"]},{iso3:"VIR",iso2:"VI",m49:"850",name:"United States Virgin Islands",aliases:["\u{1F1FB}\u{1F1EE}","american virgin islands","us virgin islands","virgin islands of the united states","virgin islands us"]},{iso3:"VNM",iso2:"VN",m49:"704",name:"Viet Nam",aliases:["\u{1F1FB}\u{1F1F3}","chxhcn viet nam","chxhcnvn","cong hoa xa hoi chu nghia viet nam","socialist republic of viet nam","socialist republic of vietnam","vietnam"]},{iso3:"VUT",iso2:"VU",m49:"548",name:"Vanuatu",aliases:["\u{1F1FB}\u{1F1FA}","la republique du vanuatu","republic of vanuatu","republique de vanuatu","ripablik blong vanuatu"]},{iso3:"WLF",iso2:"WF",m49:"876",name:"Wallis and Futuna Islands",aliases:["\u{1F1FC}\u{1F1EB}","collectivite des iles wallis et futuna","emeni simete","futuna","iles wallis et futuna","makape papilio","territoire de wallis et futuna","territoire des iles wallis et futuna","wallis","wallis & futuna","wallis et futuna"]},{iso3:"WSM",iso2:"WS",m49:"882",name:"Samoa",aliases:["\u{1F1FC}\u{1F1F8}","independent state of samoa","malo saoloto tutoatasi o samoa","samoa i sisifo","western samoa"]},{iso3:"YEM",iso2:"YE",m49:"887",name:"Yemen",aliases:["\u{1F1FE}\u{1F1EA}","rep yemen","republic of yemen","\u0627\u0644\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u0627\u0644\u064A\u0645\u0646\u064A\u0629","\u0627\u0644\u064A\u0645\u0646","\u062F\u0648\u0644\u0629 \u0627\u0644\u064A\u0645\u0646"]},{iso3:"ZAF",iso2:"ZA",m49:"710",name:"South Africa",aliases:["\u{1F1FF}\u{1F1E6}","aferika borwa","aforika borwa","afrika boroa","afrika borwa","afrika dzonga","afurika tshipembe","emzantsi afrika","iningizimu afrika","iriphabhulikhi ye ningizimu afrika","iriphabhulikhi yeningizimu afrika","iriphabhuliki yase ningizimu afrika","iriphabliki yasemzantsi afrika","iriphabliki yaseningizimu afrika","iriphabliki yom zantsi afrika","isewula afrika","repabliki ya afrika borwa","rephaboliki ya aforika borwa","rephaboliki ya afrika borwa","republic of south africa","republiek van suid afrika","riphabliki ra afrika dzonga","rsa","suid afrika","umzansi","umzantsi afrika","unie van suid afrika","union of south africa"]},{iso3:"ZMB",iso2:"ZM",m49:"894",name:"Zambia",aliases:["\u{1F1FF}\u{1F1F2}","northern rhodesia","republic of zambia"]},{iso3:"ZWE",iso2:"ZW",m49:"716",name:"Zimbabwe",aliases:["\u{1F1FF}\u{1F1FC}","ezimbabwe","izimbabwe","republic of zimbabwe","rhodesia","southern rhodesia","zimbabwe rhodesia","zimbagwe"]}];function XF(e){return e.normalize("NFD").replace(/[\u0300-\u036F]/g,"").normalize("NFC").toLowerCase().replace(/[\u064B-\u065F]/g,"").replace(/['\u2018\u2019\u02BB\u02BC\u02BD\u02C8\u2032`]/g,"").replace(/&/g," and ").replace(/([,(])\s*the\b/g,"$1").replace(/[.(),[\]]/g,"").replace(/[-\u2013\u2014]/g," ").replace(/\bst\b/g,"saint").trim().replace(/\s+/g," ").replace(/^the\s+/,"")}function gce(e){let t=new Map,r=new Map,i=new Map;for(let s of e)t.set(s.iso3,s),s.iso2&&r.set(s.iso2,s),s.m49&&i.set(s.m49,s);let a=new Map;for(let s of e)for(let l of[s.name,...s.aliases]){let u=XF(l),c=a.get(u);if(c!==void 0&&c!==s.iso3)throw new Error(`Duplicate name/alias "${u}": ${c} vs ${s.iso3}`);a.set(u,s.iso3)}function n(s){if(s==null)return;let l=String(s).trim();if(!l)return;if(/^\d+$/.test(l)){let c=i.get(String(parseInt(l,10)).padStart(3,"0"));if(c)return c}if(/^[A-Za-z]{2}$/.test(l)){let c=r.get(l.toUpperCase());if(c)return c}if(/^[A-Za-z]{3}$/.test(l)){let c=t.get(l.toUpperCase());if(c)return c}let u=a.get(XF(l));return u===void 0?void 0:t.get(u)}function o(s){var l;return(l=n(s))==null?void 0:l.iso3}return{lookup:n,lookupAlpha3:o,byAlpha3:t,byAlpha2:r,byM49:i}}var J2=gce(vce),jYe=J2.lookup,$Ye=J2.lookupAlpha3,HYe=J2.byAlpha3,ZYe=J2.byAlpha2,YYe=J2.byM49});var T6=X(ki=>{"use strict";Object.defineProperty(ki,"__esModule",{value:!0});var Ha=63710088e-1,QF={centimeters:Ha*100,centimetres:Ha*100,cm:Ha*100,degrees:360/(2*Math.PI),deg:360/(2*Math.PI),feet:Ha*3.28084,ft:Ha*3.28084,inches:Ha*39.37,in:Ha*39.37,kilometers:Ha/1e3,kilometres:Ha/1e3,km:Ha/1e3,meters:Ha,metres:Ha,m:Ha,miles:Ha/1609.344,mi:Ha/1609.344,millimeters:Ha*1e3,millimetres:Ha*1e3,mm:Ha*1e3,nauticalmiles:Ha/1852,nmi:Ha/1852,radians:1,rad:1,yards:Ha*1.0936,yd:Ha*1.0936},JF={acres:247105e-9,ac:247105e-9,centimeters:1e4,centimetres:1e4,cm:1e4,feet:10.763910417,ft:10.763910417,hectares:1e-4,ha:1e-4,inches:1550.003100006,in:1550.003100006,kilometers:1e-6,kilometres:1e-6,km:1e-6,meters:1,metres:1,m:1,miles:386e-9,mi:386e-9,nauticalmiles:29155334959812285e-23,nmi:29155334959812285e-23,millimeters:1e6,millimetres:1e6,mm:1e6,yards:1.195990046,yd:1.195990046};function Jf(e,t,r={}){let i={type:"Feature"};return(r.id===0||r.id)&&(i.id=r.id),r.bbox&&(i.bbox=r.bbox),i.properties=t||{},i.geometry=e,i}function WYe(e,t,r={}){switch(e){case"Point":return eP(t).geometry;case"LineString":return rP(t).geometry;case"Polygon":return tP(t).geometry;case"MultiPoint":return bce(t).geometry;case"MultiLineString":return xce(t).geometry;case"MultiPolygon":return wce(t).geometry;default:throw new Error(e+" is invalid")}}function eP(e,t,r={}){if(!e)throw new Error("coordinates is required");if(!Array.isArray(e))throw new Error("coordinates must be an Array");if(e.length<2)throw new Error("coordinates must be at least 2 numbers long");if(!w6(e[0])||!w6(e[1]))throw new Error("coordinates must contain numbers");return Jf({type:"Point",coordinates:e},t,r)}function XYe(e,t,r={}){return A6(e.map(i=>eP(i,t)),r)}function tP(e,t,r={}){for(let a of e){if(a.length<4)throw new Error("Each LinearRing of a Polygon must have 4 or more Positions.");if(a[a.length-1].length!==a[0].length)throw new Error("First and last Position are not equivalent.");for(let n=0;ntP(i,t)),r)}function rP(e,t,r={}){if(e.length<2)throw new Error("coordinates must be an array of two or more positions");return Jf({type:"LineString",coordinates:e},t,r)}function JYe(e,t,r={}){return A6(e.map(i=>rP(i,t)),r)}function A6(e,t={}){let r={type:"FeatureCollection"};return t.id&&(r.id=t.id),t.bbox&&(r.bbox=t.bbox),r.features=e,r}function xce(e,t,r={}){return Jf({type:"MultiLineString",coordinates:e},t,r)}function bce(e,t,r={}){return Jf({type:"MultiPoint",coordinates:e},t,r)}function wce(e,t,r={}){return Jf({type:"MultiPolygon",coordinates:e},t,r)}function QYe(e,t,r={}){return Jf({type:"GeometryCollection",geometries:e},t,r)}function eWe(e,t=0){if(t&&!(t>=0))throw new Error("precision must be a positive number");let r=Math.pow(10,t||0);return Math.round(e*r)/r}function Ace(e,t="kilometers"){let r=QF[t];if(!r)throw new Error(t+" units is invalid");return e*r}function iP(e,t="kilometers"){let r=QF[t];if(!r)throw new Error(t+" units is invalid");return e/r}function tWe(e,t){return Tce(iP(e,t))}function rWe(e){let t=e%360;return t<0&&(t+=360),t}function iWe(e){return e=e%360,e>180?e-360:e<-180?e+360:e}function Tce(e){return e%(2*Math.PI)*180/Math.PI}function aWe(e){return e%360*Math.PI/180}function nWe(e,t="kilometers",r="kilometers"){if(!(e>=0))throw new Error("length must be a positive number");return Ace(iP(e,t),r)}function oWe(e,t="meters",r="kilometers"){if(!(e>=0))throw new Error("area must be a positive number");let i=JF[t];if(!i)throw new Error("invalid original units");let a=JF[r];if(!a)throw new Error("invalid final units");return e/i*a}function w6(e){return!isNaN(e)&&e!==null&&!Array.isArray(e)}function sWe(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function b6(e){delete e.bbox,e.type==="Feature"?e.geometry&&b6(e.geometry):e.type==="FeatureCollection"?e.features.forEach(b6):e.type==="GeometryCollection"&&e.geometries.forEach(b6)}function lWe(e){if(!e)throw new Error("bbox is required");if(!Array.isArray(e))throw new Error("bbox must be an Array");if(e.length!==4&&e.length!==6)throw new Error("bbox must be an Array of 4 or 6 numbers");e.forEach(t=>{if(!w6(t))throw new Error("bbox must only contain numbers")})}function uWe(e){if(!e)throw new Error("id is required");if(["string","number"].indexOf(typeof e)===-1)throw new Error("id must be a number or a string")}ki.areaFactors=JF;ki.azimuthToBearing=iWe;ki.bearingToAzimuth=rWe;ki.convertArea=oWe;ki.convertLength=nWe;ki.degreesToRadians=aWe;ki.earthRadius=Ha;ki.factors=QF;ki.feature=Jf;ki.featureCollection=A6;ki.geometry=WYe;ki.geometryCollection=QYe;ki.isNumber=w6;ki.isObject=sWe;ki.lengthToDegrees=tWe;ki.lengthToRadians=iP;ki.lineString=rP;ki.lineStrings=JYe;ki.multiLineString=xce;ki.multiPoint=bce;ki.multiPolygon=wce;ki.point=eP;ki.points=XYe;ki.polygon=tP;ki.polygons=KYe;ki.radiansToDegrees=Tce;ki.radiansToLength=Ace;ki.removeBbox=b6;ki.round=eWe;ki.validateBBox=lWe;ki.validateId=uWe});var D6=X(Bn=>{"use strict";Object.defineProperty(Bn,"__esModule",{value:!0});var Vo=T6();function Q2(e,t,r){if(e!==null)for(var i,a,n,o,s,l,u,c=0,h=0,f,d=e.type,p=d==="FeatureCollection",m=d==="Feature",g=p?e.features.length:1,y=0;yl||p>u||m>c){s=h,l=i,u=p,c=m,n=0;return}var g=Vo.lineString.call(void 0,[s,h],r.properties);if(t(g,i,a,m,n)===!1)return!1;n++,s=h})===!1)return!1}}})}function vWe(e,t,r){var i=r,a=!1;return Sce(e,function(n,o,s,l,u){a===!1&&r===void 0?i=n:i=t(i,n,o,s,l,u),a=!0}),i}function Ece(e,t){if(!e)throw new Error("geojson is required");M6(e,function(r,i,a){if(r.geometry!==null){var n=r.geometry.type,o=r.geometry.coordinates;switch(n){case"LineString":if(t(r,i,a,0,0)===!1)return!1;break;case"Polygon":for(var s=0;s{"use strict";Object.defineProperty(S6,"__esModule",{value:!0});var kce=T6(),xWe=D6();function Pce(e){return xWe.geomReduce.call(void 0,e,(t,r)=>t+bWe(r),0)}function bWe(e){let t=0,r;switch(e.type){case"Polygon":return Cce(e.coordinates);case"MultiPolygon":for(r=0;r0){t+=Math.abs(Fce(e[0]));for(let r=1;r=t?(i+2)%t:i+2],s=a[0]*nP,l=n[1]*nP,u=o[0]*nP;r+=(u-s)*Math.sin(l),i++}return r*wWe}var AWe=Pce;S6.area=Pce;S6.default=AWe});var zce=X(E6=>{"use strict";Object.defineProperty(E6,"__esModule",{value:!0});var TWe=T6(),MWe=D6();function Lce(e,t={}){let r=0,i=0,a=0;return MWe.coordEach.call(void 0,e,function(n){r+=n[0],i+=n[1],a++},!0),TWe.point.call(void 0,[r/a,i/a],t.properties)}var DWe=Lce;E6.centroid=Lce;E6.default=DWe});var Bce=X((k6,Rce)=>{(function(e,t){t(typeof k6=="object"&&typeof Rce!="undefined"?k6:e.d3=e.d3||{})})(k6,(function(e){"use strict";function t(J,ue){return Jue?1:J>=ue?0:NaN}function r(J){return J.length===1&&(J=i(J)),{left:function(ue,me,te,re){for(te==null&&(te=0),re==null&&(re=ue.length);te>>1;J(ue[fe],me)<0?te=fe+1:re=fe}return te},right:function(ue,me,te,re){for(te==null&&(te=0),re==null&&(re=ue.length);te>>1;J(ue[fe],me)>0?re=fe:te=fe+1}return te}}}function i(J){return function(ue,me){return t(J(ue),me)}}var a=r(t),n=a.right,o=a.left;function s(J,ue){ue==null&&(ue=l);for(var me=0,te=J.length-1,re=J[0],fe=new Array(te<0?0:te);meJ?1:ue>=J?0:NaN}function h(J){return J===null?NaN:+J}function f(J,ue){var me=J.length,te=0,re=-1,fe=0,ge,Re,Ve=0;if(ue==null)for(;++re1)return Ve/(te-1)}function d(J,ue){var me=f(J,ue);return me&&Math.sqrt(me)}function p(J,ue){var me=J.length,te=-1,re,fe,ge;if(ue==null){for(;++te=re)for(fe=ge=re;++tere&&(fe=re),ge=re)for(fe=ge=re;++tere&&(fe=re),ge0)return[J];if((te=ue0)for(J=Math.ceil(J/Re),ue=Math.floor(ue/Re),ge=new Array(fe=Math.ceil(ue-J+1));++re=0?(fe>=A?10:fe>=T?5:fe>=M?2:1)*Math.pow(10,re):-Math.pow(10,-re)/(fe>=A?10:fe>=T?5:fe>=M?2:1)}function P(J,ue,me){var te=Math.abs(ue-J)/Math.max(0,me),re=Math.pow(10,Math.floor(Math.log(te)/Math.LN10)),fe=te/re;return fe>=A?re*=10:fe>=T?re*=5:fe>=M&&(re*=2),ueFe;)se.pop(),--Ue;var Ne=new Array(Ue+1),$e;for(fe=0;fe<=Ue;++fe)$e=Ne[fe]=[],$e.x0=fe>0?se[fe-1]:Pe,$e.x1=fe=1)return+me(J[te-1],te-1,J);var te,re=(te-1)*ue,fe=Math.floor(re),ge=+me(J[fe],fe,J),Re=+me(J[fe+1],fe+1,J);return ge+(Re-ge)*(re-fe)}}function z(J,ue,me){return J=y.call(J,h).sort(t),Math.ceil((me-ue)/(2*(L(J,.75)-L(J,.25))*Math.pow(J.length,-1/3)))}function q(J,ue,me){return Math.ceil((me-ue)/(3.5*d(J)*Math.pow(J.length,-1/3)))}function V(J,ue){var me=J.length,te=-1,re,fe;if(ue==null){for(;++te=re)for(fe=re;++tefe&&(fe=re)}else for(;++te=re)for(fe=re;++tefe&&(fe=re);return fe}function j(J,ue){var me=J.length,te=me,re=-1,fe,ge=0;if(ue==null)for(;++re=0;)for(ge=J[ue],me=ge.length;--me>=0;)fe[--re]=ge[me];return fe}function Z(J,ue){var me=J.length,te=-1,re,fe;if(ue==null){for(;++te=re)for(fe=re;++tere&&(fe=re)}else for(;++te=re)for(fe=re;++tere&&(fe=re);return fe}function Y(J,ue){for(var me=ue.length,te=new Array(me);me--;)te[me]=J[ue[me]];return te}function oe(J,ue){if(me=J.length){var me,te=0,re=0,fe,ge=J[re];for(ue==null&&(ue=t);++te{(function(e,t){typeof C6=="object"&&typeof qce!="undefined"?t(C6,Bce()):(e=e||self,t(e.d3=e.d3||{},e.d3))})(C6,(function(e,t){"use strict";function r(){return new i}function i(){this.reset()}i.prototype={constructor:i,reset:function(){this.s=this.t=0},add:function(O){n(a,O,this.t),n(this,a.s,this.s),this.s?this.t+=a.t:this.s=a.t},valueOf:function(){return this.s}};var a=new i;function n(O,G,ee){var Q=O.s=G+ee,he=Q-G,Be=Q-he;O.t=G-Be+(ee-he)}var o=1e-6,s=1e-12,l=Math.PI,u=l/2,c=l/4,h=l*2,f=180/l,d=l/180,p=Math.abs,m=Math.atan,g=Math.atan2,y=Math.cos,x=Math.ceil,b=Math.exp,_=Math.log,A=Math.pow,T=Math.sin,M=Math.sign||function(O){return O>0?1:O<0?-1:0},S=Math.sqrt,k=Math.tan;function P(O){return O>1?0:O<-1?l:Math.acos(O)}function I(O){return O>1?u:O<-1?-u:Math.asin(O)}function B(O){return(O=T(O/2))*O}function L(){}function z(O,G){O&&V.hasOwnProperty(O.type)&&V[O.type](O,G)}var q={Feature:function(O,G){z(O.geometry,G)},FeatureCollection:function(O,G){for(var ee=O.features,Q=-1,he=ee.length;++Q=0?1:-1,he=Q*ee,Be=y(G),Oe=T(G),Ze=de*Oe,Ke=ye*Be+Ze*y(he),ft=Ze*Q*T(he);Z.add(g(ft,Ke)),De=O,ye=Be,de=Oe}function re(O){return Y.reset(),H(O,Ce),Y*2}function fe(O){return[g(O[1],O[0]),I(O[2])]}function ge(O){var G=O[0],ee=O[1],Q=y(ee);return[Q*y(G),Q*T(G),T(ee)]}function Re(O,G){return O[0]*G[0]+O[1]*G[1]+O[2]*G[2]}function Ve(O,G){return[O[1]*G[2]-O[2]*G[1],O[2]*G[0]-O[0]*G[2],O[0]*G[1]-O[1]*G[0]]}function Me(O,G){O[0]+=G[0],O[1]+=G[1],O[2]+=G[2]}function Pe(O,G){return[O[0]*G,O[1]*G,O[2]*G]}function Fe(O){var G=S(O[0]*O[0]+O[1]*O[1]+O[2]*O[2]);O[0]/=G,O[1]/=G,O[2]/=G}var se,Ue,Ne,$e,Ae,He,it,ie,Se=r(),ot,bt,Tt={point:ve,lineStart:je,lineEnd:nt,polygonStart:function(){Tt.point=Qe,Tt.lineStart=pt,Tt.lineEnd=st,Se.reset(),Ce.polygonStart()},polygonEnd:function(){Ce.polygonEnd(),Tt.point=ve,Tt.lineStart=je,Tt.lineEnd=nt,Z<0?(se=-(Ne=180),Ue=-($e=90)):Se>o?$e=90:Se<-o&&(Ue=-90),bt[0]=se,bt[1]=Ne},sphere:function(){se=-(Ne=180),Ue=-($e=90)}};function ve(O,G){ot.push(bt=[se=O,Ne=O]),G$e&&($e=G)}function xe(O,G){var ee=ge([O*d,G*d]);if(ie){var Q=Ve(ie,ee),he=[Q[1],-Q[0],0],Be=Ve(he,Q);Fe(Be),Be=fe(Be);var Oe=O-Ae,Ze=Oe>0?1:-1,Ke=Be[0]*f*Ze,ft,Ge=p(Oe)>180;Ge^(Ze*Ae$e&&($e=ft)):(Ke=(Ke+360)%360-180,Ge^(Ze*Ae$e&&($e=G))),Ge?Oyt(se,Ne)&&(Ne=O):yt(O,Ne)>yt(se,Ne)&&(se=O):Ne>=se?(ONe&&(Ne=O)):O>Ae?yt(se,O)>yt(se,Ne)&&(Ne=O):yt(O,Ne)>yt(se,Ne)&&(se=O)}else ot.push(bt=[se=O,Ne=O]);G$e&&($e=G),ie=ee,Ae=O}function je(){Tt.point=xe}function nt(){bt[0]=se,bt[1]=Ne,Tt.point=ve,ie=null}function Qe(O,G){if(ie){var ee=O-Ae;Se.add(p(ee)>180?ee+(ee>0?360:-360):ee)}else He=O,it=G;Ce.point(O,G),xe(O,G)}function pt(){Ce.lineStart()}function st(){Qe(He,it),Ce.lineEnd(),p(Se)>o&&(se=-(Ne=180)),bt[0]=se,bt[1]=Ne,ie=null}function yt(O,G){return(G-=O)<0?G+360:G}function Ot(O,G){return O[0]-G[0]}function We(O,G){return O[0]<=O[1]?O[0]<=G&&G<=O[1]:Gyt(Q[0],Q[1])&&(Q[1]=he[1]),yt(he[0],Q[1])>yt(Q[0],Q[1])&&(Q[0]=he[0])):Be.push(Q=he);for(Oe=-1/0,ee=Be.length-1,G=0,Q=Be[ee];G<=ee;Q=he,++G)he=Be[G],(Ze=yt(Q[1],he[0]))>Oe&&(Oe=Ze,se=he[0],Ne=Q[1])}return ot=bt=null,se===1/0||Ue===1/0?[[NaN,NaN],[NaN,NaN]]:[[se,Ue],[Ne,$e]]}var Ye,vt,Dt,Ft,zt,ce,ke,Je,at,Ar,ti,gi,Li,qr,Cr,ci,Or={sphere:L,point:Ci,lineStart:oa,lineEnd:va,polygonStart:function(){Or.lineStart=At,Or.lineEnd=$r},polygonEnd:function(){Or.lineStart=oa,Or.lineEnd=va}};function Ci(O,G){O*=d,G*=d;var ee=y(G);zi(ee*y(O),ee*T(O),T(G))}function zi(O,G,ee){++Ye,Dt+=(O-Dt)/Ye,Ft+=(G-Ft)/Ye,zt+=(ee-zt)/Ye}function oa(){Or.point=ka}function ka(O,G){O*=d,G*=d;var ee=y(G);qr=ee*y(O),Cr=ee*T(O),ci=T(G),Or.point=Wi,zi(qr,Cr,ci)}function Wi(O,G){O*=d,G*=d;var ee=y(G),Q=ee*y(O),he=ee*T(O),Be=T(G),Oe=g(S((Oe=Cr*Be-ci*he)*Oe+(Oe=ci*Q-qr*Be)*Oe+(Oe=qr*he-Cr*Q)*Oe),qr*Q+Cr*he+ci*Be);vt+=Oe,ce+=Oe*(qr+(qr=Q)),ke+=Oe*(Cr+(Cr=he)),Je+=Oe*(ci+(ci=Be)),zi(qr,Cr,ci)}function va(){Or.point=Ci}function At(){Or.point=Er}function $r(){ai(gi,Li),Or.point=Ci}function Er(O,G){gi=O,Li=G,O*=d,G*=d,Or.point=ai;var ee=y(G);qr=ee*y(O),Cr=ee*T(O),ci=T(G),zi(qr,Cr,ci)}function ai(O,G){O*=d,G*=d;var ee=y(G),Q=ee*y(O),he=ee*T(O),Be=T(G),Oe=Cr*Be-ci*he,Ze=ci*Q-qr*Be,Ke=qr*he-Cr*Q,ft=S(Oe*Oe+Ze*Ze+Ke*Ke),Ge=I(ft),rt=ft&&-Ge/ft;at+=rt*Oe,Ar+=rt*Ze,ti+=rt*Ke,vt+=Ge,ce+=Ge*(qr+(qr=Q)),ke+=Ge*(Cr+(Cr=he)),Je+=Ge*(ci+(ci=Be)),zi(qr,Cr,ci)}function Ut(O){Ye=vt=Dt=Ft=zt=ce=ke=Je=at=Ar=ti=0,H(O,Or);var G=at,ee=Ar,Q=ti,he=G*G+ee*ee+Q*Q;return hel?O+Math.round(-O/h)*h:O,G]}Hr.invert=Hr;function Vi(O,G,ee){return(O%=h)?G||ee?Kr(ro(O),pn(G,ee)):ro(O):G||ee?pn(G,ee):Hr}function to(O){return function(G,ee){return G+=O,[G>l?G-h:G<-l?G+h:G,ee]}}function ro(O){var G=to(O);return G.invert=to(-O),G}function pn(O,G){var ee=y(O),Q=T(O),he=y(G),Be=T(G);function Oe(Ze,Ke){var ft=y(Ke),Ge=y(Ze)*ft,rt=T(Ze)*ft,et=T(Ke),dt=et*ee+Ge*Q;return[g(rt*he-dt*Be,Ge*ee-et*Q),I(dt*he+rt*Be)]}return Oe.invert=function(Ze,Ke){var ft=y(Ke),Ge=y(Ze)*ft,rt=T(Ze)*ft,et=T(Ke),dt=et*he-rt*Be;return[g(rt*he+et*Be,Ge*ee+dt*Q),I(dt*ee-Ge*Q)]},Oe}function Ui(O){O=Vi(O[0]*d,O[1]*d,O.length>2?O[2]*d:0);function G(ee){return ee=O(ee[0]*d,ee[1]*d),ee[0]*=f,ee[1]*=f,ee}return G.invert=function(ee){return ee=O.invert(ee[0]*d,ee[1]*d),ee[0]*=f,ee[1]*=f,ee},G}function Jl(O,G,ee,Q,he,Be){if(ee){var Oe=y(G),Ze=T(G),Ke=Q*ee;he==null?(he=G+Q*h,Be=G-Ke/2):(he=sa(Oe,he),Be=sa(Oe,Be),(Q>0?heBe)&&(he+=Q*h));for(var ft,Ge=he;Q>0?Ge>Be:Ge1&&O.push(O.pop().concat(O.shift()))},result:function(){var ee=O;return O=[],G=null,ee}}}function la(O,G){return p(O[0]-G[0])=0;--Ze)he.point((rt=Ge[Ze])[0],rt[1]);else Q(et.x,et.p.x,-1,he);et=et.p}et=et.o,Ge=et.z,dt=!dt}while(!et.v);he.lineEnd()}}}function _o(O){if(G=O.length){for(var G,ee=0,Q=O[0],he;++ee=0?1:-1,pi=Ri*hi,Ki=pi>l,Jr=er*lr;if(xo.add(g(Jr*Ri*T(pi),Wt*vr+Jr*y(pi))),Oe+=Ki?hi+Ri*h:hi,Ki^dt>=ee^wt>=ee){var Nn=Ve(ge(et),ge(ir));Fe(Nn);var an=Ve(Be,Nn);Fe(an);var Zi=(Ki^hi>=0?-1:1)*I(an[2]);(Q>Zi||Q===Zi&&(Nn[0]||Nn[1]))&&(Ze+=Ki^hi>=0?1:-1)}}return(Oe<-o||Oe0){for(Ke||(he.polygonStart(),Ke=!0),he.lineStart(),vr=0;vr1&&It&2&&lr.push(lr.pop().concat(lr.shift())),Ge.push(lr.filter(sl))}}return et}}function sl(O){return O.length>1}function Cs(O,G){return((O=O.x)[0]<0?O[1]-u-o:u-O[1])-((G=G.x)[0]<0?G[1]-u-o:u-G[1])}var Qt=On(function(){return!0},Jt,St,[-l,-u]);function Jt(O){var G=NaN,ee=NaN,Q=NaN,he;return{lineStart:function(){O.lineStart(),he=1},point:function(Be,Oe){var Ze=Be>0?l:-l,Ke=p(Be-G);p(Ke-l)0?u:-u),O.point(Q,ee),O.lineEnd(),O.lineStart(),O.point(Ze,ee),O.point(Be,ee),he=0):Q!==Ze&&Ke>=l&&(p(G-Q)o?m((T(G)*(Be=y(Q))*T(ee)-T(Q)*(he=y(G))*T(O))/(he*Be*Oe)):(G+Q)/2}function St(O,G,ee,Q){var he;if(O==null)he=ee*u,Q.point(-l,he),Q.point(0,he),Q.point(l,he),Q.point(l,0),Q.point(l,-he),Q.point(0,-he),Q.point(-l,-he),Q.point(-l,0),Q.point(-l,he);else if(p(O[0]-G[0])>o){var Be=O[0]0,he=p(G)>o;function Be(Ge,rt,et,dt){Jl(dt,O,ee,et,Ge,rt)}function Oe(Ge,rt){return y(Ge)*y(rt)>G}function Ze(Ge){var rt,et,dt,_t,er;return{lineStart:function(){_t=dt=!1,er=1},point:function(Wt,rr){var ir=[Wt,rr],wt,It=Oe(Wt,rr),lr=Q?It?0:ft(Wt,rr):It?ft(Wt+(Wt<0?l:-l),rr):0;if(!rt&&(_t=dt=It)&&Ge.lineStart(),It!==dt&&(wt=Ke(rt,ir),(!wt||la(rt,wt)||la(ir,wt))&&(ir[2]=1)),It!==dt)er=0,It?(Ge.lineStart(),wt=Ke(ir,rt),Ge.point(wt[0],wt[1])):(wt=Ke(rt,ir),Ge.point(wt[0],wt[1],2),Ge.lineEnd()),rt=wt;else if(he&&rt&&Q^It){var vr;!(lr&et)&&(vr=Ke(ir,rt,!0))&&(er=0,Q?(Ge.lineStart(),Ge.point(vr[0][0],vr[0][1]),Ge.point(vr[1][0],vr[1][1]),Ge.lineEnd()):(Ge.point(vr[1][0],vr[1][1]),Ge.lineEnd(),Ge.lineStart(),Ge.point(vr[0][0],vr[0][1],3)))}It&&(!rt||!la(rt,ir))&&Ge.point(ir[0],ir[1]),rt=ir,dt=It,et=lr},lineEnd:function(){dt&&Ge.lineEnd(),rt=null},clean:function(){return er|(_t&&dt)<<1}}}function Ke(Ge,rt,et){var dt=ge(Ge),_t=ge(rt),er=[1,0,0],Wt=Ve(dt,_t),rr=Re(Wt,Wt),ir=Wt[0],wt=rr-ir*ir;if(!wt)return!et&&Ge;var It=G*rr/wt,lr=-G*ir/wt,vr=Ve(er,Wt),hi=Pe(er,It),Ri=Pe(Wt,lr);Me(hi,Ri);var pi=vr,Ki=Re(hi,pi),Jr=Re(pi,pi),Nn=Ki*Ki-Jr*(Re(hi,hi)-1);if(!(Nn<0)){var an=S(Nn),Zi=Pe(pi,(-Ki-an)/Jr);if(Me(Zi,hi),Zi=fe(Zi),!et)return Zi;var Rt=Ge[0],si=rt[0],nn=Ge[1],ao=rt[1],ls;si0^Zi[1]<(p(Zi[0]-Rt)l^(Rt<=Zi[0]&&Zi[0]<=si)){var fl=Pe(pi,(-Ki+an)/Jr);return Me(fl,hi),[Zi,fe(fl)]}}}function ft(Ge,rt){var et=Q?O:l-O,dt=0;return Ge<-et?dt|=1:Ge>et&&(dt|=2),rt<-et?dt|=4:rt>et&&(dt|=8),dt}return On(Oe,Ze,Be,Q?[0,-O]:[-l,O-l])}function Mi(O,G,ee,Q,he,Be){var Oe=O[0],Ze=O[1],Ke=G[0],ft=G[1],Ge=0,rt=1,et=Ke-Oe,dt=ft-Ze,_t;if(_t=ee-Oe,!(!et&&_t>0)){if(_t/=et,et<0){if(_t0){if(_t>rt)return;_t>Ge&&(Ge=_t)}if(_t=he-Oe,!(!et&&_t<0)){if(_t/=et,et<0){if(_t>rt)return;_t>Ge&&(Ge=_t)}else if(et>0){if(_t0)){if(_t/=dt,dt<0){if(_t0){if(_t>rt)return;_t>Ge&&(Ge=_t)}if(_t=Be-Ze,!(!dt&&_t<0)){if(_t/=dt,dt<0){if(_t>rt)return;_t>Ge&&(Ge=_t)}else if(dt>0){if(_t0&&(O[0]=Oe+Ge*et,O[1]=Ze+Ge*dt),rt<1&&(G[0]=Oe+rt*et,G[1]=Ze+rt*dt),!0}}}}}var Xi=1e9,Hi=-Xi;function mn(O,G,ee,Q){function he(ft,Ge){return O<=ft&&ft<=ee&&G<=Ge&&Ge<=Q}function Be(ft,Ge,rt,et){var dt=0,_t=0;if(ft==null||(dt=Oe(ft,rt))!==(_t=Oe(Ge,rt))||Ke(ft,Ge)<0^rt>0)do et.point(dt===0||dt===3?O:ee,dt>1?Q:G);while((dt=(dt+rt+4)%4)!==_t);else et.point(Ge[0],Ge[1])}function Oe(ft,Ge){return p(ft[0]-O)0?0:3:p(ft[0]-ee)0?2:1:p(ft[1]-G)0?1:0:Ge>0?3:2}function Ze(ft,Ge){return Ke(ft.x,Ge.x)}function Ke(ft,Ge){var rt=Oe(ft,1),et=Oe(Ge,1);return rt!==et?rt-et:rt===0?Ge[1]-ft[1]:rt===1?ft[0]-Ge[0]:rt===2?ft[1]-Ge[1]:Ge[0]-ft[0]}return function(ft){var Ge=ft,rt=rs(),et,dt,_t,er,Wt,rr,ir,wt,It,lr,vr,hi={point:Ri,lineStart:Nn,lineEnd:an,polygonStart:Ki,polygonEnd:Jr};function Ri(Rt,si){he(Rt,si)&&Ge.point(Rt,si)}function pi(){for(var Rt=0,si=0,nn=dt.length;siQ&&(k0-Gc)*(Q-fl)>(Uh-fl)*(O-Gc)&&++Rt:Uh<=Q&&(k0-Gc)*(Q-fl)<(Uh-fl)*(O-Gc)&&--Rt;return Rt}function Ki(){Ge=rt,et=[],dt=[],vr=!0}function Jr(){var Rt=pi(),si=vr&&Rt,nn=(et=t.merge(et)).length;(si||nn)&&(ft.polygonStart(),si&&(ft.lineStart(),Be(null,null,1,ft),ft.lineEnd()),nn&&ks(et,Ze,Rt,Be,ft),ft.polygonEnd()),Ge=ft,et=dt=_t=null}function Nn(){hi.point=Zi,dt&&dt.push(_t=[]),lr=!0,It=!1,ir=wt=NaN}function an(){et&&(Zi(er,Wt),rr&&It&&rt.rejoin(),et.push(rt.result())),hi.point=Ri,It&&Ge.lineEnd()}function Zi(Rt,si){var nn=he(Rt,si);if(dt&&_t.push([Rt,si]),lr)er=Rt,Wt=si,rr=nn,lr=!1,nn&&(Ge.lineStart(),Ge.point(Rt,si));else if(nn&&It)Ge.point(Rt,si);else{var ao=[ir=Math.max(Hi,Math.min(Xi,ir)),wt=Math.max(Hi,Math.min(Xi,wt))],ls=[Rt=Math.max(Hi,Math.min(Xi,Rt)),si=Math.max(Hi,Math.min(Xi,si))];Mi(ao,ls,O,G,ee,Q)?(It||(Ge.lineStart(),Ge.point(ao[0],ao[1])),Ge.point(ls[0],ls[1]),nn||Ge.lineEnd(),vr=!1):nn&&(Ge.lineStart(),Ge.point(Rt,si),vr=!1)}ir=Rt,wt=si,It=nn}return hi}}function is(){var O=0,G=0,ee=960,Q=500,he,Be,Oe;return Oe={stream:function(Ze){return he&&Be===Ze?he:he=mn(O,G,ee,Q)(Be=Ze)},extent:function(Ze){return arguments.length?(O=+Ze[0][0],G=+Ze[0][1],ee=+Ze[1][0],Q=+Ze[1][1],he=Be=null,Oe):[[O,G],[ee,Q]]}}}var Fs=r(),Go,as,Uu,jo={sphere:L,point:L,lineStart:ll,lineEnd:L,polygonStart:L,polygonEnd:L};function ll(){jo.point=c0,jo.lineEnd=eu}function eu(){jo.point=jo.lineEnd=L}function c0(O,G){O*=d,G*=d,Go=O,as=T(G),Uu=y(G),jo.point=Lh}function Lh(O,G){O*=d,G*=d;var ee=T(G),Q=y(G),he=p(O-Go),Be=y(he),Oe=T(he),Ze=Q*Oe,Ke=Uu*ee-as*Q*Be,ft=as*ee+Uu*Q*Be;Fs.add(g(S(Ze*Ze+Ke*Ke),ft)),Go=O,as=ee,Uu=Q}function tu(O){return Fs.reset(),H(O,jo),+Fs}var Gu=[null,null],bo={type:"LineString",coordinates:Gu};function ru(O,G){return Gu[0]=O,Gu[1]=G,tu(bo)}var ul={Feature:function(O,G){return $o(O.geometry,G)},FeatureCollection:function(O,G){for(var ee=O.features,Q=-1,he=ee.length;++Q0&&(he=ru(O[Be],O[Be-1]),he>0&&ee<=he&&Q<=he&&(ee+Q-he)*(1-Math.pow((ee-Q)/he,2))o}).map(et)).concat(t.range(x(Be/ft)*ft,he,ft).filter(function(wt){return p(wt%rt)>o}).map(dt))}return rr.lines=function(){return ir().map(function(wt){return{type:"LineString",coordinates:wt}})},rr.outline=function(){return{type:"Polygon",coordinates:[_t(Q).concat(er(Oe).slice(1),_t(ee).reverse().slice(1),er(Ze).reverse().slice(1))]}},rr.extent=function(wt){return arguments.length?rr.extentMajor(wt).extentMinor(wt):rr.extentMinor()},rr.extentMajor=function(wt){return arguments.length?(Q=+wt[0][0],ee=+wt[1][0],Ze=+wt[0][1],Oe=+wt[1][1],Q>ee&&(wt=Q,Q=ee,ee=wt),Ze>Oe&&(wt=Ze,Ze=Oe,Oe=wt),rr.precision(Wt)):[[Q,Ze],[ee,Oe]]},rr.extentMinor=function(wt){return arguments.length?(G=+wt[0][0],O=+wt[1][0],Be=+wt[0][1],he=+wt[1][1],G>O&&(wt=G,G=O,O=wt),Be>he&&(wt=Be,Be=he,he=wt),rr.precision(Wt)):[[G,Be],[O,he]]},rr.step=function(wt){return arguments.length?rr.stepMajor(wt).stepMinor(wt):rr.stepMinor()},rr.stepMajor=function(wt){return arguments.length?(Ge=+wt[0],rt=+wt[1],rr):[Ge,rt]},rr.stepMinor=function(wt){return arguments.length?(Ke=+wt[0],ft=+wt[1],rr):[Ke,ft]},rr.precision=function(wt){return arguments.length?(Wt=+wt,et=$u(Be,he,90),dt=Rh(G,O,Wt),_t=$u(Ze,Oe,90),er=Rh(Q,ee,Wt),rr):Wt},rr.extentMajor([[-180,-90+o],[180,90-o]]).extentMinor([[-180,-80-o],[180,80+o]])}function f0(){return Hu()()}function Rc(O,G){var ee=O[0]*d,Q=O[1]*d,he=G[0]*d,Be=G[1]*d,Oe=y(Q),Ze=T(Q),Ke=y(Be),ft=T(Be),Ge=Oe*y(ee),rt=Oe*T(ee),et=Ke*y(he),dt=Ke*T(he),_t=2*I(S(B(Be-Q)+Oe*Ke*B(he-ee))),er=T(_t),Wt=_t?function(rr){var ir=T(rr*=_t)/er,wt=T(_t-rr)/er,It=wt*Ge+ir*et,lr=wt*rt+ir*dt,vr=wt*Ze+ir*ft;return[g(lr,It)*f,g(vr,S(It*It+lr*lr))*f]}:function(){return[ee*f,Q*f]};return Wt.distance=_t,Wt}function cl(O){return O}var kn=r(),Bh=r(),Bc,os,Ls,d0,ga={point:L,lineStart:L,lineEnd:L,polygonStart:function(){ga.lineStart=Ho,ga.lineEnd=gp},polygonEnd:function(){ga.lineStart=ga.lineEnd=ga.point=L,kn.add(p(Bh)),Bh.reset()},result:function(){var O=kn/2;return kn.reset(),O}};function Ho(){ga.point=Cn}function Cn(O,G){ga.point=io,Bc=Ls=O,os=d0=G}function io(O,G){Bh.add(d0*O-Ls*G),Ls=O,d0=G}function gp(){io(Bc,os)}var iu=1/0,qc=iu,Oc=-iu,Nc=Oc,Zu={point:p0,lineStart:L,lineEnd:L,polygonStart:L,polygonEnd:L,result:function(){var O=[[iu,qc],[Oc,Nc]];return Oc=Nc=-(qc=iu=1/0),O}};function p0(O,G){OOc&&(Oc=O),GNc&&(Nc=G)}var yp=0,m0=0,v0=0,Vc=0,_p=0,qh=0,jm=0,xp=0,au=0,o_,bp,zs,vn,Zo={point:nu,lineStart:wp,lineEnd:$m,polygonStart:function(){Zo.lineStart=W6,Zo.lineEnd=X6},polygonEnd:function(){Zo.point=nu,Zo.lineStart=wp,Zo.lineEnd=$m},result:function(){var O=au?[jm/au,xp/au]:qh?[Vc/qh,_p/qh]:v0?[yp/v0,m0/v0]:[NaN,NaN];return yp=m0=v0=Vc=_p=qh=jm=xp=au=0,O}};function nu(O,G){yp+=O,m0+=G,++v0}function wp(){Zo.point=Uc}function Uc(O,G){Zo.point=Ap,nu(zs=O,vn=G)}function Ap(O,G){var ee=O-zs,Q=G-vn,he=S(ee*ee+Q*Q);Vc+=he*(zs+O)/2,_p+=he*(vn+G)/2,qh+=he,nu(zs=O,vn=G)}function $m(){Zo.point=nu}function W6(){Zo.point=K6}function X6(){Hm(o_,bp)}function K6(O,G){Zo.point=Hm,nu(o_=zs=O,bp=vn=G)}function Hm(O,G){var ee=O-zs,Q=G-vn,he=S(ee*ee+Q*Q);Vc+=he*(zs+O)/2,_p+=he*(vn+G)/2,qh+=he,he=vn*O-zs*G,jm+=he*(zs+O),xp+=he*(vn+G),au+=he*3,nu(zs=O,vn=G)}function Zm(O){this._context=O}Zm.prototype={_radius:4.5,pointRadius:function(O){return this._radius=O,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(O,G){switch(this._point){case 0:{this._context.moveTo(O,G),this._point=1;break}case 1:{this._context.lineTo(O,G);break}default:{this._context.moveTo(O+this._radius,G),this._context.arc(O,G,this._radius,0,h);break}}},result:L};var Ym=r(),Wm,s_,l_,g0,y0,_0={point:L,lineStart:function(){_0.point=J6},lineEnd:function(){Wm&&u_(s_,l_),_0.point=L},polygonStart:function(){Wm=!0},polygonEnd:function(){Wm=null},result:function(){var O=+Ym;return Ym.reset(),O}};function J6(O,G){_0.point=u_,s_=g0=O,l_=y0=G}function u_(O,G){g0-=O,y0-=G,Ym.add(S(g0*g0+y0*y0)),g0=O,y0=G}function c_(){this._string=[]}c_.prototype={_radius:4.5,_circle:h_(4.5),pointRadius:function(O){return(O=+O)!==this._radius&&(this._radius=O,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(O,G){switch(this._point){case 0:{this._string.push("M",O,",",G),this._point=1;break}case 1:{this._string.push("L",O,",",G);break}default:{this._circle==null&&(this._circle=h_(this._radius)),this._string.push("M",O,",",G,this._circle);break}}},result:function(){if(this._string.length){var O=this._string.join("");return this._string=[],O}else return null}};function h_(O){return"m0,"+O+"a"+O+","+O+" 0 1,1 0,"+-2*O+"a"+O+","+O+" 0 1,1 0,"+2*O+"z"}function Q6(O,G){var ee=4.5,Q,he;function Be(Oe){return Oe&&(typeof ee=="function"&&he.pointRadius(+ee.apply(this,arguments)),H(Oe,Q(he))),he.result()}return Be.area=function(Oe){return H(Oe,Q(ga)),ga.result()},Be.measure=function(Oe){return H(Oe,Q(_0)),_0.result()},Be.bounds=function(Oe){return H(Oe,Q(Zu)),Zu.result()},Be.centroid=function(Oe){return H(Oe,Q(Zo)),Zo.result()},Be.projection=function(Oe){return arguments.length?(Q=Oe==null?(O=null,cl):(O=Oe).stream,Be):O},Be.context=function(Oe){return arguments.length?(he=Oe==null?(G=null,new c_):new Zm(G=Oe),typeof ee!="function"&&he.pointRadius(ee),Be):G},Be.pointRadius=function(Oe){return arguments.length?(ee=typeof Oe=="function"?Oe:(he.pointRadius(+Oe),+Oe),Be):ee},Be.projection(O).context(G)}function eA(O){return{stream:Oh(O)}}function Oh(O){return function(G){var ee=new Tp;for(var Q in O)ee[Q]=O[Q];return ee.stream=G,ee}}function Tp(){}Tp.prototype={constructor:Tp,point:function(O,G){this.stream.point(O,G)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};function Mp(O,G,ee){var Q=O.clipExtent&&O.clipExtent();return O.scale(150).translate([0,0]),Q!=null&&O.clipExtent(null),H(ee,O.stream(Zu)),G(Zu.result()),Q!=null&&O.clipExtent(Q),O}function x0(O,G,ee){return Mp(O,function(Q){var he=G[1][0]-G[0][0],Be=G[1][1]-G[0][1],Oe=Math.min(he/(Q[1][0]-Q[0][0]),Be/(Q[1][1]-Q[0][1])),Ze=+G[0][0]+(he-Oe*(Q[1][0]+Q[0][0]))/2,Ke=+G[0][1]+(Be-Oe*(Q[1][1]+Q[0][1]))/2;O.scale(150*Oe).translate([Ze,Ke])},ee)}function Xm(O,G,ee){return x0(O,[[0,0],G],ee)}function Km(O,G,ee){return Mp(O,function(Q){var he=+G,Be=he/(Q[1][0]-Q[0][0]),Oe=(he-Be*(Q[1][0]+Q[0][0]))/2,Ze=-Be*Q[0][1];O.scale(150*Be).translate([Oe,Ze])},ee)}function Yu(O,G,ee){return Mp(O,function(Q){var he=+G,Be=he/(Q[1][1]-Q[0][1]),Oe=-Be*Q[0][0],Ze=(he-Be*(Q[1][1]+Q[0][1]))/2;O.scale(150*Be).translate([Oe,Ze])},ee)}var f_=16,tA=y(30*d);function d_(O,G){return+G?p_(O,G):rA(O)}function rA(O){return Oh({point:function(G,ee){G=O(G,ee),this.stream.point(G[0],G[1])}})}function p_(O,G){function ee(Q,he,Be,Oe,Ze,Ke,ft,Ge,rt,et,dt,_t,er,Wt){var rr=ft-Q,ir=Ge-he,wt=rr*rr+ir*ir;if(wt>4*G&&er--){var It=Oe+et,lr=Ze+dt,vr=Ke+_t,hi=S(It*It+lr*lr+vr*vr),Ri=I(vr/=hi),pi=p(p(vr)-1)G||p((rr*an+ir*Zi)/wt-.5)>.3||Oe*et+Ze*dt+Ke*_t2?Rt[2]%360*d:0,an()):[Ze*f,Ke*f,ft*f]},Jr.angle=function(Rt){return arguments.length?(rt=Rt%360*d,an()):rt*f},Jr.reflectX=function(Rt){return arguments.length?(et=Rt?-1:1,an()):et<0},Jr.reflectY=function(Rt){return arguments.length?(dt=Rt?-1:1,an()):dt<0},Jr.precision=function(Rt){return arguments.length?(vr=d_(hi,lr=Rt*Rt),Zi()):S(lr)},Jr.fitExtent=function(Rt,si){return x0(Jr,Rt,si)},Jr.fitSize=function(Rt,si){return Xm(Jr,Rt,si)},Jr.fitWidth=function(Rt,si){return Km(Jr,Rt,si)},Jr.fitHeight=function(Rt,si){return Yu(Jr,Rt,si)};function an(){var Rt=Jm(ee,0,0,et,dt,rt).apply(null,G(Be,Oe)),si=(rt?Jm:nA)(ee,Q-Rt[0],he-Rt[1],et,dt,rt);return Ge=Vi(Ze,Ke,ft),hi=Kr(G,si),Ri=Kr(Ge,hi),vr=d_(hi,lr),Zi()}function Zi(){return pi=Ki=null,Jr}return function(){return G=O.apply(this,arguments),Jr.invert=G.invert&&Nn,an()}}function ev(O){var G=0,ee=l/3,Q=Qm(O),he=Q(G,ee);return he.parallels=function(Be){return arguments.length?Q(G=Be[0]*d,ee=Be[1]*d):[G*f,ee*f]},he}function oA(O){var G=y(O);function ee(Q,he){return[Q*G,T(he)/G]}return ee.invert=function(Q,he){return[Q/G,I(he*G)]},ee}function m_(O,G){var ee=T(O),Q=(ee+T(G))/2;if(p(Q)=.12&&Wt<.234&&er>=-.425&&er<-.214?he:Wt>=.166&&Wt<.234&&er>=-.214&&er<-.115?Oe:ee).invert(et)},Ge.stream=function(et){return O&&G===et?O:O=sA([ee.stream(G=et),he.stream(et),Oe.stream(et)])},Ge.precision=function(et){return arguments.length?(ee.precision(et),he.precision(et),Oe.precision(et),rt()):ee.precision()},Ge.scale=function(et){return arguments.length?(ee.scale(et),he.scale(et*.35),Oe.scale(et),Ge.translate(ee.translate())):ee.scale()},Ge.translate=function(et){if(!arguments.length)return ee.translate();var dt=ee.scale(),_t=+et[0],er=+et[1];return Q=ee.translate(et).clipExtent([[_t-.455*dt,er-.238*dt],[_t+.455*dt,er+.238*dt]]).stream(ft),Be=he.translate([_t-.307*dt,er+.201*dt]).clipExtent([[_t-.425*dt+o,er+.12*dt+o],[_t-.214*dt-o,er+.234*dt-o]]).stream(ft),Ze=Oe.translate([_t-.205*dt,er+.212*dt]).clipExtent([[_t-.214*dt+o,er+.166*dt+o],[_t-.115*dt-o,er+.234*dt-o]]).stream(ft),rt()},Ge.fitExtent=function(et,dt){return x0(Ge,et,dt)},Ge.fitSize=function(et,dt){return Xm(Ge,et,dt)},Ge.fitWidth=function(et,dt){return Km(Ge,et,dt)},Ge.fitHeight=function(et,dt){return Yu(Ge,et,dt)};function rt(){return O=G=null,Ge}return Ge.scale(1070)}function Nh(O){return function(G,ee){var Q=y(G),he=y(ee),Be=O(Q*he);return[Be*he*T(G),Be*T(ee)]}}function ou(O){return function(G,ee){var Q=S(G*G+ee*ee),he=O(Q),Be=T(he),Oe=y(he);return[g(G*Be,Q*Oe),I(Q&&ee*Be/Q)]}}var ss=Nh(function(O){return S(2/(1+O))});ss.invert=ou(function(O){return 2*I(O/2)});function uA(){return hl(ss).scale(124.75).clipAngle(180-.001)}var tv=Nh(function(O){return(O=P(O))&&O/T(O)});tv.invert=ou(function(O){return O});function cA(){return hl(tv).scale(79.4188).clipAngle(180-.001)}function w0(O,G){return[O,_(k((u+G)/2))]}w0.invert=function(O,G){return[O,2*m(b(G))-u]};function g_(){return y_(w0).scale(961/h)}function y_(O){var G=hl(O),ee=G.center,Q=G.scale,he=G.translate,Be=G.clipExtent,Oe=null,Ze,Ke,ft;G.scale=function(rt){return arguments.length?(Q(rt),Ge()):Q()},G.translate=function(rt){return arguments.length?(he(rt),Ge()):he()},G.center=function(rt){return arguments.length?(ee(rt),Ge()):ee()},G.clipExtent=function(rt){return arguments.length?(rt==null?Oe=Ze=Ke=ft=null:(Oe=+rt[0][0],Ze=+rt[0][1],Ke=+rt[1][0],ft=+rt[1][1]),Ge()):Oe==null?null:[[Oe,Ze],[Ke,ft]]};function Ge(){var rt=l*Q(),et=G(Ui(G.rotate()).invert([0,0]));return Be(Oe==null?[[et[0]-rt,et[1]-rt],[et[0]+rt,et[1]+rt]]:O===w0?[[Math.max(et[0]-rt,Oe),Ze],[Math.min(et[0]+rt,Ke),ft]]:[[Oe,Math.max(et[1]-rt,Ze)],[Ke,Math.min(et[1]+rt,ft)]])}return Ge()}function Dp(O){return k((u+O)/2)}function __(O,G){var ee=y(O),Q=O===G?T(O):_(ee/y(G))/_(Dp(G)/Dp(O)),he=ee*A(Dp(O),Q)/Q;if(!Q)return w0;function Be(Oe,Ze){he>0?Ze<-u+o&&(Ze=-u+o):Ze>u-o&&(Ze=u-o);var Ke=he/A(Dp(Ze),Q);return[Ke*T(Q*Oe),he-Ke*y(Q*Oe)]}return Be.invert=function(Oe,Ze){var Ke=he-Ze,ft=M(Q)*S(Oe*Oe+Ke*Ke),Ge=g(Oe,p(Ke))*M(Ke);return Ke*Q<0&&(Ge-=l*M(Oe)*M(Ke)),[Ge/Q,2*m(A(he/ft,1/Q))-u]},Be}function hA(){return ev(__).scale(109.5).parallels([30,30])}function A0(O,G){return[O,G]}A0.invert=A0;function rv(){return hl(A0).scale(152.63)}function Sp(O,G){var ee=y(O),Q=O===G?T(O):(ee-y(G))/(G-O),he=ee/Q+O;if(p(Q)o&&--Q>0);return[O/(.8707+(Be=ee*ee)*(-.131979+Be*(-.013791+Be*Be*Be*(.003971-.001529*Be)))),ee]};function w_(){return hl(iv).scale(175.295)}function Cp(O,G){return[y(G)*T(O),T(G)]}Cp.invert=ou(I);function A_(){return hl(Cp).scale(249.5).clipAngle(90+o)}function E0(O,G){var ee=y(G),Q=1+y(O)*ee;return[ee*T(O)/Q,T(G)/Q]}E0.invert=ou(function(O){return 2*m(O)});function av(){return hl(E0).scale(250).clipAngle(142)}function nv(O,G){return[_(k((u+G)/2)),-O]}nv.invert=function(O,G){return[-G,2*m(b(O))-u]};function mA(){var O=y_(nv),G=O.center,ee=O.rotate;return O.center=function(Q){return arguments.length?G([-Q[1],Q[0]]):(Q=G(),[Q[1],-Q[0]])},O.rotate=function(Q){return arguments.length?ee([Q[0],Q[1],Q.length>2?Q[2]+90:90]):(Q=ee(),[Q[0],Q[1],Q[2]-90])},ee([0,0,90]).scale(159.155)}e.geoAlbers=v_,e.geoAlbersUsa=lA,e.geoArea=re,e.geoAzimuthalEqualArea=uA,e.geoAzimuthalEqualAreaRaw=ss,e.geoAzimuthalEquidistant=cA,e.geoAzimuthalEquidistantRaw=tv,e.geoBounds=mt,e.geoCentroid=Ut,e.geoCircle=Es,e.geoClipAntimeridian=Qt,e.geoClipCircle=Za,e.geoClipExtent=is,e.geoClipRectangle=mn,e.geoConicConformal=hA,e.geoConicConformalRaw=__,e.geoConicEqualArea=b0,e.geoConicEqualAreaRaw=m_,e.geoConicEquidistant=fA,e.geoConicEquidistantRaw=Sp,e.geoContains=h0,e.geoDistance=ru,e.geoEqualEarth=x_,e.geoEqualEarthRaw=S0,e.geoEquirectangular=rv,e.geoEquirectangularRaw=A0,e.geoGnomonic=b_,e.geoGnomonicRaw=kp,e.geoGraticule=Hu,e.geoGraticule10=f0,e.geoIdentity=pA,e.geoInterpolate=Rc,e.geoLength=tu,e.geoMercator=g_,e.geoMercatorRaw=w0,e.geoNaturalEarth1=w_,e.geoNaturalEarth1Raw=iv,e.geoOrthographic=A_,e.geoOrthographicRaw=Cp,e.geoPath=Q6,e.geoProjection=hl,e.geoProjectionMutator=Qm,e.geoRotation=Ui,e.geoStereographic=av,e.geoStereographicRaw=E0,e.geoStream=H,e.geoTransform=eA,e.geoTransverseMercator=mA,e.geoTransverseMercatorRaw=nv,Object.defineProperty(e,"__esModule",{value:!0})}))});var Uce=X((bht,Vce)=>{"use strict";var Nce={alabama:"AL",alaska:"AK",arizona:"AZ",arkansas:"AR",california:"CA",colorado:"CO",connecticut:"CT",delaware:"DE","district of columbia":"DC",florida:"FL",georgia:"GA",hawaii:"HI",idaho:"ID",illinois:"IL",indiana:"IN",iowa:"IA",kansas:"KS",kentucky:"KY",louisiana:"LA",maine:"ME",maryland:"MD",massachusetts:"MA",michigan:"MI",minnesota:"MN",mississippi:"MS",missouri:"MO",montana:"MT",nebraska:"NE",nevada:"NV","new hampshire":"NH","new jersey":"NJ","new mexico":"NM","new york":"NY","north carolina":"NC","north dakota":"ND",ohio:"OH",oklahoma:"OK",oregon:"OR",pennsylvania:"PA","rhode island":"RI","south carolina":"SC","south dakota":"SD",tennessee:"TN",texas:"TX",utah:"UT",vermont:"VT",virginia:"VA",washington:"WA","washington dc":"DC","washington d.c.":"DC","west virginia":"WV",wisconsin:"WI",wyoming:"WY"},SWe=new Set(Object.values(Nce));Vce.exports={usaLocationAbbreviations:SWe,usaLocationList:Nce}});var Gce={};Yi(Gce,{COUNTRIES_X:()=>EWe});var EWe,jce=Gi(()=>{"use strict";EWe=[{iso3:"XAC",iso2:"",m49:"",name:"Aksai Chin",aliases:[]},{iso3:"XAP",iso2:"",m49:"",name:"Arunachal Pradesh",aliases:[]},{iso3:"XBT",iso2:"",m49:"",name:"Bir Tawil",aliases:[]},{iso3:"XHT",iso2:"",m49:"",name:"Halaib Triangle",aliases:[]},{iso3:"XIT",iso2:"",m49:"",name:"Ilemi Triangle",aliases:[]},{iso3:"XJK",iso2:"",m49:"",name:"Jammu and Kashmir",aliases:[]}]});var e_=X((wht,Zce)=>{"use strict";var kWe=Qr(),{COUNTRIES:CWe,createLookup:FWe}=_ce(),{area:PWe}=Ice(),{centroid:IWe}=zce(),{coordAll:LWe}=D6(),{geoBounds:zWe}=Oce(),RWe=Cx(),Qf=Hc(),BWe=$h(),qWe=uv(),F6=T3(),{usaLocationAbbreviations:OWe,usaLocationList:NWe}=Uce(),{COUNTRIES_X:VWe}=(jce(),lt(Gce)),{lookupAlpha3:UWe}=FWe([...CWe,...VWe]),GWe={"ISO-3":RWe,"USA-states":$We,"country names":jWe};function jWe(e){let t=UWe(e);return t||(Qf.log("Unrecognized country name: "+e+"."),!1)}function $We(e){e=e.trim();let t=OWe.has(e.toUpperCase())?e.toUpperCase():NWe[e.toLowerCase()];return t||(Qf.log("Unrecognized US location: "+e+"."),!1)}function HWe(e,t,r){var a;if(!t||typeof t!="string")return!1;let i=GWe[e](t);if(i){let n;if(e==="USA-states"){n=[];for(let o of r)((a=o==null?void 0:o.properties)==null?void 0:a.gu)==="USA"&&n.push(o)}else n=r;for(let o of n)if(o.id===i)return o;Qf.log(`Location with id ${i} does not have a matching topojson feature at this resolution.`)}return!1}var P6=360;function oP(e){for(let t=0;t0&&e[t+1][0]<0)return t;return null}function ZWe(e){var t=e.geometry,r=t.coordinates,i=e.id,a=[],n,o,s,l;switch(i==="RUS"||i==="FJI"?n=function(u){var c;if(oP(u)===null)c=u;else for(c=new Array(u.length),l=0;lc?h[f++]=[u[l][0]+P6,u[l][1]]:l===c?(h[f++]=u[l],h[f++]=[u[l][0],-90]):h[f++]=u[l];var d=F6.tester(h);d.pts.pop(),a.push(d)}:n=function(u){a.push(F6.tester(u))},t.type){case"MultiPolygon":for(o=0;oa&&(a=s,r=o)}else r=t;return!r||!r.coordinates.some(l=>l.length>0)?[NaN,NaN]:IWe(r).geometry.coordinates}function XWe(e){var t=window.PlotlyGeoAssets||{},r=[];function i(l){return new Promise(function(u,c){kWe.json(l,function(h,f){if(h){delete t[l];var d=h.status===404?'GeoJSON at URL "'+l+'" does not exist.':"Unexpected error while fetching from "+l;return c(new Error(d))}return t[l]=f,u(f)})})}function a(l){return new Promise(function(u,c){var h=0,f=setInterval(function(){if(t[l]&&t[l]!=="pending")return clearInterval(f),u(t[l]);if(h>100)return clearInterval(f),c("Unexpected error while fetching from "+l);h++},50)})}for(var n=0;nuP(lP(e));function lP(e){try{return LWe(e)}catch(t){return[]}}function uP(e){if(e.length===0)return null;if(e.length===1){let[n,o]=e[0];return[n,o,n,o]}let[[t,r],[i,a]]=zWe({type:"MultiPoint",coordinates:e});return[t,r,Hce([t,i])[1],a]}var JWe=(e,t)=>t.fitbounds==="geojson"&&e.locationmode==="geojson-id",$ce=(e,t)=>JWe(e,t)?lP(sP(e)):[],QWe=(e,t)=>uP($ce(e,t));function Hce([e,t]){return[e,e>t?t+P6:t]}Zce.exports={locationToFeature:HWe,feature2polygons:ZWe,getTraceGeojson:sP,extractTraceFeature:YWe,fetchTraceGeoData:XWe,boundsOfCoords:uP,computeBbox:KWe,coordsOf:lP,doesCrossAntiMeridian:oP,fitGeojsonBbox:QWe,fitGeojsonCoords:$ce,unwrapLonRange:Hce,ANTIMERIDIAN_LON_SHIFT:P6}});var Jce=X((Aht,Kce)=>{"use strict";var up=tt(),eXe=cn().sanitizeHTML,tXe=B9(),Yce=Pf();function Wce(e,t){this.subplot=e,this.uid=e.uid+"-"+t,this.index=t,this.idSource="source-"+this.uid,this.idLayer=Yce.layoutLayerPrefix+this.uid,this.sourceType=null,this.source=null,this.layerType=null,this.below=null,this.visible=!1}var Xl=Wce.prototype;Xl.update=function(t){this.visible?this.needsNewImage(t)?this.updateImage(t):this.needsNewSource(t)?(this.removeLayer(),this.updateSource(t),this.updateLayer(t)):this.needsNewLayer(t)?this.updateLayer(t):this.updateStyle(t):(this.updateSource(t),this.updateLayer(t)),this.visible=I6(t)};Xl.needsNewImage=function(e){var t=this.subplot.map;return t.getSource(this.idSource)&&this.sourceType==="image"&&e.sourcetype==="image"&&(this.source!==e.source||JSON.stringify(this.coordinates)!==JSON.stringify(e.coordinates))};Xl.needsNewSource=function(e){return this.sourceType!==e.sourcetype||JSON.stringify(this.source)!==JSON.stringify(e.source)||this.layerType!==e.type};Xl.needsNewLayer=function(e){return this.layerType!==e.type||this.below!==this.subplot.belowLookup["layout-"+this.index]};Xl.lookupBelow=function(){return this.subplot.belowLookup["layout-"+this.index]};Xl.updateImage=function(e){var t=this.subplot.map;t.getSource(this.idSource).updateImage({url:e.source,coordinates:e.coordinates});var r=this.findFollowingMapLayerId(this.lookupBelow());r!==null&&this.subplot.map.moveLayer(this.idLayer,r)};Xl.updateSource=function(e){var t=this.subplot.map;if(t.getSource(this.idSource)&&t.removeSource(this.idSource),this.sourceType=e.sourcetype,this.source=e.source,!!I6(e)){var r=rXe(e);t.addSource(this.idSource,r)}};Xl.findFollowingMapLayerId=function(e){if(e==="traces")for(var t=this.subplot.getMapLayers(),r=0;r0){for(var r=0;r0}function Xce(e){var t={},r={};switch(e.type){case"circle":up.extendFlat(r,{"circle-radius":e.circle.radius,"circle-color":e.color,"circle-opacity":e.opacity});break;case"line":up.extendFlat(r,{"line-width":e.line.width,"line-color":e.color,"line-opacity":e.opacity,"line-dasharray":e.line.dash});break;case"fill":up.extendFlat(r,{"fill-color":e.color,"fill-outline-color":e.fill.outlinecolor,"fill-opacity":e.opacity});break;case"symbol":var i=e.symbol,a=tXe(i.textposition,i.iconsize);up.extendFlat(t,{"icon-image":i.icon,"icon-size":i.iconsize/10,"text-field":i.text,"text-size":i.textfont.size,"text-anchor":a.anchor,"text-offset":a.offset,"symbol-placement":i.placement}),up.extendFlat(r,{"icon-color":e.color,"text-color":i.textfont.color,"text-opacity":e.opacity});break;case"raster":up.extendFlat(r,{"raster-fade-duration":0,"raster-opacity":e.opacity});break}return{layout:t,paint:r}}function rXe(e){var t=e.sourcetype,r=e.source,i={type:t},a;return t==="geojson"?a="data":t==="vector"?a=typeof r=="string"?"url":"tiles":t==="raster"?(a="tiles",i.tileSize=256):t==="image"&&(a="url",i.coordinates=e.coordinates),i[a]=r,e.sourceattribution&&(i.attribution=eXe(e.sourceattribution)),i}Kce.exports=function(t,r,i){var a=new Wce(t,r);return a.update(i),a}});var uhe=X((Tht,lhe)=>{"use strict";var z6=(fce(),lt(cce)),iXe=pce(),Qce=!1,aXe=()=>{Qce||(Qce=!0,z6.setWorkerUrl(URL.createObjectURL(new Blob([iXe],{type:"text/javascript"}))))},R6=tt(),rhe=e_(),ehe=mr(),nXe=ra(),oXe=bl(),L6=yu(),ihe=dd(),sXe=ihe.drawMode,lXe=ihe.selectMode,uXe=yc().prepSelect,cXe=yc().clearOutline,hXe=yc().clearSelectionsCache,fXe=yc().selectOnClick,e0=Pf(),dXe=Jce();function ahe(e,t){this.id=t,this.gd=e;var r=e._fullLayout,i=e._context;this.container=r._glcontainer.node(),this.isStatic=i.staticPlot,this.uid=r._uid+"-"+this.id,this.div=null,this.xaxis=null,this.yaxis=null,this.createFramework(r),this.map=null,this.styleObj=null,this.traceHash={},this.layerList=[],this.belowLookup={},this.dragging=!1,this.wheeling=!1}var rn=ahe.prototype;rn.plot=function(e,t,r){var i=this,a;i.map?a=new Promise(function(n,o){i.updateMap(e,t,n,o)}):a=new Promise(function(n,o){i.createMap(e,t,n,o)}),r.push(a)};rn.createMap=function(e,t,r,i){var a=this,n=t[a.id],o=a.styleObj=she(n.style),s=n.bounds,l=s?[[s.west,s.south],[s.east,s.north]]:null;let u={container:a.div,style:o.style,center:cP(n.center),zoom:n.zoom,bearing:n.bearing,pitch:n.pitch,maxBounds:l,interactive:!a.isStatic,canvasContextAttributes:{preserveDrawingBuffer:a.isStatic},doubleClickZoom:!1,boxZoom:!1,attributionControl:!1},c=n._fitBounds;c&&(u.bounds=[[c.west,c.south],[c.east,c.north]],u.fitBoundsOptions={padding:e0.fitBoundsPadding}),aXe();let h=a.map=new z6.Map(u).addControl(new z6.AttributionControl({compact:!0})),f={};h.setMissingStyleImageResolver(p=>(!f[p]&&/^[a-zA-Z0-9-]+$/.test(p)&&(f[p]=new Promise(m=>{let g=new Image(15,15);g.onload=()=>{h.addImage(p,g,{sdf:!0}),m()},g.onerror=()=>m(),g.crossOrigin="Anonymous",g.src=`https://cdn.jsdelivr.net/npm/@mapbox/maki@8.2.0/icons/${p}.svg`})),f[p])),h.setTransformRequest(function(p){return p=p.replace("https://fonts.openmaptiles.org/Open Sans Extrabold","https://fonts.openmaptiles.org/Open Sans Extra Bold"),p=p.replace("https://tiles.basemaps.cartocdn.com/fonts/Open Sans Extrabold","https://fonts.openmaptiles.org/Open Sans Extra Bold"),p=p.replace("https://fonts.openmaptiles.org/Open Sans Regular,Arial Unicode MS Regular","https://fonts.openmaptiles.org/Klokantech Noto Sans Regular"),{url:p}}),h._canvas.style.left="0px",h._canvas.style.top="0px",a.rejectOnError(i),a.isStatic||a.initFx(e,t);var d=[];d.push(new Promise(function(p){h.once("load",p)})),d=d.concat(rhe.fetchTraceGeoData(e)),Promise.all(d).then(function(){c&&nhe(a,n),ohe(a,n),a.fillBelowLookup(e,t),a.updateData(e),a.updateLayout(t),a.resolveOnRender(r)}).catch(i)};rn.updateMap=function(e,t,r,i){var a=this,n=a.map,o=t[this.id];a.rejectOnError(i);var s=[],l=she(o.style);JSON.stringify(a.styleObj)!==JSON.stringify(l)&&(a.styleObj=l,n.setStyle(l.style),a.traceHash={},s.push(new Promise(function(u){n.once("styledata",u)}))),s=s.concat(rhe.fetchTraceGeoData(e)),Promise.all(s).then(function(){a.fillBelowLookup(e,t),a.updateData(e);let u=o._fitBounds;u&&(n.fitBounds([[u.west,u.south],[u.east,u.north]],{padding:e0.fitBoundsPadding,animate:!1}),nhe(a,o),ohe(a,o)),a.updateLayout(t),a.resolveOnRender(r)}).catch(i)};function nhe(e,t){let{center:r,zoom:i}=e.getView();t._input.center=t.center=r,t._input.zoom=t.zoom=i,t._input._fitView={center:nr({},r),zoom:i}}function ohe(e,t){let r=e.getView();e.viewInitial={center:R6.extendFlat({},r.center),bearing:t.bearing,pitch:t.pitch,zoom:r.zoom}}rn.fillBelowLookup=function(e,t){var r=t[this.id],i=r.layers,a,n,o=this.belowLookup={},s=!1;for(a=0;a1)for(a=0;at.project(i).x,_subplot:t},t.yaxis={_id:"y",c2p:i=>t.project(i).y,_subplot:t},t.updateFramework(e),t.mockAxis={type:"linear",showexponent:"all",exponentformat:"B"},nXe.setConvert(t.mockAxis,e)};rn.initFx=function(e,t){var r=this,i=r.gd,a=r.map;a.on("moveend",function(s){if(r.map){var l=i._fullLayout;if(s.originalEvent||r.wheeling){var u=l[r.id];ehe.call("_storeDirectGUIEdit",i.layout,l._preGUI,r.getViewEdits(u));var c=r.getView();u._input.center=u.center=c.center,u._input.zoom=u.zoom=c.zoom,u._input.bearing=u.bearing=c.bearing,u._input.pitch=u.pitch=c.pitch,i.emit("plotly_relayout",r.getViewEditsWithDerived(c))}s.originalEvent&&s.originalEvent.type==="mouseup"?r.dragging=!1:r.wheeling&&(r.wheeling=!1),l&&l._rehover&&l._rehover()}}),a.on("wheel",function(){r.wheeling=!0}),a.on("mousemove",function(s){var l=r.div.getBoundingClientRect(),u=[s.originalEvent.offsetX,s.originalEvent.offsetY];s.target.getBoundingClientRect=function(){return l},r.xaxis.p2c=function(){return a.unproject(u).lng},r.yaxis.p2c=function(){return a.unproject(u).lat},i._fullLayout._rehover=function(){i._fullLayout._hoversubplot===r.id&&i._fullLayout[r.id]&&L6.hover(i,s,r.id)},L6.hover(i,s,r.id),i._fullLayout._hoversubplot=r.id});function n(){L6.loneUnhover(t._hoverlayer)}a.on("dragstart",function(){r.dragging=!0,n()}),a.on("zoomstart",n),a.on("mouseout",function(){i._fullLayout._hoversubplot=null});function o(){var s=r.getView();i.emit("plotly_relayouting",r.getViewEditsWithDerived(s))}a.on("drag",o),a.on("zoom",o),a.on("dblclick",function(){var s=i._fullLayout[r.id];ehe.call("_storeDirectGUIEdit",i.layout,i._fullLayout._preGUI,r.getViewEdits(s));var l=r.viewInitial;a.setCenter(cP(l.center)),a.setZoom(l.zoom),a.setBearing(l.bearing),a.setPitch(l.pitch);var u=r.getView();s._input.center=s.center=u.center,s._input.zoom=s.zoom=u.zoom,s._input.bearing=s.bearing=u.bearing,s._input.pitch=s.pitch=u.pitch,i.emit("plotly_doubleclick",null),i.emit("plotly_relayout",r.getViewEditsWithDerived(u))}),r.clearOutline=function(){hXe(r.dragOptions),cXe(r.dragOptions.gd)},r.onClickInPanFn=function(s){return function(l){var u=i._fullLayout.clickmode;u.indexOf("select")>-1&&fXe(l.originalEvent,i,[r.xaxis],[r.yaxis],r.id,s),u.indexOf("event")>-1&&L6.click(i,l.originalEvent)}}};rn.updateFx=function(e){var t=this,r=t.map,i=t.gd;if(t.isStatic)return;function a(l){var u=t.map.unproject(l);return[u.lng,u.lat]}var n=e.dragmode,o;o=function(l,u){if(u.isRect){var c=l.range={};c[t.id]=[a([u.xmin,u.ymin]),a([u.xmax,u.ymax])]}else{var h=l.lassoPoints={};h[t.id]=u.map(a)}};var s=t.dragOptions;t.dragOptions=R6.extendDeep(s||{},{dragmode:e.dragmode,element:t.div,gd:i,plotinfo:{id:t.id,domain:e[t.id].domain,xaxis:t.xaxis,yaxis:t.yaxis,fillRangeItems:o},xaxes:[t.xaxis],yaxes:[t.yaxis],subplot:t.id}),r.off("click",t.onClickInPanHandler),lXe(n)||sXe(n)?(r.dragPan.disable(),r.on("zoomstart",t.clearOutline),t.dragOptions.prepFn=function(l,u,c){uXe(l,u,c,t.dragOptions,n)},oXe.init(t.dragOptions)):(r.dragPan.enable(),r.off("zoomstart",t.clearOutline),t.div.onmousedown=null,t.div.ontouchstart=null,t.div.removeEventListener("touchstart",t.div._ontouchstart),t.onClickInPanHandler=t.onClickInPanFn(t.dragOptions),r.on("click",t.onClickInPanHandler))};rn.updateFramework=function(e){var t=e[this.id].domain,r=e._size,i=this.div.style;i.width=r.w*(t.x[1]-t.x[0])+"px",i.height=r.h*(t.y[1]-t.y[0])+"px",i.left=r.l+t.x[0]*r.w+"px",i.top=r.t+(1-t.y[1])*r.h+"px",this.xaxis._offset=r.l+t.x[0]*r.w,this.xaxis._length=r.w*(t.x[1]-t.x[0]),this.yaxis._offset=r.t+(1-t.y[1])*r.h,this.yaxis._length=r.h*(t.y[1]-t.y[0])};rn.updateLayers=function(e){var t=e[this.id],r=t.layers,i=this.layerList,a;if(r.length!==i.length){for(a=0;a{"use strict";var pXe=tt(),mXe=qi(),vXe=H5().defaults;che.exports=function(t,r,i,a){var n=a.type,o=a.attributes,s=a.handleDefaults,l=a.partition||"x",u=r._subplots[n],c=u.length,h=c&&u[0].replace(/\d+$/,""),f,d;function p(x,b){return pXe.coerce(f,d,o,x,b)}for(var m=0;mgXe});function gXe(e,t){let r=[];for(let l of e){if(l.subplot!==t||l.visible!==!0)continue;if(l.type==="choroplethmap")return null;let{lat:u,lon:c}=l;if(!c||!u)continue;let h=Math.min(c.length,u.length);for(let f=0;f{"use strict";fhe=DA(e_())});var ghe=X((Sht,vhe)=>{"use strict";var hP=tt(),yXe=hhe(),_Xe=_l(),mhe=dy(),{getMapFitBounds:xXe}=(phe(),lt(dhe));vhe.exports=function(t,r,i){yXe(t,r,i,{type:"map",attributes:mhe,handleDefaults:bXe,partition:"y",fullData:i})};function bXe(e,t,r,i){r("style"),r("center.lon"),r("center.lat"),r("zoom"),r("bearing"),r("pitch");let a=r("fitbounds");var n=r("bounds.west"),o=r("bounds.east"),s=r("bounds.south"),l=r("bounds.north");(n===void 0||o===void 0||s===void 0||l===void 0)&&delete t.bounds,_Xe(e,t,{name:"layers",handleItemDefaults:wXe}),t._fitBounds=null;let{_fitView:{center:u,zoom:c}={},center:h,zoom:f}=e,d=(h==null?void 0:h.lon)===(u==null?void 0:u.lon)&&(h==null?void 0:h.lat)===(u==null?void 0:u.lat)&&f===c;if(a&&d){let p=xXe(i.fullData,i.id);p&&(t._fitBounds=p)}t._input=e}function wXe(e,t){function r(l,u){return hP.coerce(e,t,mhe.layers,l,u)}var i=r("visible");if(i){var a=r("sourcetype"),n=a==="raster"||a==="image";r("source"),r("sourceattribution"),a==="vector"&&r("sourcelayer"),a==="image"&&r("coordinates");var o;n&&(o="raster");var s=r("type",o);n&&s!=="raster"&&(s=t.type="raster",hP.log("Source types *raster* and *image* must drawn *raster* layer type.")),r("below"),r("color"),r("opacity"),r("minzoom"),r("maxzoom"),s==="circle"&&r("circle.radius"),s==="line"&&(r("line.width"),r("line.dash")),s==="fill"&&r("fill.outlinecolor"),s==="symbol"&&(r("symbol.icon"),r("symbol.iconsize"),r("symbol.text"),hP.coerceFont(r,"symbol.textfont",void 0,{noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0}),r("symbol.textposition"),r("symbol.placement"))}}});var B6=X(nl=>{"use strict";var fP=tt(),yhe=fP.strTranslate,AXe=fP.strScale,TXe=Kx().getSubplotCalcData,MXe=(lf(),lt(sf)),DXe=Qr(),_he=xi(),SXe=cn(),EXe=uhe(),t0="map";nl.name=t0;nl.attr="subplot";nl.idRoot=t0;nl.idRegex=nl.attrRegex=fP.counterRegex(t0);nl.attributes={subplot:{valType:"subplotid",dflt:"map",editType:"calc"}};nl.layoutAttributes=dy();nl.supplyLayoutDefaults=ghe();nl.plot=function(t){for(var r=t._fullLayout,i=t.calcdata,a=r._subplots[t0],n=0;nm/2){var g=h.split("|").join("
");d.text(g).attr("data-unformatted",g).call(SXe.convertToTspans,e),p=_he.bBox(d.node())}d.attr("transform",yhe(-3,-p.height+8)),f.insert("rect",".static-attribution").attr({x:-p.width-6,y:-p.height-3,width:p.width+6,height:p.height+3,fill:"rgba(255, 255, 255, 0.75)"});var y=1;p.width+6>m&&(y=m/(p.width+6));var x=[i.l+i.w*o.x[1],i.t+i.h*(1-o.y[0])];f.attr("transform",yhe(x[0],x[1])+AXe(y))}};nl.updateFx=function(e){for(var t=e._fullLayout,r=t._subplots[t0],i=0;i{"use strict";xhe.exports={attributes:Q5(),supplyDefaults:Ree(),colorbar:AS(),formatLabels:z9(),calc:Gee(),plot:tte(),hoverPoints:n4().hoverPoints,eventData:nte(),selectPoints:ste(),styleOnSelect:function(e,t){if(t){var r=t[0].trace;r._glTrace.update(t)}},moduleType:"trace",name:"scattermap",basePlotModule:B6(),categories:["map","gl","symbols","showLegend","scatter-like"],meta:{}}});var Ahe=X((Cht,whe)=>{"use strict";whe.exports=bhe()});var dP=X((Fht,Dhe)=>{"use strict";var{hovertemplateAttrs:kXe,templatefallbackAttrs:CXe}=tc(),i0=F9(),FXe=eh(),The=Wo(),PXe=ec().defaultLine,r0=Ca().extendFlat,Mhe=i0.marker.line;Dhe.exports=r0({locations:{valType:"data_array",editType:"calc"},locationmode:i0.locationmode,z:{valType:"data_array",editType:"calc"},geojson:r0({},i0.geojson,{}),featureidkey:i0.featureidkey,text:r0({},i0.text,{}),hovertext:r0({},i0.hovertext,{}),marker:{line:{color:r0({},Mhe.color,{dflt:PXe}),width:r0({},Mhe.width,{dflt:1}),editType:"calc"},opacity:{valType:"number",arrayOk:!0,min:0,max:1,dflt:1,editType:"style"},editType:"calc"},selected:{marker:{opacity:i0.selected.marker.opacity,editType:"plot"},editType:"plot"},unselected:{marker:{opacity:i0.unselected.marker.opacity,editType:"plot"},editType:"plot"},hoverinfo:r0({},The.hoverinfo,{editType:"calc",flags:["location","z","text","name"]}),hovertemplate:kXe(),hovertemplatefallback:CXe(),showlegend:r0({},The.showlegend,{dflt:!1})},FXe("",{cLetter:"z",editTypeOverride:"calc"}))});var pP=X((Pht,She)=>{"use strict";var Fh=dP(),IXe=eh(),{hovertemplateAttrs:LXe,templatefallbackAttrs:zXe}=tc(),RXe=Wo(),a0=Ca().extendFlat;She.exports=a0({locations:{valType:"data_array",editType:"calc"},z:{valType:"data_array",editType:"calc"},geojson:{valType:"any",editType:"calc"},featureidkey:a0({},Fh.featureidkey,{}),below:{valType:"string",editType:"plot"},text:Fh.text,hovertext:Fh.hovertext,marker:{line:{color:a0({},Fh.marker.line.color,{editType:"plot"}),width:a0({},Fh.marker.line.width,{editType:"plot"}),editType:"calc"},opacity:a0({},Fh.marker.opacity,{editType:"plot"}),editType:"calc"},selected:{marker:{opacity:a0({},Fh.selected.marker.opacity,{editType:"plot"}),editType:"plot"},editType:"plot"},unselected:{marker:{opacity:a0({},Fh.unselected.marker.opacity,{editType:"plot"}),editType:"plot"},editType:"plot"},hoverinfo:Fh.hoverinfo,hovertemplate:LXe({},{keys:["properties"]}),hovertemplatefallback:zXe(),showlegend:a0({},RXe.showlegend,{dflt:!1})},IXe("",{cLetter:"z",editTypeOverride:"calc"}))});var khe=X((Iht,Ehe)=>{"use strict";var t_=tt(),BXe=Q0(),qXe=pP();Ehe.exports=function(t,r,i,a){function n(c,h){return t_.coerce(t,r,qXe,c,h)}var o=n("locations"),s=n("z"),l=n("geojson");if(!t_.isArrayOrTypedArray(o)||!o.length||!t_.isArrayOrTypedArray(s)||!s.length||!(typeof l=="string"&&l!==""||t_.isPlainObject(l))){r.visible=!1;return}n("featureidkey"),r._length=Math.min(o.length,s.length),n("below"),n("text"),n("hovertext"),n("hovertemplate"),n("hovertemplatefallback");var u=n("marker.line.width");u&&n("marker.line.color"),n("marker.opacity"),BXe(t,r,a,n,{prefix:"",cLetter:"z"}),t_.coerceSelectionMarkerOpacity(r,n)}});var mP=X((Lht,Che)=>{"use strict";Che.exports={min:"zmin",max:"zmax"}});var Lhe=X((zht,Ihe)=>{"use strict";var Fhe=Nr(),OXe=(Ji(),lt(ua)).BADNUM,NXe=Zv(),VXe=Yg(),UXe=l5();function Phe(e){return e&&typeof e=="string"}Ihe.exports=function(t,r){var i=r._length,a=new Array(i),n;r.geojson?n=function(c){return Phe(c)||Fhe(c)}:n=Phe;for(var o=0;o{"use strict";var GXe=Nr(),Ph=tt(),jXe=c1(),$Xe=xi(),HXe=e4().makeBlank,zhe=e_();function ZXe(e){var t=e[0].trace,r=t.visible===!0&&t._length!==0,i={layout:{visibility:"none"},paint:{}},a={layout:{visibility:"none"},paint:{}},n=t._opts={fill:i,line:a,geojson:HXe()};if(!r)return n;var o=zhe.extractTraceFeature(e);if(!o)return n;var s=jXe.makeColorScaleFuncFromTrace(t),l=t.marker,u=l.line||{},c;Ph.isArrayOrTypedArray(l.opacity)&&(c=function(x){var b=x.mo;return GXe(b)?+Ph.constrain(b,0,1):0});var h;Ph.isArrayOrTypedArray(u.color)&&(h=function(x){return x.mlc});var f;Ph.isArrayOrTypedArray(u.width)&&(f=function(x){return x.mlw});for(var d=0;d{"use strict";var Ohe=vP().convert,YXe=vP().convertOnSelect,qhe=Pf().traceLayerPrefix;function Nhe(e,t){this.type="choroplethmap",this.subplot=e,this.uid=t,this.sourceId="source-"+t,this.layerList=[["fill",qhe+t+"-fill"],["line",qhe+t+"-line"]],this.below=null}var Vm=Nhe.prototype;Vm.update=function(e){this._update(Ohe(e)),e[0].trace._glTrace=this};Vm.updateOnSelect=function(e){this._update(YXe(e))};Vm._update=function(e){var t=this.subplot,r=this.layerList,i=t.belowLookup["trace-"+this.uid];t.map.getSource(this.sourceId).setData(e.geojson),i!==this.below&&(this._removeLayers(),this._addLayers(e,i),this.below=i);for(var a=0;a=0;r--)e.removeLayer(t[r][1])};Vm.dispose=function(){var e=this.subplot.map;this._removeLayers(),e.removeSource(this.sourceId)};Vhe.exports=function(t,r){var i=r[0].trace,a=new Nhe(t,i.uid),n=a.sourceId,o=Ohe(r),s=a.below=t.belowLookup["trace-"+i.uid];return t.map.addSource(n,{type:"geojson",data:o.geojson}),a._addLayers(o,s),r[0].trace._glTrace=a,a}});var jhe=X((qht,Ghe)=>{"use strict";var WXe=ra(),XXe=dP(),KXe=tt().fillText,{ANTIMERIDIAN_LON_SHIFT:JXe}=e_();Ghe.exports=function(t,r,i){var a=t.cd,n=a[0].trace,o=t.subplot,s,l,u,c,h=[r,i];let f=[r+JXe,i];for(l=0;l")}}});var Hhe=X((Oht,$he)=>{"use strict";$he.exports=function(t,r,i,a,n){t.location=r.location,t.z=r.z;var o=a[n];return o.fIn&&o.fIn.properties&&(t.properties=o.fIn.properties),t.ct=o.ct,t}});var Yhe=X((Nht,Zhe)=>{"use strict";Zhe.exports=function(t,r){var i=t.cd,a=t.xaxis,n=t.yaxis,o=[],s,l,u,c,h;if(r===!1)for(s=0;s{"use strict";Whe.exports={attributes:pP(),supplyDefaults:khe(),colorbar:mP(),calc:Lhe(),plot:Uhe(),hoverPoints:jhe(),eventData:Hhe(),selectPoints:Yhe(),styleOnSelect:function(e,t){if(t){var r=t[0].trace;r._glTrace.updateOnSelect(t)}},getBelow:function(e,t){for(var r=t.getMapLayers(),i=r.length-2;i>=0;i--){var a=r[i].id;if(typeof a=="string"&&a.indexOf("water")===0){for(var n=i+1;n{"use strict";Khe.exports=Xhe()});var yP=X((Ght,efe)=>{"use strict";var eKe=eh(),{hovertemplateAttrs:tKe,templatefallbackAttrs:rKe}=tc(),Qhe=Wo(),q6=Q5(),gP=Ca().extendFlat;efe.exports=gP({lon:q6.lon,lat:q6.lat,z:{valType:"data_array",editType:"calc"},radius:{valType:"number",editType:"plot",arrayOk:!0,min:1,dflt:30},below:{valType:"string",editType:"plot"},text:q6.text,hovertext:q6.hovertext,hoverinfo:gP({},Qhe.hoverinfo,{flags:["lon","lat","z","text","name"]}),hovertemplate:tKe(),hovertemplatefallback:rKe(),showlegend:gP({},Qhe.showlegend,{dflt:!1})},eKe("",{cLetter:"z",editTypeOverride:"calc"}))});var rfe=X((jht,tfe)=>{"use strict";var iKe=tt(),aKe=Q0(),nKe=yP();tfe.exports=function(t,r,i,a){function n(u,c){return iKe.coerce(t,r,nKe,u,c)}var o=n("lon")||[],s=n("lat")||[],l=Math.min(o.length,s.length);if(!l){r.visible=!1;return}r._length=l,n("z"),n("radius"),n("below"),n("text"),n("hovertext"),n("hovertemplate"),n("hovertemplatefallback"),aKe(t,r,a,n,{prefix:"",cLetter:"z"})}});var nfe=X(($ht,afe)=>{"use strict";var _P=Nr(),oKe=tt().isArrayOrTypedArray,xP=(Ji(),lt(ua)).BADNUM,sKe=Zv(),ife=tt()._;afe.exports=function(t,r){for(var i=r._length,a=new Array(i),n=r.z,o=oKe(n)&&n.length,s=0;s{"use strict";var lKe=Nr(),bP=tt(),ofe=Vr(),sfe=c1(),lfe=(Ji(),lt(ua)).BADNUM,uKe=e4().makeBlank;ufe.exports=function(t){var r=t[0].trace,i=r.visible===!0&&r._length!==0,a={layout:{visibility:"none"},paint:{}},n=r._opts={heatmap:a,geojson:uKe()};if(!i)return n;var o=[],s,l=r.z,u=r.radius,c=bP.isArrayOrTypedArray(l)&&l.length,h=bP.isArrayOrTypedArray(u);for(s=0;s0?+u[s]:0),o.push({type:"Feature",geometry:{type:"Point",coordinates:d},properties:p})}}var g=sfe.extractOpts(r),y=g.reversescale?sfe.flipScale(g.colorscale):g.colorscale,x=y[0][1],b=ofe.opacity(x)<1?x:ofe.addOpacity(x,0),_=["interpolate",["linear"],["heatmap-density"],0,b];for(s=1;s{"use strict";var hfe=cfe(),cKe=Pf().traceLayerPrefix;function ffe(e,t){this.type="densitymap",this.subplot=e,this.uid=t,this.sourceId="source-"+t,this.layerList=[["heatmap",cKe+t+"-heatmap"]],this.below=null}var O6=ffe.prototype;O6.update=function(e){var t=this.subplot,r=this.layerList,i=hfe(e),a=t.belowLookup["trace-"+this.uid];t.map.getSource(this.sourceId).setData(i.geojson),a!==this.below&&(this._removeLayers(),this._addLayers(i,a),this.below=a);for(var n=0;n=0;r--)e.removeLayer(t[r][1])};O6.dispose=function(){var e=this.subplot.map;this._removeLayers(),e.removeSource(this.sourceId)};dfe.exports=function(t,r){var i=r[0].trace,a=new ffe(t,i.uid),n=a.sourceId,o=hfe(r),s=a.below=t.belowLookup["trace-"+i.uid];return t.map.addSource(n,{type:"geojson",data:o.geojson}),a._addLayers(o,s),a}});var vfe=X((Yht,mfe)=>{"use strict";var hKe=ra(),fKe=n4().hoverPoints,dKe=n4().getExtraText;mfe.exports=function(t,r,i){var a=fKe(t,r,i);if(a){var n=a[0],o=n.cd,s=o[0].trace,l=o[n.index];if(delete n.color,"z"in l){var u=n.subplot.mockAxis;n.z=l.z,n.zLabel=hKe.tickText(u,u.c2l(l.z),"hover").text}return n.extraText=dKe(s,l,o[0].t.labels),[n]}}});var yfe=X((Wht,gfe)=>{"use strict";gfe.exports=function(t,r){return t.lon=r.lon,t.lat=r.lat,t.z=r.z,t}});var xfe=X((Xht,_fe)=>{"use strict";_fe.exports={attributes:yP(),supplyDefaults:rfe(),colorbar:mP(),formatLabels:z9(),calc:nfe(),plot:pfe(),hoverPoints:vfe(),eventData:yfe(),getBelow:function(e,t){for(var r=t.getMapLayers(),i=0;i{"use strict";bfe.exports=xfe()});var go=X((Jht,Tfe)=>{"use strict";var Afe=Object.getOwnPropertySymbols,pKe=Object.prototype.hasOwnProperty,mKe=Object.prototype.propertyIsEnumerable;function vKe(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function gKe(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;var i=Object.getOwnPropertyNames(t).map(function(n){return t[n]});if(i.join("")!=="0123456789")return!1;var a={};return"abcdefghijklmnopqrst".split("").forEach(function(n){a[n]=n}),Object.keys(Object.assign({},a)).join("")==="abcdefghijklmnopqrst"}catch(n){return!1}}Tfe.exports=gKe()?Object.assign:function(e,t){for(var r,i=vKe(e),a,n=1;n{var V6=go();function Mfe(){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={}}V6(Mfe.prototype,{instance:function(e,t){e=(e||"gregorian").toLowerCase(),t=t||"";var r=this._localCals[e+"-"+t];if(!r&&this.calendars[e]&&(r=new this.calendars[e](t),this._localCals[e+"-"+t]=r),!r)throw(this.local.invalidCalendar||this.regionalOptions[""].invalidCalendar).replace(/\{0\}/,e);return r},newDate:function(e,t,r,i,a){return i=(e!=null&&e.year?e.calendar():typeof i=="string"?this.instance(i,a):i)||this.instance(),i.newDate(e,t,r)},substituteDigits:function(e){return function(t){return(t+"").replace(/[0-9]/g,function(r){return e[r]})}},substituteChineseDigits:function(e,t){return function(r){for(var i="",a=0;r>0;){var n=r%10;i=(n===0?"":e[n]+t[a])+i,a++,r=Math.floor(r/10)}return i.indexOf(e[1]+t[1])===0&&(i=i.substr(1)),i||e[0]}}});function wP(e,t,r,i){if(this._calendar=e,this._year=t,this._month=r,this._day=i,this._calendar._validateLevel===0&&!this._calendar.isValid(this._year,this._month,this._day))throw(Ir.local.invalidDate||Ir.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name)}function N6(e,t){return e=""+e,"000000".substring(0,t-e.length)+e}V6(wP.prototype,{newDate:function(e,t,r){return this._calendar.newDate(e==null?this:e,t,r)},year:function(e){return arguments.length===0?this._year:this.set(e,"y")},month:function(e){return arguments.length===0?this._month:this.set(e,"m")},day:function(e){return arguments.length===0?this._day:this.set(e,"d")},date:function(e,t,r){if(!this._calendar.isValid(e,t,r))throw(Ir.local.invalidDate||Ir.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name);return this._year=e,this._month=t,this._day=r,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(e,t){return this._calendar.add(this,e,t)},set:function(e,t){return this._calendar.set(this,e,t)},compareTo:function(e){if(this._calendar.name!==e._calendar.name)throw(Ir.local.differentCalendars||Ir.regionalOptions[""].differentCalendars).replace(/\{0\}/,this._calendar.local.name).replace(/\{1\}/,e._calendar.local.name);var t=this._year!==e._year?this._year-e._year:this._month!==e._month?this.monthOfYear()-e.monthOfYear():this._day-e._day;return t===0?0:t<0?-1:1},calendar:function(){return this._calendar},toJD:function(){return this._calendar.toJD(this)},fromJD:function(e){return this._calendar.fromJD(e)},toJSDate:function(){return this._calendar.toJSDate(this)},fromJSDate:function(e){return this._calendar.fromJSDate(e)},toString:function(){return(this.year()<0?"-":"")+N6(Math.abs(this.year()),4)+"-"+N6(this.month(),2)+"-"+N6(this.day(),2)}});function AP(){this.shortYearCutoff="+10"}V6(AP.prototype,{_validateLevel:0,newDate:function(e,t,r){return e==null?this.today():(e.year&&(this._validate(e,t,r,Ir.local.invalidDate||Ir.regionalOptions[""].invalidDate),r=e.day(),t=e.month(),e=e.year()),new wP(this,e,t,r))},today:function(){return this.fromJSDate(new Date)},epoch:function(e){var t=this._validate(e,this.minMonth,this.minDay,Ir.local.invalidYear||Ir.regionalOptions[""].invalidYear);return t.year()<0?this.local.epochs[0]:this.local.epochs[1]},formatYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,Ir.local.invalidYear||Ir.regionalOptions[""].invalidYear);return(t.year()<0?"-":"")+N6(Math.abs(t.year()),4)},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Ir.local.invalidYear||Ir.regionalOptions[""].invalidYear),12},monthOfYear:function(e,t){var r=this._validate(e,t,this.minDay,Ir.local.invalidMonth||Ir.regionalOptions[""].invalidMonth);return(r.month()+this.monthsInYear(r)-this.firstMonth)%this.monthsInYear(r)+this.minMonth},fromMonthOfYear:function(e,t){var r=(t+this.firstMonth-2*this.minMonth)%this.monthsInYear(e)+this.minMonth;return this._validate(e,r,this.minDay,Ir.local.invalidMonth||Ir.regionalOptions[""].invalidMonth),r},daysInYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,Ir.local.invalidYear||Ir.regionalOptions[""].invalidYear);return this.leapYear(t)?366:365},dayOfYear:function(e,t,r){var i=this._validate(e,t,r,Ir.local.invalidDate||Ir.regionalOptions[""].invalidDate);return i.toJD()-this.newDate(i.year(),this.fromMonthOfYear(i.year(),this.minMonth),this.minDay).toJD()+1},daysInWeek:function(){return 7},dayOfWeek:function(e,t,r){var i=this._validate(e,t,r,Ir.local.invalidDate||Ir.regionalOptions[""].invalidDate);return(Math.floor(this.toJD(i))+2)%this.daysInWeek()},extraInfo:function(e,t,r){return this._validate(e,t,r,Ir.local.invalidDate||Ir.regionalOptions[""].invalidDate),{}},add:function(e,t,r){return this._validate(e,this.minMonth,this.minDay,Ir.local.invalidDate||Ir.regionalOptions[""].invalidDate),this._correctAdd(e,this._add(e,t,r),t,r)},_add:function(e,t,r){if(this._validateLevel++,r==="d"||r==="w"){var i=e.toJD()+t*(r==="w"?this.daysInWeek():1),a=e.calendar().fromJD(i);return this._validateLevel--,[a.year(),a.month(),a.day()]}try{var n=e.year()+(r==="y"?t:0),o=e.monthOfYear()+(r==="m"?t:0),a=e.day(),s=function(c){for(;oh-1+c.minMonth;)n++,o-=h,h=c.monthsInYear(n)};r==="y"?(e.month()!==this.fromMonthOfYear(n,o)&&(o=this.newDate(n,e.month(),this.minDay).monthOfYear()),o=Math.min(o,this.monthsInYear(n)),a=Math.min(a,this.daysInMonth(n,this.fromMonthOfYear(n,o)))):r==="m"&&(s(this),a=Math.min(a,this.daysInMonth(n,this.fromMonthOfYear(n,o))));var l=[n,this.fromMonthOfYear(n,o),a];return this._validateLevel--,l}catch(u){throw this._validateLevel--,u}},_correctAdd:function(e,t,r,i){if(!this.hasYearZero&&(i==="y"||i==="m")&&(t[0]===0||e.year()>0!=t[0]>0)){var a={y:[1,1,"y"],m:[1,this.monthsInYear(-1),"m"],w:[this.daysInWeek(),this.daysInYear(-1),"d"],d:[1,this.daysInYear(-1),"d"]}[i],n=r<0?-1:1;t=this._add(e,r*a[0]+n*a[1],a[2])}return e.date(t[0],t[1],t[2])},set:function(e,t,r){this._validate(e,this.minMonth,this.minDay,Ir.local.invalidDate||Ir.regionalOptions[""].invalidDate);var i=r==="y"?t:e.year(),a=r==="m"?t:e.month(),n=r==="d"?t:e.day();return(r==="y"||r==="m")&&(n=Math.min(n,this.daysInMonth(i,a))),e.date(i,a,n)},isValid:function(e,t,r){this._validateLevel++;var i=this.hasYearZero||e!==0;if(i){var a=this.newDate(e,t,this.minDay);i=t>=this.minMonth&&t-this.minMonth=this.minDay&&r-this.minDay13.5?13:1),u=a-(l>2.5?4716:4715);return u<=0&&u--,this.newDate(u,l,s)},toJSDate:function(e,t,r){var i=this._validate(e,t,r,Ir.local.invalidDate||Ir.regionalOptions[""].invalidDate),a=new Date(i.year(),i.month()-1,i.day());return a.setHours(0),a.setMinutes(0),a.setSeconds(0),a.setMilliseconds(0),a.setHours(a.getHours()>12?a.getHours()+2:0),a},fromJSDate:function(e){return this.newDate(e.getFullYear(),e.getMonth()+1,e.getDate())}});var Ir=Dfe.exports=new Mfe;Ir.cdate=wP;Ir.baseCalendar=AP;Ir.calendars.gregorian=TP});var Sfe=X(()=>{var MP=go(),qn=yo();MP(qn.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"});qn.local=qn.regionalOptions[""];MP(qn.cdate.prototype,{formatDate:function(e,t){return typeof e!="string"&&(t=e,e=""),this._calendar.formatDate(e||"",this,t)}});MP(qn.baseCalendar.prototype,{UNIX_EPOCH:qn.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:1440*60,TICKS_EPOCH:qn.instance().jdEpoch,TICKS_PER_DAY:1440*60*1e7,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(e,t,r){if(typeof e!="string"&&(r=t,t=e,e=""),!t)return"";if(t.calendar()!==this)throw qn.local.invalidFormat||qn.regionalOptions[""].invalidFormat;e=e||this.local.dateFormat,r=r||{};for(var i=r.dayNamesShort||this.local.dayNamesShort,a=r.dayNames||this.local.dayNames,n=r.monthNumbers||this.local.monthNumbers,o=r.monthNamesShort||this.local.monthNamesShort,s=r.monthNames||this.local.monthNames,l=r.calculateWeek||this.local.calculateWeek,u=function(_,A){for(var T=1;b+T1},c=function(_,A,T,M){var S=""+A;if(u(_,M))for(;S.length1},x=function(B,L){var z=y(B,L),q=[2,3,z?4:2,z?4:2,10,11,20]["oyYJ@!".indexOf(B)+1],V=new RegExp("^-?\\d{1,"+q+"}"),j=t.substring(S).match(V);if(!j)throw(qn.local.missingNumberAt||qn.regionalOptions[""].missingNumberAt).replace(/\{0\}/,S);return S+=j[0].length,parseInt(j[0],10)},b=this,_=function(){if(typeof s=="function"){y("m");var B=s.call(b,t.substring(S));return S+=B.length,B}return x("m")},A=function(B,L,z,q){for(var V=y(B,q)?z:L,j=0;j-1){f=1,d=p;for(var I=this.daysInMonth(h,f);d>I;I=this.daysInMonth(h,f))f++,d-=I}return c>-1?this.fromJD(c):this.newDate(h,f,d)},determineDate:function(e,t,r,i,a){r&&typeof r!="object"&&(a=i,i=r,r=null),typeof i!="string"&&(a=i,i="");var n=this,o=function(s){try{return n.parseDate(i,s,a)}catch(h){}s=s.toLowerCase();for(var l=(s.match(/^c/)&&r?r.newDate():null)||n.today(),u=/([+-]?[0-9]+)\s*(d|w|m|y)?/g,c=u.exec(s);c;)l.add(parseInt(c[1],10),c[2]||"d"),c=u.exec(s);return l};return t=t?t.newDate():null,e=e==null?t:typeof e=="string"?o(e):typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?t:n.today().add(e,"d"):n.newDate(e),e}})});var Efe=X(()=>{var n0=yo(),yKe=go(),DP=n0.instance();function U6(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}U6.prototype=new n0.baseCalendar;yKe(U6.prototype,{name:"Chinese",jdEpoch:17214255e-1,hasYearZero:!1,minMonth:0,firstMonth:0,minDay:1,regionalOptions:{"":{name:"Chinese",epochs:["BEC","EC"],monthNumbers:function(e,t){if(typeof e=="string"){var r=e.match(xKe);return r?r[0]:""}var i=this._validateYear(e),a=e.month(),n=""+this.toChineseMonth(i,a);return t&&n.length<2&&(n="0"+n),this.isIntercalaryMonth(i,a)&&(n+="i"),n},monthNames:function(e){if(typeof e=="string"){var t=e.match(bKe);return t?t[0]:""}var r=this._validateYear(e),i=e.month(),a=this.toChineseMonth(r,i),n=["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"][a-1];return this.isIntercalaryMonth(r,i)&&(n="\u95F0"+n),n},monthNamesShort:function(e){if(typeof e=="string"){var t=e.match(wKe);return t?t[0]:""}var r=this._validateYear(e),i=e.month(),a=this.toChineseMonth(r,i),n=["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"][a-1];return this.isIntercalaryMonth(r,i)&&(n="\u95F0"+n),n},parseMonth:function(e,t){e=this._validateYear(e);var r=parseInt(t),i;if(isNaN(r))t[0]==="\u95F0"&&(i=!0,t=t.substring(1)),t[t.length-1]==="\u6708"&&(t=t.substring(0,t.length-1)),r=1+["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"].indexOf(t);else{var a=t[t.length-1];i=a==="i"||a==="I"}var n=this.toMonthIndex(e,r,i);return n},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(e,t){if(e.year&&(e=e.year()),typeof e!="number"||e<1888||e>2111)throw t.replace(/\{0\}/,this.local.name);return e},toMonthIndex:function(e,t,r){var i=this.intercalaryMonth(e),a=r&&t!==i;if(a||t<1||t>12)throw n0.local.invalidMonth.replace(/\{0\}/,this.local.name);var n;return i?!r&&t<=i?n=t-1:n=t:n=t-1,n},toChineseMonth:function(e,t){e.year&&(e=e.year(),t=e.month());var r=this.intercalaryMonth(e),i=r?12:11;if(t<0||t>i)throw n0.local.invalidMonth.replace(/\{0\}/,this.local.name);var a;return r?t>13;return r},isIntercalaryMonth:function(e,t){e.year&&(e=e.year(),t=e.month());var r=this.intercalaryMonth(e);return!!r&&r===t},leapYear:function(e){return this.intercalaryMonth(e)!==0},weekOfYear:function(e,t,r){var i=this._validateYear(e,n0.local.invalidyear),a=s0[i-s0[0]],n=a>>9&4095,o=a>>5&15,s=a&31,l;l=DP.newDate(n,o,s),l.add(4-(l.dayOfWeek()||7),"d");var u=this.toJD(e,t,r)-l.toJD();return 1+Math.floor(u/7)},monthsInYear:function(e){return this.leapYear(e)?13:12},daysInMonth:function(e,t){e.year&&(t=e.month(),e=e.year()),e=this._validateYear(e);var r=o0[e-o0[0]],i=r>>13,a=i?12:11;if(t>a)throw n0.local.invalidMonth.replace(/\{0\}/,this.local.name);var n=r&1<<12-t?30:29;return n},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(e,t,r){var i=this._validate(e,n,r,n0.local.invalidDate);e=this._validateYear(i.year()),t=i.month(),r=i.day();var a=this.isIntercalaryMonth(e,t),n=this.toChineseMonth(e,t),o=TKe(e,n,r,a);return DP.toJD(o.year,o.month,o.day)},fromJD:function(e){var t=DP.fromJD(e),r=AKe(t.year(),t.month(),t.day()),i=this.toMonthIndex(r.year,r.month,r.isIntercalary);return this.newDate(r.year,i,r.day)},fromString:function(e){var t=e.match(_Ke),r=this._validateYear(+t[1]),i=+t[2],a=!!t[3],n=this.toMonthIndex(r,i,a),o=+t[4];return this.newDate(r,n,o)},add:function(e,t,r){var i=e.year(),a=e.month(),n=this.isIntercalaryMonth(i,a),o=this.toChineseMonth(i,a),s=Object.getPrototypeOf(U6.prototype).add.call(this,e,t,r);if(r==="y"){var l=s.year(),u=s.month(),c=this.isIntercalaryMonth(l,o),h=n&&c?this.toMonthIndex(l,o,!0):this.toMonthIndex(l,o,!1);h!==u&&s.month(h)}return s}});var _Ke=/^\s*(-?\d\d\d\d|\d\d)[-/](\d?\d)([iI]?)[-/](\d?\d)/m,xKe=/^\d?\d[iI]?/m,bKe=/^闰?十?[一二三四五六七八九]?月/m,wKe=/^闰?十?[一二三四五六七八九]?/m;n0.calendars.chinese=U6;var o0=[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],s0=[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 AKe(e,t,r,i){var a,n;if(typeof e=="object")a=e,n=t||{};else{var o=typeof e=="number"&&e>=1888&&e<=2111;if(!o)throw new Error("Solar year outside range 1888-2111");var s=typeof t=="number"&&t>=1&&t<=12;if(!s)throw new Error("Solar month outside range 1 - 12");var l=typeof r=="number"&&r>=1&&r<=31;if(!l)throw new Error("Solar day outside range 1 - 31");a={year:e,month:t,day:r},n=i||{}}var u=s0[a.year-s0[0]],c=a.year<<9|a.month<<5|a.day;n.year=c>=u?a.year:a.year-1,u=s0[n.year-s0[0]];var h=u>>9&4095,f=u>>5&15,d=u&31,p,m=new Date(h,f-1,d),g=new Date(a.year,a.month-1,a.day);p=Math.round((g-m)/(24*3600*1e3));var y=o0[n.year-o0[0]],x;for(x=0;x<13;x++){var b=y&1<<12-x?30:29;if(p>13;return!_||x<_?(n.isIntercalary=!1,n.month=1+x):x===_?(n.isIntercalary=!0,n.month=x):(n.isIntercalary=!1,n.month=x),n.day=1+p,n}function TKe(e,t,r,i,a){var n,o;if(typeof e=="object")o=e,n=t||{};else{var s=typeof e=="number"&&e>=1888&&e<=2111;if(!s)throw new Error("Lunar year outside range 1888-2111");var l=typeof t=="number"&&t>=1&&t<=12;if(!l)throw new Error("Lunar month outside range 1 - 12");var u=typeof r=="number"&&r>=1&&r<=30;if(!u)throw new Error("Lunar day outside range 1 - 30");var c;typeof i=="object"?(c=!1,n=i):(c=!!i,n=a||{}),o={year:e,month:t,day:r,isIntercalary:c}}var h;h=o.day-1;var f=o0[o.year-o0[0]],d=f>>13,p;d&&(o.month>d||o.isIntercalary)?p=o.month:p=o.month-1;for(var m=0;m>9&4095,b=y>>5&15,_=y&31,A=new Date(x,b-1,_+h);return n.year=A.getFullYear(),n.month=1+A.getMonth(),n.day=A.getDate(),n}});var kfe=X(()=>{var cp=yo(),MKe=go();function SP(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}SP.prototype=new cp.baseCalendar;MKe(SP.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(r){var t=this._validate(r,this.minMonth,this.minDay,cp.local.invalidYear),r=t.year()+(t.year()<0?1:0);return r%4===3||r%4===-1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,cp.local.invalidYear||cp.regionalOptions[""].invalidYear),13},weekOfYear:function(e,t,r){var i=this.newDate(e,t,r);return i.add(-i.dayOfWeek(),"d"),Math.floor((i.dayOfYear()-1)/7)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,cp.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===13&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(e,t,r){var i=this._validate(e,t,r,cp.local.invalidDate);return e=i.year(),e<0&&e++,i.day()+(i.month()-1)*30+(e-1)*365+Math.floor(e/4)+this.jdEpoch-1},fromJD:function(e){var t=Math.floor(e)+.5-this.jdEpoch,r=Math.floor((t-Math.floor((t+366)/1461))/365)+1;r<=0&&r--,t=Math.floor(e)+.5-this.newDate(r,1,1).toJD();var i=Math.floor(t/30)+1,a=t-(i-1)*30+1;return this.newDate(r,i,a)}});cp.calendars.coptic=SP});var Cfe=X(()=>{var Ih=yo(),DKe=go();function EP(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}EP.prototype=new Ih.baseCalendar;DKe(EP.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(e){return this._validate(e,this.minMonth,this.minDay,Ih.local.invalidYear),!1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Ih.local.invalidYear),13},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Ih.local.invalidYear),400},weekOfYear:function(e,t,r){var i=this.newDate(e,t,r);return i.add(-i.dayOfWeek(),"d"),Math.floor((i.dayOfYear()-1)/8)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,Ih.local.invalidMonth);return this.daysPerMonth[r.month()-1]},daysInWeek:function(){return 8},dayOfWeek:function(e,t,r){var i=this._validate(e,t,r,Ih.local.invalidDate);return(i.day()+1)%8},weekDay:function(e,t,r){var i=this.dayOfWeek(e,t,r);return i>=2&&i<=6},extraInfo:function(e,t,r){var i=this._validate(e,t,r,Ih.local.invalidDate);return{century:SKe[Math.floor((i.year()-1)/100)+1]||""}},toJD:function(e,t,r){var i=this._validate(e,t,r,Ih.local.invalidDate);return e=i.year()+(i.year()<0?1:0),t=i.month(),r=i.day(),r+(t>1?16:0)+(t>2?(t-2)*32:0)+(e-1)*400+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e+.5)-Math.floor(this.jdEpoch)-1;var t=Math.floor(e/400)+1;e-=(t-1)*400,e+=e>15?16:0;var r=Math.floor(e/32)+1,i=e-(r-1)*32+1;return this.newDate(t<=0?t-1:t,r,i)}});var SKe={20:"Fruitbat",21:"Anchovy"};Ih.calendars.discworld=EP});var Ffe=X(()=>{var hp=yo(),EKe=go();function kP(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}kP.prototype=new hp.baseCalendar;EKe(kP.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(r){var t=this._validate(r,this.minMonth,this.minDay,hp.local.invalidYear),r=t.year()+(t.year()<0?1:0);return r%4===3||r%4===-1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,hp.local.invalidYear||hp.regionalOptions[""].invalidYear),13},weekOfYear:function(e,t,r){var i=this.newDate(e,t,r);return i.add(-i.dayOfWeek(),"d"),Math.floor((i.dayOfYear()-1)/7)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,hp.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===13&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(e,t,r){var i=this._validate(e,t,r,hp.local.invalidDate);return e=i.year(),e<0&&e++,i.day()+(i.month()-1)*30+(e-1)*365+Math.floor(e/4)+this.jdEpoch-1},fromJD:function(e){var t=Math.floor(e)+.5-this.jdEpoch,r=Math.floor((t-Math.floor((t+366)/1461))/365)+1;r<=0&&r--,t=Math.floor(e)+.5-this.newDate(r,1,1).toJD();var i=Math.floor(t/30)+1,a=t-(i-1)*30+1;return this.newDate(r,i,a)}});hp.calendars.ethiopian=kP});var Pfe=X(()=>{var l0=yo(),kKe=go();function CP(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}CP.prototype=new l0.baseCalendar;kKe(CP.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(e){var t=this._validate(e,this.minMonth,this.minDay,l0.local.invalidYear);return this._leapYear(t.year())},_leapYear:function(e){return e=e<0?e+1:e,G6(e*7+1,19)<7},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,l0.local.invalidYear),this._leapYear(e.year?e.year():e)?13:12},weekOfYear:function(e,t,r){var i=this.newDate(e,t,r);return i.add(-i.dayOfWeek(),"d"),Math.floor((i.dayOfYear()-1)/7)+1},daysInYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,l0.local.invalidYear);return e=t.year(),this.toJD(e===-1?1:e+1,7,1)-this.toJD(e,7,1)},daysInMonth:function(e,t){return e.year&&(t=e.month(),e=e.year()),this._validate(e,t,this.minDay,l0.local.invalidMonth),t===12&&this.leapYear(e)||t===8&&G6(this.daysInYear(e),10)===5?30:t===9&&G6(this.daysInYear(e),10)===3?29:this.daysPerMonth[t-1]},weekDay:function(e,t,r){return this.dayOfWeek(e,t,r)!==6},extraInfo:function(e,t,r){var i=this._validate(e,t,r,l0.local.invalidDate);return{yearType:(this.leapYear(i)?"embolismic":"common")+" "+["deficient","regular","complete"][this.daysInYear(i)%10-3]}},toJD:function(e,t,r){var i=this._validate(e,t,r,l0.local.invalidDate);e=i.year(),t=i.month(),r=i.day();var a=e<=0?e+1:e,n=this.jdEpoch+this._delay1(a)+this._delay2(a)+r+1;if(t<7){for(var o=7;o<=this.monthsInYear(e);o++)n+=this.daysInMonth(e,o);for(var o=1;o=this.toJD(t===-1?1:t+1,7,1);)t++;for(var r=ethis.toJD(t,r,this.daysInMonth(t,r));)r++;var i=e-this.toJD(t,r,1)+1;return this.newDate(t,r,i)}});function G6(e,t){return e-t*Math.floor(e/t)}l0.calendars.hebrew=CP});var Ife=X(()=>{var r_=yo(),CKe=go();function FP(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}FP.prototype=new r_.baseCalendar;CKe(FP.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\u012Bs","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(e){var t=this._validate(e,this.minMonth,this.minDay,r_.local.invalidYear);return(t.year()*11+14)%30<11},weekOfYear:function(e,t,r){var i=this.newDate(e,t,r);return i.add(-i.dayOfWeek(),"d"),Math.floor((i.dayOfYear()-1)/7)+1},daysInYear:function(e){return this.leapYear(e)?355:354},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,r_.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===12&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return this.dayOfWeek(e,t,r)!==5},toJD:function(e,t,r){var i=this._validate(e,t,r,r_.local.invalidDate);return e=i.year(),t=i.month(),r=i.day(),e=e<=0?e+1:e,r+Math.ceil(29.5*(t-1))+(e-1)*354+Math.floor((3+11*e)/30)+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e)+.5;var t=Math.floor((30*(e-this.jdEpoch)+10646)/10631);t=t<=0?t-1:t;var r=Math.min(12,Math.ceil((e-29-this.toJD(t,1,1))/29.5)+1),i=e-this.toJD(t,r,1)+1;return this.newDate(t,r,i)}});r_.calendars.islamic=FP});var Lfe=X(()=>{var i_=yo(),FKe=go();function PP(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}PP.prototype=new i_.baseCalendar;FKe(PP.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(r){var t=this._validate(r,this.minMonth,this.minDay,i_.local.invalidYear),r=t.year()<0?t.year()+1:t.year();return r%4===0},weekOfYear:function(e,t,r){var i=this.newDate(e,t,r);return i.add(4-(i.dayOfWeek()||7),"d"),Math.floor((i.dayOfYear()-1)/7)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,i_.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===2&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(e,t,r){var i=this._validate(e,t,r,i_.local.invalidDate);return e=i.year(),t=i.month(),r=i.day(),e<0&&e++,t<=2&&(e--,t+=12),Math.floor(365.25*(e+4716))+Math.floor(30.6001*(t+1))+r-1524.5},fromJD:function(e){var t=Math.floor(e+.5),r=t+1524,i=Math.floor((r-122.1)/365.25),a=Math.floor(365.25*i),n=Math.floor((r-a)/30.6001),o=n-Math.floor(n<14?1:13),s=i-Math.floor(o>2?4716:4715),l=r-a-Math.floor(30.6001*n);return s<=0&&s--,this.newDate(s,o,l)}});i_.calendars.julian=PP});var Rfe=X(()=>{var Kl=yo(),PKe=go();function LP(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}LP.prototype=new Kl.baseCalendar;PKe(LP.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(e){return this._validate(e,this.minMonth,this.minDay,Kl.local.invalidYear),!1},formatYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,Kl.local.invalidYear);e=t.year();var r=Math.floor(e/400);e=e%400,e+=e<0?400:0;var i=Math.floor(e/20);return r+"."+i+"."+e%20},forYear:function(e){if(e=e.split("."),e.length<3)throw"Invalid Mayan year";for(var t=0,r=0;r19||r>0&&i<0)throw"Invalid Mayan year";t=t*20+i}return t},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Kl.local.invalidYear),18},weekOfYear:function(e,t,r){return this._validate(e,t,r,Kl.local.invalidDate),0},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Kl.local.invalidYear),360},daysInMonth:function(e,t){return this._validate(e,t,this.minDay,Kl.local.invalidMonth),20},daysInWeek:function(){return 5},dayOfWeek:function(e,t,r){var i=this._validate(e,t,r,Kl.local.invalidDate);return i.day()},weekDay:function(e,t,r){return this._validate(e,t,r,Kl.local.invalidDate),!0},extraInfo:function(e,t,r){var i=this._validate(e,t,r,Kl.local.invalidDate),a=i.toJD(),n=this._toHaab(a),o=this._toTzolkin(a);return{haabMonthName:this.local.haabMonths[n[0]-1],haabMonth:n[0],haabDay:n[1],tzolkinDayName:this.local.tzolkinMonths[o[0]-1],tzolkinDay:o[0],tzolkinTrecena:o[1]}},_toHaab:function(e){e-=this.jdEpoch;var t=IP(e+8+340,365);return[Math.floor(t/20)+1,IP(t,20)]},_toTzolkin:function(e){return e-=this.jdEpoch,[zfe(e+20,20),zfe(e+4,13)]},toJD:function(e,t,r){var i=this._validate(e,t,r,Kl.local.invalidDate);return i.day()+i.month()*20+i.year()*360+this.jdEpoch},fromJD:function(e){e=Math.floor(e)+.5-this.jdEpoch;var t=Math.floor(e/360);e=e%360,e+=e<0?360:0;var r=Math.floor(e/20),i=e%20;return this.newDate(t,r,i)}});function IP(e,t){return e-t*Math.floor(e/t)}function zfe(e,t){return IP(e-1,t)+1}Kl.calendars.mayan=LP});var qfe=X(()=>{var fp=yo(),IKe=go();function zP(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}zP.prototype=new fp.baseCalendar;var Bfe=fp.instance("gregorian");IKe(zP.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(e){var t=this._validate(e,this.minMonth,this.minDay,fp.local.invalidYear||fp.regionalOptions[""].invalidYear);return Bfe.leapYear(t.year()+(t.year()<1?1:0)+1469)},weekOfYear:function(e,t,r){var i=this.newDate(e,t,r);return i.add(1-(i.dayOfWeek()||7),"d"),Math.floor((i.dayOfYear()-1)/7)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,fp.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===12&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(a,t,r){var i=this._validate(a,t,r,fp.local.invalidMonth),a=i.year();a<0&&a++;for(var n=i.day(),o=1;o=this.toJD(t+1,1,1);)t++;for(var r=e-Math.floor(this.toJD(t,1,1)+.5)+1,i=1;r>this.daysInMonth(t,i);)r-=this.daysInMonth(t,i),i++;return this.newDate(t,i,r)}});fp.calendars.nanakshahi=zP});var Ofe=X(()=>{var dp=yo(),LKe=go();function RP(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}RP.prototype=new dp.baseCalendar;LKe(RP.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(e){return this.daysInYear(e)!==this.daysPerYear},weekOfYear:function(e,t,r){var i=this.newDate(e,t,r);return i.add(-i.dayOfWeek(),"d"),Math.floor((i.dayOfYear()-1)/7)+1},daysInYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,dp.local.invalidYear);if(e=t.year(),typeof this.NEPALI_CALENDAR_DATA[e]=="undefined")return this.daysPerYear;for(var r=0,i=this.minMonth;i<=12;i++)r+=this.NEPALI_CALENDAR_DATA[e][i];return r},daysInMonth:function(e,t){return e.year&&(t=e.month(),e=e.year()),this._validate(e,t,this.minDay,dp.local.invalidMonth),typeof this.NEPALI_CALENDAR_DATA[e]=="undefined"?this.daysPerMonth[t-1]:this.NEPALI_CALENDAR_DATA[e][t]},weekDay:function(e,t,r){return this.dayOfWeek(e,t,r)!==6},toJD:function(e,t,r){var i=this._validate(e,t,r,dp.local.invalidDate);e=i.year(),t=i.month(),r=i.day();var a=dp.instance(),n=0,o=t,s=e;this._createMissingCalendarData(e);var l=e-(o>9||o===9&&r>=this.NEPALI_CALENDAR_DATA[s][0]?56:57);for(t!==9&&(n=r,o--);o!==9;)o<=0&&(o=12,s--),n+=this.NEPALI_CALENDAR_DATA[s][o],o--;return t===9?(n+=r-this.NEPALI_CALENDAR_DATA[s][0],n<0&&(n+=a.daysInYear(l))):n+=this.NEPALI_CALENDAR_DATA[s][9]-this.NEPALI_CALENDAR_DATA[s][0],a.newDate(l,1,1).add(n,"d").toJD()},fromJD:function(e){var t=dp.instance(),r=t.fromJD(e),i=r.year(),a=r.dayOfYear(),n=i+56;this._createMissingCalendarData(n);for(var o=9,s=this.NEPALI_CALENDAR_DATA[n][0],l=this.NEPALI_CALENDAR_DATA[n][o]-s+1;a>l;)o++,o>12&&(o=1,n++),l+=this.NEPALI_CALENDAR_DATA[n][o];var u=this.NEPALI_CALENDAR_DATA[n][o]-(l-a);return this.newDate(n,o,u)},_createMissingCalendarData:function(e){var t=this.daysPerMonth.slice(0);t.unshift(17);for(var r=e-1;r{var Um=yo(),zKe=go();function $6(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}function j6(e){var t=e-475;e<0&&t++;var r=.242197,i=r*t,a=r*(t+1),n=i-Math.floor(i),o=a-Math.floor(a);return n>o}$6.prototype=new Um.baseCalendar;zKe($6.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","Dey","Bahman","Esfand"],monthNamesShort:["Far","Ord","Kho","Tir","Mor","Sha","Meh","Aba","Aza","Dey","Bah","Esf"],dayNames:["Yekshanbeh","Doshanbeh","Seshanbeh","Chah\u0101rshanbeh","Panjshanbeh","Jom'eh","Shanbeh"],dayNamesShort:["Yek","Do","Se","Cha","Panj","Jom","Sha"],dayNamesMin:["Ye","Do","Se","Ch","Pa","Jo","Sh"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,Um.local.invalidYear);return j6(t.year())},weekOfYear:function(e,t,r){var i=this.newDate(e,t,r);return i.add(-((i.dayOfWeek()+1)%7),"d"),Math.floor((i.dayOfYear()-1)/7)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,Um.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===12&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return this.dayOfWeek(e,t,r)!==5},toJD:function(e,t,r){var i=this._validate(e,t,r,Um.local.invalidDate);e=i.year(),t=i.month(),r=i.day();var a=0;if(e>0)for(var n=1;n0?e-1:e)*365+a+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e)+.5;var t=475+(e-this.toJD(475,1,1))/365.242197,r=Math.floor(t);r<=0&&r--,e>this.toJD(r,12,j6(r)?30:29)&&(r++,r===0&&r++);var i=e-this.toJD(r,1,1)+1,a=i<=186?Math.ceil(i/31):Math.ceil((i-6)/30),n=e-this.toJD(r,a,1)+1;return this.newDate(r,a,n)}});Um.calendars.persian=$6;Um.calendars.jalali=$6});var Vfe=X(()=>{var pp=yo(),RKe=go(),H6=pp.instance();function BP(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}BP.prototype=new pp.baseCalendar;RKe(BP.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(r){var t=this._validate(r,this.minMonth,this.minDay,pp.local.invalidYear),r=this._t2gYear(t.year());return H6.leapYear(r)},weekOfYear:function(a,t,r){var i=this._validate(a,this.minMonth,this.minDay,pp.local.invalidYear),a=this._t2gYear(i.year());return H6.weekOfYear(a,i.month(),i.day())},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,pp.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===2&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(a,t,r){var i=this._validate(a,t,r,pp.local.invalidDate),a=this._t2gYear(i.year());return H6.toJD(a,i.month(),i.day())},fromJD:function(e){var t=H6.fromJD(e),r=this._g2tYear(t.year());return this.newDate(r,t.month(),t.day())},_t2gYear:function(e){return e+this.yearsOffset+(e>=-this.yearsOffset&&e<=-1?1:0)},_g2tYear:function(e){return e-this.yearsOffset-(e>=1&&e<=this.yearsOffset?1:0)}});pp.calendars.taiwan=BP});var Ufe=X(()=>{var mp=yo(),BKe=go(),Z6=mp.instance();function qP(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}qP.prototype=new mp.baseCalendar;BKe(qP.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(r){var t=this._validate(r,this.minMonth,this.minDay,mp.local.invalidYear),r=this._t2gYear(t.year());return Z6.leapYear(r)},weekOfYear:function(a,t,r){var i=this._validate(a,this.minMonth,this.minDay,mp.local.invalidYear),a=this._t2gYear(i.year());return Z6.weekOfYear(a,i.month(),i.day())},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,mp.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===2&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(a,t,r){var i=this._validate(a,t,r,mp.local.invalidDate),a=this._t2gYear(i.year());return Z6.toJD(a,i.month(),i.day())},fromJD:function(e){var t=Z6.fromJD(e),r=this._g2tYear(t.year());return this.newDate(r,t.month(),t.day())},_t2gYear:function(e){return e-this.yearsOffset-(e>=1&&e<=this.yearsOffset?1:0)},_g2tYear:function(e){return e+this.yearsOffset+(e>=-this.yearsOffset&&e<=-1?1:0)}});mp.calendars.thai=qP});var Gfe=X(()=>{var vp=yo(),qKe=go();function OP(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}OP.prototype=new vp.baseCalendar;qKe(OP.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\u0101th\u0101\u2019","Yawm al-Arba\u2018\u0101\u2019","Yawm al-Kham\u012Bs","Yawm al-Jum\u2018a","Yawm al-Sabt"],dayNamesMin:["Ah","Ith","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!0}},leapYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,vp.local.invalidYear);return this.daysInYear(t.year())===355},weekOfYear:function(e,t,r){var i=this.newDate(e,t,r);return i.add(-i.dayOfWeek(),"d"),Math.floor((i.dayOfYear()-1)/7)+1},daysInYear:function(e){for(var t=0,r=1;r<=12;r++)t+=this.daysInMonth(e,r);return t},daysInMonth:function(e,t){for(var r=this._validate(e,t,this.minDay,vp.local.invalidMonth),i=r.toJD()-24e5+.5,a=0,n=0;ni)return u0[a]-u0[a-1];a++}return 30},weekDay:function(e,t,r){return this.dayOfWeek(e,t,r)!==5},toJD:function(e,t,r){var i=this._validate(e,t,r,vp.local.invalidDate),a=12*(i.year()-1)+i.month()-15292,n=i.day()+u0[a-1]-1;return n+24e5-.5},fromJD:function(e){for(var t=e-24e5+.5,r=0,i=0;it);i++)r++;var a=r+15292,n=Math.floor((a-1)/12),o=n+1,s=a-12*n,l=t-u0[r-1]+1;return this.newDate(o,s,l)},isValid:function(e,t,r){var i=vp.baseCalendar.prototype.isValid.apply(this,arguments);return i&&(e=e.year!=null?e.year:e,i=e>=1276&&e<=1500),i},_validate:function(e,t,r,i){var a=vp.baseCalendar.prototype._validate.apply(this,arguments);if(a.year<1276||a.year>1500)throw i.replace(/\{0\}/,this.local.name);return a}});vp.calendars.ummalqura=OP;var u0=[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]});var $fe=X((Cft,jfe)=>{"use strict";jfe.exports=yo();Sfe();Efe();kfe();Cfe();Ffe();Pfe();Ife();Lfe();Rfe();qfe();Ofe();Nfe();Vfe();Ufe();Gfe()});var Jfe=X((Fft,Kfe)=>{"use strict";var Zfe=$fe(),a_=tt(),Yfe=(Ji(),lt(ua)),OKe=Yfe.EPOCHJD,NKe=Yfe.ONEDAY,UP={valType:"enumerated",values:a_.sortObjectKeys(Zfe.calendars),editType:"calc",dflt:"gregorian"},Wfe=function(e,t,r,i){var a={};return a[r]=UP,a_.coerce(e,t,a,r,i)},VKe=function(e,t,r,i){for(var a=0;a{"use strict";Qfe.exports=Jfe()});var ZKe=X((Ift,r0e)=>{var t0e=cee();t0e.register([Ahe(),Jhe(),wfe(),e0e()]);r0e.exports=t0e});return ZKe();})(); /*! Bundled license information: native-promise-only/lib/npo.src.js: diff --git a/dist/plotly-strict.js b/dist/plotly-strict.js index 5142a6ff92a..ce118a46124 100644 --- a/dist/plotly-strict.js +++ b/dist/plotly-strict.js @@ -1,5 +1,5 @@ /** -* plotly.js (strict) v4.1.2 +* plotly.js (strict) v4.2.0 * Copyright 2012-2026, Plotly, Inc. * All rights reserved. * Licensed under the MIT license @@ -146,7 +146,7 @@ var Plotly = (() => { var require_version = __commonJS({ "src/version.js"(exports) { "use strict"; - exports.version = "4.1.2"; + exports.version = "4.2.0"; } }); @@ -17796,9 +17796,9 @@ var Plotly = (() => { var require_maplibre_gl = __commonJS({ "node_modules/maplibre-gl/dist/maplibre-gl.css"() { (function() { - if (!document.getElementById("ce8d464691048653ffe3a57c6c18ab566e8366f186677868cf724621a857b4fe")) { + if (!document.getElementById("9f215cf04c5486422605d13261cb87401f4e7763b6296af81e98efbc0130da53")) { var e58 = document.createElement("style"); - e58.id = "ce8d464691048653ffe3a57c6c18ab566e8366f186677868cf724621a857b4fe"; + e58.id = "9f215cf04c5486422605d13261cb87401f4e7763b6296af81e98efbc0130da53"; e58.textContent = `.maplibregl-map{font:12px/20px Helvetica Neue,Arial,Helvetica,sans-serif;overflow:hidden;position:relative;-webkit-tap-highlight-color:rgb(0 0 0/0);-webkit-touch-callout:none}.maplibregl-canvas{position:absolute;left:0;top:0}.maplibregl-map:fullscreen{width:100%;height:100%}.maplibregl-ctrl-group button.maplibregl-ctrl-compass{touch-action:none}.maplibregl-canvas-container.maplibregl-interactive,.maplibregl-ctrl-group button.maplibregl-ctrl-compass{cursor:grab;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-canvas-container.maplibregl-interactive.maplibregl-track-pointer{cursor:pointer}.maplibregl-canvas-container.maplibregl-interactive:active,.maplibregl-ctrl-group button.maplibregl-ctrl-compass:active{cursor:grabbing}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-canvas-container.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:pinch-zoom}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:none}.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures,.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-ctrl-bottom-left,.maplibregl-ctrl-bottom-right,.maplibregl-ctrl-top-left,.maplibregl-ctrl-top-right{position:absolute;pointer-events:none;z-index:2}.maplibregl-ctrl-top-left{top:0;left:0}.maplibregl-ctrl-top-right{top:0;right:0}.maplibregl-ctrl-bottom-left{bottom:0;left:0}.maplibregl-ctrl-bottom-right{right:0;bottom:0}.maplibregl-ctrl{clear:both;pointer-events:auto;transform:translate(0)}.maplibregl-ctrl-top-left .maplibregl-ctrl{margin:10px 0 0 10px;float:left}.maplibregl-ctrl-top-right .maplibregl-ctrl{margin:10px 10px 0 0;float:right}.maplibregl-ctrl-bottom-left .maplibregl-ctrl{margin:0 0 10px 10px;float:left}.maplibregl-ctrl-bottom-right .maplibregl-ctrl{margin:0 10px 10px 0;float:right}.maplibregl-ctrl-group{border-radius:4px;background:#fff}.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px rgba(0,0,0,.1)}@media (forced-colors:active){.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px ButtonText}}.maplibregl-ctrl-group button{width:29px;height:29px;display:block;padding:0;outline:none;border:0;box-sizing:border-box;background-color:transparent;cursor:pointer}.maplibregl-ctrl button{-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-ctrl-group button+button{border-top:1px solid #ddd}.maplibregl-ctrl button .maplibregl-ctrl-icon{display:block;width:100%;height:100%;background-repeat:no-repeat;background-position:50%}@media (forced-colors:active){.maplibregl-ctrl-icon{background-color:transparent}.maplibregl-ctrl-group button+button{border-top:1px solid ButtonText}}.maplibregl-ctrl button::-moz-focus-inner{border:0;padding:0}.maplibregl-ctrl-attrib-button:focus,.maplibregl-ctrl-group button:focus{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl button:disabled{cursor:not-allowed}.maplibregl-ctrl button:disabled .maplibregl-ctrl-icon{opacity:.25}@media (hover:hover){.maplibregl-ctrl button:not(:disabled):hover{background-color:rgba(0,0,0,.05)}}.maplibregl-ctrl button:not(:disabled):active{background-color:rgba(0,0,0,.05)}.maplibregl-ctrl-group button:focus:focus-visible{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl-group button:focus:not(:focus-visible){box-shadow:none}.maplibregl-ctrl-group button:focus:first-child{border-radius:4px 4px 0 0}.maplibregl-ctrl-group button:focus:last-child{border-radius:0 0 4px 4px}.maplibregl-ctrl-group button:focus:only-child{border-radius:inherit}.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M10%2013c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h9c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M14.5%208.5c-.75%200-1.5.75-1.5%201.5v3h-3c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h3v3c0%20.75.75%201.5%201.5%201.5S16%2019.75%2016%2019v-3h3c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013h-3v-3c0-.75-.75-1.5-1.5-1.5%22%2F%3E%3C%2Fsvg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M10%2013c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h9c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M14.5%208.5c-.75%200-1.5.75-1.5%201.5v3h-3c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h3v3c0%20.75.75%201.5%201.5%201.5S16%2019.75%2016%2019v-3h3c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013h-3v-3c0-.75-.75-1.5-1.5-1.5%22%2F%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M10%2013c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h9c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M14.5%208.5c-.75%200-1.5.75-1.5%201.5v3h-3c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h3v3c0%20.75.75%201.5%201.5%201.5S16%2019.75%2016%2019v-3h3c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013h-3v-3c0-.75-.75-1.5-1.5-1.5%22%2F%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M24%2016v5.5c0%201.75-.75%202.5-2.5%202.5H16v-1l3-1.5-4-5.5%201-1%205.5%204%201.5-3zM6%2016l1.5%203%205.5-4%201%201-4%205.5%203%201.5v1H7.5C5.75%2024%205%2023.25%205%2021.5V16zm7-11v1l-3%201.5%204%205.5-1%201-5.5-4L6%2013H5V7.5C5%205.75%205.75%205%207.5%205zm11%202.5c0-1.75-.75-2.5-2.5-2.5H16v1l3%201.5-4%205.5%201%201%205.5-4%201.5%203h1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M18.5%2016c-1.75%200-2.5.75-2.5%202.5V24h1l1.5-3%205.5%204%201-1-4-5.5%203-1.5v-1zM13%2018.5c0-1.75-.75-2.5-2.5-2.5H5v1l3%201.5L4%2024l1%201%205.5-4%201.5%203h1zm3-8c0%201.75.75%202.5%202.5%202.5H24v-1l-3-1.5L25%205l-1-1-5.5%204L17%205h-1zM10.5%2013c1.75%200%202.5-.75%202.5-2.5V5h-1l-1.5%203L5%204%204%205l4%205.5L5%2012v1z%22%2F%3E%3C%2Fsvg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M24%2016v5.5c0%201.75-.75%202.5-2.5%202.5H16v-1l3-1.5-4-5.5%201-1%205.5%204%201.5-3zM6%2016l1.5%203%205.5-4%201%201-4%205.5%203%201.5v1H7.5C5.75%2024%205%2023.25%205%2021.5V16zm7-11v1l-3%201.5%204%205.5-1%201-5.5-4L6%2013H5V7.5C5%205.75%205.75%205%207.5%205zm11%202.5c0-1.75-.75-2.5-2.5-2.5H16v1l3%201.5-4%205.5%201%201%205.5-4%201.5%203h1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M18.5%2016c-1.75%200-2.5.75-2.5%202.5V24h1l1.5-3%205.5%204%201-1-4-5.5%203-1.5v-1zM13%2018.5c0-1.75-.75-2.5-2.5-2.5H5v1l3%201.5L4%2024l1%201%205.5-4%201.5%203h1zm3-8c0%201.75.75%202.5%202.5%202.5H24v-1l-3-1.5L25%205l-1-1-5.5%204L17%205h-1zM10.5%2013c1.75%200%202.5-.75%202.5-2.5V5h-1l-1.5%203L5%204%204%205l4%205.5L5%2012v1z%22%2F%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M24%2016v5.5c0%201.75-.75%202.5-2.5%202.5H16v-1l3-1.5-4-5.5%201-1%205.5%204%201.5-3zM6%2016l1.5%203%205.5-4%201%201-4%205.5%203%201.5v1H7.5C5.75%2024%205%2023.25%205%2021.5V16zm7-11v1l-3%201.5%204%205.5-1%201-5.5-4L6%2013H5V7.5C5%205.75%205.75%205%207.5%205zm11%202.5c0-1.75-.75-2.5-2.5-2.5H16v1l3%201.5-4%205.5%201%201%205.5-4%201.5%203h1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M18.5%2016c-1.75%200-2.5.75-2.5%202.5V24h1l1.5-3%205.5%204%201-1-4-5.5%203-1.5v-1zM13%2018.5c0-1.75-.75-2.5-2.5-2.5H5v1l3%201.5L4%2024l1%201%205.5-4%201.5%203h1zm3-8c0%201.75.75%202.5%202.5%202.5H24v-1l-3-1.5L25%205l-1-1-5.5%204L17%205h-1zM10.5%2013c1.75%200%202.5-.75%202.5-2.5V5h-1l-1.5%203L5%204%204%205l4%205.5L5%2012v1z%22%2F%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22m10.5%2014%204-8%204%208z%22%2F%3E%3Cpath%20fill%3D%22%23ccc%22%20d%3D%22m10.5%2016%204%208%204-8z%22%2F%3E%3C%2Fsvg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22m10.5%2014%204-8%204%208z%22%2F%3E%3Cpath%20fill%3D%22%23ccc%22%20d%3D%22m10.5%2016%204%208%204-8z%22%2F%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22m10.5%2014%204-8%204%208z%22%2F%3E%3Cpath%20fill%3D%22%23ccc%22%20d%3D%22m10.5%2016%204%208%204-8z%22%2F%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-globe .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2222%22%20height%3D%2222%22%20fill%3D%22none%22%20stroke%3D%22%23333%22%20viewBox%3D%220%200%2022%2022%22%3E%3Ccircle%20cx%3D%2211%22%20cy%3D%2211%22%20r%3D%228.5%22%2F%3E%3Cpath%20d%3D%22M17.5%2011c0%204.819-3.02%208.5-6.5%208.5S4.5%2015.819%204.5%2011%207.52%202.5%2011%202.5s6.5%203.681%206.5%208.5Z%22%2F%3E%3Cpath%20d%3D%22M13.5%2011c0%202.447-.331%204.64-.853%206.206-.262.785-.562%201.384-.872%201.777-.314.399-.58.517-.775.517s-.461-.118-.775-.517c-.31-.393-.61-.992-.872-1.777C8.831%2015.64%208.5%2013.446%208.5%2011s.331-4.64.853-6.206c.262-.785.562-1.384.872-1.777.314-.399.58-.517.775-.517s.461.118.775.517c.31.393.61.992.872%201.777.522%201.565.853%203.76.853%206.206Z%22%2F%3E%3Cpath%20d%3D%22M11%207.5c-1.909%200-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3%201.3%200%200%201-.224-.138q.07-.058.224-.138c.299-.151.763-.302%201.379-.434C7.378%205.666%209.091%205.5%2011%205.5s3.622.166%204.845.428c.616.132%201.08.283%201.379.434.105.053.177.1.224.138q-.07.058-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm0%209c-1.909%200-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3%201.3%200%200%201-.224-.138%201.3%201.3%200%200%201%20.224-.138c.299-.151.763-.302%201.379-.434C7.378%2014.666%209.091%2014.5%2011%2014.5s3.622.166%204.845.428c.616.132%201.08.283%201.379.434.105.053.177.1.224.138a1.3%201.3%200%200%201-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm0-4c-2.46%200-4.672-.222-6.255-.574-.796-.177-1.406-.38-1.805-.59a1.5%201.5%200%200%201-.39-.272.3.3%200%200%201-.047-.064.3.3%200%200%201%20.048-.064c.066-.073.189-.167.389-.272.399-.21%201.009-.413%201.805-.59C6.328%209.722%208.54%209.5%2011%209.5s4.672.222%206.256.574c.795.177%201.405.38%201.804.59.2.105.323.2.39.272a.3.3%200%200%201%20.047.064.3.3%200%200%201-.048.064%201.4%201.4%200%200%201-.389.272c-.399.21-1.009.413-1.804.59-1.584.352-3.796.574-6.256.574Zm-8.501-1.51v.002zm0%20.018v.002zm17.002.002v-.002zm0-.018v-.002z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-globe-enabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2222%22%20height%3D%2222%22%20fill%3D%22none%22%20stroke%3D%22%2333b5e5%22%20viewBox%3D%220%200%2022%2022%22%3E%3Ccircle%20cx%3D%2211%22%20cy%3D%2211%22%20r%3D%228.5%22%2F%3E%3Cpath%20d%3D%22M17.5%2011c0%204.819-3.02%208.5-6.5%208.5S4.5%2015.819%204.5%2011%207.52%202.5%2011%202.5s6.5%203.681%206.5%208.5Z%22%2F%3E%3Cpath%20d%3D%22M13.5%2011c0%202.447-.331%204.64-.853%206.206-.262.785-.562%201.384-.872%201.777-.314.399-.58.517-.775.517s-.461-.118-.775-.517c-.31-.393-.61-.992-.872-1.777C8.831%2015.64%208.5%2013.446%208.5%2011s.331-4.64.853-6.206c.262-.785.562-1.384.872-1.777.314-.399.58-.517.775-.517s.461.118.775.517c.31.393.61.992.872%201.777.522%201.565.853%203.76.853%206.206Z%22%2F%3E%3Cpath%20d%3D%22M11%207.5c-1.909%200-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3%201.3%200%200%201-.224-.138q.07-.058.224-.138c.299-.151.763-.302%201.379-.434C7.378%205.666%209.091%205.5%2011%205.5s3.622.166%204.845.428c.616.132%201.08.283%201.379.434.105.053.177.1.224.138q-.07.058-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm0%209c-1.909%200-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3%201.3%200%200%201-.224-.138%201.3%201.3%200%200%201%20.224-.138c.299-.151.763-.302%201.379-.434C7.378%2014.666%209.091%2014.5%2011%2014.5s3.622.166%204.845.428c.616.132%201.08.283%201.379.434.105.053.177.1.224.138a1.3%201.3%200%200%201-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm0-4c-2.46%200-4.672-.222-6.255-.574-.796-.177-1.406-.38-1.805-.59a1.5%201.5%200%200%201-.39-.272.3.3%200%200%201-.047-.064.3.3%200%200%201%20.048-.064c.066-.073.189-.167.389-.272.399-.21%201.009-.413%201.805-.59C6.328%209.722%208.54%209.5%2011%209.5s4.672.222%206.256.574c.795.177%201.405.38%201.804.59.2.105.323.2.39.272a.3.3%200%200%201%20.047.064.3.3%200%200%201-.048.064%201.4%201.4%200%200%201-.389.272c-.399.21-1.009.413-1.804.59-1.584.352-3.796.574-6.256.574Zm-8.501-1.51v.002zm0%20.018v.002zm17.002.002v-.002zm0-.018v-.002z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-terrain .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2222%22%20height%3D%2222%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2022%2022%22%3E%3Cpath%20d%3D%22m1.754%2013.406%204.453-4.851%203.09%203.09%203.281%203.277.969-.969-3.309-3.312%203.844-4.121%206.148%206.886h1.082v-.855l-7.207-8.07-4.84%205.187L6.169%206.57l-5.48%205.965v.871ZM.688%2016.844h20.625v1.375H.688Zm0%200%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-terrain-enabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2222%22%20height%3D%2222%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2022%2022%22%3E%3Cpath%20d%3D%22m1.754%2013.406%204.453-4.851%203.09%203.09%203.281%203.277.969-.969-3.309-3.312%203.844-4.121%206.148%206.886h1.082v-.855l-7.207-8.07-4.84%205.187L6.169%206.57l-5.48%205.965v.871ZM.688%2016.844h20.625v1.375H.688Zm0%200%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23aaa%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3Cpath%20fill%3D%22red%22%20d%3D%22m14%205%201%201-9%209-1-1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23e58978%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23e54e33%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-waiting .maplibregl-ctrl-icon{animation:maplibregl-spin 2s linear infinite}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23999%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3Cpath%20fill%3D%22red%22%20d%3D%22m14%205%201%201-9%209-1-1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23e58978%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23e54e33%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23666%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3Cpath%20fill%3D%22red%22%20d%3D%22m14%205%201%201-9%209-1-1z%22%2F%3E%3C%2Fsvg%3E")}}@keyframes maplibregl-spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}a.maplibregl-ctrl-logo{width:88px;height:23px;margin:0 0 -4px -4px;display:block;background-repeat:no-repeat;cursor:pointer;overflow:hidden;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2288%22%20height%3D%2223%22%20fill%3D%22none%22%3E%3Cpath%20fill%3D%22%23000%22%20fill-opacity%3D%22.4%22%20fill-rule%3D%22evenodd%22%20d%3D%22M17.408%2016.796h-1.827l2.501-12.095h.198l3.324%206.533.988%202.19.988-2.19%203.258-6.533h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.929%205.644h-.098l-2.914-5.644-.757-1.71-.345%201.71zm1.958-3.42-.726%203.663a1.255%201.255%200%200%201-1.232%201.011h-1.827a1.255%201.255%200%200%201-1.229-1.509l2.501-12.095a1.255%201.255%200%200%201%201.23-1.001h.197a1.25%201.25%200%200%201%201.12.685l3.19%206.273%203.125-6.263a1.25%201.25%200%200%201%201.123-.695h.181a1.255%201.255%200%200%201%201.227.991l1.443%206.71a5%205%200%200%201%20.314-.787l.009-.016a4.6%204.6%200%200%201%201.777-1.887c.782-.46%201.668-.667%202.611-.667a4.6%204.6%200%200%201%201.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255%201.255%200%200%201%201.212.925%201.255%201.255%200%200%201%201.212-.925h1.711c.284%200%20.545.094.755.252.613-.3%201.312-.45%202.075-.45%201.356%200%202.557.445%203.482%201.4q.47.48.763%201.064V4.701a1.255%201.255%200%200%201%201.255-1.255h1.86A1.255%201.255%200%200%201%2054.44%204.7v9.194h2.217c.19%200%20.37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42%202.42%200%200%201-.682-1.71c0-.665.267-1.253.735-1.7a2.45%202.45%200%200%201%201.722-.674%202.43%202.43%200%200%201%201.705.675q.318.302.504.683V4.7a1.255%201.255%200%200%201%201.255-1.255h1.744A1.255%201.255%200%200%201%2065.812%204.7v3.335a4.8%204.8%200%200%201%201.526-.246c.938%200%201.817.214%202.59.69a4.47%204.47%200%200%201%201.67%201.743v-.98a1.255%201.255%200%200%201%201.256-1.256h1.777c.233%200%20.451.064.639.174a3.4%203.4%200%200%201%201.567-.372c.346%200%20.861.02%201.285.232a1.25%201.25%200%200%201%20.689%201.004%204.7%204.7%200%200%201%20.853-.588c.795-.44%201.675-.647%202.61-.647%201.385%200%202.65.39%203.525%201.396.836.938%201.168%202.173%201.168%203.528q-.001.515-.056%201.051a1.255%201.255%200%200%201-.947%201.09l.408.952a1.255%201.255%200%200%201-.477%201.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06%200-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8%205.8%200%200%201-.548-2.512q0-.429.053-.843a1.3%201.3%200%200%201-.333-.086l-.166-.004c-.223%200-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255%201.255%200%200%201-1.256%201.256h-1.777a1.255%201.255%200%200%201-1.256-1.256V15.69l-.032.057a4.8%204.8%200%200%201-1.86%201.833%205.04%205.04%200%200%201-2.484.634%204.5%204.5%200%200%201-1.935-.424%201.25%201.25%200%200%201-.764.258h-1.71a1.255%201.255%200%200%201-1.256-1.255V7.687a2.4%202.4%200%200%201-.428.625c.253.23.412.561.412.93v7.553a1.255%201.255%200%200%201-1.256%201.255h-1.843a1.25%201.25%200%200%201-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255%201.255%200%200%201-1.256-1.255v-1.251l-.061.117a4.7%204.7%200%200%201-1.782%201.884%204.77%204.77%200%200%201-2.485.67%205.6%205.6%200%200%201-1.485-.188l.009%202.764a1.255%201.255%200%200%201-1.255%201.259h-1.729a1.255%201.255%200%200%201-1.255-1.255v-3.537a1.255%201.255%200%200%201-1.167.793h-1.679a1.25%201.25%200%200%201-.77-.263%204.5%204.5%200%200%201-1.945.429c-.885%200-1.724-.21-2.495-.632l-.017-.01a5%205%200%200%201-1.081-.836%201.255%201.255%200%200%201-1.254%201.312h-1.81a1.255%201.255%200%200%201-1.228-.99l-.782-3.625-2.044%203.939a1.25%201.25%200%200%201-1.115.676h-.098a1.25%201.25%200%200%201-1.116-.68l-2.061-3.994zM35.92%2016.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033%201.332h1.678V9.242h-1.694l-.033%201.267q-.133-.329-.526-.658l-.032-.028a3.2%203.2%200%200%200-.668-.428l-.27-.12a3.3%203.3%200%200%200-1.235-.23q-1.136-.001-1.974.493a3.36%203.36%200%200%200-1.3%201.382q-.445.89-.444%202.074%200%201.2.51%202.107a3.8%203.8%200%200%200%201.382%201.381%203.9%203.9%200%200%200%201.893.477q.795%200%201.455-.33zm-2.789-5.38q-.576.675-.575%201.762%200%201.102.559%201.794.576.675%201.645.675a2.25%202.25%200%200%200%20.934-.19%202.2%202.2%200%200%200%20.468-.29l.178-.161a2.2%202.2%200%200%200%20.397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2%202.2%200%200%200-.633-.709l-.13-.086-.047-.028a2.1%202.1%200%200%200-1.073-.285q-1.052%200-1.629.692zm2.316%202.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96%200%200%200-.353-.389.85.85%200%200%200-.464-.127c-.4%200-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945%200%20.506.122.801.27.99.097.11.266.224.68.224.303%200%20.504-.09.687-.269zm7.545%201.705a2.6%202.6%200%200%200%20.331.423q.319.33.755.548l.173.074q.65.255%201.49.255%201.02%200%201.844-.493a3.45%203.45%200%200%200%201.316-1.4q.493-.904.493-2.089%200-1.909-.988-2.913-.988-1.02-2.584-1.02-.898%200-1.575.347a3%203%200%200%200-.415.262l-.199.166a3.4%203.4%200%200%200-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296%201.119.297%201.07%200%201.645-.675.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.435%200-.835.16a2%202%200%200%200-.284.136%202%202%200%200%200-.363.254%202.2%202.2%200%200%200-.46.569l-.082.162a2.6%202.6%200%200%200-.213%201.072v.115q0%20.707.296%201.267l.135.211zm.964-.818a1.1%201.1%200%200%200%20.367.385.94.94%200%200%200%20.476.118c.423%200%20.59-.117.687-.23.159-.194.28-.478.28-.95%200-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1%201%200%200%200-.503.135l-.012.007a.86.86%200%200%200-.335.343c-.073.133-.132.324-.132.614v.115a1.4%201.4%200%200%200%20.14.66zm15.7-6.222q.347-.346.346-.856a1.05%201.05%200%200%200-.345-.79%201.18%201.18%200%200%200-.84-.329q-.51%200-.855.33a1.05%201.05%200%200%200-.346.79q0%20.51.346.855.345.346.856.346.51%200%20.839-.346zm4.337%209.314.033-1.332q.191.403.59.747l.098.081a4%204%200%200%200%20.316.224l.223.122a3.2%203.2%200%200%200%201.44.322%203.8%203.8%200%200%200%201.875-.477%203.5%203.5%200%200%200%201.382-1.366q.527-.89.526-2.09%200-1.184-.444-2.073a3.24%203.24%200%200%200-1.283-1.399q-.823-.51-1.942-.51a3.5%203.5%200%200%200-1.527.344l-.086.043-.165.09a3%203%200%200%200-.33.214q-.432.315-.656.707a2%202%200%200%200-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5%202.5%200%200%200%20.566.7q.117.098.245.18l.144.08a2.1%202.1%200%200%200%20.975.232q1.07%200%201.645-.675.576-.69.576-1.778%200-1.102-.576-1.777-.56-.691-1.645-.692a2.2%202.2%200%200%200-1.015.235q-.22.113-.415.282l-.15.142a2.1%202.1%200%200%200-.42.594q-.223.479-.223%201.1v.115q0%20.705.293%201.26zm2.616-.293c.157-.191.28-.479.28-.967%200-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87%200%200%200-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0%20.285.057.499.144.669a1.1%201.1%200%200%200%20.367.405c.137.082.28.123.455.123.423%200%20.59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493%200%20.642.099l.247-1.794q-.196-.099-.717-.099a2.3%202.3%200%200%200-.545.063%202%202%200%200%200-.411.148%202.2%202.2%200%200%200-.4.249%202.5%202.5%200%200%200-.485.499%202.7%202.7%200%200%200-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5%201.5%200%200%201%20.466-.636%202.5%202.5%200%200%201%20.399-.253%202%202%200%200%201%20.224-.099zm9.784%202.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46%203.46%200%200%200-1.4%201.382q-.493.906-.493%202.106%200%201.07.428%201.975.428.89%201.332%201.432.906.526%202.255.526.973%200%201.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954%200-1.497-.444a1.6%201.6%200%200%201-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1%201%200%200%200-.156-.176q-.46-.428-1.316-.428-.986%200-1.494.604-.379.45-.494%201.234zm-27.053%202.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z%22%2F%3E%3Cpath%20fill%3D%22%23fff%22%20d%3D%22m19.63%2011.151-.757-1.71-.345%201.71-1.12%205.644h-1.827L18.083%204.7h.197l3.325%206.533.988%202.19.988-2.19L26.839%204.7h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.93%205.644h-.098l-2.913-5.644zm14.836%205.81q-1.02%200-1.893-.478a3.8%203.8%200%200%201-1.381-1.382q-.51-.906-.51-2.106%200-1.185.444-2.074a3.36%203.36%200%200%201%201.3-1.382q.839-.494%201.974-.494a3.3%203.3%200%200%201%201.234.231%203.3%203.3%200%200%201%20.97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02%201.053a3.17%203.17%200%200%201-1.662.444zm.296-1.482q.938%200%201.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2%202.2%200%200%200-.807-.872%202.1%202.1%200%200%200-1.119-.313q-1.053%200-1.629.692-.575.675-.575%201.76%200%201.103.559%201.795.577.675%201.645.675zm6.521-6.237h1.711v1.4q.906-1.597%202.83-1.597%201.596%200%202.584%201.02.988%201.005.988%202.914%200%201.185-.493%202.09a3.46%203.46%200%200%201-1.316%201.399%203.5%203.5%200%200%201-1.844.493q-.954%200-1.662-.329a2.67%202.67%200%200%201-1.086-.97l.017%205.134h-1.728zm4.048%206.22q1.07%200%201.645-.674.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.592%200-1.12.296-.51.28-.822.823-.296.527-.296%201.234v.115q0%20.708.296%201.267.313.543.823.855.51.296%201.119.297z%22%2F%3E%3Cpath%20fill%3D%22%23e1e3e9%22%20d%3D%22M51.325%204.7h1.86v10.45h3.473v1.646h-5.333zm7.12%204.542h1.843v7.553h-1.843zm.905-1.415a1.16%201.16%200%200%201-.856-.346%201.17%201.17%200%200%201-.346-.856%201.05%201.05%200%200%201%20.346-.79q.346-.329.856-.329.494%200%20.839.33a1.05%201.05%200%200%201%20.345.79%201.16%201.16%200%200%201-.345.855q-.33.346-.84.346zm7.875%209.133a3.17%203.17%200%200%201-1.662-.444q-.723-.46-1.004-1.053l-.033%201.332h-1.71V4.701h1.743v4.657l-.082%201.283q.279-.658%201.086-1.119a3.5%203.5%200%200%201%201.778-.477q1.119%200%201.942.51a3.24%203.24%200%200%201%201.283%201.4q.445.888.444%202.072%200%201.201-.526%202.09a3.5%203.5%200%200%201-1.382%201.366%203.8%203.8%200%200%201-1.876.477zm-.296-1.481q1.069%200%201.645-.675.577-.69.577-1.778%200-1.102-.577-1.776-.56-.691-1.645-.692a2.12%202.12%200%200%200-1.58.659q-.642.641-.642%201.694v.115q0%20.71.296%201.267a2.4%202.4%200%200%200%20.807.872%202.1%202.1%200%200%200%201.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14%202.14%200%200%201%201.349-.46q.527%200%20.724.098l-.247%201.794q-.149-.099-.642-.099-.774%200-1.416.494-.626.493-.626%201.58v3.883h-1.777V9.242zm9.534%207.718q-1.35%200-2.255-.526-.904-.543-1.332-1.432a4.6%204.6%200%200%201-.428-1.975q0-1.2.493-2.106a3.46%203.46%200%200%201%201.4-1.382q.889-.495%202.007-.494%201.744%200%202.584.97.855.956.856%202.7%200%20.444-.05.92h-5.43q.18%201.005.708%201.45.542.443%201.497.443.79%200%201.3-.131a4%204%200%200%200%20.938-.362l.542%201.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728%200-1.991%201.86z%22%2F%3E%3Cpath%20d%3D%22M5.074%2015.948a.484.657%200%200%200-.486.659v1.84a.484.657%200%200%200%20.486.659h4.101a.484.657%200%200%200%20.486-.659v-1.84a.484.657%200%200%200-.486-.659zm3.56%201.16H5.617v.838h3.017z%22%20style%3D%22fill%3A%23fff%3Bfill-rule%3Aevenodd%3Bstroke-width%3A1.03600001%22%2F%3E%3Cg%20style%3D%22stroke-width%3A1.12603545%22%3E%3Cpath%20d%3D%22M-9.408-1.416c-3.833-.025-7.056%202.912-7.08%206.615-.02%203.08%201.653%204.832%203.107%206.268.903.892%201.721%201.74%202.32%202.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87%201.87%200%200%200-.362%201.121l-.011%201.877c-.003.402.104.787.347%201.125.244.338.688.653%201.23.656l4.142.028c.542.003.99-.306%201.238-.641a1.87%201.87%200%200%200%20.363-1.121l.012-1.875a1.87%201.87%200%200%200-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145%201.425-1.983%202.348-2.87%201.473-1.414%203.18-3.149%203.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006%201.1v.002c3.274.02%205.92%202.532%205.9%205.6-.017%202.706-1.39%204.026-2.863%205.44-1.034.994-2.118%202.033-2.814%203.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34%200%200%201-.226.084.34.34%200%200%201-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067%202.7-5.545%205.975-5.523m-.02%202.826c-1.62-.01-2.944%201.315-2.955%202.96-.01%201.646%201.295%202.988%202.916%202.999h.002c1.621.01%202.943-1.316%202.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005%201.1c1.017.006%201.829.83%201.822%201.89s-.83%201.874-1.848%201.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874%201.848-1.868m-2.155%2011.857%204.14.025c.271.002.49.305.487.676l-.013%201.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668%22%20style%3D%22color%3A%23000%3Bfont-style%3Anormal%3Bfont-variant%3Anormal%3Bfont-weight%3A400%3Bfont-stretch%3Anormal%3Bfont-size%3Amedium%3Bline-height%3Anormal%3Bfont-family%3Asans-serif%3Bfont-variant-ligatures%3Anormal%3Bfont-variant-position%3Anormal%3Bfont-variant-caps%3Anormal%3Bfont-variant-numeric%3Anormal%3Bfont-variant-alternates%3Anormal%3Bfont-feature-settings%3Anormal%3Btext-indent%3A0%3Btext-align%3Astart%3Btext-decoration%3Anone%3Btext-decoration-line%3Anone%3Btext-decoration-style%3Asolid%3Btext-decoration-color%3A%23000%3Bletter-spacing%3Anormal%3Bword-spacing%3Anormal%3Btext-transform%3Anone%3Bwriting-mode%3Alr-tb%3Bdirection%3Altr%3Btext-orientation%3Amixed%3Bdominant-baseline%3Aauto%3Bbaseline-shift%3Abaseline%3Btext-anchor%3Astart%3Bwhite-space%3Anormal%3Bshape-padding%3A0%3Bclip-rule%3Aevenodd%3Bdisplay%3Ainline%3Boverflow%3Avisible%3Bvisibility%3Avisible%3Bopacity%3A1%3Bisolation%3Aauto%3Bmix-blend-mode%3Anormal%3Bcolor-interpolation%3AsRGB%3Bcolor-interpolation-filters%3AlinearRGB%3Bsolid-color%3A%23000%3Bsolid-opacity%3A1%3Bvector-effect%3Anone%3Bfill%3A%23000%3Bfill-opacity%3A.4%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-linecap%3Abutt%3Bstroke-linejoin%3Amiter%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-dashoffset%3A0%3Bstroke-opacity%3A1%3Bcolor-rendering%3Aauto%3Bimage-rendering%3Aauto%3Bshape-rendering%3Aauto%3Btext-rendering%3Aauto%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-9.415-.316C-12.69-.338-15.37%202.14-15.39%205.207c-.017%202.716%201.326%204.041%202.78%205.477%201.013%201%202.081%202.055%202.78%203.67l.092.076a.34.34%200%200%200%20.225.086.34.34%200%200%200%20.227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6%201.78-2.64%202.814-3.634%201.473-1.414%202.847-2.733%202.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057%208.784c1.621.011%202.944-1.315%202.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945%201.315-2.955%202.96s1.295%202.989%202.916%203%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23e1e3e9%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-11.594%2015.465c-.27-.002-.492.297-.494.668l-.012%201.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23fff%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E")}a.maplibregl-ctrl-logo.maplibregl-compact{width:14px}@media (forced-colors:active){a.maplibregl-ctrl-logo{background-color:transparent;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2288%22%20height%3D%2223%22%20fill%3D%22none%22%3E%3Cpath%20fill%3D%22%23000%22%20fill-opacity%3D%22.4%22%20fill-rule%3D%22evenodd%22%20d%3D%22M17.408%2016.796h-1.827l2.501-12.095h.198l3.324%206.533.988%202.19.988-2.19%203.258-6.533h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.929%205.644h-.098l-2.914-5.644-.757-1.71-.345%201.71zm1.958-3.42-.726%203.663a1.255%201.255%200%200%201-1.232%201.011h-1.827a1.255%201.255%200%200%201-1.229-1.509l2.501-12.095a1.255%201.255%200%200%201%201.23-1.001h.197a1.25%201.25%200%200%201%201.12.685l3.19%206.273%203.125-6.263a1.25%201.25%200%200%201%201.123-.695h.181a1.255%201.255%200%200%201%201.227.991l1.443%206.71a5%205%200%200%201%20.314-.787l.009-.016a4.6%204.6%200%200%201%201.777-1.887c.782-.46%201.668-.667%202.611-.667a4.6%204.6%200%200%201%201.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255%201.255%200%200%201%201.212.925%201.255%201.255%200%200%201%201.212-.925h1.711c.284%200%20.545.094.755.252.613-.3%201.312-.45%202.075-.45%201.356%200%202.557.445%203.482%201.4q.47.48.763%201.064V4.701a1.255%201.255%200%200%201%201.255-1.255h1.86A1.255%201.255%200%200%201%2054.44%204.7v9.194h2.217c.19%200%20.37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42%202.42%200%200%201-.682-1.71c0-.665.267-1.253.735-1.7a2.45%202.45%200%200%201%201.722-.674%202.43%202.43%200%200%201%201.705.675q.318.302.504.683V4.7a1.255%201.255%200%200%201%201.255-1.255h1.744A1.255%201.255%200%200%201%2065.812%204.7v3.335a4.8%204.8%200%200%201%201.526-.246c.938%200%201.817.214%202.59.69a4.47%204.47%200%200%201%201.67%201.743v-.98a1.255%201.255%200%200%201%201.256-1.256h1.777c.233%200%20.451.064.639.174a3.4%203.4%200%200%201%201.567-.372c.346%200%20.861.02%201.285.232a1.25%201.25%200%200%201%20.689%201.004%204.7%204.7%200%200%201%20.853-.588c.795-.44%201.675-.647%202.61-.647%201.385%200%202.65.39%203.525%201.396.836.938%201.168%202.173%201.168%203.528q-.001.515-.056%201.051a1.255%201.255%200%200%201-.947%201.09l.408.952a1.255%201.255%200%200%201-.477%201.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06%200-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8%205.8%200%200%201-.548-2.512q0-.429.053-.843a1.3%201.3%200%200%201-.333-.086l-.166-.004c-.223%200-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255%201.255%200%200%201-1.256%201.256h-1.777a1.255%201.255%200%200%201-1.256-1.256V15.69l-.032.057a4.8%204.8%200%200%201-1.86%201.833%205.04%205.04%200%200%201-2.484.634%204.5%204.5%200%200%201-1.935-.424%201.25%201.25%200%200%201-.764.258h-1.71a1.255%201.255%200%200%201-1.256-1.255V7.687a2.4%202.4%200%200%201-.428.625c.253.23.412.561.412.93v7.553a1.255%201.255%200%200%201-1.256%201.255h-1.843a1.25%201.25%200%200%201-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255%201.255%200%200%201-1.256-1.255v-1.251l-.061.117a4.7%204.7%200%200%201-1.782%201.884%204.77%204.77%200%200%201-2.485.67%205.6%205.6%200%200%201-1.485-.188l.009%202.764a1.255%201.255%200%200%201-1.255%201.259h-1.729a1.255%201.255%200%200%201-1.255-1.255v-3.537a1.255%201.255%200%200%201-1.167.793h-1.679a1.25%201.25%200%200%201-.77-.263%204.5%204.5%200%200%201-1.945.429c-.885%200-1.724-.21-2.495-.632l-.017-.01a5%205%200%200%201-1.081-.836%201.255%201.255%200%200%201-1.254%201.312h-1.81a1.255%201.255%200%200%201-1.228-.99l-.782-3.625-2.044%203.939a1.25%201.25%200%200%201-1.115.676h-.098a1.25%201.25%200%200%201-1.116-.68l-2.061-3.994zM35.92%2016.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033%201.332h1.678V9.242h-1.694l-.033%201.267q-.133-.329-.526-.658l-.032-.028a3.2%203.2%200%200%200-.668-.428l-.27-.12a3.3%203.3%200%200%200-1.235-.23q-1.136-.001-1.974.493a3.36%203.36%200%200%200-1.3%201.382q-.445.89-.444%202.074%200%201.2.51%202.107a3.8%203.8%200%200%200%201.382%201.381%203.9%203.9%200%200%200%201.893.477q.795%200%201.455-.33zm-2.789-5.38q-.576.675-.575%201.762%200%201.102.559%201.794.576.675%201.645.675a2.25%202.25%200%200%200%20.934-.19%202.2%202.2%200%200%200%20.468-.29l.178-.161a2.2%202.2%200%200%200%20.397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2%202.2%200%200%200-.633-.709l-.13-.086-.047-.028a2.1%202.1%200%200%200-1.073-.285q-1.052%200-1.629.692zm2.316%202.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96%200%200%200-.353-.389.85.85%200%200%200-.464-.127c-.4%200-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945%200%20.506.122.801.27.99.097.11.266.224.68.224.303%200%20.504-.09.687-.269zm7.545%201.705a2.6%202.6%200%200%200%20.331.423q.319.33.755.548l.173.074q.65.255%201.49.255%201.02%200%201.844-.493a3.45%203.45%200%200%200%201.316-1.4q.493-.904.493-2.089%200-1.909-.988-2.913-.988-1.02-2.584-1.02-.898%200-1.575.347a3%203%200%200%200-.415.262l-.199.166a3.4%203.4%200%200%200-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296%201.119.297%201.07%200%201.645-.675.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.435%200-.835.16a2%202%200%200%200-.284.136%202%202%200%200%200-.363.254%202.2%202.2%200%200%200-.46.569l-.082.162a2.6%202.6%200%200%200-.213%201.072v.115q0%20.707.296%201.267l.135.211zm.964-.818a1.1%201.1%200%200%200%20.367.385.94.94%200%200%200%20.476.118c.423%200%20.59-.117.687-.23.159-.194.28-.478.28-.95%200-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1%201%200%200%200-.503.135l-.012.007a.86.86%200%200%200-.335.343c-.073.133-.132.324-.132.614v.115a1.4%201.4%200%200%200%20.14.66zm15.7-6.222q.347-.346.346-.856a1.05%201.05%200%200%200-.345-.79%201.18%201.18%200%200%200-.84-.329q-.51%200-.855.33a1.05%201.05%200%200%200-.346.79q0%20.51.346.855.345.346.856.346.51%200%20.839-.346zm4.337%209.314.033-1.332q.191.403.59.747l.098.081a4%204%200%200%200%20.316.224l.223.122a3.2%203.2%200%200%200%201.44.322%203.8%203.8%200%200%200%201.875-.477%203.5%203.5%200%200%200%201.382-1.366q.527-.89.526-2.09%200-1.184-.444-2.073a3.24%203.24%200%200%200-1.283-1.399q-.823-.51-1.942-.51a3.5%203.5%200%200%200-1.527.344l-.086.043-.165.09a3%203%200%200%200-.33.214q-.432.315-.656.707a2%202%200%200%200-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5%202.5%200%200%200%20.566.7q.117.098.245.18l.144.08a2.1%202.1%200%200%200%20.975.232q1.07%200%201.645-.675.576-.69.576-1.778%200-1.102-.576-1.777-.56-.691-1.645-.692a2.2%202.2%200%200%200-1.015.235q-.22.113-.415.282l-.15.142a2.1%202.1%200%200%200-.42.594q-.223.479-.223%201.1v.115q0%20.705.293%201.26zm2.616-.293c.157-.191.28-.479.28-.967%200-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87%200%200%200-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0%20.285.057.499.144.669a1.1%201.1%200%200%200%20.367.405c.137.082.28.123.455.123.423%200%20.59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493%200%20.642.099l.247-1.794q-.196-.099-.717-.099a2.3%202.3%200%200%200-.545.063%202%202%200%200%200-.411.148%202.2%202.2%200%200%200-.4.249%202.5%202.5%200%200%200-.485.499%202.7%202.7%200%200%200-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5%201.5%200%200%201%20.466-.636%202.5%202.5%200%200%201%20.399-.253%202%202%200%200%201%20.224-.099zm9.784%202.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46%203.46%200%200%200-1.4%201.382q-.493.906-.493%202.106%200%201.07.428%201.975.428.89%201.332%201.432.906.526%202.255.526.973%200%201.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954%200-1.497-.444a1.6%201.6%200%200%201-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1%201%200%200%200-.156-.176q-.46-.428-1.316-.428-.986%200-1.494.604-.379.45-.494%201.234zm-27.053%202.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z%22%2F%3E%3Cpath%20fill%3D%22%23fff%22%20d%3D%22m19.63%2011.151-.757-1.71-.345%201.71-1.12%205.644h-1.827L18.083%204.7h.197l3.325%206.533.988%202.19.988-2.19L26.839%204.7h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.93%205.644h-.098l-2.913-5.644zm14.836%205.81q-1.02%200-1.893-.478a3.8%203.8%200%200%201-1.381-1.382q-.51-.906-.51-2.106%200-1.185.444-2.074a3.36%203.36%200%200%201%201.3-1.382q.839-.494%201.974-.494a3.3%203.3%200%200%201%201.234.231%203.3%203.3%200%200%201%20.97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02%201.053a3.17%203.17%200%200%201-1.662.444zm.296-1.482q.938%200%201.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2%202.2%200%200%200-.807-.872%202.1%202.1%200%200%200-1.119-.313q-1.053%200-1.629.692-.575.675-.575%201.76%200%201.103.559%201.795.577.675%201.645.675zm6.521-6.237h1.711v1.4q.906-1.597%202.83-1.597%201.596%200%202.584%201.02.988%201.005.988%202.914%200%201.185-.493%202.09a3.46%203.46%200%200%201-1.316%201.399%203.5%203.5%200%200%201-1.844.493q-.954%200-1.662-.329a2.67%202.67%200%200%201-1.086-.97l.017%205.134h-1.728zm4.048%206.22q1.07%200%201.645-.674.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.592%200-1.12.296-.51.28-.822.823-.296.527-.296%201.234v.115q0%20.708.296%201.267.313.543.823.855.51.296%201.119.297z%22%2F%3E%3Cpath%20fill%3D%22%23e1e3e9%22%20d%3D%22M51.325%204.7h1.86v10.45h3.473v1.646h-5.333zm7.12%204.542h1.843v7.553h-1.843zm.905-1.415a1.16%201.16%200%200%201-.856-.346%201.17%201.17%200%200%201-.346-.856%201.05%201.05%200%200%201%20.346-.79q.346-.329.856-.329.494%200%20.839.33a1.05%201.05%200%200%201%20.345.79%201.16%201.16%200%200%201-.345.855q-.33.346-.84.346zm7.875%209.133a3.17%203.17%200%200%201-1.662-.444q-.723-.46-1.004-1.053l-.033%201.332h-1.71V4.701h1.743v4.657l-.082%201.283q.279-.658%201.086-1.119a3.5%203.5%200%200%201%201.778-.477q1.119%200%201.942.51a3.24%203.24%200%200%201%201.283%201.4q.445.888.444%202.072%200%201.201-.526%202.09a3.5%203.5%200%200%201-1.382%201.366%203.8%203.8%200%200%201-1.876.477zm-.296-1.481q1.069%200%201.645-.675.577-.69.577-1.778%200-1.102-.577-1.776-.56-.691-1.645-.692a2.12%202.12%200%200%200-1.58.659q-.642.641-.642%201.694v.115q0%20.71.296%201.267a2.4%202.4%200%200%200%20.807.872%202.1%202.1%200%200%200%201.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14%202.14%200%200%201%201.349-.46q.527%200%20.724.098l-.247%201.794q-.149-.099-.642-.099-.774%200-1.416.494-.626.493-.626%201.58v3.883h-1.777V9.242zm9.534%207.718q-1.35%200-2.255-.526-.904-.543-1.332-1.432a4.6%204.6%200%200%201-.428-1.975q0-1.2.493-2.106a3.46%203.46%200%200%201%201.4-1.382q.889-.495%202.007-.494%201.744%200%202.584.97.855.956.856%202.7%200%20.444-.05.92h-5.43q.18%201.005.708%201.45.542.443%201.497.443.79%200%201.3-.131a4%204%200%200%200%20.938-.362l.542%201.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728%200-1.991%201.86z%22%2F%3E%3Cpath%20d%3D%22M5.074%2015.948a.484.657%200%200%200-.486.659v1.84a.484.657%200%200%200%20.486.659h4.101a.484.657%200%200%200%20.486-.659v-1.84a.484.657%200%200%200-.486-.659zm3.56%201.16H5.617v.838h3.017z%22%20style%3D%22fill%3A%23fff%3Bfill-rule%3Aevenodd%3Bstroke-width%3A1.03600001%22%2F%3E%3Cg%20style%3D%22stroke-width%3A1.12603545%22%3E%3Cpath%20d%3D%22M-9.408-1.416c-3.833-.025-7.056%202.912-7.08%206.615-.02%203.08%201.653%204.832%203.107%206.268.903.892%201.721%201.74%202.32%202.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87%201.87%200%200%200-.362%201.121l-.011%201.877c-.003.402.104.787.347%201.125.244.338.688.653%201.23.656l4.142.028c.542.003.99-.306%201.238-.641a1.87%201.87%200%200%200%20.363-1.121l.012-1.875a1.87%201.87%200%200%200-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145%201.425-1.983%202.348-2.87%201.473-1.414%203.18-3.149%203.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006%201.1v.002c3.274.02%205.92%202.532%205.9%205.6-.017%202.706-1.39%204.026-2.863%205.44-1.034.994-2.118%202.033-2.814%203.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34%200%200%201-.226.084.34.34%200%200%201-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067%202.7-5.545%205.975-5.523m-.02%202.826c-1.62-.01-2.944%201.315-2.955%202.96-.01%201.646%201.295%202.988%202.916%202.999h.002c1.621.01%202.943-1.316%202.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005%201.1c1.017.006%201.829.83%201.822%201.89s-.83%201.874-1.848%201.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874%201.848-1.868m-2.155%2011.857%204.14.025c.271.002.49.305.487.676l-.013%201.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668%22%20style%3D%22color%3A%23000%3Bfont-style%3Anormal%3Bfont-variant%3Anormal%3Bfont-weight%3A400%3Bfont-stretch%3Anormal%3Bfont-size%3Amedium%3Bline-height%3Anormal%3Bfont-family%3Asans-serif%3Bfont-variant-ligatures%3Anormal%3Bfont-variant-position%3Anormal%3Bfont-variant-caps%3Anormal%3Bfont-variant-numeric%3Anormal%3Bfont-variant-alternates%3Anormal%3Bfont-feature-settings%3Anormal%3Btext-indent%3A0%3Btext-align%3Astart%3Btext-decoration%3Anone%3Btext-decoration-line%3Anone%3Btext-decoration-style%3Asolid%3Btext-decoration-color%3A%23000%3Bletter-spacing%3Anormal%3Bword-spacing%3Anormal%3Btext-transform%3Anone%3Bwriting-mode%3Alr-tb%3Bdirection%3Altr%3Btext-orientation%3Amixed%3Bdominant-baseline%3Aauto%3Bbaseline-shift%3Abaseline%3Btext-anchor%3Astart%3Bwhite-space%3Anormal%3Bshape-padding%3A0%3Bclip-rule%3Aevenodd%3Bdisplay%3Ainline%3Boverflow%3Avisible%3Bvisibility%3Avisible%3Bopacity%3A1%3Bisolation%3Aauto%3Bmix-blend-mode%3Anormal%3Bcolor-interpolation%3AsRGB%3Bcolor-interpolation-filters%3AlinearRGB%3Bsolid-color%3A%23000%3Bsolid-opacity%3A1%3Bvector-effect%3Anone%3Bfill%3A%23000%3Bfill-opacity%3A.4%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-linecap%3Abutt%3Bstroke-linejoin%3Amiter%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-dashoffset%3A0%3Bstroke-opacity%3A1%3Bcolor-rendering%3Aauto%3Bimage-rendering%3Aauto%3Bshape-rendering%3Aauto%3Btext-rendering%3Aauto%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-9.415-.316C-12.69-.338-15.37%202.14-15.39%205.207c-.017%202.716%201.326%204.041%202.78%205.477%201.013%201%202.081%202.055%202.78%203.67l.092.076a.34.34%200%200%200%20.225.086.34.34%200%200%200%20.227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6%201.78-2.64%202.814-3.634%201.473-1.414%202.847-2.733%202.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057%208.784c1.621.011%202.944-1.315%202.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945%201.315-2.955%202.96s1.295%202.989%202.916%203%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23e1e3e9%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-11.594%2015.465c-.27-.002-.492.297-.494.668l-.012%201.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23fff%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){a.maplibregl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2288%22%20height%3D%2223%22%20fill%3D%22none%22%3E%3Cpath%20fill%3D%22%23000%22%20fill-opacity%3D%22.4%22%20fill-rule%3D%22evenodd%22%20d%3D%22M17.408%2016.796h-1.827l2.501-12.095h.198l3.324%206.533.988%202.19.988-2.19%203.258-6.533h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.929%205.644h-.098l-2.914-5.644-.757-1.71-.345%201.71zm1.958-3.42-.726%203.663a1.255%201.255%200%200%201-1.232%201.011h-1.827a1.255%201.255%200%200%201-1.229-1.509l2.501-12.095a1.255%201.255%200%200%201%201.23-1.001h.197a1.25%201.25%200%200%201%201.12.685l3.19%206.273%203.125-6.263a1.25%201.25%200%200%201%201.123-.695h.181a1.255%201.255%200%200%201%201.227.991l1.443%206.71a5%205%200%200%201%20.314-.787l.009-.016a4.6%204.6%200%200%201%201.777-1.887c.782-.46%201.668-.667%202.611-.667a4.6%204.6%200%200%201%201.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255%201.255%200%200%201%201.212.925%201.255%201.255%200%200%201%201.212-.925h1.711c.284%200%20.545.094.755.252.613-.3%201.312-.45%202.075-.45%201.356%200%202.557.445%203.482%201.4q.47.48.763%201.064V4.701a1.255%201.255%200%200%201%201.255-1.255h1.86A1.255%201.255%200%200%201%2054.44%204.7v9.194h2.217c.19%200%20.37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42%202.42%200%200%201-.682-1.71c0-.665.267-1.253.735-1.7a2.45%202.45%200%200%201%201.722-.674%202.43%202.43%200%200%201%201.705.675q.318.302.504.683V4.7a1.255%201.255%200%200%201%201.255-1.255h1.744A1.255%201.255%200%200%201%2065.812%204.7v3.335a4.8%204.8%200%200%201%201.526-.246c.938%200%201.817.214%202.59.69a4.47%204.47%200%200%201%201.67%201.743v-.98a1.255%201.255%200%200%201%201.256-1.256h1.777c.233%200%20.451.064.639.174a3.4%203.4%200%200%201%201.567-.372c.346%200%20.861.02%201.285.232a1.25%201.25%200%200%201%20.689%201.004%204.7%204.7%200%200%201%20.853-.588c.795-.44%201.675-.647%202.61-.647%201.385%200%202.65.39%203.525%201.396.836.938%201.168%202.173%201.168%203.528q-.001.515-.056%201.051a1.255%201.255%200%200%201-.947%201.09l.408.952a1.255%201.255%200%200%201-.477%201.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06%200-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8%205.8%200%200%201-.548-2.512q0-.429.053-.843a1.3%201.3%200%200%201-.333-.086l-.166-.004c-.223%200-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255%201.255%200%200%201-1.256%201.256h-1.777a1.255%201.255%200%200%201-1.256-1.256V15.69l-.032.057a4.8%204.8%200%200%201-1.86%201.833%205.04%205.04%200%200%201-2.484.634%204.5%204.5%200%200%201-1.935-.424%201.25%201.25%200%200%201-.764.258h-1.71a1.255%201.255%200%200%201-1.256-1.255V7.687a2.4%202.4%200%200%201-.428.625c.253.23.412.561.412.93v7.553a1.255%201.255%200%200%201-1.256%201.255h-1.843a1.25%201.25%200%200%201-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255%201.255%200%200%201-1.256-1.255v-1.251l-.061.117a4.7%204.7%200%200%201-1.782%201.884%204.77%204.77%200%200%201-2.485.67%205.6%205.6%200%200%201-1.485-.188l.009%202.764a1.255%201.255%200%200%201-1.255%201.259h-1.729a1.255%201.255%200%200%201-1.255-1.255v-3.537a1.255%201.255%200%200%201-1.167.793h-1.679a1.25%201.25%200%200%201-.77-.263%204.5%204.5%200%200%201-1.945.429c-.885%200-1.724-.21-2.495-.632l-.017-.01a5%205%200%200%201-1.081-.836%201.255%201.255%200%200%201-1.254%201.312h-1.81a1.255%201.255%200%200%201-1.228-.99l-.782-3.625-2.044%203.939a1.25%201.25%200%200%201-1.115.676h-.098a1.25%201.25%200%200%201-1.116-.68l-2.061-3.994zM35.92%2016.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033%201.332h1.678V9.242h-1.694l-.033%201.267q-.133-.329-.526-.658l-.032-.028a3.2%203.2%200%200%200-.668-.428l-.27-.12a3.3%203.3%200%200%200-1.235-.23q-1.136-.001-1.974.493a3.36%203.36%200%200%200-1.3%201.382q-.445.89-.444%202.074%200%201.2.51%202.107a3.8%203.8%200%200%200%201.382%201.381%203.9%203.9%200%200%200%201.893.477q.795%200%201.455-.33zm-2.789-5.38q-.576.675-.575%201.762%200%201.102.559%201.794.576.675%201.645.675a2.25%202.25%200%200%200%20.934-.19%202.2%202.2%200%200%200%20.468-.29l.178-.161a2.2%202.2%200%200%200%20.397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2%202.2%200%200%200-.633-.709l-.13-.086-.047-.028a2.1%202.1%200%200%200-1.073-.285q-1.052%200-1.629.692zm2.316%202.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96%200%200%200-.353-.389.85.85%200%200%200-.464-.127c-.4%200-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945%200%20.506.122.801.27.99.097.11.266.224.68.224.303%200%20.504-.09.687-.269zm7.545%201.705a2.6%202.6%200%200%200%20.331.423q.319.33.755.548l.173.074q.65.255%201.49.255%201.02%200%201.844-.493a3.45%203.45%200%200%200%201.316-1.4q.493-.904.493-2.089%200-1.909-.988-2.913-.988-1.02-2.584-1.02-.898%200-1.575.347a3%203%200%200%200-.415.262l-.199.166a3.4%203.4%200%200%200-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296%201.119.297%201.07%200%201.645-.675.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.435%200-.835.16a2%202%200%200%200-.284.136%202%202%200%200%200-.363.254%202.2%202.2%200%200%200-.46.569l-.082.162a2.6%202.6%200%200%200-.213%201.072v.115q0%20.707.296%201.267l.135.211zm.964-.818a1.1%201.1%200%200%200%20.367.385.94.94%200%200%200%20.476.118c.423%200%20.59-.117.687-.23.159-.194.28-.478.28-.95%200-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1%201%200%200%200-.503.135l-.012.007a.86.86%200%200%200-.335.343c-.073.133-.132.324-.132.614v.115a1.4%201.4%200%200%200%20.14.66zm15.7-6.222q.347-.346.346-.856a1.05%201.05%200%200%200-.345-.79%201.18%201.18%200%200%200-.84-.329q-.51%200-.855.33a1.05%201.05%200%200%200-.346.79q0%20.51.346.855.345.346.856.346.51%200%20.839-.346zm4.337%209.314.033-1.332q.191.403.59.747l.098.081a4%204%200%200%200%20.316.224l.223.122a3.2%203.2%200%200%200%201.44.322%203.8%203.8%200%200%200%201.875-.477%203.5%203.5%200%200%200%201.382-1.366q.527-.89.526-2.09%200-1.184-.444-2.073a3.24%203.24%200%200%200-1.283-1.399q-.823-.51-1.942-.51a3.5%203.5%200%200%200-1.527.344l-.086.043-.165.09a3%203%200%200%200-.33.214q-.432.315-.656.707a2%202%200%200%200-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5%202.5%200%200%200%20.566.7q.117.098.245.18l.144.08a2.1%202.1%200%200%200%20.975.232q1.07%200%201.645-.675.576-.69.576-1.778%200-1.102-.576-1.777-.56-.691-1.645-.692a2.2%202.2%200%200%200-1.015.235q-.22.113-.415.282l-.15.142a2.1%202.1%200%200%200-.42.594q-.223.479-.223%201.1v.115q0%20.705.293%201.26zm2.616-.293c.157-.191.28-.479.28-.967%200-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87%200%200%200-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0%20.285.057.499.144.669a1.1%201.1%200%200%200%20.367.405c.137.082.28.123.455.123.423%200%20.59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493%200%20.642.099l.247-1.794q-.196-.099-.717-.099a2.3%202.3%200%200%200-.545.063%202%202%200%200%200-.411.148%202.2%202.2%200%200%200-.4.249%202.5%202.5%200%200%200-.485.499%202.7%202.7%200%200%200-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5%201.5%200%200%201%20.466-.636%202.5%202.5%200%200%201%20.399-.253%202%202%200%200%201%20.224-.099zm9.784%202.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46%203.46%200%200%200-1.4%201.382q-.493.906-.493%202.106%200%201.07.428%201.975.428.89%201.332%201.432.906.526%202.255.526.973%200%201.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954%200-1.497-.444a1.6%201.6%200%200%201-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1%201%200%200%200-.156-.176q-.46-.428-1.316-.428-.986%200-1.494.604-.379.45-.494%201.234zm-27.053%202.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z%22%2F%3E%3Cpath%20fill%3D%22%23fff%22%20d%3D%22m19.63%2011.151-.757-1.71-.345%201.71-1.12%205.644h-1.827L18.083%204.7h.197l3.325%206.533.988%202.19.988-2.19L26.839%204.7h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.93%205.644h-.098l-2.913-5.644zm14.836%205.81q-1.02%200-1.893-.478a3.8%203.8%200%200%201-1.381-1.382q-.51-.906-.51-2.106%200-1.185.444-2.074a3.36%203.36%200%200%201%201.3-1.382q.839-.494%201.974-.494a3.3%203.3%200%200%201%201.234.231%203.3%203.3%200%200%201%20.97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02%201.053a3.17%203.17%200%200%201-1.662.444zm.296-1.482q.938%200%201.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2%202.2%200%200%200-.807-.872%202.1%202.1%200%200%200-1.119-.313q-1.053%200-1.629.692-.575.675-.575%201.76%200%201.103.559%201.795.577.675%201.645.675zm6.521-6.237h1.711v1.4q.906-1.597%202.83-1.597%201.596%200%202.584%201.02.988%201.005.988%202.914%200%201.185-.493%202.09a3.46%203.46%200%200%201-1.316%201.399%203.5%203.5%200%200%201-1.844.493q-.954%200-1.662-.329a2.67%202.67%200%200%201-1.086-.97l.017%205.134h-1.728zm4.048%206.22q1.07%200%201.645-.674.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.592%200-1.12.296-.51.28-.822.823-.296.527-.296%201.234v.115q0%20.708.296%201.267.313.543.823.855.51.296%201.119.297z%22%2F%3E%3Cpath%20fill%3D%22%23e1e3e9%22%20d%3D%22M51.325%204.7h1.86v10.45h3.473v1.646h-5.333zm7.12%204.542h1.843v7.553h-1.843zm.905-1.415a1.16%201.16%200%200%201-.856-.346%201.17%201.17%200%200%201-.346-.856%201.05%201.05%200%200%201%20.346-.79q.346-.329.856-.329.494%200%20.839.33a1.05%201.05%200%200%201%20.345.79%201.16%201.16%200%200%201-.345.855q-.33.346-.84.346zm7.875%209.133a3.17%203.17%200%200%201-1.662-.444q-.723-.46-1.004-1.053l-.033%201.332h-1.71V4.701h1.743v4.657l-.082%201.283q.279-.658%201.086-1.119a3.5%203.5%200%200%201%201.778-.477q1.119%200%201.942.51a3.24%203.24%200%200%201%201.283%201.4q.445.888.444%202.072%200%201.201-.526%202.09a3.5%203.5%200%200%201-1.382%201.366%203.8%203.8%200%200%201-1.876.477zm-.296-1.481q1.069%200%201.645-.675.577-.69.577-1.778%200-1.102-.577-1.776-.56-.691-1.645-.692a2.12%202.12%200%200%200-1.58.659q-.642.641-.642%201.694v.115q0%20.71.296%201.267a2.4%202.4%200%200%200%20.807.872%202.1%202.1%200%200%200%201.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14%202.14%200%200%201%201.349-.46q.527%200%20.724.098l-.247%201.794q-.149-.099-.642-.099-.774%200-1.416.494-.626.493-.626%201.58v3.883h-1.777V9.242zm9.534%207.718q-1.35%200-2.255-.526-.904-.543-1.332-1.432a4.6%204.6%200%200%201-.428-1.975q0-1.2.493-2.106a3.46%203.46%200%200%201%201.4-1.382q.889-.495%202.007-.494%201.744%200%202.584.97.855.956.856%202.7%200%20.444-.05.92h-5.43q.18%201.005.708%201.45.542.443%201.497.443.79%200%201.3-.131a4%204%200%200%200%20.938-.362l.542%201.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728%200-1.991%201.86z%22%2F%3E%3Cpath%20d%3D%22M5.074%2015.948a.484.657%200%200%200-.486.659v1.84a.484.657%200%200%200%20.486.659h4.101a.484.657%200%200%200%20.486-.659v-1.84a.484.657%200%200%200-.486-.659zm3.56%201.16H5.617v.838h3.017z%22%20style%3D%22fill%3A%23fff%3Bfill-rule%3Aevenodd%3Bstroke-width%3A1.03600001%22%2F%3E%3Cg%20style%3D%22stroke-width%3A1.12603545%22%3E%3Cpath%20d%3D%22M-9.408-1.416c-3.833-.025-7.056%202.912-7.08%206.615-.02%203.08%201.653%204.832%203.107%206.268.903.892%201.721%201.74%202.32%202.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87%201.87%200%200%200-.362%201.121l-.011%201.877c-.003.402.104.787.347%201.125.244.338.688.653%201.23.656l4.142.028c.542.003.99-.306%201.238-.641a1.87%201.87%200%200%200%20.363-1.121l.012-1.875a1.87%201.87%200%200%200-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145%201.425-1.983%202.348-2.87%201.473-1.414%203.18-3.149%203.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006%201.1v.002c3.274.02%205.92%202.532%205.9%205.6-.017%202.706-1.39%204.026-2.863%205.44-1.034.994-2.118%202.033-2.814%203.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34%200%200%201-.226.084.34.34%200%200%201-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067%202.7-5.545%205.975-5.523m-.02%202.826c-1.62-.01-2.944%201.315-2.955%202.96-.01%201.646%201.295%202.988%202.916%202.999h.002c1.621.01%202.943-1.316%202.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005%201.1c1.017.006%201.829.83%201.822%201.89s-.83%201.874-1.848%201.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874%201.848-1.868m-2.155%2011.857%204.14.025c.271.002.49.305.487.676l-.013%201.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668%22%20style%3D%22color%3A%23000%3Bfont-style%3Anormal%3Bfont-variant%3Anormal%3Bfont-weight%3A400%3Bfont-stretch%3Anormal%3Bfont-size%3Amedium%3Bline-height%3Anormal%3Bfont-family%3Asans-serif%3Bfont-variant-ligatures%3Anormal%3Bfont-variant-position%3Anormal%3Bfont-variant-caps%3Anormal%3Bfont-variant-numeric%3Anormal%3Bfont-variant-alternates%3Anormal%3Bfont-feature-settings%3Anormal%3Btext-indent%3A0%3Btext-align%3Astart%3Btext-decoration%3Anone%3Btext-decoration-line%3Anone%3Btext-decoration-style%3Asolid%3Btext-decoration-color%3A%23000%3Bletter-spacing%3Anormal%3Bword-spacing%3Anormal%3Btext-transform%3Anone%3Bwriting-mode%3Alr-tb%3Bdirection%3Altr%3Btext-orientation%3Amixed%3Bdominant-baseline%3Aauto%3Bbaseline-shift%3Abaseline%3Btext-anchor%3Astart%3Bwhite-space%3Anormal%3Bshape-padding%3A0%3Bclip-rule%3Aevenodd%3Bdisplay%3Ainline%3Boverflow%3Avisible%3Bvisibility%3Avisible%3Bopacity%3A1%3Bisolation%3Aauto%3Bmix-blend-mode%3Anormal%3Bcolor-interpolation%3AsRGB%3Bcolor-interpolation-filters%3AlinearRGB%3Bsolid-color%3A%23000%3Bsolid-opacity%3A1%3Bvector-effect%3Anone%3Bfill%3A%23000%3Bfill-opacity%3A.4%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-linecap%3Abutt%3Bstroke-linejoin%3Amiter%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-dashoffset%3A0%3Bstroke-opacity%3A1%3Bcolor-rendering%3Aauto%3Bimage-rendering%3Aauto%3Bshape-rendering%3Aauto%3Btext-rendering%3Aauto%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-9.415-.316C-12.69-.338-15.37%202.14-15.39%205.207c-.017%202.716%201.326%204.041%202.78%205.477%201.013%201%202.081%202.055%202.78%203.67l.092.076a.34.34%200%200%200%20.225.086.34.34%200%200%200%20.227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6%201.78-2.64%202.814-3.634%201.473-1.414%202.847-2.733%202.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057%208.784c1.621.011%202.944-1.315%202.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945%201.315-2.955%202.96s1.295%202.989%202.916%203%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23e1e3e9%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-11.594%2015.465c-.27-.002-.492.297-.494.668l-.012%201.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23fff%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl.maplibregl-ctrl-attrib{padding:0 5px;background-color:hsla(0,0%,100%,.5);margin:0}@media screen{.maplibregl-ctrl-attrib.maplibregl-compact{min-height:20px;padding:2px 24px 2px 0;margin:10px;position:relative;background-color:#fff;color:#000;border-radius:12px;box-sizing:content-box}.maplibregl-ctrl-attrib.maplibregl-compact-show{padding:2px 28px 2px 8px;visibility:visible}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact-show,.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact-show{padding:2px 8px 2px 28px;border-radius:12px}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-inner{display:none}.maplibregl-ctrl-attrib-button{display:none;cursor:pointer;position:absolute;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20fill-rule%3D%22evenodd%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M4%2010a6%206%200%201%200%2012%200%206%206%200%201%200-12%200m5-3a1%201%200%201%200%202%200%201%201%200%201%200-2%200m0%203a1%201%200%201%201%202%200v3a1%201%200%201%201-2%200%22%2F%3E%3C%2Fsvg%3E");background-color:hsla(0,0%,100%,.5);width:24px;height:24px;box-sizing:border-box;border-radius:12px;outline:none;top:0;right:0;border:0}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;list-style:none}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button::-webkit-details-marker{display:none}.maplibregl-ctrl-bottom-left .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-top-left .maplibregl-ctrl-attrib-button{left:0}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-inner{display:block}.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-button{background-color:rgba(0,0,0,.05)}.maplibregl-ctrl-bottom-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;right:0}.maplibregl-ctrl-top-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{top:0;right:0}.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{top:0;left:0}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;left:0}}@media screen and (forced-colors:active){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22%23fff%22%20fill-rule%3D%22evenodd%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M4%2010a6%206%200%201%200%2012%200%206%206%200%201%200-12%200m5-3a1%201%200%201%200%202%200%201%201%200%201%200-2%200m0%203a1%201%200%201%201%202%200v3a1%201%200%201%201-2%200%22%2F%3E%3C%2Fsvg%3E")}}@media screen and (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20fill-rule%3D%22evenodd%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M4%2010a6%206%200%201%200%2012%200%206%206%200%201%200-12%200m5-3a1%201%200%201%200%202%200%201%201%200%201%200-2%200m0%203a1%201%200%201%201%202%200v3a1%201%200%201%201-2%200%22%2F%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl-attrib a{color:rgba(0,0,0,.75);text-decoration:none}.maplibregl-ctrl-attrib a:hover{color:inherit;text-decoration:underline}.maplibregl-attrib-empty{display:none}.maplibregl-ctrl-scale{background-color:hsla(0,0%,100%,.75);font-size:10px;white-space:nowrap;border-color:#333;border-style:none solid solid;border-width:medium 2px 2px;padding:0 5px;color:#333;box-sizing:border-box}.maplibregl-popup{position:absolute;top:0;left:0;display:flex;will-change:transform;pointer-events:none}.maplibregl-popup-anchor-top,.maplibregl-popup-anchor-top-left,.maplibregl-popup-anchor-top-right{flex-direction:column}.maplibregl-popup-anchor-bottom,.maplibregl-popup-anchor-bottom-left,.maplibregl-popup-anchor-bottom-right{flex-direction:column-reverse}.maplibregl-popup-anchor-left{flex-direction:row}.maplibregl-popup-anchor-right{flex-direction:row-reverse}.maplibregl-popup-tip{width:0;height:0;border:10px solid transparent;z-index:1}.maplibregl-popup-anchor-top .maplibregl-popup-tip{align-self:center;border-top:none;border-bottom-color:#fff}.maplibregl-popup-anchor-top-left .maplibregl-popup-tip{align-self:flex-start;border-top:none;border-left:none;border-bottom-color:#fff}.maplibregl-popup-anchor-top-right .maplibregl-popup-tip{align-self:flex-end;border-top:none;border-right:none;border-bottom-color:#fff}.maplibregl-popup-anchor-bottom .maplibregl-popup-tip{align-self:center;border-bottom:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip{align-self:flex-start;border-bottom:none;border-left:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip{align-self:flex-end;border-bottom:none;border-right:none;border-top-color:#fff}.maplibregl-popup-anchor-left .maplibregl-popup-tip{align-self:center;border-left:none;border-right-color:#fff}.maplibregl-popup-anchor-right .maplibregl-popup-tip{align-self:center;border-right:none;border-left-color:#fff}[dir=rtl] .maplibregl-popup-anchor-left{flex-direction:row-reverse}[dir=rtl] .maplibregl-popup-anchor-right{flex-direction:row}[dir=rtl] .maplibregl-popup-anchor-top-left .maplibregl-popup-tip{align-self:flex-end}[dir=rtl] .maplibregl-popup-anchor-top-right .maplibregl-popup-tip{align-self:flex-start}[dir=rtl] .maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip{align-self:flex-end}[dir=rtl] .maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip{align-self:flex-start}.maplibregl-popup-close-button{position:absolute;right:0;top:0;border:0;border-radius:0 3px 0 0;cursor:pointer;background-color:transparent}.maplibregl-popup-close-button:hover{background-color:rgba(0,0,0,.05)}.maplibregl-popup-content{position:relative;background:#fff;border-radius:3px;box-shadow:0 1px 2px rgba(0,0,0,.1);padding:15px 10px;pointer-events:auto}.maplibregl-popup-anchor-top-left .maplibregl-popup-content{border-top-left-radius:0}.maplibregl-popup-anchor-top-right .maplibregl-popup-content{border-top-right-radius:0}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-content{border-bottom-left-radius:0}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-content{border-bottom-right-radius:0}.maplibregl-popup-track-pointer{display:none}.maplibregl-popup-track-pointer *{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-map:hover .maplibregl-popup-track-pointer{display:flex}.maplibregl-map:active .maplibregl-popup-track-pointer{display:none}.maplibregl-marker{position:absolute;top:0;left:0;will-change:transform;transition:opacity .2s}.maplibregl-marker-draggable{cursor:grab}.maplibregl-user-location-dot,.maplibregl-user-location-dot:before{background-color:#1da1f2;width:15px;height:15px;border-radius:50%}.maplibregl-user-location-dot:before{content:"";position:absolute;animation:maplibregl-user-location-dot-pulse 2s infinite}.maplibregl-user-location-dot:after{border-radius:50%;border:2px solid #fff;content:"";height:19px;left:-2px;position:absolute;top:-2px;width:19px;box-sizing:border-box;box-shadow:0 0 3px rgba(0,0,0,.35)}@media (prefers-reduced-motion:reduce){.maplibregl-user-location-dot:before{animation:none}}@keyframes maplibregl-user-location-dot-pulse{0%{transform:scale(1);opacity:1}70%{transform:scale(3);opacity:0}to{transform:scale(1);opacity:0}}.maplibregl-user-location-dot-stale{background-color:#aaa}.maplibregl-user-location-dot-stale:after{display:none}.maplibregl-user-location-accuracy-circle{background-color:#1da1f233;width:1px;height:1px;border-radius:100%}.maplibregl-crosshair,.maplibregl-crosshair .maplibregl-interactive,.maplibregl-crosshair .maplibregl-interactive:active{cursor:crosshair}.maplibregl-boxzoom{position:absolute;top:0;left:0;width:0;height:0;background:#fff;border:2px dotted #202020;opacity:.5}.maplibregl-cooperative-gesture-screen{background:rgba(0,0,0,.4);position:absolute;inset:0;display:flex;justify-content:center;align-items:center;color:#fff;padding:1rem;font-size:1.4em;line-height:1.2;opacity:0;pointer-events:none;transition:opacity 1s ease 1s;z-index:99999}.maplibregl-cooperative-gesture-screen.maplibregl-show{opacity:1;transition:opacity .05s}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:none}@media (hover:none),(pointer:coarse){.maplibregl-cooperative-gesture-screen .maplibregl-desktop-message{display:none}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:block}}.maplibregl-pseudo-fullscreen{position:fixed!important;width:100%!important;height:100%!important;top:0!important;left:0!important;z-index:99999}`; document.head.appendChild(e58); } @@ -23934,6 +23934,55 @@ var Plotly = (() => { var FIND_TEX = /([^$]*)([$]+[^$]*[$]+)([^$]*)/; var matchTex = (str) => str ? str.match(FIND_TEX) : null; exports.matchTex = matchTex; + var isPureTex = (str) => { + var tex = matchTex(str); + return !!tex && !tex[1] && !tex[3]; + }; + exports.isPureTex = isPureTex; + function positionMathGroup(_context, svgClass, mathjaxGroup, newSvg, textAnchor, fontSize, width0, height0) { + var g2 = newSvg.select("g"); + var bb2 = g2.node().getBoundingClientRect(); + var w2 = bb2.width; + var h2 = bb2.height; + var w0 = width0 === void 0 ? w2 : width0; + var h0 = height0 === void 0 ? h2 : height0; + if (w2 > w0 || h2 > h0) { + newSvg.style("overflow", "hidden"); + bb2 = newSvg.node().getBoundingClientRect(); + w2 = bb2.width; + h2 = bb2.height; + } + var x2 = +_context.attr("x"); + var y2 = +_context.attr("y"); + var textHeight = fontSize || _context.node().getBoundingClientRect().height; + var dy = -textHeight / 4; + if (svgClass[0] === "y") { + mathjaxGroup.attr({ + transform: "rotate(" + [-90, x2, y2] + ")" + strTranslate(-w2 / 2, dy - h2 / 2) + }); + } else if (svgClass[0] === "l") { + y2 = dy - h2 / 2; + } else if (svgClass[0] === "a" && svgClass.indexOf("atitle") !== 0) { + x2 = 0; + y2 = dy; + } else { + x2 = x2 - w2 * (textAnchor === "middle" ? 0.5 : textAnchor === "end" ? 1 : 0); + y2 = y2 + dy - h2 / 2; + } + newSvg.attr({ + x: x2, + y: y2 + }); + } + function sanitizeMathJaxLinks(newSvg) { + newSvg.selectAll("a").each(function() { + var a2 = d3.select(this); + ["href", "xlink:href"].forEach(function(attrName) { + var href = a2.attr(attrName); + if (href) a2.attr(attrName, sanitizeHref(href) || null); + }); + }); + } exports.convertToTspans = function(_context, gd3, _callback) { var str = _context.text(); var tex = !_context.attr("data-notex") && gd3 && gd3._context.typesetMath && matchTex(str); @@ -23987,6 +24036,7 @@ var Plotly = (() => { "data-math": "Y" }); mathjaxGroup.node().appendChild(newSvg.node()); + sanitizeMathJaxLinks(newSvg); if (_glyphDefs && _glyphDefs.node()) { newSvg.node().insertBefore( _glyphDefs.node().cloneNode(true), @@ -24007,36 +24057,7 @@ var Plotly = (() => { var fill = _context.node().style.fill || "black"; var g2 = newSvg.select("g"); g2.attr({ fill, stroke: fill }); - var bb2 = g2.node().getBoundingClientRect(); - var w2 = bb2.width; - var h2 = bb2.height; - if (w2 > w0 || h2 > h0) { - newSvg.style("overflow", "hidden"); - bb2 = newSvg.node().getBoundingClientRect(); - w2 = bb2.width; - h2 = bb2.height; - } - var x2 = +_context.attr("x"); - var y2 = +_context.attr("y"); - var textHeight = fontSize || _context.node().getBoundingClientRect().height; - var dy = -textHeight / 4; - if (svgClass[0] === "y") { - mathjaxGroup.attr({ - transform: "rotate(" + [-90, x2, y2] + ")" + strTranslate(-w2 / 2, dy - h2 / 2) - }); - } else if (svgClass[0] === "l") { - y2 = dy - h2 / 2; - } else if (svgClass[0] === "a" && svgClass.indexOf("atitle") !== 0) { - x2 = 0; - y2 = dy; - } else { - x2 = x2 - w2 * (textAnchor === "middle" ? 0.5 : textAnchor === "end" ? 1 : 0); - y2 = y2 + dy - h2 / 2; - } - newSvg.attr({ - x: x2, - y: y2 - }); + positionMathGroup(_context, svgClass, mathjaxGroup, newSvg, textAnchor, fontSize, w0, h0); if (_callback) _callback.call(_context, mathjaxGroup); resolve(mathjaxGroup); }); @@ -24044,6 +24065,24 @@ var Plotly = (() => { } else showText(); return _context; }; + exports.repositionMathGroup = function(_context) { + if (_context.empty()) return; + var svgClass = (_context.attr("class") ? _context.attr("class").split(" ")[0] : "text") + "-math"; + var parent = d3.select(_context.node().parentNode); + var mathjaxGroup = parent.select("g." + svgClass + "-group"); + var newSvg = mathjaxGroup.select("svg." + svgClass); + if (mathjaxGroup.empty() || newSvg.empty()) return; + var textAnchor = _context.attr("text-anchor"); + var fontSize = parseInt(_context.node().style.fontSize, 10); + positionMathGroup(_context, svgClass, mathjaxGroup, newSvg, textAnchor, fontSize); + }; + exports.getMathOrTextNode = function(textSel) { + var node = textSel.node(); + if (!node) return null; + var svgClass = (textSel.attr("class") ? textSel.attr("class").split(" ")[0] : "text") + "-math"; + var mathGroup = d3.select(node.parentNode).select("g." + svgClass + "-group"); + return mathGroup.empty() ? node : mathGroup.node(); + }; var LT_MATCH = /(<|<|<)/g; var GT_MATCH = /(>|>|>)/g; function cleanEscapesForTex(s2) { @@ -30809,6 +30848,10 @@ var Plotly = (() => { if (((_b3 = ax2.minor) == null ? void 0 : _b3._tick0Init) === void 0) { mockAx.tick0 = ax2.tick0; } + if (ax2._useTicklabelIndex) { + autoTickRound(mockAx); + ax2.minor._tickround = mockAx._tickround; + } }; function isMultiple(bigger, smaller) { return Math.abs((bigger / smaller + 0.5) % 1 - 0.5) < 1e-3; @@ -30896,24 +30939,32 @@ var Plotly = (() => { function positionPeriodTicks(tickVals, ax2, definedDelta) { for (var i2 = 0; i2 < tickVals.length; i2++) { var v2 = tickVals[i2].value; - var a2 = i2; - var b2 = i2 + 1; - if (i2 < tickVals.length - 1) { - a2 = i2; - b2 = i2 + 1; - } else if (i2 > 0) { - a2 = i2 - 1; - b2 = i2; - } else { - a2 = i2; - b2 = i2; - } - var A3 = tickVals[a2].value; - var B3 = tickVals[b2].value; + var A3, B3; + if (tickVals[i2].periodEndTick != null) { + A3 = tickVals[i2].value; + B3 = tickVals[i2].periodEndTick.value; + } else { + var a2 = i2; + var b2 = i2 + 1; + if (i2 < tickVals.length - 1) { + a2 = i2; + b2 = i2 + 1; + } else if (i2 > 0) { + a2 = i2 - 1; + b2 = i2; + } else { + a2 = i2; + b2 = i2; + } + A3 = tickVals[a2].value; + B3 = tickVals[b2].value; + } var actualDelta = Math.abs(B3 - A3); var delta = definedDelta || actualDelta; var periodLength = 0; - if (delta >= ONEMINYEAR2) { + if (tickVals[i2].periodEndTick != null) { + periodLength = actualDelta; + } else if (delta >= ONEMINYEAR2) { if (actualDelta >= ONEMINYEAR2 && actualDelta <= ONEMAXYEAR2) { periodLength = actualDelta; } else { @@ -30972,6 +31023,7 @@ var Plotly = (() => { var isPeriod = ax2.ticklabelmode === "period"; var isReversed = ax2.range[0] > ax2.range[1]; var ticklabelIndex = !ax2.ticklabelindex || Lib.isArrayOrTypedArray(ax2.ticklabelindex) ? ax2.ticklabelindex : [ax2.ticklabelindex]; + ax2._useTicklabelIndex = ticklabelIndex != null && ticklabelIndex !== 0; var rng = Lib.simpleMap(ax2.range, ax2.r2l, void 0, void 0, opts); var axrev = rng[1] < rng[0]; var minRange = Math.min(rng[0], rng[1]); @@ -30983,7 +31035,7 @@ var Plotly = (() => { var minorTickVals = []; var allTicklabelVals = []; var hasMinor = ax2.minor && (ax2.minor.ticks || ax2.minor.showgrid); - var calcMinor = hasMinor || ticklabelIndex; + var calcMinor = hasMinor || ax2._useTicklabelIndex; for (var major = 1; major >= (calcMinor ? 0 : 1); major--) { var isMinor = !major; if (major) { @@ -31053,7 +31105,7 @@ var Plotly = (() => { x2 = axes.tickIncrement(x2, dtick, !axrev, calendar); } } - if ((major || ticklabelIndex) && isPeriod) { + if ((major || ax2._useTicklabelIndex) && isPeriod) { x2 = axes.tickIncrement(x2, dtick, !axrev, calendar); if (major) majorId--; } @@ -31088,72 +31140,82 @@ var Plotly = (() => { } } } + function findOverlappingTick(minorTick, majorTicks) { + const majorTick = majorTicks.find((majorTick2) => majorTick2.value === minorTick.value); + if (majorTick != null) { + return majorTick; + } + const epsilon3 = 1e7; + for (let i3 = 0; i3 < majorTicks.length; i3++) { + if (epsilon3 + majorTicks[i3].value === epsilon3 + minorTick.value) { + return majorTicks[i3]; + } + } + return null; + } + ; if (!minorTickVals || minorTickVals.length < 3) { - ticklabelIndex = false; + ax2._useTicklabelIndex = false; } else { - var diff = (minorTickVals[2].value - minorTickVals[1].value) * (isReversed ? -1 : 1); + const diff = (minorTickVals[2].value - minorTickVals[1].value) * (isReversed ? -1 : 1); if (!periodCompatibleWithTickformat(diff, ax2.tickformat)) { - ticklabelIndex = false; + ax2._useTicklabelIndex = false; minorTickVals = minorTickVals.slice(1); } } - if (!ticklabelIndex) { + if (!ax2._useTicklabelIndex) { allTicklabelVals = tickVals; } else { - var allTickVals = tickVals.concat(minorTickVals); + const filteredMinors = minorTickVals.filter((minor) => findOverlappingTick(minor, tickVals) == null); + const labelTickValsAscending = tickVals.concat(filteredMinors).sort((a2, b2) => a2.value - b2.value); if (isPeriod && tickVals.length) { - allTickVals = allTickVals.slice(1); - } - allTickVals = allTickVals.sort(function(a2, b2) { - return a2.value - b2.value; - }).filter(function(tick, index, self2) { - return index === 0 || tick.value !== self2[index - 1].value; - }); - var majorTickIndices = allTickVals.map(function(item, index) { - return item.minor === void 0 && !item.skipLabel ? index : null; - }).filter(function(index) { - return index !== null; - }); - majorTickIndices.forEach(function(majorIdx) { - ticklabelIndex.map(function(nextLabelIdx) { - var minorIdx = majorIdx + nextLabelIdx; - if (minorIdx >= 0 && minorIdx < allTickVals.length) { - Lib.pushUnique(allTicklabelVals, allTickVals[minorIdx]); - } - }); - }); - tickVals.forEach(function(tick) { - tick.skipLabel = allTicklabelVals.indexOf(tick) === -1; + tickVals[0].skipLabel = true; + } + tickVals.forEach(function(majorTick) { + if (!majorTick.skipLabel) { + ticklabelIndex.forEach((labelIndex) => { + if (labelIndex < 0) { + const smallerTicks = labelTickValsAscending.filter((minorTick) => minorTick.value <= majorTick.value); + const absLabelIndex = Math.abs(labelIndex); + const labeledTickIndex = smallerTicks.length - absLabelIndex - 1; + if (absLabelIndex < smallerTicks.length) { + const tickToLabel = smallerTicks[labeledTickIndex]; + allTicklabelVals.push(tickToLabel); + if (isPeriod) { + tickToLabel.periodEndTick = smallerTicks[labeledTickIndex + 1]; + } + } + } else { + const largerTicks = labelTickValsAscending.filter((minorTick) => minorTick.value >= majorTick.value); + if (labelIndex < largerTicks.length) { + const tickToLabel = largerTicks[labelIndex]; + allTicklabelVals.push(tickToLabel); + if (isPeriod && largerTicks[labelIndex + 1]) { + tickToLabel.periodEndTick = largerTicks[labelIndex + 1]; + } + } + } + }); + majorTick.skipLabel = true; + } }); + allTicklabelVals.forEach((t6) => t6.skipLabel = false); } if (hasMinor) { - var canOverlap = ax2.minor.ticks === "inside" && ax2.ticks === "outside" || ax2.minor.ticks === "outside" && ax2.ticks === "inside"; - if (!canOverlap) { - var majorValues = tickVals.map(function(d2) { - return d2.value; - }); + var allowedToOverlap = ax2.minor.ticks === "inside" && ax2.ticks === "outside" || ax2.minor.ticks === "outside" && ax2.ticks === "inside"; + if (!allowedToOverlap) { var list = []; for (var k2 = 0; k2 < minorTickVals.length; k2++) { - var T2 = minorTickVals[k2]; - var v2 = T2.value; - if (majorValues.indexOf(v2) !== -1) { - continue; + if (findOverlappingTick(minorTickVals[k2], tickVals) == null) { + list.push(minorTickVals[k2]); } - var found = false; - for (var q3 = 0; !found && q3 < tickVals.length; q3++) { - if ( - // add 10e6 to eliminate problematic digits - 1e7 + tickVals[q3].value === 1e7 + v2 - ) { - found = true; - } - } - if (!found) list.push(T2); } minorTickVals = list; } } - if (isPeriod) positionPeriodTicks(allTicklabelVals, ax2, ax2._definedDelta); + if (isPeriod) { + positionPeriodTicks(allTicklabelVals, ax2, ax2._definedDelta); + } var i2; if (ax2.rangebreaks) { var flip = ax2._id.charAt(0) === "y"; @@ -31216,7 +31278,7 @@ var Plotly = (() => { var _minor = tickVals[i2].minor; var _value = tickVals[i2].value; if (_minor) { - if (ticklabelIndex && allTicklabelVals.indexOf(tickVals[i2]) !== -1) { + if (ax2._useTicklabelIndex && allTicklabelVals.indexOf(tickVals[i2]) !== -1) { t5 = setTickLabel(ax2, tickVals[i2]); } else { t5 = { x: _value }; @@ -31232,7 +31294,7 @@ var Plotly = (() => { ticksOut.push(t5); } } - if (isPeriod && ticklabelIndex && minorTicks.length) { + if (isPeriod && ax2._useTicklabelIndex && minorTicks.length) { minorTicks[0].noTick = true; } ticksOut = ticksOut.concat(minorTicks); @@ -31601,7 +31663,7 @@ var Plotly = (() => { }; } function formatDate(ax2, out, hover, extraPrecision) { - var tr2 = ax2._tickround; + var tr2 = ax2._useTicklabelIndex ? ax2.minor._tickround : ax2._tickround; var fmt = hover && ax2.hoverformat || axes.getTickFormat(ax2); extraPrecision = !fmt && extraPrecision; if (extraPrecision) { @@ -33936,12 +33998,44 @@ var Plotly = (() => { } }); + // src/components/legend/constants.ts + var constants_exports3 = {}; + __export(constants_exports3, { + dfltFillHeight: () => dfltFillHeight, + itemGap: () => itemGap, + itemHeightPad: () => itemHeightPad, + itemMinHeight: () => itemMinHeight, + scrollBarColor: () => scrollBarColor, + scrollBarEnterAttrs: () => scrollBarEnterAttrs, + scrollBarMargin: () => scrollBarMargin, + scrollBarMinHeight: () => scrollBarMinHeight, + scrollBarWidth: () => scrollBarWidth, + titlePad: () => titlePad + }); + var scrollBarWidth, scrollBarMinHeight, scrollBarColor, scrollBarMargin, scrollBarEnterAttrs, titlePad, itemGap, dfltFillHeight, itemMinHeight, itemHeightPad; + var init_constants3 = __esm({ + "src/components/legend/constants.ts"() { + "use strict"; + scrollBarWidth = 6; + scrollBarMinHeight = 20; + scrollBarColor = "#808BA4"; + scrollBarMargin = 4; + scrollBarEnterAttrs = { rx: 20, ry: 3, width: 0, height: 0 }; + titlePad = 2; + itemGap = 5; + dfltFillHeight = 6; + itemMinHeight = 16; + itemHeightPad = 3; + } + }); + // src/components/legend/attributes.js var require_attributes9 = __commonJS({ "src/components/legend/attributes.js"(exports, module) { "use strict"; var fontAttrs = require_font_attributes(); var colorAttrs = require_attributes3(); + var { dfltFillHeight: dfltFillHeight2 } = (init_constants3(), __toCommonJS(constants_exports3)); module.exports = { // not really a 'subplot' attribute container, // but this is the flag we use to denote attributes that @@ -34025,6 +34119,12 @@ var Plotly = (() => { dflt: 30, editType: "legend" }, + itemheight: { + valType: "number", + min: dfltFillHeight2, + dflt: dfltFillHeight2, + editType: "legend" + }, itemclick: { valType: "enumerated", values: ["toggle", "toggleothers", false], @@ -34302,6 +34402,7 @@ var Plotly = (() => { coerce("indentation"); coerce("itemsizing"); coerce("itemwidth"); + coerce("itemheight"); coerce("itemclick"); coerce("itemdoubleclick"); const groupClick = coerce("groupclick"); @@ -34622,31 +34723,6 @@ var Plotly = (() => { } }); - // src/components/legend/constants.ts - var constants_exports3 = {}; - __export(constants_exports3, { - itemGap: () => itemGap, - scrollBarColor: () => scrollBarColor, - scrollBarEnterAttrs: () => scrollBarEnterAttrs, - scrollBarMargin: () => scrollBarMargin, - scrollBarMinHeight: () => scrollBarMinHeight, - scrollBarWidth: () => scrollBarWidth, - titlePad: () => titlePad - }); - var scrollBarWidth, scrollBarMinHeight, scrollBarColor, scrollBarMargin, scrollBarEnterAttrs, titlePad, itemGap; - var init_constants3 = __esm({ - "src/components/legend/constants.ts"() { - "use strict"; - scrollBarWidth = 6; - scrollBarMinHeight = 20; - scrollBarColor = "#808BA4"; - scrollBarMargin = 4; - scrollBarEnterAttrs = { rx: 20, ry: 3, width: 0, height: 0 }; - titlePad = 2; - itemGap = 5; - } - }); - // src/components/legend/get_legend_data.js var require_get_legend_data = __commonJS({ "src/components/legend/get_legend_data.js"(exports, module) { @@ -34891,6 +34967,7 @@ var Plotly = (() => { if (!legend) legend = fullLayout.legend; var constantItemSizing = legend.itemsizing === "constant"; var itemWidth = legend.itemwidth; + var itemHeight = legend.itemheight; var centerPos = (itemWidth + constants2.itemGap * 2) / 2; var centerTransform = strTranslate(centerPos, 0); var boundLineWidth = function(mlw, cont, max, cst) { @@ -34968,7 +35045,9 @@ var Plotly = (() => { var fill = this3.select(".legendfill").selectAll("path").data(showFill || showGradientFill ? [d2] : []); fill.enter().append("path").classed("js-fill", true); fill.exit().remove(); - fill.attr("d", pathStart + "h" + itemWidth + "v6h-" + itemWidth + "z").call(fillStyle); + fill.attr("d", pathStart + "h" + itemWidth + "v" + itemHeight + "h-" + itemWidth + "z").call(fillStyle); + const fillShiftY = showFill || showGradientFill ? (constants2.dfltFillHeight - itemHeight) / 2 : 0; + this3.selectAll("g.legendfill, g.legendlines, g.legendsymbols").attr("transform", fillShiftY ? strTranslate(0, fillShiftY) : null); if (showLine || showGradientLine) { var lw2 = boundLineWidth(void 0, trace.line, MAX_LINE_WIDTH, CST_LINE_WIDTH); tMod = Lib.minExtend(trace, { line: { width: lw2 } }); @@ -35128,14 +35207,18 @@ var Plotly = (() => { var fillColor = mcc || d0.mc || marker.color; var markerPattern = marker.pattern; var pAttr = Drawing.getPatternAttr; - var patternShape = markerPattern && (pAttr(markerPattern.shape, 0, "") || pAttr(markerPattern.path, 0, "")); + let patternIndex = 0; + if (legend._inHover && d0._distinct && d0.index != null) { + patternIndex = d0.index; + } + const patternShape = markerPattern && (pAttr(markerPattern.shape, patternIndex, "") || pAttr(markerPattern.path, patternIndex, "")); if (patternShape) { - var patternBGColor = pAttr(markerPattern.bgcolor, 0, null); - var patternFGColor = pAttr(markerPattern.fgcolor, 0, null); + const patternBGColor = pAttr(markerPattern.bgcolor, patternIndex, null); + const patternFGColor = pAttr(markerPattern.fgcolor, patternIndex, null); var patternFGOpacity = markerPattern.fgopacity; - var patternSize = dimAttr(markerPattern.size, 8, 10); - var patternSolidity = dimAttr(markerPattern.solidity, 0.5, 1); - var patternID = "legend-" + trace.uid; + const patternSize = legend._inHover ? dimAttr(pAttr(markerPattern.size, patternIndex, 8), 8, 10) : dimAttr(markerPattern.size, 8, 10); + const patternSolidity = legend._inHover ? dimAttr(pAttr(markerPattern.solidity, patternIndex, 0.5), 0.5, 1) : dimAttr(markerPattern.solidity, 0.5, 1); + const patternID = legend._inHover ? `hover-${trace.uid}-${patternIndex}` : `legend-${trace.uid}`; p2.call( Drawing.pattern, "legend", @@ -35957,7 +36040,7 @@ var Plotly = (() => { }); } function textLayout(s2, g2, gd3, legendObj, aTitle) { - if (legendObj._inHover) s2.attr("data-notex", true); + if (legendObj._inHover) s2.attr("data-notex", svgTextUtils.isPureTex(s2.text()) ? null : true); svgTextUtils.convertToTspans(s2, gd3, function() { computeTextDimensions(g2, gd3, legendObj, aTitle); }); @@ -36032,7 +36115,8 @@ var Plotly = (() => { legendObj._titleHeight = height; } else { legendItem.lineHeight = lineHeight; - legendItem.height = Math.max(height, 16) + 3; + const fillItemHeight = constants2.itemMinHeight + legendObj.itemheight - constants2.dfltFillHeight; + legendItem.height = Math.max(height, constants2.itemMinHeight, fillItemHeight) + constants2.itemHeightPad; legendItem.width = width; } } @@ -36224,6 +36308,13 @@ var Plotly = (() => { } Drawing.setRect(traceToggle, 0, -h2 / 2, w2, h2); }); + if (legendObj._inHover) { + const textRight = legendObj._width - bw22 - itemGap2 - titleSize[0]; + traces.each(function(d2) { + if (d2[0].textAlign !== "right") return; + d3.select(this).select("." + legendId + "text").attr("text-anchor", "end").call(svgTextUtils.positionText, textRight); + }); + } var titleEl = scrollBox.select("." + legendId + "titletext"); if (titleEl.node()) { horizontalAlignTitle(titleEl, legendObj, bw2); @@ -36427,28 +36518,47 @@ var Plotly = (() => { outerContainer: opts.outerContainer || opts.container }); var hoverLabel = hoverText.hoverLabels; - var tooltipSpacing = 5; - var lastBottomY = 0; - var anchor = 0; - hoverLabel.sort(function(a2, b2) { - return a2.y0 - b2.y0; - }).each(function(d2, i2) { - var topY = d2.y0 - d2.by / 2; - if (topY - tooltipSpacing < lastBottomY) { - d2.offset = lastBottomY - topY + tooltipSpacing; - } else { - d2.offset = 0; - } - lastBottomY = topY + d2.by + d2.offset; - if (i2 === opts.anchorIndex || 0) anchor = d2.offset; - }).each(function(d2) { - d2.offset -= anchor; - }); + function fixVerticalOverlap() { + var tooltipSpacing = 5; + var lastBottomY = 0; + var anchor = 0; + hoverLabel.sort(function(a2, b2) { + return a2.y0 - b2.y0; + }).each(function(d2, i2) { + var topY = d2.y0 - d2.by / 2; + if (topY - tooltipSpacing < lastBottomY) { + d2.offset = lastBottomY - topY + tooltipSpacing; + } else { + d2.offset = 0; + } + lastBottomY = topY + d2.by + d2.offset; + if (i2 === opts.anchorIndex || 0) anchor = d2.offset; + }).each(function(d2) { + d2.offset -= anchor; + }); + } var scaleX = gd3._fullLayout._invScaleX; var scaleY = gd3._fullLayout._invScaleY; + fixVerticalOverlap(); alignHoverText(hoverLabel, rotateLabels, scaleX, scaleY); + if (hoverText.mathjaxPromise) { + hoverText.mathjaxPromise.then(function() { + fixVerticalOverlap(); + alignHoverText(hoverLabel, rotateLabels, scaleX, scaleY); + hoverLabel.each(function() { + var g2 = d3.select(this); + svgTextUtils.repositionMathGroup(g2.select("text.nums")); + svgTextUtils.repositionMathGroup(g2.select("text.name")); + }); + }); + } return multiHover ? hoverLabel : hoverLabel.node(); }; + function canSpikeToNonHoveredPoint(xa3, ya3) { + return Boolean( + (xa3 == null ? void 0 : xa3.showspikes) && xa3.spikesnap !== "hovered data" || (ya3 == null ? void 0 : ya3.showspikes) && ya3.spikesnap !== "hovered data" + ); + } function _hover(gd3, evt, subplot, noHoverEvent, eventTarget) { if (!subplot) subplot = "xy"; if (typeof subplot === "string") { @@ -36461,6 +36571,7 @@ var Plotly = (() => { var plots = fullLayout._plots || []; var plotinfo = plots[subplot]; var hasCartesian = fullLayout._has("cartesian"); + var hasTernary = fullLayout._has("ternary"); var hovermode = evt.hovermode || fullLayout.hovermode; var hovermodeHasX = (hovermode || "").charAt(0) === "x"; var hovermodeHasY = (hovermode || "").charAt(0) === "y"; @@ -36523,6 +36634,7 @@ var Plotly = (() => { hLinePoint: null, vLinePoint: null }; + const ternarySpikePoints = {}; var hasOneHorizontalTrace = false; if (Array.isArray(evt)) { hovermode = "array"; @@ -36719,42 +36831,56 @@ var Plotly = (() => { hoverData.splice(0, closedataPreviousLength); distance = hoverData[0].distance; } - if (hasCartesian && spikedistance !== 0) { - if (hoverData.length === 0) { - pointData.distance = spikedistance; - pointData.index = false; - var closestPoints = trace._module.hoverPoints(pointData, xval, yval, "closest", { - hoverLayer: fullLayout._hoverlayer - }); - if (closestPoints) { - closestPoints = closestPoints.filter(function(point) { - return point.spikeDistance <= spikedistance; - }); + if (Registry.traceIs(trace, "ternary") && spikedistance !== 0) { + const ternary = pointData.subplot; + const needsClosestPoint = ["aaxis", "baxis", "caxis"].some((name7) => ternary[name7].showspikes && ternary[name7].spikesnap !== "hovered data"); + if (needsClosestPoint) { + let spikePoint = newPoints == null ? void 0 : newPoints[0]; + if (!Number.isFinite(spikePoint == null ? void 0 : spikePoint.spikeDistance)) { + const spikeData = Lib.extendFlat({}, pointData, { distance: spikedistance, index: false }); + const closestPoints2 = trace._module.hoverPoints(spikeData, xval, yval, "closest"); + spikePoint = closestPoints2 && closestPoints2[0]; } - if (closestPoints && closestPoints.length) { - var tmpPoint; - var closestVPoints = closestPoints.filter(function(point) { - return point.xa.showspikes && point.xa.spikesnap !== "hovered data"; - }); - if (closestVPoints.length) { - var closestVPt = closestVPoints[0]; - if (isNumeric2(closestVPt.x0) && isNumeric2(closestVPt.y0)) { - tmpPoint = fillSpikePoint(closestVPt); - if (!spikePoints.vLinePoint || spikePoints.vLinePoint.spikeDistance > tmpPoint.spikeDistance) { - spikePoints.vLinePoint = tmpPoint; - } + const previousSpikePoint = ternarySpikePoints[subplotId]; + if (spikePoint && spikePoint.index !== void 0 && spikePoint.index !== false && spikePoint.spikeDistance <= spikedistance && (!previousSpikePoint || spikePoint.spikeDistance < previousSpikePoint.spikeDistance)) { + ternarySpikePoints[subplotId] = spikePoint; + } + } + } + if (hasCartesian && hoverData.length === 0 && spikedistance !== 0 && canSpikeToNonHoveredPoint(pointData.xa, pointData.ya)) { + pointData.distance = spikedistance; + pointData.index = false; + var closestPoints = trace._module.hoverPoints(pointData, xval, yval, "closest", { + hoverLayer: fullLayout._hoverlayer + }); + if (closestPoints) { + closestPoints = closestPoints.filter(function(point) { + return point.spikeDistance <= spikedistance; + }); + } + if (closestPoints == null ? void 0 : closestPoints.length) { + var tmpPoint; + var closestVPoints = closestPoints.filter(function(point) { + return point.xa.showspikes && point.xa.spikesnap !== "hovered data"; + }); + if (closestVPoints.length) { + var closestVPt = closestVPoints[0]; + if (isNumeric2(closestVPt.x0) && isNumeric2(closestVPt.y0)) { + tmpPoint = fillSpikePoint(closestVPt); + if (!spikePoints.vLinePoint || spikePoints.vLinePoint.spikeDistance > tmpPoint.spikeDistance) { + spikePoints.vLinePoint = tmpPoint; } } - var closestHPoints = closestPoints.filter(function(point) { - return point.ya.showspikes && point.ya.spikesnap !== "hovered data"; - }); - if (closestHPoints.length) { - var closestHPt = closestHPoints[0]; - if (isNumeric2(closestHPt.x0) && isNumeric2(closestHPt.y0)) { - tmpPoint = fillSpikePoint(closestHPt); - if (!spikePoints.hLinePoint || spikePoints.hLinePoint.spikeDistance > tmpPoint.spikeDistance) { - spikePoints.hLinePoint = tmpPoint; - } + } + var closestHPoints = closestPoints.filter(function(point) { + return point.ya.showspikes && point.ya.spikesnap !== "hovered data"; + }); + if (closestHPoints.length) { + var closestHPt = closestHPoints[0]; + if (isNumeric2(closestHPt.x0) && isNumeric2(closestHPt.y0)) { + tmpPoint = fillSpikePoint(closestHPt); + if (!spikePoints.hLinePoint || spikePoints.hLinePoint.spikeDistance > tmpPoint.spikeDistance) { + spikePoints.hLinePoint = tmpPoint; } } } @@ -36763,6 +36889,18 @@ var Plotly = (() => { } } findHoverPoints(); + function updateTernarySpikelines() { + fullLayout._hoverlayer.selectAll(".ternary-spikes").remove(); + if (spikedistance === 0) return; + for (let i3 = 0; i3 < subplots.length; i3++) { + const id5 = subplots[i3]; + const ternary = fullLayout[id5] && fullLayout[id5]._subplot; + if (ternary && ternary.drawSpikelines) { + const point = hoverData.find((d2) => d2.trace.subplot === id5 && d2.index !== void 0 && d2.index !== false && d2.spikeDistance <= spikedistance); + ternary.drawSpikelines(point, ternarySpikePoints[id5], xvalArray && xvalArray[i3], yvalArray && yvalArray[i3]); + } + } + } function selectClosestPoint(pointsData, spikedistance2, spikeOnWinning2) { var resultPoint = null; var minDistance = Infinity; @@ -36852,6 +36990,7 @@ var Plotly = (() => { emitHover([]); gd3._hoverAnywhereActive = true; } + if (hasTernary) updateTernarySpikelines(); return result; } if (hasCartesian) { @@ -36859,6 +36998,7 @@ var Plotly = (() => { createSpikelines(gd3, spikePoints, spikelineOpts); } } + if (hasTernary) updateTernarySpikelines(); if (helpers.isXYhover(_mode) && hoverData[0].length !== 0 && hoverData[0].trace.type !== "splom") { var winningPoint = hoverData[0]; if (multipleHoverPoints[winningPoint.trace.type]) { @@ -36948,6 +37088,18 @@ var Plotly = (() => { if (!helpers.isUnifiedHover(hovermode)) { hoverAvoidOverlaps(hoverLabels, rotateLabels, fullLayout, hoverText.commonLabelBoundingBox); alignHoverText(hoverLabels, rotateLabels, fullLayout._invScaleX, fullLayout._invScaleY); + if (hoverText.mathjaxPromise) { + hoverText.mathjaxPromise.then(function() { + if (gd3._hoverdata !== newhoverdata) return; + hoverAvoidOverlaps(hoverLabels, rotateLabels, fullLayout, hoverText.commonLabelBoundingBox); + alignHoverText(hoverLabels, rotateLabels, fullLayout._invScaleX, fullLayout._invScaleY); + hoverLabels.each(function() { + var g2 = d3.select(this); + svgTextUtils.repositionMathGroup(g2.select("text.nums")); + svgTextUtils.repositionMathGroup(g2.select("text.name")); + }); + }); + } } if (eventTarget && eventTarget.tagName) { var hasClickToShow = Registry.getComponentMethod("annotations", "hasClickToShow")(gd3, newhoverdata); @@ -36981,6 +37133,9 @@ var Plotly = (() => { return [d2.trace.index, d2.index, d2.x0, d2.y0, d2.name, d2.attr, d2.xa ? d2.xa._id : "", d2.ya ? d2.ya._id : ""].join(","); } var EXTRA_STRING_REGEX = /([\s\S]*)<\/extra>/; + function getHoverTextBBox(gd3, textSel) { + return getBoundingClientRect(gd3, svgTextUtils.getMathOrTextNode(textSel)); + } function createHoverText(hoverData, opts) { var gd3 = opts.gd; var fullLayout = gd3._fullLayout; @@ -36991,6 +37146,7 @@ var Plotly = (() => { var outerContainer = opts.outerContainer; var commonLabelOpts = opts.commonLabelOpts || {}; if (hoverData.length === 0) return [[]]; + var mathjaxPromises = []; var fontFamily = opts.fontFamily || constants2.HOVERFONT; var fontSize = opts.fontSize || constants2.HOVERFONTSIZE; var fontWeight = opts.fontWeight || fullLayout.font.weight; @@ -37046,9 +37202,7 @@ var Plotly = (() => { var lpath = Lib.ensureSingle(label, "path", "", function(s2) { s2.style({ "stroke-width": "1px" }); }); - var ltext = Lib.ensureSingle(label, "text", "", function(s2) { - s2.attr("data-notex", 1); - }); + var ltext = Lib.ensureSingle(label, "text", ""); var commonBgColor = commonLabelOpts.bgcolor || Color2.defaultLine; var commonStroke = commonLabelOpts.bordercolor || Color2.contrast(commonBgColor); var contrastColor = Color2.contrast(commonBgColor); @@ -37068,100 +37222,122 @@ var Plotly = (() => { fill: commonBgColor, stroke: commonStroke }); - ltext.text(t02).call(Drawing.font, commonLabelFont).call(svgTextUtils.positionText, 0, 0).call(svgTextUtils.convertToTspans, gd3); - label.attr("transform", ""); - var tbb2 = getBoundingClientRect(gd3, ltext.node()); - var lx3, ly2; - if (hovermode === "x") { - var topsign = xa3.side === "top" ? "-" : ""; - ltext.attr("text-anchor", "middle").call( - svgTextUtils.positionText, - 0, - xa3.side === "top" ? outerTop - tbb2.bottom - HOVERARROWSIZE2 - HOVERTEXTPAD2 : outerTop - tbb2.top + HOVERARROWSIZE2 + HOVERTEXTPAD2 - ); - lx3 = xa3._offset + (c0.x0 + c0.x1) / 2; - ly2 = ya3._offset + (xa3.side === "top" ? 0 : ya3._length); - var halfWidth = tbb2.width / 2 + HOVERTEXTPAD2; - var tooltipMidX = lx3; - if (lx3 < halfWidth) { - tooltipMidX = halfWidth; - } else if (lx3 > fullLayout.width - halfWidth) { - tooltipMidX = fullLayout.width - halfWidth; - } - lpath.attr( - "d", - "M" + (lx3 - tooltipMidX) + ",0L" + (lx3 - tooltipMidX + HOVERARROWSIZE2) + "," + topsign + HOVERARROWSIZE2 + "H" + halfWidth + "v" + topsign + (HOVERTEXTPAD2 * 2 + tbb2.height) + "H" + -halfWidth + "V" + topsign + HOVERARROWSIZE2 + "H" + (lx3 - tooltipMidX - HOVERARROWSIZE2) + "Z" - ); - lx3 = tooltipMidX; - commonLabelRect.minX = lx3 - halfWidth; - commonLabelRect.maxX = lx3 + halfWidth; - if (xa3.side === "top") { - commonLabelRect.minY = ly2 - (HOVERTEXTPAD2 * 2 + tbb2.height); - commonLabelRect.maxY = ly2 - HOVERTEXTPAD2; - } else { - commonLabelRect.minY = ly2 + HOVERTEXTPAD2; - commonLabelRect.maxY = ly2 + (HOVERTEXTPAD2 * 2 + tbb2.height); - } - } else { - var anchor; - var sgn; - var leftsign; - if (ya3.side === "right") { - anchor = "start"; - sgn = 1; - leftsign = ""; - lx3 = xa3._offset + xa3._length; - } else { - anchor = "end"; - sgn = -1; - leftsign = "-"; - lx3 = xa3._offset; - } - ly2 = ya3._offset + (c0.y0 + c0.y1) / 2; - ltext.attr("text-anchor", anchor); - lpath.attr( - "d", - "M0,0L" + leftsign + HOVERARROWSIZE2 + "," + HOVERARROWSIZE2 + "V" + (HOVERTEXTPAD2 + tbb2.height / 2) + "h" + leftsign + (HOVERTEXTPAD2 * 2 + tbb2.width) + "V-" + (HOVERTEXTPAD2 + tbb2.height / 2) + "H" + leftsign + HOVERARROWSIZE2 + "V-" + HOVERARROWSIZE2 + "Z" + var commonLabelTex = svgTextUtils.isPureTex(String(t02)); + var onCommonLabelReady; + if (commonLabelTex) { + mathjaxPromises.push( + new Promise(function(resolve) { + onCommonLabelReady = function() { + if (!ltext.node().parentNode) { + resolve(); + return; + } + positionCommonLabel(); + svgTextUtils.repositionMathGroup(ltext); + resolve(); + }; + }) ); - commonLabelRect.minY = ly2 - (HOVERTEXTPAD2 + tbb2.height / 2); - commonLabelRect.maxY = ly2 + (HOVERTEXTPAD2 + tbb2.height / 2); - if (ya3.side === "right") { - commonLabelRect.minX = lx3 + HOVERARROWSIZE2; - commonLabelRect.maxX = lx3 + HOVERARROWSIZE2 + (HOVERTEXTPAD2 * 2 + tbb2.width); - } else { - commonLabelRect.minX = lx3 - HOVERARROWSIZE2 - (HOVERTEXTPAD2 * 2 + tbb2.width); - commonLabelRect.maxX = lx3 - HOVERARROWSIZE2; - } - var halfHeight = tbb2.height / 2; - var lty = outerTop - tbb2.top - halfHeight; - var clipId = "clip" + fullLayout._uid + "commonlabel" + ya3._id; - var clipPath; - if (lx3 < tbb2.width + 2 * HOVERTEXTPAD2 + HOVERARROWSIZE2) { - clipPath = "M-" + (HOVERARROWSIZE2 + HOVERTEXTPAD2) + "-" + halfHeight + "h-" + (tbb2.width - HOVERTEXTPAD2) + "V" + halfHeight + "h" + (tbb2.width - HOVERTEXTPAD2) + "Z"; - var ltx = tbb2.width - lx3 + HOVERTEXTPAD2; - svgTextUtils.positionText(ltext, ltx, lty); - if (anchor === "end") { - ltext.selectAll("tspan").each(function() { - var s2 = d3.select(this); - var dummy = Drawing.tester.append("text").text(s2.text()).call(Drawing.font, commonLabelFont); - var dummyBB = getBoundingClientRect(gd3, dummy.node()); - if (Math.round(dummyBB.width) < Math.round(tbb2.width)) { - s2.attr("x", ltx - dummyBB.width); - } - dummy.remove(); - }); + } + ltext.text(t02).call(Drawing.font, commonLabelFont).attr("data-notex", commonLabelTex ? null : 1).call(svgTextUtils.positionText, 0, 0).call(svgTextUtils.convertToTspans, gd3, onCommonLabelReady); + positionCommonLabel(); + function positionCommonLabel() { + label.attr("transform", ""); + svgTextUtils.positionText(ltext, 0, 0); + svgTextUtils.repositionMathGroup(ltext); + var tbb2 = getHoverTextBBox(gd3, ltext); + var lx3, ly2; + if (hovermode === "x") { + var topsign = xa3.side === "top" ? "-" : ""; + ltext.attr("text-anchor", "middle").call( + svgTextUtils.positionText, + 0, + xa3.side === "top" ? outerTop - tbb2.bottom - HOVERARROWSIZE2 - HOVERTEXTPAD2 : outerTop - tbb2.top + HOVERARROWSIZE2 + HOVERTEXTPAD2 + ); + lx3 = xa3._offset + (c0.x0 + c0.x1) / 2; + ly2 = ya3._offset + (xa3.side === "top" ? 0 : ya3._length); + var halfWidth = tbb2.width / 2 + HOVERTEXTPAD2; + var tooltipMidX = lx3; + if (lx3 < halfWidth) { + tooltipMidX = halfWidth; + } else if (lx3 > fullLayout.width - halfWidth) { + tooltipMidX = fullLayout.width - halfWidth; + } + lpath.attr( + "d", + "M" + (lx3 - tooltipMidX) + ",0L" + (lx3 - tooltipMidX + HOVERARROWSIZE2) + "," + topsign + HOVERARROWSIZE2 + "H" + halfWidth + "v" + topsign + (HOVERTEXTPAD2 * 2 + tbb2.height) + "H" + -halfWidth + "V" + topsign + HOVERARROWSIZE2 + "H" + (lx3 - tooltipMidX - HOVERARROWSIZE2) + "Z" + ); + lx3 = tooltipMidX; + commonLabelRect.minX = lx3 - halfWidth; + commonLabelRect.maxX = lx3 + halfWidth; + if (xa3.side === "top") { + commonLabelRect.minY = ly2 - (HOVERTEXTPAD2 * 2 + tbb2.height); + commonLabelRect.maxY = ly2 - HOVERTEXTPAD2; + } else { + commonLabelRect.minY = ly2 + HOVERTEXTPAD2; + commonLabelRect.maxY = ly2 + (HOVERTEXTPAD2 * 2 + tbb2.height); + } + } else { + var anchor; + var sgn; + var leftsign; + if (ya3.side === "right") { + anchor = "start"; + sgn = 1; + leftsign = ""; + lx3 = xa3._offset + xa3._length; + } else { + anchor = "end"; + sgn = -1; + leftsign = "-"; + lx3 = xa3._offset; + } + ly2 = ya3._offset + (c0.y0 + c0.y1) / 2; + ltext.attr("text-anchor", anchor); + lpath.attr( + "d", + "M0,0L" + leftsign + HOVERARROWSIZE2 + "," + HOVERARROWSIZE2 + "V" + (HOVERTEXTPAD2 + tbb2.height / 2) + "h" + leftsign + (HOVERTEXTPAD2 * 2 + tbb2.width) + "V-" + (HOVERTEXTPAD2 + tbb2.height / 2) + "H" + leftsign + HOVERARROWSIZE2 + "V-" + HOVERARROWSIZE2 + "Z" + ); + commonLabelRect.minY = ly2 - (HOVERTEXTPAD2 + tbb2.height / 2); + commonLabelRect.maxY = ly2 + (HOVERTEXTPAD2 + tbb2.height / 2); + if (ya3.side === "right") { + commonLabelRect.minX = lx3 + HOVERARROWSIZE2; + commonLabelRect.maxX = lx3 + HOVERARROWSIZE2 + (HOVERTEXTPAD2 * 2 + tbb2.width); + } else { + commonLabelRect.minX = lx3 - HOVERARROWSIZE2 - (HOVERTEXTPAD2 * 2 + tbb2.width); + commonLabelRect.maxX = lx3 - HOVERARROWSIZE2; + } + var halfHeight = tbb2.height / 2; + var lty = outerTop - tbb2.top - halfHeight; + var clipId = "clip" + fullLayout._uid + "commonlabel" + ya3._id; + var clipPath; + if (lx3 < tbb2.width + 2 * HOVERTEXTPAD2 + HOVERARROWSIZE2) { + clipPath = "M-" + (HOVERARROWSIZE2 + HOVERTEXTPAD2) + "-" + halfHeight + "h-" + (tbb2.width - HOVERTEXTPAD2) + "V" + halfHeight + "h" + (tbb2.width - HOVERTEXTPAD2) + "Z"; + var ltx = tbb2.width - lx3 + HOVERTEXTPAD2; + svgTextUtils.positionText(ltext, ltx, lty); + if (anchor === "end") { + ltext.selectAll("tspan").each(function() { + var s2 = d3.select(this); + var dummy = Drawing.tester.append("text").text(s2.text()).call(Drawing.font, commonLabelFont); + var dummyBB = getBoundingClientRect(gd3, dummy.node()); + if (Math.round(dummyBB.width) < Math.round(tbb2.width)) { + s2.attr("x", ltx - dummyBB.width); + } + dummy.remove(); + }); + } + } else { + svgTextUtils.positionText(ltext, sgn * (HOVERTEXTPAD2 + HOVERARROWSIZE2), lty); + clipPath = null; } - } else { - svgTextUtils.positionText(ltext, sgn * (HOVERTEXTPAD2 + HOVERARROWSIZE2), lty); - clipPath = null; + var textClip = fullLayout._topclips.selectAll("#" + clipId).data(clipPath ? [0] : []); + textClip.enter().append("clipPath").attr("id", clipId).append("path"); + textClip.exit().remove(); + textClip.select("path").attr("d", clipPath); + Drawing.setClipUrl(ltext, clipPath ? clipId : null, gd3); } - var textClip = fullLayout._topclips.selectAll("#" + clipId).data(clipPath ? [0] : []); - textClip.enter().append("clipPath").attr("id", clipId).append("path"); - textClip.exit().remove(); - textClip.select("path").attr("d", clipPath); - Drawing.setClipUrl(ltext, clipPath ? clipId : null, gd3); + label.attr("transform", strTranslate(lx3, ly2)); } - label.attr("transform", strTranslate(lx3, ly2)); }); if (helpers.isUnifiedHover(hovermode)) { container.selectAll("g.hovertext").remove(); @@ -37368,6 +37544,23 @@ var Plotly = (() => { var texts2 = getHoverLabelText(d2, showCommonLabel, hovermode, fullLayout, t02, g2); var text2 = texts2[0]; var name8 = texts2[1]; + var hasName = !!(name8 && name8 !== text2); + var numsTex = svgTextUtils.isPureTex(text2); + var nameTex = hasName && svgTextUtils.isPureTex(name8); + var pendingLabelParts = (numsTex ? 1 : 0) + (nameTex ? 1 : 0); + var onLabelPartReady; + if (pendingLabelParts) { + mathjaxPromises.push( + new Promise(function(resolve) { + onLabelPartReady = function() { + if (--pendingLabelParts === 0) { + if (g2.node().parentNode) finalizePosition(); + resolve(); + } + }; + }) + ); + } var tx2 = g2.select("text.nums").call(Drawing.font, { family: d2.fontFamily || fontFamily, size: d2.fontSize || fontSize, @@ -37378,11 +37571,9 @@ var Plotly = (() => { textcase: d2.fontTextcase || fontTextcase, lineposition: d2.fontLineposition || fontLineposition, shadow: d2.fontShadow || fontShadow - }).text(text2).attr("data-notex", 1).call(svgTextUtils.positionText, 0, 0).call(svgTextUtils.convertToTspans, gd3); + }).text(text2).attr("data-notex", numsTex ? null : 1).call(svgTextUtils.positionText, 0, 0).call(svgTextUtils.convertToTspans, gd3, numsTex ? onLabelPartReady : void 0); var tx22 = g2.select("text.name"); - var tx2width = 0; - var tx2height = 0; - if (name8 && name8 !== text2) { + if (hasName) { tx22.call(Drawing.font, { family: d2.fontFamily || fontFamily, size: d2.fontSize || fontSize, @@ -37393,75 +37584,90 @@ var Plotly = (() => { textcase: d2.fontTextcase || fontTextcase, lineposition: d2.fontLineposition || fontLineposition, shadow: d2.fontShadow || fontShadow - }).text(name8).attr("data-notex", 1).call(svgTextUtils.positionText, 0, 0).call(svgTextUtils.convertToTspans, gd3); - var t2bb = getBoundingClientRect(gd3, tx22.node()); - tx2width = t2bb.width + 2 * HOVERTEXTPAD2; - tx2height = t2bb.height + 2 * HOVERTEXTPAD2; + }).text(name8).attr("data-notex", nameTex ? null : 1).call(svgTextUtils.positionText, 0, 0).call(svgTextUtils.convertToTspans, gd3, nameTex ? onLabelPartReady : void 0); } else { tx22.remove(); g2.select("rect").remove(); } - g2.select("path").style({ - fill: numsColor, - stroke: contrastColor - }); - var htx = d2.xa._offset + (d2.x0 + d2.x1) / 2; - var hty = d2.ya._offset + (d2.y0 + d2.y1) / 2; - var dx2 = Math.abs(d2.x1 - d2.x0); - var dy = Math.abs(d2.y1 - d2.y0); - var tbb2 = getBoundingClientRect(gd3, tx2.node()); - var tbbWidth = tbb2.width / fullLayout._invScaleX; - var tbbHeight = tbb2.height / fullLayout._invScaleY; - d2.ty0 = (outerTop - tbb2.top) / fullLayout._invScaleY; - d2.bx = tbbWidth + 2 * HOVERTEXTPAD2; - d2.by = Math.max(tbbHeight + 2 * HOVERTEXTPAD2, tx2height); - d2.anchor = "start"; - d2.txwidth = tbbWidth; - d2.tx2width = tx2width; - d2.offset = 0; - var txTotalWidth = (tbbWidth + HOVERARROWSIZE2 + HOVERTEXTPAD2 + tx2width) * fullLayout._invScaleX; - var anchorStartOK, anchorEndOK; - if (rotateLabels) { - d2.pos = htx; - anchorStartOK = hty + dy / 2 + txTotalWidth <= outerHeight; - anchorEndOK = hty - dy / 2 - txTotalWidth >= 0; - if ((d2.idealAlign === "top" || !anchorStartOK) && anchorEndOK) { - hty -= dy / 2; - d2.anchor = "end"; - } else if (anchorStartOK) { - hty += dy / 2; - d2.anchor = "start"; - } else { - d2.anchor = "middle"; - } - d2.crossPos = hty; - } else { - d2.pos = hty; - anchorStartOK = htx + dx2 / 2 + txTotalWidth <= outerWidth; - anchorEndOK = htx - dx2 / 2 - txTotalWidth >= 0; - if ((d2.idealAlign === "left" || !anchorStartOK) && anchorEndOK) { - htx -= dx2 / 2; - d2.anchor = "end"; - } else if (anchorStartOK) { - htx += dx2 / 2; - d2.anchor = "start"; - } else { - d2.anchor = "middle"; - var txHalfWidth = txTotalWidth / 2; - var overflowR = htx + txHalfWidth - outerWidth; - var overflowL = htx - txHalfWidth; - if (overflowR > 0) htx -= overflowR; - if (overflowL < 0) htx += -overflowL; - } - d2.crossPos = htx; - } - tx2.attr("text-anchor", d2.anchor); - if (tx2width) tx22.attr("text-anchor", d2.anchor); - g2.attr("transform", strTranslate(htx, hty) + (rotateLabels ? strRotate(YANGLE2) : "")); + finalizePosition(); + function finalizePosition() { + g2.attr("transform", ""); + tx2.call(svgTextUtils.positionText, 0, 0); + svgTextUtils.repositionMathGroup(tx2); + if (hasName) { + tx22.call(svgTextUtils.positionText, 0, 0); + svgTextUtils.repositionMathGroup(tx22); + } + g2.select("path").style({ + fill: numsColor, + stroke: contrastColor + }); + var htx = d2.xa._offset + (d2.x0 + d2.x1) / 2; + var hty = d2.ya._offset + (d2.y0 + d2.y1) / 2; + var dx2 = Math.abs(d2.x1 - d2.x0); + var dy = Math.abs(d2.y1 - d2.y0); + var tx2width = 0; + var tx2height = 0; + if (hasName) { + var t2bb = getHoverTextBBox(gd3, tx22); + tx2width = t2bb.width + 2 * HOVERTEXTPAD2; + tx2height = t2bb.height + 2 * HOVERTEXTPAD2; + } + var tbb2 = getHoverTextBBox(gd3, tx2); + var tbbWidth = tbb2.width / fullLayout._invScaleX; + var tbbHeight = tbb2.height / fullLayout._invScaleY; + d2.ty0 = (outerTop - tbb2.top) / fullLayout._invScaleY; + d2.bx = tbbWidth + 2 * HOVERTEXTPAD2; + d2.by = Math.max(tbbHeight + 2 * HOVERTEXTPAD2, tx2height); + d2.anchor = "start"; + d2.txwidth = tbbWidth; + d2.tx2width = tx2width; + d2.offset = 0; + var txTotalWidth = (tbbWidth + HOVERARROWSIZE2 + HOVERTEXTPAD2 + tx2width) * fullLayout._invScaleX; + var anchorStartOK, anchorEndOK; + if (rotateLabels) { + d2.pos = htx; + anchorStartOK = hty + dy / 2 + txTotalWidth <= outerHeight; + anchorEndOK = hty - dy / 2 - txTotalWidth >= 0; + if ((d2.idealAlign === "top" || !anchorStartOK) && anchorEndOK) { + hty -= dy / 2; + d2.anchor = "end"; + } else if (anchorStartOK) { + hty += dy / 2; + d2.anchor = "start"; + } else { + d2.anchor = "middle"; + } + d2.crossPos = hty; + } else { + d2.pos = hty; + anchorStartOK = htx + dx2 / 2 + txTotalWidth <= outerWidth; + anchorEndOK = htx - dx2 / 2 - txTotalWidth >= 0; + if ((d2.idealAlign === "left" || !anchorStartOK) && anchorEndOK) { + htx -= dx2 / 2; + d2.anchor = "end"; + } else if (anchorStartOK) { + htx += dx2 / 2; + d2.anchor = "start"; + } else { + d2.anchor = "middle"; + var txHalfWidth = txTotalWidth / 2; + var overflowR = htx + txHalfWidth - outerWidth; + var overflowL = htx - txHalfWidth; + if (overflowR > 0) htx -= overflowR; + if (overflowL < 0) htx += -overflowL; + } + d2.crossPos = htx; + } + tx2.attr("text-anchor", d2.anchor); + if (tx2width) tx22.attr("text-anchor", d2.anchor); + g2.attr("transform", strTranslate(htx, hty) + (rotateLabels ? strRotate(YANGLE2) : "")); + } }); return { hoverLabels, - commonLabelBoundingBox: commonLabelRect + commonLabelBoundingBox: commonLabelRect, + mathjaxPromise: mathjaxPromises.length ? Promise.all(mathjaxPromises) : null }; } function getHoverLabelText(d2, showCommonLabel, hovermode, fullLayout, t02, g2) { @@ -48824,7 +49030,7 @@ var Plotly = (() => { } function marginPushersAgain() { if (!Plots.didMarginChange(oldMargins, fullLayout._size)) return; - return Lib.syncOrAsync([marginPushers, subroutines.layoutStyles], gd3); + return marginPushers(); } function positionAndAutorange() { if (!recalc) { @@ -65301,7 +65507,7 @@ var Plotly = (() => { obj.percentPrevious = cdi.difR; obj.percentPreviousLabel = Lib.formatPercent(cdi.difR); obj.percentTotal = cdi.sumR; - obj.percenTotalLabel = Lib.formatPercent(cdi.sumR); + obj.percentTotalLabel = Lib.formatPercent(cdi.sumR); } var customdata = Lib.castOption(trace, cdi.i, "customdata"); if (customdata) obj.customdata = customdata; @@ -72748,6 +72954,7 @@ var Plotly = (() => { var _2 = Lib._; var Color2 = require_color(); var Drawing = require_drawing(); + var svgTextUtils = require_svg_text_utils(); var setConvert = require_set_convert(); var extendFlat2 = require_extend().extendFlat; var Plots = require_plots(); @@ -72866,6 +73073,94 @@ var Plotly = (() => { toplevel.order(); }; var whRatio = Math.sqrt(4 / 3); + proto.drawSpikelines = function(hoverPoint, spikePoint, cursorXVal, cursorYVal) { + const fullLayout = this.graphDiv._fullLayout; + const axes = [this.aaxis, this.baxis, this.caxis]; + if (!axes.some((axis) => axis.showspikes)) return; + const span = this.sum - axes[0].min - axes[1].min - axes[2].min; + const contrastColor = Color2.combine(fullLayout[this.id].bgcolor, fullLayout.paper_bgcolor); + let layer; + for (let i2 = 0; i2 < axes.length; i2++) { + const axis = axes[i2]; + if (!axis.showspikes) continue; + const snap = axis.spikesnap; + const selectedPoint = snap === "hovered data" ? hoverPoint : spikePoint || hoverPoint; + if (!selectedPoint) continue; + const snapToCursor = snap === "cursor"; + if (snapToCursor && (!Number.isFinite(cursorXVal) || !Number.isFinite(cursorYVal))) { + continue; + } + const calcPoint = selectedPoint.cd[selectedPoint.index]; + const a2 = snapToCursor ? cursorYVal : calcPoint.a; + const b2 = snapToCursor ? (this.sum - cursorYVal - cursorXVal) / 2 : calcPoint.b; + const c2 = snapToCursor ? (this.sum - cursorYVal + cursorXVal) / 2 : calcPoint.c; + if (!this.xaxis.isPtWithinRange({ a: a2, b: b2, c: c2 })) continue; + if (!layer) { + layer = fullLayout._hoverlayer.insert("g", ":first-child").attr("class", "ternary-spikes").attr("transform", strTranslate(this.x0, this.y0)).style("pointer-events", "none"); + } + const fa3 = Lib.constrain((a2 - axes[0].min) / span, 0, 1); + const fb2 = Lib.constrain((b2 - axes[1].min) / span, 0, 1); + const fc3 = Lib.constrain((c2 - axes[2].min) / span, 0, 1); + const x2 = this.w * (fc3 + fa3 / 2); + const y2 = this.h * (1 - fa3); + const [axisX, axisY, acrossX, acrossY] = [ + [this.w * fa3 / 2, y2, this.w * (1 - fa3 / 2), y2], + // aaxis + [this.w * (1 - fb2), this.h, this.w * (1 - fb2) / 2, this.h * fb2], + // baxis + [this.w * (1 + fc3) / 2, this.h * fc3, this.w * fc3, this.h] + // caxis + ][i2]; + const pointColor = selectedPoint.color || axis.color; + const dfltColor = Color2.wcagContrast(pointColor, contrastColor) < 1.5 ? Color2.contrast(contrastColor) : pointColor; + const color2 = axis.spikecolor || dfltColor; + const thickness = axis.spikethickness; + const mode = axis.spikemode; + if (mode.indexOf("toaxis") !== -1 || mode.indexOf("across") !== -1) { + const across = mode.indexOf("across") !== -1; + layer.append("line").attr({ + class: "spikeline", + x1: across ? acrossX : x2, + y1: across ? acrossY : y2, + x2: axisX, + y2: axisY, + "stroke-width": thickness, + "stroke-dasharray": Drawing.dashStyle(axis.spikedash, thickness) + }).call(Color2.stroke, color2); + } + if (mode.indexOf("marker") !== -1) { + layer.append("circle").attr({ + class: "spikeline", + cx: axisX, + cy: axisY, + r: thickness + }).call(Color2.fill, color2); + } + const label = layer.append("g").attr("class", "ternary-spikelabel").attr("transform", strTranslate(axisX, axisY)); + const text = label.append("text").attr("text-anchor", "middle").call(Drawing.font, axis.tickfont || fullLayout.font).text(Axes.tickText(axis, [a2, b2, c2][i2], true).text).call(svgTextUtils.convertToTspans, this.graphDiv); + const box = Drawing.bBox(text.node()); + const width = box.width + 6; + const height = box.height + 4; + const arrow = Math.min(6, height / 2, width / 2); + const left = i2 === 0 ? -arrow - width : i2 === 1 ? -width / 2 : 0; + const top = i2 === 0 ? -height / 2 : i2 === 1 ? arrow : -height; + let outline; + if (i2 === 0) { + outline = `M0,0L${-arrow},${-arrow}V${top}H${left}v${height}H${-arrow}V${arrow}Z`; + } else if (i2 === 1) { + outline = `M0,0L${arrow},${arrow}H${width / 2}v${height}H${left}V${arrow}H${-arrow}Z`; + } else { + outline = `M0,0V${top}h${width}V0Z`; + } + label.insert("path", "text").attr("d", outline).call(Color2.fill, color2); + text.call( + svgTextUtils.positionText, + left + width / 2 - box.left - box.width / 2, + top + height / 2 - box.top - box.height / 2 + ); + text.call(Color2.fill, Color2.contrast(color2)); + } + }; proto.adjustLayout = function(ternaryLayout, graphSize) { var _this = this; var domain = ternaryLayout.domain; @@ -73378,7 +73673,14 @@ var Plotly = (() => { valType: "number", dflt: 0, min: 0 - } + }, + // spikelines + showspikes: extendFlat2({}, axesAttrs.showspikes, {}), + spikecolor: axesAttrs.spikecolor, + spikethickness: axesAttrs.spikethickness, + spikedash: axesAttrs.spikedash, + spikemode: axesAttrs.spikemode, + spikesnap: axesAttrs.spikesnap }; var attrs = module.exports = overrideAll({ domain: domainAttrs({ name: "ternary" }), @@ -73494,6 +73796,9 @@ var Plotly = (() => { function coerce(attr3, dflt) { return Lib.coerce(containerIn, containerOut, axAttrs, attr3, dflt); } + function coerce2(attr3, dflt) { + return Lib.coerce2(containerIn, containerOut, axAttrs, attr3, dflt); + } coerce("uirevision", ternaryLayoutOut.uirevision); containerOut.type = "linear"; var dfltColor = coerce("color"); @@ -73542,6 +73847,19 @@ var Plotly = (() => { }); coerce("hoverformat"); coerce("layer"); + var spikecolor = coerce2("spikecolor"); + var spikethickness = coerce2("spikethickness"); + var spikedash = coerce2("spikedash"); + var spikemode = coerce2("spikemode"); + var spikesnap = coerce2("spikesnap"); + var showSpikes = coerce("showspikes", !!spikecolor || !!spikethickness || !!spikedash || !!spikemode || !!spikesnap); + if (!showSpikes) { + delete containerOut.spikecolor; + delete containerOut.spikethickness; + delete containerOut.spikedash; + delete containerOut.spikemode; + delete containerOut.spikesnap; + } } } }); @@ -149351,14 +149669,12 @@ var Plotly = (() => { var constants_exports22 = {}; __export(constants_exports22, { DASHES: () => DASHES, - DOT_RE: () => DOT_RE, - OPEN_RE: () => OPEN_RE, SYMBOL_SDF_SIZE: () => SYMBOL_SDF_SIZE, SYMBOL_SIZE: () => SYMBOL_SIZE, SYMBOL_STROKE: () => SYMBOL_STROKE, TOO_MANY_POINTS: () => TOO_MANY_POINTS }); - var TOO_MANY_POINTS, SYMBOL_SDF_SIZE, SYMBOL_SIZE, SYMBOL_STROKE, DOT_RE, OPEN_RE, DASHES; + var TOO_MANY_POINTS, SYMBOL_SDF_SIZE, SYMBOL_SIZE, SYMBOL_STROKE, DASHES; var init_constants22 = __esm({ "src/traces/scattergl/constants.ts"() { "use strict"; @@ -149366,8 +149682,6 @@ var Plotly = (() => { SYMBOL_SDF_SIZE = 200; SYMBOL_SIZE = 20; SYMBOL_STROKE = SYMBOL_SIZE / 20; - DOT_RE = /-dot/; - OPEN_RE = /-open/; DASHES = { solid: [1], dot: [1, 1], @@ -149487,13 +149801,9 @@ var Plotly = (() => { var require_helpers16 = __commonJS({ "src/traces/scattergl/helpers.js"(exports) { "use strict"; - var constants2 = (init_constants22(), __toCommonJS(constants_exports22)); - exports.isOpenSymbol = function(symbol) { - return typeof symbol === "string" ? constants2.OPEN_RE.test(symbol) : symbol % 200 > 100; - }; - exports.isDotSymbol = function(symbol) { - return typeof symbol === "string" ? constants2.DOT_RE.test(symbol) : symbol > 200; - }; + var { symbolNumber } = require_drawing(); + exports.isOpenSymbol = (symbol) => symbolNumber(symbol) % 200 >= 100; + exports.isDotSymbol = (symbol) => symbolNumber(symbol) >= 200; } }); @@ -150768,7 +151078,7 @@ var Plotly = (() => { "use strict"; var isNumeric2 = require_fast_isnumeric(); var svgSdf = (init_svg_path_sdf(), __toCommonJS(svg_path_sdf_exports)).default; - var { normalize: rgba2 } = require_color(); + var { normalize: rgba2, rgbaString } = require_color(); var Registry = require_registry(); var Lib = require_lib(); var isArrayOrTypedArray = Lib.isArrayOrTypedArray; @@ -150828,7 +151138,7 @@ var Plotly = (() => { opts.line = { overlay: true, thickness: trace.line.width * plotGlPixelRatio, - color: trace.line.color, + color: rgbaString(trace.line.color), opacity: trace.opacity }; var dashes2 = (constants2.DASHES[trace.line.dash] || [1]).slice(); @@ -150846,7 +151156,7 @@ var Plotly = (() => { if (!!trace.fill && trace.fill !== "none") { opts.fill = { closed: true, - fill: trace.fillcolor, + fill: rgbaString(trace.fillcolor), thickness: 0 }; } @@ -150935,10 +151245,10 @@ var Plotly = (() => { if (isArrayOrTypedArray(tfc)) { optsOut.color = new Array(count); for (i2 = 0; i2 < count; i2++) { - optsOut.color[i2] = tfc[i2]; + optsOut.color[i2] = rgbaString(tfc[i2]); } } else { - optsOut.color = tfc; + optsOut.color = rgbaString(tfc); } if (isArrayOrTypedArray(tfs) || Array.isArray(tff) || isArrayOrTypedArray(tfw) || Array.isArray(tfy) || Array.isArray(tfv)) { optsOut.font = new Array(count); @@ -151106,7 +151416,7 @@ var Plotly = (() => { optsOut = convertMarkerStyle(gd3, Lib.extendFlat({}, optsIn, target.marker)); } else if (target.marker) { if (target.marker.size) optsOut.size = target.marker.size; - if (target.marker.color) optsOut.colors = target.marker.color; + if (target.marker.color) optsOut.colors = rgbaString(target.marker.color); if (target.marker.opacity !== void 0) optsOut.opacity = target.marker.opacity; } return optsOut; @@ -151133,10 +151443,10 @@ var Plotly = (() => { var optsOut = { capSize: target.width * 2 * plotGlPixelRatio, lineWidth: target.thickness * plotGlPixelRatio, - color: target.color + color: rgbaString(target.color) }; if (target.copy_ystyle) { - optsOut = trace.error_y; + optsOut = __spreadProps(__spreadValues({}, trace.error_y), { color: rgbaString(trace.error_y.color) }); } return optsOut; } @@ -166969,6 +167279,7 @@ void main() { var createError = require_regl_error2d(); var Text = require_dist3(); var Lib = require_lib(); + var { rgbaString } = require_color(); var selectMode = require_helpers5().selectMode; var prepareRegl = require_prepare_regl(); var subTypes = require_subtypes(); @@ -167154,7 +167465,7 @@ void main() { if (isNaN(xx2) || isNaN(yy2)) continue; pos.push(xx2, yy2); } - fillOptions.fill = nextTrace.fillcolor; + fillOptions.fill = rgbaString(nextTrace.fillcolor); } } } @@ -187303,6 +187614,7 @@ void main() { "use strict"; var createLine = require_regl_line2d(); var Registry = require_registry(); + var { rgbaString } = require_color(); var prepareRegl = require_prepare_regl(); var getModuleCalcData = require_get_data().getModuleCalcData; var Cartesian = require_cartesian(); @@ -187396,7 +187708,7 @@ void main() { data: [x0, x1, y0, y1], join: "rect", thickness: lwidth * plotGlPixelRatio, - color: lcolor, + color: rgbaString(lcolor), viewport: fullView, range: fullView, overlay: false @@ -233761,14 +234073,17 @@ in vec3 view_direction;uniform vec3 u_sun_pos;uniform vec3 u_globe_position;unif return columns2; } if (trace.node.x.length && trace.node.y.length) { - for (i2 = 0; i2 < Math.min(trace.node.x.length, trace.node.y.length, graph.nodes.length); i2++) { - if (trace.node.x[i2] && trace.node.y[i2]) { - var pos = [trace.node.x[i2] * width, trace.node.y[i2] * height]; - graph.nodes[i2].x0 = pos[0] - nodeThickness / 2; - graph.nodes[i2].x1 = pos[0] + nodeThickness / 2; - var nodeHeight = graph.nodes[i2].y1 - graph.nodes[i2].y0; - graph.nodes[i2].y0 = pos[1] - nodeHeight / 2; - graph.nodes[i2].y1 = pos[1] + nodeHeight / 2; + for (i2 = 0; i2 < graph.nodes.length; i2++) { + var forcedNode = graph.nodes[i2]; + if (forcedNode.partOfGroup) continue; + var p2 = forcedNode.pointNumber; + if (trace.node.x[p2] && trace.node.y[p2]) { + var pos = [trace.node.x[p2] * width, trace.node.y[p2] * height]; + forcedNode.x0 = pos[0] - nodeThickness / 2; + forcedNode.x1 = pos[0] + nodeThickness / 2; + var nodeHeight = forcedNode.y1 - forcedNode.y0; + forcedNode.y0 = pos[1] - nodeHeight / 2; + forcedNode.y1 = pos[1] + nodeHeight / 2; } } if (trace.arrangement === "snap") { @@ -234138,13 +234453,12 @@ in vec3 view_direction;uniform vec3 u_sun_pos;uniform vec3 u_globe_position;unif }; } function persistFinalNodePositions(d2, gd3) { - var x2 = []; - var y2 = []; - for (var i2 = 0; i2 < d2.graph.nodes.length; i2++) { - var nodeX = (d2.graph.nodes[i2].x0 + d2.graph.nodes[i2].x1) / 2; - var nodeY = (d2.graph.nodes[i2].y0 + d2.graph.nodes[i2].y1) / 2; - x2.push(nodeX / d2.figure.width); - y2.push(nodeY / d2.figure.height); + const x2 = [...d2.trace.node.x]; + const y2 = [...d2.trace.node.y]; + for (const node of d2.graph.nodes) { + if (node.partOfGroup) continue; + x2[node.pointNumber] = (node.x0 + node.x1) / 2 / d2.figure.width; + y2[node.pointNumber] = (node.y0 + node.y1) / 2 / d2.figure.height; } Registry.call("_guiRestyle", gd3, { "node.x": [x2], @@ -245378,6 +245692,7 @@ in vec3 view_direction;uniform vec3 u_sun_pos;uniform vec3 u_globe_position;unif var Lib = require_lib(); var Drawing = require_drawing(); var Colorscale = require_colorscale(); + var Color2 = require_color(); var DESELECTDIM2 = (init_interactions(), __toCommonJS(interactions_exports)).DESELECTDIM; function colorscaleStroke(paths, trace) { var marker = trace.marker || {}; @@ -245396,6 +245711,24 @@ in vec3 view_direction;uniform vec3 u_sun_pos;uniform vec3 u_globe_position;unif return cdi.mcc; }); } + var strokeArrowColors = (paths, trace) => { + if (trace._hasColorscale) { + colorscaleStroke(paths, trace); + return; + } + const markerColor = (trace.marker || {}).color; + if (!Lib.isArrayOrTypedArray(markerColor)) return; + paths.style("stroke", function(cdi) { + if (markerColor.length > cdi.i) { + const color2 = markerColor[cdi.i]; + if (Color2.isValid(color2)) { + cdi.mcc = color2; + return color2; + } + } + return this.style.stroke; + }); + }; function style(gd3) { var s2 = d3.select(gd3).selectAll("g.trace.quiver"); s2.each(function(d2) { @@ -245410,7 +245743,6 @@ in vec3 view_direction;uniform vec3 u_sun_pos;uniform vec3 u_globe_position;unif var marker = trace.marker || {}; var markerLine = marker.line || {}; var lineColor = Lib.isArrayOrTypedArray(marker.color) ? void 0 : marker.color; - var hasColorscale = trace._hasColorscale; if (!sel) return; if (trace.selectedpoints) { var selectedMarker = (trace.selected || {}).marker || {}; @@ -245427,7 +245759,7 @@ in vec3 view_direction;uniform vec3 u_sun_pos;uniform vec3 u_globe_position;unif path.style("stroke-opacity", 1); } else { Drawing.lineGroupStyle(path, lineWidth, lineColor, markerLine.dash); - if (hasColorscale) colorscaleStroke(path, trace); + strokeArrowColors(path, trace); path.style("stroke-opacity", dim ? DESELECTDIM2 : 1); } }); @@ -245435,7 +245767,7 @@ in vec3 view_direction;uniform vec3 u_sun_pos;uniform vec3 u_globe_position;unif } else { var paths = sel.selectAll("path.js-line"); paths.call(Drawing.lineGroupStyle, markerLine.width, lineColor, markerLine.dash); - if (hasColorscale) colorscaleStroke(paths, trace); + strokeArrowColors(paths, trace); paths.style("stroke-opacity", 1); Drawing.textPointStyle(sel.selectAll("text"), trace, gd3); } @@ -245443,7 +245775,8 @@ in vec3 view_direction;uniform vec3 u_sun_pos;uniform vec3 u_globe_position;unif module.exports = { style, styleOnSelect, - colorscaleStroke + colorscaleStroke, + strokeArrowColors }; } }); @@ -245455,7 +245788,7 @@ in vec3 view_direction;uniform vec3 u_sun_pos;uniform vec3 u_globe_position;unif var d3 = require_d3(); var Lib = require_lib(); var Drawing = require_drawing(); - var colorscaleStroke = require_style20().colorscaleStroke; + var { strokeArrowColors } = require_style20(); var HEAD_ANGLE = Math.PI / 12; var HEAD_LEN_PER_WIDTH = 5.8; var MIN_LINE_WIDTH_FOR_ARROWSIZE = 1.5; @@ -245553,9 +245886,9 @@ in vec3 view_direction;uniform vec3 u_sun_pos;uniform vec3 u_globe_position;unif }); var marker = trace.marker || {}; var markerLine = marker.line || {}; - var lineColor = Lib.isArrayOrTypedArray(marker.color) ? void 0 : marker.color; + const lineColor = Lib.isArrayOrTypedArray(marker.color) ? void 0 : marker.color; Drawing.lineGroupStyle(lineSegments, markerLine.width, lineColor, markerLine.dash); - if (trace._hasColorscale) colorscaleStroke(lineSegments, trace); + strokeArrowColors(lineSegments, trace); var textGroup = d3.select(element).selectAll("g.text").data([cdscatter]); textGroup.enter().append("g").classed("text", true); Drawing.setClipUrl(textGroup, plotinfo.layerClipId, gd3); diff --git a/dist/plotly-strict.min.js b/dist/plotly-strict.min.js index e04127e1338..2ae0f97f97e 100644 --- a/dist/plotly-strict.min.js +++ b/dist/plotly-strict.min.js @@ -1,5 +1,5 @@ /** -* plotly.js (strict - minified) v4.1.2 +* plotly.js (strict - minified) v4.2.0 * Copyright 2012-2026, Plotly, Inc. * All rights reserved. * Licensed under the MIT license @@ -12,96 +12,96 @@ root.moduleName = factory(); } } (typeof self !== "undefined" ? self : this, () => { -"use strict";var Plotly=(()=>{var yyt=Object.create;var qT=Object.defineProperty,gyt=Object.defineProperties,xyt=Object.getOwnPropertyDescriptor,byt=Object.getOwnPropertyDescriptors,_yt=Object.getOwnPropertyNames,kD=Object.getOwnPropertySymbols,wyt=Object.getPrototypeOf,tV=Object.prototype.hasOwnProperty,eue=Object.prototype.propertyIsEnumerable;var eV=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),Ayt=e=>{throw TypeError(e)};var Qle=(e,t,r)=>t in e?qT(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Zs=(e,t)=>{for(var r in t||(t={}))tV.call(t,r)&&Qle(e,r,t[r]);if(kD)for(var r of kD(t))eue.call(t,r)&&Qle(e,r,t[r]);return e},Ql=(e,t)=>gyt(e,byt(t));var CD=(e,t)=>{var r={};for(var i in e)tV.call(e,i)&&t.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&kD)for(var i of kD(e))t.indexOf(i)<0&&eue.call(e,i)&&(r[i]=e[i]);return r};var ps=(e,t,r)=>()=>{if(r)throw r[0];try{return e&&(t=e(e=0)),t}catch(i){throw r=[i],i}};var K=(e,t)=>()=>{try{return t||e((t={exports:{}}).exports,t),t.exports}catch(r){throw t=0,r}},Fl=(e,t)=>{for(var r in t)qT(e,r,{get:t[r],enumerable:!0})},tue=(e,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of _yt(t))!tV.call(e,n)&&n!==r&&qT(e,n,{get:()=>t[n],enumerable:!(i=xyt(t,n))||i.enumerable});return e};var I1=(e,t,r)=>(r=e!=null?yyt(wyt(e)):{},tue(t||!e||!e.__esModule?qT(r,"default",{value:e,enumerable:!0}):r,e)),ar=e=>tue(qT({},"__esModule",{value:!0}),e);var Ls=(e,t,r)=>new Promise((i,n)=>{var a=l=>{try{s(r.next(l))}catch(u){n(u)}},o=l=>{try{s(r.throw(l))}catch(u){n(u)}},s=l=>l.done?i(l.value):Promise.resolve(l.value).then(a,o);s((r=r.apply(e,t)).next())}),Tyt=function(e,t){this[0]=e,this[1]=t};var rue=e=>{var t=e[eV("asyncIterator")],r=!1,i,n={};return t==null?(t=e[eV("iterator")](),i=a=>n[a]=o=>t[a](o)):(t=t.call(e),i=a=>n[a]=o=>{if(r){if(r=!1,a==="throw")throw o;return o}return r=!0,{done:!1,value:new Tyt(new Promise(s=>{var l=t[a](o);l instanceof Object||Ayt("Object expected"),s(l)}),1)}}),n[eV("iterator")]=()=>n,i("next"),"throw"in t?i("throw"):n.throw=a=>{throw a},"return"in t&&i("return"),n};var OT=K(iue=>{"use strict";iue.version="4.1.2"});var aue=K((nue,DD)=>{(function(t,r,i){r[t]=r[t]||i(),typeof DD!="undefined"&&DD.exports&&(DD.exports=r[t])})("Promise",typeof window!="undefined"?window:nue,function(){"use strict";var t,r,i,n=Object.prototype.toString,a=typeof setImmediate!="undefined"?function(w){return setImmediate(w)}:setTimeout;try{Object.defineProperty({},"x",{}),t=function(w,_,b,M){return Object.defineProperty(w,_,{value:b,writable:!0,configurable:M!==!1})}}catch(m){t=function(_,b,M){return _[b]=M,_}}i=(function(){var w,_,b;function M(x,A){this.fn=x,this.self=A,this.next=void 0}return{add:function(A,T){b=new M(A,T),_?_.next=b:w=b,_=b,b=void 0},drain:function(){var A=w;for(w=_=r=void 0;A;)A.fn.call(A.self),A=A.next}}})();function o(m,w){i.add(m,w),r||(r=a(i.drain))}function s(m){var w,_=typeof m;return m!=null&&(_=="object"||_=="function")&&(w=m.then),typeof w=="function"?w:!1}function l(){for(var m=0;m0&&o(l,_))}catch(b){c.call(new d(_),b)}}}function c(m){var w=this;w.triggered||(w.triggered=!0,w.def&&(w=w.def),w.msg=m,w.state=2,w.chain.length>0&&o(l,w))}function h(m,w,_,b){for(var M=0;M{(function(){var e={version:"3.8.2"},t=[].slice,r=function(R){return t.call(R)},i=self.document;function n(R){return R&&(R.ownerDocument||R.document||R).documentElement}function a(R){return R&&(R.ownerDocument&&R.ownerDocument.defaultView||R.document&&R||R.defaultView)}if(i)try{r(i.documentElement.childNodes)[0].nodeType}catch(R){r=function(G){for(var ee=G.length,he=new Array(ee);ee--;)he[ee]=G[ee];return he}}if(Date.now||(Date.now=function(){return+new Date}),i)try{i.createElement("DIV").style.setProperty("opacity",0,"")}catch(R){var o=this.Element.prototype,s=o.setAttribute,l=o.setAttributeNS,u=this.CSSStyleDeclaration.prototype,f=u.setProperty;o.setAttribute=function(G,ee){s.call(this,G,ee+"")},o.setAttributeNS=function(G,ee,he){l.call(this,G,ee,he+"")},u.setProperty=function(G,ee,he){f.call(this,G,ee+"",he)}}e.ascending=c;function c(R,G){return RG?1:R>=G?0:NaN}e.descending=function(R,G){return GR?1:G>=R?0:NaN},e.min=function(R,G){var ee=-1,he=R.length,ve,_e;if(arguments.length===1){for(;++ee=_e){ve=_e;break}for(;++ee_e&&(ve=_e)}else{for(;++ee=_e){ve=_e;break}for(;++ee_e&&(ve=_e)}return ve},e.max=function(R,G){var ee=-1,he=R.length,ve,_e;if(arguments.length===1){for(;++ee=_e){ve=_e;break}for(;++eeve&&(ve=_e)}else{for(;++ee=_e){ve=_e;break}for(;++eeve&&(ve=_e)}return ve},e.extent=function(R,G){var ee=-1,he=R.length,ve,_e,je;if(arguments.length===1){for(;++ee=_e){ve=je=_e;break}for(;++ee_e&&(ve=_e),je<_e&&(je=_e))}else{for(;++ee=_e){ve=je=_e;break}for(;++ee_e&&(ve=_e),je<_e&&(je=_e))}return[ve,je]};function h(R){return R===null?NaN:+R}function d(R){return!isNaN(R)}e.sum=function(R,G){var ee=0,he=R.length,ve,_e=-1;if(arguments.length===1)for(;++_e1)return je/(Je-1)},e.deviation=function(){var R=e.variance.apply(this,arguments);return R&&Math.sqrt(R)};function p(R){return{left:function(G,ee,he,ve){for(arguments.length<3&&(he=0),arguments.length<4&&(ve=G.length);he>>1;R(G[_e],ee)<0?he=_e+1:ve=_e}return he},right:function(G,ee,he,ve){for(arguments.length<3&&(he=0),arguments.length<4&&(ve=G.length);he>>1;R(G[_e],ee)>0?ve=_e:he=_e+1}return he}}}var v=p(c);e.bisectLeft=v.left,e.bisect=e.bisectRight=v.right,e.bisector=function(R){return p(R.length===1?function(G,ee){return c(R(G),ee)}:R)},e.shuffle=function(R,G,ee){(he=arguments.length)<3&&(ee=R.length,he<2&&(G=0));for(var he=ee-G,ve,_e;he;)_e=Math.random()*he--|0,ve=R[he+G],R[he+G]=R[_e+G],R[_e+G]=ve;return R},e.permute=function(R,G){for(var ee=G.length,he=new Array(ee);ee--;)he[ee]=R[G[ee]];return he},e.pairs=function(R){for(var G=0,ee=R.length-1,he,ve=R[0],_e=new Array(ee<0?0:ee);G=0;)for(je=R[G],ee=je.length;--ee>=0;)_e[--ve]=je[ee];return _e};var m=Math.abs;e.range=function(R,G,ee){if(arguments.length<3&&(ee=1,arguments.length<2&&(G=R,R=0)),(G-R)/ee===1/0)throw new Error("infinite range");var he=[],ve=w(m(ee)),_e=-1,je;if(R*=ve,G*=ve,ee*=ve,ee<0)for(;(je=R+ee*++_e)>G;)he.push(je/ve);else for(;(je=R+ee*++_e)=G.length)return ve?ve.call(R,Je):he?Je.sort(he):Je;for(var dt=-1,Ft=Je.length,Et=G[ht++],Qt,Mr,zt,Yt=new b,sr;++dt=G.length)return qe;var ht=[],dt=ee[Je++];return qe.forEach(function(Ft,Et){ht.push({key:Ft,values:je(Et,Je)})}),dt?ht.sort(function(Ft,Et){return dt(Ft.key,Et.key)}):ht}return R.map=function(qe,Je){return _e(Je,qe,0)},R.entries=function(qe){return je(_e(e.map,qe,0),0)},R.key=function(qe){return G.push(qe),R},R.sortKeys=function(qe){return ee[G.length-1]=qe,R},R.sortValues=function(qe){return he=qe,R},R.rollup=function(qe){return ve=qe,R},R},e.set=function(R){var G=new D;if(R)for(var ee=0,he=R.length;ee=0&&(he=R.slice(ee+1),R=R.slice(0,ee)),R)return arguments.length<2?this[R].on(he):this[R].on(he,G);if(arguments.length===2){if(G==null)for(R in this)this.hasOwnProperty(R)&&this[R].on(he,null);return this}};function O(R){var G=[],ee=new b;function he(){for(var ve=G,_e=-1,je=ve.length,qe;++_e=0&&(ee=R.slice(0,G))!=="xmlns"&&(R=R.slice(G+1)),de.hasOwnProperty(ee)?{space:de[ee],local:R}:R}},H.attr=function(R,G){if(arguments.length<2){if(typeof R=="string"){var ee=this.node();return R=e.ns.qualify(R),R.local?ee.getAttributeNS(R.space,R.local):ee.getAttribute(R)}for(G in R)this.each(ge(G,R[G]));return this}return this.each(ge(R,G))};function ge(R,G){R=e.ns.qualify(R);function ee(){this.removeAttribute(R)}function he(){this.removeAttributeNS(R.space,R.local)}function ve(){this.setAttribute(R,G)}function _e(){this.setAttributeNS(R.space,R.local,G)}function je(){var Je=G.apply(this,arguments);Je==null?this.removeAttribute(R):this.setAttribute(R,Je)}function qe(){var Je=G.apply(this,arguments);Je==null?this.removeAttributeNS(R.space,R.local):this.setAttributeNS(R.space,R.local,Je)}return G==null?R.local?he:ee:typeof G=="function"?R.local?qe:je:R.local?_e:ve}function Ie(R){return R.trim().replace(/\s+/g," ")}H.classed=function(R,G){if(arguments.length<2){if(typeof R=="string"){var ee=this.node(),he=(R=le(R)).length,ve=-1;if(G=ee.classList){for(;++ve=0;)(_e=ee[he])&&(ve&&ve!==_e.nextSibling&&ve.parentNode.insertBefore(_e,ve),ve=_e);return this},H.sort=function(R){R=se.apply(this,arguments);for(var G=-1,ee=this.length;++G=G&&(G=ve+1);!(Je=je[G])&&++G0&&(R=R.slice(0,ve));var je=ce.get(R);je&&(R=je,_e=$e);function qe(){var dt=this[he];dt&&(this.removeEventListener(R,dt,dt.$),delete this[he])}function Je(){var dt=_e(G,r(arguments));qe.call(this),this.addEventListener(R,this[he]=dt,dt.$=ee),dt._=G}function ht(){var dt=new RegExp("^__on([^.]+)"+e.requote(R)+"$"),Ft;for(var Et in this)if(Ft=Et.match(dt)){var Qt=this[Et];this.removeEventListener(Ft[1],Qt,Qt.$),delete this[Et]}}return ve?G?Je:qe:G?z:ht}var ce=e.map({mouseenter:"mouseover",mouseleave:"mouseout"});i&&ce.forEach(function(R){"on"+R in i&&ce.remove(R)});function Be(R,G){return function(ee){var he=e.event;e.event=ee,G[0]=this.__data__;try{R.apply(this,G)}finally{e.event=he}}}function $e(R,G){var ee=Be(R,G);return function(he){var ve=this,_e=he.relatedTarget;(!_e||_e!==ve&&!(_e.compareDocumentPosition(ve)&8))&&ee.call(ve,he)}}var Ze,it=0;function nt(R){var G=".dragsuppress-"+ ++it,ee="click"+G,he=e.select(a(R)).on("touchmove"+G,W).on("dragstart"+G,W).on("selectstart"+G,W);if(Ze==null&&(Ze="onselectstart"in R?!1:I(R.style,"userSelect")),Ze){var ve=n(R).style,_e=ve[Ze];ve[Ze]="none"}return function(je){if(he.on(G,null),Ze&&(ve[Ze]=_e),je){var qe=function(){he.on(ee,null)};he.on(ee,function(){W(),qe()},!0),setTimeout(qe,0)}}}e.mouse=function(R){return xe(R,X())};var Ue=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;function xe(R,G){G.changedTouches&&(G=G.changedTouches[0]);var ee=R.ownerSVGElement||R;if(ee.createSVGPoint){var he=ee.createSVGPoint();if(Ue<0){var ve=a(R);if(ve.scrollX||ve.scrollY){ee=e.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var _e=ee[0][0].getScreenCTM();Ue=!(_e.f||_e.e),ee.remove()}}return Ue?(he.x=G.pageX,he.y=G.pageY):(he.x=G.clientX,he.y=G.clientY),he=he.matrixTransform(R.getScreenCTM().inverse()),[he.x,he.y]}var je=R.getBoundingClientRect();return[G.clientX-je.left-R.clientLeft,G.clientY-je.top-R.clientTop]}e.touch=function(R,G,ee){if(arguments.length<3&&(ee=G,G=X().changedTouches),G){for(var he=0,ve=G.length,_e;he0?1:R<0?-1:0}function wt(R,G,ee){return(G[0]-R[0])*(ee[1]-R[1])-(G[1]-R[1])*(ee[0]-R[0])}function At(R){return R>1?0:R<-1?De:Math.acos(R)}function Vt(R){return R>1?Se:R<-1?-Se:Math.asin(R)}function Dt(R){return((R=Math.exp(R))-1/R)/2}function yt(R){return((R=Math.exp(R))+1/R)/2}function St(R){return((R=Math.exp(2*R))-1)/(R+1)}function rr(R){return(R=Math.sin(R/2))*R}var Ke=Math.SQRT2,at=2,lt=4;e.interpolateZoom=function(R,G){var ee=R[0],he=R[1],ve=R[2],_e=G[0],je=G[1],qe=G[2],Je=_e-ee,ht=je-he,dt=Je*Je+ht*ht,Ft,Et;if(dt0&&(po=po.transition().duration(je)),po.call(br.event)}function Wo(){Yt&&Yt.domain(zt.range().map(function(po){return(po-R.x)/R.k}).map(zt.invert)),Ar&&Ar.domain(sr.range().map(function(po){return(po-R.y)/R.k}).map(sr.invert))}function Zo(po){qe++||po({type:"zoomstart"})}function Qs(po){Wo(),po({type:"zoom",scale:R.k,translate:[R.x,R.y]})}function rs(po){--qe||(po({type:"zoomend"}),ee=null)}function Us(){var po=this,el=Mr.of(po,arguments),nl=0,Vl=e.select(a(po)).on(ht,Tf).on(dt,nc),ku=Xt(e.mouse(po)),tf=nt(po);cs.call(po),Zo(el);function Tf(){nl=1,Xa(e.mouse(po),ku),Qs(el)}function nc(){Vl.on(ht,null).on(dt,null),tf(nl),rs(el)}}function jl(){var po=this,el=Mr.of(po,arguments),nl={},Vl=0,ku,tf=".zoom-"+e.event.changedTouches[0].identifier,Tf="touchmove"+tf,nc="touchend"+tf,ph=[],tt=e.select(po),qt=nt(po);hi(),Zo(el),tt.on(Je,null).on(Et,hi);function Gt(){var Yi=e.touches(po);return ku=R.k,Yi.forEach(function(ba){ba.identifier in nl&&(nl[ba.identifier]=Xt(ba))}),Yi}function hi(){var Yi=e.event.target;e.select(Yi).on(Tf,Ki).on(nc,fn),ph.push(Yi);for(var ba=e.event.changedTouches,lo=0,uo=ba.length;lo1){var ys=vo[0],Oo=vo[1],ra=ys[0]-Oo[0],Wr=ys[1]-Oo[1];Vl=ra*ra+Wr*Wr}}function Ki(){var Yi=e.touches(po),ba,lo,uo,vo;cs.call(po);for(var Vs=0,ys=Yi.length;Vs1?1:G,ee=ee<0?0:ee>1?1:ee,ve=ee<=.5?ee*(1+G):ee+G-ee*G,he=2*ee-ve;function _e(qe){return qe>360?qe-=360:qe<0&&(qe+=360),qe<60?he+(ve-he)*qe/60:qe<180?ve:qe<240?he+(ve-he)*(240-qe)/60:he}function je(qe){return Math.round(_e(qe)*255)}return new pr(je(R+120),je(R),je(R-120))}e.hcl=Er;function Er(R,G,ee){return this instanceof Er?(this.h=+R,this.c=+G,void(this.l=+ee)):arguments.length<2?R instanceof Er?new Er(R.h,R.c,R.l):R instanceof Kr?wr(R.l,R.a,R.b):wr((R=Kt((R=e.rgb(R)).r,R.g,R.b)).l,R.a,R.b):new Er(R,G,ee)}var hr=Er.prototype=new kt;hr.brighter=function(R){return new Er(this.h,this.c,Math.min(100,this.l+si*(arguments.length?R:1)))},hr.darker=function(R){return new Er(this.h,this.c,Math.max(0,this.l-si*(arguments.length?R:1)))},hr.rgb=function(){return ni(this.h,this.c,this.l).rgb()};function ni(R,G,ee){return isNaN(R)&&(R=0),isNaN(G)&&(G=0),new Kr(ee,Math.cos(R*=ze)*G,Math.sin(R)*G)}e.lab=Kr;function Kr(R,G,ee){return this instanceof Kr?(this.l=+R,this.a=+G,void(this.b=+ee)):arguments.length<2?R instanceof Kr?new Kr(R.l,R.a,R.b):R instanceof Er?ni(R.h,R.c,R.l):Kt((R=pr(R)).r,R.g,R.b):new Kr(R,G,ee)}var si=18,Tr=.95047,vr=1,Hr=1.08883,Di=Kr.prototype=new kt;Di.brighter=function(R){return new Kr(Math.min(100,this.l+si*(arguments.length?R:1)),this.a,this.b)},Di.darker=function(R){return new Kr(Math.max(0,this.l-si*(arguments.length?R:1)),this.a,this.b)},Di.rgb=function(){return gn(this.l,this.a,this.b)};function gn(R,G,ee){var he=(R+16)/116,ve=he+G/500,_e=he-ee/200;return ve=qr(ve)*Tr,he=qr(he)*vr,_e=qr(_e)*Hr,new pr(jt(3.2404542*ve-1.5371385*he-.4985314*_e),jt(-.969266*ve+1.8760108*he+.041556*_e),jt(.0556434*ve-.2040259*he+1.0572252*_e))}function wr(R,G,ee){return R>0?new Er(Math.atan2(ee,G)*st,Math.sqrt(G*G+ee*ee),R):new Er(NaN,NaN,R)}function qr(R){return R>.206893034?R*R*R:(R-4/29)/7.787037}function Ut(R){return R>.008856?Math.pow(R,1/3):7.787037*R+4/29}function jt(R){return Math.round(255*(R<=.00304?12.92*R:1.055*Math.pow(R,1/2.4)-.055))}e.rgb=pr;function pr(R,G,ee){return this instanceof pr?(this.r=~~R,this.g=~~G,void(this.b=~~ee)):arguments.length<2?R instanceof pr?new pr(R.r,R.g,R.b):Fi(""+R,pr,Lr):new pr(R,G,ee)}function Ur(R){return new pr(R>>16,R>>8&255,R&255)}function Sr(R){return Ur(R)+""}var Cr=pr.prototype=new kt;Cr.brighter=function(R){R=Math.pow(.7,arguments.length?R:1);var G=this.r,ee=this.g,he=this.b,ve=30;return!G&&!ee&&!he?new pr(ve,ve,ve):(G&&G>4,he=he>>4|he,ve=Je&240,ve=ve>>4|ve,_e=Je&15,_e=_e<<4|_e):R.length===7&&(he=(Je&16711680)>>16,ve=(Je&65280)>>8,_e=Je&255)),G(he,ve,_e))}function ir(R,G,ee){var he=Math.min(R/=255,G/=255,ee/=255),ve=Math.max(R,G,ee),_e=ve-he,je,qe,Je=(ve+he)/2;return _e?(qe=Je<.5?_e/(ve+he):_e/(2-ve-he),R==ve?je=(G-ee)/_e+(G0&&Je<1?0:je),new $t(je,qe,Je)}function Kt(R,G,ee){R=Me(R),G=Me(G),ee=Me(ee);var he=Ut((.4124564*R+.3575761*G+.1804375*ee)/Tr),ve=Ut((.2126729*R+.7151522*G+.072175*ee)/vr),_e=Ut((.0193339*R+.119192*G+.9503041*ee)/Hr);return Kr(116*ve-16,500*(he-ve),200*(ve-_e))}function Me(R){return(R/=255)<=.04045?R/12.92:Math.pow((R+.055)/1.055,2.4)}function Xe(R){var G=parseFloat(R);return R.charAt(R.length-1)==="%"?Math.round(G*2.55):G}var Ye=e.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});Ye.forEach(function(R,G){Ye.set(R,Ur(G))});function et(R){return typeof R=="function"?R:function(){return R}}e.functor=et,e.xhr=gt(L);function gt(R){return function(G,ee,he){return arguments.length===2&&typeof ee=="function"&&(he=ee,ee=null),bt(G,ee,R,he)}}function bt(R,G,ee,he){var ve={},_e=e.dispatch("beforesend","progress","load","error"),je={},qe=new XMLHttpRequest,Je=null;self.XDomainRequest&&!("withCredentials"in qe)&&/^(http(s)?:)?\/\//.test(R)&&(qe=new XDomainRequest),"onload"in qe?qe.onload=qe.onerror=ht:qe.onreadystatechange=function(){qe.readyState>3&&ht()};function ht(){var dt=qe.status,Ft;if(!dt&&Ct(qe)||dt>=200&&dt<300||dt===304){try{Ft=ee.call(ve,qe)}catch(Et){_e.error.call(ve,Et);return}_e.load.call(ve,Ft)}else _e.error.call(ve,qe)}return qe.onprogress=function(dt){var Ft=e.event;e.event=dt;try{_e.progress.call(ve,qe)}finally{e.event=Ft}},ve.header=function(dt,Ft){return dt=(dt+"").toLowerCase(),arguments.length<2?je[dt]:(Ft==null?delete je[dt]:je[dt]=Ft+"",ve)},ve.mimeType=function(dt){return arguments.length?(G=dt==null?null:dt+"",ve):G},ve.responseType=function(dt){return arguments.length?(Je=dt,ve):Je},ve.response=function(dt){return ee=dt,ve},["get","post"].forEach(function(dt){ve[dt]=function(){return ve.send.apply(ve,[dt].concat(r(arguments)))}}),ve.send=function(dt,Ft,Et){if(arguments.length===2&&typeof Ft=="function"&&(Et=Ft,Ft=null),qe.open(dt,R,!0),G!=null&&!("accept"in je)&&(je.accept=G+",*/*"),qe.setRequestHeader)for(var Qt in je)qe.setRequestHeader(Qt,je[Qt]);return G!=null&&qe.overrideMimeType&&qe.overrideMimeType(G),Je!=null&&(qe.responseType=Je),Et!=null&&ve.on("error",Et).on("load",function(Mr){Et(null,Mr)}),_e.beforesend.call(ve,qe),qe.send(Ft==null?null:Ft),ve},ve.abort=function(){return qe.abort(),ve},e.rebind(ve,_e,"on"),he==null?ve:ve.get(lr(he))}function lr(R){return R.length===1?function(G,ee){R(G==null?ee:null)}:R}function Ct(R){var G=R.responseType;return G&&G!=="text"?R.response:R.responseText}e.dsv=function(R,G){var ee=new RegExp('["'+R+` -]`),he=R.charCodeAt(0);function ve(ht,dt,Ft){arguments.length<3&&(Ft=dt,dt=null);var Et=bt(ht,G,dt==null?_e:je(dt),Ft);return Et.row=function(Qt){return arguments.length?Et.response((dt=Qt)==null?_e:je(Qt)):dt},Et}function _e(ht){return ve.parse(ht.responseText)}function je(ht){return function(dt){return ve.parse(dt.responseText,ht)}}ve.parse=function(ht,dt){var Ft;return ve.parseRows(ht,function(Et,Qt){if(Ft)return Ft(Et,Qt-1);var Mr=function(zt){for(var Yt={},sr=Et.length,Ar=0;Ar=Mr)return Et;if(Ar)return Ar=!1,Ft;var _n=zt;if(ht.charCodeAt(_n)===34){for(var ha=_n;ha++{var Myt=Object.create;var OT=Object.defineProperty,Syt=Object.defineProperties,Eyt=Object.getOwnPropertyDescriptor,kyt=Object.getOwnPropertyDescriptors,Cyt=Object.getOwnPropertyNames,DD=Object.getOwnPropertySymbols,Dyt=Object.getPrototypeOf,sV=Object.prototype.hasOwnProperty,uue=Object.prototype.propertyIsEnumerable;var oV=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),Fyt=e=>{throw TypeError(e)};var lue=(e,t,r)=>t in e?OT(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Gs=(e,t)=>{for(var r in t||(t={}))sV.call(t,r)&&lue(e,r,t[r]);if(DD)for(var r of DD(t))uue.call(t,r)&&lue(e,r,t[r]);return e},$l=(e,t)=>Syt(e,kyt(t));var FD=(e,t)=>{var r={};for(var i in e)sV.call(e,i)&&t.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&DD)for(var i of DD(e))t.indexOf(i)<0&&uue.call(e,i)&&(r[i]=e[i]);return r};var ps=(e,t,r)=>()=>{if(r)throw r[0];try{return e&&(t=e(e=0)),t}catch(i){throw r=[i],i}};var K=(e,t)=>()=>{try{return t||e((t={exports:{}}).exports,t),t.exports}catch(r){throw t=0,r}},Fl=(e,t)=>{for(var r in t)OT(e,r,{get:t[r],enumerable:!0})},fue=(e,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of Cyt(t))!sV.call(e,n)&&n!==r&&OT(e,n,{get:()=>t[n],enumerable:!(i=Eyt(t,n))||i.enumerable});return e};var O1=(e,t,r)=>(r=e!=null?Myt(Dyt(e)):{},fue(t||!e||!e.__esModule?OT(r,"default",{value:e,enumerable:!0}):r,e)),or=e=>fue(OT({},"__esModule",{value:!0}),e);var Ls=(e,t,r)=>new Promise((i,n)=>{var a=l=>{try{s(r.next(l))}catch(u){n(u)}},o=l=>{try{s(r.throw(l))}catch(u){n(u)}},s=l=>l.done?i(l.value):Promise.resolve(l.value).then(a,o);s((r=r.apply(e,t)).next())}),Lyt=function(e,t){this[0]=e,this[1]=t};var cue=e=>{var t=e[oV("asyncIterator")],r=!1,i,n={};return t==null?(t=e[oV("iterator")](),i=a=>n[a]=o=>t[a](o)):(t=t.call(e),i=a=>n[a]=o=>{if(r){if(r=!1,a==="throw")throw o;return o}return r=!0,{done:!1,value:new Lyt(new Promise(s=>{var l=t[a](o);l instanceof Object||Fyt("Object expected"),s(l)}),1)}}),n[oV("iterator")]=()=>n,i("next"),"throw"in t?i("throw"):n.throw=a=>{throw a},"return"in t&&i("return"),n};var NT=K(hue=>{"use strict";hue.version="4.2.0"});var pue=K((due,LD)=>{(function(t,r,i){r[t]=r[t]||i(),typeof LD!="undefined"&&LD.exports&&(LD.exports=r[t])})("Promise",typeof window!="undefined"?window:due,function(){"use strict";var t,r,i,n=Object.prototype.toString,a=typeof setImmediate!="undefined"?function(w){return setImmediate(w)}:setTimeout;try{Object.defineProperty({},"x",{}),t=function(w,_,b,M){return Object.defineProperty(w,_,{value:b,writable:!0,configurable:M!==!1})}}catch(m){t=function(_,b,M){return _[b]=M,_}}i=(function(){var w,_,b;function M(x,T){this.fn=x,this.self=T,this.next=void 0}return{add:function(T,A){b=new M(T,A),_?_.next=b:w=b,_=b,b=void 0},drain:function(){var T=w;for(w=_=r=void 0;T;)T.fn.call(T.self),T=T.next}}})();function o(m,w){i.add(m,w),r||(r=a(i.drain))}function s(m){var w,_=typeof m;return m!=null&&(_=="object"||_=="function")&&(w=m.then),typeof w=="function"?w:!1}function l(){for(var m=0;m0&&o(l,_))}catch(b){c.call(new d(_),b)}}}function c(m){var w=this;w.triggered||(w.triggered=!0,w.def&&(w=w.def),w.msg=m,w.state=2,w.chain.length>0&&o(l,w))}function h(m,w,_,b){for(var M=0;M{(function(){var e={version:"3.8.2"},t=[].slice,r=function(R){return t.call(R)},i=self.document;function n(R){return R&&(R.ownerDocument||R.document||R).documentElement}function a(R){return R&&(R.ownerDocument&&R.ownerDocument.defaultView||R.document&&R||R.defaultView)}if(i)try{r(i.documentElement.childNodes)[0].nodeType}catch(R){r=function(G){for(var ee=G.length,he=new Array(ee);ee--;)he[ee]=G[ee];return he}}if(Date.now||(Date.now=function(){return+new Date}),i)try{i.createElement("DIV").style.setProperty("opacity",0,"")}catch(R){var o=this.Element.prototype,s=o.setAttribute,l=o.setAttributeNS,u=this.CSSStyleDeclaration.prototype,f=u.setProperty;o.setAttribute=function(G,ee){s.call(this,G,ee+"")},o.setAttributeNS=function(G,ee,he){l.call(this,G,ee,he+"")},u.setProperty=function(G,ee,he){f.call(this,G,ee+"",he)}}e.ascending=c;function c(R,G){return RG?1:R>=G?0:NaN}e.descending=function(R,G){return GR?1:G>=R?0:NaN},e.min=function(R,G){var ee=-1,he=R.length,ve,be;if(arguments.length===1){for(;++ee=be){ve=be;break}for(;++eebe&&(ve=be)}else{for(;++ee=be){ve=be;break}for(;++eebe&&(ve=be)}return ve},e.max=function(R,G){var ee=-1,he=R.length,ve,be;if(arguments.length===1){for(;++ee=be){ve=be;break}for(;++eeve&&(ve=be)}else{for(;++ee=be){ve=be;break}for(;++eeve&&(ve=be)}return ve},e.extent=function(R,G){var ee=-1,he=R.length,ve,be,je;if(arguments.length===1){for(;++ee=be){ve=je=be;break}for(;++eebe&&(ve=be),je=be){ve=je=be;break}for(;++eebe&&(ve=be),je1)return je/(Je-1)},e.deviation=function(){var R=e.variance.apply(this,arguments);return R&&Math.sqrt(R)};function p(R){return{left:function(G,ee,he,ve){for(arguments.length<3&&(he=0),arguments.length<4&&(ve=G.length);he>>1;R(G[be],ee)<0?he=be+1:ve=be}return he},right:function(G,ee,he,ve){for(arguments.length<3&&(he=0),arguments.length<4&&(ve=G.length);he>>1;R(G[be],ee)>0?ve=be:he=be+1}return he}}}var v=p(c);e.bisectLeft=v.left,e.bisect=e.bisectRight=v.right,e.bisector=function(R){return p(R.length===1?function(G,ee){return c(R(G),ee)}:R)},e.shuffle=function(R,G,ee){(he=arguments.length)<3&&(ee=R.length,he<2&&(G=0));for(var he=ee-G,ve,be;he;)be=Math.random()*he--|0,ve=R[he+G],R[he+G]=R[be+G],R[be+G]=ve;return R},e.permute=function(R,G){for(var ee=G.length,he=new Array(ee);ee--;)he[ee]=R[G[ee]];return he},e.pairs=function(R){for(var G=0,ee=R.length-1,he,ve=R[0],be=new Array(ee<0?0:ee);G=0;)for(je=R[G],ee=je.length;--ee>=0;)be[--ve]=je[ee];return be};var m=Math.abs;e.range=function(R,G,ee){if(arguments.length<3&&(ee=1,arguments.length<2&&(G=R,R=0)),(G-R)/ee===1/0)throw new Error("infinite range");var he=[],ve=w(m(ee)),be=-1,je;if(R*=ve,G*=ve,ee*=ve,ee<0)for(;(je=R+ee*++be)>G;)he.push(je/ve);else for(;(je=R+ee*++be)=G.length)return ve?ve.call(R,Je):he?Je.sort(he):Je;for(var pt=-1,Lt=Je.length,kt=G[ht++],Qt,Sr,It,Yt=new b,sr;++pt=G.length)return qe;var ht=[],pt=ee[Je++];return qe.forEach(function(Lt,kt){ht.push({key:Lt,values:je(kt,Je)})}),pt?ht.sort(function(Lt,kt){return pt(Lt.key,kt.key)}):ht}return R.map=function(qe,Je){return be(Je,qe,0)},R.entries=function(qe){return je(be(e.map,qe,0),0)},R.key=function(qe){return G.push(qe),R},R.sortKeys=function(qe){return ee[G.length-1]=qe,R},R.sortValues=function(qe){return he=qe,R},R.rollup=function(qe){return ve=qe,R},R},e.set=function(R){var G=new D;if(R)for(var ee=0,he=R.length;ee=0&&(he=R.slice(ee+1),R=R.slice(0,ee)),R)return arguments.length<2?this[R].on(he):this[R].on(he,G);if(arguments.length===2){if(G==null)for(R in this)this.hasOwnProperty(R)&&this[R].on(he,null);return this}};function O(R){var G=[],ee=new b;function he(){for(var ve=G,be=-1,je=ve.length,qe;++be=0&&(ee=R.slice(0,G))!=="xmlns"&&(R=R.slice(G+1)),de.hasOwnProperty(ee)?{space:de[ee],local:R}:R}},j.attr=function(R,G){if(arguments.length<2){if(typeof R=="string"){var ee=this.node();return R=e.ns.qualify(R),R.local?ee.getAttributeNS(R.space,R.local):ee.getAttribute(R)}for(G in R)this.each(me(G,R[G]));return this}return this.each(me(R,G))};function me(R,G){R=e.ns.qualify(R);function ee(){this.removeAttribute(R)}function he(){this.removeAttributeNS(R.space,R.local)}function ve(){this.setAttribute(R,G)}function be(){this.setAttributeNS(R.space,R.local,G)}function je(){var Je=G.apply(this,arguments);Je==null?this.removeAttribute(R):this.setAttribute(R,Je)}function qe(){var Je=G.apply(this,arguments);Je==null?this.removeAttributeNS(R.space,R.local):this.setAttributeNS(R.space,R.local,Je)}return G==null?R.local?he:ee:typeof G=="function"?R.local?qe:je:R.local?be:ve}function ze(R){return R.trim().replace(/\s+/g," ")}j.classed=function(R,G){if(arguments.length<2){if(typeof R=="string"){var ee=this.node(),he=(R=le(R)).length,ve=-1;if(G=ee.classList){for(;++ve=0;)(be=ee[he])&&(ve&&ve!==be.nextSibling&&ve.parentNode.insertBefore(be,ve),ve=be);return this},j.sort=function(R){R=ue.apply(this,arguments);for(var G=-1,ee=this.length;++G=G&&(G=ve+1);!(Je=je[G])&&++G0&&(R=R.slice(0,ve));var je=fe.get(R);je&&(R=je,be=We);function qe(){var pt=this[he];pt&&(this.removeEventListener(R,pt,pt.$),delete this[he])}function Je(){var pt=be(G,r(arguments));qe.call(this),this.addEventListener(R,this[he]=pt,pt.$=ee),pt._=G}function ht(){var pt=new RegExp("^__on([^.]+)"+e.requote(R)+"$"),Lt;for(var kt in this)if(Lt=kt.match(pt)){var Qt=this[kt];this.removeEventListener(Lt[1],Qt,Qt.$),delete this[kt]}}return ve?G?Je:qe:G?z:ht}var fe=e.map({mouseenter:"mouseover",mouseleave:"mouseout"});i&&fe.forEach(function(R){"on"+R in i&&fe.remove(R)});function Re(R,G){return function(ee){var he=e.event;e.event=ee,G[0]=this.__data__;try{R.apply(this,G)}finally{e.event=he}}}function We(R,G){var ee=Re(R,G);return function(he){var ve=this,be=he.relatedTarget;(!be||be!==ve&&!(be.compareDocumentPosition(ve)&8))&&ee.call(ve,he)}}var Ke,tt=0;function at(R){var G=".dragsuppress-"+ ++tt,ee="click"+G,he=e.select(a(R)).on("touchmove"+G,W).on("dragstart"+G,W).on("selectstart"+G,W);if(Ke==null&&(Ke="onselectstart"in R?!1:I(R.style,"userSelect")),Ke){var ve=n(R).style,be=ve[Ke];ve[Ke]="none"}return function(je){if(he.on(G,null),Ke&&(ve[Ke]=be),je){var qe=function(){he.on(ee,null)};he.on(ee,function(){W(),qe()},!0),setTimeout(qe,0)}}}e.mouse=function(R){return ge(R,X())};var Ge=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;function ge(R,G){G.changedTouches&&(G=G.changedTouches[0]);var ee=R.ownerSVGElement||R;if(ee.createSVGPoint){var he=ee.createSVGPoint();if(Ge<0){var ve=a(R);if(ve.scrollX||ve.scrollY){ee=e.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var be=ee[0][0].getScreenCTM();Ge=!(be.f||be.e),ee.remove()}}return Ge?(he.x=G.pageX,he.y=G.pageY):(he.x=G.clientX,he.y=G.clientY),he=he.matrixTransform(R.getScreenCTM().inverse()),[he.x,he.y]}var je=R.getBoundingClientRect();return[G.clientX-je.left-R.clientLeft,G.clientY-je.top-R.clientTop]}e.touch=function(R,G,ee){if(arguments.length<3&&(ee=G,G=X().changedTouches),G){for(var he=0,ve=G.length,be;he0?1:R<0?-1:0}function _t(R,G,ee){return(G[0]-R[0])*(ee[1]-R[1])-(G[1]-R[1])*(ee[0]-R[0])}function At(R){return R>1?0:R<-1?De:Math.acos(R)}function Gt(R){return R>1?Se:R<-1?-Se:Math.asin(R)}function Dt(R){return((R=Math.exp(R))-1/R)/2}function yt(R){return((R=Math.exp(R))+1/R)/2}function Mt(R){return((R=Math.exp(2*R))-1)/(R+1)}function tr(R){return(R=Math.sin(R/2))*R}var Ye=Math.SQRT2,nt=2,st=4;e.interpolateZoom=function(R,G){var ee=R[0],he=R[1],ve=R[2],be=G[0],je=G[1],qe=G[2],Je=be-ee,ht=je-he,pt=Je*Je+ht*ht,Lt,kt;if(pt0&&(po=po.transition().duration(je)),po.call(br.event)}function Wo(){Yt&&Yt.domain(It.range().map(function(po){return(po-R.x)/R.k}).map(It.invert)),Ar&&Ar.domain(sr.range().map(function(po){return(po-R.y)/R.k}).map(sr.invert))}function Zo(po){qe++||po({type:"zoomstart"})}function Qs(po){Wo(),po({type:"zoom",scale:R.k,translate:[R.x,R.y]})}function rs(po){--qe||(po({type:"zoomend"}),ee=null)}function Us(){var po=this,el=Sr.of(po,arguments),nl=0,Vl=e.select(a(po)).on(ht,Tf).on(pt,sc),Cu=Xt(e.mouse(po)),tf=at(po);cs.call(po),Zo(el);function Tf(){nl=1,Xa(e.mouse(po),Cu),Qs(el)}function sc(){Vl.on(ht,null).on(pt,null),tf(nl),rs(el)}}function jl(){var po=this,el=Sr.of(po,arguments),nl={},Vl=0,Cu,tf=".zoom-"+e.event.changedTouches[0].identifier,Tf="touchmove"+tf,sc="touchend"+tf,vh=[],et=e.select(po),Ot=at(po);hi(),Zo(el),et.on(Je,null).on(kt,hi);function Ht(){var Xi=e.touches(po);return Cu=R.k,Xi.forEach(function(ba){ba.identifier in nl&&(nl[ba.identifier]=Xt(ba))}),Xi}function hi(){var Xi=e.event.target;e.select(Xi).on(Tf,Ji).on(sc,cn),vh.push(Xi);for(var ba=e.event.changedTouches,lo=0,uo=ba.length;lo1){var ys=vo[0],Oo=vo[1],ra=ys[0]-Oo[0],$r=ys[1]-Oo[1];Vl=ra*ra+$r*$r}}function Ji(){var Xi=e.touches(po),ba,lo,uo,vo;cs.call(po);for(var Vs=0,ys=Xi.length;Vs1?1:G,ee=ee<0?0:ee>1?1:ee,ve=ee<=.5?ee*(1+G):ee+G-ee*G,he=2*ee-ve;function be(qe){return qe>360?qe-=360:qe<0&&(qe+=360),qe<60?he+(ve-he)*qe/60:qe<180?ve:qe<240?he+(ve-he)*(240-qe)/60:he}function je(qe){return Math.round(be(qe)*255)}return new dr(je(R+120),je(R),je(R-120))}e.hcl=kr;function kr(R,G,ee){return this instanceof kr?(this.h=+R,this.c=+G,void(this.l=+ee)):arguments.length<2?R instanceof kr?new kr(R.h,R.c,R.l):R instanceof Or?wr(R.l,R.a,R.b):wr((R=Kt((R=e.rgb(R)).r,R.g,R.b)).l,R.a,R.b):new kr(R,G,ee)}var fr=kr.prototype=new Ft;fr.brighter=function(R){return new kr(this.h,this.c,Math.min(100,this.l+ri*(arguments.length?R:1)))},fr.darker=function(R){return new kr(this.h,this.c,Math.max(0,this.l-ri*(arguments.length?R:1)))},fr.rgb=function(){return Yr(this.h,this.c,this.l).rgb()};function Yr(R,G,ee){return isNaN(R)&&(R=0),isNaN(G)&&(G=0),new Or(ee,Math.cos(R*=Ie)*G,Math.sin(R)*G)}e.lab=Or;function Or(R,G,ee){return this instanceof Or?(this.l=+R,this.a=+G,void(this.b=+ee)):arguments.length<2?R instanceof Or?new Or(R.l,R.a,R.b):R instanceof kr?Yr(R.h,R.c,R.l):Kt((R=dr(R)).r,R.g,R.b):new Or(R,G,ee)}var ri=18,Tr=.95047,Mr=1,Gr=1.08883,_i=Or.prototype=new Ft;_i.brighter=function(R){return new Or(Math.min(100,this.l+ri*(arguments.length?R:1)),this.a,this.b)},_i.darker=function(R){return new Or(Math.max(0,this.l-ri*(arguments.length?R:1)),this.a,this.b)},_i.rgb=function(){return Fi(this.l,this.a,this.b)};function Fi(R,G,ee){var he=(R+16)/116,ve=he+G/500,be=he-ee/200;return ve=Cr(ve)*Tr,he=Cr(he)*Mr,be=Cr(be)*Gr,new dr(Wt(3.2404542*ve-1.5371385*he-.4985314*be),Wt(-.969266*ve+1.8760108*he+.041556*be),Wt(.0556434*ve-.2040259*he+1.0572252*be))}function wr(R,G,ee){return R>0?new kr(Math.atan2(ee,G)*ot,Math.sqrt(G*G+ee*ee),R):new kr(NaN,NaN,R)}function Cr(R){return R>.206893034?R*R*R:(R-4/29)/7.787037}function Ut(R){return R>.008856?Math.pow(R,1/3):7.787037*R+4/29}function Wt(R){return Math.round(255*(R<=.00304?12.92*R:1.055*Math.pow(R,1/2.4)-.055))}e.rgb=dr;function dr(R,G,ee){return this instanceof dr?(this.r=~~R,this.g=~~G,void(this.b=~~ee)):arguments.length<2?R instanceof dr?new dr(R.r,R.g,R.b):Li(""+R,dr,xr):new dr(R,G,ee)}function Hr(R){return new dr(R>>16,R>>8&255,R&255)}function Er(R){return Hr(R)+""}var Fr=dr.prototype=new Ft;Fr.brighter=function(R){R=Math.pow(.7,arguments.length?R:1);var G=this.r,ee=this.g,he=this.b,ve=30;return!G&&!ee&&!he?new dr(ve,ve,ve):(G&&G>4,he=he>>4|he,ve=Je&240,ve=ve>>4|ve,be=Je&15,be=be<<4|be):R.length===7&&(he=(Je&16711680)>>16,ve=(Je&65280)>>8,be=Je&255)),G(he,ve,be))}function nr(R,G,ee){var he=Math.min(R/=255,G/=255,ee/=255),ve=Math.max(R,G,ee),be=ve-he,je,qe,Je=(ve+he)/2;return be?(qe=Je<.5?be/(ve+he):be/(2-ve-he),R==ve?je=(G-ee)/be+(G0&&Je<1?0:je),new Et(je,qe,Je)}function Kt(R,G,ee){R=Me(R),G=Me(G),ee=Me(ee);var he=Ut((.4124564*R+.3575761*G+.1804375*ee)/Tr),ve=Ut((.2126729*R+.7151522*G+.072175*ee)/Mr),be=Ut((.0193339*R+.119192*G+.9503041*ee)/Gr);return Or(116*ve-16,500*(he-ve),200*(ve-be))}function Me(R){return(R/=255)<=.04045?R/12.92:Math.pow((R+.055)/1.055,2.4)}function Xe(R){var G=parseFloat(R);return R.charAt(R.length-1)==="%"?Math.round(G*2.55):G}var $e=e.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});$e.forEach(function(R,G){$e.set(R,Hr(G))});function Qe(R){return typeof R=="function"?R:function(){return R}}e.functor=Qe,e.xhr=gt(F);function gt(R){return function(G,ee,he){return arguments.length===2&&typeof ee=="function"&&(he=ee,ee=null),bt(G,ee,R,he)}}function bt(R,G,ee,he){var ve={},be=e.dispatch("beforesend","progress","load","error"),je={},qe=new XMLHttpRequest,Je=null;self.XDomainRequest&&!("withCredentials"in qe)&&/^(http(s)?:)?\/\//.test(R)&&(qe=new XDomainRequest),"onload"in qe?qe.onload=qe.onerror=ht:qe.onreadystatechange=function(){qe.readyState>3&&ht()};function ht(){var pt=qe.status,Lt;if(!pt&&Ct(qe)||pt>=200&&pt<300||pt===304){try{Lt=ee.call(ve,qe)}catch(kt){be.error.call(ve,kt);return}be.load.call(ve,Lt)}else be.error.call(ve,qe)}return qe.onprogress=function(pt){var Lt=e.event;e.event=pt;try{be.progress.call(ve,qe)}finally{e.event=Lt}},ve.header=function(pt,Lt){return pt=(pt+"").toLowerCase(),arguments.length<2?je[pt]:(Lt==null?delete je[pt]:je[pt]=Lt+"",ve)},ve.mimeType=function(pt){return arguments.length?(G=pt==null?null:pt+"",ve):G},ve.responseType=function(pt){return arguments.length?(Je=pt,ve):Je},ve.response=function(pt){return ee=pt,ve},["get","post"].forEach(function(pt){ve[pt]=function(){return ve.send.apply(ve,[pt].concat(r(arguments)))}}),ve.send=function(pt,Lt,kt){if(arguments.length===2&&typeof Lt=="function"&&(kt=Lt,Lt=null),qe.open(pt,R,!0),G!=null&&!("accept"in je)&&(je.accept=G+",*/*"),qe.setRequestHeader)for(var Qt in je)qe.setRequestHeader(Qt,je[Qt]);return G!=null&&qe.overrideMimeType&&qe.overrideMimeType(G),Je!=null&&(qe.responseType=Je),kt!=null&&ve.on("error",kt).on("load",function(Sr){kt(null,Sr)}),be.beforesend.call(ve,qe),qe.send(Lt==null?null:Lt),ve},ve.abort=function(){return qe.abort(),ve},e.rebind(ve,be,"on"),he==null?ve:ve.get(lr(he))}function lr(R){return R.length===1?function(G,ee){R(G==null?ee:null)}:R}function Ct(R){var G=R.responseType;return G&&G!=="text"?R.response:R.responseText}e.dsv=function(R,G){var ee=new RegExp('["'+R+` +]`),he=R.charCodeAt(0);function ve(ht,pt,Lt){arguments.length<3&&(Lt=pt,pt=null);var kt=bt(ht,G,pt==null?be:je(pt),Lt);return kt.row=function(Qt){return arguments.length?kt.response((pt=Qt)==null?be:je(Qt)):pt},kt}function be(ht){return ve.parse(ht.responseText)}function je(ht){return function(pt){return ve.parse(pt.responseText,ht)}}ve.parse=function(ht,pt){var Lt;return ve.parseRows(ht,function(kt,Qt){if(Lt)return Lt(kt,Qt-1);var Sr=function(It){for(var Yt={},sr=kt.length,Ar=0;Ar=Sr)return kt;if(Ar)return Ar=!1,Lt;var _n=It;if(ht.charCodeAt(_n)===34){for(var ha=_n;ha++24?(isFinite(G)&&(clearTimeout(Nr),Nr=setTimeout(Qr,G)),Rr=0):(Rr=1,gi(Qr))}e.timer.flush=function(){Ui(),ln()};function Ui(){for(var R=Date.now(),G=ur;G;)R>=G.t&&G.c(R-G.t)&&(G.c=null),G=G.n;return R}function ln(){for(var R,G=ur,ee=1/0;G;)G.c?(G.t=0;--qe)zt.push(ve[ht[Ft[qe]][2]]);for(qe=+Qt;qe1&&wt(R[ee[he-2]],R[ee[he-1]],R[ve])<=0;)--he;ee[he++]=ve}return ee.slice(0,he)}function ti(R,G){return R[0]-G[0]||R[1]-G[1]}e.geom.polygon=function(R){return q(R,Fr),R};var Fr=e.geom.polygon.prototype=[];Fr.area=function(){for(var R=-1,G=this.length,ee,he=this[G-1],ve=0;++RQe)qe=qe.L;else if(je=G-wi(qe,ee),je>Qe){if(!qe.R){he=qe;break}qe=qe.R}else{_e>-Qe?(he=qe.P,ve=qe):je>-Qe?(he=qe,ve=qe.N):he=ve=qe;break}var Je=ca(R);if(Qi.insert(he,Je),!(!he&&!ve)){if(he===ve){Fn(he),ve=ca(he.site),Qi.insert(Je,ve),Je.edge=ve.edge=Vi(he.site,Je.site),pi(he),pi(ve);return}if(!ve){Je.edge=Vi(he.site,Je.site);return}Fn(he),Fn(ve);var ht=he.site,dt=ht.x,Ft=ht.y,Et=R.x-dt,Qt=R.y-Ft,Mr=ve.site,zt=Mr.x-dt,Yt=Mr.y-Ft,sr=2*(Et*Yt-Qt*zt),Ar=Et*Et+Qt*Qt,br=zt*zt+Yt*Yt,Xt={x:(Yt*Ar-Qt*br)/sr+dt,y:(Et*br-zt*Ar)/sr+Ft};Na(ve.edge,ht,Mr,Xt),Je.edge=Vi(ht,R,null,Xt),ve.edge=Vi(R,Mr,null,Xt),pi(he),pi(ve)}}function tn(R,G){var ee=R.site,he=ee.x,ve=ee.y,_e=ve-G;if(!_e)return he;var je=R.P;if(!je)return-1/0;ee=je.site;var qe=ee.x,Je=ee.y,ht=Je-G;if(!ht)return qe;var dt=qe-he,Ft=1/_e-1/ht,Et=dt/ht;return Ft?(-Et+Math.sqrt(Et*Et-2*Ft*(dt*dt/(-2*ht)-Je+ht/2+ve-_e/2)))/Ft+he:(he+qe)/2}function wi(R,G){var ee=R.N;if(ee)return tn(ee,G);var he=R.site;return he.y===G?he.x:1/0}function rn(R){this.site=R,this.edges=[]}rn.prototype.prepare=function(){for(var R=this.edges,G=R.length,ee;G--;)ee=R[G].edge,(!ee.b||!ee.a)&&R.splice(G,1);return R.sort(ea),R.length};function Ai(R){for(var G=R[0][0],ee=R[1][0],he=R[0][1],ve=R[1][1],_e,je,qe,Je,ht=Wi,dt=ht.length,Ft,Et,Qt,Mr,zt,Yt;dt--;)if(Ft=ht[dt],!(!Ft||!Ft.prepare()))for(Qt=Ft.edges,Mr=Qt.length,Et=0;EtQe||m(Je-je)>Qe)&&(Qt.splice(Et,0,new an(pa(Ft.site,Yt,m(qe-G)Qe?{x:G,y:m(_e-G)Qe?{x:m(je-ve)Qe?{x:ee,y:m(_e-ee)Qe?{x:m(je-he)=-Pe)){var Et=Je*Je+ht*ht,Qt=dt*dt+Yt*Yt,Mr=(Yt*Et-ht*Qt)/Ft,zt=(Je*Qt-dt*Et)/Ft,Yt=zt+qe,sr=aa.pop()||new qn;sr.arc=R,sr.site=ve,sr.x=Mr+je,sr.y=Yt+Math.sqrt(Mr*Mr+zt*zt),sr.cy=Yt,R.circle=sr;for(var Ar=null,br=fi._;br;)if(sr.y0)){if(zt/=Qt,Qt<0){if(zt0){if(zt>Et)return;zt>Ft&&(Ft=zt)}if(zt=ee-qe,!(!Qt&&zt<0)){if(zt/=Qt,Qt<0){if(zt>Et)return;zt>Ft&&(Ft=zt)}else if(Qt>0){if(zt0)){if(zt/=Mr,Mr<0){if(zt0){if(zt>Et)return;zt>Ft&&(Ft=zt)}if(zt=he-Je,!(!Mr&&zt<0)){if(zt/=Mr,Mr<0){if(zt>Et)return;zt>Ft&&(Ft=zt)}else if(Mr>0){if(zt0&&(ve.a={x:qe+Ft*Qt,y:Je+Ft*Mr}),Et<1&&(ve.b={x:qe+Et*Qt,y:Je+Et*Mr}),ve}}}}}}function dr(R){for(var G=$n,ee=Pa(R[0][0],R[0][1],R[1][0],R[1][1]),he=G.length,ve;he--;)ve=G[he],(!ai(ve,R)||!ee(ve)||m(ve.a.x-ve.b.x)=_e)return;if(dt>Et){if(!he)he={x:Mr,y:je};else if(he.y>=qe)return;ee={x:Mr,y:qe}}else{if(!he)he={x:Mr,y:qe};else if(he.y1)if(dt>Et){if(!he)he={x:(je-sr)/Yt,y:je};else if(he.y>=qe)return;ee={x:(qe-sr)/Yt,y:qe}}else{if(!he)he={x:(qe-sr)/Yt,y:qe};else if(he.y=_e)return;ee={x:_e,y:Yt*_e+sr}}else{if(!he)he={x:_e,y:Yt*_e+sr};else if(he.x=dt&&sr.x<=Et&&sr.y>=Ft&&sr.y<=Qt?[[dt,Qt],[Et,Qt],[Et,Ft],[dt,Ft]]:[];Ar.point=Je[zt]}),ht}function qe(Je){return Je.map(function(ht,dt){return{x:Math.round(he(ht,dt)/Qe)*Qe,y:Math.round(ve(ht,dt)/Qe)*Qe,i:dt}})}return je.links=function(Je){return ja(qe(Je)).edges.filter(function(ht){return ht.l&&ht.r}).map(function(ht){return{source:Je[ht.l.i],target:Je[ht.r.i]}})},je.triangles=function(Je){var ht=[];return ja(qe(Je)).cells.forEach(function(dt,Ft){for(var Et=dt.site,Qt=dt.edges.sort(ea),Mr=-1,zt=Qt.length,Yt,sr,Ar=Qt[zt-1].edge,br=Ar.l===Et?Ar.r:Ar.l;++Mrbr&&(br=dt.x),dt.y>Xt&&(Xt=dt.y),Qt.push(dt.x),Mr.push(dt.y);else for(zt=0;ztbr&&(br=_n),ha>Xt&&(Xt=ha),Qt.push(_n),Mr.push(ha)}var Xa=br-sr,yo=Xt-Ar;Xa>yo?Xt=Ar+Xa:br=sr+yo;function Wo(rs,Us,jl,Ou,Jl,po,el,nl){if(!(isNaN(jl)||isNaN(Ou)))if(rs.leaf){var Vl=rs.x,ku=rs.y;if(Vl!=null)if(m(Vl-jl)+m(ku-Ou)<.01)Zo(rs,Us,jl,Ou,Jl,po,el,nl);else{var tf=rs.point;rs.x=rs.y=rs.point=null,Zo(rs,tf,Vl,ku,Jl,po,el,nl),Zo(rs,Us,jl,Ou,Jl,po,el,nl)}else rs.x=jl,rs.y=Ou,rs.point=Us}else Zo(rs,Us,jl,Ou,Jl,po,el,nl)}function Zo(rs,Us,jl,Ou,Jl,po,el,nl){var Vl=(Jl+el)*.5,ku=(po+nl)*.5,tf=jl>=Vl,Tf=Ou>=ku,nc=Tf<<1|tf;rs.leaf=!1,rs=rs.nodes[nc]||(rs.nodes[nc]=Pr()),tf?Jl=Vl:el=Vl,Tf?po=ku:nl=ku,Wo(rs,Us,jl,Ou,Jl,po,el,nl)}var Qs=Pr();if(Qs.add=function(rs){Wo(Qs,rs,+Ft(rs,++zt),+Et(rs,zt),sr,Ar,br,Xt)},Qs.visit=function(rs){ri(rs,Qs,sr,Ar,br,Xt)},Qs.find=function(rs){return bn(Qs,rs[0],rs[1],sr,Ar,br,Xt)},zt=-1,G==null){for(;++zt_e||Et>je||Qt=_n,yo=ee>=ha,Wo=yo<<1|Xa,Zo=Wo+4;Woee&&(_e=G.slice(ee,_e),qe[je]?qe[je]+=_e:qe[++je]=_e),(he=he[0])===(ve=ve[0])?qe[je]?qe[je]+=ve:qe[++je]=ve:(qe[++je]=null,Je.push({i:je,x:yr(he,ve)})),ee=Gr.lastIndex;return ee=0&&!(he=e.interpolators[ee](R,G)););return he}e.interpolators=[function(R,G){var ee=typeof G;return(ee==="string"?Ye.has(G.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(G)?Ri:Ti:G instanceof kt?Ri:Array.isArray(G)?nn:ee==="object"&&isNaN(G)?vi:yr)(R,G)}],e.interpolateArray=nn;function nn(R,G){var ee=[],he=[],ve=R.length,_e=G.length,je=Math.min(R.length,G.length),qe;for(qe=0;qe=0?R.slice(0,G):R,he=G>=0?R.slice(G+1):"in";return ee=Bi.get(ee)||ta,he=On.get(he)||L,Nn(he(ee.apply(null,t.call(arguments,1))))};function Nn(R){return function(G){return G<=0?0:G>=1?1:R(G)}}function ia(R){return function(G){return 1-R(1-G)}}function Jr(R){return function(G){return .5*(G<.5?R(2*G):2-R(2-2*G))}}function Ci(R){return R*R}function un(R){return R*R*R}function Dn(R){if(R<=0)return 0;if(R>=1)return 1;var G=R*R,ee=G*R;return 4*(R<.5?ee:3*(R-G)+ee-.75)}function Vn(R){return function(G){return Math.pow(G,R)}}function vn(R){return 1-Math.cos(R*Se)}function Br(R){return Math.pow(2,10*(R-1))}function Li(R){return 1-Math.sqrt(1-R*R)}function Ua(R,G){var ee;return arguments.length<2&&(G=.45),arguments.length?ee=G/Ve*Math.asin(1/R):(R=1,ee=G/4),function(he){return 1+R*Math.pow(2,-10*he)*Math.sin((he-ee)*Ve/G)}}function yi(R){return R||(R=1.70158),function(G){return G*G*((R+1)*G-R)}}function Ma(R){return R<1/2.75?7.5625*R*R:R<2/2.75?7.5625*(R-=1.5/2.75)*R+.75:R<2.5/2.75?7.5625*(R-=2.25/2.75)*R+.9375:7.5625*(R-=2.625/2.75)*R+.984375}e.interpolateHcl=Ba;function Ba(R,G){R=e.hcl(R),G=e.hcl(G);var ee=R.h,he=R.c,ve=R.l,_e=G.h-ee,je=G.c-he,qe=G.l-ve;return isNaN(je)&&(je=0,he=isNaN(he)?G.c:he),isNaN(_e)?(_e=0,ee=isNaN(ee)?G.h:ee):_e>180?_e-=360:_e<-180&&(_e+=360),function(Je){return ni(ee+_e*Je,he+je*Je,ve+qe*Je)+""}}e.interpolateHsl=Bn;function Bn(R,G){R=e.hsl(R),G=e.hsl(G);var ee=R.h,he=R.s,ve=R.l,_e=G.h-ee,je=G.s-he,qe=G.l-ve;return isNaN(je)&&(je=0,he=isNaN(he)?G.s:he),isNaN(_e)?(_e=0,ee=isNaN(ee)?G.h:ee):_e>180?_e-=360:_e<-180&&(_e+=360),function(Je){return Lr(ee+_e*Je,he+je*Je,ve+qe*Je)+""}}e.interpolateLab=Hi;function Hi(R,G){R=e.lab(R),G=e.lab(G);var ee=R.l,he=R.a,ve=R.b,_e=G.l-ee,je=G.a-he,qe=G.b-ve;return function(Je){return gn(ee+_e*Je,he+je*Je,ve+qe*Je)+""}}e.interpolateRound=yn;function yn(R,G){return G-=R,function(ee){return Math.round(R+G*ee)}}e.transform=function(R){var G=i.createElementNS(e.ns.prefix.svg,"g");return(e.transform=function(ee){if(ee!=null){G.setAttribute("transform",ee);var he=G.transform.baseVal.consolidate()}return new jn(he?he.matrix:Ln)})(R)};function jn(R){var G=[R.a,R.b],ee=[R.c,R.d],he=zi(G),ve=Un(G,ee),_e=zi(xr(ee,G,-ve))||0;G[0]*ee[1]180?G+=360:G-R>180&&(R+=360),he.push({i:ee.push(xn(ee)+"rotate(",null,")")-2,x:yr(R,G)})):G&&ee.push(xn(ee)+"rotate("+G+")")}function Xr(R,G,ee,he){R!==G?he.push({i:ee.push(xn(ee)+"skewX(",null,")")-2,x:yr(R,G)}):G&&ee.push(xn(ee)+"skewX("+G+")")}function Gn(R,G,ee,he){if(R[0]!==G[0]||R[1]!==G[1]){var ve=ee.push(xn(ee)+"scale(",null,",",null,")");he.push({i:ve-4,x:yr(R[0],G[0])},{i:ve-2,x:yr(R[1],G[1])})}else(G[0]!==1||G[1]!==1)&&ee.push(xn(ee)+"scale("+G+")")}function to(R,G){var ee=[],he=[];return R=e.transform(R),G=e.transform(G),da(R.translate,G.translate,ee,he),Mi(R.rotate,G.rotate,ee,he),Xr(R.skew,G.skew,ee,he),Gn(R.scale,G.scale,ee,he),R=G=null,function(ve){for(var _e=-1,je=he.length,qe;++_e0?_e=Xt:(ee.c=null,ee.t=NaN,ee=null,G.end({type:"end",alpha:_e=0})):Xt>0&&(G.start({type:"start",alpha:_e=Xt}),ee=ui(R.tick)),R):_e},R.start=function(){var Xt,_n=Qt.length,ha=Mr.length,Xa=he[0],yo=he[1],Wo,Zo;for(Xt=0;Xt<_n;++Xt)(Zo=Qt[Xt]).index=Xt,Zo.weight=0;for(Xt=0;Xt=0;)_e.push(dt=ht[Je]),dt.parent=qe,dt.depth=qe.depth+1;ee&&(qe.value=0),qe.children=ht}else ee&&(qe.value=+ee.call(he,qe,qe.depth)||0),delete qe.children;return An(ve,function(Ft){var Et,Qt;R&&(Et=Ft.children)&&Et.sort(R),ee&&(Qt=Ft.parent)&&(Qt.value+=Ft.value)}),je}return he.sort=function(ve){return arguments.length?(R=ve,he):R},he.children=function(ve){return arguments.length?(G=ve,he):G},he.value=function(ve){return arguments.length?(ee=ve,he):ee},he.revalue=function(ve){return ee&&(jr(ve,function(_e){_e.children&&(_e.value=0)}),An(ve,function(_e){var je;_e.children||(_e.value=+ee.call(he,_e,_e.depth)||0),(je=_e.parent)&&(je.value+=_e.value)})),ve},he};function Ei(R,G){return e.rebind(R,G,"sort","children","value"),R.nodes=R,R.links=za,R}function jr(R,G){for(var ee=[R];(R=ee.pop())!=null;)if(G(R),(ve=R.children)&&(he=ve.length))for(var he,ve;--he>=0;)ee.push(ve[he])}function An(R,G){for(var ee=[R],he=[];(R=ee.pop())!=null;)if(he.push(R),(je=R.children)&&(_e=je.length))for(var ve=-1,_e,je;++ve<_e;)ee.push(je[ve]);for(;(R=he.pop())!=null;)G(R)}function Za(R){return R.children}function Ga(R){return R.value}function Ca(R,G){return G.value-R.value}function za(R){return e.merge(R.map(function(G){return(G.children||[]).map(function(ee){return{source:G,target:ee}})}))}e.layout.partition=function(){var R=e.layout.hierarchy(),G=[1,1];function ee(_e,je,qe,Je){var ht=_e.children;if(_e.x=je,_e.y=_e.depth*Je,_e.dx=qe,_e.dy=Je,ht&&(Ft=ht.length)){var dt=-1,Ft,Et,Qt;for(qe=_e.value?qe/_e.value:0;++dtve&&(ve=qe),he.push(qe)}for(je=0;jehe&&(ee=G,he=ve);return ee}function Ia(R){return R.reduce($i,0)}function $i(R,G){return R+G[1]}e.layout.histogram=function(){var R=!0,G=Number,ee=la,he=In;function ve(_e,Et){for(var qe=[],Je=_e.map(G,this),ht=ee.call(this,Je,Et),dt=he.call(this,ht,Je,Et),Ft,Et=-1,Qt=Je.length,Mr=dt.length-1,zt=R?1:1/Qt,Yt;++Et0)for(Et=-1;++Et=ht[0]&&Yt<=ht[1]&&(Ft=qe[e.bisect(dt,Yt,1,Mr)-1],Ft.y+=zt,Ft.push(_e[Et]));return qe}return ve.value=function(_e){return arguments.length?(G=_e,ve):G},ve.range=function(_e){return arguments.length?(ee=et(_e),ve):ee},ve.bins=function(_e){return arguments.length?(he=typeof _e=="number"?function(je){return qi(je,_e)}:et(_e),ve):he},ve.frequency=function(_e){return arguments.length?(R=!!_e,ve):R},ve};function In(R,G){return qi(R,Math.ceil(Math.log(G.length)/Math.LN2+1))}function qi(R,G){for(var ee=-1,he=+R[0],ve=(R[1]-he)/G,_e=[];++ee<=G;)_e[ee]=ve*ee+he;return _e}function la(R){return[e.min(R),e.max(R)]}e.layout.pack=function(){var R=e.layout.hierarchy().sort(ga),G=0,ee=[1,1],he;function ve(_e,je){var qe=R.call(this,_e,je),Je=qe[0],ht=ee[0],dt=ee[1],Ft=he==null?Math.sqrt:typeof he=="function"?he:function(){return he};if(Je.x=Je.y=0,An(Je,function(Qt){Qt.r=+Ft(Qt.value)}),An(Je,Mn),G){var Et=G*(he?1:Math.max(2*Je.r/ht,2*Je.r/dt))/2;An(Je,function(Qt){Qt.r+=Et}),An(Je,Mn),An(Je,function(Qt){Qt.r-=Et})}return Co(Je,ht/2,dt/2,he?1:1/Math.max(2*Je.r/ht,2*Je.r/dt)),qe}return ve.size=function(_e){return arguments.length?(ee=_e,ve):ee},ve.radius=function(_e){return arguments.length?(he=_e==null||typeof _e=="function"?_e:+_e,ve):he},ve.padding=function(_e){return arguments.length?(G=+_e,ve):G},Ei(ve,R)};function ga(R,G){return R.value-G.value}function go(R,G){var ee=R._pack_next;R._pack_next=G,G._pack_prev=R,G._pack_next=ee,ee._pack_prev=G}function eo(R,G){R._pack_next=G,G._pack_prev=R}function So(R,G){var ee=G.x-R.x,he=G.y-R.y,ve=R.r+G.r;return .999*ve*ve>ee*ee+he*he}function Mn(R){if(!(G=R.children)||!(Et=G.length))return;var G,ee=1/0,he=-1/0,ve=1/0,_e=-1/0,je,qe,Je,ht,dt,Ft,Et;function Qt(Xt){ee=Math.min(Xt.x-Xt.r,ee),he=Math.max(Xt.x+Xt.r,he),ve=Math.min(Xt.y-Xt.r,ve),_e=Math.max(Xt.y+Xt.r,_e)}if(G.forEach(Ao),je=G[0],je.x=-je.r,je.y=0,Qt(je),Et>1&&(qe=G[1],qe.x=qe.r,qe.y=0,Qt(qe),Et>2))for(Je=G[2],Ii(je,qe,Je),Qt(Je),go(je,Je),je._pack_prev=Je,go(Je,qe),qe=je._pack_next,ht=3;htYt.x&&(Yt=_n),_n.depth>sr.depth&&(sr=_n)});var Ar=G(zt,Yt)/2-zt.x,br=ee[0]/(Yt.x+G(Yt,zt)/2+Ar),Xt=ee[1]/(sr.depth||1);jr(Qt,function(_n){_n.x=(_n.x+Ar)*br,_n.y=_n.depth*Xt})}return Et}function _e(dt){for(var Ft={A:null,children:[dt]},Et=[Ft],Qt;(Qt=Et.pop())!=null;)for(var Mr=Qt.children,zt,Yt=0,sr=Mr.length;Yt0&&(Wa(Fe(zt,dt,Et),dt,_n),sr+=_n,Ar+=_n),br+=zt.m,sr+=Qt.m,Xt+=Yt.m,Ar+=Mr.m;zt&&!Ha(Mr)&&(Mr.t=zt,Mr.m+=br-Ar),Qt&&!Zn(Yt)&&(Yt.t=Qt,Yt.m+=sr-Xt,Et=dt)}return Et}function ht(dt){dt.x*=ee[0],dt.y=dt.depth*ee[1]}return ve.separation=function(dt){return arguments.length?(G=dt,ve):G},ve.size=function(dt){return arguments.length?(he=(ee=dt)==null?ht:null,ve):he?null:ee},ve.nodeSize=function(dt){return arguments.length?(he=(ee=dt)==null?null:ht,ve):he?ee:null},Ei(ve,R)};function qa(R,G){return R.parent==G.parent?1:2}function Zn(R){var G=R.children;return G.length?G[0]:R.t}function Ha(R){var G=R.children,ee;return(ee=G.length)?G[ee-1]:R.t}function Wa(R,G,ee){var he=ee/(G.i-R.i);G.c-=he,G.s+=ee,R.c+=he,G.z+=ee,G.m+=ee}function $a(R){for(var G=0,ee=0,he=R.children,ve=he.length,_e;--ve>=0;)_e=he[ve],_e.z+=G,_e.m+=G,G+=_e.s+(ee+=_e.c)}function Fe(R,G,ee){return R.a.parent===G.parent?R.a:ee}e.layout.cluster=function(){var R=e.layout.hierarchy().sort(null).value(null),G=qa,ee=[1,1],he=!1;function ve(_e,je){var qe=R.call(this,_e,je),Je=qe[0],ht,dt=0;An(Je,function(zt){var Yt=zt.children;Yt&&Yt.length?(zt.x=ot(Yt),zt.y=Ge(Yt)):(zt.x=ht?dt+=G(zt,ht):0,zt.y=0,ht=zt)});var Ft=rt(Je),Et=mt(Je),Qt=Ft.x-G(Ft,Et)/2,Mr=Et.x+G(Et,Ft)/2;return An(Je,he?function(zt){zt.x=(zt.x-Je.x)*ee[0],zt.y=(Je.y-zt.y)*ee[1]}:function(zt){zt.x=(zt.x-Qt)/(Mr-Qt)*ee[0],zt.y=(1-(Je.y?zt.y/Je.y:1))*ee[1]}),qe}return ve.separation=function(_e){return arguments.length?(G=_e,ve):G},ve.size=function(_e){return arguments.length?(he=(ee=_e)==null,ve):he?null:ee},ve.nodeSize=function(_e){return arguments.length?(he=(ee=_e)!=null,ve):he?ee:null},Ei(ve,R)};function Ge(R){return 1+e.max(R,function(G){return G.y})}function ot(R){return R.reduce(function(G,ee){return G+ee.x},0)/R.length}function rt(R){var G=R.children;return G&&G.length?rt(G[0]):R}function mt(R){var G=R.children,ee;return G&&(ee=G.length)?mt(G[ee-1]):R}e.layout.treemap=function(){var R=e.layout.hierarchy(),G=Math.round,ee=[1,1],he=null,ve=It,_e=!1,je,qe="squarify",Je=.5*(1+Math.sqrt(5));function ht(zt,Yt){for(var sr=-1,Ar=zt.length,br,Xt;++sr0;)Ar.push(Xt=br[yo-1]),Ar.area+=Xt.area,qe!=="squarify"||(ha=Et(Ar,Xa))<=_n?(br.pop(),_n=ha):(Ar.area-=Ar.pop().area,Qt(Ar,Xa,sr,!1),Xa=Math.min(sr.dx,sr.dy),Ar.length=Ar.area=0,_n=1/0);Ar.length&&(Qt(Ar,Xa,sr,!0),Ar.length=Ar.area=0),Yt.forEach(dt)}}function Ft(zt){var Yt=zt.children;if(Yt&&Yt.length){var sr=ve(zt),Ar=Yt.slice(),br,Xt=[];for(ht(Ar,sr.dx*sr.dy/zt.value),Xt.area=0;br=Ar.pop();)Xt.push(br),Xt.area+=br.area,br.z!=null&&(Qt(Xt,br.z?sr.dx:sr.dy,sr,!Ar.length),Xt.length=Xt.area=0);Yt.forEach(Ft)}}function Et(zt,Yt){for(var sr=zt.area,Ar,br=0,Xt=1/0,_n=-1,ha=zt.length;++_nbr&&(br=Ar));return sr*=sr,Yt*=Yt,sr?Math.max(Yt*br*Je/sr,sr/(Yt*Xt*Je)):1/0}function Qt(zt,Yt,sr,Ar){var br=-1,Xt=zt.length,_n=sr.x,ha=sr.y,Xa=Yt?G(zt.area/Yt):0,yo;if(Yt==sr.dx){for((Ar||Xa>sr.dy)&&(Xa=sr.dy);++brsr.dx)&&(Xa=sr.dx);++br1);return R+G*he*Math.sqrt(-2*Math.log(_e)/_e)}},logNormal:function(){var R=e.random.normal.apply(e,arguments);return function(){return Math.exp(R())}},bates:function(R){var G=e.random.irwinHall(R);return function(){return G()/R}},irwinHall:function(R){return function(){for(var G=0,ee=0;ee2?kr:zr,ht=he?ro:Jn;return ve=Je(R,G,ht,ee),_e=Je(G,R,ht,Xn),qe}function qe(Je){return ve(Je)}return qe.invert=function(Je){return _e(Je)},qe.domain=function(Je){return arguments.length?(R=Je.map(Number),je()):R},qe.range=function(Je){return arguments.length?(G=Je,je()):G},qe.rangeRound=function(Je){return qe.range(Je).interpolate(yn)},qe.clamp=function(Je){return arguments.length?(he=Je,je()):he},qe.interpolate=function(Je){return arguments.length?(ee=Je,je()):ee},qe.ticks=function(Je){return mi(R,Je)},qe.tickFormat=function(Je,ht){return d3_scale_linearTickFormat(R,Je,ht)},qe.nice=function(Je){return ci(R,Je),je()},qe.copy=function(){return Vr(R,G,ee,he)},je()}function ii(R,G){return e.rebind(R,G,"range","rangeRound","interpolate","clamp")}function ci(R,G){return Wt(R,Rt(li(R,G)[2])),Wt(R,Rt(li(R,G)[2])),R}function li(R,G){G==null&&(G=10);var ee=Ot(R),he=ee[1]-ee[0],ve=Math.pow(10,Math.floor(Math.log(he/G)/Math.LN10)),_e=G/he*ve;return _e<=.15?ve*=10:_e<=.35?ve*=5:_e<=.75&&(ve*=2),ee[0]=Math.ceil(ee[0]/ve)*ve,ee[1]=Math.floor(ee[1]/ve)*ve+ve*.5,ee[2]=ve,ee}function mi(R,G){return e.range.apply(e,li(R,G))}var xi={s:1,g:1,p:1,r:1,e:1};function Oi(R){return-Math.floor(Math.log(R)/Math.LN10+.01)}function ua(R,G){var ee=Oi(G[2]);return R in xi?Math.abs(ee-Oi(Math.max(m(G[0]),m(G[1]))))+ +(R!=="e"):ee-(R==="%")*2}e.scale.log=function(){return xa(e.scale.linear().domain([0,1]),10,!0,[1,10])};function xa(R,G,ee,he){function ve(qe){return(ee?Math.log(qe<0?0:qe):-Math.log(qe>0?0:-qe))/Math.log(G)}function _e(qe){return ee?Math.pow(G,qe):-Math.pow(G,-qe)}function je(qe){return R(ve(qe))}return je.invert=function(qe){return _e(R.invert(qe))},je.domain=function(qe){return arguments.length?(ee=qe[0]>=0,R.domain((he=qe.map(Number)).map(ve)),je):he},je.base=function(qe){return arguments.length?(G=+qe,R.domain(he.map(ve)),je):G},je.nice=function(){var qe=Wt(he.map(ve),ee?Math:ao);return R.domain(qe),he=qe.map(_e),je},je.ticks=function(){var qe=Ot(he),Je=[],ht=qe[0],dt=qe[1],Ft=Math.floor(ve(ht)),Et=Math.ceil(ve(dt)),Qt=G%1?2:G;if(isFinite(Et-Ft)){if(ee){for(;Ft0;Mr--)Je.push(_e(Ft)*Mr);for(Ft=0;Je[Ft]dt;Et--);Je=Je.slice(Ft,Et)}return Je},je.copy=function(){return xa(R.copy(),G,ee,he)},ii(je,R)}var ao={floor:function(R){return-Math.ceil(-R)},ceil:function(R){return-Math.floor(-R)}};e.scale.pow=function(){return ho(e.scale.linear(),1,[0,1])};function ho(R,G,ee){var he=Fo(G),ve=Fo(1/G);function _e(je){return R(he(je))}return _e.invert=function(je){return ve(R.invert(je))},_e.domain=function(je){return arguments.length?(R.domain((ee=je.map(Number)).map(he)),_e):ee},_e.ticks=function(je){return mi(ee,je)},_e.tickFormat=function(je,qe){return d3_scale_linearTickFormat(ee,je,qe)},_e.nice=function(je){return _e.domain(ci(ee,je))},_e.exponent=function(je){return arguments.length?(he=Fo(G=je),ve=Fo(1/G),R.domain(ee.map(he)),_e):G},_e.copy=function(){return ho(R.copy(),G,ee)},ii(_e,R)}function Fo(R){return function(G){return G<0?-Math.pow(-G,R):Math.pow(G,R)}}e.scale.sqrt=function(){return e.scale.pow().exponent(.5)},e.scale.ordinal=function(){return ls([],{t:"range",a:[[]]})};function ls(R,G){var ee,he,ve;function _e(qe){return he[((ee.get(qe)||(G.t==="range"?ee.set(qe,R.push(qe)):NaN))-1)%he.length]}function je(qe,Je){return e.range(R.length).map(function(ht){return qe+Je*ht})}return _e.domain=function(qe){if(!arguments.length)return R;R=[],ee=new b;for(var Je=-1,ht=qe.length,dt;++Je0?ee[_e-1]:R[0],_eEt?0:1;if(dt=Le)return Je(dt,Mr)+(ht?Je(ht,1-Mr):"")+"Z";var zt,Yt,sr,Ar,br=0,Xt=0,_n,ha,Xa,yo,Wo,Zo,Qs,rs,Us=[];if((Ar=(+je.apply(this,arguments)||0)/2)&&(sr=he===bo?Math.sqrt(ht*ht+dt*dt):+he.apply(this,arguments),Mr||(Xt*=-1),dt&&(Xt=Vt(sr/dt*Math.sin(Ar))),ht&&(br=Vt(sr/ht*Math.sin(Ar)))),dt){_n=dt*Math.cos(Ft+Xt),ha=dt*Math.sin(Ft+Xt),Xa=dt*Math.cos(Et-Xt),yo=dt*Math.sin(Et-Xt);var jl=Math.abs(Et-Ft-2*Xt)<=De?0:1;if(Xt&&Qo(_n,ha,Xa,yo)===Mr^jl){var Ou=(Ft+Et)/2;_n=dt*Math.cos(Ou),ha=dt*Math.sin(Ou),Xa=yo=null}}else _n=ha=0;if(ht){Wo=ht*Math.cos(Et-br),Zo=ht*Math.sin(Et-br),Qs=ht*Math.cos(Ft+br),rs=ht*Math.sin(Ft+br);var Jl=Math.abs(Ft-Et+2*br)<=De?0:1;if(br&&Qo(Wo,Zo,Qs,rs)===1-Mr^Jl){var po=(Ft+Et)/2;Wo=ht*Math.cos(po),Zo=ht*Math.sin(po),Qs=rs=null}}else Wo=Zo=0;if(Qt>Qe&&(zt=Math.min(Math.abs(dt-ht)/2,+ee.apply(this,arguments)))>.001){Yt=ht0?0:1}function Ks(R,G,ee,he,ve){var _e=R[0]-G[0],je=R[1]-G[1],qe=(ve?he:-he)/Math.sqrt(_e*_e+je*je),Je=qe*je,ht=-qe*_e,dt=R[0]+Je,Ft=R[1]+ht,Et=G[0]+Je,Qt=G[1]+ht,Mr=(dt+Et)/2,zt=(Ft+Qt)/2,Yt=Et-dt,sr=Qt-Ft,Ar=Yt*Yt+sr*sr,br=ee-he,Xt=dt*Qt-Et*Ft,_n=(sr<0?-1:1)*Math.sqrt(Math.max(0,br*br*Ar-Xt*Xt)),ha=(Xt*sr-Yt*_n)/Ar,Xa=(-Xt*Yt-sr*_n)/Ar,yo=(Xt*sr+Yt*_n)/Ar,Wo=(-Xt*Yt+sr*_n)/Ar,Zo=ha-Mr,Qs=Xa-zt,rs=yo-Mr,Us=Wo-zt;return Zo*Zo+Qs*Qs>rs*rs+Us*Us&&(ha=yo,Xa=Wo),[[ha-Je,Xa-ht],[ha*ee/br,Xa*ee/br]]}function js(){return!0}function Ds(R){var G=Tt,ee=_i,he=js,ve=as,_e=ve.key,je=.7;function qe(Je){var ht=[],dt=[],Ft=-1,Et=Je.length,Qt,Mr=et(G),zt=et(ee);function Yt(){ht.push("M",ve(R(dt),je))}for(;++Ft1?R.join("L"):R+"Z"}function Es(R){return R.join("L")+"Z"}function To(R){for(var G=0,ee=R.length,he=R[0],ve=[he[0],",",he[1]];++G1&&ve.push("H",he[0]),ve.join("")}function Go(R){for(var G=0,ee=R.length,he=R[0],ve=[he[0],",",he[1]];++G1){qe=G[1],_e=R[Je],Je++,he+="C"+(ve[0]+je[0])+","+(ve[1]+je[1])+","+(_e[0]-qe[0])+","+(_e[1]-qe[1])+","+_e[0]+","+_e[1];for(var ht=2;ht9&&(_e=ee*3/Math.sqrt(_e),je[qe]=_e*he,je[qe+1]=_e*ve));for(qe=-1;++qe<=Je;)_e=(R[Math.min(Je,qe+1)][0]-R[Math.max(0,qe-1)][0])/(6*(1+je[qe]*je[qe])),G.push([_e||0,je[qe]*_e||0]);return G}function ct(R){return R.length<3?as(R):R[0]+wl(R,He(R))}e.svg.line.radial=function(){var R=Ds(xt);return R.radius=R.x,delete R.x,R.angle=R.y,delete R.y,R};function xt(R){for(var G,ee=-1,he=R.length,ve,_e;++eeDe)+",1 "+Ft}function ht(dt,Ft,Et,Qt){return"Q 0,0 "+Qt}return _e.radius=function(dt){return arguments.length?(ee=et(dt),_e):ee},_e.source=function(dt){return arguments.length?(R=et(dt),_e):R},_e.target=function(dt){return arguments.length?(G=et(dt),_e):G},_e.startAngle=function(dt){return arguments.length?(he=et(dt),_e):he},_e.endAngle=function(dt){return arguments.length?(ve=et(dt),_e):ve},_e};function Jt(R){return R.radius}e.svg.diagonal=function(){var R=_t,G=Lt,ee=fr;function he(ve,_e){var je=R.call(this,ve,_e),qe=G.call(this,ve,_e),Je=(je.y+qe.y)/2,ht=[je,{x:je.x,y:Je},{x:qe.x,y:Je},qe];return ht=ht.map(ee),"M"+ht[0]+"C"+ht[1]+" "+ht[2]+" "+ht[3]}return he.source=function(ve){return arguments.length?(R=et(ve),he):R},he.target=function(ve){return arguments.length?(G=et(ve),he):G},he.projection=function(ve){return arguments.length?(ee=ve,he):ee},he};function fr(R){return[R.x,R.y]}e.svg.diagonal.radial=function(){var R=e.svg.diagonal(),G=fr,ee=R.projection;return R.projection=function(he){return arguments.length?ee(Or(G=he)):G},R};function Or(R){return function(){var G=R.apply(this,arguments),ee=G[0],he=G[1]-Se;return[ee*Math.cos(he),ee*Math.sin(he)]}}e.svg.symbol=function(){var R=Rn,G=Pi;function ee(he,ve){return(Xo.get(R.call(this,he,ve))||fo)(G.call(this,he,ve))}return ee.type=function(he){return arguments.length?(R=et(he),ee):R},ee.size=function(he){return arguments.length?(G=et(he),ee):G},ee};function Pi(){return 64}function Rn(){return"circle"}function fo(R){var G=Math.sqrt(R/De);return"M0,"+G+"A"+G+","+G+" 0 1,1 0,"+-G+"A"+G+","+G+" 0 1,1 0,"+G+"Z"}var Xo=e.map({circle:fo,cross:function(R){var G=Math.sqrt(R/5)/2;return"M"+-3*G+","+-G+"H"+-G+"V"+-3*G+"H"+G+"V"+-G+"H"+3*G+"V"+G+"H"+G+"V"+3*G+"H"+-G+"V"+G+"H"+-3*G+"Z"},diamond:function(R){var G=Math.sqrt(R/(2*fs)),ee=G*fs;return"M0,"+-G+"L"+ee+",0 0,"+G+" "+-ee+",0Z"},square:function(R){var G=Math.sqrt(R)/2;return"M"+-G+","+-G+"L"+G+","+-G+" "+G+","+G+" "+-G+","+G+"Z"},"triangle-down":function(R){var G=Math.sqrt(R/Bo),ee=G*Bo/2;return"M0,"+ee+"L"+G+","+-ee+" "+-G+","+-ee+"Z"},"triangle-up":function(R){var G=Math.sqrt(R/Bo),ee=G*Bo/2;return"M0,"+-ee+"L"+G+","+ee+" "+-G+","+ee+"Z"}});e.svg.symbolTypes=Xo.keys();var Bo=Math.sqrt(3),fs=Math.tan(30*ze);H.transition=function(R){for(var G=ul||++Nl,ee=bu(R),he=[],ve,_e,je=cl||{time:Date.now(),ease:Dn,delay:0,duration:250},qe=-1,Je=this.length;++qe0;)Ft[--Ar].call(R,sr);if(Yt>=1)return je.event&&je.event.end.call(R,R.__data__,G),--_e.count?delete _e[he]:delete R[ee],1}je||(qe=ve.time,Je=ui(Et,0,qe),je=_e[he]={tween:new b,time:qe,timer:Je,delay:ve.delay,duration:ve.duration,ease:ve.ease,index:G},ve=null,++_e.count)}e.svg.axis=function(){var R=e.scale.linear(),G=ju,ee=6,he=6,ve=3,_e=[10],je=null,qe;function Je(ht){ht.each(function(){var dt=e.select(this),Ft=this.__chart__||R,Et=this.__chart__=R.copy(),Qt=je==null?Et.ticks?Et.ticks.apply(Et,_e):Et.domain():je,Mr=qe==null?Et.tickFormat?Et.tickFormat.apply(Et,_e):L:qe,zt=dt.selectAll(".tick").data(Qt,Et),Yt=zt.enter().insert("g",".domain").attr("class","tick").style("opacity",Qe),sr=e.transition(zt.exit()).style("opacity",Qe).remove(),Ar=e.transition(zt.order()).style("opacity",1),br=Math.max(ee,0)+ve,Xt,_n=nr(Et),ha=dt.selectAll(".domain").data([0]),Xa=(ha.enter().append("path").attr("class","domain"),e.transition(ha));Yt.append("line"),Yt.append("text");var yo=Yt.select("line"),Wo=Ar.select("line"),Zo=zt.select("text").text(Mr),Qs=Yt.select("text"),rs=Ar.select("text"),Us=G==="top"||G==="left"?-1:1,jl,Ou,Jl,po;if(G==="bottom"||G==="top"?(Xt=Eu,jl="x",Jl="y",Ou="x2",po="y2",Zo.attr("dy",Us<0?"0em":".71em").style("text-anchor","middle"),Xa.attr("d","M"+_n[0]+","+Us*he+"V0H"+_n[1]+"V"+Us*he)):(Xt=Af,jl="y",Jl="x",Ou="y2",po="x2",Zo.attr("dy",".32em").style("text-anchor",Us<0?"end":"start"),Xa.attr("d","M"+Us*he+","+_n[0]+"H0V"+_n[1]+"H"+Us*he)),yo.attr(po,Us*ee),Qs.attr(Jl,Us*br),Wo.attr(Ou,0).attr(po,Us*ee),rs.attr(jl,0).attr(Jl,Us*br),Et.rangeBand){var el=Et,nl=el.rangeBand()/2;Ft=Et=function(Vl){return el(Vl)+nl}}else Ft.rangeBand?Ft=Et:sr.call(Xt,Et,Ft);Yt.call(Xt,Ft,Et),Ar.call(Xt,Et,Et)})}return Je.scale=function(ht){return arguments.length?(R=ht,Je):R},Je.orient=function(ht){return arguments.length?(G=ht in wu?ht+"":ju,Je):G},Je.ticks=function(){return arguments.length?(_e=r(arguments),Je):_e},Je.tickValues=function(ht){return arguments.length?(je=ht,Je):je},Je.tickFormat=function(ht){return arguments.length?(qe=ht,Je):qe},Je.tickSize=function(ht){var dt=arguments.length;return dt?(ee=+ht,he=+arguments[dt-1],Je):ee},Je.innerTickSize=function(ht){return arguments.length?(ee=+ht,Je):ee},Je.outerTickSize=function(ht){return arguments.length?(he=+ht,Je):he},Je.tickPadding=function(ht){return arguments.length?(ve=+ht,Je):ve},Je.tickSubdivide=function(){return arguments.length&&Je},Je};var ju="bottom",wu={top:1,right:1,bottom:1,left:1};function Eu(R,G,ee){R.attr("transform",function(he){var ve=G(he);return"translate("+(isFinite(ve)?ve:ee(he))+",0)"})}function Af(R,G,ee){R.attr("transform",function(he){var ve=G(he);return"translate(0,"+(isFinite(ve)?ve:ee(he))+")"})}e.svg.brush=function(){var R=Z(dt,"brushstart","brush","brushend"),G=null,ee=null,he=[0,0],ve=[0,0],_e,je,qe=!0,Je=!0,ht=ef[0];function dt(zt){zt.each(function(){var Yt=e.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",Mr).on("touchstart.brush",Mr),sr=Yt.selectAll(".background").data([0]);sr.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),Yt.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var Ar=Yt.selectAll(".resize").data(ht,L);Ar.exit().remove(),Ar.enter().append("g").attr("class",function(ha){return"resize "+ha}).style("cursor",function(ha){return mf[ha]}).append("rect").attr("x",function(ha){return/[ew]$/.test(ha)?-3:null}).attr("y",function(ha){return/^[ns]/.test(ha)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),Ar.style("display",dt.empty()?"none":null);var br=e.transition(Yt),Xt=e.transition(sr),_n;G&&(_n=nr(G),Xt.attr("x",_n[0]).attr("width",_n[1]-_n[0]),Et(br)),ee&&(_n=nr(ee),Xt.attr("y",_n[0]).attr("height",_n[1]-_n[0]),Qt(br)),Ft(br)})}dt.event=function(zt){zt.each(function(){var Yt=R.of(this,arguments),sr={x:he,y:ve,i:_e,j:je},Ar=this.__chart__||sr;this.__chart__=sr,ul?e.select(this).transition().each("start.brush",function(){_e=Ar.i,je=Ar.j,he=Ar.x,ve=Ar.y,Yt({type:"brushstart"})}).tween("brush:brush",function(){var br=nn(he,sr.x),Xt=nn(ve,sr.y);return _e=je=null,function(_n){he=sr.x=br(_n),ve=sr.y=Xt(_n),Yt({type:"brush",mode:"resize"})}}).each("end.brush",function(){_e=sr.i,je=sr.j,Yt({type:"brush",mode:"resize"}),Yt({type:"brushend"})}):(Yt({type:"brushstart"}),Yt({type:"brush",mode:"resize"}),Yt({type:"brushend"}))})};function Ft(zt){zt.selectAll(".resize").attr("transform",function(Yt){return"translate("+he[+/e$/.test(Yt)]+","+ve[+/^s/.test(Yt)]+")"})}function Et(zt){zt.select(".extent").attr("x",he[0]),zt.selectAll(".extent,.n>rect,.s>rect").attr("width",he[1]-he[0])}function Qt(zt){zt.select(".extent").attr("y",ve[0]),zt.selectAll(".extent,.e>rect,.w>rect").attr("height",ve[1]-ve[0])}function Mr(){var zt=this,Yt=e.select(e.event.target),sr=R.of(zt,arguments),Ar=e.select(zt),br=Yt.datum(),Xt=!/^(n|s)$/.test(br)&&G,_n=!/^(e|w)$/.test(br)&&ee,ha=Yt.classed("extent"),Xa=nt(zt),yo,Wo=e.mouse(zt),Zo,Qs=e.select(a(zt)).on("keydown.brush",jl).on("keyup.brush",Ou);if(e.event.changedTouches?Qs.on("touchmove.brush",Jl).on("touchend.brush",el):Qs.on("mousemove.brush",Jl).on("mouseup.brush",el),Ar.interrupt().selectAll("*").interrupt(),ha)Wo[0]=he[0]-Wo[0],Wo[1]=ve[0]-Wo[1];else if(br){var rs=+/w$/.test(br),Us=+/^n/.test(br);Zo=[he[1-rs]-Wo[0],ve[1-Us]-Wo[1]],Wo[0]=he[rs],Wo[1]=ve[Us]}else e.event.altKey&&(yo=Wo.slice());Ar.style("pointer-events","none").selectAll(".resize").style("display",null),e.select("body").style("cursor",Yt.style("cursor")),sr({type:"brushstart"}),Jl();function jl(){e.event.keyCode==32&&(ha||(yo=null,Wo[0]-=he[1],Wo[1]-=ve[1],ha=2),W())}function Ou(){e.event.keyCode==32&&ha==2&&(Wo[0]+=he[1],Wo[1]+=ve[1],ha=0,W())}function Jl(){var nl=e.mouse(zt),Vl=!1;Zo&&(nl[0]+=Zo[0],nl[1]+=Zo[1]),ha||(e.event.altKey?(yo||(yo=[(he[0]+he[1])/2,(ve[0]+ve[1])/2]),Wo[0]=he[+(nl[0]{(function(e,t){typeof LD=="object"&&typeof oue!="undefined"?t(LD):(e=e||self,t(e.d3=e.d3||{}))})(LD,function(e){"use strict";var t=new Date,r=new Date;function i(U,se,Ae,be){function me(ue){return U(ue=arguments.length===0?new Date:new Date(+ue)),ue}return me.floor=function(ue){return U(ue=new Date(+ue)),ue},me.ceil=function(ue){return U(ue=new Date(ue-1)),se(ue,1),U(ue),ue},me.round=function(ue){var pe=me(ue),ce=me.ceil(ue);return ue-pe0))return Be;do Be.push($e=new Date(+ue)),se(ue,ce),U(ue);while($e=pe)for(;U(pe),!ue(pe);)pe.setTime(pe-1)},function(pe,ce){if(pe>=pe)if(ce<0)for(;++ce<=0;)for(;se(pe,-1),!ue(pe););else for(;--ce>=0;)for(;se(pe,1),!ue(pe););})},Ae&&(me.count=function(ue,pe){return t.setTime(+ue),r.setTime(+pe),U(t),U(r),Math.floor(Ae(t,r))},me.every=function(ue){return ue=Math.floor(ue),!isFinite(ue)||!(ue>0)?null:ue>1?me.filter(be?function(pe){return be(pe)%ue===0}:function(pe){return me.count(0,pe)%ue===0}):me}),me}var n=i(function(){},function(U,se){U.setTime(+U+se)},function(U,se){return se-U});n.every=function(U){return U=Math.floor(U),!isFinite(U)||!(U>0)?null:U>1?i(function(se){se.setTime(Math.floor(se/U)*U)},function(se,Ae){se.setTime(+se+Ae*U)},function(se,Ae){return(Ae-se)/U}):n};var a=n.range,o=1e3,s=6e4,l=36e5,u=864e5,f=6048e5,c=i(function(U){U.setTime(U-U.getMilliseconds())},function(U,se){U.setTime(+U+se*o)},function(U,se){return(se-U)/o},function(U){return U.getUTCSeconds()}),h=c.range,d=i(function(U){U.setTime(U-U.getMilliseconds()-U.getSeconds()*o)},function(U,se){U.setTime(+U+se*s)},function(U,se){return(se-U)/s},function(U){return U.getMinutes()}),p=d.range,v=i(function(U){U.setTime(U-U.getMilliseconds()-U.getSeconds()*o-U.getMinutes()*s)},function(U,se){U.setTime(+U+se*l)},function(U,se){return(se-U)/l},function(U){return U.getHours()}),y=v.range,m=i(function(U){U.setHours(0,0,0,0)},function(U,se){U.setDate(U.getDate()+se)},function(U,se){return(se-U-(se.getTimezoneOffset()-U.getTimezoneOffset())*s)/u},function(U){return U.getDate()-1}),w=m.range;function _(U){return i(function(se){se.setDate(se.getDate()-(se.getDay()+7-U)%7),se.setHours(0,0,0,0)},function(se,Ae){se.setDate(se.getDate()+Ae*7)},function(se,Ae){return(Ae-se-(Ae.getTimezoneOffset()-se.getTimezoneOffset())*s)/f})}var b=_(0),M=_(1),x=_(2),A=_(3),T=_(4),g=_(5),E=_(6),S=b.range,C=M.range,k=x.range,D=A.range,L=T.range,P=g.range,I=E.range,F=i(function(U){U.setDate(1),U.setHours(0,0,0,0)},function(U,se){U.setMonth(U.getMonth()+se)},function(U,se){return se.getMonth()-U.getMonth()+(se.getFullYear()-U.getFullYear())*12},function(U){return U.getMonth()}),z=F.range,B=i(function(U){U.setMonth(0,1),U.setHours(0,0,0,0)},function(U,se){U.setFullYear(U.getFullYear()+se)},function(U,se){return se.getFullYear()-U.getFullYear()},function(U){return U.getFullYear()});B.every=function(U){return!isFinite(U=Math.floor(U))||!(U>0)?null:i(function(se){se.setFullYear(Math.floor(se.getFullYear()/U)*U),se.setMonth(0,1),se.setHours(0,0,0,0)},function(se,Ae){se.setFullYear(se.getFullYear()+Ae*U)})};var O=B.range,W=i(function(U){U.setUTCSeconds(0,0)},function(U,se){U.setTime(+U+se*s)},function(U,se){return(se-U)/s},function(U){return U.getUTCMinutes()}),X=W.range,Z=i(function(U){U.setUTCMinutes(0,0,0)},function(U,se){U.setTime(+U+se*l)},function(U,se){return(se-U)/l},function(U){return U.getUTCHours()}),j=Z.range,q=i(function(U){U.setUTCHours(0,0,0,0)},function(U,se){U.setUTCDate(U.getUTCDate()+se)},function(U,se){return(se-U)/u},function(U){return U.getUTCDate()-1}),Q=q.range;function N(U){return i(function(se){se.setUTCDate(se.getUTCDate()-(se.getUTCDay()+7-U)%7),se.setUTCHours(0,0,0,0)},function(se,Ae){se.setUTCDate(se.getUTCDate()+Ae*7)},function(se,Ae){return(Ae-se)/f})}var V=N(0),J=N(1),H=N(2),$=N(3),te=N(4),ie=N(5),de=N(6),ge=V.range,Ie=J.range,Ce=H.range,le=$.range,re=te.range,Ee=ie.range,we=de.range,oe=i(function(U){U.setUTCDate(1),U.setUTCHours(0,0,0,0)},function(U,se){U.setUTCMonth(U.getUTCMonth()+se)},function(U,se){return se.getUTCMonth()-U.getUTCMonth()+(se.getUTCFullYear()-U.getUTCFullYear())*12},function(U){return U.getUTCMonth()}),Y=oe.range,ne=i(function(U){U.setUTCMonth(0,1),U.setUTCHours(0,0,0,0)},function(U,se){U.setUTCFullYear(U.getUTCFullYear()+se)},function(U,se){return se.getUTCFullYear()-U.getUTCFullYear()},function(U){return U.getUTCFullYear()});ne.every=function(U){return!isFinite(U=Math.floor(U))||!(U>0)?null:i(function(se){se.setUTCFullYear(Math.floor(se.getUTCFullYear()/U)*U),se.setUTCMonth(0,1),se.setUTCHours(0,0,0,0)},function(se,Ae){se.setUTCFullYear(se.getUTCFullYear()+Ae*U)})};var ye=ne.range;e.timeDay=m,e.timeDays=w,e.timeFriday=g,e.timeFridays=P,e.timeHour=v,e.timeHours=y,e.timeInterval=i,e.timeMillisecond=n,e.timeMilliseconds=a,e.timeMinute=d,e.timeMinutes=p,e.timeMonday=M,e.timeMondays=C,e.timeMonth=F,e.timeMonths=z,e.timeSaturday=E,e.timeSaturdays=I,e.timeSecond=c,e.timeSeconds=h,e.timeSunday=b,e.timeSundays=S,e.timeThursday=T,e.timeThursdays=L,e.timeTuesday=x,e.timeTuesdays=k,e.timeWednesday=A,e.timeWednesdays=D,e.timeWeek=b,e.timeWeeks=S,e.timeYear=B,e.timeYears=O,e.utcDay=q,e.utcDays=Q,e.utcFriday=ie,e.utcFridays=Ee,e.utcHour=Z,e.utcHours=j,e.utcMillisecond=n,e.utcMilliseconds=a,e.utcMinute=W,e.utcMinutes=X,e.utcMonday=J,e.utcMondays=Ie,e.utcMonth=oe,e.utcMonths=Y,e.utcSaturday=de,e.utcSaturdays=we,e.utcSecond=c,e.utcSeconds=h,e.utcSunday=V,e.utcSundays=ge,e.utcThursday=te,e.utcThursdays=re,e.utcTuesday=H,e.utcTuesdays=Ce,e.utcWednesday=$,e.utcWednesdays=le,e.utcWeek=V,e.utcWeeks=ge,e.utcYear=ne,e.utcYears=ye,Object.defineProperty(e,"__esModule",{value:!0})})});var X3=K((PD,sue)=>{(function(e,t){typeof PD=="object"&&typeof sue!="undefined"?t(PD,rV()):(e=e||self,t(e.d3=e.d3||{},e.d3))})(PD,function(e,t){"use strict";function r(Se){if(0<=Se.y&&Se.y<100){var ze=new Date(-1,Se.m,Se.d,Se.H,Se.M,Se.S,Se.L);return ze.setFullYear(Se.y),ze}return new Date(Se.y,Se.m,Se.d,Se.H,Se.M,Se.S,Se.L)}function i(Se){if(0<=Se.y&&Se.y<100){var ze=new Date(Date.UTC(-1,Se.m,Se.d,Se.H,Se.M,Se.S,Se.L));return ze.setUTCFullYear(Se.y),ze}return new Date(Date.UTC(Se.y,Se.m,Se.d,Se.H,Se.M,Se.S,Se.L))}function n(Se,ze,st){return{y:Se,m:ze,d:st,H:0,M:0,S:0,L:0}}function a(Se){var ze=Se.dateTime,st=Se.date,ft=Se.time,wt=Se.periods,At=Se.days,Vt=Se.shortDays,Dt=Se.months,yt=Se.shortMonths,St=h(wt),rr=d(wt),Ke=h(At),at=d(At),lt=h(Vt),vt=d(Vt),We=h(Dt),ut=d(Dt),kt=h(yt),$t=d(yt),or={a:Ut,A:jt,b:pr,B:Ur,c:null,d:F,e:F,f:X,g:ie,G:ge,H:z,I:B,j:O,L:W,m:Z,M:j,p:Sr,q:Cr,Q:nt,s:Ue,S:q,u:Q,U:N,V:J,w:H,W:$,x:null,X:null,y:te,Y:de,Z:Ie,"%":it},Lr={a:di,A:Fi,b:ir,B:Kt,c:null,d:Ce,e:Ce,f:oe,g:ce,G:$e,H:le,I:re,j:Ee,L:we,m:Y,M:ne,p:Me,q:Xe,Q:nt,s:Ue,S:ye,u:U,U:se,V:be,w:me,W:ue,x:null,X:null,y:pe,Y:Be,Z:Ze,"%":it},Er={a:Tr,A:vr,b:Hr,B:Di,c:gn,d:T,e:T,f:D,g:b,G:_,H:E,I:E,j:g,L:k,m:A,M:S,p:si,q:x,Q:P,s:I,S:C,u:v,U:y,V:m,w:p,W:w,x:wr,X:qr,y:b,Y:_,Z:M,"%":L};or.x=hr(st,or),or.X=hr(ft,or),or.c=hr(ze,or),Lr.x=hr(st,Lr),Lr.X=hr(ft,Lr),Lr.c=hr(ze,Lr);function hr(Ye,et){return function(gt){var bt=[],lr=-1,Ct=0,ur=Ye.length,Ir,Rr,Nr;for(gt instanceof Date||(gt=new Date(+gt));++lr53)return null;"w"in bt||(bt.w=1),"Z"in bt?(Ct=i(n(bt.y,0,1)),ur=Ct.getUTCDay(),Ct=ur>4||ur===0?t.utcMonday.ceil(Ct):t.utcMonday(Ct),Ct=t.utcDay.offset(Ct,(bt.V-1)*7),bt.y=Ct.getUTCFullYear(),bt.m=Ct.getUTCMonth(),bt.d=Ct.getUTCDate()+(bt.w+6)%7):(Ct=r(n(bt.y,0,1)),ur=Ct.getDay(),Ct=ur>4||ur===0?t.timeMonday.ceil(Ct):t.timeMonday(Ct),Ct=t.timeDay.offset(Ct,(bt.V-1)*7),bt.y=Ct.getFullYear(),bt.m=Ct.getMonth(),bt.d=Ct.getDate()+(bt.w+6)%7)}else("W"in bt||"U"in bt)&&("w"in bt||(bt.w="u"in bt?bt.u%7:"W"in bt?1:0),ur="Z"in bt?i(n(bt.y,0,1)).getUTCDay():r(n(bt.y,0,1)).getDay(),bt.m=0,bt.d="W"in bt?(bt.w+6)%7+bt.W*7-(ur+5)%7:bt.w+bt.U*7-(ur+6)%7);return"Z"in bt?(bt.H+=bt.Z/100|0,bt.M+=bt.Z%100,i(bt)):r(bt)}}function Kr(Ye,et,gt,bt){for(var lr=0,Ct=et.length,ur=gt.length,Ir,Rr;lr=ur)return-1;if(Ir=et.charCodeAt(lr++),Ir===37){if(Ir=et.charAt(lr++),Rr=Er[Ir in o?et.charAt(lr++):Ir],!Rr||(bt=Rr(Ye,gt,bt))<0)return-1}else if(Ir!=gt.charCodeAt(bt++))return-1}return bt}function si(Ye,et,gt){var bt=St.exec(et.slice(gt));return bt?(Ye.p=rr[bt[0].toLowerCase()],gt+bt[0].length):-1}function Tr(Ye,et,gt){var bt=lt.exec(et.slice(gt));return bt?(Ye.w=vt[bt[0].toLowerCase()],gt+bt[0].length):-1}function vr(Ye,et,gt){var bt=Ke.exec(et.slice(gt));return bt?(Ye.w=at[bt[0].toLowerCase()],gt+bt[0].length):-1}function Hr(Ye,et,gt){var bt=kt.exec(et.slice(gt));return bt?(Ye.m=$t[bt[0].toLowerCase()],gt+bt[0].length):-1}function Di(Ye,et,gt){var bt=We.exec(et.slice(gt));return bt?(Ye.m=ut[bt[0].toLowerCase()],gt+bt[0].length):-1}function gn(Ye,et,gt){return Kr(Ye,ze,et,gt)}function wr(Ye,et,gt){return Kr(Ye,st,et,gt)}function qr(Ye,et,gt){return Kr(Ye,ft,et,gt)}function Ut(Ye){return Vt[Ye.getDay()]}function jt(Ye){return At[Ye.getDay()]}function pr(Ye){return yt[Ye.getMonth()]}function Ur(Ye){return Dt[Ye.getMonth()]}function Sr(Ye){return wt[+(Ye.getHours()>=12)]}function Cr(Ye){return 1+~~(Ye.getMonth()/3)}function di(Ye){return Vt[Ye.getUTCDay()]}function Fi(Ye){return At[Ye.getUTCDay()]}function ir(Ye){return yt[Ye.getUTCMonth()]}function Kt(Ye){return Dt[Ye.getUTCMonth()]}function Me(Ye){return wt[+(Ye.getUTCHours()>=12)]}function Xe(Ye){return 1+~~(Ye.getUTCMonth()/3)}return{format:function(Ye){var et=hr(Ye+="",or);return et.toString=function(){return Ye},et},parse:function(Ye){var et=ni(Ye+="",!1);return et.toString=function(){return Ye},et},utcFormat:function(Ye){var et=hr(Ye+="",Lr);return et.toString=function(){return Ye},et},utcParse:function(Ye){var et=ni(Ye+="",!0);return et.toString=function(){return Ye},et}}}var o={"-":"",_:" ",0:"0"},s=/^\s*\d+/,l=/^%/,u=/[\\^$*+?|[\]().{}]/g;function f(Se,ze,st){var ft=Se<0?"-":"",wt=(ft?-Se:Se)+"",At=wt.length;return ft+(At68?1900:2e3),st+ft[0].length):-1}function M(Se,ze,st){var ft=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(ze.slice(st,st+6));return ft?(Se.Z=ft[1]?0:-(ft[2]+(ft[3]||"00")),st+ft[0].length):-1}function x(Se,ze,st){var ft=s.exec(ze.slice(st,st+1));return ft?(Se.q=ft[0]*3-3,st+ft[0].length):-1}function A(Se,ze,st){var ft=s.exec(ze.slice(st,st+2));return ft?(Se.m=ft[0]-1,st+ft[0].length):-1}function T(Se,ze,st){var ft=s.exec(ze.slice(st,st+2));return ft?(Se.d=+ft[0],st+ft[0].length):-1}function g(Se,ze,st){var ft=s.exec(ze.slice(st,st+3));return ft?(Se.m=0,Se.d=+ft[0],st+ft[0].length):-1}function E(Se,ze,st){var ft=s.exec(ze.slice(st,st+2));return ft?(Se.H=+ft[0],st+ft[0].length):-1}function S(Se,ze,st){var ft=s.exec(ze.slice(st,st+2));return ft?(Se.M=+ft[0],st+ft[0].length):-1}function C(Se,ze,st){var ft=s.exec(ze.slice(st,st+2));return ft?(Se.S=+ft[0],st+ft[0].length):-1}function k(Se,ze,st){var ft=s.exec(ze.slice(st,st+3));return ft?(Se.L=+ft[0],st+ft[0].length):-1}function D(Se,ze,st){var ft=s.exec(ze.slice(st,st+6));return ft?(Se.L=Math.floor(ft[0]/1e3),st+ft[0].length):-1}function L(Se,ze,st){var ft=l.exec(ze.slice(st,st+1));return ft?st+ft[0].length:-1}function P(Se,ze,st){var ft=s.exec(ze.slice(st));return ft?(Se.Q=+ft[0],st+ft[0].length):-1}function I(Se,ze,st){var ft=s.exec(ze.slice(st));return ft?(Se.s=+ft[0],st+ft[0].length):-1}function F(Se,ze){return f(Se.getDate(),ze,2)}function z(Se,ze){return f(Se.getHours(),ze,2)}function B(Se,ze){return f(Se.getHours()%12||12,ze,2)}function O(Se,ze){return f(1+t.timeDay.count(t.timeYear(Se),Se),ze,3)}function W(Se,ze){return f(Se.getMilliseconds(),ze,3)}function X(Se,ze){return W(Se,ze)+"000"}function Z(Se,ze){return f(Se.getMonth()+1,ze,2)}function j(Se,ze){return f(Se.getMinutes(),ze,2)}function q(Se,ze){return f(Se.getSeconds(),ze,2)}function Q(Se){var ze=Se.getDay();return ze===0?7:ze}function N(Se,ze){return f(t.timeSunday.count(t.timeYear(Se)-1,Se),ze,2)}function V(Se){var ze=Se.getDay();return ze>=4||ze===0?t.timeThursday(Se):t.timeThursday.ceil(Se)}function J(Se,ze){return Se=V(Se),f(t.timeThursday.count(t.timeYear(Se),Se)+(t.timeYear(Se).getDay()===4),ze,2)}function H(Se){return Se.getDay()}function $(Se,ze){return f(t.timeMonday.count(t.timeYear(Se)-1,Se),ze,2)}function te(Se,ze){return f(Se.getFullYear()%100,ze,2)}function ie(Se,ze){return Se=V(Se),f(Se.getFullYear()%100,ze,2)}function de(Se,ze){return f(Se.getFullYear()%1e4,ze,4)}function ge(Se,ze){var st=Se.getDay();return Se=st>=4||st===0?t.timeThursday(Se):t.timeThursday.ceil(Se),f(Se.getFullYear()%1e4,ze,4)}function Ie(Se){var ze=Se.getTimezoneOffset();return(ze>0?"-":(ze*=-1,"+"))+f(ze/60|0,"0",2)+f(ze%60,"0",2)}function Ce(Se,ze){return f(Se.getUTCDate(),ze,2)}function le(Se,ze){return f(Se.getUTCHours(),ze,2)}function re(Se,ze){return f(Se.getUTCHours()%12||12,ze,2)}function Ee(Se,ze){return f(1+t.utcDay.count(t.utcYear(Se),Se),ze,3)}function we(Se,ze){return f(Se.getUTCMilliseconds(),ze,3)}function oe(Se,ze){return we(Se,ze)+"000"}function Y(Se,ze){return f(Se.getUTCMonth()+1,ze,2)}function ne(Se,ze){return f(Se.getUTCMinutes(),ze,2)}function ye(Se,ze){return f(Se.getUTCSeconds(),ze,2)}function U(Se){var ze=Se.getUTCDay();return ze===0?7:ze}function se(Se,ze){return f(t.utcSunday.count(t.utcYear(Se)-1,Se),ze,2)}function Ae(Se){var ze=Se.getUTCDay();return ze>=4||ze===0?t.utcThursday(Se):t.utcThursday.ceil(Se)}function be(Se,ze){return Se=Ae(Se),f(t.utcThursday.count(t.utcYear(Se),Se)+(t.utcYear(Se).getUTCDay()===4),ze,2)}function me(Se){return Se.getUTCDay()}function ue(Se,ze){return f(t.utcMonday.count(t.utcYear(Se)-1,Se),ze,2)}function pe(Se,ze){return f(Se.getUTCFullYear()%100,ze,2)}function ce(Se,ze){return Se=Ae(Se),f(Se.getUTCFullYear()%100,ze,2)}function Be(Se,ze){return f(Se.getUTCFullYear()%1e4,ze,4)}function $e(Se,ze){var st=Se.getUTCDay();return Se=st>=4||st===0?t.utcThursday(Se):t.utcThursday.ceil(Se),f(Se.getUTCFullYear()%1e4,ze,4)}function Ze(){return"+0000"}function it(){return"%"}function nt(Se){return+Se}function Ue(Se){return Math.floor(+Se/1e3)}var xe;Re({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 Re(Se){return xe=a(Se),e.timeFormat=xe.format,e.timeParse=xe.parse,e.utcFormat=xe.utcFormat,e.utcParse=xe.utcParse,xe}var Qe="%Y-%m-%dT%H:%M:%S.%LZ";function Pe(Se){return Se.toISOString()}var De=Date.prototype.toISOString?Pe:e.utcFormat(Qe);function Ve(Se){var ze=new Date(Se);return isNaN(ze)?null:ze}var Le=+new Date("2000-01-01T00:00:00.000Z")?Ve:e.utcParse(Qe);e.isoFormat=De,e.isoParse=Le,e.timeFormatDefaultLocale=Re,e.timeFormatLocale=a,Object.defineProperty(e,"__esModule",{value:!0})})});var iV=K((zD,lue)=>{(function(e,t){typeof zD=="object"&&typeof lue!="undefined"?t(zD):(e=typeof globalThis!="undefined"?globalThis:e||self,t(e.d3=e.d3||{}))})(zD,(function(e){"use strict";function t(A){return Math.abs(A=Math.round(A))>=1e21?A.toLocaleString("en").replace(/,/g,""):A.toString(10)}function r(A,T){if((g=(A=T?A.toExponential(T-1):A.toExponential()).indexOf("e"))<0)return null;var g,E=A.slice(0,g);return[E.length>1?E[0]+E.slice(2):E,+A.slice(g+1)]}function i(A){return A=r(Math.abs(A)),A?A[1]:NaN}function n(A,T){return function(g,E){for(var S=g.length,C=[],k=0,D=A[0],L=0;S>0&&D>0&&(L+D+1>E&&(D=Math.max(1,E-L)),C.push(g.substring(S-=D,S+D)),!((L+=D+1)>E));)D=A[k=(k+1)%A.length];return C.reverse().join(T)}}function a(A){return function(T){return T.replace(/[0-9]/g,function(g){return A[+g]})}}var o=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function s(A){if(!(T=o.exec(A)))throw new Error("invalid format: "+A);var T;return new l({fill:T[1],align:T[2],sign:T[3],symbol:T[4],zero:T[5],width:T[6],comma:T[7],precision:T[8]&&T[8].slice(1),trim:T[9],type:T[10]})}s.prototype=l.prototype;function l(A){this.fill=A.fill===void 0?" ":A.fill+"",this.align=A.align===void 0?">":A.align+"",this.sign=A.sign===void 0?"-":A.sign+"",this.symbol=A.symbol===void 0?"":A.symbol+"",this.zero=!!A.zero,this.width=A.width===void 0?void 0:+A.width,this.comma=!!A.comma,this.precision=A.precision===void 0?void 0:+A.precision,this.trim=!!A.trim,this.type=A.type===void 0?"":A.type+""}l.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 u(A){e:for(var T=A.length,g=1,E=-1,S;g0&&(E=0);break}return E>0?A.slice(0,E)+A.slice(S+1):A}var f;function c(A,T){var g=r(A,T);if(!g)return A+"";var E=g[0],S=g[1],C=S-(f=Math.max(-8,Math.min(8,Math.floor(S/3)))*3)+1,k=E.length;return C===k?E:C>k?E+new Array(C-k+1).join("0"):C>0?E.slice(0,C)+"."+E.slice(C):"0."+new Array(1-C).join("0")+r(A,Math.max(0,T+C-1))[0]}function h(A,T){var g=r(A,T);if(!g)return A+"";var E=g[0],S=g[1];return S<0?"0."+new Array(-S).join("0")+E:E.length>S+1?E.slice(0,S+1)+"."+E.slice(S+1):E+new Array(S-E.length+2).join("0")}var d={"%":function(A,T){return(A*100).toFixed(T)},b:function(A){return Math.round(A).toString(2)},c:function(A){return A+""},d:t,e:function(A,T){return A.toExponential(T)},f:function(A,T){return A.toFixed(T)},g:function(A,T){return A.toPrecision(T)},o:function(A){return Math.round(A).toString(8)},p:function(A,T){return h(A*100,T)},r:h,s:c,X:function(A){return Math.round(A).toString(16).toUpperCase()},x:function(A){return Math.round(A).toString(16)}};function p(A){return A}var v=Array.prototype.map,y=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function m(A){var T=A.grouping===void 0||A.thousands===void 0?p:n(v.call(A.grouping,Number),A.thousands+""),g=A.currency===void 0?"":A.currency[0]+"",E=A.currency===void 0?"":A.currency[1]+"",S=A.decimal===void 0?".":A.decimal+"",C=A.numerals===void 0?p:a(v.call(A.numerals,String)),k=A.percent===void 0?"%":A.percent+"",D=A.minus===void 0?"-":A.minus+"",L=A.nan===void 0?"NaN":A.nan+"";function P(F){F=s(F);var z=F.fill,B=F.align,O=F.sign,W=F.symbol,X=F.zero,Z=F.width,j=F.comma,q=F.precision,Q=F.trim,N=F.type;N==="n"?(j=!0,N="g"):d[N]||(q===void 0&&(q=12),Q=!0,N="g"),(X||z==="0"&&B==="=")&&(X=!0,z="0",B="=");var V=W==="$"?g:W==="#"&&/[boxX]/.test(N)?"0"+N.toLowerCase():"",J=W==="$"?E:/[%p]/.test(N)?k:"",H=d[N],$=/[defgprs%]/.test(N);q=q===void 0?6:/[gprs]/.test(N)?Math.max(1,Math.min(21,q)):Math.max(0,Math.min(20,q));function te(ie){var de=V,ge=J,Ie,Ce,le;if(N==="c")ge=H(ie)+ge,ie="";else{ie=+ie;var re=ie<0||1/ie<0;if(ie=isNaN(ie)?L:H(Math.abs(ie),q),Q&&(ie=u(ie)),re&&+ie==0&&O!=="+"&&(re=!1),de=(re?O==="("?O:D:O==="-"||O==="("?"":O)+de,ge=(N==="s"?y[8+f/3]:"")+ge+(re&&O==="("?")":""),$){for(Ie=-1,Ce=ie.length;++Iele||le>57){ge=(le===46?S+ie.slice(Ie+1):ie.slice(Ie))+ge,ie=ie.slice(0,Ie);break}}}j&&!X&&(ie=T(ie,1/0));var Ee=de.length+ie.length+ge.length,we=Ee>1)+de+ie+ge+we.slice(Ee);break;default:ie=we+de+ie+ge;break}return C(ie)}return te.toString=function(){return F+""},te}function I(F,z){var B=P((F=s(F),F.type="f",F)),O=Math.max(-8,Math.min(8,Math.floor(i(z)/3)))*3,W=Math.pow(10,-O),X=y[8+O/3];return function(Z){return B(W*Z)+X}}return{format:P,formatPrefix:I}}var w;_({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function _(A){return w=m(A),e.format=w.format,e.formatPrefix=w.formatPrefix,w}function b(A){return Math.max(0,-i(Math.abs(A)))}function M(A,T){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(i(T)/3)))*3-i(Math.abs(A)))}function x(A,T){return A=Math.abs(A),T=Math.abs(T)-A,Math.max(0,i(T)-i(A))+1}e.FormatSpecifier=l,e.formatDefaultLocale=_,e.formatLocale=m,e.formatSpecifier=s,e.precisionFixed=b,e.precisionPrefix=M,e.precisionRound=x,Object.defineProperty(e,"__esModule",{value:!0})}))});var fue=K((V7r,uue)=>{"use strict";uue.exports=function(e){for(var t=e.length,r,i=0;i13)&&r!==32&&r!==133&&r!==160&&r!==5760&&r!==6158&&(r<8192||r>8205)&&r!==8232&&r!==8233&&r!==8239&&r!==8287&&r!==8288&&r!==12288&&r!==65279)return!1;return!0}});var Gs=K((U7r,cue)=>{"use strict";var Myt=fue();cue.exports=function(e){var t=typeof e;if(t==="string"){var r=e;if(e=+e,e===0&&Myt(r))return!1}else if(t!=="number")return!1;return e-e<1}});var Bl={};Fl(Bl,{ALMOST_EQUAL:()=>Hyt,BADNUM:()=>nV,EPOCHJD:()=>Gyt,FP_SAFE:()=>Syt,LOG_CLIP:()=>jyt,MINUS_SIGN:()=>Wyt,ONEAVGMONTH:()=>zyt,ONEAVGQUARTER:()=>Fyt,ONEAVGYEAR:()=>kyt,ONEDAY:()=>Byt,ONEHOUR:()=>qyt,ONEMAXMONTH:()=>Pyt,ONEMAXQUARTER:()=>Dyt,ONEMAXYEAR:()=>Eyt,ONEMICROSEC:()=>Uyt,ONEMILLI:()=>Vyt,ONEMIN:()=>Oyt,ONEMINMONTH:()=>Iyt,ONEMINQUARTER:()=>Lyt,ONEMINYEAR:()=>Cyt,ONESEC:()=>Nyt,ONEWEEK:()=>Ryt});var nV,Syt,Eyt,kyt,Cyt,Dyt,Fyt,Lyt,Pyt,zyt,Iyt,Ryt,Byt,qyt,Oyt,Nyt,Vyt,Uyt,Gyt,Hyt,jyt,Wyt,Il=ps(()=>{"use strict";nV=void 0,Syt=Number.MAX_VALUE*1e-4,Eyt=316224e5,kyt=315576e5,Cyt=31536e6,Dyt=79488e5,Fyt=78894e5,Lyt=76896e5,Pyt=26784e5,zyt=26298e5,Iyt=24192e5,Ryt=6048e5,Byt=864e5,qyt=36e5,Oyt=6e4,Nyt=1e3,Vyt=1,Uyt=.001,Gyt=24405875e-1,Hyt=1-1e-6,jyt=10,Wyt="\u2212"});var aV=K((ID,hue)=>{(function(e,t){typeof ID=="object"&&typeof hue!="undefined"?t(ID):(e=typeof globalThis!="undefined"?globalThis:e||self,t(e["base64-arraybuffer"]={}))})(ID,(function(e){"use strict";for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),i=0;i>2],f+=t[(s[l]&3)<<4|s[l+1]>>4],f+=t[(s[l+1]&15)<<2|s[l+2]>>6],f+=t[s[l+2]&63];return u%3===2?f=f.substring(0,f.length-1)+"=":u%3===1&&(f=f.substring(0,f.length-2)+"=="),f},a=function(o){var s=o.length*.75,l=o.length,u,f=0,c,h,d,p;o[o.length-1]==="="&&(s--,o[o.length-2]==="="&&s--);var v=new ArrayBuffer(s),y=new Uint8Array(v);for(u=0;u>4,y[f++]=(h&15)<<4|d>>2,y[f++]=(d&3)<<6|p&63;return v};e.decode=a,e.encode=n,Object.defineProperty(e,"__esModule",{value:!0})}))});var yg=K((G7r,due)=>{"use strict";due.exports=function(t){return window&&window.process&&window.process.versions?Object.prototype.toString.call(t)==="[object Object]":Object.prototype.toString.call(t)==="[object Object]"&&Object.getPrototypeOf(t).hasOwnProperty("hasOwnProperty")}});var $h=K(Bv=>{"use strict";var $yt=aV().decode,Yyt=yg(),oV=Array.isArray,Xyt=ArrayBuffer,Zyt=DataView;function pue(e){return Xyt.isView(e)&&!(e instanceof Zyt)}Bv.isTypedArray=pue;function RD(e){return oV(e)||pue(e)}Bv.isArrayOrTypedArray=RD;function Kyt(e){return!RD(e[0])}Bv.isArray1D=Kyt;Bv.ensureArray=function(e,t){return oV(e)||(e=[]),e.length=t,e};var Fh={u1c:typeof Uint8ClampedArray=="undefined"?void 0:Uint8ClampedArray,i1:typeof Int8Array=="undefined"?void 0:Int8Array,u1:typeof Uint8Array=="undefined"?void 0:Uint8Array,i2:typeof Int16Array=="undefined"?void 0:Int16Array,u2:typeof Uint16Array=="undefined"?void 0:Uint16Array,i4:typeof Int32Array=="undefined"?void 0:Int32Array,u4:typeof Uint32Array=="undefined"?void 0:Uint32Array,f4:typeof Float32Array=="undefined"?void 0:Float32Array,f8:typeof Float64Array=="undefined"?void 0:Float64Array};Fh.uint8c=Fh.u1c;Fh.uint8=Fh.u1;Fh.int8=Fh.i1;Fh.uint16=Fh.u2;Fh.int16=Fh.i2;Fh.uint32=Fh.u4;Fh.int32=Fh.i4;Fh.float32=Fh.f4;Fh.float64=Fh.f8;function sV(e){return e.constructor===ArrayBuffer}Bv.isArrayBuffer=sV;Bv.decodeTypedArraySpec=function(e){var t=[],r=Jyt(e),i=r.dtype,n=Fh[i];if(!n)throw new Error('Error in dtype: "'+i+'"');var a=n.BYTES_PER_ELEMENT,o=r.bdata;sV(o)||(o=$yt(o));var s=r.shape===void 0?[o.byteLength/a]:(""+r.shape).split(",");s.reverse();var l=s.length,u,f,c=+s[0],h=a*c,d=0;if(l===1)t=new n(o);else if(l===2)for(u=+s[1],f=0;f{"use strict";var mue=Gs(),uV=$h().isArrayOrTypedArray;bue.exports=function(t,r){if(mue(r))r=String(r);else if(typeof r!="string"||r.slice(-4)==="[-1]")throw"bad property string";var i=r.split("."),n,a,o,s;for(s=0;s{"use strict";var Z3=NT(),igt=/^\w*$/,ngt=0,_ue=1,BD=2,wue=3,Nx=4;Aue.exports=function(t,r,i,n){i=i||"name",n=n||"value";var a,o,s,l={};r&&r.length?(s=Z3(t,r),o=s.get()):o=t,r=r||"";var u={};if(o)for(a=0;a2)return l[d]=l[d]|BD,c.set(h,null);if(f){for(a=d;a{"use strict";var agt=/^(.*)(\.[^\.\[\]]+|\[\d\])$/,ogt=/^[^\.\[\]]+$/;Mue.exports=function(e,t){for(;t;){var r=e.match(agt);if(r)e=r[1];else if(e.match(ogt))e="";else throw new Error("bad relativeAttr call:"+[e,t]);if(t.charAt(0)==="^")t=t.slice(1);else break}return e&&t.charAt(0)!=="["?e+"."+t:e+t}});var qD=K((Y7r,Eue)=>{"use strict";var sgt=Gs();Eue.exports=function(t,r){if(t>0)return Math.log(t)/Math.LN10;var i=Math.log(Math.min(r[0],r[1]))/Math.LN10;return sgt(i)||(i=Math.log(Math.max(r[0],r[1]))/Math.LN10-6),i}});var Due=K((X7r,Cue)=>{"use strict";var kue=$h().isArrayOrTypedArray,VT=yg();Cue.exports=function e(t,r){for(var i in r){var n=r[i],a=t[i];if(a!==n)if(i.charAt(0)==="_"||typeof n=="function"){if(i in t)continue;t[i]=n}else if(kue(n)&&kue(a)&&VT(n[0])){if(i==="customdata"||i==="ids")continue;for(var o=Math.min(n.length,a.length),s=0;slgt,modHalf:()=>ugt});function lgt(e,t){let r=e%t;return r<0?r+t:r}function ugt(e,t){return Math.abs(e)>t/2?e-Math.round(e/t)*t:e}var J3=ps(()=>{"use strict"});var Os=K(HT=>{"use strict";var Fue=yg(),UT=Array.isArray;function fgt(e,t){var r,i;for(r=0;r{"use strict";Lue.exports=function(e){var t=e.variantValues,r=e.editType,i=e.colorEditType;i===void 0&&(i=r);var n={editType:r,valType:"integer",min:1,max:1e3,extras:["normal","bold"],dflt:"normal"};e.noNumericWeightValues&&(n.valType="enumerated",n.values=n.extras,n.extras=void 0,n.min=void 0,n.max=void 0);var a={family:{valType:"string",noBlank:!0,strict:!0,editType:r},size:{valType:"number",min:1,editType:r},color:{valType:"color",editType:i},weight:n,style:{editType:r,valType:"enumerated",values:["normal","italic"],dflt:"normal"},variant:e.noFontVariant?void 0:{editType:r,valType:"enumerated",values:t||["normal","small-caps","all-small-caps","all-petite-caps","petite-caps","unicase"],dflt:"normal"},textcase:e.noFontTextcase?void 0:{editType:r,valType:"enumerated",values:["normal","word caps","upper","lower"],dflt:"normal"},lineposition:e.noFontLineposition?void 0:{editType:r,valType:"flaglist",flags:["under","over","through"],extras:["none"],dflt:"none"},shadow:e.noFontShadow?void 0:{editType:r,valType:"string",dflt:e.autoShadowDflt?"auto":"none"},editType:r};return e.autoSize&&(a.size.dflt="auto"),e.autoColor&&(a.color.dflt="auto"),e.arrayOk&&(a.family.arrayOk=!0,a.weight.arrayOk=!0,a.style.arrayOk=!0,e.noFontVariant||(a.variant.arrayOk=!0),e.noFontTextcase||(a.textcase.arrayOk=!0),e.noFontLineposition||(a.lineposition.arrayOk=!0),e.noFontShadow||(a.shadow.arrayOk=!0),a.size.arrayOk=!0,a.color.arrayOk=!0),a}});var jT={};Fl(jT,{HOVERARROWSIZE:()=>hgt,HOVERFONT:()=>vgt,HOVERFONTSIZE:()=>pgt,HOVERID:()=>ygt,HOVERMINTIME:()=>mgt,HOVERTEXTPAD:()=>dgt,YANGLE:()=>cgt});var cgt,hgt,dgt,pgt,vgt,mgt,ygt,WT=ps(()=>{"use strict";cgt=60,hgt=6,dgt=3,pgt=13,vgt="Arial, sans-serif",mgt=50,ygt="-hover"});var gg=K((J7r,Iue)=>{"use strict";var Pue=(WT(),ar(jT)),zue=lf(),fV=zue({editType:"none"});fV.family.dflt=Pue.HOVERFONT;fV.size.dflt=Pue.HOVERFONTSIZE;Iue.exports={clickmode:{valType:"flaglist",flags:["event","select"],dflt:"event",editType:"plot",extras:["none"]},dragmode:{valType:"enumerated",values:["zoom","pan","select","lasso","drawclosedpath","drawopenpath","drawline","drawrect","drawcircle","orbit","turntable",!1],dflt:"zoom",editType:"modebar"},hovermode:{valType:"enumerated",values:["x","y","closest",!1,"x unified","y unified"],dflt:"closest",editType:"modebar"},hoversort:{valType:"enumerated",values:["trace","value descending","value ascending"],dflt:"trace",editType:"none"},hoversubplots:{valType:"enumerated",values:["single","overlaying","axis"],dflt:"overlaying",editType:"none"},hoveranywhere:{valType:"boolean",dflt:!1,editType:"none"},clickanywhere:{valType:"boolean",dflt:!1,editType:"none"},hoverdistance:{valType:"integer",min:-1,dflt:20,editType:"none"},spikedistance:{valType:"integer",min:-1,dflt:-1,editType:"none"},hoverlabel:{bgcolor:{valType:"color",editType:"none"},bordercolor:{valType:"color",editType:"none"},font:fV,grouptitlefont:zue({editType:"none"}),align:{valType:"enumerated",values:["left","right","auto"],dflt:"auto",editType:"none"},namelength:{valType:"integer",min:-1,dflt:15,editType:"none"},showarrow:{valType:"boolean",dflt:!0,editType:"none"},editType:"none"},selectdirection:{valType:"enumerated",values:["h","v","d","any"],dflt:"any",editType:"none"}}});var Q3=K((Q7r,Rue)=>{"use strict";var ggt=lf(),$T=gg().hoverlabel,YT=Os().extendFlat;Rue.exports={hoverlabel:{bgcolor:YT({},$T.bgcolor,{arrayOk:!0}),bordercolor:YT({},$T.bordercolor,{arrayOk:!0}),font:ggt({arrayOk:!0,editType:"none"}),align:YT({},$T.align,{arrayOk:!0}),namelength:YT({},$T.namelength,{arrayOk:!0}),showarrow:YT({},$T.showarrow),editType:"none"}}});var Au=K((eqr,Bue)=>{"use strict";var xgt=lf(),bgt=Q3();Bue.exports={type:{valType:"enumerated",values:[],dflt:"scatter",editType:"calc+clearAxisTypes",_noTemplating:!0},visible:{valType:"enumerated",values:[!0,!1,"legendonly"],dflt:!0,editType:"calc"},showlegend:{valType:"boolean",dflt:!0,editType:"style"},legend:{valType:"subplotid",dflt:"legend",editType:"style"},legendgroup:{valType:"string",dflt:"",editType:"style"},legendgrouptitle:{text:{valType:"string",dflt:"",editType:"style"},font:xgt({editType:"style"}),editType:"style"},legendrank:{valType:"number",dflt:1e3,editType:"style"},legendwidth:{valType:"number",min:0,editType:"style"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"style"},name:{valType:"string",editType:"style"},uid:{valType:"string",editType:"plot",anim:!0},ids:{valType:"data_array",editType:"calc",anim:!0},customdata:{valType:"data_array",editType:"calc"},meta:{valType:"any",arrayOk:!0,editType:"plot"},selectedpoints:{valType:"any",editType:"calc"},hoverinfo:{valType:"flaglist",flags:["x","y","z","text","name"],extras:["all","none","skip"],arrayOk:!0,dflt:"all",editType:"none"},hoverlabel:bgt.hoverlabel,uirevision:{valType:"any",editType:"none"}}});var Cce=K((sqr,kce)=>{var rU=Object.defineProperty,_gt=Object.getOwnPropertyDescriptor,wgt=Object.getOwnPropertyNames,Agt=Object.prototype.hasOwnProperty,Tgt=(e,t)=>{for(var r in t)rU(e,r,{get:t[r],enumerable:!0})},Mgt=(e,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of wgt(t))!Agt.call(e,n)&&n!==r&&rU(e,n,{get:()=>t[n],enumerable:!(i=_gt(t,n))||i.enumerable});return e},Sgt=e=>Mgt(rU({},"__esModule",{value:!0}),e),$ue={};Tgt($ue,{a98:()=>y_t,average:()=>w2t,averageAngle:()=>q1,averageNumber:()=>ffe,blend:()=>_bt,blerp:()=>RV,clampChroma:()=>Vbt,clampGamut:()=>CU,clampRgb:()=>Nbt,colorsNamed:()=>Xue,convertA98ToXyz65:()=>BV,convertCubehelixToRgb:()=>lfe,convertDlchToLab65:()=>$D,convertHsiToRgb:()=>gfe,convertHslToRgb:()=>_fe,convertHsvToRgb:()=>lU,convertHwbToRgb:()=>Mfe,convertItpToXyz65:()=>OV,convertJabToJch:()=>VV,convertJabToRgb:()=>pU,convertJabToXyz65:()=>hU,convertJchToJab:()=>UV,convertLab65ToDlch:()=>YD,convertLab65ToRgb:()=>r6,convertLab65ToXyz65:()=>aU,convertLabToLch:()=>Zm,convertLabToRgb:()=>mU,convertLabToXyz50:()=>nF,convertLchToLab:()=>Km,convertLchuvToLuv:()=>xU,convertLrgbToOklab:()=>bU,convertLrgbToRgb:()=>$x,convertLuvToLchuv:()=>gU,convertLuvToXyz50:()=>ZD,convertOkhslToOklab:()=>jV,convertOkhsvToOklab:()=>$V,convertOklabToLrgb:()=>sw,convertOklabToOkhsl:()=>HV,convertOklabToOkhsv:()=>WV,convertOklabToRgb:()=>a6,convertP3ToXyz65:()=>YV,convertProphotoToXyz50:()=>KV,convertRec2020ToXyz65:()=>QV,convertRgbToCubehelix:()=>sfe,convertRgbToHsi:()=>xfe,convertRgbToHsl:()=>wfe,convertRgbToHsv:()=>uU,convertRgbToHwb:()=>Sfe,convertRgbToJab:()=>dU,convertRgbToLab:()=>yU,convertRgbToLab65:()=>i6,convertRgbToLrgb:()=>Wx,convertRgbToOklab:()=>n6,convertRgbToXyb:()=>ece,convertRgbToXyz50:()=>ow,convertRgbToXyz65:()=>xg,convertRgbToYiq:()=>sce,convertXybToRgb:()=>tce,convertXyz50ToLab:()=>aF,convertXyz50ToLuv:()=>XD,convertXyz50ToProphoto:()=>ZV,convertXyz50ToRgb:()=>aw,convertXyz50ToXyz65:()=>ace,convertXyz65ToA98:()=>qV,convertXyz65ToItp:()=>NV,convertXyz65ToJab:()=>cU,convertXyz65ToLab65:()=>oU,convertXyz65ToP3:()=>XV,convertXyz65ToRec2020:()=>JV,convertXyz65ToRgb:()=>bg,convertXyz65ToXyz50:()=>nce,convertYiqToRgb:()=>lce,converter:()=>Lf,cubehelix:()=>g_t,differenceCie76:()=>v2t,differenceCie94:()=>m2t,differenceCiede2000:()=>y2t,differenceCmc:()=>g2t,differenceEuclidean:()=>nw,differenceHueChroma:()=>t6,differenceHueNaive:()=>ufe,differenceHueSaturation:()=>e6,differenceHyab:()=>x2t,differenceItp:()=>_2t,differenceKotsarenkoRamos:()=>b2t,displayable:()=>kU,dlab:()=>x_t,dlch:()=>b_t,easingGamma:()=>Ace,easingInOutSine:()=>v_t,easingMidpoint:()=>mce,easingSmootherstep:()=>d_t,easingSmoothstep:()=>f_t,easingSmoothstepInverse:()=>c_t,filterBrightness:()=>Zbt,filterContrast:()=>Kbt,filterDeficiencyDeuter:()=>l_t,filterDeficiencyProt:()=>s_t,filterDeficiencyTrit:()=>u_t,filterGrayscale:()=>e_t,filterHueRotate:()=>r_t,filterInvert:()=>t_t,filterSaturate:()=>Qbt,filterSepia:()=>Jbt,fixupAlpha:()=>mh,fixupHueDecreasing:()=>f2t,fixupHueIncreasing:()=>u2t,fixupHueLonger:()=>l2t,fixupHueShorter:()=>B1,formatCss:()=>pbt,formatHex:()=>vbt,formatHex8:()=>mbt,formatHsl:()=>gbt,formatRgb:()=>ybt,getMode:()=>B0,hsi:()=>__t,hsl:()=>w_t,hsv:()=>A_t,hwb:()=>T_t,inGamut:()=>lF,interpolate:()=>Dbt,interpolateWith:()=>gce,interpolateWithPremultipliedAlpha:()=>Fbt,interpolatorLinear:()=>ws,interpolatorPiecewise:()=>afe,interpolatorSplineBasis:()=>bce,interpolatorSplineBasisClosed:()=>_ce,interpolatorSplineMonotone:()=>zbt,interpolatorSplineMonotone2:()=>Ibt,interpolatorSplineMonotoneClosed:()=>Rbt,interpolatorSplineNatural:()=>Lbt,interpolatorSplineNaturalClosed:()=>Pbt,itp:()=>M_t,jab:()=>S_t,jch:()=>E_t,lab:()=>k_t,lab65:()=>C_t,lch:()=>D_t,lch65:()=>F_t,lchuv:()=>L_t,lerp:()=>Ux,lrgb:()=>P_t,luv:()=>z_t,mapAlphaDivide:()=>vce,mapAlphaMultiply:()=>pce,mapTransferGamma:()=>Sbt,mapTransferLinear:()=>MU,mapper:()=>o6,modeA98:()=>ofe,modeCubehelix:()=>cfe,modeDlab:()=>mfe,modeDlch:()=>yfe,modeHsi:()=>bfe,modeHsl:()=>sU,modeHsv:()=>fU,modeHwb:()=>kfe,modeItp:()=>Ffe,modeJab:()=>Lfe,modeJch:()=>Pfe,modeLab:()=>oF,modeLab65:()=>Ife,modeLch:()=>sF,modeLch65:()=>Bfe,modeLchuv:()=>Nfe,modeLrgb:()=>Vfe,modeLuv:()=>Ufe,modeOkhsl:()=>Hfe,modeOkhsv:()=>jfe,modeOklab:()=>$fe,modeOklch:()=>Xfe,modeP3:()=>Zfe,modeProphoto:()=>Kfe,modeRec2020:()=>Jfe,modeRgb:()=>jx,modeXyb:()=>rce,modeXyz50:()=>ice,modeXyz65:()=>oce,modeYiq:()=>uce,nearest:()=>Hbt,okhsl:()=>I_t,okhsv:()=>R_t,oklab:()=>B_t,oklch:()=>q_t,p3:()=>O_t,parse:()=>rfe,parseHex:()=>Kue,parseHsl:()=>Tfe,parseHslLegacy:()=>Afe,parseHwb:()=>Efe,parseLab:()=>zfe,parseLch:()=>Rfe,parseNamed:()=>Zue,parseOklab:()=>Wfe,parseOklch:()=>Yfe,parseRgb:()=>ife,parseRgbLegacy:()=>Jue,parseTransparent:()=>nfe,prophoto:()=>N_t,random:()=>Mbt,rec2020:()=>V_t,removeParser:()=>Ngt,rgb:()=>U_t,round:()=>fce,samples:()=>Obt,serializeHex:()=>TU,serializeHex8:()=>cce,serializeHsl:()=>dce,serializeRgb:()=>hce,toGamut:()=>Ubt,trilerp:()=>Kgt,unlerp:()=>Zgt,useMode:()=>uf,useParser:()=>efe,wcagContrast:()=>m_t,wcagLuminance:()=>tU,xyb:()=>G_t,xyz50:()=>H_t,xyz65:()=>j_t,yiq:()=>W_t});kce.exports=Sgt($ue);var Egt=(e,t)=>{if(typeof e=="number"){if(t===3)return{mode:"rgb",r:(e>>8&15|e>>4&240)/255,g:(e>>4&15|e&240)/255,b:(e&15|e<<4&240)/255};if(t===4)return{mode:"rgb",r:(e>>12&15|e>>8&240)/255,g:(e>>8&15|e>>4&240)/255,b:(e>>4&15|e&240)/255,alpha:(e&15|e<<4&240)/255};if(t===6)return{mode:"rgb",r:(e>>16&255)/255,g:(e>>8&255)/255,b:(e&255)/255};if(t===8)return{mode:"rgb",r:(e>>24&255)/255,g:(e>>16&255)/255,b:(e>>8&255)/255,alpha:(e&255)/255}}},Yue=Egt,kgt={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},Xue=kgt,Cgt=e=>Yue(Xue[e.toLowerCase()],6),Zue=Cgt,Dgt=/^#?([0-9a-f]{8}|[0-9a-f]{6}|[0-9a-f]{4}|[0-9a-f]{3})$/i,Fgt=e=>{let t;return(t=e.match(Dgt))?Yue(parseInt(t[1],16),t[1].length):void 0},Kue=Fgt,wd="([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)",tqr=`(?:${wd}|none)`,KT=`${wd}%`,rqr=`(?:${wd}%|none)`,iU=`(?:${wd}%|${wd})`,Lgt=`(?:${wd}%|${wd}|none)`,Pgt=`(?:${wd}(deg|grad|rad|turn)|${wd})`,iqr=`(?:${wd}(deg|grad|rad|turn)|${wd}|none)`,rw="\\s*,\\s*",nqr=new RegExp("^"+Lgt+"$"),zgt=new RegExp(`^rgba?\\(\\s*${wd}${rw}${wd}${rw}${wd}\\s*(?:,\\s*${iU}\\s*)?\\)$`),Igt=new RegExp(`^rgba?\\(\\s*${KT}${rw}${KT}${rw}${KT}\\s*(?:,\\s*${iU}\\s*)?\\)$`),Rgt=e=>{let t={mode:"rgb"},r;if(r=e.match(zgt))r[1]!==void 0&&(t.r=r[1]/255),r[2]!==void 0&&(t.g=r[2]/255),r[3]!==void 0&&(t.b=r[3]/255);else if(r=e.match(Igt))r[1]!==void 0&&(t.r=r[1]/100),r[2]!==void 0&&(t.g=r[2]/100),r[3]!==void 0&&(t.b=r[3]/100);else return;return r[4]!==void 0?t.alpha=Math.max(0,Math.min(1,r[4]/100)):r[5]!==void 0&&(t.alpha=Math.max(0,Math.min(1,+r[5]))),t},Jue=Rgt,Bgt=(e,t)=>e===void 0?void 0:typeof e!="object"?rfe(e):e.mode!==void 0?e:t?Ql(Zs({},e),{mode:t}):void 0,qv=Bgt,qgt=(e="rgb")=>t=>(t=qv(t,e))!==void 0?t.mode===e?t:R1[t.mode][e]?R1[t.mode][e](t):e==="rgb"?R1[t.mode].rgb(t):R1.rgb[e](R1[t.mode].rgb(t)):void 0,Lf=qgt,R1={},Que={},iw=[],nU={},Ogt=e=>e,uf=e=>(R1[e.mode]=Zs(Zs({},R1[e.mode]),e.toMode),Object.keys(e.fromMode||{}).forEach(t=>{R1[t]||(R1[t]={}),R1[t][e.mode]=e.fromMode[t]}),e.ranges||(e.ranges={}),e.difference||(e.difference={}),e.channels.forEach(t=>{if(e.ranges[t]===void 0&&(e.ranges[t]=[0,1]),!e.interpolate[t])throw new Error(`Missing interpolator for: ${t}`);typeof e.interpolate[t]=="function"&&(e.interpolate[t]={use:e.interpolate[t]}),e.interpolate[t].fixup||(e.interpolate[t].fixup=Ogt)}),Que[e.mode]=e,(e.parse||[]).forEach(t=>{efe(t,e.mode)}),Lf(e.mode)),B0=e=>Que[e],efe=(e,t)=>{if(typeof e=="string"){if(!t)throw new Error("'mode' required when 'parser' is a string");nU[e]=t}else typeof e=="function"&&iw.indexOf(e)<0&&iw.push(e)},Ngt=e=>{if(typeof e=="string")delete nU[e];else if(typeof e=="function"){let t=iw.indexOf(e);t>0&&iw.splice(t,1)}},zV=/[^\x00-\x7F]|[a-zA-Z_]/,Vgt=/[^\x00-\x7F]|[-\w]/,Jo={Function:"function",Ident:"ident",Number:"number",Percentage:"percentage",ParenClose:")",None:"none",Hue:"hue",Alpha:"alpha"},Ul=0;function OD(e){let t=e[Ul],r=e[Ul+1];return t==="-"||t==="+"?/\d/.test(r)||r==="."&&/\d/.test(e[Ul+2]):t==="."?/\d/.test(r):/\d/.test(t)}function IV(e){if(Ul>=e.length)return!1;let t=e[Ul];if(zV.test(t))return!0;if(t==="-"){if(e.length-Ul<2)return!1;let r=e[Ul+1];return!!(r==="-"||zV.test(r))}return!1}var Ugt={deg:1,rad:180/Math.PI,grad:9/10,turn:360};function XT(e){let t="";if((e[Ul]==="-"||e[Ul]==="+")&&(t+=e[Ul++]),t+=ND(e),e[Ul]==="."&&/\d/.test(e[Ul+1])&&(t+=e[Ul++]+ND(e)),(e[Ul]==="e"||e[Ul]==="E")&&((e[Ul+1]==="-"||e[Ul+1]==="+")&&/\d/.test(e[Ul+2])?t+=e[Ul++]+e[Ul++]+ND(e):/\d/.test(e[Ul+1])&&(t+=e[Ul++]+ND(e))),IV(e)){let r=GD(e);return r==="deg"||r==="rad"||r==="turn"||r==="grad"?{type:Jo.Hue,value:t*Ugt[r]}:void 0}return e[Ul]==="%"?(Ul++,{type:Jo.Percentage,value:+t}):{type:Jo.Number,value:+t}}function ND(e){let t="";for(;/\d/.test(e[Ul]);)t+=e[Ul++];return t}function GD(e){let t="";for(;Ul24?(isFinite(G)&&(clearTimeout(Vr),Vr=setTimeout(ei,G)),Br=0):(Br=1,gi(ei))}e.timer.flush=function(){Gi(),un()};function Gi(){for(var R=Date.now(),G=ur;G;)R>=G.t&&G.c(R-G.t)&&(G.c=null),G=G.n;return R}function un(){for(var R,G=ur,ee=1/0;G;)G.c?(G.t=0;--qe)It.push(ve[ht[Lt[qe]][2]]);for(qe=+Qt;qe1&&_t(R[ee[he-2]],R[ee[he-1]],R[ve])<=0;)--he;ee[he++]=ve}return ee.slice(0,he)}function ii(R,G){return R[0]-G[0]||R[1]-G[1]}e.geom.polygon=function(R){return q(R,Pr),R};var Pr=e.geom.polygon.prototype=[];Pr.area=function(){for(var R=-1,G=this.length,ee,he=this[G-1],ve=0;++RZe)qe=qe.L;else if(je=G-Ai(qe,ee),je>Ze){if(!qe.R){he=qe;break}qe=qe.R}else{be>-Ze?(he=qe.P,ve=qe):je>-Ze?(he=qe,ve=qe.N):he=ve=qe;break}var Je=ca(R);if(en.insert(he,Je),!(!he&&!ve)){if(he===ve){Fn(he),ve=ca(he.site),en.insert(Je,ve),Je.edge=ve.edge=Ui(he.site,Je.site),pi(he),pi(ve);return}if(!ve){Je.edge=Ui(he.site,Je.site);return}Fn(he),Fn(ve);var ht=he.site,pt=ht.x,Lt=ht.y,kt=R.x-pt,Qt=R.y-Lt,Sr=ve.site,It=Sr.x-pt,Yt=Sr.y-Lt,sr=2*(kt*Yt-Qt*It),Ar=kt*kt+Qt*Qt,br=It*It+Yt*Yt,Xt={x:(Yt*Ar-Qt*br)/sr+pt,y:(kt*br-It*Ar)/sr+Lt};Na(ve.edge,ht,Sr,Xt),Je.edge=Ui(ht,R,null,Xt),ve.edge=Ui(R,Sr,null,Xt),pi(he),pi(ve)}}function rn(R,G){var ee=R.site,he=ee.x,ve=ee.y,be=ve-G;if(!be)return he;var je=R.P;if(!je)return-1/0;ee=je.site;var qe=ee.x,Je=ee.y,ht=Je-G;if(!ht)return qe;var pt=qe-he,Lt=1/be-1/ht,kt=pt/ht;return Lt?(-kt+Math.sqrt(kt*kt-2*Lt*(pt*pt/(-2*ht)-Je+ht/2+ve-be/2)))/Lt+he:(he+qe)/2}function Ai(R,G){var ee=R.N;if(ee)return rn(ee,G);var he=R.site;return he.y===G?he.x:1/0}function nn(R){this.site=R,this.edges=[]}nn.prototype.prepare=function(){for(var R=this.edges,G=R.length,ee;G--;)ee=R[G].edge,(!ee.b||!ee.a)&&R.splice(G,1);return R.sort(ea),R.length};function Ti(R){for(var G=R[0][0],ee=R[1][0],he=R[0][1],ve=R[1][1],be,je,qe,Je,ht=$i,pt=ht.length,Lt,kt,Qt,Sr,It,Yt;pt--;)if(Lt=ht[pt],!(!Lt||!Lt.prepare()))for(Qt=Lt.edges,Sr=Qt.length,kt=0;ktZe||m(Je-je)>Ze)&&(Qt.splice(kt,0,new on(pa(Lt.site,Yt,m(qe-G)Ze?{x:G,y:m(be-G)Ze?{x:m(je-ve)Ze?{x:ee,y:m(be-ee)Ze?{x:m(je-he)=-Le)){var kt=Je*Je+ht*ht,Qt=pt*pt+Yt*Yt,Sr=(Yt*kt-ht*Qt)/Lt,It=(Je*Qt-pt*kt)/Lt,Yt=It+qe,sr=aa.pop()||new qn;sr.arc=R,sr.site=ve,sr.x=Sr+je,sr.y=Yt+Math.sqrt(Sr*Sr+It*It),sr.cy=Yt,R.circle=sr;for(var Ar=null,br=fi._;br;)if(sr.y0)){if(It/=Qt,Qt<0){if(It0){if(It>kt)return;It>Lt&&(Lt=It)}if(It=ee-qe,!(!Qt&&It<0)){if(It/=Qt,Qt<0){if(It>kt)return;It>Lt&&(Lt=It)}else if(Qt>0){if(It0)){if(It/=Sr,Sr<0){if(It0){if(It>kt)return;It>Lt&&(Lt=It)}if(It=he-Je,!(!Sr&&It<0)){if(It/=Sr,Sr<0){if(It>kt)return;It>Lt&&(Lt=It)}else if(Sr>0){if(It0&&(ve.a={x:qe+Lt*Qt,y:Je+Lt*Sr}),kt<1&&(ve.b={x:qe+kt*Qt,y:Je+kt*Sr}),ve}}}}}}function pr(R){for(var G=$n,ee=Pa(R[0][0],R[0][1],R[1][0],R[1][1]),he=G.length,ve;he--;)ve=G[he],(!oi(ve,R)||!ee(ve)||m(ve.a.x-ve.b.x)=be)return;if(pt>kt){if(!he)he={x:Sr,y:je};else if(he.y>=qe)return;ee={x:Sr,y:qe}}else{if(!he)he={x:Sr,y:qe};else if(he.y1)if(pt>kt){if(!he)he={x:(je-sr)/Yt,y:je};else if(he.y>=qe)return;ee={x:(qe-sr)/Yt,y:qe}}else{if(!he)he={x:(qe-sr)/Yt,y:qe};else if(he.y=be)return;ee={x:be,y:Yt*be+sr}}else{if(!he)he={x:be,y:Yt*be+sr};else if(he.x=pt&&sr.x<=kt&&sr.y>=Lt&&sr.y<=Qt?[[pt,Qt],[kt,Qt],[kt,Lt],[pt,Lt]]:[];Ar.point=Je[It]}),ht}function qe(Je){return Je.map(function(ht,pt){return{x:Math.round(he(ht,pt)/Ze)*Ze,y:Math.round(ve(ht,pt)/Ze)*Ze,i:pt}})}return je.links=function(Je){return ja(qe(Je)).edges.filter(function(ht){return ht.l&&ht.r}).map(function(ht){return{source:Je[ht.l.i],target:Je[ht.r.i]}})},je.triangles=function(Je){var ht=[];return ja(qe(Je)).cells.forEach(function(pt,Lt){for(var kt=pt.site,Qt=pt.edges.sort(ea),Sr=-1,It=Qt.length,Yt,sr,Ar=Qt[It-1].edge,br=Ar.l===kt?Ar.r:Ar.l;++Srbr&&(br=pt.x),pt.y>Xt&&(Xt=pt.y),Qt.push(pt.x),Sr.push(pt.y);else for(It=0;Itbr&&(br=_n),ha>Xt&&(Xt=ha),Qt.push(_n),Sr.push(ha)}var Xa=br-sr,yo=Xt-Ar;Xa>yo?Xt=Ar+Xa:br=sr+yo;function Wo(rs,Us,jl,qu,Ql,po,el,nl){if(!(isNaN(jl)||isNaN(qu)))if(rs.leaf){var Vl=rs.x,Cu=rs.y;if(Vl!=null)if(m(Vl-jl)+m(Cu-qu)<.01)Zo(rs,Us,jl,qu,Ql,po,el,nl);else{var tf=rs.point;rs.x=rs.y=rs.point=null,Zo(rs,tf,Vl,Cu,Ql,po,el,nl),Zo(rs,Us,jl,qu,Ql,po,el,nl)}else rs.x=jl,rs.y=qu,rs.point=Us}else Zo(rs,Us,jl,qu,Ql,po,el,nl)}function Zo(rs,Us,jl,qu,Ql,po,el,nl){var Vl=(Ql+el)*.5,Cu=(po+nl)*.5,tf=jl>=Vl,Tf=qu>=Cu,sc=Tf<<1|tf;rs.leaf=!1,rs=rs.nodes[sc]||(rs.nodes[sc]=zr()),tf?Ql=Vl:el=Vl,Tf?po=Cu:nl=Cu,Wo(rs,Us,jl,qu,Ql,po,el,nl)}var Qs=zr();if(Qs.add=function(rs){Wo(Qs,rs,+Lt(rs,++It),+kt(rs,It),sr,Ar,br,Xt)},Qs.visit=function(rs){ni(rs,Qs,sr,Ar,br,Xt)},Qs.find=function(rs){return bn(Qs,rs[0],rs[1],sr,Ar,br,Xt)},It=-1,G==null){for(;++Itbe||kt>je||Qt=_n,yo=ee>=ha,Wo=yo<<1|Xa,Zo=Wo+4;Woee&&(be=G.slice(ee,be),qe[je]?qe[je]+=be:qe[++je]=be),(he=he[0])===(ve=ve[0])?qe[je]?qe[je]+=ve:qe[++je]=ve:(qe[++je]=null,Je.push({i:je,x:mr(he,ve)})),ee=jr.lastIndex;return ee=0&&!(he=e.interpolators[ee](R,G)););return he}e.interpolators=[function(R,G){var ee=typeof G;return(ee==="string"?$e.has(G.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(G)?Bi:Mi:G instanceof Ft?Bi:Array.isArray(G)?an:ee==="object"&&isNaN(G)?vi:mr)(R,G)}],e.interpolateArray=an;function an(R,G){var ee=[],he=[],ve=R.length,be=G.length,je=Math.min(R.length,G.length),qe;for(qe=0;qe=0?R.slice(0,G):R,he=G>=0?R.slice(G+1):"in";return ee=qi.get(ee)||ta,he=On.get(he)||F,Nn(he(ee.apply(null,t.call(arguments,1))))};function Nn(R){return function(G){return G<=0?0:G>=1?1:R(G)}}function ia(R){return function(G){return 1-R(1-G)}}function Qr(R){return function(G){return .5*(G<.5?R(2*G):2-R(2-2*G))}}function Di(R){return R*R}function fn(R){return R*R*R}function Dn(R){if(R<=0)return 0;if(R>=1)return 1;var G=R*R,ee=G*R;return 4*(R<.5?ee:3*(R-G)+ee-.75)}function Vn(R){return function(G){return Math.pow(G,R)}}function mn(R){return 1-Math.cos(R*Se)}function qr(R){return Math.pow(2,10*(R-1))}function Pi(R){return 1-Math.sqrt(1-R*R)}function Ua(R,G){var ee;return arguments.length<2&&(G=.45),arguments.length?ee=G/Ue*Math.asin(1/R):(R=1,ee=G/4),function(he){return 1+R*Math.pow(2,-10*he)*Math.sin((he-ee)*Ue/G)}}function yi(R){return R||(R=1.70158),function(G){return G*G*((R+1)*G-R)}}function Ma(R){return R<1/2.75?7.5625*R*R:R<2/2.75?7.5625*(R-=1.5/2.75)*R+.75:R<2.5/2.75?7.5625*(R-=2.25/2.75)*R+.9375:7.5625*(R-=2.625/2.75)*R+.984375}e.interpolateHcl=Ba;function Ba(R,G){R=e.hcl(R),G=e.hcl(G);var ee=R.h,he=R.c,ve=R.l,be=G.h-ee,je=G.c-he,qe=G.l-ve;return isNaN(je)&&(je=0,he=isNaN(he)?G.c:he),isNaN(be)?(be=0,ee=isNaN(ee)?G.h:ee):be>180?be-=360:be<-180&&(be+=360),function(Je){return Yr(ee+be*Je,he+je*Je,ve+qe*Je)+""}}e.interpolateHsl=Bn;function Bn(R,G){R=e.hsl(R),G=e.hsl(G);var ee=R.h,he=R.s,ve=R.l,be=G.h-ee,je=G.s-he,qe=G.l-ve;return isNaN(je)&&(je=0,he=isNaN(he)?G.s:he),isNaN(be)?(be=0,ee=isNaN(ee)?G.h:ee):be>180?be-=360:be<-180&&(be+=360),function(Je){return xr(ee+be*Je,he+je*Je,ve+qe*Je)+""}}e.interpolateLab=ji;function ji(R,G){R=e.lab(R),G=e.lab(G);var ee=R.l,he=R.a,ve=R.b,be=G.l-ee,je=G.a-he,qe=G.b-ve;return function(Je){return Fi(ee+be*Je,he+je*Je,ve+qe*Je)+""}}e.interpolateRound=gn;function gn(R,G){return G-=R,function(ee){return Math.round(R+G*ee)}}e.transform=function(R){var G=i.createElementNS(e.ns.prefix.svg,"g");return(e.transform=function(ee){if(ee!=null){G.setAttribute("transform",ee);var he=G.transform.baseVal.consolidate()}return new jn(he?he.matrix:Ln)})(R)};function jn(R){var G=[R.a,R.b],ee=[R.c,R.d],he=Ii(G),ve=Un(G,ee),be=Ii(gr(ee,G,-ve))||0;G[0]*ee[1]180?G+=360:G-R>180&&(R+=360),he.push({i:ee.push(xn(ee)+"rotate(",null,")")-2,x:mr(R,G)})):G&&ee.push(xn(ee)+"rotate("+G+")")}function Kr(R,G,ee,he){R!==G?he.push({i:ee.push(xn(ee)+"skewX(",null,")")-2,x:mr(R,G)}):G&&ee.push(xn(ee)+"skewX("+G+")")}function Gn(R,G,ee,he){if(R[0]!==G[0]||R[1]!==G[1]){var ve=ee.push(xn(ee)+"scale(",null,",",null,")");he.push({i:ve-4,x:mr(R[0],G[0])},{i:ve-2,x:mr(R[1],G[1])})}else(G[0]!==1||G[1]!==1)&&ee.push(xn(ee)+"scale("+G+")")}function to(R,G){var ee=[],he=[];return R=e.transform(R),G=e.transform(G),da(R.translate,G.translate,ee,he),Si(R.rotate,G.rotate,ee,he),Kr(R.skew,G.skew,ee,he),Gn(R.scale,G.scale,ee,he),R=G=null,function(ve){for(var be=-1,je=he.length,qe;++be0?be=Xt:(ee.c=null,ee.t=NaN,ee=null,G.end({type:"end",alpha:be=0})):Xt>0&&(G.start({type:"start",alpha:be=Xt}),ee=ui(R.tick)),R):be},R.start=function(){var Xt,_n=Qt.length,ha=Sr.length,Xa=he[0],yo=he[1],Wo,Zo;for(Xt=0;Xt<_n;++Xt)(Zo=Qt[Xt]).index=Xt,Zo.weight=0;for(Xt=0;Xt=0;)be.push(pt=ht[Je]),pt.parent=qe,pt.depth=qe.depth+1;ee&&(qe.value=0),qe.children=ht}else ee&&(qe.value=+ee.call(he,qe,qe.depth)||0),delete qe.children;return An(ve,function(Lt){var kt,Qt;R&&(kt=Lt.children)&&kt.sort(R),ee&&(Qt=Lt.parent)&&(Qt.value+=Lt.value)}),je}return he.sort=function(ve){return arguments.length?(R=ve,he):R},he.children=function(ve){return arguments.length?(G=ve,he):G},he.value=function(ve){return arguments.length?(ee=ve,he):ee},he.revalue=function(ve){return ee&&(Wr(ve,function(be){be.children&&(be.value=0)}),An(ve,function(be){var je;be.children||(be.value=+ee.call(he,be,be.depth)||0),(je=be.parent)&&(je.value+=be.value)})),ve},he};function ki(R,G){return e.rebind(R,G,"sort","children","value"),R.nodes=R,R.links=za,R}function Wr(R,G){for(var ee=[R];(R=ee.pop())!=null;)if(G(R),(ve=R.children)&&(he=ve.length))for(var he,ve;--he>=0;)ee.push(ve[he])}function An(R,G){for(var ee=[R],he=[];(R=ee.pop())!=null;)if(he.push(R),(je=R.children)&&(be=je.length))for(var ve=-1,be,je;++veve&&(ve=qe),he.push(qe)}for(je=0;jehe&&(ee=G,he=ve);return ee}function Ia(R){return R.reduce(Yi,0)}function Yi(R,G){return R+G[1]}e.layout.histogram=function(){var R=!0,G=Number,ee=la,he=In;function ve(be,kt){for(var qe=[],Je=be.map(G,this),ht=ee.call(this,Je,kt),pt=he.call(this,ht,Je,kt),Lt,kt=-1,Qt=Je.length,Sr=pt.length-1,It=R?1:1/Qt,Yt;++kt0)for(kt=-1;++kt=ht[0]&&Yt<=ht[1]&&(Lt=qe[e.bisect(pt,Yt,1,Sr)-1],Lt.y+=It,Lt.push(be[kt]));return qe}return ve.value=function(be){return arguments.length?(G=be,ve):G},ve.range=function(be){return arguments.length?(ee=Qe(be),ve):ee},ve.bins=function(be){return arguments.length?(he=typeof be=="number"?function(je){return Oi(je,be)}:Qe(be),ve):he},ve.frequency=function(be){return arguments.length?(R=!!be,ve):R},ve};function In(R,G){return Oi(R,Math.ceil(Math.log(G.length)/Math.LN2+1))}function Oi(R,G){for(var ee=-1,he=+R[0],ve=(R[1]-he)/G,be=[];++ee<=G;)be[ee]=ve*ee+he;return be}function la(R){return[e.min(R),e.max(R)]}e.layout.pack=function(){var R=e.layout.hierarchy().sort(ga),G=0,ee=[1,1],he;function ve(be,je){var qe=R.call(this,be,je),Je=qe[0],ht=ee[0],pt=ee[1],Lt=he==null?Math.sqrt:typeof he=="function"?he:function(){return he};if(Je.x=Je.y=0,An(Je,function(Qt){Qt.r=+Lt(Qt.value)}),An(Je,Mn),G){var kt=G*(he?1:Math.max(2*Je.r/ht,2*Je.r/pt))/2;An(Je,function(Qt){Qt.r+=kt}),An(Je,Mn),An(Je,function(Qt){Qt.r-=kt})}return Co(Je,ht/2,pt/2,he?1:1/Math.max(2*Je.r/ht,2*Je.r/pt)),qe}return ve.size=function(be){return arguments.length?(ee=be,ve):ee},ve.radius=function(be){return arguments.length?(he=be==null||typeof be=="function"?be:+be,ve):he},ve.padding=function(be){return arguments.length?(G=+be,ve):G},ki(ve,R)};function ga(R,G){return R.value-G.value}function go(R,G){var ee=R._pack_next;R._pack_next=G,G._pack_prev=R,G._pack_next=ee,ee._pack_prev=G}function eo(R,G){R._pack_next=G,G._pack_prev=R}function Eo(R,G){var ee=G.x-R.x,he=G.y-R.y,ve=R.r+G.r;return .999*ve*ve>ee*ee+he*he}function Mn(R){if(!(G=R.children)||!(kt=G.length))return;var G,ee=1/0,he=-1/0,ve=1/0,be=-1/0,je,qe,Je,ht,pt,Lt,kt;function Qt(Xt){ee=Math.min(Xt.x-Xt.r,ee),he=Math.max(Xt.x+Xt.r,he),ve=Math.min(Xt.y-Xt.r,ve),be=Math.max(Xt.y+Xt.r,be)}if(G.forEach(To),je=G[0],je.x=-je.r,je.y=0,Qt(je),kt>1&&(qe=G[1],qe.x=qe.r,qe.y=0,Qt(qe),kt>2))for(Je=G[2],Ri(je,qe,Je),Qt(Je),go(je,Je),je._pack_prev=Je,go(Je,qe),qe=je._pack_next,ht=3;htYt.x&&(Yt=_n),_n.depth>sr.depth&&(sr=_n)});var Ar=G(It,Yt)/2-It.x,br=ee[0]/(Yt.x+G(Yt,It)/2+Ar),Xt=ee[1]/(sr.depth||1);Wr(Qt,function(_n){_n.x=(_n.x+Ar)*br,_n.y=_n.depth*Xt})}return kt}function be(pt){for(var Lt={A:null,children:[pt]},kt=[Lt],Qt;(Qt=kt.pop())!=null;)for(var Sr=Qt.children,It,Yt=0,sr=Sr.length;Yt0&&(Wa(Fe(It,pt,kt),pt,_n),sr+=_n,Ar+=_n),br+=It.m,sr+=Qt.m,Xt+=Yt.m,Ar+=Sr.m;It&&!Ha(Sr)&&(Sr.t=It,Sr.m+=br-Ar),Qt&&!Zn(Yt)&&(Yt.t=Qt,Yt.m+=sr-Xt,kt=pt)}return kt}function ht(pt){pt.x*=ee[0],pt.y=pt.depth*ee[1]}return ve.separation=function(pt){return arguments.length?(G=pt,ve):G},ve.size=function(pt){return arguments.length?(he=(ee=pt)==null?ht:null,ve):he?null:ee},ve.nodeSize=function(pt){return arguments.length?(he=(ee=pt)==null?null:ht,ve):he?ee:null},ki(ve,R)};function qa(R,G){return R.parent==G.parent?1:2}function Zn(R){var G=R.children;return G.length?G[0]:R.t}function Ha(R){var G=R.children,ee;return(ee=G.length)?G[ee-1]:R.t}function Wa(R,G,ee){var he=ee/(G.i-R.i);G.c-=he,G.s+=ee,R.c+=he,G.z+=ee,G.m+=ee}function $a(R){for(var G=0,ee=0,he=R.children,ve=he.length,be;--ve>=0;)be=he[ve],be.z+=G,be.m+=G,G+=be.s+(ee+=be.c)}function Fe(R,G,ee){return R.a.parent===G.parent?R.a:ee}e.layout.cluster=function(){var R=e.layout.hierarchy().sort(null).value(null),G=qa,ee=[1,1],he=!1;function ve(be,je){var qe=R.call(this,be,je),Je=qe[0],ht,pt=0;An(Je,function(It){var Yt=It.children;Yt&&Yt.length?(It.x=lt(Yt),It.y=Ve(Yt)):(It.x=ht?pt+=G(It,ht):0,It.y=0,ht=It)});var Lt=it(Je),kt=mt(Je),Qt=Lt.x-G(Lt,kt)/2,Sr=kt.x+G(kt,Lt)/2;return An(Je,he?function(It){It.x=(It.x-Je.x)*ee[0],It.y=(Je.y-It.y)*ee[1]}:function(It){It.x=(It.x-Qt)/(Sr-Qt)*ee[0],It.y=(1-(Je.y?It.y/Je.y:1))*ee[1]}),qe}return ve.separation=function(be){return arguments.length?(G=be,ve):G},ve.size=function(be){return arguments.length?(he=(ee=be)==null,ve):he?null:ee},ve.nodeSize=function(be){return arguments.length?(he=(ee=be)!=null,ve):he?ee:null},ki(ve,R)};function Ve(R){return 1+e.max(R,function(G){return G.y})}function lt(R){return R.reduce(function(G,ee){return G+ee.x},0)/R.length}function it(R){var G=R.children;return G&&G.length?it(G[0]):R}function mt(R){var G=R.children,ee;return G&&(ee=G.length)?mt(G[ee-1]):R}e.layout.treemap=function(){var R=e.layout.hierarchy(),G=Math.round,ee=[1,1],he=null,ve=Rt,be=!1,je,qe="squarify",Je=.5*(1+Math.sqrt(5));function ht(It,Yt){for(var sr=-1,Ar=It.length,br,Xt;++sr0;)Ar.push(Xt=br[yo-1]),Ar.area+=Xt.area,qe!=="squarify"||(ha=kt(Ar,Xa))<=_n?(br.pop(),_n=ha):(Ar.area-=Ar.pop().area,Qt(Ar,Xa,sr,!1),Xa=Math.min(sr.dx,sr.dy),Ar.length=Ar.area=0,_n=1/0);Ar.length&&(Qt(Ar,Xa,sr,!0),Ar.length=Ar.area=0),Yt.forEach(pt)}}function Lt(It){var Yt=It.children;if(Yt&&Yt.length){var sr=ve(It),Ar=Yt.slice(),br,Xt=[];for(ht(Ar,sr.dx*sr.dy/It.value),Xt.area=0;br=Ar.pop();)Xt.push(br),Xt.area+=br.area,br.z!=null&&(Qt(Xt,br.z?sr.dx:sr.dy,sr,!Ar.length),Xt.length=Xt.area=0);Yt.forEach(Lt)}}function kt(It,Yt){for(var sr=It.area,Ar,br=0,Xt=1/0,_n=-1,ha=It.length;++_nbr&&(br=Ar));return sr*=sr,Yt*=Yt,sr?Math.max(Yt*br*Je/sr,sr/(Yt*Xt*Je)):1/0}function Qt(It,Yt,sr,Ar){var br=-1,Xt=It.length,_n=sr.x,ha=sr.y,Xa=Yt?G(It.area/Yt):0,yo;if(Yt==sr.dx){for((Ar||Xa>sr.dy)&&(Xa=sr.dy);++brsr.dx)&&(Xa=sr.dx);++br1);return R+G*he*Math.sqrt(-2*Math.log(be)/be)}},logNormal:function(){var R=e.random.normal.apply(e,arguments);return function(){return Math.exp(R())}},bates:function(R){var G=e.random.irwinHall(R);return function(){return G()/R}},irwinHall:function(R){return function(){for(var G=0,ee=0;ee2?Dr:Ir,ht=he?ro:Jn;return ve=Je(R,G,ht,ee),be=Je(G,R,ht,Xn),qe}function qe(Je){return ve(Je)}return qe.invert=function(Je){return be(Je)},qe.domain=function(Je){return arguments.length?(R=Je.map(Number),je()):R},qe.range=function(Je){return arguments.length?(G=Je,je()):G},qe.rangeRound=function(Je){return qe.range(Je).interpolate(gn)},qe.clamp=function(Je){return arguments.length?(he=Je,je()):he},qe.interpolate=function(Je){return arguments.length?(ee=Je,je()):ee},qe.ticks=function(Je){return mi(R,Je)},qe.tickFormat=function(Je,ht){return d3_scale_linearTickFormat(R,Je,ht)},qe.nice=function(Je){return ci(R,Je),je()},qe.copy=function(){return Ur(R,G,ee,he)},je()}function ai(R,G){return e.rebind(R,G,"range","rangeRound","interpolate","clamp")}function ci(R,G){return $t(R,Bt(li(R,G)[2])),$t(R,Bt(li(R,G)[2])),R}function li(R,G){G==null&&(G=10);var ee=Nt(R),he=ee[1]-ee[0],ve=Math.pow(10,Math.floor(Math.log(he/G)/Math.LN10)),be=G/he*ve;return be<=.15?ve*=10:be<=.35?ve*=5:be<=.75&&(ve*=2),ee[0]=Math.ceil(ee[0]/ve)*ve,ee[1]=Math.floor(ee[1]/ve)*ve+ve*.5,ee[2]=ve,ee}function mi(R,G){return e.range.apply(e,li(R,G))}var xi={s:1,g:1,p:1,r:1,e:1};function Ni(R){return-Math.floor(Math.log(R)/Math.LN10+.01)}function ua(R,G){var ee=Ni(G[2]);return R in xi?Math.abs(ee-Ni(Math.max(m(G[0]),m(G[1]))))+ +(R!=="e"):ee-(R==="%")*2}e.scale.log=function(){return xa(e.scale.linear().domain([0,1]),10,!0,[1,10])};function xa(R,G,ee,he){function ve(qe){return(ee?Math.log(qe<0?0:qe):-Math.log(qe>0?0:-qe))/Math.log(G)}function be(qe){return ee?Math.pow(G,qe):-Math.pow(G,-qe)}function je(qe){return R(ve(qe))}return je.invert=function(qe){return be(R.invert(qe))},je.domain=function(qe){return arguments.length?(ee=qe[0]>=0,R.domain((he=qe.map(Number)).map(ve)),je):he},je.base=function(qe){return arguments.length?(G=+qe,R.domain(he.map(ve)),je):G},je.nice=function(){var qe=$t(he.map(ve),ee?Math:ao);return R.domain(qe),he=qe.map(be),je},je.ticks=function(){var qe=Nt(he),Je=[],ht=qe[0],pt=qe[1],Lt=Math.floor(ve(ht)),kt=Math.ceil(ve(pt)),Qt=G%1?2:G;if(isFinite(kt-Lt)){if(ee){for(;Lt0;Sr--)Je.push(be(Lt)*Sr);for(Lt=0;Je[Lt]pt;kt--);Je=Je.slice(Lt,kt)}return Je},je.copy=function(){return xa(R.copy(),G,ee,he)},ai(je,R)}var ao={floor:function(R){return-Math.ceil(-R)},ceil:function(R){return-Math.floor(-R)}};e.scale.pow=function(){return ho(e.scale.linear(),1,[0,1])};function ho(R,G,ee){var he=Fo(G),ve=Fo(1/G);function be(je){return R(he(je))}return be.invert=function(je){return ve(R.invert(je))},be.domain=function(je){return arguments.length?(R.domain((ee=je.map(Number)).map(he)),be):ee},be.ticks=function(je){return mi(ee,je)},be.tickFormat=function(je,qe){return d3_scale_linearTickFormat(ee,je,qe)},be.nice=function(je){return be.domain(ci(ee,je))},be.exponent=function(je){return arguments.length?(he=Fo(G=je),ve=Fo(1/G),R.domain(ee.map(he)),be):G},be.copy=function(){return ho(R.copy(),G,ee)},ai(be,R)}function Fo(R){return function(G){return G<0?-Math.pow(-G,R):Math.pow(G,R)}}e.scale.sqrt=function(){return e.scale.pow().exponent(.5)},e.scale.ordinal=function(){return ls([],{t:"range",a:[[]]})};function ls(R,G){var ee,he,ve;function be(qe){return he[((ee.get(qe)||(G.t==="range"?ee.set(qe,R.push(qe)):NaN))-1)%he.length]}function je(qe,Je){return e.range(R.length).map(function(ht){return qe+Je*ht})}return be.domain=function(qe){if(!arguments.length)return R;R=[],ee=new b;for(var Je=-1,ht=qe.length,pt;++Je0?ee[be-1]:R[0],bekt?0:1;if(pt=Pe)return Je(pt,Sr)+(ht?Je(ht,1-Sr):"")+"Z";var It,Yt,sr,Ar,br=0,Xt=0,_n,ha,Xa,yo,Wo,Zo,Qs,rs,Us=[];if((Ar=(+je.apply(this,arguments)||0)/2)&&(sr=he===bo?Math.sqrt(ht*ht+pt*pt):+he.apply(this,arguments),Sr||(Xt*=-1),pt&&(Xt=Gt(sr/pt*Math.sin(Ar))),ht&&(br=Gt(sr/ht*Math.sin(Ar)))),pt){_n=pt*Math.cos(Lt+Xt),ha=pt*Math.sin(Lt+Xt),Xa=pt*Math.cos(kt-Xt),yo=pt*Math.sin(kt-Xt);var jl=Math.abs(kt-Lt-2*Xt)<=De?0:1;if(Xt&&Qo(_n,ha,Xa,yo)===Sr^jl){var qu=(Lt+kt)/2;_n=pt*Math.cos(qu),ha=pt*Math.sin(qu),Xa=yo=null}}else _n=ha=0;if(ht){Wo=ht*Math.cos(kt-br),Zo=ht*Math.sin(kt-br),Qs=ht*Math.cos(Lt+br),rs=ht*Math.sin(Lt+br);var Ql=Math.abs(Lt-kt+2*br)<=De?0:1;if(br&&Qo(Wo,Zo,Qs,rs)===1-Sr^Ql){var po=(Lt+kt)/2;Wo=ht*Math.cos(po),Zo=ht*Math.sin(po),Qs=rs=null}}else Wo=Zo=0;if(Qt>Ze&&(It=Math.min(Math.abs(pt-ht)/2,+ee.apply(this,arguments)))>.001){Yt=ht0?0:1}function Ks(R,G,ee,he,ve){var be=R[0]-G[0],je=R[1]-G[1],qe=(ve?he:-he)/Math.sqrt(be*be+je*je),Je=qe*je,ht=-qe*be,pt=R[0]+Je,Lt=R[1]+ht,kt=G[0]+Je,Qt=G[1]+ht,Sr=(pt+kt)/2,It=(Lt+Qt)/2,Yt=kt-pt,sr=Qt-Lt,Ar=Yt*Yt+sr*sr,br=ee-he,Xt=pt*Qt-kt*Lt,_n=(sr<0?-1:1)*Math.sqrt(Math.max(0,br*br*Ar-Xt*Xt)),ha=(Xt*sr-Yt*_n)/Ar,Xa=(-Xt*Yt-sr*_n)/Ar,yo=(Xt*sr+Yt*_n)/Ar,Wo=(-Xt*Yt+sr*_n)/Ar,Zo=ha-Sr,Qs=Xa-It,rs=yo-Sr,Us=Wo-It;return Zo*Zo+Qs*Qs>rs*rs+Us*Us&&(ha=yo,Xa=Wo),[[ha-Je,Xa-ht],[ha*ee/br,Xa*ee/br]]}function Ws(){return!0}function Ds(R){var G=Tt,ee=wi,he=Ws,ve=as,be=ve.key,je=.7;function qe(Je){var ht=[],pt=[],Lt=-1,kt=Je.length,Qt,Sr=Qe(G),It=Qe(ee);function Yt(){ht.push("M",ve(R(pt),je))}for(;++Lt1?R.join("L"):R+"Z"}function Es(R){return R.join("L")+"Z"}function Mo(R){for(var G=0,ee=R.length,he=R[0],ve=[he[0],",",he[1]];++G1&&ve.push("H",he[0]),ve.join("")}function Go(R){for(var G=0,ee=R.length,he=R[0],ve=[he[0],",",he[1]];++G1){qe=G[1],be=R[Je],Je++,he+="C"+(ve[0]+je[0])+","+(ve[1]+je[1])+","+(be[0]-qe[0])+","+(be[1]-qe[1])+","+be[0]+","+be[1];for(var ht=2;ht9&&(be=ee*3/Math.sqrt(be),je[qe]=be*he,je[qe+1]=be*ve));for(qe=-1;++qe<=Je;)be=(R[Math.min(Je,qe+1)][0]-R[Math.max(0,qe-1)][0])/(6*(1+je[qe]*je[qe])),G.push([be||0,je[qe]*be||0]);return G}function ct(R){return R.length<3?as(R):R[0]+wl(R,He(R))}e.svg.line.radial=function(){var R=Ds(xt);return R.radius=R.x,delete R.x,R.angle=R.y,delete R.y,R};function xt(R){for(var G,ee=-1,he=R.length,ve,be;++eeDe)+",1 "+Lt}function ht(pt,Lt,kt,Qt){return"Q 0,0 "+Qt}return be.radius=function(pt){return arguments.length?(ee=Qe(pt),be):ee},be.source=function(pt){return arguments.length?(R=Qe(pt),be):R},be.target=function(pt){return arguments.length?(G=Qe(pt),be):G},be.startAngle=function(pt){return arguments.length?(he=Qe(pt),be):he},be.endAngle=function(pt){return arguments.length?(ve=Qe(pt),be):ve},be};function Jt(R){return R.radius}e.svg.diagonal=function(){var R=wt,G=Pt,ee=cr;function he(ve,be){var je=R.call(this,ve,be),qe=G.call(this,ve,be),Je=(je.y+qe.y)/2,ht=[je,{x:je.x,y:Je},{x:qe.x,y:Je},qe];return ht=ht.map(ee),"M"+ht[0]+"C"+ht[1]+" "+ht[2]+" "+ht[3]}return he.source=function(ve){return arguments.length?(R=Qe(ve),he):R},he.target=function(ve){return arguments.length?(G=Qe(ve),he):G},he.projection=function(ve){return arguments.length?(ee=ve,he):ee},he};function cr(R){return[R.x,R.y]}e.svg.diagonal.radial=function(){var R=e.svg.diagonal(),G=cr,ee=R.projection;return R.projection=function(he){return arguments.length?ee(Nr(G=he)):G},R};function Nr(R){return function(){var G=R.apply(this,arguments),ee=G[0],he=G[1]-Se;return[ee*Math.cos(he),ee*Math.sin(he)]}}e.svg.symbol=function(){var R=Rn,G=zi;function ee(he,ve){return(Xo.get(R.call(this,he,ve))||fo)(G.call(this,he,ve))}return ee.type=function(he){return arguments.length?(R=Qe(he),ee):R},ee.size=function(he){return arguments.length?(G=Qe(he),ee):G},ee};function zi(){return 64}function Rn(){return"circle"}function fo(R){var G=Math.sqrt(R/De);return"M0,"+G+"A"+G+","+G+" 0 1,1 0,"+-G+"A"+G+","+G+" 0 1,1 0,"+G+"Z"}var Xo=e.map({circle:fo,cross:function(R){var G=Math.sqrt(R/5)/2;return"M"+-3*G+","+-G+"H"+-G+"V"+-3*G+"H"+G+"V"+-G+"H"+3*G+"V"+G+"H"+G+"V"+3*G+"H"+-G+"V"+G+"H"+-3*G+"Z"},diamond:function(R){var G=Math.sqrt(R/(2*fs)),ee=G*fs;return"M0,"+-G+"L"+ee+",0 0,"+G+" "+-ee+",0Z"},square:function(R){var G=Math.sqrt(R)/2;return"M"+-G+","+-G+"L"+G+","+-G+" "+G+","+G+" "+-G+","+G+"Z"},"triangle-down":function(R){var G=Math.sqrt(R/Bo),ee=G*Bo/2;return"M0,"+ee+"L"+G+","+-ee+" "+-G+","+-ee+"Z"},"triangle-up":function(R){var G=Math.sqrt(R/Bo),ee=G*Bo/2;return"M0,"+-ee+"L"+G+","+ee+" "+-G+","+ee+"Z"}});e.svg.symbolTypes=Xo.keys();var Bo=Math.sqrt(3),fs=Math.tan(30*Ie);j.transition=function(R){for(var G=ul||++Nl,ee=_u(R),he=[],ve,be,je=cl||{time:Date.now(),ease:Dn,delay:0,duration:250},qe=-1,Je=this.length;++qe0;)Lt[--Ar].call(R,sr);if(Yt>=1)return je.event&&je.event.end.call(R,R.__data__,G),--be.count?delete be[he]:delete R[ee],1}je||(qe=ve.time,Je=ui(kt,0,qe),je=be[he]={tween:new b,time:qe,timer:Je,delay:ve.delay,duration:ve.duration,ease:ve.ease,index:G},ve=null,++be.count)}e.svg.axis=function(){var R=e.scale.linear(),G=ju,ee=6,he=6,ve=3,be=[10],je=null,qe;function Je(ht){ht.each(function(){var pt=e.select(this),Lt=this.__chart__||R,kt=this.__chart__=R.copy(),Qt=je==null?kt.ticks?kt.ticks.apply(kt,be):kt.domain():je,Sr=qe==null?kt.tickFormat?kt.tickFormat.apply(kt,be):F:qe,It=pt.selectAll(".tick").data(Qt,kt),Yt=It.enter().insert("g",".domain").attr("class","tick").style("opacity",Ze),sr=e.transition(It.exit()).style("opacity",Ze).remove(),Ar=e.transition(It.order()).style("opacity",1),br=Math.max(ee,0)+ve,Xt,_n=ar(kt),ha=pt.selectAll(".domain").data([0]),Xa=(ha.enter().append("path").attr("class","domain"),e.transition(ha));Yt.append("line"),Yt.append("text");var yo=Yt.select("line"),Wo=Ar.select("line"),Zo=It.select("text").text(Sr),Qs=Yt.select("text"),rs=Ar.select("text"),Us=G==="top"||G==="left"?-1:1,jl,qu,Ql,po;if(G==="bottom"||G==="top"?(Xt=ku,jl="x",Ql="y",qu="x2",po="y2",Zo.attr("dy",Us<0?"0em":".71em").style("text-anchor","middle"),Xa.attr("d","M"+_n[0]+","+Us*he+"V0H"+_n[1]+"V"+Us*he)):(Xt=Af,jl="y",Ql="x",qu="y2",po="x2",Zo.attr("dy",".32em").style("text-anchor",Us<0?"end":"start"),Xa.attr("d","M"+Us*he+","+_n[0]+"H0V"+_n[1]+"H"+Us*he)),yo.attr(po,Us*ee),Qs.attr(Ql,Us*br),Wo.attr(qu,0).attr(po,Us*ee),rs.attr(jl,0).attr(Ql,Us*br),kt.rangeBand){var el=kt,nl=el.rangeBand()/2;Lt=kt=function(Vl){return el(Vl)+nl}}else Lt.rangeBand?Lt=kt:sr.call(Xt,kt,Lt);Yt.call(Xt,Lt,kt),Ar.call(Xt,kt,kt)})}return Je.scale=function(ht){return arguments.length?(R=ht,Je):R},Je.orient=function(ht){return arguments.length?(G=ht in Au?ht+"":ju,Je):G},Je.ticks=function(){return arguments.length?(be=r(arguments),Je):be},Je.tickValues=function(ht){return arguments.length?(je=ht,Je):je},Je.tickFormat=function(ht){return arguments.length?(qe=ht,Je):qe},Je.tickSize=function(ht){var pt=arguments.length;return pt?(ee=+ht,he=+arguments[pt-1],Je):ee},Je.innerTickSize=function(ht){return arguments.length?(ee=+ht,Je):ee},Je.outerTickSize=function(ht){return arguments.length?(he=+ht,Je):he},Je.tickPadding=function(ht){return arguments.length?(ve=+ht,Je):ve},Je.tickSubdivide=function(){return arguments.length&&Je},Je};var ju="bottom",Au={top:1,right:1,bottom:1,left:1};function ku(R,G,ee){R.attr("transform",function(he){var ve=G(he);return"translate("+(isFinite(ve)?ve:ee(he))+",0)"})}function Af(R,G,ee){R.attr("transform",function(he){var ve=G(he);return"translate(0,"+(isFinite(ve)?ve:ee(he))+")"})}e.svg.brush=function(){var R=Z(pt,"brushstart","brush","brushend"),G=null,ee=null,he=[0,0],ve=[0,0],be,je,qe=!0,Je=!0,ht=ef[0];function pt(It){It.each(function(){var Yt=e.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",Sr).on("touchstart.brush",Sr),sr=Yt.selectAll(".background").data([0]);sr.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),Yt.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var Ar=Yt.selectAll(".resize").data(ht,F);Ar.exit().remove(),Ar.enter().append("g").attr("class",function(ha){return"resize "+ha}).style("cursor",function(ha){return mf[ha]}).append("rect").attr("x",function(ha){return/[ew]$/.test(ha)?-3:null}).attr("y",function(ha){return/^[ns]/.test(ha)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),Ar.style("display",pt.empty()?"none":null);var br=e.transition(Yt),Xt=e.transition(sr),_n;G&&(_n=ar(G),Xt.attr("x",_n[0]).attr("width",_n[1]-_n[0]),kt(br)),ee&&(_n=ar(ee),Xt.attr("y",_n[0]).attr("height",_n[1]-_n[0]),Qt(br)),Lt(br)})}pt.event=function(It){It.each(function(){var Yt=R.of(this,arguments),sr={x:he,y:ve,i:be,j:je},Ar=this.__chart__||sr;this.__chart__=sr,ul?e.select(this).transition().each("start.brush",function(){be=Ar.i,je=Ar.j,he=Ar.x,ve=Ar.y,Yt({type:"brushstart"})}).tween("brush:brush",function(){var br=an(he,sr.x),Xt=an(ve,sr.y);return be=je=null,function(_n){he=sr.x=br(_n),ve=sr.y=Xt(_n),Yt({type:"brush",mode:"resize"})}}).each("end.brush",function(){be=sr.i,je=sr.j,Yt({type:"brush",mode:"resize"}),Yt({type:"brushend"})}):(Yt({type:"brushstart"}),Yt({type:"brush",mode:"resize"}),Yt({type:"brushend"}))})};function Lt(It){It.selectAll(".resize").attr("transform",function(Yt){return"translate("+he[+/e$/.test(Yt)]+","+ve[+/^s/.test(Yt)]+")"})}function kt(It){It.select(".extent").attr("x",he[0]),It.selectAll(".extent,.n>rect,.s>rect").attr("width",he[1]-he[0])}function Qt(It){It.select(".extent").attr("y",ve[0]),It.selectAll(".extent,.e>rect,.w>rect").attr("height",ve[1]-ve[0])}function Sr(){var It=this,Yt=e.select(e.event.target),sr=R.of(It,arguments),Ar=e.select(It),br=Yt.datum(),Xt=!/^(n|s)$/.test(br)&&G,_n=!/^(e|w)$/.test(br)&&ee,ha=Yt.classed("extent"),Xa=at(It),yo,Wo=e.mouse(It),Zo,Qs=e.select(a(It)).on("keydown.brush",jl).on("keyup.brush",qu);if(e.event.changedTouches?Qs.on("touchmove.brush",Ql).on("touchend.brush",el):Qs.on("mousemove.brush",Ql).on("mouseup.brush",el),Ar.interrupt().selectAll("*").interrupt(),ha)Wo[0]=he[0]-Wo[0],Wo[1]=ve[0]-Wo[1];else if(br){var rs=+/w$/.test(br),Us=+/^n/.test(br);Zo=[he[1-rs]-Wo[0],ve[1-Us]-Wo[1]],Wo[0]=he[rs],Wo[1]=ve[Us]}else e.event.altKey&&(yo=Wo.slice());Ar.style("pointer-events","none").selectAll(".resize").style("display",null),e.select("body").style("cursor",Yt.style("cursor")),sr({type:"brushstart"}),Ql();function jl(){e.event.keyCode==32&&(ha||(yo=null,Wo[0]-=he[1],Wo[1]-=ve[1],ha=2),W())}function qu(){e.event.keyCode==32&&ha==2&&(Wo[0]+=he[1],Wo[1]+=ve[1],ha=0,W())}function Ql(){var nl=e.mouse(It),Vl=!1;Zo&&(nl[0]+=Zo[0],nl[1]+=Zo[1]),ha||(e.event.altKey?(yo||(yo=[(he[0]+he[1])/2,(ve[0]+ve[1])/2]),Wo[0]=he[+(nl[0]{(function(e,t){typeof zD=="object"&&typeof vue!="undefined"?t(zD):(e=e||self,t(e.d3=e.d3||{}))})(zD,function(e){"use strict";var t=new Date,r=new Date;function i(V,ue,_e,xe){function Ae(se){return V(se=arguments.length===0?new Date:new Date(+se)),se}return Ae.floor=function(se){return V(se=new Date(+se)),se},Ae.ceil=function(se){return V(se=new Date(se-1)),ue(se,1),V(se),se},Ae.round=function(se){var pe=Ae(se),fe=Ae.ceil(se);return se-pe0))return Re;do Re.push(We=new Date(+se)),ue(se,fe),V(se);while(We=pe)for(;V(pe),!se(pe);)pe.setTime(pe-1)},function(pe,fe){if(pe>=pe)if(fe<0)for(;++fe<=0;)for(;ue(pe,-1),!se(pe););else for(;--fe>=0;)for(;ue(pe,1),!se(pe););})},_e&&(Ae.count=function(se,pe){return t.setTime(+se),r.setTime(+pe),V(t),V(r),Math.floor(_e(t,r))},Ae.every=function(se){return se=Math.floor(se),!isFinite(se)||!(se>0)?null:se>1?Ae.filter(xe?function(pe){return xe(pe)%se===0}:function(pe){return Ae.count(0,pe)%se===0}):Ae}),Ae}var n=i(function(){},function(V,ue){V.setTime(+V+ue)},function(V,ue){return ue-V});n.every=function(V){return V=Math.floor(V),!isFinite(V)||!(V>0)?null:V>1?i(function(ue){ue.setTime(Math.floor(ue/V)*V)},function(ue,_e){ue.setTime(+ue+_e*V)},function(ue,_e){return(_e-ue)/V}):n};var a=n.range,o=1e3,s=6e4,l=36e5,u=864e5,f=6048e5,c=i(function(V){V.setTime(V-V.getMilliseconds())},function(V,ue){V.setTime(+V+ue*o)},function(V,ue){return(ue-V)/o},function(V){return V.getUTCSeconds()}),h=c.range,d=i(function(V){V.setTime(V-V.getMilliseconds()-V.getSeconds()*o)},function(V,ue){V.setTime(+V+ue*s)},function(V,ue){return(ue-V)/s},function(V){return V.getMinutes()}),p=d.range,v=i(function(V){V.setTime(V-V.getMilliseconds()-V.getSeconds()*o-V.getMinutes()*s)},function(V,ue){V.setTime(+V+ue*l)},function(V,ue){return(ue-V)/l},function(V){return V.getHours()}),y=v.range,m=i(function(V){V.setHours(0,0,0,0)},function(V,ue){V.setDate(V.getDate()+ue)},function(V,ue){return(ue-V-(ue.getTimezoneOffset()-V.getTimezoneOffset())*s)/u},function(V){return V.getDate()-1}),w=m.range;function _(V){return i(function(ue){ue.setDate(ue.getDate()-(ue.getDay()+7-V)%7),ue.setHours(0,0,0,0)},function(ue,_e){ue.setDate(ue.getDate()+_e*7)},function(ue,_e){return(_e-ue-(_e.getTimezoneOffset()-ue.getTimezoneOffset())*s)/f})}var b=_(0),M=_(1),x=_(2),T=_(3),A=_(4),g=_(5),E=_(6),S=b.range,C=M.range,k=x.range,D=T.range,F=A.range,P=g.range,I=E.range,L=i(function(V){V.setDate(1),V.setHours(0,0,0,0)},function(V,ue){V.setMonth(V.getMonth()+ue)},function(V,ue){return ue.getMonth()-V.getMonth()+(ue.getFullYear()-V.getFullYear())*12},function(V){return V.getMonth()}),z=L.range,B=i(function(V){V.setMonth(0,1),V.setHours(0,0,0,0)},function(V,ue){V.setFullYear(V.getFullYear()+ue)},function(V,ue){return ue.getFullYear()-V.getFullYear()},function(V){return V.getFullYear()});B.every=function(V){return!isFinite(V=Math.floor(V))||!(V>0)?null:i(function(ue){ue.setFullYear(Math.floor(ue.getFullYear()/V)*V),ue.setMonth(0,1),ue.setHours(0,0,0,0)},function(ue,_e){ue.setFullYear(ue.getFullYear()+_e*V)})};var O=B.range,W=i(function(V){V.setUTCSeconds(0,0)},function(V,ue){V.setTime(+V+ue*s)},function(V,ue){return(ue-V)/s},function(V){return V.getUTCMinutes()}),X=W.range,Z=i(function(V){V.setUTCMinutes(0,0,0)},function(V,ue){V.setTime(+V+ue*l)},function(V,ue){return(ue-V)/l},function(V){return V.getUTCHours()}),H=Z.range,q=i(function(V){V.setUTCHours(0,0,0,0)},function(V,ue){V.setUTCDate(V.getUTCDate()+ue)},function(V,ue){return(ue-V)/u},function(V){return V.getUTCDate()-1}),Q=q.range;function N(V){return i(function(ue){ue.setUTCDate(ue.getUTCDate()-(ue.getUTCDay()+7-V)%7),ue.setUTCHours(0,0,0,0)},function(ue,_e){ue.setUTCDate(ue.getUTCDate()+_e*7)},function(ue,_e){return(_e-ue)/f})}var U=N(0),J=N(1),j=N(2),$=N(3),ie=N(4),re=N(5),de=N(6),me=U.range,ze=J.range,ke=j.range,le=$.range,te=ie.range,Ee=re.range,we=de.range,oe=i(function(V){V.setUTCDate(1),V.setUTCHours(0,0,0,0)},function(V,ue){V.setUTCMonth(V.getUTCMonth()+ue)},function(V,ue){return ue.getUTCMonth()-V.getUTCMonth()+(ue.getUTCFullYear()-V.getUTCFullYear())*12},function(V){return V.getUTCMonth()}),Y=oe.range,ne=i(function(V){V.setUTCMonth(0,1),V.setUTCHours(0,0,0,0)},function(V,ue){V.setUTCFullYear(V.getUTCFullYear()+ue)},function(V,ue){return ue.getUTCFullYear()-V.getUTCFullYear()},function(V){return V.getUTCFullYear()});ne.every=function(V){return!isFinite(V=Math.floor(V))||!(V>0)?null:i(function(ue){ue.setUTCFullYear(Math.floor(ue.getUTCFullYear()/V)*V),ue.setUTCMonth(0,1),ue.setUTCHours(0,0,0,0)},function(ue,_e){ue.setUTCFullYear(ue.getUTCFullYear()+_e*V)})};var ye=ne.range;e.timeDay=m,e.timeDays=w,e.timeFriday=g,e.timeFridays=P,e.timeHour=v,e.timeHours=y,e.timeInterval=i,e.timeMillisecond=n,e.timeMilliseconds=a,e.timeMinute=d,e.timeMinutes=p,e.timeMonday=M,e.timeMondays=C,e.timeMonth=L,e.timeMonths=z,e.timeSaturday=E,e.timeSaturdays=I,e.timeSecond=c,e.timeSeconds=h,e.timeSunday=b,e.timeSundays=S,e.timeThursday=A,e.timeThursdays=F,e.timeTuesday=x,e.timeTuesdays=k,e.timeWednesday=T,e.timeWednesdays=D,e.timeWeek=b,e.timeWeeks=S,e.timeYear=B,e.timeYears=O,e.utcDay=q,e.utcDays=Q,e.utcFriday=re,e.utcFridays=Ee,e.utcHour=Z,e.utcHours=H,e.utcMillisecond=n,e.utcMilliseconds=a,e.utcMinute=W,e.utcMinutes=X,e.utcMonday=J,e.utcMondays=ze,e.utcMonth=oe,e.utcMonths=Y,e.utcSaturday=de,e.utcSaturdays=we,e.utcSecond=c,e.utcSeconds=h,e.utcSunday=U,e.utcSundays=me,e.utcThursday=ie,e.utcThursdays=te,e.utcTuesday=j,e.utcTuesdays=ke,e.utcWednesday=$,e.utcWednesdays=le,e.utcWeek=U,e.utcWeeks=me,e.utcYear=ne,e.utcYears=ye,Object.defineProperty(e,"__esModule",{value:!0})})});var J3=K((ID,mue)=>{(function(e,t){typeof ID=="object"&&typeof mue!="undefined"?t(ID,lV()):(e=e||self,t(e.d3=e.d3||{},e.d3))})(ID,function(e,t){"use strict";function r(Se){if(0<=Se.y&&Se.y<100){var Ie=new Date(-1,Se.m,Se.d,Se.H,Se.M,Se.S,Se.L);return Ie.setFullYear(Se.y),Ie}return new Date(Se.y,Se.m,Se.d,Se.H,Se.M,Se.S,Se.L)}function i(Se){if(0<=Se.y&&Se.y<100){var Ie=new Date(Date.UTC(-1,Se.m,Se.d,Se.H,Se.M,Se.S,Se.L));return Ie.setUTCFullYear(Se.y),Ie}return new Date(Date.UTC(Se.y,Se.m,Se.d,Se.H,Se.M,Se.S,Se.L))}function n(Se,Ie,ot){return{y:Se,m:Ie,d:ot,H:0,M:0,S:0,L:0}}function a(Se){var Ie=Se.dateTime,ot=Se.date,ut=Se.time,_t=Se.periods,At=Se.days,Gt=Se.shortDays,Dt=Se.months,yt=Se.shortMonths,Mt=h(_t),tr=d(_t),Ye=h(At),nt=d(At),st=h(Gt),dt=d(Gt),rt=h(Dt),ft=d(Dt),Ft=h(yt),Et=d(yt),er={a:Ut,A:Wt,b:dr,B:Hr,c:null,d:L,e:L,f:X,g:re,G:me,H:z,I:B,j:O,L:W,m:Z,M:H,p:Er,q:Fr,Q:at,s:Ge,S:q,u:Q,U:N,V:J,w:j,W:$,x:null,X:null,y:ie,Y:de,Z:ze,"%":tt},xr={a:di,A:Li,b:nr,B:Kt,c:null,d:ke,e:ke,f:oe,g:fe,G:We,H:le,I:te,j:Ee,L:we,m:Y,M:ne,p:Me,q:Xe,Q:at,s:Ge,S:ye,u:V,U:ue,V:xe,w:Ae,W:se,x:null,X:null,y:pe,Y:Re,Z:Ke,"%":tt},kr={a:Tr,A:Mr,b:Gr,B:_i,c:Fi,d:A,e:A,f:D,g:b,G:_,H:E,I:E,j:g,L:k,m:T,M:S,p:ri,q:x,Q:P,s:I,S:C,u:v,U:y,V:m,w:p,W:w,x:wr,X:Cr,y:b,Y:_,Z:M,"%":F};er.x=fr(ot,er),er.X=fr(ut,er),er.c=fr(Ie,er),xr.x=fr(ot,xr),xr.X=fr(ut,xr),xr.c=fr(Ie,xr);function fr($e,Qe){return function(gt){var bt=[],lr=-1,Ct=0,ur=$e.length,Rr,Br,Vr;for(gt instanceof Date||(gt=new Date(+gt));++lr53)return null;"w"in bt||(bt.w=1),"Z"in bt?(Ct=i(n(bt.y,0,1)),ur=Ct.getUTCDay(),Ct=ur>4||ur===0?t.utcMonday.ceil(Ct):t.utcMonday(Ct),Ct=t.utcDay.offset(Ct,(bt.V-1)*7),bt.y=Ct.getUTCFullYear(),bt.m=Ct.getUTCMonth(),bt.d=Ct.getUTCDate()+(bt.w+6)%7):(Ct=r(n(bt.y,0,1)),ur=Ct.getDay(),Ct=ur>4||ur===0?t.timeMonday.ceil(Ct):t.timeMonday(Ct),Ct=t.timeDay.offset(Ct,(bt.V-1)*7),bt.y=Ct.getFullYear(),bt.m=Ct.getMonth(),bt.d=Ct.getDate()+(bt.w+6)%7)}else("W"in bt||"U"in bt)&&("w"in bt||(bt.w="u"in bt?bt.u%7:"W"in bt?1:0),ur="Z"in bt?i(n(bt.y,0,1)).getUTCDay():r(n(bt.y,0,1)).getDay(),bt.m=0,bt.d="W"in bt?(bt.w+6)%7+bt.W*7-(ur+5)%7:bt.w+bt.U*7-(ur+6)%7);return"Z"in bt?(bt.H+=bt.Z/100|0,bt.M+=bt.Z%100,i(bt)):r(bt)}}function Or($e,Qe,gt,bt){for(var lr=0,Ct=Qe.length,ur=gt.length,Rr,Br;lr=ur)return-1;if(Rr=Qe.charCodeAt(lr++),Rr===37){if(Rr=Qe.charAt(lr++),Br=kr[Rr in o?Qe.charAt(lr++):Rr],!Br||(bt=Br($e,gt,bt))<0)return-1}else if(Rr!=gt.charCodeAt(bt++))return-1}return bt}function ri($e,Qe,gt){var bt=Mt.exec(Qe.slice(gt));return bt?($e.p=tr[bt[0].toLowerCase()],gt+bt[0].length):-1}function Tr($e,Qe,gt){var bt=st.exec(Qe.slice(gt));return bt?($e.w=dt[bt[0].toLowerCase()],gt+bt[0].length):-1}function Mr($e,Qe,gt){var bt=Ye.exec(Qe.slice(gt));return bt?($e.w=nt[bt[0].toLowerCase()],gt+bt[0].length):-1}function Gr($e,Qe,gt){var bt=Ft.exec(Qe.slice(gt));return bt?($e.m=Et[bt[0].toLowerCase()],gt+bt[0].length):-1}function _i($e,Qe,gt){var bt=rt.exec(Qe.slice(gt));return bt?($e.m=ft[bt[0].toLowerCase()],gt+bt[0].length):-1}function Fi($e,Qe,gt){return Or($e,Ie,Qe,gt)}function wr($e,Qe,gt){return Or($e,ot,Qe,gt)}function Cr($e,Qe,gt){return Or($e,ut,Qe,gt)}function Ut($e){return Gt[$e.getDay()]}function Wt($e){return At[$e.getDay()]}function dr($e){return yt[$e.getMonth()]}function Hr($e){return Dt[$e.getMonth()]}function Er($e){return _t[+($e.getHours()>=12)]}function Fr($e){return 1+~~($e.getMonth()/3)}function di($e){return Gt[$e.getUTCDay()]}function Li($e){return At[$e.getUTCDay()]}function nr($e){return yt[$e.getUTCMonth()]}function Kt($e){return Dt[$e.getUTCMonth()]}function Me($e){return _t[+($e.getUTCHours()>=12)]}function Xe($e){return 1+~~($e.getUTCMonth()/3)}return{format:function($e){var Qe=fr($e+="",er);return Qe.toString=function(){return $e},Qe},parse:function($e){var Qe=Yr($e+="",!1);return Qe.toString=function(){return $e},Qe},utcFormat:function($e){var Qe=fr($e+="",xr);return Qe.toString=function(){return $e},Qe},utcParse:function($e){var Qe=Yr($e+="",!0);return Qe.toString=function(){return $e},Qe}}}var o={"-":"",_:" ",0:"0"},s=/^\s*\d+/,l=/^%/,u=/[\\^$*+?|[\]().{}]/g;function f(Se,Ie,ot){var ut=Se<0?"-":"",_t=(ut?-Se:Se)+"",At=_t.length;return ut+(At68?1900:2e3),ot+ut[0].length):-1}function M(Se,Ie,ot){var ut=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(Ie.slice(ot,ot+6));return ut?(Se.Z=ut[1]?0:-(ut[2]+(ut[3]||"00")),ot+ut[0].length):-1}function x(Se,Ie,ot){var ut=s.exec(Ie.slice(ot,ot+1));return ut?(Se.q=ut[0]*3-3,ot+ut[0].length):-1}function T(Se,Ie,ot){var ut=s.exec(Ie.slice(ot,ot+2));return ut?(Se.m=ut[0]-1,ot+ut[0].length):-1}function A(Se,Ie,ot){var ut=s.exec(Ie.slice(ot,ot+2));return ut?(Se.d=+ut[0],ot+ut[0].length):-1}function g(Se,Ie,ot){var ut=s.exec(Ie.slice(ot,ot+3));return ut?(Se.m=0,Se.d=+ut[0],ot+ut[0].length):-1}function E(Se,Ie,ot){var ut=s.exec(Ie.slice(ot,ot+2));return ut?(Se.H=+ut[0],ot+ut[0].length):-1}function S(Se,Ie,ot){var ut=s.exec(Ie.slice(ot,ot+2));return ut?(Se.M=+ut[0],ot+ut[0].length):-1}function C(Se,Ie,ot){var ut=s.exec(Ie.slice(ot,ot+2));return ut?(Se.S=+ut[0],ot+ut[0].length):-1}function k(Se,Ie,ot){var ut=s.exec(Ie.slice(ot,ot+3));return ut?(Se.L=+ut[0],ot+ut[0].length):-1}function D(Se,Ie,ot){var ut=s.exec(Ie.slice(ot,ot+6));return ut?(Se.L=Math.floor(ut[0]/1e3),ot+ut[0].length):-1}function F(Se,Ie,ot){var ut=l.exec(Ie.slice(ot,ot+1));return ut?ot+ut[0].length:-1}function P(Se,Ie,ot){var ut=s.exec(Ie.slice(ot));return ut?(Se.Q=+ut[0],ot+ut[0].length):-1}function I(Se,Ie,ot){var ut=s.exec(Ie.slice(ot));return ut?(Se.s=+ut[0],ot+ut[0].length):-1}function L(Se,Ie){return f(Se.getDate(),Ie,2)}function z(Se,Ie){return f(Se.getHours(),Ie,2)}function B(Se,Ie){return f(Se.getHours()%12||12,Ie,2)}function O(Se,Ie){return f(1+t.timeDay.count(t.timeYear(Se),Se),Ie,3)}function W(Se,Ie){return f(Se.getMilliseconds(),Ie,3)}function X(Se,Ie){return W(Se,Ie)+"000"}function Z(Se,Ie){return f(Se.getMonth()+1,Ie,2)}function H(Se,Ie){return f(Se.getMinutes(),Ie,2)}function q(Se,Ie){return f(Se.getSeconds(),Ie,2)}function Q(Se){var Ie=Se.getDay();return Ie===0?7:Ie}function N(Se,Ie){return f(t.timeSunday.count(t.timeYear(Se)-1,Se),Ie,2)}function U(Se){var Ie=Se.getDay();return Ie>=4||Ie===0?t.timeThursday(Se):t.timeThursday.ceil(Se)}function J(Se,Ie){return Se=U(Se),f(t.timeThursday.count(t.timeYear(Se),Se)+(t.timeYear(Se).getDay()===4),Ie,2)}function j(Se){return Se.getDay()}function $(Se,Ie){return f(t.timeMonday.count(t.timeYear(Se)-1,Se),Ie,2)}function ie(Se,Ie){return f(Se.getFullYear()%100,Ie,2)}function re(Se,Ie){return Se=U(Se),f(Se.getFullYear()%100,Ie,2)}function de(Se,Ie){return f(Se.getFullYear()%1e4,Ie,4)}function me(Se,Ie){var ot=Se.getDay();return Se=ot>=4||ot===0?t.timeThursday(Se):t.timeThursday.ceil(Se),f(Se.getFullYear()%1e4,Ie,4)}function ze(Se){var Ie=Se.getTimezoneOffset();return(Ie>0?"-":(Ie*=-1,"+"))+f(Ie/60|0,"0",2)+f(Ie%60,"0",2)}function ke(Se,Ie){return f(Se.getUTCDate(),Ie,2)}function le(Se,Ie){return f(Se.getUTCHours(),Ie,2)}function te(Se,Ie){return f(Se.getUTCHours()%12||12,Ie,2)}function Ee(Se,Ie){return f(1+t.utcDay.count(t.utcYear(Se),Se),Ie,3)}function we(Se,Ie){return f(Se.getUTCMilliseconds(),Ie,3)}function oe(Se,Ie){return we(Se,Ie)+"000"}function Y(Se,Ie){return f(Se.getUTCMonth()+1,Ie,2)}function ne(Se,Ie){return f(Se.getUTCMinutes(),Ie,2)}function ye(Se,Ie){return f(Se.getUTCSeconds(),Ie,2)}function V(Se){var Ie=Se.getUTCDay();return Ie===0?7:Ie}function ue(Se,Ie){return f(t.utcSunday.count(t.utcYear(Se)-1,Se),Ie,2)}function _e(Se){var Ie=Se.getUTCDay();return Ie>=4||Ie===0?t.utcThursday(Se):t.utcThursday.ceil(Se)}function xe(Se,Ie){return Se=_e(Se),f(t.utcThursday.count(t.utcYear(Se),Se)+(t.utcYear(Se).getUTCDay()===4),Ie,2)}function Ae(Se){return Se.getUTCDay()}function se(Se,Ie){return f(t.utcMonday.count(t.utcYear(Se)-1,Se),Ie,2)}function pe(Se,Ie){return f(Se.getUTCFullYear()%100,Ie,2)}function fe(Se,Ie){return Se=_e(Se),f(Se.getUTCFullYear()%100,Ie,2)}function Re(Se,Ie){return f(Se.getUTCFullYear()%1e4,Ie,4)}function We(Se,Ie){var ot=Se.getUTCDay();return Se=ot>=4||ot===0?t.utcThursday(Se):t.utcThursday.ceil(Se),f(Se.getUTCFullYear()%1e4,Ie,4)}function Ke(){return"+0000"}function tt(){return"%"}function at(Se){return+Se}function Ge(Se){return Math.floor(+Se/1e3)}var ge;Be({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 Be(Se){return ge=a(Se),e.timeFormat=ge.format,e.timeParse=ge.parse,e.utcFormat=ge.utcFormat,e.utcParse=ge.utcParse,ge}var Ze="%Y-%m-%dT%H:%M:%S.%LZ";function Le(Se){return Se.toISOString()}var De=Date.prototype.toISOString?Le:e.utcFormat(Ze);function Ue(Se){var Ie=new Date(Se);return isNaN(Ie)?null:Ie}var Pe=+new Date("2000-01-01T00:00:00.000Z")?Ue:e.utcParse(Ze);e.isoFormat=De,e.isoParse=Pe,e.timeFormatDefaultLocale=Be,e.timeFormatLocale=a,Object.defineProperty(e,"__esModule",{value:!0})})});var uV=K((RD,yue)=>{(function(e,t){typeof RD=="object"&&typeof yue!="undefined"?t(RD):(e=typeof globalThis!="undefined"?globalThis:e||self,t(e.d3=e.d3||{}))})(RD,(function(e){"use strict";function t(T){return Math.abs(T=Math.round(T))>=1e21?T.toLocaleString("en").replace(/,/g,""):T.toString(10)}function r(T,A){if((g=(T=A?T.toExponential(A-1):T.toExponential()).indexOf("e"))<0)return null;var g,E=T.slice(0,g);return[E.length>1?E[0]+E.slice(2):E,+T.slice(g+1)]}function i(T){return T=r(Math.abs(T)),T?T[1]:NaN}function n(T,A){return function(g,E){for(var S=g.length,C=[],k=0,D=T[0],F=0;S>0&&D>0&&(F+D+1>E&&(D=Math.max(1,E-F)),C.push(g.substring(S-=D,S+D)),!((F+=D+1)>E));)D=T[k=(k+1)%T.length];return C.reverse().join(A)}}function a(T){return function(A){return A.replace(/[0-9]/g,function(g){return T[+g]})}}var o=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function s(T){if(!(A=o.exec(T)))throw new Error("invalid format: "+T);var A;return new l({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]})}s.prototype=l.prototype;function l(T){this.fill=T.fill===void 0?" ":T.fill+"",this.align=T.align===void 0?">":T.align+"",this.sign=T.sign===void 0?"-":T.sign+"",this.symbol=T.symbol===void 0?"":T.symbol+"",this.zero=!!T.zero,this.width=T.width===void 0?void 0:+T.width,this.comma=!!T.comma,this.precision=T.precision===void 0?void 0:+T.precision,this.trim=!!T.trim,this.type=T.type===void 0?"":T.type+""}l.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 u(T){e:for(var A=T.length,g=1,E=-1,S;g0&&(E=0);break}return E>0?T.slice(0,E)+T.slice(S+1):T}var f;function c(T,A){var g=r(T,A);if(!g)return T+"";var E=g[0],S=g[1],C=S-(f=Math.max(-8,Math.min(8,Math.floor(S/3)))*3)+1,k=E.length;return C===k?E:C>k?E+new Array(C-k+1).join("0"):C>0?E.slice(0,C)+"."+E.slice(C):"0."+new Array(1-C).join("0")+r(T,Math.max(0,A+C-1))[0]}function h(T,A){var g=r(T,A);if(!g)return T+"";var E=g[0],S=g[1];return S<0?"0."+new Array(-S).join("0")+E:E.length>S+1?E.slice(0,S+1)+"."+E.slice(S+1):E+new Array(S-E.length+2).join("0")}var d={"%":function(T,A){return(T*100).toFixed(A)},b:function(T){return Math.round(T).toString(2)},c:function(T){return T+""},d:t,e:function(T,A){return T.toExponential(A)},f:function(T,A){return T.toFixed(A)},g:function(T,A){return T.toPrecision(A)},o:function(T){return Math.round(T).toString(8)},p:function(T,A){return h(T*100,A)},r:h,s:c,X:function(T){return Math.round(T).toString(16).toUpperCase()},x:function(T){return Math.round(T).toString(16)}};function p(T){return T}var v=Array.prototype.map,y=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function m(T){var A=T.grouping===void 0||T.thousands===void 0?p:n(v.call(T.grouping,Number),T.thousands+""),g=T.currency===void 0?"":T.currency[0]+"",E=T.currency===void 0?"":T.currency[1]+"",S=T.decimal===void 0?".":T.decimal+"",C=T.numerals===void 0?p:a(v.call(T.numerals,String)),k=T.percent===void 0?"%":T.percent+"",D=T.minus===void 0?"-":T.minus+"",F=T.nan===void 0?"NaN":T.nan+"";function P(L){L=s(L);var z=L.fill,B=L.align,O=L.sign,W=L.symbol,X=L.zero,Z=L.width,H=L.comma,q=L.precision,Q=L.trim,N=L.type;N==="n"?(H=!0,N="g"):d[N]||(q===void 0&&(q=12),Q=!0,N="g"),(X||z==="0"&&B==="=")&&(X=!0,z="0",B="=");var U=W==="$"?g:W==="#"&&/[boxX]/.test(N)?"0"+N.toLowerCase():"",J=W==="$"?E:/[%p]/.test(N)?k:"",j=d[N],$=/[defgprs%]/.test(N);q=q===void 0?6:/[gprs]/.test(N)?Math.max(1,Math.min(21,q)):Math.max(0,Math.min(20,q));function ie(re){var de=U,me=J,ze,ke,le;if(N==="c")me=j(re)+me,re="";else{re=+re;var te=re<0||1/re<0;if(re=isNaN(re)?F:j(Math.abs(re),q),Q&&(re=u(re)),te&&+re==0&&O!=="+"&&(te=!1),de=(te?O==="("?O:D:O==="-"||O==="("?"":O)+de,me=(N==="s"?y[8+f/3]:"")+me+(te&&O==="("?")":""),$){for(ze=-1,ke=re.length;++zele||le>57){me=(le===46?S+re.slice(ze+1):re.slice(ze))+me,re=re.slice(0,ze);break}}}H&&!X&&(re=A(re,1/0));var Ee=de.length+re.length+me.length,we=Ee>1)+de+re+me+we.slice(Ee);break;default:re=we+de+re+me;break}return C(re)}return ie.toString=function(){return L+""},ie}function I(L,z){var B=P((L=s(L),L.type="f",L)),O=Math.max(-8,Math.min(8,Math.floor(i(z)/3)))*3,W=Math.pow(10,-O),X=y[8+O/3];return function(Z){return B(W*Z)+X}}return{format:P,formatPrefix:I}}var w;_({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function _(T){return w=m(T),e.format=w.format,e.formatPrefix=w.formatPrefix,w}function b(T){return Math.max(0,-i(Math.abs(T)))}function M(T,A){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(i(A)/3)))*3-i(Math.abs(T)))}function x(T,A){return T=Math.abs(T),A=Math.abs(A)-T,Math.max(0,i(A)-i(T))+1}e.FormatSpecifier=l,e.formatDefaultLocale=_,e.formatLocale=m,e.formatSpecifier=s,e.precisionFixed=b,e.precisionPrefix=M,e.precisionRound=x,Object.defineProperty(e,"__esModule",{value:!0})}))});var xue=K((eqr,gue)=>{"use strict";gue.exports=function(e){for(var t=e.length,r,i=0;i13)&&r!==32&&r!==133&&r!==160&&r!==5760&&r!==6158&&(r<8192||r>8205)&&r!==8232&&r!==8233&&r!==8239&&r!==8287&&r!==8288&&r!==12288&&r!==65279)return!1;return!0}});var Hs=K((tqr,bue)=>{"use strict";var Pyt=xue();bue.exports=function(e){var t=typeof e;if(t==="string"){var r=e;if(e=+e,e===0&&Pyt(r))return!1}else if(t!=="number")return!1;return e-e<1}});var Bl={};Fl(Bl,{ALMOST_EQUAL:()=>Jyt,BADNUM:()=>fV,EPOCHJD:()=>Kyt,FP_SAFE:()=>zyt,LOG_CLIP:()=>Qyt,MINUS_SIGN:()=>egt,ONEAVGMONTH:()=>Uyt,ONEAVGQUARTER:()=>Oyt,ONEAVGYEAR:()=>Ryt,ONEDAY:()=>jyt,ONEHOUR:()=>Wyt,ONEMAXMONTH:()=>Vyt,ONEMAXQUARTER:()=>qyt,ONEMAXYEAR:()=>Iyt,ONEMICROSEC:()=>Zyt,ONEMILLI:()=>Xyt,ONEMIN:()=>$yt,ONEMINMONTH:()=>Gyt,ONEMINQUARTER:()=>Nyt,ONEMINYEAR:()=>Byt,ONESEC:()=>Yyt,ONEWEEK:()=>Hyt});var fV,zyt,Iyt,Ryt,Byt,qyt,Oyt,Nyt,Vyt,Uyt,Gyt,Hyt,jyt,Wyt,$yt,Yyt,Xyt,Zyt,Kyt,Jyt,Qyt,egt,Il=ps(()=>{"use strict";fV=void 0,zyt=Number.MAX_VALUE*1e-4,Iyt=316224e5,Ryt=315576e5,Byt=31536e6,qyt=79488e5,Oyt=78894e5,Nyt=76896e5,Vyt=26784e5,Uyt=26298e5,Gyt=24192e5,Hyt=6048e5,jyt=864e5,Wyt=36e5,$yt=6e4,Yyt=1e3,Xyt=1,Zyt=.001,Kyt=24405875e-1,Jyt=1-1e-6,Qyt=10,egt="\u2212"});var cV=K((BD,_ue)=>{(function(e,t){typeof BD=="object"&&typeof _ue!="undefined"?t(BD):(e=typeof globalThis!="undefined"?globalThis:e||self,t(e["base64-arraybuffer"]={}))})(BD,(function(e){"use strict";for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),i=0;i>2],f+=t[(s[l]&3)<<4|s[l+1]>>4],f+=t[(s[l+1]&15)<<2|s[l+2]>>6],f+=t[s[l+2]&63];return u%3===2?f=f.substring(0,f.length-1)+"=":u%3===1&&(f=f.substring(0,f.length-2)+"=="),f},a=function(o){var s=o.length*.75,l=o.length,u,f=0,c,h,d,p;o[o.length-1]==="="&&(s--,o[o.length-2]==="="&&s--);var v=new ArrayBuffer(s),y=new Uint8Array(v);for(u=0;u>4,y[f++]=(h&15)<<4|d>>2,y[f++]=(d&3)<<6|p&63;return v};e.decode=a,e.encode=n,Object.defineProperty(e,"__esModule",{value:!0})}))});var _g=K((rqr,wue)=>{"use strict";wue.exports=function(t){return window&&window.process&&window.process.versions?Object.prototype.toString.call(t)==="[object Object]":Object.prototype.toString.call(t)==="[object Object]"&&Object.getPrototypeOf(t).hasOwnProperty("hasOwnProperty")}});var Yh=K(Nv=>{"use strict";var tgt=cV().decode,rgt=_g(),hV=Array.isArray,igt=ArrayBuffer,ngt=DataView;function Aue(e){return igt.isView(e)&&!(e instanceof ngt)}Nv.isTypedArray=Aue;function qD(e){return hV(e)||Aue(e)}Nv.isArrayOrTypedArray=qD;function agt(e){return!qD(e[0])}Nv.isArray1D=agt;Nv.ensureArray=function(e,t){return hV(e)||(e=[]),e.length=t,e};var Lh={u1c:typeof Uint8ClampedArray=="undefined"?void 0:Uint8ClampedArray,i1:typeof Int8Array=="undefined"?void 0:Int8Array,u1:typeof Uint8Array=="undefined"?void 0:Uint8Array,i2:typeof Int16Array=="undefined"?void 0:Int16Array,u2:typeof Uint16Array=="undefined"?void 0:Uint16Array,i4:typeof Int32Array=="undefined"?void 0:Int32Array,u4:typeof Uint32Array=="undefined"?void 0:Uint32Array,f4:typeof Float32Array=="undefined"?void 0:Float32Array,f8:typeof Float64Array=="undefined"?void 0:Float64Array};Lh.uint8c=Lh.u1c;Lh.uint8=Lh.u1;Lh.int8=Lh.i1;Lh.uint16=Lh.u2;Lh.int16=Lh.i2;Lh.uint32=Lh.u4;Lh.int32=Lh.i4;Lh.float32=Lh.f4;Lh.float64=Lh.f8;function dV(e){return e.constructor===ArrayBuffer}Nv.isArrayBuffer=dV;Nv.decodeTypedArraySpec=function(e){var t=[],r=ogt(e),i=r.dtype,n=Lh[i];if(!n)throw new Error('Error in dtype: "'+i+'"');var a=n.BYTES_PER_ELEMENT,o=r.bdata;dV(o)||(o=tgt(o));var s=r.shape===void 0?[o.byteLength/a]:(""+r.shape).split(",");s.reverse();var l=s.length,u,f,c=+s[0],h=a*c,d=0;if(l===1)t=new n(o);else if(l===2)for(u=+s[1],f=0;f{"use strict";var Mue=Hs(),vV=Yh().isArrayOrTypedArray;Cue.exports=function(t,r){if(Mue(r))r=String(r);else if(typeof r!="string"||r.slice(-4)==="[-1]")throw"bad property string";var i=r.split("."),n,a,o,s;for(s=0;s{"use strict";var Q3=VT(),cgt=/^\w*$/,hgt=0,Due=1,OD=2,Fue=3,Vx=4;Lue.exports=function(t,r,i,n){i=i||"name",n=n||"value";var a,o,s,l={};r&&r.length?(s=Q3(t,r),o=s.get()):o=t,r=r||"";var u={};if(o)for(a=0;a2)return l[d]=l[d]|OD,c.set(h,null);if(f){for(a=d;a{"use strict";var dgt=/^(.*)(\.[^\.\[\]]+|\[\d\])$/,pgt=/^[^\.\[\]]+$/;zue.exports=function(e,t){for(;t;){var r=e.match(dgt);if(r)e=r[1];else if(e.match(pgt))e="";else throw new Error("bad relativeAttr call:"+[e,t]);if(t.charAt(0)==="^")t=t.slice(1);else break}return e&&t.charAt(0)!=="["?e+"."+t:e+t}});var ND=K((sqr,Rue)=>{"use strict";var vgt=Hs();Rue.exports=function(t,r){if(t>0)return Math.log(t)/Math.LN10;var i=Math.log(Math.min(r[0],r[1]))/Math.LN10;return vgt(i)||(i=Math.log(Math.max(r[0],r[1]))/Math.LN10-6),i}});var Oue=K((lqr,que)=>{"use strict";var Bue=Yh().isArrayOrTypedArray,UT=_g();que.exports=function e(t,r){for(var i in r){var n=r[i],a=t[i];if(a!==n)if(i.charAt(0)==="_"||typeof n=="function"){if(i in t)continue;t[i]=n}else if(Bue(n)&&Bue(a)&&UT(n[0])){if(i==="customdata"||i==="ids")continue;for(var o=Math.min(n.length,a.length),s=0;smgt,modHalf:()=>ygt});function mgt(e,t){let r=e%t;return r<0?r+t:r}function ygt(e,t){return Math.abs(e)>t/2?e-Math.round(e/t)*t:e}var tw=ps(()=>{"use strict"});var Os=K(jT=>{"use strict";var Nue=_g(),GT=Array.isArray;function ggt(e,t){var r,i;for(r=0;r{"use strict";Vue.exports=function(e){var t=e.variantValues,r=e.editType,i=e.colorEditType;i===void 0&&(i=r);var n={editType:r,valType:"integer",min:1,max:1e3,extras:["normal","bold"],dflt:"normal"};e.noNumericWeightValues&&(n.valType="enumerated",n.values=n.extras,n.extras=void 0,n.min=void 0,n.max=void 0);var a={family:{valType:"string",noBlank:!0,strict:!0,editType:r},size:{valType:"number",min:1,editType:r},color:{valType:"color",editType:i},weight:n,style:{editType:r,valType:"enumerated",values:["normal","italic"],dflt:"normal"},variant:e.noFontVariant?void 0:{editType:r,valType:"enumerated",values:t||["normal","small-caps","all-small-caps","all-petite-caps","petite-caps","unicase"],dflt:"normal"},textcase:e.noFontTextcase?void 0:{editType:r,valType:"enumerated",values:["normal","word caps","upper","lower"],dflt:"normal"},lineposition:e.noFontLineposition?void 0:{editType:r,valType:"flaglist",flags:["under","over","through"],extras:["none"],dflt:"none"},shadow:e.noFontShadow?void 0:{editType:r,valType:"string",dflt:e.autoShadowDflt?"auto":"none"},editType:r};return e.autoSize&&(a.size.dflt="auto"),e.autoColor&&(a.color.dflt="auto"),e.arrayOk&&(a.family.arrayOk=!0,a.weight.arrayOk=!0,a.style.arrayOk=!0,e.noFontVariant||(a.variant.arrayOk=!0),e.noFontTextcase||(a.textcase.arrayOk=!0),e.noFontLineposition||(a.lineposition.arrayOk=!0),e.noFontShadow||(a.shadow.arrayOk=!0),a.size.arrayOk=!0,a.color.arrayOk=!0),a}});var WT={};Fl(WT,{HOVERARROWSIZE:()=>bgt,HOVERFONT:()=>Agt,HOVERFONTSIZE:()=>wgt,HOVERID:()=>Mgt,HOVERMINTIME:()=>Tgt,HOVERTEXTPAD:()=>_gt,YANGLE:()=>xgt});var xgt,bgt,_gt,wgt,Agt,Tgt,Mgt,$T=ps(()=>{"use strict";xgt=60,bgt=6,_gt=3,wgt=13,Agt="Arial, sans-serif",Tgt=50,Mgt="-hover"});var wg=K((cqr,Hue)=>{"use strict";var Uue=($T(),or(WT)),Gue=lf(),mV=Gue({editType:"none"});mV.family.dflt=Uue.HOVERFONT;mV.size.dflt=Uue.HOVERFONTSIZE;Hue.exports={clickmode:{valType:"flaglist",flags:["event","select"],dflt:"event",editType:"plot",extras:["none"]},dragmode:{valType:"enumerated",values:["zoom","pan","select","lasso","drawclosedpath","drawopenpath","drawline","drawrect","drawcircle","orbit","turntable",!1],dflt:"zoom",editType:"modebar"},hovermode:{valType:"enumerated",values:["x","y","closest",!1,"x unified","y unified"],dflt:"closest",editType:"modebar"},hoversort:{valType:"enumerated",values:["trace","value descending","value ascending"],dflt:"trace",editType:"none"},hoversubplots:{valType:"enumerated",values:["single","overlaying","axis"],dflt:"overlaying",editType:"none"},hoveranywhere:{valType:"boolean",dflt:!1,editType:"none"},clickanywhere:{valType:"boolean",dflt:!1,editType:"none"},hoverdistance:{valType:"integer",min:-1,dflt:20,editType:"none"},spikedistance:{valType:"integer",min:-1,dflt:-1,editType:"none"},hoverlabel:{bgcolor:{valType:"color",editType:"none"},bordercolor:{valType:"color",editType:"none"},font:mV,grouptitlefont:Gue({editType:"none"}),align:{valType:"enumerated",values:["left","right","auto"],dflt:"auto",editType:"none"},namelength:{valType:"integer",min:-1,dflt:15,editType:"none"},showarrow:{valType:"boolean",dflt:!0,editType:"none"},editType:"none"},selectdirection:{valType:"enumerated",values:["h","v","d","any"],dflt:"any",editType:"none"}}});var rw=K((hqr,jue)=>{"use strict";var Sgt=lf(),YT=wg().hoverlabel,XT=Os().extendFlat;jue.exports={hoverlabel:{bgcolor:XT({},YT.bgcolor,{arrayOk:!0}),bordercolor:XT({},YT.bordercolor,{arrayOk:!0}),font:Sgt({arrayOk:!0,editType:"none"}),align:XT({},YT.align,{arrayOk:!0}),namelength:XT({},YT.namelength,{arrayOk:!0}),showarrow:XT({},YT.showarrow),editType:"none"}}});var Tu=K((dqr,Wue)=>{"use strict";var Egt=lf(),kgt=rw();Wue.exports={type:{valType:"enumerated",values:[],dflt:"scatter",editType:"calc+clearAxisTypes",_noTemplating:!0},visible:{valType:"enumerated",values:[!0,!1,"legendonly"],dflt:!0,editType:"calc"},showlegend:{valType:"boolean",dflt:!0,editType:"style"},legend:{valType:"subplotid",dflt:"legend",editType:"style"},legendgroup:{valType:"string",dflt:"",editType:"style"},legendgrouptitle:{text:{valType:"string",dflt:"",editType:"style"},font:Egt({editType:"style"}),editType:"style"},legendrank:{valType:"number",dflt:1e3,editType:"style"},legendwidth:{valType:"number",min:0,editType:"style"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"style"},name:{valType:"string",editType:"style"},uid:{valType:"string",editType:"plot",anim:!0},ids:{valType:"data_array",editType:"calc",anim:!0},customdata:{valType:"data_array",editType:"calc"},meta:{valType:"any",arrayOk:!0,editType:"plot"},selectedpoints:{valType:"any",editType:"calc"},hoverinfo:{valType:"flaglist",flags:["x","y","z","text","name"],extras:["all","none","skip"],arrayOk:!0,dflt:"all",editType:"none"},hoverlabel:kgt.hoverlabel,uirevision:{valType:"any",editType:"none"}}});var qce=K((bqr,Bce)=>{var lU=Object.defineProperty,Cgt=Object.getOwnPropertyDescriptor,Dgt=Object.getOwnPropertyNames,Fgt=Object.prototype.hasOwnProperty,Lgt=(e,t)=>{for(var r in t)lU(e,r,{get:t[r],enumerable:!0})},Pgt=(e,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of Dgt(t))!Fgt.call(e,n)&&n!==r&&lU(e,n,{get:()=>t[n],enumerable:!(i=Cgt(t,n))||i.enumerable});return e},zgt=e=>Pgt(lU({},"__esModule",{value:!0}),e),rfe={};Lgt(rfe,{a98:()=>M_t,average:()=>D2t,averageAngle:()=>U1,averageNumber:()=>xfe,blend:()=>Cbt,blerp:()=>UV,clampChroma:()=>Xbt,clampGamut:()=>IU,clampRgb:()=>Ybt,colorsNamed:()=>nfe,convertA98ToXyz65:()=>GV,convertCubehelixToRgb:()=>yfe,convertDlchToLab65:()=>XD,convertHsiToRgb:()=>Efe,convertHslToRgb:()=>Dfe,convertHsvToRgb:()=>pU,convertHwbToRgb:()=>zfe,convertItpToXyz65:()=>jV,convertJabToJch:()=>$V,convertJabToRgb:()=>bU,convertJabToXyz65:()=>gU,convertJchToJab:()=>YV,convertLab65ToDlch:()=>ZD,convertLab65ToRgb:()=>i6,convertLab65ToXyz65:()=>cU,convertLabToLch:()=>Jm,convertLabToRgb:()=>wU,convertLabToXyz50:()=>oF,convertLchToLab:()=>Qm,convertLchuvToLuv:()=>MU,convertLrgbToOklab:()=>SU,convertLrgbToRgb:()=>Yx,convertLuvToLchuv:()=>TU,convertLuvToXyz50:()=>JD,convertOkhslToOklab:()=>KV,convertOkhsvToOklab:()=>QV,convertOklabToLrgb:()=>fw,convertOklabToOkhsl:()=>ZV,convertOklabToOkhsv:()=>JV,convertOklabToRgb:()=>o6,convertP3ToXyz65:()=>eU,convertProphotoToXyz50:()=>iU,convertRec2020ToXyz65:()=>aU,convertRgbToCubehelix:()=>mfe,convertRgbToHsi:()=>kfe,convertRgbToHsl:()=>Ffe,convertRgbToHsv:()=>vU,convertRgbToHwb:()=>Ife,convertRgbToJab:()=>xU,convertRgbToLab:()=>AU,convertRgbToLab65:()=>n6,convertRgbToLrgb:()=>$x,convertRgbToOklab:()=>a6,convertRgbToXyb:()=>uce,convertRgbToXyz50:()=>uw,convertRgbToXyz65:()=>Ag,convertRgbToYiq:()=>mce,convertXybToRgb:()=>fce,convertXyz50ToLab:()=>sF,convertXyz50ToLuv:()=>KD,convertXyz50ToProphoto:()=>rU,convertXyz50ToRgb:()=>lw,convertXyz50ToXyz65:()=>pce,convertXyz65ToA98:()=>HV,convertXyz65ToItp:()=>WV,convertXyz65ToJab:()=>yU,convertXyz65ToLab65:()=>hU,convertXyz65ToP3:()=>tU,convertXyz65ToRec2020:()=>nU,convertXyz65ToRgb:()=>Tg,convertXyz65ToXyz50:()=>dce,convertYiqToRgb:()=>yce,converter:()=>Lf,cubehelix:()=>S_t,differenceCie76:()=>A2t,differenceCie94:()=>T2t,differenceCiede2000:()=>M2t,differenceCmc:()=>S2t,differenceEuclidean:()=>sw,differenceHueChroma:()=>r6,differenceHueNaive:()=>gfe,differenceHueSaturation:()=>t6,differenceHyab:()=>E2t,differenceItp:()=>C2t,differenceKotsarenkoRamos:()=>k2t,displayable:()=>zU,dlab:()=>E_t,dlch:()=>k_t,easingGamma:()=>Lce,easingInOutSine:()=>A_t,easingMidpoint:()=>Mce,easingSmootherstep:()=>__t,easingSmoothstep:()=>g_t,easingSmoothstepInverse:()=>x_t,filterBrightness:()=>n_t,filterContrast:()=>a_t,filterDeficiencyDeuter:()=>m_t,filterDeficiencyProt:()=>v_t,filterDeficiencyTrit:()=>y_t,filterGrayscale:()=>l_t,filterHueRotate:()=>f_t,filterInvert:()=>u_t,filterSaturate:()=>s_t,filterSepia:()=>o_t,fixupAlpha:()=>yh,fixupHueDecreasing:()=>g2t,fixupHueIncreasing:()=>y2t,fixupHueLonger:()=>m2t,fixupHueShorter:()=>V1,formatCss:()=>wbt,formatHex:()=>Abt,formatHex8:()=>Tbt,formatHsl:()=>Sbt,formatRgb:()=>Mbt,getMode:()=>q0,hsi:()=>C_t,hsl:()=>D_t,hsv:()=>F_t,hwb:()=>L_t,inGamut:()=>fF,interpolate:()=>qbt,interpolateWith:()=>Ece,interpolateWithPremultipliedAlpha:()=>Obt,interpolatorLinear:()=>ws,interpolatorPiecewise:()=>pfe,interpolatorSplineBasis:()=>Cce,interpolatorSplineBasisClosed:()=>Dce,interpolatorSplineMonotone:()=>Ubt,interpolatorSplineMonotone2:()=>Gbt,interpolatorSplineMonotoneClosed:()=>Hbt,interpolatorSplineNatural:()=>Nbt,interpolatorSplineNaturalClosed:()=>Vbt,itp:()=>P_t,jab:()=>z_t,jch:()=>I_t,lab:()=>R_t,lab65:()=>B_t,lch:()=>q_t,lch65:()=>O_t,lchuv:()=>N_t,lerp:()=>Gx,lrgb:()=>V_t,luv:()=>U_t,mapAlphaDivide:()=>Tce,mapAlphaMultiply:()=>Ace,mapTransferGamma:()=>zbt,mapTransferLinear:()=>FU,mapper:()=>s6,modeA98:()=>vfe,modeCubehelix:()=>bfe,modeDlab:()=>Mfe,modeDlch:()=>Sfe,modeHsi:()=>Cfe,modeHsl:()=>dU,modeHsv:()=>mU,modeHwb:()=>Bfe,modeItp:()=>Nfe,modeJab:()=>Vfe,modeJch:()=>Ufe,modeLab:()=>lF,modeLab65:()=>Hfe,modeLch:()=>uF,modeLch65:()=>Wfe,modeLchuv:()=>Xfe,modeLrgb:()=>Zfe,modeLuv:()=>Kfe,modeOkhsl:()=>Qfe,modeOkhsv:()=>ece,modeOklab:()=>rce,modeOklch:()=>nce,modeP3:()=>ace,modeProphoto:()=>oce,modeRec2020:()=>sce,modeRgb:()=>Wx,modeXyb:()=>cce,modeXyz50:()=>hce,modeXyz65:()=>vce,modeYiq:()=>gce,nearest:()=>Jbt,okhsl:()=>G_t,okhsv:()=>H_t,oklab:()=>j_t,oklch:()=>W_t,p3:()=>$_t,parse:()=>cfe,parseHex:()=>ofe,parseHsl:()=>Pfe,parseHslLegacy:()=>Lfe,parseHwb:()=>Rfe,parseLab:()=>Gfe,parseLch:()=>jfe,parseNamed:()=>afe,parseOklab:()=>tce,parseOklch:()=>ice,parseRgb:()=>hfe,parseRgbLegacy:()=>sfe,parseTransparent:()=>dfe,prophoto:()=>Y_t,random:()=>Pbt,rec2020:()=>X_t,removeParser:()=>Ygt,rgb:()=>Z_t,round:()=>xce,samples:()=>$bt,serializeHex:()=>DU,serializeHex8:()=>bce,serializeHsl:()=>wce,serializeRgb:()=>_ce,toGamut:()=>Zbt,trilerp:()=>a2t,unlerp:()=>n2t,useMode:()=>uf,useParser:()=>ufe,wcagContrast:()=>T_t,wcagLuminance:()=>sU,xyb:()=>K_t,xyz50:()=>J_t,xyz65:()=>Q_t,yiq:()=>e3t});Bce.exports=zgt(rfe);var Igt=(e,t)=>{if(typeof e=="number"){if(t===3)return{mode:"rgb",r:(e>>8&15|e>>4&240)/255,g:(e>>4&15|e&240)/255,b:(e&15|e<<4&240)/255};if(t===4)return{mode:"rgb",r:(e>>12&15|e>>8&240)/255,g:(e>>8&15|e>>4&240)/255,b:(e>>4&15|e&240)/255,alpha:(e&15|e<<4&240)/255};if(t===6)return{mode:"rgb",r:(e>>16&255)/255,g:(e>>8&255)/255,b:(e&255)/255};if(t===8)return{mode:"rgb",r:(e>>24&255)/255,g:(e>>16&255)/255,b:(e>>8&255)/255,alpha:(e&255)/255}}},ife=Igt,Rgt={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},nfe=Rgt,Bgt=e=>ife(nfe[e.toLowerCase()],6),afe=Bgt,qgt=/^#?([0-9a-f]{8}|[0-9a-f]{6}|[0-9a-f]{4}|[0-9a-f]{3})$/i,Ogt=e=>{let t;return(t=e.match(qgt))?ife(parseInt(t[1],16),t[1].length):void 0},ofe=Ogt,Md="([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)",pqr=`(?:${Md}|none)`,JT=`${Md}%`,vqr=`(?:${Md}%|none)`,uU=`(?:${Md}%|${Md})`,Ngt=`(?:${Md}%|${Md}|none)`,Vgt=`(?:${Md}(deg|grad|rad|turn)|${Md})`,mqr=`(?:${Md}(deg|grad|rad|turn)|${Md}|none)`,aw="\\s*,\\s*",yqr=new RegExp("^"+Ngt+"$"),Ugt=new RegExp(`^rgba?\\(\\s*${Md}${aw}${Md}${aw}${Md}\\s*(?:,\\s*${uU}\\s*)?\\)$`),Ggt=new RegExp(`^rgba?\\(\\s*${JT}${aw}${JT}${aw}${JT}\\s*(?:,\\s*${uU}\\s*)?\\)$`),Hgt=e=>{let t={mode:"rgb"},r;if(r=e.match(Ugt))r[1]!==void 0&&(t.r=r[1]/255),r[2]!==void 0&&(t.g=r[2]/255),r[3]!==void 0&&(t.b=r[3]/255);else if(r=e.match(Ggt))r[1]!==void 0&&(t.r=r[1]/100),r[2]!==void 0&&(t.g=r[2]/100),r[3]!==void 0&&(t.b=r[3]/100);else return;return r[4]!==void 0?t.alpha=Math.max(0,Math.min(1,r[4]/100)):r[5]!==void 0&&(t.alpha=Math.max(0,Math.min(1,+r[5]))),t},sfe=Hgt,jgt=(e,t)=>e===void 0?void 0:typeof e!="object"?cfe(e):e.mode!==void 0?e:t?$l(Gs({},e),{mode:t}):void 0,Vv=jgt,Wgt=(e="rgb")=>t=>(t=Vv(t,e))!==void 0?t.mode===e?t:N1[t.mode][e]?N1[t.mode][e](t):e==="rgb"?N1[t.mode].rgb(t):N1.rgb[e](N1[t.mode].rgb(t)):void 0,Lf=Wgt,N1={},lfe={},ow=[],fU={},$gt=e=>e,uf=e=>(N1[e.mode]=Gs(Gs({},N1[e.mode]),e.toMode),Object.keys(e.fromMode||{}).forEach(t=>{N1[t]||(N1[t]={}),N1[t][e.mode]=e.fromMode[t]}),e.ranges||(e.ranges={}),e.difference||(e.difference={}),e.channels.forEach(t=>{if(e.ranges[t]===void 0&&(e.ranges[t]=[0,1]),!e.interpolate[t])throw new Error(`Missing interpolator for: ${t}`);typeof e.interpolate[t]=="function"&&(e.interpolate[t]={use:e.interpolate[t]}),e.interpolate[t].fixup||(e.interpolate[t].fixup=$gt)}),lfe[e.mode]=e,(e.parse||[]).forEach(t=>{ufe(t,e.mode)}),Lf(e.mode)),q0=e=>lfe[e],ufe=(e,t)=>{if(typeof e=="string"){if(!t)throw new Error("'mode' required when 'parser' is a string");fU[e]=t}else typeof e=="function"&&ow.indexOf(e)<0&&ow.push(e)},Ygt=e=>{if(typeof e=="string")delete fU[e];else if(typeof e=="function"){let t=ow.indexOf(e);t>0&&ow.splice(t,1)}},NV=/[^\x00-\x7F]|[a-zA-Z_]/,Xgt=/[^\x00-\x7F]|[-\w]/,Jo={Function:"function",Ident:"ident",Number:"number",Percentage:"percentage",ParenClose:")",None:"none",Hue:"hue",Alpha:"alpha"},Ul=0;function VD(e){let t=e[Ul],r=e[Ul+1];return t==="-"||t==="+"?/\d/.test(r)||r==="."&&/\d/.test(e[Ul+2]):t==="."?/\d/.test(r):/\d/.test(t)}function VV(e){if(Ul>=e.length)return!1;let t=e[Ul];if(NV.test(t))return!0;if(t==="-"){if(e.length-Ul<2)return!1;let r=e[Ul+1];return!!(r==="-"||NV.test(r))}return!1}var Zgt={deg:1,rad:180/Math.PI,grad:9/10,turn:360};function ZT(e){let t="";if((e[Ul]==="-"||e[Ul]==="+")&&(t+=e[Ul++]),t+=UD(e),e[Ul]==="."&&/\d/.test(e[Ul+1])&&(t+=e[Ul++]+UD(e)),(e[Ul]==="e"||e[Ul]==="E")&&((e[Ul+1]==="-"||e[Ul+1]==="+")&&/\d/.test(e[Ul+2])?t+=e[Ul++]+e[Ul++]+UD(e):/\d/.test(e[Ul+1])&&(t+=e[Ul++]+UD(e))),VV(e)){let r=jD(e);return r==="deg"||r==="rad"||r==="turn"||r==="grad"?{type:Jo.Hue,value:t*Zgt[r]}:void 0}return e[Ul]==="%"?(Ul++,{type:Jo.Percentage,value:+t}):{type:Jo.Number,value:+t}}function UD(e){let t="";for(;/\d/.test(e[Ul]);)t+=e[Ul++];return t}function jD(e){let t="";for(;Ul4)){if(r.length===4){if(r[3].type!==Jo.Alpha)return;r[3]=r[3].value}return r.length===3&&r.push({type:Jo.None,value:void 0}),r.every(n=>n.type!==Jo.Alpha)?r:void 0}}function Wgt(e,t){e._i=0;let r=e[e._i++];if(!r||r.type!==Jo.Function)return;let i=tfe(e,t);if(i)return i.unshift(r.value),i}var $gt=e=>{if(typeof e!="string")return;let t=Hgt(e),r=t?Wgt(t,!0):void 0,i,n=0,a=iw.length;for(;ne==="transparent"?{mode:"rgb",r:0,g:0,b:0,alpha:0}:void 0,nfe=Xgt,Ux=(e,t,r)=>e+r*(t-e),Zgt=(e,t,r)=>(r-e)/(t-e),RV=(e,t,r,i,n,a)=>Ux(Ux(e,t,n),Ux(r,i,n),a),Kgt=(e,t,r,i,n,a,o,s,l,u,f)=>Ux(RV(e,t,r,i,l,u),RV(n,a,o,s,l,u),f),Jgt=e=>{let t=[];for(let r=0;rt=>{let r=Jgt(t);return i=>{let n=i*r.length,a=i>=1?r.length-1:Math.max(Math.floor(n),0),o=r[a];return o===void 0?void 0:e(o[0],o[1],n-a)}},ws=afe(Ux),mh=e=>{let t=!1,r=e.map(i=>i!==void 0?(t=!0,i):1);return t?r:e},Qgt={mode:"rgb",channels:["r","g","b","alpha"],parse:[ife,Kue,Jue,Zue,nfe,"srgb"],serialize:"srgb",interpolate:{r:ws,g:ws,b:ws,alpha:{use:ws,fixup:mh}},gamut:!0,white:{r:1,g:1,b:1},black:{r:0,g:0,b:0}},jx=Qgt,cV=(e=0)=>Math.pow(Math.abs(e),563/256)*Math.sign(e),e2t=e=>{let t=cV(e.r),r=cV(e.g),i=cV(e.b),n={mode:"xyz65",x:.5766690429101305*t+.1855582379065463*r+.1882286462349947*i,y:.297344975250536*t+.6273635662554661*r+.0752914584939979*i,z:.0270313613864123*t+.0706888525358272*r+.9913375368376386*i};return e.alpha!==void 0&&(n.alpha=e.alpha),n},BV=e2t,hV=e=>Math.pow(Math.abs(e),256/563)*Math.sign(e),t2t=({x:e,y:t,z:r,alpha:i})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let n={mode:"a98",r:hV(e*2.0415879038107465-t*.5650069742788597-.3447313507783297*r),g:hV(e*-.9692436362808798+t*1.8759675015077206+.0415550574071756*r),b:hV(e*.0134442806320312-t*.1183623922310184+1.0151749943912058*r)};return i!==void 0&&(n.alpha=i),n},qV=t2t,dV=(e=0)=>{let t=Math.abs(e);return t<=.04045?e/12.92:(Math.sign(e)||1)*Math.pow((t+.055)/1.055,2.4)},r2t=({r:e,g:t,b:r,alpha:i})=>{let n={mode:"lrgb",r:dV(e),g:dV(t),b:dV(r)};return i!==void 0&&(n.alpha=i),n},Wx=r2t,i2t=e=>{let{r:t,g:r,b:i,alpha:n}=Wx(e),a={mode:"xyz65",x:.4123907992659593*t+.357584339383878*r+.1804807884018343*i,y:.2126390058715102*t+.715168678767756*r+.0721923153607337*i,z:.0193308187155918*t+.119194779794626*r+.9505321522496607*i};return n!==void 0&&(a.alpha=n),a},xg=i2t,pV=(e=0)=>{let t=Math.abs(e);return t>.0031308?(Math.sign(e)||1)*(1.055*Math.pow(t,1/2.4)-.055):e*12.92},n2t=({r:e,g:t,b:r,alpha:i},n="rgb")=>{let a={mode:n,r:pV(e),g:pV(t),b:pV(r)};return i!==void 0&&(a.alpha=i),a},$x=n2t,a2t=({x:e,y:t,z:r,alpha:i})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let n=$x({r:e*3.2409699419045226-t*1.537383177570094-.4986107602930034*r,g:e*-.9692436362808796+t*1.8759675015077204+.0415550574071756*r,b:e*.0556300796969936-t*.2039769588889765+1.0569715142428784*r});return i!==void 0&&(n.alpha=i),n},bg=a2t,o2t=Ql(Zs({},jx),{mode:"a98",parse:["a98-rgb"],serialize:"a98-rgb",fromMode:{rgb:e=>qV(xg(e)),xyz65:qV},toMode:{rgb:e=>bg(BV(e)),xyz65:BV}}),ofe=o2t,s2t=e=>(e=e%360)<0?e+360:e,_0=s2t,JD=(e,t)=>e.map((r,i,n)=>{if(r===void 0)return r;let a=_0(r);return i===0||e[i-1]===void 0?a:t(a-_0(n[i-1]))}).reduce((r,i)=>!r.length||i===void 0||r[r.length-1]===void 0?(r.push(i),r):(r.push(i+r[r.length-1]),r),[]),B1=e=>JD(e,t=>Math.abs(t)<=180?t:t-360*Math.sign(t)),l2t=e=>JD(e,t=>Math.abs(t)>=180||t===0?t:t-360*Math.sign(t)),u2t=e=>JD(e,t=>t>=0?t:t+360),f2t=e=>JD(e,t=>t<=0?t:t-360),Yh=[-.14861,1.78277,-.29227,-.90649,1.97294,0],c2t=Math.PI/180,h2t=180/Math.PI,que=Yh[3]*Yh[4],Oue=Yh[1]*Yh[4],Nue=Yh[1]*Yh[2]-Yh[0]*Yh[3],d2t=({r:e,g:t,b:r,alpha:i})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let n=(Nue*r+e*que-t*Oue)/(Nue+que-Oue),a=r-n,o=(Yh[4]*(t-n)-Yh[2]*a)/Yh[3],s={mode:"cubehelix",l:n,s:n===0||n===1?void 0:Math.sqrt(a*a+o*o)/(Yh[4]*n*(1-n))};return s.s&&(s.h=Math.atan2(o,a)*h2t-120),i!==void 0&&(s.alpha=i),s},sfe=d2t,p2t=({h:e,s:t,l:r,alpha:i})=>{let n={mode:"rgb"};e=(e===void 0?0:e+120)*c2t,r===void 0&&(r=0);let a=t===void 0?0:t*r*(1-r),o=Math.cos(e),s=Math.sin(e);return n.r=r+a*(Yh[0]*o+Yh[1]*s),n.g=r+a*(Yh[2]*o+Yh[3]*s),n.b=r+a*(Yh[4]*o+Yh[5]*s),i!==void 0&&(n.alpha=i),n},lfe=p2t,e6=(e,t)=>{if(e.h===void 0||t.h===void 0||!e.s||!t.s)return 0;let r=_0(e.h),i=_0(t.h),n=Math.sin((i-r+360)/2*Math.PI/180);return 2*Math.sqrt(e.s*t.s)*n},ufe=(e,t)=>{if(e.h===void 0||t.h===void 0)return 0;let r=_0(e.h),i=_0(t.h);return Math.abs(i-r)>180?r-(i-360*Math.sign(i-r)):i-r},t6=(e,t)=>{if(e.h===void 0||t.h===void 0||!e.c||!t.c)return 0;let r=_0(e.h),i=_0(t.h),n=Math.sin((i-r+360)/2*Math.PI/180);return 2*Math.sqrt(e.c*t.c)*n},nw=(e="rgb",t=[1,1,1,0])=>{let r=B0(e),i=r.channels,n=r.difference,a=Lf(e);return(o,s)=>{let l=a(o),u=a(s);return Math.sqrt(i.reduce((f,c,h)=>{let d=n[c]?n[c](l,u):l[c]-u[c];return f+(t[h]||0)*Math.pow(isNaN(d)?0:d,2)},0))}},v2t=()=>nw("lab65"),m2t=(e=1,t=.045,r=.015)=>{let i=Lf("lab65");return(n,a)=>{let o=i(n),s=i(a),l=o.l,u=o.a,f=o.b,c=Math.sqrt(u*u+f*f),h=s.l,d=s.a,p=s.b,v=Math.sqrt(d*d+p*p),y=Math.pow(l-h,2),m=Math.pow(c-v,2),w=Math.pow(u-d,2)+Math.pow(f-p,2)-m;return Math.sqrt(y/Math.pow(e,2)+m/Math.pow(1+t*c,2)+w/Math.pow(1+r*c,2))}},y2t=(e=1,t=1,r=1)=>{let i=Lf("lab65");return(n,a)=>{let o=i(n),s=i(a),l=o.l,u=o.a,f=o.b,c=Math.sqrt(u*u+f*f),h=s.l,d=s.a,p=s.b,v=Math.sqrt(d*d+p*p),y=(c+v)/2,m=.5*(1-Math.sqrt(Math.pow(y,7)/(Math.pow(y,7)+Math.pow(25,7)))),w=u*(1+m),_=d*(1+m),b=Math.sqrt(w*w+f*f),M=Math.sqrt(_*_+p*p),x=Math.abs(w)+Math.abs(f)===0?0:Math.atan2(f,w);x+=(x<0)*2*Math.PI;let A=Math.abs(_)+Math.abs(p)===0?0:Math.atan2(p,_);A+=(A<0)*2*Math.PI;let T=h-l,g=M-b,E=b*M===0?0:A-x;E-=(E>Math.PI)*2*Math.PI,E+=(E<-Math.PI)*2*Math.PI;let S=2*Math.sqrt(b*M)*Math.sin(E/2),C=(l+h)/2,k=(b+M)/2,D;b*M===0?D=x+A:(D=(x+A)/2,D-=(Math.abs(x-A)>Math.PI)*Math.PI,D+=(D<0)*2*Math.PI);let L=Math.pow(C-50,2),P=1-.17*Math.cos(D-Math.PI/6)+.24*Math.cos(2*D)+.32*Math.cos(3*D+Math.PI/30)-.2*Math.cos(4*D-63*Math.PI/180),I=1+.015*L/Math.sqrt(20+L),F=1+.045*k,z=1+.015*k*P,B=30*Math.PI/180*Math.exp(-1*Math.pow((180/Math.PI*D-275)/25,2)),O=2*Math.sqrt(Math.pow(k,7)/(Math.pow(k,7)+Math.pow(25,7))),W=-1*Math.sin(2*B)*O;return Math.sqrt(Math.pow(T/(e*I),2)+Math.pow(g/(t*F),2)+Math.pow(S/(r*z),2)+W*g/(t*F)*S/(r*z))}},g2t=(e=1,t=1)=>{let r=Lf("lab65");return(i,n)=>{let a=r(i),o=a.l,s=a.a,l=a.b,u=Math.sqrt(s*s+l*l),f=Math.atan2(l,s);f=f+2*Math.PI*(f<0);let c=r(n),h=c.l,d=c.a,p=c.b,v=Math.sqrt(d*d+p*p),y=Math.pow(o-h,2),m=Math.pow(u-v,2),w=Math.pow(s-d,2)+Math.pow(l-p,2)-m,_=Math.sqrt(Math.pow(u,4)/(Math.pow(u,4)+1900)),b=f>=164/180*Math.PI&&f<=345/180*Math.PI?.56+Math.abs(.2*Math.cos(f+168/180*Math.PI)):.36+Math.abs(.4*Math.cos(f+35/180*Math.PI)),M=o<16?.511:.040975*o/(1+.01765*o),x=.0638*u/(1+.0131*u)+.638,A=x*(_*b+1-_);return Math.sqrt(y/Math.pow(e*M,2)+m/Math.pow(t*x,2)+w/Math.pow(A,2))}},x2t=()=>{let e=Lf("lab65");return(t,r)=>{let i=e(t),n=e(r),a=i.l-n.l,o=i.a-n.a,s=i.b-n.b;return Math.abs(a)+Math.sqrt(o*o+s*s)}},b2t=()=>nw("yiq",[.5053,.299,.1957]),_2t=()=>nw("itp",[518400,129600,518400]),q1=e=>{let t=e.reduce((i,n)=>{if(n!==void 0){let a=n*Math.PI/180;i.sin+=Math.sin(a),i.cos+=Math.cos(a)}return i},{sin:0,cos:0}),r=Math.atan2(t.sin,t.cos)*180/Math.PI;return r<0?360+r:r},ffe=e=>{let t=e.filter(r=>r!==void 0);return t.length?t.reduce((r,i)=>r+i,0)/t.length:void 0},vV=e=>typeof e=="function";function w2t(e,t="rgb",r){let i=B0(t),n=e.map(Lf(t));return i.channels.reduce((a,o)=>{let s=n.map(l=>l[o]).filter(l=>l!==void 0);if(s.length){let l;vV(r)?l=r:r&&vV(r[o])?l=r[o]:i.average&&vV(i.average[o])?l=i.average[o]:l=ffe,a[o]=l(s,o)}return a},{mode:t})}var A2t={mode:"cubehelix",channels:["h","s","l","alpha"],parse:["--cubehelix"],serialize:"--cubehelix",ranges:{h:[0,360],s:[0,4.614],l:[0,1]},fromMode:{rgb:sfe},toMode:{rgb:lfe},interpolate:{h:{use:ws,fixup:B1},s:ws,l:ws,alpha:{use:ws,fixup:mh}},difference:{h:e6},average:{h:q1}},cfe=A2t,T2t=({l:e,a:t,b:r,alpha:i},n="lch")=>{t===void 0&&(t=0),r===void 0&&(r=0);let a=Math.sqrt(t*t+r*r),o={mode:n,l:e,c:a};return a&&(o.h=_0(Math.atan2(r,t)*180/Math.PI)),i!==void 0&&(o.alpha=i),o},Zm=T2t,M2t=({l:e,c:t,h:r,alpha:i},n="lab")=>{r===void 0&&(r=0);let a={mode:n,l:e,a:t?t*Math.cos(r/180*Math.PI):0,b:t?t*Math.sin(r/180*Math.PI):0};return i!==void 0&&(a.alpha=i),a},Km=M2t,hfe=Math.pow(29,3)/Math.pow(3,3),dfe=Math.pow(6,3)/Math.pow(29,3),vh={X:.3457/.3585,Y:1,Z:(1-.3457-.3585)/.3585},tw={X:.3127/.329,Y:1,Z:(1-.3127-.329)/.329},aqr=Math.pow(29,3)/Math.pow(3,3),oqr=Math.pow(6,3)/Math.pow(29,3),mV=e=>Math.pow(e,3)>dfe?Math.pow(e,3):(116*e-16)/hfe,S2t=({l:e,a:t,b:r,alpha:i})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let n=(e+16)/116,a=t/500+n,o=n-r/200,s={mode:"xyz65",x:mV(a)*tw.X,y:mV(n)*tw.Y,z:mV(o)*tw.Z};return i!==void 0&&(s.alpha=i),s},aU=S2t,E2t=e=>bg(aU(e)),r6=E2t,yV=e=>e>dfe?Math.cbrt(e):(hfe*e+16)/116,k2t=({x:e,y:t,z:r,alpha:i})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let n=yV(e/tw.X),a=yV(t/tw.Y),o=yV(r/tw.Z),s={mode:"lab65",l:116*a-16,a:500*(n-a),b:200*(a-o)};return i!==void 0&&(s.alpha=i),s},oU=k2t,C2t=e=>{let t=oU(xg(e));return e.r===e.b&&e.b===e.g&&(t.a=t.b=0),t},i6=C2t,HD=1,pfe=1,QT=26/180*Math.PI,jD=Math.cos(QT),WD=Math.sin(QT),vfe=100/Math.log(139/100),D2t=({l:e,c:t,h:r,alpha:i})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let n={mode:"lab65",l:(Math.exp(e*HD/vfe)-1)/.0039},a=(Math.exp(.0435*t*pfe*HD)-1)/.075,o=a*Math.cos(r/180*Math.PI-QT),s=a*Math.sin(r/180*Math.PI-QT);return n.a=o*jD-s/.83*WD,n.b=o*WD+s/.83*jD,i!==void 0&&(n.alpha=i),n},$D=D2t,F2t=({l:e,a:t,b:r,alpha:i})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let n=t*jD+r*WD,a=.83*(r*jD-t*WD),o=Math.sqrt(n*n+a*a),s={mode:"dlch",l:vfe/HD*Math.log(1+.0039*e),c:Math.log(1+.075*o)/(.0435*pfe*HD)};return s.c&&(s.h=_0((Math.atan2(a,n)+QT)/Math.PI*180)),i!==void 0&&(s.alpha=i),s},YD=F2t,Vue=e=>$D(Zm(e,"dlch")),Uue=e=>Km(YD(e),"dlab"),L2t={mode:"dlab",parse:["--din99o-lab"],serialize:"--din99o-lab",toMode:{lab65:Vue,rgb:e=>r6(Vue(e))},fromMode:{lab65:Uue,rgb:e=>Uue(i6(e))},channels:["l","a","b","alpha"],ranges:{l:[0,100],a:[-40.09,45.501],b:[-40.469,44.344]},interpolate:{l:ws,a:ws,b:ws,alpha:{use:ws,fixup:mh}}},mfe=L2t,P2t={mode:"dlch",parse:["--din99o-lch"],serialize:"--din99o-lch",toMode:{lab65:$D,dlab:e=>Km(e,"dlab"),rgb:e=>r6($D(e))},fromMode:{lab65:YD,dlab:e=>Zm(e,"dlch"),rgb:e=>YD(i6(e))},channels:["l","c","h","alpha"],ranges:{l:[0,100],c:[0,51.484],h:[0,360]},interpolate:{l:ws,c:ws,h:{use:ws,fixup:B1},alpha:{use:ws,fixup:mh}},difference:{h:t6},average:{h:q1}},yfe=P2t;function gfe({h:e,s:t,i:r,alpha:i}){e=_0(e!==void 0?e:0),t===void 0&&(t=0),r===void 0&&(r=0);let n=Math.abs(e/60%2-1),a;switch(Math.floor(e/60)){case 0:a={r:r*(1+t*(3/(2-n)-1)),g:r*(1+t*(3*(1-n)/(2-n)-1)),b:r*(1-t)};break;case 1:a={r:r*(1+t*(3*(1-n)/(2-n)-1)),g:r*(1+t*(3/(2-n)-1)),b:r*(1-t)};break;case 2:a={r:r*(1-t),g:r*(1+t*(3/(2-n)-1)),b:r*(1+t*(3*(1-n)/(2-n)-1))};break;case 3:a={r:r*(1-t),g:r*(1+t*(3*(1-n)/(2-n)-1)),b:r*(1+t*(3/(2-n)-1))};break;case 4:a={r:r*(1+t*(3*(1-n)/(2-n)-1)),g:r*(1-t),b:r*(1+t*(3/(2-n)-1))};break;case 5:a={r:r*(1+t*(3/(2-n)-1)),g:r*(1-t),b:r*(1+t*(3*(1-n)/(2-n)-1))};break;default:a={r:r*(1-t),g:r*(1-t),b:r*(1-t)}}return a.mode="rgb",i!==void 0&&(a.alpha=i),a}function xfe({r:e,g:t,b:r,alpha:i}){e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let n=Math.max(e,t,r),a=Math.min(e,t,r),o={mode:"hsi",s:e+t+r===0?0:1-3*a/(e+t+r),i:(e+t+r)/3};return n-a!==0&&(o.h=(n===e?(t-r)/(n-a)+(t{switch(t){case"deg":return+e;case"rad":return e/Math.PI*180;case"grad":return e/10*9;case"turn":return e*360}},R2t=I2t,B2t=new RegExp(`^hsla?\\(\\s*${Pgt}${rw}${KT}${rw}${KT}\\s*(?:,\\s*${iU}\\s*)?\\)$`),q2t=e=>{let t=e.match(B2t);if(!t)return;let r={mode:"hsl"};return t[3]!==void 0?r.h=+t[3]:t[1]!==void 0&&t[2]!==void 0&&(r.h=R2t(t[1],t[2])),t[4]!==void 0&&(r.s=Math.min(Math.max(0,t[4]/100),1)),t[5]!==void 0&&(r.l=Math.min(Math.max(0,t[5]/100),1)),t[6]!==void 0?r.alpha=Math.max(0,Math.min(1,t[6]/100)):t[7]!==void 0&&(r.alpha=Math.max(0,Math.min(1,+t[7]))),r},Afe=q2t;function O2t(e,t){if(!t||t[0]!=="hsl"&&t[0]!=="hsla")return;let r={mode:"hsl"},[,i,n,a,o]=t;if(i.type!==Jo.None){if(i.type===Jo.Percentage)return;r.h=i.value}if(n.type!==Jo.None){if(n.type===Jo.Hue)return;r.s=n.value/100}if(a.type!==Jo.None){if(a.type===Jo.Hue)return;r.l=a.value/100}return o.type!==Jo.None&&(r.alpha=Math.min(1,Math.max(0,o.type===Jo.Number?o.value:o.value/100))),r}var Tfe=O2t,N2t={mode:"hsl",toMode:{rgb:_fe},fromMode:{rgb:wfe},channels:["h","s","l","alpha"],ranges:{h:[0,360]},gamut:"rgb",parse:[Tfe,Afe],serialize:e=>`hsl(${e.h!==void 0?e.h:"none"} ${e.s!==void 0?e.s*100+"%":"none"} ${e.l!==void 0?e.l*100+"%":"none"}${e.alpha<1?` / ${e.alpha}`:""})`,interpolate:{h:{use:ws,fixup:B1},s:ws,l:ws,alpha:{use:ws,fixup:mh}},difference:{h:e6},average:{h:q1}},sU=N2t;function lU({h:e,s:t,v:r,alpha:i}){e=_0(e!==void 0?e:0),t===void 0&&(t=0),r===void 0&&(r=0);let n=Math.abs(e/60%2-1),a;switch(Math.floor(e/60)){case 0:a={r,g:r*(1-t*n),b:r*(1-t)};break;case 1:a={r:r*(1-t*n),g:r,b:r*(1-t)};break;case 2:a={r:r*(1-t),g:r,b:r*(1-t*n)};break;case 3:a={r:r*(1-t),g:r*(1-t*n),b:r};break;case 4:a={r:r*(1-t*n),g:r*(1-t),b:r};break;case 5:a={r,g:r*(1-t),b:r*(1-t*n)};break;default:a={r:r*(1-t),g:r*(1-t),b:r*(1-t)}}return a.mode="rgb",i!==void 0&&(a.alpha=i),a}function uU({r:e,g:t,b:r,alpha:i}){e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let n=Math.max(e,t,r),a=Math.min(e,t,r),o={mode:"hsv",s:n===0?0:1-a/n,v:n};return n-a!==0&&(o.h=(n===e?(t-r)/(n-a)+(t1){let n=t+r;t/=n,r/=n}return lU({h:e,s:r===1?1:1-t/(1-r),v:1-r,alpha:i})}function Sfe(e){let t=uU(e);if(t===void 0)return;let r=t.s!==void 0?t.s:0,i=t.v!==void 0?t.v:0,n={mode:"hwb",w:(1-r)*i,b:1-i};return t.h!==void 0&&(n.h=t.h),t.alpha!==void 0&&(n.alpha=t.alpha),n}function U2t(e,t){if(!t||t[0]!=="hwb")return;let r={mode:"hwb"},[,i,n,a,o]=t;if(i.type!==Jo.None){if(i.type===Jo.Percentage)return;r.h=i.value}if(n.type!==Jo.None){if(n.type===Jo.Hue)return;r.w=n.value/100}if(a.type!==Jo.None){if(a.type===Jo.Hue)return;r.b=a.value/100}return o.type!==Jo.None&&(r.alpha=Math.min(1,Math.max(0,o.type===Jo.Number?o.value:o.value/100))),r}var Efe=U2t,G2t={mode:"hwb",toMode:{rgb:Mfe},fromMode:{rgb:Sfe},channels:["h","w","b","alpha"],ranges:{h:[0,360]},gamut:"rgb",parse:[Efe],serialize:e=>`hwb(${e.h!==void 0?e.h:"none"} ${e.w!==void 0?e.w*100+"%":"none"} ${e.b!==void 0?e.b*100+"%":"none"}${e.alpha<1?` / ${e.alpha}`:""})`,interpolate:{h:{use:ws,fixup:B1},w:ws,b:ws,alpha:{use:ws,fixup:mh}},difference:{h:ufe},average:{h:q1}},kfe=G2t,Cfe=203,QD=.1593017578125,Dfe=78.84375,eF=.8359375,tF=18.8515625,rF=18.6875;function gV(e){if(e<0)return 0;let t=Math.pow(e,1/Dfe);return 1e4*Math.pow(Math.max(0,t-eF)/(tF-rF*t),1/QD)}function xV(e){if(e<0)return 0;let t=Math.pow(e/1e4,QD);return Math.pow((eF+tF*t)/(1+rF*t),Dfe)}var bV=e=>Math.max(e/Cfe,0),H2t=({i:e,t,p:r,alpha:i})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let n=gV(e+.008609037037932761*t+.11102962500302593*r),a=gV(e-.00860903703793275*t-.11102962500302599*r),o=gV(e+.5600313357106791*t-.32062717498731885*r),s={mode:"xyz65",x:bV(2.070152218389422*n-1.3263473389671556*a+.2066510476294051*o),y:bV(.3647385209748074*n+.680566024947227*a-.0453045459220346*o),z:bV(-.049747207535812*n-.0492609666966138*a+1.1880659249923042*o)};return i!==void 0&&(s.alpha=i),s},OV=H2t,_V=(e=0)=>Math.max(e*Cfe,0),j2t=({x:e,y:t,z:r,alpha:i})=>{let n=_V(e),a=_V(t),o=_V(r),s=xV(.3592832590121217*n+.6976051147779502*a-.0358915932320289*o),l=xV(-.1920808463704995*n+1.1004767970374323*a+.0753748658519118*o),u=xV(.0070797844607477*n+.0748396662186366*a+.8433265453898765*o),f=.5*s+.5*l,c=1.61376953125*s-3.323486328125*l+1.709716796875*u,h=4.378173828125*s-4.24560546875*l-.132568359375*u,d={mode:"itp",i:f,t:c,p:h};return i!==void 0&&(d.alpha=i),d},NV=j2t,W2t={mode:"itp",channels:["i","t","p","alpha"],parse:["--ictcp"],serialize:"--ictcp",toMode:{xyz65:OV,rgb:e=>bg(OV(e))},fromMode:{xyz65:NV,rgb:e=>NV(xg(e))},ranges:{i:[0,.581],t:[-.369,.272],p:[-.164,.331]},interpolate:{i:ws,t:ws,p:ws,alpha:{use:ws,fixup:mh}}},Ffe=W2t,$2t=134.03437499999998,Y2t=16295499532821565e-27,wV=e=>{if(e<0)return 0;let t=Math.pow(e/1e4,QD);return Math.pow((eF+tF*t)/(1+rF*t),$2t)},AV=(e=0)=>Math.max(e*203,0),X2t=({x:e,y:t,z:r,alpha:i})=>{e=AV(e),t=AV(t),r=AV(r);let n=1.15*e-.15*r,a=.66*t+.34*e,o=wV(.41478972*n+.579999*a+.014648*r),s=wV(-.20151*n+1.120649*a+.0531008*r),l=wV(-.0166008*n+.2648*a+.6684799*r),u=(o+s)/2,f={mode:"jab",j:.44*u/(1-.56*u)-Y2t,a:3.524*o-4.066708*s+.542708*l,b:.199076*o+1.096799*s-1.295875*l};return i!==void 0&&(f.alpha=i),f},cU=X2t,Z2t=134.03437499999998,Gue=16295499532821565e-27,TV=e=>{if(e<0)return 0;let t=Math.pow(e,1/Z2t);return 1e4*Math.pow((eF-t)/(rF*t-tF),1/QD)},MV=e=>e/203,K2t=({j:e,a:t,b:r,alpha:i})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let n=(e+Gue)/(.44+.56*(e+Gue)),a=TV(n+.13860504*t+.058047316*r),o=TV(n-.13860504*t-.058047316*r),s=TV(n-.096019242*t-.8118919*r),l={mode:"xyz65",x:MV(1.661373024652174*a-.914523081304348*o+.23136208173913045*s),y:MV(-.3250758611844533*a+1.571847026732543*o-.21825383453227928*s),z:MV(-.090982811*a-.31272829*o+1.5227666*s)};return i!==void 0&&(l.alpha=i),l},hU=K2t,J2t=e=>{let t=cU(xg(e));return e.r===e.b&&e.b===e.g&&(t.a=t.b=0),t},dU=J2t,Q2t=e=>bg(hU(e)),pU=Q2t,ext={mode:"jab",channels:["j","a","b","alpha"],parse:["--jzazbz"],serialize:"--jzazbz",fromMode:{rgb:dU,xyz65:cU},toMode:{rgb:pU,xyz65:hU},ranges:{j:[0,.222],a:[-.109,.129],b:[-.185,.134]},interpolate:{j:ws,a:ws,b:ws,alpha:{use:ws,fixup:mh}}},Lfe=ext,txt=({j:e,a:t,b:r,alpha:i})=>{t===void 0&&(t=0),r===void 0&&(r=0);let n=Math.sqrt(t*t+r*r),a={mode:"jch",j:e,c:n};return n&&(a.h=_0(Math.atan2(r,t)*180/Math.PI)),i!==void 0&&(a.alpha=i),a},VV=txt,rxt=({j:e,c:t,h:r,alpha:i})=>{r===void 0&&(r=0);let n={mode:"jab",j:e,a:t?t*Math.cos(r/180*Math.PI):0,b:t?t*Math.sin(r/180*Math.PI):0};return i!==void 0&&(n.alpha=i),n},UV=rxt,ixt={mode:"jch",parse:["--jzczhz"],serialize:"--jzczhz",toMode:{jab:UV,rgb:e=>pU(UV(e))},fromMode:{rgb:e=>VV(dU(e)),jab:VV},channels:["j","c","h","alpha"],ranges:{j:[0,.221],c:[0,.19],h:[0,360]},interpolate:{h:{use:ws,fixup:B1},c:ws,j:ws,alpha:{use:ws,fixup:mh}},difference:{h:t6},average:{h:q1}},Pfe=ixt,iF=Math.pow(29,3)/Math.pow(3,3),vU=Math.pow(6,3)/Math.pow(29,3),SV=e=>Math.pow(e,3)>vU?Math.pow(e,3):(116*e-16)/iF,nxt=({l:e,a:t,b:r,alpha:i})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let n=(e+16)/116,a=t/500+n,o=n-r/200,s={mode:"xyz50",x:SV(a)*vh.X,y:SV(n)*vh.Y,z:SV(o)*vh.Z};return i!==void 0&&(s.alpha=i),s},nF=nxt,axt=({x:e,y:t,z:r,alpha:i})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let n=$x({r:e*3.1341359569958707-t*1.6173863321612538-.4906619460083532*r,g:e*-.978795502912089+t*1.916254567259524+.03344273116131949*r,b:e*.07195537988411677-t*.2289768264158322+1.405386058324125*r});return i!==void 0&&(n.alpha=i),n},aw=axt,oxt=e=>aw(nF(e)),mU=oxt,sxt=e=>{let{r:t,g:r,b:i,alpha:n}=Wx(e),a={mode:"xyz50",x:.436065742824811*t+.3851514688337912*r+.14307845442264197*i,y:.22249319175623702*t+.7168870538238823*r+.06061979053616537*i,z:.013923904500943465*t+.09708128566574634*r+.7140993584005155*i};return n!==void 0&&(a.alpha=n),a},ow=sxt,EV=e=>e>vU?Math.cbrt(e):(iF*e+16)/116,lxt=({x:e,y:t,z:r,alpha:i})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let n=EV(e/vh.X),a=EV(t/vh.Y),o=EV(r/vh.Z),s={mode:"lab",l:116*a-16,a:500*(n-a),b:200*(a-o)};return i!==void 0&&(s.alpha=i),s},aF=lxt,uxt=e=>{let t=aF(ow(e));return e.r===e.b&&e.b===e.g&&(t.a=t.b=0),t},yU=uxt;function fxt(e,t){if(!t||t[0]!=="lab")return;let r={mode:"lab"},[,i,n,a,o]=t;if(!(i.type===Jo.Hue||n.type===Jo.Hue||a.type===Jo.Hue))return i.type!==Jo.None&&(r.l=Math.min(Math.max(0,i.value),100)),n.type!==Jo.None&&(r.a=n.type===Jo.Number?n.value:n.value*125/100),a.type!==Jo.None&&(r.b=a.type===Jo.Number?a.value:a.value*125/100),o.type!==Jo.None&&(r.alpha=Math.min(1,Math.max(0,o.type===Jo.Number?o.value:o.value/100))),r}var zfe=fxt,cxt={mode:"lab",toMode:{xyz50:nF,rgb:mU},fromMode:{xyz50:aF,rgb:yU},channels:["l","a","b","alpha"],ranges:{l:[0,100],a:[-125,125],b:[-125,125]},parse:[zfe],serialize:e=>`lab(${e.l!==void 0?e.l:"none"} ${e.a!==void 0?e.a:"none"} ${e.b!==void 0?e.b:"none"}${e.alpha<1?` / ${e.alpha}`:""})`,interpolate:{l:ws,a:ws,b:ws,alpha:{use:ws,fixup:mh}}},oF=cxt,hxt=Ql(Zs({},oF),{mode:"lab65",parse:["--lab-d65"],serialize:"--lab-d65",toMode:{xyz65:aU,rgb:r6},fromMode:{xyz65:oU,rgb:i6},ranges:{l:[0,100],a:[-125,125],b:[-125,125]}}),Ife=hxt;function dxt(e,t){if(!t||t[0]!=="lch")return;let r={mode:"lch"},[,i,n,a,o]=t;if(i.type!==Jo.None){if(i.type===Jo.Hue)return;r.l=Math.min(Math.max(0,i.value),100)}if(n.type!==Jo.None&&(r.c=Math.max(0,n.type===Jo.Number?n.value:n.value*150/100)),a.type!==Jo.None){if(a.type===Jo.Percentage)return;r.h=a.value}return o.type!==Jo.None&&(r.alpha=Math.min(1,Math.max(0,o.type===Jo.Number?o.value:o.value/100))),r}var Rfe=dxt,pxt={mode:"lch",toMode:{lab:Km,rgb:e=>mU(Km(e))},fromMode:{rgb:e=>Zm(yU(e)),lab:Zm},channels:["l","c","h","alpha"],ranges:{l:[0,100],c:[0,150],h:[0,360]},parse:[Rfe],serialize:e=>`lch(${e.l!==void 0?e.l:"none"} ${e.c!==void 0?e.c:"none"} ${e.h!==void 0?e.h:"none"}${e.alpha<1?` / ${e.alpha}`:""})`,interpolate:{h:{use:ws,fixup:B1},c:ws,l:ws,alpha:{use:ws,fixup:mh}},difference:{h:t6},average:{h:q1}},sF=pxt,vxt=Ql(Zs({},sF),{mode:"lch65",parse:["--lch-d65"],serialize:"--lch-d65",toMode:{lab65:e=>Km(e,"lab65"),rgb:e=>r6(Km(e,"lab65"))},fromMode:{rgb:e=>Zm(i6(e),"lch65"),lab65:e=>Zm(e,"lch65")},ranges:{l:[0,100],c:[0,150],h:[0,360]}}),Bfe=vxt,mxt=({l:e,u:t,v:r,alpha:i})=>{t===void 0&&(t=0),r===void 0&&(r=0);let n=Math.sqrt(t*t+r*r),a={mode:"lchuv",l:e,c:n};return n&&(a.h=_0(Math.atan2(r,t)*180/Math.PI)),i!==void 0&&(a.alpha=i),a},gU=mxt,yxt=({l:e,c:t,h:r,alpha:i})=>{r===void 0&&(r=0);let n={mode:"luv",l:e,u:t?t*Math.cos(r/180*Math.PI):0,v:t?t*Math.sin(r/180*Math.PI):0};return i!==void 0&&(n.alpha=i),n},xU=yxt,qfe=(e,t,r)=>4*e/(e+15*t+3*r),Ofe=(e,t,r)=>9*t/(e+15*t+3*r),gxt=qfe(vh.X,vh.Y,vh.Z),xxt=Ofe(vh.X,vh.Y,vh.Z),bxt=e=>e<=vU?iF*e:116*Math.cbrt(e)-16,_xt=({x:e,y:t,z:r,alpha:i})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let n=bxt(t/vh.Y),a=qfe(e,t,r),o=Ofe(e,t,r);!isFinite(a)||!isFinite(o)?n=a=o=0:(a=13*n*(a-gxt),o=13*n*(o-xxt));let s={mode:"luv",l:n,u:a,v:o};return i!==void 0&&(s.alpha=i),s},XD=_xt,wxt=(e,t,r)=>4*e/(e+15*t+3*r),Axt=(e,t,r)=>9*t/(e+15*t+3*r),Txt=wxt(vh.X,vh.Y,vh.Z),Mxt=Axt(vh.X,vh.Y,vh.Z),Sxt=({l:e,u:t,v:r,alpha:i})=>{if(e===void 0&&(e=0),e===0)return{mode:"xyz50",x:0,y:0,z:0};t===void 0&&(t=0),r===void 0&&(r=0);let n=t/(13*e)+Txt,a=r/(13*e)+Mxt,o=vh.Y*(e<=8?e/iF:Math.pow((e+16)/116,3)),s=o*(9*n)/(4*a),l=o*(12-3*n-20*a)/(4*a),u={mode:"xyz50",x:s,y:o,z:l};return i!==void 0&&(u.alpha=i),u},ZD=Sxt,Ext=e=>gU(XD(ow(e))),kxt=e=>aw(ZD(xU(e))),Cxt={mode:"lchuv",toMode:{luv:xU,rgb:kxt},fromMode:{rgb:Ext,luv:gU},channels:["l","c","h","alpha"],parse:["--lchuv"],serialize:"--lchuv",ranges:{l:[0,100],c:[0,176.956],h:[0,360]},interpolate:{h:{use:ws,fixup:B1},c:ws,l:ws,alpha:{use:ws,fixup:mh}},difference:{h:t6},average:{h:q1}},Nfe=Cxt,Dxt=Ql(Zs({},jx),{mode:"lrgb",toMode:{rgb:$x},fromMode:{rgb:Wx},parse:["srgb-linear"],serialize:"srgb-linear"}),Vfe=Dxt,Fxt={mode:"luv",toMode:{xyz50:ZD,rgb:e=>aw(ZD(e))},fromMode:{xyz50:XD,rgb:e=>XD(ow(e))},channels:["l","u","v","alpha"],parse:["--luv"],serialize:"--luv",ranges:{l:[0,100],u:[-84.936,175.042],v:[-125.882,87.243]},interpolate:{l:ws,u:ws,v:ws,alpha:{use:ws,fixup:mh}}},Ufe=Fxt,Lxt=({r:e,g:t,b:r,alpha:i})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let n=Math.cbrt(.412221469470763*e+.5363325372617348*t+.0514459932675022*r),a=Math.cbrt(.2119034958178252*e+.6806995506452344*t+.1073969535369406*r),o=Math.cbrt(.0883024591900564*e+.2817188391361215*t+.6299787016738222*r),s={mode:"oklab",l:.210454268309314*n+.7936177747023054*a-.0040720430116193*o,a:1.9779985324311684*n-2.42859224204858*a+.450593709617411*o,b:.0259040424655478*n+.7827717124575296*a-.8086757549230774*o};return i!==void 0&&(s.alpha=i),s},bU=Lxt,Pxt=e=>{let t=bU(Wx(e));return e.r===e.b&&e.b===e.g&&(t.a=t.b=0),t},n6=Pxt,zxt=({l:e,a:t,b:r,alpha:i})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let n=Math.pow(e+.3963377773761749*t+.2158037573099136*r,3),a=Math.pow(e-.1055613458156586*t-.0638541728258133*r,3),o=Math.pow(e-.0894841775298119*t-1.2914855480194092*r,3),s={mode:"lrgb",r:4.076741636075957*n-3.3077115392580616*a+.2309699031821044*o,g:-1.2684379732850317*n+2.6097573492876887*a-.3413193760026573*o,b:-.0041960761386756*n-.7034186179359362*a+1.7076146940746117*o};return i!==void 0&&(s.alpha=i),s},sw=zxt,Ixt=e=>$x(sw(e)),a6=Ixt;function GV(e){let i=1.170873786407767;return .5*(i*e-.206+Math.sqrt((i*e-.206)*(i*e-.206)+4*.03*i*e))}function KD(e){return(e*e+.206*e)/(1.170873786407767*(e+.03))}function Rxt(e,t){let r,i,n,a,o,s,l,u;-1.88170328*e-.80936493*t>1?(r=1.19086277,i=1.76576728,n=.59662641,a=.75515197,o=.56771245,s=4.0767416621,l=-3.3077115913,u=.2309699292):1.81444104*e-1.19445276*t>1?(r=.73956515,i=-.45954404,n=.08285427,a=.1254107,o=.14503204,s=-1.2684380046,l=2.6097574011,u=-.3413193965):(r=1.35733652,i=-.00915799,n=-1.1513021,a=-.50559606,o=.00692167,s=-.0041960863,l=-.7034186147,u=1.707614701);let f=r+i*e+n*t+a*e*e+o*e*t,c=.3963377774*e+.2158037573*t,h=-.1055613458*e-.0638541728*t,d=-.0894841775*e-1.291485548*t;{let p=1+f*c,v=1+f*h,y=1+f*d,m=p*p*p,w=v*v*v,_=y*y*y,b=3*c*p*p,M=3*h*v*v,x=3*d*y*y,A=6*c*c*p,T=6*h*h*v,g=6*d*d*y,E=s*m+l*w+u*_,S=s*b+l*M+u*x,C=s*A+l*T+u*g;f=f-E*S/(S*S-.5*E*C)}return f}function _U(e,t){let r=Rxt(e,t),i=sw({l:1,a:r*e,b:r*t}),n=Math.cbrt(1/Math.max(i.r,i.g,i.b)),a=n*r;return[n,a]}function Bxt(e,t,r,i,n,a=null){a||(a=_U(e,t));let o;if((r-n)*a[1]-(a[0]-n)*i<=0)o=a[1]*n/(i*a[0]+a[1]*(n-r));else{o=a[1]*(n-1)/(i*(a[0]-1)+a[1]*(n-r));{let s=r-n,l=i,u=.3963377774*e+.2158037573*t,f=-.1055613458*e-.0638541728*t,c=-.0894841775*e-1.291485548*t,h=s+l*u,d=s+l*f,p=s+l*c;{let v=n*(1-o)+o*r,y=o*i,m=v+y*u,w=v+y*f,_=v+y*c,b=m*m*m,M=w*w*w,x=_*_*_,A=3*h*m*m,T=3*d*w*w,g=3*p*_*_,E=6*h*h*m,S=6*d*d*w,C=6*p*p*_,k=4.0767416621*b-3.3077115913*M+.2309699292*x-1,D=4.0767416621*A-3.3077115913*T+.2309699292*g,L=4.0767416621*E-3.3077115913*S+.2309699292*C,P=D/(D*D-.5*k*L),I=-k*P,F=-1.2684380046*b+2.6097574011*M-.3413193965*x-1,z=-1.2684380046*A+2.6097574011*T-.3413193965*g,B=-1.2684380046*E+2.6097574011*S-.3413193965*C,O=z/(z*z-.5*F*B),W=-F*O,X=-.0041960863*b-.7034186147*M+1.707614701*x-1,Z=-.0041960863*A-.7034186147*T+1.707614701*g,j=-.0041960863*E-.7034186147*S+1.707614701*C,q=Z/(Z*Z-.5*X*j),Q=-X*q;I=P>=0?I:1e6,W=O>=0?W:1e6,Q=q>=0?Q:1e6,o+=Math.min(I,Math.min(W,Q))}}}return o}function wU(e,t,r=null){r||(r=_U(e,t));let i=r[0],n=r[1];return[n/i,n/(1-i)]}function Gfe(e,t,r){let i=_U(t,r),n=Bxt(t,r,e,1,e,i),a=wU(t,r,i),o=.11516993+1/(7.4477897+4.1590124*r+t*(-2.19557347+1.75198401*r+t*(-2.13704948-10.02301043*r+t*(-4.24894561+5.38770819*r+4.69891013*t)))),s=.11239642+1/(1.6132032-.68124379*r+t*(.40370612+.90148123*r+t*(-.27087943+.6122399*r+t*(.00299215-.45399568*r-.14661872*t)))),l=n/Math.min(e*a[0],(1-e)*a[1]),u=e*o,f=(1-e)*s,c=.9*l*Math.sqrt(Math.sqrt(1/(1/(u*u*u*u)+1/(f*f*f*f))));return u=e*.4,f=(1-e)*.8,[Math.sqrt(1/(1/(u*u)+1/(f*f))),c,n]}function HV(e){let t=e.l!==void 0?e.l:0,r=e.a!==void 0?e.a:0,i=e.b!==void 0?e.b:0,n={mode:"okhsl",l:GV(t)};e.alpha!==void 0&&(n.alpha=e.alpha);let a=Math.sqrt(r*r+i*i);if(!a)return n.s=0,n;let[o,s,l]=Gfe(t,r/a,i/a),u;if(aHV(n6(e))},toMode:{oklab:jV,rgb:e=>a6(jV(e))}}),Hfe=qxt;function WV(e){let t=e.l!==void 0?e.l:0,r=e.a!==void 0?e.a:0,i=e.b!==void 0?e.b:0,n=Math.sqrt(r*r+i*i),a=n?r/n:1,o=n?i/n:1,[s,l]=wU(a,o),u=.5,f=1-u/s,c=l/(n+t*l),h=c*t,d=c*n,p=KD(h),v=d*p/h,y=sw({l:p,a:a*v,b:o*v}),m=Math.cbrt(1/Math.max(y.r,y.g,y.b,0));t=t/m,n=n/m*GV(t)/t,t=GV(t);let w={mode:"okhsv",s:n?(u+l)*d/(l*u+l*f*d):0,v:t?t/h:0};return w.s&&(w.h=_0(Math.atan2(i,r)*180/Math.PI)),e.alpha!==void 0&&(w.alpha=e.alpha),w}function $V(e){let t={mode:"oklab"};e.alpha!==void 0&&(t.alpha=e.alpha);let r=e.h!==void 0?e.h:0,i=e.s!==void 0?e.s:0,n=e.v!==void 0?e.v:0,a=Math.cos(r/180*Math.PI),o=Math.sin(r/180*Math.PI),[s,l]=wU(a,o),u=.5,f=1-u/s,c=1-i*u/(u+l-l*f*i),h=i*l*u/(u+l-l*f*i),d=KD(c),p=h*d/c,v=sw({l:d,a:a*p,b:o*p}),y=Math.cbrt(1/Math.max(v.r,v.g,v.b,0)),m=KD(n*c),w=h*m/c;return t.l=m*y,t.a=w*a*y,t.b=w*o*y,t}var Oxt=Ql(Zs({},fU),{mode:"okhsv",channels:["h","s","v","alpha"],parse:["--okhsv"],serialize:"--okhsv",fromMode:{oklab:WV,rgb:e=>WV(n6(e))},toMode:{oklab:$V,rgb:e=>a6($V(e))}}),jfe=Oxt;function Nxt(e,t){if(!t||t[0]!=="oklab")return;let r={mode:"oklab"},[,i,n,a,o]=t;if(!(i.type===Jo.Hue||n.type===Jo.Hue||a.type===Jo.Hue))return i.type!==Jo.None&&(r.l=Math.min(Math.max(0,i.type===Jo.Number?i.value:i.value/100),1)),n.type!==Jo.None&&(r.a=n.type===Jo.Number?n.value:n.value*.4/100),a.type!==Jo.None&&(r.b=a.type===Jo.Number?a.value:a.value*.4/100),o.type!==Jo.None&&(r.alpha=Math.min(1,Math.max(0,o.type===Jo.Number?o.value:o.value/100))),r}var Wfe=Nxt,Vxt=Ql(Zs({},oF),{mode:"oklab",toMode:{lrgb:sw,rgb:a6},fromMode:{lrgb:bU,rgb:n6},ranges:{l:[0,1],a:[-.4,.4],b:[-.4,.4]},parse:[Wfe],serialize:e=>`oklab(${e.l!==void 0?e.l:"none"} ${e.a!==void 0?e.a:"none"} ${e.b!==void 0?e.b:"none"}${e.alpha<1?` / ${e.alpha}`:""})`}),$fe=Vxt;function Uxt(e,t){if(!t||t[0]!=="oklch")return;let r={mode:"oklch"},[,i,n,a,o]=t;if(i.type!==Jo.None){if(i.type===Jo.Hue)return;r.l=Math.min(Math.max(0,i.type===Jo.Number?i.value:i.value/100),1)}if(n.type!==Jo.None&&(r.c=Math.max(0,n.type===Jo.Number?n.value:n.value*.4/100)),a.type!==Jo.None){if(a.type===Jo.Percentage)return;r.h=a.value}return o.type!==Jo.None&&(r.alpha=Math.min(1,Math.max(0,o.type===Jo.Number?o.value:o.value/100))),r}var Yfe=Uxt,Gxt=Ql(Zs({},sF),{mode:"oklch",toMode:{oklab:e=>Km(e,"oklab"),rgb:e=>a6(Km(e,"oklab"))},fromMode:{rgb:e=>Zm(n6(e),"oklch"),oklab:e=>Zm(e,"oklch")},parse:[Yfe],serialize:e=>`oklch(${e.l!==void 0?e.l:"none"} ${e.c!==void 0?e.c:"none"} ${e.h!==void 0?e.h:"none"}${e.alpha<1?` / ${e.alpha}`:""})`,ranges:{l:[0,1],c:[0,.4],h:[0,360]}}),Xfe=Gxt,Hxt=e=>{let{r:t,g:r,b:i,alpha:n}=Wx(e),a={mode:"xyz65",x:.486570948648216*t+.265667693169093*r+.1982172852343625*i,y:.2289745640697487*t+.6917385218365062*r+.079286914093745*i,z:0*t+.0451133818589026*r+1.043944368900976*i};return n!==void 0&&(a.alpha=n),a},YV=Hxt,jxt=({x:e,y:t,z:r,alpha:i})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let n=$x({r:e*2.4934969119414263-t*.9313836179191242-.402710784450717*r,g:e*-.8294889695615749+t*1.7626640603183465+.0236246858419436*r,b:e*.0358458302437845-t*.0761723892680418+.9568845240076871*r},"p3");return i!==void 0&&(n.alpha=i),n},XV=jxt,Wxt=Ql(Zs({},jx),{mode:"p3",parse:["display-p3"],serialize:"display-p3",fromMode:{rgb:e=>XV(xg(e)),xyz65:XV},toMode:{rgb:e=>bg(YV(e)),xyz65:YV}}),Zfe=Wxt,kV=e=>{let t=Math.abs(e);return t>=1/512?Math.sign(e)*Math.pow(t,1/1.8):16*e},$xt=({x:e,y:t,z:r,alpha:i})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let n={mode:"prophoto",r:kV(e*1.3457868816471585-t*.2555720873797946-.0511018649755453*r),g:kV(e*-.5446307051249019+t*1.5082477428451466+.0205274474364214*r),b:kV(e*0+t*0+1.2119675456389452*r)};return i!==void 0&&(n.alpha=i),n},ZV=$xt,CV=(e=0)=>{let t=Math.abs(e);return t>=16/512?Math.sign(e)*Math.pow(t,1.8):e/16},Yxt=e=>{let t=CV(e.r),r=CV(e.g),i=CV(e.b),n={mode:"xyz50",x:.7977666449006423*t+.1351812974005331*r+.0313477341283922*i,y:.2880748288194013*t+.7118352342418731*r+899369387256e-16*i,z:0*t+0*r+.8251046025104602*i};return e.alpha!==void 0&&(n.alpha=e.alpha),n},KV=Yxt,Xxt=Ql(Zs({},jx),{mode:"prophoto",parse:["prophoto-rgb"],serialize:"prophoto-rgb",fromMode:{xyz50:ZV,rgb:e=>ZV(ow(e))},toMode:{xyz50:KV,rgb:e=>aw(KV(e))}}),Kfe=Xxt,Hue=1.09929682680944,Zxt=.018053968510807,DV=e=>{let t=Math.abs(e);return t>Zxt?(Math.sign(e)||1)*(Hue*Math.pow(t,.45)-(Hue-1)):4.5*e},Kxt=({x:e,y:t,z:r,alpha:i})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let n={mode:"rec2020",r:DV(e*1.7166511879712683-t*.3556707837763925-.2533662813736599*r),g:DV(e*-.6666843518324893+t*1.6164812366349395+.0157685458139111*r),b:DV(e*.0176398574453108-t*.0427706132578085+.9421031212354739*r)};return i!==void 0&&(n.alpha=i),n},JV=Kxt,jue=1.09929682680944,Jxt=.018053968510807,FV=(e=0)=>{let t=Math.abs(e);return t{let t=FV(e.r),r=FV(e.g),i=FV(e.b),n={mode:"xyz65",x:.6369580483012911*t+.1446169035862083*r+.1688809751641721*i,y:.262700212011267*t+.6779980715188708*r+.059301716469862*i,z:0*t+.0280726930490874*r+1.0609850577107909*i};return e.alpha!==void 0&&(n.alpha=e.alpha),n},QV=Qxt,ebt=Ql(Zs({},jx),{mode:"rec2020",fromMode:{xyz65:JV,rgb:e=>JV(xg(e))},toMode:{xyz65:QV,rgb:e=>bg(QV(e))},parse:["rec2020"],serialize:"rec2020"}),Jfe=ebt,Gx=.0037930732552754493,Qfe=Math.cbrt(Gx),LV=e=>Math.cbrt(e)-Qfe,tbt=e=>{let{r:t,g:r,b:i,alpha:n}=Wx(e),a=LV(.3*t+.622*r+.078*i+Gx),o=LV(.23*t+.692*r+.078*i+Gx),s=LV(.2434226892454782*t+.2047674442449682*r+.5518098665095535*i+Gx),l={mode:"xyb",x:(a-o)/2,y:(a+o)/2,b:s-(a+o)/2};return n!==void 0&&(l.alpha=n),l},ece=tbt,PV=e=>Math.pow(e+Qfe,3),rbt=({x:e,y:t,b:r,alpha:i})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let n=PV(e+t)-Gx,a=PV(t-e)-Gx,o=PV(r+t)-Gx,s=$x({r:11.031566904639861*n-9.866943908131562*a-.16462299650829934*o,g:-3.2541473810744237*n+4.418770377582723*a-.16462299650829934*o,b:-3.6588512867136815*n+2.7129230459360922*a+1.9459282407775895*o});return i!==void 0&&(s.alpha=i),s},tce=rbt,ibt={mode:"xyb",channels:["x","y","b","alpha"],parse:["--xyb"],serialize:"--xyb",toMode:{rgb:tce},fromMode:{rgb:ece},ranges:{x:[-.0154,.0281],y:[0,.8453],b:[-.2778,.388]},interpolate:{x:ws,y:ws,b:ws,alpha:{use:ws,fixup:mh}}},rce=ibt,nbt={mode:"xyz50",parse:["xyz-d50"],serialize:"xyz-d50",toMode:{rgb:aw,lab:aF},fromMode:{rgb:ow,lab:nF},channels:["x","y","z","alpha"],ranges:{x:[0,.964],y:[0,.999],z:[0,.825]},interpolate:{x:ws,y:ws,z:ws,alpha:{use:ws,fixup:mh}}},ice=nbt,abt=e=>{let{x:t,y:r,z:i,alpha:n}=e;t===void 0&&(t=0),r===void 0&&(r=0),i===void 0&&(i=0);let a={mode:"xyz50",x:1.0479298208405488*t+.0229467933410191*r-.0501922295431356*i,y:.0296278156881593*t+.990434484573249*r-.0170738250293851*i,z:-.0092430581525912*t+.0150551448965779*r+.7518742899580008*i};return n!==void 0&&(a.alpha=n),a},nce=abt,obt=e=>{let{x:t,y:r,z:i,alpha:n}=e;t===void 0&&(t=0),r===void 0&&(r=0),i===void 0&&(i=0);let a={mode:"xyz65",x:.9554734527042182*t-.0230985368742614*r+.0632593086610217*i,y:-.0283697069632081*t+1.0099954580058226*r+.021041398966943*i,z:.0123140016883199*t-.0205076964334779*r+1.3303659366080753*i};return n!==void 0&&(a.alpha=n),a},ace=obt,sbt={mode:"xyz65",toMode:{rgb:bg,xyz50:nce},fromMode:{rgb:xg,xyz50:ace},ranges:{x:[0,.95],y:[0,1],z:[0,1.088]},channels:["x","y","z","alpha"],parse:["xyz","xyz-d65"],serialize:"xyz-d65",interpolate:{x:ws,y:ws,z:ws,alpha:{use:ws,fixup:mh}}},oce=sbt,lbt=({r:e,g:t,b:r,alpha:i})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let n={mode:"yiq",y:.29889531*e+.58662247*t+.11448223*r,i:.59597799*e-.2741761*t-.32180189*r,q:.21147017*e-.52261711*t+.31114694*r};return i!==void 0&&(n.alpha=i),n},sce=lbt,ubt=({y:e,i:t,q:r,alpha:i})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let n={mode:"rgb",r:e+.95608445*t+.6208885*r,g:e-.27137664*t-.6486059*r,b:e-1.10561724*t+1.70250126*r};return i!==void 0&&(n.alpha=i),n},lce=ubt,fbt={mode:"yiq",toMode:{rgb:lce},fromMode:{rgb:sce},channels:["y","i","q","alpha"],parse:["--yiq"],serialize:"--yiq",ranges:{i:[-.595,.595],q:[-.522,.522]},interpolate:{y:ws,i:ws,q:ws,alpha:{use:ws,fixup:mh}}},uce=fbt,cbt=(e,t)=>Math.round(e*(t=Math.pow(10,t)))/t,hbt=(e=4)=>t=>typeof t=="number"?cbt(t,e):t,fce=hbt,ZT=fce(2),JT=e=>Math.max(0,Math.min(1,e||0)),Hx=e=>Math.round(JT(e)*255),AU=Lf("rgb"),dbt=Lf("hsl"),TU=e=>{if(e===void 0)return;let t=Hx(e.r),r=Hx(e.g),i=Hx(e.b);return"#"+(1<<24|t<<16|r<<8|i).toString(16).slice(1)},cce=e=>{if(e===void 0)return;let t=Hx(e.alpha!==void 0?e.alpha:1);return TU(e)+(256|t).toString(16).slice(1)},hce=e=>{if(e===void 0)return;let t=Hx(e.r),r=Hx(e.g),i=Hx(e.b);return e.alpha===void 0||e.alpha===1?`rgb(${t}, ${r}, ${i})`:`rgba(${t}, ${r}, ${i}, ${ZT(JT(e.alpha))})`},dce=e=>{if(e===void 0)return;let t=ZT(e.h||0),r=ZT(JT(e.s)*100)+"%",i=ZT(JT(e.l)*100)+"%";return e.alpha===void 0||e.alpha===1?`hsl(${t}, ${r}, ${i})`:`hsla(${t}, ${r}, ${i}, ${ZT(JT(e.alpha))})`},pbt=e=>{let t=qv(e);if(!t)return;let r=B0(t.mode);if(!r.serialize||typeof r.serialize=="string"){let i=`color(${r.serialize||`--${t.mode}`} `;return r.channels.forEach((n,a)=>{n!=="alpha"&&(i+=(a?" ":"")+(t[n]!==void 0?t[n]:"none"))}),t.alpha!==void 0&&t.alpha<1&&(i+=` / ${t.alpha}`),i+")"}if(typeof r.serialize=="function")return r.serialize(t)},vbt=e=>TU(AU(e)),mbt=e=>cce(AU(e)),ybt=e=>hce(AU(e)),gbt=e=>dce(dbt(e)),xbt={normal:(e,t)=>t,multiply:(e,t)=>e*t,screen:(e,t)=>e+t-e*t,"hard-light":(e,t)=>t<.5?e*2*t:2*t*(1-e)-1,overlay:(e,t)=>e<.5?t*2*e:2*e*(1-t)-1,darken:(e,t)=>Math.min(e,t),lighten:(e,t)=>Math.max(e,t),"color-dodge":(e,t)=>e===0?0:t===1?1:Math.min(1,e/(1-t)),"color-burn":(e,t)=>e===1?1:t===0?0:1-Math.min(1,(1-e)/t),"soft-light":(e,t)=>t<.5?e-(1-2*t)*e*(1-e):e+(2*t-1)*((e<.25?((16*e-12)*e+4)*e:Math.sqrt(e))-e),difference:(e,t)=>Math.abs(e-t),exclusion:(e,t)=>e+t-2*e*t},bbt=(e,t="normal",r="rgb")=>{let i=typeof t=="function"?t:xbt[t],n=Lf(r),a=B0(r).channels;return e.map(s=>{let l=n(s);return l.alpha===void 0&&(l.alpha=1),l}).reduce((s,l)=>{if(s===void 0)return l;let u=l.alpha+s.alpha*(1-l.alpha);return a.reduce((f,c)=>(c!=="alpha"&&(u===0?f[c]=0:(f[c]=l.alpha*(1-s.alpha)*l[c]+l.alpha*s.alpha*i(s[c],l[c])+(1-l.alpha)*s.alpha*s[c],f[c]=Math.max(0,Math.min(1,f[c]/u)))),f),{mode:r,alpha:u})})},_bt=bbt,wbt=([e,t])=>e+Math.random()*(t-e),Abt=e=>Object.keys(e).reduce((t,r)=>{let i=e[r];return t[r]=Array.isArray(i)?i:[i,i],t},{}),Tbt=(e="rgb",t={})=>{let r=B0(e),i=Abt(t);return r.channels.reduce((n,a)=>((i.alpha||a!=="alpha")&&(n[a]=wbt(i[a]||r.ranges[a])),n),{mode:e})},Mbt=Tbt,o6=(e,t="rgb",r=!1)=>{let i=t?B0(t).channels:null,n=t?Lf(t):qv;return a=>{let o=n(a);if(!o)return;let s=(i||B0(o.mode).channels).reduce((u,f)=>{let c=e(o[f],f,o,t);return c!==void 0&&!isNaN(c)&&(u[f]=c),u},{mode:o.mode});if(!r)return s;let l=qv(a);return l&&l.mode!==s.mode?Lf(l.mode)(s):s}},pce=(e,t,r)=>t!=="alpha"?(e||0)*(r.alpha!==void 0?r.alpha:1):e,vce=(e,t,r)=>t!=="alpha"&&r.alpha!==0?(e||0)/(r.alpha!==void 0?r.alpha:1):e,MU=(e=1,t=0)=>(r,i)=>i!=="alpha"?r*e+t:r,Sbt=(e=1,t=1,r=0)=>(i,n)=>n!=="alpha"?e*Math.pow(i,t)+r:i,Ebt=e=>{e[0]===void 0&&(e[0]=0),e[e.length-1]===void 0&&(e[e.length-1]=1);let t=1,r,i,n,a;for(;tt=>e<=0?1:e>=1?0:Math.pow(t,Math.log(.5)/Math.log(e)),mce=Cbt,VD=e=>typeof e=="function",Vx=e=>e&&typeof e=="object",Wue=e=>typeof e=="number",yce=(e,t="rgb",r,i)=>{let n=B0(t),a=Lf(t),o=[],s=[],l={};e.forEach(h=>{Array.isArray(h)?(o.push(a(h[0])),s.push(h[1])):Wue(h)||VD(h)?l[s.length]=h:(o.push(a(h)),s.push(void 0))}),kbt(s);let u=n.channels.reduce((h,d)=>{let p;return Vx(r)&&Vx(r[d])&&r[d].fixup?p=r[d].fixup:Vx(n.interpolate[d])&&n.interpolate[d].fixup?p=n.interpolate[d].fixup:p=v=>v,h[d]=p(o.map(v=>v[d])),h},{});if(i){let h=o.map((d,p)=>n.channels.reduce((v,y)=>(v[y]=u[y][p],v),{mode:t}));u=n.channels.reduce((d,p)=>(d[p]=h.map(v=>{let y=i(v[p],p,v,t);return isNaN(y)?void 0:y}),d),{})}let f=n.channels.reduce((h,d)=>{let p;return VD(r)?p=r:Vx(r)&&VD(r[d])?p=r[d]:Vx(r)&&Vx(r[d])&&r[d].use?p=r[d].use:VD(n.interpolate[d])?p=n.interpolate[d]:Vx(n.interpolate[d])&&(p=n.interpolate[d].use),h[d]=p(u[d]),h},{}),c=o.length-1;return h=>{if(h=Math.min(Math.max(0,h),1),h<=s[0])return o[0];if(h>s[c])return o[c];let d=0;for(;s[d]{let M=f[b](w);return M!==void 0&&(_[b]=M),_},{mode:t})}},Dbt=(e,t="rgb",r)=>yce(e,t,r),gce=(e,t)=>(r,i="rgb",n)=>{let a=t?o6(t,i):void 0,o=yce(r,i,n,e);return a?s=>a(o(s)):o},Fbt=gce(pce,vce),UD=(e,t)=>(e+t)%t,xce=(e,t,r,i,n)=>{let a=n*n,o=a*n;return((1-3*n+3*a-o)*e+(4-6*a+3*o)*t+(1+3*n+3*a-3*o)*r+o*i)/6},bce=e=>t=>{let r=e.length-1,i=t>=1?r-1:Math.max(0,Math.floor(t*r));return xce(i>0?e[i-1]:2*e[i]-e[i+1],e[i],e[i+1],it=>{let r=e.length-1,i=Math.floor(t*r);return xce(e[UD(i-1,e.length)],e[UD(i,e.length)],e[UD(i+1,e.length)],e[UD(i+2,e.length)],(t-i/r)*r)},wce=e=>{let t,r=e.length-1,i=new Array(r),n=new Array(r),a=new Array(r);for(i[1]=1/4,n[1]=(6*e[1]-e[0])/4,t=2;t0&&(a[r-1]=n[r-1]),t=r-2;t>0;--t)a[t]=n[t]-i[t]*a[t+1];return a},Lbt=e=>bce(wce(e)),Pbt=e=>_ce(wce(e)),ew=Math.sign,eU=Math.min,$d=Math.abs,SU=e=>{let t=e.length-1,r=[],i=[],n=[];for(let a=0;a0?.5*(e[a+1]-e[a-1])*t:void 0),n.push(a>0?(ew(r[a-1])+ew(r[a]))*eU($d(r[a-1]),$d(r[a]),.5*$d(i[a])):void 0);return[r,i,n]},EU=(e,t,r)=>{let i=e.length-1,n=i*i;return a=>{let o;a>=1?o=i-1:o=Math.max(0,Math.floor(a*i));let s=a-o/i,l=s*s,u=l*s;return(t[o]+t[o+1]-2*r[o])*n*u+(3*r[o]-2*t[o]-t[o+1])*i*l+t[o]*s+e[o]}},zbt=e=>{if(e.length<3)return ws(e);let t=e.length-1,[r,,i]=SU(e);return i[0]=r[0],i[t]=r[t-1],EU(e,i,r)},Ibt=e=>{if(e.length<3)return ws(e);let t=e.length-1,[r,i,n]=SU(e);return i[0]=(e[1]*2-e[0]*1.5-e[2]*.5)*t,i[t]=(e[t]*1.5-e[t-1]*2+e[t-2]*.5)*t,n[0]=i[0]*r[0]<=0?0:$d(i[0])>2*$d(r[0])?2*r[0]:i[0],n[t]=i[t]*r[t-1]<=0?0:$d(i[t])>2*$d(r[t-1])?2*r[t-1]:i[t],EU(e,n,r)},Rbt=e=>{let t=e.length-1,[r,i,n]=SU(e);i[0]=.5*(e[1]-e[t])*t,i[t]=.5*(e[0]-e[t-1])*t;let a=(e[0]-e[t])*t,o=a;return n[0]=(ew(a)+ew(r[0]))*eU($d(a),$d(r[0]),.5*$d(i[0])),n[t]=(ew(r[t-1])+ew(o))*eU($d(r[t-1]),$d(o),.5*$d(i[t])),EU(e,n,r)},Bbt=(e=1)=>e===1?t=>t:t=>Math.pow(t,e),Ace=Bbt,qbt=(e=2,t=1)=>{let r=Ace(t);if(e<2)return e<1?[]:[r(.5)];let i=[];for(let n=0;n{let t={mode:e.mode,r:Math.max(0,Math.min(e.r!==void 0?e.r:0,1)),g:Math.max(0,Math.min(e.g!==void 0?e.g:0,1)),b:Math.max(0,Math.min(e.b!==void 0?e.b:0,1))};return e.alpha!==void 0&&(t.alpha=e.alpha),t},Sce=e=>Mce(Tce(e)),Ece=e=>e!==void 0&&(e.r===void 0||e.r>=0&&e.r<=1)&&(e.g===void 0||e.g>=0&&e.g<=1)&&(e.b===void 0||e.b>=0&&e.b<=1);function kU(e){return Ece(Tce(e))}function lF(e="rgb"){let{gamut:t}=B0(e);if(!t)return i=>!0;let r=Lf(typeof t=="string"?t:e);return i=>Ece(r(i))}function Nbt(e){return e=qv(e),e===void 0||kU(e)?e:Lf(e.mode)(Sce(e))}function CU(e="rgb"){let{gamut:t}=B0(e);if(!t)return a=>qv(a);let r=typeof t=="string"?t:e,i=Lf(r),n=lF(r);return a=>{let o=qv(a);if(!o)return;let s=i(o);if(n(s))return o;let l=Mce(s);return o.mode===l.mode?l:Lf(o.mode)(l)}}function Vbt(e,t="lch",r="rgb"){e=qv(e);let i=r==="rgb"?kU:lF(r),n=r==="rgb"?Sce:CU(r);if(e===void 0||i(e))return e;let a=Lf(e.mode);e=Lf(t)(e);let o=Ql(Zs({},e),{c:0});if(!i(o))return a(n(o));let s=0,l=e.c!==void 0?e.c:0,u=B0(t).ranges.c,f=(u[1]-u[0])/Math.pow(2,13),c=o.c;for(;l-s>f;)o.c=s+(l-s)*.5,i(o)?(c=o.c,s=o.c):l=o.c;return a(i(o)?o:Ql(Zs({},o),{c}))}function Ubt(e="rgb",t="oklch",r=nw("oklch"),i=.02){let n=Lf(e),a=B0(e);if(!a.gamut)return f=>n(f);let o=lF(e),s=CU(e),l=Lf(t),{ranges:u}=B0(t);if(!u.l||!u.c)throw new Error("LCH-like space expected");return f=>{if(f=qv(f),f===void 0)return;let c=Zs({},l(f));if(c.l===void 0&&(c.l=0),c.c===void 0&&(c.c=0),c.l>=u.l[1]){let y=Ql(Zs({},a.white),{mode:e});return f.alpha!==void 0&&(y.alpha=f.alpha),y}if(c.l<=u.l[0]){let y=Ql(Zs({},a.black),{mode:e});return f.alpha!==void 0&&(y.alpha=f.alpha),y}if(o(c))return n(c);let h=0,d=c.c,p=(u.c[1]-u.c[0])/4e3,v=s(c);for(;d-h>p;)c.c=(h+d)*.5,v=s(c),o(c)||r&&i>0&&r(c,v)<=i?h=c.c:d=c.c;return n(o(c)?c:v)}}var Gbt=(e,t=nw(),r=i=>i)=>{let i=e.map((n,a)=>({color:r(n),i:a}));return(n,a=1,o=1/0)=>(isFinite(a)&&(a=Math.max(1,Math.min(a,i.length-1))),i.forEach(s=>{s.d=t(n,s.color)}),i.sort((s,l)=>s.d-l.d).slice(0,a).filter(s=>s.de[s.i]))},Hbt=Gbt,DU=e=>Math.max(e,0),FU=e=>Math.max(Math.min(e,1),0),jbt=(e,t,r)=>e===void 0||t===void 0?void 0:e+r*(t-e),Wbt=e=>{let t=1-FU(e);return[.393+.607*t,.769-.769*t,.189-.189*t,0,.349-.349*t,.686+.314*t,.168-.168*t,0,.272-.272*t,.534-.534*t,.131+.869*t,0,0,0,0,1]},$bt=e=>{let t=DU(e);return[.213+.787*t,.715-.715*t,.072-.072*t,0,.213-.213*t,.715+.285*t,.072-.072*t,0,.213-.213*t,.715-.715*t,.072+.928*t,0,0,0,0,1]},Ybt=e=>{let t=1-FU(e);return[.2126+.7874*t,.7152-.7152*t,.0722-.0722*t,0,.2126-.2126*t,.7152+.2848*t,.0722-.0722*t,0,.2126-.2126*t,.7152-.7152*t,.0722+.9278*t,0,0,0,0,1]},Xbt=e=>{let t=Math.PI*e/180,r=Math.cos(t),i=Math.sin(t);return[.213+r*.787-i*.213,.715-r*.715-i*.715,.072-r*.072+i*.928,0,.213-r*.213+i*.143,.715+r*.285+i*.14,.072-r*.072-i*.283,0,.213-r*.213-i*.787,.715-r*.715+i*.715,.072+r*.928+i*.072,0,0,0,0,1]},uF=(e,t,r=!1)=>{let i=Lf(t),n=B0(t).channels;return a=>{let o=i(a);if(!o)return;let s={mode:t},l,u=n.length;for(let c=0;c{let r=DU(e);return o6(MU(r),t,!0)},Kbt=(e=1,t="rgb")=>{let r=DU(e);return o6(MU(r,(1-r)/2),t,!0)},Jbt=(e=1,t="rgb")=>uF(Wbt(e),t,!0),Qbt=(e=1,t="rgb")=>uF($bt(e),t,!0),e_t=(e=1,t="rgb")=>uF(Ybt(e),t,!0),t_t=(e=1,t="rgb")=>{let r=FU(e);return o6((i,n)=>n==="alpha"?i:jbt(r,1-r,i),t,!0)},r_t=(e=0,t="rgb")=>uF(Xbt(e),t,!0),i_t=Lf("rgb"),n_t=[[1,0,-0,0,1,0,-0,-0,1],[.856167,.182038,-.038205,.029342,.955115,.015544,-.00288,-.001563,1.004443],[.734766,.334872,-.069637,.05184,.919198,.028963,-.004928,-.004209,1.009137],[.630323,.465641,-.095964,.069181,.890046,.040773,-.006308,-.007724,1.014032],[.539009,.579343,-.118352,.082546,.866121,.051332,-.007136,-.011959,1.019095],[.458064,.679578,-.137642,.092785,.846313,.060902,-.007494,-.016807,1.024301],[.38545,.769005,-.154455,.100526,.829802,.069673,-.007442,-.02219,1.029632],[.319627,.849633,-.169261,.106241,.815969,.07779,-.007025,-.028051,1.035076],[.259411,.923008,-.18242,.110296,.80434,.085364,-.006276,-.034346,1.040622],[.203876,.990338,-.194214,.112975,.794542,.092483,-.005222,-.041043,1.046265],[.152286,1.052583,-.204868,.114503,.786281,.099216,-.003882,-.048116,1.051998]],a_t=[[1,0,-0,0,1,0,-0,-0,1],[.866435,.177704,-.044139,.049567,.939063,.01137,-.003453,.007233,.99622],[.760729,.319078,-.079807,.090568,.889315,.020117,-.006027,.013325,.992702],[.675425,.43385,-.109275,.125303,.847755,.026942,-.00795,.018572,.989378],[.605511,.52856,-.134071,.155318,.812366,.032316,-.009376,.023176,.9862],[.547494,.607765,-.155259,.181692,.781742,.036566,-.01041,.027275,.983136],[.498864,.674741,-.173604,.205199,.754872,.039929,-.011131,.030969,.980162],[.457771,.731899,-.18967,.226409,.731012,.042579,-.011595,.034333,.977261],[.422823,.781057,-.203881,.245752,.709602,.044646,-.011843,.037423,.974421],[.392952,.82361,-.216562,.263559,.69021,.046232,-.01191,.040281,.97163],[.367322,.860646,-.227968,.280085,.672501,.047413,-.01182,.04294,.968881]],o_t=[[1,0,-0,0,1,0,-0,-0,1],[.92667,.092514,-.019184,.021191,.964503,.014306,.008437,.054813,.93675],[.89572,.13333,-.02905,.029997,.9454,.024603,.013027,.104707,.882266],[.905871,.127791,-.033662,.026856,.941251,.031893,.01341,.148296,.838294],[.948035,.08949,-.037526,.014364,.946792,.038844,.010853,.193991,.795156],[1.017277,.027029,-.044306,-.006113,.958479,.047634,.006379,.248708,.744913],[1.104996,-.046633,-.058363,-.032137,.971635,.060503,.001336,.317922,.680742],[1.193214,-.109812,-.083402,-.058496,.97941,.079086,-.002346,.403492,.598854],[1.257728,-.139648,-.118081,-.078003,.975409,.102594,-.003316,.501214,.502102],[1.278864,-.125333,-.153531,-.084748,.957674,.127074,-989e-6,.601151,.399838],[1.255528,-.076749,-.178779,-.078411,.930809,.147602,.004733,.691367,.3039]],LU=(e,t)=>{let r=Math.max(0,Math.min(1,t)),i=Math.round(r/.1),n=Math.round(r%.1),a=e[i];if(n>0&&iUx(a[l],o[l],n))}return o=>{let s=qv(o);if(s===void 0)return;let{r:l,g:u,b:f}=i_t(s),c={mode:"rgb",r:a[0]*l+a[1]*u+a[2]*f,g:a[3]*l+a[4]*u+a[5]*f,b:a[6]*l+a[7]*u+a[8]*f};return s.alpha!==void 0&&(c.alpha=s.alpha),Lf(s.mode)(c)}},s_t=(e=1)=>LU(n_t,e),l_t=(e=1)=>LU(a_t,e),u_t=(e=1)=>LU(o_t,e),f_t=e=>e*e*(3-2*e),c_t=e=>.5-Math.sin(Math.asin(1-2*e)/3),h_t=e=>e*e*e*(e*(e*6-15)+10),d_t=h_t,p_t=e=>(1-Math.cos(e*Math.PI))/2,v_t=p_t;function tU(e){let t=Lf("lrgb")(e);return .2126*t.r+.7152*t.g+.0722*t.b}function m_t(e,t){let r=tU(e),i=tU(t);return(Math.max(r,i)+.05)/(Math.min(r,i)+.05)}var y_t=uf(ofe),g_t=uf(cfe),x_t=uf(mfe),b_t=uf(yfe),__t=uf(bfe),w_t=uf(sU),A_t=uf(fU),T_t=uf(kfe),M_t=uf(Ffe),S_t=uf(Lfe),E_t=uf(Pfe),k_t=uf(oF),C_t=uf(Ife),D_t=uf(sF),F_t=uf(Bfe),L_t=uf(Nfe),P_t=uf(Vfe),z_t=uf(Ufe),I_t=uf(Hfe),R_t=uf(jfe),B_t=uf($fe),q_t=uf(Xfe),O_t=uf(Zfe),N_t=uf(Kfe),V_t=uf(Jfe),U_t=uf(jx),G_t=uf(rce),H_t=uf(ice),j_t=uf(oce),W_t=uf(uce)});var PU={};Fl(PU,{default:()=>Y_t});var $_t,Y_t,zU=ps(()=>{"use strict";$_t={format:{valType:"enumerated",values:["png","jpeg","webp","svg","full-json"],dflt:"png",description:"Sets the format of exported image."},width:{valType:"number",min:1,description:["Sets the exported image width.","Defaults to the value found in `layout.width`","If set to *null*, the exported image width will match the current graph width."].join(" ")},height:{valType:"number",min:1,description:["Sets the exported image height.","Defaults to the value found in `layout.height`","If set to *null*, the exported image height will match the current graph height."].join(" ")},scale:{valType:"number",min:0,dflt:1,description:["Sets a scaling for the generated image.","If set, all features of a graphs (e.g. text, line width)","are scaled, unlike simply setting","a bigger *width* and *height*."].join(" ")},setBackground:{valType:"any",dflt:!1,description:["Sets the image background mode.","By default, the image background is determined by `layout.paper_bgcolor`,","the *transparent* mode.","One might consider setting `setBackground` to *opaque*","when exporting a *jpeg* image as JPEGs do not support opacity."].join(" ")},imageDataOnly:{valType:"boolean",dflt:!1,description:["Determines whether or not the return value is prefixed by","the image format's corresponding 'data:image;' spec."].join(" ")}},Y_t=$_t});var _g=K((fqr,zce)=>{"use strict";var{format:X_t,width:Z_t,height:K_t,scale:J_t}=(zU(),ar(PU)).default,Dce=J_t,{dflt:uqr}=Dce,Q_t=CD(Dce,["dflt"]),Fce={staticPlot:{valType:"boolean",dflt:!1},typesetMath:{valType:"boolean",dflt:!0},plotlyServerURL:{valType:"string",dflt:"https://cloud.plotly.com/newchart"},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","map"],extras:[!0,!1],dflt:"gl3d+geo+map"},doubleClick:{valType:"enumerated",values:[!1,"reset","autosize","reset+autosize"],dflt:"reset+autosize"},doubleClickDelay:{valType:"number",dflt:500,min:0},showAxisDragHandles:{valType:"boolean",dflt:!0},showAxisRangeEntryBoxes:{valType:"boolean",dflt:!0},showTips:{valType:"boolean",dflt:!0},displayNotifier:{valType:"boolean",dflt:!0},displayModeBar:{valType:"enumerated",values:["hover",!0,!1],dflt:"hover"},showSendToCloud:{valType:"boolean",dflt:!0},modeBarButtonsToRemove:{valType:"any",dflt:[]},modeBarButtonsToAdd:{valType:"any",dflt:[]},modeBarButtons:{valType:"any",dflt:!1},toImageButtonOptions:{format:X_t,filename:{valType:"string"},width:Z_t,height:K_t,scale:Q_t},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/un/"},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},locale:{valType:"string",dflt:"en-US"},locales:{valType:"any",dflt:{}}},Lce={};function Pce(e,t){for(let r in e){let i=e[r];typeof i!="object"||i===null||(i.valType?"dflt"in i&&(t[r]=i.dflt):(t[r]||(t[r]={}),Pce(i,t[r])))}}Pce(Fce,Lce);zce.exports={configAttributes:Fce,dfltConfig:Lce}});var RU=K((hqr,Ice)=>{"use strict";var IU=No(),e3t=Gs(),s6=[];Ice.exports=function(e,t,r){var s;if(((s=r==null?void 0:r._context)==null?void 0:s.displayNotifier)===!1||s6.indexOf(e)!==-1)return;s6.push(e);var i=1e3;e3t(t)?i=t:t==="long"&&(i=3e3);var n=IU.select("body").selectAll(".plotly-notifier").data([0]);n.enter().append("div").classed("plotly-notifier",!0);var a=n.selectAll(".notifier-note").data(s6);function o(l){l.duration(700).style("opacity",0).each("end",function(u){var f=s6.indexOf(u);f!==-1&&s6.splice(f,1),IU.select(this).remove()})}a.enter().append("div").classed("notifier-note",!0).style("opacity",0).each(function(l){var u=IU.select(this);u.append("button").classed("notifier-close",!0).html("×").on("click",function(){u.transition().call(o)});for(var f=u.append("p"),c=l.split(//g),h=0;h{"use strict";var lw=_g().dfltConfig,BU=RU(),qU=Rce.exports={};qU.log=function(){var e;if(lw.logging>1){var t=["LOG:"];for(e=0;e1){var r=[];for(e=0;e"),"long")}};qU.warn=function(){var e;if(lw.logging>0){var t=["WARN:"];for(e=0;e0){var r=[];for(e=0;e"),"stick")}};qU.error=function(){var e;if(lw.logging>0){var t=["ERROR:"];for(e=0;e0){var r=[];for(e=0;e"),"stick")}}});var Nc=K(Yx=>{"use strict";Yx.defaults=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"];Yx.defaultLine="#444";Yx.lightLine="#eee";Yx.background="#fff";Yx.borderLine="#BEC8D9";Yx.lightFraction=1e3/11});var ko=K((vqr,jce)=>{"use strict";var{converter:Bce,formatHex:t3t,formatRgb:r3t,wcagContrast:i3t,wcagLuminance:n3t}=Cce(),{isArrayOrTypedArray:qce}=$h(),{warn:a3t}=Jm(),{background:u6,defaultLine:VU,defaults:o3t,lightLine:s3t}=Nc(),Oce=Bce("rgb"),l3t=Bce("hsl"),Nce=e=>{if(typeof e!="string")return;let t=e.trim().toLowerCase();if(!/^[0-9a-f]+$/.test(t))try{return Oce(t)}catch(r){return}},q0=e=>e>0?e>1?1:e:0,u3t={mode:"rgb",r:0,g:0,b:0,alpha:1},OU=e=>Math.round(e*255e6)/255e6,Vce=e=>Ql(Zs({},e),{r:OU(e.r),g:OU(e.g),b:OU(e.b)}),Yd=e=>r3t(Vce(e)),f3t=e=>t3t(Vce(e)),c3t=e=>{var t,r,i,n;return typeof e=="string"?`"${e}"`:qce(e)?`${(r=(t=e.constructor)==null?void 0:t.name)!=null?r:"Array"}(${e.length})`:typeof e=="object"?(n=(i=e.constructor)==null?void 0:i.name)!=null?n:"Object":`${typeof e} ${e}`},ac=(e,t)=>{var i;let r=Nce(e);return r?((i=r.alpha)!=null||(r.alpha=1),r):(!t&&e!=null&&a3t(`Invalid color specifier: ${c3t(e)}. Defaulting to "#000"`),u3t)},l6=e=>Yd(Ql(Zs({},ac(e)),{alpha:1})),h3t=e=>e?ac(e).alpha:0,Uce=e=>qce(e)&&e.length>2&&Number.isFinite(e[0])&&Number.isFinite(e[1])&&Number.isFinite(e[2]),d3t=e=>{let[t,r,i,n]=e,a=Math.max(t,r,i)>1?1/255:1,o=n!=null?n:1;return{mode:"rgb",r:t*a,g:r*a,b:i*a,alpha:o>1?o/255:o}},p3t=(e,t)=>{let r=Uce(e)?d3t(e):ac(e,!0),i=[q0(r.r),q0(r.g),q0(r.b),q0(r.alpha)];return t==="uint8"||t==="uint8_clamped"?Uint8Array.from(i,n=>Math.round(n*255)):t==="float32"?Float32Array.from(i):t==="float64"?Float64Array.from(i):i},v3t=(e,t)=>Yd(Ql(Zs({},ac(e)),{alpha:q0(t)})),Gce=(e,t)=>{let r=ac(e),i=r.alpha;if(i===1)return Yd(r);let n=ac(t||u6),a=n.alpha,o=(s,l)=>(a===1?l:1-a+l*a)*(1-i)+s*i;return Yd({mode:"rgb",r:o(r.r,n.r),g:o(r.g,n.g),b:o(r.b,n.b)})},m3t=(e,t,r)=>{let i=ac(e),n=ac(t),a=(o,s)=>r*o+(1-r)*s;return Yd({mode:"rgb",r:a(i.r,n.r),g:a(i.g,n.g),b:a(i.b,n.b)})},NU=(e,t)=>{let r=ac(e),i=l3t(r)||{mode:"hsl",h:0,s:0,l:0};return Yd(Oce(Ql(Zs({},i),{l:q0((i.l*100+t)/100),alpha:r.alpha})))},fF=(e,t)=>i3t(ac(e),ac(t)),Hce=e=>fF(e,u6)>fF(e,VU),y3t=Yd(ac(u6)),g3t=Yd(ac(VU)),x3t=(e,t,r)=>(ac(e).alpha!==1&&(e=Gce(e,u6)),Hce(e)?t?NU(e,t):y3t:r?NU(e,-r):g3t),b3t=(e,t)=>{e.style({stroke:l6(t),"stroke-opacity":ac(t).alpha})},_3t=(e,t)=>{e.style({fill:l6(t),"fill-opacity":ac(t).alpha})},w3t=(e,t)=>!!(e&&t&&l6(e)===l6(t)),A3t=e=>Nce(e)!==void 0,T3t=(e,t)=>{t=t===0?0:t||10;let r=ac(e),i=t/100;return Yd(Ql(Zs({},r),{r:q0(r.r+i),g:q0(r.g+i),b:q0(r.b+i)}))},M3t=(e,t,r)=>{let i=ac(e),n=ac(t),a=r/100,o=n.alpha-i.alpha,s=2*a-1,l=((s*o===-1?s:(s+o)/(1+s*o))+1)/2,u=1-l,f=(c,h)=>u*c+l*h;return Yd({mode:"rgb",r:f(i.r,n.r),g:f(i.g,n.g),b:f(i.b,n.b),alpha:i.alpha*(1-a)+n.alpha*a})},S3t=(e,t=["#000","#fff"])=>{let r,i=-1/0;for(let n of t){let a=fF(e,n);a>i&&(i=a,r=Yd(ac(n)))}return r},E3t=e=>Yd(ac(e)),k3t=e=>f3t(ac(e)).toUpperCase(),C3t=e=>{let t=ac(e);return[q0(t.r)*255,q0(t.g)*255,q0(t.b)*255,q0(t.alpha)]},D3t=([e,t,r,i])=>Yd({mode:"rgb",r:e/255,g:t/255,b:r/255,alpha:i}),F3t=e=>{let t=ac(e);return n3t({mode:"rgb",r:q0(t.r),g:q0(t.g),b:q0(t.b)})};jce.exports={addOpacity:v3t,adjustLightness:NU,background:u6,brighten:T3t,combine:Gce,contrast:x3t,defaultLine:VU,defaults:o3t,equals:w3t,fill:_3t,hexString:k3t,interpolate:m3t,isChannelArray:Uce,isDark:Hce,isValid:A3t,lightLine:s3t,luminosity:F3t,mix:M3t,mostReadable:S3t,normalize:p3t,opacity:h3t,parse:ac,rgb:l6,rgbaArray:C3t,rgbaArrayToString:D3t,rgbaString:E3t,stroke:b3t,wcagContrast:fF}});var Xx=K((yqr,Yce)=>{"use strict";var L3t=ko(),cF={Greys:[[0,"rgb(0,0,0)"],[1,"rgb(255,255,255)"]],YlGnBu:[[0,"rgb(8,29,88)"],[.125,"rgb(37,52,148)"],[.25,"rgb(34,94,168)"],[.375,"rgb(29,145,192)"],[.5,"rgb(65,182,196)"],[.625,"rgb(127,205,187)"],[.75,"rgb(199,233,180)"],[.875,"rgb(237,248,217)"],[1,"rgb(255,255,217)"]],Greens:[[0,"rgb(0,68,27)"],[.125,"rgb(0,109,44)"],[.25,"rgb(35,139,69)"],[.375,"rgb(65,171,93)"],[.5,"rgb(116,196,118)"],[.625,"rgb(161,217,155)"],[.75,"rgb(199,233,192)"],[.875,"rgb(229,245,224)"],[1,"rgb(247,252,245)"]],YlOrRd:[[0,"rgb(128,0,38)"],[.125,"rgb(189,0,38)"],[.25,"rgb(227,26,28)"],[.375,"rgb(252,78,42)"],[.5,"rgb(253,141,60)"],[.625,"rgb(254,178,76)"],[.75,"rgb(254,217,118)"],[.875,"rgb(255,237,160)"],[1,"rgb(255,255,204)"]],Bluered:[[0,"rgb(0,0,255)"],[1,"rgb(255,0,0)"]],RdBu:[[0,"rgb(5,10,172)"],[.35,"rgb(106,137,247)"],[.5,"rgb(190,190,190)"],[.6,"rgb(220,170,132)"],[.7,"rgb(230,145,90)"],[1,"rgb(178,10,28)"]],Reds:[[0,"rgb(220,220,220)"],[.2,"rgb(245,195,157)"],[.4,"rgb(245,160,105)"],[1,"rgb(178,10,28)"]],Blues:[[0,"rgb(5,10,172)"],[.35,"rgb(40,60,190)"],[.5,"rgb(70,100,245)"],[.6,"rgb(90,120,245)"],[.7,"rgb(106,137,247)"],[1,"rgb(220,220,220)"]],Picnic:[[0,"rgb(0,0,255)"],[.1,"rgb(51,153,255)"],[.2,"rgb(102,204,255)"],[.3,"rgb(153,204,255)"],[.4,"rgb(204,204,255)"],[.5,"rgb(255,255,255)"],[.6,"rgb(255,204,255)"],[.7,"rgb(255,153,255)"],[.8,"rgb(255,102,204)"],[.9,"rgb(255,102,102)"],[1,"rgb(255,0,0)"]],Rainbow:[[0,"rgb(150,0,90)"],[.125,"rgb(0,0,200)"],[.25,"rgb(0,25,255)"],[.375,"rgb(0,152,255)"],[.5,"rgb(44,255,150)"],[.625,"rgb(151,255,0)"],[.75,"rgb(255,234,0)"],[.875,"rgb(255,111,0)"],[1,"rgb(255,0,0)"]],Portland:[[0,"rgb(12,51,131)"],[.25,"rgb(10,136,186)"],[.5,"rgb(242,211,56)"],[.75,"rgb(242,143,56)"],[1,"rgb(217,30,30)"]],Jet:[[0,"rgb(0,0,131)"],[.125,"rgb(0,60,170)"],[.375,"rgb(5,255,255)"],[.625,"rgb(255,255,0)"],[.875,"rgb(250,0,0)"],[1,"rgb(128,0,0)"]],Hot:[[0,"rgb(0,0,0)"],[.3,"rgb(230,0,0)"],[.6,"rgb(255,210,0)"],[1,"rgb(255,255,255)"]],Blackbody:[[0,"rgb(0,0,0)"],[.2,"rgb(230,0,0)"],[.4,"rgb(230,210,0)"],[.7,"rgb(255,255,255)"],[1,"rgb(160,200,255)"]],Earth:[[0,"rgb(0,0,130)"],[.1,"rgb(0,180,180)"],[.2,"rgb(40,210,40)"],[.4,"rgb(230,230,50)"],[.6,"rgb(120,70,20)"],[1,"rgb(255,255,255)"]],Electric:[[0,"rgb(0,0,0)"],[.15,"rgb(30,0,100)"],[.4,"rgb(120,0,100)"],[.6,"rgb(160,90,0)"],[.8,"rgb(230,200,0)"],[1,"rgb(255,250,220)"]],Viridis:[[0,"#440154"],[.06274509803921569,"#48186a"],[.12549019607843137,"#472d7b"],[.18823529411764706,"#424086"],[.25098039215686274,"#3b528b"],[.3137254901960784,"#33638d"],[.3764705882352941,"#2c728e"],[.4392156862745098,"#26828e"],[.5019607843137255,"#21918c"],[.5647058823529412,"#1fa088"],[.6274509803921569,"#28ae80"],[.6901960784313725,"#3fbc73"],[.7529411764705882,"#5ec962"],[.8156862745098039,"#84d44b"],[.8784313725490196,"#addc30"],[.9411764705882353,"#d8e219"],[1,"#fde725"]],Cividis:[[0,"rgb(0,32,76)"],[.058824,"rgb(0,42,102)"],[.117647,"rgb(0,52,110)"],[.176471,"rgb(39,63,108)"],[.235294,"rgb(60,74,107)"],[.294118,"rgb(76,85,107)"],[.352941,"rgb(91,95,109)"],[.411765,"rgb(104,106,112)"],[.470588,"rgb(117,117,117)"],[.529412,"rgb(131,129,120)"],[.588235,"rgb(146,140,120)"],[.647059,"rgb(161,152,118)"],[.705882,"rgb(176,165,114)"],[.764706,"rgb(192,177,109)"],[.823529,"rgb(209,191,102)"],[.882353,"rgb(225,204,92)"],[.941176,"rgb(243,219,79)"],[1,"rgb(255,233,69)"]]},Wce=cF.RdBu;function P3t(e,t){if(t||(t=Wce),!e)return t;function r(){try{e=cF[e]||JSON.parse(e)}catch(i){e=t}}return typeof e=="string"&&(r(),typeof e=="string"&&r()),$ce(e)?e:t}function $ce(e){var t=0;if(!Array.isArray(e)||e.length<2||!e[0]||!e[e.length-1]||+e[0][0]!=0||+e[e.length-1][0]!=1)return!1;for(var r=0;rB3t,HIDE_PLACEHOLDER:()=>R3t,SHOW_PLACEHOLDER:()=>I3t});var I3t,R3t,B3t,ey=ps(()=>{"use strict";I3t=100,R3t=1e3,B3t=.2});var f6={};Fl(f6,{counter:()=>Zx});function Zx(e,t="",r,i){let n=t+(r?"":"$"),a=i===!1?"":"^";return e==="xy"?new RegExp(a+"x"+UU+"y"+UU+n):new RegExp(a+e+UU+n)}var UU,uw=ps(()=>{"use strict";UU="([2-9]|[1-9][0-9]+)?"});var Kce=K(Ad=>{"use strict";var GU=Gs(),Xce=Os().extendFlat,q3t=Au(),O3t=Xx(),HU=ko(),N3t=(ey(),ar(Qm)).DESELECTDIM,fw=NT(),Zce=(uw(),ar(f6)).counter,V3t=(J3(),ar(K3)).modHalf,Ov=$h().isArrayOrTypedArray,wg=$h().isTypedArraySpec,Ag=$h().decodeTypedArraySpec;Ad.valObjectMeta={data_array:{coerceFunction:function(e,t,r){t.set(Ov(e)?e:wg(e)?Ag(e):r)}},enumerated:{coerceFunction:function(e,t,r,i){i.coerceNumber&&(e=+e),i.values.indexOf(e)===-1?t.set(r):t.set(e)},validateFunction:function(e,t){t.coerceNumber&&(e=+e);for(var r=t.values,i=0;ia===!0||a===!1;n(e)||i.arrayOk&&Array.isArray(e)&&e.length>0&&e.every(n)?t.set(e):t.set(r)}},number:{coerceFunction:function(e,t,r,i){wg(e)&&(e=Ag(e)),!GU(e)||i.min!==void 0&&ei.max?t.set(r):t.set(+e)}},integer:{coerceFunction:function(e,t,r,i){if((i.extras||[]).indexOf(e)!==-1){t.set(e);return}wg(e)&&(e=Ag(e)),e%1||!GU(e)||i.min!==void 0&&ei.max?t.set(r):t.set(+e)}},string:{coerceFunction:function(e,t,r,i){if(typeof e!="string"){var n=typeof e=="number";i.strict===!0||!n?t.set(r):t.set(String(e))}else i.noBlank&&!e?t.set(r):t.set(e)}},color:{coerceFunction:function(e,t,r){wg(e)&&(e=Ag(e)),HU.isValid(e)?t.set(e):t.set(r)}},colorlist:{coerceFunction:function(e,t,r){!Array.isArray(e)||!e.length?t.set(r):e.every(i=>HU.isValid(i))?t.set(e):t.set(r)}},colorscale:{coerceFunction:function(e,t,r){t.set(O3t.get(e,r))}},angle:{coerceFunction:function(e,t,r){wg(e)&&(e=Ag(e)),e==="auto"?t.set("auto"):GU(e)?t.set(V3t(+e,360)):t.set(r)}},subplotid:{coerceFunction:function(e,t,r,i){var n=i.regex||Zce(r);let a=o=>typeof o=="string"&&n.test(o);a(e)||i.arrayOk&&Ov(e)&&e.length>0&&e.every(a)?t.set(e):t.set(r)},validateFunction:function(e,t){var r=t.dflt;return e===r?!0:typeof e!="string"?!1:!!Zce(r).test(e)}},flaglist:{coerceFunction:function(e,t,r,i){if((i.extras||[]).indexOf(e)!==-1){t.set(e);return}if(typeof e!="string"){t.set(r);return}for(var n=e.split("+"),a=0;a{"use strict";Jce.exports=function(){}});var jU=K((bqr,Qce)=>{"use strict";Qce.exports=function(t,r){if(r instanceof RegExp){for(var i=r.toString(),n=0;n{ehe.exports=U3t;function U3t(){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}});var ihe=K((wqr,rhe)=>{rhe.exports=G3t;function G3t(e){var t=new Float32Array(16);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}});var ahe=K((Aqr,nhe)=>{nhe.exports=H3t;function H3t(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}});var WU=K((Tqr,ohe)=>{ohe.exports=j3t;function j3t(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}});var lhe=K((Mqr,she)=>{she.exports=W3t;function W3t(e,t){if(e===t){var r=t[1],i=t[2],n=t[3],a=t[6],o=t[7],s=t[11];e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=r,e[6]=t[9],e[7]=t[13],e[8]=i,e[9]=a,e[11]=t[14],e[12]=n,e[13]=o,e[14]=s}else e[0]=t[0],e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=t[1],e[5]=t[5],e[6]=t[9],e[7]=t[13],e[8]=t[2],e[9]=t[6],e[10]=t[10],e[11]=t[14],e[12]=t[3],e[13]=t[7],e[14]=t[11],e[15]=t[15];return e}});var fhe=K((Sqr,uhe)=>{uhe.exports=$3t;function $3t(e,t){var r=t[0],i=t[1],n=t[2],a=t[3],o=t[4],s=t[5],l=t[6],u=t[7],f=t[8],c=t[9],h=t[10],d=t[11],p=t[12],v=t[13],y=t[14],m=t[15],w=r*s-i*o,_=r*l-n*o,b=r*u-a*o,M=i*l-n*s,x=i*u-a*s,A=n*u-a*l,T=f*v-c*p,g=f*y-h*p,E=f*m-d*p,S=c*y-h*v,C=c*m-d*v,k=h*m-d*y,D=w*k-_*C+b*S+M*E-x*g+A*T;return D?(D=1/D,e[0]=(s*k-l*C+u*S)*D,e[1]=(n*C-i*k-a*S)*D,e[2]=(v*A-y*x+m*M)*D,e[3]=(h*x-c*A-d*M)*D,e[4]=(l*E-o*k-u*g)*D,e[5]=(r*k-n*E+a*g)*D,e[6]=(y*b-p*A-m*_)*D,e[7]=(f*A-h*b+d*_)*D,e[8]=(o*C-s*E+u*T)*D,e[9]=(i*E-r*C-a*T)*D,e[10]=(p*x-v*b+m*w)*D,e[11]=(c*b-f*x-d*w)*D,e[12]=(s*g-o*S-l*T)*D,e[13]=(r*S-i*g+n*T)*D,e[14]=(v*_-p*M-y*w)*D,e[15]=(f*M-c*_+h*w)*D,e):null}});var hhe=K((Eqr,che)=>{che.exports=Y3t;function Y3t(e,t){var r=t[0],i=t[1],n=t[2],a=t[3],o=t[4],s=t[5],l=t[6],u=t[7],f=t[8],c=t[9],h=t[10],d=t[11],p=t[12],v=t[13],y=t[14],m=t[15];return e[0]=s*(h*m-d*y)-c*(l*m-u*y)+v*(l*d-u*h),e[1]=-(i*(h*m-d*y)-c*(n*m-a*y)+v*(n*d-a*h)),e[2]=i*(l*m-u*y)-s*(n*m-a*y)+v*(n*u-a*l),e[3]=-(i*(l*d-u*h)-s*(n*d-a*h)+c*(n*u-a*l)),e[4]=-(o*(h*m-d*y)-f*(l*m-u*y)+p*(l*d-u*h)),e[5]=r*(h*m-d*y)-f*(n*m-a*y)+p*(n*d-a*h),e[6]=-(r*(l*m-u*y)-o*(n*m-a*y)+p*(n*u-a*l)),e[7]=r*(l*d-u*h)-o*(n*d-a*h)+f*(n*u-a*l),e[8]=o*(c*m-d*v)-f*(s*m-u*v)+p*(s*d-u*c),e[9]=-(r*(c*m-d*v)-f*(i*m-a*v)+p*(i*d-a*c)),e[10]=r*(s*m-u*v)-o*(i*m-a*v)+p*(i*u-a*s),e[11]=-(r*(s*d-u*c)-o*(i*d-a*c)+f*(i*u-a*s)),e[12]=-(o*(c*y-h*v)-f*(s*y-l*v)+p*(s*h-l*c)),e[13]=r*(c*y-h*v)-f*(i*y-n*v)+p*(i*h-n*c),e[14]=-(r*(s*y-l*v)-o*(i*y-n*v)+p*(i*l-n*s)),e[15]=r*(s*h-l*c)-o*(i*h-n*c)+f*(i*l-n*s),e}});var phe=K((kqr,dhe)=>{dhe.exports=X3t;function X3t(e){var t=e[0],r=e[1],i=e[2],n=e[3],a=e[4],o=e[5],s=e[6],l=e[7],u=e[8],f=e[9],c=e[10],h=e[11],d=e[12],p=e[13],v=e[14],y=e[15],m=t*o-r*a,w=t*s-i*a,_=t*l-n*a,b=r*s-i*o,M=r*l-n*o,x=i*l-n*s,A=u*p-f*d,T=u*v-c*d,g=u*y-h*d,E=f*v-c*p,S=f*y-h*p,C=c*y-h*v;return m*C-w*S+_*E+b*g-M*T+x*A}});var mhe=K((Cqr,vhe)=>{vhe.exports=Z3t;function Z3t(e,t,r){var i=t[0],n=t[1],a=t[2],o=t[3],s=t[4],l=t[5],u=t[6],f=t[7],c=t[8],h=t[9],d=t[10],p=t[11],v=t[12],y=t[13],m=t[14],w=t[15],_=r[0],b=r[1],M=r[2],x=r[3];return e[0]=_*i+b*s+M*c+x*v,e[1]=_*n+b*l+M*h+x*y,e[2]=_*a+b*u+M*d+x*m,e[3]=_*o+b*f+M*p+x*w,_=r[4],b=r[5],M=r[6],x=r[7],e[4]=_*i+b*s+M*c+x*v,e[5]=_*n+b*l+M*h+x*y,e[6]=_*a+b*u+M*d+x*m,e[7]=_*o+b*f+M*p+x*w,_=r[8],b=r[9],M=r[10],x=r[11],e[8]=_*i+b*s+M*c+x*v,e[9]=_*n+b*l+M*h+x*y,e[10]=_*a+b*u+M*d+x*m,e[11]=_*o+b*f+M*p+x*w,_=r[12],b=r[13],M=r[14],x=r[15],e[12]=_*i+b*s+M*c+x*v,e[13]=_*n+b*l+M*h+x*y,e[14]=_*a+b*u+M*d+x*m,e[15]=_*o+b*f+M*p+x*w,e}});var ghe=K((Dqr,yhe)=>{yhe.exports=K3t;function K3t(e,t,r){var i=r[0],n=r[1],a=r[2],o,s,l,u,f,c,h,d,p,v,y,m;return t===e?(e[12]=t[0]*i+t[4]*n+t[8]*a+t[12],e[13]=t[1]*i+t[5]*n+t[9]*a+t[13],e[14]=t[2]*i+t[6]*n+t[10]*a+t[14],e[15]=t[3]*i+t[7]*n+t[11]*a+t[15]):(o=t[0],s=t[1],l=t[2],u=t[3],f=t[4],c=t[5],h=t[6],d=t[7],p=t[8],v=t[9],y=t[10],m=t[11],e[0]=o,e[1]=s,e[2]=l,e[3]=u,e[4]=f,e[5]=c,e[6]=h,e[7]=d,e[8]=p,e[9]=v,e[10]=y,e[11]=m,e[12]=o*i+f*n+p*a+t[12],e[13]=s*i+c*n+v*a+t[13],e[14]=l*i+h*n+y*a+t[14],e[15]=u*i+d*n+m*a+t[15]),e}});var bhe=K((Fqr,xhe)=>{xhe.exports=J3t;function J3t(e,t,r){var i=r[0],n=r[1],a=r[2];return e[0]=t[0]*i,e[1]=t[1]*i,e[2]=t[2]*i,e[3]=t[3]*i,e[4]=t[4]*n,e[5]=t[5]*n,e[6]=t[6]*n,e[7]=t[7]*n,e[8]=t[8]*a,e[9]=t[9]*a,e[10]=t[10]*a,e[11]=t[11]*a,e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}});var whe=K((Lqr,_he)=>{_he.exports=Q3t;function Q3t(e,t,r,i){var n=i[0],a=i[1],o=i[2],s=Math.sqrt(n*n+a*a+o*o),l,u,f,c,h,d,p,v,y,m,w,_,b,M,x,A,T,g,E,S,C,k,D,L;return Math.abs(s)<1e-6?null:(s=1/s,n*=s,a*=s,o*=s,l=Math.sin(r),u=Math.cos(r),f=1-u,c=t[0],h=t[1],d=t[2],p=t[3],v=t[4],y=t[5],m=t[6],w=t[7],_=t[8],b=t[9],M=t[10],x=t[11],A=n*n*f+u,T=a*n*f+o*l,g=o*n*f-a*l,E=n*a*f-o*l,S=a*a*f+u,C=o*a*f+n*l,k=n*o*f+a*l,D=a*o*f-n*l,L=o*o*f+u,e[0]=c*A+v*T+_*g,e[1]=h*A+y*T+b*g,e[2]=d*A+m*T+M*g,e[3]=p*A+w*T+x*g,e[4]=c*E+v*S+_*C,e[5]=h*E+y*S+b*C,e[6]=d*E+m*S+M*C,e[7]=p*E+w*S+x*C,e[8]=c*k+v*D+_*L,e[9]=h*k+y*D+b*L,e[10]=d*k+m*D+M*L,e[11]=p*k+w*D+x*L,t!==e&&(e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e)}});var The=K((Pqr,Ahe)=>{Ahe.exports=ewt;function ewt(e,t,r){var i=Math.sin(r),n=Math.cos(r),a=t[4],o=t[5],s=t[6],l=t[7],u=t[8],f=t[9],c=t[10],h=t[11];return t!==e&&(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[4]=a*n+u*i,e[5]=o*n+f*i,e[6]=s*n+c*i,e[7]=l*n+h*i,e[8]=u*n-a*i,e[9]=f*n-o*i,e[10]=c*n-s*i,e[11]=h*n-l*i,e}});var She=K((zqr,Mhe)=>{Mhe.exports=twt;function twt(e,t,r){var i=Math.sin(r),n=Math.cos(r),a=t[0],o=t[1],s=t[2],l=t[3],u=t[8],f=t[9],c=t[10],h=t[11];return t!==e&&(e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=a*n-u*i,e[1]=o*n-f*i,e[2]=s*n-c*i,e[3]=l*n-h*i,e[8]=a*i+u*n,e[9]=o*i+f*n,e[10]=s*i+c*n,e[11]=l*i+h*n,e}});var khe=K((Iqr,Ehe)=>{Ehe.exports=rwt;function rwt(e,t,r){var i=Math.sin(r),n=Math.cos(r),a=t[0],o=t[1],s=t[2],l=t[3],u=t[4],f=t[5],c=t[6],h=t[7];return t!==e&&(e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=a*n+u*i,e[1]=o*n+f*i,e[2]=s*n+c*i,e[3]=l*n+h*i,e[4]=u*n-a*i,e[5]=f*n-o*i,e[6]=c*n-s*i,e[7]=h*n-l*i,e}});var Dhe=K((Rqr,Che)=>{Che.exports=iwt;function iwt(e,t,r){var i,n,a,o=r[0],s=r[1],l=r[2],u=Math.sqrt(o*o+s*s+l*l);return Math.abs(u)<1e-6?null:(u=1/u,o*=u,s*=u,l*=u,i=Math.sin(t),n=Math.cos(t),a=1-n,e[0]=o*o*a+n,e[1]=s*o*a+l*i,e[2]=l*o*a-s*i,e[3]=0,e[4]=o*s*a-l*i,e[5]=s*s*a+n,e[6]=l*s*a+o*i,e[7]=0,e[8]=o*l*a+s*i,e[9]=s*l*a-o*i,e[10]=l*l*a+n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e)}});var Lhe=K((Bqr,Fhe)=>{Fhe.exports=nwt;function nwt(e,t,r){var i=t[0],n=t[1],a=t[2],o=t[3],s=i+i,l=n+n,u=a+a,f=i*s,c=i*l,h=i*u,d=n*l,p=n*u,v=a*u,y=o*s,m=o*l,w=o*u;return e[0]=1-(d+v),e[1]=c+w,e[2]=h-m,e[3]=0,e[4]=c-w,e[5]=1-(f+v),e[6]=p+y,e[7]=0,e[8]=h+m,e[9]=p-y,e[10]=1-(f+d),e[11]=0,e[12]=r[0],e[13]=r[1],e[14]=r[2],e[15]=1,e}});var zhe=K((qqr,Phe)=>{Phe.exports=awt;function awt(e,t){return e[0]=t[0],e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=t[1],e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=t[2],e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var Rhe=K((Oqr,Ihe)=>{Ihe.exports=owt;function owt(e,t){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]=t[0],e[13]=t[1],e[14]=t[2],e[15]=1,e}});var qhe=K((Nqr,Bhe)=>{Bhe.exports=swt;function swt(e,t){var r=Math.sin(t),i=Math.cos(t);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=i,e[6]=r,e[7]=0,e[8]=0,e[9]=-r,e[10]=i,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var Nhe=K((Vqr,Ohe)=>{Ohe.exports=lwt;function lwt(e,t){var r=Math.sin(t),i=Math.cos(t);return e[0]=i,e[1]=0,e[2]=-r,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=r,e[9]=0,e[10]=i,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var Uhe=K((Uqr,Vhe)=>{Vhe.exports=uwt;function uwt(e,t){var r=Math.sin(t),i=Math.cos(t);return e[0]=i,e[1]=r,e[2]=0,e[3]=0,e[4]=-r,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}});var Hhe=K((Gqr,Ghe)=>{Ghe.exports=fwt;function fwt(e,t){var r=t[0],i=t[1],n=t[2],a=t[3],o=r+r,s=i+i,l=n+n,u=r*o,f=i*o,c=i*s,h=n*o,d=n*s,p=n*l,v=a*o,y=a*s,m=a*l;return e[0]=1-c-p,e[1]=f+m,e[2]=h-y,e[3]=0,e[4]=f-m,e[5]=1-u-p,e[6]=d+v,e[7]=0,e[8]=h+y,e[9]=d-v,e[10]=1-u-c,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var Whe=K((Hqr,jhe)=>{jhe.exports=cwt;function cwt(e,t,r,i,n,a,o){var s=1/(r-t),l=1/(n-i),u=1/(a-o);return e[0]=a*2*s,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=a*2*l,e[6]=0,e[7]=0,e[8]=(r+t)*s,e[9]=(n+i)*l,e[10]=(o+a)*u,e[11]=-1,e[12]=0,e[13]=0,e[14]=o*a*2*u,e[15]=0,e}});var Yhe=K((jqr,$he)=>{$he.exports=hwt;function hwt(e,t,r,i,n){var a=1/Math.tan(t/2),o=1/(i-n);return e[0]=a/r,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=a,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=(n+i)*o,e[11]=-1,e[12]=0,e[13]=0,e[14]=2*n*i*o,e[15]=0,e}});var Zhe=K((Wqr,Xhe)=>{Xhe.exports=dwt;function dwt(e,t,r,i){var n=Math.tan(t.upDegrees*Math.PI/180),a=Math.tan(t.downDegrees*Math.PI/180),o=Math.tan(t.leftDegrees*Math.PI/180),s=Math.tan(t.rightDegrees*Math.PI/180),l=2/(o+s),u=2/(n+a);return e[0]=l,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=u,e[6]=0,e[7]=0,e[8]=-((o-s)*l*.5),e[9]=(n-a)*u*.5,e[10]=i/(r-i),e[11]=-1,e[12]=0,e[13]=0,e[14]=i*r/(r-i),e[15]=0,e}});var Jhe=K(($qr,Khe)=>{Khe.exports=pwt;function pwt(e,t,r,i,n,a,o){var s=1/(t-r),l=1/(i-n),u=1/(a-o);return e[0]=-2*s,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*l,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*u,e[11]=0,e[12]=(t+r)*s,e[13]=(n+i)*l,e[14]=(o+a)*u,e[15]=1,e}});var e0e=K((Yqr,Qhe)=>{var vwt=WU();Qhe.exports=mwt;function mwt(e,t,r,i){var n,a,o,s,l,u,f,c,h,d,p=t[0],v=t[1],y=t[2],m=i[0],w=i[1],_=i[2],b=r[0],M=r[1],x=r[2];return Math.abs(p-b)<1e-6&&Math.abs(v-M)<1e-6&&Math.abs(y-x)<1e-6?vwt(e):(f=p-b,c=v-M,h=y-x,d=1/Math.sqrt(f*f+c*c+h*h),f*=d,c*=d,h*=d,n=w*h-_*c,a=_*f-m*h,o=m*c-w*f,d=Math.sqrt(n*n+a*a+o*o),d?(d=1/d,n*=d,a*=d,o*=d):(n=0,a=0,o=0),s=c*o-h*a,l=h*n-f*o,u=f*a-c*n,d=Math.sqrt(s*s+l*l+u*u),d?(d=1/d,s*=d,l*=d,u*=d):(s=0,l=0,u=0),e[0]=n,e[1]=s,e[2]=f,e[3]=0,e[4]=a,e[5]=l,e[6]=c,e[7]=0,e[8]=o,e[9]=u,e[10]=h,e[11]=0,e[12]=-(n*p+a*v+o*y),e[13]=-(s*p+l*v+u*y),e[14]=-(f*p+c*v+h*y),e[15]=1,e)}});var r0e=K((Xqr,t0e)=>{t0e.exports=ywt;function ywt(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]+")"}});var $U=K((Zqr,i0e)=>{i0e.exports={create:the(),clone:ihe(),copy:ahe(),identity:WU(),transpose:lhe(),invert:fhe(),adjoint:hhe(),determinant:phe(),multiply:mhe(),translate:ghe(),scale:bhe(),rotate:whe(),rotateX:The(),rotateY:She(),rotateZ:khe(),fromRotation:Dhe(),fromRotationTranslation:Lhe(),fromScaling:zhe(),fromTranslation:Rhe(),fromXRotation:qhe(),fromYRotation:Nhe(),fromZRotation:Uhe(),fromQuat:Hhe(),frustum:Whe(),perspective:Yhe(),perspectiveFromFieldOfView:Zhe(),ortho:Jhe(),lookAt:e0e(),str:r0e()}});var pF=K(Ac=>{"use strict";var gwt=$U();Ac.init2dArray=function(e,t){for(var r=new Array(e),i=0;i{"use strict";var xwt=No(),n0e=Jm(),bwt=pF(),_wt=$U();function wwt(e){var t;if(typeof e=="string"){if(t=document.getElementById(e),t===null)throw new Error("No DOM element with id '"+e+"' exists on the page.");return t}else if(e==null)throw new Error("DOM element provided is null or undefined");return e}function Awt(e){var t=xwt.select(e);return t.node()instanceof HTMLElement&&t.size()&&t.classed("js-plotly-plot")}function a0e(e){var t=e&&e.parentNode;t&&t.removeChild(e)}function Twt(e,t){o0e("global",e,t)}function o0e(e,t,r){var i="plotly.js-style-"+e,n=document.getElementById(i);if(!(n&&n.matches(".no-inline-styles"))){n||(n=document.createElement("style"),n.setAttribute("id",i),n.appendChild(document.createTextNode("")),document.head.appendChild(n));var a=n.sheet;a?a.insertRule?a.insertRule(t+"{"+r+"}",0):a.addRule?a.addRule(t,r,0):n0e.warn("addStyleRule failed"):n0e.warn("Cannot addRelatedStyleRule, probably due to strict CSP...")}}function Mwt(e){var t="plotly.js-style-"+e,r=document.getElementById(t);r&&a0e(r)}function Swt(e,t,r,i,n,a){var o=i.split(":"),s=n.split(":"),l="data-btn-style-event-added";a||(a=document),a.querySelectorAll(e).forEach(function(u){u._hoverStyle={activeStyleParts:o,inactiveStyleParts:s},u.getAttribute(l)||(u.addEventListener("mouseenter",function(){var f=this._hoverStyle,c=this.querySelector(r);c&&(c.style[f.activeStyleParts[0]]=f.activeStyleParts[1])}),u.addEventListener("mouseleave",function(){var f=this._hoverStyle,c=this.querySelector(r);c&&(t&&this.matches(t)?c.style[f.activeStyleParts[0]]=f.activeStyleParts[1]:c.style[f.inactiveStyleParts[0]]=f.inactiveStyleParts[1])}),u.setAttribute(l,!0))})}function Ewt(e){var t=l0e(e),r=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];return t.forEach(function(i){var n=s0e(i);if(n){var a=bwt.convertCssMatrix(n);r=_wt.multiply(r,r,a)}}),r}function s0e(e){var t=window.getComputedStyle(e,null),r=t.getPropertyValue("-webkit-transform")||t.getPropertyValue("-moz-transform")||t.getPropertyValue("-ms-transform")||t.getPropertyValue("-o-transform")||t.getPropertyValue("transform");return r==="none"?null:r.replace("matrix","").replace("3d","").slice(1,-1).split(",").map(function(i){return+i})}function l0e(e){for(var t=[];kwt(e);)t.push(e),e=e.parentNode,typeof ShadowRoot=="function"&&e instanceof ShadowRoot&&(e=e.host);return t}function kwt(e){return e&&(e instanceof Element||e instanceof HTMLElement)}function Cwt(e,t){return e&&t&&e.top===t.top&&e.left===t.left&&e.right===t.right&&e.bottom===t.bottom}u0e.exports={getGraphDiv:wwt,isPlotDiv:Awt,removeElement:a0e,addStyleRule:Twt,addRelatedStyleRule:o0e,deleteRelatedStyleRule:Mwt,setStyleOnHover:Swt,getFullTransformMatrix:Ewt,getElementTransformMatrix:s0e,getElementAndAncestors:l0e,equalDomRects:Cwt}});var h6=K((Qqr,f0e)=>{"use strict";f0e.exports={mode:{valType:"enumerated",dflt:"afterall",values:["immediate","next","afterall"]},direction:{valType:"enumerated",values:["forward","reverse"],dflt:"forward"},fromcurrent:{valType:"boolean",dflt:!1},frame:{duration:{valType:"number",min:0,dflt:500},redraw:{valType:"boolean",dflt:!0}},transition:{duration:{valType:"number",min:0,dflt:500,editType:"none"},easing:{valType:"enumerated",dflt:"cubic-in-out",values:["linear","quad","cubic","sin","exp","circle","elastic","back","bounce","linear-in","quad-in","cubic-in","sin-in","exp-in","circle-in","elastic-in","back-in","bounce-in","linear-out","quad-out","cubic-out","sin-out","exp-out","circle-out","elastic-out","back-out","bounce-out","linear-in-out","quad-in-out","cubic-in-out","sin-in-out","exp-in-out","circle-in-out","elastic-in-out","back-in-out","bounce-in-out"],editType:"none"},ordering:{valType:"enumerated",values:["layout first","traces first"],dflt:"layout first",editType:"none"}}}});var Ef=K((eOr,y0e)=>{"use strict";var h0e=Os().extendFlat,Dwt=yg(),d0e={valType:"flaglist",extras:["none"],flags:["calc","clearAxisTypes","plot","style","markerSize","colorbars"]},p0e={valType:"flaglist",extras:["none"],flags:["calc","plot","legend","ticks","axrange","layoutstyle","modebar","camera","arraydraw","colorbars"]},Fwt=d0e.flags.slice().concat(["fullReplot"]),Lwt=p0e.flags.slice().concat("layoutReplot");y0e.exports={traces:d0e,layout:p0e,traceFlags:function(){return c0e(Fwt)},layoutFlags:function(){return c0e(Lwt)},update:function(e,t){var r=t.editType;if(r&&r!=="none")for(var i=r.split("+"),n=0;n{"use strict";YU.dash={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",editType:"style"};YU.pattern={shape:{valType:"enumerated",values:["","/","\\","x","-","|","+","."],dflt:"",arrayOk:!0,editType:"style"},path:{valType:"string",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"}});var XU={};Fl(XU,{DATE_FORMAT_LINK:()=>zwt,FORMAT_LINK:()=>Pwt});var Pwt,zwt,ZU=ps(()=>{"use strict";Pwt="https://github.com/d3/d3-format/tree/v1.4.5#d3-format",zwt="https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format"});var yu=K(cw=>{"use strict";var{DATE_FORMAT_LINK:Iwt,FORMAT_LINK:Rwt}=(ZU(),ar(XU)),Bwt=["Variables that can't be found will be replaced with the specifier.",'For example, a template of "data: %{x}, %{y}" will result in a value of "data: 1, %{y}" if x is 1 and y is missing.',"Variables with an undefined value will be replaced with the fallback value."].join(" ");function qwt({supportOther:e}={}){return["Variables are inserted using %{variable},",'for example "y: %{y}"'+(e?" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown.":"."),`Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}".`,Rwt,"for details on the formatting syntax.",`Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}".`,Iwt,"for details on the date formatting syntax.",Bwt].join(" ")}cw.templateFormatStringDescription=qwt;cw.hovertemplateAttrs=({editType:e="none",arrayOk:t}={},r={})=>Zs({valType:"string",dflt:"",editType:e},t!==!1?{arrayOk:!0}:{});cw.texttemplateAttrs=({editType:e="calc",arrayOk:t}={},r={})=>Zs({valType:"string",dflt:"",editType:e},t!==!1?{arrayOk:!0}:{});cw.shapeTexttemplateAttrs=({editType:e="arraydraw",newshape:t}={},r={})=>({valType:"string",dflt:"",editType:e});cw.templatefallbackAttrs=({editType:e="none"}={})=>({valType:"any",dflt:"-",editType:e})});var yF=K((nOr,A0e)=>{"use strict";function Tg(e,t){return t?t.d2l(e):e}function g0e(e,t){return t?t.l2d(e):e}function Owt(e){return e.x0}function Nwt(e){return e.x1}function Vwt(e){return e.y0}function Uwt(e){return e.y1}function x0e(e){return e.x0shift||0}function b0e(e){return e.x1shift||0}function _0e(e){return e.y0shift||0}function w0e(e){return e.y1shift||0}function vF(e,t){return Tg(e.x1,t)+b0e(e)-Tg(e.x0,t)-x0e(e)}function mF(e,t,r){return Tg(e.y1,r)+w0e(e)-Tg(e.y0,r)-_0e(e)}function Gwt(e,t){return Math.abs(vF(e,t))}function Hwt(e,t,r){return Math.abs(mF(e,t,r))}function jwt(e,t,r){return e.type!=="line"?void 0:Math.sqrt(Math.pow(vF(e,t),2)+Math.pow(mF(e,t,r),2))}function Wwt(e,t){return g0e((Tg(e.x1,t)+b0e(e)+Tg(e.x0,t)+x0e(e))/2,t)}function $wt(e,t,r){return g0e((Tg(e.y1,r)+w0e(e)+Tg(e.y0,r)+_0e(e))/2,r)}function Ywt(e,t,r){return e.type!=="line"?void 0:mF(e,t,r)/vF(e,t)}var Xwt=["x0","x1","y0","y1","dy","height","ycenter"],Zwt=["x0","x1","y0","y1","dx","width","xcenter"];A0e.exports={x0:Owt,x1:Nwt,y0:Vwt,y1:Uwt,slope:Ywt,dx:vF,dy:mF,width:Gwt,height:Hwt,length:jwt,xcenter:Wwt,ycenter:$wt,simpleXVariables:Xwt,simpleYVariables:Zwt}});var S0e=K((aOr,M0e)=>{"use strict";var Kwt=Ef().overrideAll,Kx=Au(),T0e=lf(),Jwt=yh().dash,Mg=Os().extendFlat,{shapeTexttemplateAttrs:Qwt,templatefallbackAttrs:eAt}=yu(),tAt=yF();M0e.exports=Kwt({newshape:{visible:Mg({},Kx.visible,{}),showlegend:{valType:"boolean",dflt:!1},legend:Mg({},Kx.legend,{}),legendgroup:Mg({},Kx.legendgroup,{}),legendgrouptitle:{text:Mg({},Kx.legendgrouptitle.text,{}),font:T0e({})},legendrank:Mg({},Kx.legendrank,{}),legendwidth:Mg({},Kx.legendwidth,{}),line:{color:{valType:"color"},width:{valType:"number",min:0,dflt:4},dash:Mg({},Jwt,{dflt:"solid"})},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd"},opacity:{valType:"number",min:0,max:1,dflt:1},layer:{valType:"enumerated",values:["below","above","between"],dflt:"above"},drawdirection:{valType:"enumerated",values:["ortho","horizontal","vertical","diagonal"],dflt:"diagonal"},name:Mg({},Kx.name,{}),label:{text:{valType:"string",dflt:""},texttemplate:Qwt({newshape:!0},{keys:Object.keys(tAt)}),texttemplatefallback:eAt({editType:"arraydraw"}),font:T0e({}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"]},textangle:{valType:"angle",dflt:"auto"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto"},yanchor:{valType:"enumerated",values:["top","middle","bottom"]},padding:{valType:"number",dflt:3,min:0}}},activeshape:{fillcolor:{valType:"color",dflt:"rgb(255,0,255)",description:"Sets the color filling the active shape' interior."},opacity:{valType:"number",min:0,max:1,dflt:.5}}},"none","from-root")});var k0e=K((oOr,E0e)=>{"use strict";var rAt=yh().dash,iAt=Os().extendFlat;E0e.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:iAt({},rAt,{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"}}});var gF=K((sOr,C0e)=>{"use strict";C0e.exports=function(e){var t=e.editType;return{t:{valType:"number",dflt:0,editType:t},r:{valType:"number",dflt:0,editType:t},b:{valType:"number",dflt:0,editType:t},l:{valType:"number",dflt:0,editType:t},editType:t}}});var hw=K((lOr,P0e)=>{"use strict";var KU=lf(),nAt=h6(),xF=Nc(),D0e=S0e(),F0e=k0e(),aAt=gF(),L0e=Os().extendFlat,bF=KU({editType:"calc"});bF.family.dflt='"Open Sans", verdana, arial, sans-serif';bF.size.dflt=12;bF.color.dflt=xF.defaultLine;P0e.exports={font:bF,title:{text:{valType:"string",editType:"layoutstyle"},font:KU({editType:"layoutstyle"}),subtitle:{text:{valType:"string",editType:"layoutstyle"},font:KU({editType:"layoutstyle"}),editType:"layoutstyle"},xref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle"},yref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle"},x:{valType:"number",min:0,max:1,dflt:.5,editType:"layoutstyle"},y:{valType:"number",min:0,max:1,dflt:"auto",editType:"layoutstyle"},xanchor:{valType:"enumerated",dflt:"auto",values:["auto","left","center","right"],editType:"layoutstyle"},yanchor:{valType:"enumerated",dflt:"auto",values:["auto","top","middle","bottom"],editType:"layoutstyle"},pad:L0e(aAt({editType:"layoutstyle"}),{}),automargin:{valType:"boolean",dflt:!1,editType:"plot"},editType:"layoutstyle"},uniformtext:{mode:{valType:"enumerated",values:[!1,"hide","show"],dflt:!1,editType:"plot"},minsize:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"},autosize:{valType:"boolean",dflt:!1,editType:"none"},width:{valType:"number",min:10,dflt:700,editType:"plot"},height:{valType:"number",min:10,dflt:450,editType:"plot"},minreducedwidth:{valType:"number",min:2,dflt:64,editType:"plot"},minreducedheight:{valType:"number",min:2,dflt:64,editType:"plot"},margin:{l:{valType:"number",min:0,dflt:80,editType:"plot"},r:{valType:"number",min:0,dflt:80,editType:"plot"},t:{valType:"number",min:0,dflt:100,editType:"plot"},b:{valType:"number",min:0,dflt:80,editType:"plot"},pad:{valType:"number",min:0,dflt:0,editType:"plot"},autoexpand:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},computed:{valType:"any",editType:"none"},paper_bgcolor:{valType:"color",dflt:xF.background,editType:"plot"},plot_bgcolor:{valType:"color",dflt:xF.background,editType:"layoutstyle"},autotypenumbers:{valType:"enumerated",values:["convert types","strict"],dflt:"convert types",editType:"calc"},separators:{valType:"string",editType:"plot"},showlegend:{valType:"boolean",editType:"legend"},colorway:{valType:"colorlist",dflt:xF.defaults,editType:"calc"},datarevision:{valType:"any",editType:"calc"},uirevision:{valType:"any",editType:"none"},editrevision:{valType:"any",editType:"none"},selectionrevision:{valType:"any",editType:"none"},template:{valType:"any",editType:"calc"},newshape:D0e.newshape,activeshape:D0e.activeshape,newselection:F0e.newselection,activeselection:F0e.activeselection,meta:{valType:"any",arrayOk:!0,editType:"plot"},transition:L0e({},nAt.transition,{editType:"none"})}});var z0e=K(()=>{(function(){if(!document.getElementById("ce8d464691048653ffe3a57c6c18ab566e8366f186677868cf724621a857b4fe")){var e=document.createElement("style");e.id="ce8d464691048653ffe3a57c6c18ab566e8366f186677868cf724621a857b4fe",e.textContent='.maplibregl-map{font:12px/20px Helvetica Neue,Arial,Helvetica,sans-serif;overflow:hidden;position:relative;-webkit-tap-highlight-color:rgb(0 0 0/0);-webkit-touch-callout:none}.maplibregl-canvas{position:absolute;left:0;top:0}.maplibregl-map:fullscreen{width:100%;height:100%}.maplibregl-ctrl-group button.maplibregl-ctrl-compass{touch-action:none}.maplibregl-canvas-container.maplibregl-interactive,.maplibregl-ctrl-group button.maplibregl-ctrl-compass{cursor:grab;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-canvas-container.maplibregl-interactive.maplibregl-track-pointer{cursor:pointer}.maplibregl-canvas-container.maplibregl-interactive:active,.maplibregl-ctrl-group button.maplibregl-ctrl-compass:active{cursor:grabbing}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-canvas-container.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:pinch-zoom}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:none}.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures,.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-ctrl-bottom-left,.maplibregl-ctrl-bottom-right,.maplibregl-ctrl-top-left,.maplibregl-ctrl-top-right{position:absolute;pointer-events:none;z-index:2}.maplibregl-ctrl-top-left{top:0;left:0}.maplibregl-ctrl-top-right{top:0;right:0}.maplibregl-ctrl-bottom-left{bottom:0;left:0}.maplibregl-ctrl-bottom-right{right:0;bottom:0}.maplibregl-ctrl{clear:both;pointer-events:auto;transform:translate(0)}.maplibregl-ctrl-top-left .maplibregl-ctrl{margin:10px 0 0 10px;float:left}.maplibregl-ctrl-top-right .maplibregl-ctrl{margin:10px 10px 0 0;float:right}.maplibregl-ctrl-bottom-left .maplibregl-ctrl{margin:0 0 10px 10px;float:left}.maplibregl-ctrl-bottom-right .maplibregl-ctrl{margin:0 10px 10px 0;float:right}.maplibregl-ctrl-group{border-radius:4px;background:#fff}.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px rgba(0,0,0,.1)}@media (forced-colors:active){.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px ButtonText}}.maplibregl-ctrl-group button{width:29px;height:29px;display:block;padding:0;outline:none;border:0;box-sizing:border-box;background-color:transparent;cursor:pointer}.maplibregl-ctrl button{-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-ctrl-group button+button{border-top:1px solid #ddd}.maplibregl-ctrl button .maplibregl-ctrl-icon{display:block;width:100%;height:100%;background-repeat:no-repeat;background-position:50%}@media (forced-colors:active){.maplibregl-ctrl-icon{background-color:transparent}.maplibregl-ctrl-group button+button{border-top:1px solid ButtonText}}.maplibregl-ctrl button::-moz-focus-inner{border:0;padding:0}.maplibregl-ctrl-attrib-button:focus,.maplibregl-ctrl-group button:focus{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl button:disabled{cursor:not-allowed}.maplibregl-ctrl button:disabled .maplibregl-ctrl-icon{opacity:.25}@media (hover:hover){.maplibregl-ctrl button:not(:disabled):hover{background-color:rgba(0,0,0,.05)}}.maplibregl-ctrl button:not(:disabled):active{background-color:rgba(0,0,0,.05)}.maplibregl-ctrl-group button:focus:focus-visible{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl-group button:focus:not(:focus-visible){box-shadow:none}.maplibregl-ctrl-group button:focus:first-child{border-radius:4px 4px 0 0}.maplibregl-ctrl-group button:focus:last-child{border-radius:0 0 4px 4px}.maplibregl-ctrl-group button:focus:only-child{border-radius:inherit}.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M10%2013c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h9c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M14.5%208.5c-.75%200-1.5.75-1.5%201.5v3h-3c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h3v3c0%20.75.75%201.5%201.5%201.5S16%2019.75%2016%2019v-3h3c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013h-3v-3c0-.75-.75-1.5-1.5-1.5%22%2F%3E%3C%2Fsvg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M10%2013c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h9c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M14.5%208.5c-.75%200-1.5.75-1.5%201.5v3h-3c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h3v3c0%20.75.75%201.5%201.5%201.5S16%2019.75%2016%2019v-3h3c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013h-3v-3c0-.75-.75-1.5-1.5-1.5%22%2F%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M10%2013c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h9c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M14.5%208.5c-.75%200-1.5.75-1.5%201.5v3h-3c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h3v3c0%20.75.75%201.5%201.5%201.5S16%2019.75%2016%2019v-3h3c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013h-3v-3c0-.75-.75-1.5-1.5-1.5%22%2F%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M24%2016v5.5c0%201.75-.75%202.5-2.5%202.5H16v-1l3-1.5-4-5.5%201-1%205.5%204%201.5-3zM6%2016l1.5%203%205.5-4%201%201-4%205.5%203%201.5v1H7.5C5.75%2024%205%2023.25%205%2021.5V16zm7-11v1l-3%201.5%204%205.5-1%201-5.5-4L6%2013H5V7.5C5%205.75%205.75%205%207.5%205zm11%202.5c0-1.75-.75-2.5-2.5-2.5H16v1l3%201.5-4%205.5%201%201%205.5-4%201.5%203h1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M18.5%2016c-1.75%200-2.5.75-2.5%202.5V24h1l1.5-3%205.5%204%201-1-4-5.5%203-1.5v-1zM13%2018.5c0-1.75-.75-2.5-2.5-2.5H5v1l3%201.5L4%2024l1%201%205.5-4%201.5%203h1zm3-8c0%201.75.75%202.5%202.5%202.5H24v-1l-3-1.5L25%205l-1-1-5.5%204L17%205h-1zM10.5%2013c1.75%200%202.5-.75%202.5-2.5V5h-1l-1.5%203L5%204%204%205l4%205.5L5%2012v1z%22%2F%3E%3C%2Fsvg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M24%2016v5.5c0%201.75-.75%202.5-2.5%202.5H16v-1l3-1.5-4-5.5%201-1%205.5%204%201.5-3zM6%2016l1.5%203%205.5-4%201%201-4%205.5%203%201.5v1H7.5C5.75%2024%205%2023.25%205%2021.5V16zm7-11v1l-3%201.5%204%205.5-1%201-5.5-4L6%2013H5V7.5C5%205.75%205.75%205%207.5%205zm11%202.5c0-1.75-.75-2.5-2.5-2.5H16v1l3%201.5-4%205.5%201%201%205.5-4%201.5%203h1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M18.5%2016c-1.75%200-2.5.75-2.5%202.5V24h1l1.5-3%205.5%204%201-1-4-5.5%203-1.5v-1zM13%2018.5c0-1.75-.75-2.5-2.5-2.5H5v1l3%201.5L4%2024l1%201%205.5-4%201.5%203h1zm3-8c0%201.75.75%202.5%202.5%202.5H24v-1l-3-1.5L25%205l-1-1-5.5%204L17%205h-1zM10.5%2013c1.75%200%202.5-.75%202.5-2.5V5h-1l-1.5%203L5%204%204%205l4%205.5L5%2012v1z%22%2F%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M24%2016v5.5c0%201.75-.75%202.5-2.5%202.5H16v-1l3-1.5-4-5.5%201-1%205.5%204%201.5-3zM6%2016l1.5%203%205.5-4%201%201-4%205.5%203%201.5v1H7.5C5.75%2024%205%2023.25%205%2021.5V16zm7-11v1l-3%201.5%204%205.5-1%201-5.5-4L6%2013H5V7.5C5%205.75%205.75%205%207.5%205zm11%202.5c0-1.75-.75-2.5-2.5-2.5H16v1l3%201.5-4%205.5%201%201%205.5-4%201.5%203h1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M18.5%2016c-1.75%200-2.5.75-2.5%202.5V24h1l1.5-3%205.5%204%201-1-4-5.5%203-1.5v-1zM13%2018.5c0-1.75-.75-2.5-2.5-2.5H5v1l3%201.5L4%2024l1%201%205.5-4%201.5%203h1zm3-8c0%201.75.75%202.5%202.5%202.5H24v-1l-3-1.5L25%205l-1-1-5.5%204L17%205h-1zM10.5%2013c1.75%200%202.5-.75%202.5-2.5V5h-1l-1.5%203L5%204%204%205l4%205.5L5%2012v1z%22%2F%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22m10.5%2014%204-8%204%208z%22%2F%3E%3Cpath%20fill%3D%22%23ccc%22%20d%3D%22m10.5%2016%204%208%204-8z%22%2F%3E%3C%2Fsvg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22m10.5%2014%204-8%204%208z%22%2F%3E%3Cpath%20fill%3D%22%23ccc%22%20d%3D%22m10.5%2016%204%208%204-8z%22%2F%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22m10.5%2014%204-8%204%208z%22%2F%3E%3Cpath%20fill%3D%22%23ccc%22%20d%3D%22m10.5%2016%204%208%204-8z%22%2F%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-globe .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2222%22%20height%3D%2222%22%20fill%3D%22none%22%20stroke%3D%22%23333%22%20viewBox%3D%220%200%2022%2022%22%3E%3Ccircle%20cx%3D%2211%22%20cy%3D%2211%22%20r%3D%228.5%22%2F%3E%3Cpath%20d%3D%22M17.5%2011c0%204.819-3.02%208.5-6.5%208.5S4.5%2015.819%204.5%2011%207.52%202.5%2011%202.5s6.5%203.681%206.5%208.5Z%22%2F%3E%3Cpath%20d%3D%22M13.5%2011c0%202.447-.331%204.64-.853%206.206-.262.785-.562%201.384-.872%201.777-.314.399-.58.517-.775.517s-.461-.118-.775-.517c-.31-.393-.61-.992-.872-1.777C8.831%2015.64%208.5%2013.446%208.5%2011s.331-4.64.853-6.206c.262-.785.562-1.384.872-1.777.314-.399.58-.517.775-.517s.461.118.775.517c.31.393.61.992.872%201.777.522%201.565.853%203.76.853%206.206Z%22%2F%3E%3Cpath%20d%3D%22M11%207.5c-1.909%200-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3%201.3%200%200%201-.224-.138q.07-.058.224-.138c.299-.151.763-.302%201.379-.434C7.378%205.666%209.091%205.5%2011%205.5s3.622.166%204.845.428c.616.132%201.08.283%201.379.434.105.053.177.1.224.138q-.07.058-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm0%209c-1.909%200-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3%201.3%200%200%201-.224-.138%201.3%201.3%200%200%201%20.224-.138c.299-.151.763-.302%201.379-.434C7.378%2014.666%209.091%2014.5%2011%2014.5s3.622.166%204.845.428c.616.132%201.08.283%201.379.434.105.053.177.1.224.138a1.3%201.3%200%200%201-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm0-4c-2.46%200-4.672-.222-6.255-.574-.796-.177-1.406-.38-1.805-.59a1.5%201.5%200%200%201-.39-.272.3.3%200%200%201-.047-.064.3.3%200%200%201%20.048-.064c.066-.073.189-.167.389-.272.399-.21%201.009-.413%201.805-.59C6.328%209.722%208.54%209.5%2011%209.5s4.672.222%206.256.574c.795.177%201.405.38%201.804.59.2.105.323.2.39.272a.3.3%200%200%201%20.047.064.3.3%200%200%201-.048.064%201.4%201.4%200%200%201-.389.272c-.399.21-1.009.413-1.804.59-1.584.352-3.796.574-6.256.574Zm-8.501-1.51v.002zm0%20.018v.002zm17.002.002v-.002zm0-.018v-.002z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-globe-enabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2222%22%20height%3D%2222%22%20fill%3D%22none%22%20stroke%3D%22%2333b5e5%22%20viewBox%3D%220%200%2022%2022%22%3E%3Ccircle%20cx%3D%2211%22%20cy%3D%2211%22%20r%3D%228.5%22%2F%3E%3Cpath%20d%3D%22M17.5%2011c0%204.819-3.02%208.5-6.5%208.5S4.5%2015.819%204.5%2011%207.52%202.5%2011%202.5s6.5%203.681%206.5%208.5Z%22%2F%3E%3Cpath%20d%3D%22M13.5%2011c0%202.447-.331%204.64-.853%206.206-.262.785-.562%201.384-.872%201.777-.314.399-.58.517-.775.517s-.461-.118-.775-.517c-.31-.393-.61-.992-.872-1.777C8.831%2015.64%208.5%2013.446%208.5%2011s.331-4.64.853-6.206c.262-.785.562-1.384.872-1.777.314-.399.58-.517.775-.517s.461.118.775.517c.31.393.61.992.872%201.777.522%201.565.853%203.76.853%206.206Z%22%2F%3E%3Cpath%20d%3D%22M11%207.5c-1.909%200-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3%201.3%200%200%201-.224-.138q.07-.058.224-.138c.299-.151.763-.302%201.379-.434C7.378%205.666%209.091%205.5%2011%205.5s3.622.166%204.845.428c.616.132%201.08.283%201.379.434.105.053.177.1.224.138q-.07.058-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm0%209c-1.909%200-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3%201.3%200%200%201-.224-.138%201.3%201.3%200%200%201%20.224-.138c.299-.151.763-.302%201.379-.434C7.378%2014.666%209.091%2014.5%2011%2014.5s3.622.166%204.845.428c.616.132%201.08.283%201.379.434.105.053.177.1.224.138a1.3%201.3%200%200%201-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm0-4c-2.46%200-4.672-.222-6.255-.574-.796-.177-1.406-.38-1.805-.59a1.5%201.5%200%200%201-.39-.272.3.3%200%200%201-.047-.064.3.3%200%200%201%20.048-.064c.066-.073.189-.167.389-.272.399-.21%201.009-.413%201.805-.59C6.328%209.722%208.54%209.5%2011%209.5s4.672.222%206.256.574c.795.177%201.405.38%201.804.59.2.105.323.2.39.272a.3.3%200%200%201%20.047.064.3.3%200%200%201-.048.064%201.4%201.4%200%200%201-.389.272c-.399.21-1.009.413-1.804.59-1.584.352-3.796.574-6.256.574Zm-8.501-1.51v.002zm0%20.018v.002zm17.002.002v-.002zm0-.018v-.002z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-terrain .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2222%22%20height%3D%2222%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2022%2022%22%3E%3Cpath%20d%3D%22m1.754%2013.406%204.453-4.851%203.09%203.09%203.281%203.277.969-.969-3.309-3.312%203.844-4.121%206.148%206.886h1.082v-.855l-7.207-8.07-4.84%205.187L6.169%206.57l-5.48%205.965v.871ZM.688%2016.844h20.625v1.375H.688Zm0%200%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-terrain-enabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2222%22%20height%3D%2222%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2022%2022%22%3E%3Cpath%20d%3D%22m1.754%2013.406%204.453-4.851%203.09%203.09%203.281%203.277.969-.969-3.309-3.312%203.844-4.121%206.148%206.886h1.082v-.855l-7.207-8.07-4.84%205.187L6.169%206.57l-5.48%205.965v.871ZM.688%2016.844h20.625v1.375H.688Zm0%200%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23aaa%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3Cpath%20fill%3D%22red%22%20d%3D%22m14%205%201%201-9%209-1-1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23e58978%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23e54e33%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-waiting .maplibregl-ctrl-icon{animation:maplibregl-spin 2s linear infinite}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23999%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3Cpath%20fill%3D%22red%22%20d%3D%22m14%205%201%201-9%209-1-1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23e58978%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23e54e33%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23666%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3Cpath%20fill%3D%22red%22%20d%3D%22m14%205%201%201-9%209-1-1z%22%2F%3E%3C%2Fsvg%3E")}}@keyframes maplibregl-spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}a.maplibregl-ctrl-logo{width:88px;height:23px;margin:0 0 -4px -4px;display:block;background-repeat:no-repeat;cursor:pointer;overflow:hidden;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2288%22%20height%3D%2223%22%20fill%3D%22none%22%3E%3Cpath%20fill%3D%22%23000%22%20fill-opacity%3D%22.4%22%20fill-rule%3D%22evenodd%22%20d%3D%22M17.408%2016.796h-1.827l2.501-12.095h.198l3.324%206.533.988%202.19.988-2.19%203.258-6.533h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.929%205.644h-.098l-2.914-5.644-.757-1.71-.345%201.71zm1.958-3.42-.726%203.663a1.255%201.255%200%200%201-1.232%201.011h-1.827a1.255%201.255%200%200%201-1.229-1.509l2.501-12.095a1.255%201.255%200%200%201%201.23-1.001h.197a1.25%201.25%200%200%201%201.12.685l3.19%206.273%203.125-6.263a1.25%201.25%200%200%201%201.123-.695h.181a1.255%201.255%200%200%201%201.227.991l1.443%206.71a5%205%200%200%201%20.314-.787l.009-.016a4.6%204.6%200%200%201%201.777-1.887c.782-.46%201.668-.667%202.611-.667a4.6%204.6%200%200%201%201.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255%201.255%200%200%201%201.212.925%201.255%201.255%200%200%201%201.212-.925h1.711c.284%200%20.545.094.755.252.613-.3%201.312-.45%202.075-.45%201.356%200%202.557.445%203.482%201.4q.47.48.763%201.064V4.701a1.255%201.255%200%200%201%201.255-1.255h1.86A1.255%201.255%200%200%201%2054.44%204.7v9.194h2.217c.19%200%20.37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42%202.42%200%200%201-.682-1.71c0-.665.267-1.253.735-1.7a2.45%202.45%200%200%201%201.722-.674%202.43%202.43%200%200%201%201.705.675q.318.302.504.683V4.7a1.255%201.255%200%200%201%201.255-1.255h1.744A1.255%201.255%200%200%201%2065.812%204.7v3.335a4.8%204.8%200%200%201%201.526-.246c.938%200%201.817.214%202.59.69a4.47%204.47%200%200%201%201.67%201.743v-.98a1.255%201.255%200%200%201%201.256-1.256h1.777c.233%200%20.451.064.639.174a3.4%203.4%200%200%201%201.567-.372c.346%200%20.861.02%201.285.232a1.25%201.25%200%200%201%20.689%201.004%204.7%204.7%200%200%201%20.853-.588c.795-.44%201.675-.647%202.61-.647%201.385%200%202.65.39%203.525%201.396.836.938%201.168%202.173%201.168%203.528q-.001.515-.056%201.051a1.255%201.255%200%200%201-.947%201.09l.408.952a1.255%201.255%200%200%201-.477%201.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06%200-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8%205.8%200%200%201-.548-2.512q0-.429.053-.843a1.3%201.3%200%200%201-.333-.086l-.166-.004c-.223%200-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255%201.255%200%200%201-1.256%201.256h-1.777a1.255%201.255%200%200%201-1.256-1.256V15.69l-.032.057a4.8%204.8%200%200%201-1.86%201.833%205.04%205.04%200%200%201-2.484.634%204.5%204.5%200%200%201-1.935-.424%201.25%201.25%200%200%201-.764.258h-1.71a1.255%201.255%200%200%201-1.256-1.255V7.687a2.4%202.4%200%200%201-.428.625c.253.23.412.561.412.93v7.553a1.255%201.255%200%200%201-1.256%201.255h-1.843a1.25%201.25%200%200%201-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255%201.255%200%200%201-1.256-1.255v-1.251l-.061.117a4.7%204.7%200%200%201-1.782%201.884%204.77%204.77%200%200%201-2.485.67%205.6%205.6%200%200%201-1.485-.188l.009%202.764a1.255%201.255%200%200%201-1.255%201.259h-1.729a1.255%201.255%200%200%201-1.255-1.255v-3.537a1.255%201.255%200%200%201-1.167.793h-1.679a1.25%201.25%200%200%201-.77-.263%204.5%204.5%200%200%201-1.945.429c-.885%200-1.724-.21-2.495-.632l-.017-.01a5%205%200%200%201-1.081-.836%201.255%201.255%200%200%201-1.254%201.312h-1.81a1.255%201.255%200%200%201-1.228-.99l-.782-3.625-2.044%203.939a1.25%201.25%200%200%201-1.115.676h-.098a1.25%201.25%200%200%201-1.116-.68l-2.061-3.994zM35.92%2016.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033%201.332h1.678V9.242h-1.694l-.033%201.267q-.133-.329-.526-.658l-.032-.028a3.2%203.2%200%200%200-.668-.428l-.27-.12a3.3%203.3%200%200%200-1.235-.23q-1.136-.001-1.974.493a3.36%203.36%200%200%200-1.3%201.382q-.445.89-.444%202.074%200%201.2.51%202.107a3.8%203.8%200%200%200%201.382%201.381%203.9%203.9%200%200%200%201.893.477q.795%200%201.455-.33zm-2.789-5.38q-.576.675-.575%201.762%200%201.102.559%201.794.576.675%201.645.675a2.25%202.25%200%200%200%20.934-.19%202.2%202.2%200%200%200%20.468-.29l.178-.161a2.2%202.2%200%200%200%20.397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2%202.2%200%200%200-.633-.709l-.13-.086-.047-.028a2.1%202.1%200%200%200-1.073-.285q-1.052%200-1.629.692zm2.316%202.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96%200%200%200-.353-.389.85.85%200%200%200-.464-.127c-.4%200-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945%200%20.506.122.801.27.99.097.11.266.224.68.224.303%200%20.504-.09.687-.269zm7.545%201.705a2.6%202.6%200%200%200%20.331.423q.319.33.755.548l.173.074q.65.255%201.49.255%201.02%200%201.844-.493a3.45%203.45%200%200%200%201.316-1.4q.493-.904.493-2.089%200-1.909-.988-2.913-.988-1.02-2.584-1.02-.898%200-1.575.347a3%203%200%200%200-.415.262l-.199.166a3.4%203.4%200%200%200-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296%201.119.297%201.07%200%201.645-.675.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.435%200-.835.16a2%202%200%200%200-.284.136%202%202%200%200%200-.363.254%202.2%202.2%200%200%200-.46.569l-.082.162a2.6%202.6%200%200%200-.213%201.072v.115q0%20.707.296%201.267l.135.211zm.964-.818a1.1%201.1%200%200%200%20.367.385.94.94%200%200%200%20.476.118c.423%200%20.59-.117.687-.23.159-.194.28-.478.28-.95%200-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1%201%200%200%200-.503.135l-.012.007a.86.86%200%200%200-.335.343c-.073.133-.132.324-.132.614v.115a1.4%201.4%200%200%200%20.14.66zm15.7-6.222q.347-.346.346-.856a1.05%201.05%200%200%200-.345-.79%201.18%201.18%200%200%200-.84-.329q-.51%200-.855.33a1.05%201.05%200%200%200-.346.79q0%20.51.346.855.345.346.856.346.51%200%20.839-.346zm4.337%209.314.033-1.332q.191.403.59.747l.098.081a4%204%200%200%200%20.316.224l.223.122a3.2%203.2%200%200%200%201.44.322%203.8%203.8%200%200%200%201.875-.477%203.5%203.5%200%200%200%201.382-1.366q.527-.89.526-2.09%200-1.184-.444-2.073a3.24%203.24%200%200%200-1.283-1.399q-.823-.51-1.942-.51a3.5%203.5%200%200%200-1.527.344l-.086.043-.165.09a3%203%200%200%200-.33.214q-.432.315-.656.707a2%202%200%200%200-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5%202.5%200%200%200%20.566.7q.117.098.245.18l.144.08a2.1%202.1%200%200%200%20.975.232q1.07%200%201.645-.675.576-.69.576-1.778%200-1.102-.576-1.777-.56-.691-1.645-.692a2.2%202.2%200%200%200-1.015.235q-.22.113-.415.282l-.15.142a2.1%202.1%200%200%200-.42.594q-.223.479-.223%201.1v.115q0%20.705.293%201.26zm2.616-.293c.157-.191.28-.479.28-.967%200-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87%200%200%200-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0%20.285.057.499.144.669a1.1%201.1%200%200%200%20.367.405c.137.082.28.123.455.123.423%200%20.59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493%200%20.642.099l.247-1.794q-.196-.099-.717-.099a2.3%202.3%200%200%200-.545.063%202%202%200%200%200-.411.148%202.2%202.2%200%200%200-.4.249%202.5%202.5%200%200%200-.485.499%202.7%202.7%200%200%200-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5%201.5%200%200%201%20.466-.636%202.5%202.5%200%200%201%20.399-.253%202%202%200%200%201%20.224-.099zm9.784%202.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46%203.46%200%200%200-1.4%201.382q-.493.906-.493%202.106%200%201.07.428%201.975.428.89%201.332%201.432.906.526%202.255.526.973%200%201.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954%200-1.497-.444a1.6%201.6%200%200%201-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1%201%200%200%200-.156-.176q-.46-.428-1.316-.428-.986%200-1.494.604-.379.45-.494%201.234zm-27.053%202.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z%22%2F%3E%3Cpath%20fill%3D%22%23fff%22%20d%3D%22m19.63%2011.151-.757-1.71-.345%201.71-1.12%205.644h-1.827L18.083%204.7h.197l3.325%206.533.988%202.19.988-2.19L26.839%204.7h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.93%205.644h-.098l-2.913-5.644zm14.836%205.81q-1.02%200-1.893-.478a3.8%203.8%200%200%201-1.381-1.382q-.51-.906-.51-2.106%200-1.185.444-2.074a3.36%203.36%200%200%201%201.3-1.382q.839-.494%201.974-.494a3.3%203.3%200%200%201%201.234.231%203.3%203.3%200%200%201%20.97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02%201.053a3.17%203.17%200%200%201-1.662.444zm.296-1.482q.938%200%201.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2%202.2%200%200%200-.807-.872%202.1%202.1%200%200%200-1.119-.313q-1.053%200-1.629.692-.575.675-.575%201.76%200%201.103.559%201.795.577.675%201.645.675zm6.521-6.237h1.711v1.4q.906-1.597%202.83-1.597%201.596%200%202.584%201.02.988%201.005.988%202.914%200%201.185-.493%202.09a3.46%203.46%200%200%201-1.316%201.399%203.5%203.5%200%200%201-1.844.493q-.954%200-1.662-.329a2.67%202.67%200%200%201-1.086-.97l.017%205.134h-1.728zm4.048%206.22q1.07%200%201.645-.674.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.592%200-1.12.296-.51.28-.822.823-.296.527-.296%201.234v.115q0%20.708.296%201.267.313.543.823.855.51.296%201.119.297z%22%2F%3E%3Cpath%20fill%3D%22%23e1e3e9%22%20d%3D%22M51.325%204.7h1.86v10.45h3.473v1.646h-5.333zm7.12%204.542h1.843v7.553h-1.843zm.905-1.415a1.16%201.16%200%200%201-.856-.346%201.17%201.17%200%200%201-.346-.856%201.05%201.05%200%200%201%20.346-.79q.346-.329.856-.329.494%200%20.839.33a1.05%201.05%200%200%201%20.345.79%201.16%201.16%200%200%201-.345.855q-.33.346-.84.346zm7.875%209.133a3.17%203.17%200%200%201-1.662-.444q-.723-.46-1.004-1.053l-.033%201.332h-1.71V4.701h1.743v4.657l-.082%201.283q.279-.658%201.086-1.119a3.5%203.5%200%200%201%201.778-.477q1.119%200%201.942.51a3.24%203.24%200%200%201%201.283%201.4q.445.888.444%202.072%200%201.201-.526%202.09a3.5%203.5%200%200%201-1.382%201.366%203.8%203.8%200%200%201-1.876.477zm-.296-1.481q1.069%200%201.645-.675.577-.69.577-1.778%200-1.102-.577-1.776-.56-.691-1.645-.692a2.12%202.12%200%200%200-1.58.659q-.642.641-.642%201.694v.115q0%20.71.296%201.267a2.4%202.4%200%200%200%20.807.872%202.1%202.1%200%200%200%201.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14%202.14%200%200%201%201.349-.46q.527%200%20.724.098l-.247%201.794q-.149-.099-.642-.099-.774%200-1.416.494-.626.493-.626%201.58v3.883h-1.777V9.242zm9.534%207.718q-1.35%200-2.255-.526-.904-.543-1.332-1.432a4.6%204.6%200%200%201-.428-1.975q0-1.2.493-2.106a3.46%203.46%200%200%201%201.4-1.382q.889-.495%202.007-.494%201.744%200%202.584.97.855.956.856%202.7%200%20.444-.05.92h-5.43q.18%201.005.708%201.45.542.443%201.497.443.79%200%201.3-.131a4%204%200%200%200%20.938-.362l.542%201.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728%200-1.991%201.86z%22%2F%3E%3Cpath%20d%3D%22M5.074%2015.948a.484.657%200%200%200-.486.659v1.84a.484.657%200%200%200%20.486.659h4.101a.484.657%200%200%200%20.486-.659v-1.84a.484.657%200%200%200-.486-.659zm3.56%201.16H5.617v.838h3.017z%22%20style%3D%22fill%3A%23fff%3Bfill-rule%3Aevenodd%3Bstroke-width%3A1.03600001%22%2F%3E%3Cg%20style%3D%22stroke-width%3A1.12603545%22%3E%3Cpath%20d%3D%22M-9.408-1.416c-3.833-.025-7.056%202.912-7.08%206.615-.02%203.08%201.653%204.832%203.107%206.268.903.892%201.721%201.74%202.32%202.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87%201.87%200%200%200-.362%201.121l-.011%201.877c-.003.402.104.787.347%201.125.244.338.688.653%201.23.656l4.142.028c.542.003.99-.306%201.238-.641a1.87%201.87%200%200%200%20.363-1.121l.012-1.875a1.87%201.87%200%200%200-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145%201.425-1.983%202.348-2.87%201.473-1.414%203.18-3.149%203.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006%201.1v.002c3.274.02%205.92%202.532%205.9%205.6-.017%202.706-1.39%204.026-2.863%205.44-1.034.994-2.118%202.033-2.814%203.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34%200%200%201-.226.084.34.34%200%200%201-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067%202.7-5.545%205.975-5.523m-.02%202.826c-1.62-.01-2.944%201.315-2.955%202.96-.01%201.646%201.295%202.988%202.916%202.999h.002c1.621.01%202.943-1.316%202.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005%201.1c1.017.006%201.829.83%201.822%201.89s-.83%201.874-1.848%201.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874%201.848-1.868m-2.155%2011.857%204.14.025c.271.002.49.305.487.676l-.013%201.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668%22%20style%3D%22color%3A%23000%3Bfont-style%3Anormal%3Bfont-variant%3Anormal%3Bfont-weight%3A400%3Bfont-stretch%3Anormal%3Bfont-size%3Amedium%3Bline-height%3Anormal%3Bfont-family%3Asans-serif%3Bfont-variant-ligatures%3Anormal%3Bfont-variant-position%3Anormal%3Bfont-variant-caps%3Anormal%3Bfont-variant-numeric%3Anormal%3Bfont-variant-alternates%3Anormal%3Bfont-feature-settings%3Anormal%3Btext-indent%3A0%3Btext-align%3Astart%3Btext-decoration%3Anone%3Btext-decoration-line%3Anone%3Btext-decoration-style%3Asolid%3Btext-decoration-color%3A%23000%3Bletter-spacing%3Anormal%3Bword-spacing%3Anormal%3Btext-transform%3Anone%3Bwriting-mode%3Alr-tb%3Bdirection%3Altr%3Btext-orientation%3Amixed%3Bdominant-baseline%3Aauto%3Bbaseline-shift%3Abaseline%3Btext-anchor%3Astart%3Bwhite-space%3Anormal%3Bshape-padding%3A0%3Bclip-rule%3Aevenodd%3Bdisplay%3Ainline%3Boverflow%3Avisible%3Bvisibility%3Avisible%3Bopacity%3A1%3Bisolation%3Aauto%3Bmix-blend-mode%3Anormal%3Bcolor-interpolation%3AsRGB%3Bcolor-interpolation-filters%3AlinearRGB%3Bsolid-color%3A%23000%3Bsolid-opacity%3A1%3Bvector-effect%3Anone%3Bfill%3A%23000%3Bfill-opacity%3A.4%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-linecap%3Abutt%3Bstroke-linejoin%3Amiter%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-dashoffset%3A0%3Bstroke-opacity%3A1%3Bcolor-rendering%3Aauto%3Bimage-rendering%3Aauto%3Bshape-rendering%3Aauto%3Btext-rendering%3Aauto%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-9.415-.316C-12.69-.338-15.37%202.14-15.39%205.207c-.017%202.716%201.326%204.041%202.78%205.477%201.013%201%202.081%202.055%202.78%203.67l.092.076a.34.34%200%200%200%20.225.086.34.34%200%200%200%20.227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6%201.78-2.64%202.814-3.634%201.473-1.414%202.847-2.733%202.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057%208.784c1.621.011%202.944-1.315%202.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945%201.315-2.955%202.96s1.295%202.989%202.916%203%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23e1e3e9%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-11.594%2015.465c-.27-.002-.492.297-.494.668l-.012%201.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23fff%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E")}a.maplibregl-ctrl-logo.maplibregl-compact{width:14px}@media (forced-colors:active){a.maplibregl-ctrl-logo{background-color:transparent;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2288%22%20height%3D%2223%22%20fill%3D%22none%22%3E%3Cpath%20fill%3D%22%23000%22%20fill-opacity%3D%22.4%22%20fill-rule%3D%22evenodd%22%20d%3D%22M17.408%2016.796h-1.827l2.501-12.095h.198l3.324%206.533.988%202.19.988-2.19%203.258-6.533h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.929%205.644h-.098l-2.914-5.644-.757-1.71-.345%201.71zm1.958-3.42-.726%203.663a1.255%201.255%200%200%201-1.232%201.011h-1.827a1.255%201.255%200%200%201-1.229-1.509l2.501-12.095a1.255%201.255%200%200%201%201.23-1.001h.197a1.25%201.25%200%200%201%201.12.685l3.19%206.273%203.125-6.263a1.25%201.25%200%200%201%201.123-.695h.181a1.255%201.255%200%200%201%201.227.991l1.443%206.71a5%205%200%200%201%20.314-.787l.009-.016a4.6%204.6%200%200%201%201.777-1.887c.782-.46%201.668-.667%202.611-.667a4.6%204.6%200%200%201%201.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255%201.255%200%200%201%201.212.925%201.255%201.255%200%200%201%201.212-.925h1.711c.284%200%20.545.094.755.252.613-.3%201.312-.45%202.075-.45%201.356%200%202.557.445%203.482%201.4q.47.48.763%201.064V4.701a1.255%201.255%200%200%201%201.255-1.255h1.86A1.255%201.255%200%200%201%2054.44%204.7v9.194h2.217c.19%200%20.37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42%202.42%200%200%201-.682-1.71c0-.665.267-1.253.735-1.7a2.45%202.45%200%200%201%201.722-.674%202.43%202.43%200%200%201%201.705.675q.318.302.504.683V4.7a1.255%201.255%200%200%201%201.255-1.255h1.744A1.255%201.255%200%200%201%2065.812%204.7v3.335a4.8%204.8%200%200%201%201.526-.246c.938%200%201.817.214%202.59.69a4.47%204.47%200%200%201%201.67%201.743v-.98a1.255%201.255%200%200%201%201.256-1.256h1.777c.233%200%20.451.064.639.174a3.4%203.4%200%200%201%201.567-.372c.346%200%20.861.02%201.285.232a1.25%201.25%200%200%201%20.689%201.004%204.7%204.7%200%200%201%20.853-.588c.795-.44%201.675-.647%202.61-.647%201.385%200%202.65.39%203.525%201.396.836.938%201.168%202.173%201.168%203.528q-.001.515-.056%201.051a1.255%201.255%200%200%201-.947%201.09l.408.952a1.255%201.255%200%200%201-.477%201.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06%200-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8%205.8%200%200%201-.548-2.512q0-.429.053-.843a1.3%201.3%200%200%201-.333-.086l-.166-.004c-.223%200-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255%201.255%200%200%201-1.256%201.256h-1.777a1.255%201.255%200%200%201-1.256-1.256V15.69l-.032.057a4.8%204.8%200%200%201-1.86%201.833%205.04%205.04%200%200%201-2.484.634%204.5%204.5%200%200%201-1.935-.424%201.25%201.25%200%200%201-.764.258h-1.71a1.255%201.255%200%200%201-1.256-1.255V7.687a2.4%202.4%200%200%201-.428.625c.253.23.412.561.412.93v7.553a1.255%201.255%200%200%201-1.256%201.255h-1.843a1.25%201.25%200%200%201-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255%201.255%200%200%201-1.256-1.255v-1.251l-.061.117a4.7%204.7%200%200%201-1.782%201.884%204.77%204.77%200%200%201-2.485.67%205.6%205.6%200%200%201-1.485-.188l.009%202.764a1.255%201.255%200%200%201-1.255%201.259h-1.729a1.255%201.255%200%200%201-1.255-1.255v-3.537a1.255%201.255%200%200%201-1.167.793h-1.679a1.25%201.25%200%200%201-.77-.263%204.5%204.5%200%200%201-1.945.429c-.885%200-1.724-.21-2.495-.632l-.017-.01a5%205%200%200%201-1.081-.836%201.255%201.255%200%200%201-1.254%201.312h-1.81a1.255%201.255%200%200%201-1.228-.99l-.782-3.625-2.044%203.939a1.25%201.25%200%200%201-1.115.676h-.098a1.25%201.25%200%200%201-1.116-.68l-2.061-3.994zM35.92%2016.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033%201.332h1.678V9.242h-1.694l-.033%201.267q-.133-.329-.526-.658l-.032-.028a3.2%203.2%200%200%200-.668-.428l-.27-.12a3.3%203.3%200%200%200-1.235-.23q-1.136-.001-1.974.493a3.36%203.36%200%200%200-1.3%201.382q-.445.89-.444%202.074%200%201.2.51%202.107a3.8%203.8%200%200%200%201.382%201.381%203.9%203.9%200%200%200%201.893.477q.795%200%201.455-.33zm-2.789-5.38q-.576.675-.575%201.762%200%201.102.559%201.794.576.675%201.645.675a2.25%202.25%200%200%200%20.934-.19%202.2%202.2%200%200%200%20.468-.29l.178-.161a2.2%202.2%200%200%200%20.397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2%202.2%200%200%200-.633-.709l-.13-.086-.047-.028a2.1%202.1%200%200%200-1.073-.285q-1.052%200-1.629.692zm2.316%202.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96%200%200%200-.353-.389.85.85%200%200%200-.464-.127c-.4%200-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945%200%20.506.122.801.27.99.097.11.266.224.68.224.303%200%20.504-.09.687-.269zm7.545%201.705a2.6%202.6%200%200%200%20.331.423q.319.33.755.548l.173.074q.65.255%201.49.255%201.02%200%201.844-.493a3.45%203.45%200%200%200%201.316-1.4q.493-.904.493-2.089%200-1.909-.988-2.913-.988-1.02-2.584-1.02-.898%200-1.575.347a3%203%200%200%200-.415.262l-.199.166a3.4%203.4%200%200%200-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296%201.119.297%201.07%200%201.645-.675.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.435%200-.835.16a2%202%200%200%200-.284.136%202%202%200%200%200-.363.254%202.2%202.2%200%200%200-.46.569l-.082.162a2.6%202.6%200%200%200-.213%201.072v.115q0%20.707.296%201.267l.135.211zm.964-.818a1.1%201.1%200%200%200%20.367.385.94.94%200%200%200%20.476.118c.423%200%20.59-.117.687-.23.159-.194.28-.478.28-.95%200-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1%201%200%200%200-.503.135l-.012.007a.86.86%200%200%200-.335.343c-.073.133-.132.324-.132.614v.115a1.4%201.4%200%200%200%20.14.66zm15.7-6.222q.347-.346.346-.856a1.05%201.05%200%200%200-.345-.79%201.18%201.18%200%200%200-.84-.329q-.51%200-.855.33a1.05%201.05%200%200%200-.346.79q0%20.51.346.855.345.346.856.346.51%200%20.839-.346zm4.337%209.314.033-1.332q.191.403.59.747l.098.081a4%204%200%200%200%20.316.224l.223.122a3.2%203.2%200%200%200%201.44.322%203.8%203.8%200%200%200%201.875-.477%203.5%203.5%200%200%200%201.382-1.366q.527-.89.526-2.09%200-1.184-.444-2.073a3.24%203.24%200%200%200-1.283-1.399q-.823-.51-1.942-.51a3.5%203.5%200%200%200-1.527.344l-.086.043-.165.09a3%203%200%200%200-.33.214q-.432.315-.656.707a2%202%200%200%200-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5%202.5%200%200%200%20.566.7q.117.098.245.18l.144.08a2.1%202.1%200%200%200%20.975.232q1.07%200%201.645-.675.576-.69.576-1.778%200-1.102-.576-1.777-.56-.691-1.645-.692a2.2%202.2%200%200%200-1.015.235q-.22.113-.415.282l-.15.142a2.1%202.1%200%200%200-.42.594q-.223.479-.223%201.1v.115q0%20.705.293%201.26zm2.616-.293c.157-.191.28-.479.28-.967%200-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87%200%200%200-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0%20.285.057.499.144.669a1.1%201.1%200%200%200%20.367.405c.137.082.28.123.455.123.423%200%20.59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493%200%20.642.099l.247-1.794q-.196-.099-.717-.099a2.3%202.3%200%200%200-.545.063%202%202%200%200%200-.411.148%202.2%202.2%200%200%200-.4.249%202.5%202.5%200%200%200-.485.499%202.7%202.7%200%200%200-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5%201.5%200%200%201%20.466-.636%202.5%202.5%200%200%201%20.399-.253%202%202%200%200%201%20.224-.099zm9.784%202.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46%203.46%200%200%200-1.4%201.382q-.493.906-.493%202.106%200%201.07.428%201.975.428.89%201.332%201.432.906.526%202.255.526.973%200%201.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954%200-1.497-.444a1.6%201.6%200%200%201-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1%201%200%200%200-.156-.176q-.46-.428-1.316-.428-.986%200-1.494.604-.379.45-.494%201.234zm-27.053%202.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z%22%2F%3E%3Cpath%20fill%3D%22%23fff%22%20d%3D%22m19.63%2011.151-.757-1.71-.345%201.71-1.12%205.644h-1.827L18.083%204.7h.197l3.325%206.533.988%202.19.988-2.19L26.839%204.7h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.93%205.644h-.098l-2.913-5.644zm14.836%205.81q-1.02%200-1.893-.478a3.8%203.8%200%200%201-1.381-1.382q-.51-.906-.51-2.106%200-1.185.444-2.074a3.36%203.36%200%200%201%201.3-1.382q.839-.494%201.974-.494a3.3%203.3%200%200%201%201.234.231%203.3%203.3%200%200%201%20.97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02%201.053a3.17%203.17%200%200%201-1.662.444zm.296-1.482q.938%200%201.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2%202.2%200%200%200-.807-.872%202.1%202.1%200%200%200-1.119-.313q-1.053%200-1.629.692-.575.675-.575%201.76%200%201.103.559%201.795.577.675%201.645.675zm6.521-6.237h1.711v1.4q.906-1.597%202.83-1.597%201.596%200%202.584%201.02.988%201.005.988%202.914%200%201.185-.493%202.09a3.46%203.46%200%200%201-1.316%201.399%203.5%203.5%200%200%201-1.844.493q-.954%200-1.662-.329a2.67%202.67%200%200%201-1.086-.97l.017%205.134h-1.728zm4.048%206.22q1.07%200%201.645-.674.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.592%200-1.12.296-.51.28-.822.823-.296.527-.296%201.234v.115q0%20.708.296%201.267.313.543.823.855.51.296%201.119.297z%22%2F%3E%3Cpath%20fill%3D%22%23e1e3e9%22%20d%3D%22M51.325%204.7h1.86v10.45h3.473v1.646h-5.333zm7.12%204.542h1.843v7.553h-1.843zm.905-1.415a1.16%201.16%200%200%201-.856-.346%201.17%201.17%200%200%201-.346-.856%201.05%201.05%200%200%201%20.346-.79q.346-.329.856-.329.494%200%20.839.33a1.05%201.05%200%200%201%20.345.79%201.16%201.16%200%200%201-.345.855q-.33.346-.84.346zm7.875%209.133a3.17%203.17%200%200%201-1.662-.444q-.723-.46-1.004-1.053l-.033%201.332h-1.71V4.701h1.743v4.657l-.082%201.283q.279-.658%201.086-1.119a3.5%203.5%200%200%201%201.778-.477q1.119%200%201.942.51a3.24%203.24%200%200%201%201.283%201.4q.445.888.444%202.072%200%201.201-.526%202.09a3.5%203.5%200%200%201-1.382%201.366%203.8%203.8%200%200%201-1.876.477zm-.296-1.481q1.069%200%201.645-.675.577-.69.577-1.778%200-1.102-.577-1.776-.56-.691-1.645-.692a2.12%202.12%200%200%200-1.58.659q-.642.641-.642%201.694v.115q0%20.71.296%201.267a2.4%202.4%200%200%200%20.807.872%202.1%202.1%200%200%200%201.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14%202.14%200%200%201%201.349-.46q.527%200%20.724.098l-.247%201.794q-.149-.099-.642-.099-.774%200-1.416.494-.626.493-.626%201.58v3.883h-1.777V9.242zm9.534%207.718q-1.35%200-2.255-.526-.904-.543-1.332-1.432a4.6%204.6%200%200%201-.428-1.975q0-1.2.493-2.106a3.46%203.46%200%200%201%201.4-1.382q.889-.495%202.007-.494%201.744%200%202.584.97.855.956.856%202.7%200%20.444-.05.92h-5.43q.18%201.005.708%201.45.542.443%201.497.443.79%200%201.3-.131a4%204%200%200%200%20.938-.362l.542%201.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728%200-1.991%201.86z%22%2F%3E%3Cpath%20d%3D%22M5.074%2015.948a.484.657%200%200%200-.486.659v1.84a.484.657%200%200%200%20.486.659h4.101a.484.657%200%200%200%20.486-.659v-1.84a.484.657%200%200%200-.486-.659zm3.56%201.16H5.617v.838h3.017z%22%20style%3D%22fill%3A%23fff%3Bfill-rule%3Aevenodd%3Bstroke-width%3A1.03600001%22%2F%3E%3Cg%20style%3D%22stroke-width%3A1.12603545%22%3E%3Cpath%20d%3D%22M-9.408-1.416c-3.833-.025-7.056%202.912-7.08%206.615-.02%203.08%201.653%204.832%203.107%206.268.903.892%201.721%201.74%202.32%202.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87%201.87%200%200%200-.362%201.121l-.011%201.877c-.003.402.104.787.347%201.125.244.338.688.653%201.23.656l4.142.028c.542.003.99-.306%201.238-.641a1.87%201.87%200%200%200%20.363-1.121l.012-1.875a1.87%201.87%200%200%200-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145%201.425-1.983%202.348-2.87%201.473-1.414%203.18-3.149%203.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006%201.1v.002c3.274.02%205.92%202.532%205.9%205.6-.017%202.706-1.39%204.026-2.863%205.44-1.034.994-2.118%202.033-2.814%203.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34%200%200%201-.226.084.34.34%200%200%201-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067%202.7-5.545%205.975-5.523m-.02%202.826c-1.62-.01-2.944%201.315-2.955%202.96-.01%201.646%201.295%202.988%202.916%202.999h.002c1.621.01%202.943-1.316%202.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005%201.1c1.017.006%201.829.83%201.822%201.89s-.83%201.874-1.848%201.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874%201.848-1.868m-2.155%2011.857%204.14.025c.271.002.49.305.487.676l-.013%201.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668%22%20style%3D%22color%3A%23000%3Bfont-style%3Anormal%3Bfont-variant%3Anormal%3Bfont-weight%3A400%3Bfont-stretch%3Anormal%3Bfont-size%3Amedium%3Bline-height%3Anormal%3Bfont-family%3Asans-serif%3Bfont-variant-ligatures%3Anormal%3Bfont-variant-position%3Anormal%3Bfont-variant-caps%3Anormal%3Bfont-variant-numeric%3Anormal%3Bfont-variant-alternates%3Anormal%3Bfont-feature-settings%3Anormal%3Btext-indent%3A0%3Btext-align%3Astart%3Btext-decoration%3Anone%3Btext-decoration-line%3Anone%3Btext-decoration-style%3Asolid%3Btext-decoration-color%3A%23000%3Bletter-spacing%3Anormal%3Bword-spacing%3Anormal%3Btext-transform%3Anone%3Bwriting-mode%3Alr-tb%3Bdirection%3Altr%3Btext-orientation%3Amixed%3Bdominant-baseline%3Aauto%3Bbaseline-shift%3Abaseline%3Btext-anchor%3Astart%3Bwhite-space%3Anormal%3Bshape-padding%3A0%3Bclip-rule%3Aevenodd%3Bdisplay%3Ainline%3Boverflow%3Avisible%3Bvisibility%3Avisible%3Bopacity%3A1%3Bisolation%3Aauto%3Bmix-blend-mode%3Anormal%3Bcolor-interpolation%3AsRGB%3Bcolor-interpolation-filters%3AlinearRGB%3Bsolid-color%3A%23000%3Bsolid-opacity%3A1%3Bvector-effect%3Anone%3Bfill%3A%23000%3Bfill-opacity%3A.4%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-linecap%3Abutt%3Bstroke-linejoin%3Amiter%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-dashoffset%3A0%3Bstroke-opacity%3A1%3Bcolor-rendering%3Aauto%3Bimage-rendering%3Aauto%3Bshape-rendering%3Aauto%3Btext-rendering%3Aauto%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-9.415-.316C-12.69-.338-15.37%202.14-15.39%205.207c-.017%202.716%201.326%204.041%202.78%205.477%201.013%201%202.081%202.055%202.78%203.67l.092.076a.34.34%200%200%200%20.225.086.34.34%200%200%200%20.227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6%201.78-2.64%202.814-3.634%201.473-1.414%202.847-2.733%202.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057%208.784c1.621.011%202.944-1.315%202.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945%201.315-2.955%202.96s1.295%202.989%202.916%203%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23e1e3e9%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-11.594%2015.465c-.27-.002-.492.297-.494.668l-.012%201.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23fff%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){a.maplibregl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2288%22%20height%3D%2223%22%20fill%3D%22none%22%3E%3Cpath%20fill%3D%22%23000%22%20fill-opacity%3D%22.4%22%20fill-rule%3D%22evenodd%22%20d%3D%22M17.408%2016.796h-1.827l2.501-12.095h.198l3.324%206.533.988%202.19.988-2.19%203.258-6.533h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.929%205.644h-.098l-2.914-5.644-.757-1.71-.345%201.71zm1.958-3.42-.726%203.663a1.255%201.255%200%200%201-1.232%201.011h-1.827a1.255%201.255%200%200%201-1.229-1.509l2.501-12.095a1.255%201.255%200%200%201%201.23-1.001h.197a1.25%201.25%200%200%201%201.12.685l3.19%206.273%203.125-6.263a1.25%201.25%200%200%201%201.123-.695h.181a1.255%201.255%200%200%201%201.227.991l1.443%206.71a5%205%200%200%201%20.314-.787l.009-.016a4.6%204.6%200%200%201%201.777-1.887c.782-.46%201.668-.667%202.611-.667a4.6%204.6%200%200%201%201.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255%201.255%200%200%201%201.212.925%201.255%201.255%200%200%201%201.212-.925h1.711c.284%200%20.545.094.755.252.613-.3%201.312-.45%202.075-.45%201.356%200%202.557.445%203.482%201.4q.47.48.763%201.064V4.701a1.255%201.255%200%200%201%201.255-1.255h1.86A1.255%201.255%200%200%201%2054.44%204.7v9.194h2.217c.19%200%20.37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42%202.42%200%200%201-.682-1.71c0-.665.267-1.253.735-1.7a2.45%202.45%200%200%201%201.722-.674%202.43%202.43%200%200%201%201.705.675q.318.302.504.683V4.7a1.255%201.255%200%200%201%201.255-1.255h1.744A1.255%201.255%200%200%201%2065.812%204.7v3.335a4.8%204.8%200%200%201%201.526-.246c.938%200%201.817.214%202.59.69a4.47%204.47%200%200%201%201.67%201.743v-.98a1.255%201.255%200%200%201%201.256-1.256h1.777c.233%200%20.451.064.639.174a3.4%203.4%200%200%201%201.567-.372c.346%200%20.861.02%201.285.232a1.25%201.25%200%200%201%20.689%201.004%204.7%204.7%200%200%201%20.853-.588c.795-.44%201.675-.647%202.61-.647%201.385%200%202.65.39%203.525%201.396.836.938%201.168%202.173%201.168%203.528q-.001.515-.056%201.051a1.255%201.255%200%200%201-.947%201.09l.408.952a1.255%201.255%200%200%201-.477%201.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06%200-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8%205.8%200%200%201-.548-2.512q0-.429.053-.843a1.3%201.3%200%200%201-.333-.086l-.166-.004c-.223%200-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255%201.255%200%200%201-1.256%201.256h-1.777a1.255%201.255%200%200%201-1.256-1.256V15.69l-.032.057a4.8%204.8%200%200%201-1.86%201.833%205.04%205.04%200%200%201-2.484.634%204.5%204.5%200%200%201-1.935-.424%201.25%201.25%200%200%201-.764.258h-1.71a1.255%201.255%200%200%201-1.256-1.255V7.687a2.4%202.4%200%200%201-.428.625c.253.23.412.561.412.93v7.553a1.255%201.255%200%200%201-1.256%201.255h-1.843a1.25%201.25%200%200%201-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255%201.255%200%200%201-1.256-1.255v-1.251l-.061.117a4.7%204.7%200%200%201-1.782%201.884%204.77%204.77%200%200%201-2.485.67%205.6%205.6%200%200%201-1.485-.188l.009%202.764a1.255%201.255%200%200%201-1.255%201.259h-1.729a1.255%201.255%200%200%201-1.255-1.255v-3.537a1.255%201.255%200%200%201-1.167.793h-1.679a1.25%201.25%200%200%201-.77-.263%204.5%204.5%200%200%201-1.945.429c-.885%200-1.724-.21-2.495-.632l-.017-.01a5%205%200%200%201-1.081-.836%201.255%201.255%200%200%201-1.254%201.312h-1.81a1.255%201.255%200%200%201-1.228-.99l-.782-3.625-2.044%203.939a1.25%201.25%200%200%201-1.115.676h-.098a1.25%201.25%200%200%201-1.116-.68l-2.061-3.994zM35.92%2016.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033%201.332h1.678V9.242h-1.694l-.033%201.267q-.133-.329-.526-.658l-.032-.028a3.2%203.2%200%200%200-.668-.428l-.27-.12a3.3%203.3%200%200%200-1.235-.23q-1.136-.001-1.974.493a3.36%203.36%200%200%200-1.3%201.382q-.445.89-.444%202.074%200%201.2.51%202.107a3.8%203.8%200%200%200%201.382%201.381%203.9%203.9%200%200%200%201.893.477q.795%200%201.455-.33zm-2.789-5.38q-.576.675-.575%201.762%200%201.102.559%201.794.576.675%201.645.675a2.25%202.25%200%200%200%20.934-.19%202.2%202.2%200%200%200%20.468-.29l.178-.161a2.2%202.2%200%200%200%20.397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2%202.2%200%200%200-.633-.709l-.13-.086-.047-.028a2.1%202.1%200%200%200-1.073-.285q-1.052%200-1.629.692zm2.316%202.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96%200%200%200-.353-.389.85.85%200%200%200-.464-.127c-.4%200-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945%200%20.506.122.801.27.99.097.11.266.224.68.224.303%200%20.504-.09.687-.269zm7.545%201.705a2.6%202.6%200%200%200%20.331.423q.319.33.755.548l.173.074q.65.255%201.49.255%201.02%200%201.844-.493a3.45%203.45%200%200%200%201.316-1.4q.493-.904.493-2.089%200-1.909-.988-2.913-.988-1.02-2.584-1.02-.898%200-1.575.347a3%203%200%200%200-.415.262l-.199.166a3.4%203.4%200%200%200-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296%201.119.297%201.07%200%201.645-.675.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.435%200-.835.16a2%202%200%200%200-.284.136%202%202%200%200%200-.363.254%202.2%202.2%200%200%200-.46.569l-.082.162a2.6%202.6%200%200%200-.213%201.072v.115q0%20.707.296%201.267l.135.211zm.964-.818a1.1%201.1%200%200%200%20.367.385.94.94%200%200%200%20.476.118c.423%200%20.59-.117.687-.23.159-.194.28-.478.28-.95%200-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1%201%200%200%200-.503.135l-.012.007a.86.86%200%200%200-.335.343c-.073.133-.132.324-.132.614v.115a1.4%201.4%200%200%200%20.14.66zm15.7-6.222q.347-.346.346-.856a1.05%201.05%200%200%200-.345-.79%201.18%201.18%200%200%200-.84-.329q-.51%200-.855.33a1.05%201.05%200%200%200-.346.79q0%20.51.346.855.345.346.856.346.51%200%20.839-.346zm4.337%209.314.033-1.332q.191.403.59.747l.098.081a4%204%200%200%200%20.316.224l.223.122a3.2%203.2%200%200%200%201.44.322%203.8%203.8%200%200%200%201.875-.477%203.5%203.5%200%200%200%201.382-1.366q.527-.89.526-2.09%200-1.184-.444-2.073a3.24%203.24%200%200%200-1.283-1.399q-.823-.51-1.942-.51a3.5%203.5%200%200%200-1.527.344l-.086.043-.165.09a3%203%200%200%200-.33.214q-.432.315-.656.707a2%202%200%200%200-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5%202.5%200%200%200%20.566.7q.117.098.245.18l.144.08a2.1%202.1%200%200%200%20.975.232q1.07%200%201.645-.675.576-.69.576-1.778%200-1.102-.576-1.777-.56-.691-1.645-.692a2.2%202.2%200%200%200-1.015.235q-.22.113-.415.282l-.15.142a2.1%202.1%200%200%200-.42.594q-.223.479-.223%201.1v.115q0%20.705.293%201.26zm2.616-.293c.157-.191.28-.479.28-.967%200-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87%200%200%200-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0%20.285.057.499.144.669a1.1%201.1%200%200%200%20.367.405c.137.082.28.123.455.123.423%200%20.59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493%200%20.642.099l.247-1.794q-.196-.099-.717-.099a2.3%202.3%200%200%200-.545.063%202%202%200%200%200-.411.148%202.2%202.2%200%200%200-.4.249%202.5%202.5%200%200%200-.485.499%202.7%202.7%200%200%200-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5%201.5%200%200%201%20.466-.636%202.5%202.5%200%200%201%20.399-.253%202%202%200%200%201%20.224-.099zm9.784%202.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46%203.46%200%200%200-1.4%201.382q-.493.906-.493%202.106%200%201.07.428%201.975.428.89%201.332%201.432.906.526%202.255.526.973%200%201.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954%200-1.497-.444a1.6%201.6%200%200%201-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1%201%200%200%200-.156-.176q-.46-.428-1.316-.428-.986%200-1.494.604-.379.45-.494%201.234zm-27.053%202.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z%22%2F%3E%3Cpath%20fill%3D%22%23fff%22%20d%3D%22m19.63%2011.151-.757-1.71-.345%201.71-1.12%205.644h-1.827L18.083%204.7h.197l3.325%206.533.988%202.19.988-2.19L26.839%204.7h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.93%205.644h-.098l-2.913-5.644zm14.836%205.81q-1.02%200-1.893-.478a3.8%203.8%200%200%201-1.381-1.382q-.51-.906-.51-2.106%200-1.185.444-2.074a3.36%203.36%200%200%201%201.3-1.382q.839-.494%201.974-.494a3.3%203.3%200%200%201%201.234.231%203.3%203.3%200%200%201%20.97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02%201.053a3.17%203.17%200%200%201-1.662.444zm.296-1.482q.938%200%201.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2%202.2%200%200%200-.807-.872%202.1%202.1%200%200%200-1.119-.313q-1.053%200-1.629.692-.575.675-.575%201.76%200%201.103.559%201.795.577.675%201.645.675zm6.521-6.237h1.711v1.4q.906-1.597%202.83-1.597%201.596%200%202.584%201.02.988%201.005.988%202.914%200%201.185-.493%202.09a3.46%203.46%200%200%201-1.316%201.399%203.5%203.5%200%200%201-1.844.493q-.954%200-1.662-.329a2.67%202.67%200%200%201-1.086-.97l.017%205.134h-1.728zm4.048%206.22q1.07%200%201.645-.674.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.592%200-1.12.296-.51.28-.822.823-.296.527-.296%201.234v.115q0%20.708.296%201.267.313.543.823.855.51.296%201.119.297z%22%2F%3E%3Cpath%20fill%3D%22%23e1e3e9%22%20d%3D%22M51.325%204.7h1.86v10.45h3.473v1.646h-5.333zm7.12%204.542h1.843v7.553h-1.843zm.905-1.415a1.16%201.16%200%200%201-.856-.346%201.17%201.17%200%200%201-.346-.856%201.05%201.05%200%200%201%20.346-.79q.346-.329.856-.329.494%200%20.839.33a1.05%201.05%200%200%201%20.345.79%201.16%201.16%200%200%201-.345.855q-.33.346-.84.346zm7.875%209.133a3.17%203.17%200%200%201-1.662-.444q-.723-.46-1.004-1.053l-.033%201.332h-1.71V4.701h1.743v4.657l-.082%201.283q.279-.658%201.086-1.119a3.5%203.5%200%200%201%201.778-.477q1.119%200%201.942.51a3.24%203.24%200%200%201%201.283%201.4q.445.888.444%202.072%200%201.201-.526%202.09a3.5%203.5%200%200%201-1.382%201.366%203.8%203.8%200%200%201-1.876.477zm-.296-1.481q1.069%200%201.645-.675.577-.69.577-1.778%200-1.102-.577-1.776-.56-.691-1.645-.692a2.12%202.12%200%200%200-1.58.659q-.642.641-.642%201.694v.115q0%20.71.296%201.267a2.4%202.4%200%200%200%20.807.872%202.1%202.1%200%200%200%201.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14%202.14%200%200%201%201.349-.46q.527%200%20.724.098l-.247%201.794q-.149-.099-.642-.099-.774%200-1.416.494-.626.493-.626%201.58v3.883h-1.777V9.242zm9.534%207.718q-1.35%200-2.255-.526-.904-.543-1.332-1.432a4.6%204.6%200%200%201-.428-1.975q0-1.2.493-2.106a3.46%203.46%200%200%201%201.4-1.382q.889-.495%202.007-.494%201.744%200%202.584.97.855.956.856%202.7%200%20.444-.05.92h-5.43q.18%201.005.708%201.45.542.443%201.497.443.79%200%201.3-.131a4%204%200%200%200%20.938-.362l.542%201.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728%200-1.991%201.86z%22%2F%3E%3Cpath%20d%3D%22M5.074%2015.948a.484.657%200%200%200-.486.659v1.84a.484.657%200%200%200%20.486.659h4.101a.484.657%200%200%200%20.486-.659v-1.84a.484.657%200%200%200-.486-.659zm3.56%201.16H5.617v.838h3.017z%22%20style%3D%22fill%3A%23fff%3Bfill-rule%3Aevenodd%3Bstroke-width%3A1.03600001%22%2F%3E%3Cg%20style%3D%22stroke-width%3A1.12603545%22%3E%3Cpath%20d%3D%22M-9.408-1.416c-3.833-.025-7.056%202.912-7.08%206.615-.02%203.08%201.653%204.832%203.107%206.268.903.892%201.721%201.74%202.32%202.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87%201.87%200%200%200-.362%201.121l-.011%201.877c-.003.402.104.787.347%201.125.244.338.688.653%201.23.656l4.142.028c.542.003.99-.306%201.238-.641a1.87%201.87%200%200%200%20.363-1.121l.012-1.875a1.87%201.87%200%200%200-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145%201.425-1.983%202.348-2.87%201.473-1.414%203.18-3.149%203.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006%201.1v.002c3.274.02%205.92%202.532%205.9%205.6-.017%202.706-1.39%204.026-2.863%205.44-1.034.994-2.118%202.033-2.814%203.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34%200%200%201-.226.084.34.34%200%200%201-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067%202.7-5.545%205.975-5.523m-.02%202.826c-1.62-.01-2.944%201.315-2.955%202.96-.01%201.646%201.295%202.988%202.916%202.999h.002c1.621.01%202.943-1.316%202.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005%201.1c1.017.006%201.829.83%201.822%201.89s-.83%201.874-1.848%201.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874%201.848-1.868m-2.155%2011.857%204.14.025c.271.002.49.305.487.676l-.013%201.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668%22%20style%3D%22color%3A%23000%3Bfont-style%3Anormal%3Bfont-variant%3Anormal%3Bfont-weight%3A400%3Bfont-stretch%3Anormal%3Bfont-size%3Amedium%3Bline-height%3Anormal%3Bfont-family%3Asans-serif%3Bfont-variant-ligatures%3Anormal%3Bfont-variant-position%3Anormal%3Bfont-variant-caps%3Anormal%3Bfont-variant-numeric%3Anormal%3Bfont-variant-alternates%3Anormal%3Bfont-feature-settings%3Anormal%3Btext-indent%3A0%3Btext-align%3Astart%3Btext-decoration%3Anone%3Btext-decoration-line%3Anone%3Btext-decoration-style%3Asolid%3Btext-decoration-color%3A%23000%3Bletter-spacing%3Anormal%3Bword-spacing%3Anormal%3Btext-transform%3Anone%3Bwriting-mode%3Alr-tb%3Bdirection%3Altr%3Btext-orientation%3Amixed%3Bdominant-baseline%3Aauto%3Bbaseline-shift%3Abaseline%3Btext-anchor%3Astart%3Bwhite-space%3Anormal%3Bshape-padding%3A0%3Bclip-rule%3Aevenodd%3Bdisplay%3Ainline%3Boverflow%3Avisible%3Bvisibility%3Avisible%3Bopacity%3A1%3Bisolation%3Aauto%3Bmix-blend-mode%3Anormal%3Bcolor-interpolation%3AsRGB%3Bcolor-interpolation-filters%3AlinearRGB%3Bsolid-color%3A%23000%3Bsolid-opacity%3A1%3Bvector-effect%3Anone%3Bfill%3A%23000%3Bfill-opacity%3A.4%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-linecap%3Abutt%3Bstroke-linejoin%3Amiter%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-dashoffset%3A0%3Bstroke-opacity%3A1%3Bcolor-rendering%3Aauto%3Bimage-rendering%3Aauto%3Bshape-rendering%3Aauto%3Btext-rendering%3Aauto%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-9.415-.316C-12.69-.338-15.37%202.14-15.39%205.207c-.017%202.716%201.326%204.041%202.78%205.477%201.013%201%202.081%202.055%202.78%203.67l.092.076a.34.34%200%200%200%20.225.086.34.34%200%200%200%20.227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6%201.78-2.64%202.814-3.634%201.473-1.414%202.847-2.733%202.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057%208.784c1.621.011%202.944-1.315%202.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945%201.315-2.955%202.96s1.295%202.989%202.916%203%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23e1e3e9%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-11.594%2015.465c-.27-.002-.492.297-.494.668l-.012%201.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23fff%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl.maplibregl-ctrl-attrib{padding:0 5px;background-color:hsla(0,0%,100%,.5);margin:0}@media screen{.maplibregl-ctrl-attrib.maplibregl-compact{min-height:20px;padding:2px 24px 2px 0;margin:10px;position:relative;background-color:#fff;color:#000;border-radius:12px;box-sizing:content-box}.maplibregl-ctrl-attrib.maplibregl-compact-show{padding:2px 28px 2px 8px;visibility:visible}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact-show,.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact-show{padding:2px 8px 2px 28px;border-radius:12px}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-inner{display:none}.maplibregl-ctrl-attrib-button{display:none;cursor:pointer;position:absolute;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20fill-rule%3D%22evenodd%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M4%2010a6%206%200%201%200%2012%200%206%206%200%201%200-12%200m5-3a1%201%200%201%200%202%200%201%201%200%201%200-2%200m0%203a1%201%200%201%201%202%200v3a1%201%200%201%201-2%200%22%2F%3E%3C%2Fsvg%3E");background-color:hsla(0,0%,100%,.5);width:24px;height:24px;box-sizing:border-box;border-radius:12px;outline:none;top:0;right:0;border:0}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;list-style:none}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button::-webkit-details-marker{display:none}.maplibregl-ctrl-bottom-left .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-top-left .maplibregl-ctrl-attrib-button{left:0}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-inner{display:block}.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-button{background-color:rgba(0,0,0,.05)}.maplibregl-ctrl-bottom-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;right:0}.maplibregl-ctrl-top-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{top:0;right:0}.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{top:0;left:0}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;left:0}}@media screen and (forced-colors:active){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22%23fff%22%20fill-rule%3D%22evenodd%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M4%2010a6%206%200%201%200%2012%200%206%206%200%201%200-12%200m5-3a1%201%200%201%200%202%200%201%201%200%201%200-2%200m0%203a1%201%200%201%201%202%200v3a1%201%200%201%201-2%200%22%2F%3E%3C%2Fsvg%3E")}}@media screen and (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20fill-rule%3D%22evenodd%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M4%2010a6%206%200%201%200%2012%200%206%206%200%201%200-12%200m5-3a1%201%200%201%200%202%200%201%201%200%201%200-2%200m0%203a1%201%200%201%201%202%200v3a1%201%200%201%201-2%200%22%2F%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl-attrib a{color:rgba(0,0,0,.75);text-decoration:none}.maplibregl-ctrl-attrib a:hover{color:inherit;text-decoration:underline}.maplibregl-attrib-empty{display:none}.maplibregl-ctrl-scale{background-color:hsla(0,0%,100%,.75);font-size:10px;white-space:nowrap;border-color:#333;border-style:none solid solid;border-width:medium 2px 2px;padding:0 5px;color:#333;box-sizing:border-box}.maplibregl-popup{position:absolute;top:0;left:0;display:flex;will-change:transform;pointer-events:none}.maplibregl-popup-anchor-top,.maplibregl-popup-anchor-top-left,.maplibregl-popup-anchor-top-right{flex-direction:column}.maplibregl-popup-anchor-bottom,.maplibregl-popup-anchor-bottom-left,.maplibregl-popup-anchor-bottom-right{flex-direction:column-reverse}.maplibregl-popup-anchor-left{flex-direction:row}.maplibregl-popup-anchor-right{flex-direction:row-reverse}.maplibregl-popup-tip{width:0;height:0;border:10px solid transparent;z-index:1}.maplibregl-popup-anchor-top .maplibregl-popup-tip{align-self:center;border-top:none;border-bottom-color:#fff}.maplibregl-popup-anchor-top-left .maplibregl-popup-tip{align-self:flex-start;border-top:none;border-left:none;border-bottom-color:#fff}.maplibregl-popup-anchor-top-right .maplibregl-popup-tip{align-self:flex-end;border-top:none;border-right:none;border-bottom-color:#fff}.maplibregl-popup-anchor-bottom .maplibregl-popup-tip{align-self:center;border-bottom:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip{align-self:flex-start;border-bottom:none;border-left:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip{align-self:flex-end;border-bottom:none;border-right:none;border-top-color:#fff}.maplibregl-popup-anchor-left .maplibregl-popup-tip{align-self:center;border-left:none;border-right-color:#fff}.maplibregl-popup-anchor-right .maplibregl-popup-tip{align-self:center;border-right:none;border-left-color:#fff}[dir=rtl] .maplibregl-popup-anchor-left{flex-direction:row-reverse}[dir=rtl] .maplibregl-popup-anchor-right{flex-direction:row}[dir=rtl] .maplibregl-popup-anchor-top-left .maplibregl-popup-tip{align-self:flex-end}[dir=rtl] .maplibregl-popup-anchor-top-right .maplibregl-popup-tip{align-self:flex-start}[dir=rtl] .maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip{align-self:flex-end}[dir=rtl] .maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip{align-self:flex-start}.maplibregl-popup-close-button{position:absolute;right:0;top:0;border:0;border-radius:0 3px 0 0;cursor:pointer;background-color:transparent}.maplibregl-popup-close-button:hover{background-color:rgba(0,0,0,.05)}.maplibregl-popup-content{position:relative;background:#fff;border-radius:3px;box-shadow:0 1px 2px rgba(0,0,0,.1);padding:15px 10px;pointer-events:auto}.maplibregl-popup-anchor-top-left .maplibregl-popup-content{border-top-left-radius:0}.maplibregl-popup-anchor-top-right .maplibregl-popup-content{border-top-right-radius:0}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-content{border-bottom-left-radius:0}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-content{border-bottom-right-radius:0}.maplibregl-popup-track-pointer{display:none}.maplibregl-popup-track-pointer *{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-map:hover .maplibregl-popup-track-pointer{display:flex}.maplibregl-map:active .maplibregl-popup-track-pointer{display:none}.maplibregl-marker{position:absolute;top:0;left:0;will-change:transform;transition:opacity .2s}.maplibregl-marker-draggable{cursor:grab}.maplibregl-user-location-dot,.maplibregl-user-location-dot:before{background-color:#1da1f2;width:15px;height:15px;border-radius:50%}.maplibregl-user-location-dot:before{content:"";position:absolute;animation:maplibregl-user-location-dot-pulse 2s infinite}.maplibregl-user-location-dot:after{border-radius:50%;border:2px solid #fff;content:"";height:19px;left:-2px;position:absolute;top:-2px;width:19px;box-sizing:border-box;box-shadow:0 0 3px rgba(0,0,0,.35)}@media (prefers-reduced-motion:reduce){.maplibregl-user-location-dot:before{animation:none}}@keyframes maplibregl-user-location-dot-pulse{0%{transform:scale(1);opacity:1}70%{transform:scale(3);opacity:0}to{transform:scale(1);opacity:0}}.maplibregl-user-location-dot-stale{background-color:#aaa}.maplibregl-user-location-dot-stale:after{display:none}.maplibregl-user-location-accuracy-circle{background-color:#1da1f233;width:1px;height:1px;border-radius:100%}.maplibregl-crosshair,.maplibregl-crosshair .maplibregl-interactive,.maplibregl-crosshair .maplibregl-interactive:active{cursor:crosshair}.maplibregl-boxzoom{position:absolute;top:0;left:0;width:0;height:0;background:#fff;border:2px dotted #202020;opacity:.5}.maplibregl-cooperative-gesture-screen{background:rgba(0,0,0,.4);position:absolute;inset:0;display:flex;justify-content:center;align-items:center;color:#fff;padding:1rem;font-size:1.4em;line-height:1.2;opacity:0;pointer-events:none;transition:opacity 1s ease 1s;z-index:99999}.maplibregl-cooperative-gesture-screen.maplibregl-show{opacity:1;transition:opacity .05s}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:none}@media (hover:none),(pointer:coarse){.maplibregl-cooperative-gesture-screen .maplibregl-desktop-message{display:none}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:block}}.maplibregl-pseudo-fullscreen{position:fixed!important;width:100%!important;height:100%!important;top:0!important;left:0!important;z-index:99999}',document.head.appendChild(e)}})()});var Ho=K(eu=>{"use strict";var JU=Jm(),I0e=dF(),R0e=jU(),cOr=c6().addStyleRule,B0e=Os(),oAt=Au(),sAt=hw(),lAt=B0e.extendFlat,QU=B0e.extendDeepAll;eu.modules={};eu.allCategories={};eu.allTypes=[];eu.subplotsRegistry={};eu.componentsRegistry={};eu.layoutArrayContainers=[];eu.layoutArrayRegexes=[];eu.traceLayoutAttributes={};eu.localeRegistry={};eu.apiMethodRegistry={};eu.collectableSubplotTypes=null;eu.register=function(t){if(eu.collectableSubplotTypes=null,t)t&&!Array.isArray(t)&&(t=[t]);else throw new Error("No argument passed to Plotly.register.");for(var r=0;r{"use strict";var dAt=X3().timeFormat,Y0e=Gs(),eG=Jm(),Eg=(J3(),ar(K3)).mod,vw=(Il(),ar(Bl)),Fp=vw.BADNUM,Td=vw.ONEDAY,d6=vw.ONEHOUR,Sg=vw.ONEMIN,pw=vw.ONESEC,p6=vw.EPOCHJD,ty=Ho(),U0e=X3().utcFormat,pAt=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\d)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d(:?\d\d)?)?)?)?)?)?\s*$/m,vAt=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\di?)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d(:?\d\d)?)?)?)?)?)?\s*$/m,G0e=new Date().getFullYear()-70;function ry(e){return e&&ty.componentsRegistry.calendars&&typeof e=="string"&&e!=="gregorian"}Tc.dateTick0=function(e,t){var r=mAt(e,!!t);if(t<2)return r;var i=Tc.dateTime2ms(r,e);return i+=Td*(t-1),Tc.ms2DateTime(i,0,e)};function mAt(e,t){return ry(e)?t?ty.getComponentMethod("calendars","CANONICAL_SUNDAY")[e]:ty.getComponentMethod("calendars","CANONICAL_TICK")[e]:t?"2000-01-02":"2000-01-01"}Tc.dfltRange=function(e){return ry(e)?ty.getComponentMethod("calendars","DFLTRANGE")[e]:["2000-01-01","2001-01-01"]};Tc.isJSDate=function(e){return typeof e=="object"&&e!==null&&typeof e.getTime=="function"};var wF,AF;Tc.dateTime2ms=function(e,t){if(Tc.isJSDate(e)){var r=e.getTimezoneOffset()*Sg,i=(e.getUTCMinutes()-e.getMinutes())*Sg+(e.getUTCSeconds()-e.getSeconds())*pw+(e.getUTCMilliseconds()-e.getMilliseconds());if(i){var n=3*Sg;r=r-n/2+Eg(i-r+n/2,n)}return e=Number(e)-r,e>=wF&&e<=AF?e:Fp}if(typeof e!="string"&&typeof e!="number")return Fp;e=String(e);var a=ry(t),o=e.charAt(0);a&&(o==="G"||o==="g")&&(e=e.slice(1),t="");var s=a&&t.slice(0,7)==="chinese",l=e.match(s?vAt:pAt);if(!l)return Fp;var u=l[1],f=l[3]||"1",c=Number(l[5]||1),h=Number(l[7]||0),d=Number(l[9]||0),p=Number(l[11]||0);if(a){if(u.length===2)return Fp;u=Number(u);var v;try{var y=ty.getComponentMethod("calendars","getCal")(t);if(s){var m=f.charAt(f.length-1)==="i";f=parseInt(f,10),v=y.newDate(u,y.toMonthIndex(u,f,m),c)}else v=y.newDate(u,Number(f),c)}catch(_){return Fp}return v?(v.toJD()-p6)*Td+h*d6+d*Sg+p*pw:Fp}u.length===2?u=(Number(u)+2e3-G0e)%100+G0e:u=Number(u),f-=1;var w=new Date(Date.UTC(2e3,f,c,h,d));return w.setUTCFullYear(u),w.getUTCMonth()!==f||w.getUTCDate()!==c?Fp:w.getTime()+p*pw};wF=Tc.MIN_MS=Tc.dateTime2ms("-9999");AF=Tc.MAX_MS=Tc.dateTime2ms("9999-12-31 23:59:59.9999");Tc.isDateTime=function(e,t){return Tc.dateTime2ms(e,t)!==Fp};function dw(e,t){return String(e+Math.pow(10,t)).slice(1)}var _F=90*Td,H0e=3*d6,j0e=5*Sg;Tc.ms2DateTime=function(e,t,r){if(typeof e!="number"||!(e>=wF&&e<=AF))return Fp;t||(t=0);var i=Math.floor(Eg(e+.05,1)*10),n=Math.round(e-i/10),a,o,s,l,u,f;if(ry(r)){var c=Math.floor(n/Td)+p6,h=Math.floor(Eg(e,Td));try{a=ty.getComponentMethod("calendars","getCal")(r).fromJD(c).formatDate("yyyy-mm-dd")}catch(d){a=U0e("G%Y-%m-%d")(new Date(n))}if(a.charAt(0)==="-")for(;a.length<11;)a="-0"+a.slice(1);else for(;a.length<10;)a="0"+a;o=t<_F?Math.floor(h/d6):0,s=t<_F?Math.floor(h%d6/Sg):0,l=t=wF+Td&&e<=AF-Td))return Fp;var t=Math.floor(Eg(e+.05,1)*10),r=new Date(Math.round(e-t/10)),i=dAt("%Y-%m-%d")(r),n=r.getHours(),a=r.getMinutes(),o=r.getSeconds(),s=r.getUTCMilliseconds()*10+t;return X0e(i,n,a,o,s)};function X0e(e,t,r,i,n){if((t||r||i||n)&&(e+=" "+dw(t,2)+":"+dw(r,2),(i||n)&&(e+=":"+dw(i,2),n))){for(var a=4;n%10===0;)a-=1,n/=10;e+="."+dw(n,a)}return e}Tc.cleanDate=function(e,t,r){if(e===Fp)return t;if(Tc.isJSDate(e)||typeof e=="number"&&isFinite(e)){if(ry(r))return eG.error("JS Dates and milliseconds are incompatible with world calendars",e),t;if(e=Tc.ms2DateTimeLocal(+e),!e&&t!==void 0)return t}else if(!Tc.isDateTime(e,r))return eG.error("unrecognized date",e),t;return e};var yAt=/%\d?f/g,gAt=/%h/g,xAt={1:"1",2:"1",3:"2",4:"2"};function W0e(e,t,r,i){e=e.replace(yAt,function(a){var o=Math.min(+a.charAt(1)||6,6),s=(t/1e3%1+2).toFixed(o).slice(2).replace(/0+$/,"")||"0";return s});var n=new Date(Math.floor(t+.05));if(e=e.replace(gAt,function(){return xAt[r("%q")(n)]}),ry(i))try{e=ty.getComponentMethod("calendars","worldCalFmt")(e,t,i)}catch(a){return"Invalid"}return r(e)(n)}var bAt=[59,59.9,59.99,59.999,59.9999];function _At(e,t){var r=Eg(e+.05,Td),i=dw(Math.floor(r/d6),2)+":"+dw(Eg(Math.floor(r/Sg),60),2);if(t!=="M"){Y0e(t)||(t=0);var n=Math.min(Eg(e/pw,60),bAt[t]),a=(100+n).toFixed(t).slice(1);t>0&&(a=a.replace(/0+$/,"").replace(/[\.]$/,"")),i+=":"+a}return i}Tc.formatDate=function(e,t,r,i,n,a){if(n=ry(n)&&n,!t)if(r==="y")t=a.year;else if(r==="m")t=a.month;else if(r==="d")t=a.dayMonth+` -`+a.year;else return _At(e,r)+` -`+W0e(a.dayMonthYear,e,i,n);return W0e(t,e,i,n)};var $0e=3*Td;Tc.incrementMonth=function(e,t,r){r=ry(r)&&r;var i=Eg(e,Td);if(e=Math.round(e-i),r)try{var n=Math.round(e/Td)+p6,a=ty.getComponentMethod("calendars","getCal")(r),o=a.fromJD(n);return t%12?a.add(o,t,"m"):a.add(o,t/12,"y"),(o.toJD()-p6)*Td+i}catch(l){eG.error("invalid ms "+e+" in calendar "+r)}var s=new Date(e+$0e);return s.setUTCMonth(s.getUTCMonth()+t)+i-$0e};Tc.findExactDates=function(e,t){for(var r=0,i=0,n=0,a=0,o,s,l=ry(t)&&ty.getComponentMethod("calendars","getCal")(t),u=0;u{"use strict";K0e.exports=function(t){return t}});var TF=K(iy=>{"use strict";var wAt=Gs(),AAt=Jm(),TAt=v6(),MAt=(Il(),ar(Bl)).BADNUM,tG=1e-9;iy.findBin=function(e,t,r){if(wAt(t.start))return r?Math.ceil((e-t.start)/t.size-tG)-1:Math.floor((e-t.start)/t.size+tG);var i=0,n=t.length,a=0,o=n>1?(t[n-1]-t[0])/(n-1):1,s,l;for(o>=0?l=r?SAt:EAt:l=r?CAt:kAt,e+=o*tG*(r?-1:1)*(o>=0?1:-1);i90&&AAt.log("Long binary search..."),i-1};function SAt(e,t){return et}function CAt(e,t){return e>=t}iy.sorterAsc=function(e,t){return e-t};iy.sorterDes=function(e,t){return t-e};iy.distinctVals=function(e){var t=e.slice();t.sort(iy.sorterAsc);var r;for(r=t.length-1;r>-1&&t[r]===MAt;r--);for(var i=t[r]-t[0]||1,n=i/(r||1)/1e4,a=[],o,s=0;s<=r;s++){var l=t[s],u=l-o;o===void 0?(a.push(l),o=l):u>n&&(i=Math.min(i,u),a.push(l),o=l)}return{vals:a,minDiff:i}};iy.roundUp=function(e,t,r){for(var i=0,n=t.length-1,a,o=0,s=r?0:1,l=r?1:0,u=r?Math.ceil:Math.floor;i0&&(i=1),r&&i)return e.sort(t)}return i?e:e.reverse()};iy.findIndexOfMin=function(e,t){t=t||TAt;for(var r=1/0,i,n=0;nFAt});function DAt(e){return Object.keys(e).sort()}var FAt,Qx=ps(()=>{"use strict";FAt=DAt});var J0e=K(Mc=>{"use strict";var m6=Gs(),LAt=$h().isArrayOrTypedArray;Mc.aggNums=function(e,t,r,i){var n,a;if((!i||i>r.length)&&(i=r.length),m6(t)||(t=!1),LAt(r[0])){for(a=new Array(i),n=0;ne.length-1)return e[e.length-1];var r=t%1;return r*e[Math.ceil(t)]+(1-r)*e[Math.floor(t)]}});var ide=K((yOr,rde)=>{"use strict";var Q0e=(J3(),ar(K3)),rG=Q0e.mod,PAt=Q0e.modHalf,y6=Math.PI,kg=2*y6;function zAt(e){return e/180*y6}function IAt(e){return e/y6*180}function iG(e){return Math.abs(e[1]-e[0])>kg-1e-14}function ede(e,t){return PAt(t-e,kg)}function RAt(e,t){return Math.abs(ede(e,t))}function tde(e,t){if(iG(t))return!0;var r,i;t[0]i&&(i+=kg);var n=rG(e,kg),a=n+kg;return n>=r&&n<=i||a>=r&&a<=i}function BAt(e,t,r,i){if(!tde(t,i))return!1;var n,a;return r[0]=n&&e<=a}function nG(e,t,r,i,n,a,o){n=n||0,a=a||0;var s=iG([r,i]),l,u,f,c,h;s?(l=0,u=y6,f=kg):r{"use strict";eb.isLeftAnchor=function(t){return t.xanchor==="left"||t.xanchor==="auto"&&t.x<=1/3};eb.isCenterAnchor=function(t){return t.xanchor==="center"||t.xanchor==="auto"&&t.x>1/3&&t.x<2/3};eb.isRightAnchor=function(t){return t.xanchor==="right"||t.xanchor==="auto"&&t.x>=2/3};eb.isTopAnchor=function(t){return t.yanchor==="top"||t.yanchor==="auto"&&t.y>=2/3};eb.isMiddleAnchor=function(t){return t.yanchor==="middle"||t.yanchor==="auto"&&t.y>1/3&&t.y<2/3};eb.isBottomAnchor=function(t){return t.yanchor==="bottom"||t.yanchor==="auto"&&t.y<=1/3}});var sde=K(tb=>{"use strict";var aG=(J3(),ar(K3)).mod;tb.segmentsIntersect=ode;function ode(e,t,r,i,n,a,o,s){var l=r-e,u=n-e,f=o-n,c=i-t,h=a-t,d=s-a,p=l*d-f*c;if(p===0)return null;var v=(u*d-f*h)/p,y=(u*c-l*h)/p;return y<0||y>1||v<0||v>1?null:{x:e+l*v,y:t+c*v}}tb.segmentDistance=function(t,r,i,n,a,o,s,l){if(ode(t,r,i,n,a,o,s,l))return 0;var u=i-t,f=n-r,c=s-a,h=l-o,d=u*u+f*f,p=c*c+h*h,v=Math.min(MF(u,f,d,a-t,o-r),MF(u,f,d,s-t,l-r),MF(c,h,p,t-a,r-o),MF(c,h,p,i-a,n-o));return Math.sqrt(v)};function MF(e,t,r,i,n){var a=i*e+n*t;if(a<0)return i*i+n*n;if(a>r){var o=i-e,s=n-t;return o*o+s*s}else{var l=i*t-n*e;return l*l/r}}var SF,oG,ade;tb.getTextLocation=function(t,r,i,n){if((t!==oG||n!==ade)&&(SF={},oG=t,ade=n),SF[i])return SF[i];var a=t.getPointAtLength(aG(i-n/2,r)),o=t.getPointAtLength(aG(i+n/2,r)),s=Math.atan((o.y-a.y)/(o.x-a.x)),l=t.getPointAtLength(aG(i,r)),u=(l.x*4+a.x+o.x)/6,f=(l.y*4+a.y+o.y)/6,c={x:u,y:f,theta:s};return SF[i]=c,c};tb.clearLocationCache=function(){oG=null};tb.getVisibleSegment=function(t,r,i){var n=r.left,a=r.right,o=r.top,s=r.bottom,l=0,u=t.getTotalLength(),f=u,c,h;function d(v){var y=t.getPointAtLength(v);v===0?c=y:v===u&&(h=y);var m=y.xa?y.x-a:0,w=y.ys?y.y-s:0;return Math.sqrt(m*m+w*w)}for(var p=d(l);p;){if(l+=p+i,l>f)return;p=d(l)}for(p=d(f);p;){if(f-=p+i,l>f)return;p=d(f)}return{min:l,max:f,len:f-l,total:u,isClosed:l===0&&f===u&&Math.abs(c.x-h.x)<.1&&Math.abs(c.y-h.y)<.1}};tb.findPointOnPath=function(t,r,i,n){n=n||{};for(var a=n.pathLength||t.getTotalLength(),o=n.tolerance||.001,s=n.iterationLimit||30,l=t.getPointAtLength(0)[i]>t.getPointAtLength(a)[i]?-1:1,u=0,f=0,c=a,h,d,p;u0?c=h:f=h,u++}return d}});var EF=K(g6=>{"use strict";var ny={};g6.throttle=function(t,r,i){var n=ny[t],a=Date.now();if(!n){for(var o in ny)ny[o].tsn.ts+r){s();return}n.timer=setTimeout(function(){s(),n.timer=null},r)};g6.done=function(e){var t=ny[e];return!t||!t.timer?Promise.resolve():new Promise(function(r){var i=t.onDone;t.onDone=function(){i&&i(),r(),t.onDone=null}})};g6.clear=function(e){if(e)lde(ny[e]),delete ny[e];else for(var t in ny)g6.clear(t)};function lde(e){e&&e.timer!==null&&(clearTimeout(e.timer),e.timer=null)}});var fde=K((_Or,ude)=>{"use strict";ude.exports=function(t){t._clearResponsive&&(t._clearResponsive(),delete t._clearResponsive)}});var cde=K((wOr,kF)=>{"use strict";kF.exports=sG;kF.exports.isMobile=sG;kF.exports.default=sG;var VAt=/(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|redmi|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,UAt=/CrOS/,GAt=/android|ipad|playbook|silk/i;function sG(e){e||(e={});let t=e.ua;if(!t&&typeof navigator!="undefined"&&(t=navigator.userAgent),t&&t.headers&&typeof t.headers["user-agent"]=="string"&&(t=t.headers["user-agent"]),typeof t!="string")return!1;let r=VAt.test(t)&&!UAt.test(t)||!!e.tablet&&GAt.test(t);return!r&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&t.indexOf("Macintosh")!==-1&&t.indexOf("Safari")!==-1&&(r=!0),r}});var dde=K((AOr,hde)=>{"use strict";var HAt=Gs(),jAt=cde();hde.exports=function(t){var r;if(t&&t.hasOwnProperty("userAgent")?r=t.userAgent:r=WAt(),typeof r!="string")return!0;var i=jAt({ua:{headers:{"user-agent":r}},tablet:!0,featureDetect:!1});if(!i)for(var n=r.split(" "),a=1;a-1;s--){var l=n[s];if(l.slice(0,8)==="Version/"){var u=l.slice(8).split(".")[0];if(HAt(u)&&(u=+u),u>=13)return!0}}}return i};function WAt(){var e;return typeof navigator!="undefined"&&(e=navigator.userAgent),e&&e.headers&&typeof e.headers["user-agent"]=="string"&&(e=e.headers["user-agent"]),e}});var vde=K((TOr,pde)=>{"use strict";var $At=No();pde.exports=function(t,r,i){var n=t.selectAll("g."+i.replace(/\s/g,".")).data(r,function(o){return o[0].trace.uid});n.exit().remove(),n.enter().append("g").attr("class",i),n.order();var a=t.classed("rangeplot")?"nodeRangePlot3":"node3";return n.each(function(o){o[0][a]=$At.select(this)}),n}});var yde=K((MOr,mde)=>{"use strict";var YAt=Ho();mde.exports=function(t,r){for(var i=t._context.locale,n=0;n<2;n++){for(var a=t._context.locales,o=0;o<2;o++){var s=(a[i]||{}).dictionary;if(s){var l=s[r];if(l)return l}a=YAt.localeRegistry}var u=i.split("-")[0];if(u===i)break;i=u}return r}});var lG=K((SOr,gde)=>{"use strict";gde.exports=function(t){for(var r={},i=[],n=0,a=0;a{"use strict";xde.exports=function(t){for(var r=KAt(t)?ZAt:XAt,i=[],n=0;n{"use strict";_de.exports=function(t,r){if(!r)return t;var i=1/Math.abs(r),n=i>1?(i*t+i*r)/i:t+r,a=String(n).length;if(a>16){var o=String(r).length,s=String(t).length;if(a>=s+o){var l=parseFloat(n).toPrecision(12);l.indexOf("e+")===-1&&(n=+l)}}return n}});var Tde={};Fl(Tde,{default:()=>e4t});function QAt(e){return typeof e=="string"&&(e=e.replace(JAt,"")),(0,Ade.default)(e)?Number(e):void 0}var Ade,JAt,e4t,Mde=ps(()=>{"use strict";Ade=I1(Gs());Il();JAt=/^['"%,$#\s']+|[, ]|['"%,$#\s']+$/g;e4t=QAt});var kde=K((DOr,Ede)=>{"use strict";var t4t=/<[^>]*>/g,r4t=/[\p{S}\p{P}]/gu,i4t=/[\p{Cc}\p{Cf}\uFE00-\uFE0F\u20E3]/gu,n4t=/�/g,a4t=/\s+/g,CF="-",Sde=CF.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),o4t=new RegExp(Sde+"{3,}","g"),s4t=new RegExp(Sde+"$","g"),l4t=60;function u4t(e){return typeof e.toWellFormed=="function"?e.toWellFormed():new TextDecoder().decode(new TextEncoder().encode(e))}Ede.exports=function(t,r=l4t){var i=u4t(t!=null?t:"").replace(n4t,"").replace(t4t," ").replace(r4t,n=>n===CF?n:"").toLowerCase().trim().replace(a4t,CF).replace(i4t,"").replace(o4t,CF);return i.length<=r?i:Array.from(i).slice(0,r).join("").replace(s4t,"")}});var Mt=K((FOr,Nde)=>{"use strict";var x6=No(),f4t=X3().utcFormat,c4t=iV().format,zde=Gs(),Ide=(Il(),ar(Bl)),Rde=Ide.FP_SAFE,h4t=-Rde,Cde=Ide.BADNUM,mr={};Nde.exports=mr;mr.adjustFormat=function(t){if(!t||/^\d[.]\df/.test(t)||/[.]\d%/.test(t))return t;if(t==="0.f")return"~f";if(/^\d%/.test(t))return"~%";if(/^\ds/.test(t))return"~s";var r=(t.match(/^[+\-( ]?/)||[""])[0],i=t.slice(r.length);return!/^[~,.0$#]/.test(i)&&/[&fps]/.test(i)?r+"~"+i:t};var Dde={};mr.warnBadFormat=function(e){var t=String(e);Dde[t]||(Dde[t]=1,mr.warn('encountered bad format: "'+t+'"'))};mr.noFormat=function(e){return String(e)};mr.numberFormat=function(e){var t;try{t=c4t(mr.adjustFormat(e))}catch(r){return mr.warnBadFormat(e),mr.noFormat}return t};mr.nestedProperty=NT();mr.keyedContainer=Tue();mr.relativeAttr=Sue();mr.isPlainObject=yg();mr.toLogRange=qD();mr.relinkPrivateKeys=Due();var Cg=$h();mr.isArrayBuffer=Cg.isArrayBuffer;mr.isTypedArray=Cg.isTypedArray;mr.isArrayOrTypedArray=Cg.isArrayOrTypedArray;mr.isArray1D=Cg.isArray1D;mr.ensureArray=Cg.ensureArray;mr.concat=Cg.concat;mr.maxRowLength=Cg.maxRowLength;mr.minRowLength=Cg.minRowLength;var Bde=(J3(),ar(K3));mr.mod=Bde.mod;mr.modHalf=Bde.modHalf;var Dg=Kce();mr.valObjectMeta=Dg.valObjectMeta;mr.coerce=Dg.coerce;mr.coerce2=Dg.coerce2;mr.coerceFont=Dg.coerceFont;mr.coercePattern=Dg.coercePattern;mr.coerceHoverinfo=Dg.coerceHoverinfo;mr.coerceSelectionMarkerOpacity=Dg.coerceSelectionMarkerOpacity;mr.validate=Dg.validate;var Xd=Z0e();mr.dateTime2ms=Xd.dateTime2ms;mr.isDateTime=Xd.isDateTime;mr.ms2DateTime=Xd.ms2DateTime;mr.ms2DateTimeLocal=Xd.ms2DateTimeLocal;mr.cleanDate=Xd.cleanDate;mr.isJSDate=Xd.isJSDate;mr.formatDate=Xd.formatDate;mr.incrementMonth=Xd.incrementMonth;mr.dateTick0=Xd.dateTick0;mr.dfltRange=Xd.dfltRange;mr.findExactDates=Xd.findExactDates;mr.MIN_MS=Xd.MIN_MS;mr.MAX_MS=Xd.MAX_MS;var rb=TF();mr.findBin=rb.findBin;mr.sorterAsc=rb.sorterAsc;mr.sorterDes=rb.sorterDes;mr.distinctVals=rb.distinctVals;mr.roundUp=rb.roundUp;mr.sort=rb.sort;mr.findIndexOfMin=rb.findIndexOfMin;mr.sortObjectKeys=(Qx(),ar(Jx)).default;var ay=J0e();mr.aggNums=ay.aggNums;mr.len=ay.len;mr.mean=ay.mean;mr.geometricMean=ay.geometricMean;mr.median=ay.median;mr.midRange=ay.midRange;mr.variance=ay.variance;mr.stdev=ay.stdev;mr.interp=ay.interp;var Nv=pF();mr.init2dArray=Nv.init2dArray;mr.transposeRagged=Nv.transposeRagged;mr.dot=Nv.dot;mr.translationMatrix=Nv.translationMatrix;mr.rotationMatrix=Nv.rotationMatrix;mr.rotationXYMatrix=Nv.rotationXYMatrix;mr.apply3DTransform=Nv.apply3DTransform;mr.apply2DTransform=Nv.apply2DTransform;mr.apply2DTransform2=Nv.apply2DTransform2;mr.convertCssMatrix=Nv.convertCssMatrix;mr.inverseTransformMatrix=Nv.inverseTransformMatrix;var O1=ide();mr.deg2rad=O1.deg2rad;mr.rad2deg=O1.rad2deg;mr.angleDelta=O1.angleDelta;mr.angleDist=O1.angleDist;mr.isFullCircle=O1.isFullCircle;mr.isAngleInsideSector=O1.isAngleInsideSector;mr.isPtInsideSector=O1.isPtInsideSector;mr.pathArc=O1.pathArc;mr.pathSector=O1.pathSector;mr.pathAnnulus=O1.pathAnnulus;var yw=nde();mr.isLeftAnchor=yw.isLeftAnchor;mr.isCenterAnchor=yw.isCenterAnchor;mr.isRightAnchor=yw.isRightAnchor;mr.isTopAnchor=yw.isTopAnchor;mr.isMiddleAnchor=yw.isMiddleAnchor;mr.isBottomAnchor=yw.isBottomAnchor;var gw=sde();mr.segmentsIntersect=gw.segmentsIntersect;mr.segmentDistance=gw.segmentDistance;mr.getTextLocation=gw.getTextLocation;mr.clearLocationCache=gw.clearLocationCache;mr.getVisibleSegment=gw.getVisibleSegment;mr.findPointOnPath=gw.findPointOnPath;var LF=Os();mr.extendFlat=LF.extendFlat;mr.extendDeep=LF.extendDeep;mr.extendDeepAll=LF.extendDeepAll;mr.extendDeepNoArrays=LF.extendDeepNoArrays;var uG=Jm();mr.log=uG.log;mr.warn=uG.warn;mr.error=uG.error;var d4t=(uw(),ar(f6));mr.counterRegex=d4t.counter;var fG=EF();mr.throttle=fG.throttle;mr.throttleDone=fG.done;mr.clearThrottle=fG.clear;var Vv=c6();mr.getGraphDiv=Vv.getGraphDiv;mr.isPlotDiv=Vv.isPlotDiv;mr.removeElement=Vv.removeElement;mr.addStyleRule=Vv.addStyleRule;mr.addRelatedStyleRule=Vv.addRelatedStyleRule;mr.deleteRelatedStyleRule=Vv.deleteRelatedStyleRule;mr.setStyleOnHover=Vv.setStyleOnHover;mr.getFullTransformMatrix=Vv.getFullTransformMatrix;mr.getElementTransformMatrix=Vv.getElementTransformMatrix;mr.getElementAndAncestors=Vv.getElementAndAncestors;mr.equalDomRects=Vv.equalDomRects;mr.clearResponsive=fde();mr.preserveDrawingBuffer=dde();mr.makeTraceGroups=vde();mr._=yde();mr.notifier=RU();mr.filterUnique=lG();mr.filterVisible=bde();mr.pushUnique=jU();mr.increment=wde();mr.cleanNumber=(Mde(),ar(Tde)).default;mr.slugify=kde();mr.ensureNumber=function(t){return zde(t)?(t=Number(t),t>Rde||t=t?!1:zde(e)&&e>=0&&e%1===0};mr.noop=dF();mr.identity=v6();mr.repeat=function(e,t){for(var r=new Array(t),i=0;ir?Math.max(r,Math.min(t,e)):Math.max(t,Math.min(r,e))};mr.bBoxIntersect=function(e,t,r){return r=r||0,e.left<=t.right+r&&t.left<=e.right+r&&e.top<=t.bottom+r&&t.top<=e.bottom+r};mr.simpleMap=function(e,t,r,i,n){for(var a=e.length,o=new Array(a),s=0;s=Math.pow(2,r)?n>10?(mr.warn("randstr failed uniqueness"),o):e(t,r,i,(n||0)+1):o};mr.OptionControl=function(e,t){e||(e={}),t||(t="opt");var r={};return r.optionList=[],r._newoption=function(i){i[t]=e,r[i.name]=i,r.optionList.push(i)},r["_"+t]=e,r};mr.smooth=function(e,t){if(t=Math.round(t)||0,t<2)return e;var r=e.length,i=2*r,n=2*t-1,a=new Array(n),o=new Array(r),s,l,u,f;for(s=0;s=i&&(u-=i*Math.floor(u/i)),u<0?u=-1-u:u>=r&&(u=i-1-u),f+=e[u]*a[l];o[s]=f}return o};mr.syncOrAsync=function(e,t,r){var i,n;function a(){return mr.syncOrAsync(e,t,r)}for(;e.length;)if(n=e.splice(0,1)[0],i=n(t),i&&i.then)return i.then(a);return r&&r(t)};mr.stripTrailingSlash=function(e){return e.slice(-1)==="/"?e.slice(0,-1):e};mr.noneOrAll=function(e,t,r){if(e){var i=!1,n=!0,a,o;for(a=0;a0?n:0})};mr.fillArray=function(e,t,r,i){if(i=i||mr.identity,mr.isArrayOrTypedArray(e))for(var n=0;nm4t.test(window.navigator.userAgent);var y4t=/Firefox\/(\d+)\.\d+/;mr.getFirefoxVersion=function(){var e=y4t.exec(window.navigator.userAgent);if(e&&e.length===2){var t=parseInt(e[1]);if(!isNaN(t))return t}return null};mr.isD3Selection=function(e){return e instanceof x6.selection};mr.ensureSingle=function(e,t,r,i){var n=e.select(t+(r?"."+r:""));if(n.size())return n;var a=e.append(t);return r&&a.classed(r,!0),i&&a.call(i),a};mr.ensureSingleById=function(e,t,r,i){var n=e.select(t+"#"+r);if(n.size())return n;var a=e.append(t).attr("id",r);return i&&a.call(i),a};mr.objectFromPath=function(e,t){for(var r=e.split("."),i,n=i={},a=0;a1?n+o[1]:"";if(a&&(o.length>1||s.length>4||r))for(;i.test(s);)s=s.replace(i,"$1"+a+"$2");return s+l};mr.TEMPLATE_STRING_REGEX=/%{([^\s%{}:]*)([:|\|][^}]*)?}/g;var Ode=/^\w*$/;mr.templateString=function(e,t){var r={};return e.replace(mr.TEMPLATE_STRING_REGEX,function(i,n){var a;return Ode.test(n)?a=t[n]:(r[n]=r[n]||mr.nestedProperty(t,n).get,a=r[n](!0)),a!==void 0?a:""})};var b4t={max:10,count:0,name:"hovertemplate"};mr.hovertemplateString=e=>cG(Ql(Zs({},e),{opts:b4t}));var _4t={max:10,count:0,name:"texttemplate"};mr.texttemplateString=e=>cG(Ql(Zs({},e),{opts:_4t}));var w4t=/^(\S+)([\*\/])(-?\d+(\.\d+)?)$/;function A4t(e){var t=e.match(w4t);return t?{key:t[1],op:t[2],number:Number(t[3])}:{key:e,op:null,number:null}}var T4t={max:10,count:0,name:"texttemplate",parseMultDiv:!0};mr.texttemplateStringForShapes=e=>cG(Ql(Zs({},e),{opts:T4t}));var Fde=/^[:|\|]/;function cG({data:e=[],locale:t,fallback:r,labels:i={},opts:n,template:a}){return a.replace(mr.TEMPLATE_STRING_REGEX,(o,s,l)=>{let u=["xother","yother"].includes(s),f=["_xother","_yother"].includes(s),c=["_xother_","_yother_"].includes(s),h=["xother_","yother_"].includes(s),d=u||f||h||c;(f||c)&&(s=s.substring(1)),(h||c)&&(s=s.substring(0,s.length-1));let p=null,v=null;if(n.parseMultDiv){var y=A4t(s);s=y.key,p=y.op,v=y.number}let m;if(d){if(i[s]===void 0)return"";m=i[s]}else for(let M of e)if(M){if(M.hasOwnProperty(s)){m=M[s];break}if(Ode.test(s)||(m=mr.nestedProperty(M,s).get(!0)),m!==void 0)break}if(m===void 0){let{count:M,max:x,name:A}=n,T=r===!1?o:r;return M=FF&&o<=Lde,u=s>=FF&&s<=Lde;if(l&&(i=10*i+o-FF),u&&(n=10*n+s-FF),!l||!u){if(i!==n)return i-n;if(o!==s)return o-s}}return n-i};var mw=2e9;mr.seedPseudoRandom=function(){mw=2e9};mr.pseudoRandom=function(){var e=mw;return mw=(69069*mw+1)%4294967296,Math.abs(mw-e)<429496729?mr.pseudoRandom():mw/4294967296};mr.fillText=function(e,t,r){var i=Array.isArray(r)?function(o){r.push(o)}:function(o){r.text=o},n=mr.extractOption(e,t,"htx","hovertext");if(mr.isValidTextValue(n))return i(n);var a=mr.extractOption(e,t,"tx","text");if(mr.isValidTextValue(a))return i(a)};mr.isValidTextValue=function(e){return e||e===0};mr.formatPercent=function(e,t){t=t||0;for(var r=(Math.round(100*e*Math.pow(10,t))*Math.pow(.1,t)).toFixed(t)+"%",i=0;i1&&(u=1):u=0,mr.strTranslate(n-u*(r+o),a-u*(i+s))+mr.strScale(u)+(l?"rotate("+l+(t?"":" "+r+" "+i)+")":"")};mr.setTransormAndDisplay=function(e,t){e.attr("transform",mr.getTextTransform(t)),e.style("display",t.scale?null:"none")};mr.ensureUniformFontSize=function(e,t){var r=mr.extendFlat({},t);return r.size=Math.max(t.size,e._fullLayout.uniformtext.minsize||0),r};mr.join2=function(e,t,r){var i=e.length;return i>1?e.slice(0,-1).join(t)+r+e[i-1]:e.join(t)};mr.bigFont=function(e){return Math.round(1.2*e)};var Pde=mr.getFirefoxVersion(),M4t=Pde!==null&&Pde<86;mr.getPositionFromD3Event=function(){return M4t?[x6.event.layerX,x6.event.layerY]:[x6.event.offsetX,x6.event.offsetY]}});var Gde=K(()=>{"use strict";var S4t=Mt(),Vde={"X,X div":'direction:ltr;font-family:"Open Sans",verdana,arial,sans-serif;margin:0;padding:0;border: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 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:focus-within .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-group a":"display:grid;place-content:center;","X .modebar-btn":"position:relative;font-size:16px;padding:3px 4px;height:22px;cursor:pointer;line-height:normal;box-sizing:border-box;border:none;background:rgba(0,0,0,0);","X .modebar-btn svg":"position:relative;","X .modebar-btn:focus-visible":"outline:1px solid #000;outline-offset:1px;border-radius:3px;","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;","X .plotly-cloud-dialog":'font-family:"Open Sans",verdana,arial,sans-serif;position:absolute;top:0;left:0;width:100%;height:100%;z-index:1001;display:flex;align-items:center;justify-content:center;background-color:rgba(0,0,0,.4);',"X .plotly-cloud-dialog .plotly-cloud-dialog-box":"box-sizing:border-box;min-width:300px;max-width:420px;padding:20px 24px;background-color:#fff;border:1px solid #e0e2e5;border-radius:4px;box-shadow:0 4px 16px rgba(0,0,0,.25);font-size:13px;color:#2a3f5f;","X .plotly-cloud-dialog .plotly-cloud-dialog-title":"font-size:16px;font-weight:bold;margin-bottom:12px;","X .plotly-cloud-dialog .plotly-cloud-dialog-message":"line-height:1.5;overflow-wrap:break-word;word-wrap:break-word;","X .plotly-cloud-dialog .plotly-cloud-dialog-message--hostname":"font-weight:bold;text-decoration:underline;","X .plotly-cloud-dialog .plotly-cloud-dialog-message--account":"margin-top:16px;padding:8px;border-radius:3px;font-size:.9em;background-color:#edf1f8;","X .plotly-cloud-dialog .plotly-cloud-dialog-buttons":"display:flex;justify-content:flex-end;margin-top:20px;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn":"font-family:inherit;font-size:13px;padding:7px 16px;margin-left:8px;border-radius:3px;border:1px solid rgba(0,0,0,0);cursor:pointer;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn:focus-visible":"outline:2px solid #447adb;outline-offset:1px;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn--cancel":"background-color:#f3f3f3;margin-left:auto;color:#777;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn--cancel:hover":"background-color:#e0e2e5;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn--confirm":"background-color:#447adb;color:#fff;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn--confirm:hover":"background-color:#1d3b84;",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(hG in Vde)Ude=hG.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier"),S4t.addStyleRule(Ude,Vde[hG]);var Ude,hG});var dG=K((IOr,Hde)=>{Hde.exports=!0});var vG=K((ROr,jde)=>{"use strict";var E4t=dG(),pG;typeof window.matchMedia=="function"?pG=!window.matchMedia("(hover: none)").matches:pG=E4t;jde.exports=pG});var ib=K((BOr,mG)=>{"use strict";var xw=typeof Reflect=="object"?Reflect:null,Wde=xw&&typeof xw.apply=="function"?xw.apply:function(t,r,i){return Function.prototype.apply.call(t,r,i)},PF;xw&&typeof xw.ownKeys=="function"?PF=xw.ownKeys:Object.getOwnPropertySymbols?PF=function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:PF=function(t){return Object.getOwnPropertyNames(t)};function k4t(e){console&&console.warn&&console.warn(e)}var Yde=Number.isNaN||function(t){return t!==t};function Pf(){Pf.init.call(this)}mG.exports=Pf;mG.exports.once=L4t;Pf.EventEmitter=Pf;Pf.prototype._events=void 0;Pf.prototype._eventsCount=0;Pf.prototype._maxListeners=void 0;var $de=10;function zF(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(Pf,"defaultMaxListeners",{enumerable:!0,get:function(){return $de},set:function(e){if(typeof e!="number"||e<0||Yde(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");$de=e}});Pf.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};Pf.prototype.setMaxListeners=function(t){if(typeof t!="number"||t<0||Yde(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this};function Xde(e){return e._maxListeners===void 0?Pf.defaultMaxListeners:e._maxListeners}Pf.prototype.getMaxListeners=function(){return Xde(this)};Pf.prototype.emit=function(t){for(var r=[],i=1;i0&&(o=r[0]),o instanceof Error)throw o;var s=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw s.context=o,s}var l=a[t];if(l===void 0)return!1;if(typeof l=="function")Wde(l,this,r);else for(var u=l.length,f=epe(l,u),i=0;i0&&o.length>n&&!o.warned){o.warned=!0;var s=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");s.name="MaxListenersExceededWarning",s.emitter=e,s.type=t,s.count=o.length,k4t(s)}return e}Pf.prototype.addListener=function(t,r){return Zde(this,t,r,!1)};Pf.prototype.on=Pf.prototype.addListener;Pf.prototype.prependListener=function(t,r){return Zde(this,t,r,!0)};function C4t(){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 Kde(e,t,r){var i={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},n=C4t.bind(i);return n.listener=r,i.wrapFn=n,n}Pf.prototype.once=function(t,r){return zF(r),this.on(t,Kde(this,t,r)),this};Pf.prototype.prependOnceListener=function(t,r){return zF(r),this.prependListener(t,Kde(this,t,r)),this};Pf.prototype.removeListener=function(t,r){var i,n,a,o,s;if(zF(r),n=this._events,n===void 0)return this;if(i=n[t],i===void 0)return this;if(i===r||i.listener===r)--this._eventsCount===0?this._events=Object.create(null):(delete n[t],n.removeListener&&this.emit("removeListener",t,i.listener||r));else if(typeof i!="function"){for(a=-1,o=i.length-1;o>=0;o--)if(i[o]===r||i[o].listener===r){s=i[o].listener,a=o;break}if(a<0)return this;a===0?i.shift():D4t(i,a),i.length===1&&(n[t]=i[0]),n.removeListener!==void 0&&this.emit("removeListener",t,s||r)}return this};Pf.prototype.off=Pf.prototype.removeListener;Pf.prototype.removeAllListeners=function(t){var r,i,n;if(i=this._events,i===void 0)return this;if(i.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):i[t]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete i[t]),this;if(arguments.length===0){var a=Object.keys(i),o;for(n=0;n=0;n--)this.removeListener(t,r[n]);return this};function Jde(e,t,r){var i=e._events;if(i===void 0)return[];var n=i[t];return n===void 0?[]:typeof n=="function"?r?[n.listener||n]:[n]:r?F4t(n):epe(n,n.length)}Pf.prototype.listeners=function(t){return Jde(this,t,!0)};Pf.prototype.rawListeners=function(t){return Jde(this,t,!1)};Pf.listenerCount=function(e,t){return typeof e.listenerCount=="function"?e.listenerCount(t):Qde.call(e,t)};Pf.prototype.listenerCount=Qde;function Qde(e){var t=this._events;if(t!==void 0){var r=t[e];if(typeof r=="function")return 1;if(r!==void 0)return r.length}return 0}Pf.prototype.eventNames=function(){return this._eventsCount>0?PF(this._events):[]};function epe(e,t){for(var r=new Array(t),i=0;i{"use strict";var yG=ib().EventEmitter,z4t={init:function(e){if(e._ev instanceof yG)return e;var t=new yG,r=new yG;return e._ev=t,e._internalEv=r,e.on=t.on.bind(t),e.once=t.once.bind(t),e.removeListener=t.removeListener.bind(t),e.removeAllListeners=t.removeAllListeners.bind(t),e._internalOn=r.on.bind(r),e._internalOnce=r.once.bind(r),e._removeInternalListener=r.removeListener.bind(r),e._removeAllInternalListeners=r.removeAllListeners.bind(r),e.emit=function(i,n){t.emit(i,n),r.emit(i,n)},typeof e.addEventListener=="function"&&e.addEventListener("wheel",()=>{},{passive:!0}),e},triggerHandler:function(e,t,r){var i,n=e._ev;if(!n)return;var a=n._events[t];if(!a)return;function o(l){if(l.listener){if(n.removeListener(t,l.listener),!l.fired)return l.fired=!0,l.listener.apply(n,[r])}else return l.apply(n,[r])}a=Array.isArray(a)?a:[a];var s;for(s=0;s{"use strict";var ipe=Mt(),I4t=_g().dfltConfig;function R4t(e,t){for(var r=[],i,n=0;nI4t.queueLength&&(e.undoQueue.queue.shift(),e.undoQueue.index--)};oy.startSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!0,e.undoQueue.beginSequence=!0};oy.stopSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!1,e.undoQueue.beginSequence=!1};oy.undo=function(t){var r,i;if(!(t.undoQueue===void 0||isNaN(t.undoQueue.index)||t.undoQueue.index<=0)){for(t.undoQueue.index--,r=t.undoQueue.queue[t.undoQueue.index],t.undoQueue.inSequence=!0,i=0;i=t.undoQueue.queue.length)){for(r=t.undoQueue.queue[t.undoQueue.index],t.undoQueue.inSequence=!0,i=0;i{"use strict";ope.exports={_isLinkedToArray:"frames_entry",group:{valType:"string"},name:{valType:"string"},traces:{valType:"any"},baseframe:{valType:"string"},data:{valType:"any"},layout:{valType:"any"}}});var Aw=K(oh=>{"use strict";var Lp=Ho(),b6=Mt(),RF=Au(),xG=hw(),B4t=gG(),q4t=h6(),O4t=_g().configAttributes,spe=Ef(),Uv=b6.extendDeepAll,_w=b6.isPlainObject,N4t=b6.isArrayOrTypedArray,BF=b6.nestedProperty,V4t=b6.valObjectMeta,bG="_isSubplotObj",qF="_isLinkedToArray",U4t="_arrayAttrRegexps",upe="_deprecated",_G=[bG,qF,U4t,upe];oh.IS_SUBPLOT_OBJ=bG;oh.IS_LINKED_TO_ARRAY=qF;oh.DEPRECATED=upe;oh.UNDERSCORE_ATTRS=_G;oh.get=function(){var e={};return Lp.allTypes.forEach(function(t){e[t]=H4t(t)}),{defs:{valObjects:V4t,metaKeys:_G.concat(["description","role","editType","impliedEdits"]),editType:{traces:spe.traces,layout:spe.layout},impliedEdits:{}},traces:e,layout:j4t(),frames:W4t(),animation:ww(q4t),config:ww(O4t)}};oh.crawl=function(e,t,r,i){var n=r||0;i=i||"",Object.keys(e).forEach(function(a){var o=e[a];if(_G.indexOf(a)===-1){var s=(i?i+".":"")+a;t(o,a,e,n,s),!oh.isValObject(o)&&_w(o)&&a!=="impliedEdits"&&oh.crawl(o,t,n+1,s)}})};oh.isValObject=function(e){return e&&e.valType!==void 0};oh.findArrayAttributes=function(e){var t=[],r=[],i=[],n,a;function o(l,u,f,c){r=r.slice(0,c).concat([u]),i=i.slice(0,c).concat([l&&l._isLinkedToArray]);var h=l&&(l.valType==="data_array"||l.arrayOk===!0)&&!(r[c-1]==="colorbar"&&(u==="ticktext"||u==="tickvals"));h&&s(n,0,"")}function s(l,u,f){var c=l[r[u]],h=f+r[u];if(u===r.length-1)N4t(c)&&t.push(a+h);else if(i[u]){if(Array.isArray(c))for(var d=0;d=a.length)return!1;if(e.dimensions===2){if(r++,t.length===r)return e;var o=t[r];if(!IF(o))return!1;e=a[n][o]}else e=a[n]}else e=a}}return e}function IF(e){return e===Math.round(e)&&e>=0}function H4t(e){var t,r;t=Lp.modules[e]._module,r=t.basePlotModule;var i={};i.type=null;var n=Uv({},RF),a=Uv({},t.attributes);oh.crawl(a,function(l,u,f,c,h){BF(n,h).set(void 0),l===void 0&&BF(a,h).set(void 0)}),Uv(i,n),Lp.traceIs(e,"noOpacity")&&delete i.opacity,Lp.traceIs(e,"showLegend")||(delete i.showlegend,delete i.legendgroup),Lp.traceIs(e,"noHover")&&(delete i.hoverinfo,delete i.hoverlabel),t.selectPoints||delete i.selectedpoints,Uv(i,a),r.attributes&&Uv(i,r.attributes),i.type=e;var o={meta:t.meta||{},categories:t.categories||{},animatable:!!t.animatable,type:e,attributes:ww(i)};if(t.layoutAttributes){var s={};Uv(s,t.layoutAttributes),o.layoutAttributes=ww(s)}return t.animatable||oh.crawl(o,function(l){oh.isValObject(l)&&"anim"in l&&delete l.anim}),o}function j4t(){var e={},t,r;Uv(e,xG);for(t in Lp.subplotsRegistry)if(r=Lp.subplotsRegistry[t],!!r.layoutAttributes)if(Array.isArray(r.attr))for(var i=0;i{"use strict";var Tw=Mt(),K4t=Au(),Fg="templateitemname",wG={name:{valType:"string",editType:"none"}};wG[Fg]={valType:"string",editType:"calc"};nb.templatedArray=function(e,t){return t._isLinkedToArray=e,t.name=wG.name,t[Fg]=wG[Fg],t};nb.traceTemplater=function(e){var t={},r,i;for(r in e)i=e[r],Array.isArray(i)&&i.length&&(t[r]=0);function n(a){r=Tw.coerce(a,{},K4t,"type");var o={type:r,_template:null};if(r in t){i=e[r];var s=t[r]%i.length;t[r]++,o._template=i[s]}return o}return{newTrace:n}};nb.newContainer=function(e,t,r){var i=e._template,n=i&&(i[t]||r&&i[r]);Tw.isPlainObject(n)||(n=null);var a=e[t]={_template:n};return a};nb.arrayTemplater=function(e,t,r){var i=e._template,n=i&&i[hpe(t)],a=i&&i[t];(!Array.isArray(a)||!a.length)&&(a=[]);var o={};function s(u){var f={name:u.name,_input:u},c=f[Fg]=u[Fg];if(!cpe(c))return f._template=n,f;for(var h=0;h=i&&(r._input||{})._templateitemname;a&&(n=i);var o=t+"["+n+"]",s;function l(){s={},a&&(s[o]={},s[o][Fg]=a)}l();function u(d,p){s[d]=p}function f(d,p){a?Tw.nestedProperty(s[o],d).set(p):s[o+"."+d]=p}function c(){var d=s;return l(),d}function h(d,p){d&&f(d,p);var v=c();for(var y in v)Tw.nestedProperty(e,y).set(v[y])}return{modifyBase:u,modifyItem:f,getUpdateObj:c,applyUpdate:h}}});var Vc={};Fl(Vc,{AX_ID_PATTERN:()=>r5t,AX_NAME_PATTERN:()=>i5t,DFLTRANGEX:()=>c5t,DFLTRANGEY:()=>h5t,DRAGGERSIZE:()=>u5t,HOUR_PATTERN:()=>a5t,MINDRAG:()=>s5t,MINZOOM:()=>l5t,REDRAWDELAY:()=>f5t,SUBPLOT_PATTERN:()=>n5t,WEEKDAY_PATTERN:()=>o5t,attrRegex:()=>Q4t,clipOnAxisFalseQuery:()=>p5t,idRegex:()=>J4t,layerValue2layerClass:()=>v5t,traceLayerClasses:()=>d5t,xAxisMatch:()=>e5t,yAxisMatch:()=>t5t,zindexSeparator:()=>m5t});var J4t,Q4t,e5t,t5t,r5t,i5t,n5t,a5t,o5t,s5t,l5t,u5t,f5t,c5t,h5t,d5t,p5t,v5t,m5t,Uc=ps(()=>{"use strict";uw();J4t={x:Zx("x","( domain)?"),y:Zx("y","( domain)?")},Q4t=Zx("[xy]axis"),e5t=Zx("xaxis"),t5t=Zx("yaxis"),r5t=/^[xyz][0-9]*( domain)?$/,i5t=/^[xyz]axis[0-9]*$/,n5t=/^x([0-9]*)y([0-9]*)$/,a5t="hour",o5t="day of week",s5t=8,l5t=20,u5t=20,f5t=50,c5t=[-1,6],h5t=[-1,4],d5t=["imagelayer","heatmaplayer","contourcarpetlayer","contourlayer","funnellayer","waterfalllayer","barlayer","carpetlayer","violinlayer","boxlayer","ohlclayer","scattercarpetlayer","scatterlayer"],p5t=[".scatterlayer",".barlayer",".funnellayer",".waterfalllayer"],v5t={"above traces":"above","below traces":"below"},m5t="z"});var Vf=K(Md=>{"use strict";var y5t=Ho(),AG=(Uc(),ar(Vc));Md.id2name=function(t){if(!(typeof t!="string"||!t.match(AG.AX_ID_PATTERN))){var r=t.split(" ")[0].slice(1);return r==="1"&&(r=""),t.charAt(0)+"axis"+r}};Md.name2id=function(t){if(t.match(AG.AX_NAME_PATTERN)){var r=t.slice(5);return r==="1"&&(r=""),t.charAt(0)+r}};Md.cleanId=function(t,r,i){var n=/( domain)$/.test(t);if(!(typeof t!="string"||!t.match(AG.AX_ID_PATTERN))&&!(r&&t.charAt(0)!==r)&&!(n&&!i)){var a=t.split(" ")[0].slice(1).replace(/^0+/,"");return a==="1"&&(a=""),t.charAt(0)+a+(n&&i?" domain":"")}};Md.list=function(e,t,r){var i=e._fullLayout;if(!i)return[];var n=Md.listIds(e,t),a=new Array(n.length),o;for(o=0;oi?1:-1:+(e.slice(1)||1)-+(t.slice(1)||1)};Md.ref2id=function(e){return/^[xyz]/.test(e)?e.split(" ")[0]:!1};function dpe(e,t){if(t&&t.length){for(var r=0;r{"use strict";function g5t(e){var t=e._fullLayout._zoomlayer;t&&t.selectAll(".outline-controllers").remove()}function x5t(e){var t=e._fullLayout._zoomlayer;t&&t.selectAll(".select-outline").remove(),e._fullLayout._outlining=!1}ppe.exports={clearOutlineControllers:g5t,clearOutline:x5t}});var OF=K((WOr,vpe)=>{"use strict";vpe.exports={scattermode:{valType:"enumerated",values:["group","overlay"],dflt:"overlay",editType:"calc"},scattergap:{valType:"number",min:0,max:1,editType:"calc"}}});var Xh=K(VF=>{"use strict";var NF=Ho(),$Or=(Uc(),ar(Vc)).SUBPLOT_PATTERN;VF.getSubplotCalcData=function(e,t,r){var i=NF.subplotsRegistry[t];if(!i)return[];for(var n=i.attr,a=[],o=0;o{"use strict";var b5t=Ho(),Mw=Mt();ab.manageCommandObserver=function(e,t,r,i){var n={},a=!0;t&&t._commandObserver&&(n=t._commandObserver),n.cache||(n.cache={}),n.lookupTable={};var o=ab.hasSimpleAPICommandBindings(e,r,n.lookupTable);if(t&&t._commandObserver){if(o)return n;if(t._commandObserver.remove)return t._commandObserver.remove(),t._commandObserver=null,n}if(o){mpe(e,o,n.cache),n.check=function(){if(a){var f=mpe(e,o,n.cache);return f.changed&&i&&n.lookupTable[f.value]!==void 0&&(n.disable(),Promise.resolve(i({value:f.value,type:o.type,prop:o.prop,traces:o.traces,index:n.lookupTable[f.value]})).then(n.enable,n.enable)),f.changed}};for(var s=["plotly_relayout","plotly_redraw","plotly_restyle","plotly_update","plotly_animatingframe","plotly_afterplot"],l=0;l0?".":"")+n;Mw.isPlainObject(a)?TG(a,t,o,i+1):t(o,n,a)}})}});var yf=K((KOr,Cpe)=>{"use strict";var ZOr=No(),w5t=X3().timeFormatLocale,A5t=iV().formatLocale,_6=Gs(),T5t=aV(),M5t=OT().version,gu=Ho(),S5t=Aw(),E5t=fu(),os=Mt(),k5t=ko(),bpe=(Il(),ar(Bl)).BADNUM,Sd=Vf(),C5t=Lg().clearOutline,D5t=OF(),MG=h6(),F5t=gG(),L5t=Xh().getModuleCalcData,_pe=os.relinkPrivateKeys,ob=os._,zo=Cpe.exports={};os.extendFlat(zo,gu);zo.attributes=Au();zo.attributes.type.values=zo.allTypes;zo.fontAttrs=lf();zo.layoutAttributes=hw();var GF=xpe();zo.executeAPICommand=GF.executeAPICommand;zo.computeAPICommandBindings=GF.computeAPICommandBindings;zo.manageCommandObserver=GF.manageCommandObserver;zo.hasSimpleAPICommandBindings=GF.hasSimpleAPICommandBindings;zo.redrawText=function(e){return e=os.getGraphDiv(e),new Promise(function(t){setTimeout(function(){e._fullLayout&&(gu.getComponentMethod("annotations","draw")(e),gu.getComponentMethod("legend","draw")(e),gu.getComponentMethod("colorbar","draw")(e),t(zo.previousPromises(e)))},300)})};zo.resize=function(e){e=os.getGraphDiv(e);var t,r=new Promise(function(i,n){(!e||os.isHidden(e))&&n(new Error("Resize must be passed a displayed plot div element.")),e._redrawTimer&&clearTimeout(e._redrawTimer),e._resolveResize&&(t=e._resolveResize),e._resolveResize=i,e._redrawTimer=setTimeout(function(){if(!e.layout||e.layout.width&&e.layout.height||os.isHidden(e)){i(e);return}delete e.layout.width,delete e.layout.height;var a=e.changed;e.autoplay=!0,gu.call("relayout",e,{autosize:!0}).then(function(){e.changed=a,e._resolveResize===i&&(delete e._resolveResize,i(e))})},100)});return t&&t(r),r};zo.previousPromises=function(e){if((e._promises||[]).length)return Promise.all(e._promises).then(function(){e._promises=[]})};zo.sendDataToCloud=function(e,t){e.emit("plotly_beforeexport");let r=new URL(t).origin;var i=zo.graphJson(e,!1,"object");i.version=M5t;var n=new URL(t);n.searchParams.set("origin",window.location.origin);var a=window.open(n.href,"_blank");if(!a){console.error("Unable to open Plotly Cloud (the popup may have been blocked)"),e.emit("plotly_exportfail");return}var o=function(s){s.origin===r&&s.data&&s.data.type==="CHART_AUTH_SUCCESS"&&(a.postMessage({type:"chart",chart:i},r),window.removeEventListener("message",o),e.emit("plotly_afterexport"))};return window.addEventListener("message",o),!1};var P5t=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],z5t=["year","month","dayMonth","dayMonthYear"];zo.supplyDefaults=function(e,t){var r=t&&t.skipUpdateCalc,i=e._fullLayout||{};if(i._skipDefaults){delete i._skipDefaults;return}var n=e._fullLayout={},a=e.layout||{},o=e._fullData||[],s=e._fullData=[],l=e.data||[],u=e.calcdata||[],f=e._context||{},c;e._transitionData||zo.createTransitionData(e),n._dfltTitle={plot:ob(e,"Click to enter Plot title"),subtitle:ob(e,"Click to enter Plot subtitle"),x:ob(e,"Click to enter X axis title"),y:ob(e,"Click to enter Y axis title"),colorbar:ob(e,"Click to enter Colorscale title"),annotation:ob(e,"new text")},n._traceWord=ob(e,"trace");var h=wpe(e,P5t);if(i._initialAutoSizeIsDone){var d=i.width,p=i.height;zo.supplyLayoutGlobalDefaults(a,n,h),a.width||(n.width=d),a.height||(n.height=p),zo.sanitizeMargins(n)}else{zo.supplyLayoutGlobalDefaults(a,n,h);var v=!a.width||!a.height,y=n.autosize,m=f.autosizable,w=v&&(y||m);w?zo.plotAutoSize(e,a,n):v&&zo.sanitizeMargins(n),!y&&v&&(a.width=n.width,a.height=n.height)}n._d3locale=B5t(h,n.separators),n._extraFormat=wpe(e,z5t),n._initialAutoSizeIsDone=!0,n._dataLength=l.length,n._modules=[],n._visibleModules=[],n._basePlotModules=[];var _=n._subplots=R5t(),b=n._splomAxes={x:{},y:{}},M=n._splomSubplots={};n._splomGridDflt={},n._scatterStackOpts={},n._firstScatter={},n._alignmentOpts={},n._colorAxes={},n._requestRangeslider={},n._traceUids=I5t(o,l),zo.supplyDataDefaults(l,s,a,n);var x=Object.keys(b.x),A=Object.keys(b.y);if(x.length>1&&A.length>1){for(gu.getComponentMethod("grid","sizeDefaults")(a,n),c=0;c15&&A.length>15&&n.shapes.length===0&&n.images.length===0,zo.linkSubplots(s,n,o,i),zo.cleanPlot(s,n,o,i);var C=!!(i._has&&i._has("cartesian")),k=!!(n._has&&n._has("cartesian")),D=C,L=k;D&&!L?i._bgLayer.remove():L&&!D&&(n._shouldCreateBgLayer=!0),i._zoomlayer&&!e._dragging&&C5t({_fullLayout:i}),q5t(s,n),_pe(n,i),gu.getComponentMethod("colorscale","crossTraceDefaults")(s,n),n._preGUI||(n._preGUI={}),n._tracePreGUI||(n._tracePreGUI={});var P=n._tracePreGUI,I={},F;for(F in P)I[F]="old";for(c=0;c0){var f=1-2*a;o=Math.round(f*o),s=Math.round(f*s)}}var c=zo.layoutAttributes.width.min,h=zo.layoutAttributes.height.min;o1,p=!r.height&&Math.abs(i.height-s)>1;(p||d)&&(d&&(i.width=o),p&&(i.height=s)),t._initialAutoSize||(t._initialAutoSize={width:o,height:s}),zo.sanitizeMargins(i)};zo.supplyLayoutModuleDefaults=function(e,t,r,i){var n=gu.componentsRegistry,a=t._basePlotModules,o,s,l,u=gu.subplotsRegistry.cartesian;for(o in n)l=n[o],l.includeBasePlot&&l.includeBasePlot(e,t);a.length||a.push(u),t._has("cartesian")&&(gu.getComponentMethod("grid","contentDefaults")(e,t),u.finalizeSubplots(e,t));for(var f in t._subplots)t._subplots[f].sort(os.subplotSort);for(s=0;s1&&(r.l/=y,r.r/=y)}if(h){var m=(r.t+r.b)/h;m>1&&(r.t/=m,r.b/=m)}var w=r.xl!==void 0?r.xl:r.x,_=r.xr!==void 0?r.xr:r.x,b=r.yt!==void 0?r.yt:r.y,M=r.yb!==void 0?r.yb:r.y;d[t]={l:{val:w,size:r.l+v},r:{val:_,size:r.r+v},b:{val:M,size:r.b+v},t:{val:b,size:r.t+v}},p[t]=1}if(!i._replotting)return zo.doAutoMargin(e)}};function N5t(e){if("_redrawFromAutoMarginCount"in e._fullLayout)return!1;var t=Sd.list(e,"",!0);for(var r in t)if(t[r].autoshift||t[r].shift)return!0;return!1}zo.doAutoMargin=function(e){var t=e._fullLayout,r=t.width,i=t.height;t._size||(t._size={}),Mpe(t);var n=t._size,a=t.margin,o={t:0,b:0,l:0,r:0},s=os.extendFlat({},n),l=a.l,u=a.r,f=a.t,c=a.b,h=t._pushmargin,d=t._pushmarginIds,p=t.minreducedwidth,v=t.minreducedheight;if(a.autoexpand!==!1){for(var y in h)d[y]||delete h[y];var m=e._fullLayout._reservedMargin;for(var w in m)for(var _ in m[w]){var b=m[w][_];o[_]=Math.max(o[_],b)}h.base={l:{val:0,size:l},r:{val:1,size:u},t:{val:1,size:f},b:{val:0,size:c}};for(var M in o){var x=0;for(var A in h)A!=="base"&&_6(h[A][M].size)&&(x=h[A][M].size>x?h[A][M].size:x);var T=Math.max(0,a[M]-x);o[M]=Math.max(0,o[M]-T)}for(var g in h){var E=h[g].l||{},S=h[g].b||{},C=E.val,k=E.size,D=S.val,L=S.size,P=r-o.r-o.l,I=i-o.t-o.b;for(var F in h){if(_6(k)&&h[F].r){var z=h[F].r.val,B=h[F].r.size;if(z>C){var O=(k*z+(B-P)*C)/(z-C),W=(B*(1-C)+(k-P)*(1-z))/(z-C);O+W>l+u&&(l=O,u=W)}}if(_6(L)&&h[F].t){var X=h[F].t.val,Z=h[F].t.size;if(X>D){var j=(L*X+(Z-I)*D)/(X-D),q=(Z*(1-D)+(L-I)*(1-X))/(X-D);j+q>c+f&&(c=j,f=q)}}}}}var Q=os.constrain(r-a.l-a.r,Spe,p),N=os.constrain(i-a.t-a.b,Epe,v),V=Math.max(0,r-Q),J=Math.max(0,i-N);if(V){var H=(l+u)/V;H>1&&(l/=H,u/=H)}if(J){var $=(c+f)/J;$>1&&(c/=$,f/=$)}if(n.l=Math.round(l)+o.l,n.r=Math.round(u)+o.r,n.t=Math.round(f)+o.t,n.b=Math.round(c)+o.b,n.p=Math.round(a.pad),n.w=Math.round(r)-n.l-n.r,n.h=Math.round(i)-n.t-n.b,!t._replotting&&(zo.didMarginChange(s,n)||N5t(e))){"_redrawFromAutoMarginCount"in t?t._redrawFromAutoMarginCount++:t._redrawFromAutoMarginCount=1;var te=3*(1+Object.keys(d).length);if(t._redrawFromAutoMarginCount1)return!0}return!1};zo.graphJson=function(e,t=!1,r="json",i=!1,n=!1){(i&&t&&!e._fullData||i&&!t&&!e._fullLayout)&&zo.supplyDefaults(e);var a=i?e._fullData:e.data,o=i?e._fullLayout:e.layout,s=(e._transitionData||{})._frames;function l(c,h){if(typeof c=="function")return h?"_function_":null;if(os.isPlainObject(c)){var d={};return Object.keys(c).sort().forEach(function(m){if(["_","["].indexOf(m.charAt(0))===-1){if(typeof c[m]=="function"){h&&(d[m]="_function");return}d[m]=l(c[m],h)}}),d}var p=Array.isArray(c),v=os.isTypedArray(c);if((p||v)&&c.dtype&&c.shape){var y=c.bdata;return l({dtype:c.dtype,shape:c.shape,bdata:os.isArrayBuffer(y)?T5t.encode(y):y},h)}return p?c.map(function(m){return l(m,h)}):v?os.simpleMap(c,os.identity):os.isJSDate(c)?os.ms2DateTimeLocal(+c):c}var u={data:(a||[]).map(function(c){var h=l(c);return t&&delete h.fit,h})};if(!t&&(u.layout=l(o),i)){var f=o._size;u.layout.computed={margin:{b:f.b,l:f.l,r:f.r,t:f.t}}}return s&&(u.frames=l(s)),n&&(u.config=l(e._context,!0)),r==="object"?u:JSON.stringify(u)};zo.modifyFrames=function(e,t){var r,i,n,a=e._transitionData._frames,o=e._transitionData._frameHash;for(r=0;r0&&(e._transitioningWithDuration=!0),e._transitionData._interruptCallbacks.push(function(){i=!0}),r.redraw&&e._transitionData._interruptCallbacks.push(function(){return gu.call("redraw",e)}),e._transitionData._interruptCallbacks.push(function(){e.emit("plotly_transitioninterrupted",[])});var h=0,d=0;function p(){return h++,function(){d++,!i&&d===h&&s(c)}}r.runFn(p),setTimeout(p())})}function s(c){if(e._transitionData)return a(e._transitionData._interruptCallbacks),Promise.resolve().then(function(){if(r.redraw)return gu.call("redraw",e)}).then(function(){e._transitioning=!1,e._transitioningWithDuration=!1,e.emit("plotly_transitioned",[])}).then(c)}function l(){if(e._transitionData)return e._transitioning=!1,n(e._transitionData._interruptCallbacks)}var u=[zo.previousPromises,l,r.prepareFn,zo.rehover,zo.reselect,o],f=os.syncOrAsync(u,e);return(!f||!f.then)&&(f=Promise.resolve()),f.then(function(){return e})}zo.doCalcdata=function(e,t){var r=Sd.list(e),i=e._fullData,n=e._fullLayout,a,o,s,l=new Array(i.length),u=(e.calcdata||[]).slice();for(e.calcdata=l,n._numBoxes=0,n._numViolins=0,n._violinScaleGroupStats={},e._hmpixcount=0,e._hmlumcount=0,n._piecolormap={},n._sunburstcolormap={},n._treemapcolormap={},n._iciclecolormap={},n._funnelareacolormap={},s=0;sDpe,svgAttrs:()=>W5t,xlink:()=>Fpe,xmlns:()=>j5t});var j5t,Dpe,Fpe,W5t,zp=ps(()=>{"use strict";j5t="http://www.w3.org/2000/xmlns/",Dpe="http://www.w3.org/2000/svg",Fpe="http://www.w3.org/1999/xlink",W5t={xmlns:Dpe,"xmlns:xlink":Fpe}});var Gc={};Fl(Gc,{CAP_SHIFT:()=>K5t,FROM_BL:()=>$5t,FROM_BR:()=>X5t,FROM_TL:()=>Y5t,LINE_SPACING:()=>Z5t,MID_SHIFT:()=>J5t,OPPOSITE_SIDE:()=>Q5t});var $5t,Y5t,X5t,Z5t,K5t,J5t,Q5t,Hc=ps(()=>{"use strict";$5t={left:0,center:.5,right:1,bottom:0,middle:.5,top:1},Y5t={left:0,center:.5,right:1,bottom:1,middle:.5,top:0},X5t={left:1,center:.5,right:0,bottom:0,middle:.5,top:1},Z5t=1.3,K5t=.7,J5t=.35,Q5t={left:"right",right:"left",top:"bottom",bottom:"top"}});var zu=K(Zd=>{"use strict";var sh=No(),Ip=Mt(),eTt=Ip.strTranslate,SG=(zp(),ar(Pp)),tTt=(Hc(),ar(Gc)).LINE_SPACING,rTt=/([^$]*)([$]+[^$]*[$]+)([^$]*)/,Bpe=e=>e?e.match(rTt):null;Zd.matchTex=Bpe;Zd.convertToTspans=function(e,t,r){var i=e.text(),n=!e.attr("data-notex")&&t&&t._context.typesetMath&&Bpe(i);n&&!oTt()&&(n=null);var a=sh.select(e.node().parentNode);if(a.empty())return;var o=e.attr("class")?e.attr("class").split(" ")[0]:"text";o+="-math",a.selectAll("svg."+o).remove(),a.selectAll("g."+o+"-group").remove(),e.style("display",null).attr({"data-unformatted":i,"data-math":"N"});function s(){a.empty()||(o=e.attr("class")+"-math",a.select("svg."+o).remove()),e.text("").style("white-space","pre");var l=mTt(e.node(),i);l&&e.style("pointer-events","all"),Zd.positionText(e),r&&r.call(e)}return n?(t&&t._promises||[]).push(new Promise(function(l){e.style("display","none");var u=parseInt(e.node().style.fontSize,10),f={fontSize:u},c=e.attr("text-anchor");sTt(n[2],f,function(h,d,p){a.selectAll("svg."+o).remove(),a.selectAll("g."+o+"-group").remove();var v=h&&h.select("svg");if(!v||!v.node()){s(),l();return}e.style("display","none");var y=a.append("g").classed(o+"-group",!0).attr({"pointer-events":"none","data-unformatted":i,"data-math":"Y"});y.node().appendChild(v.node()),d&&d.node()&&v.node().insertBefore(d.node().cloneNode(!0),v.node().firstChild);var m=p.width,w=p.height;v.attr({class:o,height:w,preserveAspectRatio:"xMinYMin meet"}).style({overflow:"visible","pointer-events":"none","font-size":f.fontSize+"px"});var _=e.node().style.fill||"black",b=v.select("g");b.attr({fill:_,stroke:_});var M=b.node().getBoundingClientRect(),x=M.width,A=M.height;(x>m||A>w)&&(v.style("overflow","hidden"),M=v.node().getBoundingClientRect(),x=M.width,A=M.height);var T=+e.attr("x"),g=+e.attr("y"),E=u||e.node().getBoundingClientRect().height,S=-E/4;o[0]==="y"?y.attr({transform:"rotate("+[-90,T,g]+")"+eTt(-x/2,S-A/2)}):o[0]==="l"?g=S-A/2:o[0]==="a"&&o.indexOf("atitle")!==0?(T=0,g=S):(T=T-x*(c==="middle"?.5:c==="end"?1:0),g=g+S-A/2),v.attr({x:T,y:g}),r&&r.call(e,y),l(y)})})):s(),e};var iTt=/(<|<|<)/g,nTt=/(>|>|>)/g;function aTt(e){return e.replace(iTt,"\\lt ").replace(nTt,"\\gt ")}var EG=null,qpe=()=>typeof MathJax!="undefined"&&MathJax.version?parseInt(MathJax.version.split(".")[0]):null,Lpe=!1,Ppe=!1;function oTt(){let e=qpe();return e===3||e===4?!0:(e===null?Lpe||(Lpe=!0,Ip.warn("MathJax is not loaded. Math equations will not be rendered.")):Ppe||(Ppe=!0,Ip.warn("Unsupported MathJax version:",MathJax.version)),!1)}function sTt(e,t,r){let i=qpe();var n;let a=function(){if(!EG){let u=MathJax._.output.svg_ts.SVG,f=Ip.extendFlat({},MathJax.config.svg,{fontCache:"local"});i===4&&(f.linebreaks=Ip.extendFlat({},f.linebreaks,{inline:!1})),EG=MathJax._.mathjax.mathjax.document(document,Ip.extendFlat({},MathJax.config.options,{InputJax:MathJax.startup.input,OutputJax:new u(f)}))}let s="math-output-"+Ip.randstr({},64);n=sh.select("body").append("div").attr({id:s}).style({visibility:"hidden",position:"absolute","font-size":t.fontSize+"px"});let l=aTt(e).replace(/^\$+|\$+$/g,"");return MathJax._.mathjax.mathjax.handleRetriesFor(function(){return EG.convert(l,{display:!1})}).then(function(u){n.node().appendChild(u)})},o=function(){let s=n.select(".MathJax"),l=!s.empty()&&n.select("svg").node();if(!l)Ip.log("There was an error in the tex syntax.",e),r();else{let u=l.getBoundingClientRect(),f=s.select("defs");r(s,f,u)}n.remove()};Promise.resolve().then(a).then(o).catch(s=>{Ip.log("MathJax typesetting failed.",e,s),n&&n.remove(),r()})}var Ope={sup:"font-size:70%",sub:"font-size:70%",s:"text-decoration:line-through",u:"text-decoration:underline",b:"font-weight:bold",i:"font-style:italic",a:"cursor:pointer",span:"",em:"font-style:italic;font-weight:bold"},lTt={sub:"0.3em",sup:"-0.6em"},uTt={sub:"-0.21em",sup:"0.42em"},zpe="\u200B",Ipe=["http:","https:","mailto:","",void 0,":"],Npe=Zd.NEWLINES=/(\r\n?|\n)/g,CG=/(<[^<>]*>)/,DG=/<(\/?)([^ >]*)(\s+(.*))?>/i,fTt=//i;Zd.BR_TAG_ALL=//gi;var Vpe=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,Upe=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,Gpe=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,cTt=/(^|[\s"'])popup\s*=\s*("([\w=,]*)"|'([\w=,]*)')/i;function sb(e,t){if(!e)return null;var r=e.match(t),i=r&&(r[3]||r[4]);return i&&HF(i)}var hTt=/(^|;)\s*color:/;Zd.plainText=function(e,t){t=t||{};for(var r=t.len!==void 0&&t.len!==-1?t.len:1/0,i=t.allowedTags!==void 0?t.allowedTags:["br"],n="...",a=n.length,o=e.split(CG),s=[],l="",u=0,f=0;fa?s.push(c.slice(0,Math.max(0,v-a))+n):s.push(c.slice(0,v));break}l=""}}return s.join("")};var dTt={mu:"\u03BC",amp:"&",lt:"<",gt:">",nbsp:"\xA0",times:"\xD7",plusmn:"\xB1",deg:"\xB0"},pTt=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function HF(e){return e.replace(pTt,function(t,r){var i;return r.charAt(0)==="#"?i=vTt(r.charAt(1)==="x"?parseInt(r.slice(2),16):parseInt(r.slice(1),10)):i=dTt[r],i||t})}Zd.convertEntities=HF;function vTt(e){if(!(e>1114111)){var t=String.fromCodePoint;if(t)return t(e);var r=String.fromCharCode;return e<=65535?r(e):r((e>>10)+55232,e%1024+56320)}}function mTt(e,t){t=t.replace(Npe," ");var r=!1,i=[],n,a=-1;function o(){a++;var x=document.createElementNS(SG.svg,"tspan");sh.select(x).attr({class:"line",dy:a*tTt+"em"}),e.appendChild(x),n=x;var A=i;if(i=[{node:x}],A.length>1)for(var T=1;T.",t);return}var A=i.pop();x!==A.type&&Ip.log("Start tag <"+A.type+"> doesnt match end tag <"+x+">. Pretending it did match.",t),n=i[i.length-1].node}var f=fTt.test(t);f?o():(n=e,i=[{node:e}]);for(var c=t.split(CG),h=0;h{"use strict";var yTt=No(),A6=Gs(),jF=Mt(),lb=ko(),gTt=Xx().isValid;function xTt(e,t,r){var i=t?jF.nestedProperty(e,t).get()||{}:e,n=i[r||"color"];n&&n._inputArray&&(n=n._inputArray);var a=!1;if(jF.isArrayOrTypedArray(n)){for(var o=0;o=0;i--,n++){var a=e[i];r[n]=[1-a[0],a[1]]}return r}function Xpe(e,t){t=t||{};for(var r=e.domain,i=e.range,n=i.length,a=new Array(n),o=0;o{"use strict";var Kpe=(ZU(),ar(XU)),_Tt=Kpe.FORMAT_LINK,wTt=Kpe.DATE_FORMAT_LINK;function ATt(e,t){return{valType:"string",dflt:"",editType:"none",description:(t?FG:Jpe)("hover text",e)+["By default the values are formatted using "+(t?"generic number format":"`"+e+"axis.hoverformat`")+"."].join(" ")}}function FG(e,t){return["Sets the "+e+" formatting rule"+(t?" for `"+t+"`":""),"using d3 formatting mini-languages","which are very similar to those in Python. For numbers, see: "+_Tt+"."].join(" ")}function Jpe(e,t){return FG(e,t)+[" And for dates see: "+wTt+".","We add two items to d3's date formatter:","*%h* for half of the year as a decimal number as well as","*%{n}f* for fractional seconds","with n digits. For example, *2016-10-13 09:15:23.456* with tickformat","*%H~%M~%S.%2f* would display *09~15~23.46*"].join(" ")}Qpe.exports={axisHoverFormat:ATt,descriptionOnlyNumbers:FG,descriptionWithDates:Jpe}});var Lh=K((rNr,mve)=>{"use strict";var eve=lf(),Sw=Nc(),vve=yh().dash,PG=Os().extendFlat,tve=fu().templatedArray,tNr=yu().templateFormatStringDescription,rve=zf().descriptionWithDates,TTt=(Il(),ar(Bl)).ONEDAY,N1=(Uc(),ar(Vc)),MTt=N1.HOUR_PATTERN,STt=N1.WEEKDAY_PATTERN,LG={valType:"enumerated",values:["auto","linear","array"],editType:"ticks",impliedEdits:{tick0:void 0,dtick:void 0}},ETt=PG({},LG,{values:LG.values.slice().concat(["sync"])});function ive(e){return{valType:"integer",min:0,dflt:e?5:0,editType:"ticks"}}var nve={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},ave={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},ove={valType:"data_array",editType:"ticks"},sve={valType:"enumerated",values:["outside","inside",""],editType:"ticks"};function lve(e){var t={valType:"number",min:0,editType:"ticks"};return e||(t.dflt=5),t}function uve(e){var t={valType:"number",min:0,editType:"ticks"};return e||(t.dflt=1),t}var fve={valType:"color",dflt:Sw.defaultLine,editType:"ticks"},cve={valType:"color",dflt:Sw.lightLine,editType:"ticks"};function hve(e){var t={valType:"number",min:0,editType:"ticks"};return e||(t.dflt=1),t}var dve=PG({},vve,{editType:"ticks"}),pve={valType:"boolean",editType:"ticks"};mve.exports={visible:{valType:"boolean",editType:"plot"},color:{valType:"color",dflt:Sw.defaultLine,editType:"ticks"},title:{text:{valType:"string",editType:"ticks"},font:eve({editType:"ticks",description:"Sets this axis' title font."}),standoff:{valType:"number",min:0,editType:"ticks"},editType:"ticks"},type:{valType:"enumerated",values:["-","linear","log","date","category","multicategory"],dflt:"-",editType:"calc",_noTemplating:!0},autotypenumbers:{valType:"enumerated",values:["convert types","strict"],dflt:"convert types",editType:"calc"},autorange:{valType:"enumerated",values:[!0,!1,"reversed","min reversed","max reversed","min","max"],dflt:!0,editType:"axrange",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},autorangeoptions:{minallowed:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},maxallowed:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},clipmin:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},clipmax:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},include:{valType:"any",arrayOk:!0,editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},editType:"plot"},rangemode:{valType:"enumerated",values:["normal","tozero","nonnegative"],dflt:"normal",editType:"plot"},range:{valType:"info_array",items:[{valType:"any",editType:"axrange",impliedEdits:{"^autorange":!1},anim:!0},{valType:"any",editType:"axrange",impliedEdits:{"^autorange":!1},anim:!0}],editType:"axrange",impliedEdits:{autorange:!1},anim:!0},minallowed:{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},maxallowed:{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},fixedrange:{valType:"boolean",dflt:!1,editType:"calc"},modebardisable:{valType:"flaglist",flags:["autoscale","zoominout"],extras:["none"],dflt:"none",editType:"modebar"},insiderange:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},scaleanchor:{valType:"enumerated",values:[N1.idRegex.x.toString(),N1.idRegex.y.toString(),!1],editType:"plot"},scaleratio:{valType:"number",min:0,dflt:1,editType:"plot"},constrain:{valType:"enumerated",values:["range","domain"],editType:"plot"},constraintoward:{valType:"enumerated",values:["left","center","right","top","middle","bottom"],editType:"plot"},matches:{valType:"enumerated",values:[N1.idRegex.x.toString(),N1.idRegex.y.toString()],editType:"calc"},rangebreaks:tve("rangebreak",{enabled:{valType:"boolean",dflt:!0,editType:"calc"},bounds:{valType:"info_array",items:[{valType:"any",editType:"calc"},{valType:"any",editType:"calc"}],editType:"calc"},pattern:{valType:"enumerated",values:[STt,MTt,""],editType:"calc"},values:{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"any",editType:"calc"}},dvalue:{valType:"number",editType:"calc",min:0,dflt:TTt},editType:"calc"}),tickmode:ETt,nticks:ive(),tick0:nve,dtick:ave,ticklabelstep:{valType:"integer",min:1,dflt:1,editType:"ticks"},tickvals:ove,ticktext:{valType:"data_array",editType:"ticks"},ticks:sve,tickson:{valType:"enumerated",values:["labels","boundaries"],dflt:"labels",editType:"ticks"},ticklabelmode:{valType:"enumerated",values:["instant","period"],dflt:"instant",editType:"ticks"},ticklabelposition:{valType:"enumerated",values:["outside","inside","outside top","inside top","outside left","inside left","outside right","inside right","outside bottom","inside bottom"],dflt:"outside",editType:"calc"},ticklabeloverflow:{valType:"enumerated",values:["allow","hide past div","hide past domain"],editType:"calc"},ticklabelshift:{valType:"integer",dflt:0,editType:"ticks"},ticklabelstandoff:{valType:"integer",dflt:0,editType:"ticks"},ticklabelindex:{valType:"integer",arrayOk:!0,editType:"calc"},mirror:{valType:"enumerated",values:[!0,"ticks",!1,"all","allticks"],dflt:!1,editType:"ticks+layoutstyle"},ticklen:lve(),tickwidth:uve(),tickcolor:fve,showticklabels:{valType:"boolean",dflt:!0,editType:"ticks"},labelalias:{valType:"any",dflt:!1,editType:"ticks"},automargin:{valType:"flaglist",flags:["height","width","left","right","top","bottom"],extras:[!0,!1],dflt:!1,editType:"ticks"},showspikes:{valType:"boolean",dflt:!1,editType:"modebar"},spikecolor:{valType:"color",dflt:null,editType:"none"},spikethickness:{valType:"number",dflt:3,editType:"none"},spikedash:PG({},vve,{dflt:"dash",editType:"none"}),spikemode:{valType:"flaglist",flags:["toaxis","across","marker"],dflt:"toaxis",editType:"none"},spikesnap:{valType:"enumerated",values:["data","cursor","hovered data"],dflt:"hovered data",editType:"none"},tickfont:eve({editType:"ticks"}),tickangle:{valType:"angle",dflt:"auto",editType:"ticks"},autotickangles:{valType:"info_array",freeLength:!0,items:{valType:"angle"},dflt:[0,30,90],editType:"ticks"},tickprefix:{valType:"string",dflt:"",editType:"ticks"},showtickprefix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},ticksuffix:{valType:"string",dflt:"",editType:"ticks"},showticksuffix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},showexponent:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},exponentformat:{valType:"enumerated",values:["none","e","E","power","SI","B","SI extended"],dflt:"B",editType:"ticks"},minexponent:{valType:"number",dflt:3,min:0,editType:"ticks"},separatethousands:{valType:"boolean",dflt:!1,editType:"ticks"},tickformat:{valType:"string",dflt:"",editType:"ticks",description:rve("tick label")},tickformatstops:tve("tickformatstop",{enabled:{valType:"boolean",dflt:!0,editType:"ticks"},dtickrange:{valType:"info_array",items:[{valType:"any",editType:"ticks"},{valType:"any",editType:"ticks"}],editType:"ticks"},value:{valType:"string",dflt:"",editType:"ticks"},editType:"ticks"}),hoverformat:{valType:"string",dflt:"",editType:"none",description:rve("hover text")},unifiedhovertitle:{text:{valType:"string",dflt:"",editType:"none"},editType:"none"},showline:{valType:"boolean",dflt:!1,editType:"ticks+layoutstyle"},linecolor:{valType:"color",dflt:Sw.defaultLine,editType:"layoutstyle"},linewidth:{valType:"number",min:0,dflt:1,editType:"ticks+layoutstyle"},showgrid:pve,gridcolor:cve,gridwidth:hve(),griddash:dve,zeroline:{valType:"boolean",editType:"ticks"},zerolinecolor:{valType:"color",dflt:Sw.defaultLine,editType:"ticks"},zerolinelayer:{valType:"enumerated",values:["above traces","below traces"],dflt:"below traces",editType:"plot"},zerolinewidth:{valType:"number",dflt:1,editType:"ticks"},showdividers:{valType:"boolean",dflt:!0,editType:"ticks"},dividercolor:{valType:"color",dflt:Sw.defaultLine,editType:"ticks"},dividerwidth:{valType:"number",dflt:1,editType:"ticks"},anchor:{valType:"enumerated",values:["free",N1.idRegex.x.toString(),N1.idRegex.y.toString()],editType:"plot"},side:{valType:"enumerated",values:["top","bottom","left","right"],editType:"plot"},overlaying:{valType:"enumerated",values:["free",N1.idRegex.x.toString(),N1.idRegex.y.toString()],editType:"plot"},minor:{tickmode:LG,nticks:ive("minor"),tick0:nve,dtick:ave,tickvals:ove,ticks:sve,ticklen:lve("minor"),tickwidth:uve("minor"),tickcolor:fve,gridcolor:cve,gridwidth:hve("minor"),griddash:dve,showgrid:pve,editType:"ticks"},minorloglabels:{valType:"enumerated",values:["small digits","complete","none"],dflt:"small digits",editType:"calc"},layer:{valType:"enumerated",values:["above traces","below traces"],dflt:"above traces",editType:"plot"},domain:{valType:"info_array",items:[{valType:"number",min:0,max:1,editType:"plot"},{valType:"number",min:0,max:1,editType:"plot"}],dflt:[0,1],editType:"plot"},position:{valType:"number",min:0,max:1,dflt:0,editType:"plot"},autoshift:{valType:"boolean",dflt:!1,editType:"plot"},shift:{valType:"number",editType:"plot"},categoryorder:{valType:"enumerated",values:["trace","category ascending","category descending","array","total ascending","total descending","min ascending","min descending","max ascending","max descending","sum ascending","sum descending","mean ascending","mean descending","geometric mean ascending","geometric mean descending","median ascending","median descending"],dflt:"trace",editType:"calc"},categoryarray:{valType:"data_array",editType:"calc"},uirevision:{valType:"any",editType:"none"},editType:"calc"}});var WF=K((iNr,gve)=>{"use strict";var If=Lh(),yve=lf(),zG=Os().extendFlat,kTt=Ef().overrideAll;gve.exports=kTt({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:If.linecolor,outlinewidth:If.linewidth,bordercolor:If.linecolor,borderwidth:{valType:"number",min:0,dflt:0},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},tickmode:If.minor.tickmode,nticks:If.nticks,tick0:If.tick0,dtick:zG({},If.dtick,{}),tickvals:If.tickvals,ticktext:If.ticktext,ticks:zG({},If.ticks,{dflt:""}),ticklabeloverflow:zG({},If.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:If.ticklen,tickwidth:If.tickwidth,tickcolor:If.tickcolor,ticklabelstep:If.ticklabelstep,showticklabels:If.showticklabels,labelalias:If.labelalias,tickfont:yve({description:"Sets the color bar's tick label font"}),tickangle:If.tickangle,tickformat:If.tickformat,tickformatstops:If.tickformatstops,tickprefix:If.tickprefix,showtickprefix:If.showtickprefix,ticksuffix:If.ticksuffix,showticksuffix:If.showticksuffix,separatethousands:If.separatethousands,exponentformat:If.exponentformat,minexponent:If.minexponent,showexponent:If.showexponent,title:{text:{valType:"string"},font:yve({description:"Sets this color bar's title font."}),side:{valType:"enumerated",values:["right","top","bottom"]}}},"colorbars","from-root")});var Wu=K((aNr,bve)=>{"use strict";var CTt=WF(),DTt=(uw(),ar(f6)).counter,FTt=(Qx(),ar(Jx)).default,xve=Xx().scales,nNr=FTt(xve);function $F(e){return"`"+e+"`"}bve.exports=function(t,r){t=t||"",r=r||{};var i=r.cLetter||"c",n="onlyIfNumerical"in r?r.onlyIfNumerical:!!t,a="noScale"in r?r.noScale:t==="marker.line",o="showScaleDflt"in r?r.showScaleDflt:i==="z",s=typeof r.colorscaleDflt=="string"?xve[r.colorscaleDflt]:null,l=r.editTypeOverride||"",u=t?t+".":"",f,c;"colorAttr"in r?(f=r.colorAttr,c=r.colorAttr):(f={z:"z",c:"color"}[i],c="in "+$F(u+f));var h=n?" Has an effect only if "+c+" is set to a numerical array.":"",d=i+"auto",p=i+"min",v=i+"max",y=i+"mid",m=$F(u+d),w=$F(u+p),_=$F(u+v),b=w+" and "+_,M={};M[p]=M[v]=void 0;var x={};x[d]=!1;var A={};return f==="color"&&(A.color={valType:"color",arrayOk:!0,editType:l||"style"},r.anim&&(A.color.anim=!0)),A[d]={valType:"boolean",dflt:!0,editType:"calc",impliedEdits:M},A[p]={valType:"number",dflt:null,editType:l||"plot",impliedEdits:x},A[v]={valType:"number",dflt:null,editType:l||"plot",impliedEdits:x},A[y]={valType:"number",dflt:null,editType:"calc",impliedEdits:M},A.colorscale={valType:"colorscale",editType:"calc",dflt:s,impliedEdits:{autocolorscale:!1}},A.autocolorscale={valType:"boolean",dflt:r.autoColorDflt!==!1,editType:"calc",impliedEdits:{colorscale:void 0}},A.reversescale={valType:"boolean",dflt:!1,editType:"plot"},a||(A.showscale={valType:"boolean",dflt:o,editType:"calc"},A.colorbar=CTt),r.noColorAxis||(A.coloraxis={valType:"subplotid",regex:DTt("coloraxis"),dflt:null,editType:"calc"}),A}});var RG=K((oNr,_ve)=>{"use strict";var LTt=Os().extendFlat,PTt=Wu(),IG=Xx().scales;_ve.exports={editType:"calc",colorscale:{editType:"calc",sequential:{valType:"colorscale",dflt:IG.Reds,editType:"calc"},sequentialminus:{valType:"colorscale",dflt:IG.Blues,editType:"calc"},diverging:{valType:"colorscale",dflt:IG.RdBu,editType:"calc"}},coloraxis:LTt({_isSubplotObj:!0,editType:"calc"},PTt("",{colorAttr:"corresponding trace color array(s)",noColorAxis:!0,showScaleDflt:!0}))}});var BG=K((sNr,wve)=>{"use strict";var zTt=Mt();wve.exports=function(t){return zTt.isPlainObject(t.colorbar)}});var NG=K(OG=>{"use strict";var qG=Gs(),Ave=Mt(),Tve=(Il(),ar(Bl)),ITt=Tve.ONEDAY,RTt=Tve.ONEWEEK;OG.dtick=function(e,t){var r=t==="log",i=t==="date",n=t==="category",a=i?ITt:1;if(!e)return a;if(qG(e))return e=Number(e),e<=0?a:n?Math.max(1,Math.round(e)):i?Math.max(.1,e):e;if(typeof e!="string"||!(i||r))return a;var o=e.charAt(0),s=e.slice(1);return s=qG(s)?Number(s):0,s<=0||!(i&&o==="M"&&s===Math.round(s)||r&&o==="L"||r&&o==="D"&&(s===1||s===2))?a:e};OG.tick0=function(e,t,r,i){if(t==="date")return Ave.cleanDate(e,Ave.dateTick0(r,i%RTt===0?1:0));if(!(i==="D1"||i==="D2"))return qG(e)?Number(e):0}});var ub=K((uNr,Sve)=>{"use strict";var Mve=NG(),BTt=Mt().isArrayOrTypedArray,qTt=$h().isTypedArraySpec,OTt=$h().decodeTypedArraySpec;Sve.exports=function(t,r,i,n,a={}){var o=a.isMinor,s=o?t.minor||{}:t,l=o?r.minor:r,u=o?"minor.":"";function f(b){var M=s[b];return qTt(M)&&(M=OTt(M)),M!==void 0?M:(l._template||{})[b]}var c=f("tick0"),h=f("dtick"),d=f("tickvals"),p=f("overlaying"),v=n==="category"||n==="multicategory",y;BTt(d)?y="array":h?y="linear":p&&!v?y="sync":y="auto";var m=i(u+"tickmode",y);if(m==="auto"||m==="sync")i(u+"nticks");else if(m==="linear"){var w=l.dtick=Mve.dtick(h,n);l.tick0=Mve.tick0(c,n,r.calendar,w)}else if(n!=="multicategory"){var _=i(u+"tickvals");_===void 0?l.tickmode="auto":o||i("ticktext")}}});var Ew=K((fNr,kve)=>{"use strict";var VG=Mt(),Eve=Lh();kve.exports=function(t,r,i,n){var a=n.isMinor,o=a?t.minor||{}:t,s=a?r.minor:r,l=a?Eve.minor:Eve,u=a?"minor.":"",f=VG.coerce2(o,s,l,"ticklen",a?(r.ticklen||5)*.6:void 0),c=VG.coerce2(o,s,l,"tickwidth",a?r.tickwidth||1:void 0),h=VG.coerce2(o,s,l,"tickcolor",(a?r.tickcolor:void 0)||s.color),d=i(u+"ticks",!a&&n.outerTicks||f||c||h?"outside":"");d||(delete s.ticklen,delete s.tickwidth,delete s.tickcolor)}});var UG=K((cNr,Cve)=>{"use strict";Cve.exports=function(t){var r=["showexponent","showtickprefix","showticksuffix"],i=r.filter(function(a){return t[a]!==void 0}),n=function(a){return t[a]===t[i[0]]};if(i.every(n)||i.length===1)return t[i[0]]}});var w0=K((hNr,Dve)=>{"use strict";var YF=Mt(),NTt=fu();Dve.exports=function(t,r,i){var n=i.name,a=i.inclusionAttr||"visible",o=r[n],s=YF.isArrayOrTypedArray(t[n])?t[n]:[],l=r[n]=[],u=NTt.arrayTemplater(r,n,a),f,c;for(f=0;f{"use strict";var GG=Mt(),VTt=ko().contrast,Fve=Lh(),UTt=UG(),GTt=w0();Lve.exports=function(t,r,i,n,a){a||(a={});var o=i("labelalias");GG.isPlainObject(o)||delete r.labelalias;var s=UTt(t),l=i("showticklabels");if(l){a.noTicklabelshift||i("ticklabelshift"),a.noTicklabelstandoff||i("ticklabelstandoff");var u=a.font||{},f=r.color,c=r.ticklabelposition||"",h=c.indexOf("inside")!==-1?VTt(a.bgColor):f&&f!==Fve.color.dflt?f:u.color;if(GG.coerceFont(i,"tickfont",u,{overrideDflt:{color:h}}),!a.noTicklabelstep&&n!=="multicategory"&&n!=="log"&&i("ticklabelstep"),!a.noAng){var d=i("tickangle");!a.noAutotickangles&&d==="auto"&&i("autotickangles")}if(n!=="category"){var p=i("tickformat");GTt(t,r,{name:"tickformatstops",inclusionAttr:"enabled",handleItemDefaults:HTt}),r.tickformatstops.length||delete r.tickformatstops,!a.noExp&&!p&&n!=="date"&&(i("showexponent",s),i("exponentformat"),i("minexponent"),i("separatethousands"))}!a.noMinorloglabels&&n==="log"&&i("minorloglabels")}};function HTt(e,t){function r(n,a){return GG.coerce(e,t,Fve.tickformatstops,n,a)}var i=r("enabled");i&&(r("dtickrange"),r("value"))}});var zg=K((pNr,Pve)=>{"use strict";var jTt=UG();Pve.exports=function(t,r,i,n,a){a||(a={});var o=a.tickSuffixDflt,s=jTt(t),l=i("tickprefix");l&&i("showtickprefix",s);var u=i("ticksuffix",o);u&&i("showticksuffix",s)}});var HG=K((vNr,zve)=>{"use strict";var Ig=Mt(),WTt=fu(),$Tt=ub(),YTt=Ew(),XTt=Pg(),ZTt=zg(),KTt=WF();zve.exports=function(t,r,i){var n=WTt.newContainer(r,"colorbar"),a=t.colorbar||{};function o(S,C){return Ig.coerce(a,n,KTt,S,C)}var s=i.margin||{t:0,b:0,l:0,r:0},l=i.width-s.l-s.r,u=i.height-s.t-s.b,f=o("orientation"),c=f==="v",h=o("thicknessmode");o("thickness",h==="fraction"?30/(c?l:u):30);var d=o("lenmode");o("len",d==="fraction"?1:c?u:l);var p=o("yref"),v=o("xref"),y=p==="paper",m=v==="paper",w,_,b,M="left";c?(b="middle",M=m?"left":"right",w=m?1.02:1,_=.5):(b=y?"bottom":"top",M="center",w=.5,_=y?1.02:1),Ig.coerce(a,n,{x:{valType:"number",min:m?-2:0,max:m?3:1,dflt:w}},"x"),Ig.coerce(a,n,{y:{valType:"number",min:y?-2:0,max:y?3:1,dflt:_}},"y"),o("xanchor",M),o("xpad"),o("yanchor",b),o("ypad"),Ig.noneOrAll(a,n,["x","y"]),o("outlinecolor"),o("outlinewidth"),o("bordercolor"),o("borderwidth"),o("bgcolor");var x=Ig.coerce(a,n,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:c?["outside","inside","outside top","inside top","outside bottom","inside bottom"]:["outside","inside","outside left","inside left","outside right","inside right"]}},"ticklabelposition");o("ticklabeloverflow",x.indexOf("inside")!==-1?"hide past domain":"hide past div"),$Tt(a,n,o,"linear");var A=i.font,T={noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0,outerTicks:!1,font:A};x.indexOf("inside")!==-1&&(T.bgColor="black"),ZTt(a,n,o,"linear",T),XTt(a,n,o,"linear",T),YTt(a,n,o,"linear",T),o("title.text",i._dfltTitle.colorbar);var g=n.showticklabels?n.tickfont:A,E=Ig.extendFlat({},A,{family:g.family,size:Ig.bigFont(g.size)});Ig.coerceFont(o,"title.font",E),o("title.side",c?"top":"right")}});var gh=K((mNr,Bve)=>{"use strict";var Ive=Gs(),WG=Mt(),JTt=BG(),QTt=HG(),Rve=Xx().isValid,e6t=Ho().traceIs;function jG(e,t){var r=t.slice(0,t.length-1);return t?WG.nestedProperty(e,r).get()||{}:e}Bve.exports=function e(t,r,i,n,a){var o=a.prefix,s=a.cLetter,l="_module"in r,u=jG(t,o),f=jG(r,o),c=jG(r._template||{},o)||{},h=function(){return delete t.coloraxis,delete r.coloraxis,e(t,r,i,n,a)};if(l){var d=i._colorAxes||{},p=n(o+"coloraxis");if(p){var v=e6t(r,"contour")&&WG.nestedProperty(r,"contours.coloring").get()||"heatmap",y=d[p];y?(y[2].push(h),y[0]!==v&&(y[0]=!1,WG.warn(["Ignoring coloraxis:",p,"setting","as it is linked to incompatible colorscales."].join(" ")))):d[p]=[v,r,[h]];return}}var m=u[s+"min"],w=u[s+"max"],_=Ive(m)&&Ive(w)&&m{"use strict";var qve=Mt(),t6t=fu(),Ove=RG(),r6t=gh();Nve.exports=function(t,r){function i(c,h){return qve.coerce(t,r,Ove,c,h)}i("colorscale.sequential"),i("colorscale.sequentialminus"),i("colorscale.diverging");var n=r._colorAxes,a,o;function s(c,h){return qve.coerce(a,o,Ove.coloraxis,c,h)}for(var l in n){var u=n[l];if(u[0])a=t[l]||{},o=t6t.newContainer(r,l,"coloraxis"),o._name=l,r6t(a,o,r,s,{prefix:"",cLetter:"c"});else{for(var f=0;f{"use strict";var i6t=Mt(),n6t=Zh().hasColorscale,a6t=Zh().extractOpts;Uve.exports=function(t,r){function i(f,c){var h=f["_"+c];h!==void 0&&(f[c]=h)}function n(f,c){var h=c.container?i6t.nestedProperty(f,c.container).get():f;if(h)if(h.coloraxis)h._colorAx=r[h.coloraxis];else{var d=a6t(h),p=d.auto;(p||d.min===void 0)&&i(h,c.min),(p||d.max===void 0)&&i(h,c.max),d.autocolorscale&&i(h,"colorscale")}}for(var a=0;a{"use strict";var Hve=Gs(),$G=Mt(),o6t=Zh().extractOpts;jve.exports=function(t,r,i){var n=t._fullLayout,a=i.vals,o=i.containerStr,s=o?$G.nestedProperty(r,o).get():r,l=o6t(s),u=l.auto!==!1,f=l.min,c=l.max,h=l.mid,d=function(){return $G.aggNums(Math.min,null,a)},p=function(){return $G.aggNums(Math.max,null,a)};if(f===void 0?f=d():u&&(s._colorAx&&Hve(f)?f=Math.min(f,d()):f=d()),c===void 0?c=p():u&&(s._colorAx&&Hve(c)?c=Math.max(c,p()):c=p()),u&&h!==void 0&&(c-h>h-f?f=h-(c-h):c-h=0?v=n.colorscale.sequential:v=n.colorscale.sequentialminus,l._sync("colorscale",v)}}});var gf=K((bNr,Wve)=>{"use strict";var XF=Xx(),kw=Zh();Wve.exports={moduleType:"component",name:"colorscale",attributes:Wu(),layoutAttributes:RG(),supplyLayoutDefaults:Vve(),handleDefaults:gh(),crossTraceDefaults:Gve(),calc:A0(),scales:XF.scales,defaultScale:XF.defaultScale,getScale:XF.get,isValidScale:XF.isValid,hasColorscale:kw.hasColorscale,extractOpts:kw.extractOpts,extractScale:kw.extractScale,flipScale:kw.flipScale,makeColorScaleFunc:kw.makeColorScaleFunc,makeColorScaleFuncFromTrace:kw.makeColorScaleFuncFromTrace}});var ff=K((_Nr,Yve)=>{"use strict";var $ve=Mt(),s6t=$h().isTypedArraySpec;Yve.exports={hasLines:function(e){return e.visible&&e.mode&&e.mode.indexOf("lines")!==-1},hasMarkers:function(e){return e.visible&&(e.mode&&e.mode.indexOf("markers")!==-1||e.type==="splom")},hasText:function(e){return e.visible&&e.mode&&e.mode.indexOf("text")!==-1},isBubble:function(e){var t=e.marker;return $ve.isPlainObject(t)&&($ve.isArrayOrTypedArray(t.size)||s6t(t.size))}}});var T6=K((wNr,Xve)=>{"use strict";var l6t=Gs();Xve.exports=function(t,r){r||(r=2);var i=t.marker,n=i.sizeref||1,a=i.sizemin||0,o=i.sizemode==="area"?function(s){return Math.sqrt(s/n)}:function(s){return s/n};return function(s){var l=o(s/r);return l6t(l)&&l>0?Math.max(l,a):0}}});var od=K(Kh=>{"use strict";var M6=Mt();Kh.getSubplot=function(e){return e.subplot||e.xaxis+e.yaxis||e.geo};Kh.isTraceInSubplots=function(e,t){if(e.type==="splom"){for(var r=e.xaxes||[],i=e.yaxes||[],n=0;n=0&&r.index{var YG={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},h6t=/([astvzqmhlc])([^astvzqmhlc]*)/gi,d6t=/-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/gi;function p6t(e){let t=[];return e.replace(h6t,(r,i,n)=>{let a=i.toLowerCase(),o=i,s=v6t(n);for(a==="m"&&s.length>2&&(t.push([o,...s.splice(0,2)]),a="l",o=o==="m"?"l":"L");;){if(s.length===YG[a])return t.push([o,...s]),"";if(s.length{"use strict";var m6t=XG(),no=function(e,t){return t?Math.round(e*(t=Math.pow(10,t)))/t:Math.round(e)},Ml="M0,0Z",Qve=Math.sqrt(2),Rg=Math.sqrt(3),ZG=Math.PI,KG=Math.cos,JG=Math.sin;n1e.exports={circle:{n:0,f:function(e,t,r){if(Sl(t))return Ml;var i=no(e,2),n="M"+i+",0A"+i+","+i+" 0 1,1 0,-"+i+"A"+i+","+i+" 0 0,1 "+i+",0Z";return r?El(t,r,n):n}},square:{n:1,f:function(e,t,r){if(Sl(t))return Ml;var i=no(e,2);return El(t,r,"M"+i+","+i+"H-"+i+"V-"+i+"H"+i+"Z")}},diamond:{n:2,f:function(e,t,r){if(Sl(t))return Ml;var i=no(e*1.3,2);return El(t,r,"M"+i+",0L0,"+i+"L-"+i+",0L0,-"+i+"Z")}},cross:{n:3,f:function(e,t,r){if(Sl(t))return Ml;var i=no(e*.4,2),n=no(e*1.2,2);return El(t,r,"M"+n+","+i+"H"+i+"V"+n+"H-"+i+"V"+i+"H-"+n+"V-"+i+"H-"+i+"V-"+n+"H"+i+"V-"+i+"H"+n+"Z")}},x:{n:4,f:function(e,t,r){if(Sl(t))return Ml;var i=no(e*.8/Qve,2),n="l"+i+","+i,a="l"+i+",-"+i,o="l-"+i+",-"+i,s="l-"+i+","+i;return El(t,r,"M0,"+i+n+a+o+a+o+s+o+s+n+s+n+"Z")}},"triangle-up":{n:5,f:function(e,t,r){if(Sl(t))return Ml;var i=no(e*2/Rg,2),n=no(e/2,2),a=no(e,2);return El(t,r,"M-"+i+","+n+"H"+i+"L0,-"+a+"Z")}},"triangle-down":{n:6,f:function(e,t,r){if(Sl(t))return Ml;var i=no(e*2/Rg,2),n=no(e/2,2),a=no(e,2);return El(t,r,"M-"+i+",-"+n+"H"+i+"L0,"+a+"Z")}},"triangle-left":{n:7,f:function(e,t,r){if(Sl(t))return Ml;var i=no(e*2/Rg,2),n=no(e/2,2),a=no(e,2);return El(t,r,"M"+n+",-"+i+"V"+i+"L-"+a+",0Z")}},"triangle-right":{n:8,f:function(e,t,r){if(Sl(t))return Ml;var i=no(e*2/Rg,2),n=no(e/2,2),a=no(e,2);return El(t,r,"M-"+n+",-"+i+"V"+i+"L"+a+",0Z")}},"triangle-ne":{n:9,f:function(e,t,r){if(Sl(t))return Ml;var i=no(e*.6,2),n=no(e*1.2,2);return El(t,r,"M-"+n+",-"+i+"H"+i+"V"+n+"Z")}},"triangle-se":{n:10,f:function(e,t,r){if(Sl(t))return Ml;var i=no(e*.6,2),n=no(e*1.2,2);return El(t,r,"M"+i+",-"+n+"V"+i+"H-"+n+"Z")}},"triangle-sw":{n:11,f:function(e,t,r){if(Sl(t))return Ml;var i=no(e*.6,2),n=no(e*1.2,2);return El(t,r,"M"+n+","+i+"H-"+i+"V-"+n+"Z")}},"triangle-nw":{n:12,f:function(e,t,r){if(Sl(t))return Ml;var i=no(e*.6,2),n=no(e*1.2,2);return El(t,r,"M-"+i+","+n+"V-"+i+"H"+n+"Z")}},pentagon:{n:13,f:function(e,t,r){if(Sl(t))return Ml;var i=no(e*.951,2),n=no(e*.588,2),a=no(-e,2),o=no(e*-.309,2),s=no(e*.809,2);return El(t,r,"M"+i+","+o+"L"+n+","+s+"H-"+n+"L-"+i+","+o+"L0,"+a+"Z")}},hexagon:{n:14,f:function(e,t,r){if(Sl(t))return Ml;var i=no(e,2),n=no(e/2,2),a=no(e*Rg/2,2);return El(t,r,"M"+a+",-"+n+"V"+n+"L0,"+i+"L-"+a+","+n+"V-"+n+"L0,-"+i+"Z")}},hexagon2:{n:15,f:function(e,t,r){if(Sl(t))return Ml;var i=no(e,2),n=no(e/2,2),a=no(e*Rg/2,2);return El(t,r,"M-"+n+","+a+"H"+n+"L"+i+",0L"+n+",-"+a+"H-"+n+"L-"+i+",0Z")}},octagon:{n:16,f:function(e,t,r){if(Sl(t))return Ml;var i=no(e*.924,2),n=no(e*.383,2);return El(t,r,"M-"+n+",-"+i+"H"+n+"L"+i+",-"+n+"V"+n+"L"+n+","+i+"H-"+n+"L-"+i+","+n+"V-"+n+"Z")}},star:{n:17,f:function(e,t,r){if(Sl(t))return Ml;var i=e*1.4,n=no(i*.225,2),a=no(i*.951,2),o=no(i*.363,2),s=no(i*.588,2),l=no(-i,2),u=no(i*-.309,2),f=no(i*.118,2),c=no(i*.809,2),h=no(i*.382,2);return El(t,r,"M"+n+","+u+"H"+a+"L"+o+","+f+"L"+s+","+c+"L0,"+h+"L-"+s+","+c+"L-"+o+","+f+"L-"+a+","+u+"H-"+n+"L0,"+l+"Z")}},hexagram:{n:18,f:function(e,t,r){if(Sl(t))return Ml;var i=no(e*.66,2),n=no(e*.38,2),a=no(e*.76,2);return El(t,r,"M-"+a+",0l-"+n+",-"+i+"h"+a+"l"+n+",-"+i+"l"+n+","+i+"h"+a+"l-"+n+","+i+"l"+n+","+i+"h-"+a+"l-"+n+","+i+"l-"+n+",-"+i+"h-"+a+"Z")}},"star-triangle-up":{n:19,f:function(e,t,r){if(Sl(t))return Ml;var i=no(e*Rg*.8,2),n=no(e*.8,2),a=no(e*1.6,2),o=no(e*4,2),s="A "+o+","+o+" 0 0 1 ";return El(t,r,"M-"+i+","+n+s+i+","+n+s+"0,-"+a+s+"-"+i+","+n+"Z")}},"star-triangle-down":{n:20,f:function(e,t,r){if(Sl(t))return Ml;var i=no(e*Rg*.8,2),n=no(e*.8,2),a=no(e*1.6,2),o=no(e*4,2),s="A "+o+","+o+" 0 0 1 ";return El(t,r,"M"+i+",-"+n+s+"-"+i+",-"+n+s+"0,"+a+s+i+",-"+n+"Z")}},"star-square":{n:21,f:function(e,t,r){if(Sl(t))return Ml;var i=no(e*1.1,2),n=no(e*2,2),a="A "+n+","+n+" 0 0 1 ";return El(t,r,"M-"+i+",-"+i+a+"-"+i+","+i+a+i+","+i+a+i+",-"+i+a+"-"+i+",-"+i+"Z")}},"star-diamond":{n:22,f:function(e,t,r){if(Sl(t))return Ml;var i=no(e*1.4,2),n=no(e*1.9,2),a="A "+n+","+n+" 0 0 1 ";return El(t,r,"M-"+i+",0"+a+"0,"+i+a+i+",0"+a+"0,-"+i+a+"-"+i+",0Z")}},"diamond-tall":{n:23,f:function(e,t,r){if(Sl(t))return Ml;var i=no(e*.7,2),n=no(e*1.4,2);return El(t,r,"M0,"+n+"L"+i+",0L0,-"+n+"L-"+i+",0Z")}},"diamond-wide":{n:24,f:function(e,t,r){if(Sl(t))return Ml;var i=no(e*1.4,2),n=no(e*.7,2);return El(t,r,"M0,"+n+"L"+i+",0L0,-"+n+"L-"+i+",0Z")}},hourglass:{n:25,f:function(e,t,r){if(Sl(t))return Ml;var i=no(e,2);return El(t,r,"M"+i+","+i+"H-"+i+"L"+i+",-"+i+"H-"+i+"Z")},noDot:!0},bowtie:{n:26,f:function(e,t,r){if(Sl(t))return Ml;var i=no(e,2);return El(t,r,"M"+i+","+i+"V-"+i+"L-"+i+","+i+"V-"+i+"Z")},noDot:!0},"circle-cross":{n:27,f:function(e,t,r){if(Sl(t))return Ml;var i=no(e,2);return El(t,r,"M0,"+i+"V-"+i+"M"+i+",0H-"+i+"M"+i+",0A"+i+","+i+" 0 1,1 0,-"+i+"A"+i+","+i+" 0 0,1 "+i+",0Z")},needLine:!0,noDot:!0},"circle-x":{n:28,f:function(e,t,r){if(Sl(t))return Ml;var i=no(e,2),n=no(e/Qve,2);return El(t,r,"M"+n+","+n+"L-"+n+",-"+n+"M"+n+",-"+n+"L-"+n+","+n+"M"+i+",0A"+i+","+i+" 0 1,1 0,-"+i+"A"+i+","+i+" 0 0,1 "+i+",0Z")},needLine:!0,noDot:!0},"square-cross":{n:29,f:function(e,t,r){if(Sl(t))return Ml;var i=no(e,2);return El(t,r,"M0,"+i+"V-"+i+"M"+i+",0H-"+i+"M"+i+","+i+"H-"+i+"V-"+i+"H"+i+"Z")},needLine:!0,noDot:!0},"square-x":{n:30,f:function(e,t,r){if(Sl(t))return Ml;var i=no(e,2);return El(t,r,"M"+i+","+i+"L-"+i+",-"+i+"M"+i+",-"+i+"L-"+i+","+i+"M"+i+","+i+"H-"+i+"V-"+i+"H"+i+"Z")},needLine:!0,noDot:!0},"diamond-cross":{n:31,f:function(e,t,r){if(Sl(t))return Ml;var i=no(e*1.3,2);return El(t,r,"M"+i+",0L0,"+i+"L-"+i+",0L0,-"+i+"ZM0,-"+i+"V"+i+"M-"+i+",0H"+i)},needLine:!0,noDot:!0},"diamond-x":{n:32,f:function(e,t,r){if(Sl(t))return Ml;var i=no(e*1.3,2),n=no(e*.65,2);return El(t,r,"M"+i+",0L0,"+i+"L-"+i+",0L0,-"+i+"ZM-"+n+",-"+n+"L"+n+","+n+"M-"+n+","+n+"L"+n+",-"+n)},needLine:!0,noDot:!0},"cross-thin":{n:33,f:function(e,t,r){if(Sl(t))return Ml;var i=no(e*1.4,2);return El(t,r,"M0,"+i+"V-"+i+"M"+i+",0H-"+i)},needLine:!0,noDot:!0,noFill:!0},"x-thin":{n:34,f:function(e,t,r){if(Sl(t))return Ml;var i=no(e,2);return El(t,r,"M"+i+","+i+"L-"+i+",-"+i+"M"+i+",-"+i+"L-"+i+","+i)},needLine:!0,noDot:!0,noFill:!0},asterisk:{n:35,f:function(e,t,r){if(Sl(t))return Ml;var i=no(e*1.2,2),n=no(e*.85,2);return El(t,r,"M0,"+i+"V-"+i+"M"+i+",0H-"+i+"M"+n+","+n+"L-"+n+",-"+n+"M"+n+",-"+n+"L-"+n+","+n)},needLine:!0,noDot:!0,noFill:!0},hash:{n:36,f:function(e,t,r){if(Sl(t))return Ml;var i=no(e/2,2),n=no(e,2);return El(t,r,"M"+i+","+n+"V-"+n+"M"+(i-n)+",-"+n+"V"+n+"M"+n+","+i+"H-"+n+"M-"+n+","+(i-n)+"H"+n)},needLine:!0,noFill:!0},"y-up":{n:37,f:function(e,t,r){if(Sl(t))return Ml;var i=no(e*1.2,2),n=no(e*1.6,2),a=no(e*.8,2);return El(t,r,"M-"+i+","+a+"L0,0M"+i+","+a+"L0,0M0,-"+n+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-down":{n:38,f:function(e,t,r){if(Sl(t))return Ml;var i=no(e*1.2,2),n=no(e*1.6,2),a=no(e*.8,2);return El(t,r,"M-"+i+",-"+a+"L0,0M"+i+",-"+a+"L0,0M0,"+n+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-left":{n:39,f:function(e,t,r){if(Sl(t))return Ml;var i=no(e*1.2,2),n=no(e*1.6,2),a=no(e*.8,2);return El(t,r,"M"+a+","+i+"L0,0M"+a+",-"+i+"L0,0M-"+n+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-right":{n:40,f:function(e,t,r){if(Sl(t))return Ml;var i=no(e*1.2,2),n=no(e*1.6,2),a=no(e*.8,2);return El(t,r,"M-"+a+","+i+"L0,0M-"+a+",-"+i+"L0,0M"+n+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"line-ew":{n:41,f:function(e,t,r){if(Sl(t))return Ml;var i=no(e*1.4,2);return El(t,r,"M"+i+",0H-"+i)},needLine:!0,noDot:!0,noFill:!0},"line-ns":{n:42,f:function(e,t,r){if(Sl(t))return Ml;var i=no(e*1.4,2);return El(t,r,"M0,"+i+"V-"+i)},needLine:!0,noDot:!0,noFill:!0},"line-ne":{n:43,f:function(e,t,r){if(Sl(t))return Ml;var i=no(e,2);return El(t,r,"M"+i+",-"+i+"L-"+i+","+i)},needLine:!0,noDot:!0,noFill:!0},"line-nw":{n:44,f:function(e,t,r){if(Sl(t))return Ml;var i=no(e,2);return El(t,r,"M"+i+","+i+"L-"+i+",-"+i)},needLine:!0,noDot:!0,noFill:!0},"arrow-up":{n:45,f:function(e,t,r){if(Sl(t))return Ml;var i=no(e,2),n=no(e*2,2);return El(t,r,"M0,0L-"+i+","+n+"H"+i+"Z")},backoff:1,noDot:!0},"arrow-down":{n:46,f:function(e,t,r){if(Sl(t))return Ml;var i=no(e,2),n=no(e*2,2);return El(t,r,"M0,0L-"+i+",-"+n+"H"+i+"Z")},noDot:!0},"arrow-left":{n:47,f:function(e,t,r){if(Sl(t))return Ml;var i=no(e*2,2),n=no(e,2);return El(t,r,"M0,0L"+i+",-"+n+"V"+n+"Z")},noDot:!0},"arrow-right":{n:48,f:function(e,t,r){if(Sl(t))return Ml;var i=no(e*2,2),n=no(e,2);return El(t,r,"M0,0L-"+i+",-"+n+"V"+n+"Z")},noDot:!0},"arrow-bar-up":{n:49,f:function(e,t,r){if(Sl(t))return Ml;var i=no(e,2),n=no(e*2,2);return El(t,r,"M-"+i+",0H"+i+"M0,0L-"+i+","+n+"H"+i+"Z")},backoff:1,needLine:!0,noDot:!0},"arrow-bar-down":{n:50,f:function(e,t,r){if(Sl(t))return Ml;var i=no(e,2),n=no(e*2,2);return El(t,r,"M-"+i+",0H"+i+"M0,0L-"+i+",-"+n+"H"+i+"Z")},needLine:!0,noDot:!0},"arrow-bar-left":{n:51,f:function(e,t,r){if(Sl(t))return Ml;var i=no(e*2,2),n=no(e,2);return El(t,r,"M0,-"+n+"V"+n+"M0,0L"+i+",-"+n+"V"+n+"Z")},needLine:!0,noDot:!0},"arrow-bar-right":{n:52,f:function(e,t,r){if(Sl(t))return Ml;var i=no(e*2,2),n=no(e,2);return El(t,r,"M0,-"+n+"V"+n+"M0,0L-"+i+",-"+n+"V"+n+"Z")},needLine:!0,noDot:!0},arrow:{n:53,f:function(e,t,r){if(Sl(t))return Ml;var i=ZG/2.5,n=2*e*KG(i),a=2*e*JG(i);return El(t,r,"M0,0L"+-n+","+a+"L"+n+","+a+"Z")},backoff:.9,noDot:!0},"arrow-wide":{n:54,f:function(e,t,r){if(Sl(t))return Ml;var i=ZG/4,n=2*e*KG(i),a=2*e*JG(i);return El(t,r,"M0,0L"+-n+","+a+"A "+2*e+","+2*e+" 0 0 1 "+n+","+a+"Z")},backoff:.4,noDot:!0}};function Sl(e){return e===null}var e1e,t1e,r1e,i1e;function El(e,t,r){if((!e||e%360===0)&&!t)return r;if(r1e===e&&i1e===t&&e1e===r)return t1e;r1e=e,i1e=t,e1e=r;function i(y,m){var w=KG(y),_=JG(y),b=m[0],M=m[1]+(t||0);return[b*w-M*_,b*_+M*w]}for(var n=e/180*ZG,a=0,o=0,s=m6t(r),l="",u=0;u{"use strict";var xh=No(),Nu=Mt(),y6t=Nu.numberFormat,Bg=Gs(),KF=Ho(),lh=ko(),g6t=gf(),E6=Nu.strTranslate,JF=zu(),x6t=(zp(),ar(Pp)),b6t=(Hc(),ar(Gc)),_6t=b6t.LINE_SPACING,v1e=(ey(),ar(Qm)).DESELECTDIM,w6t=ff(),A6t=T6(),T6t=od().appendArrayPointValue,Po={};M1e.exports=Po;Po.font=function(e,t){var r=t.variant,i=t.style,n=t.weight,a=t.color,o=t.size,s=t.family,l=t.shadow,u=t.lineposition,f=t.textcase;s&&e.style("font-family",s),o+1&&e.style("font-size",o+"px"),a&&e.call(lh.fill,a),n&&e.style("font-weight",n),i&&e.style("font-style",i),r&&e.style("font-variant",r),f&&e.style("text-transform",QG(S6t(f))),l&&e.style("text-shadow",l==="auto"?JF.makeTextShadow(lh.contrast(a)):QG(l)),u&&e.style("text-decoration-line",QG(E6t(u)))};function QG(e){return e==="none"?void 0:e}var M6t={normal:"none",lower:"lowercase",upper:"uppercase","word caps":"capitalize"};function S6t(e){return M6t[e]}function E6t(e){return e.replace("under","underline").replace("over","overline").replace("through","line-through").split("+").join(" ")}Po.setPosition=function(e,t,r){e.attr("x",t).attr("y",r)};Po.setSize=function(e,t,r){e.attr("width",t).attr("height",r)};Po.setRect=function(e,t,r,i,n){e.call(Po.setPosition,t,r).call(Po.setSize,i,n)};Po.translatePoint=function(e,t,r,i){var n=r.c2p(e.x),a=i.c2p(e.y);if(Bg(n)&&Bg(a)&&t.node())t.node().nodeName==="text"?t.attr("x",n).attr("y",a):t.attr("transform",E6(n,a));else return!1;return!0};Po.translatePoints=function(e,t,r){e.each(function(i){var n=xh.select(this);Po.translatePoint(i,n,t,r)})};Po.hideOutsideRangePoint=function(e,t,r,i,n,a){t.attr("display",r.isPtWithinRange(e,n)&&i.isPtWithinRange(e,a)?null:"none")};Po.hideOutsideRangePoints=function(e,t){if(t._hasClipOnAxisFalse){var r=t.xaxis,i=t.yaxis;e.each(function(n){var a=n[0].trace,o=a.xcalendar,s=a.ycalendar,l=KF.traceIs(a,"bar-like")?".bartext":".point,.textpoint";e.selectAll(l).each(function(u){Po.hideOutsideRangePoint(u,xh.select(this),r,i,o,s)})})}};Po.crispRound=function(e,t,r){return!t||!Bg(t)?r||0:e._context.staticPlot?t:t<1?1:Math.round(t)};Po.singleLineStyle=function(e,t,r,i,n){t.style("fill","none");var a=(((e||[])[0]||{}).trace||{}).line||{},o=r||a.width||0,s=n||a.dash||"";lh.stroke(t,i||a.color),Po.dashLine(t,s,o)};Po.lineGroupStyle=function(e,t,r,i){e.style("fill","none").each(function(n){var a=(((n||[])[0]||{}).trace||{}).line||{},o=t||a.width||0,s=i||a.dash||"";xh.select(this).call(lh.stroke,r||a.color).call(Po.dashLine,s,o)})};Po.dashLine=function(e,t,r){r=+r||0,t=Po.dashStyle(t,r),e.style({"stroke-dasharray":t,"stroke-width":r+"px"})};Po.dashStyle=function(e,t){t=+t||1;var r=Math.max(t,3);return e==="solid"?e="":e==="dot"?e=r+"px,"+r+"px":e==="dash"?e=3*r+"px,"+3*r+"px":e==="longdash"?e=5*r+"px,"+5*r+"px":e==="dashdot"?e=3*r+"px,"+r+"px,"+r+"px,"+r+"px":e==="longdashdot"&&(e=5*r+"px,"+2*r+"px,"+r+"px,"+2*r+"px"),e};function m1e(e,t,r,i){var n=t.fillpattern,a=t.fillgradient,o=Po.getPatternAttr,s=n&&(o(n.shape,0,"")||o(n.path,0,""));if(s){var l=o(n.bgcolor,0,null),u=o(n.fgcolor,0,null),f=n.fgopacity,c=o(n.size,0,8),h=o(n.solidity,0,.3),d=t.uid;Po.pattern(e,"point",r,d,s,c,h,void 0,n.fillmode,l,u,f)}else if(a&&a.type!=="none"){var p=a.type,v="scatterfill-"+t.uid;if(i&&(v="legendfill-"+t.uid),!i&&(a.start!==void 0||a.stop!==void 0)){var y,m;p==="horizontal"?(y={x:a.start,y:0},m={x:a.stop,y:0}):p==="vertical"&&(y={x:0,y:a.start},m={x:0,y:a.stop}),y.x=t._xA.c2p(y.x===void 0?t._extremes.x.min[0].val:y.x,!0),y.y=t._yA.c2p(y.y===void 0?t._extremes.y.min[0].val:y.y,!0),m.x=t._xA.c2p(m.x===void 0?t._extremes.x.max[0].val:m.x,!0),m.y=t._yA.c2p(m.y===void 0?t._extremes.y.max[0].val:m.y,!0),e.call(x1e,r,v,"linear",a.colorscale,"fill",y,m,!0,!1)}else p==="horizontal"&&(p=p+"reversed"),e.call(Po.gradient,r,v,p,a.colorscale,"fill")}else t.fillcolor&&e.call(lh.fill,t.fillcolor)}Po.singleFillStyle=function(e,t){var r=xh.select(e.node()),i=r.data(),n=((i[0]||[])[0]||{}).trace||{};m1e(e,n,t,!1)};Po.fillGroupStyle=function(e,t,r){e.style("stroke-width",0).each(function(i){var n=xh.select(this);i[0].trace&&m1e(n,i[0].trace,t,r)})};var o1e=a1e();Po.symbolNames=[];Po.symbolFuncs=[];Po.symbolBackOffs=[];Po.symbolNeedLines={};Po.symbolNoDot={};Po.symbolNoFill={};Po.symbolList=[];Object.keys(o1e).forEach(function(e){var t=o1e[e],r=t.n;Po.symbolList.push(r,String(r),e,r+100,String(r+100),e+"-open"),Po.symbolNames[r]=e,Po.symbolFuncs[r]=t.f,Po.symbolBackOffs[r]=t.backoff||0,t.needLine&&(Po.symbolNeedLines[r]=!0),t.noDot?Po.symbolNoDot[r]=!0:Po.symbolList.push(r+200,String(r+200),e+"-dot",r+300,String(r+300),e+"-open-dot"),t.noFill&&(Po.symbolNoFill[r]=!0)});var k6t=Po.symbolNames.length,C6t="M0,0.5L0.5,0L0,-0.5L-0.5,0Z";Po.symbolNumber=function(e){if(Bg(e))e=+e;else if(typeof e=="string"){var t=0;e.indexOf("-open")>0&&(t=100,e=e.replace("-open","")),e.indexOf("-dot")>0&&(t+=200,e=e.replace("-dot","")),e=Po.symbolNames.indexOf(e),e>=0&&(e+=t)}return e%100>=k6t||e>=400?0:Math.floor(Math.max(e,0))};function y1e(e,t,r,i){var n=e%100;return Po.symbolFuncs[n](t,r,i)+(e>=200?C6t:"")}var s1e=y6t("~f"),g1e={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}};Po.gradient=function(e,t,r,i,n,a){var o=g1e[i];return x1e(e,t,r,o.type,n,a,o.start,o.stop,!1,o.reversed)};function x1e(e,t,r,i,n,a,o,s,l,u){var f=n.length,c;i==="linear"?c={node:"linearGradient",attrs:{x1:o.x,y1:o.y,x2:s.x,y2:s.y,gradientUnits:l?"userSpaceOnUse":"objectBoundingBox"},reversed:u}:i==="radial"&&(c={node:"radialGradient",reversed:u});for(var h=new Array(f),d=0;d=0&&e.i===void 0&&(e.i=a.i),t.style("opacity",i.selectedOpacityFn?i.selectedOpacityFn(e):e.mo===void 0?o.opacity:e.mo),i.ms2mrc){var l;e.ms==="various"||o.size==="various"?l=3:l=i.ms2mrc(e.ms),e.mrc=l,i.selectedSizeFn&&(l=e.mrc=i.selectedSizeFn(e));var u=Po.symbolNumber(e.mx||o.symbol)||0;e.om=u%200>=100;var f=oH(e,r),c=aH(e,r);t.attr("d",y1e(u,l,f,c))}var h=!1,d,p,v;if(e.so)v=s.outlierwidth,p=s.outliercolor,d=o.outliercolor;else{var y=(s||{}).width;v=(e.mlw+1||y+1||(e.trace?(e.trace.marker.line||{}).width:0)+1)-1||0,"mlc"in e?p=e.mlcc=i.lineScale(e.mlc):Nu.isArrayOrTypedArray(s.color)?p=lh.defaultLine:p=s.color,Nu.isArrayOrTypedArray(o.color)&&(d=lh.defaultLine,h=!0),"mc"in e?d=e.mcc=i.markerScale(e.mc):d=o.color||o.colors||"rgba(0,0,0,0)",i.selectedColorFn&&(d=i.selectedColorFn(e))}let m=e.mld||(s||{}).dash;if(m&&Po.dashLine(t,m,v),e.om)t.call(lh.stroke,d).style({"stroke-width":(v||1)+"px",fill:"none"});else{t.style("stroke-width",(e.isBlank?0:v)+"px");var w=o.gradient,_=e.mgt;_?h=!0:_=w&&w.type,Nu.isArrayOrTypedArray(_)&&(_=_[0],g1e[_]||(_=0));var b=o.pattern,M=Po.getPatternAttr,x=b&&(M(b.shape,e.i,"")||M(b.path,e.i,""));if(_&&_!=="none"){var A=e.mgc;A?h=!0:A=w.color;var T=r.uid;h&&(T+="-"+e.i),Po.gradient(t,n,T,_,[[0,A],[1,d]],"fill")}else if(x){var g=!1,E=b.fgcolor;!E&&a&&a.color&&(E=a.color,g=!0);var S=M(E,e.i,a&&a.color||null),C=M(b.bgcolor,e.i,null),k=b.fgopacity,D=M(b.size,e.i,8),L=M(b.solidity,e.i,.3);g=g||e.mcc||Nu.isArrayOrTypedArray(b.shape)||Nu.isArrayOrTypedArray(b.path)||Nu.isArrayOrTypedArray(b.bgcolor)||Nu.isArrayOrTypedArray(b.fgcolor)||Nu.isArrayOrTypedArray(b.size)||Nu.isArrayOrTypedArray(b.solidity);var P=r.uid;g&&(P+="-"+e.i),Po.pattern(t,"point",n,P,x,D,L,e.mcc,b.fillmode,C,S,k)}else Nu.isArrayOrTypedArray(d)?lh.fill(t,d[e.i]):lh.fill(t,d);v&&lh.stroke(t,p)}};Po.makePointStyleFns=function(e){var t={},r=e.marker;return t.markerScale=Po.tryColorscale(r,""),t.lineScale=Po.tryColorscale(r,"line"),KF.traceIs(e,"symbols")&&(t.ms2mrc=w6t.isBubble(e)?A6t(e):function(){return(r.size||6)/2}),e.selectedpoints&&Nu.extendFlat(t,Po.makeSelectedPointStyleFns(e)),t};Po.makeSelectedPointStyleFns=function(e){var t={},r=e.selected||{},i=e.unselected||{},n=e.marker||{},a=r.marker||{},o=i.marker||{},s=n.opacity,l=a.opacity,u=o.opacity,f=l!==void 0,c=u!==void 0;(Nu.isArrayOrTypedArray(s)||f||c)&&(t.selectedOpacityFn=function(b){var M=b.mo===void 0?n.opacity:b.mo;return b.selected?f?l:M:c?u:v1e*M});var h=n.color,d=a.color,p=o.color;(d||p)&&(t.selectedColorFn=function(b){var M=b.mcc||h;return b.selected?d||M:p||M});var v=n.size,y=a.size,m=o.size,w=y!==void 0,_=m!==void 0;return KF.traceIs(e,"symbols")&&(w||_)&&(t.selectedSizeFn=function(b){var M=b.mrc||v/2;return b.selected?w?y/2:M:_?m/2:M}),t};Po.makeSelectedTextStyleFns=function(e){var t={},r=e.selected||{},i=e.unselected||{},n=e.textfont||{},a=r.textfont||{},o=i.textfont||{},s=n.color,l=a.color,u=o.color;return t.selectedTextColorFn=function(f){var c=f.tc||s;return f.selected?l||c:u||(l?c:lh.addOpacity(c,v1e))},t};Po.selectedPointStyle=function(e,t){if(!(!e.size()||!t.selectedpoints)){var r=Po.makeSelectedPointStyleFns(t),i=t.marker||{},n=[];r.selectedOpacityFn&&n.push(function(a,o){a.style("opacity",r.selectedOpacityFn(o))}),r.selectedColorFn&&n.push(function(a,o){lh.fill(a,r.selectedColorFn(o))}),r.selectedSizeFn&&n.push(function(a,o){var s=o.mx||i.symbol||0,l=r.selectedSizeFn(o);a.attr("d",y1e(Po.symbolNumber(s),l,oH(o,t),aH(o,t))),o.mrc2=l}),n.length&&e.each(function(a){for(var o=xh.select(this),s=0;s0?r:0}Po.textPointStyle=function(e,t,r){if(e.size()){var i;if(t.selectedpoints){var n=Po.makeSelectedTextStyleFns(t);i=n.selectedTextColorFn}var a=t.texttemplate,o=r._fullLayout;e.each(function(s){var l=xh.select(this),u=a?Nu.extractOption(s,t,"txt","texttemplate"):Nu.extractOption(s,t,"tx","text");if(!u&&u!==0){l.remove();return}if(a){var f=t._module.formatLabels,c=f?f(s,t,o):{},h={};T6t(h,t,s.i),u=Nu.texttemplateString({data:[h,s,t._meta],fallback:t.texttemplatefallback,labels:c,locale:o._d3locale,template:u})}var d=s.tp||t.textposition,p=_1e(s,t),v=i?i(s):s.tc||t.textfont.color;l.call(Po.font,{family:s.tf||t.textfont.family,weight:s.tw||t.textfont.weight,style:s.ty||t.textfont.style,variant:s.tv||t.textfont.variant,textcase:s.tC||t.textfont.textcase,lineposition:s.tE||t.textfont.lineposition,shadow:s.tS||t.textfont.shadow,size:p,color:v}).text(u).call(JF.convertToTspans,r).call(b1e,d,p,s.mrc)})}};Po.selectedTextStyle=function(e,t){if(!(!e.size()||!t.selectedpoints)){var r=Po.makeSelectedTextStyleFns(t);e.each(function(i){var n=xh.select(this),a=r.selectedTextColorFn(i),o=i.tp||t.textposition,s=_1e(i,t);lh.fill(n,a);var l=KF.traceIs(t,"bar-like");b1e(n,o,s,i.mrc2||i.mrc,l)})}};var l1e=.5;Po.smoothopen=function(e,t){if(e.length<3)return"M"+e.join("L");var r="M"+e[0],i=[],n;for(n=1;n=l||b>=f&&b<=l)&&(M<=c&&M>=u||M>=c&&M<=u)&&(e=[b,M])}return e}Po.applyBackoff=T1e;Po.makeTester=function(){var e=Nu.ensureSingleById(xh.select("body"),"svg","js-plotly-tester",function(r){r.attr(x6t.svgAttrs).style({position:"absolute",left:"-10000px",top:"-10000px",width:"9000px",height:"9000px","z-index":"1"})}),t=Nu.ensureSingle(e,"path","js-reference-point",function(r){r.attr("d","M0,0H1V1H0Z").style({"stroke-width":0,fill:"black"})});Po.tester=e,Po.testref=t};Po.savedBBoxes={};var tH=0,L6t=1e4;Po.bBox=function(e,t,r){r||(r=u1e(e));var i;if(r){if(i=Po.savedBBoxes[r],i)return Nu.extendFlat({},i)}else if(e.childNodes.length===1){var n=e.childNodes[0];if(r=u1e(n),r){var a=+n.getAttribute("x")||0,o=+n.getAttribute("y")||0,s=n.getAttribute("transform");if(!s){var l=Po.bBox(n,!1,r);return a&&(l.left+=a,l.right+=a),o&&(l.top+=o,l.bottom+=o),l}if(r+="~"+a+"~"+o+"~"+s,i=Po.savedBBoxes[r],i)return Nu.extendFlat({},i)}}var u,f;t?u=e:(f=Po.tester.node(),u=e.cloneNode(!0),f.appendChild(u)),xh.select(u).attr("transform",null).call(JF.positionText,0,0);var c=u.getBoundingClientRect(),h=Po.testref.node().getBoundingClientRect();t||f.removeChild(u);var d={height:c.height,width:c.width,left:c.left-h.left,top:c.top-h.top,right:c.right-h.left,bottom:c.bottom-h.top};return tH>=L6t&&(Po.savedBBoxes={},tH=0),r&&(Po.savedBBoxes[r]=d),tH++,Nu.extendFlat({},d)};function u1e(e){var t=e.getAttribute("data-unformatted");if(t!==null)return t+e.getAttribute("data-math")+e.getAttribute("text-anchor")+e.getAttribute("style")}Po.setClipUrl=function(e,t,r){e.attr("clip-path",nH(t,r))};function nH(e,t){if(!e)return null;var r=t._context,i=r._exportedPlot?"":r._baseUrl||"";return i?"url('"+i+"#"+e+"')":"url(#"+e+")"}Po.getTranslate=function(e){var t=/.*\btranslate\((-?\d*\.?\d*)[^-\d]*(-?\d*\.?\d*)[^\d].*/,r=e.attr?"attr":"getAttribute",i=e[r]("transform")||"",n=i.replace(t,function(a,o,s){return[o,s].join(" ")}).split(" ");return{x:+n[0]||0,y:+n[1]||0}};Po.setTranslate=function(e,t,r){var i=/(\btranslate\(.*?\);?)/,n=e.attr?"attr":"getAttribute",a=e.attr?"attr":"setAttribute",o=e[n]("transform")||"";return t=t||0,r=r||0,o=o.replace(i,"").trim(),o+=E6(t,r),o=o.trim(),e[a]("transform",o),o};Po.getScale=function(e){var t=/.*\bscale\((\d*\.?\d*)[^\d]*(\d*\.?\d*)[^\d].*/,r=e.attr?"attr":"getAttribute",i=e[r]("transform")||"",n=i.replace(t,function(a,o,s){return[o,s].join(" ")}).split(" ");return{x:+n[0]||1,y:+n[1]||1}};Po.setScale=function(e,t,r){var i=/(\bscale\(.*?\);?)/,n=e.attr?"attr":"getAttribute",a=e.attr?"attr":"setAttribute",o=e[n]("transform")||"";return t=t||1,r=r||1,o=o.replace(i,"").trim(),o+="scale("+t+","+r+")",o=o.trim(),e[a]("transform",o),o};var P6t=/\s*sc.*/;Po.setPointGroupScale=function(e,t,r){if(t=t||1,r=r||1,!!e){var i=t===1&&r===1?"":"scale("+t+","+r+")";e.each(function(){var n=(this.getAttribute("transform")||"").replace(P6t,"");n+=i,n=n.trim(),this.setAttribute("transform",n)})}};var z6t=/translate\([^)]*\)\s*$/;Po.setTextPointsScale=function(e,t,r){e&&e.each(function(){var i,n=xh.select(this),a=n.select("text");if(a.node()){var o=parseFloat(a.attr("x")||0),s=parseFloat(a.attr("y")||0),l=(n.attr("transform")||"").match(z6t);t===1&&r===1?i=[]:i=[E6(o,s),"scale("+t+","+r+")",E6(-o,-s)],l&&i.push(l),n.attr("transform",i.join(""))}})};function aH(e,t){var r;return e&&(r=e.mf),r===void 0&&(r=t.marker&&t.marker.standoff||0),!t._geo&&!t._xA?-r:r}Po.getMarkerStandoff=aH;var S6=Math.atan2,fb=Math.cos,Dw=Math.sin;function f1e(e,t){var r=t[0],i=t[1];return[r*fb(e)-i*Dw(e),r*Dw(e)+i*fb(e)]}var c1e,h1e,d1e,p1e,rH,iH;function oH(e,t){var r=e.ma;r===void 0&&(r=t.marker.angle,(!Bg(r)||Nu.isArrayOrTypedArray(r))&&(r=0));var i,n,a=t.marker.angleref;if(a==="previous"||a==="north"){if(t._geo){var o=t._geo.project(e.lonlat);i=o[0],n=o[1]}else{var s=t._xA,l=t._yA;if(s&&l)i=s.c2p(e.x),n=l.c2p(e.y);else return 90}if(t._geo){var u=e.lonlat[0],f=e.lonlat[1],c=t._geo.project([u,f+1e-5]),h=t._geo.project([u+1e-5,f]),d=S6(h[1]-n,h[0]-i),p=S6(c[1]-n,c[0]-i),v;if(a==="north")v=r/180*Math.PI;else if(a==="previous"){var y=u/180*Math.PI,m=f/180*Math.PI,w=c1e/180*Math.PI,_=h1e/180*Math.PI,b=w-y,M=fb(_)*Dw(b),x=Dw(_)*fb(m)-fb(_)*Dw(m)*fb(b);v=-S6(M,x)-Math.PI,c1e=u,h1e=f}var A=f1e(d,[fb(v),0]),T=f1e(p,[Dw(v),0]);r=S6(A[1]+T[1],A[0]+T[0])/Math.PI*180,a==="previous"&&!(iH===t.uid&&e.i===rH+1)&&(r=null)}if(a==="previous"&&!t._geo)if(iH===t.uid&&e.i===rH+1&&Bg(i)&&Bg(n)){var g=i-d1e,E=n-p1e,S=t.line&&t.line.shape||"",C=S.slice(S.length-1);C==="h"&&(E=0),C==="v"&&(g=0),r+=S6(E,g)/Math.PI*180+90}else r=null}return d1e=i,p1e=n,rH=e.i,iH=t.uid,r}Po.getMarkerAngle=oH});var pb=K((ENr,C1e)=>{"use strict";var Fw=No(),I6t=Gs(),R6t=yf(),sH=Ho(),db=Mt(),S1e=db.strTranslate,QF=Bs(),eL=ko(),Lw=zu(),E1e=(ey(),ar(Qm)),B6t=(Hc(),ar(Gc)).OPPOSITE_SIDE,k1e=/ [XY][0-9]* /,lH=1.6,uH=1.6;function q6t(e,t,r){var i=e._fullLayout,n=r.propContainer,a=r.propName,o=r.placeholder,s=r.traceIndex,l=r.avoid||{},u=r.attributes,f=r.transform,c=r.containerGroup,h=1,d=n.title,p=(d&&d.text?d.text:"").trim(),v=!1,y=d&&d.font?d.font:{},m=y.family,w=y.size,_=y.color,b=y.weight,M=y.style,x=y.variant,A=y.textcase,T=y.lineposition,g=y.shadow,E=r.subtitlePropName,S=!!E,C=r.subtitlePlaceholder,k=(n.title||{}).subtitle||{text:"",font:{}},D=(k.text||"").trim(),L=!1,P=1,I=k.font,F=I.family,z=I.size,B=I.color,O=I.weight,W=I.style,X=I.variant,Z=I.textcase,j=I.lineposition,q=I.shadow,Q;a==="title.text"?Q="titleText":a.indexOf("axis")!==-1?Q="axisTitleText":a.indexOf("colorbar")!==-1&&(Q="colorbarTitleText");var N=e._context.edits[Q];function V(we,oe){return we===void 0||oe===void 0?!1:we.replace(k1e," % ")===oe.replace(k1e," % ")}p===""?h=0:V(p,o)&&(N||(p=""),h=.2,v=!0),S&&(D===""?P=0:V(D,C)&&(N||(D=""),P=.2,L=!0)),r._meta?p=db.templateString(p,r._meta):i._meta&&(p=db.templateString(p,i._meta));var J=p||D||N,H;c||(c=db.ensureSingle(i._infolayer,"g","g-"+t),H=i._hColorbarMoveTitle);var $=c.selectAll("text."+t).data(J?[0]:[]);$.enter().append("text"),$.text(p).attr("class",t),$.exit().remove();var te=null,ie=t+"-subtitle",de=D||N;if(S&&(te=c.selectAll("text."+ie).data(de?[0]:[]),te.enter().append("text"),te.text(D).attr("class",ie),te.exit().remove()),!J)return c;function ge(we,oe){db.syncOrAsync([Ie,Ce],{title:we,subtitle:oe})}function Ie(we){var oe=we.title,Y=we.subtitle,ne;!f&&H&&(f={}),f?(ne="",f.rotate&&(ne+="rotate("+[f.rotate,u.x,u.y]+")"),(f.offset||H)&&(ne+=S1e(0,(f.offset||0)-(H||0)))):ne=null,oe.attr("transform",ne);function ye(ue){if(ue){var pe=Fw.select(ue.node().parentNode).select("."+ie);if(!pe.empty()){var ce=ue.node().getBBox();if(ce.height){var Be=ce.y+ce.height+lH*z;pe.attr("y",Be)}}}}if(oe.style("opacity",h*eL.opacity(_)).call(QF.font,{color:eL.rgb(_),size:Fw.round(w,2),family:m,weight:b,style:M,variant:x,textcase:A,shadow:g,lineposition:T}).attr(u).call(Lw.convertToTspans,e,ye),Y&&!Y.empty()){var U=c.select("."+t+"-math-group"),se=oe.node().getBBox(),Ae=U.node()?U.node().getBBox():void 0,be=Ae?Ae.y+Ae.height+lH*z:se.y+se.height+uH*z,me=db.extendFlat({},u,{y:be});Y.attr("transform",ne),Y.style("opacity",P*eL.opacity(B)).call(QF.font,{color:eL.rgb(B),size:Fw.round(z,2),family:F,weight:O,style:W,variant:X,textcase:Z,shadow:q,lineposition:j}).attr(me).call(Lw.convertToTspans,e)}return R6t.previousPromises(e)}function Ce(we){var oe=we.title,Y=Fw.select(oe.node().parentNode);if(l&&l.selection&&l.side&&p){Y.attr("transform",null);var ne=B6t[l.side],ye=l.side==="left"||l.side==="top"?-1:1,U=I6t(l.pad)?l.pad:2,se=QF.bBox(Y.node()),Ae={t:0,b:0,l:0,r:0},be=e._fullLayout._reservedMargin;for(var me in be)for(var ue in be[me]){var pe=be[me][ue];Ae[ue]=Math.max(Ae[ue],pe)}var ce={left:Ae.l,top:Ae.t,right:i.width-Ae.r,bottom:i.height-Ae.b},Be=l.maxShift||ye*(ce[l.side]-se[l.side]),$e=0;if(Be<0)$e=Be;else{var Ze=l.offsetLeft||0,it=l.offsetTop||0;se.left-=Ze,se.right-=Ze,se.top-=it,se.bottom-=it,l.selection.each(function(){var Ue=QF.bBox(this);db.bBoxIntersect(se,Ue,U)&&($e=Math.max($e,ye*(Ue[l.side]-se[ne])+U))}),$e=Math.min(Be,$e),n._titleScoot=Math.abs($e)}if($e>0||Be<0){var nt={left:[-$e,0],right:[$e,0],top:[0,-$e],bottom:[0,$e]}[l.side];Y.attr("transform",S1e(nt[0],nt[1]))}}}$.call(ge,te);function le(we,oe){we.text(oe).on("mouseover.opacity",function(){Fw.select(this).transition().duration(E1e.SHOW_PLACEHOLDER).style("opacity",1)}).on("mouseout.opacity",function(){Fw.select(this).transition().duration(E1e.HIDE_PLACEHOLDER).style("opacity",0)})}if(N&&(p?$.on(".opacity",null):(le($,o),v=!0),$.call(Lw.makeEditable,{gd:e}).on("edit",function(we){s!==void 0?sH.call("_guiRestyle",e,a,we,s):sH.call("_guiRelayout",e,a,we)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(ge)}).on("input",function(we){this.text(we||" ").call(Lw.positionText,u.x,u.y)}),S)){if(S&&!p){var re=$.node().getBBox(),Ee=re.y+re.height+uH*z;te.attr("y",Ee)}D?te.on(".opacity",null):(le(te,C),L=!0),te.call(Lw.makeEditable,{gd:e}).on("edit",function(we){sH.call("_guiRelayout",e,"title.subtitle.text",we)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(ge)}).on("input",function(we){this.text(we||" ").call(Lw.positionText,te.attr("x"),te.attr("y"))})}return $.classed("js-placeholder",v),te&&!te.empty()&&te.classed("js-placeholder",L),c}C1e.exports={draw:q6t,SUBTITLE_PADDING_EM:uH,SUBTITLE_PADDING_MATHJAX_EM:lH}});var G1=K((kNr,z1e)=>{"use strict";var O6t=No(),N6t=X3().utcFormat,cf=Mt(),V6t=cf.numberFormat,V1=Gs(),qg=cf.cleanNumber,U6t=cf.ms2DateTime,D1e=cf.dateTime2ms,U1=cf.ensureNumber,F1e=cf.isArrayOrTypedArray,Og=(Il(),ar(Bl)),tL=Og.FP_SAFE,Gv=Og.BADNUM,G6t=Og.LOG_CLIP,H6t=Og.ONEWEEK,rL=Og.ONEDAY,iL=Og.ONEHOUR,L1e=Og.ONEMIN,P1e=Og.ONESEC,nL=Vf(),sL=(Uc(),ar(Vc)),aL=sL.HOUR_PATTERN,oL=sL.WEEKDAY_PATTERN;function k6(e){return Math.pow(10,e)}function fH(e){return e!=null}z1e.exports=function(t,r){r=r||{};var i=t._id||"x",n=i.charAt(0);function a(b,M){if(b>0)return Math.log(b)/Math.LN10;if(b<=0&&M&&t.range&&t.range.length===2){var x=t.range[0],A=t.range[1];return .5*(x+A-2*G6t*Math.abs(x-A))}else return Gv}function o(b,M,x,A){if((A||{}).msUTC&&V1(b))return+b;var T=D1e(b,x||t.calendar);if(T===Gv)if(V1(b)){b=+b;var g=Math.floor(cf.mod(b+.05,1)*10),E=Math.round(b-g/10);T=D1e(new Date(E))+g/10}else return Gv;return T}function s(b,M,x){return U6t(b,M,x||t.calendar)}function l(b){return t._categories[Math.round(b)]}function u(b){if(fH(b)){if(t._categoriesMap===void 0&&(t._categoriesMap={}),t._categoriesMap[b]!==void 0)return t._categoriesMap[b];t._categories.push(typeof b=="number"?String(b):b);var M=t._categories.length-1;return t._categoriesMap[b]=M,M}return Gv}function f(b,M){for(var x=new Array(M),A=0;At.range[1]&&(x=!x);for(var A=x?-1:1,T=A*b,g=0,E=0;EC)g=E+1;else{g=T<(S+C)/2?E:E+1;break}}var k=t._B[g]||0;return isFinite(k)?p(b,t._m2,k):0},m=function(b){var M=t._rangebreaks.length;if(!M)return v(b,t._m,t._b);for(var x=0,A=0;At._rangebreaks[A].pmax&&(x=A+1);return v(b,t._m2,t._B[x])}}t.c2l=t.type==="log"?a:U1,t.l2c=t.type==="log"?k6:U1,t.l2p=y,t.p2l=m,t.c2p=t.type==="log"?function(b,M){return y(a(b,M))}:y,t.p2c=t.type==="log"?function(b){return k6(m(b))}:m,["linear","-"].indexOf(t.type)!==-1?(t.d2r=t.r2d=t.d2c=t.r2c=t.d2l=t.r2l=qg,t.c2d=t.c2r=t.l2d=t.l2r=U1,t.d2p=t.r2p=function(b){return t.l2p(qg(b))},t.p2d=t.p2r=m,t.cleanPos=U1):t.type==="log"?(t.d2r=t.d2l=function(b,M){return a(qg(b),M)},t.r2d=t.r2c=function(b){return k6(qg(b))},t.d2c=t.r2l=qg,t.c2d=t.l2r=U1,t.c2r=a,t.l2d=k6,t.d2p=function(b,M){return t.l2p(t.d2r(b,M))},t.p2d=function(b){return k6(m(b))},t.r2p=function(b){return t.l2p(qg(b))},t.p2r=m,t.cleanPos=U1):t.type==="date"?(t.d2r=t.r2d=cf.identity,t.d2c=t.r2c=t.d2l=t.r2l=o,t.c2d=t.c2r=t.l2d=t.l2r=s,t.d2p=t.r2p=function(b,M,x){return t.l2p(o(b,0,x))},t.p2d=t.p2r=function(b,M,x){return s(m(b),M,x)},t.cleanPos=function(b){return cf.cleanDate(b,Gv,t.calendar)}):t.type==="category"?(t.d2c=t.d2l=u,t.r2d=t.c2d=t.l2d=l,t.d2r=t.d2l_noadd=h,t.r2c=function(b){var M=d(b);return M!==void 0?M:t.fraction2r(.5)},t.l2r=t.c2r=U1,t.r2l=d,t.d2p=function(b){return t.l2p(t.r2c(b))},t.p2d=function(b){return l(m(b))},t.r2p=t.d2p,t.p2r=m,t.cleanPos=function(b){return typeof b=="string"&&b!==""?b:U1(b)}):t.type==="multicategory"&&(t.r2d=t.c2d=t.l2d=l,t.d2r=t.d2l_noadd=h,t.r2c=function(b){var M=h(b);return M!==void 0?M:t.fraction2r(.5)},t.r2c_just_indices=c,t.l2r=t.c2r=U1,t.r2l=h,t.d2p=function(b){return t.l2p(t.r2c(b))},t.p2d=function(b){return l(m(b))},t.r2p=t.d2p,t.p2r=m,t.cleanPos=function(b){return Array.isArray(b)||typeof b=="string"&&b!==""?b:U1(b)},t.setupMultiCategory=function(b){var M=t._traceIndices,x,A,T=t._matchGroup;if(T&&t._categories.length===0){for(var g in T)if(g!==i){var E=r[nL.id2name(g)];M=M.concat(E._traceIndices)}}var S=[[0,{}],[0,{}]],C=[];for(x=0;xE[1]&&(A[g?0:1]=x,T[1]=E[1]),T[0]>=T[1])if(M!==void 0){var S=E[0]+1;x!==void 0&&(S=Math.min(S,E[1])),A[g?0:1]=t.l2r(S)}else x!==void 0&&(A[g?1:0]=t.l2r(E[1]-1))}},t.cleanRange=function(b,M){t._cleanRange(b,M),t.limitRange(b)},t._cleanRange=function(b,M){M||(M={}),b||(b="range");var x=cf.nestedProperty(t,b).get(),A,T;if(t.type==="date"?T=cf.dfltRange(t.calendar):n==="y"?T=sL.DFLTRANGEY:t._name==="realaxis"?T=[0,1]:T=M.dfltRange||sL.DFLTRANGEX,T=T.slice(),(t.rangemode==="tozero"||t.rangemode==="nonnegative")&&(T[0]=0),!x||x.length!==2){cf.nestedProperty(t,b).set(T);return}var g=x[0]===null,E=x[1]===null;for(t.type==="date"&&!t.autorange&&(x[0]=cf.cleanDate(x[0],Gv,t.calendar),x[1]=cf.cleanDate(x[1],Gv,t.calendar)),A=0;A<2;A++)if(t.type==="date"){if(!cf.isDateTime(x[A],t.calendar)){t[b]=T;break}if(t.r2l(x[0])===t.r2l(x[1])){var S=cf.constrain(t.r2l(x[0]),cf.MIN_MS+1e3,cf.MAX_MS-1e3);x[0]=t.l2r(S-1e3),x[1]=t.l2r(S+1e3);break}}else{if(!V1(x[A]))if(!(g||E)&&V1(x[1-A]))x[A]=x[1-A]*(A?10:.1);else{t[b]=T;break}if(x[A]<-tL?x[A]=-tL:x[A]>tL&&(x[A]=tL),x[0]===x[1]){var C=Math.max(1,Math.abs(x[0]*1e-6));x[0]-=C,x[1]+=C}}},t.setScale=function(b){var M=r._size;if(t.overlaying){var x=nL.getFromId({_fullLayout:r},t.overlaying);t.domain=x.domain}var A=b&&t._r?"_r":"range",T=t.calendar;t.cleanRange(A);var g=t.r2l(t[A][0],T),E=t.r2l(t[A][1],T),S=n==="y";if(S?(t._offset=M.t+(1-t.domain[1])*M.h,t._length=M.h*(t.domain[1]-t.domain[0]),t._m=t._length/(g-E),t._b=-t._m*E):(t._offset=M.l+t.domain[0]*M.w,t._length=M.w*(t.domain[1]-t.domain[0]),t._m=t._length/(E-g),t._b=-t._m*g),t._rangebreaks=[],t._lBreaks=0,t._m2=0,t._B=[],t.rangebreaks){var C,k;if(t._rangebreaks=t.locateBreaks(Math.min(g,E),Math.max(g,E)),t._rangebreaks.length){for(C=0;CE&&(D=!D),D&&t._rangebreaks.reverse();var L=D?-1:1;for(t._m2=L*t._length/(Math.abs(E-g)-t._lBreaks),t._B.push(-t._m2*(S?E:g)),C=0;CT&&(T+=7,gT&&(T+=24,g=A&&g=A&&b=q.min&&(Wq.max&&(q.max=X),Z=!1)}Z&&E.push({min:W,max:X})}};for(x=0;x{"use strict";var I1e=Gs(),cH=Mt(),j6t=(Il(),ar(Bl)).BADNUM,lL=cH.isArrayOrTypedArray,W6t=cH.isDateTime,$6t=cH.cleanNumber,R1e=Math.round;q1e.exports=function(t,r,i){var n=t,a=i.noMultiCategory;if(lL(n)&&!n.length)return"-";if(!a&&J6t(n))return"multicategory";if(a&&Array.isArray(n[0])){for(var o=[],s=0;sa*2}function B1e(e){return Math.max(1,(e-1)/1e3)}function K6t(e,t){for(var r=e.length,i=B1e(r),n=0,a=0,o={},s=0;sn*2}function J6t(e){return lL(e[0])&&lL(e[1])}});var Hv=K((DNr,W1e)=>{"use strict";var Q6t=No(),U1e=Gs(),Ng=Mt(),uL=(Il(),ar(Bl)).FP_SAFE,eMt=Ho(),tMt=Bs(),G1e=Vf(),rMt=G1e.getFromId,iMt=G1e.isLinked;W1e.exports={applyAutorangeOptions:j1e,getAutoRange:hH,makePadFn:dH,doAutoRange:aMt,findExtremes:oMt,concatExtremes:mH};function hH(e,t){var r,i,n=[],a=e._fullLayout,o=dH(a,t,0),s=dH(a,t,1),l=mH(e,t),u=l.min,f=l.max;if(u.length===0||f.length===0)return Ng.simpleMap(t.range,t.r2l);var c=u[0].val,h=f[0].val;for(r=1;r0&&(E=_-o(x)-s(A),E>b?S/E>M&&(T=x,g=A,M=S/E):S/_>M&&(T={val:x.val,nopad:1},g={val:A.val,nopad:1},M=S/_));function C(I,F){return Math.max(I,s(F))}if(c===h){var k=c-1,D=c+1;if(m)if(c===0)n=[0,1];else{var L=(c>0?f:u).reduce(C,0),P=c/(1-Math.min(.5,L/_));n=c>0?[0,P]:[P,0]}else w?n=[Math.max(0,k),Math.max(1,D)]:n=[k,D]}else m?(T.val>=0&&(T={val:0,nopad:1}),g.val<=0&&(g={val:0,nopad:1})):w&&(T.val-M*o(T)<0&&(T={val:0,nopad:1}),g.val<=0&&(g={val:1,nopad:1})),M=(g.val-T.val-O1e(t,x.val,A.val))/(_-o(T)-s(g)),n=[T.val-M*o(T),g.val+M*s(g)];return n=j1e(n,t),t.limitRange&&t.limitRange(),p&&n.reverse(),Ng.simpleMap(n,t.l2r||Number)}function O1e(e,t,r){var i=0;if(e.rangebreaks)for(var n=e.locateBreaks(t,r),a=0;a0?r.ppadplus:r.ppadminus)||r.ppad||0),x=b((e._m>0?r.ppadminus:r.ppadplus)||r.ppad||0),A=b(r.vpadplus||r.vpad),T=b(r.vpadminus||r.vpad);if(!u){if(w=1/0,_=-1/0,l)for(c=0;c0&&(w=h),h>_&&h-uL&&(w=h),h>_&&h=S;c--)E(c);return{min:i,max:n,opts:r}}function pH(e,t,r,i){H1e(e,t,r,i,sMt)}function vH(e,t,r,i){H1e(e,t,r,i,lMt)}function H1e(e,t,r,i,n){for(var a=i.tozero,o=i.extrapad,s=!0,l=0;l=r&&(u.extrapad||!o)){s=!1;break}else n(t,u.val)&&u.pad<=r&&(o||!u.extrapad)&&(e.splice(l,1),l--)}if(s){var f=a&&t===0;e.push({val:t,pad:f?0:r,extrapad:f?!1:o})}}function V1e(e){return U1e(e)&&Math.abs(e)=t}function uMt(e,t){var r=t.autorangeoptions;return r&&r.minallowed!==void 0&&fL(t,r.minallowed,r.maxallowed)?r.minallowed:r&&r.clipmin!==void 0&&fL(t,r.clipmin,r.clipmax)?Math.max(e,t.d2l(r.clipmin)):e}function fMt(e,t){var r=t.autorangeoptions;return r&&r.maxallowed!==void 0&&fL(t,r.minallowed,r.maxallowed)?r.maxallowed:r&&r.clipmax!==void 0&&fL(t,r.clipmin,r.clipmax)?Math.min(e,t.d2l(r.clipmax)):e}function fL(e,t,r){return t!==void 0&&r!==void 0?(t=e.d2l(t),r=e.d2l(r),t=l&&(a=l,r=l),o<=l&&(o=l,i=l)}}return r=uMt(r,t),i=fMt(i,t),[r,i]}});var Cs=K((LNr,vme)=>{"use strict";var Rp=No(),Sc=Gs(),zw=yf(),D6=Ho(),tl=Mt(),Iw=tl.strTranslate,vb=zu(),cMt=pb(),F6=ko(),Kd=Bs(),hMt=Lh(),$1e=NG(),FNr=(Uc(),ar(Vc)),Jh=(Il(),ar(Bl)),dMt=Jh.ONEMAXYEAR,dL=Jh.ONEAVGYEAR,pL=Jh.ONEMINYEAR,pMt=Jh.ONEMAXQUARTER,bH=Jh.ONEAVGQUARTER,vL=Jh.ONEMINQUARTER,vMt=Jh.ONEMAXMONTH,Rw=Jh.ONEAVGMONTH,mL=Jh.ONEMINMONTH,Jd=Jh.ONEWEEK,O0=Jh.ONEDAY,Vg=O0/2,j1=Jh.ONEHOUR,L6=Jh.ONEMIN,yL=Jh.ONESEC,mMt=Jh.ONEMILLI,yMt=Jh.ONEMICROSEC,mb=Jh.MINUS_SIGN,xL=Jh.BADNUM,_H={K:"zeroline"},wH={K:"gridline",L:"path"},AH={K:"minor-gridline",L:"path"},nme={K:"tick",L:"path"},Y1e={K:"tick",L:"text"},X1e={width:["x","r","l","xl","xr"],height:["y","t","b","yt","yb"],right:["r","xr"],left:["l","xl"],top:["t","yt"],bottom:["b","yb"]},bL=(Hc(),ar(Gc)),C6=bL.MID_SHIFT,yb=bL.CAP_SHIFT,P6=bL.LINE_SPACING,gMt=bL.OPPOSITE_SIDE,gL=3,wa=vme.exports={};wa.setConvert=G1();var xMt=Pw(),W1=Vf(),bMt=W1.idSort,_Mt=W1.isLinked;wa.id2name=W1.id2name;wa.name2id=W1.name2id;wa.cleanId=W1.cleanId;wa.list=W1.list;wa.listIds=W1.listIds;wa.getFromId=W1.getFromId;wa.getFromTrace=W1.getFromTrace;var ame=Hv();wa.getAutoRange=ame.getAutoRange;wa.findExtremes=ame.findExtremes;var wMt=1e-4;function EH(e){var t=(e[1]-e[0])*wMt;return[e[0]-t,e[1]+t]}function AMt(e,t,r){if(![r,e,t].every(Sc)||r===0)return e;let i=Math.round((e-t)/r),n=t+i*r;return e!==n&&Math.abs(e-n)h+" domain")),l=l.concat(a||[]),f.length>o?(tl.warn("Array attribute "+u+" has more entries than expected, truncating to "+o),f=f.slice(0,o)):f.length2e-6||((r-e._forceTick0)/e._minDtick%1+1.000001)%1>2e-6)&&(e._minDtick=0))};wa.saveRangeInitial=function(e,t){for(var r=wa.list(e,"",!0),i=!1,n=0;nc*.3||u(i)||u(n))){var h=r.dtick/2;e+=e+ho){var s=Number(r.slice(1));a.exactYears>o&&s%12===0?e=wa.tickIncrement(e,"M6","reverse")+O0*1.5:a.exactMonths>o?e=wa.tickIncrement(e,"M1","reverse")+O0*15.5:e-=Vg;var l=wa.tickIncrement(e,r);if(l<=i)return l}return e}wa.prepMinorTicks=function(e,t,r){var c,h;if(!((c=t.minor)!=null&&c.dtick)){delete e.dtick;var i=t.dtick&&Sc(t._tmin),n;if(i){var a=wa.tickIncrement(t._tmin,t.dtick,!0);n=[t._tmin,a*.99+t._tmin*.01]}else{var o=tl.simpleMap(t.range,t.r2l);n=[o[0],.8*o[0]+.2*o[1]]}if(e.range=tl.simpleMap(n,t.l2r),e._isMinor=!0,wa.prepTicks(e,r),i){var s=Sc(t.dtick),l=Sc(e.dtick),u=s?t.dtick:+t.dtick.substring(1),f=l?e.dtick:+e.dtick.substring(1);s&&l?yH(u,f)?u===2*Jd&&f===2*O0&&(e.dtick=Jd):u===2*Jd&&f===3*O0?e.dtick=Jd:u===Jd&&!(t._input.minor||{}).nticks?e.dtick=O0:J1e(u/f,2.5)?e.dtick=u/2:e.dtick=u:String(t.dtick).charAt(0)==="M"?l?e.dtick="M1":yH(u,f)?u>=12&&f===2&&(e.dtick="M3"):e.dtick=t.dtick:String(e.dtick).charAt(0)==="L"?String(t.dtick).charAt(0)==="L"?yH(u,f)||(e.dtick=J1e(u/f,2.5)?t.dtick/2:t.dtick):e.dtick="D1":e.dtick==="D2"&&+t.dtick>1&&(e.dtick=1)}e.range=t.range}((h=t.minor)==null?void 0:h._tick0Init)===void 0&&(e.tick0=t.tick0)};function yH(e,t){return Math.abs((e/t+.5)%1-.5)<.001}function J1e(e,t){return Math.abs(e/t-1)<.001}wa.prepTicks=function(e,t){var r=tl.simpleMap(e.range,e.r2l,void 0,void 0,t);if(e.tickmode==="auto"||!e.dtick){var i=e.nticks,n;i||(e.type==="category"||e.type==="multicategory"?(n=e.tickfont?tl.bigFont(e.tickfont.size||12):15,i=e._length/n):(n=e._id.charAt(0)==="y"?40:80,i=tl.constrain(e._length/n,4,9)+1),e._name==="radialaxis"&&(i*=2)),e.minor&&e.minor.tickmode!=="array"||e.tickmode==="array"&&(i*=100),e._roughDTick=Math.abs(r[1]-r[0])/i,wa.autoTicks(e,e._roughDTick),e._minDtick>0&&e.dtick0?(a=i-1,o=i):(a=i,o=i);var s=e[a].value,l=e[o].value,u=Math.abs(l-s),f=r||u,c=0;f>=pL?u>=pL&&u<=dMt?c=u:c=dL:r===bH&&f>=vL?u>=vL&&u<=pMt?c=u:c=bH:f>=mL?u>=mL&&u<=vMt?c=u:c=Rw:r===Jd&&f>=Jd?c=Jd:f>=O0?c=O0:r===Vg&&f>=Vg?c=Vg:r===j1&&f>=j1&&(c=j1);var h;c>=u&&(c=u,h=!0);var d=n+c;if(t.rangebreaks&&c>0){for(var p=84,v=0,y=0;yJd&&(c=u)}(c>0||i===0)&&(e[i].periodX=n+c/2)}}wa.calcTicks=function(t,r){for(var i=t.type,n=t.calendar,a=t.ticklabelstep,o=t.ticklabelmode==="period",s=t.range[0]>t.range[1],l=!t.ticklabelindex||tl.isArrayOrTypedArray(t.ticklabelindex)?t.ticklabelindex:[t.ticklabelindex],u=tl.simpleMap(t.range,t.r2l,void 0,void 0,r),f=u[1]=(b?0:1);M--){var x=!M;M?(t._dtickInit=t.dtick,t._tick0Init=t.tick0):b&&(t.minor._dtickInit=t.minor.dtick,t.minor._tick0Init=t.minor.tick0);var A=M?t:tl.extendFlat({},t,b?t.minor:{minor:{}});if(x?wa.prepMinorTicks(A,t,r):wa.prepTicks(A,r),A.tickmode==="array"){M?(y=[],p=Q1e(t,!x)):(m=[],v=Q1e(t,!x));continue}if(A.tickmode==="sync"){y=[],p=CMt(t);continue}var T=EH(u),g=T[0],E=T[1],S=Sc(A.dtick),C=i==="log"&&!(S||A.dtick.charAt(0)==="L"),k=wa.tickFirst(A,r);if(M){if(t._tmin=k,k=E:L<=E;L=wa.tickIncrement(L,F,f,n)){if(M&&P++,A.rangebreaks&&!f){if(L=h)break}if(y.length>d||L===D)break;D=L;var B={value:AMt(L,z,F)};M?(L===k&&(B.first=!0),C&&L!==(L|0)&&(B.simpleLabel=!0),a>1&&P%a&&(B.skipLabel=!0),y.push(B)):(B.minor=!0,m.push(B))}}if(!m||m.length<3)l=!1;else{var O=(m[2].value-m[1].value)*(s?-1:1);eSt(O,t.tickformat)||(l=!1,m=m.slice(1))}if(!l)w=y;else{var W=y.concat(m);o&&y.length&&(W=W.slice(1)),W=W.sort(function(oe,Y){return oe.value-Y.value}).filter(function(oe,Y,ne){return Y===0||oe.value!==ne[Y-1].value});var X=W.map(function(oe,Y){return oe.minor===void 0&&!oe.skipLabel?Y:null}).filter(function(oe){return oe!==null});X.forEach(function(oe){l.map(function(Y){var ne=oe+Y;ne>=0&&ne-1;$--){if(y[$].drop){y.splice($,1);continue}y[$].value=xH(y[$].value,t);var ge=t.c2p(y[$].value);(te?de>ge-ie:deh||yeh&&(ne.periodX=h),yen&&pn&&ydL)t/=dL,i=n(10),e.dtick="M"+12*H1(t,i,cL);else if(a>Rw)t/=Rw,e.dtick="M"+H1(t,1,eme);else if(a>O0){if(e.dtick=H1(t,O0,e._hasDayOfWeekBreaks?[1,2,7,14]:DMt),!r){var o=wa.getTickFormat(e),s=e.ticklabelmode==="period";s&&(e._rawTick0=e.tick0),/%[uVW]/.test(o)?e.tick0=tl.dateTick0(e.calendar,2):e.tick0=tl.dateTick0(e.calendar,1),s&&(e._dowTick0=e.tick0)}}else a>j1?e.dtick=H1(t,j1,eme):a>L6?e.dtick=H1(t,L6,tme):a>yL?e.dtick=H1(t,yL,tme):(i=n(10),e.dtick=H1(t,i,cL))}else if(e.type==="log"){e.tick0=0;var l=tl.simpleMap(e.range,e.r2l);if(e._isMinor&&(t*=1.5),t>.7)e.dtick=Math.ceil(t);else if(Math.abs(l[1]-l[0])<1){var u=1.5*Math.abs((l[1]-l[0])/t);t=Math.abs(Math.pow(10,l[1])-Math.pow(10,l[0]))/u,i=n(10),e.dtick="L"+H1(t,i,cL)}else e.dtick=t>.3?"D2":"D1"}else e.type==="category"||e.type==="multicategory"?(e.tick0=0,e.dtick=Math.ceil(Math.max(t,1))):FH(e)?(e.tick0=0,i=1,e.dtick=H1(t,i,FMt)):(e.tick0=0,i=n(10),e.dtick=H1(t,i,cL));if(e.dtick===0&&(e.dtick=1),!Sc(e.dtick)&&typeof e.dtick!="string"){var f=e.dtick;throw e.dtick=1,"ax.dtick error: "+String(f)}};function ume(e){var t=e.dtick;if(e._tickexponent=0,!Sc(t)&&typeof t!="string"&&(t=1),(e.type==="category"||e.type==="multicategory")&&(e._tickround=null),e.type==="date"){var r=e.r2l(e.tick0),i=e.l2r(r).replace(/(^-|i)/g,""),n=i.length;if(String(t).charAt(0)==="M")n>10||i.slice(5)!=="01-01"?e._tickround="d":e._tickround=+t.slice(1)%12===0?"y":"m";else if(t>=O0&&n<=10||t>=O0*15)e._tickround="d";else if(t>=L6&&n<=16||t>=j1)e._tickround="M";else if(t>=yL&&n<=19||t>=L6)e._tickround="S";else{var a=e.l2r(r+t).replace(/^-/,"").length;e._tickround=Math.max(n,a)-20,e._tickround<0&&(e._tickround=4)}}else if(Sc(t)||t.charAt(0)==="L"){var o=e.range.map(e.r2d||Number);Sc(t)||(t=Number(t.slice(1))),e._tickround=2-Math.floor(Math.log(t)/Math.LN10+.01);var s=Math.max(Math.abs(o[0]),Math.abs(o[1])),l=Math.floor(Math.log(s)/Math.LN10+.01),u=e.minexponent===void 0?3:e.minexponent;Math.abs(l)>u&&(Bw(e.exponentformat)&&e.exponentformat!=="SI extended"&&!kH(l)||Bw(e.exponentformat)&&e.exponentformat==="SI extended"&&!CH(l)?e._tickexponent=3*Math.round((l-1)/3):e._tickexponent=l)}else e._tickround=null}wa.tickIncrement=function(e,t,r,i){var n=r?-1:1;if(Sc(t))return tl.increment(e,n*t);var a=t.charAt(0),o=n*Number(t.slice(1));if(a==="M")return tl.incrementMonth(e,o,i);if(a==="L")return Math.log(Math.pow(10,e)+o)/Math.LN10;if(a==="D"){var s=t==="D2"?lme:sme,l=e+n*.01,u=tl.roundUp(tl.mod(l,1),s,r);return Math.floor(l)+Math.log(Rp.round(Math.pow(10,u),1))/Math.LN10}throw"unrecognized dtick "+String(t)};wa.tickFirst=function(e,t){var r=e.r2l||Number,i=tl.simpleMap(e.range,r,void 0,void 0,t),n=i[1]=0&&b<=e._length?_:null};if(l&&tl.isArrayOrTypedArray(e.ticktext)){var p=tl.simpleMap(e.range,e.r2l),v=(Math.abs(p[1]-p[0])-(e._lBreaks||0))/1e4;for(h=0;h"+s;else{var u=I6(e),f=e._trueSide||e.side;(!u&&f==="top"||u&&f==="bottom")&&(o+="
")}t.text=o}function PMt(e,t,r,i,n){var a=e.dtick,o=t.x,s=e.tickformat,l=typeof a=="string"&&a.charAt(0);if(n==="never"&&(n=""),i&&l!=="L"&&(a="L3",l="L"),s||l==="L")t.text=z6(Math.pow(10,o),e,n,i);else if(Sc(a)||l==="D"&&(e.minorloglabels==="complete"||tl.mod(o+.01,1)<.1)){var u;e.minorloglabels==="complete"&&!(tl.mod(o+.01,1)<.1)&&(u=!0,t.fontSize*=.75);var f=Math.pow(10,o).toExponential(0),c=f.split("e"),h=+c[1],d=Math.abs(h),p=e.exponentformat;p==="power"||Bw(p)&&p!=="SI extended"&&kH(h)||Bw(p)&&p==="SI extended"&&CH(h)?(t.text=c[0],d>0&&(t.text+="x10"),t.text==="1x10"&&(t.text="10"),h!==0&&h!==1&&(t.text+=""+(h>0?"":mb)+d+""),t.fontSize*=1.25):(p==="e"||p==="E")&&d>2?t.text=c[0]+p+(h>0?"+":mb)+d:(t.text=z6(Math.pow(10,o),e,"","fakehover"),a==="D1"&&e._id.charAt(0)==="y"&&(t.dy-=t.fontSize/6))}else if(l==="D")t.text=e.minorloglabels==="none"?"":String(Math.round(Math.pow(10,tl.mod(o,1)))),t.fontSize*=.75;else throw"unrecognized dtick "+String(a);if(e.dtick==="D1"){var v=String(t.text).charAt(0);(v==="0"||v==="1")&&(e._id.charAt(0)==="y"?t.dx-=t.fontSize/4:(t.dy+=t.fontSize/2,t.dx+=(e.range[1]>e.range[0]?1:-1)*t.fontSize*(o<0?.5:.25)))}}function zMt(e,t){var r=e._categories[Math.round(t.x)];r===void 0&&(r=""),t.text=String(r)}function IMt(e,t,r){var i=Math.round(t.x),n=e._categories[i]||[],a=n[1]===void 0?"":String(n[1]),o=n[0]===void 0?"":String(n[0]);r?t.text=o+" - "+a:(t.text=a,t.text2=o)}function RMt(e,t,r,i,n){n==="never"?n="":e.showexponent==="all"&&Math.abs(t.x/e.dtick)<1e-6&&(n="hide"),t.text=z6(t.x,e,n,i)}function BMt(e,t,r,i,n){if(e.thetaunit==="radians"&&!r){var a=t.x/180;if(a===0)t.text="0";else{var o=qMt(a);if(o[1]>=100)t.text=z6(tl.deg2rad(t.x),e,n,i);else{var s=t.x<0;o[1]===1?o[0]===1?t.text="\u03C0":t.text=o[0]+"\u03C0":t.text=["",o[0],"","\u2044","",o[1],"","\u03C0"].join(""),s&&(t.text=mb+t.text)}}}else t.text=z6(t.x,e,n,i)}function qMt(e){function t(s,l){return Math.abs(s-l)<=1e-6}function r(s,l){return t(l,0)?s:r(l,s%l)}function i(s){for(var l=1;!t(Math.round(s*l)/l,s);)l*=10;return l}var n=i(e),a=e*n,o=Math.abs(r(a,n));return[Math.round(a/o),Math.round(n/o)]}var cme=["f","p","n","\u03BC","m","","k","M","G","T"],OMt=["q","r","y","z","a",...cme,"P","E","Z","Y","R","Q"],Bw=e=>["SI","SI extended","B"].includes(e);function kH(e){return e>14||e<-15}function CH(e){return e>32||e<-30}function NMt(e,t){return Bw(t)?!!(t==="SI extended"&&CH(e)||t!=="SI extended"&&kH(e)):!1}function z6(e,t,r,i){var n=e<0,a=t._tickround,o=r||t.exponentformat||"B",s=t._tickexponent,l=wa.getTickFormat(t),u=t.separatethousands;if(i){var f={exponentformat:o,minexponent:t.minexponent,dtick:t.showexponent==="none"?t.dtick:Sc(e)&&Math.abs(e)||1,range:t.showexponent==="none"?t.range.map(t.r2d):[0,e||1]};ume(f),a=(Number(f._tickround)||0)+4,s=f._tickexponent,t.hoverformat&&(l=t.hoverformat)}if(l)return t._numFormat(l)(e).replace(/-/g,mb);o==="none"&&(s=0),e=Math.abs(e);let c=Math.pow(10,-a)/2;if(e"+h+"":o==="B"&&s===9?e+="B":Bw(o)&&(e+=o==="SI extended"?OMt[s/3+10]:cme[s/3+5])}return n?mb+e:e}wa.getTickFormat=function(e){var t;function r(l){return typeof l!="string"?l:Number(l.replace("M",""))*Rw}function i(l,u){var f=["L","D"];if(typeof l==typeof u){if(typeof l=="number")return l-u;var c=f.indexOf(l.charAt(0)),h=f.indexOf(u.charAt(0));return c===h?Number(l.replace(/(L|D)/g,""))-Number(u.replace(/(L|D)/g,"")):c-h}else return typeof l=="number"?1:-1}function n(l,u,f){var c=f||function(p){return p},h=u[0],d=u[1];return(!h&&typeof h!="number"||c(h)<=c(l))&&(!d&&typeof d!="number"||c(d)>=c(l))}function a(l,u){var f=u[0]===null,c=u[1]===null,h=i(l,u[0])>=0,d=i(l,u[1])<=0;return(f||h)&&(c||d)}var o,s;if(e.tickformatstops&&e.tickformatstops.length>0)switch(e.type){case"date":case"linear":{for(t=0;t=0&&n.unshift(n.splice(f,1).shift())}});var s={false:{left:0,right:0}};return tl.syncOrAsync(n.map(function(l){return function(){if(l){var u=wa.getFromId(e,l);r||(r={}),r.axShifts=s,r.overlayingShiftedAx=o;var f=wa.drawOne(e,u,r);return u._shiftPusher&&SH(u,u._fullDepth||0,s,!0),u._r=u.range.slice(),u._rl=tl.simpleMap(u._r,u.r2l),f}}}))};wa.drawOne=function(e,t,r){r=r||{};var i=r.axShifts||{},n=r.overlayingShiftedAx||[],a,o,s;t.setScale();var l=e._fullLayout,u=t._id,f=u.charAt(0),c=wa.counterLetter(u),h=l._plots[t._mainSubplot],d=t.zerolinelayer==="above traces";if(!h)return;if(t._shiftPusher=t.autoshift||n.indexOf(t._id)!==-1||n.indexOf(t.overlaying)!==-1,t._shiftPusher&t.anchor==="free"){var p=t.linewidth/2||0;t.ticks==="inside"&&(p+=t.ticklen),SH(t,p,i,!0),SH(t,t.shift||0,i,!1)}(r.skipTitle!==!0||t._shift===void 0)&&(t._shift=QMt(t,i));var v=h[f+"axislayer"],y=t._mainLinePosition,m=y+=t._shift,w=t._mainMirrorPosition,_=t._vals=wa.calcTicks(t),b=[t.mirror,m,w].join("_");for(a=0;a<_.length;a++)_[a].axInfo=b;t._selections={},t._tickAngles&&(t._prevTickAngles=t._tickAngles),t._tickAngles={},t._depth=null;var M={};function x(re){var Ee=u+(re||"tick");return M[Ee]||(M[Ee]=HMt(t,Ee,m)),M[Ee]}if(t.visible){var A=wa.makeTransTickFn(t),T=wa.makeTransTickLabelFn(t),g,E,S=t.ticks==="inside",C=t.ticks==="outside";if(t.tickson==="boundaries"){var k=VMt(t,_);E=wa.clipEnds(t,k),g=S?E:k}else E=wa.clipEnds(t,_),g=S&&t.ticklabelmode!=="period"?E:_;var D=t._gridVals=E,L=GMt(t,_);if(!l._hasOnlyLargeSploms){var P=t._subplotsWith,I={};for(a=0;a0?Y.bottom-we:0,oe))));var se=0,Ae=0;if(t._shiftPusher&&(se=Math.max(oe,Y.height>0?re==="l"?we-Y.left:Y.right-we:0),t.title.text!==l._dfltTitle[f]&&(Ae=(t._titleStandoff||0)+(t._titleScoot||0),re==="l"&&(Ae+=ime(t))),t._fullDepth=Math.max(se,Ae)),t.automargin){ne={x:0,y:0,r:0,l:0,t:0,b:0};var be=[0,1],me=typeof t._shift=="number"?t._shift:0;if(f==="x"){if(re==="b"?ne[re]=t._depth:(ne[re]=t._depth=Math.max(Y.width>0?we-Y.top:0,oe),be.reverse()),Y.width>0){var ue=Y.right-(t._offset+t._length);ue>0&&(ne.xr=1,ne.r=ue);var pe=t._offset-Y.left;pe>0&&(ne.xl=0,ne.l=pe)}}else if(re==="l"?(t._depth=Math.max(Y.height>0?we-Y.left:0,oe),ne[re]=t._depth-me):(t._depth=Math.max(Y.height>0?Y.right-we:0,oe),ne[re]=t._depth+me,be.reverse()),Y.height>0){var ce=Y.bottom-(t._offset+t._length);ce>0&&(ne.yb=0,ne.b=ce);var Be=t._offset-Y.top;Be>0&&(ne.yt=1,ne.t=Be)}ne[c]=t.anchor==="free"?t.position:t._anchorAxis.domain[be[0]],t.title.text!==l._dfltTitle[f]&&(ne[re]+=ime(t)+(t.title.standoff||0)),t.mirror&&t.anchor!=="free"&&(ye={x:0,y:0,r:0,l:0,t:0,b:0},ye[Ee]=t.linewidth,t.mirror&&t.mirror!==!0&&(ye[Ee]+=oe),t.mirror===!0||t.mirror==="ticks"?ye[c]=t._anchorAxis.domain[be[1]]:(t.mirror==="all"||t.mirror==="allticks")&&(ye[c]=[t._counterDomainMin,t._counterDomainMax][be[1]]))}le&&(U=D6.getComponentMethod("rangeslider","autoMarginOpts")(e,t)),typeof t.automargin=="string"&&(rme(ne,t.automargin),rme(ye,t.automargin)),zw.autoMargin(e,DH(t),ne),zw.autoMargin(e,dme(t),ye),zw.autoMargin(e,pme(t),U)}),tl.syncOrAsync(Ie)}};function rme(e,t){if(e){var r=Object.keys(X1e).reduce(function(i,n){return t.indexOf(n)!==-1&&X1e[n].forEach(function(a){i[a]=1}),i},{});Object.keys(e).forEach(function(i){r[i]||(i.length===1?e[i]=0:delete e[i])})}}function VMt(e,t){var r=[],i,n=function(a,o){var s=a.xbnd[o];s!==null&&r.push(tl.extendFlat({},a,{x:s}))};if(t.length){for(i=0;ie.range[1],s=e.ticklabelposition&&e.ticklabelposition.indexOf("inside")!==-1,l=!s;if(r){var u=o?-1:1;r=r*u}if(i){var f=e.side,c=s&&(f==="top"||f==="left")||l&&(f==="bottom"||f==="right")?1:-1;i=i*c}return e._id.charAt(0)==="x"?function(h){return Iw(n+e._offset+e.l2p(TH(h))+r,a+i)}:function(h){return Iw(a+i,n+e._offset+e.l2p(TH(h))+r)}};function TH(e){return e.periodX!==void 0?e.periodX:e.x}function jMt(e){var t=e.ticklabelposition||"",r=e.tickson||"",i=function(p){return t.indexOf(p)!==-1},n=i("top"),a=i("left"),o=i("right"),s=i("bottom"),l=i("inside"),u=r!=="boundaries"&&(s||a||n||o);if(!u&&!l)return[0,0];var f=e.side,c=u?(e.tickwidth||0)/2:0,h=gL,d=e.tickfont?e.tickfont.size:12;return(s||n)&&(c+=d*yb,h+=(e.linewidth||0)/2),(a||o)&&(c+=(e.linewidth||0)/2,h+=gL),l&&f==="top"&&(h-=d*(1-yb)),(a||n)&&(c=-c),(f==="bottom"||f==="right")&&(h=-h),[u?c:0,l?h:0]}wa.makeTickPath=function(e,t,r,i){i||(i={});var n=i.minor;if(n&&!e.minor)return"";var a=i.len!==void 0?i.len:n?e.minor.ticklen:e.ticklen,o=e._id.charAt(0),s=(e.linewidth||1)/2;return o==="x"?"M0,"+(t+s*r)+"v"+a*r:"M"+(t+s*r)+",0h"+a*r};wa.makeLabelFns=function(e,t,r){var i=e.ticklabelposition||"",n=e.tickson||"",a=function(k){return i.indexOf(k)!==-1},o=a("top"),s=a("left"),l=a("right"),u=a("bottom"),f=n!=="boundaries"&&(u||s||o||l),c=a("inside"),h=i==="inside"&&e.ticks==="inside"||!c&&e.ticks==="outside"&&n!=="boundaries",d=0,p=0,v=h?e.ticklen:0;if(c?v*=-1:f&&(v=0),h&&(d+=v,r)){var y=tl.deg2rad(r);d=v*Math.cos(y)+1,p=v*Math.sin(y)}e.showticklabels&&(h||e.showline)&&(d+=.2*e.tickfont.size),d+=(e.linewidth||1)/2*(c?-1:1);var m={labelStandoff:d,labelShift:p},w,_,b,M,x=0,A=e.side,T=e._id.charAt(0),g=e.tickangle,E;if(T==="x")E=!c&&A==="bottom"||c&&A==="top",M=E?1:-1,c&&(M*=-1),w=p*M,_=t+d*M,b=E?1:-.2,Math.abs(g)===90&&(c?b+=C6:g===-90&&A==="bottom"?b=yb:g===90&&A==="top"?b=C6:b=.5,x=C6/2*(g/90)),m.xFn=function(k){return k.dx+w+x*k.fontSize},m.yFn=function(k){return k.dy+_+k.fontSize*b},m.anchorFn=function(k,D){if(f){if(s)return"end";if(l)return"start"}return!Sc(D)||D===0||D===180?"middle":D*M<0!==c?"end":"start"},m.heightFn=function(k,D,L){return D<-60||D>60?-.5*L:e.side==="top"!==c?-L:0};else if(T==="y"){if(E=!c&&A==="left"||c&&A==="right",M=E?1:-1,c&&(M*=-1),w=d,_=p*M,b=0,!c&&Math.abs(g)===90&&(g===-90&&A==="left"||g===90&&A==="right"?b=yb:b=.5),c){var S=Sc(g)?+g:0;if(S!==0){var C=tl.deg2rad(S);x=Math.abs(Math.sin(C))*yb*M,b=0}}m.xFn=function(k){return k.dx+t-(w+k.fontSize*b)*M+x*k.fontSize},m.yFn=function(k){return k.dy+_+k.fontSize*C6},m.anchorFn=function(k,D){return Sc(D)&&Math.abs(D)===90?"middle":E?"end":"start"},m.heightFn=function(k,D,L){return e.side==="right"&&(D*=-1),D<-30?-L:D<30?-.5*L:0}}return m};function _L(e){return[e.text,e.x,e.axInfo,e.font,e.fontSize,e.fontColor].join("_")}wa.drawTicks=function(e,t,r){r=r||{};var i=t._id+"tick",n=[].concat(t.minor&&t.minor.ticks?r.vals.filter(function(o){return o.minor&&!o.noTick}):[]).concat(t.ticks?r.vals.filter(function(o){return!o.minor&&!o.noTick}):[]),a=r.layer.selectAll("path."+i).data(n,_L);a.exit().remove(),a.enter().append("path").classed(i,1).classed("ticks",1).classed("crisp",r.crisp!==!1).each(function(o){return F6.stroke(Rp.select(this),o.minor?t.minor.tickcolor:t.tickcolor)}).style("stroke-width",function(o){return Kd.crispRound(e,o.minor?t.minor.tickwidth:t.tickwidth,1)+"px"}).attr("d",r.path).style("display",null),wL(t,[nme]),a.attr("transform",r.transFn)};wa.drawGrid=function(e,t,r){if(r=r||{},t.tickmode!=="sync"){var i=t._id+"grid",n=t.minor&&t.minor.showgrid,a=n?r.vals.filter(function(m){return m.minor}):[],o=t.showgrid?r.vals.filter(function(m){return!m.minor}):[],s=r.counterAxis;if(s&&wa.shouldShowZeroLine(e,t,s))for(var l=t.tickmode==="array",u=0;u=0;p--){var v=p?h:d;if(v){var y=v.selectAll("path."+i).data(p?o:a,_L);y.exit().remove(),y.enter().append("path").classed(i,1).classed("crisp",r.crisp!==!1),y.attr("transform",r.transFn).attr("d",r.path).each(function(m){return F6.stroke(Rp.select(this),m.minor?t.minor.gridcolor:t.gridcolor||"#ddd")}).style("stroke-dasharray",function(m){return Kd.dashStyle(m.minor?t.minor.griddash:t.griddash,m.minor?t.minor.gridwidth:t.gridwidth)}).style("stroke-width",function(m){return(m.minor?c:t._gw)+"px"}).style("display",null),typeof r.path=="function"&&y.attr("d",r.path)}}wL(t,[wH,AH])}};wa.drawZeroLine=function(e,t,r){r=r||r;var i=t._id+"zl",n=wa.shouldShowZeroLine(e,t,r.counterAxis),a=r.layer.selectAll("path."+i).data(n?[{x:0,id:t._id}]:[]);a.exit().remove(),a.enter().append("path").classed(i,1).classed("zl",1).classed("crisp",r.crisp!==!1).each(function(){r.layer.selectAll("path").sort(function(o,s){return bMt(o.id,s.id)})}),a.attr("transform",r.transFn).attr("d",r.path).call(F6.stroke,t.zerolinecolor||F6.defaultLine).style("stroke-width",Kd.crispRound(e,t.zerolinewidth,t._gw||1)+"px").style("display",null),wL(t,[_H])};wa.drawLabels=function(e,t,r){r=r||{};var i=e._fullLayout,n=t._id,a=t.zerolinelayer==="above traces",o=r.cls||n+"tick",s=r.vals.filter(function(z){return z.text}),l=r.labelFns,u=r.secondary?0:t.tickangle,f=(t._prevTickAngles||{})[o],c=r.layer.selectAll("g."+o).data(t.showticklabels?s:[],_L),h=[];c.enter().append("g").classed(o,1).append("text").attr("text-anchor","middle").each(function(z){var B=Rp.select(this),O=e._promises.length;B.call(vb.positionText,l.xFn(z),l.yFn(z)).call(Kd.font,{family:z.font,size:z.fontSize,color:z.fontColor,weight:z.fontWeight,style:z.fontStyle,variant:z.fontVariant,textcase:z.fontTextcase,lineposition:z.fontLineposition,shadow:z.fontShadow}).text(z.text).call(vb.convertToTspans,e),e._promises[O]?h.push(e._promises.pop().then(function(){d(B,u)})):d(B,u)}),wL(t,[Y1e]),c.exit().remove(),r.repositionOnUpdate&&c.each(function(z){Rp.select(this).select("text").call(vb.positionText,l.xFn(z),l.yFn(z))});function d(z,B){z.each(function(O){var W=Rp.select(this),X=W.select(".text-math-group"),Z=l.anchorFn(O,B),j=r.transFn.call(W.node(),O)+(Sc(B)&&+B!=0?" rotate("+B+","+l.xFn(O)+","+(l.yFn(O)-O.fontSize/2)+")":""),q=vb.lineCount(W),Q=P6*O.fontSize,N=l.heightFn(O,Sc(B)?+B:0,(q-1)*Q);if(N&&(j+=Iw(0,N)),X.empty()){var V=W.select("text");V.attr({transform:j,"text-anchor":Z}),V.style("display",null),t._adjustTickLabelsOverflow&&t._adjustTickLabelsOverflow()}else{var J=Kd.bBox(X.node()).width,H=J*{end:-.5,start:.5}[Z];X.attr("transform",j+Iw(H,0))}})}t._adjustTickLabelsOverflow=function(){var z=t.ticklabeloverflow;if(!(!z||z==="allow")){var B=z.indexOf("hide")!==-1,O=t._id.charAt(0)==="x",W=0,X=O?e._fullLayout.width:e._fullLayout.height;if(z.indexOf("domain")!==-1){var Z=tl.simpleMap(t.range,t.r2l);W=t.l2p(Z[0])+t._offset,X=t.l2p(Z[1])+t._offset}var j=Math.min(W,X),q=Math.max(W,X),Q=t.side,N=1/0,V=-1/0;c.each(function(te){var ie=Rp.select(this),de=ie.select(".text-math-group");if(de.empty()){var ge=Kd.bBox(ie.node()),Ie=0;O?(ge.right>q||ge.leftq||ge.top+(t.tickangle?0:te.fontSize/4)t["_visibleLabelMin_"+Z._id]?ie.style("display","none"):q.K==="tick"&&!j&&ie.node().style.display!=="none"&&ie.style("display",null)})})})})},d(c,f+1?f:u);function p(){return h.length&&Promise.all(h)}var v=null;function y(){if(d(c,u),s.length&&t.autotickangles&&(t.type!=="log"||String(t.dtick).charAt(0)!=="D")){v=t.autotickangles[0];var z=0,B=[],O,W=1;c.each(function(ne){z=Math.max(z,ne.fontSize);var ye=t.l2p(ne.x),U=MH(this),se=Kd.bBox(U.node());W=Math.max(W,vb.lineCount(U)),B.push({top:0,bottom:10,height:10,left:ye-se.width/2,right:ye+se.width/2+2,width:se.width+2})});var X=(t.tickson==="boundaries"||t.showdividers)&&!r.secondary,Z=s.length,j=Math.abs((s[Z-1].x-s[0].x)*t._m)/(Z-1),q=X?j/2:j,Q=X?t.ticklen:z*1.25*W,N=Math.sqrt(Math.pow(q,2)+Math.pow(Q,2)),V=q/N,J=t.autotickangles.map(function(ne){return ne*Math.PI/180}),H=J.find(function(ne){return Math.abs(Math.cos(ne))<=V});H===void 0&&(H=J.reduce(function(ne,ye){return Math.abs(Math.cos(ne))P*L&&(C=L,g[T]=E[T]=k[T])}var I=Math.abs(C-S);I-M>0?(I-=M,M*=1+M/I):M=0,t._id.charAt(0)!=="y"&&(M=-M),g[A]=_.p2r(_.r2p(E[A])+x*M),_.autorange==="min"||_.autorange==="max reversed"?(g[0]=null,_._rangeInitial0=void 0,_._rangeInitial1=void 0):(_.autorange==="max"||_.autorange==="min reversed")&&(g[1]=null,_._rangeInitial0=void 0,_._rangeInitial1=void 0),i._insideTickLabelsUpdaterange[_._name+".range"]=g}var F=tl.syncOrAsync(m);return F&&F.then&&e._promises.push(F),F};function WMt(e,t,r){var i=t._id+"divider",n=r.vals,a=r.layer.selectAll("path."+i).data(n,_L);a.exit().remove(),a.enter().insert("path",":first-child").classed(i,1).classed("crisp",1).call(F6.stroke,t.dividercolor).style("stroke-width",Kd.crispRound(e,t.dividerwidth,1)+"px"),a.attr("transform",r.transFn).attr("d",r.path)}wa.getPxPosition=function(e,t){var r=e._fullLayout._size,i=t._id.charAt(0),n=t.side,a;if(t.anchor!=="free"?a=t._anchorAxis:i==="x"?a={_offset:r.t+(1-(t.position||0))*r.h,_length:0}:i==="y"&&(a={_offset:r.l+(t.position||0)*r.w+t._shift,_length:0}),n==="top"||n==="left")return a._offset;if(n==="bottom"||n==="right")return a._offset+a._length};function ime(e){var t=e.title.font.size,r=(e.title.text.match(vb.BR_TAG_ALL)||[]).length;return e.title.hasOwnProperty("standoff")?t*(yb+r*P6):r?t*(r+1)*P6:t}function $Mt(e,t){var r=e._fullLayout,i=t._id,n=i.charAt(0),a=t.title.font.size,o,s=(t.title.text.match(vb.BR_TAG_ALL)||[]).length;if(t.title.hasOwnProperty("standoff"))t.side==="bottom"||t.side==="right"?o=t._depth+t.title.standoff+a*yb:(t.side==="top"||t.side==="left")&&(o=t._depth+t.title.standoff+a*(C6+s*P6));else{var l=I6(t);if(t.type==="multicategory")o=t._depth;else{var u=1.5*a;l&&(u=.5*a,t.ticks==="outside"&&(u+=t.ticklen)),o=10+u+(t.linewidth?t.linewidth-1:0)}l||(n==="x"?o+=t.side==="top"?a*(t.showticklabels?1:0):a*(t.showticklabels?1.5:.5):o+=t.side==="right"?a*(t.showticklabels?1:.5):a*(t.showticklabels?.5:0))}var f=wa.getPxPosition(e,t),c,h,d;n==="x"?(h=t._offset+t._length/2,d=t.side==="top"?f-o:f+o):(d=t._offset+t._length/2,h=t.side==="right"?f+o:f-o,c={rotate:"-90",offset:0});var p;if(t.type!=="multicategory"){var v=t._selections[t._id+"tick"];if(p={selection:v,side:t.side},v&&v.node()&&v.node().parentNode){var y=Kd.getTranslate(v.node().parentNode);p.offsetLeft=y.x,p.offsetTop=y.y}t.title.hasOwnProperty("standoff")&&(p.pad=0)}return t._titleStandoff=o,cMt.draw(e,i+"title",{propContainer:t,propName:t._name+".title.text",placeholder:r._dfltTitle[n],avoid:p,transform:c,attributes:{x:h,y:d,"text-anchor":"middle"}})}wa.shouldShowZeroLine=function(e,t,r){var i=tl.simpleMap(t.range,t.r2l);return i[0]*i[1]<=0&&t.zeroline&&(t.type==="linear"||t.type==="-")&&!(t.rangebreaks&&t.maskBreaks(0)===xL)&&(hme(t,0)||!YMt(e,t,r,i)||XMt(e,t))};wa.clipEnds=function(e,t){return t.filter(function(r){return hme(e,r.x)})};function hme(e,t){var r=e.l2p(t);return r>1&&r1)for(n=1;n=n.min&&e=yMt:/%L/.test(t)?e>=mMt:/%[SX]/.test(t)?e>=yL:/%M/.test(t)?e>=L6:/%[HI]/.test(t)?e>=j1:/%p/.test(t)?e>=Vg:/%[Aadejuwx]/.test(t)?e>=O0:/%[UVW]/.test(t)?e>=Jd:/%[Bbm]/.test(t)?e>=mL:/%[q]/.test(t)?e>=vL:/%[Yy]/.test(t)?e>=pL:!0}});var LH=K((PNr,mme)=>{"use strict";mme.exports=function(t,r,i){var n,a;if(i){var o=r==="reversed"||r==="min reversed"||r==="max reversed";n=i[o?1:0],a=i[o?0:1]}var s=t("autorangeoptions.minallowed",a===null?n:void 0),l=t("autorangeoptions.maxallowed",n===null?a:void 0);s===void 0&&t("autorangeoptions.clipmin"),l===void 0&&t("autorangeoptions.clipmax"),t("autorangeoptions.include")}});var PH=K((zNr,yme)=>{"use strict";var tSt=LH();yme.exports=function(t,r,i,n){var a=r._template||{},o=r.type||a.type||"-";i("minallowed"),i("maxallowed");var s=i("range");if(!s){var l;!n.noInsiderange&&o!=="log"&&(l=i("insiderange"),l&&(l[0]===null||l[1]===null)&&(r.insiderange=!1,l=void 0),l&&(s=i("range",l)))}var u=r.getAutorangeDflt(s,n),f=i("autorange",u),c;s&&(s[0]===null&&s[1]===null||(s[0]===null||s[1]===null)&&(f==="reversed"||f===!0)||s[0]!==null&&(f==="min"||f==="max reversed")||s[1]!==null&&(f==="max"||f==="min reversed"))&&(s=void 0,delete r.range,r.autorange=!0,c=!0),c||(u=r.getAutorangeDflt(s,n),f=i("autorange",u)),f&&(tSt(i,f,s),(o==="linear"||o==="-")&&i("rangemode")),r.cleanRange()}});var xme=K((INr,gme)=>{var rSt={left:0,top:0};gme.exports=iSt;function iSt(e,t,r){t=t||e.currentTarget||e.srcElement,Array.isArray(r)||(r=[0,0]);var i=e.clientX||0,n=e.clientY||0,a=nSt(t);return r[0]=i-a.left,r[1]=n-a.top,r}function nSt(e){return e===window||e===document||e===document.body?rSt:e.getBoundingClientRect()}});var AL=K((RNr,bme)=>{"use strict";var aSt=dG();function oSt(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch(r){e=!1}return e}bme.exports=aSt&&oSt()});var wme=K((BNr,_me)=>{"use strict";_me.exports=function(t,r,i,n,a){var o=(t-i)/(n-i),s=o+r/(n-i),l=(o+s)/2;return a==="left"||a==="bottom"?o:a==="center"||a==="middle"?l:a==="right"||a==="top"?s:o<2/3-l?o:s>4/3-l?s:l}});var Mme=K((qNr,Tme)=>{"use strict";var Ame=Mt(),sSt=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];Tme.exports=function(t,r,i,n){return i==="left"?t=0:i==="center"?t=1:i==="right"?t=2:t=Ame.constrain(Math.floor(t*3),0,2),n==="bottom"?r=0:n==="middle"?r=1:n==="top"?r=2:r=Ame.constrain(Math.floor(r*3),0,2),sSt[r][t]}});var Eme=K((ONr,Sme)=>{"use strict";var lSt=bw(),uSt=EF(),fSt=c6().getGraphDiv,cSt=(WT(),ar(jT)),zH=Sme.exports={};zH.wrapped=function(e,t,r){var a;e=fSt(e),e._fullLayout&&uSt.clear(e._fullLayout._uid+cSt.HOVERID);let i=e._hoverdata;zH.raw(e,t,r)&&e._hoverAnywhereActive&&(e._hoverAnywhereActive=!1,(a=e._fullLayout)!=null&&a.hoveranywhere&&(t!=null&&t.target)&&!i&&e.emit("plotly_unhover",{event:t,points:[]}))};zH.raw=function(t,r){var i=t._fullLayout,n=t._hoverdata;return r||(r={}),r.target&&!t._dragged&&lSt.triggerHandler(t,"plotly_beforehover",r)===!1?!1:(i._hoverlayer.selectAll("g").remove(),i._hoverlayer.selectAll("line").remove(),i._hoverlayer.selectAll("circle").remove(),t._hoverdata=void 0,r.target&&n&&t.emit("plotly_unhover",{event:r,points:n}),!0)}});var N0=K((NNr,Fme)=>{"use strict";var hSt=xme(),IH=vG(),dSt=AL(),pSt=Mt().removeElement,vSt=(Uc(),ar(Vc)),gb=Fme.exports={};gb.align=wme();gb.getCursor=Mme();var Cme=Eme();gb.unhover=Cme.wrapped;gb.unhoverRaw=Cme.raw;gb.init=function(t){var r=t.gd,i=1,n=r._context.doubleClickDelay,a=t.element,o,s,l,u,f,c,h,d;r._mouseDownTime||(r._mouseDownTime=0),a.style.pointerEvents="all",a.onmousedown=y,dSt?(a._ontouchstart&&a.removeEventListener("touchstart",a._ontouchstart),a._ontouchstart=y,a.addEventListener("touchstart",y,{passive:!1})):a.ontouchstart=y;function p(_,b,M){return Math.abs(_)n&&(i=Math.max(i-1,1)),r._dragged)t.doneFn&&t.doneFn();else{var b;c.target===h?b=c:(b={target:h,srcElement:h,toElement:h},Object.keys(c).concat(Object.keys(c.__proto__)).forEach(M=>{var x=c[M];!b[M]&&typeof x!="function"&&(b[M]=x)})),t.clickFn&&t.clickFn(i,b),d||h.dispatchEvent(new MouseEvent("click",_))}r._dragging=!1,r._dragged=!1}};function Dme(){var e=document.createElement("div");e.className="dragcover";var t=e.style;return t.position="fixed",t.left=0,t.right=0,t.top=0,t.bottom=0,t.zIndex=999999999,t.background="none",document.body.appendChild(e),e}gb.coverSlip=Dme;function kme(e){return hSt(e.changedTouches?e.changedTouches[0]:e,document.body)}});var jv=K((VNr,Lme)=>{"use strict";Lme.exports=function(t,r){(t.attr("class")||"").split(" ").forEach(function(i){i.indexOf("cursor-")===0&&t.classed(i,!1)}),r&&t.classed("cursor-"+r,!0)}});var Ime=K((UNr,zme)=>{"use strict";var RH=jv(),R6="data-savedcursor",Pme="!!";zme.exports=function(t,r){var i=t.attr(R6);if(r){if(!i){for(var n=(t.attr("class")||"").split(" "),a=0;a{"use strict";var BH=lf(),mSt=Nc();Rme.exports={_isSubplotObj:!0,visible:{valType:"boolean",dflt:!0,editType:"legend"},bgcolor:{valType:"color",editType:"legend"},bordercolor:{valType:"color",dflt:mSt.defaultLine,editType:"legend"},maxheight:{valType:"number",min:0,editType:"legend"},borderwidth:{valType:"number",min:0,dflt:0,editType:"legend"},font:BH({editType:"legend"}),grouptitlefont:BH({editType:"legend"}),orientation:{valType:"enumerated",values:["v","h"],dflt:"v",editType:"legend"},traceorder:{valType:"flaglist",flags:["reversed","grouped"],extras:["normal"],editType:"legend"},tracegroupgap:{valType:"number",min:0,dflt:10,editType:"legend"},entrywidth:{valType:"number",min:0,editType:"legend"},entrywidthmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels",editType:"legend"},indentation:{valType:"number",min:-15,dflt:0,editType:"legend"},itemsizing:{valType:"enumerated",values:["trace","constant"],dflt:"trace",editType:"legend"},itemwidth:{valType:"number",min:30,dflt:30,editType:"legend"},itemclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggle",editType:"legend"},itemdoubleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggleothers",editType:"legend"},groupclick:{valType:"enumerated",values:["toggleitem","togglegroup"],dflt:"togglegroup",editType:"legend"},groupdoubleclick:{valType:"enumerated",values:["toggleitem","togglegroup"],editType:"legend"},titleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],editType:"legend"},titledoubleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],editType:"legend"},x:{valType:"number",editType:"legend"},xref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"legend"},y:{valType:"number",editType:"legend"},yref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],editType:"legend"},uirevision:{valType:"any",editType:"none"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"legend"},title:{text:{valType:"string",dflt:"",editType:"legend"},font:BH({editType:"legend"}),side:{valType:"enumerated",values:["top","left","top left","top center","top right"],editType:"legend"},editType:"legend"},editType:"legend"}});var q6=K(B6=>{"use strict";B6.isGrouped=function(t){return(t.traceorder||"").indexOf("grouped")!==-1};B6.isVertical=function(t){return t.orientation!=="h"};B6.isReversed=function(t){return(t.traceorder||"").indexOf("reversed")!==-1};B6.getId=function(t){return t._id||"legend"}});var NH=K((jNr,Bme)=>{"use strict";var TL=Ho(),Qd=Mt(),ySt=fu(),gSt=Au(),xSt=qH(),bSt=hw(),OH=q6();function _St(e,t,r,i,n){var a=t[e]||{},o=ySt.newContainer(r,e);function s(B,O){return Qd.coerce(a,o,xSt,B,O)}var l=Qd.coerceFont(s,"font",r.font);s("bgcolor",r.paper_bgcolor),s("bordercolor");var u=s("visible");if(!u)return;var f,c=function(B,O){var W=f._input,X=f;return Qd.coerce(W,X,gSt,B,O)},h=r.font||{},d=Qd.coerceFont(s,"grouptitlefont",h,{overrideDflt:{size:Math.round(h.size*1.1)}}),p=0,v=!1,y="normal",m=(r.shapes||[]).filter(function(B){return B.showlegend});function w(B){return TL.traceIs(B,"pie-like")&&B._length!=null&&(Array.isArray(B.legend)||Array.isArray(B.showlegend))}i.filter(w).forEach(function(B){B.visible&&p++;for(var O=0;OB.legend.length)for(var X=B.legend.length;X(e==="legend"?1:0));if(x===!1&&(r[e]=void 0),x===!1&&!a.uirevision||(s("uirevision",r.uirevision),x===!1))return;s("borderwidth");var A=s("orientation"),T=s("yref"),g=s("xref"),E=A==="h",S=T==="paper",C=g==="paper",k,D,L,P="left";E?(k=0,TL.getComponentMethod("rangeslider","isVisible")(t.xaxis)?S?(D=1.1,L="bottom"):(D=1,L="top"):S?(D=-.1,L="top"):(D=0,L="bottom")):(D=1,L="auto",C?k=1.02:(k=1,P="right")),Qd.coerce(a,o,{x:{valType:"number",editType:"legend",min:C?-2:0,max:C?3:1,dflt:k}},"x"),Qd.coerce(a,o,{y:{valType:"number",editType:"legend",min:S?-2:0,max:S?3:1,dflt:D}},"y"),s("traceorder",y),OH.isGrouped(r[e])&&s("tracegroupgap"),s("entrywidth"),s("entrywidthmode"),s("indentation"),s("itemsizing"),s("itemwidth"),s("itemclick"),s("itemdoubleclick");let I=s("groupclick");s("groupdoubleclick",I),s("xanchor",P),s("yanchor",L),s("maxheight"),s("valign"),Qd.noneOrAll(a,o,["x","y"]);var F=s("title.text");if(F){s("title.side",E?"left":"top");var z=Qd.extendFlat({},l,{size:Qd.bigFont(l.size)});Qd.coerceFont(s,"title.font",z);let B=n>1;s("titleclick",B?"toggle":!1),s("titledoubleclick",B?"toggleothers":!1)}}Bme.exports=function(t,r,i){var n,a=i.slice(),o=r.shapes;if(o)for(n=0;n{"use strict";var Ug=Ho(),VH=Mt(),wSt=VH.pushUnique,ASt=q6(),qme=!0;UH.handleItemClick=function(t,r,i,n,a){var o=r._fullLayout;if(r._dragged||r._editing)return;var s=t.data()[0][0];if(s.groupTitle&&s.noClick)return;let l=a===2?i.groupdoubleclick:i.groupclick;n==="toggle"&&i.itemdoubleclick==="toggleothers"&&qme&&r.data&&r._context.showTips&&(VH.notifier(VH._(r,"Double-click on legend to isolate one trace"),"long",r),qme=!1);var u=l==="togglegroup",f=o.hiddenlabels?o.hiddenlabels.slice():[],c=r._fullData;let h=(o.shapes||[]).filter(Ce=>Ce.showlegend||Ce.legendgroup);var d=c.concat(h),p=s.trace;p._isShape&&(p=o.shapes[p.index]);var v=p.legendgroup,y,m,w,_,b,M,x={},A=[],T=[],g=[];function E(Ce,le){var re=A.indexOf(Ce),Ee=x.visible;return Ee||(Ee=x.visible=[]),A.indexOf(Ce)===-1&&(A.push(Ce),re=A.length-1),Ee[re]=le,re}var S=(o.shapes||[]).map(function(Ce){return Ce._input}),C=!1;function k(Ce,le){S[Ce].visible=le,C=!0}function D(Ce,le){if(!(s.groupTitle&&!u)){var re=Ce._isShape,Ee=Ce.index;Ee===void 0&&(Ee=Ce._index);var we=Ce.visible===!1?!1:le;re?k(Ee,we):E(Ee,we)}}var L=p.legend;if(!p._isShape&&Ug.traceIs(p,"pie-like")){var P=s.label,I=f.indexOf(P);if(n==="toggle")I===-1?f.push(P):f.splice(I,1);else if(n==="toggleothers"){var F=I!==-1,z=[];for(y=0;ym.showlegend||m.legendgroup),l=a.concat(s);function u(m){return(m.legend||"legend")===o}var f,c;if(i==="toggle")f=!l.some(function(w){return u(w)&&w.visible===!0}),c=!1;else{let m=l.some(function(w){return!u(w)&&w.visible===!0&&w.showlegend!==!1});f=!0,c=!m}let h={visible:[]},d=[],p=(n.shapes||[]).map(function(m){return m._input});for(var v=!1,y=0;yDSt,scrollBarColor:()=>SSt,scrollBarEnterAttrs:()=>kSt,scrollBarMargin:()=>ESt,scrollBarMinHeight:()=>MSt,scrollBarWidth:()=>TSt,titlePad:()=>CSt});var TSt,MSt,SSt,ESt,kSt,CSt,DSt,jH=ps(()=>{"use strict";TSt=6,MSt=20,SSt="#808BA4",ESt=4,kSt={rx:20,ry:3,width:0,height:0},CSt=2,DSt=5});var Vme=K(($Nr,Nme)=>{"use strict";var{isArrayOrTypedArray:WH}=$h(),Ome=Ho(),$H=q6();Nme.exports=function(t,r,i){var n=r._inHover,a=$H.isGrouped(r),o=$H.isReversed(r),s={},l=[],u=!1,f={},c=0,h=0,d,p;function v(B,O,W){if(r.visible!==!1&&!(i&&B!==r._id))if(O===""||!$H.isGrouped(r)){var X="~~i"+c;l.push(X),s[X]=[W],c++}else l.indexOf(O)===-1?(l.push(O),u=!0,s[O]=[W]):s[O].push(W)}for(d=0;dk&&(S=k)}g[d][0]._groupMinRank=S,g[d][0]._preGroupSort=d}var D=function(B,O){return B[0]._groupMinRank-O[0]._groupMinRank||B[0]._preGroupSort-O[0]._preGroupSort},L=function(B,O){var W=WH(B.trace.legendrank)?B.trace.legendrank[B.i]:B.trace.legendrank,X=WH(O.trace.legendrank)?O.trace.legendrank[O.i]:O.trace.legendrank;return W-X||B._preSort-O._preSort};for(g.forEach(function(B,O){B[0]._preGroupSort=O}),g.sort(D),d=0;d{"use strict";var ML=Mt();function Ume(e){return e.indexOf("e")!==-1?e.replace(/[.]?0+e/,"e"):e.indexOf(".")!==-1?e.replace(/[.]?0+$/,""):e}xb.formatPiePercent=function(t,r){var i=Ume((t*100).toPrecision(3));return ML.numSeparate(i,r)+"%"};xb.formatPieValue=function(t,r){var i=Ume(t.toPrecision(10));return ML.numSeparate(i,r)};xb.getFirstFilled=function(t,r){if(ML.isArrayOrTypedArray(t))for(var i=0;i{"use strict";var FSt=Bs(),LSt=ko();Gme.exports=function(t,r,i,n){var a=i.marker.pattern;a&&a.shape?FSt.pointStyle(t,i,n,r):LSt.fill(t,r.color)}});var qw=K((ZNr,$me)=>{"use strict";var jme=ko(),Wme=Gg().castOption,PSt=Hme();$me.exports=function(t,r,i,n){var a=i.marker.line,o=Wme(a.color,r.pts)||jme.defaultLine,s=Wme(a.width,r.pts)||0;t.call(PSt,r,i,n).style("stroke-width",s).call(jme.stroke,o)}});var KH=K((KNr,Qme)=>{"use strict";var V0=No(),YH=Ho(),T0=Mt(),Yme=T0.strTranslate,ep=Bs(),Bp=ko(),XH=Zh().extractOpts,SL=ff(),zSt=qw(),ISt=Gg().castOption,RSt=(jH(),ar(HH)),Xme=12,Zme=5,bb=2,BSt=10,Ow=5;Qme.exports=function(t,r,i){var n=r._fullLayout;i||(i=n.legend);var a=i.itemsizing==="constant",o=i.itemwidth,s=(o+RSt.itemGap*2)/2,l=Yme(s,0),u=function(A,T,g,E){var S;if(A+1)S=A;else if(T&&T.width>0)S=T.width;else return 0;return a?E:Math.min(S,g)};t.each(function(A){var T=V0.select(this),g=T0.ensureSingle(T,"g","layers");g.style("opacity",A[0].trace.opacity);var E=i.indentation,S=i.valign,C=A[0].lineHeight,k=A[0].height;if(S==="middle"&&E===0||!C||!k)g.attr("transform",null);else{var D={top:1,bottom:-1}[S],L=D*(.5*(C-k+3))||0,P=i.indentation;g.attr("transform",Yme(P,L))}var I=g.selectAll("g.legendfill").data([A]);I.enter().append("g").classed("legendfill",!0);var F=g.selectAll("g.legendlines").data([A]);F.enter().append("g").classed("legendlines",!0);var z=g.selectAll("g.legendsymbols").data([A]);z.enter().append("g").classed("legendsymbols",!0),z.selectAll("g.legendpoints").data([A]).enter().append("g").classed("legendpoints",!0)}).each(x).each(h).each(p).each(d).each(y).each(b).each(_).each(f).each(c).each(m).each(w);function f(A){var T=Kme(A),g=T.showFill,E=T.showLine,S=T.showGradientLine,C=T.showGradientFill,k=T.anyFill,D=T.anyLine,L=A[0],P=L.trace,I,F,z=XH(P),B=z.colorscale,O=z.reversescale,W=function(V){if(V.size())if(g)ep.fillGroupStyle(V,r,!0);else{var J="legendfill-"+P.uid;ep.gradient(V,r,J,ZH(O),B,"fill")}},X=function(V){if(V.size()){var J="legendline-"+P.uid;ep.lineGroupStyle(V),ep.gradient(V,r,J,ZH(O),B,"stroke")}},Z=SL.hasMarkers(P)||!k?"M5,0":D?"M5,-2":"M5,-3",j=V0.select(this),q=j.select(".legendfill").selectAll("path").data(g||C?[A]:[]);if(q.enter().append("path").classed("js-fill",!0),q.exit().remove(),q.attr("d",Z+"h"+o+"v6h-"+o+"z").call(W),E||S){var Q=u(void 0,P.line,BSt,Zme);F=T0.minExtend(P,{line:{width:Q}}),I=[T0.minExtend(L,{trace:F})]}var N=j.select(".legendlines").selectAll("path").data(E||S?[I]:[]);N.enter().append("path").classed("js-line",!0),N.exit().remove(),N.attr("d",Z+(S?"l"+o+",0.0001":"h"+o)).call(E?ep.lineGroupStyle:X)}function c(A){var T=Kme(A),g=T.anyFill,E=T.anyLine,S=T.showLine,C=T.showMarker,k=A[0],D=k.trace,L=!C&&!E&&!g&&SL.hasText(D),P,I;function F(Q,N,V,J){var H=T0.nestedProperty(D,Q).get(),$=T0.isArrayOrTypedArray(H)&&N?N(H):H;if(a&&$&&J!==void 0&&($=J),V){if($V[1])return V[1]}return $}function z(Q){return k._distinct&&k.index&&Q[k.index]?Q[k.index]:Q[0]}if(C||L||S){var B={},O={};if(C){B.mc=F("marker.color",z);var W=D.type==="scattermap";B.mx=W?"circle":F("marker.symbol",z),B.mo=F("marker.opacity",T0.mean,[.2,1]),B.mlc=F("marker.line.color",z),B.mlw=F("marker.line.width",T0.mean,[0,5],bb),B.mld=F("marker.line.dash",z),O.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var X=F("marker.size",T0.mean,[2,16],Xme);B.ms=X,O.marker.size=X}S&&(O.line={width:F("line.width",z,[0,10],Zme)}),L&&(B.tx="Aa",B.tp=F("textposition",z),B.ts=10,B.tc=F("textfont.color",z),B.tf=F("textfont.family",z),B.tw=F("textfont.weight",z),B.ty=F("textfont.style",z),B.tv=F("textfont.variant",z),B.tC=F("textfont.textcase",z),B.tE=F("textfont.lineposition",z),B.tS=F("textfont.shadow",z)),P=[T0.minExtend(k,B)],I=T0.minExtend(D,O),I.selectedpoints=null,I.texttemplate=null}var Z=V0.select(this).select("g.legendpoints"),j=Z.selectAll("path.scatterpts").data(C?P:[]);j.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",l),j.exit().remove(),j.call(ep.pointStyle,I,r),C&&(P[0].mrc=3);var q=Z.selectAll("g.pointtext").data(L?P:[]);q.enter().append("g").classed("pointtext",!0).append("text").attr("transform",l),q.exit().remove(),q.selectAll("text").call(ep.textPointStyle,I,r)}function h(A){var T=A[0].trace,g=T.type==="waterfall";if(A[0]._distinct&&g){var E=A[0].trace[A[0].dir].marker;return A[0].mc=E.color,A[0].mlw=E.line.width,A[0].mlc=E.line.color,v(A,this,"waterfall")}var S=[];T.visible&&g&&(S=A[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 C=V0.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data(S);C.enter().append("path").classed("legendwaterfall",!0).attr("transform",l).style("stroke-miterlimit",1),C.exit().remove(),C.each(function(k){var D=V0.select(this),L=T[k[0]].marker,P=u(void 0,L.line,Ow,bb);D.attr("d",k[1]).style("stroke-width",P+"px").call(Bp.fill,L.color),P&&D.call(Bp.stroke,L.line.color)})}function d(A){v(A,this)}function p(A){v(A,this,"funnel")}function v(A,T,g){var E=A[0].trace,S=E.marker||{},C=S.line||{},k=S.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",D=g?E.visible&&E.type===g:YH.traceIs(E,"bar"),L=V0.select(T).select("g.legendpoints").selectAll("path.legend"+g).data(D?[A]:[]);L.enter().append("path").classed("legend"+g,!0).attr("d",k).attr("transform",l),L.exit().remove(),L.each(function(P){var I=V0.select(this),F=P[0],z=u(F.mlw,S.line,Ow,bb);I.style("stroke-width",z+"px");var B=F.mcc;if(!i._inHover&&"mc"in F){var O=XH(S),W=O.mid;W===void 0&&(W=(O.max+O.min)/2),B=ep.tryColorscale(S,"")(W)}var X=B||F.mc||S.color,Z=S.pattern,j=ep.getPatternAttr,q=Z&&(j(Z.shape,0,"")||j(Z.path,0,""));if(q){var Q=j(Z.bgcolor,0,null),N=j(Z.fgcolor,0,null),V=Z.fgopacity,J=Jme(Z.size,8,10),H=Jme(Z.solidity,.5,1),$="legend-"+E.uid;I.call(ep.pattern,"legend",r,$,q,J,H,B,Z.fillmode,Q,N,V)}else I.call(Bp.fill,X);z&&Bp.stroke(I,F.mlc||C.color)})}function y(A){var T=A[0].trace,g=V0.select(this).select("g.legendpoints").selectAll("path.legendbox").data(T.visible&&YH.traceIs(T,"box-violin")?[A]:[]);g.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform",l),g.exit().remove(),g.each(function(){var E=V0.select(this);if((T.boxpoints==="all"||T.points==="all")&&Bp.opacity(T.fillcolor)===0&&Bp.opacity((T.line||{}).color)===0){var S=T0.minExtend(T,{marker:{size:a?Xme:T0.constrain(T.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});g.call(ep.pointStyle,S,r)}else{var C=u(void 0,T.line,Ow,bb);E.style("stroke-width",C+"px").call(Bp.fill,T.fillcolor),C&&Bp.stroke(E,T.line.color)}})}function m(A){var T=A[0].trace,g=V0.select(this).select("g.legendpoints").selectAll("path.legendcandle").data(T.visible&&T.type==="candlestick"?[A,A]:[]);g.enter().append("path").classed("legendcandle",!0).attr("d",function(E,S){return S?"M-15,0H-8M-8,6V-6H8Z":"M15,0H8M8,-6V6H-8Z"}).attr("transform",l).style("stroke-miterlimit",1),g.exit().remove(),g.each(function(E,S){var C=V0.select(this),k=T[S?"increasing":"decreasing"],D=u(void 0,k.line,Ow,bb);C.style("stroke-width",D+"px").call(Bp.fill,k.fillcolor),D&&Bp.stroke(C,k.line.color)})}function w(A){var T=A[0].trace,g=V0.select(this).select("g.legendpoints").selectAll("path.legendohlc").data(T.visible&&T.type==="ohlc"?[A,A]:[]);g.enter().append("path").classed("legendohlc",!0).attr("d",function(E,S){return S?"M-15,0H0M-8,-6V0":"M15,0H0M8,6V0"}).attr("transform",l).style("stroke-miterlimit",1),g.exit().remove(),g.each(function(E,S){var C=V0.select(this),k=T[S?"increasing":"decreasing"],D=u(void 0,k.line,Ow,bb);C.style("fill","none").call(ep.dashLine,k.line.dash,D),D&&Bp.stroke(C,k.line.color)})}function _(A){M(A,this,"pie")}function b(A){M(A,this,"funnelarea")}function M(A,T,g){var E=A[0],S=E.trace,C=g?S.visible&&S.type===g:YH.traceIs(S,g),k=V0.select(T).select("g.legendpoints").selectAll("path.legend"+g).data(C?[A]:[]);if(k.enter().append("path").classed("legend"+g,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",l),k.exit().remove(),k.size()){var D=S.marker||{},L=u(ISt(D.line.width,E.pts),D.line,Ow,bb),P="pieLike",I=T0.minExtend(S,{marker:{line:{width:L}}},P),F=T0.minExtend(E,{trace:I},P);zSt(k,F,I,r)}}function x(A){var T=A[0].trace,g,E=[];if(T.visible)switch(T.type){case"histogram2d":case"heatmap":E=[["M-15,-2V4H15V-2Z"]],g=!0;break;case"choropleth":case"choroplethmap":E=[["M-6,-6V6H6V-6Z"]],g=!0;break;case"densitymap":E=[["M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"]],g="radial";break;case"cone":E=[["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"]],g=!1;break;case"streamtube":E=[["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"]],g=!1;break;case"surface":E=[["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"]],g=!0;break;case"mesh3d":E=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],g=!1;break;case"volume":E=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],g=!0;break;case"isosurface":E=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6 A12,24 0 0,0 6,-6 L0,6Z"]],g=!1;break}var S=V0.select(this).select("g.legendpoints").selectAll("path.legend3dandfriends").data(E);S.enter().append("path").classed("legend3dandfriends",!0).attr("transform",l).style("stroke-miterlimit",1),S.exit().remove(),S.each(function(C,k){var D=V0.select(this),L=XH(T),P=L.colorscale,I=L.reversescale,F=function(W){if(W.size()){var X="legendfill-"+T.uid;ep.gradient(W,r,X,ZH(I,g==="radial"),P,"fill")}},z;if(P){if(!g){var O=P.length;z=k===0?P[I?O-1:0][1]:k===1?P[I?0:O-1][1]:P[Math.floor((O-1)/2)][1]}}else{var B=T.vertexcolor||T.facecolor||T.color;z=T0.isArrayOrTypedArray(B)?B[k]||B[0]:B}D.attr("d",C[0]),z?D.call(Bp.fill,z):D.call(F)})}};function ZH(e,t){var r=t?"radial":"horizontal";return r+(e?"":"reversed")}function Kme(e){var t=e[0].trace,r=t.contours,i=SL.hasLines(t)||t.visible&&t.type==="quiver",n=SL.hasMarkers(t),a=t.visible&&t.fill&&t.fill!=="none",o=!1,s=!1;if(r){var l=r.coloring;l==="lines"?o=!0:i=l==="none"||l==="heatmap"||r.showlines,r.type==="constraint"?a=r._operation!=="=":(l==="fill"||l==="heatmap")&&(s=!0)}return{showMarker:n,showLine:i,showFill:a,showGradientLine:o,showGradientFill:s,anyLine:i||o,anyFill:a||s}}function Jme(e,t,r){return e&&T0.isArrayOrTypedArray(e)?t:e>r?r:e}});var tj=K((JNr,lye)=>{"use strict";var sd=No(),Ec=Mt(),QH=yf(),_b=Ho(),CL=bw(),JH=N0(),kc=Bs(),O6=ko(),wb=zu(),eye=GH().handleItemClick,tye=GH().handleTitleClick,jc=(jH(),ar(HH)),ej=(Hc(),ar(Gc)),oye=ej.LINE_SPACING,Vw=ej.FROM_TL,rye=ej.FROM_BR,iye=Vme(),qSt=KH(),Uw=q6(),Nw=1,OSt=/^legend[0-9]*$/;lye.exports=function(t,r){if(r)nye(t,r);else{var i=t._fullLayout,n=i._legends,a=i._infolayer.selectAll('[class^="legend"]');a.each(function(){var u=sd.select(this),f=u.attr("class"),c=f.split(" ")[0];c.match(OSt)&&n.indexOf(c)===-1&&u.remove()});for(var o=0;o1)}var p=i.hiddenlabels||[];if(!s&&(!i.showlegend||!l.length))return o.selectAll("."+n).remove(),i._topdefs.select("#"+a).remove(),QH.autoMargin(e,n);var v=Ec.ensureSingle(o,"g",n,function(T){s||T.attr("pointer-events","all")}),y=Ec.ensureSingleById(i._topdefs,"clipPath",a,function(T){T.append("rect")}),m=Ec.ensureSingle(v,"rect","bg",function(T){T.attr("shape-rendering","crispEdges")});m.call(O6.stroke,r.bordercolor).call(O6.fill,r.bgcolor).style("stroke-width",r.borderwidth+"px");var w=Ec.ensureSingle(v,"g","scrollbox"),_=r.title;r._titleWidth=0,r._titleHeight=0;var b;_.text?(b=Ec.ensureSingle(w,"text",n+"titletext"),b.attr("text-anchor","start").call(kc.font,_.font).text(_.text),kL(b,w,e,r,Nw),!s&&(r.titleclick||r.titledoubleclick)&&GSt(w,e,r,n)):(w.selectAll("."+n+"titletext").remove(),w.selectAll("."+n+"titletoggle").remove());var M=Ec.ensureSingle(v,"rect","scrollbar",function(T){T.attr(jc.scrollBarEnterAttrs).call(O6.fill,jc.scrollBarColor)}),x=w.selectAll("g.groups").data(l);x.enter().append("g").attr("class","groups"),x.exit().remove();var A=x.selectAll("g.traces").data(Ec.identity);A.enter().append("g").attr("class","traces"),A.exit().remove(),A.style("opacity",function(T){let g=T[0],E=g.trace;if(g.groupTitle){let S=E.legendgroup,C=(i.shapes||[]).filter(function(D){return D.showlegend});return e._fullData.concat(C).some(function(D){return D.legendgroup===S&&(D.legend||"legend")===n&&D.visible===!0})?1:.5}return _b.traceIs(E,"pie-like")?p.indexOf(T[0].label)!==-1?.5:1:E.visible==="legendonly"?.5:1}).each(function(){sd.select(this).call(VSt,e,r)}).call(qSt,e,r).each(function(T){s||T[0].groupTitle&&r.groupclick==="toggleitem"||sd.select(this).call(USt,e,n)}),Ec.syncOrAsync([QH.previousPromises,function(){return WSt(e,x,A,r,w)},function(){var T=i._size,g=r.borderwidth,E=r.xref==="paper",S=r.yref==="paper";if(_.text){let de=(i.shapes||[]).filter(function(Ie){return Ie.showlegend}),ge=e._fullData.concat(de).some(function(Ie){let Ce=Ie.legend||"legend";var le=Array.isArray(Ce)?Ce.includes(n):Ce===n;return le&&Ie.visible===!0});b.style("opacity",ge?1:.5)}if(!s){var C,k;E?C=T.l+T.w*r.x-Vw[DL(r)]*r._width:C=i.width*r.x-Vw[DL(r)]*r._width,S?k=T.t+T.h*(1-r.y)-Vw[FL(r)]*r._effHeight:k=i.height*(1-r.y)-Vw[FL(r)]*r._effHeight;var D=$St(e,n,C,k);if(D)return;if(i.margin.autoexpand){var L=C,P=k;C=E?Ec.constrain(C,0,i.width-r._width):L,k=S?Ec.constrain(k,0,i.height-r._effHeight):P,C!==L&&Ec.log("Constrain "+n+".x to make legend fit inside graph"),k!==P&&Ec.log("Constrain "+n+".y to make legend fit inside graph")}kc.setTranslate(v,C,k)}if(M.on(".drag",null),v.on("wheel",null),s||r._height<=r._maxHeight||e._context.staticPlot){var I=r._effHeight;s&&(I=r._height),m.attr({width:r._width-g,height:I-g,x:g/2,y:g/2}),kc.setTranslate(w,0,0),y.select("rect").attr({width:r._width-2*g,height:I-2*g,x:g,y:g}),kc.setClipUrl(w,a,e),kc.setRect(M,0,0,0,0),delete r._scrollY}else{var F=Math.max(jc.scrollBarMinHeight,r._effHeight*r._effHeight/r._height),z=r._effHeight-F-2*jc.scrollBarMargin,B=r._height-r._effHeight,O=z/B,W=Math.min(r._scrollY||0,B);m.attr({width:r._width-2*g+jc.scrollBarWidth+jc.scrollBarMargin,height:r._effHeight-g,x:g/2,y:g/2}),y.select("rect").attr({width:r._width-2*g+jc.scrollBarWidth+jc.scrollBarMargin,height:r._effHeight-2*g,x:g,y:g+W}),kc.setClipUrl(w,a,e),J(W,F,O),v.on("wheel",function(){W=Ec.constrain(r._scrollY+sd.event.deltaY/B*z,0,B),J(W,F,O),W!==0&&W!==B&&sd.event.preventDefault()});var X,Z,j,q=function(de,ge,Ie){var Ce=(Ie-ge)/O+de;return Ec.constrain(Ce,0,B)},Q=function(de,ge,Ie){var Ce=(ge-Ie)/O+de;return Ec.constrain(Ce,0,B)},N=sd.behavior.drag().on("dragstart",function(){var de=sd.event.sourceEvent;de.type==="touchstart"?X=de.changedTouches[0].clientY:X=de.clientY,j=W}).on("drag",function(){var de=sd.event.sourceEvent;de.buttons===2||de.ctrlKey||(de.type==="touchmove"?Z=de.changedTouches[0].clientY:Z=de.clientY,W=q(j,X,Z),J(W,F,O))});M.call(N);var V=sd.behavior.drag().on("dragstart",function(){var de=sd.event.sourceEvent;de.type==="touchstart"&&(X=de.changedTouches[0].clientY,j=W)}).on("drag",function(){var de=sd.event.sourceEvent;de.type==="touchmove"&&(Z=de.changedTouches[0].clientY,W=Q(j,X,Z),J(W,F,O))});w.call(V)}function J(de,ge,Ie){r._scrollY=e._fullLayout[n]._scrollY=de,kc.setTranslate(w,0,-de),kc.setRect(M,r._width,jc.scrollBarMargin+de*Ie,jc.scrollBarWidth,ge),y.select("rect").attr("y",g+de)}if(e._context.edits.legendPosition){var H,$,te,ie;v.classed("cursor-move",!0),JH.init({element:v.node(),gd:e,prepFn:function(de){if(de.target!==M.node()){var ge=kc.getTranslate(v);te=ge.x,ie=ge.y}},moveFn:function(de,ge){if(te!==void 0&&ie!==void 0){var Ie=te+de,Ce=ie+ge;kc.setTranslate(v,Ie,Ce),H=JH.align(Ie,r._width,T.l,T.l+T.w,r.xanchor),$=JH.align(Ce+r._height,-r._height,T.t+T.h,T.t,r.yanchor)}},doneFn:function(){if(H!==void 0&&$!==void 0){var de={};de[n+".x"]=H,de[n+".y"]=$,_b.call("_guiRelayout",e,de)}},clickFn:function(de,ge){var Ie=o.selectAll("g.traces").filter(function(){var Ce=this.getBoundingClientRect();return ge.clientX>=Ce.left&&ge.clientX<=Ce.right&&ge.clientY>=Ce.top&&ge.clientY<=Ce.bottom});Ie.size()>0&&sye(e,r,Ie,de,ge)}})}}],e)}}function EL(e,t,r){var i=e[0],n=i.width,a=t.entrywidthmode,o=i.trace.legendwidth||t.entrywidth;return a==="fraction"?t._maxWidth*o:r+(o||n)}function sye(e,t,r,i,n){var a=e._fullLayout,o=r.data()[0][0].trace,s=t.itemclick,l=t.itemdoubleclick,u={event:n,node:r.node(),curveNumber:o.index,expandedIndex:o.index,data:e.data,layout:e.layout,frames:e._transitionData._frames,config:e._context,fullData:e._fullData,fullLayout:a};o._group&&(u.group=o._group),_b.traceIs(o,"pie-like")&&(u.label=r.datum()[0].label);var f=CL.triggerHandler(e,"plotly_legendclick",u);if(i===1){if(f===!1)return;t._clickTimeout=setTimeout(function(){e._fullLayout&&s&&eye(r,e,t,s,i)},e._context.doubleClickDelay)}else if(i===2){t._clickTimeout&&clearTimeout(t._clickTimeout),e._legendMouseDownTime=0;var c=CL.triggerHandler(e,"plotly_legenddoubleclick",u);c!==!1&&f!==!1&&l&&eye(r,e,t,l,i)}}function VSt(e,t,r){var i=Uw.getId(r),n=e.data()[0][0],a=n.trace,o=_b.traceIs(a,"pie-like"),s=!r._inHover&&t._context.edits.legendText&&!o,l=r._maxNameLength,u,f;n.groupTitle?(u=n.groupTitle.text,f=n.groupTitle.font):(f=r.font,r.entries?u=n.text:(u=o?n.label:a.name,a._meta&&(u=Ec.templateString(u,a._meta))));var c=Ec.ensureSingle(e,"text",i+"text");c.attr("text-anchor","start").call(kc.font,f).text(s?aye(u,l):u);var h=r.indentation+r.itemwidth+jc.itemGap*2;wb.positionText(c,h,0),s?c.call(wb.makeEditable,{gd:t,text:u}).call(kL,e,t,r).on("edit",function(d){this.text(aye(d,l)).call(kL,e,t,r);var p={};return p.name=d,n.trace._isShape?_b.call("_guiRelayout",t,"shapes["+a.index+"].name",p.name):_b.call("_guiRestyle",t,p,a.index)}):kL(c,e,t,r)}function aye(e,t){var r=Math.max(4,t);if(e&&e.trim().length>=r/2)return e;e=e||"";for(var i=r-e.length;i>0;i--)e+=" ";return e}function USt(e,t,r){var i=t._context.doubleClickDelay,n,a=1,o=Ec.ensureSingle(e,"rect",r+"toggle",function(s){t._context.staticPlot||s.style("cursor","pointer").attr("pointer-events","all"),s.call(O6.fill,"rgba(0,0,0,0)")});t._context.staticPlot||(o.on("mousedown",function(){n=new Date().getTime(),n-t._legendMouseDownTimei&&(a=Math.max(a-1,1)),sye(t,s,e,a,sd.event)}}))}function GSt(e,t,r,i){if(t._fullData.some(function(u){let f=u.legend||"legend";return(Array.isArray(f)?f.includes(i):f===i)&&_b.traceIs(u,"pie-like")}))return;let a=t._context.doubleClickDelay;var o,s=1;let l=Ec.ensureSingle(e,"rect",i+"titletoggle",function(u){t._context.staticPlot||u.style("cursor","pointer").attr("pointer-events","all"),u.call(O6.fill,"rgba(0,0,0,0)")});t._context.staticPlot||(l.on("mousedown",function(){o=new Date().getTime(),o-t._legendMouseDownTimea&&(s=Math.max(s-1,1));let u={event:sd.event,legendId:i,data:t.data,layout:t.layout,fullData:t._fullData,fullLayout:t._fullLayout};if(s===1&&r.titleclick){if(CL.triggerHandler(t,"plotly_legendtitleclick",u)===!1)return;r._titleClickTimeout=setTimeout(function(){t._fullLayout&&tye(t,r,r.titleclick)},a)}else s===2&&(r._titleClickTimeout&&clearTimeout(r._titleClickTimeout),t._legendMouseDownTime=0,CL.triggerHandler(t,"plotly_legendtitledoubleclick",u)!==!1&&r.titledoubleclick&&tye(t,r,r.titledoubleclick))}))}function kL(e,t,r,i,n){i._inHover&&e.attr("data-notex",!0),wb.convertToTspans(e,r,function(){HSt(t,r,i,n)})}function HSt(e,t,r,i){var n=e.data()[0][0],a=n&&n.trace.showlegend;if(Array.isArray(a)&&(a=a[n.i]!==!1),!r._inHover&&n&&!a){e.remove();return}var o=e.select("g[class*=math-group]"),s=o.node(),l=Uw.getId(r);r||(r=t._fullLayout[l]);var u=r.borderwidth,f;i===Nw?f=r.title.font:n.groupTitle?f=n.groupTitle.font:f=r.font;var c=f.size*oye,h,d;if(s){var p=kc.bBox(s);h=p.height,d=p.width,i===Nw?kc.setTranslate(o,u,u+h*.75):kc.setTranslate(o,0,h*.25)}else{var v="."+l+(i===Nw?"title":"")+"text",y=e.select(v),m=wb.lineCount(y),w=y.node();if(h=c*m,d=w?kc.bBox(w).width:0,i===Nw)r.title.side==="left"&&(d+=jc.itemGap*2),wb.positionText(y,u+jc.titlePad,u+c);else{var _=jc.itemGap*2+r.indentation+r.itemwidth;n.groupTitle&&(_=jc.itemGap,d-=r.indentation+r.itemwidth),wb.positionText(y,_,-c*((m-1)/2-.3))}}i===Nw?(r._titleWidth=d,r._titleHeight=h):(n.lineHeight=c,n.height=Math.max(h,16)+3,n.width=d)}function jSt(e){var t=0,r=0,i=e.title.side;return i&&(i.indexOf("left")!==-1&&(t=e._titleWidth),i.indexOf("top")!==-1&&(r=e._titleHeight)),[t,r]}function WSt(e,t,r,i,n){var a=e._fullLayout,o=Uw.getId(i);i||(i=a[o]);var s=a._size,l=Uw.isVertical(i),u=Uw.isGrouped(i),f=i.entrywidthmode==="fraction",c=i.borderwidth,h=2*c,d=jc.itemGap,p=i.indentation+i.itemwidth+d*2,v=2*(c+d),y=FL(i),m=i.y<0||i.y===0&&y==="top",w=i.y>1||i.y===1&&y==="bottom",_=i.tracegroupgap,b={};let{orientation:M,yref:x}=i,{maxheight:A}=i,T=m||w||M!=="v"||x!=="paper";A||(A=T?.5:1);let g=T?a.height:s.h;i._maxHeight=Math.max(A>1?A:A*g,30);var E=0;i._width=0,i._height=0;var S=jSt(i);if(l)r.each(function(de){var ge=de[0].height;kc.setTranslate(this,c+S[0],c+S[1]+i._height+ge/2+d),i._height+=ge,i._width=Math.max(i._width,de[0].width)}),E=p+i._width,i._width+=d+p+h,i._height+=v,u&&(t.each(function(de,ge){kc.setTranslate(this,0,ge*i.tracegroupgap)}),i._height+=(i._lgroupsLength-1)*i.tracegroupgap);else{var C=DL(i),k=i.x<0||i.x===0&&C==="right",D=i.x>1||i.x===1&&C==="left",L=w||m,P=a.width/2;i._maxWidth=Math.max(k?L&&C==="left"?s.l+s.w:P:D?L&&C==="right"?s.r+s.w:P:s.w,2*p);var I=0,F=0;r.each(function(de){var ge=EL(de,i,p);I=Math.max(I,ge),F+=ge}),E=null;var z=0;if(u){var B=0,O=0,W=0;t.each(function(){var de=0,ge=0;sd.select(this).selectAll("g.traces").each(function(Ce){var le=EL(Ce,i,p),re=Ce[0].height;kc.setTranslate(this,S[0],S[1]+c+d+re/2+ge),ge+=re,de=Math.max(de,le),b[Ce[0].trace.legendgroup]=de});var Ie=de+d;O>0&&Ie+c+O>i._maxWidth?(z=Math.max(z,O),O=0,W+=B+_,B=ge):B=Math.max(B,ge),kc.setTranslate(this,O,W),O+=Ie}),i._width=Math.max(z,O)+c,i._height=W+B+v}else{var X=r.size(),Z=F+h+(X-1)*d=i._maxWidth&&(z=Math.max(z,N),q=0,Q+=j,i._height+=j,j=0),kc.setTranslate(this,S[0]+c+q,S[1]+c+Q+ge/2+d),N=q+Ie+d,q+=Ce,j=Math.max(j,ge)}),Z?(i._width=q+h,i._height=j+v):(i._width=Math.max(z,N)+h,i._height+=j+v)}}i._width=Math.ceil(Math.max(i._width+S[0],i._titleWidth+2*(c+jc.titlePad))),i._height=Math.ceil(Math.max(i._height+S[1],i._titleHeight+2*(c+jc.itemGap))),i._effHeight=Math.min(i._height,i._maxHeight);var V=e._context.edits,J=V.legendText||V.legendPosition;r.each(function(de){var ge=sd.select(this).select("."+o+"toggle"),Ie=de[0].height,Ce=de[0].trace.legendgroup,le=EL(de,i,p);u&&Ce!==""&&(le=b[Ce]);var re=J?p:E||le;!l&&!f&&(re+=d/2),kc.setRect(ge,0,-Ie/2,re,Ie)});var H=n.select("."+o+"titletext");H.node()&&NSt(H,i,c);var $=n.select("."+o+"titletoggle");if($.size()&&H.node()){var te=H.attr("x")||0,ie=jc.titlePad;kc.setRect($,te-ie,c,i._titleWidth+2*ie,i._titleHeight+2*ie)}}function $St(e,t,r,i){var n=e._fullLayout,a=n[t],o=DL(a),s=FL(a),l=a.xref==="paper",u=a.yref==="paper";e._fullLayout._reservedMargin[t]={};var f=a.y<.5?"b":"t",c=a.x<.5?"l":"r",h={r:n.width-r,l:r+a._width,b:n.height-i,t:i+a._effHeight};if(l&&u)return QH.autoMargin(e,t,{x:a.x,y:a.y,l:a._width*Vw[o],r:a._width*rye[o],b:a._effHeight*rye[s],t:a._effHeight*Vw[s]});l?e._fullLayout._reservedMargin[t][f]=h[f]:u||a.orientation==="v"?e._fullLayout._reservedMargin[t][c]=h[c]:e._fullLayout._reservedMargin[t][f]=h[f]}function DL(e){return Ec.isRightAnchor(e)?"right":Ec.isCenterAnchor(e)?"center":"left"}function FL(e){return Ec.isBottomAnchor(e)?"bottom":Ec.isMiddleAnchor(e)?"middle":"top"}});var aj=K(nj=>{"use strict";var Ab=No(),sy=Gs(),oc=Mt(),YSt=oc.pushUnique,rj=oc.strTranslate,XSt=oc.strRotate,ZSt=bw(),qp=zu(),KSt=Ime(),$1=Bs(),Wc=ko(),LL=N0(),Y1=Cs(),JSt=(Uc(),ar(Vc)).zindexSeparator,Hw=Ho(),tp=od(),Tb=(WT(),ar(jT)),QSt=NH(),eEt=tj(),mye=Tb.YANGLE,ij=Math.PI*mye/180,tEt=1/Math.sin(ij),rEt=Math.cos(ij),iEt=Math.sin(ij),Rf=Tb.HOVERARROWSIZE,iu=Tb.HOVERTEXTPAD,uye={box:!0,ohlc:!0,violin:!0,candlestick:!0},nEt={scatter:!0,scattergl:!0,splom:!0};function fye(e,t){return e.distance-t.distance}nj.hover=function(t,r,i,n){t=oc.getGraphDiv(t);var a=r.target;oc.throttle(t._fullLayout._uid+Tb.HOVERID,Tb.HOVERMINTIME,function(){aEt(t,r,i,n,a)})};nj.loneHover=function(t,r){var i=!0;Array.isArray(t)||(i=!1,t=[t]);var n=r.gd,a=_ye(n),o=wye(n),s=t.map(function(y){var m=y._x0||y.x0||y.x||0,w=y._x1||y.x1||y.x||0,_=y._y0||y.y0||y.y||0,b=y._y1||y.y1||y.y||0,M=y.eventData;if(M){var x=Math.min(m,w),A=Math.max(m,w),T=Math.min(_,b),g=Math.max(_,b),E=y.trace;if(Hw.traceIs(E,"gl3d")){var S=n._fullLayout[E.scene]._scene.container,C=S.offsetLeft,k=S.offsetTop;x+=C,A+=C,T+=k,g+=k}M.bbox={x0:x+o,x1:A+o,y0:T+a,y1:g+a},M.xPixel=(m+w)/2,M.yPixel=(_+b)/2,r.inOut_bbox&&r.inOut_bbox.push(M.bbox)}else M=!1;return{color:y.color||Wc.defaultLine,x0:y.x0||y.x||0,x1:y.x1||y.x||0,y0:y.y0||y.y||0,y1:y.y1||y.y||0,xLabel:y.xLabel,yLabel:y.yLabel,zLabel:y.zLabel,text:y.text,name:y.name,idealAlign:y.idealAlign,borderColor:y.borderColor,fontFamily:y.fontFamily,fontSize:y.fontSize,fontColor:y.fontColor,fontWeight:y.fontWeight,fontStyle:y.fontStyle,fontVariant:y.fontVariant,nameLength:y.nameLength,textAlign:y.textAlign,trace:y.trace||{index:0,hoverinfo:""},xa:{_offset:0},ya:{_offset:0},index:0,hovertemplate:y.hovertemplate||!1,hovertemplateLabels:y.hovertemplateLabels||!1,eventData:M}}),l=!1,u=gye(s,{gd:n,hovermode:"closest",rotateLabels:l,bgColor:r.bgColor||Wc.background,container:Ab.select(r.container),outerContainer:r.outerContainer||r.container}),f=u.hoverLabels,c=5,h=0,d=0;f.sort(function(y,m){return y.y0-m.y0}).each(function(y,m){var w=y.y0-y.by/2;w-cA[0]._length||ie<0||ie>T[0]._length)return LL.unhoverRaw(e,t)}if(t.pointerX=te+A[0]._offset,t.pointerY=ie+T[0]._offset,"xval"in t?P=tp.flat(a,t.xval):P=tp.p2c(A,te),"yval"in t?I=tp.flat(a,t.yval):I=tp.p2c(T,ie),e._hoverPointerX=t.pointerX,e._hoverPointerY=t.pointerY,!sy(P[0])||!sy(I[0]))return oc.warn("Fx.hover failed",t,e),LL.unhoverRaw(e,t)}s.clickanywhere&&(e._hoverXVals=P,e._hoverYVals=I,e._hoverXAxes=A,e._hoverYAxes=T);var Ie=1/0;function Ce(We,ut){for(z=0;zN&&(D.splice(0,N),Ie=D[0].distance),c&&k!==0&&D.length===0){Q.distance=k,Q.index=!1;var Er=O._module.hoverPoints(Q,j,q,"closest",{hoverLayer:s._hoverlayer});if(Er&&(Er=Er.filter(function(vr){return vr.spikeDistance<=k})),Er&&Er.length){var hr,ni=Er.filter(function(vr){return vr.xa.showspikes&&vr.xa.spikesnap!=="hovered data"});if(ni.length){var Kr=ni[0];sy(Kr.x0)&&sy(Kr.y0)&&(hr=re(Kr),(!V.vLinePoint||V.vLinePoint.spikeDistance>hr.spikeDistance)&&(V.vLinePoint=hr))}var si=Er.filter(function(vr){return vr.ya.showspikes&&vr.ya.spikesnap!=="hovered data"});if(si.length){var Tr=si[0];sy(Tr.x0)&&sy(Tr.y0)&&(hr=re(Tr),(!V.hLinePoint||V.hLinePoint.spikeDistance>hr.spikeDistance)&&(V.hLinePoint=hr))}}}}}Ce();function le(We,ut,kt){for(var $t=null,or=1/0,Lr,Er=0;ErWe.trace.index===pe.trace.index):D=[pe];var ce=D.length,Be=vye("x",pe,s),$e=vye("y",pe,s);Ce(Be,$e);var Ze=[],it={},nt=0,Ue=function(We){var ut=uye[We.trace.type]?yye(We):We.trace.index;if(!it[ut])nt++,it[ut]=nt,Ze.push(We);else{var kt=it[ut]-1,$t=Ze[kt];kt>0&&Math.abs(We.distance)ce-1;xe--)Ue(D[xe]);D=Ze,Y()}var Re=e._hoverdata,Qe=[],Pe=_ye(e),De=wye(e);for(let We of D){var Ve=tp.makeEventData(We,We.trace,We.cd);if(We.hovertemplate!==!1){var Le=!1;We.cd[We.index]&&We.cd[We.index].ht&&(Le=We.cd[We.index].ht),We.hovertemplate=Le||We.trace.hovertemplate||!1}if(We.xa&&We.ya){var Se=We.x0+We.xa._offset,ze=We.x1+We.xa._offset,st=We.y0+We.ya._offset,ft=We.y1+We.ya._offset,wt=Math.min(Se,ze),At=Math.max(Se,ze),Vt=Math.min(st,ft),Dt=Math.max(st,ft);Ve.bbox={x0:wt+De,x1:At+De,y0:Vt+Pe,y1:Dt+Pe},Ve.xPixel=(Se+ze)/2,Ve.yPixel=(st+ft)/2}We.eventData=[Ve],Qe.push(Ve)}e._hoverdata=Qe;var yt=h==="y"&&(L.length>1||D.length>1)||h==="closest"&&J&&D.length>1,St=Wc.combine(s.plot_bgcolor||Wc.background,s.paper_bgcolor),rr=gye(D,{gd:e,hovermode:h,rotateLabels:yt,bgColor:St,container:s._hoverlayer,outerContainer:s._paper.node(),commonLabelOpts:s.hoverlabel,hoverdistance:s.hoverdistance}),Ke=rr.hoverLabels;if(tp.isUnifiedHover(h)||(sEt(Ke,yt,s,rr.commonLabelBoundingBox),bye(Ke,yt,s._invScaleX,s._invScaleY)),n&&n.tagName){var at=Hw.getComponentMethod("annotations","hasClickToShow")(e,Qe);KSt(Ab.select(n),at?"pointer":"")}var lt=fEt(e,t,Re);if(!n||i||!lt&&!s.hoveranywhere)return;Re&<&&e.emit("plotly_unhover",{event:t,points:Re}),vt(e._hoverdata);function vt(We){e.emit("plotly_hover",{event:t,points:We,xaxes:A,yaxes:T,xvals:tp.c2dApply(A,P),yvals:tp.c2dApply(T,I),xPixel:t.pointerX,yPixel:t.pointerY})}}function yye(e){return[e.trace.index,e.index,e.x0,e.y0,e.name,e.attr,e.xa?e.xa._id:"",e.ya?e.ya._id:""].join(",")}var oEt=/([\s\S]*)<\/extra>/;function gye(e,t){var r=t.gd,i=r._fullLayout,n=t.hovermode,a=t.rotateLabels,o=t.bgColor,s=t.container,l=t.outerContainer,u=t.commonLabelOpts||{};if(e.length===0)return[[]];var f=t.fontFamily||Tb.HOVERFONT,c=t.fontSize||Tb.HOVERFONTSIZE,h=t.fontWeight||i.font.weight,d=t.fontStyle||i.font.style,p=t.fontVariant||i.font.variant,v=t.fontTextcase||i.font.textcase,y=t.fontLineposition||i.font.lineposition,m=t.fontShadow||i.font.shadow,w=e[0],_=w.xa,b=w.ya,M=n.charAt(0),x=M+"Label",A=w[x];if(A===void 0&&_.type==="multicategory")for(var T=0;Ti.width-Qe&&(Pe=i.width-Qe),ue.attr("d","M"+(Ue-Pe)+",0L"+(Ue-Pe+Rf)+","+Re+Rf+"H"+Qe+"v"+Re+(iu*2+nt.height)+"H"+-Qe+"V"+Re+Rf+"H"+(Ue-Pe-Rf)+"Z"),Ue=Pe,z.minX=Ue-Qe,z.maxX=Ue+Qe,_.side==="top"?(z.minY=xe-(iu*2+nt.height),z.maxY=xe-iu):(z.minY=xe+iu,z.maxY=xe+(iu*2+nt.height))}else{var De,Ve,Le;b.side==="right"?(De="start",Ve=1,Le="",Ue=_._offset+_._length):(De="end",Ve=-1,Le="-",Ue=_._offset),xe=b._offset+(w.y0+w.y1)/2,pe.attr("text-anchor",De),ue.attr("d","M0,0L"+Le+Rf+","+Rf+"V"+(iu+nt.height/2)+"h"+Le+(iu*2+nt.width)+"V-"+(iu+nt.height/2)+"H"+Le+Rf+"V-"+Rf+"Z"),z.minY=xe-(iu+nt.height/2),z.maxY=xe+(iu+nt.height/2),b.side==="right"?(z.minX=Ue+Rf,z.maxX=Ue+Rf+(iu*2+nt.width)):(z.minX=Ue-Rf-(iu*2+nt.width),z.maxX=Ue-Rf);var Se=nt.height/2,ze=E-nt.top-Se,st="clip"+i._uid+"commonlabel"+b._id,ft;if(Ueue.hoverinfo!=="none");if(me.length===0)return[];var B=i.hoverlabel,O=B.font,W=me[0],X=((n==="x unified"?W.xa:W.ya).unifiedhovertitle||{}).text,Z=X?oc.hovertemplateString({data:n==="x unified"?[{xa:W.xa,x:W.xVal}]:[{ya:W.ya,y:W.yVal}],fallback:W.trace.hovertemplatefallback,locale:i._d3locale,template:X}):A,j={showlegend:!0,legend:{title:{text:Z,font:O},font:O,bgcolor:B.bgcolor,bordercolor:B.bordercolor,borderwidth:1,tracegroupgap:7,traceorder:i.legend?i.legend.traceorder:void 0,orientation:"v"}},q={font:O};QSt(j,q,r._fullData);var Q=q.legend;Q.entries=[];for(var N=0;N=0?se=Y:ne+ge=0?se=ne:ye+ge=0?Ae=we:oe+Ie=0?Ae=oe:U+Ie=0,(me.idealAlign==="top"||!Vt)&&Dt?(Le-=ze/2,me.anchor="end"):Vt?(Le+=ze/2,me.anchor="start"):me.anchor="middle",me.crossPos=Le;else{if(me.pos=Le,Vt=Ve+Se/2+At<=S,Dt=Ve-Se/2-At>=0,(me.idealAlign==="left"||!Vt)&&Dt)Ve-=Se/2,me.anchor="end";else if(Vt)Ve+=Se/2,me.anchor="start";else{me.anchor="middle";var yt=At/2,St=Ve+yt-S,rr=Ve-yt;St>0&&(Ve-=St),rr<0&&(Ve+=-rr)}me.crossPos=Ve}xe.attr("text-anchor",me.anchor),Qe&&Re.attr("text-anchor",me.anchor),ue.attr("transform",rj(Ve,Le)+(a?XSt(mye):""))}),{hoverLabels:be,commonLabelBoundingBox:z}}function cye(e,t,r,i,n,a){var c,h;var o="",s="";e.nameOverride!==void 0&&(e.name=e.nameOverride),e.name&&(e.trace._meta&&(e.name=oc.templateString(e.name,e.trace._meta)),o=pye(e.name,e.nameLength));var l=r.charAt(0),u=l==="x"?"y":"x";e.zLabel!==void 0?(e.xLabel!==void 0&&(s+="x: "+e.xLabel+"
"),e.yLabel!==void 0&&(s+="y: "+e.yLabel+"
"),e.trace.type!=="choropleth"&&e.trace.type!=="choroplethmap"&&(s+=(s?"z: ":"")+e.zLabel)):t&&e[l+"Label"]===n?s=e[u+"Label"]||"":e.xLabel===void 0?e.yLabel!==void 0&&e.trace.type!=="scattercarpet"&&(s=e.yLabel):e.yLabel===void 0?s=e.xLabel:s="("+e.xLabel+", "+e.yLabel+")",(e.text||e.text===0)&&!Array.isArray(e.text)&&(s+=(s?"
":"")+e.text),e.extraText!==void 0&&(s+=(s?"
":"")+e.extraText),a&&s===""&&!e.hovertemplate&&(o===""&&a.remove(),s=o),(h=(c=e.trace)==null?void 0:c.hoverlabel)!=null&&h.split&&(e.hovertemplate="");let{hovertemplate:f=!1}=e;if(f){let d=e.hovertemplateLabels||e;e[l+"Label"]!==n&&(d[l+"other"]=d[l+"Val"],d[l+"otherLabel"]=d[l+"Label"]),s=oc.hovertemplateString({data:[e.eventData[0]||{},e.trace._meta],fallback:e.trace.hovertemplatefallback,labels:d,locale:i._d3locale,template:f}),s=s.replace(oEt,(p,v)=>(o=pye(v,e.nameLength),""))}return[s,o]}function sEt(e,t,r,i){var n=t?"xa":"ya",a=t?"ya":"xa",o=0,s=1,l=e.size(),u=new Array(l),f=0,c=i.minX,h=i.maxX,d=i.minY,p=i.maxY,v=function(P){return P*r._invScaleX},y=function(P){return P*r._invScaleY};e.each(function(P){var I=P[n],F=P[a],z=I._id.charAt(0)==="x",B=I.range;f===0&&B&&B[0]>B[1]!==z&&(s=-1);var O=0,W=z?r.width:r.height;if(r.hovermode==="x"||r.hovermode==="y"){var X=xye(P,t),Z=P.anchor,j=Z==="end"?-1:1,q,Q;if(Z==="middle")q=P.crossPos+(z?y(X.y-P.by/2):v(P.bx/2+P.tx2width/2)),Q=q+(z?y(P.by):v(P.bx));else if(z)q=P.crossPos+y(Rf+X.y)-y(P.by/2-Rf),Q=q+y(P.by);else{var N=v(j*Rf+X.x),V=N+v(j*P.bx);q=P.crossPos+Math.min(N,V),Q=P.crossPos+Math.max(N,V)}z?d!==void 0&&p!==void 0&&Math.min(Q,p)-Math.max(q,d)>1&&(F.side==="left"?(O=F._mainLinePosition,W=r.width):W=F._mainLinePosition):c!==void 0&&h!==void 0&&Math.min(Q,h)-Math.max(q,c)>1&&(F.side==="top"?(O=F._mainLinePosition,W=r.height):W=F._mainLinePosition)}u[f++]=[{datum:P,traceIndex:P.trace.index,dp:0,pos:P.pos,posref:P.posref,size:P.by*(z?tEt:1)/2,pmin:O,pmax:W}]}),u.sort(function(P,I){return P[0].posref-I[0].posref||s*(I[0].traceIndex-P[0].traceIndex)});var m,w,_,b,M,x,A;function T(P){var I=P[0],F=P[P.length-1];if(w=I.pmin-I.pos-I.dp+I.size,_=F.pos+F.dp+F.size-I.pmax,w>.01){for(M=P.length-1;M>=0;M--)P[M].dp+=w;m=!1}if(!(_<.01)){if(w<-.01){for(M=P.length-1;M>=0;M--)P[M].dp-=_;m=!1}if(m){var z=0;for(b=0;bI.pmax&&z++;for(b=P.length-1;b>=0&&!(z<=0);b--)x=P[b],x.pos>I.pmax-1&&(x.del=!0,z--);for(b=0;b=0;M--)P[M].dp-=_;for(b=P.length-1;b>=0&&!(z<=0);b--)x=P[b],x.pos+x.dp+x.size>I.pmax&&(x.del=!0,z--)}}}for(;!m&&o<=l;){for(o++,m=!0,b=0;b.01){for(M=E.length-1;M>=0;M--)E[M].dp+=w;for(g.push.apply(g,E),u.splice(b+1,1),A=0,M=g.length-1;M>=0;M--)A+=g[M].dp;for(_=A/g.length,M=g.length-1;M>=0;M--)g[M].dp-=_;m=!1}else b++}u.forEach(T)}for(b=u.length-1;b>=0;b--){var k=u[b];for(M=k.length-1;M>=0;M--){var D=k[M],L=D.datum;L.offset=D.dp,L.del=D.del}}}function xye(e,t){var r=0,i=e.offset;return t&&(i*=-iEt,r=e.offset*rEt),{x:r,y:i}}function lEt(e){var t={start:1,end:-1,middle:0}[e.anchor],r=t*(Rf+iu),i=r+t*(e.txwidth+iu),n=e.anchor==="middle";return n&&(r-=e.tx2width/2,i+=e.txwidth/2+iu),{alignShift:t,textShiftX:r,text2ShiftX:i}}function bye(e,t,r,i){var n=function(o){return o*r},a=function(o){return o*i};e.each(function(o){var s=Ab.select(this);if(o.del)return s.remove();var l=s.select("text.nums"),u=o.anchor,f=u==="end"?-1:1,c=lEt(o),h=xye(o,t),d=h.x,p=h.y,v=u==="middle",y="hoverlabel"in o.trace?o.trace.hoverlabel.showarrow:!0,m;v?m="M-"+n(o.bx/2+o.tx2width/2)+","+a(p-o.by/2)+"h"+n(o.bx)+"v"+a(o.by)+"h-"+n(o.bx)+"Z":y?m="M0,0L"+n(f*Rf+d)+","+a(Rf+p)+"v"+a(o.by/2-Rf)+"h"+n(f*o.bx)+"v-"+a(o.by)+"H"+n(f*Rf+d)+"V"+a(p-Rf)+"Z":m="M"+n(f*Rf+d)+","+a(p-o.by/2)+"h"+n(f*o.bx)+"v"+a(o.by)+"h"+n(-f*o.bx)+"Z",s.select("path").attr("d",m);var w=d+c.textShiftX,_=p+o.ty0-o.by/2+iu,b=o.textAlign||"auto";b!=="auto"&&(b==="left"&&u!=="start"?(l.attr("text-anchor","start"),w=v?-o.bx/2-o.tx2width/2+iu:-o.bx-iu):b==="right"&&u!=="end"&&(l.attr("text-anchor","end"),w=v?o.bx/2-o.tx2width/2-iu:o.bx+iu)),l.call(qp.positionText,n(w),a(_)),o.tx2width&&(s.select("text.name").call(qp.positionText,n(c.text2ShiftX+c.alignShift*iu+d),a(p+o.ty0-o.by/2+iu)),s.select("rect").call($1.setRect,n(c.text2ShiftX+(c.alignShift-1)*o.tx2width/2+d),a(p-o.by/2-1),n(o.tx2width),a(o.by+2)))})}function uEt(e,t){var r=e.index,i=e.trace||{},n=e.cd[0],a=e.cd[r]||{};function o(h){return h||sy(h)&&h===0}var s=Array.isArray(r)?function(h,d){var p=oc.castOption(n,r,h);return o(p)?p:oc.extractOption({},i,"",d)}:function(h,d){return oc.extractOption(a,i,h,d)};function l(h,d,p){var v=s(d,p);o(v)&&(e[h]=v)}if(l("hoverinfo","hi","hoverinfo"),l("bgcolor","hbg","hoverlabel.bgcolor"),l("borderColor","hbc","hoverlabel.bordercolor"),l("fontFamily","htf","hoverlabel.font.family"),l("fontSize","hts","hoverlabel.font.size"),l("fontColor","htc","hoverlabel.font.color"),l("fontWeight","htw","hoverlabel.font.weight"),l("fontStyle","hty","hoverlabel.font.style"),l("fontVariant","htv","hoverlabel.font.variant"),l("nameLength","hnl","hoverlabel.namelength"),l("textAlign","hta","hoverlabel.align"),e.posref=t==="y"||t==="closest"&&i.orientation==="h"?e.xa._offset+(e.x0+e.x1)/2:e.ya._offset+(e.y0+e.y1)/2,e.x0=oc.constrain(e.x0,0,e.xa._length),e.x1=oc.constrain(e.x1,0,e.xa._length),e.y0=oc.constrain(e.y0,0,e.ya._length),e.y1=oc.constrain(e.y1,0,e.ya._length),e.xLabelVal!==void 0&&(e.xLabel="xLabel"in e?e.xLabel:Y1.hoverLabelText(e.xa,e.xLabelVal,i.xhoverformat),e.xVal=e.xa.c2d(e.xLabelVal)),e.yLabelVal!==void 0&&(e.yLabel="yLabel"in e?e.yLabel:Y1.hoverLabelText(e.ya,e.yLabelVal,i.yhoverformat),e.yVal=e.ya.c2d(e.yLabelVal)),e.zLabelVal!==void 0&&e.zLabel===void 0&&(e.zLabel=String(e.zLabelVal)),!isNaN(e.xerr)&&!(e.xa.type==="log"&&e.xerr<=0)){var u=Y1.tickText(e.xa,e.xa.c2l(e.xerr),"hover").text;e.xerrneg!==void 0?e.xLabel+=" +"+u+" / -"+Y1.tickText(e.xa,e.xa.c2l(e.xerrneg),"hover").text:e.xLabel+=" \xB1 "+u,t==="x"&&(e.distance+=1)}if(!isNaN(e.yerr)&&!(e.ya.type==="log"&&e.yerr<=0)){var f=Y1.tickText(e.ya,e.ya.c2l(e.yerr),"hover").text;e.yerrneg!==void 0?e.yLabel+=" +"+f+" / -"+Y1.tickText(e.ya,e.ya.c2l(e.yerrneg),"hover").text:e.yLabel+=" \xB1 "+f,t==="y"&&(e.distance+=1)}var c=e.hoverinfo||e.trace.hoverinfo;return c&&c!=="all"&&(c=Array.isArray(c)?c:c.split("+"),c.indexOf("x")===-1&&(e.xLabel=void 0),c.indexOf("y")===-1&&(e.yLabel=void 0),c.indexOf("z")===-1&&(e.zLabel=void 0),c.indexOf("text")===-1&&(e.text=void 0),c.indexOf("name")===-1&&(e.name=void 0)),e}function hye(e,t,r){var i=r.container,n=r.fullLayout,a=n._size,o=r.event,s=!!t.hLinePoint,l=!!t.vLinePoint,u,f;if(i.selectAll(".spikeline").remove(),!!(l||s)){var c=Wc.combine(n.plot_bgcolor,n.paper_bgcolor);if(s){var h=t.hLinePoint,d,p;u=h&&h.xa,f=h&&h.ya;var v=f.spikesnap;v==="cursor"?(d=o.pointerX,p=o.pointerY):(d=u._offset+h.x,p=f._offset+h.y);var y=Wc.wcagContrast(h.color,c)<1.5?Wc.contrast(c):h.color,m=f.spikemode,w=f.spikethickness,_=f.spikecolor||y,b=Y1.getPxPosition(e,f),M,x;if(m.indexOf("toaxis")!==-1||m.indexOf("across")!==-1){if(m.indexOf("toaxis")!==-1&&(M=b,x=d),m.indexOf("across")!==-1){var A=f._counterDomainMin,T=f._counterDomainMax;f.anchor==="free"&&(A=Math.min(A,f.position),T=Math.max(T,f.position)),M=a.l+A*a.w,x=a.l+T*a.w}i.insert("line",":first-child").attr({x1:M,x2:x,y1:p,y2:p,"stroke-width":w,stroke:_,"stroke-dasharray":$1.dashStyle(f.spikedash,w)}).classed("spikeline",!0).classed("crisp",!0),i.insert("line",":first-child").attr({x1:M,x2:x,y1:p,y2:p,"stroke-width":w+2,stroke:c}).classed("spikeline",!0).classed("crisp",!0)}m.indexOf("marker")!==-1&&i.insert("circle",":first-child").attr({cx:b+(f.side!=="right"?w:-w),cy:p,r:w,fill:_}).classed("spikeline",!0)}if(l){var g=t.vLinePoint,E,S;u=g&&g.xa,f=g&&g.ya;var C=u.spikesnap;C==="cursor"?(E=o.pointerX,S=o.pointerY):(E=u._offset+g.x,S=f._offset+g.y);var k=Wc.wcagContrast(g.color,c)<1.5?Wc.contrast(c):g.color,D=u.spikemode,L=u.spikethickness,P=u.spikecolor||k,I=Y1.getPxPosition(e,u),F,z;if(D.indexOf("toaxis")!==-1||D.indexOf("across")!==-1){if(D.indexOf("toaxis")!==-1&&(F=I,z=S),D.indexOf("across")!==-1){var B=u._counterDomainMin,O=u._counterDomainMax;u.anchor==="free"&&(B=Math.min(B,u.position),O=Math.max(O,u.position)),F=a.t+(1-O)*a.h,z=a.t+(1-B)*a.h}i.insert("line",":first-child").attr({x1:E,x2:E,y1:F,y2:z,"stroke-width":L,stroke:P,"stroke-dasharray":$1.dashStyle(u.spikedash,L)}).classed("spikeline",!0).classed("crisp",!0),i.insert("line",":first-child").attr({x1:E,x2:E,y1:F,y2:z,"stroke-width":L+2,stroke:c}).classed("spikeline",!0).classed("crisp",!0)}D.indexOf("marker")!==-1&&i.insert("circle",":first-child").attr({cx:E,cy:I-(u.side!=="top"?L:-L),r:L,fill:P}).classed("spikeline",!0)}}}function fEt(e,t,r){if(!r||r.length!==e._hoverdata.length)return!0;for(var i=r.length-1;i>=0;i--){var n=r[i],a=e._hoverdata[i];if(n.curveNumber!==a.curveNumber||String(n.pointNumber)!==String(a.pointNumber)||String(n.pointNumbers)!==String(a.pointNumbers)||n.binNumber!==a.binNumber)return!0}return!1}function dye(e,t){return!t||t.vLinePoint!==e._spikepoints.vLinePoint||t.hLinePoint!==e._spikepoints.hLinePoint}function pye(e,t){return qp.plainText(e||"",{len:t,allowedTags:["br","sub","sup","b","i","em","s","u"]})}function cEt(e,t){for(var r=t.charAt(0),i=[],n=[],a=[],o=0;oe.offsetTop+e.clientTop,wye=e=>e.offsetLeft+e.clientLeft;function Gw(e,t){var r=e._fullLayout,i=t.getBoundingClientRect(),n=i.left,a=i.top,o=n+i.width,s=a+i.height,l=oc.apply3DTransform(r._invTransform)(n,a),u=oc.apply3DTransform(r._invTransform)(o,s),f=l[0],c=l[1],h=u[0],d=u[1];return{x:f,y:c,width:h-f,height:d-c,top:Math.min(c,d),left:Math.min(f,h),right:Math.max(f,h),bottom:Math.max(c,d)}}});var N6=K((eVr,Aye)=>{"use strict";var hEt=Mt(),dEt=ko(),pEt=od().isUnifiedHover;Aye.exports=function(t,r,i,n){n=n||{};var a=r.legend;function o(s){n.font[s]||(n.font[s]=a?r.legend.font[s]:r.font[s])}r&&pEt(r.hovermode)&&(n.font||(n.font={}),o("size"),o("family"),o("color"),o("weight"),o("style"),o("variant"),a?(n.bgcolor||(n.bgcolor=dEt.combine(r.legend.bgcolor,r.paper_bgcolor)),n.bordercolor||(n.bordercolor=r.legend.bordercolor)):n.bgcolor||(n.bgcolor=r.paper_bgcolor)),i("hoverlabel.bgcolor",n.bgcolor),i("hoverlabel.bordercolor",n.bordercolor),i("hoverlabel.namelength",n.namelength),i("hoverlabel.showarrow",n.showarrow),hEt.coerceFont(i,"hoverlabel.font",n.font),i("hoverlabel.align",n.align)}});var Mye=K((tVr,Tye)=>{"use strict";var vEt=Mt(),mEt=N6(),yEt=gg();Tye.exports=function(t,r){function i(n,a){return vEt.coerce(t,r,yEt,n,a)}mEt(t,r,i)}});var kye=K((rVr,Eye)=>{"use strict";var Sye=Mt(),gEt=Q3(),xEt=N6();Eye.exports=function(t,r,i,n){function a(s,l){return Sye.coerce(t,r,gEt,s,l)}var o=Sye.extendFlat({},n.hoverlabel);r.hovertemplate&&(o.namelength=-1),xEt(t,r,a,o)}});var oj=K((iVr,Cye)=>{"use strict";var bEt=Mt(),_Et=gg();Cye.exports=function(t,r){function i(n,a){return r[n]!==void 0?r[n]:bEt.coerce(t,r,_Et,n,a)}return i("clickmode"),i("hoversubplots"),i("hoveranywhere"),i("clickanywhere"),i("hovermode")}});var Lye=K((nVr,Fye)=>{"use strict";var Dye=Mt(),wEt=gg(),AEt=oj(),TEt=N6();Fye.exports=function(t,r){function i(u,f){return Dye.coerce(t,r,wEt,u,f)}var n=AEt(t,r);n&&(i("hoverdistance"),i("spikedistance"),n.indexOf("unified")!==-1&&i("hoversort"));var a=i("dragmode");a==="select"&&i("selectdirection");var o=r._has("map"),s=r._has("geo"),l=r._basePlotModules.length;r.dragmode==="zoom"&&((o||s)&&l===1||o&&s&&l===2)&&(r.dragmode="pan"),TEt(t,r,i),Dye.coerceFont(i,"hoverlabel.grouptitlefont",r.hoverlabel.font)}});var Iye=K((aVr,zye)=>{"use strict";var sj=Mt(),Pye=Ho();zye.exports=function(t){var r=t.calcdata,i=t._fullLayout;function n(u){return function(f){return sj.coerceHoverinfo({hoverinfo:f},{_module:u._module},i)}}for(var a=0;a{"use strict";var SEt=Ho(),Rye=od(),EEt=aj().hover;Bye.exports=function(t,r,i){var n=SEt.getComponentMethod("annotations","onClick")(t,t._hoverdata),a=t._fullLayout;i!==void 0&&EEt(t,r,i,!0);function o(){var l,u,f,c,h,d;var s={points:t._hoverdata,event:r};(l=s.xaxes)!=null||(s.xaxes=t._hoverXAxes),(u=s.yaxes)!=null||(s.yaxes=t._hoverYAxes),(f=s.xvals)!=null||(s.xvals=t._hoverXVals&&Rye.c2dApply(t._hoverXAxes,t._hoverXVals)),(c=s.yvals)!=null||(s.yvals=t._hoverYVals&&Rye.c2dApply(t._hoverYAxes,t._hoverYVals)),(h=s.xPixel)!=null||(s.xPixel=t._hoverPointerX),(d=s.yPixel)!=null||(s.yPixel=t._hoverPointerY),t.emit("plotly_click",s)}(t._hoverdata||a.clickanywhere)&&r&&r.target&&(t._hoverdata||(t._hoverdata=[]),n&&n.then?n.then(o):o(),r.stopImmediatePropagation&&r.stopImmediatePropagation())}});var Uf=K((sVr,Vye)=>{"use strict";var kEt=No(),PL=Mt(),CEt=N0(),V6=od(),Oye=gg(),Nye=aj();Vye.exports={moduleType:"component",name:"fx",constants:(WT(),ar(jT)),schema:{layout:Oye},attributes:Q3(),layoutAttributes:Oye,supplyLayoutGlobalDefaults:Mye(),supplyDefaults:kye(),supplyLayoutDefaults:Lye(),calc:Iye(),getDistanceFunction:V6.getDistanceFunction,getClosest:V6.getClosest,inbox:V6.inbox,quadrature:V6.quadrature,appendArrayPointValue:V6.appendArrayPointValue,castHoverOption:FEt,castHoverinfo:LEt,hover:Nye.hover,unhover:CEt.unhover,loneHover:Nye.loneHover,loneUnhover:DEt,click:qye()};function DEt(e){var t=PL.isD3Selection(e)?e:kEt.select(e);t.selectAll("g.hovertext").remove(),t.selectAll(".spikeline").remove()}function FEt(e,t,r){return PL.castOption(e,t,"hoverlabel."+r)}function LEt(e,t,r){function i(n){return PL.coerceHoverinfo({hoverinfo:n},{_module:e._module},t)}return PL.castOption(e,r,"hoverinfo",i)}});var X1=K(ly=>{"use strict";ly.selectMode=function(e){return e==="lasso"||e==="select"};ly.drawMode=function(e){return e==="drawclosedpath"||e==="drawopenpath"||e==="drawline"||e==="drawrect"||e==="drawcircle"};ly.openMode=function(e){return e==="drawline"||e==="drawopenpath"};ly.rectMode=function(e){return e==="select"||e==="drawline"||e==="drawrect"||e==="drawcircle"};ly.freeMode=function(e){return e==="lasso"||e==="drawclosedpath"||e==="drawopenpath"};ly.selectingOrDrawing=function(e){return ly.freeMode(e)||ly.rectMode(e)}});var U6=K((uVr,Uye)=>{"use strict";Uye.exports=function(t){var r=t._fullLayout;r._glcanvas&&r._glcanvas.size()&&r._glcanvas.each(function(i){i.regl&&i.regl.clear({color:!0,depth:!0})})}});var zL=K((fVr,Gye)=>{"use strict";Gye.exports={undo:{width:857.1,height:1e3,path:"m857 350q0-87-34-166t-91-137-137-92-166-34q-96 0-183 41t-147 114q-4 6-4 13t5 11l76 77q6 5 14 5 9-1 13-7 41-53 100-82t126-29q58 0 110 23t92 61 61 91 22 111-22 111-61 91-92 61-110 23q-55 0-105-20t-90-57l77-77q17-16 8-38-10-23-33-23h-250q-15 0-25 11t-11 25v250q0 24 22 33 22 10 39-8l72-72q60 57 137 88t159 31q87 0 166-34t137-92 91-137 34-166z",transform:"matrix(1 0 0 -1 0 850)"},home:{width:928.6,height:1e3,path:"m786 296v-267q0-15-11-26t-25-10h-214v214h-143v-214h-214q-15 0-25 10t-11 26v267q0 1 0 2t0 2l321 264 321-264q1-1 1-4z m124 39l-34-41q-5-5-12-6h-2q-7 0-12 3l-386 322-386-322q-7-4-13-4-7 2-12 7l-35 41q-4 5-3 13t6 12l401 334q18 15 42 15t43-15l136-114v109q0 8 5 13t13 5h107q8 0 13-5t5-13v-227l122-102q5-5 6-12t-4-13z",transform:"matrix(1 0 0 -1 0 850)"},"camera-retro":{width:1e3,height:1e3,path:"m518 386q0 8-5 13t-13 5q-37 0-63-27t-26-63q0-8 5-13t13-5 12 5 5 13q0 23 16 38t38 16q8 0 13 5t5 13z m125-73q0-59-42-101t-101-42-101 42-42 101 42 101 101 42 101-42 42-101z m-572-320h858v71h-858v-71z m643 320q0 89-62 152t-152 62-151-62-63-152 63-151 151-63 152 63 62 151z m-571 358h214v72h-214v-72z m-72-107h858v143h-462l-36-71h-360v-72z m929 143v-714q0-30-21-51t-50-21h-858q-29 0-50 21t-21 51v714q0 30 21 51t50 21h858q29 0 50-21t21-51z",transform:"matrix(1 0 0 -1 0 850)"},curlybraces:{width:18,height:16,path:"M 9,4 C 7.354992,4 6,5.354992 6,7 V 9 C 6,9.2999997 5.8778068,9.8883542 5.5878906,10.291016 5.2979744,10.693677 4.9222213,11 4,11 a 1.0001,1.0001 0 0 0 0,2 c 0.2999997,0 0.8883542,0.122193 1.2910156,0.412109 C 5.693677,13.702026 6,14.077779 6,15 v 2 c 0,1.645008 1.354992,3 3,3 h 0.5 a 1,1 0 0 0 1,-1 1,1 0 0 0 -1,-1 H 9 C 8.4358712,18 8,17.564129 8,17 V 15 C 8,13.625876 7.3766799,12.602305 6.6113281,11.96875 6.8086352,11.794047 7.0679793,11.657537 7.2109375,11.458984 7.8210204,10.611647 8,9.6999993 8,9 V 7 C 8,6.4358712 8.4358712,6 9,6 h 0.5 a 1,1 0 0 0 1,-1 1,1 0 0 0 -1,-1 z m 5.5,0 a 1,1 0 0 0 -1,1 1,1 0 0 0 1,1 H 15 c 0.564129,0 1,0.4358712 1,1 v 2 c 0,0.6999993 0.17898,1.611647 0.789062,2.458984 0.142959,0.198553 0.402303,0.335063 0.59961,0.509766 C 16.62332,12.602305 16,13.625876 16,15 v 2 c 0,0.564129 -0.435871,1 -1,1 h -0.5 a 1,1 0 0 0 -1,1 1,1 0 0 0 1,1 H 15 c 1.645008,0 3,-1.354992 3,-3 v -2 c 0,-0.922221 0.306323,-1.297974 0.708984,-1.587891 C 19.111646,13.122193 19.7,13 20,13 a 1.0001,1.0001 0 0 0 0,-2 C 19.077779,11 18.702026,10.693677 18.412109,10.291016 18.122193,9.8883542 18,9.2999997 18,9 V 7 C 18,5.354992 16.645008,4 15,4 Z",transform:"translate(-3 -4)"},zoombox:{width:1e3,height:1e3,path:"m1000-25l-250 251c40 63 63 138 63 218 0 224-182 406-407 406-224 0-406-182-406-406s183-406 407-406c80 0 155 22 218 62l250-250 125 125z m-812 250l0 438 437 0 0-438-437 0z m62 375l313 0 0-312-313 0 0 312z",transform:"matrix(1 0 0 -1 0 850)"},pan:{width:1e3,height:1e3,path:"m1000 350l-187 188 0-125-250 0 0 250 125 0-188 187-187-187 125 0 0-250-250 0 0 125-188-188 186-187 0 125 252 0 0-250-125 0 187-188 188 188-125 0 0 250 250 0 0-126 187 188z",transform:"matrix(1 0 0 -1 0 850)"},zoom_plus:{width:875,height:1e3,path:"m1 787l0-875 875 0 0 875-875 0z m687-500l-187 0 0-187-125 0 0 187-188 0 0 125 188 0 0 187 125 0 0-187 187 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},zoom_minus:{width:875,height:1e3,path:"m0 788l0-876 875 0 0 876-875 0z m688-500l-500 0 0 125 500 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},autoscale:{width:1e3,height:1e3,path:"m250 850l-187 0-63 0 0-62 0-188 63 0 0 188 187 0 0 62z m688 0l-188 0 0-62 188 0 0-188 62 0 0 188 0 62-62 0z m-875-938l0 188-63 0 0-188 0-62 63 0 187 0 0 62-187 0z m875 188l0-188-188 0 0-62 188 0 62 0 0 62 0 188-62 0z m-125 188l-1 0-93-94-156 156 156 156 92-93 2 0 0 250-250 0 0-2 93-92-156-156-156 156 94 92 0 2-250 0 0-250 0 0 93 93 157-156-157-156-93 94 0 0 0-250 250 0 0 0-94 93 156 157 156-157-93-93 0 0 250 0 0 250z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_basic:{width:1500,height:1e3,path:"m375 725l0 0-375-375 375-374 0-1 1125 0 0 750-1125 0z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_compare:{width:1125,height:1e3,path:"m187 786l0 2-187-188 188-187 0 0 937 0 0 373-938 0z m0-499l0 1-187-188 188-188 0 0 937 0 0 376-938-1z",transform:"matrix(1 0 0 -1 0 850)"},plotlylogo:{width:1542,height:1e3,path:"m0-10h182v-140h-182v140z m228 146h183v-286h-183v286z m225 714h182v-1000h-182v1000z m225-285h182v-715h-182v715z m225 142h183v-857h-183v857z m231-428h182v-429h-182v429z m225-291h183v-138h-183v138z",transform:"matrix(1 0 0 -1 0 850)"},"z-axis":{width:1e3,height:1e3,path:"m833 5l-17 108v41l-130-65 130-66c0 0 0 38 0 39 0-1 36-14 39-25 4-15-6-22-16-30-15-12-39-16-56-20-90-22-187-23-279-23-261 0-341 34-353 59 3 60 228 110 228 110-140-8-351-35-351-116 0-120 293-142 474-142 155 0 477 22 477 142 0 50-74 79-163 96z m-374 94c-58-5-99-21-99-40 0-24 65-43 144-43 79 0 143 19 143 43 0 19-42 34-98 40v216h87l-132 135-133-135h88v-216z m167 515h-136v1c16 16 31 34 46 52l84 109v54h-230v-71h124v-1c-16-17-28-32-44-51l-89-114v-51h245v72z",transform:"matrix(1 0 0 -1 0 850)"},"3d_rotate":{width:1e3,height:1e3,path:"m922 660c-5 4-9 7-14 11-359 263-580-31-580-31l-102 28 58-400c0 1 1 1 2 2 118 108 351 249 351 249s-62 27-100 42c88 83 222 183 347 122 16-8 30-17 44-27-2 1-4 2-6 4z m36-329c0 0 64 229-88 296-62 27-124 14-175-11 157-78 225-208 249-266 8-19 11-31 11-31 2 5 6 15 11 32-5-13-8-20-8-20z m-775-239c70-31 117-50 198-32-121 80-199 346-199 346l-96-15-58-12c0 0 55-226 155-287z m603 133l-317-139c0 0 4-4 19-14 7-5 24-15 24-15s-177-147-389 4c235-287 536-112 536-112l31-22 100 299-4-1z m-298-153c6-4 14-9 24-15 0 0-17 10-24 15z",transform:"matrix(1 0 0 -1 0 850)"},camera:{width:1e3,height:1e3,path:"m500 450c-83 0-150-67-150-150 0-83 67-150 150-150 83 0 150 67 150 150 0 83-67 150-150 150z m400 150h-120c-16 0-34 13-39 29l-31 93c-6 15-23 28-40 28h-340c-16 0-34-13-39-28l-31-94c-6-15-23-28-40-28h-120c-55 0-100-45-100-100v-450c0-55 45-100 100-100h800c55 0 100 45 100 100v450c0 55-45 100-100 100z m-400-550c-138 0-250 112-250 250 0 138 112 250 250 250 138 0 250-112 250-250 0-138-112-250-250-250z m365 380c-19 0-35 16-35 35 0 19 16 35 35 35 19 0 35-16 35-35 0-19-16-35-35-35z",transform:"matrix(1 0 0 -1 0 850)"},movie:{width:1e3,height:1e3,path:"m938 413l-188-125c0 37-17 71-44 94 64 38 107 107 107 187 0 121-98 219-219 219-121 0-219-98-219-219 0-61 25-117 66-156h-115c30 33 49 76 49 125 0 103-84 187-187 187s-188-84-188-187c0-57 26-107 65-141-38-22-65-62-65-109v-250c0-70 56-126 125-126h500c69 0 125 56 125 126l188-126c34 0 62 28 62 63v375c0 35-28 63-62 63z m-750 0c-69 0-125 56-125 125s56 125 125 125 125-56 125-125-56-125-125-125z m406-1c-87 0-157 70-157 157 0 86 70 156 157 156s156-70 156-156-70-157-156-157z",transform:"matrix(1 0 0 -1 0 850)"},question:{width:857.1,height:1e3,path:"m500 82v107q0 8-5 13t-13 5h-107q-8 0-13-5t-5-13v-107q0-8 5-13t13-5h107q8 0 13 5t5 13z m143 375q0 49-31 91t-77 65-95 23q-136 0-207-119-9-14 4-24l74-55q4-4 10-4 9 0 14 7 30 38 48 51 19 14 48 14 27 0 48-15t21-33q0-21-11-34t-38-25q-35-16-65-48t-29-70v-20q0-8 5-13t13-5h107q8 0 13 5t5 13q0 10 12 27t30 28q18 10 28 16t25 19 25 27 16 34 7 45z m214-107q0-117-57-215t-156-156-215-58-216 58-155 156-58 215 58 215 155 156 216 58 215-58 156-156 57-215z",transform:"matrix(1 0 0 -1 0 850)"},disk:{width:857.1,height:1e3,path:"m214-7h429v214h-429v-214z m500 0h72v500q0 8-6 21t-11 20l-157 156q-5 6-19 12t-22 5v-232q0-22-15-38t-38-16h-322q-22 0-37 16t-16 38v232h-72v-714h72v232q0 22 16 38t37 16h465q22 0 38-16t15-38v-232z m-214 518v178q0 8-5 13t-13 5h-107q-7 0-13-5t-5-13v-178q0-8 5-13t13-5h107q7 0 13 5t5 13z m357-18v-518q0-22-15-38t-38-16h-750q-23 0-38 16t-16 38v750q0 22 16 38t38 16h517q23 0 50-12t42-26l156-157q16-15 27-42t11-49z",transform:"matrix(1 0 0 -1 0 850)"},cloudupload:{width:640,height:640,path:"M451.5 160C434.9 160 418.8 164.5 404.7 172.7C388.9 156.7 370.5 143.3 350.2 133.2C378.4 109.2 414.3 96 451.5 96C537.9 96 608 166 608 252.5C608 294 591.5 333.8 562.2 363.1L491.1 434.2C461.8 463.5 422 480 380.5 480C294.1 480 224 410 224 323.5C224 322 224 320.5 224.1 319C224.6 301.3 239.3 287.4 257 287.9C274.7 288.4 288.6 303.1 288.1 320.8C288.1 321.7 288.1 322.6 288.1 323.4C288.1 374.5 329.5 415.9 380.6 415.9C405.1 415.9 428.6 406.2 446 388.8L517.1 317.7C534.4 300.4 544.2 276.8 544.2 252.3C544.2 201.2 502.8 159.8 451.7 159.8zM307.2 237.3C305.3 236.5 303.4 235.4 301.7 234.2C289.1 227.7 274.7 224 259.6 224C235.1 224 211.6 233.7 194.2 251.1L123.1 322.2C105.8 339.5 96 363.1 96 387.6C96 438.7 137.4 480.1 188.5 480.1C205 480.1 221.1 475.7 235.2 467.5C251 483.5 269.4 496.9 289.8 507C261.6 530.9 225.8 544.2 188.5 544.2C102.1 544.2 32 474.2 32 387.7C32 346.2 48.5 306.4 77.8 277.1L148.9 206C178.2 176.7 218 160.2 259.5 160.2C346.1 160.2 416 230.8 416 317.1C416 318.4 416 319.7 416 321C415.6 338.7 400.9 352.6 383.2 352.2C365.5 351.8 351.6 337.1 352 319.4C352 318.6 352 317.9 352 317.1C352 283.4 334 253.8 307.2 237.5z",transform:"matrix(1 0 0 1 -15 -15)"},drawopenpath:{width:70,height:70,path:"M33.21,85.65a7.31,7.31,0,0,1-2.59-.48c-8.16-3.11-9.27-19.8-9.88-41.3-.1-3.58-.19-6.68-.35-9-.15-2.1-.67-3.48-1.43-3.79-2.13-.88-7.91,2.32-12,5.86L3,32.38c1.87-1.64,11.55-9.66,18.27-6.9,2.13.87,4.75,3.14,5.17,9,.17,2.43.26,5.59.36,9.25a224.17,224.17,0,0,0,1.5,23.4c1.54,10.76,4,12.22,4.48,12.4.84.32,2.79-.46,5.76-3.59L43,80.07C41.53,81.57,37.68,85.64,33.21,85.65ZM74.81,69a11.34,11.34,0,0,0,6.09-6.72L87.26,44.5,74.72,32,56.9,38.35c-2.37.86-5.57,3.42-6.61,6L38.65,72.14l8.42,8.43ZM55,46.27a7.91,7.91,0,0,1,3.64-3.17l14.8-5.3,8,8L76.11,60.6l-.06.19a6.37,6.37,0,0,1-3,3.43L48.25,74.59,44.62,71Zm16.57,7.82A6.9,6.9,0,1,0,64.64,61,6.91,6.91,0,0,0,71.54,54.09Zm-4.05,0a2.85,2.85,0,1,1-2.85-2.85A2.86,2.86,0,0,1,67.49,54.09Zm-4.13,5.22L60.5,56.45,44.26,72.7l2.86,2.86ZM97.83,35.67,84.14,22l-8.57,8.57L89.26,44.24Zm-13.69-8,8,8-2.85,2.85-8-8Z",transform:"matrix(1 0 0 1 -15 -15)"},drawclosedpath:{width:90,height:90,path:"M88.41,21.12a26.56,26.56,0,0,0-36.18,0l-2.07,2-2.07-2a26.57,26.57,0,0,0-36.18,0,23.74,23.74,0,0,0,0,34.8L48,90.12a3.22,3.22,0,0,0,4.42,0l36-34.21a23.73,23.73,0,0,0,0-34.79ZM84,51.24,50.16,83.35,16.35,51.25a17.28,17.28,0,0,1,0-25.47,20,20,0,0,1,27.3,0l4.29,4.07a3.23,3.23,0,0,0,4.44,0l4.29-4.07a20,20,0,0,1,27.3,0,17.27,17.27,0,0,1,0,25.46ZM66.76,47.68h-33v6.91h33ZM53.35,35H46.44V68h6.91Z",transform:"matrix(1 0 0 1 -5 -5)"},lasso:{width:1031,height:1e3,path:"m1018 538c-36 207-290 336-568 286-277-48-473-256-436-463 10-57 36-108 76-151-13-66 11-137 68-183 34-28 75-41 114-42l-55-70 0 0c-2-1-3-2-4-3-10-14-8-34 5-45 14-11 34-8 45 4 1 1 2 3 2 5l0 0 113 140c16 11 31 24 45 40 4 3 6 7 8 11 48-3 100 0 151 9 278 48 473 255 436 462z m-624-379c-80 14-149 48-197 96 42 42 109 47 156 9 33-26 47-66 41-105z m-187-74c-19 16-33 37-39 60 50-32 109-55 174-68-42-25-95-24-135 8z m360 75c-34-7-69-9-102-8 8 62-16 128-68 170-73 59-175 54-244-5-9 20-16 40-20 61-28 159 121 317 333 354s407-60 434-217c28-159-121-318-333-355z",transform:"matrix(1 0 0 -1 0 850)"},selectbox:{width:1e3,height:1e3,path:"m0 850l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-285l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z",transform:"matrix(1 0 0 -1 0 850)"},drawline:{width:70,height:70,path:"M60.64,62.3a11.29,11.29,0,0,0,6.09-6.72l6.35-17.72L60.54,25.31l-17.82,6.4c-2.36.86-5.57,3.41-6.6,6L24.48,65.5l8.42,8.42ZM40.79,39.63a7.89,7.89,0,0,1,3.65-3.17l14.79-5.31,8,8L61.94,54l-.06.19a6.44,6.44,0,0,1-3,3.43L34.07,68l-3.62-3.63Zm16.57,7.81a6.9,6.9,0,1,0-6.89,6.9A6.9,6.9,0,0,0,57.36,47.44Zm-4,0a2.86,2.86,0,1,1-2.85-2.85A2.86,2.86,0,0,1,53.32,47.44Zm-4.13,5.22L46.33,49.8,30.08,66.05l2.86,2.86ZM83.65,29,70,15.34,61.4,23.9,75.09,37.59ZM70,21.06l8,8-2.84,2.85-8-8ZM87,80.49H10.67V87H87Z",transform:"matrix(1 0 0 1 -15 -15)"},drawrect:{width:80,height:80,path:"M78,22V79H21V22H78m9-9H12V88H87V13ZM68,46.22H31V54H68ZM53,32H45.22V69H53Z",transform:"matrix(1 0 0 1 -10 -10)"},drawcircle:{width:80,height:80,path:"M50,84.72C26.84,84.72,8,69.28,8,50.3S26.84,15.87,50,15.87,92,31.31,92,50.3,73.16,84.72,50,84.72Zm0-60.59c-18.6,0-33.74,11.74-33.74,26.17S31.4,76.46,50,76.46,83.74,64.72,83.74,50.3,68.6,24.13,50,24.13Zm17.15,22h-34v7.11h34Zm-13.8-13H46.24v34h7.11Z",transform:"matrix(1 0 0 1 -10 -10)"},eraseshape:{width:80,height:80,path:"M82.77,78H31.85L6,49.57,31.85,21.14H82.77a8.72,8.72,0,0,1,8.65,8.77V69.24A8.72,8.72,0,0,1,82.77,78ZM35.46,69.84H82.77a.57.57,0,0,0,.49-.6V29.91a.57.57,0,0,0-.49-.61H35.46L17,49.57Zm32.68-34.7-24,24,5,5,24-24Zm-19,.53-5,5,24,24,5-5Z",transform:"matrix(1 0 0 1 -10 -10)"},spikeline:{width:1e3,height:1e3,path:"M512 409c0-57-46-104-103-104-57 0-104 47-104 104 0 57 47 103 104 103 57 0 103-46 103-103z m-327-39l92 0 0 92-92 0z m-185 0l92 0 0 92-92 0z m370-186l92 0 0 93-92 0z m0-184l92 0 0 92-92 0z",transform:"matrix(1.5 0 0 -1.5 0 850)"},pencil:{width:1792,height:1792,path:"M491 1536l91-91-235-235-91 91v107h128v128h107zm523-928q0-22-22-22-10 0-17 7l-542 542q-7 7-7 17 0 22 22 22 10 0 17-7l542-542q7-7 7-17zm-54-192l416 416-832 832h-416v-416zm683 96q0 53-37 90l-166 166-416-416 166-165q36-38 90-38 53 0 91 38l235 234q37 39 37 91z",transform:"matrix(1 0 0 1 0 1)"},newplotlylogo:{name:"newplotlylogo",svg:[""," plotly-logomark"," "," "," "," "," "," "," "," "," "," "," "," "," ",""].join("")}}});var IL={};Fl(IL,{CIRCLE_SIDES:()=>PEt,SQRT2:()=>NEt,cos45:()=>qEt,i000:()=>zEt,i090:()=>IEt,i180:()=>REt,i270:()=>BEt,sin45:()=>OEt});var PEt,zEt,IEt,REt,BEt,qEt,OEt,NEt,RL=ps(()=>{"use strict";PEt=32,zEt=0,IEt=8,REt=16,BEt=24,qEt=Math.cos(Math.PI/4),OEt=Math.sin(Math.PI/4),NEt=Math.sqrt(2)});var BL=K((cVr,jye)=>{"use strict";var VEt=Mt().strTranslate;function Hye(e,t){switch(e.type){case"log":return e.p2d(t);case"date":return e.p2r(t,0,e.calendar);default:return e.p2r(t)}}function UEt(e,t){switch(e.type){case"log":return e.d2p(t);case"date":return e.r2p(t,0,e.calendar);default:return e.r2p(t)}}function GEt(e){var t=e._id.charAt(0)==="y"?1:0;return function(r){return Hye(e,r[t])}}function HEt(e){return VEt(e.xaxis._offset,e.yaxis._offset)}jye.exports={p2r:Hye,r2p:UEt,axValue:GEt,getTransform:HEt}});var Hg=K(uy=>{"use strict";var jEt=XG(),Yye=(RL(),ar(IL)),jw=Yye.CIRCLE_SIDES,lj=Yye.SQRT2,Xye=BL(),Wye=Xye.p2r,$ye=Xye.r2p,WEt=[0,3,4,5,6,1,2],$Et=[0,3,4,1,2];uy.writePaths=function(e){var t=e.length;if(!t)return"M0,0Z";for(var r="",i=0;i0&&l{"use strict";var Zye=Vf(),tge=X1(),YEt=tge.drawMode,XEt=tge.openMode,Ww=(RL(),ar(IL)),Kye=Ww.i000,Jye=Ww.i090,Qye=Ww.i180,ege=Ww.i270,ZEt=Ww.cos45,KEt=Ww.sin45,rge=BL(),OL=rge.p2r,jg=rge.r2p,JEt=Lg(),QEt=JEt.clearOutline,NL=Hg(),ekt=NL.readPaths,tkt=NL.writePaths,rkt=NL.ellipseOver,ikt=NL.fixDatesForPaths;function nkt(e,t){if(e.length){var r=e[0][0];if(r){var i=t.gd,n=t.isActiveShape,a=t.dragmode,o=(i.layout||{}).shapes||[];if(!YEt(a)&&n!==void 0){var s=i._fullLayout._activeShapeIndex;if(s{"use strict";var akt=X1(),okt=akt.selectMode,skt=Lg(),lkt=skt.clearOutline,uj=Hg(),ukt=uj.readPaths,fkt=uj.writePaths,ckt=uj.fixDatesForPaths;age.exports=function(t,r){if(t.length){var i=t[0][0];if(i){var n=i.getAttribute("d"),a=r.gd,o=a._fullLayout.newselection,s=r.plotinfo,l=s.xaxis,u=s.yaxis,f=r.isActiveSelection,c=r.dragmode,h=(a.layout||{}).selections||[];if(!okt(c)&&f!==void 0){var d=a._fullLayout._activeSelectionIndex;if(dmkt,paramIsX:()=>pkt,paramIsY:()=>vkt,paramRE:()=>dkt,segmentRE:()=>hkt});var hkt,dkt,pkt,vkt,mkt,j6=ps(()=>{"use strict";hkt=/[MLHVQCTSZ][^MLHVQCTSZ]*/g,dkt=/[^\s,]+/g,pkt={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:{}},vkt={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:3},Z:{}},mkt={M:2,L:2,H:1,V:1,Q:4,C:6,T:2,S:4,Z:0}});var $g=K(Ph=>{"use strict";var K1=(j6(),ar(H6)),oge=Mt(),Wg=Cs();Ph.rangeToShapePosition=function(e){return e.type==="log"?e.r2d:function(t){return t}};Ph.shapePositionToRange=function(e){return e.type==="log"?e.d2r:function(t){return t}};Ph.decodeDate=function(e){return function(t){return t.replace&&(t=t.replace("_"," ")),e(t)}};Ph.encodeDate=function(e){return function(t){return e(t).replace(" ","_")}};Ph.extractPathCoords=function(e,t,r){var i=[],n=e.match(K1.segmentRE);return n.forEach(function(a){var o=t[a.charAt(0)].drawn;if(o!==void 0){var s=a.slice(1).match(K1.paramRE);if(!(!s||s.length{let s=o.charAt(0),l=n[s].drawn!==void 0;return a+(l?1:0)},0)};Ph.getDataToPixel=function(e,t,r,i,n){var a=e._fullLayout._size,o;if(t)if(n==="domain")o=function(l){return t._length*(i?1-l:l)+t._offset};else{var s=Ph.shapePositionToRange(t);o=function(l){var u=Z1(t,r);return t._offset+t.r2p(s(l,!0))+u},t.type==="date"&&(o=Ph.decodeDate(o))}else i?o=function(l){return a.t+a.h*(1-l)}:o=function(l){return a.l+a.w*l};return o};Ph.getPixelToData=function(e,t,r,i){var n=e._fullLayout._size,a;if(t)if(i==="domain")a=function(s){var l=(s-t._offset)/t._length;return r?1-l:l};else{var o=Ph.rangeToShapePosition(t);a=function(s){return o(t.p2r(s-t._offset))}}else r?a=function(s){return 1-(s-n.t)/n.h}:a=function(s){return(s-n.l)/n.w};return a};Ph.roundPositionForSharpStrokeRendering=function(e,t){var r=Math.round(t%2)===1,i=Math.round(e);return r?i+.5:i};Ph.makeShapesOptionsAndPlotinfo=function(e,t){var r=e._fullLayout.shapes[t]||{},i=e._fullLayout._plots[r.xref+r.yref],n=!!i;return n?i._hadPlotinfo=!0:(i={},r.xref&&r.xref!=="paper"&&(i.xaxis=e._fullLayout[r.xref+"axis"]),r.yref&&r.yref!=="paper"&&(i.yaxis=e._fullLayout[r.yref+"axis"])),i.xsizemode=r.xsizemode,i.ysizemode=r.ysizemode,i.xanchor=r.xanchor,i.yanchor=r.yanchor,{options:r,plotinfo:i}};Ph.makeSelectionsOptionsAndPlotinfo=function(e,t){var r=e._fullLayout.selections[t]||{},i=e._fullLayout._plots[r.xref+r.yref],n=!!i;return n?i._hadPlotinfo=!0:(i={},r.xref&&(i.xaxis=e._fullLayout[r.xref+"axis"]),r.yref&&(i.yaxis=e._fullLayout[r.yref+"axis"])),{options:r,plotinfo:i}};Ph.getPathString=function(e,t){let r=t.type,i=Wg.getRefType(t.xref),n=Wg.getRefType(t.yref),a=e._fullLayout._size;var o,s,l,u,f,c,h,d,p,v,y,m;function w(E,S,C,k){var D;if(E)if(S==="domain")k?D=function(L){return E._offset+E._length*(1-L)}:D=function(L){return E._offset+E._length*L};else{let L=Ph.shapePositionToRange(E);D=function(P){return E._offset+E.r2p(L(P,!0))},C==="path"&&E.type==="date"&&(D=Ph.decodeDate(D))}else k?D=function(L){return a.t+a.h*(1-L)}:D=function(L){return a.l+a.w*L};return D}if(i==="array"?(h=[],o=t.xref.map(function(E){return Wg.getFromId(e,E)}),h=t.xref.map(function(E,S){return w(o[S],Wg.getRefType(E),r,!1)})):(o=Wg.getFromId(e,t.xref),h=w(o,i,r,!1)),n==="array"?(d=[],s=t.yref.map(function(E){return Wg.getFromId(e,E)}),d=t.yref.map(function(E,S){return w(s[S],Wg.getRefType(E),r,!0)})):(s=Wg.getFromId(e,t.yref),d=w(s,n,r,!0)),r==="path")return ykt(t,h,d);if(i==="array")l=Z1(o[0],t.x0shift),u=Z1(o[1],t.x1shift),p=h[0](t.x0)+l,v=h[1](t.x1)+u;else if(l=Z1(o,t.x0shift),u=Z1(o,t.x1shift),t.xsizemode==="pixel"){let E=h(t.xanchor);p=E+t.x0+l,v=E+t.x1+u}else p=h(t.x0)+l,v=h(t.x1)+u;if(n==="array")f=Z1(s[0],t.y0shift),c=Z1(s[1],t.y1shift),y=d[0](t.y0)+f,m=d[1](t.y1)+c;else if(f=Z1(s,t.y0shift),c=Z1(s,t.y1shift),t.ysizemode==="pixel"){let E=d(t.yanchor);y=E-t.y0+f,m=E-t.y1+c}else y=d(t.y0)+f,m=d(t.y1)+c;if(r==="line")return"M"+p+","+y+"L"+v+","+m;if(r==="rect")return"M"+p+","+y+"H"+v+"V"+m+"H"+p+"Z";var _=(p+v)/2,b=(y+m)/2,M=Math.abs(_-p),x=Math.abs(b-y),A="A"+M+","+x,T=_+M+","+b,g=_+","+(b-x);return"M"+T+A+" 0 1,1 "+g+A+" 0 0,1 "+T+"Z"};function ykt(e,t,r){let i=e.path,n=e.xsizemode,a=e.ysizemode,o=e.xanchor,s=e.yanchor,l=Array.isArray(e.xref),u=Array.isArray(e.yref);var f=0,c=0;return i.replace(K1.segmentRE,function(h){var d=0,p=h.charAt(0),v=K1.paramIsX[p],y=K1.paramIsY[p],m=K1.numParams[p];let w=v.drawn!==void 0,_=y.drawn!==void 0,b=l?t[f]:t,M=u?r[c]:r;var x=h.slice(1).replace(K1.paramRE,function(A){return v[d]?n==="pixel"?A=b(o)+Number(A):A=b(A):y[d]&&(a==="pixel"?A=M(s)-Number(A):A=M(A)),d++,d>m&&(A="X"),A});return d>m&&(x=x.replace(/[\s,]*X.*/,""),oge.log("Ignoring extra params in segment "+h)),w&&f++,_&&c++,p+x})}Ph.getPixelShift=Z1;function Z1(e,t){t=t||0;var r=0;return t&&e&&(e.type==="category"||e.type==="multicategory")&&(r=(e.r2p(1)-e.r2p(0))*t),r}});var cj=K((mVr,uge)=>{"use strict";var gkt=Mt(),J1=Cs(),sge=zu(),lge=Bs(),xkt=Hg().readPaths,Mb=$g(),bkt=Mb.getPathString,W6=yF(),_kt=(Hc(),ar(Gc)).FROM_TL;uge.exports=function(t,r,i,n){if(n.selectAll(".shape-label").remove(),!!(i.label.text||i.label.texttemplate)){var a;if(i.label.texttemplate){var o={};if(i.type!=="path"){var s=J1.getFromId(t,i.xref),l=J1.getFromId(t,i.yref);let O=Array.isArray(i.xref),W=Array.isArray(i.yref);for(var u in W6){var f=typeof W6[u]=="function",c=!O||W6.simpleXVariables.includes(u),h=!W||W6.simpleYVariables.includes(u);if(f&&c&&h){var d=W6[u](i,s,l);d!==void 0&&(o[u]=d)}}}a=gkt.texttemplateStringForShapes({data:[o],fallback:i.label.texttemplatefallback,locale:t._fullLayout._d3locale,template:i.label.texttemplate})}else a=i.label.text;var p={"data-index":r},v=i.label.font,y={"data-notex":1},m=n.append("g").attr(p).classed("shape-label",!0),w=m.append("text").attr(y).classed("shape-label-text",!0).text(a),_,b,M,x;if(i.path){var A=bkt(t,i),T=xkt(A,t);_=1/0,M=1/0,b=-1/0,x=-1/0;for(var g=0;gMb.getDataToPixel(t,de,ie,!1,ge)(te),$=(te,ie,de,ge)=>Mb.getDataToPixel(t,de,ie,!0,ge)(te);if(i.xsizemode==="pixel"){let te=H(i.xanchor,void 0,X,Q),ie=Mb.getPixelShift(X,i.x0shift),de=Mb.getPixelShift(X,i.x1shift);_=te+i.x0+ie,b=te+i.x1+de}else _=H(i.x0,i.x0shift,X,Q),b=H(i.x1,i.x1shift,Z,N);if(i.ysizemode==="pixel"){let te=$(i.yanchor,void 0,j,V),ie=Mb.getPixelShift(j,i.y0shift),de=Mb.getPixelShift(j,i.y1shift);M=te-i.y0+ie,x=te-i.y1+de}else M=$(i.y0,i.y0shift,j,V),x=$(i.y1,i.y1shift,q,J)}var L=i.label.textangle;L==="auto"&&(i.type==="line"?L=wkt(_,M,b,x):L=0),w.call(function(O){return O.call(lge.font,v).attr({}),sge.convertToTspans(O,t),O});var P=lge.bBox(w.node()),I=Akt(_,M,b,x,i,L,P),F=I.textx,z=I.texty,B=I.xanchor;w.attr({"text-anchor":{left:"start",center:"middle",right:"end"}[B],y:z,x:F,transform:"rotate("+L+","+F+","+z+")"}).call(sge.positionText,F,z)}};function wkt(e,t,r,i){var n,a;return a=Math.abs(r-e),r>=e?n=t-i:n=i-t,-180/Math.PI*Math.atan2(n,a)}function Akt(e,t,r,i,n,a,o){var s=n.label.textposition,l=n.label.textangle,u=n.label.padding,f=n.type,c=Math.PI/180*a,h=Math.sin(c),d=Math.cos(c),p=n.label.xanchor,v=n.label.yanchor,y,m,w,_;if(f==="line"){s==="start"?(y=e,m=t):s==="end"?(y=r,m=i):(y=(e+r)/2,m=(t+i)/2),p==="auto"&&(s==="start"?l==="auto"?r>e?p="left":re?p="right":re?p="right":re?p="left":r{"use strict";var Tkt=Mt(),Mkt=Tkt.strTranslate,fge=N0(),dge=X1(),Skt=dge.drawMode,pge=dge.selectMode,vge=Ho(),cge=ko(),GL=(RL(),ar(IL)),Ekt=GL.i000,kkt=GL.i090,Ckt=GL.i180,Dkt=GL.i270,Fkt=Lg(),mge=Fkt.clearOutlineControllers,dj=Hg(),UL=dj.pointsOnRectangle,hj=dj.pointsOnEllipse,Lkt=dj.writePaths,Pkt=VL().newShapes,zkt=VL().createShapeObj,Ikt=fj(),Rkt=cj();yge.exports=function e(t,r,i,n){n||(n=0);var a=i.gd;function o(){e(t,r,i,n++),(hj(t[0])||i.hasText)&&s({redrawing:!0})}function s(I){var F={};i.isActiveShape!==void 0&&(i.isActiveShape=!1,F=Pkt(r,i)),i.isActiveSelection!==void 0&&(i.isActiveSelection=!1,F=Ikt(r,i),a._fullLayout._reselect=!0),Object.keys(F).length&&vge.call((I||{}).redrawing?"relayout":"_guiRelayout",a,F)}var l=a._fullLayout,u=l._zoomlayer,f=i.dragmode,c=Skt(f),h=pge(f);(c||h)&&(a._fullLayout._outlining=!0),mge(a),r.attr("d",Lkt(t));var d,p,v,y,m;if(!n&&(i.isActiveShape||i.isActiveSelection)){m=Bkt([],t);var w=u.append("g").attr("class","outline-controllers");E(w),P()}if(c&&i.hasText){var _=u.select(".label-temp"),b=zkt(r,i,i.dragmode);Rkt(a,"label-temp",b,_)}function M(I){v=+I.srcElement.getAttribute("data-i"),y=+I.srcElement.getAttribute("data-j"),d[v][y].moveFn=x}function x(I,F){if(t.length){var z=m[v][y][1],B=m[v][y][2],O=t[v],W=O.length;if(UL(O)){var X=I,Z=F;if(i.isActiveSelection){var j=hge(O,y);j[1]===O[y][1]?Z=0:X=0}for(var q=0;q1&&!(I.length===2&&I[1][0]==="Z")&&(y===0&&(I[0][0]="M"),t[v]=I,o(),s())}}function g(I,F){if(I===2){v=+F.srcElement.getAttribute("data-i"),y=+F.srcElement.getAttribute("data-j");var z=t[v];!UL(z)&&!hj(z)&&T()}}function E(I){d=[];for(var F=0;F{"use strict";var Okt=No(),Age=Ho(),vj=Mt(),Sb=Cs(),Nkt=Hg().readPaths,Vkt=HL(),WL=cj(),Tge=Lg().clearOutlineControllers,pj=ko(),$L=Bs(),Ukt=fu().arrayEditor,gge=N0(),xge=Uf(),bge=jv(),Eb=(j6(),ar(H6)),Ed=$g(),mj=Ed.getPathString;Ege.exports={draw:yj,drawOne:Mge,eraseActiveShape:$kt,drawLabel:WL};function yj(e){var t=e._fullLayout;t._shapeUpperLayer.selectAll("path").remove(),t._shapeLowerLayer.selectAll("path").remove(),t._shapeUpperLayer.selectAll("text").remove(),t._shapeLowerLayer.selectAll("text").remove();for(var r in t._plots){var i=t._plots[r].shapelayer;i&&(i.selectAll("path").remove(),i.selectAll("text").remove())}for(var n=0;n{if(!e._dragging&&e._fullLayout.hoveranywhere){let o=n(a);o&&xge.hover(e,o,r.id)}}),i.addEventListener("click",a=>{if(!e._dragged&&e._fullLayout.clickanywhere){let o=n(a);o&&xge.click(e,o,r.id)}})}function Sge(e,t,r){let i=r.xref,n=r.yref;if(Array.isArray(i)||Array.isArray(n)){let a="clip"+t._fullLayout._uid+"shape"+r._index,o=Hkt(t,i,n);vj.ensureSingleById(t._fullLayout._clips,"clipPath",a,function(s){s.append("rect")}).select("rect").attr(o),$L.setClipUrl(e,a,t)}else{let a=(i+n).replace(/paper/g,"").replace(/[xyz][0-9]* *domain/g,"");$L.setClipUrl(e,a?"clip"+t._fullLayout._uid+a:null,t)}}function Hkt(e,t,r){let i=e._fullLayout._size;function n(s,l){let u=(Array.isArray(s)?s:[s]).map(h=>Sb.getFromId(e,h)).filter(Boolean);if(!u.length)return l?[i.t,i.t+i.h]:[i.l,i.l+i.w];let f=u.map(function(h){return h._offset}),c=u.map(function(h){return h._offset+h._length});return[Math.min(...f),Math.max(...c)]}let a=n(t,!1),o=n(r,!0);return{x:a[0],y:o[0],width:a[1]-a[0],height:o[1]-o[0]}}function jkt(e,t,r,i,n,a){var o=10,s=10,l=r.xsizemode==="pixel",u=r.ysizemode==="pixel",f=r.type==="line",c=r.type==="path",h=a.modifyItem,d,p,v,y,m,w,_,b,M,x,A,T,g,E,S,C=Okt.select(t.node().parentNode),k=Sb.getFromId(e,r.xref),D=Sb.getRefType(r.xref),L=Sb.getFromId(e,r.yref),P=Sb.getRefType(r.yref),I=r.x0shift,F=r.x1shift,z=r.y0shift,B=r.y1shift,O=function(le,re){var Ee=Ed.getDataToPixel(e,k,re,!1,D);return Ee(le)},W=function(le,re){var Ee=Ed.getDataToPixel(e,L,re,!0,P);return Ee(le)},X=Ed.getPixelToData(e,k,!1,D),Z=Ed.getPixelToData(e,L,!0,P),j=N(),q={element:j.node(),gd:e,prepFn:H,doneFn:$,clickFn:te},Q;gge.init(q),j.node().onmousemove=J;function N(){return f?V():t}function V(){var le=10,re=Math.max(r.line.width,le),Ee=n.append("g").attr("data-index",i).attr("drag-helper",!0);Ee.append("path").attr("d",t.attr("d")).style({cursor:"move","stroke-width":re,"stroke-opacity":"0"});var we={"fill-opacity":"0"},oe=Math.max(re/2,le);return Ee.append("circle").attr({"data-line-point":"start-point",cx:l?O(r.xanchor)+r.x0:O(r.x0,I),cy:u?W(r.yanchor)-r.y0:W(r.y0,z),r:oe}).style(we).classed("cursor-grab",!0),Ee.append("circle").attr({"data-line-point":"end-point",cx:l?O(r.xanchor)+r.x1:O(r.x1,F),cy:u?W(r.yanchor)-r.y1:W(r.y1,B),r:oe}).style(we).classed("cursor-grab",!0),Ee}function J(le){if(jL(e)){Q=null;return}if(f)le.target.tagName==="path"?Q="move":Q=le.target.attributes["data-line-point"].value==="start-point"?"resize-over-start-point":"resize-over-end-point";else{var re=q.element.getBoundingClientRect(),Ee=re.right-re.left,we=re.bottom-re.top,oe=le.clientX-re.left,Y=le.clientY-re.top,ne=!c&&Ee>o&&we>s&&!le.shiftKey?gge.getCursor(oe/Ee,1-Y/we):"move";bge(t,ne),Q=ne.split("-")[0]}}function H(le){jL(e)||(l&&(m=O(r.xanchor)),u&&(w=W(r.yanchor)),r.type==="path"?S=r.path:(d=l?r.x0:O(r.x0),p=u?r.y0:W(r.y0),v=l?r.x1:O(r.x1),y=u?r.y1:W(r.y1)),dy?(_=p,A="y0",b=y,T="y1"):(_=y,A="y1",b=p,T="y0"),J(le),ge(n,r),Ce(t,r,e),q.moveFn=Q==="move"?ie:de,q.altKey=le.altKey)}function $(){jL(e)||(bge(t),Ie(n),Sge(t,e,r),Age.call("_guiRelayout",e,a.getUpdateObj()))}function te(){jL(e)||Ie(n)}function ie(le,re){if(r.type==="path"){var Ee=function(Y){return Y},we=Ee,oe=Ee;l?h("xanchor",r.xanchor=X(m+le)):(we=function(ne){return X(O(ne)+le)},k&&k.type==="date"&&(we=Ed.encodeDate(we))),u?h("yanchor",r.yanchor=Z(w+re)):(oe=function(ne){return Z(W(ne)+re)},L&&L.type==="date"&&(oe=Ed.encodeDate(oe))),h("path",r.path=_ge(S,we,oe))}else l?h("xanchor",r.xanchor=X(m+le)):(h("x0",r.x0=X(d+le)),h("x1",r.x1=X(v+le))),u?h("yanchor",r.yanchor=Z(w+re)):(h("y0",r.y0=Z(p+re)),h("y1",r.y1=Z(y+re)));t.attr("d",mj(e,r)),ge(n,r),WL(e,i,r,C)}function de(le,re){if(c){var Ee=function(Ze){return Ze},we=Ee,oe=Ee;l?h("xanchor",r.xanchor=X(m+le)):(we=function(it){return X(O(it)+le)},k&&k.type==="date"&&(we=Ed.encodeDate(we))),u?h("yanchor",r.yanchor=Z(w+re)):(oe=function(it){return Z(W(it)+re)},L&&L.type==="date"&&(oe=Ed.encodeDate(oe))),h("path",r.path=_ge(S,we,oe))}else if(f){if(Q==="resize-over-start-point"){var Y=d+le,ne=u?p-re:p+re;h("x0",r.x0=l?Y:X(Y)),h("y0",r.y0=u?ne:Z(ne))}else if(Q==="resize-over-end-point"){var ye=v+le,U=u?y-re:y+re;h("x1",r.x1=l?ye:X(ye)),h("y1",r.y1=u?U:Z(U))}}else{var se=function(Ze){return Q.indexOf(Ze)!==-1},Ae=se("n"),be=se("s"),me=se("w"),ue=se("e"),pe=Ae?_+re:_,ce=be?b+re:b,Be=me?M+le:M,$e=ue?x+le:x;u&&(Ae&&(pe=_-re),be&&(ce=b-re)),(!u&&ce-pe>s||u&&pe-ce>s)&&(h(A,r[A]=u?pe:Z(pe)),h(T,r[T]=u?ce:Z(ce))),$e-Be>o&&(h(g,r[g]=l?Be:X(Be)),h(E,r[E]=l?$e:X($e)))}t.attr("d",mj(e,r)),ge(n,r),WL(e,i,r,C)}function ge(le,re){(l||u)&&Ee();function Ee(){var we=re.type!=="path",oe=le.selectAll(".visual-cue").data([0]),Y=1;oe.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":Y}).classed("visual-cue",!0);var ne=O(l?re.xanchor:vj.midRange(we?[re.x0,re.x1]:Ed.extractPathCoords(re.path,Eb.paramIsX))),ye=W(u?re.yanchor:vj.midRange(we?[re.y0,re.y1]:Ed.extractPathCoords(re.path,Eb.paramIsY)));if(ne=Ed.roundPositionForSharpStrokeRendering(ne,Y),ye=Ed.roundPositionForSharpStrokeRendering(ye,Y),l&&u){var U="M"+(ne-1-Y)+","+(ye-1-Y)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";oe.attr("d",U)}else if(l){var se="M"+(ne-1-Y)+","+(ye-9-Y)+"v18 h2 v-18 Z";oe.attr("d",se)}else{var Ae="M"+(ne-9-Y)+","+(ye-1-Y)+"h18 v2 h-18 Z";oe.attr("d",Ae)}}}function Ie(le){le.selectAll(".visual-cue").remove()}function Ce(le,re,Ee){var we=re.xref,oe=re.yref,Y=Sb.getFromId(Ee,we),ne=Sb.getFromId(Ee,oe),ye="";we!=="paper"&&!Y.autorange&&(ye+=we),oe!=="paper"&&!ne.autorange&&(ye+=oe),$L.setClipUrl(le,ye?"clip"+Ee._fullLayout._uid+ye:null,Ee)}}function _ge(e,t,r){return e.replace(Eb.segmentRE,function(i){var n=0,a=i.charAt(0),o=Eb.paramIsX[a],s=Eb.paramIsY[a],l=Eb.numParams[a],u=i.slice(1).replace(Eb.paramRE,function(f){return n>=l||(o[n]?f=t(f):s[n]&&(f=r(f)),n++),f});return a+u})}function Wkt(e,t){if(YL(e)){var r=t.node(),i=+r.getAttribute("data-index");if(i>=0){if(i===e._fullLayout._activeShapeIndex){wge(e);return}e._fullLayout._activeShapeIndex=i,e._fullLayout._deactivateShape=wge,yj(e)}}}function wge(e){if(YL(e)){var t=e._fullLayout._activeShapeIndex;t>=0&&(Tge(e),delete e._fullLayout._activeShapeIndex,yj(e))}}function $kt(e){if(YL(e)){Tge(e);var t=e._fullLayout._activeShapeIndex,r=(e.layout||{}).shapes||[];if(t{"use strict";var $w=Mt()._,Ykt=function(e){return{DIALOG_TITLE:$w(e,"Share chart"),DIALOG_MESSAGE_CLOUD:$w(e,"This chart will be uploaded to {Plotly Cloud} to create a sharing link. Only you can see it until you change its visibility."),DIALOG_MESSAGE_CLOUD_ACCOUNT:$w(e,"If you don't have a Plotly Cloud account yet, you'll have a chance to create one."),DIALOG_MESSAGE_OTHER:$w(e,"This chart will be sent to {serverUrl}."),DIALOG_CANCEL:$w(e,"Cancel"),DIALOG_CONFIRM:$w(e,"Share")}};kge.exports=Ykt});var Lge=K((bVr,Fge)=>{"use strict";var Dge=No(),{dfltConfig:Xkt}=_g(),Zkt=Cge(),Kkt=(e,t,r,i,n)=>{let a=Zkt(e),o=t.append("div").classed("plotly-cloud-dialog-box",!0);if(o.append("div").classed("plotly-cloud-dialog-title",!0).text(a.DIALOG_TITLE),r===Xkt.plotlyServerURL){let l=o.append("div").classed("plotly-cloud-dialog-message",!0),u=new URL(r).origin,f=a.DIALOG_MESSAGE_CLOUD.split(/(\{|\})/),c=f[0],h=f[2],d=f[4];l.append("span").text(c),l.append("a").classed("plotly-cloud-dialog-message--hostname",!0).attr("href",u).attr("target","_blank").text(h),l.append("span").text(d),l.append("div").classed("plotly-cloud-dialog-message--account",!0).text(a.DIALOG_MESSAGE_CLOUD_ACCOUNT)}else{let l=new URL(r),u=l.hostname,f=l.origin,c=a.DIALOG_MESSAGE_OTHER.split(/(\{|\})/),h=c[0],d=c[4],p=o.append("div").classed("plotly-cloud-dialog-message",!0);p.append("span").text(h),p.append("a").classed("plotly-cloud-dialog-message--hostname",!0).attr("href",f).attr("target","_blank").text(u),p.append("span").text(d)}let s=o.append("div").classed("plotly-cloud-dialog-buttons",!0);s.append("button").classed("plotly-cloud-dialog-btn",!0).classed("plotly-cloud-dialog-btn--cancel",!0).text(a.DIALOG_CANCEL).on("click",n),s.append("button").classed("plotly-cloud-dialog-btn",!0).classed("plotly-cloud-dialog-btn--confirm",!0).text(a.DIALOG_CONFIRM).on("click",i)},Jkt=(e,t,r)=>{let i=Dge.select(e._fullLayout._paperdiv.node());i.selectAll(".plotly-cloud-dialog").remove();let n=i.append("div").classed("plotly-cloud-dialog",!0),a=()=>{n.remove(),document.removeEventListener("keydown",o)},o=s=>{(s.key==="Escape"||s.keyCode===27)&&a()};document.addEventListener("keydown",o),n.on("click",()=>{Dge.event.target===n.node()&&a()}),Kkt(e,n,t,()=>{a(),r()},a)};Fge.exports=Jkt});var bj=K((_Vr,Oge)=>{"use strict";var rp=Ho(),Qkt=yf(),zge=Vf(),Tu=zL(),eCt=XL().eraseActiveShape,tCt=Lge(),Yw=Mt(),nu=Yw._,xu={};Oge.exports=xu;xu.toImage={name:"toImage",title:function(e){var t=e._context.toImageButtonOptions||{},r=t.format||"png";return r==="png"?nu(e,"Download plot as a PNG"):nu(e,"Download plot")},icon:Tu.camera,click:function(e){var t=e._context.toImageButtonOptions,r={format:t.format||"png"};Yw.notifier(nu(e,"Preparing image - this may take a few seconds"),"long",e),["filename","width","height","scale"].forEach(function(i){i in t&&(r[i]=t[i])}),rp.call("downloadImage",e,r).then(function(i){Yw.notifier(nu(e,"Image download succeeded")+" - "+i,"long",e)}).catch(function(){Yw.notifier(nu(e,"Sorry, there was a problem downloading your image!"),"long",e)})}};xu.downloadJson={name:"downloadJson",title:function(e){return nu(e,"Download plot as JSON")},icon:Tu.curlybraces,click:function(e){rp.call("downloadImage",e,{format:"full-json"}).then(function(t){Yw.notifier(nu(e,"JSON download succeeded")+" - "+t,"long",e)}).catch(function(){Yw.notifier(nu(e,"Sorry, there was a problem downloading your JSON file!"),"long",e)})}};xu.sendChartToCloud={name:"sendChartToCloud",title:function(e){return nu(e,"Share chart...")},icon:Tu.cloudupload,click:function(e){var t=(window.PLOTLYENV||{}).BASE_URL||e._context.plotlyServerURL;if(!t){console.error("No destination URL provided (plotlyServerURL is empty)");return}var r;try{r=new URL(t)}catch(n){console.error("Invalid plotlyServerURL: "+t);return}let i=["http:","https:"];if(!i.includes(r.protocol)){console.error(`Invalid protocol '${r.protocol}' in plotlyServerURL '${t}'. Must be one of: ${i.join(", ")}`);return}tCt(e,t,function(){Qkt.sendDataToCloud(e,t)})}};xu.zoom2d={name:"zoom2d",_cat:"zoom",title:function(e){return nu(e,"Zoom")},attr:"dragmode",val:"zoom",icon:Tu.zoombox,click:U0};xu.pan2d={name:"pan2d",_cat:"pan",title:function(e){return nu(e,"Pan")},attr:"dragmode",val:"pan",icon:Tu.pan,click:U0};xu.select2d={name:"select2d",_cat:"select",title:function(e){return nu(e,"Box Select")},attr:"dragmode",val:"select",icon:Tu.selectbox,click:U0};xu.lasso2d={name:"lasso2d",_cat:"lasso",title:function(e){return nu(e,"Lasso Select")},attr:"dragmode",val:"lasso",icon:Tu.lasso,click:U0};xu.drawclosedpath={name:"drawclosedpath",title:function(e){return nu(e,"Draw closed freeform")},attr:"dragmode",val:"drawclosedpath",icon:Tu.drawclosedpath,click:U0};xu.drawopenpath={name:"drawopenpath",title:function(e){return nu(e,"Draw open freeform")},attr:"dragmode",val:"drawopenpath",icon:Tu.drawopenpath,click:U0};xu.drawline={name:"drawline",title:function(e){return nu(e,"Draw line")},attr:"dragmode",val:"drawline",icon:Tu.drawline,click:U0};xu.drawrect={name:"drawrect",title:function(e){return nu(e,"Draw rectangle")},attr:"dragmode",val:"drawrect",icon:Tu.drawrect,click:U0};xu.drawcircle={name:"drawcircle",title:function(e){return nu(e,"Draw circle")},attr:"dragmode",val:"drawcircle",icon:Tu.drawcircle,click:U0};xu.eraseshape={name:"eraseshape",title:function(e){return nu(e,"Erase active shape")},icon:Tu.eraseshape,click:eCt};xu.zoomIn2d={name:"zoomIn2d",_cat:"zoomin",title:function(e){return nu(e,"Zoom in")},attr:"zoom",val:"in",icon:Tu.zoom_plus,click:U0};xu.zoomOut2d={name:"zoomOut2d",_cat:"zoomout",title:function(e){return nu(e,"Zoom out")},attr:"zoom",val:"out",icon:Tu.zoom_minus,click:U0};xu.autoScale2d={name:"autoScale2d",_cat:"autoscale",title:function(e){return nu(e,"Autoscale")},attr:"zoom",val:"auto",icon:Tu.autoscale,click:U0};xu.resetScale2d={name:"resetScale2d",_cat:"resetscale",title:function(e){return nu(e,"Reset axes")},attr:"zoom",val:"reset",icon:Tu.home,click:U0};xu.hoverClosestCartesian={name:"hoverClosestCartesian",_cat:"hoverclosest",title:function(e){return nu(e,"Show closest data on hover")},attr:"hovermode",val:"closest",icon:Tu.tooltip_basic,gravity:"ne",click:U0};xu.hoverCompareCartesian={name:"hoverCompareCartesian",_cat:"hoverCompare",title:function(e){return nu(e,"Compare data on hover")},attr:"hovermode",val:function(e){return e._fullLayout._isHoriz?"y":"x"},icon:Tu.tooltip_compare,gravity:"ne",click:U0};function U0(e,t){var r=t.currentTarget,i=r.getAttribute("data-attr"),n=r.getAttribute("data-val")||!0,a=e._fullLayout,o={},s=zge.list(e,null,!0),l=a._cartesianSpikesEnabled,u,f;if(i==="zoom"){var c=n==="in"?.5:2,h=(1+c)/2,d=(1-c)/2,p,v;for(f=0;f-x),[v,y]=c.invert(f.midPt),{minscale:m}=u.projection,w=(s=u.projection.maxscale)!=null?s:1/0,_=Math.min(m,w),b=Math.max(m,w),M=n==="in"?Pge*h:1/Pge*h;M>b?M=b:M<_&&(M=_),M!==h&&rp.call("_guiRelayout",e,{[l+".projection.scale"]:M,[l+".projection.rotation.lon"]:d,[l+".projection.rotation.lat"]:p,[l+".center.lon"]:v,[l+".center.lat"]:y,[l+".fitbounds"]:!1})}}i==="reset"&&ZL(e,"geo")}xu.hoverClosestPie={name:"hoverClosestPie",_cat:"hoverclosest",title:function(e){return nu(e,"Toggle show closest data on hover")},attr:"hovermode",val:"closest",icon:Tu.tooltip_basic,gravity:"ne",click:Bge};function Rge(e){var t=e._fullLayout;return t.hovermode?!1:t._has("cartesian")?t._isHoriz?"y":"x":"closest"}function Bge(e){var t=Rge(e);rp.call("_guiRelayout",e,"hovermode",t)}xu.resetViewSankey={name:"resetSankeyGroup",title:function(e){return nu(e,"Reset view")},icon:Tu.home,click:function(e){for(var t={"node.groups":[],"node.x":[],"node.y":[]},r=0;r{"use strict";var Nge=bj(),aCt=Object.keys(Nge),Vge=["drawline","drawopenpath","drawclosedpath","drawcircle","drawrect","eraseshape"],Uge=["v1hovermode","hoverclosest","hovercompare","togglehover","togglespikelines"].concat(Vge,["downloadJson"]),Xw=[],oCt=function(e){if(Uge.indexOf(e._cat||e.name)===-1){var t=e.name,r=(e._cat||e.name).toLowerCase();Xw.indexOf(t)===-1&&Xw.push(t),Xw.indexOf(r)===-1&&Xw.push(r)}};aCt.forEach(function(e){oCt(Nge[e])});Xw.sort();Gge.exports={DRAW_MODES:Vge,backButtons:Uge,foreButtons:Xw}});var Aj={};Fl(Aj,{default:()=>lCt});var wj,sCt,lCt,Tj=ps(()=>{"use strict";wj=I1(_j()),sCt={editType:"modebar",orientation:{valType:"enumerated",values:["v","h"],dflt:"h",editType:"modebar",description:"Sets the orientation of the modebar."},bgcolor:{valType:"color",editType:"modebar",description:"Sets the background color of the modebar."},color:{valType:"color",editType:"modebar",description:"Sets the color of the icons in the modebar."},activecolor:{valType:"color",editType:"modebar",description:"Sets the color of the active or hovered on icons in the modebar."},uirevision:{valType:"any",editType:"none",description:["Controls persistence of user-driven changes related to the modebar,","including `hovermode`, `dragmode`, and `showspikes` at both the","root level and inside subplots. Defaults to `layout.uirevision`."].join(" ")},add:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar",description:["Determines which predefined modebar buttons to add.","Please note that these buttons will only be shown if they are","compatible with all trace types used in a graph.","Similar to `config.modeBarButtonsToAdd` option.",`This may include *${wj.default.backButtons.join("*, *")}*.`].join(" ")},remove:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar",description:["Determines which predefined modebar buttons to remove.","Similar to `config.modeBarButtonsToRemove` option.",`This may include *${wj.default.foreButtons.join("*, *")}*.`].join(" ")}},lCt=sCt});var jge=K((AVr,Hge)=>{"use strict";var uCt=Mt(),$6=ko(),fCt=fu(),cCt=(Tj(),ar(Aj)).default;Hge.exports=function(t,r){var i=t.modebar||{},n=fCt.newContainer(r,"modebar");function a(s,l){return uCt.coerce(i,n,cCt,s,l)}a("orientation"),a("bgcolor",$6.addOpacity(r.paper_bgcolor,.5));var o=$6.contrast($6.rgb(r.modebar.bgcolor));a("color",$6.addOpacity(o,.3)),a("activecolor",$6.addOpacity(o,.7)),a("uirevision",r.uirevision),a("add"),a("remove")}});var Xge=K((TVr,Yge)=>{"use strict";var Mj=No(),hCt=Gs(),JL=Mt(),Wge=zL(),dCt=OT().version,pCt=new DOMParser;function $ge(e){this.container=e.container,this.element=document.createElement("div"),this.update(e.graphInfo,e.buttons),this.container.appendChild(this.element)}var Q1=$ge.prototype;Q1.update=function(e,t){this.graphInfo=e;var r=this.graphInfo._context,i=this.graphInfo._fullLayout,n="modebar-"+i._uid;this.element.setAttribute("id",n),this.element.setAttribute("role","toolbar"),this._uid=n,this.element.className="modebar modebar--custom",r.displayModeBar==="hover"&&(this.element.className+=" modebar--hover ease-bg"),i.modebar.orientation==="v"&&(this.element.className+=" vertical",t=t.reverse());var a=i.modebar,o="#"+n+" .modebar-group";document.querySelectorAll(o).forEach(function(c){c.style.backgroundColor=a.bgcolor});var s=!this.hasButtons(t),l=this.hasLogo!==r.displaylogo,u=this.locale!==r.locale;if(this.locale=r.locale,(s||l||u)&&(this.removeAllButtons(),this.updateButtons(t),r.watermark||r.displaylogo)){var f=this.getLogo();r.watermark&&(f.className=f.className+" watermark"),i.modebar.orientation==="v"?this.element.insertBefore(f,this.element.childNodes[0]):this.element.appendChild(f),this.hasLogo=!0}this.updateActiveButton(),JL.setStyleOnHover("#"+n+" .modebar-btn",".active",".icon path","fill: "+a.activecolor,"fill: "+a.color,this.element)};Q1.updateButtons=function(e){var t=this;this.buttons=e,this.buttonElements=[],this.buttonsNames=[],this.buttons.forEach(function(r){var i=t.createGroup();r.forEach(function(n){var a=n.name;if(!a)throw new Error("must provide button 'name' in button config");if(t.buttonsNames.indexOf(a)!==-1)throw new Error("button name '"+a+"' is taken");t.buttonsNames.push(a);var o=t.createButton(n);t.buttonElements.push(o),i.appendChild(o)}),t.element.appendChild(i)})};Q1.createGroup=function(){var e=document.createElement("div");e.className="modebar-group";var t=this.graphInfo._fullLayout.modebar;return e.style.backgroundColor=t.bgcolor,e};Q1.createButton=function(e){var t=this,r=document.createElement("button");r.setAttribute("type","button"),r.setAttribute("rel","tooltip"),r.className="modebar-btn";var i=e.title;i===void 0?i=e.name:typeof i=="function"&&(i=i(this.graphInfo)),(i||i===0)&&(r.setAttribute("data-title",i),r.setAttribute("aria-label",i)),e.attr!==void 0&&r.setAttribute("data-attr",e.attr);var n=e.val;n!==void 0&&(typeof n=="function"&&(n=n(this.graphInfo)),r.setAttribute("data-val",n));var a=e.click;if(typeof a!="function")throw new Error("must provide button 'click' function in button config");r.addEventListener("click",function(s){e.click(t.graphInfo,s),t.updateActiveButton(s.currentTarget)}),r.setAttribute("data-toggle",e.toggle||!1),e.toggle&&Mj.select(r).classed("active",!0);var o=e.icon;return typeof o=="function"?r.appendChild(o()):r.appendChild(this.createIcon(o||Wge.question)),r.setAttribute("data-gravity",e.gravity||"n"),r};Q1.createIcon=function(e){var t=hCt(e.height)?Number(e.height):e.ascent-e.descent,r="http://www.w3.org/2000/svg",i;if(e.path){i=document.createElementNS(r,"svg"),i.setAttribute("viewBox",[0,0,e.width,t].join(" ")),i.setAttribute("class","icon");var n=document.createElementNS(r,"path");n.setAttribute("d",e.path),e.transform?n.setAttribute("transform",e.transform):e.ascent!==void 0&&n.setAttribute("transform","matrix(1 0 0 -1 0 "+e.ascent+")"),i.appendChild(n)}if(e.svg){var a=pCt.parseFromString(e.svg,"application/xml");i=a.childNodes[0]}return i.setAttribute("height","1em"),i.setAttribute("width","1em"),i};Q1.updateActiveButton=function(e){var t=this.graphInfo._fullLayout,r=e!==void 0?e.getAttribute("data-attr"):null;this.buttonElements.forEach(function(i){var n=i.getAttribute("data-val")||!0,a=i.getAttribute("data-attr"),o=i.getAttribute("data-toggle")==="true",s=Mj.select(i),l=function(c,h){var d=t.modebar,p=c.querySelector(".icon path");p&&(h||c.matches(":hover")?p.style.fill=d.activecolor:p.style.fill=d.color)};if(o){if(a===r){var u=!s.classed("active");s.classed("active",u),l(i,u)}}else{var f=a===null?a:JL.nestedProperty(t,a).get();s.classed("active",f===n),l(i,f===n)}})};Q1.hasButtons=function(e){var t=this.buttons;if(!t||e.length!==t.length)return!1;for(var r=0;r{"use strict";var yCt=Vf(),Zge=ff(),Sj=Ho(),gCt=od().isUnifiedHover,xCt=Xge(),QL=bj(),bCt=_j().DRAW_MODES,_Ct=Mt().extendDeep;Kge.exports=function(t){var r=t._fullLayout,i=t._context,n=r._modeBar;if(!i.displayModeBar&&!i.watermark){n&&(n.destroy(),delete r._modeBar);return}if(!Array.isArray(i.modeBarButtonsToRemove))throw new Error(["*modeBarButtonsToRemove* configuration options","must be an array."].join(" "));if(!Array.isArray(i.modeBarButtonsToAdd))throw new Error(["*modeBarButtonsToAdd* configuration options","must be an array."].join(" "));var a=i.modeBarButtons,o;Array.isArray(a)&&a.length?o=ECt(a):!i.displayModeBar&&i.watermark?o=[]:o=wCt(t),n?n.update(t,o):r._modeBar=xCt(t,o)};function wCt(e){var t=e._fullLayout,r=e._fullData,i=e._context;function n(F,z){if(typeof z=="string"){if(z.toLowerCase()===F.toLowerCase())return!0}else{var B=z.name,O=z._cat||z.name;if(B===F||O===F.toLowerCase())return!0}return!1}var a=t.modebar.add;typeof a=="string"&&(a=[a]);var o=t.modebar.remove;typeof o=="string"&&(o=[o]);var s=i.modeBarButtonsToAdd.concat(a.filter(function(F){for(var z=0;z1?(g=["toggleHover"],E=["resetViews"]):c?(T=["zoomInGeo","zoomOutGeo"],g=["hoverClosestGeo"],E=["resetGeo"]):f?(g=["hoverClosest3d"],E=["resetCameraDefault3d","resetCameraLastSave3d"]):v?(T=["zoomInMap","zoomOutMap"],g=["toggleHover"],E=["resetViewMap"]):h?g=["hoverClosestPie"]:w?(g=["hoverClosestCartesian","hoverCompareCartesian"],E=["resetViewSankey"]):g=["toggleHover"],u&&g.push("toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"),(MCt(r)||b)&&(g=[]),u&&!_&&(T=["zoomIn2d","zoomOut2d","autoScale2d"],E[0]!=="resetViews"&&(E=["resetScale2d"])),f?S=["zoom3d","pan3d","orbitRotation","tableRotation"]:u&&!_||p?S=["zoom2d","pan2d"]:v||c?S=["pan2d"]:y&&(S=["zoom2d"]),TCt(r)&&S.push("select2d","lasso2d");var C=[],k=function(F){C.indexOf(F)===-1&&g.indexOf(F)!==-1&&C.push(F)};if(Array.isArray(s)){for(var D=[],L=0;L{"use strict";Qge.exports={moduleType:"component",name:"modebar",layoutAttributes:(Tj(),ar(Aj)).default,supplyLayoutDefaults:jge(),manage:Jge()}});var kj=K((EVr,e2e)=>{"use strict";var kCt=(Hc(),ar(Gc)).FROM_BL;e2e.exports=function(t,r,i){i===void 0&&(i=kCt[t.constraintoward||"center"]);var n=[t.r2l(t.range[0]),t.r2l(t.range[1])],a=n[0]+(n[1]-n[0])*i;t.range=t._input.range=[t.l2r(a+(n[0]-a)*r),t.l2r(a+(n[1]-a)*r)],t.setScale()}});var Cb=K(Y6=>{"use strict";var kb=Mt(),Cj=Hv(),Wv=Vf().id2name,CCt=Lh(),t2e=kj(),DCt=G1(),FCt=(Il(),ar(Bl)).ALMOST_EQUAL,LCt=(Hc(),ar(Gc)).FROM_BL;Y6.handleDefaults=function(e,t,r){var i=r.axIds,n=r.axHasImage,a=t._axisConstraintGroups=[],o=t._axisMatchGroups=[],s,l,u,f,c,h,d,p;for(s=0;sa?r.slice(a):i.slice(n))+o}function zCt(e,t){for(var r=t._size,i=r.h/r.w,n={},a=Object.keys(e),o=0;oFCt*p&&!w)){for(a=0;aC&&BE&&(E=B);var W=(E-g)/(2*S);c/=W,g=l.l2r(g),E=l.l2r(E),l.range=l._input.range=x{"use strict";var tP=No(),G0=Ho(),ip=yf(),Op=Mt(),Lj=zu(),Pj=U6(),X6=ko(),Zw=Bs(),a2e=pb(),f2e=Ej(),Z6=Cs(),fy=(Hc(),ar(Gc)),c2e=Cb(),ICt=c2e.enforce,RCt=c2e.clean,o2e=Hv().doAutoRange,h2e="start",BCt="middle",d2e="end",qCt=(Uc(),ar(Vc)).zindexSeparator;bh.layoutStyles=function(e){return Op.syncOrAsync([ip.doAutoMargin,NCt],e)};function OCt(e,t,r){for(var i=0;i=e[1]||n[1]<=e[0])&&a[0]t[0])return!0}return!1}function NCt(e){var t=e._fullLayout,r=t._size,i=r.p,n=Z6.list(e,"",!0),a,o,s,l,u,f;if(t._paperdiv.style({width:e._context.responsive&&t.autosize&&!e._context._hasZeroWidth&&!e.layout.width?"100%":t.width+"px",height:e._context.responsive&&t.autosize&&!e._context._hasZeroHeight&&!e.layout.height?"100%":t.height+"px"}).selectAll(".main-svg").call(Zw.setSize,t.width,t.height),e._context.setBackground(e,t.paper_bgcolor),bh.drawMainTitle(e),f2e.manage(e),!t._has("cartesian"))return ip.previousPromises(e);function c(H,$,te){var ie=H._lw/2;if(H._id.charAt(0)==="x"){if($){if(te==="top")return $._offset-i-ie}else return r.t+r.h*(1-(H.position||0))+ie%1;return $._offset+$._length+i+ie}if($){if(te==="right")return $._offset+$._length+i+ie}else return r.l+r.w*(H.position||0)+ie%1;return $._offset-i-ie}for(a=0;a0){HCt(e,a,u,l),s.attr({x:o,y:a,"text-anchor":i,dy:u2e(t.yanchor)}).call(Lj.positionText,o,a);var f=(t.text.match(Lj.BR_TAG_ALL)||[]).length;if(f){var c=fy.LINE_SPACING*f+fy.MID_SHIFT;t.y===0&&(c=-c),s.selectAll(".line").each(function(){var y=+this.getAttribute("dy").slice(0,-2)-c+"em";this.setAttribute("dy",y)})}var h=tP.select(e).selectAll(".gtitle-subtitle");if(h.node()){var d=s.node().getBBox(),p=d.y+d.height,v=p+a2e.SUBTITLE_PADDING_EM*t.subtitle.font.size;h.attr({x:o,y:v,"text-anchor":i,dy:u2e(t.yanchor)}).call(Lj.positionText,o,v)}}}};function VCt(e,t,r,i,n){var a=t.yref==="paper"?e._fullLayout._size.h:e._fullLayout.height,o=Op.isTopAnchor(t)?i:i-n,s=r==="b"?a-o:o;return Op.isTopAnchor(t)&&r==="t"||Op.isBottomAnchor(t)&&r==="b"?!1:s.5?"t":"b",o=e._fullLayout.margin[a],s=0;return t.yref==="paper"?s=r+t.pad.t+t.pad.b:t.yref==="container"&&(s=UCt(a,i,n,e._fullLayout.height,r)+t.pad.t+t.pad.b),s>o?s:0}function HCt(e,t,r,i){var n="title.automargin",a=e._fullLayout.title,o=a.y>.5?"t":"b",s={x:a.x,y:a.y,t:0,b:0},l={};a.yref==="paper"&&VCt(e,a,o,t,i)?s[o]=r:a.yref==="container"&&(l[o]=r,e._fullLayout._reservedMargin[n]=l),ip.allowAutoMargin(e,n),ip.autoMargin(e,n,s)}function jCt(e,t){var r=e.title,i=e._size,n=0;return t===h2e?n=r.pad.l:t===d2e&&(n=-r.pad.r),r.xref==="paper"?i.l+i.w*r.x+n:e.width*r.x+n}function WCt(e,t){var r=e.title,i=e._size,n=0;return t==="0em"||!t?n=-r.pad.b:t===fy.CAP_SHIFT+"em"&&(n=r.pad.t),r.y==="auto"?i.t/2:r.yref==="paper"?i.t+i.h-i.h*r.y+n:e.height-e.height*r.y+n}function u2e(e){return e==="top"?fy.CAP_SHIFT+.3+"em":e==="bottom"?"-0.3em":fy.MID_SHIFT+"em"}function $Ct(e){var t=e.title,r=BCt;return Op.isRightAnchor(t)?r=d2e:Op.isLeftAnchor(t)&&(r=h2e),r}function YCt(e){var t=e.title,r="0em";return Op.isTopAnchor(t)?r=fy.CAP_SHIFT+"em":Op.isMiddleAnchor(t)&&(r=fy.MID_SHIFT+"em"),r}bh.doTraceStyle=function(e){var t=e.calcdata,r=[],i;for(i=0;i{"use strict";var XCt=Hg().readPaths,ZCt=HL(),p2e=Lg().clearOutlineControllers,zj=ko(),v2e=Bs(),KCt=fu().arrayEditor,m2e=$g(),JCt=m2e.getPathString;g2e.exports={draw:rP,drawOne:y2e,activateLastSelection:tDt};function rP(e){var t=e._fullLayout;p2e(e),t._selectionLayer.selectAll("path").remove();for(var r in t._plots){var i=t._plots[r].selectionLayer;i&&i.selectAll("path").remove()}for(var n=0;n=0;y--){var m=o.append("path").attr(l).style("opacity",y?.1:u).call(zj.stroke,c).call(zj.fill,f).call(v2e.dashLine,y?"solid":d,y?4+h:h);if(QCt(m,e,i),p){var w=KCt(e.layout,"selections",i);m.style({cursor:"move"});var _={element:m.node(),plotinfo:n,gd:e,editHelpers:w,isActiveSelection:!0},b=XCt(s,e);ZCt(b,m,_)}else m.style("pointer-events",y?"all":"none");v[y]=m}var M=v[0],x=v[1];x.node().addEventListener("click",function(){return eDt(e,M)})}}function QCt(e,t,r){var i=r.xref+r.yref;v2e.setClipUrl(e,"clip"+t._fullLayout._uid+i,t)}function eDt(e,t){if(iP(e)){var r=t.node(),i=+r.getAttribute("data-index");if(i>=0){if(i===e._fullLayout._activeSelectionIndex){Ij(e);return}e._fullLayout._activeSelectionIndex=i,e._fullLayout._deactivateSelection=Ij,rP(e)}}}function tDt(e){if(iP(e)){var t=e._fullLayout.selections.length-1;e._fullLayout._activeSelectionIndex=t,e._fullLayout._deactivateSelection=Ij,rP(e)}}function Ij(e){if(iP(e)){var t=e._fullLayout._activeSelectionIndex;t>=0&&(p2e(e),delete e._fullLayout._activeSelectionIndex,rP(e))}}});var b2e=K((FVr,x2e)=>{function rDt(){var e,t=0,r=!1;function i(n,a){return e.list.push({type:n,data:a?JSON.parse(JSON.stringify(a)):void 0}),e}return e={list:[],segmentId:function(){return t++},checkIntersection:function(n,a){return i("check",{seg1:n,seg2:a})},segmentChop:function(n,a){return i("div_seg",{seg:n,pt:a}),i("chop",{seg:n,pt:a})},statusRemove:function(n){return i("pop_seg",{seg:n})},segmentUpdate:function(n){return i("seg_update",{seg:n})},segmentNew:function(n,a){return i("new_seg",{seg:n,primary:a})},segmentRemove:function(n){return i("rem_seg",{seg:n})},tempStatus:function(n,a,o){return i("temp_status",{seg:n,above:a,below:o})},rewind:function(n){return i("rewind",{seg:n})},status:function(n,a,o){return i("status",{seg:n,above:a,below:o})},vert:function(n){return n===r?e:(r=n,i("vert",{x:n}))},log:function(n){return typeof n!="string"&&(n=JSON.stringify(n,!1," ")),i("log",{txt:n})},reset:function(){return i("reset")},selected:function(n){return i("selected",{segs:n})},chainStart:function(n){return i("chain_start",{seg:n})},chainRemoveHead:function(n,a){return i("chain_rem_head",{index:n,pt:a})},chainRemoveTail:function(n,a){return i("chain_rem_tail",{index:n,pt:a})},chainNew:function(n,a){return i("chain_new",{pt1:n,pt2:a})},chainMatch:function(n){return i("chain_match",{index:n})},chainClose:function(n){return i("chain_close",{index:n})},chainAddHead:function(n,a){return i("chain_add_head",{index:n,pt:a})},chainAddTail:function(n,a){return i("chain_add_tail",{index:n,pt:a})},chainConnect:function(n,a){return i("chain_con",{index1:n,index2:a})},chainReverse:function(n){return i("chain_rev",{index:n})},chainJoin:function(n,a){return i("chain_join",{index1:n,index2:a})},done:function(){return i("done")}},e}x2e.exports=rDt});var w2e=K((LVr,_2e)=>{function iDt(e){typeof e!="number"&&(e=1e-10);var t={epsilon:function(r){return typeof r=="number"&&(e=r),e},pointAboveOrOnLine:function(r,i,n){var a=i[0],o=i[1],s=n[0],l=n[1],u=r[0],f=r[1];return(s-a)*(f-o)-(l-o)*(u-a)>=-e},pointBetween:function(r,i,n){var a=r[1]-i[1],o=n[0]-i[0],s=r[0]-i[0],l=n[1]-i[1],u=s*o+a*l;if(u-e)},pointsSameX:function(r,i){return Math.abs(r[0]-i[0])e!=s-a>e&&(o-f)*(a-c)/(s-c)+f-n>e&&(l=!l),o=f,s=c}return l}};return t}_2e.exports=iDt});var T2e=K((PVr,A2e)=>{var nDt={create:function(){var e={root:{root:!0,next:null},exists:function(t){return!(t===null||t===e.root)},isEmpty:function(){return e.root.next===null},getHead:function(){return e.root.next},insertBefore:function(t,r){for(var i=e.root,n=e.root.next;n!==null;){if(r(n)){t.prev=n.prev,t.next=n,n.prev.next=t,n.prev=t;return}i=n,n=n.next}i.next=t,t.prev=i,t.next=null},findTransition:function(t){for(var r=e.root,i=e.root.next;i!==null&&!t(i);)r=i,i=i.next;return{before:r===e.root?null:r,after:i,insert:function(n){return n.prev=r,n.next=i,r.next=n,i!==null&&(i.prev=n),n}}}};return e},node:function(e){return e.prev=null,e.next=null,e.remove=function(){e.prev.next=e.next,e.next&&(e.next.prev=e.prev),e.prev=null,e.next=null},e}};A2e.exports=nDt});var S2e=K((zVr,M2e)=>{var J6=T2e();function aDt(e,t,r){function i(p,v){return{id:r?r.segmentId():-1,start:p,end:v,myFill:{above:null,below:null},otherFill:null}}function n(p,v,y){return{id:r?r.segmentId():-1,start:p,end:v,myFill:{above:y.myFill.above,below:y.myFill.below},otherFill:null}}var a=J6.create();function o(p,v,y,m,w,_){var b=t.pointsCompare(v,w);return b!==0?b:t.pointsSame(y,_)?0:p!==m?p?1:-1:t.pointAboveOrOnLine(y,m?w:_,m?_:w)?1:-1}function s(p,v){a.insertBefore(p,function(y){var m=o(p.isStart,p.pt,v,y.isStart,y.pt,y.other.pt);return m<0})}function l(p,v){var y=J6.node({isStart:!0,pt:p.start,seg:p,primary:v,other:null,status:null});return s(y,p.end),y}function u(p,v,y){var m=J6.node({isStart:!1,pt:v.end,seg:v,primary:y,other:p,status:null});p.other=m,s(m,p.pt)}function f(p,v){var y=l(p,v);return u(y,p,v),y}function c(p,v){r&&r.segmentChop(p.seg,v),p.other.remove(),p.seg.end=v,p.other.pt=v,s(p.other,p.pt)}function h(p,v){var y=n(v,p.seg.end,p.seg);return c(p,v),f(y,p.primary)}function d(p,v){var y=J6.create();function m(L,P){var I=L.seg.start,F=L.seg.end,z=P.seg.start,B=P.seg.end;return t.pointsCollinear(I,z,B)?t.pointsCollinear(F,z,B)||t.pointAboveOrOnLine(F,z,B)?1:-1:t.pointAboveOrOnLine(I,z,B)?1:-1}function w(L){return y.findTransition(function(P){var I=m(L,P.ev);return I>0})}function _(L,P){var I=L.seg,F=P.seg,z=I.start,B=I.end,O=F.start,W=F.end;r&&r.checkIntersection(I,F);var X=t.linesIntersect(z,B,O,W);if(X===!1){if(!t.pointsCollinear(z,B,O)||t.pointsSame(z,W)||t.pointsSame(B,O))return!1;var Z=t.pointsSame(z,O),j=t.pointsSame(B,W);if(Z&&j)return P;var q=!Z&&t.pointBetween(z,O,W),Q=!j&&t.pointBetween(B,O,W);if(Z)return Q?h(P,B):h(L,W),P;q&&(j||(Q?h(P,B):h(L,W)),h(P,z))}else X.alongA===0&&(X.alongB===-1?h(L,O):X.alongB===0?h(L,X.pt):X.alongB===1&&h(L,W)),X.alongB===0&&(X.alongA===-1?h(P,z):X.alongA===0?h(P,X.pt):X.alongA===1&&h(P,B));return!1}for(var b=[];!a.isEmpty();){var M=a.getHead();if(r&&r.vert(M.pt[0]),M.isStart){let L=function(){if(A){var P=_(M,A);if(P)return P}return T?_(M,T):!1};var D=L;r&&r.segmentNew(M.seg,M.primary);var x=w(M),A=x.before?x.before.ev:null,T=x.after?x.after.ev:null;r&&r.tempStatus(M.seg,A?A.seg:!1,T?T.seg:!1);var g=L();if(g){if(e){var E;M.seg.myFill.below===null?E=!0:E=M.seg.myFill.above!==M.seg.myFill.below,E&&(g.seg.myFill.above=!g.seg.myFill.above)}else g.seg.otherFill=M.seg.myFill;r&&r.segmentUpdate(g.seg),M.other.remove(),M.remove()}if(a.getHead()!==M){r&&r.rewind(M.seg);continue}if(e){var E;M.seg.myFill.below===null?E=!0:E=M.seg.myFill.above!==M.seg.myFill.below,T?M.seg.myFill.below=T.seg.myFill.above:M.seg.myFill.below=p,E?M.seg.myFill.above=!M.seg.myFill.below:M.seg.myFill.above=M.seg.myFill.below}else if(M.seg.otherFill===null){var S;T?M.primary===T.primary?S=T.seg.otherFill.above:S=T.seg.myFill.above:S=M.primary?v:p,M.seg.otherFill={above:S,below:S}}r&&r.status(M.seg,A?A.seg:!1,T?T.seg:!1),M.other.status=x.insert(J6.node({ev:M}))}else{var C=M.status;if(C===null)throw new Error("PolyBool: Zero-length segment detected; your epsilon is probably too small or too large");if(y.exists(C.prev)&&y.exists(C.next)&&_(C.prev.ev,C.next.ev),r&&r.statusRemove(C.ev.seg),C.remove(),!M.primary){var k=M.seg.myFill;M.seg.myFill=M.seg.otherFill,M.seg.otherFill=k}b.push(M.seg)}a.getHead().remove()}return r&&r.done(),b}return e?{addRegion:function(p){for(var v,y=p[p.length-1],m=0;m{function oDt(e,t,r){var i=[],n=[];return e.forEach(function(a){var o=a.start,s=a.end;if(t.pointsSame(o,s)){console.warn("PolyBool: Warning: Zero-length segment detected; your epsilon is probably too small or too large");return}r&&r.chainStart(a);var l={index:0,matches_head:!1,matches_pt1:!1},u={index:0,matches_head:!1,matches_pt1:!1},f=l;function c(D,L,P){return f.index=D,f.matches_head=L,f.matches_pt1=P,f===l?(f=u,!1):(f=null,!0)}for(var h=0;h{function Q6(e,t,r){var i=[];return e.forEach(function(n){var a=(n.myFill.above?8:0)+(n.myFill.below?4:0)+(n.otherFill&&n.otherFill.above?2:0)+(n.otherFill&&n.otherFill.below?1:0);t[a]!==0&&i.push({id:r?r.segmentId():-1,start:n.start,end:n.end,myFill:{above:t[a]===1,below:t[a]===2},otherFill:null})}),r&&r.selected(i),i}var sDt={union:function(e,t){return Q6(e,[0,2,1,0,2,2,0,0,1,0,1,0,0,0,0,0],t)},intersect:function(e,t){return Q6(e,[0,0,0,0,0,2,0,2,0,0,1,1,0,2,1,0],t)},difference:function(e,t){return Q6(e,[0,0,0,0,2,0,2,0,1,1,0,0,0,1,2,0],t)},differenceRev:function(e,t){return Q6(e,[0,2,1,0,0,0,1,1,0,2,0,2,0,0,0,0],t)},xor:function(e,t){return Q6(e,[0,2,1,0,2,0,0,1,1,0,0,2,0,1,2,0],t)}};C2e.exports=sDt});var L2e=K((BVr,F2e)=>{var lDt={toPolygon:function(e,t){function r(a){if(a.length<=0)return e.segments({inverted:!1,regions:[]});function o(u){var f=u.slice(0,u.length-1);return e.segments({inverted:!1,regions:[f]})}for(var s=o(a[0]),l=1;l{var uDt=b2e(),fDt=w2e(),P2e=S2e(),cDt=k2e(),eM=D2e(),z2e=L2e(),Np=!1,tM=fDt(),kd;kd={buildLog:function(e){return e===!0?Np=uDt():e===!1&&(Np=!1),Np===!1?!1:Np.list},epsilon:function(e){return tM.epsilon(e)},segments:function(e){var t=P2e(!0,tM,Np);return e.regions.forEach(t.addRegion),{segments:t.calculate(e.inverted),inverted:e.inverted}},combine:function(e,t){var r=P2e(!1,tM,Np);return{combined:r.calculate(e.segments,e.inverted,t.segments,t.inverted),inverted1:e.inverted,inverted2:t.inverted}},selectUnion:function(e){return{segments:eM.union(e.combined,Np),inverted:e.inverted1||e.inverted2}},selectIntersect:function(e){return{segments:eM.intersect(e.combined,Np),inverted:e.inverted1&&e.inverted2}},selectDifference:function(e){return{segments:eM.difference(e.combined,Np),inverted:e.inverted1&&!e.inverted2}},selectDifferenceRev:function(e){return{segments:eM.differenceRev(e.combined,Np),inverted:!e.inverted1&&e.inverted2}},selectXor:function(e){return{segments:eM.xor(e.combined,Np),inverted:e.inverted1!==e.inverted2}},polygon:function(e){return{regions:cDt(e.segments,tM,Np),inverted:e.inverted}},polygonFromGeoJSON:function(e){return z2e.toPolygon(kd,e)},polygonToGeoJSON:function(e){return z2e.fromPolygon(kd,tM,e)},union:function(e,t){return rM(e,t,kd.selectUnion)},intersect:function(e,t){return rM(e,t,kd.selectIntersect)},difference:function(e,t){return rM(e,t,kd.selectDifference)},differenceRev:function(e,t){return rM(e,t,kd.selectDifferenceRev)},xor:function(e,t){return rM(e,t,kd.selectXor)}};function rM(e,t,r){var i=kd.segments(e),n=kd.segments(t),a=kd.combine(i,n),o=r(a);return kd.polygon(o)}typeof window=="object"&&(window.PolyBool=kd);I2e.exports=kd});var q2e=K((OVr,B2e)=>{B2e.exports=function(t,r,i,n){var a=t[0],o=t[1],s=!1;i===void 0&&(i=0),n===void 0&&(n=r.length);for(var l=n-i,u=0,f=l-1;uo!=p>o&&a<(d-c)*(o-h)/(p-h)+c;v&&(s=!s)}return s}});var iM=K((NVr,O2e)=>{"use strict";var Bj=pF().dot,nP=(Il(),ar(Bl)).BADNUM,aP=O2e.exports={};aP.tester=function(t){var r=t.slice(),i=r[0][0],n=i,a=r[0][1],o=a,s;for((r[r.length-1][0]!==r[0][0]||r[r.length-1][1]!==r[0][1])&&r.push(r[0]),s=1;sn||m===nP||mo||v&&u(p))}function c(p,v){var y=p[0],m=p[1];if(y===nP||yn||m===nP||mo)return!1;var w=r.length,_=r[0][0],b=r[0][1],M=0,x,A,T,g,E;for(x=1;xMath.max(A,_)||m>Math.max(T,b)))if(ms||Math.abs(Bj(c,u))>n)return!0;return!1};aP.filter=function(t,r){var i=[t[0]],n=0,a=0;function o(l){t.push(l);var u=i.length,f=n;i.splice(a+1);for(var c=f+1;c1){var s=t.pop();o(s)}return{addPt:o,raw:t,filtered:i}}});var N2e={};Fl(N2e,{BENDPX:()=>hDt,MINSELECT:()=>dDt,SELECTDELAY:()=>pDt,SELECTID:()=>vDt});var hDt,dDt,pDt,vDt,V2e=ps(()=>{"use strict";hDt=1.5,dDt=12,pDt=100,vDt="-select"});var uxe=K((VVr,lxe)=>{"use strict";var U2e=R2e(),mDt=q2e(),oM=Ho(),yDt=Bs().dashStyle,nM=ko(),gDt=Uf(),xDt=od().makeEventData,cM=X1(),bDt=cM.freeMode,_Dt=cM.rectMode,sM=cM.drawMode,Vj=cM.openMode,Uj=cM.selectMode,G2e=$g(),H2e=(j6(),ar(H6)),X2e=HL(),Z2e=Lg().clearOutline,K2e=Hg(),qj=K2e.handleEllipse,wDt=K2e.readPaths,ADt=VL().newShapes,TDt=fj(),MDt=Rj().activateLastSelection,sP=Mt(),SDt=sP.sorterAsc,J2e=iM(),aM=EF(),Vp=Vf().getFromId,EDt=U6(),kDt=K6().redrawReglTraces,lP=(V2e(),ar(N2e)),em=lP.MINSELECT,CDt=J2e.filter,Gj=J2e.tester,Hj=BL(),j2e=Hj.p2r,DDt=Hj.axValue,FDt=Hj.getTransform;function jj(e){return e.subplot!==void 0}function LDt(e,t,r,i,n){var a=!jj(i),o=bDt(n),s=_Dt(n),l=Vj(n),u=sM(n),f=Uj(n),c=n==="drawline",h=n==="drawcircle",d=c||h,p=i.gd,v=p._fullLayout,y=f&&v.newselection.mode==="immediate"&&a,m=v._zoomlayer,w=i.element.getBoundingClientRect(),_=i.plotinfo,b=FDt(_),M=t-w.left,x=r-w.top;v._calcInverseTransform(p);var A=sP.apply3DTransform(v._invTransform)(M,x);M=A[0],x=A[1];var T=v._invScaleX,g=v._invScaleY,E=M,S=x,C="M"+M+","+x,k=i.xaxes[0],D=i.yaxes[0],L=k._length,P=D._length,I=e.altKey&&!(sM(n)&&l),F,z,B,O,W,X,Z;exe(e,p,i),o&&(F=CDt([[M,x]],lP.BENDPX));var j=m.selectAll("path.select-outline-"+_.id).data([1]),q=u?v.newshape:v.newselection;u&&(i.hasText=q.label.text||q.label.texttemplate);var Q=u&&!l?q.fillcolor:"rgba(0,0,0,0)",N=q.line.color||(a?nM.contrast(p._fullLayout.plot_bgcolor):"#7f7f7f");j.enter().append("path").attr("class","select-outline select-outline-"+_.id).style({opacity:u?q.opacity/2:1,"stroke-dasharray":yDt(q.line.dash,q.line.width),"stroke-width":q.line.width+"px","shape-rendering":"crispEdges"}).call(nM.stroke,N).call(nM.fill,Q).attr("fill-rule","evenodd").classed("cursor-move",!!u).attr("transform",b).attr("d",C+"Z");var V=m.append("path").attr("class","zoombox-corners").style({fill:nM.background,stroke:nM.defaultLine,"stroke-width":1}).attr("transform",b).attr("d","M0,0Z");if(u&&i.hasText){var J=m.select(".label-temp");J.empty()&&(J=m.append("g").classed("label-temp",!0).classed("select-outline",!0).style({opacity:.8}))}var H=v._uid+lP.SELECTID,$=[],te=uP(p,i.xaxes,i.yaxes,i.subplot);y&&!e.shiftKey&&(i._clearSubplotSelections=function(){if(a){var de=k._id,ge=D._id;axe(p,de,ge,te);for(var Ie=(p.layout||{}).selections||[],Ce=[],le=!1,re=0;re=0){p._fullLayout._deactivateShape(p);return}if(!u){var Ie=v.clickmode;aM.done(H).then(function(){if(aM.clear(H),de===2){for(j.remove(),W=0;W-1&&Q2e(ge,p,i.xaxes,i.yaxes,i.subplot,i,j),Ie==="event"&&fM(p,void 0);gDt.click(p,ge,_.id)}).catch(sP.error)}},i.doneFn=function(){V.remove(),aM.done(H).then(function(){aM.clear(H),!y&&O&&i.selectionDefs&&(O.subtract=I,i.selectionDefs.push(O),i.mergedPolygons.length=0,[].push.apply(i.mergedPolygons,B)),(y||u)&&lM(i,y),i.doneFnCompleted&&i.doneFnCompleted($),f&&fM(p,Z)}).catch(sP.error)}}function Q2e(e,t,r,i,n,a,o){var s=t._hoverdata,l=t._fullLayout,u=l.clickmode,f=u.indexOf("event")>-1,c=[],h,d,p,v,y,m,w,_,b,M;if(BDt(s)){exe(e,t,a),h=uP(t,r,i,n);var x=qDt(s,h),A=x.pointNumbers.length>0;if(A?ODt(h,x):NDt(h)&&(w=$2e(x))){for(o&&o.remove(),M=0;M=0}function RDt(e){return e._fullLayout._activeSelectionIndex>=0}function lM(e,t){var r=e.dragmode,i=e.plotinfo,n=e.gd;IDt(n)&&n._fullLayout._deactivateShape(n),RDt(n)&&n._fullLayout._deactivateSelection(n);var a=n._fullLayout,o=a._zoomlayer,s=sM(r),l=Uj(r);if(s||l){var u=o.selectAll(".select-outline-"+i.id);if(u&&n._fullLayout._outlining){var f;s&&(f=ADt(u,e)),f&&oM.call("_guiRelayout",n,{shapes:f});var c;l&&!jj(e)&&(c=TDt(u,e)),c&&(n._fullLayout._noEmitSelectedAtStart=!0,oM.call("_guiRelayout",n,{selections:c}).then(function(){t&&MDt(n)})),n._fullLayout._outlining=!1}}i.selection={},i.selection.selectionDefs=e.selectionDefs=[],i.selection.mergedPolygons=e.mergedPolygons=[]}function W2e(e){return e._id}function uP(e,t,r,i){if(!e.calcdata)return[];var n=[],a=t.map(W2e),o=r.map(W2e),s,l,u;for(u=0;u0,a=n?i[0]:r;return t.selectedpoints?t.selectedpoints.indexOf(a)>-1:!1}function ODt(e,t){var r=[],i,n,a,o;for(o=0;o0&&r.push(i);if(r.length===1&&(a=r[0]===t.searchInfo,a&&(n=t.searchInfo.cd[0].trace,n.selectedpoints.length===t.pointNumbers.length))){for(o=0;o1||(t+=i.selectedpoints.length,t>1)))return!1;return t===1}function uM(e,t,r){var i,n;for(i=0;i-1&&t;if(!o&&t){var de=Y2e(e,!0);if(de.length){var ge=de[0].xref,Ie=de[0].yref;if(ge&&Ie){var Ce=oxe(de),le=sxe([Vp(e,ge,"x"),Vp(e,Ie,"y")]);le($,Ce)}}e._fullLayout._noEmitSelectedAtStart?e._fullLayout._noEmitSelectedAtStart=!1:ie&&fM(e,$),h._reselect=!1}if(!o&&h._deselect){var re=h._deselect;s=re.xref,l=re.yref,GDt(s,l,f)||axe(e,s,l,i),ie&&($.points.length?fM(e,$):Yj(e)),h._deselect=!1}return{eventData:$,selectionTesters:r}}function UDt(e){var t=e.calcdata;if(t)for(var r=0;r{"use strict";fxe.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}]});var hM={};Fl(hM,{axisRefDescription:()=>YDt});function YDt(e,t,r){return[`If set to a ${e} axis id (e.g. *${e}* or *${e}2*),`,`the \`${e}\` position refers to a ${e} coordinate.`,`If set to *paper*, the \`${e}\` position refers to the distance from the`,`${t} of the plotting area in normalized coordinates where *0* (*1*) corresponds`,`to the ${t} (${r}). If set to a ${e} 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 ${t} of the domain of that`,`axis: e.g., *${e}2 domain* refers to the domain of the second ${e}`,`axis and a ${e} position of 0.5 refers to the point between the ${t}`,`and the ${r} of the domain of the second ${e} axis.`].join(" ")}var dM=ps(()=>{"use strict"});var Xg=K((HVr,dxe)=>{"use strict";var cxe=Xj(),hxe=lf(),fP=(Uc(),ar(Vc)),XDt=fu().templatedArray,GVr=(dM(),ar(hM));dxe.exports=XDt("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:hxe({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:cxe.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:cxe.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",fP.idRegex.x.toString()],editType:"calc"},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",fP.idRegex.y.toString()],editType:"calc"},xref:{valType:"enumerated",values:["paper",fP.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",fP.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:hxe({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc"})});var tm={};Fl(tm,{PTS_LINESONLY:()=>ZDt,eventDataKeys:()=>eFt,maxScreensAway:()=>QDt,minTolerance:()=>KDt,toleranceGrowth:()=>JDt});var ZDt,KDt,JDt,QDt,eFt,rm=ps(()=>{"use strict";ZDt=20,KDt=.2,JDt=10,QDt=20,eFt=[]});var im=K((jVr,pxe)=>{"use strict";pxe.exports=function(t){return{valType:"color",editType:"style",anim:!0}}});var Zf=K((WVr,wxe)=>{"use strict";var vxe=zf().axisHoverFormat,{hovertemplateAttrs:tFt,texttemplateAttrs:rFt,templatefallbackAttrs:mxe}=yu(),yxe=Wu(),iFt=lf(),gxe=yh().dash,nFt=yh().pattern,aFt=Bs(),oFt=(rm(),ar(tm)),pM=Os().extendFlat,sFt=im();function xxe(e){return{valType:"any",dflt:0,editType:"calc"}}function bxe(e){return{valType:"any",editType:"calc"}}function _xe(e){return{valType:"enumerated",values:["start","middle","end"],dflt:"middle",editType:"calc"}}wxe.exports={x:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0},x0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",anim:!0},dx:{valType:"number",dflt:1,editType:"calc",anim:!0},y:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0},y0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",anim:!0},dy:{valType:"number",dflt:1,editType:"calc",anim:!0},xperiod:xxe("x"),yperiod:xxe("y"),xperiod0:bxe("x0"),yperiod0:bxe("y0"),xperiodalignment:_xe("x"),yperiodalignment:_xe("y"),xhoverformat:vxe("x"),yhoverformat:vxe("y"),offsetgroup:{valType:"string",dflt:"",editType:"calc"},alignmentgroup:{valType:"string",dflt:"",editType:"calc"},stackgroup:{valType:"string",dflt:"",editType:"calc"},orientation:{valType:"enumerated",values:["v","h"],editType:"calc"},groupnorm:{valType:"enumerated",values:["","fraction","percent"],dflt:"",editType:"calc"},stackgaps:{valType:"enumerated",values:["infer zero","interpolate"],dflt:"infer zero",editType:"calc"},text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},texttemplate:rFt(),texttemplatefallback:mxe({editType:"calc"}),hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"style"},mode:{valType:"flaglist",flags:["lines","markers","text"],extras:["none"],editType:"calc"},hoveron:{valType:"flaglist",flags:["points","fills"],editType:"style"},hovertemplate:tFt({},{keys:oFt.eventDataKeys}),hovertemplatefallback:mxe(),line:{color:{valType:"color",editType:"style",anim:!0},width:{valType:"number",min:0,dflt:2,editType:"style",anim:!0},shape:{valType:"enumerated",values:["linear","spline","hv","vh","hvh","vhv"],dflt:"linear",editType:"plot"},smoothing:{valType:"number",min:0,max:1.3,dflt:1,editType:"plot"},dash:pM({},gxe,{editType:"style"}),backoff:{valType:"number",min:0,dflt:"auto",arrayOk:!0,editType:"plot"},simplify:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},connectgaps:{valType:"boolean",dflt:!1,editType:"calc"},cliponaxis:{valType:"boolean",dflt:!0,editType:"plot"},fill:{valType:"enumerated",values:["none","tozeroy","tozerox","tonexty","tonextx","toself","tonext"],editType:"calc"},fillcolor:sFt(!0),fillgradient:pM({type:{valType:"enumerated",values:["radial","horizontal","vertical","none"],dflt:"none",editType:"calc"},start:{valType:"number",editType:"calc"},stop:{valType:"number",editType:"calc"},colorscale:{valType:"colorscale",editType:"style"},editType:"calc"}),fillpattern:nFt,marker:pM({symbol:{valType:"enumerated",values:aFt.symbolList,dflt:"circle",arrayOk:!0,editType:"style"},opacity:{valType:"number",min:0,max:1,arrayOk:!0,editType:"style",anim:!0},angle:{valType:"angle",dflt:0,arrayOk:!0,editType:"plot",anim:!1},angleref:{valType:"enumerated",values:["previous","up"],dflt:"up",editType:"plot",anim:!1},standoff:{valType:"number",min:0,dflt:0,arrayOk:!0,editType:"plot",anim:!0},size:{valType:"number",min:0,dflt:6,arrayOk:!0,editType:"calc",anim:!0},maxdisplayed:{valType:"number",min:0,dflt:0,editType:"plot"},sizeref:{valType:"number",dflt:1,editType:"calc"},sizemin:{valType:"number",min:0,dflt:0,editType:"calc"},sizemode:{valType:"enumerated",values:["diameter","area"],dflt:"diameter",editType:"calc"},line:pM({width:{valType:"number",min:0,arrayOk:!0,editType:"style",anim:!0},dash:pM({},gxe,{arrayOk:!0}),editType:"calc"},yxe("marker.line",{anim:!0})),gradient:{type:{valType:"enumerated",values:["radial","horizontal","vertical","none"],arrayOk:!0,dflt:"none",editType:"calc"},color:{valType:"color",arrayOk:!0,editType:"calc"},editType:"calc"},editType:"calc"},yxe("marker",{anim:!0})),selected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style"},color:{valType:"color",editType:"style"},size:{valType:"number",min:0,editType:"style"},editType:"style"},textfont:{color:{valType:"color",editType:"style"},editType:"style"},editType:"style"},unselected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style"},color:{valType:"color",editType:"style"},size:{valType:"number",min:0,editType:"style"},editType:"style"},textfont:{color:{valType:"color",editType:"style"},editType:"style"},editType:"style"},textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right"],dflt:"middle center",arrayOk:!0,editType:"calc"},textfont:iFt({editType:"calc",colorEditType:"style",arrayOk:!0}),zorder:{valType:"integer",dflt:0,editType:"plot"}}});var Zj=K((YVr,Mxe)=>{"use strict";var Axe=Xg(),Txe=Zf().line,lFt=yh().dash,cP=Os().extendFlat,uFt=Ef().overrideAll,fFt=fu().templatedArray,$Vr=(dM(),ar(hM));Mxe.exports=uFt(fFt("selection",{type:{valType:"enumerated",values:["rect","path"]},xref:cP({},Axe.xref,{}),yref:cP({},Axe.yref,{}),x0:{valType:"any"},x1:{valType:"any"},y0:{valType:"any"},y1:{valType:"any"},path:{valType:"string",editType:"arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:.7,editType:"arraydraw"},line:{color:Txe.color,width:cP({},Txe.width,{min:1,dflt:1}),dash:cP({},lFt,{dflt:"dot"})}}),"arraydraw","from-root")});var Cxe=K((XVr,kxe)=>{"use strict";var Sxe=Mt(),hP=Cs(),cFt=w0(),hFt=Zj(),Exe=$g();kxe.exports=function(t,r){cFt(t,r,{name:"selections",handleItemDefaults:dFt});for(var i=r.selections,n=0;n{"use strict";Dxe.exports=function(t,r,i){i("newselection.mode");var n=i("newselection.line.width");n&&(i("newselection.line.color"),i("newselection.line.dash")),i("activeselection.fillcolor"),i("activeselection.opacity")}});var vM=K((KVr,zxe)=>{"use strict";var pFt=Ho(),Lxe=Mt(),Pxe=Vf();zxe.exports=function(t){return function(i,n){var a=i[t];if(Array.isArray(a))for(var o=pFt.subplotsRegistry.cartesian,s=o.idRegex,l=n._subplots,u=l.xaxis,f=l.yaxis,c=l.cartesian,h=n._has("cartesian"),d=0;d{"use strict";var Ixe=Rj(),mM=uxe();Rxe.exports={moduleType:"component",name:"selections",layoutAttributes:Zj(),supplyLayoutDefaults:Cxe(),supplyDrawNewSelectionDefaults:Fxe(),includeBasePlot:vM()("selections"),draw:Ixe.draw,drawOne:Ixe.drawOne,reselect:mM.reselect,prepSelect:mM.prepSelect,clearOutline:mM.clearOutline,clearSelectionsCache:mM.clearSelectionsCache,selectOnClick:mM.selectOnClick}});var nW=K((QVr,tbe)=>{"use strict";var rW=No(),Up=Mt(),Bxe=Up.numberFormat,vFt=AL(),dP=Ho(),jxe=Up.strTranslate,mFt=zu(),Jj=ko(),Zg=Bs(),yFt=Uf(),qxe=Cs(),gFt=jv(),xFt=N0(),Wxe=X1(),pP=Wxe.selectingOrDrawing,bFt=Wxe.freeMode,_Ft=(Hc(),ar(Gc)).FROM_TL,wFt=U6(),AFt=K6().redrawReglTraces,TFt=yf(),Qj=Vf().getFromId,MFt=uh().prepSelect,SFt=uh().clearOutline,EFt=uh().selectOnClick,Kj=kj(),iW=(Uc(),ar(Vc)),Oxe=iW.MINDRAG,ld=iW.MINZOOM,Nxe=!0;function kFt(e,t,r,i,n,a,o,s){var l=e._fullLayout._zoomlayer,u=o+s==="nsew",f=(o+s).length===1,c,h,d,p,v,y,m,w,_,b,M,x,A,T,g,E,S,C,k,D,L,P,I;r+=t.yaxis._shift;function F(){if(c=t.xaxis,h=t.yaxis,_=c._length,b=h._length,m=c._offset,w=h._offset,d={},d[c._id]=c,p={},p[h._id]=h,o&&s)for(var ue=t.overlays,pe=0;pe=0){ce._fullLayout._deactivateShape(ce);return}var Be=ce._fullLayout.clickmode;if(tW(ce),ue===2&&!f&&ye(),u)Be.indexOf("select")>-1&&EFt(pe,ce,v,y,t.id,O),Be.indexOf("event")>-1&&yFt.click(ce,pe,t.id);else if(ue===1&&f){var $e=o?h:c,Ze=o==="s"||s==="w"?0:1,it=$e._name+".range["+Ze+"]",nt=CFt($e,Ze),Ue="left",xe="middle";if($e.fixedrange)return;o?(xe=o==="n"?"top":"bottom",$e.side==="right"&&(Ue="right")):s==="e"&&(Ue="right"),ce._context.showAxisRangeEntryBoxes&&rW.select(B).call(mFt.makeEditable,{gd:ce,immediate:!0,background:ce._fullLayout.paper_bgcolor,text:String(nt),fill:$e.tickfont?$e.tickfont.color:"#444",horizontalAlign:Ue,verticalAlign:xe}).on("edit",function(Re){var Qe=$e.d2r(Re);Qe!==void 0&&dP.call("_guiRelayout",ce,it,Qe)})}}xFt.init(O);var Z,j,q,Q,N,V,J,H,$,te;function ie(ue,pe,ce){var Be=B.getBoundingClientRect();Z=pe-Be.left,j=ce-Be.top,e._fullLayout._calcInverseTransform(e);var $e=Up.apply3DTransform(e._fullLayout._invTransform)(Z,j);Z=$e[0],j=$e[1],q={l:Z,r:Z,w:0,t:j,b:j,h:0},Q=e._hmpixcount?e._hmlumcount/e._hmpixcount:Jj.luminosity(e._fullLayout.plot_bgcolor),N="M0,0H"+_+"V"+b+"H0V0",V=!1,J="xy",te=!1,H=Xxe(l,Q,m,w,N),$=Zxe(l,m,w)}function de(ue,pe){if(e._transitioningWithDuration)return!1;var ce=Math.max(0,Math.min(_,P*ue+Z)),Be=Math.max(0,Math.min(b,I*pe+j)),$e=Math.abs(ce-Z),Ze=Math.abs(Be-j);q.l=Math.min(Z,ce),q.r=Math.max(Z,ce),q.t=Math.min(j,Be),q.b=Math.max(j,Be);function it(){J="",q.r=q.l,q.t=q.b,$.attr("d","M0,0Z")}if(M.isSubplotConstrained)$e>ld||Ze>ld?(J="xy",$e/_>Ze/b?(Ze=$e*b/_,j>Be?q.t=j-Ze:q.b=j+Ze):($e=Ze*_/b,Z>ce?q.l=Z-$e:q.r=Z+$e),$.attr("d",vP(q))):it();else if(x.isSubplotConstrained)if($e>ld||Ze>ld){J="xy";var nt=Math.min(q.l/_,(b-q.b)/b),Ue=Math.max(q.r/_,(b-q.t)/b);q.l=nt*_,q.r=Ue*_,q.b=(1-nt)*b,q.t=(1-Ue)*b,$.attr("d",vP(q))}else it();else!T||Ze0){var Re;if(x.isSubplotConstrained||!A&&T.length===1){for(Re=0;Re1&&(it.maxallowed!==void 0&&E===(it.range[0]1&&(nt.maxallowed!==void 0&&S===(nt.range[0]=0?Math.min(e,.9):1/(1/Math.max(e,-.3)+3.222))}function FFt(e,t,r){return e?e==="nsew"?r?"":t==="pan"?"move":"crosshair":e.toLowerCase()+"-resize":"pointer"}function Xxe(e,t,r,i,n){return e.append("path").attr("class","zoombox").style({fill:t>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("transform",jxe(r,i)).attr("d",n+"Z")}function Zxe(e,t,r){return e.append("path").attr("class","zoombox-corners").style({fill:Jj.background,stroke:Jj.defaultLine,"stroke-width":1,opacity:0}).attr("transform",jxe(t,r)).attr("d","M0,0Z")}function Kxe(e,t,r,i,n,a){e.attr("d",i+"M"+r.l+","+r.t+"v"+r.h+"h"+r.w+"v-"+r.h+"h-"+r.w+"Z"),Jxe(e,t,n,a)}function Jxe(e,t,r,i){r||(e.transition().style("fill",i>.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),t.transition().style("opacity",1).duration(200))}function tW(e){rW.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function Qxe(e){Nxe&&e.data&&e._context.showTips&&(Up.notifier(Up._(e,"Double-click to zoom back out"),"long",e),Nxe=!1)}function LFt(e,t){return"M"+(e.l-.5)+","+(t-ld-.5)+"h-3v"+(2*ld+1)+"h3ZM"+(e.r+.5)+","+(t-ld-.5)+"h3v"+(2*ld+1)+"h-3Z"}function PFt(e,t){return"M"+(t-ld-.5)+","+(e.t-.5)+"v-3h"+(2*ld+1)+"v3ZM"+(t-ld-.5)+","+(e.b+.5)+"v3h"+(2*ld+1)+"v-3Z"}function vP(e){var t=Math.floor(Math.min(e.b-e.t,e.r-e.l,ld)/2);return"M"+(e.l-3.5)+","+(e.t-.5+t)+"h3v"+-t+"h"+t+"v-3h-"+(t+3)+"ZM"+(e.r+3.5)+","+(e.t-.5+t)+"h-3v"+-t+"h"+-t+"v-3h"+(t+3)+"ZM"+(e.r+3.5)+","+(e.b+.5-t)+"h-3v"+t+"h"+-t+"v3h"+(t+3)+"ZM"+(e.l-3.5)+","+(e.b+.5-t)+"h3v"+t+"h"+t+"v3h-"+(t+3)+"Z"}function Gxe(e,t,r,i,n){for(var a=!1,o={},s={},l,u,f,c,h=(n||{}).xaHash,d=(n||{}).yaHash,p=0;p{"use strict";var zFt=No(),mP=Uf(),IFt=N0(),RFt=jv(),$v=nW().makeDragBox,_h=(Uc(),ar(Vc)).DRAGGERSIZE;yP.initInteractions=function(t){var r=t._fullLayout;if(t._context.staticPlot){zFt.select(t).selectAll(".drag").remove();return}if(!(!r._has("cartesian")&&!r._has("splom"))){var i=Object.keys(r._plots||{}).sort(function(a,o){if((r._plots[a].mainplot&&!0)===(r._plots[o].mainplot&&!0)){var s=a.split("y"),l=o.split("y");return s[0]===l[0]?Number(s[1]||1)-Number(l[1]||1):Number(s[0]||1)-Number(l[0]||1)}return r._plots[a].mainplot?1:-1});i.forEach(function(a){var o=r._plots[a],s=o.xaxis,l=o.yaxis;if(!o.mainplot){var u=$v(t,o,s._offset,l._offset,s._length,l._length,"ns","ew");u.onmousemove=function(h){t._fullLayout._rehover=function(){t._fullLayout._hoversubplot===a&&t._fullLayout._plots[a]&&mP.hover(t,h,a)},mP.hover(t,h,a),t._fullLayout._lasthover=u,t._fullLayout._hoversubplot=a},u.onmouseout=function(h){t._dragging||(t._fullLayout._hoversubplot=null,IFt.unhover(t,h))},t._context.showAxisDragHandles&&($v(t,o,s._offset-_h,l._offset-_h,_h,_h,"n","w"),$v(t,o,s._offset+s._length,l._offset-_h,_h,_h,"n","e"),$v(t,o,s._offset-_h,l._offset+l._length,_h,_h,"s","w"),$v(t,o,s._offset+s._length,l._offset+l._length,_h,_h,"s","e"))}if(t._context.showAxisDragHandles){if(a===s._mainSubplot){var f=s._mainLinePosition;s.side==="top"&&(f-=_h),$v(t,o,s._offset+s._length*.1,f,s._length*.8,_h,"","ew"),$v(t,o,s._offset,f,s._length*.1,_h,"","w"),$v(t,o,s._offset+s._length*.9,f,s._length*.1,_h,"","e")}if(a===l._mainSubplot){var c=l._mainLinePosition;l.side!=="right"&&(c-=_h),$v(t,o,c,l._offset+l._length*.1,_h,l._length*.8,"ns",""),$v(t,o,c,l._offset+l._length*.9,_h,l._length*.1,"s",""),$v(t,o,c,l._offset,_h,l._length*.1,"n","")}}});var n=r._hoverlayer.node();n.onmousemove=function(a){a.target=t._fullLayout._lasthover,mP.hover(t,a,r._hoversubplot)},n.onclick=function(a){a.target=t._fullLayout._lasthover,mP.click(t,a)},n.onmousedown=function(a){t._fullLayout._lasthover.onmousedown(a)},yP.updateFx(t)}};yP.updateFx=function(e){var t=e._fullLayout,r=t.dragmode==="pan"?"move":"crosshair";RFt(t._draggers,r)}});var nbe=K((tUr,ibe)=>{"use strict";var rbe=Ho();ibe.exports=function(t){for(var r=rbe.layoutArrayContainers,i=rbe.layoutArrayRegexes,n=t.split("[")[0],a,o,s=0;s{"use strict";var BFt=yg(),oW=dF(),yM=Jm(),qFt=TF().sorterAsc,sW=Ho();gM.containerArrayMatch=nbe();var OFt=gM.isAddVal=function(t){return t==="add"||BFt(t)},abe=gM.isRemoveVal=function(t){return t===null||t==="remove"};gM.applyContainerArrayChanges=function(t,r,i,n,a){var o=r.astr,s=sW.getComponentMethod(o,"supplyLayoutDefaults"),l=sW.getComponentMethod(o,"draw"),u=sW.getComponentMethod(o,"drawOne"),f=n.replot||n.recalc||s===oW||l===oW,c=t.layout,h=t._fullLayout;if(i[""]){Object.keys(i).length>1&&yM.warn("Full array edits are incompatible with other edits",o);var d=i[""][""];if(abe(d))r.set(null);else if(Array.isArray(d))r.set(d);else return yM.warn("Unrecognized full array edit value",o,d),!0;return f?!1:(s(c,h),l(t),!0)}var p=Object.keys(i).map(Number).sort(qFt),v=r.get(),y=v||[],m=a(h,o).get(),w=[],_=-1,b=y.length,M,x,A,T,g,E,S,C;for(M=0;My.length-(S?0:1)){yM.warn("index out of range",o,A);continue}if(E!==void 0)g.length>1&&yM.warn("Insertion & removal are incompatible with edits to the same index.",o,A),abe(E)?w.push(A):S?(E==="add"&&(E={}),y.splice(A,0,E),m&&m.splice(A,0,{})):yM.warn("Unrecognized full object edit value",o,A,E),_===-1&&(_=A);else for(x=0;x=0;M--)y.splice(w[M],1),m&&m.splice(w[M],1);if(y.length?v||r.set(y):r.set(null),f)return!1;if(s(c,h),u!==oW){var k;if(_===-1)k=p;else{for(b=Math.max(y.length,b),k=[],M=0;M=_));M++)k.push(A);for(M=_;M{"use strict";var fbe=Gs(),cbe=Ho(),H0=Mt(),xM=yf(),hbe=Vf(),bM=hbe.cleanId,NFt=hbe.getFromTrace,lW=cbe.traceIs,VFt=["x","y","z"];Gp.clearPromiseQueue=function(e){Array.isArray(e._promises)&&e._promises.length>0&&H0.log("Clearing previous rejected promises from queue."),e._promises=[]};Gp.cleanLayout=function(e){var t,r;e||(e={}),e.xaxis1&&(e.xaxis||(e.xaxis=e.xaxis1),delete e.xaxis1),e.yaxis1&&(e.yaxis||(e.yaxis=e.yaxis1),delete e.yaxis1),e.scene1&&(e.scene||(e.scene=e.scene1),delete e.scene1);var i=(xM.subplotsRegistry.cartesian||{}).attrRegex,n=(xM.subplotsRegistry.polar||{}).attrRegex,a=(xM.subplotsRegistry.ternary||{}).attrRegex,o=(xM.subplotsRegistry.gl3d||{}).attrRegex,s=Object.keys(e);for(t=0;t3?(y.x=1.02,y.xanchor="left"):y.x<-2&&(y.x=-.02,y.xanchor="right"),y.y>3?(y.y=1.02,y.yanchor="bottom"):y.y<-2&&(y.y=-.02,y.yanchor="top")),e.dragmode==="rotate"&&(e.dragmode="orbit"),e.template&&e.template.layout&&Gp.cleanLayout(e.template.layout),e};function Kw(e,t,r=!1){var i=e[t],n=t.charAt(0);r&&Array.isArray(i)||i&&i!=="paper"&&(e[t]=bM(i,n,!0))}Gp.cleanData=function(e){for(var t=0;t0)return e.slice(0,t)}Gp.hasParent=function(e,t){for(var r=ube(t);r;){if(r in e)return!0;r=ube(r)}return!1};Gp.clearAxisTypes=function(e,t,r){for(var i=0;i{let r=(...i)=>i.every(n=>H0.isPlainObject(n))||i.every(n=>Array.isArray(n));if([e,t].every(i=>Array.isArray(i))){if(e.length!==t.length)return!1;for(let i=0;iH0.isPlainObject(i))){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(let i in e){if(i.startsWith("_"))continue;let n=e[i],a=t[i];if(n!==a&&!(r(n,a)?uW(n,a):!1))return!1}return!0}return!1};Gp.collectionsAreEqual=uW});var FP=K(su=>{"use strict";var wP=No(),HFt=Gs(),jFt=vG(),Ro=Mt(),xf=Ro.nestedProperty,cW=bw(),ud=ape(),Hp=Ho(),CP=Aw(),ll=yf(),j0=Cs(),WFt=PH(),$Ft=Lh(),bP=Bs(),YFt=ko(),XFt=aW().initInteractions,ZFt=(zp(),ar(Pp)),KFt=uh().clearOutline,gbe=_g().dfltConfig,xP=obe(),Cc=dbe(),Bu=K6(),Kg=Ef(),JFt=(Uc(),ar(Vc)).AX_NAME_PATTERN,fW=0,pbe=5;function QFt(e,t,r,i){var n;if(e=Ro.getGraphDiv(e),cW.init(e),Ro.isPlainObject(t)){var a=t;t=a.data,r=a.layout,i=a.config,n=a.frames}var o=cW.triggerHandler(e,"plotly_beforeplot",[t,r,i]);if(o===!1)return Promise.reject();!t&&!r&&!Ro.isPlotDiv(e)&&Ro.warn("Calling _doPlot as if redrawing but this container doesn't yet have a plot.",e);function s(){if(n)return su.addFrames(e,n)}bbe(e,i),r||(r={}),wP.select(e).classed("js-plotly-plot",!0),bP.makeTester(),Array.isArray(e._promises)||(e._promises=[]);var l=(e.data||[]).length===0&&Array.isArray(t);Array.isArray(t)&&(Cc.cleanData(t),l?e.data=t:e.data.push.apply(e.data,t),e.empty=!1),(!e.layout||l)&&(e.layout=Cc.cleanLayout(r)),ll.supplyDefaults(e);var u=e._fullLayout,f=u._has("cartesian");u._replotting=!0,(l||u._shouldCreateBgLayer)&&(ALt(e),u._shouldCreateBgLayer&&delete u._shouldCreateBgLayer),bP.initGradients(e),bP.initPatterns(e),l&&j0.saveShowSpikeInitial(e);var c=!e.calcdata||e.calcdata.length!==(e._fullData||[]).length;c&&ll.doCalcdata(e);for(var h=0;h{Ro.isHidden(e)||ll.resize(e)};if(e._context.fillFrame||typeof ResizeObserver=="undefined")window.addEventListener("resize",T),e._clearResponsive=()=>window.removeEventListener("resize",T);else{let g=e.offsetWidth,E=e.offsetHeight,S=new ResizeObserver(()=>{let C=e.offsetWidth,k=e.offsetHeight,D=Math.abs(C-g)>1||Math.abs(k-E)>1;g=C,E=k,D&&C&&k&&T()});S.observe(e),e._clearResponsive=()=>S.disconnect()}}}else Ro.clearResponsive(e);let d=document.fonts?[...document.fonts].filter(T=>T.status!=="loaded"):[];var p=Ro.extendFlat({},u._size),v=0;function y(){for(var T=u._basePlotModules,g=0;g["loaded","loading"].includes(n.status));if(!r.length)return;let i={};e._fontLoadToken=i,yield Promise.all(r.map(n=>n.loaded.catch(()=>{}))),e._fontLoadToken===i&&(delete e._fontLoadToken,bP.savedBBoxes={},su._doPlot(e))})}function wM(e){var t=e._fullLayout;t._redrawFromAutoMarginCount?t._redrawFromAutoMarginCount--:e.emit("plotly_afterplot")}function tLt(e){return Ro.extendFlat(gbe,e)}function xbe(e,t){try{e._fullLayout._paper.style("background",t)}catch(r){Ro.error(r)}}function rLt(e,t){var r=YFt.combine(t,"white");xbe(e,r)}function bbe(e,t){if(!e._context){e._context=Ro.extendDeep({},gbe);var r=wP.select("base");e._context._baseUrl=r.size()&&r.attr("href")?window.location.href.split("#")[0]:""}var i=e._context,n,a,o;if(t){for(a=Object.keys(t),n=0;n=e.data.length||n<-e.data.length)throw new Error(r+" must be valid indices for gd.data.");if(t.indexOf(n,i+1)>-1||n>=0&&t.indexOf(-e.data.length+n)>-1||n<0&&t.indexOf(e.data.length+n)>-1)throw new Error("each index in "+r+" must be unique.")}}function _be(e,t,r){if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(typeof t=="undefined")throw new Error("currentIndices is a required argument.");if(Array.isArray(t)||(t=[t]),TP(e,t,"currentIndices"),typeof r!="undefined"&&!Array.isArray(r)&&(r=[r]),typeof r!="undefined"&&TP(e,r,"newIndices"),typeof r!="undefined"&&t.length!==r.length)throw new Error("current and new indices must be of equal length.")}function aLt(e,t,r){var i,n;if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(typeof t=="undefined")throw new Error("traces must be defined.");for(Array.isArray(t)||(t=[t]),i=0;i=0&&f=0&&f0&&typeof T.parts[S]!="string";)S--;var C=T.parts[S],k=T.parts[S-1]+"."+C,D=T.parts.slice(0,S).join("."),L=xf(e.layout,D).get(),P=xf(i,D).get(),I=T.get();if(g!==void 0){m[A]=g,w[A]=C==="reverse"?g:cy(I);var F=CP.getLayoutValObject(i,T.parts);if(F&&F.impliedEdits&&g!==null)for(var z in F.impliedEdits)_(Ro.relativeAttr(A,z),F.impliedEdits[z]);if(["width","height"].indexOf(A)!==-1)if(g){_("autosize",null);var B=A==="height"?"width":"height";_(B,i[B])}else i[A]=e._initialAutoSize[A];else if(A==="autosize")_("width",g?null:i.width),_("height",g?null:i.height);else if(k.match(Dbe))x(k),xf(i,D+"._inputRange").set(null);else if(k.match(Fbe)){x(k),xf(i,D+"._inputRange").set(null);var O=xf(i,D).get();O._inputDomain&&(O._input.domain=O._inputDomain.slice())}else k.match(uLt)&&xf(i,D+"._inputDomain").set(null);if(C==="type"){M=L;var W=P.type==="linear"&&g==="log",X=P.type==="log"&&g==="linear";if(W||X){if(!M||!M.range)_(D+".autorange",!0);else if(P.autorange)W&&(M.range=M.range[1]>M.range[0]?[1,2]:[2,1]);else{var Z=M.range[0],j=M.range[1];W?(Z<=0&&j<=0&&_(D+".autorange",!0),Z<=0?Z=j/1e6:j<=0&&(j=Z/1e6),_(D+".range[0]",Math.log(Z)/Math.LN10),_(D+".range[1]",Math.log(j)/Math.LN10)):(_(D+".range[0]",Math.pow(10,Z)),_(D+".range[1]",Math.pow(10,j)))}Array.isArray(i._subplots.polar)&&i._subplots.polar.length&&i[T.parts[0]]&&T.parts[1]==="radialaxis"&&delete i[T.parts[0]]._subplot.viewInitial["radialaxis.range"],Hp.getComponentMethod("annotations","convertCoords")(e,P,g,_),Hp.getComponentMethod("images","convertCoords")(e,P,g,_)}else _(D+".autorange",!0),_(D+".range",null);xf(i,D+"._inputRange").set(null)}else if(C.match(JFt)){var q=xf(i,A).get(),Q=(g||{}).type;(!Q||Q==="-")&&(Q="linear"),Hp.getComponentMethod("annotations","convertCoords")(e,q,Q,_),Hp.getComponentMethod("images","convertCoords")(e,q,Q,_)}var N=xP.containerArrayMatch(A);if(N){f=N.array,c=N.index;var V=N.property,J=F||{editType:"calc"};c!==""&&V===""&&(xP.isAddVal(g)?w[A]=null:xP.isRemoveVal(g)?w[A]=(xf(r,f).get()||[])[c]:Ro.warn("unrecognized full object value",t)),Kg.update(y,J),u[f]||(u[f]={});var H=u[f][c];H||(H=u[f][c]={}),H[V]=g,delete t[A]}else C==="reverse"?(L.range?L.range.reverse():(_(D+".autorange",!0),L.range=[1,0]),P.autorange?y.calc=!0:y.plot=!0):(A==="dragmode"&&(g===!1&&I!==!1||g!==!1&&I===!1)||i._has("scatter-like")&&i._has("regl")&&A==="dragmode"&&(g==="lasso"||g==="select")&&!(I==="lasso"||I==="select")?y.plot=!0:F?Kg.update(y,F):y.calc=!0,T.set(g))}}for(f in u){var $=xP.applyContainerArrayChanges(e,a(r,f),u[f],y,a);$||(y.plot=!0)}for(var te in b){M=j0.getFromId(e,te);var ie=M&&M._constraintGroup;if(ie){y.calc=!0;for(var de in ie)b[de]||(j0.getFromId(e,de)._constraintShrinkable=!0)}}(Pbe(e)||t.height||t.width)&&(y.plot=!0);var ge=i.shapes;for(c=0;c1;)if(i.pop(),r=xf(t,i.join(".")+".uirevision").get(),r!==void 0)return r;return t.uirevision}function hLt(e,t){for(var r=0;r[D,e._ev.listeners(D)]);a=su.newPlot(e,t,r,i).then(()=>{for(let[D,L]of k)L.forEach(P=>e.on(D,P));return su.react(e,t,r,i)})}else{e.data=t||[],Cc.cleanData(e.data),e.layout=r||{},Cc.cleanLayout(e.layout),pLt(e.data,e.layout,s,l),ll.supplyDefaults(e,{skipUpdateCalc:!0});var c=e._fullData,h=e._fullLayout,d=h.datarevision===void 0,p=h.transition,v=yLt(e,l,h,d,p),y=v.newDataRevision,m=mLt(e,s,c,d,p,y);if(Pbe(e)&&(v.layoutReplot=!0),m.calc||v.calc){e.calcdata=void 0;for(var w=Object.getOwnPropertyNames(h),_=0;_(f||e.emit("plotly_react",{config:i,data:t,layout:r}),e))}function mLt(e,t,r,i,n,a){var o=t.length===r.length;if(!n&&!o)return{fullReplot:!0,calc:!0};var s=Kg.traceFlags();s.arrays={},s.nChanges=0,s.nChangesAnim=0;var l,u;function f(d){var p=CP.getTraceValObject(u,d);return!u._module.animatable&&p.anim&&(p.anim=!1),p}var c={getValObject:f,flags:s,immutable:i,transition:n,newDataRevision:a,gd:e},h={};for(l=0;l=n.length?n[0]:n[u]:n}function s(u){return Array.isArray(a)?u>=a.length?a[0]:a[u]:a}function l(u,f){var c=0;return function(){if(u&&++c===f)return u()}}return new Promise(function(u,f){function c(){if(i._frameQueue.length!==0){for(;i._frameQueue.length;){var C=i._frameQueue.pop();C.onInterrupt&&C.onInterrupt()}e.emit("plotly_animationinterrupted",[])}}function h(C){if(C.length!==0){for(var k=0;ki._timeToNext&&p()};C()}var y=0;function m(C){return Array.isArray(n)?y>=n.length?C.transitionOpts=n[y]:C.transitionOpts=n[0]:C.transitionOpts=n,y++,C}var w,_,b=[],M=t==null,x=Array.isArray(t),A=!M&&!x&&Ro.isPlainObject(t);if(A)b.push({type:"object",data:m(Ro.extendFlat({},t))});else if(M||["string","number"].indexOf(typeof t)!==-1)for(w=0;w0&&EE)&&S.push(_);b=S}}b.length>0?h(b):(e.emit("plotly_animated"),u())})}function xLt(e,t,r){if(e=Ro.getGraphDiv(e),t==null)return Promise.resolve();if(!Ro.isPlotDiv(e))throw new Error("This element is not a Plotly plot: "+e+". It's likely that you've failed to create a plot before adding frames. For more details, see https://plotly.com/javascript/animations/");var i,n,a,o,s=e._transitionData._frames,l=e._transitionData._frameHash;if(!Array.isArray(t))throw new Error("addFrames failure: frameList must be an Array of frame definitions"+t);var u=s.length+t.length*2,f=[],c={};for(i=t.length-1;i>=0;i--)if(Ro.isPlainObject(t[i])){var h=t[i].name,d=(l[h]||c[h]||{}).name,p=t[i].name,v=l[d]||c[d];d&&p&&typeof p=="number"&&v&&fWT.index?-1:A.index=0;i--){if(n=f[i].frame,typeof n.name=="number"&&Ro.warn("Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings"),!n.name)for(;l[n.name="frame "+e._transitionData._counter++];);if(l[n.name]){for(a=0;a=0;r--)i=t[r],a.push({type:"delete",index:i}),o.unshift({type:"insert",index:i,value:n[i]});var s=ll.modifyFrames,l=ll.modifyFrames,u=[e,o],f=[e,a];return ud&&ud.add(e,s,u,l,f),ll.modifyFrames(e,a)}function _Lt(e){e=Ro.getGraphDiv(e);var t=e._fullLayout||{},r=e._fullData||[];return ll.cleanPlot([],{},r,t),ll.purge(e),cW.purge(e),t._container&&t._container.remove(),delete e._context,e}function wLt(e){var t=e._fullLayout,r=e.getBoundingClientRect();if(!Ro.equalDomRects(r,t._lastBBox)){var i=t._invTransform=Ro.inverseTransformMatrix(Ro.getFullTransformMatrix(e));t._invScaleX=Math.sqrt(i[0][0]*i[0][0]+i[0][1]*i[0][1]+i[0][2]*i[0][2]),t._invScaleY=Math.sqrt(i[1][0]*i[1][0]+i[1][1]*i[1][1]+i[1][2]*i[1][2]),t._lastBBox=r}}function ALt(e){var t=wP.select(e),r=e._fullLayout;if(r._calcInverseTransform=wLt,r._calcInverseTransform(e),r._container=t.selectAll(".plot-container").data([0]),r._container.enter().insert("div",":first-child").classed("plot-container",!0).classed("plotly",!0).style({width:"100%",height:"100%"}),r._paperdiv=r._container.selectAll(".svg-container").data([0]),r._paperdiv.enter().append("div").classed("user-select-none",!0).classed("svg-container",!0).style("position","relative"),r._glcontainer=r._paperdiv.selectAll(".gl-container").data([{}]),r._glcontainer.enter().append("div").classed("gl-container",!0),r._paperdiv.selectAll(".main-svg").remove(),r._paperdiv.select(".modebar-container").remove(),r._paper=r._paperdiv.insert("svg",":first-child").classed("main-svg",!0),r._toppaper=r._paperdiv.append("svg").classed("main-svg",!0),r._modebardiv=r._paperdiv.append("div"),delete r._modeBar,r._hoverpaper=r._paperdiv.append("svg").classed("main-svg",!0),!r._uid){var i={};wP.selectAll("defs").each(function(){this.id&&(i[this.id.split("-")[1]]=1)}),r._uid=Ro.randstr(i)}r._paperdiv.selectAll(".main-svg").attr(ZFt.svgAttrs),r._defs=r._paper.append("defs").attr("id","defs-"+r._uid),r._clips=r._defs.append("g").classed("clips",!0),r._topdefs=r._toppaper.append("defs").attr("id","topdefs-"+r._uid),r._topclips=r._topdefs.append("g").classed("clips",!0),r._bgLayer=r._paper.append("g").classed("bglayer",!0),r._draggers=r._paper.append("g").classed("draglayer",!0);var n=r._paper.append("g").classed("layer-below",!0);r._imageLowerLayer=n.append("g").classed("imagelayer",!0),r._shapeLowerLayer=n.append("g").classed("shapelayer",!0),r._cartesianlayer=r._paper.append("g").classed("cartesianlayer",!0),r._polarlayer=r._paper.append("g").classed("polarlayer",!0),r._smithlayer=r._paper.append("g").classed("smithlayer",!0),r._ternarylayer=r._paper.append("g").classed("ternarylayer",!0),r._geolayer=r._paper.append("g").classed("geolayer",!0),r._funnelarealayer=r._paper.append("g").classed("funnelarealayer",!0),r._pielayer=r._paper.append("g").classed("pielayer",!0),r._iciclelayer=r._paper.append("g").classed("iciclelayer",!0),r._treemaplayer=r._paper.append("g").classed("treemaplayer",!0),r._sunburstlayer=r._paper.append("g").classed("sunburstlayer",!0),r._indicatorlayer=r._toppaper.append("g").classed("indicatorlayer",!0),r._glimages=r._paper.append("g").classed("glimages",!0);var a=r._toppaper.append("g").classed("layer-above",!0);r._imageUpperLayer=a.append("g").classed("imagelayer",!0),r._shapeUpperLayer=a.append("g").classed("shapelayer",!0),r._selectionLayer=r._toppaper.append("g").classed("selectionlayer",!0),r._infolayer=r._toppaper.append("g").classed("infolayer",!0),r._menulayer=r._toppaper.append("g").classed("menulayer",!0),r._zoomlayer=r._toppaper.append("g").classed("zoomlayer",!0),r._hoverlayer=r._hoverpaper.append("g").classed("hoverlayer",!0),r._modebardiv.classed("modebar-container",!0).style("position","absolute").style("top","0px").style("right","0px"),e.emit("plotly_framework")}su.animate=gLt;su.addFrames=xLt;su.deleteFrames=bLt;su.addTraces=Sbe;su.deleteTraces=Ebe;su.extendTraces=Tbe;su.moveTraces=hW;su.prependTraces=Mbe;su.newPlot=nLt;su._doPlot=QFt;su.purge=_Lt;su.react=vLt;su.redraw=iLt;su.relayout=_M;su.restyle=MP;su.setPlotConfig=tLt;su.update=EP;su._guiRelayout=dW(_M);su._guiRestyle=dW(MP);su._guiUpdate=dW(EP);su._storeDirectGUIEdit=lLt});var hy=K(jp=>{"use strict";var TLt=Ho();jp.getDelay=function(e){return e._has&&(e._has("gl3d")||e._has("map"))?500:0};jp.getRedrawFunc=function(e){return function(){TLt.getComponentMethod("colorbar","draw")(e)}};jp.encodeSVG=function(e){return"data:image/svg+xml,"+encodeURIComponent(e)};jp.encodeJSON=function(e){return"data:application/json,"+encodeURIComponent(e)};var zbe=window.URL||window.webkitURL;jp.createObjectURL=function(e){return zbe.createObjectURL(e)};jp.revokeObjectURL=function(e){return zbe.revokeObjectURL(e)};jp.createBlob=function(e,t){if(t==="svg")return new window.Blob([e],{type:"image/svg+xml;charset=utf-8"});if(t==="full-json")return new window.Blob([e],{type:"application/json;charset=utf-8"});var r=MLt(window.atob(e));return new window.Blob([r],{type:"image/"+t})};jp.octetStream=function(e){document.location.href="data:application/octet-stream"+e};jp.getPlotTitle=function(e){var i,n,a,o;var t=e._fullLayout;if(t){var r=(i=t.title)==null?void 0:i.text;return r===((n=t._dfltTitle)==null?void 0:n.plot)?void 0:r}return(o=(a=e.layout)==null?void 0:a.title)==null?void 0:o.text};jp.getPlotSubtitle=function(e){var i,n,a,o,s,l;var t=e._fullLayout;if(t){var r=(n=(i=t.title)==null?void 0:i.subtitle)==null?void 0:n.text;return r===((a=t._dfltTitle)==null?void 0:a.subtitle)?void 0:r}return(l=(s=(o=e.layout)==null?void 0:o.title)==null?void 0:s.subtitle)==null?void 0:l.text};function MLt(e){for(var t=e.length,r=new ArrayBuffer(t),i=new Uint8Array(r),n=0;n{"use strict";var vW=No(),sUr=Mt(),SLt=Bs(),ELt=ko(),lUr=(zp(),ar(Pp)),pW=/"/g,Db="TOBESTRIPPED",kLt=new RegExp(`("${Db})|(${Db}")|("${Db})|(${Db}")`,"g"),CLt=["&","&","&",""",""",""","'","'","'"],DLt=["<","<","<"],FLt=[">",">",">"];function LLt(e){let t=vW.select("body").append("div").style({display:"none"}).html(""),r=e.replace(/(&[^;]*;)/gi,i=>{let n=i.toLowerCase();return CLt.includes(n)?i:DLt.includes(n)?"<":FLt.includes(n)?">":i.includes("<")||i.includes(">")?"":t.html(i).text()});return t.remove(),r}function PLt(e){return e.replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&")}Ibe.exports=function(t,r,i){var n=t._fullLayout,a=n._paper,o=n._toppaper,s=n.width,l=n.height,u;a.insert("rect",":first-child").call(SLt.setRect,0,0,s,l).call(ELt.fill,n.paper_bgcolor);var f=n._basePlotModules||[];for(u=0;u{"use strict";var zLt=Mt(),ILt=ib().EventEmitter,AM=hy();function RLt(e){var t=e.emitter||new ILt,r=new Promise(function(i,n){var a=window.Image,o=e.svg,s=e.format||"png",l=e.canvas,u=e.scale||1,f=e.width||300,c=e.height||150,h=u*f,d=u*c,p=l.getContext("2d",{willReadFrequently:!0}),v=new a,y,m;s==="svg"||zLt.isSafari()?m=AM.encodeSVG(o):(y=AM.createBlob(o,"svg"),m=AM.createObjectURL(y)),l.width=h,l.height=d,v.onload=function(){var w;switch(y=null,AM.revokeObjectURL(m),s!=="svg"&&p.drawImage(v,0,0,h,d),s){case"jpeg":w=l.toDataURL("image/jpeg");break;case"png":w=l.toDataURL("image/png");break;case"webp":w=l.toDataURL("image/webp");break;case"svg":w=m;break;default:var _="Image format is not jpeg, png, svg or webp.";if(n(new Error(_)),!e.promise)return t.emit("error",_)}i(w),e.promise||t.emit("success",w)},v.onerror=function(w){if(y=null,AM.revokeObjectURL(m),n(w),!e.promise)return t.emit("error",w)},v.src=m});return e.promise?r:t}Rbe.exports=RLt});var yW=K((cUr,Obe)=>{"use strict";var Bbe=Gs(),qbe=FP(),BLt=yf(),nm=Mt(),TM=hy(),qLt=LP(),OLt=PP(),NLt=OT().version,mW=(zU(),ar(PU)).default;function VLt(e,t){t=t||{};var r,i,n,a;nm.isPlainObject(e)?(r=e.data||[],i=e.layout||{},n=e.config||{},a={}):(e=nm.getGraphDiv(e),r=nm.extendDeep([],e.data),i=nm.extendDeep({},e.layout),n=e._context,a=e._fullLayout||{});function o(x){return!(x in t)||nm.validate(t[x],mW[x])}if(!o("width")&&t.width!==null||!o("height")&&t.height!==null)throw new Error("Height and width should be pixel values.");if(!o("format"))throw new Error("Export format is not "+nm.join2(mW.format.values,", "," or ")+".");var s={};function l(x,A){return nm.coerce(t,s,mW,x,A)}var u=l("format"),f=l("width"),c=l("height"),h=l("scale"),d=l("setBackground"),p=l("imageDataOnly"),v=document.createElement("div");v.style.position="absolute",v.style.left="-5000px",document.body.appendChild(v);var y=nm.extendFlat({},i);f?y.width=f:t.width===null&&Bbe(a.width)&&(y.width=a.width),c?y.height=c:t.height===null&&Bbe(a.height)&&(y.height=a.height);var m=nm.extendFlat({},n,{_exportedPlot:!0,staticPlot:!0,setBackground:d}),w=TM.getRedrawFunc(v);function _(){return new Promise(function(x){setTimeout(x,TM.getDelay(v._fullLayout))})}function b(){return new Promise(function(x,A){var T=qLt(v,u,h),g=v._fullLayout.width,E=v._fullLayout.height;function S(){qbe.purge(v),document.body.removeChild(v)}if(u==="full-json"){var C=BLt.graphJson(v,!1,"object",!0,!0);return C.version=NLt,C=JSON.stringify(C),S(),x(p?C:TM.encodeJSON(C))}if(S(),u==="svg")return x(p?T:TM.encodeSVG(T));var k=document.createElement("canvas");k.id=nm.randstr(),OLt({format:u,width:g,height:E,scale:h,canvas:k,svg:T,promise:!0}).then(x).catch(A)})}function M(x){return p?x.replace(TM.IMAGE_URL_PREFIX,""):x}return new Promise(function(x,A){qbe.newPlot(v,r,y,m).then(w).then(_).then(b).then(function(T){x(M(T))}).catch(function(T){A(T)})})}Obe.exports=VLt});var Ube=K((hUr,Vbe)=>{"use strict";var Wp=Mt(),ULt=yf(),GLt=Aw(),HLt=_g().dfltConfig,Yv=Wp.isPlainObject,Lb=Array.isArray,gW=Wp.isArrayOrTypedArray;Vbe.exports=function(t,r){t===void 0&&(t=[]),r===void 0&&(r={});var i=GLt.get(),n=[],a={_context:Wp.extendFlat({},HLt)},o,s;Lb(t)?(a.data=Wp.extendDeep([],t),o=t):(a.data=[],o=[],n.push(wh("array","data"))),Yv(r)?(a.layout=Wp.extendDeep({},r),s=r):(a.layout={},s={},arguments.length>1&&n.push(wh("object","layout"))),ULt.supplyDefaults(a);for(var l=a._fullData,u=o.length,f=0;fc.length&&i.push(wh("unused",n,u.concat(c.length)));var m=c.length,w=Array.isArray(y);w&&(m=Math.min(m,y.length));var _,b,M,x,A;if(h.dimensions===2)for(b=0;bc[b].length&&i.push(wh("unused",n,u.concat(b,c[b].length)));var T=c[b].length;for(_=0;_<(w?Math.min(T,y[b].length):T);_++)M=w?y[b][_]:y,x=f[b][_],A=c[b][_],Wp.validate(x,M)?A!==x&&A!==+x&&i.push(wh("dynamic",n,u.concat(b,_),x,A)):i.push(wh("value",n,u.concat(b,_),x))}else i.push(wh("array",n,u.concat(b),f[b]));else for(b=0;b{"use strict";var KLt=Mt(),IP=hy();function JLt(e,t,r){var i=document.createElement("a"),n="download"in i,a=new Promise(function(o,s){var l,u;if(n)return l=IP.createBlob(e,r),u=IP.createObjectURL(l),i.href=u,i.download=t,document.body.appendChild(i),i.click(),document.body.removeChild(i),IP.revokeObjectURL(u),l=null,o(t);if(KLt.isSafari()){var f=r==="svg"?",":";base64,";return IP.octetStream(f+encodeURIComponent(e)),o(t)}s(new Error("download error"))});return a}Gbe.exports=JLt});var xW=K((pUr,Ybe)=>{"use strict";var RP=Mt(),jbe=zu(),QLt=yW(),ePt=Hbe(),Wbe=hy(),$be=40;function tPt(e,t){var r;return RP.isPlainObject(e)||(r=RP.getGraphDiv(e)),t=t||{},t.format=t.format||"png",t.width=t.width||null,t.height=t.height||null,t.imageDataOnly=!0,new Promise(function(i,n){r&&r._snapshotInProgress&&n(new Error("Image capture already in progress.")),r&&(r._snapshotInProgress=!0);var a=QLt(e,t),o=t.filename||e.fn;if(!o){let l=Wbe.getPlotTitle(e);if(l&&!jbe.matchTex(l))o=RP.slugify(l,$be);else{let u=Wbe.getPlotSubtitle(e);u&&!jbe.matchTex(u)&&(o=RP.slugify(u,$be))}}var s=o||"plot-image";s+="."+t.format.replace("-","."),a.then(function(l){return r&&(r._snapshotInProgress=!1),ePt(l,s,t.format)}).then(function(l){i(l)}).catch(function(l){r&&(r._snapshotInProgress=!1),n(l)})})}Ybe.exports=tPt});var Qbe=K(bW=>{"use strict";var Cd=Mt(),Dd=Cd.isPlainObject,Xbe=Aw(),Zbe=yf(),rPt=Au(),Kbe=fu(),Jbe=_g().dfltConfig;bW.makeTemplate=function(e){e=Cd.isPlainObject(e)?e:Cd.getGraphDiv(e),e=Cd.extendDeep({_context:Jbe},{data:e.data,layout:e.layout}),Zbe.supplyDefaults(e);var t=e.data||[],r=e.layout||{};r._basePlotModules=e._fullLayout._basePlotModules,r._modules=e._fullLayout._modules;var i={data:{},layout:{}};t.forEach(function(d){var p={};MM(d,p,nPt.bind(null,d));var v=Cd.coerce(d,{},rPt,"type"),y=i.data[v];y||(y=i.data[v]=[]),y.push(p)}),MM(r,i.layout,iPt.bind(null,r)),delete i.layout.template;var n=r.template;if(Dd(n)){var a=n.layout,o,s,l,u,f,c;Dd(a)&&BP(a,i.layout);var h=n.data;if(Dd(h)){for(s in i.data)if(l=h[s],Array.isArray(l)){for(f=i.data[s],c=f.length,u=l.length,o=0;om?o.push({code:"unused",traceType:d,templateCount:y,dataCount:m}):m>y&&o.push({code:"reused",traceType:d,templateCount:y,dataCount:m})}}function w(_,b){for(var M in _)if(M.charAt(0)!=="_"){var x=_[M],A=$p(_,M,b);Dd(x)?(Array.isArray(_)&&x._template===!1&&x.templateitemname&&o.push({code:"missing",path:A,templateitemname:x.templateitemname}),w(x,A)):Array.isArray(x)&&aPt(x)&&w(x,A)}}if(w({data:l,layout:s},""),o.length)return o.map(oPt)};function aPt(e){for(var t=0;t{"use strict";var fh=FP();Bf._doPlot=fh._doPlot;Bf.newPlot=fh.newPlot;Bf.restyle=fh.restyle;Bf.relayout=fh.relayout;Bf.redraw=fh.redraw;Bf.update=fh.update;Bf._guiRestyle=fh._guiRestyle;Bf._guiRelayout=fh._guiRelayout;Bf._guiUpdate=fh._guiUpdate;Bf._storeDirectGUIEdit=fh._storeDirectGUIEdit;Bf.react=fh.react;Bf.extendTraces=fh.extendTraces;Bf.prependTraces=fh.prependTraces;Bf.addTraces=fh.addTraces;Bf.deleteTraces=fh.deleteTraces;Bf.moveTraces=fh.moveTraces;Bf.purge=fh.purge;Bf.addFrames=fh.addFrames;Bf.deleteFrames=fh.deleteFrames;Bf.animate=fh.animate;Bf.setPlotConfig=fh.setPlotConfig;var sPt=c6().getGraphDiv,lPt=XL().eraseActiveShape;Bf.deleteActiveShape=function(e){return lPt(sPt(e))};Bf.toImage=yW();Bf.validate=Ube();Bf.downloadImage=xW();var e_e=Qbe();Bf.makeTemplate=e_e.makeTemplate;Bf.validateTemplate=e_e.validateTemplate});var Pb=K((yUr,r_e)=>{"use strict";var _W=Mt(),uPt=Ho();r_e.exports=function(t,r,i,n){var a=n("x"),o=n("y"),s,l=uPt.getComponentMethod("calendars","handleTraceDefaults");if(l(t,r,["x","y"],i),a){var u=_W.minRowLength(a);o?s=Math.min(u,_W.minRowLength(o)):(s=u,n("y0"),n("dy"))}else{if(!o)return 0;s=_W.minRowLength(o),n("x0"),n("dx")}return r._length=s,s}});var Xv=K((gUr,a_e)=>{"use strict";var i_e=Mt().dateTick0,fPt=(Il(),ar(Bl)),cPt=fPt.ONEWEEK;function n_e(e,t){return e%cPt===0?i_e(t,1):i_e(t,0)}a_e.exports=function(t,r,i,n,a){if(a||(a={x:!0,y:!0}),a.x){var o=n("xperiod");o&&(n("xperiod0",n_e(o,r.xcalendar)),n("xperiodalignment"))}if(a.y){var s=n("yperiod");s&&(n("yperiod0",n_e(s,r.ycalendar)),n("yperiodalignment"))}}});var l_e=K((xUr,s_e)=>{"use strict";var o_e=["orientation","groupnorm","stackgaps"];s_e.exports=function(t,r,i,n){var a=i._scatterStackOpts,o=n("stackgroup");if(o){var s=r.xaxis+r.yaxis,l=a[s];l||(l=a[s]={});var u=l[o],f=!1;u?u.traces.push(r):(u=l[o]={traceIndices:[],traces:[r]},f=!0);for(var c={orientation:r.x&&!r.y?"h":"v"},h=0;h{"use strict";var u_e=ko(),f_e=Zh().hasColorscale,c_e=gh(),hPt=ff();h_e.exports=function(t,r,i,n,a,o={}){var s=hPt.isBubble(t),l=(t.line||{}).color,u;if(l&&(i=l),a("marker.symbol"),a("marker.opacity",s?.7:1),a("marker.size"),o.noAngle||(a("marker.angle"),o.noAngleRef||a("marker.angleref"),o.noStandOff||a("marker.standoff")),a("marker.color",i),f_e(t,"marker")&&c_e(t,r,n,a,{prefix:"marker.",cLetter:"c"}),o.noSelect||(a("selected.marker.color"),a("unselected.marker.color"),a("selected.marker.size"),a("unselected.marker.size")),o.noLine||(l&&!Array.isArray(l)&&r.marker.color!==l?u=l:s?u=u_e.background:u=u_e.defaultLine,a("marker.line.color",u),f_e(t,"marker.line")&&c_e(t,r,n,a,{prefix:"marker.line.",cLetter:"c"}),a("marker.line.width",s?1:0),o.noLineDash||a("marker.line.dash")),s&&(a("marker.sizeref"),a("marker.sizemin"),a("marker.sizemode")),o.gradient){var f=a("marker.gradient.type");f!=="none"&&a("marker.gradient.color")}}});var Zv=K((_Ur,d_e)=>{"use strict";var dPt=Mt().isArrayOrTypedArray,pPt=Zh().hasColorscale,vPt=gh();d_e.exports=function(t,r,i,n,a,o){o||(o={});var s=(t.marker||{}).color;if(s&&s._inputArray&&(s=s._inputArray),a("line.color",i),pPt(t,"line"))vPt(t,r,n,a,{prefix:"line.",cLetter:"c"});else{var l=(dPt(s)?!1:s)||i;a("line.color",l)}a("line.width"),o.noDash||a("line.dash"),o.backoff&&a("line.backoff")}});var Jw=K((wUr,p_e)=>{"use strict";p_e.exports=function(t,r,i){var n=i("line.shape");n==="spline"&&i("line.smoothing")}});var Kv=K((AUr,v_e)=>{"use strict";var mPt=Mt();v_e.exports=function(e,t,r,i,n){n=n||{},i("textposition"),mPt.coerceFont(i,"textfont",n.font||r.font,n),n.noSelect||(i("selected.textfont.color"),i("unselected.textfont.color"))}});var am=K((TUr,y_e)=>{"use strict";var OP=ko(),m_e=Mt().isArrayOrTypedArray;function yPt(e){for(var t=OP.interpolate(e[0][1],e[1][1],.5),r=2;r{"use strict";var g_e=Mt(),gPt=Ho(),xPt=Zf(),bPt=(rm(),ar(tm)),Qw=ff(),_Pt=Pb(),wPt=Xv(),APt=l_e(),TPt=Yp(),MPt=Zv(),x_e=Jw(),SPt=Kv(),EPt=am(),kPt=Mt().coercePattern;b_e.exports=function(t,r,i,n){function a(d,p){return g_e.coerce(t,r,xPt,d,p)}var o=_Pt(t,r,n,a);if(o||(r.visible=!1),!!r.visible){wPt(t,r,n,a),a("xhoverformat"),a("yhoverformat"),a("zorder");var s=APt(t,r,n,a);n.scattermode==="group"&&r.orientation===void 0&&a("orientation","v");var l=!s&&o{"use strict";var CPt=Cb().getAxisGroup;w_e.exports=function(t,r,i,n,a){var o=r.orientation,s=r[{v:"x",h:"y"}[o]+"axis"],l=CPt(i,s)+o,u=i._alignmentOpts||{},f=n("alignmentgroup"),c=u[l];c||(c=u[l]={});var h=c[f];h?h.traces.push(r):h=c[f]={traces:[r],alignmentIndex:Object.keys(c).length,offsetGroups:{}};var d=n("offsetgroup")||"",p=h.offsetGroups,v=p[d];r._offsetIndex=0,(a!=="group"||d)&&(v||(v=p[d]={offsetIndex:Object.keys(p).length}),r._offsetIndex=v.offsetIndex)}});var wW=K((EUr,A_e)=>{"use strict";var DPt=Mt(),FPt=zb(),LPt=Zf();A_e.exports=function(t,r){var i,n,a,o=r.scattermode;function s(h){return DPt.coerce(n._input,n,LPt,h)}if(r.scattermode==="group")for(a=0;a=0;f--){var c=t[f];if(c.type==="scatter"&&c.xaxis===l.xaxis&&c.yaxis===l.yaxis){c.opacity=void 0;break}}}}}});var M_e=K((kUr,T_e)=>{"use strict";var PPt=Mt(),zPt=OF();T_e.exports=function(e,t){function r(n,a){return PPt.coerce(e,t,zPt,n,a)}var i=t.barmode==="group";t.scattermode==="group"&&r("scattergap",i?t.bargap:.2)}});var Jv=K((CUr,E_e)=>{"use strict";var IPt=Gs(),S_e=Mt(),RPt=S_e.dateTime2ms,NP=S_e.incrementMonth,BPt=(Il(),ar(Bl)),qPt=BPt.ONEAVGMONTH;E_e.exports=function(t,r,i,n){if(r.type!=="date")return{vals:n};var a=t[i+"periodalignment"];if(!a)return{vals:n};var o=t[i+"period"],s;if(IPt(o)){if(o=+o,o<=0)return{vals:n}}else if(typeof o=="string"&&o.charAt(0)==="M"){var l=+o.substring(1);if(l>0&&Math.round(l)===l)s=l;else return{vals:n}}for(var u=r.calendar,f=a==="start",c=a==="end",h=t[i+"period0"],d=RPt(h,u)||0,p=[],v=[],y=[],m=n.length,w=0;w_;)x=NP(x,-s,u);for(;x<=_;)x=NP(x,s,u);M=NP(x,-s,u)}else{for(b=Math.round((_-d)/o),x=d+b*o;x>_;)x-=o;for(;x<=_;)x+=o;M=x-o}p[w]=f?M:c?x:(M+x)/2,v[w]=M,y[w]=x}return{vals:p,starts:v,ends:y}}});var Xp=K((DUr,C_e)=>{"use strict";var AW=Zh().hasColorscale,TW=A0(),k_e=ff();C_e.exports=function(t,r){k_e.hasLines(r)&&AW(r,"line")&&TW(t,r,{vals:r.line.color,containerStr:"line",cLetter:"c"}),k_e.hasMarkers(r)&&(AW(r,"marker")&&TW(t,r,{vals:r.marker.color,containerStr:"marker",cLetter:"c"}),AW(r,"marker.line")&&TW(t,r,{vals:r.marker.line.color,containerStr:"marker.line",cLetter:"c"}))}});var om=K((FUr,D_e)=>{"use strict";var sc=Mt();D_e.exports=function(t,r){for(var i=0;i{"use strict";var F_e=Mt();L_e.exports=function(t,r){F_e.isArrayOrTypedArray(r.selectedpoints)&&F_e.tagSelected(t,r)}});var Zp=K((PUr,O_e)=>{"use strict";var P_e=Gs(),SW=Mt(),SM=Cs(),z_e=Jv(),MW=(Il(),ar(Bl)).BADNUM,EW=ff(),OPt=Xp(),NPt=om(),VPt=np();function UPt(e,t){var r=e._fullLayout,i=t._xA=SM.getFromId(e,t.xaxis||"x","x"),n=t._yA=SM.getFromId(e,t.yaxis||"y","y"),a=i.makeCalcdata(t,"x"),o=n.makeCalcdata(t,"y"),s=z_e(t,i,"x",a),l=z_e(t,n,"y",o),u=s.vals,f=l.vals,c=t._length,h=new Array(c),d=t.ids,p=kW(t,r,i,n),v=!1,y,m,w,_,b,M;B_e(r,t);var x="x",A="y",T;if(p)SW.pushUnique(p.traceIndices,t.index),y=p.orientation==="v",y?(A="s",T="x"):(x="s",T="y"),b=p.stackgaps==="interpolate";else{var g=R_e(t,c);I_e(e,t,i,n,u,f,g)}var E=!!t.xperiodalignment,S=!!t.yperiodalignment;for(m=0;mm&&h[_].gap;)_--;for(M=h[_].s,w=h.length-1;w>_;w--)h[w].s=M;for(;m<_;)if(m++,h[m].gap){for(w=m+1;h[w].gap;)w++;for(var L=h[m-1][T],P=h[m-1].s,I=(h[w].s-P)/(h[w][T]-L);m{"use strict";N_e.exports=VP;var GPt=Mt().distinctVals;function VP(e,t){this.traces=e,this.sepNegVal=t.sepNegVal,this.overlapNoMerge=t.overlapNoMerge;for(var r=1/0,i=t.posAxis._id.charAt(0),n=[],a=0;aHPt,eventDataKeys:()=>jPt});var HPt,jPt,Qg=ps(()=>{"use strict";HPt=3,jPt=["value","label"]});var Ib=K((IUr,j_e)=>{"use strict";var Kp=Gs(),{isArrayOrTypedArray:dy}=Mt(),{BADNUM:eA}=(Il(),ar(Bl)),WPt=Ho(),EM=Cs(),{getAxisGroup:$Pt}=Cb(),UP=V_e(),{TEXTPAD:YPt}=(Qg(),ar(Jg)),{LINE_SPACING:XPt}=(Hc(),ar(Gc)),{BR_TAG_ALL:ZPt}=zu();function KPt(e,t){for(var r=t.xaxis,i=t.yaxis,n=e._fullLayout,a=e._fullData,o=e.calcdata,s=[],l=[],u=0;ul+o||!Kp(s))}for(var f=0;fi(a))):i(e.text);let n=e.outsidetextfont.size*XPt*r+YPt;return{ppadplus:t.some(a=>a.s<0)?n:0,ppadminus:t.some(a=>a.s>=0)?n:0}}return{ppadplus:void 0,ppadminus:void 0}}function s8t(e,t,r,i){for(var n=tA(i),a=0;a{"use strict";var W_e=Zp(),$_e=Ib().setGroupPositions;function u8t(e,t){for(var r=t.xaxis,i=t.yaxis,n=e._fullLayout,a=e._fullData,o=e.calcdata,s=[],l=[],u=0;ug[f]&&f{"use strict";var c8t=Bs(),Q_e=(Il(),ar(Bl)),kM=Q_e.BADNUM,e3e=Q_e.LOG_CLIP,Z_e=e3e+.5,K_e=e3e-.5,GP=Mt(),h8t=GP.segmentsIntersect,J_e=GP.constrain,IW=(rm(),ar(tm));t3e.exports=function(t,r){var i=r.trace||{},n=r.xaxis,a=r.yaxis,o=n.type==="log",s=a.type==="log",l=n._length,u=a._length,f=r.backoff,c=i.marker,h=r.connectGaps,d=r.baseTolerance,p=r.shape,v=p==="linear",y=i.fill&&i.fill!=="none",m=[],w=IW.minTolerance,_=t.length,b=new Array(_),M=0,x,A,T,g,E,S,C,k,D,L,P,I,F,z,B,O;function W(xe){var Re=t[xe];if(!Re)return!1;var Qe=r.linearized?n.l2p(Re.x):n.c2p(Re.x),Pe=r.linearized?a.l2p(Re.y):a.c2p(Re.y);if(Qe===kM){if(o&&(Qe=n.c2p(Re.x,!0)),Qe===kM)return!1;s&&Pe===kM&&(Qe*=Math.abs(n._m*u*(n._m>0?Z_e:K_e)/(a._m*l*(a._m>0?Z_e:K_e)))),Qe*=1e3}if(Pe===kM){if(s&&(Pe=a.c2p(Re.y,!0)),Pe===kM)return!1;Pe*=1e3}return[Qe,Pe]}function X(xe,Re,Qe,Pe){var De=Qe-xe,Ve=Pe-Re,Le=.5-xe,Se=.5-Re,ze=De*De+Ve*Ve,st=De*Le+Ve*Se;if(st>0&&st1||Math.abs(Le.y-Qe[0][1])>1)&&(Le=[Le.x,Le.y],Pe&&Q(Le,xe)J||xe[1]$)return[J_e(xe[0],V,J),J_e(xe[1],H,$)]}function we(xe,Re){if(xe[0]===Re[0]&&(xe[0]===V||xe[0]===J)||xe[1]===Re[1]&&(xe[1]===H||xe[1]===$))return!0}function oe(xe,Re){var Qe=[],Pe=Ee(xe),De=Ee(Re);return Pe&&De&&we(Pe,De)||(Pe&&Qe.push(Pe),De&&Qe.push(De)),Qe}function Y(xe,Re,Qe){return function(Pe,De){var Ve=Ee(Pe),Le=Ee(De),Se=[];if(Ve&&Le&&we(Ve,Le))return Se;Ve&&Se.push(Ve),Le&&Se.push(Le);var ze=2*GP.constrain((Pe[xe]+De[xe])/2,Re,Qe)-((Ve||Pe)[xe]+(Le||De)[xe]);if(ze){var st;Ve&&Le?st=ze>0==Ve[xe]>Le[xe]?Ve:Le:st=Ve||Le,st[xe]+=ze}return Se}}var ne;p==="linear"||p==="spline"?ne=re:p==="hv"||p==="vh"?ne=oe:p==="hvh"?ne=Y(0,V,J):p==="vhv"&&(ne=Y(1,H,$));function ye(xe,Re){var Qe=Re[0]-xe[0],Pe=(Re[1]-xe[1])/Qe,De=(xe[1]*Re[0]-Re[1]*xe[0])/Qe;return De>0?[Pe>0?V:J,$]:[Pe>0?J:V,H]}function U(xe){var Re=xe[0],Qe=xe[1],Pe=Re===b[M-1][0],De=Qe===b[M-1][1];if(!(Pe&&De))if(M>1){var Ve=Re===b[M-2][0],Le=Qe===b[M-2][1];Pe&&(Re===V||Re===J)&&Ve?Le?M--:b[M-1]=xe:De&&(Qe===H||Qe===$)&&Le?Ve?M--:b[M-1]=xe:b[M++]=xe}else b[M++]=xe}function se(xe){b[M-1][0]!==xe[0]&&b[M-1][1]!==xe[1]&&U([ge,Ie]),U(xe),Ce=null,ge=Ie=0}var Ae=GP.isArrayOrTypedArray(c);function be(xe){if(xe&&f&&(xe.i=x,xe.d=t,xe.trace=i,xe.marker=Ae?c[xe.i]:c,xe.backoff=f),Z=xe[0]/l,j=xe[1]/u,ie=xe[0]J?J:0,de=xe[1]$?$:0,ie||de){if(!M)b[M++]=[ie||xe[0],de||xe[1]];else if(Ce){var Re=ne(Ce,xe);Re.length>1&&(se(Re[0]),b[M++]=Re[1])}else le=ne(b[M-1],xe)[0],b[M++]=le;var Qe=b[M-1];ie&&de&&(Qe[0]!==ie||Qe[1]!==de)?(Ce&&(ge!==ie&&Ie!==de?U(ge&&Ie?ye(Ce,xe):[ge||ie,Ie||de]):ge&&Ie&&U([ge,Ie])),U([ie,de])):ge-ie&&Ie-de&&U([ie||ge,de||Ie]),Ce=xe,ge=ie,Ie=de}else Ce&&se(ne(Ce,xe)[0]),b[M++]=xe}for(x=0;x<_;x++)if(A=W(x),!!A){for(M=0,Ce=null,be(A),x++;x<_;x++){if(g=W(x),!g){if(h)continue;break}if(!v||!r.simplify){be(g);continue}var me=W(x+1);if(L=Q(g,A),!(!(y&&(M===0||M===_-1))&&Lq(S,me))break;T=S,F=D[0]*k[0]+D[1]*k[1],F>P?(P=F,g=S,C=!1):F=t.length||!S)break;be(S),A=S}}Ce&&U([ge||Ce[0],Ie||Ce[1]]),m.push(b.slice(0,M))}var ue=p.slice(p.length-1);if(f&&ue!=="h"&&ue!=="v"){for(var pe=!1,ce=-1,Be=[],$e=0;$e{"use strict";var r3e={tonextx:1,tonexty:1,tonext:1};i3e.exports=function(t,r,i){var n,a,o,s,l,u={},f=!1,c=-1,h=0,d=-1;for(a=0;a=0?l=d:(l=d=h,h++),l{"use strict";var Qv=No(),d8t=Ho(),CM=Mt(),rA=CM.ensureSingle,a3e=CM.identity,pc=Bs(),iA=ff(),p8t=RW(),v8t=BW(),HP=iM().tester;o3e.exports=function(t,r,i,n,a,o){var s,l,u=!a,f=!!a&&a.duration>0,c=v8t(t,r,i);if(s=n.selectAll("g.trace").data(c,function(d){return d[0].trace.uid}),s.enter().append("g").attr("class",function(d){return"trace scatter trace"+d[0].trace.uid}).style("stroke-miterlimit",2),s.order(),m8t(t,s,r),f){o&&(l=o());var h=Qv.transition().duration(a.duration).ease(a.easing).each("end",function(){l&&l()}).each("interrupt",function(){l&&l()});h.each(function(){n.selectAll("g.trace").each(function(d,p){n3e(t,p,r,d,c,this,a)})})}else s.each(function(d,p){n3e(t,p,r,d,c,this,a)});u&&s.exit().remove(),n.selectAll("path:not([d])").remove()};function m8t(e,t,r){t.each(function(i){var n=rA(Qv.select(this),"g","fills");pc.setClipUrl(n,r.layerClipId,e);var a=i[0].trace;a._ownFill=null,a._nextFill=null;var o=[];a._ownfill&&o.push("_ownFill"),a._nexttrace&&o.push("_nextFill");var s=n.selectAll("g").data(o,a3e);s.enter().append("g"),s.exit().remove(),s.order().each(function(l){a[l]=rA(Qv.select(this),"path","js-fill")})})}function n3e(e,t,r,i,n,a,o){var s=e._context.staticPlot,l;y8t(e,t,r,i,n);var u=!!o&&o.duration>0;function f(Y){return u?Y.transition():Y}var c=r.xaxis,h=r.yaxis,d=i[0].trace,p=d.line,v=Qv.select(a),y=rA(v,"g","errorbars"),m=rA(v,"g","lines"),w=rA(v,"g","points"),_=rA(v,"g","text");if(d8t.getComponentMethod("errorbars","plot")(e,y,r,o),d.visible!==!0)return;f(v).style("opacity",d.opacity);var b,M,x=d.fill.charAt(d.fill.length-1);x!=="x"&&x!=="y"&&(x="");var A,T;x==="y"?(A=1,T=h.c2p(0,!0)):x==="x"&&(A=0,T=c.c2p(0,!0)),i[0][r.isRangePlot?"nodeRangePlot3":"node3"]=v;var g="",E=[],S=d._prevtrace,C=null,k=null;S&&(g=S._prevRevpath||"",M=S._nextFill,E=S._ownPolygons,C=S._fillsegments,k=S._fillElement);var D,L,P="",I="",F,z,B,O,W,X,Z=[];d._polygons=[];var j=[],q=[],Q=CM.noop;if(b=d._ownFill,iA.hasLines(d)||d.fill!=="none"){M&&M.datum(i),["hv","vh","hvh","vhv"].indexOf(p.shape)!==-1?(F=pc.steps(p.shape),z=pc.steps(p.shape.split("").reverse().join(""))):p.shape==="spline"?F=z=function(Y){var ne=Y[Y.length-1];return Y.length>1&&Y[0][0]===ne[0]&&Y[0][1]===ne[1]?pc.smoothclosed(Y.slice(1),p.smoothing):pc.smoothopen(Y,p.smoothing)}:F=z=function(Y){return"M"+Y.join("L")},B=function(Y){return z(Y.reverse())},q=p8t(i,{xaxis:c,yaxis:h,trace:d,connectGaps:d.connectgaps,baseTolerance:Math.max(p.width||1,3)/4,shape:p.shape,backoff:p.backoff,simplify:p.simplify,fill:d.fill}),j=new Array(q.length);var N=0;for(l=0;l=s[0]&&v.x<=s[1]&&v.y>=l[0]&&v.y<=l[1]}),h=Math.ceil(c.length/f),d=0;n.forEach(function(v,y){var m=v[0].trace;iA.hasMarkers(m)&&m.marker.maxdisplayed>0&&y{"use strict";s3e.exports={container:"marker",min:"cmin",max:"cmax"}});var WP=K((VUr,l3e)=>{"use strict";var jP=Cs();l3e.exports=function(t,r,i){var n={},a={_fullLayout:i},o=jP.getFromTrace(a,r,"x"),s=jP.getFromTrace(a,r,"y"),l=t.orig_x;l===void 0&&(l=t.x);var u=t.orig_y;return u===void 0&&(u=t.y),n.xLabel=jP.tickText(o,o.c2l(l),!0).text,n.yLabel=jP.tickText(s,s.c2l(u),!0).text,n}});var fd=K((UUr,u3e)=>{"use strict";var qW=No(),aA=Bs(),g8t=Ho();function x8t(e){var t=qW.select(e).selectAll("g.trace.scatter");t.style("opacity",function(r){return r[0].trace.opacity}),t.selectAll("g.points").each(function(r){var i=qW.select(this),n=r.trace||r[0].trace;OW(i,n,e)}),t.selectAll("g.text").each(function(r){var i=qW.select(this),n=r.trace||r[0].trace;NW(i,n,e)}),t.selectAll("g.trace path.js-line").call(aA.lineGroupStyle),t.selectAll("g.trace path.js-fill").call(aA.fillGroupStyle,e,!1),g8t.getComponentMethod("errorbars","style")(t)}function OW(e,t,r){aA.pointStyle(e.selectAll("path.point"),t,r)}function NW(e,t,r){aA.textPointStyle(e.selectAll("text"),t,r)}function b8t(e,t,r){var i=t[0].trace;i.selectedpoints?(aA.selectedPointStyle(r.selectAll("path.point"),i),aA.selectedTextStyle(r.selectAll("text"),i)):(OW(r,i,e),NW(r,i,e))}u3e.exports={style:x8t,stylePoints:OW,styleText:NW,styleOnSelect:b8t}});var sA=K((GUr,f3e)=>{"use strict";var oA=ko(),_8t=ff();f3e.exports=function(t,r){var i,n;if(t.mode==="lines")return i=t.line.color,i&&oA.opacity(i)?i:t.fillcolor;if(t.mode==="none")return t.fill?t.fillcolor:"";var a=r.mcc||r.mc||(t.marker||{}).color,o=r.mlcc||((t.marker||{}).line||{}).color;return n=a&&oA.opacity(a)?a:o&&oA.opacity(o)&&(r.mlw||((t.marker||{}).line||{}).width)?o:"",n?oA.opacity(n)<.3?oA.addOpacity(n,.3):n:(i=(t.line||{}).color,i&&oA.opacity(i)&&_8t.hasLines(t)&&t.line.width?i:t.fillcolor)}});var lA=K((HUr,h3e)=>{"use strict";var $P=Mt(),c3e=Uf(),w8t=Ho(),A8t=sA(),VW=ko(),T8t=$P.fillText;h3e.exports=function(t,r,i,n){var a=t.cd,o=a[0].trace,s=t.xa,l=t.ya,u=s.c2p(r),f=l.c2p(i),c=[u,f],h=o.hoveron||"",d=o.mode.indexOf("markers")!==-1?3:.5,p=!!o.xperiodalignment,v=!!o.yperiodalignment;if(h.indexOf("points")!==-1){var y=function(I){if(p){var F=s.c2p(I.xStart),z=s.c2p(I.xEnd);return u>=Math.min(F,z)&&u<=Math.max(F,z)?0:1/0}var B=Math.max(3,I.mrc||0),O=1-1/B,W=Math.abs(s.c2p(I.x)-u);return W=Math.min(F,z)&&f<=Math.max(F,z)?0:1/0}var B=Math.max(3,I.mrc||0),O=1-1/B,W=Math.abs(l.c2p(I.y)-f);return WZ!=$>=Z&&(V=Q[q-1][0],J=Q[q][0],$-H&&(N=V+(J-V)*(Z-H)/($-H),B=Math.min(B,N),O=Math.max(O,N)));return B=Math.max(B,0),O=Math.min(O,s._length),{x0:B,x1:O,y0:Z,y1:Z}}if(h.indexOf("fills")!==-1&&o._fillElement){var D=C(o._fillElement)&&!C(o._fillExclusionElement);if(D){var L=k(o._polygons);L===null&&(L={x0:c[0],x1:c[0],y0:c[1],y1:c[1]});var P=VW.defaultLine;return VW.opacity(o.fillcolor)?P=o.fillcolor:VW.opacity((o.line||{}).color)&&(P=o.line.color),$P.extendFlat(t,{distance:t.maxHoverDistance,x0:L.x0,x1:L.x1,y0:L.y0,y1:L.y1,color:P,hovertemplate:!1}),delete t.index,o.text&&!$P.isArrayOrTypedArray(o.text)?t.text=String(o.text):t.text=o.name,[t]}}}});var Rb=K((jUr,p3e)=>{"use strict";var d3e=ff();p3e.exports=function(t,r){var i=t.cd,n=t.xaxis,a=t.yaxis,o=[],s=i[0].trace,l,u,f,c,h=s.mode&&!d3e.hasMarkers(s)&&!d3e.hasText(s);if(h)return[];if(r===!1)for(l=0;l{"use strict";v3e.exports={xaxis:{valType:"subplotid",dflt:"x",editType:"calc+clearAxisTypes"},yaxis:{valType:"subplotid",dflt:"y",editType:"calc+clearAxisTypes"}}});var GW=K(($Ur,x3e)=>{"use strict";var YP=Ho().traceIs,UW=Pw();x3e.exports=function(t,r,i,n){i("autotypenumbers",n.autotypenumbersDflt);var a=i("type",(n.splomStash||{}).type);a==="-"&&(M8t(r,n.data),r.type==="-"?r.type="linear":t.type=r.type)};function M8t(e,t){if(e.type==="-"){var r=e._id,i=r.charAt(0),n;r.indexOf("scene")!==-1&&(r=i);var a=S8t(t,r,i);if(a){if(a.type==="histogram"&&i==={v:"y",h:"x"}[a.orientation||"v"]){e.type="linear";return}var o=i+"calendar",s=a[o],l={noMultiCategory:!YP(a,"cartesian")||YP(a,"noMultiCategory")};if(a.type==="box"&&a._hasPreCompStats&&i==={h:"x",v:"y"}[a.orientation||"v"]&&(l.noMultiCategory=!0),l.autotypenumbers=e.autotypenumbers,g3e(a,i)){var u=y3e(a),f=[];for(n=0;n0&&(n["_"+r+"axes"]||{})[t])return n;if((n[r+"axis"]||r)===t){if(g3e(n,r))return n;if((n[r]||[]).length||n[r+"0"])return n}}}function y3e(e){return{v:"x",h:"y"}[e.orientation||"v"]}function g3e(e,t){var r=y3e(e),i=YP(e,"box-violin");return i&&t===r&&e[r]===void 0&&e[r+"0"]===void 0}});var XP=K((YUr,b3e)=>{"use strict";var E8t=$h().isTypedArraySpec;function k8t(e,t){var r=t.dataAttr||e._id.charAt(0),i={},n,a,o;if(t.axData)n=t.axData;else for(n=[],a=0;a0||E8t(a),s;o&&(s="array");var l=i("categoryorder",s),u;l==="array"&&(u=i("categoryarray")),!o&&l==="array"&&(l=r.categoryorder="trace"),l==="trace"?r._initialCategories=[]:l==="array"?r._initialCategories=u.slice():(u=k8t(r,n).sort(),l==="category ascending"?r._initialCategories=u:l==="category descending"&&(r._initialCategories=u.reverse()))}}});var DM=K((XUr,w3e)=>{"use strict";var _3e=ko(),C8t=Nc(),D8t=Mt();w3e.exports=function(t,r,i,n){n=n||{};var a=n.dfltColor;function o(T,g){return D8t.coerce2(t,r,n.attributes,T,g)}var s=o("linecolor",a),l=o("linewidth"),u=i("showline",n.showLine||!!s||!!l);u||(delete r.linecolor,delete r.linewidth);var f=_3e.mix(a,n.bgColor,n.blend||C8t.lightFraction),c=o("gridcolor",f),h=o("gridwidth"),d=o("griddash"),p=i("showgrid",n.showGrid||!!c||!!h||!!d);if(p||(delete r.gridcolor,delete r.gridwidth,delete r.griddash),n.hasMinor){var v=_3e.mix(r.gridcolor,n.bgColor,67),y=o("minor.gridcolor",v),m=o("minor.gridwidth",r.gridwidth||1),w=o("minor.griddash",r.griddash||"solid"),_=i("minor.showgrid",!!y||!!m||!!w);_||(delete r.minor.gridcolor,delete r.minor.gridwidth,delete r.minor.griddash)}if(!n.noZeroLine){var b=o("zerolinelayer"),M=o("zerolinecolor",a),x=o("zerolinewidth"),A=i("zeroline",n.showGrid||!!M||!!x);A||(delete r.zerolinelayer,delete r.zerolinecolor,delete r.zerolinewidth)}}});var LM=K((ZUr,k3e)=>{"use strict";var A3e=Gs(),F8t=Ho(),FM=Mt(),L8t=fu(),P8t=w0(),HW=Lh(),T3e=ub(),M3e=Ew(),z8t=Pg(),I8t=zg(),R8t=XP(),B8t=DM(),q8t=PH(),S3e=G1(),ZP=(Uc(),ar(Vc)).WEEKDAY_PATTERN,O8t=(Uc(),ar(Vc)).HOUR_PATTERN;k3e.exports=function(t,r,i,n,a){var o=n.letter,s=n.font||{},l=n.splomStash||{},u=i("visible",!n.visibleDflt),f=r._template||{},c=r.type||f.type||"-",h;if(c==="date"){var d=F8t.getComponentMethod("calendars","handleDefaults");d(t,r,"calendar",n.calendar),n.noTicklabelmode||(h=i("ticklabelmode"))}!n.noTicklabelindex&&(c==="date"||c==="linear")&&i("ticklabelindex");var p="";(!n.noTicklabelposition||c==="multicategory")&&(p=FM.coerce(t,r,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:h==="period"?["outside","inside"]:o==="x"?["outside","inside","outside left","inside left","outside right","inside right"]:["outside","inside","outside top","inside top","outside bottom","inside bottom"]}},"ticklabelposition")),n.noTicklabeloverflow||i("ticklabeloverflow",p.indexOf("inside")!==-1?"hide past domain":c==="category"||c==="multicategory"?"allow":"hide past div"),S3e(r,a),q8t(t,r,i,n),R8t(t,r,i,n),n.noHover||(c!=="category"&&i("hoverformat"),n.noUnifiedhovertitle||i("unifiedhovertitle.text"));var v=i("color"),y=v!==HW.color.dflt?v:s.color,m=l.label||a._dfltTitle[o];if(I8t(t,r,i,c,n),!u)return r;i("title.text",m),FM.coerceFont(i,"title.font",s,{overrideDflt:{size:FM.bigFont(s.size),color:y}}),T3e(t,r,i,c);var w=n.hasMinor;if(w&&(L8t.newContainer(r,"minor"),T3e(t,r,i,c,{isMinor:!0})),z8t(t,r,i,c,n),M3e(t,r,i,n),w){var _=n.isMinor;n.isMinor=!0,M3e(t,r,i,n),n.isMinor=_}B8t(t,r,i,{dfltColor:v,bgColor:n.bgColor,showGrid:n.showGrid,hasMinor:w,attributes:HW}),w&&r.ticklabelindex==null&&!r.minor.ticks&&!r.minor.showgrid&&delete r.minor,(r.showline||r.ticks)&&i("mirror");var b=c==="multicategory";if(!n.noTickson&&(c==="category"||b)&&(r.ticks||r.showgrid)&&(b?(i("tickson","boundaries"),delete r.ticklabelposition):i("tickson")),b){var M=i("showdividers");M&&(i("dividercolor"),i("dividerwidth"))}if(c==="date")if(P8t(t,r,{name:"rangebreaks",inclusionAttr:"enabled",handleItemDefaults:N8t}),!r.rangebreaks.length)delete r.rangebreaks;else{for(var x=0;x=2){var o="",s,l;if(a.length===2){for(s=0;s<2;s++)if(l=E3e(a[s]),l){o=ZP;break}}var u=i("pattern",o);if(u===ZP)for(s=0;s<2;s++)l=E3e(a[s]),l&&(t.bounds[s]=a[s]=l-1);if(u)for(s=0;s<2;s++)switch(l=a[s],u){case ZP:if(!A3e(l)){t.enabled=!1;return}if(l=+l,l!==Math.floor(l)||l<0||l>=7){t.enabled=!1;return}t.bounds[s]=a[s]=l;break;case O8t:if(!A3e(l)){t.enabled=!1;return}if(l=+l,l<0||l>24){t.enabled=!1;return}t.bounds[s]=a[s]=l;break}if(r.autorange===!1){var f=r.range;if(f[0]f[1]){t.enabled=!1;return}}else if(a[0]>f[0]&&a[1]{"use strict";var U8t=Gs(),KP=Mt();C3e.exports=function(t,r,i,n){var a=n.counterAxes||[],o=n.overlayableAxes||[],s=n.letter,l=n.grid,u=n.overlayingDomain,f,c,h,d,p,v;l&&(c=l._domains[s][l._axisMap[r._id]],f=l._anchors[r._id],c&&(h=l[s+"side"].split(" ")[0],d=l.domain[s][h==="right"||h==="top"?1:0])),c=c||[0,1],f=f||(U8t(t.position)?"free":a[0]||"free"),h=h||(s==="x"?"bottom":"left"),d=d||0,p=0,v=!1;var y=KP.coerce(t,r,{anchor:{valType:"enumerated",values:["free"].concat(a),dflt:f}},"anchor"),m=KP.coerce(t,r,{side:{valType:"enumerated",values:s==="x"?["bottom","top"]:["left","right"],dflt:h}},"side");if(y==="free"){if(s==="y"){var w=i("autoshift");w&&(d=m==="left"?u[0]:u[1],v=r.automargin?r.automargin:!0,p=m==="left"?-3:3),i("shift",p)}i("position",d)}i("automargin",v);var _=!1;if(o.length&&(_=KP.coerce(t,r,{overlaying:{valType:"enumerated",values:[!1].concat(o),dflt:!1}},"overlaying")),!_){var b=i("domain",c);b[0]>b[1]-1/4096&&(r.domain=c),KP.noneOrAll(t.domain,r.domain,c),r.tickmode==="sync"&&(r.tickmode="auto")}return i("layer"),r}});var q3e=K((JUr,B3e)=>{"use strict";var Bb=Mt(),D3e=ko(),G8t=od().isUnifiedHover,H8t=oj(),F3e=fu(),j8t=hw(),L3e=Lh(),W8t=GW(),P3e=LM(),$8t=Cb(),z3e=JP(),WW=Vf(),sm=WW.id2name,I3e=WW.name2id,Y8t=(Uc(),ar(Vc)).AX_ID_PATTERN,R3e=Ho(),QP=R3e.traceIs,jW=R3e.getComponentMethod;function e8(e,t,r){Array.isArray(e[t])?e[t].push(r):e[t]=[r]}B3e.exports=function(t,r,i){var n=r.autotypenumbers,a={},o={},s={},l={},u={},f={},c={},h={},d={},p={},v,y;for(v=0;v{"use strict";var X8t=No(),O3e=Ho(),t8=Mt(),ap=Bs(),r8=Cs();N3e.exports=function(t,r,i,n){var a=t._fullLayout;if(r.length===0){r8.redrawComponents(t);return}function o(y){var m=y.xaxis,w=y.yaxis;a._defs.select("#"+y.clipId+"> rect").call(ap.setTranslate,0,0).call(ap.setScale,1,1),y.plot.call(ap.setTranslate,m._offset,w._offset).call(ap.setScale,1,1);var _=y.plot.selectAll(".scatterlayer .trace");_.selectAll(".point").call(ap.setPointGroupScale,1,1),_.selectAll(".textpoint").call(ap.setTextPointsScale,1,1),_.call(ap.hideOutsideRangePoints,y)}function s(y,m){var w=y.plotinfo,_=w.xaxis,b=w.yaxis,M=_._length,x=b._length,A=!!y.xr1,T=!!y.yr1,g=[];if(A){var E=t8.simpleMap(y.xr0,_.r2l),S=t8.simpleMap(y.xr1,_.r2l),C=E[1]-E[0],k=S[1]-S[0];g[0]=(E[0]*(1-m)+m*S[0]-E[0])/(E[1]-E[0])*M,g[2]=M*(1-m+m*k/C),_.range[0]=_.l2r(E[0]*(1-m)+m*S[0]),_.range[1]=_.l2r(E[1]*(1-m)+m*S[1])}else g[0]=0,g[2]=M;if(T){var D=t8.simpleMap(y.yr0,b.r2l),L=t8.simpleMap(y.yr1,b.r2l),P=D[1]-D[0],I=L[1]-L[0];g[1]=(D[1]*(1-m)+m*L[1]-D[1])/(D[0]-D[1])*x,g[3]=x*(1-m+m*I/P),b.range[0]=_.l2r(D[0]*(1-m)+m*L[0]),b.range[1]=b.l2r(D[1]*(1-m)+m*L[1])}else g[1]=0,g[3]=x;r8.drawOne(t,_,{skipTitle:!0}),r8.drawOne(t,b,{skipTitle:!0}),r8.redrawComponents(t,[_._id,b._id]);var F=A?M/g[2]:1,z=T?x/g[3]:1,B=A?g[0]:0,O=T?g[1]:0,W=A?g[0]/g[2]*M:0,X=T?g[1]/g[3]*x:0,Z=_._offset-W,j=b._offset-X;w.clipRect.call(ap.setTranslate,B,O).call(ap.setScale,1/F,1/z),w.plot.call(ap.setTranslate,Z,j).call(ap.setScale,F,z),ap.setPointGroupScale(w.zoomScalePts,1/F,1/z),ap.setTextPointsScale(w.zoomScaleTxt,1/F,1/z)}var l;n&&(l=n());function u(){for(var y={},m=0;mi.duration?(u(),d=window.cancelAnimationFrame(v)):d=window.requestAnimationFrame(v)}return c=Date.now(),d=window.requestAnimationFrame(v),Promise.resolve()}});var vc=K(M0=>{"use strict";var n8=No(),U3e=Ho(),qb=Mt(),Z8t=yf(),K8t=Bs(),G3e=Xh().getModuleCalcData,e2=Vf(),e1=(Uc(),ar(Vc)),J8t=(zp(),ar(Pp)),Mu=qb.ensureSingle;function i8(e,t,r){return qb.ensureSingle(e,t,r,function(i){i.datum(r)})}var Ob=e1.zindexSeparator;M0.name="cartesian";M0.attr=["xaxis","yaxis"];M0.idRoot=["x","y"];M0.idRegex=e1.idRegex;M0.attrRegex=e1.attrRegex;M0.attributes=m3e();M0.layoutAttributes=Lh();M0.supplyLayoutDefaults=q3e();M0.transitionAxes=V3e();M0.finalizeSubplots=function(e,t){var r=t._subplots,i=r.xaxis,n=r.yaxis,a=r.cartesian,o=a,s={},l={},u,f,c;for(u=0;u0){var d=h.id;if(d.indexOf(Ob)!==-1)continue;d+=Ob+(u+1),h=qb.extendFlat({},h,{id:d,plot:n._cartesianlayer.selectAll(".subplot").select("."+d)})}for(var p=[],v,y=0;y1&&(M+=Ob+b),_.push(s+M),o=0;o1,c=t.mainplotinfo;if(!t.mainplot||f)if(u)t.xlines=Mu(i,"path","xlines-above"),t.ylines=Mu(i,"path","ylines-above"),t.xaxislayer=Mu(i,"g","xaxislayer-above"),t.yaxislayer=Mu(i,"g","yaxislayer-above");else{if(!o){var h=Mu(i,"g","layer-subplot");t.shapelayer=Mu(h,"g","shapelayer"),t.imagelayer=Mu(h,"g","imagelayer"),c&&f?(t.minorGridlayer=c.minorGridlayer,t.gridlayer=c.gridlayer,t.zerolinelayer=c.zerolinelayer):(t.minorGridlayer=Mu(i,"g","minor-gridlayer"),t.gridlayer=Mu(i,"g","gridlayer"),t.zerolinelayer=Mu(i,"g","zerolinelayer"));var d=Mu(i,"g","layer-between");t.shapelayerBetween=Mu(d,"g","shapelayer"),t.imagelayerBetween=Mu(d,"g","imagelayer"),Mu(i,"path","xlines-below"),Mu(i,"path","ylines-below"),t.overlinesBelow=Mu(i,"g","overlines-below"),Mu(i,"g","xaxislayer-below"),Mu(i,"g","yaxislayer-below"),t.overaxesBelow=Mu(i,"g","overaxes-below")}t.overplot=Mu(i,"g","overplot"),t.plot=Mu(t.overplot,"g",n),c&&f?t.zerolinelayerAbove=c.zerolinelayerAbove:t.zerolinelayerAbove=Mu(i,"g","zerolinelayer-above"),o||(t.xlines=Mu(i,"path","xlines-above"),t.ylines=Mu(i,"path","ylines-above"),t.overlinesAbove=Mu(i,"g","overlines-above"),Mu(i,"g","xaxislayer-above"),Mu(i,"g","yaxislayer-above"),t.overaxesAbove=Mu(i,"g","overaxes-above"),t.xlines=i.select(".xlines-"+s),t.ylines=i.select(".ylines-"+l),t.xaxislayer=i.select(".xaxislayer-"+s),t.yaxislayer=i.select(".yaxislayer-"+l))}else{var p=c.plotgroup,v=n+"-x",y=n+"-y";t.minorGridlayer=c.minorGridlayer,t.gridlayer=c.gridlayer,t.zerolinelayer=c.zerolinelayer,t.zerolinelayerAbove=c.zerolinelayerAbove,Mu(c.overlinesBelow,"path",v),Mu(c.overlinesBelow,"path",y),Mu(c.overaxesBelow,"g",v),Mu(c.overaxesBelow,"g",y),t.plot=Mu(c.overplot,"g",n),Mu(c.overlinesAbove,"path",v),Mu(c.overlinesAbove,"path",y),Mu(c.overaxesAbove,"g",v),Mu(c.overaxesAbove,"g",y),t.xlines=p.select(".overlines-"+s).select("."+v),t.ylines=p.select(".overlines-"+l).select("."+y),t.xaxislayer=p.select(".overaxes-"+s).select("."+v),t.yaxislayer=p.select(".overaxes-"+l).select("."+y)}o||(u||(i8(t.minorGridlayer,"g",t.xaxis._id),i8(t.minorGridlayer,"g",t.yaxis._id),t.minorGridlayer.selectAll("g").map(function(m){return m[0]}).sort(e2.idSort),i8(t.gridlayer,"g",t.xaxis._id),i8(t.gridlayer,"g",t.yaxis._id),t.gridlayer.selectAll("g").map(function(m){return m[0]}).sort(e2.idSort)),t.xlines.style("fill","none").classed("crisp",!0),t.ylines.style("fill","none").classed("crisp",!0))}function W3e(e,t){if(e){var r={};e.each(function(l){var u=l[0],f=n8.select(this);f.remove(),$3e(u,t),r[u]=!0});for(var i in t._plots)for(var n=t._plots[i],a=n.overlays||[],o=0;o{"use strict";var a8=ff();Y3e.exports={hasLines:a8.hasLines,hasMarkers:a8.hasMarkers,hasText:a8.hasText,isBubble:a8.isBubble,attributes:Zf(),layoutAttributes:OF(),supplyDefaults:__e(),crossTraceDefaults:wW(),supplyLayoutDefaults:M_e(),calc:Zp().calc,crossTraceCalc:X_e(),arraysToCalcdata:om(),plot:nA(),colorbar:Qh(),formatLabels:WP(),style:fd().style,styleOnSelect:fd().styleOnSelect,hoverPoints:lA(),selectPoints:Rb(),animatable:!0,moduleType:"trace",name:"scatter",basePlotModule:vc(),categories:["cartesian","svg","symbols","errorBarsOK","showLegend","scatter-like","zoomScale"],meta:{}}});var J3e=K((rGr,K3e)=>{"use strict";var e9t=No(),t9t=ko(),Z3e=Xj(),$W=Mt(),r9t=$W.strScale,i9t=$W.strRotate,n9t=$W.strTranslate;K3e.exports=function(t,r,i){var n=t.node(),a=Z3e[i.arrowhead||0],o=Z3e[i.startarrowhead||0],s=(i.arrowwidth||1)*(i.arrowsize||1),l=(i.arrowwidth||1)*(i.startarrowsize||1),u=r.indexOf("start")>=0,f=r.indexOf("end")>=0,c=a.backoff*s+i.standoff,h=o.backoff*l+i.startstandoff,d,p,v,y;if(n.nodeName==="line"){d={x:+t.attr("x1"),y:+t.attr("y1")},p={x:+t.attr("x2"),y:+t.attr("y2")};var m=d.x-p.x,w=d.y-p.y;if(v=Math.atan2(w,m),y=v+Math.PI,c&&h&&c+h>Math.sqrt(m*m+w*w)){D();return}if(c){if(c*c>m*m+w*w){D();return}var _=c*Math.cos(v),b=c*Math.sin(v);p.x+=_,p.y+=b,t.attr({x2:p.x,y2:p.y})}if(h){if(h*h>m*m+w*w){D();return}var M=h*Math.cos(v),x=h*Math.sin(v);d.x-=M,d.y-=x,t.attr({x1:d.x,y1:d.y})}}else if(n.nodeName==="path"){var A=n.getTotalLength(),T="";if(A{"use strict";var Q3e=No(),YW=Ho(),a9t=yf(),r2=Mt(),XW=r2.strTranslate,zM=Cs(),Nb=ko(),py=Bs(),ewe=Uf(),ZW=zu(),KW=jv(),PM=N0(),o9t=fu().arrayEditor,s9t=J3e();iwe.exports={draw:l9t,drawOne:twe,drawRaw:rwe};function l9t(e){var t=e._fullLayout;t._infolayer.selectAll(".annotation").remove();for(var r=0;r2/3?De="right":De="center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[De]}for(var H=!1,$=["x","y"],te=0;te<$.length;te++){var ie=$[te],de=t[ie+"ref"]||ie,ge=t["a"+ie+"ref"],Ie={x:n,y:a}[ie],Ce=(m+(ie==="x"?0:-90))*Math.PI/180,le=N*Math.cos(Ce),re=V*Math.sin(Ce),Ee=Math.abs(le)+Math.abs(re),we=t[ie+"anchor"],oe=t[ie+"shift"]*(ie==="x"?1:-1),Y=y[ie],ne,ye,U,se,Ae,be=zM.getRefType(de);if(Ie&&be!=="domain"){var me=Ie.r2fraction(t[ie]);(me<0||me>1)&&(ge===de?(me=Ie.r2fraction(t["a"+ie]),(me<0||me>1)&&(H=!0)):H=!0),ne=Ie._offset+Ie.r2p(t[ie]),se=.5}else{var ue=be==="domain";ie==="x"?(U=t[ie],ne=ue?Ie._offset+Ie._length*U:ne=s.l+s.w*U):(U=1-t[ie],ne=ue?Ie._offset+Ie._length*U:ne=s.t+s.h*U),se=t.showarrow?.5:U}if(t.showarrow){Y.head=ne;var pe=t["a"+ie];if(Ae=le*J(.5,t.xanchor)-re*J(.5,t.yanchor),ge===de){var ce=zM.getRefType(ge);ce==="domain"?(ie==="y"&&(pe=1-pe),Y.tail=Ie._offset+Ie._length*pe):ce==="paper"?ie==="y"?(pe=1-pe,Y.tail=s.t+s.h*pe):Y.tail=s.l+s.w*pe:Y.tail=Ie._offset+Ie.r2p(pe),ye=Ae}else Y.tail=ne+pe,ye=Ae+pe;Y.text=Y.tail+Ae;var Be=o[ie==="x"?"width":"height"];if(de==="paper"&&(Y.head=r2.constrain(Y.head,1,Be-1)),ge==="pixel"){var $e=-Math.max(Y.tail-3,Y.text),Ze=Math.min(Y.tail+3,Y.text)-Be;$e>0?(Y.tail+=$e,Y.text+=$e):Ze>0&&(Y.tail-=Ze,Y.text-=Ze)}Y.tail+=oe,Y.head+=oe}else Ae=Ee*J(se,we),ye=Ae,Y.text=ne+Ae;Y.text+=oe,Ae+=oe,ye+=oe,t["_"+ie+"padplus"]=Ee/2+ye,t["_"+ie+"padminus"]=Ee/2-ye,t["_"+ie+"size"]=Ee,t["_"+ie+"shift"]=Ae}if(H){A.remove();return}var it=0,nt=0;if(t.align!=="left"&&(it=(q-Z)*(t.align==="center"?.5:1)),t.valign!=="top"&&(nt=(Q-j)*(t.valign==="middle"?.5:1)),W)O.select("svg").attr({x:E+it-1,y:E+nt}).call(py.setClipUrl,C?v:null,e);else{var Ue=E+nt-X.top,xe=E+it-X.left;P.call(ZW.positionText,xe,Ue).call(py.setClipUrl,C?v:null,e)}k.select("rect").call(py.setRect,E,E,q,Q),S.call(py.setRect,T/2,T/2,N-T,V-T),A.call(py.setTranslate,Math.round(y.x.text-N/2),Math.round(y.y.text-V/2)),_.attr({transform:"rotate("+m+","+y.x.text+","+y.y.text+")"});var Re=function(Pe,De){w.selectAll(".annotation-arrow-g").remove();var Ve=y.x.head,Le=y.y.head,Se=y.x.tail+Pe,ze=y.y.tail+De,st=y.x.text+Pe,ft=y.y.text+De,wt=r2.rotationXYMatrix(m,st,ft),At=r2.apply2DTransform(wt),Vt=r2.apply2DTransform2(wt),Dt=+S.attr("width"),yt=+S.attr("height"),St=st-.5*Dt,rr=St+Dt,Ke=ft-.5*yt,at=Ke+yt,lt=[[St,Ke,St,at],[St,at,rr,at],[rr,at,rr,Ke],[rr,Ke,St,Ke]].map(Vt);if(!lt.reduce(function(si,Tr){return si^!!r2.segmentsIntersect(Ve,Le,Ve+1e6,Le+1e6,Tr[0],Tr[1],Tr[2],Tr[3])},!1)){lt.forEach(function(si){var Tr=r2.segmentsIntersect(Se,ze,Ve,Le,si[0],si[1],si[2],si[3]);Tr&&(Se=Tr.x,ze=Tr.y)});var vt=t.arrowwidth,We=t.arrowcolor,ut=t.arrowside,kt=w.append("g").style({opacity:Nb.opacity(We)}).classed("annotation-arrow-g",!0),$t=kt.append("path").attr("d","M"+Se+","+ze+"L"+Ve+","+Le).style("stroke-width",vt+"px").call(Nb.stroke,Nb.rgb(We));if(s9t($t,ut,t),l.annotationPosition&&$t.node().parentNode&&!i){var or=Ve,Lr=Le;if(t.standoff){var Er=Math.sqrt(Math.pow(Ve-Se,2)+Math.pow(Le-ze,2));or+=t.standoff*(Se-Ve)/Er,Lr+=t.standoff*(ze-Le)/Er}var hr=kt.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(Se-or)+","+(ze-Lr),transform:XW(or,Lr)}).style("stroke-width",vt+6+"px").call(Nb.stroke,"rgba(0,0,0,0)").call(Nb.fill,"rgba(0,0,0,0)"),ni,Kr;PM.init({element:hr.node(),gd:e,prepFn:function(){var si=py.getTranslate(A);ni=si.x,Kr=si.y,n&&n.autorange&&h(n._name+".autorange",!0),a&&a.autorange&&h(a._name+".autorange",!0)},moveFn:function(si,Tr){var vr=At(ni,Kr),Hr=vr[0]+si,Di=vr[1]+Tr;A.call(py.setTranslate,Hr,Di),d("x",t2(n,si,"x",s,t)),d("y",t2(a,Tr,"y",s,t)),t.axref===t.xref&&d("ax",t2(n,si,"ax",s,t)),t.ayref===t.yref&&d("ay",t2(a,Tr,"ay",s,t)),kt.attr("transform",XW(si,Tr)),_.attr({transform:"rotate("+m+","+Hr+","+Di+")"})},doneFn:function(){YW.call("_guiRelayout",e,p());var si=document.querySelector(".js-notes-box-panel");si&&si.redraw(si.selectedObj)}})}}};if(t.showarrow&&Re(0,0),b){var Qe;PM.init({element:A.node(),gd:e,prepFn:function(){Qe=_.attr("transform")},moveFn:function(Pe,De){var Ve="pointer";if(t.showarrow)t.axref===t.xref?d("ax",t2(n,Pe,"ax",s,t)):d("ax",t.ax+Pe),t.ayref===t.yref?d("ay",t2(a,De,"ay",s.w,t)):d("ay",t.ay+De),Re(Pe,De);else{if(i)return;var Le,Se;if(n)Le=t2(n,Pe,"x",s,t);else{var ze=t._xsize/s.w,st=t.x+(t._xshift-t.xshift)/s.w-ze/2;Le=PM.align(st+Pe/s.w,ze,0,1,t.xanchor)}if(a)Se=t2(a,De,"y",s,t);else{var ft=t._ysize/s.h,wt=t.y-(t._yshift+t.yshift)/s.h-ft/2;Se=PM.align(wt-De/s.h,ft,0,1,t.yanchor)}d("x",Le),d("y",Se),(!n||!a)&&(Ve=PM.getCursor(n?.5:Le,a?.5:Se,t.xanchor,t.yanchor))}_.attr({transform:XW(Pe,De)+Qe}),KW(A,Ve)},clickFn:function(Pe,De){t.captureevents&&e.emit("plotly_clickannotation",x(De))},doneFn:function(){KW(A),YW.call("_guiRelayout",e,p());var Pe=document.querySelector(".js-notes-box-panel");Pe&&Pe.redraw(Pe.selectedObj)}})}}l.annotationText?P.call(ZW.makeEditable,{delegate:A,gd:e}).call(I).on("edit",function(z){t.text=z,this.call(I),d("text",z),n&&n.autorange&&h(n._name+".autorange",!0),a&&a.autorange&&h(a._name+".autorange",!0),YW.call("_guiRelayout",e,p())}):P.call(I)}});var uwe=K((nGr,lwe)=>{"use strict";var nwe=Mt(),u9t=Ho(),awe=fu().arrayEditor;lwe.exports={hasClickToShow:f9t,onClick:c9t};function f9t(e,t){var r=swe(e,t);return r.on.length>0||r.explicitOff.length>0}function c9t(e,t){var r=swe(e,t),i=r.on,n=r.off.concat(r.explicitOff),a={},o=e._fullLayout.annotations,s,l;if(i.length||n.length){for(s=0;s{"use strict";var JW=Mt(),uA=ko();fwe.exports=function(t,r,i,n){n("opacity");var a=n("bgcolor"),o=n("bordercolor"),s=uA.opacity(o);n("borderpad");var l=n("borderwidth"),u=n("showarrow");n("text",u?" ":i._dfltTitle.annotation),n("textangle"),JW.coerceFont(n,"font",i.font),n("width"),n("align");var f=n("height");if(f&&n("valign"),u){var c=n("arrowside"),h,d;c.indexOf("end")!==-1&&(h=n("arrowhead"),d=n("arrowsize")),c.indexOf("start")!==-1&&(n("startarrowhead",h),n("startarrowsize",d)),n("arrowcolor",s?r.bordercolor:uA.defaultLine),n("arrowwidth",(s&&l||1)*2),n("standoff"),n("startstandoff")}var p=n("hovertext"),v=i.hoverlabel||{};if(p){var y=n("hoverlabel.bgcolor",v.bgcolor||(uA.opacity(a)?uA.rgb(a):uA.defaultLine)),m=n("hoverlabel.bordercolor",v.bordercolor||uA.contrast(y)),w=JW.extendFlat({},v.font);w.color||(w.color=m),JW.coerceFont(n,"hoverlabel.font",w)}n("captureevents",!!p)}});var hwe=K((oGr,cwe)=>{"use strict";var e$=Mt(),Vb=Cs(),h9t=w0(),d9t=QW(),p9t=Xg();cwe.exports=function(t,r){h9t(t,r,{name:"annotations",handleItemDefaults:v9t})};function v9t(e,t,r){function i(_,b){return e$.coerce(e,t,p9t,_,b)}var n=i("visible"),a=i("clicktoshow");if(n||a){d9t(e,t,r,i);for(var o=t.showarrow,s=["x","y"],l=[-10,-30],u={_fullLayout:r},f=0;f<2;f++){var c=s[f],h=Vb.coerceRef(e,t,u,c,"","paper");if(h!=="paper"){var d=Vb.getFromId(u,h);d._annIndices.push(t._index)}if(Vb.coercePosition(t,u,i,h,c,.5),o){var p="a"+c,v=Vb.coerceRef(e,t,u,p,"pixel",["pixel","paper"]);v!=="pixel"&&v!==h&&(v=t[p]="pixel");var y=v==="pixel"?l[f]:.4;Vb.coercePosition(t,u,i,v,p,y)}i(c+"anchor"),i(c+"shift")}if(e$.noneOrAll(e,t,["x","y"]),o&&e$.noneOrAll(e,t,["ax","ay"]),a){var m=i("xclick"),w=i("yclick");t._xclick=m===void 0?t.x:Vb.cleanPosition(m,u,t.xref),t._yclick=w===void 0?t.y:Vb.cleanPosition(w,u,t.yref)}}}});var vwe=K((sGr,pwe)=>{"use strict";var t$=Mt(),Ub=Cs(),m9t=o8().draw;pwe.exports=function(t){var r=t._fullLayout,i=t$.filterVisible(r.annotations);if(i.length&&t._fullData.length)return t$.syncOrAsync([m9t,y9t],t)};function y9t(e){var t=e._fullLayout;t$.filterVisible(t.annotations).forEach(function(r){var i=Ub.getFromId(e,r.xref),n=Ub.getFromId(e,r.yref),a=Ub.getRefType(r.xref),o=Ub.getRefType(r.yref);r._extremes={},a==="range"&&dwe(r,i),o==="range"&&dwe(r,n)})}function dwe(e,t){var r=t._id,i=r.charAt(0),n=e[i],a=e["a"+i],o=e[i+"ref"],s=e["a"+i+"ref"],l=e["_"+i+"padplus"],u=e["_"+i+"padminus"],f={x:1,y:-1}[i]*e[i+"shift"],c=3*e.arrowsize*e.arrowwidth||0,h=c+f,d=c-f,p=3*e.startarrowsize*e.arrowwidth||0,v=p+f,y=p-f,m;if(s===o){var w=Ub.findExtremes(t,[t.r2c(n)],{ppadplus:h,ppadminus:d}),_=Ub.findExtremes(t,[t.r2c(a)],{ppadplus:Math.max(l,v),ppadminus:Math.max(u,y)});m={min:[w.min[0],_.min[0]],max:[w.max[0],_.max[0]]}}else v=a?v+a:v,y=a?y-a:y,m=Ub.findExtremes(t,[t.r2c(n)],{ppadplus:Math.max(l,h,v),ppadminus:Math.max(u,d,y)});e._extremes[r]=m}});var ywe=K((lGr,mwe)=>{"use strict";var g9t=Gs(),x9t=qD();mwe.exports=function(t,r,i,n){r=r||{};var a=i==="log"&&r.type==="linear",o=i==="linear"&&r.type==="log";if(!(a||o))return;var s=t._fullLayout.annotations,l=r._id.charAt(0),u,f;function c(d){var p=u[d],v=null;a?v=x9t(p,r.range):v=Math.pow(10,p),g9t(v)||(v=null),n(f+d,v)}for(var h=0;h{"use strict";var r$=o8(),gwe=uwe();xwe.exports={moduleType:"component",name:"annotations",layoutAttributes:Xg(),supplyLayoutDefaults:hwe(),includeBasePlot:vM()("annotations"),calcAutorange:vwe(),draw:r$.draw,drawOne:r$.drawOne,drawRaw:r$.drawRaw,hasClickToShow:gwe.hasClickToShow,onClick:gwe.onClick,convertCoords:ywe()}});var s8=K((fGr,_we)=>{"use strict";var bf=Xg(),b9t=Ef().overrideAll,_9t=fu().templatedArray;_we.exports=b9t(_9t("annotation",{visible:bf.visible,x:{valType:"any"},y:{valType:"any"},z:{valType:"any"},ax:{valType:"number"},ay:{valType:"number"},xanchor:bf.xanchor,xshift:bf.xshift,yanchor:bf.yanchor,yshift:bf.yshift,text:bf.text,textangle:bf.textangle,font:bf.font,width:bf.width,height:bf.height,opacity:bf.opacity,align:bf.align,valign:bf.valign,bgcolor:bf.bgcolor,bordercolor:bf.bordercolor,borderpad:bf.borderpad,borderwidth:bf.borderwidth,showarrow:bf.showarrow,arrowcolor:bf.arrowcolor,arrowhead:bf.arrowhead,startarrowhead:bf.startarrowhead,arrowside:bf.arrowside,arrowsize:bf.arrowsize,startarrowsize:bf.startarrowsize,arrowwidth:bf.arrowwidth,standoff:bf.standoff,startstandoff:bf.startstandoff,hovertext:bf.hovertext,hoverlabel:bf.hoverlabel,captureevents:bf.captureevents}),"calc","from-root")});var Awe=K((cGr,wwe)=>{"use strict";var i$=Mt(),w9t=Cs(),A9t=w0(),T9t=QW(),M9t=s8();wwe.exports=function(t,r,i){A9t(t,r,{name:"annotations",handleItemDefaults:S9t,fullLayout:i.fullLayout})};function S9t(e,t,r,i){function n(s,l){return i$.coerce(e,t,M9t,s,l)}function a(s){var l=s+"axis",u={_fullLayout:{}};return u._fullLayout[l]=r[l],w9t.coercePosition(t,u,n,s,s,.5)}var o=n("visible");o&&(T9t(e,t,i.fullLayout,n),a("x"),a("y"),a("z"),i$.noneOrAll(e,t,["x","y","z"]),t.xref="x",t.yref="y",t.zref="z",n("xanchor"),n("yanchor"),n("xshift"),n("yshift"),t.showarrow&&(t.axref="pixel",t.ayref="pixel",n("ax",-10),n("ay",-30),i$.noneOrAll(e,t,["ax","ay"])))}});var Ewe=K((hGr,Swe)=>{"use strict";var Twe=Mt(),Mwe=Cs();Swe.exports=function(t){for(var r=t.fullSceneLayout,i=r.annotations,n=0;n{"use strict";function n$(e,t){var r=[0,0,0,0],i,n;for(i=0;i<4;++i)for(n=0;n<4;++n)r[n]+=e[4*i+n]*t[i];return r}function k9t(e,t){var r=n$(e.projection,n$(e.view,n$(e.model,[t[0],t[1],t[2],1])));return r}kwe.exports=k9t});var Dwe=K((pGr,Cwe)=>{"use strict";var C9t=o8().drawRaw,D9t=a$(),F9t=["x","y","z"];Cwe.exports=function(t){for(var r=t.fullSceneLayout,i=t.dataScale,n=r.annotations,a=0;a1){s=!0;break}}s?t.fullLayout._infolayer.select(".annotation-"+t.id+'[data-index="'+a+'"]').remove():(o._pdata=D9t(t.glplot.cameraParams,[r.xaxis.r2l(o.x)*i[0],r.yaxis.r2l(o.y)*i[1],r.zaxis.r2l(o.z)*i[2]]),C9t(t.graphDiv,o,a,t.id,o._xa,o._ya))}}});var Pwe=K((vGr,Lwe)=>{"use strict";var L9t=Ho(),Fwe=Mt();Lwe.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:s8()}}},layoutAttributes:s8(),handleDefaults:Awe(),includeBasePlot:P9t,convert:Ewe(),draw:Dwe()};function P9t(e,t){var r=L9t.subplotsRegistry.gl3d;if(r)for(var i=r.attrRegex,n=Object.keys(e),a=0;a{"use strict";var mGr=(Uc(),ar(Vc)),zwe=lf(),Iwe=Zf().line,z9t=yh().dash,t1=Os().extendFlat,I9t=fu().templatedArray,yGr=(dM(),ar(hM)),fA=Au(),Rwe=Xg(),{shapeTexttemplateAttrs:R9t,templatefallbackAttrs:B9t}=yu(),q9t=yF();Bwe.exports=I9t("shape",{visible:t1({},fA.visible,{editType:"calc+arraydraw"}),showlegend:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},legend:t1({},fA.legend,{editType:"calc+arraydraw"}),legendgroup:t1({},fA.legendgroup,{editType:"calc+arraydraw"}),legendgrouptitle:{text:t1({},fA.legendgrouptitle.text,{editType:"calc+arraydraw"}),font:zwe({editType:"calc+arraydraw"}),editType:"calc+arraydraw"},legendrank:t1({},fA.legendrank,{editType:"calc+arraydraw"}),legendwidth:t1({},fA.legendwidth,{editType:"calc+arraydraw"}),type:{valType:"enumerated",values:["circle","rect","path","line"],editType:"calc+arraydraw"},layer:{valType:"enumerated",values:["below","above","between"],dflt:"above",editType:"arraydraw"},xref:t1({},Rwe.xref,{arrayOk:!0}),xsizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},xanchor:{valType:"any",editType:"calc+arraydraw"},x0:{valType:"any",editType:"calc+arraydraw"},x1:{valType:"any",editType:"calc+arraydraw"},x0shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},x1shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},yref:t1({},Rwe.yref,{arrayOk:!0}),ysizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},yanchor:{valType:"any",editType:"calc+arraydraw"},y0:{valType:"any",editType:"calc+arraydraw"},y1:{valType:"any",editType:"calc+arraydraw"},y0shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},y1shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},path:{valType:"string",editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},line:{color:t1({},Iwe.color,{editType:"arraydraw"}),width:t1({},Iwe.width,{editType:"calc+arraydraw"}),dash:t1({},z9t,{editType:"arraydraw"}),editType:"calc+arraydraw"},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd",editType:"arraydraw"},editable:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},label:{text:{valType:"string",dflt:"",editType:"arraydraw"},texttemplate:R9t({},{keys:Object.keys(q9t)}),texttemplatefallback:B9t({editType:"arraydraw"}),font:zwe({editType:"calc+arraydraw",colorEditType:"arraydraw"}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"],editType:"arraydraw"},textangle:{valType:"angle",dflt:"auto",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],editType:"calc+arraydraw"},padding:{valType:"number",dflt:3,min:0,editType:"arraydraw"},editType:"arraydraw"},editType:"arraydraw"})});var Owe=K((xGr,qwe)=>{"use strict";var cA=Mt(),op=Cs(),O9t=w0(),N9t=o$(),IM=$g();qwe.exports=function(t,r){O9t(t,r,{name:"shapes",handleItemDefaults:U9t})};function V9t(e,t){return e?"bottom":t.indexOf("top")!==-1?"top":t.indexOf("bottom")!==-1?"bottom":"middle"}function U9t(e,t,r){function i(_,b){return cA.coerce(e,t,N9t,_,b)}t._isShape=!0;var n=i("visible");if(!n)return;var a=i("showlegend");i("legend"),i("legendgroup"),a&&(i("legendwidth"),i("legendgrouptitle.text"),cA.coerceFont(i,"legendgrouptitle.font"),i("legendrank"));var o=i("path"),s=o?"path":"rect",l=i("type",s),u=l!=="path";u&&delete t.path,i("editable"),i("layer"),i("opacity"),i("fillcolor"),i("fillrule");var f=i("line.width");f&&(i("line.color"),i("line.dash"));var c=i("xsizemode"),h=i("ysizemode");let d=[.25,.75],p=[0,10];["x","y"].forEach(_=>{var b=_+"anchor",M=_==="x"?c:h,x={_fullLayout:r},A,T,g,E;let S=_+"ref",C=e[S];if(Array.isArray(C)&&C.length>0){let k=IM.countDefiningCoords(l,o,_);E=op.coerceRefArray(e,t,x,_,void 0,"paper",k),t["_"+_+"refArray"]=!0}else E=op.coerceRef(e,t,x,_,void 0,"paper");if(Array.isArray(E))E.forEach(function(k){op.getRefType(k)==="range"&&(A=op.getFromId(x,k),A&&A._shapeIndices.indexOf(t._index)===-1&&A._shapeIndices.push(t._index))}),u&&[0,1].forEach(function(k){let D=E[k];op.getRefType(D)==="range"?(A=op.getFromId(x,D),T=IM.shapePositionToRange(A),g=IM.rangeToShapePosition(A),(A.type==="category"||A.type==="multicategory")&&i(_+k+"shift")):T=g=cA.identity;let P=_+k,I=e[P];if(e[P]=T(e[P],!0),M==="pixel"?i(P,p[k]):op.coercePosition(t,x,i,D,P,d[k]),t[P]=g(t[P]),e[P]=I,k===0&&M==="pixel"){let F=e[b];e[b]=T(e[b],!0),op.coercePosition(t,x,i,D,b,.25),t[b]=g(t[b]),e[b]=F}});else{if(op.getRefType(E)==="range"?(A=op.getFromId(x,E),A._shapeIndices.push(t._index),g=IM.rangeToShapePosition(A),T=IM.shapePositionToRange(A),u&&(A.type==="category"||A.type==="multicategory")&&(i(_+"0shift"),i(_+"1shift"))):T=g=cA.identity,u){let D=_+"0",L=_+"1",P=e[D],I=e[L];e[D]=T(e[D],!0),e[L]=T(e[L],!0),M==="pixel"?(i(D,p[0]),i(L,p[1])):(op.coercePosition(t,x,i,E,D,d[0]),op.coercePosition(t,x,i,E,L,d[1])),t[D]=g(t[D]),t[L]=g(t[L]),e[D]=P,e[L]=I}if(M==="pixel"){let D=e[b];e[b]=T(e[b],!0),op.coercePosition(t,x,i,E,b,.25),t[b]=g(t[b]),e[b]=D}}}),u&&cA.noneOrAll(e,t,["x0","x1","y0","y1"]);var v=l==="line",y,m;if(u&&(y=i("label.texttemplate"),i("label.texttemplatefallback")),y||(m=i("label.text")),m||y){i("label.textangle");var w=i("label.textposition",v?"middle":"middle center");i("label.xanchor"),i("label.yanchor",V9t(v,w)),i("label.padding"),cA.coerceFont(i,"label.font",r.font)}}});var Uwe=K((bGr,Vwe)=>{"use strict";var G9t=ko(),Nwe=Mt();function H9t(e,t){return e?"bottom":t.indexOf("top")!==-1?"top":t.indexOf("bottom")!==-1?"bottom":"middle"}Vwe.exports=function(t,r,i){i("newshape.visible"),i("newshape.name"),i("newshape.showlegend"),i("newshape.legend"),i("newshape.legendwidth"),i("newshape.legendgroup"),i("newshape.legendgrouptitle.text"),Nwe.coerceFont(i,"newshape.legendgrouptitle.font"),i("newshape.legendrank"),i("newshape.drawdirection"),i("newshape.layer"),i("newshape.fillcolor"),i("newshape.fillrule"),i("newshape.opacity");var n=i("newshape.line.width");if(n){var a=(t||{}).plot_bgcolor||"#FFF";i("newshape.line.color",G9t.contrast(a)),i("newshape.line.dash")}var o=t.dragmode==="drawline",s=i("newshape.label.text"),l=i("newshape.label.texttemplate");if(i("newshape.label.texttemplatefallback"),s||l){i("newshape.label.textangle");var u=i("newshape.label.textposition",o?"middle":"middle center");i("newshape.label.xanchor"),i("newshape.label.yanchor",H9t(o,u)),i("newshape.label.padding"),Nwe.coerceFont(i,"newshape.label.font",r.font)}i("activeshape.fillcolor"),i("activeshape.opacity")}});var Xwe=K((_Gr,Ywe)=>{"use strict";var s$=Mt(),Jp=Cs(),lm=(j6(),ar(H6)),l$=$g();Ywe.exports=function(t){var r=t._fullLayout,i=s$.filterVisible(r.shapes);if(!(!i.length||!t._fullData.length))for(var n=0;n{o=Jp.getFromId(t,c),a._extremes[o._id]=Jp.findExtremes(o,h,Hwe(a))})}else a.xref!=="paper"&&l!=="domain"&&(o=Jp.getFromId(t,a.xref),s=Wwe(o,a,lm.paramIsX),s&&(a._extremes[o._id]=Jp.findExtremes(o,s,Hwe(a))));if(u==="array"){let f=Gwe(t,a,"y");Object.entries(f).forEach(([c,h])=>{o=Jp.getFromId(t,c),a._extremes[o._id]=Jp.findExtremes(o,h,jwe(a))})}else a.yref!=="paper"&&u!=="domain"&&(o=Jp.getFromId(t,a.yref),s=Wwe(o,a,lm.paramIsY),s&&(a._extremes[o._id]=Jp.findExtremes(o,s,jwe(a))))}};function Gwe(e,t,r){let i=t[r+"ref"],n=r==="x"?lm.paramIsX:lm.paramIsY;function a(c,h){c==="paper"||Jp.getRefType(c)==="domain"||(o[c]||(o[c]=[]),o[c].push(h))}let o={};if(t.type==="path"&&t.path){let c=t.path.match(lm.segmentRE)||[];for(var s=0,l=0;lp&&(a(i[s],v[p]),s++)}}else a(i[0],t[r+"0"]),a(i[1],t[r+"1"]);let u={};for(let c in o){let h=Jp.getFromId(e,c);if(h){var f=h.type==="category"||h.type==="multicategory"?h.r2c:h.d2c;h.type==="date"&&(f=l$.decodeDate(f)),u[h._id]=o[c].map(f)}}return u}function Hwe(e){return $we(e.line.width,e.xsizemode,e.x0,e.x1,e.path,!1)}function jwe(e){return $we(e.line.width,e.ysizemode,e.y0,e.y1,e.path,!0)}function $we(e,t,r,i,n,a){var o=e/2,s=a;if(t==="pixel"){var l=n?l$.extractPathCoords(n,a?lm.paramIsY:lm.paramIsX):[r,i],u=s$.aggNums(Math.max,null,l),f=s$.aggNums(Math.min,null,l),c=f<0?Math.abs(f)+o:o,h=u>0?u+o:o;return{ppad:o,ppadplus:s?c:h,ppadminus:s?h:c}}else return{ppad:o}}function Wwe(e,t,r){var i=e._id.charAt(0)==="x"?"x":"y",n=e.type==="category"||e.type==="multicategory",a,o,s=0,l=0,u=n?e.r2c:e.d2c,f=t[i+"sizemode"]==="scaled";if(f?(a=t[i+"0"],o=t[i+"1"],n&&(s=t[i+"0shift"],l=t[i+"1shift"])):(a=t[i+"anchor"],o=t[i+"anchor"]),a!==void 0)return[u(a)+s,u(o)+l];if(t.path){var c=1/0,h=-1/0,d=t.path.match(lm.segmentRE),p,v,y,m,w;for(e.type==="date"&&(u=l$.decodeDate(u)),p=0;ph&&(h=w)));if(h>=c)return[c,h]}}});var Jwe=K((wGr,Kwe)=>{"use strict";var Zwe=XL();Kwe.exports={moduleType:"component",name:"shapes",layoutAttributes:o$(),supplyLayoutDefaults:Owe(),supplyDrawNewShapeDefaults:Uwe(),includeBasePlot:vM()("shapes"),calcAutorange:Xwe(),draw:Zwe.draw,drawOne:Zwe.drawOne}});var u$=K((TGr,eAe)=>{"use strict";var Qwe=(Uc(),ar(Vc)),j9t=fu().templatedArray,AGr=(dM(),ar(hM));eAe.exports=j9t("image",{visible:{valType:"boolean",dflt:!0,editType:"arraydraw"},source:{valType:"string",editType:"arraydraw"},layer:{valType:"enumerated",values:["below","above"],dflt:"above",editType:"arraydraw"},sizex:{valType:"number",dflt:0,editType:"arraydraw"},sizey:{valType:"number",dflt:0,editType:"arraydraw"},sizing:{valType:"enumerated",values:["fill","contain","stretch"],dflt:"contain",editType:"arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},x:{valType:"any",dflt:0,editType:"arraydraw"},y:{valType:"any",dflt:0,editType:"arraydraw"},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left",editType:"arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],dflt:"top",editType:"arraydraw"},xref:{valType:"enumerated",values:["paper",Qwe.idRegex.x.toString()],dflt:"paper",editType:"arraydraw"},yref:{valType:"enumerated",values:["paper",Qwe.idRegex.y.toString()],dflt:"paper",editType:"arraydraw"},editType:"arraydraw"})});var rAe=K((MGr,tAe)=>{"use strict";var W9t=Mt(),f$=Cs(),$9t=w0(),Y9t=u$(),X9t="images";tAe.exports=function(t,r){var i={name:X9t,handleItemDefaults:Z9t};$9t(t,r,i)};function Z9t(e,t,r){function i(h,d){return W9t.coerce(e,t,Y9t,h,d)}var n=i("source"),a=i("visible",!!n);if(!a)return t;i("layer"),i("xanchor"),i("yanchor"),i("sizex"),i("sizey"),i("sizing"),i("opacity");for(var o={_fullLayout:r},s=["x","y"],l=0;l<2;l++){var u=s[l],f=f$.coerceRef(e,t,o,u,"paper",void 0);if(f!=="paper"){var c=f$.getFromId(o,f);c._imgIndices.push(t._index)}f$.coercePosition(t,o,i,f,u,0)}return t}});var oAe=K((SGr,aAe)=>{"use strict";var iAe=No(),K9t=Bs(),hA=Cs(),nAe=Vf(),J9t=(zp(),ar(Pp));aAe.exports=function(t){var r=t._fullLayout,i=[],n={},a=[],o,s;for(s=0;s{"use strict";var sAe=Gs(),Q9t=qD();lAe.exports=function(t,r,i,n){r=r||{};var a=i==="log"&&r.type==="linear",o=i==="linear"&&r.type==="log";if(a||o){for(var s=t._fullLayout.images,l=r._id.charAt(0),u,f,c=0;c{"use strict";fAe.exports={moduleType:"component",name:"images",layoutAttributes:u$(),supplyLayoutDefaults:rAe(),includeBasePlot:vM()("images"),draw:oAe(),convertCoords:uAe()}});var l8={};Fl(l8,{activeColor:()=>Tzt,arrowOffsetX:()=>_zt,arrowPadX:()=>mzt,arrowSymbol:()=>Szt,autoMarginIdRoot:()=>czt,blankHeaderOpts:()=>hzt,buttonClassName:()=>szt,containerClassName:()=>tzt,dropdownButtonClassName:()=>ozt,dropdownButtonGroupClassName:()=>azt,gapButton:()=>Azt,gapButtonHeader:()=>wzt,headerArrowClassName:()=>nzt,headerClassName:()=>izt,headerGroupClassName:()=>rzt,hoverColor:()=>Mzt,itemRectClassName:()=>lzt,itemTextClassName:()=>uzt,menuIndexAttrName:()=>fzt,minHeight:()=>pzt,minWidth:()=>dzt,name:()=>ezt,rx:()=>yzt,ry:()=>gzt,textOffsetX:()=>xzt,textOffsetY:()=>bzt,textPadX:()=>vzt});var ezt,tzt,rzt,izt,nzt,azt,ozt,szt,lzt,uzt,fzt,czt,hzt,dzt,pzt,vzt,mzt,yzt,gzt,xzt,bzt,_zt,wzt,Azt,Tzt,Mzt,Szt,u8=ps(()=>{"use strict";ezt="updatemenus",tzt="updatemenu-container",rzt="updatemenu-header-group",izt="updatemenu-header",nzt="updatemenu-header-arrow",azt="updatemenu-dropdown-button-group",ozt="updatemenu-dropdown-button",szt="updatemenu-button",lzt="updatemenu-item-rect",uzt="updatemenu-item-text",fzt="updatemenu-active-index",czt="updatemenu-",hzt={label:" "},dzt=30,pzt=30,vzt=24,mzt=16,yzt=2,gzt=2,xzt=12,bzt=3,_zt=4,wzt=5,Azt=2,Tzt="#F4FAFF",Mzt="#F4FAFF",Szt={left:"\u25C4",right:"\u25BA",up:"\u25B2",down:"\u25BC"}});var c$=K((CGr,dAe)=>{"use strict";var Ezt=lf(),kzt=Nc(),Czt=Os().extendFlat,Dzt=Ef().overrideAll,Fzt=gF(),hAe=fu().templatedArray,Lzt=hAe("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}});dAe.exports=Dzt(hAe("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:Lzt,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:Czt(Fzt({editType:"arraydraw"}),{}),font:Ezt({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:kzt.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")});var yAe=K((DGr,mAe)=>{"use strict";var f8=Mt(),pAe=w0(),vAe=c$(),Pzt=(u8(),ar(l8)),zzt=Pzt.name,Izt=vAe.buttons;mAe.exports=function(t,r){var i={name:zzt,handleItemDefaults:Rzt};pAe(t,r,i)};function Rzt(e,t,r){function i(o,s){return f8.coerce(e,t,vAe,o,s)}var n=pAe(e,t,{name:"buttons",handleItemDefaults:Bzt}),a=i("visible",n.length>0);a&&(i("active"),i("direction"),i("type"),i("showactive"),i("x"),i("y"),f8.noneOrAll(e,t,["x","y"]),i("xanchor"),i("yanchor"),i("pad.t"),i("pad.r"),i("pad.b"),i("pad.l"),f8.coerceFont(i,"font",r.font),i("bgcolor",r.paper_bgcolor),i("bordercolor"),i("borderwidth"))}function Bzt(e,t){function r(n,a){return f8.coerce(e,t,Izt,n,a)}var i=r("visible",e.method==="skip"||Array.isArray(e.args));i&&(r("method"),r("args"),r("args2"),r("label"),r("execute"))}});var bAe=K((FGr,xAe)=>{"use strict";xAe.exports=Kf;var r1=No(),gAe=ko(),dA=Bs(),c8=Mt();function Kf(e,t,r){this.gd=e,this.container=t,this.id=r,this.position=null,this.translateX=null,this.translateY=null,this.hbar=null,this.vbar=null,this.bg=this.container.selectAll("rect.scrollbox-bg").data([0]),this.bg.exit().on(".drag",null).on("wheel",null).remove(),this.bg.enter().append("rect").classed("scrollbox-bg",!0).style("pointer-events","all").attr({opacity:0,x:0,y:0,width:0,height:0})}Kf.barWidth=2;Kf.barLength=20;Kf.barRadius=2;Kf.barPad=1;Kf.barColor="#808BA4";Kf.prototype.enable=function(t,r,i){var n=this.gd._fullLayout,a=n.width,o=n.height;this.position=t;var s=this.position.l,l=this.position.w,u=this.position.t,f=this.position.h,c=this.position.direction,h=c==="down",d=c==="left",p=c==="right",v=c==="up",y=l,m=f,w,_,b,M;!h&&!d&&!p&&!v&&(this.position.direction="down",h=!0);var x=h||v;x?(w=s,_=w+y,h?(b=u,M=Math.min(b+m,o),m=M-b):(M=u+m,b=Math.max(M-m,0),m=M-b)):(b=u,M=b+m,d?(_=s+y,w=Math.max(_-y,0),y=_-w):(w=s,_=Math.min(w+y,a),y=_-w)),this._box={l:w,t:b,w:y,h:m};var A=l>y,T=Kf.barLength+2*Kf.barPad,g=Kf.barWidth+2*Kf.barPad,E=s,S=u+f;S+g>o&&(S=o-g);var C=this.container.selectAll("rect.scrollbar-horizontal").data(A?[0]:[]);C.exit().on(".drag",null).remove(),C.enter().append("rect").classed("scrollbar-horizontal",!0).call(gAe.fill,Kf.barColor),A?(this.hbar=C.attr({rx:Kf.barRadius,ry:Kf.barRadius,x:E,y:S,width:T,height:g}),this._hbarXMin=E+T/2,this._hbarTranslateMax=y-T):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var k=f>m,D=Kf.barWidth+2*Kf.barPad,L=Kf.barLength+2*Kf.barPad,P=s+l,I=u;P+D>a&&(P=a-D);var F=this.container.selectAll("rect.scrollbar-vertical").data(k?[0]:[]);F.exit().on(".drag",null).remove(),F.enter().append("rect").classed("scrollbar-vertical",!0).call(gAe.fill,Kf.barColor),k?(this.vbar=F.attr({rx:Kf.barRadius,ry:Kf.barRadius,x:P,y:I,width:D,height:L}),this._vbarYMin=I+L/2,this._vbarTranslateMax=m-L):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var z=this.id,B=w-.5,O=k?_+D+.5:_+.5,W=b-.5,X=A?M+g+.5:M+.5,Z=n._topdefs.selectAll("#"+z).data(A||k?[0]:[]);if(Z.exit().remove(),Z.enter().append("clipPath").attr("id",z).append("rect"),A||k?(this._clipRect=Z.select("rect").attr({x:Math.floor(B),y:Math.floor(W),width:Math.ceil(O)-Math.floor(B),height:Math.ceil(X)-Math.floor(W)}),this.container.call(dA.setClipUrl,z,this.gd),this.bg.attr({x:s,y:u,width:l,height:f})):(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(dA.setClipUrl,null),delete this._clipRect),A||k){var j=r1.behavior.drag().on("dragstart",function(){r1.event.sourceEvent.preventDefault()}).on("drag",this._onBoxDrag.bind(this));this.container.on("wheel",null).on("wheel",this._onBoxWheel.bind(this)).on(".drag",null).call(j);var q=r1.behavior.drag().on("dragstart",function(){r1.event.sourceEvent.preventDefault(),r1.event.sourceEvent.stopPropagation()}).on("drag",this._onBarDrag.bind(this));A&&this.hbar.on(".drag",null).call(q),k&&this.vbar.on(".drag",null).call(q)}this.setTranslate(r,i)};Kf.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(dA.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)};Kf.prototype._onBoxDrag=function(){var t=this.translateX,r=this.translateY;this.hbar&&(t-=r1.event.dx),this.vbar&&(r-=r1.event.dy),this.setTranslate(t,r)};Kf.prototype._onBoxWheel=function(){var t=this.translateX,r=this.translateY;this.hbar&&(t+=r1.event.deltaY),this.vbar&&(r+=r1.event.deltaY),this.setTranslate(t,r)};Kf.prototype._onBarDrag=function(){var t=this.translateX,r=this.translateY;if(this.hbar){var i=t+this._hbarXMin,n=i+this._hbarTranslateMax,a=c8.constrain(r1.event.x,i,n),o=(a-i)/(n-i),s=this.position.w-this._box.w;t=o*s}if(this.vbar){var l=r+this._vbarYMin,u=l+this._vbarTranslateMax,f=c8.constrain(r1.event.y,l,u),c=(f-l)/(u-l),h=this.position.h-this._box.h;r=c*h}this.setTranslate(t,r)};Kf.prototype.setTranslate=function(t,r){var i=this.position.w-this._box.w,n=this.position.h-this._box.h;if(t=c8.constrain(t||0,0,i),r=c8.constrain(r||0,0,n),this.translateX=t,this.translateY=r,this.container.call(dA.setTranslate,this._box.l-this.position.l-t,this._box.t-this.position.t-r),this._clipRect&&this._clipRect.attr({x:Math.floor(this.position.l+t-.5),y:Math.floor(this.position.t+r-.5)}),this.hbar){var a=t/i;this.hbar.call(dA.setTranslate,t+a*this._hbarTranslateMax,r)}if(this.vbar){var o=r/n;this.vbar.call(dA.setTranslate,t,r+o*this._vbarTranslateMax)}}});var DAe=K((LGr,CAe)=>{"use strict";var pA=No(),RM=yf(),BM=ko(),vA=Bs(),sp=Mt(),h8=zu(),qzt=fu().arrayEditor,wAe=(Hc(),ar(Gc)).LINE_SPACING,sl=(u8(),ar(l8)),Ozt=bAe();CAe.exports=function(t){var r=t._fullLayout,i=sp.filterVisible(r[sl.name]);function n(h){RM.autoMargin(t,EAe(h))}var a=r._menulayer.selectAll("g."+sl.containerClassName).data(i.length>0?[0]:[]);if(a.enter().append("g").classed(sl.containerClassName,!0).style("cursor","pointer"),a.exit().each(function(){pA.select(this).selectAll("g."+sl.headerGroupClassName).each(n)}).remove(),i.length!==0){var o=a.selectAll("g."+sl.headerGroupClassName).data(i,Nzt);o.enter().append("g").classed(sl.headerGroupClassName,!0);for(var s=sp.ensureSingle(a,"g",sl.dropdownButtonGroupClassName,function(h){h.style("pointer-events","all")}),l=0;l{"use strict";var $zt=(u8(),ar(l8));FAe.exports={moduleType:"component",name:$zt.name,layoutAttributes:c$(),supplyLayoutDefaults:yAe(),draw:DAe()}});var OM={};Fl(OM,{arrowOffsetX:()=>dIt,autoMarginIdRoot:()=>uIt,containerClassName:()=>Xzt,currentValueClass:()=>oIt,currentValueInset:()=>NIt,currentValuePadding:()=>OIt,gripBgActiveColor:()=>CIt,gripBgColor:()=>kIt,gripBorder:()=>MIt,gripBorderColor:()=>EIt,gripBorderWidth:()=>SIt,gripHeight:()=>TIt,gripRadius:()=>wIt,gripRectClass:()=>eIt,gripWidth:()=>AIt,groupClassName:()=>Zzt,inputAreaClass:()=>Kzt,inputProxyClass:()=>rIt,labelClass:()=>aIt,labelGroupClass:()=>nIt,labelOffset:()=>FIt,labelPadding:()=>DIt,labelsClass:()=>iIt,menuIndexAttrName:()=>lIt,minHeight:()=>cIt,minWidth:()=>fIt,minorTickColor:()=>BIt,minorTickLength:()=>qIt,minorTickOffset:()=>RIt,name:()=>Yzt,railBgColor:()=>xIt,railBorder:()=>mIt,railBorderColor:()=>gIt,railBorderWidth:()=>yIt,railHeight:()=>sIt,railInset:()=>bIt,railRadius:()=>pIt,railRectClass:()=>Jzt,railTouchRectClass:()=>Qzt,railWidth:()=>vIt,stepInset:()=>_It,textPadX:()=>hIt,tickColor:()=>PIt,tickLength:()=>IIt,tickOffset:()=>zIt,tickRectClass:()=>tIt,tickWidth:()=>LIt});var Yzt,Xzt,Zzt,Kzt,Jzt,Qzt,eIt,tIt,rIt,iIt,nIt,aIt,oIt,sIt,lIt,uIt,fIt,cIt,hIt,dIt,pIt,vIt,mIt,yIt,gIt,xIt,bIt,_It,wIt,AIt,TIt,MIt,SIt,EIt,kIt,CIt,DIt,FIt,LIt,PIt,zIt,IIt,RIt,BIt,qIt,OIt,NIt,NM=ps(()=>{"use strict";Yzt="sliders",Xzt="slider-container",Zzt="slider-group",Kzt="slider-input-area",Jzt="slider-rail-rect",Qzt="slider-rail-touch-rect",eIt="slider-grip-rect",tIt="slider-tick-rect",rIt="slider-input-proxy",iIt="slider-labels",nIt="slider-label-group",aIt="slider-label",oIt="slider-current-value",sIt=5,lIt="slider-active-index",uIt="slider-",fIt=30,cIt=30,hIt=40,dIt=4,pIt=2,vIt=5,mIt=4,yIt=1,gIt="#bec8d9",xIt="#f8fafc",bIt=8,_It=10,wIt=10,AIt=20,TIt=20,MIt=20,SIt=1,EIt="#bec8d9",kIt="#f6f8fa",CIt="#dbdde0",DIt=8,FIt=0,LIt=1,PIt="#333",zIt=25,IIt=7,RIt=25,BIt="#333",qIt=4,OIt=8,NIt=0});var v$=K((zGr,IAe)=>{"use strict";var PAe=lf(),VIt=gF(),UIt=Os().extendDeepAll,GIt=Ef().overrideAll,HIt=h6(),zAe=fu().templatedArray,Gb=(NM(),ar(OM)),jIt=zAe("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}});IAe.exports=GIt(zAe("slider",{visible:{valType:"boolean",dflt:!0},active:{valType:"number",min:0,dflt:0},steps:jIt,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:UIt(VIt({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:HIt.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:PAe({})},font:PAe({}),activebgcolor:{valType:"color",dflt:Gb.gripBgActiveColor},bgcolor:{valType:"color",dflt:Gb.railBgColor},bordercolor:{valType:"color",dflt:Gb.railBorderColor},borderwidth:{valType:"number",min:0,dflt:Gb.railBorderWidth},ticklen:{valType:"number",min:0,dflt:Gb.tickLength},tickcolor:{valType:"color",dflt:Gb.tickColor},tickwidth:{valType:"number",min:0,dflt:1},minorticklen:{valType:"number",min:0,dflt:Gb.minorTickLength}}),"arraydraw","from-root")});var OAe=K((IGr,qAe)=>{"use strict";var mA=Mt(),RAe=w0(),BAe=v$(),WIt=(NM(),ar(OM)),$It=WIt.name,YIt=BAe.steps;qAe.exports=function(t,r){RAe(t,r,{name:$It,handleItemDefaults:XIt})};function XIt(e,t,r){function i(c,h){return mA.coerce(e,t,BAe,c,h)}for(var n=RAe(e,t,{name:"steps",handleItemDefaults:ZIt}),a=0,o=0;o{"use strict";var i1=No(),d8=yf(),i2=ko(),n1=Bs(),lp=Mt(),KIt=lp.strTranslate,VM=zu(),JIt=fu().arrayEditor,ql=(NM(),ar(OM)),g$=(Hc(),ar(Gc)),UAe=g$.LINE_SPACING,m$=g$.FROM_TL,y$=g$.FROM_BR;YAe.exports=function(t){var r=t._context.staticPlot,i=t._fullLayout,n=QIt(i,t),a=i._infolayer.selectAll("g."+ql.containerClassName).data(n.length>0?[0]:[]);a.enter().append("g").classed(ql.containerClassName,!0).style("cursor",r?null:"ew-resize");function o(f){f._commandObserver&&(f._commandObserver.remove(),delete f._commandObserver),d8.autoMargin(t,GAe(f))}if(a.exit().each(function(){i1.select(this).selectAll("g."+ql.groupClassName).each(o)}).remove(),n.length!==0){var s=a.selectAll("g."+ql.groupClassName).data(n,eRt);s.enter().append("g").classed(ql.groupClassName,!0),s.exit().each(o).remove();for(var l=0;l0&&(s=s.transition().duration(t.transition.duration).ease(t.transition.easing)),s.attr("transform",KIt(o-ql.gripWidth*.5,t._dims.currentValueTotalHeight))}}function x$(e,t){var r=e._dims;return r.inputAreaStart+ql.stepInset+(r.inputAreaLength-2*ql.stepInset)*Math.min(1,Math.max(0,t))}function VAe(e,t){var r=e._dims;return Math.min(1,Math.max(0,(t-ql.stepInset-r.inputAreaStart)/(r.inputAreaLength-2*ql.stepInset-2*r.inputAreaStart)))}function sRt(e,t,r){var i=r._dims,n=lp.ensureSingle(e,"rect",ql.railTouchRectClass,function(a){a.call(WAe,t,e,r).style("pointer-events","all")});n.attr({width:i.inputAreaLength,height:Math.max(i.inputAreaWidth,ql.tickOffset+r.ticklen+i.labelHeight)}).call(i2.fill,r.bgcolor).attr("opacity",0),n1.setTranslate(n,0,i.currentValueTotalHeight)}function lRt(e,t){var r=t._dims,i=r.inputAreaLength-ql.railInset*2,n=lp.ensureSingle(e,"rect",ql.railRectClass);n.attr({width:i,height:ql.railWidth,rx:ql.railRadius,ry:ql.railRadius,"shape-rendering":"crispEdges"}).call(i2.stroke,t.bordercolor).call(i2.fill,t.bgcolor).style("stroke-width",t.borderwidth+"px"),n1.setTranslate(n,ql.railInset,(r.inputAreaWidth-ql.railWidth)*.5+r.currentValueTotalHeight)}});var KAe=K((BGr,ZAe)=>{"use strict";var uRt=(NM(),ar(OM));ZAe.exports={moduleType:"component",name:uRt.name,layoutAttributes:v$(),supplyLayoutDefaults:OAe(),draw:XAe()}});var v8=K((qGr,QAe)=>{"use strict";var JAe=Nc();QAe.exports={bgcolor:{valType:"color",dflt:JAe.background,editType:"plot"},bordercolor:{valType:"color",dflt:JAe.defaultLine,editType:"plot"},borderwidth:{valType:"integer",dflt:0,min:0,editType:"plot"},autorange:{valType:"boolean",dflt:!0,editType:"calc",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},range:{valType:"info_array",items:[{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}},{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}}],editType:"calc",impliedEdits:{autorange:!1}},thickness:{valType:"number",dflt:.15,min:0,max:1,editType:"plot"},visible:{valType:"boolean",dflt:!0,editType:"calc"},editType:"calc"}});var b$=K((OGr,e4e)=>{"use strict";e4e.exports={_isSubplotObj:!0,rangemode:{valType:"enumerated",values:["auto","fixed","match"],dflt:"match",editType:"calc"},range:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},editType:"calc"}});var m8={};Fl(m8,{bgClassName:()=>hRt,containerClassName:()=>cRt,extraPad:()=>IRt,grabAreaCursor:()=>DRt,grabAreaFill:()=>CRt,grabAreaMaxClassName:()=>_Rt,grabAreaMinClassName:()=>gRt,grabAreaWidth:()=>FRt,grabberMaxClassName:()=>bRt,grabberMinClassName:()=>yRt,handleMaxClassName:()=>wRt,handleMinClassName:()=>xRt,handleRadius:()=>PRt,handleStrokeWidth:()=>zRt,handleWidth:()=>LRt,maskColor:()=>MRt,maskMaxClassName:()=>vRt,maskMaxOppAxisClassName:()=>TRt,maskMinClassName:()=>pRt,maskMinOppAxisClassName:()=>ARt,maskOppAxisColor:()=>SRt,name:()=>fRt,rangePlotClassName:()=>dRt,slideBoxClassName:()=>mRt,slideBoxCursor:()=>kRt,slideBoxFill:()=>ERt});var fRt,cRt,hRt,dRt,pRt,vRt,mRt,yRt,gRt,xRt,bRt,_Rt,wRt,ARt,TRt,MRt,SRt,ERt,kRt,CRt,DRt,FRt,LRt,PRt,zRt,IRt,y8=ps(()=>{"use strict";fRt="rangeslider",cRt="rangeslider-container",hRt="rangeslider-bg",dRt="rangeslider-rangeplot",pRt="rangeslider-mask-min",vRt="rangeslider-mask-max",mRt="rangeslider-slidebox",yRt="rangeslider-grabber-min",gRt="rangeslider-grabarea-min",xRt="rangeslider-handle-min",bRt="rangeslider-grabber-max",_Rt="rangeslider-grabarea-max",wRt="rangeslider-handle-max",ARt="rangeslider-mask-min-opp-axis",TRt="rangeslider-mask-max-opp-axis",MRt="rgba(0,0,0,0.4)",SRt="rgba(0,0,0,0.2)",ERt="transparent",kRt="ew-resize",CRt="transparent",DRt="col-resize",FRt=10,LRt=4,PRt=1,zRt=1,IRt=15});var i4e=K(x8=>{"use strict";var RRt=Vf(),BRt=zu(),t4e=(y8(),ar(m8)),qRt=(Hc(),ar(Gc)).LINE_SPACING,g8=t4e.name;function r4e(e){var t=e&&e[g8];return t&&t.visible}x8.isVisible=r4e;x8.makeData=function(e){for(var t=RRt.list({_fullLayout:e},"x",!0),r=e.margin,i=[],n=0;n{"use strict";var b8=Mt(),n4e=fu(),a4e=Vf(),ORt=v8(),NRt=b$();o4e.exports=function(t,r,i){var n=t[i],a=r[i];if(!(n.rangeslider||r._requestRangeslider[a._id]))return;b8.isPlainObject(n.rangeslider)||(n.rangeslider={});var o=n.rangeslider,s=n4e.newContainer(a,"rangeslider");function l(M,x){return b8.coerce(o,s,ORt,M,x)}var u,f;function c(M,x){return b8.coerce(u,f,NRt,M,x)}var h=l("visible");if(h){l("bgcolor",r.plot_bgcolor),l("bordercolor"),l("borderwidth"),l("thickness"),l("autorange",!a.isValidRange(o.range)),l("range");var d=r._subplots;if(d)for(var p=d.cartesian.filter(function(M){return M.slice(0,Math.max(0,M.indexOf("y")))===a4e.name2id(i)}).map(function(M){return M.slice(M.indexOf("y"),M.length)}),v=b8.simpleMap(p,a4e.id2name),y=0;y{"use strict";var VRt=Vf().list,URt=Hv().getAutoRange,GRt=(y8(),ar(m8));l4e.exports=function(t){for(var r=VRt(t,"x",!0),i=0;i{"use strict";var _8=No(),HRt=Ho(),jRt=yf(),mc=Mt(),w8=mc.strTranslate,c4e=Bs(),n2=ko(),WRt=pb(),$Rt=vc(),_$=Vf(),YRt=N0(),XRt=jv(),tu=(y8(),ar(m8));h4e.exports=function(e){for(var t=e._fullLayout,r=t._rangeSliderData,i=0;i=F.max)P=S[I+1];else if(L=F.pmax)P=S[I+1];else if(L0?e.touches[0].clientX:0}function ZRt(e,t,r,i){if(t._context.staticPlot)return;var n=e.select("rect."+tu.slideBoxClassName).node(),a=e.select("rect."+tu.grabAreaMinClassName).node(),o=e.select("rect."+tu.grabAreaMaxClassName).node();function s(){var l=_8.event,u=l.target,f=f4e(l),c=f-e.node().getBoundingClientRect().left,h=i.d2p(r._rl[0]),d=i.d2p(r._rl[1]),p=YRt.coverSlip();this.addEventListener("touchmove",v),this.addEventListener("touchend",y),p.addEventListener("mousemove",v),p.addEventListener("mouseup",y);function v(m){var w=f4e(m),_=+w-f,b,M,x;switch(u){case n:if(x="ew-resize",h+_>r._length||d+_<0)return;b=h+_,M=d+_;break;case a:if(x="col-resize",h+_>r._length)return;b=h+_,M=d;break;case o:if(x="col-resize",d+_<0)return;b=h,M=d+_;break;default:x="ew-resize",b=c,M=c+_;break}if(M{"use strict";var oBt=Mt(),sBt=v8(),lBt=b$(),w$=i4e();p4e.exports={moduleType:"component",name:"rangeslider",schema:{subplots:{xaxis:{rangeslider:oBt.extendFlat({},sBt,{yaxis:lBt})}}},layoutAttributes:v8(),handleDefaults:s4e(),calcAutorange:u4e(),draw:d4e(),isVisible:w$.isVisible,makeData:w$.makeData,autoMarginOpts:w$.autoMarginOpts}});var A8=K((jGr,y4e)=>{"use strict";var uBt=lf(),m4e=Nc(),fBt=fu().templatedArray,cBt=fBt("button",{visible:{valType:"boolean",dflt:!0,editType:"plot"},step:{valType:"enumerated",values:["month","year","day","hour","minute","second","all"],dflt:"month",editType:"plot"},stepmode:{valType:"enumerated",values:["backward","todate"],dflt:"backward",editType:"plot"},count:{valType:"number",min:0,dflt:1,editType:"plot"},label:{valType:"string",editType:"plot"},editType:"plot"});y4e.exports={visible:{valType:"boolean",editType:"plot"},buttons:cBt,x:{valType:"number",min:-2,max:3,editType:"plot"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"plot"},y:{valType:"number",min:-2,max:3,editType:"plot"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"bottom",editType:"plot"},font:uBt({editType:"plot"}),bgcolor:{valType:"color",dflt:m4e.lightLine,editType:"plot"},activecolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:m4e.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"}});var A$={};Fl(A$,{darkAmount:()=>yBt,lightAmount:()=>mBt,minButtonWidth:()=>dBt,rx:()=>pBt,ry:()=>vBt,yPad:()=>hBt});var hBt,dBt,pBt,vBt,mBt,yBt,T$=ps(()=>{"use strict";hBt=.02,dBt=30,pBt=3,vBt=3,mBt=25,yBt=10});var b4e=K((WGr,x4e)=>{"use strict";var T8=Mt(),gBt=ko(),xBt=fu(),bBt=w0(),g4e=A8(),M$=(T$(),ar(A$));x4e.exports=function(t,r,i,n,a){var o=t.rangeselector||{},s=xBt.newContainer(r,"rangeselector");function l(d,p){return T8.coerce(o,s,g4e,d,p)}var u=bBt(o,s,{name:"buttons",handleItemDefaults:_Bt,calendar:a}),f=l("visible",u.length>0);if(f){var c=wBt(r,i,n);l("x",c[0]),l("y",c[1]),T8.noneOrAll(t,r,["x","y"]),l("xanchor"),l("yanchor"),T8.coerceFont(l,"font",i.font);var h=l("bgcolor");l("activecolor",gBt.contrast(h,M$.lightAmount,M$.darkAmount)),l("bordercolor"),l("borderwidth")}};function _Bt(e,t,r,i){var n=i.calendar;function a(l,u){return T8.coerce(e,t,g4e.buttons,l,u)}var o=a("visible");if(o){var s=a("step");s!=="all"&&(n&&n!=="gregorian"&&(s==="month"||s==="year")?t.stepmode="backward":a("stepmode"),a("count")),a("label")}}function wBt(e,t,r){for(var i=r.filter(function(s){return t[s].anchor===e._id}),n=0,a=0;a{"use strict";var ABt=rV(),TBt=Mt().titleCase;_4e.exports=function(t,r){var i=t._name,n={};if(r.step==="all")n[i+".autorange"]=!0;else{var a=MBt(t,r);n[i+".range[0]"]=a[0],n[i+".range[1]"]=a[1]}return n};function MBt(e,t){var r=e.range,i=new Date(e.r2l(r[1])),n=t.step,a=ABt["utc"+TBt(n)],o=t.count,s;switch(t.stepmode){case"backward":s=e.l2r(+a.offset(i,-o));break;case"todate":var l=a.offset(i,-o);s=e.l2r(+a.ceil(l));break}var u=r[1];return[s,u]}});var D4e=K((YGr,C4e)=>{"use strict";var S8=No(),SBt=Ho(),EBt=yf(),A4e=ko(),k4e=Bs(),vy=Mt(),T4e=vy.strTranslate,M8=zu(),kBt=Vf(),k$=(Hc(),ar(Gc)),M4e=k$.LINE_SPACING,S4e=k$.FROM_TL,E4e=k$.FROM_BR,E$=(T$(),ar(A$)),CBt=w4e();C4e.exports=function(t){var r=t._fullLayout,i=r._infolayer.selectAll(".rangeselector").data(DBt(t),FBt);i.enter().append("g").classed("rangeselector",!0),i.exit().remove(),i.style({cursor:"pointer","pointer-events":"all"}),i.each(function(n){var a=S8.select(this),o=n,s=o.rangeselector,l=a.selectAll("g.button").data(vy.filterVisible(s.buttons));l.enter().append("g").classed("button",!0),l.exit().remove(),l.each(function(u){var f=S8.select(this),c=CBt(o,u);u._isActive=LBt(o,u,c),f.call(S$,s,u),f.call(zBt,s,u,t),f.on("click",function(){t._dragged||SBt.call("_guiRelayout",t,c)}),f.on("mouseover",function(){u._isHovered=!0,f.call(S$,s,u)}),f.on("mouseout",function(){u._isHovered=!1,f.call(S$,s,u)})}),RBt(t,l,s,o._name,a)})};function DBt(e){for(var t=kBt.list(e,"x",!0),r=[],i=0;i{"use strict";F4e.exports={moduleType:"component",name:"rangeselector",schema:{subplots:{xaxis:{rangeselector:A8()}}},layoutAttributes:A8(),handleDefaults:b4e(),draw:D4e()}});var kf=K(C$=>{"use strict";var P4e=Os().extendFlat;C$.attributes=function(e,t){e=e||{},t=t||{};var r={valType:"info_array",editType:e.editType,items:[{valType:"number",min:0,max:1,editType:e.editType},{valType:"number",min:0,max:1,editType:e.editType}],dflt:[0,1]},i=e.name?e.name+" ":"",n=e.trace?"trace":"subplot",a=t.description?" "+t.description:"",o={x:P4e({},r,{}),y:P4e({},r,{}),editType:e.editType};return e.noGridCell||(o.row={valType:"integer",min:0,dflt:0,editType:e.editType},o.column={valType:"integer",min:0,dflt:0,editType:e.editType}),o};C$.defaults=function(e,t,r,i){var n=i&&i.x||[0,1],a=i&&i.y||[0,1],o=t.grid;if(o){var s=r("domain.column");s!==void 0&&(s{"use strict";var BBt=Mt(),qBt=(uw(),ar(f6)).counter,OBt=kf().attributes,z4e=(Uc(),ar(Vc)).idRegex,NBt=fu(),D$={rows:{valType:"integer",min:1,editType:"plot"},roworder:{valType:"enumerated",values:["top to bottom","bottom to top"],dflt:"top to bottom",editType:"plot"},columns:{valType:"integer",min:1,editType:"plot"},subplots:{valType:"info_array",freeLength:!0,dimensions:2,items:{valType:"enumerated",values:[qBt("xy").toString(),""],editType:"plot"},editType:"plot"},xaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[z4e.x.toString(),""],editType:"plot"},editType:"plot"},yaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[z4e.y.toString(),""],editType:"plot"},editType:"plot"},pattern:{valType:"enumerated",values:["independent","coupled"],dflt:"coupled",editType:"plot"},xgap:{valType:"number",min:0,max:1,editType:"plot"},ygap:{valType:"number",min:0,max:1,editType:"plot"},domain:OBt({name:"grid",editType:"plot",noGridCell:!0},{}),xside:{valType:"enumerated",values:["bottom","bottom plot","top plot","top"],dflt:"bottom plot",editType:"plot"},yside:{valType:"enumerated",values:["left","left plot","right plot","right"],dflt:"left plot",editType:"plot"},editType:"plot"};function E8(e,t,r){var i=t[r+"axes"],n=Object.keys((e._splomAxes||{})[r]||{});if(Array.isArray(i))return i;if(n.length)return n}function VBt(e,t){var r=e.grid||{},i=E8(t,r,"x"),n=E8(t,r,"y");if(!e.grid&&!i&&!n)return;var a=Array.isArray(r.subplots)&&Array.isArray(r.subplots[0]),o=Array.isArray(i),s=Array.isArray(n),l=o&&i!==r.xaxes&&s&&n!==r.yaxes,u,f;a?(u=r.subplots.length,f=r.subplots[0].length):(s&&(u=n.length),o&&(f=i.length));var c=NBt.newContainer(t,"grid");function h(x,A){return BBt.coerce(r,c,D$,x,A)}var d=h("rows",u),p=h("columns",f);if(!(d*p>1)){delete t.grid;return}if(!a&&!o&&!s){var v=h("pattern")==="independent";v&&(a=!0)}c._hasSubplotGrid=a;var y=h("roworder"),m=y==="top to bottom",w=a?.2:.1,_=a?.3:.1,b,M;l&&t._splomGridDflt&&(b=t._splomGridDflt.xside,M=t._splomGridDflt.yside),c._domains={x:I4e("x",h,w,b,p),y:I4e("y",h,_,M,d,m)}}function I4e(e,t,r,i,n,a){var o=t(e+"gap",r),s=t("domain."+e);t(e+"side",i);for(var l=new Array(n),u=s[0],f=(s[1]-u)/(n-o),c=f*(1-o),h=0;h{"use strict";q4e.exports={visible:{valType:"boolean",editType:"calc"},type:{valType:"enumerated",values:["percent","constant","sqrt","data"],editType:"calc"},symmetric:{valType:"boolean",editType:"calc"},array:{valType:"data_array",editType:"calc"},arrayminus:{valType:"data_array",editType:"calc"},value:{valType:"number",min:0,dflt:10,editType:"calc"},valueminus:{valType:"number",min:0,dflt:10,editType:"calc"},traceref:{valType:"integer",min:0,dflt:0,editType:"style"},tracerefminus:{valType:"integer",min:0,dflt:0,editType:"style"},copy_ystyle:{valType:"boolean",editType:"plot"},copy_zstyle:{valType:"boolean",editType:"style"},color:{valType:"color",editType:"style"},thickness:{valType:"number",min:0,dflt:2,editType:"style"},width:{valType:"number",min:0,editType:"plot"},editType:"calc"}});var V4e=K((QGr,N4e)=>{"use strict";var O4e=Gs(),GBt=Ho(),HBt=Mt(),jBt=fu(),WBt=L$();N4e.exports=function(e,t,r,i){var n="error_"+i.axis,a=jBt.newContainer(t,n),o=e[n]||{};function s(p,v){return HBt.coerce(o,a,WBt,p,v)}var l=o.array!==void 0||o.value!==void 0||o.type==="sqrt",u=s("visible",l);if(u!==!1){var f=s("type","array"in o?"data":"percent"),c=!0;f!=="sqrt"&&(c=s("symmetric",!((f==="data"?"arrayminus":"valueminus")in o))),f==="data"?(s("array"),s("traceref"),c||(s("arrayminus"),s("tracerefminus"))):(f==="percent"||f==="constant")&&(s("value"),c||s("valueminus"));var h="copy_"+i.inherit+"style";if(i.inherit){var d=t["error_"+i.inherit];(d||{}).visible&&s(h,!(o.color||O4e(o.thickness)||O4e(o.width)))}(!i.inherit||!a[h])&&(s("color",r),s("thickness"),s("width",GBt.traceIs(t,"gl3d")?0:4))}}});var P$=K((eHr,G4e)=>{"use strict";G4e.exports=function(t){var r=t.type,i=t.symmetric;if(r==="data"){var n=t.array||[];if(i)return function(u,f){var c=+n[f];return[c,c]};var a=t.arrayminus||[];return function(u,f){var c=+n[f],h=+a[f];return!isNaN(c)||!isNaN(h)?[h||0,c||0]:[NaN,NaN]}}else{var o=U4e(r,t.value),s=U4e(r,t.valueminus);return i||t.valueminus===void 0?function(u){var f=o(u);return[f,f]}:function(u){return[s(u),o(u)]}}};function U4e(e,t){if(e==="percent")return function(r){return Math.abs(r*t/100)};if(e==="constant")return function(){return Math.abs(t)};if(e==="sqrt")return function(r){return Math.sqrt(Math.abs(r))}}});var W4e=K((tHr,j4e)=>{"use strict";var z$=Gs(),$Bt=Ho(),I$=Cs(),YBt=Mt(),XBt=P$();j4e.exports=function(t){for(var r=t.calcdata,i=0;i{"use strict";var $4e=No(),a2=Gs(),ZBt=Bs(),KBt=ff();Y4e.exports=function(t,r,i,n){var a,o=i.xaxis,s=i.yaxis,l=n&&n.duration>0,u=t._context.staticPlot;r.each(function(f){var c=f[0].trace,h=c.error_x||{},d=c.error_y||{},p;c.ids&&(p=function(w){return w.id});var v=KBt.hasMarkers(c)&&c.marker.maxdisplayed>0;!d.visible&&!h.visible&&(f=[]);var y=$4e.select(this).selectAll("g.errorbar").data(f,p);if(y.exit().remove(),!!f.length){h.visible||y.selectAll("path.xerror").remove(),d.visible||y.selectAll("path.yerror").remove(),y.style("opacity",1);var m=y.enter().append("g").classed("errorbar",!0);l&&m.style("opacity",0).transition().duration(n.duration).style("opacity",1),ZBt.setClipUrl(y,i.layerClipId,t),y.each(function(w){var _=$4e.select(this),b=JBt(w,o,s);if(!(v&&!w.vis)){var M,x=_.select("path.yerror");if(d.visible&&a2(b.x)&&a2(b.yh)&&a2(b.ys)){var A=d.width;M="M"+(b.x-A)+","+b.yh+"h"+2*A+"m-"+A+",0V"+b.ys,b.noYS||(M+="m-"+A+",0h"+2*A),a=!x.size(),a?x=_.append("path").style("vector-effect",u?"none":"non-scaling-stroke").classed("yerror",!0):l&&(x=x.transition().duration(n.duration).ease(n.easing)),x.attr("d",M)}else x.remove();var T=_.select("path.xerror");if(h.visible&&a2(b.y)&&a2(b.xh)&&a2(b.xs)){var g=(h.copy_ystyle?d:h).width;M="M"+b.xh+","+(b.y-g)+"v"+2*g+"m0,-"+g+"H"+b.xs,b.noXS||(M+="m0,-"+g+"v"+2*g),a=!T.size(),a?T=_.append("path").style("vector-effect",u?"none":"non-scaling-stroke").classed("xerror",!0):l&&(T=T.transition().duration(n.duration).ease(n.easing)),T.attr("d",M)}else T.remove()}})}})};function JBt(e,t,r){var i={x:t.c2p(e.x),y:r.c2p(e.y)};return e.yh!==void 0&&(i.yh=r.c2p(e.yh),i.ys=r.c2p(e.ys),a2(i.ys)||(i.noYS=!0,i.ys=r.c2p(e.ys,!0))),e.xh!==void 0&&(i.xh=t.c2p(e.xh),i.xs=t.c2p(e.xs),a2(i.xs)||(i.noXS=!0,i.xs=t.c2p(e.xs,!0))),i}});var J4e=K((iHr,K4e)=>{"use strict";var QBt=No(),Z4e=ko();K4e.exports=function(t){t.each(function(r){var i=r[0].trace,n=i.error_y||{},a=i.error_x||{},o=QBt.select(this);o.selectAll("path.yerror").style("stroke-width",n.thickness+"px").call(Z4e.stroke,n.color),a.copy_ystyle&&(a=n),o.selectAll("path.xerror").style("stroke-width",a.thickness+"px").call(Z4e.stroke,a.color)})}});var t5e=K((nHr,e5e)=>{"use strict";var UM=Mt(),Q4e=Ef().overrideAll,GM=L$(),Hb={error_x:UM.extendFlat({},GM),error_y:UM.extendFlat({},GM)};delete Hb.error_x.copy_zstyle;delete Hb.error_y.copy_zstyle;delete Hb.error_y.copy_ystyle;var HM={error_x:UM.extendFlat({},GM),error_y:UM.extendFlat({},GM),error_z:UM.extendFlat({},GM)};delete HM.error_x.copy_ystyle;delete HM.error_y.copy_ystyle;delete HM.error_z.copy_ystyle;delete HM.error_z.copy_zstyle;e5e.exports={moduleType:"component",name:"errorbars",schema:{traces:{scatter:Hb,bar:Hb,histogram:Hb,scatter3d:Q4e(HM,"calc","nested"),scattergl:Q4e(Hb,"calc","nested")}},supplyDefaults:V4e(),calc:W4e(),makeComputeError:P$(),plot:X4e(),style:J4e(),hoverInfo:e7t};function e7t(e,t,r){(t.error_y||{}).visible&&(r.yerr=e.yh-e.y,t.error_y.symmetric||(r.yerrneg=e.y-e.ys)),(t.error_x||{}).visible&&(r.xerr=e.xh-e.x,t.error_x.symmetric||(r.xerrneg=e.x-e.xs))}});var r5e={};Fl(r5e,{cn:()=>t7t});var t7t,i5e=ps(()=>{"use strict";t7t={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"}});var c5e=K((aHr,f5e)=>{"use strict";var o2=No(),C8=yf(),n5e=Ho(),my=Cs(),k8=N0(),Qp=Mt(),o1=Qp.strTranslate,u5e=Os().extendFlat,R$=jv(),a1=Bs(),yA=ko(),r7t=pb(),i7t=zu(),n7t=Zh().flipScale,a7t=LM(),o7t=JP(),s7t=Lh(),q$=(Hc(),ar(Gc)),a5e=q$.LINE_SPACING,o5e=q$.FROM_TL,s5e=q$.FROM_BR,Gf=(i5e(),ar(r5e)).cn;function l7t(e){var t=e._fullLayout,r=t._infolayer.selectAll("g."+Gf.colorbar).data(u7t(e),function(i){return i._id});r.enter().append("g").attr("class",function(i){return i._id}).classed(Gf.colorbar,!0),r.each(function(i){var n=o2.select(this);Qp.ensureSingle(n,"rect",Gf.cbbg),Qp.ensureSingle(n,"g",Gf.cbfills),Qp.ensureSingle(n,"g",Gf.cblines),Qp.ensureSingle(n,"g",Gf.cbaxis,function(o){o.classed(Gf.crisp,!0)}),Qp.ensureSingle(n,"g",Gf.cbtitleunshift,function(o){o.append("g").classed(Gf.cbtitle,!0)}),Qp.ensureSingle(n,"rect",Gf.cboutline);var a=f7t(n,i,e);a&&a.then&&(e._promises||[]).push(a),e._context.edits.colorbarPosition&&c7t(n,i,e)}),r.exit().each(function(i){C8.autoMargin(e,i._id)}).remove(),r.order()}function u7t(e){var t=e._fullLayout,r=e.calcdata,i=[],n,a,o,s;function l(_){return u5e(_,{_fillcolor:null,_line:{color:null,width:null,dash:null},_levels:{start:null,end:null,size:null},_filllevels:null,_fillgradient:null,_zrange:null})}function u(){typeof s.calc=="function"?s.calc(e,o,n):(n._fillgradient=a.reversescale?n7t(a.colorscale):a.colorscale,n._zrange=[a[s.min],a[s.max]])}for(var f=0;f[Math.min(e[0]+t,e[1]),e[1]],l5e=(e,t)=>[e[0],Math.max(e[1]-t,e[0])];function f7t(e,t,r){var i=t.orientation==="v",n=t.len,a=t.lenmode,o=t.thickness,s=t.thicknessmode,l=t.outlinewidth,u=t.borderwidth,f=t.bgcolor,c=t.xanchor,h=t.yanchor,d=t.xpad,p=t.ypad,v=t.x,y=i?t.y:1-t.y,m=t.yref==="paper",w=t.xref==="paper",_=r._fullLayout,b=_._size,M=t._fillcolor,x=t._line,A=t.title,T=A.side,g=t._zrange||o2.extent((typeof M=="function"?M:x.color).domain()),E=typeof x.color=="function"?x.color:function(){return x.color},S=typeof M=="function"?M:function(){return M},C=t._levels,k=h7t(r,t,g),D=k.fill,L=k.line,P=Math.round(o*(s==="fraction"?i?b.w:b.h:1)),I=P/(i?b.w:b.h),F=Math.round(n*(a==="fraction"?i?b.h:b.w:1)),z=F/(i?b.h:b.w),B=w?b.w:r._fullLayout.width,O=m?b.h:r._fullLayout.height,W=Math.round(i?v*B+d:y*O+p),X={center:.5,right:1}[c]||0,Z={top:1,middle:.5}[h]||0,j=i?v-X*I:y-Z*I,q=i?y-Z*z:v-X*z,Q=Math.round(i?O*(1-q):B*q);t._lenFrac=z,t._thickFrac=I,t._uFrac=j,t._vFrac=q;var N=t._axis=d7t(r,t,g);N.position=I+(i?v+d/b.w:y+p/b.h);var V=["top","bottom"].indexOf(T)!==-1;if(i&&V&&(N.title.side=T,N.titlex=v+d/b.w,N.titley=q+(A.side==="top"?z-p/b.h:p/b.h)),!i&&!V&&(N.title.side=T,N.titley=y+p/b.h,N.titlex=q+d/b.w),x.color&&t.tickmode==="auto"){N.tickmode="linear",N.tick0=C.start;var J=C.size,H=Qp.constrain(F/50,4,15)+1,$=(g[1]-g[0])/((t.nticks||H)*J);if($>1){var te=Math.pow(10,Math.floor(Math.log($)/Math.LN10));J*=te*Qp.roundUp($/te,[2,5,10]),(Math.abs(C.start)/C.size+1e-6)%1<2e-6&&(N.tick0=0)}N.dtick=J}var ie=i?p/b.h:d/b.w;N.domain=l5e(B$([q,q+z],ie),ie),N.setScale(),e.attr("transform",o1(Math.round(b.l),Math.round(b.t)));var de=e.select("."+Gf.cbtitleunshift).attr("transform",o1(-Math.round(b.l),-Math.round(b.t))),ge=N.ticklabelposition,Ie=N.title.font.size,Ce=e.select("."+Gf.cbaxis),le,re=0,Ee=0;function we(U,se){var Ae={propContainer:N,propName:t._propPrefix+"title.text",traceIndex:t._traceIndex,_meta:t._meta,placeholder:_._dfltTitle.colorbar,containerGroup:e.select("."+Gf.cbtitle)},be=U.charAt(0)==="h"?U.slice(1):"h"+U;e.selectAll("."+be+",."+be+"-math-group").remove(),r7t.draw(r,U,u5e(Ae,se||{}))}function oe(){if(i&&V||!i&&!V){var U,se;T==="top"&&(U=d+b.l+B*v,se=p+b.t+O*(1-q-z)+3+Ie*.75),T==="bottom"&&(U=d+b.l+B*v,se=p+b.t+O*(1-q)-3-Ie*.25),T==="right"&&(se=p+b.t+O*y+3+Ie*.75,U=d+b.l+B*q),we(N._id+"title",{attributes:{x:U,y:se,"text-anchor":i?"start":"middle"}})}}function Y(){if(i&&!V||!i&&V){var U=N.position||0,se=N._offset+N._length/2,Ae,be;if(T==="right")be=se,Ae=b.l+B*U+10+Ie*(N.showticklabels?1:.5);else if(Ae=se,T==="bottom"&&(be=b.t+O*U+10+(ge.indexOf("inside")===-1?N.tickfont.size:0)+(N.ticks!=="inside"&&t.ticklen||0)),T==="top"){var me=A.text.split("
").length;be=b.t+O*U+10-P-a5e*Ie*me}we((i?"h":"v")+N._id+"title",{avoid:{selection:o2.select(r).selectAll("g."+N._id+"tick"),side:T,offsetTop:i?0:b.t,offsetLeft:i?b.l:0,maxShift:i?_.width:_.height},attributes:{x:Ae,y:be,"text-anchor":"middle"},transform:{rotate:i?-90:0,offset:0}})}}function ne(){if(!i&&!V||i&&V){var U=e.select("."+Gf.cbtitle),se=U.select("text"),Ae=[-l/2,l/2],be=U.select(".h"+N._id+"title-math-group").node(),me=15.6;se.node()&&(me=parseInt(se.node().style.fontSize,10)*a5e);var ue;if(be?(ue=a1.bBox(be),Ee=ue.width,re=ue.height,re>me&&(Ae[1]-=(re-me)/2)):se.node()&&!se.classed(Gf.jsPlaceholder)&&(ue=a1.bBox(se.node()),Ee=ue.width,re=ue.height),i){if(re){if(re+=5,T==="top")N.domain=l5e(N.domain,re/b.h),Ae[1]*=-1;else{N.domain=B$(N.domain,re/b.h);var pe=i7t.lineCount(se);Ae[1]+=(1-pe)*me}U.attr("transform",o1(Ae[0],Ae[1])),N.setScale()}}else Ee&&(T==="right"&&(N.domain=B$(N.domain,(Ee+Ie/2)/b.w)),U.attr("transform",o1(Ae[0],Ae[1])),N.setScale())}e.selectAll("."+Gf.cbfills+",."+Gf.cblines).attr("transform",i?o1(0,Math.round(b.h*(1-N.domain[1]))):o1(Math.round(b.w*N.domain[0]),0)),Ce.attr("transform",i?o1(0,Math.round(-b.t)):o1(Math.round(-b.l),0));var ce=e.select("."+Gf.cbfills).selectAll("rect."+Gf.cbfill).attr("style","").data(D);ce.enter().append("rect").classed(Gf.cbfill,!0).attr("style",""),ce.exit().remove();var Be=g.map(N.c2p).map(Math.round).sort(function(Ue,xe){return Ue-xe});ce.each(function(Ue,xe){var Re=[xe===0?g[0]:(D[xe]+D[xe-1])/2,xe===D.length-1?g[1]:(D[xe]+D[xe+1])/2].map(N.c2p).map(Math.round);i&&(Re[1]=Qp.constrain(Re[1]+(Re[1]>Re[0])?1:-1,Be[0],Be[1]));var Qe=o2.select(this).attr(i?"x":"y",W).attr(i?"y":"x",o2.min(Re)).attr(i?"width":"height",Math.max(P,2)).attr(i?"height":"width",Math.max(o2.max(Re)-o2.min(Re),2));if(t._fillgradient)a1.gradient(Qe,r,t._id,i?"vertical":"horizontalreversed",t._fillgradient,"fill");else{var Pe=S(Ue).replace("e-","");Qe.attr("fill",yA.hexString(Pe))}});var $e=e.select("."+Gf.cblines).selectAll("path."+Gf.cbline).data(x.color&&x.width?L:[]);$e.enter().append("path").classed(Gf.cbline,!0),$e.exit().remove(),$e.each(function(Ue){var xe=W,Re=Math.round(N.c2p(Ue))+x.width/2%1;o2.select(this).attr("d","M"+(i?xe+","+Re:Re+","+xe)+(i?"h":"v")+P).call(a1.lineGroupStyle,x.width,E(Ue),x.dash)}),Ce.selectAll("g."+N._id+"tick,path").remove();var Ze=W+P+(l||0)/2-(t.ticks==="outside"?1:0),it=my.calcTicks(N),nt=my.getTickSigns(N)[2];return my.drawTicks(r,N,{vals:N.ticks==="inside"?my.clipEnds(N,it):it,layer:Ce,path:my.makeTickPath(N,Ze,nt),transFn:my.makeTransTickFn(N)}),my.drawLabels(r,N,{vals:it,layer:Ce,transFn:my.makeTransTickLabelFn(N),labelFns:my.makeLabelFns(N,Ze)})}function ye(){var U,se=P+l/2;ge.indexOf("inside")===-1&&(U=a1.bBox(Ce.node()),se+=i?U.width:U.height),le=de.select("text");var Ae=0,be=i&&T==="top",me=!i&&T==="right",ue=0;if(le.node()&&!le.classed(Gf.jsPlaceholder)){var pe,ce=de.select(".h"+N._id+"title-math-group").node();ce&&(i&&V||!i&&!V)?(U=a1.bBox(ce),Ae=U.width,pe=U.height):(U=a1.bBox(de.node()),Ae=U.right-b.l-(i?W:Q),pe=U.bottom-b.t-(i?Q:W),!i&&T==="top"&&(se+=U.height,ue=U.height)),me&&(le.attr("transform",o1(Ae/2+Ie/2,0)),Ae*=2),se=Math.max(se,i?Ae:pe)}var Be=(i?d:p)*2+se+u+l/2,$e=0;!i&&A.text&&h==="bottom"&&y<=0&&($e=Be/2,Be+=$e,ue+=$e),_._hColorbarMoveTitle=$e,_._hColorbarMoveCBTitle=ue;var Ze=u+l,it=(i?W:Q)-Ze/2-(i?d:0),nt=(i?Q:W)-(i?F:p+ue-$e);e.select("."+Gf.cbbg).attr("x",it).attr("y",nt).attr(i?"width":"height",Math.max(Be-$e,2)).attr(i?"height":"width",Math.max(F+Ze,2)).call(yA.fill,f).call(yA.stroke,t.bordercolor).style("stroke-width",u);var Ue=me?Math.max(Ae-10,0):0;e.selectAll("."+Gf.cboutline).attr("x",(i?W:Q+d)+Ue).attr("y",(i?Q+p-F:W)+(be?re:0)).attr(i?"width":"height",Math.max(P,2)).attr(i?"height":"width",Math.max(F-(i?2*p+re:2*d+Ue),2)).call(yA.stroke,t.outlinecolor).style({fill:"none","stroke-width":l});var xe=i?X*Be:0,Re=i?0:(1-Z)*Be-ue;if(xe=w?b.l-xe:-xe,Re=m?b.t-Re:-Re,e.attr("transform",o1(xe,Re)),!i&&(u||yA.opacity(f)&&!yA.equals(_.paper_bgcolor,f))){var Qe=Ce.selectAll("text"),Pe=Qe[0].length,De=e.select("."+Gf.cbbg).node(),Ve=a1.bBox(De),Le=a1.getTranslate(e),Se=2;Qe.each(function(rr,Ke){var at=0,lt=Pe-1;if(Ke===at||Ke===lt){var vt=a1.bBox(this),We=a1.getTranslate(this),ut;if(Ke===lt){var kt=vt.right+We.x,$t=Ve.right+Le.x+Q-u-Se+v;ut=$t-kt,ut>0&&(ut=0)}else if(Ke===at){var or=vt.left+We.x,Lr=Ve.left+Le.x+Q+u+Se;ut=Lr-or,ut<0&&(ut=0)}ut&&(Pe<3?this.setAttribute("transform","translate("+ut+",0) "+this.getAttribute("transform")):this.setAttribute("visibility","hidden"))}})}var ze={},st=o5e[c],ft=s5e[c],wt=o5e[h],At=s5e[h],Vt=Be-P;i?(a==="pixels"?(ze.y=y,ze.t=F*wt,ze.b=F*At):(ze.t=ze.b=0,ze.yt=y+n*wt,ze.yb=y-n*At),s==="pixels"?(ze.x=v,ze.l=Be*st,ze.r=Be*ft):(ze.l=Vt*st,ze.r=Vt*ft,ze.xl=v-o*st,ze.xr=v+o*ft)):(a==="pixels"?(ze.x=v,ze.l=F*st,ze.r=F*ft):(ze.l=ze.r=0,ze.xl=v+n*st,ze.xr=v-n*ft),s==="pixels"?(ze.y=1-y,ze.t=Be*wt,ze.b=Be*At):(ze.t=Vt*wt,ze.b=Vt*At,ze.yt=y-o*wt,ze.yb=y+o*At));var Dt=t.y<.5?"b":"t",yt=t.x<.5?"l":"r";r._fullLayout._reservedMargin[t._id]={};var St={r:_.width-it-xe,l:it+ze.r,b:_.height-nt-Re,t:nt+ze.b};w&&m?C8.autoMargin(r,t._id,ze):w?r._fullLayout._reservedMargin[t._id][Dt]=St[Dt]:m||i?r._fullLayout._reservedMargin[t._id][yt]=St[yt]:r._fullLayout._reservedMargin[t._id][Dt]=St[Dt]}return Qp.syncOrAsync([C8.previousPromises,oe,ne,Y,C8.previousPromises,ye],r)}function c7t(e,t,r){var i=t.orientation==="v",n=r._fullLayout,a=n._size,o,s,l;k8.init({element:e.node(),gd:r,prepFn:function(){o=e.attr("transform"),R$(e)},moveFn:function(u,f){e.attr("transform",o+o1(u,f)),s=k8.align((i?t._uFrac:t._vFrac)+u/a.w,i?t._thickFrac:t._lenFrac,0,1,t.xanchor),l=k8.align((i?t._vFrac:1-t._uFrac)-f/a.h,i?t._lenFrac:t._thickFrac,0,1,t.yanchor);var c=k8.getCursor(s,l,t.xanchor,t.yanchor);R$(e,c)},doneFn:function(){if(R$(e),s!==void 0&&l!==void 0){var u={};u[t._propPrefix+"x"]=s,u[t._propPrefix+"y"]=l,t._traceIndex!==void 0?n5e.call("_guiRestyle",r,u,t._traceIndex):n5e.call("_guiRelayout",r,u)}}})}function h7t(e,t,r){var i=t._levels,n=[],a=[],o,s,l=i.end+i.size/100,u=i.size,f=1.001*r[0]-.001*r[1],c=1.001*r[1]-.001*r[0];for(s=0;s<1e5&&(o=i.start+s*u,!(u>0?o>=l:o<=l));s++)o>f&&o0?o>=l:o<=l));s++)o>r[0]&&o{"use strict";h5e.exports={moduleType:"component",name:"colorbar",attributes:WF(),supplyDefaults:HG(),draw:c5e().draw,hasColorbar:BG()}});var v5e=K((sHr,p5e)=>{"use strict";p5e.exports={moduleType:"component",name:"legend",layoutAttributes:qH(),supplyLayoutDefaults:NH(),draw:tj(),style:KH()}});var y5e=K((lHr,m5e)=>{"use strict";m5e.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"}}});var x5e=K((uHr,g5e)=>{"use strict";g5e.exports={moduleType:"locale",name:"en-US",dictionary:{"Click to enter Colorscale title":"Click to enter Colorscale title"},format:{date:"%m/%d/%Y"}}});var N$=K((fHr,A5e)=>{"use strict";var p7t=Ho(),w5e=Mt(),O$=w5e.extendFlat,b5e=w5e.extendDeep;function _5e(e){var t;switch(e){case"themes__thumb":t={autosize:!0,width:150,height:150,title:{text:""},showlegend:!1,margin:{l:5,r:5,t:5,b:5,pad:0},annotations:[]};break;case"thumbnail":t={title:{text:""},showlegend:!1,borderwidth:0,bordercolor:"",margin:{l:1,r:1,t:1,b:1,pad:0},annotations:[]};break;default:t={}}return t}function v7t(e){var t=["xaxis","yaxis","zaxis"];return t.indexOf(e.slice(0,5))>-1}A5e.exports=function(t,r){var i,n=t.data,a=t.layout,o=b5e([],n),s=b5e({},a,_5e(r.tileClass)),l=t._context||{};if(r.width&&(s.width=r.width),r.height&&(s.height=r.height),r.tileClass==="thumbnail"||r.tileClass==="themes__thumb"){s.annotations=[];var u=Object.keys(s);for(i=0;i{"use strict";var m7t=ib().EventEmitter,y7t=Ho(),g7t=Mt(),T5e=hy(),x7t=N$(),b7t=LP(),_7t=PP();function w7t(e,t){var r=new m7t,i=x7t(e,{format:"png"}),n=i.gd;n.style.position="absolute",n.style.left="-5000px",document.body.appendChild(n);function a(){var s=T5e.getDelay(n._fullLayout);setTimeout(function(){var l=b7t(n),u=document.createElement("canvas");u.id=g7t.randstr(),r=_7t({format:t.format,width:n._fullLayout.width,height:n._fullLayout.height,canvas:u,emitter:r,svg:l}),r.clean=function(){n&&document.body.removeChild(n)}},s)}var o=T5e.getRedrawFunc(n);return y7t.call("_doPlot",n,i.data,i.layout,i.config).then(o).then(a).catch(function(s){r.emit("error",s)}),r}M5e.exports=w7t});var C5e=K((hHr,k5e)=>{"use strict";var E5e=hy(),A7t={getDelay:E5e.getDelay,getRedrawFunc:E5e.getRedrawFunc,clone:N$(),toSVG:LP(),svgToImg:PP(),toImage:S5e(),downloadImage:xW()};k5e.exports=A7t});var F5e=K(yy=>{"use strict";yy.version=OT().version;aue();Gde();var T7t=Ho(),jM=yy.register=T7t.register,U$=t_e(),D5e=Object.keys(U$);for(D8=0;D8{"use strict";L5e.exports=F5e()});var um=K((vHr,q5e)=>{"use strict";var lc=Zf(),z5e=zf().axisHoverFormat,{hovertemplateAttrs:M7t,texttemplateAttrs:S7t,templatefallbackAttrs:I5e}=yu(),B5e=Wu(),E7t=lf(),R5e=(Qg(),ar(Jg)),k7t=yh().pattern,jb=Os().extendFlat,G$=E7t({editType:"calc",arrayOk:!0,colorEditType:"style"}),C7t=lc.marker,D7t=C7t.line,F7t=jb({},D7t.width,{dflt:0}),L7t=jb({width:F7t,editType:"calc"},B5e("marker.line")),P7t=jb({line:L7t,editType:"calc"},B5e("marker"),{opacity:{valType:"number",arrayOk:!0,dflt:1,min:0,max:1,editType:"style"},pattern:k7t,cornerradius:{valType:"any",editType:"calc"}});q5e.exports={x:lc.x,x0:lc.x0,dx:lc.dx,y:lc.y,y0:lc.y0,dy:lc.dy,xperiod:lc.xperiod,yperiod:lc.yperiod,xperiod0:lc.xperiod0,yperiod0:lc.yperiod0,xperiodalignment:lc.xperiodalignment,yperiodalignment:lc.yperiodalignment,xhoverformat:z5e("x"),yhoverformat:z5e("y"),text:lc.text,texttemplate:S7t({editType:"plot"},{keys:R5e.eventDataKeys}),texttemplatefallback:I5e({editType:"plot"}),hovertext:lc.hovertext,hovertemplate:M7t({},{keys:R5e.eventDataKeys}),hovertemplatefallback:I5e(),textposition:{valType:"enumerated",values:["inside","outside","auto","none"],dflt:"auto",arrayOk:!0,editType:"calc"},insidetextanchor:{valType:"enumerated",values:["end","middle","start"],dflt:"end",editType:"plot"},textangle:{valType:"angle",dflt:"auto",editType:"plot"},textfont:jb({},G$,{}),insidetextfont:jb({},G$,{}),outsidetextfont:jb({},G$,{}),constraintext:{valType:"enumerated",values:["inside","outside","both","none"],dflt:"both",editType:"calc"},cliponaxis:jb({},lc.cliponaxis,{}),orientation:{valType:"enumerated",values:["v","h"],editType:"calc+clearAxisTypes"},base:{valType:"any",dflt:null,arrayOk:!0,editType:"calc"},offset:{valType:"number",dflt:null,arrayOk:!0,editType:"calc"},width:{valType:"number",dflt:null,min:0,arrayOk:!0,editType:"calc"},marker:P7t,offsetgroup:lc.offsetgroup,alignmentgroup:lc.alignmentgroup,selected:{marker:{opacity:lc.selected.marker.opacity,color:lc.selected.marker.color,editType:"style"},textfont:lc.selected.textfont,editType:"style"},unselected:{marker:{opacity:lc.unselected.marker.opacity,color:lc.unselected.marker.color,editType:"style"},textfont:lc.unselected.textfont,editType:"style"},zorder:lc.zorder}});var L8=K((mHr,O5e)=>{"use strict";O5e.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"}}});var P8=K((yHr,U5e)=>{"use strict";var z7t=ko(),N5e=Zh().hasColorscale,V5e=gh(),I7t=Mt().coercePattern;U5e.exports=function(t,r,i,n,a){var o=i("marker.color",n),s=N5e(t,"marker");s&&V5e(t,r,a,i,{prefix:"marker.",cLetter:"c"}),i("marker.line.color",z7t.defaultLine),N5e(t,"marker.line")&&V5e(t,r,a,i,{prefix:"marker.line.",cLetter:"c"}),i("marker.line.width"),i("marker.opacity"),I7t(i,"marker.pattern",o,s),i("selected.marker.color"),i("unselected.marker.color")}});var up=K((gHr,Y5e)=>{"use strict";var G5e=Gs(),xA=Mt(),H5e=ko(),R7t=Ho(),B7t=Pb(),q7t=Xv(),O7t=P8(),N7t=zb(),j5e=um(),z8=xA.coerceFont;function V7t(e,t,r,i){function n(u,f){return xA.coerce(e,t,j5e,u,f)}var a=B7t(e,t,i,n);if(!a){t.visible=!1;return}q7t(e,t,i,n),n("xhoverformat"),n("yhoverformat"),n("zorder"),n("orientation",t.x&&!t.y?"h":"v"),n("base"),n("offset"),n("width"),n("text"),n("hovertext"),n("hovertemplate"),n("hovertemplatefallback");var o=n("textposition");$5e(e,t,i,n,o,{moduleHasSelected:!0,moduleHasUnselected:!0,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),O7t(e,t,n,r,i);var s=(t.marker.line||{}).color,l=R7t.getComponentMethod("errorbars","supplyDefaults");l(e,t,s||H5e.defaultLine,{axis:"y"}),l(e,t,s||H5e.defaultLine,{axis:"x",inherit:"y"}),xA.coerceSelectionMarkerOpacity(t,n)}function U7t(e,t){var r,i;function n(s,l){return xA.coerce(i._input,i,j5e,s,l)}for(var a=0;a=0)return e}else if(typeof e=="string"&&(e=e.trim(),e.slice(-1)==="%"&&G5e(e.slice(0,-1))&&(e=+e.slice(0,-1),e>=0)))return e+"%"}function $5e(e,t,r,i,n,a){a=a||{};var o=a.moduleHasSelected!==!1,s=a.moduleHasUnselected!==!1,l=a.moduleHasConstrain!==!1,u=a.moduleHasCliponaxis!==!1,f=a.moduleHasTextangle!==!1,c=a.moduleHasInsideanchor!==!1,h=!!a.hasPathbar,d=Array.isArray(n)||n==="auto",p=d||n==="inside",v=d||n==="outside";if(p||v){var y=z8(i,"textfont",r.font),m=xA.extendFlat({},y),w=e.textfont&&e.textfont.color,_=!w;if(_&&delete m.color,z8(i,"insidetextfont",m),h){var b=xA.extendFlat({},y);_&&delete b.color,z8(i,"pathbar.textfont",b)}v&&z8(i,"outsidetextfont",y),o&&i("selected.textfont.color"),s&&i("unselected.textfont.color"),l&&i("constraintext"),u&&i("cliponaxis"),f&&i("textangle"),i("texttemplate"),i("texttemplatefallback")}p&&c&&i("insidetextanchor")}Y5e.exports={supplyDefaults:V7t,crossTraceDefaults:U7t,handleText:$5e,validateCornerradius:W5e}});var H$=K((xHr,X5e)=>{"use strict";var G7t=Ho(),H7t=Cs(),j7t=Mt(),W7t=L8(),$7t=up().validateCornerradius;X5e.exports=function(e,t,r){function i(v,y){return j7t.coerce(e,t,W7t,v,y)}for(var n=!1,a=!1,o=!1,s={},l=i("barmode"),u=l==="group",f=0;f0&&!s[h]&&(o=!0),s[h]=!0),c.visible&&c.type==="histogram"){var d=H7t.getFromId({_fullLayout:t},c[c.orientation==="v"?"xaxis":"yaxis"]);d.type!=="category"&&(a=!0)}}if(!n){delete t.barmode;return}l!=="overlay"&&i("barnorm"),i("bargap",a&&!o?0:.2),i("bargroupgap");var p=i("barcornerradius");t.barcornerradius=$7t(p)}});var WM=K((bHr,Z5e)=>{"use strict";var bA=Mt();Z5e.exports=function(t,r){for(var i=0;i{"use strict";var K5e=Cs(),J5e=Jv(),Q5e=Zh().hasColorscale,eTe=A0(),Y7t=WM(),X7t=np();tTe.exports=function(t,r){var i=K5e.getFromId(t,r.xaxis||"x"),n=K5e.getFromId(t,r.yaxis||"y"),a,o,s,l,u,f,c={msUTC:!!(r.base||r.base===0)};r.orientation==="h"?(a=i.makeCalcdata(r,"x",c),s=n.makeCalcdata(r,"y"),l=J5e(r,n,"y",s),u=!!r.yperiodalignment,f="y"):(a=n.makeCalcdata(r,"y",c),s=i.makeCalcdata(r,"x"),l=J5e(r,i,"x",s),u=!!r.xperiodalignment,f="x"),o=l.vals;for(var h=Math.min(o.length,a.length),d=new Array(h),p=0;p{"use strict";var Z7t=No(),K7t=Mt();function J7t(e,t,r){var i=e._fullLayout,n=i["_"+r+"Text_minsize"];if(n){var a=i.uniformtext.mode==="hide",o;switch(r){case"funnelarea":case"pie":case"sunburst":o="g.slice";break;case"treemap":case"icicle":o="g.slice, g.pathbar";break;default:o="g.points > g.point"}t.selectAll(o).each(function(s){var l=s.transform;if(l){l.scale=a&&l.hide?0:n/l.fontSize;var u=Z7t.select(this).select("text");K7t.setTransormAndDisplay(u,l)}})}}function Q7t(e,t,r){if(r.uniformtext.mode){var i=iTe(e),n=r.uniformtext.minsize,a=t.scale*t.fontSize;t.hide=a{"use strict";var tqt=ko(),rqt=Gs(),aTe=Mt().isArrayOrTypedArray;Wb.coerceString=function(e,t,r){if(typeof t=="string"){if(t||!e.noBlank)return t}else if((typeof t=="number"||t===!0)&&!e.strict)return String(t);return r!==void 0?r:e.dflt};Wb.coerceNumber=function(e,t,r){if(rqt(t)){t=+t;var i=e.min,n=e.max,a=i!==void 0&&tn;if(!a)return t}return r!==void 0?r:e.dflt};Wb.coerceColor=function(e,t,r){return tqt.isValid(t)?t:r!==void 0?r:e.dflt};Wb.coerceEnumerated=function(e,t,r){return e.coerceNumber&&(t=+t),e.values.indexOf(t)!==-1?t:r!==void 0?r:e.dflt};Wb.getValue=function(e,t){var r;return aTe(e)?t{"use strict";var $M=No(),iqt=ko(),YM=Bs(),oTe=Mt(),sTe=Ho(),lTe=S0().resizeText,j$=um(),nqt=j$.textfont,aqt=j$.insidetextfont,oqt=j$.outsidetextfont,e0=I8();function sqt(e){var t=$M.select(e).selectAll('g[class^="barlayer"]').selectAll("g.trace");lTe(e,t,"bar");var r=t.size(),i=e._fullLayout;t.style("opacity",function(n){return n[0].trace.opacity}).each(function(n){(i.barmode==="stack"&&r>1||i.bargap===0&&i.bargroupgap===0&&!n[0].trace.marker.line.width)&&$M.select(this).attr("shape-rendering","crispEdges")}),t.selectAll("g.points").each(function(n){var a=$M.select(this),o=n[0].trace;uTe(a,o,e)}),sTe.getComponentMethod("errorbars","style")(t)}function uTe(e,t,r){YM.pointStyle(e.selectAll("path"),t,r),fTe(e,t,r)}function fTe(e,t,r){e.selectAll("text").each(function(i){var n=$M.select(this),a=oTe.ensureUniformFontSize(r,cTe(n,i,t,r));YM.font(n,a)})}function lqt(e,t,r){var i=t[0].trace;i.selectedpoints?uqt(r,i,e):(uTe(r,i,e),sTe.getComponentMethod("errorbars","style")(r))}function uqt(e,t,r){YM.selectedPointStyle(e.selectAll("path"),t),fqt(e.selectAll("text"),t,r)}function fqt(e,t,r){e.each(function(i){var n=$M.select(this),a;if(i.selected){a=oTe.ensureUniformFontSize(r,cTe(n,i,t,r));var o=t.selected.textfont&&t.selected.textfont.color;o&&(a.color=o),YM.font(n,a)}else YM.selectedTextStyle(n,t)})}function cTe(e,t,r,i){var n=i._fullLayout.font,a=r.textfont;if(e.classed("bartext-inside")){var o=vTe(t,r);a=dTe(r,t.i,n,o)}else e.classed("bartext-outside")&&(a=pTe(r,t.i,n));return a}function hTe(e,t,r){return W$(nqt,e.textfont,t,r)}function dTe(e,t,r,i){var n=hTe(e,t,r),a=e._input.textfont===void 0||e._input.textfont.color===void 0||Array.isArray(e.textfont.color)&&e.textfont.color[t]===void 0;return a&&(n={color:iqt.contrast(i),family:n.family,size:n.size,weight:n.weight,style:n.style,variant:n.variant,textcase:n.textcase,lineposition:n.lineposition,shadow:n.shadow}),W$(aqt,e.insidetextfont,t,n)}function pTe(e,t,r){var i=hTe(e,t,r);return W$(oqt,e.outsidetextfont,t,i)}function W$(e,t,r,i){t=t||{};var n=e0.getValue(t.family,r),a=e0.getValue(t.size,r),o=e0.getValue(t.color,r),s=e0.getValue(t.weight,r),l=e0.getValue(t.style,r),u=e0.getValue(t.variant,r),f=e0.getValue(t.textcase,r),c=e0.getValue(t.lineposition,r),h=e0.getValue(t.shadow,r);return{family:e0.coerceString(e.family,n,i.family),size:e0.coerceNumber(e.size,a,i.size),color:e0.coerceColor(e.color,o,i.color),weight:e0.coerceString(e.weight,s,i.weight),style:e0.coerceString(e.style,l,i.style),variant:e0.coerceString(e.variant,u,i.variant),textcase:e0.coerceString(e.variant,f,i.textcase),lineposition:e0.coerceString(e.variant,c,i.lineposition),shadow:e0.coerceString(e.variant,h,i.shadow)}}function vTe(e,t){return t.type==="waterfall"?t[e.dir].marker.color:e.mcc||e.mc||t.marker.color}mTe.exports={style:sqt,styleTextPoints:fTe,styleOnSelect:lqt,getInsideTextFont:dTe,getOutsideTextFont:pTe,getBarColor:vTe,resizeText:lTe}});var Yb=K((MHr,TTe)=>{"use strict";var R8=No(),B8=Gs(),zh=Mt(),cqt=zu(),hqt=ko(),s2=Bs(),dqt=Ho(),q8=Cs().tickText,yTe=S0(),pqt=yTe.recordMinTextSize,vqt=yTe.clearMinTextSize,$$=ev(),_A=I8(),mqt=(Qg(),ar(Jg)),gTe=um(),yqt=gTe.text,gqt=gTe.textposition,xqt=od().appendArrayPointValue,W0=mqt.TEXTPAD;function bqt(e){return e.id}function _qt(e){if(e.ids)return bqt}function Y$(e){return(e>0)-(e<0)}function s1(e,t){return e0}function Aqt(e,t,r,i,n,a){var o=t.xaxis,s=t.yaxis,l=e._fullLayout,u=e._context.staticPlot;n||(n={mode:l.barmode,norm:l.barmode,gap:l.bargap,groupgap:l.bargroupgap},vqt("bar",l));var f=zh.makeTraceGroups(i,r,"trace bars").each(function(c){var h=R8.select(this),d=c[0].trace,p=c[0].t,v=d.type==="waterfall",y=d.type==="funnel",m=d.type==="histogram",w=d.type==="bar",_=w||y,b=0;v&&d.connector.visible&&d.connector.mode==="between"&&(b=d.connector.line.width/2);var M=d.orientation==="h",x=bTe(n),A=zh.ensureSingle(h,"g","points"),T=_qt(d),g=A.selectAll("g.point").data(zh.identity,T);g.enter().append("g").classed("point",!0),g.exit().remove(),g.each(function(S,C){var k=R8.select(this),D=wqt(S,o,s,M),L=D[0][0],P=D[0][1],I=D[1][0],F=D[1][1],z=(M?P-L:F-I)===0;z&&_&&_A.getLineWidth(d,S)&&(z=!1),z||(z=!B8(L)||!B8(P)||!B8(I)||!B8(F)),S.isBlank=z,z&&(M?P=L:F=I),b&&!z&&(M?(L-=s1(L,P)*b,P+=s1(L,P)*b):(I-=s1(I,F)*b,F+=s1(I,F)*b));var B,O;if(d.type==="waterfall"){if(!z){var W=d[S.dir].marker;B=W.line.width,O=W.color}}else B=_A.getLineWidth(d,S),O=S.mc||d.marker.color;function X(U){var se=R8.round(B/2%1,2);return n.gap===0&&n.groupgap===0?R8.round(Math.round(U)-se,2):U}function Z(U,se,Ae){return Ae&&U===se?U:Math.abs(U-se)>=2?X(U):U>se?Math.ceil(U):Math.floor(U)}var j=hqt.opacity(O),q=j<1||B>.01?X:Z;e._context.staticPlot||(L=q(L,P,M),P=q(P,L,M),I=q(I,F,!M),F=q(F,I,!M));var Q=M?o.c2p:s.c2p,N;S.s0>0?N=S._sMax:S.s0<0?N=S._sMin:N=S.s1>0?S._sMax:S._sMin;function V(U,se){if(!U)return 0;var Ae=Math.abs(M?F-I:P-L),be=Math.abs(M?P-L:F-I),me=q(Math.abs(Q(N,!0)-Q(0,!0))),ue=S.hasB?Math.min(Ae/2,be/2):Math.min(Ae/2,me),pe;if(se==="%"){var ce=Math.min(50,U);pe=Ae*(ce/100)}else pe=U;return q(Math.max(Math.min(pe,ue),0))}var J=w||m?V(p.cornerradiusvalue,p.cornerradiusform):0,H,$,te="M"+L+","+I+"V"+F+"H"+P+"V"+I+"Z",ie=0;if(J&&S.s){var de=Y$(S.s0)===0||Y$(S.s)===Y$(S.s0)?S.s1:S.s0;if(ie=q(S.hasB?0:Math.abs(Q(N,!0)-Q(de,!0))),ie0?Math.sqrt(ie*(2*J-ie)):0,Ee=ge>0?Math.max:Math.min;H="M"+L+","+I+"V"+(F-le*Ie)+"H"+Ee(P-(J-ie)*ge,L)+"A "+J+","+J+" 0 0 "+Ce+" "+P+","+(F-J*Ie-re)+"V"+(I+J*Ie+re)+"A "+J+","+J+" 0 0 "+Ce+" "+Ee(P-(J-ie)*ge,L)+","+(I+le*Ie)+"Z"}else if(S.hasB)H="M"+(L+J*ge)+","+I+"A "+J+","+J+" 0 0 "+Ce+" "+L+","+(I+J*Ie)+"V"+(F-J*Ie)+"A "+J+","+J+" 0 0 "+Ce+" "+(L+J*ge)+","+F+"H"+(P-J*ge)+"A "+J+","+J+" 0 0 "+Ce+" "+P+","+(F-J*Ie)+"V"+(I+J*Ie)+"A "+J+","+J+" 0 0 "+Ce+" "+(P-J*ge)+","+I+"Z";else{$=Math.abs(F-I)+ie;var we=$0?Math.sqrt(ie*(2*J-ie)):0,Y=Ie>0?Math.max:Math.min;H="M"+(L+we*ge)+","+I+"V"+Y(F-(J-ie)*Ie,I)+"A "+J+","+J+" 0 0 "+Ce+" "+(L+J*ge-oe)+","+F+"H"+(P-J*ge+oe)+"A "+J+","+J+" 0 0 "+Ce+" "+(P-we*ge)+","+Y(F-(J-ie)*Ie,I)+"V"+I+"Z"}}else H=te}else H=te;var ne=xTe(zh.ensureSingle(k,"path"),l,n,a);if(ne.style("vector-effect",u?"none":"non-scaling-stroke").attr("d",isNaN((P-L)*(F-I))||z&&e._context.staticPlot?"M0,0Z":H).call(s2.setClipUrl,t.layerClipId,e),!l.uniformtext.mode&&x){var ye=s2.makePointStyleFns(d);s2.singlePointStyle(S,ne,d,ye,e)}Tqt(e,t,k,c,C,L,P,I,F,J,ie,n,a),t.layerClipId&&s2.hideOutsideRangePoint(S,k.select("text"),o,s,d.xcalendar,d.ycalendar)});var E=d.cliponaxis===!1;s2.setClipUrl(h,E?null:t.layerClipId,e)});dqt.getComponentMethod("errorbars","plot")(e,f,t,n)}function Tqt(e,t,r,i,n,a,o,s,l,u,f,c,h){var d=t.xaxis,p=t.yaxis,v=e._fullLayout,y;function m(te,ie,de){var ge=zh.ensureSingle(te,"text").text(ie).attr({class:"bartext bartext-"+y,"text-anchor":"middle","data-notex":1}).call(s2.font,de).call(cqt.convertToTspans,e);return ge}var w=i[0].trace,_=w.orientation==="h",b=Cqt(i,_,d,p),M=Eqt(v,i,n,d,p);y=kqt(w,n);var x=c.mode==="stack"||c.mode==="relative",A=i[n],T=!x||A._outmost,g=A.hasB,E=u&&u-f>W0;if(!M||y==="none"||(A.isBlank||a===o||s===l)&&(y==="auto"||y==="inside")){r.select("text").remove();return}var S=v.font,C=$$.getBarColor(i[n],w),k=$$.getInsideTextFont(w,n,S,C),D=$$.getOutsideTextFont(w,n,S),L=w.insidetextanchor||"end",P=r.datum();_?d.type==="log"&&P.s0<=0&&(d.range[0]0&&Z>0,Q;E?g?Q=$b(z-2*u,B,X,Z,_)||$b(z,B-2*u,X,Z,_):_?Q=$b(z-(u-f),B,X,Z,_)||$b(z,B-2*(u-f),X,Z,_):Q=$b(z,B-(u-f),X,Z,_)||$b(z-2*(u-f),B,X,Z,_):Q=$b(z,B,X,Z,_),q&&Q?y="inside":(y="outside",O.remove(),O=null)}else y="inside";if(!O){j=zh.ensureUniformFontSize(e,y==="outside"?D:k),O=m(r,M,j);var N=O.attr("transform");if(O.attr("transform",""),W=s2.bBox(O.node()),X=W.width,Z=W.height,O.attr("transform",N),X<=0||Z<=0){O.remove();return}}var V=w.textangle,J,H;y==="outside"?(H=w.constraintext==="both"||w.constraintext==="outside",J=Sqt(a,o,s,l,W,{isHorizontal:_,constrained:H,angle:V,zeroBarDir:b})):(H=w.constraintext==="both"||w.constraintext==="inside",J=ATe(a,o,s,l,W,{isHorizontal:_,constrained:H,angle:V,anchor:L,hasB:g,r:u,overhead:f})),J.fontSize=j.size,pqt(w.type==="histogram"?"bar":w.type,J,v),A.transform=J;var $=xTe(O,v,c,h);zh.setTransormAndDisplay($,J)}function $b(e,t,r,i,n){if(e<0||t<0)return!1;var a=r<=e&&i<=t,o=r<=t&&i<=e,s=n?e>=r*(t/i):t>=i*(e/r);return a||o||s}function _Te(e){return e==="auto"?0:e}function wTe(e,t){var r=Math.PI/180*t,i=Math.abs(Math.sin(r)),n=Math.abs(Math.cos(r));return{x:e.width*n+e.height*i,y:e.width*i+e.height*n}}function ATe(e,t,r,i,n,a){var o=!!a.isHorizontal,s=!!a.constrained,l=a.angle||0,u=a.anchor,f=u==="end",c=u==="start",h=a.leftToRight||0,d=(h+1)/2,p=1-d,v=a.hasB,y=a.r,m=a.overhead,w=n.width,_=n.height,b=Math.abs(t-e),M=Math.abs(i-r),x=b>2*W0&&M>2*W0?W0:0;b-=2*x,M-=2*x;var A=_Te(l);l==="auto"&&!(w<=b&&_<=M)&&(w>b||_>M)&&(!(w>M||_>b)||w<_!=bW0){var S=Mqt(e,t,r,i,T,y,m,o,v);g=S.scale,E=S.pad}else g=1,s&&(g=Math.min(1,b/T.x,M/T.y)),E=0;var C=n.left*p+n.right*d,k=(n.top+n.bottom)/2,D=(e+W0)*p+(t-W0)*d,L=(r+i)/2,P=0,I=0;if(c||f){var F=(o?T.x:T.y)/2;y&&(f||v)&&(x+=E);var z=o?s1(e,t):s1(r,i);o?c?(D=e+z*x,P=-z*F):(D=t-z*x,P=z*F):c?(L=r+z*x,I=-z*F):(L=i-z*x,I=z*F)}return{textX:C,textY:k,targetX:D,targetY:L,anchorX:P,anchorY:I,scale:g,rotate:A}}function Mqt(e,t,r,i,n,a,o,s,l){var u=Math.max(0,Math.abs(t-e)-2*W0),f=Math.max(0,Math.abs(i-r)-2*W0),c=a-W0,h=o?c-Math.sqrt(c*c-(c-o)*(c-o)):c,d=l?c*2:s?c-o:2*h,p=l?c*2:s?2*h:c-o,v,y,m,w,_;return n.y/n.x>=f/(u-d)?w=f/n.y:n.y/n.x<=(f-p)/u?w=u/n.x:!l&&s?(v=n.x*n.x+n.y*n.y/4,y=-2*n.x*(u-c)-n.y*(f/2-c),m=(u-c)*(u-c)+(f/2-c)*(f/2-c)-c*c,w=(-y+Math.sqrt(y*y-4*v*m))/(2*v)):l?(v=(n.x*n.x+n.y*n.y)/4,y=-n.x*(u/2-c)-n.y*(f/2-c),m=(u/2-c)*(u/2-c)+(f/2-c)*(f/2-c)-c*c,w=(-y+Math.sqrt(y*y-4*v*m))/(2*v)):(v=n.x*n.x/4+n.y*n.y,y=-n.x*(u/2-c)-2*n.y*(f-c),m=(u/2-c)*(u/2-c)+(f-c)*(f-c)-c*c,w=(-y+Math.sqrt(y*y-4*v*m))/(2*v)),w=Math.min(1,w),s?_=Math.max(0,c-Math.sqrt(Math.max(0,c*c-(c-(f-n.y*w)/2)*(c-(f-n.y*w)/2)))-o):_=Math.max(0,c-Math.sqrt(Math.max(0,c*c-(c-(u-n.x*w)/2)*(c-(u-n.x*w)/2)))-o),{scale:w,pad:_}}function Sqt(e,t,r,i,n,a){var o=!!a.isHorizontal,s=!!a.constrained,l=a.angle||0,u=n.width,f=n.height,c=Math.abs(t-e),h=Math.abs(i-r),d;o?d=h>2*W0?W0:0:d=c>2*W0?W0:0;var p=1;s&&(p=o?Math.min(1,h/f):Math.min(1,c/u));var v=_Te(l),y=wTe(n,v),m=(o?y.x:y.y)/2,w=(n.left+n.right)/2,_=(n.top+n.bottom)/2,b=(e+t)/2,M=(r+i)/2,x=0,A=0,T;return(o?e===t:r===i)&&a.zeroBarDir?T=a.zeroBarDir:T=o?s1(t,e):s1(r,i),o?(b=t-T*d,x=T*m):(M=i+T*d,A=-T*m),{textX:w,textY:_,targetX:b,targetY:M,anchorX:x,anchorY:A,scale:p,rotate:v}}function Eqt(e,t,r,i,n){var a=t[0].trace,o=a.texttemplate,s;return o?s=Dqt(e,t,r,i,n):a.textinfo?s=Fqt(t,r,i,n):s=_A.getValue(a.text,r),_A.coerceString(yqt,s)}function kqt(e,t){var r=_A.getValue(e.textposition,t);return _A.coerceEnumerated(gqt,r)}function Cqt(e,t,r,i){for(var n=!1,a=!1,o=0;o0?n=!0:s<0&&(a=!0),n&&a)return 0}var l=t?r:i,u=-s1(l.range[0],l.range[1]);return a?n?0:-u:u}function Dqt(e,t,r,i,n){var a=t[0].trace,o=zh.castOption(a,r,"texttemplate");if(!o)return"";var s=a.type==="histogram",l=a.type==="waterfall",u=a.type==="funnel",f=a.orientation==="h",c,h,d,p;f?(c="y",h=n,d="x",p=i):(c="x",h=i,d="y",p=n);function v(x){return q8(h,h.c2l(x),!0).text}function y(x){return q8(p,p.c2l(x),!0).text}var m=t[r],w={};w.label=m.p,w.labelLabel=w[c+"Label"]=v(m.p);var _=zh.castOption(a,m.i,"text");(_===0||_)&&(w.text=_),w.value=m.s,w.valueLabel=w[d+"Label"]=y(m.s);var b={};xqt(b,a,m.i),(s||b.x===void 0)&&(b.x=f?w.value:w.label),(s||b.y===void 0)&&(b.y=f?w.label:w.value),(s||b.xLabel===void 0)&&(b.xLabel=f?w.valueLabel:w.labelLabel),(s||b.yLabel===void 0)&&(b.yLabel=f?w.labelLabel:w.valueLabel),l&&(w.delta=+m.rawS||m.s,w.deltaLabel=y(w.delta),w.final=m.v,w.finalLabel=y(w.final),w.initial=w.final-w.delta,w.initialLabel=y(w.initial)),u&&(w.value=m.s,w.valueLabel=y(w.value),w.percentInitial=m.begR,w.percentInitialLabel=zh.formatPercent(m.begR),w.percentPrevious=m.difR,w.percentPreviousLabel=zh.formatPercent(m.difR),w.percentTotal=m.sumR,w.percenTotalLabel=zh.formatPercent(m.sumR));var M=zh.castOption(a,m.i,"customdata");return M&&(w.customdata=M),zh.texttemplateString({data:[b,w,a._meta],fallback:a.texttemplatefallback,labels:w,locale:e._d3locale,template:o})}function Fqt(e,t,r,i){var n=e[0].trace,a=n.orientation==="h",o=n.type==="waterfall",s=n.type==="funnel";function l(M){var x=a?i:r;return q8(x,M,!0).text}function u(M){var x=a?r:i;return q8(x,+M,!0).text}var f=n.textinfo,c=e[t],h=f.split("+"),d=[],p,v=function(M){return h.indexOf(M)!==-1};if(v("label")&&d.push(l(e[t].p)),v("text")&&(p=zh.castOption(n,c.i,"text"),(p===0||p)&&d.push(p)),o){var y=+c.rawS||c.s,m=c.v,w=m-y;v("initial")&&d.push(u(w)),v("delta")&&d.push(u(y)),v("final")&&d.push(u(m))}if(s){v("value")&&d.push(u(c.s));var _=0;v("percent initial")&&_++,v("percent previous")&&_++,v("percent total")&&_++;var b=_>1;v("percent initial")&&(p=zh.formatPercent(c.begR),b&&(p+=" of initial"),d.push(p)),v("percent previous")&&(p=zh.formatPercent(c.difR),b&&(p+=" of previous"),d.push(p)),v("percent total")&&(p=zh.formatPercent(c.sumR),b&&(p+=" of total"),d.push(p))}return d.join("
")}TTe.exports={plot:Aqt,toMoveInsideBar:ATe}});var wA=K((SHr,kTe)=>{"use strict";var XM=Uf(),Lqt=Ho(),MTe=ko(),Pqt=Mt().fillText,zqt=I8().getLineWidth,X$=Cs().hoverLabelText,Iqt=(Il(),ar(Bl)).BADNUM;function Rqt(e,t,r,i,n){var a=STe(e,t,r,i,n);if(a){var o=a.cd,s=o[0].trace,l=o[a.index];return a.color=ETe(s,l),Lqt.getComponentMethod("errorbars","hoverInfo")(l,s,a),[a]}}function STe(e,t,r,i,n){var a=e.cd,o=a[0].trace,s=a[0].t,l=i==="closest",u=o.type==="waterfall",f=e.maxHoverDistance,c=e.maxSpikeDistance,h,d,p,v,y,m,w;o.orientation==="h"?(h=r,d=t,p="y",v="x",y=L,m=C):(h=t,d=r,p="x",v="y",m=L,y=C);var _=o[p+"period"],b=l||_;function M(q){return A(q,-1)}function x(q){return A(q,1)}function A(q,Q){var N=q.w;return q[p]+Q*N/2}function T(q){return q[p+"End"]-q[p+"Start"]}var g=l?M:_?function(q){return q.p-T(q)/2}:function(q){return Math.min(M(q),q.p-s.bardelta/2)},E=l?x:_?function(q){return q.p+T(q)/2}:function(q){return Math.max(x(q),q.p+s.bardelta/2)};function S(q,Q,N){return n.finiteRange&&(N=0),XM.inbox(q-h,Q-h,N+Math.min(1,Math.abs(Q-q)/w)-1)}function C(q){return S(g(q),E(q),f)}function k(q){return S(M(q),x(q),c)}function D(q){var Q=q[v];if(u){var N=Math.abs(q.rawS)||0;d>0?Q+=N:d<0&&(Q-=N)}return Q}function L(q){var Q=d,N=q.b,V=D(q);return XM.inbox(N-Q,V-Q,f+(V-Q)/(V-N)-1)}function P(q){var Q=d,N=q.b,V=D(q);return XM.inbox(N-Q,V-Q,c+(V-Q)/(V-N)-1)}var I=e[p+"a"],F=e[v+"a"];w=Math.abs(I.r2c(I.range[1])-I.r2c(I.range[0]));function z(q){return(y(q)+m(q))/2}var B=XM.getDistanceFunction(i,y,m,z);if(XM.getClosest(a,B,e),e.index!==!1&&a[e.index].p!==Iqt){b||(g=function(q){return Math.min(M(q),q.p-s.bargroupwidth/2)},E=function(q){return Math.max(x(q),q.p+s.bargroupwidth/2)});var O=e.index,W=a[O],X=o.base?W.b+W.s:W.s;e[v+"0"]=e[v+"1"]=F.c2p(W[v],!0),e[v+"LabelVal"]=X;var Z=s.extents[s.extents.round(W.p)];e[p+"0"]=I.c2p(l?g(W):Z[0],!0),e[p+"1"]=I.c2p(l?E(W):Z[1],!0);var j=W.orig_p!==void 0;return e[p+"LabelVal"]=j?W.orig_p:W.p,e.labelLabel=X$(I,e[p+"LabelVal"],o[p+"hoverformat"]),e.valueLabel=X$(F,e[v+"LabelVal"],o[v+"hoverformat"]),e.baseLabel=X$(F,W.b,o[v+"hoverformat"]),e.spikeDistance=(P(W)+k(W))/2,e[p+"Spike"]=I.c2p(W.p,!0),Pqt(W,o,e),e.hovertemplate=o.hovertemplate,e}}function ETe(e,t){var r=t.mcc||e.marker.color,i=t.mlcc||e.marker.line.color,n=zqt(e,t);if(MTe.opacity(r))return r;if(MTe.opacity(i)&&n)return i}kTe.exports={hoverPoints:Rqt,hoverOnBars:STe,getTraceColor:ETe}});var DTe=K((EHr,CTe)=>{"use strict";CTe.exports=function(t,r,i){return t.x="xVal"in r?r.xVal:r.x,t.y="yVal"in r?r.yVal:r.y,r.xa&&(t.xaxis=r.xa),r.ya&&(t.yaxis=r.ya),i.orientation==="h"?(t.label=t.y,t.value=t.x):(t.label=t.x,t.value=t.y),t}});var AA=K((kHr,FTe)=>{"use strict";FTe.exports=function(t,r){var i=t.cd,n=t.xaxis,a=t.yaxis,o=i[0].trace,s=o.type==="funnel",l=o.orientation==="h",u=[],f;if(r===!1)for(f=0;f{"use strict";LTe.exports={attributes:um(),layoutAttributes:L8(),supplyDefaults:up().supplyDefaults,crossTraceDefaults:up().crossTraceDefaults,supplyLayoutDefaults:H$(),calc:rTe(),crossTraceCalc:Ib().crossTraceCalc,colorbar:Qh(),arraysToCalcdata:WM(),plot:Yb().plot,style:ev().style,styleOnSelect:ev().styleOnSelect,hoverPoints:wA().hoverPoints,eventData:DTe(),selectPoints:AA(),moduleType:"trace",name:"bar",basePlotModule:vc(),categories:["bar-like","cartesian","svg","bar","oriented","errorBarsOK","showLegend","zoomScale"],animatable:!0,meta:{}}});var ITe=K((DHr,zTe)=>{"use strict";zTe.exports=PTe()});var ZM=K((FHr,OTe)=>{"use strict";var qqt=im(),tv=Zf(),RTe=um(),Oqt=Nc(),BTe=zf().axisHoverFormat,{hovertemplateAttrs:Nqt,templatefallbackAttrs:Vqt}=yu(),gy=Os().extendFlat,TA=tv.marker,qTe=TA.line;OTe.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:tv.xperiod,yperiod:tv.yperiod,xperiod0:tv.xperiod0,yperiod0:tv.yperiod0,xperiodalignment:tv.xperiodalignment,yperiodalignment:tv.yperiodalignment,xhoverformat:BTe("x"),yhoverformat:BTe("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:gy({},TA.symbol,{arrayOk:!1,editType:"plot"}),opacity:gy({},TA.opacity,{arrayOk:!1,dflt:1,editType:"style"}),angle:gy({},TA.angle,{arrayOk:!1,editType:"calc"}),size:gy({},TA.size,{arrayOk:!1,editType:"calc"}),color:gy({},TA.color,{arrayOk:!1,editType:"style"}),line:{color:gy({},qTe.color,{arrayOk:!1,dflt:Oqt.defaultLine,editType:"style"}),width:gy({},qTe.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:qqt(),whiskerwidth:{valType:"number",min:0,max:1,dflt:.5,editType:"calc"},showwhiskers:{valType:"boolean",editType:"calc"},offsetgroup:RTe.offsetgroup,alignmentgroup:RTe.alignmentgroup,selected:{marker:tv.selected.marker,editType:"style"},unselected:{marker:tv.unselected.marker,editType:"style"},text:gy({},tv.text,{}),hovertext:gy({},tv.hovertext,{}),hovertemplate:Nqt({}),hovertemplatefallback:Vqt(),hoveron:{valType:"flaglist",flags:["boxes","points"],dflt:"boxes+points",editType:"style"},zorder:tv.zorder}});var KM=K((LHr,NTe)=>{"use strict";NTe.exports={boxmode:{valType:"enumerated",values:["group","overlay"],dflt:"overlay",editType:"calc"},boxgap:{valType:"number",min:0,max:1,dflt:.3,editType:"calc"},boxgroupgap:{valType:"number",min:0,max:1,dflt:.3,editType:"calc"}}});var QM=K((PHr,HTe)=>{"use strict";var rv=Mt(),Uqt=Ho(),Gqt=ko(),Hqt=Xv(),jqt=zb(),VTe=Pw(),JM=ZM();function Wqt(e,t,r,i){function n(p,v){return rv.coerce(e,t,JM,p,v)}if(UTe(e,t,n,i),t.visible!==!1){Hqt(e,t,i,n),n("xhoverformat"),n("yhoverformat");var a=t._hasPreCompStats;a&&(n("lowerfence"),n("upperfence")),n("line.color",(e.marker||{}).color||r),n("line.width"),n("fillcolor",Gqt.addOpacity(t.line.color,.5));var o=!1;if(a){var s=n("mean"),l=n("sd");s&&s.length&&(o=!0,l&&l.length&&(o="sd"))}n("whiskerwidth");var u=n("sizemode"),f;u==="quartiles"&&(f=n("boxmean",o)),n("showwhiskers",u==="quartiles"),(u==="sd"||f==="sd")&&n("sdmultiple"),n("width"),n("quartilemethod");var c=!1;if(a){var h=n("notchspan");h&&h.length&&(c=!0)}else rv.validate(e.notchwidth,JM.notchwidth)&&(c=!0);var d=n("notched",c);d&&n("notchwidth"),GTe(e,t,n,{prefix:"box"}),n("zorder")}}function UTe(e,t,r,i){function n(E){var S=0;return E&&E.length&&(S+=1,rv.isArrayOrTypedArray(E[0])&&E[0].length&&(S+=1)),S}function a(E){return rv.validate(e[E],JM[E])}var o=r("y"),s=r("x"),l;if(t.type==="box"){var u=r("q1"),f=r("median"),c=r("q3");t._hasPreCompStats=u&&u.length&&f&&f.length&&c&&c.length,l=Math.min(rv.minRowLength(u),rv.minRowLength(f),rv.minRowLength(c))}else t._hasPreCompStats=!1;var h=n(o),d=n(s),p=h&&rv.minRowLength(o),v=d&&rv.minRowLength(s),y=i.calendar,m={autotypenumbers:i.autotypenumbers},w,_;if(t._hasPreCompStats)switch(String(d)+String(h)){case"00":var b=a("x0")||a("dx"),M=a("y0")||a("dy");M&&!b?w="h":w="v",_=l;break;case"10":w="v",_=Math.min(l,v);break;case"20":w="h",_=Math.min(l,s.length);break;case"01":w="h",_=Math.min(l,p);break;case"02":w="v",_=Math.min(l,o.length);break;case"12":w="v",_=Math.min(l,v,o.length);break;case"21":w="h",_=Math.min(l,s.length,p);break;case"11":_=0;break;case"22":var x=!1,A;for(A=0;A0?(w="v",d>0?_=Math.min(v,p):_=Math.min(p)):d>0?(w="h",_=Math.min(v)):_=0;if(!_){t.visible=!1;return}t._length=_;var T=r("orientation",w);t._hasPreCompStats?T==="v"&&d===0?(r("x0",0),r("dx",1)):T==="h"&&h===0&&(r("y0",0),r("dy",1)):T==="v"&&d===0?r("x0"):T==="h"&&h===0&&r("y0");var g=Uqt.getComponentMethod("calendars","handleTraceDefaults");g(e,t,["x","y"],i)}function GTe(e,t,r,i){var n=i.prefix,a=rv.coerce2(e,t,JM,"marker.outliercolor"),o=r("marker.line.outliercolor"),s="outliers";t._hasPreCompStats?s="all":(a||o)&&(s="suspectedoutliers");var l=r(n+"points",s);l?(r("jitter",l==="all"?.3:0),r("pointpos",l==="all"?-1.5:0),r("marker.symbol"),r("marker.opacity"),r("marker.size"),r("marker.angle"),r("marker.color",t.line.color),r("marker.line.color"),r("marker.line.width"),l==="suspectedoutliers"&&(r("marker.line.outliercolor",t.marker.color),r("marker.line.outlierwidth")),r("selected.marker.color"),r("unselected.marker.color"),r("selected.marker.size"),r("unselected.marker.size"),r("text"),r("hovertext")):delete t.marker;var u=r("hoveron");(u==="all"||u.indexOf("points")!==-1)&&(r("hovertemplate"),r("hovertemplatefallback")),rv.coerceSelectionMarkerOpacity(t,r)}function $qt(e,t){var r,i;function n(l){return rv.coerce(i._input,i,JM,l)}for(var a=0;a{"use strict";var Yqt=Ho(),Xqt=Mt(),Zqt=KM();function jTe(e,t,r,i,n){for(var a=n+"Layout",o=!1,s=0;s{"use strict";var K$=Gs(),N8=Cs(),Jqt=Jv(),Dc=Mt(),fp=(Il(),ar(Bl)).BADNUM,xy=Dc._;t6e.exports=function(t,r){var i=t._fullLayout,n=N8.getFromId(t,r.xaxis||"x"),a=N8.getFromId(t,r.yaxis||"y"),o=[],s=r.type==="violin"?"_numViolins":"_numBoxes",l,u,f,c,h,d,p;r.orientation==="h"?(f=n,c="x",h=a,d="y",p=!!r.yperiodalignment):(f=a,c="y",h=n,d="x",p=!!r.xperiodalignment);var v=Qqt(r,d,h,i[s]),y=v[0],m=v[1],w=Dc.distinctVals(y,h),_=w.vals,b=w.minDiff/2,M,x,A,T,g,E,S=(r.boxpoints||r.points)==="all"?Dc.identity:function(Ce){return Ce.vM.uf};if(r._hasPreCompStats){var C=r[c],k=function(Ce){return f.d2c((r[Ce]||[])[l])},D=1/0,L=-1/0;for(l=0;l=M.q1&&M.q3>=M.med){var I=k("lowerfence");M.lf=I!==fp&&I<=M.q1?I:ZTe(M,A,T);var F=k("upperfence");M.uf=F!==fp&&F>=M.q3?F:KTe(M,A,T);var z=k("mean");M.mean=z!==fp?z:T?Dc.mean(A,T):(M.q1+M.q3)/2;var B=k("sd");M.sd=z!==fp&&B>=0?B:T?Dc.stdev(A,T,M.mean):M.q3-M.q1,M.lo=JTe(M),M.uo=QTe(M);var O=k("notchspan");O=O!==fp&&O>0?O:e6e(M,T),M.ln=M.med-O,M.un=M.med+O;var W=M.lf,X=M.uf;r.boxpoints&&A.length&&(W=Math.min(W,A[0]),X=Math.max(X,A[T-1])),r.notched&&(W=Math.min(W,M.ln),X=Math.max(X,M.un)),M.min=W,M.max=X}else{Dc.warn(["Invalid input - make sure that q1 <= median <= q3","q1 = "+M.q1,"median = "+M.med,"q3 = "+M.q3].join(` -`));var Z;M.med!==fp?Z=M.med:M.q1!==fp?M.q3!==fp?Z=(M.q1+M.q3)/2:Z=M.q1:M.q3!==fp?Z=M.q3:Z=0,M.med=Z,M.q1=M.q3=Z,M.lf=M.uf=Z,M.mean=M.sd=Z,M.ln=M.un=Z,M.min=M.max=Z}D=Math.min(D,M.min),L=Math.max(L,M.max),M.pts2=x.filter(S),o.push(M)}}r._extremes[f._id]=N8.findExtremes(f,[D,L],{padded:!0})}else{var j=f.makeCalcdata(r,c),q=eOt(_,b),Q=_.length,N=tOt(Q);for(l=0;l=0&&V0){if(M={},M.pos=M[d]=_[l],x=M.pts=N[l].sort(YTe),A=M[c]=x.map(XTe),T=A.length,M.min=A[0],M.max=A[T-1],M.mean=Dc.mean(A,T),M.sd=Dc.stdev(A,T,M.mean)*r.sdmultiple,M.med=Dc.interp(A,.5),T%2&&(te||ie)){var de,ge;te?(de=A.slice(0,T/2),ge=A.slice(T/2+1)):ie&&(de=A.slice(0,T/2+1),ge=A.slice(T/2)),M.q1=Dc.interp(de,.5),M.q3=Dc.interp(ge,.5)}else M.q1=Dc.interp(A,.25),M.q3=Dc.interp(A,.75);M.lf=ZTe(M,A,T),M.uf=KTe(M,A,T),M.lo=JTe(M),M.uo=QTe(M);var Ie=e6e(M,T);M.ln=M.med-Ie,M.un=M.med+Ie,J=Math.min(J,M.ln),H=Math.max(H,M.un),M.pts2=x.filter(S),o.push(M)}r.notched&&Dc.isTypedArray(j)&&(j=Array.from(j)),r._extremes[f._id]=N8.findExtremes(f,r.notched?j.concat([J,H]):j,{padded:!0})}return rOt(o,r),o.length>0?(o[0].t={num:i[s],dPos:b,posLetter:d,valLetter:c,labels:{med:xy(t,"median:"),min:xy(t,"min:"),q1:xy(t,"q1:"),q3:xy(t,"q3:"),max:xy(t,"max:"),mean:r.boxmean==="sd"||r.sizemode==="sd"?xy(t,"mean \xB1 \u03C3:").replace("\u03C3",r.sdmultiple===1?"\u03C3":r.sdmultiple+"\u03C3"):xy(t,"mean:"),lf:xy(t,"lower fence:"),uf:xy(t,"upper fence:")}},i[s]++,o):[{t:{empty:!0}}]};function Qqt(e,t,r,i){var n=t in e,a=t+"0"in e,o="d"+t in e;if(n||a&&o){var s=r.makeCalcdata(e,t),l=Jqt(e,r,t,s).vals;return[l,s]}var u;a?u=e[t+"0"]:"name"in e&&(r.type==="category"||K$(e.name)&&["linear","log"].indexOf(r.type)!==-1||Dc.isDateTime(e.name)&&r.type==="date")?u=e.name:u=i;for(var f=r.type==="multicategory"?r.r2c_just_indices(u):r.d2c(u,0,e[t+"calendar"]),c=e._length,h=new Array(c),d=0;d{"use strict";var r6e=Cs(),iOt=Mt(),nOt=Cb().getAxisGroup,i6e=["v","h"];function aOt(e,t){for(var r=e.calcdata,i=t.xaxis,n=t.yaxis,a=0;a1,w=1-a[e+"gap"],_=1-a[e+"groupgap"];for(l=0;l0;if(A==="positive"?(F=T*(x?1:.5),O=B,z=O=E):A==="negative"?(F=O=E,z=T*(x?1:.5),W=B):(F=z=T,O=W=B),N){var V=b.pointpos,J=b.jitter,H=b.marker.size/2,$=0;V+J>=0&&($=B*(V+J),$>F?(Q=!0,j=H,X=$):$>O&&(j=H,X=F)),$<=F&&(X=F);var te=0;V-J<=0&&(te=-B*(V-J),te>z?(Q=!0,q=H,Z=te):te>W&&(q=H,Z=z)),te<=z&&(Z=z)}else X=F,Z=z;var ie=new Array(f.length);for(u=0;u{"use strict";var MA=No(),Xb=Mt(),oOt=Bs(),o6e=5,sOt=.01;function lOt(e,t,r,i){var n=e._context.staticPlot,a=t.xaxis,o=t.yaxis;Xb.makeTraceGroups(i,r,"trace boxes").each(function(s){var l=MA.select(this),u=s[0],f=u.t,c=u.trace;if(f.wdPos=f.bdPos*c.whiskerwidth,c.visible!==!0||f.empty){l.remove();return}var h,d;c.orientation==="h"?(h=o,d=a):(h=a,d=o),s6e(l,{pos:h,val:d},c,f,n),l6e(l,{x:a,y:o},c,f),u6e(l,{pos:h,val:d},c,f)})}function s6e(e,t,r,i,n){var a=r.orientation==="h",o=t.val,s=t.pos,l=!!s.rangebreaks,u=i.bPos,f=i.wdPos||0,c=i.bPosPxOffset||0,h=r.whiskerwidth||0,d=r.showwhiskers!==!1,p=r.notched||!1,v=p?1-2*r.notchwidth:1,y,m;Array.isArray(i.bdPos)?(y=i.bdPos[0],m=i.bdPos[1]):(y=i.bdPos,m=i.bdPos);var w=e.selectAll("path.box").data(r.type!=="violin"||r.box.visible?Xb.identity:[]);w.enter().append("path").style("vector-effect",n?"none":"non-scaling-stroke").attr("class","box"),w.exit().remove(),w.each(function(_){if(_.empty)return MA.select(this).attr("d","M0,0Z");var b=s.c2l(_.pos+u,!0),M=s.l2p(b-y)+c,x=s.l2p(b+m)+c,A=l?(M+x)/2:s.l2p(b)+c,T=r.whiskerwidth,g=l?M*T+(1-T)*A:s.l2p(b-f)+c,E=l?x*T+(1-T)*A:s.l2p(b+f)+c,S=s.l2p(b-y*v)+c,C=s.l2p(b+m*v)+c,k=r.sizemode==="sd",D=o.c2p(k?_.mean-_.sd:_.q1,!0),L=k?o.c2p(_.mean+_.sd,!0):o.c2p(_.q3,!0),P=Xb.constrain(k?o.c2p(_.mean,!0):o.c2p(_.med,!0),Math.min(D,L)+1,Math.max(D,L)-1),I=_.lf===void 0||r.boxpoints===!1||k,F=o.c2p(I?_.min:_.lf,!0),z=o.c2p(I?_.max:_.uf,!0),B=o.c2p(_.ln,!0),O=o.c2p(_.un,!0);a?MA.select(this).attr("d","M"+P+","+S+"V"+C+"M"+D+","+M+"V"+x+(p?"H"+B+"L"+P+","+C+"L"+O+","+x:"")+"H"+L+"V"+M+(p?"H"+O+"L"+P+","+S+"L"+B+","+M:"")+"Z"+(d?"M"+D+","+A+"H"+F+"M"+L+","+A+"H"+z+(h===0?"":"M"+F+","+g+"V"+E+"M"+z+","+g+"V"+E):"")):MA.select(this).attr("d","M"+S+","+P+"H"+C+"M"+M+","+D+"H"+x+(p?"V"+B+"L"+C+","+P+"L"+x+","+O:"")+"V"+L+"H"+M+(p?"V"+O+"L"+S+","+P+"L"+M+","+B:"")+"Z"+(d?"M"+A+","+D+"V"+F+"M"+A+","+L+"V"+z+(h===0?"":"M"+g+","+F+"H"+E+"M"+g+","+z+"H"+E):""))})}function l6e(e,t,r,i){var n=t.x,a=t.y,o=i.bdPos,s=i.bPos,l=r.boxpoints||r.points;Xb.seedPseudoRandom();var u=function(h){return h.forEach(function(d){d.t=i,d.trace=r}),h},f=e.selectAll("g.points").data(l?u:[]);f.enter().append("g").attr("class","points"),f.exit().remove();var c=f.selectAll("path").data(function(h){var d,p=h.pts2,v=Math.max((h.max-h.min)/10,h.q3-h.q1),y=v*1e-9,m=v*sOt,w=[],_=0,b;if(r.jitter){if(v===0)for(_=1,w=new Array(p.length),d=0;dh.lo&&(E.so=!0)}return p});c.enter().append("path").classed("point",!0),c.exit().remove(),c.call(oOt.translatePoints,n,a)}function u6e(e,t,r,i){var n=t.val,a=t.pos,o=!!a.rangebreaks,s=i.bPos,l=i.bPosPxOffset||0,u=r.boxmean||(r.meanline||{}).visible,f,c;Array.isArray(i.bdPos)?(f=i.bdPos[0],c=i.bdPos[1]):(f=i.bdPos,c=i.bdPos);var h=e.selectAll("path.mean").data(r.type==="box"&&r.boxmean||r.type==="violin"&&r.box.visible&&r.meanline.visible?Xb.identity:[]);h.enter().append("path").attr("class","mean").style({fill:"none","vector-effect":"non-scaling-stroke"}),h.exit().remove(),h.each(function(d){var p=a.c2l(d.pos+s,!0),v=a.l2p(p-f)+l,y=a.l2p(p+c)+l,m=o?(v+y)/2:a.l2p(p)+l,w=n.c2p(d.mean,!0),_=n.c2p(d.mean-d.sd,!0),b=n.c2p(d.mean+d.sd,!0);r.orientation==="h"?MA.select(this).attr("d","M"+w+","+v+"V"+y+(u==="sd"?"m0,0L"+_+","+m+"L"+w+","+v+"L"+b+","+m+"Z":"")):MA.select(this).attr("d","M"+v+","+w+"H"+y+(u==="sd"?"m0,0L"+m+","+_+"L"+v+","+w+"L"+m+","+b+"Z":""))})}f6e.exports={plot:lOt,plotBoxAndWhiskers:s6e,plotPoints:l6e,plotBoxMean:u6e}});var G8=K((qHr,c6e)=>{"use strict";var Q$=No(),eY=ko(),tY=Bs();function uOt(e,t,r){var i=r||Q$.select(e).selectAll("g.trace.boxes");i.style("opacity",function(n){return n[0].trace.opacity}),i.each(function(n){var a=Q$.select(this),o=n[0].trace,s=o.line.width;function l(c,h,d,p){c.style("stroke-width",h+"px").call(eY.stroke,d).call(eY.fill,p)}var u=a.selectAll("path.box");if(o.type==="candlestick")u.each(function(c){if(!c.empty){var h=Q$.select(this),d=o[c.dir];l(h,d.line.width,d.line.color,d.fillcolor),h.style("opacity",o.selectedpoints&&!c.selected?.3:1)}});else{l(u,s,o.line.color,o.fillcolor),a.selectAll("path.mean").style({"stroke-width":s,"stroke-dasharray":2*s+"px,"+s+"px"}).call(eY.stroke,o.line.color);var f=a.selectAll("path.point");tY.pointStyle(f,o,e)}})}function fOt(e,t,r){var i=t[0].trace,n=r.selectAll("path.point");i.selectedpoints?tY.selectedPointStyle(n,i):tY.pointStyle(n,i,e)}c6e.exports={style:uOt,styleOnSelect:fOt}});var iY=K((OHr,v6e)=>{"use strict";var cOt=Cs(),rY=Mt(),l2=Uf(),h6e=ko(),hOt=rY.fillText;function dOt(e,t,r,i){var n=e.cd,a=n[0].trace,o=a.hoveron,s=[],l;return o.indexOf("boxes")!==-1&&(s=s.concat(d6e(e,t,r,i))),o.indexOf("points")!==-1&&(l=p6e(e,t,r)),i==="closest"?l?[l]:s:(l&&s.push(l),s)}function d6e(e,t,r,i){var n=e.cd,a=e.xa,o=e.ya,s=n[0].trace,l=n[0].t,u=s.type==="violin",f,c,h,d,p,v,y,m,w,_,b,M=l.bdPos,x,A,T=l.wHover,g=function(H){return h.c2l(H.pos)+l.bPos-h.c2l(v)};u&&s.side!=="both"?(s.side==="positive"&&(w=function(H){var $=g(H);return l2.inbox($,$+T,_)},x=M,A=0),s.side==="negative"&&(w=function(H){var $=g(H);return l2.inbox($-T,$,_)},x=0,A=M)):(w=function(H){var $=g(H);return l2.inbox($-T,$+T,_)},x=A=M);var E;u?E=function(H){return l2.inbox(H.span[0]-p,H.span[1]-p,_)}:E=function(H){return l2.inbox(H.min-p,H.max-p,_)},s.orientation==="h"?(p=t,v=r,y=E,m=w,f="y",h=o,c="x",d=a):(p=r,v=t,y=w,m=E,f="x",h=a,c="y",d=o);var S=Math.min(1,M/Math.abs(h.r2c(h.range[1])-h.r2c(h.range[0])));_=e.maxHoverDistance-S,b=e.maxSpikeDistance-S;function C(H){return(y(H)+m(H))/2}var k=l2.getDistanceFunction(i,y,m,C);if(l2.getClosest(n,k,e),e.index===!1)return[];var D=n[e.index],L=s.line.color,P=(s.marker||{}).color;h6e.opacity(L)&&s.line.width?e.color=L:h6e.opacity(P)&&s.boxpoints?e.color=P:e.color=s.fillcolor,e[f+"0"]=h.c2p(D.pos+l.bPos-A,!0),e[f+"1"]=h.c2p(D.pos+l.bPos+x,!0),e[f+"LabelVal"]=D.orig_p!==void 0?D.orig_p:D.pos;var I=f+"Spike";e.spikeDistance=C(D)*b/_,e[I]=h.c2p(D.pos,!0);var F=s.boxmean||s.sizemode==="sd"||(s.meanline||{}).visible,z=s.boxpoints||s.points,B=z&&F?["max","uf","q3","med","mean","q1","lf","min"]:z&&!F?["max","uf","q3","med","q1","lf","min"]:!z&&F?["max","q3","med","mean","q1","min"]:["max","q3","med","q1","min"],O=d.range[1]{"use strict";m6e.exports=function(t,r){return r.hoverOnBox&&(t.hoverOnBox=r.hoverOnBox),"xVal"in r&&(t.x=r.xVal),"yVal"in r&&(t.y=r.yVal),r.xa&&(t.xaxis=r.xa),r.ya&&(t.yaxis=r.ya),t}});var nY=K((VHr,g6e)=>{"use strict";g6e.exports=function(t,r){var i=t.cd,n=t.xaxis,a=t.yaxis,o=[],s,l;if(r===!1)for(s=0;s{"use strict";x6e.exports={attributes:ZM(),layoutAttributes:KM(),supplyDefaults:QM().supplyDefaults,crossTraceDefaults:QM().crossTraceDefaults,supplyLayoutDefaults:O8().supplyLayoutDefaults,calc:J$(),crossTraceCalc:V8().crossTraceCalc,plot:U8().plot,style:G8().style,styleOnSelect:G8().styleOnSelect,hoverPoints:iY().hoverPoints,eventData:y6e(),selectPoints:nY(),moduleType:"trace",name:"box",basePlotModule:vc(),categories:["cartesian","svg","symbols","oriented","box-violin","showLegend","boxLayout","zoomScale"],meta:{}}});var w6e=K((GHr,_6e)=>{"use strict";_6e.exports=b6e()});var SA=K((HHr,T6e)=>{"use strict";var pOt=Wu(),{extendFlat:Fd}=Os(),vOt=Au(),{axisHoverFormat:aY}=zf(),mOt=lf(),{hovertemplateAttrs:yOt,templatefallbackAttrs:A6e,texttemplateAttrs:gOt}=yu(),cp=Zf();T6e.exports=Fd({z:{valType:"data_array",editType:"calc"},x:Fd({},cp.x,{impliedEdits:{xtype:"array"}}),x0:Fd({},cp.x0,{impliedEdits:{xtype:"scaled"}}),dx:Fd({},cp.dx,{impliedEdits:{xtype:"scaled"}}),y:Fd({},cp.y,{impliedEdits:{ytype:"array"}}),y0:Fd({},cp.y0,{impliedEdits:{ytype:"scaled"}}),dy:Fd({},cp.dy,{impliedEdits:{ytype:"scaled"}}),xperiod:Fd({},cp.xperiod,{impliedEdits:{xtype:"scaled"}}),yperiod:Fd({},cp.yperiod,{impliedEdits:{ytype:"scaled"}}),xperiod0:Fd({},cp.xperiod0,{impliedEdits:{xtype:"scaled"}}),yperiod0:Fd({},cp.yperiod0,{impliedEdits:{ytype:"scaled"}}),xperiodalignment:Fd({},cp.xperiodalignment,{impliedEdits:{xtype:"scaled"}}),yperiodalignment:Fd({},cp.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:aY("x"),yhoverformat:aY("y"),zhoverformat:aY("z",1),hovertemplate:yOt(),hovertemplatefallback:A6e(),texttemplate:gOt({arrayOk:!1,editType:"plot"},{keys:["x","y","z","text"]}),texttemplatefallback:A6e({editType:"plot"}),textfont:mOt({editType:"plot",autoSize:!0,autoColor:!0,colorEditType:"style"}),showlegend:Fd({},vOt.showlegend,{dflt:!1}),zorder:cp.zorder},pOt("",{cLetter:"z",autoColorDflt:!1}))});var j8=K((jHr,S6e)=>{"use strict";var xOt=Gs(),H8=Mt(),bOt=Ho();S6e.exports=function(t,r,i,n,a,o){var s=i("z");a=a||"x",o=o||"y";var l,u;if(s===void 0||!s.length)return 0;if(H8.isArray1D(s)){l=i(a),u=i(o);var f=H8.minRowLength(l),c=H8.minRowLength(u);if(f===0||c===0)return 0;r._length=Math.min(f,c,s.length)}else{if(l=M6e(a,i),u=M6e(o,i),!_Ot(s))return 0;i("transpose"),r._length=null}var h=bOt.getComponentMethod("calendars","handleTraceDefaults");return h(t,r,[a,o],n),!0};function M6e(e,t){var r=t(e),i=r?t(e+"type","array"):"scaled";return i==="scaled"&&(t(e+"0"),t("d"+e)),r}function _Ot(e){for(var t=!0,r=!1,i=!1,n,a=0;a0&&(r=!0);for(var o=0;o{"use strict";var E6e=Mt();k6e.exports=function(t,r){t("texttemplate"),t("texttemplatefallback");var i=E6e.extendFlat({},r.font,{color:"auto",size:"auto"});E6e.coerceFont(t,"textfont",i)}});var oY=K(($Hr,C6e)=>{"use strict";C6e.exports=function(t,r,i){var n=i("zsmooth");n===!1&&(i("xgap"),i("ygap")),i("zhoverformat")}});var L6e=K((YHr,F6e)=>{"use strict";var D6e=Mt(),wOt=j8(),AOt=eS(),TOt=Xv(),MOt=oY(),SOt=gh(),EOt=SA();F6e.exports=function(t,r,i,n){function a(s,l){return D6e.coerce(t,r,EOt,s,l)}var o=wOt(t,r,a,n);if(!o){r.visible=!1;return}TOt(t,r,n,a),a("xhoverformat"),a("yhoverformat"),a("text"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback"),AOt(a,n),MOt(t,r,a,n),a("hoverongaps"),a("connectgaps",D6e.isArray1D(r.z)&&r.zsmooth!==!1),SOt(t,r,n,a,{prefix:"",cLetter:"z"}),a("zorder")}});var sY=K((XHr,P6e)=>{"use strict";var EA=Gs();P6e.exports={count:function(e,t,r){return r[e]++,1},sum:function(e,t,r,i){var n=i[t];return EA(n)?(n=Number(n),r[e]+=n,n):0},avg:function(e,t,r,i,n){var a=i[t];return EA(a)&&(a=Number(a),r[e]+=a,n[e]++),0},min:function(e,t,r,i){var n=i[t];if(EA(n))if(n=Number(n),EA(r[e])){if(r[e]>n){var a=n-r[e];return r[e]=n,a}}else return r[e]=n,n;return 0},max:function(e,t,r,i){var n=i[t];if(EA(n))if(n=Number(n),EA(r[e])){if(r[e]{"use strict";z6e.exports={percent:function(e,t){for(var r=e.length,i=100/t,n=0;n{"use strict";I6e.exports=function(t,r){for(var i=t.length,n=0,a=0;a{"use strict";var kA=(Il(),ar(Bl)),Zb=kA.ONEAVGYEAR,R6e=kA.ONEAVGMONTH,$8=kA.ONEDAY,B6e=kA.ONEHOUR,q6e=kA.ONEMIN,O6e=kA.ONESEC,N6e=Cs().tickIncrement;G6e.exports=function(t,r,i,n,a){var o=-1.1*r,s=-.1*r,l=t-s,u=i[0],f=i[1],c=Math.min(W8(u+s,u+l,n,a),W8(f+s,f+l,n,a)),h=Math.min(W8(u+o,u+s,n,a),W8(f+o,f+s,n,a)),d,p;if(c>h&&h$8){var v=d===Zb?1:6,y=d===Zb?"M12":"M1";return function(m,w){var _=n.c2d(m,Zb,a),b=_.indexOf("-",v);b>0&&(_=_.slice(0,b));var M=n.d2c(_,0,a);if(MO6e?e>$8?e>Zb*1.1?Zb:e>R6e*1.1?R6e:$8:e>B6e?B6e:e>q6e?q6e:O6e:Math.pow(10,Math.floor(Math.log(e)/Math.LN10))}function kOt(e,t,r,i,n,a){if(i&&e>$8){var o=U6e(t,n,a),s=U6e(r,n,a),l=e===Zb?0:1;return o[l]!==s[l]}return Math.floor(r/e)-Math.floor(t/e)>.1}function U6e(e,t,r){var i=t.c2d(e,Zb,r).split("-");return i[0]===""&&(i.unshift(),i[0]="-"+i[0]),i}});var dY=K((QHr,Y6e)=>{"use strict";var cY=Gs(),$0=Mt(),H6e=Ho(),iv=Cs(),{hasColorscale:j6e}=Zh(),W6e=A0(),COt=WM(),$6e=sY(),DOt=lY(),FOt=uY(),LOt=fY();function POt(e,t){var r=[],i=[],n=t.orientation==="h",a=iv.getFromId(e,n?t.yaxis:t.xaxis),o=n?"y":"x",s={x:"y",y:"x"}[o],l=t[o+"calendar"],u=t.cumulative,f,c=hY(e,t,a,o),h=c[0],d=c[1],p=typeof h.size=="string",v=[],y=p?v:h,m=[],w=[],_=[],b=0,M=t.histnorm,x=t.histfunc,A=M.indexOf("density")!==-1,T,g,E;u.enabled&&A&&(M=M.replace(/ ?density$/,""),A=!1);var S=x==="max"||x==="min",C=S?null:0,k=$6e.count,D=DOt[M],L=!1,P=function($){return a.r2c($,0,l)},I;for($0.isArrayOrTypedArray(t[s])&&x!=="count"&&(I=t[s],L=x==="avg",k=$6e[x]),f=P(h.start),g=P(h.end)+(f-iv.tickIncrement(f,h.size,!1,l))/1e6;f=0&&E=V;f--)if(i[f]){J=f;break}for(f=V;f<=J;f++)if(cY(r[f])&&cY(i[f])){var H={p:r[f],s:i[f],b:0};u.enabled||(H.pts=_[f],O?H.ph0=H.ph1=_[f].length?d[_[f][0]]:r[f]:(t._computePh=!0,H.ph0=q(v[f]),H.ph1=q(v[f+1],!0))),N.push(H)}return N.length===1&&(N[0].width1=iv.tickIncrement(N[0].p,h.size,!1,l)-N[0].p),j6e(t,"marker")&&W6e(e,t,{vals:t.marker.color,containerStr:"marker",cLetter:"c"}),j6e(t,"marker.line")&&W6e(e,t,{vals:t.marker.line.color,containerStr:"marker.line",cLetter:"c"}),COt(N,t),$0.isArrayOrTypedArray(t.selectedpoints)&&$0.tagSelected(N,t,Z),N}function hY(e,t,r,i,n){var j;var a=i+"bins",o=e._fullLayout,s=t["_"+i+"bingroup"],l=o._histogramBinOpts[s],u=o.barmode==="overlay",f,c,h,d,p,v,y,m=function(q){return r.r2c(q,0,d)},w=function(q){return r.c2r(q,0,d)},_=r.type==="date"?function(q){return q||q===0?$0.cleanDate(q,null,d):null}:function(q){return cY(q)?Number(q):null};function b(q,Q,N){Q[q+"Found"]?(Q[q]=_(Q[q]),Q[q]===null&&(Q[q]=N[q])):(v[q]=Q[q]=N[q],$0.nestedProperty(c[0],a+"."+q).set(N[q]))}if(t["_"+i+"autoBinFinished"])delete t["_"+i+"autoBinFinished"];else{c=l.traces;var M=[],x=!0,A=!1,T=!1;for(f=0;fr.r2l(I)&&(z=iv.tickIncrement(z,l.size,!0,d)),k.start=r.l2r(z),P||$0.nestedProperty(t,a+".start").set(k.start)}var B=l.end,O=r.r2l(C.end),W=O!==void 0;if((l.endFound||W)&&O!==r.r2l(B)){var X=W?O:$0.aggNums(Math.max,null,p);k.end=r.l2r(X),W||$0.nestedProperty(t,a+".start").set(k.end)}var Z="autobin"+i;return t._input[Z]===!1&&(t._input[a]=$0.extendFlat({},t[a]||{}),delete t._input[Z],delete t[Z]),[k,p]}function zOt(e,t,r,i,n){var a=e._fullLayout,o=IOt(e,t),s=!1,l=1/0,u=[t],f,c,h;for(f=0;f=0;i--)s(i);else if(t==="increasing"){for(i=1;i=0;i--)e[i]+=e[i+1];r==="exclude"&&(e.push(0),e.shift())}}Y6e.exports={calc:POt,calcAllAutoBins:hY}});var rMe=K((ejr,tMe)=>{"use strict";var X6e=Mt(),CA=Cs(),Z6e=sY(),BOt=lY(),qOt=uY(),OOt=fY(),K6e=dY().calcAllAutoBins;tMe.exports=function(t,r){var i=CA.getFromId(t,r.xaxis),n=CA.getFromId(t,r.yaxis),a=r.xcalendar,o=r.ycalendar,s=function(ue){return i.r2c(ue,0,a)},l=function(ue){return n.r2c(ue,0,o)},u=function(ue){return i.c2r(ue,0,a)},f=function(ue){return n.c2r(ue,0,o)},c,h,d,p,v=K6e(t,r,i,"x"),y=v[0],m=v[1],w=K6e(t,r,n,"y"),_=w[0],b=w[1],M=r._length;m.length>M&&m.splice(M,m.length-M),b.length>M&&b.splice(M,b.length-M);var x=[],A=[],T=[],g=typeof y.size=="string",E=typeof _.size=="string",S=[],C=[],k=g?S:y,D=E?C:_,L=0,P=[],I=[],F=r.histnorm,z=r.histfunc,B=F.indexOf("density")!==-1,O=z==="max"||z==="min",W=O?null:0,X=Z6e.count,Z=BOt[F],j=!1,q=[],Q=[],N="z"in r?r.z:"marker"in r&&Array.isArray(r.marker.color)?r.marker.color:"";N&&z!=="count"&&(j=z==="avg",X=Z6e[z]);var V=y.size,J=s(y.start),H=s(y.end)+(J-CA.tickIncrement(J,V,!1,a))/1e6;for(c=J;c=0&&d<$&&p>=0&&p{"use strict";var fm=Mt(),iMe=(Il(),ar(Bl)).BADNUM,nMe=Jv();aMe.exports=function(t,r,i,n,a,o){var s=t._length,l=r.makeCalcdata(t,n),u=i.makeCalcdata(t,a);l=nMe(t,r,n,l).vals,u=nMe(t,i,a,u).vals;var f=t.text,c=f!==void 0&&fm.isArray1D(f),h=t.hovertext,d=h!==void 0&&fm.isArray1D(h),p,v,y=fm.distinctVals(l),m=y.vals,w=fm.distinctVals(u),_=w.vals,b=[],M,x,A=_.length,T=m.length;for(p=0;p{"use strict";var NOt=Gs(),VOt=Mt(),X8=(Il(),ar(Bl)).BADNUM;oMe.exports=function(t,r,i,n){var a,o,s,l,u,f;function c(m){if(NOt(m))return+m}if(r&&r.transpose){for(a=0,u=0;u{"use strict";var UOt=Mt(),sMe=.01,GOt=[[-1,0],[1,0],[0,-1],[0,1]];function HOt(e){return .5-.25*Math.min(1,e*.5)}uMe.exports=function(t,r){var i=1,n;for(lMe(t,r),n=0;nsMe;n++)i=lMe(t,r,HOt(i));return i>sMe&&UOt.log("interp2d didn't converge quickly",i),t};function lMe(e,t,r){var i=0,n,a,o,s,l,u,f,c,h,d,p,v,y;for(s=0;sv&&(i=Math.max(i,Math.abs(e[a][o]-p)/(y-v))))}return i}});var J8=K((njr,fMe)=>{"use strict";var jOt=Mt().maxRowLength;fMe.exports=function(t){var r=[],i={},n=[],a=t[0],o=[],s=[0,0,0],l=jOt(t),u,f,c,h,d,p,v,y;for(f=0;f=0;d--)h=n[d],f=h[0],c=h[1],p=((i[[f-1,c]]||s)[2]+(i[[f+1,c]]||s)[2]+(i[[f,c-1]]||s)[2]+(i[[f,c+1]]||s)[2])/20,p&&(v[h]=[f,c,p],n.splice(d,1),y=!0);if(!y)throw"findEmpties iterated with no new neighbors";for(h in v)i[h]=v[h],r.push(v[h])}return r.sort(function(m,w){return w[2]-m[2]})}});var pY=K((ajr,dMe)=>{"use strict";var cMe=Ho(),hMe=Mt().isArrayOrTypedArray;dMe.exports=function(t,r,i,n,a,o){var s=[],l=cMe.traceIs(t,"contour"),u=cMe.traceIs(t,"histogram"),f,c,h,d=hMe(r)&&r.length>1;if(d&&!u&&o.type!=="category"){var p=r.length;if(p<=a){if(l)s=Array.from(r).slice(0,a);else if(a===1)o.type==="log"?s=[.5*r[0],2*r[0]]:s=[r[0]-.5,r[0]+.5];else if(o.type==="log"){for(s=[Math.pow(r[0],1.5)/Math.pow(r[1],.5)],h=1;h{"use strict";var pMe=Ho(),vY=Mt(),Q8=Cs(),vMe=Jv(),WOt=rMe(),$Ot=A0(),YOt=Y8(),XOt=Z8(),ZOt=K8(),KOt=J8(),e9=pY(),mY=(Il(),ar(Bl)).BADNUM;yMe.exports=function(t,r){var i=Q8.getFromId(t,r.xaxis||"x"),n=Q8.getFromId(t,r.yaxis||"y"),a=pMe.traceIs(r,"contour"),o=pMe.traceIs(r,"histogram"),s=a?"best":r.zsmooth,l,u,f,c,h,d,p,v,y,m,w;if(i._minDtick=0,n._minDtick=0,o)w=WOt(t,r),c=w.orig_x,l=w.x,u=w.x0,f=w.dx,v=w.orig_y,h=w.y,d=w.y0,p=w.dy,y=w.z;else{var _=r.z;vY.isArray1D(_)?(YOt(r,i,n,"x","y",["z"]),l=r._x,h=r._y,_=r._z):(c=r.x?i.makeCalcdata(r,"x"):[],v=r.y?n.makeCalcdata(r,"y"):[],l=vMe(r,i,"x",c).vals,h=vMe(r,n,"y",v).vals,r._x=l,r._y=h),u=r.x0,f=r.dx,d=r.y0,p=r.dy,y=XOt(_,r,i,n)}(i.rangebreaks||n.rangebreaks)&&(y=JOt(l,h,y),o||(l=mMe(l),h=mMe(h),r._x=l,r._y=h)),!o&&(a||r.connectgaps)&&(r._emptypoints=KOt(y),ZOt(y,r._emptypoints));function b(k){s=r._input.zsmooth=r.zsmooth=!1,vY.warn('cannot use zsmooth: "fast": '+k)}function M(k){if(k.length>1){var D=(k[k.length-1]-k[0])/(k.length-1),L=Math.abs(D/100);for(m=0;mL)return!1}return!0}r._islinear=!1,i.type==="log"||n.type==="log"?s==="fast"&&b("log axis found"):M(l)?M(h)?r._islinear=!0:s==="fast"&&b("y scale is not linear"):s==="fast"&&b("x scale is not linear");var x=vY.maxRowLength(y),A=r.xtype==="scaled"?"":l,T=e9(r,A,u,f,x,i),g=r.ytype==="scaled"?"":h,E=e9(r,g,d,p,y.length,n);r._extremes[i._id]=Q8.findExtremes(i,T),r._extremes[n._id]=Q8.findExtremes(n,E);var S={x:T,y:E,z:y,text:r._text||r.text,hovertext:r._hovertext||r.hovertext};if(r.xperiodalignment&&c&&(S.orig_x=c),r.yperiodalignment&&v&&(S.orig_y=v),A&&A.length===T.length-1&&(S.xCenter=A),g&&g.length===E.length-1&&(S.yCenter=g),o&&(S.xRanges=w.xRanges,S.yRanges=w.yRanges,S.pts=w.pts),a||$Ot(t,r,{vals:y,cLetter:"z"}),a&&r.contours&&r.contours.coloring==="heatmap"){var C={type:r.type==="contour"?"heatmap":"histogram2d",xcalendar:r.xcalendar,ycalendar:r.ycalendar};S.xfill=e9(C,A,u,f,x,i),S.yfill=e9(C,g,d,p,y.length,n)}return[S]};function mMe(e){for(var t=[],r=e.length,i=0;igMe,STYLE:()=>QOt});var gMe,QOt,i9=ps(()=>{"use strict";gMe=[["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"]],QOt=gMe.map(e=>e.join(": ")+"; ").join("")});var gY=K((sjr,bMe)=>{"use strict";var xMe=(i9(),ar(r9)),eNt=Bs(),yY=Mt(),DA=null;function tNt(){if(DA!==null)return DA;DA=!1;var e=yY.isSafari()||yY.isMacWKWebView()||yY.isIOS();if(window.navigator.userAgent&&!e){var t=Array.from(xMe.CSS_DECLARATIONS).reverse(),r=window.CSS&&window.CSS.supports||window.supportsCSS;if(typeof r=="function")DA=t.some(function(o){return r.apply(null,o)});else{var i=eNt.tester.append("image").attr("style",xMe.STYLE),n=window.getComputedStyle(i.node()),a=n.imageRendering;DA=t.some(function(o){var s=o[1];return a===s||a===s.toLowerCase()}),i.remove()}}return DA}bMe.exports=tNt});var n9=K((ljr,DMe)=>{"use strict";var _Me=No(),rNt=Ho(),iNt=Bs(),nNt=Cs(),nv=Mt(),wMe=zu(),aNt=WP(),AMe=ko(),oNt=gf().extractOpts,sNt=gf().makeColorScaleFuncFromTrace,lNt=(zp(),ar(Pp)),uNt=(Hc(),ar(Gc)),xY=uNt.LINE_SPACING,fNt=gY(),cNt=(i9(),ar(r9)).STYLE,kMe="heatmap-label";function CMe(e){return e.selectAll("g."+kMe)}function TMe(e){CMe(e).remove()}DMe.exports=function(e,t,r,i){var n=t.xaxis,a=t.yaxis;nv.makeTraceGroups(i,r,"hm").each(function(o){var s=_Me.select(this),l=o[0],u=l.trace,f=u.xgap||0,c=u.ygap||0,h=l.z,d=l.x,p=l.y,v=l.xCenter,y=l.yCenter,m=rNt.traceIs(u,"contour"),w=m?"best":u.zsmooth,_=h.length,b=nv.maxRowLength(h),M=!1,x=!1,A,T,g,E,S,C,k,D;for(C=0;A===void 0&&C0;)T=n.c2p(d[C]),C--;for(T0;)S=a.c2p(p[C]),C--;S=n._length||T<=0||E>=a._length||S<=0;if(z){var B=s.selectAll("image").data([]);B.exit().remove(),TMe(s);return}var O,W;L==="fast"?(O=b,W=_):(O=I,W=F);var X=document.createElement("canvas");X.width=O,X.height=W;var Z=X.getContext("2d",{willReadFrequently:!0}),j=sNt(u,{noNumericCheck:!0,returnArray:!0}),q,Q;L==="fast"?(q=M?function(Hr){return b-1-Hr}:nv.identity,Q=x?function(Hr){return _-1-Hr}:nv.identity):(q=function(Hr){return nv.constrain(Math.round(n.c2p(d[Hr])-A),0,I)},Q=function(Hr){return nv.constrain(Math.round(a.c2p(p[Hr])-E),0,F)});var N=Q(0),V=[N,N],J=M?0:1,H=x?0:1,$=0,te=0,ie=0,de=0,ge,Ie,Ce,le,re;function Ee(Hr,Di=0){if(Hr===void 0)return[0,0,0,0];var gn=j(Hr);return gn[0]=Math.round(gn[0]),gn[1]=Math.round(gn[1]),gn[2]=Math.round(gn[2]),$+=Di,te+=gn[0]*Di,ie+=gn[1]*Di,de+=gn[2]*Di,gn}function we(Hr,Di,gn,wr){var qr=Hr[gn.bin0];if(qr===void 0)return Ee(void 0,1);var Ut=Hr[gn.bin1],jt=Di[gn.bin0],pr=Di[gn.bin1],Ur=Ut-qr||0,Sr=jt-qr||0,Cr;return Ut===void 0?pr===void 0?Cr=0:jt===void 0?Cr=2*(pr-qr):Cr=(2*pr-jt-qr)*2/3:pr===void 0?jt===void 0?Cr=0:Cr=(2*qr-Ut-jt)*2/3:jt===void 0?Cr=(2*pr-Ut-qr)*2/3:Cr=pr+qr-Ut-jt,Ee(qr+gn.frac*Ur+wr.frac*(Sr+gn.frac*Cr))}if(L!=="default"){var oe=0,Y;try{Y=new Uint8Array(O*W*4)}catch(Hr){Y=new Array(O*W*4)}if(L==="smooth"){var ne=v||d,ye=y||p,U=new Array(ne.length),se=new Array(ye.length),Ae=new Array(I),be=v?SMe:MMe,me=y?SMe:MMe,ue,pe,ce;for(C=0;Cwt||wt>a._length))for(k=Se;kVt||Vt>n._length)){var Dt=aNt({x:At,y:ft},u,e._fullLayout);Dt.x=At,Dt.y=ft;var yt=l.z[C][k];yt===void 0?(Dt.z="",Dt.zLabel=""):(Dt.z=yt,Dt.zLabel=nNt.tickText(Qe,yt,"hover").text);var St=l.text&&l.text[C]&&l.text[C][k];(St===void 0||St===!1)&&(St=""),Dt.text=St;var rr=nv.texttemplateString({data:[Dt,u._meta],fallback:u.texttemplatefallback,labels:Dt,locale:e._fullLayout._d3locale,template:xe});if(rr){var Ke=rr.split("
"),at=Ke.length,lt=0;for(D=0;D{"use strict";FMe.exports={min:"zmin",max:"zmax"}});var a9=K((fjr,LMe)=>{"use strict";var hNt=No();LMe.exports=function(t){hNt.select(t).selectAll(".hm image").style("opacity",function(r){return r.trace.opacity})}});var s9=K((cjr,zMe)=>{"use strict";var PMe=Uf(),tS=Mt(),o9=tS.isArrayOrTypedArray,dNt=Cs(),pNt=gf().extractOpts;zMe.exports=function(t,r,i,n,a){a||(a={});var o=a.isContour,s=t.cd[0],l=s.trace,u=t.xa,f=t.ya,c=s.x,h=s.y,d=s.z,p=s.xCenter,v=s.yCenter,y=s.zmask,m=l.zhoverformat,w=c,_=h,b,M,x,A;if(t.index!==!1){try{x=Math.round(t.index[1]),A=Math.round(t.index[0])}catch(B){tS.error("Error hovering on heatmap, pointNumber must be [row,col], found:",t.index);return}if(x<0||x>=d[0].length||A<0||A>d.length)return}else{if(PMe.inbox(r-c[0],r-c[c.length-1],0)>0||PMe.inbox(i-h[0],i-h[h.length-1],0)>0)return;if(o){var T;for(w=[2*c[0]-c[1]],T=1;T{"use strict";IMe.exports={attributes:SA(),supplyDefaults:L6e(),calc:t9(),plot:n9(),colorbar:FA(),style:a9(),hoverPoints:s9(),moduleType:"trace",name:"heatmap",basePlotModule:vc(),categories:["cartesian","svg","2dMap","showLegend"],meta:{}}});var qMe=K((djr,BMe)=>{"use strict";BMe.exports=RMe()});var bY=K((pjr,OMe)=>{"use strict";OMe.exports=function(t,r){return{start:{valType:"any",editType:"calc"},end:{valType:"any",editType:"calc"},size:{valType:"any",editType:"calc"},editType:"calc"}}});var NMe={};Fl(NMe,{eventDataKeys:()=>vNt});var vNt,VMe=ps(()=>{"use strict";vNt=["binNumber"]});var l9=K((vjr,jMe)=>{"use strict";var Ld=um(),UMe=zf().axisHoverFormat,{hovertemplateAttrs:mNt,texttemplateAttrs:yNt,templatefallbackAttrs:GMe}=yu(),_Y=lf(),HMe=bY(),gNt=(VMe(),ar(NMe)),wY=Os().extendFlat;jMe.exports={x:{valType:"data_array",editType:"calc+clearAxisTypes"},y:{valType:"data_array",editType:"calc+clearAxisTypes"},xhoverformat:UMe("x"),yhoverformat:UMe("y"),text:wY({},Ld.text,{}),hovertext:wY({},Ld.hovertext,{}),orientation:Ld.orientation,histfunc:{valType:"enumerated",values:["count","sum","avg","min","max"],dflt:"count",editType:"calc"},histnorm:{valType:"enumerated",values:["","percent","probability","density","probability density"],dflt:"",editType:"calc"},cumulative:{enabled:{valType:"boolean",dflt:!1,editType:"calc"},direction:{valType:"enumerated",values:["increasing","decreasing"],dflt:"increasing",editType:"calc"},currentbin:{valType:"enumerated",values:["include","exclude","half"],dflt:"include",editType:"calc"},editType:"calc"},nbinsx:{valType:"integer",min:0,dflt:0,editType:"calc"},xbins:HMe("x",!0),nbinsy:{valType:"integer",min:0,dflt:0,editType:"calc"},ybins:HMe("y",!0),autobinx:{valType:"boolean",dflt:null,editType:"calc"},autobiny:{valType:"boolean",dflt:null,editType:"calc"},bingroup:{valType:"string",dflt:"",editType:"calc"},hovertemplate:mNt({},{keys:gNt.eventDataKeys}),hovertemplatefallback:GMe(),texttemplate:yNt({arrayOk:!1,editType:"plot"},{keys:["label","value"]}),texttemplatefallback:GMe({editType:"plot"}),textposition:wY({},Ld.textposition,{arrayOk:!1}),textfont:_Y({arrayOk:!1,editType:"plot",colorEditType:"style"}),outsidetextfont:_Y({arrayOk:!1,editType:"plot",colorEditType:"style"}),insidetextfont:_Y({arrayOk:!1,editType:"plot",colorEditType:"style"}),insidetextanchor:Ld.insidetextanchor,textangle:Ld.textangle,cliponaxis:Ld.cliponaxis,constraintext:Ld.constraintext,marker:Ld.marker,offsetgroup:Ld.offsetgroup,alignmentgroup:Ld.alignmentgroup,selected:Ld.selected,unselected:Ld.unselected,zorder:Ld.zorder}});var XMe=K((mjr,YMe)=>{"use strict";var WMe=Ho(),rS=Mt(),$Me=ko(),xNt=up().handleText,bNt=P8(),_Nt=l9();YMe.exports=function(t,r,i,n){function a(w,_){return rS.coerce(t,r,_Nt,w,_)}var o=a("x"),s=a("y"),l=a("cumulative.enabled");l&&(a("cumulative.direction"),a("cumulative.currentbin")),a("text");var u=a("textposition");xNt(t,r,n,a,u,{moduleHasSelected:!0,moduleHasUnselected:!0,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback"),a("xhoverformat"),a("yhoverformat");var f=a("orientation",s&&!o?"h":"v"),c=f==="v"?"x":"y",h=f==="v"?"y":"x",d=o&&s?Math.min(rS.minRowLength(o)&&rS.minRowLength(s)):rS.minRowLength(r[c]||[]);if(!d){r.visible=!1;return}r._length=d;var p=WMe.getComponentMethod("calendars","handleTraceDefaults");p(t,r,["x","y"],n);var v=r[h];v&&a("histfunc"),a("histnorm"),a("autobin"+c),bNt(t,r,a,i,n),rS.coerceSelectionMarkerOpacity(r,a);var y=(r.marker.line||{}).color,m=WMe.getComponentMethod("errorbars","supplyDefaults");m(t,r,y||$Me.defaultLine,{axis:"y"}),m(t,r,y||$Me.defaultLine,{axis:"x",inherit:"y"}),a("zorder")}});var f9=K((yjr,JMe)=>{"use strict";var iS=Mt(),wNt=Vf(),u9=Ho().traceIs,ANt=zb(),TNt=up().validateCornerradius,ZMe=iS.nestedProperty,AY=Cb().getAxisGroup,KMe=[{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"}],MNt=["x","y"];JMe.exports=function(t,r){var i=r._histogramBinOpts={},n=[],a={},o=[],s,l,u,f,c,h,d;function p(L,P){return iS.coerce(s._input,s,s._module.attributes,L,P)}function v(L){return L.orientation==="v"?"x":"y"}function y(L,P){var I=wNt.getFromTrace({_fullLayout:r},L,P);return I.type}function m(L,P,I){var F=L.uid+"__"+I;P||(P=F);var z=y(L,I),B=L[I+"calendar"]||"",O=i[P],W=!0;O&&(z===O.axType&&B===O.calendar?(W=!1,O.traces.push(L),O.dirs.push(I)):(P=F,z!==O.axType&&iS.warn(["Attempted to group the bins of trace",L.index,"set on a","type:"+z,"axis","with bins on","type:"+O.axType,"axis."].join(" ")),B!==O.calendar&&iS.warn(["Attempted to group the bins of trace",L.index,"set with a",B,"calendar","with bins",O.calendar?"on a "+O.calendar+" calendar":"w/o a set calendar"].join(" ")))),W&&(i[P]={traces:[L],dirs:[I],axType:z,calendar:L[I+"calendar"]||""}),L["_"+I+"bingroup"]=P}for(c=0;c{"use strict";var SNt=wA().hoverPoints,ENt=Cs().hoverLabelText;QMe.exports=function(t,r,i,n,a){var o=SNt(t,r,i,n,a);if(o){t=o[0];var s=t.cd[t.index],l=t.cd[0].trace;if(!l.cumulative.enabled){var u=l.orientation==="h"?"y":"x";t[u+"Label"]=ENt(t[u+"a"],[s.ph0,s.ph1],l[u+"hoverformat"])}return o}}});var TY=K((xjr,tSe)=>{"use strict";tSe.exports=function(t,r,i,n,a){if(t.x="xVal"in r?r.xVal:r.x,t.y="yVal"in r?r.yVal:r.y,"zLabelVal"in r&&(t.z=r.zLabelVal),r.xa&&(t.xaxis=r.xa),r.ya&&(t.yaxis=r.ya),!(i.cumulative||{}).enabled){var o=Array.isArray(a)?n[0].pts[a[0]][a[1]]:n[a].pts;t.pointNumbers=o,t.binNumber=t.pointNumber,delete t.pointNumber,delete t.pointIndex,t.pointIndices=o}return t}});var iSe=K((bjr,rSe)=>{"use strict";rSe.exports={attributes:l9(),layoutAttributes:L8(),supplyDefaults:XMe(),crossTraceDefaults:f9(),supplyLayoutDefaults:H$(),calc:dY().calc,crossTraceCalc:Ib().crossTraceCalc,plot:Yb().plot,layerName:"barlayer",style:ev().style,styleOnSelect:ev().styleOnSelect,colorbar:Qh(),hoverPoints:eSe(),selectPoints:AA(),eventData:TY(),moduleType:"trace",name:"histogram",basePlotModule:vc(),categories:["bar-like","cartesian","svg","bar","histogram","oriented","errorBarsOK","showLegend"],meta:{}}});var aSe=K((_jr,nSe)=>{"use strict";nSe.exports=iSe()});var h9=K((wjr,lSe)=>{"use strict";var l1=l9(),oSe=bY(),c9=SA(),kNt=Au(),MY=zf().axisHoverFormat,{hovertemplateAttrs:CNt,texttemplateAttrs:DNt,templatefallbackAttrs:sSe}=yu(),FNt=Wu(),nS=Os().extendFlat;lSe.exports=nS({x:l1.x,y:l1.y,z:{valType:"data_array",editType:"calc"},marker:{color:{valType:"data_array",editType:"calc"},editType:"calc"},histnorm:l1.histnorm,histfunc:l1.histfunc,nbinsx:l1.nbinsx,xbins:oSe("x"),nbinsy:l1.nbinsy,ybins:oSe("y"),autobinx:l1.autobinx,autobiny:l1.autobiny,bingroup:nS({},l1.bingroup,{}),xbingroup:nS({},l1.bingroup,{}),ybingroup:nS({},l1.bingroup,{}),xgap:c9.xgap,ygap:c9.ygap,zsmooth:c9.zsmooth,xhoverformat:MY("x"),yhoverformat:MY("y"),zhoverformat:MY("z",1),hovertemplate:CNt({},{keys:["z"]}),hovertemplatefallback:sSe(),texttemplate:DNt({arrayOk:!1,editType:"plot"},{keys:["z"]}),texttemplatefallback:sSe({editType:"plot"}),textfont:c9.textfont,showlegend:nS({},kNt.showlegend,{dflt:!1})},FNt("",{cLetter:"z",autoColorDflt:!1}))});var SY=K((Ajr,fSe)=>{"use strict";var LNt=Ho(),uSe=Mt();fSe.exports=function(t,r,i,n){var a=i("x"),o=i("y"),s=uSe.minRowLength(a),l=uSe.minRowLength(o);if(!s||!l){r.visible=!1;return}r._length=Math.min(s,l);var u=LNt.getComponentMethod("calendars","handleTraceDefaults");u(t,r,["x","y"],n);var f=i("z")||i("marker.color");f&&i("histfunc"),i("histnorm"),i("autobinx"),i("autobiny")}});var hSe=K((Tjr,cSe)=>{"use strict";var PNt=Mt(),zNt=SY(),INt=oY(),RNt=gh(),BNt=eS(),qNt=h9();cSe.exports=function(t,r,i,n){function a(o,s){return PNt.coerce(t,r,qNt,o,s)}zNt(t,r,a,n),r.visible!==!1&&(INt(t,r,a,n),RNt(t,r,n,a,{prefix:"",cLetter:"z"}),a("hovertemplate"),a("hovertemplatefallback"),BNt(a,n),a("xhoverformat"),a("yhoverformat"))}});var vSe=K((Mjr,pSe)=>{"use strict";var ONt=s9(),dSe=Cs().hoverLabelText;pSe.exports=function(t,r,i,n,a){var o=ONt(t,r,i,n,a);if(o){t=o[0];var s=t.index,l=s[0],u=s[1],f=t.cd[0],c=f.trace,h=f.xRanges[u],d=f.yRanges[l];return t.xLabel=dSe(t.xa,[h[0],h[1]],c.xhoverformat),t.yLabel=dSe(t.ya,[d[0],d[1]],c.yhoverformat),o}}});var ySe=K((Sjr,mSe)=>{"use strict";mSe.exports={attributes:h9(),supplyDefaults:hSe(),crossTraceDefaults:f9(),calc:t9(),plot:n9(),layerName:"heatmaplayer",colorbar:FA(),style:a9(),hoverPoints:vSe(),eventData:TY(),moduleType:"trace",name:"histogram2d",basePlotModule:vc(),categories:["cartesian","svg","2dMap","histogram","showLegend"],meta:{}}});var xSe=K((Ejr,gSe)=>{"use strict";gSe.exports=ySe()});var d9={};Fl(d9,{COMPARISON_OPS:()=>NNt,COMPARISON_OPS2:()=>VNt,CONSTRAINT_REDUCTION:()=>HNt,INTERVAL_OPS:()=>UNt,SET_OPS:()=>GNt});var NNt,VNt,UNt,GNt,HNt,p9=ps(()=>{"use strict";NNt=["=","!=","<",">=",">","<="],VNt=["=","<",">=",">","<="],UNt=["[]","()","[)","(]","][",")(","](",")["],GNt=["{}","}{"],HNt={"=":"=","<":"<","<=":"<",">":">",">=":">","[]":"[]","()":"[]","[)":"[]","(]":"[]","][":"][",")(":"][","](":"][",")[":"]["}});var aS=K((kjr,ASe)=>{"use strict";var Fc=SA(),v9=Zf(),_Se=zf(),EY=_Se.axisHoverFormat,jNt=_Se.descriptionOnlyNumbers,WNt=Wu(),$Nt=yh().dash,YNt=lf(),LA=Os().extendFlat,wSe=(p9(),ar(d9)),XNt=wSe.COMPARISON_OPS2,ZNt=wSe.INTERVAL_OPS,bSe=v9.line;ASe.exports=LA({z:Fc.z,x:Fc.x,x0:Fc.x0,dx:Fc.dx,y:Fc.y,y0:Fc.y0,dy:Fc.dy,xperiod:Fc.xperiod,yperiod:Fc.yperiod,xperiod0:v9.xperiod0,yperiod0:v9.yperiod0,xperiodalignment:Fc.xperiodalignment,yperiodalignment:Fc.yperiodalignment,text:Fc.text,hovertext:Fc.hovertext,transpose:Fc.transpose,xtype:Fc.xtype,ytype:Fc.ytype,xhoverformat:EY("x"),yhoverformat:EY("y"),zhoverformat:EY("z",1),hovertemplate:Fc.hovertemplate,hovertemplatefallback:Fc.hovertemplatefallback,texttemplate:LA({},Fc.texttemplate,{}),texttemplatefallback:Fc.texttemplatefallback,textfont:LA({},Fc.textfont,{}),hoverongaps:Fc.hoverongaps,connectgaps:LA({},Fc.connectgaps,{}),fillcolor:{valType:"color",editType:"calc"},autocontour:{valType:"boolean",dflt:!0,editType:"calc",impliedEdits:{"contours.start":void 0,"contours.end":void 0,"contours.size":void 0}},ncontours:{valType:"integer",dflt:15,min:1,editType:"calc"},contours:{type:{valType:"enumerated",values:["levels","constraint"],dflt:"levels",editType:"calc"},start:{valType:"number",dflt:null,editType:"plot",impliedEdits:{"^autocontour":!1}},end:{valType:"number",dflt:null,editType:"plot",impliedEdits:{"^autocontour":!1}},size:{valType:"number",dflt:null,min:0,editType:"plot",impliedEdits:{"^autocontour":!1}},coloring:{valType:"enumerated",values:["fill","heatmap","lines","none"],dflt:"fill",editType:"calc"},showlines:{valType:"boolean",dflt:!0,editType:"plot"},showlabels:{valType:"boolean",dflt:!1,editType:"plot"},labelfont:YNt({editType:"plot",colorEditType:"style"}),labelformat:{valType:"string",dflt:"",editType:"plot",description:jNt("contour label")},operation:{valType:"enumerated",values:[].concat(XNt).concat(ZNt),dflt:"=",editType:"calc"},value:{valType:"any",dflt:0,editType:"calc"},editType:"calc",impliedEdits:{autocontour:!1}},line:{color:LA({},bSe.color,{editType:"style+colorbars"}),width:{valType:"number",min:0,editType:"style+colorbars"},dash:$Nt,smoothing:LA({},bSe.smoothing,{}),editType:"plot"},zorder:v9.zorder},WNt("",{cLetter:"z",autoColorDflt:!1,editTypeOverride:"calc"}))});var CY=K((Cjr,MSe)=>{"use strict";var E0=h9(),cm=aS(),KNt=Wu(),kY=zf().axisHoverFormat,TSe=Os().extendFlat;MSe.exports=TSe({x:E0.x,y:E0.y,z:E0.z,marker:E0.marker,histnorm:E0.histnorm,histfunc:E0.histfunc,nbinsx:E0.nbinsx,xbins:E0.xbins,nbinsy:E0.nbinsy,ybins:E0.ybins,autobinx:E0.autobinx,autobiny:E0.autobiny,bingroup:E0.bingroup,xbingroup:E0.xbingroup,ybingroup:E0.ybingroup,autocontour:cm.autocontour,ncontours:cm.ncontours,contours:cm.contours,line:{color:cm.line.color,width:TSe({},cm.line.width,{dflt:.5}),dash:cm.line.dash,smoothing:cm.line.smoothing,editType:"plot"},xhoverformat:kY("x"),yhoverformat:kY("y"),zhoverformat:kY("z",1),hovertemplate:E0.hovertemplate,hovertemplatefallback:E0.hovertemplatefallback,texttemplate:cm.texttemplate,texttemplatefallback:cm.texttemplatefallback,textfont:cm.textfont},KNt("",{cLetter:"z",editTypeOverride:"calc"}))});var m9=K((Djr,SSe)=>{"use strict";SSe.exports=function(t,r,i,n){var a=n("contours.start"),o=n("contours.end"),s=a===!1||o===!1,l=i("contours.size"),u;s?u=r.autocontour=!0:u=i("autocontour",!1),(u||!l)&&i("ncontours")}});var DY=K((Fjr,ESe)=>{"use strict";var JNt=Mt();ESe.exports=function(t,r,i,n){n||(n={});var a=t("contours.showlabels");if(a){var o=r.font;JNt.coerceFont(t,"contours.labelfont",o,{overrideDflt:{color:i}}),t("contours.labelformat")}n.hasHover!==!1&&t("zhoverformat")}});var y9=K((Ljr,kSe)=>{"use strict";var QNt=gh(),eVt=DY();kSe.exports=function(t,r,i,n,a){var o=i("contours.coloring"),s,l="";o==="fill"&&(s=i("contours.showlines")),s!==!1&&(o!=="lines"&&(l=i("line.color","#000")),i("line.width",.5),i("line.dash")),o!=="none"&&(t.showlegend!==!0&&(r.showlegend=!1),r._dfltShowLegend=!1,QNt(t,r,n,i,{prefix:"",cLetter:"z"})),i("line.smoothing"),eVt(i,n,l,a)}});var LSe=K((Pjr,FSe)=>{"use strict";var CSe=Mt(),tVt=SY(),rVt=m9(),iVt=y9(),nVt=eS(),DSe=CY();FSe.exports=function(t,r,i,n){function a(s,l){return CSe.coerce(t,r,DSe,s,l)}function o(s){return CSe.coerce2(t,r,DSe,s)}tVt(t,r,a,n),r.visible!==!1&&(rVt(t,r,a,o),iVt(t,r,a,n),a("xhoverformat"),a("yhoverformat"),a("hovertemplate"),a("hovertemplatefallback"),r.contours&&r.contours.coloring==="heatmap"&&nVt(a,n))}});var PY=K((zjr,zSe)=>{"use strict";var LY=Cs(),FY=Mt();zSe.exports=function(t,r){var i=t.contours;if(t.autocontour){var n=t.zmin,a=t.zmax;(t.zauto||n===void 0)&&(n=FY.aggNums(Math.min,null,r)),(t.zauto||a===void 0)&&(a=FY.aggNums(Math.max,null,r));var o=PSe(n,a,t.ncontours);i.size=o.dtick,i.start=LY.tickFirst(o),o.range.reverse(),i.end=LY.tickFirst(o),i.start===n&&(i.start+=i.size),i.end===a&&(i.end-=i.size),i.start>i.end&&(i.start=i.end=(i.start+i.end)/2),t._input.contours||(t._input.contours={}),FY.extendFlat(t._input.contours,{start:i.start,end:i.end,size:i.size}),t._input.autocontour=!0}else if(i.type!=="constraint"){var s=i.start,l=i.end,u=t._input.contours;if(s>l&&(i.start=u.start=l,l=i.end=u.end=s,s=i.start),!(i.size>0)){var f;s===l?f=1:f=PSe(s,l,t.ncontours).dtick,u.size=i.size=f}}};function PSe(e,t,r){var i={type:"linear",range:[e,t]};return LY.autoTicks(i,(t-e)/(r||15)),i}});var oS=K((Ijr,ISe)=>{"use strict";ISe.exports=function(t){return t.end+t.size/1e6}});var zY=K((Rjr,BSe)=>{"use strict";var RSe=gf(),aVt=t9(),oVt=PY(),sVt=oS();BSe.exports=function(t,r){var i=aVt(t,r),n=i[0].z;oVt(r,n);var a=r.contours,o=RSe.extractOpts(r),s;if(a.coloring==="heatmap"&&o.auto&&r.autocontour===!1){var l=a.start,u=sVt(a),f=a.size||1,c=Math.floor((u-l)/f)+1;isFinite(f)||(f=1,c=1);var h=l-f/2,d=h+c*f;s=[h,d]}else s=n;return RSe.calc(t,r,{vals:s,cLetter:"z"}),i}});var sS={};Fl(sS,{BOTTOMSTART:()=>lVt,CHOOSESADDLE:()=>dVt,LABELDISTANCE:()=>vVt,LABELINCREASE:()=>mVt,LABELMAX:()=>gVt,LABELMIN:()=>yVt,LABELOPTIMIZER:()=>xVt,LEFTSTART:()=>fVt,NEWDELTA:()=>hVt,RIGHTSTART:()=>cVt,SADDLEREMAINDER:()=>pVt,TOPSTART:()=>uVt});var lVt,uVt,fVt,cVt,hVt,dVt,pVt,vVt,mVt,yVt,gVt,xVt,lS=ps(()=>{"use strict";lVt=[1,9,13,104,713],uVt=[4,6,7,104,713],fVt=[8,12,14,208,1114],cVt=[2,3,11,208,1114],hVt=[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]],dVt={104:[4,1],208:[2,8],713:[7,13],1114:[11,14]},pVt={1:4,2:8,4:1,7:13,8:2,11:14,13:7,14:11},vVt=2,mVt=10,yVt=3,gVt=10,xVt={EDGECOST:1,ANGLECOST:1,NEIGHBORCOST:5,SAMELEVELFACTOR:10,SAMELEVELDISTANCE:5,MAXCOST:100,INITIALSEARCHPOINTS:10,ITERATIONS:5}});var IY=K((Bjr,qSe)=>{"use strict";var g9=(lS(),ar(sS));qSe.exports=function(t){var r=t[0].z,i=r.length,n=r[0].length,a=i===2||n===2,o,s,l,u,f,c,h,d,p;for(s=0;se?0:1)+(t[0][1]>e?0:2)+(t[1][1]>e?0:4)+(t[1][0]>e?0:8);if(r===5||r===10){var i=(t[0][0]+t[0][1]+t[1][0]+t[1][1])/4;return e>i?r===5?713:1114:r===5?104:208}return r===15?0:r}});var RY=K((qjr,VSe)=>{"use strict";var x9=Mt(),PA=(lS(),ar(sS));VSe.exports=function(t,r,i){var n,a,o,s,l;for(r=r||.01,i=i||.01,o=0;o20?(o=PA.CHOOSESADDLE[o][(s[0]||s[1])<0?0:1],e.crossings[a]=PA.SADDLEREMAINDER[o]):delete e.crossings[a],s=PA.NEWDELTA[o],!s){x9.log("Found bad marching index:",o,t,e.level);break}l.push(NSe(e,t,s)),t[0]+=s[0],t[1]+=s[1],a=t.join(","),uS(l[l.length-1],l[l.length-2],i,n)&&l.pop();var p=s[0]&&(t[0]<0||t[0]>f-2)||s[1]&&(t[1]<0||t[1]>u-2),v=t[0]===c[0]&&t[1]===c[1]&&s[0]===h[0]&&s[1]===h[1];if(v||r&&p)break;o=e.crossings[a]}d===1e4&&x9.log("Infinite loop in contour?");var y=uS(l[0],l[l.length-1],i,n),m=0,w=.2*e.smoothing,_=[],b=0,M,x,A,T,g,E,S,C,k,D,L;for(d=1;d=b;d--)if(M=_[d],M=b&&M+_[x]C&&k--,e.edgepaths[k]=L.concat(l,D));break}z||(e.edgepaths[C]=l.concat(D))}for(C=0;C20&&t?e===208||e===1114?i=r[0]===0?1:-1:n=r[1]===0?1:-1:PA.BOTTOMSTART.indexOf(e)!==-1?n=1:PA.LEFTSTART.indexOf(e)!==-1?i=1:PA.TOPSTART.indexOf(e)!==-1?n=-1:i=-1,[i,n]}function NSe(e,t,r){var i=t[0]+Math.max(r[0],0),n=t[1]+Math.max(r[1],0),a=e.z[n][i],o=e.xaxis,s=e.yaxis;if(r[1]){var l=(e.level-a)/(e.z[n][i+1]-a),u=(l!==1?(1-l)*o.c2l(e.x[i]):0)+(l!==0?l*o.c2l(e.x[i+1]):0);return[o.c2p(o.l2c(u),!0),s.c2p(e.y[n],!0),i+l,n]}else{var f=(e.level-a)/(e.z[n+1][i]-a),c=(f!==1?(1-f)*s.c2l(e.y[n]):0)+(f!==0?f*s.c2l(e.y[n+1]):0);return[o.c2p(e.x[i],!0),s.c2p(s.l2c(c),!0),i,n+f]}}});var jSe=K((Ojr,HSe)=>{"use strict";var BY=(p9(),ar(d9)),AVt=Gs();HSe.exports={"[]":USe("[]"),"][":USe("]["),">":qY(">"),"<":qY("<"),"=":qY("=")};function GSe(e,t){var r=Array.isArray(t),i;function n(a){return AVt(a)?+a:null}return BY.COMPARISON_OPS2.indexOf(e)!==-1?i=n(r?t[0]:t):BY.INTERVAL_OPS.indexOf(e)!==-1?i=r?[n(t[0]),n(t[1])]:[n(t),n(t)]:BY.SET_OPS.indexOf(e)!==-1&&(i=r?t.map(n):[n(t)]),i}function USe(e){return function(t){t=GSe(e,t);var r=Math.min(t[0],t[1]),i=Math.max(t[0],t[1]);return{start:r,end:i,size:i-r}}}function qY(e){return function(t){return t=GSe(e,t),{start:t,end:1/0,size:1/0}}}});var OY=K((Njr,$Se)=>{"use strict";var WSe=Mt(),TVt=jSe(),MVt=oS();$Se.exports=function(t,r,i){for(var n=t.type==="constraint"?TVt[t._operation](t.value):t,a=n.size,o=[],s=MVt(n),l=i.trace._carpetTrace,u=l?{xaxis:l.aaxis,yaxis:l.baxis,x:i.a,y:i.b}:{xaxis:r.xaxis,yaxis:r.yaxis,x:i.x,y:i.y},f=n.start;f1e3){WSe.warn("Too many contours, clipping at 1000",t);break}return o}});var NY=K((Vjr,XSe)=>{"use strict";var zA=Mt();XSe.exports=function(e,t){var r,i,n,a=function(l){return l.reverse()},o=function(l){return l};switch(t){case"=":case"<":return e;case">":for(e.length!==1&&zA.warn("Contour data invalid for the specified inequality operation."),i=e[0],r=0;r{"use strict";ZSe.exports=function(e,t){var r=e[0],i=r.z,n;switch(t.type){case"levels":var a=Math.min(i[0][0],i[0][1]);for(n=0;no.level||o.starts.length&&a===o.level)}break;case"constraint":if(r.prefixBoundary=!1,r.edgepaths.length)return;var s=r.x.length,l=r.y.length,u=-1/0,f=1/0;for(n=0;n":c>u&&(r.prefixBoundary=!0);break;case"<":(cu||r.starts.length&&d===f)&&(r.prefixBoundary=!0);break;case"][":h=Math.min(c[0],c[1]),d=Math.max(c[0],c[1]),hu&&(r.prefixBoundary=!0);break}break}}});var b9=K(Y0=>{"use strict";var cS=No(),Ih=Mt(),by=Bs(),SVt=gf(),QSe=zu(),KSe=Cs(),JSe=G1(),EVt=n9(),eEe=IY(),tEe=RY(),kVt=OY(),CVt=NY(),rEe=VY(),fS=(lS(),ar(sS)),hm=fS.LABELOPTIMIZER;Y0.plot=function(t,r,i,n){var a=r.xaxis,o=r.yaxis;Ih.makeTraceGroups(n,i,"contour").each(function(s){var l=cS.select(this),u=s[0],f=u.trace,c=u.x,h=u.y,d=f.contours,p=kVt(d,r,u),v=Ih.ensureSingle(l,"g","heatmapcoloring"),y=[];d.coloring==="heatmap"&&(y=[s]),EVt(t,r,y,v),eEe(p),tEe(p);var m=a.c2p(c[0],!0),w=a.c2p(c[c.length-1],!0),_=o.c2p(h[0],!0),b=o.c2p(h[h.length-1],!0),M=[[m,b],[w,b],[w,_],[m,_]],x=p;d.type==="constraint"&&(x=CVt(p,d._operation)),DVt(l,M,d),FVt(l,x,M,d),LVt(l,p,t,u,d),zVt(l,r,t,u,M)})};function DVt(e,t,r){var i=Ih.ensureSingle(e,"g","contourbg"),n=i.selectAll("path").data(r.coloring==="fill"?[0]:[]);n.enter().append("path"),n.exit().remove(),n.attr("d","M"+t.join("L")+"Z").style("stroke","none")}function FVt(e,t,r,i){var n=i.coloring==="fill"||i.type==="constraint"&&i._operation!=="=",a="M"+r.join("L")+"Z";n&&rEe(t,i);var o=Ih.ensureSingle(e,"g","contourfill"),s=o.selectAll("path").data(n?t:[]);s.enter().append("path"),s.exit().remove(),s.each(function(l){var u=(l.prefixBoundary?a:"")+iEe(l,r);u?cS.select(this).attr("d",u).style("stroke","none"):cS.select(this).remove()})}function iEe(e,t){var r="",i=0,n=e.edgepaths.map(function(m,w){return w}),a=!0,o,s,l,u,f,c;function h(m){return Math.abs(m[1]-t[0][1])<.01}function d(m){return Math.abs(m[1]-t[2][1])<.01}function p(m){return Math.abs(m[0]-t[0][0])<.01}function v(m){return Math.abs(m[0]-t[2][0])<.01}for(;n.length;){for(c=by.smoothopen(e.edgepaths[i],e.smoothing),r+=a?c:c.replace(/^M/,"L"),n.splice(n.indexOf(i),1),o=e.edgepaths[i][e.edgepaths[i].length-1],u=-1,l=0;l<4;l++){if(!o){Ih.log("Missing end?",i,e);break}for(h(o)&&!v(o)?s=t[1]:p(o)?s=t[0]:d(o)?s=t[3]:v(o)&&(s=t[2]),f=0;f=0&&(s=y,u=f):Math.abs(o[1]-s[1])<.01?Math.abs(o[1]-y[1])<.01&&(y[0]-o[0])*(s[0]-y[0])>=0&&(s=y,u=f):Ih.log("endpt to newendpt is not vert. or horz.",o,s,y)}if(o=s,u>=0)break;r+="L"+s}if(u===e.edgepaths.length){Ih.log("unclosed perimeter path");break}i=u,a=n.indexOf(i)===-1,a&&(i=n[0],r+="Z")}for(i=0;ihm.MAXCOST*2)break;h&&(s/=2),o=u-s/2,l=o+s*1.5}if(c<=hm.MAXCOST)return f};function PVt(e,t,r,i){var n=t.width/2,a=t.height/2,o=e.x,s=e.y,l=e.theta,u=Math.cos(l)*n,f=Math.sin(l)*n,c=(o>i.center?i.right-o:o-i.left)/(u+Math.abs(Math.sin(l)*a)),h=(s>i.middle?i.bottom-s:s-i.top)/(Math.abs(f)+Math.cos(l)*a);if(c<1||h<1)return 1/0;var d=hm.EDGECOST*(1/(c-1)+1/(h-1));d+=hm.ANGLECOST*l*l;for(var p=o-u,v=s-f,y=o+u,m=s+f,w=0;w{"use strict";var RVt=No(),UY=gf(),BVt=oS();nEe.exports=function(t){var r=t.contours,i=r.start,n=BVt(r),a=r.size||1,o=Math.floor((n-i)/a)+1,s=r.coloring==="lines"?0:1,l=UY.extractOpts(t);isFinite(a)||(a=1,o=1);var u=l.reversescale?UY.flipScale(l.colorscale):l.colorscale,f=u.length,c=new Array(f),h=new Array(f),d,p,v=l.min,y=l.max;if(r.coloring==="heatmap"){for(p=0;p=y)&&(i<=v&&(i=v),n>=y&&(n=y),o=Math.floor((n-i)/a)+1,s=0),p=0;pv&&(c.unshift(v),h.unshift(h[0])),c[c.length-1]{"use strict";var _9=No(),aEe=Bs(),qVt=a9(),OVt=GY();oEe.exports=function(t){var r=_9.select(t).selectAll("g.contour");r.style("opacity",function(i){return i[0].trace.opacity}),r.each(function(i){var n=_9.select(this),a=i[0].trace,o=a.contours,s=a.line,l=o.size||1,u=o.start,f=o.type==="constraint",c=!f&&o.coloring==="lines",h=!f&&o.coloring==="fill",d=c||h?OVt(a):null;n.selectAll("g.contourlevel").each(function(y){_9.select(this).selectAll("path").call(aEe.lineGroupStyle,s.width,c?d(y.level):s.color,s.dash)});var p=o.labelfont;if(n.selectAll("g.contourlabels text").each(function(y){aEe.font(_9.select(this),{weight:p.weight,style:p.style,variant:p.variant,textcase:p.textcase,lineposition:p.lineposition,shadow:p.shadow,family:p.family,size:p.size,color:p.color||(c?d(y.level):s.color)})}),f)n.selectAll("g.contourfill path").style("fill",a.fillcolor);else if(h){var v;n.selectAll("g.contourfill path").style("fill",function(y){return v===void 0&&(v=y.level),d(y.level+.5*l)}),v===void 0&&(v=u),n.selectAll("g.contourbg path").style("fill",d(v-.5*l))}}),qVt(t)}});var A9=K((Wjr,lEe)=>{"use strict";var sEe=gf(),NVt=GY(),VVt=oS();function UVt(e,t,r){var i=t.contours,n=t.line,a=i.size||1,o=i.coloring,s=NVt(t,{isColorbar:!0});if(o==="heatmap"){var l=sEe.extractOpts(t);r._fillgradient=l.reversescale?sEe.flipScale(l.colorscale):l.colorscale,r._zrange=[l.min,l.max]}else o==="fill"&&(r._fillcolor=s);r._line={color:o==="lines"?s:n.color,width:i.showlines!==!1?n.width:0,dash:n.dash},r._levels={start:i.start,end:VVt(i),size:a}}lEe.exports={min:"zmin",max:"zmax",calc:UVt}});var HY=K(($jr,uEe)=>{"use strict";var T9=ko(),GVt=s9();uEe.exports=function(t,r,i,n,a){a||(a={}),a.isContour=!0;var o=GVt(t,r,i,n,a);return o&&o.forEach(function(s){var l=s.trace;l.contours.type==="constraint"&&(l.fillcolor&&T9.opacity(l.fillcolor)?s.color=T9.addOpacity(l.fillcolor,1):l.contours.showlines&&T9.opacity(l.line.color)&&(s.color=T9.addOpacity(l.line.color,1)))}),o}});var cEe=K((Yjr,fEe)=>{"use strict";fEe.exports={attributes:CY(),supplyDefaults:LSe(),crossTraceDefaults:f9(),calc:zY(),plot:b9().plot,layerName:"contourlayer",style:w9(),colorbar:A9(),hoverPoints:HY(),moduleType:"trace",name:"histogram2dcontour",basePlotModule:vc(),categories:["cartesian","svg","2dMap","contour","histogram","showLegend"],meta:{}}});var dEe=K((Xjr,hEe)=>{"use strict";hEe.exports=cEe()});var jY=K((Zjr,xEe)=>{"use strict";var pEe=Gs(),HVt=DY(),yEe=ko(),vEe=yEe.addOpacity,jVt=yEe.opacity,gEe=(p9(),ar(d9)),mEe=Mt().isArrayOrTypedArray,WVt=gEe.CONSTRAINT_REDUCTION,$Vt=gEe.COMPARISON_OPS2;xEe.exports=function(t,r,i,n,a,o){var s=r.contours,l,u,f,c=i("contours.operation");if(s._operation=WVt[c],YVt(i,s),c==="="?l=s.showlines=!0:(l=i("contours.showlines"),f=i("fillcolor",vEe((t.line||{}).color||a,.5))),l){var h=f&&jVt(f)?vEe(r.fillcolor,1):a;u=i("line.color",h),i("line.width",2),i("line.dash")}i("line.smoothing"),HVt(i,n,u,o)};function YVt(e,t){var r;$Vt.indexOf(t.operation)===-1?(e("contours.value",[0,1]),mEe(t.value)?t.value.length>2?t.value=t.value.slice(2):t.length===0?t.value=[0,1]:t.length<2?(r=parseFloat(t.value[0]),t.value=[r,r+1]):t.value=[parseFloat(t.value[0]),parseFloat(t.value[1])]:pEe(t.value)&&(r=parseFloat(t.value),t.value=[r,r+1])):(e("contours.value",0),pEe(t.value)||(mEe(t.value)?t.value=parseFloat(t.value[0]):t.value=0))}});var wEe=K((Kjr,_Ee)=>{"use strict";var WY=Mt(),XVt=j8(),ZVt=Xv(),KVt=jY(),JVt=m9(),QVt=y9(),eUt=eS(),bEe=aS();_Ee.exports=function(t,r,i,n){function a(u,f){return WY.coerce(t,r,bEe,u,f)}function o(u){return WY.coerce2(t,r,bEe,u)}var s=XVt(t,r,a,n);if(!s){r.visible=!1;return}ZVt(t,r,n,a),a("xhoverformat"),a("yhoverformat"),a("text"),a("hovertext"),a("hoverongaps"),a("hovertemplate"),a("hovertemplatefallback");var l=a("contours.type")==="constraint";a("connectgaps",WY.isArray1D(r.z)),l?KVt(t,r,a,n,i):(JVt(t,r,a,o),QVt(t,r,a,n)),r.contours&&r.contours.coloring==="heatmap"&&eUt(a,n),a("zorder")}});var TEe=K((Jjr,AEe)=>{"use strict";AEe.exports={attributes:aS(),supplyDefaults:wEe(),calc:zY(),plot:b9().plot,style:w9(),colorbar:A9(),hoverPoints:HY(),moduleType:"trace",name:"contour",basePlotModule:vc(),categories:["cartesian","svg","2dMap","contour","showLegend"],meta:{}}});var SEe=K((Qjr,MEe)=>{"use strict";MEe.exports=TEe()});var $Y=K((eWr,DEe)=>{"use strict";var{hovertemplateAttrs:tUt,texttemplateAttrs:rUt,templatefallbackAttrs:EEe}=yu(),iUt=im(),hp=Zf(),nUt=Au(),kEe=Wu(),aUt=yh().dash,u2=Os().extendFlat,av=hp.marker,hS=hp.line,CEe=av.line;DEe.exports={a:{valType:"data_array",editType:"calc"},b:{valType:"data_array",editType:"calc"},c:{valType:"data_array",editType:"calc"},sum:{valType:"number",dflt:0,min:0,editType:"calc"},mode:u2({},hp.mode,{dflt:"markers"}),text:u2({},hp.text,{}),texttemplate:rUt({editType:"plot"},{keys:["a","b","c","text"]}),texttemplatefallback:EEe({editType:"plot"}),hovertext:u2({},hp.hovertext,{}),line:{color:hS.color,width:hS.width,dash:aUt,backoff:hS.backoff,shape:u2({},hS.shape,{values:["linear","spline"]}),smoothing:hS.smoothing,editType:"calc"},connectgaps:hp.connectgaps,cliponaxis:hp.cliponaxis,fill:u2({},hp.fill,{values:["none","toself","tonext"],dflt:"none"}),fillcolor:iUt(),marker:u2({symbol:av.symbol,opacity:av.opacity,angle:av.angle,angleref:av.angleref,standoff:av.standoff,maxdisplayed:av.maxdisplayed,size:av.size,sizeref:av.sizeref,sizemin:av.sizemin,sizemode:av.sizemode,line:u2({width:CEe.width,dash:CEe.dash,editType:"calc"},kEe("marker.line")),gradient:av.gradient,editType:"calc"},kEe("marker")),textfont:hp.textfont,textposition:hp.textposition,selected:hp.selected,unselected:hp.unselected,hoverinfo:u2({},nUt.hoverinfo,{flags:["a","b","c","text","name"]}),hoveron:hp.hoveron,hovertemplate:tUt(),hovertemplatefallback:EEe()}});var zEe=K((tWr,PEe)=>{"use strict";var FEe=Mt(),oUt=(rm(),ar(tm)),IA=ff(),sUt=Yp(),lUt=Zv(),LEe=Jw(),uUt=Kv(),fUt=am(),cUt=$Y();PEe.exports=function(t,r,i,n){function a(h,d){return FEe.coerce(t,r,cUt,h,d)}var o=a("a"),s=a("b"),l=a("c"),u;if(o?(u=o.length,s?(u=Math.min(u,s.length),l&&(u=Math.min(u,l.length))):l?u=Math.min(u,l.length):u=0):s&&l&&(u=Math.min(s.length,l.length)),!u){r.visible=!1;return}r._length=u,a("sum"),a("text"),a("hovertext"),r.hoveron!=="fills"&&(a("hovertemplate"),a("hovertemplatefallback"));var f=u{"use strict";var YY=Cs();IEe.exports=function(t,r,i){var n={},a=i[r.subplot]._subplot;return n.aLabel=YY.tickText(a.aaxis,t.a,!0).text,n.bLabel=YY.tickText(a.baxis,t.b,!0).text,n.cLabel=YY.tickText(a.caxis,t.c,!0).text,n}});var NEe=K((iWr,OEe)=>{"use strict";var XY=Gs(),hUt=Xp(),dUt=om(),pUt=np(),vUt=Zp().calcMarkerSize,BEe=["a","b","c"],qEe={a:["b","c"],b:["a","c"],c:["a","b"]};OEe.exports=function(t,r){var i=t._fullLayout[r.subplot],n=i.sum,a=r.sum||n,o={a:r.a,b:r.b,c:r.c},s=r.ids,l,u,f,c,h,d;for(l=0;l{"use strict";var mUt=nA();VEe.exports=function(t,r,i){var n=r.plotContainer;n.select(".scatterlayer").selectAll("*").remove();for(var a=r.xaxis,o=r.yaxis,s={xaxis:a,yaxis:o,plot:n,layerClipId:r._hasClipOnAxisFalse?r.clipIdRelative:null},l=r.layers.frontplot.select("g.scatterlayer"),u=0;u{"use strict";var yUt=lA();GEe.exports=function(t,r,i,n){var a=yUt(t,r,i,n);if(!a||a[0].index===!1)return;var o=a[0];if(o.index===void 0){var s=1-o.y0/t.ya._length,l=t.xa._length,u=l*s/2,f=l-u;return o.x0=Math.max(Math.min(o.x0,f),u),o.x1=Math.max(Math.min(o.x1,f),u),a}var c=o.cd[o.index],h=o.trace,d=o.subplot;o.a=c.a,o.b=c.b,o.c=c.c,o.xLabelVal=void 0,o.yLabelVal=void 0;var p={};p[h.subplot]={_subplot:d};var v=h._module.formatLabels(c,h,p);o.aLabel=v.aLabel,o.bLabel=v.bLabel,o.cLabel=v.cLabel;var y=c.hi||h.hoverinfo,m=[];function w(b,M){m.push(b._hovertitle+": "+M)}if(!h.hovertemplate){var _=y.split("+");_.indexOf("all")!==-1&&(_=["a","b","c"]),_.indexOf("a")!==-1&&w(d.aaxis,o.aLabel),_.indexOf("b")!==-1&&w(d.baxis,o.bLabel),_.indexOf("c")!==-1&&w(d.caxis,o.cLabel)}return o.extraText=m.join("
"),o.hovertemplate=h.hovertemplate,a}});var WEe=K((oWr,jEe)=>{"use strict";jEe.exports=function(t,r,i,n,a){if(r.xa&&(t.xaxis=r.xa),r.ya&&(t.yaxis=r.ya),n[a]){var o=n[a];t.a=o.a,t.b=o.b,t.c=o.c}else t.a=r.a,t.b=r.b,t.c=r.c;return t}});var ike=K((sWr,rke)=>{"use strict";var JEe=No(),ZY=Ho(),_y=Mt(),dm=_y.strTranslate,M9=_y._,Kb=ko(),S9=Bs(),dS=G1(),KY=Os().extendFlat,gUt=yf(),f2=Cs(),$Ee=N0(),YEe=Uf(),QEe=X1(),XEe=QEe.freeMode,xUt=QEe.rectMode,JY=pb(),bUt=uh().prepSelect,_Ut=uh().selectOnClick,wUt=uh().clearOutline,AUt=uh().clearSelectionsCache,eke=(Uc(),ar(Vc));function tke(e,t){this.id=e.id,this.graphDiv=e.graphDiv,this.init(t),this.makeFramework(t),this.updateFx(t),this.aTickLayout=null,this.bTickLayout=null,this.cTickLayout=null}rke.exports=tke;var pm=tke.prototype;pm.init=function(e){this.container=e._ternarylayer,this.defs=e._defs,this.layoutId=e._uid,this.traceHash={},this.layers={}};pm.plot=function(e,t){var r=this,i=t[r.id],n=t._size;r._hasClipOnAxisFalse=!1;for(var a=0;aRA*u?(m=u,y=m*RA):(y=l,m=y/RA),w=o*y/l,_=s*m/u,p=t.l+t.w*n-y/2,v=t.t+t.h*(1-a)-m/2,r.x0=p,r.y0=v,r.w=y,r.h=m,r.sum=f,r.xaxis={type:"linear",range:[c+2*d-f,f-c-2*h],domain:[n-w/2,n+w/2],_id:"x"},dS(r.xaxis,r.graphDiv._fullLayout),r.xaxis.setScale(),r.xaxis.isPtWithinRange=function(D){return D.a>=r.aaxis.range[0]&&D.a<=r.aaxis.range[1]&&D.b>=r.baxis.range[1]&&D.b<=r.baxis.range[0]&&D.c>=r.caxis.range[1]&&D.c<=r.caxis.range[0]},r.yaxis={type:"linear",range:[c,f-h-d],domain:[a-_/2,a+_/2],_id:"y"},dS(r.yaxis,r.graphDiv._fullLayout),r.yaxis.setScale(),r.yaxis.isPtWithinRange=function(){return!0};var b=r.yaxis.domain[0],M=r.aaxis=KY({},e.aaxis,{range:[c,f-h-d],side:"left",tickangle:(+e.aaxis.tickangle||0)-30,domain:[b,b+_*RA],anchor:"free",position:0,_id:"y",_length:y});dS(M,r.graphDiv._fullLayout),M.setScale();var x=r.baxis=KY({},e.baxis,{range:[f-c-d,h],side:"bottom",domain:r.xaxis.domain,anchor:"free",position:0,_id:"x",_length:y});dS(x,r.graphDiv._fullLayout),x.setScale();var A=r.caxis=KY({},e.caxis,{range:[f-c-h,d],side:"right",tickangle:(+e.caxis.tickangle||0)+30,domain:[b,b+_*RA],anchor:"free",position:0,_id:"y",_length:y});dS(A,r.graphDiv._fullLayout),A.setScale();var T="M"+p+","+(v+m)+"h"+y+"l-"+y/2+",-"+m+"Z";r.clipDef.select("path").attr("d",T),r.layers.plotbg.select("path").attr("d",T);var g="M0,"+m+"h"+y+"l-"+y/2+",-"+m+"Z";r.clipDefRelative.select("path").attr("d",g);var E=dm(p,v);r.plotContainer.selectAll(".scatterlayer,.maplayer").attr("transform",E),r.clipDefRelative.select("path").attr("transform",null);var S=dm(p-x._offset,v+m);r.layers.baxis.attr("transform",S),r.layers.bgrid.attr("transform",S);var C=dm(p+y/2,v)+"rotate(30)"+dm(0,-M._offset);r.layers.aaxis.attr("transform",C),r.layers.agrid.attr("transform",C);var k=dm(p+y/2,v)+"rotate(-30)"+dm(0,-A._offset);r.layers.caxis.attr("transform",k),r.layers.cgrid.attr("transform",k),r.drawAxes(!0),r.layers.aline.select("path").attr("d",M.showline?"M"+p+","+(v+m)+"l"+y/2+",-"+m:"M0,0").call(Kb.stroke,M.linecolor||"#000").style("stroke-width",(M.linewidth||0)+"px"),r.layers.bline.select("path").attr("d",x.showline?"M"+p+","+(v+m)+"h"+y:"M0,0").call(Kb.stroke,x.linecolor||"#000").style("stroke-width",(x.linewidth||0)+"px"),r.layers.cline.select("path").attr("d",A.showline?"M"+(p+y/2)+","+v+"l"+y/2+","+m:"M0,0").call(Kb.stroke,A.linecolor||"#000").style("stroke-width",(A.linewidth||0)+"px"),r.graphDiv._context.staticPlot||r.initInteractions(),S9.setClipUrl(r.layers.frontplot,r._hasClipOnAxisFalse?null:r.clipId,r.graphDiv)};pm.drawAxes=function(e){var t=this,r=t.graphDiv,i=t.id.slice(7)+"title",n=t.layers,a=t.aaxis,o=t.baxis,s=t.caxis;if(t.drawAx(a),t.drawAx(o),t.drawAx(s),e){var l=Math.max(a.showticklabels?a.tickfont.size/2:0,(s.showticklabels?s.tickfont.size*.75:0)+(s.ticks==="outside"?s.ticklen*.87:0)),u=(o.showticklabels?o.tickfont.size:0)+(o.ticks==="outside"?o.ticklen:0)+3;n["a-title"]=JY.draw(r,"a"+i,{propContainer:a,propName:t.id+".aaxis.title.text",placeholder:M9(r,"Click to enter Component A title"),attributes:{x:t.x0+t.w/2,y:t.y0-a.title.font.size/3-l,"text-anchor":"middle"}}),n["b-title"]=JY.draw(r,"b"+i,{propContainer:o,propName:t.id+".baxis.title.text",placeholder:M9(r,"Click to enter Component B title"),attributes:{x:t.x0-u,y:t.y0+t.h+o.title.font.size*.83+u,"text-anchor":"middle"}}),n["c-title"]=JY.draw(r,"c"+i,{propContainer:s,propName:t.id+".caxis.title.text",placeholder:M9(r,"Click to enter Component C title"),attributes:{x:t.x0+t.w+u,y:t.y0+t.h+s.title.font.size*.83+u,"text-anchor":"middle"}})}};pm.drawAx=function(e){var t=this,r=t.graphDiv,i=e._name,n=i.charAt(0),a=e._id,o=t.layers[i],s=30,l=n+"tickLayout",u=TUt(e);t[l]!==u&&(o.selectAll("."+a+"tick").remove(),t[l]=u),e.setScale();var f=f2.calcTicks(e),c=f2.clipEnds(e,f),h=f2.makeTransTickFn(e),d=f2.getTickSigns(e)[2],p=_y.deg2rad(s),v=d*(e.linewidth||1)/2,y=d*e.ticklen,m=t.w,w=t.h,_=n==="b"?"M0,"+v+"l"+Math.sin(p)*y+","+Math.cos(p)*y:"M"+v+",0l"+Math.cos(p)*y+","+-Math.sin(p)*y,b={a:"M0,0l"+w+",-"+m/2,b:"M0,0l-"+m/2+",-"+w,c:"M0,0l-"+w+","+m/2}[n];f2.drawTicks(r,e,{vals:e.ticks==="inside"?c:f,layer:o,path:_,transFn:h,crisp:!1}),f2.drawGrid(r,e,{vals:c,layer:t.layers[n+"grid"],path:b,transFn:h,crisp:!1}),f2.drawLabels(r,e,{vals:f,layer:o,transFn:h,labelFns:f2.makeLabelFns(e,0,s)})};function TUt(e){return e.ticks+String(e.ticklen)+String(e.showticklabels)}var Ah=eke.MINZOOM/2+.87,MUt="m-0.87,.5h"+Ah+"v3h-"+(Ah+5.2)+"l"+(Ah/2+2.6)+",-"+(Ah*.87+4.5)+"l2.6,1.5l-"+Ah/2+","+Ah*.87+"Z",SUt="m0.87,.5h-"+Ah+"v3h"+(Ah+5.2)+"l-"+(Ah/2+2.6)+",-"+(Ah*.87+4.5)+"l-2.6,1.5l"+Ah/2+","+Ah*.87+"Z",EUt="m0,1l"+Ah/2+","+Ah*.87+"l2.6,-1.5l-"+(Ah/2+2.6)+",-"+(Ah*.87+4.5)+"l-"+(Ah/2+2.6)+","+(Ah*.87+4.5)+"l2.6,1.5l"+Ah/2+",-"+Ah*.87+"Z",kUt="m0.5,0.5h5v-2h-5v-5h-2v5h-5v2h5v5h2Z",ZEe=!0;pm.clearOutline=function(){AUt(this.dragOptions),wUt(this.dragOptions.gd)};pm.initInteractions=function(){var e=this,t=e.layers.plotbg.select("path").node(),r=e.graphDiv,i=r._fullLayout._zoomlayer,n,a;this.dragOptions={element:t,gd:r,plotinfo:{id:e.id,domain:r._fullLayout[e.id].domain,xaxis:e.xaxis,yaxis:e.yaxis},subplot:e.id,prepFn:function(S,C,k){e.dragOptions.xaxes=[e.xaxis],e.dragOptions.yaxes=[e.yaxis],n=r._fullLayout._invScaleX,a=r._fullLayout._invScaleY;var D=e.dragOptions.dragmode=r._fullLayout.dragmode;XEe(D)?e.dragOptions.minDrag=1:e.dragOptions.minDrag=void 0,D==="zoom"?(e.dragOptions.moveFn=x,e.dragOptions.clickFn=m,e.dragOptions.doneFn=A,w(S,C,k)):D==="pan"?(e.dragOptions.moveFn=g,e.dragOptions.clickFn=m,e.dragOptions.doneFn=E,T(),e.clearOutline(r)):(xUt(D)||XEe(D))&&bUt(S,C,k,e.dragOptions,D)}};var o,s,l,u,f,c,h,d,p,v;function y(S){var C={};return C[e.id+".aaxis.min"]=S.a,C[e.id+".baxis.min"]=S.b,C[e.id+".caxis.min"]=S.c,C}function m(S,C){var k=r._fullLayout.clickmode;KEe(r),S===2&&(r.emit("plotly_doubleclick",null),ZY.call("_guiRelayout",r,y({a:0,b:0,c:0}))),k.indexOf("select")>-1&&S===1&&_Ut(C,r,[e.xaxis],[e.yaxis],e.id,e.dragOptions),k.indexOf("event")>-1&&YEe.click(r,C,e.id)}function w(S,C,k){var D=t.getBoundingClientRect();o=C-D.left,s=k-D.top,r._fullLayout._calcInverseTransform(r);var L=r._fullLayout._invTransform,P=_y.apply3DTransform(L)(o,s);o=P[0],s=P[1],l={a:e.aaxis.range[0],b:e.baxis.range[1],c:e.caxis.range[1]},f=l,u=e.aaxis.range[1]-l.a,c=Kb.luminosity(e.graphDiv._fullLayout[e.id].bgcolor),h="M0,"+e.h+"L"+e.w/2+", 0L"+e.w+","+e.h+"Z",d=!1,p=i.append("path").attr("class","zoombox").attr("transform",dm(e.x0,e.y0)).style({fill:c>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("d",h),v=i.append("path").attr("class","zoombox-corners").attr("transform",dm(e.x0,e.y0)).style({fill:Kb.background,stroke:Kb.defaultLine,"stroke-width":1,opacity:0}).attr("d","M0,0Z"),e.clearOutline(r)}function _(S,C){return 1-C/e.h}function b(S,C){return 1-(S+(e.h-C)/Math.sqrt(3))/e.w}function M(S,C){return(S-(e.h-C)/Math.sqrt(3))/e.w}function x(S,C){var k=o+S*n,D=s+C*a,L=Math.max(0,Math.min(1,_(o,s),_(k,D))),P=Math.max(0,Math.min(1,b(o,s),b(k,D))),I=Math.max(0,Math.min(1,M(o,s),M(k,D))),F=(L/2+I)*e.w,z=(1-L/2-P)*e.w,B=(F+z)/2,O=z-F,W=(1-L)*e.h,X=W-O/RA;O.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),v.transition().style("opacity",1).duration(200),d=!0),r.emit("plotly_relayouting",y(f))}function A(){KEe(r),f!==l&&(ZY.call("_guiRelayout",r,y(f)),ZEe&&r.data&&r._context.showTips&&(_y.notifier(M9(r,"Double-click to zoom back out"),"long",r),ZEe=!1))}function T(){l={a:e.aaxis.range[0],b:e.baxis.range[1],c:e.caxis.range[1]},f=l}function g(S,C){var k=S/e.xaxis._m,D=C/e.yaxis._m;f={a:l.a-D,b:l.b+(k+D)/2,c:l.c-(k-D)/2};var L=[f.a,f.b,f.c].sort(_y.sorterAsc),P={a:L.indexOf(f.a),b:L.indexOf(f.b),c:L.indexOf(f.c)};L[0]<0&&(L[1]+L[0]/2<0?(L[2]+=L[0]+L[1],L[0]=L[1]=0):(L[2]+=L[0]/2,L[1]+=L[0]/2,L[0]=0),f={a:L[P.a],b:L[P.b],c:L[P.c]},C=(l.a-f.a)*e.yaxis._m,S=(l.c-f.c-l.b+f.b)*e.xaxis._m);var I=dm(e.x0+S,e.y0+C);e.plotContainer.selectAll(".scatterlayer,.maplayer").attr("transform",I);var F=dm(-S,-C);e.clipDefRelative.select("path").attr("transform",F),e.aaxis.range=[f.a,e.sum-f.b-f.c],e.baxis.range=[e.sum-f.a-f.c,f.b],e.caxis.range=[e.sum-f.a-f.b,f.c],e.drawAxes(!1),e._hasClipOnAxisFalse&&e.plotContainer.select(".scatterlayer").selectAll(".trace").call(S9.hideOutsideRangePoints,e),r.emit("plotly_relayouting",y(f))}function E(){ZY.call("_guiRelayout",r,y(f))}t.onmousemove=function(S){YEe.hover(r,S,e.id),r._fullLayout._lasthover=t,r._fullLayout._hoversubplot=e.id},t.onmouseout=function(S){r._dragging||$Ee.unhover(r,S)},$Ee.init(this.dragOptions)};function KEe(e){JEe.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}});var tX=K((lWr,nke)=>{"use strict";var CUt=Nc(),DUt=kf().attributes,Cu=Lh(),FUt=Ef().overrideAll,QY=Os().extendFlat,eX={title:{text:Cu.title.text,font:Cu.title.font},color:Cu.color,tickmode:Cu.minor.tickmode,nticks:QY({},Cu.nticks,{dflt:6,min:1}),tick0:Cu.tick0,dtick:Cu.dtick,tickvals:Cu.tickvals,ticktext:Cu.ticktext,ticks:Cu.ticks,ticklen:Cu.ticklen,tickwidth:Cu.tickwidth,tickcolor:Cu.tickcolor,ticklabelstep:Cu.ticklabelstep,showticklabels:Cu.showticklabels,labelalias:Cu.labelalias,showtickprefix:Cu.showtickprefix,tickprefix:Cu.tickprefix,showticksuffix:Cu.showticksuffix,ticksuffix:Cu.ticksuffix,showexponent:Cu.showexponent,exponentformat:Cu.exponentformat,minexponent:Cu.minexponent,separatethousands:Cu.separatethousands,tickfont:Cu.tickfont,tickangle:Cu.tickangle,tickformat:Cu.tickformat,tickformatstops:Cu.tickformatstops,hoverformat:Cu.hoverformat,showline:QY({},Cu.showline,{dflt:!0}),linecolor:Cu.linecolor,linewidth:Cu.linewidth,showgrid:QY({},Cu.showgrid,{dflt:!0}),gridcolor:Cu.gridcolor,gridwidth:Cu.gridwidth,griddash:Cu.griddash,layer:Cu.layer,min:{valType:"number",dflt:0,min:0}},E9=nke.exports=FUt({domain:DUt({name:"ternary"}),bgcolor:{valType:"color",dflt:CUt.background},sum:{valType:"number",dflt:1,min:0},aaxis:eX,baxis:eX,caxis:eX},"plot","from-root");E9.uirevision={valType:"any",editType:"none"};E9.aaxis.uirevision=E9.baxis.uirevision=E9.caxis.uirevision={valType:"any",editType:"none"}});var Jb=K((uWr,ake)=>{"use strict";var LUt=Mt(),PUt=fu(),zUt=kf().defaults;ake.exports=function(t,r,i,n){var a=n.type,o=n.attributes,s=n.handleDefaults,l=n.partition||"x",u=r._subplots[a],f=u.length,c=f&&u[0].replace(/\d+$/,""),h,d;function p(w,_){return LUt.coerce(h,d,o,w,_)}for(var v=0;v{"use strict";var IUt=ko(),RUt=fu(),k9=Mt(),BUt=Jb(),qUt=Pg(),OUt=zg(),NUt=Ew(),VUt=ub(),UUt=DM(),ske=tX(),oke=["aaxis","baxis","caxis"];lke.exports=function(t,r,i){BUt(t,r,i,{type:"ternary",attributes:ske,handleDefaults:GUt,font:r.font,paper_bgcolor:r.paper_bgcolor})};function GUt(e,t,r,i){var n=r("bgcolor"),a=r("sum");i.bgColor=IUt.combine(n,i.paper_bgcolor);for(var o,s,l,u=0;u=a&&(f.min=0,c.min=0,h.min=0,e.aaxis&&delete e.aaxis.min,e.baxis&&delete e.baxis.min,e.caxis&&delete e.caxis.min)}function HUt(e,t,r,i){var n=ske[t._name];function a(d,p){return k9.coerce(e,t,n,d,p)}a("uirevision",i.uirevision),t.type="linear";var o=a("color"),s=o!==n.color.dflt?o:r.font.color,l=t._name,u=l.charAt(0).toUpperCase(),f="Component "+u,c=a("title.text",f);t._hovertitle=c===f?c:u,k9.coerceFont(a,"title.font",r.font,{overrideDflt:{size:k9.bigFont(r.font.size),color:s}}),a("min"),VUt(e,t,a,"linear"),OUt(e,t,a,"linear"),qUt(e,t,a,"linear",{noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0}),NUt(e,t,a,{outerTicks:!0});var h=a("showticklabels");h&&(k9.coerceFont(a,"tickfont",r.font,{overrideDflt:{color:s}}),a("tickangle"),a("tickformat")),UUt(e,t,a,{dfltColor:o,bgColor:r.bgColor,blend:60,showLine:!0,showGrid:!0,noZeroLine:!0,attributes:n}),a("hoverformat"),a("layer")}});var fke=K(ov=>{"use strict";var jUt=ike(),WUt=Xh().getSubplotCalcData,$Ut=Mt().counterRegex,BA="ternary";ov.name=BA;var YUt=ov.attr="subplot";ov.idRoot=BA;ov.idRegex=ov.attrRegex=$Ut(BA);var XUt=ov.attributes={};XUt[YUt]={valType:"subplotid",dflt:"ternary",editType:"calc"};ov.layoutAttributes=tX();ov.supplyLayoutDefaults=uke();ov.plot=function(t){for(var r=t._fullLayout,i=t.calcdata,n=r._subplots[BA],a=0;a{"use strict";cke.exports={attributes:$Y(),supplyDefaults:zEe(),colorbar:Qh(),formatLabels:REe(),calc:NEe(),plot:UEe(),style:fd().style,styleOnSelect:fd().styleOnSelect,hoverPoints:HEe(),selectPoints:Rb(),eventData:WEe(),moduleType:"trace",name:"scatterternary",basePlotModule:fke(),categories:["ternary","symbols","showLegend","scatter-like"],meta:{}}});var pke=K((dWr,dke)=>{"use strict";dke.exports=hke()});var rX=K((pWr,mke)=>{"use strict";var $c=ZM(),qA=Os().extendFlat,vke=zf().axisHoverFormat;mke.exports={y:$c.y,x:$c.x,x0:$c.x0,y0:$c.y0,xhoverformat:vke("x"),yhoverformat:vke("y"),name:qA({},$c.name,{}),orientation:qA({},$c.orientation,{}),bandwidth:{valType:"number",min:0,editType:"calc"},scalegroup:{valType:"string",dflt:"",editType:"calc"},scalemode:{valType:"enumerated",values:["width","count"],dflt:"width",editType:"calc"},spanmode:{valType:"enumerated",values:["soft","hard","manual"],dflt:"soft",editType:"calc"},span:{valType:"info_array",items:[{valType:"any",editType:"calc"},{valType:"any",editType:"calc"}],editType:"calc"},line:{color:{valType:"color",editType:"style"},width:{valType:"number",min:0,dflt:2,editType:"style"},editType:"plot"},fillcolor:$c.fillcolor,points:qA({},$c.boxpoints,{}),jitter:qA({},$c.jitter,{}),pointpos:qA({},$c.pointpos,{}),width:qA({},$c.width,{}),marker:$c.marker,text:$c.text,hovertext:$c.hovertext,hovertemplate:$c.hovertemplate,hovertemplatefallback:$c.hovertemplatefallback,quartilemethod:$c.quartilemethod,box:{visible:{valType:"boolean",dflt:!1,editType:"plot"},width:{valType:"number",min:0,max:1,dflt:.25,editType:"plot"},fillcolor:{valType:"color",editType:"style"},line:{color:{valType:"color",editType:"style"},width:{valType:"number",min:0,editType:"style"},editType:"style"},editType:"plot"},meanline:{visible:{valType:"boolean",dflt:!1,editType:"plot"},color:{valType:"color",editType:"style"},width:{valType:"number",min:0,editType:"style"},editType:"plot"},side:{valType:"enumerated",values:["both","positive","negative"],dflt:"both",editType:"calc"},offsetgroup:$c.offsetgroup,alignmentgroup:$c.alignmentgroup,selected:$c.selected,unselected:$c.unselected,hoveron:{valType:"flaglist",flags:["violins","points","kde"],dflt:"violins+points+kde",extras:["all"],editType:"style"},zorder:$c.zorder}});var aX=K((vWr,yke)=>{"use strict";var iX=KM(),nX=Mt().extendFlat;yke.exports={violinmode:nX({},iX.boxmode,{}),violingap:nX({},iX.boxgap,{}),violingroupgap:nX({},iX.boxgroupgap,{})}});var wke=K((mWr,_ke)=>{"use strict";var gke=Mt(),ZUt=ko(),xke=QM(),bke=rX();_ke.exports=function(t,r,i,n){function a(M,x){return gke.coerce(t,r,bke,M,x)}function o(M,x){return gke.coerce2(t,r,bke,M,x)}if(xke.handleSampleDefaults(t,r,a,n),r.visible!==!1){a("bandwidth"),a("side");var s=a("width");s||(a("scalegroup",r.name),a("scalemode"));var l=a("span"),u;Array.isArray(l)&&(u="manual"),a("spanmode",u);var f=a("line.color",(t.marker||{}).color||i),c=a("line.width"),h=a("fillcolor",ZUt.addOpacity(r.line.color,.5));xke.handlePointsDefaults(t,r,a,{prefix:""});var d=o("box.width"),p=o("box.fillcolor",h),v=o("box.line.color",f),y=o("box.line.width",c),m=a("box.visible",!!(d||p||v||y));m||(r.box={visible:!1});var w=o("meanline.color",f),_=o("meanline.width",c),b=a("meanline.visible",!!(w||_));b||(r.meanline={visible:!1}),a("quartilemethod"),a("zorder")}}});var Tke=K((yWr,Ake)=>{"use strict";var KUt=Mt(),JUt=aX(),QUt=O8();Ake.exports=function(t,r,i){function n(a,o){return KUt.coerce(t,r,JUt,a,o)}QUt._supply(t,r,i,n,"violin")}});var C9=K(Qb=>{"use strict";var eGt=Mt(),tGt={gaussian:function(e){return 1/Math.sqrt(2*Math.PI)*Math.exp(-.5*e*e)}};Qb.makeKDE=function(e,t,r){var i=r.length,n=tGt.gaussian,a=e.bandwidth,o=1/(i*a);return function(s){for(var l=0,u=0;u{"use strict";var oX=Mt(),sX=Cs(),rGt=J$(),Mke=C9(),iGt=(Il(),ar(Bl)).BADNUM;Ske.exports=function(t,r){var i=rGt(t,r);if(i[0].t.empty)return i;for(var n=t._fullLayout,a=sX.getFromId(t,r[r.orientation==="h"?"xaxis":"yaxis"]),o=1/0,s=-1/0,l=0,u=0,f=0;f{"use strict";var sGt=V8().setPositionOffset,kke=["v","h"];Cke.exports=function(t,r){for(var i=t.calcdata,n=r.xaxis,a=r.yaxis,o=0;o{"use strict";var lX=No(),uX=Mt(),lGt=Bs(),fX=U8(),uGt=RW(),fGt=C9();Fke.exports=function(t,r,i,n){var a=t._context.staticPlot,o=t._fullLayout,s=r.xaxis,l=r.yaxis;function u(f,c){var h=uGt(f,{xaxis:s,yaxis:l,trace:c,connectGaps:!0,baseTolerance:.75,shape:"spline",simplify:!0,linearized:!0});return lGt.smoothopen(h[0],1)}uX.makeTraceGroups(n,i,"trace violins").each(function(f){var c=lX.select(this),h=f[0],d=h.t,p=h.trace;if(p.visible!==!0||d.empty){c.remove();return}var v=d.bPos,y=d.bdPos,m=r[d.valLetter+"axis"],w=r[d.posLetter+"axis"],_=p.side==="both",b=_||p.side==="positive",M=_||p.side==="negative",x=c.selectAll("path.violin").data(uX.identity);x.enter().append("path").style("vector-effect",a?"none":"non-scaling-stroke").attr("class","violin"),x.exit().remove(),x.each(function(D){var L=lX.select(this),P=D.density,I=P.length,F=w.c2l(D.pos+v,!0),z=w.l2p(F),B;if(p.width)B=d.maxKDE/y;else{var O=o._violinScaleGroupStats[p.scalegroup];B=p.scalemode==="count"?O.maxKDE/y*(O.maxCount/D.pts.length):O.maxKDE/y}var W,X,Z,j,q,Q,N;if(b){for(Q=new Array(I),j=0;j{"use strict";var Pke=No(),OA=ko(),cGt=fd().stylePoints;zke.exports=function(t){var r=Pke.select(t).selectAll("g.trace.violins");r.style("opacity",function(i){return i[0].trace.opacity}),r.each(function(i){var n=i[0].trace,a=Pke.select(this),o=n.box||{},s=o.line||{},l=n.meanline||{},u=l.width;a.selectAll("path.violin").style("stroke-width",n.line.width+"px").call(OA.stroke,n.line.color).call(OA.fill,n.fillcolor),a.selectAll("path.box").style("stroke-width",s.width+"px").call(OA.stroke,s.color).call(OA.fill,o.fillcolor);var f={"stroke-width":u+"px","stroke-dasharray":2*u+"px,"+u+"px"};a.selectAll("path.mean").style(f).call(OA.stroke,l.color),a.selectAll("path.meanline").style(f).call(OA.stroke,l.color),cGt(a,n,t)})}});var Oke=K((AWr,qke)=>{"use strict";var hGt=ko(),cX=Mt(),dGt=Cs(),Rke=iY(),Bke=C9();qke.exports=function(t,r,i,n,a){a||(a={});var o=a.hoverLayer,s=t.cd,l=s[0].trace,u=l.hoveron,f=u.indexOf("violins")!==-1,c=u.indexOf("kde")!==-1,h=[],d,p;if(f||c){var v=Rke.hoverOnBoxes(t,r,i,n);if(c&&v.length>0){var y=t.xa,m=t.ya,w,_,b,M,x;l.orientation==="h"?(x=r,w="y",b=m,_="x",M=y):(x=i,w="x",b=y,_="y",M=m);var A=s[t.index];if(x>=A.span[0]&&x<=A.span[1]){var T=cX.extendFlat({},t),g=M.c2p(x,!0),E=Bke.getKdeValue(A,l,x),S=Bke.getPositionOnKdePath(A,l,g),C=b._offset,k=b._length;T[w+"0"]=S[0],T[w+"1"]=S[1],T[_+"0"]=T[_+"1"]=g,T[_+"Label"]=_+": "+dGt.hoverLabelText(M,x,l[_+"hoverformat"])+", "+s[0].t.labels.kde+" "+E.toFixed(3);for(var D=0,L=0;L{"use strict";Nke.exports={attributes:rX(),layoutAttributes:aX(),supplyDefaults:wke(),crossTraceDefaults:QM().crossTraceDefaults,supplyLayoutDefaults:Tke(),calc:Eke(),crossTraceCalc:Dke(),plot:Lke(),style:Ike(),styleOnSelect:fd().styleOnSelect,hoverPoints:Oke(),selectPoints:nY(),moduleType:"trace",name:"violin",basePlotModule:vc(),categories:["cartesian","svg","symbols","oriented","box-violin","showLegend","violinLayout","zoomScale"],meta:{}}});var Gke=K((MWr,Uke)=>{"use strict";Uke.exports=Vke()});var Hke={};Fl(Hke,{eventDataKeys:()=>pGt});var pGt,jke=ps(()=>{"use strict";pGt=["percentInitial","percentPrevious","percentTotal"]});var dX=K((SWr,Xke)=>{"use strict";var Cf=um(),hX=Zf().line,vGt=Au(),Wke=zf().axisHoverFormat,{hovertemplateAttrs:mGt,texttemplateAttrs:yGt,templatefallbackAttrs:$ke}=yu(),Yke=(jke(),ar(Hke)),wy=Os().extendFlat,gGt=ko();Xke.exports={x:Cf.x,x0:Cf.x0,dx:Cf.dx,y:Cf.y,y0:Cf.y0,dy:Cf.dy,xperiod:Cf.xperiod,yperiod:Cf.yperiod,xperiod0:Cf.xperiod0,yperiod0:Cf.yperiod0,xperiodalignment:Cf.xperiodalignment,yperiodalignment:Cf.yperiodalignment,xhoverformat:Wke("x"),yhoverformat:Wke("y"),hovertext:Cf.hovertext,hovertemplate:mGt({},{keys:Yke.eventDataKeys}),hovertemplatefallback:$ke(),hoverinfo:wy({},vGt.hoverinfo,{flags:["name","x","y","text","percent initial","percent previous","percent total"]}),textinfo:{valType:"flaglist",flags:["label","text","percent initial","percent previous","percent total","value"],extras:["none"],editType:"plot",arrayOk:!1},texttemplate:yGt({editType:"plot"},{keys:Yke.eventDataKeys.concat(["label","value"])}),texttemplatefallback:$ke({editType:"plot"}),text:Cf.text,textposition:Cf.textposition,insidetextanchor:wy({},Cf.insidetextanchor,{dflt:"middle"}),textangle:wy({},Cf.textangle,{dflt:0}),textfont:Cf.textfont,insidetextfont:Cf.insidetextfont,outsidetextfont:Cf.outsidetextfont,constraintext:Cf.constraintext,cliponaxis:Cf.cliponaxis,orientation:wy({},Cf.orientation,{}),offset:wy({},Cf.offset,{arrayOk:!1}),width:wy({},Cf.width,{arrayOk:!1}),marker:xGt(),connector:{fillcolor:{valType:"color",editType:"style"},line:{color:wy({},hX.color,{dflt:gGt.defaultLine}),width:wy({},hX.width,{dflt:0,editType:"plot"}),dash:hX.dash,editType:"style"},visible:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},offsetgroup:Cf.offsetgroup,alignmentgroup:Cf.alignmentgroup,zorder:Cf.zorder};function xGt(){var e=wy({},Cf.marker);return delete e.pattern,delete e.cornerradius,e}});var pX=K((EWr,Zke)=>{"use strict";Zke.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"}}});var mX=K((kWr,Jke)=>{"use strict";var D9=Mt(),bGt=zb(),_Gt=up().handleText,wGt=Pb(),AGt=Xv(),Kke=dX(),vX=ko();function TGt(e,t,r,i){function n(c,h){return D9.coerce(e,t,Kke,c,h)}var a=wGt(e,t,i,n);if(!a){t.visible=!1;return}AGt(e,t,i,n),n("xhoverformat"),n("yhoverformat"),n("orientation",t.y&&!t.x?"v":"h"),n("offset"),n("width");var o=n("text");n("hovertext"),n("hovertemplate"),n("hovertemplatefallback");var s=n("textposition");_Gt(e,t,i,n,s,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),t.textposition!=="none"&&!t.texttemplate&&n("textinfo",D9.isArrayOrTypedArray(o)?"text+value":"value");var l=n("marker.color",r);n("marker.line.color",vX.defaultLine),n("marker.line.width");var u=n("connector.visible");if(u){n("connector.fillcolor",MGt(l));var f=n("connector.line.width");f&&(n("connector.line.color"),n("connector.line.dash"))}n("zorder")}function MGt(e){var t=D9.isArrayOrTypedArray(e)?"#000":e;return vX.addOpacity(t,.5*vX.opacity(t))}function SGt(e,t){var r,i;function n(o){return D9.coerce(i._input,i,Kke,o)}for(var a=0;a{"use strict";var EGt=Mt(),kGt=pX();Qke.exports=function(e,t,r){var i=!1;function n(s,l){return EGt.coerce(e,t,kGt,s,l)}for(var a=0;a{"use strict";var NA=Mt();tCe.exports=function(t,r){for(var i=0;i{"use strict";var iCe=Cs(),nCe=Jv(),CGt=rCe(),DGt=np(),pS=(Il(),ar(Bl)).BADNUM;aCe.exports=function(t,r){var i=iCe.getFromId(t,r.xaxis||"x"),n=iCe.getFromId(t,r.yaxis||"y"),a,o,s,l,u,f,c,h;r.orientation==="h"?(a=i.makeCalcdata(r,"x"),s=n.makeCalcdata(r,"y"),l=nCe(r,n,"y",s),u=!!r.yperiodalignment,f="y"):(a=n.makeCalcdata(r,"y"),s=i.makeCalcdata(r,"x"),l=nCe(r,i,"x",s),u=!!r.xperiodalignment,f="x"),o=l.vals;var d=Math.min(o.length,a.length),p=new Array(d);for(r._base=[],c=0;c{"use strict";var sCe=Ib().setGroupPositions;lCe.exports=function(t,r){var i=t._fullLayout,n=t._fullData,a=t.calcdata,o=r.xaxis,s=r.yaxis,l=[],u=[],f=[],c,h;for(h=0;h{"use strict";var F9=No(),h2=Mt(),fCe=Bs(),c2=(Il(),ar(Bl)).BADNUM,FGt=Yb(),LGt=S0().clearMinTextSize;hCe.exports=function(t,r,i,n){var a=t._fullLayout;LGt("funnel",a),PGt(t,r,i,n),zGt(t,r,i,n),FGt.plot(t,r,i,n,{mode:a.funnelmode,norm:a.funnelmode,gap:a.funnelgap,groupgap:a.funnelgroupgap})};function PGt(e,t,r,i){var n=t.xaxis,a=t.yaxis;h2.makeTraceGroups(i,r,"trace bars").each(function(o){var s=F9.select(this),l=o[0].trace,u=h2.ensureSingle(s,"g","regions");if(!l.connector||!l.connector.visible){u.remove();return}var f=l.orientation==="h",c=u.selectAll("g.region").data(h2.identity);c.enter().append("g").classed("region",!0),c.exit().remove();var h=c.size();c.each(function(d,p){if(!(p!==h-1&&!d.cNext)){var v=cCe(d,n,a,f),y=v[0],m=v[1],w="";y[0]!==c2&&m[0]!==c2&&y[1]!==c2&&m[1]!==c2&&y[2]!==c2&&m[2]!==c2&&y[3]!==c2&&m[3]!==c2&&(f?w+="M"+y[0]+","+m[1]+"L"+y[2]+","+m[2]+"H"+y[3]+"L"+y[1]+","+m[1]+"Z":w+="M"+y[1]+","+m[1]+"L"+y[2]+","+m[3]+"V"+m[2]+"L"+y[1]+","+m[0]+"Z"),w===""&&(w="M0,0Z"),h2.ensureSingle(F9.select(this),"path").attr("d",w).call(fCe.setClipUrl,t.layerClipId,e)}})})}function zGt(e,t,r,i){var n=t.xaxis,a=t.yaxis;h2.makeTraceGroups(i,r,"trace bars").each(function(o){var s=F9.select(this),l=o[0].trace,u=h2.ensureSingle(s,"g","lines");if(!l.connector||!l.connector.visible||!l.connector.line.width){u.remove();return}var f=l.orientation==="h",c=u.selectAll("g.line").data(h2.identity);c.enter().append("g").classed("line",!0),c.exit().remove();var h=c.size();c.each(function(d,p){if(!(p!==h-1&&!d.cNext)){var v=cCe(d,n,a,f),y=v[0],m=v[1],w="";y[3]!==void 0&&m[3]!==void 0&&(f?(w+="M"+y[0]+","+m[1]+"L"+y[2]+","+m[2],w+="M"+y[1]+","+m[1]+"L"+y[3]+","+m[2]):(w+="M"+y[1]+","+m[1]+"L"+y[2]+","+m[3],w+="M"+y[1]+","+m[0]+"L"+y[2]+","+m[2])),w===""&&(w="M0,0Z"),h2.ensureSingle(F9.select(this),"path").attr("d",w).call(fCe.setClipUrl,t.layerClipId,e)}})})}function cCe(e,t,r,i){var n=[],a=[],o=i?t:r,s=i?r:t;return n[0]=o.c2p(e.s0,!0),a[0]=s.c2p(e.p0,!0),n[1]=o.c2p(e.s1,!0),a[1]=s.c2p(e.p1,!0),n[2]=o.c2p(e.nextS0,!0),a[2]=s.c2p(e.nextP0,!0),n[3]=o.c2p(e.nextS1,!0),a[3]=s.c2p(e.nextP1,!0),i?[n,a]:[a,n]}});var mCe=K((zWr,vCe)=>{"use strict";var vS=No(),pCe=Bs(),gX=ko(),IGt=(ey(),ar(Qm)).DESELECTDIM,RGt=ev(),BGt=S0().resizeText,qGt=RGt.styleTextPoints;function OGt(e,t,r){var i=r||vS.select(e).selectAll('g[class^="funnellayer"]').selectAll("g.trace");BGt(e,i,"funnel"),i.style("opacity",function(n){return n[0].trace.opacity}),i.each(function(n){var a=vS.select(this),o=n[0].trace;a.selectAll(".point > path").each(function(s){if(!s.isBlank){var l=o.marker;vS.select(this).call(gX.fill,s.mc||l.color).call(gX.stroke,s.mlc||l.line.color).call(pCe.dashLine,l.line.dash,s.mlw||l.line.width).style("opacity",o.selectedpoints&&!s.selected?IGt:1)}}),qGt(a,o,e),a.selectAll(".regions").each(function(){vS.select(this).selectAll("path").style("stroke-width",0).call(gX.fill,o.connector.fillcolor)}),a.selectAll(".lines").each(function(){var s=o.connector.line;pCe.lineGroupStyle(vS.select(this).selectAll("path"),s.width,s.color,s.dash)})})}vCe.exports={style:OGt}});var xCe=K((IWr,gCe)=>{"use strict";var yCe=ko().opacity,NGt=wA().hoverOnBars,xX=Mt().formatPercent;gCe.exports=function(t,r,i,n,a){var o=NGt(t,r,i,n,a);if(o){var s=o.cd,l=s[0].trace,u=l.orientation==="h",f=o.index,c=s[f],h=u?"x":"y";o[h+"LabelVal"]=c.s,o.percentInitial=c.begR,o.percentInitialLabel=xX(c.begR,1),o.percentPrevious=c.difR,o.percentPreviousLabel=xX(c.difR,1),o.percentTotal=c.sumR,o.percentTotalLabel=xX(c.sumR,1);var d=c.hi||l.hoverinfo,p=[];if(d&&d!=="none"&&d!=="skip"){var v=d==="all",y=d.split("+"),m=function(w){return v||y.indexOf(w)!==-1};m("percent initial")&&p.push(o.percentInitialLabel+" of initial"),m("percent previous")&&p.push(o.percentPreviousLabel+" of previous"),m("percent total")&&p.push(o.percentTotalLabel+" of total")}return o.extraText=p.join("
"),o.color=VGt(l,c),[o]}};function VGt(e,t){var r=e.marker,i=t.mc||r.color,n=t.mlc||r.line.color,a=t.mlw||r.line.width;if(yCe(i))return i;if(yCe(n)&&a)return n}});var _Ce=K((RWr,bCe)=>{"use strict";bCe.exports=function(t,r){return t.x="xVal"in r?r.xVal:r.x,t.y="yVal"in r?r.yVal:r.y,"percentInitial"in r&&(t.percentInitial=r.percentInitial),"percentPrevious"in r&&(t.percentPrevious=r.percentPrevious),"percentTotal"in r&&(t.percentTotal=r.percentTotal),r.xa&&(t.xaxis=r.xa),r.ya&&(t.yaxis=r.ya),t}});var ACe=K((BWr,wCe)=>{"use strict";wCe.exports={attributes:dX(),layoutAttributes:pX(),supplyDefaults:mX().supplyDefaults,crossTraceDefaults:mX().crossTraceDefaults,supplyLayoutDefaults:eCe(),calc:oCe(),crossTraceCalc:uCe(),plot:dCe(),style:mCe().style,hoverPoints:xCe(),eventData:_Ce(),selectPoints:AA(),moduleType:"trace",name:"funnel",basePlotModule:vc(),categories:["bar-like","cartesian","svg","oriented","showLegend","zoomScale"],meta:{}}});var MCe=K((qWr,TCe)=>{"use strict";TCe.exports=ACe()});var SCe={};Fl(SCe,{eventDataKeys:()=>UGt});var UGt,ECe=ps(()=>{"use strict";UGt=["initial","delta","final"]});var wX=K((OWr,FCe)=>{"use strict";var hf=um(),bX=Zf().line,GGt=Au(),kCe=zf().axisHoverFormat,{hovertemplateAttrs:HGt,texttemplateAttrs:jGt,templatefallbackAttrs:CCe}=yu(),DCe=(ECe(),ar(SCe)),VA=Os().extendFlat,WGt=ko();function _X(e){return{marker:{color:VA({},hf.marker.color,{arrayOk:!1,editType:"style"}),line:{color:VA({},hf.marker.line.color,{arrayOk:!1,editType:"style"}),width:VA({},hf.marker.line.width,{arrayOk:!1,editType:"style"}),editType:"style"},editType:"style"},editType:"style"}}FCe.exports={measure:{valType:"data_array",dflt:[],editType:"calc"},base:{valType:"number",dflt:null,arrayOk:!1,editType:"calc"},x:hf.x,x0:hf.x0,dx:hf.dx,y:hf.y,y0:hf.y0,dy:hf.dy,xperiod:hf.xperiod,yperiod:hf.yperiod,xperiod0:hf.xperiod0,yperiod0:hf.yperiod0,xperiodalignment:hf.xperiodalignment,yperiodalignment:hf.yperiodalignment,xhoverformat:kCe("x"),yhoverformat:kCe("y"),hovertext:hf.hovertext,hovertemplate:HGt({},{keys:DCe.eventDataKeys}),hovertemplatefallback:CCe(),hoverinfo:VA({},GGt.hoverinfo,{flags:["name","x","y","text","initial","delta","final"]}),textinfo:{valType:"flaglist",flags:["label","text","initial","delta","final"],extras:["none"],editType:"plot",arrayOk:!1},texttemplate:jGt({editType:"plot"},{keys:DCe.eventDataKeys.concat(["label"])}),texttemplatefallback:CCe({editType:"plot"}),text:hf.text,textposition:hf.textposition,insidetextanchor:hf.insidetextanchor,textangle:hf.textangle,textfont:hf.textfont,insidetextfont:hf.insidetextfont,outsidetextfont:hf.outsidetextfont,constraintext:hf.constraintext,cliponaxis:hf.cliponaxis,orientation:hf.orientation,offset:hf.offset,width:hf.width,increasing:_X("increasing"),decreasing:_X("decreasing"),totals:_X("intermediate sums and total"),connector:{line:{color:VA({},bX.color,{dflt:WGt.defaultLine}),width:VA({},bX.width,{editType:"plot"}),dash:bX.dash,editType:"plot"},mode:{valType:"enumerated",values:["spanning","between"],dflt:"between",editType:"plot"},visible:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},offsetgroup:hf.offsetgroup,alignmentgroup:hf.alignmentgroup,zorder:hf.zorder}});var AX=K((NWr,LCe)=>{"use strict";LCe.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"}}});var UA={};Fl(UA,{DECREASING:()=>YGt,INCREASING:()=>$Gt});var $Gt,YGt,GA=ps(()=>{"use strict";$Gt={COLOR:"#3D9970",SYMBOL:"\u25B2"},YGt={COLOR:"#FF4136",SYMBOL:"\u25BC"}});var MX=K((VWr,RCe)=>{"use strict";var PCe=Mt(),XGt=zb(),ZGt=up().handleText,KGt=Pb(),JGt=Xv(),zCe=wX(),QGt=ko(),ICe=(GA(),ar(UA)),eHt=ICe.INCREASING.COLOR,tHt=ICe.DECREASING.COLOR,rHt="#4499FF";function TX(e,t,r){e(t+".marker.color",r),e(t+".marker.line.color",QGt.defaultLine),e(t+".marker.line.width")}function iHt(e,t,r,i){function n(u,f){return PCe.coerce(e,t,zCe,u,f)}var a=KGt(e,t,i,n);if(!a){t.visible=!1;return}JGt(e,t,i,n),n("xhoverformat"),n("yhoverformat"),n("measure"),n("orientation",t.x&&!t.y?"h":"v"),n("base"),n("offset"),n("width"),n("text"),n("hovertext"),n("hovertemplate"),n("hovertemplatefallback");var o=n("textposition");ZGt(e,t,i,n,o,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),t.textposition!=="none"&&(n("texttemplate"),n("texttemplatefallback"),t.texttemplate||n("textinfo")),TX(n,"increasing",eHt),TX(n,"decreasing",tHt),TX(n,"totals",rHt);var s=n("connector.visible");if(s){n("connector.mode");var l=n("connector.line.width");l&&(n("connector.line.color"),n("connector.line.dash"))}n("zorder")}function nHt(e,t){var r,i;function n(o){return PCe.coerce(i._input,i,zCe,o)}if(t.waterfallmode==="group")for(var a=0;a{"use strict";var aHt=Mt(),oHt=AX();BCe.exports=function(e,t,r){var i=!1;function n(s,l){return aHt.coerce(e,t,oHt,s,l)}for(var a=0;a{"use strict";var OCe=Cs(),NCe=Jv(),VCe=Mt().mergeArray,sHt=np(),UCe=(Il(),ar(Bl)).BADNUM;function SX(e){return e==="a"||e==="absolute"}function EX(e){return e==="t"||e==="total"}GCe.exports=function(t,r){var i=OCe.getFromId(t,r.xaxis||"x"),n=OCe.getFromId(t,r.yaxis||"y"),a,o,s,l,u,f;r.orientation==="h"?(a=i.makeCalcdata(r,"x"),s=n.makeCalcdata(r,"y"),l=NCe(r,n,"y",s),u=!!r.yperiodalignment,f="y"):(a=n.makeCalcdata(r,"y"),s=i.makeCalcdata(r,"x"),l=NCe(r,i,"x",s),u=!!r.xperiodalignment,f="x"),o=l.vals;for(var c=Math.min(o.length,a.length),h=new Array(c),d=0,p,v=!1,y=0;y{"use strict";var jCe=Ib().setGroupPositions;WCe.exports=function(t,r){var i=t._fullLayout,n=t._fullData,a=t.calcdata,o=r.xaxis,s=r.yaxis,l=[],u=[],f=[],c,h;for(h=0;h{"use strict";var YCe=No(),L9=Mt(),lHt=Bs(),HA=(Il(),ar(Bl)).BADNUM,uHt=Yb(),fHt=S0().clearMinTextSize;XCe.exports=function(t,r,i,n){var a=t._fullLayout;fHt("waterfall",a),uHt.plot(t,r,i,n,{mode:a.waterfallmode,norm:a.waterfallmode,gap:a.waterfallgap,groupgap:a.waterfallgroupgap}),cHt(t,r,i,n)};function cHt(e,t,r,i){var n=t.xaxis,a=t.yaxis;L9.makeTraceGroups(i,r,"trace bars").each(function(o){var s=YCe.select(this),l=o[0].trace,u=L9.ensureSingle(s,"g","lines");if(!l.connector||!l.connector.visible){u.remove();return}var f=l.orientation==="h",c=l.connector.mode,h=u.selectAll("g.line").data(L9.identity);h.enter().append("g").classed("line",!0),h.exit().remove();var d=h.size();h.each(function(p,v){if(!(v!==d-1&&!p.cNext)){var y=hHt(p,n,a,f),m=y[0],w=y[1],_="";m[0]!==HA&&w[0]!==HA&&m[1]!==HA&&w[1]!==HA&&(c==="spanning"&&!p.isSum&&v>0&&(f?_+="M"+m[0]+","+w[1]+"V"+w[0]:_+="M"+m[1]+","+w[0]+"H"+m[0]),c!=="between"&&(p.isSum||v{"use strict";var P9=No(),KCe=Bs(),JCe=ko(),dHt=(ey(),ar(Qm)).DESELECTDIM,pHt=ev(),vHt=S0().resizeText,mHt=pHt.styleTextPoints;function yHt(e,t,r){var i=r||P9.select(e).selectAll('g[class^="waterfalllayer"]').selectAll("g.trace");vHt(e,i,"waterfall"),i.style("opacity",function(n){return n[0].trace.opacity}),i.each(function(n){var a=P9.select(this),o=n[0].trace;a.selectAll(".point > path").each(function(s){if(!s.isBlank){var l=o[s.dir].marker;P9.select(this).call(JCe.fill,l.color).call(JCe.stroke,l.line.color).call(KCe.dashLine,l.line.dash,l.line.width).style("opacity",o.selectedpoints&&!s.selected?dHt:1)}}),mHt(a,o,e),a.selectAll(".lines").each(function(){var s=o.connector.line;KCe.lineGroupStyle(P9.select(this).selectAll("path"),s.width,s.color,s.dash)})})}QCe.exports={style:yHt}});var aDe=K(($Wr,nDe)=>{"use strict";var gHt=Cs().hoverLabelText,tDe=ko().opacity,xHt=wA().hoverOnBars,rDe=(GA(),ar(UA)),iDe={increasing:rDe.INCREASING.SYMBOL,decreasing:rDe.DECREASING.SYMBOL};nDe.exports=function(t,r,i,n,a){var o=xHt(t,r,i,n,a);if(!o)return;var s=o.cd,l=s[0].trace,u=l.orientation==="h",f=u?"x":"y",c=u?t.xa:t.ya;function h(x){return gHt(c,x,l[f+"hoverformat"])}var d=o.index,p=s[d],v=p.isSum?p.b+p.s:p.rawS;o.initial=p.b+p.s-v,o.delta=v,o.final=o.initial+o.delta;var y=h(Math.abs(o.delta));o.deltaLabel=v<0?"("+y+")":y,o.finalLabel=h(o.final),o.initialLabel=h(o.initial);var m=p.hi||l.hoverinfo,w=[];if(m&&m!=="none"&&m!=="skip"){var _=m==="all",b=m.split("+"),M=function(x){return _||b.indexOf(x)!==-1};p.isSum||(M("final")&&(u?!M("x"):!M("y"))&&w.push(o.finalLabel),M("delta")&&(v<0?w.push(o.deltaLabel+" "+iDe.decreasing):w.push(o.deltaLabel+" "+iDe.increasing)),M("initial")&&w.push("Initial: "+o.initialLabel))}return w.length&&(o.extraText=w.join("
")),o.color=bHt(l,p),[o]};function bHt(e,t){var r=e[t.dir].marker,i=r.color,n=r.line.color,a=r.line.width;if(tDe(i))return i;if(tDe(n)&&a)return n}});var sDe=K((YWr,oDe)=>{"use strict";oDe.exports=function(t,r){return t.x="xVal"in r?r.xVal:r.x,t.y="yVal"in r?r.yVal:r.y,"initial"in r&&(t.initial=r.initial),"delta"in r&&(t.delta=r.delta),"final"in r&&(t.final=r.final),r.xa&&(t.xaxis=r.xa),r.ya&&(t.yaxis=r.ya),t}});var uDe=K((XWr,lDe)=>{"use strict";lDe.exports={attributes:wX(),layoutAttributes:AX(),supplyDefaults:MX().supplyDefaults,crossTraceDefaults:MX().crossTraceDefaults,supplyLayoutDefaults:qCe(),calc:HCe(),crossTraceCalc:$Ce(),plot:ZCe(),style:eDe().style,hoverPoints:aDe(),eventData:sDe(),selectPoints:AA(),moduleType:"trace",name:"waterfall",basePlotModule:vc(),categories:["bar-like","cartesian","svg","oriented","showLegend","zoomScale"],meta:{}}});var cDe=K((ZWr,fDe)=>{"use strict";fDe.exports=uDe()});var mS={};Fl(mS,{colormodel:()=>kX});var kX,jA=ps(()=>{"use strict";kX={rgb:{min:[0,0,0],max:[255,255,255],fmt:e=>e.slice(0,3),suffix:["","",""]},rgba:{min:[0,0,0,0],max:[255,255,255,1],fmt:e=>e.slice(0,4),suffix:["","","",""]},rgba256:{colormodel:"rgba",zminDflt:[0,0,0,0],zmaxDflt:[255,255,255,255],min:[0,0,0,0],max:[255,255,255,1],fmt:e=>e.slice(0,4),suffix:["","","",""]},hsl:{min:[0,0,0],max:[360,100,100],fmt:e=>{let t=e.slice(0,3);return t[1]=t[1]+"%",t[2]=t[2]+"%",t},suffix:["\xB0","%","%"]},hsla:{min:[0,0,0,0],max:[360,100,100,1],fmt:e=>{let t=e.slice(0,4);return t[1]=t[1]+"%",t[2]=t[2]+"%",t},suffix:["\xB0","%","%",""]}}});var CX={};Fl(CX,{default:()=>wHt});var hDe,dDe,z9,pDe,vDe,mDe,yDe,_Ht,wHt,DX=ps(()=>{"use strict";hDe=I1(Os()),dDe=I1(Au()),z9=I1(yu()),pDe=I1(Zf());jA();vDe=["rgb","rgba","rgba256","hsl","hsla"],mDe=[],yDe=[];for(let e of vDe){let t=kX[e];mDe.push(`For the \`${e}\` colormodel, it is [${(t.zminDflt||t.min).join(", ")}].`),yDe.push(`For the \`${e}\` colormodel, it is [${(t.zmaxDflt||t.max).join(", ")}].`)}_Ht={source:{valType:"string",editType:"calc",description:["Specifies the data URI of the image to be visualized.",'The URI consists of "data:image/[][;base64\\\\],"'].join(" ")},z:{valType:"data_array",editType:"calc",description:["A 2-dimensional array in which each element is an array of 3 or 4 numbers representing a color."].join(" ")},colormodel:{valType:"enumerated",values:vDe,editType:"calc",description:["Color model used to map the numerical color components described in `z` into colors.","If `source` is specified, this attribute will be set to `rgba256`","otherwise it defaults to `rgb`."].join(" ")},zsmooth:{valType:"enumerated",values:["fast",!1],dflt:!1,editType:"plot",description:["Picks a smoothing algorithm used to smooth `z` data.","This only applies for image traces that use the `source` attribute."].join(" ")},zmin:{valType:"info_array",items:[{valType:"number",editType:"calc"},{valType:"number",editType:"calc"},{valType:"number",editType:"calc"},{valType:"number",editType:"calc"}],editType:"calc",description:["Array defining the lower bound for each color component.","Note that the default value will depend on the colormodel.",mDe.join(" ")].join(" ")},zmax:{valType:"info_array",items:[{valType:"number",editType:"calc"},{valType:"number",editType:"calc"},{valType:"number",editType:"calc"},{valType:"number",editType:"calc"}],editType:"calc",description:["Array defining the higher bound for each color component.","Note that the default value will depend on the colormodel.",yDe.join(" ")].join(" ")},x0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",description:["Set the image's x position. The left edge of the image","(or the right edge if the x axis is reversed or dx is negative)","will be found at xmin=x0-dx/2"].join(" ")},y0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",description:["Set the image's y position. The top edge of the image","(or the bottom edge if the y axis is NOT reversed or if dy is negative)","will be found at ymin=y0-dy/2. By default when an image trace is","included, the y axis will be reversed so that the image is right-side-up,","but you can disable this by setting yaxis.autorange=true or by providing","an explicit y axis range."].join(" ")},dx:{valType:"number",dflt:1,editType:"calc",description:"Set the pixel's horizontal size."},dy:{valType:"number",dflt:1,editType:"calc",description:"Set the pixel's vertical size"},text:{valType:"data_array",editType:"plot",description:"Sets the text elements associated with each z value."},hovertext:{valType:"data_array",editType:"plot",description:"Same as `text`."},hoverinfo:(0,hDe.extendFlat)({},dDe.default.hoverinfo,{flags:["x","y","z","color","name","text"],dflt:"x+y+z+text+name"}),hovertemplate:(0,z9.hovertemplateAttrs)({},{keys:["z","color","colormodel"]}),hovertemplatefallback:(0,z9.templatefallbackAttrs)(),zorder:pDe.zorder},wHt=_Ht});var bDe=K((JWr,xDe)=>{"use strict";var AHt=Mt(),THt=(DX(),ar(CX)).default,gDe=(jA(),ar(mS)),MHt=hy().IMAGE_URL_PREFIX;xDe.exports=function(t,r){function i(o,s){return AHt.coerce(t,r,THt,o,s)}i("source"),r.source&&!r.source.match(MHt)&&delete r.source,r._hasSource=!!r.source;var n=i("z");if(r._hasZ=!(n===void 0||!n.length||!n[0]||!n[0].length),!r._hasZ&&!r._hasSource){r.visible=!1;return}i("x0"),i("y0"),i("dx"),i("dy");var a;r._hasZ?(i("colormodel","rgb"),a=gDe.colormodel[r.colormodel],i("zmin",a.zminDflt||a.min),i("zmax",a.zmaxDflt||a.max)):r._hasSource&&(r.colormodel="rgba256",a=gDe.colormodel[r.colormodel],r.zmin=a.zminDflt,r.zmax=a.zmaxDflt),i("zsmooth"),i("text"),i("hovertext"),i("hovertemplate"),i("hovertemplatefallback"),r._length=null,i("zorder")}});var Ay=K((QWr,FX)=>{typeof Object.create=="function"?FX.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:FX.exports=function(t,r){if(r){t.super_=r;var i=function(){};i.prototype=r.prototype,t.prototype=new i,t.prototype.constructor=t}}});var LX=K((e$r,_De)=>{_De.exports=ib().EventEmitter});var TDe=K(I9=>{"use strict";I9.byteLength=EHt;I9.toByteArray=CHt;I9.fromByteArray=LHt;var vm=[],sv=[],SHt=typeof Uint8Array!="undefined"?Uint8Array:Array,PX="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(e_=0,wDe=PX.length;e_0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");r===-1&&(r=t);var i=r===t?0:4-r%4;return[r,i]}function EHt(e){var t=ADe(e),r=t[0],i=t[1];return(r+i)*3/4-i}function kHt(e,t,r){return(t+r)*3/4-r}function CHt(e){var t,r=ADe(e),i=r[0],n=r[1],a=new SHt(kHt(e,i,n)),o=0,s=n>0?i-4:i,l;for(l=0;l>16&255,a[o++]=t>>8&255,a[o++]=t&255;return n===2&&(t=sv[e.charCodeAt(l)]<<2|sv[e.charCodeAt(l+1)]>>4,a[o++]=t&255),n===1&&(t=sv[e.charCodeAt(l)]<<10|sv[e.charCodeAt(l+1)]<<4|sv[e.charCodeAt(l+2)]>>2,a[o++]=t>>8&255,a[o++]=t&255),a}function DHt(e){return vm[e>>18&63]+vm[e>>12&63]+vm[e>>6&63]+vm[e&63]}function FHt(e,t,r){for(var i,n=[],a=t;as?s:o+a));return i===1?(t=e[r-1],n.push(vm[t>>2]+vm[t<<4&63]+"==")):i===2&&(t=(e[r-2]<<8)+e[r-1],n.push(vm[t>>10]+vm[t>>4&63]+vm[t<<2&63]+"=")),n.join("")}});var MDe=K(zX=>{zX.read=function(e,t,r,i,n){var a,o,s=n*8-i-1,l=(1<>1,f=-7,c=r?n-1:0,h=r?-1:1,d=e[t+c];for(c+=h,a=d&(1<<-f)-1,d>>=-f,f+=s;f>0;a=a*256+e[t+c],c+=h,f-=8);for(o=a&(1<<-f)-1,a>>=-f,f+=i;f>0;o=o*256+e[t+c],c+=h,f-=8);if(a===0)a=1-u;else{if(a===l)return o?NaN:(d?-1:1)*(1/0);o=o+Math.pow(2,i),a=a-u}return(d?-1:1)*o*Math.pow(2,a-i)};zX.write=function(e,t,r,i,n,a){var o,s,l,u=a*8-n-1,f=(1<>1,h=n===23?Math.pow(2,-24)-Math.pow(2,-77):0,d=i?0:a-1,p=i?1:-1,v=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,o=f):(o=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-o))<1&&(o--,l*=2),o+c>=1?t+=h/l:t+=h*Math.pow(2,1-c),t*l>=2&&(o++,l/=2),o+c>=f?(s=0,o=f):o+c>=1?(s=(t*l-1)*Math.pow(2,n),o=o+c):(s=t*Math.pow(2,c-1)*Math.pow(2,n),o=0));n>=8;e[r+d]=s&255,d+=p,s/=256,n-=8);for(o=o<0;e[r+d]=o&255,d+=p,o/=256,u-=8);e[r+d-p]|=v*128}});var r_=K(XA=>{"use strict";var IX=TDe(),$A=MDe(),SDe=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;XA.Buffer=La;XA.SlowBuffer=qHt;XA.INSPECT_MAX_BYTES=50;var R9=2147483647;XA.kMaxLength=R9;La.TYPED_ARRAY_SUPPORT=PHt();!La.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&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 PHt(){try{let e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),e.foo()===42}catch(e){return!1}}Object.defineProperty(La.prototype,"parent",{enumerable:!0,get:function(){if(La.isBuffer(this))return this.buffer}});Object.defineProperty(La.prototype,"offset",{enumerable:!0,get:function(){if(La.isBuffer(this))return this.byteOffset}});function Ty(e){if(e>R9)throw new RangeError('The value "'+e+'" is invalid for option "size"');let t=new Uint8Array(e);return Object.setPrototypeOf(t,La.prototype),t}function La(e,t,r){if(typeof e=="number"){if(typeof t=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return OX(e)}return DDe(e,t,r)}La.poolSize=8192;function DDe(e,t,r){if(typeof e=="string")return IHt(e,t);if(ArrayBuffer.isView(e))return RHt(e);if(e==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(mm(e,ArrayBuffer)||e&&mm(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(mm(e,SharedArrayBuffer)||e&&mm(e.buffer,SharedArrayBuffer)))return BX(e,t,r);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let i=e.valueOf&&e.valueOf();if(i!=null&&i!==e)return La.from(i,t,r);let n=BHt(e);if(n)return n;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return La.from(e[Symbol.toPrimitive]("string"),t,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}La.from=function(e,t,r){return DDe(e,t,r)};Object.setPrototypeOf(La.prototype,Uint8Array.prototype);Object.setPrototypeOf(La,Uint8Array);function FDe(e){if(typeof e!="number")throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function zHt(e,t,r){return FDe(e),e<=0?Ty(e):t!==void 0?typeof r=="string"?Ty(e).fill(t,r):Ty(e).fill(t):Ty(e)}La.alloc=function(e,t,r){return zHt(e,t,r)};function OX(e){return FDe(e),Ty(e<0?0:NX(e)|0)}La.allocUnsafe=function(e){return OX(e)};La.allocUnsafeSlow=function(e){return OX(e)};function IHt(e,t){if((typeof t!="string"||t==="")&&(t="utf8"),!La.isEncoding(t))throw new TypeError("Unknown encoding: "+t);let r=LDe(e,t)|0,i=Ty(r),n=i.write(e,t);return n!==r&&(i=i.slice(0,n)),i}function RX(e){let t=e.length<0?0:NX(e.length)|0,r=Ty(t);for(let i=0;i=R9)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+R9.toString(16)+" bytes");return e|0}function qHt(e){return+e!=e&&(e=0),La.alloc(+e)}La.isBuffer=function(t){return t!=null&&t._isBuffer===!0&&t!==La.prototype};La.compare=function(t,r){if(mm(t,Uint8Array)&&(t=La.from(t,t.offset,t.byteLength)),mm(r,Uint8Array)&&(r=La.from(r,r.offset,r.byteLength)),!La.isBuffer(t)||!La.isBuffer(r))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===r)return 0;let i=t.length,n=r.length;for(let a=0,o=Math.min(i,n);an.length?(La.isBuffer(o)||(o=La.from(o)),o.copy(n,a)):Uint8Array.prototype.set.call(n,o,a);else if(La.isBuffer(o))o.copy(n,a);else throw new TypeError('"list" argument must be an Array of Buffers');a+=o.length}return n};function LDe(e,t){if(La.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||mm(e,ArrayBuffer))return e.byteLength;if(typeof e!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);let r=e.length,i=arguments.length>2&&arguments[2]===!0;if(!i&&r===0)return 0;let n=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return qX(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return VDe(e).length;default:if(n)return i?-1:qX(e).length;t=(""+t).toLowerCase(),n=!0}}La.byteLength=LDe;function OHt(e,t,r){let i=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((r===void 0||r>this.length)&&(r=this.length),r<=0)||(r>>>=0,t>>>=0,r<=t))return"";for(e||(e="utf8");;)switch(e){case"hex":return XHt(this,t,r);case"utf8":case"utf-8":return zDe(this,t,r);case"ascii":return $Ht(this,t,r);case"latin1":case"binary":return YHt(this,t,r);case"base64":return jHt(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ZHt(this,t,r);default:if(i)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),i=!0}}La.prototype._isBuffer=!0;function t_(e,t,r){let i=e[t];e[t]=e[r],e[r]=i}La.prototype.swap16=function(){let t=this.length;if(t%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let r=0;rr&&(t+=" ... "),""};SDe&&(La.prototype[SDe]=La.prototype.inspect);La.prototype.compare=function(t,r,i,n,a){if(mm(t,Uint8Array)&&(t=La.from(t,t.offset,t.byteLength)),!La.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(r===void 0&&(r=0),i===void 0&&(i=t?t.length:0),n===void 0&&(n=0),a===void 0&&(a=this.length),r<0||i>t.length||n<0||a>this.length)throw new RangeError("out of range index");if(n>=a&&r>=i)return 0;if(n>=a)return-1;if(r>=i)return 1;if(r>>>=0,i>>>=0,n>>>=0,a>>>=0,this===t)return 0;let o=a-n,s=i-r,l=Math.min(o,s),u=this.slice(n,a),f=t.slice(r,i);for(let c=0;c2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,UX(r)&&(r=n?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(n)return-1;r=e.length-1}else if(r<0)if(n)r=0;else return-1;if(typeof t=="string"&&(t=La.from(t,i)),La.isBuffer(t))return t.length===0?-1:EDe(e,t,r,i,n);if(typeof t=="number")return t=t&255,typeof Uint8Array.prototype.indexOf=="function"?n?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):EDe(e,[t],r,i,n);throw new TypeError("val must be string, number or Buffer")}function EDe(e,t,r,i,n){let a=1,o=e.length,s=t.length;if(i!==void 0&&(i=String(i).toLowerCase(),i==="ucs2"||i==="ucs-2"||i==="utf16le"||i==="utf-16le")){if(e.length<2||t.length<2)return-1;a=2,o/=2,s/=2,r/=2}function l(f,c){return a===1?f[c]:f.readUInt16BE(c*a)}let u;if(n){let f=-1;for(u=r;uo&&(r=o-s),u=r;u>=0;u--){let f=!0;for(let c=0;cn&&(i=n)):i=n;let a=t.length;i>a/2&&(i=a/2);let o;for(o=0;o>>0,isFinite(i)?(i=i>>>0,n===void 0&&(n="utf8")):(n=i,i=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let a=this.length-r;if((i===void 0||i>a)&&(i=a),t.length>0&&(i<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");let o=!1;for(;;)switch(n){case"hex":return NHt(this,t,r,i);case"utf8":case"utf-8":return VHt(this,t,r,i);case"ascii":case"latin1":case"binary":return UHt(this,t,r,i);case"base64":return GHt(this,t,r,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return HHt(this,t,r,i);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}};La.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function jHt(e,t,r){return t===0&&r===e.length?IX.fromByteArray(e):IX.fromByteArray(e.slice(t,r))}function zDe(e,t,r){r=Math.min(e.length,r);let i=[],n=t;for(;n239?4:a>223?3:a>191?2:1;if(n+s<=r){let l,u,f,c;switch(s){case 1:a<128&&(o=a);break;case 2:l=e[n+1],(l&192)===128&&(c=(a&31)<<6|l&63,c>127&&(o=c));break;case 3:l=e[n+1],u=e[n+2],(l&192)===128&&(u&192)===128&&(c=(a&15)<<12|(l&63)<<6|u&63,c>2047&&(c<55296||c>57343)&&(o=c));break;case 4:l=e[n+1],u=e[n+2],f=e[n+3],(l&192)===128&&(u&192)===128&&(f&192)===128&&(c=(a&15)<<18|(l&63)<<12|(u&63)<<6|f&63,c>65535&&c<1114112&&(o=c))}}o===null?(o=65533,s=1):o>65535&&(o-=65536,i.push(o>>>10&1023|55296),o=56320|o&1023),i.push(o),n+=s}return WHt(i)}var kDe=4096;function WHt(e){let t=e.length;if(t<=kDe)return String.fromCharCode.apply(String,e);let r="",i=0;for(;ii)&&(r=i);let n="";for(let a=t;ai&&(t=i),r<0?(r+=i,r<0&&(r=0)):r>i&&(r=i),rr)throw new RangeError("Trying to access beyond buffer length")}La.prototype.readUintLE=La.prototype.readUIntLE=function(t,r,i){t=t>>>0,r=r>>>0,i||t0(t,r,this.length);let n=this[t],a=1,o=0;for(;++o>>0,r=r>>>0,i||t0(t,r,this.length);let n=this[t+--r],a=1;for(;r>0&&(a*=256);)n+=this[t+--r]*a;return n};La.prototype.readUint8=La.prototype.readUInt8=function(t,r){return t=t>>>0,r||t0(t,1,this.length),this[t]};La.prototype.readUint16LE=La.prototype.readUInt16LE=function(t,r){return t=t>>>0,r||t0(t,2,this.length),this[t]|this[t+1]<<8};La.prototype.readUint16BE=La.prototype.readUInt16BE=function(t,r){return t=t>>>0,r||t0(t,2,this.length),this[t]<<8|this[t+1]};La.prototype.readUint32LE=La.prototype.readUInt32LE=function(t,r){return t=t>>>0,r||t0(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+this[t+3]*16777216};La.prototype.readUint32BE=La.prototype.readUInt32BE=function(t,r){return t=t>>>0,r||t0(t,4,this.length),this[t]*16777216+(this[t+1]<<16|this[t+2]<<8|this[t+3])};La.prototype.readBigUInt64LE=d2(function(t){t=t>>>0,YA(t,"offset");let r=this[t],i=this[t+7];(r===void 0||i===void 0)&&yS(t,this.length-8);let n=r+this[++t]*2**8+this[++t]*2**16+this[++t]*2**24,a=this[++t]+this[++t]*2**8+this[++t]*2**16+i*2**24;return BigInt(n)+(BigInt(a)<>>0,YA(t,"offset");let r=this[t],i=this[t+7];(r===void 0||i===void 0)&&yS(t,this.length-8);let n=r*2**24+this[++t]*2**16+this[++t]*2**8+this[++t],a=this[++t]*2**24+this[++t]*2**16+this[++t]*2**8+i;return(BigInt(n)<>>0,r=r>>>0,i||t0(t,r,this.length);let n=this[t],a=1,o=0;for(;++o=a&&(n-=Math.pow(2,8*r)),n};La.prototype.readIntBE=function(t,r,i){t=t>>>0,r=r>>>0,i||t0(t,r,this.length);let n=r,a=1,o=this[t+--n];for(;n>0&&(a*=256);)o+=this[t+--n]*a;return a*=128,o>=a&&(o-=Math.pow(2,8*r)),o};La.prototype.readInt8=function(t,r){return t=t>>>0,r||t0(t,1,this.length),this[t]&128?(255-this[t]+1)*-1:this[t]};La.prototype.readInt16LE=function(t,r){t=t>>>0,r||t0(t,2,this.length);let i=this[t]|this[t+1]<<8;return i&32768?i|4294901760:i};La.prototype.readInt16BE=function(t,r){t=t>>>0,r||t0(t,2,this.length);let i=this[t+1]|this[t]<<8;return i&32768?i|4294901760:i};La.prototype.readInt32LE=function(t,r){return t=t>>>0,r||t0(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24};La.prototype.readInt32BE=function(t,r){return t=t>>>0,r||t0(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]};La.prototype.readBigInt64LE=d2(function(t){t=t>>>0,YA(t,"offset");let r=this[t],i=this[t+7];(r===void 0||i===void 0)&&yS(t,this.length-8);let n=this[t+4]+this[t+5]*2**8+this[t+6]*2**16+(i<<24);return(BigInt(n)<>>0,YA(t,"offset");let r=this[t],i=this[t+7];(r===void 0||i===void 0)&&yS(t,this.length-8);let n=(r<<24)+this[++t]*2**16+this[++t]*2**8+this[++t];return(BigInt(n)<>>0,r||t0(t,4,this.length),$A.read(this,t,!0,23,4)};La.prototype.readFloatBE=function(t,r){return t=t>>>0,r||t0(t,4,this.length),$A.read(this,t,!1,23,4)};La.prototype.readDoubleLE=function(t,r){return t=t>>>0,r||t0(t,8,this.length),$A.read(this,t,!0,52,8)};La.prototype.readDoubleBE=function(t,r){return t=t>>>0,r||t0(t,8,this.length),$A.read(this,t,!1,52,8)};function Pd(e,t,r,i,n,a){if(!La.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>n||te.length)throw new RangeError("Index out of range")}La.prototype.writeUintLE=La.prototype.writeUIntLE=function(t,r,i,n){if(t=+t,r=r>>>0,i=i>>>0,!n){let s=Math.pow(2,8*i)-1;Pd(this,t,r,i,s,0)}let a=1,o=0;for(this[r]=t&255;++o>>0,i=i>>>0,!n){let s=Math.pow(2,8*i)-1;Pd(this,t,r,i,s,0)}let a=i-1,o=1;for(this[r+a]=t&255;--a>=0&&(o*=256);)this[r+a]=t/o&255;return r+i};La.prototype.writeUint8=La.prototype.writeUInt8=function(t,r,i){return t=+t,r=r>>>0,i||Pd(this,t,r,1,255,0),this[r]=t&255,r+1};La.prototype.writeUint16LE=La.prototype.writeUInt16LE=function(t,r,i){return t=+t,r=r>>>0,i||Pd(this,t,r,2,65535,0),this[r]=t&255,this[r+1]=t>>>8,r+2};La.prototype.writeUint16BE=La.prototype.writeUInt16BE=function(t,r,i){return t=+t,r=r>>>0,i||Pd(this,t,r,2,65535,0),this[r]=t>>>8,this[r+1]=t&255,r+2};La.prototype.writeUint32LE=La.prototype.writeUInt32LE=function(t,r,i){return t=+t,r=r>>>0,i||Pd(this,t,r,4,4294967295,0),this[r+3]=t>>>24,this[r+2]=t>>>16,this[r+1]=t>>>8,this[r]=t&255,r+4};La.prototype.writeUint32BE=La.prototype.writeUInt32BE=function(t,r,i){return t=+t,r=r>>>0,i||Pd(this,t,r,4,4294967295,0),this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=t&255,r+4};function IDe(e,t,r,i,n){NDe(t,i,n,e,r,7);let a=Number(t&BigInt(4294967295));e[r++]=a,a=a>>8,e[r++]=a,a=a>>8,e[r++]=a,a=a>>8,e[r++]=a;let o=Number(t>>BigInt(32)&BigInt(4294967295));return e[r++]=o,o=o>>8,e[r++]=o,o=o>>8,e[r++]=o,o=o>>8,e[r++]=o,r}function RDe(e,t,r,i,n){NDe(t,i,n,e,r,7);let a=Number(t&BigInt(4294967295));e[r+7]=a,a=a>>8,e[r+6]=a,a=a>>8,e[r+5]=a,a=a>>8,e[r+4]=a;let o=Number(t>>BigInt(32)&BigInt(4294967295));return e[r+3]=o,o=o>>8,e[r+2]=o,o=o>>8,e[r+1]=o,o=o>>8,e[r]=o,r+8}La.prototype.writeBigUInt64LE=d2(function(t,r=0){return IDe(this,t,r,BigInt(0),BigInt("0xffffffffffffffff"))});La.prototype.writeBigUInt64BE=d2(function(t,r=0){return RDe(this,t,r,BigInt(0),BigInt("0xffffffffffffffff"))});La.prototype.writeIntLE=function(t,r,i,n){if(t=+t,r=r>>>0,!n){let l=Math.pow(2,8*i-1);Pd(this,t,r,i,l-1,-l)}let a=0,o=1,s=0;for(this[r]=t&255;++a>0)-s&255;return r+i};La.prototype.writeIntBE=function(t,r,i,n){if(t=+t,r=r>>>0,!n){let l=Math.pow(2,8*i-1);Pd(this,t,r,i,l-1,-l)}let a=i-1,o=1,s=0;for(this[r+a]=t&255;--a>=0&&(o*=256);)t<0&&s===0&&this[r+a+1]!==0&&(s=1),this[r+a]=(t/o>>0)-s&255;return r+i};La.prototype.writeInt8=function(t,r,i){return t=+t,r=r>>>0,i||Pd(this,t,r,1,127,-128),t<0&&(t=255+t+1),this[r]=t&255,r+1};La.prototype.writeInt16LE=function(t,r,i){return t=+t,r=r>>>0,i||Pd(this,t,r,2,32767,-32768),this[r]=t&255,this[r+1]=t>>>8,r+2};La.prototype.writeInt16BE=function(t,r,i){return t=+t,r=r>>>0,i||Pd(this,t,r,2,32767,-32768),this[r]=t>>>8,this[r+1]=t&255,r+2};La.prototype.writeInt32LE=function(t,r,i){return t=+t,r=r>>>0,i||Pd(this,t,r,4,2147483647,-2147483648),this[r]=t&255,this[r+1]=t>>>8,this[r+2]=t>>>16,this[r+3]=t>>>24,r+4};La.prototype.writeInt32BE=function(t,r,i){return t=+t,r=r>>>0,i||Pd(this,t,r,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=t&255,r+4};La.prototype.writeBigInt64LE=d2(function(t,r=0){return IDe(this,t,r,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});La.prototype.writeBigInt64BE=d2(function(t,r=0){return RDe(this,t,r,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function BDe(e,t,r,i,n,a){if(r+i>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function qDe(e,t,r,i,n){return t=+t,r=r>>>0,n||BDe(e,t,r,4,34028234663852886e22,-34028234663852886e22),$A.write(e,t,r,i,23,4),r+4}La.prototype.writeFloatLE=function(t,r,i){return qDe(this,t,r,!0,i)};La.prototype.writeFloatBE=function(t,r,i){return qDe(this,t,r,!1,i)};function ODe(e,t,r,i,n){return t=+t,r=r>>>0,n||BDe(e,t,r,8,17976931348623157e292,-17976931348623157e292),$A.write(e,t,r,i,52,8),r+8}La.prototype.writeDoubleLE=function(t,r,i){return ODe(this,t,r,!0,i)};La.prototype.writeDoubleBE=function(t,r,i){return ODe(this,t,r,!1,i)};La.prototype.copy=function(t,r,i,n){if(!La.isBuffer(t))throw new TypeError("argument should be a Buffer");if(i||(i=0),!n&&n!==0&&(n=this.length),r>=t.length&&(r=t.length),r||(r=0),n>0&&n=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-r>>0,i=i===void 0?this.length:i>>>0,t||(t=0);let a;if(typeof t=="number")for(a=r;a2**32?n=CDe(String(r)):typeof r=="bigint"&&(n=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(n=CDe(n)),n+="n"),i+=` It must be ${t}. Received ${n}`,i},RangeError);function CDe(e){let t="",r=e.length,i=e[0]==="-"?1:0;for(;r>=i+4;r-=3)t=`_${e.slice(r-3,r)}${t}`;return`${e.slice(0,r)}${t}`}function KHt(e,t,r){YA(t,"offset"),(e[t]===void 0||e[t+r]===void 0)&&yS(t,e.length-(r+1))}function NDe(e,t,r,i,n,a){if(e>r||e3?t===0||t===BigInt(0)?s=`>= 0${o} and < 2${o} ** ${(a+1)*8}${o}`:s=`>= -(2${o} ** ${(a+1)*8-1}${o}) and < 2 ** ${(a+1)*8-1}${o}`:s=`>= ${t}${o} and <= ${r}${o}`,new WA.ERR_OUT_OF_RANGE("value",s,e)}KHt(i,n,a)}function YA(e,t){if(typeof e!="number")throw new WA.ERR_INVALID_ARG_TYPE(t,"number",e)}function yS(e,t,r){throw Math.floor(e)!==e?(YA(e,r),new WA.ERR_OUT_OF_RANGE(r||"offset","an integer",e)):t<0?new WA.ERR_BUFFER_OUT_OF_BOUNDS:new WA.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${t}`,e)}var JHt=/[^+/0-9A-Za-z-_]/g;function QHt(e){if(e=e.split("=")[0],e=e.trim().replace(JHt,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function qX(e,t){t=t||1/0;let r,i=e.length,n=null,a=[];for(let o=0;o55295&&r<57344){if(!n){if(r>56319){(t-=3)>-1&&a.push(239,191,189);continue}else if(o+1===i){(t-=3)>-1&&a.push(239,191,189);continue}n=r;continue}if(r<56320){(t-=3)>-1&&a.push(239,191,189),n=r;continue}r=(n-55296<<10|r-56320)+65536}else n&&(t-=3)>-1&&a.push(239,191,189);if(n=null,r<128){if((t-=1)<0)break;a.push(r)}else if(r<2048){if((t-=2)<0)break;a.push(r>>6|192,r&63|128)}else if(r<65536){if((t-=3)<0)break;a.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((t-=4)<0)break;a.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return a}function ejt(e){let t=[];for(let r=0;r>8,n=r%256,a.push(n),a.push(i);return a}function VDe(e){return IX.toByteArray(QHt(e))}function B9(e,t,r,i){let n;for(n=0;n=t.length||n>=e.length);++n)t[n+r]=e[n];return n}function mm(e,t){return e instanceof t||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===t.name}function UX(e){return e!==e}var rjt=(function(){let e="0123456789abcdef",t=new Array(256);for(let r=0;r<16;++r){let i=r*16;for(let n=0;n<16;++n)t[i+n]=e[r]+e[n]}return t})();function d2(e){return typeof BigInt=="undefined"?ijt:e}function ijt(){throw new Error("BigInt not supported")}});var q9=K((a$r,UDe)=>{"use strict";UDe.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},r=Symbol("test"),i=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(i)!=="[object Symbol]")return!1;var n=42;t[r]=n;for(var a 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 s=Object.getOwnPropertyDescriptor(t,r);if(s.value!==n||s.enumerable!==!0)return!1}return!0}});var gS=K((o$r,GDe)=>{"use strict";var njt=q9();GDe.exports=function(){return njt()&&!!Symbol.toStringTag}});var O9=K((s$r,HDe)=>{"use strict";HDe.exports=Object});var WDe=K((l$r,jDe)=>{"use strict";jDe.exports=Error});var YDe=K((u$r,$De)=>{"use strict";$De.exports=EvalError});var ZDe=K((f$r,XDe)=>{"use strict";XDe.exports=RangeError});var JDe=K((c$r,KDe)=>{"use strict";KDe.exports=ReferenceError});var GX=K((h$r,QDe)=>{"use strict";QDe.exports=SyntaxError});var ZA=K((d$r,eFe)=>{"use strict";eFe.exports=TypeError});var rFe=K((p$r,tFe)=>{"use strict";tFe.exports=URIError});var nFe=K((v$r,iFe)=>{"use strict";iFe.exports=Math.abs});var oFe=K((m$r,aFe)=>{"use strict";aFe.exports=Math.floor});var lFe=K((y$r,sFe)=>{"use strict";sFe.exports=Math.max});var fFe=K((g$r,uFe)=>{"use strict";uFe.exports=Math.min});var hFe=K((x$r,cFe)=>{"use strict";cFe.exports=Math.pow});var pFe=K((b$r,dFe)=>{"use strict";dFe.exports=Math.round});var mFe=K((_$r,vFe)=>{"use strict";vFe.exports=Number.isNaN||function(t){return t!==t}});var gFe=K((w$r,yFe)=>{"use strict";var ajt=mFe();yFe.exports=function(t){return ajt(t)||t===0?t:t<0?-1:1}});var bFe=K((A$r,xFe)=>{"use strict";xFe.exports=Object.getOwnPropertyDescriptor});var i_=K((T$r,_Fe)=>{"use strict";var N9=bFe();if(N9)try{N9([],"length")}catch(e){N9=null}_Fe.exports=N9});var xS=K((M$r,wFe)=>{"use strict";var V9=Object.defineProperty||!1;if(V9)try{V9({},"a",{value:1})}catch(e){V9=!1}wFe.exports=V9});var MFe=K((S$r,TFe)=>{"use strict";var AFe=typeof Symbol!="undefined"&&Symbol,ojt=q9();TFe.exports=function(){return typeof AFe!="function"||typeof Symbol!="function"||typeof AFe("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:ojt()}});var HX=K((E$r,SFe)=>{"use strict";SFe.exports=typeof Reflect!="undefined"&&Reflect.getPrototypeOf||null});var jX=K((k$r,EFe)=>{"use strict";var sjt=O9();EFe.exports=sjt.getPrototypeOf||null});var DFe=K((C$r,CFe)=>{"use strict";var ljt="Function.prototype.bind called on incompatible ",ujt=Object.prototype.toString,fjt=Math.max,cjt="[object Function]",kFe=function(t,r){for(var i=[],n=0;n{"use strict";var pjt=DFe();FFe.exports=Function.prototype.bind||pjt});var U9=K((F$r,LFe)=>{"use strict";LFe.exports=Function.prototype.call});var G9=K((L$r,PFe)=>{"use strict";PFe.exports=Function.prototype.apply});var IFe=K((P$r,zFe)=>{"use strict";zFe.exports=typeof Reflect!="undefined"&&Reflect&&Reflect.apply});var WX=K((z$r,RFe)=>{"use strict";var vjt=KA(),mjt=G9(),yjt=U9(),gjt=IFe();RFe.exports=gjt||vjt.call(yjt,mjt)});var H9=K((I$r,BFe)=>{"use strict";var xjt=KA(),bjt=ZA(),_jt=U9(),wjt=WX();BFe.exports=function(t){if(t.length<1||typeof t[0]!="function")throw new bjt("a function is required");return wjt(xjt,_jt,t)}});var GFe=K((R$r,UFe)=>{"use strict";var Ajt=H9(),qFe=i_(),NFe;try{NFe=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!="object"||!("code"in e)||e.code!=="ERR_PROTO_ACCESS")throw e}var $X=!!NFe&&qFe&&qFe(Object.prototype,"__proto__"),VFe=Object,OFe=VFe.getPrototypeOf;UFe.exports=$X&&typeof $X.get=="function"?Ajt([$X.get]):typeof OFe=="function"?function(t){return OFe(t==null?t:VFe(t))}:!1});var j9=K((B$r,$Fe)=>{"use strict";var HFe=HX(),jFe=jX(),WFe=GFe();$Fe.exports=HFe?function(t){return HFe(t)}:jFe?function(t){if(!t||typeof t!="object"&&typeof t!="function")throw new TypeError("getProto: not an object");return jFe(t)}:WFe?function(t){return WFe(t)}:null});var YX=K((q$r,YFe)=>{"use strict";var Tjt=Function.prototype.call,Mjt=Object.prototype.hasOwnProperty,Sjt=KA();YFe.exports=Sjt.call(Tjt,Mjt)});var Y9=K((O$r,eLe)=>{"use strict";var Du,Ejt=O9(),kjt=WDe(),Cjt=YDe(),Djt=ZDe(),Fjt=JDe(),t4=GX(),e4=ZA(),Ljt=rFe(),Pjt=nFe(),zjt=oFe(),Ijt=lFe(),Rjt=fFe(),Bjt=hFe(),qjt=pFe(),Ojt=gFe(),JFe=Function,XX=function(e){try{return JFe('"use strict"; return ('+e+").constructor;")()}catch(t){}},bS=i_(),Njt=xS(),ZX=function(){throw new e4},Vjt=bS?(function(){try{return arguments.callee,ZX}catch(e){try{return bS(arguments,"callee").get}catch(t){return ZX}}})():ZX,JA=MFe()(),r0=j9(),Ujt=jX(),Gjt=HX(),QFe=G9(),_S=U9(),QA={},Hjt=typeof Uint8Array=="undefined"||!r0?Du:r0(Uint8Array),n_={__proto__:null,"%AggregateError%":typeof AggregateError=="undefined"?Du:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?Du:ArrayBuffer,"%ArrayIteratorPrototype%":JA&&r0?r0([][Symbol.iterator]()):Du,"%AsyncFromSyncIteratorPrototype%":Du,"%AsyncFunction%":QA,"%AsyncGenerator%":QA,"%AsyncGeneratorFunction%":QA,"%AsyncIteratorPrototype%":QA,"%Atomics%":typeof Atomics=="undefined"?Du:Atomics,"%BigInt%":typeof BigInt=="undefined"?Du:BigInt,"%BigInt64Array%":typeof BigInt64Array=="undefined"?Du:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array=="undefined"?Du:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView=="undefined"?Du:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":kjt,"%eval%":eval,"%EvalError%":Cjt,"%Float16Array%":typeof Float16Array=="undefined"?Du:Float16Array,"%Float32Array%":typeof Float32Array=="undefined"?Du:Float32Array,"%Float64Array%":typeof Float64Array=="undefined"?Du:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry=="undefined"?Du:FinalizationRegistry,"%Function%":JFe,"%GeneratorFunction%":QA,"%Int8Array%":typeof Int8Array=="undefined"?Du:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?Du:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?Du:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":JA&&r0?r0(r0([][Symbol.iterator]())):Du,"%JSON%":typeof JSON=="object"?JSON:Du,"%Map%":typeof Map=="undefined"?Du:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!JA||!r0?Du:r0(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Ejt,"%Object.getOwnPropertyDescriptor%":bS,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?Du:Promise,"%Proxy%":typeof Proxy=="undefined"?Du:Proxy,"%RangeError%":Djt,"%ReferenceError%":Fjt,"%Reflect%":typeof Reflect=="undefined"?Du:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set=="undefined"?Du:Set,"%SetIteratorPrototype%":typeof Set=="undefined"||!JA||!r0?Du:r0(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?Du:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":JA&&r0?r0(""[Symbol.iterator]()):Du,"%Symbol%":JA?Symbol:Du,"%SyntaxError%":t4,"%ThrowTypeError%":Vjt,"%TypedArray%":Hjt,"%TypeError%":e4,"%Uint8Array%":typeof Uint8Array=="undefined"?Du:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray=="undefined"?Du:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array=="undefined"?Du:Uint16Array,"%Uint32Array%":typeof Uint32Array=="undefined"?Du:Uint32Array,"%URIError%":Ljt,"%WeakMap%":typeof WeakMap=="undefined"?Du:WeakMap,"%WeakRef%":typeof WeakRef=="undefined"?Du:WeakRef,"%WeakSet%":typeof WeakSet=="undefined"?Du:WeakSet,"%Function.prototype.call%":_S,"%Function.prototype.apply%":QFe,"%Object.defineProperty%":Njt,"%Object.getPrototypeOf%":Ujt,"%Math.abs%":Pjt,"%Math.floor%":zjt,"%Math.max%":Ijt,"%Math.min%":Rjt,"%Math.pow%":Bjt,"%Math.round%":qjt,"%Math.sign%":Ojt,"%Reflect.getPrototypeOf%":Gjt};if(r0)try{null.error}catch(e){XFe=r0(r0(e)),n_["%Error.prototype%"]=XFe}var XFe,jjt=function e(t){var r;if(t==="%AsyncFunction%")r=XX("async function () {}");else if(t==="%GeneratorFunction%")r=XX("function* () {}");else if(t==="%AsyncGeneratorFunction%")r=XX("async function* () {}");else if(t==="%AsyncGenerator%"){var i=e("%AsyncGeneratorFunction%");i&&(r=i.prototype)}else if(t==="%AsyncIteratorPrototype%"){var n=e("%AsyncGenerator%");n&&r0&&(r=r0(n.prototype))}return n_[t]=r,r},ZFe={__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"]},wS=KA(),W9=YX(),Wjt=wS.call(_S,Array.prototype.concat),$jt=wS.call(QFe,Array.prototype.splice),KFe=wS.call(_S,String.prototype.replace),$9=wS.call(_S,String.prototype.slice),Yjt=wS.call(_S,RegExp.prototype.exec),Xjt=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Zjt=/\\(\\)?/g,Kjt=function(t){var r=$9(t,0,1),i=$9(t,-1);if(r==="%"&&i!=="%")throw new t4("invalid intrinsic syntax, expected closing `%`");if(i==="%"&&r!=="%")throw new t4("invalid intrinsic syntax, expected opening `%`");var n=[];return KFe(t,Xjt,function(a,o,s,l){n[n.length]=s?KFe(l,Zjt,"$1"):o||a}),n},Jjt=function(t,r){var i=t,n;if(W9(ZFe,i)&&(n=ZFe[i],i="%"+n[0]+"%"),W9(n_,i)){var a=n_[i];if(a===QA&&(a=jjt(i)),typeof a=="undefined"&&!r)throw new e4("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:n,name:i,value:a}}throw new t4("intrinsic "+t+" does not exist!")};eLe.exports=function(t,r){if(typeof t!="string"||t.length===0)throw new e4("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new e4('"allowMissing" argument must be a boolean');if(Yjt(/^%?[^%]*%?$/,t)===null)throw new t4("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var i=Kjt(t),n=i.length>0?i[0]:"",a=Jjt("%"+n+"%",r),o=a.name,s=a.value,l=!1,u=a.alias;u&&(n=u[0],$jt(i,Wjt([0,1],u)));for(var f=1,c=!0;f=i.length){var v=bS(s,h);c=!!v,c&&"get"in v&&!("originalValue"in v.get)?s=v.get:s=s[h]}else c=W9(s,h),s=s[h];c&&!l&&(n_[o]=s)}}return s}});var a_=K((N$r,iLe)=>{"use strict";var tLe=Y9(),rLe=H9(),Qjt=rLe([tLe("%String.prototype.indexOf%")]);iLe.exports=function(t,r){var i=tLe(t,!!r);return typeof i=="function"&&Qjt(t,".prototype.")>-1?rLe([i]):i}});var oLe=K((V$r,aLe)=>{"use strict";var eWt=gS()(),tWt=a_(),KX=tWt("Object.prototype.toString"),X9=function(t){return eWt&&t&&typeof t=="object"&&Symbol.toStringTag in t?!1:KX(t)==="[object Arguments]"},nLe=function(t){return X9(t)?!0:t!==null&&typeof t=="object"&&"length"in t&&typeof t.length=="number"&&t.length>=0&&KX(t)!=="[object Array]"&&"callee"in t&&KX(t.callee)==="[object Function]"},rWt=(function(){return X9(arguments)})();X9.isLegacyArguments=nLe;aLe.exports=rWt?X9:nLe});var hLe=K((U$r,cLe)=>{"use strict";var sLe=a_(),iWt=gS()(),nWt=YX(),aWt=i_(),eZ;iWt?(lLe=sLe("RegExp.prototype.exec"),JX={},Z9=function(){throw JX},QX={toString:Z9,valueOf:Z9},typeof Symbol.toPrimitive=="symbol"&&(QX[Symbol.toPrimitive]=Z9),eZ=function(t){if(!t||typeof t!="object")return!1;var r=aWt(t,"lastIndex"),i=r&&nWt(r,"value");if(!i)return!1;try{lLe(t,QX)}catch(n){return n===JX}}):(uLe=sLe("Object.prototype.toString"),fLe="[object RegExp]",eZ=function(t){return!t||typeof t!="object"&&typeof t!="function"?!1:uLe(t)===fLe});var lLe,JX,Z9,QX,uLe,fLe;cLe.exports=eZ});var pLe=K((G$r,dLe)=>{"use strict";var oWt=a_(),sWt=hLe(),lWt=oWt("RegExp.prototype.exec"),uWt=ZA();dLe.exports=function(t){if(!sWt(t))throw new uWt("`regex` must be a RegExp");return function(i){return lWt(t,i)!==null}}});var mLe=K((H$r,vLe)=>{"use strict";var fWt=function*(){}.constructor;vLe.exports=()=>fWt});var bLe=K((j$r,xLe)=>{"use strict";var gLe=a_(),cWt=pLe(),hWt=cWt(/^\s*(?:function)?\*/),dWt=gS()(),yLe=j9(),pWt=gLe("Object.prototype.toString"),vWt=gLe("Function.prototype.toString"),mWt=mLe();xLe.exports=function(t){if(typeof t!="function")return!1;if(hWt(vWt(t)))return!0;if(!dWt){var r=pWt(t);return r==="[object GeneratorFunction]"}if(!yLe)return!1;var i=mWt();return i&&yLe(t)===i.prototype}});var TLe=K((W$r,ALe)=>{"use strict";var wLe=Function.prototype.toString,r4=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,rZ,K9;if(typeof r4=="function"&&typeof Object.defineProperty=="function")try{rZ=Object.defineProperty({},"length",{get:function(){throw K9}}),K9={},r4(function(){throw 42},null,rZ)}catch(e){e!==K9&&(r4=null)}else r4=null;var yWt=/^\s*class\b/,iZ=function(t){try{var r=wLe.call(t);return yWt.test(r)}catch(i){return!1}},tZ=function(t){try{return iZ(t)?!1:(wLe.call(t),!0)}catch(r){return!1}},J9=Object.prototype.toString,gWt="[object Object]",xWt="[object Function]",bWt="[object GeneratorFunction]",_Wt="[object HTMLAllCollection]",wWt="[object HTML document.all class]",AWt="[object HTMLCollection]",TWt=typeof Symbol=="function"&&!!Symbol.toStringTag,MWt=!(0 in[,]),nZ=function(){return!1};typeof document=="object"&&(_Le=document.all,J9.call(_Le)===J9.call(document.all)&&(nZ=function(t){if((MWt||!t)&&(typeof t=="undefined"||typeof t=="object"))try{var r=J9.call(t);return(r===_Wt||r===wWt||r===AWt||r===gWt)&&t("")==null}catch(i){}return!1}));var _Le;ALe.exports=r4?function(t){if(nZ(t))return!0;if(!t||typeof t!="function"&&typeof t!="object")return!1;try{r4(t,null,rZ)}catch(r){if(r!==K9)return!1}return!iZ(t)&&tZ(t)}:function(t){if(nZ(t))return!0;if(!t||typeof t!="function"&&typeof t!="object")return!1;if(TWt)return tZ(t);if(iZ(t))return!1;var r=J9.call(t);return r!==xWt&&r!==bWt&&!/^\[object HTML/.test(r)?!1:tZ(t)}});var ELe=K(($$r,SLe)=>{"use strict";var SWt=TLe(),EWt=Object.prototype.toString,MLe=Object.prototype.hasOwnProperty,kWt=function(t,r,i){for(var n=0,a=t.length;n=3&&(n=i),FWt(t)?kWt(t,r,n):typeof t=="string"?CWt(t,r,n):DWt(t,r,n)}});var CLe=K((Y$r,kLe)=>{"use strict";kLe.exports=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]});var FLe=K((X$r,DLe)=>{"use strict";var aZ=CLe(),LWt=typeof globalThis=="undefined"?window:globalThis;DLe.exports=function(){for(var t=[],r=0;r{"use strict";var LLe=xS(),PWt=GX(),i4=ZA(),PLe=i_();zLe.exports=function(t,r,i){if(!t||typeof t!="object"&&typeof t!="function")throw new i4("`obj` must be an object or a function`");if(typeof r!="string"&&typeof r!="symbol")throw new i4("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new i4("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new i4("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new i4("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new i4("`loose`, if provided, must be a boolean");var n=arguments.length>3?arguments[3]:null,a=arguments.length>4?arguments[4]:null,o=arguments.length>5?arguments[5]:null,s=arguments.length>6?arguments[6]:!1,l=!!PLe&&PLe(t,r);if(LLe)LLe(t,r,{configurable:o===null&&l?l.configurable:!o,enumerable:n===null&&l?l.enumerable:!n,value:i,writable:a===null&&l?l.writable:!a});else if(s||!n&&!a&&!o)t[r]=i;else throw new PWt("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}});var lZ=K((K$r,RLe)=>{"use strict";var sZ=xS(),ILe=function(){return!!sZ};ILe.hasArrayLengthDefineBug=function(){if(!sZ)return null;try{return sZ([],"length",{value:1}).length!==1}catch(t){return!0}};RLe.exports=ILe});var VLe=K((J$r,NLe)=>{"use strict";var zWt=Y9(),BLe=oZ(),IWt=lZ()(),qLe=i_(),OLe=ZA(),RWt=zWt("%Math.floor%");NLe.exports=function(t,r){if(typeof t!="function")throw new OLe("`fn` is not a function");if(typeof r!="number"||r<0||r>4294967295||RWt(r)!==r)throw new OLe("`length` must be a positive 32-bit integer");var i=arguments.length>2&&!!arguments[2],n=!0,a=!0;if("length"in t&&qLe){var o=qLe(t,"length");o&&!o.configurable&&(n=!1),o&&!o.writable&&(a=!1)}return(n||a||!i)&&(IWt?BLe(t,"length",r,!0,!0):BLe(t,"length",r)),t}});var GLe=K((Q$r,ULe)=>{"use strict";var BWt=KA(),qWt=G9(),OWt=WX();ULe.exports=function(){return OWt(BWt,qWt,arguments)}});var AS=K((eYr,Q9)=>{"use strict";var NWt=VLe(),HLe=xS(),VWt=H9(),jLe=GLe();Q9.exports=function(t){var r=VWt(arguments),i=1+t.length-(arguments.length-1);return NWt(r,i>0?i:0,!0)};HLe?HLe(Q9.exports,"apply",{value:jLe}):Q9.exports.apply=jLe});var hZ=K((tYr,XLe)=>{"use strict";var rz=ELe(),UWt=FLe(),WLe=AS(),fZ=a_(),tz=i_(),ez=j9(),GWt=fZ("Object.prototype.toString"),YLe=gS()(),$Le=typeof globalThis=="undefined"?window:globalThis,uZ=UWt(),cZ=fZ("String.prototype.slice"),HWt=fZ("Array.prototype.indexOf",!0)||function(t,r){for(var i=0;i-1}function YWt(e){if(!e||typeof e!="object")return!1;if(!YLe){var t=cZ(GWt(e),8,-1);return $Wt(t)?t:t!=="Object"?!1:WWt(e)}return tz?jWt(e):null}XLe.exports=YWt});var KLe=K((rYr,ZLe)=>{"use strict";var XWt=hZ();ZLe.exports=function(t){return!!XWt(t)}});var vZ=K(Fu=>{"use strict";var ZWt=oLe(),KWt=bLe(),u1=hZ(),JLe=KLe();function n4(e){return e.call.bind(e)}var QLe=typeof BigInt!="undefined",ePe=typeof Symbol!="undefined",lv=n4(Object.prototype.toString),JWt=n4(Number.prototype.valueOf),QWt=n4(String.prototype.valueOf),e$t=n4(Boolean.prototype.valueOf);QLe&&(tPe=n4(BigInt.prototype.valueOf));var tPe;ePe&&(rPe=n4(Symbol.prototype.valueOf));var rPe;function MS(e,t){if(typeof e!="object")return!1;try{return t(e),!0}catch(r){return!1}}Fu.isArgumentsObject=ZWt;Fu.isGeneratorFunction=KWt;Fu.isTypedArray=JLe;function t$t(e){return typeof Promise!="undefined"&&e instanceof Promise||e!==null&&typeof e=="object"&&typeof e.then=="function"&&typeof e.catch=="function"}Fu.isPromise=t$t;function r$t(e){return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?ArrayBuffer.isView(e):JLe(e)||nPe(e)}Fu.isArrayBufferView=r$t;function i$t(e){return u1(e)==="Uint8Array"}Fu.isUint8Array=i$t;function n$t(e){return u1(e)==="Uint8ClampedArray"}Fu.isUint8ClampedArray=n$t;function a$t(e){return u1(e)==="Uint16Array"}Fu.isUint16Array=a$t;function o$t(e){return u1(e)==="Uint32Array"}Fu.isUint32Array=o$t;function s$t(e){return u1(e)==="Int8Array"}Fu.isInt8Array=s$t;function l$t(e){return u1(e)==="Int16Array"}Fu.isInt16Array=l$t;function u$t(e){return u1(e)==="Int32Array"}Fu.isInt32Array=u$t;function f$t(e){return u1(e)==="Float32Array"}Fu.isFloat32Array=f$t;function c$t(e){return u1(e)==="Float64Array"}Fu.isFloat64Array=c$t;function h$t(e){return u1(e)==="BigInt64Array"}Fu.isBigInt64Array=h$t;function d$t(e){return u1(e)==="BigUint64Array"}Fu.isBigUint64Array=d$t;function nz(e){return lv(e)==="[object Map]"}nz.working=typeof Map!="undefined"&&nz(new Map);function p$t(e){return typeof Map=="undefined"?!1:nz.working?nz(e):e instanceof Map}Fu.isMap=p$t;function az(e){return lv(e)==="[object Set]"}az.working=typeof Set!="undefined"&&az(new Set);function v$t(e){return typeof Set=="undefined"?!1:az.working?az(e):e instanceof Set}Fu.isSet=v$t;function oz(e){return lv(e)==="[object WeakMap]"}oz.working=typeof WeakMap!="undefined"&&oz(new WeakMap);function m$t(e){return typeof WeakMap=="undefined"?!1:oz.working?oz(e):e instanceof WeakMap}Fu.isWeakMap=m$t;function pZ(e){return lv(e)==="[object WeakSet]"}pZ.working=typeof WeakSet!="undefined"&&pZ(new WeakSet);function y$t(e){return pZ(e)}Fu.isWeakSet=y$t;function sz(e){return lv(e)==="[object ArrayBuffer]"}sz.working=typeof ArrayBuffer!="undefined"&&sz(new ArrayBuffer);function iPe(e){return typeof ArrayBuffer=="undefined"?!1:sz.working?sz(e):e instanceof ArrayBuffer}Fu.isArrayBuffer=iPe;function lz(e){return lv(e)==="[object DataView]"}lz.working=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"&&lz(new DataView(new ArrayBuffer(1),0,1));function nPe(e){return typeof DataView=="undefined"?!1:lz.working?lz(e):e instanceof DataView}Fu.isDataView=nPe;var dZ=typeof SharedArrayBuffer!="undefined"?SharedArrayBuffer:void 0;function TS(e){return lv(e)==="[object SharedArrayBuffer]"}function aPe(e){return typeof dZ=="undefined"?!1:(typeof TS.working=="undefined"&&(TS.working=TS(new dZ)),TS.working?TS(e):e instanceof dZ)}Fu.isSharedArrayBuffer=aPe;function g$t(e){return lv(e)==="[object AsyncFunction]"}Fu.isAsyncFunction=g$t;function x$t(e){return lv(e)==="[object Map Iterator]"}Fu.isMapIterator=x$t;function b$t(e){return lv(e)==="[object Set Iterator]"}Fu.isSetIterator=b$t;function _$t(e){return lv(e)==="[object Generator]"}Fu.isGeneratorObject=_$t;function w$t(e){return lv(e)==="[object WebAssembly.Module]"}Fu.isWebAssemblyCompiledModule=w$t;function oPe(e){return MS(e,JWt)}Fu.isNumberObject=oPe;function sPe(e){return MS(e,QWt)}Fu.isStringObject=sPe;function lPe(e){return MS(e,e$t)}Fu.isBooleanObject=lPe;function uPe(e){return QLe&&MS(e,tPe)}Fu.isBigIntObject=uPe;function fPe(e){return ePe&&MS(e,rPe)}Fu.isSymbolObject=fPe;function A$t(e){return oPe(e)||sPe(e)||lPe(e)||uPe(e)||fPe(e)}Fu.isBoxedPrimitive=A$t;function T$t(e){return typeof Uint8Array!="undefined"&&(iPe(e)||aPe(e))}Fu.isAnyArrayBuffer=T$t;["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(e){Object.defineProperty(Fu,e,{enumerable:!1,value:function(){throw new Error(e+" is not supported in userland")}})})});var mZ=K((nYr,cPe)=>{cPe.exports=function(t){return t&&typeof t=="object"&&typeof t.copy=="function"&&typeof t.fill=="function"&&typeof t.readUInt8=="function"}});var wZ=K(Lu=>{var hPe=Object.getOwnPropertyDescriptors||function(t){for(var r=Object.keys(t),i={},n=0;n=n)return s;switch(s){case"%s":return String(i[r++]);case"%d":return Number(i[r++]);case"%j":try{return JSON.stringify(i[r++])}catch(l){return"[Circular]"}default:return s}}),o=i[r];r=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),bZ(t)?r.showHidden=t:t&&Lu._extend(r,t),s_(r.showHidden)&&(r.showHidden=!1),s_(r.depth)&&(r.depth=2),s_(r.colors)&&(r.colors=!1),s_(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=S$t),hz(r,e,r.depth)}Lu.inspect=p2;p2.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]};p2.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function S$t(e,t){var r=p2.styles[t];return r?"\x1B["+p2.colors[r][0]+"m"+e+"\x1B["+p2.colors[r][1]+"m":e}function E$t(e,t){return e}function k$t(e){var t={};return e.forEach(function(r,i){t[r]=!0}),t}function hz(e,t,r){if(e.customInspect&&t&&cz(t.inspect)&&t.inspect!==Lu.inspect&&!(t.constructor&&t.constructor.prototype===t)){var i=t.inspect(r,e);return vz(i)||(i=hz(e,i,r)),i}var n=C$t(e,t);if(n)return n;var a=Object.keys(t),o=k$t(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(t)),ES(t)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return yZ(t);if(a.length===0){if(cz(t)){var s=t.name?": "+t.name:"";return e.stylize("[Function"+s+"]","special")}if(SS(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(dz(t))return e.stylize(Date.prototype.toString.call(t),"date");if(ES(t))return yZ(t)}var l="",u=!1,f=["{","}"];if(pPe(t)&&(u=!0,f=["[","]"]),cz(t)){var c=t.name?": "+t.name:"";l=" [Function"+c+"]"}if(SS(t)&&(l=" "+RegExp.prototype.toString.call(t)),dz(t)&&(l=" "+Date.prototype.toUTCString.call(t)),ES(t)&&(l=" "+yZ(t)),a.length===0&&(!u||t.length==0))return f[0]+l+f[1];if(r<0)return SS(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special");e.seen.push(t);var h;return u?h=D$t(e,t,r,o,a):h=a.map(function(d){return xZ(e,t,r,o,d,u)}),e.seen.pop(),F$t(h,l,f)}function C$t(e,t){if(s_(t))return e.stylize("undefined","undefined");if(vz(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}if(vPe(t))return e.stylize(""+t,"number");if(bZ(t))return e.stylize(""+t,"boolean");if(pz(t))return e.stylize("null","null")}function yZ(e){return"["+Error.prototype.toString.call(e)+"]"}function D$t(e,t,r,i,n){for(var a=[],o=0,s=t.length;o4)){if(r.length===4){if(r[3].type!==Jo.Alpha)return;r[3]=r[3].value}return r.length===3&&r.push({type:Jo.None,value:void 0}),r.every(n=>n.type!==Jo.Alpha)?r:void 0}}function e2t(e,t){e._i=0;let r=e[e._i++];if(!r||r.type!==Jo.Function)return;let i=ffe(e,t);if(i)return i.unshift(r.value),i}var t2t=e=>{if(typeof e!="string")return;let t=Jgt(e),r=t?e2t(t,!0):void 0,i,n=0,a=ow.length;for(;ne==="transparent"?{mode:"rgb",r:0,g:0,b:0,alpha:0}:void 0,dfe=i2t,Gx=(e,t,r)=>e+r*(t-e),n2t=(e,t,r)=>(r-e)/(t-e),UV=(e,t,r,i,n,a)=>Gx(Gx(e,t,n),Gx(r,i,n),a),a2t=(e,t,r,i,n,a,o,s,l,u,f)=>Gx(UV(e,t,r,i,l,u),UV(n,a,o,s,l,u),f),o2t=e=>{let t=[];for(let r=0;rt=>{let r=o2t(t);return i=>{let n=i*r.length,a=i>=1?r.length-1:Math.max(Math.floor(n),0),o=r[a];return o===void 0?void 0:e(o[0],o[1],n-a)}},ws=pfe(Gx),yh=e=>{let t=!1,r=e.map(i=>i!==void 0?(t=!0,i):1);return t?r:e},s2t={mode:"rgb",channels:["r","g","b","alpha"],parse:[hfe,ofe,sfe,afe,dfe,"srgb"],serialize:"srgb",interpolate:{r:ws,g:ws,b:ws,alpha:{use:ws,fixup:yh}},gamut:!0,white:{r:1,g:1,b:1},black:{r:0,g:0,b:0}},Wx=s2t,yV=(e=0)=>Math.pow(Math.abs(e),563/256)*Math.sign(e),l2t=e=>{let t=yV(e.r),r=yV(e.g),i=yV(e.b),n={mode:"xyz65",x:.5766690429101305*t+.1855582379065463*r+.1882286462349947*i,y:.297344975250536*t+.6273635662554661*r+.0752914584939979*i,z:.0270313613864123*t+.0706888525358272*r+.9913375368376386*i};return e.alpha!==void 0&&(n.alpha=e.alpha),n},GV=l2t,gV=e=>Math.pow(Math.abs(e),256/563)*Math.sign(e),u2t=({x:e,y:t,z:r,alpha:i})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let n={mode:"a98",r:gV(e*2.0415879038107465-t*.5650069742788597-.3447313507783297*r),g:gV(e*-.9692436362808798+t*1.8759675015077206+.0415550574071756*r),b:gV(e*.0134442806320312-t*.1183623922310184+1.0151749943912058*r)};return i!==void 0&&(n.alpha=i),n},HV=u2t,xV=(e=0)=>{let t=Math.abs(e);return t<=.04045?e/12.92:(Math.sign(e)||1)*Math.pow((t+.055)/1.055,2.4)},f2t=({r:e,g:t,b:r,alpha:i})=>{let n={mode:"lrgb",r:xV(e),g:xV(t),b:xV(r)};return i!==void 0&&(n.alpha=i),n},$x=f2t,c2t=e=>{let{r:t,g:r,b:i,alpha:n}=$x(e),a={mode:"xyz65",x:.4123907992659593*t+.357584339383878*r+.1804807884018343*i,y:.2126390058715102*t+.715168678767756*r+.0721923153607337*i,z:.0193308187155918*t+.119194779794626*r+.9505321522496607*i};return n!==void 0&&(a.alpha=n),a},Ag=c2t,bV=(e=0)=>{let t=Math.abs(e);return t>.0031308?(Math.sign(e)||1)*(1.055*Math.pow(t,1/2.4)-.055):e*12.92},h2t=({r:e,g:t,b:r,alpha:i},n="rgb")=>{let a={mode:n,r:bV(e),g:bV(t),b:bV(r)};return i!==void 0&&(a.alpha=i),a},Yx=h2t,d2t=({x:e,y:t,z:r,alpha:i})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let n=Yx({r:e*3.2409699419045226-t*1.537383177570094-.4986107602930034*r,g:e*-.9692436362808796+t*1.8759675015077204+.0415550574071756*r,b:e*.0556300796969936-t*.2039769588889765+1.0569715142428784*r});return i!==void 0&&(n.alpha=i),n},Tg=d2t,p2t=$l(Gs({},Wx),{mode:"a98",parse:["a98-rgb"],serialize:"a98-rgb",fromMode:{rgb:e=>HV(Ag(e)),xyz65:HV},toMode:{rgb:e=>Tg(GV(e)),xyz65:GV}}),vfe=p2t,v2t=e=>(e=e%360)<0?e+360:e,w0=v2t,eF=(e,t)=>e.map((r,i,n)=>{if(r===void 0)return r;let a=w0(r);return i===0||e[i-1]===void 0?a:t(a-w0(n[i-1]))}).reduce((r,i)=>!r.length||i===void 0||r[r.length-1]===void 0?(r.push(i),r):(r.push(i+r[r.length-1]),r),[]),V1=e=>eF(e,t=>Math.abs(t)<=180?t:t-360*Math.sign(t)),m2t=e=>eF(e,t=>Math.abs(t)>=180||t===0?t:t-360*Math.sign(t)),y2t=e=>eF(e,t=>t>=0?t:t+360),g2t=e=>eF(e,t=>t<=0?t:t-360),Xh=[-.14861,1.78277,-.29227,-.90649,1.97294,0],x2t=Math.PI/180,b2t=180/Math.PI,$ue=Xh[3]*Xh[4],Yue=Xh[1]*Xh[4],Xue=Xh[1]*Xh[2]-Xh[0]*Xh[3],_2t=({r:e,g:t,b:r,alpha:i})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let n=(Xue*r+e*$ue-t*Yue)/(Xue+$ue-Yue),a=r-n,o=(Xh[4]*(t-n)-Xh[2]*a)/Xh[3],s={mode:"cubehelix",l:n,s:n===0||n===1?void 0:Math.sqrt(a*a+o*o)/(Xh[4]*n*(1-n))};return s.s&&(s.h=Math.atan2(o,a)*b2t-120),i!==void 0&&(s.alpha=i),s},mfe=_2t,w2t=({h:e,s:t,l:r,alpha:i})=>{let n={mode:"rgb"};e=(e===void 0?0:e+120)*x2t,r===void 0&&(r=0);let a=t===void 0?0:t*r*(1-r),o=Math.cos(e),s=Math.sin(e);return n.r=r+a*(Xh[0]*o+Xh[1]*s),n.g=r+a*(Xh[2]*o+Xh[3]*s),n.b=r+a*(Xh[4]*o+Xh[5]*s),i!==void 0&&(n.alpha=i),n},yfe=w2t,t6=(e,t)=>{if(e.h===void 0||t.h===void 0||!e.s||!t.s)return 0;let r=w0(e.h),i=w0(t.h),n=Math.sin((i-r+360)/2*Math.PI/180);return 2*Math.sqrt(e.s*t.s)*n},gfe=(e,t)=>{if(e.h===void 0||t.h===void 0)return 0;let r=w0(e.h),i=w0(t.h);return Math.abs(i-r)>180?r-(i-360*Math.sign(i-r)):i-r},r6=(e,t)=>{if(e.h===void 0||t.h===void 0||!e.c||!t.c)return 0;let r=w0(e.h),i=w0(t.h),n=Math.sin((i-r+360)/2*Math.PI/180);return 2*Math.sqrt(e.c*t.c)*n},sw=(e="rgb",t=[1,1,1,0])=>{let r=q0(e),i=r.channels,n=r.difference,a=Lf(e);return(o,s)=>{let l=a(o),u=a(s);return Math.sqrt(i.reduce((f,c,h)=>{let d=n[c]?n[c](l,u):l[c]-u[c];return f+(t[h]||0)*Math.pow(isNaN(d)?0:d,2)},0))}},A2t=()=>sw("lab65"),T2t=(e=1,t=.045,r=.015)=>{let i=Lf("lab65");return(n,a)=>{let o=i(n),s=i(a),l=o.l,u=o.a,f=o.b,c=Math.sqrt(u*u+f*f),h=s.l,d=s.a,p=s.b,v=Math.sqrt(d*d+p*p),y=Math.pow(l-h,2),m=Math.pow(c-v,2),w=Math.pow(u-d,2)+Math.pow(f-p,2)-m;return Math.sqrt(y/Math.pow(e,2)+m/Math.pow(1+t*c,2)+w/Math.pow(1+r*c,2))}},M2t=(e=1,t=1,r=1)=>{let i=Lf("lab65");return(n,a)=>{let o=i(n),s=i(a),l=o.l,u=o.a,f=o.b,c=Math.sqrt(u*u+f*f),h=s.l,d=s.a,p=s.b,v=Math.sqrt(d*d+p*p),y=(c+v)/2,m=.5*(1-Math.sqrt(Math.pow(y,7)/(Math.pow(y,7)+Math.pow(25,7)))),w=u*(1+m),_=d*(1+m),b=Math.sqrt(w*w+f*f),M=Math.sqrt(_*_+p*p),x=Math.abs(w)+Math.abs(f)===0?0:Math.atan2(f,w);x+=(x<0)*2*Math.PI;let T=Math.abs(_)+Math.abs(p)===0?0:Math.atan2(p,_);T+=(T<0)*2*Math.PI;let A=h-l,g=M-b,E=b*M===0?0:T-x;E-=(E>Math.PI)*2*Math.PI,E+=(E<-Math.PI)*2*Math.PI;let S=2*Math.sqrt(b*M)*Math.sin(E/2),C=(l+h)/2,k=(b+M)/2,D;b*M===0?D=x+T:(D=(x+T)/2,D-=(Math.abs(x-T)>Math.PI)*Math.PI,D+=(D<0)*2*Math.PI);let F=Math.pow(C-50,2),P=1-.17*Math.cos(D-Math.PI/6)+.24*Math.cos(2*D)+.32*Math.cos(3*D+Math.PI/30)-.2*Math.cos(4*D-63*Math.PI/180),I=1+.015*F/Math.sqrt(20+F),L=1+.045*k,z=1+.015*k*P,B=30*Math.PI/180*Math.exp(-1*Math.pow((180/Math.PI*D-275)/25,2)),O=2*Math.sqrt(Math.pow(k,7)/(Math.pow(k,7)+Math.pow(25,7))),W=-1*Math.sin(2*B)*O;return Math.sqrt(Math.pow(A/(e*I),2)+Math.pow(g/(t*L),2)+Math.pow(S/(r*z),2)+W*g/(t*L)*S/(r*z))}},S2t=(e=1,t=1)=>{let r=Lf("lab65");return(i,n)=>{let a=r(i),o=a.l,s=a.a,l=a.b,u=Math.sqrt(s*s+l*l),f=Math.atan2(l,s);f=f+2*Math.PI*(f<0);let c=r(n),h=c.l,d=c.a,p=c.b,v=Math.sqrt(d*d+p*p),y=Math.pow(o-h,2),m=Math.pow(u-v,2),w=Math.pow(s-d,2)+Math.pow(l-p,2)-m,_=Math.sqrt(Math.pow(u,4)/(Math.pow(u,4)+1900)),b=f>=164/180*Math.PI&&f<=345/180*Math.PI?.56+Math.abs(.2*Math.cos(f+168/180*Math.PI)):.36+Math.abs(.4*Math.cos(f+35/180*Math.PI)),M=o<16?.511:.040975*o/(1+.01765*o),x=.0638*u/(1+.0131*u)+.638,T=x*(_*b+1-_);return Math.sqrt(y/Math.pow(e*M,2)+m/Math.pow(t*x,2)+w/Math.pow(T,2))}},E2t=()=>{let e=Lf("lab65");return(t,r)=>{let i=e(t),n=e(r),a=i.l-n.l,o=i.a-n.a,s=i.b-n.b;return Math.abs(a)+Math.sqrt(o*o+s*s)}},k2t=()=>sw("yiq",[.5053,.299,.1957]),C2t=()=>sw("itp",[518400,129600,518400]),U1=e=>{let t=e.reduce((i,n)=>{if(n!==void 0){let a=n*Math.PI/180;i.sin+=Math.sin(a),i.cos+=Math.cos(a)}return i},{sin:0,cos:0}),r=Math.atan2(t.sin,t.cos)*180/Math.PI;return r<0?360+r:r},xfe=e=>{let t=e.filter(r=>r!==void 0);return t.length?t.reduce((r,i)=>r+i,0)/t.length:void 0},_V=e=>typeof e=="function";function D2t(e,t="rgb",r){let i=q0(t),n=e.map(Lf(t));return i.channels.reduce((a,o)=>{let s=n.map(l=>l[o]).filter(l=>l!==void 0);if(s.length){let l;_V(r)?l=r:r&&_V(r[o])?l=r[o]:i.average&&_V(i.average[o])?l=i.average[o]:l=xfe,a[o]=l(s,o)}return a},{mode:t})}var F2t={mode:"cubehelix",channels:["h","s","l","alpha"],parse:["--cubehelix"],serialize:"--cubehelix",ranges:{h:[0,360],s:[0,4.614],l:[0,1]},fromMode:{rgb:mfe},toMode:{rgb:yfe},interpolate:{h:{use:ws,fixup:V1},s:ws,l:ws,alpha:{use:ws,fixup:yh}},difference:{h:t6},average:{h:U1}},bfe=F2t,L2t=({l:e,a:t,b:r,alpha:i},n="lch")=>{t===void 0&&(t=0),r===void 0&&(r=0);let a=Math.sqrt(t*t+r*r),o={mode:n,l:e,c:a};return a&&(o.h=w0(Math.atan2(r,t)*180/Math.PI)),i!==void 0&&(o.alpha=i),o},Jm=L2t,P2t=({l:e,c:t,h:r,alpha:i},n="lab")=>{r===void 0&&(r=0);let a={mode:n,l:e,a:t?t*Math.cos(r/180*Math.PI):0,b:t?t*Math.sin(r/180*Math.PI):0};return i!==void 0&&(a.alpha=i),a},Qm=P2t,_fe=Math.pow(29,3)/Math.pow(3,3),wfe=Math.pow(6,3)/Math.pow(29,3),mh={X:.3457/.3585,Y:1,Z:(1-.3457-.3585)/.3585},nw={X:.3127/.329,Y:1,Z:(1-.3127-.329)/.329},gqr=Math.pow(29,3)/Math.pow(3,3),xqr=Math.pow(6,3)/Math.pow(29,3),wV=e=>Math.pow(e,3)>wfe?Math.pow(e,3):(116*e-16)/_fe,z2t=({l:e,a:t,b:r,alpha:i})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let n=(e+16)/116,a=t/500+n,o=n-r/200,s={mode:"xyz65",x:wV(a)*nw.X,y:wV(n)*nw.Y,z:wV(o)*nw.Z};return i!==void 0&&(s.alpha=i),s},cU=z2t,I2t=e=>Tg(cU(e)),i6=I2t,AV=e=>e>wfe?Math.cbrt(e):(_fe*e+16)/116,R2t=({x:e,y:t,z:r,alpha:i})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let n=AV(e/nw.X),a=AV(t/nw.Y),o=AV(r/nw.Z),s={mode:"lab65",l:116*a-16,a:500*(n-a),b:200*(a-o)};return i!==void 0&&(s.alpha=i),s},hU=R2t,B2t=e=>{let t=hU(Ag(e));return e.r===e.b&&e.b===e.g&&(t.a=t.b=0),t},n6=B2t,WD=1,Afe=1,e6=26/180*Math.PI,$D=Math.cos(e6),YD=Math.sin(e6),Tfe=100/Math.log(139/100),q2t=({l:e,c:t,h:r,alpha:i})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let n={mode:"lab65",l:(Math.exp(e*WD/Tfe)-1)/.0039},a=(Math.exp(.0435*t*Afe*WD)-1)/.075,o=a*Math.cos(r/180*Math.PI-e6),s=a*Math.sin(r/180*Math.PI-e6);return n.a=o*$D-s/.83*YD,n.b=o*YD+s/.83*$D,i!==void 0&&(n.alpha=i),n},XD=q2t,O2t=({l:e,a:t,b:r,alpha:i})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let n=t*$D+r*YD,a=.83*(r*$D-t*YD),o=Math.sqrt(n*n+a*a),s={mode:"dlch",l:Tfe/WD*Math.log(1+.0039*e),c:Math.log(1+.075*o)/(.0435*Afe*WD)};return s.c&&(s.h=w0((Math.atan2(a,n)+e6)/Math.PI*180)),i!==void 0&&(s.alpha=i),s},ZD=O2t,Zue=e=>XD(Jm(e,"dlch")),Kue=e=>Qm(ZD(e),"dlab"),N2t={mode:"dlab",parse:["--din99o-lab"],serialize:"--din99o-lab",toMode:{lab65:Zue,rgb:e=>i6(Zue(e))},fromMode:{lab65:Kue,rgb:e=>Kue(n6(e))},channels:["l","a","b","alpha"],ranges:{l:[0,100],a:[-40.09,45.501],b:[-40.469,44.344]},interpolate:{l:ws,a:ws,b:ws,alpha:{use:ws,fixup:yh}}},Mfe=N2t,V2t={mode:"dlch",parse:["--din99o-lch"],serialize:"--din99o-lch",toMode:{lab65:XD,dlab:e=>Qm(e,"dlab"),rgb:e=>i6(XD(e))},fromMode:{lab65:ZD,dlab:e=>Jm(e,"dlch"),rgb:e=>ZD(n6(e))},channels:["l","c","h","alpha"],ranges:{l:[0,100],c:[0,51.484],h:[0,360]},interpolate:{l:ws,c:ws,h:{use:ws,fixup:V1},alpha:{use:ws,fixup:yh}},difference:{h:r6},average:{h:U1}},Sfe=V2t;function Efe({h:e,s:t,i:r,alpha:i}){e=w0(e!==void 0?e:0),t===void 0&&(t=0),r===void 0&&(r=0);let n=Math.abs(e/60%2-1),a;switch(Math.floor(e/60)){case 0:a={r:r*(1+t*(3/(2-n)-1)),g:r*(1+t*(3*(1-n)/(2-n)-1)),b:r*(1-t)};break;case 1:a={r:r*(1+t*(3*(1-n)/(2-n)-1)),g:r*(1+t*(3/(2-n)-1)),b:r*(1-t)};break;case 2:a={r:r*(1-t),g:r*(1+t*(3/(2-n)-1)),b:r*(1+t*(3*(1-n)/(2-n)-1))};break;case 3:a={r:r*(1-t),g:r*(1+t*(3*(1-n)/(2-n)-1)),b:r*(1+t*(3/(2-n)-1))};break;case 4:a={r:r*(1+t*(3*(1-n)/(2-n)-1)),g:r*(1-t),b:r*(1+t*(3/(2-n)-1))};break;case 5:a={r:r*(1+t*(3/(2-n)-1)),g:r*(1-t),b:r*(1+t*(3*(1-n)/(2-n)-1))};break;default:a={r:r*(1-t),g:r*(1-t),b:r*(1-t)}}return a.mode="rgb",i!==void 0&&(a.alpha=i),a}function kfe({r:e,g:t,b:r,alpha:i}){e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let n=Math.max(e,t,r),a=Math.min(e,t,r),o={mode:"hsi",s:e+t+r===0?0:1-3*a/(e+t+r),i:(e+t+r)/3};return n-a!==0&&(o.h=(n===e?(t-r)/(n-a)+(t{switch(t){case"deg":return+e;case"rad":return e/Math.PI*180;case"grad":return e/10*9;case"turn":return e*360}},H2t=G2t,j2t=new RegExp(`^hsla?\\(\\s*${Vgt}${aw}${JT}${aw}${JT}\\s*(?:,\\s*${uU}\\s*)?\\)$`),W2t=e=>{let t=e.match(j2t);if(!t)return;let r={mode:"hsl"};return t[3]!==void 0?r.h=+t[3]:t[1]!==void 0&&t[2]!==void 0&&(r.h=H2t(t[1],t[2])),t[4]!==void 0&&(r.s=Math.min(Math.max(0,t[4]/100),1)),t[5]!==void 0&&(r.l=Math.min(Math.max(0,t[5]/100),1)),t[6]!==void 0?r.alpha=Math.max(0,Math.min(1,t[6]/100)):t[7]!==void 0&&(r.alpha=Math.max(0,Math.min(1,+t[7]))),r},Lfe=W2t;function $2t(e,t){if(!t||t[0]!=="hsl"&&t[0]!=="hsla")return;let r={mode:"hsl"},[,i,n,a,o]=t;if(i.type!==Jo.None){if(i.type===Jo.Percentage)return;r.h=i.value}if(n.type!==Jo.None){if(n.type===Jo.Hue)return;r.s=n.value/100}if(a.type!==Jo.None){if(a.type===Jo.Hue)return;r.l=a.value/100}return o.type!==Jo.None&&(r.alpha=Math.min(1,Math.max(0,o.type===Jo.Number?o.value:o.value/100))),r}var Pfe=$2t,Y2t={mode:"hsl",toMode:{rgb:Dfe},fromMode:{rgb:Ffe},channels:["h","s","l","alpha"],ranges:{h:[0,360]},gamut:"rgb",parse:[Pfe,Lfe],serialize:e=>`hsl(${e.h!==void 0?e.h:"none"} ${e.s!==void 0?e.s*100+"%":"none"} ${e.l!==void 0?e.l*100+"%":"none"}${e.alpha<1?` / ${e.alpha}`:""})`,interpolate:{h:{use:ws,fixup:V1},s:ws,l:ws,alpha:{use:ws,fixup:yh}},difference:{h:t6},average:{h:U1}},dU=Y2t;function pU({h:e,s:t,v:r,alpha:i}){e=w0(e!==void 0?e:0),t===void 0&&(t=0),r===void 0&&(r=0);let n=Math.abs(e/60%2-1),a;switch(Math.floor(e/60)){case 0:a={r,g:r*(1-t*n),b:r*(1-t)};break;case 1:a={r:r*(1-t*n),g:r,b:r*(1-t)};break;case 2:a={r:r*(1-t),g:r,b:r*(1-t*n)};break;case 3:a={r:r*(1-t),g:r*(1-t*n),b:r};break;case 4:a={r:r*(1-t*n),g:r*(1-t),b:r};break;case 5:a={r,g:r*(1-t),b:r*(1-t*n)};break;default:a={r:r*(1-t),g:r*(1-t),b:r*(1-t)}}return a.mode="rgb",i!==void 0&&(a.alpha=i),a}function vU({r:e,g:t,b:r,alpha:i}){e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let n=Math.max(e,t,r),a=Math.min(e,t,r),o={mode:"hsv",s:n===0?0:1-a/n,v:n};return n-a!==0&&(o.h=(n===e?(t-r)/(n-a)+(t1){let n=t+r;t/=n,r/=n}return pU({h:e,s:r===1?1:1-t/(1-r),v:1-r,alpha:i})}function Ife(e){let t=vU(e);if(t===void 0)return;let r=t.s!==void 0?t.s:0,i=t.v!==void 0?t.v:0,n={mode:"hwb",w:(1-r)*i,b:1-i};return t.h!==void 0&&(n.h=t.h),t.alpha!==void 0&&(n.alpha=t.alpha),n}function Z2t(e,t){if(!t||t[0]!=="hwb")return;let r={mode:"hwb"},[,i,n,a,o]=t;if(i.type!==Jo.None){if(i.type===Jo.Percentage)return;r.h=i.value}if(n.type!==Jo.None){if(n.type===Jo.Hue)return;r.w=n.value/100}if(a.type!==Jo.None){if(a.type===Jo.Hue)return;r.b=a.value/100}return o.type!==Jo.None&&(r.alpha=Math.min(1,Math.max(0,o.type===Jo.Number?o.value:o.value/100))),r}var Rfe=Z2t,K2t={mode:"hwb",toMode:{rgb:zfe},fromMode:{rgb:Ife},channels:["h","w","b","alpha"],ranges:{h:[0,360]},gamut:"rgb",parse:[Rfe],serialize:e=>`hwb(${e.h!==void 0?e.h:"none"} ${e.w!==void 0?e.w*100+"%":"none"} ${e.b!==void 0?e.b*100+"%":"none"}${e.alpha<1?` / ${e.alpha}`:""})`,interpolate:{h:{use:ws,fixup:V1},w:ws,b:ws,alpha:{use:ws,fixup:yh}},difference:{h:gfe},average:{h:U1}},Bfe=K2t,qfe=203,tF=.1593017578125,Ofe=78.84375,rF=.8359375,iF=18.8515625,nF=18.6875;function TV(e){if(e<0)return 0;let t=Math.pow(e,1/Ofe);return 1e4*Math.pow(Math.max(0,t-rF)/(iF-nF*t),1/tF)}function MV(e){if(e<0)return 0;let t=Math.pow(e/1e4,tF);return Math.pow((rF+iF*t)/(1+nF*t),Ofe)}var SV=e=>Math.max(e/qfe,0),J2t=({i:e,t,p:r,alpha:i})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let n=TV(e+.008609037037932761*t+.11102962500302593*r),a=TV(e-.00860903703793275*t-.11102962500302599*r),o=TV(e+.5600313357106791*t-.32062717498731885*r),s={mode:"xyz65",x:SV(2.070152218389422*n-1.3263473389671556*a+.2066510476294051*o),y:SV(.3647385209748074*n+.680566024947227*a-.0453045459220346*o),z:SV(-.049747207535812*n-.0492609666966138*a+1.1880659249923042*o)};return i!==void 0&&(s.alpha=i),s},jV=J2t,EV=(e=0)=>Math.max(e*qfe,0),Q2t=({x:e,y:t,z:r,alpha:i})=>{let n=EV(e),a=EV(t),o=EV(r),s=MV(.3592832590121217*n+.6976051147779502*a-.0358915932320289*o),l=MV(-.1920808463704995*n+1.1004767970374323*a+.0753748658519118*o),u=MV(.0070797844607477*n+.0748396662186366*a+.8433265453898765*o),f=.5*s+.5*l,c=1.61376953125*s-3.323486328125*l+1.709716796875*u,h=4.378173828125*s-4.24560546875*l-.132568359375*u,d={mode:"itp",i:f,t:c,p:h};return i!==void 0&&(d.alpha=i),d},WV=Q2t,ext={mode:"itp",channels:["i","t","p","alpha"],parse:["--ictcp"],serialize:"--ictcp",toMode:{xyz65:jV,rgb:e=>Tg(jV(e))},fromMode:{xyz65:WV,rgb:e=>WV(Ag(e))},ranges:{i:[0,.581],t:[-.369,.272],p:[-.164,.331]},interpolate:{i:ws,t:ws,p:ws,alpha:{use:ws,fixup:yh}}},Nfe=ext,txt=134.03437499999998,rxt=16295499532821565e-27,kV=e=>{if(e<0)return 0;let t=Math.pow(e/1e4,tF);return Math.pow((rF+iF*t)/(1+nF*t),txt)},CV=(e=0)=>Math.max(e*203,0),ixt=({x:e,y:t,z:r,alpha:i})=>{e=CV(e),t=CV(t),r=CV(r);let n=1.15*e-.15*r,a=.66*t+.34*e,o=kV(.41478972*n+.579999*a+.014648*r),s=kV(-.20151*n+1.120649*a+.0531008*r),l=kV(-.0166008*n+.2648*a+.6684799*r),u=(o+s)/2,f={mode:"jab",j:.44*u/(1-.56*u)-rxt,a:3.524*o-4.066708*s+.542708*l,b:.199076*o+1.096799*s-1.295875*l};return i!==void 0&&(f.alpha=i),f},yU=ixt,nxt=134.03437499999998,Jue=16295499532821565e-27,DV=e=>{if(e<0)return 0;let t=Math.pow(e,1/nxt);return 1e4*Math.pow((rF-t)/(nF*t-iF),1/tF)},FV=e=>e/203,axt=({j:e,a:t,b:r,alpha:i})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let n=(e+Jue)/(.44+.56*(e+Jue)),a=DV(n+.13860504*t+.058047316*r),o=DV(n-.13860504*t-.058047316*r),s=DV(n-.096019242*t-.8118919*r),l={mode:"xyz65",x:FV(1.661373024652174*a-.914523081304348*o+.23136208173913045*s),y:FV(-.3250758611844533*a+1.571847026732543*o-.21825383453227928*s),z:FV(-.090982811*a-.31272829*o+1.5227666*s)};return i!==void 0&&(l.alpha=i),l},gU=axt,oxt=e=>{let t=yU(Ag(e));return e.r===e.b&&e.b===e.g&&(t.a=t.b=0),t},xU=oxt,sxt=e=>Tg(gU(e)),bU=sxt,lxt={mode:"jab",channels:["j","a","b","alpha"],parse:["--jzazbz"],serialize:"--jzazbz",fromMode:{rgb:xU,xyz65:yU},toMode:{rgb:bU,xyz65:gU},ranges:{j:[0,.222],a:[-.109,.129],b:[-.185,.134]},interpolate:{j:ws,a:ws,b:ws,alpha:{use:ws,fixup:yh}}},Vfe=lxt,uxt=({j:e,a:t,b:r,alpha:i})=>{t===void 0&&(t=0),r===void 0&&(r=0);let n=Math.sqrt(t*t+r*r),a={mode:"jch",j:e,c:n};return n&&(a.h=w0(Math.atan2(r,t)*180/Math.PI)),i!==void 0&&(a.alpha=i),a},$V=uxt,fxt=({j:e,c:t,h:r,alpha:i})=>{r===void 0&&(r=0);let n={mode:"jab",j:e,a:t?t*Math.cos(r/180*Math.PI):0,b:t?t*Math.sin(r/180*Math.PI):0};return i!==void 0&&(n.alpha=i),n},YV=fxt,cxt={mode:"jch",parse:["--jzczhz"],serialize:"--jzczhz",toMode:{jab:YV,rgb:e=>bU(YV(e))},fromMode:{rgb:e=>$V(xU(e)),jab:$V},channels:["j","c","h","alpha"],ranges:{j:[0,.221],c:[0,.19],h:[0,360]},interpolate:{h:{use:ws,fixup:V1},c:ws,j:ws,alpha:{use:ws,fixup:yh}},difference:{h:r6},average:{h:U1}},Ufe=cxt,aF=Math.pow(29,3)/Math.pow(3,3),_U=Math.pow(6,3)/Math.pow(29,3),LV=e=>Math.pow(e,3)>_U?Math.pow(e,3):(116*e-16)/aF,hxt=({l:e,a:t,b:r,alpha:i})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let n=(e+16)/116,a=t/500+n,o=n-r/200,s={mode:"xyz50",x:LV(a)*mh.X,y:LV(n)*mh.Y,z:LV(o)*mh.Z};return i!==void 0&&(s.alpha=i),s},oF=hxt,dxt=({x:e,y:t,z:r,alpha:i})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let n=Yx({r:e*3.1341359569958707-t*1.6173863321612538-.4906619460083532*r,g:e*-.978795502912089+t*1.916254567259524+.03344273116131949*r,b:e*.07195537988411677-t*.2289768264158322+1.405386058324125*r});return i!==void 0&&(n.alpha=i),n},lw=dxt,pxt=e=>lw(oF(e)),wU=pxt,vxt=e=>{let{r:t,g:r,b:i,alpha:n}=$x(e),a={mode:"xyz50",x:.436065742824811*t+.3851514688337912*r+.14307845442264197*i,y:.22249319175623702*t+.7168870538238823*r+.06061979053616537*i,z:.013923904500943465*t+.09708128566574634*r+.7140993584005155*i};return n!==void 0&&(a.alpha=n),a},uw=vxt,PV=e=>e>_U?Math.cbrt(e):(aF*e+16)/116,mxt=({x:e,y:t,z:r,alpha:i})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let n=PV(e/mh.X),a=PV(t/mh.Y),o=PV(r/mh.Z),s={mode:"lab",l:116*a-16,a:500*(n-a),b:200*(a-o)};return i!==void 0&&(s.alpha=i),s},sF=mxt,yxt=e=>{let t=sF(uw(e));return e.r===e.b&&e.b===e.g&&(t.a=t.b=0),t},AU=yxt;function gxt(e,t){if(!t||t[0]!=="lab")return;let r={mode:"lab"},[,i,n,a,o]=t;if(!(i.type===Jo.Hue||n.type===Jo.Hue||a.type===Jo.Hue))return i.type!==Jo.None&&(r.l=Math.min(Math.max(0,i.value),100)),n.type!==Jo.None&&(r.a=n.type===Jo.Number?n.value:n.value*125/100),a.type!==Jo.None&&(r.b=a.type===Jo.Number?a.value:a.value*125/100),o.type!==Jo.None&&(r.alpha=Math.min(1,Math.max(0,o.type===Jo.Number?o.value:o.value/100))),r}var Gfe=gxt,xxt={mode:"lab",toMode:{xyz50:oF,rgb:wU},fromMode:{xyz50:sF,rgb:AU},channels:["l","a","b","alpha"],ranges:{l:[0,100],a:[-125,125],b:[-125,125]},parse:[Gfe],serialize:e=>`lab(${e.l!==void 0?e.l:"none"} ${e.a!==void 0?e.a:"none"} ${e.b!==void 0?e.b:"none"}${e.alpha<1?` / ${e.alpha}`:""})`,interpolate:{l:ws,a:ws,b:ws,alpha:{use:ws,fixup:yh}}},lF=xxt,bxt=$l(Gs({},lF),{mode:"lab65",parse:["--lab-d65"],serialize:"--lab-d65",toMode:{xyz65:cU,rgb:i6},fromMode:{xyz65:hU,rgb:n6},ranges:{l:[0,100],a:[-125,125],b:[-125,125]}}),Hfe=bxt;function _xt(e,t){if(!t||t[0]!=="lch")return;let r={mode:"lch"},[,i,n,a,o]=t;if(i.type!==Jo.None){if(i.type===Jo.Hue)return;r.l=Math.min(Math.max(0,i.value),100)}if(n.type!==Jo.None&&(r.c=Math.max(0,n.type===Jo.Number?n.value:n.value*150/100)),a.type!==Jo.None){if(a.type===Jo.Percentage)return;r.h=a.value}return o.type!==Jo.None&&(r.alpha=Math.min(1,Math.max(0,o.type===Jo.Number?o.value:o.value/100))),r}var jfe=_xt,wxt={mode:"lch",toMode:{lab:Qm,rgb:e=>wU(Qm(e))},fromMode:{rgb:e=>Jm(AU(e)),lab:Jm},channels:["l","c","h","alpha"],ranges:{l:[0,100],c:[0,150],h:[0,360]},parse:[jfe],serialize:e=>`lch(${e.l!==void 0?e.l:"none"} ${e.c!==void 0?e.c:"none"} ${e.h!==void 0?e.h:"none"}${e.alpha<1?` / ${e.alpha}`:""})`,interpolate:{h:{use:ws,fixup:V1},c:ws,l:ws,alpha:{use:ws,fixup:yh}},difference:{h:r6},average:{h:U1}},uF=wxt,Axt=$l(Gs({},uF),{mode:"lch65",parse:["--lch-d65"],serialize:"--lch-d65",toMode:{lab65:e=>Qm(e,"lab65"),rgb:e=>i6(Qm(e,"lab65"))},fromMode:{rgb:e=>Jm(n6(e),"lch65"),lab65:e=>Jm(e,"lch65")},ranges:{l:[0,100],c:[0,150],h:[0,360]}}),Wfe=Axt,Txt=({l:e,u:t,v:r,alpha:i})=>{t===void 0&&(t=0),r===void 0&&(r=0);let n=Math.sqrt(t*t+r*r),a={mode:"lchuv",l:e,c:n};return n&&(a.h=w0(Math.atan2(r,t)*180/Math.PI)),i!==void 0&&(a.alpha=i),a},TU=Txt,Mxt=({l:e,c:t,h:r,alpha:i})=>{r===void 0&&(r=0);let n={mode:"luv",l:e,u:t?t*Math.cos(r/180*Math.PI):0,v:t?t*Math.sin(r/180*Math.PI):0};return i!==void 0&&(n.alpha=i),n},MU=Mxt,$fe=(e,t,r)=>4*e/(e+15*t+3*r),Yfe=(e,t,r)=>9*t/(e+15*t+3*r),Sxt=$fe(mh.X,mh.Y,mh.Z),Ext=Yfe(mh.X,mh.Y,mh.Z),kxt=e=>e<=_U?aF*e:116*Math.cbrt(e)-16,Cxt=({x:e,y:t,z:r,alpha:i})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let n=kxt(t/mh.Y),a=$fe(e,t,r),o=Yfe(e,t,r);!isFinite(a)||!isFinite(o)?n=a=o=0:(a=13*n*(a-Sxt),o=13*n*(o-Ext));let s={mode:"luv",l:n,u:a,v:o};return i!==void 0&&(s.alpha=i),s},KD=Cxt,Dxt=(e,t,r)=>4*e/(e+15*t+3*r),Fxt=(e,t,r)=>9*t/(e+15*t+3*r),Lxt=Dxt(mh.X,mh.Y,mh.Z),Pxt=Fxt(mh.X,mh.Y,mh.Z),zxt=({l:e,u:t,v:r,alpha:i})=>{if(e===void 0&&(e=0),e===0)return{mode:"xyz50",x:0,y:0,z:0};t===void 0&&(t=0),r===void 0&&(r=0);let n=t/(13*e)+Lxt,a=r/(13*e)+Pxt,o=mh.Y*(e<=8?e/aF:Math.pow((e+16)/116,3)),s=o*(9*n)/(4*a),l=o*(12-3*n-20*a)/(4*a),u={mode:"xyz50",x:s,y:o,z:l};return i!==void 0&&(u.alpha=i),u},JD=zxt,Ixt=e=>TU(KD(uw(e))),Rxt=e=>lw(JD(MU(e))),Bxt={mode:"lchuv",toMode:{luv:MU,rgb:Rxt},fromMode:{rgb:Ixt,luv:TU},channels:["l","c","h","alpha"],parse:["--lchuv"],serialize:"--lchuv",ranges:{l:[0,100],c:[0,176.956],h:[0,360]},interpolate:{h:{use:ws,fixup:V1},c:ws,l:ws,alpha:{use:ws,fixup:yh}},difference:{h:r6},average:{h:U1}},Xfe=Bxt,qxt=$l(Gs({},Wx),{mode:"lrgb",toMode:{rgb:Yx},fromMode:{rgb:$x},parse:["srgb-linear"],serialize:"srgb-linear"}),Zfe=qxt,Oxt={mode:"luv",toMode:{xyz50:JD,rgb:e=>lw(JD(e))},fromMode:{xyz50:KD,rgb:e=>KD(uw(e))},channels:["l","u","v","alpha"],parse:["--luv"],serialize:"--luv",ranges:{l:[0,100],u:[-84.936,175.042],v:[-125.882,87.243]},interpolate:{l:ws,u:ws,v:ws,alpha:{use:ws,fixup:yh}}},Kfe=Oxt,Nxt=({r:e,g:t,b:r,alpha:i})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let n=Math.cbrt(.412221469470763*e+.5363325372617348*t+.0514459932675022*r),a=Math.cbrt(.2119034958178252*e+.6806995506452344*t+.1073969535369406*r),o=Math.cbrt(.0883024591900564*e+.2817188391361215*t+.6299787016738222*r),s={mode:"oklab",l:.210454268309314*n+.7936177747023054*a-.0040720430116193*o,a:1.9779985324311684*n-2.42859224204858*a+.450593709617411*o,b:.0259040424655478*n+.7827717124575296*a-.8086757549230774*o};return i!==void 0&&(s.alpha=i),s},SU=Nxt,Vxt=e=>{let t=SU($x(e));return e.r===e.b&&e.b===e.g&&(t.a=t.b=0),t},a6=Vxt,Uxt=({l:e,a:t,b:r,alpha:i})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let n=Math.pow(e+.3963377773761749*t+.2158037573099136*r,3),a=Math.pow(e-.1055613458156586*t-.0638541728258133*r,3),o=Math.pow(e-.0894841775298119*t-1.2914855480194092*r,3),s={mode:"lrgb",r:4.076741636075957*n-3.3077115392580616*a+.2309699031821044*o,g:-1.2684379732850317*n+2.6097573492876887*a-.3413193760026573*o,b:-.0041960761386756*n-.7034186179359362*a+1.7076146940746117*o};return i!==void 0&&(s.alpha=i),s},fw=Uxt,Gxt=e=>Yx(fw(e)),o6=Gxt;function XV(e){let i=1.170873786407767;return .5*(i*e-.206+Math.sqrt((i*e-.206)*(i*e-.206)+4*.03*i*e))}function QD(e){return(e*e+.206*e)/(1.170873786407767*(e+.03))}function Hxt(e,t){let r,i,n,a,o,s,l,u;-1.88170328*e-.80936493*t>1?(r=1.19086277,i=1.76576728,n=.59662641,a=.75515197,o=.56771245,s=4.0767416621,l=-3.3077115913,u=.2309699292):1.81444104*e-1.19445276*t>1?(r=.73956515,i=-.45954404,n=.08285427,a=.1254107,o=.14503204,s=-1.2684380046,l=2.6097574011,u=-.3413193965):(r=1.35733652,i=-.00915799,n=-1.1513021,a=-.50559606,o=.00692167,s=-.0041960863,l=-.7034186147,u=1.707614701);let f=r+i*e+n*t+a*e*e+o*e*t,c=.3963377774*e+.2158037573*t,h=-.1055613458*e-.0638541728*t,d=-.0894841775*e-1.291485548*t;{let p=1+f*c,v=1+f*h,y=1+f*d,m=p*p*p,w=v*v*v,_=y*y*y,b=3*c*p*p,M=3*h*v*v,x=3*d*y*y,T=6*c*c*p,A=6*h*h*v,g=6*d*d*y,E=s*m+l*w+u*_,S=s*b+l*M+u*x,C=s*T+l*A+u*g;f=f-E*S/(S*S-.5*E*C)}return f}function EU(e,t){let r=Hxt(e,t),i=fw({l:1,a:r*e,b:r*t}),n=Math.cbrt(1/Math.max(i.r,i.g,i.b)),a=n*r;return[n,a]}function jxt(e,t,r,i,n,a=null){a||(a=EU(e,t));let o;if((r-n)*a[1]-(a[0]-n)*i<=0)o=a[1]*n/(i*a[0]+a[1]*(n-r));else{o=a[1]*(n-1)/(i*(a[0]-1)+a[1]*(n-r));{let s=r-n,l=i,u=.3963377774*e+.2158037573*t,f=-.1055613458*e-.0638541728*t,c=-.0894841775*e-1.291485548*t,h=s+l*u,d=s+l*f,p=s+l*c;{let v=n*(1-o)+o*r,y=o*i,m=v+y*u,w=v+y*f,_=v+y*c,b=m*m*m,M=w*w*w,x=_*_*_,T=3*h*m*m,A=3*d*w*w,g=3*p*_*_,E=6*h*h*m,S=6*d*d*w,C=6*p*p*_,k=4.0767416621*b-3.3077115913*M+.2309699292*x-1,D=4.0767416621*T-3.3077115913*A+.2309699292*g,F=4.0767416621*E-3.3077115913*S+.2309699292*C,P=D/(D*D-.5*k*F),I=-k*P,L=-1.2684380046*b+2.6097574011*M-.3413193965*x-1,z=-1.2684380046*T+2.6097574011*A-.3413193965*g,B=-1.2684380046*E+2.6097574011*S-.3413193965*C,O=z/(z*z-.5*L*B),W=-L*O,X=-.0041960863*b-.7034186147*M+1.707614701*x-1,Z=-.0041960863*T-.7034186147*A+1.707614701*g,H=-.0041960863*E-.7034186147*S+1.707614701*C,q=Z/(Z*Z-.5*X*H),Q=-X*q;I=P>=0?I:1e6,W=O>=0?W:1e6,Q=q>=0?Q:1e6,o+=Math.min(I,Math.min(W,Q))}}}return o}function kU(e,t,r=null){r||(r=EU(e,t));let i=r[0],n=r[1];return[n/i,n/(1-i)]}function Jfe(e,t,r){let i=EU(t,r),n=jxt(t,r,e,1,e,i),a=kU(t,r,i),o=.11516993+1/(7.4477897+4.1590124*r+t*(-2.19557347+1.75198401*r+t*(-2.13704948-10.02301043*r+t*(-4.24894561+5.38770819*r+4.69891013*t)))),s=.11239642+1/(1.6132032-.68124379*r+t*(.40370612+.90148123*r+t*(-.27087943+.6122399*r+t*(.00299215-.45399568*r-.14661872*t)))),l=n/Math.min(e*a[0],(1-e)*a[1]),u=e*o,f=(1-e)*s,c=.9*l*Math.sqrt(Math.sqrt(1/(1/(u*u*u*u)+1/(f*f*f*f))));return u=e*.4,f=(1-e)*.8,[Math.sqrt(1/(1/(u*u)+1/(f*f))),c,n]}function ZV(e){let t=e.l!==void 0?e.l:0,r=e.a!==void 0?e.a:0,i=e.b!==void 0?e.b:0,n={mode:"okhsl",l:XV(t)};e.alpha!==void 0&&(n.alpha=e.alpha);let a=Math.sqrt(r*r+i*i);if(!a)return n.s=0,n;let[o,s,l]=Jfe(t,r/a,i/a),u;if(aZV(a6(e))},toMode:{oklab:KV,rgb:e=>o6(KV(e))}}),Qfe=Wxt;function JV(e){let t=e.l!==void 0?e.l:0,r=e.a!==void 0?e.a:0,i=e.b!==void 0?e.b:0,n=Math.sqrt(r*r+i*i),a=n?r/n:1,o=n?i/n:1,[s,l]=kU(a,o),u=.5,f=1-u/s,c=l/(n+t*l),h=c*t,d=c*n,p=QD(h),v=d*p/h,y=fw({l:p,a:a*v,b:o*v}),m=Math.cbrt(1/Math.max(y.r,y.g,y.b,0));t=t/m,n=n/m*XV(t)/t,t=XV(t);let w={mode:"okhsv",s:n?(u+l)*d/(l*u+l*f*d):0,v:t?t/h:0};return w.s&&(w.h=w0(Math.atan2(i,r)*180/Math.PI)),e.alpha!==void 0&&(w.alpha=e.alpha),w}function QV(e){let t={mode:"oklab"};e.alpha!==void 0&&(t.alpha=e.alpha);let r=e.h!==void 0?e.h:0,i=e.s!==void 0?e.s:0,n=e.v!==void 0?e.v:0,a=Math.cos(r/180*Math.PI),o=Math.sin(r/180*Math.PI),[s,l]=kU(a,o),u=.5,f=1-u/s,c=1-i*u/(u+l-l*f*i),h=i*l*u/(u+l-l*f*i),d=QD(c),p=h*d/c,v=fw({l:d,a:a*p,b:o*p}),y=Math.cbrt(1/Math.max(v.r,v.g,v.b,0)),m=QD(n*c),w=h*m/c;return t.l=m*y,t.a=w*a*y,t.b=w*o*y,t}var $xt=$l(Gs({},mU),{mode:"okhsv",channels:["h","s","v","alpha"],parse:["--okhsv"],serialize:"--okhsv",fromMode:{oklab:JV,rgb:e=>JV(a6(e))},toMode:{oklab:QV,rgb:e=>o6(QV(e))}}),ece=$xt;function Yxt(e,t){if(!t||t[0]!=="oklab")return;let r={mode:"oklab"},[,i,n,a,o]=t;if(!(i.type===Jo.Hue||n.type===Jo.Hue||a.type===Jo.Hue))return i.type!==Jo.None&&(r.l=Math.min(Math.max(0,i.type===Jo.Number?i.value:i.value/100),1)),n.type!==Jo.None&&(r.a=n.type===Jo.Number?n.value:n.value*.4/100),a.type!==Jo.None&&(r.b=a.type===Jo.Number?a.value:a.value*.4/100),o.type!==Jo.None&&(r.alpha=Math.min(1,Math.max(0,o.type===Jo.Number?o.value:o.value/100))),r}var tce=Yxt,Xxt=$l(Gs({},lF),{mode:"oklab",toMode:{lrgb:fw,rgb:o6},fromMode:{lrgb:SU,rgb:a6},ranges:{l:[0,1],a:[-.4,.4],b:[-.4,.4]},parse:[tce],serialize:e=>`oklab(${e.l!==void 0?e.l:"none"} ${e.a!==void 0?e.a:"none"} ${e.b!==void 0?e.b:"none"}${e.alpha<1?` / ${e.alpha}`:""})`}),rce=Xxt;function Zxt(e,t){if(!t||t[0]!=="oklch")return;let r={mode:"oklch"},[,i,n,a,o]=t;if(i.type!==Jo.None){if(i.type===Jo.Hue)return;r.l=Math.min(Math.max(0,i.type===Jo.Number?i.value:i.value/100),1)}if(n.type!==Jo.None&&(r.c=Math.max(0,n.type===Jo.Number?n.value:n.value*.4/100)),a.type!==Jo.None){if(a.type===Jo.Percentage)return;r.h=a.value}return o.type!==Jo.None&&(r.alpha=Math.min(1,Math.max(0,o.type===Jo.Number?o.value:o.value/100))),r}var ice=Zxt,Kxt=$l(Gs({},uF),{mode:"oklch",toMode:{oklab:e=>Qm(e,"oklab"),rgb:e=>o6(Qm(e,"oklab"))},fromMode:{rgb:e=>Jm(a6(e),"oklch"),oklab:e=>Jm(e,"oklch")},parse:[ice],serialize:e=>`oklch(${e.l!==void 0?e.l:"none"} ${e.c!==void 0?e.c:"none"} ${e.h!==void 0?e.h:"none"}${e.alpha<1?` / ${e.alpha}`:""})`,ranges:{l:[0,1],c:[0,.4],h:[0,360]}}),nce=Kxt,Jxt=e=>{let{r:t,g:r,b:i,alpha:n}=$x(e),a={mode:"xyz65",x:.486570948648216*t+.265667693169093*r+.1982172852343625*i,y:.2289745640697487*t+.6917385218365062*r+.079286914093745*i,z:0*t+.0451133818589026*r+1.043944368900976*i};return n!==void 0&&(a.alpha=n),a},eU=Jxt,Qxt=({x:e,y:t,z:r,alpha:i})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let n=Yx({r:e*2.4934969119414263-t*.9313836179191242-.402710784450717*r,g:e*-.8294889695615749+t*1.7626640603183465+.0236246858419436*r,b:e*.0358458302437845-t*.0761723892680418+.9568845240076871*r},"p3");return i!==void 0&&(n.alpha=i),n},tU=Qxt,ebt=$l(Gs({},Wx),{mode:"p3",parse:["display-p3"],serialize:"display-p3",fromMode:{rgb:e=>tU(Ag(e)),xyz65:tU},toMode:{rgb:e=>Tg(eU(e)),xyz65:eU}}),ace=ebt,zV=e=>{let t=Math.abs(e);return t>=1/512?Math.sign(e)*Math.pow(t,1/1.8):16*e},tbt=({x:e,y:t,z:r,alpha:i})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let n={mode:"prophoto",r:zV(e*1.3457868816471585-t*.2555720873797946-.0511018649755453*r),g:zV(e*-.5446307051249019+t*1.5082477428451466+.0205274474364214*r),b:zV(e*0+t*0+1.2119675456389452*r)};return i!==void 0&&(n.alpha=i),n},rU=tbt,IV=(e=0)=>{let t=Math.abs(e);return t>=16/512?Math.sign(e)*Math.pow(t,1.8):e/16},rbt=e=>{let t=IV(e.r),r=IV(e.g),i=IV(e.b),n={mode:"xyz50",x:.7977666449006423*t+.1351812974005331*r+.0313477341283922*i,y:.2880748288194013*t+.7118352342418731*r+899369387256e-16*i,z:0*t+0*r+.8251046025104602*i};return e.alpha!==void 0&&(n.alpha=e.alpha),n},iU=rbt,ibt=$l(Gs({},Wx),{mode:"prophoto",parse:["prophoto-rgb"],serialize:"prophoto-rgb",fromMode:{xyz50:rU,rgb:e=>rU(uw(e))},toMode:{xyz50:iU,rgb:e=>lw(iU(e))}}),oce=ibt,Que=1.09929682680944,nbt=.018053968510807,RV=e=>{let t=Math.abs(e);return t>nbt?(Math.sign(e)||1)*(Que*Math.pow(t,.45)-(Que-1)):4.5*e},abt=({x:e,y:t,z:r,alpha:i})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let n={mode:"rec2020",r:RV(e*1.7166511879712683-t*.3556707837763925-.2533662813736599*r),g:RV(e*-.6666843518324893+t*1.6164812366349395+.0157685458139111*r),b:RV(e*.0176398574453108-t*.0427706132578085+.9421031212354739*r)};return i!==void 0&&(n.alpha=i),n},nU=abt,efe=1.09929682680944,obt=.018053968510807,BV=(e=0)=>{let t=Math.abs(e);return t{let t=BV(e.r),r=BV(e.g),i=BV(e.b),n={mode:"xyz65",x:.6369580483012911*t+.1446169035862083*r+.1688809751641721*i,y:.262700212011267*t+.6779980715188708*r+.059301716469862*i,z:0*t+.0280726930490874*r+1.0609850577107909*i};return e.alpha!==void 0&&(n.alpha=e.alpha),n},aU=sbt,lbt=$l(Gs({},Wx),{mode:"rec2020",fromMode:{xyz65:nU,rgb:e=>nU(Ag(e))},toMode:{xyz65:aU,rgb:e=>Tg(aU(e))},parse:["rec2020"],serialize:"rec2020"}),sce=lbt,Hx=.0037930732552754493,lce=Math.cbrt(Hx),qV=e=>Math.cbrt(e)-lce,ubt=e=>{let{r:t,g:r,b:i,alpha:n}=$x(e),a=qV(.3*t+.622*r+.078*i+Hx),o=qV(.23*t+.692*r+.078*i+Hx),s=qV(.2434226892454782*t+.2047674442449682*r+.5518098665095535*i+Hx),l={mode:"xyb",x:(a-o)/2,y:(a+o)/2,b:s-(a+o)/2};return n!==void 0&&(l.alpha=n),l},uce=ubt,OV=e=>Math.pow(e+lce,3),fbt=({x:e,y:t,b:r,alpha:i})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let n=OV(e+t)-Hx,a=OV(t-e)-Hx,o=OV(r+t)-Hx,s=Yx({r:11.031566904639861*n-9.866943908131562*a-.16462299650829934*o,g:-3.2541473810744237*n+4.418770377582723*a-.16462299650829934*o,b:-3.6588512867136815*n+2.7129230459360922*a+1.9459282407775895*o});return i!==void 0&&(s.alpha=i),s},fce=fbt,cbt={mode:"xyb",channels:["x","y","b","alpha"],parse:["--xyb"],serialize:"--xyb",toMode:{rgb:fce},fromMode:{rgb:uce},ranges:{x:[-.0154,.0281],y:[0,.8453],b:[-.2778,.388]},interpolate:{x:ws,y:ws,b:ws,alpha:{use:ws,fixup:yh}}},cce=cbt,hbt={mode:"xyz50",parse:["xyz-d50"],serialize:"xyz-d50",toMode:{rgb:lw,lab:sF},fromMode:{rgb:uw,lab:oF},channels:["x","y","z","alpha"],ranges:{x:[0,.964],y:[0,.999],z:[0,.825]},interpolate:{x:ws,y:ws,z:ws,alpha:{use:ws,fixup:yh}}},hce=hbt,dbt=e=>{let{x:t,y:r,z:i,alpha:n}=e;t===void 0&&(t=0),r===void 0&&(r=0),i===void 0&&(i=0);let a={mode:"xyz50",x:1.0479298208405488*t+.0229467933410191*r-.0501922295431356*i,y:.0296278156881593*t+.990434484573249*r-.0170738250293851*i,z:-.0092430581525912*t+.0150551448965779*r+.7518742899580008*i};return n!==void 0&&(a.alpha=n),a},dce=dbt,pbt=e=>{let{x:t,y:r,z:i,alpha:n}=e;t===void 0&&(t=0),r===void 0&&(r=0),i===void 0&&(i=0);let a={mode:"xyz65",x:.9554734527042182*t-.0230985368742614*r+.0632593086610217*i,y:-.0283697069632081*t+1.0099954580058226*r+.021041398966943*i,z:.0123140016883199*t-.0205076964334779*r+1.3303659366080753*i};return n!==void 0&&(a.alpha=n),a},pce=pbt,vbt={mode:"xyz65",toMode:{rgb:Tg,xyz50:dce},fromMode:{rgb:Ag,xyz50:pce},ranges:{x:[0,.95],y:[0,1],z:[0,1.088]},channels:["x","y","z","alpha"],parse:["xyz","xyz-d65"],serialize:"xyz-d65",interpolate:{x:ws,y:ws,z:ws,alpha:{use:ws,fixup:yh}}},vce=vbt,mbt=({r:e,g:t,b:r,alpha:i})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let n={mode:"yiq",y:.29889531*e+.58662247*t+.11448223*r,i:.59597799*e-.2741761*t-.32180189*r,q:.21147017*e-.52261711*t+.31114694*r};return i!==void 0&&(n.alpha=i),n},mce=mbt,ybt=({y:e,i:t,q:r,alpha:i})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let n={mode:"rgb",r:e+.95608445*t+.6208885*r,g:e-.27137664*t-.6486059*r,b:e-1.10561724*t+1.70250126*r};return i!==void 0&&(n.alpha=i),n},yce=ybt,gbt={mode:"yiq",toMode:{rgb:yce},fromMode:{rgb:mce},channels:["y","i","q","alpha"],parse:["--yiq"],serialize:"--yiq",ranges:{i:[-.595,.595],q:[-.522,.522]},interpolate:{y:ws,i:ws,q:ws,alpha:{use:ws,fixup:yh}}},gce=gbt,xbt=(e,t)=>Math.round(e*(t=Math.pow(10,t)))/t,bbt=(e=4)=>t=>typeof t=="number"?xbt(t,e):t,xce=bbt,KT=xce(2),QT=e=>Math.max(0,Math.min(1,e||0)),jx=e=>Math.round(QT(e)*255),CU=Lf("rgb"),_bt=Lf("hsl"),DU=e=>{if(e===void 0)return;let t=jx(e.r),r=jx(e.g),i=jx(e.b);return"#"+(1<<24|t<<16|r<<8|i).toString(16).slice(1)},bce=e=>{if(e===void 0)return;let t=jx(e.alpha!==void 0?e.alpha:1);return DU(e)+(256|t).toString(16).slice(1)},_ce=e=>{if(e===void 0)return;let t=jx(e.r),r=jx(e.g),i=jx(e.b);return e.alpha===void 0||e.alpha===1?`rgb(${t}, ${r}, ${i})`:`rgba(${t}, ${r}, ${i}, ${KT(QT(e.alpha))})`},wce=e=>{if(e===void 0)return;let t=KT(e.h||0),r=KT(QT(e.s)*100)+"%",i=KT(QT(e.l)*100)+"%";return e.alpha===void 0||e.alpha===1?`hsl(${t}, ${r}, ${i})`:`hsla(${t}, ${r}, ${i}, ${KT(QT(e.alpha))})`},wbt=e=>{let t=Vv(e);if(!t)return;let r=q0(t.mode);if(!r.serialize||typeof r.serialize=="string"){let i=`color(${r.serialize||`--${t.mode}`} `;return r.channels.forEach((n,a)=>{n!=="alpha"&&(i+=(a?" ":"")+(t[n]!==void 0?t[n]:"none"))}),t.alpha!==void 0&&t.alpha<1&&(i+=` / ${t.alpha}`),i+")"}if(typeof r.serialize=="function")return r.serialize(t)},Abt=e=>DU(CU(e)),Tbt=e=>bce(CU(e)),Mbt=e=>_ce(CU(e)),Sbt=e=>wce(_bt(e)),Ebt={normal:(e,t)=>t,multiply:(e,t)=>e*t,screen:(e,t)=>e+t-e*t,"hard-light":(e,t)=>t<.5?e*2*t:2*t*(1-e)-1,overlay:(e,t)=>e<.5?t*2*e:2*e*(1-t)-1,darken:(e,t)=>Math.min(e,t),lighten:(e,t)=>Math.max(e,t),"color-dodge":(e,t)=>e===0?0:t===1?1:Math.min(1,e/(1-t)),"color-burn":(e,t)=>e===1?1:t===0?0:1-Math.min(1,(1-e)/t),"soft-light":(e,t)=>t<.5?e-(1-2*t)*e*(1-e):e+(2*t-1)*((e<.25?((16*e-12)*e+4)*e:Math.sqrt(e))-e),difference:(e,t)=>Math.abs(e-t),exclusion:(e,t)=>e+t-2*e*t},kbt=(e,t="normal",r="rgb")=>{let i=typeof t=="function"?t:Ebt[t],n=Lf(r),a=q0(r).channels;return e.map(s=>{let l=n(s);return l.alpha===void 0&&(l.alpha=1),l}).reduce((s,l)=>{if(s===void 0)return l;let u=l.alpha+s.alpha*(1-l.alpha);return a.reduce((f,c)=>(c!=="alpha"&&(u===0?f[c]=0:(f[c]=l.alpha*(1-s.alpha)*l[c]+l.alpha*s.alpha*i(s[c],l[c])+(1-l.alpha)*s.alpha*s[c],f[c]=Math.max(0,Math.min(1,f[c]/u)))),f),{mode:r,alpha:u})})},Cbt=kbt,Dbt=([e,t])=>e+Math.random()*(t-e),Fbt=e=>Object.keys(e).reduce((t,r)=>{let i=e[r];return t[r]=Array.isArray(i)?i:[i,i],t},{}),Lbt=(e="rgb",t={})=>{let r=q0(e),i=Fbt(t);return r.channels.reduce((n,a)=>((i.alpha||a!=="alpha")&&(n[a]=Dbt(i[a]||r.ranges[a])),n),{mode:e})},Pbt=Lbt,s6=(e,t="rgb",r=!1)=>{let i=t?q0(t).channels:null,n=t?Lf(t):Vv;return a=>{let o=n(a);if(!o)return;let s=(i||q0(o.mode).channels).reduce((u,f)=>{let c=e(o[f],f,o,t);return c!==void 0&&!isNaN(c)&&(u[f]=c),u},{mode:o.mode});if(!r)return s;let l=Vv(a);return l&&l.mode!==s.mode?Lf(l.mode)(s):s}},Ace=(e,t,r)=>t!=="alpha"?(e||0)*(r.alpha!==void 0?r.alpha:1):e,Tce=(e,t,r)=>t!=="alpha"&&r.alpha!==0?(e||0)/(r.alpha!==void 0?r.alpha:1):e,FU=(e=1,t=0)=>(r,i)=>i!=="alpha"?r*e+t:r,zbt=(e=1,t=1,r=0)=>(i,n)=>n!=="alpha"?e*Math.pow(i,t)+r:i,Ibt=e=>{e[0]===void 0&&(e[0]=0),e[e.length-1]===void 0&&(e[e.length-1]=1);let t=1,r,i,n,a;for(;tt=>e<=0?1:e>=1?0:Math.pow(t,Math.log(.5)/Math.log(e)),Mce=Bbt,GD=e=>typeof e=="function",Ux=e=>e&&typeof e=="object",tfe=e=>typeof e=="number",Sce=(e,t="rgb",r,i)=>{let n=q0(t),a=Lf(t),o=[],s=[],l={};e.forEach(h=>{Array.isArray(h)?(o.push(a(h[0])),s.push(h[1])):tfe(h)||GD(h)?l[s.length]=h:(o.push(a(h)),s.push(void 0))}),Rbt(s);let u=n.channels.reduce((h,d)=>{let p;return Ux(r)&&Ux(r[d])&&r[d].fixup?p=r[d].fixup:Ux(n.interpolate[d])&&n.interpolate[d].fixup?p=n.interpolate[d].fixup:p=v=>v,h[d]=p(o.map(v=>v[d])),h},{});if(i){let h=o.map((d,p)=>n.channels.reduce((v,y)=>(v[y]=u[y][p],v),{mode:t}));u=n.channels.reduce((d,p)=>(d[p]=h.map(v=>{let y=i(v[p],p,v,t);return isNaN(y)?void 0:y}),d),{})}let f=n.channels.reduce((h,d)=>{let p;return GD(r)?p=r:Ux(r)&&GD(r[d])?p=r[d]:Ux(r)&&Ux(r[d])&&r[d].use?p=r[d].use:GD(n.interpolate[d])?p=n.interpolate[d]:Ux(n.interpolate[d])&&(p=n.interpolate[d].use),h[d]=p(u[d]),h},{}),c=o.length-1;return h=>{if(h=Math.min(Math.max(0,h),1),h<=s[0])return o[0];if(h>s[c])return o[c];let d=0;for(;s[d]{let M=f[b](w);return M!==void 0&&(_[b]=M),_},{mode:t})}},qbt=(e,t="rgb",r)=>Sce(e,t,r),Ece=(e,t)=>(r,i="rgb",n)=>{let a=t?s6(t,i):void 0,o=Sce(r,i,n,e);return a?s=>a(o(s)):o},Obt=Ece(Ace,Tce),HD=(e,t)=>(e+t)%t,kce=(e,t,r,i,n)=>{let a=n*n,o=a*n;return((1-3*n+3*a-o)*e+(4-6*a+3*o)*t+(1+3*n+3*a-3*o)*r+o*i)/6},Cce=e=>t=>{let r=e.length-1,i=t>=1?r-1:Math.max(0,Math.floor(t*r));return kce(i>0?e[i-1]:2*e[i]-e[i+1],e[i],e[i+1],it=>{let r=e.length-1,i=Math.floor(t*r);return kce(e[HD(i-1,e.length)],e[HD(i,e.length)],e[HD(i+1,e.length)],e[HD(i+2,e.length)],(t-i/r)*r)},Fce=e=>{let t,r=e.length-1,i=new Array(r),n=new Array(r),a=new Array(r);for(i[1]=1/4,n[1]=(6*e[1]-e[0])/4,t=2;t0&&(a[r-1]=n[r-1]),t=r-2;t>0;--t)a[t]=n[t]-i[t]*a[t+1];return a},Nbt=e=>Cce(Fce(e)),Vbt=e=>Dce(Fce(e)),iw=Math.sign,oU=Math.min,Zd=Math.abs,LU=e=>{let t=e.length-1,r=[],i=[],n=[];for(let a=0;a0?.5*(e[a+1]-e[a-1])*t:void 0),n.push(a>0?(iw(r[a-1])+iw(r[a]))*oU(Zd(r[a-1]),Zd(r[a]),.5*Zd(i[a])):void 0);return[r,i,n]},PU=(e,t,r)=>{let i=e.length-1,n=i*i;return a=>{let o;a>=1?o=i-1:o=Math.max(0,Math.floor(a*i));let s=a-o/i,l=s*s,u=l*s;return(t[o]+t[o+1]-2*r[o])*n*u+(3*r[o]-2*t[o]-t[o+1])*i*l+t[o]*s+e[o]}},Ubt=e=>{if(e.length<3)return ws(e);let t=e.length-1,[r,,i]=LU(e);return i[0]=r[0],i[t]=r[t-1],PU(e,i,r)},Gbt=e=>{if(e.length<3)return ws(e);let t=e.length-1,[r,i,n]=LU(e);return i[0]=(e[1]*2-e[0]*1.5-e[2]*.5)*t,i[t]=(e[t]*1.5-e[t-1]*2+e[t-2]*.5)*t,n[0]=i[0]*r[0]<=0?0:Zd(i[0])>2*Zd(r[0])?2*r[0]:i[0],n[t]=i[t]*r[t-1]<=0?0:Zd(i[t])>2*Zd(r[t-1])?2*r[t-1]:i[t],PU(e,n,r)},Hbt=e=>{let t=e.length-1,[r,i,n]=LU(e);i[0]=.5*(e[1]-e[t])*t,i[t]=.5*(e[0]-e[t-1])*t;let a=(e[0]-e[t])*t,o=a;return n[0]=(iw(a)+iw(r[0]))*oU(Zd(a),Zd(r[0]),.5*Zd(i[0])),n[t]=(iw(r[t-1])+iw(o))*oU(Zd(r[t-1]),Zd(o),.5*Zd(i[t])),PU(e,n,r)},jbt=(e=1)=>e===1?t=>t:t=>Math.pow(t,e),Lce=jbt,Wbt=(e=2,t=1)=>{let r=Lce(t);if(e<2)return e<1?[]:[r(.5)];let i=[];for(let n=0;n{let t={mode:e.mode,r:Math.max(0,Math.min(e.r!==void 0?e.r:0,1)),g:Math.max(0,Math.min(e.g!==void 0?e.g:0,1)),b:Math.max(0,Math.min(e.b!==void 0?e.b:0,1))};return e.alpha!==void 0&&(t.alpha=e.alpha),t},Ice=e=>zce(Pce(e)),Rce=e=>e!==void 0&&(e.r===void 0||e.r>=0&&e.r<=1)&&(e.g===void 0||e.g>=0&&e.g<=1)&&(e.b===void 0||e.b>=0&&e.b<=1);function zU(e){return Rce(Pce(e))}function fF(e="rgb"){let{gamut:t}=q0(e);if(!t)return i=>!0;let r=Lf(typeof t=="string"?t:e);return i=>Rce(r(i))}function Ybt(e){return e=Vv(e),e===void 0||zU(e)?e:Lf(e.mode)(Ice(e))}function IU(e="rgb"){let{gamut:t}=q0(e);if(!t)return a=>Vv(a);let r=typeof t=="string"?t:e,i=Lf(r),n=fF(r);return a=>{let o=Vv(a);if(!o)return;let s=i(o);if(n(s))return o;let l=zce(s);return o.mode===l.mode?l:Lf(o.mode)(l)}}function Xbt(e,t="lch",r="rgb"){e=Vv(e);let i=r==="rgb"?zU:fF(r),n=r==="rgb"?Ice:IU(r);if(e===void 0||i(e))return e;let a=Lf(e.mode);e=Lf(t)(e);let o=$l(Gs({},e),{c:0});if(!i(o))return a(n(o));let s=0,l=e.c!==void 0?e.c:0,u=q0(t).ranges.c,f=(u[1]-u[0])/Math.pow(2,13),c=o.c;for(;l-s>f;)o.c=s+(l-s)*.5,i(o)?(c=o.c,s=o.c):l=o.c;return a(i(o)?o:$l(Gs({},o),{c}))}function Zbt(e="rgb",t="oklch",r=sw("oklch"),i=.02){let n=Lf(e),a=q0(e);if(!a.gamut)return f=>n(f);let o=fF(e),s=IU(e),l=Lf(t),{ranges:u}=q0(t);if(!u.l||!u.c)throw new Error("LCH-like space expected");return f=>{if(f=Vv(f),f===void 0)return;let c=Gs({},l(f));if(c.l===void 0&&(c.l=0),c.c===void 0&&(c.c=0),c.l>=u.l[1]){let y=$l(Gs({},a.white),{mode:e});return f.alpha!==void 0&&(y.alpha=f.alpha),y}if(c.l<=u.l[0]){let y=$l(Gs({},a.black),{mode:e});return f.alpha!==void 0&&(y.alpha=f.alpha),y}if(o(c))return n(c);let h=0,d=c.c,p=(u.c[1]-u.c[0])/4e3,v=s(c);for(;d-h>p;)c.c=(h+d)*.5,v=s(c),o(c)||r&&i>0&&r(c,v)<=i?h=c.c:d=c.c;return n(o(c)?c:v)}}var Kbt=(e,t=sw(),r=i=>i)=>{let i=e.map((n,a)=>({color:r(n),i:a}));return(n,a=1,o=1/0)=>(isFinite(a)&&(a=Math.max(1,Math.min(a,i.length-1))),i.forEach(s=>{s.d=t(n,s.color)}),i.sort((s,l)=>s.d-l.d).slice(0,a).filter(s=>s.de[s.i]))},Jbt=Kbt,RU=e=>Math.max(e,0),BU=e=>Math.max(Math.min(e,1),0),Qbt=(e,t,r)=>e===void 0||t===void 0?void 0:e+r*(t-e),e_t=e=>{let t=1-BU(e);return[.393+.607*t,.769-.769*t,.189-.189*t,0,.349-.349*t,.686+.314*t,.168-.168*t,0,.272-.272*t,.534-.534*t,.131+.869*t,0,0,0,0,1]},t_t=e=>{let t=RU(e);return[.213+.787*t,.715-.715*t,.072-.072*t,0,.213-.213*t,.715+.285*t,.072-.072*t,0,.213-.213*t,.715-.715*t,.072+.928*t,0,0,0,0,1]},r_t=e=>{let t=1-BU(e);return[.2126+.7874*t,.7152-.7152*t,.0722-.0722*t,0,.2126-.2126*t,.7152+.2848*t,.0722-.0722*t,0,.2126-.2126*t,.7152-.7152*t,.0722+.9278*t,0,0,0,0,1]},i_t=e=>{let t=Math.PI*e/180,r=Math.cos(t),i=Math.sin(t);return[.213+r*.787-i*.213,.715-r*.715-i*.715,.072-r*.072+i*.928,0,.213-r*.213+i*.143,.715+r*.285+i*.14,.072-r*.072-i*.283,0,.213-r*.213-i*.787,.715-r*.715+i*.715,.072+r*.928+i*.072,0,0,0,0,1]},cF=(e,t,r=!1)=>{let i=Lf(t),n=q0(t).channels;return a=>{let o=i(a);if(!o)return;let s={mode:t},l,u=n.length;for(let c=0;c{let r=RU(e);return s6(FU(r),t,!0)},a_t=(e=1,t="rgb")=>{let r=RU(e);return s6(FU(r,(1-r)/2),t,!0)},o_t=(e=1,t="rgb")=>cF(e_t(e),t,!0),s_t=(e=1,t="rgb")=>cF(t_t(e),t,!0),l_t=(e=1,t="rgb")=>cF(r_t(e),t,!0),u_t=(e=1,t="rgb")=>{let r=BU(e);return s6((i,n)=>n==="alpha"?i:Qbt(r,1-r,i),t,!0)},f_t=(e=0,t="rgb")=>cF(i_t(e),t,!0),c_t=Lf("rgb"),h_t=[[1,0,-0,0,1,0,-0,-0,1],[.856167,.182038,-.038205,.029342,.955115,.015544,-.00288,-.001563,1.004443],[.734766,.334872,-.069637,.05184,.919198,.028963,-.004928,-.004209,1.009137],[.630323,.465641,-.095964,.069181,.890046,.040773,-.006308,-.007724,1.014032],[.539009,.579343,-.118352,.082546,.866121,.051332,-.007136,-.011959,1.019095],[.458064,.679578,-.137642,.092785,.846313,.060902,-.007494,-.016807,1.024301],[.38545,.769005,-.154455,.100526,.829802,.069673,-.007442,-.02219,1.029632],[.319627,.849633,-.169261,.106241,.815969,.07779,-.007025,-.028051,1.035076],[.259411,.923008,-.18242,.110296,.80434,.085364,-.006276,-.034346,1.040622],[.203876,.990338,-.194214,.112975,.794542,.092483,-.005222,-.041043,1.046265],[.152286,1.052583,-.204868,.114503,.786281,.099216,-.003882,-.048116,1.051998]],d_t=[[1,0,-0,0,1,0,-0,-0,1],[.866435,.177704,-.044139,.049567,.939063,.01137,-.003453,.007233,.99622],[.760729,.319078,-.079807,.090568,.889315,.020117,-.006027,.013325,.992702],[.675425,.43385,-.109275,.125303,.847755,.026942,-.00795,.018572,.989378],[.605511,.52856,-.134071,.155318,.812366,.032316,-.009376,.023176,.9862],[.547494,.607765,-.155259,.181692,.781742,.036566,-.01041,.027275,.983136],[.498864,.674741,-.173604,.205199,.754872,.039929,-.011131,.030969,.980162],[.457771,.731899,-.18967,.226409,.731012,.042579,-.011595,.034333,.977261],[.422823,.781057,-.203881,.245752,.709602,.044646,-.011843,.037423,.974421],[.392952,.82361,-.216562,.263559,.69021,.046232,-.01191,.040281,.97163],[.367322,.860646,-.227968,.280085,.672501,.047413,-.01182,.04294,.968881]],p_t=[[1,0,-0,0,1,0,-0,-0,1],[.92667,.092514,-.019184,.021191,.964503,.014306,.008437,.054813,.93675],[.89572,.13333,-.02905,.029997,.9454,.024603,.013027,.104707,.882266],[.905871,.127791,-.033662,.026856,.941251,.031893,.01341,.148296,.838294],[.948035,.08949,-.037526,.014364,.946792,.038844,.010853,.193991,.795156],[1.017277,.027029,-.044306,-.006113,.958479,.047634,.006379,.248708,.744913],[1.104996,-.046633,-.058363,-.032137,.971635,.060503,.001336,.317922,.680742],[1.193214,-.109812,-.083402,-.058496,.97941,.079086,-.002346,.403492,.598854],[1.257728,-.139648,-.118081,-.078003,.975409,.102594,-.003316,.501214,.502102],[1.278864,-.125333,-.153531,-.084748,.957674,.127074,-989e-6,.601151,.399838],[1.255528,-.076749,-.178779,-.078411,.930809,.147602,.004733,.691367,.3039]],qU=(e,t)=>{let r=Math.max(0,Math.min(1,t)),i=Math.round(r/.1),n=Math.round(r%.1),a=e[i];if(n>0&&iGx(a[l],o[l],n))}return o=>{let s=Vv(o);if(s===void 0)return;let{r:l,g:u,b:f}=c_t(s),c={mode:"rgb",r:a[0]*l+a[1]*u+a[2]*f,g:a[3]*l+a[4]*u+a[5]*f,b:a[6]*l+a[7]*u+a[8]*f};return s.alpha!==void 0&&(c.alpha=s.alpha),Lf(s.mode)(c)}},v_t=(e=1)=>qU(h_t,e),m_t=(e=1)=>qU(d_t,e),y_t=(e=1)=>qU(p_t,e),g_t=e=>e*e*(3-2*e),x_t=e=>.5-Math.sin(Math.asin(1-2*e)/3),b_t=e=>e*e*e*(e*(e*6-15)+10),__t=b_t,w_t=e=>(1-Math.cos(e*Math.PI))/2,A_t=w_t;function sU(e){let t=Lf("lrgb")(e);return .2126*t.r+.7152*t.g+.0722*t.b}function T_t(e,t){let r=sU(e),i=sU(t);return(Math.max(r,i)+.05)/(Math.min(r,i)+.05)}var M_t=uf(vfe),S_t=uf(bfe),E_t=uf(Mfe),k_t=uf(Sfe),C_t=uf(Cfe),D_t=uf(dU),F_t=uf(mU),L_t=uf(Bfe),P_t=uf(Nfe),z_t=uf(Vfe),I_t=uf(Ufe),R_t=uf(lF),B_t=uf(Hfe),q_t=uf(uF),O_t=uf(Wfe),N_t=uf(Xfe),V_t=uf(Zfe),U_t=uf(Kfe),G_t=uf(Qfe),H_t=uf(ece),j_t=uf(rce),W_t=uf(nce),$_t=uf(ace),Y_t=uf(oce),X_t=uf(sce),Z_t=uf(Wx),K_t=uf(cce),J_t=uf(hce),Q_t=uf(vce),e3t=uf(gce)});var OU={};Fl(OU,{default:()=>r3t});var t3t,r3t,NU=ps(()=>{"use strict";t3t={format:{valType:"enumerated",values:["png","jpeg","webp","svg","full-json"],dflt:"png",description:"Sets the format of exported image."},width:{valType:"number",min:1,description:["Sets the exported image width.","Defaults to the value found in `layout.width`","If set to *null*, the exported image width will match the current graph width."].join(" ")},height:{valType:"number",min:1,description:["Sets the exported image height.","Defaults to the value found in `layout.height`","If set to *null*, the exported image height will match the current graph height."].join(" ")},scale:{valType:"number",min:0,dflt:1,description:["Sets a scaling for the generated image.","If set, all features of a graphs (e.g. text, line width)","are scaled, unlike simply setting","a bigger *width* and *height*."].join(" ")},setBackground:{valType:"any",dflt:!1,description:["Sets the image background mode.","By default, the image background is determined by `layout.paper_bgcolor`,","the *transparent* mode.","One might consider setting `setBackground` to *opaque*","when exporting a *jpeg* image as JPEGs do not support opacity."].join(" ")},imageDataOnly:{valType:"boolean",dflt:!1,description:["Determines whether or not the return value is prefixed by","the image format's corresponding 'data:image;' spec."].join(" ")}},r3t=t3t});var Mg=K((Aqr,Gce)=>{"use strict";var{format:i3t,width:n3t,height:a3t,scale:o3t}=(NU(),or(OU)).default,Oce=o3t,{dflt:wqr}=Oce,s3t=FD(Oce,["dflt"]),Nce={staticPlot:{valType:"boolean",dflt:!1},typesetMath:{valType:"boolean",dflt:!0},plotlyServerURL:{valType:"string",dflt:"https://cloud.plotly.com/newchart"},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","map"],extras:[!0,!1],dflt:"gl3d+geo+map"},doubleClick:{valType:"enumerated",values:[!1,"reset","autosize","reset+autosize"],dflt:"reset+autosize"},doubleClickDelay:{valType:"number",dflt:500,min:0},showAxisDragHandles:{valType:"boolean",dflt:!0},showAxisRangeEntryBoxes:{valType:"boolean",dflt:!0},showTips:{valType:"boolean",dflt:!0},displayNotifier:{valType:"boolean",dflt:!0},displayModeBar:{valType:"enumerated",values:["hover",!0,!1],dflt:"hover"},showSendToCloud:{valType:"boolean",dflt:!0},modeBarButtonsToRemove:{valType:"any",dflt:[]},modeBarButtonsToAdd:{valType:"any",dflt:[]},modeBarButtons:{valType:"any",dflt:!1},toImageButtonOptions:{format:i3t,filename:{valType:"string"},width:n3t,height:a3t,scale:s3t},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/un/"},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},locale:{valType:"string",dflt:"en-US"},locales:{valType:"any",dflt:{}}},Vce={};function Uce(e,t){for(let r in e){let i=e[r];typeof i!="object"||i===null||(i.valType?"dflt"in i&&(t[r]=i.dflt):(t[r]||(t[r]={}),Uce(i,t[r])))}}Uce(Nce,Vce);Gce.exports={configAttributes:Nce,dfltConfig:Vce}});var UU=K((Mqr,Hce)=>{"use strict";var VU=No(),l3t=Hs(),l6=[];Hce.exports=function(e,t,r){var s;if(((s=r==null?void 0:r._context)==null?void 0:s.displayNotifier)===!1||l6.indexOf(e)!==-1)return;l6.push(e);var i=1e3;l3t(t)?i=t:t==="long"&&(i=3e3);var n=VU.select("body").selectAll(".plotly-notifier").data([0]);n.enter().append("div").classed("plotly-notifier",!0);var a=n.selectAll(".notifier-note").data(l6);function o(l){l.duration(700).style("opacity",0).each("end",function(u){var f=l6.indexOf(u);f!==-1&&l6.splice(f,1),VU.select(this).remove()})}a.enter().append("div").classed("notifier-note",!0).style("opacity",0).each(function(l){var u=VU.select(this);u.append("button").classed("notifier-close",!0).html("×").on("click",function(){u.transition().call(o)});for(var f=u.append("p"),c=l.split(//g),h=0;h{"use strict";var cw=Mg().dfltConfig,GU=UU(),HU=jce.exports={};HU.log=function(){var e;if(cw.logging>1){var t=["LOG:"];for(e=0;e1){var r=[];for(e=0;e"),"long")}};HU.warn=function(){var e;if(cw.logging>0){var t=["WARN:"];for(e=0;e0){var r=[];for(e=0;e"),"stick")}};HU.error=function(){var e;if(cw.logging>0){var t=["ERROR:"];for(e=0;e0){var r=[];for(e=0;e"),"stick")}}});var Gc=K(Xx=>{"use strict";Xx.defaults=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"];Xx.defaultLine="#444";Xx.lightLine="#eee";Xx.background="#fff";Xx.borderLine="#BEC8D9";Xx.lightFraction=1e3/11});var wo=K((kqr,ehe)=>{"use strict";var{converter:Wce,formatHex:u3t,formatRgb:f3t,wcagContrast:c3t,wcagLuminance:h3t}=qce(),{isArrayOrTypedArray:$ce}=Yh(),{warn:d3t}=ey(),{background:f6,defaultLine:$U,defaults:p3t,lightLine:v3t}=Gc(),Yce=Wce("rgb"),m3t=Wce("hsl"),Xce=e=>{if(typeof e!="string")return;let t=e.trim().toLowerCase();if(!/^[0-9a-f]+$/.test(t))try{return Yce(t)}catch(r){return}},O0=e=>e>0?e>1?1:e:0,y3t={mode:"rgb",r:0,g:0,b:0,alpha:1},jU=e=>Math.round(e*255e6)/255e6,Zce=e=>$l(Gs({},e),{r:jU(e.r),g:jU(e.g),b:jU(e.b)}),Kd=e=>f3t(Zce(e)),g3t=e=>u3t(Zce(e)),x3t=e=>{var t,r,i,n;return typeof e=="string"?`"${e}"`:$ce(e)?`${(r=(t=e.constructor)==null?void 0:t.name)!=null?r:"Array"}(${e.length})`:typeof e=="object"?(n=(i=e.constructor)==null?void 0:i.name)!=null?n:"Object":`${typeof e} ${e}`},lc=(e,t)=>{var i;let r=Xce(e);return r?((i=r.alpha)!=null||(r.alpha=1),r):(!t&&e!=null&&d3t(`Invalid color specifier: ${x3t(e)}. Defaulting to "#000"`),y3t)},u6=e=>Kd($l(Gs({},lc(e)),{alpha:1})),b3t=e=>e?lc(e).alpha:0,Kce=e=>$ce(e)&&e.length>2&&Number.isFinite(e[0])&&Number.isFinite(e[1])&&Number.isFinite(e[2]),_3t=e=>{let[t,r,i,n]=e,a=Math.max(t,r,i)>1?1/255:1,o=n!=null?n:1;return{mode:"rgb",r:t*a,g:r*a,b:i*a,alpha:o>1?o/255:o}},w3t=(e,t)=>{let r=Kce(e)?_3t(e):lc(e,!0),i=[O0(r.r),O0(r.g),O0(r.b),O0(r.alpha)];return t==="uint8"||t==="uint8_clamped"?Uint8Array.from(i,n=>Math.round(n*255)):t==="float32"?Float32Array.from(i):t==="float64"?Float64Array.from(i):i},A3t=(e,t)=>Kd($l(Gs({},lc(e)),{alpha:O0(t)})),Jce=(e,t)=>{let r=lc(e),i=r.alpha;if(i===1)return Kd(r);let n=lc(t||f6),a=n.alpha,o=(s,l)=>(a===1?l:1-a+l*a)*(1-i)+s*i;return Kd({mode:"rgb",r:o(r.r,n.r),g:o(r.g,n.g),b:o(r.b,n.b)})},T3t=(e,t,r)=>{let i=lc(e),n=lc(t),a=(o,s)=>r*o+(1-r)*s;return Kd({mode:"rgb",r:a(i.r,n.r),g:a(i.g,n.g),b:a(i.b,n.b)})},WU=(e,t)=>{let r=lc(e),i=m3t(r)||{mode:"hsl",h:0,s:0,l:0};return Kd(Yce($l(Gs({},i),{l:O0((i.l*100+t)/100),alpha:r.alpha})))},hF=(e,t)=>c3t(lc(e),lc(t)),Qce=e=>hF(e,f6)>hF(e,$U),M3t=Kd(lc(f6)),S3t=Kd(lc($U)),E3t=(e,t,r)=>(lc(e).alpha!==1&&(e=Jce(e,f6)),Qce(e)?t?WU(e,t):M3t:r?WU(e,-r):S3t),k3t=(e,t)=>{e.style({stroke:u6(t),"stroke-opacity":lc(t).alpha})},C3t=(e,t)=>{e.style({fill:u6(t),"fill-opacity":lc(t).alpha})},D3t=(e,t)=>!!(e&&t&&u6(e)===u6(t)),F3t=e=>Xce(e)!==void 0,L3t=(e,t)=>{t=t===0?0:t||10;let r=lc(e),i=t/100;return Kd($l(Gs({},r),{r:O0(r.r+i),g:O0(r.g+i),b:O0(r.b+i)}))},P3t=(e,t,r)=>{let i=lc(e),n=lc(t),a=r/100,o=n.alpha-i.alpha,s=2*a-1,l=((s*o===-1?s:(s+o)/(1+s*o))+1)/2,u=1-l,f=(c,h)=>u*c+l*h;return Kd({mode:"rgb",r:f(i.r,n.r),g:f(i.g,n.g),b:f(i.b,n.b),alpha:i.alpha*(1-a)+n.alpha*a})},z3t=(e,t=["#000","#fff"])=>{let r,i=-1/0;for(let n of t){let a=hF(e,n);a>i&&(i=a,r=Kd(lc(n)))}return r},I3t=e=>Kd(lc(e)),R3t=e=>g3t(lc(e)).toUpperCase(),B3t=e=>{let t=lc(e);return[O0(t.r)*255,O0(t.g)*255,O0(t.b)*255,O0(t.alpha)]},q3t=([e,t,r,i])=>Kd({mode:"rgb",r:e/255,g:t/255,b:r/255,alpha:i}),O3t=e=>{let t=lc(e);return h3t({mode:"rgb",r:O0(t.r),g:O0(t.g),b:O0(t.b)})};ehe.exports={addOpacity:A3t,adjustLightness:WU,background:f6,brighten:L3t,combine:Jce,contrast:E3t,defaultLine:$U,defaults:p3t,equals:D3t,fill:C3t,hexString:R3t,interpolate:T3t,isChannelArray:Kce,isDark:Qce,isValid:F3t,lightLine:v3t,luminosity:O3t,mix:P3t,mostReadable:z3t,normalize:w3t,opacity:b3t,parse:lc,rgb:u6,rgbaArray:B3t,rgbaArrayToString:q3t,rgbaString:I3t,stroke:k3t,wcagContrast:hF}});var Zx=K((Dqr,ihe)=>{"use strict";var N3t=wo(),dF={Greys:[[0,"rgb(0,0,0)"],[1,"rgb(255,255,255)"]],YlGnBu:[[0,"rgb(8,29,88)"],[.125,"rgb(37,52,148)"],[.25,"rgb(34,94,168)"],[.375,"rgb(29,145,192)"],[.5,"rgb(65,182,196)"],[.625,"rgb(127,205,187)"],[.75,"rgb(199,233,180)"],[.875,"rgb(237,248,217)"],[1,"rgb(255,255,217)"]],Greens:[[0,"rgb(0,68,27)"],[.125,"rgb(0,109,44)"],[.25,"rgb(35,139,69)"],[.375,"rgb(65,171,93)"],[.5,"rgb(116,196,118)"],[.625,"rgb(161,217,155)"],[.75,"rgb(199,233,192)"],[.875,"rgb(229,245,224)"],[1,"rgb(247,252,245)"]],YlOrRd:[[0,"rgb(128,0,38)"],[.125,"rgb(189,0,38)"],[.25,"rgb(227,26,28)"],[.375,"rgb(252,78,42)"],[.5,"rgb(253,141,60)"],[.625,"rgb(254,178,76)"],[.75,"rgb(254,217,118)"],[.875,"rgb(255,237,160)"],[1,"rgb(255,255,204)"]],Bluered:[[0,"rgb(0,0,255)"],[1,"rgb(255,0,0)"]],RdBu:[[0,"rgb(5,10,172)"],[.35,"rgb(106,137,247)"],[.5,"rgb(190,190,190)"],[.6,"rgb(220,170,132)"],[.7,"rgb(230,145,90)"],[1,"rgb(178,10,28)"]],Reds:[[0,"rgb(220,220,220)"],[.2,"rgb(245,195,157)"],[.4,"rgb(245,160,105)"],[1,"rgb(178,10,28)"]],Blues:[[0,"rgb(5,10,172)"],[.35,"rgb(40,60,190)"],[.5,"rgb(70,100,245)"],[.6,"rgb(90,120,245)"],[.7,"rgb(106,137,247)"],[1,"rgb(220,220,220)"]],Picnic:[[0,"rgb(0,0,255)"],[.1,"rgb(51,153,255)"],[.2,"rgb(102,204,255)"],[.3,"rgb(153,204,255)"],[.4,"rgb(204,204,255)"],[.5,"rgb(255,255,255)"],[.6,"rgb(255,204,255)"],[.7,"rgb(255,153,255)"],[.8,"rgb(255,102,204)"],[.9,"rgb(255,102,102)"],[1,"rgb(255,0,0)"]],Rainbow:[[0,"rgb(150,0,90)"],[.125,"rgb(0,0,200)"],[.25,"rgb(0,25,255)"],[.375,"rgb(0,152,255)"],[.5,"rgb(44,255,150)"],[.625,"rgb(151,255,0)"],[.75,"rgb(255,234,0)"],[.875,"rgb(255,111,0)"],[1,"rgb(255,0,0)"]],Portland:[[0,"rgb(12,51,131)"],[.25,"rgb(10,136,186)"],[.5,"rgb(242,211,56)"],[.75,"rgb(242,143,56)"],[1,"rgb(217,30,30)"]],Jet:[[0,"rgb(0,0,131)"],[.125,"rgb(0,60,170)"],[.375,"rgb(5,255,255)"],[.625,"rgb(255,255,0)"],[.875,"rgb(250,0,0)"],[1,"rgb(128,0,0)"]],Hot:[[0,"rgb(0,0,0)"],[.3,"rgb(230,0,0)"],[.6,"rgb(255,210,0)"],[1,"rgb(255,255,255)"]],Blackbody:[[0,"rgb(0,0,0)"],[.2,"rgb(230,0,0)"],[.4,"rgb(230,210,0)"],[.7,"rgb(255,255,255)"],[1,"rgb(160,200,255)"]],Earth:[[0,"rgb(0,0,130)"],[.1,"rgb(0,180,180)"],[.2,"rgb(40,210,40)"],[.4,"rgb(230,230,50)"],[.6,"rgb(120,70,20)"],[1,"rgb(255,255,255)"]],Electric:[[0,"rgb(0,0,0)"],[.15,"rgb(30,0,100)"],[.4,"rgb(120,0,100)"],[.6,"rgb(160,90,0)"],[.8,"rgb(230,200,0)"],[1,"rgb(255,250,220)"]],Viridis:[[0,"#440154"],[.06274509803921569,"#48186a"],[.12549019607843137,"#472d7b"],[.18823529411764706,"#424086"],[.25098039215686274,"#3b528b"],[.3137254901960784,"#33638d"],[.3764705882352941,"#2c728e"],[.4392156862745098,"#26828e"],[.5019607843137255,"#21918c"],[.5647058823529412,"#1fa088"],[.6274509803921569,"#28ae80"],[.6901960784313725,"#3fbc73"],[.7529411764705882,"#5ec962"],[.8156862745098039,"#84d44b"],[.8784313725490196,"#addc30"],[.9411764705882353,"#d8e219"],[1,"#fde725"]],Cividis:[[0,"rgb(0,32,76)"],[.058824,"rgb(0,42,102)"],[.117647,"rgb(0,52,110)"],[.176471,"rgb(39,63,108)"],[.235294,"rgb(60,74,107)"],[.294118,"rgb(76,85,107)"],[.352941,"rgb(91,95,109)"],[.411765,"rgb(104,106,112)"],[.470588,"rgb(117,117,117)"],[.529412,"rgb(131,129,120)"],[.588235,"rgb(146,140,120)"],[.647059,"rgb(161,152,118)"],[.705882,"rgb(176,165,114)"],[.764706,"rgb(192,177,109)"],[.823529,"rgb(209,191,102)"],[.882353,"rgb(225,204,92)"],[.941176,"rgb(243,219,79)"],[1,"rgb(255,233,69)"]]},the=dF.RdBu;function V3t(e,t){if(t||(t=the),!e)return t;function r(){try{e=dF[e]||JSON.parse(e)}catch(i){e=t}}return typeof e=="string"&&(r(),typeof e=="string"&&r()),rhe(e)?e:t}function rhe(e){var t=0;if(!Array.isArray(e)||e.length<2||!e[0]||!e[e.length-1]||+e[0][0]!=0||+e[e.length-1][0]!=1)return!1;for(var r=0;rj3t,HIDE_PLACEHOLDER:()=>H3t,SHOW_PLACEHOLDER:()=>G3t});var G3t,H3t,j3t,ry=ps(()=>{"use strict";G3t=100,H3t=1e3,j3t=.2});var c6={};Fl(c6,{counter:()=>Kx});function Kx(e,t="",r,i){let n=t+(r?"":"$"),a=i===!1?"":"^";return e==="xy"?new RegExp(a+"x"+YU+"y"+YU+n):new RegExp(a+e+YU+n)}var YU,hw=ps(()=>{"use strict";YU="([2-9]|[1-9][0-9]+)?"});var ohe=K(Sd=>{"use strict";var XU=Hs(),nhe=Os().extendFlat,W3t=Tu(),$3t=Zx(),ZU=wo(),Y3t=(ry(),or(ty)).DESELECTDIM,dw=VT(),ahe=(hw(),or(c6)).counter,X3t=(tw(),or(ew)).modHalf,Uv=Yh().isArrayOrTypedArray,Sg=Yh().isTypedArraySpec,Eg=Yh().decodeTypedArraySpec;Sd.valObjectMeta={data_array:{coerceFunction:function(e,t,r){t.set(Uv(e)?e:Sg(e)?Eg(e):r)}},enumerated:{coerceFunction:function(e,t,r,i){i.coerceNumber&&(e=+e),i.values.indexOf(e)===-1?t.set(r):t.set(e)},validateFunction:function(e,t){t.coerceNumber&&(e=+e);for(var r=t.values,i=0;ia===!0||a===!1;n(e)||i.arrayOk&&Array.isArray(e)&&e.length>0&&e.every(n)?t.set(e):t.set(r)}},number:{coerceFunction:function(e,t,r,i){Sg(e)&&(e=Eg(e)),!XU(e)||i.min!==void 0&&ei.max?t.set(r):t.set(+e)}},integer:{coerceFunction:function(e,t,r,i){if((i.extras||[]).indexOf(e)!==-1){t.set(e);return}Sg(e)&&(e=Eg(e)),e%1||!XU(e)||i.min!==void 0&&ei.max?t.set(r):t.set(+e)}},string:{coerceFunction:function(e,t,r,i){if(typeof e!="string"){var n=typeof e=="number";i.strict===!0||!n?t.set(r):t.set(String(e))}else i.noBlank&&!e?t.set(r):t.set(e)}},color:{coerceFunction:function(e,t,r){Sg(e)&&(e=Eg(e)),ZU.isValid(e)?t.set(e):t.set(r)}},colorlist:{coerceFunction:function(e,t,r){!Array.isArray(e)||!e.length?t.set(r):e.every(i=>ZU.isValid(i))?t.set(e):t.set(r)}},colorscale:{coerceFunction:function(e,t,r){t.set($3t.get(e,r))}},angle:{coerceFunction:function(e,t,r){Sg(e)&&(e=Eg(e)),e==="auto"?t.set("auto"):XU(e)?t.set(X3t(+e,360)):t.set(r)}},subplotid:{coerceFunction:function(e,t,r,i){var n=i.regex||ahe(r);let a=o=>typeof o=="string"&&n.test(o);a(e)||i.arrayOk&&Uv(e)&&e.length>0&&e.every(a)?t.set(e):t.set(r)},validateFunction:function(e,t){var r=t.dflt;return e===r?!0:typeof e!="string"?!1:!!ahe(r).test(e)}},flaglist:{coerceFunction:function(e,t,r,i){if((i.extras||[]).indexOf(e)!==-1){t.set(e);return}if(typeof e!="string"){t.set(r);return}for(var n=e.split("+"),a=0;a{"use strict";she.exports=function(){}});var KU=K((Pqr,lhe)=>{"use strict";lhe.exports=function(t,r){if(r instanceof RegExp){for(var i=r.toString(),n=0;n{uhe.exports=Z3t;function Z3t(){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}});var hhe=K((Iqr,che)=>{che.exports=K3t;function K3t(e){var t=new Float32Array(16);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}});var phe=K((Rqr,dhe)=>{dhe.exports=J3t;function J3t(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}});var JU=K((Bqr,vhe)=>{vhe.exports=Q3t;function Q3t(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}});var yhe=K((qqr,mhe)=>{mhe.exports=ewt;function ewt(e,t){if(e===t){var r=t[1],i=t[2],n=t[3],a=t[6],o=t[7],s=t[11];e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=r,e[6]=t[9],e[7]=t[13],e[8]=i,e[9]=a,e[11]=t[14],e[12]=n,e[13]=o,e[14]=s}else e[0]=t[0],e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=t[1],e[5]=t[5],e[6]=t[9],e[7]=t[13],e[8]=t[2],e[9]=t[6],e[10]=t[10],e[11]=t[14],e[12]=t[3],e[13]=t[7],e[14]=t[11],e[15]=t[15];return e}});var xhe=K((Oqr,ghe)=>{ghe.exports=twt;function twt(e,t){var r=t[0],i=t[1],n=t[2],a=t[3],o=t[4],s=t[5],l=t[6],u=t[7],f=t[8],c=t[9],h=t[10],d=t[11],p=t[12],v=t[13],y=t[14],m=t[15],w=r*s-i*o,_=r*l-n*o,b=r*u-a*o,M=i*l-n*s,x=i*u-a*s,T=n*u-a*l,A=f*v-c*p,g=f*y-h*p,E=f*m-d*p,S=c*y-h*v,C=c*m-d*v,k=h*m-d*y,D=w*k-_*C+b*S+M*E-x*g+T*A;return D?(D=1/D,e[0]=(s*k-l*C+u*S)*D,e[1]=(n*C-i*k-a*S)*D,e[2]=(v*T-y*x+m*M)*D,e[3]=(h*x-c*T-d*M)*D,e[4]=(l*E-o*k-u*g)*D,e[5]=(r*k-n*E+a*g)*D,e[6]=(y*b-p*T-m*_)*D,e[7]=(f*T-h*b+d*_)*D,e[8]=(o*C-s*E+u*A)*D,e[9]=(i*E-r*C-a*A)*D,e[10]=(p*x-v*b+m*w)*D,e[11]=(c*b-f*x-d*w)*D,e[12]=(s*g-o*S-l*A)*D,e[13]=(r*S-i*g+n*A)*D,e[14]=(v*_-p*M-y*w)*D,e[15]=(f*M-c*_+h*w)*D,e):null}});var _he=K((Nqr,bhe)=>{bhe.exports=rwt;function rwt(e,t){var r=t[0],i=t[1],n=t[2],a=t[3],o=t[4],s=t[5],l=t[6],u=t[7],f=t[8],c=t[9],h=t[10],d=t[11],p=t[12],v=t[13],y=t[14],m=t[15];return e[0]=s*(h*m-d*y)-c*(l*m-u*y)+v*(l*d-u*h),e[1]=-(i*(h*m-d*y)-c*(n*m-a*y)+v*(n*d-a*h)),e[2]=i*(l*m-u*y)-s*(n*m-a*y)+v*(n*u-a*l),e[3]=-(i*(l*d-u*h)-s*(n*d-a*h)+c*(n*u-a*l)),e[4]=-(o*(h*m-d*y)-f*(l*m-u*y)+p*(l*d-u*h)),e[5]=r*(h*m-d*y)-f*(n*m-a*y)+p*(n*d-a*h),e[6]=-(r*(l*m-u*y)-o*(n*m-a*y)+p*(n*u-a*l)),e[7]=r*(l*d-u*h)-o*(n*d-a*h)+f*(n*u-a*l),e[8]=o*(c*m-d*v)-f*(s*m-u*v)+p*(s*d-u*c),e[9]=-(r*(c*m-d*v)-f*(i*m-a*v)+p*(i*d-a*c)),e[10]=r*(s*m-u*v)-o*(i*m-a*v)+p*(i*u-a*s),e[11]=-(r*(s*d-u*c)-o*(i*d-a*c)+f*(i*u-a*s)),e[12]=-(o*(c*y-h*v)-f*(s*y-l*v)+p*(s*h-l*c)),e[13]=r*(c*y-h*v)-f*(i*y-n*v)+p*(i*h-n*c),e[14]=-(r*(s*y-l*v)-o*(i*y-n*v)+p*(i*l-n*s)),e[15]=r*(s*h-l*c)-o*(i*h-n*c)+f*(i*l-n*s),e}});var Ahe=K((Vqr,whe)=>{whe.exports=iwt;function iwt(e){var t=e[0],r=e[1],i=e[2],n=e[3],a=e[4],o=e[5],s=e[6],l=e[7],u=e[8],f=e[9],c=e[10],h=e[11],d=e[12],p=e[13],v=e[14],y=e[15],m=t*o-r*a,w=t*s-i*a,_=t*l-n*a,b=r*s-i*o,M=r*l-n*o,x=i*l-n*s,T=u*p-f*d,A=u*v-c*d,g=u*y-h*d,E=f*v-c*p,S=f*y-h*p,C=c*y-h*v;return m*C-w*S+_*E+b*g-M*A+x*T}});var Mhe=K((Uqr,The)=>{The.exports=nwt;function nwt(e,t,r){var i=t[0],n=t[1],a=t[2],o=t[3],s=t[4],l=t[5],u=t[6],f=t[7],c=t[8],h=t[9],d=t[10],p=t[11],v=t[12],y=t[13],m=t[14],w=t[15],_=r[0],b=r[1],M=r[2],x=r[3];return e[0]=_*i+b*s+M*c+x*v,e[1]=_*n+b*l+M*h+x*y,e[2]=_*a+b*u+M*d+x*m,e[3]=_*o+b*f+M*p+x*w,_=r[4],b=r[5],M=r[6],x=r[7],e[4]=_*i+b*s+M*c+x*v,e[5]=_*n+b*l+M*h+x*y,e[6]=_*a+b*u+M*d+x*m,e[7]=_*o+b*f+M*p+x*w,_=r[8],b=r[9],M=r[10],x=r[11],e[8]=_*i+b*s+M*c+x*v,e[9]=_*n+b*l+M*h+x*y,e[10]=_*a+b*u+M*d+x*m,e[11]=_*o+b*f+M*p+x*w,_=r[12],b=r[13],M=r[14],x=r[15],e[12]=_*i+b*s+M*c+x*v,e[13]=_*n+b*l+M*h+x*y,e[14]=_*a+b*u+M*d+x*m,e[15]=_*o+b*f+M*p+x*w,e}});var Ehe=K((Gqr,She)=>{She.exports=awt;function awt(e,t,r){var i=r[0],n=r[1],a=r[2],o,s,l,u,f,c,h,d,p,v,y,m;return t===e?(e[12]=t[0]*i+t[4]*n+t[8]*a+t[12],e[13]=t[1]*i+t[5]*n+t[9]*a+t[13],e[14]=t[2]*i+t[6]*n+t[10]*a+t[14],e[15]=t[3]*i+t[7]*n+t[11]*a+t[15]):(o=t[0],s=t[1],l=t[2],u=t[3],f=t[4],c=t[5],h=t[6],d=t[7],p=t[8],v=t[9],y=t[10],m=t[11],e[0]=o,e[1]=s,e[2]=l,e[3]=u,e[4]=f,e[5]=c,e[6]=h,e[7]=d,e[8]=p,e[9]=v,e[10]=y,e[11]=m,e[12]=o*i+f*n+p*a+t[12],e[13]=s*i+c*n+v*a+t[13],e[14]=l*i+h*n+y*a+t[14],e[15]=u*i+d*n+m*a+t[15]),e}});var Che=K((Hqr,khe)=>{khe.exports=owt;function owt(e,t,r){var i=r[0],n=r[1],a=r[2];return e[0]=t[0]*i,e[1]=t[1]*i,e[2]=t[2]*i,e[3]=t[3]*i,e[4]=t[4]*n,e[5]=t[5]*n,e[6]=t[6]*n,e[7]=t[7]*n,e[8]=t[8]*a,e[9]=t[9]*a,e[10]=t[10]*a,e[11]=t[11]*a,e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}});var Fhe=K((jqr,Dhe)=>{Dhe.exports=swt;function swt(e,t,r,i){var n=i[0],a=i[1],o=i[2],s=Math.sqrt(n*n+a*a+o*o),l,u,f,c,h,d,p,v,y,m,w,_,b,M,x,T,A,g,E,S,C,k,D,F;return Math.abs(s)<1e-6?null:(s=1/s,n*=s,a*=s,o*=s,l=Math.sin(r),u=Math.cos(r),f=1-u,c=t[0],h=t[1],d=t[2],p=t[3],v=t[4],y=t[5],m=t[6],w=t[7],_=t[8],b=t[9],M=t[10],x=t[11],T=n*n*f+u,A=a*n*f+o*l,g=o*n*f-a*l,E=n*a*f-o*l,S=a*a*f+u,C=o*a*f+n*l,k=n*o*f+a*l,D=a*o*f-n*l,F=o*o*f+u,e[0]=c*T+v*A+_*g,e[1]=h*T+y*A+b*g,e[2]=d*T+m*A+M*g,e[3]=p*T+w*A+x*g,e[4]=c*E+v*S+_*C,e[5]=h*E+y*S+b*C,e[6]=d*E+m*S+M*C,e[7]=p*E+w*S+x*C,e[8]=c*k+v*D+_*F,e[9]=h*k+y*D+b*F,e[10]=d*k+m*D+M*F,e[11]=p*k+w*D+x*F,t!==e&&(e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e)}});var Phe=K((Wqr,Lhe)=>{Lhe.exports=lwt;function lwt(e,t,r){var i=Math.sin(r),n=Math.cos(r),a=t[4],o=t[5],s=t[6],l=t[7],u=t[8],f=t[9],c=t[10],h=t[11];return t!==e&&(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[4]=a*n+u*i,e[5]=o*n+f*i,e[6]=s*n+c*i,e[7]=l*n+h*i,e[8]=u*n-a*i,e[9]=f*n-o*i,e[10]=c*n-s*i,e[11]=h*n-l*i,e}});var Ihe=K(($qr,zhe)=>{zhe.exports=uwt;function uwt(e,t,r){var i=Math.sin(r),n=Math.cos(r),a=t[0],o=t[1],s=t[2],l=t[3],u=t[8],f=t[9],c=t[10],h=t[11];return t!==e&&(e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=a*n-u*i,e[1]=o*n-f*i,e[2]=s*n-c*i,e[3]=l*n-h*i,e[8]=a*i+u*n,e[9]=o*i+f*n,e[10]=s*i+c*n,e[11]=l*i+h*n,e}});var Bhe=K((Yqr,Rhe)=>{Rhe.exports=fwt;function fwt(e,t,r){var i=Math.sin(r),n=Math.cos(r),a=t[0],o=t[1],s=t[2],l=t[3],u=t[4],f=t[5],c=t[6],h=t[7];return t!==e&&(e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=a*n+u*i,e[1]=o*n+f*i,e[2]=s*n+c*i,e[3]=l*n+h*i,e[4]=u*n-a*i,e[5]=f*n-o*i,e[6]=c*n-s*i,e[7]=h*n-l*i,e}});var Ohe=K((Xqr,qhe)=>{qhe.exports=cwt;function cwt(e,t,r){var i,n,a,o=r[0],s=r[1],l=r[2],u=Math.sqrt(o*o+s*s+l*l);return Math.abs(u)<1e-6?null:(u=1/u,o*=u,s*=u,l*=u,i=Math.sin(t),n=Math.cos(t),a=1-n,e[0]=o*o*a+n,e[1]=s*o*a+l*i,e[2]=l*o*a-s*i,e[3]=0,e[4]=o*s*a-l*i,e[5]=s*s*a+n,e[6]=l*s*a+o*i,e[7]=0,e[8]=o*l*a+s*i,e[9]=s*l*a-o*i,e[10]=l*l*a+n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e)}});var Vhe=K((Zqr,Nhe)=>{Nhe.exports=hwt;function hwt(e,t,r){var i=t[0],n=t[1],a=t[2],o=t[3],s=i+i,l=n+n,u=a+a,f=i*s,c=i*l,h=i*u,d=n*l,p=n*u,v=a*u,y=o*s,m=o*l,w=o*u;return e[0]=1-(d+v),e[1]=c+w,e[2]=h-m,e[3]=0,e[4]=c-w,e[5]=1-(f+v),e[6]=p+y,e[7]=0,e[8]=h+m,e[9]=p-y,e[10]=1-(f+d),e[11]=0,e[12]=r[0],e[13]=r[1],e[14]=r[2],e[15]=1,e}});var Ghe=K((Kqr,Uhe)=>{Uhe.exports=dwt;function dwt(e,t){return e[0]=t[0],e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=t[1],e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=t[2],e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var jhe=K((Jqr,Hhe)=>{Hhe.exports=pwt;function pwt(e,t){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]=t[0],e[13]=t[1],e[14]=t[2],e[15]=1,e}});var $he=K((Qqr,Whe)=>{Whe.exports=vwt;function vwt(e,t){var r=Math.sin(t),i=Math.cos(t);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=i,e[6]=r,e[7]=0,e[8]=0,e[9]=-r,e[10]=i,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var Xhe=K((eOr,Yhe)=>{Yhe.exports=mwt;function mwt(e,t){var r=Math.sin(t),i=Math.cos(t);return e[0]=i,e[1]=0,e[2]=-r,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=r,e[9]=0,e[10]=i,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var Khe=K((tOr,Zhe)=>{Zhe.exports=ywt;function ywt(e,t){var r=Math.sin(t),i=Math.cos(t);return e[0]=i,e[1]=r,e[2]=0,e[3]=0,e[4]=-r,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}});var Qhe=K((rOr,Jhe)=>{Jhe.exports=gwt;function gwt(e,t){var r=t[0],i=t[1],n=t[2],a=t[3],o=r+r,s=i+i,l=n+n,u=r*o,f=i*o,c=i*s,h=n*o,d=n*s,p=n*l,v=a*o,y=a*s,m=a*l;return e[0]=1-c-p,e[1]=f+m,e[2]=h-y,e[3]=0,e[4]=f-m,e[5]=1-u-p,e[6]=d+v,e[7]=0,e[8]=h+y,e[9]=d-v,e[10]=1-u-c,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var t0e=K((iOr,e0e)=>{e0e.exports=xwt;function xwt(e,t,r,i,n,a,o){var s=1/(r-t),l=1/(n-i),u=1/(a-o);return e[0]=a*2*s,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=a*2*l,e[6]=0,e[7]=0,e[8]=(r+t)*s,e[9]=(n+i)*l,e[10]=(o+a)*u,e[11]=-1,e[12]=0,e[13]=0,e[14]=o*a*2*u,e[15]=0,e}});var i0e=K((nOr,r0e)=>{r0e.exports=bwt;function bwt(e,t,r,i,n){var a=1/Math.tan(t/2),o=1/(i-n);return e[0]=a/r,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=a,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=(n+i)*o,e[11]=-1,e[12]=0,e[13]=0,e[14]=2*n*i*o,e[15]=0,e}});var a0e=K((aOr,n0e)=>{n0e.exports=_wt;function _wt(e,t,r,i){var n=Math.tan(t.upDegrees*Math.PI/180),a=Math.tan(t.downDegrees*Math.PI/180),o=Math.tan(t.leftDegrees*Math.PI/180),s=Math.tan(t.rightDegrees*Math.PI/180),l=2/(o+s),u=2/(n+a);return e[0]=l,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=u,e[6]=0,e[7]=0,e[8]=-((o-s)*l*.5),e[9]=(n-a)*u*.5,e[10]=i/(r-i),e[11]=-1,e[12]=0,e[13]=0,e[14]=i*r/(r-i),e[15]=0,e}});var s0e=K((oOr,o0e)=>{o0e.exports=wwt;function wwt(e,t,r,i,n,a,o){var s=1/(t-r),l=1/(i-n),u=1/(a-o);return e[0]=-2*s,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*l,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*u,e[11]=0,e[12]=(t+r)*s,e[13]=(n+i)*l,e[14]=(o+a)*u,e[15]=1,e}});var u0e=K((sOr,l0e)=>{var Awt=JU();l0e.exports=Twt;function Twt(e,t,r,i){var n,a,o,s,l,u,f,c,h,d,p=t[0],v=t[1],y=t[2],m=i[0],w=i[1],_=i[2],b=r[0],M=r[1],x=r[2];return Math.abs(p-b)<1e-6&&Math.abs(v-M)<1e-6&&Math.abs(y-x)<1e-6?Awt(e):(f=p-b,c=v-M,h=y-x,d=1/Math.sqrt(f*f+c*c+h*h),f*=d,c*=d,h*=d,n=w*h-_*c,a=_*f-m*h,o=m*c-w*f,d=Math.sqrt(n*n+a*a+o*o),d?(d=1/d,n*=d,a*=d,o*=d):(n=0,a=0,o=0),s=c*o-h*a,l=h*n-f*o,u=f*a-c*n,d=Math.sqrt(s*s+l*l+u*u),d?(d=1/d,s*=d,l*=d,u*=d):(s=0,l=0,u=0),e[0]=n,e[1]=s,e[2]=f,e[3]=0,e[4]=a,e[5]=l,e[6]=c,e[7]=0,e[8]=o,e[9]=u,e[10]=h,e[11]=0,e[12]=-(n*p+a*v+o*y),e[13]=-(s*p+l*v+u*y),e[14]=-(f*p+c*v+h*y),e[15]=1,e)}});var c0e=K((lOr,f0e)=>{f0e.exports=Mwt;function Mwt(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]+")"}});var QU=K((uOr,h0e)=>{h0e.exports={create:fhe(),clone:hhe(),copy:phe(),identity:JU(),transpose:yhe(),invert:xhe(),adjoint:_he(),determinant:Ahe(),multiply:Mhe(),translate:Ehe(),scale:Che(),rotate:Fhe(),rotateX:Phe(),rotateY:Ihe(),rotateZ:Bhe(),fromRotation:Ohe(),fromRotationTranslation:Vhe(),fromScaling:Ghe(),fromTranslation:jhe(),fromXRotation:$he(),fromYRotation:Xhe(),fromZRotation:Khe(),fromQuat:Qhe(),frustum:t0e(),perspective:i0e(),perspectiveFromFieldOfView:a0e(),ortho:s0e(),lookAt:u0e(),str:c0e()}});var mF=K(Sc=>{"use strict";var Swt=QU();Sc.init2dArray=function(e,t){for(var r=new Array(e),i=0;i{"use strict";var Ewt=No(),d0e=ey(),kwt=mF(),Cwt=QU();function Dwt(e){var t;if(typeof e=="string"){if(t=document.getElementById(e),t===null)throw new Error("No DOM element with id '"+e+"' exists on the page.");return t}else if(e==null)throw new Error("DOM element provided is null or undefined");return e}function Fwt(e){var t=Ewt.select(e);return t.node()instanceof HTMLElement&&t.size()&&t.classed("js-plotly-plot")}function p0e(e){var t=e&&e.parentNode;t&&t.removeChild(e)}function Lwt(e,t){v0e("global",e,t)}function v0e(e,t,r){var i="plotly.js-style-"+e,n=document.getElementById(i);if(!(n&&n.matches(".no-inline-styles"))){n||(n=document.createElement("style"),n.setAttribute("id",i),n.appendChild(document.createTextNode("")),document.head.appendChild(n));var a=n.sheet;a?a.insertRule?a.insertRule(t+"{"+r+"}",0):a.addRule?a.addRule(t,r,0):d0e.warn("addStyleRule failed"):d0e.warn("Cannot addRelatedStyleRule, probably due to strict CSP...")}}function Pwt(e){var t="plotly.js-style-"+e,r=document.getElementById(t);r&&p0e(r)}function zwt(e,t,r,i,n,a){var o=i.split(":"),s=n.split(":"),l="data-btn-style-event-added";a||(a=document),a.querySelectorAll(e).forEach(function(u){u._hoverStyle={activeStyleParts:o,inactiveStyleParts:s},u.getAttribute(l)||(u.addEventListener("mouseenter",function(){var f=this._hoverStyle,c=this.querySelector(r);c&&(c.style[f.activeStyleParts[0]]=f.activeStyleParts[1])}),u.addEventListener("mouseleave",function(){var f=this._hoverStyle,c=this.querySelector(r);c&&(t&&this.matches(t)?c.style[f.activeStyleParts[0]]=f.activeStyleParts[1]:c.style[f.inactiveStyleParts[0]]=f.inactiveStyleParts[1])}),u.setAttribute(l,!0))})}function Iwt(e){var t=y0e(e),r=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];return t.forEach(function(i){var n=m0e(i);if(n){var a=kwt.convertCssMatrix(n);r=Cwt.multiply(r,r,a)}}),r}function m0e(e){var t=window.getComputedStyle(e,null),r=t.getPropertyValue("-webkit-transform")||t.getPropertyValue("-moz-transform")||t.getPropertyValue("-ms-transform")||t.getPropertyValue("-o-transform")||t.getPropertyValue("transform");return r==="none"?null:r.replace("matrix","").replace("3d","").slice(1,-1).split(",").map(function(i){return+i})}function y0e(e){for(var t=[];Rwt(e);)t.push(e),e=e.parentNode,typeof ShadowRoot=="function"&&e instanceof ShadowRoot&&(e=e.host);return t}function Rwt(e){return e&&(e instanceof Element||e instanceof HTMLElement)}function Bwt(e,t){return e&&t&&e.top===t.top&&e.left===t.left&&e.right===t.right&&e.bottom===t.bottom}g0e.exports={getGraphDiv:Dwt,isPlotDiv:Fwt,removeElement:p0e,addStyleRule:Lwt,addRelatedStyleRule:v0e,deleteRelatedStyleRule:Pwt,setStyleOnHover:zwt,getFullTransformMatrix:Iwt,getElementTransformMatrix:m0e,getElementAndAncestors:y0e,equalDomRects:Bwt}});var d6=K((hOr,x0e)=>{"use strict";x0e.exports={mode:{valType:"enumerated",dflt:"afterall",values:["immediate","next","afterall"]},direction:{valType:"enumerated",values:["forward","reverse"],dflt:"forward"},fromcurrent:{valType:"boolean",dflt:!1},frame:{duration:{valType:"number",min:0,dflt:500},redraw:{valType:"boolean",dflt:!0}},transition:{duration:{valType:"number",min:0,dflt:500,editType:"none"},easing:{valType:"enumerated",dflt:"cubic-in-out",values:["linear","quad","cubic","sin","exp","circle","elastic","back","bounce","linear-in","quad-in","cubic-in","sin-in","exp-in","circle-in","elastic-in","back-in","bounce-in","linear-out","quad-out","cubic-out","sin-out","exp-out","circle-out","elastic-out","back-out","bounce-out","linear-in-out","quad-in-out","cubic-in-out","sin-in-out","exp-in-out","circle-in-out","elastic-in-out","back-in-out","bounce-in-out"],editType:"none"},ordering:{valType:"enumerated",values:["layout first","traces first"],dflt:"layout first",editType:"none"}}}});var Ef=K((dOr,S0e)=>{"use strict";var _0e=Os().extendFlat,qwt=_g(),w0e={valType:"flaglist",extras:["none"],flags:["calc","clearAxisTypes","plot","style","markerSize","colorbars"]},A0e={valType:"flaglist",extras:["none"],flags:["calc","plot","legend","ticks","axrange","layoutstyle","modebar","camera","arraydraw","colorbars"]},Owt=w0e.flags.slice().concat(["fullReplot"]),Nwt=A0e.flags.slice().concat("layoutReplot");S0e.exports={traces:w0e,layout:A0e,traceFlags:function(){return b0e(Owt)},layoutFlags:function(){return b0e(Nwt)},update:function(e,t){var r=t.editType;if(r&&r!=="none")for(var i=r.split("+"),n=0;n{"use strict";eG.dash={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",editType:"style"};eG.pattern={shape:{valType:"enumerated",values:["","/","\\","x","-","|","+","."],dflt:"",arrayOk:!0,editType:"style"},path:{valType:"string",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"}});var tG={};Fl(tG,{DATE_FORMAT_LINK:()=>Uwt,FORMAT_LINK:()=>Vwt});var Vwt,Uwt,rG=ps(()=>{"use strict";Vwt="https://github.com/d3/d3-format/tree/v1.4.5#d3-format",Uwt="https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format"});var gu=K(pw=>{"use strict";var{DATE_FORMAT_LINK:Gwt,FORMAT_LINK:Hwt}=(rG(),or(tG)),jwt=["Variables that can't be found will be replaced with the specifier.",'For example, a template of "data: %{x}, %{y}" will result in a value of "data: 1, %{y}" if x is 1 and y is missing.',"Variables with an undefined value will be replaced with the fallback value."].join(" ");function Wwt({supportOther:e}={}){return["Variables are inserted using %{variable},",'for example "y: %{y}"'+(e?" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown.":"."),`Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}".`,Hwt,"for details on the formatting syntax.",`Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}".`,Gwt,"for details on the date formatting syntax.",jwt].join(" ")}pw.templateFormatStringDescription=Wwt;pw.hovertemplateAttrs=({editType:e="none",arrayOk:t}={},r={})=>Gs({valType:"string",dflt:"",editType:e},t!==!1?{arrayOk:!0}:{});pw.texttemplateAttrs=({editType:e="calc",arrayOk:t}={},r={})=>Gs({valType:"string",dflt:"",editType:e},t!==!1?{arrayOk:!0}:{});pw.shapeTexttemplateAttrs=({editType:e="arraydraw",newshape:t}={},r={})=>({valType:"string",dflt:"",editType:e});pw.templatefallbackAttrs=({editType:e="none"}={})=>({valType:"any",dflt:"-",editType:e})});var xF=K((yOr,L0e)=>{"use strict";function kg(e,t){return t?t.d2l(e):e}function E0e(e,t){return t?t.l2d(e):e}function $wt(e){return e.x0}function Ywt(e){return e.x1}function Xwt(e){return e.y0}function Zwt(e){return e.y1}function k0e(e){return e.x0shift||0}function C0e(e){return e.x1shift||0}function D0e(e){return e.y0shift||0}function F0e(e){return e.y1shift||0}function yF(e,t){return kg(e.x1,t)+C0e(e)-kg(e.x0,t)-k0e(e)}function gF(e,t,r){return kg(e.y1,r)+F0e(e)-kg(e.y0,r)-D0e(e)}function Kwt(e,t){return Math.abs(yF(e,t))}function Jwt(e,t,r){return Math.abs(gF(e,t,r))}function Qwt(e,t,r){return e.type!=="line"?void 0:Math.sqrt(Math.pow(yF(e,t),2)+Math.pow(gF(e,t,r),2))}function eAt(e,t){return E0e((kg(e.x1,t)+C0e(e)+kg(e.x0,t)+k0e(e))/2,t)}function tAt(e,t,r){return E0e((kg(e.y1,r)+F0e(e)+kg(e.y0,r)+D0e(e))/2,r)}function rAt(e,t,r){return e.type!=="line"?void 0:gF(e,t,r)/yF(e,t)}var iAt=["x0","x1","y0","y1","dy","height","ycenter"],nAt=["x0","x1","y0","y1","dx","width","xcenter"];L0e.exports={x0:$wt,x1:Ywt,y0:Xwt,y1:Zwt,slope:rAt,dx:yF,dy:gF,width:Kwt,height:Jwt,length:Qwt,xcenter:eAt,ycenter:tAt,simpleXVariables:iAt,simpleYVariables:nAt}});var I0e=K((gOr,z0e)=>{"use strict";var aAt=Ef().overrideAll,Jx=Tu(),P0e=lf(),oAt=gh().dash,Cg=Os().extendFlat,{shapeTexttemplateAttrs:sAt,templatefallbackAttrs:lAt}=gu(),uAt=xF();z0e.exports=aAt({newshape:{visible:Cg({},Jx.visible,{}),showlegend:{valType:"boolean",dflt:!1},legend:Cg({},Jx.legend,{}),legendgroup:Cg({},Jx.legendgroup,{}),legendgrouptitle:{text:Cg({},Jx.legendgrouptitle.text,{}),font:P0e({})},legendrank:Cg({},Jx.legendrank,{}),legendwidth:Cg({},Jx.legendwidth,{}),line:{color:{valType:"color"},width:{valType:"number",min:0,dflt:4},dash:Cg({},oAt,{dflt:"solid"})},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd"},opacity:{valType:"number",min:0,max:1,dflt:1},layer:{valType:"enumerated",values:["below","above","between"],dflt:"above"},drawdirection:{valType:"enumerated",values:["ortho","horizontal","vertical","diagonal"],dflt:"diagonal"},name:Cg({},Jx.name,{}),label:{text:{valType:"string",dflt:""},texttemplate:sAt({newshape:!0},{keys:Object.keys(uAt)}),texttemplatefallback:lAt({editType:"arraydraw"}),font:P0e({}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"]},textangle:{valType:"angle",dflt:"auto"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto"},yanchor:{valType:"enumerated",values:["top","middle","bottom"]},padding:{valType:"number",dflt:3,min:0}}},activeshape:{fillcolor:{valType:"color",dflt:"rgb(255,0,255)",description:"Sets the color filling the active shape' interior."},opacity:{valType:"number",min:0,max:1,dflt:.5}}},"none","from-root")});var B0e=K((xOr,R0e)=>{"use strict";var fAt=gh().dash,cAt=Os().extendFlat;R0e.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:cAt({},fAt,{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"}}});var bF=K((bOr,q0e)=>{"use strict";q0e.exports=function(e){var t=e.editType;return{t:{valType:"number",dflt:0,editType:t},r:{valType:"number",dflt:0,editType:t},b:{valType:"number",dflt:0,editType:t},l:{valType:"number",dflt:0,editType:t},editType:t}}});var vw=K((_Or,U0e)=>{"use strict";var iG=lf(),hAt=d6(),_F=Gc(),O0e=I0e(),N0e=B0e(),dAt=bF(),V0e=Os().extendFlat,wF=iG({editType:"calc"});wF.family.dflt='"Open Sans", verdana, arial, sans-serif';wF.size.dflt=12;wF.color.dflt=_F.defaultLine;U0e.exports={font:wF,title:{text:{valType:"string",editType:"layoutstyle"},font:iG({editType:"layoutstyle"}),subtitle:{text:{valType:"string",editType:"layoutstyle"},font:iG({editType:"layoutstyle"}),editType:"layoutstyle"},xref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle"},yref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle"},x:{valType:"number",min:0,max:1,dflt:.5,editType:"layoutstyle"},y:{valType:"number",min:0,max:1,dflt:"auto",editType:"layoutstyle"},xanchor:{valType:"enumerated",dflt:"auto",values:["auto","left","center","right"],editType:"layoutstyle"},yanchor:{valType:"enumerated",dflt:"auto",values:["auto","top","middle","bottom"],editType:"layoutstyle"},pad:V0e(dAt({editType:"layoutstyle"}),{}),automargin:{valType:"boolean",dflt:!1,editType:"plot"},editType:"layoutstyle"},uniformtext:{mode:{valType:"enumerated",values:[!1,"hide","show"],dflt:!1,editType:"plot"},minsize:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"},autosize:{valType:"boolean",dflt:!1,editType:"none"},width:{valType:"number",min:10,dflt:700,editType:"plot"},height:{valType:"number",min:10,dflt:450,editType:"plot"},minreducedwidth:{valType:"number",min:2,dflt:64,editType:"plot"},minreducedheight:{valType:"number",min:2,dflt:64,editType:"plot"},margin:{l:{valType:"number",min:0,dflt:80,editType:"plot"},r:{valType:"number",min:0,dflt:80,editType:"plot"},t:{valType:"number",min:0,dflt:100,editType:"plot"},b:{valType:"number",min:0,dflt:80,editType:"plot"},pad:{valType:"number",min:0,dflt:0,editType:"plot"},autoexpand:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},computed:{valType:"any",editType:"none"},paper_bgcolor:{valType:"color",dflt:_F.background,editType:"plot"},plot_bgcolor:{valType:"color",dflt:_F.background,editType:"layoutstyle"},autotypenumbers:{valType:"enumerated",values:["convert types","strict"],dflt:"convert types",editType:"calc"},separators:{valType:"string",editType:"plot"},showlegend:{valType:"boolean",editType:"legend"},colorway:{valType:"colorlist",dflt:_F.defaults,editType:"calc"},datarevision:{valType:"any",editType:"calc"},uirevision:{valType:"any",editType:"none"},editrevision:{valType:"any",editType:"none"},selectionrevision:{valType:"any",editType:"none"},template:{valType:"any",editType:"calc"},newshape:O0e.newshape,activeshape:O0e.activeshape,newselection:N0e.newselection,activeselection:N0e.activeselection,meta:{valType:"any",arrayOk:!0,editType:"plot"},transition:V0e({},hAt.transition,{editType:"none"})}});var G0e=K(()=>{(function(){if(!document.getElementById("9f215cf04c5486422605d13261cb87401f4e7763b6296af81e98efbc0130da53")){var e=document.createElement("style");e.id="9f215cf04c5486422605d13261cb87401f4e7763b6296af81e98efbc0130da53",e.textContent='.maplibregl-map{font:12px/20px Helvetica Neue,Arial,Helvetica,sans-serif;overflow:hidden;position:relative;-webkit-tap-highlight-color:rgb(0 0 0/0);-webkit-touch-callout:none}.maplibregl-canvas{position:absolute;left:0;top:0}.maplibregl-map:fullscreen{width:100%;height:100%}.maplibregl-ctrl-group button.maplibregl-ctrl-compass{touch-action:none}.maplibregl-canvas-container.maplibregl-interactive,.maplibregl-ctrl-group button.maplibregl-ctrl-compass{cursor:grab;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-canvas-container.maplibregl-interactive.maplibregl-track-pointer{cursor:pointer}.maplibregl-canvas-container.maplibregl-interactive:active,.maplibregl-ctrl-group button.maplibregl-ctrl-compass:active{cursor:grabbing}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-canvas-container.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:pinch-zoom}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:none}.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures,.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-ctrl-bottom-left,.maplibregl-ctrl-bottom-right,.maplibregl-ctrl-top-left,.maplibregl-ctrl-top-right{position:absolute;pointer-events:none;z-index:2}.maplibregl-ctrl-top-left{top:0;left:0}.maplibregl-ctrl-top-right{top:0;right:0}.maplibregl-ctrl-bottom-left{bottom:0;left:0}.maplibregl-ctrl-bottom-right{right:0;bottom:0}.maplibregl-ctrl{clear:both;pointer-events:auto;transform:translate(0)}.maplibregl-ctrl-top-left .maplibregl-ctrl{margin:10px 0 0 10px;float:left}.maplibregl-ctrl-top-right .maplibregl-ctrl{margin:10px 10px 0 0;float:right}.maplibregl-ctrl-bottom-left .maplibregl-ctrl{margin:0 0 10px 10px;float:left}.maplibregl-ctrl-bottom-right .maplibregl-ctrl{margin:0 10px 10px 0;float:right}.maplibregl-ctrl-group{border-radius:4px;background:#fff}.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px rgba(0,0,0,.1)}@media (forced-colors:active){.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px ButtonText}}.maplibregl-ctrl-group button{width:29px;height:29px;display:block;padding:0;outline:none;border:0;box-sizing:border-box;background-color:transparent;cursor:pointer}.maplibregl-ctrl button{-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-ctrl-group button+button{border-top:1px solid #ddd}.maplibregl-ctrl button .maplibregl-ctrl-icon{display:block;width:100%;height:100%;background-repeat:no-repeat;background-position:50%}@media (forced-colors:active){.maplibregl-ctrl-icon{background-color:transparent}.maplibregl-ctrl-group button+button{border-top:1px solid ButtonText}}.maplibregl-ctrl button::-moz-focus-inner{border:0;padding:0}.maplibregl-ctrl-attrib-button:focus,.maplibregl-ctrl-group button:focus{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl button:disabled{cursor:not-allowed}.maplibregl-ctrl button:disabled .maplibregl-ctrl-icon{opacity:.25}@media (hover:hover){.maplibregl-ctrl button:not(:disabled):hover{background-color:rgba(0,0,0,.05)}}.maplibregl-ctrl button:not(:disabled):active{background-color:rgba(0,0,0,.05)}.maplibregl-ctrl-group button:focus:focus-visible{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl-group button:focus:not(:focus-visible){box-shadow:none}.maplibregl-ctrl-group button:focus:first-child{border-radius:4px 4px 0 0}.maplibregl-ctrl-group button:focus:last-child{border-radius:0 0 4px 4px}.maplibregl-ctrl-group button:focus:only-child{border-radius:inherit}.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M10%2013c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h9c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M14.5%208.5c-.75%200-1.5.75-1.5%201.5v3h-3c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h3v3c0%20.75.75%201.5%201.5%201.5S16%2019.75%2016%2019v-3h3c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013h-3v-3c0-.75-.75-1.5-1.5-1.5%22%2F%3E%3C%2Fsvg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M10%2013c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h9c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M14.5%208.5c-.75%200-1.5.75-1.5%201.5v3h-3c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h3v3c0%20.75.75%201.5%201.5%201.5S16%2019.75%2016%2019v-3h3c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013h-3v-3c0-.75-.75-1.5-1.5-1.5%22%2F%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M10%2013c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h9c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M14.5%208.5c-.75%200-1.5.75-1.5%201.5v3h-3c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h3v3c0%20.75.75%201.5%201.5%201.5S16%2019.75%2016%2019v-3h3c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013h-3v-3c0-.75-.75-1.5-1.5-1.5%22%2F%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M24%2016v5.5c0%201.75-.75%202.5-2.5%202.5H16v-1l3-1.5-4-5.5%201-1%205.5%204%201.5-3zM6%2016l1.5%203%205.5-4%201%201-4%205.5%203%201.5v1H7.5C5.75%2024%205%2023.25%205%2021.5V16zm7-11v1l-3%201.5%204%205.5-1%201-5.5-4L6%2013H5V7.5C5%205.75%205.75%205%207.5%205zm11%202.5c0-1.75-.75-2.5-2.5-2.5H16v1l3%201.5-4%205.5%201%201%205.5-4%201.5%203h1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M18.5%2016c-1.75%200-2.5.75-2.5%202.5V24h1l1.5-3%205.5%204%201-1-4-5.5%203-1.5v-1zM13%2018.5c0-1.75-.75-2.5-2.5-2.5H5v1l3%201.5L4%2024l1%201%205.5-4%201.5%203h1zm3-8c0%201.75.75%202.5%202.5%202.5H24v-1l-3-1.5L25%205l-1-1-5.5%204L17%205h-1zM10.5%2013c1.75%200%202.5-.75%202.5-2.5V5h-1l-1.5%203L5%204%204%205l4%205.5L5%2012v1z%22%2F%3E%3C%2Fsvg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M24%2016v5.5c0%201.75-.75%202.5-2.5%202.5H16v-1l3-1.5-4-5.5%201-1%205.5%204%201.5-3zM6%2016l1.5%203%205.5-4%201%201-4%205.5%203%201.5v1H7.5C5.75%2024%205%2023.25%205%2021.5V16zm7-11v1l-3%201.5%204%205.5-1%201-5.5-4L6%2013H5V7.5C5%205.75%205.75%205%207.5%205zm11%202.5c0-1.75-.75-2.5-2.5-2.5H16v1l3%201.5-4%205.5%201%201%205.5-4%201.5%203h1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M18.5%2016c-1.75%200-2.5.75-2.5%202.5V24h1l1.5-3%205.5%204%201-1-4-5.5%203-1.5v-1zM13%2018.5c0-1.75-.75-2.5-2.5-2.5H5v1l3%201.5L4%2024l1%201%205.5-4%201.5%203h1zm3-8c0%201.75.75%202.5%202.5%202.5H24v-1l-3-1.5L25%205l-1-1-5.5%204L17%205h-1zM10.5%2013c1.75%200%202.5-.75%202.5-2.5V5h-1l-1.5%203L5%204%204%205l4%205.5L5%2012v1z%22%2F%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M24%2016v5.5c0%201.75-.75%202.5-2.5%202.5H16v-1l3-1.5-4-5.5%201-1%205.5%204%201.5-3zM6%2016l1.5%203%205.5-4%201%201-4%205.5%203%201.5v1H7.5C5.75%2024%205%2023.25%205%2021.5V16zm7-11v1l-3%201.5%204%205.5-1%201-5.5-4L6%2013H5V7.5C5%205.75%205.75%205%207.5%205zm11%202.5c0-1.75-.75-2.5-2.5-2.5H16v1l3%201.5-4%205.5%201%201%205.5-4%201.5%203h1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M18.5%2016c-1.75%200-2.5.75-2.5%202.5V24h1l1.5-3%205.5%204%201-1-4-5.5%203-1.5v-1zM13%2018.5c0-1.75-.75-2.5-2.5-2.5H5v1l3%201.5L4%2024l1%201%205.5-4%201.5%203h1zm3-8c0%201.75.75%202.5%202.5%202.5H24v-1l-3-1.5L25%205l-1-1-5.5%204L17%205h-1zM10.5%2013c1.75%200%202.5-.75%202.5-2.5V5h-1l-1.5%203L5%204%204%205l4%205.5L5%2012v1z%22%2F%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22m10.5%2014%204-8%204%208z%22%2F%3E%3Cpath%20fill%3D%22%23ccc%22%20d%3D%22m10.5%2016%204%208%204-8z%22%2F%3E%3C%2Fsvg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22m10.5%2014%204-8%204%208z%22%2F%3E%3Cpath%20fill%3D%22%23ccc%22%20d%3D%22m10.5%2016%204%208%204-8z%22%2F%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22m10.5%2014%204-8%204%208z%22%2F%3E%3Cpath%20fill%3D%22%23ccc%22%20d%3D%22m10.5%2016%204%208%204-8z%22%2F%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-globe .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2222%22%20height%3D%2222%22%20fill%3D%22none%22%20stroke%3D%22%23333%22%20viewBox%3D%220%200%2022%2022%22%3E%3Ccircle%20cx%3D%2211%22%20cy%3D%2211%22%20r%3D%228.5%22%2F%3E%3Cpath%20d%3D%22M17.5%2011c0%204.819-3.02%208.5-6.5%208.5S4.5%2015.819%204.5%2011%207.52%202.5%2011%202.5s6.5%203.681%206.5%208.5Z%22%2F%3E%3Cpath%20d%3D%22M13.5%2011c0%202.447-.331%204.64-.853%206.206-.262.785-.562%201.384-.872%201.777-.314.399-.58.517-.775.517s-.461-.118-.775-.517c-.31-.393-.61-.992-.872-1.777C8.831%2015.64%208.5%2013.446%208.5%2011s.331-4.64.853-6.206c.262-.785.562-1.384.872-1.777.314-.399.58-.517.775-.517s.461.118.775.517c.31.393.61.992.872%201.777.522%201.565.853%203.76.853%206.206Z%22%2F%3E%3Cpath%20d%3D%22M11%207.5c-1.909%200-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3%201.3%200%200%201-.224-.138q.07-.058.224-.138c.299-.151.763-.302%201.379-.434C7.378%205.666%209.091%205.5%2011%205.5s3.622.166%204.845.428c.616.132%201.08.283%201.379.434.105.053.177.1.224.138q-.07.058-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm0%209c-1.909%200-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3%201.3%200%200%201-.224-.138%201.3%201.3%200%200%201%20.224-.138c.299-.151.763-.302%201.379-.434C7.378%2014.666%209.091%2014.5%2011%2014.5s3.622.166%204.845.428c.616.132%201.08.283%201.379.434.105.053.177.1.224.138a1.3%201.3%200%200%201-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm0-4c-2.46%200-4.672-.222-6.255-.574-.796-.177-1.406-.38-1.805-.59a1.5%201.5%200%200%201-.39-.272.3.3%200%200%201-.047-.064.3.3%200%200%201%20.048-.064c.066-.073.189-.167.389-.272.399-.21%201.009-.413%201.805-.59C6.328%209.722%208.54%209.5%2011%209.5s4.672.222%206.256.574c.795.177%201.405.38%201.804.59.2.105.323.2.39.272a.3.3%200%200%201%20.047.064.3.3%200%200%201-.048.064%201.4%201.4%200%200%201-.389.272c-.399.21-1.009.413-1.804.59-1.584.352-3.796.574-6.256.574Zm-8.501-1.51v.002zm0%20.018v.002zm17.002.002v-.002zm0-.018v-.002z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-globe-enabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2222%22%20height%3D%2222%22%20fill%3D%22none%22%20stroke%3D%22%2333b5e5%22%20viewBox%3D%220%200%2022%2022%22%3E%3Ccircle%20cx%3D%2211%22%20cy%3D%2211%22%20r%3D%228.5%22%2F%3E%3Cpath%20d%3D%22M17.5%2011c0%204.819-3.02%208.5-6.5%208.5S4.5%2015.819%204.5%2011%207.52%202.5%2011%202.5s6.5%203.681%206.5%208.5Z%22%2F%3E%3Cpath%20d%3D%22M13.5%2011c0%202.447-.331%204.64-.853%206.206-.262.785-.562%201.384-.872%201.777-.314.399-.58.517-.775.517s-.461-.118-.775-.517c-.31-.393-.61-.992-.872-1.777C8.831%2015.64%208.5%2013.446%208.5%2011s.331-4.64.853-6.206c.262-.785.562-1.384.872-1.777.314-.399.58-.517.775-.517s.461.118.775.517c.31.393.61.992.872%201.777.522%201.565.853%203.76.853%206.206Z%22%2F%3E%3Cpath%20d%3D%22M11%207.5c-1.909%200-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3%201.3%200%200%201-.224-.138q.07-.058.224-.138c.299-.151.763-.302%201.379-.434C7.378%205.666%209.091%205.5%2011%205.5s3.622.166%204.845.428c.616.132%201.08.283%201.379.434.105.053.177.1.224.138q-.07.058-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm0%209c-1.909%200-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3%201.3%200%200%201-.224-.138%201.3%201.3%200%200%201%20.224-.138c.299-.151.763-.302%201.379-.434C7.378%2014.666%209.091%2014.5%2011%2014.5s3.622.166%204.845.428c.616.132%201.08.283%201.379.434.105.053.177.1.224.138a1.3%201.3%200%200%201-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm0-4c-2.46%200-4.672-.222-6.255-.574-.796-.177-1.406-.38-1.805-.59a1.5%201.5%200%200%201-.39-.272.3.3%200%200%201-.047-.064.3.3%200%200%201%20.048-.064c.066-.073.189-.167.389-.272.399-.21%201.009-.413%201.805-.59C6.328%209.722%208.54%209.5%2011%209.5s4.672.222%206.256.574c.795.177%201.405.38%201.804.59.2.105.323.2.39.272a.3.3%200%200%201%20.047.064.3.3%200%200%201-.048.064%201.4%201.4%200%200%201-.389.272c-.399.21-1.009.413-1.804.59-1.584.352-3.796.574-6.256.574Zm-8.501-1.51v.002zm0%20.018v.002zm17.002.002v-.002zm0-.018v-.002z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-terrain .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2222%22%20height%3D%2222%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2022%2022%22%3E%3Cpath%20d%3D%22m1.754%2013.406%204.453-4.851%203.09%203.09%203.281%203.277.969-.969-3.309-3.312%203.844-4.121%206.148%206.886h1.082v-.855l-7.207-8.07-4.84%205.187L6.169%206.57l-5.48%205.965v.871ZM.688%2016.844h20.625v1.375H.688Zm0%200%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-terrain-enabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2222%22%20height%3D%2222%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2022%2022%22%3E%3Cpath%20d%3D%22m1.754%2013.406%204.453-4.851%203.09%203.09%203.281%203.277.969-.969-3.309-3.312%203.844-4.121%206.148%206.886h1.082v-.855l-7.207-8.07-4.84%205.187L6.169%206.57l-5.48%205.965v.871ZM.688%2016.844h20.625v1.375H.688Zm0%200%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23aaa%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3Cpath%20fill%3D%22red%22%20d%3D%22m14%205%201%201-9%209-1-1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23e58978%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23e54e33%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-waiting .maplibregl-ctrl-icon{animation:maplibregl-spin 2s linear infinite}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23999%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3Cpath%20fill%3D%22red%22%20d%3D%22m14%205%201%201-9%209-1-1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23e58978%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23e54e33%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23666%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3Cpath%20fill%3D%22red%22%20d%3D%22m14%205%201%201-9%209-1-1z%22%2F%3E%3C%2Fsvg%3E")}}@keyframes maplibregl-spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}a.maplibregl-ctrl-logo{width:88px;height:23px;margin:0 0 -4px -4px;display:block;background-repeat:no-repeat;cursor:pointer;overflow:hidden;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2288%22%20height%3D%2223%22%20fill%3D%22none%22%3E%3Cpath%20fill%3D%22%23000%22%20fill-opacity%3D%22.4%22%20fill-rule%3D%22evenodd%22%20d%3D%22M17.408%2016.796h-1.827l2.501-12.095h.198l3.324%206.533.988%202.19.988-2.19%203.258-6.533h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.929%205.644h-.098l-2.914-5.644-.757-1.71-.345%201.71zm1.958-3.42-.726%203.663a1.255%201.255%200%200%201-1.232%201.011h-1.827a1.255%201.255%200%200%201-1.229-1.509l2.501-12.095a1.255%201.255%200%200%201%201.23-1.001h.197a1.25%201.25%200%200%201%201.12.685l3.19%206.273%203.125-6.263a1.25%201.25%200%200%201%201.123-.695h.181a1.255%201.255%200%200%201%201.227.991l1.443%206.71a5%205%200%200%201%20.314-.787l.009-.016a4.6%204.6%200%200%201%201.777-1.887c.782-.46%201.668-.667%202.611-.667a4.6%204.6%200%200%201%201.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255%201.255%200%200%201%201.212.925%201.255%201.255%200%200%201%201.212-.925h1.711c.284%200%20.545.094.755.252.613-.3%201.312-.45%202.075-.45%201.356%200%202.557.445%203.482%201.4q.47.48.763%201.064V4.701a1.255%201.255%200%200%201%201.255-1.255h1.86A1.255%201.255%200%200%201%2054.44%204.7v9.194h2.217c.19%200%20.37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42%202.42%200%200%201-.682-1.71c0-.665.267-1.253.735-1.7a2.45%202.45%200%200%201%201.722-.674%202.43%202.43%200%200%201%201.705.675q.318.302.504.683V4.7a1.255%201.255%200%200%201%201.255-1.255h1.744A1.255%201.255%200%200%201%2065.812%204.7v3.335a4.8%204.8%200%200%201%201.526-.246c.938%200%201.817.214%202.59.69a4.47%204.47%200%200%201%201.67%201.743v-.98a1.255%201.255%200%200%201%201.256-1.256h1.777c.233%200%20.451.064.639.174a3.4%203.4%200%200%201%201.567-.372c.346%200%20.861.02%201.285.232a1.25%201.25%200%200%201%20.689%201.004%204.7%204.7%200%200%201%20.853-.588c.795-.44%201.675-.647%202.61-.647%201.385%200%202.65.39%203.525%201.396.836.938%201.168%202.173%201.168%203.528q-.001.515-.056%201.051a1.255%201.255%200%200%201-.947%201.09l.408.952a1.255%201.255%200%200%201-.477%201.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06%200-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8%205.8%200%200%201-.548-2.512q0-.429.053-.843a1.3%201.3%200%200%201-.333-.086l-.166-.004c-.223%200-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255%201.255%200%200%201-1.256%201.256h-1.777a1.255%201.255%200%200%201-1.256-1.256V15.69l-.032.057a4.8%204.8%200%200%201-1.86%201.833%205.04%205.04%200%200%201-2.484.634%204.5%204.5%200%200%201-1.935-.424%201.25%201.25%200%200%201-.764.258h-1.71a1.255%201.255%200%200%201-1.256-1.255V7.687a2.4%202.4%200%200%201-.428.625c.253.23.412.561.412.93v7.553a1.255%201.255%200%200%201-1.256%201.255h-1.843a1.25%201.25%200%200%201-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255%201.255%200%200%201-1.256-1.255v-1.251l-.061.117a4.7%204.7%200%200%201-1.782%201.884%204.77%204.77%200%200%201-2.485.67%205.6%205.6%200%200%201-1.485-.188l.009%202.764a1.255%201.255%200%200%201-1.255%201.259h-1.729a1.255%201.255%200%200%201-1.255-1.255v-3.537a1.255%201.255%200%200%201-1.167.793h-1.679a1.25%201.25%200%200%201-.77-.263%204.5%204.5%200%200%201-1.945.429c-.885%200-1.724-.21-2.495-.632l-.017-.01a5%205%200%200%201-1.081-.836%201.255%201.255%200%200%201-1.254%201.312h-1.81a1.255%201.255%200%200%201-1.228-.99l-.782-3.625-2.044%203.939a1.25%201.25%200%200%201-1.115.676h-.098a1.25%201.25%200%200%201-1.116-.68l-2.061-3.994zM35.92%2016.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033%201.332h1.678V9.242h-1.694l-.033%201.267q-.133-.329-.526-.658l-.032-.028a3.2%203.2%200%200%200-.668-.428l-.27-.12a3.3%203.3%200%200%200-1.235-.23q-1.136-.001-1.974.493a3.36%203.36%200%200%200-1.3%201.382q-.445.89-.444%202.074%200%201.2.51%202.107a3.8%203.8%200%200%200%201.382%201.381%203.9%203.9%200%200%200%201.893.477q.795%200%201.455-.33zm-2.789-5.38q-.576.675-.575%201.762%200%201.102.559%201.794.576.675%201.645.675a2.25%202.25%200%200%200%20.934-.19%202.2%202.2%200%200%200%20.468-.29l.178-.161a2.2%202.2%200%200%200%20.397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2%202.2%200%200%200-.633-.709l-.13-.086-.047-.028a2.1%202.1%200%200%200-1.073-.285q-1.052%200-1.629.692zm2.316%202.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96%200%200%200-.353-.389.85.85%200%200%200-.464-.127c-.4%200-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945%200%20.506.122.801.27.99.097.11.266.224.68.224.303%200%20.504-.09.687-.269zm7.545%201.705a2.6%202.6%200%200%200%20.331.423q.319.33.755.548l.173.074q.65.255%201.49.255%201.02%200%201.844-.493a3.45%203.45%200%200%200%201.316-1.4q.493-.904.493-2.089%200-1.909-.988-2.913-.988-1.02-2.584-1.02-.898%200-1.575.347a3%203%200%200%200-.415.262l-.199.166a3.4%203.4%200%200%200-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296%201.119.297%201.07%200%201.645-.675.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.435%200-.835.16a2%202%200%200%200-.284.136%202%202%200%200%200-.363.254%202.2%202.2%200%200%200-.46.569l-.082.162a2.6%202.6%200%200%200-.213%201.072v.115q0%20.707.296%201.267l.135.211zm.964-.818a1.1%201.1%200%200%200%20.367.385.94.94%200%200%200%20.476.118c.423%200%20.59-.117.687-.23.159-.194.28-.478.28-.95%200-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1%201%200%200%200-.503.135l-.012.007a.86.86%200%200%200-.335.343c-.073.133-.132.324-.132.614v.115a1.4%201.4%200%200%200%20.14.66zm15.7-6.222q.347-.346.346-.856a1.05%201.05%200%200%200-.345-.79%201.18%201.18%200%200%200-.84-.329q-.51%200-.855.33a1.05%201.05%200%200%200-.346.79q0%20.51.346.855.345.346.856.346.51%200%20.839-.346zm4.337%209.314.033-1.332q.191.403.59.747l.098.081a4%204%200%200%200%20.316.224l.223.122a3.2%203.2%200%200%200%201.44.322%203.8%203.8%200%200%200%201.875-.477%203.5%203.5%200%200%200%201.382-1.366q.527-.89.526-2.09%200-1.184-.444-2.073a3.24%203.24%200%200%200-1.283-1.399q-.823-.51-1.942-.51a3.5%203.5%200%200%200-1.527.344l-.086.043-.165.09a3%203%200%200%200-.33.214q-.432.315-.656.707a2%202%200%200%200-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5%202.5%200%200%200%20.566.7q.117.098.245.18l.144.08a2.1%202.1%200%200%200%20.975.232q1.07%200%201.645-.675.576-.69.576-1.778%200-1.102-.576-1.777-.56-.691-1.645-.692a2.2%202.2%200%200%200-1.015.235q-.22.113-.415.282l-.15.142a2.1%202.1%200%200%200-.42.594q-.223.479-.223%201.1v.115q0%20.705.293%201.26zm2.616-.293c.157-.191.28-.479.28-.967%200-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87%200%200%200-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0%20.285.057.499.144.669a1.1%201.1%200%200%200%20.367.405c.137.082.28.123.455.123.423%200%20.59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493%200%20.642.099l.247-1.794q-.196-.099-.717-.099a2.3%202.3%200%200%200-.545.063%202%202%200%200%200-.411.148%202.2%202.2%200%200%200-.4.249%202.5%202.5%200%200%200-.485.499%202.7%202.7%200%200%200-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5%201.5%200%200%201%20.466-.636%202.5%202.5%200%200%201%20.399-.253%202%202%200%200%201%20.224-.099zm9.784%202.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46%203.46%200%200%200-1.4%201.382q-.493.906-.493%202.106%200%201.07.428%201.975.428.89%201.332%201.432.906.526%202.255.526.973%200%201.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954%200-1.497-.444a1.6%201.6%200%200%201-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1%201%200%200%200-.156-.176q-.46-.428-1.316-.428-.986%200-1.494.604-.379.45-.494%201.234zm-27.053%202.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z%22%2F%3E%3Cpath%20fill%3D%22%23fff%22%20d%3D%22m19.63%2011.151-.757-1.71-.345%201.71-1.12%205.644h-1.827L18.083%204.7h.197l3.325%206.533.988%202.19.988-2.19L26.839%204.7h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.93%205.644h-.098l-2.913-5.644zm14.836%205.81q-1.02%200-1.893-.478a3.8%203.8%200%200%201-1.381-1.382q-.51-.906-.51-2.106%200-1.185.444-2.074a3.36%203.36%200%200%201%201.3-1.382q.839-.494%201.974-.494a3.3%203.3%200%200%201%201.234.231%203.3%203.3%200%200%201%20.97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02%201.053a3.17%203.17%200%200%201-1.662.444zm.296-1.482q.938%200%201.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2%202.2%200%200%200-.807-.872%202.1%202.1%200%200%200-1.119-.313q-1.053%200-1.629.692-.575.675-.575%201.76%200%201.103.559%201.795.577.675%201.645.675zm6.521-6.237h1.711v1.4q.906-1.597%202.83-1.597%201.596%200%202.584%201.02.988%201.005.988%202.914%200%201.185-.493%202.09a3.46%203.46%200%200%201-1.316%201.399%203.5%203.5%200%200%201-1.844.493q-.954%200-1.662-.329a2.67%202.67%200%200%201-1.086-.97l.017%205.134h-1.728zm4.048%206.22q1.07%200%201.645-.674.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.592%200-1.12.296-.51.28-.822.823-.296.527-.296%201.234v.115q0%20.708.296%201.267.313.543.823.855.51.296%201.119.297z%22%2F%3E%3Cpath%20fill%3D%22%23e1e3e9%22%20d%3D%22M51.325%204.7h1.86v10.45h3.473v1.646h-5.333zm7.12%204.542h1.843v7.553h-1.843zm.905-1.415a1.16%201.16%200%200%201-.856-.346%201.17%201.17%200%200%201-.346-.856%201.05%201.05%200%200%201%20.346-.79q.346-.329.856-.329.494%200%20.839.33a1.05%201.05%200%200%201%20.345.79%201.16%201.16%200%200%201-.345.855q-.33.346-.84.346zm7.875%209.133a3.17%203.17%200%200%201-1.662-.444q-.723-.46-1.004-1.053l-.033%201.332h-1.71V4.701h1.743v4.657l-.082%201.283q.279-.658%201.086-1.119a3.5%203.5%200%200%201%201.778-.477q1.119%200%201.942.51a3.24%203.24%200%200%201%201.283%201.4q.445.888.444%202.072%200%201.201-.526%202.09a3.5%203.5%200%200%201-1.382%201.366%203.8%203.8%200%200%201-1.876.477zm-.296-1.481q1.069%200%201.645-.675.577-.69.577-1.778%200-1.102-.577-1.776-.56-.691-1.645-.692a2.12%202.12%200%200%200-1.58.659q-.642.641-.642%201.694v.115q0%20.71.296%201.267a2.4%202.4%200%200%200%20.807.872%202.1%202.1%200%200%200%201.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14%202.14%200%200%201%201.349-.46q.527%200%20.724.098l-.247%201.794q-.149-.099-.642-.099-.774%200-1.416.494-.626.493-.626%201.58v3.883h-1.777V9.242zm9.534%207.718q-1.35%200-2.255-.526-.904-.543-1.332-1.432a4.6%204.6%200%200%201-.428-1.975q0-1.2.493-2.106a3.46%203.46%200%200%201%201.4-1.382q.889-.495%202.007-.494%201.744%200%202.584.97.855.956.856%202.7%200%20.444-.05.92h-5.43q.18%201.005.708%201.45.542.443%201.497.443.79%200%201.3-.131a4%204%200%200%200%20.938-.362l.542%201.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728%200-1.991%201.86z%22%2F%3E%3Cpath%20d%3D%22M5.074%2015.948a.484.657%200%200%200-.486.659v1.84a.484.657%200%200%200%20.486.659h4.101a.484.657%200%200%200%20.486-.659v-1.84a.484.657%200%200%200-.486-.659zm3.56%201.16H5.617v.838h3.017z%22%20style%3D%22fill%3A%23fff%3Bfill-rule%3Aevenodd%3Bstroke-width%3A1.03600001%22%2F%3E%3Cg%20style%3D%22stroke-width%3A1.12603545%22%3E%3Cpath%20d%3D%22M-9.408-1.416c-3.833-.025-7.056%202.912-7.08%206.615-.02%203.08%201.653%204.832%203.107%206.268.903.892%201.721%201.74%202.32%202.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87%201.87%200%200%200-.362%201.121l-.011%201.877c-.003.402.104.787.347%201.125.244.338.688.653%201.23.656l4.142.028c.542.003.99-.306%201.238-.641a1.87%201.87%200%200%200%20.363-1.121l.012-1.875a1.87%201.87%200%200%200-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145%201.425-1.983%202.348-2.87%201.473-1.414%203.18-3.149%203.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006%201.1v.002c3.274.02%205.92%202.532%205.9%205.6-.017%202.706-1.39%204.026-2.863%205.44-1.034.994-2.118%202.033-2.814%203.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34%200%200%201-.226.084.34.34%200%200%201-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067%202.7-5.545%205.975-5.523m-.02%202.826c-1.62-.01-2.944%201.315-2.955%202.96-.01%201.646%201.295%202.988%202.916%202.999h.002c1.621.01%202.943-1.316%202.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005%201.1c1.017.006%201.829.83%201.822%201.89s-.83%201.874-1.848%201.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874%201.848-1.868m-2.155%2011.857%204.14.025c.271.002.49.305.487.676l-.013%201.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668%22%20style%3D%22color%3A%23000%3Bfont-style%3Anormal%3Bfont-variant%3Anormal%3Bfont-weight%3A400%3Bfont-stretch%3Anormal%3Bfont-size%3Amedium%3Bline-height%3Anormal%3Bfont-family%3Asans-serif%3Bfont-variant-ligatures%3Anormal%3Bfont-variant-position%3Anormal%3Bfont-variant-caps%3Anormal%3Bfont-variant-numeric%3Anormal%3Bfont-variant-alternates%3Anormal%3Bfont-feature-settings%3Anormal%3Btext-indent%3A0%3Btext-align%3Astart%3Btext-decoration%3Anone%3Btext-decoration-line%3Anone%3Btext-decoration-style%3Asolid%3Btext-decoration-color%3A%23000%3Bletter-spacing%3Anormal%3Bword-spacing%3Anormal%3Btext-transform%3Anone%3Bwriting-mode%3Alr-tb%3Bdirection%3Altr%3Btext-orientation%3Amixed%3Bdominant-baseline%3Aauto%3Bbaseline-shift%3Abaseline%3Btext-anchor%3Astart%3Bwhite-space%3Anormal%3Bshape-padding%3A0%3Bclip-rule%3Aevenodd%3Bdisplay%3Ainline%3Boverflow%3Avisible%3Bvisibility%3Avisible%3Bopacity%3A1%3Bisolation%3Aauto%3Bmix-blend-mode%3Anormal%3Bcolor-interpolation%3AsRGB%3Bcolor-interpolation-filters%3AlinearRGB%3Bsolid-color%3A%23000%3Bsolid-opacity%3A1%3Bvector-effect%3Anone%3Bfill%3A%23000%3Bfill-opacity%3A.4%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-linecap%3Abutt%3Bstroke-linejoin%3Amiter%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-dashoffset%3A0%3Bstroke-opacity%3A1%3Bcolor-rendering%3Aauto%3Bimage-rendering%3Aauto%3Bshape-rendering%3Aauto%3Btext-rendering%3Aauto%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-9.415-.316C-12.69-.338-15.37%202.14-15.39%205.207c-.017%202.716%201.326%204.041%202.78%205.477%201.013%201%202.081%202.055%202.78%203.67l.092.076a.34.34%200%200%200%20.225.086.34.34%200%200%200%20.227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6%201.78-2.64%202.814-3.634%201.473-1.414%202.847-2.733%202.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057%208.784c1.621.011%202.944-1.315%202.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945%201.315-2.955%202.96s1.295%202.989%202.916%203%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23e1e3e9%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-11.594%2015.465c-.27-.002-.492.297-.494.668l-.012%201.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23fff%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E")}a.maplibregl-ctrl-logo.maplibregl-compact{width:14px}@media (forced-colors:active){a.maplibregl-ctrl-logo{background-color:transparent;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2288%22%20height%3D%2223%22%20fill%3D%22none%22%3E%3Cpath%20fill%3D%22%23000%22%20fill-opacity%3D%22.4%22%20fill-rule%3D%22evenodd%22%20d%3D%22M17.408%2016.796h-1.827l2.501-12.095h.198l3.324%206.533.988%202.19.988-2.19%203.258-6.533h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.929%205.644h-.098l-2.914-5.644-.757-1.71-.345%201.71zm1.958-3.42-.726%203.663a1.255%201.255%200%200%201-1.232%201.011h-1.827a1.255%201.255%200%200%201-1.229-1.509l2.501-12.095a1.255%201.255%200%200%201%201.23-1.001h.197a1.25%201.25%200%200%201%201.12.685l3.19%206.273%203.125-6.263a1.25%201.25%200%200%201%201.123-.695h.181a1.255%201.255%200%200%201%201.227.991l1.443%206.71a5%205%200%200%201%20.314-.787l.009-.016a4.6%204.6%200%200%201%201.777-1.887c.782-.46%201.668-.667%202.611-.667a4.6%204.6%200%200%201%201.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255%201.255%200%200%201%201.212.925%201.255%201.255%200%200%201%201.212-.925h1.711c.284%200%20.545.094.755.252.613-.3%201.312-.45%202.075-.45%201.356%200%202.557.445%203.482%201.4q.47.48.763%201.064V4.701a1.255%201.255%200%200%201%201.255-1.255h1.86A1.255%201.255%200%200%201%2054.44%204.7v9.194h2.217c.19%200%20.37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42%202.42%200%200%201-.682-1.71c0-.665.267-1.253.735-1.7a2.45%202.45%200%200%201%201.722-.674%202.43%202.43%200%200%201%201.705.675q.318.302.504.683V4.7a1.255%201.255%200%200%201%201.255-1.255h1.744A1.255%201.255%200%200%201%2065.812%204.7v3.335a4.8%204.8%200%200%201%201.526-.246c.938%200%201.817.214%202.59.69a4.47%204.47%200%200%201%201.67%201.743v-.98a1.255%201.255%200%200%201%201.256-1.256h1.777c.233%200%20.451.064.639.174a3.4%203.4%200%200%201%201.567-.372c.346%200%20.861.02%201.285.232a1.25%201.25%200%200%201%20.689%201.004%204.7%204.7%200%200%201%20.853-.588c.795-.44%201.675-.647%202.61-.647%201.385%200%202.65.39%203.525%201.396.836.938%201.168%202.173%201.168%203.528q-.001.515-.056%201.051a1.255%201.255%200%200%201-.947%201.09l.408.952a1.255%201.255%200%200%201-.477%201.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06%200-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8%205.8%200%200%201-.548-2.512q0-.429.053-.843a1.3%201.3%200%200%201-.333-.086l-.166-.004c-.223%200-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255%201.255%200%200%201-1.256%201.256h-1.777a1.255%201.255%200%200%201-1.256-1.256V15.69l-.032.057a4.8%204.8%200%200%201-1.86%201.833%205.04%205.04%200%200%201-2.484.634%204.5%204.5%200%200%201-1.935-.424%201.25%201.25%200%200%201-.764.258h-1.71a1.255%201.255%200%200%201-1.256-1.255V7.687a2.4%202.4%200%200%201-.428.625c.253.23.412.561.412.93v7.553a1.255%201.255%200%200%201-1.256%201.255h-1.843a1.25%201.25%200%200%201-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255%201.255%200%200%201-1.256-1.255v-1.251l-.061.117a4.7%204.7%200%200%201-1.782%201.884%204.77%204.77%200%200%201-2.485.67%205.6%205.6%200%200%201-1.485-.188l.009%202.764a1.255%201.255%200%200%201-1.255%201.259h-1.729a1.255%201.255%200%200%201-1.255-1.255v-3.537a1.255%201.255%200%200%201-1.167.793h-1.679a1.25%201.25%200%200%201-.77-.263%204.5%204.5%200%200%201-1.945.429c-.885%200-1.724-.21-2.495-.632l-.017-.01a5%205%200%200%201-1.081-.836%201.255%201.255%200%200%201-1.254%201.312h-1.81a1.255%201.255%200%200%201-1.228-.99l-.782-3.625-2.044%203.939a1.25%201.25%200%200%201-1.115.676h-.098a1.25%201.25%200%200%201-1.116-.68l-2.061-3.994zM35.92%2016.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033%201.332h1.678V9.242h-1.694l-.033%201.267q-.133-.329-.526-.658l-.032-.028a3.2%203.2%200%200%200-.668-.428l-.27-.12a3.3%203.3%200%200%200-1.235-.23q-1.136-.001-1.974.493a3.36%203.36%200%200%200-1.3%201.382q-.445.89-.444%202.074%200%201.2.51%202.107a3.8%203.8%200%200%200%201.382%201.381%203.9%203.9%200%200%200%201.893.477q.795%200%201.455-.33zm-2.789-5.38q-.576.675-.575%201.762%200%201.102.559%201.794.576.675%201.645.675a2.25%202.25%200%200%200%20.934-.19%202.2%202.2%200%200%200%20.468-.29l.178-.161a2.2%202.2%200%200%200%20.397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2%202.2%200%200%200-.633-.709l-.13-.086-.047-.028a2.1%202.1%200%200%200-1.073-.285q-1.052%200-1.629.692zm2.316%202.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96%200%200%200-.353-.389.85.85%200%200%200-.464-.127c-.4%200-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945%200%20.506.122.801.27.99.097.11.266.224.68.224.303%200%20.504-.09.687-.269zm7.545%201.705a2.6%202.6%200%200%200%20.331.423q.319.33.755.548l.173.074q.65.255%201.49.255%201.02%200%201.844-.493a3.45%203.45%200%200%200%201.316-1.4q.493-.904.493-2.089%200-1.909-.988-2.913-.988-1.02-2.584-1.02-.898%200-1.575.347a3%203%200%200%200-.415.262l-.199.166a3.4%203.4%200%200%200-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296%201.119.297%201.07%200%201.645-.675.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.435%200-.835.16a2%202%200%200%200-.284.136%202%202%200%200%200-.363.254%202.2%202.2%200%200%200-.46.569l-.082.162a2.6%202.6%200%200%200-.213%201.072v.115q0%20.707.296%201.267l.135.211zm.964-.818a1.1%201.1%200%200%200%20.367.385.94.94%200%200%200%20.476.118c.423%200%20.59-.117.687-.23.159-.194.28-.478.28-.95%200-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1%201%200%200%200-.503.135l-.012.007a.86.86%200%200%200-.335.343c-.073.133-.132.324-.132.614v.115a1.4%201.4%200%200%200%20.14.66zm15.7-6.222q.347-.346.346-.856a1.05%201.05%200%200%200-.345-.79%201.18%201.18%200%200%200-.84-.329q-.51%200-.855.33a1.05%201.05%200%200%200-.346.79q0%20.51.346.855.345.346.856.346.51%200%20.839-.346zm4.337%209.314.033-1.332q.191.403.59.747l.098.081a4%204%200%200%200%20.316.224l.223.122a3.2%203.2%200%200%200%201.44.322%203.8%203.8%200%200%200%201.875-.477%203.5%203.5%200%200%200%201.382-1.366q.527-.89.526-2.09%200-1.184-.444-2.073a3.24%203.24%200%200%200-1.283-1.399q-.823-.51-1.942-.51a3.5%203.5%200%200%200-1.527.344l-.086.043-.165.09a3%203%200%200%200-.33.214q-.432.315-.656.707a2%202%200%200%200-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5%202.5%200%200%200%20.566.7q.117.098.245.18l.144.08a2.1%202.1%200%200%200%20.975.232q1.07%200%201.645-.675.576-.69.576-1.778%200-1.102-.576-1.777-.56-.691-1.645-.692a2.2%202.2%200%200%200-1.015.235q-.22.113-.415.282l-.15.142a2.1%202.1%200%200%200-.42.594q-.223.479-.223%201.1v.115q0%20.705.293%201.26zm2.616-.293c.157-.191.28-.479.28-.967%200-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87%200%200%200-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0%20.285.057.499.144.669a1.1%201.1%200%200%200%20.367.405c.137.082.28.123.455.123.423%200%20.59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493%200%20.642.099l.247-1.794q-.196-.099-.717-.099a2.3%202.3%200%200%200-.545.063%202%202%200%200%200-.411.148%202.2%202.2%200%200%200-.4.249%202.5%202.5%200%200%200-.485.499%202.7%202.7%200%200%200-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5%201.5%200%200%201%20.466-.636%202.5%202.5%200%200%201%20.399-.253%202%202%200%200%201%20.224-.099zm9.784%202.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46%203.46%200%200%200-1.4%201.382q-.493.906-.493%202.106%200%201.07.428%201.975.428.89%201.332%201.432.906.526%202.255.526.973%200%201.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954%200-1.497-.444a1.6%201.6%200%200%201-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1%201%200%200%200-.156-.176q-.46-.428-1.316-.428-.986%200-1.494.604-.379.45-.494%201.234zm-27.053%202.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z%22%2F%3E%3Cpath%20fill%3D%22%23fff%22%20d%3D%22m19.63%2011.151-.757-1.71-.345%201.71-1.12%205.644h-1.827L18.083%204.7h.197l3.325%206.533.988%202.19.988-2.19L26.839%204.7h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.93%205.644h-.098l-2.913-5.644zm14.836%205.81q-1.02%200-1.893-.478a3.8%203.8%200%200%201-1.381-1.382q-.51-.906-.51-2.106%200-1.185.444-2.074a3.36%203.36%200%200%201%201.3-1.382q.839-.494%201.974-.494a3.3%203.3%200%200%201%201.234.231%203.3%203.3%200%200%201%20.97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02%201.053a3.17%203.17%200%200%201-1.662.444zm.296-1.482q.938%200%201.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2%202.2%200%200%200-.807-.872%202.1%202.1%200%200%200-1.119-.313q-1.053%200-1.629.692-.575.675-.575%201.76%200%201.103.559%201.795.577.675%201.645.675zm6.521-6.237h1.711v1.4q.906-1.597%202.83-1.597%201.596%200%202.584%201.02.988%201.005.988%202.914%200%201.185-.493%202.09a3.46%203.46%200%200%201-1.316%201.399%203.5%203.5%200%200%201-1.844.493q-.954%200-1.662-.329a2.67%202.67%200%200%201-1.086-.97l.017%205.134h-1.728zm4.048%206.22q1.07%200%201.645-.674.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.592%200-1.12.296-.51.28-.822.823-.296.527-.296%201.234v.115q0%20.708.296%201.267.313.543.823.855.51.296%201.119.297z%22%2F%3E%3Cpath%20fill%3D%22%23e1e3e9%22%20d%3D%22M51.325%204.7h1.86v10.45h3.473v1.646h-5.333zm7.12%204.542h1.843v7.553h-1.843zm.905-1.415a1.16%201.16%200%200%201-.856-.346%201.17%201.17%200%200%201-.346-.856%201.05%201.05%200%200%201%20.346-.79q.346-.329.856-.329.494%200%20.839.33a1.05%201.05%200%200%201%20.345.79%201.16%201.16%200%200%201-.345.855q-.33.346-.84.346zm7.875%209.133a3.17%203.17%200%200%201-1.662-.444q-.723-.46-1.004-1.053l-.033%201.332h-1.71V4.701h1.743v4.657l-.082%201.283q.279-.658%201.086-1.119a3.5%203.5%200%200%201%201.778-.477q1.119%200%201.942.51a3.24%203.24%200%200%201%201.283%201.4q.445.888.444%202.072%200%201.201-.526%202.09a3.5%203.5%200%200%201-1.382%201.366%203.8%203.8%200%200%201-1.876.477zm-.296-1.481q1.069%200%201.645-.675.577-.69.577-1.778%200-1.102-.577-1.776-.56-.691-1.645-.692a2.12%202.12%200%200%200-1.58.659q-.642.641-.642%201.694v.115q0%20.71.296%201.267a2.4%202.4%200%200%200%20.807.872%202.1%202.1%200%200%200%201.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14%202.14%200%200%201%201.349-.46q.527%200%20.724.098l-.247%201.794q-.149-.099-.642-.099-.774%200-1.416.494-.626.493-.626%201.58v3.883h-1.777V9.242zm9.534%207.718q-1.35%200-2.255-.526-.904-.543-1.332-1.432a4.6%204.6%200%200%201-.428-1.975q0-1.2.493-2.106a3.46%203.46%200%200%201%201.4-1.382q.889-.495%202.007-.494%201.744%200%202.584.97.855.956.856%202.7%200%20.444-.05.92h-5.43q.18%201.005.708%201.45.542.443%201.497.443.79%200%201.3-.131a4%204%200%200%200%20.938-.362l.542%201.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728%200-1.991%201.86z%22%2F%3E%3Cpath%20d%3D%22M5.074%2015.948a.484.657%200%200%200-.486.659v1.84a.484.657%200%200%200%20.486.659h4.101a.484.657%200%200%200%20.486-.659v-1.84a.484.657%200%200%200-.486-.659zm3.56%201.16H5.617v.838h3.017z%22%20style%3D%22fill%3A%23fff%3Bfill-rule%3Aevenodd%3Bstroke-width%3A1.03600001%22%2F%3E%3Cg%20style%3D%22stroke-width%3A1.12603545%22%3E%3Cpath%20d%3D%22M-9.408-1.416c-3.833-.025-7.056%202.912-7.08%206.615-.02%203.08%201.653%204.832%203.107%206.268.903.892%201.721%201.74%202.32%202.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87%201.87%200%200%200-.362%201.121l-.011%201.877c-.003.402.104.787.347%201.125.244.338.688.653%201.23.656l4.142.028c.542.003.99-.306%201.238-.641a1.87%201.87%200%200%200%20.363-1.121l.012-1.875a1.87%201.87%200%200%200-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145%201.425-1.983%202.348-2.87%201.473-1.414%203.18-3.149%203.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006%201.1v.002c3.274.02%205.92%202.532%205.9%205.6-.017%202.706-1.39%204.026-2.863%205.44-1.034.994-2.118%202.033-2.814%203.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34%200%200%201-.226.084.34.34%200%200%201-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067%202.7-5.545%205.975-5.523m-.02%202.826c-1.62-.01-2.944%201.315-2.955%202.96-.01%201.646%201.295%202.988%202.916%202.999h.002c1.621.01%202.943-1.316%202.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005%201.1c1.017.006%201.829.83%201.822%201.89s-.83%201.874-1.848%201.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874%201.848-1.868m-2.155%2011.857%204.14.025c.271.002.49.305.487.676l-.013%201.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668%22%20style%3D%22color%3A%23000%3Bfont-style%3Anormal%3Bfont-variant%3Anormal%3Bfont-weight%3A400%3Bfont-stretch%3Anormal%3Bfont-size%3Amedium%3Bline-height%3Anormal%3Bfont-family%3Asans-serif%3Bfont-variant-ligatures%3Anormal%3Bfont-variant-position%3Anormal%3Bfont-variant-caps%3Anormal%3Bfont-variant-numeric%3Anormal%3Bfont-variant-alternates%3Anormal%3Bfont-feature-settings%3Anormal%3Btext-indent%3A0%3Btext-align%3Astart%3Btext-decoration%3Anone%3Btext-decoration-line%3Anone%3Btext-decoration-style%3Asolid%3Btext-decoration-color%3A%23000%3Bletter-spacing%3Anormal%3Bword-spacing%3Anormal%3Btext-transform%3Anone%3Bwriting-mode%3Alr-tb%3Bdirection%3Altr%3Btext-orientation%3Amixed%3Bdominant-baseline%3Aauto%3Bbaseline-shift%3Abaseline%3Btext-anchor%3Astart%3Bwhite-space%3Anormal%3Bshape-padding%3A0%3Bclip-rule%3Aevenodd%3Bdisplay%3Ainline%3Boverflow%3Avisible%3Bvisibility%3Avisible%3Bopacity%3A1%3Bisolation%3Aauto%3Bmix-blend-mode%3Anormal%3Bcolor-interpolation%3AsRGB%3Bcolor-interpolation-filters%3AlinearRGB%3Bsolid-color%3A%23000%3Bsolid-opacity%3A1%3Bvector-effect%3Anone%3Bfill%3A%23000%3Bfill-opacity%3A.4%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-linecap%3Abutt%3Bstroke-linejoin%3Amiter%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-dashoffset%3A0%3Bstroke-opacity%3A1%3Bcolor-rendering%3Aauto%3Bimage-rendering%3Aauto%3Bshape-rendering%3Aauto%3Btext-rendering%3Aauto%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-9.415-.316C-12.69-.338-15.37%202.14-15.39%205.207c-.017%202.716%201.326%204.041%202.78%205.477%201.013%201%202.081%202.055%202.78%203.67l.092.076a.34.34%200%200%200%20.225.086.34.34%200%200%200%20.227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6%201.78-2.64%202.814-3.634%201.473-1.414%202.847-2.733%202.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057%208.784c1.621.011%202.944-1.315%202.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945%201.315-2.955%202.96s1.295%202.989%202.916%203%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23e1e3e9%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-11.594%2015.465c-.27-.002-.492.297-.494.668l-.012%201.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23fff%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){a.maplibregl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2288%22%20height%3D%2223%22%20fill%3D%22none%22%3E%3Cpath%20fill%3D%22%23000%22%20fill-opacity%3D%22.4%22%20fill-rule%3D%22evenodd%22%20d%3D%22M17.408%2016.796h-1.827l2.501-12.095h.198l3.324%206.533.988%202.19.988-2.19%203.258-6.533h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.929%205.644h-.098l-2.914-5.644-.757-1.71-.345%201.71zm1.958-3.42-.726%203.663a1.255%201.255%200%200%201-1.232%201.011h-1.827a1.255%201.255%200%200%201-1.229-1.509l2.501-12.095a1.255%201.255%200%200%201%201.23-1.001h.197a1.25%201.25%200%200%201%201.12.685l3.19%206.273%203.125-6.263a1.25%201.25%200%200%201%201.123-.695h.181a1.255%201.255%200%200%201%201.227.991l1.443%206.71a5%205%200%200%201%20.314-.787l.009-.016a4.6%204.6%200%200%201%201.777-1.887c.782-.46%201.668-.667%202.611-.667a4.6%204.6%200%200%201%201.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255%201.255%200%200%201%201.212.925%201.255%201.255%200%200%201%201.212-.925h1.711c.284%200%20.545.094.755.252.613-.3%201.312-.45%202.075-.45%201.356%200%202.557.445%203.482%201.4q.47.48.763%201.064V4.701a1.255%201.255%200%200%201%201.255-1.255h1.86A1.255%201.255%200%200%201%2054.44%204.7v9.194h2.217c.19%200%20.37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42%202.42%200%200%201-.682-1.71c0-.665.267-1.253.735-1.7a2.45%202.45%200%200%201%201.722-.674%202.43%202.43%200%200%201%201.705.675q.318.302.504.683V4.7a1.255%201.255%200%200%201%201.255-1.255h1.744A1.255%201.255%200%200%201%2065.812%204.7v3.335a4.8%204.8%200%200%201%201.526-.246c.938%200%201.817.214%202.59.69a4.47%204.47%200%200%201%201.67%201.743v-.98a1.255%201.255%200%200%201%201.256-1.256h1.777c.233%200%20.451.064.639.174a3.4%203.4%200%200%201%201.567-.372c.346%200%20.861.02%201.285.232a1.25%201.25%200%200%201%20.689%201.004%204.7%204.7%200%200%201%20.853-.588c.795-.44%201.675-.647%202.61-.647%201.385%200%202.65.39%203.525%201.396.836.938%201.168%202.173%201.168%203.528q-.001.515-.056%201.051a1.255%201.255%200%200%201-.947%201.09l.408.952a1.255%201.255%200%200%201-.477%201.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06%200-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8%205.8%200%200%201-.548-2.512q0-.429.053-.843a1.3%201.3%200%200%201-.333-.086l-.166-.004c-.223%200-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255%201.255%200%200%201-1.256%201.256h-1.777a1.255%201.255%200%200%201-1.256-1.256V15.69l-.032.057a4.8%204.8%200%200%201-1.86%201.833%205.04%205.04%200%200%201-2.484.634%204.5%204.5%200%200%201-1.935-.424%201.25%201.25%200%200%201-.764.258h-1.71a1.255%201.255%200%200%201-1.256-1.255V7.687a2.4%202.4%200%200%201-.428.625c.253.23.412.561.412.93v7.553a1.255%201.255%200%200%201-1.256%201.255h-1.843a1.25%201.25%200%200%201-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255%201.255%200%200%201-1.256-1.255v-1.251l-.061.117a4.7%204.7%200%200%201-1.782%201.884%204.77%204.77%200%200%201-2.485.67%205.6%205.6%200%200%201-1.485-.188l.009%202.764a1.255%201.255%200%200%201-1.255%201.259h-1.729a1.255%201.255%200%200%201-1.255-1.255v-3.537a1.255%201.255%200%200%201-1.167.793h-1.679a1.25%201.25%200%200%201-.77-.263%204.5%204.5%200%200%201-1.945.429c-.885%200-1.724-.21-2.495-.632l-.017-.01a5%205%200%200%201-1.081-.836%201.255%201.255%200%200%201-1.254%201.312h-1.81a1.255%201.255%200%200%201-1.228-.99l-.782-3.625-2.044%203.939a1.25%201.25%200%200%201-1.115.676h-.098a1.25%201.25%200%200%201-1.116-.68l-2.061-3.994zM35.92%2016.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033%201.332h1.678V9.242h-1.694l-.033%201.267q-.133-.329-.526-.658l-.032-.028a3.2%203.2%200%200%200-.668-.428l-.27-.12a3.3%203.3%200%200%200-1.235-.23q-1.136-.001-1.974.493a3.36%203.36%200%200%200-1.3%201.382q-.445.89-.444%202.074%200%201.2.51%202.107a3.8%203.8%200%200%200%201.382%201.381%203.9%203.9%200%200%200%201.893.477q.795%200%201.455-.33zm-2.789-5.38q-.576.675-.575%201.762%200%201.102.559%201.794.576.675%201.645.675a2.25%202.25%200%200%200%20.934-.19%202.2%202.2%200%200%200%20.468-.29l.178-.161a2.2%202.2%200%200%200%20.397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2%202.2%200%200%200-.633-.709l-.13-.086-.047-.028a2.1%202.1%200%200%200-1.073-.285q-1.052%200-1.629.692zm2.316%202.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96%200%200%200-.353-.389.85.85%200%200%200-.464-.127c-.4%200-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945%200%20.506.122.801.27.99.097.11.266.224.68.224.303%200%20.504-.09.687-.269zm7.545%201.705a2.6%202.6%200%200%200%20.331.423q.319.33.755.548l.173.074q.65.255%201.49.255%201.02%200%201.844-.493a3.45%203.45%200%200%200%201.316-1.4q.493-.904.493-2.089%200-1.909-.988-2.913-.988-1.02-2.584-1.02-.898%200-1.575.347a3%203%200%200%200-.415.262l-.199.166a3.4%203.4%200%200%200-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296%201.119.297%201.07%200%201.645-.675.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.435%200-.835.16a2%202%200%200%200-.284.136%202%202%200%200%200-.363.254%202.2%202.2%200%200%200-.46.569l-.082.162a2.6%202.6%200%200%200-.213%201.072v.115q0%20.707.296%201.267l.135.211zm.964-.818a1.1%201.1%200%200%200%20.367.385.94.94%200%200%200%20.476.118c.423%200%20.59-.117.687-.23.159-.194.28-.478.28-.95%200-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1%201%200%200%200-.503.135l-.012.007a.86.86%200%200%200-.335.343c-.073.133-.132.324-.132.614v.115a1.4%201.4%200%200%200%20.14.66zm15.7-6.222q.347-.346.346-.856a1.05%201.05%200%200%200-.345-.79%201.18%201.18%200%200%200-.84-.329q-.51%200-.855.33a1.05%201.05%200%200%200-.346.79q0%20.51.346.855.345.346.856.346.51%200%20.839-.346zm4.337%209.314.033-1.332q.191.403.59.747l.098.081a4%204%200%200%200%20.316.224l.223.122a3.2%203.2%200%200%200%201.44.322%203.8%203.8%200%200%200%201.875-.477%203.5%203.5%200%200%200%201.382-1.366q.527-.89.526-2.09%200-1.184-.444-2.073a3.24%203.24%200%200%200-1.283-1.399q-.823-.51-1.942-.51a3.5%203.5%200%200%200-1.527.344l-.086.043-.165.09a3%203%200%200%200-.33.214q-.432.315-.656.707a2%202%200%200%200-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5%202.5%200%200%200%20.566.7q.117.098.245.18l.144.08a2.1%202.1%200%200%200%20.975.232q1.07%200%201.645-.675.576-.69.576-1.778%200-1.102-.576-1.777-.56-.691-1.645-.692a2.2%202.2%200%200%200-1.015.235q-.22.113-.415.282l-.15.142a2.1%202.1%200%200%200-.42.594q-.223.479-.223%201.1v.115q0%20.705.293%201.26zm2.616-.293c.157-.191.28-.479.28-.967%200-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87%200%200%200-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0%20.285.057.499.144.669a1.1%201.1%200%200%200%20.367.405c.137.082.28.123.455.123.423%200%20.59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493%200%20.642.099l.247-1.794q-.196-.099-.717-.099a2.3%202.3%200%200%200-.545.063%202%202%200%200%200-.411.148%202.2%202.2%200%200%200-.4.249%202.5%202.5%200%200%200-.485.499%202.7%202.7%200%200%200-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5%201.5%200%200%201%20.466-.636%202.5%202.5%200%200%201%20.399-.253%202%202%200%200%201%20.224-.099zm9.784%202.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46%203.46%200%200%200-1.4%201.382q-.493.906-.493%202.106%200%201.07.428%201.975.428.89%201.332%201.432.906.526%202.255.526.973%200%201.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954%200-1.497-.444a1.6%201.6%200%200%201-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1%201%200%200%200-.156-.176q-.46-.428-1.316-.428-.986%200-1.494.604-.379.45-.494%201.234zm-27.053%202.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z%22%2F%3E%3Cpath%20fill%3D%22%23fff%22%20d%3D%22m19.63%2011.151-.757-1.71-.345%201.71-1.12%205.644h-1.827L18.083%204.7h.197l3.325%206.533.988%202.19.988-2.19L26.839%204.7h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.93%205.644h-.098l-2.913-5.644zm14.836%205.81q-1.02%200-1.893-.478a3.8%203.8%200%200%201-1.381-1.382q-.51-.906-.51-2.106%200-1.185.444-2.074a3.36%203.36%200%200%201%201.3-1.382q.839-.494%201.974-.494a3.3%203.3%200%200%201%201.234.231%203.3%203.3%200%200%201%20.97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02%201.053a3.17%203.17%200%200%201-1.662.444zm.296-1.482q.938%200%201.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2%202.2%200%200%200-.807-.872%202.1%202.1%200%200%200-1.119-.313q-1.053%200-1.629.692-.575.675-.575%201.76%200%201.103.559%201.795.577.675%201.645.675zm6.521-6.237h1.711v1.4q.906-1.597%202.83-1.597%201.596%200%202.584%201.02.988%201.005.988%202.914%200%201.185-.493%202.09a3.46%203.46%200%200%201-1.316%201.399%203.5%203.5%200%200%201-1.844.493q-.954%200-1.662-.329a2.67%202.67%200%200%201-1.086-.97l.017%205.134h-1.728zm4.048%206.22q1.07%200%201.645-.674.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.592%200-1.12.296-.51.28-.822.823-.296.527-.296%201.234v.115q0%20.708.296%201.267.313.543.823.855.51.296%201.119.297z%22%2F%3E%3Cpath%20fill%3D%22%23e1e3e9%22%20d%3D%22M51.325%204.7h1.86v10.45h3.473v1.646h-5.333zm7.12%204.542h1.843v7.553h-1.843zm.905-1.415a1.16%201.16%200%200%201-.856-.346%201.17%201.17%200%200%201-.346-.856%201.05%201.05%200%200%201%20.346-.79q.346-.329.856-.329.494%200%20.839.33a1.05%201.05%200%200%201%20.345.79%201.16%201.16%200%200%201-.345.855q-.33.346-.84.346zm7.875%209.133a3.17%203.17%200%200%201-1.662-.444q-.723-.46-1.004-1.053l-.033%201.332h-1.71V4.701h1.743v4.657l-.082%201.283q.279-.658%201.086-1.119a3.5%203.5%200%200%201%201.778-.477q1.119%200%201.942.51a3.24%203.24%200%200%201%201.283%201.4q.445.888.444%202.072%200%201.201-.526%202.09a3.5%203.5%200%200%201-1.382%201.366%203.8%203.8%200%200%201-1.876.477zm-.296-1.481q1.069%200%201.645-.675.577-.69.577-1.778%200-1.102-.577-1.776-.56-.691-1.645-.692a2.12%202.12%200%200%200-1.58.659q-.642.641-.642%201.694v.115q0%20.71.296%201.267a2.4%202.4%200%200%200%20.807.872%202.1%202.1%200%200%200%201.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14%202.14%200%200%201%201.349-.46q.527%200%20.724.098l-.247%201.794q-.149-.099-.642-.099-.774%200-1.416.494-.626.493-.626%201.58v3.883h-1.777V9.242zm9.534%207.718q-1.35%200-2.255-.526-.904-.543-1.332-1.432a4.6%204.6%200%200%201-.428-1.975q0-1.2.493-2.106a3.46%203.46%200%200%201%201.4-1.382q.889-.495%202.007-.494%201.744%200%202.584.97.855.956.856%202.7%200%20.444-.05.92h-5.43q.18%201.005.708%201.45.542.443%201.497.443.79%200%201.3-.131a4%204%200%200%200%20.938-.362l.542%201.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728%200-1.991%201.86z%22%2F%3E%3Cpath%20d%3D%22M5.074%2015.948a.484.657%200%200%200-.486.659v1.84a.484.657%200%200%200%20.486.659h4.101a.484.657%200%200%200%20.486-.659v-1.84a.484.657%200%200%200-.486-.659zm3.56%201.16H5.617v.838h3.017z%22%20style%3D%22fill%3A%23fff%3Bfill-rule%3Aevenodd%3Bstroke-width%3A1.03600001%22%2F%3E%3Cg%20style%3D%22stroke-width%3A1.12603545%22%3E%3Cpath%20d%3D%22M-9.408-1.416c-3.833-.025-7.056%202.912-7.08%206.615-.02%203.08%201.653%204.832%203.107%206.268.903.892%201.721%201.74%202.32%202.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87%201.87%200%200%200-.362%201.121l-.011%201.877c-.003.402.104.787.347%201.125.244.338.688.653%201.23.656l4.142.028c.542.003.99-.306%201.238-.641a1.87%201.87%200%200%200%20.363-1.121l.012-1.875a1.87%201.87%200%200%200-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145%201.425-1.983%202.348-2.87%201.473-1.414%203.18-3.149%203.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006%201.1v.002c3.274.02%205.92%202.532%205.9%205.6-.017%202.706-1.39%204.026-2.863%205.44-1.034.994-2.118%202.033-2.814%203.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34%200%200%201-.226.084.34.34%200%200%201-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067%202.7-5.545%205.975-5.523m-.02%202.826c-1.62-.01-2.944%201.315-2.955%202.96-.01%201.646%201.295%202.988%202.916%202.999h.002c1.621.01%202.943-1.316%202.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005%201.1c1.017.006%201.829.83%201.822%201.89s-.83%201.874-1.848%201.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874%201.848-1.868m-2.155%2011.857%204.14.025c.271.002.49.305.487.676l-.013%201.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668%22%20style%3D%22color%3A%23000%3Bfont-style%3Anormal%3Bfont-variant%3Anormal%3Bfont-weight%3A400%3Bfont-stretch%3Anormal%3Bfont-size%3Amedium%3Bline-height%3Anormal%3Bfont-family%3Asans-serif%3Bfont-variant-ligatures%3Anormal%3Bfont-variant-position%3Anormal%3Bfont-variant-caps%3Anormal%3Bfont-variant-numeric%3Anormal%3Bfont-variant-alternates%3Anormal%3Bfont-feature-settings%3Anormal%3Btext-indent%3A0%3Btext-align%3Astart%3Btext-decoration%3Anone%3Btext-decoration-line%3Anone%3Btext-decoration-style%3Asolid%3Btext-decoration-color%3A%23000%3Bletter-spacing%3Anormal%3Bword-spacing%3Anormal%3Btext-transform%3Anone%3Bwriting-mode%3Alr-tb%3Bdirection%3Altr%3Btext-orientation%3Amixed%3Bdominant-baseline%3Aauto%3Bbaseline-shift%3Abaseline%3Btext-anchor%3Astart%3Bwhite-space%3Anormal%3Bshape-padding%3A0%3Bclip-rule%3Aevenodd%3Bdisplay%3Ainline%3Boverflow%3Avisible%3Bvisibility%3Avisible%3Bopacity%3A1%3Bisolation%3Aauto%3Bmix-blend-mode%3Anormal%3Bcolor-interpolation%3AsRGB%3Bcolor-interpolation-filters%3AlinearRGB%3Bsolid-color%3A%23000%3Bsolid-opacity%3A1%3Bvector-effect%3Anone%3Bfill%3A%23000%3Bfill-opacity%3A.4%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-linecap%3Abutt%3Bstroke-linejoin%3Amiter%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-dashoffset%3A0%3Bstroke-opacity%3A1%3Bcolor-rendering%3Aauto%3Bimage-rendering%3Aauto%3Bshape-rendering%3Aauto%3Btext-rendering%3Aauto%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-9.415-.316C-12.69-.338-15.37%202.14-15.39%205.207c-.017%202.716%201.326%204.041%202.78%205.477%201.013%201%202.081%202.055%202.78%203.67l.092.076a.34.34%200%200%200%20.225.086.34.34%200%200%200%20.227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6%201.78-2.64%202.814-3.634%201.473-1.414%202.847-2.733%202.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057%208.784c1.621.011%202.944-1.315%202.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945%201.315-2.955%202.96s1.295%202.989%202.916%203%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23e1e3e9%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-11.594%2015.465c-.27-.002-.492.297-.494.668l-.012%201.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23fff%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl.maplibregl-ctrl-attrib{padding:0 5px;background-color:hsla(0,0%,100%,.5);margin:0}@media screen{.maplibregl-ctrl-attrib.maplibregl-compact{min-height:20px;padding:2px 24px 2px 0;margin:10px;position:relative;background-color:#fff;color:#000;border-radius:12px;box-sizing:content-box}.maplibregl-ctrl-attrib.maplibregl-compact-show{padding:2px 28px 2px 8px;visibility:visible}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact-show,.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact-show{padding:2px 8px 2px 28px;border-radius:12px}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-inner{display:none}.maplibregl-ctrl-attrib-button{display:none;cursor:pointer;position:absolute;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20fill-rule%3D%22evenodd%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M4%2010a6%206%200%201%200%2012%200%206%206%200%201%200-12%200m5-3a1%201%200%201%200%202%200%201%201%200%201%200-2%200m0%203a1%201%200%201%201%202%200v3a1%201%200%201%201-2%200%22%2F%3E%3C%2Fsvg%3E");background-color:hsla(0,0%,100%,.5);width:24px;height:24px;box-sizing:border-box;border-radius:12px;outline:none;top:0;right:0;border:0}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;list-style:none}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button::-webkit-details-marker{display:none}.maplibregl-ctrl-bottom-left .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-top-left .maplibregl-ctrl-attrib-button{left:0}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-inner{display:block}.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-button{background-color:rgba(0,0,0,.05)}.maplibregl-ctrl-bottom-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;right:0}.maplibregl-ctrl-top-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{top:0;right:0}.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{top:0;left:0}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;left:0}}@media screen and (forced-colors:active){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22%23fff%22%20fill-rule%3D%22evenodd%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M4%2010a6%206%200%201%200%2012%200%206%206%200%201%200-12%200m5-3a1%201%200%201%200%202%200%201%201%200%201%200-2%200m0%203a1%201%200%201%201%202%200v3a1%201%200%201%201-2%200%22%2F%3E%3C%2Fsvg%3E")}}@media screen and (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20fill-rule%3D%22evenodd%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M4%2010a6%206%200%201%200%2012%200%206%206%200%201%200-12%200m5-3a1%201%200%201%200%202%200%201%201%200%201%200-2%200m0%203a1%201%200%201%201%202%200v3a1%201%200%201%201-2%200%22%2F%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl-attrib a{color:rgba(0,0,0,.75);text-decoration:none}.maplibregl-ctrl-attrib a:hover{color:inherit;text-decoration:underline}.maplibregl-attrib-empty{display:none}.maplibregl-ctrl-scale{background-color:hsla(0,0%,100%,.75);font-size:10px;white-space:nowrap;border-color:#333;border-style:none solid solid;border-width:medium 2px 2px;padding:0 5px;color:#333;box-sizing:border-box}.maplibregl-popup{position:absolute;top:0;left:0;display:flex;will-change:transform;pointer-events:none}.maplibregl-popup-anchor-top,.maplibregl-popup-anchor-top-left,.maplibregl-popup-anchor-top-right{flex-direction:column}.maplibregl-popup-anchor-bottom,.maplibregl-popup-anchor-bottom-left,.maplibregl-popup-anchor-bottom-right{flex-direction:column-reverse}.maplibregl-popup-anchor-left{flex-direction:row}.maplibregl-popup-anchor-right{flex-direction:row-reverse}.maplibregl-popup-tip{width:0;height:0;border:10px solid transparent;z-index:1}.maplibregl-popup-anchor-top .maplibregl-popup-tip{align-self:center;border-top:none;border-bottom-color:#fff}.maplibregl-popup-anchor-top-left .maplibregl-popup-tip{align-self:flex-start;border-top:none;border-left:none;border-bottom-color:#fff}.maplibregl-popup-anchor-top-right .maplibregl-popup-tip{align-self:flex-end;border-top:none;border-right:none;border-bottom-color:#fff}.maplibregl-popup-anchor-bottom .maplibregl-popup-tip{align-self:center;border-bottom:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip{align-self:flex-start;border-bottom:none;border-left:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip{align-self:flex-end;border-bottom:none;border-right:none;border-top-color:#fff}.maplibregl-popup-anchor-left .maplibregl-popup-tip{align-self:center;border-left:none;border-right-color:#fff}.maplibregl-popup-anchor-right .maplibregl-popup-tip{align-self:center;border-right:none;border-left-color:#fff}[dir=rtl] .maplibregl-popup-anchor-left{flex-direction:row-reverse}[dir=rtl] .maplibregl-popup-anchor-right{flex-direction:row}[dir=rtl] .maplibregl-popup-anchor-top-left .maplibregl-popup-tip{align-self:flex-end}[dir=rtl] .maplibregl-popup-anchor-top-right .maplibregl-popup-tip{align-self:flex-start}[dir=rtl] .maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip{align-self:flex-end}[dir=rtl] .maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip{align-self:flex-start}.maplibregl-popup-close-button{position:absolute;right:0;top:0;border:0;border-radius:0 3px 0 0;cursor:pointer;background-color:transparent}.maplibregl-popup-close-button:hover{background-color:rgba(0,0,0,.05)}.maplibregl-popup-content{position:relative;background:#fff;border-radius:3px;box-shadow:0 1px 2px rgba(0,0,0,.1);padding:15px 10px;pointer-events:auto}.maplibregl-popup-anchor-top-left .maplibregl-popup-content{border-top-left-radius:0}.maplibregl-popup-anchor-top-right .maplibregl-popup-content{border-top-right-radius:0}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-content{border-bottom-left-radius:0}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-content{border-bottom-right-radius:0}.maplibregl-popup-track-pointer{display:none}.maplibregl-popup-track-pointer *{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-map:hover .maplibregl-popup-track-pointer{display:flex}.maplibregl-map:active .maplibregl-popup-track-pointer{display:none}.maplibregl-marker{position:absolute;top:0;left:0;will-change:transform;transition:opacity .2s}.maplibregl-marker-draggable{cursor:grab}.maplibregl-user-location-dot,.maplibregl-user-location-dot:before{background-color:#1da1f2;width:15px;height:15px;border-radius:50%}.maplibregl-user-location-dot:before{content:"";position:absolute;animation:maplibregl-user-location-dot-pulse 2s infinite}.maplibregl-user-location-dot:after{border-radius:50%;border:2px solid #fff;content:"";height:19px;left:-2px;position:absolute;top:-2px;width:19px;box-sizing:border-box;box-shadow:0 0 3px rgba(0,0,0,.35)}@media (prefers-reduced-motion:reduce){.maplibregl-user-location-dot:before{animation:none}}@keyframes maplibregl-user-location-dot-pulse{0%{transform:scale(1);opacity:1}70%{transform:scale(3);opacity:0}to{transform:scale(1);opacity:0}}.maplibregl-user-location-dot-stale{background-color:#aaa}.maplibregl-user-location-dot-stale:after{display:none}.maplibregl-user-location-accuracy-circle{background-color:#1da1f233;width:1px;height:1px;border-radius:100%}.maplibregl-crosshair,.maplibregl-crosshair .maplibregl-interactive,.maplibregl-crosshair .maplibregl-interactive:active{cursor:crosshair}.maplibregl-boxzoom{position:absolute;top:0;left:0;width:0;height:0;background:#fff;border:2px dotted #202020;opacity:.5}.maplibregl-cooperative-gesture-screen{background:rgba(0,0,0,.4);position:absolute;inset:0;display:flex;justify-content:center;align-items:center;color:#fff;padding:1rem;font-size:1.4em;line-height:1.2;opacity:0;pointer-events:none;transition:opacity 1s ease 1s;z-index:99999}.maplibregl-cooperative-gesture-screen.maplibregl-show{opacity:1;transition:opacity .05s}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:none}@media (hover:none),(pointer:coarse){.maplibregl-cooperative-gesture-screen .maplibregl-desktop-message{display:none}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:block}}.maplibregl-pseudo-fullscreen{position:fixed!important;width:100%!important;height:100%!important;top:0!important;left:0!important;z-index:99999}',document.head.appendChild(e)}})()});var Ho=K(eu=>{"use strict";var nG=ey(),H0e=vF(),j0e=KU(),TOr=h6().addStyleRule,W0e=Os(),pAt=Tu(),vAt=vw(),mAt=W0e.extendFlat,aG=W0e.extendDeepAll;eu.modules={};eu.allCategories={};eu.allTypes=[];eu.subplotsRegistry={};eu.componentsRegistry={};eu.layoutArrayContainers=[];eu.layoutArrayRegexes=[];eu.traceLayoutAttributes={};eu.localeRegistry={};eu.apiMethodRegistry={};eu.collectableSubplotTypes=null;eu.register=function(t){if(eu.collectableSubplotTypes=null,t)t&&!Array.isArray(t)&&(t=[t]);else throw new Error("No argument passed to Plotly.register.");for(var r=0;r{"use strict";var _At=J3().timeFormat,ide=Hs(),oG=ey(),Fg=(tw(),or(ew)).mod,gw=(Il(),or(Bl)),Pp=gw.BADNUM,Ed=gw.ONEDAY,p6=gw.ONEHOUR,Dg=gw.ONEMIN,yw=gw.ONESEC,v6=gw.EPOCHJD,iy=Ho(),K0e=J3().utcFormat,wAt=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\d)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d(:?\d\d)?)?)?)?)?)?\s*$/m,AAt=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\di?)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d(:?\d\d)?)?)?)?)?)?\s*$/m,J0e=new Date().getFullYear()-70;function ny(e){return e&&iy.componentsRegistry.calendars&&typeof e=="string"&&e!=="gregorian"}Ec.dateTick0=function(e,t){var r=TAt(e,!!t);if(t<2)return r;var i=Ec.dateTime2ms(r,e);return i+=Ed*(t-1),Ec.ms2DateTime(i,0,e)};function TAt(e,t){return ny(e)?t?iy.getComponentMethod("calendars","CANONICAL_SUNDAY")[e]:iy.getComponentMethod("calendars","CANONICAL_TICK")[e]:t?"2000-01-02":"2000-01-01"}Ec.dfltRange=function(e){return ny(e)?iy.getComponentMethod("calendars","DFLTRANGE")[e]:["2000-01-01","2001-01-01"]};Ec.isJSDate=function(e){return typeof e=="object"&&e!==null&&typeof e.getTime=="function"};var TF,MF;Ec.dateTime2ms=function(e,t){if(Ec.isJSDate(e)){var r=e.getTimezoneOffset()*Dg,i=(e.getUTCMinutes()-e.getMinutes())*Dg+(e.getUTCSeconds()-e.getSeconds())*yw+(e.getUTCMilliseconds()-e.getMilliseconds());if(i){var n=3*Dg;r=r-n/2+Fg(i-r+n/2,n)}return e=Number(e)-r,e>=TF&&e<=MF?e:Pp}if(typeof e!="string"&&typeof e!="number")return Pp;e=String(e);var a=ny(t),o=e.charAt(0);a&&(o==="G"||o==="g")&&(e=e.slice(1),t="");var s=a&&t.slice(0,7)==="chinese",l=e.match(s?AAt:wAt);if(!l)return Pp;var u=l[1],f=l[3]||"1",c=Number(l[5]||1),h=Number(l[7]||0),d=Number(l[9]||0),p=Number(l[11]||0);if(a){if(u.length===2)return Pp;u=Number(u);var v;try{var y=iy.getComponentMethod("calendars","getCal")(t);if(s){var m=f.charAt(f.length-1)==="i";f=parseInt(f,10),v=y.newDate(u,y.toMonthIndex(u,f,m),c)}else v=y.newDate(u,Number(f),c)}catch(_){return Pp}return v?(v.toJD()-v6)*Ed+h*p6+d*Dg+p*yw:Pp}u.length===2?u=(Number(u)+2e3-J0e)%100+J0e:u=Number(u),f-=1;var w=new Date(Date.UTC(2e3,f,c,h,d));return w.setUTCFullYear(u),w.getUTCMonth()!==f||w.getUTCDate()!==c?Pp:w.getTime()+p*yw};TF=Ec.MIN_MS=Ec.dateTime2ms("-9999");MF=Ec.MAX_MS=Ec.dateTime2ms("9999-12-31 23:59:59.9999");Ec.isDateTime=function(e,t){return Ec.dateTime2ms(e,t)!==Pp};function mw(e,t){return String(e+Math.pow(10,t)).slice(1)}var AF=90*Ed,Q0e=3*p6,ede=5*Dg;Ec.ms2DateTime=function(e,t,r){if(typeof e!="number"||!(e>=TF&&e<=MF))return Pp;t||(t=0);var i=Math.floor(Fg(e+.05,1)*10),n=Math.round(e-i/10),a,o,s,l,u,f;if(ny(r)){var c=Math.floor(n/Ed)+v6,h=Math.floor(Fg(e,Ed));try{a=iy.getComponentMethod("calendars","getCal")(r).fromJD(c).formatDate("yyyy-mm-dd")}catch(d){a=K0e("G%Y-%m-%d")(new Date(n))}if(a.charAt(0)==="-")for(;a.length<11;)a="-0"+a.slice(1);else for(;a.length<10;)a="0"+a;o=t=TF+Ed&&e<=MF-Ed))return Pp;var t=Math.floor(Fg(e+.05,1)*10),r=new Date(Math.round(e-t/10)),i=_At("%Y-%m-%d")(r),n=r.getHours(),a=r.getMinutes(),o=r.getSeconds(),s=r.getUTCMilliseconds()*10+t;return nde(i,n,a,o,s)};function nde(e,t,r,i,n){if((t||r||i||n)&&(e+=" "+mw(t,2)+":"+mw(r,2),(i||n)&&(e+=":"+mw(i,2),n))){for(var a=4;n%10===0;)a-=1,n/=10;e+="."+mw(n,a)}return e}Ec.cleanDate=function(e,t,r){if(e===Pp)return t;if(Ec.isJSDate(e)||typeof e=="number"&&isFinite(e)){if(ny(r))return oG.error("JS Dates and milliseconds are incompatible with world calendars",e),t;if(e=Ec.ms2DateTimeLocal(+e),!e&&t!==void 0)return t}else if(!Ec.isDateTime(e,r))return oG.error("unrecognized date",e),t;return e};var MAt=/%\d?f/g,SAt=/%h/g,EAt={1:"1",2:"1",3:"2",4:"2"};function tde(e,t,r,i){e=e.replace(MAt,function(a){var o=Math.min(+a.charAt(1)||6,6),s=(t/1e3%1+2).toFixed(o).slice(2).replace(/0+$/,"")||"0";return s});var n=new Date(Math.floor(t+.05));if(e=e.replace(SAt,function(){return EAt[r("%q")(n)]}),ny(i))try{e=iy.getComponentMethod("calendars","worldCalFmt")(e,t,i)}catch(a){return"Invalid"}return r(e)(n)}var kAt=[59,59.9,59.99,59.999,59.9999];function CAt(e,t){var r=Fg(e+.05,Ed),i=mw(Math.floor(r/p6),2)+":"+mw(Fg(Math.floor(r/Dg),60),2);if(t!=="M"){ide(t)||(t=0);var n=Math.min(Fg(e/yw,60),kAt[t]),a=(100+n).toFixed(t).slice(1);t>0&&(a=a.replace(/0+$/,"").replace(/[\.]$/,"")),i+=":"+a}return i}Ec.formatDate=function(e,t,r,i,n,a){if(n=ny(n)&&n,!t)if(r==="y")t=a.year;else if(r==="m")t=a.month;else if(r==="d")t=a.dayMonth+` +`+a.year;else return CAt(e,r)+` +`+tde(a.dayMonthYear,e,i,n);return tde(t,e,i,n)};var rde=3*Ed;Ec.incrementMonth=function(e,t,r){r=ny(r)&&r;var i=Fg(e,Ed);if(e=Math.round(e-i),r)try{var n=Math.round(e/Ed)+v6,a=iy.getComponentMethod("calendars","getCal")(r),o=a.fromJD(n);return t%12?a.add(o,t,"m"):a.add(o,t/12,"y"),(o.toJD()-v6)*Ed+i}catch(l){oG.error("invalid ms "+e+" in calendar "+r)}var s=new Date(e+rde);return s.setUTCMonth(s.getUTCMonth()+t)+i-rde};Ec.findExactDates=function(e,t){for(var r=0,i=0,n=0,a=0,o,s,l=ny(t)&&iy.getComponentMethod("calendars","getCal")(t),u=0;u{"use strict";ode.exports=function(t){return t}});var SF=K(ay=>{"use strict";var DAt=Hs(),FAt=ey(),LAt=m6(),PAt=(Il(),or(Bl)).BADNUM,sG=1e-9;ay.findBin=function(e,t,r){if(DAt(t.start))return r?Math.ceil((e-t.start)/t.size-sG)-1:Math.floor((e-t.start)/t.size+sG);var i=0,n=t.length,a=0,o=n>1?(t[n-1]-t[0])/(n-1):1,s,l;for(o>=0?l=r?zAt:IAt:l=r?BAt:RAt,e+=o*sG*(r?-1:1)*(o>=0?1:-1);i90&&FAt.log("Long binary search..."),i-1};function zAt(e,t){return et}function BAt(e,t){return e>=t}ay.sorterAsc=function(e,t){return e-t};ay.sorterDes=function(e,t){return t-e};ay.distinctVals=function(e){var t=e.slice();t.sort(ay.sorterAsc);var r;for(r=t.length-1;r>-1&&t[r]===PAt;r--);for(var i=t[r]-t[0]||1,n=i/(r||1)/1e4,a=[],o,s=0;s<=r;s++){var l=t[s],u=l-o;o===void 0?(a.push(l),o=l):u>n&&(i=Math.min(i,u),a.push(l),o=l)}return{vals:a,minDiff:i}};ay.roundUp=function(e,t,r){for(var i=0,n=t.length-1,a,o=0,s=r?0:1,l=r?1:0,u=r?Math.ceil:Math.floor;i0&&(i=1),r&&i)return e.sort(t)}return i?e:e.reverse()};ay.findIndexOfMin=function(e,t){t=t||LAt;for(var r=1/0,i,n=0;nOAt});function qAt(e){return Object.keys(e).sort()}var OAt,eb=ps(()=>{"use strict";OAt=qAt});var sde=K(kc=>{"use strict";var y6=Hs(),NAt=Yh().isArrayOrTypedArray;kc.aggNums=function(e,t,r,i){var n,a;if((!i||i>r.length)&&(i=r.length),y6(t)||(t=!1),NAt(r[0])){for(a=new Array(i),n=0;ne.length-1)return e[e.length-1];var r=t%1;return r*e[Math.ceil(t)]+(1-r)*e[Math.floor(t)]}});var hde=K((DOr,cde)=>{"use strict";var lde=(tw(),or(ew)),lG=lde.mod,VAt=lde.modHalf,g6=Math.PI,Lg=2*g6;function UAt(e){return e/180*g6}function GAt(e){return e/g6*180}function uG(e){return Math.abs(e[1]-e[0])>Lg-1e-14}function ude(e,t){return VAt(t-e,Lg)}function HAt(e,t){return Math.abs(ude(e,t))}function fde(e,t){if(uG(t))return!0;var r,i;t[0]i&&(i+=Lg);var n=lG(e,Lg),a=n+Lg;return n>=r&&n<=i||a>=r&&a<=i}function jAt(e,t,r,i){if(!fde(t,i))return!1;var n,a;return r[0]=n&&e<=a}function fG(e,t,r,i,n,a,o){n=n||0,a=a||0;var s=uG([r,i]),l,u,f,c,h;s?(l=0,u=g6,f=Lg):r{"use strict";tb.isLeftAnchor=function(t){return t.xanchor==="left"||t.xanchor==="auto"&&t.x<=1/3};tb.isCenterAnchor=function(t){return t.xanchor==="center"||t.xanchor==="auto"&&t.x>1/3&&t.x<2/3};tb.isRightAnchor=function(t){return t.xanchor==="right"||t.xanchor==="auto"&&t.x>=2/3};tb.isTopAnchor=function(t){return t.yanchor==="top"||t.yanchor==="auto"&&t.y>=2/3};tb.isMiddleAnchor=function(t){return t.yanchor==="middle"||t.yanchor==="auto"&&t.y>1/3&&t.y<2/3};tb.isBottomAnchor=function(t){return t.yanchor==="bottom"||t.yanchor==="auto"&&t.y<=1/3}});var mde=K(rb=>{"use strict";var cG=(tw(),or(ew)).mod;rb.segmentsIntersect=vde;function vde(e,t,r,i,n,a,o,s){var l=r-e,u=n-e,f=o-n,c=i-t,h=a-t,d=s-a,p=l*d-f*c;if(p===0)return null;var v=(u*d-f*h)/p,y=(u*c-l*h)/p;return y<0||y>1||v<0||v>1?null:{x:e+l*v,y:t+c*v}}rb.segmentDistance=function(t,r,i,n,a,o,s,l){if(vde(t,r,i,n,a,o,s,l))return 0;var u=i-t,f=n-r,c=s-a,h=l-o,d=u*u+f*f,p=c*c+h*h,v=Math.min(EF(u,f,d,a-t,o-r),EF(u,f,d,s-t,l-r),EF(c,h,p,t-a,r-o),EF(c,h,p,i-a,n-o));return Math.sqrt(v)};function EF(e,t,r,i,n){var a=i*e+n*t;if(a<0)return i*i+n*n;if(a>r){var o=i-e,s=n-t;return o*o+s*s}else{var l=i*t-n*e;return l*l/r}}var kF,hG,pde;rb.getTextLocation=function(t,r,i,n){if((t!==hG||n!==pde)&&(kF={},hG=t,pde=n),kF[i])return kF[i];var a=t.getPointAtLength(cG(i-n/2,r)),o=t.getPointAtLength(cG(i+n/2,r)),s=Math.atan((o.y-a.y)/(o.x-a.x)),l=t.getPointAtLength(cG(i,r)),u=(l.x*4+a.x+o.x)/6,f=(l.y*4+a.y+o.y)/6,c={x:u,y:f,theta:s};return kF[i]=c,c};rb.clearLocationCache=function(){hG=null};rb.getVisibleSegment=function(t,r,i){var n=r.left,a=r.right,o=r.top,s=r.bottom,l=0,u=t.getTotalLength(),f=u,c,h;function d(v){var y=t.getPointAtLength(v);v===0?c=y:v===u&&(h=y);var m=y.xa?y.x-a:0,w=y.ys?y.y-s:0;return Math.sqrt(m*m+w*w)}for(var p=d(l);p;){if(l+=p+i,l>f)return;p=d(l)}for(p=d(f);p;){if(f-=p+i,l>f)return;p=d(f)}return{min:l,max:f,len:f-l,total:u,isClosed:l===0&&f===u&&Math.abs(c.x-h.x)<.1&&Math.abs(c.y-h.y)<.1}};rb.findPointOnPath=function(t,r,i,n){n=n||{};for(var a=n.pathLength||t.getTotalLength(),o=n.tolerance||.001,s=n.iterationLimit||30,l=t.getPointAtLength(0)[i]>t.getPointAtLength(a)[i]?-1:1,u=0,f=0,c=a,h,d,p;u0?c=h:f=h,u++}return d}});var CF=K(x6=>{"use strict";var oy={};x6.throttle=function(t,r,i){var n=oy[t],a=Date.now();if(!n){for(var o in oy)oy[o].tsn.ts+r){s();return}n.timer=setTimeout(function(){s(),n.timer=null},r)};x6.done=function(e){var t=oy[e];return!t||!t.timer?Promise.resolve():new Promise(function(r){var i=t.onDone;t.onDone=function(){i&&i(),r(),t.onDone=null}})};x6.clear=function(e){if(e)yde(oy[e]),delete oy[e];else for(var t in oy)x6.clear(t)};function yde(e){e&&e.timer!==null&&(clearTimeout(e.timer),e.timer=null)}});var xde=K((zOr,gde)=>{"use strict";gde.exports=function(t){t._clearResponsive&&(t._clearResponsive(),delete t._clearResponsive)}});var bde=K((IOr,DF)=>{"use strict";DF.exports=dG;DF.exports.isMobile=dG;DF.exports.default=dG;var XAt=/(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|redmi|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,ZAt=/CrOS/,KAt=/android|ipad|playbook|silk/i;function dG(e){e||(e={});let t=e.ua;if(!t&&typeof navigator!="undefined"&&(t=navigator.userAgent),t&&t.headers&&typeof t.headers["user-agent"]=="string"&&(t=t.headers["user-agent"]),typeof t!="string")return!1;let r=XAt.test(t)&&!ZAt.test(t)||!!e.tablet&&KAt.test(t);return!r&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&t.indexOf("Macintosh")!==-1&&t.indexOf("Safari")!==-1&&(r=!0),r}});var wde=K((ROr,_de)=>{"use strict";var JAt=Hs(),QAt=bde();_de.exports=function(t){var r;if(t&&t.hasOwnProperty("userAgent")?r=t.userAgent:r=e4t(),typeof r!="string")return!0;var i=QAt({ua:{headers:{"user-agent":r}},tablet:!0,featureDetect:!1});if(!i)for(var n=r.split(" "),a=1;a-1;s--){var l=n[s];if(l.slice(0,8)==="Version/"){var u=l.slice(8).split(".")[0];if(JAt(u)&&(u=+u),u>=13)return!0}}}return i};function e4t(){var e;return typeof navigator!="undefined"&&(e=navigator.userAgent),e&&e.headers&&typeof e.headers["user-agent"]=="string"&&(e=e.headers["user-agent"]),e}});var Tde=K((BOr,Ade)=>{"use strict";var t4t=No();Ade.exports=function(t,r,i){var n=t.selectAll("g."+i.replace(/\s/g,".")).data(r,function(o){return o[0].trace.uid});n.exit().remove(),n.enter().append("g").attr("class",i),n.order();var a=t.classed("rangeplot")?"nodeRangePlot3":"node3";return n.each(function(o){o[0][a]=t4t.select(this)}),n}});var Sde=K((qOr,Mde)=>{"use strict";var r4t=Ho();Mde.exports=function(t,r){for(var i=t._context.locale,n=0;n<2;n++){for(var a=t._context.locales,o=0;o<2;o++){var s=(a[i]||{}).dictionary;if(s){var l=s[r];if(l)return l}a=r4t.localeRegistry}var u=i.split("-")[0];if(u===i)break;i=u}return r}});var pG=K((OOr,Ede)=>{"use strict";Ede.exports=function(t){for(var r={},i=[],n=0,a=0;a{"use strict";kde.exports=function(t){for(var r=a4t(t)?n4t:i4t,i=[],n=0;n{"use strict";Dde.exports=function(t,r){if(!r)return t;var i=1/Math.abs(r),n=i>1?(i*t+i*r)/i:t+r,a=String(n).length;if(a>16){var o=String(r).length,s=String(t).length;if(a>=s+o){var l=parseFloat(n).toPrecision(12);l.indexOf("e+")===-1&&(n=+l)}}return n}});var Pde={};Fl(Pde,{default:()=>l4t});function s4t(e){return typeof e=="string"&&(e=e.replace(o4t,"")),(0,Lde.default)(e)?Number(e):void 0}var Lde,o4t,l4t,zde=ps(()=>{"use strict";Lde=O1(Hs());Il();o4t=/^['"%,$#\s']+|[, ]|['"%,$#\s']+$/g;l4t=s4t});var Bde=K((GOr,Rde)=>{"use strict";var u4t=/<[^>]*>/g,f4t=/[\p{S}\p{P}]/gu,c4t=/[\p{Cc}\p{Cf}\uFE00-\uFE0F\u20E3]/gu,h4t=/�/g,d4t=/\s+/g,FF="-",Ide=FF.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),p4t=new RegExp(Ide+"{3,}","g"),v4t=new RegExp(Ide+"$","g"),m4t=60;function y4t(e){return typeof e.toWellFormed=="function"?e.toWellFormed():new TextDecoder().decode(new TextEncoder().encode(e))}Rde.exports=function(t,r=m4t){var i=y4t(t!=null?t:"").replace(h4t,"").replace(u4t," ").replace(f4t,n=>n===FF?n:"").toLowerCase().trim().replace(d4t,FF).replace(c4t,"").replace(p4t,FF);return i.length<=r?i:Array.from(i).slice(0,r).join("").replace(v4t,"")}});var St=K((HOr,Xde)=>{"use strict";var b6=No(),g4t=J3().utcFormat,x4t=uV().format,Gde=Hs(),Hde=(Il(),or(Bl)),jde=Hde.FP_SAFE,b4t=-jde,qde=Hde.BADNUM,vr={};Xde.exports=vr;vr.adjustFormat=function(t){if(!t||/^\d[.]\df/.test(t)||/[.]\d%/.test(t))return t;if(t==="0.f")return"~f";if(/^\d%/.test(t))return"~%";if(/^\ds/.test(t))return"~s";var r=(t.match(/^[+\-( ]?/)||[""])[0],i=t.slice(r.length);return!/^[~,.0$#]/.test(i)&&/[&fps]/.test(i)?r+"~"+i:t};var Ode={};vr.warnBadFormat=function(e){var t=String(e);Ode[t]||(Ode[t]=1,vr.warn('encountered bad format: "'+t+'"'))};vr.noFormat=function(e){return String(e)};vr.numberFormat=function(e){var t;try{t=x4t(vr.adjustFormat(e))}catch(r){return vr.warnBadFormat(e),vr.noFormat}return t};vr.nestedProperty=VT();vr.keyedContainer=Pue();vr.relativeAttr=Iue();vr.isPlainObject=_g();vr.toLogRange=ND();vr.relinkPrivateKeys=Oue();var Pg=Yh();vr.isArrayBuffer=Pg.isArrayBuffer;vr.isTypedArray=Pg.isTypedArray;vr.isArrayOrTypedArray=Pg.isArrayOrTypedArray;vr.isArray1D=Pg.isArray1D;vr.ensureArray=Pg.ensureArray;vr.concat=Pg.concat;vr.maxRowLength=Pg.maxRowLength;vr.minRowLength=Pg.minRowLength;var Wde=(tw(),or(ew));vr.mod=Wde.mod;vr.modHalf=Wde.modHalf;var zg=ohe();vr.valObjectMeta=zg.valObjectMeta;vr.coerce=zg.coerce;vr.coerce2=zg.coerce2;vr.coerceFont=zg.coerceFont;vr.coercePattern=zg.coercePattern;vr.coerceHoverinfo=zg.coerceHoverinfo;vr.coerceSelectionMarkerOpacity=zg.coerceSelectionMarkerOpacity;vr.validate=zg.validate;var Jd=ade();vr.dateTime2ms=Jd.dateTime2ms;vr.isDateTime=Jd.isDateTime;vr.ms2DateTime=Jd.ms2DateTime;vr.ms2DateTimeLocal=Jd.ms2DateTimeLocal;vr.cleanDate=Jd.cleanDate;vr.isJSDate=Jd.isJSDate;vr.formatDate=Jd.formatDate;vr.incrementMonth=Jd.incrementMonth;vr.dateTick0=Jd.dateTick0;vr.dfltRange=Jd.dfltRange;vr.findExactDates=Jd.findExactDates;vr.MIN_MS=Jd.MIN_MS;vr.MAX_MS=Jd.MAX_MS;var ib=SF();vr.findBin=ib.findBin;vr.sorterAsc=ib.sorterAsc;vr.sorterDes=ib.sorterDes;vr.distinctVals=ib.distinctVals;vr.roundUp=ib.roundUp;vr.sort=ib.sort;vr.findIndexOfMin=ib.findIndexOfMin;vr.sortObjectKeys=(eb(),or(Qx)).default;var sy=sde();vr.aggNums=sy.aggNums;vr.len=sy.len;vr.mean=sy.mean;vr.geometricMean=sy.geometricMean;vr.median=sy.median;vr.midRange=sy.midRange;vr.variance=sy.variance;vr.stdev=sy.stdev;vr.interp=sy.interp;var Gv=mF();vr.init2dArray=Gv.init2dArray;vr.transposeRagged=Gv.transposeRagged;vr.dot=Gv.dot;vr.translationMatrix=Gv.translationMatrix;vr.rotationMatrix=Gv.rotationMatrix;vr.rotationXYMatrix=Gv.rotationXYMatrix;vr.apply3DTransform=Gv.apply3DTransform;vr.apply2DTransform=Gv.apply2DTransform;vr.apply2DTransform2=Gv.apply2DTransform2;vr.convertCssMatrix=Gv.convertCssMatrix;vr.inverseTransformMatrix=Gv.inverseTransformMatrix;var G1=hde();vr.deg2rad=G1.deg2rad;vr.rad2deg=G1.rad2deg;vr.angleDelta=G1.angleDelta;vr.angleDist=G1.angleDist;vr.isFullCircle=G1.isFullCircle;vr.isAngleInsideSector=G1.isAngleInsideSector;vr.isPtInsideSector=G1.isPtInsideSector;vr.pathArc=G1.pathArc;vr.pathSector=G1.pathSector;vr.pathAnnulus=G1.pathAnnulus;var bw=dde();vr.isLeftAnchor=bw.isLeftAnchor;vr.isCenterAnchor=bw.isCenterAnchor;vr.isRightAnchor=bw.isRightAnchor;vr.isTopAnchor=bw.isTopAnchor;vr.isMiddleAnchor=bw.isMiddleAnchor;vr.isBottomAnchor=bw.isBottomAnchor;var _w=mde();vr.segmentsIntersect=_w.segmentsIntersect;vr.segmentDistance=_w.segmentDistance;vr.getTextLocation=_w.getTextLocation;vr.clearLocationCache=_w.clearLocationCache;vr.getVisibleSegment=_w.getVisibleSegment;vr.findPointOnPath=_w.findPointOnPath;var zF=Os();vr.extendFlat=zF.extendFlat;vr.extendDeep=zF.extendDeep;vr.extendDeepAll=zF.extendDeepAll;vr.extendDeepNoArrays=zF.extendDeepNoArrays;var vG=ey();vr.log=vG.log;vr.warn=vG.warn;vr.error=vG.error;var _4t=(hw(),or(c6));vr.counterRegex=_4t.counter;var mG=CF();vr.throttle=mG.throttle;vr.throttleDone=mG.done;vr.clearThrottle=mG.clear;var Hv=h6();vr.getGraphDiv=Hv.getGraphDiv;vr.isPlotDiv=Hv.isPlotDiv;vr.removeElement=Hv.removeElement;vr.addStyleRule=Hv.addStyleRule;vr.addRelatedStyleRule=Hv.addRelatedStyleRule;vr.deleteRelatedStyleRule=Hv.deleteRelatedStyleRule;vr.setStyleOnHover=Hv.setStyleOnHover;vr.getFullTransformMatrix=Hv.getFullTransformMatrix;vr.getElementTransformMatrix=Hv.getElementTransformMatrix;vr.getElementAndAncestors=Hv.getElementAndAncestors;vr.equalDomRects=Hv.equalDomRects;vr.clearResponsive=xde();vr.preserveDrawingBuffer=wde();vr.makeTraceGroups=Tde();vr._=Sde();vr.notifier=UU();vr.filterUnique=pG();vr.filterVisible=Cde();vr.pushUnique=KU();vr.increment=Fde();vr.cleanNumber=(zde(),or(Pde)).default;vr.slugify=Bde();vr.ensureNumber=function(t){return Gde(t)?(t=Number(t),t>jde||t=t?!1:Gde(e)&&e>=0&&e%1===0};vr.noop=vF();vr.identity=m6();vr.repeat=function(e,t){for(var r=new Array(t),i=0;ir?Math.max(r,Math.min(t,e)):Math.max(t,Math.min(r,e))};vr.bBoxIntersect=function(e,t,r){return r=r||0,e.left<=t.right+r&&t.left<=e.right+r&&e.top<=t.bottom+r&&t.top<=e.bottom+r};vr.simpleMap=function(e,t,r,i,n){for(var a=e.length,o=new Array(a),s=0;s=Math.pow(2,r)?n>10?(vr.warn("randstr failed uniqueness"),o):e(t,r,i,(n||0)+1):o};vr.OptionControl=function(e,t){e||(e={}),t||(t="opt");var r={};return r.optionList=[],r._newoption=function(i){i[t]=e,r[i.name]=i,r.optionList.push(i)},r["_"+t]=e,r};vr.smooth=function(e,t){if(t=Math.round(t)||0,t<2)return e;var r=e.length,i=2*r,n=2*t-1,a=new Array(n),o=new Array(r),s,l,u,f;for(s=0;s=i&&(u-=i*Math.floor(u/i)),u<0?u=-1-u:u>=r&&(u=i-1-u),f+=e[u]*a[l];o[s]=f}return o};vr.syncOrAsync=function(e,t,r){var i,n;function a(){return vr.syncOrAsync(e,t,r)}for(;e.length;)if(n=e.splice(0,1)[0],i=n(t),i&&i.then)return i.then(a);return r&&r(t)};vr.stripTrailingSlash=function(e){return e.slice(-1)==="/"?e.slice(0,-1):e};vr.noneOrAll=function(e,t,r){if(e){var i=!1,n=!0,a,o;for(a=0;a0?n:0})};vr.fillArray=function(e,t,r,i){if(i=i||vr.identity,vr.isArrayOrTypedArray(e))for(var n=0;nT4t.test(window.navigator.userAgent);var M4t=/Firefox\/(\d+)\.\d+/;vr.getFirefoxVersion=function(){var e=M4t.exec(window.navigator.userAgent);if(e&&e.length===2){var t=parseInt(e[1]);if(!isNaN(t))return t}return null};vr.isD3Selection=function(e){return e instanceof b6.selection};vr.ensureSingle=function(e,t,r,i){var n=e.select(t+(r?"."+r:""));if(n.size())return n;var a=e.append(t);return r&&a.classed(r,!0),i&&a.call(i),a};vr.ensureSingleById=function(e,t,r,i){var n=e.select(t+"#"+r);if(n.size())return n;var a=e.append(t).attr("id",r);return i&&a.call(i),a};vr.objectFromPath=function(e,t){for(var r=e.split("."),i,n=i={},a=0;a1?n+o[1]:"";if(a&&(o.length>1||s.length>4||r))for(;i.test(s);)s=s.replace(i,"$1"+a+"$2");return s+l};vr.TEMPLATE_STRING_REGEX=/%{([^\s%{}:]*)([:|\|][^}]*)?}/g;var Yde=/^\w*$/;vr.templateString=function(e,t){var r={};return e.replace(vr.TEMPLATE_STRING_REGEX,function(i,n){var a;return Yde.test(n)?a=t[n]:(r[n]=r[n]||vr.nestedProperty(t,n).get,a=r[n](!0)),a!==void 0?a:""})};var k4t={max:10,count:0,name:"hovertemplate"};vr.hovertemplateString=e=>yG($l(Gs({},e),{opts:k4t}));var C4t={max:10,count:0,name:"texttemplate"};vr.texttemplateString=e=>yG($l(Gs({},e),{opts:C4t}));var D4t=/^(\S+)([\*\/])(-?\d+(\.\d+)?)$/;function F4t(e){var t=e.match(D4t);return t?{key:t[1],op:t[2],number:Number(t[3])}:{key:e,op:null,number:null}}var L4t={max:10,count:0,name:"texttemplate",parseMultDiv:!0};vr.texttemplateStringForShapes=e=>yG($l(Gs({},e),{opts:L4t}));var Nde=/^[:|\|]/;function yG({data:e=[],locale:t,fallback:r,labels:i={},opts:n,template:a}){return a.replace(vr.TEMPLATE_STRING_REGEX,(o,s,l)=>{let u=["xother","yother"].includes(s),f=["_xother","_yother"].includes(s),c=["_xother_","_yother_"].includes(s),h=["xother_","yother_"].includes(s),d=u||f||h||c;(f||c)&&(s=s.substring(1)),(h||c)&&(s=s.substring(0,s.length-1));let p=null,v=null;if(n.parseMultDiv){var y=F4t(s);s=y.key,p=y.op,v=y.number}let m;if(d){if(i[s]===void 0)return"";m=i[s]}else for(let M of e)if(M){if(M.hasOwnProperty(s)){m=M[s];break}if(Yde.test(s)||(m=vr.nestedProperty(M,s).get(!0)),m!==void 0)break}if(m===void 0){let{count:M,max:x,name:T}=n,A=r===!1?o:r;return M=PF&&o<=Vde,u=s>=PF&&s<=Vde;if(l&&(i=10*i+o-PF),u&&(n=10*n+s-PF),!l||!u){if(i!==n)return i-n;if(o!==s)return o-s}}return n-i};var xw=2e9;vr.seedPseudoRandom=function(){xw=2e9};vr.pseudoRandom=function(){var e=xw;return xw=(69069*xw+1)%4294967296,Math.abs(xw-e)<429496729?vr.pseudoRandom():xw/4294967296};vr.fillText=function(e,t,r){var i=Array.isArray(r)?function(o){r.push(o)}:function(o){r.text=o},n=vr.extractOption(e,t,"htx","hovertext");if(vr.isValidTextValue(n))return i(n);var a=vr.extractOption(e,t,"tx","text");if(vr.isValidTextValue(a))return i(a)};vr.isValidTextValue=function(e){return e||e===0};vr.formatPercent=function(e,t){t=t||0;for(var r=(Math.round(100*e*Math.pow(10,t))*Math.pow(.1,t)).toFixed(t)+"%",i=0;i1&&(u=1):u=0,vr.strTranslate(n-u*(r+o),a-u*(i+s))+vr.strScale(u)+(l?"rotate("+l+(t?"":" "+r+" "+i)+")":"")};vr.setTransormAndDisplay=function(e,t){e.attr("transform",vr.getTextTransform(t)),e.style("display",t.scale?null:"none")};vr.ensureUniformFontSize=function(e,t){var r=vr.extendFlat({},t);return r.size=Math.max(t.size,e._fullLayout.uniformtext.minsize||0),r};vr.join2=function(e,t,r){var i=e.length;return i>1?e.slice(0,-1).join(t)+r+e[i-1]:e.join(t)};vr.bigFont=function(e){return Math.round(1.2*e)};var Ude=vr.getFirefoxVersion(),P4t=Ude!==null&&Ude<86;vr.getPositionFromD3Event=function(){return P4t?[b6.event.layerX,b6.event.layerY]:[b6.event.offsetX,b6.event.offsetY]}});var Jde=K(()=>{"use strict";var z4t=St(),Zde={"X,X div":'direction:ltr;font-family:"Open Sans",verdana,arial,sans-serif;margin:0;padding:0;border: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 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:focus-within .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-group a":"display:grid;place-content:center;","X .modebar-btn":"position:relative;font-size:16px;padding:3px 4px;height:22px;cursor:pointer;line-height:normal;box-sizing:border-box;border:none;background:rgba(0,0,0,0);","X .modebar-btn svg":"position:relative;","X .modebar-btn:focus-visible":"outline:1px solid #000;outline-offset:1px;border-radius:3px;","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;","X .plotly-cloud-dialog":'font-family:"Open Sans",verdana,arial,sans-serif;position:absolute;top:0;left:0;width:100%;height:100%;z-index:1001;display:flex;align-items:center;justify-content:center;background-color:rgba(0,0,0,.4);',"X .plotly-cloud-dialog .plotly-cloud-dialog-box":"box-sizing:border-box;min-width:300px;max-width:420px;padding:20px 24px;background-color:#fff;border:1px solid #e0e2e5;border-radius:4px;box-shadow:0 4px 16px rgba(0,0,0,.25);font-size:13px;color:#2a3f5f;","X .plotly-cloud-dialog .plotly-cloud-dialog-title":"font-size:16px;font-weight:bold;margin-bottom:12px;","X .plotly-cloud-dialog .plotly-cloud-dialog-message":"line-height:1.5;overflow-wrap:break-word;word-wrap:break-word;","X .plotly-cloud-dialog .plotly-cloud-dialog-message--hostname":"font-weight:bold;text-decoration:underline;","X .plotly-cloud-dialog .plotly-cloud-dialog-message--account":"margin-top:16px;padding:8px;border-radius:3px;font-size:.9em;background-color:#edf1f8;","X .plotly-cloud-dialog .plotly-cloud-dialog-buttons":"display:flex;justify-content:flex-end;margin-top:20px;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn":"font-family:inherit;font-size:13px;padding:7px 16px;margin-left:8px;border-radius:3px;border:1px solid rgba(0,0,0,0);cursor:pointer;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn:focus-visible":"outline:2px solid #447adb;outline-offset:1px;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn--cancel":"background-color:#f3f3f3;margin-left:auto;color:#777;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn--cancel:hover":"background-color:#e0e2e5;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn--confirm":"background-color:#447adb;color:#fff;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn--confirm:hover":"background-color:#1d3b84;",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(gG in Zde)Kde=gG.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier"),z4t.addStyleRule(Kde,Zde[gG]);var Kde,gG});var xG=K((YOr,Qde)=>{Qde.exports=!0});var _G=K((XOr,epe)=>{"use strict";var I4t=xG(),bG;typeof window.matchMedia=="function"?bG=!window.matchMedia("(hover: none)").matches:bG=I4t;epe.exports=bG});var nb=K((ZOr,wG)=>{"use strict";var ww=typeof Reflect=="object"?Reflect:null,tpe=ww&&typeof ww.apply=="function"?ww.apply:function(t,r,i){return Function.prototype.apply.call(t,r,i)},IF;ww&&typeof ww.ownKeys=="function"?IF=ww.ownKeys:Object.getOwnPropertySymbols?IF=function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:IF=function(t){return Object.getOwnPropertyNames(t)};function R4t(e){console&&console.warn&&console.warn(e)}var ipe=Number.isNaN||function(t){return t!==t};function Pf(){Pf.init.call(this)}wG.exports=Pf;wG.exports.once=N4t;Pf.EventEmitter=Pf;Pf.prototype._events=void 0;Pf.prototype._eventsCount=0;Pf.prototype._maxListeners=void 0;var rpe=10;function RF(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(Pf,"defaultMaxListeners",{enumerable:!0,get:function(){return rpe},set:function(e){if(typeof e!="number"||e<0||ipe(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");rpe=e}});Pf.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};Pf.prototype.setMaxListeners=function(t){if(typeof t!="number"||t<0||ipe(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this};function npe(e){return e._maxListeners===void 0?Pf.defaultMaxListeners:e._maxListeners}Pf.prototype.getMaxListeners=function(){return npe(this)};Pf.prototype.emit=function(t){for(var r=[],i=1;i0&&(o=r[0]),o instanceof Error)throw o;var s=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw s.context=o,s}var l=a[t];if(l===void 0)return!1;if(typeof l=="function")tpe(l,this,r);else for(var u=l.length,f=upe(l,u),i=0;i0&&o.length>n&&!o.warned){o.warned=!0;var s=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");s.name="MaxListenersExceededWarning",s.emitter=e,s.type=t,s.count=o.length,R4t(s)}return e}Pf.prototype.addListener=function(t,r){return ape(this,t,r,!1)};Pf.prototype.on=Pf.prototype.addListener;Pf.prototype.prependListener=function(t,r){return ape(this,t,r,!0)};function B4t(){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 ope(e,t,r){var i={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},n=B4t.bind(i);return n.listener=r,i.wrapFn=n,n}Pf.prototype.once=function(t,r){return RF(r),this.on(t,ope(this,t,r)),this};Pf.prototype.prependOnceListener=function(t,r){return RF(r),this.prependListener(t,ope(this,t,r)),this};Pf.prototype.removeListener=function(t,r){var i,n,a,o,s;if(RF(r),n=this._events,n===void 0)return this;if(i=n[t],i===void 0)return this;if(i===r||i.listener===r)--this._eventsCount===0?this._events=Object.create(null):(delete n[t],n.removeListener&&this.emit("removeListener",t,i.listener||r));else if(typeof i!="function"){for(a=-1,o=i.length-1;o>=0;o--)if(i[o]===r||i[o].listener===r){s=i[o].listener,a=o;break}if(a<0)return this;a===0?i.shift():q4t(i,a),i.length===1&&(n[t]=i[0]),n.removeListener!==void 0&&this.emit("removeListener",t,s||r)}return this};Pf.prototype.off=Pf.prototype.removeListener;Pf.prototype.removeAllListeners=function(t){var r,i,n;if(i=this._events,i===void 0)return this;if(i.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):i[t]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete i[t]),this;if(arguments.length===0){var a=Object.keys(i),o;for(n=0;n=0;n--)this.removeListener(t,r[n]);return this};function spe(e,t,r){var i=e._events;if(i===void 0)return[];var n=i[t];return n===void 0?[]:typeof n=="function"?r?[n.listener||n]:[n]:r?O4t(n):upe(n,n.length)}Pf.prototype.listeners=function(t){return spe(this,t,!0)};Pf.prototype.rawListeners=function(t){return spe(this,t,!1)};Pf.listenerCount=function(e,t){return typeof e.listenerCount=="function"?e.listenerCount(t):lpe.call(e,t)};Pf.prototype.listenerCount=lpe;function lpe(e){var t=this._events;if(t!==void 0){var r=t[e];if(typeof r=="function")return 1;if(r!==void 0)return r.length}return 0}Pf.prototype.eventNames=function(){return this._eventsCount>0?IF(this._events):[]};function upe(e,t){for(var r=new Array(t),i=0;i{"use strict";var AG=nb().EventEmitter,U4t={init:function(e){if(e._ev instanceof AG)return e;var t=new AG,r=new AG;return e._ev=t,e._internalEv=r,e.on=t.on.bind(t),e.once=t.once.bind(t),e.removeListener=t.removeListener.bind(t),e.removeAllListeners=t.removeAllListeners.bind(t),e._internalOn=r.on.bind(r),e._internalOnce=r.once.bind(r),e._removeInternalListener=r.removeListener.bind(r),e._removeAllInternalListeners=r.removeAllListeners.bind(r),e.emit=function(i,n){t.emit(i,n),r.emit(i,n)},typeof e.addEventListener=="function"&&e.addEventListener("wheel",()=>{},{passive:!0}),e},triggerHandler:function(e,t,r){var i,n=e._ev;if(!n)return;var a=n._events[t];if(!a)return;function o(l){if(l.listener){if(n.removeListener(t,l.listener),!l.fired)return l.fired=!0,l.listener.apply(n,[r])}else return l.apply(n,[r])}a=Array.isArray(a)?a:[a];var s;for(s=0;s{"use strict";var hpe=St(),G4t=Mg().dfltConfig;function H4t(e,t){for(var r=[],i,n=0;nG4t.queueLength&&(e.undoQueue.queue.shift(),e.undoQueue.index--)};ly.startSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!0,e.undoQueue.beginSequence=!0};ly.stopSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!1,e.undoQueue.beginSequence=!1};ly.undo=function(t){var r,i;if(!(t.undoQueue===void 0||isNaN(t.undoQueue.index)||t.undoQueue.index<=0)){for(t.undoQueue.index--,r=t.undoQueue.queue[t.undoQueue.index],t.undoQueue.inSequence=!0,i=0;i=t.undoQueue.queue.length)){for(r=t.undoQueue.queue[t.undoQueue.index],t.undoQueue.inSequence=!0,i=0;i{"use strict";vpe.exports={_isLinkedToArray:"frames_entry",group:{valType:"string"},name:{valType:"string"},traces:{valType:"any"},baseframe:{valType:"string"},data:{valType:"any"},layout:{valType:"any"}}});var Sw=K(lh=>{"use strict";var zp=Ho(),_6=St(),qF=Tu(),MG=vw(),j4t=TG(),W4t=d6(),$4t=Mg().configAttributes,mpe=Ef(),jv=_6.extendDeepAll,Tw=_6.isPlainObject,Y4t=_6.isArrayOrTypedArray,OF=_6.nestedProperty,X4t=_6.valObjectMeta,SG="_isSubplotObj",NF="_isLinkedToArray",Z4t="_arrayAttrRegexps",gpe="_deprecated",EG=[SG,NF,Z4t,gpe];lh.IS_SUBPLOT_OBJ=SG;lh.IS_LINKED_TO_ARRAY=NF;lh.DEPRECATED=gpe;lh.UNDERSCORE_ATTRS=EG;lh.get=function(){var e={};return zp.allTypes.forEach(function(t){e[t]=J4t(t)}),{defs:{valObjects:X4t,metaKeys:EG.concat(["description","role","editType","impliedEdits"]),editType:{traces:mpe.traces,layout:mpe.layout},impliedEdits:{}},traces:e,layout:Q4t(),frames:e5t(),animation:Mw(W4t),config:Mw($4t)}};lh.crawl=function(e,t,r,i){var n=r||0;i=i||"",Object.keys(e).forEach(function(a){var o=e[a];if(EG.indexOf(a)===-1){var s=(i?i+".":"")+a;t(o,a,e,n,s),!lh.isValObject(o)&&Tw(o)&&a!=="impliedEdits"&&lh.crawl(o,t,n+1,s)}})};lh.isValObject=function(e){return e&&e.valType!==void 0};lh.findArrayAttributes=function(e){var t=[],r=[],i=[],n,a;function o(l,u,f,c){r=r.slice(0,c).concat([u]),i=i.slice(0,c).concat([l&&l._isLinkedToArray]);var h=l&&(l.valType==="data_array"||l.arrayOk===!0)&&!(r[c-1]==="colorbar"&&(u==="ticktext"||u==="tickvals"));h&&s(n,0,"")}function s(l,u,f){var c=l[r[u]],h=f+r[u];if(u===r.length-1)Y4t(c)&&t.push(a+h);else if(i[u]){if(Array.isArray(c))for(var d=0;d=a.length)return!1;if(e.dimensions===2){if(r++,t.length===r)return e;var o=t[r];if(!BF(o))return!1;e=a[n][o]}else e=a[n]}else e=a}}return e}function BF(e){return e===Math.round(e)&&e>=0}function J4t(e){var t,r;t=zp.modules[e]._module,r=t.basePlotModule;var i={};i.type=null;var n=jv({},qF),a=jv({},t.attributes);lh.crawl(a,function(l,u,f,c,h){OF(n,h).set(void 0),l===void 0&&OF(a,h).set(void 0)}),jv(i,n),zp.traceIs(e,"noOpacity")&&delete i.opacity,zp.traceIs(e,"showLegend")||(delete i.showlegend,delete i.legendgroup),zp.traceIs(e,"noHover")&&(delete i.hoverinfo,delete i.hoverlabel),t.selectPoints||delete i.selectedpoints,jv(i,a),r.attributes&&jv(i,r.attributes),i.type=e;var o={meta:t.meta||{},categories:t.categories||{},animatable:!!t.animatable,type:e,attributes:Mw(i)};if(t.layoutAttributes){var s={};jv(s,t.layoutAttributes),o.layoutAttributes=Mw(s)}return t.animatable||lh.crawl(o,function(l){lh.isValObject(l)&&"anim"in l&&delete l.anim}),o}function Q4t(){var e={},t,r;jv(e,MG);for(t in zp.subplotsRegistry)if(r=zp.subplotsRegistry[t],!!r.layoutAttributes)if(Array.isArray(r.attr))for(var i=0;i{"use strict";var Ew=St(),a5t=Tu(),Ig="templateitemname",kG={name:{valType:"string",editType:"none"}};kG[Ig]={valType:"string",editType:"calc"};ab.templatedArray=function(e,t){return t._isLinkedToArray=e,t.name=kG.name,t[Ig]=kG[Ig],t};ab.traceTemplater=function(e){var t={},r,i;for(r in e)i=e[r],Array.isArray(i)&&i.length&&(t[r]=0);function n(a){r=Ew.coerce(a,{},a5t,"type");var o={type:r,_template:null};if(r in t){i=e[r];var s=t[r]%i.length;t[r]++,o._template=i[s]}return o}return{newTrace:n}};ab.newContainer=function(e,t,r){var i=e._template,n=i&&(i[t]||r&&i[r]);Ew.isPlainObject(n)||(n=null);var a=e[t]={_template:n};return a};ab.arrayTemplater=function(e,t,r){var i=e._template,n=i&&i[_pe(t)],a=i&&i[t];(!Array.isArray(a)||!a.length)&&(a=[]);var o={};function s(u){var f={name:u.name,_input:u},c=f[Ig]=u[Ig];if(!bpe(c))return f._template=n,f;for(var h=0;h=i&&(r._input||{})._templateitemname;a&&(n=i);var o=t+"["+n+"]",s;function l(){s={},a&&(s[o]={},s[o][Ig]=a)}l();function u(d,p){s[d]=p}function f(d,p){a?Ew.nestedProperty(s[o],d).set(p):s[o+"."+d]=p}function c(){var d=s;return l(),d}function h(d,p){d&&f(d,p);var v=c();for(var y in v)Ew.nestedProperty(e,y).set(v[y])}return{modifyBase:u,modifyItem:f,getUpdateObj:c,applyUpdate:h}}});var Hc={};Fl(Hc,{AX_ID_PATTERN:()=>f5t,AX_NAME_PATTERN:()=>c5t,DFLTRANGEX:()=>x5t,DFLTRANGEY:()=>b5t,DRAGGERSIZE:()=>y5t,HOUR_PATTERN:()=>d5t,MINDRAG:()=>v5t,MINZOOM:()=>m5t,REDRAWDELAY:()=>g5t,SUBPLOT_PATTERN:()=>h5t,WEEKDAY_PATTERN:()=>p5t,attrRegex:()=>s5t,clipOnAxisFalseQuery:()=>w5t,idRegex:()=>o5t,layerValue2layerClass:()=>A5t,traceLayerClasses:()=>_5t,xAxisMatch:()=>l5t,yAxisMatch:()=>u5t,zindexSeparator:()=>T5t});var o5t,s5t,l5t,u5t,f5t,c5t,h5t,d5t,p5t,v5t,m5t,y5t,g5t,x5t,b5t,_5t,w5t,A5t,T5t,jc=ps(()=>{"use strict";hw();o5t={x:Kx("x","( domain)?"),y:Kx("y","( domain)?")},s5t=Kx("[xy]axis"),l5t=Kx("xaxis"),u5t=Kx("yaxis"),f5t=/^[xyz][0-9]*( domain)?$/,c5t=/^[xyz]axis[0-9]*$/,h5t=/^x([0-9]*)y([0-9]*)$/,d5t="hour",p5t="day of week",v5t=8,m5t=20,y5t=20,g5t=50,x5t=[-1,6],b5t=[-1,4],_5t=["imagelayer","heatmaplayer","contourcarpetlayer","contourlayer","funnellayer","waterfalllayer","barlayer","carpetlayer","violinlayer","boxlayer","ohlclayer","scattercarpetlayer","scatterlayer"],w5t=[".scatterlayer",".barlayer",".funnellayer",".waterfalllayer"],A5t={"above traces":"above","below traces":"below"},T5t="z"});var Vf=K(kd=>{"use strict";var M5t=Ho(),CG=(jc(),or(Hc));kd.id2name=function(t){if(!(typeof t!="string"||!t.match(CG.AX_ID_PATTERN))){var r=t.split(" ")[0].slice(1);return r==="1"&&(r=""),t.charAt(0)+"axis"+r}};kd.name2id=function(t){if(t.match(CG.AX_NAME_PATTERN)){var r=t.slice(5);return r==="1"&&(r=""),t.charAt(0)+r}};kd.cleanId=function(t,r,i){var n=/( domain)$/.test(t);if(!(typeof t!="string"||!t.match(CG.AX_ID_PATTERN))&&!(r&&t.charAt(0)!==r)&&!(n&&!i)){var a=t.split(" ")[0].slice(1).replace(/^0+/,"");return a==="1"&&(a=""),t.charAt(0)+a+(n&&i?" domain":"")}};kd.list=function(e,t,r){var i=e._fullLayout;if(!i)return[];var n=kd.listIds(e,t),a=new Array(n.length),o;for(o=0;oi?1:-1:+(e.slice(1)||1)-+(t.slice(1)||1)};kd.ref2id=function(e){return/^[xyz]/.test(e)?e.split(" ")[0]:!1};function wpe(e,t){if(t&&t.length){for(var r=0;r{"use strict";function S5t(e){var t=e._fullLayout._zoomlayer;t&&t.selectAll(".outline-controllers").remove()}function E5t(e){var t=e._fullLayout._zoomlayer;t&&t.selectAll(".select-outline").remove(),e._fullLayout._outlining=!1}Ape.exports={clearOutlineControllers:S5t,clearOutline:E5t}});var VF=K((aNr,Tpe)=>{"use strict";Tpe.exports={scattermode:{valType:"enumerated",values:["group","overlay"],dflt:"overlay",editType:"calc"},scattergap:{valType:"number",min:0,max:1,editType:"calc"}}});var Zh=K(GF=>{"use strict";var UF=Ho(),oNr=(jc(),or(Hc)).SUBPLOT_PATTERN;GF.getSubplotCalcData=function(e,t,r){var i=UF.subplotsRegistry[t];if(!i)return[];for(var n=i.attr,a=[],o=0;o{"use strict";var k5t=Ho(),kw=St();ob.manageCommandObserver=function(e,t,r,i){var n={},a=!0;t&&t._commandObserver&&(n=t._commandObserver),n.cache||(n.cache={}),n.lookupTable={};var o=ob.hasSimpleAPICommandBindings(e,r,n.lookupTable);if(t&&t._commandObserver){if(o)return n;if(t._commandObserver.remove)return t._commandObserver.remove(),t._commandObserver=null,n}if(o){Mpe(e,o,n.cache),n.check=function(){if(a){var f=Mpe(e,o,n.cache);return f.changed&&i&&n.lookupTable[f.value]!==void 0&&(n.disable(),Promise.resolve(i({value:f.value,type:o.type,prop:o.prop,traces:o.traces,index:n.lookupTable[f.value]})).then(n.enable,n.enable)),f.changed}};for(var s=["plotly_relayout","plotly_redraw","plotly_restyle","plotly_update","plotly_animatingframe","plotly_afterplot"],l=0;l0?".":"")+n;kw.isPlainObject(a)?DG(a,t,o,i+1):t(o,n,a)}})}});var yf=K((fNr,qpe)=>{"use strict";var uNr=No(),D5t=J3().timeFormatLocale,F5t=uV().formatLocale,w6=Hs(),L5t=cV(),P5t=NT().version,xu=Ho(),z5t=Sw(),I5t=cu(),os=St(),R5t=wo(),Cpe=(Il(),or(Bl)).BADNUM,Cd=Vf(),B5t=Rg().clearOutline,q5t=VF(),FG=d6(),O5t=TG(),N5t=Zh().getModuleCalcData,Dpe=os.relinkPrivateKeys,sb=os._,zo=qpe.exports={};os.extendFlat(zo,xu);zo.attributes=Tu();zo.attributes.type.values=zo.allTypes;zo.fontAttrs=lf();zo.layoutAttributes=vw();var jF=kpe();zo.executeAPICommand=jF.executeAPICommand;zo.computeAPICommandBindings=jF.computeAPICommandBindings;zo.manageCommandObserver=jF.manageCommandObserver;zo.hasSimpleAPICommandBindings=jF.hasSimpleAPICommandBindings;zo.redrawText=function(e){return e=os.getGraphDiv(e),new Promise(function(t){setTimeout(function(){e._fullLayout&&(xu.getComponentMethod("annotations","draw")(e),xu.getComponentMethod("legend","draw")(e),xu.getComponentMethod("colorbar","draw")(e),t(zo.previousPromises(e)))},300)})};zo.resize=function(e){e=os.getGraphDiv(e);var t,r=new Promise(function(i,n){(!e||os.isHidden(e))&&n(new Error("Resize must be passed a displayed plot div element.")),e._redrawTimer&&clearTimeout(e._redrawTimer),e._resolveResize&&(t=e._resolveResize),e._resolveResize=i,e._redrawTimer=setTimeout(function(){if(!e.layout||e.layout.width&&e.layout.height||os.isHidden(e)){i(e);return}delete e.layout.width,delete e.layout.height;var a=e.changed;e.autoplay=!0,xu.call("relayout",e,{autosize:!0}).then(function(){e.changed=a,e._resolveResize===i&&(delete e._resolveResize,i(e))})},100)});return t&&t(r),r};zo.previousPromises=function(e){if((e._promises||[]).length)return Promise.all(e._promises).then(function(){e._promises=[]})};zo.sendDataToCloud=function(e,t){e.emit("plotly_beforeexport");let r=new URL(t).origin;var i=zo.graphJson(e,!1,"object");i.version=P5t;var n=new URL(t);n.searchParams.set("origin",window.location.origin);var a=window.open(n.href,"_blank");if(!a){console.error("Unable to open Plotly Cloud (the popup may have been blocked)"),e.emit("plotly_exportfail");return}var o=function(s){s.origin===r&&s.data&&s.data.type==="CHART_AUTH_SUCCESS"&&(a.postMessage({type:"chart",chart:i},r),window.removeEventListener("message",o),e.emit("plotly_afterexport"))};return window.addEventListener("message",o),!1};var V5t=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],U5t=["year","month","dayMonth","dayMonthYear"];zo.supplyDefaults=function(e,t){var r=t&&t.skipUpdateCalc,i=e._fullLayout||{};if(i._skipDefaults){delete i._skipDefaults;return}var n=e._fullLayout={},a=e.layout||{},o=e._fullData||[],s=e._fullData=[],l=e.data||[],u=e.calcdata||[],f=e._context||{},c;e._transitionData||zo.createTransitionData(e),n._dfltTitle={plot:sb(e,"Click to enter Plot title"),subtitle:sb(e,"Click to enter Plot subtitle"),x:sb(e,"Click to enter X axis title"),y:sb(e,"Click to enter Y axis title"),colorbar:sb(e,"Click to enter Colorscale title"),annotation:sb(e,"new text")},n._traceWord=sb(e,"trace");var h=Fpe(e,V5t);if(i._initialAutoSizeIsDone){var d=i.width,p=i.height;zo.supplyLayoutGlobalDefaults(a,n,h),a.width||(n.width=d),a.height||(n.height=p),zo.sanitizeMargins(n)}else{zo.supplyLayoutGlobalDefaults(a,n,h);var v=!a.width||!a.height,y=n.autosize,m=f.autosizable,w=v&&(y||m);w?zo.plotAutoSize(e,a,n):v&&zo.sanitizeMargins(n),!y&&v&&(a.width=n.width,a.height=n.height)}n._d3locale=j5t(h,n.separators),n._extraFormat=Fpe(e,U5t),n._initialAutoSizeIsDone=!0,n._dataLength=l.length,n._modules=[],n._visibleModules=[],n._basePlotModules=[];var _=n._subplots=H5t(),b=n._splomAxes={x:{},y:{}},M=n._splomSubplots={};n._splomGridDflt={},n._scatterStackOpts={},n._firstScatter={},n._alignmentOpts={},n._colorAxes={},n._requestRangeslider={},n._traceUids=G5t(o,l),zo.supplyDataDefaults(l,s,a,n);var x=Object.keys(b.x),T=Object.keys(b.y);if(x.length>1&&T.length>1){for(xu.getComponentMethod("grid","sizeDefaults")(a,n),c=0;c15&&T.length>15&&n.shapes.length===0&&n.images.length===0,zo.linkSubplots(s,n,o,i),zo.cleanPlot(s,n,o,i);var C=!!(i._has&&i._has("cartesian")),k=!!(n._has&&n._has("cartesian")),D=C,F=k;D&&!F?i._bgLayer.remove():F&&!D&&(n._shouldCreateBgLayer=!0),i._zoomlayer&&!e._dragging&&B5t({_fullLayout:i}),W5t(s,n),Dpe(n,i),xu.getComponentMethod("colorscale","crossTraceDefaults")(s,n),n._preGUI||(n._preGUI={}),n._tracePreGUI||(n._tracePreGUI={});var P=n._tracePreGUI,I={},L;for(L in P)I[L]="old";for(c=0;c0){var f=1-2*a;o=Math.round(f*o),s=Math.round(f*s)}}var c=zo.layoutAttributes.width.min,h=zo.layoutAttributes.height.min;o1,p=!r.height&&Math.abs(i.height-s)>1;(p||d)&&(d&&(i.width=o),p&&(i.height=s)),t._initialAutoSize||(t._initialAutoSize={width:o,height:s}),zo.sanitizeMargins(i)};zo.supplyLayoutModuleDefaults=function(e,t,r,i){var n=xu.componentsRegistry,a=t._basePlotModules,o,s,l,u=xu.subplotsRegistry.cartesian;for(o in n)l=n[o],l.includeBasePlot&&l.includeBasePlot(e,t);a.length||a.push(u),t._has("cartesian")&&(xu.getComponentMethod("grid","contentDefaults")(e,t),u.finalizeSubplots(e,t));for(var f in t._subplots)t._subplots[f].sort(os.subplotSort);for(s=0;s1&&(r.l/=y,r.r/=y)}if(h){var m=(r.t+r.b)/h;m>1&&(r.t/=m,r.b/=m)}var w=r.xl!==void 0?r.xl:r.x,_=r.xr!==void 0?r.xr:r.x,b=r.yt!==void 0?r.yt:r.y,M=r.yb!==void 0?r.yb:r.y;d[t]={l:{val:w,size:r.l+v},r:{val:_,size:r.r+v},b:{val:M,size:r.b+v},t:{val:b,size:r.t+v}},p[t]=1}if(!i._replotting)return zo.doAutoMargin(e)}};function Y5t(e){if("_redrawFromAutoMarginCount"in e._fullLayout)return!1;var t=Cd.list(e,"",!0);for(var r in t)if(t[r].autoshift||t[r].shift)return!0;return!1}zo.doAutoMargin=function(e){var t=e._fullLayout,r=t.width,i=t.height;t._size||(t._size={}),zpe(t);var n=t._size,a=t.margin,o={t:0,b:0,l:0,r:0},s=os.extendFlat({},n),l=a.l,u=a.r,f=a.t,c=a.b,h=t._pushmargin,d=t._pushmarginIds,p=t.minreducedwidth,v=t.minreducedheight;if(a.autoexpand!==!1){for(var y in h)d[y]||delete h[y];var m=e._fullLayout._reservedMargin;for(var w in m)for(var _ in m[w]){var b=m[w][_];o[_]=Math.max(o[_],b)}h.base={l:{val:0,size:l},r:{val:1,size:u},t:{val:1,size:f},b:{val:0,size:c}};for(var M in o){var x=0;for(var T in h)T!=="base"&&w6(h[T][M].size)&&(x=h[T][M].size>x?h[T][M].size:x);var A=Math.max(0,a[M]-x);o[M]=Math.max(0,o[M]-A)}for(var g in h){var E=h[g].l||{},S=h[g].b||{},C=E.val,k=E.size,D=S.val,F=S.size,P=r-o.r-o.l,I=i-o.t-o.b;for(var L in h){if(w6(k)&&h[L].r){var z=h[L].r.val,B=h[L].r.size;if(z>C){var O=(k*z+(B-P)*C)/(z-C),W=(B*(1-C)+(k-P)*(1-z))/(z-C);O+W>l+u&&(l=O,u=W)}}if(w6(F)&&h[L].t){var X=h[L].t.val,Z=h[L].t.size;if(X>D){var H=(F*X+(Z-I)*D)/(X-D),q=(Z*(1-D)+(F-I)*(1-X))/(X-D);H+q>c+f&&(c=H,f=q)}}}}}var Q=os.constrain(r-a.l-a.r,Ipe,p),N=os.constrain(i-a.t-a.b,Rpe,v),U=Math.max(0,r-Q),J=Math.max(0,i-N);if(U){var j=(l+u)/U;j>1&&(l/=j,u/=j)}if(J){var $=(c+f)/J;$>1&&(c/=$,f/=$)}if(n.l=Math.round(l)+o.l,n.r=Math.round(u)+o.r,n.t=Math.round(f)+o.t,n.b=Math.round(c)+o.b,n.p=Math.round(a.pad),n.w=Math.round(r)-n.l-n.r,n.h=Math.round(i)-n.t-n.b,!t._replotting&&(zo.didMarginChange(s,n)||Y5t(e))){"_redrawFromAutoMarginCount"in t?t._redrawFromAutoMarginCount++:t._redrawFromAutoMarginCount=1;var ie=3*(1+Object.keys(d).length);if(t._redrawFromAutoMarginCount1)return!0}return!1};zo.graphJson=function(e,t=!1,r="json",i=!1,n=!1){(i&&t&&!e._fullData||i&&!t&&!e._fullLayout)&&zo.supplyDefaults(e);var a=i?e._fullData:e.data,o=i?e._fullLayout:e.layout,s=(e._transitionData||{})._frames;function l(c,h){if(typeof c=="function")return h?"_function_":null;if(os.isPlainObject(c)){var d={};return Object.keys(c).sort().forEach(function(m){if(["_","["].indexOf(m.charAt(0))===-1){if(typeof c[m]=="function"){h&&(d[m]="_function");return}d[m]=l(c[m],h)}}),d}var p=Array.isArray(c),v=os.isTypedArray(c);if((p||v)&&c.dtype&&c.shape){var y=c.bdata;return l({dtype:c.dtype,shape:c.shape,bdata:os.isArrayBuffer(y)?L5t.encode(y):y},h)}return p?c.map(function(m){return l(m,h)}):v?os.simpleMap(c,os.identity):os.isJSDate(c)?os.ms2DateTimeLocal(+c):c}var u={data:(a||[]).map(function(c){var h=l(c);return t&&delete h.fit,h})};if(!t&&(u.layout=l(o),i)){var f=o._size;u.layout.computed={margin:{b:f.b,l:f.l,r:f.r,t:f.t}}}return s&&(u.frames=l(s)),n&&(u.config=l(e._context,!0)),r==="object"?u:JSON.stringify(u)};zo.modifyFrames=function(e,t){var r,i,n,a=e._transitionData._frames,o=e._transitionData._frameHash;for(r=0;r0&&(e._transitioningWithDuration=!0),e._transitionData._interruptCallbacks.push(function(){i=!0}),r.redraw&&e._transitionData._interruptCallbacks.push(function(){return xu.call("redraw",e)}),e._transitionData._interruptCallbacks.push(function(){e.emit("plotly_transitioninterrupted",[])});var h=0,d=0;function p(){return h++,function(){d++,!i&&d===h&&s(c)}}r.runFn(p),setTimeout(p())})}function s(c){if(e._transitionData)return a(e._transitionData._interruptCallbacks),Promise.resolve().then(function(){if(r.redraw)return xu.call("redraw",e)}).then(function(){e._transitioning=!1,e._transitioningWithDuration=!1,e.emit("plotly_transitioned",[])}).then(c)}function l(){if(e._transitionData)return e._transitioning=!1,n(e._transitionData._interruptCallbacks)}var u=[zo.previousPromises,l,r.prepareFn,zo.rehover,zo.reselect,o],f=os.syncOrAsync(u,e);return(!f||!f.then)&&(f=Promise.resolve()),f.then(function(){return e})}zo.doCalcdata=function(e,t){var r=Cd.list(e),i=e._fullData,n=e._fullLayout,a,o,s,l=new Array(i.length),u=(e.calcdata||[]).slice();for(e.calcdata=l,n._numBoxes=0,n._numViolins=0,n._violinScaleGroupStats={},e._hmpixcount=0,e._hmlumcount=0,n._piecolormap={},n._sunburstcolormap={},n._treemapcolormap={},n._iciclecolormap={},n._funnelareacolormap={},s=0;sOpe,svgAttrs:()=>eTt,xlink:()=>Npe,xmlns:()=>Q5t});var Q5t,Ope,Npe,eTt,Rp=ps(()=>{"use strict";Q5t="http://www.w3.org/2000/xmlns/",Ope="http://www.w3.org/2000/svg",Npe="http://www.w3.org/1999/xlink",eTt={xmlns:Ope,"xmlns:xlink":Npe}});var Wc={};Fl(Wc,{CAP_SHIFT:()=>aTt,FROM_BL:()=>tTt,FROM_BR:()=>iTt,FROM_TL:()=>rTt,LINE_SPACING:()=>nTt,MID_SHIFT:()=>oTt,OPPOSITE_SIDE:()=>sTt});var tTt,rTt,iTt,nTt,aTt,oTt,sTt,$c=ps(()=>{"use strict";tTt={left:0,center:.5,right:1,bottom:0,middle:.5,top:1},rTt={left:0,center:.5,right:1,bottom:1,middle:.5,top:0},iTt={left:1,center:.5,right:0,bottom:0,middle:.5,top:1},nTt=1.3,aTt=.7,oTt=.35,sTt={left:"right",right:"left",top:"bottom",bottom:"top"}});var Du=K(N0=>{"use strict";var mc=No(),Bp=St(),lTt=Bp.strTranslate,LG=(Rp(),or(Ip)),uTt=($c(),or(Wc)).LINE_SPACING,fTt=/([^$]*)([$]+[^$]*[$]+)([^$]*)/,IG=e=>e?e.match(fTt):null;N0.matchTex=IG;var cTt=e=>{var t=IG(e);return!!t&&!t[1]&&!t[3]};N0.isPureTex=cTt;function Wpe(e,t,r,i,n,a,o,s){var l=i.select("g"),u=l.node().getBoundingClientRect(),f=u.width,c=u.height,h=o===void 0?f:o,d=s===void 0?c:s;(f>h||c>d)&&(i.style("overflow","hidden"),u=i.node().getBoundingClientRect(),f=u.width,c=u.height);var p=+e.attr("x"),v=+e.attr("y"),y=a||e.node().getBoundingClientRect().height,m=-y/4;t[0]==="y"?r.attr({transform:"rotate("+[-90,p,v]+")"+lTt(-f/2,m-c/2)}):t[0]==="l"?v=m-c/2:t[0]==="a"&&t.indexOf("atitle")!==0?(p=0,v=m):(p=p-f*(n==="middle"?.5:n==="end"?1:0),v=v+m-c/2),i.attr({x:p,y:v})}function hTt(e){e.selectAll("a").each(function(){var t=mc.select(this);["href","xlink:href"].forEach(function(r){var i=t.attr(r);i&&t.attr(r,qG(i)||null)})})}N0.convertToTspans=function(e,t,r){var i=e.text(),n=!e.attr("data-notex")&&t&&t._context.typesetMath&&IG(i);n&&!mTt()&&(n=null);var a=mc.select(e.node().parentNode);if(a.empty())return;var o=e.attr("class")?e.attr("class").split(" ")[0]:"text";o+="-math",a.selectAll("svg."+o).remove(),a.selectAll("g."+o+"-group").remove(),e.style("display",null).attr({"data-unformatted":i,"data-math":"N"});function s(){a.empty()||(o=e.attr("class")+"-math",a.select("svg."+o).remove()),e.text("").style("white-space","pre");var l=STt(e.node(),i);l&&e.style("pointer-events","all"),N0.positionText(e),r&&r.call(e)}return n?(t&&t._promises||[]).push(new Promise(function(l){e.style("display","none");var u=parseInt(e.node().style.fontSize,10),f={fontSize:u},c=e.attr("text-anchor");yTt(n[2],f,function(h,d,p){a.selectAll("svg."+o).remove(),a.selectAll("g."+o+"-group").remove();var v=h&&h.select("svg");if(!v||!v.node()){s(),l();return}e.style("display","none");var y=a.append("g").classed(o+"-group",!0).attr({"pointer-events":"none","data-unformatted":i,"data-math":"Y"});y.node().appendChild(v.node()),hTt(v),d&&d.node()&&v.node().insertBefore(d.node().cloneNode(!0),v.node().firstChild);var m=p.width,w=p.height;v.attr({class:o,height:w,preserveAspectRatio:"xMinYMin meet"}).style({overflow:"visible","pointer-events":"none","font-size":f.fontSize+"px"});var _=e.node().style.fill||"black",b=v.select("g");b.attr({fill:_,stroke:_}),Wpe(e,o,y,v,c,u,m,w),r&&r.call(e,y),l(y)})})):s(),e};N0.repositionMathGroup=function(e){if(!e.empty()){var t=(e.attr("class")?e.attr("class").split(" ")[0]:"text")+"-math",r=mc.select(e.node().parentNode),i=r.select("g."+t+"-group"),n=i.select("svg."+t);if(!(i.empty()||n.empty())){var a=e.attr("text-anchor"),o=parseInt(e.node().style.fontSize,10);Wpe(e,t,i,n,a,o)}}};N0.getMathOrTextNode=function(e){var t=e.node();if(!t)return null;var r=(e.attr("class")?e.attr("class").split(" ")[0]:"text")+"-math",i=mc.select(t.parentNode).select("g."+r+"-group");return i.empty()?t:i.node()};var dTt=/(<|<|<)/g,pTt=/(>|>|>)/g;function vTt(e){return e.replace(dTt,"\\lt ").replace(pTt,"\\gt ")}var PG=null,$pe=()=>typeof MathJax!="undefined"&&MathJax.version?parseInt(MathJax.version.split(".")[0]):null,Vpe=!1,Upe=!1;function mTt(){let e=$pe();return e===3||e===4?!0:(e===null?Vpe||(Vpe=!0,Bp.warn("MathJax is not loaded. Math equations will not be rendered.")):Upe||(Upe=!0,Bp.warn("Unsupported MathJax version:",MathJax.version)),!1)}function yTt(e,t,r){let i=$pe();var n;let a=function(){if(!PG){let u=MathJax._.output.svg_ts.SVG,f=Bp.extendFlat({},MathJax.config.svg,{fontCache:"local"});i===4&&(f.linebreaks=Bp.extendFlat({},f.linebreaks,{inline:!1})),PG=MathJax._.mathjax.mathjax.document(document,Bp.extendFlat({},MathJax.config.options,{InputJax:MathJax.startup.input,OutputJax:new u(f)}))}let s="math-output-"+Bp.randstr({},64);n=mc.select("body").append("div").attr({id:s}).style({visibility:"hidden",position:"absolute","font-size":t.fontSize+"px"});let l=vTt(e).replace(/^\$+|\$+$/g,"");return MathJax._.mathjax.mathjax.handleRetriesFor(function(){return PG.convert(l,{display:!1})}).then(function(u){n.node().appendChild(u)})},o=function(){let s=n.select(".MathJax"),l=!s.empty()&&n.select("svg").node();if(!l)Bp.log("There was an error in the tex syntax.",e),r();else{let u=l.getBoundingClientRect(),f=s.select("defs");r(s,f,u)}n.remove()};Promise.resolve().then(a).then(o).catch(s=>{Bp.log("MathJax typesetting failed.",e,s),n&&n.remove(),r()})}var Ype={sup:"font-size:70%",sub:"font-size:70%",s:"text-decoration:line-through",u:"text-decoration:underline",b:"font-weight:bold",i:"font-style:italic",a:"cursor:pointer",span:"",em:"font-style:italic;font-weight:bold"},gTt={sub:"0.3em",sup:"-0.6em"},xTt={sub:"-0.21em",sup:"0.42em"},Gpe="\u200B",Hpe=["http:","https:","mailto:","",void 0,":"],Xpe=N0.NEWLINES=/(\r\n?|\n)/g,RG=/(<[^<>]*>)/,BG=/<(\/?)([^ >]*)(\s+(.*))?>/i,bTt=//i;N0.BR_TAG_ALL=//gi;var Zpe=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,Kpe=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,Jpe=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,_Tt=/(^|[\s"'])popup\s*=\s*("([\w=,]*)"|'([\w=,]*)')/i;function lb(e,t){if(!e)return null;var r=e.match(t),i=r&&(r[3]||r[4]);return i&&WF(i)}var wTt=/(^|;)\s*color:/;N0.plainText=function(e,t){t=t||{};for(var r=t.len!==void 0&&t.len!==-1?t.len:1/0,i=t.allowedTags!==void 0?t.allowedTags:["br"],n="...",a=n.length,o=e.split(RG),s=[],l="",u=0,f=0;fa?s.push(c.slice(0,Math.max(0,v-a))+n):s.push(c.slice(0,v));break}l=""}}return s.join("")};var ATt={mu:"\u03BC",amp:"&",lt:"<",gt:">",nbsp:"\xA0",times:"\xD7",plusmn:"\xB1",deg:"\xB0"},TTt=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function WF(e){return e.replace(TTt,function(t,r){var i;return r.charAt(0)==="#"?i=MTt(r.charAt(1)==="x"?parseInt(r.slice(2),16):parseInt(r.slice(1),10)):i=ATt[r],i||t})}N0.convertEntities=WF;function MTt(e){if(!(e>1114111)){var t=String.fromCodePoint;if(t)return t(e);var r=String.fromCharCode;return e<=65535?r(e):r((e>>10)+55232,e%1024+56320)}}function STt(e,t){t=t.replace(Xpe," ");var r=!1,i=[],n,a=-1;function o(){a++;var x=document.createElementNS(LG.svg,"tspan");mc.select(x).attr({class:"line",dy:a*uTt+"em"}),e.appendChild(x),n=x;var T=i;if(i=[{node:x}],T.length>1)for(var A=1;A.",t);return}var T=i.pop();x!==T.type&&Bp.log("Start tag <"+T.type+"> doesnt match end tag <"+x+">. Pretending it did match.",t),n=i[i.length-1].node}var f=bTt.test(t);f?o():(n=e,i=[{node:e}]);for(var c=t.split(RG),h=0;h{"use strict";var ETt=No(),T6=Hs(),$F=St(),ub=wo(),kTt=Zx().isValid;function CTt(e,t,r){var i=t?$F.nestedProperty(e,t).get()||{}:e,n=i[r||"color"];n&&n._inputArray&&(n=n._inputArray);var a=!1;if($F.isArrayOrTypedArray(n)){for(var o=0;o=0;i--,n++){var a=e[i];r[n]=[1-a[0],a[1]]}return r}function ive(e,t){t=t||{};for(var r=e.domain,i=e.range,n=i.length,a=new Array(n),o=0;o{"use strict";var ave=(rG(),or(tG)),FTt=ave.FORMAT_LINK,LTt=ave.DATE_FORMAT_LINK;function PTt(e,t){return{valType:"string",dflt:"",editType:"none",description:(t?OG:ove)("hover text",e)+["By default the values are formatted using "+(t?"generic number format":"`"+e+"axis.hoverformat`")+"."].join(" ")}}function OG(e,t){return["Sets the "+e+" formatting rule"+(t?" for `"+t+"`":""),"using d3 formatting mini-languages","which are very similar to those in Python. For numbers, see: "+FTt+"."].join(" ")}function ove(e,t){return OG(e,t)+[" And for dates see: "+LTt+".","We add two items to d3's date formatter:","*%h* for half of the year as a decimal number as well as","*%{n}f* for fractional seconds","with n digits. For example, *2016-10-13 09:15:23.456* with tickformat","*%H~%M~%S.%2f* would display *09~15~23.46*"].join(" ")}sve.exports={axisHoverFormat:PTt,descriptionOnlyNumbers:OG,descriptionWithDates:ove}});var Ph=K((vNr,Tve)=>{"use strict";var lve=lf(),Cw=Gc(),Ave=gh().dash,VG=Os().extendFlat,uve=cu().templatedArray,pNr=gu().templateFormatStringDescription,fve=zf().descriptionWithDates,zTt=(Il(),or(Bl)).ONEDAY,H1=(jc(),or(Hc)),ITt=H1.HOUR_PATTERN,RTt=H1.WEEKDAY_PATTERN,NG={valType:"enumerated",values:["auto","linear","array"],editType:"ticks",impliedEdits:{tick0:void 0,dtick:void 0}},BTt=VG({},NG,{values:NG.values.slice().concat(["sync"])});function cve(e){return{valType:"integer",min:0,dflt:e?5:0,editType:"ticks"}}var hve={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},dve={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},pve={valType:"data_array",editType:"ticks"},vve={valType:"enumerated",values:["outside","inside",""],editType:"ticks"};function mve(e){var t={valType:"number",min:0,editType:"ticks"};return e||(t.dflt=5),t}function yve(e){var t={valType:"number",min:0,editType:"ticks"};return e||(t.dflt=1),t}var gve={valType:"color",dflt:Cw.defaultLine,editType:"ticks"},xve={valType:"color",dflt:Cw.lightLine,editType:"ticks"};function bve(e){var t={valType:"number",min:0,editType:"ticks"};return e||(t.dflt=1),t}var _ve=VG({},Ave,{editType:"ticks"}),wve={valType:"boolean",editType:"ticks"};Tve.exports={visible:{valType:"boolean",editType:"plot"},color:{valType:"color",dflt:Cw.defaultLine,editType:"ticks"},title:{text:{valType:"string",editType:"ticks"},font:lve({editType:"ticks",description:"Sets this axis' title font."}),standoff:{valType:"number",min:0,editType:"ticks"},editType:"ticks"},type:{valType:"enumerated",values:["-","linear","log","date","category","multicategory"],dflt:"-",editType:"calc",_noTemplating:!0},autotypenumbers:{valType:"enumerated",values:["convert types","strict"],dflt:"convert types",editType:"calc"},autorange:{valType:"enumerated",values:[!0,!1,"reversed","min reversed","max reversed","min","max"],dflt:!0,editType:"axrange",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},autorangeoptions:{minallowed:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},maxallowed:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},clipmin:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},clipmax:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},include:{valType:"any",arrayOk:!0,editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},editType:"plot"},rangemode:{valType:"enumerated",values:["normal","tozero","nonnegative"],dflt:"normal",editType:"plot"},range:{valType:"info_array",items:[{valType:"any",editType:"axrange",impliedEdits:{"^autorange":!1},anim:!0},{valType:"any",editType:"axrange",impliedEdits:{"^autorange":!1},anim:!0}],editType:"axrange",impliedEdits:{autorange:!1},anim:!0},minallowed:{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},maxallowed:{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},fixedrange:{valType:"boolean",dflt:!1,editType:"calc"},modebardisable:{valType:"flaglist",flags:["autoscale","zoominout"],extras:["none"],dflt:"none",editType:"modebar"},insiderange:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},scaleanchor:{valType:"enumerated",values:[H1.idRegex.x.toString(),H1.idRegex.y.toString(),!1],editType:"plot"},scaleratio:{valType:"number",min:0,dflt:1,editType:"plot"},constrain:{valType:"enumerated",values:["range","domain"],editType:"plot"},constraintoward:{valType:"enumerated",values:["left","center","right","top","middle","bottom"],editType:"plot"},matches:{valType:"enumerated",values:[H1.idRegex.x.toString(),H1.idRegex.y.toString()],editType:"calc"},rangebreaks:uve("rangebreak",{enabled:{valType:"boolean",dflt:!0,editType:"calc"},bounds:{valType:"info_array",items:[{valType:"any",editType:"calc"},{valType:"any",editType:"calc"}],editType:"calc"},pattern:{valType:"enumerated",values:[RTt,ITt,""],editType:"calc"},values:{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"any",editType:"calc"}},dvalue:{valType:"number",editType:"calc",min:0,dflt:zTt},editType:"calc"}),tickmode:BTt,nticks:cve(),tick0:hve,dtick:dve,ticklabelstep:{valType:"integer",min:1,dflt:1,editType:"ticks"},tickvals:pve,ticktext:{valType:"data_array",editType:"ticks"},ticks:vve,tickson:{valType:"enumerated",values:["labels","boundaries"],dflt:"labels",editType:"ticks"},ticklabelmode:{valType:"enumerated",values:["instant","period"],dflt:"instant",editType:"ticks"},ticklabelposition:{valType:"enumerated",values:["outside","inside","outside top","inside top","outside left","inside left","outside right","inside right","outside bottom","inside bottom"],dflt:"outside",editType:"calc"},ticklabeloverflow:{valType:"enumerated",values:["allow","hide past div","hide past domain"],editType:"calc"},ticklabelshift:{valType:"integer",dflt:0,editType:"ticks"},ticklabelstandoff:{valType:"integer",dflt:0,editType:"ticks"},ticklabelindex:{valType:"integer",arrayOk:!0,editType:"calc"},mirror:{valType:"enumerated",values:[!0,"ticks",!1,"all","allticks"],dflt:!1,editType:"ticks+layoutstyle"},ticklen:mve(),tickwidth:yve(),tickcolor:gve,showticklabels:{valType:"boolean",dflt:!0,editType:"ticks"},labelalias:{valType:"any",dflt:!1,editType:"ticks"},automargin:{valType:"flaglist",flags:["height","width","left","right","top","bottom"],extras:[!0,!1],dflt:!1,editType:"ticks"},showspikes:{valType:"boolean",dflt:!1,editType:"modebar"},spikecolor:{valType:"color",dflt:null,editType:"none"},spikethickness:{valType:"number",dflt:3,editType:"none"},spikedash:VG({},Ave,{dflt:"dash",editType:"none"}),spikemode:{valType:"flaglist",flags:["toaxis","across","marker"],dflt:"toaxis",editType:"none"},spikesnap:{valType:"enumerated",values:["data","cursor","hovered data"],dflt:"hovered data",editType:"none"},tickfont:lve({editType:"ticks"}),tickangle:{valType:"angle",dflt:"auto",editType:"ticks"},autotickangles:{valType:"info_array",freeLength:!0,items:{valType:"angle"},dflt:[0,30,90],editType:"ticks"},tickprefix:{valType:"string",dflt:"",editType:"ticks"},showtickprefix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},ticksuffix:{valType:"string",dflt:"",editType:"ticks"},showticksuffix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},showexponent:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},exponentformat:{valType:"enumerated",values:["none","e","E","power","SI","B","SI extended"],dflt:"B",editType:"ticks"},minexponent:{valType:"number",dflt:3,min:0,editType:"ticks"},separatethousands:{valType:"boolean",dflt:!1,editType:"ticks"},tickformat:{valType:"string",dflt:"",editType:"ticks",description:fve("tick label")},tickformatstops:uve("tickformatstop",{enabled:{valType:"boolean",dflt:!0,editType:"ticks"},dtickrange:{valType:"info_array",items:[{valType:"any",editType:"ticks"},{valType:"any",editType:"ticks"}],editType:"ticks"},value:{valType:"string",dflt:"",editType:"ticks"},editType:"ticks"}),hoverformat:{valType:"string",dflt:"",editType:"none",description:fve("hover text")},unifiedhovertitle:{text:{valType:"string",dflt:"",editType:"none"},editType:"none"},showline:{valType:"boolean",dflt:!1,editType:"ticks+layoutstyle"},linecolor:{valType:"color",dflt:Cw.defaultLine,editType:"layoutstyle"},linewidth:{valType:"number",min:0,dflt:1,editType:"ticks+layoutstyle"},showgrid:wve,gridcolor:xve,gridwidth:bve(),griddash:_ve,zeroline:{valType:"boolean",editType:"ticks"},zerolinecolor:{valType:"color",dflt:Cw.defaultLine,editType:"ticks"},zerolinelayer:{valType:"enumerated",values:["above traces","below traces"],dflt:"below traces",editType:"plot"},zerolinewidth:{valType:"number",dflt:1,editType:"ticks"},showdividers:{valType:"boolean",dflt:!0,editType:"ticks"},dividercolor:{valType:"color",dflt:Cw.defaultLine,editType:"ticks"},dividerwidth:{valType:"number",dflt:1,editType:"ticks"},anchor:{valType:"enumerated",values:["free",H1.idRegex.x.toString(),H1.idRegex.y.toString()],editType:"plot"},side:{valType:"enumerated",values:["top","bottom","left","right"],editType:"plot"},overlaying:{valType:"enumerated",values:["free",H1.idRegex.x.toString(),H1.idRegex.y.toString()],editType:"plot"},minor:{tickmode:NG,nticks:cve("minor"),tick0:hve,dtick:dve,tickvals:pve,ticks:vve,ticklen:mve("minor"),tickwidth:yve("minor"),tickcolor:gve,gridcolor:xve,gridwidth:bve("minor"),griddash:_ve,showgrid:wve,editType:"ticks"},minorloglabels:{valType:"enumerated",values:["small digits","complete","none"],dflt:"small digits",editType:"calc"},layer:{valType:"enumerated",values:["above traces","below traces"],dflt:"above traces",editType:"plot"},domain:{valType:"info_array",items:[{valType:"number",min:0,max:1,editType:"plot"},{valType:"number",min:0,max:1,editType:"plot"}],dflt:[0,1],editType:"plot"},position:{valType:"number",min:0,max:1,dflt:0,editType:"plot"},autoshift:{valType:"boolean",dflt:!1,editType:"plot"},shift:{valType:"number",editType:"plot"},categoryorder:{valType:"enumerated",values:["trace","category ascending","category descending","array","total ascending","total descending","min ascending","min descending","max ascending","max descending","sum ascending","sum descending","mean ascending","mean descending","geometric mean ascending","geometric mean descending","median ascending","median descending"],dflt:"trace",editType:"calc"},categoryarray:{valType:"data_array",editType:"calc"},uirevision:{valType:"any",editType:"none"},editType:"calc"}});var YF=K((mNr,Sve)=>{"use strict";var If=Ph(),Mve=lf(),UG=Os().extendFlat,qTt=Ef().overrideAll;Sve.exports=qTt({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:If.linecolor,outlinewidth:If.linewidth,bordercolor:If.linecolor,borderwidth:{valType:"number",min:0,dflt:0},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},tickmode:If.minor.tickmode,nticks:If.nticks,tick0:If.tick0,dtick:UG({},If.dtick,{}),tickvals:If.tickvals,ticktext:If.ticktext,ticks:UG({},If.ticks,{dflt:""}),ticklabeloverflow:UG({},If.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:If.ticklen,tickwidth:If.tickwidth,tickcolor:If.tickcolor,ticklabelstep:If.ticklabelstep,showticklabels:If.showticklabels,labelalias:If.labelalias,tickfont:Mve({description:"Sets the color bar's tick label font"}),tickangle:If.tickangle,tickformat:If.tickformat,tickformatstops:If.tickformatstops,tickprefix:If.tickprefix,showtickprefix:If.showtickprefix,ticksuffix:If.ticksuffix,showticksuffix:If.showticksuffix,separatethousands:If.separatethousands,exponentformat:If.exponentformat,minexponent:If.minexponent,showexponent:If.showexponent,title:{text:{valType:"string"},font:Mve({description:"Sets this color bar's title font."}),side:{valType:"enumerated",values:["right","top","bottom"]}}},"colorbars","from-root")});var Wu=K((gNr,kve)=>{"use strict";var OTt=YF(),NTt=(hw(),or(c6)).counter,VTt=(eb(),or(Qx)).default,Eve=Zx().scales,yNr=VTt(Eve);function XF(e){return"`"+e+"`"}kve.exports=function(t,r){t=t||"",r=r||{};var i=r.cLetter||"c",n="onlyIfNumerical"in r?r.onlyIfNumerical:!!t,a="noScale"in r?r.noScale:t==="marker.line",o="showScaleDflt"in r?r.showScaleDflt:i==="z",s=typeof r.colorscaleDflt=="string"?Eve[r.colorscaleDflt]:null,l=r.editTypeOverride||"",u=t?t+".":"",f,c;"colorAttr"in r?(f=r.colorAttr,c=r.colorAttr):(f={z:"z",c:"color"}[i],c="in "+XF(u+f));var h=n?" Has an effect only if "+c+" is set to a numerical array.":"",d=i+"auto",p=i+"min",v=i+"max",y=i+"mid",m=XF(u+d),w=XF(u+p),_=XF(u+v),b=w+" and "+_,M={};M[p]=M[v]=void 0;var x={};x[d]=!1;var T={};return f==="color"&&(T.color={valType:"color",arrayOk:!0,editType:l||"style"},r.anim&&(T.color.anim=!0)),T[d]={valType:"boolean",dflt:!0,editType:"calc",impliedEdits:M},T[p]={valType:"number",dflt:null,editType:l||"plot",impliedEdits:x},T[v]={valType:"number",dflt:null,editType:l||"plot",impliedEdits:x},T[y]={valType:"number",dflt:null,editType:"calc",impliedEdits:M},T.colorscale={valType:"colorscale",editType:"calc",dflt:s,impliedEdits:{autocolorscale:!1}},T.autocolorscale={valType:"boolean",dflt:r.autoColorDflt!==!1,editType:"calc",impliedEdits:{colorscale:void 0}},T.reversescale={valType:"boolean",dflt:!1,editType:"plot"},a||(T.showscale={valType:"boolean",dflt:o,editType:"calc"},T.colorbar=OTt),r.noColorAxis||(T.coloraxis={valType:"subplotid",regex:NTt("coloraxis"),dflt:null,editType:"calc"}),T}});var HG=K((xNr,Cve)=>{"use strict";var UTt=Os().extendFlat,GTt=Wu(),GG=Zx().scales;Cve.exports={editType:"calc",colorscale:{editType:"calc",sequential:{valType:"colorscale",dflt:GG.Reds,editType:"calc"},sequentialminus:{valType:"colorscale",dflt:GG.Blues,editType:"calc"},diverging:{valType:"colorscale",dflt:GG.RdBu,editType:"calc"}},coloraxis:UTt({_isSubplotObj:!0,editType:"calc"},GTt("",{colorAttr:"corresponding trace color array(s)",noColorAxis:!0,showScaleDflt:!0}))}});var jG=K((bNr,Dve)=>{"use strict";var HTt=St();Dve.exports=function(t){return HTt.isPlainObject(t.colorbar)}});var YG=K($G=>{"use strict";var WG=Hs(),Fve=St(),Lve=(Il(),or(Bl)),jTt=Lve.ONEDAY,WTt=Lve.ONEWEEK;$G.dtick=function(e,t){var r=t==="log",i=t==="date",n=t==="category",a=i?jTt:1;if(!e)return a;if(WG(e))return e=Number(e),e<=0?a:n?Math.max(1,Math.round(e)):i?Math.max(.1,e):e;if(typeof e!="string"||!(i||r))return a;var o=e.charAt(0),s=e.slice(1);return s=WG(s)?Number(s):0,s<=0||!(i&&o==="M"&&s===Math.round(s)||r&&o==="L"||r&&o==="D"&&(s===1||s===2))?a:e};$G.tick0=function(e,t,r,i){if(t==="date")return Fve.cleanDate(e,Fve.dateTick0(r,i%WTt===0?1:0));if(!(i==="D1"||i==="D2"))return WG(e)?Number(e):0}});var fb=K((wNr,zve)=>{"use strict";var Pve=YG(),$Tt=St().isArrayOrTypedArray,YTt=Yh().isTypedArraySpec,XTt=Yh().decodeTypedArraySpec;zve.exports=function(t,r,i,n,a={}){var o=a.isMinor,s=o?t.minor||{}:t,l=o?r.minor:r,u=o?"minor.":"";function f(b){var M=s[b];return YTt(M)&&(M=XTt(M)),M!==void 0?M:(l._template||{})[b]}var c=f("tick0"),h=f("dtick"),d=f("tickvals"),p=f("overlaying"),v=n==="category"||n==="multicategory",y;$Tt(d)?y="array":h?y="linear":p&&!v?y="sync":y="auto";var m=i(u+"tickmode",y);if(m==="auto"||m==="sync")i(u+"nticks");else if(m==="linear"){var w=l.dtick=Pve.dtick(h,n);l.tick0=Pve.tick0(c,n,r.calendar,w)}else if(n!=="multicategory"){var _=i(u+"tickvals");_===void 0?l.tickmode="auto":o||i("ticktext")}}});var Dw=K((ANr,Rve)=>{"use strict";var XG=St(),Ive=Ph();Rve.exports=function(t,r,i,n){var a=n.isMinor,o=a?t.minor||{}:t,s=a?r.minor:r,l=a?Ive.minor:Ive,u=a?"minor.":"",f=XG.coerce2(o,s,l,"ticklen",a?(r.ticklen||5)*.6:void 0),c=XG.coerce2(o,s,l,"tickwidth",a?r.tickwidth||1:void 0),h=XG.coerce2(o,s,l,"tickcolor",(a?r.tickcolor:void 0)||s.color),d=i(u+"ticks",!a&&n.outerTicks||f||c||h?"outside":"");d||(delete s.ticklen,delete s.tickwidth,delete s.tickcolor)}});var ZG=K((TNr,Bve)=>{"use strict";Bve.exports=function(t){var r=["showexponent","showtickprefix","showticksuffix"],i=r.filter(function(a){return t[a]!==void 0}),n=function(a){return t[a]===t[i[0]]};if(i.every(n)||i.length===1)return t[i[0]]}});var A0=K((MNr,qve)=>{"use strict";var ZF=St(),ZTt=cu();qve.exports=function(t,r,i){var n=i.name,a=i.inclusionAttr||"visible",o=r[n],s=ZF.isArrayOrTypedArray(t[n])?t[n]:[],l=r[n]=[],u=ZTt.arrayTemplater(r,n,a),f,c;for(f=0;f{"use strict";var KG=St(),KTt=wo().contrast,Ove=Ph(),JTt=ZG(),QTt=A0();Nve.exports=function(t,r,i,n,a){a||(a={});var o=i("labelalias");KG.isPlainObject(o)||delete r.labelalias;var s=JTt(t),l=i("showticklabels");if(l){a.noTicklabelshift||i("ticklabelshift"),a.noTicklabelstandoff||i("ticklabelstandoff");var u=a.font||{},f=r.color,c=r.ticklabelposition||"",h=c.indexOf("inside")!==-1?KTt(a.bgColor):f&&f!==Ove.color.dflt?f:u.color;if(KG.coerceFont(i,"tickfont",u,{overrideDflt:{color:h}}),!a.noTicklabelstep&&n!=="multicategory"&&n!=="log"&&i("ticklabelstep"),!a.noAng){var d=i("tickangle");!a.noAutotickangles&&d==="auto"&&i("autotickangles")}if(n!=="category"){var p=i("tickformat");QTt(t,r,{name:"tickformatstops",inclusionAttr:"enabled",handleItemDefaults:e6t}),r.tickformatstops.length||delete r.tickformatstops,!a.noExp&&!p&&n!=="date"&&(i("showexponent",s),i("exponentformat"),i("minexponent"),i("separatethousands"))}!a.noMinorloglabels&&n==="log"&&i("minorloglabels")}};function e6t(e,t){function r(n,a){return KG.coerce(e,t,Ove.tickformatstops,n,a)}var i=r("enabled");i&&(r("dtickrange"),r("value"))}});var qg=K((ENr,Vve)=>{"use strict";var t6t=ZG();Vve.exports=function(t,r,i,n,a){a||(a={});var o=a.tickSuffixDflt,s=t6t(t),l=i("tickprefix");l&&i("showtickprefix",s);var u=i("ticksuffix",o);u&&i("showticksuffix",s)}});var JG=K((kNr,Uve)=>{"use strict";var Og=St(),r6t=cu(),i6t=fb(),n6t=Dw(),a6t=Bg(),o6t=qg(),s6t=YF();Uve.exports=function(t,r,i){var n=r6t.newContainer(r,"colorbar"),a=t.colorbar||{};function o(S,C){return Og.coerce(a,n,s6t,S,C)}var s=i.margin||{t:0,b:0,l:0,r:0},l=i.width-s.l-s.r,u=i.height-s.t-s.b,f=o("orientation"),c=f==="v",h=o("thicknessmode");o("thickness",h==="fraction"?30/(c?l:u):30);var d=o("lenmode");o("len",d==="fraction"?1:c?u:l);var p=o("yref"),v=o("xref"),y=p==="paper",m=v==="paper",w,_,b,M="left";c?(b="middle",M=m?"left":"right",w=m?1.02:1,_=.5):(b=y?"bottom":"top",M="center",w=.5,_=y?1.02:1),Og.coerce(a,n,{x:{valType:"number",min:m?-2:0,max:m?3:1,dflt:w}},"x"),Og.coerce(a,n,{y:{valType:"number",min:y?-2:0,max:y?3:1,dflt:_}},"y"),o("xanchor",M),o("xpad"),o("yanchor",b),o("ypad"),Og.noneOrAll(a,n,["x","y"]),o("outlinecolor"),o("outlinewidth"),o("bordercolor"),o("borderwidth"),o("bgcolor");var x=Og.coerce(a,n,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:c?["outside","inside","outside top","inside top","outside bottom","inside bottom"]:["outside","inside","outside left","inside left","outside right","inside right"]}},"ticklabelposition");o("ticklabeloverflow",x.indexOf("inside")!==-1?"hide past domain":"hide past div"),i6t(a,n,o,"linear");var T=i.font,A={noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0,outerTicks:!1,font:T};x.indexOf("inside")!==-1&&(A.bgColor="black"),o6t(a,n,o,"linear",A),a6t(a,n,o,"linear",A),n6t(a,n,o,"linear",A),o("title.text",i._dfltTitle.colorbar);var g=n.showticklabels?n.tickfont:T,E=Og.extendFlat({},T,{family:g.family,size:Og.bigFont(g.size)});Og.coerceFont(o,"title.font",E),o("title.side",c?"top":"right")}});var xh=K((CNr,jve)=>{"use strict";var Gve=Hs(),eH=St(),l6t=jG(),u6t=JG(),Hve=Zx().isValid,f6t=Ho().traceIs;function QG(e,t){var r=t.slice(0,t.length-1);return t?eH.nestedProperty(e,r).get()||{}:e}jve.exports=function e(t,r,i,n,a){var o=a.prefix,s=a.cLetter,l="_module"in r,u=QG(t,o),f=QG(r,o),c=QG(r._template||{},o)||{},h=function(){return delete t.coloraxis,delete r.coloraxis,e(t,r,i,n,a)};if(l){var d=i._colorAxes||{},p=n(o+"coloraxis");if(p){var v=f6t(r,"contour")&&eH.nestedProperty(r,"contours.coloring").get()||"heatmap",y=d[p];y?(y[2].push(h),y[0]!==v&&(y[0]=!1,eH.warn(["Ignoring coloraxis:",p,"setting","as it is linked to incompatible colorscales."].join(" ")))):d[p]=[v,r,[h]];return}}var m=u[s+"min"],w=u[s+"max"],_=Gve(m)&&Gve(w)&&m{"use strict";var Wve=St(),c6t=cu(),$ve=HG(),h6t=xh();Yve.exports=function(t,r){function i(c,h){return Wve.coerce(t,r,$ve,c,h)}i("colorscale.sequential"),i("colorscale.sequentialminus"),i("colorscale.diverging");var n=r._colorAxes,a,o;function s(c,h){return Wve.coerce(a,o,$ve.coloraxis,c,h)}for(var l in n){var u=n[l];if(u[0])a=t[l]||{},o=c6t.newContainer(r,l,"coloraxis"),o._name=l,h6t(a,o,r,s,{prefix:"",cLetter:"c"});else{for(var f=0;f{"use strict";var d6t=St(),p6t=Kh().hasColorscale,v6t=Kh().extractOpts;Zve.exports=function(t,r){function i(f,c){var h=f["_"+c];h!==void 0&&(f[c]=h)}function n(f,c){var h=c.container?d6t.nestedProperty(f,c.container).get():f;if(h)if(h.coloraxis)h._colorAx=r[h.coloraxis];else{var d=v6t(h),p=d.auto;(p||d.min===void 0)&&i(h,c.min),(p||d.max===void 0)&&i(h,c.max),d.autocolorscale&&i(h,"colorscale")}}for(var a=0;a{"use strict";var Jve=Hs(),tH=St(),m6t=Kh().extractOpts;Qve.exports=function(t,r,i){var n=t._fullLayout,a=i.vals,o=i.containerStr,s=o?tH.nestedProperty(r,o).get():r,l=m6t(s),u=l.auto!==!1,f=l.min,c=l.max,h=l.mid,d=function(){return tH.aggNums(Math.min,null,a)},p=function(){return tH.aggNums(Math.max,null,a)};if(f===void 0?f=d():u&&(s._colorAx&&Jve(f)?f=Math.min(f,d()):f=d()),c===void 0?c=p():u&&(s._colorAx&&Jve(c)?c=Math.max(c,p()):c=p()),u&&h!==void 0&&(c-h>h-f?f=h-(c-h):c-h=0?v=n.colorscale.sequential:v=n.colorscale.sequentialminus,l._sync("colorscale",v)}}});var gf=K((PNr,e1e)=>{"use strict";var KF=Zx(),Fw=Kh();e1e.exports={moduleType:"component",name:"colorscale",attributes:Wu(),layoutAttributes:HG(),supplyLayoutDefaults:Xve(),handleDefaults:xh(),crossTraceDefaults:Kve(),calc:T0(),scales:KF.scales,defaultScale:KF.defaultScale,getScale:KF.get,isValidScale:KF.isValid,hasColorscale:Fw.hasColorscale,extractOpts:Fw.extractOpts,extractScale:Fw.extractScale,flipScale:Fw.flipScale,makeColorScaleFunc:Fw.makeColorScaleFunc,makeColorScaleFuncFromTrace:Fw.makeColorScaleFuncFromTrace}});var ff=K((zNr,r1e)=>{"use strict";var t1e=St(),y6t=Yh().isTypedArraySpec;r1e.exports={hasLines:function(e){return e.visible&&e.mode&&e.mode.indexOf("lines")!==-1},hasMarkers:function(e){return e.visible&&(e.mode&&e.mode.indexOf("markers")!==-1||e.type==="splom")},hasText:function(e){return e.visible&&e.mode&&e.mode.indexOf("text")!==-1},isBubble:function(e){var t=e.marker;return t1e.isPlainObject(t)&&(t1e.isArrayOrTypedArray(t.size)||y6t(t.size))}}});var M6=K((INr,i1e)=>{"use strict";var g6t=Hs();i1e.exports=function(t,r){r||(r=2);var i=t.marker,n=i.sizeref||1,a=i.sizemin||0,o=i.sizemode==="area"?function(s){return Math.sqrt(s/n)}:function(s){return s/n};return function(s){var l=o(s/r);return g6t(l)&&l>0?Math.max(l,a):0}}});var ud=K(Jh=>{"use strict";var S6=St();Jh.getSubplot=function(e){return e.subplot||e.xaxis+e.yaxis||e.geo};Jh.isTraceInSubplots=function(e,t){if(e.type==="splom"){for(var r=e.xaxes||[],i=e.yaxes||[],n=0;n=0&&r.index{var rH={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},w6t=/([astvzqmhlc])([^astvzqmhlc]*)/gi,A6t=/-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/gi;function T6t(e){let t=[];return e.replace(w6t,(r,i,n)=>{let a=i.toLowerCase(),o=i,s=M6t(n);for(a==="m"&&s.length>2&&(t.push([o,...s.splice(0,2)]),a="l",o=o==="m"?"l":"L");;){if(s.length===rH[a])return t.push([o,...s]),"";if(s.length{"use strict";var S6t=iH(),no=function(e,t){return t?Math.round(e*(t=Math.pow(10,t)))/t:Math.round(e)},Ml="M0,0Z",s1e=Math.sqrt(2),Ng=Math.sqrt(3),nH=Math.PI,aH=Math.cos,oH=Math.sin;h1e.exports={circle:{n:0,f:function(e,t,r){if(Sl(t))return Ml;var i=no(e,2),n="M"+i+",0A"+i+","+i+" 0 1,1 0,-"+i+"A"+i+","+i+" 0 0,1 "+i+",0Z";return r?El(t,r,n):n}},square:{n:1,f:function(e,t,r){if(Sl(t))return Ml;var i=no(e,2);return El(t,r,"M"+i+","+i+"H-"+i+"V-"+i+"H"+i+"Z")}},diamond:{n:2,f:function(e,t,r){if(Sl(t))return Ml;var i=no(e*1.3,2);return El(t,r,"M"+i+",0L0,"+i+"L-"+i+",0L0,-"+i+"Z")}},cross:{n:3,f:function(e,t,r){if(Sl(t))return Ml;var i=no(e*.4,2),n=no(e*1.2,2);return El(t,r,"M"+n+","+i+"H"+i+"V"+n+"H-"+i+"V"+i+"H-"+n+"V-"+i+"H-"+i+"V-"+n+"H"+i+"V-"+i+"H"+n+"Z")}},x:{n:4,f:function(e,t,r){if(Sl(t))return Ml;var i=no(e*.8/s1e,2),n="l"+i+","+i,a="l"+i+",-"+i,o="l-"+i+",-"+i,s="l-"+i+","+i;return El(t,r,"M0,"+i+n+a+o+a+o+s+o+s+n+s+n+"Z")}},"triangle-up":{n:5,f:function(e,t,r){if(Sl(t))return Ml;var i=no(e*2/Ng,2),n=no(e/2,2),a=no(e,2);return El(t,r,"M-"+i+","+n+"H"+i+"L0,-"+a+"Z")}},"triangle-down":{n:6,f:function(e,t,r){if(Sl(t))return Ml;var i=no(e*2/Ng,2),n=no(e/2,2),a=no(e,2);return El(t,r,"M-"+i+",-"+n+"H"+i+"L0,"+a+"Z")}},"triangle-left":{n:7,f:function(e,t,r){if(Sl(t))return Ml;var i=no(e*2/Ng,2),n=no(e/2,2),a=no(e,2);return El(t,r,"M"+n+",-"+i+"V"+i+"L-"+a+",0Z")}},"triangle-right":{n:8,f:function(e,t,r){if(Sl(t))return Ml;var i=no(e*2/Ng,2),n=no(e/2,2),a=no(e,2);return El(t,r,"M-"+n+",-"+i+"V"+i+"L"+a+",0Z")}},"triangle-ne":{n:9,f:function(e,t,r){if(Sl(t))return Ml;var i=no(e*.6,2),n=no(e*1.2,2);return El(t,r,"M-"+n+",-"+i+"H"+i+"V"+n+"Z")}},"triangle-se":{n:10,f:function(e,t,r){if(Sl(t))return Ml;var i=no(e*.6,2),n=no(e*1.2,2);return El(t,r,"M"+i+",-"+n+"V"+i+"H-"+n+"Z")}},"triangle-sw":{n:11,f:function(e,t,r){if(Sl(t))return Ml;var i=no(e*.6,2),n=no(e*1.2,2);return El(t,r,"M"+n+","+i+"H-"+i+"V-"+n+"Z")}},"triangle-nw":{n:12,f:function(e,t,r){if(Sl(t))return Ml;var i=no(e*.6,2),n=no(e*1.2,2);return El(t,r,"M-"+i+","+n+"V-"+i+"H"+n+"Z")}},pentagon:{n:13,f:function(e,t,r){if(Sl(t))return Ml;var i=no(e*.951,2),n=no(e*.588,2),a=no(-e,2),o=no(e*-.309,2),s=no(e*.809,2);return El(t,r,"M"+i+","+o+"L"+n+","+s+"H-"+n+"L-"+i+","+o+"L0,"+a+"Z")}},hexagon:{n:14,f:function(e,t,r){if(Sl(t))return Ml;var i=no(e,2),n=no(e/2,2),a=no(e*Ng/2,2);return El(t,r,"M"+a+",-"+n+"V"+n+"L0,"+i+"L-"+a+","+n+"V-"+n+"L0,-"+i+"Z")}},hexagon2:{n:15,f:function(e,t,r){if(Sl(t))return Ml;var i=no(e,2),n=no(e/2,2),a=no(e*Ng/2,2);return El(t,r,"M-"+n+","+a+"H"+n+"L"+i+",0L"+n+",-"+a+"H-"+n+"L-"+i+",0Z")}},octagon:{n:16,f:function(e,t,r){if(Sl(t))return Ml;var i=no(e*.924,2),n=no(e*.383,2);return El(t,r,"M-"+n+",-"+i+"H"+n+"L"+i+",-"+n+"V"+n+"L"+n+","+i+"H-"+n+"L-"+i+","+n+"V-"+n+"Z")}},star:{n:17,f:function(e,t,r){if(Sl(t))return Ml;var i=e*1.4,n=no(i*.225,2),a=no(i*.951,2),o=no(i*.363,2),s=no(i*.588,2),l=no(-i,2),u=no(i*-.309,2),f=no(i*.118,2),c=no(i*.809,2),h=no(i*.382,2);return El(t,r,"M"+n+","+u+"H"+a+"L"+o+","+f+"L"+s+","+c+"L0,"+h+"L-"+s+","+c+"L-"+o+","+f+"L-"+a+","+u+"H-"+n+"L0,"+l+"Z")}},hexagram:{n:18,f:function(e,t,r){if(Sl(t))return Ml;var i=no(e*.66,2),n=no(e*.38,2),a=no(e*.76,2);return El(t,r,"M-"+a+",0l-"+n+",-"+i+"h"+a+"l"+n+",-"+i+"l"+n+","+i+"h"+a+"l-"+n+","+i+"l"+n+","+i+"h-"+a+"l-"+n+","+i+"l-"+n+",-"+i+"h-"+a+"Z")}},"star-triangle-up":{n:19,f:function(e,t,r){if(Sl(t))return Ml;var i=no(e*Ng*.8,2),n=no(e*.8,2),a=no(e*1.6,2),o=no(e*4,2),s="A "+o+","+o+" 0 0 1 ";return El(t,r,"M-"+i+","+n+s+i+","+n+s+"0,-"+a+s+"-"+i+","+n+"Z")}},"star-triangle-down":{n:20,f:function(e,t,r){if(Sl(t))return Ml;var i=no(e*Ng*.8,2),n=no(e*.8,2),a=no(e*1.6,2),o=no(e*4,2),s="A "+o+","+o+" 0 0 1 ";return El(t,r,"M"+i+",-"+n+s+"-"+i+",-"+n+s+"0,"+a+s+i+",-"+n+"Z")}},"star-square":{n:21,f:function(e,t,r){if(Sl(t))return Ml;var i=no(e*1.1,2),n=no(e*2,2),a="A "+n+","+n+" 0 0 1 ";return El(t,r,"M-"+i+",-"+i+a+"-"+i+","+i+a+i+","+i+a+i+",-"+i+a+"-"+i+",-"+i+"Z")}},"star-diamond":{n:22,f:function(e,t,r){if(Sl(t))return Ml;var i=no(e*1.4,2),n=no(e*1.9,2),a="A "+n+","+n+" 0 0 1 ";return El(t,r,"M-"+i+",0"+a+"0,"+i+a+i+",0"+a+"0,-"+i+a+"-"+i+",0Z")}},"diamond-tall":{n:23,f:function(e,t,r){if(Sl(t))return Ml;var i=no(e*.7,2),n=no(e*1.4,2);return El(t,r,"M0,"+n+"L"+i+",0L0,-"+n+"L-"+i+",0Z")}},"diamond-wide":{n:24,f:function(e,t,r){if(Sl(t))return Ml;var i=no(e*1.4,2),n=no(e*.7,2);return El(t,r,"M0,"+n+"L"+i+",0L0,-"+n+"L-"+i+",0Z")}},hourglass:{n:25,f:function(e,t,r){if(Sl(t))return Ml;var i=no(e,2);return El(t,r,"M"+i+","+i+"H-"+i+"L"+i+",-"+i+"H-"+i+"Z")},noDot:!0},bowtie:{n:26,f:function(e,t,r){if(Sl(t))return Ml;var i=no(e,2);return El(t,r,"M"+i+","+i+"V-"+i+"L-"+i+","+i+"V-"+i+"Z")},noDot:!0},"circle-cross":{n:27,f:function(e,t,r){if(Sl(t))return Ml;var i=no(e,2);return El(t,r,"M0,"+i+"V-"+i+"M"+i+",0H-"+i+"M"+i+",0A"+i+","+i+" 0 1,1 0,-"+i+"A"+i+","+i+" 0 0,1 "+i+",0Z")},needLine:!0,noDot:!0},"circle-x":{n:28,f:function(e,t,r){if(Sl(t))return Ml;var i=no(e,2),n=no(e/s1e,2);return El(t,r,"M"+n+","+n+"L-"+n+",-"+n+"M"+n+",-"+n+"L-"+n+","+n+"M"+i+",0A"+i+","+i+" 0 1,1 0,-"+i+"A"+i+","+i+" 0 0,1 "+i+",0Z")},needLine:!0,noDot:!0},"square-cross":{n:29,f:function(e,t,r){if(Sl(t))return Ml;var i=no(e,2);return El(t,r,"M0,"+i+"V-"+i+"M"+i+",0H-"+i+"M"+i+","+i+"H-"+i+"V-"+i+"H"+i+"Z")},needLine:!0,noDot:!0},"square-x":{n:30,f:function(e,t,r){if(Sl(t))return Ml;var i=no(e,2);return El(t,r,"M"+i+","+i+"L-"+i+",-"+i+"M"+i+",-"+i+"L-"+i+","+i+"M"+i+","+i+"H-"+i+"V-"+i+"H"+i+"Z")},needLine:!0,noDot:!0},"diamond-cross":{n:31,f:function(e,t,r){if(Sl(t))return Ml;var i=no(e*1.3,2);return El(t,r,"M"+i+",0L0,"+i+"L-"+i+",0L0,-"+i+"ZM0,-"+i+"V"+i+"M-"+i+",0H"+i)},needLine:!0,noDot:!0},"diamond-x":{n:32,f:function(e,t,r){if(Sl(t))return Ml;var i=no(e*1.3,2),n=no(e*.65,2);return El(t,r,"M"+i+",0L0,"+i+"L-"+i+",0L0,-"+i+"ZM-"+n+",-"+n+"L"+n+","+n+"M-"+n+","+n+"L"+n+",-"+n)},needLine:!0,noDot:!0},"cross-thin":{n:33,f:function(e,t,r){if(Sl(t))return Ml;var i=no(e*1.4,2);return El(t,r,"M0,"+i+"V-"+i+"M"+i+",0H-"+i)},needLine:!0,noDot:!0,noFill:!0},"x-thin":{n:34,f:function(e,t,r){if(Sl(t))return Ml;var i=no(e,2);return El(t,r,"M"+i+","+i+"L-"+i+",-"+i+"M"+i+",-"+i+"L-"+i+","+i)},needLine:!0,noDot:!0,noFill:!0},asterisk:{n:35,f:function(e,t,r){if(Sl(t))return Ml;var i=no(e*1.2,2),n=no(e*.85,2);return El(t,r,"M0,"+i+"V-"+i+"M"+i+",0H-"+i+"M"+n+","+n+"L-"+n+",-"+n+"M"+n+",-"+n+"L-"+n+","+n)},needLine:!0,noDot:!0,noFill:!0},hash:{n:36,f:function(e,t,r){if(Sl(t))return Ml;var i=no(e/2,2),n=no(e,2);return El(t,r,"M"+i+","+n+"V-"+n+"M"+(i-n)+",-"+n+"V"+n+"M"+n+","+i+"H-"+n+"M-"+n+","+(i-n)+"H"+n)},needLine:!0,noFill:!0},"y-up":{n:37,f:function(e,t,r){if(Sl(t))return Ml;var i=no(e*1.2,2),n=no(e*1.6,2),a=no(e*.8,2);return El(t,r,"M-"+i+","+a+"L0,0M"+i+","+a+"L0,0M0,-"+n+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-down":{n:38,f:function(e,t,r){if(Sl(t))return Ml;var i=no(e*1.2,2),n=no(e*1.6,2),a=no(e*.8,2);return El(t,r,"M-"+i+",-"+a+"L0,0M"+i+",-"+a+"L0,0M0,"+n+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-left":{n:39,f:function(e,t,r){if(Sl(t))return Ml;var i=no(e*1.2,2),n=no(e*1.6,2),a=no(e*.8,2);return El(t,r,"M"+a+","+i+"L0,0M"+a+",-"+i+"L0,0M-"+n+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-right":{n:40,f:function(e,t,r){if(Sl(t))return Ml;var i=no(e*1.2,2),n=no(e*1.6,2),a=no(e*.8,2);return El(t,r,"M-"+a+","+i+"L0,0M-"+a+",-"+i+"L0,0M"+n+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"line-ew":{n:41,f:function(e,t,r){if(Sl(t))return Ml;var i=no(e*1.4,2);return El(t,r,"M"+i+",0H-"+i)},needLine:!0,noDot:!0,noFill:!0},"line-ns":{n:42,f:function(e,t,r){if(Sl(t))return Ml;var i=no(e*1.4,2);return El(t,r,"M0,"+i+"V-"+i)},needLine:!0,noDot:!0,noFill:!0},"line-ne":{n:43,f:function(e,t,r){if(Sl(t))return Ml;var i=no(e,2);return El(t,r,"M"+i+",-"+i+"L-"+i+","+i)},needLine:!0,noDot:!0,noFill:!0},"line-nw":{n:44,f:function(e,t,r){if(Sl(t))return Ml;var i=no(e,2);return El(t,r,"M"+i+","+i+"L-"+i+",-"+i)},needLine:!0,noDot:!0,noFill:!0},"arrow-up":{n:45,f:function(e,t,r){if(Sl(t))return Ml;var i=no(e,2),n=no(e*2,2);return El(t,r,"M0,0L-"+i+","+n+"H"+i+"Z")},backoff:1,noDot:!0},"arrow-down":{n:46,f:function(e,t,r){if(Sl(t))return Ml;var i=no(e,2),n=no(e*2,2);return El(t,r,"M0,0L-"+i+",-"+n+"H"+i+"Z")},noDot:!0},"arrow-left":{n:47,f:function(e,t,r){if(Sl(t))return Ml;var i=no(e*2,2),n=no(e,2);return El(t,r,"M0,0L"+i+",-"+n+"V"+n+"Z")},noDot:!0},"arrow-right":{n:48,f:function(e,t,r){if(Sl(t))return Ml;var i=no(e*2,2),n=no(e,2);return El(t,r,"M0,0L-"+i+",-"+n+"V"+n+"Z")},noDot:!0},"arrow-bar-up":{n:49,f:function(e,t,r){if(Sl(t))return Ml;var i=no(e,2),n=no(e*2,2);return El(t,r,"M-"+i+",0H"+i+"M0,0L-"+i+","+n+"H"+i+"Z")},backoff:1,needLine:!0,noDot:!0},"arrow-bar-down":{n:50,f:function(e,t,r){if(Sl(t))return Ml;var i=no(e,2),n=no(e*2,2);return El(t,r,"M-"+i+",0H"+i+"M0,0L-"+i+",-"+n+"H"+i+"Z")},needLine:!0,noDot:!0},"arrow-bar-left":{n:51,f:function(e,t,r){if(Sl(t))return Ml;var i=no(e*2,2),n=no(e,2);return El(t,r,"M0,-"+n+"V"+n+"M0,0L"+i+",-"+n+"V"+n+"Z")},needLine:!0,noDot:!0},"arrow-bar-right":{n:52,f:function(e,t,r){if(Sl(t))return Ml;var i=no(e*2,2),n=no(e,2);return El(t,r,"M0,-"+n+"V"+n+"M0,0L-"+i+",-"+n+"V"+n+"Z")},needLine:!0,noDot:!0},arrow:{n:53,f:function(e,t,r){if(Sl(t))return Ml;var i=nH/2.5,n=2*e*aH(i),a=2*e*oH(i);return El(t,r,"M0,0L"+-n+","+a+"L"+n+","+a+"Z")},backoff:.9,noDot:!0},"arrow-wide":{n:54,f:function(e,t,r){if(Sl(t))return Ml;var i=nH/4,n=2*e*aH(i),a=2*e*oH(i);return El(t,r,"M0,0L"+-n+","+a+"A "+2*e+","+2*e+" 0 0 1 "+n+","+a+"Z")},backoff:.4,noDot:!0}};function Sl(e){return e===null}var l1e,u1e,f1e,c1e;function El(e,t,r){if((!e||e%360===0)&&!t)return r;if(f1e===e&&c1e===t&&l1e===r)return u1e;f1e=e,c1e=t,l1e=r;function i(y,m){var w=aH(y),_=oH(y),b=m[0],M=m[1]+(t||0);return[b*w-M*_,b*_+M*w]}for(var n=e/180*nH,a=0,o=0,s=S6t(r),l="",u=0;u{"use strict";var bh=No(),Ou=St(),E6t=Ou.numberFormat,Vg=Hs(),QF=Ho(),uh=wo(),k6t=gf(),k6=Ou.strTranslate,eL=Du(),C6t=(Rp(),or(Ip)),D6t=($c(),or(Wc)),F6t=D6t.LINE_SPACING,A1e=(ry(),or(ty)).DESELECTDIM,L6t=ff(),P6t=M6(),z6t=ud().appendArrayPointValue,Po={};P1e.exports=Po;Po.font=function(e,t){var r=t.variant,i=t.style,n=t.weight,a=t.color,o=t.size,s=t.family,l=t.shadow,u=t.lineposition,f=t.textcase;s&&e.style("font-family",s),o+1&&e.style("font-size",o+"px"),a&&e.call(uh.fill,a),n&&e.style("font-weight",n),i&&e.style("font-style",i),r&&e.style("font-variant",r),f&&e.style("text-transform",sH(R6t(f))),l&&e.style("text-shadow",l==="auto"?eL.makeTextShadow(uh.contrast(a)):sH(l)),u&&e.style("text-decoration-line",sH(B6t(u)))};function sH(e){return e==="none"?void 0:e}var I6t={normal:"none",lower:"lowercase",upper:"uppercase","word caps":"capitalize"};function R6t(e){return I6t[e]}function B6t(e){return e.replace("under","underline").replace("over","overline").replace("through","line-through").split("+").join(" ")}Po.setPosition=function(e,t,r){e.attr("x",t).attr("y",r)};Po.setSize=function(e,t,r){e.attr("width",t).attr("height",r)};Po.setRect=function(e,t,r,i,n){e.call(Po.setPosition,t,r).call(Po.setSize,i,n)};Po.translatePoint=function(e,t,r,i){var n=r.c2p(e.x),a=i.c2p(e.y);if(Vg(n)&&Vg(a)&&t.node())t.node().nodeName==="text"?t.attr("x",n).attr("y",a):t.attr("transform",k6(n,a));else return!1;return!0};Po.translatePoints=function(e,t,r){e.each(function(i){var n=bh.select(this);Po.translatePoint(i,n,t,r)})};Po.hideOutsideRangePoint=function(e,t,r,i,n,a){t.attr("display",r.isPtWithinRange(e,n)&&i.isPtWithinRange(e,a)?null:"none")};Po.hideOutsideRangePoints=function(e,t){if(t._hasClipOnAxisFalse){var r=t.xaxis,i=t.yaxis;e.each(function(n){var a=n[0].trace,o=a.xcalendar,s=a.ycalendar,l=QF.traceIs(a,"bar-like")?".bartext":".point,.textpoint";e.selectAll(l).each(function(u){Po.hideOutsideRangePoint(u,bh.select(this),r,i,o,s)})})}};Po.crispRound=function(e,t,r){return!t||!Vg(t)?r||0:e._context.staticPlot?t:t<1?1:Math.round(t)};Po.singleLineStyle=function(e,t,r,i,n){t.style("fill","none");var a=(((e||[])[0]||{}).trace||{}).line||{},o=r||a.width||0,s=n||a.dash||"";uh.stroke(t,i||a.color),Po.dashLine(t,s,o)};Po.lineGroupStyle=function(e,t,r,i){e.style("fill","none").each(function(n){var a=(((n||[])[0]||{}).trace||{}).line||{},o=t||a.width||0,s=i||a.dash||"";bh.select(this).call(uh.stroke,r||a.color).call(Po.dashLine,s,o)})};Po.dashLine=function(e,t,r){r=+r||0,t=Po.dashStyle(t,r),e.style({"stroke-dasharray":t,"stroke-width":r+"px"})};Po.dashStyle=function(e,t){t=+t||1;var r=Math.max(t,3);return e==="solid"?e="":e==="dot"?e=r+"px,"+r+"px":e==="dash"?e=3*r+"px,"+3*r+"px":e==="longdash"?e=5*r+"px,"+5*r+"px":e==="dashdot"?e=3*r+"px,"+r+"px,"+r+"px,"+r+"px":e==="longdashdot"&&(e=5*r+"px,"+2*r+"px,"+r+"px,"+2*r+"px"),e};function T1e(e,t,r,i){var n=t.fillpattern,a=t.fillgradient,o=Po.getPatternAttr,s=n&&(o(n.shape,0,"")||o(n.path,0,""));if(s){var l=o(n.bgcolor,0,null),u=o(n.fgcolor,0,null),f=n.fgopacity,c=o(n.size,0,8),h=o(n.solidity,0,.3),d=t.uid;Po.pattern(e,"point",r,d,s,c,h,void 0,n.fillmode,l,u,f)}else if(a&&a.type!=="none"){var p=a.type,v="scatterfill-"+t.uid;if(i&&(v="legendfill-"+t.uid),!i&&(a.start!==void 0||a.stop!==void 0)){var y,m;p==="horizontal"?(y={x:a.start,y:0},m={x:a.stop,y:0}):p==="vertical"&&(y={x:0,y:a.start},m={x:0,y:a.stop}),y.x=t._xA.c2p(y.x===void 0?t._extremes.x.min[0].val:y.x,!0),y.y=t._yA.c2p(y.y===void 0?t._extremes.y.min[0].val:y.y,!0),m.x=t._xA.c2p(m.x===void 0?t._extremes.x.max[0].val:m.x,!0),m.y=t._yA.c2p(m.y===void 0?t._extremes.y.max[0].val:m.y,!0),e.call(E1e,r,v,"linear",a.colorscale,"fill",y,m,!0,!1)}else p==="horizontal"&&(p=p+"reversed"),e.call(Po.gradient,r,v,p,a.colorscale,"fill")}else t.fillcolor&&e.call(uh.fill,t.fillcolor)}Po.singleFillStyle=function(e,t){var r=bh.select(e.node()),i=r.data(),n=((i[0]||[])[0]||{}).trace||{};T1e(e,n,t,!1)};Po.fillGroupStyle=function(e,t,r){e.style("stroke-width",0).each(function(i){var n=bh.select(this);i[0].trace&&T1e(n,i[0].trace,t,r)})};var p1e=d1e();Po.symbolNames=[];Po.symbolFuncs=[];Po.symbolBackOffs=[];Po.symbolNeedLines={};Po.symbolNoDot={};Po.symbolNoFill={};Po.symbolList=[];Object.keys(p1e).forEach(function(e){var t=p1e[e],r=t.n;Po.symbolList.push(r,String(r),e,r+100,String(r+100),e+"-open"),Po.symbolNames[r]=e,Po.symbolFuncs[r]=t.f,Po.symbolBackOffs[r]=t.backoff||0,t.needLine&&(Po.symbolNeedLines[r]=!0),t.noDot?Po.symbolNoDot[r]=!0:Po.symbolList.push(r+200,String(r+200),e+"-dot",r+300,String(r+300),e+"-open-dot"),t.noFill&&(Po.symbolNoFill[r]=!0)});var q6t=Po.symbolNames.length,O6t="M0,0.5L0.5,0L0,-0.5L-0.5,0Z";Po.symbolNumber=function(e){if(Vg(e))e=+e;else if(typeof e=="string"){var t=0;e.indexOf("-open")>0&&(t=100,e=e.replace("-open","")),e.indexOf("-dot")>0&&(t+=200,e=e.replace("-dot","")),e=Po.symbolNames.indexOf(e),e>=0&&(e+=t)}return e%100>=q6t||e>=400?0:Math.floor(Math.max(e,0))};function M1e(e,t,r,i){var n=e%100;return Po.symbolFuncs[n](t,r,i)+(e>=200?O6t:"")}var v1e=E6t("~f"),S1e={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}};Po.gradient=function(e,t,r,i,n,a){var o=S1e[i];return E1e(e,t,r,o.type,n,a,o.start,o.stop,!1,o.reversed)};function E1e(e,t,r,i,n,a,o,s,l,u){var f=n.length,c;i==="linear"?c={node:"linearGradient",attrs:{x1:o.x,y1:o.y,x2:s.x,y2:s.y,gradientUnits:l?"userSpaceOnUse":"objectBoundingBox"},reversed:u}:i==="radial"&&(c={node:"radialGradient",reversed:u});for(var h=new Array(f),d=0;d=0&&e.i===void 0&&(e.i=a.i),t.style("opacity",i.selectedOpacityFn?i.selectedOpacityFn(e):e.mo===void 0?o.opacity:e.mo),i.ms2mrc){var l;e.ms==="various"||o.size==="various"?l=3:l=i.ms2mrc(e.ms),e.mrc=l,i.selectedSizeFn&&(l=e.mrc=i.selectedSizeFn(e));var u=Po.symbolNumber(e.mx||o.symbol)||0;e.om=u%200>=100;var f=pH(e,r),c=dH(e,r);t.attr("d",M1e(u,l,f,c))}var h=!1,d,p,v;if(e.so)v=s.outlierwidth,p=s.outliercolor,d=o.outliercolor;else{var y=(s||{}).width;v=(e.mlw+1||y+1||(e.trace?(e.trace.marker.line||{}).width:0)+1)-1||0,"mlc"in e?p=e.mlcc=i.lineScale(e.mlc):Ou.isArrayOrTypedArray(s.color)?p=uh.defaultLine:p=s.color,Ou.isArrayOrTypedArray(o.color)&&(d=uh.defaultLine,h=!0),"mc"in e?d=e.mcc=i.markerScale(e.mc):d=o.color||o.colors||"rgba(0,0,0,0)",i.selectedColorFn&&(d=i.selectedColorFn(e))}let m=e.mld||(s||{}).dash;if(m&&Po.dashLine(t,m,v),e.om)t.call(uh.stroke,d).style({"stroke-width":(v||1)+"px",fill:"none"});else{t.style("stroke-width",(e.isBlank?0:v)+"px");var w=o.gradient,_=e.mgt;_?h=!0:_=w&&w.type,Ou.isArrayOrTypedArray(_)&&(_=_[0],S1e[_]||(_=0));var b=o.pattern,M=Po.getPatternAttr,x=b&&(M(b.shape,e.i,"")||M(b.path,e.i,""));if(_&&_!=="none"){var T=e.mgc;T?h=!0:T=w.color;var A=r.uid;h&&(A+="-"+e.i),Po.gradient(t,n,A,_,[[0,T],[1,d]],"fill")}else if(x){var g=!1,E=b.fgcolor;!E&&a&&a.color&&(E=a.color,g=!0);var S=M(E,e.i,a&&a.color||null),C=M(b.bgcolor,e.i,null),k=b.fgopacity,D=M(b.size,e.i,8),F=M(b.solidity,e.i,.3);g=g||e.mcc||Ou.isArrayOrTypedArray(b.shape)||Ou.isArrayOrTypedArray(b.path)||Ou.isArrayOrTypedArray(b.bgcolor)||Ou.isArrayOrTypedArray(b.fgcolor)||Ou.isArrayOrTypedArray(b.size)||Ou.isArrayOrTypedArray(b.solidity);var P=r.uid;g&&(P+="-"+e.i),Po.pattern(t,"point",n,P,x,D,F,e.mcc,b.fillmode,C,S,k)}else Ou.isArrayOrTypedArray(d)?uh.fill(t,d[e.i]):uh.fill(t,d);v&&uh.stroke(t,p)}};Po.makePointStyleFns=function(e){var t={},r=e.marker;return t.markerScale=Po.tryColorscale(r,""),t.lineScale=Po.tryColorscale(r,"line"),QF.traceIs(e,"symbols")&&(t.ms2mrc=L6t.isBubble(e)?P6t(e):function(){return(r.size||6)/2}),e.selectedpoints&&Ou.extendFlat(t,Po.makeSelectedPointStyleFns(e)),t};Po.makeSelectedPointStyleFns=function(e){var t={},r=e.selected||{},i=e.unselected||{},n=e.marker||{},a=r.marker||{},o=i.marker||{},s=n.opacity,l=a.opacity,u=o.opacity,f=l!==void 0,c=u!==void 0;(Ou.isArrayOrTypedArray(s)||f||c)&&(t.selectedOpacityFn=function(b){var M=b.mo===void 0?n.opacity:b.mo;return b.selected?f?l:M:c?u:A1e*M});var h=n.color,d=a.color,p=o.color;(d||p)&&(t.selectedColorFn=function(b){var M=b.mcc||h;return b.selected?d||M:p||M});var v=n.size,y=a.size,m=o.size,w=y!==void 0,_=m!==void 0;return QF.traceIs(e,"symbols")&&(w||_)&&(t.selectedSizeFn=function(b){var M=b.mrc||v/2;return b.selected?w?y/2:M:_?m/2:M}),t};Po.makeSelectedTextStyleFns=function(e){var t={},r=e.selected||{},i=e.unselected||{},n=e.textfont||{},a=r.textfont||{},o=i.textfont||{},s=n.color,l=a.color,u=o.color;return t.selectedTextColorFn=function(f){var c=f.tc||s;return f.selected?l||c:u||(l?c:uh.addOpacity(c,A1e))},t};Po.selectedPointStyle=function(e,t){if(!(!e.size()||!t.selectedpoints)){var r=Po.makeSelectedPointStyleFns(t),i=t.marker||{},n=[];r.selectedOpacityFn&&n.push(function(a,o){a.style("opacity",r.selectedOpacityFn(o))}),r.selectedColorFn&&n.push(function(a,o){uh.fill(a,r.selectedColorFn(o))}),r.selectedSizeFn&&n.push(function(a,o){var s=o.mx||i.symbol||0,l=r.selectedSizeFn(o);a.attr("d",M1e(Po.symbolNumber(s),l,pH(o,t),dH(o,t))),o.mrc2=l}),n.length&&e.each(function(a){for(var o=bh.select(this),s=0;s0?r:0}Po.textPointStyle=function(e,t,r){if(e.size()){var i;if(t.selectedpoints){var n=Po.makeSelectedTextStyleFns(t);i=n.selectedTextColorFn}var a=t.texttemplate,o=r._fullLayout;e.each(function(s){var l=bh.select(this),u=a?Ou.extractOption(s,t,"txt","texttemplate"):Ou.extractOption(s,t,"tx","text");if(!u&&u!==0){l.remove();return}if(a){var f=t._module.formatLabels,c=f?f(s,t,o):{},h={};z6t(h,t,s.i),u=Ou.texttemplateString({data:[h,s,t._meta],fallback:t.texttemplatefallback,labels:c,locale:o._d3locale,template:u})}var d=s.tp||t.textposition,p=C1e(s,t),v=i?i(s):s.tc||t.textfont.color;l.call(Po.font,{family:s.tf||t.textfont.family,weight:s.tw||t.textfont.weight,style:s.ty||t.textfont.style,variant:s.tv||t.textfont.variant,textcase:s.tC||t.textfont.textcase,lineposition:s.tE||t.textfont.lineposition,shadow:s.tS||t.textfont.shadow,size:p,color:v}).text(u).call(eL.convertToTspans,r).call(k1e,d,p,s.mrc)})}};Po.selectedTextStyle=function(e,t){if(!(!e.size()||!t.selectedpoints)){var r=Po.makeSelectedTextStyleFns(t);e.each(function(i){var n=bh.select(this),a=r.selectedTextColorFn(i),o=i.tp||t.textposition,s=C1e(i,t);uh.fill(n,a);var l=QF.traceIs(t,"bar-like");k1e(n,o,s,i.mrc2||i.mrc,l)})}};var m1e=.5;Po.smoothopen=function(e,t){if(e.length<3)return"M"+e.join("L");var r="M"+e[0],i=[],n;for(n=1;n=l||b>=f&&b<=l)&&(M<=c&&M>=u||M>=c&&M<=u)&&(e=[b,M])}return e}Po.applyBackoff=L1e;Po.makeTester=function(){var e=Ou.ensureSingleById(bh.select("body"),"svg","js-plotly-tester",function(r){r.attr(C6t.svgAttrs).style({position:"absolute",left:"-10000px",top:"-10000px",width:"9000px",height:"9000px","z-index":"1"})}),t=Ou.ensureSingle(e,"path","js-reference-point",function(r){r.attr("d","M0,0H1V1H0Z").style({"stroke-width":0,fill:"black"})});Po.tester=e,Po.testref=t};Po.savedBBoxes={};var uH=0,U6t=1e4;Po.bBox=function(e,t,r){r||(r=y1e(e));var i;if(r){if(i=Po.savedBBoxes[r],i)return Ou.extendFlat({},i)}else if(e.childNodes.length===1){var n=e.childNodes[0];if(r=y1e(n),r){var a=+n.getAttribute("x")||0,o=+n.getAttribute("y")||0,s=n.getAttribute("transform");if(!s){var l=Po.bBox(n,!1,r);return a&&(l.left+=a,l.right+=a),o&&(l.top+=o,l.bottom+=o),l}if(r+="~"+a+"~"+o+"~"+s,i=Po.savedBBoxes[r],i)return Ou.extendFlat({},i)}}var u,f;t?u=e:(f=Po.tester.node(),u=e.cloneNode(!0),f.appendChild(u)),bh.select(u).attr("transform",null).call(eL.positionText,0,0);var c=u.getBoundingClientRect(),h=Po.testref.node().getBoundingClientRect();t||f.removeChild(u);var d={height:c.height,width:c.width,left:c.left-h.left,top:c.top-h.top,right:c.right-h.left,bottom:c.bottom-h.top};return uH>=U6t&&(Po.savedBBoxes={},uH=0),r&&(Po.savedBBoxes[r]=d),uH++,Ou.extendFlat({},d)};function y1e(e){var t=e.getAttribute("data-unformatted");if(t!==null)return t+e.getAttribute("data-math")+e.getAttribute("text-anchor")+e.getAttribute("style")}Po.setClipUrl=function(e,t,r){e.attr("clip-path",hH(t,r))};function hH(e,t){if(!e)return null;var r=t._context,i=r._exportedPlot?"":r._baseUrl||"";return i?"url('"+i+"#"+e+"')":"url(#"+e+")"}Po.getTranslate=function(e){var t=/.*\btranslate\((-?\d*\.?\d*)[^-\d]*(-?\d*\.?\d*)[^\d].*/,r=e.attr?"attr":"getAttribute",i=e[r]("transform")||"",n=i.replace(t,function(a,o,s){return[o,s].join(" ")}).split(" ");return{x:+n[0]||0,y:+n[1]||0}};Po.setTranslate=function(e,t,r){var i=/(\btranslate\(.*?\);?)/,n=e.attr?"attr":"getAttribute",a=e.attr?"attr":"setAttribute",o=e[n]("transform")||"";return t=t||0,r=r||0,o=o.replace(i,"").trim(),o+=k6(t,r),o=o.trim(),e[a]("transform",o),o};Po.getScale=function(e){var t=/.*\bscale\((\d*\.?\d*)[^\d]*(\d*\.?\d*)[^\d].*/,r=e.attr?"attr":"getAttribute",i=e[r]("transform")||"",n=i.replace(t,function(a,o,s){return[o,s].join(" ")}).split(" ");return{x:+n[0]||1,y:+n[1]||1}};Po.setScale=function(e,t,r){var i=/(\bscale\(.*?\);?)/,n=e.attr?"attr":"getAttribute",a=e.attr?"attr":"setAttribute",o=e[n]("transform")||"";return t=t||1,r=r||1,o=o.replace(i,"").trim(),o+="scale("+t+","+r+")",o=o.trim(),e[a]("transform",o),o};var G6t=/\s*sc.*/;Po.setPointGroupScale=function(e,t,r){if(t=t||1,r=r||1,!!e){var i=t===1&&r===1?"":"scale("+t+","+r+")";e.each(function(){var n=(this.getAttribute("transform")||"").replace(G6t,"");n+=i,n=n.trim(),this.setAttribute("transform",n)})}};var H6t=/translate\([^)]*\)\s*$/;Po.setTextPointsScale=function(e,t,r){e&&e.each(function(){var i,n=bh.select(this),a=n.select("text");if(a.node()){var o=parseFloat(a.attr("x")||0),s=parseFloat(a.attr("y")||0),l=(n.attr("transform")||"").match(H6t);t===1&&r===1?i=[]:i=[k6(o,s),"scale("+t+","+r+")",k6(-o,-s)],l&&i.push(l),n.attr("transform",i.join(""))}})};function dH(e,t){var r;return e&&(r=e.mf),r===void 0&&(r=t.marker&&t.marker.standoff||0),!t._geo&&!t._xA?-r:r}Po.getMarkerStandoff=dH;var E6=Math.atan2,cb=Math.cos,Pw=Math.sin;function g1e(e,t){var r=t[0],i=t[1];return[r*cb(e)-i*Pw(e),r*Pw(e)+i*cb(e)]}var x1e,b1e,_1e,w1e,fH,cH;function pH(e,t){var r=e.ma;r===void 0&&(r=t.marker.angle,(!Vg(r)||Ou.isArrayOrTypedArray(r))&&(r=0));var i,n,a=t.marker.angleref;if(a==="previous"||a==="north"){if(t._geo){var o=t._geo.project(e.lonlat);i=o[0],n=o[1]}else{var s=t._xA,l=t._yA;if(s&&l)i=s.c2p(e.x),n=l.c2p(e.y);else return 90}if(t._geo){var u=e.lonlat[0],f=e.lonlat[1],c=t._geo.project([u,f+1e-5]),h=t._geo.project([u+1e-5,f]),d=E6(h[1]-n,h[0]-i),p=E6(c[1]-n,c[0]-i),v;if(a==="north")v=r/180*Math.PI;else if(a==="previous"){var y=u/180*Math.PI,m=f/180*Math.PI,w=x1e/180*Math.PI,_=b1e/180*Math.PI,b=w-y,M=cb(_)*Pw(b),x=Pw(_)*cb(m)-cb(_)*Pw(m)*cb(b);v=-E6(M,x)-Math.PI,x1e=u,b1e=f}var T=g1e(d,[cb(v),0]),A=g1e(p,[Pw(v),0]);r=E6(T[1]+A[1],T[0]+A[0])/Math.PI*180,a==="previous"&&!(cH===t.uid&&e.i===fH+1)&&(r=null)}if(a==="previous"&&!t._geo)if(cH===t.uid&&e.i===fH+1&&Vg(i)&&Vg(n)){var g=i-_1e,E=n-w1e,S=t.line&&t.line.shape||"",C=S.slice(S.length-1);C==="h"&&(E=0),C==="v"&&(g=0),r+=E6(E,g)/Math.PI*180+90}else r=null}return _1e=i,w1e=n,fH=e.i,cH=t.uid,r}Po.getMarkerAngle=pH});var vb=K((NNr,B1e)=>{"use strict";var zw=No(),j6t=Hs(),W6t=yf(),vH=Ho(),pb=St(),z1e=pb.strTranslate,tL=Is(),rL=wo(),Iw=Du(),I1e=(ry(),or(ty)),$6t=($c(),or(Wc)).OPPOSITE_SIDE,R1e=/ [XY][0-9]* /,mH=1.6,yH=1.6;function Y6t(e,t,r){var i=e._fullLayout,n=r.propContainer,a=r.propName,o=r.placeholder,s=r.traceIndex,l=r.avoid||{},u=r.attributes,f=r.transform,c=r.containerGroup,h=1,d=n.title,p=(d&&d.text?d.text:"").trim(),v=!1,y=d&&d.font?d.font:{},m=y.family,w=y.size,_=y.color,b=y.weight,M=y.style,x=y.variant,T=y.textcase,A=y.lineposition,g=y.shadow,E=r.subtitlePropName,S=!!E,C=r.subtitlePlaceholder,k=(n.title||{}).subtitle||{text:"",font:{}},D=(k.text||"").trim(),F=!1,P=1,I=k.font,L=I.family,z=I.size,B=I.color,O=I.weight,W=I.style,X=I.variant,Z=I.textcase,H=I.lineposition,q=I.shadow,Q;a==="title.text"?Q="titleText":a.indexOf("axis")!==-1?Q="axisTitleText":a.indexOf("colorbar")!==-1&&(Q="colorbarTitleText");var N=e._context.edits[Q];function U(we,oe){return we===void 0||oe===void 0?!1:we.replace(R1e," % ")===oe.replace(R1e," % ")}p===""?h=0:U(p,o)&&(N||(p=""),h=.2,v=!0),S&&(D===""?P=0:U(D,C)&&(N||(D=""),P=.2,F=!0)),r._meta?p=pb.templateString(p,r._meta):i._meta&&(p=pb.templateString(p,i._meta));var J=p||D||N,j;c||(c=pb.ensureSingle(i._infolayer,"g","g-"+t),j=i._hColorbarMoveTitle);var $=c.selectAll("text."+t).data(J?[0]:[]);$.enter().append("text"),$.text(p).attr("class",t),$.exit().remove();var ie=null,re=t+"-subtitle",de=D||N;if(S&&(ie=c.selectAll("text."+re).data(de?[0]:[]),ie.enter().append("text"),ie.text(D).attr("class",re),ie.exit().remove()),!J)return c;function me(we,oe){pb.syncOrAsync([ze,ke],{title:we,subtitle:oe})}function ze(we){var oe=we.title,Y=we.subtitle,ne;!f&&j&&(f={}),f?(ne="",f.rotate&&(ne+="rotate("+[f.rotate,u.x,u.y]+")"),(f.offset||j)&&(ne+=z1e(0,(f.offset||0)-(j||0)))):ne=null,oe.attr("transform",ne);function ye(se){if(se){var pe=zw.select(se.node().parentNode).select("."+re);if(!pe.empty()){var fe=se.node().getBBox();if(fe.height){var Re=fe.y+fe.height+mH*z;pe.attr("y",Re)}}}}if(oe.style("opacity",h*rL.opacity(_)).call(tL.font,{color:rL.rgb(_),size:zw.round(w,2),family:m,weight:b,style:M,variant:x,textcase:T,shadow:g,lineposition:A}).attr(u).call(Iw.convertToTspans,e,ye),Y&&!Y.empty()){var V=c.select("."+t+"-math-group"),ue=oe.node().getBBox(),_e=V.node()?V.node().getBBox():void 0,xe=_e?_e.y+_e.height+mH*z:ue.y+ue.height+yH*z,Ae=pb.extendFlat({},u,{y:xe});Y.attr("transform",ne),Y.style("opacity",P*rL.opacity(B)).call(tL.font,{color:rL.rgb(B),size:zw.round(z,2),family:L,weight:O,style:W,variant:X,textcase:Z,shadow:q,lineposition:H}).attr(Ae).call(Iw.convertToTspans,e)}return W6t.previousPromises(e)}function ke(we){var oe=we.title,Y=zw.select(oe.node().parentNode);if(l&&l.selection&&l.side&&p){Y.attr("transform",null);var ne=$6t[l.side],ye=l.side==="left"||l.side==="top"?-1:1,V=j6t(l.pad)?l.pad:2,ue=tL.bBox(Y.node()),_e={t:0,b:0,l:0,r:0},xe=e._fullLayout._reservedMargin;for(var Ae in xe)for(var se in xe[Ae]){var pe=xe[Ae][se];_e[se]=Math.max(_e[se],pe)}var fe={left:_e.l,top:_e.t,right:i.width-_e.r,bottom:i.height-_e.b},Re=l.maxShift||ye*(fe[l.side]-ue[l.side]),We=0;if(Re<0)We=Re;else{var Ke=l.offsetLeft||0,tt=l.offsetTop||0;ue.left-=Ke,ue.right-=Ke,ue.top-=tt,ue.bottom-=tt,l.selection.each(function(){var Ge=tL.bBox(this);pb.bBoxIntersect(ue,Ge,V)&&(We=Math.max(We,ye*(Ge[l.side]-ue[ne])+V))}),We=Math.min(Re,We),n._titleScoot=Math.abs(We)}if(We>0||Re<0){var at={left:[-We,0],right:[We,0],top:[0,-We],bottom:[0,We]}[l.side];Y.attr("transform",z1e(at[0],at[1]))}}}$.call(me,ie);function le(we,oe){we.text(oe).on("mouseover.opacity",function(){zw.select(this).transition().duration(I1e.SHOW_PLACEHOLDER).style("opacity",1)}).on("mouseout.opacity",function(){zw.select(this).transition().duration(I1e.HIDE_PLACEHOLDER).style("opacity",0)})}if(N&&(p?$.on(".opacity",null):(le($,o),v=!0),$.call(Iw.makeEditable,{gd:e}).on("edit",function(we){s!==void 0?vH.call("_guiRestyle",e,a,we,s):vH.call("_guiRelayout",e,a,we)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(me)}).on("input",function(we){this.text(we||" ").call(Iw.positionText,u.x,u.y)}),S)){if(S&&!p){var te=$.node().getBBox(),Ee=te.y+te.height+yH*z;ie.attr("y",Ee)}D?ie.on(".opacity",null):(le(ie,C),F=!0),ie.call(Iw.makeEditable,{gd:e}).on("edit",function(we){vH.call("_guiRelayout",e,"title.subtitle.text",we)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(me)}).on("input",function(we){this.text(we||" ").call(Iw.positionText,ie.attr("x"),ie.attr("y"))})}return $.classed("js-placeholder",v),ie&&!ie.empty()&&ie.classed("js-placeholder",F),c}B1e.exports={draw:Y6t,SUBTITLE_PADDING_EM:yH,SUBTITLE_PADDING_MATHJAX_EM:mH}});var $1=K((VNr,U1e)=>{"use strict";var X6t=No(),Z6t=J3().utcFormat,cf=St(),K6t=cf.numberFormat,j1=Hs(),Ug=cf.cleanNumber,J6t=cf.ms2DateTime,q1e=cf.dateTime2ms,W1=cf.ensureNumber,O1e=cf.isArrayOrTypedArray,Gg=(Il(),or(Bl)),iL=Gg.FP_SAFE,Wv=Gg.BADNUM,Q6t=Gg.LOG_CLIP,eMt=Gg.ONEWEEK,nL=Gg.ONEDAY,aL=Gg.ONEHOUR,N1e=Gg.ONEMIN,V1e=Gg.ONESEC,oL=Vf(),uL=(jc(),or(Hc)),sL=uL.HOUR_PATTERN,lL=uL.WEEKDAY_PATTERN;function C6(e){return Math.pow(10,e)}function gH(e){return e!=null}U1e.exports=function(t,r){r=r||{};var i=t._id||"x",n=i.charAt(0);function a(b,M){if(b>0)return Math.log(b)/Math.LN10;if(b<=0&&M&&t.range&&t.range.length===2){var x=t.range[0],T=t.range[1];return .5*(x+T-2*Q6t*Math.abs(x-T))}else return Wv}function o(b,M,x,T){if((T||{}).msUTC&&j1(b))return+b;var A=q1e(b,x||t.calendar);if(A===Wv)if(j1(b)){b=+b;var g=Math.floor(cf.mod(b+.05,1)*10),E=Math.round(b-g/10);A=q1e(new Date(E))+g/10}else return Wv;return A}function s(b,M,x){return J6t(b,M,x||t.calendar)}function l(b){return t._categories[Math.round(b)]}function u(b){if(gH(b)){if(t._categoriesMap===void 0&&(t._categoriesMap={}),t._categoriesMap[b]!==void 0)return t._categoriesMap[b];t._categories.push(typeof b=="number"?String(b):b);var M=t._categories.length-1;return t._categoriesMap[b]=M,M}return Wv}function f(b,M){for(var x=new Array(M),T=0;Tt.range[1]&&(x=!x);for(var T=x?-1:1,A=T*b,g=0,E=0;EC)g=E+1;else{g=A<(S+C)/2?E:E+1;break}}var k=t._B[g]||0;return isFinite(k)?p(b,t._m2,k):0},m=function(b){var M=t._rangebreaks.length;if(!M)return v(b,t._m,t._b);for(var x=0,T=0;Tt._rangebreaks[T].pmax&&(x=T+1);return v(b,t._m2,t._B[x])}}t.c2l=t.type==="log"?a:W1,t.l2c=t.type==="log"?C6:W1,t.l2p=y,t.p2l=m,t.c2p=t.type==="log"?function(b,M){return y(a(b,M))}:y,t.p2c=t.type==="log"?function(b){return C6(m(b))}:m,["linear","-"].indexOf(t.type)!==-1?(t.d2r=t.r2d=t.d2c=t.r2c=t.d2l=t.r2l=Ug,t.c2d=t.c2r=t.l2d=t.l2r=W1,t.d2p=t.r2p=function(b){return t.l2p(Ug(b))},t.p2d=t.p2r=m,t.cleanPos=W1):t.type==="log"?(t.d2r=t.d2l=function(b,M){return a(Ug(b),M)},t.r2d=t.r2c=function(b){return C6(Ug(b))},t.d2c=t.r2l=Ug,t.c2d=t.l2r=W1,t.c2r=a,t.l2d=C6,t.d2p=function(b,M){return t.l2p(t.d2r(b,M))},t.p2d=function(b){return C6(m(b))},t.r2p=function(b){return t.l2p(Ug(b))},t.p2r=m,t.cleanPos=W1):t.type==="date"?(t.d2r=t.r2d=cf.identity,t.d2c=t.r2c=t.d2l=t.r2l=o,t.c2d=t.c2r=t.l2d=t.l2r=s,t.d2p=t.r2p=function(b,M,x){return t.l2p(o(b,0,x))},t.p2d=t.p2r=function(b,M,x){return s(m(b),M,x)},t.cleanPos=function(b){return cf.cleanDate(b,Wv,t.calendar)}):t.type==="category"?(t.d2c=t.d2l=u,t.r2d=t.c2d=t.l2d=l,t.d2r=t.d2l_noadd=h,t.r2c=function(b){var M=d(b);return M!==void 0?M:t.fraction2r(.5)},t.l2r=t.c2r=W1,t.r2l=d,t.d2p=function(b){return t.l2p(t.r2c(b))},t.p2d=function(b){return l(m(b))},t.r2p=t.d2p,t.p2r=m,t.cleanPos=function(b){return typeof b=="string"&&b!==""?b:W1(b)}):t.type==="multicategory"&&(t.r2d=t.c2d=t.l2d=l,t.d2r=t.d2l_noadd=h,t.r2c=function(b){var M=h(b);return M!==void 0?M:t.fraction2r(.5)},t.r2c_just_indices=c,t.l2r=t.c2r=W1,t.r2l=h,t.d2p=function(b){return t.l2p(t.r2c(b))},t.p2d=function(b){return l(m(b))},t.r2p=t.d2p,t.p2r=m,t.cleanPos=function(b){return Array.isArray(b)||typeof b=="string"&&b!==""?b:W1(b)},t.setupMultiCategory=function(b){var M=t._traceIndices,x,T,A=t._matchGroup;if(A&&t._categories.length===0){for(var g in A)if(g!==i){var E=r[oL.id2name(g)];M=M.concat(E._traceIndices)}}var S=[[0,{}],[0,{}]],C=[];for(x=0;xE[1]&&(T[g?0:1]=x,A[1]=E[1]),A[0]>=A[1])if(M!==void 0){var S=E[0]+1;x!==void 0&&(S=Math.min(S,E[1])),T[g?0:1]=t.l2r(S)}else x!==void 0&&(T[g?1:0]=t.l2r(E[1]-1))}},t.cleanRange=function(b,M){t._cleanRange(b,M),t.limitRange(b)},t._cleanRange=function(b,M){M||(M={}),b||(b="range");var x=cf.nestedProperty(t,b).get(),T,A;if(t.type==="date"?A=cf.dfltRange(t.calendar):n==="y"?A=uL.DFLTRANGEY:t._name==="realaxis"?A=[0,1]:A=M.dfltRange||uL.DFLTRANGEX,A=A.slice(),(t.rangemode==="tozero"||t.rangemode==="nonnegative")&&(A[0]=0),!x||x.length!==2){cf.nestedProperty(t,b).set(A);return}var g=x[0]===null,E=x[1]===null;for(t.type==="date"&&!t.autorange&&(x[0]=cf.cleanDate(x[0],Wv,t.calendar),x[1]=cf.cleanDate(x[1],Wv,t.calendar)),T=0;T<2;T++)if(t.type==="date"){if(!cf.isDateTime(x[T],t.calendar)){t[b]=A;break}if(t.r2l(x[0])===t.r2l(x[1])){var S=cf.constrain(t.r2l(x[0]),cf.MIN_MS+1e3,cf.MAX_MS-1e3);x[0]=t.l2r(S-1e3),x[1]=t.l2r(S+1e3);break}}else{if(!j1(x[T]))if(!(g||E)&&j1(x[1-T]))x[T]=x[1-T]*(T?10:.1);else{t[b]=A;break}if(x[T]<-iL?x[T]=-iL:x[T]>iL&&(x[T]=iL),x[0]===x[1]){var C=Math.max(1,Math.abs(x[0]*1e-6));x[0]-=C,x[1]+=C}}},t.setScale=function(b){var M=r._size;if(t.overlaying){var x=oL.getFromId({_fullLayout:r},t.overlaying);t.domain=x.domain}var T=b&&t._r?"_r":"range",A=t.calendar;t.cleanRange(T);var g=t.r2l(t[T][0],A),E=t.r2l(t[T][1],A),S=n==="y";if(S?(t._offset=M.t+(1-t.domain[1])*M.h,t._length=M.h*(t.domain[1]-t.domain[0]),t._m=t._length/(g-E),t._b=-t._m*E):(t._offset=M.l+t.domain[0]*M.w,t._length=M.w*(t.domain[1]-t.domain[0]),t._m=t._length/(E-g),t._b=-t._m*g),t._rangebreaks=[],t._lBreaks=0,t._m2=0,t._B=[],t.rangebreaks){var C,k;if(t._rangebreaks=t.locateBreaks(Math.min(g,E),Math.max(g,E)),t._rangebreaks.length){for(C=0;CE&&(D=!D),D&&t._rangebreaks.reverse();var F=D?-1:1;for(t._m2=F*t._length/(Math.abs(E-g)-t._lBreaks),t._B.push(-t._m2*(S?E:g)),C=0;CA&&(A+=7,gA&&(A+=24,g=T&&g=T&&b=q.min&&(Wq.max&&(q.max=X),Z=!1)}Z&&E.push({min:W,max:X})}};for(x=0;x{"use strict";var G1e=Hs(),xH=St(),tMt=(Il(),or(Bl)).BADNUM,fL=xH.isArrayOrTypedArray,rMt=xH.isDateTime,iMt=xH.cleanNumber,H1e=Math.round;W1e.exports=function(t,r,i){var n=t,a=i.noMultiCategory;if(fL(n)&&!n.length)return"-";if(!a&&lMt(n))return"multicategory";if(a&&Array.isArray(n[0])){for(var o=[],s=0;sa*2}function j1e(e){return Math.max(1,(e-1)/1e3)}function sMt(e,t){for(var r=e.length,i=j1e(r),n=0,a=0,o={},s=0;sn*2}function lMt(e){return fL(e[0])&&fL(e[1])}});var $v=K((GNr,eme)=>{"use strict";var uMt=No(),Z1e=Hs(),Hg=St(),cL=(Il(),or(Bl)).FP_SAFE,fMt=Ho(),cMt=Is(),K1e=Vf(),hMt=K1e.getFromId,dMt=K1e.isLinked;eme.exports={applyAutorangeOptions:Q1e,getAutoRange:bH,makePadFn:_H,doAutoRange:vMt,findExtremes:mMt,concatExtremes:TH};function bH(e,t){var r,i,n=[],a=e._fullLayout,o=_H(a,t,0),s=_H(a,t,1),l=TH(e,t),u=l.min,f=l.max;if(u.length===0||f.length===0)return Hg.simpleMap(t.range,t.r2l);var c=u[0].val,h=f[0].val;for(r=1;r0&&(E=_-o(x)-s(T),E>b?S/E>M&&(A=x,g=T,M=S/E):S/_>M&&(A={val:x.val,nopad:1},g={val:T.val,nopad:1},M=S/_));function C(I,L){return Math.max(I,s(L))}if(c===h){var k=c-1,D=c+1;if(m)if(c===0)n=[0,1];else{var F=(c>0?f:u).reduce(C,0),P=c/(1-Math.min(.5,F/_));n=c>0?[0,P]:[P,0]}else w?n=[Math.max(0,k),Math.max(1,D)]:n=[k,D]}else m?(A.val>=0&&(A={val:0,nopad:1}),g.val<=0&&(g={val:0,nopad:1})):w&&(A.val-M*o(A)<0&&(A={val:0,nopad:1}),g.val<=0&&(g={val:1,nopad:1})),M=(g.val-A.val-$1e(t,x.val,T.val))/(_-o(A)-s(g)),n=[A.val-M*o(A),g.val+M*s(g)];return n=Q1e(n,t),t.limitRange&&t.limitRange(),p&&n.reverse(),Hg.simpleMap(n,t.l2r||Number)}function $1e(e,t,r){var i=0;if(e.rangebreaks)for(var n=e.locateBreaks(t,r),a=0;a0?r.ppadplus:r.ppadminus)||r.ppad||0),x=b((e._m>0?r.ppadminus:r.ppadplus)||r.ppad||0),T=b(r.vpadplus||r.vpad),A=b(r.vpadminus||r.vpad);if(!u){if(w=1/0,_=-1/0,l)for(c=0;c0&&(w=h),h>_&&h-cL&&(w=h),h>_&&h=S;c--)E(c);return{min:i,max:n,opts:r}}function wH(e,t,r,i){J1e(e,t,r,i,yMt)}function AH(e,t,r,i){J1e(e,t,r,i,gMt)}function J1e(e,t,r,i,n){for(var a=i.tozero,o=i.extrapad,s=!0,l=0;l=r&&(u.extrapad||!o)){s=!1;break}else n(t,u.val)&&u.pad<=r&&(o||!u.extrapad)&&(e.splice(l,1),l--)}if(s){var f=a&&t===0;e.push({val:t,pad:f?0:r,extrapad:f?!1:o})}}function X1e(e){return Z1e(e)&&Math.abs(e)=t}function xMt(e,t){var r=t.autorangeoptions;return r&&r.minallowed!==void 0&&hL(t,r.minallowed,r.maxallowed)?r.minallowed:r&&r.clipmin!==void 0&&hL(t,r.clipmin,r.clipmax)?Math.max(e,t.d2l(r.clipmin)):e}function bMt(e,t){var r=t.autorangeoptions;return r&&r.maxallowed!==void 0&&hL(t,r.minallowed,r.maxallowed)?r.maxallowed:r&&r.clipmax!==void 0&&hL(t,r.clipmin,r.clipmax)?Math.min(e,t.d2l(r.clipmax)):e}function hL(e,t,r){return t!==void 0&&r!==void 0?(t=e.d2l(t),r=e.d2l(r),t=l&&(a=l,r=l),o<=l&&(o=l,i=l)}}return r=xMt(r,t),i=bMt(i,t),[r,i]}});var Cs=K((jNr,wme)=>{"use strict";var qp=No(),Cc=Hs(),Bw=yf(),F6=Ho(),il=St(),qw=il.strTranslate,mb=Du(),_Mt=vb(),L6=wo(),Qd=Is(),wMt=Ph(),tme=YG(),HNr=(jc(),or(Hc)),Qh=(Il(),or(Bl)),AMt=Qh.ONEMAXYEAR,vL=Qh.ONEAVGYEAR,mL=Qh.ONEMINYEAR,TMt=Qh.ONEMAXQUARTER,kH=Qh.ONEAVGQUARTER,yL=Qh.ONEMINQUARTER,MMt=Qh.ONEMAXMONTH,Ow=Qh.ONEAVGMONTH,gL=Qh.ONEMINMONTH,ep=Qh.ONEWEEK,V0=Qh.ONEDAY,jg=V0/2,X1=Qh.ONEHOUR,P6=Qh.ONEMIN,xL=Qh.ONESEC,SMt=Qh.ONEMILLI,EMt=Qh.ONEMICROSEC,yb=Qh.MINUS_SIGN,_L=Qh.BADNUM,CH={K:"zeroline"},DH={K:"gridline",L:"path"},FH={K:"minor-gridline",L:"path"},hme={K:"tick",L:"path"},rme={K:"tick",L:"text"},ime={width:["x","r","l","xl","xr"],height:["y","t","b","yt","yb"],right:["r","xr"],left:["l","xl"],top:["t","yt"],bottom:["b","yb"]},wL=($c(),or(Wc)),D6=wL.MID_SHIFT,gb=wL.CAP_SHIFT,z6=wL.LINE_SPACING,kMt=wL.OPPOSITE_SIDE,bL=3,wa=wme.exports={};wa.setConvert=$1();var CMt=Rw(),Z1=Vf(),DMt=Z1.idSort,FMt=Z1.isLinked;wa.id2name=Z1.id2name;wa.name2id=Z1.name2id;wa.cleanId=Z1.cleanId;wa.list=Z1.list;wa.listIds=Z1.listIds;wa.getFromId=Z1.getFromId;wa.getFromTrace=Z1.getFromTrace;var dme=$v();wa.getAutoRange=dme.getAutoRange;wa.findExtremes=dme.findExtremes;var LMt=1e-4;function IH(e){var t=(e[1]-e[0])*LMt;return[e[0]-t,e[1]+t]}function PMt(e,t,r){if(![r,e,t].every(Cc)||r===0)return e;let i=Math.round((e-t)/r),n=t+i*r;return e!==n&&Math.abs(e-n)h+" domain")),l=l.concat(a||[]),f.length>o?(il.warn("Array attribute "+u+" has more entries than expected, truncating to "+o),f=f.slice(0,o)):f.length2e-6||((r-e._forceTick0)/e._minDtick%1+1.000001)%1>2e-6)&&(e._minDtick=0))};wa.saveRangeInitial=function(e,t){for(var r=wa.list(e,"",!0),i=!1,n=0;nc*.3||u(i)||u(n))){var h=r.dtick/2;e+=e+ho){var s=Number(r.slice(1));a.exactYears>o&&s%12===0?e=wa.tickIncrement(e,"M6","reverse")+V0*1.5:a.exactMonths>o?e=wa.tickIncrement(e,"M1","reverse")+V0*15.5:e-=jg;var l=wa.tickIncrement(e,r);if(l<=i)return l}return e}wa.prepMinorTicks=function(e,t,r){var c,h;if(!((c=t.minor)!=null&&c.dtick)){delete e.dtick;var i=t.dtick&&Cc(t._tmin),n;if(i){var a=wa.tickIncrement(t._tmin,t.dtick,!0);n=[t._tmin,a*.99+t._tmin*.01]}else{var o=il.simpleMap(t.range,t.r2l);n=[o[0],.8*o[0]+.2*o[1]]}if(e.range=il.simpleMap(n,t.l2r),e._isMinor=!0,wa.prepTicks(e,r),i){var s=Cc(t.dtick),l=Cc(e.dtick),u=s?t.dtick:+t.dtick.substring(1),f=l?e.dtick:+e.dtick.substring(1);s&&l?MH(u,f)?u===2*ep&&f===2*V0&&(e.dtick=ep):u===2*ep&&f===3*V0?e.dtick=ep:u===ep&&!(t._input.minor||{}).nticks?e.dtick=V0:ome(u/f,2.5)?e.dtick=u/2:e.dtick=u:String(t.dtick).charAt(0)==="M"?l?e.dtick="M1":MH(u,f)?u>=12&&f===2&&(e.dtick="M3"):e.dtick=t.dtick:String(e.dtick).charAt(0)==="L"?String(t.dtick).charAt(0)==="L"?MH(u,f)||(e.dtick=ome(u/f,2.5)?t.dtick/2:t.dtick):e.dtick="D1":e.dtick==="D2"&&+t.dtick>1&&(e.dtick=1)}e.range=t.range}((h=t.minor)==null?void 0:h._tick0Init)===void 0&&(e.tick0=t.tick0),t._useTicklabelIndex&&(RH(e),t.minor._tickround=e._tickround)};function MH(e,t){return Math.abs((e/t+.5)%1-.5)<.001}function ome(e,t){return Math.abs(e/t-1)<.001}wa.prepTicks=function(e,t){var r=il.simpleMap(e.range,e.r2l,void 0,void 0,t);if(e.tickmode==="auto"||!e.dtick){var i=e.nticks,n;i||(e.type==="category"||e.type==="multicategory"?(n=e.tickfont?il.bigFont(e.tickfont.size||12):15,i=e._length/n):(n=e._id.charAt(0)==="y"?40:80,i=il.constrain(e._length/n,4,9)+1),e._name==="radialaxis"&&(i*=2)),e.minor&&e.minor.tickmode!=="array"||e.tickmode==="array"&&(i*=100),e._roughDTick=Math.abs(r[1]-r[0])/i,wa.autoTicks(e,e._roughDTick),e._minDtick>0&&e.dtick0?(s=i-1,l=i):(s=i,l=i),a=e[s].value,o=e[l].value}var u=Math.abs(o-a),f=r||u,c=0;e[i].periodEndTick!=null?c=u:f>=mL?u>=mL&&u<=AMt?c=u:c=vL:r===kH&&f>=yL?u>=yL&&u<=TMt?c=u:c=kH:f>=gL?u>=gL&&u<=MMt?c=u:c=Ow:r===ep&&f>=ep?c=ep:f>=V0?c=V0:r===jg&&f>=jg?c=jg:r===X1&&f>=X1&&(c=X1);var h;c>=u&&(c=u,h=!0);var d=n+c;if(t.rangebreaks&&c>0){for(var p=84,v=0,y=0;yep&&(c=u)}(c>0||i===0)&&(e[i].periodX=n+c/2)}}wa.calcTicks=function(t,r){var i=t.type,n=t.calendar,a=t.ticklabelstep,o=t.ticklabelmode==="period",s=t.range[0]>t.range[1],l=!t.ticklabelindex||il.isArrayOrTypedArray(t.ticklabelindex)?t.ticklabelindex:[t.ticklabelindex];t._useTicklabelIndex=l!=null&&l!==0;for(var u=il.simpleMap(t.range,t.r2l,void 0,void 0,r),f=u[1]=(b?0:1);M--){var x=!M;M?(t._dtickInit=t.dtick,t._tick0Init=t.tick0):b&&(t.minor._dtickInit=t.minor.dtick,t.minor._tick0Init=t.minor.tick0);var T=M?t:il.extendFlat({},t,b?t.minor:{minor:{}});if(x?wa.prepMinorTicks(T,t,r):wa.prepTicks(T,r),T.tickmode==="array"){M?(y=[],p=sme(t,!x)):(m=[],v=sme(t,!x));continue}if(T.tickmode==="sync"){y=[],p=OMt(t);continue}var A=IH(u),g=A[0],E=A[1],S=Cc(T.dtick),C=i==="log"&&!(S||T.dtick.charAt(0)==="L"),k=wa.tickFirst(T,r);if(M){if(t._tmin=k,k=E:F<=E;F=wa.tickIncrement(F,L,f,n)){if(M&&P++,T.rangebreaks&&!f){if(F=h)break}if(y.length>d||F===D)break;D=F;var B={value:PMt(F,z,L)};M?(F===k&&(B.first=!0),C&&F!==(F|0)&&(B.simpleLabel=!0),a>1&&P%a&&(B.skipLabel=!0),y.push(B)):(B.minor=!0,m.push(B))}}function O(me,ze){let ke=ze.find(te=>te.value===me.value);if(ke!=null)return ke;let le=1e7;for(let te=0;teO(ke,y)==null),ze=y.concat(me).sort((ke,le)=>ke.value-le.value);o&&y.length&&(y[0].skipLabel=!0),y.forEach(function(ke){ke.skipLabel||(l.forEach(le=>{if(le<0){let te=ze.filter(oe=>oe.value<=ke.value),Ee=Math.abs(le),we=te.length-Ee-1;if(EeEe.value>=ke.value);if(leke.skipLabel=!1)}if(_){var W=t.minor.ticks==="inside"&&t.ticks==="outside"||t.minor.ticks==="outside"&&t.ticks==="inside";if(!W){for(var X=[],Z=0;Z-1;H--){if(y[H].drop){y.splice(H,1);continue}y[H].value=EH(y[H].value,t);var U=t.c2p(y[H].value);(q?N>U-Q:Nh||leh&&(ke.periodX=h),len&&pn&&yvL)t/=vL,i=n(10),e.dtick="M"+12*Y1(t,i,dL);else if(a>Ow)t/=Ow,e.dtick="M"+Y1(t,1,lme);else if(a>V0){if(e.dtick=Y1(t,V0,e._hasDayOfWeekBreaks?[1,2,7,14]:NMt),!r){var o=wa.getTickFormat(e),s=e.ticklabelmode==="period";s&&(e._rawTick0=e.tick0),/%[uVW]/.test(o)?e.tick0=il.dateTick0(e.calendar,2):e.tick0=il.dateTick0(e.calendar,1),s&&(e._dowTick0=e.tick0)}}else a>X1?e.dtick=Y1(t,X1,lme):a>P6?e.dtick=Y1(t,P6,ume):a>xL?e.dtick=Y1(t,xL,ume):(i=n(10),e.dtick=Y1(t,i,dL))}else if(e.type==="log"){e.tick0=0;var l=il.simpleMap(e.range,e.r2l);if(e._isMinor&&(t*=1.5),t>.7)e.dtick=Math.ceil(t);else if(Math.abs(l[1]-l[0])<1){var u=1.5*Math.abs((l[1]-l[0])/t);t=Math.abs(Math.pow(10,l[1])-Math.pow(10,l[0]))/u,i=n(10),e.dtick="L"+Y1(t,i,dL)}else e.dtick=t>.3?"D2":"D1"}else e.type==="category"||e.type==="multicategory"?(e.tick0=0,e.dtick=Math.ceil(Math.max(t,1))):NH(e)?(e.tick0=0,i=1,e.dtick=Y1(t,i,VMt)):(e.tick0=0,i=n(10),e.dtick=Y1(t,i,dL));if(e.dtick===0&&(e.dtick=1),!Cc(e.dtick)&&typeof e.dtick!="string"){var f=e.dtick;throw e.dtick=1,"ax.dtick error: "+String(f)}};function RH(e){var t=e.dtick;if(e._tickexponent=0,!Cc(t)&&typeof t!="string"&&(t=1),(e.type==="category"||e.type==="multicategory")&&(e._tickround=null),e.type==="date"){var r=e.r2l(e.tick0),i=e.l2r(r).replace(/(^-|i)/g,""),n=i.length;if(String(t).charAt(0)==="M")n>10||i.slice(5)!=="01-01"?e._tickround="d":e._tickround=+t.slice(1)%12===0?"y":"m";else if(t>=V0&&n<=10||t>=V0*15)e._tickround="d";else if(t>=P6&&n<=16||t>=X1)e._tickround="M";else if(t>=xL&&n<=19||t>=P6)e._tickround="S";else{var a=e.l2r(r+t).replace(/^-/,"").length;e._tickround=Math.max(n,a)-20,e._tickround<0&&(e._tickround=4)}}else if(Cc(t)||t.charAt(0)==="L"){var o=e.range.map(e.r2d||Number);Cc(t)||(t=Number(t.slice(1))),e._tickround=2-Math.floor(Math.log(t)/Math.LN10+.01);var s=Math.max(Math.abs(o[0]),Math.abs(o[1])),l=Math.floor(Math.log(s)/Math.LN10+.01),u=e.minexponent===void 0?3:e.minexponent;Math.abs(l)>u&&(Nw(e.exponentformat)&&e.exponentformat!=="SI extended"&&!BH(l)||Nw(e.exponentformat)&&e.exponentformat==="SI extended"&&!qH(l)?e._tickexponent=3*Math.round((l-1)/3):e._tickexponent=l)}else e._tickround=null}wa.tickIncrement=function(e,t,r,i){var n=r?-1:1;if(Cc(t))return il.increment(e,n*t);var a=t.charAt(0),o=n*Number(t.slice(1));if(a==="M")return il.incrementMonth(e,o,i);if(a==="L")return Math.log(Math.pow(10,e)+o)/Math.LN10;if(a==="D"){var s=t==="D2"?mme:vme,l=e+n*.01,u=il.roundUp(il.mod(l,1),s,r);return Math.floor(l)+Math.log(qp.round(Math.pow(10,u),1))/Math.LN10}throw"unrecognized dtick "+String(t)};wa.tickFirst=function(e,t){var r=e.r2l||Number,i=il.simpleMap(e.range,r,void 0,void 0,t),n=i[1]=0&&b<=e._length?_:null};if(l&&il.isArrayOrTypedArray(e.ticktext)){var p=il.simpleMap(e.range,e.r2l),v=(Math.abs(p[1]-p[0])-(e._lBreaks||0))/1e4;for(h=0;h"+s;else{var u=R6(e),f=e._trueSide||e.side;(!u&&f==="top"||u&&f==="bottom")&&(o+="
")}t.text=o}function GMt(e,t,r,i,n){var a=e.dtick,o=t.x,s=e.tickformat,l=typeof a=="string"&&a.charAt(0);if(n==="never"&&(n=""),i&&l!=="L"&&(a="L3",l="L"),s||l==="L")t.text=I6(Math.pow(10,o),e,n,i);else if(Cc(a)||l==="D"&&(e.minorloglabels==="complete"||il.mod(o+.01,1)<.1)){var u;e.minorloglabels==="complete"&&!(il.mod(o+.01,1)<.1)&&(u=!0,t.fontSize*=.75);var f=Math.pow(10,o).toExponential(0),c=f.split("e"),h=+c[1],d=Math.abs(h),p=e.exponentformat;p==="power"||Nw(p)&&p!=="SI extended"&&BH(h)||Nw(p)&&p==="SI extended"&&qH(h)?(t.text=c[0],d>0&&(t.text+="x10"),t.text==="1x10"&&(t.text="10"),h!==0&&h!==1&&(t.text+=""+(h>0?"":yb)+d+""),t.fontSize*=1.25):(p==="e"||p==="E")&&d>2?t.text=c[0]+p+(h>0?"+":yb)+d:(t.text=I6(Math.pow(10,o),e,"","fakehover"),a==="D1"&&e._id.charAt(0)==="y"&&(t.dy-=t.fontSize/6))}else if(l==="D")t.text=e.minorloglabels==="none"?"":String(Math.round(Math.pow(10,il.mod(o,1)))),t.fontSize*=.75;else throw"unrecognized dtick "+String(a);if(e.dtick==="D1"){var v=String(t.text).charAt(0);(v==="0"||v==="1")&&(e._id.charAt(0)==="y"?t.dx-=t.fontSize/4:(t.dy+=t.fontSize/2,t.dx+=(e.range[1]>e.range[0]?1:-1)*t.fontSize*(o<0?.5:.25)))}}function HMt(e,t){var r=e._categories[Math.round(t.x)];r===void 0&&(r=""),t.text=String(r)}function jMt(e,t,r){var i=Math.round(t.x),n=e._categories[i]||[],a=n[1]===void 0?"":String(n[1]),o=n[0]===void 0?"":String(n[0]);r?t.text=o+" - "+a:(t.text=a,t.text2=o)}function WMt(e,t,r,i,n){n==="never"?n="":e.showexponent==="all"&&Math.abs(t.x/e.dtick)<1e-6&&(n="hide"),t.text=I6(t.x,e,n,i)}function $Mt(e,t,r,i,n){if(e.thetaunit==="radians"&&!r){var a=t.x/180;if(a===0)t.text="0";else{var o=YMt(a);if(o[1]>=100)t.text=I6(il.deg2rad(t.x),e,n,i);else{var s=t.x<0;o[1]===1?o[0]===1?t.text="\u03C0":t.text=o[0]+"\u03C0":t.text=["",o[0],"","\u2044","",o[1],"","\u03C0"].join(""),s&&(t.text=yb+t.text)}}}else t.text=I6(t.x,e,n,i)}function YMt(e){function t(s,l){return Math.abs(s-l)<=1e-6}function r(s,l){return t(l,0)?s:r(l,s%l)}function i(s){for(var l=1;!t(Math.round(s*l)/l,s);)l*=10;return l}var n=i(e),a=e*n,o=Math.abs(r(a,n));return[Math.round(a/o),Math.round(n/o)]}var gme=["f","p","n","\u03BC","m","","k","M","G","T"],XMt=["q","r","y","z","a",...gme,"P","E","Z","Y","R","Q"],Nw=e=>["SI","SI extended","B"].includes(e);function BH(e){return e>14||e<-15}function qH(e){return e>32||e<-30}function ZMt(e,t){return Nw(t)?!!(t==="SI extended"&&qH(e)||t!=="SI extended"&&BH(e)):!1}function I6(e,t,r,i){var n=e<0,a=t._tickround,o=r||t.exponentformat||"B",s=t._tickexponent,l=wa.getTickFormat(t),u=t.separatethousands;if(i){var f={exponentformat:o,minexponent:t.minexponent,dtick:t.showexponent==="none"?t.dtick:Cc(e)&&Math.abs(e)||1,range:t.showexponent==="none"?t.range.map(t.r2d):[0,e||1]};RH(f),a=(Number(f._tickround)||0)+4,s=f._tickexponent,t.hoverformat&&(l=t.hoverformat)}if(l)return t._numFormat(l)(e).replace(/-/g,yb);o==="none"&&(s=0),e=Math.abs(e);let c=Math.pow(10,-a)/2;if(e"+h+"":o==="B"&&s===9?e+="B":Nw(o)&&(e+=o==="SI extended"?XMt[s/3+10]:gme[s/3+5])}return n?yb+e:e}wa.getTickFormat=function(e){var t;function r(l){return typeof l!="string"?l:Number(l.replace("M",""))*Ow}function i(l,u){var f=["L","D"];if(typeof l==typeof u){if(typeof l=="number")return l-u;var c=f.indexOf(l.charAt(0)),h=f.indexOf(u.charAt(0));return c===h?Number(l.replace(/(L|D)/g,""))-Number(u.replace(/(L|D)/g,"")):c-h}else return typeof l=="number"?1:-1}function n(l,u,f){var c=f||function(p){return p},h=u[0],d=u[1];return(!h&&typeof h!="number"||c(h)<=c(l))&&(!d&&typeof d!="number"||c(d)>=c(l))}function a(l,u){var f=u[0]===null,c=u[1]===null,h=i(l,u[0])>=0,d=i(l,u[1])<=0;return(f||h)&&(c||d)}var o,s;if(e.tickformatstops&&e.tickformatstops.length>0)switch(e.type){case"date":case"linear":{for(t=0;t=0&&n.unshift(n.splice(f,1).shift())}});var s={false:{left:0,right:0}};return il.syncOrAsync(n.map(function(l){return function(){if(l){var u=wa.getFromId(e,l);r||(r={}),r.axShifts=s,r.overlayingShiftedAx=o;var f=wa.drawOne(e,u,r);return u._shiftPusher&&zH(u,u._fullDepth||0,s,!0),u._r=u.range.slice(),u._rl=il.simpleMap(u._r,u.r2l),f}}}))};wa.drawOne=function(e,t,r){r=r||{};var i=r.axShifts||{},n=r.overlayingShiftedAx||[],a,o,s;t.setScale();var l=e._fullLayout,u=t._id,f=u.charAt(0),c=wa.counterLetter(u),h=l._plots[t._mainSubplot],d=t.zerolinelayer==="above traces";if(!h)return;if(t._shiftPusher=t.autoshift||n.indexOf(t._id)!==-1||n.indexOf(t.overlaying)!==-1,t._shiftPusher&t.anchor==="free"){var p=t.linewidth/2||0;t.ticks==="inside"&&(p+=t.ticklen),zH(t,p,i,!0),zH(t,t.shift||0,i,!1)}(r.skipTitle!==!0||t._shift===void 0)&&(t._shift=uSt(t,i));var v=h[f+"axislayer"],y=t._mainLinePosition,m=y+=t._shift,w=t._mainMirrorPosition,_=t._vals=wa.calcTicks(t),b=[t.mirror,m,w].join("_");for(a=0;a<_.length;a++)_[a].axInfo=b;t._selections={},t._tickAngles&&(t._prevTickAngles=t._tickAngles),t._tickAngles={},t._depth=null;var M={};function x(te){var Ee=u+(te||"tick");return M[Ee]||(M[Ee]=eSt(t,Ee,m)),M[Ee]}if(t.visible){var T=wa.makeTransTickFn(t),A=wa.makeTransTickLabelFn(t),g,E,S=t.ticks==="inside",C=t.ticks==="outside";if(t.tickson==="boundaries"){var k=KMt(t,_);E=wa.clipEnds(t,k),g=S?E:k}else E=wa.clipEnds(t,_),g=S&&t.ticklabelmode!=="period"?E:_;var D=t._gridVals=E,F=QMt(t,_);if(!l._hasOnlyLargeSploms){var P=t._subplotsWith,I={};for(a=0;a0?Y.bottom-we:0,oe))));var ue=0,_e=0;if(t._shiftPusher&&(ue=Math.max(oe,Y.height>0?te==="l"?we-Y.left:Y.right-we:0),t.title.text!==l._dfltTitle[f]&&(_e=(t._titleStandoff||0)+(t._titleScoot||0),te==="l"&&(_e+=cme(t))),t._fullDepth=Math.max(ue,_e)),t.automargin){ne={x:0,y:0,r:0,l:0,t:0,b:0};var xe=[0,1],Ae=typeof t._shift=="number"?t._shift:0;if(f==="x"){if(te==="b"?ne[te]=t._depth:(ne[te]=t._depth=Math.max(Y.width>0?we-Y.top:0,oe),xe.reverse()),Y.width>0){var se=Y.right-(t._offset+t._length);se>0&&(ne.xr=1,ne.r=se);var pe=t._offset-Y.left;pe>0&&(ne.xl=0,ne.l=pe)}}else if(te==="l"?(t._depth=Math.max(Y.height>0?we-Y.left:0,oe),ne[te]=t._depth-Ae):(t._depth=Math.max(Y.height>0?Y.right-we:0,oe),ne[te]=t._depth+Ae,xe.reverse()),Y.height>0){var fe=Y.bottom-(t._offset+t._length);fe>0&&(ne.yb=0,ne.b=fe);var Re=t._offset-Y.top;Re>0&&(ne.yt=1,ne.t=Re)}ne[c]=t.anchor==="free"?t.position:t._anchorAxis.domain[xe[0]],t.title.text!==l._dfltTitle[f]&&(ne[te]+=cme(t)+(t.title.standoff||0)),t.mirror&&t.anchor!=="free"&&(ye={x:0,y:0,r:0,l:0,t:0,b:0},ye[Ee]=t.linewidth,t.mirror&&t.mirror!==!0&&(ye[Ee]+=oe),t.mirror===!0||t.mirror==="ticks"?ye[c]=t._anchorAxis.domain[xe[1]]:(t.mirror==="all"||t.mirror==="allticks")&&(ye[c]=[t._counterDomainMin,t._counterDomainMax][xe[1]]))}le&&(V=F6.getComponentMethod("rangeslider","autoMarginOpts")(e,t)),typeof t.automargin=="string"&&(fme(ne,t.automargin),fme(ye,t.automargin)),Bw.autoMargin(e,OH(t),ne),Bw.autoMargin(e,bme(t),ye),Bw.autoMargin(e,_me(t),V)}),il.syncOrAsync(ze)}};function fme(e,t){if(e){var r=Object.keys(ime).reduce(function(i,n){return t.indexOf(n)!==-1&&ime[n].forEach(function(a){i[a]=1}),i},{});Object.keys(e).forEach(function(i){r[i]||(i.length===1?e[i]=0:delete e[i])})}}function KMt(e,t){var r=[],i,n=function(a,o){var s=a.xbnd[o];s!==null&&r.push(il.extendFlat({},a,{x:s}))};if(t.length){for(i=0;ie.range[1],s=e.ticklabelposition&&e.ticklabelposition.indexOf("inside")!==-1,l=!s;if(r){var u=o?-1:1;r=r*u}if(i){var f=e.side,c=s&&(f==="top"||f==="left")||l&&(f==="bottom"||f==="right")?1:-1;i=i*c}return e._id.charAt(0)==="x"?function(h){return qw(n+e._offset+e.l2p(LH(h))+r,a+i)}:function(h){return qw(a+i,n+e._offset+e.l2p(LH(h))+r)}};function LH(e){return e.periodX!==void 0?e.periodX:e.x}function tSt(e){var t=e.ticklabelposition||"",r=e.tickson||"",i=function(p){return t.indexOf(p)!==-1},n=i("top"),a=i("left"),o=i("right"),s=i("bottom"),l=i("inside"),u=r!=="boundaries"&&(s||a||n||o);if(!u&&!l)return[0,0];var f=e.side,c=u?(e.tickwidth||0)/2:0,h=bL,d=e.tickfont?e.tickfont.size:12;return(s||n)&&(c+=d*gb,h+=(e.linewidth||0)/2),(a||o)&&(c+=(e.linewidth||0)/2,h+=bL),l&&f==="top"&&(h-=d*(1-gb)),(a||n)&&(c=-c),(f==="bottom"||f==="right")&&(h=-h),[u?c:0,l?h:0]}wa.makeTickPath=function(e,t,r,i){i||(i={});var n=i.minor;if(n&&!e.minor)return"";var a=i.len!==void 0?i.len:n?e.minor.ticklen:e.ticklen,o=e._id.charAt(0),s=(e.linewidth||1)/2;return o==="x"?"M0,"+(t+s*r)+"v"+a*r:"M"+(t+s*r)+",0h"+a*r};wa.makeLabelFns=function(e,t,r){var i=e.ticklabelposition||"",n=e.tickson||"",a=function(k){return i.indexOf(k)!==-1},o=a("top"),s=a("left"),l=a("right"),u=a("bottom"),f=n!=="boundaries"&&(u||s||o||l),c=a("inside"),h=i==="inside"&&e.ticks==="inside"||!c&&e.ticks==="outside"&&n!=="boundaries",d=0,p=0,v=h?e.ticklen:0;if(c?v*=-1:f&&(v=0),h&&(d+=v,r)){var y=il.deg2rad(r);d=v*Math.cos(y)+1,p=v*Math.sin(y)}e.showticklabels&&(h||e.showline)&&(d+=.2*e.tickfont.size),d+=(e.linewidth||1)/2*(c?-1:1);var m={labelStandoff:d,labelShift:p},w,_,b,M,x=0,T=e.side,A=e._id.charAt(0),g=e.tickangle,E;if(A==="x")E=!c&&T==="bottom"||c&&T==="top",M=E?1:-1,c&&(M*=-1),w=p*M,_=t+d*M,b=E?1:-.2,Math.abs(g)===90&&(c?b+=D6:g===-90&&T==="bottom"?b=gb:g===90&&T==="top"?b=D6:b=.5,x=D6/2*(g/90)),m.xFn=function(k){return k.dx+w+x*k.fontSize},m.yFn=function(k){return k.dy+_+k.fontSize*b},m.anchorFn=function(k,D){if(f){if(s)return"end";if(l)return"start"}return!Cc(D)||D===0||D===180?"middle":D*M<0!==c?"end":"start"},m.heightFn=function(k,D,F){return D<-60||D>60?-.5*F:e.side==="top"!==c?-F:0};else if(A==="y"){if(E=!c&&T==="left"||c&&T==="right",M=E?1:-1,c&&(M*=-1),w=d,_=p*M,b=0,!c&&Math.abs(g)===90&&(g===-90&&T==="left"||g===90&&T==="right"?b=gb:b=.5),c){var S=Cc(g)?+g:0;if(S!==0){var C=il.deg2rad(S);x=Math.abs(Math.sin(C))*gb*M,b=0}}m.xFn=function(k){return k.dx+t-(w+k.fontSize*b)*M+x*k.fontSize},m.yFn=function(k){return k.dy+_+k.fontSize*D6},m.anchorFn=function(k,D){return Cc(D)&&Math.abs(D)===90?"middle":E?"end":"start"},m.heightFn=function(k,D,F){return e.side==="right"&&(D*=-1),D<-30?-F:D<30?-.5*F:0}}return m};function AL(e){return[e.text,e.x,e.axInfo,e.font,e.fontSize,e.fontColor].join("_")}wa.drawTicks=function(e,t,r){r=r||{};var i=t._id+"tick",n=[].concat(t.minor&&t.minor.ticks?r.vals.filter(function(o){return o.minor&&!o.noTick}):[]).concat(t.ticks?r.vals.filter(function(o){return!o.minor&&!o.noTick}):[]),a=r.layer.selectAll("path."+i).data(n,AL);a.exit().remove(),a.enter().append("path").classed(i,1).classed("ticks",1).classed("crisp",r.crisp!==!1).each(function(o){return L6.stroke(qp.select(this),o.minor?t.minor.tickcolor:t.tickcolor)}).style("stroke-width",function(o){return Qd.crispRound(e,o.minor?t.minor.tickwidth:t.tickwidth,1)+"px"}).attr("d",r.path).style("display",null),TL(t,[hme]),a.attr("transform",r.transFn)};wa.drawGrid=function(e,t,r){if(r=r||{},t.tickmode!=="sync"){var i=t._id+"grid",n=t.minor&&t.minor.showgrid,a=n?r.vals.filter(function(m){return m.minor}):[],o=t.showgrid?r.vals.filter(function(m){return!m.minor}):[],s=r.counterAxis;if(s&&wa.shouldShowZeroLine(e,t,s))for(var l=t.tickmode==="array",u=0;u=0;p--){var v=p?h:d;if(v){var y=v.selectAll("path."+i).data(p?o:a,AL);y.exit().remove(),y.enter().append("path").classed(i,1).classed("crisp",r.crisp!==!1),y.attr("transform",r.transFn).attr("d",r.path).each(function(m){return L6.stroke(qp.select(this),m.minor?t.minor.gridcolor:t.gridcolor||"#ddd")}).style("stroke-dasharray",function(m){return Qd.dashStyle(m.minor?t.minor.griddash:t.griddash,m.minor?t.minor.gridwidth:t.gridwidth)}).style("stroke-width",function(m){return(m.minor?c:t._gw)+"px"}).style("display",null),typeof r.path=="function"&&y.attr("d",r.path)}}TL(t,[DH,FH])}};wa.drawZeroLine=function(e,t,r){r=r||r;var i=t._id+"zl",n=wa.shouldShowZeroLine(e,t,r.counterAxis),a=r.layer.selectAll("path."+i).data(n?[{x:0,id:t._id}]:[]);a.exit().remove(),a.enter().append("path").classed(i,1).classed("zl",1).classed("crisp",r.crisp!==!1).each(function(){r.layer.selectAll("path").sort(function(o,s){return DMt(o.id,s.id)})}),a.attr("transform",r.transFn).attr("d",r.path).call(L6.stroke,t.zerolinecolor||L6.defaultLine).style("stroke-width",Qd.crispRound(e,t.zerolinewidth,t._gw||1)+"px").style("display",null),TL(t,[CH])};wa.drawLabels=function(e,t,r){r=r||{};var i=e._fullLayout,n=t._id,a=t.zerolinelayer==="above traces",o=r.cls||n+"tick",s=r.vals.filter(function(z){return z.text}),l=r.labelFns,u=r.secondary?0:t.tickangle,f=(t._prevTickAngles||{})[o],c=r.layer.selectAll("g."+o).data(t.showticklabels?s:[],AL),h=[];c.enter().append("g").classed(o,1).append("text").attr("text-anchor","middle").each(function(z){var B=qp.select(this),O=e._promises.length;B.call(mb.positionText,l.xFn(z),l.yFn(z)).call(Qd.font,{family:z.font,size:z.fontSize,color:z.fontColor,weight:z.fontWeight,style:z.fontStyle,variant:z.fontVariant,textcase:z.fontTextcase,lineposition:z.fontLineposition,shadow:z.fontShadow}).text(z.text).call(mb.convertToTspans,e),e._promises[O]?h.push(e._promises.pop().then(function(){d(B,u)})):d(B,u)}),TL(t,[rme]),c.exit().remove(),r.repositionOnUpdate&&c.each(function(z){qp.select(this).select("text").call(mb.positionText,l.xFn(z),l.yFn(z))});function d(z,B){z.each(function(O){var W=qp.select(this),X=W.select(".text-math-group"),Z=l.anchorFn(O,B),H=r.transFn.call(W.node(),O)+(Cc(B)&&+B!=0?" rotate("+B+","+l.xFn(O)+","+(l.yFn(O)-O.fontSize/2)+")":""),q=mb.lineCount(W),Q=z6*O.fontSize,N=l.heightFn(O,Cc(B)?+B:0,(q-1)*Q);if(N&&(H+=qw(0,N)),X.empty()){var U=W.select("text");U.attr({transform:H,"text-anchor":Z}),U.style("display",null),t._adjustTickLabelsOverflow&&t._adjustTickLabelsOverflow()}else{var J=Qd.bBox(X.node()).width,j=J*{end:-.5,start:.5}[Z];X.attr("transform",H+qw(j,0))}})}t._adjustTickLabelsOverflow=function(){var z=t.ticklabeloverflow;if(!(!z||z==="allow")){var B=z.indexOf("hide")!==-1,O=t._id.charAt(0)==="x",W=0,X=O?e._fullLayout.width:e._fullLayout.height;if(z.indexOf("domain")!==-1){var Z=il.simpleMap(t.range,t.r2l);W=t.l2p(Z[0])+t._offset,X=t.l2p(Z[1])+t._offset}var H=Math.min(W,X),q=Math.max(W,X),Q=t.side,N=1/0,U=-1/0;c.each(function(ie){var re=qp.select(this),de=re.select(".text-math-group");if(de.empty()){var me=Qd.bBox(re.node()),ze=0;O?(me.right>q||me.leftq||me.top+(t.tickangle?0:ie.fontSize/4)t["_visibleLabelMin_"+Z._id]?re.style("display","none"):q.K==="tick"&&!H&&re.node().style.display!=="none"&&re.style("display",null)})})})})},d(c,f+1?f:u);function p(){return h.length&&Promise.all(h)}var v=null;function y(){if(d(c,u),s.length&&t.autotickangles&&(t.type!=="log"||String(t.dtick).charAt(0)!=="D")){v=t.autotickangles[0];var z=0,B=[],O,W=1;c.each(function(ne){z=Math.max(z,ne.fontSize);var ye=t.l2p(ne.x),V=PH(this),ue=Qd.bBox(V.node());W=Math.max(W,mb.lineCount(V)),B.push({top:0,bottom:10,height:10,left:ye-ue.width/2,right:ye+ue.width/2+2,width:ue.width+2})});var X=(t.tickson==="boundaries"||t.showdividers)&&!r.secondary,Z=s.length,H=Math.abs((s[Z-1].x-s[0].x)*t._m)/(Z-1),q=X?H/2:H,Q=X?t.ticklen:z*1.25*W,N=Math.sqrt(Math.pow(q,2)+Math.pow(Q,2)),U=q/N,J=t.autotickangles.map(function(ne){return ne*Math.PI/180}),j=J.find(function(ne){return Math.abs(Math.cos(ne))<=U});j===void 0&&(j=J.reduce(function(ne,ye){return Math.abs(Math.cos(ne))P*F&&(C=F,g[A]=E[A]=k[A])}var I=Math.abs(C-S);I-M>0?(I-=M,M*=1+M/I):M=0,t._id.charAt(0)!=="y"&&(M=-M),g[T]=_.p2r(_.r2p(E[T])+x*M),_.autorange==="min"||_.autorange==="max reversed"?(g[0]=null,_._rangeInitial0=void 0,_._rangeInitial1=void 0):(_.autorange==="max"||_.autorange==="min reversed")&&(g[1]=null,_._rangeInitial0=void 0,_._rangeInitial1=void 0),i._insideTickLabelsUpdaterange[_._name+".range"]=g}var L=il.syncOrAsync(m);return L&&L.then&&e._promises.push(L),L};function rSt(e,t,r){var i=t._id+"divider",n=r.vals,a=r.layer.selectAll("path."+i).data(n,AL);a.exit().remove(),a.enter().insert("path",":first-child").classed(i,1).classed("crisp",1).call(L6.stroke,t.dividercolor).style("stroke-width",Qd.crispRound(e,t.dividerwidth,1)+"px"),a.attr("transform",r.transFn).attr("d",r.path)}wa.getPxPosition=function(e,t){var r=e._fullLayout._size,i=t._id.charAt(0),n=t.side,a;if(t.anchor!=="free"?a=t._anchorAxis:i==="x"?a={_offset:r.t+(1-(t.position||0))*r.h,_length:0}:i==="y"&&(a={_offset:r.l+(t.position||0)*r.w+t._shift,_length:0}),n==="top"||n==="left")return a._offset;if(n==="bottom"||n==="right")return a._offset+a._length};function cme(e){var t=e.title.font.size,r=(e.title.text.match(mb.BR_TAG_ALL)||[]).length;return e.title.hasOwnProperty("standoff")?t*(gb+r*z6):r?t*(r+1)*z6:t}function iSt(e,t){var r=e._fullLayout,i=t._id,n=i.charAt(0),a=t.title.font.size,o,s=(t.title.text.match(mb.BR_TAG_ALL)||[]).length;if(t.title.hasOwnProperty("standoff"))t.side==="bottom"||t.side==="right"?o=t._depth+t.title.standoff+a*gb:(t.side==="top"||t.side==="left")&&(o=t._depth+t.title.standoff+a*(D6+s*z6));else{var l=R6(t);if(t.type==="multicategory")o=t._depth;else{var u=1.5*a;l&&(u=.5*a,t.ticks==="outside"&&(u+=t.ticklen)),o=10+u+(t.linewidth?t.linewidth-1:0)}l||(n==="x"?o+=t.side==="top"?a*(t.showticklabels?1:0):a*(t.showticklabels?1.5:.5):o+=t.side==="right"?a*(t.showticklabels?1:.5):a*(t.showticklabels?.5:0))}var f=wa.getPxPosition(e,t),c,h,d;n==="x"?(h=t._offset+t._length/2,d=t.side==="top"?f-o:f+o):(d=t._offset+t._length/2,h=t.side==="right"?f+o:f-o,c={rotate:"-90",offset:0});var p;if(t.type!=="multicategory"){var v=t._selections[t._id+"tick"];if(p={selection:v,side:t.side},v&&v.node()&&v.node().parentNode){var y=Qd.getTranslate(v.node().parentNode);p.offsetLeft=y.x,p.offsetTop=y.y}t.title.hasOwnProperty("standoff")&&(p.pad=0)}return t._titleStandoff=o,_Mt.draw(e,i+"title",{propContainer:t,propName:t._name+".title.text",placeholder:r._dfltTitle[n],avoid:p,transform:c,attributes:{x:h,y:d,"text-anchor":"middle"}})}wa.shouldShowZeroLine=function(e,t,r){var i=il.simpleMap(t.range,t.r2l);return i[0]*i[1]<=0&&t.zeroline&&(t.type==="linear"||t.type==="-")&&!(t.rangebreaks&&t.maskBreaks(0)===_L)&&(xme(t,0)||!nSt(e,t,r,i)||aSt(e,t))};wa.clipEnds=function(e,t){return t.filter(function(r){return xme(e,r.x)})};function xme(e,t){var r=e.l2p(t);return r>1&&r1)for(n=1;n=n.min&&e=EMt:/%L/.test(t)?e>=SMt:/%[SX]/.test(t)?e>=xL:/%M/.test(t)?e>=P6:/%[HI]/.test(t)?e>=X1:/%p/.test(t)?e>=jg:/%[Aadejuwx]/.test(t)?e>=V0:/%[UVW]/.test(t)?e>=ep:/%[Bbm]/.test(t)?e>=gL:/%[q]/.test(t)?e>=yL:/%[Yy]/.test(t)?e>=mL:!0}});var VH=K((WNr,Ame)=>{"use strict";Ame.exports=function(t,r,i){var n,a;if(i){var o=r==="reversed"||r==="min reversed"||r==="max reversed";n=i[o?1:0],a=i[o?0:1]}var s=t("autorangeoptions.minallowed",a===null?n:void 0),l=t("autorangeoptions.maxallowed",n===null?a:void 0);s===void 0&&t("autorangeoptions.clipmin"),l===void 0&&t("autorangeoptions.clipmax"),t("autorangeoptions.include")}});var UH=K(($Nr,Tme)=>{"use strict";var cSt=VH();Tme.exports=function(t,r,i,n){var a=r._template||{},o=r.type||a.type||"-";i("minallowed"),i("maxallowed");var s=i("range");if(!s){var l;!n.noInsiderange&&o!=="log"&&(l=i("insiderange"),l&&(l[0]===null||l[1]===null)&&(r.insiderange=!1,l=void 0),l&&(s=i("range",l)))}var u=r.getAutorangeDflt(s,n),f=i("autorange",u),c;s&&(s[0]===null&&s[1]===null||(s[0]===null||s[1]===null)&&(f==="reversed"||f===!0)||s[0]!==null&&(f==="min"||f==="max reversed")||s[1]!==null&&(f==="max"||f==="min reversed"))&&(s=void 0,delete r.range,r.autorange=!0,c=!0),c||(u=r.getAutorangeDflt(s,n),f=i("autorange",u)),f&&(cSt(i,f,s),(o==="linear"||o==="-")&&i("rangemode")),r.cleanRange()}});var Sme=K((YNr,Mme)=>{var hSt={left:0,top:0};Mme.exports=dSt;function dSt(e,t,r){t=t||e.currentTarget||e.srcElement,Array.isArray(r)||(r=[0,0]);var i=e.clientX||0,n=e.clientY||0,a=pSt(t);return r[0]=i-a.left,r[1]=n-a.top,r}function pSt(e){return e===window||e===document||e===document.body?hSt:e.getBoundingClientRect()}});var ML=K((XNr,Eme)=>{"use strict";var vSt=xG();function mSt(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch(r){e=!1}return e}Eme.exports=vSt&&mSt()});var Cme=K((ZNr,kme)=>{"use strict";kme.exports=function(t,r,i,n,a){var o=(t-i)/(n-i),s=o+r/(n-i),l=(o+s)/2;return a==="left"||a==="bottom"?o:a==="center"||a==="middle"?l:a==="right"||a==="top"?s:o<2/3-l?o:s>4/3-l?s:l}});var Lme=K((KNr,Fme)=>{"use strict";var Dme=St(),ySt=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];Fme.exports=function(t,r,i,n){return i==="left"?t=0:i==="center"?t=1:i==="right"?t=2:t=Dme.constrain(Math.floor(t*3),0,2),n==="bottom"?r=0:n==="middle"?r=1:n==="top"?r=2:r=Dme.constrain(Math.floor(r*3),0,2),ySt[r][t]}});var zme=K((JNr,Pme)=>{"use strict";var gSt=Aw(),xSt=CF(),bSt=h6().getGraphDiv,_St=($T(),or(WT)),GH=Pme.exports={};GH.wrapped=function(e,t,r){var a;e=bSt(e),e._fullLayout&&xSt.clear(e._fullLayout._uid+_St.HOVERID);let i=e._hoverdata;GH.raw(e,t,r)&&e._hoverAnywhereActive&&(e._hoverAnywhereActive=!1,(a=e._fullLayout)!=null&&a.hoveranywhere&&(t!=null&&t.target)&&!i&&e.emit("plotly_unhover",{event:t,points:[]}))};GH.raw=function(t,r){var i=t._fullLayout,n=t._hoverdata;return r||(r={}),r.target&&!t._dragged&&gSt.triggerHandler(t,"plotly_beforehover",r)===!1?!1:(i._hoverlayer.selectAll("g").remove(),i._hoverlayer.selectAll("line").remove(),i._hoverlayer.selectAll("circle").remove(),t._hoverdata=void 0,r.target&&n&&t.emit("plotly_unhover",{event:r,points:n}),!0)}});var U0=K((QNr,qme)=>{"use strict";var wSt=Sme(),HH=_G(),ASt=ML(),TSt=St().removeElement,MSt=(jc(),or(Hc)),xb=qme.exports={};xb.align=Cme();xb.getCursor=Lme();var Rme=zme();xb.unhover=Rme.wrapped;xb.unhoverRaw=Rme.raw;xb.init=function(t){var r=t.gd,i=1,n=r._context.doubleClickDelay,a=t.element,o,s,l,u,f,c,h,d;r._mouseDownTime||(r._mouseDownTime=0),a.style.pointerEvents="all",a.onmousedown=y,ASt?(a._ontouchstart&&a.removeEventListener("touchstart",a._ontouchstart),a._ontouchstart=y,a.addEventListener("touchstart",y,{passive:!1})):a.ontouchstart=y;function p(_,b,M){return Math.abs(_)n&&(i=Math.max(i-1,1)),r._dragged)t.doneFn&&t.doneFn();else{var b;c.target===h?b=c:(b={target:h,srcElement:h,toElement:h},Object.keys(c).concat(Object.keys(c.__proto__)).forEach(M=>{var x=c[M];!b[M]&&typeof x!="function"&&(b[M]=x)})),t.clickFn&&t.clickFn(i,b),d||h.dispatchEvent(new MouseEvent("click",_))}r._dragging=!1,r._dragged=!1}};function Bme(){var e=document.createElement("div");e.className="dragcover";var t=e.style;return t.position="fixed",t.left=0,t.right=0,t.top=0,t.bottom=0,t.zIndex=999999999,t.background="none",document.body.appendChild(e),e}xb.coverSlip=Bme;function Ime(e){return wSt(e.changedTouches?e.changedTouches[0]:e,document.body)}});var Yv=K((eVr,Ome)=>{"use strict";Ome.exports=function(t,r){(t.attr("class")||"").split(" ").forEach(function(i){i.indexOf("cursor-")===0&&t.classed(i,!1)}),r&&t.classed("cursor-"+r,!0)}});var Ume=K((tVr,Vme)=>{"use strict";var jH=Yv(),B6="data-savedcursor",Nme="!!";Vme.exports=function(t,r){var i=t.attr(B6);if(r){if(!i){for(var n=(t.attr("class")||"").split(" "),a=0;aPSt,itemGap:()=>LSt,itemHeightPad:()=>ISt,itemMinHeight:()=>zSt,scrollBarColor:()=>kSt,scrollBarEnterAttrs:()=>DSt,scrollBarMargin:()=>CSt,scrollBarMinHeight:()=>ESt,scrollBarWidth:()=>SSt,titlePad:()=>FSt});var SSt,ESt,kSt,CSt,DSt,FSt,LSt,PSt,zSt,ISt,EL=ps(()=>{"use strict";SSt=6,ESt=20,kSt="#808BA4",CSt=4,DSt={rx:20,ry:3,width:0,height:0},FSt=2,LSt=5,PSt=6,zSt=16,ISt=3});var $H=K((rVr,Hme)=>{"use strict";var WH=lf(),RSt=Gc(),{dfltFillHeight:Gme}=(EL(),or(SL));Hme.exports={_isSubplotObj:!0,visible:{valType:"boolean",dflt:!0,editType:"legend"},bgcolor:{valType:"color",editType:"legend"},bordercolor:{valType:"color",dflt:RSt.defaultLine,editType:"legend"},maxheight:{valType:"number",min:0,editType:"legend"},borderwidth:{valType:"number",min:0,dflt:0,editType:"legend"},font:WH({editType:"legend"}),grouptitlefont:WH({editType:"legend"}),orientation:{valType:"enumerated",values:["v","h"],dflt:"v",editType:"legend"},traceorder:{valType:"flaglist",flags:["reversed","grouped"],extras:["normal"],editType:"legend"},tracegroupgap:{valType:"number",min:0,dflt:10,editType:"legend"},entrywidth:{valType:"number",min:0,editType:"legend"},entrywidthmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels",editType:"legend"},indentation:{valType:"number",min:-15,dflt:0,editType:"legend"},itemsizing:{valType:"enumerated",values:["trace","constant"],dflt:"trace",editType:"legend"},itemwidth:{valType:"number",min:30,dflt:30,editType:"legend"},itemheight:{valType:"number",min:Gme,dflt:Gme,editType:"legend"},itemclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggle",editType:"legend"},itemdoubleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggleothers",editType:"legend"},groupclick:{valType:"enumerated",values:["toggleitem","togglegroup"],dflt:"togglegroup",editType:"legend"},groupdoubleclick:{valType:"enumerated",values:["toggleitem","togglegroup"],editType:"legend"},titleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],editType:"legend"},titledoubleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],editType:"legend"},x:{valType:"number",editType:"legend"},xref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"legend"},y:{valType:"number",editType:"legend"},yref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],editType:"legend"},uirevision:{valType:"any",editType:"none"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"legend"},title:{text:{valType:"string",dflt:"",editType:"legend"},font:WH({editType:"legend"}),side:{valType:"enumerated",values:["top","left","top left","top center","top right"],editType:"legend"},editType:"legend"},editType:"legend"}});var O6=K(q6=>{"use strict";q6.isGrouped=function(t){return(t.traceorder||"").indexOf("grouped")!==-1};q6.isVertical=function(t){return t.orientation!=="h"};q6.isReversed=function(t){return(t.traceorder||"").indexOf("reversed")!==-1};q6.getId=function(t){return t._id||"legend"}});var XH=K((nVr,jme)=>{"use strict";var kL=Ho(),tp=St(),BSt=cu(),qSt=Tu(),OSt=$H(),NSt=vw(),YH=O6();function VSt(e,t,r,i,n){var a=t[e]||{},o=BSt.newContainer(r,e);function s(B,O){return tp.coerce(a,o,OSt,B,O)}var l=tp.coerceFont(s,"font",r.font);s("bgcolor",r.paper_bgcolor),s("bordercolor");var u=s("visible");if(!u)return;var f,c=function(B,O){var W=f._input,X=f;return tp.coerce(W,X,qSt,B,O)},h=r.font||{},d=tp.coerceFont(s,"grouptitlefont",h,{overrideDflt:{size:Math.round(h.size*1.1)}}),p=0,v=!1,y="normal",m=(r.shapes||[]).filter(function(B){return B.showlegend});function w(B){return kL.traceIs(B,"pie-like")&&B._length!=null&&(Array.isArray(B.legend)||Array.isArray(B.showlegend))}i.filter(w).forEach(function(B){B.visible&&p++;for(var O=0;OB.legend.length)for(var X=B.legend.length;X(e==="legend"?1:0));if(x===!1&&(r[e]=void 0),x===!1&&!a.uirevision||(s("uirevision",r.uirevision),x===!1))return;s("borderwidth");var T=s("orientation"),A=s("yref"),g=s("xref"),E=T==="h",S=A==="paper",C=g==="paper",k,D,F,P="left";E?(k=0,kL.getComponentMethod("rangeslider","isVisible")(t.xaxis)?S?(D=1.1,F="bottom"):(D=1,F="top"):S?(D=-.1,F="top"):(D=0,F="bottom")):(D=1,F="auto",C?k=1.02:(k=1,P="right")),tp.coerce(a,o,{x:{valType:"number",editType:"legend",min:C?-2:0,max:C?3:1,dflt:k}},"x"),tp.coerce(a,o,{y:{valType:"number",editType:"legend",min:S?-2:0,max:S?3:1,dflt:D}},"y"),s("traceorder",y),YH.isGrouped(r[e])&&s("tracegroupgap"),s("entrywidth"),s("entrywidthmode"),s("indentation"),s("itemsizing"),s("itemwidth"),s("itemheight"),s("itemclick"),s("itemdoubleclick");let I=s("groupclick");s("groupdoubleclick",I),s("xanchor",P),s("yanchor",F),s("maxheight"),s("valign"),tp.noneOrAll(a,o,["x","y"]);var L=s("title.text");if(L){s("title.side",E?"left":"top");var z=tp.extendFlat({},l,{size:tp.bigFont(l.size)});tp.coerceFont(s,"title.font",z);let B=n>1;s("titleclick",B?"toggle":!1),s("titledoubleclick",B?"toggleothers":!1)}}jme.exports=function(t,r,i){var n,a=i.slice(),o=r.shapes;if(o)for(n=0;n{"use strict";var Wg=Ho(),ZH=St(),USt=ZH.pushUnique,GSt=O6(),Wme=!0;KH.handleItemClick=function(t,r,i,n,a){var o=r._fullLayout;if(r._dragged||r._editing)return;var s=t.data()[0][0];if(s.groupTitle&&s.noClick)return;let l=a===2?i.groupdoubleclick:i.groupclick;n==="toggle"&&i.itemdoubleclick==="toggleothers"&&Wme&&r.data&&r._context.showTips&&(ZH.notifier(ZH._(r,"Double-click on legend to isolate one trace"),"long",r),Wme=!1);var u=l==="togglegroup",f=o.hiddenlabels?o.hiddenlabels.slice():[],c=r._fullData;let h=(o.shapes||[]).filter(ke=>ke.showlegend||ke.legendgroup);var d=c.concat(h),p=s.trace;p._isShape&&(p=o.shapes[p.index]);var v=p.legendgroup,y,m,w,_,b,M,x={},T=[],A=[],g=[];function E(ke,le){var te=T.indexOf(ke),Ee=x.visible;return Ee||(Ee=x.visible=[]),T.indexOf(ke)===-1&&(T.push(ke),te=T.length-1),Ee[te]=le,te}var S=(o.shapes||[]).map(function(ke){return ke._input}),C=!1;function k(ke,le){S[ke].visible=le,C=!0}function D(ke,le){if(!(s.groupTitle&&!u)){var te=ke._isShape,Ee=ke.index;Ee===void 0&&(Ee=ke._index);var we=ke.visible===!1?!1:le;te?k(Ee,we):E(Ee,we)}}var F=p.legend;if(!p._isShape&&Wg.traceIs(p,"pie-like")){var P=s.label,I=f.indexOf(P);if(n==="toggle")I===-1?f.push(P):f.splice(I,1);else if(n==="toggleothers"){var L=I!==-1,z=[];for(y=0;ym.showlegend||m.legendgroup),l=a.concat(s);function u(m){return(m.legend||"legend")===o}var f,c;if(i==="toggle")f=!l.some(function(w){return u(w)&&w.visible===!0}),c=!1;else{let m=l.some(function(w){return!u(w)&&w.visible===!0&&w.showlegend!==!1});f=!0,c=!m}let h={visible:[]},d=[],p=(n.shapes||[]).map(function(m){return m._input});for(var v=!1,y=0;y{"use strict";var{isArrayOrTypedArray:QH}=Yh(),$me=Ho(),ej=O6();Yme.exports=function(t,r,i){var n=r._inHover,a=ej.isGrouped(r),o=ej.isReversed(r),s={},l=[],u=!1,f={},c=0,h=0,d,p;function v(B,O,W){if(r.visible!==!1&&!(i&&B!==r._id))if(O===""||!ej.isGrouped(r)){var X="~~i"+c;l.push(X),s[X]=[W],c++}else l.indexOf(O)===-1?(l.push(O),u=!0,s[O]=[W]):s[O].push(W)}for(d=0;dk&&(S=k)}g[d][0]._groupMinRank=S,g[d][0]._preGroupSort=d}var D=function(B,O){return B[0]._groupMinRank-O[0]._groupMinRank||B[0]._preGroupSort-O[0]._preGroupSort},F=function(B,O){var W=QH(B.trace.legendrank)?B.trace.legendrank[B.i]:B.trace.legendrank,X=QH(O.trace.legendrank)?O.trace.legendrank[O.i]:O.trace.legendrank;return W-X||B._preSort-O._preSort};for(g.forEach(function(B,O){B[0]._preGroupSort=O}),g.sort(D),d=0;d{"use strict";var CL=St();function Zme(e){return e.indexOf("e")!==-1?e.replace(/[.]?0+e/,"e"):e.indexOf(".")!==-1?e.replace(/[.]?0+$/,""):e}bb.formatPiePercent=function(t,r){var i=Zme((t*100).toPrecision(3));return CL.numSeparate(i,r)+"%"};bb.formatPieValue=function(t,r){var i=Zme(t.toPrecision(10));return CL.numSeparate(i,r)};bb.getFirstFilled=function(t,r){if(CL.isArrayOrTypedArray(t))for(var i=0;i{"use strict";var HSt=Is(),jSt=wo();Kme.exports=function(t,r,i,n){var a=i.marker.pattern;a&&a.shape?HSt.pointStyle(t,i,n,r):jSt.fill(t,r.color)}});var Vw=K((uVr,tye)=>{"use strict";var Qme=wo(),eye=$g().castOption,WSt=Jme();tye.exports=function(t,r,i,n){var a=i.marker.line,o=eye(a.color,r.pts)||Qme.defaultLine,s=eye(a.width,r.pts)||0;t.call(WSt,r,i,n).style("stroke-width",s).call(Qme.stroke,o)}});var aj=K((fVr,oye)=>{"use strict";var G0=No(),tj=Ho(),M0=St(),rj=M0.strTranslate,rp=Is(),Op=wo(),ij=Kh().extractOpts,FL=ff(),$St=Vw(),YSt=$g().castOption,rye=(EL(),or(SL)),iye=12,nye=5,_b=2,XSt=10,Uw=5;oye.exports=function(t,r,i){var n=r._fullLayout;i||(i=n.legend);var a=i.itemsizing==="constant",o=i.itemwidth,s=i.itemheight,l=(o+rye.itemGap*2)/2,u=rj(l,0),f=function(A,g,E,S){var C;if(A+1)C=A;else if(g&&g.width>0)C=g.width;else return 0;return a?S:Math.min(C,E)};t.each(function(A){var g=G0.select(this),E=M0.ensureSingle(g,"g","layers");E.style("opacity",A[0].trace.opacity);var S=i.indentation,C=i.valign,k=A[0].lineHeight,D=A[0].height;if(C==="middle"&&S===0||!k||!D)E.attr("transform",null);else{var F={top:1,bottom:-1}[C],P=F*(.5*(k-D+3))||0,I=i.indentation;E.attr("transform",rj(I,P))}var L=E.selectAll("g.legendfill").data([A]);L.enter().append("g").classed("legendfill",!0);var z=E.selectAll("g.legendlines").data([A]);z.enter().append("g").classed("legendlines",!0);var B=E.selectAll("g.legendsymbols").data([A]);B.enter().append("g").classed("legendsymbols",!0),B.selectAll("g.legendpoints").data([A]).enter().append("g").classed("legendpoints",!0)}).each(T).each(d).each(v).each(p).each(m).each(M).each(b).each(c).each(h).each(w).each(_);function c(A){var g=aye(A),E=g.showFill,S=g.showLine,C=g.showGradientLine,k=g.showGradientFill,D=g.anyFill,F=g.anyLine,P=A[0],I=P.trace,L,z,B=ij(I),O=B.colorscale,W=B.reversescale,X=function(j){if(j.size())if(E)rp.fillGroupStyle(j,r,!0);else{var $="legendfill-"+I.uid;rp.gradient(j,r,$,nj(W),O,"fill")}},Z=function(j){if(j.size()){var $="legendline-"+I.uid;rp.lineGroupStyle(j),rp.gradient(j,r,$,nj(W),O,"stroke")}},H=FL.hasMarkers(I)||!D?"M5,0":F?"M5,-2":"M5,-3",q=G0.select(this),Q=q.select(".legendfill").selectAll("path").data(E||k?[A]:[]);Q.enter().append("path").classed("js-fill",!0),Q.exit().remove(),Q.attr("d",H+"h"+o+"v"+s+"h-"+o+"z").call(X);let N=E||k?(rye.dfltFillHeight-s)/2:0;if(q.selectAll("g.legendfill, g.legendlines, g.legendsymbols").attr("transform",N?rj(0,N):null),S||C){var U=f(void 0,I.line,XSt,nye);z=M0.minExtend(I,{line:{width:U}}),L=[M0.minExtend(P,{trace:z})]}var J=q.select(".legendlines").selectAll("path").data(S||C?[L]:[]);J.enter().append("path").classed("js-line",!0),J.exit().remove(),J.attr("d",H+(C?"l"+o+",0.0001":"h"+o)).call(S?rp.lineGroupStyle:Z)}function h(A){var g=aye(A),E=g.anyFill,S=g.anyLine,C=g.showLine,k=g.showMarker,D=A[0],F=D.trace,P=!k&&!S&&!E&&FL.hasText(F),I,L;function z(N,U,J,j){var $=M0.nestedProperty(F,N).get(),ie=M0.isArrayOrTypedArray($)&&U?U($):$;if(a&&ie&&j!==void 0&&(ie=j),J){if(ieJ[1])return J[1]}return ie}function B(N){return D._distinct&&D.index&&N[D.index]?N[D.index]:N[0]}if(k||P||C){var O={},W={};if(k){O.mc=z("marker.color",B);var X=F.type==="scattermap";O.mx=X?"circle":z("marker.symbol",B),O.mo=z("marker.opacity",M0.mean,[.2,1]),O.mlc=z("marker.line.color",B),O.mlw=z("marker.line.width",M0.mean,[0,5],_b),O.mld=z("marker.line.dash",B),W.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var Z=z("marker.size",M0.mean,[2,16],iye);O.ms=Z,W.marker.size=Z}C&&(W.line={width:z("line.width",B,[0,10],nye)}),P&&(O.tx="Aa",O.tp=z("textposition",B),O.ts=10,O.tc=z("textfont.color",B),O.tf=z("textfont.family",B),O.tw=z("textfont.weight",B),O.ty=z("textfont.style",B),O.tv=z("textfont.variant",B),O.tC=z("textfont.textcase",B),O.tE=z("textfont.lineposition",B),O.tS=z("textfont.shadow",B)),I=[M0.minExtend(D,O)],L=M0.minExtend(F,W),L.selectedpoints=null,L.texttemplate=null}var H=G0.select(this).select("g.legendpoints"),q=H.selectAll("path.scatterpts").data(k?I:[]);q.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",u),q.exit().remove(),q.call(rp.pointStyle,L,r),k&&(I[0].mrc=3);var Q=H.selectAll("g.pointtext").data(P?I:[]);Q.enter().append("g").classed("pointtext",!0).append("text").attr("transform",u),Q.exit().remove(),Q.selectAll("text").call(rp.textPointStyle,L,r)}function d(A){var g=A[0].trace,E=g.type==="waterfall";if(A[0]._distinct&&E){var S=A[0].trace[A[0].dir].marker;return A[0].mc=S.color,A[0].mlw=S.line.width,A[0].mlc=S.line.color,y(A,this,"waterfall")}var C=[];g.visible&&E&&(C=A[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 k=G0.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data(C);k.enter().append("path").classed("legendwaterfall",!0).attr("transform",u).style("stroke-miterlimit",1),k.exit().remove(),k.each(function(D){var F=G0.select(this),P=g[D[0]].marker,I=f(void 0,P.line,Uw,_b);F.attr("d",D[1]).style("stroke-width",I+"px").call(Op.fill,P.color),I&&F.call(Op.stroke,P.line.color)})}function p(A){y(A,this)}function v(A){y(A,this,"funnel")}function y(A,g,E){var S=A[0].trace,C=S.marker||{},k=C.line||{},D=C.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",F=E?S.visible&&S.type===E:tj.traceIs(S,"bar"),P=G0.select(g).select("g.legendpoints").selectAll("path.legend"+E).data(F?[A]:[]);P.enter().append("path").classed("legend"+E,!0).attr("d",D).attr("transform",u),P.exit().remove(),P.each(function(I){var L=G0.select(this),z=I[0],B=f(z.mlw,C.line,Uw,_b);L.style("stroke-width",B+"px");var O=z.mcc;if(!i._inHover&&"mc"in z){var W=ij(C),X=W.mid;X===void 0&&(X=(W.max+W.min)/2),O=rp.tryColorscale(C,"")(X)}var Z=O||z.mc||C.color,H=C.pattern,q=rp.getPatternAttr;let Q=0;i._inHover&&z._distinct&&z.index!=null&&(Q=z.index);let N=H&&(q(H.shape,Q,"")||q(H.path,Q,""));if(N){let J=q(H.bgcolor,Q,null),j=q(H.fgcolor,Q,null);var U=H.fgopacity;let $=i._inHover?DL(q(H.size,Q,8),8,10):DL(H.size,8,10),ie=i._inHover?DL(q(H.solidity,Q,.5),.5,1):DL(H.solidity,.5,1),re=i._inHover?`hover-${S.uid}-${Q}`:`legend-${S.uid}`;L.call(rp.pattern,"legend",r,re,N,$,ie,O,H.fillmode,J,j,U)}else L.call(Op.fill,Z);B&&Op.stroke(L,z.mlc||k.color)})}function m(A){var g=A[0].trace,E=G0.select(this).select("g.legendpoints").selectAll("path.legendbox").data(g.visible&&tj.traceIs(g,"box-violin")?[A]:[]);E.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform",u),E.exit().remove(),E.each(function(){var S=G0.select(this);if((g.boxpoints==="all"||g.points==="all")&&Op.opacity(g.fillcolor)===0&&Op.opacity((g.line||{}).color)===0){var C=M0.minExtend(g,{marker:{size:a?iye:M0.constrain(g.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});E.call(rp.pointStyle,C,r)}else{var k=f(void 0,g.line,Uw,_b);S.style("stroke-width",k+"px").call(Op.fill,g.fillcolor),k&&Op.stroke(S,g.line.color)}})}function w(A){var g=A[0].trace,E=G0.select(this).select("g.legendpoints").selectAll("path.legendcandle").data(g.visible&&g.type==="candlestick"?[A,A]:[]);E.enter().append("path").classed("legendcandle",!0).attr("d",function(S,C){return C?"M-15,0H-8M-8,6V-6H8Z":"M15,0H8M8,-6V6H-8Z"}).attr("transform",u).style("stroke-miterlimit",1),E.exit().remove(),E.each(function(S,C){var k=G0.select(this),D=g[C?"increasing":"decreasing"],F=f(void 0,D.line,Uw,_b);k.style("stroke-width",F+"px").call(Op.fill,D.fillcolor),F&&Op.stroke(k,D.line.color)})}function _(A){var g=A[0].trace,E=G0.select(this).select("g.legendpoints").selectAll("path.legendohlc").data(g.visible&&g.type==="ohlc"?[A,A]:[]);E.enter().append("path").classed("legendohlc",!0).attr("d",function(S,C){return C?"M-15,0H0M-8,-6V0":"M15,0H0M8,6V0"}).attr("transform",u).style("stroke-miterlimit",1),E.exit().remove(),E.each(function(S,C){var k=G0.select(this),D=g[C?"increasing":"decreasing"],F=f(void 0,D.line,Uw,_b);k.style("fill","none").call(rp.dashLine,D.line.dash,F),F&&Op.stroke(k,D.line.color)})}function b(A){x(A,this,"pie")}function M(A){x(A,this,"funnelarea")}function x(A,g,E){var S=A[0],C=S.trace,k=E?C.visible&&C.type===E:tj.traceIs(C,E),D=G0.select(g).select("g.legendpoints").selectAll("path.legend"+E).data(k?[A]:[]);if(D.enter().append("path").classed("legend"+E,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",u),D.exit().remove(),D.size()){var F=C.marker||{},P=f(YSt(F.line.width,S.pts),F.line,Uw,_b),I="pieLike",L=M0.minExtend(C,{marker:{line:{width:P}}},I),z=M0.minExtend(S,{trace:L},I);$St(D,z,L,r)}}function T(A){var g=A[0].trace,E,S=[];if(g.visible)switch(g.type){case"histogram2d":case"heatmap":S=[["M-15,-2V4H15V-2Z"]],E=!0;break;case"choropleth":case"choroplethmap":S=[["M-6,-6V6H6V-6Z"]],E=!0;break;case"densitymap":S=[["M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"]],E="radial";break;case"cone":S=[["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"]],E=!1;break;case"streamtube":S=[["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"]],E=!1;break;case"surface":S=[["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"]],E=!0;break;case"mesh3d":S=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],E=!1;break;case"volume":S=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],E=!0;break;case"isosurface":S=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6 A12,24 0 0,0 6,-6 L0,6Z"]],E=!1;break}var C=G0.select(this).select("g.legendpoints").selectAll("path.legend3dandfriends").data(S);C.enter().append("path").classed("legend3dandfriends",!0).attr("transform",u).style("stroke-miterlimit",1),C.exit().remove(),C.each(function(k,D){var F=G0.select(this),P=ij(g),I=P.colorscale,L=P.reversescale,z=function(X){if(X.size()){var Z="legendfill-"+g.uid;rp.gradient(X,r,Z,nj(L,E==="radial"),I,"fill")}},B;if(I){if(!E){var W=I.length;B=D===0?I[L?W-1:0][1]:D===1?I[L?0:W-1][1]:I[Math.floor((W-1)/2)][1]}}else{var O=g.vertexcolor||g.facecolor||g.color;B=M0.isArrayOrTypedArray(O)?O[D]||O[0]:O}F.attr("d",k[0]),B?F.call(Op.fill,B):F.call(z)})}};function nj(e,t){var r=t?"radial":"horizontal";return r+(e?"":"reversed")}function aye(e){var t=e[0].trace,r=t.contours,i=FL.hasLines(t)||t.visible&&t.type==="quiver",n=FL.hasMarkers(t),a=t.visible&&t.fill&&t.fill!=="none",o=!1,s=!1;if(r){var l=r.coloring;l==="lines"?o=!0:i=l==="none"||l==="heatmap"||r.showlines,r.type==="constraint"?a=r._operation!=="=":(l==="fill"||l==="heatmap")&&(s=!0)}return{showMarker:n,showLine:i,showFill:a,showGradientLine:o,showGradientFill:s,anyLine:i||o,anyFill:a||s}}function DL(e,t,r){return e&&M0.isArrayOrTypedArray(e)?t:e>r?r:e}});var uj=K((cVr,vye)=>{"use strict";var H0=No(),Dc=St(),sj=yf(),wb=Ho(),zL=Aw(),oj=U0(),Fc=Is(),N6=wo(),uy=Du(),sye=JH().handleItemClick,lye=JH().handleTitleClick,Kf=(EL(),or(SL)),lj=($c(),or(Wc)),dye=lj.LINE_SPACING,Hw=lj.FROM_TL,uye=lj.FROM_BR,fye=Xme(),ZSt=aj(),jw=O6(),Gw=1,KSt=/^legend[0-9]*$/;vye.exports=function(t,r){if(r)cye(t,r);else{var i=t._fullLayout,n=i._legends,a=i._infolayer.selectAll('[class^="legend"]');a.each(function(){var u=H0.select(this),f=u.attr("class"),c=f.split(" ")[0];c.match(KSt)&&n.indexOf(c)===-1&&u.remove()});for(var o=0;o1)}var p=i.hiddenlabels||[];if(!s&&(!i.showlegend||!l.length))return o.selectAll("."+n).remove(),i._topdefs.select("#"+a).remove(),sj.autoMargin(e,n);var v=Dc.ensureSingle(o,"g",n,function(A){s||A.attr("pointer-events","all")}),y=Dc.ensureSingleById(i._topdefs,"clipPath",a,function(A){A.append("rect")}),m=Dc.ensureSingle(v,"rect","bg",function(A){A.attr("shape-rendering","crispEdges")});m.call(N6.stroke,r.bordercolor).call(N6.fill,r.bgcolor).style("stroke-width",r.borderwidth+"px");var w=Dc.ensureSingle(v,"g","scrollbox"),_=r.title;r._titleWidth=0,r._titleHeight=0;var b;_.text?(b=Dc.ensureSingle(w,"text",n+"titletext"),b.attr("text-anchor","start").call(Fc.font,_.font).text(_.text),PL(b,w,e,r,Gw),!s&&(r.titleclick||r.titledoubleclick)&&tEt(w,e,r,n)):(w.selectAll("."+n+"titletext").remove(),w.selectAll("."+n+"titletoggle").remove());var M=Dc.ensureSingle(v,"rect","scrollbar",function(A){A.attr(Kf.scrollBarEnterAttrs).call(N6.fill,Kf.scrollBarColor)}),x=w.selectAll("g.groups").data(l);x.enter().append("g").attr("class","groups"),x.exit().remove();var T=x.selectAll("g.traces").data(Dc.identity);T.enter().append("g").attr("class","traces"),T.exit().remove(),T.style("opacity",function(A){let g=A[0],E=g.trace;if(g.groupTitle){let S=E.legendgroup,C=(i.shapes||[]).filter(function(D){return D.showlegend});return e._fullData.concat(C).some(function(D){return D.legendgroup===S&&(D.legend||"legend")===n&&D.visible===!0})?1:.5}return wb.traceIs(E,"pie-like")?p.indexOf(A[0].label)!==-1?.5:1:E.visible==="legendonly"?.5:1}).each(function(){H0.select(this).call(QSt,e,r)}).call(ZSt,e,r).each(function(A){s||A[0].groupTitle&&r.groupclick==="toggleitem"||H0.select(this).call(eEt,e,n)}),Dc.syncOrAsync([sj.previousPromises,function(){return nEt(e,x,T,r,w)},function(){var A=i._size,g=r.borderwidth,E=r.xref==="paper",S=r.yref==="paper";if(_.text){let de=(i.shapes||[]).filter(function(ze){return ze.showlegend}),me=e._fullData.concat(de).some(function(ze){let ke=ze.legend||"legend";var le=Array.isArray(ke)?ke.includes(n):ke===n;return le&&ze.visible===!0});b.style("opacity",me?1:.5)}if(!s){var C,k;E?C=A.l+A.w*r.x-Hw[IL(r)]*r._width:C=i.width*r.x-Hw[IL(r)]*r._width,S?k=A.t+A.h*(1-r.y)-Hw[RL(r)]*r._effHeight:k=i.height*(1-r.y)-Hw[RL(r)]*r._effHeight;var D=aEt(e,n,C,k);if(D)return;if(i.margin.autoexpand){var F=C,P=k;C=E?Dc.constrain(C,0,i.width-r._width):F,k=S?Dc.constrain(k,0,i.height-r._effHeight):P,C!==F&&Dc.log("Constrain "+n+".x to make legend fit inside graph"),k!==P&&Dc.log("Constrain "+n+".y to make legend fit inside graph")}Fc.setTranslate(v,C,k)}if(M.on(".drag",null),v.on("wheel",null),s||r._height<=r._maxHeight||e._context.staticPlot){var I=r._effHeight;s&&(I=r._height),m.attr({width:r._width-g,height:I-g,x:g/2,y:g/2}),Fc.setTranslate(w,0,0),y.select("rect").attr({width:r._width-2*g,height:I-2*g,x:g,y:g}),Fc.setClipUrl(w,a,e),Fc.setRect(M,0,0,0,0),delete r._scrollY}else{var L=Math.max(Kf.scrollBarMinHeight,r._effHeight*r._effHeight/r._height),z=r._effHeight-L-2*Kf.scrollBarMargin,B=r._height-r._effHeight,O=z/B,W=Math.min(r._scrollY||0,B);m.attr({width:r._width-2*g+Kf.scrollBarWidth+Kf.scrollBarMargin,height:r._effHeight-g,x:g/2,y:g/2}),y.select("rect").attr({width:r._width-2*g+Kf.scrollBarWidth+Kf.scrollBarMargin,height:r._effHeight-2*g,x:g,y:g+W}),Fc.setClipUrl(w,a,e),J(W,L,O),v.on("wheel",function(){W=Dc.constrain(r._scrollY+H0.event.deltaY/B*z,0,B),J(W,L,O),W!==0&&W!==B&&H0.event.preventDefault()});var X,Z,H,q=function(de,me,ze){var ke=(ze-me)/O+de;return Dc.constrain(ke,0,B)},Q=function(de,me,ze){var ke=(me-ze)/O+de;return Dc.constrain(ke,0,B)},N=H0.behavior.drag().on("dragstart",function(){var de=H0.event.sourceEvent;de.type==="touchstart"?X=de.changedTouches[0].clientY:X=de.clientY,H=W}).on("drag",function(){var de=H0.event.sourceEvent;de.buttons===2||de.ctrlKey||(de.type==="touchmove"?Z=de.changedTouches[0].clientY:Z=de.clientY,W=q(H,X,Z),J(W,L,O))});M.call(N);var U=H0.behavior.drag().on("dragstart",function(){var de=H0.event.sourceEvent;de.type==="touchstart"&&(X=de.changedTouches[0].clientY,H=W)}).on("drag",function(){var de=H0.event.sourceEvent;de.type==="touchmove"&&(Z=de.changedTouches[0].clientY,W=Q(H,X,Z),J(W,L,O))});w.call(U)}function J(de,me,ze){r._scrollY=e._fullLayout[n]._scrollY=de,Fc.setTranslate(w,0,-de),Fc.setRect(M,r._width,Kf.scrollBarMargin+de*ze,Kf.scrollBarWidth,me),y.select("rect").attr("y",g+de)}if(e._context.edits.legendPosition){var j,$,ie,re;v.classed("cursor-move",!0),oj.init({element:v.node(),gd:e,prepFn:function(de){if(de.target!==M.node()){var me=Fc.getTranslate(v);ie=me.x,re=me.y}},moveFn:function(de,me){if(ie!==void 0&&re!==void 0){var ze=ie+de,ke=re+me;Fc.setTranslate(v,ze,ke),j=oj.align(ze,r._width,A.l,A.l+A.w,r.xanchor),$=oj.align(ke+r._height,-r._height,A.t+A.h,A.t,r.yanchor)}},doneFn:function(){if(j!==void 0&&$!==void 0){var de={};de[n+".x"]=j,de[n+".y"]=$,wb.call("_guiRelayout",e,de)}},clickFn:function(de,me){var ze=o.selectAll("g.traces").filter(function(){var ke=this.getBoundingClientRect();return me.clientX>=ke.left&&me.clientX<=ke.right&&me.clientY>=ke.top&&me.clientY<=ke.bottom});ze.size()>0&&pye(e,r,ze,de,me)}})}}],e)}}function LL(e,t,r){var i=e[0],n=i.width,a=t.entrywidthmode,o=i.trace.legendwidth||t.entrywidth;return a==="fraction"?t._maxWidth*o:r+(o||n)}function pye(e,t,r,i,n){var a=e._fullLayout,o=r.data()[0][0].trace,s=t.itemclick,l=t.itemdoubleclick,u={event:n,node:r.node(),curveNumber:o.index,expandedIndex:o.index,data:e.data,layout:e.layout,frames:e._transitionData._frames,config:e._context,fullData:e._fullData,fullLayout:a};o._group&&(u.group=o._group),wb.traceIs(o,"pie-like")&&(u.label=r.datum()[0].label);var f=zL.triggerHandler(e,"plotly_legendclick",u);if(i===1){if(f===!1)return;t._clickTimeout=setTimeout(function(){e._fullLayout&&s&&sye(r,e,t,s,i)},e._context.doubleClickDelay)}else if(i===2){t._clickTimeout&&clearTimeout(t._clickTimeout),e._legendMouseDownTime=0;var c=zL.triggerHandler(e,"plotly_legenddoubleclick",u);c!==!1&&f!==!1&&l&&sye(r,e,t,l,i)}}function QSt(e,t,r){var i=jw.getId(r),n=e.data()[0][0],a=n.trace,o=wb.traceIs(a,"pie-like"),s=!r._inHover&&t._context.edits.legendText&&!o,l=r._maxNameLength,u,f;n.groupTitle?(u=n.groupTitle.text,f=n.groupTitle.font):(f=r.font,r.entries?u=n.text:(u=o?n.label:a.name,a._meta&&(u=Dc.templateString(u,a._meta))));var c=Dc.ensureSingle(e,"text",i+"text");c.attr("text-anchor","start").call(Fc.font,f).text(s?hye(u,l):u);var h=r.indentation+r.itemwidth+Kf.itemGap*2;uy.positionText(c,h,0),s?c.call(uy.makeEditable,{gd:t,text:u}).call(PL,e,t,r).on("edit",function(d){this.text(hye(d,l)).call(PL,e,t,r);var p={};return p.name=d,n.trace._isShape?wb.call("_guiRelayout",t,"shapes["+a.index+"].name",p.name):wb.call("_guiRestyle",t,p,a.index)}):PL(c,e,t,r)}function hye(e,t){var r=Math.max(4,t);if(e&&e.trim().length>=r/2)return e;e=e||"";for(var i=r-e.length;i>0;i--)e+=" ";return e}function eEt(e,t,r){var i=t._context.doubleClickDelay,n,a=1,o=Dc.ensureSingle(e,"rect",r+"toggle",function(s){t._context.staticPlot||s.style("cursor","pointer").attr("pointer-events","all"),s.call(N6.fill,"rgba(0,0,0,0)")});t._context.staticPlot||(o.on("mousedown",function(){n=new Date().getTime(),n-t._legendMouseDownTimei&&(a=Math.max(a-1,1)),pye(t,s,e,a,H0.event)}}))}function tEt(e,t,r,i){if(t._fullData.some(function(u){let f=u.legend||"legend";return(Array.isArray(f)?f.includes(i):f===i)&&wb.traceIs(u,"pie-like")}))return;let a=t._context.doubleClickDelay;var o,s=1;let l=Dc.ensureSingle(e,"rect",i+"titletoggle",function(u){t._context.staticPlot||u.style("cursor","pointer").attr("pointer-events","all"),u.call(N6.fill,"rgba(0,0,0,0)")});t._context.staticPlot||(l.on("mousedown",function(){o=new Date().getTime(),o-t._legendMouseDownTimea&&(s=Math.max(s-1,1));let u={event:H0.event,legendId:i,data:t.data,layout:t.layout,fullData:t._fullData,fullLayout:t._fullLayout};if(s===1&&r.titleclick){if(zL.triggerHandler(t,"plotly_legendtitleclick",u)===!1)return;r._titleClickTimeout=setTimeout(function(){t._fullLayout&&lye(t,r,r.titleclick)},a)}else s===2&&(r._titleClickTimeout&&clearTimeout(r._titleClickTimeout),t._legendMouseDownTime=0,zL.triggerHandler(t,"plotly_legendtitledoubleclick",u)!==!1&&r.titledoubleclick&&lye(t,r,r.titledoubleclick))}))}function PL(e,t,r,i,n){i._inHover&&e.attr("data-notex",uy.isPureTex(e.text())?null:!0),uy.convertToTspans(e,r,function(){rEt(t,r,i,n)})}function rEt(e,t,r,i){var n=e.data()[0][0],a=n&&n.trace.showlegend;if(Array.isArray(a)&&(a=a[n.i]!==!1),!r._inHover&&n&&!a){e.remove();return}var o=e.select("g[class*=math-group]"),s=o.node(),l=jw.getId(r);r||(r=t._fullLayout[l]);var u=r.borderwidth,f;i===Gw?f=r.title.font:n.groupTitle?f=n.groupTitle.font:f=r.font;var c=f.size*dye,h,d;if(s){var p=Fc.bBox(s);h=p.height,d=p.width,i===Gw?Fc.setTranslate(o,u,u+h*.75):Fc.setTranslate(o,0,h*.25)}else{var v="."+l+(i===Gw?"title":"")+"text",y=e.select(v),m=uy.lineCount(y),w=y.node();if(h=c*m,d=w?Fc.bBox(w).width:0,i===Gw)r.title.side==="left"&&(d+=Kf.itemGap*2),uy.positionText(y,u+Kf.titlePad,u+c);else{var _=Kf.itemGap*2+r.indentation+r.itemwidth;n.groupTitle&&(_=Kf.itemGap,d-=r.indentation+r.itemwidth),uy.positionText(y,_,-c*((m-1)/2-.3))}}if(i===Gw)r._titleWidth=d,r._titleHeight=h;else{n.lineHeight=c;let b=Kf.itemMinHeight+r.itemheight-Kf.dfltFillHeight;n.height=Math.max(h,Kf.itemMinHeight,b)+Kf.itemHeightPad,n.width=d}}function iEt(e){var t=0,r=0,i=e.title.side;return i&&(i.indexOf("left")!==-1&&(t=e._titleWidth),i.indexOf("top")!==-1&&(r=e._titleHeight)),[t,r]}function nEt(e,t,r,i,n){var a=e._fullLayout,o=jw.getId(i);i||(i=a[o]);var s=a._size,l=jw.isVertical(i),u=jw.isGrouped(i),f=i.entrywidthmode==="fraction",c=i.borderwidth,h=2*c,d=Kf.itemGap,p=i.indentation+i.itemwidth+d*2,v=2*(c+d),y=RL(i),m=i.y<0||i.y===0&&y==="top",w=i.y>1||i.y===1&&y==="bottom",_=i.tracegroupgap,b={};let{orientation:M,yref:x}=i,{maxheight:T}=i,A=m||w||M!=="v"||x!=="paper";T||(T=A?.5:1);let g=A?a.height:s.h;i._maxHeight=Math.max(T>1?T:T*g,30);var E=0;i._width=0,i._height=0;var S=iEt(i);if(l)r.each(function(de){var me=de[0].height;Fc.setTranslate(this,c+S[0],c+S[1]+i._height+me/2+d),i._height+=me,i._width=Math.max(i._width,de[0].width)}),E=p+i._width,i._width+=d+p+h,i._height+=v,u&&(t.each(function(de,me){Fc.setTranslate(this,0,me*i.tracegroupgap)}),i._height+=(i._lgroupsLength-1)*i.tracegroupgap);else{var C=IL(i),k=i.x<0||i.x===0&&C==="right",D=i.x>1||i.x===1&&C==="left",F=w||m,P=a.width/2;i._maxWidth=Math.max(k?F&&C==="left"?s.l+s.w:P:D?F&&C==="right"?s.r+s.w:P:s.w,2*p);var I=0,L=0;r.each(function(de){var me=LL(de,i,p);I=Math.max(I,me),L+=me}),E=null;var z=0;if(u){var B=0,O=0,W=0;t.each(function(){var de=0,me=0;H0.select(this).selectAll("g.traces").each(function(ke){var le=LL(ke,i,p),te=ke[0].height;Fc.setTranslate(this,S[0],S[1]+c+d+te/2+me),me+=te,de=Math.max(de,le),b[ke[0].trace.legendgroup]=de});var ze=de+d;O>0&&ze+c+O>i._maxWidth?(z=Math.max(z,O),O=0,W+=B+_,B=me):B=Math.max(B,me),Fc.setTranslate(this,O,W),O+=ze}),i._width=Math.max(z,O)+c,i._height=W+B+v}else{var X=r.size(),Z=L+h+(X-1)*d=i._maxWidth&&(z=Math.max(z,N),q=0,Q+=H,i._height+=H,H=0),Fc.setTranslate(this,S[0]+c+q,S[1]+c+Q+me/2+d),N=q+ze+d,q+=ke,H=Math.max(H,me)}),Z?(i._width=q+h,i._height=H+v):(i._width=Math.max(z,N)+h,i._height+=H+v)}}i._width=Math.ceil(Math.max(i._width+S[0],i._titleWidth+2*(c+Kf.titlePad))),i._height=Math.ceil(Math.max(i._height+S[1],i._titleHeight+2*(c+Kf.itemGap))),i._effHeight=Math.min(i._height,i._maxHeight);var U=e._context.edits,J=U.legendText||U.legendPosition;if(r.each(function(de){var me=H0.select(this).select("."+o+"toggle"),ze=de[0].height,ke=de[0].trace.legendgroup,le=LL(de,i,p);u&&ke!==""&&(le=b[ke]);var te=J?p:E||le;!l&&!f&&(te+=d/2),Fc.setRect(me,0,-ze/2,te,ze)}),i._inHover){let de=i._width-h-d-S[0];r.each(function(me){me[0].textAlign==="right"&&H0.select(this).select("."+o+"text").attr("text-anchor","end").call(uy.positionText,de)})}var j=n.select("."+o+"titletext");j.node()&&JSt(j,i,c);var $=n.select("."+o+"titletoggle");if($.size()&&j.node()){var ie=j.attr("x")||0,re=Kf.titlePad;Fc.setRect($,ie-re,c,i._titleWidth+2*re,i._titleHeight+2*re)}}function aEt(e,t,r,i){var n=e._fullLayout,a=n[t],o=IL(a),s=RL(a),l=a.xref==="paper",u=a.yref==="paper";e._fullLayout._reservedMargin[t]={};var f=a.y<.5?"b":"t",c=a.x<.5?"l":"r",h={r:n.width-r,l:r+a._width,b:n.height-i,t:i+a._effHeight};if(l&&u)return sj.autoMargin(e,t,{x:a.x,y:a.y,l:a._width*Hw[o],r:a._width*uye[o],b:a._effHeight*uye[s],t:a._effHeight*Hw[s]});l?e._fullLayout._reservedMargin[t][f]=h[f]:u||a.orientation==="v"?e._fullLayout._reservedMargin[t][c]=h[c]:e._fullLayout._reservedMargin[t][f]=h[f]}function IL(e){return Dc.isRightAnchor(e)?"right":Dc.isCenterAnchor(e)?"center":"left"}function RL(e){return Dc.isBottomAnchor(e)?"bottom":Dc.isMiddleAnchor(e)?"middle":"top"}});var pj=K(dj=>{"use strict";var cy=No(),fy=Hs(),Jf=St(),oEt=Jf.pushUnique,fj=Jf.strTranslate,sEt=Jf.strRotate,lEt=Aw(),Uf=Du(),uEt=Ume(),K1=Is(),Yc=wo(),BL=U0(),J1=Cs(),fEt=(jc(),or(Hc)).zindexSeparator,Ab=Ho(),ip=ud(),Tb=($T(),or(WT)),cEt=XH(),hEt=uj(),Tye=Tb.YANGLE,hj=Math.PI*Tye/180,dEt=1/Math.sin(hj),pEt=Math.cos(hj),vEt=Math.sin(hj),Rf=Tb.HOVERARROWSIZE,iu=Tb.HOVERTEXTPAD,mye={box:!0,ohlc:!0,violin:!0,candlestick:!0},mEt={scatter:!0,scattergl:!0,splom:!0};function yye(e,t){return e.distance-t.distance}dj.hover=function(t,r,i,n){t=Jf.getGraphDiv(t);var a=r.target;Jf.throttle(t._fullLayout._uid+Tb.HOVERID,Tb.HOVERMINTIME,function(){gEt(t,r,i,n,a)})};dj.loneHover=function(t,r){var i=!0;Array.isArray(t)||(i=!1,t=[t]);var n=r.gd,a=kye(n),o=Cye(n),s=t.map(function(p){var v=p._x0||p.x0||p.x||0,y=p._x1||p.x1||p.x||0,m=p._y0||p.y0||p.y||0,w=p._y1||p.y1||p.y||0,_=p.eventData;if(_){var b=Math.min(v,y),M=Math.max(v,y),x=Math.min(m,w),T=Math.max(m,w),A=p.trace;if(Ab.traceIs(A,"gl3d")){var g=n._fullLayout[A.scene]._scene.container,E=g.offsetLeft,S=g.offsetTop;b+=E,M+=E,x+=S,T+=S}_.bbox={x0:b+o,x1:M+o,y0:x+a,y1:T+a},_.xPixel=(v+y)/2,_.yPixel=(m+w)/2,r.inOut_bbox&&r.inOut_bbox.push(_.bbox)}else _=!1;return{color:p.color||Yc.defaultLine,x0:p.x0||p.x||0,x1:p.x1||p.x||0,y0:p.y0||p.y||0,y1:p.y1||p.y||0,xLabel:p.xLabel,yLabel:p.yLabel,zLabel:p.zLabel,text:p.text,name:p.name,idealAlign:p.idealAlign,borderColor:p.borderColor,fontFamily:p.fontFamily,fontSize:p.fontSize,fontColor:p.fontColor,fontWeight:p.fontWeight,fontStyle:p.fontStyle,fontVariant:p.fontVariant,nameLength:p.nameLength,textAlign:p.textAlign,trace:p.trace||{index:0,hoverinfo:""},xa:{_offset:0},ya:{_offset:0},index:0,hovertemplate:p.hovertemplate||!1,hovertemplateLabels:p.hovertemplateLabels||!1,eventData:_}}),l=!1,u=Sye(s,{gd:n,hovermode:"closest",rotateLabels:l,bgColor:r.bgColor||Yc.background,container:cy.select(r.container),outerContainer:r.outerContainer||r.container}),f=u.hoverLabels;function c(){var p=5,v=0,y=0;f.sort(function(m,w){return m.y0-w.y0}).each(function(m,w){var _=m.y0-m.by/2;_-pA[0]._length||me<0||me>g[0]._length)return BL.unhoverRaw(e,t)}if(t.pointerX=de+A[0]._offset,t.pointerY=me+g[0]._offset,"xval"in t?I=ip.flat(a,t.xval):I=ip.p2c(A,de),"yval"in t?L=ip.flat(a,t.yval):L=ip.p2c(g,me),e._hoverPointerX=t.pointerX,e._hoverPointerY=t.pointerY,!fy(I[0])||!fy(L[0]))return Jf.warn("Fx.hover failed",t,e),BL.unhoverRaw(e,t)}s.clickanywhere&&(e._hoverXVals=I,e._hoverYVals=L,e._hoverXAxes=A,e._hoverYAxes=g);var le=1/0;function te(Et,er){for(B=0;BU&&(F.splice(0,U),le=F[0].distance),Ab.traceIs(W,"ternary")&&D!==0){let Fi=N.subplot;if(["aaxis","baxis","caxis"].some(Cr=>Fi[Cr].showspikes&&Fi[Cr].spikesnap!=="hovered data")){let Cr=kr==null?void 0:kr[0];if(!Number.isFinite(Cr==null?void 0:Cr.spikeDistance)){let Wt=Jf.extendFlat({},N,{distance:D,index:!1}),dr=W._module.hoverPoints(Wt,q,Q,"closest");Cr=dr&&dr[0]}let Ut=j[X];Cr&&Cr.index!==void 0&&Cr.index!==!1&&Cr.spikeDistance<=D&&(!Ut||Cr.spikeDistanceri.spikeDistance)&&(J.vLinePoint=ri))}var Gr=Or.filter(function(Fi){return Fi.ya.showspikes&&Fi.ya.spikesnap!=="hovered data"});if(Gr.length){var _i=Gr[0];fy(_i.x0)&&fy(_i.y0)&&(ri=oe(_i),(!J.hLinePoint||J.hLinePoint.spikeDistance>ri.spikeDistance)&&(J.hLinePoint=ri))}}}}}te();function Ee(){if(s._hoverlayer.selectAll(".ternary-spikes").remove(),D!==0)for(let Et=0;Etfr.trace.subplot===er&&fr.index!==void 0&&fr.index!==!1&&fr.spikeDistance<=D);xr.drawSpikelines(kr,j[er],I&&I[Et],L&&L[Et])}}}function we(Et,er,xr){for(var kr=null,fr=1/0,Yr,Or=0;OrEt.trace.index===We.trace.index):F=[We];var Ke=F.length,tt=Aye("x",We,s),at=Aye("y",We,s);te(tt,at);var Ge=[],ge={},Be=0,Ze=function(Et){var er=mye[Et.trace.type]?Mye(Et):Et.trace.index;if(!ge[er])Be++,ge[er]=Be,Ge.push(Et);else{var xr=ge[er]-1,kr=Ge[xr];xr>0&&Math.abs(Et.distance)Ke-1;Le--)Ze(F[Le]);F=Ge,V()}var De=e._hoverdata,Ue=[],Pe=kye(e),Se=Cye(e);for(let Et of F){var Ie=ip.makeEventData(Et,Et.trace,Et.cd);if(Et.hovertemplate!==!1){var ot=!1;Et.cd[Et.index]&&Et.cd[Et.index].ht&&(ot=Et.cd[Et.index].ht),Et.hovertemplate=ot||Et.trace.hovertemplate||!1}if(Et.xa&&Et.ya){var ut=Et.x0+Et.xa._offset,_t=Et.x1+Et.xa._offset,At=Et.y0+Et.ya._offset,Gt=Et.y1+Et.ya._offset,Dt=Math.min(ut,_t),yt=Math.max(ut,_t),Mt=Math.min(At,Gt),tr=Math.max(At,Gt);Ie.bbox={x0:Dt+Se,x1:yt+Se,y0:Mt+Pe,y1:tr+Pe},Ie.xPixel=(ut+_t)/2,Ie.yPixel=(At+Gt)/2}Et.eventData=[Ie],Ue.push(Ie)}e._hoverdata=Ue;var Ye=d==="y"&&(P.length>1||F.length>1)||d==="closest"&&$&&F.length>1,nt=Yc.combine(s.plot_bgcolor||Yc.background,s.paper_bgcolor),st=Sye(F,{gd:e,hovermode:d,rotateLabels:Ye,bgColor:nt,container:s._hoverlayer,outerContainer:s._paper.node(),commonLabelOpts:s.hoverlabel,hoverdistance:s.hoverdistance}),dt=st.hoverLabels;if(ip.isUnifiedHover(d)||(xye(dt,Ye,s,st.commonLabelBoundingBox),OL(dt,Ye,s._invScaleX,s._invScaleY),st.mathjaxPromise&&st.mathjaxPromise.then(function(){e._hoverdata===Ue&&(xye(dt,Ye,s,st.commonLabelBoundingBox),OL(dt,Ye,s._invScaleX,s._invScaleY),dt.each(function(){var Et=cy.select(this);Uf.repositionMathGroup(Et.select("text.nums")),Uf.repositionMathGroup(Et.select("text.name"))}))})),n&&n.tagName){var rt=Ab.getComponentMethod("annotations","hasClickToShow")(e,Ue);uEt(cy.select(n),rt?"pointer":"")}var ft=wEt(e,t,De);if(!n||i||!ft&&!s.hoveranywhere)return;De&&ft&&e.emit("plotly_unhover",{event:t,points:De}),Ft(e._hoverdata);function Ft(Et){e.emit("plotly_hover",{event:t,points:Et,xaxes:A,yaxes:g,xvals:ip.c2dApply(A,I),yvals:ip.c2dApply(g,L),xPixel:t.pointerX,yPixel:t.pointerY})}}function Mye(e){return[e.trace.index,e.index,e.x0,e.y0,e.name,e.attr,e.xa?e.xa._id:"",e.ya?e.ya._id:""].join(",")}var xEt=/([\s\S]*)<\/extra>/;function cj(e,t){return qL(e,Uf.getMathOrTextNode(t))}function Sye(e,t){var r=t.gd,i=r._fullLayout,n=t.hovermode,a=t.rotateLabels,o=t.bgColor,s=t.container,l=t.outerContainer,u=t.commonLabelOpts||{};if(e.length===0)return[[]];var f=[],c=t.fontFamily||Tb.HOVERFONT,h=t.fontSize||Tb.HOVERFONTSIZE,d=t.fontWeight||i.font.weight,p=t.fontStyle||i.font.style,v=t.fontVariant||i.font.variant,y=t.fontTextcase||i.font.textcase,m=t.fontLineposition||i.font.lineposition,w=t.fontShadow||i.font.shadow,_=e[0],b=_.xa,M=_.ya,x=n.charAt(0),T=x+"Label",A=_[T];if(A===void 0&&b.type==="multicategory")for(var g=0;gi.width-Pe&&(Se=i.width-Pe),pe.attr("d","M"+(Le-Se)+",0L"+(Le-Se+Rf)+","+Ue+Rf+"H"+Pe+"v"+Ue+(iu*2+Ze.height)+"H"+-Pe+"V"+Ue+Rf+"H"+(Le-Se-Rf)+"Z"),Le=Se,B.minX=Le-Pe,B.maxX=Le+Pe,b.side==="top"?(B.minY=De-(iu*2+Ze.height),B.maxY=De-iu):(B.minY=De+iu,B.maxY=De+(iu*2+Ze.height))}else{var Ie,ot,ut;M.side==="right"?(Ie="start",ot=1,ut="",Le=b._offset+b._length):(Ie="end",ot=-1,ut="-",Le=b._offset),De=M._offset+(_.y0+_.y1)/2,fe.attr("text-anchor",Ie),pe.attr("d","M0,0L"+ut+Rf+","+Rf+"V"+(iu+Ze.height/2)+"h"+ut+(iu*2+Ze.width)+"V-"+(iu+Ze.height/2)+"H"+ut+Rf+"V-"+Rf+"Z"),B.minY=De-(iu+Ze.height/2),B.maxY=De+(iu+Ze.height/2),M.side==="right"?(B.minX=Le+Rf,B.maxX=Le+Rf+(iu*2+Ze.width)):(B.minX=Le-Rf-(iu*2+Ze.width),B.maxX=Le-Rf);var _t=Ze.height/2,At=S-Ze.top-_t,Gt="clip"+i._uid+"commonlabel"+M._id,Dt;if(Lepe.hoverinfo!=="none");if(se.length===0)return[];var O=i.hoverlabel,W=O.font,X=se[0],Z=((n==="x unified"?X.xa:X.ya).unifiedhovertitle||{}).text,H=Z?Jf.hovertemplateString({data:n==="x unified"?[{xa:X.xa,x:X.xVal}]:[{ya:X.ya,y:X.yVal}],fallback:X.trace.hovertemplatefallback,locale:i._d3locale,template:Z}):A,q={showlegend:!0,legend:{title:{text:H,font:W},font:W,bgcolor:O.bgcolor,bordercolor:O.bordercolor,borderwidth:1,tracegroupgap:7,traceorder:i.legend?i.legend.traceorder:void 0,orientation:"v"}},Q={font:W};cEt(q,Q,r._fullData);var N=Q.legend;N.entries=[];for(var U=0;U=0?_e=ne:ye+ze=0?_e=ye:V+ze=0?xe=oe:Y+ke=0?xe=Y:ue+ke=0,(se.idealAlign==="top"||!st)&&dt?(ut-=At/2,se.anchor="end"):st?(ut+=At/2,se.anchor="start"):se.anchor="middle",se.crossPos=ut;else{if(se.pos=ut,st=ot+_t/2+nt<=C,dt=ot-_t/2-nt>=0,(se.idealAlign==="left"||!st)&&dt)ot-=_t/2,se.anchor="end";else if(st)ot+=_t/2,se.anchor="start";else{se.anchor="middle";var rt=nt/2,ft=ot+rt-C,Ft=ot-rt;ft>0&&(ot-=ft),Ft<0&&(ot+=-Ft)}se.crossPos=ot}Pe.attr("text-anchor",se.anchor),Gt&&Se.attr("text-anchor",se.anchor),pe.attr("transform",fj(ot,ut)+(a?sEt(Tye):""))}}),{hoverLabels:Ae,commonLabelBoundingBox:B,mathjaxPromise:f.length?Promise.all(f):null}}function gye(e,t,r,i,n,a){var c,h;var o="",s="";e.nameOverride!==void 0&&(e.name=e.nameOverride),e.name&&(e.trace._meta&&(e.name=Jf.templateString(e.name,e.trace._meta)),o=wye(e.name,e.nameLength));var l=r.charAt(0),u=l==="x"?"y":"x";e.zLabel!==void 0?(e.xLabel!==void 0&&(s+="x: "+e.xLabel+"
"),e.yLabel!==void 0&&(s+="y: "+e.yLabel+"
"),e.trace.type!=="choropleth"&&e.trace.type!=="choroplethmap"&&(s+=(s?"z: ":"")+e.zLabel)):t&&e[l+"Label"]===n?s=e[u+"Label"]||"":e.xLabel===void 0?e.yLabel!==void 0&&e.trace.type!=="scattercarpet"&&(s=e.yLabel):e.yLabel===void 0?s=e.xLabel:s="("+e.xLabel+", "+e.yLabel+")",(e.text||e.text===0)&&!Array.isArray(e.text)&&(s+=(s?"
":"")+e.text),e.extraText!==void 0&&(s+=(s?"
":"")+e.extraText),a&&s===""&&!e.hovertemplate&&(o===""&&a.remove(),s=o),(h=(c=e.trace)==null?void 0:c.hoverlabel)!=null&&h.split&&(e.hovertemplate="");let{hovertemplate:f=!1}=e;if(f){let d=e.hovertemplateLabels||e;e[l+"Label"]!==n&&(d[l+"other"]=d[l+"Val"],d[l+"otherLabel"]=d[l+"Label"]),s=Jf.hovertemplateString({data:[e.eventData[0]||{},e.trace._meta],fallback:e.trace.hovertemplatefallback,labels:d,locale:i._d3locale,template:f}),s=s.replace(xEt,(p,v)=>(o=wye(v,e.nameLength),""))}return[s,o]}function xye(e,t,r,i){var n=t?"xa":"ya",a=t?"ya":"xa",o=0,s=1,l=e.size(),u=new Array(l),f=0,c=i.minX,h=i.maxX,d=i.minY,p=i.maxY,v=function(P){return P*r._invScaleX},y=function(P){return P*r._invScaleY};e.each(function(P){var I=P[n],L=P[a],z=I._id.charAt(0)==="x",B=I.range;f===0&&B&&B[0]>B[1]!==z&&(s=-1);var O=0,W=z?r.width:r.height;if(r.hovermode==="x"||r.hovermode==="y"){var X=Eye(P,t),Z=P.anchor,H=Z==="end"?-1:1,q,Q;if(Z==="middle")q=P.crossPos+(z?y(X.y-P.by/2):v(P.bx/2+P.tx2width/2)),Q=q+(z?y(P.by):v(P.bx));else if(z)q=P.crossPos+y(Rf+X.y)-y(P.by/2-Rf),Q=q+y(P.by);else{var N=v(H*Rf+X.x),U=N+v(H*P.bx);q=P.crossPos+Math.min(N,U),Q=P.crossPos+Math.max(N,U)}z?d!==void 0&&p!==void 0&&Math.min(Q,p)-Math.max(q,d)>1&&(L.side==="left"?(O=L._mainLinePosition,W=r.width):W=L._mainLinePosition):c!==void 0&&h!==void 0&&Math.min(Q,h)-Math.max(q,c)>1&&(L.side==="top"?(O=L._mainLinePosition,W=r.height):W=L._mainLinePosition)}u[f++]=[{datum:P,traceIndex:P.trace.index,dp:0,pos:P.pos,posref:P.posref,size:P.by*(z?dEt:1)/2,pmin:O,pmax:W}]}),u.sort(function(P,I){return P[0].posref-I[0].posref||s*(I[0].traceIndex-P[0].traceIndex)});var m,w,_,b,M,x,T;function A(P){var I=P[0],L=P[P.length-1];if(w=I.pmin-I.pos-I.dp+I.size,_=L.pos+L.dp+L.size-I.pmax,w>.01){for(M=P.length-1;M>=0;M--)P[M].dp+=w;m=!1}if(!(_<.01)){if(w<-.01){for(M=P.length-1;M>=0;M--)P[M].dp-=_;m=!1}if(m){var z=0;for(b=0;bI.pmax&&z++;for(b=P.length-1;b>=0&&!(z<=0);b--)x=P[b],x.pos>I.pmax-1&&(x.del=!0,z--);for(b=0;b=0;M--)P[M].dp-=_;for(b=P.length-1;b>=0&&!(z<=0);b--)x=P[b],x.pos+x.dp+x.size>I.pmax&&(x.del=!0,z--)}}}for(;!m&&o<=l;){for(o++,m=!0,b=0;b.01){for(M=E.length-1;M>=0;M--)E[M].dp+=w;for(g.push.apply(g,E),u.splice(b+1,1),T=0,M=g.length-1;M>=0;M--)T+=g[M].dp;for(_=T/g.length,M=g.length-1;M>=0;M--)g[M].dp-=_;m=!1}else b++}u.forEach(A)}for(b=u.length-1;b>=0;b--){var k=u[b];for(M=k.length-1;M>=0;M--){var D=k[M],F=D.datum;F.offset=D.dp,F.del=D.del}}}function Eye(e,t){var r=0,i=e.offset;return t&&(i*=-vEt,r=e.offset*pEt),{x:r,y:i}}function bEt(e){var t={start:1,end:-1,middle:0}[e.anchor],r=t*(Rf+iu),i=r+t*(e.txwidth+iu),n=e.anchor==="middle";return n&&(r-=e.tx2width/2,i+=e.txwidth/2+iu),{alignShift:t,textShiftX:r,text2ShiftX:i}}function OL(e,t,r,i){var n=function(o){return o*r},a=function(o){return o*i};e.each(function(o){var s=cy.select(this);if(o.del)return s.remove();var l=s.select("text.nums"),u=o.anchor,f=u==="end"?-1:1,c=bEt(o),h=Eye(o,t),d=h.x,p=h.y,v=u==="middle",y="hoverlabel"in o.trace?o.trace.hoverlabel.showarrow:!0,m;v?m="M-"+n(o.bx/2+o.tx2width/2)+","+a(p-o.by/2)+"h"+n(o.bx)+"v"+a(o.by)+"h-"+n(o.bx)+"Z":y?m="M0,0L"+n(f*Rf+d)+","+a(Rf+p)+"v"+a(o.by/2-Rf)+"h"+n(f*o.bx)+"v-"+a(o.by)+"H"+n(f*Rf+d)+"V"+a(p-Rf)+"Z":m="M"+n(f*Rf+d)+","+a(p-o.by/2)+"h"+n(f*o.bx)+"v"+a(o.by)+"h"+n(-f*o.bx)+"Z",s.select("path").attr("d",m);var w=d+c.textShiftX,_=p+o.ty0-o.by/2+iu,b=o.textAlign||"auto";b!=="auto"&&(b==="left"&&u!=="start"?(l.attr("text-anchor","start"),w=v?-o.bx/2-o.tx2width/2+iu:-o.bx-iu):b==="right"&&u!=="end"&&(l.attr("text-anchor","end"),w=v?o.bx/2-o.tx2width/2-iu:o.bx+iu)),l.call(Uf.positionText,n(w),a(_)),o.tx2width&&(s.select("text.name").call(Uf.positionText,n(c.text2ShiftX+c.alignShift*iu+d),a(p+o.ty0-o.by/2+iu)),s.select("rect").call(K1.setRect,n(c.text2ShiftX+(c.alignShift-1)*o.tx2width/2+d),a(p-o.by/2-1),n(o.tx2width),a(o.by+2)))})}function _Et(e,t){var r=e.index,i=e.trace||{},n=e.cd[0],a=e.cd[r]||{};function o(h){return h||fy(h)&&h===0}var s=Array.isArray(r)?function(h,d){var p=Jf.castOption(n,r,h);return o(p)?p:Jf.extractOption({},i,"",d)}:function(h,d){return Jf.extractOption(a,i,h,d)};function l(h,d,p){var v=s(d,p);o(v)&&(e[h]=v)}if(l("hoverinfo","hi","hoverinfo"),l("bgcolor","hbg","hoverlabel.bgcolor"),l("borderColor","hbc","hoverlabel.bordercolor"),l("fontFamily","htf","hoverlabel.font.family"),l("fontSize","hts","hoverlabel.font.size"),l("fontColor","htc","hoverlabel.font.color"),l("fontWeight","htw","hoverlabel.font.weight"),l("fontStyle","hty","hoverlabel.font.style"),l("fontVariant","htv","hoverlabel.font.variant"),l("nameLength","hnl","hoverlabel.namelength"),l("textAlign","hta","hoverlabel.align"),e.posref=t==="y"||t==="closest"&&i.orientation==="h"?e.xa._offset+(e.x0+e.x1)/2:e.ya._offset+(e.y0+e.y1)/2,e.x0=Jf.constrain(e.x0,0,e.xa._length),e.x1=Jf.constrain(e.x1,0,e.xa._length),e.y0=Jf.constrain(e.y0,0,e.ya._length),e.y1=Jf.constrain(e.y1,0,e.ya._length),e.xLabelVal!==void 0&&(e.xLabel="xLabel"in e?e.xLabel:J1.hoverLabelText(e.xa,e.xLabelVal,i.xhoverformat),e.xVal=e.xa.c2d(e.xLabelVal)),e.yLabelVal!==void 0&&(e.yLabel="yLabel"in e?e.yLabel:J1.hoverLabelText(e.ya,e.yLabelVal,i.yhoverformat),e.yVal=e.ya.c2d(e.yLabelVal)),e.zLabelVal!==void 0&&e.zLabel===void 0&&(e.zLabel=String(e.zLabelVal)),!isNaN(e.xerr)&&!(e.xa.type==="log"&&e.xerr<=0)){var u=J1.tickText(e.xa,e.xa.c2l(e.xerr),"hover").text;e.xerrneg!==void 0?e.xLabel+=" +"+u+" / -"+J1.tickText(e.xa,e.xa.c2l(e.xerrneg),"hover").text:e.xLabel+=" \xB1 "+u,t==="x"&&(e.distance+=1)}if(!isNaN(e.yerr)&&!(e.ya.type==="log"&&e.yerr<=0)){var f=J1.tickText(e.ya,e.ya.c2l(e.yerr),"hover").text;e.yerrneg!==void 0?e.yLabel+=" +"+f+" / -"+J1.tickText(e.ya,e.ya.c2l(e.yerrneg),"hover").text:e.yLabel+=" \xB1 "+f,t==="y"&&(e.distance+=1)}var c=e.hoverinfo||e.trace.hoverinfo;return c&&c!=="all"&&(c=Array.isArray(c)?c:c.split("+"),c.indexOf("x")===-1&&(e.xLabel=void 0),c.indexOf("y")===-1&&(e.yLabel=void 0),c.indexOf("z")===-1&&(e.zLabel=void 0),c.indexOf("text")===-1&&(e.text=void 0),c.indexOf("name")===-1&&(e.name=void 0)),e}function bye(e,t,r){var i=r.container,n=r.fullLayout,a=n._size,o=r.event,s=!!t.hLinePoint,l=!!t.vLinePoint,u,f;if(i.selectAll(".spikeline").remove(),!!(l||s)){var c=Yc.combine(n.plot_bgcolor,n.paper_bgcolor);if(s){var h=t.hLinePoint,d,p;u=h&&h.xa,f=h&&h.ya;var v=f.spikesnap;v==="cursor"?(d=o.pointerX,p=o.pointerY):(d=u._offset+h.x,p=f._offset+h.y);var y=Yc.wcagContrast(h.color,c)<1.5?Yc.contrast(c):h.color,m=f.spikemode,w=f.spikethickness,_=f.spikecolor||y,b=J1.getPxPosition(e,f),M,x;if(m.indexOf("toaxis")!==-1||m.indexOf("across")!==-1){if(m.indexOf("toaxis")!==-1&&(M=b,x=d),m.indexOf("across")!==-1){var T=f._counterDomainMin,A=f._counterDomainMax;f.anchor==="free"&&(T=Math.min(T,f.position),A=Math.max(A,f.position)),M=a.l+T*a.w,x=a.l+A*a.w}i.insert("line",":first-child").attr({x1:M,x2:x,y1:p,y2:p,"stroke-width":w,stroke:_,"stroke-dasharray":K1.dashStyle(f.spikedash,w)}).classed("spikeline",!0).classed("crisp",!0),i.insert("line",":first-child").attr({x1:M,x2:x,y1:p,y2:p,"stroke-width":w+2,stroke:c}).classed("spikeline",!0).classed("crisp",!0)}m.indexOf("marker")!==-1&&i.insert("circle",":first-child").attr({cx:b+(f.side!=="right"?w:-w),cy:p,r:w,fill:_}).classed("spikeline",!0)}if(l){var g=t.vLinePoint,E,S;u=g&&g.xa,f=g&&g.ya;var C=u.spikesnap;C==="cursor"?(E=o.pointerX,S=o.pointerY):(E=u._offset+g.x,S=f._offset+g.y);var k=Yc.wcagContrast(g.color,c)<1.5?Yc.contrast(c):g.color,D=u.spikemode,F=u.spikethickness,P=u.spikecolor||k,I=J1.getPxPosition(e,u),L,z;if(D.indexOf("toaxis")!==-1||D.indexOf("across")!==-1){if(D.indexOf("toaxis")!==-1&&(L=I,z=S),D.indexOf("across")!==-1){var B=u._counterDomainMin,O=u._counterDomainMax;u.anchor==="free"&&(B=Math.min(B,u.position),O=Math.max(O,u.position)),L=a.t+(1-O)*a.h,z=a.t+(1-B)*a.h}i.insert("line",":first-child").attr({x1:E,x2:E,y1:L,y2:z,"stroke-width":F,stroke:P,"stroke-dasharray":K1.dashStyle(u.spikedash,F)}).classed("spikeline",!0).classed("crisp",!0),i.insert("line",":first-child").attr({x1:E,x2:E,y1:L,y2:z,"stroke-width":F+2,stroke:c}).classed("spikeline",!0).classed("crisp",!0)}D.indexOf("marker")!==-1&&i.insert("circle",":first-child").attr({cx:E,cy:I-(u.side!=="top"?F:-F),r:F,fill:P}).classed("spikeline",!0)}}}function wEt(e,t,r){if(!r||r.length!==e._hoverdata.length)return!0;for(var i=r.length-1;i>=0;i--){var n=r[i],a=e._hoverdata[i];if(n.curveNumber!==a.curveNumber||String(n.pointNumber)!==String(a.pointNumber)||String(n.pointNumbers)!==String(a.pointNumbers)||n.binNumber!==a.binNumber)return!0}return!1}function _ye(e,t){return!t||t.vLinePoint!==e._spikepoints.vLinePoint||t.hLinePoint!==e._spikepoints.hLinePoint}function wye(e,t){return Uf.plainText(e||"",{len:t,allowedTags:["br","sub","sup","b","i","em","s","u"]})}function AEt(e,t){for(var r=t.charAt(0),i=[],n=[],a=[],o=0;oe.offsetTop+e.clientTop,Cye=e=>e.offsetLeft+e.clientLeft;function qL(e,t){var r=e._fullLayout,i=t.getBoundingClientRect(),n=i.left,a=i.top,o=n+i.width,s=a+i.height,l=Jf.apply3DTransform(r._invTransform)(n,a),u=Jf.apply3DTransform(r._invTransform)(o,s),f=l[0],c=l[1],h=u[0],d=u[1];return{x:f,y:c,width:h-f,height:d-c,top:Math.min(c,d),left:Math.min(f,h),right:Math.max(f,h),bottom:Math.max(c,d)}}});var V6=K((dVr,Dye)=>{"use strict";var TEt=St(),MEt=wo(),SEt=ud().isUnifiedHover;Dye.exports=function(t,r,i,n){n=n||{};var a=r.legend;function o(s){n.font[s]||(n.font[s]=a?r.legend.font[s]:r.font[s])}r&&SEt(r.hovermode)&&(n.font||(n.font={}),o("size"),o("family"),o("color"),o("weight"),o("style"),o("variant"),a?(n.bgcolor||(n.bgcolor=MEt.combine(r.legend.bgcolor,r.paper_bgcolor)),n.bordercolor||(n.bordercolor=r.legend.bordercolor)):n.bgcolor||(n.bgcolor=r.paper_bgcolor)),i("hoverlabel.bgcolor",n.bgcolor),i("hoverlabel.bordercolor",n.bordercolor),i("hoverlabel.namelength",n.namelength),i("hoverlabel.showarrow",n.showarrow),TEt.coerceFont(i,"hoverlabel.font",n.font),i("hoverlabel.align",n.align)}});var Lye=K((pVr,Fye)=>{"use strict";var EEt=St(),kEt=V6(),CEt=wg();Fye.exports=function(t,r){function i(n,a){return EEt.coerce(t,r,CEt,n,a)}kEt(t,r,i)}});var Iye=K((vVr,zye)=>{"use strict";var Pye=St(),DEt=rw(),FEt=V6();zye.exports=function(t,r,i,n){function a(s,l){return Pye.coerce(t,r,DEt,s,l)}var o=Pye.extendFlat({},n.hoverlabel);r.hovertemplate&&(o.namelength=-1),FEt(t,r,a,o)}});var vj=K((mVr,Rye)=>{"use strict";var LEt=St(),PEt=wg();Rye.exports=function(t,r){function i(n,a){return r[n]!==void 0?r[n]:LEt.coerce(t,r,PEt,n,a)}return i("clickmode"),i("hoversubplots"),i("hoveranywhere"),i("clickanywhere"),i("hovermode")}});var Oye=K((yVr,qye)=>{"use strict";var Bye=St(),zEt=wg(),IEt=vj(),REt=V6();qye.exports=function(t,r){function i(u,f){return Bye.coerce(t,r,zEt,u,f)}var n=IEt(t,r);n&&(i("hoverdistance"),i("spikedistance"),n.indexOf("unified")!==-1&&i("hoversort"));var a=i("dragmode");a==="select"&&i("selectdirection");var o=r._has("map"),s=r._has("geo"),l=r._basePlotModules.length;r.dragmode==="zoom"&&((o||s)&&l===1||o&&s&&l===2)&&(r.dragmode="pan"),REt(t,r,i),Bye.coerceFont(i,"hoverlabel.grouptitlefont",r.hoverlabel.font)}});var Uye=K((gVr,Vye)=>{"use strict";var mj=St(),Nye=Ho();Vye.exports=function(t){var r=t.calcdata,i=t._fullLayout;function n(u){return function(f){return mj.coerceHoverinfo({hoverinfo:f},{_module:u._module},i)}}for(var a=0;a{"use strict";var qEt=Ho(),Gye=ud(),OEt=pj().hover;Hye.exports=function(t,r,i){var n=qEt.getComponentMethod("annotations","onClick")(t,t._hoverdata),a=t._fullLayout;i!==void 0&&OEt(t,r,i,!0);function o(){var l,u,f,c,h,d;var s={points:t._hoverdata,event:r};(l=s.xaxes)!=null||(s.xaxes=t._hoverXAxes),(u=s.yaxes)!=null||(s.yaxes=t._hoverYAxes),(f=s.xvals)!=null||(s.xvals=t._hoverXVals&&Gye.c2dApply(t._hoverXAxes,t._hoverXVals)),(c=s.yvals)!=null||(s.yvals=t._hoverYVals&&Gye.c2dApply(t._hoverYAxes,t._hoverYVals)),(h=s.xPixel)!=null||(s.xPixel=t._hoverPointerX),(d=s.yPixel)!=null||(s.yPixel=t._hoverPointerY),t.emit("plotly_click",s)}(t._hoverdata||a.clickanywhere)&&r&&r.target&&(t._hoverdata||(t._hoverdata=[]),n&&n.then?n.then(o):o(),r.stopImmediatePropagation&&r.stopImmediatePropagation())}});var Gf=K((bVr,Yye)=>{"use strict";var NEt=No(),NL=St(),VEt=U0(),U6=ud(),Wye=wg(),$ye=pj();Yye.exports={moduleType:"component",name:"fx",constants:($T(),or(WT)),schema:{layout:Wye},attributes:rw(),layoutAttributes:Wye,supplyLayoutGlobalDefaults:Lye(),supplyDefaults:Iye(),supplyLayoutDefaults:Oye(),calc:Uye(),getDistanceFunction:U6.getDistanceFunction,getClosest:U6.getClosest,inbox:U6.inbox,quadrature:U6.quadrature,appendArrayPointValue:U6.appendArrayPointValue,castHoverOption:GEt,castHoverinfo:HEt,hover:$ye.hover,unhover:VEt.unhover,loneHover:$ye.loneHover,loneUnhover:UEt,click:jye()};function UEt(e){var t=NL.isD3Selection(e)?e:NEt.select(e);t.selectAll("g.hovertext").remove(),t.selectAll(".spikeline").remove()}function GEt(e,t,r){return NL.castOption(e,t,"hoverlabel."+r)}function HEt(e,t,r){function i(n){return NL.coerceHoverinfo({hoverinfo:n},{_module:e._module},t)}return NL.castOption(e,r,"hoverinfo",i)}});var Q1=K(hy=>{"use strict";hy.selectMode=function(e){return e==="lasso"||e==="select"};hy.drawMode=function(e){return e==="drawclosedpath"||e==="drawopenpath"||e==="drawline"||e==="drawrect"||e==="drawcircle"};hy.openMode=function(e){return e==="drawline"||e==="drawopenpath"};hy.rectMode=function(e){return e==="select"||e==="drawline"||e==="drawrect"||e==="drawcircle"};hy.freeMode=function(e){return e==="lasso"||e==="drawclosedpath"||e==="drawopenpath"};hy.selectingOrDrawing=function(e){return hy.freeMode(e)||hy.rectMode(e)}});var G6=K((wVr,Xye)=>{"use strict";Xye.exports=function(t){var r=t._fullLayout;r._glcanvas&&r._glcanvas.size()&&r._glcanvas.each(function(i){i.regl&&i.regl.clear({color:!0,depth:!0})})}});var VL=K((AVr,Zye)=>{"use strict";Zye.exports={undo:{width:857.1,height:1e3,path:"m857 350q0-87-34-166t-91-137-137-92-166-34q-96 0-183 41t-147 114q-4 6-4 13t5 11l76 77q6 5 14 5 9-1 13-7 41-53 100-82t126-29q58 0 110 23t92 61 61 91 22 111-22 111-61 91-92 61-110 23q-55 0-105-20t-90-57l77-77q17-16 8-38-10-23-33-23h-250q-15 0-25 11t-11 25v250q0 24 22 33 22 10 39-8l72-72q60 57 137 88t159 31q87 0 166-34t137-92 91-137 34-166z",transform:"matrix(1 0 0 -1 0 850)"},home:{width:928.6,height:1e3,path:"m786 296v-267q0-15-11-26t-25-10h-214v214h-143v-214h-214q-15 0-25 10t-11 26v267q0 1 0 2t0 2l321 264 321-264q1-1 1-4z m124 39l-34-41q-5-5-12-6h-2q-7 0-12 3l-386 322-386-322q-7-4-13-4-7 2-12 7l-35 41q-4 5-3 13t6 12l401 334q18 15 42 15t43-15l136-114v109q0 8 5 13t13 5h107q8 0 13-5t5-13v-227l122-102q5-5 6-12t-4-13z",transform:"matrix(1 0 0 -1 0 850)"},"camera-retro":{width:1e3,height:1e3,path:"m518 386q0 8-5 13t-13 5q-37 0-63-27t-26-63q0-8 5-13t13-5 12 5 5 13q0 23 16 38t38 16q8 0 13 5t5 13z m125-73q0-59-42-101t-101-42-101 42-42 101 42 101 101 42 101-42 42-101z m-572-320h858v71h-858v-71z m643 320q0 89-62 152t-152 62-151-62-63-152 63-151 151-63 152 63 62 151z m-571 358h214v72h-214v-72z m-72-107h858v143h-462l-36-71h-360v-72z m929 143v-714q0-30-21-51t-50-21h-858q-29 0-50 21t-21 51v714q0 30 21 51t50 21h858q29 0 50-21t21-51z",transform:"matrix(1 0 0 -1 0 850)"},curlybraces:{width:18,height:16,path:"M 9,4 C 7.354992,4 6,5.354992 6,7 V 9 C 6,9.2999997 5.8778068,9.8883542 5.5878906,10.291016 5.2979744,10.693677 4.9222213,11 4,11 a 1.0001,1.0001 0 0 0 0,2 c 0.2999997,0 0.8883542,0.122193 1.2910156,0.412109 C 5.693677,13.702026 6,14.077779 6,15 v 2 c 0,1.645008 1.354992,3 3,3 h 0.5 a 1,1 0 0 0 1,-1 1,1 0 0 0 -1,-1 H 9 C 8.4358712,18 8,17.564129 8,17 V 15 C 8,13.625876 7.3766799,12.602305 6.6113281,11.96875 6.8086352,11.794047 7.0679793,11.657537 7.2109375,11.458984 7.8210204,10.611647 8,9.6999993 8,9 V 7 C 8,6.4358712 8.4358712,6 9,6 h 0.5 a 1,1 0 0 0 1,-1 1,1 0 0 0 -1,-1 z m 5.5,0 a 1,1 0 0 0 -1,1 1,1 0 0 0 1,1 H 15 c 0.564129,0 1,0.4358712 1,1 v 2 c 0,0.6999993 0.17898,1.611647 0.789062,2.458984 0.142959,0.198553 0.402303,0.335063 0.59961,0.509766 C 16.62332,12.602305 16,13.625876 16,15 v 2 c 0,0.564129 -0.435871,1 -1,1 h -0.5 a 1,1 0 0 0 -1,1 1,1 0 0 0 1,1 H 15 c 1.645008,0 3,-1.354992 3,-3 v -2 c 0,-0.922221 0.306323,-1.297974 0.708984,-1.587891 C 19.111646,13.122193 19.7,13 20,13 a 1.0001,1.0001 0 0 0 0,-2 C 19.077779,11 18.702026,10.693677 18.412109,10.291016 18.122193,9.8883542 18,9.2999997 18,9 V 7 C 18,5.354992 16.645008,4 15,4 Z",transform:"translate(-3 -4)"},zoombox:{width:1e3,height:1e3,path:"m1000-25l-250 251c40 63 63 138 63 218 0 224-182 406-407 406-224 0-406-182-406-406s183-406 407-406c80 0 155 22 218 62l250-250 125 125z m-812 250l0 438 437 0 0-438-437 0z m62 375l313 0 0-312-313 0 0 312z",transform:"matrix(1 0 0 -1 0 850)"},pan:{width:1e3,height:1e3,path:"m1000 350l-187 188 0-125-250 0 0 250 125 0-188 187-187-187 125 0 0-250-250 0 0 125-188-188 186-187 0 125 252 0 0-250-125 0 187-188 188 188-125 0 0 250 250 0 0-126 187 188z",transform:"matrix(1 0 0 -1 0 850)"},zoom_plus:{width:875,height:1e3,path:"m1 787l0-875 875 0 0 875-875 0z m687-500l-187 0 0-187-125 0 0 187-188 0 0 125 188 0 0 187 125 0 0-187 187 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},zoom_minus:{width:875,height:1e3,path:"m0 788l0-876 875 0 0 876-875 0z m688-500l-500 0 0 125 500 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},autoscale:{width:1e3,height:1e3,path:"m250 850l-187 0-63 0 0-62 0-188 63 0 0 188 187 0 0 62z m688 0l-188 0 0-62 188 0 0-188 62 0 0 188 0 62-62 0z m-875-938l0 188-63 0 0-188 0-62 63 0 187 0 0 62-187 0z m875 188l0-188-188 0 0-62 188 0 62 0 0 62 0 188-62 0z m-125 188l-1 0-93-94-156 156 156 156 92-93 2 0 0 250-250 0 0-2 93-92-156-156-156 156 94 92 0 2-250 0 0-250 0 0 93 93 157-156-157-156-93 94 0 0 0-250 250 0 0 0-94 93 156 157 156-157-93-93 0 0 250 0 0 250z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_basic:{width:1500,height:1e3,path:"m375 725l0 0-375-375 375-374 0-1 1125 0 0 750-1125 0z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_compare:{width:1125,height:1e3,path:"m187 786l0 2-187-188 188-187 0 0 937 0 0 373-938 0z m0-499l0 1-187-188 188-188 0 0 937 0 0 376-938-1z",transform:"matrix(1 0 0 -1 0 850)"},plotlylogo:{width:1542,height:1e3,path:"m0-10h182v-140h-182v140z m228 146h183v-286h-183v286z m225 714h182v-1000h-182v1000z m225-285h182v-715h-182v715z m225 142h183v-857h-183v857z m231-428h182v-429h-182v429z m225-291h183v-138h-183v138z",transform:"matrix(1 0 0 -1 0 850)"},"z-axis":{width:1e3,height:1e3,path:"m833 5l-17 108v41l-130-65 130-66c0 0 0 38 0 39 0-1 36-14 39-25 4-15-6-22-16-30-15-12-39-16-56-20-90-22-187-23-279-23-261 0-341 34-353 59 3 60 228 110 228 110-140-8-351-35-351-116 0-120 293-142 474-142 155 0 477 22 477 142 0 50-74 79-163 96z m-374 94c-58-5-99-21-99-40 0-24 65-43 144-43 79 0 143 19 143 43 0 19-42 34-98 40v216h87l-132 135-133-135h88v-216z m167 515h-136v1c16 16 31 34 46 52l84 109v54h-230v-71h124v-1c-16-17-28-32-44-51l-89-114v-51h245v72z",transform:"matrix(1 0 0 -1 0 850)"},"3d_rotate":{width:1e3,height:1e3,path:"m922 660c-5 4-9 7-14 11-359 263-580-31-580-31l-102 28 58-400c0 1 1 1 2 2 118 108 351 249 351 249s-62 27-100 42c88 83 222 183 347 122 16-8 30-17 44-27-2 1-4 2-6 4z m36-329c0 0 64 229-88 296-62 27-124 14-175-11 157-78 225-208 249-266 8-19 11-31 11-31 2 5 6 15 11 32-5-13-8-20-8-20z m-775-239c70-31 117-50 198-32-121 80-199 346-199 346l-96-15-58-12c0 0 55-226 155-287z m603 133l-317-139c0 0 4-4 19-14 7-5 24-15 24-15s-177-147-389 4c235-287 536-112 536-112l31-22 100 299-4-1z m-298-153c6-4 14-9 24-15 0 0-17 10-24 15z",transform:"matrix(1 0 0 -1 0 850)"},camera:{width:1e3,height:1e3,path:"m500 450c-83 0-150-67-150-150 0-83 67-150 150-150 83 0 150 67 150 150 0 83-67 150-150 150z m400 150h-120c-16 0-34 13-39 29l-31 93c-6 15-23 28-40 28h-340c-16 0-34-13-39-28l-31-94c-6-15-23-28-40-28h-120c-55 0-100-45-100-100v-450c0-55 45-100 100-100h800c55 0 100 45 100 100v450c0 55-45 100-100 100z m-400-550c-138 0-250 112-250 250 0 138 112 250 250 250 138 0 250-112 250-250 0-138-112-250-250-250z m365 380c-19 0-35 16-35 35 0 19 16 35 35 35 19 0 35-16 35-35 0-19-16-35-35-35z",transform:"matrix(1 0 0 -1 0 850)"},movie:{width:1e3,height:1e3,path:"m938 413l-188-125c0 37-17 71-44 94 64 38 107 107 107 187 0 121-98 219-219 219-121 0-219-98-219-219 0-61 25-117 66-156h-115c30 33 49 76 49 125 0 103-84 187-187 187s-188-84-188-187c0-57 26-107 65-141-38-22-65-62-65-109v-250c0-70 56-126 125-126h500c69 0 125 56 125 126l188-126c34 0 62 28 62 63v375c0 35-28 63-62 63z m-750 0c-69 0-125 56-125 125s56 125 125 125 125-56 125-125-56-125-125-125z m406-1c-87 0-157 70-157 157 0 86 70 156 157 156s156-70 156-156-70-157-156-157z",transform:"matrix(1 0 0 -1 0 850)"},question:{width:857.1,height:1e3,path:"m500 82v107q0 8-5 13t-13 5h-107q-8 0-13-5t-5-13v-107q0-8 5-13t13-5h107q8 0 13 5t5 13z m143 375q0 49-31 91t-77 65-95 23q-136 0-207-119-9-14 4-24l74-55q4-4 10-4 9 0 14 7 30 38 48 51 19 14 48 14 27 0 48-15t21-33q0-21-11-34t-38-25q-35-16-65-48t-29-70v-20q0-8 5-13t13-5h107q8 0 13 5t5 13q0 10 12 27t30 28q18 10 28 16t25 19 25 27 16 34 7 45z m214-107q0-117-57-215t-156-156-215-58-216 58-155 156-58 215 58 215 155 156 216 58 215-58 156-156 57-215z",transform:"matrix(1 0 0 -1 0 850)"},disk:{width:857.1,height:1e3,path:"m214-7h429v214h-429v-214z m500 0h72v500q0 8-6 21t-11 20l-157 156q-5 6-19 12t-22 5v-232q0-22-15-38t-38-16h-322q-22 0-37 16t-16 38v232h-72v-714h72v232q0 22 16 38t37 16h465q22 0 38-16t15-38v-232z m-214 518v178q0 8-5 13t-13 5h-107q-7 0-13-5t-5-13v-178q0-8 5-13t13-5h107q7 0 13 5t5 13z m357-18v-518q0-22-15-38t-38-16h-750q-23 0-38 16t-16 38v750q0 22 16 38t38 16h517q23 0 50-12t42-26l156-157q16-15 27-42t11-49z",transform:"matrix(1 0 0 -1 0 850)"},cloudupload:{width:640,height:640,path:"M451.5 160C434.9 160 418.8 164.5 404.7 172.7C388.9 156.7 370.5 143.3 350.2 133.2C378.4 109.2 414.3 96 451.5 96C537.9 96 608 166 608 252.5C608 294 591.5 333.8 562.2 363.1L491.1 434.2C461.8 463.5 422 480 380.5 480C294.1 480 224 410 224 323.5C224 322 224 320.5 224.1 319C224.6 301.3 239.3 287.4 257 287.9C274.7 288.4 288.6 303.1 288.1 320.8C288.1 321.7 288.1 322.6 288.1 323.4C288.1 374.5 329.5 415.9 380.6 415.9C405.1 415.9 428.6 406.2 446 388.8L517.1 317.7C534.4 300.4 544.2 276.8 544.2 252.3C544.2 201.2 502.8 159.8 451.7 159.8zM307.2 237.3C305.3 236.5 303.4 235.4 301.7 234.2C289.1 227.7 274.7 224 259.6 224C235.1 224 211.6 233.7 194.2 251.1L123.1 322.2C105.8 339.5 96 363.1 96 387.6C96 438.7 137.4 480.1 188.5 480.1C205 480.1 221.1 475.7 235.2 467.5C251 483.5 269.4 496.9 289.8 507C261.6 530.9 225.8 544.2 188.5 544.2C102.1 544.2 32 474.2 32 387.7C32 346.2 48.5 306.4 77.8 277.1L148.9 206C178.2 176.7 218 160.2 259.5 160.2C346.1 160.2 416 230.8 416 317.1C416 318.4 416 319.7 416 321C415.6 338.7 400.9 352.6 383.2 352.2C365.5 351.8 351.6 337.1 352 319.4C352 318.6 352 317.9 352 317.1C352 283.4 334 253.8 307.2 237.5z",transform:"matrix(1 0 0 1 -15 -15)"},drawopenpath:{width:70,height:70,path:"M33.21,85.65a7.31,7.31,0,0,1-2.59-.48c-8.16-3.11-9.27-19.8-9.88-41.3-.1-3.58-.19-6.68-.35-9-.15-2.1-.67-3.48-1.43-3.79-2.13-.88-7.91,2.32-12,5.86L3,32.38c1.87-1.64,11.55-9.66,18.27-6.9,2.13.87,4.75,3.14,5.17,9,.17,2.43.26,5.59.36,9.25a224.17,224.17,0,0,0,1.5,23.4c1.54,10.76,4,12.22,4.48,12.4.84.32,2.79-.46,5.76-3.59L43,80.07C41.53,81.57,37.68,85.64,33.21,85.65ZM74.81,69a11.34,11.34,0,0,0,6.09-6.72L87.26,44.5,74.72,32,56.9,38.35c-2.37.86-5.57,3.42-6.61,6L38.65,72.14l8.42,8.43ZM55,46.27a7.91,7.91,0,0,1,3.64-3.17l14.8-5.3,8,8L76.11,60.6l-.06.19a6.37,6.37,0,0,1-3,3.43L48.25,74.59,44.62,71Zm16.57,7.82A6.9,6.9,0,1,0,64.64,61,6.91,6.91,0,0,0,71.54,54.09Zm-4.05,0a2.85,2.85,0,1,1-2.85-2.85A2.86,2.86,0,0,1,67.49,54.09Zm-4.13,5.22L60.5,56.45,44.26,72.7l2.86,2.86ZM97.83,35.67,84.14,22l-8.57,8.57L89.26,44.24Zm-13.69-8,8,8-2.85,2.85-8-8Z",transform:"matrix(1 0 0 1 -15 -15)"},drawclosedpath:{width:90,height:90,path:"M88.41,21.12a26.56,26.56,0,0,0-36.18,0l-2.07,2-2.07-2a26.57,26.57,0,0,0-36.18,0,23.74,23.74,0,0,0,0,34.8L48,90.12a3.22,3.22,0,0,0,4.42,0l36-34.21a23.73,23.73,0,0,0,0-34.79ZM84,51.24,50.16,83.35,16.35,51.25a17.28,17.28,0,0,1,0-25.47,20,20,0,0,1,27.3,0l4.29,4.07a3.23,3.23,0,0,0,4.44,0l4.29-4.07a20,20,0,0,1,27.3,0,17.27,17.27,0,0,1,0,25.46ZM66.76,47.68h-33v6.91h33ZM53.35,35H46.44V68h6.91Z",transform:"matrix(1 0 0 1 -5 -5)"},lasso:{width:1031,height:1e3,path:"m1018 538c-36 207-290 336-568 286-277-48-473-256-436-463 10-57 36-108 76-151-13-66 11-137 68-183 34-28 75-41 114-42l-55-70 0 0c-2-1-3-2-4-3-10-14-8-34 5-45 14-11 34-8 45 4 1 1 2 3 2 5l0 0 113 140c16 11 31 24 45 40 4 3 6 7 8 11 48-3 100 0 151 9 278 48 473 255 436 462z m-624-379c-80 14-149 48-197 96 42 42 109 47 156 9 33-26 47-66 41-105z m-187-74c-19 16-33 37-39 60 50-32 109-55 174-68-42-25-95-24-135 8z m360 75c-34-7-69-9-102-8 8 62-16 128-68 170-73 59-175 54-244-5-9 20-16 40-20 61-28 159 121 317 333 354s407-60 434-217c28-159-121-318-333-355z",transform:"matrix(1 0 0 -1 0 850)"},selectbox:{width:1e3,height:1e3,path:"m0 850l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-285l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z",transform:"matrix(1 0 0 -1 0 850)"},drawline:{width:70,height:70,path:"M60.64,62.3a11.29,11.29,0,0,0,6.09-6.72l6.35-17.72L60.54,25.31l-17.82,6.4c-2.36.86-5.57,3.41-6.6,6L24.48,65.5l8.42,8.42ZM40.79,39.63a7.89,7.89,0,0,1,3.65-3.17l14.79-5.31,8,8L61.94,54l-.06.19a6.44,6.44,0,0,1-3,3.43L34.07,68l-3.62-3.63Zm16.57,7.81a6.9,6.9,0,1,0-6.89,6.9A6.9,6.9,0,0,0,57.36,47.44Zm-4,0a2.86,2.86,0,1,1-2.85-2.85A2.86,2.86,0,0,1,53.32,47.44Zm-4.13,5.22L46.33,49.8,30.08,66.05l2.86,2.86ZM83.65,29,70,15.34,61.4,23.9,75.09,37.59ZM70,21.06l8,8-2.84,2.85-8-8ZM87,80.49H10.67V87H87Z",transform:"matrix(1 0 0 1 -15 -15)"},drawrect:{width:80,height:80,path:"M78,22V79H21V22H78m9-9H12V88H87V13ZM68,46.22H31V54H68ZM53,32H45.22V69H53Z",transform:"matrix(1 0 0 1 -10 -10)"},drawcircle:{width:80,height:80,path:"M50,84.72C26.84,84.72,8,69.28,8,50.3S26.84,15.87,50,15.87,92,31.31,92,50.3,73.16,84.72,50,84.72Zm0-60.59c-18.6,0-33.74,11.74-33.74,26.17S31.4,76.46,50,76.46,83.74,64.72,83.74,50.3,68.6,24.13,50,24.13Zm17.15,22h-34v7.11h34Zm-13.8-13H46.24v34h7.11Z",transform:"matrix(1 0 0 1 -10 -10)"},eraseshape:{width:80,height:80,path:"M82.77,78H31.85L6,49.57,31.85,21.14H82.77a8.72,8.72,0,0,1,8.65,8.77V69.24A8.72,8.72,0,0,1,82.77,78ZM35.46,69.84H82.77a.57.57,0,0,0,.49-.6V29.91a.57.57,0,0,0-.49-.61H35.46L17,49.57Zm32.68-34.7-24,24,5,5,24-24Zm-19,.53-5,5,24,24,5-5Z",transform:"matrix(1 0 0 1 -10 -10)"},spikeline:{width:1e3,height:1e3,path:"M512 409c0-57-46-104-103-104-57 0-104 47-104 104 0 57 47 103 104 103 57 0 103-46 103-103z m-327-39l92 0 0 92-92 0z m-185 0l92 0 0 92-92 0z m370-186l92 0 0 93-92 0z m0-184l92 0 0 92-92 0z",transform:"matrix(1.5 0 0 -1.5 0 850)"},pencil:{width:1792,height:1792,path:"M491 1536l91-91-235-235-91 91v107h128v128h107zm523-928q0-22-22-22-10 0-17 7l-542 542q-7 7-7 17 0 22 22 22 10 0 17-7l542-542q7-7 7-17zm-54-192l416 416-832 832h-416v-416zm683 96q0 53-37 90l-166 166-416-416 166-165q36-38 90-38 53 0 91 38l235 234q37 39 37 91z",transform:"matrix(1 0 0 1 0 1)"},newplotlylogo:{name:"newplotlylogo",svg:[""," plotly-logomark"," "," "," "," "," "," "," "," "," "," "," "," "," ",""].join("")}}});var UL={};Fl(UL,{CIRCLE_SIDES:()=>jEt,SQRT2:()=>JEt,cos45:()=>ZEt,i000:()=>WEt,i090:()=>$Et,i180:()=>YEt,i270:()=>XEt,sin45:()=>KEt});var jEt,WEt,$Et,YEt,XEt,ZEt,KEt,JEt,GL=ps(()=>{"use strict";jEt=32,WEt=0,$Et=8,YEt=16,XEt=24,ZEt=Math.cos(Math.PI/4),KEt=Math.sin(Math.PI/4),JEt=Math.sqrt(2)});var HL=K((TVr,Jye)=>{"use strict";var QEt=St().strTranslate;function Kye(e,t){switch(e.type){case"log":return e.p2d(t);case"date":return e.p2r(t,0,e.calendar);default:return e.p2r(t)}}function ekt(e,t){switch(e.type){case"log":return e.d2p(t);case"date":return e.r2p(t,0,e.calendar);default:return e.r2p(t)}}function tkt(e){var t=e._id.charAt(0)==="y"?1:0;return function(r){return Kye(e,r[t])}}function rkt(e){return QEt(e.xaxis._offset,e.yaxis._offset)}Jye.exports={p2r:Kye,r2p:ekt,axValue:tkt,getTransform:rkt}});var Yg=K(dy=>{"use strict";var ikt=iH(),tge=(GL(),or(UL)),Ww=tge.CIRCLE_SIDES,yj=tge.SQRT2,rge=HL(),Qye=rge.p2r,ege=rge.r2p,nkt=[0,3,4,5,6,1,2],akt=[0,3,4,1,2];dy.writePaths=function(e){var t=e.length;if(!t)return"M0,0Z";for(var r="",i=0;i0&&l{"use strict";var ige=Vf(),lge=Q1(),okt=lge.drawMode,skt=lge.openMode,$w=(GL(),or(UL)),nge=$w.i000,age=$w.i090,oge=$w.i180,sge=$w.i270,lkt=$w.cos45,ukt=$w.sin45,uge=HL(),WL=uge.p2r,Xg=uge.r2p,fkt=Rg(),ckt=fkt.clearOutline,$L=Yg(),hkt=$L.readPaths,dkt=$L.writePaths,pkt=$L.ellipseOver,vkt=$L.fixDatesForPaths;function mkt(e,t){if(e.length){var r=e[0][0];if(r){var i=t.gd,n=t.isActiveShape,a=t.dragmode,o=(i.layout||{}).shapes||[];if(!okt(a)&&n!==void 0){var s=i._fullLayout._activeShapeIndex;if(s{"use strict";var ykt=Q1(),gkt=ykt.selectMode,xkt=Rg(),bkt=xkt.clearOutline,gj=Yg(),_kt=gj.readPaths,wkt=gj.writePaths,Akt=gj.fixDatesForPaths;hge.exports=function(t,r){if(t.length){var i=t[0][0];if(i){var n=i.getAttribute("d"),a=r.gd,o=a._fullLayout.newselection,s=r.plotinfo,l=s.xaxis,u=s.yaxis,f=r.isActiveSelection,c=r.dragmode,h=(a.layout||{}).selections||[];if(!gkt(c)&&f!==void 0){var d=a._fullLayout._activeSelectionIndex;if(dkkt,paramIsX:()=>Skt,paramIsY:()=>Ekt,paramRE:()=>Mkt,segmentRE:()=>Tkt});var Tkt,Mkt,Skt,Ekt,kkt,W6=ps(()=>{"use strict";Tkt=/[MLHVQCTSZ][^MLHVQCTSZ]*/g,Mkt=/[^\s,]+/g,Skt={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:{}},Ekt={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:3},Z:{}},kkt={M:2,L:2,H:1,V:1,Q:4,C:6,T:2,S:4,Z:0}});var Kg=K(zh=>{"use strict";var tm=(W6(),or(j6)),dge=St(),Zg=Cs();zh.rangeToShapePosition=function(e){return e.type==="log"?e.r2d:function(t){return t}};zh.shapePositionToRange=function(e){return e.type==="log"?e.d2r:function(t){return t}};zh.decodeDate=function(e){return function(t){return t.replace&&(t=t.replace("_"," ")),e(t)}};zh.encodeDate=function(e){return function(t){return e(t).replace(" ","_")}};zh.extractPathCoords=function(e,t,r){var i=[],n=e.match(tm.segmentRE);return n.forEach(function(a){var o=t[a.charAt(0)].drawn;if(o!==void 0){var s=a.slice(1).match(tm.paramRE);if(!(!s||s.length{let s=o.charAt(0),l=n[s].drawn!==void 0;return a+(l?1:0)},0)};zh.getDataToPixel=function(e,t,r,i,n){var a=e._fullLayout._size,o;if(t)if(n==="domain")o=function(l){return t._length*(i?1-l:l)+t._offset};else{var s=zh.shapePositionToRange(t);o=function(l){var u=em(t,r);return t._offset+t.r2p(s(l,!0))+u},t.type==="date"&&(o=zh.decodeDate(o))}else i?o=function(l){return a.t+a.h*(1-l)}:o=function(l){return a.l+a.w*l};return o};zh.getPixelToData=function(e,t,r,i){var n=e._fullLayout._size,a;if(t)if(i==="domain")a=function(s){var l=(s-t._offset)/t._length;return r?1-l:l};else{var o=zh.rangeToShapePosition(t);a=function(s){return o(t.p2r(s-t._offset))}}else r?a=function(s){return 1-(s-n.t)/n.h}:a=function(s){return(s-n.l)/n.w};return a};zh.roundPositionForSharpStrokeRendering=function(e,t){var r=Math.round(t%2)===1,i=Math.round(e);return r?i+.5:i};zh.makeShapesOptionsAndPlotinfo=function(e,t){var r=e._fullLayout.shapes[t]||{},i=e._fullLayout._plots[r.xref+r.yref],n=!!i;return n?i._hadPlotinfo=!0:(i={},r.xref&&r.xref!=="paper"&&(i.xaxis=e._fullLayout[r.xref+"axis"]),r.yref&&r.yref!=="paper"&&(i.yaxis=e._fullLayout[r.yref+"axis"])),i.xsizemode=r.xsizemode,i.ysizemode=r.ysizemode,i.xanchor=r.xanchor,i.yanchor=r.yanchor,{options:r,plotinfo:i}};zh.makeSelectionsOptionsAndPlotinfo=function(e,t){var r=e._fullLayout.selections[t]||{},i=e._fullLayout._plots[r.xref+r.yref],n=!!i;return n?i._hadPlotinfo=!0:(i={},r.xref&&(i.xaxis=e._fullLayout[r.xref+"axis"]),r.yref&&(i.yaxis=e._fullLayout[r.yref+"axis"])),{options:r,plotinfo:i}};zh.getPathString=function(e,t){let r=t.type,i=Zg.getRefType(t.xref),n=Zg.getRefType(t.yref),a=e._fullLayout._size;var o,s,l,u,f,c,h,d,p,v,y,m;function w(E,S,C,k){var D;if(E)if(S==="domain")k?D=function(F){return E._offset+E._length*(1-F)}:D=function(F){return E._offset+E._length*F};else{let F=zh.shapePositionToRange(E);D=function(P){return E._offset+E.r2p(F(P,!0))},C==="path"&&E.type==="date"&&(D=zh.decodeDate(D))}else k?D=function(F){return a.t+a.h*(1-F)}:D=function(F){return a.l+a.w*F};return D}if(i==="array"?(h=[],o=t.xref.map(function(E){return Zg.getFromId(e,E)}),h=t.xref.map(function(E,S){return w(o[S],Zg.getRefType(E),r,!1)})):(o=Zg.getFromId(e,t.xref),h=w(o,i,r,!1)),n==="array"?(d=[],s=t.yref.map(function(E){return Zg.getFromId(e,E)}),d=t.yref.map(function(E,S){return w(s[S],Zg.getRefType(E),r,!0)})):(s=Zg.getFromId(e,t.yref),d=w(s,n,r,!0)),r==="path")return Ckt(t,h,d);if(i==="array")l=em(o[0],t.x0shift),u=em(o[1],t.x1shift),p=h[0](t.x0)+l,v=h[1](t.x1)+u;else if(l=em(o,t.x0shift),u=em(o,t.x1shift),t.xsizemode==="pixel"){let E=h(t.xanchor);p=E+t.x0+l,v=E+t.x1+u}else p=h(t.x0)+l,v=h(t.x1)+u;if(n==="array")f=em(s[0],t.y0shift),c=em(s[1],t.y1shift),y=d[0](t.y0)+f,m=d[1](t.y1)+c;else if(f=em(s,t.y0shift),c=em(s,t.y1shift),t.ysizemode==="pixel"){let E=d(t.yanchor);y=E-t.y0+f,m=E-t.y1+c}else y=d(t.y0)+f,m=d(t.y1)+c;if(r==="line")return"M"+p+","+y+"L"+v+","+m;if(r==="rect")return"M"+p+","+y+"H"+v+"V"+m+"H"+p+"Z";var _=(p+v)/2,b=(y+m)/2,M=Math.abs(_-p),x=Math.abs(b-y),T="A"+M+","+x,A=_+M+","+b,g=_+","+(b-x);return"M"+A+T+" 0 1,1 "+g+T+" 0 0,1 "+A+"Z"};function Ckt(e,t,r){let i=e.path,n=e.xsizemode,a=e.ysizemode,o=e.xanchor,s=e.yanchor,l=Array.isArray(e.xref),u=Array.isArray(e.yref);var f=0,c=0;return i.replace(tm.segmentRE,function(h){var d=0,p=h.charAt(0),v=tm.paramIsX[p],y=tm.paramIsY[p],m=tm.numParams[p];let w=v.drawn!==void 0,_=y.drawn!==void 0,b=l?t[f]:t,M=u?r[c]:r;var x=h.slice(1).replace(tm.paramRE,function(T){return v[d]?n==="pixel"?T=b(o)+Number(T):T=b(T):y[d]&&(a==="pixel"?T=M(s)-Number(T):T=M(T)),d++,d>m&&(T="X"),T});return d>m&&(x=x.replace(/[\s,]*X.*/,""),dge.log("Ignoring extra params in segment "+h)),w&&f++,_&&c++,p+x})}zh.getPixelShift=em;function em(e,t){t=t||0;var r=0;return t&&e&&(e.type==="category"||e.type==="multicategory")&&(r=(e.r2p(1)-e.r2p(0))*t),r}});var bj=K((CVr,mge)=>{"use strict";var Dkt=St(),rm=Cs(),pge=Du(),vge=Is(),Fkt=Yg().readPaths,Mb=Kg(),Lkt=Mb.getPathString,$6=xF(),Pkt=($c(),or(Wc)).FROM_TL;mge.exports=function(t,r,i,n){if(n.selectAll(".shape-label").remove(),!!(i.label.text||i.label.texttemplate)){var a;if(i.label.texttemplate){var o={};if(i.type!=="path"){var s=rm.getFromId(t,i.xref),l=rm.getFromId(t,i.yref);let O=Array.isArray(i.xref),W=Array.isArray(i.yref);for(var u in $6){var f=typeof $6[u]=="function",c=!O||$6.simpleXVariables.includes(u),h=!W||$6.simpleYVariables.includes(u);if(f&&c&&h){var d=$6[u](i,s,l);d!==void 0&&(o[u]=d)}}}a=Dkt.texttemplateStringForShapes({data:[o],fallback:i.label.texttemplatefallback,locale:t._fullLayout._d3locale,template:i.label.texttemplate})}else a=i.label.text;var p={"data-index":r},v=i.label.font,y={"data-notex":1},m=n.append("g").attr(p).classed("shape-label",!0),w=m.append("text").attr(y).classed("shape-label-text",!0).text(a),_,b,M,x;if(i.path){var T=Lkt(t,i),A=Fkt(T,t);_=1/0,M=1/0,b=-1/0,x=-1/0;for(var g=0;gMb.getDataToPixel(t,de,re,!1,me)(ie),$=(ie,re,de,me)=>Mb.getDataToPixel(t,de,re,!0,me)(ie);if(i.xsizemode==="pixel"){let ie=j(i.xanchor,void 0,X,Q),re=Mb.getPixelShift(X,i.x0shift),de=Mb.getPixelShift(X,i.x1shift);_=ie+i.x0+re,b=ie+i.x1+de}else _=j(i.x0,i.x0shift,X,Q),b=j(i.x1,i.x1shift,Z,N);if(i.ysizemode==="pixel"){let ie=$(i.yanchor,void 0,H,U),re=Mb.getPixelShift(H,i.y0shift),de=Mb.getPixelShift(H,i.y1shift);M=ie-i.y0+re,x=ie-i.y1+de}else M=$(i.y0,i.y0shift,H,U),x=$(i.y1,i.y1shift,q,J)}var F=i.label.textangle;F==="auto"&&(i.type==="line"?F=zkt(_,M,b,x):F=0),w.call(function(O){return O.call(vge.font,v).attr({}),pge.convertToTspans(O,t),O});var P=vge.bBox(w.node()),I=Ikt(_,M,b,x,i,F,P),L=I.textx,z=I.texty,B=I.xanchor;w.attr({"text-anchor":{left:"start",center:"middle",right:"end"}[B],y:z,x:L,transform:"rotate("+F+","+L+","+z+")"}).call(pge.positionText,L,z)}};function zkt(e,t,r,i){var n,a;return a=Math.abs(r-e),r>=e?n=t-i:n=i-t,-180/Math.PI*Math.atan2(n,a)}function Ikt(e,t,r,i,n,a,o){var s=n.label.textposition,l=n.label.textangle,u=n.label.padding,f=n.type,c=Math.PI/180*a,h=Math.sin(c),d=Math.cos(c),p=n.label.xanchor,v=n.label.yanchor,y,m,w,_;if(f==="line"){s==="start"?(y=e,m=t):s==="end"?(y=r,m=i):(y=(e+r)/2,m=(t+i)/2),p==="auto"&&(s==="start"?l==="auto"?r>e?p="left":re?p="right":re?p="right":re?p="left":r{"use strict";var Rkt=St(),Bkt=Rkt.strTranslate,yge=U0(),bge=Q1(),qkt=bge.drawMode,_ge=bge.selectMode,wge=Ho(),gge=wo(),ZL=(GL(),or(UL)),Okt=ZL.i000,Nkt=ZL.i090,Vkt=ZL.i180,Ukt=ZL.i270,Gkt=Rg(),Age=Gkt.clearOutlineControllers,wj=Yg(),XL=wj.pointsOnRectangle,_j=wj.pointsOnEllipse,Hkt=wj.writePaths,jkt=YL().newShapes,Wkt=YL().createShapeObj,$kt=xj(),Ykt=bj();Tge.exports=function e(t,r,i,n){n||(n=0);var a=i.gd;function o(){e(t,r,i,n++),(_j(t[0])||i.hasText)&&s({redrawing:!0})}function s(I){var L={};i.isActiveShape!==void 0&&(i.isActiveShape=!1,L=jkt(r,i)),i.isActiveSelection!==void 0&&(i.isActiveSelection=!1,L=$kt(r,i),a._fullLayout._reselect=!0),Object.keys(L).length&&wge.call((I||{}).redrawing?"relayout":"_guiRelayout",a,L)}var l=a._fullLayout,u=l._zoomlayer,f=i.dragmode,c=qkt(f),h=_ge(f);(c||h)&&(a._fullLayout._outlining=!0),Age(a),r.attr("d",Hkt(t));var d,p,v,y,m;if(!n&&(i.isActiveShape||i.isActiveSelection)){m=Xkt([],t);var w=u.append("g").attr("class","outline-controllers");E(w),P()}if(c&&i.hasText){var _=u.select(".label-temp"),b=Wkt(r,i,i.dragmode);Ykt(a,"label-temp",b,_)}function M(I){v=+I.srcElement.getAttribute("data-i"),y=+I.srcElement.getAttribute("data-j"),d[v][y].moveFn=x}function x(I,L){if(t.length){var z=m[v][y][1],B=m[v][y][2],O=t[v],W=O.length;if(XL(O)){var X=I,Z=L;if(i.isActiveSelection){var H=xge(O,y);H[1]===O[y][1]?Z=0:X=0}for(var q=0;q1&&!(I.length===2&&I[1][0]==="Z")&&(y===0&&(I[0][0]="M"),t[v]=I,o(),s())}}function g(I,L){if(I===2){v=+L.srcElement.getAttribute("data-i"),y=+L.srcElement.getAttribute("data-j");var z=t[v];!XL(z)&&!_j(z)&&A()}}function E(I){d=[];for(var L=0;L{"use strict";var Kkt=No(),Dge=Ho(),Tj=St(),Sb=Cs(),Jkt=Yg().readPaths,Qkt=KL(),QL=bj(),Fge=Rg().clearOutlineControllers,Aj=wo(),eP=Is(),eCt=cu().arrayEditor,Mge=U0(),Sge=Gf(),Ege=Yv(),Eb=(W6(),or(j6)),Dd=Kg(),Mj=Dd.getPathString;zge.exports={draw:Sj,drawOne:Lge,eraseActiveShape:aCt,drawLabel:QL};function Sj(e){var t=e._fullLayout;t._shapeUpperLayer.selectAll("path").remove(),t._shapeLowerLayer.selectAll("path").remove(),t._shapeUpperLayer.selectAll("text").remove(),t._shapeLowerLayer.selectAll("text").remove();for(var r in t._plots){var i=t._plots[r].shapelayer;i&&(i.selectAll("path").remove(),i.selectAll("text").remove())}for(var n=0;n{if(!e._dragging&&e._fullLayout.hoveranywhere){let o=n(a);o&&Sge.hover(e,o,r.id)}}),i.addEventListener("click",a=>{if(!e._dragged&&e._fullLayout.clickanywhere){let o=n(a);o&&Sge.click(e,o,r.id)}})}function Pge(e,t,r){let i=r.xref,n=r.yref;if(Array.isArray(i)||Array.isArray(n)){let a="clip"+t._fullLayout._uid+"shape"+r._index,o=rCt(t,i,n);Tj.ensureSingleById(t._fullLayout._clips,"clipPath",a,function(s){s.append("rect")}).select("rect").attr(o),eP.setClipUrl(e,a,t)}else{let a=(i+n).replace(/paper/g,"").replace(/[xyz][0-9]* *domain/g,"");eP.setClipUrl(e,a?"clip"+t._fullLayout._uid+a:null,t)}}function rCt(e,t,r){let i=e._fullLayout._size;function n(s,l){let u=(Array.isArray(s)?s:[s]).map(h=>Sb.getFromId(e,h)).filter(Boolean);if(!u.length)return l?[i.t,i.t+i.h]:[i.l,i.l+i.w];let f=u.map(function(h){return h._offset}),c=u.map(function(h){return h._offset+h._length});return[Math.min(...f),Math.max(...c)]}let a=n(t,!1),o=n(r,!0);return{x:a[0],y:o[0],width:a[1]-a[0],height:o[1]-o[0]}}function iCt(e,t,r,i,n,a){var o=10,s=10,l=r.xsizemode==="pixel",u=r.ysizemode==="pixel",f=r.type==="line",c=r.type==="path",h=a.modifyItem,d,p,v,y,m,w,_,b,M,x,T,A,g,E,S,C=Kkt.select(t.node().parentNode),k=Sb.getFromId(e,r.xref),D=Sb.getRefType(r.xref),F=Sb.getFromId(e,r.yref),P=Sb.getRefType(r.yref),I=r.x0shift,L=r.x1shift,z=r.y0shift,B=r.y1shift,O=function(le,te){var Ee=Dd.getDataToPixel(e,k,te,!1,D);return Ee(le)},W=function(le,te){var Ee=Dd.getDataToPixel(e,F,te,!0,P);return Ee(le)},X=Dd.getPixelToData(e,k,!1,D),Z=Dd.getPixelToData(e,F,!0,P),H=N(),q={element:H.node(),gd:e,prepFn:j,doneFn:$,clickFn:ie},Q;Mge.init(q),H.node().onmousemove=J;function N(){return f?U():t}function U(){var le=10,te=Math.max(r.line.width,le),Ee=n.append("g").attr("data-index",i).attr("drag-helper",!0);Ee.append("path").attr("d",t.attr("d")).style({cursor:"move","stroke-width":te,"stroke-opacity":"0"});var we={"fill-opacity":"0"},oe=Math.max(te/2,le);return Ee.append("circle").attr({"data-line-point":"start-point",cx:l?O(r.xanchor)+r.x0:O(r.x0,I),cy:u?W(r.yanchor)-r.y0:W(r.y0,z),r:oe}).style(we).classed("cursor-grab",!0),Ee.append("circle").attr({"data-line-point":"end-point",cx:l?O(r.xanchor)+r.x1:O(r.x1,L),cy:u?W(r.yanchor)-r.y1:W(r.y1,B),r:oe}).style(we).classed("cursor-grab",!0),Ee}function J(le){if(JL(e)){Q=null;return}if(f)le.target.tagName==="path"?Q="move":Q=le.target.attributes["data-line-point"].value==="start-point"?"resize-over-start-point":"resize-over-end-point";else{var te=q.element.getBoundingClientRect(),Ee=te.right-te.left,we=te.bottom-te.top,oe=le.clientX-te.left,Y=le.clientY-te.top,ne=!c&&Ee>o&&we>s&&!le.shiftKey?Mge.getCursor(oe/Ee,1-Y/we):"move";Ege(t,ne),Q=ne.split("-")[0]}}function j(le){JL(e)||(l&&(m=O(r.xanchor)),u&&(w=W(r.yanchor)),r.type==="path"?S=r.path:(d=l?r.x0:O(r.x0),p=u?r.y0:W(r.y0),v=l?r.x1:O(r.x1),y=u?r.y1:W(r.y1)),dy?(_=p,T="y0",b=y,A="y1"):(_=y,T="y1",b=p,A="y0"),J(le),me(n,r),ke(t,r,e),q.moveFn=Q==="move"?re:de,q.altKey=le.altKey)}function $(){JL(e)||(Ege(t),ze(n),Pge(t,e,r),Dge.call("_guiRelayout",e,a.getUpdateObj()))}function ie(){JL(e)||ze(n)}function re(le,te){if(r.type==="path"){var Ee=function(Y){return Y},we=Ee,oe=Ee;l?h("xanchor",r.xanchor=X(m+le)):(we=function(ne){return X(O(ne)+le)},k&&k.type==="date"&&(we=Dd.encodeDate(we))),u?h("yanchor",r.yanchor=Z(w+te)):(oe=function(ne){return Z(W(ne)+te)},F&&F.type==="date"&&(oe=Dd.encodeDate(oe))),h("path",r.path=kge(S,we,oe))}else l?h("xanchor",r.xanchor=X(m+le)):(h("x0",r.x0=X(d+le)),h("x1",r.x1=X(v+le))),u?h("yanchor",r.yanchor=Z(w+te)):(h("y0",r.y0=Z(p+te)),h("y1",r.y1=Z(y+te)));t.attr("d",Mj(e,r)),me(n,r),QL(e,i,r,C)}function de(le,te){if(c){var Ee=function(Ke){return Ke},we=Ee,oe=Ee;l?h("xanchor",r.xanchor=X(m+le)):(we=function(tt){return X(O(tt)+le)},k&&k.type==="date"&&(we=Dd.encodeDate(we))),u?h("yanchor",r.yanchor=Z(w+te)):(oe=function(tt){return Z(W(tt)+te)},F&&F.type==="date"&&(oe=Dd.encodeDate(oe))),h("path",r.path=kge(S,we,oe))}else if(f){if(Q==="resize-over-start-point"){var Y=d+le,ne=u?p-te:p+te;h("x0",r.x0=l?Y:X(Y)),h("y0",r.y0=u?ne:Z(ne))}else if(Q==="resize-over-end-point"){var ye=v+le,V=u?y-te:y+te;h("x1",r.x1=l?ye:X(ye)),h("y1",r.y1=u?V:Z(V))}}else{var ue=function(Ke){return Q.indexOf(Ke)!==-1},_e=ue("n"),xe=ue("s"),Ae=ue("w"),se=ue("e"),pe=_e?_+te:_,fe=xe?b+te:b,Re=Ae?M+le:M,We=se?x+le:x;u&&(_e&&(pe=_-te),xe&&(fe=b-te)),(!u&&fe-pe>s||u&&pe-fe>s)&&(h(T,r[T]=u?pe:Z(pe)),h(A,r[A]=u?fe:Z(fe))),We-Re>o&&(h(g,r[g]=l?Re:X(Re)),h(E,r[E]=l?We:X(We)))}t.attr("d",Mj(e,r)),me(n,r),QL(e,i,r,C)}function me(le,te){(l||u)&&Ee();function Ee(){var we=te.type!=="path",oe=le.selectAll(".visual-cue").data([0]),Y=1;oe.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":Y}).classed("visual-cue",!0);var ne=O(l?te.xanchor:Tj.midRange(we?[te.x0,te.x1]:Dd.extractPathCoords(te.path,Eb.paramIsX))),ye=W(u?te.yanchor:Tj.midRange(we?[te.y0,te.y1]:Dd.extractPathCoords(te.path,Eb.paramIsY)));if(ne=Dd.roundPositionForSharpStrokeRendering(ne,Y),ye=Dd.roundPositionForSharpStrokeRendering(ye,Y),l&&u){var V="M"+(ne-1-Y)+","+(ye-1-Y)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";oe.attr("d",V)}else if(l){var ue="M"+(ne-1-Y)+","+(ye-9-Y)+"v18 h2 v-18 Z";oe.attr("d",ue)}else{var _e="M"+(ne-9-Y)+","+(ye-1-Y)+"h18 v2 h-18 Z";oe.attr("d",_e)}}}function ze(le){le.selectAll(".visual-cue").remove()}function ke(le,te,Ee){var we=te.xref,oe=te.yref,Y=Sb.getFromId(Ee,we),ne=Sb.getFromId(Ee,oe),ye="";we!=="paper"&&!Y.autorange&&(ye+=we),oe!=="paper"&&!ne.autorange&&(ye+=oe),eP.setClipUrl(le,ye?"clip"+Ee._fullLayout._uid+ye:null,Ee)}}function kge(e,t,r){return e.replace(Eb.segmentRE,function(i){var n=0,a=i.charAt(0),o=Eb.paramIsX[a],s=Eb.paramIsY[a],l=Eb.numParams[a],u=i.slice(1).replace(Eb.paramRE,function(f){return n>=l||(o[n]?f=t(f):s[n]&&(f=r(f)),n++),f});return a+u})}function nCt(e,t){if(tP(e)){var r=t.node(),i=+r.getAttribute("data-index");if(i>=0){if(i===e._fullLayout._activeShapeIndex){Cge(e);return}e._fullLayout._activeShapeIndex=i,e._fullLayout._deactivateShape=Cge,Sj(e)}}}function Cge(e){if(tP(e)){var t=e._fullLayout._activeShapeIndex;t>=0&&(Fge(e),delete e._fullLayout._activeShapeIndex,Sj(e))}}function aCt(e){if(tP(e)){Fge(e);var t=e._fullLayout._activeShapeIndex,r=(e.layout||{}).shapes||[];if(t{"use strict";var Yw=St()._,oCt=function(e){return{DIALOG_TITLE:Yw(e,"Share chart"),DIALOG_MESSAGE_CLOUD:Yw(e,"This chart will be uploaded to {Plotly Cloud} to create a sharing link. Only you can see it until you change its visibility."),DIALOG_MESSAGE_CLOUD_ACCOUNT:Yw(e,"If you don't have a Plotly Cloud account yet, you'll have a chance to create one."),DIALOG_MESSAGE_OTHER:Yw(e,"This chart will be sent to {serverUrl}."),DIALOG_CANCEL:Yw(e,"Cancel"),DIALOG_CONFIRM:Yw(e,"Share")}};Ige.exports=oCt});var Oge=K((PVr,qge)=>{"use strict";var Bge=No(),{dfltConfig:sCt}=Mg(),lCt=Rge(),uCt=(e,t,r,i,n)=>{let a=lCt(e),o=t.append("div").classed("plotly-cloud-dialog-box",!0);if(o.append("div").classed("plotly-cloud-dialog-title",!0).text(a.DIALOG_TITLE),r===sCt.plotlyServerURL){let l=o.append("div").classed("plotly-cloud-dialog-message",!0),u=new URL(r).origin,f=a.DIALOG_MESSAGE_CLOUD.split(/(\{|\})/),c=f[0],h=f[2],d=f[4];l.append("span").text(c),l.append("a").classed("plotly-cloud-dialog-message--hostname",!0).attr("href",u).attr("target","_blank").text(h),l.append("span").text(d),l.append("div").classed("plotly-cloud-dialog-message--account",!0).text(a.DIALOG_MESSAGE_CLOUD_ACCOUNT)}else{let l=new URL(r),u=l.hostname,f=l.origin,c=a.DIALOG_MESSAGE_OTHER.split(/(\{|\})/),h=c[0],d=c[4],p=o.append("div").classed("plotly-cloud-dialog-message",!0);p.append("span").text(h),p.append("a").classed("plotly-cloud-dialog-message--hostname",!0).attr("href",f).attr("target","_blank").text(u),p.append("span").text(d)}let s=o.append("div").classed("plotly-cloud-dialog-buttons",!0);s.append("button").classed("plotly-cloud-dialog-btn",!0).classed("plotly-cloud-dialog-btn--cancel",!0).text(a.DIALOG_CANCEL).on("click",n),s.append("button").classed("plotly-cloud-dialog-btn",!0).classed("plotly-cloud-dialog-btn--confirm",!0).text(a.DIALOG_CONFIRM).on("click",i)},fCt=(e,t,r)=>{let i=Bge.select(e._fullLayout._paperdiv.node());i.selectAll(".plotly-cloud-dialog").remove();let n=i.append("div").classed("plotly-cloud-dialog",!0),a=()=>{n.remove(),document.removeEventListener("keydown",o)},o=s=>{(s.key==="Escape"||s.keyCode===27)&&a()};document.addEventListener("keydown",o),n.on("click",()=>{Bge.event.target===n.node()&&a()}),uCt(e,n,t,()=>{a(),r()},a)};qge.exports=fCt});var Cj=K((zVr,Wge)=>{"use strict";var np=Ho(),cCt=yf(),Vge=Vf(),Mu=VL(),hCt=rP().eraseActiveShape,dCt=Oge(),Xw=St(),nu=Xw._,bu={};Wge.exports=bu;bu.toImage={name:"toImage",title:function(e){var t=e._context.toImageButtonOptions||{},r=t.format||"png";return r==="png"?nu(e,"Download plot as a PNG"):nu(e,"Download plot")},icon:Mu.camera,click:function(e){var t=e._context.toImageButtonOptions,r={format:t.format||"png"};Xw.notifier(nu(e,"Preparing image - this may take a few seconds"),"long",e),["filename","width","height","scale"].forEach(function(i){i in t&&(r[i]=t[i])}),np.call("downloadImage",e,r).then(function(i){Xw.notifier(nu(e,"Image download succeeded")+" - "+i,"long",e)}).catch(function(){Xw.notifier(nu(e,"Sorry, there was a problem downloading your image!"),"long",e)})}};bu.downloadJson={name:"downloadJson",title:function(e){return nu(e,"Download plot as JSON")},icon:Mu.curlybraces,click:function(e){np.call("downloadImage",e,{format:"full-json"}).then(function(t){Xw.notifier(nu(e,"JSON download succeeded")+" - "+t,"long",e)}).catch(function(){Xw.notifier(nu(e,"Sorry, there was a problem downloading your JSON file!"),"long",e)})}};bu.sendChartToCloud={name:"sendChartToCloud",title:function(e){return nu(e,"Share chart...")},icon:Mu.cloudupload,click:function(e){var t=(window.PLOTLYENV||{}).BASE_URL||e._context.plotlyServerURL;if(!t){console.error("No destination URL provided (plotlyServerURL is empty)");return}var r;try{r=new URL(t)}catch(n){console.error("Invalid plotlyServerURL: "+t);return}let i=["http:","https:"];if(!i.includes(r.protocol)){console.error(`Invalid protocol '${r.protocol}' in plotlyServerURL '${t}'. Must be one of: ${i.join(", ")}`);return}dCt(e,t,function(){cCt.sendDataToCloud(e,t)})}};bu.zoom2d={name:"zoom2d",_cat:"zoom",title:function(e){return nu(e,"Zoom")},attr:"dragmode",val:"zoom",icon:Mu.zoombox,click:j0};bu.pan2d={name:"pan2d",_cat:"pan",title:function(e){return nu(e,"Pan")},attr:"dragmode",val:"pan",icon:Mu.pan,click:j0};bu.select2d={name:"select2d",_cat:"select",title:function(e){return nu(e,"Box Select")},attr:"dragmode",val:"select",icon:Mu.selectbox,click:j0};bu.lasso2d={name:"lasso2d",_cat:"lasso",title:function(e){return nu(e,"Lasso Select")},attr:"dragmode",val:"lasso",icon:Mu.lasso,click:j0};bu.drawclosedpath={name:"drawclosedpath",title:function(e){return nu(e,"Draw closed freeform")},attr:"dragmode",val:"drawclosedpath",icon:Mu.drawclosedpath,click:j0};bu.drawopenpath={name:"drawopenpath",title:function(e){return nu(e,"Draw open freeform")},attr:"dragmode",val:"drawopenpath",icon:Mu.drawopenpath,click:j0};bu.drawline={name:"drawline",title:function(e){return nu(e,"Draw line")},attr:"dragmode",val:"drawline",icon:Mu.drawline,click:j0};bu.drawrect={name:"drawrect",title:function(e){return nu(e,"Draw rectangle")},attr:"dragmode",val:"drawrect",icon:Mu.drawrect,click:j0};bu.drawcircle={name:"drawcircle",title:function(e){return nu(e,"Draw circle")},attr:"dragmode",val:"drawcircle",icon:Mu.drawcircle,click:j0};bu.eraseshape={name:"eraseshape",title:function(e){return nu(e,"Erase active shape")},icon:Mu.eraseshape,click:hCt};bu.zoomIn2d={name:"zoomIn2d",_cat:"zoomin",title:function(e){return nu(e,"Zoom in")},attr:"zoom",val:"in",icon:Mu.zoom_plus,click:j0};bu.zoomOut2d={name:"zoomOut2d",_cat:"zoomout",title:function(e){return nu(e,"Zoom out")},attr:"zoom",val:"out",icon:Mu.zoom_minus,click:j0};bu.autoScale2d={name:"autoScale2d",_cat:"autoscale",title:function(e){return nu(e,"Autoscale")},attr:"zoom",val:"auto",icon:Mu.autoscale,click:j0};bu.resetScale2d={name:"resetScale2d",_cat:"resetscale",title:function(e){return nu(e,"Reset axes")},attr:"zoom",val:"reset",icon:Mu.home,click:j0};bu.hoverClosestCartesian={name:"hoverClosestCartesian",_cat:"hoverclosest",title:function(e){return nu(e,"Show closest data on hover")},attr:"hovermode",val:"closest",icon:Mu.tooltip_basic,gravity:"ne",click:j0};bu.hoverCompareCartesian={name:"hoverCompareCartesian",_cat:"hoverCompare",title:function(e){return nu(e,"Compare data on hover")},attr:"hovermode",val:function(e){return e._fullLayout._isHoriz?"y":"x"},icon:Mu.tooltip_compare,gravity:"ne",click:j0};function j0(e,t){var r=t.currentTarget,i=r.getAttribute("data-attr"),n=r.getAttribute("data-val")||!0,a=e._fullLayout,o={},s=Vge.list(e,null,!0),l=a._cartesianSpikesEnabled,u,f;if(i==="zoom"){var c=n==="in"?.5:2,h=(1+c)/2,d=(1-c)/2,p,v;for(f=0;f-x),[v,y]=c.invert(f.midPt),{minscale:m}=u.projection,w=(s=u.projection.maxscale)!=null?s:1/0,_=Math.min(m,w),b=Math.max(m,w),M=n==="in"?Nge*h:1/Nge*h;M>b?M=b:M<_&&(M=_),M!==h&&np.call("_guiRelayout",e,{[l+".projection.scale"]:M,[l+".projection.rotation.lon"]:d,[l+".projection.rotation.lat"]:p,[l+".center.lon"]:v,[l+".center.lat"]:y,[l+".fitbounds"]:!1})}}i==="reset"&&iP(e,"geo")}bu.hoverClosestPie={name:"hoverClosestPie",_cat:"hoverclosest",title:function(e){return nu(e,"Toggle show closest data on hover")},attr:"hovermode",val:"closest",icon:Mu.tooltip_basic,gravity:"ne",click:Hge};function Gge(e){var t=e._fullLayout;return t.hovermode?!1:t._has("cartesian")?t._isHoriz?"y":"x":"closest"}function Hge(e){var t=Gge(e);np.call("_guiRelayout",e,"hovermode",t)}bu.resetViewSankey={name:"resetSankeyGroup",title:function(e){return nu(e,"Reset view")},icon:Mu.home,click:function(e){for(var t={"node.groups":[],"node.x":[],"node.y":[]},r=0;r{"use strict";var $ge=Cj(),yCt=Object.keys($ge),Yge=["drawline","drawopenpath","drawclosedpath","drawcircle","drawrect","eraseshape"],Xge=["v1hovermode","hoverclosest","hovercompare","togglehover","togglespikelines"].concat(Yge,["downloadJson"]),Zw=[],gCt=function(e){if(Xge.indexOf(e._cat||e.name)===-1){var t=e.name,r=(e._cat||e.name).toLowerCase();Zw.indexOf(t)===-1&&Zw.push(t),Zw.indexOf(r)===-1&&Zw.push(r)}};yCt.forEach(function(e){gCt($ge[e])});Zw.sort();Zge.exports={DRAW_MODES:Yge,backButtons:Xge,foreButtons:Zw}});var Lj={};Fl(Lj,{default:()=>bCt});var Fj,xCt,bCt,Pj=ps(()=>{"use strict";Fj=O1(Dj()),xCt={editType:"modebar",orientation:{valType:"enumerated",values:["v","h"],dflt:"h",editType:"modebar",description:"Sets the orientation of the modebar."},bgcolor:{valType:"color",editType:"modebar",description:"Sets the background color of the modebar."},color:{valType:"color",editType:"modebar",description:"Sets the color of the icons in the modebar."},activecolor:{valType:"color",editType:"modebar",description:"Sets the color of the active or hovered on icons in the modebar."},uirevision:{valType:"any",editType:"none",description:["Controls persistence of user-driven changes related to the modebar,","including `hovermode`, `dragmode`, and `showspikes` at both the","root level and inside subplots. Defaults to `layout.uirevision`."].join(" ")},add:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar",description:["Determines which predefined modebar buttons to add.","Please note that these buttons will only be shown if they are","compatible with all trace types used in a graph.","Similar to `config.modeBarButtonsToAdd` option.",`This may include *${Fj.default.backButtons.join("*, *")}*.`].join(" ")},remove:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar",description:["Determines which predefined modebar buttons to remove.","Similar to `config.modeBarButtonsToRemove` option.",`This may include *${Fj.default.foreButtons.join("*, *")}*.`].join(" ")}},bCt=xCt});var Jge=K((RVr,Kge)=>{"use strict";var _Ct=St(),Y6=wo(),wCt=cu(),ACt=(Pj(),or(Lj)).default;Kge.exports=function(t,r){var i=t.modebar||{},n=wCt.newContainer(r,"modebar");function a(s,l){return _Ct.coerce(i,n,ACt,s,l)}a("orientation"),a("bgcolor",Y6.addOpacity(r.paper_bgcolor,.5));var o=Y6.contrast(Y6.rgb(r.modebar.bgcolor));a("color",Y6.addOpacity(o,.3)),a("activecolor",Y6.addOpacity(o,.7)),a("uirevision",r.uirevision),a("add"),a("remove")}});var r2e=K((BVr,t2e)=>{"use strict";var zj=No(),TCt=Hs(),aP=St(),Qge=VL(),MCt=NT().version,SCt=new DOMParser;function e2e(e){this.container=e.container,this.element=document.createElement("div"),this.update(e.graphInfo,e.buttons),this.container.appendChild(this.element)}var im=e2e.prototype;im.update=function(e,t){this.graphInfo=e;var r=this.graphInfo._context,i=this.graphInfo._fullLayout,n="modebar-"+i._uid;this.element.setAttribute("id",n),this.element.setAttribute("role","toolbar"),this._uid=n,this.element.className="modebar modebar--custom",r.displayModeBar==="hover"&&(this.element.className+=" modebar--hover ease-bg"),i.modebar.orientation==="v"&&(this.element.className+=" vertical",t=t.reverse());var a=i.modebar,o="#"+n+" .modebar-group";document.querySelectorAll(o).forEach(function(c){c.style.backgroundColor=a.bgcolor});var s=!this.hasButtons(t),l=this.hasLogo!==r.displaylogo,u=this.locale!==r.locale;if(this.locale=r.locale,(s||l||u)&&(this.removeAllButtons(),this.updateButtons(t),r.watermark||r.displaylogo)){var f=this.getLogo();r.watermark&&(f.className=f.className+" watermark"),i.modebar.orientation==="v"?this.element.insertBefore(f,this.element.childNodes[0]):this.element.appendChild(f),this.hasLogo=!0}this.updateActiveButton(),aP.setStyleOnHover("#"+n+" .modebar-btn",".active",".icon path","fill: "+a.activecolor,"fill: "+a.color,this.element)};im.updateButtons=function(e){var t=this;this.buttons=e,this.buttonElements=[],this.buttonsNames=[],this.buttons.forEach(function(r){var i=t.createGroup();r.forEach(function(n){var a=n.name;if(!a)throw new Error("must provide button 'name' in button config");if(t.buttonsNames.indexOf(a)!==-1)throw new Error("button name '"+a+"' is taken");t.buttonsNames.push(a);var o=t.createButton(n);t.buttonElements.push(o),i.appendChild(o)}),t.element.appendChild(i)})};im.createGroup=function(){var e=document.createElement("div");e.className="modebar-group";var t=this.graphInfo._fullLayout.modebar;return e.style.backgroundColor=t.bgcolor,e};im.createButton=function(e){var t=this,r=document.createElement("button");r.setAttribute("type","button"),r.setAttribute("rel","tooltip"),r.className="modebar-btn";var i=e.title;i===void 0?i=e.name:typeof i=="function"&&(i=i(this.graphInfo)),(i||i===0)&&(r.setAttribute("data-title",i),r.setAttribute("aria-label",i)),e.attr!==void 0&&r.setAttribute("data-attr",e.attr);var n=e.val;n!==void 0&&(typeof n=="function"&&(n=n(this.graphInfo)),r.setAttribute("data-val",n));var a=e.click;if(typeof a!="function")throw new Error("must provide button 'click' function in button config");r.addEventListener("click",function(s){e.click(t.graphInfo,s),t.updateActiveButton(s.currentTarget)}),r.setAttribute("data-toggle",e.toggle||!1),e.toggle&&zj.select(r).classed("active",!0);var o=e.icon;return typeof o=="function"?r.appendChild(o()):r.appendChild(this.createIcon(o||Qge.question)),r.setAttribute("data-gravity",e.gravity||"n"),r};im.createIcon=function(e){var t=TCt(e.height)?Number(e.height):e.ascent-e.descent,r="http://www.w3.org/2000/svg",i;if(e.path){i=document.createElementNS(r,"svg"),i.setAttribute("viewBox",[0,0,e.width,t].join(" ")),i.setAttribute("class","icon");var n=document.createElementNS(r,"path");n.setAttribute("d",e.path),e.transform?n.setAttribute("transform",e.transform):e.ascent!==void 0&&n.setAttribute("transform","matrix(1 0 0 -1 0 "+e.ascent+")"),i.appendChild(n)}if(e.svg){var a=SCt.parseFromString(e.svg,"application/xml");i=a.childNodes[0]}return i.setAttribute("height","1em"),i.setAttribute("width","1em"),i};im.updateActiveButton=function(e){var t=this.graphInfo._fullLayout,r=e!==void 0?e.getAttribute("data-attr"):null;this.buttonElements.forEach(function(i){var n=i.getAttribute("data-val")||!0,a=i.getAttribute("data-attr"),o=i.getAttribute("data-toggle")==="true",s=zj.select(i),l=function(c,h){var d=t.modebar,p=c.querySelector(".icon path");p&&(h||c.matches(":hover")?p.style.fill=d.activecolor:p.style.fill=d.color)};if(o){if(a===r){var u=!s.classed("active");s.classed("active",u),l(i,u)}}else{var f=a===null?a:aP.nestedProperty(t,a).get();s.classed("active",f===n),l(i,f===n)}})};im.hasButtons=function(e){var t=this.buttons;if(!t||e.length!==t.length)return!1;for(var r=0;r{"use strict";var CCt=Vf(),i2e=ff(),Ij=Ho(),DCt=ud().isUnifiedHover,FCt=r2e(),oP=Cj(),LCt=Dj().DRAW_MODES,PCt=St().extendDeep;n2e.exports=function(t){var r=t._fullLayout,i=t._context,n=r._modeBar;if(!i.displayModeBar&&!i.watermark){n&&(n.destroy(),delete r._modeBar);return}if(!Array.isArray(i.modeBarButtonsToRemove))throw new Error(["*modeBarButtonsToRemove* configuration options","must be an array."].join(" "));if(!Array.isArray(i.modeBarButtonsToAdd))throw new Error(["*modeBarButtonsToAdd* configuration options","must be an array."].join(" "));var a=i.modeBarButtons,o;Array.isArray(a)&&a.length?o=OCt(a):!i.displayModeBar&&i.watermark?o=[]:o=zCt(t),n?n.update(t,o):r._modeBar=FCt(t,o)};function zCt(e){var t=e._fullLayout,r=e._fullData,i=e._context;function n(L,z){if(typeof z=="string"){if(z.toLowerCase()===L.toLowerCase())return!0}else{var B=z.name,O=z._cat||z.name;if(B===L||O===L.toLowerCase())return!0}return!1}var a=t.modebar.add;typeof a=="string"&&(a=[a]);var o=t.modebar.remove;typeof o=="string"&&(o=[o]);var s=i.modeBarButtonsToAdd.concat(a.filter(function(L){for(var z=0;z1?(g=["toggleHover"],E=["resetViews"]):c?(A=["zoomInGeo","zoomOutGeo"],g=["hoverClosestGeo"],E=["resetGeo"]):f?(g=["hoverClosest3d"],E=["resetCameraDefault3d","resetCameraLastSave3d"]):v?(A=["zoomInMap","zoomOutMap"],g=["toggleHover"],E=["resetViewMap"]):h?g=["hoverClosestPie"]:w?(g=["hoverClosestCartesian","hoverCompareCartesian"],E=["resetViewSankey"]):g=["toggleHover"],u&&g.push("toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"),(BCt(r)||b)&&(g=[]),u&&!_&&(A=["zoomIn2d","zoomOut2d","autoScale2d"],E[0]!=="resetViews"&&(E=["resetScale2d"])),f?S=["zoom3d","pan3d","orbitRotation","tableRotation"]:u&&!_||p?S=["zoom2d","pan2d"]:v||c?S=["pan2d"]:y&&(S=["zoom2d"]),RCt(r)&&S.push("select2d","lasso2d");var C=[],k=function(L){C.indexOf(L)===-1&&g.indexOf(L)!==-1&&C.push(L)};if(Array.isArray(s)){for(var D=[],F=0;F{"use strict";o2e.exports={moduleType:"component",name:"modebar",layoutAttributes:(Pj(),or(Lj)).default,supplyLayoutDefaults:Jge(),manage:a2e()}});var Bj=K((NVr,s2e)=>{"use strict";var NCt=($c(),or(Wc)).FROM_BL;s2e.exports=function(t,r,i){i===void 0&&(i=NCt[t.constraintoward||"center"]);var n=[t.r2l(t.range[0]),t.r2l(t.range[1])],a=n[0]+(n[1]-n[0])*i;t.range=t._input.range=[t.l2r(a+(n[0]-a)*r),t.l2r(a+(n[1]-a)*r)],t.setScale()}});var Cb=K(X6=>{"use strict";var kb=St(),qj=$v(),Xv=Vf().id2name,VCt=Ph(),l2e=Bj(),UCt=$1(),GCt=(Il(),or(Bl)).ALMOST_EQUAL,HCt=($c(),or(Wc)).FROM_BL;X6.handleDefaults=function(e,t,r){var i=r.axIds,n=r.axHasImage,a=t._axisConstraintGroups=[],o=t._axisMatchGroups=[],s,l,u,f,c,h,d,p;for(s=0;sa?r.slice(a):i.slice(n))+o}function WCt(e,t){for(var r=t._size,i=r.h/r.w,n={},a=Object.keys(e),o=0;oGCt*p&&!w)){for(a=0;aC&&BE&&(E=B);var W=(E-g)/(2*S);c/=W,g=l.l2r(g),E=l.l2r(E),l.range=l._input.range=x{"use strict";var lP=No(),W0=Ho(),ap=yf(),Np=St(),Vj=Du(),Uj=G6(),Z6=wo(),Kw=Is(),h2e=vb(),y2e=Rj(),K6=Cs(),py=($c(),or(Wc)),g2e=Cb(),$Ct=g2e.enforce,YCt=g2e.clean,d2e=$v().doAutoRange,x2e="start",XCt="middle",b2e="end",ZCt=(jc(),or(Hc)).zindexSeparator;_h.layoutStyles=function(e){return Np.syncOrAsync([ap.doAutoMargin,JCt],e)};function KCt(e,t,r){for(var i=0;i=e[1]||n[1]<=e[0])&&a[0]t[0])return!0}return!1}function JCt(e){var t=e._fullLayout,r=t._size,i=r.p,n=K6.list(e,"",!0),a,o,s,l,u,f;if(t._paperdiv.style({width:e._context.responsive&&t.autosize&&!e._context._hasZeroWidth&&!e.layout.width?"100%":t.width+"px",height:e._context.responsive&&t.autosize&&!e._context._hasZeroHeight&&!e.layout.height?"100%":t.height+"px"}).selectAll(".main-svg").call(Kw.setSize,t.width,t.height),e._context.setBackground(e,t.paper_bgcolor),_h.drawMainTitle(e),y2e.manage(e),!t._has("cartesian"))return ap.previousPromises(e);function c(j,$,ie){var re=j._lw/2;if(j._id.charAt(0)==="x"){if($){if(ie==="top")return $._offset-i-re}else return r.t+r.h*(1-(j.position||0))+re%1;return $._offset+$._length+i+re}if($){if(ie==="right")return $._offset+$._length+i+re}else return r.l+r.w*(j.position||0)+re%1;return $._offset-i-re}for(a=0;a0){rDt(e,a,u,l),s.attr({x:o,y:a,"text-anchor":i,dy:m2e(t.yanchor)}).call(Vj.positionText,o,a);var f=(t.text.match(Vj.BR_TAG_ALL)||[]).length;if(f){var c=py.LINE_SPACING*f+py.MID_SHIFT;t.y===0&&(c=-c),s.selectAll(".line").each(function(){var y=+this.getAttribute("dy").slice(0,-2)-c+"em";this.setAttribute("dy",y)})}var h=lP.select(e).selectAll(".gtitle-subtitle");if(h.node()){var d=s.node().getBBox(),p=d.y+d.height,v=p+h2e.SUBTITLE_PADDING_EM*t.subtitle.font.size;h.attr({x:o,y:v,"text-anchor":i,dy:m2e(t.yanchor)}).call(Vj.positionText,o,v)}}}};function QCt(e,t,r,i,n){var a=t.yref==="paper"?e._fullLayout._size.h:e._fullLayout.height,o=Np.isTopAnchor(t)?i:i-n,s=r==="b"?a-o:o;return Np.isTopAnchor(t)&&r==="t"||Np.isBottomAnchor(t)&&r==="b"?!1:s.5?"t":"b",o=e._fullLayout.margin[a],s=0;return t.yref==="paper"?s=r+t.pad.t+t.pad.b:t.yref==="container"&&(s=eDt(a,i,n,e._fullLayout.height,r)+t.pad.t+t.pad.b),s>o?s:0}function rDt(e,t,r,i){var n="title.automargin",a=e._fullLayout.title,o=a.y>.5?"t":"b",s={x:a.x,y:a.y,t:0,b:0},l={};a.yref==="paper"&&QCt(e,a,o,t,i)?s[o]=r:a.yref==="container"&&(l[o]=r,e._fullLayout._reservedMargin[n]=l),ap.allowAutoMargin(e,n),ap.autoMargin(e,n,s)}function iDt(e,t){var r=e.title,i=e._size,n=0;return t===x2e?n=r.pad.l:t===b2e&&(n=-r.pad.r),r.xref==="paper"?i.l+i.w*r.x+n:e.width*r.x+n}function nDt(e,t){var r=e.title,i=e._size,n=0;return t==="0em"||!t?n=-r.pad.b:t===py.CAP_SHIFT+"em"&&(n=r.pad.t),r.y==="auto"?i.t/2:r.yref==="paper"?i.t+i.h-i.h*r.y+n:e.height-e.height*r.y+n}function m2e(e){return e==="top"?py.CAP_SHIFT+.3+"em":e==="bottom"?"-0.3em":py.MID_SHIFT+"em"}function aDt(e){var t=e.title,r=XCt;return Np.isRightAnchor(t)?r=b2e:Np.isLeftAnchor(t)&&(r=x2e),r}function oDt(e){var t=e.title,r="0em";return Np.isTopAnchor(t)?r=py.CAP_SHIFT+"em":Np.isMiddleAnchor(t)&&(r=py.MID_SHIFT+"em"),r}_h.doTraceStyle=function(e){var t=e.calcdata,r=[],i;for(i=0;i{"use strict";var sDt=Yg().readPaths,lDt=KL(),_2e=Rg().clearOutlineControllers,Gj=wo(),w2e=Is(),uDt=cu().arrayEditor,A2e=Kg(),fDt=A2e.getPathString;M2e.exports={draw:uP,drawOne:T2e,activateLastSelection:dDt};function uP(e){var t=e._fullLayout;_2e(e),t._selectionLayer.selectAll("path").remove();for(var r in t._plots){var i=t._plots[r].selectionLayer;i&&i.selectAll("path").remove()}for(var n=0;n=0;y--){var m=o.append("path").attr(l).style("opacity",y?.1:u).call(Gj.stroke,c).call(Gj.fill,f).call(w2e.dashLine,y?"solid":d,y?4+h:h);if(cDt(m,e,i),p){var w=uDt(e.layout,"selections",i);m.style({cursor:"move"});var _={element:m.node(),plotinfo:n,gd:e,editHelpers:w,isActiveSelection:!0},b=sDt(s,e);lDt(b,m,_)}else m.style("pointer-events",y?"all":"none");v[y]=m}var M=v[0],x=v[1];x.node().addEventListener("click",function(){return hDt(e,M)})}}function cDt(e,t,r){var i=r.xref+r.yref;w2e.setClipUrl(e,"clip"+t._fullLayout._uid+i,t)}function hDt(e,t){if(fP(e)){var r=t.node(),i=+r.getAttribute("data-index");if(i>=0){if(i===e._fullLayout._activeSelectionIndex){Hj(e);return}e._fullLayout._activeSelectionIndex=i,e._fullLayout._deactivateSelection=Hj,uP(e)}}}function dDt(e){if(fP(e)){var t=e._fullLayout.selections.length-1;e._fullLayout._activeSelectionIndex=t,e._fullLayout._deactivateSelection=Hj,uP(e)}}function Hj(e){if(fP(e)){var t=e._fullLayout._activeSelectionIndex;t>=0&&(_2e(e),delete e._fullLayout._activeSelectionIndex,uP(e))}}});var E2e=K((HVr,S2e)=>{function pDt(){var e,t=0,r=!1;function i(n,a){return e.list.push({type:n,data:a?JSON.parse(JSON.stringify(a)):void 0}),e}return e={list:[],segmentId:function(){return t++},checkIntersection:function(n,a){return i("check",{seg1:n,seg2:a})},segmentChop:function(n,a){return i("div_seg",{seg:n,pt:a}),i("chop",{seg:n,pt:a})},statusRemove:function(n){return i("pop_seg",{seg:n})},segmentUpdate:function(n){return i("seg_update",{seg:n})},segmentNew:function(n,a){return i("new_seg",{seg:n,primary:a})},segmentRemove:function(n){return i("rem_seg",{seg:n})},tempStatus:function(n,a,o){return i("temp_status",{seg:n,above:a,below:o})},rewind:function(n){return i("rewind",{seg:n})},status:function(n,a,o){return i("status",{seg:n,above:a,below:o})},vert:function(n){return n===r?e:(r=n,i("vert",{x:n}))},log:function(n){return typeof n!="string"&&(n=JSON.stringify(n,!1," ")),i("log",{txt:n})},reset:function(){return i("reset")},selected:function(n){return i("selected",{segs:n})},chainStart:function(n){return i("chain_start",{seg:n})},chainRemoveHead:function(n,a){return i("chain_rem_head",{index:n,pt:a})},chainRemoveTail:function(n,a){return i("chain_rem_tail",{index:n,pt:a})},chainNew:function(n,a){return i("chain_new",{pt1:n,pt2:a})},chainMatch:function(n){return i("chain_match",{index:n})},chainClose:function(n){return i("chain_close",{index:n})},chainAddHead:function(n,a){return i("chain_add_head",{index:n,pt:a})},chainAddTail:function(n,a){return i("chain_add_tail",{index:n,pt:a})},chainConnect:function(n,a){return i("chain_con",{index1:n,index2:a})},chainReverse:function(n){return i("chain_rev",{index:n})},chainJoin:function(n,a){return i("chain_join",{index1:n,index2:a})},done:function(){return i("done")}},e}S2e.exports=pDt});var C2e=K((jVr,k2e)=>{function vDt(e){typeof e!="number"&&(e=1e-10);var t={epsilon:function(r){return typeof r=="number"&&(e=r),e},pointAboveOrOnLine:function(r,i,n){var a=i[0],o=i[1],s=n[0],l=n[1],u=r[0],f=r[1];return(s-a)*(f-o)-(l-o)*(u-a)>=-e},pointBetween:function(r,i,n){var a=r[1]-i[1],o=n[0]-i[0],s=r[0]-i[0],l=n[1]-i[1],u=s*o+a*l;if(u-e)},pointsSameX:function(r,i){return Math.abs(r[0]-i[0])e!=s-a>e&&(o-f)*(a-c)/(s-c)+f-n>e&&(l=!l),o=f,s=c}return l}};return t}k2e.exports=vDt});var F2e=K((WVr,D2e)=>{var mDt={create:function(){var e={root:{root:!0,next:null},exists:function(t){return!(t===null||t===e.root)},isEmpty:function(){return e.root.next===null},getHead:function(){return e.root.next},insertBefore:function(t,r){for(var i=e.root,n=e.root.next;n!==null;){if(r(n)){t.prev=n.prev,t.next=n,n.prev.next=t,n.prev=t;return}i=n,n=n.next}i.next=t,t.prev=i,t.next=null},findTransition:function(t){for(var r=e.root,i=e.root.next;i!==null&&!t(i);)r=i,i=i.next;return{before:r===e.root?null:r,after:i,insert:function(n){return n.prev=r,n.next=i,r.next=n,i!==null&&(i.prev=n),n}}}};return e},node:function(e){return e.prev=null,e.next=null,e.remove=function(){e.prev.next=e.next,e.next&&(e.next.prev=e.prev),e.prev=null,e.next=null},e}};D2e.exports=mDt});var P2e=K(($Vr,L2e)=>{var Q6=F2e();function yDt(e,t,r){function i(p,v){return{id:r?r.segmentId():-1,start:p,end:v,myFill:{above:null,below:null},otherFill:null}}function n(p,v,y){return{id:r?r.segmentId():-1,start:p,end:v,myFill:{above:y.myFill.above,below:y.myFill.below},otherFill:null}}var a=Q6.create();function o(p,v,y,m,w,_){var b=t.pointsCompare(v,w);return b!==0?b:t.pointsSame(y,_)?0:p!==m?p?1:-1:t.pointAboveOrOnLine(y,m?w:_,m?_:w)?1:-1}function s(p,v){a.insertBefore(p,function(y){var m=o(p.isStart,p.pt,v,y.isStart,y.pt,y.other.pt);return m<0})}function l(p,v){var y=Q6.node({isStart:!0,pt:p.start,seg:p,primary:v,other:null,status:null});return s(y,p.end),y}function u(p,v,y){var m=Q6.node({isStart:!1,pt:v.end,seg:v,primary:y,other:p,status:null});p.other=m,s(m,p.pt)}function f(p,v){var y=l(p,v);return u(y,p,v),y}function c(p,v){r&&r.segmentChop(p.seg,v),p.other.remove(),p.seg.end=v,p.other.pt=v,s(p.other,p.pt)}function h(p,v){var y=n(v,p.seg.end,p.seg);return c(p,v),f(y,p.primary)}function d(p,v){var y=Q6.create();function m(F,P){var I=F.seg.start,L=F.seg.end,z=P.seg.start,B=P.seg.end;return t.pointsCollinear(I,z,B)?t.pointsCollinear(L,z,B)||t.pointAboveOrOnLine(L,z,B)?1:-1:t.pointAboveOrOnLine(I,z,B)?1:-1}function w(F){return y.findTransition(function(P){var I=m(F,P.ev);return I>0})}function _(F,P){var I=F.seg,L=P.seg,z=I.start,B=I.end,O=L.start,W=L.end;r&&r.checkIntersection(I,L);var X=t.linesIntersect(z,B,O,W);if(X===!1){if(!t.pointsCollinear(z,B,O)||t.pointsSame(z,W)||t.pointsSame(B,O))return!1;var Z=t.pointsSame(z,O),H=t.pointsSame(B,W);if(Z&&H)return P;var q=!Z&&t.pointBetween(z,O,W),Q=!H&&t.pointBetween(B,O,W);if(Z)return Q?h(P,B):h(F,W),P;q&&(H||(Q?h(P,B):h(F,W)),h(P,z))}else X.alongA===0&&(X.alongB===-1?h(F,O):X.alongB===0?h(F,X.pt):X.alongB===1&&h(F,W)),X.alongB===0&&(X.alongA===-1?h(P,z):X.alongA===0?h(P,X.pt):X.alongA===1&&h(P,B));return!1}for(var b=[];!a.isEmpty();){var M=a.getHead();if(r&&r.vert(M.pt[0]),M.isStart){let F=function(){if(T){var P=_(M,T);if(P)return P}return A?_(M,A):!1};var D=F;r&&r.segmentNew(M.seg,M.primary);var x=w(M),T=x.before?x.before.ev:null,A=x.after?x.after.ev:null;r&&r.tempStatus(M.seg,T?T.seg:!1,A?A.seg:!1);var g=F();if(g){if(e){var E;M.seg.myFill.below===null?E=!0:E=M.seg.myFill.above!==M.seg.myFill.below,E&&(g.seg.myFill.above=!g.seg.myFill.above)}else g.seg.otherFill=M.seg.myFill;r&&r.segmentUpdate(g.seg),M.other.remove(),M.remove()}if(a.getHead()!==M){r&&r.rewind(M.seg);continue}if(e){var E;M.seg.myFill.below===null?E=!0:E=M.seg.myFill.above!==M.seg.myFill.below,A?M.seg.myFill.below=A.seg.myFill.above:M.seg.myFill.below=p,E?M.seg.myFill.above=!M.seg.myFill.below:M.seg.myFill.above=M.seg.myFill.below}else if(M.seg.otherFill===null){var S;A?M.primary===A.primary?S=A.seg.otherFill.above:S=A.seg.myFill.above:S=M.primary?v:p,M.seg.otherFill={above:S,below:S}}r&&r.status(M.seg,T?T.seg:!1,A?A.seg:!1),M.other.status=x.insert(Q6.node({ev:M}))}else{var C=M.status;if(C===null)throw new Error("PolyBool: Zero-length segment detected; your epsilon is probably too small or too large");if(y.exists(C.prev)&&y.exists(C.next)&&_(C.prev.ev,C.next.ev),r&&r.statusRemove(C.ev.seg),C.remove(),!M.primary){var k=M.seg.myFill;M.seg.myFill=M.seg.otherFill,M.seg.otherFill=k}b.push(M.seg)}a.getHead().remove()}return r&&r.done(),b}return e?{addRegion:function(p){for(var v,y=p[p.length-1],m=0;m{function gDt(e,t,r){var i=[],n=[];return e.forEach(function(a){var o=a.start,s=a.end;if(t.pointsSame(o,s)){console.warn("PolyBool: Warning: Zero-length segment detected; your epsilon is probably too small or too large");return}r&&r.chainStart(a);var l={index:0,matches_head:!1,matches_pt1:!1},u={index:0,matches_head:!1,matches_pt1:!1},f=l;function c(D,F,P){return f.index=D,f.matches_head=F,f.matches_pt1=P,f===l?(f=u,!1):(f=null,!0)}for(var h=0;h{function eM(e,t,r){var i=[];return e.forEach(function(n){var a=(n.myFill.above?8:0)+(n.myFill.below?4:0)+(n.otherFill&&n.otherFill.above?2:0)+(n.otherFill&&n.otherFill.below?1:0);t[a]!==0&&i.push({id:r?r.segmentId():-1,start:n.start,end:n.end,myFill:{above:t[a]===1,below:t[a]===2},otherFill:null})}),r&&r.selected(i),i}var xDt={union:function(e,t){return eM(e,[0,2,1,0,2,2,0,0,1,0,1,0,0,0,0,0],t)},intersect:function(e,t){return eM(e,[0,0,0,0,0,2,0,2,0,0,1,1,0,2,1,0],t)},difference:function(e,t){return eM(e,[0,0,0,0,2,0,2,0,1,1,0,0,0,1,2,0],t)},differenceRev:function(e,t){return eM(e,[0,2,1,0,0,0,1,1,0,2,0,2,0,0,0,0],t)},xor:function(e,t){return eM(e,[0,2,1,0,2,0,0,1,1,0,0,2,0,1,2,0],t)}};R2e.exports=xDt});var O2e=K((ZVr,q2e)=>{var bDt={toPolygon:function(e,t){function r(a){if(a.length<=0)return e.segments({inverted:!1,regions:[]});function o(u){var f=u.slice(0,u.length-1);return e.segments({inverted:!1,regions:[f]})}for(var s=o(a[0]),l=1;l{var _Dt=E2e(),wDt=C2e(),N2e=P2e(),ADt=I2e(),tM=B2e(),V2e=O2e(),Vp=!1,rM=wDt(),Fd;Fd={buildLog:function(e){return e===!0?Vp=_Dt():e===!1&&(Vp=!1),Vp===!1?!1:Vp.list},epsilon:function(e){return rM.epsilon(e)},segments:function(e){var t=N2e(!0,rM,Vp);return e.regions.forEach(t.addRegion),{segments:t.calculate(e.inverted),inverted:e.inverted}},combine:function(e,t){var r=N2e(!1,rM,Vp);return{combined:r.calculate(e.segments,e.inverted,t.segments,t.inverted),inverted1:e.inverted,inverted2:t.inverted}},selectUnion:function(e){return{segments:tM.union(e.combined,Vp),inverted:e.inverted1||e.inverted2}},selectIntersect:function(e){return{segments:tM.intersect(e.combined,Vp),inverted:e.inverted1&&e.inverted2}},selectDifference:function(e){return{segments:tM.difference(e.combined,Vp),inverted:e.inverted1&&!e.inverted2}},selectDifferenceRev:function(e){return{segments:tM.differenceRev(e.combined,Vp),inverted:!e.inverted1&&e.inverted2}},selectXor:function(e){return{segments:tM.xor(e.combined,Vp),inverted:e.inverted1!==e.inverted2}},polygon:function(e){return{regions:ADt(e.segments,rM,Vp),inverted:e.inverted}},polygonFromGeoJSON:function(e){return V2e.toPolygon(Fd,e)},polygonToGeoJSON:function(e){return V2e.fromPolygon(Fd,rM,e)},union:function(e,t){return iM(e,t,Fd.selectUnion)},intersect:function(e,t){return iM(e,t,Fd.selectIntersect)},difference:function(e,t){return iM(e,t,Fd.selectDifference)},differenceRev:function(e,t){return iM(e,t,Fd.selectDifferenceRev)},xor:function(e,t){return iM(e,t,Fd.selectXor)}};function iM(e,t,r){var i=Fd.segments(e),n=Fd.segments(t),a=Fd.combine(i,n),o=r(a);return Fd.polygon(o)}typeof window=="object"&&(window.PolyBool=Fd);U2e.exports=Fd});var j2e=K((JVr,H2e)=>{H2e.exports=function(t,r,i,n){var a=t[0],o=t[1],s=!1;i===void 0&&(i=0),n===void 0&&(n=r.length);for(var l=n-i,u=0,f=l-1;uo!=p>o&&a<(d-c)*(o-h)/(p-h)+c;v&&(s=!s)}return s}});var nM=K((QVr,W2e)=>{"use strict";var Wj=mF().dot,cP=(Il(),or(Bl)).BADNUM,hP=W2e.exports={};hP.tester=function(t){var r=t.slice(),i=r[0][0],n=i,a=r[0][1],o=a,s;for((r[r.length-1][0]!==r[0][0]||r[r.length-1][1]!==r[0][1])&&r.push(r[0]),s=1;sn||m===cP||mo||v&&u(p))}function c(p,v){var y=p[0],m=p[1];if(y===cP||yn||m===cP||mo)return!1;var w=r.length,_=r[0][0],b=r[0][1],M=0,x,T,A,g,E;for(x=1;xMath.max(T,_)||m>Math.max(A,b)))if(ms||Math.abs(Wj(c,u))>n)return!0;return!1};hP.filter=function(t,r){var i=[t[0]],n=0,a=0;function o(l){t.push(l);var u=i.length,f=n;i.splice(a+1);for(var c=f+1;c1){var s=t.pop();o(s)}return{addPt:o,raw:t,filtered:i}}});var $2e={};Fl($2e,{BENDPX:()=>TDt,MINSELECT:()=>MDt,SELECTDELAY:()=>SDt,SELECTID:()=>EDt});var TDt,MDt,SDt,EDt,Y2e=ps(()=>{"use strict";TDt=1.5,MDt=12,SDt=100,EDt="-select"});var mxe=K((eUr,vxe)=>{"use strict";var X2e=G2e(),kDt=j2e(),sM=Ho(),CDt=Is().dashStyle,aM=wo(),DDt=Gf(),FDt=ud().makeEventData,hM=Q1(),LDt=hM.freeMode,PDt=hM.rectMode,lM=hM.drawMode,Zj=hM.openMode,Kj=hM.selectMode,Z2e=Kg(),K2e=(W6(),or(j6)),rxe=KL(),ixe=Rg().clearOutline,nxe=Yg(),$j=nxe.handleEllipse,zDt=nxe.readPaths,IDt=YL().newShapes,RDt=xj(),BDt=jj().activateLastSelection,pP=St(),qDt=pP.sorterAsc,axe=nM(),oM=CF(),Up=Vf().getFromId,ODt=G6(),NDt=J6().redrawReglTraces,vP=(Y2e(),or($2e)),nm=vP.MINSELECT,VDt=axe.filter,Jj=axe.tester,Qj=HL(),J2e=Qj.p2r,UDt=Qj.axValue,GDt=Qj.getTransform;function eW(e){return e.subplot!==void 0}function HDt(e,t,r,i,n){var a=!eW(i),o=LDt(n),s=PDt(n),l=Zj(n),u=lM(n),f=Kj(n),c=n==="drawline",h=n==="drawcircle",d=c||h,p=i.gd,v=p._fullLayout,y=f&&v.newselection.mode==="immediate"&&a,m=v._zoomlayer,w=i.element.getBoundingClientRect(),_=i.plotinfo,b=GDt(_),M=t-w.left,x=r-w.top;v._calcInverseTransform(p);var T=pP.apply3DTransform(v._invTransform)(M,x);M=T[0],x=T[1];var A=v._invScaleX,g=v._invScaleY,E=M,S=x,C="M"+M+","+x,k=i.xaxes[0],D=i.yaxes[0],F=k._length,P=D._length,I=e.altKey&&!(lM(n)&&l),L,z,B,O,W,X,Z;sxe(e,p,i),o&&(L=VDt([[M,x]],vP.BENDPX));var H=m.selectAll("path.select-outline-"+_.id).data([1]),q=u?v.newshape:v.newselection;u&&(i.hasText=q.label.text||q.label.texttemplate);var Q=u&&!l?q.fillcolor:"rgba(0,0,0,0)",N=q.line.color||(a?aM.contrast(p._fullLayout.plot_bgcolor):"#7f7f7f");H.enter().append("path").attr("class","select-outline select-outline-"+_.id).style({opacity:u?q.opacity/2:1,"stroke-dasharray":CDt(q.line.dash,q.line.width),"stroke-width":q.line.width+"px","shape-rendering":"crispEdges"}).call(aM.stroke,N).call(aM.fill,Q).attr("fill-rule","evenodd").classed("cursor-move",!!u).attr("transform",b).attr("d",C+"Z");var U=m.append("path").attr("class","zoombox-corners").style({fill:aM.background,stroke:aM.defaultLine,"stroke-width":1}).attr("transform",b).attr("d","M0,0Z");if(u&&i.hasText){var J=m.select(".label-temp");J.empty()&&(J=m.append("g").classed("label-temp",!0).classed("select-outline",!0).style({opacity:.8}))}var j=v._uid+vP.SELECTID,$=[],ie=mP(p,i.xaxes,i.yaxes,i.subplot);y&&!e.shiftKey&&(i._clearSubplotSelections=function(){if(a){var de=k._id,me=D._id;hxe(p,de,me,ie);for(var ze=(p.layout||{}).selections||[],ke=[],le=!1,te=0;te=0){p._fullLayout._deactivateShape(p);return}if(!u){var ze=v.clickmode;oM.done(j).then(function(){if(oM.clear(j),de===2){for(H.remove(),W=0;W-1&&oxe(me,p,i.xaxes,i.yaxes,i.subplot,i,H),ze==="event"&&cM(p,void 0);DDt.click(p,me,_.id)}).catch(pP.error)}},i.doneFn=function(){U.remove(),oM.done(j).then(function(){oM.clear(j),!y&&O&&i.selectionDefs&&(O.subtract=I,i.selectionDefs.push(O),i.mergedPolygons.length=0,[].push.apply(i.mergedPolygons,B)),(y||u)&&uM(i,y),i.doneFnCompleted&&i.doneFnCompleted($),f&&cM(p,Z)}).catch(pP.error)}}function oxe(e,t,r,i,n,a,o){var s=t._hoverdata,l=t._fullLayout,u=l.clickmode,f=u.indexOf("event")>-1,c=[],h,d,p,v,y,m,w,_,b,M;if(XDt(s)){sxe(e,t,a),h=mP(t,r,i,n);var x=ZDt(s,h),T=x.pointNumbers.length>0;if(T?KDt(h,x):JDt(h)&&(w=exe(x))){for(o&&o.remove(),M=0;M=0}function YDt(e){return e._fullLayout._activeSelectionIndex>=0}function uM(e,t){var r=e.dragmode,i=e.plotinfo,n=e.gd;$Dt(n)&&n._fullLayout._deactivateShape(n),YDt(n)&&n._fullLayout._deactivateSelection(n);var a=n._fullLayout,o=a._zoomlayer,s=lM(r),l=Kj(r);if(s||l){var u=o.selectAll(".select-outline-"+i.id);if(u&&n._fullLayout._outlining){var f;s&&(f=IDt(u,e)),f&&sM.call("_guiRelayout",n,{shapes:f});var c;l&&!eW(e)&&(c=RDt(u,e)),c&&(n._fullLayout._noEmitSelectedAtStart=!0,sM.call("_guiRelayout",n,{selections:c}).then(function(){t&&BDt(n)})),n._fullLayout._outlining=!1}}i.selection={},i.selection.selectionDefs=e.selectionDefs=[],i.selection.mergedPolygons=e.mergedPolygons=[]}function Q2e(e){return e._id}function mP(e,t,r,i){if(!e.calcdata)return[];var n=[],a=t.map(Q2e),o=r.map(Q2e),s,l,u;for(u=0;u0,a=n?i[0]:r;return t.selectedpoints?t.selectedpoints.indexOf(a)>-1:!1}function KDt(e,t){var r=[],i,n,a,o;for(o=0;o0&&r.push(i);if(r.length===1&&(a=r[0]===t.searchInfo,a&&(n=t.searchInfo.cd[0].trace,n.selectedpoints.length===t.pointNumbers.length))){for(o=0;o1||(t+=i.selectedpoints.length,t>1)))return!1;return t===1}function fM(e,t,r){var i,n;for(i=0;i-1&&t;if(!o&&t){var de=txe(e,!0);if(de.length){var me=de[0].xref,ze=de[0].yref;if(me&&ze){var ke=dxe(de),le=pxe([Up(e,me,"x"),Up(e,ze,"y")]);le($,ke)}}e._fullLayout._noEmitSelectedAtStart?e._fullLayout._noEmitSelectedAtStart=!1:re&&cM(e,$),h._reselect=!1}if(!o&&h._deselect){var te=h._deselect;s=te.xref,l=te.yref,tFt(s,l,f)||hxe(e,s,l,i),re&&($.points.length?cM(e,$):iW(e)),h._deselect=!1}return{eventData:$,selectionTesters:r}}function eFt(e){var t=e.calcdata;if(t)for(var r=0;r{"use strict";yxe.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}]});var dM={};Fl(dM,{axisRefDescription:()=>oFt});function oFt(e,t,r){return[`If set to a ${e} axis id (e.g. *${e}* or *${e}2*),`,`the \`${e}\` position refers to a ${e} coordinate.`,`If set to *paper*, the \`${e}\` position refers to the distance from the`,`${t} of the plotting area in normalized coordinates where *0* (*1*) corresponds`,`to the ${t} (${r}). If set to a ${e} 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 ${t} of the domain of that`,`axis: e.g., *${e}2 domain* refers to the domain of the second ${e}`,`axis and a ${e} position of 0.5 refers to the point between the ${t}`,`and the ${r} of the domain of the second ${e} axis.`].join(" ")}var pM=ps(()=>{"use strict"});var Qg=K((iUr,bxe)=>{"use strict";var gxe=nW(),xxe=lf(),yP=(jc(),or(Hc)),sFt=cu().templatedArray,rUr=(pM(),or(dM));bxe.exports=sFt("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:xxe({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:gxe.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:gxe.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",yP.idRegex.x.toString()],editType:"calc"},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",yP.idRegex.y.toString()],editType:"calc"},xref:{valType:"enumerated",values:["paper",yP.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",yP.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:xxe({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc"})});var am={};Fl(am,{PTS_LINESONLY:()=>lFt,eventDataKeys:()=>hFt,maxScreensAway:()=>cFt,minTolerance:()=>uFt,toleranceGrowth:()=>fFt});var lFt,uFt,fFt,cFt,hFt,om=ps(()=>{"use strict";lFt=20,uFt=.2,fFt=10,cFt=20,hFt=[]});var sm=K((nUr,_xe)=>{"use strict";_xe.exports=function(t){return{valType:"color",editType:"style",anim:!0}}});var Qf=K((aUr,Cxe)=>{"use strict";var wxe=zf().axisHoverFormat,{hovertemplateAttrs:dFt,texttemplateAttrs:pFt,templatefallbackAttrs:Axe}=gu(),Txe=Wu(),vFt=lf(),Mxe=gh().dash,mFt=gh().pattern,yFt=Is(),gFt=(om(),or(am)),vM=Os().extendFlat,xFt=sm();function Sxe(e){return{valType:"any",dflt:0,editType:"calc"}}function Exe(e){return{valType:"any",editType:"calc"}}function kxe(e){return{valType:"enumerated",values:["start","middle","end"],dflt:"middle",editType:"calc"}}Cxe.exports={x:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0},x0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",anim:!0},dx:{valType:"number",dflt:1,editType:"calc",anim:!0},y:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0},y0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",anim:!0},dy:{valType:"number",dflt:1,editType:"calc",anim:!0},xperiod:Sxe("x"),yperiod:Sxe("y"),xperiod0:Exe("x0"),yperiod0:Exe("y0"),xperiodalignment:kxe("x"),yperiodalignment:kxe("y"),xhoverformat:wxe("x"),yhoverformat:wxe("y"),offsetgroup:{valType:"string",dflt:"",editType:"calc"},alignmentgroup:{valType:"string",dflt:"",editType:"calc"},stackgroup:{valType:"string",dflt:"",editType:"calc"},orientation:{valType:"enumerated",values:["v","h"],editType:"calc"},groupnorm:{valType:"enumerated",values:["","fraction","percent"],dflt:"",editType:"calc"},stackgaps:{valType:"enumerated",values:["infer zero","interpolate"],dflt:"infer zero",editType:"calc"},text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},texttemplate:pFt(),texttemplatefallback:Axe({editType:"calc"}),hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"style"},mode:{valType:"flaglist",flags:["lines","markers","text"],extras:["none"],editType:"calc"},hoveron:{valType:"flaglist",flags:["points","fills"],editType:"style"},hovertemplate:dFt({},{keys:gFt.eventDataKeys}),hovertemplatefallback:Axe(),line:{color:{valType:"color",editType:"style",anim:!0},width:{valType:"number",min:0,dflt:2,editType:"style",anim:!0},shape:{valType:"enumerated",values:["linear","spline","hv","vh","hvh","vhv"],dflt:"linear",editType:"plot"},smoothing:{valType:"number",min:0,max:1.3,dflt:1,editType:"plot"},dash:vM({},Mxe,{editType:"style"}),backoff:{valType:"number",min:0,dflt:"auto",arrayOk:!0,editType:"plot"},simplify:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},connectgaps:{valType:"boolean",dflt:!1,editType:"calc"},cliponaxis:{valType:"boolean",dflt:!0,editType:"plot"},fill:{valType:"enumerated",values:["none","tozeroy","tozerox","tonexty","tonextx","toself","tonext"],editType:"calc"},fillcolor:xFt(!0),fillgradient:vM({type:{valType:"enumerated",values:["radial","horizontal","vertical","none"],dflt:"none",editType:"calc"},start:{valType:"number",editType:"calc"},stop:{valType:"number",editType:"calc"},colorscale:{valType:"colorscale",editType:"style"},editType:"calc"}),fillpattern:mFt,marker:vM({symbol:{valType:"enumerated",values:yFt.symbolList,dflt:"circle",arrayOk:!0,editType:"style"},opacity:{valType:"number",min:0,max:1,arrayOk:!0,editType:"style",anim:!0},angle:{valType:"angle",dflt:0,arrayOk:!0,editType:"plot",anim:!1},angleref:{valType:"enumerated",values:["previous","up"],dflt:"up",editType:"plot",anim:!1},standoff:{valType:"number",min:0,dflt:0,arrayOk:!0,editType:"plot",anim:!0},size:{valType:"number",min:0,dflt:6,arrayOk:!0,editType:"calc",anim:!0},maxdisplayed:{valType:"number",min:0,dflt:0,editType:"plot"},sizeref:{valType:"number",dflt:1,editType:"calc"},sizemin:{valType:"number",min:0,dflt:0,editType:"calc"},sizemode:{valType:"enumerated",values:["diameter","area"],dflt:"diameter",editType:"calc"},line:vM({width:{valType:"number",min:0,arrayOk:!0,editType:"style",anim:!0},dash:vM({},Mxe,{arrayOk:!0}),editType:"calc"},Txe("marker.line",{anim:!0})),gradient:{type:{valType:"enumerated",values:["radial","horizontal","vertical","none"],arrayOk:!0,dflt:"none",editType:"calc"},color:{valType:"color",arrayOk:!0,editType:"calc"},editType:"calc"},editType:"calc"},Txe("marker",{anim:!0})),selected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style"},color:{valType:"color",editType:"style"},size:{valType:"number",min:0,editType:"style"},editType:"style"},textfont:{color:{valType:"color",editType:"style"},editType:"style"},editType:"style"},unselected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style"},color:{valType:"color",editType:"style"},size:{valType:"number",min:0,editType:"style"},editType:"style"},textfont:{color:{valType:"color",editType:"style"},editType:"style"},editType:"style"},textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right"],dflt:"middle center",arrayOk:!0,editType:"calc"},textfont:vFt({editType:"calc",colorEditType:"style",arrayOk:!0}),zorder:{valType:"integer",dflt:0,editType:"plot"}}});var aW=K((sUr,Lxe)=>{"use strict";var Dxe=Qg(),Fxe=Qf().line,bFt=gh().dash,gP=Os().extendFlat,_Ft=Ef().overrideAll,wFt=cu().templatedArray,oUr=(pM(),or(dM));Lxe.exports=_Ft(wFt("selection",{type:{valType:"enumerated",values:["rect","path"]},xref:gP({},Dxe.xref,{}),yref:gP({},Dxe.yref,{}),x0:{valType:"any"},x1:{valType:"any"},y0:{valType:"any"},y1:{valType:"any"},path:{valType:"string",editType:"arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:.7,editType:"arraydraw"},line:{color:Fxe.color,width:gP({},Fxe.width,{min:1,dflt:1}),dash:gP({},bFt,{dflt:"dot"})}}),"arraydraw","from-root")});var Rxe=K((lUr,Ixe)=>{"use strict";var Pxe=St(),xP=Cs(),AFt=A0(),TFt=aW(),zxe=Kg();Ixe.exports=function(t,r){AFt(t,r,{name:"selections",handleItemDefaults:MFt});for(var i=r.selections,n=0;n{"use strict";Bxe.exports=function(t,r,i){i("newselection.mode");var n=i("newselection.line.width");n&&(i("newselection.line.color"),i("newselection.line.dash")),i("activeselection.fillcolor"),i("activeselection.opacity")}});var mM=K((fUr,Vxe)=>{"use strict";var SFt=Ho(),Oxe=St(),Nxe=Vf();Vxe.exports=function(t){return function(i,n){var a=i[t];if(Array.isArray(a))for(var o=SFt.subplotsRegistry.cartesian,s=o.idRegex,l=n._subplots,u=l.xaxis,f=l.yaxis,c=l.cartesian,h=n._has("cartesian"),d=0;d{"use strict";var Uxe=jj(),yM=mxe();Gxe.exports={moduleType:"component",name:"selections",layoutAttributes:aW(),supplyLayoutDefaults:Rxe(),supplyDrawNewSelectionDefaults:qxe(),includeBasePlot:mM()("selections"),draw:Uxe.draw,drawOne:Uxe.drawOne,reselect:yM.reselect,prepSelect:yM.prepSelect,clearOutline:yM.clearOutline,clearSelectionsCache:yM.clearSelectionsCache,selectOnClick:yM.selectOnClick}});var dW=K((hUr,lbe)=>{"use strict";var cW=No(),Gp=St(),Hxe=Gp.numberFormat,EFt=ML(),bP=Ho(),Jxe=Gp.strTranslate,kFt=Du(),sW=wo(),e2=Is(),CFt=Gf(),jxe=Cs(),DFt=Yv(),FFt=U0(),Qxe=Q1(),_P=Qxe.selectingOrDrawing,LFt=Qxe.freeMode,PFt=($c(),or(Wc)).FROM_TL,zFt=G6(),IFt=J6().redrawReglTraces,RFt=yf(),lW=Vf().getFromId,BFt=fh().prepSelect,qFt=fh().clearOutline,OFt=fh().selectOnClick,oW=Bj(),hW=(jc(),or(Hc)),Wxe=hW.MINDRAG,fd=hW.MINZOOM,$xe=!0;function NFt(e,t,r,i,n,a,o,s){var l=e._fullLayout._zoomlayer,u=o+s==="nsew",f=(o+s).length===1,c,h,d,p,v,y,m,w,_,b,M,x,T,A,g,E,S,C,k,D,F,P,I;r+=t.yaxis._shift;function L(){if(c=t.xaxis,h=t.yaxis,_=c._length,b=h._length,m=c._offset,w=h._offset,d={},d[c._id]=c,p={},p[h._id]=h,o&&s)for(var se=t.overlays,pe=0;pe=0){fe._fullLayout._deactivateShape(fe);return}var Re=fe._fullLayout.clickmode;if(fW(fe),se===2&&!f&&ye(),u)Re.indexOf("select")>-1&&OFt(pe,fe,v,y,t.id,O),Re.indexOf("event")>-1&&CFt.click(fe,pe,t.id);else if(se===1&&f){var We=o?h:c,Ke=o==="s"||s==="w"?0:1,tt=We._name+".range["+Ke+"]",at=VFt(We,Ke),Ge="left",ge="middle";if(We.fixedrange)return;o?(ge=o==="n"?"top":"bottom",We.side==="right"&&(Ge="right")):s==="e"&&(Ge="right"),fe._context.showAxisRangeEntryBoxes&&cW.select(B).call(kFt.makeEditable,{gd:fe,immediate:!0,background:fe._fullLayout.paper_bgcolor,text:String(at),fill:We.tickfont?We.tickfont.color:"#444",horizontalAlign:Ge,verticalAlign:ge}).on("edit",function(Be){var Ze=We.d2r(Be);Ze!==void 0&&bP.call("_guiRelayout",fe,tt,Ze)})}}FFt.init(O);var Z,H,q,Q,N,U,J,j,$,ie;function re(se,pe,fe){var Re=B.getBoundingClientRect();Z=pe-Re.left,H=fe-Re.top,e._fullLayout._calcInverseTransform(e);var We=Gp.apply3DTransform(e._fullLayout._invTransform)(Z,H);Z=We[0],H=We[1],q={l:Z,r:Z,w:0,t:H,b:H,h:0},Q=e._hmpixcount?e._hmlumcount/e._hmpixcount:sW.luminosity(e._fullLayout.plot_bgcolor),N="M0,0H"+_+"V"+b+"H0V0",U=!1,J="xy",ie=!1,j=rbe(l,Q,m,w,N),$=ibe(l,m,w)}function de(se,pe){if(e._transitioningWithDuration)return!1;var fe=Math.max(0,Math.min(_,P*se+Z)),Re=Math.max(0,Math.min(b,I*pe+H)),We=Math.abs(fe-Z),Ke=Math.abs(Re-H);q.l=Math.min(Z,fe),q.r=Math.max(Z,fe),q.t=Math.min(H,Re),q.b=Math.max(H,Re);function tt(){J="",q.r=q.l,q.t=q.b,$.attr("d","M0,0Z")}if(M.isSubplotConstrained)We>fd||Ke>fd?(J="xy",We/_>Ke/b?(Ke=We*b/_,H>Re?q.t=H-Ke:q.b=H+Ke):(We=Ke*_/b,Z>fe?q.l=Z-We:q.r=Z+We),$.attr("d",wP(q))):tt();else if(x.isSubplotConstrained)if(We>fd||Ke>fd){J="xy";var at=Math.min(q.l/_,(b-q.b)/b),Ge=Math.max(q.r/_,(b-q.t)/b);q.l=at*_,q.r=Ge*_,q.b=(1-at)*b,q.t=(1-Ge)*b,$.attr("d",wP(q))}else tt();else!A||Ke0){var Be;if(x.isSubplotConstrained||!T&&A.length===1){for(Be=0;Be1&&(tt.maxallowed!==void 0&&E===(tt.range[0]1&&(at.maxallowed!==void 0&&S===(at.range[0]=0?Math.min(e,.9):1/(1/Math.max(e,-.3)+3.222))}function GFt(e,t,r){return e?e==="nsew"?r?"":t==="pan"?"move":"crosshair":e.toLowerCase()+"-resize":"pointer"}function rbe(e,t,r,i,n){return e.append("path").attr("class","zoombox").style({fill:t>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("transform",Jxe(r,i)).attr("d",n+"Z")}function ibe(e,t,r){return e.append("path").attr("class","zoombox-corners").style({fill:sW.background,stroke:sW.defaultLine,"stroke-width":1,opacity:0}).attr("transform",Jxe(t,r)).attr("d","M0,0Z")}function nbe(e,t,r,i,n,a){e.attr("d",i+"M"+r.l+","+r.t+"v"+r.h+"h"+r.w+"v-"+r.h+"h-"+r.w+"Z"),abe(e,t,n,a)}function abe(e,t,r,i){r||(e.transition().style("fill",i>.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),t.transition().style("opacity",1).duration(200))}function fW(e){cW.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function obe(e){$xe&&e.data&&e._context.showTips&&(Gp.notifier(Gp._(e,"Double-click to zoom back out"),"long",e),$xe=!1)}function HFt(e,t){return"M"+(e.l-.5)+","+(t-fd-.5)+"h-3v"+(2*fd+1)+"h3ZM"+(e.r+.5)+","+(t-fd-.5)+"h3v"+(2*fd+1)+"h-3Z"}function jFt(e,t){return"M"+(t-fd-.5)+","+(e.t-.5)+"v-3h"+(2*fd+1)+"v3ZM"+(t-fd-.5)+","+(e.b+.5)+"v3h"+(2*fd+1)+"v-3Z"}function wP(e){var t=Math.floor(Math.min(e.b-e.t,e.r-e.l,fd)/2);return"M"+(e.l-3.5)+","+(e.t-.5+t)+"h3v"+-t+"h"+t+"v-3h-"+(t+3)+"ZM"+(e.r+3.5)+","+(e.t-.5+t)+"h-3v"+-t+"h"+-t+"v-3h"+(t+3)+"ZM"+(e.r+3.5)+","+(e.b+.5-t)+"h-3v"+t+"h"+-t+"v3h"+(t+3)+"ZM"+(e.l-3.5)+","+(e.b+.5-t)+"h3v"+t+"h"+t+"v3h-"+(t+3)+"Z"}function Zxe(e,t,r,i,n){for(var a=!1,o={},s={},l,u,f,c,h=(n||{}).xaHash,d=(n||{}).yaHash,p=0;p{"use strict";var WFt=No(),AP=Gf(),$Ft=U0(),YFt=Yv(),Zv=dW().makeDragBox,wh=(jc(),or(Hc)).DRAGGERSIZE;TP.initInteractions=function(t){var r=t._fullLayout;if(t._context.staticPlot){WFt.select(t).selectAll(".drag").remove();return}if(!(!r._has("cartesian")&&!r._has("splom"))){var i=Object.keys(r._plots||{}).sort(function(a,o){if((r._plots[a].mainplot&&!0)===(r._plots[o].mainplot&&!0)){var s=a.split("y"),l=o.split("y");return s[0]===l[0]?Number(s[1]||1)-Number(l[1]||1):Number(s[0]||1)-Number(l[0]||1)}return r._plots[a].mainplot?1:-1});i.forEach(function(a){var o=r._plots[a],s=o.xaxis,l=o.yaxis;if(!o.mainplot){var u=Zv(t,o,s._offset,l._offset,s._length,l._length,"ns","ew");u.onmousemove=function(h){t._fullLayout._rehover=function(){t._fullLayout._hoversubplot===a&&t._fullLayout._plots[a]&&AP.hover(t,h,a)},AP.hover(t,h,a),t._fullLayout._lasthover=u,t._fullLayout._hoversubplot=a},u.onmouseout=function(h){t._dragging||(t._fullLayout._hoversubplot=null,$Ft.unhover(t,h))},t._context.showAxisDragHandles&&(Zv(t,o,s._offset-wh,l._offset-wh,wh,wh,"n","w"),Zv(t,o,s._offset+s._length,l._offset-wh,wh,wh,"n","e"),Zv(t,o,s._offset-wh,l._offset+l._length,wh,wh,"s","w"),Zv(t,o,s._offset+s._length,l._offset+l._length,wh,wh,"s","e"))}if(t._context.showAxisDragHandles){if(a===s._mainSubplot){var f=s._mainLinePosition;s.side==="top"&&(f-=wh),Zv(t,o,s._offset+s._length*.1,f,s._length*.8,wh,"","ew"),Zv(t,o,s._offset,f,s._length*.1,wh,"","w"),Zv(t,o,s._offset+s._length*.9,f,s._length*.1,wh,"","e")}if(a===l._mainSubplot){var c=l._mainLinePosition;l.side!=="right"&&(c-=wh),Zv(t,o,c,l._offset+l._length*.1,wh,l._length*.8,"ns",""),Zv(t,o,c,l._offset+l._length*.9,wh,l._length*.1,"s",""),Zv(t,o,c,l._offset,wh,l._length*.1,"n","")}}});var n=r._hoverlayer.node();n.onmousemove=function(a){a.target=t._fullLayout._lasthover,AP.hover(t,a,r._hoversubplot)},n.onclick=function(a){a.target=t._fullLayout._lasthover,AP.click(t,a)},n.onmousedown=function(a){t._fullLayout._lasthover.onmousedown(a)},TP.updateFx(t)}};TP.updateFx=function(e){var t=e._fullLayout,r=t.dragmode==="pan"?"move":"crosshair";YFt(t._draggers,r)}});var cbe=K((pUr,fbe)=>{"use strict";var ube=Ho();fbe.exports=function(t){for(var r=ube.layoutArrayContainers,i=ube.layoutArrayRegexes,n=t.split("[")[0],a,o,s=0;s{"use strict";var XFt=_g(),vW=vF(),gM=ey(),ZFt=SF().sorterAsc,mW=Ho();xM.containerArrayMatch=cbe();var KFt=xM.isAddVal=function(t){return t==="add"||XFt(t)},hbe=xM.isRemoveVal=function(t){return t===null||t==="remove"};xM.applyContainerArrayChanges=function(t,r,i,n,a){var o=r.astr,s=mW.getComponentMethod(o,"supplyLayoutDefaults"),l=mW.getComponentMethod(o,"draw"),u=mW.getComponentMethod(o,"drawOne"),f=n.replot||n.recalc||s===vW||l===vW,c=t.layout,h=t._fullLayout;if(i[""]){Object.keys(i).length>1&&gM.warn("Full array edits are incompatible with other edits",o);var d=i[""][""];if(hbe(d))r.set(null);else if(Array.isArray(d))r.set(d);else return gM.warn("Unrecognized full array edit value",o,d),!0;return f?!1:(s(c,h),l(t),!0)}var p=Object.keys(i).map(Number).sort(ZFt),v=r.get(),y=v||[],m=a(h,o).get(),w=[],_=-1,b=y.length,M,x,T,A,g,E,S,C;for(M=0;My.length-(S?0:1)){gM.warn("index out of range",o,T);continue}if(E!==void 0)g.length>1&&gM.warn("Insertion & removal are incompatible with edits to the same index.",o,T),hbe(E)?w.push(T):S?(E==="add"&&(E={}),y.splice(T,0,E),m&&m.splice(T,0,{})):gM.warn("Unrecognized full object edit value",o,T,E),_===-1&&(_=T);else for(x=0;x=0;M--)y.splice(w[M],1),m&&m.splice(w[M],1);if(y.length?v||r.set(y):r.set(null),f)return!1;if(s(c,h),u!==vW){var k;if(_===-1)k=p;else{for(b=Math.max(y.length,b),k=[],M=0;M=_));M++)k.push(T);for(M=_;M{"use strict";var ybe=Hs(),gbe=Ho(),$0=St(),bM=yf(),xbe=Vf(),_M=xbe.cleanId,JFt=xbe.getFromTrace,yW=gbe.traceIs,QFt=["x","y","z"];Hp.clearPromiseQueue=function(e){Array.isArray(e._promises)&&e._promises.length>0&&$0.log("Clearing previous rejected promises from queue."),e._promises=[]};Hp.cleanLayout=function(e){var t,r;e||(e={}),e.xaxis1&&(e.xaxis||(e.xaxis=e.xaxis1),delete e.xaxis1),e.yaxis1&&(e.yaxis||(e.yaxis=e.yaxis1),delete e.yaxis1),e.scene1&&(e.scene||(e.scene=e.scene1),delete e.scene1);var i=(bM.subplotsRegistry.cartesian||{}).attrRegex,n=(bM.subplotsRegistry.polar||{}).attrRegex,a=(bM.subplotsRegistry.ternary||{}).attrRegex,o=(bM.subplotsRegistry.gl3d||{}).attrRegex,s=Object.keys(e);for(t=0;t3?(y.x=1.02,y.xanchor="left"):y.x<-2&&(y.x=-.02,y.xanchor="right"),y.y>3?(y.y=1.02,y.yanchor="bottom"):y.y<-2&&(y.y=-.02,y.yanchor="top")),e.dragmode==="rotate"&&(e.dragmode="orbit"),e.template&&e.template.layout&&Hp.cleanLayout(e.template.layout),e};function Jw(e,t,r=!1){var i=e[t],n=t.charAt(0);r&&Array.isArray(i)||i&&i!=="paper"&&(e[t]=_M(i,n,!0))}Hp.cleanData=function(e){for(var t=0;t0)return e.slice(0,t)}Hp.hasParent=function(e,t){for(var r=mbe(t);r;){if(r in e)return!0;r=mbe(r)}return!1};Hp.clearAxisTypes=function(e,t,r){for(var i=0;i{let r=(...i)=>i.every(n=>$0.isPlainObject(n))||i.every(n=>Array.isArray(n));if([e,t].every(i=>Array.isArray(i))){if(e.length!==t.length)return!1;for(let i=0;i$0.isPlainObject(i))){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(let i in e){if(i.startsWith("_"))continue;let n=e[i],a=t[i];if(n!==a&&!(r(n,a)?gW(n,a):!1))return!1}return!0}return!1};Hp.collectionsAreEqual=gW});var qP=K(su=>{"use strict";var CP=No(),rLt=Hs(),iLt=_G(),Ro=St(),xf=Ro.nestedProperty,bW=Aw(),cd=ppe(),jp=Ho(),RP=Sw(),ll=yf(),Y0=Cs(),nLt=UH(),aLt=Ph(),EP=Is(),oLt=wo(),sLt=pW().initInteractions,lLt=(Rp(),or(Ip)),uLt=fh().clearOutline,Mbe=Mg().dfltConfig,SP=dbe(),Lc=bbe(),Nu=J6(),t2=Ef(),fLt=(jc(),or(Hc)).AX_NAME_PATTERN,xW=0,_be=5;function cLt(e,t,r,i){var n;if(e=Ro.getGraphDiv(e),bW.init(e),Ro.isPlainObject(t)){var a=t;t=a.data,r=a.layout,i=a.config,n=a.frames}var o=bW.triggerHandler(e,"plotly_beforeplot",[t,r,i]);if(o===!1)return Promise.reject();!t&&!r&&!Ro.isPlotDiv(e)&&Ro.warn("Calling _doPlot as if redrawing but this container doesn't yet have a plot.",e);function s(){if(n)return su.addFrames(e,n)}Ebe(e,i),r||(r={}),CP.select(e).classed("js-plotly-plot",!0),EP.makeTester(),Array.isArray(e._promises)||(e._promises=[]);var l=(e.data||[]).length===0&&Array.isArray(t);Array.isArray(t)&&(Lc.cleanData(t),l?e.data=t:e.data.push.apply(e.data,t),e.empty=!1),(!e.layout||l)&&(e.layout=Lc.cleanLayout(r)),ll.supplyDefaults(e);var u=e._fullLayout,f=u._has("cartesian");u._replotting=!0,(l||u._shouldCreateBgLayer)&&(ILt(e),u._shouldCreateBgLayer&&delete u._shouldCreateBgLayer),EP.initGradients(e),EP.initPatterns(e),l&&Y0.saveShowSpikeInitial(e);var c=!e.calcdata||e.calcdata.length!==(e._fullData||[]).length;c&&ll.doCalcdata(e);for(var h=0;h{Ro.isHidden(e)||ll.resize(e)};if(e._context.fillFrame||typeof ResizeObserver=="undefined")window.addEventListener("resize",A),e._clearResponsive=()=>window.removeEventListener("resize",A);else{let g=e.offsetWidth,E=e.offsetHeight,S=new ResizeObserver(()=>{let C=e.offsetWidth,k=e.offsetHeight,D=Math.abs(C-g)>1||Math.abs(k-E)>1;g=C,E=k,D&&C&&k&&A()});S.observe(e),e._clearResponsive=()=>S.disconnect()}}}else Ro.clearResponsive(e);let d=document.fonts?[...document.fonts].filter(A=>A.status!=="loaded"):[];var p=Ro.extendFlat({},u._size),v=0;function y(){for(var A=u._basePlotModules,g=0;g["loaded","loading"].includes(n.status));if(!r.length)return;let i={};e._fontLoadToken=i,yield Promise.all(r.map(n=>n.loaded.catch(()=>{}))),e._fontLoadToken===i&&(delete e._fontLoadToken,EP.savedBBoxes={},su._doPlot(e))})}function AM(e){var t=e._fullLayout;t._redrawFromAutoMarginCount?t._redrawFromAutoMarginCount--:e.emit("plotly_afterplot")}function dLt(e){return Ro.extendFlat(Mbe,e)}function Sbe(e,t){try{e._fullLayout._paper.style("background",t)}catch(r){Ro.error(r)}}function pLt(e,t){var r=oLt.combine(t,"white");Sbe(e,r)}function Ebe(e,t){if(!e._context){e._context=Ro.extendDeep({},Mbe);var r=CP.select("base");e._context._baseUrl=r.size()&&r.attr("href")?window.location.href.split("#")[0]:""}var i=e._context,n,a,o;if(t){for(a=Object.keys(t),n=0;n=e.data.length||n<-e.data.length)throw new Error(r+" must be valid indices for gd.data.");if(t.indexOf(n,i+1)>-1||n>=0&&t.indexOf(-e.data.length+n)>-1||n<0&&t.indexOf(e.data.length+n)>-1)throw new Error("each index in "+r+" must be unique.")}}function kbe(e,t,r){if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(typeof t=="undefined")throw new Error("currentIndices is a required argument.");if(Array.isArray(t)||(t=[t]),FP(e,t,"currentIndices"),typeof r!="undefined"&&!Array.isArray(r)&&(r=[r]),typeof r!="undefined"&&FP(e,r,"newIndices"),typeof r!="undefined"&&t.length!==r.length)throw new Error("current and new indices must be of equal length.")}function yLt(e,t,r){var i,n;if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(typeof t=="undefined")throw new Error("traces must be defined.");for(Array.isArray(t)||(t=[t]),i=0;i=0&&f=0&&f0&&typeof A.parts[S]!="string";)S--;var C=A.parts[S],k=A.parts[S-1]+"."+C,D=A.parts.slice(0,S).join("."),F=xf(e.layout,D).get(),P=xf(i,D).get(),I=A.get();if(g!==void 0){m[T]=g,w[T]=C==="reverse"?g:vy(I);var L=RP.getLayoutValObject(i,A.parts);if(L&&L.impliedEdits&&g!==null)for(var z in L.impliedEdits)_(Ro.relativeAttr(T,z),L.impliedEdits[z]);if(["width","height"].indexOf(T)!==-1)if(g){_("autosize",null);var B=T==="height"?"width":"height";_(B,i[B])}else i[T]=e._initialAutoSize[T];else if(T==="autosize")_("width",g?null:i.width),_("height",g?null:i.height);else if(k.match(Bbe))x(k),xf(i,D+"._inputRange").set(null);else if(k.match(qbe)){x(k),xf(i,D+"._inputRange").set(null);var O=xf(i,D).get();O._inputDomain&&(O._input.domain=O._inputDomain.slice())}else k.match(_Lt)&&xf(i,D+"._inputDomain").set(null);if(C==="type"){M=F;var W=P.type==="linear"&&g==="log",X=P.type==="log"&&g==="linear";if(W||X){if(!M||!M.range)_(D+".autorange",!0);else if(P.autorange)W&&(M.range=M.range[1]>M.range[0]?[1,2]:[2,1]);else{var Z=M.range[0],H=M.range[1];W?(Z<=0&&H<=0&&_(D+".autorange",!0),Z<=0?Z=H/1e6:H<=0&&(H=Z/1e6),_(D+".range[0]",Math.log(Z)/Math.LN10),_(D+".range[1]",Math.log(H)/Math.LN10)):(_(D+".range[0]",Math.pow(10,Z)),_(D+".range[1]",Math.pow(10,H)))}Array.isArray(i._subplots.polar)&&i._subplots.polar.length&&i[A.parts[0]]&&A.parts[1]==="radialaxis"&&delete i[A.parts[0]]._subplot.viewInitial["radialaxis.range"],jp.getComponentMethod("annotations","convertCoords")(e,P,g,_),jp.getComponentMethod("images","convertCoords")(e,P,g,_)}else _(D+".autorange",!0),_(D+".range",null);xf(i,D+"._inputRange").set(null)}else if(C.match(fLt)){var q=xf(i,T).get(),Q=(g||{}).type;(!Q||Q==="-")&&(Q="linear"),jp.getComponentMethod("annotations","convertCoords")(e,q,Q,_),jp.getComponentMethod("images","convertCoords")(e,q,Q,_)}var N=SP.containerArrayMatch(T);if(N){f=N.array,c=N.index;var U=N.property,J=L||{editType:"calc"};c!==""&&U===""&&(SP.isAddVal(g)?w[T]=null:SP.isRemoveVal(g)?w[T]=(xf(r,f).get()||[])[c]:Ro.warn("unrecognized full object value",t)),t2.update(y,J),u[f]||(u[f]={});var j=u[f][c];j||(j=u[f][c]={}),j[U]=g,delete t[T]}else C==="reverse"?(F.range?F.range.reverse():(_(D+".autorange",!0),F.range=[1,0]),P.autorange?y.calc=!0:y.plot=!0):(T==="dragmode"&&(g===!1&&I!==!1||g!==!1&&I===!1)||i._has("scatter-like")&&i._has("regl")&&T==="dragmode"&&(g==="lasso"||g==="select")&&!(I==="lasso"||I==="select")?y.plot=!0:L?t2.update(y,L):y.calc=!0,A.set(g))}}for(f in u){var $=SP.applyContainerArrayChanges(e,a(r,f),u[f],y,a);$||(y.plot=!0)}for(var ie in b){M=Y0.getFromId(e,ie);var re=M&&M._constraintGroup;if(re){y.calc=!0;for(var de in re)b[de]||(Y0.getFromId(e,de)._constraintShrinkable=!0)}}(Nbe(e)||t.height||t.width)&&(y.plot=!0);var me=i.shapes;for(c=0;c1;)if(i.pop(),r=xf(t,i.join(".")+".uirevision").get(),r!==void 0)return r;return t.uirevision}function TLt(e,t){for(var r=0;r[D,e._ev.listeners(D)]);a=su.newPlot(e,t,r,i).then(()=>{for(let[D,F]of k)F.forEach(P=>e.on(D,P));return su.react(e,t,r,i)})}else{e.data=t||[],Lc.cleanData(e.data),e.layout=r||{},Lc.cleanLayout(e.layout),SLt(e.data,e.layout,s,l),ll.supplyDefaults(e,{skipUpdateCalc:!0});var c=e._fullData,h=e._fullLayout,d=h.datarevision===void 0,p=h.transition,v=CLt(e,l,h,d,p),y=v.newDataRevision,m=kLt(e,s,c,d,p,y);if(Nbe(e)&&(v.layoutReplot=!0),m.calc||v.calc){e.calcdata=void 0;for(var w=Object.getOwnPropertyNames(h),_=0;_(f||e.emit("plotly_react",{config:i,data:t,layout:r}),e))}function kLt(e,t,r,i,n,a){var o=t.length===r.length;if(!n&&!o)return{fullReplot:!0,calc:!0};var s=t2.traceFlags();s.arrays={},s.nChanges=0,s.nChangesAnim=0;var l,u;function f(d){var p=RP.getTraceValObject(u,d);return!u._module.animatable&&p.anim&&(p.anim=!1),p}var c={getValObject:f,flags:s,immutable:i,transition:n,newDataRevision:a,gd:e},h={};for(l=0;l=n.length?n[0]:n[u]:n}function s(u){return Array.isArray(a)?u>=a.length?a[0]:a[u]:a}function l(u,f){var c=0;return function(){if(u&&++c===f)return u()}}return new Promise(function(u,f){function c(){if(i._frameQueue.length!==0){for(;i._frameQueue.length;){var C=i._frameQueue.pop();C.onInterrupt&&C.onInterrupt()}e.emit("plotly_animationinterrupted",[])}}function h(C){if(C.length!==0){for(var k=0;ki._timeToNext&&p()};C()}var y=0;function m(C){return Array.isArray(n)?y>=n.length?C.transitionOpts=n[y]:C.transitionOpts=n[0]:C.transitionOpts=n,y++,C}var w,_,b=[],M=t==null,x=Array.isArray(t),T=!M&&!x&&Ro.isPlainObject(t);if(T)b.push({type:"object",data:m(Ro.extendFlat({},t))});else if(M||["string","number"].indexOf(typeof t)!==-1)for(w=0;w0&&EE)&&S.push(_);b=S}}b.length>0?h(b):(e.emit("plotly_animated"),u())})}function FLt(e,t,r){if(e=Ro.getGraphDiv(e),t==null)return Promise.resolve();if(!Ro.isPlotDiv(e))throw new Error("This element is not a Plotly plot: "+e+". It's likely that you've failed to create a plot before adding frames. For more details, see https://plotly.com/javascript/animations/");var i,n,a,o,s=e._transitionData._frames,l=e._transitionData._frameHash;if(!Array.isArray(t))throw new Error("addFrames failure: frameList must be an Array of frame definitions"+t);var u=s.length+t.length*2,f=[],c={};for(i=t.length-1;i>=0;i--)if(Ro.isPlainObject(t[i])){var h=t[i].name,d=(l[h]||c[h]||{}).name,p=t[i].name,v=l[d]||c[d];d&&p&&typeof p=="number"&&v&&xW<_be&&(xW++,Ro.warn('addFrames: overwriting frame "'+(l[d]||c[d]).name+'" with a frame whose name of type "number" also equates to "'+d+'". This is valid but may potentially lead to unexpected behavior since all plotly.js frame names are stored internally as strings.'),xW===_be&&Ro.warn("addFrames: This API call has yielded too many of these warnings. For the rest of this call, further warnings about numeric frame names will be suppressed.")),c[h]={name:h},f.push({frame:ll.supplyFrameDefaults(t[i]),index:r&&r[i]!==void 0&&r[i]!==null?r[i]:u+i})}f.sort(function(T,A){return T.index>A.index?-1:T.index=0;i--){if(n=f[i].frame,typeof n.name=="number"&&Ro.warn("Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings"),!n.name)for(;l[n.name="frame "+e._transitionData._counter++];);if(l[n.name]){for(a=0;a=0;r--)i=t[r],a.push({type:"delete",index:i}),o.unshift({type:"insert",index:i,value:n[i]});var s=ll.modifyFrames,l=ll.modifyFrames,u=[e,o],f=[e,a];return cd&&cd.add(e,s,u,l,f),ll.modifyFrames(e,a)}function PLt(e){e=Ro.getGraphDiv(e);var t=e._fullLayout||{},r=e._fullData||[];return ll.cleanPlot([],{},r,t),ll.purge(e),bW.purge(e),t._container&&t._container.remove(),delete e._context,e}function zLt(e){var t=e._fullLayout,r=e.getBoundingClientRect();if(!Ro.equalDomRects(r,t._lastBBox)){var i=t._invTransform=Ro.inverseTransformMatrix(Ro.getFullTransformMatrix(e));t._invScaleX=Math.sqrt(i[0][0]*i[0][0]+i[0][1]*i[0][1]+i[0][2]*i[0][2]),t._invScaleY=Math.sqrt(i[1][0]*i[1][0]+i[1][1]*i[1][1]+i[1][2]*i[1][2]),t._lastBBox=r}}function ILt(e){var t=CP.select(e),r=e._fullLayout;if(r._calcInverseTransform=zLt,r._calcInverseTransform(e),r._container=t.selectAll(".plot-container").data([0]),r._container.enter().insert("div",":first-child").classed("plot-container",!0).classed("plotly",!0).style({width:"100%",height:"100%"}),r._paperdiv=r._container.selectAll(".svg-container").data([0]),r._paperdiv.enter().append("div").classed("user-select-none",!0).classed("svg-container",!0).style("position","relative"),r._glcontainer=r._paperdiv.selectAll(".gl-container").data([{}]),r._glcontainer.enter().append("div").classed("gl-container",!0),r._paperdiv.selectAll(".main-svg").remove(),r._paperdiv.select(".modebar-container").remove(),r._paper=r._paperdiv.insert("svg",":first-child").classed("main-svg",!0),r._toppaper=r._paperdiv.append("svg").classed("main-svg",!0),r._modebardiv=r._paperdiv.append("div"),delete r._modeBar,r._hoverpaper=r._paperdiv.append("svg").classed("main-svg",!0),!r._uid){var i={};CP.selectAll("defs").each(function(){this.id&&(i[this.id.split("-")[1]]=1)}),r._uid=Ro.randstr(i)}r._paperdiv.selectAll(".main-svg").attr(lLt.svgAttrs),r._defs=r._paper.append("defs").attr("id","defs-"+r._uid),r._clips=r._defs.append("g").classed("clips",!0),r._topdefs=r._toppaper.append("defs").attr("id","topdefs-"+r._uid),r._topclips=r._topdefs.append("g").classed("clips",!0),r._bgLayer=r._paper.append("g").classed("bglayer",!0),r._draggers=r._paper.append("g").classed("draglayer",!0);var n=r._paper.append("g").classed("layer-below",!0);r._imageLowerLayer=n.append("g").classed("imagelayer",!0),r._shapeLowerLayer=n.append("g").classed("shapelayer",!0),r._cartesianlayer=r._paper.append("g").classed("cartesianlayer",!0),r._polarlayer=r._paper.append("g").classed("polarlayer",!0),r._smithlayer=r._paper.append("g").classed("smithlayer",!0),r._ternarylayer=r._paper.append("g").classed("ternarylayer",!0),r._geolayer=r._paper.append("g").classed("geolayer",!0),r._funnelarealayer=r._paper.append("g").classed("funnelarealayer",!0),r._pielayer=r._paper.append("g").classed("pielayer",!0),r._iciclelayer=r._paper.append("g").classed("iciclelayer",!0),r._treemaplayer=r._paper.append("g").classed("treemaplayer",!0),r._sunburstlayer=r._paper.append("g").classed("sunburstlayer",!0),r._indicatorlayer=r._toppaper.append("g").classed("indicatorlayer",!0),r._glimages=r._paper.append("g").classed("glimages",!0);var a=r._toppaper.append("g").classed("layer-above",!0);r._imageUpperLayer=a.append("g").classed("imagelayer",!0),r._shapeUpperLayer=a.append("g").classed("shapelayer",!0),r._selectionLayer=r._toppaper.append("g").classed("selectionlayer",!0),r._infolayer=r._toppaper.append("g").classed("infolayer",!0),r._menulayer=r._toppaper.append("g").classed("menulayer",!0),r._zoomlayer=r._toppaper.append("g").classed("zoomlayer",!0),r._hoverlayer=r._hoverpaper.append("g").classed("hoverlayer",!0),r._modebardiv.classed("modebar-container",!0).style("position","absolute").style("top","0px").style("right","0px"),e.emit("plotly_framework")}su.animate=DLt;su.addFrames=FLt;su.deleteFrames=LLt;su.addTraces=Pbe;su.deleteTraces=zbe;su.extendTraces=Fbe;su.moveTraces=_W;su.prependTraces=Lbe;su.newPlot=mLt;su._doPlot=cLt;su.purge=PLt;su.react=ELt;su.redraw=vLt;su.relayout=wM;su.restyle=LP;su.setPlotConfig=dLt;su.update=zP;su._guiRelayout=wW(wM);su._guiRestyle=wW(LP);su._guiUpdate=wW(zP);su._storeDirectGUIEdit=bLt});var my=K(Wp=>{"use strict";var RLt=Ho();Wp.getDelay=function(e){return e._has&&(e._has("gl3d")||e._has("map"))?500:0};Wp.getRedrawFunc=function(e){return function(){RLt.getComponentMethod("colorbar","draw")(e)}};Wp.encodeSVG=function(e){return"data:image/svg+xml,"+encodeURIComponent(e)};Wp.encodeJSON=function(e){return"data:application/json,"+encodeURIComponent(e)};var Vbe=window.URL||window.webkitURL;Wp.createObjectURL=function(e){return Vbe.createObjectURL(e)};Wp.revokeObjectURL=function(e){return Vbe.revokeObjectURL(e)};Wp.createBlob=function(e,t){if(t==="svg")return new window.Blob([e],{type:"image/svg+xml;charset=utf-8"});if(t==="full-json")return new window.Blob([e],{type:"application/json;charset=utf-8"});var r=BLt(window.atob(e));return new window.Blob([r],{type:"image/"+t})};Wp.octetStream=function(e){document.location.href="data:application/octet-stream"+e};Wp.getPlotTitle=function(e){var i,n,a,o;var t=e._fullLayout;if(t){var r=(i=t.title)==null?void 0:i.text;return r===((n=t._dfltTitle)==null?void 0:n.plot)?void 0:r}return(o=(a=e.layout)==null?void 0:a.title)==null?void 0:o.text};Wp.getPlotSubtitle=function(e){var i,n,a,o,s,l;var t=e._fullLayout;if(t){var r=(n=(i=t.title)==null?void 0:i.subtitle)==null?void 0:n.text;return r===((a=t._dfltTitle)==null?void 0:a.subtitle)?void 0:r}return(l=(s=(o=e.layout)==null?void 0:o.title)==null?void 0:s.subtitle)==null?void 0:l.text};function BLt(e){for(var t=e.length,r=new ArrayBuffer(t),i=new Uint8Array(r),n=0;n{"use strict";var TW=No(),bUr=St(),qLt=Is(),OLt=wo(),_Ur=(Rp(),or(Ip)),AW=/"/g,Db="TOBESTRIPPED",NLt=new RegExp(`("${Db})|(${Db}")|("${Db})|(${Db}")`,"g"),VLt=["&","&","&",""",""",""","'","'","'"],ULt=["<","<","<"],GLt=[">",">",">"];function HLt(e){let t=TW.select("body").append("div").style({display:"none"}).html(""),r=e.replace(/(&[^;]*;)/gi,i=>{let n=i.toLowerCase();return VLt.includes(n)?i:ULt.includes(n)?"<":GLt.includes(n)?">":i.includes("<")||i.includes(">")?"":t.html(i).text()});return t.remove(),r}function jLt(e){return e.replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&")}Ube.exports=function(t,r,i){var n=t._fullLayout,a=n._paper,o=n._toppaper,s=n.width,l=n.height,u;a.insert("rect",":first-child").call(qLt.setRect,0,0,s,l).call(OLt.fill,n.paper_bgcolor);var f=n._basePlotModules||[];for(u=0;u{"use strict";var WLt=St(),$Lt=nb().EventEmitter,TM=my();function YLt(e){var t=e.emitter||new $Lt,r=new Promise(function(i,n){var a=window.Image,o=e.svg,s=e.format||"png",l=e.canvas,u=e.scale||1,f=e.width||300,c=e.height||150,h=u*f,d=u*c,p=l.getContext("2d",{willReadFrequently:!0}),v=new a,y,m;s==="svg"||WLt.isSafari()?m=TM.encodeSVG(o):(y=TM.createBlob(o,"svg"),m=TM.createObjectURL(y)),l.width=h,l.height=d,v.onload=function(){var w;switch(y=null,TM.revokeObjectURL(m),s!=="svg"&&p.drawImage(v,0,0,h,d),s){case"jpeg":w=l.toDataURL("image/jpeg");break;case"png":w=l.toDataURL("image/png");break;case"webp":w=l.toDataURL("image/webp");break;case"svg":w=m;break;default:var _="Image format is not jpeg, png, svg or webp.";if(n(new Error(_)),!e.promise)return t.emit("error",_)}i(w),e.promise||t.emit("success",w)},v.onerror=function(w){if(y=null,TM.revokeObjectURL(m),n(w),!e.promise)return t.emit("error",w)},v.src=m});return e.promise?r:t}Gbe.exports=YLt});var SW=K((TUr,Wbe)=>{"use strict";var Hbe=Hs(),jbe=qP(),XLt=yf(),lm=St(),MM=my(),ZLt=OP(),KLt=NP(),JLt=NT().version,MW=(NU(),or(OU)).default;function QLt(e,t){t=t||{};var r,i,n,a;lm.isPlainObject(e)?(r=e.data||[],i=e.layout||{},n=e.config||{},a={}):(e=lm.getGraphDiv(e),r=lm.extendDeep([],e.data),i=lm.extendDeep({},e.layout),n=e._context,a=e._fullLayout||{});function o(x){return!(x in t)||lm.validate(t[x],MW[x])}if(!o("width")&&t.width!==null||!o("height")&&t.height!==null)throw new Error("Height and width should be pixel values.");if(!o("format"))throw new Error("Export format is not "+lm.join2(MW.format.values,", "," or ")+".");var s={};function l(x,T){return lm.coerce(t,s,MW,x,T)}var u=l("format"),f=l("width"),c=l("height"),h=l("scale"),d=l("setBackground"),p=l("imageDataOnly"),v=document.createElement("div");v.style.position="absolute",v.style.left="-5000px",document.body.appendChild(v);var y=lm.extendFlat({},i);f?y.width=f:t.width===null&&Hbe(a.width)&&(y.width=a.width),c?y.height=c:t.height===null&&Hbe(a.height)&&(y.height=a.height);var m=lm.extendFlat({},n,{_exportedPlot:!0,staticPlot:!0,setBackground:d}),w=MM.getRedrawFunc(v);function _(){return new Promise(function(x){setTimeout(x,MM.getDelay(v._fullLayout))})}function b(){return new Promise(function(x,T){var A=ZLt(v,u,h),g=v._fullLayout.width,E=v._fullLayout.height;function S(){jbe.purge(v),document.body.removeChild(v)}if(u==="full-json"){var C=XLt.graphJson(v,!1,"object",!0,!0);return C.version=JLt,C=JSON.stringify(C),S(),x(p?C:MM.encodeJSON(C))}if(S(),u==="svg")return x(p?A:MM.encodeSVG(A));var k=document.createElement("canvas");k.id=lm.randstr(),KLt({format:u,width:g,height:E,scale:h,canvas:k,svg:A,promise:!0}).then(x).catch(T)})}function M(x){return p?x.replace(MM.IMAGE_URL_PREFIX,""):x}return new Promise(function(x,T){jbe.newPlot(v,r,y,m).then(w).then(_).then(b).then(function(A){x(M(A))}).catch(function(A){T(A)})})}Wbe.exports=QLt});var Xbe=K((MUr,Ybe)=>{"use strict";var $p=St(),ePt=yf(),tPt=Sw(),rPt=Mg().dfltConfig,Kv=$p.isPlainObject,Lb=Array.isArray,EW=$p.isArrayOrTypedArray;Ybe.exports=function(t,r){t===void 0&&(t=[]),r===void 0&&(r={});var i=tPt.get(),n=[],a={_context:$p.extendFlat({},rPt)},o,s;Lb(t)?(a.data=$p.extendDeep([],t),o=t):(a.data=[],o=[],n.push(Ah("array","data"))),Kv(r)?(a.layout=$p.extendDeep({},r),s=r):(a.layout={},s={},arguments.length>1&&n.push(Ah("object","layout"))),ePt.supplyDefaults(a);for(var l=a._fullData,u=o.length,f=0;fc.length&&i.push(Ah("unused",n,u.concat(c.length)));var m=c.length,w=Array.isArray(y);w&&(m=Math.min(m,y.length));var _,b,M,x,T;if(h.dimensions===2)for(b=0;bc[b].length&&i.push(Ah("unused",n,u.concat(b,c[b].length)));var A=c[b].length;for(_=0;_<(w?Math.min(A,y[b].length):A);_++)M=w?y[b][_]:y,x=f[b][_],T=c[b][_],$p.validate(x,M)?T!==x&&T!==+x&&i.push(Ah("dynamic",n,u.concat(b,_),x,T)):i.push(Ah("value",n,u.concat(b,_),x))}else i.push(Ah("array",n,u.concat(b),f[b]));else for(b=0;b{"use strict";var uPt=St(),UP=my();function fPt(e,t,r){var i=document.createElement("a"),n="download"in i,a=new Promise(function(o,s){var l,u;if(n)return l=UP.createBlob(e,r),u=UP.createObjectURL(l),i.href=u,i.download=t,document.body.appendChild(i),i.click(),document.body.removeChild(i),UP.revokeObjectURL(u),l=null,o(t);if(uPt.isSafari()){var f=r==="svg"?",":";base64,";return UP.octetStream(f+encodeURIComponent(e)),o(t)}s(new Error("download error"))});return a}Zbe.exports=fPt});var kW=K((EUr,t_e)=>{"use strict";var GP=St(),Jbe=Du(),cPt=SW(),hPt=Kbe(),Qbe=my(),e_e=40;function dPt(e,t){var r;return GP.isPlainObject(e)||(r=GP.getGraphDiv(e)),t=t||{},t.format=t.format||"png",t.width=t.width||null,t.height=t.height||null,t.imageDataOnly=!0,new Promise(function(i,n){r&&r._snapshotInProgress&&n(new Error("Image capture already in progress.")),r&&(r._snapshotInProgress=!0);var a=cPt(e,t),o=t.filename||e.fn;if(!o){let l=Qbe.getPlotTitle(e);if(l&&!Jbe.matchTex(l))o=GP.slugify(l,e_e);else{let u=Qbe.getPlotSubtitle(e);u&&!Jbe.matchTex(u)&&(o=GP.slugify(u,e_e))}}var s=o||"plot-image";s+="."+t.format.replace("-","."),a.then(function(l){return r&&(r._snapshotInProgress=!1),hPt(l,s,t.format)}).then(function(l){i(l)}).catch(function(l){r&&(r._snapshotInProgress=!1),n(l)})})}t_e.exports=dPt});var o_e=K(CW=>{"use strict";var Ld=St(),Pd=Ld.isPlainObject,r_e=Sw(),i_e=yf(),pPt=Tu(),n_e=cu(),a_e=Mg().dfltConfig;CW.makeTemplate=function(e){e=Ld.isPlainObject(e)?e:Ld.getGraphDiv(e),e=Ld.extendDeep({_context:a_e},{data:e.data,layout:e.layout}),i_e.supplyDefaults(e);var t=e.data||[],r=e.layout||{};r._basePlotModules=e._fullLayout._basePlotModules,r._modules=e._fullLayout._modules;var i={data:{},layout:{}};t.forEach(function(d){var p={};SM(d,p,mPt.bind(null,d));var v=Ld.coerce(d,{},pPt,"type"),y=i.data[v];y||(y=i.data[v]=[]),y.push(p)}),SM(r,i.layout,vPt.bind(null,r)),delete i.layout.template;var n=r.template;if(Pd(n)){var a=n.layout,o,s,l,u,f,c;Pd(a)&&HP(a,i.layout);var h=n.data;if(Pd(h)){for(s in i.data)if(l=h[s],Array.isArray(l)){for(f=i.data[s],c=f.length,u=l.length,o=0;om?o.push({code:"unused",traceType:d,templateCount:y,dataCount:m}):m>y&&o.push({code:"reused",traceType:d,templateCount:y,dataCount:m})}}function w(_,b){for(var M in _)if(M.charAt(0)!=="_"){var x=_[M],T=Yp(_,M,b);Pd(x)?(Array.isArray(_)&&x._template===!1&&x.templateitemname&&o.push({code:"missing",path:T,templateitemname:x.templateitemname}),w(x,T)):Array.isArray(x)&&yPt(x)&&w(x,T)}}if(w({data:l,layout:s},""),o.length)return o.map(gPt)};function yPt(e){for(var t=0;t{"use strict";var ch=qP();Bf._doPlot=ch._doPlot;Bf.newPlot=ch.newPlot;Bf.restyle=ch.restyle;Bf.relayout=ch.relayout;Bf.redraw=ch.redraw;Bf.update=ch.update;Bf._guiRestyle=ch._guiRestyle;Bf._guiRelayout=ch._guiRelayout;Bf._guiUpdate=ch._guiUpdate;Bf._storeDirectGUIEdit=ch._storeDirectGUIEdit;Bf.react=ch.react;Bf.extendTraces=ch.extendTraces;Bf.prependTraces=ch.prependTraces;Bf.addTraces=ch.addTraces;Bf.deleteTraces=ch.deleteTraces;Bf.moveTraces=ch.moveTraces;Bf.purge=ch.purge;Bf.addFrames=ch.addFrames;Bf.deleteFrames=ch.deleteFrames;Bf.animate=ch.animate;Bf.setPlotConfig=ch.setPlotConfig;var xPt=h6().getGraphDiv,bPt=rP().eraseActiveShape;Bf.deleteActiveShape=function(e){return bPt(xPt(e))};Bf.toImage=SW();Bf.validate=Xbe();Bf.downloadImage=kW();var s_e=o_e();Bf.makeTemplate=s_e.makeTemplate;Bf.validateTemplate=s_e.validateTemplate});var Pb=K((DUr,u_e)=>{"use strict";var DW=St(),_Pt=Ho();u_e.exports=function(t,r,i,n){var a=n("x"),o=n("y"),s,l=_Pt.getComponentMethod("calendars","handleTraceDefaults");if(l(t,r,["x","y"],i),a){var u=DW.minRowLength(a);o?s=Math.min(u,DW.minRowLength(o)):(s=u,n("y0"),n("dy"))}else{if(!o)return 0;s=DW.minRowLength(o),n("x0"),n("dx")}return r._length=s,s}});var Jv=K((FUr,h_e)=>{"use strict";var f_e=St().dateTick0,wPt=(Il(),or(Bl)),APt=wPt.ONEWEEK;function c_e(e,t){return e%APt===0?f_e(t,1):f_e(t,0)}h_e.exports=function(t,r,i,n,a){if(a||(a={x:!0,y:!0}),a.x){var o=n("xperiod");o&&(n("xperiod0",c_e(o,r.xcalendar)),n("xperiodalignment"))}if(a.y){var s=n("yperiod");s&&(n("yperiod0",c_e(s,r.ycalendar)),n("yperiodalignment"))}}});var v_e=K((LUr,p_e)=>{"use strict";var d_e=["orientation","groupnorm","stackgaps"];p_e.exports=function(t,r,i,n){var a=i._scatterStackOpts,o=n("stackgroup");if(o){var s=r.xaxis+r.yaxis,l=a[s];l||(l=a[s]={});var u=l[o],f=!1;u?u.traces.push(r):(u=l[o]={traceIndices:[],traces:[r]},f=!0);for(var c={orientation:r.x&&!r.y?"h":"v"},h=0;h{"use strict";var m_e=wo(),y_e=Kh().hasColorscale,g_e=xh(),TPt=ff();x_e.exports=function(t,r,i,n,a,o={}){var s=TPt.isBubble(t),l=(t.line||{}).color,u;if(l&&(i=l),a("marker.symbol"),a("marker.opacity",s?.7:1),a("marker.size"),o.noAngle||(a("marker.angle"),o.noAngleRef||a("marker.angleref"),o.noStandOff||a("marker.standoff")),a("marker.color",i),y_e(t,"marker")&&g_e(t,r,n,a,{prefix:"marker.",cLetter:"c"}),o.noSelect||(a("selected.marker.color"),a("unselected.marker.color"),a("selected.marker.size"),a("unselected.marker.size")),o.noLine||(l&&!Array.isArray(l)&&r.marker.color!==l?u=l:s?u=m_e.background:u=m_e.defaultLine,a("marker.line.color",u),y_e(t,"marker.line")&&g_e(t,r,n,a,{prefix:"marker.line.",cLetter:"c"}),a("marker.line.width",s?1:0),o.noLineDash||a("marker.line.dash")),s&&(a("marker.sizeref"),a("marker.sizemin"),a("marker.sizemode")),o.gradient){var f=a("marker.gradient.type");f!=="none"&&a("marker.gradient.color")}}});var Qv=K((zUr,b_e)=>{"use strict";var MPt=St().isArrayOrTypedArray,SPt=Kh().hasColorscale,EPt=xh();b_e.exports=function(t,r,i,n,a,o){o||(o={});var s=(t.marker||{}).color;if(s&&s._inputArray&&(s=s._inputArray),a("line.color",i),SPt(t,"line"))EPt(t,r,n,a,{prefix:"line.",cLetter:"c"});else{var l=(MPt(s)?!1:s)||i;a("line.color",l)}a("line.width"),o.noDash||a("line.dash"),o.backoff&&a("line.backoff")}});var Qw=K((IUr,__e)=>{"use strict";__e.exports=function(t,r,i){var n=i("line.shape");n==="spline"&&i("line.smoothing")}});var e1=K((RUr,w_e)=>{"use strict";var kPt=St();w_e.exports=function(e,t,r,i,n){n=n||{},i("textposition"),kPt.coerceFont(i,"textfont",n.font||r.font,n),n.noSelect||(i("selected.textfont.color"),i("unselected.textfont.color"))}});var um=K((BUr,T_e)=>{"use strict";var WP=wo(),A_e=St().isArrayOrTypedArray;function CPt(e){for(var t=WP.interpolate(e[0][1],e[1][1],.5),r=2;r{"use strict";var M_e=St(),DPt=Ho(),FPt=Qf(),LPt=(om(),or(am)),eA=ff(),PPt=Pb(),zPt=Jv(),IPt=v_e(),RPt=Xp(),BPt=Qv(),S_e=Qw(),qPt=e1(),OPt=um(),NPt=St().coercePattern;E_e.exports=function(t,r,i,n){function a(d,p){return M_e.coerce(t,r,FPt,d,p)}var o=PPt(t,r,n,a);if(o||(r.visible=!1),!!r.visible){zPt(t,r,n,a),a("xhoverformat"),a("yhoverformat"),a("zorder");var s=IPt(t,r,n,a);n.scattermode==="group"&&r.orientation===void 0&&a("orientation","v");var l=!s&&o{"use strict";var VPt=Cb().getAxisGroup;C_e.exports=function(t,r,i,n,a){var o=r.orientation,s=r[{v:"x",h:"y"}[o]+"axis"],l=VPt(i,s)+o,u=i._alignmentOpts||{},f=n("alignmentgroup"),c=u[l];c||(c=u[l]={});var h=c[f];h?h.traces.push(r):h=c[f]={traces:[r],alignmentIndex:Object.keys(c).length,offsetGroups:{}};var d=n("offsetgroup")||"",p=h.offsetGroups,v=p[d];r._offsetIndex=0,(a!=="group"||d)&&(v||(v=p[d]={offsetIndex:Object.keys(p).length}),r._offsetIndex=v.offsetIndex)}});var FW=K((NUr,D_e)=>{"use strict";var UPt=St(),GPt=zb(),HPt=Qf();D_e.exports=function(t,r){var i,n,a,o=r.scattermode;function s(h){return UPt.coerce(n._input,n,HPt,h)}if(r.scattermode==="group")for(a=0;a=0;f--){var c=t[f];if(c.type==="scatter"&&c.xaxis===l.xaxis&&c.yaxis===l.yaxis){c.opacity=void 0;break}}}}}});var L_e=K((VUr,F_e)=>{"use strict";var jPt=St(),WPt=VF();F_e.exports=function(e,t){function r(n,a){return jPt.coerce(e,t,WPt,n,a)}var i=t.barmode==="group";t.scattermode==="group"&&r("scattergap",i?t.bargap:.2)}});var t1=K((UUr,z_e)=>{"use strict";var $Pt=Hs(),P_e=St(),YPt=P_e.dateTime2ms,$P=P_e.incrementMonth,XPt=(Il(),or(Bl)),ZPt=XPt.ONEAVGMONTH;z_e.exports=function(t,r,i,n){if(r.type!=="date")return{vals:n};var a=t[i+"periodalignment"];if(!a)return{vals:n};var o=t[i+"period"],s;if($Pt(o)){if(o=+o,o<=0)return{vals:n}}else if(typeof o=="string"&&o.charAt(0)==="M"){var l=+o.substring(1);if(l>0&&Math.round(l)===l)s=l;else return{vals:n}}for(var u=r.calendar,f=a==="start",c=a==="end",h=t[i+"period0"],d=YPt(h,u)||0,p=[],v=[],y=[],m=n.length,w=0;w_;)x=$P(x,-s,u);for(;x<=_;)x=$P(x,s,u);M=$P(x,-s,u)}else{for(b=Math.round((_-d)/o),x=d+b*o;x>_;)x-=o;for(;x<=_;)x+=o;M=x-o}p[w]=f?M:c?x:(M+x)/2,v[w]=M,y[w]=x}return{vals:p,starts:v,ends:y}}});var Zp=K((GUr,R_e)=>{"use strict";var LW=Kh().hasColorscale,PW=T0(),I_e=ff();R_e.exports=function(t,r){I_e.hasLines(r)&&LW(r,"line")&&PW(t,r,{vals:r.line.color,containerStr:"line",cLetter:"c"}),I_e.hasMarkers(r)&&(LW(r,"marker")&&PW(t,r,{vals:r.marker.color,containerStr:"marker",cLetter:"c"}),LW(r,"marker.line")&&PW(t,r,{vals:r.marker.line.color,containerStr:"marker.line",cLetter:"c"}))}});var fm=K((HUr,B_e)=>{"use strict";var uc=St();B_e.exports=function(t,r){for(var i=0;i{"use strict";var q_e=St();O_e.exports=function(t,r){q_e.isArrayOrTypedArray(r.selectedpoints)&&q_e.tagSelected(t,r)}});var Kp=K((WUr,W_e)=>{"use strict";var N_e=Hs(),IW=St(),EM=Cs(),V_e=t1(),zW=(Il(),or(Bl)).BADNUM,RW=ff(),KPt=Zp(),JPt=fm(),QPt=op();function e9t(e,t){var r=e._fullLayout,i=t._xA=EM.getFromId(e,t.xaxis||"x","x"),n=t._yA=EM.getFromId(e,t.yaxis||"y","y"),a=i.makeCalcdata(t,"x"),o=n.makeCalcdata(t,"y"),s=V_e(t,i,"x",a),l=V_e(t,n,"y",o),u=s.vals,f=l.vals,c=t._length,h=new Array(c),d=t.ids,p=BW(t,r,i,n),v=!1,y,m,w,_,b,M;H_e(r,t);var x="x",T="y",A;if(p)IW.pushUnique(p.traceIndices,t.index),y=p.orientation==="v",y?(T="s",A="x"):(x="s",A="y"),b=p.stackgaps==="interpolate";else{var g=G_e(t,c);U_e(e,t,i,n,u,f,g)}var E=!!t.xperiodalignment,S=!!t.yperiodalignment;for(m=0;mm&&h[_].gap;)_--;for(M=h[_].s,w=h.length-1;w>_;w--)h[w].s=M;for(;m<_;)if(m++,h[m].gap){for(w=m+1;h[w].gap;)w++;for(var F=h[m-1][A],P=h[m-1].s,I=(h[w].s-P)/(h[w][A]-F);m{"use strict";$_e.exports=YP;var t9t=St().distinctVals;function YP(e,t){this.traces=e,this.sepNegVal=t.sepNegVal,this.overlapNoMerge=t.overlapNoMerge;for(var r=1/0,i=t.posAxis._id.charAt(0),n=[],a=0;ar9t,eventDataKeys:()=>i9t});var r9t,i9t,i2=ps(()=>{"use strict";r9t=3,i9t=["value","label"]});var Ib=K((YUr,J_e)=>{"use strict";var Jp=Hs(),{isArrayOrTypedArray:yy}=St(),{BADNUM:tA}=(Il(),or(Bl)),n9t=Ho(),kM=Cs(),{getAxisGroup:a9t}=Cb(),XP=Y_e(),{TEXTPAD:o9t}=(i2(),or(r2)),{LINE_SPACING:s9t}=($c(),or(Wc)),{BR_TAG_ALL:l9t}=Du();function u9t(e,t){for(var r=t.xaxis,i=t.yaxis,n=e._fullLayout,a=e._fullData,o=e.calcdata,s=[],l=[],u=0;ul+o||!Jp(s))}for(var f=0;fi(a))):i(e.text);let n=e.outsidetextfont.size*s9t*r+o9t;return{ppadplus:t.some(a=>a.s<0)?n:0,ppadminus:t.some(a=>a.s>=0)?n:0}}return{ppadplus:void 0,ppadminus:void 0}}function x9t(e,t,r,i){for(var n=rA(i),a=0;a{"use strict";var Q_e=Kp(),e3e=Ib().setGroupPositions;function _9t(e,t){for(var r=t.xaxis,i=t.yaxis,n=e._fullLayout,a=e._fullData,o=e.calcdata,s=[],l=[],u=0;ug[f]&&f{"use strict";var A9t=Is(),o3e=(Il(),or(Bl)),CM=o3e.BADNUM,s3e=o3e.LOG_CLIP,i3e=s3e+.5,n3e=s3e-.5,ZP=St(),T9t=ZP.segmentsIntersect,a3e=ZP.constrain,HW=(om(),or(am));l3e.exports=function(t,r){var i=r.trace||{},n=r.xaxis,a=r.yaxis,o=n.type==="log",s=a.type==="log",l=n._length,u=a._length,f=r.backoff,c=i.marker,h=r.connectGaps,d=r.baseTolerance,p=r.shape,v=p==="linear",y=i.fill&&i.fill!=="none",m=[],w=HW.minTolerance,_=t.length,b=new Array(_),M=0,x,T,A,g,E,S,C,k,D,F,P,I,L,z,B,O;function W(ge){var Be=t[ge];if(!Be)return!1;var Ze=r.linearized?n.l2p(Be.x):n.c2p(Be.x),Le=r.linearized?a.l2p(Be.y):a.c2p(Be.y);if(Ze===CM){if(o&&(Ze=n.c2p(Be.x,!0)),Ze===CM)return!1;s&&Le===CM&&(Ze*=Math.abs(n._m*u*(n._m>0?i3e:n3e)/(a._m*l*(a._m>0?i3e:n3e)))),Ze*=1e3}if(Le===CM){if(s&&(Le=a.c2p(Be.y,!0)),Le===CM)return!1;Le*=1e3}return[Ze,Le]}function X(ge,Be,Ze,Le){var De=Ze-ge,Ue=Le-Be,Pe=.5-ge,Se=.5-Be,Ie=De*De+Ue*Ue,ot=De*Pe+Ue*Se;if(ot>0&&ot1||Math.abs(Pe.y-Ze[0][1])>1)&&(Pe=[Pe.x,Pe.y],Le&&Q(Pe,ge)J||ge[1]$)return[a3e(ge[0],U,J),a3e(ge[1],j,$)]}function we(ge,Be){if(ge[0]===Be[0]&&(ge[0]===U||ge[0]===J)||ge[1]===Be[1]&&(ge[1]===j||ge[1]===$))return!0}function oe(ge,Be){var Ze=[],Le=Ee(ge),De=Ee(Be);return Le&&De&&we(Le,De)||(Le&&Ze.push(Le),De&&Ze.push(De)),Ze}function Y(ge,Be,Ze){return function(Le,De){var Ue=Ee(Le),Pe=Ee(De),Se=[];if(Ue&&Pe&&we(Ue,Pe))return Se;Ue&&Se.push(Ue),Pe&&Se.push(Pe);var Ie=2*ZP.constrain((Le[ge]+De[ge])/2,Be,Ze)-((Ue||Le)[ge]+(Pe||De)[ge]);if(Ie){var ot;Ue&&Pe?ot=Ie>0==Ue[ge]>Pe[ge]?Ue:Pe:ot=Ue||Pe,ot[ge]+=Ie}return Se}}var ne;p==="linear"||p==="spline"?ne=te:p==="hv"||p==="vh"?ne=oe:p==="hvh"?ne=Y(0,U,J):p==="vhv"&&(ne=Y(1,j,$));function ye(ge,Be){var Ze=Be[0]-ge[0],Le=(Be[1]-ge[1])/Ze,De=(ge[1]*Be[0]-Be[1]*ge[0])/Ze;return De>0?[Le>0?U:J,$]:[Le>0?J:U,j]}function V(ge){var Be=ge[0],Ze=ge[1],Le=Be===b[M-1][0],De=Ze===b[M-1][1];if(!(Le&&De))if(M>1){var Ue=Be===b[M-2][0],Pe=Ze===b[M-2][1];Le&&(Be===U||Be===J)&&Ue?Pe?M--:b[M-1]=ge:De&&(Ze===j||Ze===$)&&Pe?Ue?M--:b[M-1]=ge:b[M++]=ge}else b[M++]=ge}function ue(ge){b[M-1][0]!==ge[0]&&b[M-1][1]!==ge[1]&&V([me,ze]),V(ge),ke=null,me=ze=0}var _e=ZP.isArrayOrTypedArray(c);function xe(ge){if(ge&&f&&(ge.i=x,ge.d=t,ge.trace=i,ge.marker=_e?c[ge.i]:c,ge.backoff=f),Z=ge[0]/l,H=ge[1]/u,re=ge[0]J?J:0,de=ge[1]$?$:0,re||de){if(!M)b[M++]=[re||ge[0],de||ge[1]];else if(ke){var Be=ne(ke,ge);Be.length>1&&(ue(Be[0]),b[M++]=Be[1])}else le=ne(b[M-1],ge)[0],b[M++]=le;var Ze=b[M-1];re&&de&&(Ze[0]!==re||Ze[1]!==de)?(ke&&(me!==re&&ze!==de?V(me&&ze?ye(ke,ge):[me||re,ze||de]):me&&ze&&V([me,ze])),V([re,de])):me-re&&ze-de&&V([re||me,de||ze]),ke=ge,me=re,ze=de}else ke&&ue(ne(ke,ge)[0]),b[M++]=ge}for(x=0;x<_;x++)if(T=W(x),!!T){for(M=0,ke=null,xe(T),x++;x<_;x++){if(g=W(x),!g){if(h)continue;break}if(!v||!r.simplify){xe(g);continue}var Ae=W(x+1);if(F=Q(g,T),!(!(y&&(M===0||M===_-1))&&Fq(S,Ae))break;A=S,L=D[0]*k[0]+D[1]*k[1],L>P?(P=L,g=S,C=!1):L=t.length||!S)break;xe(S),T=S}}ke&&V([me||ke[0],ze||ke[1]]),m.push(b.slice(0,M))}var se=p.slice(p.length-1);if(f&&se!=="h"&&se!=="v"){for(var pe=!1,fe=-1,Re=[],We=0;We{"use strict";var u3e={tonextx:1,tonexty:1,tonext:1};f3e.exports=function(t,r,i){var n,a,o,s,l,u={},f=!1,c=-1,h=0,d=-1;for(a=0;a=0?l=d:(l=d=h,h++),l{"use strict";var r1=No(),M9t=Ho(),DM=St(),iA=DM.ensureSingle,h3e=DM.identity,yc=Is(),nA=ff(),S9t=jW(),E9t=WW(),KP=nM().tester;d3e.exports=function(t,r,i,n,a,o){var s,l,u=!a,f=!!a&&a.duration>0,c=E9t(t,r,i);if(s=n.selectAll("g.trace").data(c,function(d){return d[0].trace.uid}),s.enter().append("g").attr("class",function(d){return"trace scatter trace"+d[0].trace.uid}).style("stroke-miterlimit",2),s.order(),k9t(t,s,r),f){o&&(l=o());var h=r1.transition().duration(a.duration).ease(a.easing).each("end",function(){l&&l()}).each("interrupt",function(){l&&l()});h.each(function(){n.selectAll("g.trace").each(function(d,p){c3e(t,p,r,d,c,this,a)})})}else s.each(function(d,p){c3e(t,p,r,d,c,this,a)});u&&s.exit().remove(),n.selectAll("path:not([d])").remove()};function k9t(e,t,r){t.each(function(i){var n=iA(r1.select(this),"g","fills");yc.setClipUrl(n,r.layerClipId,e);var a=i[0].trace;a._ownFill=null,a._nextFill=null;var o=[];a._ownfill&&o.push("_ownFill"),a._nexttrace&&o.push("_nextFill");var s=n.selectAll("g").data(o,h3e);s.enter().append("g"),s.exit().remove(),s.order().each(function(l){a[l]=iA(r1.select(this),"path","js-fill")})})}function c3e(e,t,r,i,n,a,o){var s=e._context.staticPlot,l;C9t(e,t,r,i,n);var u=!!o&&o.duration>0;function f(Y){return u?Y.transition():Y}var c=r.xaxis,h=r.yaxis,d=i[0].trace,p=d.line,v=r1.select(a),y=iA(v,"g","errorbars"),m=iA(v,"g","lines"),w=iA(v,"g","points"),_=iA(v,"g","text");if(M9t.getComponentMethod("errorbars","plot")(e,y,r,o),d.visible!==!0)return;f(v).style("opacity",d.opacity);var b,M,x=d.fill.charAt(d.fill.length-1);x!=="x"&&x!=="y"&&(x="");var T,A;x==="y"?(T=1,A=h.c2p(0,!0)):x==="x"&&(T=0,A=c.c2p(0,!0)),i[0][r.isRangePlot?"nodeRangePlot3":"node3"]=v;var g="",E=[],S=d._prevtrace,C=null,k=null;S&&(g=S._prevRevpath||"",M=S._nextFill,E=S._ownPolygons,C=S._fillsegments,k=S._fillElement);var D,F,P="",I="",L,z,B,O,W,X,Z=[];d._polygons=[];var H=[],q=[],Q=DM.noop;if(b=d._ownFill,nA.hasLines(d)||d.fill!=="none"){M&&M.datum(i),["hv","vh","hvh","vhv"].indexOf(p.shape)!==-1?(L=yc.steps(p.shape),z=yc.steps(p.shape.split("").reverse().join(""))):p.shape==="spline"?L=z=function(Y){var ne=Y[Y.length-1];return Y.length>1&&Y[0][0]===ne[0]&&Y[0][1]===ne[1]?yc.smoothclosed(Y.slice(1),p.smoothing):yc.smoothopen(Y,p.smoothing)}:L=z=function(Y){return"M"+Y.join("L")},B=function(Y){return z(Y.reverse())},q=S9t(i,{xaxis:c,yaxis:h,trace:d,connectGaps:d.connectgaps,baseTolerance:Math.max(p.width||1,3)/4,shape:p.shape,backoff:p.backoff,simplify:p.simplify,fill:d.fill}),H=new Array(q.length);var N=0;for(l=0;l=s[0]&&v.x<=s[1]&&v.y>=l[0]&&v.y<=l[1]}),h=Math.ceil(c.length/f),d=0;n.forEach(function(v,y){var m=v[0].trace;nA.hasMarkers(m)&&m.marker.maxdisplayed>0&&y{"use strict";p3e.exports={container:"marker",min:"cmin",max:"cmax"}});var QP=K((eGr,v3e)=>{"use strict";var JP=Cs();v3e.exports=function(t,r,i){var n={},a={_fullLayout:i},o=JP.getFromTrace(a,r,"x"),s=JP.getFromTrace(a,r,"y"),l=t.orig_x;l===void 0&&(l=t.x);var u=t.orig_y;return u===void 0&&(u=t.y),n.xLabel=JP.tickText(o,o.c2l(l),!0).text,n.yLabel=JP.tickText(s,s.c2l(u),!0).text,n}});var hd=K((tGr,m3e)=>{"use strict";var $W=No(),oA=Is(),D9t=Ho();function F9t(e){var t=$W.select(e).selectAll("g.trace.scatter");t.style("opacity",function(r){return r[0].trace.opacity}),t.selectAll("g.points").each(function(r){var i=$W.select(this),n=r.trace||r[0].trace;YW(i,n,e)}),t.selectAll("g.text").each(function(r){var i=$W.select(this),n=r.trace||r[0].trace;XW(i,n,e)}),t.selectAll("g.trace path.js-line").call(oA.lineGroupStyle),t.selectAll("g.trace path.js-fill").call(oA.fillGroupStyle,e,!1),D9t.getComponentMethod("errorbars","style")(t)}function YW(e,t,r){oA.pointStyle(e.selectAll("path.point"),t,r)}function XW(e,t,r){oA.textPointStyle(e.selectAll("text"),t,r)}function L9t(e,t,r){var i=t[0].trace;i.selectedpoints?(oA.selectedPointStyle(r.selectAll("path.point"),i),oA.selectedTextStyle(r.selectAll("text"),i)):(YW(r,i,e),XW(r,i,e))}m3e.exports={style:F9t,stylePoints:YW,styleText:XW,styleOnSelect:L9t}});var lA=K((rGr,y3e)=>{"use strict";var sA=wo(),P9t=ff();y3e.exports=function(t,r){var i,n;if(t.mode==="lines")return i=t.line.color,i&&sA.opacity(i)?i:t.fillcolor;if(t.mode==="none")return t.fill?t.fillcolor:"";var a=r.mcc||r.mc||(t.marker||{}).color,o=r.mlcc||((t.marker||{}).line||{}).color;return n=a&&sA.opacity(a)?a:o&&sA.opacity(o)&&(r.mlw||((t.marker||{}).line||{}).width)?o:"",n?sA.opacity(n)<.3?sA.addOpacity(n,.3):n:(i=(t.line||{}).color,i&&sA.opacity(i)&&P9t.hasLines(t)&&t.line.width?i:t.fillcolor)}});var uA=K((iGr,x3e)=>{"use strict";var e9=St(),g3e=Gf(),z9t=Ho(),I9t=lA(),ZW=wo(),R9t=e9.fillText;x3e.exports=function(t,r,i,n){var a=t.cd,o=a[0].trace,s=t.xa,l=t.ya,u=s.c2p(r),f=l.c2p(i),c=[u,f],h=o.hoveron||"",d=o.mode.indexOf("markers")!==-1?3:.5,p=!!o.xperiodalignment,v=!!o.yperiodalignment;if(h.indexOf("points")!==-1){var y=function(I){if(p){var L=s.c2p(I.xStart),z=s.c2p(I.xEnd);return u>=Math.min(L,z)&&u<=Math.max(L,z)?0:1/0}var B=Math.max(3,I.mrc||0),O=1-1/B,W=Math.abs(s.c2p(I.x)-u);return W=Math.min(L,z)&&f<=Math.max(L,z)?0:1/0}var B=Math.max(3,I.mrc||0),O=1-1/B,W=Math.abs(l.c2p(I.y)-f);return WZ!=$>=Z&&(U=Q[q-1][0],J=Q[q][0],$-j&&(N=U+(J-U)*(Z-j)/($-j),B=Math.min(B,N),O=Math.max(O,N)));return B=Math.max(B,0),O=Math.min(O,s._length),{x0:B,x1:O,y0:Z,y1:Z}}if(h.indexOf("fills")!==-1&&o._fillElement){var D=C(o._fillElement)&&!C(o._fillExclusionElement);if(D){var F=k(o._polygons);F===null&&(F={x0:c[0],x1:c[0],y0:c[1],y1:c[1]});var P=ZW.defaultLine;return ZW.opacity(o.fillcolor)?P=o.fillcolor:ZW.opacity((o.line||{}).color)&&(P=o.line.color),e9.extendFlat(t,{distance:t.maxHoverDistance,x0:F.x0,x1:F.x1,y0:F.y0,y1:F.y1,color:P,hovertemplate:!1}),delete t.index,o.text&&!e9.isArrayOrTypedArray(o.text)?t.text=String(o.text):t.text=o.name,[t]}}}});var Rb=K((nGr,_3e)=>{"use strict";var b3e=ff();_3e.exports=function(t,r){var i=t.cd,n=t.xaxis,a=t.yaxis,o=[],s=i[0].trace,l,u,f,c,h=s.mode&&!b3e.hasMarkers(s)&&!b3e.hasText(s);if(h)return[];if(r===!1)for(l=0;l{"use strict";w3e.exports={xaxis:{valType:"subplotid",dflt:"x",editType:"calc+clearAxisTypes"},yaxis:{valType:"subplotid",dflt:"y",editType:"calc+clearAxisTypes"}}});var JW=K((oGr,S3e)=>{"use strict";var t9=Ho().traceIs,KW=Rw();S3e.exports=function(t,r,i,n){i("autotypenumbers",n.autotypenumbersDflt);var a=i("type",(n.splomStash||{}).type);a==="-"&&(B9t(r,n.data),r.type==="-"?r.type="linear":t.type=r.type)};function B9t(e,t){if(e.type==="-"){var r=e._id,i=r.charAt(0),n;r.indexOf("scene")!==-1&&(r=i);var a=q9t(t,r,i);if(a){if(a.type==="histogram"&&i==={v:"y",h:"x"}[a.orientation||"v"]){e.type="linear";return}var o=i+"calendar",s=a[o],l={noMultiCategory:!t9(a,"cartesian")||t9(a,"noMultiCategory")};if(a.type==="box"&&a._hasPreCompStats&&i==={h:"x",v:"y"}[a.orientation||"v"]&&(l.noMultiCategory=!0),l.autotypenumbers=e.autotypenumbers,M3e(a,i)){var u=T3e(a),f=[];for(n=0;n0&&(n["_"+r+"axes"]||{})[t])return n;if((n[r+"axis"]||r)===t){if(M3e(n,r))return n;if((n[r]||[]).length||n[r+"0"])return n}}}function T3e(e){return{v:"x",h:"y"}[e.orientation||"v"]}function M3e(e,t){var r=T3e(e),i=t9(e,"box-violin");return i&&t===r&&e[r]===void 0&&e[r+"0"]===void 0}});var r9=K((sGr,E3e)=>{"use strict";var O9t=Yh().isTypedArraySpec;function N9t(e,t){var r=t.dataAttr||e._id.charAt(0),i={},n,a,o;if(t.axData)n=t.axData;else for(n=[],a=0;a0||O9t(a),s;o&&(s="array");var l=i("categoryorder",s),u;l==="array"&&(u=i("categoryarray")),!o&&l==="array"&&(l=r.categoryorder="trace"),l==="trace"?r._initialCategories=[]:l==="array"?r._initialCategories=u.slice():(u=N9t(r,n).sort(),l==="category ascending"?r._initialCategories=u:l==="category descending"&&(r._initialCategories=u.reverse()))}}});var FM=K((lGr,C3e)=>{"use strict";var k3e=wo(),V9t=Gc(),U9t=St();C3e.exports=function(t,r,i,n){n=n||{};var a=n.dfltColor;function o(A,g){return U9t.coerce2(t,r,n.attributes,A,g)}var s=o("linecolor",a),l=o("linewidth"),u=i("showline",n.showLine||!!s||!!l);u||(delete r.linecolor,delete r.linewidth);var f=k3e.mix(a,n.bgColor,n.blend||V9t.lightFraction),c=o("gridcolor",f),h=o("gridwidth"),d=o("griddash"),p=i("showgrid",n.showGrid||!!c||!!h||!!d);if(p||(delete r.gridcolor,delete r.gridwidth,delete r.griddash),n.hasMinor){var v=k3e.mix(r.gridcolor,n.bgColor,67),y=o("minor.gridcolor",v),m=o("minor.gridwidth",r.gridwidth||1),w=o("minor.griddash",r.griddash||"solid"),_=i("minor.showgrid",!!y||!!m||!!w);_||(delete r.minor.gridcolor,delete r.minor.gridwidth,delete r.minor.griddash)}if(!n.noZeroLine){var b=o("zerolinelayer"),M=o("zerolinecolor",a),x=o("zerolinewidth"),T=i("zeroline",n.showGrid||!!M||!!x);T||(delete r.zerolinelayer,delete r.zerolinecolor,delete r.zerolinewidth)}}});var PM=K((uGr,I3e)=>{"use strict";var D3e=Hs(),G9t=Ho(),LM=St(),H9t=cu(),j9t=A0(),QW=Ph(),F3e=fb(),L3e=Dw(),W9t=Bg(),$9t=qg(),Y9t=r9(),X9t=FM(),Z9t=UH(),P3e=$1(),i9=(jc(),or(Hc)).WEEKDAY_PATTERN,K9t=(jc(),or(Hc)).HOUR_PATTERN;I3e.exports=function(t,r,i,n,a){var o=n.letter,s=n.font||{},l=n.splomStash||{},u=i("visible",!n.visibleDflt),f=r._template||{},c=r.type||f.type||"-",h;if(c==="date"){var d=G9t.getComponentMethod("calendars","handleDefaults");d(t,r,"calendar",n.calendar),n.noTicklabelmode||(h=i("ticklabelmode"))}!n.noTicklabelindex&&(c==="date"||c==="linear")&&i("ticklabelindex");var p="";(!n.noTicklabelposition||c==="multicategory")&&(p=LM.coerce(t,r,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:h==="period"?["outside","inside"]:o==="x"?["outside","inside","outside left","inside left","outside right","inside right"]:["outside","inside","outside top","inside top","outside bottom","inside bottom"]}},"ticklabelposition")),n.noTicklabeloverflow||i("ticklabeloverflow",p.indexOf("inside")!==-1?"hide past domain":c==="category"||c==="multicategory"?"allow":"hide past div"),P3e(r,a),Z9t(t,r,i,n),Y9t(t,r,i,n),n.noHover||(c!=="category"&&i("hoverformat"),n.noUnifiedhovertitle||i("unifiedhovertitle.text"));var v=i("color"),y=v!==QW.color.dflt?v:s.color,m=l.label||a._dfltTitle[o];if($9t(t,r,i,c,n),!u)return r;i("title.text",m),LM.coerceFont(i,"title.font",s,{overrideDflt:{size:LM.bigFont(s.size),color:y}}),F3e(t,r,i,c);var w=n.hasMinor;if(w&&(H9t.newContainer(r,"minor"),F3e(t,r,i,c,{isMinor:!0})),W9t(t,r,i,c,n),L3e(t,r,i,n),w){var _=n.isMinor;n.isMinor=!0,L3e(t,r,i,n),n.isMinor=_}X9t(t,r,i,{dfltColor:v,bgColor:n.bgColor,showGrid:n.showGrid,hasMinor:w,attributes:QW}),w&&r.ticklabelindex==null&&!r.minor.ticks&&!r.minor.showgrid&&delete r.minor,(r.showline||r.ticks)&&i("mirror");var b=c==="multicategory";if(!n.noTickson&&(c==="category"||b)&&(r.ticks||r.showgrid)&&(b?(i("tickson","boundaries"),delete r.ticklabelposition):i("tickson")),b){var M=i("showdividers");M&&(i("dividercolor"),i("dividerwidth"))}if(c==="date")if(j9t(t,r,{name:"rangebreaks",inclusionAttr:"enabled",handleItemDefaults:J9t}),!r.rangebreaks.length)delete r.rangebreaks;else{for(var x=0;x=2){var o="",s,l;if(a.length===2){for(s=0;s<2;s++)if(l=z3e(a[s]),l){o=i9;break}}var u=i("pattern",o);if(u===i9)for(s=0;s<2;s++)l=z3e(a[s]),l&&(t.bounds[s]=a[s]=l-1);if(u)for(s=0;s<2;s++)switch(l=a[s],u){case i9:if(!D3e(l)){t.enabled=!1;return}if(l=+l,l!==Math.floor(l)||l<0||l>=7){t.enabled=!1;return}t.bounds[s]=a[s]=l;break;case K9t:if(!D3e(l)){t.enabled=!1;return}if(l=+l,l<0||l>24){t.enabled=!1;return}t.bounds[s]=a[s]=l;break}if(r.autorange===!1){var f=r.range;if(f[0]f[1]){t.enabled=!1;return}}else if(a[0]>f[0]&&a[1]{"use strict";var e8t=Hs(),n9=St();R3e.exports=function(t,r,i,n){var a=n.counterAxes||[],o=n.overlayableAxes||[],s=n.letter,l=n.grid,u=n.overlayingDomain,f,c,h,d,p,v;l&&(c=l._domains[s][l._axisMap[r._id]],f=l._anchors[r._id],c&&(h=l[s+"side"].split(" ")[0],d=l.domain[s][h==="right"||h==="top"?1:0])),c=c||[0,1],f=f||(e8t(t.position)?"free":a[0]||"free"),h=h||(s==="x"?"bottom":"left"),d=d||0,p=0,v=!1;var y=n9.coerce(t,r,{anchor:{valType:"enumerated",values:["free"].concat(a),dflt:f}},"anchor"),m=n9.coerce(t,r,{side:{valType:"enumerated",values:s==="x"?["bottom","top"]:["left","right"],dflt:h}},"side");if(y==="free"){if(s==="y"){var w=i("autoshift");w&&(d=m==="left"?u[0]:u[1],v=r.automargin?r.automargin:!0,p=m==="left"?-3:3),i("shift",p)}i("position",d)}i("automargin",v);var _=!1;if(o.length&&(_=n9.coerce(t,r,{overlaying:{valType:"enumerated",values:[!1].concat(o),dflt:!1}},"overlaying")),!_){var b=i("domain",c);b[0]>b[1]-1/4096&&(r.domain=c),n9.noneOrAll(t.domain,r.domain,c),r.tickmode==="sync"&&(r.tickmode="auto")}return i("layer"),r}});var j3e=K((cGr,H3e)=>{"use strict";var Bb=St(),B3e=wo(),t8t=ud().isUnifiedHover,r8t=vj(),q3e=cu(),i8t=vw(),O3e=Ph(),n8t=JW(),N3e=PM(),a8t=Cb(),V3e=a9(),t$=Vf(),cm=t$.id2name,U3e=t$.name2id,o8t=(jc(),or(Hc)).AX_ID_PATTERN,G3e=Ho(),o9=G3e.traceIs,e$=G3e.getComponentMethod;function s9(e,t,r){Array.isArray(e[t])?e[t].push(r):e[t]=[r]}H3e.exports=function(t,r,i){var n=r.autotypenumbers,a={},o={},s={},l={},u={},f={},c={},h={},d={},p={},v,y;for(v=0;v{"use strict";var s8t=No(),W3e=Ho(),l9=St(),sp=Is(),u9=Cs();$3e.exports=function(t,r,i,n){var a=t._fullLayout;if(r.length===0){u9.redrawComponents(t);return}function o(y){var m=y.xaxis,w=y.yaxis;a._defs.select("#"+y.clipId+"> rect").call(sp.setTranslate,0,0).call(sp.setScale,1,1),y.plot.call(sp.setTranslate,m._offset,w._offset).call(sp.setScale,1,1);var _=y.plot.selectAll(".scatterlayer .trace");_.selectAll(".point").call(sp.setPointGroupScale,1,1),_.selectAll(".textpoint").call(sp.setTextPointsScale,1,1),_.call(sp.hideOutsideRangePoints,y)}function s(y,m){var w=y.plotinfo,_=w.xaxis,b=w.yaxis,M=_._length,x=b._length,T=!!y.xr1,A=!!y.yr1,g=[];if(T){var E=l9.simpleMap(y.xr0,_.r2l),S=l9.simpleMap(y.xr1,_.r2l),C=E[1]-E[0],k=S[1]-S[0];g[0]=(E[0]*(1-m)+m*S[0]-E[0])/(E[1]-E[0])*M,g[2]=M*(1-m+m*k/C),_.range[0]=_.l2r(E[0]*(1-m)+m*S[0]),_.range[1]=_.l2r(E[1]*(1-m)+m*S[1])}else g[0]=0,g[2]=M;if(A){var D=l9.simpleMap(y.yr0,b.r2l),F=l9.simpleMap(y.yr1,b.r2l),P=D[1]-D[0],I=F[1]-F[0];g[1]=(D[1]*(1-m)+m*F[1]-D[1])/(D[0]-D[1])*x,g[3]=x*(1-m+m*I/P),b.range[0]=_.l2r(D[0]*(1-m)+m*F[0]),b.range[1]=b.l2r(D[1]*(1-m)+m*F[1])}else g[1]=0,g[3]=x;u9.drawOne(t,_,{skipTitle:!0}),u9.drawOne(t,b,{skipTitle:!0}),u9.redrawComponents(t,[_._id,b._id]);var L=T?M/g[2]:1,z=A?x/g[3]:1,B=T?g[0]:0,O=A?g[1]:0,W=T?g[0]/g[2]*M:0,X=A?g[1]/g[3]*x:0,Z=_._offset-W,H=b._offset-X;w.clipRect.call(sp.setTranslate,B,O).call(sp.setScale,1/L,1/z),w.plot.call(sp.setTranslate,Z,H).call(sp.setScale,L,z),sp.setPointGroupScale(w.zoomScalePts,1/L,1/z),sp.setTextPointsScale(w.zoomScaleTxt,1/L,1/z)}var l;n&&(l=n());function u(){for(var y={},m=0;mi.duration?(u(),d=window.cancelAnimationFrame(v)):d=window.requestAnimationFrame(v)}return c=Date.now(),d=window.requestAnimationFrame(v),Promise.resolve()}});var gc=K(S0=>{"use strict";var c9=No(),X3e=Ho(),qb=St(),l8t=yf(),u8t=Is(),Z3e=Zh().getModuleCalcData,n2=Vf(),i1=(jc(),or(Hc)),f8t=(Rp(),or(Ip)),Su=qb.ensureSingle;function f9(e,t,r){return qb.ensureSingle(e,t,r,function(i){i.datum(r)})}var Ob=i1.zindexSeparator;S0.name="cartesian";S0.attr=["xaxis","yaxis"];S0.idRoot=["x","y"];S0.idRegex=i1.idRegex;S0.attrRegex=i1.attrRegex;S0.attributes=A3e();S0.layoutAttributes=Ph();S0.supplyLayoutDefaults=j3e();S0.transitionAxes=Y3e();S0.finalizeSubplots=function(e,t){var r=t._subplots,i=r.xaxis,n=r.yaxis,a=r.cartesian,o=a,s={},l={},u,f,c;for(u=0;u0){var d=h.id;if(d.indexOf(Ob)!==-1)continue;d+=Ob+(u+1),h=qb.extendFlat({},h,{id:d,plot:n._cartesianlayer.selectAll(".subplot").select("."+d)})}for(var p=[],v,y=0;y1&&(M+=Ob+b),_.push(s+M),o=0;o1,c=t.mainplotinfo;if(!t.mainplot||f)if(u)t.xlines=Su(i,"path","xlines-above"),t.ylines=Su(i,"path","ylines-above"),t.xaxislayer=Su(i,"g","xaxislayer-above"),t.yaxislayer=Su(i,"g","yaxislayer-above");else{if(!o){var h=Su(i,"g","layer-subplot");t.shapelayer=Su(h,"g","shapelayer"),t.imagelayer=Su(h,"g","imagelayer"),c&&f?(t.minorGridlayer=c.minorGridlayer,t.gridlayer=c.gridlayer,t.zerolinelayer=c.zerolinelayer):(t.minorGridlayer=Su(i,"g","minor-gridlayer"),t.gridlayer=Su(i,"g","gridlayer"),t.zerolinelayer=Su(i,"g","zerolinelayer"));var d=Su(i,"g","layer-between");t.shapelayerBetween=Su(d,"g","shapelayer"),t.imagelayerBetween=Su(d,"g","imagelayer"),Su(i,"path","xlines-below"),Su(i,"path","ylines-below"),t.overlinesBelow=Su(i,"g","overlines-below"),Su(i,"g","xaxislayer-below"),Su(i,"g","yaxislayer-below"),t.overaxesBelow=Su(i,"g","overaxes-below")}t.overplot=Su(i,"g","overplot"),t.plot=Su(t.overplot,"g",n),c&&f?t.zerolinelayerAbove=c.zerolinelayerAbove:t.zerolinelayerAbove=Su(i,"g","zerolinelayer-above"),o||(t.xlines=Su(i,"path","xlines-above"),t.ylines=Su(i,"path","ylines-above"),t.overlinesAbove=Su(i,"g","overlines-above"),Su(i,"g","xaxislayer-above"),Su(i,"g","yaxislayer-above"),t.overaxesAbove=Su(i,"g","overaxes-above"),t.xlines=i.select(".xlines-"+s),t.ylines=i.select(".ylines-"+l),t.xaxislayer=i.select(".xaxislayer-"+s),t.yaxislayer=i.select(".yaxislayer-"+l))}else{var p=c.plotgroup,v=n+"-x",y=n+"-y";t.minorGridlayer=c.minorGridlayer,t.gridlayer=c.gridlayer,t.zerolinelayer=c.zerolinelayer,t.zerolinelayerAbove=c.zerolinelayerAbove,Su(c.overlinesBelow,"path",v),Su(c.overlinesBelow,"path",y),Su(c.overaxesBelow,"g",v),Su(c.overaxesBelow,"g",y),t.plot=Su(c.overplot,"g",n),Su(c.overlinesAbove,"path",v),Su(c.overlinesAbove,"path",y),Su(c.overaxesAbove,"g",v),Su(c.overaxesAbove,"g",y),t.xlines=p.select(".overlines-"+s).select("."+v),t.ylines=p.select(".overlines-"+l).select("."+y),t.xaxislayer=p.select(".overaxes-"+s).select("."+v),t.yaxislayer=p.select(".overaxes-"+l).select("."+y)}o||(u||(f9(t.minorGridlayer,"g",t.xaxis._id),f9(t.minorGridlayer,"g",t.yaxis._id),t.minorGridlayer.selectAll("g").map(function(m){return m[0]}).sort(n2.idSort),f9(t.gridlayer,"g",t.xaxis._id),f9(t.gridlayer,"g",t.yaxis._id),t.gridlayer.selectAll("g").map(function(m){return m[0]}).sort(n2.idSort)),t.xlines.style("fill","none").classed("crisp",!0),t.ylines.style("fill","none").classed("crisp",!0))}function Q3e(e,t){if(e){var r={};e.each(function(l){var u=l[0],f=c9.select(this);f.remove(),ewe(u,t),r[u]=!0});for(var i in t._plots)for(var n=t._plots[i],a=n.overlays||[],o=0;o{"use strict";var h9=ff();twe.exports={hasLines:h9.hasLines,hasMarkers:h9.hasMarkers,hasText:h9.hasText,isBubble:h9.isBubble,attributes:Qf(),layoutAttributes:VF(),supplyDefaults:k_e(),crossTraceDefaults:FW(),supplyLayoutDefaults:L_e(),calc:Kp().calc,crossTraceCalc:r3e(),arraysToCalcdata:fm(),plot:aA(),colorbar:e0(),formatLabels:QP(),style:hd().style,styleOnSelect:hd().styleOnSelect,hoverPoints:uA(),selectPoints:Rb(),animatable:!0,moduleType:"trace",name:"scatter",basePlotModule:gc(),categories:["cartesian","svg","symbols","errorBarsOK","showLegend","scatter-like","zoomScale"],meta:{}}});var awe=K((vGr,nwe)=>{"use strict";var h8t=No(),d8t=wo(),iwe=nW(),r$=St(),p8t=r$.strScale,v8t=r$.strRotate,m8t=r$.strTranslate;nwe.exports=function(t,r,i){var n=t.node(),a=iwe[i.arrowhead||0],o=iwe[i.startarrowhead||0],s=(i.arrowwidth||1)*(i.arrowsize||1),l=(i.arrowwidth||1)*(i.startarrowsize||1),u=r.indexOf("start")>=0,f=r.indexOf("end")>=0,c=a.backoff*s+i.standoff,h=o.backoff*l+i.startstandoff,d,p,v,y;if(n.nodeName==="line"){d={x:+t.attr("x1"),y:+t.attr("y1")},p={x:+t.attr("x2"),y:+t.attr("y2")};var m=d.x-p.x,w=d.y-p.y;if(v=Math.atan2(w,m),y=v+Math.PI,c&&h&&c+h>Math.sqrt(m*m+w*w)){D();return}if(c){if(c*c>m*m+w*w){D();return}var _=c*Math.cos(v),b=c*Math.sin(v);p.x+=_,p.y+=b,t.attr({x2:p.x,y2:p.y})}if(h){if(h*h>m*m+w*w){D();return}var M=h*Math.cos(v),x=h*Math.sin(v);d.x-=M,d.y-=x,t.attr({x1:d.x,y1:d.y})}}else if(n.nodeName==="path"){var T=n.getTotalLength(),A="";if(T{"use strict";var owe=No(),i$=Ho(),y8t=yf(),o2=St(),n$=o2.strTranslate,IM=Cs(),Nb=wo(),gy=Is(),swe=Gf(),a$=Du(),o$=Yv(),zM=U0(),g8t=cu().arrayEditor,x8t=awe();fwe.exports={draw:b8t,drawOne:lwe,drawRaw:uwe};function b8t(e){var t=e._fullLayout;t._infolayer.selectAll(".annotation").remove();for(var r=0;r2/3?De="right":De="center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[De]}for(var j=!1,$=["x","y"],ie=0;ie<$.length;ie++){var re=$[ie],de=t[re+"ref"]||re,me=t["a"+re+"ref"],ze={x:n,y:a}[re],ke=(m+(re==="x"?0:-90))*Math.PI/180,le=N*Math.cos(ke),te=U*Math.sin(ke),Ee=Math.abs(le)+Math.abs(te),we=t[re+"anchor"],oe=t[re+"shift"]*(re==="x"?1:-1),Y=y[re],ne,ye,V,ue,_e,xe=IM.getRefType(de);if(ze&&xe!=="domain"){var Ae=ze.r2fraction(t[re]);(Ae<0||Ae>1)&&(me===de?(Ae=ze.r2fraction(t["a"+re]),(Ae<0||Ae>1)&&(j=!0)):j=!0),ne=ze._offset+ze.r2p(t[re]),ue=.5}else{var se=xe==="domain";re==="x"?(V=t[re],ne=se?ze._offset+ze._length*V:ne=s.l+s.w*V):(V=1-t[re],ne=se?ze._offset+ze._length*V:ne=s.t+s.h*V),ue=t.showarrow?.5:V}if(t.showarrow){Y.head=ne;var pe=t["a"+re];if(_e=le*J(.5,t.xanchor)-te*J(.5,t.yanchor),me===de){var fe=IM.getRefType(me);fe==="domain"?(re==="y"&&(pe=1-pe),Y.tail=ze._offset+ze._length*pe):fe==="paper"?re==="y"?(pe=1-pe,Y.tail=s.t+s.h*pe):Y.tail=s.l+s.w*pe:Y.tail=ze._offset+ze.r2p(pe),ye=_e}else Y.tail=ne+pe,ye=_e+pe;Y.text=Y.tail+_e;var Re=o[re==="x"?"width":"height"];if(de==="paper"&&(Y.head=o2.constrain(Y.head,1,Re-1)),me==="pixel"){var We=-Math.max(Y.tail-3,Y.text),Ke=Math.min(Y.tail+3,Y.text)-Re;We>0?(Y.tail+=We,Y.text+=We):Ke>0&&(Y.tail-=Ke,Y.text-=Ke)}Y.tail+=oe,Y.head+=oe}else _e=Ee*J(ue,we),ye=_e,Y.text=ne+_e;Y.text+=oe,_e+=oe,ye+=oe,t["_"+re+"padplus"]=Ee/2+ye,t["_"+re+"padminus"]=Ee/2-ye,t["_"+re+"size"]=Ee,t["_"+re+"shift"]=_e}if(j){T.remove();return}var tt=0,at=0;if(t.align!=="left"&&(tt=(q-Z)*(t.align==="center"?.5:1)),t.valign!=="top"&&(at=(Q-H)*(t.valign==="middle"?.5:1)),W)O.select("svg").attr({x:E+tt-1,y:E+at}).call(gy.setClipUrl,C?v:null,e);else{var Ge=E+at-X.top,ge=E+tt-X.left;P.call(a$.positionText,ge,Ge).call(gy.setClipUrl,C?v:null,e)}k.select("rect").call(gy.setRect,E,E,q,Q),S.call(gy.setRect,A/2,A/2,N-A,U-A),T.call(gy.setTranslate,Math.round(y.x.text-N/2),Math.round(y.y.text-U/2)),_.attr({transform:"rotate("+m+","+y.x.text+","+y.y.text+")"});var Be=function(Le,De){w.selectAll(".annotation-arrow-g").remove();var Ue=y.x.head,Pe=y.y.head,Se=y.x.tail+Le,Ie=y.y.tail+De,ot=y.x.text+Le,ut=y.y.text+De,_t=o2.rotationXYMatrix(m,ot,ut),At=o2.apply2DTransform(_t),Gt=o2.apply2DTransform2(_t),Dt=+S.attr("width"),yt=+S.attr("height"),Mt=ot-.5*Dt,tr=Mt+Dt,Ye=ut-.5*yt,nt=Ye+yt,st=[[Mt,Ye,Mt,nt],[Mt,nt,tr,nt],[tr,nt,tr,Ye],[tr,Ye,Mt,Ye]].map(Gt);if(!st.reduce(function(ri,Tr){return ri^!!o2.segmentsIntersect(Ue,Pe,Ue+1e6,Pe+1e6,Tr[0],Tr[1],Tr[2],Tr[3])},!1)){st.forEach(function(ri){var Tr=o2.segmentsIntersect(Se,Ie,Ue,Pe,ri[0],ri[1],ri[2],ri[3]);Tr&&(Se=Tr.x,Ie=Tr.y)});var dt=t.arrowwidth,rt=t.arrowcolor,ft=t.arrowside,Ft=w.append("g").style({opacity:Nb.opacity(rt)}).classed("annotation-arrow-g",!0),Et=Ft.append("path").attr("d","M"+Se+","+Ie+"L"+Ue+","+Pe).style("stroke-width",dt+"px").call(Nb.stroke,Nb.rgb(rt));if(x8t(Et,ft,t),l.annotationPosition&&Et.node().parentNode&&!i){var er=Ue,xr=Pe;if(t.standoff){var kr=Math.sqrt(Math.pow(Ue-Se,2)+Math.pow(Pe-Ie,2));er+=t.standoff*(Se-Ue)/kr,xr+=t.standoff*(Ie-Pe)/kr}var fr=Ft.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(Se-er)+","+(Ie-xr),transform:n$(er,xr)}).style("stroke-width",dt+6+"px").call(Nb.stroke,"rgba(0,0,0,0)").call(Nb.fill,"rgba(0,0,0,0)"),Yr,Or;zM.init({element:fr.node(),gd:e,prepFn:function(){var ri=gy.getTranslate(T);Yr=ri.x,Or=ri.y,n&&n.autorange&&h(n._name+".autorange",!0),a&&a.autorange&&h(a._name+".autorange",!0)},moveFn:function(ri,Tr){var Mr=At(Yr,Or),Gr=Mr[0]+ri,_i=Mr[1]+Tr;T.call(gy.setTranslate,Gr,_i),d("x",a2(n,ri,"x",s,t)),d("y",a2(a,Tr,"y",s,t)),t.axref===t.xref&&d("ax",a2(n,ri,"ax",s,t)),t.ayref===t.yref&&d("ay",a2(a,Tr,"ay",s,t)),Ft.attr("transform",n$(ri,Tr)),_.attr({transform:"rotate("+m+","+Gr+","+_i+")"})},doneFn:function(){i$.call("_guiRelayout",e,p());var ri=document.querySelector(".js-notes-box-panel");ri&&ri.redraw(ri.selectedObj)}})}}};if(t.showarrow&&Be(0,0),b){var Ze;zM.init({element:T.node(),gd:e,prepFn:function(){Ze=_.attr("transform")},moveFn:function(Le,De){var Ue="pointer";if(t.showarrow)t.axref===t.xref?d("ax",a2(n,Le,"ax",s,t)):d("ax",t.ax+Le),t.ayref===t.yref?d("ay",a2(a,De,"ay",s.w,t)):d("ay",t.ay+De),Be(Le,De);else{if(i)return;var Pe,Se;if(n)Pe=a2(n,Le,"x",s,t);else{var Ie=t._xsize/s.w,ot=t.x+(t._xshift-t.xshift)/s.w-Ie/2;Pe=zM.align(ot+Le/s.w,Ie,0,1,t.xanchor)}if(a)Se=a2(a,De,"y",s,t);else{var ut=t._ysize/s.h,_t=t.y-(t._yshift+t.yshift)/s.h-ut/2;Se=zM.align(_t-De/s.h,ut,0,1,t.yanchor)}d("x",Pe),d("y",Se),(!n||!a)&&(Ue=zM.getCursor(n?.5:Pe,a?.5:Se,t.xanchor,t.yanchor))}_.attr({transform:n$(Le,De)+Ze}),o$(T,Ue)},clickFn:function(Le,De){t.captureevents&&e.emit("plotly_clickannotation",x(De))},doneFn:function(){o$(T),i$.call("_guiRelayout",e,p());var Le=document.querySelector(".js-notes-box-panel");Le&&Le.redraw(Le.selectedObj)}})}}l.annotationText?P.call(a$.makeEditable,{delegate:T,gd:e}).call(I).on("edit",function(z){t.text=z,this.call(I),d("text",z),n&&n.autorange&&h(n._name+".autorange",!0),a&&a.autorange&&h(a._name+".autorange",!0),i$.call("_guiRelayout",e,p())}):P.call(I)}});var mwe=K((yGr,vwe)=>{"use strict";var cwe=St(),_8t=Ho(),hwe=cu().arrayEditor;vwe.exports={hasClickToShow:w8t,onClick:A8t};function w8t(e,t){var r=pwe(e,t);return r.on.length>0||r.explicitOff.length>0}function A8t(e,t){var r=pwe(e,t),i=r.on,n=r.off.concat(r.explicitOff),a={},o=e._fullLayout.annotations,s,l;if(i.length||n.length){for(s=0;s{"use strict";var s$=St(),fA=wo();ywe.exports=function(t,r,i,n){n("opacity");var a=n("bgcolor"),o=n("bordercolor"),s=fA.opacity(o);n("borderpad");var l=n("borderwidth"),u=n("showarrow");n("text",u?" ":i._dfltTitle.annotation),n("textangle"),s$.coerceFont(n,"font",i.font),n("width"),n("align");var f=n("height");if(f&&n("valign"),u){var c=n("arrowside"),h,d;c.indexOf("end")!==-1&&(h=n("arrowhead"),d=n("arrowsize")),c.indexOf("start")!==-1&&(n("startarrowhead",h),n("startarrowsize",d)),n("arrowcolor",s?r.bordercolor:fA.defaultLine),n("arrowwidth",(s&&l||1)*2),n("standoff"),n("startstandoff")}var p=n("hovertext"),v=i.hoverlabel||{};if(p){var y=n("hoverlabel.bgcolor",v.bgcolor||(fA.opacity(a)?fA.rgb(a):fA.defaultLine)),m=n("hoverlabel.bordercolor",v.bordercolor||fA.contrast(y)),w=s$.extendFlat({},v.font);w.color||(w.color=m),s$.coerceFont(n,"hoverlabel.font",w)}n("captureevents",!!p)}});var xwe=K((xGr,gwe)=>{"use strict";var u$=St(),Vb=Cs(),T8t=A0(),M8t=l$(),S8t=Qg();gwe.exports=function(t,r){T8t(t,r,{name:"annotations",handleItemDefaults:E8t})};function E8t(e,t,r){function i(_,b){return u$.coerce(e,t,S8t,_,b)}var n=i("visible"),a=i("clicktoshow");if(n||a){M8t(e,t,r,i);for(var o=t.showarrow,s=["x","y"],l=[-10,-30],u={_fullLayout:r},f=0;f<2;f++){var c=s[f],h=Vb.coerceRef(e,t,u,c,"","paper");if(h!=="paper"){var d=Vb.getFromId(u,h);d._annIndices.push(t._index)}if(Vb.coercePosition(t,u,i,h,c,.5),o){var p="a"+c,v=Vb.coerceRef(e,t,u,p,"pixel",["pixel","paper"]);v!=="pixel"&&v!==h&&(v=t[p]="pixel");var y=v==="pixel"?l[f]:.4;Vb.coercePosition(t,u,i,v,p,y)}i(c+"anchor"),i(c+"shift")}if(u$.noneOrAll(e,t,["x","y"]),o&&u$.noneOrAll(e,t,["ax","ay"]),a){var m=i("xclick"),w=i("yclick");t._xclick=m===void 0?t.x:Vb.cleanPosition(m,u,t.xref),t._yclick=w===void 0?t.y:Vb.cleanPosition(w,u,t.yref)}}}});var wwe=K((bGr,_we)=>{"use strict";var f$=St(),Ub=Cs(),k8t=d9().draw;_we.exports=function(t){var r=t._fullLayout,i=f$.filterVisible(r.annotations);if(i.length&&t._fullData.length)return f$.syncOrAsync([k8t,C8t],t)};function C8t(e){var t=e._fullLayout;f$.filterVisible(t.annotations).forEach(function(r){var i=Ub.getFromId(e,r.xref),n=Ub.getFromId(e,r.yref),a=Ub.getRefType(r.xref),o=Ub.getRefType(r.yref);r._extremes={},a==="range"&&bwe(r,i),o==="range"&&bwe(r,n)})}function bwe(e,t){var r=t._id,i=r.charAt(0),n=e[i],a=e["a"+i],o=e[i+"ref"],s=e["a"+i+"ref"],l=e["_"+i+"padplus"],u=e["_"+i+"padminus"],f={x:1,y:-1}[i]*e[i+"shift"],c=3*e.arrowsize*e.arrowwidth||0,h=c+f,d=c-f,p=3*e.startarrowsize*e.arrowwidth||0,v=p+f,y=p-f,m;if(s===o){var w=Ub.findExtremes(t,[t.r2c(n)],{ppadplus:h,ppadminus:d}),_=Ub.findExtremes(t,[t.r2c(a)],{ppadplus:Math.max(l,v),ppadminus:Math.max(u,y)});m={min:[w.min[0],_.min[0]],max:[w.max[0],_.max[0]]}}else v=a?v+a:v,y=a?y-a:y,m=Ub.findExtremes(t,[t.r2c(n)],{ppadplus:Math.max(l,h,v),ppadminus:Math.max(u,d,y)});e._extremes[r]=m}});var Twe=K((_Gr,Awe)=>{"use strict";var D8t=Hs(),F8t=ND();Awe.exports=function(t,r,i,n){r=r||{};var a=i==="log"&&r.type==="linear",o=i==="linear"&&r.type==="log";if(!(a||o))return;var s=t._fullLayout.annotations,l=r._id.charAt(0),u,f;function c(d){var p=u[d],v=null;a?v=F8t(p,r.range):v=Math.pow(10,p),D8t(v)||(v=null),n(f+d,v)}for(var h=0;h{"use strict";var c$=d9(),Mwe=mwe();Swe.exports={moduleType:"component",name:"annotations",layoutAttributes:Qg(),supplyLayoutDefaults:xwe(),includeBasePlot:mM()("annotations"),calcAutorange:wwe(),draw:c$.draw,drawOne:c$.drawOne,drawRaw:c$.drawRaw,hasClickToShow:Mwe.hasClickToShow,onClick:Mwe.onClick,convertCoords:Twe()}});var p9=K((AGr,kwe)=>{"use strict";var bf=Qg(),L8t=Ef().overrideAll,P8t=cu().templatedArray;kwe.exports=L8t(P8t("annotation",{visible:bf.visible,x:{valType:"any"},y:{valType:"any"},z:{valType:"any"},ax:{valType:"number"},ay:{valType:"number"},xanchor:bf.xanchor,xshift:bf.xshift,yanchor:bf.yanchor,yshift:bf.yshift,text:bf.text,textangle:bf.textangle,font:bf.font,width:bf.width,height:bf.height,opacity:bf.opacity,align:bf.align,valign:bf.valign,bgcolor:bf.bgcolor,bordercolor:bf.bordercolor,borderpad:bf.borderpad,borderwidth:bf.borderwidth,showarrow:bf.showarrow,arrowcolor:bf.arrowcolor,arrowhead:bf.arrowhead,startarrowhead:bf.startarrowhead,arrowside:bf.arrowside,arrowsize:bf.arrowsize,startarrowsize:bf.startarrowsize,arrowwidth:bf.arrowwidth,standoff:bf.standoff,startstandoff:bf.startstandoff,hovertext:bf.hovertext,hoverlabel:bf.hoverlabel,captureevents:bf.captureevents}),"calc","from-root")});var Dwe=K((TGr,Cwe)=>{"use strict";var h$=St(),z8t=Cs(),I8t=A0(),R8t=l$(),B8t=p9();Cwe.exports=function(t,r,i){I8t(t,r,{name:"annotations",handleItemDefaults:q8t,fullLayout:i.fullLayout})};function q8t(e,t,r,i){function n(s,l){return h$.coerce(e,t,B8t,s,l)}function a(s){var l=s+"axis",u={_fullLayout:{}};return u._fullLayout[l]=r[l],z8t.coercePosition(t,u,n,s,s,.5)}var o=n("visible");o&&(R8t(e,t,i.fullLayout,n),a("x"),a("y"),a("z"),h$.noneOrAll(e,t,["x","y","z"]),t.xref="x",t.yref="y",t.zref="z",n("xanchor"),n("yanchor"),n("xshift"),n("yshift"),t.showarrow&&(t.axref="pixel",t.ayref="pixel",n("ax",-10),n("ay",-30),h$.noneOrAll(e,t,["ax","ay"])))}});var zwe=K((MGr,Pwe)=>{"use strict";var Fwe=St(),Lwe=Cs();Pwe.exports=function(t){for(var r=t.fullSceneLayout,i=r.annotations,n=0;n{"use strict";function d$(e,t){var r=[0,0,0,0],i,n;for(i=0;i<4;++i)for(n=0;n<4;++n)r[n]+=e[4*i+n]*t[i];return r}function N8t(e,t){var r=d$(e.projection,d$(e.view,d$(e.model,[t[0],t[1],t[2],1])));return r}Iwe.exports=N8t});var Bwe=K((EGr,Rwe)=>{"use strict";var V8t=d9().drawRaw,U8t=p$(),G8t=["x","y","z"];Rwe.exports=function(t){for(var r=t.fullSceneLayout,i=t.dataScale,n=r.annotations,a=0;a1){s=!0;break}}s?t.fullLayout._infolayer.select(".annotation-"+t.id+'[data-index="'+a+'"]').remove():(o._pdata=U8t(t.glplot.cameraParams,[r.xaxis.r2l(o.x)*i[0],r.yaxis.r2l(o.y)*i[1],r.zaxis.r2l(o.z)*i[2]]),V8t(t.graphDiv,o,a,t.id,o._xa,o._ya))}}});var Nwe=K((kGr,Owe)=>{"use strict";var H8t=Ho(),qwe=St();Owe.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:p9()}}},layoutAttributes:p9(),handleDefaults:Dwe(),includeBasePlot:j8t,convert:zwe(),draw:Bwe()};function j8t(e,t){var r=H8t.subplotsRegistry.gl3d;if(r)for(var i=r.attrRegex,n=Object.keys(e),a=0;a{"use strict";var CGr=(jc(),or(Hc)),Vwe=lf(),Uwe=Qf().line,W8t=gh().dash,n1=Os().extendFlat,$8t=cu().templatedArray,DGr=(pM(),or(dM)),cA=Tu(),Gwe=Qg(),{shapeTexttemplateAttrs:Y8t,templatefallbackAttrs:X8t}=gu(),Z8t=xF();Hwe.exports=$8t("shape",{visible:n1({},cA.visible,{editType:"calc+arraydraw"}),showlegend:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},legend:n1({},cA.legend,{editType:"calc+arraydraw"}),legendgroup:n1({},cA.legendgroup,{editType:"calc+arraydraw"}),legendgrouptitle:{text:n1({},cA.legendgrouptitle.text,{editType:"calc+arraydraw"}),font:Vwe({editType:"calc+arraydraw"}),editType:"calc+arraydraw"},legendrank:n1({},cA.legendrank,{editType:"calc+arraydraw"}),legendwidth:n1({},cA.legendwidth,{editType:"calc+arraydraw"}),type:{valType:"enumerated",values:["circle","rect","path","line"],editType:"calc+arraydraw"},layer:{valType:"enumerated",values:["below","above","between"],dflt:"above",editType:"arraydraw"},xref:n1({},Gwe.xref,{arrayOk:!0}),xsizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},xanchor:{valType:"any",editType:"calc+arraydraw"},x0:{valType:"any",editType:"calc+arraydraw"},x1:{valType:"any",editType:"calc+arraydraw"},x0shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},x1shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},yref:n1({},Gwe.yref,{arrayOk:!0}),ysizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},yanchor:{valType:"any",editType:"calc+arraydraw"},y0:{valType:"any",editType:"calc+arraydraw"},y1:{valType:"any",editType:"calc+arraydraw"},y0shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},y1shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},path:{valType:"string",editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},line:{color:n1({},Uwe.color,{editType:"arraydraw"}),width:n1({},Uwe.width,{editType:"calc+arraydraw"}),dash:n1({},W8t,{editType:"arraydraw"}),editType:"calc+arraydraw"},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd",editType:"arraydraw"},editable:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},label:{text:{valType:"string",dflt:"",editType:"arraydraw"},texttemplate:Y8t({},{keys:Object.keys(Z8t)}),texttemplatefallback:X8t({editType:"arraydraw"}),font:Vwe({editType:"calc+arraydraw",colorEditType:"arraydraw"}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"],editType:"arraydraw"},textangle:{valType:"angle",dflt:"auto",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],editType:"calc+arraydraw"},padding:{valType:"number",dflt:3,min:0,editType:"arraydraw"},editType:"arraydraw"},editType:"arraydraw"})});var Wwe=K((LGr,jwe)=>{"use strict";var hA=St(),lp=Cs(),K8t=A0(),J8t=v$(),RM=Kg();jwe.exports=function(t,r){K8t(t,r,{name:"shapes",handleItemDefaults:ezt})};function Q8t(e,t){return e?"bottom":t.indexOf("top")!==-1?"top":t.indexOf("bottom")!==-1?"bottom":"middle"}function ezt(e,t,r){function i(_,b){return hA.coerce(e,t,J8t,_,b)}t._isShape=!0;var n=i("visible");if(!n)return;var a=i("showlegend");i("legend"),i("legendgroup"),a&&(i("legendwidth"),i("legendgrouptitle.text"),hA.coerceFont(i,"legendgrouptitle.font"),i("legendrank"));var o=i("path"),s=o?"path":"rect",l=i("type",s),u=l!=="path";u&&delete t.path,i("editable"),i("layer"),i("opacity"),i("fillcolor"),i("fillrule");var f=i("line.width");f&&(i("line.color"),i("line.dash"));var c=i("xsizemode"),h=i("ysizemode");let d=[.25,.75],p=[0,10];["x","y"].forEach(_=>{var b=_+"anchor",M=_==="x"?c:h,x={_fullLayout:r},T,A,g,E;let S=_+"ref",C=e[S];if(Array.isArray(C)&&C.length>0){let k=RM.countDefiningCoords(l,o,_);E=lp.coerceRefArray(e,t,x,_,void 0,"paper",k),t["_"+_+"refArray"]=!0}else E=lp.coerceRef(e,t,x,_,void 0,"paper");if(Array.isArray(E))E.forEach(function(k){lp.getRefType(k)==="range"&&(T=lp.getFromId(x,k),T&&T._shapeIndices.indexOf(t._index)===-1&&T._shapeIndices.push(t._index))}),u&&[0,1].forEach(function(k){let D=E[k];lp.getRefType(D)==="range"?(T=lp.getFromId(x,D),A=RM.shapePositionToRange(T),g=RM.rangeToShapePosition(T),(T.type==="category"||T.type==="multicategory")&&i(_+k+"shift")):A=g=hA.identity;let P=_+k,I=e[P];if(e[P]=A(e[P],!0),M==="pixel"?i(P,p[k]):lp.coercePosition(t,x,i,D,P,d[k]),t[P]=g(t[P]),e[P]=I,k===0&&M==="pixel"){let L=e[b];e[b]=A(e[b],!0),lp.coercePosition(t,x,i,D,b,.25),t[b]=g(t[b]),e[b]=L}});else{if(lp.getRefType(E)==="range"?(T=lp.getFromId(x,E),T._shapeIndices.push(t._index),g=RM.rangeToShapePosition(T),A=RM.shapePositionToRange(T),u&&(T.type==="category"||T.type==="multicategory")&&(i(_+"0shift"),i(_+"1shift"))):A=g=hA.identity,u){let D=_+"0",F=_+"1",P=e[D],I=e[F];e[D]=A(e[D],!0),e[F]=A(e[F],!0),M==="pixel"?(i(D,p[0]),i(F,p[1])):(lp.coercePosition(t,x,i,E,D,d[0]),lp.coercePosition(t,x,i,E,F,d[1])),t[D]=g(t[D]),t[F]=g(t[F]),e[D]=P,e[F]=I}if(M==="pixel"){let D=e[b];e[b]=A(e[b],!0),lp.coercePosition(t,x,i,E,b,.25),t[b]=g(t[b]),e[b]=D}}}),u&&hA.noneOrAll(e,t,["x0","x1","y0","y1"]);var v=l==="line",y,m;if(u&&(y=i("label.texttemplate"),i("label.texttemplatefallback")),y||(m=i("label.text")),m||y){i("label.textangle");var w=i("label.textposition",v?"middle":"middle center");i("label.xanchor"),i("label.yanchor",Q8t(v,w)),i("label.padding"),hA.coerceFont(i,"label.font",r.font)}}});var Xwe=K((PGr,Ywe)=>{"use strict";var tzt=wo(),$we=St();function rzt(e,t){return e?"bottom":t.indexOf("top")!==-1?"top":t.indexOf("bottom")!==-1?"bottom":"middle"}Ywe.exports=function(t,r,i){i("newshape.visible"),i("newshape.name"),i("newshape.showlegend"),i("newshape.legend"),i("newshape.legendwidth"),i("newshape.legendgroup"),i("newshape.legendgrouptitle.text"),$we.coerceFont(i,"newshape.legendgrouptitle.font"),i("newshape.legendrank"),i("newshape.drawdirection"),i("newshape.layer"),i("newshape.fillcolor"),i("newshape.fillrule"),i("newshape.opacity");var n=i("newshape.line.width");if(n){var a=(t||{}).plot_bgcolor||"#FFF";i("newshape.line.color",tzt.contrast(a)),i("newshape.line.dash")}var o=t.dragmode==="drawline",s=i("newshape.label.text"),l=i("newshape.label.texttemplate");if(i("newshape.label.texttemplatefallback"),s||l){i("newshape.label.textangle");var u=i("newshape.label.textposition",o?"middle":"middle center");i("newshape.label.xanchor"),i("newshape.label.yanchor",rzt(o,u)),i("newshape.label.padding"),$we.coerceFont(i,"newshape.label.font",r.font)}i("activeshape.fillcolor"),i("activeshape.opacity")}});var rAe=K((zGr,tAe)=>{"use strict";var m$=St(),Qp=Cs(),hm=(W6(),or(j6)),y$=Kg();tAe.exports=function(t){var r=t._fullLayout,i=m$.filterVisible(r.shapes);if(!(!i.length||!t._fullData.length))for(var n=0;n{o=Qp.getFromId(t,c),a._extremes[o._id]=Qp.findExtremes(o,h,Kwe(a))})}else a.xref!=="paper"&&l!=="domain"&&(o=Qp.getFromId(t,a.xref),s=Qwe(o,a,hm.paramIsX),s&&(a._extremes[o._id]=Qp.findExtremes(o,s,Kwe(a))));if(u==="array"){let f=Zwe(t,a,"y");Object.entries(f).forEach(([c,h])=>{o=Qp.getFromId(t,c),a._extremes[o._id]=Qp.findExtremes(o,h,Jwe(a))})}else a.yref!=="paper"&&u!=="domain"&&(o=Qp.getFromId(t,a.yref),s=Qwe(o,a,hm.paramIsY),s&&(a._extremes[o._id]=Qp.findExtremes(o,s,Jwe(a))))}};function Zwe(e,t,r){let i=t[r+"ref"],n=r==="x"?hm.paramIsX:hm.paramIsY;function a(c,h){c==="paper"||Qp.getRefType(c)==="domain"||(o[c]||(o[c]=[]),o[c].push(h))}let o={};if(t.type==="path"&&t.path){let c=t.path.match(hm.segmentRE)||[];for(var s=0,l=0;lp&&(a(i[s],v[p]),s++)}}else a(i[0],t[r+"0"]),a(i[1],t[r+"1"]);let u={};for(let c in o){let h=Qp.getFromId(e,c);if(h){var f=h.type==="category"||h.type==="multicategory"?h.r2c:h.d2c;h.type==="date"&&(f=y$.decodeDate(f)),u[h._id]=o[c].map(f)}}return u}function Kwe(e){return eAe(e.line.width,e.xsizemode,e.x0,e.x1,e.path,!1)}function Jwe(e){return eAe(e.line.width,e.ysizemode,e.y0,e.y1,e.path,!0)}function eAe(e,t,r,i,n,a){var o=e/2,s=a;if(t==="pixel"){var l=n?y$.extractPathCoords(n,a?hm.paramIsY:hm.paramIsX):[r,i],u=m$.aggNums(Math.max,null,l),f=m$.aggNums(Math.min,null,l),c=f<0?Math.abs(f)+o:o,h=u>0?u+o:o;return{ppad:o,ppadplus:s?c:h,ppadminus:s?h:c}}else return{ppad:o}}function Qwe(e,t,r){var i=e._id.charAt(0)==="x"?"x":"y",n=e.type==="category"||e.type==="multicategory",a,o,s=0,l=0,u=n?e.r2c:e.d2c,f=t[i+"sizemode"]==="scaled";if(f?(a=t[i+"0"],o=t[i+"1"],n&&(s=t[i+"0shift"],l=t[i+"1shift"])):(a=t[i+"anchor"],o=t[i+"anchor"]),a!==void 0)return[u(a)+s,u(o)+l];if(t.path){var c=1/0,h=-1/0,d=t.path.match(hm.segmentRE),p,v,y,m,w;for(e.type==="date"&&(u=y$.decodeDate(u)),p=0;ph&&(h=w)));if(h>=c)return[c,h]}}});var aAe=K((IGr,nAe)=>{"use strict";var iAe=rP();nAe.exports={moduleType:"component",name:"shapes",layoutAttributes:v$(),supplyLayoutDefaults:Wwe(),supplyDrawNewShapeDefaults:Xwe(),includeBasePlot:mM()("shapes"),calcAutorange:rAe(),draw:iAe.draw,drawOne:iAe.drawOne}});var g$=K((BGr,sAe)=>{"use strict";var oAe=(jc(),or(Hc)),izt=cu().templatedArray,RGr=(pM(),or(dM));sAe.exports=izt("image",{visible:{valType:"boolean",dflt:!0,editType:"arraydraw"},source:{valType:"string",editType:"arraydraw"},layer:{valType:"enumerated",values:["below","above"],dflt:"above",editType:"arraydraw"},sizex:{valType:"number",dflt:0,editType:"arraydraw"},sizey:{valType:"number",dflt:0,editType:"arraydraw"},sizing:{valType:"enumerated",values:["fill","contain","stretch"],dflt:"contain",editType:"arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},x:{valType:"any",dflt:0,editType:"arraydraw"},y:{valType:"any",dflt:0,editType:"arraydraw"},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left",editType:"arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],dflt:"top",editType:"arraydraw"},xref:{valType:"enumerated",values:["paper",oAe.idRegex.x.toString()],dflt:"paper",editType:"arraydraw"},yref:{valType:"enumerated",values:["paper",oAe.idRegex.y.toString()],dflt:"paper",editType:"arraydraw"},editType:"arraydraw"})});var uAe=K((qGr,lAe)=>{"use strict";var nzt=St(),x$=Cs(),azt=A0(),ozt=g$(),szt="images";lAe.exports=function(t,r){var i={name:szt,handleItemDefaults:lzt};azt(t,r,i)};function lzt(e,t,r){function i(h,d){return nzt.coerce(e,t,ozt,h,d)}var n=i("source"),a=i("visible",!!n);if(!a)return t;i("layer"),i("xanchor"),i("yanchor"),i("sizex"),i("sizey"),i("sizing"),i("opacity");for(var o={_fullLayout:r},s=["x","y"],l=0;l<2;l++){var u=s[l],f=x$.coerceRef(e,t,o,u,"paper",void 0);if(f!=="paper"){var c=x$.getFromId(o,f);c._imgIndices.push(t._index)}x$.coercePosition(t,o,i,f,u,0)}return t}});var dAe=K((OGr,hAe)=>{"use strict";var fAe=No(),uzt=Is(),dA=Cs(),cAe=Vf(),fzt=(Rp(),or(Ip));hAe.exports=function(t){var r=t._fullLayout,i=[],n={},a=[],o,s;for(s=0;s{"use strict";var pAe=Hs(),czt=ND();vAe.exports=function(t,r,i,n){r=r||{};var a=i==="log"&&r.type==="linear",o=i==="linear"&&r.type==="log";if(a||o){for(var s=t._fullLayout.images,l=r._id.charAt(0),u,f,c=0;c{"use strict";yAe.exports={moduleType:"component",name:"images",layoutAttributes:g$(),supplyLayoutDefaults:uAe(),includeBasePlot:mM()("images"),draw:dAe(),convertCoords:mAe()}});var v9={};Fl(v9,{activeColor:()=>Rzt,arrowOffsetX:()=>Pzt,arrowPadX:()=>kzt,arrowSymbol:()=>qzt,autoMarginIdRoot:()=>Azt,blankHeaderOpts:()=>Tzt,buttonClassName:()=>xzt,containerClassName:()=>dzt,dropdownButtonClassName:()=>gzt,dropdownButtonGroupClassName:()=>yzt,gapButton:()=>Izt,gapButtonHeader:()=>zzt,headerArrowClassName:()=>mzt,headerClassName:()=>vzt,headerGroupClassName:()=>pzt,hoverColor:()=>Bzt,itemRectClassName:()=>bzt,itemTextClassName:()=>_zt,menuIndexAttrName:()=>wzt,minHeight:()=>Szt,minWidth:()=>Mzt,name:()=>hzt,rx:()=>Czt,ry:()=>Dzt,textOffsetX:()=>Fzt,textOffsetY:()=>Lzt,textPadX:()=>Ezt});var hzt,dzt,pzt,vzt,mzt,yzt,gzt,xzt,bzt,_zt,wzt,Azt,Tzt,Mzt,Szt,Ezt,kzt,Czt,Dzt,Fzt,Lzt,Pzt,zzt,Izt,Rzt,Bzt,qzt,m9=ps(()=>{"use strict";hzt="updatemenus",dzt="updatemenu-container",pzt="updatemenu-header-group",vzt="updatemenu-header",mzt="updatemenu-header-arrow",yzt="updatemenu-dropdown-button-group",gzt="updatemenu-dropdown-button",xzt="updatemenu-button",bzt="updatemenu-item-rect",_zt="updatemenu-item-text",wzt="updatemenu-active-index",Azt="updatemenu-",Tzt={label:" "},Mzt=30,Szt=30,Ezt=24,kzt=16,Czt=2,Dzt=2,Fzt=12,Lzt=3,Pzt=4,zzt=5,Izt=2,Rzt="#F4FAFF",Bzt="#F4FAFF",qzt={left:"\u25C4",right:"\u25BA",up:"\u25B2",down:"\u25BC"}});var b$=K((UGr,bAe)=>{"use strict";var Ozt=lf(),Nzt=Gc(),Vzt=Os().extendFlat,Uzt=Ef().overrideAll,Gzt=bF(),xAe=cu().templatedArray,Hzt=xAe("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}});bAe.exports=Uzt(xAe("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:Hzt,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:Vzt(Gzt({editType:"arraydraw"}),{}),font:Ozt({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:Nzt.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")});var TAe=K((GGr,AAe)=>{"use strict";var y9=St(),_Ae=A0(),wAe=b$(),jzt=(m9(),or(v9)),Wzt=jzt.name,$zt=wAe.buttons;AAe.exports=function(t,r){var i={name:Wzt,handleItemDefaults:Yzt};_Ae(t,r,i)};function Yzt(e,t,r){function i(o,s){return y9.coerce(e,t,wAe,o,s)}var n=_Ae(e,t,{name:"buttons",handleItemDefaults:Xzt}),a=i("visible",n.length>0);a&&(i("active"),i("direction"),i("type"),i("showactive"),i("x"),i("y"),y9.noneOrAll(e,t,["x","y"]),i("xanchor"),i("yanchor"),i("pad.t"),i("pad.r"),i("pad.b"),i("pad.l"),y9.coerceFont(i,"font",r.font),i("bgcolor",r.paper_bgcolor),i("bordercolor"),i("borderwidth"))}function Xzt(e,t){function r(n,a){return y9.coerce(e,t,$zt,n,a)}var i=r("visible",e.method==="skip"||Array.isArray(e.args));i&&(r("method"),r("args"),r("args2"),r("label"),r("execute"))}});var EAe=K((HGr,SAe)=>{"use strict";SAe.exports=ec;var a1=No(),MAe=wo(),pA=Is(),g9=St();function ec(e,t,r){this.gd=e,this.container=t,this.id=r,this.position=null,this.translateX=null,this.translateY=null,this.hbar=null,this.vbar=null,this.bg=this.container.selectAll("rect.scrollbox-bg").data([0]),this.bg.exit().on(".drag",null).on("wheel",null).remove(),this.bg.enter().append("rect").classed("scrollbox-bg",!0).style("pointer-events","all").attr({opacity:0,x:0,y:0,width:0,height:0})}ec.barWidth=2;ec.barLength=20;ec.barRadius=2;ec.barPad=1;ec.barColor="#808BA4";ec.prototype.enable=function(t,r,i){var n=this.gd._fullLayout,a=n.width,o=n.height;this.position=t;var s=this.position.l,l=this.position.w,u=this.position.t,f=this.position.h,c=this.position.direction,h=c==="down",d=c==="left",p=c==="right",v=c==="up",y=l,m=f,w,_,b,M;!h&&!d&&!p&&!v&&(this.position.direction="down",h=!0);var x=h||v;x?(w=s,_=w+y,h?(b=u,M=Math.min(b+m,o),m=M-b):(M=u+m,b=Math.max(M-m,0),m=M-b)):(b=u,M=b+m,d?(_=s+y,w=Math.max(_-y,0),y=_-w):(w=s,_=Math.min(w+y,a),y=_-w)),this._box={l:w,t:b,w:y,h:m};var T=l>y,A=ec.barLength+2*ec.barPad,g=ec.barWidth+2*ec.barPad,E=s,S=u+f;S+g>o&&(S=o-g);var C=this.container.selectAll("rect.scrollbar-horizontal").data(T?[0]:[]);C.exit().on(".drag",null).remove(),C.enter().append("rect").classed("scrollbar-horizontal",!0).call(MAe.fill,ec.barColor),T?(this.hbar=C.attr({rx:ec.barRadius,ry:ec.barRadius,x:E,y:S,width:A,height:g}),this._hbarXMin=E+A/2,this._hbarTranslateMax=y-A):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var k=f>m,D=ec.barWidth+2*ec.barPad,F=ec.barLength+2*ec.barPad,P=s+l,I=u;P+D>a&&(P=a-D);var L=this.container.selectAll("rect.scrollbar-vertical").data(k?[0]:[]);L.exit().on(".drag",null).remove(),L.enter().append("rect").classed("scrollbar-vertical",!0).call(MAe.fill,ec.barColor),k?(this.vbar=L.attr({rx:ec.barRadius,ry:ec.barRadius,x:P,y:I,width:D,height:F}),this._vbarYMin=I+F/2,this._vbarTranslateMax=m-F):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var z=this.id,B=w-.5,O=k?_+D+.5:_+.5,W=b-.5,X=T?M+g+.5:M+.5,Z=n._topdefs.selectAll("#"+z).data(T||k?[0]:[]);if(Z.exit().remove(),Z.enter().append("clipPath").attr("id",z).append("rect"),T||k?(this._clipRect=Z.select("rect").attr({x:Math.floor(B),y:Math.floor(W),width:Math.ceil(O)-Math.floor(B),height:Math.ceil(X)-Math.floor(W)}),this.container.call(pA.setClipUrl,z,this.gd),this.bg.attr({x:s,y:u,width:l,height:f})):(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(pA.setClipUrl,null),delete this._clipRect),T||k){var H=a1.behavior.drag().on("dragstart",function(){a1.event.sourceEvent.preventDefault()}).on("drag",this._onBoxDrag.bind(this));this.container.on("wheel",null).on("wheel",this._onBoxWheel.bind(this)).on(".drag",null).call(H);var q=a1.behavior.drag().on("dragstart",function(){a1.event.sourceEvent.preventDefault(),a1.event.sourceEvent.stopPropagation()}).on("drag",this._onBarDrag.bind(this));T&&this.hbar.on(".drag",null).call(q),k&&this.vbar.on(".drag",null).call(q)}this.setTranslate(r,i)};ec.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(pA.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)};ec.prototype._onBoxDrag=function(){var t=this.translateX,r=this.translateY;this.hbar&&(t-=a1.event.dx),this.vbar&&(r-=a1.event.dy),this.setTranslate(t,r)};ec.prototype._onBoxWheel=function(){var t=this.translateX,r=this.translateY;this.hbar&&(t+=a1.event.deltaY),this.vbar&&(r+=a1.event.deltaY),this.setTranslate(t,r)};ec.prototype._onBarDrag=function(){var t=this.translateX,r=this.translateY;if(this.hbar){var i=t+this._hbarXMin,n=i+this._hbarTranslateMax,a=g9.constrain(a1.event.x,i,n),o=(a-i)/(n-i),s=this.position.w-this._box.w;t=o*s}if(this.vbar){var l=r+this._vbarYMin,u=l+this._vbarTranslateMax,f=g9.constrain(a1.event.y,l,u),c=(f-l)/(u-l),h=this.position.h-this._box.h;r=c*h}this.setTranslate(t,r)};ec.prototype.setTranslate=function(t,r){var i=this.position.w-this._box.w,n=this.position.h-this._box.h;if(t=g9.constrain(t||0,0,i),r=g9.constrain(r||0,0,n),this.translateX=t,this.translateY=r,this.container.call(pA.setTranslate,this._box.l-this.position.l-t,this._box.t-this.position.t-r),this._clipRect&&this._clipRect.attr({x:Math.floor(this.position.l+t-.5),y:Math.floor(this.position.t+r-.5)}),this.hbar){var a=t/i;this.hbar.call(pA.setTranslate,t+a*this._hbarTranslateMax,r)}if(this.vbar){var o=r/n;this.vbar.call(pA.setTranslate,t,r+o*this._vbarTranslateMax)}}});var BAe=K((jGr,RAe)=>{"use strict";var vA=No(),BM=yf(),qM=wo(),mA=Is(),up=St(),x9=Du(),Zzt=cu().arrayEditor,CAe=($c(),or(Wc)).LINE_SPACING,sl=(m9(),or(v9)),Kzt=EAe();RAe.exports=function(t){var r=t._fullLayout,i=up.filterVisible(r[sl.name]);function n(h){BM.autoMargin(t,zAe(h))}var a=r._menulayer.selectAll("g."+sl.containerClassName).data(i.length>0?[0]:[]);if(a.enter().append("g").classed(sl.containerClassName,!0).style("cursor","pointer"),a.exit().each(function(){vA.select(this).selectAll("g."+sl.headerGroupClassName).each(n)}).remove(),i.length!==0){var o=a.selectAll("g."+sl.headerGroupClassName).data(i,Jzt);o.enter().append("g").classed(sl.headerGroupClassName,!0);for(var s=up.ensureSingle(a,"g",sl.dropdownButtonGroupClassName,function(h){h.style("pointer-events","all")}),l=0;l{"use strict";var aIt=(m9(),or(v9));qAe.exports={moduleType:"component",name:aIt.name,layoutAttributes:b$(),supplyLayoutDefaults:TAe(),draw:BAe()}});var NM={};Fl(NM,{arrowOffsetX:()=>MIt,autoMarginIdRoot:()=>_It,containerClassName:()=>sIt,currentValueClass:()=>gIt,currentValueInset:()=>JIt,currentValuePadding:()=>KIt,gripBgActiveColor:()=>VIt,gripBgColor:()=>NIt,gripBorder:()=>BIt,gripBorderColor:()=>OIt,gripBorderWidth:()=>qIt,gripHeight:()=>RIt,gripRadius:()=>zIt,gripRectClass:()=>hIt,gripWidth:()=>IIt,groupClassName:()=>lIt,inputAreaClass:()=>uIt,inputProxyClass:()=>pIt,labelClass:()=>yIt,labelGroupClass:()=>mIt,labelOffset:()=>GIt,labelPadding:()=>UIt,labelsClass:()=>vIt,menuIndexAttrName:()=>bIt,minHeight:()=>AIt,minWidth:()=>wIt,minorTickColor:()=>XIt,minorTickLength:()=>ZIt,minorTickOffset:()=>YIt,name:()=>oIt,railBgColor:()=>FIt,railBorder:()=>kIt,railBorderColor:()=>DIt,railBorderWidth:()=>CIt,railHeight:()=>xIt,railInset:()=>LIt,railRadius:()=>SIt,railRectClass:()=>fIt,railTouchRectClass:()=>cIt,railWidth:()=>EIt,stepInset:()=>PIt,textPadX:()=>TIt,tickColor:()=>jIt,tickLength:()=>$It,tickOffset:()=>WIt,tickRectClass:()=>dIt,tickWidth:()=>HIt});var oIt,sIt,lIt,uIt,fIt,cIt,hIt,dIt,pIt,vIt,mIt,yIt,gIt,xIt,bIt,_It,wIt,AIt,TIt,MIt,SIt,EIt,kIt,CIt,DIt,FIt,LIt,PIt,zIt,IIt,RIt,BIt,qIt,OIt,NIt,VIt,UIt,GIt,HIt,jIt,WIt,$It,YIt,XIt,ZIt,KIt,JIt,VM=ps(()=>{"use strict";oIt="sliders",sIt="slider-container",lIt="slider-group",uIt="slider-input-area",fIt="slider-rail-rect",cIt="slider-rail-touch-rect",hIt="slider-grip-rect",dIt="slider-tick-rect",pIt="slider-input-proxy",vIt="slider-labels",mIt="slider-label-group",yIt="slider-label",gIt="slider-current-value",xIt=5,bIt="slider-active-index",_It="slider-",wIt=30,AIt=30,TIt=40,MIt=4,SIt=2,EIt=5,kIt=4,CIt=1,DIt="#bec8d9",FIt="#f8fafc",LIt=8,PIt=10,zIt=10,IIt=20,RIt=20,BIt=20,qIt=1,OIt="#bec8d9",NIt="#f6f8fa",VIt="#dbdde0",UIt=8,GIt=0,HIt=1,jIt="#333",WIt=25,$It=7,YIt=25,XIt="#333",ZIt=4,KIt=8,JIt=0});var T$=K(($Gr,UAe)=>{"use strict";var NAe=lf(),QIt=bF(),eRt=Os().extendDeepAll,tRt=Ef().overrideAll,rRt=d6(),VAe=cu().templatedArray,Gb=(VM(),or(NM)),iRt=VAe("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}});UAe.exports=tRt(VAe("slider",{visible:{valType:"boolean",dflt:!0},active:{valType:"number",min:0,dflt:0},steps:iRt,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:eRt(QIt({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:rRt.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:NAe({})},font:NAe({}),activebgcolor:{valType:"color",dflt:Gb.gripBgActiveColor},bgcolor:{valType:"color",dflt:Gb.railBgColor},bordercolor:{valType:"color",dflt:Gb.railBorderColor},borderwidth:{valType:"number",min:0,dflt:Gb.railBorderWidth},ticklen:{valType:"number",min:0,dflt:Gb.tickLength},tickcolor:{valType:"color",dflt:Gb.tickColor},tickwidth:{valType:"number",min:0,dflt:1},minorticklen:{valType:"number",min:0,dflt:Gb.minorTickLength}}),"arraydraw","from-root")});var WAe=K((YGr,jAe)=>{"use strict";var yA=St(),GAe=A0(),HAe=T$(),nRt=(VM(),or(NM)),aRt=nRt.name,oRt=HAe.steps;jAe.exports=function(t,r){GAe(t,r,{name:aRt,handleItemDefaults:sRt})};function sRt(e,t,r){function i(c,h){return yA.coerce(e,t,HAe,c,h)}for(var n=GAe(e,t,{name:"steps",handleItemDefaults:lRt}),a=0,o=0;o{"use strict";var o1=No(),b9=yf(),s2=wo(),s1=Is(),fp=St(),uRt=fp.strTranslate,UM=Du(),fRt=cu().arrayEditor,ql=(VM(),or(NM)),E$=($c(),or(Wc)),XAe=E$.LINE_SPACING,M$=E$.FROM_TL,S$=E$.FROM_BR;t4e.exports=function(t){var r=t._context.staticPlot,i=t._fullLayout,n=cRt(i,t),a=i._infolayer.selectAll("g."+ql.containerClassName).data(n.length>0?[0]:[]);a.enter().append("g").classed(ql.containerClassName,!0).style("cursor",r?null:"ew-resize");function o(f){f._commandObserver&&(f._commandObserver.remove(),delete f._commandObserver),b9.autoMargin(t,ZAe(f))}if(a.exit().each(function(){o1.select(this).selectAll("g."+ql.groupClassName).each(o)}).remove(),n.length!==0){var s=a.selectAll("g."+ql.groupClassName).data(n,hRt);s.enter().append("g").classed(ql.groupClassName,!0),s.exit().each(o).remove();for(var l=0;l0&&(s=s.transition().duration(t.transition.duration).ease(t.transition.easing)),s.attr("transform",uRt(o-ql.gripWidth*.5,t._dims.currentValueTotalHeight))}}function k$(e,t){var r=e._dims;return r.inputAreaStart+ql.stepInset+(r.inputAreaLength-2*ql.stepInset)*Math.min(1,Math.max(0,t))}function YAe(e,t){var r=e._dims;return Math.min(1,Math.max(0,(t-ql.stepInset-r.inputAreaStart)/(r.inputAreaLength-2*ql.stepInset-2*r.inputAreaStart)))}function xRt(e,t,r){var i=r._dims,n=fp.ensureSingle(e,"rect",ql.railTouchRectClass,function(a){a.call(QAe,t,e,r).style("pointer-events","all")});n.attr({width:i.inputAreaLength,height:Math.max(i.inputAreaWidth,ql.tickOffset+r.ticklen+i.labelHeight)}).call(s2.fill,r.bgcolor).attr("opacity",0),s1.setTranslate(n,0,i.currentValueTotalHeight)}function bRt(e,t){var r=t._dims,i=r.inputAreaLength-ql.railInset*2,n=fp.ensureSingle(e,"rect",ql.railRectClass);n.attr({width:i,height:ql.railWidth,rx:ql.railRadius,ry:ql.railRadius,"shape-rendering":"crispEdges"}).call(s2.stroke,t.bordercolor).call(s2.fill,t.bgcolor).style("stroke-width",t.borderwidth+"px"),s1.setTranslate(n,ql.railInset,(r.inputAreaWidth-ql.railWidth)*.5+r.currentValueTotalHeight)}});var n4e=K((ZGr,i4e)=>{"use strict";var _Rt=(VM(),or(NM));i4e.exports={moduleType:"component",name:_Rt.name,layoutAttributes:T$(),supplyLayoutDefaults:WAe(),draw:r4e()}});var w9=K((KGr,o4e)=>{"use strict";var a4e=Gc();o4e.exports={bgcolor:{valType:"color",dflt:a4e.background,editType:"plot"},bordercolor:{valType:"color",dflt:a4e.defaultLine,editType:"plot"},borderwidth:{valType:"integer",dflt:0,min:0,editType:"plot"},autorange:{valType:"boolean",dflt:!0,editType:"calc",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},range:{valType:"info_array",items:[{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}},{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}}],editType:"calc",impliedEdits:{autorange:!1}},thickness:{valType:"number",dflt:.15,min:0,max:1,editType:"plot"},visible:{valType:"boolean",dflt:!0,editType:"calc"},editType:"calc"}});var C$=K((JGr,s4e)=>{"use strict";s4e.exports={_isSubplotObj:!0,rangemode:{valType:"enumerated",values:["auto","fixed","match"],dflt:"match",editType:"calc"},range:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},editType:"calc"}});var A9={};Fl(A9,{bgClassName:()=>TRt,containerClassName:()=>ARt,extraPad:()=>$Rt,grabAreaCursor:()=>URt,grabAreaFill:()=>VRt,grabAreaMaxClassName:()=>PRt,grabAreaMinClassName:()=>DRt,grabAreaWidth:()=>GRt,grabberMaxClassName:()=>LRt,grabberMinClassName:()=>CRt,handleMaxClassName:()=>zRt,handleMinClassName:()=>FRt,handleRadius:()=>jRt,handleStrokeWidth:()=>WRt,handleWidth:()=>HRt,maskColor:()=>BRt,maskMaxClassName:()=>ERt,maskMaxOppAxisClassName:()=>RRt,maskMinClassName:()=>SRt,maskMinOppAxisClassName:()=>IRt,maskOppAxisColor:()=>qRt,name:()=>wRt,rangePlotClassName:()=>MRt,slideBoxClassName:()=>kRt,slideBoxCursor:()=>NRt,slideBoxFill:()=>ORt});var wRt,ARt,TRt,MRt,SRt,ERt,kRt,CRt,DRt,FRt,LRt,PRt,zRt,IRt,RRt,BRt,qRt,ORt,NRt,VRt,URt,GRt,HRt,jRt,WRt,$Rt,T9=ps(()=>{"use strict";wRt="rangeslider",ARt="rangeslider-container",TRt="rangeslider-bg",MRt="rangeslider-rangeplot",SRt="rangeslider-mask-min",ERt="rangeslider-mask-max",kRt="rangeslider-slidebox",CRt="rangeslider-grabber-min",DRt="rangeslider-grabarea-min",FRt="rangeslider-handle-min",LRt="rangeslider-grabber-max",PRt="rangeslider-grabarea-max",zRt="rangeslider-handle-max",IRt="rangeslider-mask-min-opp-axis",RRt="rangeslider-mask-max-opp-axis",BRt="rgba(0,0,0,0.4)",qRt="rgba(0,0,0,0.2)",ORt="transparent",NRt="ew-resize",VRt="transparent",URt="col-resize",GRt=10,HRt=4,jRt=1,WRt=1,$Rt=15});var f4e=K(S9=>{"use strict";var YRt=Vf(),XRt=Du(),l4e=(T9(),or(A9)),ZRt=($c(),or(Wc)).LINE_SPACING,M9=l4e.name;function u4e(e){var t=e&&e[M9];return t&&t.visible}S9.isVisible=u4e;S9.makeData=function(e){for(var t=YRt.list({_fullLayout:e},"x",!0),r=e.margin,i=[],n=0;n{"use strict";var E9=St(),c4e=cu(),h4e=Vf(),KRt=w9(),JRt=C$();d4e.exports=function(t,r,i){var n=t[i],a=r[i];if(!(n.rangeslider||r._requestRangeslider[a._id]))return;E9.isPlainObject(n.rangeslider)||(n.rangeslider={});var o=n.rangeslider,s=c4e.newContainer(a,"rangeslider");function l(M,x){return E9.coerce(o,s,KRt,M,x)}var u,f;function c(M,x){return E9.coerce(u,f,JRt,M,x)}var h=l("visible");if(h){l("bgcolor",r.plot_bgcolor),l("bordercolor"),l("borderwidth"),l("thickness"),l("autorange",!a.isValidRange(o.range)),l("range");var d=r._subplots;if(d)for(var p=d.cartesian.filter(function(M){return M.slice(0,Math.max(0,M.indexOf("y")))===h4e.name2id(i)}).map(function(M){return M.slice(M.indexOf("y"),M.length)}),v=E9.simpleMap(p,h4e.id2name),y=0;y{"use strict";var QRt=Vf().list,eBt=$v().getAutoRange,tBt=(T9(),or(A9));v4e.exports=function(t){for(var r=QRt(t,"x",!0),i=0;i{"use strict";var k9=No(),rBt=Ho(),iBt=yf(),xc=St(),C9=xc.strTranslate,g4e=Is(),l2=wo(),nBt=vb(),aBt=gc(),D$=Vf(),oBt=U0(),sBt=Yv(),tu=(T9(),or(A9));x4e.exports=function(e){for(var t=e._fullLayout,r=t._rangeSliderData,i=0;i=L.max)P=S[I+1];else if(F=L.pmax)P=S[I+1];else if(F0?e.touches[0].clientX:0}function lBt(e,t,r,i){if(t._context.staticPlot)return;var n=e.select("rect."+tu.slideBoxClassName).node(),a=e.select("rect."+tu.grabAreaMinClassName).node(),o=e.select("rect."+tu.grabAreaMaxClassName).node();function s(){var l=k9.event,u=l.target,f=y4e(l),c=f-e.node().getBoundingClientRect().left,h=i.d2p(r._rl[0]),d=i.d2p(r._rl[1]),p=oBt.coverSlip();this.addEventListener("touchmove",v),this.addEventListener("touchend",y),p.addEventListener("mousemove",v),p.addEventListener("mouseup",y);function v(m){var w=y4e(m),_=+w-f,b,M,x;switch(u){case n:if(x="ew-resize",h+_>r._length||d+_<0)return;b=h+_,M=d+_;break;case a:if(x="col-resize",h+_>r._length)return;b=h+_,M=d;break;case o:if(x="col-resize",d+_<0)return;b=h,M=d+_;break;default:x="ew-resize",b=c,M=c+_;break}if(M{"use strict";var gBt=St(),xBt=w9(),bBt=C$(),F$=f4e();_4e.exports={moduleType:"component",name:"rangeslider",schema:{subplots:{xaxis:{rangeslider:gBt.extendFlat({},xBt,{yaxis:bBt})}}},layoutAttributes:w9(),handleDefaults:p4e(),calcAutorange:m4e(),draw:b4e(),isVisible:F$.isVisible,makeData:F$.makeData,autoMarginOpts:F$.autoMarginOpts}});var D9=K((nHr,T4e)=>{"use strict";var _Bt=lf(),A4e=Gc(),wBt=cu().templatedArray,ABt=wBt("button",{visible:{valType:"boolean",dflt:!0,editType:"plot"},step:{valType:"enumerated",values:["month","year","day","hour","minute","second","all"],dflt:"month",editType:"plot"},stepmode:{valType:"enumerated",values:["backward","todate"],dflt:"backward",editType:"plot"},count:{valType:"number",min:0,dflt:1,editType:"plot"},label:{valType:"string",editType:"plot"},editType:"plot"});T4e.exports={visible:{valType:"boolean",editType:"plot"},buttons:ABt,x:{valType:"number",min:-2,max:3,editType:"plot"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"plot"},y:{valType:"number",min:-2,max:3,editType:"plot"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"bottom",editType:"plot"},font:_Bt({editType:"plot"}),bgcolor:{valType:"color",dflt:A4e.lightLine,editType:"plot"},activecolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:A4e.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"}});var L$={};Fl(L$,{darkAmount:()=>CBt,lightAmount:()=>kBt,minButtonWidth:()=>MBt,rx:()=>SBt,ry:()=>EBt,yPad:()=>TBt});var TBt,MBt,SBt,EBt,kBt,CBt,P$=ps(()=>{"use strict";TBt=.02,MBt=30,SBt=3,EBt=3,kBt=25,CBt=10});var E4e=K((aHr,S4e)=>{"use strict";var F9=St(),DBt=wo(),FBt=cu(),LBt=A0(),M4e=D9(),z$=(P$(),or(L$));S4e.exports=function(t,r,i,n,a){var o=t.rangeselector||{},s=FBt.newContainer(r,"rangeselector");function l(d,p){return F9.coerce(o,s,M4e,d,p)}var u=LBt(o,s,{name:"buttons",handleItemDefaults:PBt,calendar:a}),f=l("visible",u.length>0);if(f){var c=zBt(r,i,n);l("x",c[0]),l("y",c[1]),F9.noneOrAll(t,r,["x","y"]),l("xanchor"),l("yanchor"),F9.coerceFont(l,"font",i.font);var h=l("bgcolor");l("activecolor",DBt.contrast(h,z$.lightAmount,z$.darkAmount)),l("bordercolor"),l("borderwidth")}};function PBt(e,t,r,i){var n=i.calendar;function a(l,u){return F9.coerce(e,t,M4e.buttons,l,u)}var o=a("visible");if(o){var s=a("step");s!=="all"&&(n&&n!=="gregorian"&&(s==="month"||s==="year")?t.stepmode="backward":a("stepmode"),a("count")),a("label")}}function zBt(e,t,r){for(var i=r.filter(function(s){return t[s].anchor===e._id}),n=0,a=0;a{"use strict";var IBt=lV(),RBt=St().titleCase;k4e.exports=function(t,r){var i=t._name,n={};if(r.step==="all")n[i+".autorange"]=!0;else{var a=BBt(t,r);n[i+".range[0]"]=a[0],n[i+".range[1]"]=a[1]}return n};function BBt(e,t){var r=e.range,i=new Date(e.r2l(r[1])),n=t.step,a=IBt["utc"+RBt(n)],o=t.count,s;switch(t.stepmode){case"backward":s=e.l2r(+a.offset(i,-o));break;case"todate":var l=a.offset(i,-o);s=e.l2r(+a.ceil(l));break}var u=r[1];return[s,u]}});var B4e=K((sHr,R4e)=>{"use strict";var P9=No(),qBt=Ho(),OBt=yf(),D4e=wo(),I4e=Is(),xy=St(),F4e=xy.strTranslate,L9=Du(),NBt=Vf(),B$=($c(),or(Wc)),L4e=B$.LINE_SPACING,P4e=B$.FROM_TL,z4e=B$.FROM_BR,R$=(P$(),or(L$)),VBt=C4e();R4e.exports=function(t){var r=t._fullLayout,i=r._infolayer.selectAll(".rangeselector").data(UBt(t),GBt);i.enter().append("g").classed("rangeselector",!0),i.exit().remove(),i.style({cursor:"pointer","pointer-events":"all"}),i.each(function(n){var a=P9.select(this),o=n,s=o.rangeselector,l=a.selectAll("g.button").data(xy.filterVisible(s.buttons));l.enter().append("g").classed("button",!0),l.exit().remove(),l.each(function(u){var f=P9.select(this),c=VBt(o,u);u._isActive=HBt(o,u,c),f.call(I$,s,u),f.call(WBt,s,u,t),f.on("click",function(){t._dragged||qBt.call("_guiRelayout",t,c)}),f.on("mouseover",function(){u._isHovered=!0,f.call(I$,s,u)}),f.on("mouseout",function(){u._isHovered=!1,f.call(I$,s,u)})}),YBt(t,l,s,o._name,a)})};function UBt(e){for(var t=NBt.list(e,"x",!0),r=[],i=0;i{"use strict";q4e.exports={moduleType:"component",name:"rangeselector",schema:{subplots:{xaxis:{rangeselector:D9()}}},layoutAttributes:D9(),handleDefaults:E4e(),draw:B4e()}});var kf=K(q$=>{"use strict";var N4e=Os().extendFlat;q$.attributes=function(e,t){e=e||{},t=t||{};var r={valType:"info_array",editType:e.editType,items:[{valType:"number",min:0,max:1,editType:e.editType},{valType:"number",min:0,max:1,editType:e.editType}],dflt:[0,1]},i=e.name?e.name+" ":"",n=e.trace?"trace":"subplot",a=t.description?" "+t.description:"",o={x:N4e({},r,{}),y:N4e({},r,{}),editType:e.editType};return e.noGridCell||(o.row={valType:"integer",min:0,dflt:0,editType:e.editType},o.column={valType:"integer",min:0,dflt:0,editType:e.editType}),o};q$.defaults=function(e,t,r,i){var n=i&&i.x||[0,1],a=i&&i.y||[0,1],o=t.grid;if(o){var s=r("domain.column");s!==void 0&&(s{"use strict";var XBt=St(),ZBt=(hw(),or(c6)).counter,KBt=kf().attributes,V4e=(jc(),or(Hc)).idRegex,JBt=cu(),O$={rows:{valType:"integer",min:1,editType:"plot"},roworder:{valType:"enumerated",values:["top to bottom","bottom to top"],dflt:"top to bottom",editType:"plot"},columns:{valType:"integer",min:1,editType:"plot"},subplots:{valType:"info_array",freeLength:!0,dimensions:2,items:{valType:"enumerated",values:[ZBt("xy").toString(),""],editType:"plot"},editType:"plot"},xaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[V4e.x.toString(),""],editType:"plot"},editType:"plot"},yaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[V4e.y.toString(),""],editType:"plot"},editType:"plot"},pattern:{valType:"enumerated",values:["independent","coupled"],dflt:"coupled",editType:"plot"},xgap:{valType:"number",min:0,max:1,editType:"plot"},ygap:{valType:"number",min:0,max:1,editType:"plot"},domain:KBt({name:"grid",editType:"plot",noGridCell:!0},{}),xside:{valType:"enumerated",values:["bottom","bottom plot","top plot","top"],dflt:"bottom plot",editType:"plot"},yside:{valType:"enumerated",values:["left","left plot","right plot","right"],dflt:"left plot",editType:"plot"},editType:"plot"};function z9(e,t,r){var i=t[r+"axes"],n=Object.keys((e._splomAxes||{})[r]||{});if(Array.isArray(i))return i;if(n.length)return n}function QBt(e,t){var r=e.grid||{},i=z9(t,r,"x"),n=z9(t,r,"y");if(!e.grid&&!i&&!n)return;var a=Array.isArray(r.subplots)&&Array.isArray(r.subplots[0]),o=Array.isArray(i),s=Array.isArray(n),l=o&&i!==r.xaxes&&s&&n!==r.yaxes,u,f;a?(u=r.subplots.length,f=r.subplots[0].length):(s&&(u=n.length),o&&(f=i.length));var c=JBt.newContainer(t,"grid");function h(x,T){return XBt.coerce(r,c,O$,x,T)}var d=h("rows",u),p=h("columns",f);if(!(d*p>1)){delete t.grid;return}if(!a&&!o&&!s){var v=h("pattern")==="independent";v&&(a=!0)}c._hasSubplotGrid=a;var y=h("roworder"),m=y==="top to bottom",w=a?.2:.1,_=a?.3:.1,b,M;l&&t._splomGridDflt&&(b=t._splomGridDflt.xside,M=t._splomGridDflt.yside),c._domains={x:U4e("x",h,w,b,p),y:U4e("y",h,_,M,d,m)}}function U4e(e,t,r,i,n,a){var o=t(e+"gap",r),s=t("domain."+e);t(e+"side",i);for(var l=new Array(n),u=s[0],f=(s[1]-u)/(n-o),c=f*(1-o),h=0;h{"use strict";j4e.exports={visible:{valType:"boolean",editType:"calc"},type:{valType:"enumerated",values:["percent","constant","sqrt","data"],editType:"calc"},symmetric:{valType:"boolean",editType:"calc"},array:{valType:"data_array",editType:"calc"},arrayminus:{valType:"data_array",editType:"calc"},value:{valType:"number",min:0,dflt:10,editType:"calc"},valueminus:{valType:"number",min:0,dflt:10,editType:"calc"},traceref:{valType:"integer",min:0,dflt:0,editType:"style"},tracerefminus:{valType:"integer",min:0,dflt:0,editType:"style"},copy_ystyle:{valType:"boolean",editType:"plot"},copy_zstyle:{valType:"boolean",editType:"style"},color:{valType:"color",editType:"style"},thickness:{valType:"number",min:0,dflt:2,editType:"style"},width:{valType:"number",min:0,editType:"plot"},editType:"calc"}});var Y4e=K((hHr,$4e)=>{"use strict";var W4e=Hs(),t7t=Ho(),r7t=St(),i7t=cu(),n7t=V$();$4e.exports=function(e,t,r,i){var n="error_"+i.axis,a=i7t.newContainer(t,n),o=e[n]||{};function s(p,v){return r7t.coerce(o,a,n7t,p,v)}var l=o.array!==void 0||o.value!==void 0||o.type==="sqrt",u=s("visible",l);if(u!==!1){var f=s("type","array"in o?"data":"percent"),c=!0;f!=="sqrt"&&(c=s("symmetric",!((f==="data"?"arrayminus":"valueminus")in o))),f==="data"?(s("array"),s("traceref"),c||(s("arrayminus"),s("tracerefminus"))):(f==="percent"||f==="constant")&&(s("value"),c||s("valueminus"));var h="copy_"+i.inherit+"style";if(i.inherit){var d=t["error_"+i.inherit];(d||{}).visible&&s(h,!(o.color||W4e(o.thickness)||W4e(o.width)))}(!i.inherit||!a[h])&&(s("color",r),s("thickness"),s("width",t7t.traceIs(t,"gl3d")?0:4))}}});var U$=K((dHr,Z4e)=>{"use strict";Z4e.exports=function(t){var r=t.type,i=t.symmetric;if(r==="data"){var n=t.array||[];if(i)return function(u,f){var c=+n[f];return[c,c]};var a=t.arrayminus||[];return function(u,f){var c=+n[f],h=+a[f];return!isNaN(c)||!isNaN(h)?[h||0,c||0]:[NaN,NaN]}}else{var o=X4e(r,t.value),s=X4e(r,t.valueminus);return i||t.valueminus===void 0?function(u){var f=o(u);return[f,f]}:function(u){return[s(u),o(u)]}}};function X4e(e,t){if(e==="percent")return function(r){return Math.abs(r*t/100)};if(e==="constant")return function(){return Math.abs(t)};if(e==="sqrt")return function(r){return Math.sqrt(Math.abs(r))}}});var Q4e=K((pHr,J4e)=>{"use strict";var G$=Hs(),a7t=Ho(),H$=Cs(),o7t=St(),s7t=U$();J4e.exports=function(t){for(var r=t.calcdata,i=0;i{"use strict";var e5e=No(),u2=Hs(),l7t=Is(),u7t=ff();t5e.exports=function(t,r,i,n){var a,o=i.xaxis,s=i.yaxis,l=n&&n.duration>0,u=t._context.staticPlot;r.each(function(f){var c=f[0].trace,h=c.error_x||{},d=c.error_y||{},p;c.ids&&(p=function(w){return w.id});var v=u7t.hasMarkers(c)&&c.marker.maxdisplayed>0;!d.visible&&!h.visible&&(f=[]);var y=e5e.select(this).selectAll("g.errorbar").data(f,p);if(y.exit().remove(),!!f.length){h.visible||y.selectAll("path.xerror").remove(),d.visible||y.selectAll("path.yerror").remove(),y.style("opacity",1);var m=y.enter().append("g").classed("errorbar",!0);l&&m.style("opacity",0).transition().duration(n.duration).style("opacity",1),l7t.setClipUrl(y,i.layerClipId,t),y.each(function(w){var _=e5e.select(this),b=f7t(w,o,s);if(!(v&&!w.vis)){var M,x=_.select("path.yerror");if(d.visible&&u2(b.x)&&u2(b.yh)&&u2(b.ys)){var T=d.width;M="M"+(b.x-T)+","+b.yh+"h"+2*T+"m-"+T+",0V"+b.ys,b.noYS||(M+="m-"+T+",0h"+2*T),a=!x.size(),a?x=_.append("path").style("vector-effect",u?"none":"non-scaling-stroke").classed("yerror",!0):l&&(x=x.transition().duration(n.duration).ease(n.easing)),x.attr("d",M)}else x.remove();var A=_.select("path.xerror");if(h.visible&&u2(b.y)&&u2(b.xh)&&u2(b.xs)){var g=(h.copy_ystyle?d:h).width;M="M"+b.xh+","+(b.y-g)+"v"+2*g+"m0,-"+g+"H"+b.xs,b.noXS||(M+="m0,-"+g+"v"+2*g),a=!A.size(),a?A=_.append("path").style("vector-effect",u?"none":"non-scaling-stroke").classed("xerror",!0):l&&(A=A.transition().duration(n.duration).ease(n.easing)),A.attr("d",M)}else A.remove()}})}})};function f7t(e,t,r){var i={x:t.c2p(e.x),y:r.c2p(e.y)};return e.yh!==void 0&&(i.yh=r.c2p(e.yh),i.ys=r.c2p(e.ys),u2(i.ys)||(i.noYS=!0,i.ys=r.c2p(e.ys,!0))),e.xh!==void 0&&(i.xh=t.c2p(e.xh),i.xs=t.c2p(e.xs),u2(i.xs)||(i.noXS=!0,i.xs=t.c2p(e.xs,!0))),i}});var a5e=K((mHr,n5e)=>{"use strict";var c7t=No(),i5e=wo();n5e.exports=function(t){t.each(function(r){var i=r[0].trace,n=i.error_y||{},a=i.error_x||{},o=c7t.select(this);o.selectAll("path.yerror").style("stroke-width",n.thickness+"px").call(i5e.stroke,n.color),a.copy_ystyle&&(a=n),o.selectAll("path.xerror").style("stroke-width",a.thickness+"px").call(i5e.stroke,a.color)})}});var l5e=K((yHr,s5e)=>{"use strict";var GM=St(),o5e=Ef().overrideAll,HM=V$(),Hb={error_x:GM.extendFlat({},HM),error_y:GM.extendFlat({},HM)};delete Hb.error_x.copy_zstyle;delete Hb.error_y.copy_zstyle;delete Hb.error_y.copy_ystyle;var jM={error_x:GM.extendFlat({},HM),error_y:GM.extendFlat({},HM),error_z:GM.extendFlat({},HM)};delete jM.error_x.copy_ystyle;delete jM.error_y.copy_ystyle;delete jM.error_z.copy_ystyle;delete jM.error_z.copy_zstyle;s5e.exports={moduleType:"component",name:"errorbars",schema:{traces:{scatter:Hb,bar:Hb,histogram:Hb,scatter3d:o5e(jM,"calc","nested"),scattergl:o5e(Hb,"calc","nested")}},supplyDefaults:Y4e(),calc:Q4e(),makeComputeError:U$(),plot:r5e(),style:a5e(),hoverInfo:h7t};function h7t(e,t,r){(t.error_y||{}).visible&&(r.yerr=e.yh-e.y,t.error_y.symmetric||(r.yerrneg=e.y-e.ys)),(t.error_x||{}).visible&&(r.xerr=e.xh-e.x,t.error_x.symmetric||(r.xerrneg=e.x-e.xs))}});var u5e={};Fl(u5e,{cn:()=>d7t});var d7t,f5e=ps(()=>{"use strict";d7t={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"}});var g5e=K((gHr,y5e)=>{"use strict";var f2=No(),R9=yf(),c5e=Ho(),by=Cs(),I9=U0(),ev=St(),u1=ev.strTranslate,m5e=Os().extendFlat,j$=Yv(),l1=Is(),gA=wo(),p7t=vb(),v7t=Du(),m7t=Kh().flipScale,y7t=PM(),g7t=a9(),x7t=Ph(),$$=($c(),or(Wc)),h5e=$$.LINE_SPACING,d5e=$$.FROM_TL,p5e=$$.FROM_BR,Hf=(f5e(),or(u5e)).cn;function b7t(e){var t=e._fullLayout,r=t._infolayer.selectAll("g."+Hf.colorbar).data(_7t(e),function(i){return i._id});r.enter().append("g").attr("class",function(i){return i._id}).classed(Hf.colorbar,!0),r.each(function(i){var n=f2.select(this);ev.ensureSingle(n,"rect",Hf.cbbg),ev.ensureSingle(n,"g",Hf.cbfills),ev.ensureSingle(n,"g",Hf.cblines),ev.ensureSingle(n,"g",Hf.cbaxis,function(o){o.classed(Hf.crisp,!0)}),ev.ensureSingle(n,"g",Hf.cbtitleunshift,function(o){o.append("g").classed(Hf.cbtitle,!0)}),ev.ensureSingle(n,"rect",Hf.cboutline);var a=w7t(n,i,e);a&&a.then&&(e._promises||[]).push(a),e._context.edits.colorbarPosition&&A7t(n,i,e)}),r.exit().each(function(i){R9.autoMargin(e,i._id)}).remove(),r.order()}function _7t(e){var t=e._fullLayout,r=e.calcdata,i=[],n,a,o,s;function l(_){return m5e(_,{_fillcolor:null,_line:{color:null,width:null,dash:null},_levels:{start:null,end:null,size:null},_filllevels:null,_fillgradient:null,_zrange:null})}function u(){typeof s.calc=="function"?s.calc(e,o,n):(n._fillgradient=a.reversescale?m7t(a.colorscale):a.colorscale,n._zrange=[a[s.min],a[s.max]])}for(var f=0;f[Math.min(e[0]+t,e[1]),e[1]],v5e=(e,t)=>[e[0],Math.max(e[1]-t,e[0])];function w7t(e,t,r){var i=t.orientation==="v",n=t.len,a=t.lenmode,o=t.thickness,s=t.thicknessmode,l=t.outlinewidth,u=t.borderwidth,f=t.bgcolor,c=t.xanchor,h=t.yanchor,d=t.xpad,p=t.ypad,v=t.x,y=i?t.y:1-t.y,m=t.yref==="paper",w=t.xref==="paper",_=r._fullLayout,b=_._size,M=t._fillcolor,x=t._line,T=t.title,A=T.side,g=t._zrange||f2.extent((typeof M=="function"?M:x.color).domain()),E=typeof x.color=="function"?x.color:function(){return x.color},S=typeof M=="function"?M:function(){return M},C=t._levels,k=T7t(r,t,g),D=k.fill,F=k.line,P=Math.round(o*(s==="fraction"?i?b.w:b.h:1)),I=P/(i?b.w:b.h),L=Math.round(n*(a==="fraction"?i?b.h:b.w:1)),z=L/(i?b.h:b.w),B=w?b.w:r._fullLayout.width,O=m?b.h:r._fullLayout.height,W=Math.round(i?v*B+d:y*O+p),X={center:.5,right:1}[c]||0,Z={top:1,middle:.5}[h]||0,H=i?v-X*I:y-Z*I,q=i?y-Z*z:v-X*z,Q=Math.round(i?O*(1-q):B*q);t._lenFrac=z,t._thickFrac=I,t._uFrac=H,t._vFrac=q;var N=t._axis=M7t(r,t,g);N.position=I+(i?v+d/b.w:y+p/b.h);var U=["top","bottom"].indexOf(A)!==-1;if(i&&U&&(N.title.side=A,N.titlex=v+d/b.w,N.titley=q+(T.side==="top"?z-p/b.h:p/b.h)),!i&&!U&&(N.title.side=A,N.titley=y+p/b.h,N.titlex=q+d/b.w),x.color&&t.tickmode==="auto"){N.tickmode="linear",N.tick0=C.start;var J=C.size,j=ev.constrain(L/50,4,15)+1,$=(g[1]-g[0])/((t.nticks||j)*J);if($>1){var ie=Math.pow(10,Math.floor(Math.log($)/Math.LN10));J*=ie*ev.roundUp($/ie,[2,5,10]),(Math.abs(C.start)/C.size+1e-6)%1<2e-6&&(N.tick0=0)}N.dtick=J}var re=i?p/b.h:d/b.w;N.domain=v5e(W$([q,q+z],re),re),N.setScale(),e.attr("transform",u1(Math.round(b.l),Math.round(b.t)));var de=e.select("."+Hf.cbtitleunshift).attr("transform",u1(-Math.round(b.l),-Math.round(b.t))),me=N.ticklabelposition,ze=N.title.font.size,ke=e.select("."+Hf.cbaxis),le,te=0,Ee=0;function we(V,ue){var _e={propContainer:N,propName:t._propPrefix+"title.text",traceIndex:t._traceIndex,_meta:t._meta,placeholder:_._dfltTitle.colorbar,containerGroup:e.select("."+Hf.cbtitle)},xe=V.charAt(0)==="h"?V.slice(1):"h"+V;e.selectAll("."+xe+",."+xe+"-math-group").remove(),p7t.draw(r,V,m5e(_e,ue||{}))}function oe(){if(i&&U||!i&&!U){var V,ue;A==="top"&&(V=d+b.l+B*v,ue=p+b.t+O*(1-q-z)+3+ze*.75),A==="bottom"&&(V=d+b.l+B*v,ue=p+b.t+O*(1-q)-3-ze*.25),A==="right"&&(ue=p+b.t+O*y+3+ze*.75,V=d+b.l+B*q),we(N._id+"title",{attributes:{x:V,y:ue,"text-anchor":i?"start":"middle"}})}}function Y(){if(i&&!U||!i&&U){var V=N.position||0,ue=N._offset+N._length/2,_e,xe;if(A==="right")xe=ue,_e=b.l+B*V+10+ze*(N.showticklabels?1:.5);else if(_e=ue,A==="bottom"&&(xe=b.t+O*V+10+(me.indexOf("inside")===-1?N.tickfont.size:0)+(N.ticks!=="inside"&&t.ticklen||0)),A==="top"){var Ae=T.text.split("
").length;xe=b.t+O*V+10-P-h5e*ze*Ae}we((i?"h":"v")+N._id+"title",{avoid:{selection:f2.select(r).selectAll("g."+N._id+"tick"),side:A,offsetTop:i?0:b.t,offsetLeft:i?b.l:0,maxShift:i?_.width:_.height},attributes:{x:_e,y:xe,"text-anchor":"middle"},transform:{rotate:i?-90:0,offset:0}})}}function ne(){if(!i&&!U||i&&U){var V=e.select("."+Hf.cbtitle),ue=V.select("text"),_e=[-l/2,l/2],xe=V.select(".h"+N._id+"title-math-group").node(),Ae=15.6;ue.node()&&(Ae=parseInt(ue.node().style.fontSize,10)*h5e);var se;if(xe?(se=l1.bBox(xe),Ee=se.width,te=se.height,te>Ae&&(_e[1]-=(te-Ae)/2)):ue.node()&&!ue.classed(Hf.jsPlaceholder)&&(se=l1.bBox(ue.node()),Ee=se.width,te=se.height),i){if(te){if(te+=5,A==="top")N.domain=v5e(N.domain,te/b.h),_e[1]*=-1;else{N.domain=W$(N.domain,te/b.h);var pe=v7t.lineCount(ue);_e[1]+=(1-pe)*Ae}V.attr("transform",u1(_e[0],_e[1])),N.setScale()}}else Ee&&(A==="right"&&(N.domain=W$(N.domain,(Ee+ze/2)/b.w)),V.attr("transform",u1(_e[0],_e[1])),N.setScale())}e.selectAll("."+Hf.cbfills+",."+Hf.cblines).attr("transform",i?u1(0,Math.round(b.h*(1-N.domain[1]))):u1(Math.round(b.w*N.domain[0]),0)),ke.attr("transform",i?u1(0,Math.round(-b.t)):u1(Math.round(-b.l),0));var fe=e.select("."+Hf.cbfills).selectAll("rect."+Hf.cbfill).attr("style","").data(D);fe.enter().append("rect").classed(Hf.cbfill,!0).attr("style",""),fe.exit().remove();var Re=g.map(N.c2p).map(Math.round).sort(function(Ge,ge){return Ge-ge});fe.each(function(Ge,ge){var Be=[ge===0?g[0]:(D[ge]+D[ge-1])/2,ge===D.length-1?g[1]:(D[ge]+D[ge+1])/2].map(N.c2p).map(Math.round);i&&(Be[1]=ev.constrain(Be[1]+(Be[1]>Be[0])?1:-1,Re[0],Re[1]));var Ze=f2.select(this).attr(i?"x":"y",W).attr(i?"y":"x",f2.min(Be)).attr(i?"width":"height",Math.max(P,2)).attr(i?"height":"width",Math.max(f2.max(Be)-f2.min(Be),2));if(t._fillgradient)l1.gradient(Ze,r,t._id,i?"vertical":"horizontalreversed",t._fillgradient,"fill");else{var Le=S(Ge).replace("e-","");Ze.attr("fill",gA.hexString(Le))}});var We=e.select("."+Hf.cblines).selectAll("path."+Hf.cbline).data(x.color&&x.width?F:[]);We.enter().append("path").classed(Hf.cbline,!0),We.exit().remove(),We.each(function(Ge){var ge=W,Be=Math.round(N.c2p(Ge))+x.width/2%1;f2.select(this).attr("d","M"+(i?ge+","+Be:Be+","+ge)+(i?"h":"v")+P).call(l1.lineGroupStyle,x.width,E(Ge),x.dash)}),ke.selectAll("g."+N._id+"tick,path").remove();var Ke=W+P+(l||0)/2-(t.ticks==="outside"?1:0),tt=by.calcTicks(N),at=by.getTickSigns(N)[2];return by.drawTicks(r,N,{vals:N.ticks==="inside"?by.clipEnds(N,tt):tt,layer:ke,path:by.makeTickPath(N,Ke,at),transFn:by.makeTransTickFn(N)}),by.drawLabels(r,N,{vals:tt,layer:ke,transFn:by.makeTransTickLabelFn(N),labelFns:by.makeLabelFns(N,Ke)})}function ye(){var V,ue=P+l/2;me.indexOf("inside")===-1&&(V=l1.bBox(ke.node()),ue+=i?V.width:V.height),le=de.select("text");var _e=0,xe=i&&A==="top",Ae=!i&&A==="right",se=0;if(le.node()&&!le.classed(Hf.jsPlaceholder)){var pe,fe=de.select(".h"+N._id+"title-math-group").node();fe&&(i&&U||!i&&!U)?(V=l1.bBox(fe),_e=V.width,pe=V.height):(V=l1.bBox(de.node()),_e=V.right-b.l-(i?W:Q),pe=V.bottom-b.t-(i?Q:W),!i&&A==="top"&&(ue+=V.height,se=V.height)),Ae&&(le.attr("transform",u1(_e/2+ze/2,0)),_e*=2),ue=Math.max(ue,i?_e:pe)}var Re=(i?d:p)*2+ue+u+l/2,We=0;!i&&T.text&&h==="bottom"&&y<=0&&(We=Re/2,Re+=We,se+=We),_._hColorbarMoveTitle=We,_._hColorbarMoveCBTitle=se;var Ke=u+l,tt=(i?W:Q)-Ke/2-(i?d:0),at=(i?Q:W)-(i?L:p+se-We);e.select("."+Hf.cbbg).attr("x",tt).attr("y",at).attr(i?"width":"height",Math.max(Re-We,2)).attr(i?"height":"width",Math.max(L+Ke,2)).call(gA.fill,f).call(gA.stroke,t.bordercolor).style("stroke-width",u);var Ge=Ae?Math.max(_e-10,0):0;e.selectAll("."+Hf.cboutline).attr("x",(i?W:Q+d)+Ge).attr("y",(i?Q+p-L:W)+(xe?te:0)).attr(i?"width":"height",Math.max(P,2)).attr(i?"height":"width",Math.max(L-(i?2*p+te:2*d+Ge),2)).call(gA.stroke,t.outlinecolor).style({fill:"none","stroke-width":l});var ge=i?X*Re:0,Be=i?0:(1-Z)*Re-se;if(ge=w?b.l-ge:-ge,Be=m?b.t-Be:-Be,e.attr("transform",u1(ge,Be)),!i&&(u||gA.opacity(f)&&!gA.equals(_.paper_bgcolor,f))){var Ze=ke.selectAll("text"),Le=Ze[0].length,De=e.select("."+Hf.cbbg).node(),Ue=l1.bBox(De),Pe=l1.getTranslate(e),Se=2;Ze.each(function(tr,Ye){var nt=0,st=Le-1;if(Ye===nt||Ye===st){var dt=l1.bBox(this),rt=l1.getTranslate(this),ft;if(Ye===st){var Ft=dt.right+rt.x,Et=Ue.right+Pe.x+Q-u-Se+v;ft=Et-Ft,ft>0&&(ft=0)}else if(Ye===nt){var er=dt.left+rt.x,xr=Ue.left+Pe.x+Q+u+Se;ft=xr-er,ft<0&&(ft=0)}ft&&(Le<3?this.setAttribute("transform","translate("+ft+",0) "+this.getAttribute("transform")):this.setAttribute("visibility","hidden"))}})}var Ie={},ot=d5e[c],ut=p5e[c],_t=d5e[h],At=p5e[h],Gt=Re-P;i?(a==="pixels"?(Ie.y=y,Ie.t=L*_t,Ie.b=L*At):(Ie.t=Ie.b=0,Ie.yt=y+n*_t,Ie.yb=y-n*At),s==="pixels"?(Ie.x=v,Ie.l=Re*ot,Ie.r=Re*ut):(Ie.l=Gt*ot,Ie.r=Gt*ut,Ie.xl=v-o*ot,Ie.xr=v+o*ut)):(a==="pixels"?(Ie.x=v,Ie.l=L*ot,Ie.r=L*ut):(Ie.l=Ie.r=0,Ie.xl=v+n*ot,Ie.xr=v-n*ut),s==="pixels"?(Ie.y=1-y,Ie.t=Re*_t,Ie.b=Re*At):(Ie.t=Gt*_t,Ie.b=Gt*At,Ie.yt=y-o*_t,Ie.yb=y+o*At));var Dt=t.y<.5?"b":"t",yt=t.x<.5?"l":"r";r._fullLayout._reservedMargin[t._id]={};var Mt={r:_.width-tt-ge,l:tt+Ie.r,b:_.height-at-Be,t:at+Ie.b};w&&m?R9.autoMargin(r,t._id,Ie):w?r._fullLayout._reservedMargin[t._id][Dt]=Mt[Dt]:m||i?r._fullLayout._reservedMargin[t._id][yt]=Mt[yt]:r._fullLayout._reservedMargin[t._id][Dt]=Mt[Dt]}return ev.syncOrAsync([R9.previousPromises,oe,ne,Y,R9.previousPromises,ye],r)}function A7t(e,t,r){var i=t.orientation==="v",n=r._fullLayout,a=n._size,o,s,l;I9.init({element:e.node(),gd:r,prepFn:function(){o=e.attr("transform"),j$(e)},moveFn:function(u,f){e.attr("transform",o+u1(u,f)),s=I9.align((i?t._uFrac:t._vFrac)+u/a.w,i?t._thickFrac:t._lenFrac,0,1,t.xanchor),l=I9.align((i?t._vFrac:1-t._uFrac)-f/a.h,i?t._lenFrac:t._thickFrac,0,1,t.yanchor);var c=I9.getCursor(s,l,t.xanchor,t.yanchor);j$(e,c)},doneFn:function(){if(j$(e),s!==void 0&&l!==void 0){var u={};u[t._propPrefix+"x"]=s,u[t._propPrefix+"y"]=l,t._traceIndex!==void 0?c5e.call("_guiRestyle",r,u,t._traceIndex):c5e.call("_guiRelayout",r,u)}}})}function T7t(e,t,r){var i=t._levels,n=[],a=[],o,s,l=i.end+i.size/100,u=i.size,f=1.001*r[0]-.001*r[1],c=1.001*r[1]-.001*r[0];for(s=0;s<1e5&&(o=i.start+s*u,!(u>0?o>=l:o<=l));s++)o>f&&o0?o>=l:o<=l));s++)o>r[0]&&o{"use strict";x5e.exports={moduleType:"component",name:"colorbar",attributes:YF(),supplyDefaults:JG(),draw:g5e().draw,hasColorbar:jG()}});var w5e=K((bHr,_5e)=>{"use strict";_5e.exports={moduleType:"component",name:"legend",layoutAttributes:$H(),supplyLayoutDefaults:XH(),draw:uj(),style:aj()}});var T5e=K((_Hr,A5e)=>{"use strict";A5e.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"}}});var S5e=K((wHr,M5e)=>{"use strict";M5e.exports={moduleType:"locale",name:"en-US",dictionary:{"Click to enter Colorscale title":"Click to enter Colorscale title"},format:{date:"%m/%d/%Y"}}});var X$=K((AHr,D5e)=>{"use strict";var S7t=Ho(),C5e=St(),Y$=C5e.extendFlat,E5e=C5e.extendDeep;function k5e(e){var t;switch(e){case"themes__thumb":t={autosize:!0,width:150,height:150,title:{text:""},showlegend:!1,margin:{l:5,r:5,t:5,b:5,pad:0},annotations:[]};break;case"thumbnail":t={title:{text:""},showlegend:!1,borderwidth:0,bordercolor:"",margin:{l:1,r:1,t:1,b:1,pad:0},annotations:[]};break;default:t={}}return t}function E7t(e){var t=["xaxis","yaxis","zaxis"];return t.indexOf(e.slice(0,5))>-1}D5e.exports=function(t,r){var i,n=t.data,a=t.layout,o=E5e([],n),s=E5e({},a,k5e(r.tileClass)),l=t._context||{};if(r.width&&(s.width=r.width),r.height&&(s.height=r.height),r.tileClass==="thumbnail"||r.tileClass==="themes__thumb"){s.annotations=[];var u=Object.keys(s);for(i=0;i{"use strict";var k7t=nb().EventEmitter,C7t=Ho(),D7t=St(),F5e=my(),F7t=X$(),L7t=OP(),P7t=NP();function z7t(e,t){var r=new k7t,i=F7t(e,{format:"png"}),n=i.gd;n.style.position="absolute",n.style.left="-5000px",document.body.appendChild(n);function a(){var s=F5e.getDelay(n._fullLayout);setTimeout(function(){var l=L7t(n),u=document.createElement("canvas");u.id=D7t.randstr(),r=P7t({format:t.format,width:n._fullLayout.width,height:n._fullLayout.height,canvas:u,emitter:r,svg:l}),r.clean=function(){n&&document.body.removeChild(n)}},s)}var o=F5e.getRedrawFunc(n);return C7t.call("_doPlot",n,i.data,i.layout,i.config).then(o).then(a).catch(function(s){r.emit("error",s)}),r}L5e.exports=z7t});var R5e=K((MHr,I5e)=>{"use strict";var z5e=my(),I7t={getDelay:z5e.getDelay,getRedrawFunc:z5e.getRedrawFunc,clone:X$(),toSVG:OP(),svgToImg:NP(),toImage:P5e(),downloadImage:kW()};I5e.exports=I7t});var q5e=K(_y=>{"use strict";_y.version=NT().version;pue();Jde();var R7t=Ho(),WM=_y.register=R7t.register,K$=l_e(),B5e=Object.keys(K$);for(B9=0;B9{"use strict";O5e.exports=q5e()});var dm=K((kHr,j5e)=>{"use strict";var fc=Qf(),V5e=zf().axisHoverFormat,{hovertemplateAttrs:B7t,texttemplateAttrs:q7t,templatefallbackAttrs:U5e}=gu(),H5e=Wu(),O7t=lf(),G5e=(i2(),or(r2)),N7t=gh().pattern,jb=Os().extendFlat,J$=O7t({editType:"calc",arrayOk:!0,colorEditType:"style"}),V7t=fc.marker,U7t=V7t.line,G7t=jb({},U7t.width,{dflt:0}),H7t=jb({width:G7t,editType:"calc"},H5e("marker.line")),j7t=jb({line:H7t,editType:"calc"},H5e("marker"),{opacity:{valType:"number",arrayOk:!0,dflt:1,min:0,max:1,editType:"style"},pattern:N7t,cornerradius:{valType:"any",editType:"calc"}});j5e.exports={x:fc.x,x0:fc.x0,dx:fc.dx,y:fc.y,y0:fc.y0,dy:fc.dy,xperiod:fc.xperiod,yperiod:fc.yperiod,xperiod0:fc.xperiod0,yperiod0:fc.yperiod0,xperiodalignment:fc.xperiodalignment,yperiodalignment:fc.yperiodalignment,xhoverformat:V5e("x"),yhoverformat:V5e("y"),text:fc.text,texttemplate:q7t({editType:"plot"},{keys:G5e.eventDataKeys}),texttemplatefallback:U5e({editType:"plot"}),hovertext:fc.hovertext,hovertemplate:B7t({},{keys:G5e.eventDataKeys}),hovertemplatefallback:U5e(),textposition:{valType:"enumerated",values:["inside","outside","auto","none"],dflt:"auto",arrayOk:!0,editType:"calc"},insidetextanchor:{valType:"enumerated",values:["end","middle","start"],dflt:"end",editType:"plot"},textangle:{valType:"angle",dflt:"auto",editType:"plot"},textfont:jb({},J$,{}),insidetextfont:jb({},J$,{}),outsidetextfont:jb({},J$,{}),constraintext:{valType:"enumerated",values:["inside","outside","both","none"],dflt:"both",editType:"calc"},cliponaxis:jb({},fc.cliponaxis,{}),orientation:{valType:"enumerated",values:["v","h"],editType:"calc+clearAxisTypes"},base:{valType:"any",dflt:null,arrayOk:!0,editType:"calc"},offset:{valType:"number",dflt:null,arrayOk:!0,editType:"calc"},width:{valType:"number",dflt:null,min:0,arrayOk:!0,editType:"calc"},marker:j7t,offsetgroup:fc.offsetgroup,alignmentgroup:fc.alignmentgroup,selected:{marker:{opacity:fc.selected.marker.opacity,color:fc.selected.marker.color,editType:"style"},textfont:fc.selected.textfont,editType:"style"},unselected:{marker:{opacity:fc.unselected.marker.opacity,color:fc.unselected.marker.color,editType:"style"},textfont:fc.unselected.textfont,editType:"style"},zorder:fc.zorder}});var O9=K((CHr,W5e)=>{"use strict";W5e.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"}}});var N9=K((DHr,X5e)=>{"use strict";var W7t=wo(),$5e=Kh().hasColorscale,Y5e=xh(),$7t=St().coercePattern;X5e.exports=function(t,r,i,n,a){var o=i("marker.color",n),s=$5e(t,"marker");s&&Y5e(t,r,a,i,{prefix:"marker.",cLetter:"c"}),i("marker.line.color",W7t.defaultLine),$5e(t,"marker.line")&&Y5e(t,r,a,i,{prefix:"marker.line.",cLetter:"c"}),i("marker.line.width"),i("marker.opacity"),$7t(i,"marker.pattern",o,s),i("selected.marker.color"),i("unselected.marker.color")}});var cp=K((FHr,tTe)=>{"use strict";var Z5e=Hs(),bA=St(),K5e=wo(),Y7t=Ho(),X7t=Pb(),Z7t=Jv(),K7t=N9(),J7t=zb(),J5e=dm(),V9=bA.coerceFont;function Q7t(e,t,r,i){function n(u,f){return bA.coerce(e,t,J5e,u,f)}var a=X7t(e,t,i,n);if(!a){t.visible=!1;return}Z7t(e,t,i,n),n("xhoverformat"),n("yhoverformat"),n("zorder"),n("orientation",t.x&&!t.y?"h":"v"),n("base"),n("offset"),n("width"),n("text"),n("hovertext"),n("hovertemplate"),n("hovertemplatefallback");var o=n("textposition");eTe(e,t,i,n,o,{moduleHasSelected:!0,moduleHasUnselected:!0,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),K7t(e,t,n,r,i);var s=(t.marker.line||{}).color,l=Y7t.getComponentMethod("errorbars","supplyDefaults");l(e,t,s||K5e.defaultLine,{axis:"y"}),l(e,t,s||K5e.defaultLine,{axis:"x",inherit:"y"}),bA.coerceSelectionMarkerOpacity(t,n)}function eqt(e,t){var r,i;function n(s,l){return bA.coerce(i._input,i,J5e,s,l)}for(var a=0;a=0)return e}else if(typeof e=="string"&&(e=e.trim(),e.slice(-1)==="%"&&Z5e(e.slice(0,-1))&&(e=+e.slice(0,-1),e>=0)))return e+"%"}function eTe(e,t,r,i,n,a){a=a||{};var o=a.moduleHasSelected!==!1,s=a.moduleHasUnselected!==!1,l=a.moduleHasConstrain!==!1,u=a.moduleHasCliponaxis!==!1,f=a.moduleHasTextangle!==!1,c=a.moduleHasInsideanchor!==!1,h=!!a.hasPathbar,d=Array.isArray(n)||n==="auto",p=d||n==="inside",v=d||n==="outside";if(p||v){var y=V9(i,"textfont",r.font),m=bA.extendFlat({},y),w=e.textfont&&e.textfont.color,_=!w;if(_&&delete m.color,V9(i,"insidetextfont",m),h){var b=bA.extendFlat({},y);_&&delete b.color,V9(i,"pathbar.textfont",b)}v&&V9(i,"outsidetextfont",y),o&&i("selected.textfont.color"),s&&i("unselected.textfont.color"),l&&i("constraintext"),u&&i("cliponaxis"),f&&i("textangle"),i("texttemplate"),i("texttemplatefallback")}p&&c&&i("insidetextanchor")}tTe.exports={supplyDefaults:Q7t,crossTraceDefaults:eqt,handleText:eTe,validateCornerradius:Q5e}});var Q$=K((LHr,rTe)=>{"use strict";var tqt=Ho(),rqt=Cs(),iqt=St(),nqt=O9(),aqt=cp().validateCornerradius;rTe.exports=function(e,t,r){function i(v,y){return iqt.coerce(e,t,nqt,v,y)}for(var n=!1,a=!1,o=!1,s={},l=i("barmode"),u=l==="group",f=0;f0&&!s[h]&&(o=!0),s[h]=!0),c.visible&&c.type==="histogram"){var d=rqt.getFromId({_fullLayout:t},c[c.orientation==="v"?"xaxis":"yaxis"]);d.type!=="category"&&(a=!0)}}if(!n){delete t.barmode;return}l!=="overlay"&&i("barnorm"),i("bargap",a&&!o?0:.2),i("bargroupgap");var p=i("barcornerradius");t.barcornerradius=aqt(p)}});var $M=K((PHr,iTe)=>{"use strict";var _A=St();iTe.exports=function(t,r){for(var i=0;i{"use strict";var nTe=Cs(),aTe=t1(),oTe=Kh().hasColorscale,sTe=T0(),oqt=$M(),sqt=op();lTe.exports=function(t,r){var i=nTe.getFromId(t,r.xaxis||"x"),n=nTe.getFromId(t,r.yaxis||"y"),a,o,s,l,u,f,c={msUTC:!!(r.base||r.base===0)};r.orientation==="h"?(a=i.makeCalcdata(r,"x",c),s=n.makeCalcdata(r,"y"),l=aTe(r,n,"y",s),u=!!r.yperiodalignment,f="y"):(a=n.makeCalcdata(r,"y",c),s=i.makeCalcdata(r,"x"),l=aTe(r,i,"x",s),u=!!r.xperiodalignment,f="x"),o=l.vals;for(var h=Math.min(o.length,a.length),d=new Array(h),p=0;p{"use strict";var lqt=No(),uqt=St();function fqt(e,t,r){var i=e._fullLayout,n=i["_"+r+"Text_minsize"];if(n){var a=i.uniformtext.mode==="hide",o;switch(r){case"funnelarea":case"pie":case"sunburst":o="g.slice";break;case"treemap":case"icicle":o="g.slice, g.pathbar";break;default:o="g.points > g.point"}t.selectAll(o).each(function(s){var l=s.transform;if(l){l.scale=a&&l.hide?0:n/l.fontSize;var u=lqt.select(this).select("text");uqt.setTransormAndDisplay(u,l)}})}}function cqt(e,t,r){if(r.uniformtext.mode){var i=fTe(e),n=r.uniformtext.minsize,a=t.scale*t.fontSize;t.hide=a{"use strict";var dqt=wo(),pqt=Hs(),hTe=St().isArrayOrTypedArray;Wb.coerceString=function(e,t,r){if(typeof t=="string"){if(t||!e.noBlank)return t}else if((typeof t=="number"||t===!0)&&!e.strict)return String(t);return r!==void 0?r:e.dflt};Wb.coerceNumber=function(e,t,r){if(pqt(t)){t=+t;var i=e.min,n=e.max,a=i!==void 0&&tn;if(!a)return t}return r!==void 0?r:e.dflt};Wb.coerceColor=function(e,t,r){return dqt.isValid(t)?t:r!==void 0?r:e.dflt};Wb.coerceEnumerated=function(e,t,r){return e.coerceNumber&&(t=+t),e.values.indexOf(t)!==-1?t:r!==void 0?r:e.dflt};Wb.getValue=function(e,t){var r;return hTe(e)?t{"use strict";var YM=No(),vqt=wo(),XM=Is(),dTe=St(),pTe=Ho(),vTe=E0().resizeText,eY=dm(),mqt=eY.textfont,yqt=eY.insidetextfont,gqt=eY.outsidetextfont,t0=U9();function xqt(e){var t=YM.select(e).selectAll('g[class^="barlayer"]').selectAll("g.trace");vTe(e,t,"bar");var r=t.size(),i=e._fullLayout;t.style("opacity",function(n){return n[0].trace.opacity}).each(function(n){(i.barmode==="stack"&&r>1||i.bargap===0&&i.bargroupgap===0&&!n[0].trace.marker.line.width)&&YM.select(this).attr("shape-rendering","crispEdges")}),t.selectAll("g.points").each(function(n){var a=YM.select(this),o=n[0].trace;mTe(a,o,e)}),pTe.getComponentMethod("errorbars","style")(t)}function mTe(e,t,r){XM.pointStyle(e.selectAll("path"),t,r),yTe(e,t,r)}function yTe(e,t,r){e.selectAll("text").each(function(i){var n=YM.select(this),a=dTe.ensureUniformFontSize(r,gTe(n,i,t,r));XM.font(n,a)})}function bqt(e,t,r){var i=t[0].trace;i.selectedpoints?_qt(r,i,e):(mTe(r,i,e),pTe.getComponentMethod("errorbars","style")(r))}function _qt(e,t,r){XM.selectedPointStyle(e.selectAll("path"),t),wqt(e.selectAll("text"),t,r)}function wqt(e,t,r){e.each(function(i){var n=YM.select(this),a;if(i.selected){a=dTe.ensureUniformFontSize(r,gTe(n,i,t,r));var o=t.selected.textfont&&t.selected.textfont.color;o&&(a.color=o),XM.font(n,a)}else XM.selectedTextStyle(n,t)})}function gTe(e,t,r,i){var n=i._fullLayout.font,a=r.textfont;if(e.classed("bartext-inside")){var o=wTe(t,r);a=bTe(r,t.i,n,o)}else e.classed("bartext-outside")&&(a=_Te(r,t.i,n));return a}function xTe(e,t,r){return tY(mqt,e.textfont,t,r)}function bTe(e,t,r,i){var n=xTe(e,t,r),a=e._input.textfont===void 0||e._input.textfont.color===void 0||Array.isArray(e.textfont.color)&&e.textfont.color[t]===void 0;return a&&(n={color:vqt.contrast(i),family:n.family,size:n.size,weight:n.weight,style:n.style,variant:n.variant,textcase:n.textcase,lineposition:n.lineposition,shadow:n.shadow}),tY(yqt,e.insidetextfont,t,n)}function _Te(e,t,r){var i=xTe(e,t,r);return tY(gqt,e.outsidetextfont,t,i)}function tY(e,t,r,i){t=t||{};var n=t0.getValue(t.family,r),a=t0.getValue(t.size,r),o=t0.getValue(t.color,r),s=t0.getValue(t.weight,r),l=t0.getValue(t.style,r),u=t0.getValue(t.variant,r),f=t0.getValue(t.textcase,r),c=t0.getValue(t.lineposition,r),h=t0.getValue(t.shadow,r);return{family:t0.coerceString(e.family,n,i.family),size:t0.coerceNumber(e.size,a,i.size),color:t0.coerceColor(e.color,o,i.color),weight:t0.coerceString(e.weight,s,i.weight),style:t0.coerceString(e.style,l,i.style),variant:t0.coerceString(e.variant,u,i.variant),textcase:t0.coerceString(e.variant,f,i.textcase),lineposition:t0.coerceString(e.variant,c,i.lineposition),shadow:t0.coerceString(e.variant,h,i.shadow)}}function wTe(e,t){return t.type==="waterfall"?t[e.dir].marker.color:e.mcc||e.mc||t.marker.color}ATe.exports={style:xqt,styleTextPoints:yTe,styleOnSelect:bqt,getInsideTextFont:bTe,getOutsideTextFont:_Te,getBarColor:wTe,resizeText:vTe}});var Yb=K((qHr,FTe)=>{"use strict";var G9=No(),H9=Hs(),Ih=St(),Aqt=Du(),Tqt=wo(),c2=Is(),Mqt=Ho(),j9=Cs().tickText,TTe=E0(),Sqt=TTe.recordMinTextSize,Eqt=TTe.clearMinTextSize,rY=tv(),wA=U9(),kqt=(i2(),or(r2)),MTe=dm(),Cqt=MTe.text,Dqt=MTe.textposition,Fqt=ud().appendArrayPointValue,X0=kqt.TEXTPAD;function Lqt(e){return e.id}function Pqt(e){if(e.ids)return Lqt}function iY(e){return(e>0)-(e<0)}function f1(e,t){return e0}function Iqt(e,t,r,i,n,a){var o=t.xaxis,s=t.yaxis,l=e._fullLayout,u=e._context.staticPlot;n||(n={mode:l.barmode,norm:l.barmode,gap:l.bargap,groupgap:l.bargroupgap},Eqt("bar",l));var f=Ih.makeTraceGroups(i,r,"trace bars").each(function(c){var h=G9.select(this),d=c[0].trace,p=c[0].t,v=d.type==="waterfall",y=d.type==="funnel",m=d.type==="histogram",w=d.type==="bar",_=w||y,b=0;v&&d.connector.visible&&d.connector.mode==="between"&&(b=d.connector.line.width/2);var M=d.orientation==="h",x=ETe(n),T=Ih.ensureSingle(h,"g","points"),A=Pqt(d),g=T.selectAll("g.point").data(Ih.identity,A);g.enter().append("g").classed("point",!0),g.exit().remove(),g.each(function(S,C){var k=G9.select(this),D=zqt(S,o,s,M),F=D[0][0],P=D[0][1],I=D[1][0],L=D[1][1],z=(M?P-F:L-I)===0;z&&_&&wA.getLineWidth(d,S)&&(z=!1),z||(z=!H9(F)||!H9(P)||!H9(I)||!H9(L)),S.isBlank=z,z&&(M?P=F:L=I),b&&!z&&(M?(F-=f1(F,P)*b,P+=f1(F,P)*b):(I-=f1(I,L)*b,L+=f1(I,L)*b));var B,O;if(d.type==="waterfall"){if(!z){var W=d[S.dir].marker;B=W.line.width,O=W.color}}else B=wA.getLineWidth(d,S),O=S.mc||d.marker.color;function X(V){var ue=G9.round(B/2%1,2);return n.gap===0&&n.groupgap===0?G9.round(Math.round(V)-ue,2):V}function Z(V,ue,_e){return _e&&V===ue?V:Math.abs(V-ue)>=2?X(V):V>ue?Math.ceil(V):Math.floor(V)}var H=Tqt.opacity(O),q=H<1||B>.01?X:Z;e._context.staticPlot||(F=q(F,P,M),P=q(P,F,M),I=q(I,L,!M),L=q(L,I,!M));var Q=M?o.c2p:s.c2p,N;S.s0>0?N=S._sMax:S.s0<0?N=S._sMin:N=S.s1>0?S._sMax:S._sMin;function U(V,ue){if(!V)return 0;var _e=Math.abs(M?L-I:P-F),xe=Math.abs(M?P-F:L-I),Ae=q(Math.abs(Q(N,!0)-Q(0,!0))),se=S.hasB?Math.min(_e/2,xe/2):Math.min(_e/2,Ae),pe;if(ue==="%"){var fe=Math.min(50,V);pe=_e*(fe/100)}else pe=V;return q(Math.max(Math.min(pe,se),0))}var J=w||m?U(p.cornerradiusvalue,p.cornerradiusform):0,j,$,ie="M"+F+","+I+"V"+L+"H"+P+"V"+I+"Z",re=0;if(J&&S.s){var de=iY(S.s0)===0||iY(S.s)===iY(S.s0)?S.s1:S.s0;if(re=q(S.hasB?0:Math.abs(Q(N,!0)-Q(de,!0))),re0?Math.sqrt(re*(2*J-re)):0,Ee=me>0?Math.max:Math.min;j="M"+F+","+I+"V"+(L-le*ze)+"H"+Ee(P-(J-re)*me,F)+"A "+J+","+J+" 0 0 "+ke+" "+P+","+(L-J*ze-te)+"V"+(I+J*ze+te)+"A "+J+","+J+" 0 0 "+ke+" "+Ee(P-(J-re)*me,F)+","+(I+le*ze)+"Z"}else if(S.hasB)j="M"+(F+J*me)+","+I+"A "+J+","+J+" 0 0 "+ke+" "+F+","+(I+J*ze)+"V"+(L-J*ze)+"A "+J+","+J+" 0 0 "+ke+" "+(F+J*me)+","+L+"H"+(P-J*me)+"A "+J+","+J+" 0 0 "+ke+" "+P+","+(L-J*ze)+"V"+(I+J*ze)+"A "+J+","+J+" 0 0 "+ke+" "+(P-J*me)+","+I+"Z";else{$=Math.abs(L-I)+re;var we=$0?Math.sqrt(re*(2*J-re)):0,Y=ze>0?Math.max:Math.min;j="M"+(F+we*me)+","+I+"V"+Y(L-(J-re)*ze,I)+"A "+J+","+J+" 0 0 "+ke+" "+(F+J*me-oe)+","+L+"H"+(P-J*me+oe)+"A "+J+","+J+" 0 0 "+ke+" "+(P-we*me)+","+Y(L-(J-re)*ze,I)+"V"+I+"Z"}}else j=ie}else j=ie;var ne=STe(Ih.ensureSingle(k,"path"),l,n,a);if(ne.style("vector-effect",u?"none":"non-scaling-stroke").attr("d",isNaN((P-F)*(L-I))||z&&e._context.staticPlot?"M0,0Z":j).call(c2.setClipUrl,t.layerClipId,e),!l.uniformtext.mode&&x){var ye=c2.makePointStyleFns(d);c2.singlePointStyle(S,ne,d,ye,e)}Rqt(e,t,k,c,C,F,P,I,L,J,re,n,a),t.layerClipId&&c2.hideOutsideRangePoint(S,k.select("text"),o,s,d.xcalendar,d.ycalendar)});var E=d.cliponaxis===!1;c2.setClipUrl(h,E?null:t.layerClipId,e)});Mqt.getComponentMethod("errorbars","plot")(e,f,t,n)}function Rqt(e,t,r,i,n,a,o,s,l,u,f,c,h){var d=t.xaxis,p=t.yaxis,v=e._fullLayout,y;function m(ie,re,de){var me=Ih.ensureSingle(ie,"text").text(re).attr({class:"bartext bartext-"+y,"text-anchor":"middle","data-notex":1}).call(c2.font,de).call(Aqt.convertToTspans,e);return me}var w=i[0].trace,_=w.orientation==="h",b=Vqt(i,_,d,p),M=Oqt(v,i,n,d,p);y=Nqt(w,n);var x=c.mode==="stack"||c.mode==="relative",T=i[n],A=!x||T._outmost,g=T.hasB,E=u&&u-f>X0;if(!M||y==="none"||(T.isBlank||a===o||s===l)&&(y==="auto"||y==="inside")){r.select("text").remove();return}var S=v.font,C=rY.getBarColor(i[n],w),k=rY.getInsideTextFont(w,n,S,C),D=rY.getOutsideTextFont(w,n,S),F=w.insidetextanchor||"end",P=r.datum();_?d.type==="log"&&P.s0<=0&&(d.range[0]0&&Z>0,Q;E?g?Q=$b(z-2*u,B,X,Z,_)||$b(z,B-2*u,X,Z,_):_?Q=$b(z-(u-f),B,X,Z,_)||$b(z,B-2*(u-f),X,Z,_):Q=$b(z,B-(u-f),X,Z,_)||$b(z-2*(u-f),B,X,Z,_):Q=$b(z,B,X,Z,_),q&&Q?y="inside":(y="outside",O.remove(),O=null)}else y="inside";if(!O){H=Ih.ensureUniformFontSize(e,y==="outside"?D:k),O=m(r,M,H);var N=O.attr("transform");if(O.attr("transform",""),W=c2.bBox(O.node()),X=W.width,Z=W.height,O.attr("transform",N),X<=0||Z<=0){O.remove();return}}var U=w.textangle,J,j;y==="outside"?(j=w.constraintext==="both"||w.constraintext==="outside",J=qqt(a,o,s,l,W,{isHorizontal:_,constrained:j,angle:U,zeroBarDir:b})):(j=w.constraintext==="both"||w.constraintext==="inside",J=DTe(a,o,s,l,W,{isHorizontal:_,constrained:j,angle:U,anchor:F,hasB:g,r:u,overhead:f})),J.fontSize=H.size,Sqt(w.type==="histogram"?"bar":w.type,J,v),T.transform=J;var $=STe(O,v,c,h);Ih.setTransormAndDisplay($,J)}function $b(e,t,r,i,n){if(e<0||t<0)return!1;var a=r<=e&&i<=t,o=r<=t&&i<=e,s=n?e>=r*(t/i):t>=i*(e/r);return a||o||s}function kTe(e){return e==="auto"?0:e}function CTe(e,t){var r=Math.PI/180*t,i=Math.abs(Math.sin(r)),n=Math.abs(Math.cos(r));return{x:e.width*n+e.height*i,y:e.width*i+e.height*n}}function DTe(e,t,r,i,n,a){var o=!!a.isHorizontal,s=!!a.constrained,l=a.angle||0,u=a.anchor,f=u==="end",c=u==="start",h=a.leftToRight||0,d=(h+1)/2,p=1-d,v=a.hasB,y=a.r,m=a.overhead,w=n.width,_=n.height,b=Math.abs(t-e),M=Math.abs(i-r),x=b>2*X0&&M>2*X0?X0:0;b-=2*x,M-=2*x;var T=kTe(l);l==="auto"&&!(w<=b&&_<=M)&&(w>b||_>M)&&(!(w>M||_>b)||w<_!=bX0){var S=Bqt(e,t,r,i,A,y,m,o,v);g=S.scale,E=S.pad}else g=1,s&&(g=Math.min(1,b/A.x,M/A.y)),E=0;var C=n.left*p+n.right*d,k=(n.top+n.bottom)/2,D=(e+X0)*p+(t-X0)*d,F=(r+i)/2,P=0,I=0;if(c||f){var L=(o?A.x:A.y)/2;y&&(f||v)&&(x+=E);var z=o?f1(e,t):f1(r,i);o?c?(D=e+z*x,P=-z*L):(D=t-z*x,P=z*L):c?(F=r+z*x,I=-z*L):(F=i-z*x,I=z*L)}return{textX:C,textY:k,targetX:D,targetY:F,anchorX:P,anchorY:I,scale:g,rotate:T}}function Bqt(e,t,r,i,n,a,o,s,l){var u=Math.max(0,Math.abs(t-e)-2*X0),f=Math.max(0,Math.abs(i-r)-2*X0),c=a-X0,h=o?c-Math.sqrt(c*c-(c-o)*(c-o)):c,d=l?c*2:s?c-o:2*h,p=l?c*2:s?2*h:c-o,v,y,m,w,_;return n.y/n.x>=f/(u-d)?w=f/n.y:n.y/n.x<=(f-p)/u?w=u/n.x:!l&&s?(v=n.x*n.x+n.y*n.y/4,y=-2*n.x*(u-c)-n.y*(f/2-c),m=(u-c)*(u-c)+(f/2-c)*(f/2-c)-c*c,w=(-y+Math.sqrt(y*y-4*v*m))/(2*v)):l?(v=(n.x*n.x+n.y*n.y)/4,y=-n.x*(u/2-c)-n.y*(f/2-c),m=(u/2-c)*(u/2-c)+(f/2-c)*(f/2-c)-c*c,w=(-y+Math.sqrt(y*y-4*v*m))/(2*v)):(v=n.x*n.x/4+n.y*n.y,y=-n.x*(u/2-c)-2*n.y*(f-c),m=(u/2-c)*(u/2-c)+(f-c)*(f-c)-c*c,w=(-y+Math.sqrt(y*y-4*v*m))/(2*v)),w=Math.min(1,w),s?_=Math.max(0,c-Math.sqrt(Math.max(0,c*c-(c-(f-n.y*w)/2)*(c-(f-n.y*w)/2)))-o):_=Math.max(0,c-Math.sqrt(Math.max(0,c*c-(c-(u-n.x*w)/2)*(c-(u-n.x*w)/2)))-o),{scale:w,pad:_}}function qqt(e,t,r,i,n,a){var o=!!a.isHorizontal,s=!!a.constrained,l=a.angle||0,u=n.width,f=n.height,c=Math.abs(t-e),h=Math.abs(i-r),d;o?d=h>2*X0?X0:0:d=c>2*X0?X0:0;var p=1;s&&(p=o?Math.min(1,h/f):Math.min(1,c/u));var v=kTe(l),y=CTe(n,v),m=(o?y.x:y.y)/2,w=(n.left+n.right)/2,_=(n.top+n.bottom)/2,b=(e+t)/2,M=(r+i)/2,x=0,T=0,A;return(o?e===t:r===i)&&a.zeroBarDir?A=a.zeroBarDir:A=o?f1(t,e):f1(r,i),o?(b=t-A*d,x=A*m):(M=i+A*d,T=-A*m),{textX:w,textY:_,targetX:b,targetY:M,anchorX:x,anchorY:T,scale:p,rotate:v}}function Oqt(e,t,r,i,n){var a=t[0].trace,o=a.texttemplate,s;return o?s=Uqt(e,t,r,i,n):a.textinfo?s=Gqt(t,r,i,n):s=wA.getValue(a.text,r),wA.coerceString(Cqt,s)}function Nqt(e,t){var r=wA.getValue(e.textposition,t);return wA.coerceEnumerated(Dqt,r)}function Vqt(e,t,r,i){for(var n=!1,a=!1,o=0;o0?n=!0:s<0&&(a=!0),n&&a)return 0}var l=t?r:i,u=-f1(l.range[0],l.range[1]);return a?n?0:-u:u}function Uqt(e,t,r,i,n){var a=t[0].trace,o=Ih.castOption(a,r,"texttemplate");if(!o)return"";var s=a.type==="histogram",l=a.type==="waterfall",u=a.type==="funnel",f=a.orientation==="h",c,h,d,p;f?(c="y",h=n,d="x",p=i):(c="x",h=i,d="y",p=n);function v(x){return j9(h,h.c2l(x),!0).text}function y(x){return j9(p,p.c2l(x),!0).text}var m=t[r],w={};w.label=m.p,w.labelLabel=w[c+"Label"]=v(m.p);var _=Ih.castOption(a,m.i,"text");(_===0||_)&&(w.text=_),w.value=m.s,w.valueLabel=w[d+"Label"]=y(m.s);var b={};Fqt(b,a,m.i),(s||b.x===void 0)&&(b.x=f?w.value:w.label),(s||b.y===void 0)&&(b.y=f?w.label:w.value),(s||b.xLabel===void 0)&&(b.xLabel=f?w.valueLabel:w.labelLabel),(s||b.yLabel===void 0)&&(b.yLabel=f?w.labelLabel:w.valueLabel),l&&(w.delta=+m.rawS||m.s,w.deltaLabel=y(w.delta),w.final=m.v,w.finalLabel=y(w.final),w.initial=w.final-w.delta,w.initialLabel=y(w.initial)),u&&(w.value=m.s,w.valueLabel=y(w.value),w.percentInitial=m.begR,w.percentInitialLabel=Ih.formatPercent(m.begR),w.percentPrevious=m.difR,w.percentPreviousLabel=Ih.formatPercent(m.difR),w.percentTotal=m.sumR,w.percentTotalLabel=Ih.formatPercent(m.sumR));var M=Ih.castOption(a,m.i,"customdata");return M&&(w.customdata=M),Ih.texttemplateString({data:[b,w,a._meta],fallback:a.texttemplatefallback,labels:w,locale:e._d3locale,template:o})}function Gqt(e,t,r,i){var n=e[0].trace,a=n.orientation==="h",o=n.type==="waterfall",s=n.type==="funnel";function l(M){var x=a?i:r;return j9(x,M,!0).text}function u(M){var x=a?r:i;return j9(x,+M,!0).text}var f=n.textinfo,c=e[t],h=f.split("+"),d=[],p,v=function(M){return h.indexOf(M)!==-1};if(v("label")&&d.push(l(e[t].p)),v("text")&&(p=Ih.castOption(n,c.i,"text"),(p===0||p)&&d.push(p)),o){var y=+c.rawS||c.s,m=c.v,w=m-y;v("initial")&&d.push(u(w)),v("delta")&&d.push(u(y)),v("final")&&d.push(u(m))}if(s){v("value")&&d.push(u(c.s));var _=0;v("percent initial")&&_++,v("percent previous")&&_++,v("percent total")&&_++;var b=_>1;v("percent initial")&&(p=Ih.formatPercent(c.begR),b&&(p+=" of initial"),d.push(p)),v("percent previous")&&(p=Ih.formatPercent(c.difR),b&&(p+=" of previous"),d.push(p)),v("percent total")&&(p=Ih.formatPercent(c.sumR),b&&(p+=" of total"),d.push(p))}return d.join("
")}FTe.exports={plot:Iqt,toMoveInsideBar:DTe}});var AA=K((OHr,ITe)=>{"use strict";var ZM=Gf(),Hqt=Ho(),LTe=wo(),jqt=St().fillText,Wqt=U9().getLineWidth,nY=Cs().hoverLabelText,$qt=(Il(),or(Bl)).BADNUM;function Yqt(e,t,r,i,n){var a=PTe(e,t,r,i,n);if(a){var o=a.cd,s=o[0].trace,l=o[a.index];return a.color=zTe(s,l),Hqt.getComponentMethod("errorbars","hoverInfo")(l,s,a),[a]}}function PTe(e,t,r,i,n){var a=e.cd,o=a[0].trace,s=a[0].t,l=i==="closest",u=o.type==="waterfall",f=e.maxHoverDistance,c=e.maxSpikeDistance,h,d,p,v,y,m,w;o.orientation==="h"?(h=r,d=t,p="y",v="x",y=F,m=C):(h=t,d=r,p="x",v="y",m=F,y=C);var _=o[p+"period"],b=l||_;function M(q){return T(q,-1)}function x(q){return T(q,1)}function T(q,Q){var N=q.w;return q[p]+Q*N/2}function A(q){return q[p+"End"]-q[p+"Start"]}var g=l?M:_?function(q){return q.p-A(q)/2}:function(q){return Math.min(M(q),q.p-s.bardelta/2)},E=l?x:_?function(q){return q.p+A(q)/2}:function(q){return Math.max(x(q),q.p+s.bardelta/2)};function S(q,Q,N){return n.finiteRange&&(N=0),ZM.inbox(q-h,Q-h,N+Math.min(1,Math.abs(Q-q)/w)-1)}function C(q){return S(g(q),E(q),f)}function k(q){return S(M(q),x(q),c)}function D(q){var Q=q[v];if(u){var N=Math.abs(q.rawS)||0;d>0?Q+=N:d<0&&(Q-=N)}return Q}function F(q){var Q=d,N=q.b,U=D(q);return ZM.inbox(N-Q,U-Q,f+(U-Q)/(U-N)-1)}function P(q){var Q=d,N=q.b,U=D(q);return ZM.inbox(N-Q,U-Q,c+(U-Q)/(U-N)-1)}var I=e[p+"a"],L=e[v+"a"];w=Math.abs(I.r2c(I.range[1])-I.r2c(I.range[0]));function z(q){return(y(q)+m(q))/2}var B=ZM.getDistanceFunction(i,y,m,z);if(ZM.getClosest(a,B,e),e.index!==!1&&a[e.index].p!==$qt){b||(g=function(q){return Math.min(M(q),q.p-s.bargroupwidth/2)},E=function(q){return Math.max(x(q),q.p+s.bargroupwidth/2)});var O=e.index,W=a[O],X=o.base?W.b+W.s:W.s;e[v+"0"]=e[v+"1"]=L.c2p(W[v],!0),e[v+"LabelVal"]=X;var Z=s.extents[s.extents.round(W.p)];e[p+"0"]=I.c2p(l?g(W):Z[0],!0),e[p+"1"]=I.c2p(l?E(W):Z[1],!0);var H=W.orig_p!==void 0;return e[p+"LabelVal"]=H?W.orig_p:W.p,e.labelLabel=nY(I,e[p+"LabelVal"],o[p+"hoverformat"]),e.valueLabel=nY(L,e[v+"LabelVal"],o[v+"hoverformat"]),e.baseLabel=nY(L,W.b,o[v+"hoverformat"]),e.spikeDistance=(P(W)+k(W))/2,e[p+"Spike"]=I.c2p(W.p,!0),jqt(W,o,e),e.hovertemplate=o.hovertemplate,e}}function zTe(e,t){var r=t.mcc||e.marker.color,i=t.mlcc||e.marker.line.color,n=Wqt(e,t);if(LTe.opacity(r))return r;if(LTe.opacity(i)&&n)return i}ITe.exports={hoverPoints:Yqt,hoverOnBars:PTe,getTraceColor:zTe}});var BTe=K((NHr,RTe)=>{"use strict";RTe.exports=function(t,r,i){return t.x="xVal"in r?r.xVal:r.x,t.y="yVal"in r?r.yVal:r.y,r.xa&&(t.xaxis=r.xa),r.ya&&(t.yaxis=r.ya),i.orientation==="h"?(t.label=t.y,t.value=t.x):(t.label=t.x,t.value=t.y),t}});var TA=K((VHr,qTe)=>{"use strict";qTe.exports=function(t,r){var i=t.cd,n=t.xaxis,a=t.yaxis,o=i[0].trace,s=o.type==="funnel",l=o.orientation==="h",u=[],f;if(r===!1)for(f=0;f{"use strict";OTe.exports={attributes:dm(),layoutAttributes:O9(),supplyDefaults:cp().supplyDefaults,crossTraceDefaults:cp().crossTraceDefaults,supplyLayoutDefaults:Q$(),calc:uTe(),crossTraceCalc:Ib().crossTraceCalc,colorbar:e0(),arraysToCalcdata:$M(),plot:Yb().plot,style:tv().style,styleOnSelect:tv().styleOnSelect,hoverPoints:AA().hoverPoints,eventData:BTe(),selectPoints:TA(),moduleType:"trace",name:"bar",basePlotModule:gc(),categories:["bar-like","cartesian","svg","bar","oriented","errorBarsOK","showLegend","zoomScale"],animatable:!0,meta:{}}});var UTe=K((GHr,VTe)=>{"use strict";VTe.exports=NTe()});var KM=K((HHr,WTe)=>{"use strict";var Zqt=sm(),rv=Qf(),GTe=dm(),Kqt=Gc(),HTe=zf().axisHoverFormat,{hovertemplateAttrs:Jqt,templatefallbackAttrs:Qqt}=gu(),wy=Os().extendFlat,MA=rv.marker,jTe=MA.line;WTe.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:rv.xperiod,yperiod:rv.yperiod,xperiod0:rv.xperiod0,yperiod0:rv.yperiod0,xperiodalignment:rv.xperiodalignment,yperiodalignment:rv.yperiodalignment,xhoverformat:HTe("x"),yhoverformat:HTe("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:wy({},MA.symbol,{arrayOk:!1,editType:"plot"}),opacity:wy({},MA.opacity,{arrayOk:!1,dflt:1,editType:"style"}),angle:wy({},MA.angle,{arrayOk:!1,editType:"calc"}),size:wy({},MA.size,{arrayOk:!1,editType:"calc"}),color:wy({},MA.color,{arrayOk:!1,editType:"style"}),line:{color:wy({},jTe.color,{arrayOk:!1,dflt:Kqt.defaultLine,editType:"style"}),width:wy({},jTe.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:Zqt(),whiskerwidth:{valType:"number",min:0,max:1,dflt:.5,editType:"calc"},showwhiskers:{valType:"boolean",editType:"calc"},offsetgroup:GTe.offsetgroup,alignmentgroup:GTe.alignmentgroup,selected:{marker:rv.selected.marker,editType:"style"},unselected:{marker:rv.unselected.marker,editType:"style"},text:wy({},rv.text,{}),hovertext:wy({},rv.hovertext,{}),hovertemplate:Jqt({}),hovertemplatefallback:Qqt(),hoveron:{valType:"flaglist",flags:["boxes","points"],dflt:"boxes+points",editType:"style"},zorder:rv.zorder}});var JM=K((jHr,$Te)=>{"use strict";$Te.exports={boxmode:{valType:"enumerated",values:["group","overlay"],dflt:"overlay",editType:"calc"},boxgap:{valType:"number",min:0,max:1,dflt:.3,editType:"calc"},boxgroupgap:{valType:"number",min:0,max:1,dflt:.3,editType:"calc"}}});var eS=K((WHr,KTe)=>{"use strict";var iv=St(),eOt=Ho(),tOt=wo(),rOt=Jv(),iOt=zb(),YTe=Rw(),QM=KM();function nOt(e,t,r,i){function n(p,v){return iv.coerce(e,t,QM,p,v)}if(XTe(e,t,n,i),t.visible!==!1){rOt(e,t,i,n),n("xhoverformat"),n("yhoverformat");var a=t._hasPreCompStats;a&&(n("lowerfence"),n("upperfence")),n("line.color",(e.marker||{}).color||r),n("line.width"),n("fillcolor",tOt.addOpacity(t.line.color,.5));var o=!1;if(a){var s=n("mean"),l=n("sd");s&&s.length&&(o=!0,l&&l.length&&(o="sd"))}n("whiskerwidth");var u=n("sizemode"),f;u==="quartiles"&&(f=n("boxmean",o)),n("showwhiskers",u==="quartiles"),(u==="sd"||f==="sd")&&n("sdmultiple"),n("width"),n("quartilemethod");var c=!1;if(a){var h=n("notchspan");h&&h.length&&(c=!0)}else iv.validate(e.notchwidth,QM.notchwidth)&&(c=!0);var d=n("notched",c);d&&n("notchwidth"),ZTe(e,t,n,{prefix:"box"}),n("zorder")}}function XTe(e,t,r,i){function n(E){var S=0;return E&&E.length&&(S+=1,iv.isArrayOrTypedArray(E[0])&&E[0].length&&(S+=1)),S}function a(E){return iv.validate(e[E],QM[E])}var o=r("y"),s=r("x"),l;if(t.type==="box"){var u=r("q1"),f=r("median"),c=r("q3");t._hasPreCompStats=u&&u.length&&f&&f.length&&c&&c.length,l=Math.min(iv.minRowLength(u),iv.minRowLength(f),iv.minRowLength(c))}else t._hasPreCompStats=!1;var h=n(o),d=n(s),p=h&&iv.minRowLength(o),v=d&&iv.minRowLength(s),y=i.calendar,m={autotypenumbers:i.autotypenumbers},w,_;if(t._hasPreCompStats)switch(String(d)+String(h)){case"00":var b=a("x0")||a("dx"),M=a("y0")||a("dy");M&&!b?w="h":w="v",_=l;break;case"10":w="v",_=Math.min(l,v);break;case"20":w="h",_=Math.min(l,s.length);break;case"01":w="h",_=Math.min(l,p);break;case"02":w="v",_=Math.min(l,o.length);break;case"12":w="v",_=Math.min(l,v,o.length);break;case"21":w="h",_=Math.min(l,s.length,p);break;case"11":_=0;break;case"22":var x=!1,T;for(T=0;T0?(w="v",d>0?_=Math.min(v,p):_=Math.min(p)):d>0?(w="h",_=Math.min(v)):_=0;if(!_){t.visible=!1;return}t._length=_;var A=r("orientation",w);t._hasPreCompStats?A==="v"&&d===0?(r("x0",0),r("dx",1)):A==="h"&&h===0&&(r("y0",0),r("dy",1)):A==="v"&&d===0?r("x0"):A==="h"&&h===0&&r("y0");var g=eOt.getComponentMethod("calendars","handleTraceDefaults");g(e,t,["x","y"],i)}function ZTe(e,t,r,i){var n=i.prefix,a=iv.coerce2(e,t,QM,"marker.outliercolor"),o=r("marker.line.outliercolor"),s="outliers";t._hasPreCompStats?s="all":(a||o)&&(s="suspectedoutliers");var l=r(n+"points",s);l?(r("jitter",l==="all"?.3:0),r("pointpos",l==="all"?-1.5:0),r("marker.symbol"),r("marker.opacity"),r("marker.size"),r("marker.angle"),r("marker.color",t.line.color),r("marker.line.color"),r("marker.line.width"),l==="suspectedoutliers"&&(r("marker.line.outliercolor",t.marker.color),r("marker.line.outlierwidth")),r("selected.marker.color"),r("unselected.marker.color"),r("selected.marker.size"),r("unselected.marker.size"),r("text"),r("hovertext")):delete t.marker;var u=r("hoveron");(u==="all"||u.indexOf("points")!==-1)&&(r("hovertemplate"),r("hovertemplatefallback")),iv.coerceSelectionMarkerOpacity(t,r)}function aOt(e,t){var r,i;function n(l){return iv.coerce(i._input,i,QM,l)}for(var a=0;a{"use strict";var oOt=Ho(),sOt=St(),lOt=JM();function JTe(e,t,r,i,n){for(var a=n+"Layout",o=!1,s=0;s{"use strict";var oY=Hs(),$9=Cs(),fOt=t1(),Pc=St(),hp=(Il(),or(Bl)).BADNUM,Ay=Pc._;l6e.exports=function(t,r){var i=t._fullLayout,n=$9.getFromId(t,r.xaxis||"x"),a=$9.getFromId(t,r.yaxis||"y"),o=[],s=r.type==="violin"?"_numViolins":"_numBoxes",l,u,f,c,h,d,p;r.orientation==="h"?(f=n,c="x",h=a,d="y",p=!!r.yperiodalignment):(f=a,c="y",h=n,d="x",p=!!r.xperiodalignment);var v=cOt(r,d,h,i[s]),y=v[0],m=v[1],w=Pc.distinctVals(y,h),_=w.vals,b=w.minDiff/2,M,x,T,A,g,E,S=(r.boxpoints||r.points)==="all"?Pc.identity:function(ke){return ke.vM.uf};if(r._hasPreCompStats){var C=r[c],k=function(ke){return f.d2c((r[ke]||[])[l])},D=1/0,F=-1/0;for(l=0;l=M.q1&&M.q3>=M.med){var I=k("lowerfence");M.lf=I!==hp&&I<=M.q1?I:i6e(M,T,A);var L=k("upperfence");M.uf=L!==hp&&L>=M.q3?L:n6e(M,T,A);var z=k("mean");M.mean=z!==hp?z:A?Pc.mean(T,A):(M.q1+M.q3)/2;var B=k("sd");M.sd=z!==hp&&B>=0?B:A?Pc.stdev(T,A,M.mean):M.q3-M.q1,M.lo=a6e(M),M.uo=o6e(M);var O=k("notchspan");O=O!==hp&&O>0?O:s6e(M,A),M.ln=M.med-O,M.un=M.med+O;var W=M.lf,X=M.uf;r.boxpoints&&T.length&&(W=Math.min(W,T[0]),X=Math.max(X,T[A-1])),r.notched&&(W=Math.min(W,M.ln),X=Math.max(X,M.un)),M.min=W,M.max=X}else{Pc.warn(["Invalid input - make sure that q1 <= median <= q3","q1 = "+M.q1,"median = "+M.med,"q3 = "+M.q3].join(` +`));var Z;M.med!==hp?Z=M.med:M.q1!==hp?M.q3!==hp?Z=(M.q1+M.q3)/2:Z=M.q1:M.q3!==hp?Z=M.q3:Z=0,M.med=Z,M.q1=M.q3=Z,M.lf=M.uf=Z,M.mean=M.sd=Z,M.ln=M.un=Z,M.min=M.max=Z}D=Math.min(D,M.min),F=Math.max(F,M.max),M.pts2=x.filter(S),o.push(M)}}r._extremes[f._id]=$9.findExtremes(f,[D,F],{padded:!0})}else{var H=f.makeCalcdata(r,c),q=hOt(_,b),Q=_.length,N=dOt(Q);for(l=0;l=0&&U0){if(M={},M.pos=M[d]=_[l],x=M.pts=N[l].sort(t6e),T=M[c]=x.map(r6e),A=T.length,M.min=T[0],M.max=T[A-1],M.mean=Pc.mean(T,A),M.sd=Pc.stdev(T,A,M.mean)*r.sdmultiple,M.med=Pc.interp(T,.5),A%2&&(ie||re)){var de,me;ie?(de=T.slice(0,A/2),me=T.slice(A/2+1)):re&&(de=T.slice(0,A/2+1),me=T.slice(A/2)),M.q1=Pc.interp(de,.5),M.q3=Pc.interp(me,.5)}else M.q1=Pc.interp(T,.25),M.q3=Pc.interp(T,.75);M.lf=i6e(M,T,A),M.uf=n6e(M,T,A),M.lo=a6e(M),M.uo=o6e(M);var ze=s6e(M,A);M.ln=M.med-ze,M.un=M.med+ze,J=Math.min(J,M.ln),j=Math.max(j,M.un),M.pts2=x.filter(S),o.push(M)}r.notched&&Pc.isTypedArray(H)&&(H=Array.from(H)),r._extremes[f._id]=$9.findExtremes(f,r.notched?H.concat([J,j]):H,{padded:!0})}return pOt(o,r),o.length>0?(o[0].t={num:i[s],dPos:b,posLetter:d,valLetter:c,labels:{med:Ay(t,"median:"),min:Ay(t,"min:"),q1:Ay(t,"q1:"),q3:Ay(t,"q3:"),max:Ay(t,"max:"),mean:r.boxmean==="sd"||r.sizemode==="sd"?Ay(t,"mean \xB1 \u03C3:").replace("\u03C3",r.sdmultiple===1?"\u03C3":r.sdmultiple+"\u03C3"):Ay(t,"mean:"),lf:Ay(t,"lower fence:"),uf:Ay(t,"upper fence:")}},i[s]++,o):[{t:{empty:!0}}]};function cOt(e,t,r,i){var n=t in e,a=t+"0"in e,o="d"+t in e;if(n||a&&o){var s=r.makeCalcdata(e,t),l=fOt(e,r,t,s).vals;return[l,s]}var u;a?u=e[t+"0"]:"name"in e&&(r.type==="category"||oY(e.name)&&["linear","log"].indexOf(r.type)!==-1||Pc.isDateTime(e.name)&&r.type==="date")?u=e.name:u=i;for(var f=r.type==="multicategory"?r.r2c_just_indices(u):r.d2c(u,0,e[t+"calendar"]),c=e._length,h=new Array(c),d=0;d{"use strict";var u6e=Cs(),vOt=St(),mOt=Cb().getAxisGroup,f6e=["v","h"];function yOt(e,t){for(var r=e.calcdata,i=t.xaxis,n=t.yaxis,a=0;a1,w=1-a[e+"gap"],_=1-a[e+"groupgap"];for(l=0;l0;if(T==="positive"?(L=A*(x?1:.5),O=B,z=O=E):T==="negative"?(L=O=E,z=A*(x?1:.5),W=B):(L=z=A,O=W=B),N){var U=b.pointpos,J=b.jitter,j=b.marker.size/2,$=0;U+J>=0&&($=B*(U+J),$>L?(Q=!0,H=j,X=$):$>O&&(H=j,X=L)),$<=L&&(X=L);var ie=0;U-J<=0&&(ie=-B*(U-J),ie>z?(Q=!0,q=j,Z=ie):ie>W&&(q=j,Z=z)),ie<=z&&(Z=z)}else X=L,Z=z;var re=new Array(f.length);for(u=0;u{"use strict";var SA=No(),Xb=St(),gOt=Is(),d6e=5,xOt=.01;function bOt(e,t,r,i){var n=e._context.staticPlot,a=t.xaxis,o=t.yaxis;Xb.makeTraceGroups(i,r,"trace boxes").each(function(s){var l=SA.select(this),u=s[0],f=u.t,c=u.trace;if(f.wdPos=f.bdPos*c.whiskerwidth,c.visible!==!0||f.empty){l.remove();return}var h,d;c.orientation==="h"?(h=o,d=a):(h=a,d=o),p6e(l,{pos:h,val:d},c,f,n),v6e(l,{x:a,y:o},c,f),m6e(l,{pos:h,val:d},c,f)})}function p6e(e,t,r,i,n){var a=r.orientation==="h",o=t.val,s=t.pos,l=!!s.rangebreaks,u=i.bPos,f=i.wdPos||0,c=i.bPosPxOffset||0,h=r.whiskerwidth||0,d=r.showwhiskers!==!1,p=r.notched||!1,v=p?1-2*r.notchwidth:1,y,m;Array.isArray(i.bdPos)?(y=i.bdPos[0],m=i.bdPos[1]):(y=i.bdPos,m=i.bdPos);var w=e.selectAll("path.box").data(r.type!=="violin"||r.box.visible?Xb.identity:[]);w.enter().append("path").style("vector-effect",n?"none":"non-scaling-stroke").attr("class","box"),w.exit().remove(),w.each(function(_){if(_.empty)return SA.select(this).attr("d","M0,0Z");var b=s.c2l(_.pos+u,!0),M=s.l2p(b-y)+c,x=s.l2p(b+m)+c,T=l?(M+x)/2:s.l2p(b)+c,A=r.whiskerwidth,g=l?M*A+(1-A)*T:s.l2p(b-f)+c,E=l?x*A+(1-A)*T:s.l2p(b+f)+c,S=s.l2p(b-y*v)+c,C=s.l2p(b+m*v)+c,k=r.sizemode==="sd",D=o.c2p(k?_.mean-_.sd:_.q1,!0),F=k?o.c2p(_.mean+_.sd,!0):o.c2p(_.q3,!0),P=Xb.constrain(k?o.c2p(_.mean,!0):o.c2p(_.med,!0),Math.min(D,F)+1,Math.max(D,F)-1),I=_.lf===void 0||r.boxpoints===!1||k,L=o.c2p(I?_.min:_.lf,!0),z=o.c2p(I?_.max:_.uf,!0),B=o.c2p(_.ln,!0),O=o.c2p(_.un,!0);a?SA.select(this).attr("d","M"+P+","+S+"V"+C+"M"+D+","+M+"V"+x+(p?"H"+B+"L"+P+","+C+"L"+O+","+x:"")+"H"+F+"V"+M+(p?"H"+O+"L"+P+","+S+"L"+B+","+M:"")+"Z"+(d?"M"+D+","+T+"H"+L+"M"+F+","+T+"H"+z+(h===0?"":"M"+L+","+g+"V"+E+"M"+z+","+g+"V"+E):"")):SA.select(this).attr("d","M"+S+","+P+"H"+C+"M"+M+","+D+"H"+x+(p?"V"+B+"L"+C+","+P+"L"+x+","+O:"")+"V"+F+"H"+M+(p?"V"+O+"L"+S+","+P+"L"+M+","+B:"")+"Z"+(d?"M"+T+","+D+"V"+L+"M"+T+","+F+"V"+z+(h===0?"":"M"+g+","+L+"H"+E+"M"+g+","+z+"H"+E):""))})}function v6e(e,t,r,i){var n=t.x,a=t.y,o=i.bdPos,s=i.bPos,l=r.boxpoints||r.points;Xb.seedPseudoRandom();var u=function(h){return h.forEach(function(d){d.t=i,d.trace=r}),h},f=e.selectAll("g.points").data(l?u:[]);f.enter().append("g").attr("class","points"),f.exit().remove();var c=f.selectAll("path").data(function(h){var d,p=h.pts2,v=Math.max((h.max-h.min)/10,h.q3-h.q1),y=v*1e-9,m=v*xOt,w=[],_=0,b;if(r.jitter){if(v===0)for(_=1,w=new Array(p.length),d=0;dh.lo&&(E.so=!0)}return p});c.enter().append("path").classed("point",!0),c.exit().remove(),c.call(gOt.translatePoints,n,a)}function m6e(e,t,r,i){var n=t.val,a=t.pos,o=!!a.rangebreaks,s=i.bPos,l=i.bPosPxOffset||0,u=r.boxmean||(r.meanline||{}).visible,f,c;Array.isArray(i.bdPos)?(f=i.bdPos[0],c=i.bdPos[1]):(f=i.bdPos,c=i.bdPos);var h=e.selectAll("path.mean").data(r.type==="box"&&r.boxmean||r.type==="violin"&&r.box.visible&&r.meanline.visible?Xb.identity:[]);h.enter().append("path").attr("class","mean").style({fill:"none","vector-effect":"non-scaling-stroke"}),h.exit().remove(),h.each(function(d){var p=a.c2l(d.pos+s,!0),v=a.l2p(p-f)+l,y=a.l2p(p+c)+l,m=o?(v+y)/2:a.l2p(p)+l,w=n.c2p(d.mean,!0),_=n.c2p(d.mean-d.sd,!0),b=n.c2p(d.mean+d.sd,!0);r.orientation==="h"?SA.select(this).attr("d","M"+w+","+v+"V"+y+(u==="sd"?"m0,0L"+_+","+m+"L"+w+","+v+"L"+b+","+m+"Z":"")):SA.select(this).attr("d","M"+v+","+w+"H"+y+(u==="sd"?"m0,0L"+m+","+_+"L"+v+","+w+"L"+m+","+b+"Z":""))})}y6e.exports={plot:bOt,plotBoxAndWhiskers:p6e,plotPoints:v6e,plotBoxMean:m6e}});var Z9=K((KHr,g6e)=>{"use strict";var lY=No(),uY=wo(),fY=Is();function _Ot(e,t,r){var i=r||lY.select(e).selectAll("g.trace.boxes");i.style("opacity",function(n){return n[0].trace.opacity}),i.each(function(n){var a=lY.select(this),o=n[0].trace,s=o.line.width;function l(c,h,d,p){c.style("stroke-width",h+"px").call(uY.stroke,d).call(uY.fill,p)}var u=a.selectAll("path.box");if(o.type==="candlestick")u.each(function(c){if(!c.empty){var h=lY.select(this),d=o[c.dir];l(h,d.line.width,d.line.color,d.fillcolor),h.style("opacity",o.selectedpoints&&!c.selected?.3:1)}});else{l(u,s,o.line.color,o.fillcolor),a.selectAll("path.mean").style({"stroke-width":s,"stroke-dasharray":2*s+"px,"+s+"px"}).call(uY.stroke,o.line.color);var f=a.selectAll("path.point");fY.pointStyle(f,o,e)}})}function wOt(e,t,r){var i=t[0].trace,n=r.selectAll("path.point");i.selectedpoints?fY.selectedPointStyle(n,i):fY.pointStyle(n,i,e)}g6e.exports={style:_Ot,styleOnSelect:wOt}});var hY=K((JHr,w6e)=>{"use strict";var AOt=Cs(),cY=St(),h2=Gf(),x6e=wo(),TOt=cY.fillText;function MOt(e,t,r,i){var n=e.cd,a=n[0].trace,o=a.hoveron,s=[],l;return o.indexOf("boxes")!==-1&&(s=s.concat(b6e(e,t,r,i))),o.indexOf("points")!==-1&&(l=_6e(e,t,r)),i==="closest"?l?[l]:s:(l&&s.push(l),s)}function b6e(e,t,r,i){var n=e.cd,a=e.xa,o=e.ya,s=n[0].trace,l=n[0].t,u=s.type==="violin",f,c,h,d,p,v,y,m,w,_,b,M=l.bdPos,x,T,A=l.wHover,g=function(j){return h.c2l(j.pos)+l.bPos-h.c2l(v)};u&&s.side!=="both"?(s.side==="positive"&&(w=function(j){var $=g(j);return h2.inbox($,$+A,_)},x=M,T=0),s.side==="negative"&&(w=function(j){var $=g(j);return h2.inbox($-A,$,_)},x=0,T=M)):(w=function(j){var $=g(j);return h2.inbox($-A,$+A,_)},x=T=M);var E;u?E=function(j){return h2.inbox(j.span[0]-p,j.span[1]-p,_)}:E=function(j){return h2.inbox(j.min-p,j.max-p,_)},s.orientation==="h"?(p=t,v=r,y=E,m=w,f="y",h=o,c="x",d=a):(p=r,v=t,y=w,m=E,f="x",h=a,c="y",d=o);var S=Math.min(1,M/Math.abs(h.r2c(h.range[1])-h.r2c(h.range[0])));_=e.maxHoverDistance-S,b=e.maxSpikeDistance-S;function C(j){return(y(j)+m(j))/2}var k=h2.getDistanceFunction(i,y,m,C);if(h2.getClosest(n,k,e),e.index===!1)return[];var D=n[e.index],F=s.line.color,P=(s.marker||{}).color;x6e.opacity(F)&&s.line.width?e.color=F:x6e.opacity(P)&&s.boxpoints?e.color=P:e.color=s.fillcolor,e[f+"0"]=h.c2p(D.pos+l.bPos-T,!0),e[f+"1"]=h.c2p(D.pos+l.bPos+x,!0),e[f+"LabelVal"]=D.orig_p!==void 0?D.orig_p:D.pos;var I=f+"Spike";e.spikeDistance=C(D)*b/_,e[I]=h.c2p(D.pos,!0);var L=s.boxmean||s.sizemode==="sd"||(s.meanline||{}).visible,z=s.boxpoints||s.points,B=z&&L?["max","uf","q3","med","mean","q1","lf","min"]:z&&!L?["max","uf","q3","med","q1","lf","min"]:!z&&L?["max","q3","med","mean","q1","min"]:["max","q3","med","q1","min"],O=d.range[1]{"use strict";A6e.exports=function(t,r){return r.hoverOnBox&&(t.hoverOnBox=r.hoverOnBox),"xVal"in r&&(t.x=r.xVal),"yVal"in r&&(t.y=r.yVal),r.xa&&(t.xaxis=r.xa),r.ya&&(t.yaxis=r.ya),t}});var dY=K((ejr,M6e)=>{"use strict";M6e.exports=function(t,r){var i=t.cd,n=t.xaxis,a=t.yaxis,o=[],s,l;if(r===!1)for(s=0;s{"use strict";S6e.exports={attributes:KM(),layoutAttributes:JM(),supplyDefaults:eS().supplyDefaults,crossTraceDefaults:eS().crossTraceDefaults,supplyLayoutDefaults:W9().supplyLayoutDefaults,calc:sY(),crossTraceCalc:Y9().crossTraceCalc,plot:X9().plot,style:Z9().style,styleOnSelect:Z9().styleOnSelect,hoverPoints:hY().hoverPoints,eventData:T6e(),selectPoints:dY(),moduleType:"trace",name:"box",basePlotModule:gc(),categories:["cartesian","svg","symbols","oriented","box-violin","showLegend","boxLayout","zoomScale"],meta:{}}});var C6e=K((rjr,k6e)=>{"use strict";k6e.exports=E6e()});var EA=K((ijr,F6e)=>{"use strict";var SOt=Wu(),{extendFlat:zd}=Os(),EOt=Tu(),{axisHoverFormat:pY}=zf(),kOt=lf(),{hovertemplateAttrs:COt,templatefallbackAttrs:D6e,texttemplateAttrs:DOt}=gu(),dp=Qf();F6e.exports=zd({z:{valType:"data_array",editType:"calc"},x:zd({},dp.x,{impliedEdits:{xtype:"array"}}),x0:zd({},dp.x0,{impliedEdits:{xtype:"scaled"}}),dx:zd({},dp.dx,{impliedEdits:{xtype:"scaled"}}),y:zd({},dp.y,{impliedEdits:{ytype:"array"}}),y0:zd({},dp.y0,{impliedEdits:{ytype:"scaled"}}),dy:zd({},dp.dy,{impliedEdits:{ytype:"scaled"}}),xperiod:zd({},dp.xperiod,{impliedEdits:{xtype:"scaled"}}),yperiod:zd({},dp.yperiod,{impliedEdits:{ytype:"scaled"}}),xperiod0:zd({},dp.xperiod0,{impliedEdits:{xtype:"scaled"}}),yperiod0:zd({},dp.yperiod0,{impliedEdits:{ytype:"scaled"}}),xperiodalignment:zd({},dp.xperiodalignment,{impliedEdits:{xtype:"scaled"}}),yperiodalignment:zd({},dp.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:pY("x"),yhoverformat:pY("y"),zhoverformat:pY("z",1),hovertemplate:COt(),hovertemplatefallback:D6e(),texttemplate:DOt({arrayOk:!1,editType:"plot"},{keys:["x","y","z","text"]}),texttemplatefallback:D6e({editType:"plot"}),textfont:kOt({editType:"plot",autoSize:!0,autoColor:!0,colorEditType:"style"}),showlegend:zd({},EOt.showlegend,{dflt:!1}),zorder:dp.zorder},SOt("",{cLetter:"z",autoColorDflt:!1}))});var J9=K((njr,P6e)=>{"use strict";var FOt=Hs(),K9=St(),LOt=Ho();P6e.exports=function(t,r,i,n,a,o){var s=i("z");a=a||"x",o=o||"y";var l,u;if(s===void 0||!s.length)return 0;if(K9.isArray1D(s)){l=i(a),u=i(o);var f=K9.minRowLength(l),c=K9.minRowLength(u);if(f===0||c===0)return 0;r._length=Math.min(f,c,s.length)}else{if(l=L6e(a,i),u=L6e(o,i),!POt(s))return 0;i("transpose"),r._length=null}var h=LOt.getComponentMethod("calendars","handleTraceDefaults");return h(t,r,[a,o],n),!0};function L6e(e,t){var r=t(e),i=r?t(e+"type","array"):"scaled";return i==="scaled"&&(t(e+"0"),t("d"+e)),r}function POt(e){for(var t=!0,r=!1,i=!1,n,a=0;a0&&(r=!0);for(var o=0;o{"use strict";var z6e=St();I6e.exports=function(t,r){t("texttemplate"),t("texttemplatefallback");var i=z6e.extendFlat({},r.font,{color:"auto",size:"auto"});z6e.coerceFont(t,"textfont",i)}});var vY=K((ojr,R6e)=>{"use strict";R6e.exports=function(t,r,i){var n=i("zsmooth");n===!1&&(i("xgap"),i("ygap")),i("zhoverformat")}});var O6e=K((sjr,q6e)=>{"use strict";var B6e=St(),zOt=J9(),IOt=tS(),ROt=Jv(),BOt=vY(),qOt=xh(),OOt=EA();q6e.exports=function(t,r,i,n){function a(s,l){return B6e.coerce(t,r,OOt,s,l)}var o=zOt(t,r,a,n);if(!o){r.visible=!1;return}ROt(t,r,n,a),a("xhoverformat"),a("yhoverformat"),a("text"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback"),IOt(a,n),BOt(t,r,a,n),a("hoverongaps"),a("connectgaps",B6e.isArray1D(r.z)&&r.zsmooth!==!1),qOt(t,r,n,a,{prefix:"",cLetter:"z"}),a("zorder")}});var mY=K((ljr,N6e)=>{"use strict";var kA=Hs();N6e.exports={count:function(e,t,r){return r[e]++,1},sum:function(e,t,r,i){var n=i[t];return kA(n)?(n=Number(n),r[e]+=n,n):0},avg:function(e,t,r,i,n){var a=i[t];return kA(a)&&(a=Number(a),r[e]+=a,n[e]++),0},min:function(e,t,r,i){var n=i[t];if(kA(n))if(n=Number(n),kA(r[e])){if(r[e]>n){var a=n-r[e];return r[e]=n,a}}else return r[e]=n,n;return 0},max:function(e,t,r,i){var n=i[t];if(kA(n))if(n=Number(n),kA(r[e])){if(r[e]{"use strict";V6e.exports={percent:function(e,t){for(var r=e.length,i=100/t,n=0;n{"use strict";U6e.exports=function(t,r){for(var i=t.length,n=0,a=0;a{"use strict";var CA=(Il(),or(Bl)),Zb=CA.ONEAVGYEAR,G6e=CA.ONEAVGMONTH,e8=CA.ONEDAY,H6e=CA.ONEHOUR,j6e=CA.ONEMIN,W6e=CA.ONESEC,$6e=Cs().tickIncrement;Z6e.exports=function(t,r,i,n,a){var o=-1.1*r,s=-.1*r,l=t-s,u=i[0],f=i[1],c=Math.min(Q9(u+s,u+l,n,a),Q9(f+s,f+l,n,a)),h=Math.min(Q9(u+o,u+s,n,a),Q9(f+o,f+s,n,a)),d,p;if(c>h&&he8){var v=d===Zb?1:6,y=d===Zb?"M12":"M1";return function(m,w){var _=n.c2d(m,Zb,a),b=_.indexOf("-",v);b>0&&(_=_.slice(0,b));var M=n.d2c(_,0,a);if(MW6e?e>e8?e>Zb*1.1?Zb:e>G6e*1.1?G6e:e8:e>H6e?H6e:e>j6e?j6e:W6e:Math.pow(10,Math.floor(Math.log(e)/Math.LN10))}function NOt(e,t,r,i,n,a){if(i&&e>e8){var o=X6e(t,n,a),s=X6e(r,n,a),l=e===Zb?0:1;return o[l]!==s[l]}return Math.floor(r/e)-Math.floor(t/e)>.1}function X6e(e,t,r){var i=t.c2d(e,Zb,r).split("-");return i[0]===""&&(i.unshift(),i[0]="-"+i[0]),i}});var wY=K((hjr,tMe)=>{"use strict";var bY=Hs(),Z0=St(),K6e=Ho(),nv=Cs(),{hasColorscale:J6e}=Kh(),Q6e=T0(),VOt=$M(),eMe=mY(),UOt=yY(),GOt=gY(),HOt=xY();function jOt(e,t){var r=[],i=[],n=t.orientation==="h",a=nv.getFromId(e,n?t.yaxis:t.xaxis),o=n?"y":"x",s={x:"y",y:"x"}[o],l=t[o+"calendar"],u=t.cumulative,f,c=_Y(e,t,a,o),h=c[0],d=c[1],p=typeof h.size=="string",v=[],y=p?v:h,m=[],w=[],_=[],b=0,M=t.histnorm,x=t.histfunc,T=M.indexOf("density")!==-1,A,g,E;u.enabled&&T&&(M=M.replace(/ ?density$/,""),T=!1);var S=x==="max"||x==="min",C=S?null:0,k=eMe.count,D=UOt[M],F=!1,P=function($){return a.r2c($,0,l)},I;for(Z0.isArrayOrTypedArray(t[s])&&x!=="count"&&(I=t[s],F=x==="avg",k=eMe[x]),f=P(h.start),g=P(h.end)+(f-nv.tickIncrement(f,h.size,!1,l))/1e6;f=0&&E=U;f--)if(i[f]){J=f;break}for(f=U;f<=J;f++)if(bY(r[f])&&bY(i[f])){var j={p:r[f],s:i[f],b:0};u.enabled||(j.pts=_[f],O?j.ph0=j.ph1=_[f].length?d[_[f][0]]:r[f]:(t._computePh=!0,j.ph0=q(v[f]),j.ph1=q(v[f+1],!0))),N.push(j)}return N.length===1&&(N[0].width1=nv.tickIncrement(N[0].p,h.size,!1,l)-N[0].p),J6e(t,"marker")&&Q6e(e,t,{vals:t.marker.color,containerStr:"marker",cLetter:"c"}),J6e(t,"marker.line")&&Q6e(e,t,{vals:t.marker.line.color,containerStr:"marker.line",cLetter:"c"}),VOt(N,t),Z0.isArrayOrTypedArray(t.selectedpoints)&&Z0.tagSelected(N,t,Z),N}function _Y(e,t,r,i,n){var H;var a=i+"bins",o=e._fullLayout,s=t["_"+i+"bingroup"],l=o._histogramBinOpts[s],u=o.barmode==="overlay",f,c,h,d,p,v,y,m=function(q){return r.r2c(q,0,d)},w=function(q){return r.c2r(q,0,d)},_=r.type==="date"?function(q){return q||q===0?Z0.cleanDate(q,null,d):null}:function(q){return bY(q)?Number(q):null};function b(q,Q,N){Q[q+"Found"]?(Q[q]=_(Q[q]),Q[q]===null&&(Q[q]=N[q])):(v[q]=Q[q]=N[q],Z0.nestedProperty(c[0],a+"."+q).set(N[q]))}if(t["_"+i+"autoBinFinished"])delete t["_"+i+"autoBinFinished"];else{c=l.traces;var M=[],x=!0,T=!1,A=!1;for(f=0;fr.r2l(I)&&(z=nv.tickIncrement(z,l.size,!0,d)),k.start=r.l2r(z),P||Z0.nestedProperty(t,a+".start").set(k.start)}var B=l.end,O=r.r2l(C.end),W=O!==void 0;if((l.endFound||W)&&O!==r.r2l(B)){var X=W?O:Z0.aggNums(Math.max,null,p);k.end=r.l2r(X),W||Z0.nestedProperty(t,a+".start").set(k.end)}var Z="autobin"+i;return t._input[Z]===!1&&(t._input[a]=Z0.extendFlat({},t[a]||{}),delete t._input[Z],delete t[Z]),[k,p]}function WOt(e,t,r,i,n){var a=e._fullLayout,o=$Ot(e,t),s=!1,l=1/0,u=[t],f,c,h;for(f=0;f=0;i--)s(i);else if(t==="increasing"){for(i=1;i=0;i--)e[i]+=e[i+1];r==="exclude"&&(e.push(0),e.shift())}}tMe.exports={calc:jOt,calcAllAutoBins:_Y}});var uMe=K((djr,lMe)=>{"use strict";var rMe=St(),DA=Cs(),iMe=mY(),XOt=yY(),ZOt=gY(),KOt=xY(),nMe=wY().calcAllAutoBins;lMe.exports=function(t,r){var i=DA.getFromId(t,r.xaxis),n=DA.getFromId(t,r.yaxis),a=r.xcalendar,o=r.ycalendar,s=function(se){return i.r2c(se,0,a)},l=function(se){return n.r2c(se,0,o)},u=function(se){return i.c2r(se,0,a)},f=function(se){return n.c2r(se,0,o)},c,h,d,p,v=nMe(t,r,i,"x"),y=v[0],m=v[1],w=nMe(t,r,n,"y"),_=w[0],b=w[1],M=r._length;m.length>M&&m.splice(M,m.length-M),b.length>M&&b.splice(M,b.length-M);var x=[],T=[],A=[],g=typeof y.size=="string",E=typeof _.size=="string",S=[],C=[],k=g?S:y,D=E?C:_,F=0,P=[],I=[],L=r.histnorm,z=r.histfunc,B=L.indexOf("density")!==-1,O=z==="max"||z==="min",W=O?null:0,X=iMe.count,Z=XOt[L],H=!1,q=[],Q=[],N="z"in r?r.z:"marker"in r&&Array.isArray(r.marker.color)?r.marker.color:"";N&&z!=="count"&&(H=z==="avg",X=iMe[z]);var U=y.size,J=s(y.start),j=s(y.end)+(J-DA.tickIncrement(J,U,!1,a))/1e6;for(c=J;c=0&&d<$&&p>=0&&p{"use strict";var pm=St(),fMe=(Il(),or(Bl)).BADNUM,cMe=t1();hMe.exports=function(t,r,i,n,a,o){var s=t._length,l=r.makeCalcdata(t,n),u=i.makeCalcdata(t,a);l=cMe(t,r,n,l).vals,u=cMe(t,i,a,u).vals;var f=t.text,c=f!==void 0&&pm.isArray1D(f),h=t.hovertext,d=h!==void 0&&pm.isArray1D(h),p,v,y=pm.distinctVals(l),m=y.vals,w=pm.distinctVals(u),_=w.vals,b=[],M,x,T=_.length,A=m.length;for(p=0;p{"use strict";var JOt=Hs(),QOt=St(),r8=(Il(),or(Bl)).BADNUM;dMe.exports=function(t,r,i,n){var a,o,s,l,u,f;function c(m){if(JOt(m))return+m}if(r&&r.transpose){for(a=0,u=0;u{"use strict";var eNt=St(),pMe=.01,tNt=[[-1,0],[1,0],[0,-1],[0,1]];function rNt(e){return .5-.25*Math.min(1,e*.5)}mMe.exports=function(t,r){var i=1,n;for(vMe(t,r),n=0;npMe;n++)i=vMe(t,r,rNt(i));return i>pMe&&eNt.log("interp2d didn't converge quickly",i),t};function vMe(e,t,r){var i=0,n,a,o,s,l,u,f,c,h,d,p,v,y;for(s=0;sv&&(i=Math.max(i,Math.abs(e[a][o]-p)/(y-v))))}return i}});var a8=K((yjr,yMe)=>{"use strict";var iNt=St().maxRowLength;yMe.exports=function(t){var r=[],i={},n=[],a=t[0],o=[],s=[0,0,0],l=iNt(t),u,f,c,h,d,p,v,y;for(f=0;f=0;d--)h=n[d],f=h[0],c=h[1],p=((i[[f-1,c]]||s)[2]+(i[[f+1,c]]||s)[2]+(i[[f,c-1]]||s)[2]+(i[[f,c+1]]||s)[2])/20,p&&(v[h]=[f,c,p],n.splice(d,1),y=!0);if(!y)throw"findEmpties iterated with no new neighbors";for(h in v)i[h]=v[h],r.push(v[h])}return r.sort(function(m,w){return w[2]-m[2]})}});var AY=K((gjr,bMe)=>{"use strict";var gMe=Ho(),xMe=St().isArrayOrTypedArray;bMe.exports=function(t,r,i,n,a,o){var s=[],l=gMe.traceIs(t,"contour"),u=gMe.traceIs(t,"histogram"),f,c,h,d=xMe(r)&&r.length>1;if(d&&!u&&o.type!=="category"){var p=r.length;if(p<=a){if(l)s=Array.from(r).slice(0,a);else if(a===1)o.type==="log"?s=[.5*r[0],2*r[0]]:s=[r[0]-.5,r[0]+.5];else if(o.type==="log"){for(s=[Math.pow(r[0],1.5)/Math.pow(r[1],.5)],h=1;h{"use strict";var _Me=Ho(),TY=St(),o8=Cs(),wMe=t1(),nNt=uMe(),aNt=T0(),oNt=t8(),sNt=i8(),lNt=n8(),uNt=a8(),s8=AY(),MY=(Il(),or(Bl)).BADNUM;TMe.exports=function(t,r){var i=o8.getFromId(t,r.xaxis||"x"),n=o8.getFromId(t,r.yaxis||"y"),a=_Me.traceIs(r,"contour"),o=_Me.traceIs(r,"histogram"),s=a?"best":r.zsmooth,l,u,f,c,h,d,p,v,y,m,w;if(i._minDtick=0,n._minDtick=0,o)w=nNt(t,r),c=w.orig_x,l=w.x,u=w.x0,f=w.dx,v=w.orig_y,h=w.y,d=w.y0,p=w.dy,y=w.z;else{var _=r.z;TY.isArray1D(_)?(oNt(r,i,n,"x","y",["z"]),l=r._x,h=r._y,_=r._z):(c=r.x?i.makeCalcdata(r,"x"):[],v=r.y?n.makeCalcdata(r,"y"):[],l=wMe(r,i,"x",c).vals,h=wMe(r,n,"y",v).vals,r._x=l,r._y=h),u=r.x0,f=r.dx,d=r.y0,p=r.dy,y=sNt(_,r,i,n)}(i.rangebreaks||n.rangebreaks)&&(y=fNt(l,h,y),o||(l=AMe(l),h=AMe(h),r._x=l,r._y=h)),!o&&(a||r.connectgaps)&&(r._emptypoints=uNt(y),lNt(y,r._emptypoints));function b(k){s=r._input.zsmooth=r.zsmooth=!1,TY.warn('cannot use zsmooth: "fast": '+k)}function M(k){if(k.length>1){var D=(k[k.length-1]-k[0])/(k.length-1),F=Math.abs(D/100);for(m=0;mF)return!1}return!0}r._islinear=!1,i.type==="log"||n.type==="log"?s==="fast"&&b("log axis found"):M(l)?M(h)?r._islinear=!0:s==="fast"&&b("y scale is not linear"):s==="fast"&&b("x scale is not linear");var x=TY.maxRowLength(y),T=r.xtype==="scaled"?"":l,A=s8(r,T,u,f,x,i),g=r.ytype==="scaled"?"":h,E=s8(r,g,d,p,y.length,n);r._extremes[i._id]=o8.findExtremes(i,A),r._extremes[n._id]=o8.findExtremes(n,E);var S={x:A,y:E,z:y,text:r._text||r.text,hovertext:r._hovertext||r.hovertext};if(r.xperiodalignment&&c&&(S.orig_x=c),r.yperiodalignment&&v&&(S.orig_y=v),T&&T.length===A.length-1&&(S.xCenter=T),g&&g.length===E.length-1&&(S.yCenter=g),o&&(S.xRanges=w.xRanges,S.yRanges=w.yRanges,S.pts=w.pts),a||aNt(t,r,{vals:y,cLetter:"z"}),a&&r.contours&&r.contours.coloring==="heatmap"){var C={type:r.type==="contour"?"heatmap":"histogram2d",xcalendar:r.xcalendar,ycalendar:r.ycalendar};S.xfill=s8(C,T,u,f,x,i),S.yfill=s8(C,g,d,p,y.length,n)}return[S]};function AMe(e){for(var t=[],r=e.length,i=0;iMMe,STYLE:()=>cNt});var MMe,cNt,f8=ps(()=>{"use strict";MMe=[["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"]],cNt=MMe.map(e=>e.join(": ")+"; ").join("")});var EY=K((bjr,EMe)=>{"use strict";var SMe=(f8(),or(u8)),hNt=Is(),SY=St(),FA=null;function dNt(){if(FA!==null)return FA;FA=!1;var e=SY.isSafari()||SY.isMacWKWebView()||SY.isIOS();if(window.navigator.userAgent&&!e){var t=Array.from(SMe.CSS_DECLARATIONS).reverse(),r=window.CSS&&window.CSS.supports||window.supportsCSS;if(typeof r=="function")FA=t.some(function(o){return r.apply(null,o)});else{var i=hNt.tester.append("image").attr("style",SMe.STYLE),n=window.getComputedStyle(i.node()),a=n.imageRendering;FA=t.some(function(o){var s=o[1];return a===s||a===s.toLowerCase()}),i.remove()}}return FA}EMe.exports=dNt});var c8=K((_jr,BMe)=>{"use strict";var kMe=No(),pNt=Ho(),vNt=Is(),mNt=Cs(),av=St(),CMe=Du(),yNt=QP(),DMe=wo(),gNt=gf().extractOpts,xNt=gf().makeColorScaleFuncFromTrace,bNt=(Rp(),or(Ip)),_Nt=($c(),or(Wc)),kY=_Nt.LINE_SPACING,wNt=EY(),ANt=(f8(),or(u8)).STYLE,IMe="heatmap-label";function RMe(e){return e.selectAll("g."+IMe)}function FMe(e){RMe(e).remove()}BMe.exports=function(e,t,r,i){var n=t.xaxis,a=t.yaxis;av.makeTraceGroups(i,r,"hm").each(function(o){var s=kMe.select(this),l=o[0],u=l.trace,f=u.xgap||0,c=u.ygap||0,h=l.z,d=l.x,p=l.y,v=l.xCenter,y=l.yCenter,m=pNt.traceIs(u,"contour"),w=m?"best":u.zsmooth,_=h.length,b=av.maxRowLength(h),M=!1,x=!1,T,A,g,E,S,C,k,D;for(C=0;T===void 0&&C0;)A=n.c2p(d[C]),C--;for(A0;)S=a.c2p(p[C]),C--;S=n._length||A<=0||E>=a._length||S<=0;if(z){var B=s.selectAll("image").data([]);B.exit().remove(),FMe(s);return}var O,W;F==="fast"?(O=b,W=_):(O=I,W=L);var X=document.createElement("canvas");X.width=O,X.height=W;var Z=X.getContext("2d",{willReadFrequently:!0}),H=xNt(u,{noNumericCheck:!0,returnArray:!0}),q,Q;F==="fast"?(q=M?function(Gr){return b-1-Gr}:av.identity,Q=x?function(Gr){return _-1-Gr}:av.identity):(q=function(Gr){return av.constrain(Math.round(n.c2p(d[Gr])-T),0,I)},Q=function(Gr){return av.constrain(Math.round(a.c2p(p[Gr])-E),0,L)});var N=Q(0),U=[N,N],J=M?0:1,j=x?0:1,$=0,ie=0,re=0,de=0,me,ze,ke,le,te;function Ee(Gr,_i=0){if(Gr===void 0)return[0,0,0,0];var Fi=H(Gr);return Fi[0]=Math.round(Fi[0]),Fi[1]=Math.round(Fi[1]),Fi[2]=Math.round(Fi[2]),$+=_i,ie+=Fi[0]*_i,re+=Fi[1]*_i,de+=Fi[2]*_i,Fi}function we(Gr,_i,Fi,wr){var Cr=Gr[Fi.bin0];if(Cr===void 0)return Ee(void 0,1);var Ut=Gr[Fi.bin1],Wt=_i[Fi.bin0],dr=_i[Fi.bin1],Hr=Ut-Cr||0,Er=Wt-Cr||0,Fr;return Ut===void 0?dr===void 0?Fr=0:Wt===void 0?Fr=2*(dr-Cr):Fr=(2*dr-Wt-Cr)*2/3:dr===void 0?Wt===void 0?Fr=0:Fr=(2*Cr-Ut-Wt)*2/3:Wt===void 0?Fr=(2*dr-Ut-Cr)*2/3:Fr=dr+Cr-Ut-Wt,Ee(Cr+Fi.frac*Hr+wr.frac*(Er+Fi.frac*Fr))}if(F!=="default"){var oe=0,Y;try{Y=new Uint8Array(O*W*4)}catch(Gr){Y=new Array(O*W*4)}if(F==="smooth"){var ne=v||d,ye=y||p,V=new Array(ne.length),ue=new Array(ye.length),_e=new Array(I),xe=v?PMe:LMe,Ae=y?PMe:LMe,se,pe,fe;for(C=0;C_t||_t>a._length))for(k=Se;kGt||Gt>n._length)){var Dt=yNt({x:At,y:ut},u,e._fullLayout);Dt.x=At,Dt.y=ut;var yt=l.z[C][k];yt===void 0?(Dt.z="",Dt.zLabel=""):(Dt.z=yt,Dt.zLabel=mNt.tickText(Ze,yt,"hover").text);var Mt=l.text&&l.text[C]&&l.text[C][k];(Mt===void 0||Mt===!1)&&(Mt=""),Dt.text=Mt;var tr=av.texttemplateString({data:[Dt,u._meta],fallback:u.texttemplatefallback,labels:Dt,locale:e._fullLayout._d3locale,template:ge});if(tr){var Ye=tr.split("
"),nt=Ye.length,st=0;for(D=0;D{"use strict";qMe.exports={min:"zmin",max:"zmax"}});var h8=K((Ajr,OMe)=>{"use strict";var TNt=No();OMe.exports=function(t){TNt.select(t).selectAll(".hm image").style("opacity",function(r){return r.trace.opacity})}});var p8=K((Tjr,VMe)=>{"use strict";var NMe=Gf(),rS=St(),d8=rS.isArrayOrTypedArray,MNt=Cs(),SNt=gf().extractOpts;VMe.exports=function(t,r,i,n,a){a||(a={});var o=a.isContour,s=t.cd[0],l=s.trace,u=t.xa,f=t.ya,c=s.x,h=s.y,d=s.z,p=s.xCenter,v=s.yCenter,y=s.zmask,m=l.zhoverformat,w=c,_=h,b,M,x,T;if(t.index!==!1){try{x=Math.round(t.index[1]),T=Math.round(t.index[0])}catch(B){rS.error("Error hovering on heatmap, pointNumber must be [row,col], found:",t.index);return}if(x<0||x>=d[0].length||T<0||T>d.length)return}else{if(NMe.inbox(r-c[0],r-c[c.length-1],0)>0||NMe.inbox(i-h[0],i-h[h.length-1],0)>0)return;if(o){var A;for(w=[2*c[0]-c[1]],A=1;A{"use strict";UMe.exports={attributes:EA(),supplyDefaults:O6e(),calc:l8(),plot:c8(),colorbar:LA(),style:h8(),hoverPoints:p8(),moduleType:"trace",name:"heatmap",basePlotModule:gc(),categories:["cartesian","svg","2dMap","showLegend"],meta:{}}});var jMe=K((Sjr,HMe)=>{"use strict";HMe.exports=GMe()});var CY=K((Ejr,WMe)=>{"use strict";WMe.exports=function(t,r){return{start:{valType:"any",editType:"calc"},end:{valType:"any",editType:"calc"},size:{valType:"any",editType:"calc"},editType:"calc"}}});var $Me={};Fl($Me,{eventDataKeys:()=>ENt});var ENt,YMe=ps(()=>{"use strict";ENt=["binNumber"]});var v8=K((kjr,JMe)=>{"use strict";var Id=dm(),XMe=zf().axisHoverFormat,{hovertemplateAttrs:kNt,texttemplateAttrs:CNt,templatefallbackAttrs:ZMe}=gu(),DY=lf(),KMe=CY(),DNt=(YMe(),or($Me)),FY=Os().extendFlat;JMe.exports={x:{valType:"data_array",editType:"calc+clearAxisTypes"},y:{valType:"data_array",editType:"calc+clearAxisTypes"},xhoverformat:XMe("x"),yhoverformat:XMe("y"),text:FY({},Id.text,{}),hovertext:FY({},Id.hovertext,{}),orientation:Id.orientation,histfunc:{valType:"enumerated",values:["count","sum","avg","min","max"],dflt:"count",editType:"calc"},histnorm:{valType:"enumerated",values:["","percent","probability","density","probability density"],dflt:"",editType:"calc"},cumulative:{enabled:{valType:"boolean",dflt:!1,editType:"calc"},direction:{valType:"enumerated",values:["increasing","decreasing"],dflt:"increasing",editType:"calc"},currentbin:{valType:"enumerated",values:["include","exclude","half"],dflt:"include",editType:"calc"},editType:"calc"},nbinsx:{valType:"integer",min:0,dflt:0,editType:"calc"},xbins:KMe("x",!0),nbinsy:{valType:"integer",min:0,dflt:0,editType:"calc"},ybins:KMe("y",!0),autobinx:{valType:"boolean",dflt:null,editType:"calc"},autobiny:{valType:"boolean",dflt:null,editType:"calc"},bingroup:{valType:"string",dflt:"",editType:"calc"},hovertemplate:kNt({},{keys:DNt.eventDataKeys}),hovertemplatefallback:ZMe(),texttemplate:CNt({arrayOk:!1,editType:"plot"},{keys:["label","value"]}),texttemplatefallback:ZMe({editType:"plot"}),textposition:FY({},Id.textposition,{arrayOk:!1}),textfont:DY({arrayOk:!1,editType:"plot",colorEditType:"style"}),outsidetextfont:DY({arrayOk:!1,editType:"plot",colorEditType:"style"}),insidetextfont:DY({arrayOk:!1,editType:"plot",colorEditType:"style"}),insidetextanchor:Id.insidetextanchor,textangle:Id.textangle,cliponaxis:Id.cliponaxis,constraintext:Id.constraintext,marker:Id.marker,offsetgroup:Id.offsetgroup,alignmentgroup:Id.alignmentgroup,selected:Id.selected,unselected:Id.unselected,zorder:Id.zorder}});var rSe=K((Cjr,tSe)=>{"use strict";var QMe=Ho(),iS=St(),eSe=wo(),FNt=cp().handleText,LNt=N9(),PNt=v8();tSe.exports=function(t,r,i,n){function a(w,_){return iS.coerce(t,r,PNt,w,_)}var o=a("x"),s=a("y"),l=a("cumulative.enabled");l&&(a("cumulative.direction"),a("cumulative.currentbin")),a("text");var u=a("textposition");FNt(t,r,n,a,u,{moduleHasSelected:!0,moduleHasUnselected:!0,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback"),a("xhoverformat"),a("yhoverformat");var f=a("orientation",s&&!o?"h":"v"),c=f==="v"?"x":"y",h=f==="v"?"y":"x",d=o&&s?Math.min(iS.minRowLength(o)&&iS.minRowLength(s)):iS.minRowLength(r[c]||[]);if(!d){r.visible=!1;return}r._length=d;var p=QMe.getComponentMethod("calendars","handleTraceDefaults");p(t,r,["x","y"],n);var v=r[h];v&&a("histfunc"),a("histnorm"),a("autobin"+c),LNt(t,r,a,i,n),iS.coerceSelectionMarkerOpacity(r,a);var y=(r.marker.line||{}).color,m=QMe.getComponentMethod("errorbars","supplyDefaults");m(t,r,y||eSe.defaultLine,{axis:"y"}),m(t,r,y||eSe.defaultLine,{axis:"x",inherit:"y"}),a("zorder")}});var y8=K((Djr,aSe)=>{"use strict";var nS=St(),zNt=Vf(),m8=Ho().traceIs,INt=zb(),RNt=cp().validateCornerradius,iSe=nS.nestedProperty,LY=Cb().getAxisGroup,nSe=[{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"}],BNt=["x","y"];aSe.exports=function(t,r){var i=r._histogramBinOpts={},n=[],a={},o=[],s,l,u,f,c,h,d;function p(F,P){return nS.coerce(s._input,s,s._module.attributes,F,P)}function v(F){return F.orientation==="v"?"x":"y"}function y(F,P){var I=zNt.getFromTrace({_fullLayout:r},F,P);return I.type}function m(F,P,I){var L=F.uid+"__"+I;P||(P=L);var z=y(F,I),B=F[I+"calendar"]||"",O=i[P],W=!0;O&&(z===O.axType&&B===O.calendar?(W=!1,O.traces.push(F),O.dirs.push(I)):(P=L,z!==O.axType&&nS.warn(["Attempted to group the bins of trace",F.index,"set on a","type:"+z,"axis","with bins on","type:"+O.axType,"axis."].join(" ")),B!==O.calendar&&nS.warn(["Attempted to group the bins of trace",F.index,"set with a",B,"calendar","with bins",O.calendar?"on a "+O.calendar+" calendar":"w/o a set calendar"].join(" ")))),W&&(i[P]={traces:[F],dirs:[I],axType:z,calendar:F[I+"calendar"]||""}),F["_"+I+"bingroup"]=P}for(c=0;c{"use strict";var qNt=AA().hoverPoints,ONt=Cs().hoverLabelText;oSe.exports=function(t,r,i,n,a){var o=qNt(t,r,i,n,a);if(o){t=o[0];var s=t.cd[t.index],l=t.cd[0].trace;if(!l.cumulative.enabled){var u=l.orientation==="h"?"y":"x";t[u+"Label"]=ONt(t[u+"a"],[s.ph0,s.ph1],l[u+"hoverformat"])}return o}}});var PY=K((Ljr,lSe)=>{"use strict";lSe.exports=function(t,r,i,n,a){if(t.x="xVal"in r?r.xVal:r.x,t.y="yVal"in r?r.yVal:r.y,"zLabelVal"in r&&(t.z=r.zLabelVal),r.xa&&(t.xaxis=r.xa),r.ya&&(t.yaxis=r.ya),!(i.cumulative||{}).enabled){var o=Array.isArray(a)?n[0].pts[a[0]][a[1]]:n[a].pts;t.pointNumbers=o,t.binNumber=t.pointNumber,delete t.pointNumber,delete t.pointIndex,t.pointIndices=o}return t}});var fSe=K((Pjr,uSe)=>{"use strict";uSe.exports={attributes:v8(),layoutAttributes:O9(),supplyDefaults:rSe(),crossTraceDefaults:y8(),supplyLayoutDefaults:Q$(),calc:wY().calc,crossTraceCalc:Ib().crossTraceCalc,plot:Yb().plot,layerName:"barlayer",style:tv().style,styleOnSelect:tv().styleOnSelect,colorbar:e0(),hoverPoints:sSe(),selectPoints:TA(),eventData:PY(),moduleType:"trace",name:"histogram",basePlotModule:gc(),categories:["bar-like","cartesian","svg","bar","histogram","oriented","errorBarsOK","showLegend"],meta:{}}});var hSe=K((zjr,cSe)=>{"use strict";cSe.exports=fSe()});var x8=K((Ijr,vSe)=>{"use strict";var c1=v8(),dSe=CY(),g8=EA(),NNt=Tu(),zY=zf().axisHoverFormat,{hovertemplateAttrs:VNt,texttemplateAttrs:UNt,templatefallbackAttrs:pSe}=gu(),GNt=Wu(),aS=Os().extendFlat;vSe.exports=aS({x:c1.x,y:c1.y,z:{valType:"data_array",editType:"calc"},marker:{color:{valType:"data_array",editType:"calc"},editType:"calc"},histnorm:c1.histnorm,histfunc:c1.histfunc,nbinsx:c1.nbinsx,xbins:dSe("x"),nbinsy:c1.nbinsy,ybins:dSe("y"),autobinx:c1.autobinx,autobiny:c1.autobiny,bingroup:aS({},c1.bingroup,{}),xbingroup:aS({},c1.bingroup,{}),ybingroup:aS({},c1.bingroup,{}),xgap:g8.xgap,ygap:g8.ygap,zsmooth:g8.zsmooth,xhoverformat:zY("x"),yhoverformat:zY("y"),zhoverformat:zY("z",1),hovertemplate:VNt({},{keys:["z"]}),hovertemplatefallback:pSe(),texttemplate:UNt({arrayOk:!1,editType:"plot"},{keys:["z"]}),texttemplatefallback:pSe({editType:"plot"}),textfont:g8.textfont,showlegend:aS({},NNt.showlegend,{dflt:!1})},GNt("",{cLetter:"z",autoColorDflt:!1}))});var IY=K((Rjr,ySe)=>{"use strict";var HNt=Ho(),mSe=St();ySe.exports=function(t,r,i,n){var a=i("x"),o=i("y"),s=mSe.minRowLength(a),l=mSe.minRowLength(o);if(!s||!l){r.visible=!1;return}r._length=Math.min(s,l);var u=HNt.getComponentMethod("calendars","handleTraceDefaults");u(t,r,["x","y"],n);var f=i("z")||i("marker.color");f&&i("histfunc"),i("histnorm"),i("autobinx"),i("autobiny")}});var xSe=K((Bjr,gSe)=>{"use strict";var jNt=St(),WNt=IY(),$Nt=vY(),YNt=xh(),XNt=tS(),ZNt=x8();gSe.exports=function(t,r,i,n){function a(o,s){return jNt.coerce(t,r,ZNt,o,s)}WNt(t,r,a,n),r.visible!==!1&&($Nt(t,r,a,n),YNt(t,r,n,a,{prefix:"",cLetter:"z"}),a("hovertemplate"),a("hovertemplatefallback"),XNt(a,n),a("xhoverformat"),a("yhoverformat"))}});var wSe=K((qjr,_Se)=>{"use strict";var KNt=p8(),bSe=Cs().hoverLabelText;_Se.exports=function(t,r,i,n,a){var o=KNt(t,r,i,n,a);if(o){t=o[0];var s=t.index,l=s[0],u=s[1],f=t.cd[0],c=f.trace,h=f.xRanges[u],d=f.yRanges[l];return t.xLabel=bSe(t.xa,[h[0],h[1]],c.xhoverformat),t.yLabel=bSe(t.ya,[d[0],d[1]],c.yhoverformat),o}}});var TSe=K((Ojr,ASe)=>{"use strict";ASe.exports={attributes:x8(),supplyDefaults:xSe(),crossTraceDefaults:y8(),calc:l8(),plot:c8(),layerName:"heatmaplayer",colorbar:LA(),style:h8(),hoverPoints:wSe(),eventData:PY(),moduleType:"trace",name:"histogram2d",basePlotModule:gc(),categories:["cartesian","svg","2dMap","histogram","showLegend"],meta:{}}});var SSe=K((Njr,MSe)=>{"use strict";MSe.exports=TSe()});var b8={};Fl(b8,{COMPARISON_OPS:()=>JNt,COMPARISON_OPS2:()=>QNt,CONSTRAINT_REDUCTION:()=>rVt,INTERVAL_OPS:()=>eVt,SET_OPS:()=>tVt});var JNt,QNt,eVt,tVt,rVt,_8=ps(()=>{"use strict";JNt=["=","!=","<",">=",">","<="],QNt=["=","<",">=",">","<="],eVt=["[]","()","[)","(]","][",")(","](",")["],tVt=["{}","}{"],rVt={"=":"=","<":"<","<=":"<",">":">",">=":">","[]":"[]","()":"[]","[)":"[]","(]":"[]","][":"][",")(":"][","](":"][",")[":"]["}});var oS=K((Vjr,DSe)=>{"use strict";var zc=EA(),w8=Qf(),kSe=zf(),RY=kSe.axisHoverFormat,iVt=kSe.descriptionOnlyNumbers,nVt=Wu(),aVt=gh().dash,oVt=lf(),PA=Os().extendFlat,CSe=(_8(),or(b8)),sVt=CSe.COMPARISON_OPS2,lVt=CSe.INTERVAL_OPS,ESe=w8.line;DSe.exports=PA({z:zc.z,x:zc.x,x0:zc.x0,dx:zc.dx,y:zc.y,y0:zc.y0,dy:zc.dy,xperiod:zc.xperiod,yperiod:zc.yperiod,xperiod0:w8.xperiod0,yperiod0:w8.yperiod0,xperiodalignment:zc.xperiodalignment,yperiodalignment:zc.yperiodalignment,text:zc.text,hovertext:zc.hovertext,transpose:zc.transpose,xtype:zc.xtype,ytype:zc.ytype,xhoverformat:RY("x"),yhoverformat:RY("y"),zhoverformat:RY("z",1),hovertemplate:zc.hovertemplate,hovertemplatefallback:zc.hovertemplatefallback,texttemplate:PA({},zc.texttemplate,{}),texttemplatefallback:zc.texttemplatefallback,textfont:PA({},zc.textfont,{}),hoverongaps:zc.hoverongaps,connectgaps:PA({},zc.connectgaps,{}),fillcolor:{valType:"color",editType:"calc"},autocontour:{valType:"boolean",dflt:!0,editType:"calc",impliedEdits:{"contours.start":void 0,"contours.end":void 0,"contours.size":void 0}},ncontours:{valType:"integer",dflt:15,min:1,editType:"calc"},contours:{type:{valType:"enumerated",values:["levels","constraint"],dflt:"levels",editType:"calc"},start:{valType:"number",dflt:null,editType:"plot",impliedEdits:{"^autocontour":!1}},end:{valType:"number",dflt:null,editType:"plot",impliedEdits:{"^autocontour":!1}},size:{valType:"number",dflt:null,min:0,editType:"plot",impliedEdits:{"^autocontour":!1}},coloring:{valType:"enumerated",values:["fill","heatmap","lines","none"],dflt:"fill",editType:"calc"},showlines:{valType:"boolean",dflt:!0,editType:"plot"},showlabels:{valType:"boolean",dflt:!1,editType:"plot"},labelfont:oVt({editType:"plot",colorEditType:"style"}),labelformat:{valType:"string",dflt:"",editType:"plot",description:iVt("contour label")},operation:{valType:"enumerated",values:[].concat(sVt).concat(lVt),dflt:"=",editType:"calc"},value:{valType:"any",dflt:0,editType:"calc"},editType:"calc",impliedEdits:{autocontour:!1}},line:{color:PA({},ESe.color,{editType:"style+colorbars"}),width:{valType:"number",min:0,editType:"style+colorbars"},dash:aVt,smoothing:PA({},ESe.smoothing,{}),editType:"plot"},zorder:w8.zorder},nVt("",{cLetter:"z",autoColorDflt:!1,editTypeOverride:"calc"}))});var qY=K((Ujr,LSe)=>{"use strict";var k0=x8(),vm=oS(),uVt=Wu(),BY=zf().axisHoverFormat,FSe=Os().extendFlat;LSe.exports=FSe({x:k0.x,y:k0.y,z:k0.z,marker:k0.marker,histnorm:k0.histnorm,histfunc:k0.histfunc,nbinsx:k0.nbinsx,xbins:k0.xbins,nbinsy:k0.nbinsy,ybins:k0.ybins,autobinx:k0.autobinx,autobiny:k0.autobiny,bingroup:k0.bingroup,xbingroup:k0.xbingroup,ybingroup:k0.ybingroup,autocontour:vm.autocontour,ncontours:vm.ncontours,contours:vm.contours,line:{color:vm.line.color,width:FSe({},vm.line.width,{dflt:.5}),dash:vm.line.dash,smoothing:vm.line.smoothing,editType:"plot"},xhoverformat:BY("x"),yhoverformat:BY("y"),zhoverformat:BY("z",1),hovertemplate:k0.hovertemplate,hovertemplatefallback:k0.hovertemplatefallback,texttemplate:vm.texttemplate,texttemplatefallback:vm.texttemplatefallback,textfont:vm.textfont},uVt("",{cLetter:"z",editTypeOverride:"calc"}))});var A8=K((Gjr,PSe)=>{"use strict";PSe.exports=function(t,r,i,n){var a=n("contours.start"),o=n("contours.end"),s=a===!1||o===!1,l=i("contours.size"),u;s?u=r.autocontour=!0:u=i("autocontour",!1),(u||!l)&&i("ncontours")}});var OY=K((Hjr,zSe)=>{"use strict";var fVt=St();zSe.exports=function(t,r,i,n){n||(n={});var a=t("contours.showlabels");if(a){var o=r.font;fVt.coerceFont(t,"contours.labelfont",o,{overrideDflt:{color:i}}),t("contours.labelformat")}n.hasHover!==!1&&t("zhoverformat")}});var T8=K((jjr,ISe)=>{"use strict";var cVt=xh(),hVt=OY();ISe.exports=function(t,r,i,n,a){var o=i("contours.coloring"),s,l="";o==="fill"&&(s=i("contours.showlines")),s!==!1&&(o!=="lines"&&(l=i("line.color","#000")),i("line.width",.5),i("line.dash")),o!=="none"&&(t.showlegend!==!0&&(r.showlegend=!1),r._dfltShowLegend=!1,cVt(t,r,n,i,{prefix:"",cLetter:"z"})),i("line.smoothing"),hVt(i,n,l,a)}});var OSe=K((Wjr,qSe)=>{"use strict";var RSe=St(),dVt=IY(),pVt=A8(),vVt=T8(),mVt=tS(),BSe=qY();qSe.exports=function(t,r,i,n){function a(s,l){return RSe.coerce(t,r,BSe,s,l)}function o(s){return RSe.coerce2(t,r,BSe,s)}dVt(t,r,a,n),r.visible!==!1&&(pVt(t,r,a,o),vVt(t,r,a,n),a("xhoverformat"),a("yhoverformat"),a("hovertemplate"),a("hovertemplatefallback"),r.contours&&r.contours.coloring==="heatmap"&&mVt(a,n))}});var UY=K(($jr,VSe)=>{"use strict";var VY=Cs(),NY=St();VSe.exports=function(t,r){var i=t.contours;if(t.autocontour){var n=t.zmin,a=t.zmax;(t.zauto||n===void 0)&&(n=NY.aggNums(Math.min,null,r)),(t.zauto||a===void 0)&&(a=NY.aggNums(Math.max,null,r));var o=NSe(n,a,t.ncontours);i.size=o.dtick,i.start=VY.tickFirst(o),o.range.reverse(),i.end=VY.tickFirst(o),i.start===n&&(i.start+=i.size),i.end===a&&(i.end-=i.size),i.start>i.end&&(i.start=i.end=(i.start+i.end)/2),t._input.contours||(t._input.contours={}),NY.extendFlat(t._input.contours,{start:i.start,end:i.end,size:i.size}),t._input.autocontour=!0}else if(i.type!=="constraint"){var s=i.start,l=i.end,u=t._input.contours;if(s>l&&(i.start=u.start=l,l=i.end=u.end=s,s=i.start),!(i.size>0)){var f;s===l?f=1:f=NSe(s,l,t.ncontours).dtick,u.size=i.size=f}}};function NSe(e,t,r){var i={type:"linear",range:[e,t]};return VY.autoTicks(i,(t-e)/(r||15)),i}});var sS=K((Yjr,USe)=>{"use strict";USe.exports=function(t){return t.end+t.size/1e6}});var GY=K((Xjr,HSe)=>{"use strict";var GSe=gf(),yVt=l8(),gVt=UY(),xVt=sS();HSe.exports=function(t,r){var i=yVt(t,r),n=i[0].z;gVt(r,n);var a=r.contours,o=GSe.extractOpts(r),s;if(a.coloring==="heatmap"&&o.auto&&r.autocontour===!1){var l=a.start,u=xVt(a),f=a.size||1,c=Math.floor((u-l)/f)+1;isFinite(f)||(f=1,c=1);var h=l-f/2,d=h+c*f;s=[h,d]}else s=n;return GSe.calc(t,r,{vals:s,cLetter:"z"}),i}});var lS={};Fl(lS,{BOTTOMSTART:()=>bVt,CHOOSESADDLE:()=>MVt,LABELDISTANCE:()=>EVt,LABELINCREASE:()=>kVt,LABELMAX:()=>DVt,LABELMIN:()=>CVt,LABELOPTIMIZER:()=>FVt,LEFTSTART:()=>wVt,NEWDELTA:()=>TVt,RIGHTSTART:()=>AVt,SADDLEREMAINDER:()=>SVt,TOPSTART:()=>_Vt});var bVt,_Vt,wVt,AVt,TVt,MVt,SVt,EVt,kVt,CVt,DVt,FVt,uS=ps(()=>{"use strict";bVt=[1,9,13,104,713],_Vt=[4,6,7,104,713],wVt=[8,12,14,208,1114],AVt=[2,3,11,208,1114],TVt=[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]],MVt={104:[4,1],208:[2,8],713:[7,13],1114:[11,14]},SVt={1:4,2:8,4:1,7:13,8:2,11:14,13:7,14:11},EVt=2,kVt=10,CVt=3,DVt=10,FVt={EDGECOST:1,ANGLECOST:1,NEIGHBORCOST:5,SAMELEVELFACTOR:10,SAMELEVELDISTANCE:5,MAXCOST:100,INITIALSEARCHPOINTS:10,ITERATIONS:5}});var HY=K((Zjr,jSe)=>{"use strict";var M8=(uS(),or(lS));jSe.exports=function(t){var r=t[0].z,i=r.length,n=r[0].length,a=i===2||n===2,o,s,l,u,f,c,h,d,p;for(s=0;se?0:1)+(t[0][1]>e?0:2)+(t[1][1]>e?0:4)+(t[1][0]>e?0:8);if(r===5||r===10){var i=(t[0][0]+t[0][1]+t[1][0]+t[1][1])/4;return e>i?r===5?713:1114:r===5?104:208}return r===15?0:r}});var jY=K((Kjr,YSe)=>{"use strict";var S8=St(),zA=(uS(),or(lS));YSe.exports=function(t,r,i){var n,a,o,s,l;for(r=r||.01,i=i||.01,o=0;o20?(o=zA.CHOOSESADDLE[o][(s[0]||s[1])<0?0:1],e.crossings[a]=zA.SADDLEREMAINDER[o]):delete e.crossings[a],s=zA.NEWDELTA[o],!s){S8.log("Found bad marching index:",o,t,e.level);break}l.push($Se(e,t,s)),t[0]+=s[0],t[1]+=s[1],a=t.join(","),fS(l[l.length-1],l[l.length-2],i,n)&&l.pop();var p=s[0]&&(t[0]<0||t[0]>f-2)||s[1]&&(t[1]<0||t[1]>u-2),v=t[0]===c[0]&&t[1]===c[1]&&s[0]===h[0]&&s[1]===h[1];if(v||r&&p)break;o=e.crossings[a]}d===1e4&&S8.log("Infinite loop in contour?");var y=fS(l[0],l[l.length-1],i,n),m=0,w=.2*e.smoothing,_=[],b=0,M,x,T,A,g,E,S,C,k,D,F;for(d=1;d=b;d--)if(M=_[d],M=b&&M+_[x]C&&k--,e.edgepaths[k]=F.concat(l,D));break}z||(e.edgepaths[C]=l.concat(D))}for(C=0;C20&&t?e===208||e===1114?i=r[0]===0?1:-1:n=r[1]===0?1:-1:zA.BOTTOMSTART.indexOf(e)!==-1?n=1:zA.LEFTSTART.indexOf(e)!==-1?i=1:zA.TOPSTART.indexOf(e)!==-1?n=-1:i=-1,[i,n]}function $Se(e,t,r){var i=t[0]+Math.max(r[0],0),n=t[1]+Math.max(r[1],0),a=e.z[n][i],o=e.xaxis,s=e.yaxis;if(r[1]){var l=(e.level-a)/(e.z[n][i+1]-a),u=(l!==1?(1-l)*o.c2l(e.x[i]):0)+(l!==0?l*o.c2l(e.x[i+1]):0);return[o.c2p(o.l2c(u),!0),s.c2p(e.y[n],!0),i+l,n]}else{var f=(e.level-a)/(e.z[n+1][i]-a),c=(f!==1?(1-f)*s.c2l(e.y[n]):0)+(f!==0?f*s.c2l(e.y[n+1]):0);return[o.c2p(e.x[i],!0),s.c2p(s.l2c(c),!0),i,n+f]}}});var JSe=K((Jjr,KSe)=>{"use strict";var WY=(_8(),or(b8)),IVt=Hs();KSe.exports={"[]":XSe("[]"),"][":XSe("]["),">":$Y(">"),"<":$Y("<"),"=":$Y("=")};function ZSe(e,t){var r=Array.isArray(t),i;function n(a){return IVt(a)?+a:null}return WY.COMPARISON_OPS2.indexOf(e)!==-1?i=n(r?t[0]:t):WY.INTERVAL_OPS.indexOf(e)!==-1?i=r?[n(t[0]),n(t[1])]:[n(t),n(t)]:WY.SET_OPS.indexOf(e)!==-1&&(i=r?t.map(n):[n(t)]),i}function XSe(e){return function(t){t=ZSe(e,t);var r=Math.min(t[0],t[1]),i=Math.max(t[0],t[1]);return{start:r,end:i,size:i-r}}}function $Y(e){return function(t){return t=ZSe(e,t),{start:t,end:1/0,size:1/0}}}});var YY=K((Qjr,eEe)=>{"use strict";var QSe=St(),RVt=JSe(),BVt=sS();eEe.exports=function(t,r,i){for(var n=t.type==="constraint"?RVt[t._operation](t.value):t,a=n.size,o=[],s=BVt(n),l=i.trace._carpetTrace,u=l?{xaxis:l.aaxis,yaxis:l.baxis,x:i.a,y:i.b}:{xaxis:r.xaxis,yaxis:r.yaxis,x:i.x,y:i.y},f=n.start;f1e3){QSe.warn("Too many contours, clipping at 1000",t);break}return o}});var XY=K((eWr,rEe)=>{"use strict";var IA=St();rEe.exports=function(e,t){var r,i,n,a=function(l){return l.reverse()},o=function(l){return l};switch(t){case"=":case"<":return e;case">":for(e.length!==1&&IA.warn("Contour data invalid for the specified inequality operation."),i=e[0],r=0;r{"use strict";iEe.exports=function(e,t){var r=e[0],i=r.z,n;switch(t.type){case"levels":var a=Math.min(i[0][0],i[0][1]);for(n=0;no.level||o.starts.length&&a===o.level)}break;case"constraint":if(r.prefixBoundary=!1,r.edgepaths.length)return;var s=r.x.length,l=r.y.length,u=-1/0,f=1/0;for(n=0;n":c>u&&(r.prefixBoundary=!0);break;case"<":(cu||r.starts.length&&d===f)&&(r.prefixBoundary=!0);break;case"][":h=Math.min(c[0],c[1]),d=Math.max(c[0],c[1]),hu&&(r.prefixBoundary=!0);break}break}}});var E8=K(K0=>{"use strict";var hS=No(),Rh=St(),Ty=Is(),qVt=gf(),oEe=Du(),nEe=Cs(),aEe=$1(),OVt=c8(),sEe=HY(),lEe=jY(),NVt=YY(),VVt=XY(),uEe=ZY(),cS=(uS(),or(lS)),mm=cS.LABELOPTIMIZER;K0.plot=function(t,r,i,n){var a=r.xaxis,o=r.yaxis;Rh.makeTraceGroups(n,i,"contour").each(function(s){var l=hS.select(this),u=s[0],f=u.trace,c=u.x,h=u.y,d=f.contours,p=NVt(d,r,u),v=Rh.ensureSingle(l,"g","heatmapcoloring"),y=[];d.coloring==="heatmap"&&(y=[s]),OVt(t,r,y,v),sEe(p),lEe(p);var m=a.c2p(c[0],!0),w=a.c2p(c[c.length-1],!0),_=o.c2p(h[0],!0),b=o.c2p(h[h.length-1],!0),M=[[m,b],[w,b],[w,_],[m,_]],x=p;d.type==="constraint"&&(x=VVt(p,d._operation)),UVt(l,M,d),GVt(l,x,M,d),HVt(l,p,t,u,d),WVt(l,r,t,u,M)})};function UVt(e,t,r){var i=Rh.ensureSingle(e,"g","contourbg"),n=i.selectAll("path").data(r.coloring==="fill"?[0]:[]);n.enter().append("path"),n.exit().remove(),n.attr("d","M"+t.join("L")+"Z").style("stroke","none")}function GVt(e,t,r,i){var n=i.coloring==="fill"||i.type==="constraint"&&i._operation!=="=",a="M"+r.join("L")+"Z";n&&uEe(t,i);var o=Rh.ensureSingle(e,"g","contourfill"),s=o.selectAll("path").data(n?t:[]);s.enter().append("path"),s.exit().remove(),s.each(function(l){var u=(l.prefixBoundary?a:"")+fEe(l,r);u?hS.select(this).attr("d",u).style("stroke","none"):hS.select(this).remove()})}function fEe(e,t){var r="",i=0,n=e.edgepaths.map(function(m,w){return w}),a=!0,o,s,l,u,f,c;function h(m){return Math.abs(m[1]-t[0][1])<.01}function d(m){return Math.abs(m[1]-t[2][1])<.01}function p(m){return Math.abs(m[0]-t[0][0])<.01}function v(m){return Math.abs(m[0]-t[2][0])<.01}for(;n.length;){for(c=Ty.smoothopen(e.edgepaths[i],e.smoothing),r+=a?c:c.replace(/^M/,"L"),n.splice(n.indexOf(i),1),o=e.edgepaths[i][e.edgepaths[i].length-1],u=-1,l=0;l<4;l++){if(!o){Rh.log("Missing end?",i,e);break}for(h(o)&&!v(o)?s=t[1]:p(o)?s=t[0]:d(o)?s=t[3]:v(o)&&(s=t[2]),f=0;f=0&&(s=y,u=f):Math.abs(o[1]-s[1])<.01?Math.abs(o[1]-y[1])<.01&&(y[0]-o[0])*(s[0]-y[0])>=0&&(s=y,u=f):Rh.log("endpt to newendpt is not vert. or horz.",o,s,y)}if(o=s,u>=0)break;r+="L"+s}if(u===e.edgepaths.length){Rh.log("unclosed perimeter path");break}i=u,a=n.indexOf(i)===-1,a&&(i=n[0],r+="Z")}for(i=0;imm.MAXCOST*2)break;h&&(s/=2),o=u-s/2,l=o+s*1.5}if(c<=mm.MAXCOST)return f};function jVt(e,t,r,i){var n=t.width/2,a=t.height/2,o=e.x,s=e.y,l=e.theta,u=Math.cos(l)*n,f=Math.sin(l)*n,c=(o>i.center?i.right-o:o-i.left)/(u+Math.abs(Math.sin(l)*a)),h=(s>i.middle?i.bottom-s:s-i.top)/(Math.abs(f)+Math.cos(l)*a);if(c<1||h<1)return 1/0;var d=mm.EDGECOST*(1/(c-1)+1/(h-1));d+=mm.ANGLECOST*l*l;for(var p=o-u,v=s-f,y=o+u,m=s+f,w=0;w{"use strict";var YVt=No(),KY=gf(),XVt=sS();cEe.exports=function(t){var r=t.contours,i=r.start,n=XVt(r),a=r.size||1,o=Math.floor((n-i)/a)+1,s=r.coloring==="lines"?0:1,l=KY.extractOpts(t);isFinite(a)||(a=1,o=1);var u=l.reversescale?KY.flipScale(l.colorscale):l.colorscale,f=u.length,c=new Array(f),h=new Array(f),d,p,v=l.min,y=l.max;if(r.coloring==="heatmap"){for(p=0;p=y)&&(i<=v&&(i=v),n>=y&&(n=y),o=Math.floor((n-i)/a)+1,s=0),p=0;pv&&(c.unshift(v),h.unshift(h[0])),c[c.length-1]{"use strict";var k8=No(),hEe=Is(),ZVt=h8(),KVt=JY();dEe.exports=function(t){var r=k8.select(t).selectAll("g.contour");r.style("opacity",function(i){return i[0].trace.opacity}),r.each(function(i){var n=k8.select(this),a=i[0].trace,o=a.contours,s=a.line,l=o.size||1,u=o.start,f=o.type==="constraint",c=!f&&o.coloring==="lines",h=!f&&o.coloring==="fill",d=c||h?KVt(a):null;n.selectAll("g.contourlevel").each(function(y){k8.select(this).selectAll("path").call(hEe.lineGroupStyle,s.width,c?d(y.level):s.color,s.dash)});var p=o.labelfont;if(n.selectAll("g.contourlabels text").each(function(y){hEe.font(k8.select(this),{weight:p.weight,style:p.style,variant:p.variant,textcase:p.textcase,lineposition:p.lineposition,shadow:p.shadow,family:p.family,size:p.size,color:p.color||(c?d(y.level):s.color)})}),f)n.selectAll("g.contourfill path").style("fill",a.fillcolor);else if(h){var v;n.selectAll("g.contourfill path").style("fill",function(y){return v===void 0&&(v=y.level),d(y.level+.5*l)}),v===void 0&&(v=u),n.selectAll("g.contourbg path").style("fill",d(v-.5*l))}}),ZVt(t)}});var D8=K((aWr,vEe)=>{"use strict";var pEe=gf(),JVt=JY(),QVt=sS();function eUt(e,t,r){var i=t.contours,n=t.line,a=i.size||1,o=i.coloring,s=JVt(t,{isColorbar:!0});if(o==="heatmap"){var l=pEe.extractOpts(t);r._fillgradient=l.reversescale?pEe.flipScale(l.colorscale):l.colorscale,r._zrange=[l.min,l.max]}else o==="fill"&&(r._fillcolor=s);r._line={color:o==="lines"?s:n.color,width:i.showlines!==!1?n.width:0,dash:n.dash},r._levels={start:i.start,end:QVt(i),size:a}}vEe.exports={min:"zmin",max:"zmax",calc:eUt}});var QY=K((oWr,mEe)=>{"use strict";var F8=wo(),tUt=p8();mEe.exports=function(t,r,i,n,a){a||(a={}),a.isContour=!0;var o=tUt(t,r,i,n,a);return o&&o.forEach(function(s){var l=s.trace;l.contours.type==="constraint"&&(l.fillcolor&&F8.opacity(l.fillcolor)?s.color=F8.addOpacity(l.fillcolor,1):l.contours.showlines&&F8.opacity(l.line.color)&&(s.color=F8.addOpacity(l.line.color,1)))}),o}});var gEe=K((sWr,yEe)=>{"use strict";yEe.exports={attributes:qY(),supplyDefaults:OSe(),crossTraceDefaults:y8(),calc:GY(),plot:E8().plot,layerName:"contourlayer",style:C8(),colorbar:D8(),hoverPoints:QY(),moduleType:"trace",name:"histogram2dcontour",basePlotModule:gc(),categories:["cartesian","svg","2dMap","contour","histogram","showLegend"],meta:{}}});var bEe=K((lWr,xEe)=>{"use strict";xEe.exports=gEe()});var eX=K((uWr,SEe)=>{"use strict";var _Ee=Hs(),rUt=OY(),TEe=wo(),wEe=TEe.addOpacity,iUt=TEe.opacity,MEe=(_8(),or(b8)),AEe=St().isArrayOrTypedArray,nUt=MEe.CONSTRAINT_REDUCTION,aUt=MEe.COMPARISON_OPS2;SEe.exports=function(t,r,i,n,a,o){var s=r.contours,l,u,f,c=i("contours.operation");if(s._operation=nUt[c],oUt(i,s),c==="="?l=s.showlines=!0:(l=i("contours.showlines"),f=i("fillcolor",wEe((t.line||{}).color||a,.5))),l){var h=f&&iUt(f)?wEe(r.fillcolor,1):a;u=i("line.color",h),i("line.width",2),i("line.dash")}i("line.smoothing"),rUt(i,n,u,o)};function oUt(e,t){var r;aUt.indexOf(t.operation)===-1?(e("contours.value",[0,1]),AEe(t.value)?t.value.length>2?t.value=t.value.slice(2):t.length===0?t.value=[0,1]:t.length<2?(r=parseFloat(t.value[0]),t.value=[r,r+1]):t.value=[parseFloat(t.value[0]),parseFloat(t.value[1])]:_Ee(t.value)&&(r=parseFloat(t.value),t.value=[r,r+1])):(e("contours.value",0),_Ee(t.value)||(AEe(t.value)?t.value=parseFloat(t.value[0]):t.value=0))}});var CEe=K((fWr,kEe)=>{"use strict";var tX=St(),sUt=J9(),lUt=Jv(),uUt=eX(),fUt=A8(),cUt=T8(),hUt=tS(),EEe=oS();kEe.exports=function(t,r,i,n){function a(u,f){return tX.coerce(t,r,EEe,u,f)}function o(u){return tX.coerce2(t,r,EEe,u)}var s=sUt(t,r,a,n);if(!s){r.visible=!1;return}lUt(t,r,n,a),a("xhoverformat"),a("yhoverformat"),a("text"),a("hovertext"),a("hoverongaps"),a("hovertemplate"),a("hovertemplatefallback");var l=a("contours.type")==="constraint";a("connectgaps",tX.isArray1D(r.z)),l?uUt(t,r,a,n,i):(fUt(t,r,a,o),cUt(t,r,a,n)),r.contours&&r.contours.coloring==="heatmap"&&hUt(a,n),a("zorder")}});var FEe=K((cWr,DEe)=>{"use strict";DEe.exports={attributes:oS(),supplyDefaults:CEe(),calc:GY(),plot:E8().plot,style:C8(),colorbar:D8(),hoverPoints:QY(),moduleType:"trace",name:"contour",basePlotModule:gc(),categories:["cartesian","svg","2dMap","contour","showLegend"],meta:{}}});var PEe=K((hWr,LEe)=>{"use strict";LEe.exports=FEe()});var rX=K((dWr,BEe)=>{"use strict";var{hovertemplateAttrs:dUt,texttemplateAttrs:pUt,templatefallbackAttrs:zEe}=gu(),vUt=sm(),pp=Qf(),mUt=Tu(),IEe=Wu(),yUt=gh().dash,d2=Os().extendFlat,ov=pp.marker,dS=pp.line,REe=ov.line;BEe.exports={a:{valType:"data_array",editType:"calc"},b:{valType:"data_array",editType:"calc"},c:{valType:"data_array",editType:"calc"},sum:{valType:"number",dflt:0,min:0,editType:"calc"},mode:d2({},pp.mode,{dflt:"markers"}),text:d2({},pp.text,{}),texttemplate:pUt({editType:"plot"},{keys:["a","b","c","text"]}),texttemplatefallback:zEe({editType:"plot"}),hovertext:d2({},pp.hovertext,{}),line:{color:dS.color,width:dS.width,dash:yUt,backoff:dS.backoff,shape:d2({},dS.shape,{values:["linear","spline"]}),smoothing:dS.smoothing,editType:"calc"},connectgaps:pp.connectgaps,cliponaxis:pp.cliponaxis,fill:d2({},pp.fill,{values:["none","toself","tonext"],dflt:"none"}),fillcolor:vUt(),marker:d2({symbol:ov.symbol,opacity:ov.opacity,angle:ov.angle,angleref:ov.angleref,standoff:ov.standoff,maxdisplayed:ov.maxdisplayed,size:ov.size,sizeref:ov.sizeref,sizemin:ov.sizemin,sizemode:ov.sizemode,line:d2({width:REe.width,dash:REe.dash,editType:"calc"},IEe("marker.line")),gradient:ov.gradient,editType:"calc"},IEe("marker")),textfont:pp.textfont,textposition:pp.textposition,selected:pp.selected,unselected:pp.unselected,hoverinfo:d2({},mUt.hoverinfo,{flags:["a","b","c","text","name"]}),hoveron:pp.hoveron,hovertemplate:dUt(),hovertemplatefallback:zEe()}});var VEe=K((pWr,NEe)=>{"use strict";var qEe=St(),gUt=(om(),or(am)),RA=ff(),xUt=Xp(),bUt=Qv(),OEe=Qw(),_Ut=e1(),wUt=um(),AUt=rX();NEe.exports=function(t,r,i,n){function a(h,d){return qEe.coerce(t,r,AUt,h,d)}var o=a("a"),s=a("b"),l=a("c"),u;if(o?(u=o.length,s?(u=Math.min(u,s.length),l&&(u=Math.min(u,l.length))):l?u=Math.min(u,l.length):u=0):s&&l&&(u=Math.min(s.length,l.length)),!u){r.visible=!1;return}r._length=u,a("sum"),a("text"),a("hovertext"),r.hoveron!=="fills"&&(a("hovertemplate"),a("hovertemplatefallback"));var f=u{"use strict";var iX=Cs();UEe.exports=function(t,r,i){var n={},a=i[r.subplot]._subplot;return n.aLabel=iX.tickText(a.aaxis,t.a,!0).text,n.bLabel=iX.tickText(a.baxis,t.b,!0).text,n.cLabel=iX.tickText(a.caxis,t.c,!0).text,n}});var $Ee=K((mWr,WEe)=>{"use strict";var nX=Hs(),TUt=Zp(),MUt=fm(),SUt=op(),EUt=Kp().calcMarkerSize,HEe=["a","b","c"],jEe={a:["b","c"],b:["a","c"],c:["a","b"]};WEe.exports=function(t,r){var i=t._fullLayout[r.subplot],n=i.sum,a=r.sum||n,o={a:r.a,b:r.b,c:r.c},s=r.ids,l,u,f,c,h,d;for(l=0;l{"use strict";var kUt=aA();YEe.exports=function(t,r,i){var n=r.plotContainer;n.select(".scatterlayer").selectAll("*").remove();for(var a=r.xaxis,o=r.yaxis,s={xaxis:a,yaxis:o,plot:n,layerClipId:r._hasClipOnAxisFalse?r.clipIdRelative:null},l=r.layers.frontplot.select("g.scatterlayer"),u=0;u{"use strict";var CUt=uA();ZEe.exports=function(t,r,i,n){var a=CUt(t,r,i,n);if(!a||a[0].index===!1)return;var o=a[0];if(o.index===void 0){var s=1-o.y0/t.ya._length,l=t.xa._length,u=l*s/2,f=l-u;return o.x0=Math.max(Math.min(o.x0,f),u),o.x1=Math.max(Math.min(o.x1,f),u),a}var c=o.cd[o.index],h=o.trace,d=o.subplot;o.a=c.a,o.b=c.b,o.c=c.c,o.xLabelVal=void 0,o.yLabelVal=void 0;var p={};p[h.subplot]={_subplot:d};var v=h._module.formatLabels(c,h,p);o.aLabel=v.aLabel,o.bLabel=v.bLabel,o.cLabel=v.cLabel;var y=c.hi||h.hoverinfo,m=[];function w(b,M){m.push(b._hovertitle+": "+M)}if(!h.hovertemplate){var _=y.split("+");_.indexOf("all")!==-1&&(_=["a","b","c"]),_.indexOf("a")!==-1&&w(d.aaxis,o.aLabel),_.indexOf("b")!==-1&&w(d.baxis,o.bLabel),_.indexOf("c")!==-1&&w(d.caxis,o.cLabel)}return o.extraText=m.join("
"),o.hovertemplate=h.hovertemplate,a}});var QEe=K((xWr,JEe)=>{"use strict";JEe.exports=function(t,r,i,n,a){if(r.xa&&(t.xaxis=r.xa),r.ya&&(t.yaxis=r.ya),n[a]){var o=n[a];t.a=o.a,t.b=o.b,t.c=o.c}else t.a=r.a,t.b=r.b,t.c=r.c;return t}});var cke=K((bWr,fke)=>{"use strict";var oke=No(),aX=Ho(),lv=St(),sv=lv.strTranslate,L8=lv._,dd=wo(),Kb=Is(),eke=Du(),pS=$1(),oX=Os().extendFlat,DUt=yf(),My=Cs(),tke=U0(),rke=Gf(),ske=Q1(),ike=ske.freeMode,FUt=ske.rectMode,sX=vb(),LUt=fh().prepSelect,PUt=fh().selectOnClick,zUt=fh().clearOutline,IUt=fh().clearSelectionsCache,lke=(jc(),or(Hc));function uke(e,t){this.id=e.id,this.graphDiv=e.graphDiv,this.init(t),this.makeFramework(t),this.updateFx(t),this.aTickLayout=null,this.bTickLayout=null,this.cTickLayout=null}fke.exports=uke;var h1=uke.prototype;h1.init=function(e){this.container=e._ternarylayer,this.defs=e._defs,this.layoutId=e._uid,this.traceHash={},this.layers={}};h1.plot=function(e,t){var r=this,i=t[r.id],n=t._size;r._hasClipOnAxisFalse=!1;for(var a=0;au.showspikes))return;let o=this.sum-a[0].min-a[1].min-a[2].min,s=dd.combine(n[this.id].bgcolor,n.paper_bgcolor),l;for(let u=0;uBA*u?(m=u,y=m*BA):(y=l,m=y/BA),w=o*y/l,_=s*m/u,p=t.l+t.w*n-y/2,v=t.t+t.h*(1-a)-m/2,r.x0=p,r.y0=v,r.w=y,r.h=m,r.sum=f,r.xaxis={type:"linear",range:[c+2*d-f,f-c-2*h],domain:[n-w/2,n+w/2],_id:"x"},pS(r.xaxis,r.graphDiv._fullLayout),r.xaxis.setScale(),r.xaxis.isPtWithinRange=function(D){return D.a>=r.aaxis.range[0]&&D.a<=r.aaxis.range[1]&&D.b>=r.baxis.range[1]&&D.b<=r.baxis.range[0]&&D.c>=r.caxis.range[1]&&D.c<=r.caxis.range[0]},r.yaxis={type:"linear",range:[c,f-h-d],domain:[a-_/2,a+_/2],_id:"y"},pS(r.yaxis,r.graphDiv._fullLayout),r.yaxis.setScale(),r.yaxis.isPtWithinRange=function(){return!0};var b=r.yaxis.domain[0],M=r.aaxis=oX({},e.aaxis,{range:[c,f-h-d],side:"left",tickangle:(+e.aaxis.tickangle||0)-30,domain:[b,b+_*BA],anchor:"free",position:0,_id:"y",_length:y});pS(M,r.graphDiv._fullLayout),M.setScale();var x=r.baxis=oX({},e.baxis,{range:[f-c-d,h],side:"bottom",domain:r.xaxis.domain,anchor:"free",position:0,_id:"x",_length:y});pS(x,r.graphDiv._fullLayout),x.setScale();var T=r.caxis=oX({},e.caxis,{range:[f-c-h,d],side:"right",tickangle:(+e.caxis.tickangle||0)+30,domain:[b,b+_*BA],anchor:"free",position:0,_id:"y",_length:y});pS(T,r.graphDiv._fullLayout),T.setScale();var A="M"+p+","+(v+m)+"h"+y+"l-"+y/2+",-"+m+"Z";r.clipDef.select("path").attr("d",A),r.layers.plotbg.select("path").attr("d",A);var g="M0,"+m+"h"+y+"l-"+y/2+",-"+m+"Z";r.clipDefRelative.select("path").attr("d",g);var E=sv(p,v);r.plotContainer.selectAll(".scatterlayer,.maplayer").attr("transform",E),r.clipDefRelative.select("path").attr("transform",null);var S=sv(p-x._offset,v+m);r.layers.baxis.attr("transform",S),r.layers.bgrid.attr("transform",S);var C=sv(p+y/2,v)+"rotate(30)"+sv(0,-M._offset);r.layers.aaxis.attr("transform",C),r.layers.agrid.attr("transform",C);var k=sv(p+y/2,v)+"rotate(-30)"+sv(0,-T._offset);r.layers.caxis.attr("transform",k),r.layers.cgrid.attr("transform",k),r.drawAxes(!0),r.layers.aline.select("path").attr("d",M.showline?"M"+p+","+(v+m)+"l"+y/2+",-"+m:"M0,0").call(dd.stroke,M.linecolor||"#000").style("stroke-width",(M.linewidth||0)+"px"),r.layers.bline.select("path").attr("d",x.showline?"M"+p+","+(v+m)+"h"+y:"M0,0").call(dd.stroke,x.linecolor||"#000").style("stroke-width",(x.linewidth||0)+"px"),r.layers.cline.select("path").attr("d",T.showline?"M"+(p+y/2)+","+v+"l"+y/2+","+m:"M0,0").call(dd.stroke,T.linecolor||"#000").style("stroke-width",(T.linewidth||0)+"px"),r.graphDiv._context.staticPlot||r.initInteractions(),Kb.setClipUrl(r.layers.frontplot,r._hasClipOnAxisFalse?null:r.clipId,r.graphDiv)};h1.drawAxes=function(e){var t=this,r=t.graphDiv,i=t.id.slice(7)+"title",n=t.layers,a=t.aaxis,o=t.baxis,s=t.caxis;if(t.drawAx(a),t.drawAx(o),t.drawAx(s),e){var l=Math.max(a.showticklabels?a.tickfont.size/2:0,(s.showticklabels?s.tickfont.size*.75:0)+(s.ticks==="outside"?s.ticklen*.87:0)),u=(o.showticklabels?o.tickfont.size:0)+(o.ticks==="outside"?o.ticklen:0)+3;n["a-title"]=sX.draw(r,"a"+i,{propContainer:a,propName:t.id+".aaxis.title.text",placeholder:L8(r,"Click to enter Component A title"),attributes:{x:t.x0+t.w/2,y:t.y0-a.title.font.size/3-l,"text-anchor":"middle"}}),n["b-title"]=sX.draw(r,"b"+i,{propContainer:o,propName:t.id+".baxis.title.text",placeholder:L8(r,"Click to enter Component B title"),attributes:{x:t.x0-u,y:t.y0+t.h+o.title.font.size*.83+u,"text-anchor":"middle"}}),n["c-title"]=sX.draw(r,"c"+i,{propContainer:s,propName:t.id+".caxis.title.text",placeholder:L8(r,"Click to enter Component C title"),attributes:{x:t.x0+t.w+u,y:t.y0+t.h+s.title.font.size*.83+u,"text-anchor":"middle"}})}};h1.drawAx=function(e){var t=this,r=t.graphDiv,i=e._name,n=i.charAt(0),a=e._id,o=t.layers[i],s=30,l=n+"tickLayout",u=RUt(e);t[l]!==u&&(o.selectAll("."+a+"tick").remove(),t[l]=u),e.setScale();var f=My.calcTicks(e),c=My.clipEnds(e,f),h=My.makeTransTickFn(e),d=My.getTickSigns(e)[2],p=lv.deg2rad(s),v=d*(e.linewidth||1)/2,y=d*e.ticklen,m=t.w,w=t.h,_=n==="b"?"M0,"+v+"l"+Math.sin(p)*y+","+Math.cos(p)*y:"M"+v+",0l"+Math.cos(p)*y+","+-Math.sin(p)*y,b={a:"M0,0l"+w+",-"+m/2,b:"M0,0l-"+m/2+",-"+w,c:"M0,0l-"+w+","+m/2}[n];My.drawTicks(r,e,{vals:e.ticks==="inside"?c:f,layer:o,path:_,transFn:h,crisp:!1}),My.drawGrid(r,e,{vals:c,layer:t.layers[n+"grid"],path:b,transFn:h,crisp:!1}),My.drawLabels(r,e,{vals:f,layer:o,transFn:h,labelFns:My.makeLabelFns(e,0,s)})};function RUt(e){return e.ticks+String(e.ticklen)+String(e.showticklabels)}var Th=lke.MINZOOM/2+.87,BUt="m-0.87,.5h"+Th+"v3h-"+(Th+5.2)+"l"+(Th/2+2.6)+",-"+(Th*.87+4.5)+"l2.6,1.5l-"+Th/2+","+Th*.87+"Z",qUt="m0.87,.5h-"+Th+"v3h"+(Th+5.2)+"l-"+(Th/2+2.6)+",-"+(Th*.87+4.5)+"l-2.6,1.5l"+Th/2+","+Th*.87+"Z",OUt="m0,1l"+Th/2+","+Th*.87+"l2.6,-1.5l-"+(Th/2+2.6)+",-"+(Th*.87+4.5)+"l-"+(Th/2+2.6)+","+(Th*.87+4.5)+"l2.6,1.5l"+Th/2+",-"+Th*.87+"Z",NUt="m0.5,0.5h5v-2h-5v-5h-2v5h-5v2h5v5h2Z",nke=!0;h1.clearOutline=function(){IUt(this.dragOptions),zUt(this.dragOptions.gd)};h1.initInteractions=function(){var e=this,t=e.layers.plotbg.select("path").node(),r=e.graphDiv,i=r._fullLayout._zoomlayer,n,a;this.dragOptions={element:t,gd:r,plotinfo:{id:e.id,domain:r._fullLayout[e.id].domain,xaxis:e.xaxis,yaxis:e.yaxis},subplot:e.id,prepFn:function(S,C,k){e.dragOptions.xaxes=[e.xaxis],e.dragOptions.yaxes=[e.yaxis],n=r._fullLayout._invScaleX,a=r._fullLayout._invScaleY;var D=e.dragOptions.dragmode=r._fullLayout.dragmode;ike(D)?e.dragOptions.minDrag=1:e.dragOptions.minDrag=void 0,D==="zoom"?(e.dragOptions.moveFn=x,e.dragOptions.clickFn=m,e.dragOptions.doneFn=T,w(S,C,k)):D==="pan"?(e.dragOptions.moveFn=g,e.dragOptions.clickFn=m,e.dragOptions.doneFn=E,A(),e.clearOutline(r)):(FUt(D)||ike(D))&&LUt(S,C,k,e.dragOptions,D)}};var o,s,l,u,f,c,h,d,p,v;function y(S){var C={};return C[e.id+".aaxis.min"]=S.a,C[e.id+".baxis.min"]=S.b,C[e.id+".caxis.min"]=S.c,C}function m(S,C){var k=r._fullLayout.clickmode;ake(r),S===2&&(r.emit("plotly_doubleclick",null),aX.call("_guiRelayout",r,y({a:0,b:0,c:0}))),k.indexOf("select")>-1&&S===1&&PUt(C,r,[e.xaxis],[e.yaxis],e.id,e.dragOptions),k.indexOf("event")>-1&&rke.click(r,C,e.id)}function w(S,C,k){var D=t.getBoundingClientRect();o=C-D.left,s=k-D.top,r._fullLayout._calcInverseTransform(r);var F=r._fullLayout._invTransform,P=lv.apply3DTransform(F)(o,s);o=P[0],s=P[1],l={a:e.aaxis.range[0],b:e.baxis.range[1],c:e.caxis.range[1]},f=l,u=e.aaxis.range[1]-l.a,c=dd.luminosity(e.graphDiv._fullLayout[e.id].bgcolor),h="M0,"+e.h+"L"+e.w/2+", 0L"+e.w+","+e.h+"Z",d=!1,p=i.append("path").attr("class","zoombox").attr("transform",sv(e.x0,e.y0)).style({fill:c>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("d",h),v=i.append("path").attr("class","zoombox-corners").attr("transform",sv(e.x0,e.y0)).style({fill:dd.background,stroke:dd.defaultLine,"stroke-width":1,opacity:0}).attr("d","M0,0Z"),e.clearOutline(r)}function _(S,C){return 1-C/e.h}function b(S,C){return 1-(S+(e.h-C)/Math.sqrt(3))/e.w}function M(S,C){return(S-(e.h-C)/Math.sqrt(3))/e.w}function x(S,C){var k=o+S*n,D=s+C*a,F=Math.max(0,Math.min(1,_(o,s),_(k,D))),P=Math.max(0,Math.min(1,b(o,s),b(k,D))),I=Math.max(0,Math.min(1,M(o,s),M(k,D))),L=(F/2+I)*e.w,z=(1-F/2-P)*e.w,B=(L+z)/2,O=z-L,W=(1-F)*e.h,X=W-O/BA;O.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),v.transition().style("opacity",1).duration(200),d=!0),r.emit("plotly_relayouting",y(f))}function T(){ake(r),f!==l&&(aX.call("_guiRelayout",r,y(f)),nke&&r.data&&r._context.showTips&&(lv.notifier(L8(r,"Double-click to zoom back out"),"long",r),nke=!1))}function A(){l={a:e.aaxis.range[0],b:e.baxis.range[1],c:e.caxis.range[1]},f=l}function g(S,C){var k=S/e.xaxis._m,D=C/e.yaxis._m;f={a:l.a-D,b:l.b+(k+D)/2,c:l.c-(k-D)/2};var F=[f.a,f.b,f.c].sort(lv.sorterAsc),P={a:F.indexOf(f.a),b:F.indexOf(f.b),c:F.indexOf(f.c)};F[0]<0&&(F[1]+F[0]/2<0?(F[2]+=F[0]+F[1],F[0]=F[1]=0):(F[2]+=F[0]/2,F[1]+=F[0]/2,F[0]=0),f={a:F[P.a],b:F[P.b],c:F[P.c]},C=(l.a-f.a)*e.yaxis._m,S=(l.c-f.c-l.b+f.b)*e.xaxis._m);var I=sv(e.x0+S,e.y0+C);e.plotContainer.selectAll(".scatterlayer,.maplayer").attr("transform",I);var L=sv(-S,-C);e.clipDefRelative.select("path").attr("transform",L),e.aaxis.range=[f.a,e.sum-f.b-f.c],e.baxis.range=[e.sum-f.a-f.c,f.b],e.caxis.range=[e.sum-f.a-f.b,f.c],e.drawAxes(!1),e._hasClipOnAxisFalse&&e.plotContainer.select(".scatterlayer").selectAll(".trace").call(Kb.hideOutsideRangePoints,e),r.emit("plotly_relayouting",y(f))}function E(){aX.call("_guiRelayout",r,y(f))}t.onmousemove=function(S){rke.hover(r,S,e.id),r._fullLayout._lasthover=t,r._fullLayout._hoversubplot=e.id},t.onmouseout=function(S){r._dragging||tke.unhover(r,S)},tke.init(this.dragOptions)};function ake(e){oke.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}});var uX=K((_Wr,hke)=>{"use strict";var VUt=Gc(),UUt=kf().attributes,lu=Ph(),GUt=Ef().overrideAll,P8=Os().extendFlat,lX={title:{text:lu.title.text,font:lu.title.font},color:lu.color,tickmode:lu.minor.tickmode,nticks:P8({},lu.nticks,{dflt:6,min:1}),tick0:lu.tick0,dtick:lu.dtick,tickvals:lu.tickvals,ticktext:lu.ticktext,ticks:lu.ticks,ticklen:lu.ticklen,tickwidth:lu.tickwidth,tickcolor:lu.tickcolor,ticklabelstep:lu.ticklabelstep,showticklabels:lu.showticklabels,labelalias:lu.labelalias,showtickprefix:lu.showtickprefix,tickprefix:lu.tickprefix,showticksuffix:lu.showticksuffix,ticksuffix:lu.ticksuffix,showexponent:lu.showexponent,exponentformat:lu.exponentformat,minexponent:lu.minexponent,separatethousands:lu.separatethousands,tickfont:lu.tickfont,tickangle:lu.tickangle,tickformat:lu.tickformat,tickformatstops:lu.tickformatstops,hoverformat:lu.hoverformat,showline:P8({},lu.showline,{dflt:!0}),linecolor:lu.linecolor,linewidth:lu.linewidth,showgrid:P8({},lu.showgrid,{dflt:!0}),gridcolor:lu.gridcolor,gridwidth:lu.gridwidth,griddash:lu.griddash,layer:lu.layer,min:{valType:"number",dflt:0,min:0},showspikes:P8({},lu.showspikes,{}),spikecolor:lu.spikecolor,spikethickness:lu.spikethickness,spikedash:lu.spikedash,spikemode:lu.spikemode,spikesnap:lu.spikesnap},z8=hke.exports=GUt({domain:UUt({name:"ternary"}),bgcolor:{valType:"color",dflt:VUt.background},sum:{valType:"number",dflt:1,min:0},aaxis:lX,baxis:lX,caxis:lX},"plot","from-root");z8.uirevision={valType:"any",editType:"none"};z8.aaxis.uirevision=z8.baxis.uirevision=z8.caxis.uirevision={valType:"any",editType:"none"}});var Jb=K((wWr,dke)=>{"use strict";var HUt=St(),jUt=cu(),WUt=kf().defaults;dke.exports=function(t,r,i,n){var a=n.type,o=n.attributes,s=n.handleDefaults,l=n.partition||"x",u=r._subplots[a],f=u.length,c=f&&u[0].replace(/\d+$/,""),h,d;function p(w,_){return HUt.coerce(h,d,o,w,_)}for(var v=0;v{"use strict";var $Ut=wo(),YUt=cu(),vS=St(),XUt=Jb(),ZUt=Bg(),KUt=qg(),JUt=Dw(),QUt=fb(),eGt=FM(),vke=uX(),pke=["aaxis","baxis","caxis"];mke.exports=function(t,r,i){XUt(t,r,i,{type:"ternary",attributes:vke,handleDefaults:tGt,font:r.font,paper_bgcolor:r.paper_bgcolor})};function tGt(e,t,r,i){var n=r("bgcolor"),a=r("sum");i.bgColor=$Ut.combine(n,i.paper_bgcolor);for(var o,s,l,u=0;u=a&&(f.min=0,c.min=0,h.min=0,e.aaxis&&delete e.aaxis.min,e.baxis&&delete e.baxis.min,e.caxis&&delete e.caxis.min)}function rGt(e,t,r,i){var n=vke[t._name];function a(b,M){return vS.coerce(e,t,n,b,M)}function o(b,M){return vS.coerce2(e,t,n,b,M)}a("uirevision",i.uirevision),t.type="linear";var s=a("color"),l=s!==n.color.dflt?s:r.font.color,u=t._name,f=u.charAt(0).toUpperCase(),c="Component "+f,h=a("title.text",c);t._hovertitle=h===c?h:f,vS.coerceFont(a,"title.font",r.font,{overrideDflt:{size:vS.bigFont(r.font.size),color:l}}),a("min"),QUt(e,t,a,"linear"),KUt(e,t,a,"linear"),ZUt(e,t,a,"linear",{noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0}),JUt(e,t,a,{outerTicks:!0});var d=a("showticklabels");d&&(vS.coerceFont(a,"tickfont",r.font,{overrideDflt:{color:l}}),a("tickangle"),a("tickformat")),eGt(e,t,a,{dfltColor:s,bgColor:r.bgColor,blend:60,showLine:!0,showGrid:!0,noZeroLine:!0,attributes:n}),a("hoverformat"),a("layer");var p=o("spikecolor"),v=o("spikethickness"),y=o("spikedash"),m=o("spikemode"),w=o("spikesnap"),_=a("showspikes",!!p||!!v||!!y||!!m||!!w);_||(delete t.spikecolor,delete t.spikethickness,delete t.spikedash,delete t.spikemode,delete t.spikesnap)}});var gke=K(uv=>{"use strict";var iGt=cke(),nGt=Zh().getSubplotCalcData,aGt=St().counterRegex,qA="ternary";uv.name=qA;var oGt=uv.attr="subplot";uv.idRoot=qA;uv.idRegex=uv.attrRegex=aGt(qA);var sGt=uv.attributes={};sGt[oGt]={valType:"subplotid",dflt:"ternary",editType:"calc"};uv.layoutAttributes=uX();uv.supplyLayoutDefaults=yke();uv.plot=function(t){for(var r=t._fullLayout,i=t.calcdata,n=r._subplots[qA],a=0;a{"use strict";xke.exports={attributes:rX(),supplyDefaults:VEe(),colorbar:e0(),formatLabels:GEe(),calc:$Ee(),plot:XEe(),style:hd().style,styleOnSelect:hd().styleOnSelect,hoverPoints:KEe(),selectPoints:Rb(),eventData:QEe(),moduleType:"trace",name:"scatterternary",basePlotModule:gke(),categories:["ternary","symbols","showLegend","scatter-like"],meta:{}}});var wke=K((SWr,_ke)=>{"use strict";_ke.exports=bke()});var fX=K((EWr,Tke)=>{"use strict";var Xc=KM(),OA=Os().extendFlat,Ake=zf().axisHoverFormat;Tke.exports={y:Xc.y,x:Xc.x,x0:Xc.x0,y0:Xc.y0,xhoverformat:Ake("x"),yhoverformat:Ake("y"),name:OA({},Xc.name,{}),orientation:OA({},Xc.orientation,{}),bandwidth:{valType:"number",min:0,editType:"calc"},scalegroup:{valType:"string",dflt:"",editType:"calc"},scalemode:{valType:"enumerated",values:["width","count"],dflt:"width",editType:"calc"},spanmode:{valType:"enumerated",values:["soft","hard","manual"],dflt:"soft",editType:"calc"},span:{valType:"info_array",items:[{valType:"any",editType:"calc"},{valType:"any",editType:"calc"}],editType:"calc"},line:{color:{valType:"color",editType:"style"},width:{valType:"number",min:0,dflt:2,editType:"style"},editType:"plot"},fillcolor:Xc.fillcolor,points:OA({},Xc.boxpoints,{}),jitter:OA({},Xc.jitter,{}),pointpos:OA({},Xc.pointpos,{}),width:OA({},Xc.width,{}),marker:Xc.marker,text:Xc.text,hovertext:Xc.hovertext,hovertemplate:Xc.hovertemplate,hovertemplatefallback:Xc.hovertemplatefallback,quartilemethod:Xc.quartilemethod,box:{visible:{valType:"boolean",dflt:!1,editType:"plot"},width:{valType:"number",min:0,max:1,dflt:.25,editType:"plot"},fillcolor:{valType:"color",editType:"style"},line:{color:{valType:"color",editType:"style"},width:{valType:"number",min:0,editType:"style"},editType:"style"},editType:"plot"},meanline:{visible:{valType:"boolean",dflt:!1,editType:"plot"},color:{valType:"color",editType:"style"},width:{valType:"number",min:0,editType:"style"},editType:"plot"},side:{valType:"enumerated",values:["both","positive","negative"],dflt:"both",editType:"calc"},offsetgroup:Xc.offsetgroup,alignmentgroup:Xc.alignmentgroup,selected:Xc.selected,unselected:Xc.unselected,hoveron:{valType:"flaglist",flags:["violins","points","kde"],dflt:"violins+points+kde",extras:["all"],editType:"style"},zorder:Xc.zorder}});var dX=K((kWr,Mke)=>{"use strict";var cX=JM(),hX=St().extendFlat;Mke.exports={violinmode:hX({},cX.boxmode,{}),violingap:hX({},cX.boxgap,{}),violingroupgap:hX({},cX.boxgroupgap,{})}});var Dke=K((CWr,Cke)=>{"use strict";var Ske=St(),lGt=wo(),Eke=eS(),kke=fX();Cke.exports=function(t,r,i,n){function a(M,x){return Ske.coerce(t,r,kke,M,x)}function o(M,x){return Ske.coerce2(t,r,kke,M,x)}if(Eke.handleSampleDefaults(t,r,a,n),r.visible!==!1){a("bandwidth"),a("side");var s=a("width");s||(a("scalegroup",r.name),a("scalemode"));var l=a("span"),u;Array.isArray(l)&&(u="manual"),a("spanmode",u);var f=a("line.color",(t.marker||{}).color||i),c=a("line.width"),h=a("fillcolor",lGt.addOpacity(r.line.color,.5));Eke.handlePointsDefaults(t,r,a,{prefix:""});var d=o("box.width"),p=o("box.fillcolor",h),v=o("box.line.color",f),y=o("box.line.width",c),m=a("box.visible",!!(d||p||v||y));m||(r.box={visible:!1});var w=o("meanline.color",f),_=o("meanline.width",c),b=a("meanline.visible",!!(w||_));b||(r.meanline={visible:!1}),a("quartilemethod"),a("zorder")}}});var Lke=K((DWr,Fke)=>{"use strict";var uGt=St(),fGt=dX(),cGt=W9();Fke.exports=function(t,r,i){function n(a,o){return uGt.coerce(t,r,fGt,a,o)}cGt._supply(t,r,i,n,"violin")}});var I8=K(Qb=>{"use strict";var hGt=St(),dGt={gaussian:function(e){return 1/Math.sqrt(2*Math.PI)*Math.exp(-.5*e*e)}};Qb.makeKDE=function(e,t,r){var i=r.length,n=dGt.gaussian,a=e.bandwidth,o=1/(i*a);return function(s){for(var l=0,u=0;u{"use strict";var pX=St(),vX=Cs(),pGt=sY(),Pke=I8(),vGt=(Il(),or(Bl)).BADNUM;zke.exports=function(t,r){var i=pGt(t,r);if(i[0].t.empty)return i;for(var n=t._fullLayout,a=vX.getFromId(t,r[r.orientation==="h"?"xaxis":"yaxis"]),o=1/0,s=-1/0,l=0,u=0,f=0;f{"use strict";var xGt=Y9().setPositionOffset,Rke=["v","h"];Bke.exports=function(t,r){for(var i=t.calcdata,n=r.xaxis,a=r.yaxis,o=0;o{"use strict";var mX=No(),yX=St(),bGt=Is(),gX=X9(),_Gt=jW(),wGt=I8();Oke.exports=function(t,r,i,n){var a=t._context.staticPlot,o=t._fullLayout,s=r.xaxis,l=r.yaxis;function u(f,c){var h=_Gt(f,{xaxis:s,yaxis:l,trace:c,connectGaps:!0,baseTolerance:.75,shape:"spline",simplify:!0,linearized:!0});return bGt.smoothopen(h[0],1)}yX.makeTraceGroups(n,i,"trace violins").each(function(f){var c=mX.select(this),h=f[0],d=h.t,p=h.trace;if(p.visible!==!0||d.empty){c.remove();return}var v=d.bPos,y=d.bdPos,m=r[d.valLetter+"axis"],w=r[d.posLetter+"axis"],_=p.side==="both",b=_||p.side==="positive",M=_||p.side==="negative",x=c.selectAll("path.violin").data(yX.identity);x.enter().append("path").style("vector-effect",a?"none":"non-scaling-stroke").attr("class","violin"),x.exit().remove(),x.each(function(D){var F=mX.select(this),P=D.density,I=P.length,L=w.c2l(D.pos+v,!0),z=w.l2p(L),B;if(p.width)B=d.maxKDE/y;else{var O=o._violinScaleGroupStats[p.scalegroup];B=p.scalemode==="count"?O.maxKDE/y*(O.maxCount/D.pts.length):O.maxKDE/y}var W,X,Z,H,q,Q,N;if(b){for(Q=new Array(I),H=0;H{"use strict";var Vke=No(),NA=wo(),AGt=hd().stylePoints;Uke.exports=function(t){var r=Vke.select(t).selectAll("g.trace.violins");r.style("opacity",function(i){return i[0].trace.opacity}),r.each(function(i){var n=i[0].trace,a=Vke.select(this),o=n.box||{},s=o.line||{},l=n.meanline||{},u=l.width;a.selectAll("path.violin").style("stroke-width",n.line.width+"px").call(NA.stroke,n.line.color).call(NA.fill,n.fillcolor),a.selectAll("path.box").style("stroke-width",s.width+"px").call(NA.stroke,s.color).call(NA.fill,o.fillcolor);var f={"stroke-width":u+"px","stroke-dasharray":2*u+"px,"+u+"px"};a.selectAll("path.mean").style(f).call(NA.stroke,l.color),a.selectAll("path.meanline").style(f).call(NA.stroke,l.color),AGt(a,n,t)})}});var $ke=K((RWr,Wke)=>{"use strict";var TGt=wo(),xX=St(),MGt=Cs(),Hke=hY(),jke=I8();Wke.exports=function(t,r,i,n,a){a||(a={});var o=a.hoverLayer,s=t.cd,l=s[0].trace,u=l.hoveron,f=u.indexOf("violins")!==-1,c=u.indexOf("kde")!==-1,h=[],d,p;if(f||c){var v=Hke.hoverOnBoxes(t,r,i,n);if(c&&v.length>0){var y=t.xa,m=t.ya,w,_,b,M,x;l.orientation==="h"?(x=r,w="y",b=m,_="x",M=y):(x=i,w="x",b=y,_="y",M=m);var T=s[t.index];if(x>=T.span[0]&&x<=T.span[1]){var A=xX.extendFlat({},t),g=M.c2p(x,!0),E=jke.getKdeValue(T,l,x),S=jke.getPositionOnKdePath(T,l,g),C=b._offset,k=b._length;A[w+"0"]=S[0],A[w+"1"]=S[1],A[_+"0"]=A[_+"1"]=g,A[_+"Label"]=_+": "+MGt.hoverLabelText(M,x,l[_+"hoverformat"])+", "+s[0].t.labels.kde+" "+E.toFixed(3);for(var D=0,F=0;F{"use strict";Yke.exports={attributes:fX(),layoutAttributes:dX(),supplyDefaults:Dke(),crossTraceDefaults:eS().crossTraceDefaults,supplyLayoutDefaults:Lke(),calc:Ike(),crossTraceCalc:qke(),plot:Nke(),style:Gke(),styleOnSelect:hd().styleOnSelect,hoverPoints:$ke(),selectPoints:dY(),moduleType:"trace",name:"violin",basePlotModule:gc(),categories:["cartesian","svg","symbols","oriented","box-violin","showLegend","violinLayout","zoomScale"],meta:{}}});var Kke=K((qWr,Zke)=>{"use strict";Zke.exports=Xke()});var Jke={};Fl(Jke,{eventDataKeys:()=>SGt});var SGt,Qke=ps(()=>{"use strict";SGt=["percentInitial","percentPrevious","percentTotal"]});var _X=K((OWr,iCe)=>{"use strict";var Cf=dm(),bX=Qf().line,EGt=Tu(),eCe=zf().axisHoverFormat,{hovertemplateAttrs:kGt,texttemplateAttrs:CGt,templatefallbackAttrs:tCe}=gu(),rCe=(Qke(),or(Jke)),Sy=Os().extendFlat,DGt=wo();iCe.exports={x:Cf.x,x0:Cf.x0,dx:Cf.dx,y:Cf.y,y0:Cf.y0,dy:Cf.dy,xperiod:Cf.xperiod,yperiod:Cf.yperiod,xperiod0:Cf.xperiod0,yperiod0:Cf.yperiod0,xperiodalignment:Cf.xperiodalignment,yperiodalignment:Cf.yperiodalignment,xhoverformat:eCe("x"),yhoverformat:eCe("y"),hovertext:Cf.hovertext,hovertemplate:kGt({},{keys:rCe.eventDataKeys}),hovertemplatefallback:tCe(),hoverinfo:Sy({},EGt.hoverinfo,{flags:["name","x","y","text","percent initial","percent previous","percent total"]}),textinfo:{valType:"flaglist",flags:["label","text","percent initial","percent previous","percent total","value"],extras:["none"],editType:"plot",arrayOk:!1},texttemplate:CGt({editType:"plot"},{keys:rCe.eventDataKeys.concat(["label","value"])}),texttemplatefallback:tCe({editType:"plot"}),text:Cf.text,textposition:Cf.textposition,insidetextanchor:Sy({},Cf.insidetextanchor,{dflt:"middle"}),textangle:Sy({},Cf.textangle,{dflt:0}),textfont:Cf.textfont,insidetextfont:Cf.insidetextfont,outsidetextfont:Cf.outsidetextfont,constraintext:Cf.constraintext,cliponaxis:Cf.cliponaxis,orientation:Sy({},Cf.orientation,{}),offset:Sy({},Cf.offset,{arrayOk:!1}),width:Sy({},Cf.width,{arrayOk:!1}),marker:FGt(),connector:{fillcolor:{valType:"color",editType:"style"},line:{color:Sy({},bX.color,{dflt:DGt.defaultLine}),width:Sy({},bX.width,{dflt:0,editType:"plot"}),dash:bX.dash,editType:"style"},visible:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},offsetgroup:Cf.offsetgroup,alignmentgroup:Cf.alignmentgroup,zorder:Cf.zorder};function FGt(){var e=Sy({},Cf.marker);return delete e.pattern,delete e.cornerradius,e}});var wX=K((NWr,nCe)=>{"use strict";nCe.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"}}});var TX=K((VWr,oCe)=>{"use strict";var R8=St(),LGt=zb(),PGt=cp().handleText,zGt=Pb(),IGt=Jv(),aCe=_X(),AX=wo();function RGt(e,t,r,i){function n(c,h){return R8.coerce(e,t,aCe,c,h)}var a=zGt(e,t,i,n);if(!a){t.visible=!1;return}IGt(e,t,i,n),n("xhoverformat"),n("yhoverformat"),n("orientation",t.y&&!t.x?"v":"h"),n("offset"),n("width");var o=n("text");n("hovertext"),n("hovertemplate"),n("hovertemplatefallback");var s=n("textposition");PGt(e,t,i,n,s,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),t.textposition!=="none"&&!t.texttemplate&&n("textinfo",R8.isArrayOrTypedArray(o)?"text+value":"value");var l=n("marker.color",r);n("marker.line.color",AX.defaultLine),n("marker.line.width");var u=n("connector.visible");if(u){n("connector.fillcolor",BGt(l));var f=n("connector.line.width");f&&(n("connector.line.color"),n("connector.line.dash"))}n("zorder")}function BGt(e){var t=R8.isArrayOrTypedArray(e)?"#000":e;return AX.addOpacity(t,.5*AX.opacity(t))}function qGt(e,t){var r,i;function n(o){return R8.coerce(i._input,i,aCe,o)}for(var a=0;a{"use strict";var OGt=St(),NGt=wX();sCe.exports=function(e,t,r){var i=!1;function n(s,l){return OGt.coerce(e,t,NGt,s,l)}for(var a=0;a{"use strict";var VA=St();uCe.exports=function(t,r){for(var i=0;i{"use strict";var cCe=Cs(),hCe=t1(),VGt=fCe(),UGt=op(),mS=(Il(),or(Bl)).BADNUM;dCe.exports=function(t,r){var i=cCe.getFromId(t,r.xaxis||"x"),n=cCe.getFromId(t,r.yaxis||"y"),a,o,s,l,u,f,c,h;r.orientation==="h"?(a=i.makeCalcdata(r,"x"),s=n.makeCalcdata(r,"y"),l=hCe(r,n,"y",s),u=!!r.yperiodalignment,f="y"):(a=n.makeCalcdata(r,"y"),s=i.makeCalcdata(r,"x"),l=hCe(r,i,"x",s),u=!!r.xperiodalignment,f="x"),o=l.vals;var d=Math.min(o.length,a.length),p=new Array(d);for(r._base=[],c=0;c{"use strict";var vCe=Ib().setGroupPositions;mCe.exports=function(t,r){var i=t._fullLayout,n=t._fullData,a=t.calcdata,o=r.xaxis,s=r.yaxis,l=[],u=[],f=[],c,h;for(h=0;h{"use strict";var B8=No(),v2=St(),gCe=Is(),p2=(Il(),or(Bl)).BADNUM,GGt=Yb(),HGt=E0().clearMinTextSize;bCe.exports=function(t,r,i,n){var a=t._fullLayout;HGt("funnel",a),jGt(t,r,i,n),WGt(t,r,i,n),GGt.plot(t,r,i,n,{mode:a.funnelmode,norm:a.funnelmode,gap:a.funnelgap,groupgap:a.funnelgroupgap})};function jGt(e,t,r,i){var n=t.xaxis,a=t.yaxis;v2.makeTraceGroups(i,r,"trace bars").each(function(o){var s=B8.select(this),l=o[0].trace,u=v2.ensureSingle(s,"g","regions");if(!l.connector||!l.connector.visible){u.remove();return}var f=l.orientation==="h",c=u.selectAll("g.region").data(v2.identity);c.enter().append("g").classed("region",!0),c.exit().remove();var h=c.size();c.each(function(d,p){if(!(p!==h-1&&!d.cNext)){var v=xCe(d,n,a,f),y=v[0],m=v[1],w="";y[0]!==p2&&m[0]!==p2&&y[1]!==p2&&m[1]!==p2&&y[2]!==p2&&m[2]!==p2&&y[3]!==p2&&m[3]!==p2&&(f?w+="M"+y[0]+","+m[1]+"L"+y[2]+","+m[2]+"H"+y[3]+"L"+y[1]+","+m[1]+"Z":w+="M"+y[1]+","+m[1]+"L"+y[2]+","+m[3]+"V"+m[2]+"L"+y[1]+","+m[0]+"Z"),w===""&&(w="M0,0Z"),v2.ensureSingle(B8.select(this),"path").attr("d",w).call(gCe.setClipUrl,t.layerClipId,e)}})})}function WGt(e,t,r,i){var n=t.xaxis,a=t.yaxis;v2.makeTraceGroups(i,r,"trace bars").each(function(o){var s=B8.select(this),l=o[0].trace,u=v2.ensureSingle(s,"g","lines");if(!l.connector||!l.connector.visible||!l.connector.line.width){u.remove();return}var f=l.orientation==="h",c=u.selectAll("g.line").data(v2.identity);c.enter().append("g").classed("line",!0),c.exit().remove();var h=c.size();c.each(function(d,p){if(!(p!==h-1&&!d.cNext)){var v=xCe(d,n,a,f),y=v[0],m=v[1],w="";y[3]!==void 0&&m[3]!==void 0&&(f?(w+="M"+y[0]+","+m[1]+"L"+y[2]+","+m[2],w+="M"+y[1]+","+m[1]+"L"+y[3]+","+m[2]):(w+="M"+y[1]+","+m[1]+"L"+y[2]+","+m[3],w+="M"+y[1]+","+m[0]+"L"+y[2]+","+m[2])),w===""&&(w="M0,0Z"),v2.ensureSingle(B8.select(this),"path").attr("d",w).call(gCe.setClipUrl,t.layerClipId,e)}})})}function xCe(e,t,r,i){var n=[],a=[],o=i?t:r,s=i?r:t;return n[0]=o.c2p(e.s0,!0),a[0]=s.c2p(e.p0,!0),n[1]=o.c2p(e.s1,!0),a[1]=s.c2p(e.p1,!0),n[2]=o.c2p(e.nextS0,!0),a[2]=s.c2p(e.nextP0,!0),n[3]=o.c2p(e.nextS1,!0),a[3]=s.c2p(e.nextP1,!0),i?[n,a]:[a,n]}});var TCe=K(($Wr,ACe)=>{"use strict";var yS=No(),wCe=Is(),SX=wo(),$Gt=(ry(),or(ty)).DESELECTDIM,YGt=tv(),XGt=E0().resizeText,ZGt=YGt.styleTextPoints;function KGt(e,t,r){var i=r||yS.select(e).selectAll('g[class^="funnellayer"]').selectAll("g.trace");XGt(e,i,"funnel"),i.style("opacity",function(n){return n[0].trace.opacity}),i.each(function(n){var a=yS.select(this),o=n[0].trace;a.selectAll(".point > path").each(function(s){if(!s.isBlank){var l=o.marker;yS.select(this).call(SX.fill,s.mc||l.color).call(SX.stroke,s.mlc||l.line.color).call(wCe.dashLine,l.line.dash,s.mlw||l.line.width).style("opacity",o.selectedpoints&&!s.selected?$Gt:1)}}),ZGt(a,o,e),a.selectAll(".regions").each(function(){yS.select(this).selectAll("path").style("stroke-width",0).call(SX.fill,o.connector.fillcolor)}),a.selectAll(".lines").each(function(){var s=o.connector.line;wCe.lineGroupStyle(yS.select(this).selectAll("path"),s.width,s.color,s.dash)})})}ACe.exports={style:KGt}});var ECe=K((YWr,SCe)=>{"use strict";var MCe=wo().opacity,JGt=AA().hoverOnBars,EX=St().formatPercent;SCe.exports=function(t,r,i,n,a){var o=JGt(t,r,i,n,a);if(o){var s=o.cd,l=s[0].trace,u=l.orientation==="h",f=o.index,c=s[f],h=u?"x":"y";o[h+"LabelVal"]=c.s,o.percentInitial=c.begR,o.percentInitialLabel=EX(c.begR,1),o.percentPrevious=c.difR,o.percentPreviousLabel=EX(c.difR,1),o.percentTotal=c.sumR,o.percentTotalLabel=EX(c.sumR,1);var d=c.hi||l.hoverinfo,p=[];if(d&&d!=="none"&&d!=="skip"){var v=d==="all",y=d.split("+"),m=function(w){return v||y.indexOf(w)!==-1};m("percent initial")&&p.push(o.percentInitialLabel+" of initial"),m("percent previous")&&p.push(o.percentPreviousLabel+" of previous"),m("percent total")&&p.push(o.percentTotalLabel+" of total")}return o.extraText=p.join("
"),o.color=QGt(l,c),[o]}};function QGt(e,t){var r=e.marker,i=t.mc||r.color,n=t.mlc||r.line.color,a=t.mlw||r.line.width;if(MCe(i))return i;if(MCe(n)&&a)return n}});var CCe=K((XWr,kCe)=>{"use strict";kCe.exports=function(t,r){return t.x="xVal"in r?r.xVal:r.x,t.y="yVal"in r?r.yVal:r.y,"percentInitial"in r&&(t.percentInitial=r.percentInitial),"percentPrevious"in r&&(t.percentPrevious=r.percentPrevious),"percentTotal"in r&&(t.percentTotal=r.percentTotal),r.xa&&(t.xaxis=r.xa),r.ya&&(t.yaxis=r.ya),t}});var FCe=K((ZWr,DCe)=>{"use strict";DCe.exports={attributes:_X(),layoutAttributes:wX(),supplyDefaults:TX().supplyDefaults,crossTraceDefaults:TX().crossTraceDefaults,supplyLayoutDefaults:lCe(),calc:pCe(),crossTraceCalc:yCe(),plot:_Ce(),style:TCe().style,hoverPoints:ECe(),eventData:CCe(),selectPoints:TA(),moduleType:"trace",name:"funnel",basePlotModule:gc(),categories:["bar-like","cartesian","svg","oriented","showLegend","zoomScale"],meta:{}}});var PCe=K((KWr,LCe)=>{"use strict";LCe.exports=FCe()});var zCe={};Fl(zCe,{eventDataKeys:()=>eHt});var eHt,ICe=ps(()=>{"use strict";eHt=["initial","delta","final"]});var DX=K((JWr,OCe)=>{"use strict";var hf=dm(),kX=Qf().line,tHt=Tu(),RCe=zf().axisHoverFormat,{hovertemplateAttrs:rHt,texttemplateAttrs:iHt,templatefallbackAttrs:BCe}=gu(),qCe=(ICe(),or(zCe)),UA=Os().extendFlat,nHt=wo();function CX(e){return{marker:{color:UA({},hf.marker.color,{arrayOk:!1,editType:"style"}),line:{color:UA({},hf.marker.line.color,{arrayOk:!1,editType:"style"}),width:UA({},hf.marker.line.width,{arrayOk:!1,editType:"style"}),editType:"style"},editType:"style"},editType:"style"}}OCe.exports={measure:{valType:"data_array",dflt:[],editType:"calc"},base:{valType:"number",dflt:null,arrayOk:!1,editType:"calc"},x:hf.x,x0:hf.x0,dx:hf.dx,y:hf.y,y0:hf.y0,dy:hf.dy,xperiod:hf.xperiod,yperiod:hf.yperiod,xperiod0:hf.xperiod0,yperiod0:hf.yperiod0,xperiodalignment:hf.xperiodalignment,yperiodalignment:hf.yperiodalignment,xhoverformat:RCe("x"),yhoverformat:RCe("y"),hovertext:hf.hovertext,hovertemplate:rHt({},{keys:qCe.eventDataKeys}),hovertemplatefallback:BCe(),hoverinfo:UA({},tHt.hoverinfo,{flags:["name","x","y","text","initial","delta","final"]}),textinfo:{valType:"flaglist",flags:["label","text","initial","delta","final"],extras:["none"],editType:"plot",arrayOk:!1},texttemplate:iHt({editType:"plot"},{keys:qCe.eventDataKeys.concat(["label"])}),texttemplatefallback:BCe({editType:"plot"}),text:hf.text,textposition:hf.textposition,insidetextanchor:hf.insidetextanchor,textangle:hf.textangle,textfont:hf.textfont,insidetextfont:hf.insidetextfont,outsidetextfont:hf.outsidetextfont,constraintext:hf.constraintext,cliponaxis:hf.cliponaxis,orientation:hf.orientation,offset:hf.offset,width:hf.width,increasing:CX("increasing"),decreasing:CX("decreasing"),totals:CX("intermediate sums and total"),connector:{line:{color:UA({},kX.color,{dflt:nHt.defaultLine}),width:UA({},kX.width,{editType:"plot"}),dash:kX.dash,editType:"plot"},mode:{valType:"enumerated",values:["spanning","between"],dflt:"between",editType:"plot"},visible:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},offsetgroup:hf.offsetgroup,alignmentgroup:hf.alignmentgroup,zorder:hf.zorder}});var FX=K((QWr,NCe)=>{"use strict";NCe.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"}}});var GA={};Fl(GA,{DECREASING:()=>oHt,INCREASING:()=>aHt});var aHt,oHt,HA=ps(()=>{"use strict";aHt={COLOR:"#3D9970",SYMBOL:"\u25B2"},oHt={COLOR:"#FF4136",SYMBOL:"\u25BC"}});var PX=K((e$r,HCe)=>{"use strict";var VCe=St(),sHt=zb(),lHt=cp().handleText,uHt=Pb(),fHt=Jv(),UCe=DX(),cHt=wo(),GCe=(HA(),or(GA)),hHt=GCe.INCREASING.COLOR,dHt=GCe.DECREASING.COLOR,pHt="#4499FF";function LX(e,t,r){e(t+".marker.color",r),e(t+".marker.line.color",cHt.defaultLine),e(t+".marker.line.width")}function vHt(e,t,r,i){function n(u,f){return VCe.coerce(e,t,UCe,u,f)}var a=uHt(e,t,i,n);if(!a){t.visible=!1;return}fHt(e,t,i,n),n("xhoverformat"),n("yhoverformat"),n("measure"),n("orientation",t.x&&!t.y?"h":"v"),n("base"),n("offset"),n("width"),n("text"),n("hovertext"),n("hovertemplate"),n("hovertemplatefallback");var o=n("textposition");lHt(e,t,i,n,o,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),t.textposition!=="none"&&(n("texttemplate"),n("texttemplatefallback"),t.texttemplate||n("textinfo")),LX(n,"increasing",hHt),LX(n,"decreasing",dHt),LX(n,"totals",pHt);var s=n("connector.visible");if(s){n("connector.mode");var l=n("connector.line.width");l&&(n("connector.line.color"),n("connector.line.dash"))}n("zorder")}function mHt(e,t){var r,i;function n(o){return VCe.coerce(i._input,i,UCe,o)}if(t.waterfallmode==="group")for(var a=0;a{"use strict";var yHt=St(),gHt=FX();jCe.exports=function(e,t,r){var i=!1;function n(s,l){return yHt.coerce(e,t,gHt,s,l)}for(var a=0;a{"use strict";var $Ce=Cs(),YCe=t1(),XCe=St().mergeArray,xHt=op(),ZCe=(Il(),or(Bl)).BADNUM;function zX(e){return e==="a"||e==="absolute"}function IX(e){return e==="t"||e==="total"}KCe.exports=function(t,r){var i=$Ce.getFromId(t,r.xaxis||"x"),n=$Ce.getFromId(t,r.yaxis||"y"),a,o,s,l,u,f;r.orientation==="h"?(a=i.makeCalcdata(r,"x"),s=n.makeCalcdata(r,"y"),l=YCe(r,n,"y",s),u=!!r.yperiodalignment,f="y"):(a=n.makeCalcdata(r,"y"),s=i.makeCalcdata(r,"x"),l=YCe(r,i,"x",s),u=!!r.xperiodalignment,f="x"),o=l.vals;for(var c=Math.min(o.length,a.length),h=new Array(c),d=0,p,v=!1,y=0;y{"use strict";var QCe=Ib().setGroupPositions;eDe.exports=function(t,r){var i=t._fullLayout,n=t._fullData,a=t.calcdata,o=r.xaxis,s=r.yaxis,l=[],u=[],f=[],c,h;for(h=0;h{"use strict";var rDe=No(),q8=St(),bHt=Is(),jA=(Il(),or(Bl)).BADNUM,_Ht=Yb(),wHt=E0().clearMinTextSize;iDe.exports=function(t,r,i,n){var a=t._fullLayout;wHt("waterfall",a),_Ht.plot(t,r,i,n,{mode:a.waterfallmode,norm:a.waterfallmode,gap:a.waterfallgap,groupgap:a.waterfallgroupgap}),AHt(t,r,i,n)};function AHt(e,t,r,i){var n=t.xaxis,a=t.yaxis;q8.makeTraceGroups(i,r,"trace bars").each(function(o){var s=rDe.select(this),l=o[0].trace,u=q8.ensureSingle(s,"g","lines");if(!l.connector||!l.connector.visible){u.remove();return}var f=l.orientation==="h",c=l.connector.mode,h=u.selectAll("g.line").data(q8.identity);h.enter().append("g").classed("line",!0),h.exit().remove();var d=h.size();h.each(function(p,v){if(!(v!==d-1&&!p.cNext)){var y=THt(p,n,a,f),m=y[0],w=y[1],_="";m[0]!==jA&&w[0]!==jA&&m[1]!==jA&&w[1]!==jA&&(c==="spanning"&&!p.isSum&&v>0&&(f?_+="M"+m[0]+","+w[1]+"V"+w[0]:_+="M"+m[1]+","+w[0]+"H"+m[0]),c!=="between"&&(p.isSum||v{"use strict";var O8=No(),aDe=Is(),oDe=wo(),MHt=(ry(),or(ty)).DESELECTDIM,SHt=tv(),EHt=E0().resizeText,kHt=SHt.styleTextPoints;function CHt(e,t,r){var i=r||O8.select(e).selectAll('g[class^="waterfalllayer"]').selectAll("g.trace");EHt(e,i,"waterfall"),i.style("opacity",function(n){return n[0].trace.opacity}),i.each(function(n){var a=O8.select(this),o=n[0].trace;a.selectAll(".point > path").each(function(s){if(!s.isBlank){var l=o[s.dir].marker;O8.select(this).call(oDe.fill,l.color).call(oDe.stroke,l.line.color).call(aDe.dashLine,l.line.dash,l.line.width).style("opacity",o.selectedpoints&&!s.selected?MHt:1)}}),kHt(a,o,e),a.selectAll(".lines").each(function(){var s=o.connector.line;aDe.lineGroupStyle(O8.select(this).selectAll("path"),s.width,s.color,s.dash)})})}sDe.exports={style:CHt}});var dDe=K((o$r,hDe)=>{"use strict";var DHt=Cs().hoverLabelText,uDe=wo().opacity,FHt=AA().hoverOnBars,fDe=(HA(),or(GA)),cDe={increasing:fDe.INCREASING.SYMBOL,decreasing:fDe.DECREASING.SYMBOL};hDe.exports=function(t,r,i,n,a){var o=FHt(t,r,i,n,a);if(!o)return;var s=o.cd,l=s[0].trace,u=l.orientation==="h",f=u?"x":"y",c=u?t.xa:t.ya;function h(x){return DHt(c,x,l[f+"hoverformat"])}var d=o.index,p=s[d],v=p.isSum?p.b+p.s:p.rawS;o.initial=p.b+p.s-v,o.delta=v,o.final=o.initial+o.delta;var y=h(Math.abs(o.delta));o.deltaLabel=v<0?"("+y+")":y,o.finalLabel=h(o.final),o.initialLabel=h(o.initial);var m=p.hi||l.hoverinfo,w=[];if(m&&m!=="none"&&m!=="skip"){var _=m==="all",b=m.split("+"),M=function(x){return _||b.indexOf(x)!==-1};p.isSum||(M("final")&&(u?!M("x"):!M("y"))&&w.push(o.finalLabel),M("delta")&&(v<0?w.push(o.deltaLabel+" "+cDe.decreasing):w.push(o.deltaLabel+" "+cDe.increasing)),M("initial")&&w.push("Initial: "+o.initialLabel))}return w.length&&(o.extraText=w.join("
")),o.color=LHt(l,p),[o]};function LHt(e,t){var r=e[t.dir].marker,i=r.color,n=r.line.color,a=r.line.width;if(uDe(i))return i;if(uDe(n)&&a)return n}});var vDe=K((s$r,pDe)=>{"use strict";pDe.exports=function(t,r){return t.x="xVal"in r?r.xVal:r.x,t.y="yVal"in r?r.yVal:r.y,"initial"in r&&(t.initial=r.initial),"delta"in r&&(t.delta=r.delta),"final"in r&&(t.final=r.final),r.xa&&(t.xaxis=r.xa),r.ya&&(t.yaxis=r.ya),t}});var yDe=K((l$r,mDe)=>{"use strict";mDe.exports={attributes:DX(),layoutAttributes:FX(),supplyDefaults:PX().supplyDefaults,crossTraceDefaults:PX().crossTraceDefaults,supplyLayoutDefaults:WCe(),calc:JCe(),crossTraceCalc:tDe(),plot:nDe(),style:lDe().style,hoverPoints:dDe(),eventData:vDe(),selectPoints:TA(),moduleType:"trace",name:"waterfall",basePlotModule:gc(),categories:["bar-like","cartesian","svg","oriented","showLegend","zoomScale"],meta:{}}});var xDe=K((u$r,gDe)=>{"use strict";gDe.exports=yDe()});var gS={};Fl(gS,{colormodel:()=>RX});var RX,WA=ps(()=>{"use strict";RX={rgb:{min:[0,0,0],max:[255,255,255],fmt:e=>e.slice(0,3),suffix:["","",""]},rgba:{min:[0,0,0,0],max:[255,255,255,1],fmt:e=>e.slice(0,4),suffix:["","","",""]},rgba256:{colormodel:"rgba",zminDflt:[0,0,0,0],zmaxDflt:[255,255,255,255],min:[0,0,0,0],max:[255,255,255,1],fmt:e=>e.slice(0,4),suffix:["","","",""]},hsl:{min:[0,0,0],max:[360,100,100],fmt:e=>{let t=e.slice(0,3);return t[1]=t[1]+"%",t[2]=t[2]+"%",t},suffix:["\xB0","%","%"]},hsla:{min:[0,0,0,0],max:[360,100,100,1],fmt:e=>{let t=e.slice(0,4);return t[1]=t[1]+"%",t[2]=t[2]+"%",t},suffix:["\xB0","%","%",""]}}});var BX={};Fl(BX,{default:()=>zHt});var bDe,_De,N8,wDe,ADe,TDe,MDe,PHt,zHt,qX=ps(()=>{"use strict";bDe=O1(Os()),_De=O1(Tu()),N8=O1(gu()),wDe=O1(Qf());WA();ADe=["rgb","rgba","rgba256","hsl","hsla"],TDe=[],MDe=[];for(let e of ADe){let t=RX[e];TDe.push(`For the \`${e}\` colormodel, it is [${(t.zminDflt||t.min).join(", ")}].`),MDe.push(`For the \`${e}\` colormodel, it is [${(t.zmaxDflt||t.max).join(", ")}].`)}PHt={source:{valType:"string",editType:"calc",description:["Specifies the data URI of the image to be visualized.",'The URI consists of "data:image/[][;base64\\\\],"'].join(" ")},z:{valType:"data_array",editType:"calc",description:["A 2-dimensional array in which each element is an array of 3 or 4 numbers representing a color."].join(" ")},colormodel:{valType:"enumerated",values:ADe,editType:"calc",description:["Color model used to map the numerical color components described in `z` into colors.","If `source` is specified, this attribute will be set to `rgba256`","otherwise it defaults to `rgb`."].join(" ")},zsmooth:{valType:"enumerated",values:["fast",!1],dflt:!1,editType:"plot",description:["Picks a smoothing algorithm used to smooth `z` data.","This only applies for image traces that use the `source` attribute."].join(" ")},zmin:{valType:"info_array",items:[{valType:"number",editType:"calc"},{valType:"number",editType:"calc"},{valType:"number",editType:"calc"},{valType:"number",editType:"calc"}],editType:"calc",description:["Array defining the lower bound for each color component.","Note that the default value will depend on the colormodel.",TDe.join(" ")].join(" ")},zmax:{valType:"info_array",items:[{valType:"number",editType:"calc"},{valType:"number",editType:"calc"},{valType:"number",editType:"calc"},{valType:"number",editType:"calc"}],editType:"calc",description:["Array defining the higher bound for each color component.","Note that the default value will depend on the colormodel.",MDe.join(" ")].join(" ")},x0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",description:["Set the image's x position. The left edge of the image","(or the right edge if the x axis is reversed or dx is negative)","will be found at xmin=x0-dx/2"].join(" ")},y0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",description:["Set the image's y position. The top edge of the image","(or the bottom edge if the y axis is NOT reversed or if dy is negative)","will be found at ymin=y0-dy/2. By default when an image trace is","included, the y axis will be reversed so that the image is right-side-up,","but you can disable this by setting yaxis.autorange=true or by providing","an explicit y axis range."].join(" ")},dx:{valType:"number",dflt:1,editType:"calc",description:"Set the pixel's horizontal size."},dy:{valType:"number",dflt:1,editType:"calc",description:"Set the pixel's vertical size"},text:{valType:"data_array",editType:"plot",description:"Sets the text elements associated with each z value."},hovertext:{valType:"data_array",editType:"plot",description:"Same as `text`."},hoverinfo:(0,bDe.extendFlat)({},_De.default.hoverinfo,{flags:["x","y","z","color","name","text"],dflt:"x+y+z+text+name"}),hovertemplate:(0,N8.hovertemplateAttrs)({},{keys:["z","color","colormodel"]}),hovertemplatefallback:(0,N8.templatefallbackAttrs)(),zorder:wDe.zorder},zHt=PHt});var kDe=K((c$r,EDe)=>{"use strict";var IHt=St(),RHt=(qX(),or(BX)).default,SDe=(WA(),or(gS)),BHt=my().IMAGE_URL_PREFIX;EDe.exports=function(t,r){function i(o,s){return IHt.coerce(t,r,RHt,o,s)}i("source"),r.source&&!r.source.match(BHt)&&delete r.source,r._hasSource=!!r.source;var n=i("z");if(r._hasZ=!(n===void 0||!n.length||!n[0]||!n[0].length),!r._hasZ&&!r._hasSource){r.visible=!1;return}i("x0"),i("y0"),i("dx"),i("dy");var a;r._hasZ?(i("colormodel","rgb"),a=SDe.colormodel[r.colormodel],i("zmin",a.zminDflt||a.min),i("zmax",a.zmaxDflt||a.max)):r._hasSource&&(r.colormodel="rgba256",a=SDe.colormodel[r.colormodel],r.zmin=a.zminDflt,r.zmax=a.zmaxDflt),i("zsmooth"),i("text"),i("hovertext"),i("hovertemplate"),i("hovertemplatefallback"),r._length=null,i("zorder")}});var Ey=K((h$r,OX)=>{typeof Object.create=="function"?OX.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:OX.exports=function(t,r){if(r){t.super_=r;var i=function(){};i.prototype=r.prototype,t.prototype=new i,t.prototype.constructor=t}}});var NX=K((d$r,CDe)=>{CDe.exports=nb().EventEmitter});var LDe=K(V8=>{"use strict";V8.byteLength=OHt;V8.toByteArray=VHt;V8.fromByteArray=HHt;var ym=[],fv=[],qHt=typeof Uint8Array!="undefined"?Uint8Array:Array,VX="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(e_=0,DDe=VX.length;e_0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");r===-1&&(r=t);var i=r===t?0:4-r%4;return[r,i]}function OHt(e){var t=FDe(e),r=t[0],i=t[1];return(r+i)*3/4-i}function NHt(e,t,r){return(t+r)*3/4-r}function VHt(e){var t,r=FDe(e),i=r[0],n=r[1],a=new qHt(NHt(e,i,n)),o=0,s=n>0?i-4:i,l;for(l=0;l>16&255,a[o++]=t>>8&255,a[o++]=t&255;return n===2&&(t=fv[e.charCodeAt(l)]<<2|fv[e.charCodeAt(l+1)]>>4,a[o++]=t&255),n===1&&(t=fv[e.charCodeAt(l)]<<10|fv[e.charCodeAt(l+1)]<<4|fv[e.charCodeAt(l+2)]>>2,a[o++]=t>>8&255,a[o++]=t&255),a}function UHt(e){return ym[e>>18&63]+ym[e>>12&63]+ym[e>>6&63]+ym[e&63]}function GHt(e,t,r){for(var i,n=[],a=t;as?s:o+a));return i===1?(t=e[r-1],n.push(ym[t>>2]+ym[t<<4&63]+"==")):i===2&&(t=(e[r-2]<<8)+e[r-1],n.push(ym[t>>10]+ym[t>>4&63]+ym[t<<2&63]+"=")),n.join("")}});var PDe=K(UX=>{UX.read=function(e,t,r,i,n){var a,o,s=n*8-i-1,l=(1<>1,f=-7,c=r?n-1:0,h=r?-1:1,d=e[t+c];for(c+=h,a=d&(1<<-f)-1,d>>=-f,f+=s;f>0;a=a*256+e[t+c],c+=h,f-=8);for(o=a&(1<<-f)-1,a>>=-f,f+=i;f>0;o=o*256+e[t+c],c+=h,f-=8);if(a===0)a=1-u;else{if(a===l)return o?NaN:(d?-1:1)*(1/0);o=o+Math.pow(2,i),a=a-u}return(d?-1:1)*o*Math.pow(2,a-i)};UX.write=function(e,t,r,i,n,a){var o,s,l,u=a*8-n-1,f=(1<>1,h=n===23?Math.pow(2,-24)-Math.pow(2,-77):0,d=i?0:a-1,p=i?1:-1,v=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,o=f):(o=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-o))<1&&(o--,l*=2),o+c>=1?t+=h/l:t+=h*Math.pow(2,1-c),t*l>=2&&(o++,l/=2),o+c>=f?(s=0,o=f):o+c>=1?(s=(t*l-1)*Math.pow(2,n),o=o+c):(s=t*Math.pow(2,c-1)*Math.pow(2,n),o=0));n>=8;e[r+d]=s&255,d+=p,s/=256,n-=8);for(o=o<0;e[r+d]=o&255,d+=p,o/=256,u-=8);e[r+d-p]|=v*128}});var r_=K(ZA=>{"use strict";var GX=LDe(),YA=PDe(),zDe=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;ZA.Buffer=La;ZA.SlowBuffer=ZHt;ZA.INSPECT_MAX_BYTES=50;var U8=2147483647;ZA.kMaxLength=U8;La.TYPED_ARRAY_SUPPORT=jHt();!La.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&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 jHt(){try{let e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),e.foo()===42}catch(e){return!1}}Object.defineProperty(La.prototype,"parent",{enumerable:!0,get:function(){if(La.isBuffer(this))return this.buffer}});Object.defineProperty(La.prototype,"offset",{enumerable:!0,get:function(){if(La.isBuffer(this))return this.byteOffset}});function ky(e){if(e>U8)throw new RangeError('The value "'+e+'" is invalid for option "size"');let t=new Uint8Array(e);return Object.setPrototypeOf(t,La.prototype),t}function La(e,t,r){if(typeof e=="number"){if(typeof t=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return $X(e)}return qDe(e,t,r)}La.poolSize=8192;function qDe(e,t,r){if(typeof e=="string")return $Ht(e,t);if(ArrayBuffer.isView(e))return YHt(e);if(e==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(gm(e,ArrayBuffer)||e&&gm(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(gm(e,SharedArrayBuffer)||e&&gm(e.buffer,SharedArrayBuffer)))return jX(e,t,r);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let i=e.valueOf&&e.valueOf();if(i!=null&&i!==e)return La.from(i,t,r);let n=XHt(e);if(n)return n;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return La.from(e[Symbol.toPrimitive]("string"),t,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}La.from=function(e,t,r){return qDe(e,t,r)};Object.setPrototypeOf(La.prototype,Uint8Array.prototype);Object.setPrototypeOf(La,Uint8Array);function ODe(e){if(typeof e!="number")throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function WHt(e,t,r){return ODe(e),e<=0?ky(e):t!==void 0?typeof r=="string"?ky(e).fill(t,r):ky(e).fill(t):ky(e)}La.alloc=function(e,t,r){return WHt(e,t,r)};function $X(e){return ODe(e),ky(e<0?0:YX(e)|0)}La.allocUnsafe=function(e){return $X(e)};La.allocUnsafeSlow=function(e){return $X(e)};function $Ht(e,t){if((typeof t!="string"||t==="")&&(t="utf8"),!La.isEncoding(t))throw new TypeError("Unknown encoding: "+t);let r=NDe(e,t)|0,i=ky(r),n=i.write(e,t);return n!==r&&(i=i.slice(0,n)),i}function HX(e){let t=e.length<0?0:YX(e.length)|0,r=ky(t);for(let i=0;i=U8)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+U8.toString(16)+" bytes");return e|0}function ZHt(e){return+e!=e&&(e=0),La.alloc(+e)}La.isBuffer=function(t){return t!=null&&t._isBuffer===!0&&t!==La.prototype};La.compare=function(t,r){if(gm(t,Uint8Array)&&(t=La.from(t,t.offset,t.byteLength)),gm(r,Uint8Array)&&(r=La.from(r,r.offset,r.byteLength)),!La.isBuffer(t)||!La.isBuffer(r))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===r)return 0;let i=t.length,n=r.length;for(let a=0,o=Math.min(i,n);an.length?(La.isBuffer(o)||(o=La.from(o)),o.copy(n,a)):Uint8Array.prototype.set.call(n,o,a);else if(La.isBuffer(o))o.copy(n,a);else throw new TypeError('"list" argument must be an Array of Buffers');a+=o.length}return n};function NDe(e,t){if(La.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||gm(e,ArrayBuffer))return e.byteLength;if(typeof e!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);let r=e.length,i=arguments.length>2&&arguments[2]===!0;if(!i&&r===0)return 0;let n=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return WX(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return XDe(e).length;default:if(n)return i?-1:WX(e).length;t=(""+t).toLowerCase(),n=!0}}La.byteLength=NDe;function KHt(e,t,r){let i=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((r===void 0||r>this.length)&&(r=this.length),r<=0)||(r>>>=0,t>>>=0,r<=t))return"";for(e||(e="utf8");;)switch(e){case"hex":return sjt(this,t,r);case"utf8":case"utf-8":return UDe(this,t,r);case"ascii":return ajt(this,t,r);case"latin1":case"binary":return ojt(this,t,r);case"base64":return ijt(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ljt(this,t,r);default:if(i)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),i=!0}}La.prototype._isBuffer=!0;function t_(e,t,r){let i=e[t];e[t]=e[r],e[r]=i}La.prototype.swap16=function(){let t=this.length;if(t%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let r=0;rr&&(t+=" ... "),""};zDe&&(La.prototype[zDe]=La.prototype.inspect);La.prototype.compare=function(t,r,i,n,a){if(gm(t,Uint8Array)&&(t=La.from(t,t.offset,t.byteLength)),!La.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(r===void 0&&(r=0),i===void 0&&(i=t?t.length:0),n===void 0&&(n=0),a===void 0&&(a=this.length),r<0||i>t.length||n<0||a>this.length)throw new RangeError("out of range index");if(n>=a&&r>=i)return 0;if(n>=a)return-1;if(r>=i)return 1;if(r>>>=0,i>>>=0,n>>>=0,a>>>=0,this===t)return 0;let o=a-n,s=i-r,l=Math.min(o,s),u=this.slice(n,a),f=t.slice(r,i);for(let c=0;c2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,ZX(r)&&(r=n?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(n)return-1;r=e.length-1}else if(r<0)if(n)r=0;else return-1;if(typeof t=="string"&&(t=La.from(t,i)),La.isBuffer(t))return t.length===0?-1:IDe(e,t,r,i,n);if(typeof t=="number")return t=t&255,typeof Uint8Array.prototype.indexOf=="function"?n?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):IDe(e,[t],r,i,n);throw new TypeError("val must be string, number or Buffer")}function IDe(e,t,r,i,n){let a=1,o=e.length,s=t.length;if(i!==void 0&&(i=String(i).toLowerCase(),i==="ucs2"||i==="ucs-2"||i==="utf16le"||i==="utf-16le")){if(e.length<2||t.length<2)return-1;a=2,o/=2,s/=2,r/=2}function l(f,c){return a===1?f[c]:f.readUInt16BE(c*a)}let u;if(n){let f=-1;for(u=r;uo&&(r=o-s),u=r;u>=0;u--){let f=!0;for(let c=0;cn&&(i=n)):i=n;let a=t.length;i>a/2&&(i=a/2);let o;for(o=0;o>>0,isFinite(i)?(i=i>>>0,n===void 0&&(n="utf8")):(n=i,i=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let a=this.length-r;if((i===void 0||i>a)&&(i=a),t.length>0&&(i<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");let o=!1;for(;;)switch(n){case"hex":return JHt(this,t,r,i);case"utf8":case"utf-8":return QHt(this,t,r,i);case"ascii":case"latin1":case"binary":return ejt(this,t,r,i);case"base64":return tjt(this,t,r,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return rjt(this,t,r,i);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}};La.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function ijt(e,t,r){return t===0&&r===e.length?GX.fromByteArray(e):GX.fromByteArray(e.slice(t,r))}function UDe(e,t,r){r=Math.min(e.length,r);let i=[],n=t;for(;n239?4:a>223?3:a>191?2:1;if(n+s<=r){let l,u,f,c;switch(s){case 1:a<128&&(o=a);break;case 2:l=e[n+1],(l&192)===128&&(c=(a&31)<<6|l&63,c>127&&(o=c));break;case 3:l=e[n+1],u=e[n+2],(l&192)===128&&(u&192)===128&&(c=(a&15)<<12|(l&63)<<6|u&63,c>2047&&(c<55296||c>57343)&&(o=c));break;case 4:l=e[n+1],u=e[n+2],f=e[n+3],(l&192)===128&&(u&192)===128&&(f&192)===128&&(c=(a&15)<<18|(l&63)<<12|(u&63)<<6|f&63,c>65535&&c<1114112&&(o=c))}}o===null?(o=65533,s=1):o>65535&&(o-=65536,i.push(o>>>10&1023|55296),o=56320|o&1023),i.push(o),n+=s}return njt(i)}var RDe=4096;function njt(e){let t=e.length;if(t<=RDe)return String.fromCharCode.apply(String,e);let r="",i=0;for(;ii)&&(r=i);let n="";for(let a=t;ai&&(t=i),r<0?(r+=i,r<0&&(r=0)):r>i&&(r=i),rr)throw new RangeError("Trying to access beyond buffer length")}La.prototype.readUintLE=La.prototype.readUIntLE=function(t,r,i){t=t>>>0,r=r>>>0,i||r0(t,r,this.length);let n=this[t],a=1,o=0;for(;++o>>0,r=r>>>0,i||r0(t,r,this.length);let n=this[t+--r],a=1;for(;r>0&&(a*=256);)n+=this[t+--r]*a;return n};La.prototype.readUint8=La.prototype.readUInt8=function(t,r){return t=t>>>0,r||r0(t,1,this.length),this[t]};La.prototype.readUint16LE=La.prototype.readUInt16LE=function(t,r){return t=t>>>0,r||r0(t,2,this.length),this[t]|this[t+1]<<8};La.prototype.readUint16BE=La.prototype.readUInt16BE=function(t,r){return t=t>>>0,r||r0(t,2,this.length),this[t]<<8|this[t+1]};La.prototype.readUint32LE=La.prototype.readUInt32LE=function(t,r){return t=t>>>0,r||r0(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+this[t+3]*16777216};La.prototype.readUint32BE=La.prototype.readUInt32BE=function(t,r){return t=t>>>0,r||r0(t,4,this.length),this[t]*16777216+(this[t+1]<<16|this[t+2]<<8|this[t+3])};La.prototype.readBigUInt64LE=m2(function(t){t=t>>>0,XA(t,"offset");let r=this[t],i=this[t+7];(r===void 0||i===void 0)&&xS(t,this.length-8);let n=r+this[++t]*2**8+this[++t]*2**16+this[++t]*2**24,a=this[++t]+this[++t]*2**8+this[++t]*2**16+i*2**24;return BigInt(n)+(BigInt(a)<>>0,XA(t,"offset");let r=this[t],i=this[t+7];(r===void 0||i===void 0)&&xS(t,this.length-8);let n=r*2**24+this[++t]*2**16+this[++t]*2**8+this[++t],a=this[++t]*2**24+this[++t]*2**16+this[++t]*2**8+i;return(BigInt(n)<>>0,r=r>>>0,i||r0(t,r,this.length);let n=this[t],a=1,o=0;for(;++o=a&&(n-=Math.pow(2,8*r)),n};La.prototype.readIntBE=function(t,r,i){t=t>>>0,r=r>>>0,i||r0(t,r,this.length);let n=r,a=1,o=this[t+--n];for(;n>0&&(a*=256);)o+=this[t+--n]*a;return a*=128,o>=a&&(o-=Math.pow(2,8*r)),o};La.prototype.readInt8=function(t,r){return t=t>>>0,r||r0(t,1,this.length),this[t]&128?(255-this[t]+1)*-1:this[t]};La.prototype.readInt16LE=function(t,r){t=t>>>0,r||r0(t,2,this.length);let i=this[t]|this[t+1]<<8;return i&32768?i|4294901760:i};La.prototype.readInt16BE=function(t,r){t=t>>>0,r||r0(t,2,this.length);let i=this[t+1]|this[t]<<8;return i&32768?i|4294901760:i};La.prototype.readInt32LE=function(t,r){return t=t>>>0,r||r0(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24};La.prototype.readInt32BE=function(t,r){return t=t>>>0,r||r0(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]};La.prototype.readBigInt64LE=m2(function(t){t=t>>>0,XA(t,"offset");let r=this[t],i=this[t+7];(r===void 0||i===void 0)&&xS(t,this.length-8);let n=this[t+4]+this[t+5]*2**8+this[t+6]*2**16+(i<<24);return(BigInt(n)<>>0,XA(t,"offset");let r=this[t],i=this[t+7];(r===void 0||i===void 0)&&xS(t,this.length-8);let n=(r<<24)+this[++t]*2**16+this[++t]*2**8+this[++t];return(BigInt(n)<>>0,r||r0(t,4,this.length),YA.read(this,t,!0,23,4)};La.prototype.readFloatBE=function(t,r){return t=t>>>0,r||r0(t,4,this.length),YA.read(this,t,!1,23,4)};La.prototype.readDoubleLE=function(t,r){return t=t>>>0,r||r0(t,8,this.length),YA.read(this,t,!0,52,8)};La.prototype.readDoubleBE=function(t,r){return t=t>>>0,r||r0(t,8,this.length),YA.read(this,t,!1,52,8)};function Rd(e,t,r,i,n,a){if(!La.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>n||te.length)throw new RangeError("Index out of range")}La.prototype.writeUintLE=La.prototype.writeUIntLE=function(t,r,i,n){if(t=+t,r=r>>>0,i=i>>>0,!n){let s=Math.pow(2,8*i)-1;Rd(this,t,r,i,s,0)}let a=1,o=0;for(this[r]=t&255;++o>>0,i=i>>>0,!n){let s=Math.pow(2,8*i)-1;Rd(this,t,r,i,s,0)}let a=i-1,o=1;for(this[r+a]=t&255;--a>=0&&(o*=256);)this[r+a]=t/o&255;return r+i};La.prototype.writeUint8=La.prototype.writeUInt8=function(t,r,i){return t=+t,r=r>>>0,i||Rd(this,t,r,1,255,0),this[r]=t&255,r+1};La.prototype.writeUint16LE=La.prototype.writeUInt16LE=function(t,r,i){return t=+t,r=r>>>0,i||Rd(this,t,r,2,65535,0),this[r]=t&255,this[r+1]=t>>>8,r+2};La.prototype.writeUint16BE=La.prototype.writeUInt16BE=function(t,r,i){return t=+t,r=r>>>0,i||Rd(this,t,r,2,65535,0),this[r]=t>>>8,this[r+1]=t&255,r+2};La.prototype.writeUint32LE=La.prototype.writeUInt32LE=function(t,r,i){return t=+t,r=r>>>0,i||Rd(this,t,r,4,4294967295,0),this[r+3]=t>>>24,this[r+2]=t>>>16,this[r+1]=t>>>8,this[r]=t&255,r+4};La.prototype.writeUint32BE=La.prototype.writeUInt32BE=function(t,r,i){return t=+t,r=r>>>0,i||Rd(this,t,r,4,4294967295,0),this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=t&255,r+4};function GDe(e,t,r,i,n){YDe(t,i,n,e,r,7);let a=Number(t&BigInt(4294967295));e[r++]=a,a=a>>8,e[r++]=a,a=a>>8,e[r++]=a,a=a>>8,e[r++]=a;let o=Number(t>>BigInt(32)&BigInt(4294967295));return e[r++]=o,o=o>>8,e[r++]=o,o=o>>8,e[r++]=o,o=o>>8,e[r++]=o,r}function HDe(e,t,r,i,n){YDe(t,i,n,e,r,7);let a=Number(t&BigInt(4294967295));e[r+7]=a,a=a>>8,e[r+6]=a,a=a>>8,e[r+5]=a,a=a>>8,e[r+4]=a;let o=Number(t>>BigInt(32)&BigInt(4294967295));return e[r+3]=o,o=o>>8,e[r+2]=o,o=o>>8,e[r+1]=o,o=o>>8,e[r]=o,r+8}La.prototype.writeBigUInt64LE=m2(function(t,r=0){return GDe(this,t,r,BigInt(0),BigInt("0xffffffffffffffff"))});La.prototype.writeBigUInt64BE=m2(function(t,r=0){return HDe(this,t,r,BigInt(0),BigInt("0xffffffffffffffff"))});La.prototype.writeIntLE=function(t,r,i,n){if(t=+t,r=r>>>0,!n){let l=Math.pow(2,8*i-1);Rd(this,t,r,i,l-1,-l)}let a=0,o=1,s=0;for(this[r]=t&255;++a>0)-s&255;return r+i};La.prototype.writeIntBE=function(t,r,i,n){if(t=+t,r=r>>>0,!n){let l=Math.pow(2,8*i-1);Rd(this,t,r,i,l-1,-l)}let a=i-1,o=1,s=0;for(this[r+a]=t&255;--a>=0&&(o*=256);)t<0&&s===0&&this[r+a+1]!==0&&(s=1),this[r+a]=(t/o>>0)-s&255;return r+i};La.prototype.writeInt8=function(t,r,i){return t=+t,r=r>>>0,i||Rd(this,t,r,1,127,-128),t<0&&(t=255+t+1),this[r]=t&255,r+1};La.prototype.writeInt16LE=function(t,r,i){return t=+t,r=r>>>0,i||Rd(this,t,r,2,32767,-32768),this[r]=t&255,this[r+1]=t>>>8,r+2};La.prototype.writeInt16BE=function(t,r,i){return t=+t,r=r>>>0,i||Rd(this,t,r,2,32767,-32768),this[r]=t>>>8,this[r+1]=t&255,r+2};La.prototype.writeInt32LE=function(t,r,i){return t=+t,r=r>>>0,i||Rd(this,t,r,4,2147483647,-2147483648),this[r]=t&255,this[r+1]=t>>>8,this[r+2]=t>>>16,this[r+3]=t>>>24,r+4};La.prototype.writeInt32BE=function(t,r,i){return t=+t,r=r>>>0,i||Rd(this,t,r,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=t&255,r+4};La.prototype.writeBigInt64LE=m2(function(t,r=0){return GDe(this,t,r,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});La.prototype.writeBigInt64BE=m2(function(t,r=0){return HDe(this,t,r,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function jDe(e,t,r,i,n,a){if(r+i>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function WDe(e,t,r,i,n){return t=+t,r=r>>>0,n||jDe(e,t,r,4,34028234663852886e22,-34028234663852886e22),YA.write(e,t,r,i,23,4),r+4}La.prototype.writeFloatLE=function(t,r,i){return WDe(this,t,r,!0,i)};La.prototype.writeFloatBE=function(t,r,i){return WDe(this,t,r,!1,i)};function $De(e,t,r,i,n){return t=+t,r=r>>>0,n||jDe(e,t,r,8,17976931348623157e292,-17976931348623157e292),YA.write(e,t,r,i,52,8),r+8}La.prototype.writeDoubleLE=function(t,r,i){return $De(this,t,r,!0,i)};La.prototype.writeDoubleBE=function(t,r,i){return $De(this,t,r,!1,i)};La.prototype.copy=function(t,r,i,n){if(!La.isBuffer(t))throw new TypeError("argument should be a Buffer");if(i||(i=0),!n&&n!==0&&(n=this.length),r>=t.length&&(r=t.length),r||(r=0),n>0&&n=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-r>>0,i=i===void 0?this.length:i>>>0,t||(t=0);let a;if(typeof t=="number")for(a=r;a2**32?n=BDe(String(r)):typeof r=="bigint"&&(n=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(n=BDe(n)),n+="n"),i+=` It must be ${t}. Received ${n}`,i},RangeError);function BDe(e){let t="",r=e.length,i=e[0]==="-"?1:0;for(;r>=i+4;r-=3)t=`_${e.slice(r-3,r)}${t}`;return`${e.slice(0,r)}${t}`}function ujt(e,t,r){XA(t,"offset"),(e[t]===void 0||e[t+r]===void 0)&&xS(t,e.length-(r+1))}function YDe(e,t,r,i,n,a){if(e>r||e3?t===0||t===BigInt(0)?s=`>= 0${o} and < 2${o} ** ${(a+1)*8}${o}`:s=`>= -(2${o} ** ${(a+1)*8-1}${o}) and < 2 ** ${(a+1)*8-1}${o}`:s=`>= ${t}${o} and <= ${r}${o}`,new $A.ERR_OUT_OF_RANGE("value",s,e)}ujt(i,n,a)}function XA(e,t){if(typeof e!="number")throw new $A.ERR_INVALID_ARG_TYPE(t,"number",e)}function xS(e,t,r){throw Math.floor(e)!==e?(XA(e,r),new $A.ERR_OUT_OF_RANGE(r||"offset","an integer",e)):t<0?new $A.ERR_BUFFER_OUT_OF_BOUNDS:new $A.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${t}`,e)}var fjt=/[^+/0-9A-Za-z-_]/g;function cjt(e){if(e=e.split("=")[0],e=e.trim().replace(fjt,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function WX(e,t){t=t||1/0;let r,i=e.length,n=null,a=[];for(let o=0;o55295&&r<57344){if(!n){if(r>56319){(t-=3)>-1&&a.push(239,191,189);continue}else if(o+1===i){(t-=3)>-1&&a.push(239,191,189);continue}n=r;continue}if(r<56320){(t-=3)>-1&&a.push(239,191,189),n=r;continue}r=(n-55296<<10|r-56320)+65536}else n&&(t-=3)>-1&&a.push(239,191,189);if(n=null,r<128){if((t-=1)<0)break;a.push(r)}else if(r<2048){if((t-=2)<0)break;a.push(r>>6|192,r&63|128)}else if(r<65536){if((t-=3)<0)break;a.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((t-=4)<0)break;a.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return a}function hjt(e){let t=[];for(let r=0;r>8,n=r%256,a.push(n),a.push(i);return a}function XDe(e){return GX.toByteArray(cjt(e))}function G8(e,t,r,i){let n;for(n=0;n=t.length||n>=e.length);++n)t[n+r]=e[n];return n}function gm(e,t){return e instanceof t||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===t.name}function ZX(e){return e!==e}var pjt=(function(){let e="0123456789abcdef",t=new Array(256);for(let r=0;r<16;++r){let i=r*16;for(let n=0;n<16;++n)t[i+n]=e[r]+e[n]}return t})();function m2(e){return typeof BigInt=="undefined"?vjt:e}function vjt(){throw new Error("BigInt not supported")}});var H8=K((g$r,ZDe)=>{"use strict";ZDe.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},r=Symbol("test"),i=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(i)!=="[object Symbol]")return!1;var n=42;t[r]=n;for(var a 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 s=Object.getOwnPropertyDescriptor(t,r);if(s.value!==n||s.enumerable!==!0)return!1}return!0}});var bS=K((x$r,KDe)=>{"use strict";var mjt=H8();KDe.exports=function(){return mjt()&&!!Symbol.toStringTag}});var j8=K((b$r,JDe)=>{"use strict";JDe.exports=Object});var eFe=K((_$r,QDe)=>{"use strict";QDe.exports=Error});var rFe=K((w$r,tFe)=>{"use strict";tFe.exports=EvalError});var nFe=K((A$r,iFe)=>{"use strict";iFe.exports=RangeError});var oFe=K((T$r,aFe)=>{"use strict";aFe.exports=ReferenceError});var KX=K((M$r,sFe)=>{"use strict";sFe.exports=SyntaxError});var KA=K((S$r,lFe)=>{"use strict";lFe.exports=TypeError});var fFe=K((E$r,uFe)=>{"use strict";uFe.exports=URIError});var hFe=K((k$r,cFe)=>{"use strict";cFe.exports=Math.abs});var pFe=K((C$r,dFe)=>{"use strict";dFe.exports=Math.floor});var mFe=K((D$r,vFe)=>{"use strict";vFe.exports=Math.max});var gFe=K((F$r,yFe)=>{"use strict";yFe.exports=Math.min});var bFe=K((L$r,xFe)=>{"use strict";xFe.exports=Math.pow});var wFe=K((P$r,_Fe)=>{"use strict";_Fe.exports=Math.round});var TFe=K((z$r,AFe)=>{"use strict";AFe.exports=Number.isNaN||function(t){return t!==t}});var SFe=K((I$r,MFe)=>{"use strict";var yjt=TFe();MFe.exports=function(t){return yjt(t)||t===0?t:t<0?-1:1}});var kFe=K((R$r,EFe)=>{"use strict";EFe.exports=Object.getOwnPropertyDescriptor});var i_=K((B$r,CFe)=>{"use strict";var W8=kFe();if(W8)try{W8([],"length")}catch(e){W8=null}CFe.exports=W8});var _S=K((q$r,DFe)=>{"use strict";var $8=Object.defineProperty||!1;if($8)try{$8({},"a",{value:1})}catch(e){$8=!1}DFe.exports=$8});var PFe=K((O$r,LFe)=>{"use strict";var FFe=typeof Symbol!="undefined"&&Symbol,gjt=H8();LFe.exports=function(){return typeof FFe!="function"||typeof Symbol!="function"||typeof FFe("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:gjt()}});var JX=K((N$r,zFe)=>{"use strict";zFe.exports=typeof Reflect!="undefined"&&Reflect.getPrototypeOf||null});var QX=K((V$r,IFe)=>{"use strict";var xjt=j8();IFe.exports=xjt.getPrototypeOf||null});var qFe=K((U$r,BFe)=>{"use strict";var bjt="Function.prototype.bind called on incompatible ",_jt=Object.prototype.toString,wjt=Math.max,Ajt="[object Function]",RFe=function(t,r){for(var i=[],n=0;n{"use strict";var Sjt=qFe();OFe.exports=Function.prototype.bind||Sjt});var Y8=K((H$r,NFe)=>{"use strict";NFe.exports=Function.prototype.call});var X8=K((j$r,VFe)=>{"use strict";VFe.exports=Function.prototype.apply});var GFe=K((W$r,UFe)=>{"use strict";UFe.exports=typeof Reflect!="undefined"&&Reflect&&Reflect.apply});var eZ=K(($$r,HFe)=>{"use strict";var Ejt=JA(),kjt=X8(),Cjt=Y8(),Djt=GFe();HFe.exports=Djt||Ejt.call(Cjt,kjt)});var Z8=K((Y$r,jFe)=>{"use strict";var Fjt=JA(),Ljt=KA(),Pjt=Y8(),zjt=eZ();jFe.exports=function(t){if(t.length<1||typeof t[0]!="function")throw new Ljt("a function is required");return zjt(Fjt,Pjt,t)}});var KFe=K((X$r,ZFe)=>{"use strict";var Ijt=Z8(),WFe=i_(),YFe;try{YFe=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!="object"||!("code"in e)||e.code!=="ERR_PROTO_ACCESS")throw e}var tZ=!!YFe&&WFe&&WFe(Object.prototype,"__proto__"),XFe=Object,$Fe=XFe.getPrototypeOf;ZFe.exports=tZ&&typeof tZ.get=="function"?Ijt([tZ.get]):typeof $Fe=="function"?function(t){return $Fe(t==null?t:XFe(t))}:!1});var K8=K((Z$r,tLe)=>{"use strict";var JFe=JX(),QFe=QX(),eLe=KFe();tLe.exports=JFe?function(t){return JFe(t)}:QFe?function(t){if(!t||typeof t!="object"&&typeof t!="function")throw new TypeError("getProto: not an object");return QFe(t)}:eLe?function(t){return eLe(t)}:null});var rZ=K((K$r,rLe)=>{"use strict";var Rjt=Function.prototype.call,Bjt=Object.prototype.hasOwnProperty,qjt=JA();rLe.exports=qjt.call(Rjt,Bjt)});var ez=K((J$r,lLe)=>{"use strict";var Fu,Ojt=j8(),Njt=eFe(),Vjt=rFe(),Ujt=nFe(),Gjt=oFe(),r4=KX(),t4=KA(),Hjt=fFe(),jjt=hFe(),Wjt=pFe(),$jt=mFe(),Yjt=gFe(),Xjt=bFe(),Zjt=wFe(),Kjt=SFe(),oLe=Function,iZ=function(e){try{return oLe('"use strict"; return ('+e+").constructor;")()}catch(t){}},wS=i_(),Jjt=_S(),nZ=function(){throw new t4},Qjt=wS?(function(){try{return arguments.callee,nZ}catch(e){try{return wS(arguments,"callee").get}catch(t){return nZ}}})():nZ,QA=PFe()(),i0=K8(),eWt=QX(),tWt=JX(),sLe=X8(),AS=Y8(),e4={},rWt=typeof Uint8Array=="undefined"||!i0?Fu:i0(Uint8Array),n_={__proto__:null,"%AggregateError%":typeof AggregateError=="undefined"?Fu:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?Fu:ArrayBuffer,"%ArrayIteratorPrototype%":QA&&i0?i0([][Symbol.iterator]()):Fu,"%AsyncFromSyncIteratorPrototype%":Fu,"%AsyncFunction%":e4,"%AsyncGenerator%":e4,"%AsyncGeneratorFunction%":e4,"%AsyncIteratorPrototype%":e4,"%Atomics%":typeof Atomics=="undefined"?Fu:Atomics,"%BigInt%":typeof BigInt=="undefined"?Fu:BigInt,"%BigInt64Array%":typeof BigInt64Array=="undefined"?Fu:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array=="undefined"?Fu:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView=="undefined"?Fu:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Njt,"%eval%":eval,"%EvalError%":Vjt,"%Float16Array%":typeof Float16Array=="undefined"?Fu:Float16Array,"%Float32Array%":typeof Float32Array=="undefined"?Fu:Float32Array,"%Float64Array%":typeof Float64Array=="undefined"?Fu:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry=="undefined"?Fu:FinalizationRegistry,"%Function%":oLe,"%GeneratorFunction%":e4,"%Int8Array%":typeof Int8Array=="undefined"?Fu:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?Fu:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?Fu:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":QA&&i0?i0(i0([][Symbol.iterator]())):Fu,"%JSON%":typeof JSON=="object"?JSON:Fu,"%Map%":typeof Map=="undefined"?Fu:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!QA||!i0?Fu:i0(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Ojt,"%Object.getOwnPropertyDescriptor%":wS,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?Fu:Promise,"%Proxy%":typeof Proxy=="undefined"?Fu:Proxy,"%RangeError%":Ujt,"%ReferenceError%":Gjt,"%Reflect%":typeof Reflect=="undefined"?Fu:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set=="undefined"?Fu:Set,"%SetIteratorPrototype%":typeof Set=="undefined"||!QA||!i0?Fu:i0(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?Fu:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":QA&&i0?i0(""[Symbol.iterator]()):Fu,"%Symbol%":QA?Symbol:Fu,"%SyntaxError%":r4,"%ThrowTypeError%":Qjt,"%TypedArray%":rWt,"%TypeError%":t4,"%Uint8Array%":typeof Uint8Array=="undefined"?Fu:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray=="undefined"?Fu:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array=="undefined"?Fu:Uint16Array,"%Uint32Array%":typeof Uint32Array=="undefined"?Fu:Uint32Array,"%URIError%":Hjt,"%WeakMap%":typeof WeakMap=="undefined"?Fu:WeakMap,"%WeakRef%":typeof WeakRef=="undefined"?Fu:WeakRef,"%WeakSet%":typeof WeakSet=="undefined"?Fu:WeakSet,"%Function.prototype.call%":AS,"%Function.prototype.apply%":sLe,"%Object.defineProperty%":Jjt,"%Object.getPrototypeOf%":eWt,"%Math.abs%":jjt,"%Math.floor%":Wjt,"%Math.max%":$jt,"%Math.min%":Yjt,"%Math.pow%":Xjt,"%Math.round%":Zjt,"%Math.sign%":Kjt,"%Reflect.getPrototypeOf%":tWt};if(i0)try{null.error}catch(e){iLe=i0(i0(e)),n_["%Error.prototype%"]=iLe}var iLe,iWt=function e(t){var r;if(t==="%AsyncFunction%")r=iZ("async function () {}");else if(t==="%GeneratorFunction%")r=iZ("function* () {}");else if(t==="%AsyncGeneratorFunction%")r=iZ("async function* () {}");else if(t==="%AsyncGenerator%"){var i=e("%AsyncGeneratorFunction%");i&&(r=i.prototype)}else if(t==="%AsyncIteratorPrototype%"){var n=e("%AsyncGenerator%");n&&i0&&(r=i0(n.prototype))}return n_[t]=r,r},nLe={__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"]},TS=JA(),J8=rZ(),nWt=TS.call(AS,Array.prototype.concat),aWt=TS.call(sLe,Array.prototype.splice),aLe=TS.call(AS,String.prototype.replace),Q8=TS.call(AS,String.prototype.slice),oWt=TS.call(AS,RegExp.prototype.exec),sWt=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,lWt=/\\(\\)?/g,uWt=function(t){var r=Q8(t,0,1),i=Q8(t,-1);if(r==="%"&&i!=="%")throw new r4("invalid intrinsic syntax, expected closing `%`");if(i==="%"&&r!=="%")throw new r4("invalid intrinsic syntax, expected opening `%`");var n=[];return aLe(t,sWt,function(a,o,s,l){n[n.length]=s?aLe(l,lWt,"$1"):o||a}),n},fWt=function(t,r){var i=t,n;if(J8(nLe,i)&&(n=nLe[i],i="%"+n[0]+"%"),J8(n_,i)){var a=n_[i];if(a===e4&&(a=iWt(i)),typeof a=="undefined"&&!r)throw new t4("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:n,name:i,value:a}}throw new r4("intrinsic "+t+" does not exist!")};lLe.exports=function(t,r){if(typeof t!="string"||t.length===0)throw new t4("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new t4('"allowMissing" argument must be a boolean');if(oWt(/^%?[^%]*%?$/,t)===null)throw new r4("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var i=uWt(t),n=i.length>0?i[0]:"",a=fWt("%"+n+"%",r),o=a.name,s=a.value,l=!1,u=a.alias;u&&(n=u[0],aWt(i,nWt([0,1],u)));for(var f=1,c=!0;f=i.length){var v=wS(s,h);c=!!v,c&&"get"in v&&!("originalValue"in v.get)?s=v.get:s=s[h]}else c=J8(s,h),s=s[h];c&&!l&&(n_[o]=s)}}return s}});var a_=K((Q$r,cLe)=>{"use strict";var uLe=ez(),fLe=Z8(),cWt=fLe([uLe("%String.prototype.indexOf%")]);cLe.exports=function(t,r){var i=uLe(t,!!r);return typeof i=="function"&&cWt(t,".prototype.")>-1?fLe([i]):i}});var pLe=K((eYr,dLe)=>{"use strict";var hWt=bS()(),dWt=a_(),aZ=dWt("Object.prototype.toString"),tz=function(t){return hWt&&t&&typeof t=="object"&&Symbol.toStringTag in t?!1:aZ(t)==="[object Arguments]"},hLe=function(t){return tz(t)?!0:t!==null&&typeof t=="object"&&"length"in t&&typeof t.length=="number"&&t.length>=0&&aZ(t)!=="[object Array]"&&"callee"in t&&aZ(t.callee)==="[object Function]"},pWt=(function(){return tz(arguments)})();tz.isLegacyArguments=hLe;dLe.exports=pWt?tz:hLe});var bLe=K((tYr,xLe)=>{"use strict";var vLe=a_(),vWt=bS()(),mWt=rZ(),yWt=i_(),lZ;vWt?(mLe=vLe("RegExp.prototype.exec"),oZ={},rz=function(){throw oZ},sZ={toString:rz,valueOf:rz},typeof Symbol.toPrimitive=="symbol"&&(sZ[Symbol.toPrimitive]=rz),lZ=function(t){if(!t||typeof t!="object")return!1;var r=yWt(t,"lastIndex"),i=r&&mWt(r,"value");if(!i)return!1;try{mLe(t,sZ)}catch(n){return n===oZ}}):(yLe=vLe("Object.prototype.toString"),gLe="[object RegExp]",lZ=function(t){return!t||typeof t!="object"&&typeof t!="function"?!1:yLe(t)===gLe});var mLe,oZ,rz,sZ,yLe,gLe;xLe.exports=lZ});var wLe=K((rYr,_Le)=>{"use strict";var gWt=a_(),xWt=bLe(),bWt=gWt("RegExp.prototype.exec"),_Wt=KA();_Le.exports=function(t){if(!xWt(t))throw new _Wt("`regex` must be a RegExp");return function(i){return bWt(t,i)!==null}}});var TLe=K((iYr,ALe)=>{"use strict";var wWt=function*(){}.constructor;ALe.exports=()=>wWt});var kLe=K((nYr,ELe)=>{"use strict";var SLe=a_(),AWt=wLe(),TWt=AWt(/^\s*(?:function)?\*/),MWt=bS()(),MLe=K8(),SWt=SLe("Object.prototype.toString"),EWt=SLe("Function.prototype.toString"),kWt=TLe();ELe.exports=function(t){if(typeof t!="function")return!1;if(TWt(EWt(t)))return!0;if(!MWt){var r=SWt(t);return r==="[object GeneratorFunction]"}if(!MLe)return!1;var i=kWt();return i&&MLe(t)===i.prototype}});var LLe=K((aYr,FLe)=>{"use strict";var DLe=Function.prototype.toString,i4=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,fZ,iz;if(typeof i4=="function"&&typeof Object.defineProperty=="function")try{fZ=Object.defineProperty({},"length",{get:function(){throw iz}}),iz={},i4(function(){throw 42},null,fZ)}catch(e){e!==iz&&(i4=null)}else i4=null;var CWt=/^\s*class\b/,cZ=function(t){try{var r=DLe.call(t);return CWt.test(r)}catch(i){return!1}},uZ=function(t){try{return cZ(t)?!1:(DLe.call(t),!0)}catch(r){return!1}},nz=Object.prototype.toString,DWt="[object Object]",FWt="[object Function]",LWt="[object GeneratorFunction]",PWt="[object HTMLAllCollection]",zWt="[object HTML document.all class]",IWt="[object HTMLCollection]",RWt=typeof Symbol=="function"&&!!Symbol.toStringTag,BWt=!(0 in[,]),hZ=function(){return!1};typeof document=="object"&&(CLe=document.all,nz.call(CLe)===nz.call(document.all)&&(hZ=function(t){if((BWt||!t)&&(typeof t=="undefined"||typeof t=="object"))try{var r=nz.call(t);return(r===PWt||r===zWt||r===IWt||r===DWt)&&t("")==null}catch(i){}return!1}));var CLe;FLe.exports=i4?function(t){if(hZ(t))return!0;if(!t||typeof t!="function"&&typeof t!="object")return!1;try{i4(t,null,fZ)}catch(r){if(r!==iz)return!1}return!cZ(t)&&uZ(t)}:function(t){if(hZ(t))return!0;if(!t||typeof t!="function"&&typeof t!="object")return!1;if(RWt)return uZ(t);if(cZ(t))return!1;var r=nz.call(t);return r!==FWt&&r!==LWt&&!/^\[object HTML/.test(r)?!1:uZ(t)}});var ILe=K((oYr,zLe)=>{"use strict";var qWt=LLe(),OWt=Object.prototype.toString,PLe=Object.prototype.hasOwnProperty,NWt=function(t,r,i){for(var n=0,a=t.length;n=3&&(n=i),GWt(t)?NWt(t,r,n):typeof t=="string"?VWt(t,r,n):UWt(t,r,n)}});var BLe=K((sYr,RLe)=>{"use strict";RLe.exports=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]});var OLe=K((lYr,qLe)=>{"use strict";var dZ=BLe(),HWt=typeof globalThis=="undefined"?window:globalThis;qLe.exports=function(){for(var t=[],r=0;r{"use strict";var NLe=_S(),jWt=KX(),n4=KA(),VLe=i_();ULe.exports=function(t,r,i){if(!t||typeof t!="object"&&typeof t!="function")throw new n4("`obj` must be an object or a function`");if(typeof r!="string"&&typeof r!="symbol")throw new n4("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new n4("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new n4("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new n4("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new n4("`loose`, if provided, must be a boolean");var n=arguments.length>3?arguments[3]:null,a=arguments.length>4?arguments[4]:null,o=arguments.length>5?arguments[5]:null,s=arguments.length>6?arguments[6]:!1,l=!!VLe&&VLe(t,r);if(NLe)NLe(t,r,{configurable:o===null&&l?l.configurable:!o,enumerable:n===null&&l?l.enumerable:!n,value:i,writable:a===null&&l?l.writable:!a});else if(s||!n&&!a&&!o)t[r]=i;else throw new jWt("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}});var mZ=K((fYr,HLe)=>{"use strict";var vZ=_S(),GLe=function(){return!!vZ};GLe.hasArrayLengthDefineBug=function(){if(!vZ)return null;try{return vZ([],"length",{value:1}).length!==1}catch(t){return!0}};HLe.exports=GLe});var XLe=K((cYr,YLe)=>{"use strict";var WWt=ez(),jLe=pZ(),$Wt=mZ()(),WLe=i_(),$Le=KA(),YWt=WWt("%Math.floor%");YLe.exports=function(t,r){if(typeof t!="function")throw new $Le("`fn` is not a function");if(typeof r!="number"||r<0||r>4294967295||YWt(r)!==r)throw new $Le("`length` must be a positive 32-bit integer");var i=arguments.length>2&&!!arguments[2],n=!0,a=!0;if("length"in t&&WLe){var o=WLe(t,"length");o&&!o.configurable&&(n=!1),o&&!o.writable&&(a=!1)}return(n||a||!i)&&($Wt?jLe(t,"length",r,!0,!0):jLe(t,"length",r)),t}});var KLe=K((hYr,ZLe)=>{"use strict";var XWt=JA(),ZWt=X8(),KWt=eZ();ZLe.exports=function(){return KWt(XWt,ZWt,arguments)}});var MS=K((dYr,az)=>{"use strict";var JWt=XLe(),JLe=_S(),QWt=Z8(),QLe=KLe();az.exports=function(t){var r=QWt(arguments),i=1+t.length-(arguments.length-1);return JWt(r,i>0?i:0,!0)};JLe?JLe(az.exports,"apply",{value:QLe}):az.exports.apply=QLe});var bZ=K((pYr,iPe)=>{"use strict";var lz=ILe(),e$t=OLe(),ePe=MS(),gZ=a_(),sz=i_(),oz=K8(),t$t=gZ("Object.prototype.toString"),rPe=bS()(),tPe=typeof globalThis=="undefined"?window:globalThis,yZ=e$t(),xZ=gZ("String.prototype.slice"),r$t=gZ("Array.prototype.indexOf",!0)||function(t,r){for(var i=0;i-1}function o$t(e){if(!e||typeof e!="object")return!1;if(!rPe){var t=xZ(t$t(e),8,-1);return a$t(t)?t:t!=="Object"?!1:n$t(e)}return sz?i$t(e):null}iPe.exports=o$t});var aPe=K((vYr,nPe)=>{"use strict";var s$t=bZ();nPe.exports=function(t){return!!s$t(t)}});var AZ=K(Lu=>{"use strict";var l$t=pLe(),u$t=kLe(),d1=bZ(),oPe=aPe();function a4(e){return e.call.bind(e)}var sPe=typeof BigInt!="undefined",lPe=typeof Symbol!="undefined",cv=a4(Object.prototype.toString),f$t=a4(Number.prototype.valueOf),c$t=a4(String.prototype.valueOf),h$t=a4(Boolean.prototype.valueOf);sPe&&(uPe=a4(BigInt.prototype.valueOf));var uPe;lPe&&(fPe=a4(Symbol.prototype.valueOf));var fPe;function ES(e,t){if(typeof e!="object")return!1;try{return t(e),!0}catch(r){return!1}}Lu.isArgumentsObject=l$t;Lu.isGeneratorFunction=u$t;Lu.isTypedArray=oPe;function d$t(e){return typeof Promise!="undefined"&&e instanceof Promise||e!==null&&typeof e=="object"&&typeof e.then=="function"&&typeof e.catch=="function"}Lu.isPromise=d$t;function p$t(e){return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?ArrayBuffer.isView(e):oPe(e)||hPe(e)}Lu.isArrayBufferView=p$t;function v$t(e){return d1(e)==="Uint8Array"}Lu.isUint8Array=v$t;function m$t(e){return d1(e)==="Uint8ClampedArray"}Lu.isUint8ClampedArray=m$t;function y$t(e){return d1(e)==="Uint16Array"}Lu.isUint16Array=y$t;function g$t(e){return d1(e)==="Uint32Array"}Lu.isUint32Array=g$t;function x$t(e){return d1(e)==="Int8Array"}Lu.isInt8Array=x$t;function b$t(e){return d1(e)==="Int16Array"}Lu.isInt16Array=b$t;function _$t(e){return d1(e)==="Int32Array"}Lu.isInt32Array=_$t;function w$t(e){return d1(e)==="Float32Array"}Lu.isFloat32Array=w$t;function A$t(e){return d1(e)==="Float64Array"}Lu.isFloat64Array=A$t;function T$t(e){return d1(e)==="BigInt64Array"}Lu.isBigInt64Array=T$t;function M$t(e){return d1(e)==="BigUint64Array"}Lu.isBigUint64Array=M$t;function fz(e){return cv(e)==="[object Map]"}fz.working=typeof Map!="undefined"&&fz(new Map);function S$t(e){return typeof Map=="undefined"?!1:fz.working?fz(e):e instanceof Map}Lu.isMap=S$t;function cz(e){return cv(e)==="[object Set]"}cz.working=typeof Set!="undefined"&&cz(new Set);function E$t(e){return typeof Set=="undefined"?!1:cz.working?cz(e):e instanceof Set}Lu.isSet=E$t;function hz(e){return cv(e)==="[object WeakMap]"}hz.working=typeof WeakMap!="undefined"&&hz(new WeakMap);function k$t(e){return typeof WeakMap=="undefined"?!1:hz.working?hz(e):e instanceof WeakMap}Lu.isWeakMap=k$t;function wZ(e){return cv(e)==="[object WeakSet]"}wZ.working=typeof WeakSet!="undefined"&&wZ(new WeakSet);function C$t(e){return wZ(e)}Lu.isWeakSet=C$t;function dz(e){return cv(e)==="[object ArrayBuffer]"}dz.working=typeof ArrayBuffer!="undefined"&&dz(new ArrayBuffer);function cPe(e){return typeof ArrayBuffer=="undefined"?!1:dz.working?dz(e):e instanceof ArrayBuffer}Lu.isArrayBuffer=cPe;function pz(e){return cv(e)==="[object DataView]"}pz.working=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"&&pz(new DataView(new ArrayBuffer(1),0,1));function hPe(e){return typeof DataView=="undefined"?!1:pz.working?pz(e):e instanceof DataView}Lu.isDataView=hPe;var _Z=typeof SharedArrayBuffer!="undefined"?SharedArrayBuffer:void 0;function SS(e){return cv(e)==="[object SharedArrayBuffer]"}function dPe(e){return typeof _Z=="undefined"?!1:(typeof SS.working=="undefined"&&(SS.working=SS(new _Z)),SS.working?SS(e):e instanceof _Z)}Lu.isSharedArrayBuffer=dPe;function D$t(e){return cv(e)==="[object AsyncFunction]"}Lu.isAsyncFunction=D$t;function F$t(e){return cv(e)==="[object Map Iterator]"}Lu.isMapIterator=F$t;function L$t(e){return cv(e)==="[object Set Iterator]"}Lu.isSetIterator=L$t;function P$t(e){return cv(e)==="[object Generator]"}Lu.isGeneratorObject=P$t;function z$t(e){return cv(e)==="[object WebAssembly.Module]"}Lu.isWebAssemblyCompiledModule=z$t;function pPe(e){return ES(e,f$t)}Lu.isNumberObject=pPe;function vPe(e){return ES(e,c$t)}Lu.isStringObject=vPe;function mPe(e){return ES(e,h$t)}Lu.isBooleanObject=mPe;function yPe(e){return sPe&&ES(e,uPe)}Lu.isBigIntObject=yPe;function gPe(e){return lPe&&ES(e,fPe)}Lu.isSymbolObject=gPe;function I$t(e){return pPe(e)||vPe(e)||mPe(e)||yPe(e)||gPe(e)}Lu.isBoxedPrimitive=I$t;function R$t(e){return typeof Uint8Array!="undefined"&&(cPe(e)||dPe(e))}Lu.isAnyArrayBuffer=R$t;["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(e){Object.defineProperty(Lu,e,{enumerable:!1,value:function(){throw new Error(e+" is not supported in userland")}})})});var TZ=K((yYr,xPe)=>{xPe.exports=function(t){return t&&typeof t=="object"&&typeof t.copy=="function"&&typeof t.fill=="function"&&typeof t.readUInt8=="function"}});var DZ=K(Pu=>{var bPe=Object.getOwnPropertyDescriptors||function(t){for(var r=Object.keys(t),i={},n=0;n=n)return s;switch(s){case"%s":return String(i[r++]);case"%d":return Number(i[r++]);case"%j":try{return JSON.stringify(i[r++])}catch(l){return"[Circular]"}default:return s}}),o=i[r];r=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),kZ(t)?r.showHidden=t:t&&Pu._extend(r,t),s_(r.showHidden)&&(r.showHidden=!1),s_(r.depth)&&(r.depth=2),s_(r.colors)&&(r.colors=!1),s_(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=q$t),gz(r,e,r.depth)}Pu.inspect=y2;y2.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]};y2.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function q$t(e,t){var r=y2.styles[t];return r?"\x1B["+y2.colors[r][0]+"m"+e+"\x1B["+y2.colors[r][1]+"m":e}function O$t(e,t){return e}function N$t(e){var t={};return e.forEach(function(r,i){t[r]=!0}),t}function gz(e,t,r){if(e.customInspect&&t&&yz(t.inspect)&&t.inspect!==Pu.inspect&&!(t.constructor&&t.constructor.prototype===t)){var i=t.inspect(r,e);return _z(i)||(i=gz(e,i,r)),i}var n=V$t(e,t);if(n)return n;var a=Object.keys(t),o=N$t(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(t)),CS(t)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return MZ(t);if(a.length===0){if(yz(t)){var s=t.name?": "+t.name:"";return e.stylize("[Function"+s+"]","special")}if(kS(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(xz(t))return e.stylize(Date.prototype.toString.call(t),"date");if(CS(t))return MZ(t)}var l="",u=!1,f=["{","}"];if(wPe(t)&&(u=!0,f=["[","]"]),yz(t)){var c=t.name?": "+t.name:"";l=" [Function"+c+"]"}if(kS(t)&&(l=" "+RegExp.prototype.toString.call(t)),xz(t)&&(l=" "+Date.prototype.toUTCString.call(t)),CS(t)&&(l=" "+MZ(t)),a.length===0&&(!u||t.length==0))return f[0]+l+f[1];if(r<0)return kS(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special");e.seen.push(t);var h;return u?h=U$t(e,t,r,o,a):h=a.map(function(d){return EZ(e,t,r,o,d,u)}),e.seen.pop(),G$t(h,l,f)}function V$t(e,t){if(s_(t))return e.stylize("undefined","undefined");if(_z(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}if(APe(t))return e.stylize(""+t,"number");if(kZ(t))return e.stylize(""+t,"boolean");if(bz(t))return e.stylize("null","null")}function MZ(e){return"["+Error.prototype.toString.call(e)+"]"}function U$t(e,t,r,i,n){for(var a=[],o=0,s=t.length;o-1&&(a?s=s.split(` `).map(function(u){return" "+u}).join(` `).slice(2):s=` `+s.split(` `).map(function(u){return" "+u}).join(` -`))):s=e.stylize("[Circular]","special")),s_(o)){if(a&&n.match(/^\d+$/))return s;o=JSON.stringify(""+n),o.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.slice(1,-1),o=e.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=e.stylize(o,"string"))}return o+": "+s}function F$t(e,t,r){var i=0,n=e.reduce(function(a,o){return i++,o.indexOf(` +`))):s=e.stylize("[Circular]","special")),s_(o)){if(a&&n.match(/^\d+$/))return s;o=JSON.stringify(""+n),o.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.slice(1,-1),o=e.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=e.stylize(o,"string"))}return o+": "+s}function G$t(e,t,r){var i=0,n=e.reduce(function(a,o){return i++,o.indexOf(` `)>=0&&i++,a+o.replace(/\u001b\[\d\d?m/g,"").length+1},0);return n>60?r[0]+(t===""?"":t+` `)+" "+e.join(`, - `)+" "+r[1]:r[0]+t+" "+e.join(", ")+" "+r[1]}Lu.types=vZ();function pPe(e){return Array.isArray(e)}Lu.isArray=pPe;function bZ(e){return typeof e=="boolean"}Lu.isBoolean=bZ;function pz(e){return e===null}Lu.isNull=pz;function L$t(e){return e==null}Lu.isNullOrUndefined=L$t;function vPe(e){return typeof e=="number"}Lu.isNumber=vPe;function vz(e){return typeof e=="string"}Lu.isString=vz;function P$t(e){return typeof e=="symbol"}Lu.isSymbol=P$t;function s_(e){return e===void 0}Lu.isUndefined=s_;function SS(e){return a4(e)&&_Z(e)==="[object RegExp]"}Lu.isRegExp=SS;Lu.types.isRegExp=SS;function a4(e){return typeof e=="object"&&e!==null}Lu.isObject=a4;function dz(e){return a4(e)&&_Z(e)==="[object Date]"}Lu.isDate=dz;Lu.types.isDate=dz;function ES(e){return a4(e)&&(_Z(e)==="[object Error]"||e instanceof Error)}Lu.isError=ES;Lu.types.isNativeError=ES;function cz(e){return typeof e=="function"}Lu.isFunction=cz;function z$t(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||typeof e=="undefined"}Lu.isPrimitive=z$t;Lu.isBuffer=mZ();function _Z(e){return Object.prototype.toString.call(e)}function gZ(e){return e<10?"0"+e.toString(10):e.toString(10)}var I$t=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function R$t(){var e=new Date,t=[gZ(e.getHours()),gZ(e.getMinutes()),gZ(e.getSeconds())].join(":");return[e.getDate(),I$t[e.getMonth()],t].join(" ")}Lu.log=function(){console.log("%s - %s",R$t(),Lu.format.apply(Lu,arguments))};Lu.inherits=Ay();Lu._extend=function(e,t){if(!t||!a4(t))return e;for(var r=Object.keys(t),i=r.length;i--;)e[r[i]]=t[r[i]];return e};function mPe(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var o_=typeof Symbol!="undefined"?Symbol("util.promisify.custom"):void 0;Lu.promisify=function(t){if(typeof t!="function")throw new TypeError('The "original" argument must be of type Function');if(o_&&t[o_]){var r=t[o_];if(typeof r!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(r,o_,{value:r,enumerable:!1,writable:!1,configurable:!0}),r}function r(){for(var i,n,a=new Promise(function(l,u){i=l,n=u}),o=[],s=0;s{"use strict";function yPe(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,i)}return r}function gPe(e){for(var t=1;t0?this.tail.next=i:this.head=i,this.tail=i,++this.length}},{key:"unshift",value:function(r){var i={data:r,next:this.head};this.length===0&&(this.tail=i),this.head=i,++this.length}},{key:"shift",value:function(){if(this.length!==0){var r=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,r}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(r){if(this.length===0)return"";for(var i=this.head,n=""+i.data;i=i.next;)n+=r+i.data;return n}},{key:"concat",value:function(r){if(this.length===0)return mz.alloc(0);for(var i=mz.allocUnsafe(r>>>0),n=this.head,a=0;n;)W$t(n.data,i,a),a+=n.data.length,n=n.next;return i}},{key:"consume",value:function(r,i){var n;return ro.length?o.length:r;if(s===o.length?a+=o:a+=o.slice(0,r),r-=s,r===0){s===o.length?(++n,i.next?this.head=i.next:this.head=this.tail=null):(this.head=i,i.data=o.slice(s));break}++n}return this.length-=n,a}},{key:"_getBuffer",value:function(r){var i=mz.allocUnsafe(r),n=this.head,a=1;for(n.data.copy(i),r-=n.data.length;n=n.next;){var o=n.data,s=r>o.length?o.length:r;if(o.copy(i,i.length-r,0,s),r-=s,r===0){s===o.length?(++a,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=o.slice(s));break}++a}return this.length-=a,i}},{key:j$t,value:function(r,i){return AZ(this,gPe(gPe({},i),{},{depth:0,customInspect:!1}))}}]),e})()});var MZ=K((sYr,TPe)=>{"use strict";function $$t(e,t){var r=this,i=this._readableState&&this._readableState.destroyed,n=this._writableState&&this._writableState.destroyed;return i||n?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(TZ,this,e)):process.nextTick(TZ,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(a){!t&&a?r._writableState?r._writableState.errorEmitted?process.nextTick(yz,r):(r._writableState.errorEmitted=!0,process.nextTick(APe,r,a)):process.nextTick(APe,r,a):t?(process.nextTick(yz,r),t(a)):process.nextTick(yz,r)}),this)}function APe(e,t){TZ(e,t),yz(e)}function yz(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function Y$t(){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 TZ(e,t){e.emit("error",t)}function X$t(e,t){var r=e._readableState,i=e._writableState;r&&r.autoDestroy||i&&i.autoDestroy?e.destroy(t):e.emit("error",t)}TPe.exports={destroy:$$t,undestroy:Y$t,errorOrDestroy:X$t}});var l_=K((lYr,EPe)=>{"use strict";function Z$t(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var SPe={};function uv(e,t,r){r||(r=Error);function i(a,o,s){return typeof t=="string"?t:t(a,o,s)}var n=(function(a){Z$t(o,a);function o(s,l,u){return a.call(this,i(s,l,u))||this}return o})(r);n.prototype.name=r.name,n.prototype.code=e,SPe[e]=n}function MPe(e,t){if(Array.isArray(e)){var r=e.length;return e=e.map(function(i){return String(i)}),r>2?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:r===2?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}else return"of ".concat(t," ").concat(String(e))}function K$t(e,t,r){return e.substr(!r||r<0?0:+r,t.length)===t}function J$t(e,t,r){return(r===void 0||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function Q$t(e,t,r){return typeof r!="number"&&(r=0),r+t.length>e.length?!1:e.indexOf(t,r)!==-1}uv("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError);uv("ERR_INVALID_ARG_TYPE",function(e,t,r){var i;typeof t=="string"&&K$t(t,"not ")?(i="must not be",t=t.replace(/^not /,"")):i="must be";var n;if(J$t(e," argument"))n="The ".concat(e," ").concat(i," ").concat(MPe(t,"type"));else{var a=Q$t(e,".")?"property":"argument";n='The "'.concat(e,'" ').concat(a," ").concat(i," ").concat(MPe(t,"type"))}return n+=". Received type ".concat(typeof r),n},TypeError);uv("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");uv("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"});uv("ERR_STREAM_PREMATURE_CLOSE","Premature close");uv("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"});uv("ERR_MULTIPLE_CALLBACK","Callback called multiple times");uv("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");uv("ERR_STREAM_WRITE_AFTER_END","write after end");uv("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);uv("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError);uv("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");EPe.exports.codes=SPe});var SZ=K((uYr,kPe)=>{"use strict";var eYt=l_().codes.ERR_INVALID_OPT_VALUE;function tYt(e,t,r){return e.highWaterMark!=null?e.highWaterMark:t?e[r]:null}function rYt(e,t,r,i){var n=tYt(t,i,r);if(n!=null){if(!(isFinite(n)&&Math.floor(n)===n)||n<0){var a=i?r:"highWaterMark";throw new eYt(a,n)}return Math.floor(n)}return e.objectMode?16:16*1024}kPe.exports={getHighWaterMark:rYt}});var DPe=K((fYr,CPe)=>{CPe.exports=iYt;function iYt(e,t){if(EZ("noDeprecation"))return e;var r=!1;function i(){if(!r){if(EZ("throwDeprecation"))throw new Error(t);EZ("traceDeprecation")?console.trace(t):console.warn(t),r=!0}return e.apply(this,arguments)}return i}function EZ(e){try{if(!window.localStorage)return!1}catch(r){return!1}var t=window.localStorage[e];return t==null?!1:String(t).toLowerCase()==="true"}});var DZ=K((cYr,RPe)=>{"use strict";RPe.exports=Yc;function LPe(e){var t=this;this.next=null,this.entry=null,this.finish=function(){DYt(t,e)}}var o4;Yc.WritableState=CS;var nYt={deprecate:DPe()},PPe=LX(),xz=r_().Buffer,aYt=(typeof window!="undefined"||typeof window!="undefined"?window:typeof self!="undefined"?self:{}).Uint8Array||function(){};function oYt(e){return xz.from(e)}function sYt(e){return xz.isBuffer(e)||e instanceof aYt}var CZ=MZ(),lYt=SZ(),uYt=lYt.getHighWaterMark,v2=l_().codes,fYt=v2.ERR_INVALID_ARG_TYPE,cYt=v2.ERR_METHOD_NOT_IMPLEMENTED,hYt=v2.ERR_MULTIPLE_CALLBACK,dYt=v2.ERR_STREAM_CANNOT_PIPE,pYt=v2.ERR_STREAM_DESTROYED,vYt=v2.ERR_STREAM_NULL_VALUES,mYt=v2.ERR_STREAM_WRITE_AFTER_END,yYt=v2.ERR_UNKNOWN_ENCODING,s4=CZ.errorOrDestroy;Ay()(Yc,PPe);function gYt(){}function CS(e,t,r){o4=o4||u_(),e=e||{},typeof r!="boolean"&&(r=t instanceof o4),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=uYt(this,e,"writableHighWaterMark",r),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var i=e.decodeStrings===!1;this.decodeStrings=!i,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(n){MYt(t,n)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=e.emitClose!==!1,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new LPe(this)}CS.prototype.getBuffer=function(){for(var t=this.bufferedRequest,r=[];t;)r.push(t),t=t.next;return r};(function(){try{Object.defineProperty(CS.prototype,"buffer",{get:nYt.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}})();var gz;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(gz=Function.prototype[Symbol.hasInstance],Object.defineProperty(Yc,Symbol.hasInstance,{value:function(t){return gz.call(this,t)?!0:this!==Yc?!1:t&&t._writableState instanceof CS}})):gz=function(t){return t instanceof this};function Yc(e){o4=o4||u_();var t=this instanceof o4;if(!t&&!gz.call(Yc,this))return new Yc(e);this._writableState=new CS(e,this,t),this.writable=!0,e&&(typeof e.write=="function"&&(this._write=e.write),typeof e.writev=="function"&&(this._writev=e.writev),typeof e.destroy=="function"&&(this._destroy=e.destroy),typeof e.final=="function"&&(this._final=e.final)),PPe.call(this)}Yc.prototype.pipe=function(){s4(this,new dYt)};function xYt(e,t){var r=new mYt;s4(e,r),process.nextTick(t,r)}function bYt(e,t,r,i){var n;return r===null?n=new vYt:typeof r!="string"&&!t.objectMode&&(n=new fYt("chunk",["string","Buffer"],r)),n?(s4(e,n),process.nextTick(i,n),!1):!0}Yc.prototype.write=function(e,t,r){var i=this._writableState,n=!1,a=!i.objectMode&&sYt(e);return a&&!xz.isBuffer(e)&&(e=oYt(e)),typeof t=="function"&&(r=t,t=null),a?t="buffer":t||(t=i.defaultEncoding),typeof r!="function"&&(r=gYt),i.ending?xYt(this,r):(a||bYt(this,i,e,r))&&(i.pendingcb++,n=wYt(this,i,a,e,t,r)),n};Yc.prototype.cork=function(){this._writableState.corked++};Yc.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,!e.writing&&!e.corked&&!e.bufferProcessing&&e.bufferedRequest&&zPe(this,e))};Yc.prototype.setDefaultEncoding=function(t){if(typeof t=="string"&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new yYt(t);return this._writableState.defaultEncoding=t,this};Object.defineProperty(Yc.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function _Yt(e,t,r){return!e.objectMode&&e.decodeStrings!==!1&&typeof t=="string"&&(t=xz.from(t,r)),t}Object.defineProperty(Yc.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function wYt(e,t,r,i,n,a){if(!r){var o=_Yt(t,i,n);i!==o&&(r=!0,n="buffer",i=o)}var s=t.objectMode?1:i.length;t.length+=s;var l=t.length{"use strict";var FYt=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};qPe.exports=ym;var BPe=PZ(),LZ=DZ();Ay()(ym,BPe);for(FZ=FYt(LZ.prototype),bz=0;bz{var wz=r_(),gm=wz.Buffer;function OPe(e,t){for(var r in e)t[r]=e[r]}gm.from&&gm.alloc&&gm.allocUnsafe&&gm.allocUnsafeSlow?NPe.exports=wz:(OPe(wz,zZ),zZ.Buffer=f_);function f_(e,t,r){return gm(e,t,r)}f_.prototype=Object.create(gm.prototype);OPe(gm,f_);f_.from=function(e,t,r){if(typeof e=="number")throw new TypeError("Argument must not be a number");return gm(e,t,r)};f_.alloc=function(e,t,r){if(typeof e!="number")throw new TypeError("Argument must be a number");var i=gm(e);return t!==void 0?typeof r=="string"?i.fill(t,r):i.fill(t):i.fill(0),i};f_.allocUnsafe=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return gm(e)};f_.allocUnsafeSlow=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return wz.SlowBuffer(e)}});var BZ=K(GPe=>{"use strict";var RZ=VPe().Buffer,UPe=RZ.isEncoding||function(e){switch(e=""+e,e&&e.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 zYt(e){if(!e)return"utf8";for(var t;;)switch(e){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 e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}function IYt(e){var t=zYt(e);if(typeof t!="string"&&(RZ.isEncoding===UPe||!UPe(e)))throw new Error("Unknown encoding: "+e);return t||e}GPe.StringDecoder=DS;function DS(e){this.encoding=IYt(e);var t;switch(this.encoding){case"utf16le":this.text=VYt,this.end=UYt,t=4;break;case"utf8":this.fillLast=qYt,t=4;break;case"base64":this.text=GYt,this.end=HYt,t=3;break;default:this.write=jYt,this.end=WYt;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=RZ.allocUnsafe(t)}DS.prototype.write=function(e){if(e.length===0)return"";var t,r;if(this.lastNeed){if(t=this.fillLast(e),t===void 0)return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r>5===6?2:e>>4===14?3:e>>3===30?4:e>>6===2?-1:-2}function RYt(e,t,r){var i=t.length-1;if(i=0?(n>0&&(e.lastNeed=n-1),n):--i=0?(n>0&&(e.lastNeed=n-2),n):--i=0?(n>0&&(n===2?n=0:e.lastNeed=n-3),n):0))}function BYt(e,t,r){if((t[0]&192)!==128)return e.lastNeed=0,"\uFFFD";if(e.lastNeed>1&&t.length>1){if((t[1]&192)!==128)return e.lastNeed=1,"\uFFFD";if(e.lastNeed>2&&t.length>2&&(t[2]&192)!==128)return e.lastNeed=2,"\uFFFD"}}function qYt(e){var t=this.lastTotal-this.lastNeed,r=BYt(this,e,t);if(r!==void 0)return r;if(this.lastNeed<=e.length)return e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length}function OYt(e,t){var r=RYt(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var i=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,i),e.toString("utf8",t,i)}function NYt(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"\uFFFD":t}function VYt(e,t){if((e.length-t)%2===0){var r=e.toString("utf16le",t);if(r){var i=r.charCodeAt(r.length-1);if(i>=55296&&i<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function UYt(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function GYt(e,t){var r=(e.length-t)%3;return r===0?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,r===1?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function HYt(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function jYt(e){return e.toString(this.encoding)}function WYt(e){return e&&e.length?this.write(e):""}});var Az=K((pYr,WPe)=>{"use strict";var HPe=l_().codes.ERR_STREAM_PREMATURE_CLOSE;function $Yt(e){var t=!1;return function(){if(!t){t=!0;for(var r=arguments.length,i=new Array(r),n=0;n{"use strict";var Tz;function m2(e,t,r){return t=ZYt(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ZYt(e){var t=KYt(e,"string");return typeof t=="symbol"?t:String(t)}function KYt(e,t){if(typeof e!="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,t||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var JYt=Az(),y2=Symbol("lastResolve"),c_=Symbol("lastReject"),FS=Symbol("error"),Mz=Symbol("ended"),h_=Symbol("lastPromise"),qZ=Symbol("handlePromise"),d_=Symbol("stream");function g2(e,t){return{value:e,done:t}}function QYt(e){var t=e[y2];if(t!==null){var r=e[d_].read();r!==null&&(e[h_]=null,e[y2]=null,e[c_]=null,t(g2(r,!1)))}}function eXt(e){process.nextTick(QYt,e)}function tXt(e,t){return function(r,i){e.then(function(){if(t[Mz]){r(g2(void 0,!0));return}t[qZ](r,i)},i)}}var rXt=Object.getPrototypeOf(function(){}),iXt=Object.setPrototypeOf((Tz={get stream(){return this[d_]},next:function(){var t=this,r=this[FS];if(r!==null)return Promise.reject(r);if(this[Mz])return Promise.resolve(g2(void 0,!0));if(this[d_].destroyed)return new Promise(function(o,s){process.nextTick(function(){t[FS]?s(t[FS]):o(g2(void 0,!0))})});var i=this[h_],n;if(i)n=new Promise(tXt(i,this));else{var a=this[d_].read();if(a!==null)return Promise.resolve(g2(a,!1));n=new Promise(this[qZ])}return this[h_]=n,n}},m2(Tz,Symbol.asyncIterator,function(){return this}),m2(Tz,"return",function(){var t=this;return new Promise(function(r,i){t[d_].destroy(null,function(n){if(n){i(n);return}r(g2(void 0,!0))})})}),Tz),rXt),nXt=function(t){var r,i=Object.create(iXt,(r={},m2(r,d_,{value:t,writable:!0}),m2(r,y2,{value:null,writable:!0}),m2(r,c_,{value:null,writable:!0}),m2(r,FS,{value:null,writable:!0}),m2(r,Mz,{value:t._readableState.endEmitted,writable:!0}),m2(r,qZ,{value:function(a,o){var s=i[d_].read();s?(i[h_]=null,i[y2]=null,i[c_]=null,a(g2(s,!1))):(i[y2]=a,i[c_]=o)},writable:!0}),r));return i[h_]=null,JYt(t,function(n){if(n&&n.code!=="ERR_STREAM_PREMATURE_CLOSE"){var a=i[c_];a!==null&&(i[h_]=null,i[y2]=null,i[c_]=null,a(n)),i[FS]=n;return}var o=i[y2];o!==null&&(i[h_]=null,i[y2]=null,i[c_]=null,o(g2(void 0,!0))),i[Mz]=!0}),t.on("readable",eXt.bind(null,i)),i};$Pe.exports=nXt});var ZPe=K((mYr,XPe)=>{XPe.exports=function(){throw new Error("Readable.from is not available in the browser")}});var PZ=K((gYr,o8e)=>{"use strict";o8e.exports=$u;var l4;$u.ReadableState=e8e;var yYr=ib().EventEmitter,QPe=function(t,r){return t.listeners(r).length},PS=LX(),Sz=r_().Buffer,aXt=(typeof window!="undefined"||typeof window!="undefined"?window:typeof self!="undefined"?self:{}).Uint8Array||function(){};function oXt(e){return Sz.from(e)}function sXt(e){return Sz.isBuffer(e)||e instanceof aXt}var OZ=wZ(),Su;OZ&&OZ.debuglog?Su=OZ.debuglog("stream"):Su=function(){};var lXt=wPe(),WZ=MZ(),uXt=SZ(),fXt=uXt.getHighWaterMark,Ez=l_().codes,cXt=Ez.ERR_INVALID_ARG_TYPE,hXt=Ez.ERR_STREAM_PUSH_AFTER_EOF,dXt=Ez.ERR_METHOD_NOT_IMPLEMENTED,pXt=Ez.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,u4,NZ,VZ;Ay()($u,PS);var LS=WZ.errorOrDestroy,UZ=["error","close","destroy","pause","resume"];function vXt(e,t,r){if(typeof e.prependListener=="function")return e.prependListener(t,r);!e._events||!e._events[t]?e.on(t,r):Array.isArray(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]}function e8e(e,t,r){l4=l4||u_(),e=e||{},typeof r!="boolean"&&(r=t instanceof l4),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=fXt(this,e,"readableHighWaterMark",r),this.buffer=new lXt,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=e.emitClose!==!1,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(u4||(u4=BZ().StringDecoder),this.decoder=new u4(e.encoding),this.encoding=e.encoding)}function $u(e){if(l4=l4||u_(),!(this instanceof $u))return new $u(e);var t=this instanceof l4;this._readableState=new e8e(e,this,t),this.readable=!0,e&&(typeof e.read=="function"&&(this._read=e.read),typeof e.destroy=="function"&&(this._destroy=e.destroy)),PS.call(this)}Object.defineProperty($u.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}});$u.prototype.destroy=WZ.destroy;$u.prototype._undestroy=WZ.undestroy;$u.prototype._destroy=function(e,t){t(e)};$u.prototype.push=function(e,t){var r=this._readableState,i;return r.objectMode?i=!0:typeof e=="string"&&(t=t||r.defaultEncoding,t!==r.encoding&&(e=Sz.from(e,t),t=""),i=!0),t8e(this,e,t,!1,i)};$u.prototype.unshift=function(e){return t8e(this,e,null,!0,!1)};function t8e(e,t,r,i,n){Su("readableAddChunk",t);var a=e._readableState;if(t===null)a.reading=!1,gXt(e,a);else{var o;if(n||(o=mXt(a,t)),o)LS(e,o);else if(a.objectMode||t&&t.length>0)if(typeof t!="string"&&!a.objectMode&&Object.getPrototypeOf(t)!==Sz.prototype&&(t=oXt(t)),i)a.endEmitted?LS(e,new pXt):GZ(e,a,t,!0);else if(a.ended)LS(e,new hXt);else{if(a.destroyed)return!1;a.reading=!1,a.decoder&&!r?(t=a.decoder.write(t),a.objectMode||t.length!==0?GZ(e,a,t,!1):jZ(e,a)):GZ(e,a,t,!1)}else i||(a.reading=!1,jZ(e,a))}return!a.ended&&(a.length=KPe?e=KPe:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function JPe(e,t){return e<=0||t.length===0&&t.ended?0:t.objectMode?1:e!==e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=yXt(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}$u.prototype.read=function(e){Su("read",e),e=parseInt(e,10);var t=this._readableState,r=e;if(e!==0&&(t.emittedReadable=!1),e===0&&t.needReadable&&((t.highWaterMark!==0?t.length>=t.highWaterMark:t.length>0)||t.ended))return Su("read: emitReadable",t.length,t.ended),t.length===0&&t.ended?HZ(this):kz(this),null;if(e=JPe(e,t),e===0&&t.ended)return t.length===0&&HZ(this),null;var i=t.needReadable;Su("need readable",i),(t.length===0||t.length-e0?n=n8e(e,t):n=null,n===null?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),t.length===0&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&HZ(this)),n!==null&&this.emit("data",n),n};function gXt(e,t){if(Su("onEofChunk"),!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.sync?kz(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,r8e(e)))}}function kz(e){var t=e._readableState;Su("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(Su("emitReadable",t.flowing),t.emittedReadable=!0,process.nextTick(r8e,e))}function r8e(e){var t=e._readableState;Su("emitReadable_",t.destroyed,t.length,t.ended),!t.destroyed&&(t.length||t.ended)&&(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,$Z(e)}function jZ(e,t){t.readingMore||(t.readingMore=!0,process.nextTick(xXt,e,t))}function xXt(e,t){for(;!t.reading&&!t.ended&&(t.length1&&a8e(i.pipes,e)!==-1)&&!u&&(Su("false write response, pause",i.awaitDrain),i.awaitDrain++),r.pause())}function h(y){Su("onerror",y),v(),e.removeListener("error",h),QPe(e,"error")===0&&LS(e,y)}vXt(e,"error",h);function d(){e.removeListener("finish",p),v()}e.once("close",d);function p(){Su("onfinish"),e.removeListener("close",d),v()}e.once("finish",p);function v(){Su("unpipe"),r.unpipe(e)}return e.emit("pipe",r),i.flowing||(Su("pipe resume"),r.resume()),e};function bXt(e){return function(){var r=e._readableState;Su("pipeOnDrain",r.awaitDrain),r.awaitDrain&&r.awaitDrain--,r.awaitDrain===0&&QPe(e,"data")&&(r.flowing=!0,$Z(e))}}$u.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(t.pipesCount===0)return this;if(t.pipesCount===1)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r),this);if(!e){var i=t.pipes,n=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var a=0;a0,i.flowing!==!1&&this.resume()):e==="readable"&&!i.endEmitted&&!i.readableListening&&(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,Su("on readable",i.length,i.reading),i.length?kz(this):i.reading||process.nextTick(_Xt,this)),r};$u.prototype.addListener=$u.prototype.on;$u.prototype.removeListener=function(e,t){var r=PS.prototype.removeListener.call(this,e,t);return e==="readable"&&process.nextTick(i8e,this),r};$u.prototype.removeAllListeners=function(e){var t=PS.prototype.removeAllListeners.apply(this,arguments);return(e==="readable"||e===void 0)&&process.nextTick(i8e,this),t};function i8e(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function _Xt(e){Su("readable nexttick read 0"),e.read(0)}$u.prototype.resume=function(){var e=this._readableState;return e.flowing||(Su("resume"),e.flowing=!e.readableListening,wXt(this,e)),e.paused=!1,this};function wXt(e,t){t.resumeScheduled||(t.resumeScheduled=!0,process.nextTick(AXt,e,t))}function AXt(e,t){Su("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),$Z(e),t.flowing&&!t.reading&&e.read(0)}$u.prototype.pause=function(){return Su("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(Su("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function $Z(e){var t=e._readableState;for(Su("flow",t.flowing);t.flowing&&e.read()!==null;);}$u.prototype.wrap=function(e){var t=this,r=this._readableState,i=!1;e.on("end",function(){if(Su("wrapped end"),r.decoder&&!r.ended){var o=r.decoder.end();o&&o.length&&t.push(o)}t.push(null)}),e.on("data",function(o){if(Su("wrapped data"),r.decoder&&(o=r.decoder.write(o)),!(r.objectMode&&o==null)&&!(!r.objectMode&&(!o||!o.length))){var s=t.push(o);s||(i=!0,e.pause())}});for(var n in e)this[n]===void 0&&typeof e[n]=="function"&&(this[n]=(function(s){return function(){return e[s].apply(e,arguments)}})(n));for(var a=0;a=t.length?(t.decoder?r=t.buffer.join(""):t.buffer.length===1?r=t.buffer.first():r=t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r}function HZ(e){var t=e._readableState;Su("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,process.nextTick(TXt,t,e))}function TXt(e,t){if(Su("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&e.length===0&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}typeof Symbol=="function"&&($u.from=function(e,t){return VZ===void 0&&(VZ=ZPe()),VZ($u,e,t)});function a8e(e,t){for(var r=0,i=e.length;r{"use strict";l8e.exports=My;var Cz=l_().codes,MXt=Cz.ERR_METHOD_NOT_IMPLEMENTED,SXt=Cz.ERR_MULTIPLE_CALLBACK,EXt=Cz.ERR_TRANSFORM_ALREADY_TRANSFORMING,kXt=Cz.ERR_TRANSFORM_WITH_LENGTH_0,Dz=u_();Ay()(My,Dz);function CXt(e,t){var r=this._transformState;r.transforming=!1;var i=r.writecb;if(i===null)return this.emit("error",new SXt);r.writechunk=null,r.writecb=null,t!=null&&this.push(t),i(e);var n=this._readableState;n.reading=!1,(n.needReadable||n.length{"use strict";f8e.exports=zS;var u8e=YZ();Ay()(zS,u8e);function zS(e){if(!(this instanceof zS))return new zS(e);u8e.call(this,e)}zS.prototype._transform=function(e,t,r){r(null,e)}});var m8e=K((_Yr,v8e)=>{"use strict";var XZ;function FXt(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}var p8e=l_().codes,LXt=p8e.ERR_MISSING_ARGS,PXt=p8e.ERR_STREAM_DESTROYED;function h8e(e){if(e)throw e}function zXt(e){return e.setHeader&&typeof e.abort=="function"}function IXt(e,t,r,i){i=FXt(i);var n=!1;e.on("close",function(){n=!0}),XZ===void 0&&(XZ=Az()),XZ(e,{readable:t,writable:r},function(o){if(o)return i(o);n=!0,i()});var a=!1;return function(o){if(!n&&!a){if(a=!0,zXt(e))return e.abort();if(typeof e.destroy=="function")return e.destroy();i(o||new PXt("pipe"))}}}function d8e(e){e()}function RXt(e,t){return e.pipe(t)}function BXt(e){return!e.length||typeof e[e.length-1]!="function"?h8e:e.pop()}function qXt(){for(var e=arguments.length,t=new Array(e),r=0;r0;return IXt(o,l,u,function(f){n||(n=f),f&&a.forEach(d8e),!l&&(a.forEach(d8e),i(n))})});return t.reduce(RXt)}v8e.exports=qXt});var g8e=K((wYr,y8e)=>{y8e.exports=fv;var ZZ=ib().EventEmitter,OXt=Ay();OXt(fv,ZZ);fv.Readable=PZ();fv.Writable=DZ();fv.Duplex=u_();fv.Transform=YZ();fv.PassThrough=c8e();fv.finished=Az();fv.pipeline=m8e();fv.Stream=fv;function fv(){ZZ.call(this)}fv.prototype.pipe=function(e,t){var r=this;function i(f){e.writable&&e.write(f)===!1&&r.pause&&r.pause()}r.on("data",i);function n(){r.readable&&r.resume&&r.resume()}e.on("drain",n),!e._isStdio&&(!t||t.end!==!1)&&(r.on("end",o),r.on("close",s));var a=!1;function o(){a||(a=!0,e.end())}function s(){a||(a=!0,typeof e.destroy=="function"&&e.destroy())}function l(f){if(u(),ZZ.listenerCount(this,"error")===0)throw f}r.on("error",l),e.on("error",l);function u(){r.removeListener("data",i),e.removeListener("drain",n),r.removeListener("end",o),r.removeListener("close",s),r.removeListener("error",l),e.removeListener("error",l),r.removeListener("end",u),r.removeListener("close",u),e.removeListener("close",u)}return r.on("end",u),r.on("close",u),e.on("close",u),e.emit("pipe",r),e}});var c4=K(Pu=>{var x8e=Object.getOwnPropertyDescriptors||function(t){for(var r=Object.keys(t),i={},n=0;n=n)return s;switch(s){case"%s":return String(i[r++]);case"%d":return Number(i[r++]);case"%j":try{return JSON.stringify(i[r++])}catch(l){return"[Circular]"}default:return s}}),o=i[r];r=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),eK(t)?r.showHidden=t:t&&Pu._extend(r,t),v_(r.showHidden)&&(r.showHidden=!1),v_(r.depth)&&(r.depth=2),v_(r.colors)&&(r.colors=!1),v_(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=VXt),zz(r,e,r.depth)}Pu.inspect=x2;x2.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]};x2.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function VXt(e,t){var r=x2.styles[t];return r?"\x1B["+x2.colors[r][0]+"m"+e+"\x1B["+x2.colors[r][1]+"m":e}function UXt(e,t){return e}function GXt(e){var t={};return e.forEach(function(r,i){t[r]=!0}),t}function zz(e,t,r){if(e.customInspect&&t&&Pz(t.inspect)&&t.inspect!==Pu.inspect&&!(t.constructor&&t.constructor.prototype===t)){var i=t.inspect(r,e);return Bz(i)||(i=zz(e,i,r)),i}var n=HXt(e,t);if(n)return n;var a=Object.keys(t),o=GXt(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(t)),RS(t)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return KZ(t);if(a.length===0){if(Pz(t)){var s=t.name?": "+t.name:"";return e.stylize("[Function"+s+"]","special")}if(IS(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(Iz(t))return e.stylize(Date.prototype.toString.call(t),"date");if(RS(t))return KZ(t)}var l="",u=!1,f=["{","}"];if(_8e(t)&&(u=!0,f=["[","]"]),Pz(t)){var c=t.name?": "+t.name:"";l=" [Function"+c+"]"}if(IS(t)&&(l=" "+RegExp.prototype.toString.call(t)),Iz(t)&&(l=" "+Date.prototype.toUTCString.call(t)),RS(t)&&(l=" "+KZ(t)),a.length===0&&(!u||t.length==0))return f[0]+l+f[1];if(r<0)return IS(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special");e.seen.push(t);var h;return u?h=jXt(e,t,r,o,a):h=a.map(function(d){return QZ(e,t,r,o,d,u)}),e.seen.pop(),WXt(h,l,f)}function HXt(e,t){if(v_(t))return e.stylize("undefined","undefined");if(Bz(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}if(w8e(t))return e.stylize(""+t,"number");if(eK(t))return e.stylize(""+t,"boolean");if(Rz(t))return e.stylize("null","null")}function KZ(e){return"["+Error.prototype.toString.call(e)+"]"}function jXt(e,t,r,i,n){for(var a=[],o=0,s=t.length;o{"use strict";function MPe(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,i)}return r}function SPe(e){for(var t=1;t0?this.tail.next=i:this.head=i,this.tail=i,++this.length}},{key:"unshift",value:function(r){var i={data:r,next:this.head};this.length===0&&(this.tail=i),this.head=i,++this.length}},{key:"shift",value:function(){if(this.length!==0){var r=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,r}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(r){if(this.length===0)return"";for(var i=this.head,n=""+i.data;i=i.next;)n+=r+i.data;return n}},{key:"concat",value:function(r){if(this.length===0)return wz.alloc(0);for(var i=wz.allocUnsafe(r>>>0),n=this.head,a=0;n;)nYt(n.data,i,a),a+=n.data.length,n=n.next;return i}},{key:"consume",value:function(r,i){var n;return ro.length?o.length:r;if(s===o.length?a+=o:a+=o.slice(0,r),r-=s,r===0){s===o.length?(++n,i.next?this.head=i.next:this.head=this.tail=null):(this.head=i,i.data=o.slice(s));break}++n}return this.length-=n,a}},{key:"_getBuffer",value:function(r){var i=wz.allocUnsafe(r),n=this.head,a=1;for(n.data.copy(i),r-=n.data.length;n=n.next;){var o=n.data,s=r>o.length?o.length:r;if(o.copy(i,i.length-r,0,s),r-=s,r===0){s===o.length?(++a,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=o.slice(s));break}++a}return this.length-=a,i}},{key:iYt,value:function(r,i){return FZ(this,SPe(SPe({},i),{},{depth:0,customInspect:!1}))}}]),e})()});var PZ=K((bYr,LPe)=>{"use strict";function aYt(e,t){var r=this,i=this._readableState&&this._readableState.destroyed,n=this._writableState&&this._writableState.destroyed;return i||n?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(LZ,this,e)):process.nextTick(LZ,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(a){!t&&a?r._writableState?r._writableState.errorEmitted?process.nextTick(Az,r):(r._writableState.errorEmitted=!0,process.nextTick(FPe,r,a)):process.nextTick(FPe,r,a):t?(process.nextTick(Az,r),t(a)):process.nextTick(Az,r)}),this)}function FPe(e,t){LZ(e,t),Az(e)}function Az(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function oYt(){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 LZ(e,t){e.emit("error",t)}function sYt(e,t){var r=e._readableState,i=e._writableState;r&&r.autoDestroy||i&&i.autoDestroy?e.destroy(t):e.emit("error",t)}LPe.exports={destroy:aYt,undestroy:oYt,errorOrDestroy:sYt}});var l_=K((_Yr,IPe)=>{"use strict";function lYt(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var zPe={};function hv(e,t,r){r||(r=Error);function i(a,o,s){return typeof t=="string"?t:t(a,o,s)}var n=(function(a){lYt(o,a);function o(s,l,u){return a.call(this,i(s,l,u))||this}return o})(r);n.prototype.name=r.name,n.prototype.code=e,zPe[e]=n}function PPe(e,t){if(Array.isArray(e)){var r=e.length;return e=e.map(function(i){return String(i)}),r>2?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:r===2?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}else return"of ".concat(t," ").concat(String(e))}function uYt(e,t,r){return e.substr(!r||r<0?0:+r,t.length)===t}function fYt(e,t,r){return(r===void 0||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function cYt(e,t,r){return typeof r!="number"&&(r=0),r+t.length>e.length?!1:e.indexOf(t,r)!==-1}hv("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError);hv("ERR_INVALID_ARG_TYPE",function(e,t,r){var i;typeof t=="string"&&uYt(t,"not ")?(i="must not be",t=t.replace(/^not /,"")):i="must be";var n;if(fYt(e," argument"))n="The ".concat(e," ").concat(i," ").concat(PPe(t,"type"));else{var a=cYt(e,".")?"property":"argument";n='The "'.concat(e,'" ').concat(a," ").concat(i," ").concat(PPe(t,"type"))}return n+=". Received type ".concat(typeof r),n},TypeError);hv("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");hv("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"});hv("ERR_STREAM_PREMATURE_CLOSE","Premature close");hv("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"});hv("ERR_MULTIPLE_CALLBACK","Callback called multiple times");hv("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");hv("ERR_STREAM_WRITE_AFTER_END","write after end");hv("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);hv("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError);hv("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");IPe.exports.codes=zPe});var zZ=K((wYr,RPe)=>{"use strict";var hYt=l_().codes.ERR_INVALID_OPT_VALUE;function dYt(e,t,r){return e.highWaterMark!=null?e.highWaterMark:t?e[r]:null}function pYt(e,t,r,i){var n=dYt(t,i,r);if(n!=null){if(!(isFinite(n)&&Math.floor(n)===n)||n<0){var a=i?r:"highWaterMark";throw new hYt(a,n)}return Math.floor(n)}return e.objectMode?16:16*1024}RPe.exports={getHighWaterMark:pYt}});var qPe=K((AYr,BPe)=>{BPe.exports=vYt;function vYt(e,t){if(IZ("noDeprecation"))return e;var r=!1;function i(){if(!r){if(IZ("throwDeprecation"))throw new Error(t);IZ("traceDeprecation")?console.trace(t):console.warn(t),r=!0}return e.apply(this,arguments)}return i}function IZ(e){try{if(!window.localStorage)return!1}catch(r){return!1}var t=window.localStorage[e];return t==null?!1:String(t).toLowerCase()==="true"}});var qZ=K((TYr,HPe)=>{"use strict";HPe.exports=Zc;function NPe(e){var t=this;this.next=null,this.entry=null,this.finish=function(){UYt(t,e)}}var s4;Zc.WritableState=FS;var mYt={deprecate:qPe()},VPe=NX(),Mz=r_().Buffer,yYt=(typeof window!="undefined"||typeof window!="undefined"?window:typeof self!="undefined"?self:{}).Uint8Array||function(){};function gYt(e){return Mz.from(e)}function xYt(e){return Mz.isBuffer(e)||e instanceof yYt}var BZ=PZ(),bYt=zZ(),_Yt=bYt.getHighWaterMark,g2=l_().codes,wYt=g2.ERR_INVALID_ARG_TYPE,AYt=g2.ERR_METHOD_NOT_IMPLEMENTED,TYt=g2.ERR_MULTIPLE_CALLBACK,MYt=g2.ERR_STREAM_CANNOT_PIPE,SYt=g2.ERR_STREAM_DESTROYED,EYt=g2.ERR_STREAM_NULL_VALUES,kYt=g2.ERR_STREAM_WRITE_AFTER_END,CYt=g2.ERR_UNKNOWN_ENCODING,l4=BZ.errorOrDestroy;Ey()(Zc,VPe);function DYt(){}function FS(e,t,r){s4=s4||u_(),e=e||{},typeof r!="boolean"&&(r=t instanceof s4),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=_Yt(this,e,"writableHighWaterMark",r),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var i=e.decodeStrings===!1;this.decodeStrings=!i,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(n){BYt(t,n)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=e.emitClose!==!1,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new NPe(this)}FS.prototype.getBuffer=function(){for(var t=this.bufferedRequest,r=[];t;)r.push(t),t=t.next;return r};(function(){try{Object.defineProperty(FS.prototype,"buffer",{get:mYt.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}})();var Tz;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(Tz=Function.prototype[Symbol.hasInstance],Object.defineProperty(Zc,Symbol.hasInstance,{value:function(t){return Tz.call(this,t)?!0:this!==Zc?!1:t&&t._writableState instanceof FS}})):Tz=function(t){return t instanceof this};function Zc(e){s4=s4||u_();var t=this instanceof s4;if(!t&&!Tz.call(Zc,this))return new Zc(e);this._writableState=new FS(e,this,t),this.writable=!0,e&&(typeof e.write=="function"&&(this._write=e.write),typeof e.writev=="function"&&(this._writev=e.writev),typeof e.destroy=="function"&&(this._destroy=e.destroy),typeof e.final=="function"&&(this._final=e.final)),VPe.call(this)}Zc.prototype.pipe=function(){l4(this,new MYt)};function FYt(e,t){var r=new kYt;l4(e,r),process.nextTick(t,r)}function LYt(e,t,r,i){var n;return r===null?n=new EYt:typeof r!="string"&&!t.objectMode&&(n=new wYt("chunk",["string","Buffer"],r)),n?(l4(e,n),process.nextTick(i,n),!1):!0}Zc.prototype.write=function(e,t,r){var i=this._writableState,n=!1,a=!i.objectMode&&xYt(e);return a&&!Mz.isBuffer(e)&&(e=gYt(e)),typeof t=="function"&&(r=t,t=null),a?t="buffer":t||(t=i.defaultEncoding),typeof r!="function"&&(r=DYt),i.ending?FYt(this,r):(a||LYt(this,i,e,r))&&(i.pendingcb++,n=zYt(this,i,a,e,t,r)),n};Zc.prototype.cork=function(){this._writableState.corked++};Zc.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,!e.writing&&!e.corked&&!e.bufferProcessing&&e.bufferedRequest&&UPe(this,e))};Zc.prototype.setDefaultEncoding=function(t){if(typeof t=="string"&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new CYt(t);return this._writableState.defaultEncoding=t,this};Object.defineProperty(Zc.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function PYt(e,t,r){return!e.objectMode&&e.decodeStrings!==!1&&typeof t=="string"&&(t=Mz.from(t,r)),t}Object.defineProperty(Zc.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function zYt(e,t,r,i,n,a){if(!r){var o=PYt(t,i,n);i!==o&&(r=!0,n="buffer",i=o)}var s=t.objectMode?1:i.length;t.length+=s;var l=t.length{"use strict";var GYt=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};WPe.exports=xm;var jPe=VZ(),NZ=qZ();Ey()(xm,jPe);for(OZ=GYt(NZ.prototype),Sz=0;Sz{var kz=r_(),bm=kz.Buffer;function $Pe(e,t){for(var r in e)t[r]=e[r]}bm.from&&bm.alloc&&bm.allocUnsafe&&bm.allocUnsafeSlow?YPe.exports=kz:($Pe(kz,UZ),UZ.Buffer=f_);function f_(e,t,r){return bm(e,t,r)}f_.prototype=Object.create(bm.prototype);$Pe(bm,f_);f_.from=function(e,t,r){if(typeof e=="number")throw new TypeError("Argument must not be a number");return bm(e,t,r)};f_.alloc=function(e,t,r){if(typeof e!="number")throw new TypeError("Argument must be a number");var i=bm(e);return t!==void 0?typeof r=="string"?i.fill(t,r):i.fill(t):i.fill(0),i};f_.allocUnsafe=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return bm(e)};f_.allocUnsafeSlow=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return kz.SlowBuffer(e)}});var jZ=K(KPe=>{"use strict";var HZ=XPe().Buffer,ZPe=HZ.isEncoding||function(e){switch(e=""+e,e&&e.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 WYt(e){if(!e)return"utf8";for(var t;;)switch(e){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 e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}function $Yt(e){var t=WYt(e);if(typeof t!="string"&&(HZ.isEncoding===ZPe||!ZPe(e)))throw new Error("Unknown encoding: "+e);return t||e}KPe.StringDecoder=LS;function LS(e){this.encoding=$Yt(e);var t;switch(this.encoding){case"utf16le":this.text=QYt,this.end=eXt,t=4;break;case"utf8":this.fillLast=ZYt,t=4;break;case"base64":this.text=tXt,this.end=rXt,t=3;break;default:this.write=iXt,this.end=nXt;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=HZ.allocUnsafe(t)}LS.prototype.write=function(e){if(e.length===0)return"";var t,r;if(this.lastNeed){if(t=this.fillLast(e),t===void 0)return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r>5===6?2:e>>4===14?3:e>>3===30?4:e>>6===2?-1:-2}function YYt(e,t,r){var i=t.length-1;if(i=0?(n>0&&(e.lastNeed=n-1),n):--i=0?(n>0&&(e.lastNeed=n-2),n):--i=0?(n>0&&(n===2?n=0:e.lastNeed=n-3),n):0))}function XYt(e,t,r){if((t[0]&192)!==128)return e.lastNeed=0,"\uFFFD";if(e.lastNeed>1&&t.length>1){if((t[1]&192)!==128)return e.lastNeed=1,"\uFFFD";if(e.lastNeed>2&&t.length>2&&(t[2]&192)!==128)return e.lastNeed=2,"\uFFFD"}}function ZYt(e){var t=this.lastTotal-this.lastNeed,r=XYt(this,e,t);if(r!==void 0)return r;if(this.lastNeed<=e.length)return e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length}function KYt(e,t){var r=YYt(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var i=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,i),e.toString("utf8",t,i)}function JYt(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"\uFFFD":t}function QYt(e,t){if((e.length-t)%2===0){var r=e.toString("utf16le",t);if(r){var i=r.charCodeAt(r.length-1);if(i>=55296&&i<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function eXt(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function tXt(e,t){var r=(e.length-t)%3;return r===0?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,r===1?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function rXt(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function iXt(e){return e.toString(this.encoding)}function nXt(e){return e&&e.length?this.write(e):""}});var Cz=K((EYr,e9e)=>{"use strict";var JPe=l_().codes.ERR_STREAM_PREMATURE_CLOSE;function aXt(e){var t=!1;return function(){if(!t){t=!0;for(var r=arguments.length,i=new Array(r),n=0;n{"use strict";var Dz;function x2(e,t,r){return t=lXt(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function lXt(e){var t=uXt(e,"string");return typeof t=="symbol"?t:String(t)}function uXt(e,t){if(typeof e!="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,t||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var fXt=Cz(),b2=Symbol("lastResolve"),c_=Symbol("lastReject"),PS=Symbol("error"),Fz=Symbol("ended"),h_=Symbol("lastPromise"),WZ=Symbol("handlePromise"),d_=Symbol("stream");function _2(e,t){return{value:e,done:t}}function cXt(e){var t=e[b2];if(t!==null){var r=e[d_].read();r!==null&&(e[h_]=null,e[b2]=null,e[c_]=null,t(_2(r,!1)))}}function hXt(e){process.nextTick(cXt,e)}function dXt(e,t){return function(r,i){e.then(function(){if(t[Fz]){r(_2(void 0,!0));return}t[WZ](r,i)},i)}}var pXt=Object.getPrototypeOf(function(){}),vXt=Object.setPrototypeOf((Dz={get stream(){return this[d_]},next:function(){var t=this,r=this[PS];if(r!==null)return Promise.reject(r);if(this[Fz])return Promise.resolve(_2(void 0,!0));if(this[d_].destroyed)return new Promise(function(o,s){process.nextTick(function(){t[PS]?s(t[PS]):o(_2(void 0,!0))})});var i=this[h_],n;if(i)n=new Promise(dXt(i,this));else{var a=this[d_].read();if(a!==null)return Promise.resolve(_2(a,!1));n=new Promise(this[WZ])}return this[h_]=n,n}},x2(Dz,Symbol.asyncIterator,function(){return this}),x2(Dz,"return",function(){var t=this;return new Promise(function(r,i){t[d_].destroy(null,function(n){if(n){i(n);return}r(_2(void 0,!0))})})}),Dz),pXt),mXt=function(t){var r,i=Object.create(vXt,(r={},x2(r,d_,{value:t,writable:!0}),x2(r,b2,{value:null,writable:!0}),x2(r,c_,{value:null,writable:!0}),x2(r,PS,{value:null,writable:!0}),x2(r,Fz,{value:t._readableState.endEmitted,writable:!0}),x2(r,WZ,{value:function(a,o){var s=i[d_].read();s?(i[h_]=null,i[b2]=null,i[c_]=null,a(_2(s,!1))):(i[b2]=a,i[c_]=o)},writable:!0}),r));return i[h_]=null,fXt(t,function(n){if(n&&n.code!=="ERR_STREAM_PREMATURE_CLOSE"){var a=i[c_];a!==null&&(i[h_]=null,i[b2]=null,i[c_]=null,a(n)),i[PS]=n;return}var o=i[b2];o!==null&&(i[h_]=null,i[b2]=null,i[c_]=null,o(_2(void 0,!0))),i[Fz]=!0}),t.on("readable",hXt.bind(null,i)),i};t9e.exports=mXt});var n9e=K((CYr,i9e)=>{i9e.exports=function(){throw new Error("Readable.from is not available in the browser")}});var VZ=K((FYr,p9e)=>{"use strict";p9e.exports=$u;var u4;$u.ReadableState=l9e;var DYr=nb().EventEmitter,s9e=function(t,r){return t.listeners(r).length},IS=NX(),Lz=r_().Buffer,yXt=(typeof window!="undefined"||typeof window!="undefined"?window:typeof self!="undefined"?self:{}).Uint8Array||function(){};function gXt(e){return Lz.from(e)}function xXt(e){return Lz.isBuffer(e)||e instanceof yXt}var $Z=DZ(),Eu;$Z&&$Z.debuglog?Eu=$Z.debuglog("stream"):Eu=function(){};var bXt=DPe(),eK=PZ(),_Xt=zZ(),wXt=_Xt.getHighWaterMark,Pz=l_().codes,AXt=Pz.ERR_INVALID_ARG_TYPE,TXt=Pz.ERR_STREAM_PUSH_AFTER_EOF,MXt=Pz.ERR_METHOD_NOT_IMPLEMENTED,SXt=Pz.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,f4,YZ,XZ;Ey()($u,IS);var zS=eK.errorOrDestroy,ZZ=["error","close","destroy","pause","resume"];function EXt(e,t,r){if(typeof e.prependListener=="function")return e.prependListener(t,r);!e._events||!e._events[t]?e.on(t,r):Array.isArray(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]}function l9e(e,t,r){u4=u4||u_(),e=e||{},typeof r!="boolean"&&(r=t instanceof u4),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=wXt(this,e,"readableHighWaterMark",r),this.buffer=new bXt,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=e.emitClose!==!1,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(f4||(f4=jZ().StringDecoder),this.decoder=new f4(e.encoding),this.encoding=e.encoding)}function $u(e){if(u4=u4||u_(),!(this instanceof $u))return new $u(e);var t=this instanceof u4;this._readableState=new l9e(e,this,t),this.readable=!0,e&&(typeof e.read=="function"&&(this._read=e.read),typeof e.destroy=="function"&&(this._destroy=e.destroy)),IS.call(this)}Object.defineProperty($u.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}});$u.prototype.destroy=eK.destroy;$u.prototype._undestroy=eK.undestroy;$u.prototype._destroy=function(e,t){t(e)};$u.prototype.push=function(e,t){var r=this._readableState,i;return r.objectMode?i=!0:typeof e=="string"&&(t=t||r.defaultEncoding,t!==r.encoding&&(e=Lz.from(e,t),t=""),i=!0),u9e(this,e,t,!1,i)};$u.prototype.unshift=function(e){return u9e(this,e,null,!0,!1)};function u9e(e,t,r,i,n){Eu("readableAddChunk",t);var a=e._readableState;if(t===null)a.reading=!1,DXt(e,a);else{var o;if(n||(o=kXt(a,t)),o)zS(e,o);else if(a.objectMode||t&&t.length>0)if(typeof t!="string"&&!a.objectMode&&Object.getPrototypeOf(t)!==Lz.prototype&&(t=gXt(t)),i)a.endEmitted?zS(e,new SXt):KZ(e,a,t,!0);else if(a.ended)zS(e,new TXt);else{if(a.destroyed)return!1;a.reading=!1,a.decoder&&!r?(t=a.decoder.write(t),a.objectMode||t.length!==0?KZ(e,a,t,!1):QZ(e,a)):KZ(e,a,t,!1)}else i||(a.reading=!1,QZ(e,a))}return!a.ended&&(a.length=a9e?e=a9e:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function o9e(e,t){return e<=0||t.length===0&&t.ended?0:t.objectMode?1:e!==e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=CXt(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}$u.prototype.read=function(e){Eu("read",e),e=parseInt(e,10);var t=this._readableState,r=e;if(e!==0&&(t.emittedReadable=!1),e===0&&t.needReadable&&((t.highWaterMark!==0?t.length>=t.highWaterMark:t.length>0)||t.ended))return Eu("read: emitReadable",t.length,t.ended),t.length===0&&t.ended?JZ(this):zz(this),null;if(e=o9e(e,t),e===0&&t.ended)return t.length===0&&JZ(this),null;var i=t.needReadable;Eu("need readable",i),(t.length===0||t.length-e0?n=h9e(e,t):n=null,n===null?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),t.length===0&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&JZ(this)),n!==null&&this.emit("data",n),n};function DXt(e,t){if(Eu("onEofChunk"),!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.sync?zz(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,f9e(e)))}}function zz(e){var t=e._readableState;Eu("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(Eu("emitReadable",t.flowing),t.emittedReadable=!0,process.nextTick(f9e,e))}function f9e(e){var t=e._readableState;Eu("emitReadable_",t.destroyed,t.length,t.ended),!t.destroyed&&(t.length||t.ended)&&(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,tK(e)}function QZ(e,t){t.readingMore||(t.readingMore=!0,process.nextTick(FXt,e,t))}function FXt(e,t){for(;!t.reading&&!t.ended&&(t.length1&&d9e(i.pipes,e)!==-1)&&!u&&(Eu("false write response, pause",i.awaitDrain),i.awaitDrain++),r.pause())}function h(y){Eu("onerror",y),v(),e.removeListener("error",h),s9e(e,"error")===0&&zS(e,y)}EXt(e,"error",h);function d(){e.removeListener("finish",p),v()}e.once("close",d);function p(){Eu("onfinish"),e.removeListener("close",d),v()}e.once("finish",p);function v(){Eu("unpipe"),r.unpipe(e)}return e.emit("pipe",r),i.flowing||(Eu("pipe resume"),r.resume()),e};function LXt(e){return function(){var r=e._readableState;Eu("pipeOnDrain",r.awaitDrain),r.awaitDrain&&r.awaitDrain--,r.awaitDrain===0&&s9e(e,"data")&&(r.flowing=!0,tK(e))}}$u.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(t.pipesCount===0)return this;if(t.pipesCount===1)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r),this);if(!e){var i=t.pipes,n=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var a=0;a0,i.flowing!==!1&&this.resume()):e==="readable"&&!i.endEmitted&&!i.readableListening&&(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,Eu("on readable",i.length,i.reading),i.length?zz(this):i.reading||process.nextTick(PXt,this)),r};$u.prototype.addListener=$u.prototype.on;$u.prototype.removeListener=function(e,t){var r=IS.prototype.removeListener.call(this,e,t);return e==="readable"&&process.nextTick(c9e,this),r};$u.prototype.removeAllListeners=function(e){var t=IS.prototype.removeAllListeners.apply(this,arguments);return(e==="readable"||e===void 0)&&process.nextTick(c9e,this),t};function c9e(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function PXt(e){Eu("readable nexttick read 0"),e.read(0)}$u.prototype.resume=function(){var e=this._readableState;return e.flowing||(Eu("resume"),e.flowing=!e.readableListening,zXt(this,e)),e.paused=!1,this};function zXt(e,t){t.resumeScheduled||(t.resumeScheduled=!0,process.nextTick(IXt,e,t))}function IXt(e,t){Eu("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),tK(e),t.flowing&&!t.reading&&e.read(0)}$u.prototype.pause=function(){return Eu("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(Eu("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function tK(e){var t=e._readableState;for(Eu("flow",t.flowing);t.flowing&&e.read()!==null;);}$u.prototype.wrap=function(e){var t=this,r=this._readableState,i=!1;e.on("end",function(){if(Eu("wrapped end"),r.decoder&&!r.ended){var o=r.decoder.end();o&&o.length&&t.push(o)}t.push(null)}),e.on("data",function(o){if(Eu("wrapped data"),r.decoder&&(o=r.decoder.write(o)),!(r.objectMode&&o==null)&&!(!r.objectMode&&(!o||!o.length))){var s=t.push(o);s||(i=!0,e.pause())}});for(var n in e)this[n]===void 0&&typeof e[n]=="function"&&(this[n]=(function(s){return function(){return e[s].apply(e,arguments)}})(n));for(var a=0;a=t.length?(t.decoder?r=t.buffer.join(""):t.buffer.length===1?r=t.buffer.first():r=t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r}function JZ(e){var t=e._readableState;Eu("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,process.nextTick(RXt,t,e))}function RXt(e,t){if(Eu("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&e.length===0&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}typeof Symbol=="function"&&($u.from=function(e,t){return XZ===void 0&&(XZ=n9e()),XZ($u,e,t)});function d9e(e,t){for(var r=0,i=e.length;r{"use strict";m9e.exports=Cy;var Iz=l_().codes,BXt=Iz.ERR_METHOD_NOT_IMPLEMENTED,qXt=Iz.ERR_MULTIPLE_CALLBACK,OXt=Iz.ERR_TRANSFORM_ALREADY_TRANSFORMING,NXt=Iz.ERR_TRANSFORM_WITH_LENGTH_0,Rz=u_();Ey()(Cy,Rz);function VXt(e,t){var r=this._transformState;r.transforming=!1;var i=r.writecb;if(i===null)return this.emit("error",new qXt);r.writechunk=null,r.writecb=null,t!=null&&this.push(t),i(e);var n=this._readableState;n.reading=!1,(n.needReadable||n.length{"use strict";g9e.exports=RS;var y9e=rK();Ey()(RS,y9e);function RS(e){if(!(this instanceof RS))return new RS(e);y9e.call(this,e)}RS.prototype._transform=function(e,t,r){r(null,e)}});var T9e=K((zYr,A9e)=>{"use strict";var iK;function GXt(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}var w9e=l_().codes,HXt=w9e.ERR_MISSING_ARGS,jXt=w9e.ERR_STREAM_DESTROYED;function b9e(e){if(e)throw e}function WXt(e){return e.setHeader&&typeof e.abort=="function"}function $Xt(e,t,r,i){i=GXt(i);var n=!1;e.on("close",function(){n=!0}),iK===void 0&&(iK=Cz()),iK(e,{readable:t,writable:r},function(o){if(o)return i(o);n=!0,i()});var a=!1;return function(o){if(!n&&!a){if(a=!0,WXt(e))return e.abort();if(typeof e.destroy=="function")return e.destroy();i(o||new jXt("pipe"))}}}function _9e(e){e()}function YXt(e,t){return e.pipe(t)}function XXt(e){return!e.length||typeof e[e.length-1]!="function"?b9e:e.pop()}function ZXt(){for(var e=arguments.length,t=new Array(e),r=0;r0;return $Xt(o,l,u,function(f){n||(n=f),f&&a.forEach(_9e),!l&&(a.forEach(_9e),i(n))})});return t.reduce(YXt)}A9e.exports=ZXt});var S9e=K((IYr,M9e)=>{M9e.exports=dv;var nK=nb().EventEmitter,KXt=Ey();KXt(dv,nK);dv.Readable=VZ();dv.Writable=qZ();dv.Duplex=u_();dv.Transform=rK();dv.PassThrough=x9e();dv.finished=Cz();dv.pipeline=T9e();dv.Stream=dv;function dv(){nK.call(this)}dv.prototype.pipe=function(e,t){var r=this;function i(f){e.writable&&e.write(f)===!1&&r.pause&&r.pause()}r.on("data",i);function n(){r.readable&&r.resume&&r.resume()}e.on("drain",n),!e._isStdio&&(!t||t.end!==!1)&&(r.on("end",o),r.on("close",s));var a=!1;function o(){a||(a=!0,e.end())}function s(){a||(a=!0,typeof e.destroy=="function"&&e.destroy())}function l(f){if(u(),nK.listenerCount(this,"error")===0)throw f}r.on("error",l),e.on("error",l);function u(){r.removeListener("data",i),e.removeListener("drain",n),r.removeListener("end",o),r.removeListener("close",s),r.removeListener("error",l),e.removeListener("error",l),r.removeListener("end",u),r.removeListener("close",u),e.removeListener("close",u)}return r.on("end",u),r.on("close",u),e.on("close",u),e.emit("pipe",r),e}});var h4=K(zu=>{var E9e=Object.getOwnPropertyDescriptors||function(t){for(var r=Object.keys(t),i={},n=0;n=n)return s;switch(s){case"%s":return String(i[r++]);case"%d":return Number(i[r++]);case"%j":try{return JSON.stringify(i[r++])}catch(l){return"[Circular]"}default:return s}}),o=i[r];r=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),lK(t)?r.showHidden=t:t&&zu._extend(r,t),v_(r.showHidden)&&(r.showHidden=!1),v_(r.depth)&&(r.depth=2),v_(r.colors)&&(r.colors=!1),v_(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=QXt),Nz(r,e,r.depth)}zu.inspect=w2;w2.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]};w2.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function QXt(e,t){var r=w2.styles[t];return r?"\x1B["+w2.colors[r][0]+"m"+e+"\x1B["+w2.colors[r][1]+"m":e}function eZt(e,t){return e}function tZt(e){var t={};return e.forEach(function(r,i){t[r]=!0}),t}function Nz(e,t,r){if(e.customInspect&&t&&Oz(t.inspect)&&t.inspect!==zu.inspect&&!(t.constructor&&t.constructor.prototype===t)){var i=t.inspect(r,e);return Gz(i)||(i=Nz(e,i,r)),i}var n=rZt(e,t);if(n)return n;var a=Object.keys(t),o=tZt(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(t)),qS(t)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return aK(t);if(a.length===0){if(Oz(t)){var s=t.name?": "+t.name:"";return e.stylize("[Function"+s+"]","special")}if(BS(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(Vz(t))return e.stylize(Date.prototype.toString.call(t),"date");if(qS(t))return aK(t)}var l="",u=!1,f=["{","}"];if(C9e(t)&&(u=!0,f=["[","]"]),Oz(t)){var c=t.name?": "+t.name:"";l=" [Function"+c+"]"}if(BS(t)&&(l=" "+RegExp.prototype.toString.call(t)),Vz(t)&&(l=" "+Date.prototype.toUTCString.call(t)),qS(t)&&(l=" "+aK(t)),a.length===0&&(!u||t.length==0))return f[0]+l+f[1];if(r<0)return BS(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special");e.seen.push(t);var h;return u?h=iZt(e,t,r,o,a):h=a.map(function(d){return sK(e,t,r,o,d,u)}),e.seen.pop(),nZt(h,l,f)}function rZt(e,t){if(v_(t))return e.stylize("undefined","undefined");if(Gz(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}if(D9e(t))return e.stylize(""+t,"number");if(lK(t))return e.stylize(""+t,"boolean");if(Uz(t))return e.stylize("null","null")}function aK(e){return"["+Error.prototype.toString.call(e)+"]"}function iZt(e,t,r,i,n){for(var a=[],o=0,s=t.length;o-1&&(a?s=s.split(` `).map(function(u){return" "+u}).join(` `).slice(2):s=` `+s.split(` `).map(function(u){return" "+u}).join(` -`))):s=e.stylize("[Circular]","special")),v_(o)){if(a&&n.match(/^\d+$/))return s;o=JSON.stringify(""+n),o.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.slice(1,-1),o=e.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=e.stylize(o,"string"))}return o+": "+s}function WXt(e,t,r){var i=0,n=e.reduce(function(a,o){return i++,o.indexOf(` +`))):s=e.stylize("[Circular]","special")),v_(o)){if(a&&n.match(/^\d+$/))return s;o=JSON.stringify(""+n),o.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.slice(1,-1),o=e.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=e.stylize(o,"string"))}return o+": "+s}function nZt(e,t,r){var i=0,n=e.reduce(function(a,o){return i++,o.indexOf(` `)>=0&&i++,a+o.replace(/\u001b\[\d\d?m/g,"").length+1},0);return n>60?r[0]+(t===""?"":t+` `)+" "+e.join(`, - `)+" "+r[1]:r[0]+t+" "+e.join(", ")+" "+r[1]}Pu.types=vZ();function _8e(e){return Array.isArray(e)}Pu.isArray=_8e;function eK(e){return typeof e=="boolean"}Pu.isBoolean=eK;function Rz(e){return e===null}Pu.isNull=Rz;function $Xt(e){return e==null}Pu.isNullOrUndefined=$Xt;function w8e(e){return typeof e=="number"}Pu.isNumber=w8e;function Bz(e){return typeof e=="string"}Pu.isString=Bz;function YXt(e){return typeof e=="symbol"}Pu.isSymbol=YXt;function v_(e){return e===void 0}Pu.isUndefined=v_;function IS(e){return f4(e)&&tK(e)==="[object RegExp]"}Pu.isRegExp=IS;Pu.types.isRegExp=IS;function f4(e){return typeof e=="object"&&e!==null}Pu.isObject=f4;function Iz(e){return f4(e)&&tK(e)==="[object Date]"}Pu.isDate=Iz;Pu.types.isDate=Iz;function RS(e){return f4(e)&&(tK(e)==="[object Error]"||e instanceof Error)}Pu.isError=RS;Pu.types.isNativeError=RS;function Pz(e){return typeof e=="function"}Pu.isFunction=Pz;function XXt(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||typeof e=="undefined"}Pu.isPrimitive=XXt;Pu.isBuffer=mZ();function tK(e){return Object.prototype.toString.call(e)}function JZ(e){return e<10?"0"+e.toString(10):e.toString(10)}var ZXt=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function KXt(){var e=new Date,t=[JZ(e.getHours()),JZ(e.getMinutes()),JZ(e.getSeconds())].join(":");return[e.getDate(),ZXt[e.getMonth()],t].join(" ")}Pu.log=function(){console.log("%s - %s",KXt(),Pu.format.apply(Pu,arguments))};Pu.inherits=Ay();Pu._extend=function(e,t){if(!t||!f4(t))return e;for(var r=Object.keys(t),i=r.length;i--;)e[r[i]]=t[r[i]];return e};function A8e(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var p_=typeof Symbol!="undefined"?Symbol("util.promisify.custom"):void 0;Pu.promisify=function(t){if(typeof t!="function")throw new TypeError('The "original" argument must be of type Function');if(p_&&t[p_]){var r=t[p_];if(typeof r!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(r,p_,{value:r,enumerable:!1,writable:!1,configurable:!0}),r}function r(){for(var i,n,a=new Promise(function(l,u){i=l,n=u}),o=[],s=0;s{"use strict";function b2(e){"@babel/helpers - typeof";return b2=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},b2(e)}function T8e(e,t){for(var r=0;r2?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:r===2?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}else return"of ".concat(t," ").concat(String(e))}function uZt(e,t,r){return e.substr(!r||r<0?0:+r,t.length)===t}function fZt(e,t,r){return(r===void 0||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function cZt(e,t,r){return typeof r!="number"&&(r=0),r+t.length>e.length?!1:e.indexOf(t,r)!==-1}BS("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError);BS("ERR_INVALID_ARG_TYPE",function(e,t,r){h4===void 0&&(h4=Oz()),h4(typeof e=="string","'name' must be a string");var i;typeof t=="string"&&uZt(t,"not ")?(i="must not be",t=t.replace(/^not /,"")):i="must be";var n;if(fZt(e," argument"))n="The ".concat(e," ").concat(i," ").concat(M8e(t,"type"));else{var a=cZt(e,".")?"property":"argument";n='The "'.concat(e,'" ').concat(a," ").concat(i," ").concat(M8e(t,"type"))}return n+=". Received type ".concat(b2(r)),n},TypeError);BS("ERR_INVALID_ARG_VALUE",function(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";rK===void 0&&(rK=c4());var i=rK.inspect(t);return i.length>128&&(i="".concat(i.slice(0,128),"...")),"The argument '".concat(e,"' ").concat(r,". Received ").concat(i)},TypeError,RangeError);BS("ERR_INVALID_RETURN_VALUE",function(e,t,r){var i;return r&&r.constructor&&r.constructor.name?i="instance of ".concat(r.constructor.name):i="type ".concat(b2(r)),"Expected ".concat(e,' to be returned from the "').concat(t,'"')+" function but got ".concat(i,".")},TypeError);BS("ERR_MISSING_ARGS",function(){for(var e=arguments.length,t=new Array(e),r=0;r0,"At least one arg needs to be specified");var i="The ",n=t.length;switch(t=t.map(function(a){return'"'.concat(a,'"')}),n){case 1:i+="".concat(t[0]," argument");break;case 2:i+="".concat(t[0]," and ").concat(t[1]," arguments");break;default:i+=t.slice(0,n-1).join(", "),i+=", and ".concat(t[n-1]," arguments");break}return"".concat(i," must be specified")},TypeError);E8e.exports.codes=S8e});var B8e=K((MYr,R8e)=>{"use strict";function k8e(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,i)}return r}function C8e(e){for(var t=1;te.length)&&(r=e.length),e.substring(r-t.length,r)===t}function wZt(e,t){if(t=Math.floor(t),e.length==0||t==0)return"";var r=e.length*t;for(t=Math.floor(Math.log(t)/Math.log(2));t;)e+=e,t--;return e+=e.substring(0,r-e.length),e}var f1="",qS="",OS="",k0="",m_={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:"},AZt=10;function L8e(e){var t=Object.keys(e),r=Object.create(Object.getPrototypeOf(e));return t.forEach(function(i){r[i]=e[i]}),Object.defineProperty(r,"message",{value:e.message}),r}function NS(e){return sK(e,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function TZt(e,t,r){var i="",n="",a=0,o="",s=!1,l=NS(e),u=l.split(` -`),f=NS(t).split(` -`),c=0,h="";if(r==="strictEqual"&&zd(e)==="object"&&zd(t)==="object"&&e!==null&&t!==null&&(r="strictEqualObject"),u.length===1&&f.length===1&&u[0]!==f[0]){var d=u[0].length+f[0].length;if(d<=AZt){if((zd(e)!=="object"||e===null)&&(zd(t)!=="object"||t===null)&&(e!==0||t!==0))return"".concat(m_[r],` + `)+" "+r[1]:r[0]+t+" "+e.join(", ")+" "+r[1]}zu.types=AZ();function C9e(e){return Array.isArray(e)}zu.isArray=C9e;function lK(e){return typeof e=="boolean"}zu.isBoolean=lK;function Uz(e){return e===null}zu.isNull=Uz;function aZt(e){return e==null}zu.isNullOrUndefined=aZt;function D9e(e){return typeof e=="number"}zu.isNumber=D9e;function Gz(e){return typeof e=="string"}zu.isString=Gz;function oZt(e){return typeof e=="symbol"}zu.isSymbol=oZt;function v_(e){return e===void 0}zu.isUndefined=v_;function BS(e){return c4(e)&&uK(e)==="[object RegExp]"}zu.isRegExp=BS;zu.types.isRegExp=BS;function c4(e){return typeof e=="object"&&e!==null}zu.isObject=c4;function Vz(e){return c4(e)&&uK(e)==="[object Date]"}zu.isDate=Vz;zu.types.isDate=Vz;function qS(e){return c4(e)&&(uK(e)==="[object Error]"||e instanceof Error)}zu.isError=qS;zu.types.isNativeError=qS;function Oz(e){return typeof e=="function"}zu.isFunction=Oz;function sZt(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||typeof e=="undefined"}zu.isPrimitive=sZt;zu.isBuffer=TZ();function uK(e){return Object.prototype.toString.call(e)}function oK(e){return e<10?"0"+e.toString(10):e.toString(10)}var lZt=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function uZt(){var e=new Date,t=[oK(e.getHours()),oK(e.getMinutes()),oK(e.getSeconds())].join(":");return[e.getDate(),lZt[e.getMonth()],t].join(" ")}zu.log=function(){console.log("%s - %s",uZt(),zu.format.apply(zu,arguments))};zu.inherits=Ey();zu._extend=function(e,t){if(!t||!c4(t))return e;for(var r=Object.keys(t),i=r.length;i--;)e[r[i]]=t[r[i]];return e};function F9e(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var p_=typeof Symbol!="undefined"?Symbol("util.promisify.custom"):void 0;zu.promisify=function(t){if(typeof t!="function")throw new TypeError('The "original" argument must be of type Function');if(p_&&t[p_]){var r=t[p_];if(typeof r!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(r,p_,{value:r,enumerable:!1,writable:!1,configurable:!0}),r}function r(){for(var i,n,a=new Promise(function(l,u){i=l,n=u}),o=[],s=0;s{"use strict";function A2(e){"@babel/helpers - typeof";return A2=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},A2(e)}function L9e(e,t){for(var r=0;r2?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:r===2?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}else return"of ".concat(t," ").concat(String(e))}function _Zt(e,t,r){return e.substr(!r||r<0?0:+r,t.length)===t}function wZt(e,t,r){return(r===void 0||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function AZt(e,t,r){return typeof r!="number"&&(r=0),r+t.length>e.length?!1:e.indexOf(t,r)!==-1}OS("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError);OS("ERR_INVALID_ARG_TYPE",function(e,t,r){d4===void 0&&(d4=jz()),d4(typeof e=="string","'name' must be a string");var i;typeof t=="string"&&_Zt(t,"not ")?(i="must not be",t=t.replace(/^not /,"")):i="must be";var n;if(wZt(e," argument"))n="The ".concat(e," ").concat(i," ").concat(P9e(t,"type"));else{var a=AZt(e,".")?"property":"argument";n='The "'.concat(e,'" ').concat(a," ").concat(i," ").concat(P9e(t,"type"))}return n+=". Received type ".concat(A2(r)),n},TypeError);OS("ERR_INVALID_ARG_VALUE",function(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";fK===void 0&&(fK=h4());var i=fK.inspect(t);return i.length>128&&(i="".concat(i.slice(0,128),"...")),"The argument '".concat(e,"' ").concat(r,". Received ").concat(i)},TypeError,RangeError);OS("ERR_INVALID_RETURN_VALUE",function(e,t,r){var i;return r&&r.constructor&&r.constructor.name?i="instance of ".concat(r.constructor.name):i="type ".concat(A2(r)),"Expected ".concat(e,' to be returned from the "').concat(t,'"')+" function but got ".concat(i,".")},TypeError);OS("ERR_MISSING_ARGS",function(){for(var e=arguments.length,t=new Array(e),r=0;r0,"At least one arg needs to be specified");var i="The ",n=t.length;switch(t=t.map(function(a){return'"'.concat(a,'"')}),n){case 1:i+="".concat(t[0]," argument");break;case 2:i+="".concat(t[0]," and ").concat(t[1]," arguments");break;default:i+=t.slice(0,n-1).join(", "),i+=", and ".concat(t[n-1]," arguments");break}return"".concat(i," must be specified")},TypeError);I9e.exports.codes=z9e});var j9e=K((qYr,H9e)=>{"use strict";function R9e(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,i)}return r}function B9e(e){for(var t=1;te.length)&&(r=e.length),e.substring(r-t.length,r)===t}function zZt(e,t){if(t=Math.floor(t),e.length==0||t==0)return"";var r=e.length*t;for(t=Math.floor(Math.log(t)/Math.log(2));t;)e+=e,t--;return e+=e.substring(0,r-e.length),e}var p1="",NS="",VS="",C0="",m_={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:"},IZt=10;function N9e(e){var t=Object.keys(e),r=Object.create(Object.getPrototypeOf(e));return t.forEach(function(i){r[i]=e[i]}),Object.defineProperty(r,"message",{value:e.message}),r}function US(e){return vK(e,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function RZt(e,t,r){var i="",n="",a=0,o="",s=!1,l=US(e),u=l.split(` +`),f=US(t).split(` +`),c=0,h="";if(r==="strictEqual"&&Bd(e)==="object"&&Bd(t)==="object"&&e!==null&&t!==null&&(r="strictEqualObject"),u.length===1&&f.length===1&&u[0]!==f[0]){var d=u[0].length+f[0].length;if(d<=IZt){if((Bd(e)!=="object"||e===null)&&(Bd(t)!=="object"||t===null)&&(e!==0||t!==0))return"".concat(m_[r],` `)+"".concat(u[0]," !== ").concat(f[0],` `)}else if(r!=="strictEqualObject"){var p=process.stderr&&process.stderr.isTTY?process.stderr.columns:80;if(d2&&(h=` - `.concat(wZt(" ",c),"^"),c=0)}}}for(var v=u[u.length-1],y=f[f.length-1];v===y&&(c++<2?o=` + `.concat(zZt(" ",c),"^"),c=0)}}}for(var v=u[u.length-1],y=f[f.length-1];v===y&&(c++<2?o=` `.concat(v).concat(o):i=v,u.pop(),f.pop(),!(u.length===0||f.length===0));)v=u[u.length-1],y=f[f.length-1];var m=Math.max(u.length,f.length);if(m===0){var w=l.split(` -`);if(w.length>30)for(w[26]="".concat(f1,"...").concat(k0);w.length>27;)w.pop();return"".concat(m_.notIdentical,` +`);if(w.length>30)for(w[26]="".concat(p1,"...").concat(C0);w.length>27;)w.pop();return"".concat(m_.notIdentical,` `).concat(w.join(` `),` `)}c>3&&(o=` -`.concat(f1,"...").concat(k0).concat(o),s=!0),i!==""&&(o=` +`.concat(p1,"...").concat(C0).concat(o),s=!0),i!==""&&(o=` `.concat(i).concat(o),i="");var _=0,b=m_[r]+` -`.concat(qS,"+ actual").concat(k0," ").concat(OS,"- expected").concat(k0),M=" ".concat(f1,"...").concat(k0," Lines skipped");for(c=0;c1&&c>2&&(x>4?(n+=` -`.concat(f1,"...").concat(k0),s=!0):x>3&&(n+=` +`.concat(NS,"+ actual").concat(C0," ").concat(VS,"- expected").concat(C0),M=" ".concat(p1,"...").concat(C0," Lines skipped");for(c=0;c1&&c>2&&(x>4?(n+=` +`.concat(p1,"...").concat(C0),s=!0):x>3&&(n+=` `.concat(f[c-2]),_++),n+=` `.concat(f[c-1]),_++),a=c,i+=` -`.concat(OS,"-").concat(k0," ").concat(f[c]),_++;else if(f.length1&&c>2&&(x>4?(n+=` -`.concat(f1,"...").concat(k0),s=!0):x>3&&(n+=` +`.concat(VS,"-").concat(C0," ").concat(f[c]),_++;else if(f.length1&&c>2&&(x>4?(n+=` +`.concat(p1,"...").concat(C0),s=!0):x>3&&(n+=` `.concat(u[c-2]),_++),n+=` `.concat(u[c-1]),_++),a=c,n+=` -`.concat(qS,"+").concat(k0," ").concat(u[c]),_++;else{var A=f[c],T=u[c],g=T!==A&&(!F8e(T,",")||T.slice(0,-1)!==A);g&&F8e(A,",")&&A.slice(0,-1)===T&&(g=!1,T+=","),g?(x>1&&c>2&&(x>4?(n+=` -`.concat(f1,"...").concat(k0),s=!0):x>3&&(n+=` +`.concat(NS,"+").concat(C0," ").concat(u[c]),_++;else{var T=f[c],A=u[c],g=A!==T&&(!O9e(A,",")||A.slice(0,-1)!==T);g&&O9e(T,",")&&T.slice(0,-1)===A&&(g=!1,A+=","),g?(x>1&&c>2&&(x>4?(n+=` +`.concat(p1,"...").concat(C0),s=!0):x>3&&(n+=` `.concat(u[c-2]),_++),n+=` `.concat(u[c-1]),_++),a=c,n+=` -`.concat(qS,"+").concat(k0," ").concat(T),i+=` -`.concat(OS,"-").concat(k0," ").concat(A),_+=2):(n+=i,i="",(x===1||c===0)&&(n+=` - `.concat(T),_++))}if(_>20&&c20&&c30)for(d[26]="".concat(f1,"...").concat(k0);d.length>27;)d.pop();d.length===1?a=r.call(this,"".concat(h," ").concat(d[0])):a=r.call(this,"".concat(h,` +`).concat(p1,"...").concat(C0).concat(i,` +`)+"".concat(p1,"...").concat(C0)}return"".concat(b).concat(s?M:"",` +`).concat(n).concat(i).concat(o).concat(h)}var BZt=(function(e,t){kZt(i,e);var r=CZt(i);function i(n){var a;if(MZt(this,i),Bd(n)!=="object"||n===null)throw new PZt("options","Object",n);var o=n.message,s=n.operator,l=n.stackStartFn,u=n.actual,f=n.expected,c=Error.stackTraceLimit;if(Error.stackTraceLimit=0,o!=null)a=r.call(this,String(o));else if(process.stderr&&process.stderr.isTTY&&(process.stderr&&process.stderr.getColorDepth&&process.stderr.getColorDepth()!==1?(p1="\x1B[34m",NS="\x1B[32m",C0="\x1B[39m",VS="\x1B[31m"):(p1="",NS="",C0="",VS="")),Bd(u)==="object"&&u!==null&&Bd(f)==="object"&&f!==null&&"stack"in u&&u instanceof Error&&"stack"in f&&f instanceof Error&&(u=N9e(u),f=N9e(f)),s==="deepStrictEqual"||s==="strictEqual")a=r.call(this,RZt(u,f,s));else if(s==="notDeepStrictEqual"||s==="notStrictEqual"){var h=m_[s],d=US(u).split(` +`);if(s==="notStrictEqual"&&Bd(u)==="object"&&u!==null&&(h=m_.notStrictEqualObject),d.length>30)for(d[26]="".concat(p1,"...").concat(C0);d.length>27;)d.pop();d.length===1?a=r.call(this,"".concat(h," ").concat(d[0])):a=r.call(this,"".concat(h,` `).concat(d.join(` `),` -`))}else{var p=NS(u),v="",y=m_[s];s==="notDeepEqual"||s==="notEqual"?(p="".concat(m_[s],` +`))}else{var p=US(u),v="",y=m_[s];s==="notDeepEqual"||s==="notEqual"?(p="".concat(m_[s],` -`).concat(p),p.length>1024&&(p="".concat(p.slice(0,1021),"..."))):(v="".concat(NS(f)),p.length>512&&(p="".concat(p.slice(0,509),"...")),v.length>512&&(v="".concat(v.slice(0,509),"...")),s==="deepEqual"||s==="equal"?p="".concat(y,` +`).concat(p),p.length>1024&&(p="".concat(p.slice(0,1021),"..."))):(v="".concat(US(f)),p.length>512&&(p="".concat(p.slice(0,509),"...")),v.length>512&&(v="".concat(v.slice(0,509),"...")),s==="deepEqual"||s==="equal"?p="".concat(y,` `).concat(p,` should equal -`):v=" ".concat(s," ").concat(v)),a=r.call(this,"".concat(p).concat(v))}return Error.stackTraceLimit=c,a.generatedMessage=!o,Object.defineProperty(aK(a),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),a.code="ERR_ASSERTION",a.actual=u,a.expected=f,a.operator=s,Error.captureStackTrace&&Error.captureStackTrace(aK(a),l),a.stack,a.name="AssertionError",z8e(a)}return pZt(i,[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:t,value:function(a,o){return sK(this,C8e(C8e({},o),{},{customInspect:!1,depth:0}))}}]),i})(oK(Error),sK.custom);R8e.exports=MZt});var lK=K((SYr,O8e)=>{"use strict";var q8e=Object.prototype.toString;O8e.exports=function(t){var r=q8e.call(t),i=r==="[object Arguments]";return i||(i=r!=="[object Array]"&&t!==null&&typeof t=="object"&&typeof t.length=="number"&&t.length>=0&&q8e.call(t.callee)==="[object Function]"),i}});var Y8e=K((EYr,$8e)=>{"use strict";var W8e;Object.keys||(GS=Object.prototype.hasOwnProperty,uK=Object.prototype.toString,N8e=lK(),fK=Object.prototype.propertyIsEnumerable,V8e=!fK.call({toString:null},"toString"),U8e=fK.call(function(){},"prototype"),HS=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],Vz=function(e){var t=e.constructor;return t&&t.prototype===e},G8e={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},H8e=(function(){if(typeof window=="undefined")return!1;for(var e in window)try{if(!G8e["$"+e]&&GS.call(window,e)&&window[e]!==null&&typeof window[e]=="object")try{Vz(window[e])}catch(t){return!0}}catch(t){return!0}return!1})(),j8e=function(e){if(typeof window=="undefined"||!H8e)return Vz(e);try{return Vz(e)}catch(t){return!1}},W8e=function(t){var r=t!==null&&typeof t=="object",i=uK.call(t)==="[object Function]",n=N8e(t),a=r&&uK.call(t)==="[object String]",o=[];if(!r&&!i&&!n)throw new TypeError("Object.keys called on a non-object");var s=U8e&&i;if(a&&t.length>0&&!GS.call(t,0))for(var l=0;l0)for(var u=0;u{"use strict";var SZt=Array.prototype.slice,EZt=lK(),X8e=Object.keys,Uz=X8e?function(t){return X8e(t)}:Y8e(),Z8e=Object.keys;Uz.shim=function(){if(Object.keys){var t=(function(){var r=Object.keys(arguments);return r&&r.length===arguments.length})(1,2);t||(Object.keys=function(i){return EZt(i)?Z8e(SZt.call(i)):Z8e(i)})}else Object.keys=Uz;return Object.keys||Uz};K8e.exports=Uz});var r9e=K((CYr,t9e)=>{"use strict";var kZt=cK(),Q8e=q9()(),e9e=a_(),Gz=O9(),CZt=e9e("Array.prototype.push"),J8e=e9e("Object.prototype.propertyIsEnumerable"),DZt=Q8e?Gz.getOwnPropertySymbols:null;t9e.exports=function(t,r){if(t==null)throw new TypeError("target must be an object");var i=Gz(t);if(arguments.length===1)return i;for(var n=1;n{"use strict";var hK=r9e(),FZt=function(){if(!Object.assign)return!1;for(var e="abcdefghijklmnopqrst",t=e.split(""),r={},i=0;i{"use strict";var a9e=function(e){return e!==e};o9e.exports=function(t,r){return t===0&&r===0?1/t===1/r:!!(t===r||a9e(t)&&a9e(r))}});var Hz=K((LYr,s9e)=>{"use strict";var PZt=dK();s9e.exports=function(){return typeof Object.is=="function"?Object.is:PZt}});var c9e=K((PYr,f9e)=>{"use strict";var l9e=Y9(),u9e=AS(),zZt=u9e(l9e("String.prototype.indexOf"));f9e.exports=function(t,r){var i=l9e(t,!!r);return typeof i=="function"&&zZt(t,".prototype.")>-1?u9e(i):i}});var jS=K((zYr,v9e)=>{"use strict";var IZt=cK(),RZt=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",BZt=Object.prototype.toString,qZt=Array.prototype.concat,h9e=oZ(),OZt=function(e){return typeof e=="function"&&BZt.call(e)==="[object Function]"},d9e=lZ()(),NZt=function(e,t,r,i){if(t in e){if(i===!0){if(e[t]===r)return}else if(!OZt(i)||!i())return}d9e?h9e(e,t,r,!0):h9e(e,t,r)},p9e=function(e,t){var r=arguments.length>2?arguments[2]:{},i=IZt(t);RZt&&(i=qZt.call(i,Object.getOwnPropertySymbols(t)));for(var n=0;n{"use strict";var VZt=Hz(),UZt=jS();m9e.exports=function(){var t=VZt();return UZt(Object,{is:t},{is:function(){return Object.is!==t}}),t}});var _9e=K((RYr,b9e)=>{"use strict";var GZt=jS(),HZt=AS(),jZt=dK(),g9e=Hz(),WZt=y9e(),x9e=HZt(g9e(),Object);GZt(x9e,{getPolyfill:g9e,implementation:jZt,shim:WZt});b9e.exports=x9e});var pK=K((BYr,w9e)=>{"use strict";w9e.exports=function(t){return t!==t}});var vK=K((qYr,A9e)=>{"use strict";var $Zt=pK();A9e.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:$Zt}});var M9e=K((OYr,T9e)=>{"use strict";var YZt=jS(),XZt=vK();T9e.exports=function(){var t=XZt();return YZt(Number,{isNaN:t},{isNaN:function(){return Number.isNaN!==t}}),t}});var C9e=K((NYr,k9e)=>{"use strict";var ZZt=AS(),KZt=jS(),JZt=pK(),S9e=vK(),QZt=M9e(),E9e=ZZt(S9e(),Number);KZt(E9e,{getPolyfill:S9e,implementation:JZt,shim:QZt});k9e.exports=E9e});var X9e=K((VYr,Y9e)=>{"use strict";function D9e(e,t){return iKt(e)||rKt(e,t)||tKt(e,t)||eKt()}function eKt(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function tKt(e,t){if(e){if(typeof e=="string")return F9e(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return F9e(e,t)}}function F9e(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,i=new Array(t);r10)return!0;for(var t=0;t57)return!0}return e.length===10&&e>=Math.pow(2,32)}function $z(e){return Object.keys(e).filter(hKt).concat(Xz(e).filter(Object.prototype.propertyIsEnumerable.bind(e)))}function H9e(e,t){if(e===t)return 0;for(var r=e.length,i=t.length,n=0,a=Math.min(r,i);n{"use strict";function c1(e){"@babel/helpers - typeof";return c1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},c1(e)}function Z9e(e,t){for(var r=0;r1?r-1:0),n=1;n1?r-1:0),n=1;n1?r-1:0),n=1;n1?r-1:0),n=1;n{"use strict";var W9e=Object.prototype.toString;$9e.exports=function(t){var r=W9e.call(t),i=r==="[object Arguments]";return i||(i=r!=="[object Array]"&&t!==null&&typeof t=="object"&&typeof t.length=="number"&&t.length>=0&&W9e.call(t.callee)==="[object Function]"),i}});var r8e=K((NYr,t8e)=>{"use strict";var e8e;Object.keys||(jS=Object.prototype.hasOwnProperty,yK=Object.prototype.toString,Y9e=mK(),gK=Object.prototype.propertyIsEnumerable,X9e=!gK.call({toString:null},"toString"),Z9e=gK.call(function(){},"prototype"),WS=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],$z=function(e){var t=e.constructor;return t&&t.prototype===e},K9e={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},J9e=(function(){if(typeof window=="undefined")return!1;for(var e in window)try{if(!K9e["$"+e]&&jS.call(window,e)&&window[e]!==null&&typeof window[e]=="object")try{$z(window[e])}catch(t){return!0}}catch(t){return!0}return!1})(),Q9e=function(e){if(typeof window=="undefined"||!J9e)return $z(e);try{return $z(e)}catch(t){return!1}},e8e=function(t){var r=t!==null&&typeof t=="object",i=yK.call(t)==="[object Function]",n=Y9e(t),a=r&&yK.call(t)==="[object String]",o=[];if(!r&&!i&&!n)throw new TypeError("Object.keys called on a non-object");var s=Z9e&&i;if(a&&t.length>0&&!jS.call(t,0))for(var l=0;l0)for(var u=0;u{"use strict";var qZt=Array.prototype.slice,OZt=mK(),i8e=Object.keys,Yz=i8e?function(t){return i8e(t)}:r8e(),n8e=Object.keys;Yz.shim=function(){if(Object.keys){var t=(function(){var r=Object.keys(arguments);return r&&r.length===arguments.length})(1,2);t||(Object.keys=function(i){return OZt(i)?n8e(qZt.call(i)):n8e(i)})}else Object.keys=Yz;return Object.keys||Yz};a8e.exports=Yz});var f8e=K((UYr,u8e)=>{"use strict";var NZt=xK(),s8e=H8()(),l8e=a_(),Xz=j8(),VZt=l8e("Array.prototype.push"),o8e=l8e("Object.prototype.propertyIsEnumerable"),UZt=s8e?Xz.getOwnPropertySymbols:null;u8e.exports=function(t,r){if(t==null)throw new TypeError("target must be an object");var i=Xz(t);if(arguments.length===1)return i;for(var n=1;n{"use strict";var bK=f8e(),GZt=function(){if(!Object.assign)return!1;for(var e="abcdefghijklmnopqrst",t=e.split(""),r={},i=0;i{"use strict";var d8e=function(e){return e!==e};p8e.exports=function(t,r){return t===0&&r===0?1/t===1/r:!!(t===r||d8e(t)&&d8e(r))}});var Zz=K((jYr,v8e)=>{"use strict";var jZt=_K();v8e.exports=function(){return typeof Object.is=="function"?Object.is:jZt}});var x8e=K((WYr,g8e)=>{"use strict";var m8e=ez(),y8e=MS(),WZt=y8e(m8e("String.prototype.indexOf"));g8e.exports=function(t,r){var i=m8e(t,!!r);return typeof i=="function"&&WZt(t,".prototype.")>-1?y8e(i):i}});var $S=K(($Yr,A8e)=>{"use strict";var $Zt=xK(),YZt=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",XZt=Object.prototype.toString,ZZt=Array.prototype.concat,b8e=pZ(),KZt=function(e){return typeof e=="function"&&XZt.call(e)==="[object Function]"},_8e=mZ()(),JZt=function(e,t,r,i){if(t in e){if(i===!0){if(e[t]===r)return}else if(!KZt(i)||!i())return}_8e?b8e(e,t,r,!0):b8e(e,t,r)},w8e=function(e,t){var r=arguments.length>2?arguments[2]:{},i=$Zt(t);YZt&&(i=ZZt.call(i,Object.getOwnPropertySymbols(t)));for(var n=0;n{"use strict";var QZt=Zz(),eKt=$S();T8e.exports=function(){var t=QZt();return eKt(Object,{is:t},{is:function(){return Object.is!==t}}),t}});var C8e=K((XYr,k8e)=>{"use strict";var tKt=$S(),rKt=MS(),iKt=_K(),S8e=Zz(),nKt=M8e(),E8e=rKt(S8e(),Object);tKt(E8e,{getPolyfill:S8e,implementation:iKt,shim:nKt});k8e.exports=E8e});var wK=K((ZYr,D8e)=>{"use strict";D8e.exports=function(t){return t!==t}});var AK=K((KYr,F8e)=>{"use strict";var aKt=wK();F8e.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:aKt}});var P8e=K((JYr,L8e)=>{"use strict";var oKt=$S(),sKt=AK();L8e.exports=function(){var t=sKt();return oKt(Number,{isNaN:t},{isNaN:function(){return Number.isNaN!==t}}),t}});var B8e=K((QYr,R8e)=>{"use strict";var lKt=MS(),uKt=$S(),fKt=wK(),z8e=AK(),cKt=P8e(),I8e=lKt(z8e(),Number);uKt(I8e,{getPolyfill:z8e,implementation:fKt,shim:cKt});R8e.exports=I8e});var ize=K((eXr,rze)=>{"use strict";function q8e(e,t){return vKt(e)||pKt(e,t)||dKt(e,t)||hKt()}function hKt(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function dKt(e,t){if(e){if(typeof e=="string")return O8e(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return O8e(e,t)}}function O8e(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,i=new Array(t);r10)return!0;for(var t=0;t57)return!0}return e.length===10&&e>=Math.pow(2,32)}function Qz(e){return Object.keys(e).filter(TKt).concat(tI(e).filter(Object.prototype.propertyIsEnumerable.bind(e)))}function J8e(e,t){if(e===t)return 0;for(var r=e.length,i=t.length,n=0,a=Math.min(r,i);n{"use strict";function v1(e){"@babel/helpers - typeof";return v1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},v1(e)}function nze(e,t){for(var r=0;r1?r-1:0),n=1;n1?r-1:0),n=1;n1?r-1:0),n=1;n1?r-1:0),n=1;n{var ZS=1e3,KS=ZS*60,JS=KS*60,QS=JS*24,qKt=QS*365.25;pze.exports=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0)return OKt(e);if(r==="number"&&isNaN(e)===!1)return t.long?VKt(e):NKt(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function OKt(e){if(e=String(e),!(e.length>100)){var t=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(t){var r=parseFloat(t[1]),i=(t[2]||"ms").toLowerCase();switch(i){case"years":case"year":case"yrs":case"yr":case"y":return r*qKt;case"days":case"day":case"d":return r*QS;case"hours":case"hour":case"hrs":case"hr":case"h":return r*JS;case"minutes":case"minute":case"mins":case"min":case"m":return r*KS;case"seconds":case"second":case"secs":case"sec":case"s":return r*ZS;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function NKt(e){return e>=QS?Math.round(e/QS)+"d":e>=JS?Math.round(e/JS)+"h":e>=KS?Math.round(e/KS)+"m":e>=ZS?Math.round(e/ZS)+"s":e+"ms"}function VKt(e){return iI(e,QS,"day")||iI(e,JS,"hour")||iI(e,KS,"minute")||iI(e,ZS,"second")||e+" ms"}function iI(e,t,r){if(!(e{_f=mze.exports=wK.debug=wK.default=wK;_f.coerce=WKt;_f.disable=HKt;_f.enable=GKt;_f.enabled=jKt;_f.humanize=vze();_f.names=[];_f.skips=[];_f.formatters={};var _K;function UKt(e){var t=0,r;for(r in e)t=(t<<5)-t+e.charCodeAt(r),t|=0;return _f.colors[Math.abs(t)%_f.colors.length]}function wK(e){function t(){if(t.enabled){var r=t,i=+new Date,n=i-(_K||i);r.diff=n,r.prev=_K,r.curr=i,_K=i;for(var a=new Array(arguments.length),o=0;o{hd=xze.exports=yze();hd.log=XKt;hd.formatArgs=YKt;hd.save=ZKt;hd.load=gze;hd.useColors=$Kt;hd.storage=typeof chrome!="undefined"&&typeof chrome.storage!="undefined"?chrome.storage.local:KKt();hd.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"];function $Kt(){return typeof window!="undefined"&&window.process&&window.process.type==="renderer"?!0:typeof document!="undefined"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window!="undefined"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}hd.formatters.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}};function YKt(e){var t=this.useColors;if(e[0]=(t?"%c":"")+this.namespace+(t?" %c":" ")+e[0]+(t?"%c ":" ")+"+"+hd.humanize(this.diff),!!t){var r="color: "+this.color;e.splice(1,0,r,"color: inherit");var i=0,n=0;e[0].replace(/%[a-zA-Z%]/g,function(a){a!=="%%"&&(i++,a==="%c"&&(n=i))}),e.splice(n,0,r)}}function XKt(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function ZKt(e){try{e==null?hd.storage.removeItem("debug"):hd.storage.debug=e}catch(t){}}function gze(){var e;try{e=hd.storage.debug}catch(t){}return!e&&typeof process!="undefined"&&"env"in process&&(e=process.env.DEBUG),e}hd.enable(gze());function KKt(){try{return window.localStorage}catch(e){}}});var kze=K((HYr,Eze)=>{var p4=Oz(),T2=bze()("stream-parser");Eze.exports=QKt;var wze=-1,nI=0,JKt=1,Aze=2;function QKt(e){var t=e&&typeof e._transform=="function",r=e&&typeof e._write=="function";if(!t&&!r)throw new Error("must pass a Writable or Transform stream in");T2("extending Parser into stream"),e._bytes=eJt,e._skipBytes=tJt,t&&(e._passthrough=rJt),t?e._transform=nJt:e._write=iJt}function eE(e){T2("initializing parser stream"),e._parserBytesLeft=0,e._parserBuffers=[],e._parserBuffered=0,e._parserState=wze,e._parserCallback=null,typeof e.push=="function"&&(e._parserOutput=e.push.bind(e)),e._parserInit=!0}function eJt(e,t){p4(!this._parserCallback,'there is already a "callback" set!'),p4(isFinite(e)&&e>0,'can only buffer a finite number of bytes > 0, got "'+e+'"'),this._parserInit||eE(this),T2("buffering %o bytes",e),this._parserBytesLeft=e,this._parserCallback=t,this._parserState=nI}function tJt(e,t){p4(!this._parserCallback,'there is already a "callback" set!'),p4(e>0,'can only skip > 0 bytes, got "'+e+'"'),this._parserInit||eE(this),T2("skipping %o bytes",e),this._parserBytesLeft=e,this._parserCallback=t,this._parserState=JKt}function rJt(e,t){p4(!this._parserCallback,'There is already a "callback" set!'),p4(e>0,'can only pass through > 0 bytes, got "'+e+'"'),this._parserInit||eE(this),T2("passing through %o bytes",e),this._parserBytesLeft=e,this._parserCallback=t,this._parserState=Aze}function iJt(e,t,r){this._parserInit||eE(this),T2("write(%o bytes)",e.length),typeof t=="function"&&(r=t),Mze(this,e,null,r)}function nJt(e,t,r){this._parserInit||eE(this),T2("transform(%o bytes)",e.length),typeof t!="function"&&(t=this._parserOutput),Mze(this,e,t,r)}function Tze(e,t,r,i){return e._parserBytesLeft<=0?i(new Error("got data but not currently parsing anything")):t.length<=e._parserBytesLeft?function(){return _ze(e,t,r,i)}:function(){var n=t.slice(0,e._parserBytesLeft);return _ze(e,n,r,function(a){if(a)return i(a);if(t.length>n.length)return function(){return Tze(e,t.slice(n.length),r,i)}})}}function _ze(e,t,r,i){if(e._parserBytesLeft-=t.length,T2("%o bytes left for stream piece",e._parserBytesLeft),e._parserState===nI?(e._parserBuffers.push(t),e._parserBuffered+=t.length):e._parserState===Aze&&r(t),e._parserBytesLeft===0){var n=e._parserCallback;if(n&&e._parserState===nI&&e._parserBuffers.length>1&&(t=Buffer.concat(e._parserBuffers,e._parserBuffered)),e._parserState!==nI&&(t=null),e._parserCallback=null,e._parserBuffered=0,e._parserState=wze,e._parserBuffers.splice(0),n){var a=[];t&&a.push(t),r&&a.push(r);var o=n.length>a.length;o&&a.push(Sze(i));var s=n.apply(e,a);if(!o||i===s)return i}}else return i}var Mze=Sze(Tze);function Sze(e){return function(){for(var t=e.apply(this,arguments);typeof t=="function";)t=t();return t}}});var Cze=K(dp=>{"use strict";dp.readUInt16LE=function(e,t){return e[t]|e[t+1]<<8};dp.readUInt16BE=function(e,t){return e[t]<<8|e[t+1]};dp.readInt16LE=function(e,t){return dp.readUInt16LE(e,t)<<16>>16};dp.readInt16BE=function(e,t){return dp.readUInt16BE(e,t)<<16>>16};dp.readUInt32LE=function(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16)+e[t+3]*16777216};dp.readUInt32BE=function(e,t){return e[t]*16777216+(e[t+1]<<16|e[t+2]<<8|e[t+3])};dp.readInt32LE=function(e,t){return dp.readUInt32LE(e,t)|0};dp.readInt32BE=function(e,t){return dp.readUInt32BE(e,t)|0}});var Vu=K(pp=>{"use strict";var Dze=g8e().Transform,aJt=kze(),M2=Cze();function tE(){Dze.call(this,{readableObjectMode:!0})}tE.prototype=Object.create(Dze.prototype);tE.prototype.constructor=tE;aJt(tE.prototype);pp.ParserStream=tE;pp.sliceEq=function(e,t,r){for(var i=t,n=0;n{"use strict";var v4=Vu().readUInt16BE,TK=Vu().readUInt32BE;function rE(e,t){if(e.length<4+t)return null;var r=TK(e,t);return e.length>4&15,i=e[4]&15,n=e[5]>>4&15,a=v4(e,6),o=8,s=0;sa.width||n.width===a.width&&n.height>a.height?n:a}),r=e.reduce(function(n,a){return n.height>a.height||n.height===a.height&&n.width>a.width?n:a}),i;return t.width>r.height||t.width===r.height&&t.height>r.width?i=t:i=r,i}oI.exports.readSizeFromMeta=function(e){var t={sizes:[],transforms:[],item_inf:{},item_loc:{}};if(fJt(e,t),!!t.sizes.length){var r=cJt(t.sizes),i=1;t.transforms.forEach(function(a){var o={1:6,2:5,3:8,4:7,5:4,6:3,7:2,8:1},s={1:4,2:3,3:2,4:1,5:6,6:5,7:8,8:7};if(a.type==="imir"&&(a.value===0?i=s[i]:(i=s[i],i=o[i],i=o[i])),a.type==="irot")for(var l=0;l{"use strict";function sI(e,t){var r=new Error(e);return r.code=t,r}function hJt(e){try{return decodeURIComponent(escape(e))}catch(t){return e}}function Sy(e,t,r){this.input=e.subarray(t,r),this.start=t;var i=String.fromCharCode.apply(null,this.input.subarray(0,4));if(i!=="II*\0"&&i!=="MM\0*")throw sI("invalid TIFF signature","EBADDATA");this.big_endian=i[0]==="M"}Sy.prototype.each=function(e){this.aborted=!1;var t=this.read_uint32(4);for(this.ifds_to_read=[{id:0,offset:t}];this.ifds_to_read.length>0&&!this.aborted;){var r=this.ifds_to_read.shift();r.offset&&this.scan_ifd(r.id,r.offset,e)}};Sy.prototype.read_uint16=function(e){var t=this.input;if(e+2>t.length)throw sI("unexpected EOF","EBADDATA");return this.big_endian?t[e]*256+t[e+1]:t[e]+t[e+1]*256};Sy.prototype.read_uint32=function(e){var t=this.input;if(e+4>t.length)throw sI("unexpected EOF","EBADDATA");return this.big_endian?t[e]*16777216+t[e+1]*65536+t[e+2]*256+t[e+3]:t[e]+t[e+1]*256+t[e+2]*65536+t[e+3]*16777216};Sy.prototype.is_subifd_link=function(e,t){return e===0&&t===34665||e===0&&t===34853||e===34665&&t===40965};Sy.prototype.exif_format_length=function(e){switch(e){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}};Sy.prototype.exif_format_read=function(e,t){var r;switch(e){case 1:case 2:return r=this.input[t],r;case 6:return r=this.input[t],r|(r&128)*33554430;case 3:return r=this.read_uint16(t),r;case 8:return r=this.read_uint16(t),r|(r&32768)*131070;case 4:return r=this.read_uint32(t),r;case 9:return r=this.read_uint32(t),r|0;case 5:case 10:case 11:case 12:return null;case 7:return null;default:return null}};Sy.prototype.scan_ifd=function(e,t,r){var i=this.read_uint16(t);t+=2;for(var n=0;nthis.input.length)throw sI("unexpected EOF","EBADDATA");for(var h=[],d=f,p=0;p0&&(this.ifds_to_read.push({id:a,offset:h[0]}),c=!0);var y={is_big_endian:this.big_endian,ifd:e,tag:a,format:o,count:s,entry_offset:t+this.start,data_length:u,data_offset:f+this.start,value:h,is_subifd_link:c};if(r(y)===!1){this.aborted=!0;return}t+=12}e===0&&this.ifds_to_read.push({id:1,offset:this.read_uint32(t)})};MK.exports.ExifParser=Sy;MK.exports.get_orientation=function(e){var t=0;try{return new Sy(e,0,e.length).each(function(r){if(r.ifd===0&&r.tag===274&&Array.isArray(r.value))return t=r.value[0],!1}),t}catch(r){return-1}}});var Pze=K((XYr,Lze)=>{"use strict";var dJt=Vu().str2arr,pJt=Vu().sliceEq,vJt=Vu().readUInt32BE,uI=Fze(),mJt=lI(),yJt=dJt("ftyp");Lze.exports=function(e){if(pJt(e,4,yJt)){var t=uI.unbox(e,0);if(t){var r=uI.getMimeType(t.data);if(r){for(var i,n=t.end;;){var a=uI.unbox(e,n);if(!a)break;if(n=a.end,a.boxtype==="mdat")return;if(a.boxtype==="meta"){i=a.data;break}}if(i){var o=uI.readSizeFromMeta(i);if(o){var s={width:o.width,height:o.height,type:r.type,mime:r.mime,wUnits:"px",hUnits:"px"};if(o.variants.length>1&&(s.variants=o.variants),o.orientation&&(s.orientation=o.orientation),o.exif_location&&o.exif_location.offset+o.exif_location.length<=e.length){var l=vJt(e,o.exif_location.offset),u=e.slice(o.exif_location.offset+l+4,o.exif_location.offset+o.exif_location.length),f=mJt.get_orientation(u);f>0&&(s.orientation=f)}return s}}}}}}});var Bze=K((ZYr,Rze)=>{"use strict";var gJt=Vu().str2arr,xJt=Vu().sliceEq,zze=Vu().readInt16LE,Ize=Vu().readInt32LE,bJt=Vu().readUInt32LE,_Jt=gJt("BM");Rze.exports=function(e){if(!(e.length<26)&&xJt(e,0,_Jt)){var t,r,i=bJt(e,14);if(i===12)r=zze(e,18),t=zze(e,20);else if(i>12)r=Ize(e,18),t=Ize(e,22);else return;return{width:r,height:Math.abs(t),type:"bmp",mime:"image/bmp",wUnits:"px",hUnits:"px"}}}});var Uze=K((KYr,Vze)=>{"use strict";var Nze=Vu().str2arr,qze=Vu().sliceEq,Oze=Vu().readUInt16LE,wJt=Nze("GIF87a"),AJt=Nze("GIF89a");Vze.exports=function(e){if(!(e.length<10)&&!(!qze(e,0,wJt)&&!qze(e,0,AJt)))return{width:Oze(e,6),height:Oze(e,8),type:"gif",mime:"image/gif",wUnits:"px",hUnits:"px"}}});var Hze=K((JYr,Gze)=>{"use strict";var SK=Vu().readUInt16LE,TJt=0,MJt=1,EK=16;Gze.exports=function(e){var t=SK(e,0),r=SK(e,2),i=SK(e,4);if(!(t!==TJt||r!==MJt||!i)&&!(e.length<6+i*EK)){for(var n=[],a={width:0,height:0},o=0;oa.width||l>a.height)&&(a=u)}return{width:a.width,height:a.height,variants:n,type:"ico",mime:"image/x-icon",wUnits:"px",hUnits:"px"}}}});var Wze=K((QYr,jze)=>{"use strict";var kK=Vu().readUInt16BE,SJt=Vu().str2arr,EJt=Vu().sliceEq,kJt=lI(),CJt=SJt("Exif\0\0");jze.exports=function(e){if(!(e.length<2)&&!(e[0]!==255||e[1]!==216||e[2]!==255))for(var t=2;;){for(;;){if(e.length-t<2)return;if(e[t++]===255)break}for(var r=e[t++],i;r===255;)r=e[t++];if(r>=208&&r<=217||r===1)i=0;else if(r>=192&&r<=254){if(e.length-t<2)return;i=kK(e,t)-2,t+=2}else return;if(r===217||r===218)return;var n;if(r===225&&i>=10&&EJt(e,t,CJt)&&(n=kJt.get_orientation(e.slice(t+6,t+i))),i>=5&&r>=192&&r<=207&&r!==196&&r!==200&&r!==204){if(e.length-t0&&(a.orientation=n),a}t+=i}}});var Kze=K((eXr,Zze)=>{"use strict";var Xze=Vu().str2arr,$ze=Vu().sliceEq,Yze=Vu().readUInt32BE,DJt=Xze(`\x89PNG\r +`).concat(nI(e),` +`));var s=new S2({actual:e,expected:t,message:r,operator:n,stackStartFn:i});throw s.generatedMessage=o,s}}tc.match=function e(t,r,i){xze(t,r,i,e,"match")};tc.doesNotMatch=function e(t,r,i){xze(t,r,i,e,"doesNotMatch")};function bze(){for(var e=arguments.length,t=new Array(e),r=0;r{var JS=1e3,QS=JS*60,eE=QS*60,tE=eE*24,ZKt=tE*365.25;wze.exports=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0)return KKt(e);if(r==="number"&&isNaN(e)===!1)return t.long?QKt(e):JKt(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function KKt(e){if(e=String(e),!(e.length>100)){var t=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(t){var r=parseFloat(t[1]),i=(t[2]||"ms").toLowerCase();switch(i){case"years":case"year":case"yrs":case"yr":case"y":return r*ZKt;case"days":case"day":case"d":return r*tE;case"hours":case"hour":case"hrs":case"hr":case"h":return r*eE;case"minutes":case"minute":case"mins":case"min":case"m":return r*QS;case"seconds":case"second":case"secs":case"sec":case"s":return r*JS;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function JKt(e){return e>=tE?Math.round(e/tE)+"d":e>=eE?Math.round(e/eE)+"h":e>=QS?Math.round(e/QS)+"m":e>=JS?Math.round(e/JS)+"s":e+"ms"}function QKt(e){return uI(e,tE,"day")||uI(e,eE,"hour")||uI(e,QS,"minute")||uI(e,JS,"second")||e+" ms"}function uI(e,t,r){if(!(e{_f=Tze.exports=DK.debug=DK.default=DK;_f.coerce=nJt;_f.disable=rJt;_f.enable=tJt;_f.enabled=iJt;_f.humanize=Aze();_f.names=[];_f.skips=[];_f.formatters={};var CK;function eJt(e){var t=0,r;for(r in e)t=(t<<5)-t+e.charCodeAt(r),t|=0;return _f.colors[Math.abs(t)%_f.colors.length]}function DK(e){function t(){if(t.enabled){var r=t,i=+new Date,n=i-(CK||i);r.diff=n,r.prev=CK,r.curr=i,CK=i;for(var a=new Array(arguments.length),o=0;o{vd=Eze.exports=Mze();vd.log=sJt;vd.formatArgs=oJt;vd.save=lJt;vd.load=Sze;vd.useColors=aJt;vd.storage=typeof chrome!="undefined"&&typeof chrome.storage!="undefined"?chrome.storage.local:uJt();vd.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"];function aJt(){return typeof window!="undefined"&&window.process&&window.process.type==="renderer"?!0:typeof document!="undefined"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window!="undefined"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}vd.formatters.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}};function oJt(e){var t=this.useColors;if(e[0]=(t?"%c":"")+this.namespace+(t?" %c":" ")+e[0]+(t?"%c ":" ")+"+"+vd.humanize(this.diff),!!t){var r="color: "+this.color;e.splice(1,0,r,"color: inherit");var i=0,n=0;e[0].replace(/%[a-zA-Z%]/g,function(a){a!=="%%"&&(i++,a==="%c"&&(n=i))}),e.splice(n,0,r)}}function sJt(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function lJt(e){try{e==null?vd.storage.removeItem("debug"):vd.storage.debug=e}catch(t){}}function Sze(){var e;try{e=vd.storage.debug}catch(t){}return!e&&typeof process!="undefined"&&"env"in process&&(e=process.env.DEBUG),e}vd.enable(Sze());function uJt(){try{return window.localStorage}catch(e){}}});var Rze=K((iXr,Ize)=>{var v4=jz(),E2=kze()("stream-parser");Ize.exports=cJt;var Dze=-1,fI=0,fJt=1,Fze=2;function cJt(e){var t=e&&typeof e._transform=="function",r=e&&typeof e._write=="function";if(!t&&!r)throw new Error("must pass a Writable or Transform stream in");E2("extending Parser into stream"),e._bytes=hJt,e._skipBytes=dJt,t&&(e._passthrough=pJt),t?e._transform=mJt:e._write=vJt}function rE(e){E2("initializing parser stream"),e._parserBytesLeft=0,e._parserBuffers=[],e._parserBuffered=0,e._parserState=Dze,e._parserCallback=null,typeof e.push=="function"&&(e._parserOutput=e.push.bind(e)),e._parserInit=!0}function hJt(e,t){v4(!this._parserCallback,'there is already a "callback" set!'),v4(isFinite(e)&&e>0,'can only buffer a finite number of bytes > 0, got "'+e+'"'),this._parserInit||rE(this),E2("buffering %o bytes",e),this._parserBytesLeft=e,this._parserCallback=t,this._parserState=fI}function dJt(e,t){v4(!this._parserCallback,'there is already a "callback" set!'),v4(e>0,'can only skip > 0 bytes, got "'+e+'"'),this._parserInit||rE(this),E2("skipping %o bytes",e),this._parserBytesLeft=e,this._parserCallback=t,this._parserState=fJt}function pJt(e,t){v4(!this._parserCallback,'There is already a "callback" set!'),v4(e>0,'can only pass through > 0 bytes, got "'+e+'"'),this._parserInit||rE(this),E2("passing through %o bytes",e),this._parserBytesLeft=e,this._parserCallback=t,this._parserState=Fze}function vJt(e,t,r){this._parserInit||rE(this),E2("write(%o bytes)",e.length),typeof t=="function"&&(r=t),Pze(this,e,null,r)}function mJt(e,t,r){this._parserInit||rE(this),E2("transform(%o bytes)",e.length),typeof t!="function"&&(t=this._parserOutput),Pze(this,e,t,r)}function Lze(e,t,r,i){return e._parserBytesLeft<=0?i(new Error("got data but not currently parsing anything")):t.length<=e._parserBytesLeft?function(){return Cze(e,t,r,i)}:function(){var n=t.slice(0,e._parserBytesLeft);return Cze(e,n,r,function(a){if(a)return i(a);if(t.length>n.length)return function(){return Lze(e,t.slice(n.length),r,i)}})}}function Cze(e,t,r,i){if(e._parserBytesLeft-=t.length,E2("%o bytes left for stream piece",e._parserBytesLeft),e._parserState===fI?(e._parserBuffers.push(t),e._parserBuffered+=t.length):e._parserState===Fze&&r(t),e._parserBytesLeft===0){var n=e._parserCallback;if(n&&e._parserState===fI&&e._parserBuffers.length>1&&(t=Buffer.concat(e._parserBuffers,e._parserBuffered)),e._parserState!==fI&&(t=null),e._parserCallback=null,e._parserBuffered=0,e._parserState=Dze,e._parserBuffers.splice(0),n){var a=[];t&&a.push(t),r&&a.push(r);var o=n.length>a.length;o&&a.push(zze(i));var s=n.apply(e,a);if(!o||i===s)return i}}else return i}var Pze=zze(Lze);function zze(e){return function(){for(var t=e.apply(this,arguments);typeof t=="function";)t=t();return t}}});var Bze=K(vp=>{"use strict";vp.readUInt16LE=function(e,t){return e[t]|e[t+1]<<8};vp.readUInt16BE=function(e,t){return e[t]<<8|e[t+1]};vp.readInt16LE=function(e,t){return vp.readUInt16LE(e,t)<<16>>16};vp.readInt16BE=function(e,t){return vp.readUInt16BE(e,t)<<16>>16};vp.readUInt32LE=function(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16)+e[t+3]*16777216};vp.readUInt32BE=function(e,t){return e[t]*16777216+(e[t+1]<<16|e[t+2]<<8|e[t+3])};vp.readInt32LE=function(e,t){return vp.readUInt32LE(e,t)|0};vp.readInt32BE=function(e,t){return vp.readUInt32BE(e,t)|0}});var Vu=K(mp=>{"use strict";var qze=S9e().Transform,yJt=Rze(),k2=Bze();function iE(){qze.call(this,{readableObjectMode:!0})}iE.prototype=Object.create(qze.prototype);iE.prototype.constructor=iE;yJt(iE.prototype);mp.ParserStream=iE;mp.sliceEq=function(e,t,r){for(var i=t,n=0;n{"use strict";var m4=Vu().readUInt16BE,LK=Vu().readUInt32BE;function nE(e,t){if(e.length<4+t)return null;var r=LK(e,t);return e.length>4&15,i=e[4]&15,n=e[5]>>4&15,a=m4(e,6),o=8,s=0;sa.width||n.width===a.width&&n.height>a.height?n:a}),r=e.reduce(function(n,a){return n.height>a.height||n.height===a.height&&n.width>a.width?n:a}),i;return t.width>r.height||t.width===r.height&&t.height>r.width?i=t:i=r,i}hI.exports.readSizeFromMeta=function(e){var t={sizes:[],transforms:[],item_inf:{},item_loc:{}};if(wJt(e,t),!!t.sizes.length){var r=AJt(t.sizes),i=1;t.transforms.forEach(function(a){var o={1:6,2:5,3:8,4:7,5:4,6:3,7:2,8:1},s={1:4,2:3,3:2,4:1,5:6,6:5,7:8,8:7};if(a.type==="imir"&&(a.value===0?i=s[i]:(i=s[i],i=o[i],i=o[i])),a.type==="irot")for(var l=0;l{"use strict";function dI(e,t){var r=new Error(e);return r.code=t,r}function TJt(e){try{return decodeURIComponent(escape(e))}catch(t){return e}}function Dy(e,t,r){this.input=e.subarray(t,r),this.start=t;var i=String.fromCharCode.apply(null,this.input.subarray(0,4));if(i!=="II*\0"&&i!=="MM\0*")throw dI("invalid TIFF signature","EBADDATA");this.big_endian=i[0]==="M"}Dy.prototype.each=function(e){this.aborted=!1;var t=this.read_uint32(4);for(this.ifds_to_read=[{id:0,offset:t}];this.ifds_to_read.length>0&&!this.aborted;){var r=this.ifds_to_read.shift();r.offset&&this.scan_ifd(r.id,r.offset,e)}};Dy.prototype.read_uint16=function(e){var t=this.input;if(e+2>t.length)throw dI("unexpected EOF","EBADDATA");return this.big_endian?t[e]*256+t[e+1]:t[e]+t[e+1]*256};Dy.prototype.read_uint32=function(e){var t=this.input;if(e+4>t.length)throw dI("unexpected EOF","EBADDATA");return this.big_endian?t[e]*16777216+t[e+1]*65536+t[e+2]*256+t[e+3]:t[e]+t[e+1]*256+t[e+2]*65536+t[e+3]*16777216};Dy.prototype.is_subifd_link=function(e,t){return e===0&&t===34665||e===0&&t===34853||e===34665&&t===40965};Dy.prototype.exif_format_length=function(e){switch(e){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}};Dy.prototype.exif_format_read=function(e,t){var r;switch(e){case 1:case 2:return r=this.input[t],r;case 6:return r=this.input[t],r|(r&128)*33554430;case 3:return r=this.read_uint16(t),r;case 8:return r=this.read_uint16(t),r|(r&32768)*131070;case 4:return r=this.read_uint32(t),r;case 9:return r=this.read_uint32(t),r|0;case 5:case 10:case 11:case 12:return null;case 7:return null;default:return null}};Dy.prototype.scan_ifd=function(e,t,r){var i=this.read_uint16(t);t+=2;for(var n=0;nthis.input.length)throw dI("unexpected EOF","EBADDATA");for(var h=[],d=f,p=0;p0&&(this.ifds_to_read.push({id:a,offset:h[0]}),c=!0);var y={is_big_endian:this.big_endian,ifd:e,tag:a,format:o,count:s,entry_offset:t+this.start,data_length:u,data_offset:f+this.start,value:h,is_subifd_link:c};if(r(y)===!1){this.aborted=!0;return}t+=12}e===0&&this.ifds_to_read.push({id:1,offset:this.read_uint32(t)})};PK.exports.ExifParser=Dy;PK.exports.get_orientation=function(e){var t=0;try{return new Dy(e,0,e.length).each(function(r){if(r.ifd===0&&r.tag===274&&Array.isArray(r.value))return t=r.value[0],!1}),t}catch(r){return-1}}});var Vze=K((lXr,Nze)=>{"use strict";var MJt=Vu().str2arr,SJt=Vu().sliceEq,EJt=Vu().readUInt32BE,vI=Oze(),kJt=pI(),CJt=MJt("ftyp");Nze.exports=function(e){if(SJt(e,4,CJt)){var t=vI.unbox(e,0);if(t){var r=vI.getMimeType(t.data);if(r){for(var i,n=t.end;;){var a=vI.unbox(e,n);if(!a)break;if(n=a.end,a.boxtype==="mdat")return;if(a.boxtype==="meta"){i=a.data;break}}if(i){var o=vI.readSizeFromMeta(i);if(o){var s={width:o.width,height:o.height,type:r.type,mime:r.mime,wUnits:"px",hUnits:"px"};if(o.variants.length>1&&(s.variants=o.variants),o.orientation&&(s.orientation=o.orientation),o.exif_location&&o.exif_location.offset+o.exif_location.length<=e.length){var l=EJt(e,o.exif_location.offset),u=e.slice(o.exif_location.offset+l+4,o.exif_location.offset+o.exif_location.length),f=kJt.get_orientation(u);f>0&&(s.orientation=f)}return s}}}}}}});var jze=K((uXr,Hze)=>{"use strict";var DJt=Vu().str2arr,FJt=Vu().sliceEq,Uze=Vu().readInt16LE,Gze=Vu().readInt32LE,LJt=Vu().readUInt32LE,PJt=DJt("BM");Hze.exports=function(e){if(!(e.length<26)&&FJt(e,0,PJt)){var t,r,i=LJt(e,14);if(i===12)r=Uze(e,18),t=Uze(e,20);else if(i>12)r=Gze(e,18),t=Gze(e,22);else return;return{width:r,height:Math.abs(t),type:"bmp",mime:"image/bmp",wUnits:"px",hUnits:"px"}}}});var Zze=K((fXr,Xze)=>{"use strict";var Yze=Vu().str2arr,Wze=Vu().sliceEq,$ze=Vu().readUInt16LE,zJt=Yze("GIF87a"),IJt=Yze("GIF89a");Xze.exports=function(e){if(!(e.length<10)&&!(!Wze(e,0,zJt)&&!Wze(e,0,IJt)))return{width:$ze(e,6),height:$ze(e,8),type:"gif",mime:"image/gif",wUnits:"px",hUnits:"px"}}});var Jze=K((cXr,Kze)=>{"use strict";var zK=Vu().readUInt16LE,RJt=0,BJt=1,IK=16;Kze.exports=function(e){var t=zK(e,0),r=zK(e,2),i=zK(e,4);if(!(t!==RJt||r!==BJt||!i)&&!(e.length<6+i*IK)){for(var n=[],a={width:0,height:0},o=0;oa.width||l>a.height)&&(a=u)}return{width:a.width,height:a.height,variants:n,type:"ico",mime:"image/x-icon",wUnits:"px",hUnits:"px"}}}});var eIe=K((hXr,Qze)=>{"use strict";var RK=Vu().readUInt16BE,qJt=Vu().str2arr,OJt=Vu().sliceEq,NJt=pI(),VJt=qJt("Exif\0\0");Qze.exports=function(e){if(!(e.length<2)&&!(e[0]!==255||e[1]!==216||e[2]!==255))for(var t=2;;){for(;;){if(e.length-t<2)return;if(e[t++]===255)break}for(var r=e[t++],i;r===255;)r=e[t++];if(r>=208&&r<=217||r===1)i=0;else if(r>=192&&r<=254){if(e.length-t<2)return;i=RK(e,t)-2,t+=2}else return;if(r===217||r===218)return;var n;if(r===225&&i>=10&&OJt(e,t,VJt)&&(n=NJt.get_orientation(e.slice(t+6,t+i))),i>=5&&r>=192&&r<=207&&r!==196&&r!==200&&r!==204){if(e.length-t0&&(a.orientation=n),a}t+=i}}});var aIe=K((dXr,nIe)=>{"use strict";var iIe=Vu().str2arr,tIe=Vu().sliceEq,rIe=Vu().readUInt32BE,UJt=iIe(`\x89PNG\r  -`),FJt=Xze("IHDR");Zze.exports=function(e){if(!(e.length<24)&&$ze(e,0,DJt)&&$ze(e,12,FJt))return{width:Yze(e,16),height:Yze(e,20),type:"png",mime:"image/png",wUnits:"px",hUnits:"px"}}});var eIe=K((tXr,Qze)=>{"use strict";var LJt=Vu().str2arr,PJt=Vu().sliceEq,Jze=Vu().readUInt32BE,zJt=LJt("8BPS\0");Qze.exports=function(e){if(!(e.length<22)&&PJt(e,0,zJt))return{width:Jze(e,18),height:Jze(e,14),type:"psd",mime:"image/vnd.adobe.photoshop",wUnits:"px",hUnits:"px"}}});var FK=K(DK=>{"use strict";DK.MAX_DATA_LENGTH=1024*10;var CK="[a-zA-Z_:][a-zA-Z0-9:._-]*",rIe="[^\"'=<>`\\x00-\\x20]+",IJt="'[^']*'",RJt='"[^"]*"',BJt="(?:"+rIe+"|"+IJt+"|"+RJt+")",qJt="(?:\\s+"+CK+"(?:\\s*=\\s*"+BJt+")?)",OJt="<[?][\\s\\S]*?[?]>",NJt="",VJt="",UJt="]*(?:\\[[\\s\\S]*?\\][^>]*)?>",GJt=new RegExp("^(?:\\s+|"+OJt+"|"+NJt+"|"+VJt+"|"+UJt+")*"),HJt=new RegExp("^<("+CK+")("+qJt+"*)\\s*/?>"),tIe=new RegExp("\\s+("+CK+")(?:\\s*=\\s*(?:("+rIe+`)|'([^']*)'|"([^"]*)"))?`,"g"),jJt=/in$|mm$|cm$|pt$|pc$|px$|em$|ex$/;function m4(e){return typeof e=="number"&&isFinite(e)&&e>0}function xm(e){var t=e.slice(-2),r=t.match(jJt);return r===null?"px":r[0]}DK.parse=function(e){var t=e.match(GJt)[0],r=HJt.exec(t.length?e.slice(t.length):e);if(r){var i=r[1];if(!(i!=="svg"&&i.slice(-4)!==":svg")){var n={},a;for(tIe.lastIndex=0;(a=tIe.exec(r[2]))!==null;)n[a[1]]=a[2]!==void 0?a[2]:a[3]!==void 0?a[3]:a[4];var o=n.width,s=n.height,l=n.viewBox||n.viewbox;o&&o.indexOf("%")!==-1&&(o=void 0),s&&s.indexOf("%")!==-1&&(s=void 0);var u=parseFloat(o),f=parseFloat(s);if(o&&s)return!m4(u)||!m4(f)?void 0:{width:u,height:f,type:"svg",mime:"image/svg+xml",wUnits:xm(o),hUnits:xm(s)};var c=(l||"").trim().split(/[\s,]+/),h=parseFloat(c[2]),d=parseFloat(c[3]);if(!(!m4(h)||!m4(d))&&xm(c[2])===xm(c[3])){var p=h/d;return o?m4(u)?{width:u,height:u/p,type:"svg",mime:"image/svg+xml",wUnits:xm(o),hUnits:xm(o)}:void 0:s?m4(f)?{width:f*p,height:f,type:"svg",mime:"image/svg+xml",wUnits:xm(s),hUnits:xm(s)}:void 0:{width:h,height:d,type:"svg",mime:"image/svg+xml",wUnits:xm(c[2]),hUnits:xm(c[3])}}}}}});var nIe=K((iXr,iIe)=>{"use strict";var WJt=FK().parse,$Jt=FK().MAX_DATA_LENGTH;iIe.exports=function(e){var t=0;e[0]===239&&e[1]===187&&e[2]===191&&(t=3);for(var r="",i=Math.min(e.length,t+$Jt),n=t;n{"use strict";var sIe=Vu().str2arr,aIe=Vu().sliceEq,YJt=Vu().readUInt16LE,XJt=Vu().readUInt16BE,ZJt=Vu().readUInt32LE,KJt=Vu().readUInt32BE,JJt=sIe("II*\0"),QJt=sIe("MM\0*");function fI(e,t,r){return r?XJt(e,t):YJt(e,t)}function LK(e,t,r){return r?KJt(e,t):ZJt(e,t)}function oIe(e,t,r){var i=fI(e,t+2,r),n=LK(e,t+4,r);return n!==1||i!==3&&i!==4?null:i===3?fI(e,t+8,r):LK(e,t+8,r)}lIe.exports=function(e){if(!(e.length<8)&&!(!aIe(e,0,JJt)&&!aIe(e,0,QJt))){var t=e[0]===77,r=LK(e,4,t)-8;if(!(r<0)){var i=r+8;if(!(e.length-i<2)){var n=fI(e,i+0,t)*12;if(!(n<=0)&&(i+=2,!(e.length-i{"use strict";var hIe=Vu().str2arr,fIe=Vu().sliceEq,cIe=Vu().readUInt16LE,PK=Vu().readUInt32LE,eQt=lI(),tQt=hIe("RIFF"),rQt=hIe("WEBP");function iQt(e,t){if(!(e[t+3]!==157||e[t+4]!==1||e[t+5]!==42))return{width:cIe(e,t+6)&16383,height:cIe(e,t+8)&16383,type:"webp",mime:"image/webp",wUnits:"px",hUnits:"px"}}function nQt(e,t){if(e[t]===47){var r=PK(e,t+1);return{width:(r&16383)+1,height:(r>>14&16383)+1,type:"webp",mime:"image/webp",wUnits:"px",hUnits:"px"}}}function aQt(e,t){return{width:(e[t+6]<<16|e[t+5]<<8|e[t+4])+1,height:(e[t+9]<<16|e[t+8]<<8|e[t+7])+1,type:"webp",mime:"image/webp",wUnits:"px",hUnits:"px"}}dIe.exports=function(e){if(!(e.length<16)&&!(!fIe(e,0,tQt)||!fIe(e,8,rQt))){var t=12,r=null,i=0,n=PK(e,4)+8;if(!(n>e.length)){for(;t+8=10?r=r||iQt(e,t+8):a==="VP8L"&&o>=5?r=r||nQt(e,t+8):a==="VP8X"&&o>=10?r=r||aQt(e,t+8):a==="EXIF"&&(i=eQt.get_orientation(e.slice(t+8,t+8+o)),t=1/0),t+=8+o}if(r)return i>0&&(r.orientation=i),r}}}});var mIe=K((oXr,vIe)=>{"use strict";vIe.exports={avif:Pze(),bmp:Bze(),gif:Uze(),ico:Hze(),jpeg:Wze(),png:Kze(),psd:eIe(),svg:nIe(),tiff:uIe(),webp:pIe()}});var yIe=K((sXr,IK)=>{"use strict";var zK=mIe();function oQt(e){for(var t=Object.keys(zK),r=0;r0&&i.height>0?i:null}return null}IK.exports=function(t){return oQt(t)};IK.exports.parsers=zK});var xIe=K(gIe=>{"use strict";var sQt=yIe(),lQt=hy().IMAGE_URL_PREFIX,uQt=r_().Buffer;gIe.getImageSize=function(e){var t=e.replace(lQt,""),r=new uQt(t,"base64");return sQt(r)}});var wIe=K((uXr,_Ie)=>{"use strict";var bIe=Mt(),fQt=(jA(),ar(mS)),cQt=Gs(),cI=Cs(),hQt=Mt().maxRowLength,dQt=xIe().getImageSize;_Ie.exports=function(t,r){var i,n;if(r._hasZ)i=r.z.length,n=hQt(r.z);else if(r._hasSource){var a=dQt(r.source);i=a.height,n=a.width}var o=cI.getFromId(t,r.xaxis||"x"),s=cI.getFromId(t,r.yaxis||"y"),l=o.d2c(r.x0)-r.dx/2,u=s.d2c(r.y0)-r.dy/2,f,c=[l,l+n*r.dx],h=[u,u+i*r.dy];if(o&&o.type==="log")for(f=0;f{"use strict";var yQt=No(),y_=Mt(),AIe=y_.strTranslate,gQt=(zp(),ar(Pp)),xQt=(jA(),ar(mS)),bQt=gY(),_Qt=(i9(),ar(r9)).STYLE;TIe.exports=function(t,r,i,n){var a=r.xaxis,o=r.yaxis,s=!t._context._exportedPlot&&bQt();y_.makeTraceGroups(n,i,"im").each(function(l){var u=yQt.select(this),f=l[0],c=f.trace,h=(c.zsmooth==="fast"||c.zsmooth===!1&&s)&&!c._hasZ&&c._hasSource&&a.type==="linear"&&o.type==="linear";c._realImage=h;var d=f.z,p=f.x0,v=f.y0,y=f.w,m=f.h,w=c.dx,_=c.dy,b,M,x,A,T,g;for(g=0;b===void 0&&g0;)M=a.c2p(p+g*w),g--;for(g=0;A===void 0&&g0;)T=o.c2p(v+g*_),g--;if(Mz[0];if(B||O){var W=b+S/2,X=A+C/2;I+="transform:"+AIe(W+"px",X+"px")+"scale("+(B?-1:1)+","+(O?-1:1)+")"+AIe(-W+"px",-X+"px")+";"}}P.attr("style",I);var Z=new Promise(function(j){if(c._hasZ)j();else if(c._hasSource)if(c._canvas&&c._canvas.el.width===y&&c._canvas.el.height===m&&c._canvas.source===c.source)j();else{var q=document.createElement("canvas");q.width=y,q.height=m;var Q=q.getContext("2d",{willReadFrequently:!0});c._image=c._image||new Image;var N=c._image;N.onload=function(){Q.drawImage(N,0,0),c._canvas={el:q,source:c.source},j()},N.setAttribute("src",c.source)}}).then(function(){var j,q;if(c._hasZ)q=L(function(V,J){var H=d[J][V];return y_.isTypedArray(H)&&(H=Array.from(H)),H}),j=q.toDataURL("image/png");else if(c._hasSource)if(h)j=c.source;else{var Q=c._canvas.el.getContext("2d",{willReadFrequently:!0}),N=Q.getImageData(0,0,y,m).data;q=L(function(V,J){var H=4*(J*y+V);return[N[H],N[H+1],N[H+2],N[H+3]]}),j=q.toDataURL("image/png")}P.attr({"xlink:href":j,height:C,width:S,x:b,y:A})});t._promises.push(Z)})}});var EIe=K((cXr,SIe)=>{"use strict";var wQt=No();SIe.exports=function(t){wQt.select(t).selectAll(".im image").style("opacity",function(r){return r[0].trace.opacity})}});var FIe=K((hXr,DIe)=>{"use strict";var kIe=Uf(),CIe=Mt(),hI=CIe.isArrayOrTypedArray,AQt=(jA(),ar(mS));DIe.exports=function(t,r,i){var n=t.cd[0],a=n.trace,o=t.xa,s=t.ya;if(!(kIe.inbox(r-n.x0,r-(n.x0+n.w*a.dx),0)>0||kIe.inbox(i-n.y0,i-(n.y0+n.h*a.dy),0)>0)){var l=Math.floor((r-n.x0)/a.dx),u=Math.floor(Math.abs(i-n.y0)/a.dy),f;if(a._hasZ?f=n.z[u][l]:a._hasSource&&(f=a._canvas.el.getContext("2d",{willReadFrequently:!0}).getImageData(l,u,1,1).data),!!f){var c=n.hi||a.hoverinfo,h;if(c){var d=c.split("+");d.indexOf("all")!==-1&&(d=["color"]),d.indexOf("color")!==-1&&(h=!0)}var p=AQt.colormodel[a.colormodel],v=p.colormodel||a.colormodel,y=v.length,m=a._scaler(f),w=p.suffix,_=[];(a.hovertemplate||h)&&(_.push("["+[m[0]+w[0],m[1]+w[1],m[2]+w[2]].join(", ")),y===4&&_.push(", "+m[3]+w[3]),_.push("]"),_=_.join(""),t.extraText=v.toUpperCase()+": "+_);var b;hI(a.hovertext)&&hI(a.hovertext[u])?b=a.hovertext[u][l]:hI(a.text)&&hI(a.text[u])&&(b=a.text[u][l]);var M=s.c2p(n.y0+(u+.5)*a.dy),x=n.x0+(l+.5)*a.dx,A=n.y0+(u+.5)*a.dy,T="["+f.slice(0,a.colormodel.length).join(", ")+"]";return[CIe.extendFlat(t,{index:[u,l],x0:o.c2p(n.x0+l*a.dx),x1:o.c2p(n.x0+(l+1)*a.dx),y0:M,y1:M,color:m,xVal:x,xLabelVal:x,yVal:A,yLabelVal:A,zLabelVal:T,text:b,hovertemplateLabels:{zLabel:T,colorLabel:_,"color[0]Label":m[0]+w[0],"color[1]Label":m[1]+w[1],"color[2]Label":m[2]+w[2],"color[3]Label":m[3]+w[3]}})]}}}});var PIe=K((dXr,LIe)=>{"use strict";LIe.exports=function(t,r){return"xVal"in r&&(t.x=r.xVal),"yVal"in r&&(t.y=r.yVal),r.xa&&(t.xaxis=r.xa),r.ya&&(t.yaxis=r.ya),t.color=r.color,t.colormodel=r.trace.colormodel,t.z||(t.z=r.color),t}});var IIe=K((pXr,zIe)=>{"use strict";zIe.exports={attributes:(DX(),ar(CX)).default,supplyDefaults:bDe(),calc:wIe(),plot:MIe(),style:EIe(),hoverPoints:FIe(),eventData:PIe(),moduleType:"trace",name:"image",basePlotModule:vc(),categories:["cartesian","svg","2dMap","noSortingByValue"],animatable:!1,meta:{}}});var BIe=K((vXr,RIe)=>{"use strict";RIe.exports=IIe()});var g_=K((mXr,OIe)=>{"use strict";var dI=Au(),TQt=kf().attributes,MQt=lf(),SQt=Nc(),{hovertemplateAttrs:EQt,texttemplateAttrs:kQt,templatefallbackAttrs:qIe}=yu(),S2=Os().extendFlat,CQt=yh().pattern,pI=MQt({editType:"plot",arrayOk:!0,colorEditType:"plot"});OIe.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:SQt.defaultLine,arrayOk:!0,editType:"style"},width:{valType:"number",min:0,dflt:0,arrayOk:!0,editType:"style"},editType:"calc"},pattern:CQt,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:S2({},dI.hoverinfo,{flags:["label","text","value","percent","name"]}),hovertemplate:EQt({},{keys:["label","color","value","percent","text"]}),hovertemplatefallback:qIe(),texttemplate:kQt({editType:"plot"},{keys:["label","color","value","percent","text"]}),texttemplatefallback:qIe({editType:"plot"}),textposition:{valType:"enumerated",values:["inside","outside","auto","none"],dflt:"auto",arrayOk:!0,editType:"plot"},textfont:S2({},pI,{}),insidetextorientation:{valType:"enumerated",values:["horizontal","radial","tangential","auto"],dflt:"auto",editType:"plot"},insidetextfont:S2({},pI,{}),outsidetextfont:S2({},pI,{}),automargin:{valType:"boolean",dflt:!1,editType:"plot"},showlegend:S2({},dI.showlegend,{arrayOk:!0}),legend:S2({},dI.legend,{arrayOk:!0}),legendrank:S2({},dI.legendrank,{arrayOk:!0}),title:{text:{valType:"string",dflt:"",editType:"plot"},font:S2({},pI,{}),position:{valType:"enumerated",values:["top left","top center","top right","middle center","bottom left","bottom center","bottom right"],editType:"plot"},editType:"plot"},domain:TQt({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"}}});var x_=K((yXr,UIe)=>{"use strict";var DQt=Gs(),iE=Mt(),FQt=g_(),LQt=kf().defaults,PQt=up().handleText,zQt=Mt().coercePattern;function NIe(e,t){var r=iE.isArrayOrTypedArray(e),i=iE.isArrayOrTypedArray(t),n=Math.min(r?e.length:1/0,i?t.length:1/0);if(isFinite(n)||(n=0),n&&i){for(var a,o=0;o0){a=!0;break}}a||(n=0)}return{hasLabels:r,hasValues:i,len:n}}function VIe(e,t,r,i,n){var a=i("marker.line.width");a&&i("marker.line.color",n?void 0:r.paper_bgcolor);var o=i("marker.colors");zQt(i,"marker.pattern",o),e.marker&&!t.marker.pattern.fgcolor&&(t.marker.pattern.fgcolor=e.marker.colors),t.marker.pattern.bgcolor||(t.marker.pattern.bgcolor=r.paper_bgcolor)}function IQt(e,t,r,i){function n(w,_){return iE.coerce(e,t,FQt,w,_)}var a=n("labels"),o=n("values"),s=NIe(a,o),l=s.len;if(t._hasLabels=s.hasLabels,t._hasValues=s.hasValues,!t._hasLabels&&t._hasValues&&(n("label0"),n("dlabel")),!l){t.visible=!1;return}t._length=l,VIe(e,t,i,n,!0),n("scalegroup");var u=n("text"),f=n("texttemplate");n("texttemplatefallback");var c;if(f||(c=n("textinfo",iE.isArrayOrTypedArray(u)?"text+percent":"percent")),n("hovertext"),n("hovertemplate"),n("hovertemplatefallback"),f||c&&c!=="none"){var h=n("textposition");PQt(e,t,i,n,h,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1});var d=Array.isArray(h)||h==="auto",p=d||h==="outside";p&&n("automargin"),(h==="inside"||h==="auto"||Array.isArray(h))&&n("insidetextorientation")}else c==="none"&&n("textposition","none");LQt(t,i,n);var v=n("hole"),y=n("title.text");if(y){var m=n("title.position",v?"middle center":"top center");!v&&m==="middle center"&&(t.title.position="top center"),iE.coerceFont(n,"title.font",i.font)}n("sort"),n("direction"),n("rotation"),n("pull")}UIe.exports={handleLabelsAndValues:NIe,handleMarkerDefaults:VIe,supplyDefaults:IQt}});var vI=K((gXr,GIe)=>{"use strict";GIe.exports={hiddenlabels:{valType:"data_array",editType:"calc"},piecolorway:{valType:"colorlist",editType:"calc"},extendpiecolors:{valType:"boolean",dflt:!0,editType:"calc"}}});var jIe=K((xXr,HIe)=>{"use strict";var RQt=Mt(),BQt=vI();HIe.exports=function(t,r){function i(n,a){return RQt.coerce(t,r,BQt,n,a)}i("hiddenlabels"),i("piecolorway",r.colorway),i("extendpiecolors")}});var g4=K((bXr,YIe)=>{"use strict";var qQt=Gs(),y4=ko(),OQt={};function NQt(e,t){var r=[],i=e._fullLayout,n=i.hiddenlabels||[],a=t.labels,o=t.marker.colors||[],s=t.values,l=t._length,u=t._hasValues&&l,f,c;if(t.dlabel)for(a=new Array(l),f=0;f=0});var b=t.type==="funnelarea"?v:t.sort;return b&&r.sort(function(M,x){return x.v-M.v}),r[0]&&(r[0].vTotal=p),r}function WIe(e){return function(r,i){if(!r||!y4.isValid(r))return!1;let n=y4.rgbaString(r);return e[i]||(e[i]=n),n}}function VQt(e,t){var r=(t||{}).type;r||(r="pie");var i=e._fullLayout,n=e.calcdata,a=i[r+"colorway"],o=i["_"+r+"colormap"];i["extend"+r+"colors"]&&(a=$Ie(a,OQt));for(var s=0,l=0;l{"use strict";var UQt=od().appendArrayMultiPointValues;XIe.exports=function(t,r){var i={curveNumber:r.index,pointNumbers:t.pts,data:r._input,fullData:r,label:t.label,color:t.color,value:t.v,percent:t.percent,text:t.text,bbox:t.bbox,v:t.v};return t.pts.length===1&&(i.pointNumber=i.i=t.pts[0]),UQt(i,r,t.pts),r.type==="funnelarea"&&(delete i.v,delete i.i),i}});var xI=K((wXr,yRe)=>{"use strict";var Id=No(),GQt=yf(),mI=Uf(),rRe=ko(),Ey=Bs(),i0=Mt(),HQt=i0.strScale,KIe=i0.strTranslate,RK=zu(),iRe=S0(),jQt=iRe.recordMinTextSize,WQt=iRe.clearMinTextSize,nRe=(Qg(),ar(Jg)).TEXTPAD,fl=Gg(),yI=ZIe(),JIe=Mt().isValidTextValue;function $Qt(e,t){var r=e._context.staticPlot,i=e._fullLayout,n=i._size;WQt("pie",i),sRe(t,e),pRe(t,n);var a=i0.makeTraceGroups(i._pielayer,t,"trace").each(function(o){var s=Id.select(this),l=o[0],u=l.trace;rer(o),s.attr("stroke-linejoin","round"),s.each(function(){var f=Id.select(this).selectAll("g.slice").data(o);f.enter().append("g").classed("slice",!0),f.exit().remove();var c=[[[],[]],[[],[]]],h=!1;f.each(function(b,M){if(b.hidden){Id.select(this).selectAll("path,g").remove();return}b.pointNumber=b.i,b.curveNumber=u.index,c[b.pxmid[1]<0?0:1][b.pxmid[0]<0?0:1].push(b);var x=l.cx,A=l.cy,T=Id.select(this),g=T.selectAll("path.surface").data([b]);if(g.enter().append("path").classed("surface",!0).style({"pointer-events":r?"none":"all"}),T.call(aRe,e,o),u.pull){var E=+fl.castOption(u.pull,b.pts)||0;E>0&&(x+=E*b.pxmid[0],A+=E*b.pxmid[1])}b.cxFinal=x,b.cyFinal=A;function S(F,z,B,O){var W=O*(z[0]-F[0]),X=O*(z[1]-F[1]);return"a"+O*l.r+","+O*l.r+" 0 "+b.largeArc+(B?" 1 ":" 0 ")+W+","+X}var C=u.hole;if(b.v===l.vTotal){var k="M"+(x+b.px0[0])+","+(A+b.px0[1])+S(b.px0,b.pxmid,!0,1)+S(b.pxmid,b.px0,!0,1)+"Z";C?g.attr("d","M"+(x+C*b.px0[0])+","+(A+C*b.px0[1])+S(b.px0,b.pxmid,!1,C)+S(b.pxmid,b.px0,!1,C)+"Z"+k):g.attr("d",k)}else{var D=S(b.px0,b.px1,!0,1);if(C){var L=1-C;g.attr("d","M"+(x+C*b.px1[0])+","+(A+C*b.px1[1])+S(b.px1,b.px0,!1,C)+"l"+L*b.px0[0]+","+L*b.px0[1]+D+"Z")}else g.attr("d","M"+x+","+A+"l"+b.px0[0]+","+b.px0[1]+D+"Z")}vRe(e,b,l);var P=fl.castOption(u.textposition,b.pts),I=T.selectAll("g.slicetext").data(b.text&&P!=="none"?[0]:[]);I.enter().append("g").classed("slicetext",!0),I.exit().remove(),I.each(function(){var F=i0.ensureSingle(Id.select(this),"text","",function(q){q.attr("data-notex",1)}),z=i0.ensureUniformFontSize(e,P==="outside"?XQt(u,b,i.font):oRe(u,b,i.font));F.text(b.text).attr({class:"slicetext",transform:"","text-anchor":"middle"}).call(Ey.font,z).call(RK.convertToTspans,e);var B=Ey.bBox(F.node()),O;if(P==="outside")O=tRe(B,b);else if(O=lRe(B,b,l),P==="auto"&&O.scale<1){var W=i0.ensureUniformFontSize(e,u.outsidetextfont);F.call(Ey.font,W),B=Ey.bBox(F.node()),O=tRe(B,b)}var X=O.textPosAngle,Z=X===void 0?b.pxmid:gI(l.r,X);if(O.targetX=x+Z[0]*O.rCenter+(O.x||0),O.targetY=A+Z[1]*O.rCenter+(O.y||0),mRe(O,B),O.outside){var j=O.targetY;b.yLabelMin=j-B.height/2,b.yLabelMid=j,b.yLabelMax=j+B.height/2,b.labelExtraX=0,b.labelExtraY=0,h=!0}O.fontSize=z.size,jQt(u.type,O,i),o[M].transform=O,i0.setTransormAndDisplay(F,O)})});var d=Id.select(this).selectAll("g.titletext").data(u.title.text?[0]:[]);if(d.enter().append("g").classed("titletext",!0),d.exit().remove(),d.each(function(){var b=i0.ensureSingle(Id.select(this),"text","",function(A){A.attr("data-notex",1)}),M=u.title.text;u._meta&&(M=i0.templateString(M,u._meta)),b.text(M).attr({class:"titletext",transform:"","text-anchor":"middle"}).call(Ey.font,u.title.font).call(RK.convertToTspans,e);var x;u.title.position==="middle center"?x=JQt(l):x=hRe(l,n),b.attr("transform",KIe(x.x,x.y)+HQt(Math.min(1,x.scale))+KIe(x.tx,x.ty))}),h&&eer(c,u),YQt(f,u),h&&u.automargin){var p=Ey.bBox(s.node()),v=u.domain,y=n.w*(v.x[1]-v.x[0]),m=n.h*(v.y[1]-v.y[0]),w=(.5*y-l.r)/n.w,_=(.5*m-l.r)/n.h;GQt.autoMargin(e,"pie."+u.uid+".automargin",{xl:v.x[0]-w,xr:v.x[1]+w,yb:v.y[0]-_,yt:v.y[1]+_,l:Math.max(l.cx-l.r-p.left,0),r:Math.max(p.right-(l.cx+l.r),0),b:Math.max(p.bottom-(l.cy+l.r),0),t:Math.max(l.cy-l.r-p.top,0),pad:5})}})});setTimeout(function(){a.selectAll("tspan").each(function(){var o=Id.select(this);o.attr("dy")&&o.attr("dy",o.attr("dy"))})},0)}function YQt(e,t){e.each(function(r){var i=Id.select(this);if(!r.labelExtraX&&!r.labelExtraY){i.select("path.textline").remove();return}var n=i.select("g.slicetext text");r.transform.targetX+=r.labelExtraX,r.transform.targetY+=r.labelExtraY,i0.setTransormAndDisplay(n,r.transform);var a=r.cxFinal+r.pxmid[0],o=r.cyFinal+r.pxmid[1],s="M"+a+","+o,l=(r.yLabelMax-r.yLabelMin)*(r.pxmid[0]<0?-1:1)/4;if(r.labelExtraX){var u=r.labelExtraX*r.pxmid[1]/r.pxmid[0],f=r.yLabelMid+r.labelExtraY-(r.cyFinal+r.pxmid[1]);Math.abs(u)>Math.abs(f)?s+="l"+f*r.pxmid[0]/r.pxmid[1]+","+f+"H"+(a+r.labelExtraX+l):s+="l"+r.labelExtraX+","+u+"v"+(f-u)+"h"+l}else s+="V"+(r.yLabelMid+r.labelExtraY)+"h"+l;i0.ensureSingle(i,"path","textline").call(rRe.stroke,t.outsidetextfont.color).attr({"stroke-width":Math.min(2,t.outsidetextfont.size/8),d:s,fill:"none"})})}function aRe(e,t,r){var i=r[0],n=i.cx,a=i.cy,o=i.trace,s=o.type==="funnelarea";"_hasHoverLabel"in o||(o._hasHoverLabel=!1),"_hasHoverEvent"in o||(o._hasHoverEvent=!1),e.on("mouseover",function(l){var u=t._fullLayout,f=t._fullData[o.index];if(!(t._dragging||u.hovermode===!1)){var c=f.hoverinfo;if(Array.isArray(c)&&(c=mI.castHoverinfo({hoverinfo:[fl.castOption(c,l.pts)],_module:o._module},u,0)),c==="all"&&(c="label+text+value+percent+name"),f.hovertemplate||c!=="none"&&c!=="skip"&&c){var h=l.rInscribed||0,d=n+l.pxmid[0]*(1-h),p=a+l.pxmid[1]*(1-h),v=u.separators,y=[];if(c&&c.indexOf("label")!==-1&&y.push(l.label),l.text=fl.castOption(f.hovertext||f.text,l.pts),c&&c.indexOf("text")!==-1){var m=l.text;i0.isValidTextValue(m)&&y.push(m)}l.value=l.v,l.valueLabel=fl.formatPieValue(l.v,v),c&&c.indexOf("value")!==-1&&y.push(l.valueLabel),l.percent=l.v/i.vTotal,l.percentLabel=fl.formatPiePercent(l.percent,v),c&&c.indexOf("percent")!==-1&&y.push(l.percentLabel);var w=f.hoverlabel,_=w.font,b=[];mI.loneHover({trace:o,x0:d-h*i.r,x1:d+h*i.r,y:p,_x0:s?n+l.TL[0]:d-h*i.r,_x1:s?n+l.TR[0]:d+h*i.r,_y0:s?a+l.TL[1]:p-h*i.r,_y1:s?a+l.BL[1]:p+h*i.r,text:y.join("
"),name:f.hovertemplate||c.indexOf("name")!==-1?f.name:void 0,idealAlign:l.pxmid[0]<0?"left":"right",color:fl.castOption(w.bgcolor,l.pts)||l.color,borderColor:fl.castOption(w.bordercolor,l.pts),fontFamily:fl.castOption(_.family,l.pts),fontSize:fl.castOption(_.size,l.pts),fontColor:fl.castOption(_.color,l.pts),nameLength:fl.castOption(w.namelength,l.pts),textAlign:fl.castOption(w.align,l.pts),hovertemplate:fl.castOption(f.hovertemplate,l.pts),hovertemplateLabels:l,eventData:[yI(l,f)]},{container:u._hoverlayer.node(),outerContainer:u._paper.node(),gd:t,inOut_bbox:b}),l.bbox=b[0],o._hasHoverLabel=!0}o._hasHoverEvent=!0,t.emit("plotly_hover",{points:[yI(l,f)],event:Id.event})}}),e.on("mouseout",function(l){var u=t._fullLayout,f=t._fullData[o.index],c=Id.select(this).datum();o._hasHoverEvent&&(l.originalEvent=Id.event,t.emit("plotly_unhover",{points:[yI(c,f)],event:Id.event}),o._hasHoverEvent=!1),o._hasHoverLabel&&(mI.loneUnhover(u._hoverlayer.node()),o._hasHoverLabel=!1)}),e.on("click",function(l){var u=t._fullLayout,f=t._fullData[o.index];t._dragging||u.hovermode===!1||(t._hoverdata=[yI(l,f)],mI.click(t,Id.event))})}function XQt(e,t,r){var i=fl.castOption(e.outsidetextfont.color,t.pts)||fl.castOption(e.textfont.color,t.pts)||r.color,n=fl.castOption(e.outsidetextfont.family,t.pts)||fl.castOption(e.textfont.family,t.pts)||r.family,a=fl.castOption(e.outsidetextfont.size,t.pts)||fl.castOption(e.textfont.size,t.pts)||r.size,o=fl.castOption(e.outsidetextfont.weight,t.pts)||fl.castOption(e.textfont.weight,t.pts)||r.weight,s=fl.castOption(e.outsidetextfont.style,t.pts)||fl.castOption(e.textfont.style,t.pts)||r.style,l=fl.castOption(e.outsidetextfont.variant,t.pts)||fl.castOption(e.textfont.variant,t.pts)||r.variant,u=fl.castOption(e.outsidetextfont.textcase,t.pts)||fl.castOption(e.textfont.textcase,t.pts)||r.textcase,f=fl.castOption(e.outsidetextfont.lineposition,t.pts)||fl.castOption(e.textfont.lineposition,t.pts)||r.lineposition,c=fl.castOption(e.outsidetextfont.shadow,t.pts)||fl.castOption(e.textfont.shadow,t.pts)||r.shadow;return{color:i,family:n,size:a,weight:o,style:s,variant:l,textcase:u,lineposition:f,shadow:c}}function oRe(e,t,r){var i=fl.castOption(e.insidetextfont.color,t.pts);!i&&e._input.textfont&&(i=fl.castOption(e._input.textfont.color,t.pts));var n=fl.castOption(e.insidetextfont.family,t.pts)||fl.castOption(e.textfont.family,t.pts)||r.family,a=fl.castOption(e.insidetextfont.size,t.pts)||fl.castOption(e.textfont.size,t.pts)||r.size,o=fl.castOption(e.insidetextfont.weight,t.pts)||fl.castOption(e.textfont.weight,t.pts)||r.weight,s=fl.castOption(e.insidetextfont.style,t.pts)||fl.castOption(e.textfont.style,t.pts)||r.style,l=fl.castOption(e.insidetextfont.variant,t.pts)||fl.castOption(e.textfont.variant,t.pts)||r.variant,u=fl.castOption(e.insidetextfont.textcase,t.pts)||fl.castOption(e.textfont.textcase,t.pts)||r.textcase,f=fl.castOption(e.insidetextfont.lineposition,t.pts)||fl.castOption(e.textfont.lineposition,t.pts)||r.lineposition,c=fl.castOption(e.insidetextfont.shadow,t.pts)||fl.castOption(e.textfont.shadow,t.pts)||r.shadow;return{color:i||rRe.contrast(t.color),family:n,size:a,weight:o,style:s,variant:l,textcase:u,lineposition:f,shadow:c}}function sRe(e,t){for(var r,i,n=0;n=-4;w-=2)m(Math.PI*w,"tan");for(w=4;w>=-4;w-=2)m(Math.PI*(w+1),"tan")}if(c||d){for(w=4;w>=-4;w-=2)m(Math.PI*(w+1.5),"rad");for(w=4;w>=-4;w-=2)m(Math.PI*(w+.5),"rad")}}if(s||p||c){var _=Math.sqrt(e.width*e.width+e.height*e.height);if(y={scale:n*i*2/_,rCenter:1-n,rotate:0},y.textPosAngle=(t.startangle+t.stopangle)/2,y.scale>=1)return y;v.push(y)}(p||d)&&(y=QIe(e,i,o,l,u),y.textPosAngle=(t.startangle+t.stopangle)/2,v.push(y)),(p||h)&&(y=eRe(e,i,o,l,u),y.textPosAngle=(t.startangle+t.stopangle)/2,v.push(y));for(var b=0,M=0,x=0;x=1)break}return v[b]}function ZQt(e,t){var r=e.startangle,i=e.stopangle;return r>t&&t>i||r0?1:-1)/2,y:a/(1+r*r/(i*i)),outside:!0}}function JQt(e){var t=Math.sqrt(e.titleBox.width*e.titleBox.width+e.titleBox.height*e.titleBox.height);return{x:e.cx,y:e.cy,scale:e.trace.hole*e.r*2/t,tx:0,ty:-e.titleBox.height/2+e.trace.title.font.size}}function hRe(e,t){var r=1,i=1,n,a=e.trace,o={x:e.cx,y:e.cy},s={tx:0,ty:0};s.ty+=a.title.font.size,n=dRe(a),a.title.position.indexOf("top")!==-1?(o.y-=(1+n)*e.r,s.ty-=e.titleBox.height):a.title.position.indexOf("bottom")!==-1&&(o.y+=(1+n)*e.r);var l=QQt(e.r,e.trace.aspectratio),u=t.w*(a.domain.x[1]-a.domain.x[0])/2;return a.title.position.indexOf("left")!==-1?(u=u+l,o.x-=(1+n)*l,s.tx+=e.titleBox.width/2):a.title.position.indexOf("center")!==-1?u*=2:a.title.position.indexOf("right")!==-1&&(u=u+l,o.x+=(1+n)*l,s.tx-=e.titleBox.width/2),r=u/e.titleBox.width,i=BK(e,t)/e.titleBox.height,{x:o.x,y:o.y,scale:Math.min(r,i),tx:s.tx,ty:s.ty}}function QQt(e,t){return e/(t===void 0?1:t)}function BK(e,t){var r=e.trace,i=t.h*(r.domain.y[1]-r.domain.y[0]);return Math.min(e.titleBox.height,i/2)}function dRe(e){var t=e.pull;if(!t)return 0;var r;if(i0.isArrayOrTypedArray(t))for(t=0,r=0;rt&&(t=e.pull[r]);return t}function eer(e,t){var r,i,n,a,o,s,l,u,f,c,h,d,p;function v(_,b){return _.pxmid[1]-b.pxmid[1]}function y(_,b){return b.pxmid[1]-_.pxmid[1]}function m(_,b){b||(b={});var M=b.labelExtraY+(i?b.yLabelMax:b.yLabelMin),x=i?_.yLabelMin:_.yLabelMax,A=i?_.yLabelMax:_.yLabelMin,T=_.cyFinal+o(_.px0[1],_.px1[1]),g=M-x,E,S,C,k,D,L;if(g*l>0&&(_.labelExtraY=g),!!i0.isArrayOrTypedArray(t.pull))for(S=0;S=(fl.castOption(t.pull,C.pts)||0))&&((_.pxmid[1]-C.pxmid[1])*l>0?(k=C.cyFinal+o(C.px0[1],C.px1[1]),g=k-x-_.labelExtraY,g*l>0&&(_.labelExtraY+=g)):(A+_.labelExtraY-T)*l>0&&(E=3*s*Math.abs(S-c.indexOf(_)),D=C.cxFinal+a(C.px0[0],C.px1[0]),L=D+E-(_.cxFinal+_.pxmid[0])-_.labelExtraX,L*s>0&&(_.labelExtraX+=L)))}for(i=0;i<2;i++)for(n=i?v:y,o=i?Math.max:Math.min,l=i?1:-1,r=0;r<2;r++){for(a=r?Math.max:Math.min,s=r?1:-1,u=e[i][r],u.sort(n),f=e[1-i][r],c=f.concat(u),d=[],h=0;h1?(u=r.r,f=u/n.aspectratio):(f=r.r,u=f*n.aspectratio),u*=(1+n.baseratio)/2,l=u*f}o=Math.min(o,l/r.vTotal)}for(i=0;it.vTotal/2?1:0,u.halfangle=Math.PI*Math.min(u.v/t.vTotal,.5),u.ring=1-i.hole,u.rInscribed=KQt(u,t))}function gI(e,t){return[e*Math.sin(t),-e*Math.cos(t)]}function vRe(e,t,r){var i=e._fullLayout,n=r.trace,a=n.texttemplate,o=n.textinfo;if(!a&&o&&o!=="none"){var s=o.split("+"),l=function(b){return s.indexOf(b)!==-1},u=l("label"),f=l("text"),c=l("value"),h=l("percent"),d=i.separators,p;if(p=u?[t.label]:[],f){var v=fl.getFirstFilled(n.text,t.pts);JIe(v)&&p.push(v)}c&&p.push(fl.formatPieValue(t.v,d)),h&&p.push(fl.formatPiePercent(t.v/r.vTotal,d)),t.text=p.join("
")}function y(b){return{label:b.label,value:b.v,valueLabel:fl.formatPieValue(b.v,i.separators),percent:b.v/r.vTotal,percentLabel:fl.formatPiePercent(b.v/r.vTotal,i.separators),color:b.color,text:b.text,customdata:i0.castOption(n,b.i,"customdata")}}if(a){var m=i0.castOption(n,t.i,"texttemplate");if(!m)t.text="";else{var w=y(t),_=fl.getFirstFilled(n.text,t.pts);(JIe(_)||_==="")&&(w.text=_),t.text=i0.texttemplateString({data:[w,n._meta],fallback:n.texttemplatefallback,labels:w,locale:e._fullLayout._d3locale,template:m})}}}function mRe(e,t){var r=e.rotate*Math.PI/180,i=Math.cos(r),n=Math.sin(r),a=(t.left+t.right)/2,o=(t.top+t.bottom)/2;e.textX=a*i-o*n,e.textY=a*n+o*i,e.noCenter=!0}yRe.exports={plot:$Qt,formatSliceLabel:vRe,transformInsideText:lRe,determineInsideTextFont:oRe,positionTitleOutside:hRe,prerenderTitles:sRe,layoutAreas:pRe,attachFxHandlers:aRe,computeTransform:mRe}});var bRe=K((AXr,xRe)=>{"use strict";var gRe=No(),ier=qw(),ner=S0().resizeText;xRe.exports=function(t){var r=t._fullLayout._pielayer.selectAll(".trace");ner(t,r,"pie"),r.each(function(i){var n=i[0],a=n.trace,o=gRe.select(this);o.style({opacity:a.opacity}),o.selectAll("path.surface").each(function(s){gRe.select(this).call(ier,s,a,t)})})}});var wRe=K(x4=>{"use strict";var _Re=yf();x4.name="pie";x4.plot=function(e,t,r,i){_Re.plotBasePlot(x4.name,e,t,r,i)};x4.clean=function(e,t,r,i){_Re.cleanBasePlot(x4.name,e,t,r,i)}});var TRe=K((MXr,ARe)=>{"use strict";ARe.exports={attributes:g_(),supplyDefaults:x_().supplyDefaults,supplyLayoutDefaults:jIe(),layoutAttributes:vI(),calc:g4().calc,crossTraceCalc:g4().crossTraceCalc,plot:xI().plot,style:bRe(),styleOne:qw(),moduleType:"trace",name:"pie",basePlotModule:wRe(),categories:["pie-like","pie","showLegend"],meta:{}}});var SRe=K((SXr,MRe)=>{"use strict";MRe.exports=TRe()});var kRe=K(b4=>{"use strict";var ERe=yf();b4.name="sunburst";b4.plot=function(e,t,r,i){ERe.plotBasePlot(b4.name,e,t,r,i)};b4.clean=function(e,t,r,i){ERe.cleanBasePlot(b4.name,e,t,r,i)}});var qK={};Fl(qK,{CLICK_TRANSITION_EASING:()=>oer,CLICK_TRANSITION_TIME:()=>aer,eventDataKeys:()=>ser});var aer,oer,ser,OK=ps(()=>{"use strict";aer=750,oer="linear",ser=["currentPath","root","entry","percentRoot","percentEntry","percentParent"]});var aE=K((kXr,FRe)=>{"use strict";var ler=Au(),{hovertemplateAttrs:uer,texttemplateAttrs:fer,templatefallbackAttrs:CRe}=yu(),cer=Wu(),her=kf().attributes,ky=g_(),DRe=(OK(),ar(qK)),nE=Os().extendFlat,der=yh().pattern;FRe.exports={labels:{valType:"data_array",editType:"calc"},parents:{valType:"data_array",editType:"calc"},values:{valType:"data_array",editType:"calc"},branchvalues:{valType:"enumerated",values:["remainder","total"],dflt:"remainder",editType:"calc"},count:{valType:"flaglist",flags:["branches","leaves"],dflt:"leaves",editType:"calc"},level:{valType:"any",editType:"plot",anim:!0},maxdepth:{valType:"integer",editType:"plot",dflt:-1},marker:nE({colors:{valType:"data_array",editType:"calc"},line:{color:nE({},ky.marker.line.color,{dflt:null}),width:nE({},ky.marker.line.width,{dflt:1}),editType:"calc"},pattern:der,editType:"calc"},cer("marker",{colorAttr:"colors",anim:!1})),leaf:{opacity:{valType:"number",editType:"style",min:0,max:1},editType:"plot"},text:ky.text,textinfo:{valType:"flaglist",flags:["label","text","value","current path","percent root","percent entry","percent parent"],extras:["none"],editType:"plot"},texttemplate:fer({editType:"plot"},{keys:DRe.eventDataKeys.concat(["label","value"])}),texttemplatefallback:CRe({editType:"plot"}),hovertext:ky.hovertext,hoverinfo:nE({},ler.hoverinfo,{flags:["label","text","value","name","current path","percent root","percent entry","percent parent"],dflt:"label+text+value+name"}),hovertemplate:uer({},{keys:DRe.eventDataKeys}),hovertemplatefallback:CRe(),textfont:ky.textfont,insidetextorientation:ky.insidetextorientation,insidetextfont:ky.insidetextfont,outsidetextfont:nE({},ky.outsidetextfont,{}),rotation:{valType:"angle",dflt:0,editType:"plot"},sort:ky.sort,root:{color:{valType:"color",editType:"calc",dflt:"rgba(0,0,0,0)"},editType:"calc"},domain:her({name:"sunburst",trace:!0,editType:"calc"})}});var NK=K((CXr,LRe)=>{"use strict";LRe.exports={sunburstcolorway:{valType:"colorlist",editType:"calc"},extendsunburstcolors:{valType:"boolean",dflt:!0,editType:"calc"}}});var RRe=K((DXr,IRe)=>{"use strict";var PRe=Mt(),per=aE(),ver=kf().defaults,mer=up().handleText,yer=x_().handleMarkerDefaults,zRe=gf(),ger=zRe.hasColorscale,xer=zRe.handleDefaults;IRe.exports=function(t,r,i,n){function a(h,d){return PRe.coerce(t,r,per,h,d)}var o=a("labels"),s=a("parents");if(!o||!o.length||!s||!s.length){r.visible=!1;return}var l=a("values");l&&l.length?a("branchvalues"):a("count"),a("level"),a("maxdepth"),yer(t,r,n,a);var u=r._hasColorscale=ger(t,"marker","colors")||(t.marker||{}).coloraxis;u&&xer(t,r,n,a,{prefix:"marker.",cLetter:"c"}),a("leaf.opacity",u?1:.7);var f=a("text");a("texttemplate"),a("texttemplatefallback"),r.texttemplate||a("textinfo",PRe.isArrayOrTypedArray(f)?"text+label":"label"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback");var c="auto";mer(t,r,n,a,c,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1}),a("insidetextorientation"),a("sort"),a("rotation"),a("root.color"),ver(r,n,a),r._length=null}});var qRe=K((FXr,BRe)=>{"use strict";var ber=Mt(),_er=NK();BRe.exports=function(t,r){function i(n,a){return ber.coerce(t,r,_er,n,a)}i("sunburstcolorway",r.colorway),i("extendsunburstcolors")}});var oE=K((bI,ORe)=>{(function(e,t){typeof bI=="object"&&typeof ORe!="undefined"?t(bI):(e=e||self,t(e.d3=e.d3||{}))})(bI,function(e){"use strict";function t(Pe,De){return Pe.parent===De.parent?1:2}function r(Pe){return Pe.reduce(i,0)/Pe.length}function i(Pe,De){return Pe+De.x}function n(Pe){return 1+Pe.reduce(a,0)}function a(Pe,De){return Math.max(Pe,De.y)}function o(Pe){for(var De;De=Pe.children;)Pe=De[0];return Pe}function s(Pe){for(var De;De=Pe.children;)Pe=De[De.length-1];return Pe}function l(){var Pe=t,De=1,Ve=1,Le=!1;function Se(ze){var st,ft=0;ze.eachAfter(function(yt){var St=yt.children;St?(yt.x=r(St),yt.y=n(St)):(yt.x=st?ft+=Pe(yt,st):0,yt.y=0,st=yt)});var wt=o(ze),At=s(ze),Vt=wt.x-Pe(wt,At)/2,Dt=At.x+Pe(At,wt)/2;return ze.eachAfter(Le?function(yt){yt.x=(yt.x-ze.x)*De,yt.y=(ze.y-yt.y)*Ve}:function(yt){yt.x=(yt.x-Vt)/(Dt-Vt)*De,yt.y=(1-(ze.y?yt.y/ze.y:1))*Ve})}return Se.separation=function(ze){return arguments.length?(Pe=ze,Se):Pe},Se.size=function(ze){return arguments.length?(Le=!1,De=+ze[0],Ve=+ze[1],Se):Le?null:[De,Ve]},Se.nodeSize=function(ze){return arguments.length?(Le=!0,De=+ze[0],Ve=+ze[1],Se):Le?[De,Ve]:null},Se}function u(Pe){var De=0,Ve=Pe.children,Le=Ve&&Ve.length;if(!Le)De=1;else for(;--Le>=0;)De+=Ve[Le].value;Pe.value=De}function f(){return this.eachAfter(u)}function c(Pe){var De=this,Ve,Le=[De],Se,ze,st;do for(Ve=Le.reverse(),Le=[];De=Ve.pop();)if(Pe(De),Se=De.children,Se)for(ze=0,st=Se.length;ze=0;--Se)Ve.push(Le[Se]);return this}function d(Pe){for(var De=this,Ve=[De],Le=[],Se,ze,st;De=Ve.pop();)if(Le.push(De),Se=De.children,Se)for(ze=0,st=Se.length;ze=0;)Ve+=Le[Se].value;De.value=Ve})}function v(Pe){return this.eachBefore(function(De){De.children&&De.children.sort(Pe)})}function y(Pe){for(var De=this,Ve=m(De,Pe),Le=[De];De!==Ve;)De=De.parent,Le.push(De);for(var Se=Le.length;Pe!==Ve;)Le.splice(Se,0,Pe),Pe=Pe.parent;return Le}function m(Pe,De){if(Pe===De)return Pe;var Ve=Pe.ancestors(),Le=De.ancestors(),Se=null;for(Pe=Ve.pop(),De=Le.pop();Pe===De;)Se=Pe,Pe=Ve.pop(),De=Le.pop();return Se}function w(){for(var Pe=this,De=[Pe];Pe=Pe.parent;)De.push(Pe);return De}function _(){var Pe=[];return this.each(function(De){Pe.push(De)}),Pe}function b(){var Pe=[];return this.eachBefore(function(De){De.children||Pe.push(De)}),Pe}function M(){var Pe=this,De=[];return Pe.each(function(Ve){Ve!==Pe&&De.push({source:Ve.parent,target:Ve})}),De}function x(Pe,De){var Ve=new S(Pe),Le=+Pe.value&&(Ve.value=Pe.value),Se,ze=[Ve],st,ft,wt,At;for(De==null&&(De=T);Se=ze.pop();)if(Le&&(Se.value=+Se.data.value),(ft=De(Se.data))&&(At=ft.length))for(Se.children=new Array(At),wt=At-1;wt>=0;--wt)ze.push(st=Se.children[wt]=new S(ft[wt])),st.parent=Se,st.depth=Se.depth+1;return Ve.eachBefore(E)}function A(){return x(this).eachBefore(g)}function T(Pe){return Pe.children}function g(Pe){Pe.data=Pe.data.data}function E(Pe){var De=0;do Pe.height=De;while((Pe=Pe.parent)&&Pe.height<++De)}function S(Pe){this.data=Pe,this.depth=this.height=0,this.parent=null}S.prototype=x.prototype={constructor:S,count:f,each:c,eachAfter:d,eachBefore:h,sum:p,sort:v,path:y,ancestors:w,descendants:_,leaves:b,links:M,copy:A};var C=Array.prototype.slice;function k(Pe){for(var De=Pe.length,Ve,Le;De;)Le=Math.random()*De--|0,Ve=Pe[De],Pe[De]=Pe[Le],Pe[Le]=Ve;return Pe}function D(Pe){for(var De=0,Ve=(Pe=k(C.call(Pe))).length,Le=[],Se,ze;De0&&Ve*Ve>Le*Le+Se*Se}function F(Pe,De){for(var Ve=0;Vewt?(Se=(At+wt-ze)/(2*At),ft=Math.sqrt(Math.max(0,wt/At-Se*Se)),Ve.x=Pe.x-Se*Le-ft*st,Ve.y=Pe.y-Se*st+ft*Le):(Se=(At+ze-wt)/(2*At),ft=Math.sqrt(Math.max(0,ze/At-Se*Se)),Ve.x=De.x+Se*Le-ft*st,Ve.y=De.y+Se*st+ft*Le)):(Ve.x=De.x+Ve.r,Ve.y=De.y)}function Z(Pe,De){var Ve=Pe.r+De.r-1e-6,Le=De.x-Pe.x,Se=De.y-Pe.y;return Ve>0&&Ve*Ve>Le*Le+Se*Se}function j(Pe){var De=Pe._,Ve=Pe.next._,Le=De.r+Ve.r,Se=(De.x*Ve.r+Ve.x*De.r)/Le,ze=(De.y*Ve.r+Ve.y*De.r)/Le;return Se*Se+ze*ze}function q(Pe){this._=Pe,this.next=null,this.previous=null}function Q(Pe){if(!(Se=Pe.length))return 0;var De,Ve,Le,Se,ze,st,ft,wt,At,Vt,Dt;if(De=Pe[0],De.x=0,De.y=0,!(Se>1))return De.r;if(Ve=Pe[1],De.x=-Ve.r,Ve.x=De.r,Ve.y=0,!(Se>2))return De.r+Ve.r;X(Ve,De,Le=Pe[2]),De=new q(De),Ve=new q(Ve),Le=new q(Le),De.next=Le.previous=Ve,Ve.next=De.previous=Le,Le.next=Ve.previous=De;e:for(ft=3;ft0)throw new Error("cycle");return ft}return Ve.id=function(Le){return arguments.length?(Pe=J(Le),Ve):Pe},Ve.parentId=function(Le){return arguments.length?(De=J(Le),Ve):De},Ve}function U(Pe,De){return Pe.parent===De.parent?1:2}function se(Pe){var De=Pe.children;return De?De[0]:Pe.t}function Ae(Pe){var De=Pe.children;return De?De[De.length-1]:Pe.t}function be(Pe,De,Ve){var Le=Ve/(De.i-Pe.i);De.c-=Le,De.s+=Ve,Pe.c+=Le,De.z+=Ve,De.m+=Ve}function me(Pe){for(var De=0,Ve=0,Le=Pe.children,Se=Le.length,ze;--Se>=0;)ze=Le[Se],ze.z+=De,ze.m+=De,De+=ze.s+(Ve+=ze.c)}function ue(Pe,De,Ve){return Pe.a.parent===De.parent?Pe.a:Ve}function pe(Pe,De){this._=Pe,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=De}pe.prototype=Object.create(S.prototype);function ce(Pe){for(var De=new pe(Pe,0),Ve,Le=[De],Se,ze,st,ft;Ve=Le.pop();)if(ze=Ve._.children)for(Ve.children=new Array(ft=ze.length),st=ft-1;st>=0;--st)Le.push(Se=Ve.children[st]=new pe(ze[st],st)),Se.parent=Ve;return(De.parent=new pe(null,0)).children=[De],De}function Be(){var Pe=U,De=1,Ve=1,Le=null;function Se(At){var Vt=ce(At);if(Vt.eachAfter(ze),Vt.parent.m=-Vt.z,Vt.eachBefore(st),Le)At.eachBefore(wt);else{var Dt=At,yt=At,St=At;At.eachBefore(function(vt){vt.xyt.x&&(yt=vt),vt.depth>St.depth&&(St=vt)});var rr=Dt===yt?1:Pe(Dt,yt)/2,Ke=rr-Dt.x,at=De/(yt.x+rr+Ke),lt=Ve/(St.depth||1);At.eachBefore(function(vt){vt.x=(vt.x+Ke)*at,vt.y=vt.depth*lt})}return At}function ze(At){var Vt=At.children,Dt=At.parent.children,yt=At.i?Dt[At.i-1]:null;if(Vt){me(At);var St=(Vt[0].z+Vt[Vt.length-1].z)/2;yt?(At.z=yt.z+Pe(At._,yt._),At.m=At.z-St):At.z=St}else yt&&(At.z=yt.z+Pe(At._,yt._));At.parent.A=ft(At,yt,At.parent.A||Dt[0])}function st(At){At._.x=At.z+At.parent.m,At.m+=At.parent.m}function ft(At,Vt,Dt){if(Vt){for(var yt=At,St=At,rr=Vt,Ke=yt.parent.children[0],at=yt.m,lt=St.m,vt=rr.m,We=Ke.m,ut;rr=Ae(rr),yt=se(yt),rr&&yt;)Ke=se(Ke),St=Ae(St),St.a=At,ut=rr.z+vt-yt.z-at+Pe(rr._,yt._),ut>0&&(be(ue(rr,At,Dt),At,ut),at+=ut,lt+=ut),vt+=rr.m,at+=yt.m,We+=Ke.m,lt+=St.m;rr&&!Ae(St)&&(St.t=rr,St.m+=vt-lt),yt&&!se(Ke)&&(Ke.t=yt,Ke.m+=at-We,Dt=At)}return Dt}function wt(At){At.x*=De,At.y=At.depth*Ve}return Se.separation=function(At){return arguments.length?(Pe=At,Se):Pe},Se.size=function(At){return arguments.length?(Le=!1,De=+At[0],Ve=+At[1],Se):Le?null:[De,Ve]},Se.nodeSize=function(At){return arguments.length?(Le=!0,De=+At[0],Ve=+At[1],Se):Le?[De,Ve]:null},Se}function $e(Pe,De,Ve,Le,Se){for(var ze=Pe.children,st,ft=-1,wt=ze.length,At=Pe.value&&(Se-Ve)/Pe.value;++ftvt&&(vt=At),$t=at*at*kt,We=Math.max(vt/$t,$t/lt),We>ut){at-=At;break}ut=We}st.push(wt={value:at,dice:St1?Le:1)},Ve})(Ze);function Ue(){var Pe=nt,De=!1,Ve=1,Le=1,Se=[0],ze=H,st=H,ft=H,wt=H,At=H;function Vt(yt){return yt.x0=yt.y0=0,yt.x1=Ve,yt.y1=Le,yt.eachBefore(Dt),Se=[0],De&&yt.eachBefore(Ce),yt}function Dt(yt){var St=Se[yt.depth],rr=yt.x0+St,Ke=yt.y0+St,at=yt.x1-St,lt=yt.y1-St;at=yt-1){var vt=ze[Dt];vt.x0=rr,vt.y0=Ke,vt.x1=at,vt.y1=lt;return}for(var We=At[Dt],ut=St/2+We,kt=Dt+1,$t=yt-1;kt<$t;){var or=kt+$t>>>1;At[or]lt-Ke){var hr=(rr*Er+at*Lr)/St;Vt(Dt,kt,Lr,rr,Ke,hr,lt),Vt(kt,yt,Er,hr,Ke,at,lt)}else{var ni=(Ke*Er+lt*Lr)/St;Vt(Dt,kt,Lr,rr,Ke,at,ni),Vt(kt,yt,Er,rr,ni,at,lt)}}}function Re(Pe,De,Ve,Le,Se){(Pe.depth&1?$e:le)(Pe,De,Ve,Le,Se)}var Qe=(function Pe(De){function Ve(Le,Se,ze,st,ft){if((wt=Le._squarify)&&wt.ratio===De)for(var wt,At,Vt,Dt,yt=-1,St,rr=wt.length,Ke=Le.value;++yt1?Le:1)},Ve})(Ze);e.cluster=l,e.hierarchy=x,e.pack=ie,e.packEnclose=D,e.packSiblings=N,e.partition=re,e.stratify=ye,e.tree=Be,e.treemap=Ue,e.treemapBinary=xe,e.treemapDice=le,e.treemapResquarify=Qe,e.treemapSlice=$e,e.treemapSliceDice=Re,e.treemapSquarify=nt,Object.defineProperty(e,"__esModule",{value:!0})})});var lE=K(sE=>{"use strict";var NRe=oE(),wer=Gs(),_4=Mt(),Aer=gf().makeColorScaleFuncFromTrace,Ter=g4().makePullColorFn,Mer=g4().generateExtendedColors,Ser=gf().calc,Eer=(Il(),ar(Bl)).ALMOST_EQUAL,ker={},Cer={},Der={};sE.calc=function(e,t){var r=e._fullLayout,i=t.ids,n=_4.isArrayOrTypedArray(i),a=t.labels,o=t.parents,s=t.values,l=_4.isArrayOrTypedArray(s),u=[],f={},c={},h=function(I,F){f[I]?f[I].push(F):f[I]=[F],c[F]=1},d=function(I){return I||typeof I=="number"},p=function(I){return!l||wer(s[I])&&s[I]>=0},v,y,m;n?(v=Math.min(i.length,o.length),y=function(I){return d(i[I])&&p(I)},m=function(I){return String(i[I])}):(v=Math.min(a.length,o.length),y=function(I){return d(a[I])&&p(I)},m=function(I){return String(a[I])}),l&&(v=Math.min(v,s.length));for(var w=0;w1){for(var T=_4.randstr(),g=0;g{"use strict";var HJt=Vu().str2arr,jJt=Vu().sliceEq,oIe=Vu().readUInt32BE,WJt=HJt("8BPS\0");sIe.exports=function(e){if(!(e.length<22)&&jJt(e,0,WJt))return{width:oIe(e,18),height:oIe(e,14),type:"psd",mime:"image/vnd.adobe.photoshop",wUnits:"px",hUnits:"px"}}});var OK=K(qK=>{"use strict";qK.MAX_DATA_LENGTH=1024*10;var BK="[a-zA-Z_:][a-zA-Z0-9:._-]*",fIe="[^\"'=<>`\\x00-\\x20]+",$Jt="'[^']*'",YJt='"[^"]*"',XJt="(?:"+fIe+"|"+$Jt+"|"+YJt+")",ZJt="(?:\\s+"+BK+"(?:\\s*=\\s*"+XJt+")?)",KJt="<[?][\\s\\S]*?[?]>",JJt="",QJt="",eQt="]*(?:\\[[\\s\\S]*?\\][^>]*)?>",tQt=new RegExp("^(?:\\s+|"+KJt+"|"+JJt+"|"+QJt+"|"+eQt+")*"),rQt=new RegExp("^<("+BK+")("+ZJt+"*)\\s*/?>"),uIe=new RegExp("\\s+("+BK+")(?:\\s*=\\s*(?:("+fIe+`)|'([^']*)'|"([^"]*)"))?`,"g"),iQt=/in$|mm$|cm$|pt$|pc$|px$|em$|ex$/;function y4(e){return typeof e=="number"&&isFinite(e)&&e>0}function _m(e){var t=e.slice(-2),r=t.match(iQt);return r===null?"px":r[0]}qK.parse=function(e){var t=e.match(tQt)[0],r=rQt.exec(t.length?e.slice(t.length):e);if(r){var i=r[1];if(!(i!=="svg"&&i.slice(-4)!==":svg")){var n={},a;for(uIe.lastIndex=0;(a=uIe.exec(r[2]))!==null;)n[a[1]]=a[2]!==void 0?a[2]:a[3]!==void 0?a[3]:a[4];var o=n.width,s=n.height,l=n.viewBox||n.viewbox;o&&o.indexOf("%")!==-1&&(o=void 0),s&&s.indexOf("%")!==-1&&(s=void 0);var u=parseFloat(o),f=parseFloat(s);if(o&&s)return!y4(u)||!y4(f)?void 0:{width:u,height:f,type:"svg",mime:"image/svg+xml",wUnits:_m(o),hUnits:_m(s)};var c=(l||"").trim().split(/[\s,]+/),h=parseFloat(c[2]),d=parseFloat(c[3]);if(!(!y4(h)||!y4(d))&&_m(c[2])===_m(c[3])){var p=h/d;return o?y4(u)?{width:u,height:u/p,type:"svg",mime:"image/svg+xml",wUnits:_m(o),hUnits:_m(o)}:void 0:s?y4(f)?{width:f*p,height:f,type:"svg",mime:"image/svg+xml",wUnits:_m(s),hUnits:_m(s)}:void 0:{width:h,height:d,type:"svg",mime:"image/svg+xml",wUnits:_m(c[2]),hUnits:_m(c[3])}}}}}});var hIe=K((mXr,cIe)=>{"use strict";var nQt=OK().parse,aQt=OK().MAX_DATA_LENGTH;cIe.exports=function(e){var t=0;e[0]===239&&e[1]===187&&e[2]===191&&(t=3);for(var r="",i=Math.min(e.length,t+aQt),n=t;n{"use strict";var vIe=Vu().str2arr,dIe=Vu().sliceEq,oQt=Vu().readUInt16LE,sQt=Vu().readUInt16BE,lQt=Vu().readUInt32LE,uQt=Vu().readUInt32BE,fQt=vIe("II*\0"),cQt=vIe("MM\0*");function mI(e,t,r){return r?sQt(e,t):oQt(e,t)}function NK(e,t,r){return r?uQt(e,t):lQt(e,t)}function pIe(e,t,r){var i=mI(e,t+2,r),n=NK(e,t+4,r);return n!==1||i!==3&&i!==4?null:i===3?mI(e,t+8,r):NK(e,t+8,r)}mIe.exports=function(e){if(!(e.length<8)&&!(!dIe(e,0,fQt)&&!dIe(e,0,cQt))){var t=e[0]===77,r=NK(e,4,t)-8;if(!(r<0)){var i=r+8;if(!(e.length-i<2)){var n=mI(e,i+0,t)*12;if(!(n<=0)&&(i+=2,!(e.length-i{"use strict";var bIe=Vu().str2arr,gIe=Vu().sliceEq,xIe=Vu().readUInt16LE,VK=Vu().readUInt32LE,hQt=pI(),dQt=bIe("RIFF"),pQt=bIe("WEBP");function vQt(e,t){if(!(e[t+3]!==157||e[t+4]!==1||e[t+5]!==42))return{width:xIe(e,t+6)&16383,height:xIe(e,t+8)&16383,type:"webp",mime:"image/webp",wUnits:"px",hUnits:"px"}}function mQt(e,t){if(e[t]===47){var r=VK(e,t+1);return{width:(r&16383)+1,height:(r>>14&16383)+1,type:"webp",mime:"image/webp",wUnits:"px",hUnits:"px"}}}function yQt(e,t){return{width:(e[t+6]<<16|e[t+5]<<8|e[t+4])+1,height:(e[t+9]<<16|e[t+8]<<8|e[t+7])+1,type:"webp",mime:"image/webp",wUnits:"px",hUnits:"px"}}_Ie.exports=function(e){if(!(e.length<16)&&!(!gIe(e,0,dQt)||!gIe(e,8,pQt))){var t=12,r=null,i=0,n=VK(e,4)+8;if(!(n>e.length)){for(;t+8=10?r=r||vQt(e,t+8):a==="VP8L"&&o>=5?r=r||mQt(e,t+8):a==="VP8X"&&o>=10?r=r||yQt(e,t+8):a==="EXIF"&&(i=hQt.get_orientation(e.slice(t+8,t+8+o)),t=1/0),t+=8+o}if(r)return i>0&&(r.orientation=i),r}}}});var TIe=K((xXr,AIe)=>{"use strict";AIe.exports={avif:Vze(),bmp:jze(),gif:Zze(),ico:Jze(),jpeg:eIe(),png:aIe(),psd:lIe(),svg:hIe(),tiff:yIe(),webp:wIe()}});var MIe=K((bXr,GK)=>{"use strict";var UK=TIe();function gQt(e){for(var t=Object.keys(UK),r=0;r0&&i.height>0?i:null}return null}GK.exports=function(t){return gQt(t)};GK.exports.parsers=UK});var EIe=K(SIe=>{"use strict";var xQt=MIe(),bQt=my().IMAGE_URL_PREFIX,_Qt=r_().Buffer;SIe.getImageSize=function(e){var t=e.replace(bQt,""),r=new _Qt(t,"base64");return xQt(r)}});var DIe=K((wXr,CIe)=>{"use strict";var kIe=St(),wQt=(WA(),or(gS)),AQt=Hs(),yI=Cs(),TQt=St().maxRowLength,MQt=EIe().getImageSize;CIe.exports=function(t,r){var i,n;if(r._hasZ)i=r.z.length,n=TQt(r.z);else if(r._hasSource){var a=MQt(r.source);i=a.height,n=a.width}var o=yI.getFromId(t,r.xaxis||"x"),s=yI.getFromId(t,r.yaxis||"y"),l=o.d2c(r.x0)-r.dx/2,u=s.d2c(r.y0)-r.dy/2,f,c=[l,l+n*r.dx],h=[u,u+i*r.dy];if(o&&o.type==="log")for(f=0;f{"use strict";var CQt=No(),y_=St(),FIe=y_.strTranslate,DQt=(Rp(),or(Ip)),FQt=(WA(),or(gS)),LQt=EY(),PQt=(f8(),or(u8)).STYLE;LIe.exports=function(t,r,i,n){var a=r.xaxis,o=r.yaxis,s=!t._context._exportedPlot&&LQt();y_.makeTraceGroups(n,i,"im").each(function(l){var u=CQt.select(this),f=l[0],c=f.trace,h=(c.zsmooth==="fast"||c.zsmooth===!1&&s)&&!c._hasZ&&c._hasSource&&a.type==="linear"&&o.type==="linear";c._realImage=h;var d=f.z,p=f.x0,v=f.y0,y=f.w,m=f.h,w=c.dx,_=c.dy,b,M,x,T,A,g;for(g=0;b===void 0&&g0;)M=a.c2p(p+g*w),g--;for(g=0;T===void 0&&g0;)A=o.c2p(v+g*_),g--;if(Mz[0];if(B||O){var W=b+S/2,X=T+C/2;I+="transform:"+FIe(W+"px",X+"px")+"scale("+(B?-1:1)+","+(O?-1:1)+")"+FIe(-W+"px",-X+"px")+";"}}P.attr("style",I);var Z=new Promise(function(H){if(c._hasZ)H();else if(c._hasSource)if(c._canvas&&c._canvas.el.width===y&&c._canvas.el.height===m&&c._canvas.source===c.source)H();else{var q=document.createElement("canvas");q.width=y,q.height=m;var Q=q.getContext("2d",{willReadFrequently:!0});c._image=c._image||new Image;var N=c._image;N.onload=function(){Q.drawImage(N,0,0),c._canvas={el:q,source:c.source},H()},N.setAttribute("src",c.source)}}).then(function(){var H,q;if(c._hasZ)q=F(function(U,J){var j=d[J][U];return y_.isTypedArray(j)&&(j=Array.from(j)),j}),H=q.toDataURL("image/png");else if(c._hasSource)if(h)H=c.source;else{var Q=c._canvas.el.getContext("2d",{willReadFrequently:!0}),N=Q.getImageData(0,0,y,m).data;q=F(function(U,J){var j=4*(J*y+U);return[N[j],N[j+1],N[j+2],N[j+3]]}),H=q.toDataURL("image/png")}P.attr({"xlink:href":H,height:C,width:S,x:b,y:T})});t._promises.push(Z)})}});var IIe=K((TXr,zIe)=>{"use strict";var zQt=No();zIe.exports=function(t){zQt.select(t).selectAll(".im image").style("opacity",function(r){return r[0].trace.opacity})}});var OIe=K((MXr,qIe)=>{"use strict";var RIe=Gf(),BIe=St(),gI=BIe.isArrayOrTypedArray,IQt=(WA(),or(gS));qIe.exports=function(t,r,i){var n=t.cd[0],a=n.trace,o=t.xa,s=t.ya;if(!(RIe.inbox(r-n.x0,r-(n.x0+n.w*a.dx),0)>0||RIe.inbox(i-n.y0,i-(n.y0+n.h*a.dy),0)>0)){var l=Math.floor((r-n.x0)/a.dx),u=Math.floor(Math.abs(i-n.y0)/a.dy),f;if(a._hasZ?f=n.z[u][l]:a._hasSource&&(f=a._canvas.el.getContext("2d",{willReadFrequently:!0}).getImageData(l,u,1,1).data),!!f){var c=n.hi||a.hoverinfo,h;if(c){var d=c.split("+");d.indexOf("all")!==-1&&(d=["color"]),d.indexOf("color")!==-1&&(h=!0)}var p=IQt.colormodel[a.colormodel],v=p.colormodel||a.colormodel,y=v.length,m=a._scaler(f),w=p.suffix,_=[];(a.hovertemplate||h)&&(_.push("["+[m[0]+w[0],m[1]+w[1],m[2]+w[2]].join(", ")),y===4&&_.push(", "+m[3]+w[3]),_.push("]"),_=_.join(""),t.extraText=v.toUpperCase()+": "+_);var b;gI(a.hovertext)&&gI(a.hovertext[u])?b=a.hovertext[u][l]:gI(a.text)&&gI(a.text[u])&&(b=a.text[u][l]);var M=s.c2p(n.y0+(u+.5)*a.dy),x=n.x0+(l+.5)*a.dx,T=n.y0+(u+.5)*a.dy,A="["+f.slice(0,a.colormodel.length).join(", ")+"]";return[BIe.extendFlat(t,{index:[u,l],x0:o.c2p(n.x0+l*a.dx),x1:o.c2p(n.x0+(l+1)*a.dx),y0:M,y1:M,color:m,xVal:x,xLabelVal:x,yVal:T,yLabelVal:T,zLabelVal:A,text:b,hovertemplateLabels:{zLabel:A,colorLabel:_,"color[0]Label":m[0]+w[0],"color[1]Label":m[1]+w[1],"color[2]Label":m[2]+w[2],"color[3]Label":m[3]+w[3]}})]}}}});var VIe=K((SXr,NIe)=>{"use strict";NIe.exports=function(t,r){return"xVal"in r&&(t.x=r.xVal),"yVal"in r&&(t.y=r.yVal),r.xa&&(t.xaxis=r.xa),r.ya&&(t.yaxis=r.ya),t.color=r.color,t.colormodel=r.trace.colormodel,t.z||(t.z=r.color),t}});var GIe=K((EXr,UIe)=>{"use strict";UIe.exports={attributes:(qX(),or(BX)).default,supplyDefaults:kDe(),calc:DIe(),plot:PIe(),style:IIe(),hoverPoints:OIe(),eventData:VIe(),moduleType:"trace",name:"image",basePlotModule:gc(),categories:["cartesian","svg","2dMap","noSortingByValue"],animatable:!1,meta:{}}});var jIe=K((kXr,HIe)=>{"use strict";HIe.exports=GIe()});var g_=K((CXr,$Ie)=>{"use strict";var xI=Tu(),RQt=kf().attributes,BQt=lf(),qQt=Gc(),{hovertemplateAttrs:OQt,texttemplateAttrs:NQt,templatefallbackAttrs:WIe}=gu(),C2=Os().extendFlat,VQt=gh().pattern,bI=BQt({editType:"plot",arrayOk:!0,colorEditType:"plot"});$Ie.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:qQt.defaultLine,arrayOk:!0,editType:"style"},width:{valType:"number",min:0,dflt:0,arrayOk:!0,editType:"style"},editType:"calc"},pattern:VQt,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:C2({},xI.hoverinfo,{flags:["label","text","value","percent","name"]}),hovertemplate:OQt({},{keys:["label","color","value","percent","text"]}),hovertemplatefallback:WIe(),texttemplate:NQt({editType:"plot"},{keys:["label","color","value","percent","text"]}),texttemplatefallback:WIe({editType:"plot"}),textposition:{valType:"enumerated",values:["inside","outside","auto","none"],dflt:"auto",arrayOk:!0,editType:"plot"},textfont:C2({},bI,{}),insidetextorientation:{valType:"enumerated",values:["horizontal","radial","tangential","auto"],dflt:"auto",editType:"plot"},insidetextfont:C2({},bI,{}),outsidetextfont:C2({},bI,{}),automargin:{valType:"boolean",dflt:!1,editType:"plot"},showlegend:C2({},xI.showlegend,{arrayOk:!0}),legend:C2({},xI.legend,{arrayOk:!0}),legendrank:C2({},xI.legendrank,{arrayOk:!0}),title:{text:{valType:"string",dflt:"",editType:"plot"},font:C2({},bI,{}),position:{valType:"enumerated",values:["top left","top center","top right","middle center","bottom left","bottom center","bottom right"],editType:"plot"},editType:"plot"},domain:RQt({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"}}});var x_=K((DXr,ZIe)=>{"use strict";var UQt=Hs(),aE=St(),GQt=g_(),HQt=kf().defaults,jQt=cp().handleText,WQt=St().coercePattern;function YIe(e,t){var r=aE.isArrayOrTypedArray(e),i=aE.isArrayOrTypedArray(t),n=Math.min(r?e.length:1/0,i?t.length:1/0);if(isFinite(n)||(n=0),n&&i){for(var a,o=0;o0){a=!0;break}}a||(n=0)}return{hasLabels:r,hasValues:i,len:n}}function XIe(e,t,r,i,n){var a=i("marker.line.width");a&&i("marker.line.color",n?void 0:r.paper_bgcolor);var o=i("marker.colors");WQt(i,"marker.pattern",o),e.marker&&!t.marker.pattern.fgcolor&&(t.marker.pattern.fgcolor=e.marker.colors),t.marker.pattern.bgcolor||(t.marker.pattern.bgcolor=r.paper_bgcolor)}function $Qt(e,t,r,i){function n(w,_){return aE.coerce(e,t,GQt,w,_)}var a=n("labels"),o=n("values"),s=YIe(a,o),l=s.len;if(t._hasLabels=s.hasLabels,t._hasValues=s.hasValues,!t._hasLabels&&t._hasValues&&(n("label0"),n("dlabel")),!l){t.visible=!1;return}t._length=l,XIe(e,t,i,n,!0),n("scalegroup");var u=n("text"),f=n("texttemplate");n("texttemplatefallback");var c;if(f||(c=n("textinfo",aE.isArrayOrTypedArray(u)?"text+percent":"percent")),n("hovertext"),n("hovertemplate"),n("hovertemplatefallback"),f||c&&c!=="none"){var h=n("textposition");jQt(e,t,i,n,h,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1});var d=Array.isArray(h)||h==="auto",p=d||h==="outside";p&&n("automargin"),(h==="inside"||h==="auto"||Array.isArray(h))&&n("insidetextorientation")}else c==="none"&&n("textposition","none");HQt(t,i,n);var v=n("hole"),y=n("title.text");if(y){var m=n("title.position",v?"middle center":"top center");!v&&m==="middle center"&&(t.title.position="top center"),aE.coerceFont(n,"title.font",i.font)}n("sort"),n("direction"),n("rotation"),n("pull")}ZIe.exports={handleLabelsAndValues:YIe,handleMarkerDefaults:XIe,supplyDefaults:$Qt}});var _I=K((FXr,KIe)=>{"use strict";KIe.exports={hiddenlabels:{valType:"data_array",editType:"calc"},piecolorway:{valType:"colorlist",editType:"calc"},extendpiecolors:{valType:"boolean",dflt:!0,editType:"calc"}}});var QIe=K((LXr,JIe)=>{"use strict";var YQt=St(),XQt=_I();JIe.exports=function(t,r){function i(n,a){return YQt.coerce(t,r,XQt,n,a)}i("hiddenlabels"),i("piecolorway",r.colorway),i("extendpiecolors")}});var x4=K((PXr,rRe)=>{"use strict";var ZQt=Hs(),g4=wo(),KQt={};function JQt(e,t){var r=[],i=e._fullLayout,n=i.hiddenlabels||[],a=t.labels,o=t.marker.colors||[],s=t.values,l=t._length,u=t._hasValues&&l,f,c;if(t.dlabel)for(a=new Array(l),f=0;f=0});var b=t.type==="funnelarea"?v:t.sort;return b&&r.sort(function(M,x){return x.v-M.v}),r[0]&&(r[0].vTotal=p),r}function eRe(e){return function(r,i){if(!r||!g4.isValid(r))return!1;let n=g4.rgbaString(r);return e[i]||(e[i]=n),n}}function QQt(e,t){var r=(t||{}).type;r||(r="pie");var i=e._fullLayout,n=e.calcdata,a=i[r+"colorway"],o=i["_"+r+"colormap"];i["extend"+r+"colors"]&&(a=tRe(a,KQt));for(var s=0,l=0;l{"use strict";var eer=ud().appendArrayMultiPointValues;iRe.exports=function(t,r){var i={curveNumber:r.index,pointNumbers:t.pts,data:r._input,fullData:r,label:t.label,color:t.color,value:t.v,percent:t.percent,text:t.text,bbox:t.bbox,v:t.v};return t.pts.length===1&&(i.pointNumber=i.i=t.pts[0]),eer(i,r,t.pts),r.type==="funnelarea"&&(delete i.v,delete i.i),i}});var MI=K((IXr,MRe)=>{"use strict";var qd=No(),ter=yf(),wI=Gf(),fRe=wo(),Fy=Is(),n0=St(),rer=n0.strScale,aRe=n0.strTranslate,HK=Du(),cRe=E0(),ier=cRe.recordMinTextSize,ner=cRe.clearMinTextSize,hRe=(i2(),or(r2)).TEXTPAD,fl=$g(),AI=nRe(),oRe=St().isValidTextValue;function aer(e,t){var r=e._context.staticPlot,i=e._fullLayout,n=i._size;ner("pie",i),vRe(t,e),wRe(t,n);var a=n0.makeTraceGroups(i._pielayer,t,"trace").each(function(o){var s=qd.select(this),l=o[0],u=l.trace;per(o),s.attr("stroke-linejoin","round"),s.each(function(){var f=qd.select(this).selectAll("g.slice").data(o);f.enter().append("g").classed("slice",!0),f.exit().remove();var c=[[[],[]],[[],[]]],h=!1;f.each(function(b,M){if(b.hidden){qd.select(this).selectAll("path,g").remove();return}b.pointNumber=b.i,b.curveNumber=u.index,c[b.pxmid[1]<0?0:1][b.pxmid[0]<0?0:1].push(b);var x=l.cx,T=l.cy,A=qd.select(this),g=A.selectAll("path.surface").data([b]);if(g.enter().append("path").classed("surface",!0).style({"pointer-events":r?"none":"all"}),A.call(dRe,e,o),u.pull){var E=+fl.castOption(u.pull,b.pts)||0;E>0&&(x+=E*b.pxmid[0],T+=E*b.pxmid[1])}b.cxFinal=x,b.cyFinal=T;function S(L,z,B,O){var W=O*(z[0]-L[0]),X=O*(z[1]-L[1]);return"a"+O*l.r+","+O*l.r+" 0 "+b.largeArc+(B?" 1 ":" 0 ")+W+","+X}var C=u.hole;if(b.v===l.vTotal){var k="M"+(x+b.px0[0])+","+(T+b.px0[1])+S(b.px0,b.pxmid,!0,1)+S(b.pxmid,b.px0,!0,1)+"Z";C?g.attr("d","M"+(x+C*b.px0[0])+","+(T+C*b.px0[1])+S(b.px0,b.pxmid,!1,C)+S(b.pxmid,b.px0,!1,C)+"Z"+k):g.attr("d",k)}else{var D=S(b.px0,b.px1,!0,1);if(C){var F=1-C;g.attr("d","M"+(x+C*b.px1[0])+","+(T+C*b.px1[1])+S(b.px1,b.px0,!1,C)+"l"+F*b.px0[0]+","+F*b.px0[1]+D+"Z")}else g.attr("d","M"+x+","+T+"l"+b.px0[0]+","+b.px0[1]+D+"Z")}ARe(e,b,l);var P=fl.castOption(u.textposition,b.pts),I=A.selectAll("g.slicetext").data(b.text&&P!=="none"?[0]:[]);I.enter().append("g").classed("slicetext",!0),I.exit().remove(),I.each(function(){var L=n0.ensureSingle(qd.select(this),"text","",function(q){q.attr("data-notex",1)}),z=n0.ensureUniformFontSize(e,P==="outside"?ser(u,b,i.font):pRe(u,b,i.font));L.text(b.text).attr({class:"slicetext",transform:"","text-anchor":"middle"}).call(Fy.font,z).call(HK.convertToTspans,e);var B=Fy.bBox(L.node()),O;if(P==="outside")O=uRe(B,b);else if(O=mRe(B,b,l),P==="auto"&&O.scale<1){var W=n0.ensureUniformFontSize(e,u.outsidetextfont);L.call(Fy.font,W),B=Fy.bBox(L.node()),O=uRe(B,b)}var X=O.textPosAngle,Z=X===void 0?b.pxmid:TI(l.r,X);if(O.targetX=x+Z[0]*O.rCenter+(O.x||0),O.targetY=T+Z[1]*O.rCenter+(O.y||0),TRe(O,B),O.outside){var H=O.targetY;b.yLabelMin=H-B.height/2,b.yLabelMid=H,b.yLabelMax=H+B.height/2,b.labelExtraX=0,b.labelExtraY=0,h=!0}O.fontSize=z.size,ier(u.type,O,i),o[M].transform=O,n0.setTransormAndDisplay(L,O)})});var d=qd.select(this).selectAll("g.titletext").data(u.title.text?[0]:[]);if(d.enter().append("g").classed("titletext",!0),d.exit().remove(),d.each(function(){var b=n0.ensureSingle(qd.select(this),"text","",function(T){T.attr("data-notex",1)}),M=u.title.text;u._meta&&(M=n0.templateString(M,u._meta)),b.text(M).attr({class:"titletext",transform:"","text-anchor":"middle"}).call(Fy.font,u.title.font).call(HK.convertToTspans,e);var x;u.title.position==="middle center"?x=fer(l):x=bRe(l,n),b.attr("transform",aRe(x.x,x.y)+rer(Math.min(1,x.scale))+aRe(x.tx,x.ty))}),h&&her(c,u),oer(f,u),h&&u.automargin){var p=Fy.bBox(s.node()),v=u.domain,y=n.w*(v.x[1]-v.x[0]),m=n.h*(v.y[1]-v.y[0]),w=(.5*y-l.r)/n.w,_=(.5*m-l.r)/n.h;ter.autoMargin(e,"pie."+u.uid+".automargin",{xl:v.x[0]-w,xr:v.x[1]+w,yb:v.y[0]-_,yt:v.y[1]+_,l:Math.max(l.cx-l.r-p.left,0),r:Math.max(p.right-(l.cx+l.r),0),b:Math.max(p.bottom-(l.cy+l.r),0),t:Math.max(l.cy-l.r-p.top,0),pad:5})}})});setTimeout(function(){a.selectAll("tspan").each(function(){var o=qd.select(this);o.attr("dy")&&o.attr("dy",o.attr("dy"))})},0)}function oer(e,t){e.each(function(r){var i=qd.select(this);if(!r.labelExtraX&&!r.labelExtraY){i.select("path.textline").remove();return}var n=i.select("g.slicetext text");r.transform.targetX+=r.labelExtraX,r.transform.targetY+=r.labelExtraY,n0.setTransormAndDisplay(n,r.transform);var a=r.cxFinal+r.pxmid[0],o=r.cyFinal+r.pxmid[1],s="M"+a+","+o,l=(r.yLabelMax-r.yLabelMin)*(r.pxmid[0]<0?-1:1)/4;if(r.labelExtraX){var u=r.labelExtraX*r.pxmid[1]/r.pxmid[0],f=r.yLabelMid+r.labelExtraY-(r.cyFinal+r.pxmid[1]);Math.abs(u)>Math.abs(f)?s+="l"+f*r.pxmid[0]/r.pxmid[1]+","+f+"H"+(a+r.labelExtraX+l):s+="l"+r.labelExtraX+","+u+"v"+(f-u)+"h"+l}else s+="V"+(r.yLabelMid+r.labelExtraY)+"h"+l;n0.ensureSingle(i,"path","textline").call(fRe.stroke,t.outsidetextfont.color).attr({"stroke-width":Math.min(2,t.outsidetextfont.size/8),d:s,fill:"none"})})}function dRe(e,t,r){var i=r[0],n=i.cx,a=i.cy,o=i.trace,s=o.type==="funnelarea";"_hasHoverLabel"in o||(o._hasHoverLabel=!1),"_hasHoverEvent"in o||(o._hasHoverEvent=!1),e.on("mouseover",function(l){var u=t._fullLayout,f=t._fullData[o.index];if(!(t._dragging||u.hovermode===!1)){var c=f.hoverinfo;if(Array.isArray(c)&&(c=wI.castHoverinfo({hoverinfo:[fl.castOption(c,l.pts)],_module:o._module},u,0)),c==="all"&&(c="label+text+value+percent+name"),f.hovertemplate||c!=="none"&&c!=="skip"&&c){var h=l.rInscribed||0,d=n+l.pxmid[0]*(1-h),p=a+l.pxmid[1]*(1-h),v=u.separators,y=[];if(c&&c.indexOf("label")!==-1&&y.push(l.label),l.text=fl.castOption(f.hovertext||f.text,l.pts),c&&c.indexOf("text")!==-1){var m=l.text;n0.isValidTextValue(m)&&y.push(m)}l.value=l.v,l.valueLabel=fl.formatPieValue(l.v,v),c&&c.indexOf("value")!==-1&&y.push(l.valueLabel),l.percent=l.v/i.vTotal,l.percentLabel=fl.formatPiePercent(l.percent,v),c&&c.indexOf("percent")!==-1&&y.push(l.percentLabel);var w=f.hoverlabel,_=w.font,b=[];wI.loneHover({trace:o,x0:d-h*i.r,x1:d+h*i.r,y:p,_x0:s?n+l.TL[0]:d-h*i.r,_x1:s?n+l.TR[0]:d+h*i.r,_y0:s?a+l.TL[1]:p-h*i.r,_y1:s?a+l.BL[1]:p+h*i.r,text:y.join("
"),name:f.hovertemplate||c.indexOf("name")!==-1?f.name:void 0,idealAlign:l.pxmid[0]<0?"left":"right",color:fl.castOption(w.bgcolor,l.pts)||l.color,borderColor:fl.castOption(w.bordercolor,l.pts),fontFamily:fl.castOption(_.family,l.pts),fontSize:fl.castOption(_.size,l.pts),fontColor:fl.castOption(_.color,l.pts),nameLength:fl.castOption(w.namelength,l.pts),textAlign:fl.castOption(w.align,l.pts),hovertemplate:fl.castOption(f.hovertemplate,l.pts),hovertemplateLabels:l,eventData:[AI(l,f)]},{container:u._hoverlayer.node(),outerContainer:u._paper.node(),gd:t,inOut_bbox:b}),l.bbox=b[0],o._hasHoverLabel=!0}o._hasHoverEvent=!0,t.emit("plotly_hover",{points:[AI(l,f)],event:qd.event})}}),e.on("mouseout",function(l){var u=t._fullLayout,f=t._fullData[o.index],c=qd.select(this).datum();o._hasHoverEvent&&(l.originalEvent=qd.event,t.emit("plotly_unhover",{points:[AI(c,f)],event:qd.event}),o._hasHoverEvent=!1),o._hasHoverLabel&&(wI.loneUnhover(u._hoverlayer.node()),o._hasHoverLabel=!1)}),e.on("click",function(l){var u=t._fullLayout,f=t._fullData[o.index];t._dragging||u.hovermode===!1||(t._hoverdata=[AI(l,f)],wI.click(t,qd.event))})}function ser(e,t,r){var i=fl.castOption(e.outsidetextfont.color,t.pts)||fl.castOption(e.textfont.color,t.pts)||r.color,n=fl.castOption(e.outsidetextfont.family,t.pts)||fl.castOption(e.textfont.family,t.pts)||r.family,a=fl.castOption(e.outsidetextfont.size,t.pts)||fl.castOption(e.textfont.size,t.pts)||r.size,o=fl.castOption(e.outsidetextfont.weight,t.pts)||fl.castOption(e.textfont.weight,t.pts)||r.weight,s=fl.castOption(e.outsidetextfont.style,t.pts)||fl.castOption(e.textfont.style,t.pts)||r.style,l=fl.castOption(e.outsidetextfont.variant,t.pts)||fl.castOption(e.textfont.variant,t.pts)||r.variant,u=fl.castOption(e.outsidetextfont.textcase,t.pts)||fl.castOption(e.textfont.textcase,t.pts)||r.textcase,f=fl.castOption(e.outsidetextfont.lineposition,t.pts)||fl.castOption(e.textfont.lineposition,t.pts)||r.lineposition,c=fl.castOption(e.outsidetextfont.shadow,t.pts)||fl.castOption(e.textfont.shadow,t.pts)||r.shadow;return{color:i,family:n,size:a,weight:o,style:s,variant:l,textcase:u,lineposition:f,shadow:c}}function pRe(e,t,r){var i=fl.castOption(e.insidetextfont.color,t.pts);!i&&e._input.textfont&&(i=fl.castOption(e._input.textfont.color,t.pts));var n=fl.castOption(e.insidetextfont.family,t.pts)||fl.castOption(e.textfont.family,t.pts)||r.family,a=fl.castOption(e.insidetextfont.size,t.pts)||fl.castOption(e.textfont.size,t.pts)||r.size,o=fl.castOption(e.insidetextfont.weight,t.pts)||fl.castOption(e.textfont.weight,t.pts)||r.weight,s=fl.castOption(e.insidetextfont.style,t.pts)||fl.castOption(e.textfont.style,t.pts)||r.style,l=fl.castOption(e.insidetextfont.variant,t.pts)||fl.castOption(e.textfont.variant,t.pts)||r.variant,u=fl.castOption(e.insidetextfont.textcase,t.pts)||fl.castOption(e.textfont.textcase,t.pts)||r.textcase,f=fl.castOption(e.insidetextfont.lineposition,t.pts)||fl.castOption(e.textfont.lineposition,t.pts)||r.lineposition,c=fl.castOption(e.insidetextfont.shadow,t.pts)||fl.castOption(e.textfont.shadow,t.pts)||r.shadow;return{color:i||fRe.contrast(t.color),family:n,size:a,weight:o,style:s,variant:l,textcase:u,lineposition:f,shadow:c}}function vRe(e,t){for(var r,i,n=0;n=-4;w-=2)m(Math.PI*w,"tan");for(w=4;w>=-4;w-=2)m(Math.PI*(w+1),"tan")}if(c||d){for(w=4;w>=-4;w-=2)m(Math.PI*(w+1.5),"rad");for(w=4;w>=-4;w-=2)m(Math.PI*(w+.5),"rad")}}if(s||p||c){var _=Math.sqrt(e.width*e.width+e.height*e.height);if(y={scale:n*i*2/_,rCenter:1-n,rotate:0},y.textPosAngle=(t.startangle+t.stopangle)/2,y.scale>=1)return y;v.push(y)}(p||d)&&(y=sRe(e,i,o,l,u),y.textPosAngle=(t.startangle+t.stopangle)/2,v.push(y)),(p||h)&&(y=lRe(e,i,o,l,u),y.textPosAngle=(t.startangle+t.stopangle)/2,v.push(y));for(var b=0,M=0,x=0;x=1)break}return v[b]}function ler(e,t){var r=e.startangle,i=e.stopangle;return r>t&&t>i||r0?1:-1)/2,y:a/(1+r*r/(i*i)),outside:!0}}function fer(e){var t=Math.sqrt(e.titleBox.width*e.titleBox.width+e.titleBox.height*e.titleBox.height);return{x:e.cx,y:e.cy,scale:e.trace.hole*e.r*2/t,tx:0,ty:-e.titleBox.height/2+e.trace.title.font.size}}function bRe(e,t){var r=1,i=1,n,a=e.trace,o={x:e.cx,y:e.cy},s={tx:0,ty:0};s.ty+=a.title.font.size,n=_Re(a),a.title.position.indexOf("top")!==-1?(o.y-=(1+n)*e.r,s.ty-=e.titleBox.height):a.title.position.indexOf("bottom")!==-1&&(o.y+=(1+n)*e.r);var l=cer(e.r,e.trace.aspectratio),u=t.w*(a.domain.x[1]-a.domain.x[0])/2;return a.title.position.indexOf("left")!==-1?(u=u+l,o.x-=(1+n)*l,s.tx+=e.titleBox.width/2):a.title.position.indexOf("center")!==-1?u*=2:a.title.position.indexOf("right")!==-1&&(u=u+l,o.x+=(1+n)*l,s.tx-=e.titleBox.width/2),r=u/e.titleBox.width,i=jK(e,t)/e.titleBox.height,{x:o.x,y:o.y,scale:Math.min(r,i),tx:s.tx,ty:s.ty}}function cer(e,t){return e/(t===void 0?1:t)}function jK(e,t){var r=e.trace,i=t.h*(r.domain.y[1]-r.domain.y[0]);return Math.min(e.titleBox.height,i/2)}function _Re(e){var t=e.pull;if(!t)return 0;var r;if(n0.isArrayOrTypedArray(t))for(t=0,r=0;rt&&(t=e.pull[r]);return t}function her(e,t){var r,i,n,a,o,s,l,u,f,c,h,d,p;function v(_,b){return _.pxmid[1]-b.pxmid[1]}function y(_,b){return b.pxmid[1]-_.pxmid[1]}function m(_,b){b||(b={});var M=b.labelExtraY+(i?b.yLabelMax:b.yLabelMin),x=i?_.yLabelMin:_.yLabelMax,T=i?_.yLabelMax:_.yLabelMin,A=_.cyFinal+o(_.px0[1],_.px1[1]),g=M-x,E,S,C,k,D,F;if(g*l>0&&(_.labelExtraY=g),!!n0.isArrayOrTypedArray(t.pull))for(S=0;S=(fl.castOption(t.pull,C.pts)||0))&&((_.pxmid[1]-C.pxmid[1])*l>0?(k=C.cyFinal+o(C.px0[1],C.px1[1]),g=k-x-_.labelExtraY,g*l>0&&(_.labelExtraY+=g)):(T+_.labelExtraY-A)*l>0&&(E=3*s*Math.abs(S-c.indexOf(_)),D=C.cxFinal+a(C.px0[0],C.px1[0]),F=D+E-(_.cxFinal+_.pxmid[0])-_.labelExtraX,F*s>0&&(_.labelExtraX+=F)))}for(i=0;i<2;i++)for(n=i?v:y,o=i?Math.max:Math.min,l=i?1:-1,r=0;r<2;r++){for(a=r?Math.max:Math.min,s=r?1:-1,u=e[i][r],u.sort(n),f=e[1-i][r],c=f.concat(u),d=[],h=0;h1?(u=r.r,f=u/n.aspectratio):(f=r.r,u=f*n.aspectratio),u*=(1+n.baseratio)/2,l=u*f}o=Math.min(o,l/r.vTotal)}for(i=0;it.vTotal/2?1:0,u.halfangle=Math.PI*Math.min(u.v/t.vTotal,.5),u.ring=1-i.hole,u.rInscribed=uer(u,t))}function TI(e,t){return[e*Math.sin(t),-e*Math.cos(t)]}function ARe(e,t,r){var i=e._fullLayout,n=r.trace,a=n.texttemplate,o=n.textinfo;if(!a&&o&&o!=="none"){var s=o.split("+"),l=function(b){return s.indexOf(b)!==-1},u=l("label"),f=l("text"),c=l("value"),h=l("percent"),d=i.separators,p;if(p=u?[t.label]:[],f){var v=fl.getFirstFilled(n.text,t.pts);oRe(v)&&p.push(v)}c&&p.push(fl.formatPieValue(t.v,d)),h&&p.push(fl.formatPiePercent(t.v/r.vTotal,d)),t.text=p.join("
")}function y(b){return{label:b.label,value:b.v,valueLabel:fl.formatPieValue(b.v,i.separators),percent:b.v/r.vTotal,percentLabel:fl.formatPiePercent(b.v/r.vTotal,i.separators),color:b.color,text:b.text,customdata:n0.castOption(n,b.i,"customdata")}}if(a){var m=n0.castOption(n,t.i,"texttemplate");if(!m)t.text="";else{var w=y(t),_=fl.getFirstFilled(n.text,t.pts);(oRe(_)||_==="")&&(w.text=_),t.text=n0.texttemplateString({data:[w,n._meta],fallback:n.texttemplatefallback,labels:w,locale:e._fullLayout._d3locale,template:m})}}}function TRe(e,t){var r=e.rotate*Math.PI/180,i=Math.cos(r),n=Math.sin(r),a=(t.left+t.right)/2,o=(t.top+t.bottom)/2;e.textX=a*i-o*n,e.textY=a*n+o*i,e.noCenter=!0}MRe.exports={plot:aer,formatSliceLabel:ARe,transformInsideText:mRe,determineInsideTextFont:pRe,positionTitleOutside:bRe,prerenderTitles:vRe,layoutAreas:wRe,attachFxHandlers:dRe,computeTransform:TRe}});var kRe=K((RXr,ERe)=>{"use strict";var SRe=No(),ver=Vw(),mer=E0().resizeText;ERe.exports=function(t){var r=t._fullLayout._pielayer.selectAll(".trace");mer(t,r,"pie"),r.each(function(i){var n=i[0],a=n.trace,o=SRe.select(this);o.style({opacity:a.opacity}),o.selectAll("path.surface").each(function(s){SRe.select(this).call(ver,s,a,t)})})}});var DRe=K(b4=>{"use strict";var CRe=yf();b4.name="pie";b4.plot=function(e,t,r,i){CRe.plotBasePlot(b4.name,e,t,r,i)};b4.clean=function(e,t,r,i){CRe.cleanBasePlot(b4.name,e,t,r,i)}});var LRe=K((qXr,FRe)=>{"use strict";FRe.exports={attributes:g_(),supplyDefaults:x_().supplyDefaults,supplyLayoutDefaults:QIe(),layoutAttributes:_I(),calc:x4().calc,crossTraceCalc:x4().crossTraceCalc,plot:MI().plot,style:kRe(),styleOne:Vw(),moduleType:"trace",name:"pie",basePlotModule:DRe(),categories:["pie-like","pie","showLegend"],meta:{}}});var zRe=K((OXr,PRe)=>{"use strict";PRe.exports=LRe()});var RRe=K(_4=>{"use strict";var IRe=yf();_4.name="sunburst";_4.plot=function(e,t,r,i){IRe.plotBasePlot(_4.name,e,t,r,i)};_4.clean=function(e,t,r,i){IRe.cleanBasePlot(_4.name,e,t,r,i)}});var WK={};Fl(WK,{CLICK_TRANSITION_EASING:()=>ger,CLICK_TRANSITION_TIME:()=>yer,eventDataKeys:()=>xer});var yer,ger,xer,$K=ps(()=>{"use strict";yer=750,ger="linear",xer=["currentPath","root","entry","percentRoot","percentEntry","percentParent"]});var sE=K((VXr,ORe)=>{"use strict";var ber=Tu(),{hovertemplateAttrs:_er,texttemplateAttrs:wer,templatefallbackAttrs:BRe}=gu(),Aer=Wu(),Ter=kf().attributes,Ly=g_(),qRe=($K(),or(WK)),oE=Os().extendFlat,Mer=gh().pattern;ORe.exports={labels:{valType:"data_array",editType:"calc"},parents:{valType:"data_array",editType:"calc"},values:{valType:"data_array",editType:"calc"},branchvalues:{valType:"enumerated",values:["remainder","total"],dflt:"remainder",editType:"calc"},count:{valType:"flaglist",flags:["branches","leaves"],dflt:"leaves",editType:"calc"},level:{valType:"any",editType:"plot",anim:!0},maxdepth:{valType:"integer",editType:"plot",dflt:-1},marker:oE({colors:{valType:"data_array",editType:"calc"},line:{color:oE({},Ly.marker.line.color,{dflt:null}),width:oE({},Ly.marker.line.width,{dflt:1}),editType:"calc"},pattern:Mer,editType:"calc"},Aer("marker",{colorAttr:"colors",anim:!1})),leaf:{opacity:{valType:"number",editType:"style",min:0,max:1},editType:"plot"},text:Ly.text,textinfo:{valType:"flaglist",flags:["label","text","value","current path","percent root","percent entry","percent parent"],extras:["none"],editType:"plot"},texttemplate:wer({editType:"plot"},{keys:qRe.eventDataKeys.concat(["label","value"])}),texttemplatefallback:BRe({editType:"plot"}),hovertext:Ly.hovertext,hoverinfo:oE({},ber.hoverinfo,{flags:["label","text","value","name","current path","percent root","percent entry","percent parent"],dflt:"label+text+value+name"}),hovertemplate:_er({},{keys:qRe.eventDataKeys}),hovertemplatefallback:BRe(),textfont:Ly.textfont,insidetextorientation:Ly.insidetextorientation,insidetextfont:Ly.insidetextfont,outsidetextfont:oE({},Ly.outsidetextfont,{}),rotation:{valType:"angle",dflt:0,editType:"plot"},sort:Ly.sort,root:{color:{valType:"color",editType:"calc",dflt:"rgba(0,0,0,0)"},editType:"calc"},domain:Ter({name:"sunburst",trace:!0,editType:"calc"})}});var YK=K((UXr,NRe)=>{"use strict";NRe.exports={sunburstcolorway:{valType:"colorlist",editType:"calc"},extendsunburstcolors:{valType:"boolean",dflt:!0,editType:"calc"}}});var HRe=K((GXr,GRe)=>{"use strict";var VRe=St(),Ser=sE(),Eer=kf().defaults,ker=cp().handleText,Cer=x_().handleMarkerDefaults,URe=gf(),Der=URe.hasColorscale,Fer=URe.handleDefaults;GRe.exports=function(t,r,i,n){function a(h,d){return VRe.coerce(t,r,Ser,h,d)}var o=a("labels"),s=a("parents");if(!o||!o.length||!s||!s.length){r.visible=!1;return}var l=a("values");l&&l.length?a("branchvalues"):a("count"),a("level"),a("maxdepth"),Cer(t,r,n,a);var u=r._hasColorscale=Der(t,"marker","colors")||(t.marker||{}).coloraxis;u&&Fer(t,r,n,a,{prefix:"marker.",cLetter:"c"}),a("leaf.opacity",u?1:.7);var f=a("text");a("texttemplate"),a("texttemplatefallback"),r.texttemplate||a("textinfo",VRe.isArrayOrTypedArray(f)?"text+label":"label"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback");var c="auto";ker(t,r,n,a,c,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1}),a("insidetextorientation"),a("sort"),a("rotation"),a("root.color"),Eer(r,n,a),r._length=null}});var WRe=K((HXr,jRe)=>{"use strict";var Ler=St(),Per=YK();jRe.exports=function(t,r){function i(n,a){return Ler.coerce(t,r,Per,n,a)}i("sunburstcolorway",r.colorway),i("extendsunburstcolors")}});var lE=K((SI,$Re)=>{(function(e,t){typeof SI=="object"&&typeof $Re!="undefined"?t(SI):(e=e||self,t(e.d3=e.d3||{}))})(SI,function(e){"use strict";function t(Le,De){return Le.parent===De.parent?1:2}function r(Le){return Le.reduce(i,0)/Le.length}function i(Le,De){return Le+De.x}function n(Le){return 1+Le.reduce(a,0)}function a(Le,De){return Math.max(Le,De.y)}function o(Le){for(var De;De=Le.children;)Le=De[0];return Le}function s(Le){for(var De;De=Le.children;)Le=De[De.length-1];return Le}function l(){var Le=t,De=1,Ue=1,Pe=!1;function Se(Ie){var ot,ut=0;Ie.eachAfter(function(yt){var Mt=yt.children;Mt?(yt.x=r(Mt),yt.y=n(Mt)):(yt.x=ot?ut+=Le(yt,ot):0,yt.y=0,ot=yt)});var _t=o(Ie),At=s(Ie),Gt=_t.x-Le(_t,At)/2,Dt=At.x+Le(At,_t)/2;return Ie.eachAfter(Pe?function(yt){yt.x=(yt.x-Ie.x)*De,yt.y=(Ie.y-yt.y)*Ue}:function(yt){yt.x=(yt.x-Gt)/(Dt-Gt)*De,yt.y=(1-(Ie.y?yt.y/Ie.y:1))*Ue})}return Se.separation=function(Ie){return arguments.length?(Le=Ie,Se):Le},Se.size=function(Ie){return arguments.length?(Pe=!1,De=+Ie[0],Ue=+Ie[1],Se):Pe?null:[De,Ue]},Se.nodeSize=function(Ie){return arguments.length?(Pe=!0,De=+Ie[0],Ue=+Ie[1],Se):Pe?[De,Ue]:null},Se}function u(Le){var De=0,Ue=Le.children,Pe=Ue&&Ue.length;if(!Pe)De=1;else for(;--Pe>=0;)De+=Ue[Pe].value;Le.value=De}function f(){return this.eachAfter(u)}function c(Le){var De=this,Ue,Pe=[De],Se,Ie,ot;do for(Ue=Pe.reverse(),Pe=[];De=Ue.pop();)if(Le(De),Se=De.children,Se)for(Ie=0,ot=Se.length;Ie=0;--Se)Ue.push(Pe[Se]);return this}function d(Le){for(var De=this,Ue=[De],Pe=[],Se,Ie,ot;De=Ue.pop();)if(Pe.push(De),Se=De.children,Se)for(Ie=0,ot=Se.length;Ie=0;)Ue+=Pe[Se].value;De.value=Ue})}function v(Le){return this.eachBefore(function(De){De.children&&De.children.sort(Le)})}function y(Le){for(var De=this,Ue=m(De,Le),Pe=[De];De!==Ue;)De=De.parent,Pe.push(De);for(var Se=Pe.length;Le!==Ue;)Pe.splice(Se,0,Le),Le=Le.parent;return Pe}function m(Le,De){if(Le===De)return Le;var Ue=Le.ancestors(),Pe=De.ancestors(),Se=null;for(Le=Ue.pop(),De=Pe.pop();Le===De;)Se=Le,Le=Ue.pop(),De=Pe.pop();return Se}function w(){for(var Le=this,De=[Le];Le=Le.parent;)De.push(Le);return De}function _(){var Le=[];return this.each(function(De){Le.push(De)}),Le}function b(){var Le=[];return this.eachBefore(function(De){De.children||Le.push(De)}),Le}function M(){var Le=this,De=[];return Le.each(function(Ue){Ue!==Le&&De.push({source:Ue.parent,target:Ue})}),De}function x(Le,De){var Ue=new S(Le),Pe=+Le.value&&(Ue.value=Le.value),Se,Ie=[Ue],ot,ut,_t,At;for(De==null&&(De=A);Se=Ie.pop();)if(Pe&&(Se.value=+Se.data.value),(ut=De(Se.data))&&(At=ut.length))for(Se.children=new Array(At),_t=At-1;_t>=0;--_t)Ie.push(ot=Se.children[_t]=new S(ut[_t])),ot.parent=Se,ot.depth=Se.depth+1;return Ue.eachBefore(E)}function T(){return x(this).eachBefore(g)}function A(Le){return Le.children}function g(Le){Le.data=Le.data.data}function E(Le){var De=0;do Le.height=De;while((Le=Le.parent)&&Le.height<++De)}function S(Le){this.data=Le,this.depth=this.height=0,this.parent=null}S.prototype=x.prototype={constructor:S,count:f,each:c,eachAfter:d,eachBefore:h,sum:p,sort:v,path:y,ancestors:w,descendants:_,leaves:b,links:M,copy:T};var C=Array.prototype.slice;function k(Le){for(var De=Le.length,Ue,Pe;De;)Pe=Math.random()*De--|0,Ue=Le[De],Le[De]=Le[Pe],Le[Pe]=Ue;return Le}function D(Le){for(var De=0,Ue=(Le=k(C.call(Le))).length,Pe=[],Se,Ie;De0&&Ue*Ue>Pe*Pe+Se*Se}function L(Le,De){for(var Ue=0;Ue_t?(Se=(At+_t-Ie)/(2*At),ut=Math.sqrt(Math.max(0,_t/At-Se*Se)),Ue.x=Le.x-Se*Pe-ut*ot,Ue.y=Le.y-Se*ot+ut*Pe):(Se=(At+Ie-_t)/(2*At),ut=Math.sqrt(Math.max(0,Ie/At-Se*Se)),Ue.x=De.x+Se*Pe-ut*ot,Ue.y=De.y+Se*ot+ut*Pe)):(Ue.x=De.x+Ue.r,Ue.y=De.y)}function Z(Le,De){var Ue=Le.r+De.r-1e-6,Pe=De.x-Le.x,Se=De.y-Le.y;return Ue>0&&Ue*Ue>Pe*Pe+Se*Se}function H(Le){var De=Le._,Ue=Le.next._,Pe=De.r+Ue.r,Se=(De.x*Ue.r+Ue.x*De.r)/Pe,Ie=(De.y*Ue.r+Ue.y*De.r)/Pe;return Se*Se+Ie*Ie}function q(Le){this._=Le,this.next=null,this.previous=null}function Q(Le){if(!(Se=Le.length))return 0;var De,Ue,Pe,Se,Ie,ot,ut,_t,At,Gt,Dt;if(De=Le[0],De.x=0,De.y=0,!(Se>1))return De.r;if(Ue=Le[1],De.x=-Ue.r,Ue.x=De.r,Ue.y=0,!(Se>2))return De.r+Ue.r;X(Ue,De,Pe=Le[2]),De=new q(De),Ue=new q(Ue),Pe=new q(Pe),De.next=Pe.previous=Ue,Ue.next=De.previous=Pe,Pe.next=Ue.previous=De;e:for(ut=3;ut0)throw new Error("cycle");return ut}return Ue.id=function(Pe){return arguments.length?(Le=J(Pe),Ue):Le},Ue.parentId=function(Pe){return arguments.length?(De=J(Pe),Ue):De},Ue}function V(Le,De){return Le.parent===De.parent?1:2}function ue(Le){var De=Le.children;return De?De[0]:Le.t}function _e(Le){var De=Le.children;return De?De[De.length-1]:Le.t}function xe(Le,De,Ue){var Pe=Ue/(De.i-Le.i);De.c-=Pe,De.s+=Ue,Le.c+=Pe,De.z+=Ue,De.m+=Ue}function Ae(Le){for(var De=0,Ue=0,Pe=Le.children,Se=Pe.length,Ie;--Se>=0;)Ie=Pe[Se],Ie.z+=De,Ie.m+=De,De+=Ie.s+(Ue+=Ie.c)}function se(Le,De,Ue){return Le.a.parent===De.parent?Le.a:Ue}function pe(Le,De){this._=Le,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=De}pe.prototype=Object.create(S.prototype);function fe(Le){for(var De=new pe(Le,0),Ue,Pe=[De],Se,Ie,ot,ut;Ue=Pe.pop();)if(Ie=Ue._.children)for(Ue.children=new Array(ut=Ie.length),ot=ut-1;ot>=0;--ot)Pe.push(Se=Ue.children[ot]=new pe(Ie[ot],ot)),Se.parent=Ue;return(De.parent=new pe(null,0)).children=[De],De}function Re(){var Le=V,De=1,Ue=1,Pe=null;function Se(At){var Gt=fe(At);if(Gt.eachAfter(Ie),Gt.parent.m=-Gt.z,Gt.eachBefore(ot),Pe)At.eachBefore(_t);else{var Dt=At,yt=At,Mt=At;At.eachBefore(function(dt){dt.xyt.x&&(yt=dt),dt.depth>Mt.depth&&(Mt=dt)});var tr=Dt===yt?1:Le(Dt,yt)/2,Ye=tr-Dt.x,nt=De/(yt.x+tr+Ye),st=Ue/(Mt.depth||1);At.eachBefore(function(dt){dt.x=(dt.x+Ye)*nt,dt.y=dt.depth*st})}return At}function Ie(At){var Gt=At.children,Dt=At.parent.children,yt=At.i?Dt[At.i-1]:null;if(Gt){Ae(At);var Mt=(Gt[0].z+Gt[Gt.length-1].z)/2;yt?(At.z=yt.z+Le(At._,yt._),At.m=At.z-Mt):At.z=Mt}else yt&&(At.z=yt.z+Le(At._,yt._));At.parent.A=ut(At,yt,At.parent.A||Dt[0])}function ot(At){At._.x=At.z+At.parent.m,At.m+=At.parent.m}function ut(At,Gt,Dt){if(Gt){for(var yt=At,Mt=At,tr=Gt,Ye=yt.parent.children[0],nt=yt.m,st=Mt.m,dt=tr.m,rt=Ye.m,ft;tr=_e(tr),yt=ue(yt),tr&&yt;)Ye=ue(Ye),Mt=_e(Mt),Mt.a=At,ft=tr.z+dt-yt.z-nt+Le(tr._,yt._),ft>0&&(xe(se(tr,At,Dt),At,ft),nt+=ft,st+=ft),dt+=tr.m,nt+=yt.m,rt+=Ye.m,st+=Mt.m;tr&&!_e(Mt)&&(Mt.t=tr,Mt.m+=dt-st),yt&&!ue(Ye)&&(Ye.t=yt,Ye.m+=nt-rt,Dt=At)}return Dt}function _t(At){At.x*=De,At.y=At.depth*Ue}return Se.separation=function(At){return arguments.length?(Le=At,Se):Le},Se.size=function(At){return arguments.length?(Pe=!1,De=+At[0],Ue=+At[1],Se):Pe?null:[De,Ue]},Se.nodeSize=function(At){return arguments.length?(Pe=!0,De=+At[0],Ue=+At[1],Se):Pe?[De,Ue]:null},Se}function We(Le,De,Ue,Pe,Se){for(var Ie=Le.children,ot,ut=-1,_t=Ie.length,At=Le.value&&(Se-Ue)/Le.value;++ut<_t;)ot=Ie[ut],ot.x0=De,ot.x1=Pe,ot.y0=Ue,ot.y1=Ue+=ot.value*At}var Ke=(1+Math.sqrt(5))/2;function tt(Le,De,Ue,Pe,Se,Ie){for(var ot=[],ut=De.children,_t,At,Gt=0,Dt=0,yt=ut.length,Mt,tr,Ye=De.value,nt,st,dt,rt,ft,Ft,Et;Gtdt&&(dt=At),Et=nt*nt*Ft,rt=Math.max(dt/Et,Et/st),rt>ft){nt-=At;break}ft=rt}ot.push(_t={value:nt,dice:Mt1?Pe:1)},Ue})(Ke);function Ge(){var Le=at,De=!1,Ue=1,Pe=1,Se=[0],Ie=j,ot=j,ut=j,_t=j,At=j;function Gt(yt){return yt.x0=yt.y0=0,yt.x1=Ue,yt.y1=Pe,yt.eachBefore(Dt),Se=[0],De&&yt.eachBefore(ke),yt}function Dt(yt){var Mt=Se[yt.depth],tr=yt.x0+Mt,Ye=yt.y0+Mt,nt=yt.x1-Mt,st=yt.y1-Mt;nt=yt-1){var dt=Ie[Dt];dt.x0=tr,dt.y0=Ye,dt.x1=nt,dt.y1=st;return}for(var rt=At[Dt],ft=Mt/2+rt,Ft=Dt+1,Et=yt-1;Ft>>1;At[er]st-Ye){var fr=(tr*kr+nt*xr)/Mt;Gt(Dt,Ft,xr,tr,Ye,fr,st),Gt(Ft,yt,kr,fr,Ye,nt,st)}else{var Yr=(Ye*kr+st*xr)/Mt;Gt(Dt,Ft,xr,tr,Ye,nt,Yr),Gt(Ft,yt,kr,tr,Yr,nt,st)}}}function Be(Le,De,Ue,Pe,Se){(Le.depth&1?We:le)(Le,De,Ue,Pe,Se)}var Ze=(function Le(De){function Ue(Pe,Se,Ie,ot,ut){if((_t=Pe._squarify)&&_t.ratio===De)for(var _t,At,Gt,Dt,yt=-1,Mt,tr=_t.length,Ye=Pe.value;++yt1?Pe:1)},Ue})(Ke);e.cluster=l,e.hierarchy=x,e.pack=re,e.packEnclose=D,e.packSiblings=N,e.partition=te,e.stratify=ye,e.tree=Re,e.treemap=Ge,e.treemapBinary=ge,e.treemapDice=le,e.treemapResquarify=Ze,e.treemapSlice=We,e.treemapSliceDice=Be,e.treemapSquarify=at,Object.defineProperty(e,"__esModule",{value:!0})})});var fE=K(uE=>{"use strict";var YRe=lE(),zer=Hs(),w4=St(),Ier=gf().makeColorScaleFuncFromTrace,Rer=x4().makePullColorFn,Ber=x4().generateExtendedColors,qer=gf().calc,Oer=(Il(),or(Bl)).ALMOST_EQUAL,Ner={},Ver={},Uer={};uE.calc=function(e,t){var r=e._fullLayout,i=t.ids,n=w4.isArrayOrTypedArray(i),a=t.labels,o=t.parents,s=t.values,l=w4.isArrayOrTypedArray(s),u=[],f={},c={},h=function(I,L){f[I]?f[I].push(L):f[I]=[L],c[L]=1},d=function(I){return I||typeof I=="number"},p=function(I){return!l||zer(s[I])&&s[I]>=0},v,y,m;n?(v=Math.min(i.length,o.length),y=function(I){return d(i[I])&&p(I)},m=function(I){return String(i[I])}):(v=Math.min(a.length,o.length),y=function(I){return d(a[I])&&p(I)},m=function(I){return String(a[I])}),l&&(v=Math.min(v,s.length));for(var w=0;w1){for(var A=w4.randstr(),g=0;g{});function _m(){}function GRe(){return this.rgb().formatHex()}function qer(){return this.rgb().formatHex8()}function Oer(){return ZRe(this).formatHsl()}function HRe(){return this.rgb().formatRgb()}function C2(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=Fer.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?jRe(t):r===3?new Th(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?wI(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?wI(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=Ler.exec(e))?new Th(t[1],t[2],t[3],1):(t=Per.exec(e))?new Th(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=zer.exec(e))?wI(t[1],t[2],t[3],t[4]):(t=Ier.exec(e))?wI(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=Rer.exec(e))?YRe(t[1],t[2]/100,t[3]/100,1):(t=Ber.exec(e))?YRe(t[1],t[2]/100,t[3]/100,t[4]):URe.hasOwnProperty(e)?jRe(URe[e]):e==="transparent"?new Th(NaN,NaN,NaN,0):null}function jRe(e){return new Th(e>>16&255,e>>8&255,e&255,1)}function wI(e,t,r,i){return i<=0&&(e=t=r=NaN),new Th(e,t,r,i)}function fE(e){return e instanceof _m||(e=C2(e)),e?(e=e.rgb(),new Th(e.r,e.g,e.b,e.opacity)):new Th}function A4(e,t,r,i){return arguments.length===1?fE(e):new Th(e,t,r,i==null?1:i)}function Th(e,t,r,i){this.r=+e,this.g=+t,this.b=+r,this.opacity=+i}function WRe(){return`#${b_(this.r)}${b_(this.g)}${b_(this.b)}`}function Ner(){return`#${b_(this.r)}${b_(this.g)}${b_(this.b)}${b_((isNaN(this.opacity)?1:this.opacity)*255)}`}function $Re(){let e=TI(this.opacity);return`${e===1?"rgb(":"rgba("}${__(this.r)}, ${__(this.g)}, ${__(this.b)}${e===1?")":`, ${e})`}`}function TI(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function __(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function b_(e){return e=__(e),(e<16?"0":"")+e.toString(16)}function YRe(e,t,r,i){return i<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new d1(e,t,r,i)}function ZRe(e){if(e instanceof d1)return new d1(e.h,e.s,e.l,e.opacity);if(e instanceof _m||(e=C2(e)),!e)return new d1;if(e instanceof d1)return e;e=e.rgb();var t=e.r/255,r=e.g/255,i=e.b/255,n=Math.min(t,r,i),a=Math.max(t,r,i),o=NaN,s=a-n,l=(a+n)/2;return s?(t===a?o=(r-i)/s+(r0&&l<1?0:o,new d1(o,s,l,e.opacity)}function cE(e,t,r,i){return arguments.length===1?ZRe(e):new d1(e,t,r,i==null?1:i)}function d1(e,t,r,i){this.h=+e,this.s=+t,this.l=+r,this.opacity=+i}function XRe(e){return e=(e||0)%360,e<0?e+360:e}function AI(e){return Math.max(0,Math.min(1,e||0))}function VK(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}var k2,w_,w4,uE,bm,Fer,Ler,Per,zer,Ier,Rer,Ber,URe,MI=ps(()=>{_I();k2=.7,w_=1/k2,w4="\\s*([+-]?\\d+)\\s*",uE="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",bm="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Fer=/^#([0-9a-f]{3,8})$/,Ler=new RegExp(`^rgb\\(${w4},${w4},${w4}\\)$`),Per=new RegExp(`^rgb\\(${bm},${bm},${bm}\\)$`),zer=new RegExp(`^rgba\\(${w4},${w4},${w4},${uE}\\)$`),Ier=new RegExp(`^rgba\\(${bm},${bm},${bm},${uE}\\)$`),Rer=new RegExp(`^hsl\\(${uE},${bm},${bm}\\)$`),Ber=new RegExp(`^hsla\\(${uE},${bm},${bm},${uE}\\)$`),URe={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};Cy(_m,C2,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:GRe,formatHex:GRe,formatHex8:qer,formatHsl:Oer,formatRgb:HRe,toString:HRe});Cy(Th,A4,E2(_m,{brighter(e){return e=e==null?w_:Math.pow(w_,e),new Th(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?k2:Math.pow(k2,e),new Th(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Th(__(this.r),__(this.g),__(this.b),TI(this.opacity))},displayable(){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:WRe,formatHex:WRe,formatHex8:Ner,formatRgb:$Re,toString:$Re}));Cy(d1,cE,E2(_m,{brighter(e){return e=e==null?w_:Math.pow(w_,e),new d1(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?k2:Math.pow(k2,e),new d1(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,i=r+(r<.5?r:1-r)*t,n=2*r-i;return new Th(VK(e>=240?e-240:e+120,n,i),VK(e,n,i),VK(e<120?e+240:e-120,n,i),this.opacity)},clamp(){return new d1(XRe(this.h),AI(this.s),AI(this.l),TI(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let e=TI(this.opacity);return`${e===1?"hsl(":"hsla("}${XRe(this.h)}, ${AI(this.s)*100}%, ${AI(this.l)*100}%${e===1?")":`, ${e})`}`}}))});var SI,EI,UK=ps(()=>{SI=Math.PI/180,EI=180/Math.PI});function rBe(e){if(e instanceof wm)return new wm(e.l,e.a,e.b,e.opacity);if(e instanceof Dy)return iBe(e);e instanceof Th||(e=fE(e));var t=WK(e.r),r=WK(e.g),i=WK(e.b),n=GK((.2225045*t+.7168786*r+.0606169*i)/JRe),a,o;return t===r&&r===i?a=o=n:(a=GK((.4360747*t+.3850649*r+.1430804*i)/KRe),o=GK((.0139322*t+.0971045*r+.7141733*i)/QRe)),new wm(116*n-16,500*(a-n),200*(n-o),e.opacity)}function M4(e,t,r,i){return arguments.length===1?rBe(e):new wm(e,t,r,i==null?1:i)}function wm(e,t,r,i){this.l=+e,this.a=+t,this.b=+r,this.opacity=+i}function GK(e){return e>Ver?Math.pow(e,1/3):e/tBe+eBe}function HK(e){return e>T4?e*e*e:tBe*(e-eBe)}function jK(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function WK(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Uer(e){if(e instanceof Dy)return new Dy(e.h,e.c,e.l,e.opacity);if(e instanceof wm||(e=rBe(e)),e.a===0&&e.b===0)return new Dy(NaN,0{_I();MI();UK();kI=18,KRe=.96422,JRe=1,QRe=.82521,eBe=4/29,T4=6/29,tBe=3*T4*T4,Ver=T4*T4*T4;Cy(wm,M4,E2(_m,{brighter(e){return new wm(this.l+kI*(e==null?1:e),this.a,this.b,this.opacity)},darker(e){return new wm(this.l-kI*(e==null?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,r=isNaN(this.b)?e:e-this.b/200;return t=KRe*HK(t),e=JRe*HK(e),r=QRe*HK(r),new Th(jK(3.1338561*t-1.6168667*e-.4906146*r),jK(-.9787684*t+1.9161415*e+.033454*r),jK(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}}));Cy(Dy,hE,E2(_m,{brighter(e){return new Dy(this.h,this.c,this.l+kI*(e==null?1:e),this.opacity)},darker(e){return new Dy(this.h,this.c,this.l-kI*(e==null?1:e),this.opacity)},rgb(){return iBe(this).rgb()}}))});function Ger(e){if(e instanceof A_)return new A_(e.h,e.s,e.l,e.opacity);e instanceof Th||(e=fE(e));var t=e.r/255,r=e.g/255,i=e.b/255,n=(sBe*i+aBe*t-oBe*r)/(sBe+aBe-oBe),a=i-n,o=(dE*(r-n)-YK*a)/CI,s=Math.sqrt(o*o+a*a)/(dE*n*(1-n)),l=s?Math.atan2(o,a)*EI-120:NaN;return new A_(l<0?l+360:l,s,n,e.opacity)}function S4(e,t,r,i){return arguments.length===1?Ger(e):new A_(e,t,r,i==null?1:i)}function A_(e,t,r,i){this.h=+e,this.s=+t,this.l=+r,this.opacity=+i}var lBe,$K,YK,CI,dE,aBe,oBe,sBe,uBe=ps(()=>{_I();MI();UK();lBe=-.14861,$K=1.78277,YK=-.29227,CI=-.90649,dE=1.97294,aBe=dE*CI,oBe=dE*$K,sBe=$K*YK-CI*lBe;Cy(A_,S4,E2(_m,{brighter(e){return e=e==null?w_:Math.pow(w_,e),new A_(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?k2:Math.pow(k2,e),new A_(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=isNaN(this.h)?0:(this.h+120)*SI,t=+this.l,r=isNaN(this.s)?0:this.s*t*(1-t),i=Math.cos(e),n=Math.sin(e);return new Th(255*(t+r*(lBe*i+$K*n)),255*(t+r*(YK*i+CI*n)),255*(t+r*(dE*i)),this.opacity)}}))});var T_=ps(()=>{MI();nBe();uBe()});function XK(e,t,r,i,n){var a=e*e,o=a*e;return((1-3*e+3*a-o)*t+(4-6*a+3*o)*r+(1+3*e+3*a-3*o)*i+o*n)/6}function DI(e){var t=e.length-1;return function(r){var i=r<=0?r=0:r>=1?(r=1,t-1):Math.floor(r*t),n=e[i],a=e[i+1],o=i>0?e[i-1]:2*n-a,s=i{});function LI(e){var t=e.length;return function(r){var i=Math.floor(((r%=1)<0?++r:r)*t),n=e[(i+t-1)%t],a=e[i%t],o=e[(i+1)%t],s=e[(i+2)%t];return XK((r-i/t)*t,n,a,o,s)}}var ZK=ps(()=>{FI()});var E4,KK=ps(()=>{E4=e=>()=>e});function fBe(e,t){return function(r){return e+r*t}}function Her(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(i){return Math.pow(e+i*t,r)}}function D2(e,t){var r=t-e;return r?fBe(e,r>180||r<-180?r-360*Math.round(r/360):r):E4(isNaN(e)?t:e)}function cBe(e){return(e=+e)==1?yc:function(t,r){return r-t?Her(t,r,e):E4(isNaN(t)?r:t)}}function yc(e,t){var r=t-e;return r?fBe(e,r):E4(isNaN(e)?t:e)}var M_=ps(()=>{KK()});function hBe(e){return function(t){var r=t.length,i=new Array(r),n=new Array(r),a=new Array(r),o,s;for(o=0;o{T_();FI();ZK();M_();pE=(function e(t){var r=cBe(t);function i(n,a){var o=r((n=A4(n)).r,(a=A4(a)).r),s=r(n.g,a.g),l=r(n.b,a.b),u=yc(n.opacity,a.opacity);return function(f){return n.r=o(f),n.g=s(f),n.b=l(f),n.opacity=u(f),n+""}}return i.gamma=e,i})(1);dBe=hBe(DI),pBe=hBe(LI)});function k4(e,t){t||(t=[]);var r=e?Math.min(t.length,e.length):0,i=t.slice(),n;return function(a){for(n=0;n{});function vBe(e,t){return(PI(t)?k4:QK)(e,t)}function QK(e,t){var r=t?t.length:0,i=e?Math.min(r,e.length):0,n=new Array(i),a=new Array(r),o;for(o=0;o{vE();zI()});function II(e,t){var r=new Date;return e=+e,t=+t,function(i){return r.setTime(e*(1-i)+t*i),r}}var tJ=ps(()=>{});function Rd(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}var mE=ps(()=>{});function RI(e,t){var r={},i={},n;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(n in t)n in e?r[n]=F2(e[n],t[n]):i[n]=t[n];return function(a){for(n in r)i[n]=r[n](a);return i}}var rJ=ps(()=>{vE()});function jer(e){return function(){return e}}function Wer(e){return function(t){return e(t)+""}}function BI(e,t){var r=nJ.lastIndex=iJ.lastIndex=0,i,n,a,o=-1,s=[],l=[];for(e=e+"",t=t+"";(i=nJ.exec(e))&&(n=iJ.exec(t));)(a=n.index)>r&&(a=t.slice(r,a),s[o]?s[o]+=a:s[++o]=a),(i=i[0])===(n=n[0])?s[o]?s[o]+=n:s[++o]=n:(s[++o]=null,l.push({i:o,x:Rd(i,n)})),r=iJ.lastIndex;return r{mE();nJ=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,iJ=new RegExp(nJ.source,"g")});function F2(e,t){var r=typeof t,i;return t==null||r==="boolean"?E4(t):(r==="number"?Rd:r==="string"?(i=C2(t))?(t=i,pE):BI:t instanceof C2?pE:t instanceof Date?II:PI(t)?k4:Array.isArray(t)?QK:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?RI:Rd)(e,t)}var vE=ps(()=>{T_();JK();eJ();tJ();mE();rJ();aJ();KK();zI()});function mBe(e){var t=e.length;return function(r){return e[Math.max(0,Math.min(t-1,Math.floor(r*t)))]}}var yBe=ps(()=>{});function gBe(e,t){var r=D2(+e,+t);return function(i){var n=r(i);return n-360*Math.floor(n/360)}}var xBe=ps(()=>{M_()});function bBe(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}var _Be=ps(()=>{});function oJ(e,t,r,i,n,a){var o,s,l;return(o=Math.sqrt(e*e+t*t))&&(e/=o,t/=o),(l=e*r+t*i)&&(r-=e*l,i-=t*l),(s=Math.sqrt(r*r+i*i))&&(r/=s,i/=s,l/=s),e*i{wBe=180/Math.PI,qI={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1}});function TBe(e){let t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?qI:oJ(t.a,t.b,t.c,t.d,t.e,t.f)}function MBe(e){return e==null?qI:(OI||(OI=document.createElementNS("http://www.w3.org/2000/svg","g")),OI.setAttribute("transform",e),(e=OI.transform.baseVal.consolidate())?(e=e.matrix,oJ(e.a,e.b,e.c,e.d,e.e,e.f)):qI)}var OI,SBe=ps(()=>{ABe()});function EBe(e,t,r,i){function n(u){return u.length?u.pop()+" ":""}function a(u,f,c,h,d,p){if(u!==c||f!==h){var v=d.push("translate(",null,t,null,r);p.push({i:v-4,x:Rd(u,c)},{i:v-2,x:Rd(f,h)})}else(c||h)&&d.push("translate("+c+t+h+r)}function o(u,f,c,h){u!==f?(u-f>180?f+=360:f-u>180&&(u+=360),h.push({i:c.push(n(c)+"rotate(",null,i)-2,x:Rd(u,f)})):f&&c.push(n(c)+"rotate("+f+i)}function s(u,f,c,h){u!==f?h.push({i:c.push(n(c)+"skewX(",null,i)-2,x:Rd(u,f)}):f&&c.push(n(c)+"skewX("+f+i)}function l(u,f,c,h,d,p){if(u!==c||f!==h){var v=d.push(n(d)+"scale(",null,",",null,")");p.push({i:v-4,x:Rd(u,c)},{i:v-2,x:Rd(f,h)})}else(c!==1||h!==1)&&d.push(n(d)+"scale("+c+","+h+")")}return function(u,f){var c=[],h=[];return u=e(u),f=e(f),a(u.translateX,u.translateY,f.translateX,f.translateY,c,h),o(u.rotate,f.rotate,c,h),s(u.skewX,f.skewX,c,h),l(u.scaleX,u.scaleY,f.scaleX,f.scaleY,c,h),u=f=null,function(d){for(var p=-1,v=h.length,y;++p{mE();SBe();kBe=EBe(TBe,"px, ","px)","deg)"),CBe=EBe(MBe,", ",")",")")});function FBe(e){return((e=Math.exp(e))+1/e)/2}function Yer(e){return((e=Math.exp(e))-1/e)/2}function Xer(e){return((e=Math.exp(2*e))-1)/(e+1)}var $er,LBe,PBe=ps(()=>{$er=1e-12;LBe=(function e(t,r,i){function n(a,o){var s=a[0],l=a[1],u=a[2],f=o[0],c=o[1],h=o[2],d=f-s,p=c-l,v=d*d+p*p,y,m;if(v<$er)m=Math.log(h/u)/t,y=function(A){return[s+A*d,l+A*p,u*Math.exp(t*A*m)]};else{var w=Math.sqrt(v),_=(h*h-u*u+i*v)/(2*u*r*w),b=(h*h-u*u-i*v)/(2*h*r*w),M=Math.log(Math.sqrt(_*_+1)-_),x=Math.log(Math.sqrt(b*b+1)-b);m=(x-M)/t,y=function(A){var T=A*m,g=FBe(M),E=u/(r*w)*(g*Xer(t*T+M)-Yer(M));return[s+E*d,l+E*p,u*g/FBe(t*T+M)]}}return y.duration=m*1e3*t/Math.SQRT2,y}return n.rho=function(a){var o=Math.max(.001,+a),s=o*o,l=s*s;return e(o,s,l)},n})(Math.SQRT2,2,4)});function zBe(e){return function(t,r){var i=e((t=cE(t)).h,(r=cE(r)).h),n=yc(t.s,r.s),a=yc(t.l,r.l),o=yc(t.opacity,r.opacity);return function(s){return t.h=i(s),t.s=n(s),t.l=a(s),t.opacity=o(s),t+""}}}var IBe,RBe,BBe=ps(()=>{T_();M_();IBe=zBe(D2),RBe=zBe(yc)});function sJ(e,t){var r=yc((e=M4(e)).l,(t=M4(t)).l),i=yc(e.a,t.a),n=yc(e.b,t.b),a=yc(e.opacity,t.opacity);return function(o){return e.l=r(o),e.a=i(o),e.b=n(o),e.opacity=a(o),e+""}}var qBe=ps(()=>{T_();M_()});function OBe(e){return function(t,r){var i=e((t=hE(t)).h,(r=hE(r)).h),n=yc(t.c,r.c),a=yc(t.l,r.l),o=yc(t.opacity,r.opacity);return function(s){return t.h=i(s),t.c=n(s),t.l=a(s),t.opacity=o(s),t+""}}}var NBe,VBe,UBe=ps(()=>{T_();M_();NBe=OBe(D2),VBe=OBe(yc)});function GBe(e){return(function t(r){r=+r;function i(n,a){var o=e((n=S4(n)).h,(a=S4(a)).h),s=yc(n.s,a.s),l=yc(n.l,a.l),u=yc(n.opacity,a.opacity);return function(f){return n.h=o(f),n.s=s(f),n.l=l(Math.pow(f,r)),n.opacity=u(f),n+""}}return i.gamma=t,i})(1)}var HBe,jBe,WBe=ps(()=>{T_();M_();HBe=GBe(D2),jBe=GBe(yc)});function lJ(e,t){t===void 0&&(t=e,e=F2);for(var r=0,i=t.length-1,n=t[0],a=new Array(i<0?0:i);r{vE()});function YBe(e,t){for(var r=new Array(t),i=0;i{});var S_={};Fl(S_,{interpolate:()=>F2,interpolateArray:()=>vBe,interpolateBasis:()=>DI,interpolateBasisClosed:()=>LI,interpolateCubehelix:()=>HBe,interpolateCubehelixLong:()=>jBe,interpolateDate:()=>II,interpolateDiscrete:()=>mBe,interpolateHcl:()=>NBe,interpolateHclLong:()=>VBe,interpolateHsl:()=>IBe,interpolateHslLong:()=>RBe,interpolateHue:()=>gBe,interpolateLab:()=>sJ,interpolateNumber:()=>Rd,interpolateNumberArray:()=>k4,interpolateObject:()=>RI,interpolateRgb:()=>pE,interpolateRgbBasis:()=>dBe,interpolateRgbBasisClosed:()=>pBe,interpolateRound:()=>bBe,interpolateString:()=>BI,interpolateTransformCss:()=>kBe,interpolateTransformSvg:()=>CBe,interpolateZoom:()=>LBe,piecewise:()=>lJ,quantize:()=>YBe});var E_=ps(()=>{vE();eJ();FI();ZK();tJ();yBe();xBe();mE();zI();rJ();_Be();aJ();DBe();PBe();JK();BBe();qBe();UBe();WBe();$Be();XBe()});var NI=K((_Kr,ZBe)=>{"use strict";var Zer=Bs(),Ker=ko();ZBe.exports=function(t,r,i,n,a){var o=r.data.data,s=o.i,l=a||o.color;if(s>=0){r.i=o.i;var u=i.marker;u.pattern?(!u.colors||!u.pattern.shape)&&(u.color=l,r.color=l):(u.color=l,r.color=l),Zer.pointStyle(t,i,n,r)}else Ker.fill(t,l)}});var uJ=K((wKr,t7e)=>{"use strict";var KBe=No(),JBe=ko(),QBe=Mt(),Jer=S0().resizeText,Qer=NI();function etr(e){var t=e._fullLayout._sunburstlayer.selectAll(".trace");Jer(e,t,"sunburst"),t.each(function(r){var i=KBe.select(this),n=r[0],a=n.trace;i.style("opacity",a.opacity),i.selectAll("path.surface").each(function(o){KBe.select(this).call(e7e,o,a,e)})})}function e7e(e,t,r,i){var n=t.data.data,a=!t.children,o=n.i,s=QBe.castOption(r,o,"marker.line.color")||JBe.defaultLine,l=QBe.castOption(r,o,"marker.line.width")||0;e.call(Qer,t,r,i).style("stroke-width",l).call(JBe.stroke,s).style("opacity",a?r.leaf.opacity:null)}t7e.exports={style:etr,styleOne:e7e}});var Fy=K(Gl=>{"use strict";var k_=Mt(),ttr=ko(),rtr=jv(),r7e=Gg();Gl.findEntryWithLevel=function(e,t){var r;return t&&e.eachAfter(function(i){if(Gl.getPtId(i)===t)return r=i.copy()}),r||e};Gl.findEntryWithChild=function(e,t){var r;return e.eachAfter(function(i){for(var n=i.children||[],a=0;a0)};Gl.getMaxDepth=function(e){return e.maxdepth>=0?e.maxdepth:1/0};Gl.isHeader=function(e,t){return!(Gl.isLeaf(e)||e.depth===t._maxDepth-1)};function i7e(e){return e.data.data.pid}Gl.getParent=function(e,t){return Gl.findEntryWithLevel(e,i7e(t))};Gl.listPath=function(e,t){var r=e.parent;if(!r)return[];var i=t?[r.data[t]]:[r];return Gl.listPath(r,t).concat(i)};Gl.getPath=function(e){return Gl.listPath(e,"label").join("/")+"/"};Gl.formatValue=r7e.formatPieValue;Gl.formatPercent=function(e,t){var r=k_.formatPercent(e,0);return r==="0%"&&(r=r7e.formatPiePercent(e,t)),r}});var xE=K((TKr,o7e)=>{"use strict";var C4=No(),n7e=Ho(),atr=od().appendArrayPointValue,yE=Uf(),a7e=Mt(),otr=bw(),ch=Fy(),str=Gg(),ltr=str.formatPieValue;o7e.exports=function(t,r,i,n,a){var o=n[0],s=o.trace,l=o.hierarchy,u=s.type==="sunburst",f=s.type==="treemap"||s.type==="icicle";"_hasHoverLabel"in s||(s._hasHoverLabel=!1),"_hasHoverEvent"in s||(s._hasHoverEvent=!1);var c=function(p){var v=i._fullLayout;if(!(i._dragging||v.hovermode===!1)){var y=i._fullData[s.index],m=p.data.data,w=m.i,_=ch.isHierarchyRoot(p),b=ch.getParent(l,p),M=ch.getValue(p),x=function(X){return a7e.castOption(y,w,X)},A=x("hovertemplate"),T=yE.castHoverinfo(y,v,w),g=v.separators,E;if(A||T&&T!=="none"&&T!=="skip"){var S,C;u&&(S=o.cx+p.pxmid[0]*(1-p.rInscribed),C=o.cy+p.pxmid[1]*(1-p.rInscribed)),f&&(S=p._hoverX,C=p._hoverY);var k={},D=[],L=[],P=function(X){return D.indexOf(X)!==-1};T&&(D=T==="all"?y._module.attributes.hoverinfo.flags:T.split("+")),k.label=m.label,P("label")&&k.label&&L.push(k.label),m.hasOwnProperty("v")&&(k.value=m.v,k.valueLabel=ltr(k.value,g),P("value")&&L.push(k.valueLabel)),k.currentPath=p.currentPath=ch.getPath(p.data),P("current path")&&!_&&L.push(k.currentPath);var I,F=[],z=function(){F.indexOf(I)===-1&&(L.push(I),F.push(I))};k.percentParent=p.percentParent=M/ch.getValue(b),k.parent=p.parentString=ch.getPtLabel(b),P("percent parent")&&(I=ch.formatPercent(k.percentParent,g)+" of "+k.parent,z()),k.percentEntry=p.percentEntry=M/ch.getValue(r),k.entry=p.entry=ch.getPtLabel(r),P("percent entry")&&!_&&!p.onPathbar&&(I=ch.formatPercent(k.percentEntry,g)+" of "+k.entry,z()),k.percentRoot=p.percentRoot=M/ch.getValue(l),k.root=p.root=ch.getPtLabel(l),P("percent root")&&!_&&(I=ch.formatPercent(k.percentRoot,g)+" of "+k.root,z()),k.text=x("hovertext")||x("text"),P("text")&&(I=k.text,a7e.isValidTextValue(I)&&L.push(I)),E=[gE(p,y,a.eventDataKeys)];var B={trace:y,y:C,_x0:p._x0,_x1:p._x1,_y0:p._y0,_y1:p._y1,text:L.join("
"),name:A||P("name")?y.name:void 0,color:x("hoverlabel.bgcolor")||m.color,borderColor:x("hoverlabel.bordercolor"),fontFamily:x("hoverlabel.font.family"),fontSize:x("hoverlabel.font.size"),fontColor:x("hoverlabel.font.color"),fontWeight:x("hoverlabel.font.weight"),fontStyle:x("hoverlabel.font.style"),fontVariant:x("hoverlabel.font.variant"),nameLength:x("hoverlabel.namelength"),textAlign:x("hoverlabel.align"),hovertemplate:A,hovertemplateLabels:k,eventData:E};u&&(B.x0=S-p.rInscribed*p.rpx1,B.x1=S+p.rInscribed*p.rpx1,B.idealAlign=p.pxmid[0]<0?"left":"right"),f&&(B.x=S,B.idealAlign=S<0?"left":"right");var O=[];yE.loneHover(B,{container:v._hoverlayer.node(),outerContainer:v._paper.node(),gd:i,inOut_bbox:O}),E[0].bbox=O[0],s._hasHoverLabel=!0}if(f){var W=t.select("path.surface");a.styleOne(W,p,y,i,{hovered:!0})}s._hasHoverEvent=!0,i.emit("plotly_hover",{points:E||[gE(p,y,a.eventDataKeys)],event:C4.event})}},h=function(p){var v=i._fullLayout,y=i._fullData[s.index],m=C4.select(this).datum();if(s._hasHoverEvent&&(p.originalEvent=C4.event,i.emit("plotly_unhover",{points:[gE(m,y,a.eventDataKeys)],event:C4.event}),s._hasHoverEvent=!1),s._hasHoverLabel&&(yE.loneUnhover(v._hoverlayer.node()),s._hasHoverLabel=!1),f){var w=t.select("path.surface");a.styleOne(w,m,y,i,{hovered:!1})}},d=function(p){var v=i._fullLayout,y=i._fullData[s.index],m=u&&(ch.isHierarchyRoot(p)||ch.isLeaf(p)),w=ch.getPtId(p),_=ch.isEntry(p)?ch.findEntryWithChild(l,w):ch.findEntryWithLevel(l,w),b=ch.getPtId(_),M={points:[gE(p,y,a.eventDataKeys)],event:C4.event};m||(M.nextLevel=b);var x=otr.triggerHandler(i,"plotly_"+s.type+"click",M);if(x!==!1&&v.hovermode&&(i._hoverdata=[gE(p,y,a.eventDataKeys)],yE.click(i,C4.event)),!m&&x!==!1&&!i._dragging&&!i._transitioning){n7e.call("_storeDirectGUIEdit",y,v._tracePreGUI[y.uid],{level:y.level});var A={data:[{level:b}],traces:[s.index]},T={frame:{redraw:!1,duration:a.transitionTime},transition:{duration:a.transitionTime,easing:a.transitionEasing},mode:"immediate",fromcurrent:!0};yE.loneUnhover(v._hoverlayer.node()),n7e.call("animate",i,A,T)}};t.on("mouseover",c),t.on("mouseout",h),t.on("click",d)};function gE(e,t,r){for(var i=e.data.data,n={curveNumber:t.index,pointNumber:i.i,data:t._input,fullData:t},a=0;a{"use strict";var bE=No(),utr=oE(),p1=(E_(),ar(S_)).interpolate,s7e=Bs(),C0=Mt(),ftr=zu(),c7e=S0(),l7e=c7e.recordMinTextSize,ctr=c7e.clearMinTextSize,h7e=xI(),htr=Gg().getRotationAngle,dtr=h7e.computeTransform,ptr=h7e.transformInsideText,vtr=uJ().styleOne,mtr=ev().resizeText,ytr=xE(),fJ=(OK(),ar(qK)),hu=Fy();VI.plot=function(e,t,r,i){var n=e._fullLayout,a=n._sunburstlayer,o,s,l=!r,u=!n.uniformtext.mode&&hu.hasTransition(r);if(ctr("sunburst",n),o=a.selectAll("g.trace.sunburst").data(t,function(c){return c[0].trace.uid}),o.enter().append("g").classed("trace",!0).classed("sunburst",!0).attr("stroke-linejoin","round"),o.order(),u){i&&(s=i());var f=bE.transition().duration(r.duration).ease(r.easing).each("end",function(){s&&s()}).each("interrupt",function(){s&&s()});f.each(function(){a.selectAll("g.trace").each(function(c){u7e(e,c,this,r)})})}else o.each(function(c){u7e(e,c,this,r)}),n.uniformtext.mode&&mtr(e,n._sunburstlayer.selectAll(".trace"),"sunburst");l&&o.exit().remove()};function u7e(e,t,r,i){var n=e._context.staticPlot,a=e._fullLayout,o=!a.uniformtext.mode&&hu.hasTransition(i),s=bE.select(r),l=s.selectAll("g.slice"),u=t[0],f=u.trace,c=u.hierarchy,h=hu.findEntryWithLevel(c,f.level),d=hu.getMaxDepth(f),p=a._size,v=f.domain,y=p.w*(v.x[1]-v.x[0]),m=p.h*(v.y[1]-v.y[0]),w=.5*Math.min(y,m),_=u.cx=p.l+p.w*(v.x[1]+v.x[0])/2,b=u.cy=p.t+p.h*(1-v.y[0])-m/2;if(!h)return l.remove();var M=null,x={};o&&l.each(function(j){x[hu.getPtId(j)]={rpx0:j.rpx0,rpx1:j.rpx1,x0:j.x0,x1:j.x1,transform:j.transform},!M&&hu.isEntry(j)&&(M=j)});var A=gtr(h).descendants(),T=h.height+1,g=0,E=d;u.hasMultipleRoots&&hu.isHierarchyRoot(h)&&(A=A.slice(1),T-=1,g=1,E+=1),A=A.filter(function(j){return j.y1<=E});var S=htr(f.rotation);S&&A.forEach(function(j){j.x0+=S,j.x1+=S});var C=Math.min(T,d),k=function(j){return(j-g)/C*w},D=function(j,q){return[j*Math.cos(q),-j*Math.sin(q)]},L=function(j){return C0.pathAnnulus(j.rpx0,j.rpx1,j.x0,j.x1,_,b)},P=function(j){return _+f7e(j)[0]*(j.transform.rCenter||0)+(j.transform.x||0)},I=function(j){return b+f7e(j)[1]*(j.transform.rCenter||0)+(j.transform.y||0)};l=l.data(A,hu.getPtId),l.enter().append("g").classed("slice",!0),o?l.exit().transition().each(function(){var j=bE.select(this),q=j.select("path.surface");q.transition().attrTween("d",function(N){var V=O(N);return function(J){return L(V(J))}});var Q=j.select("g.slicetext");Q.attr("opacity",0)}).remove():l.exit().remove(),l.order();var F=null;if(o&&M){var z=hu.getPtId(M);l.each(function(j){F===null&&hu.getPtId(j)===z&&(F=j.x1)})}var B=l;o&&(B=B.transition().each("end",function(){var j=bE.select(this);hu.setSliceCursor(j,e,{hideOnRoot:!0,hideOnLeaves:!0,isTransitioning:!1})})),B.each(function(j){var q=bE.select(this),Q=C0.ensureSingle(q,"path","surface",function(te){te.style("pointer-events",n?"none":"all")});j.rpx0=k(j.y0),j.rpx1=k(j.y1),j.xmid=(j.x0+j.x1)/2,j.pxmid=D(j.rpx1,j.xmid),j.midangle=-(j.xmid-Math.PI/2),j.startangle=-(j.x0-Math.PI/2),j.stopangle=-(j.x1-Math.PI/2),j.halfangle=.5*Math.min(C0.angleDelta(j.x0,j.x1)||Math.PI,Math.PI),j.ring=1-j.rpx0/j.rpx1,j.rInscribed=xtr(j,f),o?Q.transition().attrTween("d",function(te){var ie=W(te);return function(de){return L(ie(de))}}):Q.attr("d",L),q.call(ytr,h,e,t,{eventDataKeys:fJ.eventDataKeys,transitionTime:fJ.CLICK_TRANSITION_TIME,transitionEasing:fJ.CLICK_TRANSITION_EASING}).call(hu.setSliceCursor,e,{hideOnRoot:!0,hideOnLeaves:!0,isTransitioning:e._transitioning}),Q.call(vtr,j,f,e);var N=C0.ensureSingle(q,"g","slicetext"),V=C0.ensureSingle(N,"text","",function(te){te.attr("data-notex",1)}),J=C0.ensureUniformFontSize(e,hu.determineTextFont(f,j,a.font));V.text(VI.formatSliceLabel(j,h,f,t,a)).classed("slicetext",!0).attr("text-anchor","middle").call(s7e.font,J).call(ftr.convertToTspans,e);var H=s7e.bBox(V.node());j.transform=ptr(H,j,u),j.transform.targetX=P(j),j.transform.targetY=I(j);var $=function(te,ie){var de=te.transform;return dtr(de,ie),de.fontSize=J.size,l7e(f.type,de,a),C0.getTextTransform(de)};o?V.transition().attrTween("transform",function(te){var ie=X(te);return function(de){return $(ie(de),H)}}):V.attr("transform",$(j,H))});function O(j){var q=hu.getPtId(j),Q=x[q],N=x[hu.getPtId(h)],V;if(N){var J=(j.x1>N.x1?2*Math.PI:0)+S;V=j.rpx1F?2*Math.PI:0)+S;Q={x0:V,x1:V}}else Q={rpx0:w,rpx1:w},C0.extendFlat(Q,Z(j));else Q={rpx0:0,rpx1:0};else Q={x0:S,x1:S};return p1(Q,N)}function X(j){var q=x[hu.getPtId(j)],Q,N=j.transform;if(q)Q=q;else if(Q={rpx1:j.rpx1,transform:{textPosAngle:N.textPosAngle,scale:0,rotate:N.rotate,rCenter:N.rCenter,x:N.x,y:N.y}},M)if(j.parent)if(F){var V=j.x1>F?2*Math.PI:0;Q.x0=Q.x1=V}else C0.extendFlat(Q,Z(j));else Q.x0=Q.x1=S;else Q.x0=Q.x1=S;var J=p1(Q.transform.textPosAngle,j.transform.textPosAngle),H=p1(Q.rpx1,j.rpx1),$=p1(Q.x0,j.x0),te=p1(Q.x1,j.x1),ie=p1(Q.transform.scale,N.scale),de=p1(Q.transform.rotate,N.rotate),ge=N.rCenter===0?3:Q.transform.rCenter===0?1/3:1,Ie=p1(Q.transform.rCenter,N.rCenter),Ce=function(le){return Ie(Math.pow(le,ge))};return function(le){var re=H(le),Ee=$(le),we=te(le),oe=Ce(le),Y=D(re,(Ee+we)/2),ne=J(le),ye={pxmid:Y,rpx1:re,transform:{textPosAngle:ne,rCenter:oe,x:N.x,y:N.y}};return l7e(f.type,N,a),{transform:{targetX:P(ye),targetY:I(ye),scale:ie(le),rotate:de(le),rCenter:oe}}}}function Z(j){var q=j.parent,Q=x[hu.getPtId(q)],N={};if(Q){var V=q.children,J=V.indexOf(j),H=V.length,$=p1(Q.x0,Q.x1);N.x0=$(J/H),N.x1=$(J/H)}else N.x0=N.x1=0;return N}}function gtr(e){return utr.partition().size([2*Math.PI,e.height+1])(e)}VI.formatSliceLabel=function(e,t,r,i,n){var a=r.texttemplate,o=r.textinfo;if(!a&&(!o||o==="none"))return"";var s=n.separators,l=i[0],u=e.data.data,f=l.hierarchy,c=hu.isHierarchyRoot(e),h=hu.getParent(f,e),d=hu.getValue(e);if(!a){var p=o.split("+"),v=function(g){return p.indexOf(g)!==-1},y=[],m;if(v("label")&&u.label&&y.push(u.label),u.hasOwnProperty("v")&&v("value")&&y.push(hu.formatValue(u.v,s)),!c){v("current path")&&y.push(hu.getPath(e.data));var w=0;v("percent parent")&&w++,v("percent entry")&&w++,v("percent root")&&w++;var _=w>1;if(w){var b,M=function(g){m=hu.formatPercent(b,s),_&&(m+=" of "+g),y.push(m)};v("percent parent")&&!c&&(b=d/hu.getValue(h),M("parent")),v("percent entry")&&(b=d/hu.getValue(t),M("entry")),v("percent root")&&(b=d/hu.getValue(f),M("root"))}}return v("text")&&(m=C0.castOption(r,u.i,"text"),C0.isValidTextValue(m)&&y.push(m)),y.join("
")}var x=C0.castOption(r,u.i,"texttemplate");if(!x)return"";var A={};u.label&&(A.label=u.label),u.hasOwnProperty("v")&&(A.value=u.v,A.valueLabel=hu.formatValue(u.v,s)),A.currentPath=hu.getPath(e.data),c||(A.percentParent=d/hu.getValue(h),A.percentParentLabel=hu.formatPercent(A.percentParent,s),A.parent=hu.getPtLabel(h)),A.percentEntry=d/hu.getValue(t),A.percentEntryLabel=hu.formatPercent(A.percentEntry,s),A.entry=hu.getPtLabel(t),A.percentRoot=d/hu.getValue(f),A.percentRootLabel=hu.formatPercent(A.percentRoot,s),A.root=hu.getPtLabel(f),u.hasOwnProperty("color")&&(A.color=u.color);var T=C0.castOption(r,u.i,"text");return(C0.isValidTextValue(T)||T==="")&&(A.text=T),A.customdata=C0.castOption(r,u.i,"customdata"),C0.texttemplateString({data:[A,r._meta],fallback:r.texttemplatefallback,labels:A,locale:n._d3locale,template:x})};function xtr(e){return e.rpx0===0&&C0.isFullCircle([e.x0,e.x1])?1:Math.max(0,Math.min(1/(1+1/Math.sin(e.halfangle)),e.ring/2))}function f7e(e){return btr(e.rpx1,e.transform.textPosAngle)}function btr(e,t){return[e*Math.sin(t),-e*Math.cos(t)]}});var p7e=K((SKr,d7e)=>{"use strict";d7e.exports={moduleType:"trace",name:"sunburst",basePlotModule:kRe(),categories:[],animatable:!0,attributes:aE(),layoutAttributes:NK(),supplyDefaults:RRe(),supplyLayoutDefaults:qRe(),calc:lE().calc,crossTraceCalc:lE().crossTraceCalc,plot:UI().plot,style:uJ().style,colorbar:Qh(),meta:{}}});var m7e=K((EKr,v7e)=>{"use strict";v7e.exports=p7e()});var g7e=K(D4=>{"use strict";var y7e=yf();D4.name="treemap";D4.plot=function(e,t,r,i){y7e.plotBasePlot(D4.name,e,t,r,i)};D4.clean=function(e,t,r,i){y7e.cleanBasePlot(D4.name,e,t,r,i)}});var C_={};Fl(C_,{CLICK_TRANSITION_EASING:()=>wtr,CLICK_TRANSITION_TIME:()=>_tr,eventDataKeys:()=>Atr,gapWithPathbar:()=>Ttr});var _tr,wtr,Atr,Ttr,D_=ps(()=>{"use strict";_tr=750,wtr="poly",Atr=["currentPath","root","entry","percentRoot","percentEntry","percentParent"],Ttr=1});var GI=K((CKr,_7e)=>{"use strict";var{hovertemplateAttrs:Mtr,texttemplateAttrs:Str,templatefallbackAttrs:x7e}=yu(),Etr=Wu(),ktr=kf().attributes,F_=g_(),dv=aE(),b7e=(D_(),ar(C_)),cJ=Os().extendFlat,Ctr=yh().pattern;_7e.exports={labels:dv.labels,parents:dv.parents,values:dv.values,branchvalues:dv.branchvalues,count:dv.count,level:dv.level,maxdepth:dv.maxdepth,tiling:{packing:{valType:"enumerated",values:["squarify","binary","dice","slice","slice-dice","dice-slice"],dflt:"squarify",editType:"plot"},squarifyratio:{valType:"number",min:1,dflt:1,editType:"plot"},flip:{valType:"flaglist",flags:["x","y"],dflt:"",editType:"plot"},pad:{valType:"number",min:0,dflt:3,editType:"plot"},editType:"calc"},marker:cJ({pad:{t:{valType:"number",min:0,editType:"plot"},l:{valType:"number",min:0,editType:"plot"},r:{valType:"number",min:0,editType:"plot"},b:{valType:"number",min:0,editType:"plot"},editType:"calc"},colors:dv.marker.colors,pattern:Ctr,depthfade:{valType:"enumerated",values:[!0,!1,"reversed"],editType:"style"},line:dv.marker.line,cornerradius:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"calc"},Etr("marker",{colorAttr:"colors",anim:!1})),pathbar:{visible:{valType:"boolean",dflt:!0,editType:"plot"},side:{valType:"enumerated",values:["top","bottom"],dflt:"top",editType:"plot"},edgeshape:{valType:"enumerated",values:[">","<","|","/","\\"],dflt:">",editType:"plot"},thickness:{valType:"number",min:12,editType:"plot"},textfont:cJ({},F_.textfont,{}),editType:"calc"},text:F_.text,textinfo:dv.textinfo,texttemplate:Str({editType:"plot"},{keys:b7e.eventDataKeys.concat(["label","value"])}),texttemplatefallback:x7e({editType:"plot"}),hovertext:F_.hovertext,hoverinfo:dv.hoverinfo,hovertemplate:Mtr({},{keys:b7e.eventDataKeys}),hovertemplatefallback:x7e(),textfont:F_.textfont,insidetextfont:F_.insidetextfont,outsidetextfont:cJ({},F_.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:F_.sort,root:dv.root,domain:ktr({name:"treemap",trace:!0,editType:"calc"})}});var hJ=K((DKr,w7e)=>{"use strict";w7e.exports={treemapcolorway:{valType:"colorlist",editType:"calc"},extendtreemapcolors:{valType:"boolean",dflt:!0,editType:"calc"}}});var S7e=K((FKr,M7e)=>{"use strict";var A7e=Mt(),Dtr=GI(),Ftr=ko(),Ltr=kf().defaults,Ptr=up().handleText,ztr=(Qg(),ar(Jg)).TEXTPAD,Itr=x_().handleMarkerDefaults,T7e=gf(),Rtr=T7e.hasColorscale,Btr=T7e.handleDefaults;M7e.exports=function(t,r,i,n){function a(y,m){return A7e.coerce(t,r,Dtr,y,m)}var o=a("labels"),s=a("parents");if(!o||!o.length||!s||!s.length){r.visible=!1;return}var l=a("values");l&&l.length?a("branchvalues"):a("count"),a("level"),a("maxdepth");var u=a("tiling.packing");u==="squarify"&&a("tiling.squarifyratio"),a("tiling.flip"),a("tiling.pad");var f=a("text");a("texttemplate"),a("texttemplatefallback"),r.texttemplate||a("textinfo",A7e.isArrayOrTypedArray(f)?"text+label":"label"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback");var c=a("pathbar.visible"),h="auto";Ptr(t,r,n,a,h,{hasPathbar:c,moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1}),a("textposition");var d=r.textposition.indexOf("bottom")!==-1;Itr(t,r,n,a);var p=r._hasColorscale=Rtr(t,"marker","colors")||(t.marker||{}).coloraxis;p?Btr(t,r,n,a,{prefix:"marker.",cLetter:"c"}):a("marker.depthfade",!(r.marker.colors||[]).length);var v=r.textfont.size*2;a("marker.pad.t",d?v/4:v),a("marker.pad.l",v/4),a("marker.pad.r",v/4),a("marker.pad.b",d?v:v/4),a("marker.cornerradius"),r._hovered={marker:{line:{width:2,color:Ftr.contrast(n.paper_bgcolor)}}},c&&(a("pathbar.thickness",r.pathbar.textfont.size+2*ztr),a("pathbar.side"),a("pathbar.edgeshape")),a("sort"),a("root.color"),Ltr(r,n,a),r._length=null}});var k7e=K((LKr,E7e)=>{"use strict";var qtr=Mt(),Otr=hJ();E7e.exports=function(t,r){function i(n,a){return qtr.coerce(t,r,Otr,n,a)}i("treemapcolorway",r.colorway),i("extendtreemapcolors")}});var pJ=K(dJ=>{"use strict";var C7e=lE();dJ.calc=function(e,t){return C7e.calc(e,t)};dJ.crossTraceCalc=function(e){return C7e._runCrossTraceCalc("treemap",e)}});var vJ=K((zKr,D7e)=>{"use strict";D7e.exports=function e(t,r,i){var n;i.swapXY&&(n=t.x0,t.x0=t.y0,t.y0=n,n=t.x1,t.x1=t.y1,t.y1=n),i.flipX&&(n=t.x0,t.x0=r[0]-t.x1,t.x1=r[0]-n),i.flipY&&(n=t.y0,t.y0=r[1]-t.y1,t.y1=r[1]-n);var a=t.children;if(a)for(var o=0;o{"use strict";var F4=oE(),Ntr=vJ();F7e.exports=function(t,r,i){var n=i.flipX,a=i.flipY,o=i.packing==="dice-slice",s=i.pad[a?"bottom":"top"],l=i.pad[n?"right":"left"],u=i.pad[n?"left":"right"],f=i.pad[a?"top":"bottom"],c;o&&(c=l,l=s,s=c,c=u,u=f,f=c);var h=F4.treemap().tile(Vtr(i.packing,i.squarifyratio)).paddingInner(i.pad.inner).paddingLeft(l).paddingRight(u).paddingTop(s).paddingBottom(f).size(o?[r[1],r[0]]:r)(t);return(o||n||a)&&Ntr(h,r,{swapXY:o,flipX:n,flipY:a}),h};function Vtr(e,t){switch(e){case"squarify":return F4.treemapSquarify.ratio(t);case"binary":return F4.treemapBinary;case"dice":return F4.treemapDice;case"slice":return F4.treemapSlice;default:return F4.treemapSliceDice}}});var HI=K((RKr,I7e)=>{"use strict";var L7e=No(),L4=ko(),P7e=Mt(),yJ=Fy(),Utr=S0().resizeText,Gtr=NI();function Htr(e){var t=e._fullLayout._treemaplayer.selectAll(".trace");Utr(e,t,"treemap"),t.each(function(r){var i=L7e.select(this),n=r[0],a=n.trace;i.style("opacity",a.opacity),i.selectAll("path.surface").each(function(o){L7e.select(this).call(z7e,o,a,e,{hovered:!1})})})}function z7e(e,t,r,i,n){var a=(n||{}).hovered,o=t.data.data,s=o.i,l,u,f=o.color,c=yJ.isHierarchyRoot(t),h=1;if(a)l=r._hovered.marker.line.color,u=r._hovered.marker.line.width;else if(c&&f===r.root.color)h=100,l="rgba(0,0,0,0)",u=0;else if(l=P7e.castOption(r,s,"marker.line.color")||L4.defaultLine,u=P7e.castOption(r,s,"marker.line.width")||0,!r._hasColorscale&&!t.onPathbar){var d=r.marker.depthfade;if(d){var p=L4.combine(L4.addOpacity(r._backgroundColor,.75),f),v;if(d===!0){var y=yJ.getMaxDepth(r);isFinite(y)?yJ.isLeaf(t)?v=0:v=r._maxVisibleLayers-(t.data.depth-r._entryDepth):v=t.data.height+1}else v=t.data.depth-r._entryDepth,r._atRootLevel||v++;if(v>0)for(var m=0;m{"use strict";var R7e=No(),jI=Mt(),B7e=Bs(),jtr=zu(),Wtr=mJ(),q7e=HI().styleOne,gJ=(D_(),ar(C_)),P4=Fy(),$tr=xE(),xJ=!0;O7e.exports=function(t,r,i,n,a){var o=a.barDifY,s=a.width,l=a.height,u=a.viewX,f=a.viewY,c=a.pathSlice,h=a.toMoveInsideSlice,d=a.strTransform,p=a.hasTransition,v=a.handleSlicesExit,y=a.makeUpdateSliceInterpolator,m=a.makeUpdateTextInterpolator,w={},_=t._context.staticPlot,b=t._fullLayout,M=r[0],x=M.trace,A=M.hierarchy,T=s/x._entryDepth,g=P4.listPath(i.data,"id"),E=Wtr(A.copy(),[s,l],{packing:"dice",pad:{inner:0,top:0,left:0,right:0,bottom:0}}).descendants();E=E.filter(function(C){var k=g.indexOf(C.data.id);return k===-1?!1:(C.x0=T*k,C.x1=T*(k+1),C.y0=o,C.y1=o+l,C.onPathbar=!0,!0)}),E.reverse(),n=n.data(E,P4.getPtId),n.enter().append("g").classed("pathbar",!0),v(n,xJ,w,[s,l],c),n.order();var S=n;p&&(S=S.transition().each("end",function(){var C=R7e.select(this);P4.setSliceCursor(C,t,{hideOnRoot:!1,hideOnLeaves:!1,isTransitioning:!1})})),S.each(function(C){C._x0=u(C.x0),C._x1=u(C.x1),C._y0=f(C.y0),C._y1=f(C.y1),C._hoverX=u(C.x1-Math.min(s,l)/2),C._hoverY=f(C.y1-l/2);var k=R7e.select(this),D=jI.ensureSingle(k,"path","surface",function(F){F.style("pointer-events",_?"none":"all")});p?D.transition().attrTween("d",function(F){var z=y(F,xJ,w,[s,l]);return function(B){return c(z(B))}}):D.attr("d",c),k.call($tr,i,t,r,{styleOne:q7e,eventDataKeys:gJ.eventDataKeys,transitionTime:gJ.CLICK_TRANSITION_TIME,transitionEasing:gJ.CLICK_TRANSITION_EASING}).call(P4.setSliceCursor,t,{hideOnRoot:!1,hideOnLeaves:!1,isTransitioning:t._transitioning}),D.call(q7e,C,x,t,{hovered:!1}),C._text=(P4.getPtLabel(C)||"").split("
").join(" ")||"";var L=jI.ensureSingle(k,"g","slicetext"),P=jI.ensureSingle(L,"text","",function(F){F.attr("data-notex",1)}),I=jI.ensureUniformFontSize(t,P4.determineTextFont(x,C,b.font,{onPathbar:!0}));P.text(C._text||" ").classed("slicetext",!0).attr("text-anchor","start").call(B7e.font,I).call(jtr.convertToTspans,t),C.textBB=B7e.bBox(P.node()),C.transform=h(C,{fontSize:I.size,onPathbar:!0}),C.transform.fontSize=I.size,p?P.transition().attrTween("transform",function(F){var z=m(F,xJ,w,[s,l]);return function(B){return d(z(B))}}):P.attr("transform",d(C))})}});var H7e=K((qKr,G7e)=>{"use strict";var V7e=No(),bJ=(E_(),ar(S_)).interpolate,L2=Fy(),_E=Mt(),U7e=(Qg(),ar(Jg)).TEXTPAD,Ytr=Yb(),Xtr=Ytr.toMoveInsideBar,Ztr=S0(),_J=Ztr.recordMinTextSize,Ktr=(D_(),ar(C_)),Jtr=N7e();function L_(e){return L2.isHierarchyRoot(e)?"":L2.getPtId(e)}G7e.exports=function(t,r,i,n,a){var o=t._fullLayout,s=r[0],l=s.trace,u=l.type,f=u==="icicle",c=s.hierarchy,h=L2.findEntryWithLevel(c,l.level),d=V7e.select(i),p=d.selectAll("g.pathbar"),v=d.selectAll("g.slice");if(!h){p.remove(),v.remove();return}var y=L2.isHierarchyRoot(h),m=!o.uniformtext.mode&&L2.hasTransition(n),w=L2.getMaxDepth(l),_=function(U){return U.data.depth-h.data.depth-1?A+E:-(g+E):0,C={x0:T,x1:T,y0:S,y1:S+g},k=function(U,se,Ae){var be=l.tiling.pad,me=function(Be){return Be-be<=se.x0},ue=function(Be){return Be+be>=se.x1},pe=function(Be){return Be-be<=se.y0},ce=function(Be){return Be+be>=se.y1};return U.x0===se.x0&&U.x1===se.x1&&U.y0===se.y0&&U.y1===se.y1?{x0:U.x0,x1:U.x1,y0:U.y0,y1:U.y1}:{x0:me(U.x0-be)?0:ue(U.x0-be)?Ae[0]:U.x0,x1:me(U.x1+be)?0:ue(U.x1+be)?Ae[0]:U.x1,y0:pe(U.y0-be)?0:ce(U.y0-be)?Ae[1]:U.y0,y1:pe(U.y1+be)?0:ce(U.y1+be)?Ae[1]:U.y1}},D=null,L={},P={},I=null,F=function(U,se){return se?L[L_(U)]:P[L_(U)]},z=function(U,se,Ae,be){if(se)return L[L_(c)]||C;var me=P[l.level]||Ae;return _(U)?k(U,me,be):{}};s.hasMultipleRoots&&y&&w++,l._maxDepth=w,l._backgroundColor=o.paper_bgcolor,l._entryDepth=h.data.depth,l._atRootLevel=y;var B=-x/2+b.l+b.w*(M.x[1]+M.x[0])/2,O=-A/2+b.t+b.h*(1-(M.y[1]+M.y[0])/2),W=function(U){return B+U},X=function(U){return O+U},Z=X(0),j=W(0),q=function(U){return j+U},Q=function(U){return Z+U};function N(U,se){return U+","+se}var V=q(0),J=function(U){U.x=Math.max(V,U.x)},H=l.pathbar.edgeshape,$=function(U){var se=q(Math.max(Math.min(U.x0,U.x0),0)),Ae=q(Math.min(Math.max(U.x1,U.x1),T)),be=Q(U.y0),me=Q(U.y1),ue=g/2,pe={},ce={};pe.x=se,ce.x=Ae,pe.y=ce.y=(be+me)/2;var Be={x:se,y:be},$e={x:Ae,y:be},Ze={x:Ae,y:me},it={x:se,y:me};return H===">"?(Be.x-=ue,$e.x-=ue,Ze.x-=ue,it.x-=ue):H==="/"?(Ze.x-=ue,it.x-=ue,pe.x-=ue/2,ce.x-=ue/2):H==="\\"?(Be.x-=ue,$e.x-=ue,pe.x-=ue/2,ce.x-=ue/2):H==="<"&&(pe.x-=ue,ce.x-=ue),J(Be),J(it),J(pe),J($e),J(Ze),J(ce),"M"+N(Be.x,Be.y)+"L"+N($e.x,$e.y)+"L"+N(ce.x,ce.y)+"L"+N(Ze.x,Ze.y)+"L"+N(it.x,it.y)+"L"+N(pe.x,pe.y)+"Z"},te=l[f?"tiling":"marker"].pad,ie=function(U){return l.textposition.indexOf(U)!==-1},de=ie("top"),ge=ie("left"),Ie=ie("right"),Ce=ie("bottom"),le=function(U){var se=W(U.x0),Ae=W(U.x1),be=X(U.y0),me=X(U.y1),ue=Ae-se,pe=me-be;if(!ue||!pe)return"";var ce=l.marker.cornerradius||0,Be=Math.min(ce,ue/2,pe/2);Be&&U.data&&U.data.data&&U.data.data.label&&(de&&(Be=Math.min(Be,te.t)),ge&&(Be=Math.min(Be,te.l)),Ie&&(Be=Math.min(Be,te.r)),Ce&&(Be=Math.min(Be,te.b)));var $e=function(Ze,it){return Be?"a"+N(Be,Be)+" 0 0 1 "+N(Ze,it):""};return"M"+N(se,be+Be)+$e(Be,-Be)+"L"+N(Ae-Be,be)+$e(Be,Be)+"L"+N(Ae,me-Be)+$e(-Be,Be)+"L"+N(se+Be,me)+$e(-Be,-Be)+"Z"},re=function(U,se){var Ae=U.x0,be=U.x1,me=U.y0,ue=U.y1,pe=U.textBB,ce=de||se.isHeader&&!Ce,Be=ce?"start":Ce?"end":"middle",$e=ie("right"),Ze=ie("left")||se.onPathbar,it=Ze?-1:$e?1:0;if(se.isHeader){if(Ae+=(f?te:te.l)-U7e,be-=(f?te:te.r)-U7e,Ae>=be){var nt=(Ae+be)/2;Ae=nt,be=nt}var Ue;Ce?(Ue=ue-(f?te:te.b),me{"use strict";var Qtr=No(),err=Fy(),trr=S0(),rrr=trr.clearMinTextSize,irr=ev().resizeText,j7e=H7e();W7e.exports=function(t,r,i,n,a){var o=a.type,s=a.drawDescendants,l=t._fullLayout,u=l["_"+o+"layer"],f,c,h=!i;if(rrr(o,l),f=u.selectAll("g.trace."+o).data(r,function(p){return p[0].trace.uid}),f.enter().append("g").classed("trace",!0).classed(o,!0),f.order(),!l.uniformtext.mode&&err.hasTransition(i)){n&&(c=n());var d=Qtr.transition().duration(i.duration).ease(i.easing).each("end",function(){c&&c()}).each("interrupt",function(){c&&c()});d.each(function(){u.selectAll("g.trace").each(function(p){j7e(t,p,this,i,s)})})}else f.each(function(p){j7e(t,p,this,i,s)}),l.uniformtext.mode&&irr(t,u.selectAll(".trace"),o);h&&f.exit().remove()}});var K7e=K((NKr,Z7e)=>{"use strict";var $7e=No(),WI=Mt(),Y7e=Bs(),nrr=zu(),arr=mJ(),X7e=HI().styleOne,AJ=(D_(),ar(C_)),P2=Fy(),orr=xE(),srr=UI().formatSliceLabel,TJ=!1;Z7e.exports=function(t,r,i,n,a){var o=a.width,s=a.height,l=a.viewX,u=a.viewY,f=a.pathSlice,c=a.toMoveInsideSlice,h=a.strTransform,d=a.hasTransition,p=a.handleSlicesExit,v=a.makeUpdateSliceInterpolator,y=a.makeUpdateTextInterpolator,m=a.prevEntry,w={},_=t._context.staticPlot,b=t._fullLayout,M=r[0],x=M.trace,A=x.textposition.indexOf("left")!==-1,T=x.textposition.indexOf("right")!==-1,g=x.textposition.indexOf("bottom")!==-1,E=!g&&!x.marker.pad.t||g&&!x.marker.pad.b,S=arr(i,[o,s],{packing:x.tiling.packing,squarifyratio:x.tiling.squarifyratio,flipX:x.tiling.flip.indexOf("x")>-1,flipY:x.tiling.flip.indexOf("y")>-1,pad:{inner:x.tiling.pad,top:x.marker.pad.t,left:x.marker.pad.l,right:x.marker.pad.r,bottom:x.marker.pad.b}}),C=S.descendants(),k=1/0,D=-1/0;C.forEach(function(z){var B=z.depth;B>=x._maxDepth?(z.x0=z.x1=(z.x0+z.x1)/2,z.y0=z.y1=(z.y0+z.y1)/2):(k=Math.min(k,B),D=Math.max(D,B))}),n=n.data(C,P2.getPtId),x._maxVisibleLayers=isFinite(D)?D-k+1:0,n.enter().append("g").classed("slice",!0),p(n,TJ,w,[o,s],f),n.order();var L=null;if(d&&m){var P=P2.getPtId(m);n.each(function(z){L===null&&P2.getPtId(z)===P&&(L={x0:z.x0,x1:z.x1,y0:z.y0,y1:z.y1})})}var I=function(){return L||{x0:0,x1:o,y0:0,y1:s}},F=n;return d&&(F=F.transition().each("end",function(){var z=$7e.select(this);P2.setSliceCursor(z,t,{hideOnRoot:!0,hideOnLeaves:!1,isTransitioning:!1})})),F.each(function(z){var B=P2.isHeader(z,x);z._x0=l(z.x0),z._x1=l(z.x1),z._y0=u(z.y0),z._y1=u(z.y1),z._hoverX=l(z.x1-x.marker.pad.r),z._hoverY=u(g?z.y1-x.marker.pad.b/2:z.y0+x.marker.pad.t/2);var O=$7e.select(this),W=WI.ensureSingle(O,"path","surface",function(N){N.style("pointer-events",_?"none":"all")});d?W.transition().attrTween("d",function(N){var V=v(N,TJ,I(),[o,s]);return function(J){return f(V(J))}}):W.attr("d",f),O.call(orr,i,t,r,{styleOne:X7e,eventDataKeys:AJ.eventDataKeys,transitionTime:AJ.CLICK_TRANSITION_TIME,transitionEasing:AJ.CLICK_TRANSITION_EASING}).call(P2.setSliceCursor,t,{isTransitioning:t._transitioning}),W.call(X7e,z,x,t,{hovered:!1}),z.x0===z.x1||z.y0===z.y1?z._text="":B?z._text=E?"":P2.getPtLabel(z)||"":z._text=srr(z,i,x,r,b)||"";var X=WI.ensureSingle(O,"g","slicetext"),Z=WI.ensureSingle(X,"text","",function(N){N.attr("data-notex",1)}),j=WI.ensureUniformFontSize(t,P2.determineTextFont(x,z,b.font)),q=z._text||" ",Q=B&&q.indexOf("
")===-1;Z.text(q).classed("slicetext",!0).attr("text-anchor",T?"end":A||Q?"start":"middle").call(Y7e.font,j).call(nrr.convertToTspans,t),z.textBB=Y7e.bBox(Z.node()),z.transform=c(z,{fontSize:j.size,isHeader:B}),z.transform.fontSize=j.size,d?Z.transition().attrTween("transform",function(N){var V=y(N,TJ,I(),[o,s]);return function(J){return h(V(J))}}):Z.attr("transform",h(z))}),L}});var Q7e=K((VKr,J7e)=>{"use strict";var lrr=wJ(),urr=K7e();J7e.exports=function(t,r,i,n){return lrr(t,r,i,n,{type:"treemap",drawDescendants:urr})}});var tqe=K((UKr,eqe)=>{"use strict";eqe.exports={moduleType:"trace",name:"treemap",basePlotModule:g7e(),categories:[],animatable:!0,attributes:GI(),layoutAttributes:hJ(),supplyDefaults:S7e(),supplyLayoutDefaults:k7e(),calc:pJ().calc,crossTraceCalc:pJ().crossTraceCalc,plot:Q7e(),style:HI().style,colorbar:Qh(),meta:{}}});var iqe=K((GKr,rqe)=>{"use strict";rqe.exports=tqe()});var aqe=K(z4=>{"use strict";var nqe=yf();z4.name="icicle";z4.plot=function(e,t,r,i){nqe.plotBasePlot(z4.name,e,t,r,i)};z4.clean=function(e,t,r,i){nqe.cleanBasePlot(z4.name,e,t,r,i)}});var MJ=K((jKr,lqe)=>{"use strict";var{hovertemplateAttrs:frr,texttemplateAttrs:crr,templatefallbackAttrs:oqe}=yu(),hrr=Wu(),drr=kf().attributes,wE=g_(),vp=aE(),$I=GI(),sqe=(D_(),ar(C_)),prr=Os().extendFlat,vrr=yh().pattern;lqe.exports={labels:vp.labels,parents:vp.parents,values:vp.values,branchvalues:vp.branchvalues,count:vp.count,level:vp.level,maxdepth:vp.maxdepth,tiling:{orientation:{valType:"enumerated",values:["v","h"],dflt:"h",editType:"plot"},flip:$I.tiling.flip,pad:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"calc"},marker:prr({colors:vp.marker.colors,line:vp.marker.line,pattern:vrr,editType:"calc"},hrr("marker",{colorAttr:"colors",anim:!1})),leaf:vp.leaf,pathbar:$I.pathbar,text:wE.text,textinfo:vp.textinfo,texttemplate:crr({editType:"plot"},{keys:sqe.eventDataKeys.concat(["label","value"])}),texttemplatefallback:oqe({editType:"plot"}),hovertext:wE.hovertext,hoverinfo:vp.hoverinfo,hovertemplate:frr({},{keys:sqe.eventDataKeys}),hovertemplatefallback:oqe(),textfont:wE.textfont,insidetextfont:wE.insidetextfont,outsidetextfont:$I.outsidetextfont,textposition:$I.textposition,sort:wE.sort,root:vp.root,domain:drr({name:"icicle",trace:!0,editType:"calc"})}});var SJ=K((WKr,uqe)=>{"use strict";uqe.exports={iciclecolorway:{valType:"colorlist",editType:"calc"},extendiciclecolors:{valType:"boolean",dflt:!0,editType:"calc"}}});var dqe=K(($Kr,hqe)=>{"use strict";var fqe=Mt(),mrr=MJ(),yrr=ko(),grr=kf().defaults,xrr=up().handleText,brr=(Qg(),ar(Jg)).TEXTPAD,_rr=x_().handleMarkerDefaults,cqe=gf(),wrr=cqe.hasColorscale,Arr=cqe.handleDefaults;hqe.exports=function(t,r,i,n){function a(d,p){return fqe.coerce(t,r,mrr,d,p)}var o=a("labels"),s=a("parents");if(!o||!o.length||!s||!s.length){r.visible=!1;return}var l=a("values");l&&l.length?a("branchvalues"):a("count"),a("level"),a("maxdepth"),a("tiling.orientation"),a("tiling.flip"),a("tiling.pad");var u=a("text");a("texttemplate"),a("texttemplatefallback"),r.texttemplate||a("textinfo",fqe.isArrayOrTypedArray(u)?"text+label":"label"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback");var f=a("pathbar.visible"),c="auto";xrr(t,r,n,a,c,{hasPathbar:f,moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1}),a("textposition"),_rr(t,r,n,a);var h=r._hasColorscale=wrr(t,"marker","colors")||(t.marker||{}).coloraxis;h&&Arr(t,r,n,a,{prefix:"marker.",cLetter:"c"}),a("leaf.opacity",h?1:.7),r._hovered={marker:{line:{width:2,color:yrr.contrast(n.paper_bgcolor)}}},f&&(a("pathbar.thickness",r.pathbar.textfont.size+2*brr),a("pathbar.side"),a("pathbar.edgeshape")),a("sort"),a("root.color"),grr(r,n,a),r._length=null}});var vqe=K((YKr,pqe)=>{"use strict";var Trr=Mt(),Mrr=SJ();pqe.exports=function(t,r){function i(n,a){return Trr.coerce(t,r,Mrr,n,a)}i("iciclecolorway",r.colorway),i("extendiciclecolors")}});var kJ=K(EJ=>{"use strict";var mqe=lE();EJ.calc=function(e,t){return mqe.calc(e,t)};EJ.crossTraceCalc=function(e){return mqe._runCrossTraceCalc("icicle",e)}});var gqe=K((ZKr,yqe)=>{"use strict";var Srr=oE(),Err=vJ();yqe.exports=function(t,r,i){var n=i.flipX,a=i.flipY,o=i.orientation==="h",s=i.maxDepth,l=r[0],u=r[1];s&&(l=(t.height+1)*r[0]/Math.min(t.height+1,s),u=(t.height+1)*r[1]/Math.min(t.height+1,s));var f=Srr.partition().padding(i.pad.inner).size(o?[r[1],l]:[r[0],u])(t);return(o||n||a)&&Err(f,r,{swapXY:o,flipX:n,flipY:a}),f}});var CJ=K((KKr,Aqe)=>{"use strict";var xqe=No(),bqe=ko(),_qe=Mt(),krr=S0().resizeText,Crr=NI();function Drr(e){var t=e._fullLayout._iciclelayer.selectAll(".trace");krr(e,t,"icicle"),t.each(function(r){var i=xqe.select(this),n=r[0],a=n.trace;i.style("opacity",a.opacity),i.selectAll("path.surface").each(function(o){xqe.select(this).call(wqe,o,a,e)})})}function wqe(e,t,r,i){var n=t.data.data,a=!t.children,o=n.i,s=_qe.castOption(r,o,"marker.line.color")||bqe.defaultLine,l=_qe.castOption(r,o,"marker.line.width")||0;e.call(Crr,t,r,i).style("stroke-width",l).call(bqe.stroke,s).style("opacity",a?r.leaf.opacity:null)}Aqe.exports={style:Drr,styleOne:wqe}});var kqe=K((JKr,Eqe)=>{"use strict";var Tqe=No(),YI=Mt(),Mqe=Bs(),Frr=zu(),Lrr=gqe(),Sqe=CJ().styleOne,DJ=(D_(),ar(C_)),I4=Fy(),Prr=xE(),zrr=UI().formatSliceLabel,FJ=!1;Eqe.exports=function(t,r,i,n,a){var o=a.width,s=a.height,l=a.viewX,u=a.viewY,f=a.pathSlice,c=a.toMoveInsideSlice,h=a.strTransform,d=a.hasTransition,p=a.handleSlicesExit,v=a.makeUpdateSliceInterpolator,y=a.makeUpdateTextInterpolator,m=a.prevEntry,w={},_=t._context.staticPlot,b=t._fullLayout,M=r[0],x=M.trace,A=x.textposition.indexOf("left")!==-1,T=x.textposition.indexOf("right")!==-1,g=x.textposition.indexOf("bottom")!==-1,E=Lrr(i,[o,s],{flipX:x.tiling.flip.indexOf("x")>-1,flipY:x.tiling.flip.indexOf("y")>-1,orientation:x.tiling.orientation,pad:{inner:x.tiling.pad},maxDepth:x._maxDepth}),S=E.descendants(),C=1/0,k=-1/0;S.forEach(function(F){var z=F.depth;z>=x._maxDepth?(F.x0=F.x1=(F.x0+F.x1)/2,F.y0=F.y1=(F.y0+F.y1)/2):(C=Math.min(C,z),k=Math.max(k,z))}),n=n.data(S,I4.getPtId),x._maxVisibleLayers=isFinite(k)?k-C+1:0,n.enter().append("g").classed("slice",!0),p(n,FJ,w,[o,s],f),n.order();var D=null;if(d&&m){var L=I4.getPtId(m);n.each(function(F){D===null&&I4.getPtId(F)===L&&(D={x0:F.x0,x1:F.x1,y0:F.y0,y1:F.y1})})}var P=function(){return D||{x0:0,x1:o,y0:0,y1:s}},I=n;return d&&(I=I.transition().each("end",function(){var F=Tqe.select(this);I4.setSliceCursor(F,t,{hideOnRoot:!0,hideOnLeaves:!1,isTransitioning:!1})})),I.each(function(F){F._x0=l(F.x0),F._x1=l(F.x1),F._y0=u(F.y0),F._y1=u(F.y1),F._hoverX=l(F.x1-x.tiling.pad),F._hoverY=u(g?F.y1-x.tiling.pad/2:F.y0+x.tiling.pad/2);var z=Tqe.select(this),B=YI.ensureSingle(z,"path","surface",function(Z){Z.style("pointer-events",_?"none":"all")});d?B.transition().attrTween("d",function(Z){var j=v(Z,FJ,P(),[o,s],{orientation:x.tiling.orientation,flipX:x.tiling.flip.indexOf("x")>-1,flipY:x.tiling.flip.indexOf("y")>-1});return function(q){return f(j(q))}}):B.attr("d",f),z.call(Prr,i,t,r,{styleOne:Sqe,eventDataKeys:DJ.eventDataKeys,transitionTime:DJ.CLICK_TRANSITION_TIME,transitionEasing:DJ.CLICK_TRANSITION_EASING}).call(I4.setSliceCursor,t,{isTransitioning:t._transitioning}),B.call(Sqe,F,x,t,{hovered:!1}),F.x0===F.x1||F.y0===F.y1?F._text="":F._text=zrr(F,i,x,r,b)||"";var O=YI.ensureSingle(z,"g","slicetext"),W=YI.ensureSingle(O,"text","",function(Z){Z.attr("data-notex",1)}),X=YI.ensureUniformFontSize(t,I4.determineTextFont(x,F,b.font));W.text(F._text||" ").classed("slicetext",!0).attr("text-anchor",T?"end":A?"start":"middle").call(Mqe.font,X).call(Frr.convertToTspans,t),F.textBB=Mqe.bBox(W.node()),F.transform=c(F,{fontSize:X.size}),F.transform.fontSize=X.size,d?W.transition().attrTween("transform",function(Z){var j=y(Z,FJ,P(),[o,s]);return function(q){return h(j(q))}}):W.attr("transform",h(F))}),D}});var Dqe=K((QKr,Cqe)=>{"use strict";var Irr=wJ(),Rrr=kqe();Cqe.exports=function(t,r,i,n){return Irr(t,r,i,n,{type:"icicle",drawDescendants:Rrr})}});var Lqe=K((eJr,Fqe)=>{"use strict";Fqe.exports={moduleType:"trace",name:"icicle",basePlotModule:aqe(),categories:[],animatable:!0,attributes:MJ(),layoutAttributes:SJ(),supplyDefaults:dqe(),supplyLayoutDefaults:vqe(),calc:kJ().calc,crossTraceCalc:kJ().crossTraceCalc,plot:Dqe(),style:CJ().style,colorbar:Qh(),meta:{}}});var zqe=K((tJr,Pqe)=>{"use strict";Pqe.exports=Lqe()});var Rqe=K(R4=>{"use strict";var Iqe=yf();R4.name="funnelarea";R4.plot=function(e,t,r,i){Iqe.plotBasePlot(R4.name,e,t,r,i)};R4.clean=function(e,t,r,i){Iqe.cleanBasePlot(R4.name,e,t,r,i)}});var LJ=K((iJr,qqe)=>{"use strict";var n0=g_(),Brr=Au(),qrr=kf().attributes,{hovertemplateAttrs:Orr,texttemplateAttrs:Nrr,templatefallbackAttrs:Bqe}=yu(),P_=Os().extendFlat;qqe.exports={labels:n0.labels,label0:n0.label0,dlabel:n0.dlabel,values:n0.values,marker:{colors:n0.marker.colors,line:{color:P_({},n0.marker.line.color,{dflt:null}),width:P_({},n0.marker.line.width,{dflt:1}),editType:"calc"},pattern:n0.marker.pattern,editType:"calc"},text:n0.text,hovertext:n0.hovertext,scalegroup:P_({},n0.scalegroup,{}),textinfo:P_({},n0.textinfo,{flags:["label","text","value","percent"]}),texttemplate:Nrr({editType:"plot"},{keys:["label","color","value","text","percent"]}),texttemplatefallback:Bqe({editType:"plot"}),hoverinfo:P_({},Brr.hoverinfo,{flags:["label","text","value","percent","name"]}),hovertemplate:Orr({},{keys:["label","color","value","text","percent"]}),hovertemplatefallback:Bqe(),textposition:P_({},n0.textposition,{values:["inside","none"],dflt:"inside"}),textfont:n0.textfont,insidetextfont:n0.insidetextfont,title:{text:n0.title.text,font:n0.title.font,position:P_({},n0.title.position,{values:["top left","top center","top right"],dflt:"top center"}),editType:"plot"},domain:qrr({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"}}});var PJ=K((nJr,Oqe)=>{"use strict";var Vrr=vI().hiddenlabels;Oqe.exports={hiddenlabels:Vrr,funnelareacolorway:{valType:"colorlist",editType:"calc"},extendfunnelareacolors:{valType:"boolean",dflt:!0,editType:"calc"}}});var Uqe=K((aJr,Vqe)=>{"use strict";var Nqe=Mt(),Urr=LJ(),Grr=kf().defaults,Hrr=up().handleText,jrr=x_().handleLabelsAndValues,Wrr=x_().handleMarkerDefaults;Vqe.exports=function(t,r,i,n){function a(v,y){return Nqe.coerce(t,r,Urr,v,y)}var o=a("labels"),s=a("values"),l=jrr(o,s),u=l.len;if(r._hasLabels=l.hasLabels,r._hasValues=l.hasValues,!r._hasLabels&&r._hasValues&&(a("label0"),a("dlabel")),!u){r.visible=!1;return}r._length=u,Wrr(t,r,n,a),a("scalegroup");var f=a("text"),c=a("texttemplate");a("texttemplatefallback");var h;if(c||(h=a("textinfo",Array.isArray(f)?"text+percent":"percent")),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback"),c||h&&h!=="none"){var d=a("textposition");Hrr(t,r,n,a,d,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1})}else h==="none"&&a("textposition","none");Grr(r,n,a);var p=a("title.text");p&&(a("title.position"),Nqe.coerceFont(a,"title.font",n.font)),a("aspectratio"),a("baseratio")}});var Hqe=K((oJr,Gqe)=>{"use strict";var $rr=Mt(),Yrr=PJ();Gqe.exports=function(t,r){function i(n,a){return $rr.coerce(t,r,Yrr,n,a)}i("hiddenlabels"),i("funnelareacolorway",r.colorway),i("extendfunnelareacolors")}});var zJ=K((sJr,Wqe)=>{"use strict";var jqe=g4();function Xrr(e,t){return jqe.calc(e,t)}function Zrr(e){jqe.crossTraceCalc(e,{type:"funnelarea"})}Wqe.exports={calc:Xrr,crossTraceCalc:Zrr}});var Kqe=K((lJr,Zqe)=>{"use strict";var z_=No(),IJ=Bs(),z2=Mt(),Krr=z2.strScale,$qe=z2.strTranslate,Yqe=zu(),Jrr=Yb(),Qrr=Jrr.toMoveInsideBar,Xqe=S0(),eir=Xqe.recordMinTextSize,tir=Xqe.clearMinTextSize,rir=Gg(),B4=xI(),iir=B4.attachFxHandlers,nir=B4.determineInsideTextFont,air=B4.layoutAreas,oir=B4.prerenderTitles,sir=B4.positionTitleOutside,lir=B4.formatSliceLabel;Zqe.exports=function(t,r){var i=t._context.staticPlot,n=t._fullLayout;tir("funnelarea",n),oir(r,t),air(r,n._size),z2.makeTraceGroups(n._funnelarealayer,r,"trace").each(function(a){var o=z_.select(this),s=a[0],l=s.trace;fir(a),o.each(function(){var u=z_.select(this).selectAll("g.slice").data(a);u.enter().append("g").classed("slice",!0),u.exit().remove(),u.each(function(c,h){if(c.hidden){z_.select(this).selectAll("path,g").remove();return}c.pointNumber=c.i,c.curveNumber=l.index;var d=s.cx,p=s.cy,v=z_.select(this),y=v.selectAll("path.surface").data([c]);y.enter().append("path").classed("surface",!0).style({"pointer-events":i?"none":"all"}),v.call(iir,t,a);var m="M"+(d+c.TR[0])+","+(p+c.TR[1])+RJ(c.TR,c.BR)+RJ(c.BR,c.BL)+RJ(c.BL,c.TL)+"Z";y.attr("d",m),lir(t,c,s);var w=rir.castOption(l.textposition,c.pts),_=v.selectAll("g.slicetext").data(c.text&&w!=="none"?[0]:[]);_.enter().append("g").classed("slicetext",!0),_.exit().remove(),_.each(function(){var b=z2.ensureSingle(z_.select(this),"text","",function(C){C.attr("data-notex",1)}),M=z2.ensureUniformFontSize(t,nir(l,c,n.font));b.text(c.text).attr({class:"slicetext",transform:"","text-anchor":"middle"}).call(IJ.font,M).call(Yqe.convertToTspans,t);var x=IJ.bBox(b.node()),A,T,g,E=Math.min(c.BL[1],c.BR[1])+p,S=Math.max(c.TL[1],c.TR[1])+p;T=Math.max(c.TL[0],c.BL[0])+d,g=Math.min(c.TR[0],c.BR[0])+d,A=Qrr(T,g,E,S,x,{isHorizontal:!0,constrained:!0,angle:0,anchor:"middle"}),A.fontSize=M.size,eir(l.type,A,n),a[h].transform=A,z2.setTransormAndDisplay(b,A)})});var f=z_.select(this).selectAll("g.titletext").data(l.title.text?[0]:[]);f.enter().append("g").classed("titletext",!0),f.exit().remove(),f.each(function(){var c=z2.ensureSingle(z_.select(this),"text","",function(p){p.attr("data-notex",1)}),h=l.title.text;l._meta&&(h=z2.templateString(h,l._meta)),c.text(h).attr({class:"titletext",transform:"","text-anchor":"middle"}).call(IJ.font,l.title.font).call(Yqe.convertToTspans,t);var d=sir(s,n._size);c.attr("transform",$qe(d.x,d.y)+Krr(Math.min(1,d.scale))+$qe(d.tx,d.ty))})})})};function RJ(e,t){var r=t[0]-e[0],i=t[1]-e[1];return"l"+r+","+i}function uir(e,t){return[.5*(e[0]+t[0]),.5*(e[1]+t[1])]}function fir(e){if(!e.length)return;var t=e[0],r=t.trace,i=r.aspectratio,n=r.baseratio;n>.999&&(n=.999);var a=Math.pow(n,2),o=t.vTotal,s=o*a/(1-a),l=o,u=s/o;function f(){var k=Math.sqrt(u);return{x:k,y:-k}}function c(){var k=f();return[k.x,k.y]}var h,d=[];d.push(c());var p,v;for(p=e.length-1;p>-1;p--)if(v=e[p],!v.hidden){var y=v.v/l;u+=y,d.push(c())}var m=1/0,w=-1/0;for(p=0;p-1;p--)if(v=e[p],!v.hidden){E+=1;var S=d[E][0],C=d[E][1];v.TL=[-S,C],v.TR=[S,C],v.BL=T,v.BR=g,v.pxmid=uir(v.TR,v.BR),T=v.TL,g=v.TR}}});var eOe=K((uJr,Qqe)=>{"use strict";var Jqe=No(),cir=qw(),hir=S0().resizeText;Qqe.exports=function(t){var r=t._fullLayout._funnelarealayer.selectAll(".trace");hir(t,r,"funnelarea"),r.each(function(i){var n=i[0],a=n.trace,o=Jqe.select(this);o.style({opacity:a.opacity}),o.selectAll("path.surface").each(function(s){Jqe.select(this).call(cir,s,a,t)})})}});var rOe=K((fJr,tOe)=>{"use strict";tOe.exports={moduleType:"trace",name:"funnelarea",basePlotModule:Rqe(),categories:["pie-like","funnelarea","showLegend"],attributes:LJ(),layoutAttributes:PJ(),supplyDefaults:Uqe(),supplyLayoutDefaults:Hqe(),calc:zJ().calc,crossTraceCalc:zJ().crossTraceCalc,plot:Kqe(),style:eOe(),styleOne:qw(),meta:{}}});var nOe=K((cJr,iOe)=>{"use strict";iOe.exports=rOe()});var Rh=K((hJr,aOe)=>{"use strict";(()=>{var e={3065(n,a,o){n.exports={alpha_shape:o(3502),convex_hull:o(7352),delaunay_triangulate:o(7642),gl_cone3d:o(6405),gl_error3d:o(9165),gl_line3d:o(5714),gl_mesh3d:o(7201),gl_plot3d:o(4100),gl_scatter3d:o(8418),gl_streamtube3d:o(7815),gl_surface3d:o(9499),ndarray:o(9618),ndarray_linear_interpolate:o(4317)}},6296(n,a,o){"use strict";n.exports=h;var s=o(7261),l=o(9977),u=o(1811);function f(d,p){this._controllerNames=Object.keys(d),this._controllerList=this._controllerNames.map(function(v){return d[v]}),this._mode=p,this._active=d[p],this._active||(this._mode="turntable",this._active=d.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(d){for(var p=this._controllerList,v=0;v0)throw new Error("Invalid string. Length must be a multiple of 4");var M=_.indexOf("=");M===-1&&(M=b);var x=M===b?0:4-M%4;return[M,x]}function d(_){var b=h(_),M=b[0],x=b[1];return(M+x)*3/4-x}function p(_,b,M){return(b+M)*3/4-M}function v(_){var b,M=h(_),x=M[0],A=M[1],T=new l(p(_,x,A)),g=0,E=A>0?x-4:x,S;for(S=0;S>16&255,T[g++]=b>>8&255,T[g++]=b&255;return A===2&&(b=s[_.charCodeAt(S)]<<2|s[_.charCodeAt(S+1)]>>4,T[g++]=b&255),A===1&&(b=s[_.charCodeAt(S)]<<10|s[_.charCodeAt(S+1)]<<4|s[_.charCodeAt(S+2)]>>2,T[g++]=b>>8&255,T[g++]=b&255),T}function y(_){return o[_>>18&63]+o[_>>12&63]+o[_>>6&63]+o[_&63]}function m(_,b,M){for(var x,A=[],T=b;TE?E:g+T));return x===1?(b=_[M-1],A.push(o[b>>2]+o[b<<4&63]+"==")):x===2&&(b=(_[M-2]<<8)+_[M-1],A.push(o[b>>10]+o[b>>4&63]+o[b<<2&63]+"=")),A.join("")}},3865(n,a,o){"use strict";var s=o(869);n.exports=l;function l(u,f){return s(u[0].mul(f[1]).add(f[0].mul(u[1])),u[1].mul(f[1]))}},1318(n){"use strict";n.exports=a;function a(o,s){return o[0].mul(s[1]).cmp(s[0].mul(o[1]))}},8697(n,a,o){"use strict";var s=o(869);n.exports=l;function l(u,f){return s(u[0].mul(f[1]),u[1].mul(f[0]))}},7842(n,a,o){"use strict";var s=o(6330),l=o(1533),u=o(2651),f=o(6768),c=o(869),h=o(8697);n.exports=d;function d(p,v){if(s(p))return v?h(p,d(v)):[p[0].clone(),p[1].clone()];var y=0,m,w;if(l(p))m=p.clone();else if(typeof p=="string")m=f(p);else{if(p===0)return[u(0),u(1)];if(p===Math.floor(p))m=u(p);else{for(;p!==Math.floor(p);)p=p*Math.pow(2,256),y-=256;m=u(p)}}if(s(v))m.mul(v[1]),w=v[0].clone();else if(l(v))w=v.clone();else if(typeof v=="string")w=f(v);else if(!v)w=u(1);else if(v===Math.floor(v))w=u(v);else{for(;v!==Math.floor(v);)v=v*Math.pow(2,256),y+=256;w=u(v)}return y>0?m=m.ushln(y):y<0&&(w=w.ushln(-y)),c(m,w)}},6330(n,a,o){"use strict";var s=o(1533);n.exports=l;function l(u){return Array.isArray(u)&&u.length===2&&s(u[0])&&s(u[1])}},5716(n,a,o){"use strict";var s=o(6859);n.exports=l;function l(u){return u.cmp(new s(0))}},1369(n,a,o){"use strict";var s=o(5716);n.exports=l;function l(u){var f=u.length,c=u.words,h=0;if(f===1)h=c[0];else if(f===2)h=c[0]+c[1]*67108864;else for(var d=0;d20?52:h+32}},1533(n,a,o){"use strict";var s=o(6859);n.exports=l;function l(u){return u&&typeof u=="object"&&!!u.words}},2651(n,a,o){"use strict";var s=o(6859),l=o(2361);n.exports=u;function u(f){var c=l.exponent(f);return c<52?new s(f):new s(f*Math.pow(2,52-c)).ushln(c-52)}},869(n,a,o){"use strict";var s=o(2651),l=o(5716);n.exports=u;function u(f,c){var h=l(f),d=l(c);if(h===0)return[s(0),s(1)];if(d===0)return[s(0),s(0)];d<0&&(f=f.neg(),c=c.neg());var p=f.gcd(c);return p.cmpn(1)?[f.div(p),c.div(p)]:[f,c]}},6768(n,a,o){"use strict";var s=o(6859);n.exports=l;function l(u){return new s(u)}},6504(n,a,o){"use strict";var s=o(869);n.exports=l;function l(u,f){return s(u[0].mul(f[0]),u[1].mul(f[1]))}},7721(n,a,o){"use strict";var s=o(5716);n.exports=l;function l(u){return s(u[0])*s(u[1])}},5572(n,a,o){"use strict";var s=o(869);n.exports=l;function l(u,f){return s(u[0].mul(f[1]).sub(u[1].mul(f[0])),u[1].mul(f[1]))}},946(n,a,o){"use strict";var s=o(1369),l=o(4025);n.exports=u;function u(f){var c=f[0],h=f[1];if(c.cmpn(0)===0)return 0;var d=c.abs().divmod(h.abs()),p=d.div,v=s(p),y=d.mod,m=c.negative!==h.negative?-1:1;if(y.cmpn(0)===0)return m*v;if(v){var w=l(v)+4,_=s(y.ushln(w).divRound(h));return m*(v+_*Math.pow(2,-w))}else{var b=h.bitLength()-y.bitLength()+53,_=s(y.ushln(b).divRound(h));return b<1023?m*_*Math.pow(2,-b):(_*=Math.pow(2,-1023),m*_*Math.pow(2,1023-b))}}},2478(n){"use strict";function a(c,h,d,p,v){for(var y=v+1;p<=v;){var m=p+v>>>1,w=c[m],_=d!==void 0?d(w,h):w-h;_>=0?(y=m,v=m-1):p=m+1}return y}function o(c,h,d,p,v){for(var y=v+1;p<=v;){var m=p+v>>>1,w=c[m],_=d!==void 0?d(w,h):w-h;_>0?(y=m,v=m-1):p=m+1}return y}function s(c,h,d,p,v){for(var y=p-1;p<=v;){var m=p+v>>>1,w=c[m],_=d!==void 0?d(w,h):w-h;_<0?(y=m,p=m+1):v=m-1}return y}function l(c,h,d,p,v){for(var y=p-1;p<=v;){var m=p+v>>>1,w=c[m],_=d!==void 0?d(w,h):w-h;_<=0?(y=m,p=m+1):v=m-1}return y}function u(c,h,d,p,v){for(;p<=v;){var y=p+v>>>1,m=c[y],w=d!==void 0?d(m,h):m-h;if(w===0)return y;w<=0?p=y+1:v=y-1}return-1}function f(c,h,d,p,v,y){return typeof d=="function"?y(c,h,d,p===void 0?0:p|0,v===void 0?c.length-1:v|0):y(c,h,void 0,d===void 0?0:d|0,p===void 0?c.length-1:p|0)}n.exports={ge:function(c,h,d,p,v){return f(c,h,d,p,v,a)},gt:function(c,h,d,p,v){return f(c,h,d,p,v,o)},lt:function(c,h,d,p,v){return f(c,h,d,p,v,s)},le:function(c,h,d,p,v){return f(c,h,d,p,v,l)},eq:function(c,h,d,p,v){return f(c,h,d,p,v,u)}}},8828(n,a){"use strict";"use restrict";var o=32;a.INT_BITS=o,a.INT_MAX=2147483647,a.INT_MIN=-1<0)-(u<0)},a.abs=function(u){var f=u>>o-1;return(u^f)-f},a.min=function(u,f){return f^(u^f)&-(u65535)<<4,u>>>=f,c=(u>255)<<3,u>>>=c,f|=c,c=(u>15)<<2,u>>>=c,f|=c,c=(u>3)<<1,u>>>=c,f|=c,f|u>>1},a.log10=function(u){return u>=1e9?9:u>=1e8?8:u>=1e7?7:u>=1e6?6:u>=1e5?5:u>=1e4?4:u>=1e3?3:u>=100?2:u>=10?1:0},a.popCount=function(u){return u=u-(u>>>1&1431655765),u=(u&858993459)+(u>>>2&858993459),(u+(u>>>4)&252645135)*16843009>>>24};function s(u){var f=32;return u&=-u,u&&f--,u&65535&&(f-=16),u&16711935&&(f-=8),u&252645135&&(f-=4),u&858993459&&(f-=2),u&1431655765&&(f-=1),f}a.countTrailingZeros=s,a.nextPow2=function(u){return u+=u===0,--u,u|=u>>>1,u|=u>>>2,u|=u>>>4,u|=u>>>8,u|=u>>>16,u+1},a.prevPow2=function(u){return u|=u>>>1,u|=u>>>2,u|=u>>>4,u|=u>>>8,u|=u>>>16,u-(u>>>1)},a.parity=function(u){return u^=u>>>16,u^=u>>>8,u^=u>>>4,u&=15,27030>>>u&1};var l=new Array(256);(function(u){for(var f=0;f<256;++f){var c=f,h=f,d=7;for(c>>>=1;c;c>>>=1)h<<=1,h|=c&1,--d;u[f]=h<>>8&255]<<16|l[u>>>16&255]<<8|l[u>>>24&255]},a.interleave2=function(u,f){return u&=65535,u=(u|u<<8)&16711935,u=(u|u<<4)&252645135,u=(u|u<<2)&858993459,u=(u|u<<1)&1431655765,f&=65535,f=(f|f<<8)&16711935,f=(f|f<<4)&252645135,f=(f|f<<2)&858993459,f=(f|f<<1)&1431655765,u|f<<1},a.deinterleave2=function(u,f){return u=u>>>f&1431655765,u=(u|u>>>1)&858993459,u=(u|u>>>2)&252645135,u=(u|u>>>4)&16711935,u=(u|u>>>16)&65535,u<<16>>16},a.interleave3=function(u,f,c){return u&=1023,u=(u|u<<16)&4278190335,u=(u|u<<8)&251719695,u=(u|u<<4)&3272356035,u=(u|u<<2)&1227133513,f&=1023,f=(f|f<<16)&4278190335,f=(f|f<<8)&251719695,f=(f|f<<4)&3272356035,f=(f|f<<2)&1227133513,u|=f<<1,c&=1023,c=(c|c<<16)&4278190335,c=(c|c<<8)&251719695,c=(c|c<<4)&3272356035,c=(c|c<<2)&1227133513,u|c<<2},a.deinterleave3=function(u,f){return u=u>>>f&1227133513,u=(u|u>>>2)&3272356035,u=(u|u>>>4)&251719695,u=(u|u>>>8)&4278190335,u=(u|u>>>16)&1023,u<<22>>22},a.nextCombination=function(u){var f=u|u-1;return f+1|(~f&-~f)-1>>>s(u)+1}},6859(n,a,o){n=o.nmd(n),(function(s,l){"use strict";function u(I,F){if(!I)throw new Error(F||"Assertion failed")}function f(I,F){I.super_=F;var z=function(){};z.prototype=F.prototype,I.prototype=new z,I.prototype.constructor=I}function c(I,F,z){if(c.isBN(I))return I;this.negative=0,this.words=null,this.length=0,this.red=null,I!==null&&((F==="le"||F==="be")&&(z=F,F=10),this._init(I||0,F||10,z||"be"))}typeof s=="object"?s.exports=c:l.BN=c,c.BN=c,c.wordSize=26;var h;try{typeof window!="undefined"&&typeof window.Buffer!="undefined"?h=window.Buffer:h=o(7790).Buffer}catch(I){}c.isBN=function(F){return F instanceof c?!0:F!==null&&typeof F=="object"&&F.constructor.wordSize===c.wordSize&&Array.isArray(F.words)},c.max=function(F,z){return F.cmp(z)>0?F:z},c.min=function(F,z){return F.cmp(z)<0?F:z},c.prototype._init=function(F,z,B){if(typeof F=="number")return this._initNumber(F,z,B);if(typeof F=="object")return this._initArray(F,z,B);z==="hex"&&(z=16),u(z===(z|0)&&z>=2&&z<=36),F=F.toString().replace(/\s+/g,"");var O=0;F[0]==="-"&&(O++,this.negative=1),O=0;O-=3)X=F[O]|F[O-1]<<8|F[O-2]<<16,this.words[W]|=X<>>26-Z&67108863,Z+=24,Z>=26&&(Z-=26,W++);else if(B==="le")for(O=0,W=0;O>>26-Z&67108863,Z+=24,Z>=26&&(Z-=26,W++);return this.strip()};function d(I,F){var z=I.charCodeAt(F);return z>=65&&z<=70?z-55:z>=97&&z<=102?z-87:z-48&15}function p(I,F,z){var B=d(I,z);return z-1>=F&&(B|=d(I,z-1)<<4),B}c.prototype._parseHex=function(F,z,B){this.length=Math.ceil((F.length-z)/6),this.words=new Array(this.length);for(var O=0;O=z;O-=2)Z=p(F,z,O)<=18?(W-=18,X+=1,this.words[X]|=Z>>>26):W+=8;else{var j=F.length-z;for(O=j%2===0?z+1:z;O=18?(W-=18,X+=1,this.words[X]|=Z>>>26):W+=8}this.strip()};function v(I,F,z,B){for(var O=0,W=Math.min(I.length,z),X=F;X=49?O+=Z-49+10:Z>=17?O+=Z-17+10:O+=Z}return O}c.prototype._parseBase=function(F,z,B){this.words=[0],this.length=1;for(var O=0,W=1;W<=67108863;W*=z)O++;O--,W=W/z|0;for(var X=F.length-B,Z=X%O,j=Math.min(X,X-Z)+B,q=0,Q=B;Q1&&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 y=["","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"],m=[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],w=[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(F,z){F=F||10,z=z|0||1;var B;if(F===16||F==="hex"){B="";for(var O=0,W=0,X=0;X>>24-O&16777215,O+=2,O>=26&&(O-=26,X--),W!==0||X!==this.length-1?B=y[6-j.length]+j+B:B=j+B}for(W!==0&&(B=W.toString(16)+B);B.length%z!==0;)B="0"+B;return this.negative!==0&&(B="-"+B),B}if(F===(F|0)&&F>=2&&F<=36){var q=m[F],Q=w[F];B="";var N=this.clone();for(N.negative=0;!N.isZero();){var V=N.modn(Q).toString(F);N=N.idivn(Q),N.isZero()?B=V+B:B=y[q-V.length]+V+B}for(this.isZero()&&(B="0"+B);B.length%z!==0;)B="0"+B;return this.negative!==0&&(B="-"+B),B}u(!1,"Base should be between 2 and 36")},c.prototype.toNumber=function(){var F=this.words[0];return this.length===2?F+=this.words[1]*67108864:this.length===3&&this.words[2]===1?F+=4503599627370496+this.words[1]*67108864:this.length>2&&u(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-F:F},c.prototype.toJSON=function(){return this.toString(16)},c.prototype.toBuffer=function(F,z){return u(typeof h!="undefined"),this.toArrayLike(h,F,z)},c.prototype.toArray=function(F,z){return this.toArrayLike(Array,F,z)},c.prototype.toArrayLike=function(F,z,B){var O=this.byteLength(),W=B||Math.max(1,O);u(O<=W,"byte array longer than desired length"),u(W>0,"Requested array length <= 0"),this.strip();var X=z==="le",Z=new F(W),j,q,Q=this.clone();if(X){for(q=0;!Q.isZero();q++)j=Q.andln(255),Q.iushrn(8),Z[q]=j;for(;q=4096&&(B+=13,z>>>=13),z>=64&&(B+=7,z>>>=7),z>=8&&(B+=4,z>>>=4),z>=2&&(B+=2,z>>>=2),B+z},c.prototype._zeroBits=function(F){if(F===0)return 26;var z=F,B=0;return(z&8191)===0&&(B+=13,z>>>=13),(z&127)===0&&(B+=7,z>>>=7),(z&15)===0&&(B+=4,z>>>=4),(z&3)===0&&(B+=2,z>>>=2),(z&1)===0&&B++,B},c.prototype.bitLength=function(){var F=this.words[this.length-1],z=this._countBits(F);return(this.length-1)*26+z};function _(I){for(var F=new Array(I.bitLength()),z=0;z>>O}return F}c.prototype.zeroBits=function(){if(this.isZero())return 0;for(var F=0,z=0;zF.length?this.clone().ior(F):F.clone().ior(this)},c.prototype.uor=function(F){return this.length>F.length?this.clone().iuor(F):F.clone().iuor(this)},c.prototype.iuand=function(F){var z;this.length>F.length?z=F:z=this;for(var B=0;BF.length?this.clone().iand(F):F.clone().iand(this)},c.prototype.uand=function(F){return this.length>F.length?this.clone().iuand(F):F.clone().iuand(this)},c.prototype.iuxor=function(F){var z,B;this.length>F.length?(z=this,B=F):(z=F,B=this);for(var O=0;OF.length?this.clone().ixor(F):F.clone().ixor(this)},c.prototype.uxor=function(F){return this.length>F.length?this.clone().iuxor(F):F.clone().iuxor(this)},c.prototype.inotn=function(F){u(typeof F=="number"&&F>=0);var z=Math.ceil(F/26)|0,B=F%26;this._expand(z),B>0&&z--;for(var O=0;O0&&(this.words[O]=~this.words[O]&67108863>>26-B,O++);O=0);var B=F/26|0,O=F%26;return this._expand(B+1),z?this.words[B]=this.words[B]|1<F.length?(B=this,O=F):(B=F,O=this);for(var W=0,X=0;X>>26;for(;W!==0&&X>>26;if(this.length=B.length,W!==0)this.words[this.length]=W,this.length++;else if(B!==this)for(;XF.length?this.clone().iadd(F):F.clone().iadd(this)},c.prototype.isub=function(F){if(F.negative!==0){F.negative=0;var z=this.iadd(F);return F.negative=1,z._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(F),this.negative=1,this._normSign();var B=this.cmp(F);if(B===0)return this.negative=0,this.length=1,this.words[0]=0,this;var O,W;B>0?(O=this,W=F):(O=F,W=this);for(var X=0,Z=0;Z>26,this.words[Z]=z&67108863;for(;X!==0&&Z>26,this.words[Z]=z&67108863;if(X===0&&Z>>26,N=j&67108863,V=Math.min(q,F.length-1),J=Math.max(0,q-I.length+1);J<=V;J++){var H=q-J|0;O=I.words[H]|0,W=F.words[J]|0,X=O*W+N,Q+=X/67108864|0,N=X&67108863}z.words[q]=N|0,j=Q|0}return j!==0?z.words[q]=j|0:z.length--,z.strip()}var M=function(F,z,B){var O=F.words,W=z.words,X=B.words,Z=0,j,q,Q,N=O[0]|0,V=N&8191,J=N>>>13,H=O[1]|0,$=H&8191,te=H>>>13,ie=O[2]|0,de=ie&8191,ge=ie>>>13,Ie=O[3]|0,Ce=Ie&8191,le=Ie>>>13,re=O[4]|0,Ee=re&8191,we=re>>>13,oe=O[5]|0,Y=oe&8191,ne=oe>>>13,ye=O[6]|0,U=ye&8191,se=ye>>>13,Ae=O[7]|0,be=Ae&8191,me=Ae>>>13,ue=O[8]|0,pe=ue&8191,ce=ue>>>13,Be=O[9]|0,$e=Be&8191,Ze=Be>>>13,it=W[0]|0,nt=it&8191,Ue=it>>>13,xe=W[1]|0,Re=xe&8191,Qe=xe>>>13,Pe=W[2]|0,De=Pe&8191,Ve=Pe>>>13,Le=W[3]|0,Se=Le&8191,ze=Le>>>13,st=W[4]|0,ft=st&8191,wt=st>>>13,At=W[5]|0,Vt=At&8191,Dt=At>>>13,yt=W[6]|0,St=yt&8191,rr=yt>>>13,Ke=W[7]|0,at=Ke&8191,lt=Ke>>>13,vt=W[8]|0,We=vt&8191,ut=vt>>>13,kt=W[9]|0,$t=kt&8191,or=kt>>>13;B.negative=F.negative^z.negative,B.length=19,j=Math.imul(V,nt),q=Math.imul(V,Ue),q=q+Math.imul(J,nt)|0,Q=Math.imul(J,Ue);var Lr=(Z+j|0)+((q&8191)<<13)|0;Z=(Q+(q>>>13)|0)+(Lr>>>26)|0,Lr&=67108863,j=Math.imul($,nt),q=Math.imul($,Ue),q=q+Math.imul(te,nt)|0,Q=Math.imul(te,Ue),j=j+Math.imul(V,Re)|0,q=q+Math.imul(V,Qe)|0,q=q+Math.imul(J,Re)|0,Q=Q+Math.imul(J,Qe)|0;var Er=(Z+j|0)+((q&8191)<<13)|0;Z=(Q+(q>>>13)|0)+(Er>>>26)|0,Er&=67108863,j=Math.imul(de,nt),q=Math.imul(de,Ue),q=q+Math.imul(ge,nt)|0,Q=Math.imul(ge,Ue),j=j+Math.imul($,Re)|0,q=q+Math.imul($,Qe)|0,q=q+Math.imul(te,Re)|0,Q=Q+Math.imul(te,Qe)|0,j=j+Math.imul(V,De)|0,q=q+Math.imul(V,Ve)|0,q=q+Math.imul(J,De)|0,Q=Q+Math.imul(J,Ve)|0;var hr=(Z+j|0)+((q&8191)<<13)|0;Z=(Q+(q>>>13)|0)+(hr>>>26)|0,hr&=67108863,j=Math.imul(Ce,nt),q=Math.imul(Ce,Ue),q=q+Math.imul(le,nt)|0,Q=Math.imul(le,Ue),j=j+Math.imul(de,Re)|0,q=q+Math.imul(de,Qe)|0,q=q+Math.imul(ge,Re)|0,Q=Q+Math.imul(ge,Qe)|0,j=j+Math.imul($,De)|0,q=q+Math.imul($,Ve)|0,q=q+Math.imul(te,De)|0,Q=Q+Math.imul(te,Ve)|0,j=j+Math.imul(V,Se)|0,q=q+Math.imul(V,ze)|0,q=q+Math.imul(J,Se)|0,Q=Q+Math.imul(J,ze)|0;var ni=(Z+j|0)+((q&8191)<<13)|0;Z=(Q+(q>>>13)|0)+(ni>>>26)|0,ni&=67108863,j=Math.imul(Ee,nt),q=Math.imul(Ee,Ue),q=q+Math.imul(we,nt)|0,Q=Math.imul(we,Ue),j=j+Math.imul(Ce,Re)|0,q=q+Math.imul(Ce,Qe)|0,q=q+Math.imul(le,Re)|0,Q=Q+Math.imul(le,Qe)|0,j=j+Math.imul(de,De)|0,q=q+Math.imul(de,Ve)|0,q=q+Math.imul(ge,De)|0,Q=Q+Math.imul(ge,Ve)|0,j=j+Math.imul($,Se)|0,q=q+Math.imul($,ze)|0,q=q+Math.imul(te,Se)|0,Q=Q+Math.imul(te,ze)|0,j=j+Math.imul(V,ft)|0,q=q+Math.imul(V,wt)|0,q=q+Math.imul(J,ft)|0,Q=Q+Math.imul(J,wt)|0;var Kr=(Z+j|0)+((q&8191)<<13)|0;Z=(Q+(q>>>13)|0)+(Kr>>>26)|0,Kr&=67108863,j=Math.imul(Y,nt),q=Math.imul(Y,Ue),q=q+Math.imul(ne,nt)|0,Q=Math.imul(ne,Ue),j=j+Math.imul(Ee,Re)|0,q=q+Math.imul(Ee,Qe)|0,q=q+Math.imul(we,Re)|0,Q=Q+Math.imul(we,Qe)|0,j=j+Math.imul(Ce,De)|0,q=q+Math.imul(Ce,Ve)|0,q=q+Math.imul(le,De)|0,Q=Q+Math.imul(le,Ve)|0,j=j+Math.imul(de,Se)|0,q=q+Math.imul(de,ze)|0,q=q+Math.imul(ge,Se)|0,Q=Q+Math.imul(ge,ze)|0,j=j+Math.imul($,ft)|0,q=q+Math.imul($,wt)|0,q=q+Math.imul(te,ft)|0,Q=Q+Math.imul(te,wt)|0,j=j+Math.imul(V,Vt)|0,q=q+Math.imul(V,Dt)|0,q=q+Math.imul(J,Vt)|0,Q=Q+Math.imul(J,Dt)|0;var si=(Z+j|0)+((q&8191)<<13)|0;Z=(Q+(q>>>13)|0)+(si>>>26)|0,si&=67108863,j=Math.imul(U,nt),q=Math.imul(U,Ue),q=q+Math.imul(se,nt)|0,Q=Math.imul(se,Ue),j=j+Math.imul(Y,Re)|0,q=q+Math.imul(Y,Qe)|0,q=q+Math.imul(ne,Re)|0,Q=Q+Math.imul(ne,Qe)|0,j=j+Math.imul(Ee,De)|0,q=q+Math.imul(Ee,Ve)|0,q=q+Math.imul(we,De)|0,Q=Q+Math.imul(we,Ve)|0,j=j+Math.imul(Ce,Se)|0,q=q+Math.imul(Ce,ze)|0,q=q+Math.imul(le,Se)|0,Q=Q+Math.imul(le,ze)|0,j=j+Math.imul(de,ft)|0,q=q+Math.imul(de,wt)|0,q=q+Math.imul(ge,ft)|0,Q=Q+Math.imul(ge,wt)|0,j=j+Math.imul($,Vt)|0,q=q+Math.imul($,Dt)|0,q=q+Math.imul(te,Vt)|0,Q=Q+Math.imul(te,Dt)|0,j=j+Math.imul(V,St)|0,q=q+Math.imul(V,rr)|0,q=q+Math.imul(J,St)|0,Q=Q+Math.imul(J,rr)|0;var Tr=(Z+j|0)+((q&8191)<<13)|0;Z=(Q+(q>>>13)|0)+(Tr>>>26)|0,Tr&=67108863,j=Math.imul(be,nt),q=Math.imul(be,Ue),q=q+Math.imul(me,nt)|0,Q=Math.imul(me,Ue),j=j+Math.imul(U,Re)|0,q=q+Math.imul(U,Qe)|0,q=q+Math.imul(se,Re)|0,Q=Q+Math.imul(se,Qe)|0,j=j+Math.imul(Y,De)|0,q=q+Math.imul(Y,Ve)|0,q=q+Math.imul(ne,De)|0,Q=Q+Math.imul(ne,Ve)|0,j=j+Math.imul(Ee,Se)|0,q=q+Math.imul(Ee,ze)|0,q=q+Math.imul(we,Se)|0,Q=Q+Math.imul(we,ze)|0,j=j+Math.imul(Ce,ft)|0,q=q+Math.imul(Ce,wt)|0,q=q+Math.imul(le,ft)|0,Q=Q+Math.imul(le,wt)|0,j=j+Math.imul(de,Vt)|0,q=q+Math.imul(de,Dt)|0,q=q+Math.imul(ge,Vt)|0,Q=Q+Math.imul(ge,Dt)|0,j=j+Math.imul($,St)|0,q=q+Math.imul($,rr)|0,q=q+Math.imul(te,St)|0,Q=Q+Math.imul(te,rr)|0,j=j+Math.imul(V,at)|0,q=q+Math.imul(V,lt)|0,q=q+Math.imul(J,at)|0,Q=Q+Math.imul(J,lt)|0;var vr=(Z+j|0)+((q&8191)<<13)|0;Z=(Q+(q>>>13)|0)+(vr>>>26)|0,vr&=67108863,j=Math.imul(pe,nt),q=Math.imul(pe,Ue),q=q+Math.imul(ce,nt)|0,Q=Math.imul(ce,Ue),j=j+Math.imul(be,Re)|0,q=q+Math.imul(be,Qe)|0,q=q+Math.imul(me,Re)|0,Q=Q+Math.imul(me,Qe)|0,j=j+Math.imul(U,De)|0,q=q+Math.imul(U,Ve)|0,q=q+Math.imul(se,De)|0,Q=Q+Math.imul(se,Ve)|0,j=j+Math.imul(Y,Se)|0,q=q+Math.imul(Y,ze)|0,q=q+Math.imul(ne,Se)|0,Q=Q+Math.imul(ne,ze)|0,j=j+Math.imul(Ee,ft)|0,q=q+Math.imul(Ee,wt)|0,q=q+Math.imul(we,ft)|0,Q=Q+Math.imul(we,wt)|0,j=j+Math.imul(Ce,Vt)|0,q=q+Math.imul(Ce,Dt)|0,q=q+Math.imul(le,Vt)|0,Q=Q+Math.imul(le,Dt)|0,j=j+Math.imul(de,St)|0,q=q+Math.imul(de,rr)|0,q=q+Math.imul(ge,St)|0,Q=Q+Math.imul(ge,rr)|0,j=j+Math.imul($,at)|0,q=q+Math.imul($,lt)|0,q=q+Math.imul(te,at)|0,Q=Q+Math.imul(te,lt)|0,j=j+Math.imul(V,We)|0,q=q+Math.imul(V,ut)|0,q=q+Math.imul(J,We)|0,Q=Q+Math.imul(J,ut)|0;var Hr=(Z+j|0)+((q&8191)<<13)|0;Z=(Q+(q>>>13)|0)+(Hr>>>26)|0,Hr&=67108863,j=Math.imul($e,nt),q=Math.imul($e,Ue),q=q+Math.imul(Ze,nt)|0,Q=Math.imul(Ze,Ue),j=j+Math.imul(pe,Re)|0,q=q+Math.imul(pe,Qe)|0,q=q+Math.imul(ce,Re)|0,Q=Q+Math.imul(ce,Qe)|0,j=j+Math.imul(be,De)|0,q=q+Math.imul(be,Ve)|0,q=q+Math.imul(me,De)|0,Q=Q+Math.imul(me,Ve)|0,j=j+Math.imul(U,Se)|0,q=q+Math.imul(U,ze)|0,q=q+Math.imul(se,Se)|0,Q=Q+Math.imul(se,ze)|0,j=j+Math.imul(Y,ft)|0,q=q+Math.imul(Y,wt)|0,q=q+Math.imul(ne,ft)|0,Q=Q+Math.imul(ne,wt)|0,j=j+Math.imul(Ee,Vt)|0,q=q+Math.imul(Ee,Dt)|0,q=q+Math.imul(we,Vt)|0,Q=Q+Math.imul(we,Dt)|0,j=j+Math.imul(Ce,St)|0,q=q+Math.imul(Ce,rr)|0,q=q+Math.imul(le,St)|0,Q=Q+Math.imul(le,rr)|0,j=j+Math.imul(de,at)|0,q=q+Math.imul(de,lt)|0,q=q+Math.imul(ge,at)|0,Q=Q+Math.imul(ge,lt)|0,j=j+Math.imul($,We)|0,q=q+Math.imul($,ut)|0,q=q+Math.imul(te,We)|0,Q=Q+Math.imul(te,ut)|0,j=j+Math.imul(V,$t)|0,q=q+Math.imul(V,or)|0,q=q+Math.imul(J,$t)|0,Q=Q+Math.imul(J,or)|0;var Di=(Z+j|0)+((q&8191)<<13)|0;Z=(Q+(q>>>13)|0)+(Di>>>26)|0,Di&=67108863,j=Math.imul($e,Re),q=Math.imul($e,Qe),q=q+Math.imul(Ze,Re)|0,Q=Math.imul(Ze,Qe),j=j+Math.imul(pe,De)|0,q=q+Math.imul(pe,Ve)|0,q=q+Math.imul(ce,De)|0,Q=Q+Math.imul(ce,Ve)|0,j=j+Math.imul(be,Se)|0,q=q+Math.imul(be,ze)|0,q=q+Math.imul(me,Se)|0,Q=Q+Math.imul(me,ze)|0,j=j+Math.imul(U,ft)|0,q=q+Math.imul(U,wt)|0,q=q+Math.imul(se,ft)|0,Q=Q+Math.imul(se,wt)|0,j=j+Math.imul(Y,Vt)|0,q=q+Math.imul(Y,Dt)|0,q=q+Math.imul(ne,Vt)|0,Q=Q+Math.imul(ne,Dt)|0,j=j+Math.imul(Ee,St)|0,q=q+Math.imul(Ee,rr)|0,q=q+Math.imul(we,St)|0,Q=Q+Math.imul(we,rr)|0,j=j+Math.imul(Ce,at)|0,q=q+Math.imul(Ce,lt)|0,q=q+Math.imul(le,at)|0,Q=Q+Math.imul(le,lt)|0,j=j+Math.imul(de,We)|0,q=q+Math.imul(de,ut)|0,q=q+Math.imul(ge,We)|0,Q=Q+Math.imul(ge,ut)|0,j=j+Math.imul($,$t)|0,q=q+Math.imul($,or)|0,q=q+Math.imul(te,$t)|0,Q=Q+Math.imul(te,or)|0;var gn=(Z+j|0)+((q&8191)<<13)|0;Z=(Q+(q>>>13)|0)+(gn>>>26)|0,gn&=67108863,j=Math.imul($e,De),q=Math.imul($e,Ve),q=q+Math.imul(Ze,De)|0,Q=Math.imul(Ze,Ve),j=j+Math.imul(pe,Se)|0,q=q+Math.imul(pe,ze)|0,q=q+Math.imul(ce,Se)|0,Q=Q+Math.imul(ce,ze)|0,j=j+Math.imul(be,ft)|0,q=q+Math.imul(be,wt)|0,q=q+Math.imul(me,ft)|0,Q=Q+Math.imul(me,wt)|0,j=j+Math.imul(U,Vt)|0,q=q+Math.imul(U,Dt)|0,q=q+Math.imul(se,Vt)|0,Q=Q+Math.imul(se,Dt)|0,j=j+Math.imul(Y,St)|0,q=q+Math.imul(Y,rr)|0,q=q+Math.imul(ne,St)|0,Q=Q+Math.imul(ne,rr)|0,j=j+Math.imul(Ee,at)|0,q=q+Math.imul(Ee,lt)|0,q=q+Math.imul(we,at)|0,Q=Q+Math.imul(we,lt)|0,j=j+Math.imul(Ce,We)|0,q=q+Math.imul(Ce,ut)|0,q=q+Math.imul(le,We)|0,Q=Q+Math.imul(le,ut)|0,j=j+Math.imul(de,$t)|0,q=q+Math.imul(de,or)|0,q=q+Math.imul(ge,$t)|0,Q=Q+Math.imul(ge,or)|0;var wr=(Z+j|0)+((q&8191)<<13)|0;Z=(Q+(q>>>13)|0)+(wr>>>26)|0,wr&=67108863,j=Math.imul($e,Se),q=Math.imul($e,ze),q=q+Math.imul(Ze,Se)|0,Q=Math.imul(Ze,ze),j=j+Math.imul(pe,ft)|0,q=q+Math.imul(pe,wt)|0,q=q+Math.imul(ce,ft)|0,Q=Q+Math.imul(ce,wt)|0,j=j+Math.imul(be,Vt)|0,q=q+Math.imul(be,Dt)|0,q=q+Math.imul(me,Vt)|0,Q=Q+Math.imul(me,Dt)|0,j=j+Math.imul(U,St)|0,q=q+Math.imul(U,rr)|0,q=q+Math.imul(se,St)|0,Q=Q+Math.imul(se,rr)|0,j=j+Math.imul(Y,at)|0,q=q+Math.imul(Y,lt)|0,q=q+Math.imul(ne,at)|0,Q=Q+Math.imul(ne,lt)|0,j=j+Math.imul(Ee,We)|0,q=q+Math.imul(Ee,ut)|0,q=q+Math.imul(we,We)|0,Q=Q+Math.imul(we,ut)|0,j=j+Math.imul(Ce,$t)|0,q=q+Math.imul(Ce,or)|0,q=q+Math.imul(le,$t)|0,Q=Q+Math.imul(le,or)|0;var qr=(Z+j|0)+((q&8191)<<13)|0;Z=(Q+(q>>>13)|0)+(qr>>>26)|0,qr&=67108863,j=Math.imul($e,ft),q=Math.imul($e,wt),q=q+Math.imul(Ze,ft)|0,Q=Math.imul(Ze,wt),j=j+Math.imul(pe,Vt)|0,q=q+Math.imul(pe,Dt)|0,q=q+Math.imul(ce,Vt)|0,Q=Q+Math.imul(ce,Dt)|0,j=j+Math.imul(be,St)|0,q=q+Math.imul(be,rr)|0,q=q+Math.imul(me,St)|0,Q=Q+Math.imul(me,rr)|0,j=j+Math.imul(U,at)|0,q=q+Math.imul(U,lt)|0,q=q+Math.imul(se,at)|0,Q=Q+Math.imul(se,lt)|0,j=j+Math.imul(Y,We)|0,q=q+Math.imul(Y,ut)|0,q=q+Math.imul(ne,We)|0,Q=Q+Math.imul(ne,ut)|0,j=j+Math.imul(Ee,$t)|0,q=q+Math.imul(Ee,or)|0,q=q+Math.imul(we,$t)|0,Q=Q+Math.imul(we,or)|0;var Ut=(Z+j|0)+((q&8191)<<13)|0;Z=(Q+(q>>>13)|0)+(Ut>>>26)|0,Ut&=67108863,j=Math.imul($e,Vt),q=Math.imul($e,Dt),q=q+Math.imul(Ze,Vt)|0,Q=Math.imul(Ze,Dt),j=j+Math.imul(pe,St)|0,q=q+Math.imul(pe,rr)|0,q=q+Math.imul(ce,St)|0,Q=Q+Math.imul(ce,rr)|0,j=j+Math.imul(be,at)|0,q=q+Math.imul(be,lt)|0,q=q+Math.imul(me,at)|0,Q=Q+Math.imul(me,lt)|0,j=j+Math.imul(U,We)|0,q=q+Math.imul(U,ut)|0,q=q+Math.imul(se,We)|0,Q=Q+Math.imul(se,ut)|0,j=j+Math.imul(Y,$t)|0,q=q+Math.imul(Y,or)|0,q=q+Math.imul(ne,$t)|0,Q=Q+Math.imul(ne,or)|0;var jt=(Z+j|0)+((q&8191)<<13)|0;Z=(Q+(q>>>13)|0)+(jt>>>26)|0,jt&=67108863,j=Math.imul($e,St),q=Math.imul($e,rr),q=q+Math.imul(Ze,St)|0,Q=Math.imul(Ze,rr),j=j+Math.imul(pe,at)|0,q=q+Math.imul(pe,lt)|0,q=q+Math.imul(ce,at)|0,Q=Q+Math.imul(ce,lt)|0,j=j+Math.imul(be,We)|0,q=q+Math.imul(be,ut)|0,q=q+Math.imul(me,We)|0,Q=Q+Math.imul(me,ut)|0,j=j+Math.imul(U,$t)|0,q=q+Math.imul(U,or)|0,q=q+Math.imul(se,$t)|0,Q=Q+Math.imul(se,or)|0;var pr=(Z+j|0)+((q&8191)<<13)|0;Z=(Q+(q>>>13)|0)+(pr>>>26)|0,pr&=67108863,j=Math.imul($e,at),q=Math.imul($e,lt),q=q+Math.imul(Ze,at)|0,Q=Math.imul(Ze,lt),j=j+Math.imul(pe,We)|0,q=q+Math.imul(pe,ut)|0,q=q+Math.imul(ce,We)|0,Q=Q+Math.imul(ce,ut)|0,j=j+Math.imul(be,$t)|0,q=q+Math.imul(be,or)|0,q=q+Math.imul(me,$t)|0,Q=Q+Math.imul(me,or)|0;var Ur=(Z+j|0)+((q&8191)<<13)|0;Z=(Q+(q>>>13)|0)+(Ur>>>26)|0,Ur&=67108863,j=Math.imul($e,We),q=Math.imul($e,ut),q=q+Math.imul(Ze,We)|0,Q=Math.imul(Ze,ut),j=j+Math.imul(pe,$t)|0,q=q+Math.imul(pe,or)|0,q=q+Math.imul(ce,$t)|0,Q=Q+Math.imul(ce,or)|0;var Sr=(Z+j|0)+((q&8191)<<13)|0;Z=(Q+(q>>>13)|0)+(Sr>>>26)|0,Sr&=67108863,j=Math.imul($e,$t),q=Math.imul($e,or),q=q+Math.imul(Ze,$t)|0,Q=Math.imul(Ze,or);var Cr=(Z+j|0)+((q&8191)<<13)|0;return Z=(Q+(q>>>13)|0)+(Cr>>>26)|0,Cr&=67108863,X[0]=Lr,X[1]=Er,X[2]=hr,X[3]=ni,X[4]=Kr,X[5]=si,X[6]=Tr,X[7]=vr,X[8]=Hr,X[9]=Di,X[10]=gn,X[11]=wr,X[12]=qr,X[13]=Ut,X[14]=jt,X[15]=pr,X[16]=Ur,X[17]=Sr,X[18]=Cr,Z!==0&&(X[19]=Z,B.length++),B};Math.imul||(M=b);function x(I,F,z){z.negative=F.negative^I.negative,z.length=I.length+F.length;for(var B=0,O=0,W=0;W>>26)|0,O+=X>>>26,X&=67108863}z.words[W]=Z,B=X,X=O}return B!==0?z.words[W]=B:z.length--,z.strip()}function A(I,F,z){var B=new T;return B.mulp(I,F,z)}c.prototype.mulTo=function(F,z){var B,O=this.length+F.length;return this.length===10&&F.length===10?B=M(this,F,z):O<63?B=b(this,F,z):O<1024?B=x(this,F,z):B=A(this,F,z),B};function T(I,F){this.x=I,this.y=F}T.prototype.makeRBT=function(F){for(var z=new Array(F),B=c.prototype._countBits(F)-1,O=0;O>=1;return O},T.prototype.permute=function(F,z,B,O,W,X){for(var Z=0;Z>>1)W++;return 1<>>13,B[2*X+1]=W&8191,W=W>>>13;for(X=2*z;X>=26,z+=O/67108864|0,z+=W>>>26,this.words[B]=W&67108863}return z!==0&&(this.words[B]=z,this.length++),F===0&&(this.length=1,this._normSign()),this},c.prototype.muln=function(F){return this.clone().imuln(F)},c.prototype.sqr=function(){return this.mul(this)},c.prototype.isqr=function(){return this.imul(this.clone())},c.prototype.pow=function(F){var z=_(F);if(z.length===0)return new c(1);for(var B=this,O=0;O=0);var z=F%26,B=(F-z)/26,O=67108863>>>26-z<<26-z,W;if(z!==0){var X=0;for(W=0;W>>26-z}X&&(this.words[W]=X,this.length++)}if(B!==0){for(W=this.length-1;W>=0;W--)this.words[W+B]=this.words[W];for(W=0;W=0);var O;z?O=(z-z%26)/26:O=0;var W=F%26,X=Math.min((F-W)/26,this.length),Z=67108863^67108863>>>W<X)for(this.length-=X,q=0;q=0&&(Q!==0||q>=O);q--){var N=this.words[q]|0;this.words[q]=Q<<26-W|N>>>W,Q=N&Z}return j&&Q!==0&&(j.words[j.length++]=Q),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},c.prototype.ishrn=function(F,z,B){return u(this.negative===0),this.iushrn(F,z,B)},c.prototype.shln=function(F){return this.clone().ishln(F)},c.prototype.ushln=function(F){return this.clone().iushln(F)},c.prototype.shrn=function(F){return this.clone().ishrn(F)},c.prototype.ushrn=function(F){return this.clone().iushrn(F)},c.prototype.testn=function(F){u(typeof F=="number"&&F>=0);var z=F%26,B=(F-z)/26,O=1<=0);var z=F%26,B=(F-z)/26;if(u(this.negative===0,"imaskn works only with positive numbers"),this.length<=B)return this;if(z!==0&&B++,this.length=Math.min(B,this.length),z!==0){var O=67108863^67108863>>>z<=67108864;z++)this.words[z]-=67108864,z===this.length-1?this.words[z+1]=1:this.words[z+1]++;return this.length=Math.max(this.length,z+1),this},c.prototype.isubn=function(F){if(u(typeof F=="number"),u(F<67108864),F<0)return this.iaddn(-F);if(this.negative!==0)return this.negative=0,this.iaddn(F),this.negative=1,this;if(this.words[0]-=F,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var z=0;z>26)-(j/67108864|0),this.words[W+B]=X&67108863}for(;W>26,this.words[W+B]=X&67108863;if(Z===0)return this.strip();for(u(Z===-1),Z=0,W=0;W>26,this.words[W]=X&67108863;return this.negative=1,this.strip()},c.prototype._wordDiv=function(F,z){var B=this.length-F.length,O=this.clone(),W=F,X=W.words[W.length-1]|0,Z=this._countBits(X);B=26-Z,B!==0&&(W=W.ushln(B),O.iushln(B),X=W.words[W.length-1]|0);var j=O.length-W.length,q;if(z!=="mod"){q=new c(null),q.length=j+1,q.words=new Array(q.length);for(var Q=0;Q=0;V--){var J=(O.words[W.length+V]|0)*67108864+(O.words[W.length+V-1]|0);for(J=Math.min(J/X|0,67108863),O._ishlnsubmul(W,J,V);O.negative!==0;)J--,O.negative=0,O._ishlnsubmul(W,1,V),O.isZero()||(O.negative^=1);q&&(q.words[V]=J)}return q&&q.strip(),O.strip(),z!=="div"&&B!==0&&O.iushrn(B),{div:q||null,mod:O}},c.prototype.divmod=function(F,z,B){if(u(!F.isZero()),this.isZero())return{div:new c(0),mod:new c(0)};var O,W,X;return this.negative!==0&&F.negative===0?(X=this.neg().divmod(F,z),z!=="mod"&&(O=X.div.neg()),z!=="div"&&(W=X.mod.neg(),B&&W.negative!==0&&W.iadd(F)),{div:O,mod:W}):this.negative===0&&F.negative!==0?(X=this.divmod(F.neg(),z),z!=="mod"&&(O=X.div.neg()),{div:O,mod:X.mod}):(this.negative&F.negative)!==0?(X=this.neg().divmod(F.neg(),z),z!=="div"&&(W=X.mod.neg(),B&&W.negative!==0&&W.isub(F)),{div:X.div,mod:W}):F.length>this.length||this.cmp(F)<0?{div:new c(0),mod:this}:F.length===1?z==="div"?{div:this.divn(F.words[0]),mod:null}:z==="mod"?{div:null,mod:new c(this.modn(F.words[0]))}:{div:this.divn(F.words[0]),mod:new c(this.modn(F.words[0]))}:this._wordDiv(F,z)},c.prototype.div=function(F){return this.divmod(F,"div",!1).div},c.prototype.mod=function(F){return this.divmod(F,"mod",!1).mod},c.prototype.umod=function(F){return this.divmod(F,"mod",!0).mod},c.prototype.divRound=function(F){var z=this.divmod(F);if(z.mod.isZero())return z.div;var B=z.mod.abs(),O=F.abs().iushrn(1),W=F.words[0]&1,X=B.cmp(O);if(X<0||W===1&&X===0)return z.div;var Z=new c(1);return Z.negative=this.negative^F.negative,z.div.iadd(Z)},c.prototype.modn=function(F){u(F<=67108863);for(var z=(1<<26)%F,B=0,O=this.length-1;O>=0;O--)B=(z*B+(this.words[O]|0))%F;return B},c.prototype.idivn=function(F){u(F<=67108863);for(var z=0,B=this.length-1;B>=0;B--){var O=(this.words[B]|0)+z*67108864;this.words[B]=O/F|0,z=O%F}return this.strip()},c.prototype.divn=function(F){return this.clone().idivn(F)},c.prototype.egcd=function(F){u(F.negative===0),u(!F.isZero());var z=this,B=F.clone();z.negative!==0?z=z.umod(F):z=z.clone();for(var O=new c(1),W=new c(0),X=new c(0),Z=new c(1),j=0;z.isEven()&&B.isEven();)z.iushrn(1),B.iushrn(1),++j;for(var q=B.clone(),Q=z.clone();!z.isZero();){for(var N=0,V=1;(z.words[0]&V)===0&&N<26;++N,V<<=1);if(N>0)for(z.iushrn(N);N-- >0;)(O.isOdd()||W.isOdd())&&(O.iadd(q),W.isub(Q)),O.iushrn(1),W.iushrn(1);for(var J=0,H=1;(B.words[0]&H)===0&&J<26;++J,H<<=1);if(J>0)for(B.iushrn(J);J-- >0;)(X.isOdd()||Z.isOdd())&&(X.iadd(q),Z.isub(Q)),X.iushrn(1),Z.iushrn(1);z.cmp(B)>=0?(z.isub(B),O.isub(X),W.isub(Z)):(B.isub(z),X.isub(O),Z.isub(W))}return{a:X,b:Z,gcd:B.iushln(j)}},c.prototype._invmp=function(F){u(F.negative===0),u(!F.isZero());var z=this,B=F.clone();z.negative!==0?z=z.umod(F):z=z.clone();for(var O=new c(1),W=new c(0),X=B.clone();z.cmpn(1)>0&&B.cmpn(1)>0;){for(var Z=0,j=1;(z.words[0]&j)===0&&Z<26;++Z,j<<=1);if(Z>0)for(z.iushrn(Z);Z-- >0;)O.isOdd()&&O.iadd(X),O.iushrn(1);for(var q=0,Q=1;(B.words[0]&Q)===0&&q<26;++q,Q<<=1);if(q>0)for(B.iushrn(q);q-- >0;)W.isOdd()&&W.iadd(X),W.iushrn(1);z.cmp(B)>=0?(z.isub(B),O.isub(W)):(B.isub(z),W.isub(O))}var N;return z.cmpn(1)===0?N=O:N=W,N.cmpn(0)<0&&N.iadd(F),N},c.prototype.gcd=function(F){if(this.isZero())return F.abs();if(F.isZero())return this.abs();var z=this.clone(),B=F.clone();z.negative=0,B.negative=0;for(var O=0;z.isEven()&&B.isEven();O++)z.iushrn(1),B.iushrn(1);do{for(;z.isEven();)z.iushrn(1);for(;B.isEven();)B.iushrn(1);var W=z.cmp(B);if(W<0){var X=z;z=B,B=X}else if(W===0||B.cmpn(1)===0)break;z.isub(B)}while(!0);return B.iushln(O)},c.prototype.invm=function(F){return this.egcd(F).a.umod(F)},c.prototype.isEven=function(){return(this.words[0]&1)===0},c.prototype.isOdd=function(){return(this.words[0]&1)===1},c.prototype.andln=function(F){return this.words[0]&F},c.prototype.bincn=function(F){u(typeof F=="number");var z=F%26,B=(F-z)/26,O=1<>>26,Z&=67108863,this.words[X]=Z}return W!==0&&(this.words[X]=W,this.length++),this},c.prototype.isZero=function(){return this.length===1&&this.words[0]===0},c.prototype.cmpn=function(F){var z=F<0;if(this.negative!==0&&!z)return-1;if(this.negative===0&&z)return 1;this.strip();var B;if(this.length>1)B=1;else{z&&(F=-F),u(F<=67108863,"Number is too big");var O=this.words[0]|0;B=O===F?0:OF.length)return 1;if(this.length=0;B--){var O=this.words[B]|0,W=F.words[B]|0;if(O!==W){OW&&(z=1);break}}return z},c.prototype.gtn=function(F){return this.cmpn(F)===1},c.prototype.gt=function(F){return this.cmp(F)===1},c.prototype.gten=function(F){return this.cmpn(F)>=0},c.prototype.gte=function(F){return this.cmp(F)>=0},c.prototype.ltn=function(F){return this.cmpn(F)===-1},c.prototype.lt=function(F){return this.cmp(F)===-1},c.prototype.lten=function(F){return this.cmpn(F)<=0},c.prototype.lte=function(F){return this.cmp(F)<=0},c.prototype.eqn=function(F){return this.cmpn(F)===0},c.prototype.eq=function(F){return this.cmp(F)===0},c.red=function(F){return new L(F)},c.prototype.toRed=function(F){return u(!this.red,"Already a number in reduction context"),u(this.negative===0,"red works only with positives"),F.convertTo(this)._forceRed(F)},c.prototype.fromRed=function(){return u(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},c.prototype._forceRed=function(F){return this.red=F,this},c.prototype.forceRed=function(F){return u(!this.red,"Already a number in reduction context"),this._forceRed(F)},c.prototype.redAdd=function(F){return u(this.red,"redAdd works only with red numbers"),this.red.add(this,F)},c.prototype.redIAdd=function(F){return u(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,F)},c.prototype.redSub=function(F){return u(this.red,"redSub works only with red numbers"),this.red.sub(this,F)},c.prototype.redISub=function(F){return u(this.red,"redISub works only with red numbers"),this.red.isub(this,F)},c.prototype.redShl=function(F){return u(this.red,"redShl works only with red numbers"),this.red.shl(this,F)},c.prototype.redMul=function(F){return u(this.red,"redMul works only with red numbers"),this.red._verify2(this,F),this.red.mul(this,F)},c.prototype.redIMul=function(F){return u(this.red,"redMul works only with red numbers"),this.red._verify2(this,F),this.red.imul(this,F)},c.prototype.redSqr=function(){return u(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},c.prototype.redISqr=function(){return u(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},c.prototype.redSqrt=function(){return u(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},c.prototype.redInvm=function(){return u(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},c.prototype.redNeg=function(){return u(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},c.prototype.redPow=function(F){return u(this.red&&!F.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,F)};var g={k256:null,p224:null,p192:null,p25519:null};function E(I,F){this.name=I,this.p=new c(F,16),this.n=this.p.bitLength(),this.k=new c(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}E.prototype._tmp=function(){var F=new c(null);return F.words=new Array(Math.ceil(this.n/13)),F},E.prototype.ireduce=function(F){var z=F,B;do this.split(z,this.tmp),z=this.imulK(z),z=z.iadd(this.tmp),B=z.bitLength();while(B>this.n);var O=B0?z.isub(this.p):z.strip!==void 0?z.strip():z._strip(),z},E.prototype.split=function(F,z){F.iushrn(this.n,0,z)},E.prototype.imulK=function(F){return F.imul(this.k)};function S(){E.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}f(S,E),S.prototype.split=function(F,z){for(var B=4194303,O=Math.min(F.length,9),W=0;W>>22,X=Z}X>>>=22,F.words[W-10]=X,X===0&&F.length>10?F.length-=10:F.length-=9},S.prototype.imulK=function(F){F.words[F.length]=0,F.words[F.length+1]=0,F.length+=2;for(var z=0,B=0;B>>=26,F.words[B]=W,z=O}return z!==0&&(F.words[F.length++]=z),F},c._prime=function(F){if(g[F])return g[F];var z;if(F==="k256")z=new S;else if(F==="p224")z=new C;else if(F==="p192")z=new k;else if(F==="p25519")z=new D;else throw new Error("Unknown prime "+F);return g[F]=z,z};function L(I){if(typeof I=="string"){var F=c._prime(I);this.m=F.p,this.prime=F}else u(I.gtn(1),"modulus must be greater than 1"),this.m=I,this.prime=null}L.prototype._verify1=function(F){u(F.negative===0,"red works only with positives"),u(F.red,"red works only with red numbers")},L.prototype._verify2=function(F,z){u((F.negative|z.negative)===0,"red works only with positives"),u(F.red&&F.red===z.red,"red works only with red numbers")},L.prototype.imod=function(F){return this.prime?this.prime.ireduce(F)._forceRed(this):F.umod(this.m)._forceRed(this)},L.prototype.neg=function(F){return F.isZero()?F.clone():this.m.sub(F)._forceRed(this)},L.prototype.add=function(F,z){this._verify2(F,z);var B=F.add(z);return B.cmp(this.m)>=0&&B.isub(this.m),B._forceRed(this)},L.prototype.iadd=function(F,z){this._verify2(F,z);var B=F.iadd(z);return B.cmp(this.m)>=0&&B.isub(this.m),B},L.prototype.sub=function(F,z){this._verify2(F,z);var B=F.sub(z);return B.cmpn(0)<0&&B.iadd(this.m),B._forceRed(this)},L.prototype.isub=function(F,z){this._verify2(F,z);var B=F.isub(z);return B.cmpn(0)<0&&B.iadd(this.m),B},L.prototype.shl=function(F,z){return this._verify1(F),this.imod(F.ushln(z))},L.prototype.imul=function(F,z){return this._verify2(F,z),this.imod(F.imul(z))},L.prototype.mul=function(F,z){return this._verify2(F,z),this.imod(F.mul(z))},L.prototype.isqr=function(F){return this.imul(F,F.clone())},L.prototype.sqr=function(F){return this.mul(F,F)},L.prototype.sqrt=function(F){if(F.isZero())return F.clone();var z=this.m.andln(3);if(u(z%2===1),z===3){var B=this.m.add(new c(1)).iushrn(2);return this.pow(F,B)}for(var O=this.m.subn(1),W=0;!O.isZero()&&O.andln(1)===0;)W++,O.iushrn(1);u(!O.isZero());var X=new c(1).toRed(this),Z=X.redNeg(),j=this.m.subn(1).iushrn(1),q=this.m.bitLength();for(q=new c(2*q*q).toRed(this);this.pow(q,j).cmp(Z)!==0;)q.redIAdd(Z);for(var Q=this.pow(q,O),N=this.pow(F,O.addn(1).iushrn(1)),V=this.pow(F,O),J=W;V.cmp(X)!==0;){for(var H=V,$=0;H.cmp(X)!==0;$++)H=H.redSqr();u($=0;W--){for(var Q=z.words[W],N=q-1;N>=0;N--){var V=Q>>N&1;if(X!==O[0]&&(X=this.sqr(X)),V===0&&Z===0){j=0;continue}Z<<=1,Z|=V,j++,!(j!==B&&(W!==0||N!==0))&&(X=this.mul(X,O[Z]),j=0,Z=0)}q=26}return X},L.prototype.convertTo=function(F){var z=F.umod(this.m);return z===F?z.clone():z},L.prototype.convertFrom=function(F){var z=F.clone();return z.red=null,z},c.mont=function(F){return new P(F)};function P(I){L.call(this,I),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(P,L),P.prototype.convertTo=function(F){return this.imod(F.ushln(this.shift))},P.prototype.convertFrom=function(F){var z=this.imod(F.mul(this.rinv));return z.red=null,z},P.prototype.imul=function(F,z){if(F.isZero()||z.isZero())return F.words[0]=0,F.length=1,F;var B=F.imul(z),O=B.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),W=B.isub(O).iushrn(this.shift),X=W;return W.cmp(this.m)>=0?X=W.isub(this.m):W.cmpn(0)<0&&(X=W.iadd(this.m)),X._forceRed(this)},P.prototype.mul=function(F,z){if(F.isZero()||z.isZero())return new c(0)._forceRed(this);var B=F.mul(z),O=B.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),W=B.isub(O).iushrn(this.shift),X=W;return W.cmp(this.m)>=0?X=W.isub(this.m):W.cmpn(0)<0&&(X=W.iadd(this.m)),X._forceRed(this)},P.prototype.invm=function(F){var z=this.imod(F._invmp(this.m).mul(this.r2));return z._forceRed(this)}})(n,this)},6204(n){"use strict";n.exports=a;function a(o){var s,l,u,f=o.length,c=0;for(s=0;s>>1;if(!(T<=0)){var g,E=s.mallocDouble(2*T*x),S=s.mallocInt32(x);if(x=c(w,T,E,S),x>0){if(T===1&&M)l.init(x),g=l.sweepComplete(T,b,0,x,E,S,0,x,E,S);else{var C=s.mallocDouble(2*T*A),k=s.mallocInt32(A);A=c(_,T,C,k),A>0&&(l.init(x+A),T===1?g=l.sweepBipartite(T,b,0,x,E,S,0,A,C,k):g=u(T,b,M,x,E,S,A,C,k),s.free(C),s.free(k))}s.free(E),s.free(S)}return g}}}var d;function p(w,_){d.push([w,_])}function v(w){return d=[],h(w,w,p,!0),d}function y(w,_){return d=[],h(w,_,p,!1),d}function m(w,_,b){switch(arguments.length){case 1:return v(w);case 2:return typeof _=="function"?h(w,w,_,!0):y(w,_);case 3:return h(w,_,b,!1);default:throw new Error("box-intersect: Invalid arguments")}}},2455(n,a){"use strict";function o(){function u(h,d,p,v,y,m,w,_,b,M,x){for(var A=2*h,T=v,g=A*v;Tb-_?u(h,d,p,v,y,m,w,_,b,M,x):f(h,d,p,v,y,m,w,_,b,M,x)}return c}function s(){function u(p,v,y,m,w,_,b,M,x,A,T){for(var g=2*p,E=m,S=g*m;EA-x?m?u(p,v,y,w,_,b,M,x,A,T,g):f(p,v,y,w,_,b,M,x,A,T,g):m?c(p,v,y,w,_,b,M,x,A,T,g):h(p,v,y,w,_,b,M,x,A,T,g)}return d}function l(u){return u?o():s()}a.partial=l(!1),a.full=l(!0)},7150(n,a,o){"use strict";n.exports=I;var s=o(1888),l=o(8828),u=o(2455),f=u.partial,c=u.full,h=o(855),d=o(3545),p=o(8105),v=128,y=1<<22,m=1<<22,w=p("!(lo>=p0)&&!(p1>=hi)"),_=p("lo===p0"),b=p("lo0;){Q-=1;var J=Q*T,H=S[J],$=S[J+1],te=S[J+2],ie=S[J+3],de=S[J+4],ge=S[J+5],Ie=Q*g,Ce=C[Ie],le=C[Ie+1],re=ge&1,Ee=!!(ge&16),we=W,oe=X,Y=j,ne=q;if(re&&(we=j,oe=q,Y=W,ne=X),!(ge&2&&(te=b(F,H,$,te,we,oe,le),$>=te))&&!(ge&4&&($=M(F,H,$,te,we,oe,Ce),$>=te))){var ye=te-$,U=de-ie;if(Ee){if(F*ye*(ye+U)p&&y[A+d]>M;--x,A-=w){for(var T=A,g=A+w,E=0;E>>1,M=2*h,x=b,A=y[M*b+d];w<_;){if(_-w=C?(x=S,A=C):E>=D?(x=g,A=E):(x=k,A=D):C>=D?(x=S,A=C):D>=E?(x=g,A=E):(x=k,A=D);for(var I=M*(_-1),F=M*x,L=0;L=p0)&&!(p1>=hi)":d};function o(p){return a[p]}function s(p,v,y,m,w,_,b){for(var M=2*p,x=M*y,A=x,T=y,g=v,E=p+v,S=y;m>S;++S,x+=M){var C=w[x+g];if(C===b)if(T===S)T+=1,A+=M;else{for(var k=0;M>k;++k){var D=w[x+k];w[x+k]=w[A],w[A++]=D}var L=_[S];_[S]=_[T],_[T++]=L}}return T}function l(p,v,y,m,w,_,b){for(var M=2*p,x=M*y,A=x,T=y,g=v,E=p+v,S=y;m>S;++S,x+=M){var C=w[x+g];if(Ck;++k){var D=w[x+k];w[x+k]=w[A],w[A++]=D}var L=_[S];_[S]=_[T],_[T++]=L}}return T}function u(p,v,y,m,w,_,b){for(var M=2*p,x=M*y,A=x,T=y,g=v,E=p+v,S=y;m>S;++S,x+=M){var C=w[x+E];if(C<=b)if(T===S)T+=1,A+=M;else{for(var k=0;M>k;++k){var D=w[x+k];w[x+k]=w[A],w[A++]=D}var L=_[S];_[S]=_[T],_[T++]=L}}return T}function f(p,v,y,m,w,_,b){for(var M=2*p,x=M*y,A=x,T=y,g=v,E=p+v,S=y;m>S;++S,x+=M){var C=w[x+E];if(C<=b)if(T===S)T+=1,A+=M;else{for(var k=0;M>k;++k){var D=w[x+k];w[x+k]=w[A],w[A++]=D}var L=_[S];_[S]=_[T],_[T++]=L}}return T}function c(p,v,y,m,w,_,b){for(var M=2*p,x=M*y,A=x,T=y,g=v,E=p+v,S=y;m>S;++S,x+=M){var C=w[x+g],k=w[x+E];if(C<=b&&b<=k)if(T===S)T+=1,A+=M;else{for(var D=0;M>D;++D){var L=w[x+D];w[x+D]=w[A],w[A++]=L}var P=_[S];_[S]=_[T],_[T++]=P}}return T}function h(p,v,y,m,w,_,b){for(var M=2*p,x=M*y,A=x,T=y,g=v,E=p+v,S=y;m>S;++S,x+=M){var C=w[x+g],k=w[x+E];if(CD;++D){var L=w[x+D];w[x+D]=w[A],w[A++]=L}var P=_[S];_[S]=_[T],_[T++]=P}}return T}function d(p,v,y,m,w,_,b,M){for(var x=2*p,A=x*y,T=A,g=y,E=v,S=p+v,C=y;m>C;++C,A+=x){var k=w[A+E],D=w[A+S];if(!(k>=b)&&!(M>=D))if(g===C)g+=1,T+=x;else{for(var L=0;x>L;++L){var P=w[A+L];w[A+L]=w[T],w[T++]=P}var I=_[C];_[C]=_[g],_[g++]=I}}return g}},4192(n){"use strict";n.exports=o;var a=32;function o(v,y){y<=4*a?s(0,y-1,v):p(0,y-1,v)}function s(v,y,m){for(var w=2*(v+1),_=v+1;_<=y;++_){for(var b=m[w++],M=m[w++],x=_,A=w-2;x-- >v;){var T=m[A-2],g=m[A-1];if(Tm[y+1]:!0}function d(v,y,m,w){v*=2;var _=w[v];return _>1,x=M-w,A=M+w,T=_,g=x,E=M,S=A,C=b,k=v+1,D=y-1,L=0;h(T,g,m)&&(L=T,T=g,g=L),h(S,C,m)&&(L=S,S=C,C=L),h(T,E,m)&&(L=T,T=E,E=L),h(g,E,m)&&(L=g,g=E,E=L),h(T,S,m)&&(L=T,T=S,S=L),h(E,S,m)&&(L=E,E=S,S=L),h(g,C,m)&&(L=g,g=C,C=L),h(g,E,m)&&(L=g,g=E,E=L),h(S,C,m)&&(L=S,S=C,C=L);for(var P=m[2*g],I=m[2*g+1],F=m[2*S],z=m[2*S+1],B=2*T,O=2*E,W=2*C,X=2*_,Z=2*M,j=2*b,q=0;q<2;++q){var Q=m[B+q],N=m[O+q],V=m[W+q];m[X+q]=Q,m[Z+q]=N,m[j+q]=V}u(x,v,m),u(A,y,m);for(var J=k;J<=D;++J)if(d(J,P,I,m))J!==k&&l(J,k,m),++k;else if(!d(J,F,z,m))for(;;)if(d(D,F,z,m)){d(D,P,I,m)?(f(J,k,D,m),++k,--D):(l(J,D,m),--D);break}else{if(--D>>1;u(w,N);for(var V=0,J=0,Z=0;Z=f)H=H-f|0,b(p,v,J--,H);else if(H>=0)b(h,d,V--,H);else if(H<=-f){H=-H-f|0;for(var $=0;$>>1;u(w,N);for(var V=0,J=0,H=0,Z=0;Z>1===w[2*Z+3]>>1&&(te=2,Z+=1),$<0){for(var ie=-($>>1)-1,de=0;de>1)-1;te===0?b(h,d,V--,ie):te===1?b(p,v,J--,ie):te===2&&b(y,m,H--,ie)}}}function T(E,S,C,k,D,L,P,I,F,z,B,O){var W=0,X=2*E,Z=S,j=S+E,q=1,Q=1;k?Q=f:q=f;for(var N=D;N>>1;u(w,$);for(var te=0,N=0;N<$;++N){var ie=w[2*N+1]|0;if(ie<0){var V=-ie,de=!1;if(V>=f?(de=!k,V-=f):(de=!!k,V-=1),de)M(h,d,te++,V);else{var ge=O[V],Ie=X*V,Ce=B[Ie+S+1],le=B[Ie+S+1+E];e:for(var re=0;re>>1;u(w,V);for(var J=0,j=0;j=f)h[J++]=q-f;else{q-=1;var $=B[q],te=W*q,ie=z[te+S+1],de=z[te+S+1+E];e:for(var ge=0;ge=0;--ge)if(h[ge]===q){for(var re=ge+1;rec)throw new RangeError('The value "'+oe+'" is invalid for option "size"');var Y=new Uint8Array(oe);return Object.setPrototypeOf(Y,p.prototype),Y}function p(oe,Y,ne){if(typeof oe=="number"){if(typeof Y=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return w(oe)}return v(oe,Y,ne)}p.poolSize=8192;function v(oe,Y,ne){if(typeof oe=="string")return _(oe,Y);if(ArrayBuffer.isView(oe))return M(oe);if(oe==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof oe);if(re(oe,ArrayBuffer)||oe&&re(oe.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(re(oe,SharedArrayBuffer)||oe&&re(oe.buffer,SharedArrayBuffer)))return x(oe,Y,ne);if(typeof oe=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var ye=oe.valueOf&&oe.valueOf();if(ye!=null&&ye!==oe)return p.from(ye,Y,ne);var U=A(oe);if(U)return U;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof oe[Symbol.toPrimitive]=="function")return p.from(oe[Symbol.toPrimitive]("string"),Y,ne);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof oe)}p.from=function(oe,Y,ne){return v(oe,Y,ne)},Object.setPrototypeOf(p.prototype,Uint8Array.prototype),Object.setPrototypeOf(p,Uint8Array);function y(oe){if(typeof oe!="number")throw new TypeError('"size" argument must be of type number');if(oe<0)throw new RangeError('The value "'+oe+'" is invalid for option "size"')}function m(oe,Y,ne){return y(oe),oe<=0?d(oe):Y!==void 0?typeof ne=="string"?d(oe).fill(Y,ne):d(oe).fill(Y):d(oe)}p.alloc=function(oe,Y,ne){return m(oe,Y,ne)};function w(oe){return y(oe),d(oe<0?0:T(oe)|0)}p.allocUnsafe=function(oe){return w(oe)},p.allocUnsafeSlow=function(oe){return w(oe)};function _(oe,Y){if((typeof Y!="string"||Y==="")&&(Y="utf8"),!p.isEncoding(Y))throw new TypeError("Unknown encoding: "+Y);var ne=E(oe,Y)|0,ye=d(ne),U=ye.write(oe,Y);return U!==ne&&(ye=ye.slice(0,U)),ye}function b(oe){for(var Y=oe.length<0?0:T(oe.length)|0,ne=d(Y),ye=0;ye=c)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+c.toString(16)+" bytes");return oe|0}function g(oe){return+oe!=oe&&(oe=0),p.alloc(+oe)}p.isBuffer=function(Y){return Y!=null&&Y._isBuffer===!0&&Y!==p.prototype},p.compare=function(Y,ne){if(re(Y,Uint8Array)&&(Y=p.from(Y,Y.offset,Y.byteLength)),re(ne,Uint8Array)&&(ne=p.from(ne,ne.offset,ne.byteLength)),!p.isBuffer(Y)||!p.isBuffer(ne))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(Y===ne)return 0;for(var ye=Y.length,U=ne.length,se=0,Ae=Math.min(ye,U);seU.length?p.from(Ae).copy(U,se):Uint8Array.prototype.set.call(U,Ae,se);else if(p.isBuffer(Ae))Ae.copy(U,se);else throw new TypeError('"list" argument must be an Array of Buffers');se+=Ae.length}return U};function E(oe,Y){if(p.isBuffer(oe))return oe.length;if(ArrayBuffer.isView(oe)||re(oe,ArrayBuffer))return oe.byteLength;if(typeof oe!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof oe);var ne=oe.length,ye=arguments.length>2&&arguments[2]===!0;if(!ye&&ne===0)return 0;for(var U=!1;;)switch(Y){case"ascii":case"latin1":case"binary":return ne;case"utf8":case"utf-8":return de(oe).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ne*2;case"hex":return ne>>>1;case"base64":return Ce(oe).length;default:if(U)return ye?-1:de(oe).length;Y=(""+Y).toLowerCase(),U=!0}}p.byteLength=E;function S(oe,Y,ne){var ye=!1;if((Y===void 0||Y<0)&&(Y=0),Y>this.length||((ne===void 0||ne>this.length)&&(ne=this.length),ne<=0)||(ne>>>=0,Y>>>=0,ne<=Y))return"";for(oe||(oe="utf8");;)switch(oe){case"hex":return q(this,Y,ne);case"utf8":case"utf-8":return O(this,Y,ne);case"ascii":return Z(this,Y,ne);case"latin1":case"binary":return j(this,Y,ne);case"base64":return B(this,Y,ne);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Q(this,Y,ne);default:if(ye)throw new TypeError("Unknown encoding: "+oe);oe=(oe+"").toLowerCase(),ye=!0}}p.prototype._isBuffer=!0;function C(oe,Y,ne){var ye=oe[Y];oe[Y]=oe[ne],oe[ne]=ye}p.prototype.swap16=function(){var Y=this.length;if(Y%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var ne=0;nene&&(Y+=" ... "),""},f&&(p.prototype[f]=p.prototype.inspect),p.prototype.compare=function(Y,ne,ye,U,se){if(re(Y,Uint8Array)&&(Y=p.from(Y,Y.offset,Y.byteLength)),!p.isBuffer(Y))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof Y);if(ne===void 0&&(ne=0),ye===void 0&&(ye=Y?Y.length:0),U===void 0&&(U=0),se===void 0&&(se=this.length),ne<0||ye>Y.length||U<0||se>this.length)throw new RangeError("out of range index");if(U>=se&&ne>=ye)return 0;if(U>=se)return-1;if(ne>=ye)return 1;if(ne>>>=0,ye>>>=0,U>>>=0,se>>>=0,this===Y)return 0;for(var Ae=se-U,be=ye-ne,me=Math.min(Ae,be),ue=this.slice(U,se),pe=Y.slice(ne,ye),ce=0;ce2147483647?ne=2147483647:ne<-2147483648&&(ne=-2147483648),ne=+ne,Ee(ne)&&(ne=U?0:oe.length-1),ne<0&&(ne=oe.length+ne),ne>=oe.length){if(U)return-1;ne=oe.length-1}else if(ne<0)if(U)ne=0;else return-1;if(typeof Y=="string"&&(Y=p.from(Y,ye)),p.isBuffer(Y))return Y.length===0?-1:D(oe,Y,ne,ye,U);if(typeof Y=="number")return Y=Y&255,typeof Uint8Array.prototype.indexOf=="function"?U?Uint8Array.prototype.indexOf.call(oe,Y,ne):Uint8Array.prototype.lastIndexOf.call(oe,Y,ne):D(oe,[Y],ne,ye,U);throw new TypeError("val must be string, number or Buffer")}function D(oe,Y,ne,ye,U){var se=1,Ae=oe.length,be=Y.length;if(ye!==void 0&&(ye=String(ye).toLowerCase(),ye==="ucs2"||ye==="ucs-2"||ye==="utf16le"||ye==="utf-16le")){if(oe.length<2||Y.length<2)return-1;se=2,Ae/=2,be/=2,ne/=2}function me($e,Ze){return se===1?$e[Ze]:$e.readUInt16BE(Ze*se)}var ue;if(U){var pe=-1;for(ue=ne;ueAe&&(ne=Ae-be),ue=ne;ue>=0;ue--){for(var ce=!0,Be=0;BeU&&(ye=U)):ye=U;var se=Y.length;ye>se/2&&(ye=se/2);for(var Ae=0;Ae>>0,isFinite(ye)?(ye=ye>>>0,U===void 0&&(U="utf8")):(U=ye,ye=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var se=this.length-ne;if((ye===void 0||ye>se)&&(ye=se),Y.length>0&&(ye<0||ne<0)||ne>this.length)throw new RangeError("Attempt to write outside buffer bounds");U||(U="utf8");for(var Ae=!1;;)switch(U){case"hex":return L(this,Y,ne,ye);case"utf8":case"utf-8":return P(this,Y,ne,ye);case"ascii":case"latin1":case"binary":return I(this,Y,ne,ye);case"base64":return F(this,Y,ne,ye);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return z(this,Y,ne,ye);default:if(Ae)throw new TypeError("Unknown encoding: "+U);U=(""+U).toLowerCase(),Ae=!0}},p.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function B(oe,Y,ne){return Y===0&&ne===oe.length?l.fromByteArray(oe):l.fromByteArray(oe.slice(Y,ne))}function O(oe,Y,ne){ne=Math.min(oe.length,ne);for(var ye=[],U=Y;U239?4:se>223?3:se>191?2:1;if(U+be<=ne){var me,ue,pe,ce;switch(be){case 1:se<128&&(Ae=se);break;case 2:me=oe[U+1],(me&192)===128&&(ce=(se&31)<<6|me&63,ce>127&&(Ae=ce));break;case 3:me=oe[U+1],ue=oe[U+2],(me&192)===128&&(ue&192)===128&&(ce=(se&15)<<12|(me&63)<<6|ue&63,ce>2047&&(ce<55296||ce>57343)&&(Ae=ce));break;case 4:me=oe[U+1],ue=oe[U+2],pe=oe[U+3],(me&192)===128&&(ue&192)===128&&(pe&192)===128&&(ce=(se&15)<<18|(me&63)<<12|(ue&63)<<6|pe&63,ce>65535&&ce<1114112&&(Ae=ce))}}Ae===null?(Ae=65533,be=1):Ae>65535&&(Ae-=65536,ye.push(Ae>>>10&1023|55296),Ae=56320|Ae&1023),ye.push(Ae),U+=be}return X(ye)}var W=4096;function X(oe){var Y=oe.length;if(Y<=W)return String.fromCharCode.apply(String,oe);for(var ne="",ye=0;yeye)&&(ne=ye);for(var U="",se=Y;seye&&(Y=ye),ne<0?(ne+=ye,ne<0&&(ne=0)):ne>ye&&(ne=ye),nene)throw new RangeError("Trying to access beyond buffer length")}p.prototype.readUintLE=p.prototype.readUIntLE=function(Y,ne,ye){Y=Y>>>0,ne=ne>>>0,ye||N(Y,ne,this.length);for(var U=this[Y],se=1,Ae=0;++Ae>>0,ne=ne>>>0,ye||N(Y,ne,this.length);for(var U=this[Y+--ne],se=1;ne>0&&(se*=256);)U+=this[Y+--ne]*se;return U},p.prototype.readUint8=p.prototype.readUInt8=function(Y,ne){return Y=Y>>>0,ne||N(Y,1,this.length),this[Y]},p.prototype.readUint16LE=p.prototype.readUInt16LE=function(Y,ne){return Y=Y>>>0,ne||N(Y,2,this.length),this[Y]|this[Y+1]<<8},p.prototype.readUint16BE=p.prototype.readUInt16BE=function(Y,ne){return Y=Y>>>0,ne||N(Y,2,this.length),this[Y]<<8|this[Y+1]},p.prototype.readUint32LE=p.prototype.readUInt32LE=function(Y,ne){return Y=Y>>>0,ne||N(Y,4,this.length),(this[Y]|this[Y+1]<<8|this[Y+2]<<16)+this[Y+3]*16777216},p.prototype.readUint32BE=p.prototype.readUInt32BE=function(Y,ne){return Y=Y>>>0,ne||N(Y,4,this.length),this[Y]*16777216+(this[Y+1]<<16|this[Y+2]<<8|this[Y+3])},p.prototype.readIntLE=function(Y,ne,ye){Y=Y>>>0,ne=ne>>>0,ye||N(Y,ne,this.length);for(var U=this[Y],se=1,Ae=0;++Ae=se&&(U-=Math.pow(2,8*ne)),U},p.prototype.readIntBE=function(Y,ne,ye){Y=Y>>>0,ne=ne>>>0,ye||N(Y,ne,this.length);for(var U=ne,se=1,Ae=this[Y+--U];U>0&&(se*=256);)Ae+=this[Y+--U]*se;return se*=128,Ae>=se&&(Ae-=Math.pow(2,8*ne)),Ae},p.prototype.readInt8=function(Y,ne){return Y=Y>>>0,ne||N(Y,1,this.length),this[Y]&128?(255-this[Y]+1)*-1:this[Y]},p.prototype.readInt16LE=function(Y,ne){Y=Y>>>0,ne||N(Y,2,this.length);var ye=this[Y]|this[Y+1]<<8;return ye&32768?ye|4294901760:ye},p.prototype.readInt16BE=function(Y,ne){Y=Y>>>0,ne||N(Y,2,this.length);var ye=this[Y+1]|this[Y]<<8;return ye&32768?ye|4294901760:ye},p.prototype.readInt32LE=function(Y,ne){return Y=Y>>>0,ne||N(Y,4,this.length),this[Y]|this[Y+1]<<8|this[Y+2]<<16|this[Y+3]<<24},p.prototype.readInt32BE=function(Y,ne){return Y=Y>>>0,ne||N(Y,4,this.length),this[Y]<<24|this[Y+1]<<16|this[Y+2]<<8|this[Y+3]},p.prototype.readFloatLE=function(Y,ne){return Y=Y>>>0,ne||N(Y,4,this.length),u.read(this,Y,!0,23,4)},p.prototype.readFloatBE=function(Y,ne){return Y=Y>>>0,ne||N(Y,4,this.length),u.read(this,Y,!1,23,4)},p.prototype.readDoubleLE=function(Y,ne){return Y=Y>>>0,ne||N(Y,8,this.length),u.read(this,Y,!0,52,8)},p.prototype.readDoubleBE=function(Y,ne){return Y=Y>>>0,ne||N(Y,8,this.length),u.read(this,Y,!1,52,8)};function V(oe,Y,ne,ye,U,se){if(!p.isBuffer(oe))throw new TypeError('"buffer" argument must be a Buffer instance');if(Y>U||Yoe.length)throw new RangeError("Index out of range")}p.prototype.writeUintLE=p.prototype.writeUIntLE=function(Y,ne,ye,U){if(Y=+Y,ne=ne>>>0,ye=ye>>>0,!U){var se=Math.pow(2,8*ye)-1;V(this,Y,ne,ye,se,0)}var Ae=1,be=0;for(this[ne]=Y&255;++be>>0,ye=ye>>>0,!U){var se=Math.pow(2,8*ye)-1;V(this,Y,ne,ye,se,0)}var Ae=ye-1,be=1;for(this[ne+Ae]=Y&255;--Ae>=0&&(be*=256);)this[ne+Ae]=Y/be&255;return ne+ye},p.prototype.writeUint8=p.prototype.writeUInt8=function(Y,ne,ye){return Y=+Y,ne=ne>>>0,ye||V(this,Y,ne,1,255,0),this[ne]=Y&255,ne+1},p.prototype.writeUint16LE=p.prototype.writeUInt16LE=function(Y,ne,ye){return Y=+Y,ne=ne>>>0,ye||V(this,Y,ne,2,65535,0),this[ne]=Y&255,this[ne+1]=Y>>>8,ne+2},p.prototype.writeUint16BE=p.prototype.writeUInt16BE=function(Y,ne,ye){return Y=+Y,ne=ne>>>0,ye||V(this,Y,ne,2,65535,0),this[ne]=Y>>>8,this[ne+1]=Y&255,ne+2},p.prototype.writeUint32LE=p.prototype.writeUInt32LE=function(Y,ne,ye){return Y=+Y,ne=ne>>>0,ye||V(this,Y,ne,4,4294967295,0),this[ne+3]=Y>>>24,this[ne+2]=Y>>>16,this[ne+1]=Y>>>8,this[ne]=Y&255,ne+4},p.prototype.writeUint32BE=p.prototype.writeUInt32BE=function(Y,ne,ye){return Y=+Y,ne=ne>>>0,ye||V(this,Y,ne,4,4294967295,0),this[ne]=Y>>>24,this[ne+1]=Y>>>16,this[ne+2]=Y>>>8,this[ne+3]=Y&255,ne+4},p.prototype.writeIntLE=function(Y,ne,ye,U){if(Y=+Y,ne=ne>>>0,!U){var se=Math.pow(2,8*ye-1);V(this,Y,ne,ye,se-1,-se)}var Ae=0,be=1,me=0;for(this[ne]=Y&255;++Ae>0)-me&255;return ne+ye},p.prototype.writeIntBE=function(Y,ne,ye,U){if(Y=+Y,ne=ne>>>0,!U){var se=Math.pow(2,8*ye-1);V(this,Y,ne,ye,se-1,-se)}var Ae=ye-1,be=1,me=0;for(this[ne+Ae]=Y&255;--Ae>=0&&(be*=256);)Y<0&&me===0&&this[ne+Ae+1]!==0&&(me=1),this[ne+Ae]=(Y/be>>0)-me&255;return ne+ye},p.prototype.writeInt8=function(Y,ne,ye){return Y=+Y,ne=ne>>>0,ye||V(this,Y,ne,1,127,-128),Y<0&&(Y=255+Y+1),this[ne]=Y&255,ne+1},p.prototype.writeInt16LE=function(Y,ne,ye){return Y=+Y,ne=ne>>>0,ye||V(this,Y,ne,2,32767,-32768),this[ne]=Y&255,this[ne+1]=Y>>>8,ne+2},p.prototype.writeInt16BE=function(Y,ne,ye){return Y=+Y,ne=ne>>>0,ye||V(this,Y,ne,2,32767,-32768),this[ne]=Y>>>8,this[ne+1]=Y&255,ne+2},p.prototype.writeInt32LE=function(Y,ne,ye){return Y=+Y,ne=ne>>>0,ye||V(this,Y,ne,4,2147483647,-2147483648),this[ne]=Y&255,this[ne+1]=Y>>>8,this[ne+2]=Y>>>16,this[ne+3]=Y>>>24,ne+4},p.prototype.writeInt32BE=function(Y,ne,ye){return Y=+Y,ne=ne>>>0,ye||V(this,Y,ne,4,2147483647,-2147483648),Y<0&&(Y=4294967295+Y+1),this[ne]=Y>>>24,this[ne+1]=Y>>>16,this[ne+2]=Y>>>8,this[ne+3]=Y&255,ne+4};function J(oe,Y,ne,ye,U,se){if(ne+ye>oe.length)throw new RangeError("Index out of range");if(ne<0)throw new RangeError("Index out of range")}function H(oe,Y,ne,ye,U){return Y=+Y,ne=ne>>>0,U||J(oe,Y,ne,4,34028234663852886e22,-34028234663852886e22),u.write(oe,Y,ne,ye,23,4),ne+4}p.prototype.writeFloatLE=function(Y,ne,ye){return H(this,Y,ne,!0,ye)},p.prototype.writeFloatBE=function(Y,ne,ye){return H(this,Y,ne,!1,ye)};function $(oe,Y,ne,ye,U){return Y=+Y,ne=ne>>>0,U||J(oe,Y,ne,8,17976931348623157e292,-17976931348623157e292),u.write(oe,Y,ne,ye,52,8),ne+8}p.prototype.writeDoubleLE=function(Y,ne,ye){return $(this,Y,ne,!0,ye)},p.prototype.writeDoubleBE=function(Y,ne,ye){return $(this,Y,ne,!1,ye)},p.prototype.copy=function(Y,ne,ye,U){if(!p.isBuffer(Y))throw new TypeError("argument should be a Buffer");if(ye||(ye=0),!U&&U!==0&&(U=this.length),ne>=Y.length&&(ne=Y.length),ne||(ne=0),U>0&&U=this.length)throw new RangeError("Index out of range");if(U<0)throw new RangeError("sourceEnd out of bounds");U>this.length&&(U=this.length),Y.length-ne>>0,ye=ye===void 0?this.length:ye>>>0,Y||(Y=0);var Ae;if(typeof Y=="number")for(Ae=ne;Ae55295&&ne<57344){if(!U){if(ne>56319){(Y-=3)>-1&&se.push(239,191,189);continue}else if(Ae+1===ye){(Y-=3)>-1&&se.push(239,191,189);continue}U=ne;continue}if(ne<56320){(Y-=3)>-1&&se.push(239,191,189),U=ne;continue}ne=(U-55296<<10|ne-56320)+65536}else U&&(Y-=3)>-1&&se.push(239,191,189);if(U=null,ne<128){if((Y-=1)<0)break;se.push(ne)}else if(ne<2048){if((Y-=2)<0)break;se.push(ne>>6|192,ne&63|128)}else if(ne<65536){if((Y-=3)<0)break;se.push(ne>>12|224,ne>>6&63|128,ne&63|128)}else if(ne<1114112){if((Y-=4)<0)break;se.push(ne>>18|240,ne>>12&63|128,ne>>6&63|128,ne&63|128)}else throw new Error("Invalid code point")}return se}function ge(oe){for(var Y=[],ne=0;ne>8,U=ne%256,se.push(U),se.push(ye);return se}function Ce(oe){return l.toByteArray(ie(oe))}function le(oe,Y,ne,ye){for(var U=0;U=Y.length||U>=oe.length);++U)Y[U+ne]=oe[U];return U}function re(oe,Y){return oe instanceof Y||oe!=null&&oe.constructor!=null&&oe.constructor.name!=null&&oe.constructor.name===Y.name}function Ee(oe){return oe!==oe}var we=(function(){for(var oe="0123456789abcdef",Y=new Array(256),ne=0;ne<16;++ne)for(var ye=ne*16,U=0;U<16;++U)Y[ye+U]=oe[ne]+oe[U];return Y})()},2538(n,a,o){"use strict";var s=o(8902),l=o(5542),u=o(2272),f=o(5023);n.exports=v;function c(y){return[Math.min(y[0],y[1]),Math.max(y[0],y[1])]}function h(y,m){return y[0]-m[0]||y[1]-m[1]}function d(y){return y.map(c).sort(h)}function p(y,m,w){return m in y?y[m]:w}function v(y,m,w){Array.isArray(m)?(w=w||{},m=m||[]):(w=m||{},m=[]);var _=!!p(w,"delaunay",!0),b=!!p(w,"interior",!0),M=!!p(w,"exterior",!0),x=!!p(w,"infinity",!1);if(!b&&!M||y.length===0)return[];var A=s(y,m);if(_||b!==M||x){for(var T=l(y.length,d(m)),g=0;g0;){for(var _=d.pop(),y=d.pop(),b=-1,M=-1,m=v[y],A=1;A=0||(h.flip(y,_),u(c,h,d,b,y,M),u(c,h,d,y,M,b),u(c,h,d,M,_,b),u(c,h,d,_,b,M))}}},5023(n,a,o){"use strict";var s=o(2478);n.exports=d;function l(p,v,y,m,w,_,b){this.cells=p,this.neighbor=v,this.flags=m,this.constraint=y,this.active=w,this.next=_,this.boundary=b}var u=l.prototype;function f(p,v){return p[0]-v[0]||p[1]-v[1]||p[2]-v[2]}u.locate=(function(){var p=[0,0,0];return function(v,y,m){var w=v,_=y,b=m;return y0||b.length>0;){for(;_.length>0;){var g=_.pop();if(M[g]!==-w){M[g]=w;for(var E=x[g],S=0;S<3;++S){var C=T[3*g+S];C>=0&&M[C]===0&&(A[3*g+S]?b.push(C):(_.push(C),M[C]=w))}}}var k=b;b=_,_=k,b.length=0,w=-w}var D=h(x,M,v);return y?D.concat(m.boundary):D}},8902(n,a,o){"use strict";var s=o(2478),l=o(3250)[3],u=0,f=1,c=2;n.exports=b;function h(M,x,A,T,g){this.a=M,this.b=x,this.idx=A,this.lowerIds=T,this.upperIds=g}function d(M,x,A,T){this.a=M,this.b=x,this.type=A,this.idx=T}function p(M,x){var A=M.a[0]-x.a[0]||M.a[1]-x.a[1]||M.type-x.type;return A||M.type!==u&&(A=l(M.a,M.b,x.b),A)?A:M.idx-x.idx}function v(M,x){return l(M.a,M.b,x)}function y(M,x,A,T,g){for(var E=s.lt(x,T,v),S=s.gt(x,T,v),C=E;C1&&l(A[D[P-2]],A[D[P-1]],T)>0;)M.push([D[P-1],D[P-2],g]),P-=1;D.length=P,D.push(g);for(var L=k.upperIds,P=L.length;P>1&&l(A[L[P-2]],A[L[P-1]],T)<0;)M.push([L[P-2],L[P-1],g]),P-=1;L.length=P,L.push(g)}}function m(M,x){var A;return M.a[0]k[0]&&g.push(new d(k,C,c,E),new d(C,k,f,E))}g.sort(p);for(var D=g[0].a[0]-(1+Math.abs(g[0].a[0]))*Math.pow(2,-52),L=[new h([D,1],[D,0],-1,[],[],[],[])],P=[],E=0,I=g.length;E=0}})(),u.removeTriangle=function(h,d,p){var v=this.stars;f(v[h],d,p),f(v[d],p,h),f(v[p],h,d)},u.addTriangle=function(h,d,p){var v=this.stars;v[h].push(d,p),v[d].push(p,h),v[p].push(h,d)},u.opposite=function(h,d){for(var p=this.stars[d],v=1,y=p.length;v=0;--F){var Q=P[F];z=Q[0];var N=D[z],V=N[0],J=N[1],H=k[V],$=k[J];if((H[0]-$[0]||H[1]-$[1])<0){var te=V;V=J,J=te}N[0]=V;var ie=N[1]=Q[1],de;for(I&&(de=N[2]);F>0&&P[F-1][0]===z;){var Q=P[--F],ge=Q[1];I?D.push([ie,ge,de]):D.push([ie,ge]),ie=ge}I?D.push([ie,J,de]):D.push([ie,J])}return B}function x(k,D,L){for(var P=D.length,I=new s(P),F=[],z=0;zD[2]?1:0)}function g(k,D,L){if(k.length!==0){if(D)for(var P=0;P0||z.length>0}function C(k,D,L){var P;if(L){P=D;for(var I=new Array(D.length),F=0;FM+1)throw new Error(_+" map requires nshades to be at least size "+w.length);Array.isArray(d.alpha)?d.alpha.length!==2?x=[1,1]:x=d.alpha.slice():typeof d.alpha=="number"?x=[d.alpha,d.alpha]:x=[1,1],p=w.map(function(C){return Math.round(C.index*M)}),x[0]=Math.min(Math.max(x[0],0),1),x[1]=Math.min(Math.max(x[1],0),1);var T=w.map(function(C,k){var D=w[k].index,L=w[k].rgb.slice();return L.length===4&&L[3]>=0&&L[3]<=1||(L[3]=x[0]+(x[1]-x[0])*D),L}),g=[];for(A=0;A=0}function d(p,v,y,m){var w=s(v,y,m);if(w===0){var _=l(s(p,v,y)),b=l(s(p,v,m));if(_===b){if(_===0){var M=h(p,v,y),x=h(p,v,m);return M===x?0:M?1:-1}return 0}else{if(b===0)return _>0||h(p,v,m)?-1:1;if(_===0)return b>0||h(p,v,y)?1:-1}return l(b-_)}var A=s(p,v,y);if(A>0)return w>0&&s(p,v,m)>0?1:-1;if(A<0)return w>0||s(p,v,m)>0?1:-1;var T=s(p,v,m);return T>0||h(p,v,y)?1:-1}},8572(n){"use strict";n.exports=function(o){return o<0?-1:o>0?1:0}},8507(n){n.exports=s;var a=Math.min;function o(l,u){return l-u}function s(l,u){var f=l.length,c=l.length-u.length;if(c)return c;switch(f){case 0:return 0;case 1:return l[0]-u[0];case 2:return l[0]+l[1]-u[0]-u[1]||a(l[0],l[1])-a(u[0],u[1]);case 3:var h=l[0]+l[1],d=u[0]+u[1];if(c=h+l[2]-(d+u[2]),c)return c;var p=a(l[0],l[1]),v=a(u[0],u[1]);return a(p,l[2])-a(v,u[2])||a(p+l[2],h)-a(v+u[2],d);case 4:var y=l[0],m=l[1],w=l[2],_=l[3],b=u[0],M=u[1],x=u[2],A=u[3];return y+m+w+_-(b+M+x+A)||a(y,m,w,_)-a(b,M,x,A,b)||a(y+m,y+w,y+_,m+w,m+_,w+_)-a(b+M,b+x,b+A,M+x,M+A,x+A)||a(y+m+w,y+m+_,y+w+_,m+w+_)-a(b+M+x,b+M+A,b+x+A,M+x+A);default:for(var T=l.slice().sort(o),g=u.slice().sort(o),E=0;Eo[l][0]&&(l=u);return sl?[[l],[s]]:[[s]]}},4750(n,a,o){"use strict";n.exports=l;var s=o(3090);function l(u){var f=s(u),c=f.length;if(c<=2)return[];for(var h=new Array(c),d=f[c-1],p=0;p=d[b]&&(_+=1);m[w]=_}}return h}function c(h,d){try{return s(h,!0)}catch(m){var p=l(h);if(p.length<=d)return[];var v=u(h,p),y=s(v,!0);return f(y,p)}}},4769(n){"use strict";function a(s,l,u,f,c,h){var d=6*c*c-6*c,p=3*c*c-4*c+1,v=-6*c*c+6*c,y=3*c*c-2*c;if(s.length){h||(h=new Array(s.length));for(var m=s.length-1;m>=0;--m)h[m]=d*s[m]+p*l[m]+v*u[m]+y*f[m];return h}return d*s+p*l+v*u[m]+y*f}function o(s,l,u,f,c,h){var d=c-1,p=c*c,v=d*d,y=(1+2*c)*v,m=c*v,w=p*(3-2*c),_=p*d;if(s.length){h||(h=new Array(s.length));for(var b=s.length-1;b>=0;--b)h[b]=y*s[b]+m*l[b]+w*u[b]+_*f[b];return h}return y*s+m*l+w*u+_*f}n.exports=o,n.exports.derivative=a},7642(n,a,o){"use strict";var s=o(8954),l=o(1682);n.exports=h;function u(d,p){this.point=d,this.index=p}function f(d,p){for(var v=d.point,y=p.point,m=v.length,w=0;w=2)return!1;L[I]=F}return!0}):D=D.filter(function(L){for(var P=0;P<=y;++P){var I=E[L[P]];if(I<0)return!1;L[P]=I}return!0}),y&1)for(var _=0;_>>31},n.exports.exponent=function(w){var _=n.exports.hi(w);return(_<<1>>>21)-1023},n.exports.fraction=function(w){var _=n.exports.lo(w),b=n.exports.hi(w),M=b&(1<<20)-1;return b&2146435072&&(M+=1048576),[_,M]},n.exports.denormalized=function(w){var _=n.exports.hi(w);return!(_&2146435072)}},1338(n){"use strict";function a(l,u,f){var c=l[f]|0;if(c<=0)return[];var h=new Array(c),d;if(f===l.length-1)for(d=0;d0)return o(l|0,u);break;case"object":if(typeof l.length=="number")return a(l,u,0);break}return[]}n.exports=s},3134(n,a,o){"use strict";n.exports=l;var s=o(1682);function l(u,f){var c=u.length;if(typeof f!="number"){f=0;for(var h=0;h=y-1)for(var A=_.length-1,g=p-v[y-1],T=0;T=y-1)for(var x=_.length-1,A=p-v[y-1],T=0;T=0;--y)if(p[--v])return!1;return!0},c.jump=function(p){var v=this.lastT(),y=this.dimension;if(!(p0;--T)m.push(u(M[T-1],x[T-1],arguments[T])),w.push(0)}},c.push=function(p){var v=this.lastT(),y=this.dimension;if(!(p1e-6?1/b:0;this._time.push(p);for(var g=y;g>0;--g){var E=u(x[g-1],A[g-1],arguments[g]);m.push(E),w.push((E-m[_++])*T)}}},c.set=function(p){var v=this.dimension;if(!(p0;--M)y.push(u(_[M-1],b[M-1],arguments[M])),m.push(0)}},c.move=function(p){var v=this.lastT(),y=this.dimension;if(!(p<=v||arguments.length!==y+1)){var m=this._state,w=this._velocity,_=m.length-this.dimension,b=this.bounds,M=b[0],x=b[1],A=p-v,T=A>1e-6?1/A:0;this._time.push(p);for(var g=y;g>0;--g){var E=arguments[g];m.push(u(M[g-1],x[g-1],m[_++]+E)),w.push(E*T)}}},c.idle=function(p){var v=this.lastT();if(!(p=0;--T)m.push(u(M[T],x[T],m[_]+A*w[_])),w.push(0),_+=1}};function h(p){for(var v=new Array(p),y=0;y=0;--k){var g=E[k];S[k]<=0?E[k]=new s(g._color,g.key,g.value,E[k+1],g.right,g._count+1):E[k]=new s(g._color,g.key,g.value,g.left,E[k+1],g._count+1)}for(var k=E.length-1;k>1;--k){var D=E[k-1],g=E[k];if(D._color===o||g._color===o)break;var L=E[k-2];if(L.left===D)if(D.left===g){var P=L.right;if(P&&P._color===a)D._color=o,L.right=u(o,P),L._color=a,k-=1;else{if(L._color=a,L.left=D.right,D._color=o,D.right=L,E[k-2]=D,E[k-1]=g,f(L),f(D),k>=3){var I=E[k-3];I.left===L?I.left=D:I.right=D}break}}else{var P=L.right;if(P&&P._color===a)D._color=o,L.right=u(o,P),L._color=a,k-=1;else{if(D.right=g.left,L._color=a,L.left=g.right,g._color=o,g.left=D,g.right=L,E[k-2]=g,E[k-1]=D,f(L),f(D),f(g),k>=3){var I=E[k-3];I.left===L?I.left=g:I.right=g}break}}else if(D.right===g){var P=L.left;if(P&&P._color===a)D._color=o,L.left=u(o,P),L._color=a,k-=1;else{if(L._color=a,L.right=D.left,D._color=o,D.left=L,E[k-2]=D,E[k-1]=g,f(L),f(D),k>=3){var I=E[k-3];I.right===L?I.right=D:I.left=D}break}}else{var P=L.left;if(P&&P._color===a)D._color=o,L.left=u(o,P),L._color=a,k-=1;else{if(D.left=g.right,L._color=a,L.right=g.left,g._color=o,g.right=D,g.left=L,E[k-2]=g,E[k-1]=D,f(L),f(D),f(g),k>=3){var I=E[k-3];I.right===L?I.right=g:I.left=g}break}}}return E[0]._color=o,new c(T,E[0])};function d(x,A){if(A.left){var T=d(x,A.left);if(T)return T}var T=x(A.key,A.value);if(T)return T;if(A.right)return d(x,A.right)}function p(x,A,T,g){var E=A(x,g.key);if(E<=0){if(g.left){var S=p(x,A,T,g.left);if(S)return S}var S=T(g.key,g.value);if(S)return S}if(g.right)return p(x,A,T,g.right)}function v(x,A,T,g,E){var S=T(x,E.key),C=T(A,E.key),k;if(S<=0&&(E.left&&(k=v(x,A,T,g,E.left),k)||C>0&&(k=g(E.key,E.value),k)))return k;if(C>0&&E.right)return v(x,A,T,g,E.right)}h.forEach=function(A,T,g){if(this.root)switch(arguments.length){case 1:return d(A,this.root);case 2:return p(T,this._compare,A,this.root);case 3:return this._compare(T,g)>=0?void 0:v(T,g,this._compare,A,this.root)}},Object.defineProperty(h,"begin",{get:function(){for(var x=[],A=this.root;A;)x.push(A),A=A.left;return new y(this,x)}}),Object.defineProperty(h,"end",{get:function(){for(var x=[],A=this.root;A;)x.push(A),A=A.right;return new y(this,x)}}),h.at=function(x){if(x<0)return new y(this,[]);for(var A=this.root,T=[];;){if(T.push(A),A.left){if(x=A.right._count)break;A=A.right}else break}return new y(this,[])},h.ge=function(x){for(var A=this._compare,T=this.root,g=[],E=0;T;){var S=A(x,T.key);g.push(T),S<=0&&(E=g.length),S<=0?T=T.left:T=T.right}return g.length=E,new y(this,g)},h.gt=function(x){for(var A=this._compare,T=this.root,g=[],E=0;T;){var S=A(x,T.key);g.push(T),S<0&&(E=g.length),S<0?T=T.left:T=T.right}return g.length=E,new y(this,g)},h.lt=function(x){for(var A=this._compare,T=this.root,g=[],E=0;T;){var S=A(x,T.key);g.push(T),S>0&&(E=g.length),S<=0?T=T.left:T=T.right}return g.length=E,new y(this,g)},h.le=function(x){for(var A=this._compare,T=this.root,g=[],E=0;T;){var S=A(x,T.key);g.push(T),S>=0&&(E=g.length),S<0?T=T.left:T=T.right}return g.length=E,new y(this,g)},h.find=function(x){for(var A=this._compare,T=this.root,g=[];T;){var E=A(x,T.key);if(g.push(T),E===0)return new y(this,g);E<=0?T=T.left:T=T.right}return new y(this,[])},h.remove=function(x){var A=this.find(x);return A?A.remove():this},h.get=function(x){for(var A=this._compare,T=this.root;T;){var g=A(x,T.key);if(g===0)return T.value;g<=0?T=T.left:T=T.right}};function y(x,A){this.tree=x,this._stack=A}var m=y.prototype;Object.defineProperty(m,"valid",{get:function(){return this._stack.length>0}}),Object.defineProperty(m,"node",{get:function(){return this._stack.length>0?this._stack[this._stack.length-1]:null},enumerable:!0}),m.clone=function(){return new y(this.tree,this._stack.slice())};function w(x,A){x.key=A.key,x.value=A.value,x.left=A.left,x.right=A.right,x._color=A._color,x._count=A._count}function _(x){for(var A,T,g,E,S=x.length-1;S>=0;--S){if(A=x[S],S===0){A._color=o;return}if(T=x[S-1],T.left===A){if(g=T.right,g.right&&g.right._color===a){if(g=T.right=l(g),E=g.right=l(g.right),T.right=g.left,g.left=T,g.right=E,g._color=T._color,A._color=o,T._color=o,E._color=o,f(T),f(g),S>1){var C=x[S-2];C.left===T?C.left=g:C.right=g}x[S-1]=g;return}else if(g.left&&g.left._color===a){if(g=T.right=l(g),E=g.left=l(g.left),T.right=E.left,g.left=E.right,E.left=T,E.right=g,E._color=T._color,T._color=o,g._color=o,A._color=o,f(T),f(g),f(E),S>1){var C=x[S-2];C.left===T?C.left=E:C.right=E}x[S-1]=E;return}if(g._color===o)if(T._color===a){T._color=o,T.right=u(a,g);return}else{T.right=u(a,g);continue}else{if(g=l(g),T.right=g.left,g.left=T,g._color=T._color,T._color=a,f(T),f(g),S>1){var C=x[S-2];C.left===T?C.left=g:C.right=g}x[S-1]=g,x[S]=T,S+11){var C=x[S-2];C.right===T?C.right=g:C.left=g}x[S-1]=g;return}else if(g.right&&g.right._color===a){if(g=T.left=l(g),E=g.right=l(g.right),T.left=E.right,g.right=E.left,E.right=T,E.left=g,E._color=T._color,T._color=o,g._color=o,A._color=o,f(T),f(g),f(E),S>1){var C=x[S-2];C.right===T?C.right=E:C.left=E}x[S-1]=E;return}if(g._color===o)if(T._color===a){T._color=o,T.left=u(a,g);return}else{T.left=u(a,g);continue}else{if(g=l(g),T.left=g.right,g.right=T,g._color=T._color,T._color=a,f(T),f(g),S>1){var C=x[S-2];C.right===T?C.right=g:C.left=g}x[S-1]=g,x[S]=T,S+1=0;--g){var T=x[g];T.left===x[g+1]?A[g]=new s(T._color,T.key,T.value,A[g+1],T.right,T._count):A[g]=new s(T._color,T.key,T.value,T.left,A[g+1],T._count)}if(T=A[A.length-1],T.left&&T.right){var E=A.length;for(T=T.left;T.right;)A.push(T),T=T.right;var S=A[E-1];A.push(new s(T._color,S.key,S.value,T.left,T.right,T._count)),A[E-1].key=T.key,A[E-1].value=T.value;for(var g=A.length-2;g>=E;--g)T=A[g],A[g]=new s(T._color,T.key,T.value,T.left,A[g+1],T._count);A[E-1].left=A[E]}if(T=A[A.length-1],T._color===a){var C=A[A.length-2];C.left===T?C.left=null:C.right===T&&(C.right=null),A.pop();for(var g=0;g0)return this._stack[this._stack.length-1].key},enumerable:!0}),Object.defineProperty(m,"value",{get:function(){if(this._stack.length>0)return this._stack[this._stack.length-1].value},enumerable:!0}),Object.defineProperty(m,"index",{get:function(){var x=0,A=this._stack;if(A.length===0){var T=this.tree.root;return T?T._count:0}else A[A.length-1].left&&(x=A[A.length-1].left._count);for(var g=A.length-2;g>=0;--g)A[g+1]===A[g].right&&(++x,A[g].left&&(x+=A[g].left._count));return x},enumerable:!0}),m.next=function(){var x=this._stack;if(x.length!==0){var A=x[x.length-1];if(A.right)for(A=A.right;A;)x.push(A),A=A.left;else for(x.pop();x.length>0&&x[x.length-1].right===A;)A=x[x.length-1],x.pop()}},Object.defineProperty(m,"hasNext",{get:function(){var x=this._stack;if(x.length===0)return!1;if(x[x.length-1].right)return!0;for(var A=x.length-1;A>0;--A)if(x[A-1].left===x[A])return!0;return!1}}),m.update=function(x){var A=this._stack;if(A.length===0)throw new Error("Can't update empty node!");var T=new Array(A.length),g=A[A.length-1];T[T.length-1]=new s(g._color,g.key,x,g.left,g.right,g._count);for(var E=A.length-2;E>=0;--E)g=A[E],g.left===A[E+1]?T[E]=new s(g._color,g.key,g.value,T[E+1],g.right,g._count):T[E]=new s(g._color,g.key,g.value,g.left,T[E+1],g._count);return new c(this.tree._compare,T[0])},m.prev=function(){var x=this._stack;if(x.length!==0){var A=x[x.length-1];if(A.left)for(A=A.left;A;)x.push(A),A=A.right;else for(x.pop();x.length>0&&x[x.length-1].left===A;)A=x[x.length-1],x.pop()}},Object.defineProperty(m,"hasPrev",{get:function(){var x=this._stack;if(x.length===0)return!1;if(x[x.length-1].left)return!0;for(var A=x.length-1;A>0;--A)if(x[A-1].right===x[A])return!0;return!1}});function b(x,A){return xA?1:0}function M(x){return new c(x||b,null)}},3837(n,a,o){"use strict";n.exports=k;var s=o(4935),l=o(501),u=o(5304),f=o(6429),c=o(6444),h=new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]),d=ArrayBuffer,p=DataView;function v(D){return d.isView(D)&&!(D instanceof p)}function y(D){return Array.isArray(D)||v(D)}function m(D,L){return D[0]=L[0],D[1]=L[1],D[2]=L[2],D}function w(D){this.gl=D,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.tickFontStyle=["normal","normal","normal"],this.tickFontWeight=["normal","normal","normal"],this.tickFontVariant=["normal","normal","normal"],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","sans-serif","sans-serif"],this.labelFontStyle=["normal","normal","normal"],this.labelFontWeight=["normal","normal","normal"],this.labelFontVariant=["normal","normal","normal"],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=u(D)}var _=w.prototype;_.update=function(D){D=D||{};function L(V,J,H){if(H in D){var $=D[H],te=this[H],ie;(V?y($)&&y($[0]):y($))?this[H]=ie=[J($[0]),J($[1]),J($[2])]:this[H]=ie=[J($),J($),J($)];for(var de=0;de<3;++de)if(ie[de]!==te[de])return!0}return!1}var P=L.bind(this,!1,Number),I=L.bind(this,!1,Boolean),F=L.bind(this,!1,String),z=L.bind(this,!0,function(V){if(y(V)){if(V.length===3)return[+V[0],+V[1],+V[2],1];if(V.length===4)return[+V[0],+V[1],+V[2],+V[3]]}return[0,0,0,1]}),B,O=!1,W=!1;if("bounds"in D)for(var X=D.bounds,Z=0;Z<2;++Z)for(var j=0;j<3;++j)X[Z][j]!==this.bounds[Z][j]&&(W=!0),this.bounds[Z][j]=X[Z][j];if("ticks"in D){B=D.ticks,O=!0,this.autoTicks=!1;for(var Z=0;Z<3;++Z)this.tickSpacing[Z]=0}else P("tickSpacing")&&(this.autoTicks=!0,W=!0);if(this._firstInit&&("ticks"in D||"tickSpacing"in D||(this.autoTicks=!0),W=!0,O=!0,this._firstInit=!1),W&&this.autoTicks&&(B=c.create(this.bounds,this.tickSpacing),O=!0),O){for(var Z=0;Z<3;++Z)B[Z].sort(function(J,H){return J.x-H.x});c.equal(B,this.ticks)?O=!1:this.ticks=B}I("tickEnable"),F("tickFont")&&(O=!0),F("tickFontStyle")&&(O=!0),F("tickFontWeight")&&(O=!0),F("tickFontVariant")&&(O=!0),P("tickSize"),P("tickAngle"),P("tickPad"),z("tickColor");var q=F("labels");F("labelFont")&&(q=!0),F("labelFontStyle")&&(q=!0),F("labelFontWeight")&&(q=!0),F("labelFontVariant")&&(q=!0),I("labelEnable"),P("labelSize"),P("labelPad"),z("labelColor"),I("lineEnable"),I("lineMirror"),P("lineWidth"),z("lineColor"),I("lineTickEnable"),I("lineTickMirror"),P("lineTickLength"),P("lineTickWidth"),z("lineTickColor"),I("gridEnable"),P("gridWidth"),z("gridColor"),I("zeroEnable"),z("zeroLineColor"),P("zeroLineWidth"),I("backgroundEnable"),z("backgroundColor");var Q=[{family:this.labelFont[0],style:this.labelFontStyle[0],weight:this.labelFontWeight[0],variant:this.labelFontVariant[0]},{family:this.labelFont[1],style:this.labelFontStyle[1],weight:this.labelFontWeight[1],variant:this.labelFontVariant[1]},{family:this.labelFont[2],style:this.labelFontStyle[2],weight:this.labelFontWeight[2],variant:this.labelFontVariant[2]}],N=[{family:this.tickFont[0],style:this.tickFontStyle[0],weight:this.tickFontWeight[0],variant:this.tickFontVariant[0]},{family:this.tickFont[1],style:this.tickFontStyle[1],weight:this.tickFontWeight[1],variant:this.tickFontVariant[1]},{family:this.tickFont[2],style:this.tickFontStyle[2],weight:this.tickFontWeight[2],variant:this.tickFontVariant[2]}];this._text?this._text&&(q||O)&&this._text.update(this.bounds,this.labels,Q,this.ticks,N):this._text=s(this.gl,this.bounds,this.labels,Q,this.ticks,N),this._lines&&O&&(this._lines.dispose(),this._lines=null),this._lines||(this._lines=l(this.gl,this.bounds,this.ticks))};function b(){this.primalOffset=[0,0,0],this.primalMinor=[0,0,0],this.mirrorOffset=[0,0,0],this.mirrorMinor=[0,0,0]}var M=[new b,new b,new b];function x(D,L,P,I,F){for(var z=D.primalOffset,B=D.primalMinor,O=D.mirrorOffset,W=D.mirrorMinor,X=I[L],Z=0;Z<3;++Z)if(L!==Z){var j=z,q=O,Q=B,N=W;X&1<0?(Q[Z]=-1,N[Z]=0):(Q[Z]=0,N[Z]=1)}}var A=[0,0,0],T={model:h,view:h,projection:h,_ortho:!1};_.isOpaque=function(){return!0},_.isTransparent=function(){return!1},_.drawTransparent=function(D){};var g=0,E=[0,0,0],S=[0,0,0],C=[0,0,0];_.draw=function(D){D=D||T;for(var H=this.gl,L=D.model||h,P=D.view||h,I=D.projection||h,F=this.bounds,z=D._ortho||!1,B=f(L,P,I,F,z),O=B.cubeEdges,W=B.axis,X=P[12],Z=P[13],j=P[14],q=P[15],Q=z?2:1,N=Q*this.pixelRatio*(I[3]*X+I[7]*Z+I[11]*j+I[15]*q)/H.drawingBufferHeight,V=0;V<3;++V)this.lastCubeProps.cubeEdges[V]=O[V],this.lastCubeProps.axis[V]=W[V];for(var J=M,V=0;V<3;++V)x(M[V],V,this.bounds,O,W);for(var H=this.gl,$=A,V=0;V<3;++V)this.backgroundEnable[V]?$[V]=W[V]:$[V]=0;this._background.draw(L,P,I,F,$,this.backgroundColor),this._lines.bind(L,P,I,this);for(var V=0;V<3;++V){var te=[0,0,0];W[V]>0?te[V]=F[1][V]:te[V]=F[0][V];for(var ie=0;ie<2;++ie){var de=(V+1+ie)%3,ge=(V+1+(ie^1))%3;this.gridEnable[de]&&this._lines.drawGrid(de,ge,this.bounds,te,this.gridColor[de],this.gridWidth[de]*this.pixelRatio)}for(var ie=0;ie<2;++ie){var de=(V+1+ie)%3,ge=(V+1+(ie^1))%3;this.zeroEnable[ge]&&Math.min(F[0][ge],F[1][ge])<=0&&Math.max(F[0][ge],F[1][ge])>=0&&this._lines.drawZero(de,ge,this.bounds,te,this.zeroLineColor[ge],this.zeroLineWidth[ge]*this.pixelRatio)}}for(var V=0;V<3;++V){this.lineEnable[V]&&this._lines.drawAxisLine(V,this.bounds,J[V].primalOffset,this.lineColor[V],this.lineWidth[V]*this.pixelRatio),this.lineMirror[V]&&this._lines.drawAxisLine(V,this.bounds,J[V].mirrorOffset,this.lineColor[V],this.lineWidth[V]*this.pixelRatio);for(var Ie=m(E,J[V].primalMinor),Ce=m(S,J[V].mirrorMinor),le=this.lineTickLength,ie=0;ie<3;++ie){var re=N/L[5*ie];Ie[ie]*=le[ie]*re,Ce[ie]*=le[ie]*re}this.lineTickEnable[V]&&this._lines.drawAxisTicks(V,J[V].primalOffset,Ie,this.lineTickColor[V],this.lineTickWidth[V]*this.pixelRatio),this.lineTickMirror[V]&&this._lines.drawAxisTicks(V,J[V].mirrorOffset,Ce,this.lineTickColor[V],this.lineTickWidth[V]*this.pixelRatio)}this._lines.unbind(),this._text.bind(L,P,I,this.pixelRatio);var Ee,we=.5,oe,Y;function ne(me){Y=[0,0,0],Y[me]=1}function ye(me,ue,pe){var ce=(me+1)%3,Be=(me+2)%3,$e=ue[ce],Ze=ue[Be],it=pe[ce],nt=pe[Be];if($e>0&&nt>0){ne(ce);return}else if($e>0&&nt<0){ne(ce);return}else if($e<0&&nt>0){ne(ce);return}else if($e<0&&nt<0){ne(ce);return}else if(Ze>0&&it>0){ne(Be);return}else if(Ze>0&&it<0){ne(Be);return}else if(Ze<0&&it>0){ne(Be);return}else if(Ze<0&&it<0){ne(Be);return}}for(var V=0;V<3;++V){for(var U=J[V].primalMinor,se=J[V].mirrorMinor,Ae=m(C,J[V].primalOffset),ie=0;ie<3;++ie)this.lineTickEnable[V]&&(Ae[ie]+=N*U[ie]*Math.max(this.lineTickLength[ie],0)/L[5*ie]);var be=[0,0,0];if(be[V]=1,this.tickEnable[V]){this.tickAngle[V]===-3600?(this.tickAngle[V]=0,this.tickAlign[V]="auto"):this.tickAlign[V]=-1,oe=1,Ee=[this.tickAlign[V],we,oe],Ee[0]==="auto"?Ee[0]=g:Ee[0]=parseInt(""+Ee[0]),Y=[0,0,0],ye(V,U,se);for(var ie=0;ie<3;++ie)Ae[ie]+=N*U[ie]*this.tickPad[ie]/L[5*ie];this._text.drawTicks(V,this.tickSize[V],this.tickAngle[V],Ae,this.tickColor[V],be,Y,Ee)}if(this.labelEnable[V]){oe=0,Y=[0,0,0],this.labels[V].length>4&&(ne(V),oe=1),Ee=[this.labelAlign[V],we,oe],Ee[0]==="auto"?Ee[0]=g:Ee[0]=parseInt(""+Ee[0]);for(var ie=0;ie<3;++ie)Ae[ie]+=N*U[ie]*this.labelPad[ie]/L[5*ie];Ae[V]+=.5*(F[0][V]+F[1][V]),this._text.drawLabel(V,this.labelSize[V],this.labelAngle[V],Ae,this.labelColor[V],[0,0,0],Y,Ee)}}this._text.unbind()},_.dispose=function(){this._text.dispose(),this._lines.dispose(),this._background.dispose(),this._lines=null,this._text=null,this._background=null,this.gl=null};function k(D,L){var P=new w(D);return P.update(L),P}},5304(n,a,o){"use strict";n.exports=h;var s=o(2762),l=o(8116),u=o(1879).bg;function f(d,p,v,y){this.gl=d,this.buffer=p,this.vao=v,this.shader=y}var c=f.prototype;c.draw=function(d,p,v,y,m,w){for(var _=!1,b=0;b<3;++b)_=_||m[b];if(_){var M=this.gl;M.enable(M.POLYGON_OFFSET_FILL),M.polygonOffset(1,2),this.shader.bind(),this.shader.uniforms={model:d,view:p,projection:v,bounds:y,enable:m,colors:w},this.vao.bind(),this.vao.draw(this.gl.TRIANGLES,36),this.vao.unbind(),M.disable(M.POLYGON_OFFSET_FILL)}},c.dispose=function(){this.vao.dispose(),this.buffer.dispose(),this.shader.dispose()};function h(d){for(var p=[],v=[],y=0,m=0;m<3;++m)for(var w=(m+1)%3,_=(m+2)%3,b=[0,0,0],M=[0,0,0],x=-1;x<=1;x+=2){v.push(y,y+2,y+1,y+1,y+2,y+3),b[m]=x,M[m]=x;for(var A=-1;A<=1;A+=2){b[w]=A;for(var T=-1;T<=1;T+=2)b[_]=T,p.push(b[0],b[1],b[2],M[0],M[1],M[2]),y+=1}var g=w;w=_,_=g}var E=s(d,new Float32Array(p)),S=s(d,new Uint16Array(v),d.ELEMENT_ARRAY_BUFFER),C=l(d,[{buffer:E,type:d.FLOAT,size:3,offset:0,stride:24},{buffer:E,type:d.FLOAT,size:3,offset:12,stride:24}],S),k=u(d);return k.attributes.position.location=0,k.attributes.normal.location=1,new f(d,E,C,k)}},6429(n,a,o){"use strict";n.exports=x;var s=o(8828),l=o(6760),u=o(5202),f=o(3250),c=new Array(16),h=new Array(8),d=new Array(8),p=new Array(3),v=[0,0,0];(function(){for(var A=0;A<8;++A)h[A]=[1,1,1,1],d[A]=[1,1,1]})();function y(A,T,g){for(var E=0;E<4;++E){A[E]=g[12+E];for(var S=0;S<3;++S)A[E]+=T[S]*g[4*S+E]}}var m=[[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 w(A){for(var T=0;TW&&(P|=1<W){P|=1<d[k][1])&&(J=k);for(var H=-1,k=0;k<3;++k){var $=J^1<d[te][0]&&(te=$)}}var ie=_;ie[0]=ie[1]=ie[2]=0,ie[s.log2(H^J)]=J&H,ie[s.log2(J^te)]=J&te;var de=te^7;de===P||de===V?(de=H^7,ie[s.log2(te^de)]=de&te):ie[s.log2(H^de)]=de&H;for(var ge=b,Ie=P,z=0;z<3;++z)Ie&1<{});function Am(){}function KRe(){return this.rgb().formatHex()}function Zer(){return this.rgb().formatHex8()}function Ker(){return nBe(this).formatHsl()}function JRe(){return this.rgb().formatRgb()}function L2(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=Ger.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?QRe(t):r===3?new Mh(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?kI(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?kI(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=Her.exec(e))?new Mh(t[1],t[2],t[3],1):(t=jer.exec(e))?new Mh(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=Wer.exec(e))?kI(t[1],t[2],t[3],t[4]):(t=$er.exec(e))?kI(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=Yer.exec(e))?rBe(t[1],t[2]/100,t[3]/100,1):(t=Xer.exec(e))?rBe(t[1],t[2]/100,t[3]/100,t[4]):ZRe.hasOwnProperty(e)?QRe(ZRe[e]):e==="transparent"?new Mh(NaN,NaN,NaN,0):null}function QRe(e){return new Mh(e>>16&255,e>>8&255,e&255,1)}function kI(e,t,r,i){return i<=0&&(e=t=r=NaN),new Mh(e,t,r,i)}function hE(e){return e instanceof Am||(e=L2(e)),e?(e=e.rgb(),new Mh(e.r,e.g,e.b,e.opacity)):new Mh}function T4(e,t,r,i){return arguments.length===1?hE(e):new Mh(e,t,r,i==null?1:i)}function Mh(e,t,r,i){this.r=+e,this.g=+t,this.b=+r,this.opacity=+i}function eBe(){return`#${b_(this.r)}${b_(this.g)}${b_(this.b)}`}function Jer(){return`#${b_(this.r)}${b_(this.g)}${b_(this.b)}${b_((isNaN(this.opacity)?1:this.opacity)*255)}`}function tBe(){let e=DI(this.opacity);return`${e===1?"rgb(":"rgba("}${__(this.r)}, ${__(this.g)}, ${__(this.b)}${e===1?")":`, ${e})`}`}function DI(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function __(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function b_(e){return e=__(e),(e<16?"0":"")+e.toString(16)}function rBe(e,t,r,i){return i<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new y1(e,t,r,i)}function nBe(e){if(e instanceof y1)return new y1(e.h,e.s,e.l,e.opacity);if(e instanceof Am||(e=L2(e)),!e)return new y1;if(e instanceof y1)return e;e=e.rgb();var t=e.r/255,r=e.g/255,i=e.b/255,n=Math.min(t,r,i),a=Math.max(t,r,i),o=NaN,s=a-n,l=(a+n)/2;return s?(t===a?o=(r-i)/s+(r0&&l<1?0:o,new y1(o,s,l,e.opacity)}function dE(e,t,r,i){return arguments.length===1?nBe(e):new y1(e,t,r,i==null?1:i)}function y1(e,t,r,i){this.h=+e,this.s=+t,this.l=+r,this.opacity=+i}function iBe(e){return e=(e||0)%360,e<0?e+360:e}function CI(e){return Math.max(0,Math.min(1,e||0))}function XK(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}var F2,w_,A4,cE,wm,Ger,Her,jer,Wer,$er,Yer,Xer,ZRe,FI=ps(()=>{EI();F2=.7,w_=1/F2,A4="\\s*([+-]?\\d+)\\s*",cE="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",wm="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Ger=/^#([0-9a-f]{3,8})$/,Her=new RegExp(`^rgb\\(${A4},${A4},${A4}\\)$`),jer=new RegExp(`^rgb\\(${wm},${wm},${wm}\\)$`),Wer=new RegExp(`^rgba\\(${A4},${A4},${A4},${cE}\\)$`),$er=new RegExp(`^rgba\\(${wm},${wm},${wm},${cE}\\)$`),Yer=new RegExp(`^hsl\\(${cE},${wm},${wm}\\)$`),Xer=new RegExp(`^hsla\\(${cE},${wm},${wm},${cE}\\)$`),ZRe={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};Py(Am,L2,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:KRe,formatHex:KRe,formatHex8:Zer,formatHsl:Ker,formatRgb:JRe,toString:JRe});Py(Mh,T4,D2(Am,{brighter(e){return e=e==null?w_:Math.pow(w_,e),new Mh(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?F2:Math.pow(F2,e),new Mh(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Mh(__(this.r),__(this.g),__(this.b),DI(this.opacity))},displayable(){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:eBe,formatHex:eBe,formatHex8:Jer,formatRgb:tBe,toString:tBe}));Py(y1,dE,D2(Am,{brighter(e){return e=e==null?w_:Math.pow(w_,e),new y1(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?F2:Math.pow(F2,e),new y1(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,i=r+(r<.5?r:1-r)*t,n=2*r-i;return new Mh(XK(e>=240?e-240:e+120,n,i),XK(e,n,i),XK(e<120?e+240:e-120,n,i),this.opacity)},clamp(){return new y1(iBe(this.h),CI(this.s),CI(this.l),DI(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let e=DI(this.opacity);return`${e===1?"hsl(":"hsla("}${iBe(this.h)}, ${CI(this.s)*100}%, ${CI(this.l)*100}%${e===1?")":`, ${e})`}`}}))});var LI,PI,ZK=ps(()=>{LI=Math.PI/180,PI=180/Math.PI});function fBe(e){if(e instanceof Tm)return new Tm(e.l,e.a,e.b,e.opacity);if(e instanceof zy)return cBe(e);e instanceof Mh||(e=hE(e));var t=eJ(e.r),r=eJ(e.g),i=eJ(e.b),n=KK((.2225045*t+.7168786*r+.0606169*i)/oBe),a,o;return t===r&&r===i?a=o=n:(a=KK((.4360747*t+.3850649*r+.1430804*i)/aBe),o=KK((.0139322*t+.0971045*r+.7141733*i)/sBe)),new Tm(116*n-16,500*(a-n),200*(n-o),e.opacity)}function S4(e,t,r,i){return arguments.length===1?fBe(e):new Tm(e,t,r,i==null?1:i)}function Tm(e,t,r,i){this.l=+e,this.a=+t,this.b=+r,this.opacity=+i}function KK(e){return e>Qer?Math.pow(e,1/3):e/uBe+lBe}function JK(e){return e>M4?e*e*e:uBe*(e-lBe)}function QK(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function eJ(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function etr(e){if(e instanceof zy)return new zy(e.h,e.c,e.l,e.opacity);if(e instanceof Tm||(e=fBe(e)),e.a===0&&e.b===0)return new zy(NaN,0{EI();FI();ZK();zI=18,aBe=.96422,oBe=1,sBe=.82521,lBe=4/29,M4=6/29,uBe=3*M4*M4,Qer=M4*M4*M4;Py(Tm,S4,D2(Am,{brighter(e){return new Tm(this.l+zI*(e==null?1:e),this.a,this.b,this.opacity)},darker(e){return new Tm(this.l-zI*(e==null?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,r=isNaN(this.b)?e:e-this.b/200;return t=aBe*JK(t),e=oBe*JK(e),r=sBe*JK(r),new Mh(QK(3.1338561*t-1.6168667*e-.4906146*r),QK(-.9787684*t+1.9161415*e+.033454*r),QK(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}}));Py(zy,pE,D2(Am,{brighter(e){return new zy(this.h,this.c,this.l+zI*(e==null?1:e),this.opacity)},darker(e){return new zy(this.h,this.c,this.l-zI*(e==null?1:e),this.opacity)},rgb(){return cBe(this).rgb()}}))});function ttr(e){if(e instanceof A_)return new A_(e.h,e.s,e.l,e.opacity);e instanceof Mh||(e=hE(e));var t=e.r/255,r=e.g/255,i=e.b/255,n=(vBe*i+dBe*t-pBe*r)/(vBe+dBe-pBe),a=i-n,o=(vE*(r-n)-rJ*a)/II,s=Math.sqrt(o*o+a*a)/(vE*n*(1-n)),l=s?Math.atan2(o,a)*PI-120:NaN;return new A_(l<0?l+360:l,s,n,e.opacity)}function E4(e,t,r,i){return arguments.length===1?ttr(e):new A_(e,t,r,i==null?1:i)}function A_(e,t,r,i){this.h=+e,this.s=+t,this.l=+r,this.opacity=+i}var mBe,tJ,rJ,II,vE,dBe,pBe,vBe,yBe=ps(()=>{EI();FI();ZK();mBe=-.14861,tJ=1.78277,rJ=-.29227,II=-.90649,vE=1.97294,dBe=vE*II,pBe=vE*tJ,vBe=tJ*rJ-II*mBe;Py(A_,E4,D2(Am,{brighter(e){return e=e==null?w_:Math.pow(w_,e),new A_(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?F2:Math.pow(F2,e),new A_(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=isNaN(this.h)?0:(this.h+120)*LI,t=+this.l,r=isNaN(this.s)?0:this.s*t*(1-t),i=Math.cos(e),n=Math.sin(e);return new Mh(255*(t+r*(mBe*i+tJ*n)),255*(t+r*(rJ*i+II*n)),255*(t+r*(vE*i)),this.opacity)}}))});var T_=ps(()=>{FI();hBe();yBe()});function iJ(e,t,r,i,n){var a=e*e,o=a*e;return((1-3*e+3*a-o)*t+(4-6*a+3*o)*r+(1+3*e+3*a-3*o)*i+o*n)/6}function RI(e){var t=e.length-1;return function(r){var i=r<=0?r=0:r>=1?(r=1,t-1):Math.floor(r*t),n=e[i],a=e[i+1],o=i>0?e[i-1]:2*n-a,s=i{});function qI(e){var t=e.length;return function(r){var i=Math.floor(((r%=1)<0?++r:r)*t),n=e[(i+t-1)%t],a=e[i%t],o=e[(i+1)%t],s=e[(i+2)%t];return iJ((r-i/t)*t,n,a,o,s)}}var nJ=ps(()=>{BI()});var k4,aJ=ps(()=>{k4=e=>()=>e});function gBe(e,t){return function(r){return e+r*t}}function rtr(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(i){return Math.pow(e+i*t,r)}}function P2(e,t){var r=t-e;return r?gBe(e,r>180||r<-180?r-360*Math.round(r/360):r):k4(isNaN(e)?t:e)}function xBe(e){return(e=+e)==1?bc:function(t,r){return r-t?rtr(t,r,e):k4(isNaN(t)?r:t)}}function bc(e,t){var r=t-e;return r?gBe(e,r):k4(isNaN(e)?t:e)}var M_=ps(()=>{aJ()});function bBe(e){return function(t){var r=t.length,i=new Array(r),n=new Array(r),a=new Array(r),o,s;for(o=0;o{T_();BI();nJ();M_();mE=(function e(t){var r=xBe(t);function i(n,a){var o=r((n=T4(n)).r,(a=T4(a)).r),s=r(n.g,a.g),l=r(n.b,a.b),u=bc(n.opacity,a.opacity);return function(f){return n.r=o(f),n.g=s(f),n.b=l(f),n.opacity=u(f),n+""}}return i.gamma=e,i})(1);_Be=bBe(RI),wBe=bBe(qI)});function C4(e,t){t||(t=[]);var r=e?Math.min(t.length,e.length):0,i=t.slice(),n;return function(a){for(n=0;n{});function ABe(e,t){return(OI(t)?C4:sJ)(e,t)}function sJ(e,t){var r=t?t.length:0,i=e?Math.min(r,e.length):0,n=new Array(i),a=new Array(r),o;for(o=0;o{yE();NI()});function VI(e,t){var r=new Date;return e=+e,t=+t,function(i){return r.setTime(e*(1-i)+t*i),r}}var uJ=ps(()=>{});function Od(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}var gE=ps(()=>{});function UI(e,t){var r={},i={},n;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(n in t)n in e?r[n]=z2(e[n],t[n]):i[n]=t[n];return function(a){for(n in r)i[n]=r[n](a);return i}}var fJ=ps(()=>{yE()});function itr(e){return function(){return e}}function ntr(e){return function(t){return e(t)+""}}function GI(e,t){var r=hJ.lastIndex=cJ.lastIndex=0,i,n,a,o=-1,s=[],l=[];for(e=e+"",t=t+"";(i=hJ.exec(e))&&(n=cJ.exec(t));)(a=n.index)>r&&(a=t.slice(r,a),s[o]?s[o]+=a:s[++o]=a),(i=i[0])===(n=n[0])?s[o]?s[o]+=n:s[++o]=n:(s[++o]=null,l.push({i:o,x:Od(i,n)})),r=cJ.lastIndex;return r{gE();hJ=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,cJ=new RegExp(hJ.source,"g")});function z2(e,t){var r=typeof t,i;return t==null||r==="boolean"?k4(t):(r==="number"?Od:r==="string"?(i=L2(t))?(t=i,mE):GI:t instanceof L2?mE:t instanceof Date?VI:OI(t)?C4:Array.isArray(t)?sJ:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?UI:Od)(e,t)}var yE=ps(()=>{T_();oJ();lJ();uJ();gE();fJ();dJ();aJ();NI()});function TBe(e){var t=e.length;return function(r){return e[Math.max(0,Math.min(t-1,Math.floor(r*t)))]}}var MBe=ps(()=>{});function SBe(e,t){var r=P2(+e,+t);return function(i){var n=r(i);return n-360*Math.floor(n/360)}}var EBe=ps(()=>{M_()});function kBe(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}var CBe=ps(()=>{});function pJ(e,t,r,i,n,a){var o,s,l;return(o=Math.sqrt(e*e+t*t))&&(e/=o,t/=o),(l=e*r+t*i)&&(r-=e*l,i-=t*l),(s=Math.sqrt(r*r+i*i))&&(r/=s,i/=s,l/=s),e*i{DBe=180/Math.PI,HI={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1}});function LBe(e){let t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?HI:pJ(t.a,t.b,t.c,t.d,t.e,t.f)}function PBe(e){return e==null?HI:(jI||(jI=document.createElementNS("http://www.w3.org/2000/svg","g")),jI.setAttribute("transform",e),(e=jI.transform.baseVal.consolidate())?(e=e.matrix,pJ(e.a,e.b,e.c,e.d,e.e,e.f)):HI)}var jI,zBe=ps(()=>{FBe()});function IBe(e,t,r,i){function n(u){return u.length?u.pop()+" ":""}function a(u,f,c,h,d,p){if(u!==c||f!==h){var v=d.push("translate(",null,t,null,r);p.push({i:v-4,x:Od(u,c)},{i:v-2,x:Od(f,h)})}else(c||h)&&d.push("translate("+c+t+h+r)}function o(u,f,c,h){u!==f?(u-f>180?f+=360:f-u>180&&(u+=360),h.push({i:c.push(n(c)+"rotate(",null,i)-2,x:Od(u,f)})):f&&c.push(n(c)+"rotate("+f+i)}function s(u,f,c,h){u!==f?h.push({i:c.push(n(c)+"skewX(",null,i)-2,x:Od(u,f)}):f&&c.push(n(c)+"skewX("+f+i)}function l(u,f,c,h,d,p){if(u!==c||f!==h){var v=d.push(n(d)+"scale(",null,",",null,")");p.push({i:v-4,x:Od(u,c)},{i:v-2,x:Od(f,h)})}else(c!==1||h!==1)&&d.push(n(d)+"scale("+c+","+h+")")}return function(u,f){var c=[],h=[];return u=e(u),f=e(f),a(u.translateX,u.translateY,f.translateX,f.translateY,c,h),o(u.rotate,f.rotate,c,h),s(u.skewX,f.skewX,c,h),l(u.scaleX,u.scaleY,f.scaleX,f.scaleY,c,h),u=f=null,function(d){for(var p=-1,v=h.length,y;++p{gE();zBe();RBe=IBe(LBe,"px, ","px)","deg)"),BBe=IBe(PBe,", ",")",")")});function OBe(e){return((e=Math.exp(e))+1/e)/2}function otr(e){return((e=Math.exp(e))-1/e)/2}function str(e){return((e=Math.exp(2*e))-1)/(e+1)}var atr,NBe,VBe=ps(()=>{atr=1e-12;NBe=(function e(t,r,i){function n(a,o){var s=a[0],l=a[1],u=a[2],f=o[0],c=o[1],h=o[2],d=f-s,p=c-l,v=d*d+p*p,y,m;if(v{T_();M_();GBe=UBe(P2),HBe=UBe(bc)});function vJ(e,t){var r=bc((e=S4(e)).l,(t=S4(t)).l),i=bc(e.a,t.a),n=bc(e.b,t.b),a=bc(e.opacity,t.opacity);return function(o){return e.l=r(o),e.a=i(o),e.b=n(o),e.opacity=a(o),e+""}}var WBe=ps(()=>{T_();M_()});function $Be(e){return function(t,r){var i=e((t=pE(t)).h,(r=pE(r)).h),n=bc(t.c,r.c),a=bc(t.l,r.l),o=bc(t.opacity,r.opacity);return function(s){return t.h=i(s),t.c=n(s),t.l=a(s),t.opacity=o(s),t+""}}}var YBe,XBe,ZBe=ps(()=>{T_();M_();YBe=$Be(P2),XBe=$Be(bc)});function KBe(e){return(function t(r){r=+r;function i(n,a){var o=e((n=E4(n)).h,(a=E4(a)).h),s=bc(n.s,a.s),l=bc(n.l,a.l),u=bc(n.opacity,a.opacity);return function(f){return n.h=o(f),n.s=s(f),n.l=l(Math.pow(f,r)),n.opacity=u(f),n+""}}return i.gamma=t,i})(1)}var JBe,QBe,e7e=ps(()=>{T_();M_();JBe=KBe(P2),QBe=KBe(bc)});function mJ(e,t){t===void 0&&(t=e,e=z2);for(var r=0,i=t.length-1,n=t[0],a=new Array(i<0?0:i);r{yE()});function r7e(e,t){for(var r=new Array(t),i=0;i{});var S_={};Fl(S_,{interpolate:()=>z2,interpolateArray:()=>ABe,interpolateBasis:()=>RI,interpolateBasisClosed:()=>qI,interpolateCubehelix:()=>JBe,interpolateCubehelixLong:()=>QBe,interpolateDate:()=>VI,interpolateDiscrete:()=>TBe,interpolateHcl:()=>YBe,interpolateHclLong:()=>XBe,interpolateHsl:()=>GBe,interpolateHslLong:()=>HBe,interpolateHue:()=>SBe,interpolateLab:()=>vJ,interpolateNumber:()=>Od,interpolateNumberArray:()=>C4,interpolateObject:()=>UI,interpolateRgb:()=>mE,interpolateRgbBasis:()=>_Be,interpolateRgbBasisClosed:()=>wBe,interpolateRound:()=>kBe,interpolateString:()=>GI,interpolateTransformCss:()=>RBe,interpolateTransformSvg:()=>BBe,interpolateZoom:()=>NBe,piecewise:()=>mJ,quantize:()=>r7e});var E_=ps(()=>{yE();lJ();BI();nJ();uJ();MBe();EBe();gE();NI();fJ();CBe();dJ();qBe();VBe();oJ();jBe();WBe();ZBe();e7e();t7e();i7e()});var WI=K((zKr,n7e)=>{"use strict";var ltr=Is(),utr=wo();n7e.exports=function(t,r,i,n,a){var o=r.data.data,s=o.i,l=a||o.color;if(s>=0){r.i=o.i;var u=i.marker;u.pattern?(!u.colors||!u.pattern.shape)&&(u.color=l,r.color=l):(u.color=l,r.color=l),ltr.pointStyle(t,i,n,r)}else utr.fill(t,l)}});var yJ=K((IKr,u7e)=>{"use strict";var a7e=No(),o7e=wo(),s7e=St(),ftr=E0().resizeText,ctr=WI();function htr(e){var t=e._fullLayout._sunburstlayer.selectAll(".trace");ftr(e,t,"sunburst"),t.each(function(r){var i=a7e.select(this),n=r[0],a=n.trace;i.style("opacity",a.opacity),i.selectAll("path.surface").each(function(o){a7e.select(this).call(l7e,o,a,e)})})}function l7e(e,t,r,i){var n=t.data.data,a=!t.children,o=n.i,s=s7e.castOption(r,o,"marker.line.color")||o7e.defaultLine,l=s7e.castOption(r,o,"marker.line.width")||0;e.call(ctr,t,r,i).style("stroke-width",l).call(o7e.stroke,s).style("opacity",a?r.leaf.opacity:null)}u7e.exports={style:htr,styleOne:l7e}});var Iy=K(Gl=>{"use strict";var k_=St(),dtr=wo(),ptr=Yv(),f7e=$g();Gl.findEntryWithLevel=function(e,t){var r;return t&&e.eachAfter(function(i){if(Gl.getPtId(i)===t)return r=i.copy()}),r||e};Gl.findEntryWithChild=function(e,t){var r;return e.eachAfter(function(i){for(var n=i.children||[],a=0;a0)};Gl.getMaxDepth=function(e){return e.maxdepth>=0?e.maxdepth:1/0};Gl.isHeader=function(e,t){return!(Gl.isLeaf(e)||e.depth===t._maxDepth-1)};function c7e(e){return e.data.data.pid}Gl.getParent=function(e,t){return Gl.findEntryWithLevel(e,c7e(t))};Gl.listPath=function(e,t){var r=e.parent;if(!r)return[];var i=t?[r.data[t]]:[r];return Gl.listPath(r,t).concat(i)};Gl.getPath=function(e){return Gl.listPath(e,"label").join("/")+"/"};Gl.formatValue=f7e.formatPieValue;Gl.formatPercent=function(e,t){var r=k_.formatPercent(e,0);return r==="0%"&&(r=f7e.formatPiePercent(e,t)),r}});var _E=K((BKr,p7e)=>{"use strict";var D4=No(),h7e=Ho(),ytr=ud().appendArrayPointValue,xE=Gf(),d7e=St(),gtr=Aw(),hh=Iy(),xtr=$g(),btr=xtr.formatPieValue;p7e.exports=function(t,r,i,n,a){var o=n[0],s=o.trace,l=o.hierarchy,u=s.type==="sunburst",f=s.type==="treemap"||s.type==="icicle";"_hasHoverLabel"in s||(s._hasHoverLabel=!1),"_hasHoverEvent"in s||(s._hasHoverEvent=!1);var c=function(p){var v=i._fullLayout;if(!(i._dragging||v.hovermode===!1)){var y=i._fullData[s.index],m=p.data.data,w=m.i,_=hh.isHierarchyRoot(p),b=hh.getParent(l,p),M=hh.getValue(p),x=function(X){return d7e.castOption(y,w,X)},T=x("hovertemplate"),A=xE.castHoverinfo(y,v,w),g=v.separators,E;if(T||A&&A!=="none"&&A!=="skip"){var S,C;u&&(S=o.cx+p.pxmid[0]*(1-p.rInscribed),C=o.cy+p.pxmid[1]*(1-p.rInscribed)),f&&(S=p._hoverX,C=p._hoverY);var k={},D=[],F=[],P=function(X){return D.indexOf(X)!==-1};A&&(D=A==="all"?y._module.attributes.hoverinfo.flags:A.split("+")),k.label=m.label,P("label")&&k.label&&F.push(k.label),m.hasOwnProperty("v")&&(k.value=m.v,k.valueLabel=btr(k.value,g),P("value")&&F.push(k.valueLabel)),k.currentPath=p.currentPath=hh.getPath(p.data),P("current path")&&!_&&F.push(k.currentPath);var I,L=[],z=function(){L.indexOf(I)===-1&&(F.push(I),L.push(I))};k.percentParent=p.percentParent=M/hh.getValue(b),k.parent=p.parentString=hh.getPtLabel(b),P("percent parent")&&(I=hh.formatPercent(k.percentParent,g)+" of "+k.parent,z()),k.percentEntry=p.percentEntry=M/hh.getValue(r),k.entry=p.entry=hh.getPtLabel(r),P("percent entry")&&!_&&!p.onPathbar&&(I=hh.formatPercent(k.percentEntry,g)+" of "+k.entry,z()),k.percentRoot=p.percentRoot=M/hh.getValue(l),k.root=p.root=hh.getPtLabel(l),P("percent root")&&!_&&(I=hh.formatPercent(k.percentRoot,g)+" of "+k.root,z()),k.text=x("hovertext")||x("text"),P("text")&&(I=k.text,d7e.isValidTextValue(I)&&F.push(I)),E=[bE(p,y,a.eventDataKeys)];var B={trace:y,y:C,_x0:p._x0,_x1:p._x1,_y0:p._y0,_y1:p._y1,text:F.join("
"),name:T||P("name")?y.name:void 0,color:x("hoverlabel.bgcolor")||m.color,borderColor:x("hoverlabel.bordercolor"),fontFamily:x("hoverlabel.font.family"),fontSize:x("hoverlabel.font.size"),fontColor:x("hoverlabel.font.color"),fontWeight:x("hoverlabel.font.weight"),fontStyle:x("hoverlabel.font.style"),fontVariant:x("hoverlabel.font.variant"),nameLength:x("hoverlabel.namelength"),textAlign:x("hoverlabel.align"),hovertemplate:T,hovertemplateLabels:k,eventData:E};u&&(B.x0=S-p.rInscribed*p.rpx1,B.x1=S+p.rInscribed*p.rpx1,B.idealAlign=p.pxmid[0]<0?"left":"right"),f&&(B.x=S,B.idealAlign=S<0?"left":"right");var O=[];xE.loneHover(B,{container:v._hoverlayer.node(),outerContainer:v._paper.node(),gd:i,inOut_bbox:O}),E[0].bbox=O[0],s._hasHoverLabel=!0}if(f){var W=t.select("path.surface");a.styleOne(W,p,y,i,{hovered:!0})}s._hasHoverEvent=!0,i.emit("plotly_hover",{points:E||[bE(p,y,a.eventDataKeys)],event:D4.event})}},h=function(p){var v=i._fullLayout,y=i._fullData[s.index],m=D4.select(this).datum();if(s._hasHoverEvent&&(p.originalEvent=D4.event,i.emit("plotly_unhover",{points:[bE(m,y,a.eventDataKeys)],event:D4.event}),s._hasHoverEvent=!1),s._hasHoverLabel&&(xE.loneUnhover(v._hoverlayer.node()),s._hasHoverLabel=!1),f){var w=t.select("path.surface");a.styleOne(w,m,y,i,{hovered:!1})}},d=function(p){var v=i._fullLayout,y=i._fullData[s.index],m=u&&(hh.isHierarchyRoot(p)||hh.isLeaf(p)),w=hh.getPtId(p),_=hh.isEntry(p)?hh.findEntryWithChild(l,w):hh.findEntryWithLevel(l,w),b=hh.getPtId(_),M={points:[bE(p,y,a.eventDataKeys)],event:D4.event};m||(M.nextLevel=b);var x=gtr.triggerHandler(i,"plotly_"+s.type+"click",M);if(x!==!1&&v.hovermode&&(i._hoverdata=[bE(p,y,a.eventDataKeys)],xE.click(i,D4.event)),!m&&x!==!1&&!i._dragging&&!i._transitioning){h7e.call("_storeDirectGUIEdit",y,v._tracePreGUI[y.uid],{level:y.level});var T={data:[{level:b}],traces:[s.index]},A={frame:{redraw:!1,duration:a.transitionTime},transition:{duration:a.transitionTime,easing:a.transitionEasing},mode:"immediate",fromcurrent:!0};xE.loneUnhover(v._hoverlayer.node()),h7e.call("animate",i,T,A)}};t.on("mouseover",c),t.on("mouseout",h),t.on("click",d)};function bE(e,t,r){for(var i=e.data.data,n={curveNumber:t.index,pointNumber:i.i,data:t._input,fullData:t},a=0;a{"use strict";var wE=No(),_tr=lE(),g1=(E_(),or(S_)).interpolate,v7e=Is(),D0=St(),wtr=Du(),x7e=E0(),m7e=x7e.recordMinTextSize,Atr=x7e.clearMinTextSize,b7e=MI(),Ttr=$g().getRotationAngle,Mtr=b7e.computeTransform,Str=b7e.transformInsideText,Etr=yJ().styleOne,ktr=tv().resizeText,Ctr=_E(),gJ=($K(),or(WK)),du=Iy();$I.plot=function(e,t,r,i){var n=e._fullLayout,a=n._sunburstlayer,o,s,l=!r,u=!n.uniformtext.mode&&du.hasTransition(r);if(Atr("sunburst",n),o=a.selectAll("g.trace.sunburst").data(t,function(c){return c[0].trace.uid}),o.enter().append("g").classed("trace",!0).classed("sunburst",!0).attr("stroke-linejoin","round"),o.order(),u){i&&(s=i());var f=wE.transition().duration(r.duration).ease(r.easing).each("end",function(){s&&s()}).each("interrupt",function(){s&&s()});f.each(function(){a.selectAll("g.trace").each(function(c){y7e(e,c,this,r)})})}else o.each(function(c){y7e(e,c,this,r)}),n.uniformtext.mode&&ktr(e,n._sunburstlayer.selectAll(".trace"),"sunburst");l&&o.exit().remove()};function y7e(e,t,r,i){var n=e._context.staticPlot,a=e._fullLayout,o=!a.uniformtext.mode&&du.hasTransition(i),s=wE.select(r),l=s.selectAll("g.slice"),u=t[0],f=u.trace,c=u.hierarchy,h=du.findEntryWithLevel(c,f.level),d=du.getMaxDepth(f),p=a._size,v=f.domain,y=p.w*(v.x[1]-v.x[0]),m=p.h*(v.y[1]-v.y[0]),w=.5*Math.min(y,m),_=u.cx=p.l+p.w*(v.x[1]+v.x[0])/2,b=u.cy=p.t+p.h*(1-v.y[0])-m/2;if(!h)return l.remove();var M=null,x={};o&&l.each(function(H){x[du.getPtId(H)]={rpx0:H.rpx0,rpx1:H.rpx1,x0:H.x0,x1:H.x1,transform:H.transform},!M&&du.isEntry(H)&&(M=H)});var T=Dtr(h).descendants(),A=h.height+1,g=0,E=d;u.hasMultipleRoots&&du.isHierarchyRoot(h)&&(T=T.slice(1),A-=1,g=1,E+=1),T=T.filter(function(H){return H.y1<=E});var S=Ttr(f.rotation);S&&T.forEach(function(H){H.x0+=S,H.x1+=S});var C=Math.min(A,d),k=function(H){return(H-g)/C*w},D=function(H,q){return[H*Math.cos(q),-H*Math.sin(q)]},F=function(H){return D0.pathAnnulus(H.rpx0,H.rpx1,H.x0,H.x1,_,b)},P=function(H){return _+g7e(H)[0]*(H.transform.rCenter||0)+(H.transform.x||0)},I=function(H){return b+g7e(H)[1]*(H.transform.rCenter||0)+(H.transform.y||0)};l=l.data(T,du.getPtId),l.enter().append("g").classed("slice",!0),o?l.exit().transition().each(function(){var H=wE.select(this),q=H.select("path.surface");q.transition().attrTween("d",function(N){var U=O(N);return function(J){return F(U(J))}});var Q=H.select("g.slicetext");Q.attr("opacity",0)}).remove():l.exit().remove(),l.order();var L=null;if(o&&M){var z=du.getPtId(M);l.each(function(H){L===null&&du.getPtId(H)===z&&(L=H.x1)})}var B=l;o&&(B=B.transition().each("end",function(){var H=wE.select(this);du.setSliceCursor(H,e,{hideOnRoot:!0,hideOnLeaves:!0,isTransitioning:!1})})),B.each(function(H){var q=wE.select(this),Q=D0.ensureSingle(q,"path","surface",function(ie){ie.style("pointer-events",n?"none":"all")});H.rpx0=k(H.y0),H.rpx1=k(H.y1),H.xmid=(H.x0+H.x1)/2,H.pxmid=D(H.rpx1,H.xmid),H.midangle=-(H.xmid-Math.PI/2),H.startangle=-(H.x0-Math.PI/2),H.stopangle=-(H.x1-Math.PI/2),H.halfangle=.5*Math.min(D0.angleDelta(H.x0,H.x1)||Math.PI,Math.PI),H.ring=1-H.rpx0/H.rpx1,H.rInscribed=Ftr(H,f),o?Q.transition().attrTween("d",function(ie){var re=W(ie);return function(de){return F(re(de))}}):Q.attr("d",F),q.call(Ctr,h,e,t,{eventDataKeys:gJ.eventDataKeys,transitionTime:gJ.CLICK_TRANSITION_TIME,transitionEasing:gJ.CLICK_TRANSITION_EASING}).call(du.setSliceCursor,e,{hideOnRoot:!0,hideOnLeaves:!0,isTransitioning:e._transitioning}),Q.call(Etr,H,f,e);var N=D0.ensureSingle(q,"g","slicetext"),U=D0.ensureSingle(N,"text","",function(ie){ie.attr("data-notex",1)}),J=D0.ensureUniformFontSize(e,du.determineTextFont(f,H,a.font));U.text($I.formatSliceLabel(H,h,f,t,a)).classed("slicetext",!0).attr("text-anchor","middle").call(v7e.font,J).call(wtr.convertToTspans,e);var j=v7e.bBox(U.node());H.transform=Str(j,H,u),H.transform.targetX=P(H),H.transform.targetY=I(H);var $=function(ie,re){var de=ie.transform;return Mtr(de,re),de.fontSize=J.size,m7e(f.type,de,a),D0.getTextTransform(de)};o?U.transition().attrTween("transform",function(ie){var re=X(ie);return function(de){return $(re(de),j)}}):U.attr("transform",$(H,j))});function O(H){var q=du.getPtId(H),Q=x[q],N=x[du.getPtId(h)],U;if(N){var J=(H.x1>N.x1?2*Math.PI:0)+S;U=H.rpx1L?2*Math.PI:0)+S;Q={x0:U,x1:U}}else Q={rpx0:w,rpx1:w},D0.extendFlat(Q,Z(H));else Q={rpx0:0,rpx1:0};else Q={x0:S,x1:S};return g1(Q,N)}function X(H){var q=x[du.getPtId(H)],Q,N=H.transform;if(q)Q=q;else if(Q={rpx1:H.rpx1,transform:{textPosAngle:N.textPosAngle,scale:0,rotate:N.rotate,rCenter:N.rCenter,x:N.x,y:N.y}},M)if(H.parent)if(L){var U=H.x1>L?2*Math.PI:0;Q.x0=Q.x1=U}else D0.extendFlat(Q,Z(H));else Q.x0=Q.x1=S;else Q.x0=Q.x1=S;var J=g1(Q.transform.textPosAngle,H.transform.textPosAngle),j=g1(Q.rpx1,H.rpx1),$=g1(Q.x0,H.x0),ie=g1(Q.x1,H.x1),re=g1(Q.transform.scale,N.scale),de=g1(Q.transform.rotate,N.rotate),me=N.rCenter===0?3:Q.transform.rCenter===0?1/3:1,ze=g1(Q.transform.rCenter,N.rCenter),ke=function(le){return ze(Math.pow(le,me))};return function(le){var te=j(le),Ee=$(le),we=ie(le),oe=ke(le),Y=D(te,(Ee+we)/2),ne=J(le),ye={pxmid:Y,rpx1:te,transform:{textPosAngle:ne,rCenter:oe,x:N.x,y:N.y}};return m7e(f.type,N,a),{transform:{targetX:P(ye),targetY:I(ye),scale:re(le),rotate:de(le),rCenter:oe}}}}function Z(H){var q=H.parent,Q=x[du.getPtId(q)],N={};if(Q){var U=q.children,J=U.indexOf(H),j=U.length,$=g1(Q.x0,Q.x1);N.x0=$(J/j),N.x1=$(J/j)}else N.x0=N.x1=0;return N}}function Dtr(e){return _tr.partition().size([2*Math.PI,e.height+1])(e)}$I.formatSliceLabel=function(e,t,r,i,n){var a=r.texttemplate,o=r.textinfo;if(!a&&(!o||o==="none"))return"";var s=n.separators,l=i[0],u=e.data.data,f=l.hierarchy,c=du.isHierarchyRoot(e),h=du.getParent(f,e),d=du.getValue(e);if(!a){var p=o.split("+"),v=function(g){return p.indexOf(g)!==-1},y=[],m;if(v("label")&&u.label&&y.push(u.label),u.hasOwnProperty("v")&&v("value")&&y.push(du.formatValue(u.v,s)),!c){v("current path")&&y.push(du.getPath(e.data));var w=0;v("percent parent")&&w++,v("percent entry")&&w++,v("percent root")&&w++;var _=w>1;if(w){var b,M=function(g){m=du.formatPercent(b,s),_&&(m+=" of "+g),y.push(m)};v("percent parent")&&!c&&(b=d/du.getValue(h),M("parent")),v("percent entry")&&(b=d/du.getValue(t),M("entry")),v("percent root")&&(b=d/du.getValue(f),M("root"))}}return v("text")&&(m=D0.castOption(r,u.i,"text"),D0.isValidTextValue(m)&&y.push(m)),y.join("
")}var x=D0.castOption(r,u.i,"texttemplate");if(!x)return"";var T={};u.label&&(T.label=u.label),u.hasOwnProperty("v")&&(T.value=u.v,T.valueLabel=du.formatValue(u.v,s)),T.currentPath=du.getPath(e.data),c||(T.percentParent=d/du.getValue(h),T.percentParentLabel=du.formatPercent(T.percentParent,s),T.parent=du.getPtLabel(h)),T.percentEntry=d/du.getValue(t),T.percentEntryLabel=du.formatPercent(T.percentEntry,s),T.entry=du.getPtLabel(t),T.percentRoot=d/du.getValue(f),T.percentRootLabel=du.formatPercent(T.percentRoot,s),T.root=du.getPtLabel(f),u.hasOwnProperty("color")&&(T.color=u.color);var A=D0.castOption(r,u.i,"text");return(D0.isValidTextValue(A)||A==="")&&(T.text=A),T.customdata=D0.castOption(r,u.i,"customdata"),D0.texttemplateString({data:[T,r._meta],fallback:r.texttemplatefallback,labels:T,locale:n._d3locale,template:x})};function Ftr(e){return e.rpx0===0&&D0.isFullCircle([e.x0,e.x1])?1:Math.max(0,Math.min(1/(1+1/Math.sin(e.halfangle)),e.ring/2))}function g7e(e){return Ltr(e.rpx1,e.transform.textPosAngle)}function Ltr(e,t){return[e*Math.sin(t),-e*Math.cos(t)]}});var w7e=K((OKr,_7e)=>{"use strict";_7e.exports={moduleType:"trace",name:"sunburst",basePlotModule:RRe(),categories:[],animatable:!0,attributes:sE(),layoutAttributes:YK(),supplyDefaults:HRe(),supplyLayoutDefaults:WRe(),calc:fE().calc,crossTraceCalc:fE().crossTraceCalc,plot:YI().plot,style:yJ().style,colorbar:e0(),meta:{}}});var T7e=K((NKr,A7e)=>{"use strict";A7e.exports=w7e()});var S7e=K(F4=>{"use strict";var M7e=yf();F4.name="treemap";F4.plot=function(e,t,r,i){M7e.plotBasePlot(F4.name,e,t,r,i)};F4.clean=function(e,t,r,i){M7e.cleanBasePlot(F4.name,e,t,r,i)}});var C_={};Fl(C_,{CLICK_TRANSITION_EASING:()=>ztr,CLICK_TRANSITION_TIME:()=>Ptr,eventDataKeys:()=>Itr,gapWithPathbar:()=>Rtr});var Ptr,ztr,Itr,Rtr,D_=ps(()=>{"use strict";Ptr=750,ztr="poly",Itr=["currentPath","root","entry","percentRoot","percentEntry","percentParent"],Rtr=1});var XI=K((UKr,C7e)=>{"use strict";var{hovertemplateAttrs:Btr,texttemplateAttrs:qtr,templatefallbackAttrs:E7e}=gu(),Otr=Wu(),Ntr=kf().attributes,F_=g_(),mv=sE(),k7e=(D_(),or(C_)),xJ=Os().extendFlat,Vtr=gh().pattern;C7e.exports={labels:mv.labels,parents:mv.parents,values:mv.values,branchvalues:mv.branchvalues,count:mv.count,level:mv.level,maxdepth:mv.maxdepth,tiling:{packing:{valType:"enumerated",values:["squarify","binary","dice","slice","slice-dice","dice-slice"],dflt:"squarify",editType:"plot"},squarifyratio:{valType:"number",min:1,dflt:1,editType:"plot"},flip:{valType:"flaglist",flags:["x","y"],dflt:"",editType:"plot"},pad:{valType:"number",min:0,dflt:3,editType:"plot"},editType:"calc"},marker:xJ({pad:{t:{valType:"number",min:0,editType:"plot"},l:{valType:"number",min:0,editType:"plot"},r:{valType:"number",min:0,editType:"plot"},b:{valType:"number",min:0,editType:"plot"},editType:"calc"},colors:mv.marker.colors,pattern:Vtr,depthfade:{valType:"enumerated",values:[!0,!1,"reversed"],editType:"style"},line:mv.marker.line,cornerradius:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"calc"},Otr("marker",{colorAttr:"colors",anim:!1})),pathbar:{visible:{valType:"boolean",dflt:!0,editType:"plot"},side:{valType:"enumerated",values:["top","bottom"],dflt:"top",editType:"plot"},edgeshape:{valType:"enumerated",values:[">","<","|","/","\\"],dflt:">",editType:"plot"},thickness:{valType:"number",min:12,editType:"plot"},textfont:xJ({},F_.textfont,{}),editType:"calc"},text:F_.text,textinfo:mv.textinfo,texttemplate:qtr({editType:"plot"},{keys:k7e.eventDataKeys.concat(["label","value"])}),texttemplatefallback:E7e({editType:"plot"}),hovertext:F_.hovertext,hoverinfo:mv.hoverinfo,hovertemplate:Btr({},{keys:k7e.eventDataKeys}),hovertemplatefallback:E7e(),textfont:F_.textfont,insidetextfont:F_.insidetextfont,outsidetextfont:xJ({},F_.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:F_.sort,root:mv.root,domain:Ntr({name:"treemap",trace:!0,editType:"calc"})}});var bJ=K((GKr,D7e)=>{"use strict";D7e.exports={treemapcolorway:{valType:"colorlist",editType:"calc"},extendtreemapcolors:{valType:"boolean",dflt:!0,editType:"calc"}}});var z7e=K((HKr,P7e)=>{"use strict";var F7e=St(),Utr=XI(),Gtr=wo(),Htr=kf().defaults,jtr=cp().handleText,Wtr=(i2(),or(r2)).TEXTPAD,$tr=x_().handleMarkerDefaults,L7e=gf(),Ytr=L7e.hasColorscale,Xtr=L7e.handleDefaults;P7e.exports=function(t,r,i,n){function a(y,m){return F7e.coerce(t,r,Utr,y,m)}var o=a("labels"),s=a("parents");if(!o||!o.length||!s||!s.length){r.visible=!1;return}var l=a("values");l&&l.length?a("branchvalues"):a("count"),a("level"),a("maxdepth");var u=a("tiling.packing");u==="squarify"&&a("tiling.squarifyratio"),a("tiling.flip"),a("tiling.pad");var f=a("text");a("texttemplate"),a("texttemplatefallback"),r.texttemplate||a("textinfo",F7e.isArrayOrTypedArray(f)?"text+label":"label"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback");var c=a("pathbar.visible"),h="auto";jtr(t,r,n,a,h,{hasPathbar:c,moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1}),a("textposition");var d=r.textposition.indexOf("bottom")!==-1;$tr(t,r,n,a);var p=r._hasColorscale=Ytr(t,"marker","colors")||(t.marker||{}).coloraxis;p?Xtr(t,r,n,a,{prefix:"marker.",cLetter:"c"}):a("marker.depthfade",!(r.marker.colors||[]).length);var v=r.textfont.size*2;a("marker.pad.t",d?v/4:v),a("marker.pad.l",v/4),a("marker.pad.r",v/4),a("marker.pad.b",d?v:v/4),a("marker.cornerradius"),r._hovered={marker:{line:{width:2,color:Gtr.contrast(n.paper_bgcolor)}}},c&&(a("pathbar.thickness",r.pathbar.textfont.size+2*Wtr),a("pathbar.side"),a("pathbar.edgeshape")),a("sort"),a("root.color"),Htr(r,n,a),r._length=null}});var R7e=K((jKr,I7e)=>{"use strict";var Ztr=St(),Ktr=bJ();I7e.exports=function(t,r){function i(n,a){return Ztr.coerce(t,r,Ktr,n,a)}i("treemapcolorway",r.colorway),i("extendtreemapcolors")}});var wJ=K(_J=>{"use strict";var B7e=fE();_J.calc=function(e,t){return B7e.calc(e,t)};_J.crossTraceCalc=function(e){return B7e._runCrossTraceCalc("treemap",e)}});var AJ=K(($Kr,q7e)=>{"use strict";q7e.exports=function e(t,r,i){var n;i.swapXY&&(n=t.x0,t.x0=t.y0,t.y0=n,n=t.x1,t.x1=t.y1,t.y1=n),i.flipX&&(n=t.x0,t.x0=r[0]-t.x1,t.x1=r[0]-n),i.flipY&&(n=t.y0,t.y0=r[1]-t.y1,t.y1=r[1]-n);var a=t.children;if(a)for(var o=0;o{"use strict";var L4=lE(),Jtr=AJ();O7e.exports=function(t,r,i){var n=i.flipX,a=i.flipY,o=i.packing==="dice-slice",s=i.pad[a?"bottom":"top"],l=i.pad[n?"right":"left"],u=i.pad[n?"left":"right"],f=i.pad[a?"top":"bottom"],c;o&&(c=l,l=s,s=c,c=u,u=f,f=c);var h=L4.treemap().tile(Qtr(i.packing,i.squarifyratio)).paddingInner(i.pad.inner).paddingLeft(l).paddingRight(u).paddingTop(s).paddingBottom(f).size(o?[r[1],r[0]]:r)(t);return(o||n||a)&&Jtr(h,r,{swapXY:o,flipX:n,flipY:a}),h};function Qtr(e,t){switch(e){case"squarify":return L4.treemapSquarify.ratio(t);case"binary":return L4.treemapBinary;case"dice":return L4.treemapDice;case"slice":return L4.treemapSlice;default:return L4.treemapSliceDice}}});var ZI=K((XKr,G7e)=>{"use strict";var N7e=No(),P4=wo(),V7e=St(),MJ=Iy(),err=E0().resizeText,trr=WI();function rrr(e){var t=e._fullLayout._treemaplayer.selectAll(".trace");err(e,t,"treemap"),t.each(function(r){var i=N7e.select(this),n=r[0],a=n.trace;i.style("opacity",a.opacity),i.selectAll("path.surface").each(function(o){N7e.select(this).call(U7e,o,a,e,{hovered:!1})})})}function U7e(e,t,r,i,n){var a=(n||{}).hovered,o=t.data.data,s=o.i,l,u,f=o.color,c=MJ.isHierarchyRoot(t),h=1;if(a)l=r._hovered.marker.line.color,u=r._hovered.marker.line.width;else if(c&&f===r.root.color)h=100,l="rgba(0,0,0,0)",u=0;else if(l=V7e.castOption(r,s,"marker.line.color")||P4.defaultLine,u=V7e.castOption(r,s,"marker.line.width")||0,!r._hasColorscale&&!t.onPathbar){var d=r.marker.depthfade;if(d){var p=P4.combine(P4.addOpacity(r._backgroundColor,.75),f),v;if(d===!0){var y=MJ.getMaxDepth(r);isFinite(y)?MJ.isLeaf(t)?v=0:v=r._maxVisibleLayers-(t.data.depth-r._entryDepth):v=t.data.height+1}else v=t.data.depth-r._entryDepth,r._atRootLevel||v++;if(v>0)for(var m=0;m{"use strict";var H7e=No(),KI=St(),j7e=Is(),irr=Du(),nrr=TJ(),W7e=ZI().styleOne,SJ=(D_(),or(C_)),z4=Iy(),arr=_E(),EJ=!0;$7e.exports=function(t,r,i,n,a){var o=a.barDifY,s=a.width,l=a.height,u=a.viewX,f=a.viewY,c=a.pathSlice,h=a.toMoveInsideSlice,d=a.strTransform,p=a.hasTransition,v=a.handleSlicesExit,y=a.makeUpdateSliceInterpolator,m=a.makeUpdateTextInterpolator,w={},_=t._context.staticPlot,b=t._fullLayout,M=r[0],x=M.trace,T=M.hierarchy,A=s/x._entryDepth,g=z4.listPath(i.data,"id"),E=nrr(T.copy(),[s,l],{packing:"dice",pad:{inner:0,top:0,left:0,right:0,bottom:0}}).descendants();E=E.filter(function(C){var k=g.indexOf(C.data.id);return k===-1?!1:(C.x0=A*k,C.x1=A*(k+1),C.y0=o,C.y1=o+l,C.onPathbar=!0,!0)}),E.reverse(),n=n.data(E,z4.getPtId),n.enter().append("g").classed("pathbar",!0),v(n,EJ,w,[s,l],c),n.order();var S=n;p&&(S=S.transition().each("end",function(){var C=H7e.select(this);z4.setSliceCursor(C,t,{hideOnRoot:!1,hideOnLeaves:!1,isTransitioning:!1})})),S.each(function(C){C._x0=u(C.x0),C._x1=u(C.x1),C._y0=f(C.y0),C._y1=f(C.y1),C._hoverX=u(C.x1-Math.min(s,l)/2),C._hoverY=f(C.y1-l/2);var k=H7e.select(this),D=KI.ensureSingle(k,"path","surface",function(L){L.style("pointer-events",_?"none":"all")});p?D.transition().attrTween("d",function(L){var z=y(L,EJ,w,[s,l]);return function(B){return c(z(B))}}):D.attr("d",c),k.call(arr,i,t,r,{styleOne:W7e,eventDataKeys:SJ.eventDataKeys,transitionTime:SJ.CLICK_TRANSITION_TIME,transitionEasing:SJ.CLICK_TRANSITION_EASING}).call(z4.setSliceCursor,t,{hideOnRoot:!1,hideOnLeaves:!1,isTransitioning:t._transitioning}),D.call(W7e,C,x,t,{hovered:!1}),C._text=(z4.getPtLabel(C)||"").split("
").join(" ")||"";var F=KI.ensureSingle(k,"g","slicetext"),P=KI.ensureSingle(F,"text","",function(L){L.attr("data-notex",1)}),I=KI.ensureUniformFontSize(t,z4.determineTextFont(x,C,b.font,{onPathbar:!0}));P.text(C._text||" ").classed("slicetext",!0).attr("text-anchor","start").call(j7e.font,I).call(irr.convertToTspans,t),C.textBB=j7e.bBox(P.node()),C.transform=h(C,{fontSize:I.size,onPathbar:!0}),C.transform.fontSize=I.size,p?P.transition().attrTween("transform",function(L){var z=m(L,EJ,w,[s,l]);return function(B){return d(z(B))}}):P.attr("transform",d(C))})}});var J7e=K((KKr,K7e)=>{"use strict";var X7e=No(),kJ=(E_(),or(S_)).interpolate,I2=Iy(),AE=St(),Z7e=(i2(),or(r2)).TEXTPAD,orr=Yb(),srr=orr.toMoveInsideBar,lrr=E0(),CJ=lrr.recordMinTextSize,urr=(D_(),or(C_)),frr=Y7e();function L_(e){return I2.isHierarchyRoot(e)?"":I2.getPtId(e)}K7e.exports=function(t,r,i,n,a){var o=t._fullLayout,s=r[0],l=s.trace,u=l.type,f=u==="icicle",c=s.hierarchy,h=I2.findEntryWithLevel(c,l.level),d=X7e.select(i),p=d.selectAll("g.pathbar"),v=d.selectAll("g.slice");if(!h){p.remove(),v.remove();return}var y=I2.isHierarchyRoot(h),m=!o.uniformtext.mode&&I2.hasTransition(n),w=I2.getMaxDepth(l),_=function(V){return V.data.depth-h.data.depth-1?T+E:-(g+E):0,C={x0:A,x1:A,y0:S,y1:S+g},k=function(V,ue,_e){var xe=l.tiling.pad,Ae=function(Re){return Re-xe<=ue.x0},se=function(Re){return Re+xe>=ue.x1},pe=function(Re){return Re-xe<=ue.y0},fe=function(Re){return Re+xe>=ue.y1};return V.x0===ue.x0&&V.x1===ue.x1&&V.y0===ue.y0&&V.y1===ue.y1?{x0:V.x0,x1:V.x1,y0:V.y0,y1:V.y1}:{x0:Ae(V.x0-xe)?0:se(V.x0-xe)?_e[0]:V.x0,x1:Ae(V.x1+xe)?0:se(V.x1+xe)?_e[0]:V.x1,y0:pe(V.y0-xe)?0:fe(V.y0-xe)?_e[1]:V.y0,y1:pe(V.y1+xe)?0:fe(V.y1+xe)?_e[1]:V.y1}},D=null,F={},P={},I=null,L=function(V,ue){return ue?F[L_(V)]:P[L_(V)]},z=function(V,ue,_e,xe){if(ue)return F[L_(c)]||C;var Ae=P[l.level]||_e;return _(V)?k(V,Ae,xe):{}};s.hasMultipleRoots&&y&&w++,l._maxDepth=w,l._backgroundColor=o.paper_bgcolor,l._entryDepth=h.data.depth,l._atRootLevel=y;var B=-x/2+b.l+b.w*(M.x[1]+M.x[0])/2,O=-T/2+b.t+b.h*(1-(M.y[1]+M.y[0])/2),W=function(V){return B+V},X=function(V){return O+V},Z=X(0),H=W(0),q=function(V){return H+V},Q=function(V){return Z+V};function N(V,ue){return V+","+ue}var U=q(0),J=function(V){V.x=Math.max(U,V.x)},j=l.pathbar.edgeshape,$=function(V){var ue=q(Math.max(Math.min(V.x0,V.x0),0)),_e=q(Math.min(Math.max(V.x1,V.x1),A)),xe=Q(V.y0),Ae=Q(V.y1),se=g/2,pe={},fe={};pe.x=ue,fe.x=_e,pe.y=fe.y=(xe+Ae)/2;var Re={x:ue,y:xe},We={x:_e,y:xe},Ke={x:_e,y:Ae},tt={x:ue,y:Ae};return j===">"?(Re.x-=se,We.x-=se,Ke.x-=se,tt.x-=se):j==="/"?(Ke.x-=se,tt.x-=se,pe.x-=se/2,fe.x-=se/2):j==="\\"?(Re.x-=se,We.x-=se,pe.x-=se/2,fe.x-=se/2):j==="<"&&(pe.x-=se,fe.x-=se),J(Re),J(tt),J(pe),J(We),J(Ke),J(fe),"M"+N(Re.x,Re.y)+"L"+N(We.x,We.y)+"L"+N(fe.x,fe.y)+"L"+N(Ke.x,Ke.y)+"L"+N(tt.x,tt.y)+"L"+N(pe.x,pe.y)+"Z"},ie=l[f?"tiling":"marker"].pad,re=function(V){return l.textposition.indexOf(V)!==-1},de=re("top"),me=re("left"),ze=re("right"),ke=re("bottom"),le=function(V){var ue=W(V.x0),_e=W(V.x1),xe=X(V.y0),Ae=X(V.y1),se=_e-ue,pe=Ae-xe;if(!se||!pe)return"";var fe=l.marker.cornerradius||0,Re=Math.min(fe,se/2,pe/2);Re&&V.data&&V.data.data&&V.data.data.label&&(de&&(Re=Math.min(Re,ie.t)),me&&(Re=Math.min(Re,ie.l)),ze&&(Re=Math.min(Re,ie.r)),ke&&(Re=Math.min(Re,ie.b)));var We=function(Ke,tt){return Re?"a"+N(Re,Re)+" 0 0 1 "+N(Ke,tt):""};return"M"+N(ue,xe+Re)+We(Re,-Re)+"L"+N(_e-Re,xe)+We(Re,Re)+"L"+N(_e,Ae-Re)+We(-Re,Re)+"L"+N(ue+Re,Ae)+We(-Re,-Re)+"Z"},te=function(V,ue){var _e=V.x0,xe=V.x1,Ae=V.y0,se=V.y1,pe=V.textBB,fe=de||ue.isHeader&&!ke,Re=fe?"start":ke?"end":"middle",We=re("right"),Ke=re("left")||ue.onPathbar,tt=Ke?-1:We?1:0;if(ue.isHeader){if(_e+=(f?ie:ie.l)-Z7e,xe-=(f?ie:ie.r)-Z7e,_e>=xe){var at=(_e+xe)/2;_e=at,xe=at}var Ge;ke?(Ge=se-(f?ie:ie.b),Ae{"use strict";var crr=No(),hrr=Iy(),drr=E0(),prr=drr.clearMinTextSize,vrr=tv().resizeText,Q7e=J7e();eqe.exports=function(t,r,i,n,a){var o=a.type,s=a.drawDescendants,l=t._fullLayout,u=l["_"+o+"layer"],f,c,h=!i;if(prr(o,l),f=u.selectAll("g.trace."+o).data(r,function(p){return p[0].trace.uid}),f.enter().append("g").classed("trace",!0).classed(o,!0),f.order(),!l.uniformtext.mode&&hrr.hasTransition(i)){n&&(c=n());var d=crr.transition().duration(i.duration).ease(i.easing).each("end",function(){c&&c()}).each("interrupt",function(){c&&c()});d.each(function(){u.selectAll("g.trace").each(function(p){Q7e(t,p,this,i,s)})})}else f.each(function(p){Q7e(t,p,this,i,s)}),l.uniformtext.mode&&vrr(t,u.selectAll(".trace"),o);h&&f.exit().remove()}});var aqe=K((QKr,nqe)=>{"use strict";var tqe=No(),JI=St(),rqe=Is(),mrr=Du(),yrr=TJ(),iqe=ZI().styleOne,FJ=(D_(),or(C_)),R2=Iy(),grr=_E(),xrr=YI().formatSliceLabel,LJ=!1;nqe.exports=function(t,r,i,n,a){var o=a.width,s=a.height,l=a.viewX,u=a.viewY,f=a.pathSlice,c=a.toMoveInsideSlice,h=a.strTransform,d=a.hasTransition,p=a.handleSlicesExit,v=a.makeUpdateSliceInterpolator,y=a.makeUpdateTextInterpolator,m=a.prevEntry,w={},_=t._context.staticPlot,b=t._fullLayout,M=r[0],x=M.trace,T=x.textposition.indexOf("left")!==-1,A=x.textposition.indexOf("right")!==-1,g=x.textposition.indexOf("bottom")!==-1,E=!g&&!x.marker.pad.t||g&&!x.marker.pad.b,S=yrr(i,[o,s],{packing:x.tiling.packing,squarifyratio:x.tiling.squarifyratio,flipX:x.tiling.flip.indexOf("x")>-1,flipY:x.tiling.flip.indexOf("y")>-1,pad:{inner:x.tiling.pad,top:x.marker.pad.t,left:x.marker.pad.l,right:x.marker.pad.r,bottom:x.marker.pad.b}}),C=S.descendants(),k=1/0,D=-1/0;C.forEach(function(z){var B=z.depth;B>=x._maxDepth?(z.x0=z.x1=(z.x0+z.x1)/2,z.y0=z.y1=(z.y0+z.y1)/2):(k=Math.min(k,B),D=Math.max(D,B))}),n=n.data(C,R2.getPtId),x._maxVisibleLayers=isFinite(D)?D-k+1:0,n.enter().append("g").classed("slice",!0),p(n,LJ,w,[o,s],f),n.order();var F=null;if(d&&m){var P=R2.getPtId(m);n.each(function(z){F===null&&R2.getPtId(z)===P&&(F={x0:z.x0,x1:z.x1,y0:z.y0,y1:z.y1})})}var I=function(){return F||{x0:0,x1:o,y0:0,y1:s}},L=n;return d&&(L=L.transition().each("end",function(){var z=tqe.select(this);R2.setSliceCursor(z,t,{hideOnRoot:!0,hideOnLeaves:!1,isTransitioning:!1})})),L.each(function(z){var B=R2.isHeader(z,x);z._x0=l(z.x0),z._x1=l(z.x1),z._y0=u(z.y0),z._y1=u(z.y1),z._hoverX=l(z.x1-x.marker.pad.r),z._hoverY=u(g?z.y1-x.marker.pad.b/2:z.y0+x.marker.pad.t/2);var O=tqe.select(this),W=JI.ensureSingle(O,"path","surface",function(N){N.style("pointer-events",_?"none":"all")});d?W.transition().attrTween("d",function(N){var U=v(N,LJ,I(),[o,s]);return function(J){return f(U(J))}}):W.attr("d",f),O.call(grr,i,t,r,{styleOne:iqe,eventDataKeys:FJ.eventDataKeys,transitionTime:FJ.CLICK_TRANSITION_TIME,transitionEasing:FJ.CLICK_TRANSITION_EASING}).call(R2.setSliceCursor,t,{isTransitioning:t._transitioning}),W.call(iqe,z,x,t,{hovered:!1}),z.x0===z.x1||z.y0===z.y1?z._text="":B?z._text=E?"":R2.getPtLabel(z)||"":z._text=xrr(z,i,x,r,b)||"";var X=JI.ensureSingle(O,"g","slicetext"),Z=JI.ensureSingle(X,"text","",function(N){N.attr("data-notex",1)}),H=JI.ensureUniformFontSize(t,R2.determineTextFont(x,z,b.font)),q=z._text||" ",Q=B&&q.indexOf("
")===-1;Z.text(q).classed("slicetext",!0).attr("text-anchor",A?"end":T||Q?"start":"middle").call(rqe.font,H).call(mrr.convertToTspans,t),z.textBB=rqe.bBox(Z.node()),z.transform=c(z,{fontSize:H.size,isHeader:B}),z.transform.fontSize=H.size,d?Z.transition().attrTween("transform",function(N){var U=y(N,LJ,I(),[o,s]);return function(J){return h(U(J))}}):Z.attr("transform",h(z))}),F}});var sqe=K((eJr,oqe)=>{"use strict";var brr=DJ(),_rr=aqe();oqe.exports=function(t,r,i,n){return brr(t,r,i,n,{type:"treemap",drawDescendants:_rr})}});var uqe=K((tJr,lqe)=>{"use strict";lqe.exports={moduleType:"trace",name:"treemap",basePlotModule:S7e(),categories:[],animatable:!0,attributes:XI(),layoutAttributes:bJ(),supplyDefaults:z7e(),supplyLayoutDefaults:R7e(),calc:wJ().calc,crossTraceCalc:wJ().crossTraceCalc,plot:sqe(),style:ZI().style,colorbar:e0(),meta:{}}});var cqe=K((rJr,fqe)=>{"use strict";fqe.exports=uqe()});var dqe=K(I4=>{"use strict";var hqe=yf();I4.name="icicle";I4.plot=function(e,t,r,i){hqe.plotBasePlot(I4.name,e,t,r,i)};I4.clean=function(e,t,r,i){hqe.cleanBasePlot(I4.name,e,t,r,i)}});var PJ=K((nJr,mqe)=>{"use strict";var{hovertemplateAttrs:wrr,texttemplateAttrs:Arr,templatefallbackAttrs:pqe}=gu(),Trr=Wu(),Mrr=kf().attributes,TE=g_(),yp=sE(),QI=XI(),vqe=(D_(),or(C_)),Srr=Os().extendFlat,Err=gh().pattern;mqe.exports={labels:yp.labels,parents:yp.parents,values:yp.values,branchvalues:yp.branchvalues,count:yp.count,level:yp.level,maxdepth:yp.maxdepth,tiling:{orientation:{valType:"enumerated",values:["v","h"],dflt:"h",editType:"plot"},flip:QI.tiling.flip,pad:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"calc"},marker:Srr({colors:yp.marker.colors,line:yp.marker.line,pattern:Err,editType:"calc"},Trr("marker",{colorAttr:"colors",anim:!1})),leaf:yp.leaf,pathbar:QI.pathbar,text:TE.text,textinfo:yp.textinfo,texttemplate:Arr({editType:"plot"},{keys:vqe.eventDataKeys.concat(["label","value"])}),texttemplatefallback:pqe({editType:"plot"}),hovertext:TE.hovertext,hoverinfo:yp.hoverinfo,hovertemplate:wrr({},{keys:vqe.eventDataKeys}),hovertemplatefallback:pqe(),textfont:TE.textfont,insidetextfont:TE.insidetextfont,outsidetextfont:QI.outsidetextfont,textposition:QI.textposition,sort:TE.sort,root:yp.root,domain:Mrr({name:"icicle",trace:!0,editType:"calc"})}});var zJ=K((aJr,yqe)=>{"use strict";yqe.exports={iciclecolorway:{valType:"colorlist",editType:"calc"},extendiciclecolors:{valType:"boolean",dflt:!0,editType:"calc"}}});var _qe=K((oJr,bqe)=>{"use strict";var gqe=St(),krr=PJ(),Crr=wo(),Drr=kf().defaults,Frr=cp().handleText,Lrr=(i2(),or(r2)).TEXTPAD,Prr=x_().handleMarkerDefaults,xqe=gf(),zrr=xqe.hasColorscale,Irr=xqe.handleDefaults;bqe.exports=function(t,r,i,n){function a(d,p){return gqe.coerce(t,r,krr,d,p)}var o=a("labels"),s=a("parents");if(!o||!o.length||!s||!s.length){r.visible=!1;return}var l=a("values");l&&l.length?a("branchvalues"):a("count"),a("level"),a("maxdepth"),a("tiling.orientation"),a("tiling.flip"),a("tiling.pad");var u=a("text");a("texttemplate"),a("texttemplatefallback"),r.texttemplate||a("textinfo",gqe.isArrayOrTypedArray(u)?"text+label":"label"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback");var f=a("pathbar.visible"),c="auto";Frr(t,r,n,a,c,{hasPathbar:f,moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1}),a("textposition"),Prr(t,r,n,a);var h=r._hasColorscale=zrr(t,"marker","colors")||(t.marker||{}).coloraxis;h&&Irr(t,r,n,a,{prefix:"marker.",cLetter:"c"}),a("leaf.opacity",h?1:.7),r._hovered={marker:{line:{width:2,color:Crr.contrast(n.paper_bgcolor)}}},f&&(a("pathbar.thickness",r.pathbar.textfont.size+2*Lrr),a("pathbar.side"),a("pathbar.edgeshape")),a("sort"),a("root.color"),Drr(r,n,a),r._length=null}});var Aqe=K((sJr,wqe)=>{"use strict";var Rrr=St(),Brr=zJ();wqe.exports=function(t,r){function i(n,a){return Rrr.coerce(t,r,Brr,n,a)}i("iciclecolorway",r.colorway),i("extendiciclecolors")}});var RJ=K(IJ=>{"use strict";var Tqe=fE();IJ.calc=function(e,t){return Tqe.calc(e,t)};IJ.crossTraceCalc=function(e){return Tqe._runCrossTraceCalc("icicle",e)}});var Sqe=K((uJr,Mqe)=>{"use strict";var qrr=lE(),Orr=AJ();Mqe.exports=function(t,r,i){var n=i.flipX,a=i.flipY,o=i.orientation==="h",s=i.maxDepth,l=r[0],u=r[1];s&&(l=(t.height+1)*r[0]/Math.min(t.height+1,s),u=(t.height+1)*r[1]/Math.min(t.height+1,s));var f=qrr.partition().padding(i.pad.inner).size(o?[r[1],l]:[r[0],u])(t);return(o||n||a)&&Orr(f,r,{swapXY:o,flipX:n,flipY:a}),f}});var BJ=K((fJr,Fqe)=>{"use strict";var Eqe=No(),kqe=wo(),Cqe=St(),Nrr=E0().resizeText,Vrr=WI();function Urr(e){var t=e._fullLayout._iciclelayer.selectAll(".trace");Nrr(e,t,"icicle"),t.each(function(r){var i=Eqe.select(this),n=r[0],a=n.trace;i.style("opacity",a.opacity),i.selectAll("path.surface").each(function(o){Eqe.select(this).call(Dqe,o,a,e)})})}function Dqe(e,t,r,i){var n=t.data.data,a=!t.children,o=n.i,s=Cqe.castOption(r,o,"marker.line.color")||kqe.defaultLine,l=Cqe.castOption(r,o,"marker.line.width")||0;e.call(Vrr,t,r,i).style("stroke-width",l).call(kqe.stroke,s).style("opacity",a?r.leaf.opacity:null)}Fqe.exports={style:Urr,styleOne:Dqe}});var Rqe=K((cJr,Iqe)=>{"use strict";var Lqe=No(),eR=St(),Pqe=Is(),Grr=Du(),Hrr=Sqe(),zqe=BJ().styleOne,qJ=(D_(),or(C_)),R4=Iy(),jrr=_E(),Wrr=YI().formatSliceLabel,OJ=!1;Iqe.exports=function(t,r,i,n,a){var o=a.width,s=a.height,l=a.viewX,u=a.viewY,f=a.pathSlice,c=a.toMoveInsideSlice,h=a.strTransform,d=a.hasTransition,p=a.handleSlicesExit,v=a.makeUpdateSliceInterpolator,y=a.makeUpdateTextInterpolator,m=a.prevEntry,w={},_=t._context.staticPlot,b=t._fullLayout,M=r[0],x=M.trace,T=x.textposition.indexOf("left")!==-1,A=x.textposition.indexOf("right")!==-1,g=x.textposition.indexOf("bottom")!==-1,E=Hrr(i,[o,s],{flipX:x.tiling.flip.indexOf("x")>-1,flipY:x.tiling.flip.indexOf("y")>-1,orientation:x.tiling.orientation,pad:{inner:x.tiling.pad},maxDepth:x._maxDepth}),S=E.descendants(),C=1/0,k=-1/0;S.forEach(function(L){var z=L.depth;z>=x._maxDepth?(L.x0=L.x1=(L.x0+L.x1)/2,L.y0=L.y1=(L.y0+L.y1)/2):(C=Math.min(C,z),k=Math.max(k,z))}),n=n.data(S,R4.getPtId),x._maxVisibleLayers=isFinite(k)?k-C+1:0,n.enter().append("g").classed("slice",!0),p(n,OJ,w,[o,s],f),n.order();var D=null;if(d&&m){var F=R4.getPtId(m);n.each(function(L){D===null&&R4.getPtId(L)===F&&(D={x0:L.x0,x1:L.x1,y0:L.y0,y1:L.y1})})}var P=function(){return D||{x0:0,x1:o,y0:0,y1:s}},I=n;return d&&(I=I.transition().each("end",function(){var L=Lqe.select(this);R4.setSliceCursor(L,t,{hideOnRoot:!0,hideOnLeaves:!1,isTransitioning:!1})})),I.each(function(L){L._x0=l(L.x0),L._x1=l(L.x1),L._y0=u(L.y0),L._y1=u(L.y1),L._hoverX=l(L.x1-x.tiling.pad),L._hoverY=u(g?L.y1-x.tiling.pad/2:L.y0+x.tiling.pad/2);var z=Lqe.select(this),B=eR.ensureSingle(z,"path","surface",function(Z){Z.style("pointer-events",_?"none":"all")});d?B.transition().attrTween("d",function(Z){var H=v(Z,OJ,P(),[o,s],{orientation:x.tiling.orientation,flipX:x.tiling.flip.indexOf("x")>-1,flipY:x.tiling.flip.indexOf("y")>-1});return function(q){return f(H(q))}}):B.attr("d",f),z.call(jrr,i,t,r,{styleOne:zqe,eventDataKeys:qJ.eventDataKeys,transitionTime:qJ.CLICK_TRANSITION_TIME,transitionEasing:qJ.CLICK_TRANSITION_EASING}).call(R4.setSliceCursor,t,{isTransitioning:t._transitioning}),B.call(zqe,L,x,t,{hovered:!1}),L.x0===L.x1||L.y0===L.y1?L._text="":L._text=Wrr(L,i,x,r,b)||"";var O=eR.ensureSingle(z,"g","slicetext"),W=eR.ensureSingle(O,"text","",function(Z){Z.attr("data-notex",1)}),X=eR.ensureUniformFontSize(t,R4.determineTextFont(x,L,b.font));W.text(L._text||" ").classed("slicetext",!0).attr("text-anchor",A?"end":T?"start":"middle").call(Pqe.font,X).call(Grr.convertToTspans,t),L.textBB=Pqe.bBox(W.node()),L.transform=c(L,{fontSize:X.size}),L.transform.fontSize=X.size,d?W.transition().attrTween("transform",function(Z){var H=y(Z,OJ,P(),[o,s]);return function(q){return h(H(q))}}):W.attr("transform",h(L))}),D}});var qqe=K((hJr,Bqe)=>{"use strict";var $rr=DJ(),Yrr=Rqe();Bqe.exports=function(t,r,i,n){return $rr(t,r,i,n,{type:"icicle",drawDescendants:Yrr})}});var Nqe=K((dJr,Oqe)=>{"use strict";Oqe.exports={moduleType:"trace",name:"icicle",basePlotModule:dqe(),categories:[],animatable:!0,attributes:PJ(),layoutAttributes:zJ(),supplyDefaults:_qe(),supplyLayoutDefaults:Aqe(),calc:RJ().calc,crossTraceCalc:RJ().crossTraceCalc,plot:qqe(),style:BJ().style,colorbar:e0(),meta:{}}});var Uqe=K((pJr,Vqe)=>{"use strict";Vqe.exports=Nqe()});var Hqe=K(B4=>{"use strict";var Gqe=yf();B4.name="funnelarea";B4.plot=function(e,t,r,i){Gqe.plotBasePlot(B4.name,e,t,r,i)};B4.clean=function(e,t,r,i){Gqe.cleanBasePlot(B4.name,e,t,r,i)}});var NJ=K((mJr,Wqe)=>{"use strict";var a0=g_(),Xrr=Tu(),Zrr=kf().attributes,{hovertemplateAttrs:Krr,texttemplateAttrs:Jrr,templatefallbackAttrs:jqe}=gu(),P_=Os().extendFlat;Wqe.exports={labels:a0.labels,label0:a0.label0,dlabel:a0.dlabel,values:a0.values,marker:{colors:a0.marker.colors,line:{color:P_({},a0.marker.line.color,{dflt:null}),width:P_({},a0.marker.line.width,{dflt:1}),editType:"calc"},pattern:a0.marker.pattern,editType:"calc"},text:a0.text,hovertext:a0.hovertext,scalegroup:P_({},a0.scalegroup,{}),textinfo:P_({},a0.textinfo,{flags:["label","text","value","percent"]}),texttemplate:Jrr({editType:"plot"},{keys:["label","color","value","text","percent"]}),texttemplatefallback:jqe({editType:"plot"}),hoverinfo:P_({},Xrr.hoverinfo,{flags:["label","text","value","percent","name"]}),hovertemplate:Krr({},{keys:["label","color","value","text","percent"]}),hovertemplatefallback:jqe(),textposition:P_({},a0.textposition,{values:["inside","none"],dflt:"inside"}),textfont:a0.textfont,insidetextfont:a0.insidetextfont,title:{text:a0.title.text,font:a0.title.font,position:P_({},a0.title.position,{values:["top left","top center","top right"],dflt:"top center"}),editType:"plot"},domain:Zrr({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"}}});var VJ=K((yJr,$qe)=>{"use strict";var Qrr=_I().hiddenlabels;$qe.exports={hiddenlabels:Qrr,funnelareacolorway:{valType:"colorlist",editType:"calc"},extendfunnelareacolors:{valType:"boolean",dflt:!0,editType:"calc"}}});var Zqe=K((gJr,Xqe)=>{"use strict";var Yqe=St(),eir=NJ(),tir=kf().defaults,rir=cp().handleText,iir=x_().handleLabelsAndValues,nir=x_().handleMarkerDefaults;Xqe.exports=function(t,r,i,n){function a(v,y){return Yqe.coerce(t,r,eir,v,y)}var o=a("labels"),s=a("values"),l=iir(o,s),u=l.len;if(r._hasLabels=l.hasLabels,r._hasValues=l.hasValues,!r._hasLabels&&r._hasValues&&(a("label0"),a("dlabel")),!u){r.visible=!1;return}r._length=u,nir(t,r,n,a),a("scalegroup");var f=a("text"),c=a("texttemplate");a("texttemplatefallback");var h;if(c||(h=a("textinfo",Array.isArray(f)?"text+percent":"percent")),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback"),c||h&&h!=="none"){var d=a("textposition");rir(t,r,n,a,d,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1})}else h==="none"&&a("textposition","none");tir(r,n,a);var p=a("title.text");p&&(a("title.position"),Yqe.coerceFont(a,"title.font",n.font)),a("aspectratio"),a("baseratio")}});var Jqe=K((xJr,Kqe)=>{"use strict";var air=St(),oir=VJ();Kqe.exports=function(t,r){function i(n,a){return air.coerce(t,r,oir,n,a)}i("hiddenlabels"),i("funnelareacolorway",r.colorway),i("extendfunnelareacolors")}});var UJ=K((bJr,eOe)=>{"use strict";var Qqe=x4();function sir(e,t){return Qqe.calc(e,t)}function lir(e){Qqe.crossTraceCalc(e,{type:"funnelarea"})}eOe.exports={calc:sir,crossTraceCalc:lir}});var aOe=K((_Jr,nOe)=>{"use strict";var z_=No(),GJ=Is(),B2=St(),uir=B2.strScale,tOe=B2.strTranslate,rOe=Du(),fir=Yb(),cir=fir.toMoveInsideBar,iOe=E0(),hir=iOe.recordMinTextSize,dir=iOe.clearMinTextSize,pir=$g(),q4=MI(),vir=q4.attachFxHandlers,mir=q4.determineInsideTextFont,yir=q4.layoutAreas,gir=q4.prerenderTitles,xir=q4.positionTitleOutside,bir=q4.formatSliceLabel;nOe.exports=function(t,r){var i=t._context.staticPlot,n=t._fullLayout;dir("funnelarea",n),gir(r,t),yir(r,n._size),B2.makeTraceGroups(n._funnelarealayer,r,"trace").each(function(a){var o=z_.select(this),s=a[0],l=s.trace;wir(a),o.each(function(){var u=z_.select(this).selectAll("g.slice").data(a);u.enter().append("g").classed("slice",!0),u.exit().remove(),u.each(function(c,h){if(c.hidden){z_.select(this).selectAll("path,g").remove();return}c.pointNumber=c.i,c.curveNumber=l.index;var d=s.cx,p=s.cy,v=z_.select(this),y=v.selectAll("path.surface").data([c]);y.enter().append("path").classed("surface",!0).style({"pointer-events":i?"none":"all"}),v.call(vir,t,a);var m="M"+(d+c.TR[0])+","+(p+c.TR[1])+HJ(c.TR,c.BR)+HJ(c.BR,c.BL)+HJ(c.BL,c.TL)+"Z";y.attr("d",m),bir(t,c,s);var w=pir.castOption(l.textposition,c.pts),_=v.selectAll("g.slicetext").data(c.text&&w!=="none"?[0]:[]);_.enter().append("g").classed("slicetext",!0),_.exit().remove(),_.each(function(){var b=B2.ensureSingle(z_.select(this),"text","",function(C){C.attr("data-notex",1)}),M=B2.ensureUniformFontSize(t,mir(l,c,n.font));b.text(c.text).attr({class:"slicetext",transform:"","text-anchor":"middle"}).call(GJ.font,M).call(rOe.convertToTspans,t);var x=GJ.bBox(b.node()),T,A,g,E=Math.min(c.BL[1],c.BR[1])+p,S=Math.max(c.TL[1],c.TR[1])+p;A=Math.max(c.TL[0],c.BL[0])+d,g=Math.min(c.TR[0],c.BR[0])+d,T=cir(A,g,E,S,x,{isHorizontal:!0,constrained:!0,angle:0,anchor:"middle"}),T.fontSize=M.size,hir(l.type,T,n),a[h].transform=T,B2.setTransormAndDisplay(b,T)})});var f=z_.select(this).selectAll("g.titletext").data(l.title.text?[0]:[]);f.enter().append("g").classed("titletext",!0),f.exit().remove(),f.each(function(){var c=B2.ensureSingle(z_.select(this),"text","",function(p){p.attr("data-notex",1)}),h=l.title.text;l._meta&&(h=B2.templateString(h,l._meta)),c.text(h).attr({class:"titletext",transform:"","text-anchor":"middle"}).call(GJ.font,l.title.font).call(rOe.convertToTspans,t);var d=xir(s,n._size);c.attr("transform",tOe(d.x,d.y)+uir(Math.min(1,d.scale))+tOe(d.tx,d.ty))})})})};function HJ(e,t){var r=t[0]-e[0],i=t[1]-e[1];return"l"+r+","+i}function _ir(e,t){return[.5*(e[0]+t[0]),.5*(e[1]+t[1])]}function wir(e){if(!e.length)return;var t=e[0],r=t.trace,i=r.aspectratio,n=r.baseratio;n>.999&&(n=.999);var a=Math.pow(n,2),o=t.vTotal,s=o*a/(1-a),l=o,u=s/o;function f(){var k=Math.sqrt(u);return{x:k,y:-k}}function c(){var k=f();return[k.x,k.y]}var h,d=[];d.push(c());var p,v;for(p=e.length-1;p>-1;p--)if(v=e[p],!v.hidden){var y=v.v/l;u+=y,d.push(c())}var m=1/0,w=-1/0;for(p=0;p-1;p--)if(v=e[p],!v.hidden){E+=1;var S=d[E][0],C=d[E][1];v.TL=[-S,C],v.TR=[S,C],v.BL=A,v.BR=g,v.pxmid=_ir(v.TR,v.BR),A=v.TL,g=v.TR}}});var lOe=K((wJr,sOe)=>{"use strict";var oOe=No(),Air=Vw(),Tir=E0().resizeText;sOe.exports=function(t){var r=t._fullLayout._funnelarealayer.selectAll(".trace");Tir(t,r,"funnelarea"),r.each(function(i){var n=i[0],a=n.trace,o=oOe.select(this);o.style({opacity:a.opacity}),o.selectAll("path.surface").each(function(s){oOe.select(this).call(Air,s,a,t)})})}});var fOe=K((AJr,uOe)=>{"use strict";uOe.exports={moduleType:"trace",name:"funnelarea",basePlotModule:Hqe(),categories:["pie-like","funnelarea","showLegend"],attributes:NJ(),layoutAttributes:VJ(),supplyDefaults:Zqe(),supplyLayoutDefaults:Jqe(),calc:UJ().calc,crossTraceCalc:UJ().crossTraceCalc,plot:aOe(),style:lOe(),styleOne:Vw(),meta:{}}});var hOe=K((TJr,cOe)=>{"use strict";cOe.exports=fOe()});var Bh=K((MJr,dOe)=>{"use strict";(()=>{var e={3065(n,a,o){n.exports={alpha_shape:o(3502),convex_hull:o(7352),delaunay_triangulate:o(7642),gl_cone3d:o(6405),gl_error3d:o(9165),gl_line3d:o(5714),gl_mesh3d:o(7201),gl_plot3d:o(4100),gl_scatter3d:o(8418),gl_streamtube3d:o(7815),gl_surface3d:o(9499),ndarray:o(9618),ndarray_linear_interpolate:o(4317)}},6296(n,a,o){"use strict";n.exports=h;var s=o(7261),l=o(9977),u=o(1811);function f(d,p){this._controllerNames=Object.keys(d),this._controllerList=this._controllerNames.map(function(v){return d[v]}),this._mode=p,this._active=d[p],this._active||(this._mode="turntable",this._active=d.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(d){for(var p=this._controllerList,v=0;v0)throw new Error("Invalid string. Length must be a multiple of 4");var M=_.indexOf("=");M===-1&&(M=b);var x=M===b?0:4-M%4;return[M,x]}function d(_){var b=h(_),M=b[0],x=b[1];return(M+x)*3/4-x}function p(_,b,M){return(b+M)*3/4-M}function v(_){var b,M=h(_),x=M[0],T=M[1],A=new l(p(_,x,T)),g=0,E=T>0?x-4:x,S;for(S=0;S>16&255,A[g++]=b>>8&255,A[g++]=b&255;return T===2&&(b=s[_.charCodeAt(S)]<<2|s[_.charCodeAt(S+1)]>>4,A[g++]=b&255),T===1&&(b=s[_.charCodeAt(S)]<<10|s[_.charCodeAt(S+1)]<<4|s[_.charCodeAt(S+2)]>>2,A[g++]=b>>8&255,A[g++]=b&255),A}function y(_){return o[_>>18&63]+o[_>>12&63]+o[_>>6&63]+o[_&63]}function m(_,b,M){for(var x,T=[],A=b;AE?E:g+A));return x===1?(b=_[M-1],T.push(o[b>>2]+o[b<<4&63]+"==")):x===2&&(b=(_[M-2]<<8)+_[M-1],T.push(o[b>>10]+o[b>>4&63]+o[b<<2&63]+"=")),T.join("")}},3865(n,a,o){"use strict";var s=o(869);n.exports=l;function l(u,f){return s(u[0].mul(f[1]).add(f[0].mul(u[1])),u[1].mul(f[1]))}},1318(n){"use strict";n.exports=a;function a(o,s){return o[0].mul(s[1]).cmp(s[0].mul(o[1]))}},8697(n,a,o){"use strict";var s=o(869);n.exports=l;function l(u,f){return s(u[0].mul(f[1]),u[1].mul(f[0]))}},7842(n,a,o){"use strict";var s=o(6330),l=o(1533),u=o(2651),f=o(6768),c=o(869),h=o(8697);n.exports=d;function d(p,v){if(s(p))return v?h(p,d(v)):[p[0].clone(),p[1].clone()];var y=0,m,w;if(l(p))m=p.clone();else if(typeof p=="string")m=f(p);else{if(p===0)return[u(0),u(1)];if(p===Math.floor(p))m=u(p);else{for(;p!==Math.floor(p);)p=p*Math.pow(2,256),y-=256;m=u(p)}}if(s(v))m.mul(v[1]),w=v[0].clone();else if(l(v))w=v.clone();else if(typeof v=="string")w=f(v);else if(!v)w=u(1);else if(v===Math.floor(v))w=u(v);else{for(;v!==Math.floor(v);)v=v*Math.pow(2,256),y+=256;w=u(v)}return y>0?m=m.ushln(y):y<0&&(w=w.ushln(-y)),c(m,w)}},6330(n,a,o){"use strict";var s=o(1533);n.exports=l;function l(u){return Array.isArray(u)&&u.length===2&&s(u[0])&&s(u[1])}},5716(n,a,o){"use strict";var s=o(6859);n.exports=l;function l(u){return u.cmp(new s(0))}},1369(n,a,o){"use strict";var s=o(5716);n.exports=l;function l(u){var f=u.length,c=u.words,h=0;if(f===1)h=c[0];else if(f===2)h=c[0]+c[1]*67108864;else for(var d=0;d20?52:h+32}},1533(n,a,o){"use strict";var s=o(6859);n.exports=l;function l(u){return u&&typeof u=="object"&&!!u.words}},2651(n,a,o){"use strict";var s=o(6859),l=o(2361);n.exports=u;function u(f){var c=l.exponent(f);return c<52?new s(f):new s(f*Math.pow(2,52-c)).ushln(c-52)}},869(n,a,o){"use strict";var s=o(2651),l=o(5716);n.exports=u;function u(f,c){var h=l(f),d=l(c);if(h===0)return[s(0),s(1)];if(d===0)return[s(0),s(0)];d<0&&(f=f.neg(),c=c.neg());var p=f.gcd(c);return p.cmpn(1)?[f.div(p),c.div(p)]:[f,c]}},6768(n,a,o){"use strict";var s=o(6859);n.exports=l;function l(u){return new s(u)}},6504(n,a,o){"use strict";var s=o(869);n.exports=l;function l(u,f){return s(u[0].mul(f[0]),u[1].mul(f[1]))}},7721(n,a,o){"use strict";var s=o(5716);n.exports=l;function l(u){return s(u[0])*s(u[1])}},5572(n,a,o){"use strict";var s=o(869);n.exports=l;function l(u,f){return s(u[0].mul(f[1]).sub(u[1].mul(f[0])),u[1].mul(f[1]))}},946(n,a,o){"use strict";var s=o(1369),l=o(4025);n.exports=u;function u(f){var c=f[0],h=f[1];if(c.cmpn(0)===0)return 0;var d=c.abs().divmod(h.abs()),p=d.div,v=s(p),y=d.mod,m=c.negative!==h.negative?-1:1;if(y.cmpn(0)===0)return m*v;if(v){var w=l(v)+4,_=s(y.ushln(w).divRound(h));return m*(v+_*Math.pow(2,-w))}else{var b=h.bitLength()-y.bitLength()+53,_=s(y.ushln(b).divRound(h));return b<1023?m*_*Math.pow(2,-b):(_*=Math.pow(2,-1023),m*_*Math.pow(2,1023-b))}}},2478(n){"use strict";function a(c,h,d,p,v){for(var y=v+1;p<=v;){var m=p+v>>>1,w=c[m],_=d!==void 0?d(w,h):w-h;_>=0?(y=m,v=m-1):p=m+1}return y}function o(c,h,d,p,v){for(var y=v+1;p<=v;){var m=p+v>>>1,w=c[m],_=d!==void 0?d(w,h):w-h;_>0?(y=m,v=m-1):p=m+1}return y}function s(c,h,d,p,v){for(var y=p-1;p<=v;){var m=p+v>>>1,w=c[m],_=d!==void 0?d(w,h):w-h;_<0?(y=m,p=m+1):v=m-1}return y}function l(c,h,d,p,v){for(var y=p-1;p<=v;){var m=p+v>>>1,w=c[m],_=d!==void 0?d(w,h):w-h;_<=0?(y=m,p=m+1):v=m-1}return y}function u(c,h,d,p,v){for(;p<=v;){var y=p+v>>>1,m=c[y],w=d!==void 0?d(m,h):m-h;if(w===0)return y;w<=0?p=y+1:v=y-1}return-1}function f(c,h,d,p,v,y){return typeof d=="function"?y(c,h,d,p===void 0?0:p|0,v===void 0?c.length-1:v|0):y(c,h,void 0,d===void 0?0:d|0,p===void 0?c.length-1:p|0)}n.exports={ge:function(c,h,d,p,v){return f(c,h,d,p,v,a)},gt:function(c,h,d,p,v){return f(c,h,d,p,v,o)},lt:function(c,h,d,p,v){return f(c,h,d,p,v,s)},le:function(c,h,d,p,v){return f(c,h,d,p,v,l)},eq:function(c,h,d,p,v){return f(c,h,d,p,v,u)}}},8828(n,a){"use strict";"use restrict";var o=32;a.INT_BITS=o,a.INT_MAX=2147483647,a.INT_MIN=-1<0)-(u<0)},a.abs=function(u){var f=u>>o-1;return(u^f)-f},a.min=function(u,f){return f^(u^f)&-(u65535)<<4,u>>>=f,c=(u>255)<<3,u>>>=c,f|=c,c=(u>15)<<2,u>>>=c,f|=c,c=(u>3)<<1,u>>>=c,f|=c,f|u>>1},a.log10=function(u){return u>=1e9?9:u>=1e8?8:u>=1e7?7:u>=1e6?6:u>=1e5?5:u>=1e4?4:u>=1e3?3:u>=100?2:u>=10?1:0},a.popCount=function(u){return u=u-(u>>>1&1431655765),u=(u&858993459)+(u>>>2&858993459),(u+(u>>>4)&252645135)*16843009>>>24};function s(u){var f=32;return u&=-u,u&&f--,u&65535&&(f-=16),u&16711935&&(f-=8),u&252645135&&(f-=4),u&858993459&&(f-=2),u&1431655765&&(f-=1),f}a.countTrailingZeros=s,a.nextPow2=function(u){return u+=u===0,--u,u|=u>>>1,u|=u>>>2,u|=u>>>4,u|=u>>>8,u|=u>>>16,u+1},a.prevPow2=function(u){return u|=u>>>1,u|=u>>>2,u|=u>>>4,u|=u>>>8,u|=u>>>16,u-(u>>>1)},a.parity=function(u){return u^=u>>>16,u^=u>>>8,u^=u>>>4,u&=15,27030>>>u&1};var l=new Array(256);(function(u){for(var f=0;f<256;++f){var c=f,h=f,d=7;for(c>>>=1;c;c>>>=1)h<<=1,h|=c&1,--d;u[f]=h<>>8&255]<<16|l[u>>>16&255]<<8|l[u>>>24&255]},a.interleave2=function(u,f){return u&=65535,u=(u|u<<8)&16711935,u=(u|u<<4)&252645135,u=(u|u<<2)&858993459,u=(u|u<<1)&1431655765,f&=65535,f=(f|f<<8)&16711935,f=(f|f<<4)&252645135,f=(f|f<<2)&858993459,f=(f|f<<1)&1431655765,u|f<<1},a.deinterleave2=function(u,f){return u=u>>>f&1431655765,u=(u|u>>>1)&858993459,u=(u|u>>>2)&252645135,u=(u|u>>>4)&16711935,u=(u|u>>>16)&65535,u<<16>>16},a.interleave3=function(u,f,c){return u&=1023,u=(u|u<<16)&4278190335,u=(u|u<<8)&251719695,u=(u|u<<4)&3272356035,u=(u|u<<2)&1227133513,f&=1023,f=(f|f<<16)&4278190335,f=(f|f<<8)&251719695,f=(f|f<<4)&3272356035,f=(f|f<<2)&1227133513,u|=f<<1,c&=1023,c=(c|c<<16)&4278190335,c=(c|c<<8)&251719695,c=(c|c<<4)&3272356035,c=(c|c<<2)&1227133513,u|c<<2},a.deinterleave3=function(u,f){return u=u>>>f&1227133513,u=(u|u>>>2)&3272356035,u=(u|u>>>4)&251719695,u=(u|u>>>8)&4278190335,u=(u|u>>>16)&1023,u<<22>>22},a.nextCombination=function(u){var f=u|u-1;return f+1|(~f&-~f)-1>>>s(u)+1}},6859(n,a,o){n=o.nmd(n),(function(s,l){"use strict";function u(I,L){if(!I)throw new Error(L||"Assertion failed")}function f(I,L){I.super_=L;var z=function(){};z.prototype=L.prototype,I.prototype=new z,I.prototype.constructor=I}function c(I,L,z){if(c.isBN(I))return I;this.negative=0,this.words=null,this.length=0,this.red=null,I!==null&&((L==="le"||L==="be")&&(z=L,L=10),this._init(I||0,L||10,z||"be"))}typeof s=="object"?s.exports=c:l.BN=c,c.BN=c,c.wordSize=26;var h;try{typeof window!="undefined"&&typeof window.Buffer!="undefined"?h=window.Buffer:h=o(7790).Buffer}catch(I){}c.isBN=function(L){return L instanceof c?!0:L!==null&&typeof L=="object"&&L.constructor.wordSize===c.wordSize&&Array.isArray(L.words)},c.max=function(L,z){return L.cmp(z)>0?L:z},c.min=function(L,z){return L.cmp(z)<0?L:z},c.prototype._init=function(L,z,B){if(typeof L=="number")return this._initNumber(L,z,B);if(typeof L=="object")return this._initArray(L,z,B);z==="hex"&&(z=16),u(z===(z|0)&&z>=2&&z<=36),L=L.toString().replace(/\s+/g,"");var O=0;L[0]==="-"&&(O++,this.negative=1),O=0;O-=3)X=L[O]|L[O-1]<<8|L[O-2]<<16,this.words[W]|=X<>>26-Z&67108863,Z+=24,Z>=26&&(Z-=26,W++);else if(B==="le")for(O=0,W=0;O>>26-Z&67108863,Z+=24,Z>=26&&(Z-=26,W++);return this.strip()};function d(I,L){var z=I.charCodeAt(L);return z>=65&&z<=70?z-55:z>=97&&z<=102?z-87:z-48&15}function p(I,L,z){var B=d(I,z);return z-1>=L&&(B|=d(I,z-1)<<4),B}c.prototype._parseHex=function(L,z,B){this.length=Math.ceil((L.length-z)/6),this.words=new Array(this.length);for(var O=0;O=z;O-=2)Z=p(L,z,O)<=18?(W-=18,X+=1,this.words[X]|=Z>>>26):W+=8;else{var H=L.length-z;for(O=H%2===0?z+1:z;O=18?(W-=18,X+=1,this.words[X]|=Z>>>26):W+=8}this.strip()};function v(I,L,z,B){for(var O=0,W=Math.min(I.length,z),X=L;X=49?O+=Z-49+10:Z>=17?O+=Z-17+10:O+=Z}return O}c.prototype._parseBase=function(L,z,B){this.words=[0],this.length=1;for(var O=0,W=1;W<=67108863;W*=z)O++;O--,W=W/z|0;for(var X=L.length-B,Z=X%O,H=Math.min(X,X-Z)+B,q=0,Q=B;Q1&&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 y=["","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"],m=[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],w=[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(L,z){L=L||10,z=z|0||1;var B;if(L===16||L==="hex"){B="";for(var O=0,W=0,X=0;X>>24-O&16777215,O+=2,O>=26&&(O-=26,X--),W!==0||X!==this.length-1?B=y[6-H.length]+H+B:B=H+B}for(W!==0&&(B=W.toString(16)+B);B.length%z!==0;)B="0"+B;return this.negative!==0&&(B="-"+B),B}if(L===(L|0)&&L>=2&&L<=36){var q=m[L],Q=w[L];B="";var N=this.clone();for(N.negative=0;!N.isZero();){var U=N.modn(Q).toString(L);N=N.idivn(Q),N.isZero()?B=U+B:B=y[q-U.length]+U+B}for(this.isZero()&&(B="0"+B);B.length%z!==0;)B="0"+B;return this.negative!==0&&(B="-"+B),B}u(!1,"Base should be between 2 and 36")},c.prototype.toNumber=function(){var L=this.words[0];return this.length===2?L+=this.words[1]*67108864:this.length===3&&this.words[2]===1?L+=4503599627370496+this.words[1]*67108864:this.length>2&&u(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-L:L},c.prototype.toJSON=function(){return this.toString(16)},c.prototype.toBuffer=function(L,z){return u(typeof h!="undefined"),this.toArrayLike(h,L,z)},c.prototype.toArray=function(L,z){return this.toArrayLike(Array,L,z)},c.prototype.toArrayLike=function(L,z,B){var O=this.byteLength(),W=B||Math.max(1,O);u(O<=W,"byte array longer than desired length"),u(W>0,"Requested array length <= 0"),this.strip();var X=z==="le",Z=new L(W),H,q,Q=this.clone();if(X){for(q=0;!Q.isZero();q++)H=Q.andln(255),Q.iushrn(8),Z[q]=H;for(;q=4096&&(B+=13,z>>>=13),z>=64&&(B+=7,z>>>=7),z>=8&&(B+=4,z>>>=4),z>=2&&(B+=2,z>>>=2),B+z},c.prototype._zeroBits=function(L){if(L===0)return 26;var z=L,B=0;return(z&8191)===0&&(B+=13,z>>>=13),(z&127)===0&&(B+=7,z>>>=7),(z&15)===0&&(B+=4,z>>>=4),(z&3)===0&&(B+=2,z>>>=2),(z&1)===0&&B++,B},c.prototype.bitLength=function(){var L=this.words[this.length-1],z=this._countBits(L);return(this.length-1)*26+z};function _(I){for(var L=new Array(I.bitLength()),z=0;z>>O}return L}c.prototype.zeroBits=function(){if(this.isZero())return 0;for(var L=0,z=0;zL.length?this.clone().ior(L):L.clone().ior(this)},c.prototype.uor=function(L){return this.length>L.length?this.clone().iuor(L):L.clone().iuor(this)},c.prototype.iuand=function(L){var z;this.length>L.length?z=L:z=this;for(var B=0;BL.length?this.clone().iand(L):L.clone().iand(this)},c.prototype.uand=function(L){return this.length>L.length?this.clone().iuand(L):L.clone().iuand(this)},c.prototype.iuxor=function(L){var z,B;this.length>L.length?(z=this,B=L):(z=L,B=this);for(var O=0;OL.length?this.clone().ixor(L):L.clone().ixor(this)},c.prototype.uxor=function(L){return this.length>L.length?this.clone().iuxor(L):L.clone().iuxor(this)},c.prototype.inotn=function(L){u(typeof L=="number"&&L>=0);var z=Math.ceil(L/26)|0,B=L%26;this._expand(z),B>0&&z--;for(var O=0;O0&&(this.words[O]=~this.words[O]&67108863>>26-B,O++);O=0);var B=L/26|0,O=L%26;return this._expand(B+1),z?this.words[B]=this.words[B]|1<L.length?(B=this,O=L):(B=L,O=this);for(var W=0,X=0;X>>26;for(;W!==0&&X>>26;if(this.length=B.length,W!==0)this.words[this.length]=W,this.length++;else if(B!==this)for(;XL.length?this.clone().iadd(L):L.clone().iadd(this)},c.prototype.isub=function(L){if(L.negative!==0){L.negative=0;var z=this.iadd(L);return L.negative=1,z._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(L),this.negative=1,this._normSign();var B=this.cmp(L);if(B===0)return this.negative=0,this.length=1,this.words[0]=0,this;var O,W;B>0?(O=this,W=L):(O=L,W=this);for(var X=0,Z=0;Z>26,this.words[Z]=z&67108863;for(;X!==0&&Z>26,this.words[Z]=z&67108863;if(X===0&&Z>>26,N=H&67108863,U=Math.min(q,L.length-1),J=Math.max(0,q-I.length+1);J<=U;J++){var j=q-J|0;O=I.words[j]|0,W=L.words[J]|0,X=O*W+N,Q+=X/67108864|0,N=X&67108863}z.words[q]=N|0,H=Q|0}return H!==0?z.words[q]=H|0:z.length--,z.strip()}var M=function(L,z,B){var O=L.words,W=z.words,X=B.words,Z=0,H,q,Q,N=O[0]|0,U=N&8191,J=N>>>13,j=O[1]|0,$=j&8191,ie=j>>>13,re=O[2]|0,de=re&8191,me=re>>>13,ze=O[3]|0,ke=ze&8191,le=ze>>>13,te=O[4]|0,Ee=te&8191,we=te>>>13,oe=O[5]|0,Y=oe&8191,ne=oe>>>13,ye=O[6]|0,V=ye&8191,ue=ye>>>13,_e=O[7]|0,xe=_e&8191,Ae=_e>>>13,se=O[8]|0,pe=se&8191,fe=se>>>13,Re=O[9]|0,We=Re&8191,Ke=Re>>>13,tt=W[0]|0,at=tt&8191,Ge=tt>>>13,ge=W[1]|0,Be=ge&8191,Ze=ge>>>13,Le=W[2]|0,De=Le&8191,Ue=Le>>>13,Pe=W[3]|0,Se=Pe&8191,Ie=Pe>>>13,ot=W[4]|0,ut=ot&8191,_t=ot>>>13,At=W[5]|0,Gt=At&8191,Dt=At>>>13,yt=W[6]|0,Mt=yt&8191,tr=yt>>>13,Ye=W[7]|0,nt=Ye&8191,st=Ye>>>13,dt=W[8]|0,rt=dt&8191,ft=dt>>>13,Ft=W[9]|0,Et=Ft&8191,er=Ft>>>13;B.negative=L.negative^z.negative,B.length=19,H=Math.imul(U,at),q=Math.imul(U,Ge),q=q+Math.imul(J,at)|0,Q=Math.imul(J,Ge);var xr=(Z+H|0)+((q&8191)<<13)|0;Z=(Q+(q>>>13)|0)+(xr>>>26)|0,xr&=67108863,H=Math.imul($,at),q=Math.imul($,Ge),q=q+Math.imul(ie,at)|0,Q=Math.imul(ie,Ge),H=H+Math.imul(U,Be)|0,q=q+Math.imul(U,Ze)|0,q=q+Math.imul(J,Be)|0,Q=Q+Math.imul(J,Ze)|0;var kr=(Z+H|0)+((q&8191)<<13)|0;Z=(Q+(q>>>13)|0)+(kr>>>26)|0,kr&=67108863,H=Math.imul(de,at),q=Math.imul(de,Ge),q=q+Math.imul(me,at)|0,Q=Math.imul(me,Ge),H=H+Math.imul($,Be)|0,q=q+Math.imul($,Ze)|0,q=q+Math.imul(ie,Be)|0,Q=Q+Math.imul(ie,Ze)|0,H=H+Math.imul(U,De)|0,q=q+Math.imul(U,Ue)|0,q=q+Math.imul(J,De)|0,Q=Q+Math.imul(J,Ue)|0;var fr=(Z+H|0)+((q&8191)<<13)|0;Z=(Q+(q>>>13)|0)+(fr>>>26)|0,fr&=67108863,H=Math.imul(ke,at),q=Math.imul(ke,Ge),q=q+Math.imul(le,at)|0,Q=Math.imul(le,Ge),H=H+Math.imul(de,Be)|0,q=q+Math.imul(de,Ze)|0,q=q+Math.imul(me,Be)|0,Q=Q+Math.imul(me,Ze)|0,H=H+Math.imul($,De)|0,q=q+Math.imul($,Ue)|0,q=q+Math.imul(ie,De)|0,Q=Q+Math.imul(ie,Ue)|0,H=H+Math.imul(U,Se)|0,q=q+Math.imul(U,Ie)|0,q=q+Math.imul(J,Se)|0,Q=Q+Math.imul(J,Ie)|0;var Yr=(Z+H|0)+((q&8191)<<13)|0;Z=(Q+(q>>>13)|0)+(Yr>>>26)|0,Yr&=67108863,H=Math.imul(Ee,at),q=Math.imul(Ee,Ge),q=q+Math.imul(we,at)|0,Q=Math.imul(we,Ge),H=H+Math.imul(ke,Be)|0,q=q+Math.imul(ke,Ze)|0,q=q+Math.imul(le,Be)|0,Q=Q+Math.imul(le,Ze)|0,H=H+Math.imul(de,De)|0,q=q+Math.imul(de,Ue)|0,q=q+Math.imul(me,De)|0,Q=Q+Math.imul(me,Ue)|0,H=H+Math.imul($,Se)|0,q=q+Math.imul($,Ie)|0,q=q+Math.imul(ie,Se)|0,Q=Q+Math.imul(ie,Ie)|0,H=H+Math.imul(U,ut)|0,q=q+Math.imul(U,_t)|0,q=q+Math.imul(J,ut)|0,Q=Q+Math.imul(J,_t)|0;var Or=(Z+H|0)+((q&8191)<<13)|0;Z=(Q+(q>>>13)|0)+(Or>>>26)|0,Or&=67108863,H=Math.imul(Y,at),q=Math.imul(Y,Ge),q=q+Math.imul(ne,at)|0,Q=Math.imul(ne,Ge),H=H+Math.imul(Ee,Be)|0,q=q+Math.imul(Ee,Ze)|0,q=q+Math.imul(we,Be)|0,Q=Q+Math.imul(we,Ze)|0,H=H+Math.imul(ke,De)|0,q=q+Math.imul(ke,Ue)|0,q=q+Math.imul(le,De)|0,Q=Q+Math.imul(le,Ue)|0,H=H+Math.imul(de,Se)|0,q=q+Math.imul(de,Ie)|0,q=q+Math.imul(me,Se)|0,Q=Q+Math.imul(me,Ie)|0,H=H+Math.imul($,ut)|0,q=q+Math.imul($,_t)|0,q=q+Math.imul(ie,ut)|0,Q=Q+Math.imul(ie,_t)|0,H=H+Math.imul(U,Gt)|0,q=q+Math.imul(U,Dt)|0,q=q+Math.imul(J,Gt)|0,Q=Q+Math.imul(J,Dt)|0;var ri=(Z+H|0)+((q&8191)<<13)|0;Z=(Q+(q>>>13)|0)+(ri>>>26)|0,ri&=67108863,H=Math.imul(V,at),q=Math.imul(V,Ge),q=q+Math.imul(ue,at)|0,Q=Math.imul(ue,Ge),H=H+Math.imul(Y,Be)|0,q=q+Math.imul(Y,Ze)|0,q=q+Math.imul(ne,Be)|0,Q=Q+Math.imul(ne,Ze)|0,H=H+Math.imul(Ee,De)|0,q=q+Math.imul(Ee,Ue)|0,q=q+Math.imul(we,De)|0,Q=Q+Math.imul(we,Ue)|0,H=H+Math.imul(ke,Se)|0,q=q+Math.imul(ke,Ie)|0,q=q+Math.imul(le,Se)|0,Q=Q+Math.imul(le,Ie)|0,H=H+Math.imul(de,ut)|0,q=q+Math.imul(de,_t)|0,q=q+Math.imul(me,ut)|0,Q=Q+Math.imul(me,_t)|0,H=H+Math.imul($,Gt)|0,q=q+Math.imul($,Dt)|0,q=q+Math.imul(ie,Gt)|0,Q=Q+Math.imul(ie,Dt)|0,H=H+Math.imul(U,Mt)|0,q=q+Math.imul(U,tr)|0,q=q+Math.imul(J,Mt)|0,Q=Q+Math.imul(J,tr)|0;var Tr=(Z+H|0)+((q&8191)<<13)|0;Z=(Q+(q>>>13)|0)+(Tr>>>26)|0,Tr&=67108863,H=Math.imul(xe,at),q=Math.imul(xe,Ge),q=q+Math.imul(Ae,at)|0,Q=Math.imul(Ae,Ge),H=H+Math.imul(V,Be)|0,q=q+Math.imul(V,Ze)|0,q=q+Math.imul(ue,Be)|0,Q=Q+Math.imul(ue,Ze)|0,H=H+Math.imul(Y,De)|0,q=q+Math.imul(Y,Ue)|0,q=q+Math.imul(ne,De)|0,Q=Q+Math.imul(ne,Ue)|0,H=H+Math.imul(Ee,Se)|0,q=q+Math.imul(Ee,Ie)|0,q=q+Math.imul(we,Se)|0,Q=Q+Math.imul(we,Ie)|0,H=H+Math.imul(ke,ut)|0,q=q+Math.imul(ke,_t)|0,q=q+Math.imul(le,ut)|0,Q=Q+Math.imul(le,_t)|0,H=H+Math.imul(de,Gt)|0,q=q+Math.imul(de,Dt)|0,q=q+Math.imul(me,Gt)|0,Q=Q+Math.imul(me,Dt)|0,H=H+Math.imul($,Mt)|0,q=q+Math.imul($,tr)|0,q=q+Math.imul(ie,Mt)|0,Q=Q+Math.imul(ie,tr)|0,H=H+Math.imul(U,nt)|0,q=q+Math.imul(U,st)|0,q=q+Math.imul(J,nt)|0,Q=Q+Math.imul(J,st)|0;var Mr=(Z+H|0)+((q&8191)<<13)|0;Z=(Q+(q>>>13)|0)+(Mr>>>26)|0,Mr&=67108863,H=Math.imul(pe,at),q=Math.imul(pe,Ge),q=q+Math.imul(fe,at)|0,Q=Math.imul(fe,Ge),H=H+Math.imul(xe,Be)|0,q=q+Math.imul(xe,Ze)|0,q=q+Math.imul(Ae,Be)|0,Q=Q+Math.imul(Ae,Ze)|0,H=H+Math.imul(V,De)|0,q=q+Math.imul(V,Ue)|0,q=q+Math.imul(ue,De)|0,Q=Q+Math.imul(ue,Ue)|0,H=H+Math.imul(Y,Se)|0,q=q+Math.imul(Y,Ie)|0,q=q+Math.imul(ne,Se)|0,Q=Q+Math.imul(ne,Ie)|0,H=H+Math.imul(Ee,ut)|0,q=q+Math.imul(Ee,_t)|0,q=q+Math.imul(we,ut)|0,Q=Q+Math.imul(we,_t)|0,H=H+Math.imul(ke,Gt)|0,q=q+Math.imul(ke,Dt)|0,q=q+Math.imul(le,Gt)|0,Q=Q+Math.imul(le,Dt)|0,H=H+Math.imul(de,Mt)|0,q=q+Math.imul(de,tr)|0,q=q+Math.imul(me,Mt)|0,Q=Q+Math.imul(me,tr)|0,H=H+Math.imul($,nt)|0,q=q+Math.imul($,st)|0,q=q+Math.imul(ie,nt)|0,Q=Q+Math.imul(ie,st)|0,H=H+Math.imul(U,rt)|0,q=q+Math.imul(U,ft)|0,q=q+Math.imul(J,rt)|0,Q=Q+Math.imul(J,ft)|0;var Gr=(Z+H|0)+((q&8191)<<13)|0;Z=(Q+(q>>>13)|0)+(Gr>>>26)|0,Gr&=67108863,H=Math.imul(We,at),q=Math.imul(We,Ge),q=q+Math.imul(Ke,at)|0,Q=Math.imul(Ke,Ge),H=H+Math.imul(pe,Be)|0,q=q+Math.imul(pe,Ze)|0,q=q+Math.imul(fe,Be)|0,Q=Q+Math.imul(fe,Ze)|0,H=H+Math.imul(xe,De)|0,q=q+Math.imul(xe,Ue)|0,q=q+Math.imul(Ae,De)|0,Q=Q+Math.imul(Ae,Ue)|0,H=H+Math.imul(V,Se)|0,q=q+Math.imul(V,Ie)|0,q=q+Math.imul(ue,Se)|0,Q=Q+Math.imul(ue,Ie)|0,H=H+Math.imul(Y,ut)|0,q=q+Math.imul(Y,_t)|0,q=q+Math.imul(ne,ut)|0,Q=Q+Math.imul(ne,_t)|0,H=H+Math.imul(Ee,Gt)|0,q=q+Math.imul(Ee,Dt)|0,q=q+Math.imul(we,Gt)|0,Q=Q+Math.imul(we,Dt)|0,H=H+Math.imul(ke,Mt)|0,q=q+Math.imul(ke,tr)|0,q=q+Math.imul(le,Mt)|0,Q=Q+Math.imul(le,tr)|0,H=H+Math.imul(de,nt)|0,q=q+Math.imul(de,st)|0,q=q+Math.imul(me,nt)|0,Q=Q+Math.imul(me,st)|0,H=H+Math.imul($,rt)|0,q=q+Math.imul($,ft)|0,q=q+Math.imul(ie,rt)|0,Q=Q+Math.imul(ie,ft)|0,H=H+Math.imul(U,Et)|0,q=q+Math.imul(U,er)|0,q=q+Math.imul(J,Et)|0,Q=Q+Math.imul(J,er)|0;var _i=(Z+H|0)+((q&8191)<<13)|0;Z=(Q+(q>>>13)|0)+(_i>>>26)|0,_i&=67108863,H=Math.imul(We,Be),q=Math.imul(We,Ze),q=q+Math.imul(Ke,Be)|0,Q=Math.imul(Ke,Ze),H=H+Math.imul(pe,De)|0,q=q+Math.imul(pe,Ue)|0,q=q+Math.imul(fe,De)|0,Q=Q+Math.imul(fe,Ue)|0,H=H+Math.imul(xe,Se)|0,q=q+Math.imul(xe,Ie)|0,q=q+Math.imul(Ae,Se)|0,Q=Q+Math.imul(Ae,Ie)|0,H=H+Math.imul(V,ut)|0,q=q+Math.imul(V,_t)|0,q=q+Math.imul(ue,ut)|0,Q=Q+Math.imul(ue,_t)|0,H=H+Math.imul(Y,Gt)|0,q=q+Math.imul(Y,Dt)|0,q=q+Math.imul(ne,Gt)|0,Q=Q+Math.imul(ne,Dt)|0,H=H+Math.imul(Ee,Mt)|0,q=q+Math.imul(Ee,tr)|0,q=q+Math.imul(we,Mt)|0,Q=Q+Math.imul(we,tr)|0,H=H+Math.imul(ke,nt)|0,q=q+Math.imul(ke,st)|0,q=q+Math.imul(le,nt)|0,Q=Q+Math.imul(le,st)|0,H=H+Math.imul(de,rt)|0,q=q+Math.imul(de,ft)|0,q=q+Math.imul(me,rt)|0,Q=Q+Math.imul(me,ft)|0,H=H+Math.imul($,Et)|0,q=q+Math.imul($,er)|0,q=q+Math.imul(ie,Et)|0,Q=Q+Math.imul(ie,er)|0;var Fi=(Z+H|0)+((q&8191)<<13)|0;Z=(Q+(q>>>13)|0)+(Fi>>>26)|0,Fi&=67108863,H=Math.imul(We,De),q=Math.imul(We,Ue),q=q+Math.imul(Ke,De)|0,Q=Math.imul(Ke,Ue),H=H+Math.imul(pe,Se)|0,q=q+Math.imul(pe,Ie)|0,q=q+Math.imul(fe,Se)|0,Q=Q+Math.imul(fe,Ie)|0,H=H+Math.imul(xe,ut)|0,q=q+Math.imul(xe,_t)|0,q=q+Math.imul(Ae,ut)|0,Q=Q+Math.imul(Ae,_t)|0,H=H+Math.imul(V,Gt)|0,q=q+Math.imul(V,Dt)|0,q=q+Math.imul(ue,Gt)|0,Q=Q+Math.imul(ue,Dt)|0,H=H+Math.imul(Y,Mt)|0,q=q+Math.imul(Y,tr)|0,q=q+Math.imul(ne,Mt)|0,Q=Q+Math.imul(ne,tr)|0,H=H+Math.imul(Ee,nt)|0,q=q+Math.imul(Ee,st)|0,q=q+Math.imul(we,nt)|0,Q=Q+Math.imul(we,st)|0,H=H+Math.imul(ke,rt)|0,q=q+Math.imul(ke,ft)|0,q=q+Math.imul(le,rt)|0,Q=Q+Math.imul(le,ft)|0,H=H+Math.imul(de,Et)|0,q=q+Math.imul(de,er)|0,q=q+Math.imul(me,Et)|0,Q=Q+Math.imul(me,er)|0;var wr=(Z+H|0)+((q&8191)<<13)|0;Z=(Q+(q>>>13)|0)+(wr>>>26)|0,wr&=67108863,H=Math.imul(We,Se),q=Math.imul(We,Ie),q=q+Math.imul(Ke,Se)|0,Q=Math.imul(Ke,Ie),H=H+Math.imul(pe,ut)|0,q=q+Math.imul(pe,_t)|0,q=q+Math.imul(fe,ut)|0,Q=Q+Math.imul(fe,_t)|0,H=H+Math.imul(xe,Gt)|0,q=q+Math.imul(xe,Dt)|0,q=q+Math.imul(Ae,Gt)|0,Q=Q+Math.imul(Ae,Dt)|0,H=H+Math.imul(V,Mt)|0,q=q+Math.imul(V,tr)|0,q=q+Math.imul(ue,Mt)|0,Q=Q+Math.imul(ue,tr)|0,H=H+Math.imul(Y,nt)|0,q=q+Math.imul(Y,st)|0,q=q+Math.imul(ne,nt)|0,Q=Q+Math.imul(ne,st)|0,H=H+Math.imul(Ee,rt)|0,q=q+Math.imul(Ee,ft)|0,q=q+Math.imul(we,rt)|0,Q=Q+Math.imul(we,ft)|0,H=H+Math.imul(ke,Et)|0,q=q+Math.imul(ke,er)|0,q=q+Math.imul(le,Et)|0,Q=Q+Math.imul(le,er)|0;var Cr=(Z+H|0)+((q&8191)<<13)|0;Z=(Q+(q>>>13)|0)+(Cr>>>26)|0,Cr&=67108863,H=Math.imul(We,ut),q=Math.imul(We,_t),q=q+Math.imul(Ke,ut)|0,Q=Math.imul(Ke,_t),H=H+Math.imul(pe,Gt)|0,q=q+Math.imul(pe,Dt)|0,q=q+Math.imul(fe,Gt)|0,Q=Q+Math.imul(fe,Dt)|0,H=H+Math.imul(xe,Mt)|0,q=q+Math.imul(xe,tr)|0,q=q+Math.imul(Ae,Mt)|0,Q=Q+Math.imul(Ae,tr)|0,H=H+Math.imul(V,nt)|0,q=q+Math.imul(V,st)|0,q=q+Math.imul(ue,nt)|0,Q=Q+Math.imul(ue,st)|0,H=H+Math.imul(Y,rt)|0,q=q+Math.imul(Y,ft)|0,q=q+Math.imul(ne,rt)|0,Q=Q+Math.imul(ne,ft)|0,H=H+Math.imul(Ee,Et)|0,q=q+Math.imul(Ee,er)|0,q=q+Math.imul(we,Et)|0,Q=Q+Math.imul(we,er)|0;var Ut=(Z+H|0)+((q&8191)<<13)|0;Z=(Q+(q>>>13)|0)+(Ut>>>26)|0,Ut&=67108863,H=Math.imul(We,Gt),q=Math.imul(We,Dt),q=q+Math.imul(Ke,Gt)|0,Q=Math.imul(Ke,Dt),H=H+Math.imul(pe,Mt)|0,q=q+Math.imul(pe,tr)|0,q=q+Math.imul(fe,Mt)|0,Q=Q+Math.imul(fe,tr)|0,H=H+Math.imul(xe,nt)|0,q=q+Math.imul(xe,st)|0,q=q+Math.imul(Ae,nt)|0,Q=Q+Math.imul(Ae,st)|0,H=H+Math.imul(V,rt)|0,q=q+Math.imul(V,ft)|0,q=q+Math.imul(ue,rt)|0,Q=Q+Math.imul(ue,ft)|0,H=H+Math.imul(Y,Et)|0,q=q+Math.imul(Y,er)|0,q=q+Math.imul(ne,Et)|0,Q=Q+Math.imul(ne,er)|0;var Wt=(Z+H|0)+((q&8191)<<13)|0;Z=(Q+(q>>>13)|0)+(Wt>>>26)|0,Wt&=67108863,H=Math.imul(We,Mt),q=Math.imul(We,tr),q=q+Math.imul(Ke,Mt)|0,Q=Math.imul(Ke,tr),H=H+Math.imul(pe,nt)|0,q=q+Math.imul(pe,st)|0,q=q+Math.imul(fe,nt)|0,Q=Q+Math.imul(fe,st)|0,H=H+Math.imul(xe,rt)|0,q=q+Math.imul(xe,ft)|0,q=q+Math.imul(Ae,rt)|0,Q=Q+Math.imul(Ae,ft)|0,H=H+Math.imul(V,Et)|0,q=q+Math.imul(V,er)|0,q=q+Math.imul(ue,Et)|0,Q=Q+Math.imul(ue,er)|0;var dr=(Z+H|0)+((q&8191)<<13)|0;Z=(Q+(q>>>13)|0)+(dr>>>26)|0,dr&=67108863,H=Math.imul(We,nt),q=Math.imul(We,st),q=q+Math.imul(Ke,nt)|0,Q=Math.imul(Ke,st),H=H+Math.imul(pe,rt)|0,q=q+Math.imul(pe,ft)|0,q=q+Math.imul(fe,rt)|0,Q=Q+Math.imul(fe,ft)|0,H=H+Math.imul(xe,Et)|0,q=q+Math.imul(xe,er)|0,q=q+Math.imul(Ae,Et)|0,Q=Q+Math.imul(Ae,er)|0;var Hr=(Z+H|0)+((q&8191)<<13)|0;Z=(Q+(q>>>13)|0)+(Hr>>>26)|0,Hr&=67108863,H=Math.imul(We,rt),q=Math.imul(We,ft),q=q+Math.imul(Ke,rt)|0,Q=Math.imul(Ke,ft),H=H+Math.imul(pe,Et)|0,q=q+Math.imul(pe,er)|0,q=q+Math.imul(fe,Et)|0,Q=Q+Math.imul(fe,er)|0;var Er=(Z+H|0)+((q&8191)<<13)|0;Z=(Q+(q>>>13)|0)+(Er>>>26)|0,Er&=67108863,H=Math.imul(We,Et),q=Math.imul(We,er),q=q+Math.imul(Ke,Et)|0,Q=Math.imul(Ke,er);var Fr=(Z+H|0)+((q&8191)<<13)|0;return Z=(Q+(q>>>13)|0)+(Fr>>>26)|0,Fr&=67108863,X[0]=xr,X[1]=kr,X[2]=fr,X[3]=Yr,X[4]=Or,X[5]=ri,X[6]=Tr,X[7]=Mr,X[8]=Gr,X[9]=_i,X[10]=Fi,X[11]=wr,X[12]=Cr,X[13]=Ut,X[14]=Wt,X[15]=dr,X[16]=Hr,X[17]=Er,X[18]=Fr,Z!==0&&(X[19]=Z,B.length++),B};Math.imul||(M=b);function x(I,L,z){z.negative=L.negative^I.negative,z.length=I.length+L.length;for(var B=0,O=0,W=0;W>>26)|0,O+=X>>>26,X&=67108863}z.words[W]=Z,B=X,X=O}return B!==0?z.words[W]=B:z.length--,z.strip()}function T(I,L,z){var B=new A;return B.mulp(I,L,z)}c.prototype.mulTo=function(L,z){var B,O=this.length+L.length;return this.length===10&&L.length===10?B=M(this,L,z):O<63?B=b(this,L,z):O<1024?B=x(this,L,z):B=T(this,L,z),B};function A(I,L){this.x=I,this.y=L}A.prototype.makeRBT=function(L){for(var z=new Array(L),B=c.prototype._countBits(L)-1,O=0;O>=1;return O},A.prototype.permute=function(L,z,B,O,W,X){for(var Z=0;Z>>1)W++;return 1<>>13,B[2*X+1]=W&8191,W=W>>>13;for(X=2*z;X>=26,z+=O/67108864|0,z+=W>>>26,this.words[B]=W&67108863}return z!==0&&(this.words[B]=z,this.length++),L===0&&(this.length=1,this._normSign()),this},c.prototype.muln=function(L){return this.clone().imuln(L)},c.prototype.sqr=function(){return this.mul(this)},c.prototype.isqr=function(){return this.imul(this.clone())},c.prototype.pow=function(L){var z=_(L);if(z.length===0)return new c(1);for(var B=this,O=0;O=0);var z=L%26,B=(L-z)/26,O=67108863>>>26-z<<26-z,W;if(z!==0){var X=0;for(W=0;W>>26-z}X&&(this.words[W]=X,this.length++)}if(B!==0){for(W=this.length-1;W>=0;W--)this.words[W+B]=this.words[W];for(W=0;W=0);var O;z?O=(z-z%26)/26:O=0;var W=L%26,X=Math.min((L-W)/26,this.length),Z=67108863^67108863>>>W<X)for(this.length-=X,q=0;q=0&&(Q!==0||q>=O);q--){var N=this.words[q]|0;this.words[q]=Q<<26-W|N>>>W,Q=N&Z}return H&&Q!==0&&(H.words[H.length++]=Q),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},c.prototype.ishrn=function(L,z,B){return u(this.negative===0),this.iushrn(L,z,B)},c.prototype.shln=function(L){return this.clone().ishln(L)},c.prototype.ushln=function(L){return this.clone().iushln(L)},c.prototype.shrn=function(L){return this.clone().ishrn(L)},c.prototype.ushrn=function(L){return this.clone().iushrn(L)},c.prototype.testn=function(L){u(typeof L=="number"&&L>=0);var z=L%26,B=(L-z)/26,O=1<=0);var z=L%26,B=(L-z)/26;if(u(this.negative===0,"imaskn works only with positive numbers"),this.length<=B)return this;if(z!==0&&B++,this.length=Math.min(B,this.length),z!==0){var O=67108863^67108863>>>z<=67108864;z++)this.words[z]-=67108864,z===this.length-1?this.words[z+1]=1:this.words[z+1]++;return this.length=Math.max(this.length,z+1),this},c.prototype.isubn=function(L){if(u(typeof L=="number"),u(L<67108864),L<0)return this.iaddn(-L);if(this.negative!==0)return this.negative=0,this.iaddn(L),this.negative=1,this;if(this.words[0]-=L,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var z=0;z>26)-(H/67108864|0),this.words[W+B]=X&67108863}for(;W>26,this.words[W+B]=X&67108863;if(Z===0)return this.strip();for(u(Z===-1),Z=0,W=0;W>26,this.words[W]=X&67108863;return this.negative=1,this.strip()},c.prototype._wordDiv=function(L,z){var B=this.length-L.length,O=this.clone(),W=L,X=W.words[W.length-1]|0,Z=this._countBits(X);B=26-Z,B!==0&&(W=W.ushln(B),O.iushln(B),X=W.words[W.length-1]|0);var H=O.length-W.length,q;if(z!=="mod"){q=new c(null),q.length=H+1,q.words=new Array(q.length);for(var Q=0;Q=0;U--){var J=(O.words[W.length+U]|0)*67108864+(O.words[W.length+U-1]|0);for(J=Math.min(J/X|0,67108863),O._ishlnsubmul(W,J,U);O.negative!==0;)J--,O.negative=0,O._ishlnsubmul(W,1,U),O.isZero()||(O.negative^=1);q&&(q.words[U]=J)}return q&&q.strip(),O.strip(),z!=="div"&&B!==0&&O.iushrn(B),{div:q||null,mod:O}},c.prototype.divmod=function(L,z,B){if(u(!L.isZero()),this.isZero())return{div:new c(0),mod:new c(0)};var O,W,X;return this.negative!==0&&L.negative===0?(X=this.neg().divmod(L,z),z!=="mod"&&(O=X.div.neg()),z!=="div"&&(W=X.mod.neg(),B&&W.negative!==0&&W.iadd(L)),{div:O,mod:W}):this.negative===0&&L.negative!==0?(X=this.divmod(L.neg(),z),z!=="mod"&&(O=X.div.neg()),{div:O,mod:X.mod}):(this.negative&L.negative)!==0?(X=this.neg().divmod(L.neg(),z),z!=="div"&&(W=X.mod.neg(),B&&W.negative!==0&&W.isub(L)),{div:X.div,mod:W}):L.length>this.length||this.cmp(L)<0?{div:new c(0),mod:this}:L.length===1?z==="div"?{div:this.divn(L.words[0]),mod:null}:z==="mod"?{div:null,mod:new c(this.modn(L.words[0]))}:{div:this.divn(L.words[0]),mod:new c(this.modn(L.words[0]))}:this._wordDiv(L,z)},c.prototype.div=function(L){return this.divmod(L,"div",!1).div},c.prototype.mod=function(L){return this.divmod(L,"mod",!1).mod},c.prototype.umod=function(L){return this.divmod(L,"mod",!0).mod},c.prototype.divRound=function(L){var z=this.divmod(L);if(z.mod.isZero())return z.div;var B=z.mod.abs(),O=L.abs().iushrn(1),W=L.words[0]&1,X=B.cmp(O);if(X<0||W===1&&X===0)return z.div;var Z=new c(1);return Z.negative=this.negative^L.negative,z.div.iadd(Z)},c.prototype.modn=function(L){u(L<=67108863);for(var z=(1<<26)%L,B=0,O=this.length-1;O>=0;O--)B=(z*B+(this.words[O]|0))%L;return B},c.prototype.idivn=function(L){u(L<=67108863);for(var z=0,B=this.length-1;B>=0;B--){var O=(this.words[B]|0)+z*67108864;this.words[B]=O/L|0,z=O%L}return this.strip()},c.prototype.divn=function(L){return this.clone().idivn(L)},c.prototype.egcd=function(L){u(L.negative===0),u(!L.isZero());var z=this,B=L.clone();z.negative!==0?z=z.umod(L):z=z.clone();for(var O=new c(1),W=new c(0),X=new c(0),Z=new c(1),H=0;z.isEven()&&B.isEven();)z.iushrn(1),B.iushrn(1),++H;for(var q=B.clone(),Q=z.clone();!z.isZero();){for(var N=0,U=1;(z.words[0]&U)===0&&N<26;++N,U<<=1);if(N>0)for(z.iushrn(N);N-- >0;)(O.isOdd()||W.isOdd())&&(O.iadd(q),W.isub(Q)),O.iushrn(1),W.iushrn(1);for(var J=0,j=1;(B.words[0]&j)===0&&J<26;++J,j<<=1);if(J>0)for(B.iushrn(J);J-- >0;)(X.isOdd()||Z.isOdd())&&(X.iadd(q),Z.isub(Q)),X.iushrn(1),Z.iushrn(1);z.cmp(B)>=0?(z.isub(B),O.isub(X),W.isub(Z)):(B.isub(z),X.isub(O),Z.isub(W))}return{a:X,b:Z,gcd:B.iushln(H)}},c.prototype._invmp=function(L){u(L.negative===0),u(!L.isZero());var z=this,B=L.clone();z.negative!==0?z=z.umod(L):z=z.clone();for(var O=new c(1),W=new c(0),X=B.clone();z.cmpn(1)>0&&B.cmpn(1)>0;){for(var Z=0,H=1;(z.words[0]&H)===0&&Z<26;++Z,H<<=1);if(Z>0)for(z.iushrn(Z);Z-- >0;)O.isOdd()&&O.iadd(X),O.iushrn(1);for(var q=0,Q=1;(B.words[0]&Q)===0&&q<26;++q,Q<<=1);if(q>0)for(B.iushrn(q);q-- >0;)W.isOdd()&&W.iadd(X),W.iushrn(1);z.cmp(B)>=0?(z.isub(B),O.isub(W)):(B.isub(z),W.isub(O))}var N;return z.cmpn(1)===0?N=O:N=W,N.cmpn(0)<0&&N.iadd(L),N},c.prototype.gcd=function(L){if(this.isZero())return L.abs();if(L.isZero())return this.abs();var z=this.clone(),B=L.clone();z.negative=0,B.negative=0;for(var O=0;z.isEven()&&B.isEven();O++)z.iushrn(1),B.iushrn(1);do{for(;z.isEven();)z.iushrn(1);for(;B.isEven();)B.iushrn(1);var W=z.cmp(B);if(W<0){var X=z;z=B,B=X}else if(W===0||B.cmpn(1)===0)break;z.isub(B)}while(!0);return B.iushln(O)},c.prototype.invm=function(L){return this.egcd(L).a.umod(L)},c.prototype.isEven=function(){return(this.words[0]&1)===0},c.prototype.isOdd=function(){return(this.words[0]&1)===1},c.prototype.andln=function(L){return this.words[0]&L},c.prototype.bincn=function(L){u(typeof L=="number");var z=L%26,B=(L-z)/26,O=1<>>26,Z&=67108863,this.words[X]=Z}return W!==0&&(this.words[X]=W,this.length++),this},c.prototype.isZero=function(){return this.length===1&&this.words[0]===0},c.prototype.cmpn=function(L){var z=L<0;if(this.negative!==0&&!z)return-1;if(this.negative===0&&z)return 1;this.strip();var B;if(this.length>1)B=1;else{z&&(L=-L),u(L<=67108863,"Number is too big");var O=this.words[0]|0;B=O===L?0:OL.length)return 1;if(this.length=0;B--){var O=this.words[B]|0,W=L.words[B]|0;if(O!==W){OW&&(z=1);break}}return z},c.prototype.gtn=function(L){return this.cmpn(L)===1},c.prototype.gt=function(L){return this.cmp(L)===1},c.prototype.gten=function(L){return this.cmpn(L)>=0},c.prototype.gte=function(L){return this.cmp(L)>=0},c.prototype.ltn=function(L){return this.cmpn(L)===-1},c.prototype.lt=function(L){return this.cmp(L)===-1},c.prototype.lten=function(L){return this.cmpn(L)<=0},c.prototype.lte=function(L){return this.cmp(L)<=0},c.prototype.eqn=function(L){return this.cmpn(L)===0},c.prototype.eq=function(L){return this.cmp(L)===0},c.red=function(L){return new F(L)},c.prototype.toRed=function(L){return u(!this.red,"Already a number in reduction context"),u(this.negative===0,"red works only with positives"),L.convertTo(this)._forceRed(L)},c.prototype.fromRed=function(){return u(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},c.prototype._forceRed=function(L){return this.red=L,this},c.prototype.forceRed=function(L){return u(!this.red,"Already a number in reduction context"),this._forceRed(L)},c.prototype.redAdd=function(L){return u(this.red,"redAdd works only with red numbers"),this.red.add(this,L)},c.prototype.redIAdd=function(L){return u(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,L)},c.prototype.redSub=function(L){return u(this.red,"redSub works only with red numbers"),this.red.sub(this,L)},c.prototype.redISub=function(L){return u(this.red,"redISub works only with red numbers"),this.red.isub(this,L)},c.prototype.redShl=function(L){return u(this.red,"redShl works only with red numbers"),this.red.shl(this,L)},c.prototype.redMul=function(L){return u(this.red,"redMul works only with red numbers"),this.red._verify2(this,L),this.red.mul(this,L)},c.prototype.redIMul=function(L){return u(this.red,"redMul works only with red numbers"),this.red._verify2(this,L),this.red.imul(this,L)},c.prototype.redSqr=function(){return u(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},c.prototype.redISqr=function(){return u(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},c.prototype.redSqrt=function(){return u(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},c.prototype.redInvm=function(){return u(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},c.prototype.redNeg=function(){return u(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},c.prototype.redPow=function(L){return u(this.red&&!L.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,L)};var g={k256:null,p224:null,p192:null,p25519:null};function E(I,L){this.name=I,this.p=new c(L,16),this.n=this.p.bitLength(),this.k=new c(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}E.prototype._tmp=function(){var L=new c(null);return L.words=new Array(Math.ceil(this.n/13)),L},E.prototype.ireduce=function(L){var z=L,B;do this.split(z,this.tmp),z=this.imulK(z),z=z.iadd(this.tmp),B=z.bitLength();while(B>this.n);var O=B0?z.isub(this.p):z.strip!==void 0?z.strip():z._strip(),z},E.prototype.split=function(L,z){L.iushrn(this.n,0,z)},E.prototype.imulK=function(L){return L.imul(this.k)};function S(){E.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}f(S,E),S.prototype.split=function(L,z){for(var B=4194303,O=Math.min(L.length,9),W=0;W>>22,X=Z}X>>>=22,L.words[W-10]=X,X===0&&L.length>10?L.length-=10:L.length-=9},S.prototype.imulK=function(L){L.words[L.length]=0,L.words[L.length+1]=0,L.length+=2;for(var z=0,B=0;B>>=26,L.words[B]=W,z=O}return z!==0&&(L.words[L.length++]=z),L},c._prime=function(L){if(g[L])return g[L];var z;if(L==="k256")z=new S;else if(L==="p224")z=new C;else if(L==="p192")z=new k;else if(L==="p25519")z=new D;else throw new Error("Unknown prime "+L);return g[L]=z,z};function F(I){if(typeof I=="string"){var L=c._prime(I);this.m=L.p,this.prime=L}else u(I.gtn(1),"modulus must be greater than 1"),this.m=I,this.prime=null}F.prototype._verify1=function(L){u(L.negative===0,"red works only with positives"),u(L.red,"red works only with red numbers")},F.prototype._verify2=function(L,z){u((L.negative|z.negative)===0,"red works only with positives"),u(L.red&&L.red===z.red,"red works only with red numbers")},F.prototype.imod=function(L){return this.prime?this.prime.ireduce(L)._forceRed(this):L.umod(this.m)._forceRed(this)},F.prototype.neg=function(L){return L.isZero()?L.clone():this.m.sub(L)._forceRed(this)},F.prototype.add=function(L,z){this._verify2(L,z);var B=L.add(z);return B.cmp(this.m)>=0&&B.isub(this.m),B._forceRed(this)},F.prototype.iadd=function(L,z){this._verify2(L,z);var B=L.iadd(z);return B.cmp(this.m)>=0&&B.isub(this.m),B},F.prototype.sub=function(L,z){this._verify2(L,z);var B=L.sub(z);return B.cmpn(0)<0&&B.iadd(this.m),B._forceRed(this)},F.prototype.isub=function(L,z){this._verify2(L,z);var B=L.isub(z);return B.cmpn(0)<0&&B.iadd(this.m),B},F.prototype.shl=function(L,z){return this._verify1(L),this.imod(L.ushln(z))},F.prototype.imul=function(L,z){return this._verify2(L,z),this.imod(L.imul(z))},F.prototype.mul=function(L,z){return this._verify2(L,z),this.imod(L.mul(z))},F.prototype.isqr=function(L){return this.imul(L,L.clone())},F.prototype.sqr=function(L){return this.mul(L,L)},F.prototype.sqrt=function(L){if(L.isZero())return L.clone();var z=this.m.andln(3);if(u(z%2===1),z===3){var B=this.m.add(new c(1)).iushrn(2);return this.pow(L,B)}for(var O=this.m.subn(1),W=0;!O.isZero()&&O.andln(1)===0;)W++,O.iushrn(1);u(!O.isZero());var X=new c(1).toRed(this),Z=X.redNeg(),H=this.m.subn(1).iushrn(1),q=this.m.bitLength();for(q=new c(2*q*q).toRed(this);this.pow(q,H).cmp(Z)!==0;)q.redIAdd(Z);for(var Q=this.pow(q,O),N=this.pow(L,O.addn(1).iushrn(1)),U=this.pow(L,O),J=W;U.cmp(X)!==0;){for(var j=U,$=0;j.cmp(X)!==0;$++)j=j.redSqr();u($=0;W--){for(var Q=z.words[W],N=q-1;N>=0;N--){var U=Q>>N&1;if(X!==O[0]&&(X=this.sqr(X)),U===0&&Z===0){H=0;continue}Z<<=1,Z|=U,H++,!(H!==B&&(W!==0||N!==0))&&(X=this.mul(X,O[Z]),H=0,Z=0)}q=26}return X},F.prototype.convertTo=function(L){var z=L.umod(this.m);return z===L?z.clone():z},F.prototype.convertFrom=function(L){var z=L.clone();return z.red=null,z},c.mont=function(L){return new P(L)};function P(I){F.call(this,I),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(P,F),P.prototype.convertTo=function(L){return this.imod(L.ushln(this.shift))},P.prototype.convertFrom=function(L){var z=this.imod(L.mul(this.rinv));return z.red=null,z},P.prototype.imul=function(L,z){if(L.isZero()||z.isZero())return L.words[0]=0,L.length=1,L;var B=L.imul(z),O=B.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),W=B.isub(O).iushrn(this.shift),X=W;return W.cmp(this.m)>=0?X=W.isub(this.m):W.cmpn(0)<0&&(X=W.iadd(this.m)),X._forceRed(this)},P.prototype.mul=function(L,z){if(L.isZero()||z.isZero())return new c(0)._forceRed(this);var B=L.mul(z),O=B.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),W=B.isub(O).iushrn(this.shift),X=W;return W.cmp(this.m)>=0?X=W.isub(this.m):W.cmpn(0)<0&&(X=W.iadd(this.m)),X._forceRed(this)},P.prototype.invm=function(L){var z=this.imod(L._invmp(this.m).mul(this.r2));return z._forceRed(this)}})(n,this)},6204(n){"use strict";n.exports=a;function a(o){var s,l,u,f=o.length,c=0;for(s=0;s>>1;if(!(A<=0)){var g,E=s.mallocDouble(2*A*x),S=s.mallocInt32(x);if(x=c(w,A,E,S),x>0){if(A===1&&M)l.init(x),g=l.sweepComplete(A,b,0,x,E,S,0,x,E,S);else{var C=s.mallocDouble(2*A*T),k=s.mallocInt32(T);T=c(_,A,C,k),T>0&&(l.init(x+T),A===1?g=l.sweepBipartite(A,b,0,x,E,S,0,T,C,k):g=u(A,b,M,x,E,S,T,C,k),s.free(C),s.free(k))}s.free(E),s.free(S)}return g}}}var d;function p(w,_){d.push([w,_])}function v(w){return d=[],h(w,w,p,!0),d}function y(w,_){return d=[],h(w,_,p,!1),d}function m(w,_,b){switch(arguments.length){case 1:return v(w);case 2:return typeof _=="function"?h(w,w,_,!0):y(w,_);case 3:return h(w,_,b,!1);default:throw new Error("box-intersect: Invalid arguments")}}},2455(n,a){"use strict";function o(){function u(h,d,p,v,y,m,w,_,b,M,x){for(var T=2*h,A=v,g=T*v;Ab-_?u(h,d,p,v,y,m,w,_,b,M,x):f(h,d,p,v,y,m,w,_,b,M,x)}return c}function s(){function u(p,v,y,m,w,_,b,M,x,T,A){for(var g=2*p,E=m,S=g*m;ET-x?m?u(p,v,y,w,_,b,M,x,T,A,g):f(p,v,y,w,_,b,M,x,T,A,g):m?c(p,v,y,w,_,b,M,x,T,A,g):h(p,v,y,w,_,b,M,x,T,A,g)}return d}function l(u){return u?o():s()}a.partial=l(!1),a.full=l(!0)},7150(n,a,o){"use strict";n.exports=I;var s=o(1888),l=o(8828),u=o(2455),f=u.partial,c=u.full,h=o(855),d=o(3545),p=o(8105),v=128,y=1<<22,m=1<<22,w=p("!(lo>=p0)&&!(p1>=hi)"),_=p("lo===p0"),b=p("lo0;){Q-=1;var J=Q*A,j=S[J],$=S[J+1],ie=S[J+2],re=S[J+3],de=S[J+4],me=S[J+5],ze=Q*g,ke=C[ze],le=C[ze+1],te=me&1,Ee=!!(me&16),we=W,oe=X,Y=H,ne=q;if(te&&(we=H,oe=q,Y=W,ne=X),!(me&2&&(ie=b(L,j,$,ie,we,oe,le),$>=ie))&&!(me&4&&($=M(L,j,$,ie,we,oe,ke),$>=ie))){var ye=ie-$,V=de-re;if(Ee){if(L*ye*(ye+V)p&&y[T+d]>M;--x,T-=w){for(var A=T,g=T+w,E=0;E>>1,M=2*h,x=b,T=y[M*b+d];w<_;){if(_-w=C?(x=S,T=C):E>=D?(x=g,T=E):(x=k,T=D):C>=D?(x=S,T=C):D>=E?(x=g,T=E):(x=k,T=D);for(var I=M*(_-1),L=M*x,F=0;F=p0)&&!(p1>=hi)":d};function o(p){return a[p]}function s(p,v,y,m,w,_,b){for(var M=2*p,x=M*y,T=x,A=y,g=v,E=p+v,S=y;m>S;++S,x+=M){var C=w[x+g];if(C===b)if(A===S)A+=1,T+=M;else{for(var k=0;M>k;++k){var D=w[x+k];w[x+k]=w[T],w[T++]=D}var F=_[S];_[S]=_[A],_[A++]=F}}return A}function l(p,v,y,m,w,_,b){for(var M=2*p,x=M*y,T=x,A=y,g=v,E=p+v,S=y;m>S;++S,x+=M){var C=w[x+g];if(Ck;++k){var D=w[x+k];w[x+k]=w[T],w[T++]=D}var F=_[S];_[S]=_[A],_[A++]=F}}return A}function u(p,v,y,m,w,_,b){for(var M=2*p,x=M*y,T=x,A=y,g=v,E=p+v,S=y;m>S;++S,x+=M){var C=w[x+E];if(C<=b)if(A===S)A+=1,T+=M;else{for(var k=0;M>k;++k){var D=w[x+k];w[x+k]=w[T],w[T++]=D}var F=_[S];_[S]=_[A],_[A++]=F}}return A}function f(p,v,y,m,w,_,b){for(var M=2*p,x=M*y,T=x,A=y,g=v,E=p+v,S=y;m>S;++S,x+=M){var C=w[x+E];if(C<=b)if(A===S)A+=1,T+=M;else{for(var k=0;M>k;++k){var D=w[x+k];w[x+k]=w[T],w[T++]=D}var F=_[S];_[S]=_[A],_[A++]=F}}return A}function c(p,v,y,m,w,_,b){for(var M=2*p,x=M*y,T=x,A=y,g=v,E=p+v,S=y;m>S;++S,x+=M){var C=w[x+g],k=w[x+E];if(C<=b&&b<=k)if(A===S)A+=1,T+=M;else{for(var D=0;M>D;++D){var F=w[x+D];w[x+D]=w[T],w[T++]=F}var P=_[S];_[S]=_[A],_[A++]=P}}return A}function h(p,v,y,m,w,_,b){for(var M=2*p,x=M*y,T=x,A=y,g=v,E=p+v,S=y;m>S;++S,x+=M){var C=w[x+g],k=w[x+E];if(CD;++D){var F=w[x+D];w[x+D]=w[T],w[T++]=F}var P=_[S];_[S]=_[A],_[A++]=P}}return A}function d(p,v,y,m,w,_,b,M){for(var x=2*p,T=x*y,A=T,g=y,E=v,S=p+v,C=y;m>C;++C,T+=x){var k=w[T+E],D=w[T+S];if(!(k>=b)&&!(M>=D))if(g===C)g+=1,A+=x;else{for(var F=0;x>F;++F){var P=w[T+F];w[T+F]=w[A],w[A++]=P}var I=_[C];_[C]=_[g],_[g++]=I}}return g}},4192(n){"use strict";n.exports=o;var a=32;function o(v,y){y<=4*a?s(0,y-1,v):p(0,y-1,v)}function s(v,y,m){for(var w=2*(v+1),_=v+1;_<=y;++_){for(var b=m[w++],M=m[w++],x=_,T=w-2;x-- >v;){var A=m[T-2],g=m[T-1];if(Am[y+1]:!0}function d(v,y,m,w){v*=2;var _=w[v];return _>1,x=M-w,T=M+w,A=_,g=x,E=M,S=T,C=b,k=v+1,D=y-1,F=0;h(A,g,m)&&(F=A,A=g,g=F),h(S,C,m)&&(F=S,S=C,C=F),h(A,E,m)&&(F=A,A=E,E=F),h(g,E,m)&&(F=g,g=E,E=F),h(A,S,m)&&(F=A,A=S,S=F),h(E,S,m)&&(F=E,E=S,S=F),h(g,C,m)&&(F=g,g=C,C=F),h(g,E,m)&&(F=g,g=E,E=F),h(S,C,m)&&(F=S,S=C,C=F);for(var P=m[2*g],I=m[2*g+1],L=m[2*S],z=m[2*S+1],B=2*A,O=2*E,W=2*C,X=2*_,Z=2*M,H=2*b,q=0;q<2;++q){var Q=m[B+q],N=m[O+q],U=m[W+q];m[X+q]=Q,m[Z+q]=N,m[H+q]=U}u(x,v,m),u(T,y,m);for(var J=k;J<=D;++J)if(d(J,P,I,m))J!==k&&l(J,k,m),++k;else if(!d(J,L,z,m))for(;;)if(d(D,L,z,m)){d(D,P,I,m)?(f(J,k,D,m),++k,--D):(l(J,D,m),--D);break}else{if(--D>>1;u(w,N);for(var U=0,J=0,Z=0;Z=f)j=j-f|0,b(p,v,J--,j);else if(j>=0)b(h,d,U--,j);else if(j<=-f){j=-j-f|0;for(var $=0;$>>1;u(w,N);for(var U=0,J=0,j=0,Z=0;Z>1===w[2*Z+3]>>1&&(ie=2,Z+=1),$<0){for(var re=-($>>1)-1,de=0;de>1)-1;ie===0?b(h,d,U--,re):ie===1?b(p,v,J--,re):ie===2&&b(y,m,j--,re)}}}function A(E,S,C,k,D,F,P,I,L,z,B,O){var W=0,X=2*E,Z=S,H=S+E,q=1,Q=1;k?Q=f:q=f;for(var N=D;N>>1;u(w,$);for(var ie=0,N=0;N<$;++N){var re=w[2*N+1]|0;if(re<0){var U=-re,de=!1;if(U>=f?(de=!k,U-=f):(de=!!k,U-=1),de)M(h,d,ie++,U);else{var me=O[U],ze=X*U,ke=B[ze+S+1],le=B[ze+S+1+E];e:for(var te=0;te>>1;u(w,U);for(var J=0,H=0;H=f)h[J++]=q-f;else{q-=1;var $=B[q],ie=W*q,re=z[ie+S+1],de=z[ie+S+1+E];e:for(var me=0;me=0;--me)if(h[me]===q){for(var te=me+1;tec)throw new RangeError('The value "'+oe+'" is invalid for option "size"');var Y=new Uint8Array(oe);return Object.setPrototypeOf(Y,p.prototype),Y}function p(oe,Y,ne){if(typeof oe=="number"){if(typeof Y=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return w(oe)}return v(oe,Y,ne)}p.poolSize=8192;function v(oe,Y,ne){if(typeof oe=="string")return _(oe,Y);if(ArrayBuffer.isView(oe))return M(oe);if(oe==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof oe);if(te(oe,ArrayBuffer)||oe&&te(oe.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(te(oe,SharedArrayBuffer)||oe&&te(oe.buffer,SharedArrayBuffer)))return x(oe,Y,ne);if(typeof oe=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var ye=oe.valueOf&&oe.valueOf();if(ye!=null&&ye!==oe)return p.from(ye,Y,ne);var V=T(oe);if(V)return V;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof oe[Symbol.toPrimitive]=="function")return p.from(oe[Symbol.toPrimitive]("string"),Y,ne);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof oe)}p.from=function(oe,Y,ne){return v(oe,Y,ne)},Object.setPrototypeOf(p.prototype,Uint8Array.prototype),Object.setPrototypeOf(p,Uint8Array);function y(oe){if(typeof oe!="number")throw new TypeError('"size" argument must be of type number');if(oe<0)throw new RangeError('The value "'+oe+'" is invalid for option "size"')}function m(oe,Y,ne){return y(oe),oe<=0?d(oe):Y!==void 0?typeof ne=="string"?d(oe).fill(Y,ne):d(oe).fill(Y):d(oe)}p.alloc=function(oe,Y,ne){return m(oe,Y,ne)};function w(oe){return y(oe),d(oe<0?0:A(oe)|0)}p.allocUnsafe=function(oe){return w(oe)},p.allocUnsafeSlow=function(oe){return w(oe)};function _(oe,Y){if((typeof Y!="string"||Y==="")&&(Y="utf8"),!p.isEncoding(Y))throw new TypeError("Unknown encoding: "+Y);var ne=E(oe,Y)|0,ye=d(ne),V=ye.write(oe,Y);return V!==ne&&(ye=ye.slice(0,V)),ye}function b(oe){for(var Y=oe.length<0?0:A(oe.length)|0,ne=d(Y),ye=0;ye=c)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+c.toString(16)+" bytes");return oe|0}function g(oe){return+oe!=oe&&(oe=0),p.alloc(+oe)}p.isBuffer=function(Y){return Y!=null&&Y._isBuffer===!0&&Y!==p.prototype},p.compare=function(Y,ne){if(te(Y,Uint8Array)&&(Y=p.from(Y,Y.offset,Y.byteLength)),te(ne,Uint8Array)&&(ne=p.from(ne,ne.offset,ne.byteLength)),!p.isBuffer(Y)||!p.isBuffer(ne))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(Y===ne)return 0;for(var ye=Y.length,V=ne.length,ue=0,_e=Math.min(ye,V);ue<_e;++ue)if(Y[ue]!==ne[ue]){ye=Y[ue],V=ne[ue];break}return yeV.length?p.from(_e).copy(V,ue):Uint8Array.prototype.set.call(V,_e,ue);else if(p.isBuffer(_e))_e.copy(V,ue);else throw new TypeError('"list" argument must be an Array of Buffers');ue+=_e.length}return V};function E(oe,Y){if(p.isBuffer(oe))return oe.length;if(ArrayBuffer.isView(oe)||te(oe,ArrayBuffer))return oe.byteLength;if(typeof oe!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof oe);var ne=oe.length,ye=arguments.length>2&&arguments[2]===!0;if(!ye&&ne===0)return 0;for(var V=!1;;)switch(Y){case"ascii":case"latin1":case"binary":return ne;case"utf8":case"utf-8":return de(oe).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ne*2;case"hex":return ne>>>1;case"base64":return ke(oe).length;default:if(V)return ye?-1:de(oe).length;Y=(""+Y).toLowerCase(),V=!0}}p.byteLength=E;function S(oe,Y,ne){var ye=!1;if((Y===void 0||Y<0)&&(Y=0),Y>this.length||((ne===void 0||ne>this.length)&&(ne=this.length),ne<=0)||(ne>>>=0,Y>>>=0,ne<=Y))return"";for(oe||(oe="utf8");;)switch(oe){case"hex":return q(this,Y,ne);case"utf8":case"utf-8":return O(this,Y,ne);case"ascii":return Z(this,Y,ne);case"latin1":case"binary":return H(this,Y,ne);case"base64":return B(this,Y,ne);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Q(this,Y,ne);default:if(ye)throw new TypeError("Unknown encoding: "+oe);oe=(oe+"").toLowerCase(),ye=!0}}p.prototype._isBuffer=!0;function C(oe,Y,ne){var ye=oe[Y];oe[Y]=oe[ne],oe[ne]=ye}p.prototype.swap16=function(){var Y=this.length;if(Y%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var ne=0;nene&&(Y+=" ... "),""},f&&(p.prototype[f]=p.prototype.inspect),p.prototype.compare=function(Y,ne,ye,V,ue){if(te(Y,Uint8Array)&&(Y=p.from(Y,Y.offset,Y.byteLength)),!p.isBuffer(Y))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof Y);if(ne===void 0&&(ne=0),ye===void 0&&(ye=Y?Y.length:0),V===void 0&&(V=0),ue===void 0&&(ue=this.length),ne<0||ye>Y.length||V<0||ue>this.length)throw new RangeError("out of range index");if(V>=ue&&ne>=ye)return 0;if(V>=ue)return-1;if(ne>=ye)return 1;if(ne>>>=0,ye>>>=0,V>>>=0,ue>>>=0,this===Y)return 0;for(var _e=ue-V,xe=ye-ne,Ae=Math.min(_e,xe),se=this.slice(V,ue),pe=Y.slice(ne,ye),fe=0;fe2147483647?ne=2147483647:ne<-2147483648&&(ne=-2147483648),ne=+ne,Ee(ne)&&(ne=V?0:oe.length-1),ne<0&&(ne=oe.length+ne),ne>=oe.length){if(V)return-1;ne=oe.length-1}else if(ne<0)if(V)ne=0;else return-1;if(typeof Y=="string"&&(Y=p.from(Y,ye)),p.isBuffer(Y))return Y.length===0?-1:D(oe,Y,ne,ye,V);if(typeof Y=="number")return Y=Y&255,typeof Uint8Array.prototype.indexOf=="function"?V?Uint8Array.prototype.indexOf.call(oe,Y,ne):Uint8Array.prototype.lastIndexOf.call(oe,Y,ne):D(oe,[Y],ne,ye,V);throw new TypeError("val must be string, number or Buffer")}function D(oe,Y,ne,ye,V){var ue=1,_e=oe.length,xe=Y.length;if(ye!==void 0&&(ye=String(ye).toLowerCase(),ye==="ucs2"||ye==="ucs-2"||ye==="utf16le"||ye==="utf-16le")){if(oe.length<2||Y.length<2)return-1;ue=2,_e/=2,xe/=2,ne/=2}function Ae(We,Ke){return ue===1?We[Ke]:We.readUInt16BE(Ke*ue)}var se;if(V){var pe=-1;for(se=ne;se<_e;se++)if(Ae(oe,se)===Ae(Y,pe===-1?0:se-pe)){if(pe===-1&&(pe=se),se-pe+1===xe)return pe*ue}else pe!==-1&&(se-=se-pe),pe=-1}else for(ne+xe>_e&&(ne=_e-xe),se=ne;se>=0;se--){for(var fe=!0,Re=0;ReV&&(ye=V)):ye=V;var ue=Y.length;ye>ue/2&&(ye=ue/2);for(var _e=0;_e>>0,isFinite(ye)?(ye=ye>>>0,V===void 0&&(V="utf8")):(V=ye,ye=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var ue=this.length-ne;if((ye===void 0||ye>ue)&&(ye=ue),Y.length>0&&(ye<0||ne<0)||ne>this.length)throw new RangeError("Attempt to write outside buffer bounds");V||(V="utf8");for(var _e=!1;;)switch(V){case"hex":return F(this,Y,ne,ye);case"utf8":case"utf-8":return P(this,Y,ne,ye);case"ascii":case"latin1":case"binary":return I(this,Y,ne,ye);case"base64":return L(this,Y,ne,ye);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return z(this,Y,ne,ye);default:if(_e)throw new TypeError("Unknown encoding: "+V);V=(""+V).toLowerCase(),_e=!0}},p.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function B(oe,Y,ne){return Y===0&&ne===oe.length?l.fromByteArray(oe):l.fromByteArray(oe.slice(Y,ne))}function O(oe,Y,ne){ne=Math.min(oe.length,ne);for(var ye=[],V=Y;V239?4:ue>223?3:ue>191?2:1;if(V+xe<=ne){var Ae,se,pe,fe;switch(xe){case 1:ue<128&&(_e=ue);break;case 2:Ae=oe[V+1],(Ae&192)===128&&(fe=(ue&31)<<6|Ae&63,fe>127&&(_e=fe));break;case 3:Ae=oe[V+1],se=oe[V+2],(Ae&192)===128&&(se&192)===128&&(fe=(ue&15)<<12|(Ae&63)<<6|se&63,fe>2047&&(fe<55296||fe>57343)&&(_e=fe));break;case 4:Ae=oe[V+1],se=oe[V+2],pe=oe[V+3],(Ae&192)===128&&(se&192)===128&&(pe&192)===128&&(fe=(ue&15)<<18|(Ae&63)<<12|(se&63)<<6|pe&63,fe>65535&&fe<1114112&&(_e=fe))}}_e===null?(_e=65533,xe=1):_e>65535&&(_e-=65536,ye.push(_e>>>10&1023|55296),_e=56320|_e&1023),ye.push(_e),V+=xe}return X(ye)}var W=4096;function X(oe){var Y=oe.length;if(Y<=W)return String.fromCharCode.apply(String,oe);for(var ne="",ye=0;yeye)&&(ne=ye);for(var V="",ue=Y;ueye&&(Y=ye),ne<0?(ne+=ye,ne<0&&(ne=0)):ne>ye&&(ne=ye),nene)throw new RangeError("Trying to access beyond buffer length")}p.prototype.readUintLE=p.prototype.readUIntLE=function(Y,ne,ye){Y=Y>>>0,ne=ne>>>0,ye||N(Y,ne,this.length);for(var V=this[Y],ue=1,_e=0;++_e>>0,ne=ne>>>0,ye||N(Y,ne,this.length);for(var V=this[Y+--ne],ue=1;ne>0&&(ue*=256);)V+=this[Y+--ne]*ue;return V},p.prototype.readUint8=p.prototype.readUInt8=function(Y,ne){return Y=Y>>>0,ne||N(Y,1,this.length),this[Y]},p.prototype.readUint16LE=p.prototype.readUInt16LE=function(Y,ne){return Y=Y>>>0,ne||N(Y,2,this.length),this[Y]|this[Y+1]<<8},p.prototype.readUint16BE=p.prototype.readUInt16BE=function(Y,ne){return Y=Y>>>0,ne||N(Y,2,this.length),this[Y]<<8|this[Y+1]},p.prototype.readUint32LE=p.prototype.readUInt32LE=function(Y,ne){return Y=Y>>>0,ne||N(Y,4,this.length),(this[Y]|this[Y+1]<<8|this[Y+2]<<16)+this[Y+3]*16777216},p.prototype.readUint32BE=p.prototype.readUInt32BE=function(Y,ne){return Y=Y>>>0,ne||N(Y,4,this.length),this[Y]*16777216+(this[Y+1]<<16|this[Y+2]<<8|this[Y+3])},p.prototype.readIntLE=function(Y,ne,ye){Y=Y>>>0,ne=ne>>>0,ye||N(Y,ne,this.length);for(var V=this[Y],ue=1,_e=0;++_e=ue&&(V-=Math.pow(2,8*ne)),V},p.prototype.readIntBE=function(Y,ne,ye){Y=Y>>>0,ne=ne>>>0,ye||N(Y,ne,this.length);for(var V=ne,ue=1,_e=this[Y+--V];V>0&&(ue*=256);)_e+=this[Y+--V]*ue;return ue*=128,_e>=ue&&(_e-=Math.pow(2,8*ne)),_e},p.prototype.readInt8=function(Y,ne){return Y=Y>>>0,ne||N(Y,1,this.length),this[Y]&128?(255-this[Y]+1)*-1:this[Y]},p.prototype.readInt16LE=function(Y,ne){Y=Y>>>0,ne||N(Y,2,this.length);var ye=this[Y]|this[Y+1]<<8;return ye&32768?ye|4294901760:ye},p.prototype.readInt16BE=function(Y,ne){Y=Y>>>0,ne||N(Y,2,this.length);var ye=this[Y+1]|this[Y]<<8;return ye&32768?ye|4294901760:ye},p.prototype.readInt32LE=function(Y,ne){return Y=Y>>>0,ne||N(Y,4,this.length),this[Y]|this[Y+1]<<8|this[Y+2]<<16|this[Y+3]<<24},p.prototype.readInt32BE=function(Y,ne){return Y=Y>>>0,ne||N(Y,4,this.length),this[Y]<<24|this[Y+1]<<16|this[Y+2]<<8|this[Y+3]},p.prototype.readFloatLE=function(Y,ne){return Y=Y>>>0,ne||N(Y,4,this.length),u.read(this,Y,!0,23,4)},p.prototype.readFloatBE=function(Y,ne){return Y=Y>>>0,ne||N(Y,4,this.length),u.read(this,Y,!1,23,4)},p.prototype.readDoubleLE=function(Y,ne){return Y=Y>>>0,ne||N(Y,8,this.length),u.read(this,Y,!0,52,8)},p.prototype.readDoubleBE=function(Y,ne){return Y=Y>>>0,ne||N(Y,8,this.length),u.read(this,Y,!1,52,8)};function U(oe,Y,ne,ye,V,ue){if(!p.isBuffer(oe))throw new TypeError('"buffer" argument must be a Buffer instance');if(Y>V||Yoe.length)throw new RangeError("Index out of range")}p.prototype.writeUintLE=p.prototype.writeUIntLE=function(Y,ne,ye,V){if(Y=+Y,ne=ne>>>0,ye=ye>>>0,!V){var ue=Math.pow(2,8*ye)-1;U(this,Y,ne,ye,ue,0)}var _e=1,xe=0;for(this[ne]=Y&255;++xe>>0,ye=ye>>>0,!V){var ue=Math.pow(2,8*ye)-1;U(this,Y,ne,ye,ue,0)}var _e=ye-1,xe=1;for(this[ne+_e]=Y&255;--_e>=0&&(xe*=256);)this[ne+_e]=Y/xe&255;return ne+ye},p.prototype.writeUint8=p.prototype.writeUInt8=function(Y,ne,ye){return Y=+Y,ne=ne>>>0,ye||U(this,Y,ne,1,255,0),this[ne]=Y&255,ne+1},p.prototype.writeUint16LE=p.prototype.writeUInt16LE=function(Y,ne,ye){return Y=+Y,ne=ne>>>0,ye||U(this,Y,ne,2,65535,0),this[ne]=Y&255,this[ne+1]=Y>>>8,ne+2},p.prototype.writeUint16BE=p.prototype.writeUInt16BE=function(Y,ne,ye){return Y=+Y,ne=ne>>>0,ye||U(this,Y,ne,2,65535,0),this[ne]=Y>>>8,this[ne+1]=Y&255,ne+2},p.prototype.writeUint32LE=p.prototype.writeUInt32LE=function(Y,ne,ye){return Y=+Y,ne=ne>>>0,ye||U(this,Y,ne,4,4294967295,0),this[ne+3]=Y>>>24,this[ne+2]=Y>>>16,this[ne+1]=Y>>>8,this[ne]=Y&255,ne+4},p.prototype.writeUint32BE=p.prototype.writeUInt32BE=function(Y,ne,ye){return Y=+Y,ne=ne>>>0,ye||U(this,Y,ne,4,4294967295,0),this[ne]=Y>>>24,this[ne+1]=Y>>>16,this[ne+2]=Y>>>8,this[ne+3]=Y&255,ne+4},p.prototype.writeIntLE=function(Y,ne,ye,V){if(Y=+Y,ne=ne>>>0,!V){var ue=Math.pow(2,8*ye-1);U(this,Y,ne,ye,ue-1,-ue)}var _e=0,xe=1,Ae=0;for(this[ne]=Y&255;++_e>0)-Ae&255;return ne+ye},p.prototype.writeIntBE=function(Y,ne,ye,V){if(Y=+Y,ne=ne>>>0,!V){var ue=Math.pow(2,8*ye-1);U(this,Y,ne,ye,ue-1,-ue)}var _e=ye-1,xe=1,Ae=0;for(this[ne+_e]=Y&255;--_e>=0&&(xe*=256);)Y<0&&Ae===0&&this[ne+_e+1]!==0&&(Ae=1),this[ne+_e]=(Y/xe>>0)-Ae&255;return ne+ye},p.prototype.writeInt8=function(Y,ne,ye){return Y=+Y,ne=ne>>>0,ye||U(this,Y,ne,1,127,-128),Y<0&&(Y=255+Y+1),this[ne]=Y&255,ne+1},p.prototype.writeInt16LE=function(Y,ne,ye){return Y=+Y,ne=ne>>>0,ye||U(this,Y,ne,2,32767,-32768),this[ne]=Y&255,this[ne+1]=Y>>>8,ne+2},p.prototype.writeInt16BE=function(Y,ne,ye){return Y=+Y,ne=ne>>>0,ye||U(this,Y,ne,2,32767,-32768),this[ne]=Y>>>8,this[ne+1]=Y&255,ne+2},p.prototype.writeInt32LE=function(Y,ne,ye){return Y=+Y,ne=ne>>>0,ye||U(this,Y,ne,4,2147483647,-2147483648),this[ne]=Y&255,this[ne+1]=Y>>>8,this[ne+2]=Y>>>16,this[ne+3]=Y>>>24,ne+4},p.prototype.writeInt32BE=function(Y,ne,ye){return Y=+Y,ne=ne>>>0,ye||U(this,Y,ne,4,2147483647,-2147483648),Y<0&&(Y=4294967295+Y+1),this[ne]=Y>>>24,this[ne+1]=Y>>>16,this[ne+2]=Y>>>8,this[ne+3]=Y&255,ne+4};function J(oe,Y,ne,ye,V,ue){if(ne+ye>oe.length)throw new RangeError("Index out of range");if(ne<0)throw new RangeError("Index out of range")}function j(oe,Y,ne,ye,V){return Y=+Y,ne=ne>>>0,V||J(oe,Y,ne,4,34028234663852886e22,-34028234663852886e22),u.write(oe,Y,ne,ye,23,4),ne+4}p.prototype.writeFloatLE=function(Y,ne,ye){return j(this,Y,ne,!0,ye)},p.prototype.writeFloatBE=function(Y,ne,ye){return j(this,Y,ne,!1,ye)};function $(oe,Y,ne,ye,V){return Y=+Y,ne=ne>>>0,V||J(oe,Y,ne,8,17976931348623157e292,-17976931348623157e292),u.write(oe,Y,ne,ye,52,8),ne+8}p.prototype.writeDoubleLE=function(Y,ne,ye){return $(this,Y,ne,!0,ye)},p.prototype.writeDoubleBE=function(Y,ne,ye){return $(this,Y,ne,!1,ye)},p.prototype.copy=function(Y,ne,ye,V){if(!p.isBuffer(Y))throw new TypeError("argument should be a Buffer");if(ye||(ye=0),!V&&V!==0&&(V=this.length),ne>=Y.length&&(ne=Y.length),ne||(ne=0),V>0&&V=this.length)throw new RangeError("Index out of range");if(V<0)throw new RangeError("sourceEnd out of bounds");V>this.length&&(V=this.length),Y.length-ne>>0,ye=ye===void 0?this.length:ye>>>0,Y||(Y=0);var _e;if(typeof Y=="number")for(_e=ne;_e55295&&ne<57344){if(!V){if(ne>56319){(Y-=3)>-1&&ue.push(239,191,189);continue}else if(_e+1===ye){(Y-=3)>-1&&ue.push(239,191,189);continue}V=ne;continue}if(ne<56320){(Y-=3)>-1&&ue.push(239,191,189),V=ne;continue}ne=(V-55296<<10|ne-56320)+65536}else V&&(Y-=3)>-1&&ue.push(239,191,189);if(V=null,ne<128){if((Y-=1)<0)break;ue.push(ne)}else if(ne<2048){if((Y-=2)<0)break;ue.push(ne>>6|192,ne&63|128)}else if(ne<65536){if((Y-=3)<0)break;ue.push(ne>>12|224,ne>>6&63|128,ne&63|128)}else if(ne<1114112){if((Y-=4)<0)break;ue.push(ne>>18|240,ne>>12&63|128,ne>>6&63|128,ne&63|128)}else throw new Error("Invalid code point")}return ue}function me(oe){for(var Y=[],ne=0;ne>8,V=ne%256,ue.push(V),ue.push(ye);return ue}function ke(oe){return l.toByteArray(re(oe))}function le(oe,Y,ne,ye){for(var V=0;V=Y.length||V>=oe.length);++V)Y[V+ne]=oe[V];return V}function te(oe,Y){return oe instanceof Y||oe!=null&&oe.constructor!=null&&oe.constructor.name!=null&&oe.constructor.name===Y.name}function Ee(oe){return oe!==oe}var we=(function(){for(var oe="0123456789abcdef",Y=new Array(256),ne=0;ne<16;++ne)for(var ye=ne*16,V=0;V<16;++V)Y[ye+V]=oe[ne]+oe[V];return Y})()},2538(n,a,o){"use strict";var s=o(8902),l=o(5542),u=o(2272),f=o(5023);n.exports=v;function c(y){return[Math.min(y[0],y[1]),Math.max(y[0],y[1])]}function h(y,m){return y[0]-m[0]||y[1]-m[1]}function d(y){return y.map(c).sort(h)}function p(y,m,w){return m in y?y[m]:w}function v(y,m,w){Array.isArray(m)?(w=w||{},m=m||[]):(w=m||{},m=[]);var _=!!p(w,"delaunay",!0),b=!!p(w,"interior",!0),M=!!p(w,"exterior",!0),x=!!p(w,"infinity",!1);if(!b&&!M||y.length===0)return[];var T=s(y,m);if(_||b!==M||x){for(var A=l(y.length,d(m)),g=0;g0;){for(var _=d.pop(),y=d.pop(),b=-1,M=-1,m=v[y],T=1;T=0||(h.flip(y,_),u(c,h,d,b,y,M),u(c,h,d,y,M,b),u(c,h,d,M,_,b),u(c,h,d,_,b,M))}}},5023(n,a,o){"use strict";var s=o(2478);n.exports=d;function l(p,v,y,m,w,_,b){this.cells=p,this.neighbor=v,this.flags=m,this.constraint=y,this.active=w,this.next=_,this.boundary=b}var u=l.prototype;function f(p,v){return p[0]-v[0]||p[1]-v[1]||p[2]-v[2]}u.locate=(function(){var p=[0,0,0];return function(v,y,m){var w=v,_=y,b=m;return y0||b.length>0;){for(;_.length>0;){var g=_.pop();if(M[g]!==-w){M[g]=w;for(var E=x[g],S=0;S<3;++S){var C=A[3*g+S];C>=0&&M[C]===0&&(T[3*g+S]?b.push(C):(_.push(C),M[C]=w))}}}var k=b;b=_,_=k,b.length=0,w=-w}var D=h(x,M,v);return y?D.concat(m.boundary):D}},8902(n,a,o){"use strict";var s=o(2478),l=o(3250)[3],u=0,f=1,c=2;n.exports=b;function h(M,x,T,A,g){this.a=M,this.b=x,this.idx=T,this.lowerIds=A,this.upperIds=g}function d(M,x,T,A){this.a=M,this.b=x,this.type=T,this.idx=A}function p(M,x){var T=M.a[0]-x.a[0]||M.a[1]-x.a[1]||M.type-x.type;return T||M.type!==u&&(T=l(M.a,M.b,x.b),T)?T:M.idx-x.idx}function v(M,x){return l(M.a,M.b,x)}function y(M,x,T,A,g){for(var E=s.lt(x,A,v),S=s.gt(x,A,v),C=E;C1&&l(T[D[P-2]],T[D[P-1]],A)>0;)M.push([D[P-1],D[P-2],g]),P-=1;D.length=P,D.push(g);for(var F=k.upperIds,P=F.length;P>1&&l(T[F[P-2]],T[F[P-1]],A)<0;)M.push([F[P-2],F[P-1],g]),P-=1;F.length=P,F.push(g)}}function m(M,x){var T;return M.a[0]k[0]&&g.push(new d(k,C,c,E),new d(C,k,f,E))}g.sort(p);for(var D=g[0].a[0]-(1+Math.abs(g[0].a[0]))*Math.pow(2,-52),F=[new h([D,1],[D,0],-1,[],[],[],[])],P=[],E=0,I=g.length;E=0}})(),u.removeTriangle=function(h,d,p){var v=this.stars;f(v[h],d,p),f(v[d],p,h),f(v[p],h,d)},u.addTriangle=function(h,d,p){var v=this.stars;v[h].push(d,p),v[d].push(p,h),v[p].push(h,d)},u.opposite=function(h,d){for(var p=this.stars[d],v=1,y=p.length;v=0;--L){var Q=P[L];z=Q[0];var N=D[z],U=N[0],J=N[1],j=k[U],$=k[J];if((j[0]-$[0]||j[1]-$[1])<0){var ie=U;U=J,J=ie}N[0]=U;var re=N[1]=Q[1],de;for(I&&(de=N[2]);L>0&&P[L-1][0]===z;){var Q=P[--L],me=Q[1];I?D.push([re,me,de]):D.push([re,me]),re=me}I?D.push([re,J,de]):D.push([re,J])}return B}function x(k,D,F){for(var P=D.length,I=new s(P),L=[],z=0;zD[2]?1:0)}function g(k,D,F){if(k.length!==0){if(D)for(var P=0;P0||z.length>0}function C(k,D,F){var P;if(F){P=D;for(var I=new Array(D.length),L=0;LM+1)throw new Error(_+" map requires nshades to be at least size "+w.length);Array.isArray(d.alpha)?d.alpha.length!==2?x=[1,1]:x=d.alpha.slice():typeof d.alpha=="number"?x=[d.alpha,d.alpha]:x=[1,1],p=w.map(function(C){return Math.round(C.index*M)}),x[0]=Math.min(Math.max(x[0],0),1),x[1]=Math.min(Math.max(x[1],0),1);var A=w.map(function(C,k){var D=w[k].index,F=w[k].rgb.slice();return F.length===4&&F[3]>=0&&F[3]<=1||(F[3]=x[0]+(x[1]-x[0])*D),F}),g=[];for(T=0;T=0}function d(p,v,y,m){var w=s(v,y,m);if(w===0){var _=l(s(p,v,y)),b=l(s(p,v,m));if(_===b){if(_===0){var M=h(p,v,y),x=h(p,v,m);return M===x?0:M?1:-1}return 0}else{if(b===0)return _>0||h(p,v,m)?-1:1;if(_===0)return b>0||h(p,v,y)?1:-1}return l(b-_)}var T=s(p,v,y);if(T>0)return w>0&&s(p,v,m)>0?1:-1;if(T<0)return w>0||s(p,v,m)>0?1:-1;var A=s(p,v,m);return A>0||h(p,v,y)?1:-1}},8572(n){"use strict";n.exports=function(o){return o<0?-1:o>0?1:0}},8507(n){n.exports=s;var a=Math.min;function o(l,u){return l-u}function s(l,u){var f=l.length,c=l.length-u.length;if(c)return c;switch(f){case 0:return 0;case 1:return l[0]-u[0];case 2:return l[0]+l[1]-u[0]-u[1]||a(l[0],l[1])-a(u[0],u[1]);case 3:var h=l[0]+l[1],d=u[0]+u[1];if(c=h+l[2]-(d+u[2]),c)return c;var p=a(l[0],l[1]),v=a(u[0],u[1]);return a(p,l[2])-a(v,u[2])||a(p+l[2],h)-a(v+u[2],d);case 4:var y=l[0],m=l[1],w=l[2],_=l[3],b=u[0],M=u[1],x=u[2],T=u[3];return y+m+w+_-(b+M+x+T)||a(y,m,w,_)-a(b,M,x,T,b)||a(y+m,y+w,y+_,m+w,m+_,w+_)-a(b+M,b+x,b+T,M+x,M+T,x+T)||a(y+m+w,y+m+_,y+w+_,m+w+_)-a(b+M+x,b+M+T,b+x+T,M+x+T);default:for(var A=l.slice().sort(o),g=u.slice().sort(o),E=0;Eo[l][0]&&(l=u);return sl?[[l],[s]]:[[s]]}},4750(n,a,o){"use strict";n.exports=l;var s=o(3090);function l(u){var f=s(u),c=f.length;if(c<=2)return[];for(var h=new Array(c),d=f[c-1],p=0;p=d[b]&&(_+=1);m[w]=_}}return h}function c(h,d){try{return s(h,!0)}catch(m){var p=l(h);if(p.length<=d)return[];var v=u(h,p),y=s(v,!0);return f(y,p)}}},4769(n){"use strict";function a(s,l,u,f,c,h){var d=6*c*c-6*c,p=3*c*c-4*c+1,v=-6*c*c+6*c,y=3*c*c-2*c;if(s.length){h||(h=new Array(s.length));for(var m=s.length-1;m>=0;--m)h[m]=d*s[m]+p*l[m]+v*u[m]+y*f[m];return h}return d*s+p*l+v*u[m]+y*f}function o(s,l,u,f,c,h){var d=c-1,p=c*c,v=d*d,y=(1+2*c)*v,m=c*v,w=p*(3-2*c),_=p*d;if(s.length){h||(h=new Array(s.length));for(var b=s.length-1;b>=0;--b)h[b]=y*s[b]+m*l[b]+w*u[b]+_*f[b];return h}return y*s+m*l+w*u+_*f}n.exports=o,n.exports.derivative=a},7642(n,a,o){"use strict";var s=o(8954),l=o(1682);n.exports=h;function u(d,p){this.point=d,this.index=p}function f(d,p){for(var v=d.point,y=p.point,m=v.length,w=0;w=2)return!1;F[I]=L}return!0}):D=D.filter(function(F){for(var P=0;P<=y;++P){var I=E[F[P]];if(I<0)return!1;F[P]=I}return!0}),y&1)for(var _=0;_>>31},n.exports.exponent=function(w){var _=n.exports.hi(w);return(_<<1>>>21)-1023},n.exports.fraction=function(w){var _=n.exports.lo(w),b=n.exports.hi(w),M=b&(1<<20)-1;return b&2146435072&&(M+=1048576),[_,M]},n.exports.denormalized=function(w){var _=n.exports.hi(w);return!(_&2146435072)}},1338(n){"use strict";function a(l,u,f){var c=l[f]|0;if(c<=0)return[];var h=new Array(c),d;if(f===l.length-1)for(d=0;d0)return o(l|0,u);break;case"object":if(typeof l.length=="number")return a(l,u,0);break}return[]}n.exports=s},3134(n,a,o){"use strict";n.exports=l;var s=o(1682);function l(u,f){var c=u.length;if(typeof f!="number"){f=0;for(var h=0;h=y-1)for(var T=_.length-1,g=p-v[y-1],A=0;A=y-1)for(var x=_.length-1,T=p-v[y-1],A=0;A=0;--y)if(p[--v])return!1;return!0},c.jump=function(p){var v=this.lastT(),y=this.dimension;if(!(p0;--A)m.push(u(M[A-1],x[A-1],arguments[A])),w.push(0)}},c.push=function(p){var v=this.lastT(),y=this.dimension;if(!(p1e-6?1/b:0;this._time.push(p);for(var g=y;g>0;--g){var E=u(x[g-1],T[g-1],arguments[g]);m.push(E),w.push((E-m[_++])*A)}}},c.set=function(p){var v=this.dimension;if(!(p0;--M)y.push(u(_[M-1],b[M-1],arguments[M])),m.push(0)}},c.move=function(p){var v=this.lastT(),y=this.dimension;if(!(p<=v||arguments.length!==y+1)){var m=this._state,w=this._velocity,_=m.length-this.dimension,b=this.bounds,M=b[0],x=b[1],T=p-v,A=T>1e-6?1/T:0;this._time.push(p);for(var g=y;g>0;--g){var E=arguments[g];m.push(u(M[g-1],x[g-1],m[_++]+E)),w.push(E*A)}}},c.idle=function(p){var v=this.lastT();if(!(p=0;--A)m.push(u(M[A],x[A],m[_]+T*w[_])),w.push(0),_+=1}};function h(p){for(var v=new Array(p),y=0;y=0;--k){var g=E[k];S[k]<=0?E[k]=new s(g._color,g.key,g.value,E[k+1],g.right,g._count+1):E[k]=new s(g._color,g.key,g.value,g.left,E[k+1],g._count+1)}for(var k=E.length-1;k>1;--k){var D=E[k-1],g=E[k];if(D._color===o||g._color===o)break;var F=E[k-2];if(F.left===D)if(D.left===g){var P=F.right;if(P&&P._color===a)D._color=o,F.right=u(o,P),F._color=a,k-=1;else{if(F._color=a,F.left=D.right,D._color=o,D.right=F,E[k-2]=D,E[k-1]=g,f(F),f(D),k>=3){var I=E[k-3];I.left===F?I.left=D:I.right=D}break}}else{var P=F.right;if(P&&P._color===a)D._color=o,F.right=u(o,P),F._color=a,k-=1;else{if(D.right=g.left,F._color=a,F.left=g.right,g._color=o,g.left=D,g.right=F,E[k-2]=g,E[k-1]=D,f(F),f(D),f(g),k>=3){var I=E[k-3];I.left===F?I.left=g:I.right=g}break}}else if(D.right===g){var P=F.left;if(P&&P._color===a)D._color=o,F.left=u(o,P),F._color=a,k-=1;else{if(F._color=a,F.right=D.left,D._color=o,D.left=F,E[k-2]=D,E[k-1]=g,f(F),f(D),k>=3){var I=E[k-3];I.right===F?I.right=D:I.left=D}break}}else{var P=F.left;if(P&&P._color===a)D._color=o,F.left=u(o,P),F._color=a,k-=1;else{if(D.left=g.right,F._color=a,F.right=g.left,g._color=o,g.right=D,g.left=F,E[k-2]=g,E[k-1]=D,f(F),f(D),f(g),k>=3){var I=E[k-3];I.right===F?I.right=g:I.left=g}break}}}return E[0]._color=o,new c(A,E[0])};function d(x,T){if(T.left){var A=d(x,T.left);if(A)return A}var A=x(T.key,T.value);if(A)return A;if(T.right)return d(x,T.right)}function p(x,T,A,g){var E=T(x,g.key);if(E<=0){if(g.left){var S=p(x,T,A,g.left);if(S)return S}var S=A(g.key,g.value);if(S)return S}if(g.right)return p(x,T,A,g.right)}function v(x,T,A,g,E){var S=A(x,E.key),C=A(T,E.key),k;if(S<=0&&(E.left&&(k=v(x,T,A,g,E.left),k)||C>0&&(k=g(E.key,E.value),k)))return k;if(C>0&&E.right)return v(x,T,A,g,E.right)}h.forEach=function(T,A,g){if(this.root)switch(arguments.length){case 1:return d(T,this.root);case 2:return p(A,this._compare,T,this.root);case 3:return this._compare(A,g)>=0?void 0:v(A,g,this._compare,T,this.root)}},Object.defineProperty(h,"begin",{get:function(){for(var x=[],T=this.root;T;)x.push(T),T=T.left;return new y(this,x)}}),Object.defineProperty(h,"end",{get:function(){for(var x=[],T=this.root;T;)x.push(T),T=T.right;return new y(this,x)}}),h.at=function(x){if(x<0)return new y(this,[]);for(var T=this.root,A=[];;){if(A.push(T),T.left){if(x=T.right._count)break;T=T.right}else break}return new y(this,[])},h.ge=function(x){for(var T=this._compare,A=this.root,g=[],E=0;A;){var S=T(x,A.key);g.push(A),S<=0&&(E=g.length),S<=0?A=A.left:A=A.right}return g.length=E,new y(this,g)},h.gt=function(x){for(var T=this._compare,A=this.root,g=[],E=0;A;){var S=T(x,A.key);g.push(A),S<0&&(E=g.length),S<0?A=A.left:A=A.right}return g.length=E,new y(this,g)},h.lt=function(x){for(var T=this._compare,A=this.root,g=[],E=0;A;){var S=T(x,A.key);g.push(A),S>0&&(E=g.length),S<=0?A=A.left:A=A.right}return g.length=E,new y(this,g)},h.le=function(x){for(var T=this._compare,A=this.root,g=[],E=0;A;){var S=T(x,A.key);g.push(A),S>=0&&(E=g.length),S<0?A=A.left:A=A.right}return g.length=E,new y(this,g)},h.find=function(x){for(var T=this._compare,A=this.root,g=[];A;){var E=T(x,A.key);if(g.push(A),E===0)return new y(this,g);E<=0?A=A.left:A=A.right}return new y(this,[])},h.remove=function(x){var T=this.find(x);return T?T.remove():this},h.get=function(x){for(var T=this._compare,A=this.root;A;){var g=T(x,A.key);if(g===0)return A.value;g<=0?A=A.left:A=A.right}};function y(x,T){this.tree=x,this._stack=T}var m=y.prototype;Object.defineProperty(m,"valid",{get:function(){return this._stack.length>0}}),Object.defineProperty(m,"node",{get:function(){return this._stack.length>0?this._stack[this._stack.length-1]:null},enumerable:!0}),m.clone=function(){return new y(this.tree,this._stack.slice())};function w(x,T){x.key=T.key,x.value=T.value,x.left=T.left,x.right=T.right,x._color=T._color,x._count=T._count}function _(x){for(var T,A,g,E,S=x.length-1;S>=0;--S){if(T=x[S],S===0){T._color=o;return}if(A=x[S-1],A.left===T){if(g=A.right,g.right&&g.right._color===a){if(g=A.right=l(g),E=g.right=l(g.right),A.right=g.left,g.left=A,g.right=E,g._color=A._color,T._color=o,A._color=o,E._color=o,f(A),f(g),S>1){var C=x[S-2];C.left===A?C.left=g:C.right=g}x[S-1]=g;return}else if(g.left&&g.left._color===a){if(g=A.right=l(g),E=g.left=l(g.left),A.right=E.left,g.left=E.right,E.left=A,E.right=g,E._color=A._color,A._color=o,g._color=o,T._color=o,f(A),f(g),f(E),S>1){var C=x[S-2];C.left===A?C.left=E:C.right=E}x[S-1]=E;return}if(g._color===o)if(A._color===a){A._color=o,A.right=u(a,g);return}else{A.right=u(a,g);continue}else{if(g=l(g),A.right=g.left,g.left=A,g._color=A._color,A._color=a,f(A),f(g),S>1){var C=x[S-2];C.left===A?C.left=g:C.right=g}x[S-1]=g,x[S]=A,S+11){var C=x[S-2];C.right===A?C.right=g:C.left=g}x[S-1]=g;return}else if(g.right&&g.right._color===a){if(g=A.left=l(g),E=g.right=l(g.right),A.left=E.right,g.right=E.left,E.right=A,E.left=g,E._color=A._color,A._color=o,g._color=o,T._color=o,f(A),f(g),f(E),S>1){var C=x[S-2];C.right===A?C.right=E:C.left=E}x[S-1]=E;return}if(g._color===o)if(A._color===a){A._color=o,A.left=u(a,g);return}else{A.left=u(a,g);continue}else{if(g=l(g),A.left=g.right,g.right=A,g._color=A._color,A._color=a,f(A),f(g),S>1){var C=x[S-2];C.right===A?C.right=g:C.left=g}x[S-1]=g,x[S]=A,S+1=0;--g){var A=x[g];A.left===x[g+1]?T[g]=new s(A._color,A.key,A.value,T[g+1],A.right,A._count):T[g]=new s(A._color,A.key,A.value,A.left,T[g+1],A._count)}if(A=T[T.length-1],A.left&&A.right){var E=T.length;for(A=A.left;A.right;)T.push(A),A=A.right;var S=T[E-1];T.push(new s(A._color,S.key,S.value,A.left,A.right,A._count)),T[E-1].key=A.key,T[E-1].value=A.value;for(var g=T.length-2;g>=E;--g)A=T[g],T[g]=new s(A._color,A.key,A.value,A.left,T[g+1],A._count);T[E-1].left=T[E]}if(A=T[T.length-1],A._color===a){var C=T[T.length-2];C.left===A?C.left=null:C.right===A&&(C.right=null),T.pop();for(var g=0;g0)return this._stack[this._stack.length-1].key},enumerable:!0}),Object.defineProperty(m,"value",{get:function(){if(this._stack.length>0)return this._stack[this._stack.length-1].value},enumerable:!0}),Object.defineProperty(m,"index",{get:function(){var x=0,T=this._stack;if(T.length===0){var A=this.tree.root;return A?A._count:0}else T[T.length-1].left&&(x=T[T.length-1].left._count);for(var g=T.length-2;g>=0;--g)T[g+1]===T[g].right&&(++x,T[g].left&&(x+=T[g].left._count));return x},enumerable:!0}),m.next=function(){var x=this._stack;if(x.length!==0){var T=x[x.length-1];if(T.right)for(T=T.right;T;)x.push(T),T=T.left;else for(x.pop();x.length>0&&x[x.length-1].right===T;)T=x[x.length-1],x.pop()}},Object.defineProperty(m,"hasNext",{get:function(){var x=this._stack;if(x.length===0)return!1;if(x[x.length-1].right)return!0;for(var T=x.length-1;T>0;--T)if(x[T-1].left===x[T])return!0;return!1}}),m.update=function(x){var T=this._stack;if(T.length===0)throw new Error("Can't update empty node!");var A=new Array(T.length),g=T[T.length-1];A[A.length-1]=new s(g._color,g.key,x,g.left,g.right,g._count);for(var E=T.length-2;E>=0;--E)g=T[E],g.left===T[E+1]?A[E]=new s(g._color,g.key,g.value,A[E+1],g.right,g._count):A[E]=new s(g._color,g.key,g.value,g.left,A[E+1],g._count);return new c(this.tree._compare,A[0])},m.prev=function(){var x=this._stack;if(x.length!==0){var T=x[x.length-1];if(T.left)for(T=T.left;T;)x.push(T),T=T.right;else for(x.pop();x.length>0&&x[x.length-1].left===T;)T=x[x.length-1],x.pop()}},Object.defineProperty(m,"hasPrev",{get:function(){var x=this._stack;if(x.length===0)return!1;if(x[x.length-1].left)return!0;for(var T=x.length-1;T>0;--T)if(x[T-1].right===x[T])return!0;return!1}});function b(x,T){return xT?1:0}function M(x){return new c(x||b,null)}},3837(n,a,o){"use strict";n.exports=k;var s=o(4935),l=o(501),u=o(5304),f=o(6429),c=o(6444),h=new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]),d=ArrayBuffer,p=DataView;function v(D){return d.isView(D)&&!(D instanceof p)}function y(D){return Array.isArray(D)||v(D)}function m(D,F){return D[0]=F[0],D[1]=F[1],D[2]=F[2],D}function w(D){this.gl=D,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.tickFontStyle=["normal","normal","normal"],this.tickFontWeight=["normal","normal","normal"],this.tickFontVariant=["normal","normal","normal"],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","sans-serif","sans-serif"],this.labelFontStyle=["normal","normal","normal"],this.labelFontWeight=["normal","normal","normal"],this.labelFontVariant=["normal","normal","normal"],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=u(D)}var _=w.prototype;_.update=function(D){D=D||{};function F(U,J,j){if(j in D){var $=D[j],ie=this[j],re;(U?y($)&&y($[0]):y($))?this[j]=re=[J($[0]),J($[1]),J($[2])]:this[j]=re=[J($),J($),J($)];for(var de=0;de<3;++de)if(re[de]!==ie[de])return!0}return!1}var P=F.bind(this,!1,Number),I=F.bind(this,!1,Boolean),L=F.bind(this,!1,String),z=F.bind(this,!0,function(U){if(y(U)){if(U.length===3)return[+U[0],+U[1],+U[2],1];if(U.length===4)return[+U[0],+U[1],+U[2],+U[3]]}return[0,0,0,1]}),B,O=!1,W=!1;if("bounds"in D)for(var X=D.bounds,Z=0;Z<2;++Z)for(var H=0;H<3;++H)X[Z][H]!==this.bounds[Z][H]&&(W=!0),this.bounds[Z][H]=X[Z][H];if("ticks"in D){B=D.ticks,O=!0,this.autoTicks=!1;for(var Z=0;Z<3;++Z)this.tickSpacing[Z]=0}else P("tickSpacing")&&(this.autoTicks=!0,W=!0);if(this._firstInit&&("ticks"in D||"tickSpacing"in D||(this.autoTicks=!0),W=!0,O=!0,this._firstInit=!1),W&&this.autoTicks&&(B=c.create(this.bounds,this.tickSpacing),O=!0),O){for(var Z=0;Z<3;++Z)B[Z].sort(function(J,j){return J.x-j.x});c.equal(B,this.ticks)?O=!1:this.ticks=B}I("tickEnable"),L("tickFont")&&(O=!0),L("tickFontStyle")&&(O=!0),L("tickFontWeight")&&(O=!0),L("tickFontVariant")&&(O=!0),P("tickSize"),P("tickAngle"),P("tickPad"),z("tickColor");var q=L("labels");L("labelFont")&&(q=!0),L("labelFontStyle")&&(q=!0),L("labelFontWeight")&&(q=!0),L("labelFontVariant")&&(q=!0),I("labelEnable"),P("labelSize"),P("labelPad"),z("labelColor"),I("lineEnable"),I("lineMirror"),P("lineWidth"),z("lineColor"),I("lineTickEnable"),I("lineTickMirror"),P("lineTickLength"),P("lineTickWidth"),z("lineTickColor"),I("gridEnable"),P("gridWidth"),z("gridColor"),I("zeroEnable"),z("zeroLineColor"),P("zeroLineWidth"),I("backgroundEnable"),z("backgroundColor");var Q=[{family:this.labelFont[0],style:this.labelFontStyle[0],weight:this.labelFontWeight[0],variant:this.labelFontVariant[0]},{family:this.labelFont[1],style:this.labelFontStyle[1],weight:this.labelFontWeight[1],variant:this.labelFontVariant[1]},{family:this.labelFont[2],style:this.labelFontStyle[2],weight:this.labelFontWeight[2],variant:this.labelFontVariant[2]}],N=[{family:this.tickFont[0],style:this.tickFontStyle[0],weight:this.tickFontWeight[0],variant:this.tickFontVariant[0]},{family:this.tickFont[1],style:this.tickFontStyle[1],weight:this.tickFontWeight[1],variant:this.tickFontVariant[1]},{family:this.tickFont[2],style:this.tickFontStyle[2],weight:this.tickFontWeight[2],variant:this.tickFontVariant[2]}];this._text?this._text&&(q||O)&&this._text.update(this.bounds,this.labels,Q,this.ticks,N):this._text=s(this.gl,this.bounds,this.labels,Q,this.ticks,N),this._lines&&O&&(this._lines.dispose(),this._lines=null),this._lines||(this._lines=l(this.gl,this.bounds,this.ticks))};function b(){this.primalOffset=[0,0,0],this.primalMinor=[0,0,0],this.mirrorOffset=[0,0,0],this.mirrorMinor=[0,0,0]}var M=[new b,new b,new b];function x(D,F,P,I,L){for(var z=D.primalOffset,B=D.primalMinor,O=D.mirrorOffset,W=D.mirrorMinor,X=I[F],Z=0;Z<3;++Z)if(F!==Z){var H=z,q=O,Q=B,N=W;X&1<0?(Q[Z]=-1,N[Z]=0):(Q[Z]=0,N[Z]=1)}}var T=[0,0,0],A={model:h,view:h,projection:h,_ortho:!1};_.isOpaque=function(){return!0},_.isTransparent=function(){return!1},_.drawTransparent=function(D){};var g=0,E=[0,0,0],S=[0,0,0],C=[0,0,0];_.draw=function(D){D=D||A;for(var j=this.gl,F=D.model||h,P=D.view||h,I=D.projection||h,L=this.bounds,z=D._ortho||!1,B=f(F,P,I,L,z),O=B.cubeEdges,W=B.axis,X=P[12],Z=P[13],H=P[14],q=P[15],Q=z?2:1,N=Q*this.pixelRatio*(I[3]*X+I[7]*Z+I[11]*H+I[15]*q)/j.drawingBufferHeight,U=0;U<3;++U)this.lastCubeProps.cubeEdges[U]=O[U],this.lastCubeProps.axis[U]=W[U];for(var J=M,U=0;U<3;++U)x(M[U],U,this.bounds,O,W);for(var j=this.gl,$=T,U=0;U<3;++U)this.backgroundEnable[U]?$[U]=W[U]:$[U]=0;this._background.draw(F,P,I,L,$,this.backgroundColor),this._lines.bind(F,P,I,this);for(var U=0;U<3;++U){var ie=[0,0,0];W[U]>0?ie[U]=L[1][U]:ie[U]=L[0][U];for(var re=0;re<2;++re){var de=(U+1+re)%3,me=(U+1+(re^1))%3;this.gridEnable[de]&&this._lines.drawGrid(de,me,this.bounds,ie,this.gridColor[de],this.gridWidth[de]*this.pixelRatio)}for(var re=0;re<2;++re){var de=(U+1+re)%3,me=(U+1+(re^1))%3;this.zeroEnable[me]&&Math.min(L[0][me],L[1][me])<=0&&Math.max(L[0][me],L[1][me])>=0&&this._lines.drawZero(de,me,this.bounds,ie,this.zeroLineColor[me],this.zeroLineWidth[me]*this.pixelRatio)}}for(var U=0;U<3;++U){this.lineEnable[U]&&this._lines.drawAxisLine(U,this.bounds,J[U].primalOffset,this.lineColor[U],this.lineWidth[U]*this.pixelRatio),this.lineMirror[U]&&this._lines.drawAxisLine(U,this.bounds,J[U].mirrorOffset,this.lineColor[U],this.lineWidth[U]*this.pixelRatio);for(var ze=m(E,J[U].primalMinor),ke=m(S,J[U].mirrorMinor),le=this.lineTickLength,re=0;re<3;++re){var te=N/F[5*re];ze[re]*=le[re]*te,ke[re]*=le[re]*te}this.lineTickEnable[U]&&this._lines.drawAxisTicks(U,J[U].primalOffset,ze,this.lineTickColor[U],this.lineTickWidth[U]*this.pixelRatio),this.lineTickMirror[U]&&this._lines.drawAxisTicks(U,J[U].mirrorOffset,ke,this.lineTickColor[U],this.lineTickWidth[U]*this.pixelRatio)}this._lines.unbind(),this._text.bind(F,P,I,this.pixelRatio);var Ee,we=.5,oe,Y;function ne(Ae){Y=[0,0,0],Y[Ae]=1}function ye(Ae,se,pe){var fe=(Ae+1)%3,Re=(Ae+2)%3,We=se[fe],Ke=se[Re],tt=pe[fe],at=pe[Re];if(We>0&&at>0){ne(fe);return}else if(We>0&&at<0){ne(fe);return}else if(We<0&&at>0){ne(fe);return}else if(We<0&&at<0){ne(fe);return}else if(Ke>0&&tt>0){ne(Re);return}else if(Ke>0&&tt<0){ne(Re);return}else if(Ke<0&&tt>0){ne(Re);return}else if(Ke<0&&tt<0){ne(Re);return}}for(var U=0;U<3;++U){for(var V=J[U].primalMinor,ue=J[U].mirrorMinor,_e=m(C,J[U].primalOffset),re=0;re<3;++re)this.lineTickEnable[U]&&(_e[re]+=N*V[re]*Math.max(this.lineTickLength[re],0)/F[5*re]);var xe=[0,0,0];if(xe[U]=1,this.tickEnable[U]){this.tickAngle[U]===-3600?(this.tickAngle[U]=0,this.tickAlign[U]="auto"):this.tickAlign[U]=-1,oe=1,Ee=[this.tickAlign[U],we,oe],Ee[0]==="auto"?Ee[0]=g:Ee[0]=parseInt(""+Ee[0]),Y=[0,0,0],ye(U,V,ue);for(var re=0;re<3;++re)_e[re]+=N*V[re]*this.tickPad[re]/F[5*re];this._text.drawTicks(U,this.tickSize[U],this.tickAngle[U],_e,this.tickColor[U],xe,Y,Ee)}if(this.labelEnable[U]){oe=0,Y=[0,0,0],this.labels[U].length>4&&(ne(U),oe=1),Ee=[this.labelAlign[U],we,oe],Ee[0]==="auto"?Ee[0]=g:Ee[0]=parseInt(""+Ee[0]);for(var re=0;re<3;++re)_e[re]+=N*V[re]*this.labelPad[re]/F[5*re];_e[U]+=.5*(L[0][U]+L[1][U]),this._text.drawLabel(U,this.labelSize[U],this.labelAngle[U],_e,this.labelColor[U],[0,0,0],Y,Ee)}}this._text.unbind()},_.dispose=function(){this._text.dispose(),this._lines.dispose(),this._background.dispose(),this._lines=null,this._text=null,this._background=null,this.gl=null};function k(D,F){var P=new w(D);return P.update(F),P}},5304(n,a,o){"use strict";n.exports=h;var s=o(2762),l=o(8116),u=o(1879).bg;function f(d,p,v,y){this.gl=d,this.buffer=p,this.vao=v,this.shader=y}var c=f.prototype;c.draw=function(d,p,v,y,m,w){for(var _=!1,b=0;b<3;++b)_=_||m[b];if(_){var M=this.gl;M.enable(M.POLYGON_OFFSET_FILL),M.polygonOffset(1,2),this.shader.bind(),this.shader.uniforms={model:d,view:p,projection:v,bounds:y,enable:m,colors:w},this.vao.bind(),this.vao.draw(this.gl.TRIANGLES,36),this.vao.unbind(),M.disable(M.POLYGON_OFFSET_FILL)}},c.dispose=function(){this.vao.dispose(),this.buffer.dispose(),this.shader.dispose()};function h(d){for(var p=[],v=[],y=0,m=0;m<3;++m)for(var w=(m+1)%3,_=(m+2)%3,b=[0,0,0],M=[0,0,0],x=-1;x<=1;x+=2){v.push(y,y+2,y+1,y+1,y+2,y+3),b[m]=x,M[m]=x;for(var T=-1;T<=1;T+=2){b[w]=T;for(var A=-1;A<=1;A+=2)b[_]=A,p.push(b[0],b[1],b[2],M[0],M[1],M[2]),y+=1}var g=w;w=_,_=g}var E=s(d,new Float32Array(p)),S=s(d,new Uint16Array(v),d.ELEMENT_ARRAY_BUFFER),C=l(d,[{buffer:E,type:d.FLOAT,size:3,offset:0,stride:24},{buffer:E,type:d.FLOAT,size:3,offset:12,stride:24}],S),k=u(d);return k.attributes.position.location=0,k.attributes.normal.location=1,new f(d,E,C,k)}},6429(n,a,o){"use strict";n.exports=x;var s=o(8828),l=o(6760),u=o(5202),f=o(3250),c=new Array(16),h=new Array(8),d=new Array(8),p=new Array(3),v=[0,0,0];(function(){for(var T=0;T<8;++T)h[T]=[1,1,1,1],d[T]=[1,1,1]})();function y(T,A,g){for(var E=0;E<4;++E){T[E]=g[12+E];for(var S=0;S<3;++S)T[E]+=A[S]*g[4*S+E]}}var m=[[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 w(T){for(var A=0;AW&&(P|=1<W){P|=1<d[k][1])&&(J=k);for(var j=-1,k=0;k<3;++k){var $=J^1<d[ie][0]&&(ie=$)}}var re=_;re[0]=re[1]=re[2]=0,re[s.log2(j^J)]=J&j,re[s.log2(J^ie)]=J&ie;var de=ie^7;de===P||de===U?(de=j^7,re[s.log2(ie^de)]=de&ie):re[s.log2(j^de)]=de&j;for(var me=b,ze=P,z=0;z<3;++z)ze&1<=0;--ie){var de=V[te[ie]];T.push(N*de[0],-N*de[1],z)}}for(var E=[0,0,0],S=[0,0,0],C=[0,0,0],k=[0,0,0],D=1.25,L={breaklines:!0,bolds:!0,italics:!0,subscripts:!0,superscripts:!0},P=0;P<3;++P){C[P]=T.length/d|0,g(.5*(_[0][P]+_[1][P]),b[P],M[P],12,D,L),k[P]=(T.length/d|0)-C[P],E[P]=T.length/d|0;for(var I=0;I=0&&(d=c.length-h-1);var p=Math.pow(10,d),v=Math.round(u*f*p),y=v+"";if(y.indexOf("e")>=0)return y;var m=v/p,w=v%p;v<0?(m=-Math.ceil(m)|0,w=-w|0):(m=Math.floor(m)|0,w=w|0);var _=""+m;if(v<0&&(_="-"+_),d){for(var b=""+w;b.length=u[0][h];--v)d.push({x:v*f[h],text:o(f[h],v)});c.push(d)}return c}function l(u,f){for(var c=0;c<3;++c){if(u[c].length!==f[c].length)return!1;for(var h=0;h_)throw new Error("gl-buffer: If resizing buffer, must not specify offset");return m.bufferSubData(w,x,M),_}function p(m,w){for(var _=s.malloc(m.length,w),b=m.length,M=0;M=0;--b){if(w[b]!==_)return!1;_*=m[b]}return!0}h.update=function(m,w){if(typeof w!="number"&&(w=-1),this.bind(),typeof m=="object"&&typeof m.shape!="undefined"){var _=m.dtype;if(f.indexOf(_)<0&&(_="float32"),this.type===this.gl.ELEMENT_ARRAY_BUFFER){var b=gl.getExtension("OES_element_index_uint");b&&_!=="uint16"?_="uint32":_="uint16"}if(_===m.dtype&&v(m.shape,m.stride))m.offset===0&&m.data.length===m.shape[0]?this.length=d(this.gl,this.type,this.length,this.usage,m.data,w):this.length=d(this.gl,this.type,this.length,this.usage,m.data.subarray(m.offset,m.shape[0]),w);else{var M=s.malloc(m.size,_),x=u(M,m.shape);l.assign(x,m),w<0?this.length=d(this.gl,this.type,this.length,this.usage,M,w):this.length=d(this.gl,this.type,this.length,this.usage,M.subarray(0,m.size),w),s.free(M)}}else if(Array.isArray(m)){var A;this.type===this.gl.ELEMENT_ARRAY_BUFFER?A=p(m,"uint16"):A=p(m,"float32"),w<0?this.length=d(this.gl,this.type,this.length,this.usage,A,w):this.length=d(this.gl,this.type,this.length,this.usage,A.subarray(0,m.length),w),s.free(A)}else if(typeof m=="object"&&typeof m.length=="number")this.length=d(this.gl,this.type,this.length,this.usage,m,w);else if(typeof m=="number"||m===void 0){if(w>=0)throw new Error("gl-buffer: Cannot specify offset when resizing buffer");m=m|0,m<=0&&(m=1),this.gl.bufferData(this.type,m|0,this.usage),this.length=m}else throw new Error("gl-buffer: Invalid data type")};function y(m,w,_,b){if(_=_||m.ARRAY_BUFFER,b=b||m.DYNAMIC_DRAW,_!==m.ARRAY_BUFFER&&_!==m.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(b!==m.DYNAMIC_DRAW&&b!==m.STATIC_DRAW&&b!==m.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 M=m.createBuffer(),x=new c(m,_,M,0,b);return x.update(w),x}n.exports=y},6405(n,a,o){"use strict";var s=o(2931);n.exports=function(u,f){var c=u.positions,h=u.vectors,d={positions:[],vertexIntensity:[],vertexIntensityBounds:u.vertexIntensityBounds,vectors:[],cells:[],coneOffset:u.coneOffset,colormap:u.colormap};if(u.positions.length===0)return f&&(f[0]=[0,0,0],f[1]=[0,0,0]),d;for(var p=0,v=1/0,y=-1/0,m=1/0,w=-1/0,_=1/0,b=-1/0,M=null,x=null,A=[],T=1/0,g=!1,E=u.coneSizemode==="raw",S=0;Sp&&(p=s.length(k)),S&&!E){var D=2*s.distance(M,C)/(s.length(x)+s.length(k));D?(T=Math.min(T,D),g=!1):g=!0}g||(M=C,x=k),A.push(k)}var L=[v,m,_],P=[y,w,b];f&&(f[0]=L,f[1]=P),p===0&&(p=1);var I=1/p;isFinite(T)||(T=1),d.vectorScale=T;var F=u.coneSize||(E?1:.5);u.absoluteConeSize&&(F=u.absoluteConeSize*I),d.coneScale=F;for(var S=0,z=0;S=1},m.isTransparent=function(){return this.opacity<1},m.pickSlots=1,m.setPickBase=function(A){this.pickId=A};function w(A){for(var T=p({colormap:A,nshades:256,format:"rgba"}),g=new Uint8Array(256*4),E=0;E<256;++E){for(var S=T[E],C=0;C<3;++C)g[4*E+C]=S[C];g[4*E+3]=S[3]*255}return d(g,[256,256,4],[4,0,1])}function _(A){for(var T=A.length,g=new Array(T),E=0;E0){var z=this.triShader;z.bind(),z.uniforms=D,this.triangleVAO.bind(),T.drawArrays(T.TRIANGLES,0,this.triangleCount*3),this.triangleVAO.unbind()}},m.drawPick=function(A){A=A||{};for(var T=this.gl,g=A.model||v,E=A.view||v,S=A.projection||v,C=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],k=0;k<3;++k)C[0][k]=Math.max(C[0][k],this.clipBounds[0][k]),C[1][k]=Math.min(C[1][k],this.clipBounds[1][k]);this._model=[].slice.call(g),this._view=[].slice.call(E),this._projection=[].slice.call(S),this._resolution=[T.drawingBufferWidth,T.drawingBufferHeight];var D={model:g,view:E,projection:S,clipBounds:C,tubeScale:this.tubeScale,vectorScale:this.vectorScale,coneScale:this.coneScale,coneOffset:this.coneOffset,pickId:this.pickId/255},L=this.pickShader;L.bind(),L.uniforms=D,this.triangleCount>0&&(this.triangleVAO.bind(),T.drawArrays(T.TRIANGLES,0,this.triangleCount*3),this.triangleVAO.unbind())},m.pick=function(A){if(!A||A.id!==this.pickId)return null;var T=A.value[0]+256*A.value[1]+65536*A.value[2],g=this.cells[T],E=this.positions[g[1]].slice(0,3),S={position:E,dataCoordinate:E,index:Math.floor(g[1]/48)};return this.traceType==="cone"?S.index=Math.floor(g[1]/48):this.traceType==="streamtube"&&(S.intensity=this.intensity[g[1]],S.velocity=this.vectors[g[1]].slice(0,3),S.divergence=this.vectors[g[1]][3],S.index=T),S},m.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 b(A,T){var g=s(A,T.meshShader.vertex,T.meshShader.fragment,null,T.meshShader.attributes);return g.attributes.position.location=0,g.attributes.color.location=2,g.attributes.uv.location=3,g.attributes.vector.location=4,g}function M(A,T){var g=s(A,T.pickShader.vertex,T.pickShader.fragment,null,T.pickShader.attributes);return g.attributes.position.location=0,g.attributes.id.location=1,g.attributes.vector.location=4,g}function x(A,T,g){var E=g.shaders;arguments.length===1&&(T=A,A=T.gl);var S=b(A,E),C=M(A,E),k=f(A,d(new Uint8Array([255,255,255,255]),[1,1,4]));k.generateMipmap(),k.minFilter=A.LINEAR_MIPMAP_LINEAR,k.magFilter=A.LINEAR;var D=l(A),L=l(A),P=l(A),I=l(A),F=l(A),z=u(A,[{buffer:D,type:A.FLOAT,size:4},{buffer:F,type:A.UNSIGNED_BYTE,size:4,normalized:!0},{buffer:P,type:A.FLOAT,size:4},{buffer:I,type:A.FLOAT,size:2},{buffer:L,type:A.FLOAT,size:4}]),B=new y(A,k,S,C,D,L,F,P,I,z,g.traceType||"cone");return B.update(T),B}n.exports=x},614(n,a,o){var s=o(3236),l=s([`precision highp float; +}`]);a.bg=function(v){return l(v,d,p,null,[{name:"position",type:"vec3"},{name:"normal",type:"vec3"}])}},4935(n,a,o){"use strict";n.exports=w;var s=o(2762),l=o(8116),u=o(4359),f=o(1879).Q,c=window||process.global||{},h=c.__TEXT_CACHE||{};c.__TEXT_CACHE={};var d=3;function p(_,b,M,x){this.gl=_,this.shader=b,this.buffer=M,this.vao=x,this.tickOffset=this.tickCount=this.labelOffset=this.labelCount=null}var v=p.prototype,y=[0,0];v.bind=function(_,b,M,x){this.vao.bind(),this.shader.bind();var T=this.shader.uniforms;T.model=_,T.view=b,T.projection=M,T.pixelScale=x,y[0]=this.gl.drawingBufferWidth,y[1]=this.gl.drawingBufferHeight,this.shader.uniforms.resolution=y},v.unbind=function(){this.vao.unbind()},v.update=function(_,b,M,x,T){var A=[];function g(z,B,O,W,X,Z){var H=[O.style,O.weight,O.variant,O.family].join("_"),q=h[H];q||(q=h[H]={});var Q=q[B];Q||(Q=q[B]=m(B,{triangles:!0,font:O.family,fontStyle:O.style,fontWeight:O.weight,fontVariant:O.variant,textAlign:"center",textBaseline:"middle",lineSpacing:X,styletags:Z}));for(var N=(W||12)/12,U=Q.positions,J=Q.cells,j=0,$=J.length;j<$;++j)for(var ie=J[j],re=2;re>=0;--re){var de=U[ie[re]];A.push(N*de[0],-N*de[1],z)}}for(var E=[0,0,0],S=[0,0,0],C=[0,0,0],k=[0,0,0],D=1.25,F={breaklines:!0,bolds:!0,italics:!0,subscripts:!0,superscripts:!0},P=0;P<3;++P){C[P]=A.length/d|0,g(.5*(_[0][P]+_[1][P]),b[P],M[P],12,D,F),k[P]=(A.length/d|0)-C[P],E[P]=A.length/d|0;for(var I=0;I=0&&(d=c.length-h-1);var p=Math.pow(10,d),v=Math.round(u*f*p),y=v+"";if(y.indexOf("e")>=0)return y;var m=v/p,w=v%p;v<0?(m=-Math.ceil(m)|0,w=-w|0):(m=Math.floor(m)|0,w=w|0);var _=""+m;if(v<0&&(_="-"+_),d){for(var b=""+w;b.length=u[0][h];--v)d.push({x:v*f[h],text:o(f[h],v)});c.push(d)}return c}function l(u,f){for(var c=0;c<3;++c){if(u[c].length!==f[c].length)return!1;for(var h=0;h_)throw new Error("gl-buffer: If resizing buffer, must not specify offset");return m.bufferSubData(w,x,M),_}function p(m,w){for(var _=s.malloc(m.length,w),b=m.length,M=0;M=0;--b){if(w[b]!==_)return!1;_*=m[b]}return!0}h.update=function(m,w){if(typeof w!="number"&&(w=-1),this.bind(),typeof m=="object"&&typeof m.shape!="undefined"){var _=m.dtype;if(f.indexOf(_)<0&&(_="float32"),this.type===this.gl.ELEMENT_ARRAY_BUFFER){var b=gl.getExtension("OES_element_index_uint");b&&_!=="uint16"?_="uint32":_="uint16"}if(_===m.dtype&&v(m.shape,m.stride))m.offset===0&&m.data.length===m.shape[0]?this.length=d(this.gl,this.type,this.length,this.usage,m.data,w):this.length=d(this.gl,this.type,this.length,this.usage,m.data.subarray(m.offset,m.shape[0]),w);else{var M=s.malloc(m.size,_),x=u(M,m.shape);l.assign(x,m),w<0?this.length=d(this.gl,this.type,this.length,this.usage,M,w):this.length=d(this.gl,this.type,this.length,this.usage,M.subarray(0,m.size),w),s.free(M)}}else if(Array.isArray(m)){var T;this.type===this.gl.ELEMENT_ARRAY_BUFFER?T=p(m,"uint16"):T=p(m,"float32"),w<0?this.length=d(this.gl,this.type,this.length,this.usage,T,w):this.length=d(this.gl,this.type,this.length,this.usage,T.subarray(0,m.length),w),s.free(T)}else if(typeof m=="object"&&typeof m.length=="number")this.length=d(this.gl,this.type,this.length,this.usage,m,w);else if(typeof m=="number"||m===void 0){if(w>=0)throw new Error("gl-buffer: Cannot specify offset when resizing buffer");m=m|0,m<=0&&(m=1),this.gl.bufferData(this.type,m|0,this.usage),this.length=m}else throw new Error("gl-buffer: Invalid data type")};function y(m,w,_,b){if(_=_||m.ARRAY_BUFFER,b=b||m.DYNAMIC_DRAW,_!==m.ARRAY_BUFFER&&_!==m.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(b!==m.DYNAMIC_DRAW&&b!==m.STATIC_DRAW&&b!==m.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 M=m.createBuffer(),x=new c(m,_,M,0,b);return x.update(w),x}n.exports=y},6405(n,a,o){"use strict";var s=o(2931);n.exports=function(u,f){var c=u.positions,h=u.vectors,d={positions:[],vertexIntensity:[],vertexIntensityBounds:u.vertexIntensityBounds,vectors:[],cells:[],coneOffset:u.coneOffset,colormap:u.colormap};if(u.positions.length===0)return f&&(f[0]=[0,0,0],f[1]=[0,0,0]),d;for(var p=0,v=1/0,y=-1/0,m=1/0,w=-1/0,_=1/0,b=-1/0,M=null,x=null,T=[],A=1/0,g=!1,E=u.coneSizemode==="raw",S=0;Sp&&(p=s.length(k)),S&&!E){var D=2*s.distance(M,C)/(s.length(x)+s.length(k));D?(A=Math.min(A,D),g=!1):g=!0}g||(M=C,x=k),T.push(k)}var F=[v,m,_],P=[y,w,b];f&&(f[0]=F,f[1]=P),p===0&&(p=1);var I=1/p;isFinite(A)||(A=1),d.vectorScale=A;var L=u.coneSize||(E?1:.5);u.absoluteConeSize&&(L=u.absoluteConeSize*I),d.coneScale=L;for(var S=0,z=0;S=1},m.isTransparent=function(){return this.opacity<1},m.pickSlots=1,m.setPickBase=function(T){this.pickId=T};function w(T){for(var A=p({colormap:T,nshades:256,format:"rgba"}),g=new Uint8Array(256*4),E=0;E<256;++E){for(var S=A[E],C=0;C<3;++C)g[4*E+C]=S[C];g[4*E+3]=S[3]*255}return d(g,[256,256,4],[4,0,1])}function _(T){for(var A=T.length,g=new Array(A),E=0;E0){var z=this.triShader;z.bind(),z.uniforms=D,this.triangleVAO.bind(),A.drawArrays(A.TRIANGLES,0,this.triangleCount*3),this.triangleVAO.unbind()}},m.drawPick=function(T){T=T||{};for(var A=this.gl,g=T.model||v,E=T.view||v,S=T.projection||v,C=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],k=0;k<3;++k)C[0][k]=Math.max(C[0][k],this.clipBounds[0][k]),C[1][k]=Math.min(C[1][k],this.clipBounds[1][k]);this._model=[].slice.call(g),this._view=[].slice.call(E),this._projection=[].slice.call(S),this._resolution=[A.drawingBufferWidth,A.drawingBufferHeight];var D={model:g,view:E,projection:S,clipBounds:C,tubeScale:this.tubeScale,vectorScale:this.vectorScale,coneScale:this.coneScale,coneOffset:this.coneOffset,pickId:this.pickId/255},F=this.pickShader;F.bind(),F.uniforms=D,this.triangleCount>0&&(this.triangleVAO.bind(),A.drawArrays(A.TRIANGLES,0,this.triangleCount*3),this.triangleVAO.unbind())},m.pick=function(T){if(!T||T.id!==this.pickId)return null;var A=T.value[0]+256*T.value[1]+65536*T.value[2],g=this.cells[A],E=this.positions[g[1]].slice(0,3),S={position:E,dataCoordinate:E,index:Math.floor(g[1]/48)};return this.traceType==="cone"?S.index=Math.floor(g[1]/48):this.traceType==="streamtube"&&(S.intensity=this.intensity[g[1]],S.velocity=this.vectors[g[1]].slice(0,3),S.divergence=this.vectors[g[1]][3],S.index=A),S},m.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 b(T,A){var g=s(T,A.meshShader.vertex,A.meshShader.fragment,null,A.meshShader.attributes);return g.attributes.position.location=0,g.attributes.color.location=2,g.attributes.uv.location=3,g.attributes.vector.location=4,g}function M(T,A){var g=s(T,A.pickShader.vertex,A.pickShader.fragment,null,A.pickShader.attributes);return g.attributes.position.location=0,g.attributes.id.location=1,g.attributes.vector.location=4,g}function x(T,A,g){var E=g.shaders;arguments.length===1&&(A=T,T=A.gl);var S=b(T,E),C=M(T,E),k=f(T,d(new Uint8Array([255,255,255,255]),[1,1,4]));k.generateMipmap(),k.minFilter=T.LINEAR_MIPMAP_LINEAR,k.magFilter=T.LINEAR;var D=l(T),F=l(T),P=l(T),I=l(T),L=l(T),z=u(T,[{buffer:D,type:T.FLOAT,size:4},{buffer:L,type:T.UNSIGNED_BYTE,size:4,normalized:!0},{buffer:P,type:T.FLOAT,size:4},{buffer:I,type:T.FLOAT,size:2},{buffer:F,type:T.FLOAT,size:4}]),B=new y(T,k,S,C,D,F,L,P,I,z,g.traceType||"cone");return B.update(A),B}n.exports=x},614(n,a,o){var s=o(3236),l=s([`precision highp float; precision highp float; #define GLSLIFY 1 @@ -656,7 +656,7 @@ void main() { if (outOfRange(clipBounds[0], clipBounds[1], f_position)) discard; gl_FragColor = vec4(pickId, f_id.xyz); -}`]);a.meshShader={vertex:l,fragment:u,attributes:[{name:"position",type:"vec4"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"},{name:"vector",type:"vec3"}]},a.pickShader={vertex:f,fragment:c,attributes:[{name:"position",type:"vec4"},{name:"id",type:"vec4"},{name:"vector",type:"vec3"}]}},737(n){n.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"}},5171(n,a,o){var s=o(737);n.exports=function(u){return s[u]}},9165(n,a,o){"use strict";n.exports=y;var s=o(2762),l=o(8116),u=o(3436),f=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function c(m,w,_,b){this.gl=m,this.shader=b,this.buffer=w,this.vao=_,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 h=c.prototype;h.isOpaque=function(){return!this.hasAlpha},h.isTransparent=function(){return this.hasAlpha},h.drawTransparent=h.draw=function(m){var w=this.gl,_=this.shader.uniforms;this.shader.bind();var b=_.view=m.view||f,M=_.projection=m.projection||f;_.model=m.model||f,_.clipBounds=this.clipBounds,_.opacity=this.opacity;var x=b[12],A=b[13],T=b[14],g=b[15],E=m._ortho||!1,S=E?2:1,C=S*this.pixelRatio*(M[3]*x+M[7]*A+M[11]*T+M[15]*g)/w.drawingBufferHeight;this.vao.bind();for(var k=0;k<3;++k)w.lineWidth(this.lineWidth[k]*this.pixelRatio),_.capSize=this.capSize[k]*C,this.lineCount[k]&&w.drawArrays(w.LINES,this.lineOffset[k],this.lineCount[k]);this.vao.unbind()};function d(m,w){for(var _=0;_<3;++_)m[0][_]=Math.min(m[0][_],w[_]),m[1][_]=Math.max(m[1][_],w[_])}var p=(function(){for(var m=new Array(3),w=0;w<3;++w){for(var _=[],b=1;b<=2;++b)for(var M=-1;M<=1;M+=2){var x=(b+w)%3,A=[0,0,0];A[x]=M,_.push(A)}m[w]=_}return m})();function v(m,w,_,b){for(var M=p[b],x=0;x0){var D=E.slice();D[T]+=C[1][T],M.push(E[0],E[1],E[2],k[0],k[1],k[2],k[3],0,0,0,D[0],D[1],D[2],k[0],k[1],k[2],k[3],0,0,0),d(this.bounds,D),A+=2+v(M,D,k,T)}}}this.lineCount[T]=A-this.lineOffset[T]}this.buffer.update(M)}},h.dispose=function(){this.shader.dispose(),this.buffer.dispose(),this.vao.dispose()};function y(m){var w=m.gl,_=s(w),b=l(w,[{buffer:_,type:w.FLOAT,size:3,offset:0,stride:40},{buffer:_,type:w.FLOAT,size:4,offset:12,stride:40},{buffer:_,type:w.FLOAT,size:3,offset:28,stride:40}]),M=u(w);M.attributes.position.location=0,M.attributes.color.location=1,M.attributes.offset.location=2;var x=new c(w,_,b,M);return x.update(m),x}},3436(n,a,o){"use strict";var s=o(3236),l=o(9405),u=s([`precision highp float; +}`]);a.meshShader={vertex:l,fragment:u,attributes:[{name:"position",type:"vec4"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"},{name:"vector",type:"vec3"}]},a.pickShader={vertex:f,fragment:c,attributes:[{name:"position",type:"vec4"},{name:"id",type:"vec4"},{name:"vector",type:"vec3"}]}},737(n){n.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"}},5171(n,a,o){var s=o(737);n.exports=function(u){return s[u]}},9165(n,a,o){"use strict";n.exports=y;var s=o(2762),l=o(8116),u=o(3436),f=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function c(m,w,_,b){this.gl=m,this.shader=b,this.buffer=w,this.vao=_,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 h=c.prototype;h.isOpaque=function(){return!this.hasAlpha},h.isTransparent=function(){return this.hasAlpha},h.drawTransparent=h.draw=function(m){var w=this.gl,_=this.shader.uniforms;this.shader.bind();var b=_.view=m.view||f,M=_.projection=m.projection||f;_.model=m.model||f,_.clipBounds=this.clipBounds,_.opacity=this.opacity;var x=b[12],T=b[13],A=b[14],g=b[15],E=m._ortho||!1,S=E?2:1,C=S*this.pixelRatio*(M[3]*x+M[7]*T+M[11]*A+M[15]*g)/w.drawingBufferHeight;this.vao.bind();for(var k=0;k<3;++k)w.lineWidth(this.lineWidth[k]*this.pixelRatio),_.capSize=this.capSize[k]*C,this.lineCount[k]&&w.drawArrays(w.LINES,this.lineOffset[k],this.lineCount[k]);this.vao.unbind()};function d(m,w){for(var _=0;_<3;++_)m[0][_]=Math.min(m[0][_],w[_]),m[1][_]=Math.max(m[1][_],w[_])}var p=(function(){for(var m=new Array(3),w=0;w<3;++w){for(var _=[],b=1;b<=2;++b)for(var M=-1;M<=1;M+=2){var x=(b+w)%3,T=[0,0,0];T[x]=M,_.push(T)}m[w]=_}return m})();function v(m,w,_,b){for(var M=p[b],x=0;x0){var D=E.slice();D[A]+=C[1][A],M.push(E[0],E[1],E[2],k[0],k[1],k[2],k[3],0,0,0,D[0],D[1],D[2],k[0],k[1],k[2],k[3],0,0,0),d(this.bounds,D),T+=2+v(M,D,k,A)}}}this.lineCount[A]=T-this.lineOffset[A]}this.buffer.update(M)}},h.dispose=function(){this.shader.dispose(),this.buffer.dispose(),this.vao.dispose()};function y(m){var w=m.gl,_=s(w),b=l(w,[{buffer:_,type:w.FLOAT,size:3,offset:0,stride:40},{buffer:_,type:w.FLOAT,size:4,offset:12,stride:40},{buffer:_,type:w.FLOAT,size:3,offset:28,stride:40}]),M=u(w);M.attributes.position.location=0,M.attributes.color.location=1,M.attributes.offset.location=2;var x=new c(w,_,b,M);return x.update(m),x}},3436(n,a,o){"use strict";var s=o(3236),l=o(9405),u=s([`precision highp float; #define GLSLIFY 1 attribute vec3 position, offset; @@ -707,10 +707,10 @@ void main() { ) discard; gl_FragColor = opacity * fragColor; -}`]);n.exports=function(c){return l(c,u,f,null,[{name:"position",type:"vec3"},{name:"color",type:"vec4"},{name:"offset",type:"vec3"}])}},2260(n,a,o){"use strict";var s=o(7766);n.exports=A;var l=null,u,f,c,h;function d(T){var g=T.getParameter(T.FRAMEBUFFER_BINDING),E=T.getParameter(T.RENDERBUFFER_BINDING),S=T.getParameter(T.TEXTURE_BINDING_2D);return[g,E,S]}function p(T,g){T.bindFramebuffer(T.FRAMEBUFFER,g[0]),T.bindRenderbuffer(T.RENDERBUFFER,g[1]),T.bindTexture(T.TEXTURE_2D,g[2])}function v(T,g){var E=T.getParameter(g.MAX_COLOR_ATTACHMENTS_WEBGL);l=new Array(E+1);for(var S=0;S<=E;++S){for(var C=new Array(E),k=0;k1&&L.drawBuffersWEBGL(l[D]);var B=E.getExtension("WEBGL_depth_texture");B?P?T.depth=m(E,C,k,B.UNSIGNED_INT_24_8_WEBGL,E.DEPTH_STENCIL,E.DEPTH_STENCIL_ATTACHMENT):I&&(T.depth=m(E,C,k,E.UNSIGNED_SHORT,E.DEPTH_COMPONENT,E.DEPTH_ATTACHMENT)):I&&P?T._depth_rb=w(E,C,k,E.DEPTH_STENCIL,E.DEPTH_STENCIL_ATTACHMENT):I?T._depth_rb=w(E,C,k,E.DEPTH_COMPONENT16,E.DEPTH_ATTACHMENT):P&&(T._depth_rb=w(E,C,k,E.STENCIL_INDEX,E.STENCIL_ATTACHMENT));var O=E.checkFramebufferStatus(E.FRAMEBUFFER);if(O!==E.FRAMEBUFFER_COMPLETE){T._destroyed=!0,E.bindFramebuffer(E.FRAMEBUFFER,null),E.deleteFramebuffer(T.handle),T.handle=null,T.depth&&(T.depth.dispose(),T.depth=null),T._depth_rb&&(E.deleteRenderbuffer(T._depth_rb),T._depth_rb=null);for(var z=0;zC||E<0||E>C)throw new Error("gl-fbo: Can't resize FBO, invalid dimensions");T._shape[0]=g,T._shape[1]=E;for(var k=d(S),D=0;Dk||E<0||E>k)throw new Error("gl-fbo: Parameters are too large for FBO");S=S||{};var D=1;if("color"in S){if(D=Math.max(S.color|0,0),D<0)throw new Error("gl-fbo: Must specify a nonnegative number of colors");if(D>1)if(C){if(D>T.getParameter(C.MAX_COLOR_ATTACHMENTS_WEBGL))throw new Error("gl-fbo: Context does not support "+D+" draw buffers")}else throw new Error("gl-fbo: Multiple draw buffer extension not supported")}var L=T.UNSIGNED_BYTE,P=T.getExtension("OES_texture_float");if(S.float&&D>0){if(!P)throw new Error("gl-fbo: Context does not support floating point textures");L=T.FLOAT}else S.preferFloat&&D>0&&P&&(L=T.FLOAT);var I=!0;"depth"in S&&(I=!!S.depth);var F=!1;return"stencil"in S&&(F=!!S.stencil),new b(T,g,E,L,D,I,F,C)}},2992(n,a,o){var s=o(3387).sprintf,l=o(5171),u=o(1848),f=o(1085);n.exports=c;function c(h,d,p){"use strict";var v=u(d)||"of unknown name (see npm glsl-shader-name)",y="unknown type";p!==void 0&&(y=p===l.FRAGMENT_SHADER?"fragment":"vertex");for(var m=s(`Error compiling %s shader %s: +}`]);n.exports=function(c){return l(c,u,f,null,[{name:"position",type:"vec3"},{name:"color",type:"vec4"},{name:"offset",type:"vec3"}])}},2260(n,a,o){"use strict";var s=o(7766);n.exports=T;var l=null,u,f,c,h;function d(A){var g=A.getParameter(A.FRAMEBUFFER_BINDING),E=A.getParameter(A.RENDERBUFFER_BINDING),S=A.getParameter(A.TEXTURE_BINDING_2D);return[g,E,S]}function p(A,g){A.bindFramebuffer(A.FRAMEBUFFER,g[0]),A.bindRenderbuffer(A.RENDERBUFFER,g[1]),A.bindTexture(A.TEXTURE_2D,g[2])}function v(A,g){var E=A.getParameter(g.MAX_COLOR_ATTACHMENTS_WEBGL);l=new Array(E+1);for(var S=0;S<=E;++S){for(var C=new Array(E),k=0;k1&&F.drawBuffersWEBGL(l[D]);var B=E.getExtension("WEBGL_depth_texture");B?P?A.depth=m(E,C,k,B.UNSIGNED_INT_24_8_WEBGL,E.DEPTH_STENCIL,E.DEPTH_STENCIL_ATTACHMENT):I&&(A.depth=m(E,C,k,E.UNSIGNED_SHORT,E.DEPTH_COMPONENT,E.DEPTH_ATTACHMENT)):I&&P?A._depth_rb=w(E,C,k,E.DEPTH_STENCIL,E.DEPTH_STENCIL_ATTACHMENT):I?A._depth_rb=w(E,C,k,E.DEPTH_COMPONENT16,E.DEPTH_ATTACHMENT):P&&(A._depth_rb=w(E,C,k,E.STENCIL_INDEX,E.STENCIL_ATTACHMENT));var O=E.checkFramebufferStatus(E.FRAMEBUFFER);if(O!==E.FRAMEBUFFER_COMPLETE){A._destroyed=!0,E.bindFramebuffer(E.FRAMEBUFFER,null),E.deleteFramebuffer(A.handle),A.handle=null,A.depth&&(A.depth.dispose(),A.depth=null),A._depth_rb&&(E.deleteRenderbuffer(A._depth_rb),A._depth_rb=null);for(var z=0;zC||E<0||E>C)throw new Error("gl-fbo: Can't resize FBO, invalid dimensions");A._shape[0]=g,A._shape[1]=E;for(var k=d(S),D=0;Dk||E<0||E>k)throw new Error("gl-fbo: Parameters are too large for FBO");S=S||{};var D=1;if("color"in S){if(D=Math.max(S.color|0,0),D<0)throw new Error("gl-fbo: Must specify a nonnegative number of colors");if(D>1)if(C){if(D>A.getParameter(C.MAX_COLOR_ATTACHMENTS_WEBGL))throw new Error("gl-fbo: Context does not support "+D+" draw buffers")}else throw new Error("gl-fbo: Multiple draw buffer extension not supported")}var F=A.UNSIGNED_BYTE,P=A.getExtension("OES_texture_float");if(S.float&&D>0){if(!P)throw new Error("gl-fbo: Context does not support floating point textures");F=A.FLOAT}else S.preferFloat&&D>0&&P&&(F=A.FLOAT);var I=!0;"depth"in S&&(I=!!S.depth);var L=!1;return"stencil"in S&&(L=!!S.stencil),new b(A,g,E,F,D,I,L,C)}},2992(n,a,o){var s=o(3387).sprintf,l=o(5171),u=o(1848),f=o(1085);n.exports=c;function c(h,d,p){"use strict";var v=u(d)||"of unknown name (see npm glsl-shader-name)",y="unknown type";p!==void 0&&(y=p===l.FRAGMENT_SHADER?"fragment":"vertex");for(var m=s(`Error compiling %s shader %s: `,y,v),w=s("%s%s",m,h),_=h.split(` -`),b={},M=0;M<_.length;M++){var x=_[M];if(!(x===""||x==="\0")){var A=parseInt(x.split(":")[2]);if(isNaN(A))throw new Error(s("Could not parse error: %s",x));b[A]=x}}for(var T=f(d).split(` -`),M=0;M0){for(var j=0;j<24;++j)k.push(k[k.length-12]);I+=2,W=!0}continue e}F[0][S]=Math.min(F[0][S],X[S],Z[S]),F[1][S]=Math.max(F[1][S],X[S],Z[S])}var q,Q;Array.isArray(B[0])?(q=B.length>E-1?B[E-1]:B.length>0?B[B.length-1]:[0,0,0,1],Q=B.length>E?B[E]:B.length>0?B[B.length-1]:[0,0,0,1]):q=Q=B,q.length===3&&(q=[q[0],q[1],q[2],1]),Q.length===3&&(Q=[Q[0],Q[1],Q[2],1]),!this.hasAlpha&&q[3]<1&&(this.hasAlpha=!0);var N;Array.isArray(O)?N=O.length>E-1?O[E-1]:O.length>0?O[O.length-1]:[0,0,0,1]:N=O;var V=P;if(P+=_(X,Z),W){for(S=0;S<2;++S)k.push(X[0],X[1],X[2],Z[0],Z[1],Z[2],V,N,q[0],q[1],q[2],q[3]);I+=2,W=!1}k.push(X[0],X[1],X[2],Z[0],Z[1],Z[2],V,N,q[0],q[1],q[2],q[3],X[0],X[1],X[2],Z[0],Z[1],Z[2],V,-N,q[0],q[1],q[2],q[3],Z[0],Z[1],Z[2],X[0],X[1],X[2],P,-N,Q[0],Q[1],Q[2],Q[3],Z[0],Z[1],Z[2],X[0],X[1],X[2],P,N,Q[0],Q[1],Q[2],Q[3]),I+=4}}if(this.buffer.update(k),D.push(P),L.push(z[z.length-1].slice()),this.bounds=F,this.vertexCount=I,this.points=L,this.arcLength=D,"dashes"in g){var J=g.dashes,H=J.slice();for(H.unshift(0),E=1;E1.0001)return null;S+=E[M]}return Math.abs(S-1)>.001?null:[x,h(p,E),E]}},840(n,a,o){var s=o(3236),l=s([`precision highp float; +}`]),h=[{name:"position",type:"vec3"},{name:"nextPosition",type:"vec3"},{name:"arcLength",type:"float"},{name:"lineWidth",type:"float"},{name:"color",type:"vec4"}];a.createShader=function(d){return l(d,u,f,null,h)},a.createPickShader=function(d){return l(d,u,c,null,h)}},5714(n,a,o){"use strict";n.exports=A;var s=o(2762),l=o(8116),u=o(7766),f=new Uint8Array(4),c=new Float32Array(f.buffer);function h(g,E,S,C){return f[0]=C,f[1]=S,f[2]=E,f[3]=g,c[0]}var d=o(2478),p=o(9618),v=o(7319),y=v.createShader,m=v.createPickShader,w=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function _(g,E){for(var S=0,C=0;C<3;++C){var k=g[C]-E[C];S+=k*k}return Math.sqrt(S)}function b(g){for(var E=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],S=0;S<3;++S)E[0][S]=Math.max(g[0][S],E[0][S]),E[1][S]=Math.min(g[1][S],E[1][S]);return E}function M(g,E,S,C){this.arcLength=g,this.position=E,this.index=S,this.dataCoordinate=C}function x(g,E,S,C,k,D){this.gl=g,this.shader=E,this.pickShader=S,this.buffer=C,this.vao=k,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=D,this.dashScale=1,this.opacity=1,this.hasAlpha=!1,this.dirty=!0,this.pixelRatio=1}var T=x.prototype;T.isTransparent=function(){return this.hasAlpha},T.isOpaque=function(){return!this.hasAlpha},T.pickSlots=1,T.setPickBase=function(g){this.pickId=g},T.drawTransparent=T.draw=function(g){if(this.vertexCount){var E=this.gl,S=this.shader,C=this.vao;S.bind(),S.uniforms={model:g.model||w,view:g.view||w,projection:g.projection||w,clipBounds:b(this.clipBounds),dashTexture:this.texture.bind(),dashScale:this.dashScale/this.arcLength[this.arcLength.length-1],opacity:this.opacity,screenShape:[E.drawingBufferWidth,E.drawingBufferHeight],pixelRatio:this.pixelRatio},C.bind(),C.draw(E.TRIANGLE_STRIP,this.vertexCount),C.unbind()}},T.drawPick=function(g){if(this.vertexCount){var E=this.gl,S=this.pickShader,C=this.vao;S.bind(),S.uniforms={model:g.model||w,view:g.view||w,projection:g.projection||w,pickId:this.pickId,clipBounds:b(this.clipBounds),screenShape:[E.drawingBufferWidth,E.drawingBufferHeight],pixelRatio:this.pixelRatio},C.bind(),C.draw(E.TRIANGLE_STRIP,this.vertexCount),C.unbind()}},T.update=function(g){var E,S;this.dirty=!0;var C=!!g.connectGaps;"dashScale"in g&&(this.dashScale=g.dashScale),this.hasAlpha=!1,"opacity"in g&&(this.opacity=+g.opacity,this.opacity<1&&(this.hasAlpha=!0));var k=[],D=[],F=[],P=0,I=0,L=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],z=g.position||g.positions;if(z){var B=g.color||g.colors||[0,0,0,1],O=g.lineWidth||1,W=!1;e:for(E=1;E0){for(var H=0;H<24;++H)k.push(k[k.length-12]);I+=2,W=!0}continue e}L[0][S]=Math.min(L[0][S],X[S],Z[S]),L[1][S]=Math.max(L[1][S],X[S],Z[S])}var q,Q;Array.isArray(B[0])?(q=B.length>E-1?B[E-1]:B.length>0?B[B.length-1]:[0,0,0,1],Q=B.length>E?B[E]:B.length>0?B[B.length-1]:[0,0,0,1]):q=Q=B,q.length===3&&(q=[q[0],q[1],q[2],1]),Q.length===3&&(Q=[Q[0],Q[1],Q[2],1]),!this.hasAlpha&&q[3]<1&&(this.hasAlpha=!0);var N;Array.isArray(O)?N=O.length>E-1?O[E-1]:O.length>0?O[O.length-1]:[0,0,0,1]:N=O;var U=P;if(P+=_(X,Z),W){for(S=0;S<2;++S)k.push(X[0],X[1],X[2],Z[0],Z[1],Z[2],U,N,q[0],q[1],q[2],q[3]);I+=2,W=!1}k.push(X[0],X[1],X[2],Z[0],Z[1],Z[2],U,N,q[0],q[1],q[2],q[3],X[0],X[1],X[2],Z[0],Z[1],Z[2],U,-N,q[0],q[1],q[2],q[3],Z[0],Z[1],Z[2],X[0],X[1],X[2],P,-N,Q[0],Q[1],Q[2],Q[3],Z[0],Z[1],Z[2],X[0],X[1],X[2],P,N,Q[0],Q[1],Q[2],Q[3]),I+=4}}if(this.buffer.update(k),D.push(P),F.push(z[z.length-1].slice()),this.bounds=L,this.vertexCount=I,this.points=F,this.arcLength=D,"dashes"in g){var J=g.dashes,j=J.slice();for(j.unshift(0),E=1;E1.0001)return null;S+=E[M]}return Math.abs(S-1)>.001?null:[x,h(p,E),E]}},840(n,a,o){var s=o(3236),l=s([`precision highp float; #define GLSLIFY 1 attribute vec3 position, normal; @@ -1239,7 +1239,7 @@ uniform vec3 contourColor; void main() { gl_FragColor = vec4(contourColor, 1.0); } -`]);a.meshShader={vertex:l,fragment:u,attributes:[{name:"position",type:"vec3"},{name:"normal",type:"vec3"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"}]},a.wireShader={vertex:f,fragment:c,attributes:[{name:"position",type:"vec3"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"}]},a.pointShader={vertex:h,fragment:d,attributes:[{name:"position",type:"vec3"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"},{name:"pointSize",type:"float"}]},a.pickShader={vertex:p,fragment:v,attributes:[{name:"position",type:"vec3"},{name:"id",type:"vec4"}]},a.pointPickShader={vertex:y,fragment:v,attributes:[{name:"position",type:"vec3"},{name:"pointSize",type:"float"},{name:"id",type:"vec4"}]},a.contourShader={vertex:m,fragment:w,attributes:[{name:"position",type:"vec3"}]}},7201(n,a,o){"use strict";var s=1e-6,l=1e-6,u=o(9405),f=o(2762),c=o(8116),h=o(7766),d=o(8406),p=o(6760),v=o(7608),y=o(9618),m=o(6729),w=o(7765),_=o(1888),b=o(840),M=o(7626),x=b.meshShader,A=b.wireShader,T=b.pointShader,g=b.pickShader,E=b.pointPickShader,S=b.contourShader,C=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function k(j,q,Q,N,V,J,H,$,te,ie,de,ge,Ie,Ce,le,re,Ee,we,oe,Y,ne,ye,U,se,Ae,be,me){this.gl=j,this.pixelRatio=1,this.cells=[],this.positions=[],this.intensity=[],this.texture=q,this.dirty=!0,this.triShader=Q,this.lineShader=N,this.pointShader=V,this.pickShader=J,this.pointPickShader=H,this.contourShader=$,this.trianglePositions=te,this.triangleColors=de,this.triangleNormals=Ie,this.triangleUVs=ge,this.triangleIds=ie,this.triangleVAO=Ce,this.triangleCount=0,this.lineWidth=1,this.edgePositions=le,this.edgeColors=Ee,this.edgeUVs=we,this.edgeIds=re,this.edgeVAO=oe,this.edgeCount=0,this.pointPositions=Y,this.pointColors=ye,this.pointUVs=U,this.pointSizes=se,this.pointIds=ne,this.pointVAO=Ae,this.pointCount=0,this.contourLineWidth=1,this.contourPositions=be,this.contourVAO=me,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=C,this._view=C,this._projection=C,this._resolution=[1,1]}var D=k.prototype;D.isOpaque=function(){return!this.hasAlpha},D.isTransparent=function(){return this.hasAlpha},D.pickSlots=1,D.setPickBase=function(j){this.pickId=j};function L(j,q){if(!q||!q.length)return 1;for(var Q=0;Qj&&Q>0){var N=(q[Q][0]-j)/(q[Q][0]-q[Q-1][0]);return q[Q][1]*(1-N)+N*q[Q-1][1]}}return 1}function P(j,q){for(var Q=m({colormap:j,nshades:256,format:"rgba"}),N=new Uint8Array(256*4),V=0;V<256;++V){for(var J=Q[V],H=0;H<3;++H)N[4*V+H]=J[H];q?N[4*V+3]=255*L(V/255,q):N[4*V+3]=255*J[3]}return y(N,[256,256,4],[4,0,1])}function I(j){for(var q=j.length,Q=new Array(q),N=0;N0){var Ie=this.triShader;Ie.bind(),Ie.uniforms=$,this.triangleVAO.bind(),q.drawArrays(q.TRIANGLES,0,this.triangleCount*3),this.triangleVAO.unbind()}if(this.edgeCount>0&&this.lineWidth>0){var Ie=this.lineShader;Ie.bind(),Ie.uniforms=$,this.edgeVAO.bind(),q.lineWidth(this.lineWidth*this.pixelRatio),q.drawArrays(q.LINES,0,this.edgeCount*2),this.edgeVAO.unbind()}if(this.pointCount>0){var Ie=this.pointShader;Ie.bind(),Ie.uniforms=$,this.pointVAO.bind(),q.drawArrays(q.POINTS,0,this.pointCount),this.pointVAO.unbind()}if(this.contourEnable&&this.contourCount>0&&this.contourLineWidth>0){var Ie=this.contourShader;Ie.bind(),Ie.uniforms=$,this.contourVAO.bind(),q.drawArrays(q.LINES,0,this.contourCount),this.contourVAO.unbind()}},D.drawPick=function(j){j=j||{};for(var q=this.gl,Q=j.model||C,N=j.view||C,V=j.projection||C,J=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],H=0;H<3;++H)J[0][H]=Math.max(J[0][H],this.clipBounds[0][H]),J[1][H]=Math.min(J[1][H],this.clipBounds[1][H]);this._model=[].slice.call(Q),this._view=[].slice.call(N),this._projection=[].slice.call(V),this._resolution=[q.drawingBufferWidth,q.drawingBufferHeight];var $={model:Q,view:N,projection:V,clipBounds:J,pickId:this.pickId/255},te=this.pickShader;if(te.bind(),te.uniforms=$,this.triangleCount>0&&(this.triangleVAO.bind(),q.drawArrays(q.TRIANGLES,0,this.triangleCount*3),this.triangleVAO.unbind()),this.edgeCount>0&&(this.edgeVAO.bind(),q.lineWidth(this.lineWidth*this.pixelRatio),q.drawArrays(q.LINES,0,this.edgeCount*2),this.edgeVAO.unbind()),this.pointCount>0){var te=this.pointPickShader;te.bind(),te.uniforms=$,this.pointVAO.bind(),q.drawArrays(q.POINTS,0,this.pointCount),this.pointVAO.unbind()}},D.pick=function(j){if(!j||j.id!==this.pickId)return null;for(var q=j.value[0]+256*j.value[1]+65536*j.value[2],Q=this.cells[q],N=this.positions,V=new Array(Q.length),J=0;JMath.abs(g))m.rotate(C,0,0,-T*E*Math.PI*x.rotateSpeed/window.innerWidth);else if(!x._ortho){var k=-x.zoomSpeed*S*g/window.innerHeight*(C-m.lastT())/20;m.pan(C,0,0,_*(Math.exp(k)-1))}}},!0)},x.enableMouseListeners(),x}},799(n,a,o){var s=o(3236),l=o(9405),u=s([`precision mediump float; +`]);a.meshShader={vertex:l,fragment:u,attributes:[{name:"position",type:"vec3"},{name:"normal",type:"vec3"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"}]},a.wireShader={vertex:f,fragment:c,attributes:[{name:"position",type:"vec3"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"}]},a.pointShader={vertex:h,fragment:d,attributes:[{name:"position",type:"vec3"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"},{name:"pointSize",type:"float"}]},a.pickShader={vertex:p,fragment:v,attributes:[{name:"position",type:"vec3"},{name:"id",type:"vec4"}]},a.pointPickShader={vertex:y,fragment:v,attributes:[{name:"position",type:"vec3"},{name:"pointSize",type:"float"},{name:"id",type:"vec4"}]},a.contourShader={vertex:m,fragment:w,attributes:[{name:"position",type:"vec3"}]}},7201(n,a,o){"use strict";var s=1e-6,l=1e-6,u=o(9405),f=o(2762),c=o(8116),h=o(7766),d=o(8406),p=o(6760),v=o(7608),y=o(9618),m=o(6729),w=o(7765),_=o(1888),b=o(840),M=o(7626),x=b.meshShader,T=b.wireShader,A=b.pointShader,g=b.pickShader,E=b.pointPickShader,S=b.contourShader,C=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function k(H,q,Q,N,U,J,j,$,ie,re,de,me,ze,ke,le,te,Ee,we,oe,Y,ne,ye,V,ue,_e,xe,Ae){this.gl=H,this.pixelRatio=1,this.cells=[],this.positions=[],this.intensity=[],this.texture=q,this.dirty=!0,this.triShader=Q,this.lineShader=N,this.pointShader=U,this.pickShader=J,this.pointPickShader=j,this.contourShader=$,this.trianglePositions=ie,this.triangleColors=de,this.triangleNormals=ze,this.triangleUVs=me,this.triangleIds=re,this.triangleVAO=ke,this.triangleCount=0,this.lineWidth=1,this.edgePositions=le,this.edgeColors=Ee,this.edgeUVs=we,this.edgeIds=te,this.edgeVAO=oe,this.edgeCount=0,this.pointPositions=Y,this.pointColors=ye,this.pointUVs=V,this.pointSizes=ue,this.pointIds=ne,this.pointVAO=_e,this.pointCount=0,this.contourLineWidth=1,this.contourPositions=xe,this.contourVAO=Ae,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=C,this._view=C,this._projection=C,this._resolution=[1,1]}var D=k.prototype;D.isOpaque=function(){return!this.hasAlpha},D.isTransparent=function(){return this.hasAlpha},D.pickSlots=1,D.setPickBase=function(H){this.pickId=H};function F(H,q){if(!q||!q.length)return 1;for(var Q=0;QH&&Q>0){var N=(q[Q][0]-H)/(q[Q][0]-q[Q-1][0]);return q[Q][1]*(1-N)+N*q[Q-1][1]}}return 1}function P(H,q){for(var Q=m({colormap:H,nshades:256,format:"rgba"}),N=new Uint8Array(256*4),U=0;U<256;++U){for(var J=Q[U],j=0;j<3;++j)N[4*U+j]=J[j];q?N[4*U+3]=255*F(U/255,q):N[4*U+3]=255*J[3]}return y(N,[256,256,4],[4,0,1])}function I(H){for(var q=H.length,Q=new Array(q),N=0;N0){var ze=this.triShader;ze.bind(),ze.uniforms=$,this.triangleVAO.bind(),q.drawArrays(q.TRIANGLES,0,this.triangleCount*3),this.triangleVAO.unbind()}if(this.edgeCount>0&&this.lineWidth>0){var ze=this.lineShader;ze.bind(),ze.uniforms=$,this.edgeVAO.bind(),q.lineWidth(this.lineWidth*this.pixelRatio),q.drawArrays(q.LINES,0,this.edgeCount*2),this.edgeVAO.unbind()}if(this.pointCount>0){var ze=this.pointShader;ze.bind(),ze.uniforms=$,this.pointVAO.bind(),q.drawArrays(q.POINTS,0,this.pointCount),this.pointVAO.unbind()}if(this.contourEnable&&this.contourCount>0&&this.contourLineWidth>0){var ze=this.contourShader;ze.bind(),ze.uniforms=$,this.contourVAO.bind(),q.drawArrays(q.LINES,0,this.contourCount),this.contourVAO.unbind()}},D.drawPick=function(H){H=H||{};for(var q=this.gl,Q=H.model||C,N=H.view||C,U=H.projection||C,J=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],j=0;j<3;++j)J[0][j]=Math.max(J[0][j],this.clipBounds[0][j]),J[1][j]=Math.min(J[1][j],this.clipBounds[1][j]);this._model=[].slice.call(Q),this._view=[].slice.call(N),this._projection=[].slice.call(U),this._resolution=[q.drawingBufferWidth,q.drawingBufferHeight];var $={model:Q,view:N,projection:U,clipBounds:J,pickId:this.pickId/255},ie=this.pickShader;if(ie.bind(),ie.uniforms=$,this.triangleCount>0&&(this.triangleVAO.bind(),q.drawArrays(q.TRIANGLES,0,this.triangleCount*3),this.triangleVAO.unbind()),this.edgeCount>0&&(this.edgeVAO.bind(),q.lineWidth(this.lineWidth*this.pixelRatio),q.drawArrays(q.LINES,0,this.edgeCount*2),this.edgeVAO.unbind()),this.pointCount>0){var ie=this.pointPickShader;ie.bind(),ie.uniforms=$,this.pointVAO.bind(),q.drawArrays(q.POINTS,0,this.pointCount),this.pointVAO.unbind()}},D.pick=function(H){if(!H||H.id!==this.pickId)return null;for(var q=H.value[0]+256*H.value[1]+65536*H.value[2],Q=this.cells[q],N=this.positions,U=new Array(Q.length),J=0;JMath.abs(g))m.rotate(C,0,0,-A*E*Math.PI*x.rotateSpeed/window.innerWidth);else if(!x._ortho){var k=-x.zoomSpeed*S*g/window.innerHeight*(C-m.lastT())/20;m.pan(C,0,0,_*(Math.exp(k)-1))}}},!0)},x.enableMouseListeners(),x}},799(n,a,o){var s=o(3236),l=o(9405),u=s([`precision mediump float; #define GLSLIFY 1 attribute vec2 position; varying vec2 uv; @@ -1255,7 +1255,7 @@ varying vec2 uv; void main() { vec4 accum = texture2D(accumBuffer, 0.5 * (uv + 1.0)); gl_FragColor = min(vec4(1,1,1,1), accum); -}`]);n.exports=function(c){return l(c,u,f,null,[{name:"position",type:"vec2"}])}},4100(n,a,o){"use strict";var s=o(4437),l=o(3837),u=o(5445),f=o(4449),c=o(3589),h=o(2260),d=o(7169),p=o(351),v=o(4772),y=o(4040),m=o(799),w=o(2431)({tablet:!0,featureDetect:!0});n.exports={createScene:A,createCamera:s};function _(){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 b(g,E){var S=null;try{S=g.getContext("webgl",E),S||(S=g.getContext("experimental-webgl",E))}catch(C){return null}return S}function M(g){var E=Math.round(Math.log(Math.abs(g))/Math.log(10));if(E<0){var S=Math.round(Math.pow(10,-E));return Math.ceil(g*S)/S}else if(E>0){var S=Math.round(Math.pow(10,E));return Math.ceil(g/S)*S}return Math.ceil(g)}function x(g){return typeof g=="boolean"?g:!0}function A(g){g=g||{},g.camera=g.camera||{};var E=g.canvas;if(!E)if(E=document.createElement("canvas"),g.container){var S=g.container;S.appendChild(E)}else document.body.appendChild(E);var C=g.gl;if(C||(g.glOptions&&(w=!!g.glOptions.preserveDrawingBuffer),C=b(E,g.glOptions||{premultipliedAlpha:!0,antialias:!0,preserveDrawingBuffer:w})),!C)throw new Error("webgl not supported");var k=g.bounds||[[-10,-10,-10],[10,10,10]],D=new _,L=h(C,C.drawingBufferWidth,C.drawingBufferHeight,{preferFloat:!w}),P=m(C),I=g.cameraObject&&g.cameraObject._ortho===!0||g.camera.projection&&g.camera.projection.type==="orthographic"||!1,F={eye:g.camera.eye||[2,0,0],center:g.camera.center||[0,0,0],up:g.camera.up||[0,1,0],zoomMin:g.camera.zoomMax||.1,zoomMax:g.camera.zoomMin||100,mode:g.camera.mode||"turntable",_ortho:I},z=g.axes||{},B=l(C,z);B.enable=!z.disable;var O=g.spikes||{},W=f(C,O),X=[],Z=[],j=[],q=[],Q=!0,H=!0,N=new Array(16),V=new Array(16),J={view:null,projection:N,model:V,_ortho:!1},H=!0,$=[C.drawingBufferWidth,C.drawingBufferHeight],te=g.cameraObject||s(E,F),ie={gl:C,contextLost:!1,pixelRatio:g.pixelRatio||1,canvas:E,selection:D,camera:te,axes:B,axesPixels:null,spikes:W,bounds:k,objects:X,shape:$,aspect:g.aspectRatio||[1,1,1],pickRadius:g.pickRadius||10,zNear:g.zNear||.01,zFar:g.zFar||1e3,fovy:g.fovy||Math.PI/4,clearColor:g.clearColor||[0,0,0,0],autoResize:x(g.autoResize),autoBounds:x(g.autoBounds),autoScale:!!g.autoScale,autoCenter:x(g.autoCenter),clipToBounds:x(g.clipToBounds),snapToData:!!g.snapToData,onselect:g.onselect||null,onrender:g.onrender||null,onclick:g.onclick||null,cameraParams:J,oncontextloss:null,mouseListener:null,_stopped:!1,getAspectratio:function(){return{x:this.aspect[0],y:this.aspect[1],z:this.aspect[2]}},setAspectratio:function(Y){this.aspect[0]=Y.x,this.aspect[1]=Y.y,this.aspect[2]=Y.z,H=!0},setBounds:function(Y,ne){this.bounds[0][Y]=ne.min,this.bounds[1][Y]=ne.max},setClearColor:function(Y){this.clearColor=Y},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)}},de=[C.drawingBufferWidth/ie.pixelRatio|0,C.drawingBufferHeight/ie.pixelRatio|0];function ge(){if(!ie._stopped&&ie.autoResize){var Y=E.parentNode,ne=1,ye=1;Y&&Y!==document.body?(ne=Y.clientWidth,ye=Y.clientHeight):(ne=window.innerWidth,ye=window.innerHeight);var U=Math.ceil(ne*ie.pixelRatio)|0,se=Math.ceil(ye*ie.pixelRatio)|0;if(U!==E.width||se!==E.height){E.width=U,E.height=se;var Ae=E.style;Ae.position=Ae.position||"absolute",Ae.left="0px",Ae.top="0px",Ae.width=ne+"px",Ae.height=ye+"px",Q=!0}}}ie.autoResize&&ge(),window.addEventListener("resize",ge);function Ie(){for(var Y=X.length,ne=q.length,ye=0;ye0&&j[ne-1]===0;)j.pop(),q.pop().dispose()}ie.update=function(Y){ie._stopped||(Y=Y||{},Q=!0,H=!0)},ie.add=function(Y){ie._stopped||(Y.axes=B,X.push(Y),Z.push(-1),Q=!0,H=!0,Ie())},ie.remove=function(Y){if(!ie._stopped){var ne=X.indexOf(Y);ne<0||(X.splice(ne,1),Z.pop(),Q=!0,H=!0,Ie())}},ie.dispose=function(){if(!ie._stopped&&(ie._stopped=!0,window.removeEventListener("resize",ge),E.removeEventListener("webglcontextlost",Ce),ie.mouseListener.enabled=!1,!ie.contextLost)){B.dispose(),W.dispose();for(var Y=0;YD.distance)continue;for(var pe=0;pe1e-6?(w=Math.acos(_),b=Math.sin(w),M=Math.sin((1-u)*w)/b,x=Math.sin(u*w)/b):(M=1-u,x=u),o[0]=M*f+x*p,o[1]=M*c+x*v,o[2]=M*h+x*y,o[3]=M*d+x*m,o}},5964(n){"use strict";n.exports=function(a){return!a&&a!==0?"":a.toString()}},9366(n,a,o){"use strict";var s=o(4359);n.exports=u;var l={};function u(f,c,h){var d=[c.style,c.weight,c.variant,c.family].join("_"),p=l[d];if(p||(p=l[d]={}),f in p)return p[f];var v={textAlign:"center",textBaseline:"middle",lineHeight:1,font:c.family,fontStyle:c.style,fontWeight:c.weight,fontVariant:c.variant,lineSpacing:1.25,styletags:{breaklines:!0,bolds:!0,italics:!0,subscripts:!0,superscripts:!0}};v.triangles=!0;var y=s(f,v);v.triangles=!1;var m=s(f,v),w,_;if(h&&h!==1){for(w=0;w0){var S=Math.round(Math.pow(10,E));return Math.ceil(g/S)*S}return Math.ceil(g)}function x(g){return typeof g=="boolean"?g:!0}function T(g){g=g||{},g.camera=g.camera||{};var E=g.canvas;if(!E)if(E=document.createElement("canvas"),g.container){var S=g.container;S.appendChild(E)}else document.body.appendChild(E);var C=g.gl;if(C||(g.glOptions&&(w=!!g.glOptions.preserveDrawingBuffer),C=b(E,g.glOptions||{premultipliedAlpha:!0,antialias:!0,preserveDrawingBuffer:w})),!C)throw new Error("webgl not supported");var k=g.bounds||[[-10,-10,-10],[10,10,10]],D=new _,F=h(C,C.drawingBufferWidth,C.drawingBufferHeight,{preferFloat:!w}),P=m(C),I=g.cameraObject&&g.cameraObject._ortho===!0||g.camera.projection&&g.camera.projection.type==="orthographic"||!1,L={eye:g.camera.eye||[2,0,0],center:g.camera.center||[0,0,0],up:g.camera.up||[0,1,0],zoomMin:g.camera.zoomMax||.1,zoomMax:g.camera.zoomMin||100,mode:g.camera.mode||"turntable",_ortho:I},z=g.axes||{},B=l(C,z);B.enable=!z.disable;var O=g.spikes||{},W=f(C,O),X=[],Z=[],H=[],q=[],Q=!0,j=!0,N=new Array(16),U=new Array(16),J={view:null,projection:N,model:U,_ortho:!1},j=!0,$=[C.drawingBufferWidth,C.drawingBufferHeight],ie=g.cameraObject||s(E,L),re={gl:C,contextLost:!1,pixelRatio:g.pixelRatio||1,canvas:E,selection:D,camera:ie,axes:B,axesPixels:null,spikes:W,bounds:k,objects:X,shape:$,aspect:g.aspectRatio||[1,1,1],pickRadius:g.pickRadius||10,zNear:g.zNear||.01,zFar:g.zFar||1e3,fovy:g.fovy||Math.PI/4,clearColor:g.clearColor||[0,0,0,0],autoResize:x(g.autoResize),autoBounds:x(g.autoBounds),autoScale:!!g.autoScale,autoCenter:x(g.autoCenter),clipToBounds:x(g.clipToBounds),snapToData:!!g.snapToData,onselect:g.onselect||null,onrender:g.onrender||null,onclick:g.onclick||null,cameraParams:J,oncontextloss:null,mouseListener:null,_stopped:!1,getAspectratio:function(){return{x:this.aspect[0],y:this.aspect[1],z:this.aspect[2]}},setAspectratio:function(Y){this.aspect[0]=Y.x,this.aspect[1]=Y.y,this.aspect[2]=Y.z,j=!0},setBounds:function(Y,ne){this.bounds[0][Y]=ne.min,this.bounds[1][Y]=ne.max},setClearColor:function(Y){this.clearColor=Y},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)}},de=[C.drawingBufferWidth/re.pixelRatio|0,C.drawingBufferHeight/re.pixelRatio|0];function me(){if(!re._stopped&&re.autoResize){var Y=E.parentNode,ne=1,ye=1;Y&&Y!==document.body?(ne=Y.clientWidth,ye=Y.clientHeight):(ne=window.innerWidth,ye=window.innerHeight);var V=Math.ceil(ne*re.pixelRatio)|0,ue=Math.ceil(ye*re.pixelRatio)|0;if(V!==E.width||ue!==E.height){E.width=V,E.height=ue;var _e=E.style;_e.position=_e.position||"absolute",_e.left="0px",_e.top="0px",_e.width=ne+"px",_e.height=ye+"px",Q=!0}}}re.autoResize&&me(),window.addEventListener("resize",me);function ze(){for(var Y=X.length,ne=q.length,ye=0;ye0&&H[ne-1]===0;)H.pop(),q.pop().dispose()}re.update=function(Y){re._stopped||(Y=Y||{},Q=!0,j=!0)},re.add=function(Y){re._stopped||(Y.axes=B,X.push(Y),Z.push(-1),Q=!0,j=!0,ze())},re.remove=function(Y){if(!re._stopped){var ne=X.indexOf(Y);ne<0||(X.splice(ne,1),Z.pop(),Q=!0,j=!0,ze())}},re.dispose=function(){if(!re._stopped&&(re._stopped=!0,window.removeEventListener("resize",me),E.removeEventListener("webglcontextlost",ke),re.mouseListener.enabled=!1,!re.contextLost)){B.dispose(),W.dispose();for(var Y=0;YD.distance)continue;for(var pe=0;pe1e-6?(w=Math.acos(_),b=Math.sin(w),M=Math.sin((1-u)*w)/b,x=Math.sin(u*w)/b):(M=1-u,x=u),o[0]=M*f+x*p,o[1]=M*c+x*v,o[2]=M*h+x*y,o[3]=M*d+x*m,o}},5964(n){"use strict";n.exports=function(a){return!a&&a!==0?"":a.toString()}},9366(n,a,o){"use strict";var s=o(4359);n.exports=u;var l={};function u(f,c,h){var d=[c.style,c.weight,c.variant,c.family].join("_"),p=l[d];if(p||(p=l[d]={}),f in p)return p[f];var v={textAlign:"center",textBaseline:"middle",lineHeight:1,font:c.family,fontStyle:c.style,fontWeight:c.weight,fontVariant:c.variant,lineSpacing:1.25,styletags:{breaklines:!0,bolds:!0,italics:!0,subscripts:!0,superscripts:!0}};v.triangles=!0;var y=s(f,v);v.triangles=!1;var m=s(f,v),w,_;if(h&&h!==1){for(w=0;w1?1:V}function T(V,J,H,$,te,ie,de,ge,Ie,Ce,le,re){this.gl=V,this.pixelRatio=1,this.shader=J,this.orthoShader=H,this.projectShader=$,this.pointBuffer=te,this.colorBuffer=ie,this.glyphBuffer=de,this.idBuffer=ge,this.vao=Ie,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=Ce,this.pickOrthoShader=le,this.pickProjectShader=re,this.points=[],this._selectResult=new x(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 g=T.prototype;g.pickSlots=1,g.setPickBase=function(V){this.pickId=V},g.isTransparent=function(){if(this.hasAlpha)return!0;for(var V=0;V<3;++V)if(this.axesProject[V]&&this.projectHasAlpha)return!0;return!1},g.isOpaque=function(){if(!this.hasAlpha)return!0;for(var V=0;V<3;++V)if(this.axesProject[V]&&!this.projectHasAlpha)return!0;return!1};var E=[0,0],S=[0,0,0],C=[0,0,0],k=[0,0,0,1],D=[0,0,0,1],L=v.slice(),P=[0,0,0],I=[[0,0,0],[0,0,0]];function F(V){return V[0]=V[1]=V[2]=0,V}function z(V,J){return V[0]=J[0],V[1]=J[1],V[2]=J[2],V[3]=1,V}function B(V,J,H,$){return V[0]=J[0],V[1]=J[1],V[2]=J[2],V[H]=$,V}function O(V){for(var J=I,H=0;H<2;++H)for(var $=0;$<3;++$)J[H][$]=Math.max(Math.min(V[H][$],1e8),-1e8);return J}function W(V,J,H,$){var te=J.axesProject,ie=J.gl,de=V.uniforms,ge=H.model||v,Ie=H.view||v,Ce=H.projection||v,le=J.axesBounds,re=O(J.clipBounds),Ee;J.axes&&J.axes.lastCubeProps?Ee=J.axes.lastCubeProps.axis:Ee=[1,1,1],E[0]=2/ie.drawingBufferWidth,E[1]=2/ie.drawingBufferHeight,V.bind(),de.view=Ie,de.projection=Ce,de.screenSize=E,de.highlightId=J.highlightId,de.highlightScale=J.highlightScale,de.clipBounds=re,de.pickGroup=J.pickId/255,de.pixelRatio=$;for(var we=0;we<3;++we)if(te[we]){de.scale=J.projectScale[we],de.opacity=J.projectOpacity[we];for(var oe=L,Y=0;Y<16;++Y)oe[Y]=0;for(var Y=0;Y<4;++Y)oe[5*Y]=1;oe[5*we]=0,Ee[we]<0?oe[12+we]=le[0][we]:oe[12+we]=le[1][we],c(oe,ge,oe),de.model=oe;var ne=(we+1)%3,ye=(we+2)%3,U=F(S),se=F(C);U[ne]=1,se[ye]=1;var Ae=M(Ce,Ie,ge,z(k,U)),be=M(Ce,Ie,ge,z(D,se));if(Math.abs(Ae[1])>Math.abs(be[1])){var me=Ae;Ae=be,be=me,me=U,U=se,se=me;var ue=ne;ne=ye,ye=ue}Ae[0]<0&&(U[ne]=-1),be[1]>0&&(se[ye]=-1);for(var pe=0,ce=0,Y=0;Y<4;++Y)pe+=Math.pow(ge[4*ne+Y],2),ce+=Math.pow(ge[4*ye+Y],2);U[ne]/=Math.sqrt(pe),se[ye]/=Math.sqrt(ce),de.axes[0]=U,de.axes[1]=se,de.fragClipBounds[0]=B(P,re[0],we,-1e8),de.fragClipBounds[1]=B(P,re[1],we,1e8),J.vao.bind(),J.vao.draw(ie.TRIANGLES,J.vertexCount),J.lineWidth>0&&(ie.lineWidth(J.lineWidth*$),J.vao.draw(ie.LINES,J.lineVertexCount,J.vertexCount)),J.vao.unbind()}}var X=[-1e8,-1e8,-1e8],Z=[1e8,1e8,1e8],j=[X,Z];function q(V,J,H,$,te,ie,de){var ge=H.gl;if((ie===H.projectHasAlpha||de)&&W(J,H,$,te),ie===H.hasAlpha||de){V.bind();var Ie=V.uniforms;Ie.model=$.model||v,Ie.view=$.view||v,Ie.projection=$.projection||v,E[0]=2/ge.drawingBufferWidth,E[1]=2/ge.drawingBufferHeight,Ie.screenSize=E,Ie.highlightId=H.highlightId,Ie.highlightScale=H.highlightScale,Ie.fragClipBounds=j,Ie.clipBounds=H.axes.bounds,Ie.opacity=H.opacity,Ie.pickGroup=H.pickId/255,Ie.pixelRatio=te,H.vao.bind(),H.vao.draw(ge.TRIANGLES,H.vertexCount),H.lineWidth>0&&(ge.lineWidth(H.lineWidth*te),H.vao.draw(ge.LINES,H.lineVertexCount,H.vertexCount)),H.vao.unbind()}}g.draw=function(V){var J=this.useOrtho?this.orthoShader:this.shader;q(J,this.projectShader,this,V,this.pixelRatio,!1,!1)},g.drawTransparent=function(V){var J=this.useOrtho?this.orthoShader:this.shader;q(J,this.projectShader,this,V,this.pixelRatio,!0,!1)},g.drawPick=function(V){var J=this.useOrtho?this.pickOrthoShader:this.pickPerspectiveShader;q(J,this.pickProjectShader,this,V,1,!0,!0)},g.pick=function(V){if(!V||V.id!==this.pickId)return null;var J=V.value[2]+(V.value[1]<<8)+(V.value[0]<<16);if(J>=this.pointCount||J<0)return null;var H=this.points[J],$=this._selectResult;$.index=J;for(var te=0;te<3;++te)$.position[te]=$.dataCoordinate[te]=H[te];return $},g.highlight=function(V){if(!V)this.highlightId=[1,1,1,1];else{var J=V.index,H=J&255,$=J>>8&255,te=J>>16&255;this.highlightId=[H/255,$/255,te/255,0]}};function Q(V,J,H,$){var te;_(V)?J0){var Ue=0,xe=ye,Re=[0,0,0,1],Qe=[0,0,0,1],Pe=_(Ee)&&_(Ee[0]),De=_(Y)&&_(Y[0]);e:for(var $=0;$0?1-ce[0][0]:wt<0?1+ce[1][0]:1,At*=At>0?1-ce[0][1]:At<0?1+ce[1][1]:1;for(var Vt=[wt,At],Ke=ue.cells||[],at=ue.positions||[],be=0;bethis.buffer.length){l.free(this.buffer);for(var _=this.buffer=l.mallocUint8(f(w*m*4)),b=0;b_)for(m=_;mw)for(m=w;m<_;m++)this.gl.disableVertexAttribArray(m);this.gl.lastAttribCount=w,this.gl.useProgram(this.program)},p.dispose=function(){for(var m=this.gl.lastAttribCount,w=0;w=0){for(var I=P.type.charAt(P.type.length-1)|0,F=new Array(I),z=0;z=0;)B+=1;D[L]=B}var O=new Array(_.length);function W(){x.program=f.program(A,x._vref,x._fref,k,D);for(var X=0;X<_.length;++X)O[X]=A.getUniformLocation(x.program,_[X].name)}W(),x._relink=W,x.types={uniforms:u(_),attributes:u(b)},x.attributes=l(A,x,C,D),Object.defineProperty(x,"uniforms",s(A,x,_,O))};function y(m,w,_,b,M){var x=new d(m);return x.update(w,_,b,M),x}n.exports=y},8866(n){function a(o,s,l){this.shortMessage=s||"",this.longMessage=l||"",this.rawError=o||"",this.message="gl-shader: "+(s||o||"")+(l?` -`+l:""),this.stack=new Error().stack}a.prototype=new Error,a.prototype.name="GLError",a.prototype.constructor=a,n.exports=a},8731(n,a,o){"use strict";n.exports=d;var s=o(8866);function l(p,v,y,m,w,_){this._gl=p,this._wrapper=v,this._index=y,this._locations=m,this._dimension=w,this._constFunc=_}var u=l.prototype;u.pointer=function(v,y,m,w){var _=this,b=_._gl,M=_._locations[_._index];b.vertexAttribPointer(M,_._dimension,v||b.FLOAT,!!y,m||0,w||0),b.enableVertexAttribArray(M)},u.set=function(p,v,y,m){return this._constFunc(this._locations[this._index],p,v,y,m)},Object.defineProperty(u,"location",{get:function(){return this._locations[this._index]},set:function(p){return p!==this._locations[this._index]&&(this._locations[this._index]=p|0,this._wrapper.program=null),p|0}});var f=[function(p,v,y){return y.length===void 0?p.vertexAttrib1f(v,y):p.vertexAttrib1fv(v,y)},function(p,v,y,m){return y.length===void 0?p.vertexAttrib2f(v,y,m):p.vertexAttrib2fv(v,y)},function(p,v,y,m,w){return y.length===void 0?p.vertexAttrib3f(v,y,m,w):p.vertexAttrib3fv(v,y)},function(p,v,y,m,w,_){return y.length===void 0?p.vertexAttrib4f(v,y,m,w,_):p.vertexAttrib4fv(v,y)}];function c(p,v,y,m,w,_,b){var M=f[w],x=new l(p,v,y,m,w,M);Object.defineProperty(_,b,{set:function(A){return p.disableVertexAttribArray(m[y]),M(p,m[y],A),A},get:function(){return x},enumerable:!0})}function h(p,v,y,m,w,_,b){for(var M=new Array(w),x=new Array(w),A=0;A=0){var g=A.charCodeAt(A.length-1)-48;if(g<2||g>4)throw new s("","Invalid data type for attribute "+x+": "+A);c(p,v,T[0],m,g,w,x)}else if(A.indexOf("mat")>=0){var g=A.charCodeAt(A.length-1)-48;if(g<2||g>4)throw new s("","Invalid data type for attribute "+x+": "+A);h(p,v,T,m,g,w,x)}else throw new s("","Unknown data type for attribute "+x+": "+A);break}}return w}},3327(n,a,o){"use strict";var s=o(216),l=o(8866);n.exports=c;function u(h){return function(){return h}}function f(h,d){for(var p=new Array(h),v=0;v4)throw new l("","Invalid data type");switch(B.charAt(0)){case"b":case"i":h["uniform"+O+"iv"](v[D],L);break;case"v":h["uniform"+O+"fv"](v[D],L);break;default:throw new l("","Unrecognized data type for vector "+name+": "+B)}}else if(B.indexOf("mat")===0&&B.length===4){if(O=B.charCodeAt(B.length-1)-48,O<2||O>4)throw new l("","Invalid uniform dimension type for matrix "+name+": "+B);h["uniformMatrix"+O+"fv"](v[D],!1,L);break}else throw new l("","Unknown uniform data type for "+name+": "+B)}}}}}function w(A,T){if(typeof T!="object")return[[A,T]];var g=[];for(var E in T){var S=T[E],C=A;parseInt(E)+""===E?C+="["+E+"]":C+="."+E,typeof S=="object"?g.push.apply(g,w(C,S)):g.push([C,S])}return g}function _(A){switch(A){case"bool":return!1;case"int":case"sampler2D":case"samplerCube":return 0;case"float":return 0;default:var T=A.indexOf("vec");if(0<=T&&T<=1&&A.length===4+T){var g=A.charCodeAt(A.length-1)-48;if(g<2||g>4)throw new l("","Invalid data type");return A.charAt(0)==="b"?f(g,!1):f(g,0)}else if(A.indexOf("mat")===0&&A.length===4){var g=A.charCodeAt(A.length-1)-48;if(g<2||g>4)throw new l("","Invalid uniform dimension type for matrix "+name+": "+A);return f(g*g,0)}else throw new l("","Unknown uniform data type for "+name+": "+A)}}function b(A,T,g){if(typeof g=="object"){var E=M(g);Object.defineProperty(A,T,{get:u(E),set:m(g),enumerable:!0,configurable:!1})}else v[g]?Object.defineProperty(A,T,{get:y(g),set:m(g),enumerable:!0,configurable:!1}):A[T]=_(p[g].type)}function M(A){var T;if(Array.isArray(A)){T=new Array(A.length);for(var g=0;g1){p[0]in h||(h[p[0]]=[]),h=h[p[0]];for(var v=1;v1)for(var w=0;w1?1:U}function A(U,J,j,$,ie,re,de,me,ze,ke,le,te){this.gl=U,this.pixelRatio=1,this.shader=J,this.orthoShader=j,this.projectShader=$,this.pointBuffer=ie,this.colorBuffer=re,this.glyphBuffer=de,this.idBuffer=me,this.vao=ze,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=ke,this.pickOrthoShader=le,this.pickProjectShader=te,this.points=[],this._selectResult=new x(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 g=A.prototype;g.pickSlots=1,g.setPickBase=function(U){this.pickId=U},g.isTransparent=function(){if(this.hasAlpha)return!0;for(var U=0;U<3;++U)if(this.axesProject[U]&&this.projectHasAlpha)return!0;return!1},g.isOpaque=function(){if(!this.hasAlpha)return!0;for(var U=0;U<3;++U)if(this.axesProject[U]&&!this.projectHasAlpha)return!0;return!1};var E=[0,0],S=[0,0,0],C=[0,0,0],k=[0,0,0,1],D=[0,0,0,1],F=v.slice(),P=[0,0,0],I=[[0,0,0],[0,0,0]];function L(U){return U[0]=U[1]=U[2]=0,U}function z(U,J){return U[0]=J[0],U[1]=J[1],U[2]=J[2],U[3]=1,U}function B(U,J,j,$){return U[0]=J[0],U[1]=J[1],U[2]=J[2],U[j]=$,U}function O(U){for(var J=I,j=0;j<2;++j)for(var $=0;$<3;++$)J[j][$]=Math.max(Math.min(U[j][$],1e8),-1e8);return J}function W(U,J,j,$){var ie=J.axesProject,re=J.gl,de=U.uniforms,me=j.model||v,ze=j.view||v,ke=j.projection||v,le=J.axesBounds,te=O(J.clipBounds),Ee;J.axes&&J.axes.lastCubeProps?Ee=J.axes.lastCubeProps.axis:Ee=[1,1,1],E[0]=2/re.drawingBufferWidth,E[1]=2/re.drawingBufferHeight,U.bind(),de.view=ze,de.projection=ke,de.screenSize=E,de.highlightId=J.highlightId,de.highlightScale=J.highlightScale,de.clipBounds=te,de.pickGroup=J.pickId/255,de.pixelRatio=$;for(var we=0;we<3;++we)if(ie[we]){de.scale=J.projectScale[we],de.opacity=J.projectOpacity[we];for(var oe=F,Y=0;Y<16;++Y)oe[Y]=0;for(var Y=0;Y<4;++Y)oe[5*Y]=1;oe[5*we]=0,Ee[we]<0?oe[12+we]=le[0][we]:oe[12+we]=le[1][we],c(oe,me,oe),de.model=oe;var ne=(we+1)%3,ye=(we+2)%3,V=L(S),ue=L(C);V[ne]=1,ue[ye]=1;var _e=M(ke,ze,me,z(k,V)),xe=M(ke,ze,me,z(D,ue));if(Math.abs(_e[1])>Math.abs(xe[1])){var Ae=_e;_e=xe,xe=Ae,Ae=V,V=ue,ue=Ae;var se=ne;ne=ye,ye=se}_e[0]<0&&(V[ne]=-1),xe[1]>0&&(ue[ye]=-1);for(var pe=0,fe=0,Y=0;Y<4;++Y)pe+=Math.pow(me[4*ne+Y],2),fe+=Math.pow(me[4*ye+Y],2);V[ne]/=Math.sqrt(pe),ue[ye]/=Math.sqrt(fe),de.axes[0]=V,de.axes[1]=ue,de.fragClipBounds[0]=B(P,te[0],we,-1e8),de.fragClipBounds[1]=B(P,te[1],we,1e8),J.vao.bind(),J.vao.draw(re.TRIANGLES,J.vertexCount),J.lineWidth>0&&(re.lineWidth(J.lineWidth*$),J.vao.draw(re.LINES,J.lineVertexCount,J.vertexCount)),J.vao.unbind()}}var X=[-1e8,-1e8,-1e8],Z=[1e8,1e8,1e8],H=[X,Z];function q(U,J,j,$,ie,re,de){var me=j.gl;if((re===j.projectHasAlpha||de)&&W(J,j,$,ie),re===j.hasAlpha||de){U.bind();var ze=U.uniforms;ze.model=$.model||v,ze.view=$.view||v,ze.projection=$.projection||v,E[0]=2/me.drawingBufferWidth,E[1]=2/me.drawingBufferHeight,ze.screenSize=E,ze.highlightId=j.highlightId,ze.highlightScale=j.highlightScale,ze.fragClipBounds=H,ze.clipBounds=j.axes.bounds,ze.opacity=j.opacity,ze.pickGroup=j.pickId/255,ze.pixelRatio=ie,j.vao.bind(),j.vao.draw(me.TRIANGLES,j.vertexCount),j.lineWidth>0&&(me.lineWidth(j.lineWidth*ie),j.vao.draw(me.LINES,j.lineVertexCount,j.vertexCount)),j.vao.unbind()}}g.draw=function(U){var J=this.useOrtho?this.orthoShader:this.shader;q(J,this.projectShader,this,U,this.pixelRatio,!1,!1)},g.drawTransparent=function(U){var J=this.useOrtho?this.orthoShader:this.shader;q(J,this.projectShader,this,U,this.pixelRatio,!0,!1)},g.drawPick=function(U){var J=this.useOrtho?this.pickOrthoShader:this.pickPerspectiveShader;q(J,this.pickProjectShader,this,U,1,!0,!0)},g.pick=function(U){if(!U||U.id!==this.pickId)return null;var J=U.value[2]+(U.value[1]<<8)+(U.value[0]<<16);if(J>=this.pointCount||J<0)return null;var j=this.points[J],$=this._selectResult;$.index=J;for(var ie=0;ie<3;++ie)$.position[ie]=$.dataCoordinate[ie]=j[ie];return $},g.highlight=function(U){if(!U)this.highlightId=[1,1,1,1];else{var J=U.index,j=J&255,$=J>>8&255,ie=J>>16&255;this.highlightId=[j/255,$/255,ie/255,0]}};function Q(U,J,j,$){var ie;_(U)?J0){var Ge=0,ge=ye,Be=[0,0,0,1],Ze=[0,0,0,1],Le=_(Ee)&&_(Ee[0]),De=_(Y)&&_(Y[0]);e:for(var $=0;$0?1-fe[0][0]:_t<0?1+fe[1][0]:1,At*=At>0?1-fe[0][1]:At<0?1+fe[1][1]:1;for(var Gt=[_t,At],Ye=se.cells||[],nt=se.positions||[],xe=0;xethis.buffer.length){l.free(this.buffer);for(var _=this.buffer=l.mallocUint8(f(w*m*4)),b=0;b_)for(m=_;mw)for(m=w;m<_;m++)this.gl.disableVertexAttribArray(m);this.gl.lastAttribCount=w,this.gl.useProgram(this.program)},p.dispose=function(){for(var m=this.gl.lastAttribCount,w=0;w=0){for(var I=P.type.charAt(P.type.length-1)|0,L=new Array(I),z=0;z=0;)B+=1;D[F]=B}var O=new Array(_.length);function W(){x.program=f.program(T,x._vref,x._fref,k,D);for(var X=0;X<_.length;++X)O[X]=T.getUniformLocation(x.program,_[X].name)}W(),x._relink=W,x.types={uniforms:u(_),attributes:u(b)},x.attributes=l(T,x,C,D),Object.defineProperty(x,"uniforms",s(T,x,_,O))};function y(m,w,_,b,M){var x=new d(m);return x.update(w,_,b,M),x}n.exports=y},8866(n){function a(o,s,l){this.shortMessage=s||"",this.longMessage=l||"",this.rawError=o||"",this.message="gl-shader: "+(s||o||"")+(l?` +`+l:""),this.stack=new Error().stack}a.prototype=new Error,a.prototype.name="GLError",a.prototype.constructor=a,n.exports=a},8731(n,a,o){"use strict";n.exports=d;var s=o(8866);function l(p,v,y,m,w,_){this._gl=p,this._wrapper=v,this._index=y,this._locations=m,this._dimension=w,this._constFunc=_}var u=l.prototype;u.pointer=function(v,y,m,w){var _=this,b=_._gl,M=_._locations[_._index];b.vertexAttribPointer(M,_._dimension,v||b.FLOAT,!!y,m||0,w||0),b.enableVertexAttribArray(M)},u.set=function(p,v,y,m){return this._constFunc(this._locations[this._index],p,v,y,m)},Object.defineProperty(u,"location",{get:function(){return this._locations[this._index]},set:function(p){return p!==this._locations[this._index]&&(this._locations[this._index]=p|0,this._wrapper.program=null),p|0}});var f=[function(p,v,y){return y.length===void 0?p.vertexAttrib1f(v,y):p.vertexAttrib1fv(v,y)},function(p,v,y,m){return y.length===void 0?p.vertexAttrib2f(v,y,m):p.vertexAttrib2fv(v,y)},function(p,v,y,m,w){return y.length===void 0?p.vertexAttrib3f(v,y,m,w):p.vertexAttrib3fv(v,y)},function(p,v,y,m,w,_){return y.length===void 0?p.vertexAttrib4f(v,y,m,w,_):p.vertexAttrib4fv(v,y)}];function c(p,v,y,m,w,_,b){var M=f[w],x=new l(p,v,y,m,w,M);Object.defineProperty(_,b,{set:function(T){return p.disableVertexAttribArray(m[y]),M(p,m[y],T),T},get:function(){return x},enumerable:!0})}function h(p,v,y,m,w,_,b){for(var M=new Array(w),x=new Array(w),T=0;T=0){var g=T.charCodeAt(T.length-1)-48;if(g<2||g>4)throw new s("","Invalid data type for attribute "+x+": "+T);c(p,v,A[0],m,g,w,x)}else if(T.indexOf("mat")>=0){var g=T.charCodeAt(T.length-1)-48;if(g<2||g>4)throw new s("","Invalid data type for attribute "+x+": "+T);h(p,v,A,m,g,w,x)}else throw new s("","Unknown data type for attribute "+x+": "+T);break}}return w}},3327(n,a,o){"use strict";var s=o(216),l=o(8866);n.exports=c;function u(h){return function(){return h}}function f(h,d){for(var p=new Array(h),v=0;v4)throw new l("","Invalid data type");switch(B.charAt(0)){case"b":case"i":h["uniform"+O+"iv"](v[D],F);break;case"v":h["uniform"+O+"fv"](v[D],F);break;default:throw new l("","Unrecognized data type for vector "+name+": "+B)}}else if(B.indexOf("mat")===0&&B.length===4){if(O=B.charCodeAt(B.length-1)-48,O<2||O>4)throw new l("","Invalid uniform dimension type for matrix "+name+": "+B);h["uniformMatrix"+O+"fv"](v[D],!1,F);break}else throw new l("","Unknown uniform data type for "+name+": "+B)}}}}}function w(T,A){if(typeof A!="object")return[[T,A]];var g=[];for(var E in A){var S=A[E],C=T;parseInt(E)+""===E?C+="["+E+"]":C+="."+E,typeof S=="object"?g.push.apply(g,w(C,S)):g.push([C,S])}return g}function _(T){switch(T){case"bool":return!1;case"int":case"sampler2D":case"samplerCube":return 0;case"float":return 0;default:var A=T.indexOf("vec");if(0<=A&&A<=1&&T.length===4+A){var g=T.charCodeAt(T.length-1)-48;if(g<2||g>4)throw new l("","Invalid data type");return T.charAt(0)==="b"?f(g,!1):f(g,0)}else if(T.indexOf("mat")===0&&T.length===4){var g=T.charCodeAt(T.length-1)-48;if(g<2||g>4)throw new l("","Invalid uniform dimension type for matrix "+name+": "+T);return f(g*g,0)}else throw new l("","Unknown uniform data type for "+name+": "+T)}}function b(T,A,g){if(typeof g=="object"){var E=M(g);Object.defineProperty(T,A,{get:u(E),set:m(g),enumerable:!0,configurable:!1})}else v[g]?Object.defineProperty(T,A,{get:y(g),set:m(g),enumerable:!0,configurable:!1}):T[A]=_(p[g].type)}function M(T){var A;if(Array.isArray(T)){A=new Array(T.length);for(var g=0;g1){p[0]in h||(h[p[0]]=[]),h=h[p[0]];for(var v=1;v1)for(var w=0;w0)for(var q=0;qM)return A-1}return A},d=function(b,M,x){return bx?x:b},p=function(b,M,x){var A=M.vectors,T=M.meshgrid,g=b[0],E=b[1],S=b[2],C=T[0].length,k=T[1].length,D=T[2].length,L=h(T[0],g),P=h(T[1],E),I=h(T[2],S),F=L+1,z=P+1,B=I+1;if(L=d(L,0,C-1),F=d(F,0,C-1),P=d(P,0,k-1),z=d(z,0,k-1),I=d(I,0,D-1),B=d(B,0,D-1),L<0||P<0||I<0||F>C-1||z>k-1||B>D-1)return s.create();var O=T[0][L],W=T[0][F],X=T[1][P],Z=T[1][z],j=T[2][I],q=T[2][B],Q=(g-O)/(W-O),N=(E-X)/(Z-X),V=(S-j)/(q-j);isFinite(Q)||(Q=.5),isFinite(N)||(N=.5),isFinite(V)||(V=.5);var J,H,$,te,ie,de;switch(x.reversedX&&(L=C-1-L,F=C-1-F),x.reversedY&&(P=k-1-P,z=k-1-z),x.reversedZ&&(I=D-1-I,B=D-1-B),x.filled){case 5:ie=I,de=B,$=P*D,te=z*D,J=L*D*k,H=F*D*k;break;case 4:ie=I,de=B,J=L*D,H=F*D,$=P*D*C,te=z*D*C;break;case 3:$=P,te=z,ie=I*k,de=B*k,J=L*k*D,H=F*k*D;break;case 2:$=P,te=z,J=L*k,H=F*k,ie=I*k*C,de=B*k*C;break;case 1:J=L,H=F,ie=I*C,de=B*C,$=P*C*D,te=z*C*D;break;default:J=L,H=F,$=P*C,te=z*C,ie=I*C*k,de=B*C*k;break}var ge=A[J+$+ie],Ie=A[J+$+de],Ce=A[J+te+ie],le=A[J+te+de],re=A[H+$+ie],Ee=A[H+$+de],we=A[H+te+ie],oe=A[H+te+de],Y=s.create(),ne=s.create(),ye=s.create(),U=s.create();s.lerp(Y,ge,re,Q),s.lerp(ne,Ie,Ee,Q),s.lerp(ye,Ce,we,Q),s.lerp(U,le,oe,Q);var se=s.create(),Ae=s.create();s.lerp(se,Y,ye,N),s.lerp(Ae,ne,U,N);var be=s.create();return s.lerp(be,se,Ae,V),be},v=function(b,M){var x=M[0],A=M[1],T=M[2];return b[0]=x<0?-x:x,b[1]=A<0?-A:A,b[2]=T<0?-T:T,b},y=function(b){var M=1/0;b.sort(function(g,E){return g-E});for(var x=b.length,A=1;AF||oez||YB)},W=s.distance(M[0],M[1]),X=10*W/A,Z=X*X,j=1,q=0,Q=x.length;Q>1&&(j=m(x));for(var N=0;Nq&&(q=ge),ie.push(ge),D.push({points:J,velocities:H,divergences:ie});for(var Ie=0;IeZ&&s.scale(Ce,Ce,X/Math.sqrt(le)),s.add(Ce,Ce,V),$=C(Ce),s.squaredDistance(te,Ce)-Z>-1e-4*Z){J.push(Ce),te=Ce,H.push($);var de=k(Ce,$),ge=s.length(de);isFinite(ge)&&ge>q&&(q=ge),ie.push(ge)}V=Ce}}var re=c(D,b.colormap,q,j);return g?re.tubeScale=g:(q===0&&(q=1),re.tubeScale=T*.5*j/q),re};var w=o(6740),_=o(6405).createMesh;n.exports.createTubeMesh=function(b,M){return _(b,M,{shaders:w,traceType:"streamtube"})}},990(n,a,o){var s=o(9405),l=o(3236),u=l([`precision highp float; +}`]);a.meshShader={vertex:l,fragment:u,attributes:[{name:"position",type:"vec4"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"},{name:"vector",type:"vec4"}]},a.pickShader={vertex:f,fragment:c,attributes:[{name:"position",type:"vec4"},{name:"id",type:"vec4"},{name:"vector",type:"vec4"}]}},7815(n,a,o){"use strict";var s=o(2931),l=o(9970),u=["xyz","xzy","yxz","yzx","zxy","zyx"],f=function(b,M,x,T){for(var A=b.points,g=b.velocities,E=b.divergences,S=[],C=[],k=[],D=[],F=[],P=[],I=0,L=0,z=l.create(),B=l.create(),O=8,W=0;W0)for(var q=0;qM)return T-1}return T},d=function(b,M,x){return bx?x:b},p=function(b,M,x){var T=M.vectors,A=M.meshgrid,g=b[0],E=b[1],S=b[2],C=A[0].length,k=A[1].length,D=A[2].length,F=h(A[0],g),P=h(A[1],E),I=h(A[2],S),L=F+1,z=P+1,B=I+1;if(F=d(F,0,C-1),L=d(L,0,C-1),P=d(P,0,k-1),z=d(z,0,k-1),I=d(I,0,D-1),B=d(B,0,D-1),F<0||P<0||I<0||L>C-1||z>k-1||B>D-1)return s.create();var O=A[0][F],W=A[0][L],X=A[1][P],Z=A[1][z],H=A[2][I],q=A[2][B],Q=(g-O)/(W-O),N=(E-X)/(Z-X),U=(S-H)/(q-H);isFinite(Q)||(Q=.5),isFinite(N)||(N=.5),isFinite(U)||(U=.5);var J,j,$,ie,re,de;switch(x.reversedX&&(F=C-1-F,L=C-1-L),x.reversedY&&(P=k-1-P,z=k-1-z),x.reversedZ&&(I=D-1-I,B=D-1-B),x.filled){case 5:re=I,de=B,$=P*D,ie=z*D,J=F*D*k,j=L*D*k;break;case 4:re=I,de=B,J=F*D,j=L*D,$=P*D*C,ie=z*D*C;break;case 3:$=P,ie=z,re=I*k,de=B*k,J=F*k*D,j=L*k*D;break;case 2:$=P,ie=z,J=F*k,j=L*k,re=I*k*C,de=B*k*C;break;case 1:J=F,j=L,re=I*C,de=B*C,$=P*C*D,ie=z*C*D;break;default:J=F,j=L,$=P*C,ie=z*C,re=I*C*k,de=B*C*k;break}var me=T[J+$+re],ze=T[J+$+de],ke=T[J+ie+re],le=T[J+ie+de],te=T[j+$+re],Ee=T[j+$+de],we=T[j+ie+re],oe=T[j+ie+de],Y=s.create(),ne=s.create(),ye=s.create(),V=s.create();s.lerp(Y,me,te,Q),s.lerp(ne,ze,Ee,Q),s.lerp(ye,ke,we,Q),s.lerp(V,le,oe,Q);var ue=s.create(),_e=s.create();s.lerp(ue,Y,ye,N),s.lerp(_e,ne,V,N);var xe=s.create();return s.lerp(xe,ue,_e,U),xe},v=function(b,M){var x=M[0],T=M[1],A=M[2];return b[0]=x<0?-x:x,b[1]=T<0?-T:T,b[2]=A<0?-A:A,b},y=function(b){var M=1/0;b.sort(function(g,E){return g-E});for(var x=b.length,T=1;TL||oez||YB)},W=s.distance(M[0],M[1]),X=10*W/T,Z=X*X,H=1,q=0,Q=x.length;Q>1&&(H=m(x));for(var N=0;Nq&&(q=me),re.push(me),D.push({points:J,velocities:j,divergences:re});for(var ze=0;zeZ&&s.scale(ke,ke,X/Math.sqrt(le)),s.add(ke,ke,U),$=C(ke),s.squaredDistance(ie,ke)-Z>-1e-4*Z){J.push(ke),ie=ke,j.push($);var de=k(ke,$),me=s.length(de);isFinite(me)&&me>q&&(q=me),re.push(me)}U=ke}}var te=c(D,b.colormap,q,H);return g?te.tubeScale=g:(q===0&&(q=1),te.tubeScale=A*.5*H/q),te};var w=o(6740),_=o(6405).createMesh;n.exports.createTubeMesh=function(b,M){return _(b,M,{shaders:w,traceType:"streamtube"})}},990(n,a,o){var s=o(9405),l=o(3236),u=l([`precision highp float; #define GLSLIFY 1 attribute vec4 uv; @@ -2002,13 +2002,13 @@ void main() { vec2 uy = splitFloat(planeCoordinate.y / shape.y); gl_FragColor = vec4(pickId, ux.x, uy.x, ux.y + (uy.y/16.0)); } -`]);a.createShader=function(d){var p=s(d,u,f,null,[{name:"uv",type:"vec4"},{name:"f",type:"vec3"},{name:"normal",type:"vec3"}]);return p.attributes.uv.location=0,p.attributes.f.location=1,p.attributes.normal.location=2,p},a.createPickShader=function(d){var p=s(d,u,h,null,[{name:"uv",type:"vec4"},{name:"f",type:"vec3"},{name:"normal",type:"vec3"}]);return p.attributes.uv.location=0,p.attributes.f.location=1,p.attributes.normal.location=2,p},a.createContourShader=function(d){var p=s(d,c,f,null,[{name:"uv",type:"vec4"},{name:"f",type:"float"}]);return p.attributes.uv.location=0,p.attributes.f.location=1,p},a.createPickContourShader=function(d){var p=s(d,c,h,null,[{name:"uv",type:"vec4"},{name:"f",type:"float"}]);return p.attributes.uv.location=0,p.attributes.f.location=1,p}},9499(n,a,o){"use strict";n.exports=J;var s=o(8828),l=o(2762),u=o(8116),f=o(7766),c=o(1888),h=o(6729),d=o(5298),p=o(9994),v=o(9618),y=o(3711),m=o(6760),w=o(7608),_=o(2478),b=o(6199),M=o(990),x=M.createShader,A=M.createContourShader,T=M.createPickShader,g=M.createPickContourShader,E=40,S=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],C=[[0,0],[0,1],[1,0],[1,1],[1,0],[0,1]],k=[[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 H=0;H<3;++H){var $=k[H],te=(H+1)%3,ie=(H+2)%3;$[te+0]=1,$[ie+3]=1,$[H+6]=1}})();function D(H,$,te,ie,de){this.position=H,this.index=$,this.uv=te,this.level=ie,this.dataCoordinate=de}var L=256;function P(H,$,te,ie,de,ge,Ie,Ce,le,re,Ee,we,oe,Y,ne){this.gl=H,this.shape=$,this.bounds=te,this.objectOffset=ne,this.intensityBounds=[],this._shader=ie,this._pickShader=de,this._coordinateBuffer=ge,this._vao=Ie,this._colorMap=Ce,this._contourShader=le,this._contourPickShader=re,this._contourBuffer=Ee,this._contourVAO=we,this._contourOffsets=[[],[],[]],this._contourCounts=[[],[],[]],this._vertexCount=0,this._pickResult=new D([0,0,0],[0,0],[0,0],[0,0,0],[0,0,0]),this._dynamicBuffer=oe,this._dynamicVAO=Y,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=[v(c.mallocFloat(1024),[0,0]),v(c.mallocFloat(1024),[0,0]),v(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 I=P.prototype;I.genColormap=function(H,$){var te=!1,ie=p([h({colormap:H,nshades:L,format:"rgba"}).map(function(de,ge){var Ie=$?F(ge/255,$):de[3];return Ie<1&&(te=!0),[de[0],de[1],de[2],255*Ie]})]);return d.divseq(ie,255),this.hasAlphaScale=te,ie},I.isTransparent=function(){return this.opacity<1||this.hasAlphaScale},I.isOpaque=function(){return!this.isTransparent()},I.pickSlots=1,I.setPickBase=function(H){this.pickId=H};function F(H,$){if(!$||!$.length)return 1;for(var te=0;te<$.length;++te){if($.length<2)return 1;if($[te][0]===H)return $[te][1];if($[te][0]>H&&te>0){var ie=($[te][0]-H)/($[te][0]-$[te-1][0]);return $[te][1]*(1-ie)+ie*$[te-1][1]}}return 1}var z=[0,0,0],B={showSurface:!1,showContour:!1,projections:[S.slice(),S.slice(),S.slice()],clipBounds:[[[0,0,0],[0,0,0]],[[0,0,0],[0,0,0]],[[0,0,0],[0,0,0]]]};function O(H,$){var te,ie,de,ge=$.axes&&$.axes.lastCubeProps.axis||z,Ie=$.showSurface,Ce=$.showContour;for(te=0;te<3;++te)for(Ie=Ie||$.surfaceProject[te],ie=0;ie<3;++ie)Ce=Ce||$.contourProject[te][ie];for(te=0;te<3;++te){var le=B.projections[te];for(ie=0;ie<16;++ie)le[ie]=0;for(ie=0;ie<4;++ie)le[5*ie]=1;le[5*te]=0,le[12+te]=$.axesBounds[+(ge[te]>0)][te],m(le,H.model,le);var re=B.clipBounds[te];for(de=0;de<2;++de)for(ie=0;ie<3;++ie)re[de][ie]=H.clipBounds[de][ie];re[0][te]=-1e8,re[1][te]=1e8}return B.showSurface=Ie,B.showContour=Ce,B}var W={model:S,view:S,projection:S,inverseModel:S.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},X=S.slice(),Z=[1,0,0,0,1,0,0,0,1];function j(H,$){H=H||{};var te=this.gl;te.disable(te.CULL_FACE),this._colorMap.bind(0);var ie=W;ie.model=H.model||S,ie.view=H.view||S,ie.projection=H.projection||S,ie.lowerBound=[this.bounds[0][0],this.bounds[0][1],this.colorBounds[0]||this.bounds[0][2]],ie.upperBound=[this.bounds[1][0],this.bounds[1][1],this.colorBounds[1]||this.bounds[1][2]],ie.objectOffset=this.objectOffset,ie.contourColor=this.contourColor[0],ie.inverseModel=w(ie.inverseModel,ie.model);for(var de=0;de<2;++de)for(var ge=ie.clipBounds[de],Ie=0;Ie<3;++Ie)ge[Ie]=Math.min(Math.max(this.clipBounds[de][Ie],-1e8),1e8);ie.kambient=this.ambientLight,ie.kdiffuse=this.diffuseLight,ie.kspecular=this.specularLight,ie.roughness=this.roughness,ie.fresnel=this.fresnel,ie.opacity=this.opacity,ie.height=0,ie.permutation=Z,ie.vertexColor=this.vertexColor;var Ce=X;for(m(Ce,ie.view,ie.model),m(Ce,ie.projection,Ce),w(Ce,Ce),de=0;de<3;++de)ie.eyePosition[de]=Ce[12+de]/Ce[15];var le=Ce[15];for(de=0;de<3;++de)le+=this.lightPosition[de]*Ce[4*de+3];for(de=0;de<3;++de){var re=Ce[12+de];for(Ie=0;Ie<3;++Ie)re+=Ce[4*Ie+de]*this.lightPosition[Ie];ie.lightPosition[de]=re/le}var Ee=O(ie,this);if(Ee.showSurface){for(this._shader.bind(),this._shader.uniforms=ie,this._vao.bind(),this.showSurface&&this._vertexCount&&this._vao.draw(te.TRIANGLES,this._vertexCount),de=0;de<3;++de)!this.surfaceProject[de]||!this.vertexCount||(this._shader.uniforms.model=Ee.projections[de],this._shader.uniforms.clipBounds=Ee.clipBounds[de],this._vao.draw(te.TRIANGLES,this._vertexCount));this._vao.unbind()}if(Ee.showContour){var we=this._contourShader;ie.kambient=1,ie.kdiffuse=0,ie.kspecular=0,ie.opacity=1,we.bind(),we.uniforms=ie;var oe=this._contourVAO;for(oe.bind(),de=0;de<3;++de)for(we.uniforms.permutation=k[de],te.lineWidth(this.contourWidth[de]*this.pixelRatio),Ie=0;Ie>4)/16)/255,de=Math.floor(ie),ge=ie-de,Ie=$[1]*(H.value[1]+(H.value[2]&15)/16)/255,Ce=Math.floor(Ie),le=Ie-Ce;de+=1,Ce+=1;var re=te.position;re[0]=re[1]=re[2]=0;for(var Ee=0;Ee<2;++Ee)for(var we=Ee?ge:1-ge,oe=0;oe<2;++oe)for(var Y=oe?le:1-le,ne=de+Ee,ye=Ce+oe,U=we*Y,se=0;se<3;++se)re[se]+=this._field[se].get(ne,ye)*U;for(var Ae=this._pickResult.level,be=0;be<3;++be)if(Ae[be]=_.le(this.contourLevels[be],re[be]),Ae[be]<0)this.contourLevels[be].length>0&&(Ae[be]=0);else if(Ae[be]Math.abs(ue-re[be])&&(Ae[be]+=1)}for(te.index[0]=ge<.5?de:de+1,te.index[1]=le<.5?Ce:Ce+1,te.uv[0]=ie/$[0],te.uv[1]=Ie/$[1],se=0;se<3;++se)te.dataCoordinate[se]=this._field[se].get(te.index[0],te.index[1]);return te},I.padField=function(H,$){var te=$.shape.slice(),ie=H.shape.slice();d.assign(H.lo(1,1).hi(te[0],te[1]),$),d.assign(H.lo(1).hi(te[0],1),$.hi(te[0],1)),d.assign(H.lo(1,ie[1]-1).hi(te[0],1),$.lo(0,te[1]-1).hi(te[0],1)),d.assign(H.lo(0,1).hi(1,te[1]),$.hi(1)),d.assign(H.lo(ie[0]-1,1).hi(1,te[1]),$.lo(te[0]-1)),H.set(0,0,$.get(0,0)),H.set(0,ie[1]-1,$.get(0,te[1]-1)),H.set(ie[0]-1,0,$.get(te[0]-1,0)),H.set(ie[0]-1,ie[1]-1,$.get(te[0]-1,te[1]-1))};function Q(H,$){return Array.isArray(H)?[$(H[0]),$(H[1]),$(H[2])]:[$(H),$(H),$(H)]}function N(H){return Array.isArray(H)?H.length===3?[H[0],H[1],H[2],1]:[H[0],H[1],H[2],H[3]]:[0,0,0,1]}function V(H){if(Array.isArray(H)){if(Array.isArray(H))return[N(H[0]),N(H[1]),N(H[2])];var $=N(H);return[$.slice(),$.slice(),$.slice()]}}I.update=function(H){H=H||{},this.objectOffset=H.objectOffset||this.objectOffset,this.dirty=!0,"contourWidth"in H&&(this.contourWidth=Q(H.contourWidth,Number)),"showContour"in H&&(this.showContour=Q(H.showContour,Boolean)),"showSurface"in H&&(this.showSurface=!!H.showSurface),"contourTint"in H&&(this.contourTint=Q(H.contourTint,Boolean)),"contourColor"in H&&(this.contourColor=V(H.contourColor)),"contourProject"in H&&(this.contourProject=Q(H.contourProject,function(gn){return Q(gn,Boolean)})),"surfaceProject"in H&&(this.surfaceProject=H.surfaceProject),"dynamicColor"in H&&(this.dynamicColor=V(H.dynamicColor)),"dynamicTint"in H&&(this.dynamicTint=Q(H.dynamicTint,Number)),"dynamicWidth"in H&&(this.dynamicWidth=Q(H.dynamicWidth,Number)),"opacity"in H&&(this.opacity=H.opacity),"opacityscale"in H&&(this.opacityscale=H.opacityscale),"colorBounds"in H&&(this.colorBounds=H.colorBounds),"vertexColor"in H&&(this.vertexColor=H.vertexColor?1:0),"colormap"in H&&this._colorMap.setPixels(this.genColormap(H.colormap,this.opacityscale));var $=H.field||H.coords&&H.coords[2]||null,te=!1;if($||(this._field[2].shape[0]||this._field[2].shape[2]?$=this._field[2].lo(1,1).hi(this._field[2].shape[0]-2,this._field[2].shape[1]-2):$=this._field[2].hi(0,0)),"field"in H||"coords"in H){var ie=($.shape[0]+2)*($.shape[1]+2);ie>this._field[2].data.length&&(c.freeFloat(this._field[2].data),this._field[2].data=c.mallocFloat(s.nextPow2(ie))),this._field[2]=v(this._field[2].data,[$.shape[0]+2,$.shape[1]+2]),this.padField(this._field[2],$),this.shape=$.shape.slice();for(var de=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]=v(this._field[ge].data,[de[0]+2,de[1]+2]);if(H.coords){var Ie=H.coords;if(!Array.isArray(Ie)||Ie.length!==3)throw new Error("gl-surface: invalid coordinates for x/y");for(ge=0;ge<2;++ge){var Ce=Ie[ge];for(oe=0;oe<2;++oe)if(Ce.shape[oe]!==de[oe])throw new Error("gl-surface: coords have incorrect shape");this.padField(this._field[ge],Ce)}}else if(H.ticks){var le=H.ticks;if(!Array.isArray(le)||le.length!==2)throw new Error("gl-surface: invalid ticks");for(ge=0;ge<2;++ge){var re=le[ge];if((Array.isArray(re)||re.length)&&(re=v(re)),re.shape[0]!==de[ge])throw new Error("gl-surface: invalid tick length");var Ee=v(re.data,de);Ee.stride[ge]=re.stride[0],Ee.stride[ge^1]=0,this.padField(this._field[ge],Ee)}}else{for(ge=0;ge<2;++ge){var we=[0,0];we[ge]=1,this._field[ge]=v(this._field[ge].data,[de[0]+2,de[1]+2],we,0)}this._field[0].set(0,0,0);for(var oe=0;oe0){for(var Hr=0;Hr<5;++Hr)Dt.pop();Pe-=1}continue e}}}Ke.push(Pe)}this._contourOffsets[yt]=rr,this._contourCounts[yt]=Ke}var Di=c.mallocFloat(Dt.length);for(ge=0;geD||C<0||C>D)throw new Error("gl-texture2d: Invalid texture size");return E._shape=[S,C],E.bind(),k.texImage2D(k.TEXTURE_2D,0,E.format,S,C,0,E.format,E.type,null),E._mipLevels=[0],E}function m(E,S,C,k,D,L){this.gl=E,this.handle=S,this.format=D,this.type=L,this._shape=[C,k],this._mipLevels=[0],this._magFilter=E.NEAREST,this._minFilter=E.NEAREST,this._wrapS=E.CLAMP_TO_EDGE,this._wrapT=E.CLAMP_TO_EDGE,this._anisoSamples=1;var P=this,I=[this._wrapS,this._wrapT];Object.defineProperties(I,[{get:function(){return P._wrapS},set:function(z){return P.wrapS=z}},{get:function(){return P._wrapT},set:function(z){return P.wrapT=z}}]),this._wrapVector=I;var F=[this._shape[0],this._shape[1]];Object.defineProperties(F,[{get:function(){return P._shape[0]},set:function(z){return P.width=z}},{get:function(){return P._shape[1]},set:function(z){return P.height=z}}]),this._shapeVector=F}var w=m.prototype;Object.defineProperties(w,{minFilter:{get:function(){return this._minFilter},set:function(E){this.bind();var S=this.gl;if(this.type===S.FLOAT&&f.indexOf(E)>=0&&(S.getExtension("OES_texture_float_linear")||(E=S.NEAREST)),c.indexOf(E)<0)throw new Error("gl-texture2d: Unknown filter mode "+E);return S.texParameteri(S.TEXTURE_2D,S.TEXTURE_MIN_FILTER,E),this._minFilter=E}},magFilter:{get:function(){return this._magFilter},set:function(E){this.bind();var S=this.gl;if(this.type===S.FLOAT&&f.indexOf(E)>=0&&(S.getExtension("OES_texture_float_linear")||(E=S.NEAREST)),c.indexOf(E)<0)throw new Error("gl-texture2d: Unknown filter mode "+E);return S.texParameteri(S.TEXTURE_2D,S.TEXTURE_MAG_FILTER,E),this._magFilter=E}},mipSamples:{get:function(){return this._anisoSamples},set:function(E){var S=this._anisoSamples;if(this._anisoSamples=Math.max(E,1)|0,S!==this._anisoSamples){var C=this.gl.getExtension("EXT_texture_filter_anisotropic");C&&this.gl.texParameterf(this.gl.TEXTURE_2D,C.TEXTURE_MAX_ANISOTROPY_EXT,this._anisoSamples)}return this._anisoSamples}},wrapS:{get:function(){return this._wrapS},set:function(E){if(this.bind(),h.indexOf(E)<0)throw new Error("gl-texture2d: Unknown wrap mode "+E);return this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_WRAP_S,E),this._wrapS=E}},wrapT:{get:function(){return this._wrapT},set:function(E){if(this.bind(),h.indexOf(E)<0)throw new Error("gl-texture2d: Unknown wrap mode "+E);return this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_WRAP_T,E),this._wrapT=E}},wrap:{get:function(){return this._wrapVector},set:function(E){if(Array.isArray(E)||(E=[E,E]),E.length!==2)throw new Error("gl-texture2d: Must specify wrap mode for rows and columns");for(var S=0;S<2;++S)if(h.indexOf(E[S])<0)throw new Error("gl-texture2d: Unknown wrap mode "+E);this._wrapS=E[0],this._wrapT=E[1];var C=this.gl;return this.bind(),C.texParameteri(C.TEXTURE_2D,C.TEXTURE_WRAP_S,this._wrapS),C.texParameteri(C.TEXTURE_2D,C.TEXTURE_WRAP_T,this._wrapT),E}},shape:{get:function(){return this._shapeVector},set:function(E){if(!Array.isArray(E))E=[E|0,E|0];else if(E.length!==2)throw new Error("gl-texture2d: Invalid texture shape");return y(this,E[0]|0,E[1]|0),[E[0]|0,E[1]|0]}},width:{get:function(){return this._shape[0]},set:function(E){return E=E|0,y(this,E,this._shape[1]),E}},height:{get:function(){return this._shape[1]},set:function(E){return E=E|0,y(this,this._shape[0],E),E}}}),w.bind=function(E){var S=this.gl;return E!==void 0&&S.activeTexture(S.TEXTURE0+(E|0)),S.bindTexture(S.TEXTURE_2D,this.handle),E!==void 0?E|0:S.getParameter(S.ACTIVE_TEXTURE)-S.TEXTURE0},w.dispose=function(){this.gl.deleteTexture(this.handle)},w.generateMipmap=function(){this.bind(),this.gl.generateMipmap(this.gl.TEXTURE_2D);for(var E=Math.min(this._shape[0],this._shape[1]),S=0;E>0;++S,E>>>=1)this._mipLevels.indexOf(S)<0&&this._mipLevels.push(S)},w.setPixels=function(E,S,C,k){var D=this.gl;this.bind(),Array.isArray(S)?(k=C,C=S[1]|0,S=S[0]|0):(S=S||0,C=C||0),k=k||0;var L=p(E)?E:E.raw;if(L){var P=this._mipLevels.indexOf(k)<0;P?(D.texImage2D(D.TEXTURE_2D,0,this.format,this.format,this.type,L),this._mipLevels.push(k)):D.texSubImage2D(D.TEXTURE_2D,k,S,C,this.format,this.type,L)}else if(E.shape&&E.stride&&E.data){if(E.shape.length<2||S+E.shape[1]>this._shape[1]>>>k||C+E.shape[0]>this._shape[0]>>>k||S<0||C<0)throw new Error("gl-texture2d: Texture dimensions are out of bounds");b(D,S,C,k,this.format,this.type,this._mipLevels,E)}else throw new Error("gl-texture2d: Unsupported data type")};function _(E,S){return E.length===3?S[2]===1&&S[1]===E[0]*E[2]&&S[0]===E[2]:S[0]===1&&S[1]===E[0]}function b(E,S,C,k,D,L,P,I){var F=I.dtype,z=I.shape.slice();if(z.length<2||z.length>3)throw new Error("gl-texture2d: Invalid ndarray, must be 2d or 3d");var B=0,O=0,W=_(z,I.stride.slice());F==="float32"?B=E.FLOAT:F==="float64"?(B=E.FLOAT,W=!1,F="float32"):F==="uint8"?B=E.UNSIGNED_BYTE:(B=E.UNSIGNED_BYTE,W=!1,F="uint8");var X=1;if(z.length===2)O=E.LUMINANCE,z=[z[0],z[1],1],I=s(I.data,z,[I.stride[0],I.stride[1],1],I.offset);else if(z.length===3){if(z[2]===1)O=E.ALPHA;else if(z[2]===2)O=E.LUMINANCE_ALPHA;else if(z[2]===3)O=E.RGB;else if(z[2]===4)O=E.RGBA;else throw new Error("gl-texture2d: Invalid shape for pixel coords");X=z[2]}else throw new Error("gl-texture2d: Invalid shape for texture");if((O===E.LUMINANCE||O===E.ALPHA)&&(D===E.LUMINANCE||D===E.ALPHA)&&(O=D),O!==D)throw new Error("gl-texture2d: Incompatible texture format for setPixels");var Z=I.size,j=P.indexOf(k)<0;if(j&&P.push(k),B===L&&W)I.offset===0&&I.data.length===Z?j?E.texImage2D(E.TEXTURE_2D,k,D,z[0],z[1],0,D,L,I.data):E.texSubImage2D(E.TEXTURE_2D,k,S,C,z[0],z[1],D,L,I.data):j?E.texImage2D(E.TEXTURE_2D,k,D,z[0],z[1],0,D,L,I.data.subarray(I.offset,I.offset+Z)):E.texSubImage2D(E.TEXTURE_2D,k,S,C,z[0],z[1],D,L,I.data.subarray(I.offset,I.offset+Z));else{var q;L===E.FLOAT?q=u.mallocFloat32(Z):q=u.mallocUint8(Z);var Q=s(q,z,[z[2],z[2]*z[0],1]);B===E.FLOAT&&L===E.UNSIGNED_BYTE?v(Q,I):l.assign(Q,I),j?E.texImage2D(E.TEXTURE_2D,k,D,z[0],z[1],0,D,L,q.subarray(0,Z)):E.texSubImage2D(E.TEXTURE_2D,k,S,C,z[0],z[1],D,L,q.subarray(0,Z)),L===E.FLOAT?u.freeFloat32(q):u.freeUint8(q)}}function M(E){var S=E.createTexture();return E.bindTexture(E.TEXTURE_2D,S),E.texParameteri(E.TEXTURE_2D,E.TEXTURE_MIN_FILTER,E.NEAREST),E.texParameteri(E.TEXTURE_2D,E.TEXTURE_MAG_FILTER,E.NEAREST),E.texParameteri(E.TEXTURE_2D,E.TEXTURE_WRAP_S,E.CLAMP_TO_EDGE),E.texParameteri(E.TEXTURE_2D,E.TEXTURE_WRAP_T,E.CLAMP_TO_EDGE),S}function x(E,S,C,k,D){var L=E.getParameter(E.MAX_TEXTURE_SIZE);if(S<0||S>L||C<0||C>L)throw new Error("gl-texture2d: Invalid texture shape");if(D===E.FLOAT&&!E.getExtension("OES_texture_float"))throw new Error("gl-texture2d: Floating point textures not supported on this platform");var P=M(E);return E.texImage2D(E.TEXTURE_2D,0,k,S,C,0,k,D,null),new m(E,P,S,C,k,D)}function A(E,S,C,k,D,L){var P=M(E);return E.texImage2D(E.TEXTURE_2D,0,D,D,L,S),new m(E,P,C,k,D,L)}function T(E,S){var C=S.dtype,k=S.shape.slice(),D=E.getParameter(E.MAX_TEXTURE_SIZE);if(k[0]<0||k[0]>D||k[1]<0||k[1]>D)throw new Error("gl-texture2d: Invalid texture size");var L=_(k,S.stride.slice()),P=0;C==="float32"?P=E.FLOAT:C==="float64"?(P=E.FLOAT,L=!1,C="float32"):C==="uint8"?P=E.UNSIGNED_BYTE:(P=E.UNSIGNED_BYTE,L=!1,C="uint8");var I=0;if(k.length===2)I=E.LUMINANCE,k=[k[0],k[1],1],S=s(S.data,k,[S.stride[0],S.stride[1],1],S.offset);else if(k.length===3)if(k[2]===1)I=E.ALPHA;else if(k[2]===2)I=E.LUMINANCE_ALPHA;else if(k[2]===3)I=E.RGB;else if(k[2]===4)I=E.RGBA;else throw new Error("gl-texture2d: Invalid shape for pixel coords");else throw new Error("gl-texture2d: Invalid shape for texture");P===E.FLOAT&&!E.getExtension("OES_texture_float")&&(P=E.UNSIGNED_BYTE,L=!1);var F,z,B=S.size;if(L)S.offset===0&&S.data.length===B?F=S.data:F=S.data.subarray(S.offset,S.offset+B);else{var O=[k[2],k[2]*k[0],1];z=u.malloc(B,C);var W=s(z,k,O,0);(C==="float32"||C==="float64")&&P===E.UNSIGNED_BYTE?v(W,S):l.assign(W,S),F=z.subarray(0,B)}var X=M(E);return E.texImage2D(E.TEXTURE_2D,0,I,k[0],k[1],0,I,P,F),L||u.free(z),new m(E,X,k[0],k[1],I,P)}function g(E){if(arguments.length<=1)throw new Error("gl-texture2d: Missing arguments for texture2d constructor");if(f||d(E),typeof arguments[1]=="number")return x(E,arguments[1],arguments[2],arguments[3]||E.RGBA,arguments[4]||E.UNSIGNED_BYTE);if(Array.isArray(arguments[1]))return x(E,arguments[1][0]|0,arguments[1][1]|0,arguments[2]||E.RGBA,arguments[3]||E.UNSIGNED_BYTE);if(typeof arguments[1]=="object"){var S=arguments[1],C=p(S)?S:S.raw;if(C)return A(E,C,S.width|0,S.height|0,arguments[2]||E.RGBA,arguments[3]||E.UNSIGNED_BYTE);if(S.shape&&S.data&&S.stride)return T(E,S)}throw new Error("gl-texture2d: Invalid arguments for texture2d constructor")}},1433(n){"use strict";function a(o,s,l){s?s.bind():o.bindBuffer(o.ELEMENT_ARRAY_BUFFER,null);var u=o.getParameter(o.MAX_VERTEX_ATTRIBS)|0;if(l){if(l.length>u)throw new Error("gl-vao: Too many vertex attributes");for(var f=0;f1?0:Math.acos(v)}},9226(n){n.exports=a;function a(o,s){return o[0]=Math.ceil(s[0]),o[1]=Math.ceil(s[1]),o[2]=Math.ceil(s[2]),o}},3126(n){n.exports=a;function a(o){var s=new Float32Array(3);return s[0]=o[0],s[1]=o[1],s[2]=o[2],s}},3990(n){n.exports=a;function a(o,s){return o[0]=s[0],o[1]=s[1],o[2]=s[2],o}},1091(n){n.exports=a;function a(){var o=new Float32Array(3);return o[0]=0,o[1]=0,o[2]=0,o}},5911(n){n.exports=a;function a(o,s,l){var u=s[0],f=s[1],c=s[2],h=l[0],d=l[1],p=l[2];return o[0]=f*p-c*d,o[1]=c*h-u*p,o[2]=u*d-f*h,o}},5455(n,a,o){n.exports=o(7056)},7056(n){n.exports=a;function a(o,s){var l=s[0]-o[0],u=s[1]-o[1],f=s[2]-o[2];return Math.sqrt(l*l+u*u+f*f)}},4008(n,a,o){n.exports=o(6690)},6690(n){n.exports=a;function a(o,s,l){return o[0]=s[0]/l[0],o[1]=s[1]/l[1],o[2]=s[2]/l[2],o}},244(n){n.exports=a;function a(o,s){return o[0]*s[0]+o[1]*s[1]+o[2]*s[2]}},2613(n){n.exports=1e-6},9922(n,a,o){n.exports=l;var s=o(2613);function l(u,f){var c=u[0],h=u[1],d=u[2],p=f[0],v=f[1],y=f[2];return Math.abs(c-p)<=s*Math.max(1,Math.abs(c),Math.abs(p))&&Math.abs(h-v)<=s*Math.max(1,Math.abs(h),Math.abs(v))&&Math.abs(d-y)<=s*Math.max(1,Math.abs(d),Math.abs(y))}},9265(n){n.exports=a;function a(o,s){return o[0]===s[0]&&o[1]===s[1]&&o[2]===s[2]}},2681(n){n.exports=a;function a(o,s){return o[0]=Math.floor(s[0]),o[1]=Math.floor(s[1]),o[2]=Math.floor(s[2]),o}},5137(n,a,o){n.exports=l;var s=o(1091)();function l(u,f,c,h,d,p){var v,y;for(f||(f=3),c||(c=0),h?y=Math.min(h*f+c,u.length):y=u.length,v=c;v0&&(c=1/Math.sqrt(c),o[0]=s[0]*c,o[1]=s[1]*c,o[2]=s[2]*c),o}},7636(n){n.exports=a;function a(o,s){s=s||1;var l=Math.random()*2*Math.PI,u=Math.random()*2-1,f=Math.sqrt(1-u*u)*s;return o[0]=Math.cos(l)*f,o[1]=Math.sin(l)*f,o[2]=u*s,o}},6894(n){n.exports=a;function a(o,s,l,u){var f=l[1],c=l[2],h=s[1]-f,d=s[2]-c,p=Math.sin(u),v=Math.cos(u);return o[0]=s[0],o[1]=f+h*v-d*p,o[2]=c+h*p+d*v,o}},109(n){n.exports=a;function a(o,s,l,u){var f=l[0],c=l[2],h=s[0]-f,d=s[2]-c,p=Math.sin(u),v=Math.cos(u);return o[0]=f+d*p+h*v,o[1]=s[1],o[2]=c+d*v-h*p,o}},8692(n){n.exports=a;function a(o,s,l,u){var f=l[0],c=l[1],h=s[0]-f,d=s[1]-c,p=Math.sin(u),v=Math.cos(u);return o[0]=f+h*v-d*p,o[1]=c+h*p+d*v,o[2]=s[2],o}},2447(n){n.exports=a;function a(o,s){return o[0]=Math.round(s[0]),o[1]=Math.round(s[1]),o[2]=Math.round(s[2]),o}},6621(n){n.exports=a;function a(o,s,l){return o[0]=s[0]*l,o[1]=s[1]*l,o[2]=s[2]*l,o}},8489(n){n.exports=a;function a(o,s,l,u){return o[0]=s[0]+l[0]*u,o[1]=s[1]+l[1]*u,o[2]=s[2]+l[2]*u,o}},1463(n){n.exports=a;function a(o,s,l,u){return o[0]=s,o[1]=l,o[2]=u,o}},6141(n,a,o){n.exports=o(2953)},5486(n,a,o){n.exports=o(3066)},2953(n){n.exports=a;function a(o,s){var l=s[0]-o[0],u=s[1]-o[1],f=s[2]-o[2];return l*l+u*u+f*f}},3066(n){n.exports=a;function a(o){var s=o[0],l=o[1],u=o[2];return s*s+l*l+u*u}},2229(n,a,o){n.exports=o(6843)},6843(n){n.exports=a;function a(o,s,l){return o[0]=s[0]-l[0],o[1]=s[1]-l[1],o[2]=s[2]-l[2],o}},492(n){n.exports=a;function a(o,s,l){var u=s[0],f=s[1],c=s[2];return o[0]=u*l[0]+f*l[3]+c*l[6],o[1]=u*l[1]+f*l[4]+c*l[7],o[2]=u*l[2]+f*l[5]+c*l[8],o}},5673(n){n.exports=a;function a(o,s,l){var u=s[0],f=s[1],c=s[2],h=l[3]*u+l[7]*f+l[11]*c+l[15];return h=h||1,o[0]=(l[0]*u+l[4]*f+l[8]*c+l[12])/h,o[1]=(l[1]*u+l[5]*f+l[9]*c+l[13])/h,o[2]=(l[2]*u+l[6]*f+l[10]*c+l[14])/h,o}},264(n){n.exports=a;function a(o,s,l){var u=s[0],f=s[1],c=s[2],h=l[0],d=l[1],p=l[2],v=l[3],y=d*c-p*f,m=p*u-h*c,w=h*f-d*u;return y*=2,m*=2,w*=2,o[0]=u+v*y+d*w-p*m,o[1]=f+v*m+p*y-h*w,o[2]=c+v*w+h*m-d*y,o}},4361(n){n.exports=a;function a(o,s,l){return o[0]=s[0]+l[0],o[1]=s[1]+l[1],o[2]=s[2]+l[2],o[3]=s[3]+l[3],o}},2335(n){n.exports=a;function a(o){var s=new Float32Array(4);return s[0]=o[0],s[1]=o[1],s[2]=o[2],s[3]=o[3],s}},2933(n){n.exports=a;function a(o,s){return o[0]=s[0],o[1]=s[1],o[2]=s[2],o[3]=s[3],o}},7536(n){n.exports=a;function a(){var o=new Float32Array(4);return o[0]=0,o[1]=0,o[2]=0,o[3]=0,o}},4691(n){n.exports=a;function a(o,s){var l=s[0]-o[0],u=s[1]-o[1],f=s[2]-o[2],c=s[3]-o[3];return Math.sqrt(l*l+u*u+f*f+c*c)}},1373(n){n.exports=a;function a(o,s,l){return o[0]=s[0]/l[0],o[1]=s[1]/l[1],o[2]=s[2]/l[2],o[3]=s[3]/l[3],o}},3750(n){n.exports=a;function a(o,s){return o[0]*s[0]+o[1]*s[1]+o[2]*s[2]+o[3]*s[3]}},3390(n){n.exports=a;function a(o,s,l,u){var f=new Float32Array(4);return f[0]=o,f[1]=s,f[2]=l,f[3]=u,f}},9970(n,a,o){n.exports={create:o(7536),clone:o(2335),fromValues:o(3390),copy:o(2933),set:o(4578),add:o(4361),subtract:o(6860),multiply:o(3576),divide:o(1373),min:o(2334),max:o(160),scale:o(9288),scaleAndAdd:o(4844),distance:o(4691),squaredDistance:o(7960),length:o(6808),squaredLength:o(483),negate:o(1498),inverse:o(4494),normalize:o(5177),dot:o(3750),lerp:o(2573),random:o(9131),transformMat4:o(5352),transformQuat:o(4041)}},4494(n){n.exports=a;function a(o,s){return o[0]=1/s[0],o[1]=1/s[1],o[2]=1/s[2],o[3]=1/s[3],o}},6808(n){n.exports=a;function a(o){var s=o[0],l=o[1],u=o[2],f=o[3];return Math.sqrt(s*s+l*l+u*u+f*f)}},2573(n){n.exports=a;function a(o,s,l,u){var f=s[0],c=s[1],h=s[2],d=s[3];return o[0]=f+u*(l[0]-f),o[1]=c+u*(l[1]-c),o[2]=h+u*(l[2]-h),o[3]=d+u*(l[3]-d),o}},160(n){n.exports=a;function a(o,s,l){return o[0]=Math.max(s[0],l[0]),o[1]=Math.max(s[1],l[1]),o[2]=Math.max(s[2],l[2]),o[3]=Math.max(s[3],l[3]),o}},2334(n){n.exports=a;function a(o,s,l){return o[0]=Math.min(s[0],l[0]),o[1]=Math.min(s[1],l[1]),o[2]=Math.min(s[2],l[2]),o[3]=Math.min(s[3],l[3]),o}},3576(n){n.exports=a;function a(o,s,l){return o[0]=s[0]*l[0],o[1]=s[1]*l[1],o[2]=s[2]*l[2],o[3]=s[3]*l[3],o}},1498(n){n.exports=a;function a(o,s){return o[0]=-s[0],o[1]=-s[1],o[2]=-s[2],o[3]=-s[3],o}},5177(n){n.exports=a;function a(o,s){var l=s[0],u=s[1],f=s[2],c=s[3],h=l*l+u*u+f*f+c*c;return h>0&&(h=1/Math.sqrt(h),o[0]=l*h,o[1]=u*h,o[2]=f*h,o[3]=c*h),o}},9131(n,a,o){var s=o(5177),l=o(9288);n.exports=u;function u(f,c){return c=c||1,f[0]=Math.random(),f[1]=Math.random(),f[2]=Math.random(),f[3]=Math.random(),s(f,f),l(f,f,c),f}},9288(n){n.exports=a;function a(o,s,l){return o[0]=s[0]*l,o[1]=s[1]*l,o[2]=s[2]*l,o[3]=s[3]*l,o}},4844(n){n.exports=a;function a(o,s,l,u){return o[0]=s[0]+l[0]*u,o[1]=s[1]+l[1]*u,o[2]=s[2]+l[2]*u,o[3]=s[3]+l[3]*u,o}},4578(n){n.exports=a;function a(o,s,l,u,f){return o[0]=s,o[1]=l,o[2]=u,o[3]=f,o}},7960(n){n.exports=a;function a(o,s){var l=s[0]-o[0],u=s[1]-o[1],f=s[2]-o[2],c=s[3]-o[3];return l*l+u*u+f*f+c*c}},483(n){n.exports=a;function a(o){var s=o[0],l=o[1],u=o[2],f=o[3];return s*s+l*l+u*u+f*f}},6860(n){n.exports=a;function a(o,s,l){return o[0]=s[0]-l[0],o[1]=s[1]-l[1],o[2]=s[2]-l[2],o[3]=s[3]-l[3],o}},5352(n){n.exports=a;function a(o,s,l){var u=s[0],f=s[1],c=s[2],h=s[3];return o[0]=l[0]*u+l[4]*f+l[8]*c+l[12]*h,o[1]=l[1]*u+l[5]*f+l[9]*c+l[13]*h,o[2]=l[2]*u+l[6]*f+l[10]*c+l[14]*h,o[3]=l[3]*u+l[7]*f+l[11]*c+l[15]*h,o}},4041(n){n.exports=a;function a(o,s,l){var u=s[0],f=s[1],c=s[2],h=l[0],d=l[1],p=l[2],v=l[3],y=v*u+d*c-p*f,m=v*f+p*u-h*c,w=v*c+h*f-d*u,_=-h*u-d*f-p*c;return o[0]=y*v+_*-h+m*-p-w*-d,o[1]=m*v+_*-d+w*-h-y*-p,o[2]=w*v+_*-p+y*-d-m*-h,o[3]=s[3],o}},1848(n,a,o){var s=o(4905),l=o(6468);n.exports=u;function u(f){for(var c=Array.isArray(f)?f:s(f),h=0;h0)continue;be=U.slice(0,1).join("")}return te(be),Z+=be.length,F=F.slice(be.length),F.length}while(!0)}function oe(){return/[^a-fA-F0-9]/.test(P)?(te(F.join("")),L=h,k):(F.push(P),I=P,k+1)}function Y(){return P==="."||/[eE]/.test(P)?(F.push(P),L=_,I=P,k+1):P==="x"&&F.length===1&&F[0]==="0"?(L=g,F.push(P),I=P,k+1):/[^\d]/.test(P)?(te(F.join("")),L=h,k):(F.push(P),I=P,k+1)}function ne(){return P==="f"&&(F.push(P),I=P,k+=1),/[eE]/.test(P)||(P==="-"||P==="+")&&/[eE]/.test(I)?(F.push(P),I=P,k+1):/[^\d]/.test(P)?(te(F.join("")),L=h,k):(F.push(P),I=P,k+1)}function ye(){if(/[^\d\w_]/.test(P)){var U=F.join("");return $[U]?L=x:H[U]?L=M:L=b,te(F.join("")),L=h,k}return F.push(P),I=P,k+1}}},3508(n,a,o){var s=o(6852);s=s.slice().filter(function(l){return!/^(gl\_|texture)/.test(l)}),n.exports=s.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"])},6852(n){n.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"]},7932(n,a,o){var s=o(620);n.exports=s.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"])},620(n){n.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"]},7827(n){n.exports=["<<=",">>=","++","--","<<",">>","<=",">=","==","!=","&&","||","+=","-=","*=","/=","%=","&=","^^","^=","|=","(",")","[","]",".","!","~","*","/","%","+","-","<",">","&","^","|","?",":","=",",",";","{","}"]},4905(n,a,o){var s=o(5874);n.exports=l;function l(u,f){var c=s(f),h=[];return h=h.concat(c(u)),h=h.concat(c(null)),h}},3236(n){n.exports=function(a){typeof a=="string"&&(a=[a]);for(var o=[].slice.call(arguments,1),s=[],l=0;l>1,y=-7,m=l?f-1:0,w=l?-1:1,_=o[s+m];for(m+=w,c=_&(1<<-y)-1,_>>=-y,y+=d;y>0;c=c*256+o[s+m],m+=w,y-=8);for(h=c&(1<<-y)-1,c>>=-y,y+=u;y>0;h=h*256+o[s+m],m+=w,y-=8);if(c===0)c=1-v;else{if(c===p)return h?NaN:(_?-1:1)*(1/0);h=h+Math.pow(2,u),c=c-v}return(_?-1:1)*h*Math.pow(2,c-u)},a.write=function(o,s,l,u,f,c){var h,d,p,v=c*8-f-1,y=(1<>1,w=f===23?Math.pow(2,-24)-Math.pow(2,-77):0,_=u?0:c-1,b=u?1:-1,M=s<0||s===0&&1/s<0?1:0;for(s=Math.abs(s),isNaN(s)||s===1/0?(d=isNaN(s)?1:0,h=y):(h=Math.floor(Math.log(s)/Math.LN2),s*(p=Math.pow(2,-h))<1&&(h--,p*=2),h+m>=1?s+=w/p:s+=w*Math.pow(2,1-m),s*p>=2&&(h++,p/=2),h+m>=y?(d=0,h=y):h+m>=1?(d=(s*p-1)*Math.pow(2,f),h=h+m):(d=s*Math.pow(2,m-1)*Math.pow(2,f),h=0));f>=8;o[l+_]=d&255,_+=b,d/=256,f-=8);for(h=h<0;o[l+_]=h&255,_+=b,h/=256,v-=8);o[l+_-b]|=M*128}},8954(n,a,o){"use strict";n.exports=m;var s=o(3250),l=o(6803).Fw;function u(w,_,b){this.vertices=w,this.adjacent=_,this.boundary=b,this.lastVisited=-1}u.prototype.flip=function(){var w=this.vertices[0];this.vertices[0]=this.vertices[1],this.vertices[1]=w;var _=this.adjacent[0];this.adjacent[0]=this.adjacent[1],this.adjacent[1]=_};function f(w,_,b){this.vertices=w,this.cell=_,this.index=b}function c(w,_){return l(w.vertices,_.vertices)}function h(w){return function(){var _=this.tuple;return w.apply(this,_)}}function d(w){var _=s[w+1];return _||(_=s),h(_)}var p=[];function v(w,_,b){this.dimension=w,this.vertices=_,this.simplices=b,this.interior=b.filter(function(A){return!A.boundary}),this.tuple=new Array(w+1);for(var M=0;M<=w;++M)this.tuple[M]=this.vertices[M];var x=p[w];x||(x=p[w]=d(w)),this.orient=x}var y=v.prototype;y.handleBoundaryDegeneracy=function(w,_){var b=this.dimension,M=this.vertices.length-1,x=this.tuple,A=this.vertices,T=[w];for(w.lastVisited=-M;T.length>0;){w=T.pop();for(var g=w.adjacent,E=0;E<=b;++E){var S=g[E];if(!(!S.boundary||S.lastVisited<=-M)){for(var C=S.vertices,k=0;k<=b;++k){var D=C[k];D<0?x[k]=_:x[k]=A[D]}var L=this.orient();if(L>0)return S;S.lastVisited=-M,L===0&&T.push(S)}}}return null},y.walk=function(w,_){var b=this.vertices.length-1,M=this.dimension,x=this.vertices,A=this.tuple,T=_?this.interior.length*Math.random()|0:this.interior.length-1,g=this.interior[T];e:for(;!g.boundary;){for(var E=g.vertices,S=g.adjacent,C=0;C<=M;++C)A[C]=x[E[C]];g.lastVisited=b;for(var C=0;C<=M;++C){var k=S[C];if(!(k.lastVisited>=b)){var D=A[C];A[C]=w;var L=this.orient();if(A[C]=D,L<0){g=k;continue e}else k.boundary?k.lastVisited=-b:k.lastVisited=b}}return}return g},y.addPeaks=function(w,_){var b=this.vertices.length-1,M=this.dimension,x=this.vertices,A=this.tuple,T=this.interior,g=this.simplices,E=[_];_.lastVisited=b,_.vertices[_.vertices.indexOf(-1)]=b,_.boundary=!1,T.push(_);for(var S=[];E.length>0;){var _=E.pop(),C=_.vertices,k=_.adjacent,D=C.indexOf(b);if(!(D<0)){for(var L=0;L<=M;++L)if(L!==D){var P=k[L];if(!(!P.boundary||P.lastVisited>=b)){var I=P.vertices;if(P.lastVisited!==-b){for(var F=0,z=0;z<=M;++z)I[z]<0?(F=z,A[z]=w):A[z]=x[I[z]];var B=this.orient();if(B>0){I[F]=b,P.boundary=!1,T.push(P),E.push(P),P.lastVisited=b;continue}else P.lastVisited=-b}var O=P.adjacent,W=C.slice(),X=k.slice(),Z=new u(W,X,!0);g.push(Z);var j=O.indexOf(_);if(!(j<0)){O[j]=Z,X[D]=P,W[L]=-1,X[L]=_,k[L]=Z,Z.flip();for(var z=0;z<=M;++z){var q=W[z];if(!(q<0||q===b)){for(var Q=new Array(M-1),N=0,V=0;V<=M;++V){var J=W[V];J<0||V===z||(Q[N++]=J)}S.push(new f(Q,Z,z))}}}}}}}S.sort(c);for(var L=0;L+1=0?T[E++]=g[C]:S=C&1;if(S===(w&1)){var k=T[0];T[0]=T[1],T[1]=k}_.push(T)}}return _};function m(w,_){var b=w.length;if(b===0)throw new Error("Must have at least d+1 points");var M=w[0].length;if(b<=M)throw new Error("Must input at least d+1 points");var x=w.slice(0,M+1),A=s.apply(void 0,x);if(A===0)throw new Error("Input not in general position");for(var T=new Array(M+1),g=0;g<=M;++g)T[g]=g;A<0&&(T[0]=1,T[1]=0);for(var E=new u(T,new Array(M+1),!1),S=E.adjacent,C=new Array(M+2),g=0;g<=M;++g){for(var k=T.slice(),D=0;D<=M;++D)D===g&&(k[D]=-1);var L=k[0];k[0]=k[1],k[1]=L;var P=new u(k,new Array(M+1),!0);S[g]=P,C[g]=P}C[M+1]=E;for(var g=0;g<=M;++g)for(var k=S[g].vertices,I=S[g].adjacent,D=0;D<=M;++D){var F=k[D];if(F<0){I[D]=E;continue}for(var z=0;z<=M;++z)S[z].vertices.indexOf(F)<0&&(I[D]=S[z])}for(var B=new v(M,x,C),O=!!_,g=M+1;g3*(C+1)?v(this,S):this.left.insert(S):this.left=A([S]);else if(S[0]>this.mid)this.right?4*(this.right.count+1)>3*(C+1)?v(this,S):this.right.insert(S):this.right=A([S]);else{var k=s.ge(this.leftPoints,S,M),D=s.ge(this.rightPoints,S,x);this.leftPoints.splice(k,0,S),this.rightPoints.splice(D,0,S)}},h.remove=function(S){var C=this.count-this.leftPoints;if(S[1]3*(C-1))return y(this,S);var D=this.left.remove(S);return D===f?(this.left=null,this.count-=1,u):(D===u&&(this.count-=1),D)}else if(S[0]>this.mid){if(!this.right)return l;var L=this.left?this.left.count:0;if(4*L>3*(C-1))return y(this,S);var D=this.right.remove(S);return D===f?(this.right=null,this.count-=1,u):(D===u&&(this.count-=1),D)}else{if(this.count===1)return this.leftPoints[0]===S?f:l;if(this.leftPoints.length===1&&this.leftPoints[0]===S){if(this.left&&this.right){for(var P=this,I=this.left;I.right;)P=I,I=I.right;if(P===this)I.right=this.right;else{var F=this.left,D=this.right;P.count-=I.count,P.right=I.left,I.left=F,I.right=D}d(this,I),this.count=(this.left?this.left.count:0)+(this.right?this.right.count:0)+this.leftPoints.length}else this.left?d(this,this.left):d(this,this.right);return u}for(var F=s.ge(this.leftPoints,S,M);F=0&&S[D][1]>=C;--D){var L=k(S[D]);if(L)return L}}function _(S,C){for(var k=0;kthis.mid){if(this.right){var k=this.right.queryPoint(S,C);if(k)return k}return w(this.rightPoints,S,C)}else return _(this.leftPoints,C)},h.queryInterval=function(S,C,k){if(Sthis.mid&&this.right){var D=this.right.queryInterval(S,C,k);if(D)return D}return Cthis.mid?w(this.rightPoints,S,k):_(this.leftPoints,k)};function b(S,C){return S-C}function M(S,C){var k=S[0]-C[0];return k||S[1]-C[1]}function x(S,C){var k=S[1]-C[1];return k||S[0]-C[0]}function A(S){if(S.length===0)return null;for(var C=[],k=0;k>1],L=[],P=[],I=[],k=0;k1&&f.indexOf("Macintosh")!==-1&&f.indexOf("Safari")!==-1&&(c=!0),c}},5219(n){"use strict";n.exports=function(a){for(var o=a.length,s,l=0;l13)&&s!==32&&s!==133&&s!==160&&s!==5760&&s!==6158&&(s<8192||s>8205)&&s!==8232&&s!==8233&&s!==8239&&s!==8287&&s!==8288&&s!==12288&&s!==65279)return!1;return!0}},395(n){function a(o,s,l){return o*(1-l)+s*l}n.exports=a},2652(n,a,o){var s=o(4335),l=o(6864),u=o(1903),f=o(9921),c=o(7608),h=o(5665),d={length:o(1387),normalize:o(3536),dot:o(244),cross:o(5911)},p=l(),v=l(),y=[0,0,0,0],m=[[0,0,0],[0,0,0],[0,0,0]],w=[0,0,0];n.exports=function(A,T,g,E,S,C){if(T||(T=[0,0,0]),g||(g=[0,0,0]),E||(E=[0,0,0]),S||(S=[0,0,0,1]),C||(C=[0,0,0,1]),!s(p,A)||(u(v,p),v[3]=0,v[7]=0,v[11]=0,v[15]=1,Math.abs(f(v)<1e-8)))return!1;var k=p[3],D=p[7],L=p[11],P=p[12],I=p[13],F=p[14],z=p[15];if(k!==0||D!==0||L!==0){y[0]=k,y[1]=D,y[2]=L,y[3]=z;var B=c(v,v);if(!B)return!1;h(v,v),_(S,y,v)}else S[0]=S[1]=S[2]=0,S[3]=1;if(T[0]=P,T[1]=I,T[2]=F,b(m,p),g[0]=d.length(m[0]),d.normalize(m[0],m[0]),E[0]=d.dot(m[0],m[1]),M(m[1],m[1],m[0],1,-E[0]),g[1]=d.length(m[1]),d.normalize(m[1],m[1]),E[0]/=g[1],E[1]=d.dot(m[0],m[2]),M(m[2],m[2],m[0],1,-E[1]),E[2]=d.dot(m[1],m[2]),M(m[2],m[2],m[1],1,-E[2]),g[2]=d.length(m[2]),d.normalize(m[2],m[2]),E[1]/=g[2],E[2]/=g[2],d.cross(w,m[1],m[2]),d.dot(m[0],w)<0)for(var O=0;O<3;O++)g[O]*=-1,m[O][0]*=-1,m[O][1]*=-1,m[O][2]*=-1;return C[0]=.5*Math.sqrt(Math.max(1+m[0][0]-m[1][1]-m[2][2],0)),C[1]=.5*Math.sqrt(Math.max(1-m[0][0]+m[1][1]-m[2][2],0)),C[2]=.5*Math.sqrt(Math.max(1-m[0][0]-m[1][1]+m[2][2],0)),C[3]=.5*Math.sqrt(Math.max(1+m[0][0]+m[1][1]+m[2][2],0)),m[2][1]>m[1][2]&&(C[0]=-C[0]),m[0][2]>m[2][0]&&(C[1]=-C[1]),m[1][0]>m[0][1]&&(C[2]=-C[2]),!0};function _(x,A,T){var g=A[0],E=A[1],S=A[2],C=A[3];return x[0]=T[0]*g+T[4]*E+T[8]*S+T[12]*C,x[1]=T[1]*g+T[5]*E+T[9]*S+T[13]*C,x[2]=T[2]*g+T[6]*E+T[10]*S+T[14]*C,x[3]=T[3]*g+T[7]*E+T[11]*S+T[15]*C,x}function b(x,A){x[0][0]=A[0],x[0][1]=A[1],x[0][2]=A[2],x[1][0]=A[4],x[1][1]=A[5],x[1][2]=A[6],x[2][0]=A[8],x[2][1]=A[9],x[2][2]=A[10]}function M(x,A,T,g,E){x[0]=A[0]*g+T[0]*E,x[1]=A[1]*g+T[1]*E,x[2]=A[2]*g+T[2]*E}},4335(n){n.exports=function(o,s){var l=s[15];if(l===0)return!1;for(var u=1/l,f=0;f<16;f++)o[f]=s[f]*u;return!0}},7442(n,a,o){var s=o(6658),l=o(7182),u=o(2652),f=o(9921),c=o(8648),h=y(),d=y(),p=y();n.exports=v;function v(_,b,M,x){if(f(b)===0||f(M)===0)return!1;var A=u(b,h.translate,h.scale,h.skew,h.perspective,h.quaternion),T=u(M,d.translate,d.scale,d.skew,d.perspective,d.quaternion);return!A||!T?!1:(s(p.translate,h.translate,d.translate,x),s(p.skew,h.skew,d.skew,x),s(p.scale,h.scale,d.scale,x),s(p.perspective,h.perspective,d.perspective,x),c(p.quaternion,h.quaternion,d.quaternion,x),l(_,p.translate,p.scale,p.skew,p.perspective,p.quaternion),!0)}function y(){return{translate:m(),scale:m(1),skew:m(),perspective:w(),quaternion:w()}}function m(_){return[_||0,_||0,_||0]}function w(){return[0,0,0,1]}},7182(n,a,o){var s={identity:o(7894),translate:o(7656),multiply:o(6760),create:o(6864),scale:o(2504),fromRotationTranslation:o(6743)},l=s.create(),u=s.create();n.exports=function(c,h,d,p,v,y){return s.identity(c),s.fromRotationTranslation(c,y,h),c[3]=v[0],c[7]=v[1],c[11]=v[2],c[15]=v[3],s.identity(u),p[2]!==0&&(u[9]=p[2],s.multiply(c,c,u)),p[1]!==0&&(u[9]=0,u[8]=p[1],s.multiply(c,c,u)),p[0]!==0&&(u[8]=0,u[4]=p[0],s.multiply(c,c,u)),s.scale(c,c,d),c}},1811(n,a,o){"use strict";var s=o(2478),l=o(7442),u=o(7608),f=o(5567),c=o(2408),h=o(7089),d=o(6582),p=o(7656),v=o(2504),y=o(3536),m=[0,0,0];n.exports=M;function w(x){this._components=x.slice(),this._time=[0],this.prevMatrix=x.slice(),this.nextMatrix=x.slice(),this.computedMatrix=x.slice(),this.computedInverse=x.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 _=w.prototype;_.recalcMatrix=function(x){var A=this._time,T=s.le(A,x),g=this.computedMatrix;if(!(T<0)){var E=this._components;if(T===A.length-1)for(var S=16*T,C=0;C<16;++C)g[C]=E[S++];else{for(var k=A[T+1]-A[T],S=16*T,D=this.prevMatrix,L=!0,C=0;C<16;++C)D[C]=E[S++];for(var P=this.nextMatrix,C=0;C<16;++C)P[C]=E[S++],L=L&&D[C]===P[C];if(k<1e-6||L)for(var C=0;C<16;++C)g[C]=D[C];else l(g,D,P,(x-A[T])/k)}var I=this.computedUp;I[0]=g[1],I[1]=g[5],I[2]=g[9],y(I,I);var F=this.computedInverse;u(F,g);var z=this.computedEye,B=F[15];z[0]=F[12]/B,z[1]=F[13]/B,z[2]=F[14]/B;for(var O=this.computedCenter,W=Math.exp(this.computedRadius[0]),C=0;C<3;++C)O[C]=z[C]-g[2+4*C]*W}},_.idle=function(x){if(!(x1&&s(u[d[m-2]],u[d[m-1]],y)<=0;)m-=1,d.pop();for(d.push(v),m=p.length;m>1&&s(u[p[m-2]],u[p[m-1]],y)>=0;)m-=1,p.pop();p.push(v)}for(var w=new Array(p.length+d.length-2),_=0,c=0,b=d.length;c0;--M)w[_++]=p[M];return w}},351(n,a,o){"use strict";n.exports=l;var s=o(4687);function l(u,f){f||(f=u,u=window);var c=0,h=0,d=0,p={shift:!1,alt:!1,control:!1,meta:!1},v=!1;function y(S){var C=!1;return"altKey"in S&&(C=C||S.altKey!==p.alt,p.alt=!!S.altKey),"shiftKey"in S&&(C=C||S.shiftKey!==p.shift,p.shift=!!S.shiftKey),"ctrlKey"in S&&(C=C||S.ctrlKey!==p.control,p.control=!!S.ctrlKey),"metaKey"in S&&(C=C||S.metaKey!==p.meta,p.meta=!!S.metaKey),C}function m(S,C){var k=s.x(C),D=s.y(C);"buttons"in C&&(S=C.buttons|0),(S!==c||k!==h||D!==d||y(C))&&(c=S|0,h=k||0,d=D||0,f&&f(c,h,d,p))}function w(S){m(0,S)}function _(){(c||h||d||p.shift||p.alt||p.meta||p.control)&&(h=d=0,c=0,p.shift=p.alt=p.control=p.meta=!1,f&&f(0,0,0,p))}function b(S){y(S)&&f&&f(c,h,d,p)}function M(S){s.buttons(S)===0?m(0,S):m(c,S)}function x(S){m(c|s.buttons(S),S)}function A(S){m(c&~s.buttons(S),S)}function T(){v||(v=!0,u.addEventListener("mousemove",M),u.addEventListener("mousedown",x),u.addEventListener("mouseup",A),u.addEventListener("mouseleave",w),u.addEventListener("mouseenter",w),u.addEventListener("mouseout",w),u.addEventListener("mouseover",w),u.addEventListener("blur",_),u.addEventListener("keyup",b),u.addEventListener("keydown",b),u.addEventListener("keypress",b),u!==window&&(window.addEventListener("blur",_),window.addEventListener("keyup",b),window.addEventListener("keydown",b),window.addEventListener("keypress",b)))}function g(){v&&(v=!1,u.removeEventListener("mousemove",M),u.removeEventListener("mousedown",x),u.removeEventListener("mouseup",A),u.removeEventListener("mouseleave",w),u.removeEventListener("mouseenter",w),u.removeEventListener("mouseout",w),u.removeEventListener("mouseover",w),u.removeEventListener("blur",_),u.removeEventListener("keyup",b),u.removeEventListener("keydown",b),u.removeEventListener("keypress",b),u!==window&&(window.removeEventListener("blur",_),window.removeEventListener("keyup",b),window.removeEventListener("keydown",b),window.removeEventListener("keypress",b)))}T();var E={element:u};return Object.defineProperties(E,{enabled:{get:function(){return v},set:function(S){S?T():g()},enumerable:!0},buttons:{get:function(){return c},enumerable:!0},x:{get:function(){return h},enumerable:!0},y:{get:function(){return d},enumerable:!0},mods:{get:function(){return p},enumerable:!0}}),E}},24(n){var a={left:0,top:0};n.exports=o;function o(l,u,f){u=u||l.currentTarget||l.srcElement,Array.isArray(f)||(f=[0,0]);var c=l.clientX||0,h=l.clientY||0,d=s(u);return f[0]=c-d.left,f[1]=h-d.top,f}function s(l){return l===window||l===document||l===document.body?a:l.getBoundingClientRect()}},4687(n,a){"use strict";function o(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(X=1,q[N++]=p(T[C],_,b,M),C+=B,x>0)for(W=1,k=T[C],V=q[N]=p(k,_,b,M),$=q[N+J],de=q[N+te],Ce=q[N+ge],(V!==$||V!==de||V!==Ce)&&(L=T[C+D],I=T[C+P],z=T[C+F],h(W,X,k,L,I,z,V,$,de,Ce,_,b,M),le=Q[N]=Z++),N+=1,C+=B,W=2;W0)for(W=1,k=T[C],V=q[N]=p(k,_,b,M),$=q[N+J],de=q[N+te],Ce=q[N+ge],(V!==$||V!==de||V!==Ce)&&(L=T[C+D],I=T[C+P],z=T[C+F],h(W,X,k,L,I,z,V,$,de,Ce,_,b,M),le=Q[N]=Z++,Ce!==de&&d(Q[N+te],le,I,z,de,Ce,_,b,M)),N+=1,C+=B,W=2;W0){if(W=1,q[N++]=p(T[C],_,b,M),C+=B,A>0)for(X=1,k=T[C],V=q[N]=p(k,_,b,M),de=q[N+te],$=q[N+J],Ce=q[N+ge],(V!==de||V!==$||V!==Ce)&&(L=T[C+D],I=T[C+P],z=T[C+F],h(W,X,k,L,I,z,V,de,$,Ce,_,b,M),le=Q[N]=Z++),N+=1,C+=B,X=2;X0)for(X=1,k=T[C],V=q[N]=p(k,_,b,M),de=q[N+te],$=q[N+J],Ce=q[N+ge],(V!==de||V!==$||V!==Ce)&&(L=T[C+D],I=T[C+P],z=T[C+F],h(W,X,k,L,I,z,V,de,$,Ce,_,b,M),le=Q[N]=Z++,Ce!==de&&d(Q[N+te],le,z,L,Ce,de,_,b,M)),N+=1,C+=B,X=2;X 0"),typeof c.vertex!="function"&&h("Must specify vertex creation function"),typeof c.cell!="function"&&h("Must specify cell creation function"),typeof c.phase!="function"&&h("Must specify phase function");for(var y=c.getters||[],m=new Array(p),w=0;w=0?m[w]=!0:m[w]=!1;return u(c.vertex,c.cell,c.phase,v,d,m)}},6199(n,a,o){"use strict";var s=o(1338),l={zero:function(M,x,A,T){var g=M[0],E=A[0];T|=0;var S=0,C=E;for(S=0;S2&&S[1]>2&&T(E.pick(-1,-1).lo(1,1).hi(S[0]-2,S[1]-2),g.pick(-1,-1,0).lo(1,1).hi(S[0]-2,S[1]-2),g.pick(-1,-1,1).lo(1,1).hi(S[0]-2,S[1]-2)),S[1]>2&&(A(E.pick(0,-1).lo(1).hi(S[1]-2),g.pick(0,-1,1).lo(1).hi(S[1]-2)),x(g.pick(0,-1,0).lo(1).hi(S[1]-2))),S[1]>2&&(A(E.pick(S[0]-1,-1).lo(1).hi(S[1]-2),g.pick(S[0]-1,-1,1).lo(1).hi(S[1]-2)),x(g.pick(S[0]-1,-1,0).lo(1).hi(S[1]-2))),S[0]>2&&(A(E.pick(-1,0).lo(1).hi(S[0]-2),g.pick(-1,0,0).lo(1).hi(S[0]-2)),x(g.pick(-1,0,1).lo(1).hi(S[0]-2))),S[0]>2&&(A(E.pick(-1,S[1]-1).lo(1).hi(S[0]-2),g.pick(-1,S[1]-1,0).lo(1).hi(S[0]-2)),x(g.pick(-1,S[1]-1,1).lo(1).hi(S[0]-2))),g.set(0,0,0,0),g.set(0,0,1,0),g.set(S[0]-1,0,0,0),g.set(S[0]-1,0,1,0),g.set(0,S[1]-1,0,0),g.set(0,S[1]-1,1,0),g.set(S[0]-1,S[1]-1,0,0),g.set(S[0]-1,S[1]-1,1,0),g}}function b(M){var x=M.join(),S=p[x];if(S)return S;for(var A=M.length,T=[y,m],g=1;g<=A;++g)T.push(w(g));var E=_,S=E.apply(void 0,T);return p[x]=S,S}n.exports=function(x,A,T){if(Array.isArray(T)||(typeof T=="string"?T=s(A.dimension,T):T=s(A.dimension,"clamp")),A.size===0)return x;if(A.dimension===0)return x.set(0),x;var g=b(T);return g(x,A)}},4317(n){"use strict";function a(f,c){var h=Math.floor(c),d=c-h,p=0<=h&&h0;){I<64?(x=I,I=0):(x=64,I-=64);for(var F=p[1]|0;F>0;){F<64?(A=F,F=0):(A=64,F-=64),m=L+I*g+F*E,b=P+I*C+F*k;var z=0,B=0,O=0,W=S,X=g-T*S,Z=E-x*g,j=D,q=C-T*D,Q=k-x*C;for(O=0;O0;){k<64?(x=k,k=0):(x=64,k-=64);for(var D=p[0]|0;D>0;){D<64?(M=D,D=0):(M=64,D-=64),m=S+k*T+D*A,b=C+k*E+D*g;var L=0,P=0,I=T,F=A-x*T,z=E,B=g-x*E;for(P=0;P0;){P<64?(A=P,P=0):(A=64,P-=64);for(var I=p[0]|0;I>0;){I<64?(M=I,I=0):(M=64,I-=64);for(var F=p[1]|0;F>0;){F<64?(x=F,F=0):(x=64,F-=64),m=D+P*E+I*T+F*g,b=L+P*k+I*S+F*C;var z=0,B=0,O=0,W=E,X=T-A*E,Z=g-M*T,j=k,q=S-A*k,Q=C-M*S;for(O=0;Ow;){z=0,B=L-x;t:for(I=0;IW)break t;B+=S,z+=C}for(z=L,B=L-x,I=0;I>1,F=I-D,z=I+D,B=L,O=F,W=I,X=z,Z=P,j=_+1,q=b-1,Q=!0,N,V,J,H,$,te,ie,de,ge,Ie=0,Ce=0,le=0,re,Ee,we,oe,Y,ne,ye,U,se,Ae,be,me,ue,pe,ce,Be,$e=E,Ze=y($e),it=y($e);Ee=A*B,we=A*O,Be=x;e:for(re=0;re0){V=B,B=O,O=V;break e}if(le<0)break e;Be+=C}Ee=A*X,we=A*Z,Be=x;e:for(re=0;re0){V=X,X=Z,Z=V;break e}if(le<0)break e;Be+=C}Ee=A*B,we=A*W,Be=x;e:for(re=0;re0){V=B,B=W,W=V;break e}if(le<0)break e;Be+=C}Ee=A*O,we=A*W,Be=x;e:for(re=0;re0){V=O,O=W,W=V;break e}if(le<0)break e;Be+=C}Ee=A*B,we=A*X,Be=x;e:for(re=0;re0){V=B,B=X,X=V;break e}if(le<0)break e;Be+=C}Ee=A*W,we=A*X,Be=x;e:for(re=0;re0){V=W,W=X,X=V;break e}if(le<0)break e;Be+=C}Ee=A*O,we=A*Z,Be=x;e:for(re=0;re0){V=O,O=Z,Z=V;break e}if(le<0)break e;Be+=C}Ee=A*O,we=A*W,Be=x;e:for(re=0;re0){V=O,O=W,W=V;break e}if(le<0)break e;Be+=C}Ee=A*X,we=A*Z,Be=x;e:for(re=0;re0){V=X,X=Z,Z=V;break e}if(le<0)break e;Be+=C}for(Ee=A*B,we=A*O,oe=A*W,Y=A*X,ne=A*Z,ye=A*L,U=A*I,se=A*P,ce=0,Be=x,re=0;re0)q--;else if(le<0){for(Ee=A*te,we=A*j,oe=A*q,Be=x,re=0;re0)for(;;){ie=x+q*A,ce=0;e:for(re=0;re0){if(--qP){e:for(;;){for(ie=x+j*A,ce=0,Be=x,re=0;re1&&w?b(m,w[0],w[1]):b(m)}var d={"uint32,1,0":function(v,y){return function(m){var w=m.data,_=m.offset|0,b=m.shape,M=m.stride,x=M[0]|0,A=b[0]|0,T=M[1]|0,g=b[1]|0,E=T,S=T,C=1;A<=32?v(0,A-1,w,_,x,T,A,g,E,S,C):y(0,A-1,w,_,x,T,A,g,E,S,C)}}};function p(v,y){var m=[y,v].join(","),w=d[m],_=f(v,y),b=h(v,y,_);return w(_,b)}n.exports=p},446(n,a,o){"use strict";var s=o(7640),l={};function u(f){var c=f.order,h=f.dtype,d=[c,h],p=d.join(":"),v=l[p];return v||(l[p]=v=s(c,h)),v(f),f}n.exports=u},9618(n,a,o){var s=o(7163),l=typeof Float64Array!="undefined";function u(y,m){return y[0]-m[0]}function f(){var y=this.stride,m=new Array(y.length),w;for(w=0;w=0&&(T=x|0,A+=E*T,g-=T),new _(this.data,g,E,A)},b.step=function(x){var A=this.shape[0],T=this.stride[0],g=this.offset,E=0,S=Math.ceil;return typeof x=="number"&&(E=x|0,E<0?(g+=T*(A-1),A=S(-A/E)):A=S(A/E),T*=E),new _(this.data,A,T,g)},b.transpose=function(x){x=x===void 0?0:x|0;var A=this.shape,T=this.stride;return new _(this.data,A[x],T[x],this.offset)},b.pick=function(x){var A=[],T=[],g=this.offset;typeof x=="number"&&x>=0?g=g+this.stride[0]*x|0:(A.push(this.shape[0]),T.push(this.stride[0]));var E=m[A.length+1];return E(this.data,A,T,g)},function(x,A,T,g){return new _(x,A[0],T[0],g)}},2:function(y,m,w){function _(M,x,A,T,g,E){this.data=M,this.shape=[x,A],this.stride=[T,g],this.offset=E|0}var b=_.prototype;return b.dtype=y,b.dimension=2,Object.defineProperty(b,"size",{get:function(){return this.shape[0]*this.shape[1]}}),Object.defineProperty(b,"order",{get:function(){return Math.abs(this.stride[0])>Math.abs(this.stride[1])?[1,0]:[0,1]}}),b.set=function(x,A,T){return y==="generic"?this.data.set(this.offset+this.stride[0]*x+this.stride[1]*A,T):this.data[this.offset+this.stride[0]*x+this.stride[1]*A]=T},b.get=function(x,A){return y==="generic"?this.data.get(this.offset+this.stride[0]*x+this.stride[1]*A):this.data[this.offset+this.stride[0]*x+this.stride[1]*A]},b.index=function(x,A){return this.offset+this.stride[0]*x+this.stride[1]*A},b.hi=function(x,A){return new _(this.data,typeof x!="number"||x<0?this.shape[0]:x|0,typeof A!="number"||A<0?this.shape[1]:A|0,this.stride[0],this.stride[1],this.offset)},b.lo=function(x,A){var T=this.offset,g=0,E=this.shape[0],S=this.shape[1],C=this.stride[0],k=this.stride[1];return typeof x=="number"&&x>=0&&(g=x|0,T+=C*g,E-=g),typeof A=="number"&&A>=0&&(g=A|0,T+=k*g,S-=g),new _(this.data,E,S,C,k,T)},b.step=function(x,A){var T=this.shape[0],g=this.shape[1],E=this.stride[0],S=this.stride[1],C=this.offset,k=0,D=Math.ceil;return typeof x=="number"&&(k=x|0,k<0?(C+=E*(T-1),T=D(-T/k)):T=D(T/k),E*=k),typeof A=="number"&&(k=A|0,k<0?(C+=S*(g-1),g=D(-g/k)):g=D(g/k),S*=k),new _(this.data,T,g,E,S,C)},b.transpose=function(x,A){x=x===void 0?0:x|0,A=A===void 0?1:A|0;var T=this.shape,g=this.stride;return new _(this.data,T[x],T[A],g[x],g[A],this.offset)},b.pick=function(x,A){var T=[],g=[],E=this.offset;typeof x=="number"&&x>=0?E=E+this.stride[0]*x|0:(T.push(this.shape[0]),g.push(this.stride[0])),typeof A=="number"&&A>=0?E=E+this.stride[1]*A|0:(T.push(this.shape[1]),g.push(this.stride[1]));var S=m[T.length+1];return S(this.data,T,g,E)},function(x,A,T,g){return new _(x,A[0],A[1],T[0],T[1],g)}},3:function(y,m,w){function _(M,x,A,T,g,E,S,C){this.data=M,this.shape=[x,A,T],this.stride=[g,E,S],this.offset=C|0}var b=_.prototype;return b.dtype=y,b.dimension=3,Object.defineProperty(b,"size",{get:function(){return this.shape[0]*this.shape[1]*this.shape[2]}}),Object.defineProperty(b,"order",{get:function(){var x=Math.abs(this.stride[0]),A=Math.abs(this.stride[1]),T=Math.abs(this.stride[2]);return x>A?A>T?[2,1,0]:x>T?[1,2,0]:[1,0,2]:x>T?[2,0,1]:T>A?[0,1,2]:[0,2,1]}}),b.set=function(x,A,T,g){return y==="generic"?this.data.set(this.offset+this.stride[0]*x+this.stride[1]*A+this.stride[2]*T,g):this.data[this.offset+this.stride[0]*x+this.stride[1]*A+this.stride[2]*T]=g},b.get=function(x,A,T){return y==="generic"?this.data.get(this.offset+this.stride[0]*x+this.stride[1]*A+this.stride[2]*T):this.data[this.offset+this.stride[0]*x+this.stride[1]*A+this.stride[2]*T]},b.index=function(x,A,T){return this.offset+this.stride[0]*x+this.stride[1]*A+this.stride[2]*T},b.hi=function(x,A,T){return new _(this.data,typeof x!="number"||x<0?this.shape[0]:x|0,typeof A!="number"||A<0?this.shape[1]:A|0,typeof T!="number"||T<0?this.shape[2]:T|0,this.stride[0],this.stride[1],this.stride[2],this.offset)},b.lo=function(x,A,T){var g=this.offset,E=0,S=this.shape[0],C=this.shape[1],k=this.shape[2],D=this.stride[0],L=this.stride[1],P=this.stride[2];return typeof x=="number"&&x>=0&&(E=x|0,g+=D*E,S-=E),typeof A=="number"&&A>=0&&(E=A|0,g+=L*E,C-=E),typeof T=="number"&&T>=0&&(E=T|0,g+=P*E,k-=E),new _(this.data,S,C,k,D,L,P,g)},b.step=function(x,A,T){var g=this.shape[0],E=this.shape[1],S=this.shape[2],C=this.stride[0],k=this.stride[1],D=this.stride[2],L=this.offset,P=0,I=Math.ceil;return typeof x=="number"&&(P=x|0,P<0?(L+=C*(g-1),g=I(-g/P)):g=I(g/P),C*=P),typeof A=="number"&&(P=A|0,P<0?(L+=k*(E-1),E=I(-E/P)):E=I(E/P),k*=P),typeof T=="number"&&(P=T|0,P<0?(L+=D*(S-1),S=I(-S/P)):S=I(S/P),D*=P),new _(this.data,g,E,S,C,k,D,L)},b.transpose=function(x,A,T){x=x===void 0?0:x|0,A=A===void 0?1:A|0,T=T===void 0?2:T|0;var g=this.shape,E=this.stride;return new _(this.data,g[x],g[A],g[T],E[x],E[A],E[T],this.offset)},b.pick=function(x,A,T){var g=[],E=[],S=this.offset;typeof x=="number"&&x>=0?S=S+this.stride[0]*x|0:(g.push(this.shape[0]),E.push(this.stride[0])),typeof A=="number"&&A>=0?S=S+this.stride[1]*A|0:(g.push(this.shape[1]),E.push(this.stride[1])),typeof T=="number"&&T>=0?S=S+this.stride[2]*T|0:(g.push(this.shape[2]),E.push(this.stride[2]));var C=m[g.length+1];return C(this.data,g,E,S)},function(x,A,T,g){return new _(x,A[0],A[1],A[2],T[0],T[1],T[2],g)}},4:function(y,m,w){function _(M,x,A,T,g,E,S,C,k,D){this.data=M,this.shape=[x,A,T,g],this.stride=[E,S,C,k],this.offset=D|0}var b=_.prototype;return b.dtype=y,b.dimension=4,Object.defineProperty(b,"size",{get:function(){return this.shape[0]*this.shape[1]*this.shape[2]*this.shape[3]}}),Object.defineProperty(b,"order",{get:w}),b.set=function(x,A,T,g,E){return y==="generic"?this.data.set(this.offset+this.stride[0]*x+this.stride[1]*A+this.stride[2]*T+this.stride[3]*g,E):this.data[this.offset+this.stride[0]*x+this.stride[1]*A+this.stride[2]*T+this.stride[3]*g]=E},b.get=function(x,A,T,g){return y==="generic"?this.data.get(this.offset+this.stride[0]*x+this.stride[1]*A+this.stride[2]*T+this.stride[3]*g):this.data[this.offset+this.stride[0]*x+this.stride[1]*A+this.stride[2]*T+this.stride[3]*g]},b.index=function(x,A,T,g){return this.offset+this.stride[0]*x+this.stride[1]*A+this.stride[2]*T+this.stride[3]*g},b.hi=function(x,A,T,g){return new _(this.data,typeof x!="number"||x<0?this.shape[0]:x|0,typeof A!="number"||A<0?this.shape[1]:A|0,typeof T!="number"||T<0?this.shape[2]:T|0,typeof g!="number"||g<0?this.shape[3]:g|0,this.stride[0],this.stride[1],this.stride[2],this.stride[3],this.offset)},b.lo=function(x,A,T,g){var E=this.offset,S=0,C=this.shape[0],k=this.shape[1],D=this.shape[2],L=this.shape[3],P=this.stride[0],I=this.stride[1],F=this.stride[2],z=this.stride[3];return typeof x=="number"&&x>=0&&(S=x|0,E+=P*S,C-=S),typeof A=="number"&&A>=0&&(S=A|0,E+=I*S,k-=S),typeof T=="number"&&T>=0&&(S=T|0,E+=F*S,D-=S),typeof g=="number"&&g>=0&&(S=g|0,E+=z*S,L-=S),new _(this.data,C,k,D,L,P,I,F,z,E)},b.step=function(x,A,T,g){var E=this.shape[0],S=this.shape[1],C=this.shape[2],k=this.shape[3],D=this.stride[0],L=this.stride[1],P=this.stride[2],I=this.stride[3],F=this.offset,z=0,B=Math.ceil;return typeof x=="number"&&(z=x|0,z<0?(F+=D*(E-1),E=B(-E/z)):E=B(E/z),D*=z),typeof A=="number"&&(z=A|0,z<0?(F+=L*(S-1),S=B(-S/z)):S=B(S/z),L*=z),typeof T=="number"&&(z=T|0,z<0?(F+=P*(C-1),C=B(-C/z)):C=B(C/z),P*=z),typeof g=="number"&&(z=g|0,z<0?(F+=I*(k-1),k=B(-k/z)):k=B(k/z),I*=z),new _(this.data,E,S,C,k,D,L,P,I,F)},b.transpose=function(x,A,T,g){x=x===void 0?0:x|0,A=A===void 0?1:A|0,T=T===void 0?2:T|0,g=g===void 0?3:g|0;var E=this.shape,S=this.stride;return new _(this.data,E[x],E[A],E[T],E[g],S[x],S[A],S[T],S[g],this.offset)},b.pick=function(x,A,T,g){var E=[],S=[],C=this.offset;typeof x=="number"&&x>=0?C=C+this.stride[0]*x|0:(E.push(this.shape[0]),S.push(this.stride[0])),typeof A=="number"&&A>=0?C=C+this.stride[1]*A|0:(E.push(this.shape[1]),S.push(this.stride[1])),typeof T=="number"&&T>=0?C=C+this.stride[2]*T|0:(E.push(this.shape[2]),S.push(this.stride[2])),typeof g=="number"&&g>=0?C=C+this.stride[3]*g|0:(E.push(this.shape[3]),S.push(this.stride[3]));var k=m[E.length+1];return k(this.data,E,S,C)},function(x,A,T,g){return new _(x,A[0],A[1],A[2],A[3],T[0],T[1],T[2],T[3],g)}},5:function(m,w,_){function b(x,A,T,g,E,S,C,k,D,L,P,I){this.data=x,this.shape=[A,T,g,E,S],this.stride=[C,k,D,L,P],this.offset=I|0}var M=b.prototype;return M.dtype=m,M.dimension=5,Object.defineProperty(M,"size",{get:function(){return this.shape[0]*this.shape[1]*this.shape[2]*this.shape[3]*this.shape[4]}}),Object.defineProperty(M,"order",{get:_}),M.set=function(A,T,g,E,S,C){return m==="generic"?this.data.set(this.offset+this.stride[0]*A+this.stride[1]*T+this.stride[2]*g+this.stride[3]*E+this.stride[4]*S,C):this.data[this.offset+this.stride[0]*A+this.stride[1]*T+this.stride[2]*g+this.stride[3]*E+this.stride[4]*S]=C},M.get=function(A,T,g,E,S){return m==="generic"?this.data.get(this.offset+this.stride[0]*A+this.stride[1]*T+this.stride[2]*g+this.stride[3]*E+this.stride[4]*S):this.data[this.offset+this.stride[0]*A+this.stride[1]*T+this.stride[2]*g+this.stride[3]*E+this.stride[4]*S]},M.index=function(A,T,g,E,S){return this.offset+this.stride[0]*A+this.stride[1]*T+this.stride[2]*g+this.stride[3]*E+this.stride[4]*S},M.hi=function(A,T,g,E,S){return new b(this.data,typeof A!="number"||A<0?this.shape[0]:A|0,typeof T!="number"||T<0?this.shape[1]:T|0,typeof g!="number"||g<0?this.shape[2]:g|0,typeof E!="number"||E<0?this.shape[3]:E|0,typeof S!="number"||S<0?this.shape[4]:S|0,this.stride[0],this.stride[1],this.stride[2],this.stride[3],this.stride[4],this.offset)},M.lo=function(A,T,g,E,S){var C=this.offset,k=0,D=this.shape[0],L=this.shape[1],P=this.shape[2],I=this.shape[3],F=this.shape[4],z=this.stride[0],B=this.stride[1],O=this.stride[2],W=this.stride[3],X=this.stride[4];return typeof A=="number"&&A>=0&&(k=A|0,C+=z*k,D-=k),typeof T=="number"&&T>=0&&(k=T|0,C+=B*k,L-=k),typeof g=="number"&&g>=0&&(k=g|0,C+=O*k,P-=k),typeof E=="number"&&E>=0&&(k=E|0,C+=W*k,I-=k),typeof S=="number"&&S>=0&&(k=S|0,C+=X*k,F-=k),new b(this.data,D,L,P,I,F,z,B,O,W,X,C)},M.step=function(A,T,g,E,S){var C=this.shape[0],k=this.shape[1],D=this.shape[2],L=this.shape[3],P=this.shape[4],I=this.stride[0],F=this.stride[1],z=this.stride[2],B=this.stride[3],O=this.stride[4],W=this.offset,X=0,Z=Math.ceil;return typeof A=="number"&&(X=A|0,X<0?(W+=I*(C-1),C=Z(-C/X)):C=Z(C/X),I*=X),typeof T=="number"&&(X=T|0,X<0?(W+=F*(k-1),k=Z(-k/X)):k=Z(k/X),F*=X),typeof g=="number"&&(X=g|0,X<0?(W+=z*(D-1),D=Z(-D/X)):D=Z(D/X),z*=X),typeof E=="number"&&(X=E|0,X<0?(W+=B*(L-1),L=Z(-L/X)):L=Z(L/X),B*=X),typeof S=="number"&&(X=S|0,X<0?(W+=O*(P-1),P=Z(-P/X)):P=Z(P/X),O*=X),new b(this.data,C,k,D,L,P,I,F,z,B,O,W)},M.transpose=function(A,T,g,E,S){A=A===void 0?0:A|0,T=T===void 0?1:T|0,g=g===void 0?2:g|0,E=E===void 0?3:E|0,S=S===void 0?4:S|0;var C=this.shape,k=this.stride;return new b(this.data,C[A],C[T],C[g],C[E],C[S],k[A],k[T],k[g],k[E],k[S],this.offset)},M.pick=function(A,T,g,E,S){var C=[],k=[],D=this.offset;typeof A=="number"&&A>=0?D=D+this.stride[0]*A|0:(C.push(this.shape[0]),k.push(this.stride[0])),typeof T=="number"&&T>=0?D=D+this.stride[1]*T|0:(C.push(this.shape[1]),k.push(this.stride[1])),typeof g=="number"&&g>=0?D=D+this.stride[2]*g|0:(C.push(this.shape[2]),k.push(this.stride[2])),typeof E=="number"&&E>=0?D=D+this.stride[3]*E|0:(C.push(this.shape[3]),k.push(this.stride[3])),typeof S=="number"&&S>=0?D=D+this.stride[4]*S|0:(C.push(this.shape[4]),k.push(this.stride[4]));var L=w[C.length+1];return L(this.data,C,k,D)},function(A,T,g,E){return new b(A,T[0],T[1],T[2],T[3],T[4],g[0],g[1],g[2],g[3],g[4],E)}}};function h(y,m){var w=m===-1?"T":String(m),_=c[w];return m===-1?_(y):m===0?_(y,p[y][0]):_(y,p[y],f)}function d(y){if(s(y))return"buffer";if(l)switch(Object.prototype.toString.call(y)){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(y)?"array":"generic"}var p={generic:[],buffer:[],array:[],float32:[],float64:[],int8:[],int16:[],int32:[],uint8_clamped:[],uint8:[],uint16:[],uint32:[],bigint64:[],biguint64:[]};function v(y,m,w,_){if(y===void 0){var g=p.array[0];return g([])}else typeof y=="number"&&(y=[y]);m===void 0&&(m=[y.length]);var b=m.length;if(w===void 0){w=new Array(b);for(var M=b-1,x=1;M>=0;--M)w[M]=x,x*=m[M]}if(_===void 0){_=0;for(var M=0;M>>0;n.exports=f;function f(c,h){if(isNaN(c)||isNaN(h))return NaN;if(c===h)return c;if(c===0)return h<0?-l:l;var d=s.hi(c),p=s.lo(c);return h>c==c>0?p===u?(d+=1,p=0):p+=1:p===0?(p=u,d-=1):p-=1,s.pack(p,d)}},8406(n,a){var o=1e-6,s=1e-6;a.vertexNormals=function(l,u,f){for(var c=u.length,h=new Array(c),d=f===void 0?o:f,p=0;pd)for(var C=h[m],k=1/Math.sqrt(T*E),S=0;S<3;++S){var D=(S+1)%3,L=(S+2)%3;C[S]+=k*(g[D]*A[L]-g[L]*A[D])}}for(var p=0;pd)for(var k=1/Math.sqrt(P),S=0;S<3;++S)C[S]*=k;else for(var S=0;S<3;++S)C[S]=0}return h},a.faceNormals=function(l,u,f){for(var c=l.length,h=new Array(c),d=f===void 0?s:f,p=0;pd?M=1/Math.sqrt(M):M=0;for(var m=0;m<3;++m)b[m]*=M;h[p]=b}return h}},4081(n){"use strict";n.exports=a;function a(o,s,l,u,f,c,h,d,p,v){var y=s+c+v;if(m>0){var m=Math.sqrt(y+1);o[0]=.5*(h-p)/m,o[1]=.5*(d-u)/m,o[2]=.5*(l-c)/m,o[3]=.5*m}else{var w=Math.max(s,c,v),m=Math.sqrt(2*w-y+1);s>=w?(o[0]=.5*m,o[1]=.5*(f+l)/m,o[2]=.5*(d+u)/m,o[3]=.5*(h-p)/m):c>=w?(o[0]=.5*(l+f)/m,o[1]=.5*m,o[2]=.5*(p+h)/m,o[3]=.5*(d-u)/m):(o[0]=.5*(u+d)/m,o[1]=.5*(h+p)/m,o[2]=.5*m,o[3]=.5*(l-f)/m)}return o}},9977(n,a,o){"use strict";n.exports=m;var s=o(9215),l=o(6582),u=o(7399),f=o(7608),c=o(4081);function h(w,_,b){return Math.sqrt(Math.pow(w,2)+Math.pow(_,2)+Math.pow(b,2))}function d(w,_,b,M){return Math.sqrt(Math.pow(w,2)+Math.pow(_,2)+Math.pow(b,2)+Math.pow(M,2))}function p(w,_){var b=_[0],M=_[1],x=_[2],A=_[3],T=d(b,M,x,A);T>1e-6?(w[0]=b/T,w[1]=M/T,w[2]=x/T,w[3]=A/T):(w[0]=w[1]=w[2]=0,w[3]=1)}function v(w,_,b){this.radius=s([b]),this.center=s(_),this.rotation=s(w),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 y=v.prototype;y.lastT=function(){return Math.max(this.radius.lastT(),this.center.lastT(),this.rotation.lastT())},y.recalcMatrix=function(w){this.radius.curve(w),this.center.curve(w),this.rotation.curve(w);var _=this.computedRotation;p(_,_);var b=this.computedMatrix;u(b,_);var M=this.computedCenter,x=this.computedEye,A=this.computedUp,T=Math.exp(this.computedRadius[0]);x[0]=M[0]+T*b[2],x[1]=M[1]+T*b[6],x[2]=M[2]+T*b[10],A[0]=b[1],A[1]=b[5],A[2]=b[9];for(var g=0;g<3;++g){for(var E=0,S=0;S<3;++S)E+=b[g+4*S]*x[S];b[12+g]=-E}},y.getMatrix=function(w,_){this.recalcMatrix(w);var b=this.computedMatrix;if(_){for(var M=0;M<16;++M)_[M]=b[M];return _}return b},y.idle=function(w){this.center.idle(w),this.radius.idle(w),this.rotation.idle(w)},y.flush=function(w){this.center.flush(w),this.radius.flush(w),this.rotation.flush(w)},y.pan=function(w,_,b,M){_=_||0,b=b||0,M=M||0,this.recalcMatrix(w);var x=this.computedMatrix,A=x[1],T=x[5],g=x[9],E=h(A,T,g);A/=E,T/=E,g/=E;var S=x[0],C=x[4],k=x[8],D=S*A+C*T+k*g;S-=A*D,C-=T*D,k-=g*D;var L=h(S,C,k);S/=L,C/=L,k/=L;var P=x[2],I=x[6],F=x[10],z=P*A+I*T+F*g,B=P*S+I*C+F*k;P-=z*A+B*S,I-=z*T+B*C,F-=z*g+B*k;var O=h(P,I,F);P/=O,I/=O,F/=O;var W=S*_+A*b,X=C*_+T*b,Z=k*_+g*b;this.center.move(w,W,X,Z);var j=Math.exp(this.computedRadius[0]);j=Math.max(1e-4,j+M),this.radius.set(w,Math.log(j))},y.rotate=function(w,_,b,M){this.recalcMatrix(w),_=_||0,b=b||0;var x=this.computedMatrix,A=x[0],T=x[4],g=x[8],E=x[1],S=x[5],C=x[9],k=x[2],D=x[6],L=x[10],P=_*A+b*E,I=_*T+b*S,F=_*g+b*C,z=-(D*F-L*I),B=-(L*P-k*F),O=-(k*I-D*P),W=Math.sqrt(Math.max(0,1-Math.pow(z,2)-Math.pow(B,2)-Math.pow(O,2))),X=d(z,B,O,W);X>1e-6?(z/=X,B/=X,O/=X,W/=X):(z=B=O=0,W=1);var Z=this.computedRotation,j=Z[0],q=Z[1],Q=Z[2],N=Z[3],V=j*W+N*z+q*O-Q*B,J=q*W+N*B+Q*z-j*O,H=Q*W+N*O+j*B-q*z,$=N*W-j*z-q*B-Q*O;if(M){z=k,B=D,O=L;var te=Math.sin(M)/h(z,B,O);z*=te,B*=te,O*=te,W=Math.cos(_),V=V*W+$*z+J*O-H*B,J=J*W+$*B+H*z-V*O,H=H*W+$*O+V*B-J*z,$=$*W-V*z-J*B-H*O}var ie=d(V,J,H,$);ie>1e-6?(V/=ie,J/=ie,H/=ie,$/=ie):(V=J=H=0,$=1),this.rotation.set(w,V,J,H,$)},y.lookAt=function(w,_,b,M){this.recalcMatrix(w),b=b||this.computedCenter,_=_||this.computedEye,M=M||this.computedUp;var x=this.computedMatrix;l(x,_,b,M);var A=this.computedRotation;c(A,x[0],x[1],x[2],x[4],x[5],x[6],x[8],x[9],x[10]),p(A,A),this.rotation.set(w,A[0],A[1],A[2],A[3]);for(var T=0,g=0;g<3;++g)T+=Math.pow(b[g]-_[g],2);this.radius.set(w,.5*Math.log(Math.max(T,1e-6))),this.center.set(w,b[0],b[1],b[2])},y.translate=function(w,_,b,M){this.center.move(w,_||0,b||0,M||0)},y.setMatrix=function(w,_){var b=this.computedRotation;c(b,_[0],_[1],_[2],_[4],_[5],_[6],_[8],_[9],_[10]),p(b,b),this.rotation.set(w,b[0],b[1],b[2],b[3]);var M=this.computedMatrix;f(M,_);var x=M[15];if(Math.abs(x)>1e-6){var A=M[12]/x,T=M[13]/x,g=M[14]/x;this.recalcMatrix(w);var E=Math.exp(this.computedRadius[0]);this.center.set(w,A-M[2]*E,T-M[6]*E,g-M[10]*E),this.radius.idle(w)}else this.center.idle(w),this.radius.idle(w)},y.setDistance=function(w,_){_>0&&this.radius.set(w,Math.log(_))},y.setDistanceLimits=function(w,_){w>0?w=Math.log(w):w=-1/0,_>0?_=Math.log(_):_=1/0,_=Math.max(_,w),this.radius.bounds[0][0]=w,this.radius.bounds[1][0]=_},y.getDistanceLimits=function(w){var _=this.radius.bounds;return w?(w[0]=Math.exp(_[0][0]),w[1]=Math.exp(_[1][0]),w):[Math.exp(_[0][0]),Math.exp(_[1][0])]},y.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]}},y.fromJSON=function(w){var _=this.lastT(),b=w.center;b&&this.center.set(_,b[0],b[1],b[2]);var M=w.rotation;M&&this.rotation.set(_,M[0],M[1],M[2],M[3]);var x=w.distance;x&&x>0&&this.radius.set(_,Math.log(x)),this.setDistanceLimits(w.zoomMin,w.zoomMax)};function m(w){w=w||{};var _=w.center||[0,0,0],b=w.rotation||[0,0,0,1],M=w.radius||1;_=[].slice.call(_,0,3),b=[].slice.call(b,0,4),p(b,b);var x=new v(b,_,Math.log(M));return x.setDistanceLimits(w.zoomMin,w.zoomMax),("eye"in w||"up"in w)&&x.lookAt(0,w.eye,w.center,w.up),x}},1371(n,a,o){"use strict";var s=o(3233);n.exports=function(u,f,c){return c=typeof c!="undefined"?c+"":" ",s(c,f)+u}},3202(n){n.exports=function(o,s){s||(s=[0,""]),o=String(o);var l=parseFloat(o,10);return s[0]=l,s[1]=o.match(/[\d.\-\+]*\s*(.*)/)[1]||"",s}},3088(n,a,o){"use strict";n.exports=l;var s=o(3140);function l(u,f){for(var c=f.length|0,h=u.length,d=[new Array(c),new Array(c)],p=0;p0){C=d[L][E][0],D=L;break}k=C[D^1];for(var P=0;P<2;++P)for(var I=d[P][E],F=0;F0&&(C=z,k=B,D=P)}return S||C&&m(C,D),k}function _(g,E){var S=d[E][g][0],C=[g];m(S,E);for(var k=S[E^1],D=E;;){for(;k!==g;)C.push(k),k=w(C[C.length-2],k,!1);if(d[0][g].length+d[1][g].length===0)break;var L=C[C.length-1],P=g,I=C[1],F=w(L,P,!0);if(s(f[L],f[P],f[I],f[F])<0)break;C.push(g),k=w(L,P)}return C}function b(g,E){return E[1]===E[E.length-1]}for(var p=0;p0;){var A=d[0][p].length,T=_(p,M);b(x,T)?x.push.apply(x,T):(x.length>0&&y.push(x),x=T)}x.length>0&&y.push(x)}return y}},5609(n,a,o){"use strict";n.exports=l;var s=o(3134);function l(u,f){for(var c=s(u,f.length),h=new Array(f.length),d=new Array(f.length),p=[],v=0;v0;){var m=p.pop();h[m]=!1;for(var w=c[m],v=0;v0}A=A.filter(T);for(var g=A.length,E=new Array(g),S=new Array(g),x=0;x0;){var ie=H.pop(),de=X[ie];h(de,function(re,Ee){return re-Ee});var ge=de.length,Ie=$[ie],Ce;if(Ie===0){var I=A[ie];Ce=[I]}for(var x=0;x=0)&&($[le]=Ie^1,H.push(le),Ie===0)){var I=A[le];J(I)||(I.reverse(),Ce.push(I))}}Ie===0&&te.push(Ce)}return te}},5085(n,a,o){n.exports=w;var s=o(3250)[3],l=o(4209),u=o(3352),f=o(2478);function c(){return!0}function h(_){return function(b,M){var x=_[b];return x?!!x.queryPoint(M,c):!1}}function d(_){for(var b={},M=0;M<_.length;++M){var x=_[M],A=x[0][0],T=x[0][1],g=x[1][1],E=[Math.min(T,g),Math.max(T,g)];A in b?b[A].push(E):b[A]=[E]}for(var S={},C=Object.keys(b),M=0;M0&&b[x]===M[0])A=_[x-1];else return 1;for(var T=1;A;){var g=A.key,E=s(M,g[0],g[1]);if(g[0][0]0)T=-1,A=A.right;else return 0;else if(E>0)A=A.left;else if(E<0)T=1,A=A.right;else return 0}return T}}function v(_){return 1}function y(_){return function(M){return _(M[0],M[1])?0:1}}function m(_,b){return function(x){return _(x[0],x[1])?0:b(x)}}function w(_){for(var b=_.length,M=[],x=[],A=0,T=0;T=v?(g=1,S=v+2*w+b):(g=-w/v,S=w*g+b)):(g=0,_>=0?(E=0,S=b):-_>=m?(E=1,S=m+2*_+b):(E=-_/m,S=_*E+b));else if(E<0)E=0,w>=0?(g=0,S=b):-w>=v?(g=1,S=v+2*w+b):(g=-w/v,S=w*g+b);else{var C=1/T;g*=C,E*=C,S=g*(v*g+y*E+2*w)+E*(y*g+m*E+2*_)+b}else{var k,D,L,P;g<0?(k=y+w,D=m+_,D>k?(L=D-k,P=v-2*y+m,L>=P?(g=1,E=0,S=v+2*w+b):(g=L/P,E=1-g,S=g*(v*g+y*E+2*w)+E*(y*g+m*E+2*_)+b)):(g=0,D<=0?(E=1,S=m+2*_+b):_>=0?(E=0,S=b):(E=-_/m,S=_*E+b))):E<0?(k=y+_,D=v+w,D>k?(L=D-k,P=v-2*y+m,L>=P?(E=1,g=0,S=m+2*_+b):(E=L/P,g=1-E,S=g*(v*g+y*E+2*w)+E*(y*g+m*E+2*_)+b)):(E=0,D<=0?(g=1,S=v+2*w+b):w>=0?(g=0,S=b):(g=-w/v,S=w*g+b))):(L=m+_-y-w,L<=0?(g=0,E=1,S=m+2*_+b):(P=v-2*y+m,L>=P?(g=1,E=0,S=v+2*w+b):(g=L/P,E=1-g,S=g*(v*g+y*E+2*w)+E*(y*g+m*E+2*_)+b)))}for(var I=1-g-E,p=0;p0){var m=c[d-1];if(s(v,m)===0&&u(m)!==y){d-=1;continue}}c[d++]=v}}return c.length=d,c}},3233(n){"use strict";var a="",o;n.exports=s;function s(l,u){if(typeof l!="string")throw new TypeError("expected a string");if(u===1)return l;if(u===2)return l+l;var f=l.length*u;if(o!==l||typeof o=="undefined")o=l,a="";else if(a.length>=f)return a.substr(0,f);for(;f>a.length&&u>1;)u&1&&(a+=l),u>>=1,l+=l;return a+=l,a=a.substr(0,f),a}},3025(n,a,o){n.exports=o.g.performance&&o.g.performance.now?function(){return performance.now()}:Date.now||function(){return+new Date}},7004(n){"use strict";n.exports=a;function a(o){for(var s=o.length,l=o[o.length-1],u=s,f=s-2;f>=0;--f){var c=l,h=o[f];l=c+h;var d=l-c,p=h-d;p&&(o[--u]=l,l=p)}for(var v=0,f=u;f0){if(D<=0)return L;P=k+D}else if(k<0){if(D>=0)return L;P=-(k+D)}else return L;var I=d*P;return L>=I||L<=-I?L:_(E,S,C)},function(E,S,C,k){var D=E[0]-k[0],L=S[0]-k[0],P=C[0]-k[0],I=E[1]-k[1],F=S[1]-k[1],z=C[1]-k[1],B=E[2]-k[2],O=S[2]-k[2],W=C[2]-k[2],X=L*z,Z=P*F,j=P*I,q=D*z,Q=D*F,N=L*I,V=B*(X-Z)+O*(j-q)+W*(Q-N),J=(Math.abs(X)+Math.abs(Z))*Math.abs(B)+(Math.abs(j)+Math.abs(q))*Math.abs(O)+(Math.abs(Q)+Math.abs(N))*Math.abs(W),H=p*J;return V>H||-V>H?V:b(E,S,C,k)}];function x(g){var E=M[g.length];return E||(E=M[g.length]=w(g.length)),E.apply(void 0,g)}function A(g,E,S,C,k,D,L){return function(I,F,z,B,O){switch(arguments.length){case 0:case 1:return 0;case 2:return C(I,F);case 3:return k(I,F,z);case 4:return D(I,F,z,B);case 5:return L(I,F,z,B,O)}for(var W=new Array(arguments.length),X=0;X0&&v>0||p<0&&v<0)return!1;var y=s(h,f,c),m=s(d,f,c);return y>0&&m>0||y<0&&m<0?!1:p===0&&v===0&&y===0&&m===0?l(f,c,h,d):!0}},8545(n){"use strict";n.exports=o;function a(s,l){var u=s+l,f=u-s,c=u-f,h=l-f,d=s-c,p=d+h;return p?[p,u]:[u]}function o(s,l){var u=s.length|0,f=l.length|0;if(u===1&&f===1)return a(s[0],-l[0]);var c=u+f,h=new Array(c),d=0,p=0,v=0,y=Math.abs,m=s[p],w=y(m),_=-l[v],b=y(_),M,x;w=f?(M=m,p+=1,p=f?(M=m,p+=1,p>1,_=c[2*w+1];if(_===v)return w;v<_?m=w:y=w+1}return y}function u(f,c,h,d){for(var p=f.length,v=[],y=0;y>1,_=c[2*w+1];if(_===v)return w;v<_?m=w:y=w+1}return y}function u(f,c,h,d){for(var p=f.length,v=[],y=0;y>1,_=c[2*w+1];if(_===v)return w;v<_?m=w:y=w+1}return y}function u(f,c,h,d){for(var p=f.length,v=[],y=0;y>1,_=c[2*w+1];if(_===v)return w;v<_?m=w:y=w+1}return y}function u(f,c,h,d){for(var p=f.length,v=[],y=0;y>1,P=d(E[L],S);P<=0?(P===0&&(D=L),C=L+1):P>0&&(k=L-1)}return D}s=m;function w(E,S){for(var C=new Array(E.length),k=0,D=C.length;k=E.length||d(E[X],L)!==0););}return C}s=w;function _(E,S){if(!S)return w(y(M(E,0)),E,0);for(var C=new Array(S),k=0;k>>z&1&&F.push(D[z]);S.push(F)}return v(S)}s=b;function M(E,S){if(S<0)return[];for(var C=[],k=(1<0)-(u<0)},a.abs=function(u){var f=u>>o-1;return(u^f)-f},a.min=function(u,f){return f^(u^f)&-(u65535)<<4,u>>>=f,c=(u>255)<<3,u>>>=c,f|=c,c=(u>15)<<2,u>>>=c,f|=c,c=(u>3)<<1,u>>>=c,f|=c,f|u>>1},a.log10=function(u){return u>=1e9?9:u>=1e8?8:u>=1e7?7:u>=1e6?6:u>=1e5?5:u>=1e4?4:u>=1e3?3:u>=100?2:u>=10?1:0},a.popCount=function(u){return u=u-(u>>>1&1431655765),u=(u&858993459)+(u>>>2&858993459),(u+(u>>>4)&252645135)*16843009>>>24};function s(u){var f=32;return u&=-u,u&&f--,u&65535&&(f-=16),u&16711935&&(f-=8),u&252645135&&(f-=4),u&858993459&&(f-=2),u&1431655765&&(f-=1),f}a.countTrailingZeros=s,a.nextPow2=function(u){return u+=u===0,--u,u|=u>>>1,u|=u>>>2,u|=u>>>4,u|=u>>>8,u|=u>>>16,u+1},a.prevPow2=function(u){return u|=u>>>1,u|=u>>>2,u|=u>>>4,u|=u>>>8,u|=u>>>16,u-(u>>>1)},a.parity=function(u){return u^=u>>>16,u^=u>>>8,u^=u>>>4,u&=15,27030>>>u&1};var l=new Array(256);(function(u){for(var f=0;f<256;++f){var c=f,h=f,d=7;for(c>>>=1;c;c>>>=1)h<<=1,h|=c&1,--d;u[f]=h<>>8&255]<<16|l[u>>>16&255]<<8|l[u>>>24&255]},a.interleave2=function(u,f){return u&=65535,u=(u|u<<8)&16711935,u=(u|u<<4)&252645135,u=(u|u<<2)&858993459,u=(u|u<<1)&1431655765,f&=65535,f=(f|f<<8)&16711935,f=(f|f<<4)&252645135,f=(f|f<<2)&858993459,f=(f|f<<1)&1431655765,u|f<<1},a.deinterleave2=function(u,f){return u=u>>>f&1431655765,u=(u|u>>>1)&858993459,u=(u|u>>>2)&252645135,u=(u|u>>>4)&16711935,u=(u|u>>>16)&65535,u<<16>>16},a.interleave3=function(u,f,c){return u&=1023,u=(u|u<<16)&4278190335,u=(u|u<<8)&251719695,u=(u|u<<4)&3272356035,u=(u|u<<2)&1227133513,f&=1023,f=(f|f<<16)&4278190335,f=(f|f<<8)&251719695,f=(f|f<<4)&3272356035,f=(f|f<<2)&1227133513,u|=f<<1,c&=1023,c=(c|c<<16)&4278190335,c=(c|c<<8)&251719695,c=(c|c<<4)&3272356035,c=(c|c<<2)&1227133513,u|c<<2},a.deinterleave3=function(u,f){return u=u>>>f&1227133513,u=(u|u>>>2)&3272356035,u=(u|u>>>4)&251719695,u=(u|u>>>8)&4278190335,u=(u|u>>>16)&1023,u<<22>>22},a.nextCombination=function(u){var f=u|u-1;return f+1|(~f&-~f)-1>>>s(u)+1}},2014(n,a,o){"use strict";"use restrict";var s=o(3105),l=o(4623);function u(g){for(var E=0,S=Math.max,C=0,k=g.length;C>1,L=h(g[D],E);L<=0?(L===0&&(k=D),S=D+1):L>0&&(C=D-1)}return k}a.findCell=y;function m(g,E){for(var S=new Array(g.length),C=0,k=S.length;C=g.length||h(g[W],D)!==0););}return S}a.incidence=m;function w(g,E){if(!E)return m(v(b(g,0)),g,0);for(var S=new Array(E),C=0;C>>F&1&&I.push(k[F]);E.push(I)}return p(E)}a.explode=_;function b(g,E){if(E<0)return[];for(var S=[],C=(1<>1:(q>>1)-1}function C(q){for(var Q=E(q);;){var N=Q,V=2*q+1,J=2*(q+1),H=q;if(V0;){var N=S(q);if(N>=0){var V=E(N);if(Q0){var q=I[0];return g(0,B-1),B-=1,C(0),q}return-1}function L(q,Q){var N=I[q];return w[N]===Q?q:(w[N]=-1/0,k(q),D(),w[N]=Q,B+=1,k(B-1))}function P(q){if(!_[q]){_[q]=!0;var Q=y[q],N=m[q];y[N]>=0&&(y[N]=Q),m[Q]>=0&&(m[Q]=N),F[Q]>=0&&L(F[Q],T(Q)),F[N]>=0&&L(F[N],T(N))}}for(var I=[],F=new Array(p),b=0;b>1;b>=0;--b)C(b);for(;;){var O=D();if(O<0||w[O]>d)break;P(O)}for(var W=[],b=0;b=0&&N>=0&&Q!==N){var V=F[Q],J=F[N];V!==J&&j.push([V,J])}}),l.unique(l.normalize(j)),{positions:W,edges:j}}},1303(n,a,o){"use strict";n.exports=u;var s=o(3250);function l(f,c){var h,d;if(c[0][0]c[1][0])h=c[1],d=c[0];else{var p=Math.min(f[0][1],f[1][1]),v=Math.max(f[0][1],f[1][1]),y=Math.min(c[0][1],c[1][1]),m=Math.max(c[0][1],c[1][1]);return vm?p-m:v-m}var w,_;f[0][1]c[1][0])h=c[1],d=c[0];else return l(c,f);var p,v;if(f[0][0]f[1][0])p=f[1],v=f[0];else return-l(f,c);var y=s(h,d,v),m=s(h,d,p);if(y<0){if(m<=0)return y}else if(y>0){if(m>=0)return y}else if(m)return m;if(y=s(v,p,d),m=s(v,p,h),y<0){if(m<=0)return y}else if(y>0){if(m>=0)return y}else if(m)return m;return d[0]-v[0]}},4209(n,a,o){"use strict";n.exports=m;var s=o(2478),l=o(3840),u=o(3250),f=o(1303);function c(w,_,b){this.slabs=w,this.coordinates=_,this.horizontal=b}var h=c.prototype;function d(w,_){return w.y-_}function p(w,_){for(var b=null;w;){var M=w.key,x,A;M[0][0]0)if(_[0]!==M[1][0])b=w,w=w.right;else{var g=p(w.right,_);if(g)return g;w=w.left}else{if(_[0]!==M[1][0])return w;var g=p(w.right,_);if(g)return g;w=w.left}}return b}h.castUp=function(w){var _=s.le(this.coordinates,w[0]);if(_<0)return-1;var b=this.slabs[_],M=p(this.slabs[_],w),x=-1;if(M&&(x=M.value),this.coordinates[_]===w[0]){var A=null;if(M&&(A=M.key),_>0){var T=p(this.slabs[_-1],w);T&&(A?f(T.key,A)>0&&(A=T.key,x=T.value):(x=T.value,A=T.key))}var g=this.horizontal[_];if(g.length>0){var E=s.ge(g,w[1],d);if(E=g.length)return x;S=g[E]}}if(S.start)if(A){var C=u(A[0],A[1],[w[0],S.y]);A[0][0]>A[1][0]&&(C=-C),C>0&&(x=S.index)}else x=S.index;else S.y!==w[1]&&(x=S.index)}}}return x};function v(w,_,b,M){this.y=w,this.index=_,this.start=b,this.closed=M}function y(w,_,b,M){this.x=w,this.segment=_,this.create=b,this.index=M}function m(w){for(var _=w.length,b=2*_,M=new Array(b),x=0;x<_;++x){var A=w[x],T=A[0][0]1&&(_=1);for(var b=1-_,M=p.length,x=new Array(M),A=0;A0||w>0&&x<0){var A=f(_,x,b,w);y.push(A),m.push(A.slice())}x<0?m.push(b.slice()):x>0?y.push(b.slice()):(y.push(b.slice()),m.push(b.slice())),w=x}return{positive:y,negative:m}}function h(p,v){for(var y=[],m=u(p[p.length-1],v),w=p[p.length-1],_=p[0],b=0;b0||m>0&&M<0)&&y.push(f(w,M,_,m)),M>=0&&y.push(_.slice()),m=M}return y}function d(p,v){for(var y=[],m=u(p[p.length-1],v),w=p[p.length-1],_=p[0],b=0;b0||m>0&&M<0)&&y.push(f(w,M,_,m)),M<=0&&y.push(_.slice()),m=M}return y}},3387(n,a,o){var s;(function(){"use strict";var l={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 u(p){return c(d(p),arguments)}function f(p,v){return u.apply(null,[p].concat(v||[]))}function c(p,v){var y=1,m=p.length,w,_="",b,M,x,A,T,g,E,S;for(b=0;b=0),x.type){case"b":w=parseInt(w,10).toString(2);break;case"c":w=String.fromCharCode(parseInt(w,10));break;case"d":case"i":w=parseInt(w,10);break;case"j":w=JSON.stringify(w,null,x.width?parseInt(x.width):0);break;case"e":w=x.precision?parseFloat(w).toExponential(x.precision):parseFloat(w).toExponential();break;case"f":w=x.precision?parseFloat(w).toFixed(x.precision):parseFloat(w);break;case"g":w=x.precision?String(Number(w.toPrecision(x.precision))):parseFloat(w);break;case"o":w=(parseInt(w,10)>>>0).toString(8);break;case"s":w=String(w),w=x.precision?w.substring(0,x.precision):w;break;case"t":w=String(!!w),w=x.precision?w.substring(0,x.precision):w;break;case"T":w=Object.prototype.toString.call(w).slice(8,-1).toLowerCase(),w=x.precision?w.substring(0,x.precision):w;break;case"u":w=parseInt(w,10)>>>0;break;case"v":w=w.valueOf(),w=x.precision?w.substring(0,x.precision):w;break;case"x":w=(parseInt(w,10)>>>0).toString(16);break;case"X":w=(parseInt(w,10)>>>0).toString(16).toUpperCase();break}l.json.test(x.type)?_+=w:(l.number.test(x.type)&&(!E||x.sign)?(S=E?"+":"-",w=w.toString().replace(l.sign,"")):S="",T=x.pad_char?x.pad_char==="0"?"0":x.pad_char.charAt(1):" ",g=x.width-(S+w).length,A=x.width&&g>0?T.repeat(g):"",_+=x.align?S+w+A:T==="0"?S+A+w:A+S+w)}return _}var h=Object.create(null);function d(p){if(h[p])return h[p];for(var v=p,y,m=[],w=0;v;){if((y=l.text.exec(v))!==null)m.push(y[0]);else if((y=l.modulo.exec(v))!==null)m.push("%");else if((y=l.placeholder.exec(v))!==null){if(y[2]){w|=1;var _=[],b=y[2],M=[];if((M=l.key.exec(b))!==null)for(_.push(M[1]);(b=b.substring(M[0].length))!=="";)if((M=l.key_access.exec(b))!==null)_.push(M[1]);else if((M=l.index_access.exec(b))!==null)_.push(M[1]);else throw new SyntaxError("[sprintf] failed to parse named argument key");else throw new SyntaxError("[sprintf] failed to parse named argument key");y[2]=_}else w|=2;if(w===3)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");m.push({placeholder:y[0],param_no:y[1],keys:y[2],sign:y[3],pad_char:y[4],align:y[5],width:y[6],precision:y[7],type:y[8]})}else throw new SyntaxError("[sprintf] unexpected placeholder");v=v.substring(y[0].length)}return h[p]=m}a.sprintf=u,a.vsprintf=f,typeof window!="undefined"&&(window.sprintf=u,window.vsprintf=f,s=(function(){return{sprintf:u,vsprintf:f}}).call(a,o,a,n),s!==void 0&&(n.exports=s))})()},3711(n,a,o){"use strict";n.exports=d;var s=o(2640),l=o(781),u={"2d":function(p,v,y){var m=p({order:v,scalarArguments:3,getters:y==="generic"?[0]:void 0,phase:function(_,b,M,x){return _>x|0},vertex:function(_,b,M,x,A,T,g,E,S,C,k,D,L){var P=(g<<0)+(E<<1)+(S<<2)+(C<<3)|0;if(!(P===0||P===15))switch(P){case 0:k.push([_-.5,b-.5]);break;case 1:k.push([_-.25-.25*(x+M-2*L)/(M-x),b-.25-.25*(A+M-2*L)/(M-A)]);break;case 2:k.push([_-.75-.25*(-x-M+2*L)/(x-M),b-.25-.25*(T+x-2*L)/(x-T)]);break;case 3:k.push([_-.5,b-.5-.5*(A+M+T+x-4*L)/(M-A+x-T)]);break;case 4:k.push([_-.25-.25*(T+A-2*L)/(A-T),b-.75-.25*(-A-M+2*L)/(A-M)]);break;case 5:k.push([_-.5-.5*(x+M+T+A-4*L)/(M-x+A-T),b-.5]);break;case 6:k.push([_-.5-.25*(-x-M+T+A)/(x-M+A-T),b-.5-.25*(-A-M+T+x)/(A-M+x-T)]);break;case 7:k.push([_-.75-.25*(T+A-2*L)/(A-T),b-.75-.25*(T+x-2*L)/(x-T)]);break;case 8:k.push([_-.75-.25*(-T-A+2*L)/(T-A),b-.75-.25*(-T-x+2*L)/(T-x)]);break;case 9:k.push([_-.5-.25*(x+M+-T-A)/(M-x+T-A),b-.5-.25*(A+M+-T-x)/(M-A+T-x)]);break;case 10:k.push([_-.5-.5*(-x-M+-T-A+4*L)/(x-M+T-A),b-.5]);break;case 11:k.push([_-.25-.25*(-T-A+2*L)/(T-A),b-.75-.25*(A+M-2*L)/(M-A)]);break;case 12:k.push([_-.5,b-.5-.5*(-A-M+-T-x+4*L)/(A-M+T-x)]);break;case 13:k.push([_-.75-.25*(x+M-2*L)/(M-x),b-.25-.25*(-T-x+2*L)/(T-x)]);break;case 14:k.push([_-.25-.25*(-x-M+2*L)/(x-M),b-.25-.25*(-A-M+2*L)/(A-M)]);break;case 15:k.push([_-.5,b-.5]);break}},cell:function(_,b,M,x,A,T,g,E,S){A?E.push([_,b]):E.push([b,_])}});return function(w,_){var b=[],M=[];return m(w,b,M,_),{positions:b,cells:M}}}};function f(p,v){var y=p.length+"d",m=u[y];if(m)return m(s,p,v)}function c(p,v){for(var y=l(p,v),m=y.length,w=new Array(m),_=new Array(m),b=0;bMath.max(x,A)?T[2]=1:x>Math.max(M,A)?T[0]=1:T[1]=1;for(var g=0,E=0,S=0;S<3;++S)g+=b[S]*b[S],E+=T[S]*b[S];for(var S=0;S<3;++S)T[S]-=E/g*b[S];return c(T,T),T}function y(b,M,x,A,T,g,E,S){this.center=s(x),this.up=s(A),this.right=s(T),this.radius=s([g]),this.angle=s([E,S]),this.angle.bounds=[[-1/0,-Math.PI/2],[1/0,Math.PI/2]],this.setDistanceLimits(b,M),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 C=0;C<16;++C)this.computedMatrix[C]=.5;this.recalcMatrix(0)}var m=y.prototype;m.setDistanceLimits=function(b,M){b>0?b=Math.log(b):b=-1/0,M>0?M=Math.log(M):M=1/0,M=Math.max(M,b),this.radius.bounds[0][0]=b,this.radius.bounds[1][0]=M},m.getDistanceLimits=function(b){var M=this.radius.bounds[0];return b?(b[0]=Math.exp(M[0][0]),b[1]=Math.exp(M[1][0]),b):[Math.exp(M[0][0]),Math.exp(M[1][0])]},m.recalcMatrix=function(b){this.center.curve(b),this.up.curve(b),this.right.curve(b),this.radius.curve(b),this.angle.curve(b);for(var M=this.computedUp,x=this.computedRight,A=0,T=0,g=0;g<3;++g)T+=M[g]*x[g],A+=M[g]*M[g];for(var E=Math.sqrt(A),S=0,g=0;g<3;++g)x[g]-=M[g]*T/A,S+=x[g]*x[g],M[g]/=E;for(var C=Math.sqrt(S),g=0;g<3;++g)x[g]/=C;var k=this.computedToward;f(k,M,x),c(k,k);for(var D=Math.exp(this.computedRadius[0]),L=this.computedAngle[0],P=this.computedAngle[1],I=Math.cos(L),F=Math.sin(L),z=Math.cos(P),B=Math.sin(P),O=this.computedCenter,W=I*z,X=F*z,Z=B,j=-I*B,q=-F*B,Q=z,N=this.computedEye,V=this.computedMatrix,g=0;g<3;++g){var J=W*x[g]+X*k[g]+Z*M[g];V[4*g+1]=j*x[g]+q*k[g]+Q*M[g],V[4*g+2]=J,V[4*g+3]=0}var H=V[1],$=V[5],te=V[9],ie=V[2],de=V[6],ge=V[10],Ie=$*ge-te*de,Ce=te*ie-H*ge,le=H*de-$*ie,re=d(Ie,Ce,le);Ie/=re,Ce/=re,le/=re,V[0]=Ie,V[4]=Ce,V[8]=le;for(var g=0;g<3;++g)N[g]=O[g]+V[2+4*g]*D;for(var g=0;g<3;++g){for(var S=0,Ee=0;Ee<3;++Ee)S+=V[g+4*Ee]*N[Ee];V[12+g]=-S}V[15]=1},m.getMatrix=function(b,M){this.recalcMatrix(b);var x=this.computedMatrix;if(M){for(var A=0;A<16;++A)M[A]=x[A];return M}return x};var w=[0,0,0];m.rotate=function(b,M,x,A){if(this.angle.move(b,M,x),A){this.recalcMatrix(b);var T=this.computedMatrix;w[0]=T[2],w[1]=T[6],w[2]=T[10];for(var g=this.computedUp,E=this.computedRight,S=this.computedToward,C=0;C<3;++C)T[4*C]=g[C],T[4*C+1]=E[C],T[4*C+2]=S[C];u(T,T,A,w);for(var C=0;C<3;++C)g[C]=T[4*C],E[C]=T[4*C+1];this.up.set(b,g[0],g[1],g[2]),this.right.set(b,E[0],E[1],E[2])}},m.pan=function(b,M,x,A){M=M||0,x=x||0,A=A||0,this.recalcMatrix(b);var T=this.computedMatrix,g=Math.exp(this.computedRadius[0]),E=T[1],S=T[5],C=T[9],k=d(E,S,C);E/=k,S/=k,C/=k;var D=T[0],L=T[4],P=T[8],I=D*E+L*S+P*C;D-=E*I,L-=S*I,P-=C*I;var F=d(D,L,P);D/=F,L/=F,P/=F;var z=D*M+E*x,B=L*M+S*x,O=P*M+C*x;this.center.move(b,z,B,O);var W=Math.exp(this.computedRadius[0]);W=Math.max(1e-4,W+A),this.radius.set(b,Math.log(W))},m.translate=function(b,M,x,A){this.center.move(b,M||0,x||0,A||0)},m.setMatrix=function(b,M,x,A){var T=1;typeof x=="number"&&(T=x|0),(T<0||T>3)&&(T=1);var g=(T+2)%3,E=(T+1)%3;M||(this.recalcMatrix(b),M=this.computedMatrix);var S=M[T],C=M[T+4],k=M[T+8];if(A){var L=Math.abs(S),P=Math.abs(C),I=Math.abs(k),F=Math.max(L,P,I);L===F?(S=S<0?-1:1,C=k=0):I===F?(k=k<0?-1:1,S=C=0):(C=C<0?-1:1,S=k=0)}else{var D=d(S,C,k);S/=D,C/=D,k/=D}var z=M[g],B=M[g+4],O=M[g+8],W=z*S+B*C+O*k;z-=S*W,B-=C*W,O-=k*W;var X=d(z,B,O);z/=X,B/=X,O/=X;var Z=C*O-k*B,j=k*z-S*O,q=S*B-C*z,Q=d(Z,j,q);Z/=Q,j/=Q,q/=Q,this.center.jump(b,ye,U,se),this.radius.idle(b),this.up.jump(b,S,C,k),this.right.jump(b,z,B,O);var N,V;if(T===2){var J=M[1],H=M[5],$=M[9],te=J*z+H*B+$*O,ie=J*Z+H*j+$*q;Ce<0?N=-Math.PI/2:N=Math.PI/2,V=Math.atan2(ie,te)}else{var de=M[2],ge=M[6],Ie=M[10],Ce=de*S+ge*C+Ie*k,le=de*z+ge*B+Ie*O,re=de*Z+ge*j+Ie*q;N=Math.asin(p(Ce)),V=Math.atan2(re,le)}this.angle.jump(b,V,N),this.recalcMatrix(b);var Ee=M[2],we=M[6],oe=M[10],Y=this.computedMatrix;l(Y,M);var ne=Y[15],ye=Y[12]/ne,U=Y[13]/ne,se=Y[14]/ne,Ae=Math.exp(this.computedRadius[0]);this.center.jump(b,ye-Ee*Ae,U-we*Ae,se-oe*Ae)},m.lastT=function(){return Math.max(this.center.lastT(),this.up.lastT(),this.right.lastT(),this.radius.lastT(),this.angle.lastT())},m.idle=function(b){this.center.idle(b),this.up.idle(b),this.right.idle(b),this.radius.idle(b),this.angle.idle(b)},m.flush=function(b){this.center.flush(b),this.up.flush(b),this.right.flush(b),this.radius.flush(b),this.angle.flush(b)},m.setDistance=function(b,M){M>0&&this.radius.set(b,Math.log(M))},m.lookAt=function(b,M,x,A){this.recalcMatrix(b),M=M||this.computedEye,x=x||this.computedCenter,A=A||this.computedUp;var T=A[0],g=A[1],E=A[2],S=d(T,g,E);if(!(S<1e-6)){T/=S,g/=S,E/=S;var C=M[0]-x[0],k=M[1]-x[1],D=M[2]-x[2],L=d(C,k,D);if(!(L<1e-6)){C/=L,k/=L,D/=L;var P=this.computedRight,I=P[0],F=P[1],z=P[2],B=T*I+g*F+E*z;I-=B*T,F-=B*g,z-=B*E;var O=d(I,F,z);if(!(O<.01&&(I=g*D-E*k,F=E*C-T*D,z=T*k-g*C,O=d(I,F,z),O<1e-6))){I/=O,F/=O,z/=O,this.up.set(b,T,g,E),this.right.set(b,I,F,z),this.center.set(b,x[0],x[1],x[2]),this.radius.set(b,Math.log(L));var W=g*z-E*F,X=E*I-T*z,Z=T*F-g*I,j=d(W,X,Z);W/=j,X/=j,Z/=j;var q=T*C+g*k+E*D,Q=I*C+F*k+z*D,N=W*C+X*k+Z*D,V=Math.asin(p(q)),J=Math.atan2(N,Q),H=this.angle._state,$=H[H.length-1],te=H[H.length-2];$=$%(2*Math.PI);var ie=Math.abs($+2*Math.PI-J),de=Math.abs($-J),ge=Math.abs($-2*Math.PI-J);ie0?z.pop():new ArrayBuffer(I)}a.mallocArrayBuffer=w;function _(P){return new Uint8Array(w(P),0,P)}a.mallocUint8=_;function b(P){return new Uint16Array(w(2*P),0,P)}a.mallocUint16=b;function M(P){return new Uint32Array(w(4*P),0,P)}a.mallocUint32=M;function x(P){return new Int8Array(w(P),0,P)}a.mallocInt8=x;function A(P){return new Int16Array(w(2*P),0,P)}a.mallocInt16=A;function T(P){return new Int32Array(w(4*P),0,P)}a.mallocInt32=T;function g(P){return new Float32Array(w(4*P),0,P)}a.mallocFloat32=a.mallocFloat=g;function E(P){return new Float64Array(w(8*P),0,P)}a.mallocFloat64=a.mallocDouble=E;function S(P){return f?new Uint8ClampedArray(w(P),0,P):_(P)}a.mallocUint8Clamped=S;function C(P){return c?new BigUint64Array(w(8*P),0,P):null}a.mallocBigUint64=C;function k(P){return h?new BigInt64Array(w(8*P),0,P):null}a.mallocBigInt64=k;function D(P){return new DataView(w(P),0,P)}a.mallocDataView=D;function L(P){P=s.nextPow2(P);var I=s.log2(P),F=v[I];return F.length>0?F.pop():new u(P)}a.mallocBuffer=L,a.clearCache=function(){for(var I=0;I<32;++I)d.UINT8[I].length=0,d.UINT16[I].length=0,d.UINT32[I].length=0,d.INT8[I].length=0,d.INT16[I].length=0,d.INT32[I].length=0,d.FLOAT[I].length=0,d.DOUBLE[I].length=0,d.BIGUINT64[I].length=0,d.BIGINT64[I].length=0,d.UINT8C[I].length=0,p[I].length=0,v[I].length=0}},1755(n){"use strict";"use restrict";n.exports=a;function a(s){this.roots=new Array(s),this.ranks=new Array(s);for(var l=0;l",z="",B=F.length,O=z.length,W=L[0]===w||L[0]===M,X=0,Z=-O;X>-1&&(X=P.indexOf(F,X),!(X===-1||(Z=P.indexOf(z,X+B),Z===-1)||Z<=X));){for(var j=X;j=Z)I[j]=null,P=P.substr(0,j)+" "+P.substr(j+1);else if(I[j]!==null){var q=I[j].indexOf(L[0]);q===-1?I[j]+=L:W&&(I[j]=I[j].substr(0,q+1)+(1+parseInt(I[j][q+1]))+I[j].substr(q+2))}var Q=X+B,N=P.substr(Q,Z-Q),V=N.indexOf(F);V!==-1?X=V:X=Z+O}return I}function T(D,L,P){for(var I=L.textAlign||"start",F=L.textBaseline||"alphabetic",z=[1<<30,1<<30],B=[0,0],O=D.length,W=0;W/g,` -`):P=P.replace(/\/g," ");var B="",O=[];for($=0;$-1?parseInt(U[1+be]):0,pe=me>-1?parseInt(se[1+me]):0;ue!==pe&&(Ae=Ae.replace(le(),"?px "),de*=Math.pow(.75,pe-ue),Ae=Ae.replace("?px ",le())),ie+=.25*q*(pe-ue)}if(z.superscripts===!0){var ce=U.indexOf(w),Be=se.indexOf(w),$e=ce>-1?parseInt(U[1+ce]):0,Ze=Be>-1?parseInt(se[1+Be]):0;$e!==Ze&&(Ae=Ae.replace(le(),"?px "),de*=Math.pow(.75,Ze-$e),Ae=Ae.replace("?px ",le())),ie-=.25*q*(Ze-$e)}if(z.bolds===!0){var it=U.indexOf(p)>-1,nt=se.indexOf(p)>-1;!it&&nt&&(Ue?Ae=Ae.replace("italic ","italic bold "):Ae="bold "+Ae),it&&!nt&&(Ae=Ae.replace("bold ",""))}if(z.italics===!0){var Ue=U.indexOf(y)>-1,xe=se.indexOf(y)>-1;!Ue&&xe&&(Ae="italic "+Ae),Ue&&!xe&&(Ae=Ae.replace("italic ",""))}L.font=Ae}for(H=0;H0&&(F=I.size),I.lineSpacing&&I.lineSpacing>0&&(z=I.lineSpacing),I.styletags&&I.styletags.breaklines&&(B.breaklines=!!I.styletags.breaklines),I.styletags&&I.styletags.bolds&&(B.bolds=!!I.styletags.bolds),I.styletags&&I.styletags.italics&&(B.italics=!!I.styletags.italics),I.styletags&&I.styletags.subscripts&&(B.subscripts=!!I.styletags.subscripts),I.styletags&&I.styletags.superscripts&&(B.superscripts=!!I.styletags.superscripts)),P.font=[I.fontStyle,I.fontVariant,I.fontWeight,F+"px",I.font].filter(function(W){return W}).join(" "),P.textAlign="start",P.textBaseline="alphabetic",P.direction="ltr";var O=g(L,P,D,F,z,B);return C(O,I,F)}},1538(n){(function(){"use strict";if(typeof ses!="undefined"&&ses.ok&&!ses.ok())return;function o(S){S.permitHostObjects___&&S.permitHostObjects___(o)}typeof ses!="undefined"&&(ses.weakMapPermitHostObjects=o);var s=!1;if(typeof WeakMap=="function"){var l=WeakMap;if(!(typeof navigator!="undefined"&&/Firefox/.test(navigator.userAgent))){var u=new l,f=Object.freeze({});if(u.set(f,1),u.get(f)!==1)s=!0;else{n.exports=WeakMap;return}}}var c=Object.prototype.hasOwnProperty,h=Object.getOwnPropertyNames,d=Object.defineProperty,p=Object.isExtensible,v="weakmap:",y=v+"ident:"+Math.random()+"___";if(typeof crypto!="undefined"&&typeof crypto.getRandomValues=="function"&&typeof ArrayBuffer=="function"&&typeof Uint8Array=="function"){var m=new ArrayBuffer(25),w=new Uint8Array(m);crypto.getRandomValues(w),y=v+"rand:"+Array.prototype.map.call(w,function(S){return(S%36).toString(36)}).join("")+"___"}function _(S){return!(S.substr(0,v.length)==v&&S.substr(S.length-3)==="___")}if(d(Object,"getOwnPropertyNames",{value:function(C){return h(C).filter(_)}}),"getPropertyNames"in Object){var b=Object.getPropertyNames;d(Object,"getPropertyNames",{value:function(C){return b(C).filter(_)}})}function M(S){if(S!==Object(S))throw new TypeError("Not an object: "+S);var C=S[y];if(C&&C.key===S)return C;if(p(S)){C={key:S};try{return d(S,y,{value:C,writable:!1,enumerable:!1,configurable:!1}),C}catch(k){return}}}(function(){var S=Object.freeze;d(Object,"freeze",{value:function(L){return M(L),S(L)}});var C=Object.seal;d(Object,"seal",{value:function(L){return M(L),C(L)}});var k=Object.preventExtensions;d(Object,"preventExtensions",{value:function(L){return M(L),k(L)}})})();function x(S){return S.prototype=null,Object.freeze(S)}var A=!1;function T(){!A&&typeof console!="undefined"&&(A=!0,console.warn("WeakMap should be invoked as new WeakMap(), not WeakMap(). This will be an error in the future."))}var g=0,E=function(){this instanceof E||T();var S=[],C=[],k=g++;function D(F,z){var B,O=M(F);return O?k in O?O[k]:z:(B=S.indexOf(F),B>=0?C[B]:z)}function L(F){var z=M(F);return z?k in z:S.indexOf(F)>=0}function P(F,z){var B,O=M(F);return O?O[k]=z:(B=S.indexOf(F),B>=0?C[B]=z:(B=S.length,C[B]=z,S[B]=F)),this}function I(F){var z=M(F),B,O;return z?k in z&&delete z[k]:(B=S.indexOf(F),B<0?!1:(O=S.length-1,S[B]=void 0,C[B]=C[O],S[B]=S[O],S.length=O,C.length=O,!0))}return Object.create(E.prototype,{get___:{value:x(D)},has___:{value:x(L)},set___:{value:x(P)},delete___:{value:x(I)}})};E.prototype=Object.create(Object.prototype,{get:{value:function(C,k){return this.get___(C,k)},writable:!0,configurable:!0},has:{value:function(C){return this.has___(C)},writable:!0,configurable:!0},set:{value:function(C,k){return this.set___(C,k)},writable:!0,configurable:!0},delete:{value:function(C){return this.delete___(C)},writable:!0,configurable:!0}}),typeof l=="function"?(function(){s&&typeof Proxy!="undefined"&&(Proxy=void 0);function S(){this instanceof E||T();var C=new l,k=void 0,D=!1;function L(z,B){return k?C.has(z)?C.get(z):k.get___(z,B):C.get(z,B)}function P(z){return C.has(z)||(k?k.has___(z):!1)}var I;s?I=function(z,B){return C.set(z,B),C.has(z)||(k||(k=new E),k.set(z,B)),this}:I=function(z,B){if(D)try{C.set(z,B)}catch(O){k||(k=new E),k.set___(z,B)}else C.set(z,B);return this};function F(z){var B=!!C.delete(z);return k&&k.delete___(z)||B}return Object.create(E.prototype,{get___:{value:x(L)},has___:{value:x(P)},set___:{value:x(I)},delete___:{value:x(F)},permitHostObjects___:{value:x(function(z){if(z===o)D=!0;else throw new Error("bogus call to permitHostObjects___")})}})}S.prototype=E.prototype,n.exports=S,Object.defineProperty(WeakMap.prototype,"constructor",{value:WeakMap,enumerable:!1,configurable:!0,writable:!0})})():(typeof Proxy!="undefined"&&(Proxy=void 0),n.exports=E)})()},236(n,a,o){var s=o(8284);n.exports=l;function l(){var u={};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(u);return c&&c.identity===u?c:s(f,u)}}},8284(n){n.exports=a;function a(o,s){var l={identity:s},u=o.valueOf;return Object.defineProperty(o,"valueOf",{value:function(f){return f!==s?u.apply(this,arguments):l},writable:!0}),l}},606(n,a,o){var s=o(236);n.exports=l;function l(){var u=s();return{get:function(f,c){var h=u(f);return h.hasOwnProperty("value")?h.value:c},set:function(f,c){return u(f).value=c,this},has:function(f){return"value"in u(f)},delete:function(f){return delete u(f).value}}}},3349(n){"use strict";function a(){return function(c,h,d,p,v,y){var m=c[0],w=d[0],_=[0],b=w;p|=0;var M=0,x=w;for(M=0;M=0!=T>=0&&v.push(_[0]+.5+.5*(A+T)/(A-T))}p+=x,++_[0]}}}function o(){return a()}var s=o;function l(c){var h={};return function(p,v,y){var m=p.dtype,w=p.order,_=[m,w.join()].join(),b=h[_];return b||(h[_]=b=c([m,w])),b(p.shape.slice(0),p.data,p.stride,p.offset|0,v,y)}}function u(c){return l(s.bind(void 0,c))}function f(c){return u({funcName:c.funcName})}n.exports=f({funcName:"zeroCrossings"})},781(n,a,o){"use strict";n.exports=l;var s=o(3349);function l(u,f){var c=[];return f=+f||0,s(u.hi(u.shape[0]-1),c,f),c}},7790(){}};let t={};function r(n){let a=t[n];if(a!==void 0)return a.exports;let o=t[n]={id:n,loaded:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.loaded=!0,o.exports}r.g=(function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch(n){if(typeof window=="object")return window}})(),r.nmd=n=>(n.paths=[],n.children||(n.children=[]),n);let i=r(3065);aOe.exports=i})()});var Ly=K((dJr,oOe)=>{"use strict";var{normalize:dir}=ko();function pir(e){return e?dir(e):[0,0,0,1]}oOe.exports=pir});var Py=K((pJr,hOe)=>{"use strict";var fOe=Gs(),XI=gf(),q4=ko(),vir=Nc().defaultLine,sOe=$h().isArrayOrTypedArray,qJ=q4.normalize(vir),cOe=1;function lOe(e,t){return[e[0],e[1],e[2],e[3]*t]}function BJ(e){return fOe(e)||!q4.isChannelArray(e)&&!q4.isValid(e)?qJ:q4.normalize(e)}function uOe(e){return fOe(e)?e:cOe}function mir(e,t,r){var i=e.color;i&&i._inputArray&&(i=i._inputArray);var n=sOe(i),a=sOe(t),o=XI.extractOpts(e),s=[],l,u,f,c,h;if(o.colorscale!==void 0?l=XI.makeColorScaleFuncFromTrace(e):l=BJ,n?u=(p,v)=>p[v]===void 0?qJ:o.colorscale===void 0?l(p[v]):q4.normalize(l(p[v])):u=BJ,a?f=function(p,v){return p[v]===void 0?cOe:uOe(p[v])}:f=uOe,n||a)for(var d=0;dxir});var gir,xir,NJ=ps(()=>{"use strict";gir={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]},xir=gir});var ZI={};Fl(ZI,{default:()=>_ir});var bir,_ir,KI=ps(()=>{"use strict";bir={circle:"\u25CF","circle-open":"\u25CB",square:"\u25A0","square-open":"\u25A1",diamond:"\u25C6","diamond-open":"\u25C7",cross:"+",x:"\u274C"},_ir=bir});var pOe=K((vJr,dOe)=>{"use strict";var wir=Ho();function VJ(e,t,r,i){if(!t||!t.visible)return null;for(var n=wir.getComponentMethod("errorbars","makeComputeError")(t),a=new Array(e.length),o=0;o0){var c=i.c2l(u);i._lowerLogErrorBound||(i._lowerLogErrorBound=c),i._lowerErrorBound=Math.min(i._lowerLogErrorBound,c)}}else a[o]=[-s[0]*r,s[1]*r]}return a}function Air(e){for(var t=0;t{"use strict";var Mir=Rh().gl_line3d,vOe=Rh().gl_scatter3d,Sir=Rh().gl_error3d,Eir=Rh().gl_mesh3d,kir=Rh().delaunay_triangulate,zy=Mt(),bOe=Ly(),JI=Py().formatColor,Cir=T6(),UJ=(NJ(),ar(OJ)).default,Dir=(KI(),ar(ZI)).default,Fir=Cs(),Lir=od().appendArrayPointValue,Pir=pOe();function _Oe(e,t){this.scene=e,this.uid=t,this.linePlot=null,this.scatterPlot=null,this.errorBars=null,this.textMarkers=null,this.delaunayMesh=null,this.color=null,this.mode="",this.dataPoints=[],this.axesBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.textLabels=null,this.data=null}var HJ=_Oe.prototype;HJ.handlePick=function(e){if(e.object&&(e.object===this.linePlot||e.object===this.delaunayMesh||e.object===this.textMarkers||e.object===this.scatterPlot)){var t=e.index=e.data.index;return e.object.highlight&&e.object.highlight(null),this.scatterPlot&&(e.object=this.scatterPlot,this.scatterPlot.highlight(e.data)),e.textLabel="",this.textLabels&&(zy.isArrayOrTypedArray(this.textLabels)?(this.textLabels[t]||this.textLabels[t]===0)&&(e.textLabel=this.textLabels[t]):e.textLabel=this.textLabels),e.traceCoordinate=[this.data.x[t],this.data.y[t],this.data.z[t]],!0}};function zir(e,t,r){var i=(r+1)%3,n=(r+2)%3,a=[],o=[],s;for(s=0;s-1?-1:e.indexOf("right")>-1?1:0}function yOe(e){return e==null?0:e.indexOf("top")>-1?-1:e.indexOf("bottom")>-1?1:0}function Rir(e){var t=0,r=0,i=[t,r];if(Array.isArray(e))for(var n=0;n=0){var u=zir(s.position,s.delaunayColor,s.delaunayAxis);u.opacity=e.opacity,this.delaunayMesh?this.delaunayMesh.update(u):(u.gl=t,this.delaunayMesh=Eir(u),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)};HJ.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 Nir(e,t){var r=new _Oe(e,t.uid);return r.update(t),r}wOe.exports=Nir});var XJ=K((yJr,EOe)=>{"use strict";var Iy=Zf(),Vir=lf(),YJ=Wu(),jJ=zf().axisHoverFormat,{hovertemplateAttrs:Uir,texttemplateAttrs:Gir,templatefallbackAttrs:TOe}=yu(),MOe=Au(),Hir=(NJ(),ar(OJ)).default,jir=(KI(),ar(ZI)).default,v1=Os().extendFlat,Wir=Ef().overrideAll,SOe=(Qx(),ar(Jx)).default,$ir=Iy.line,I_=Iy.marker,Yir=I_.line,Xir=v1({width:$ir.width,dash:{valType:"enumerated",values:SOe(Hir),dflt:"solid"}},YJ("line"));function WJ(e){return{show:{valType:"boolean",dflt:!1},opacity:{valType:"number",min:0,max:1,dflt:1},scale:{valType:"number",min:0,max:10,dflt:2/3}}}var $J=EOe.exports=Wir({x:Iy.x,y:Iy.y,z:{valType:"data_array"},text:v1({},Iy.text,{}),texttemplate:Gir(),texttemplatefallback:TOe({editType:"calc"}),hovertext:v1({},Iy.hovertext,{}),hovertemplate:Uir(),hovertemplatefallback:TOe(),xhoverformat:jJ("x"),yhoverformat:jJ("y"),zhoverformat:jJ("z"),mode:v1({},Iy.mode,{dflt:"lines+markers"}),surfaceaxis:{valType:"enumerated",values:[-1,0,1,2],dflt:-1},surfacecolor:{valType:"color"},projection:{x:WJ("x"),y:WJ("y"),z:WJ("z")},connectgaps:Iy.connectgaps,line:Xir,marker:v1({symbol:{valType:"enumerated",values:SOe(jir),dflt:"circle",arrayOk:!0},size:v1({},I_.size,{dflt:8}),sizeref:I_.sizeref,sizemin:I_.sizemin,sizemode:I_.sizemode,opacity:v1({},I_.opacity,{arrayOk:!1}),colorbar:I_.colorbar,line:v1({width:v1({},Yir.width,{arrayOk:!1})},YJ("marker.line"))},YJ("marker")),textposition:v1({},Iy.textposition,{dflt:"top center"}),textfont:Vir({noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0,editType:"calc",colorEditType:"style",arrayOk:!0,variantValues:["normal","small-caps"]}),opacity:MOe.opacity,hoverinfo:v1({},MOe.hoverinfo)},"calc","nested");$J.x.editType=$J.y.editType=$J.z.editType="calc+clearAxisTypes"});var DOe=K((gJr,COe)=>{"use strict";var kOe=Ho(),Zir=Mt(),ZJ=ff(),Kir=Yp(),Jir=Zv(),Qir=Kv(),enr=XJ();COe.exports=function(t,r,i,n){function a(d,p){return Zir.coerce(t,r,enr,d,p)}var o=tnr(t,r,a,n);if(!o){r.visible=!1;return}a("text"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback"),a("xhoverformat"),a("yhoverformat"),a("zhoverformat"),a("mode"),ZJ.hasMarkers(r)&&Kir(t,r,i,n,a,{noAngle:!0,noLineDash:!0,noSelect:!0}),ZJ.hasLines(r)&&(a("connectgaps"),Jir(t,r,i,n,a)),ZJ.hasText(r)&&(a("texttemplate"),a("texttemplatefallback"),Qir(t,r,n,a,{noSelect:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0}));var s=(r.line||{}).color,l=(r.marker||{}).color;a("surfaceaxis")>=0&&a("surfacecolor",s||l);for(var u=["x","y","z"],f=0;f<3;++f){var c="projection."+u[f];a(c+".show")&&(a(c+".opacity"),a(c+".scale"))}var h=kOe.getComponentMethod("errorbars","supplyDefaults");h(t,r,s||l||i,{axis:"z"}),h(t,r,s||l||i,{axis:"y",inherit:"z"}),h(t,r,s||l||i,{axis:"x",inherit:"z"})};function tnr(e,t,r,i){var n=0,a=r("x"),o=r("y"),s=r("z"),l=kOe.getComponentMethod("calendars","handleTraceDefaults");return l(e,t,["x","y","z"],i),a&&o&&s&&(n=Math.min(a.length,o.length,s.length),t._length=t._xlength=t._ylength=t._zlength=n),n}});var LOe=K((xJr,FOe)=>{"use strict";var rnr=om(),inr=Xp();FOe.exports=function(t,r){var i=[{x:!1,y:!1,trace:r,t:{}}];return rnr(i,r),inr(t,r),i}});var zOe=K((bJr,POe)=>{POe.exports=nnr;function nnr(e,t){if(typeof e!="string")throw new TypeError("must specify type string");if(t=t||{},typeof document=="undefined"&&!t.canvas)return null;var r=t.canvas||document.createElement("canvas");typeof t.width=="number"&&(r.width=t.width),typeof t.height=="number"&&(r.height=t.height);var i=t,n;try{var a=[e];e.indexOf("webgl")===0&&a.push("experimental-"+e);for(var o=0;o{var anr=zOe();IOe.exports=function(t){return anr("webgl",t)}});var KJ=K((wJr,qOe)=>{"use strict";var BOe=ko(),onr=function(){};qOe.exports=function(t){for(var r in t)typeof t[r]=="function"&&(t[r]=onr);t.destroy=function(){t.container.parentNode.removeChild(t.container)};var i=document.createElement("div");i.className="no-webgl",i.style.cursor="pointer",i.style.fontSize="24px",i.style.color=BOe.defaults[0],i.style.position="absolute",i.style.left=i.style.top="0px",i.style.width=i.style.height="100%",i.style["background-color"]=BOe.lightLine,i.style["z-index"]=30;var n=document.createElement("p");return n.textContent="WebGL is not supported by your browser - visit https://get.webgl.org for more info",n.style.position="relative",n.style.top="50%",n.style.left="50%",n.style.height="30%",n.style.width="50%",n.style.margin="-15% 0 0 -25%",i.appendChild(n),t.container.appendChild(i),t.container.style.background="#FFFFFF",t.container.onclick=function(){window.open("https://get.webgl.org")},!1}});var VOe=K((AJr,NOe)=>{"use strict";var R_=Ly(),snr=Mt(),lnr=["xaxis","yaxis","zaxis"];function OOe(){this.bounds=[[-10,-10,-10],[10,10,10]],this.ticks=[[],[],[]],this.tickEnable=[!0,!0,!0],this.tickFont=["sans-serif","sans-serif","sans-serif"],this.tickSize=[12,12,12],this.tickFontWeight=["normal","normal","normal","normal"],this.tickFontStyle=["normal","normal","normal","normal"],this.tickFontVariant=["normal","normal","normal","normal"],this.tickAngle=[0,0,0],this.tickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.tickPad=[18,18,18],this.labels=["x","y","z"],this.labelEnable=[!0,!0,!0],this.labelFont=["Open Sans","Open Sans","Open Sans"],this.labelSize=[20,20,20],this.labelFontWeight=["normal","normal","normal","normal"],this.labelFontStyle=["normal","normal","normal","normal"],this.labelFontVariant=["normal","normal","normal","normal"],this.labelColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.labelPad=[30,30,30],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=[10,10,10],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=[!0,!0,!0],this.backgroundColor=[[.8,.8,.8,.5],[.8,.8,.8,.5],[.8,.8,.8,.5]],this._defaultTickPad=this.tickPad.slice(),this._defaultLabelPad=this.labelPad.slice(),this._defaultLineTickLength=this.lineTickLength.slice()}var unr=OOe.prototype;unr.merge=function(e,t){for(var r=this,i=0;i<3;++i){var n=t[lnr[i]];if(!n.visible){r.tickEnable[i]=!1,r.labelEnable[i]=!1,r.lineEnable[i]=!1,r.lineTickEnable[i]=!1,r.gridEnable[i]=!1,r.zeroEnable[i]=!1,r.backgroundEnable[i]=!1;continue}r.labels[i]=e._meta?snr.templateString(n.title.text,e._meta):n.title.text,"font"in n.title&&(n.title.font.color&&(r.labelColor[i]=R_(n.title.font.color)),n.title.font.family&&(r.labelFont[i]=n.title.font.family),n.title.font.size&&(r.labelSize[i]=n.title.font.size),n.title.font.weight&&(r.labelFontWeight[i]=n.title.font.weight),n.title.font.style&&(r.labelFontStyle[i]=n.title.font.style),n.title.font.variant&&(r.labelFontVariant[i]=n.title.font.variant)),"showline"in n&&(r.lineEnable[i]=n.showline),"linecolor"in n&&(r.lineColor[i]=R_(n.linecolor)),"linewidth"in n&&(r.lineWidth[i]=n.linewidth),"showgrid"in n&&(r.gridEnable[i]=n.showgrid),"gridcolor"in n&&(r.gridColor[i]=R_(n.gridcolor)),"gridwidth"in n&&(r.gridWidth[i]=n.gridwidth),n.type==="log"?r.zeroEnable[i]=!1:"zeroline"in n&&(r.zeroEnable[i]=n.zeroline),"zerolinecolor"in n&&(r.zeroLineColor[i]=R_(n.zerolinecolor)),"zerolinewidth"in n&&(r.zeroLineWidth[i]=n.zerolinewidth),"ticks"in n&&n.ticks?r.lineTickEnable[i]=!0:r.lineTickEnable[i]=!1,"ticklen"in n&&(r.lineTickLength[i]=r._defaultLineTickLength[i]=n.ticklen),"tickcolor"in n&&(r.lineTickColor[i]=R_(n.tickcolor)),"tickwidth"in n&&(r.lineTickWidth[i]=n.tickwidth),"tickangle"in n&&(r.tickAngle[i]=n.tickangle==="auto"?-3600:Math.PI*-n.tickangle/180),"showticklabels"in n&&(r.tickEnable[i]=n.showticklabels),"tickfont"in n&&(n.tickfont.color&&(r.tickColor[i]=R_(n.tickfont.color)),n.tickfont.family&&(r.tickFont[i]=n.tickfont.family),n.tickfont.size&&(r.tickSize[i]=n.tickfont.size),n.tickfont.weight&&(r.tickFontWeight[i]=n.tickfont.weight),n.tickfont.style&&(r.tickFontStyle[i]=n.tickfont.style),n.tickfont.variant&&(r.tickFontVariant[i]=n.tickfont.variant)),"mirror"in n?["ticks","all","allticks"].indexOf(n.mirror)!==-1?(r.lineTickMirror[i]=!0,r.lineMirror[i]=!0):n.mirror===!0?(r.lineTickMirror[i]=!1,r.lineMirror[i]=!0):(r.lineTickMirror[i]=!1,r.lineMirror[i]=!1):r.lineMirror[i]=!1,"showbackground"in n&&n.showbackground!==!1?(r.backgroundEnable[i]=!0,r.backgroundColor[i]=R_(n.backgroundcolor)):r.backgroundEnable[i]=!1}};function fnr(e,t){var r=new OOe;return r.merge(e,t),r}NOe.exports=fnr});var HOe=K((TJr,GOe)=>{"use strict";var cnr=Ly(),hnr=["xaxis","yaxis","zaxis"];function UOe(){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 dnr=UOe.prototype;dnr.merge=function(e){for(var t=0;t<3;++t){var r=e[hnr[t]];if(!r.visible){this.enabled[t]=!1,this.drawSides[t]=!1;continue}this.enabled[t]=r.showspikes,this.colors[t]=cnr(r.spikecolor),this.drawSides[t]=r.spikesides,this.lineWidth[t]=r.spikethickness}};function pnr(e){var t=new UOe;return t.merge(e),t}GOe.exports=pnr});var $Oe=K((MJr,WOe)=>{"use strict";WOe.exports=xnr;var jOe=Cs(),vnr=Mt(),mnr=["xaxis","yaxis","zaxis"],ynr=[0,0,0];function gnr(e){for(var t=new Array(3),r=0;r<3;++r){for(var i=e[r],n=new Array(i.length),a=0;a/g," "));n[a]=u,o.tickmode=s}}t.ticks=n;for(var a=0;a<3;++a){ynr[a]=.5*(e.glplot.bounds[0][a]+e.glplot.bounds[1][a]);for(var f=0;f<2;++f)t.bounds[f][a]=e.glplot.bounds[f][a]}e.contourLevels=gnr(n)}});var eNe=K((SJr,QOe)=>{"use strict";var ZOe=Rh().gl_plot3d,bnr=ZOe.createCamera,YOe=ZOe.createScene,_nr=ROe(),wnr=AL(),tR=Ho(),dd=Mt(),eR=dd.preserveDrawingBuffer(),rR=Cs(),m1=Uf(),Anr=Ly(),Tnr=KJ(),Mnr=a$(),Snr=VOe(),Enr=HOe(),knr=$Oe(),Cnr=Hv().applyAutorangeOptions,AE,QI,KOe=!1;function JOe(e,t){var r=document.createElement("div"),i=e.container;this.graphDiv=e.graphDiv;var n=document.createElementNS("http://www.w3.org/2000/svg","svg");n.style.position="absolute",n.style.top=n.style.left="0px",n.style.width=n.style.height="100%",n.style["z-index"]=20,n.style["pointer-events"]="none",r.appendChild(n),this.svgContainer=n,r.id=e.id,r.style.position="absolute",r.style.top=r.style.left="0px",r.style.width=r.style.height="100%",i.appendChild(r),this.fullLayout=t,this.id=e.id||"scene",this.fullSceneLayout=t[this.id],this.plotArgs=[[],{},{}],this.axesOptions=Snr(t,t[this.id]),this.spikeOptions=Enr(t[this.id]),this.container=r,this.staticMode=!!e.staticPlot,this.pixelRatio=this.pixelRatio||e.plotGlPixelRatio||2,this.dataScale=[1,1,1],this.contourLevels=[[],[],[]],this.convertAnnotations=tR.getComponentMethod("annotations3d","convert"),this.drawAnnotations=tR.getComponentMethod("annotations3d","draw"),this.initializeGLPlot()}var D0=JOe.prototype;D0.prepareOptions=function(){var e=this,t={canvas:e.canvas,gl:e.gl,glOptions:{preserveDrawingBuffer:eR,premultipliedAlpha:!0,antialias:!0},container:e.container,axes:e.axesOptions,spikes:e.spikeOptions,pickRadius:10,snapToData:!0,autoScale:!0,autoBounds:!1,cameraObject:e.camera,pixelRatio:e.pixelRatio};if(e.staticMode){if(!QI&&(AE=document.createElement("canvas"),QI=_nr({canvas:AE,preserveDrawingBuffer:!0,premultipliedAlpha:!0,antialias:!0}),!QI))throw new Error("error creating static canvas/context for image server");t.gl=QI,t.canvas=AE}return t};var XOe=!0;D0.tryCreatePlot=function(){var e=this,t=e.prepareOptions(),r=!0;try{e.glplot=YOe(t)}catch(i){if(e.staticMode||!XOe||eR)r=!1;else{dd.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{eR=t.glOptions.preserveDrawingBuffer=!0,e.glplot=YOe(t)}catch(n){eR=t.glOptions.preserveDrawingBuffer=!1,r=!1}}}return XOe=!1,r};D0.initializeGLCamera=function(){var e=this,t=e.fullSceneLayout.camera,r=t.projection.type==="orthographic";e.camera=bnr(e.container,{center:[t.center.x,t.center.y,t.center.z],eye:[t.eye.x,t.eye.y,t.eye.z],up:[t.up.x,t.up.y,t.up.z],_ortho:r,zoomMin:.01,zoomMax:100,mode:"orbit"})};D0.initializeGLPlot=function(){var e=this;e.initializeGLCamera();var t=e.tryCreatePlot();if(!t)return Tnr(e);e.traces={},e.make4thDimension();var r=e.graphDiv,i=r.layout,n=function(){var o={};return e.isCameraChanged(i)&&(o[e.id+".camera"]=e.getCamera()),e.isAspectChanged(i)&&(o[e.id+".aspectratio"]=e.glplot.getAspectratio(),i[e.id].aspectmode!=="manual"&&(e.fullSceneLayout.aspectmode=i[e.id].aspectmode=o[e.id+".aspectmode"]="manual")),o},a=function(o){if(o.fullSceneLayout.dragmode!==!1){var s=n();o.saveLayout(i),o.graphDiv.emit("plotly_relayout",s)}};return e.glplot.canvas&&(e.glplot.canvas.addEventListener("mouseup",function(){a(e)}),e.glplot.canvas.addEventListener("touchstart",function(){KOe=!0}),e.glplot.canvas.addEventListener("wheel",function(o){if(r._context._scrollZoom.gl3d){if(e.camera._ortho){var s=o.deltaX>o.deltaY?1.1:.9090909090909091,l=e.glplot.getAspectratio();e.glplot.setAspectratio({x:s*l.x,y:s*l.y,z:s*l.z})}a(e)}},wnr?{passive:!1}:!1),e.glplot.canvas.addEventListener("mousemove",function(){if(e.fullSceneLayout.dragmode!==!1&&e.camera.mouseListener.buttons!==0){var o=n();e.graphDiv.emit("plotly_relayouting",o)}}),e.staticMode||e.glplot.canvas.addEventListener("webglcontextlost",function(o){r&&r.emit&&r.emit("plotly_webglcontextlost",{event:o,layer:e.id})},!1)),e.glplot.oncontextloss=function(){e.recoverContext()},e.glplot.onrender=function(){e.render()},!0};D0.render=function(){var e=this,t=e.graphDiv,r,i=e.svgContainer,n=e.container.getBoundingClientRect();t._fullLayout._calcInverseTransform(t);var a=t._fullLayout._invScaleX,o=t._fullLayout._invScaleY,s=n.width*a,l=n.height*o;i.setAttributeNS(null,"viewBox","0 0 "+s+" "+l),i.setAttributeNS(null,"width",s),i.setAttributeNS(null,"height",l),knr(e),e.glplot.axes.update(e.axesOptions);for(var u=Object.keys(e.traces),f=null,c=e.glplot.selection,h=0;h")):r.type==="isosurface"||r.type==="volume"?(m.valueLabel=rR.hoverLabelText(e._mockAxis,e._mockAxis.d2l(c.traceCoordinate[3]),r.valuehoverformat),x.push("value: "+m.valueLabel),c.textLabel&&x.push(c.textLabel),M=x.join("
")):M=c.textLabel;var A={x:c.traceCoordinate[0],y:c.traceCoordinate[1],z:c.traceCoordinate[2],data:v._input,fullData:v,curveNumber:v.index,pointNumber:y};m1.appendArrayPointValue(A,v,y),r._module.eventData&&(A=v._module.eventData(A,c,v,{},y));var T={points:[A]};if(e.fullSceneLayout.hovermode){var g=[];m1.loneHover({trace:v,x:(.5+.5*p[0]/p[3])*s,y:(.5-.5*p[1]/p[3])*l,xLabel:m.xLabel,yLabel:m.yLabel,zLabel:m.zLabel,text:M,name:f.name,color:m1.castHoverOption(v,y,"bgcolor")||f.color,borderColor:m1.castHoverOption(v,y,"bordercolor"),fontFamily:m1.castHoverOption(v,y,"font.family"),fontSize:m1.castHoverOption(v,y,"font.size"),fontColor:m1.castHoverOption(v,y,"font.color"),nameLength:m1.castHoverOption(v,y,"namelength"),textAlign:m1.castHoverOption(v,y,"align"),hovertemplate:dd.castOption(v,y,"hovertemplate"),hovertemplateLabels:dd.extendFlat({},A,m),eventData:[A]},{container:i,gd:t,inOut_bbox:g}),A.bbox=g[0]}c.distance<5&&(c.buttons||KOe)?t.emit("plotly_click",T):t.emit("plotly_hover",T),this.oldEventData=T}else m1.loneUnhover(i),this.oldEventData&&t.emit("plotly_unhover",this.oldEventData),this.oldEventData=void 0;e.drawAnnotations(e)};D0.recoverContext=function(){var e=this;e.glplot.dispose();var t=function(){if(e.glplot.gl.isContextLost()){requestAnimationFrame(t);return}if(!e.initializeGLPlot()){dd.error("Catastrophic and unrecoverable WebGL error. Context lost.");return}e.plot.apply(e,e.plotArgs)};requestAnimationFrame(t)};var TE=["xaxis","yaxis","zaxis"];function Dnr(e,t,r){for(var i=e.fullSceneLayout,n=0;n<3;n++){var a=TE[n],o=a.charAt(0),s=i[a],l=t[o],u=t[o+"calendar"],f=t["_"+o+"length"];if(!dd.isArrayOrTypedArray(l))r[0][n]=Math.min(r[0][n],0),r[1][n]=Math.max(r[1][n],f-1);else for(var c,h=0;h<(f||l.length);h++)if(dd.isArrayOrTypedArray(l[h]))for(var d=0;dv[1][o])v[0][o]=-1,v[1][o]=1;else{var S=v[1][o]-v[0][o];v[0][o]-=S/32,v[1][o]+=S/32}if(w=[v[0][o],v[1][o]],w=Cnr(w,l),v[0][o]=w[0],v[1][o]=w[1],l.isReversed()){var C=v[0][o];v[0][o]=v[1][o],v[1][o]=C}}else w=l.range,v[0][o]=l.r2l(w[0]),v[1][o]=l.r2l(w[1]);v[0][o]===v[1][o]&&(v[0][o]-=1,v[1][o]+=1),y[o]=v[1][o]-v[0][o],l.range=[v[0][o],v[1][o]],l.limitRange(),i.glplot.setBounds(o,{min:l.range[0]*d[o],max:l.range[1]*d[o]})}var k,D=f.aspectmode;if(D==="cube")k=[1,1,1];else if(D==="manual"){var L=f.aspectratio;k=[L.x,L.y,L.z]}else if(D==="auto"||D==="data"){var P=[1,1,1];for(o=0;o<3;++o){l=f[TE[o]],u=l.type;var I=m[u];P[o]=Math.pow(I.acc,1/I.count)/d[o]}D==="data"||Math.max.apply(null,P)/Math.min.apply(null,P)<=4?k=P:k=[1,1,1]}else throw new Error("scene.js aspectRatio was not one of the enumerated types");f.aspectratio.x=c.aspectratio.x=k[0],f.aspectratio.y=c.aspectratio.y=k[1],f.aspectratio.z=c.aspectratio.z=k[2],i.glplot.setAspectratio(f.aspectratio),i.viewInitial.aspectratio||(i.viewInitial.aspectratio={x:f.aspectratio.x,y:f.aspectratio.y,z:f.aspectratio.z}),i.viewInitial.aspectmode||(i.viewInitial.aspectmode=f.aspectmode);var F=f.domain||null,z=t._size||null;if(F&&z){var B=i.container.style;B.position="absolute",B.left=z.l+F.x[0]*z.w+"px",B.top=z.t+(1-F.y[1])*z.h+"px",B.width=z.w*(F.x[1]-F.x[0])+"px",B.height=z.h*(F.y[1]-F.y[0])+"px"}i.glplot.redraw()}};D0.destroy=function(){var e=this;e.glplot&&(e.camera.mouseListener.enabled=!1,e.container.removeEventListener("wheel",e.camera.wheelListener),e.camera=null,e.glplot.dispose(),e.container.parentNode.removeChild(e.container),e.glplot=null)};function Lnr(e){return[[e.eye.x,e.eye.y,e.eye.z],[e.center.x,e.center.y,e.center.z],[e.up.x,e.up.y,e.up.z]]}function Pnr(e){return{up:{x:e.up[0],y:e.up[1],z:e.up[2]},center:{x:e.center[0],y:e.center[1],z:e.center[2]},eye:{x:e.eye[0],y:e.eye[1],z:e.eye[2]},projection:{type:e._ortho===!0?"orthographic":"perspective"}}}D0.getCamera=function(){var e=this;return e.camera.view.recalcMatrix(e.camera.view.lastT()),Pnr(e.camera)};D0.setViewport=function(e){var t=this,r=e.camera;t.camera.lookAt.apply(this,Lnr(r)),t.glplot.setAspectratio(e.aspectratio);var i=r.projection.type==="orthographic",n=t.camera._ortho;i!==n&&(t.glplot.redraw(),t.glplot.clearRGBA(),t.glplot.dispose(),t.initializeGLPlot())};D0.isCameraChanged=function(e){var t=this,r=t.getCamera(),i=dd.nestedProperty(e,t.id+".camera"),n=i.get();function a(u,f,c,h){var d=["up","center","eye"],p=["x","y","z"];return f[d[c]]&&u[d[c]][p[h]]===f[d[c]][p[h]]}var o=!1;if(n===void 0)o=!0;else{for(var s=0;s<3;s++)for(var l=0;l<3;l++)if(!a(r,n,s,l)){o=!0;break}(!n.projection||r.projection&&r.projection.type!==n.projection.type)&&(o=!0)}return o};D0.isAspectChanged=function(e){var t=this,r=t.glplot.getAspectratio(),i=dd.nestedProperty(e,t.id+".aspectratio"),n=i.get();return n===void 0||n.x!==r.x||n.y!==r.y||n.z!==r.z};D0.saveLayout=function(e){var t=this,r=t.fullLayout,i,n,a,o,s,l,u=t.isCameraChanged(e),f=t.isAspectChanged(e),c=u||f;if(c){var h={};if(u&&(i=t.getCamera(),n=dd.nestedProperty(e,t.id+".camera"),a=n.get(),h[t.id+".camera"]=a),f&&(o=t.glplot.getAspectratio(),s=dd.nestedProperty(e,t.id+".aspectratio"),l=s.get(),h[t.id+".aspectratio"]=l),tR.call("_storeDirectGUIEdit",e,r._preGUI,h),u){n.set(i);var d=dd.nestedProperty(r,t.id+".camera");d.set(i)}if(f){s.set(o);var p=dd.nestedProperty(r,t.id+".aspectratio");p.set(o),t.glplot.redraw()}}return c};D0.updateFx=function(e,t){var r=this,i=r.camera;if(i)if(e==="orbit")i.mode="orbit",i.keyBindingMode="rotate";else if(e==="turntable"){i.up=[0,0,1],i.mode="turntable",i.keyBindingMode="rotate";var n=r.graphDiv,a=n._fullLayout,o=r.fullSceneLayout.camera,s=o.up.x,l=o.up.y,u=o.up.z;if(u/Math.sqrt(s*s+l*l+u*u)<.999){var f=r.id+".camera.up",c={x:0,y:0,z:1},h={};h[f]=c;var d=n.layout;tR.call("_storeDirectGUIEdit",d,a._preGUI,h),o.up=c,dd.nestedProperty(d,f).set(c)}}else i.keyBindingMode=e;r.fullSceneLayout.hovermode=t};function znr(e,t,r){for(var i=0,n=r-1;i0)for(var s=255/o,l=0;l<3;++l)e[a+l]=Math.min(s*e[a+l],255)}}D0.toImage=function(e){var t=this;e||(e="png"),t.staticMode&&t.container.appendChild(AE),t.glplot.redraw();var r=t.glplot.gl,i=r.drawingBufferWidth,n=r.drawingBufferHeight;r.bindFramebuffer(r.FRAMEBUFFER,null);var a=new Uint8Array(i*n*4);r.readPixels(0,0,i,n,r.RGBA,r.UNSIGNED_BYTE,a),znr(a,i,n),Inr(a,i,n);var o=document.createElement("canvas");o.width=i,o.height=n;var s=o.getContext("2d",{willReadFrequently:!0}),l=s.createImageData(i,n);l.data.set(a),s.putImageData(l,0,0);var u;switch(e){case"jpeg":u=o.toDataURL("image/jpeg");break;case"webp":u=o.toDataURL("image/webp");break;default:u=o.toDataURL("image/png")}return t.staticMode&&t.container.removeChild(AE),u};D0.setConvert=function(){for(var e=this,t=0;t<3;t++){var r=e.fullSceneLayout[TE[t]];rR.setConvert(r,e.fullLayout),r.setScale=dd.noop}};D0.make4thDimension=function(){var e=this,t=e.graphDiv,r=t._fullLayout;e._mockAxis={type:"linear",showexponent:"all",exponentformat:"B"},rR.setConvert(e._mockAxis,r)};QOe.exports=JOe});var rNe=K((EJr,tNe)=>{"use strict";tNe.exports={scene:{valType:"subplotid",dflt:"scene",editType:"calc+clearAxisTypes"}}});var QJ=K((kJr,iNe)=>{"use strict";var Rnr=ko(),Ll=Lh(),JJ=Os().extendFlat,Bnr=Ef().overrideAll;iNe.exports=Bnr({visible:Ll.visible,showspikes:{valType:"boolean",dflt:!0},spikesides:{valType:"boolean",dflt:!0},spikethickness:{valType:"number",min:0,dflt:2},spikecolor:{valType:"color",dflt:Rnr.defaultLine},showbackground:{valType:"boolean",dflt:!1},backgroundcolor:{valType:"color",dflt:"rgba(204, 204, 204, 0.5)"},showaxeslabels:{valType:"boolean",dflt:!0},color:Ll.color,categoryorder:Ll.categoryorder,categoryarray:Ll.categoryarray,title:{text:Ll.title.text,font:Ll.title.font},type:JJ({},Ll.type,{values:["-","linear","log","date","category"]}),autotypenumbers:Ll.autotypenumbers,autorange:Ll.autorange,autorangeoptions:{minallowed:Ll.autorangeoptions.minallowed,maxallowed:Ll.autorangeoptions.maxallowed,clipmin:Ll.autorangeoptions.clipmin,clipmax:Ll.autorangeoptions.clipmax,include:Ll.autorangeoptions.include,editType:"plot"},rangemode:Ll.rangemode,minallowed:Ll.minallowed,maxallowed:Ll.maxallowed,range:JJ({},Ll.range,{items:[{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}}],anim:!1}),tickmode:Ll.minor.tickmode,nticks:Ll.nticks,tick0:Ll.tick0,dtick:Ll.dtick,tickvals:Ll.tickvals,ticktext:Ll.ticktext,ticks:Ll.ticks,mirror:Ll.mirror,ticklen:Ll.ticklen,tickwidth:Ll.tickwidth,tickcolor:Ll.tickcolor,showticklabels:Ll.showticklabels,labelalias:Ll.labelalias,tickfont:Ll.tickfont,tickangle:Ll.tickangle,tickprefix:Ll.tickprefix,showtickprefix:Ll.showtickprefix,ticksuffix:Ll.ticksuffix,showticksuffix:Ll.showticksuffix,showexponent:Ll.showexponent,exponentformat:Ll.exponentformat,minexponent:Ll.minexponent,separatethousands:Ll.separatethousands,tickformat:Ll.tickformat,tickformatstops:Ll.tickformatstops,hoverformat:Ll.hoverformat,showline:Ll.showline,linecolor:Ll.linecolor,linewidth:Ll.linewidth,showgrid:Ll.showgrid,gridcolor:JJ({},Ll.gridcolor,{dflt:"rgb(204, 204, 204)"}),gridwidth:Ll.gridwidth,zeroline:Ll.zeroline,zerolinecolor:Ll.zerolinecolor,zerolinewidth:Ll.zerolinewidth},"plot","from-root")});var iQ=K((CJr,nNe)=>{"use strict";var eQ=QJ(),qnr=kf().attributes,tQ=Os().extendFlat,Onr=Mt().counterRegex;function rQ(e,t,r){return{x:{valType:"number",dflt:e,editType:"camera"},y:{valType:"number",dflt:t,editType:"camera"},z:{valType:"number",dflt:r,editType:"camera"},editType:"camera"}}nNe.exports={_arrayAttrRegexps:[Onr("scene",".annotations",!0)],bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"plot"},camera:{up:tQ(rQ(0,0,1),{}),center:tQ(rQ(0,0,0),{}),eye:tQ(rQ(1.25,1.25,1.25),{}),projection:{type:{valType:"enumerated",values:["perspective","orthographic"],dflt:"perspective",editType:"calc"},editType:"calc"},editType:"camera"},domain:qnr({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:eQ,yaxis:eQ,zaxis:eQ,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"}});var lNe=K((DJr,sNe)=>{"use strict";var Nnr=ko(),aNe=Mt(),Vnr=fu(),Unr=QJ(),Gnr=GW(),Hnr=LM(),oNe=["xaxis","yaxis","zaxis"],jnr=13600/187;sNe.exports=function(t,r,i){var n,a;function o(u,f){return aNe.coerce(n,a,Unr,u,f)}for(var s=0;s{"use strict";var Wnr=Mt(),$nr=ko(),Ynr=Ho(),Xnr=Jb(),Znr=lNe(),uNe=iQ(),Knr=Xh().getSubplotData,fNe="gl3d";cNe.exports=function(t,r,i){var n=r._basePlotModules.length>1;function a(o){if(!n){var s=Wnr.validate(t[o],uNe[o]);if(s)return t[o]}}Xnr(t,r,i,{type:fNe,attributes:uNe,handleDefaults:Jnr,fullLayout:r,font:r.font,fullData:i,getDfltFromLayout:a,autotypenumbersDflt:r.autotypenumbers,paper_bgcolor:r.paper_bgcolor,calendar:r.calendar})};function Jnr(e,t,r,i){for(var n=r("bgcolor"),a=$nr.combine(n,i.paper_bgcolor),o=["up","center","eye"],s=0;s.999)&&(h="turntable")}else h="turntable";r("dragmode",h),r("hovermode",i.getDfltFromLayout("hovermode"))}});var I2=K(pd=>{"use strict";var Qnr=Ef().overrideAll,ear=gg(),tar=eNe(),rar=Xh().getSubplotData,iar=Mt(),nar=(zp(),ar(Pp)),O4="gl3d",nQ="scene";pd.name=O4;pd.attr=nQ;pd.idRoot=nQ;pd.idRegex=pd.attrRegex=iar.counterRegex("scene");pd.attributes=rNe();pd.layoutAttributes=iQ();pd.baseLayoutAttrOverrides=Qnr({hoverlabel:ear.hoverlabel},"plot","nested");pd.supplyLayoutDefaults=hNe();pd.plot=function(t){for(var r=t._fullLayout,i=t._fullData,n=r._subplots[O4],a=0;a{"use strict";dNe.exports={plot:AOe(),attributes:XJ(),markerSymbols:(KI(),ar(ZI)).default,supplyDefaults:DOe(),colorbar:[{container:"marker",min:"cmin",max:"cmax"},{container:"line",min:"cmin",max:"cmax"}],calc:LOe(),moduleType:"trace",name:"scatter3d",basePlotModule:I2(),categories:["gl3d","symbols","showLegend","scatter-like"],meta:{}}});var mNe=K((zJr,vNe)=>{"use strict";vNe.exports=pNe()});var ME=K((IJr,xNe)=>{"use strict";var yNe=ko(),aar=Wu(),aQ=zf().axisHoverFormat,{hovertemplateAttrs:oar,templatefallbackAttrs:sar}=yu(),gNe=Au(),oQ=Os().extendFlat,lar=Ef().overrideAll;function sQ(e){return{valType:"boolean",dflt:!1}}function lQ(e){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:sQ("x"),y:sQ("y"),z:sQ("z")},color:{valType:"color",dflt:yNe.defaultLine},usecolormap:{valType:"boolean",dflt:!1},width:{valType:"number",min:1,max:16,dflt:2},highlight:{valType:"boolean",dflt:!0},highlightcolor:{valType:"color",dflt:yNe.defaultLine},highlightwidth:{valType:"number",min:1,max:16,dflt:2}}}var uQ=xNe.exports=lar(oQ({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:oar(),hovertemplatefallback:sar(),xhoverformat:aQ("x"),yhoverformat:aQ("y"),zhoverformat:aQ("z"),connectgaps:{valType:"boolean",dflt:!1,editType:"calc"},surfacecolor:{valType:"data_array"}},aar("",{colorAttr:"z or surfacecolor",showScaleDflt:!0,autoColorDflt:!1,editTypeOverride:"calc"}),{contours:{x:lQ("x"),y:lQ("y"),z:lQ("z")},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,description:"Represents the level that incident rays are reflected in a single direction, causing shine."},roughness:{valType:"number",min:0,max:1,dflt:.5,description:"Alters specular reflection; the rougher the surface, the wider and less contrasty the shine."},fresnel:{valType:"number",min:0,max:5,dflt:.2}},opacity:{valType:"number",min:0,max:1,dflt:1},opacityscale:{valType:"any",editType:"calc"},hoverinfo:oQ({},gNe.hoverinfo),showlegend:oQ({},gNe.showlegend,{dflt:!1})}),"calc","nested");uQ.x.editType=uQ.y.editType=uQ.z.editType="calc+clearAxisTypes"});var cQ=K((RJr,wNe)=>{"use strict";var uar=Ho(),bNe=Mt(),far=gh(),car=ME(),fQ=.1;function har(e,t){for(var r=[],i=32,n=0;n{"use strict";var ANe=A0();TNe.exports=function(t,r){r.surfacecolor?ANe(t,r,{vals:r.surfacecolor,containerStr:"",cLetter:"c"}):ANe(t,r,{vals:r.z,containerStr:"",cLetter:"c"})}});var FNe=K((qJr,DNe)=>{"use strict";var mar=Rh().gl_surface3d,N4=Rh().ndarray,yar=Rh().ndarray_linear_interpolate.d2,gar=K8(),xar=J8(),SE=Mt().isArrayOrTypedArray,bar=Py().parseColorScale,SNe=Ly(),_ar=gf().extractOpts;function kNe(e,t,r){this.scene=e,this.uid=r,this.surface=t,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 y1=kNe.prototype;y1.getXat=function(e,t,r,i){var n=SE(this.data.x)?SE(this.data.x[0])?this.data.x[t][e]:this.data.x[e]:e;return r===void 0?n:i.d2l(n,0,r)};y1.getYat=function(e,t,r,i){var n=SE(this.data.y)?SE(this.data.y[0])?this.data.y[t][e]:this.data.y[t]:t;return r===void 0?n:i.d2l(n,0,r)};y1.getZat=function(e,t,r,i){var n=this.data.z[t][e];return n===null&&this.data.connectgaps&&this.data._interpolatedZ&&(n=this.data._interpolatedZ[t][e]),r===void 0?n:i.d2l(n,0,r)};y1.handlePick=function(e){if(e.object===this.surface){var t=(e.data.index[0]-1)/this.dataScaleX-1,r=(e.data.index[1]-1)/this.dataScaleY-1,i=Math.max(Math.min(Math.round(t),this.data.z[0].length-1),0),n=Math.max(Math.min(Math.round(r),this.data._ylength-1),0);e.index=[i,n],e.traceCoordinate=[this.getXat(i,n),this.getYat(i,n),this.getZat(i,n)],e.dataCoordinate=[this.getXat(i,n,this.data.xcalendar,this.scene.fullSceneLayout.xaxis),this.getYat(i,n,this.data.ycalendar,this.scene.fullSceneLayout.yaxis),this.getZat(i,n,this.data.zcalendar,this.scene.fullSceneLayout.zaxis)];for(var a=0;a<3;a++){var o=e.dataCoordinate[a];o!=null&&(e.dataCoordinate[a]*=this.scene.dataScale[a])}var s=this.data.hovertext||this.data.text;return SE(s)&&s[n]&&s[n][i]!==void 0?e.textLabel=s[n][i]:s?e.textLabel=s:e.textLabel="",e.data.dataCoordinate=e.dataCoordinate.slice(),this.surface.highlight(e.data),this.scene.glplot.spikes.position=e.dataCoordinate,!0}};function war(e){var t=e[0].rgb,r=e[e.length-1].rgb;return t[0]===r[0]&&t[1]===r[1]&&t[2]===r[2]&&t[3]===r[3]}var V4=[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 Aar(e,t){if(e0){r=V4[i];break}return r}function Mar(e,t){if(!(e<1||t<1)){for(var r=hQ(e),i=hQ(t),n=1,a=0;aiR;)i--,i/=Tar(i),i++,i1?n:1};function Ear(e,t,r){var i=r[8]+r[2]*t[0]+r[5]*t[1];return e[0]=(r[6]+r[0]*t[0]+r[3]*t[1])/i,e[1]=(r[7]+r[1]*t[0]+r[4]*t[1])/i,e}function kar(e,t,r){return Car(e,t,Ear,r),e}function Car(e,t,r,i){for(var n=[0,0],a=e.shape[0],o=e.shape[1],s=0;s0&&this.contourStart[i]!==null&&this.contourEnd[i]!==null&&this.contourEnd[i]>this.contourStart[i]))for(t[i]=!0,n=this.contourStart[i];nh&&(this.minValues[u]=h),this.maxValues[u]{"use strict";LNe.exports={attributes:ME(),supplyDefaults:cQ().supplyDefaults,colorbar:{min:"cmin",max:"cmax"},calc:MNe(),plot:FNe(),moduleType:"trace",name:"surface",basePlotModule:I2(),categories:["gl3d","2dMap","showLegend"],meta:{}}});var INe=K((NJr,zNe)=>{"use strict";zNe.exports=PNe()});var U4=K((VJr,BNe)=>{"use strict";var Lar=Wu(),dQ=zf().axisHoverFormat,{hovertemplateAttrs:Par,templatefallbackAttrs:zar}=yu(),R2=ME(),RNe=Au(),B2=Os().extendFlat;BNe.exports=B2({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:Par({editType:"calc"}),hovertemplatefallback:zar({editType:"calc"}),xhoverformat:dQ("x"),yhoverformat:dQ("y"),zhoverformat:dQ("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"}},Lar("",{colorAttr:"`intensity`",showScaleDflt:!0,editTypeOverride:"calc"}),{opacity:R2.opacity,flatshading:{valType:"boolean",dflt:!1,editType:"calc"},contour:{show:B2({},R2.contours.x.show,{}),color:R2.contours.x.color,width:R2.contours.x.width,editType:"calc"},lightposition:{x:B2({},R2.lightposition.x,{dflt:1e5}),y:B2({},R2.lightposition.y,{dflt:1e5}),z:B2({},R2.lightposition.z,{dflt:0}),editType:"calc"},lighting:B2({vertexnormalsepsilon:{valType:"number",min:0,max:1,dflt:1e-12,editType:"calc",description:"Epsilon for vertex normals calculation avoids math issues arising from degenerate geometry."},facenormalsepsilon:{valType:"number",min:0,max:1,dflt:1e-6,editType:"calc",description:"Epsilon for face normals calculation avoids math issues arising from degenerate geometry."},editType:"calc"},R2.lighting),hoverinfo:B2({},RNe.hoverinfo,{editType:"calc"}),showlegend:B2({},RNe.showlegend,{dflt:!1})})});var aR=K((UJr,ONe)=>{"use strict";var Iar=Wu(),nR=zf().axisHoverFormat,{hovertemplateAttrs:Rar,templatefallbackAttrs:Bar}=yu(),EE=U4(),qNe=Au(),pQ=Os().extendFlat,qar=Ef().overrideAll;function vQ(e){return{show:{valType:"boolean",dflt:!1},locations:{valType:"data_array",dflt:[]},fill:{valType:"number",min:0,max:1,dflt:1}}}function mQ(e){return{show:{valType:"boolean",dflt:!0},fill:{valType:"number",min:0,max:1,dflt:1}}}var G4=ONe.exports=qar(pQ({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:vQ("x"),y:vQ("y"),z:vQ("z")},caps:{x:mQ("x"),y:mQ("y"),z:mQ("z")},text:{valType:"string",dflt:"",arrayOk:!0},hovertext:{valType:"string",dflt:"",arrayOk:!0},hovertemplate:Rar(),hovertemplatefallback:Bar(),xhoverformat:nR("x"),yhoverformat:nR("y"),zhoverformat:nR("z"),valuehoverformat:nR("value",1),showlegend:pQ({},qNe.showlegend,{dflt:!1})},Iar("",{colorAttr:"`value`",showScaleDflt:!0,editTypeOverride:"calc"}),{opacity:EE.opacity,lightposition:EE.lightposition,lighting:EE.lighting,flatshading:EE.flatshading,contour:EE.contour,hoverinfo:pQ({},qNe.hoverinfo)}),"calc","nested");G4.flatshading.dflt=!0;G4.lighting.facenormalsepsilon.dflt=0;G4.x.editType=G4.y.editType=G4.z.editType=G4.value.editType="calc+clearAxisTypes"});var yQ=K((GJr,VNe)=>{"use strict";var Oar=Mt(),Nar=Ho(),Var=aR(),Uar=gh();function Gar(e,t,r,i){function n(a,o){return Oar.coerce(e,t,Var,a,o)}NNe(e,t,r,i,n)}function NNe(e,t,r,i,n){var a=n("isomin"),o=n("isomax");o!=null&&a!==void 0&&a!==null&&a>o&&(t.isomin=null,t.isomax=null);var s=n("x"),l=n("y"),u=n("z"),f=n("value");if(!s||!s.length||!l||!l.length||!u||!u.length||!f||!f.length){t.visible=!1;return}var c=Nar.getComponentMethod("calendars","handleTraceDefaults");c(e,t,["x","y","z"],i),n("valuehoverformat"),["x","y","z"].forEach(function(v){n(v+"hoverformat");var y="caps."+v,m=n(y+".show");m&&n(y+".fill");var w="slices."+v,_=n(w+".show");_&&(n(w+".fill"),n(w+".locations"))});var h=n("spaceframe.show");h&&n("spaceframe.fill");var d=n("surface.show");d&&(n("surface.count"),n("surface.fill"),n("surface.pattern"));var p=n("contour.show");p&&(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(v){n(v)}),Uar(e,t,i,n,{prefix:"",cLetter:"c"}),t._length=null}VNe.exports={supplyDefaults:Gar,supplyIsoDefaults:NNe}});var oR=K((HJr,GNe)=>{"use strict";var xQ=Mt(),Har=A0();function jar(e,t){t._len=Math.min(t.u.length,t.v.length,t.w.length,t.x.length,t.y.length,t.z.length),t._u=Am(t.u,t._len),t._v=Am(t.v,t._len),t._w=Am(t.w,t._len),t._x=Am(t.x,t._len),t._y=Am(t.y,t._len),t._z=Am(t.z,t._len);var r=UNe(t);t._gridFill=r.fill,t._Xs=r.Xs,t._Ys=r.Ys,t._Zs=r.Zs,t._len=r.len;var i=0,n,a,o;t.starts&&(n=Am(t.starts.x||[]),a=Am(t.starts.y||[]),o=Am(t.starts.z||[]),i=Math.min(n.length,a.length,o.length)),t._startsX=n||[],t._startsY=a||[],t._startsZ=o||[];var s=0,l=1/0,u;for(u=0;u1&&(_=t[n-1],M=r[n-1],A=i[n-1]),a=0;a_?"-":"+")+"x"),p=p.replace("y",(b>M?"-":"+")+"y"),p=p.replace("z",(x>A?"-":"+")+"z");var S=function(){n=0,T=[],g=[],E=[]};(!n||n{"use strict";var War=A0(),$ar=oR().processGrid,sR=oR().filter;HNe.exports=function(t,r){r._len=Math.min(r.x.length,r.y.length,r.z.length,r.value.length),r._x=sR(r.x,r._len),r._y=sR(r.y,r._len),r._z=sR(r.z,r._len),r._value=sR(r.value,r._len);var i=$ar(r);r._gridFill=i.fill,r._Xs=i.Xs,r._Ys=i.Ys,r._Zs=i.Zs,r._len=i.len;for(var n=1/0,a=-1/0,o=0;o{"use strict";jNe.exports=function(t,r,i,n){n=n||t.length;for(var a=new Array(n),o=0;o{"use strict";var Yar=Rh().gl_mesh3d,Xar=Py().parseColorScale,Zar=Mt().isArrayOrTypedArray,Kar=Ly(),Jar=gf().extractOpts,WNe=H4(),kE=function(e,t){for(var r=t.length-1;r>0;r--){var i=Math.min(t[r],t[r-1]),n=Math.max(t[r],t[r-1]);if(n>i&&i-1}function O(Ae,be){return Ae===null?be:Ae}function W(Ae,be,me){S();var ue=[be],pe=[me];if(I>=1)ue=[be],pe=[me];else if(I>0){var ce=z(be,me);ue=ce.xyzv,pe=ce.abc}for(var Be=0;Be-1?me[Ze]:E(it,nt,Ue);Re>-1?$e[Ze]=Re:$e[Ze]=k(it,nt,Ue,O(Ae,xe))}D($e[0],$e[1],$e[2])}}function X(Ae,be,me){var ue=function(pe,ce,Be){W(Ae,[be[pe],be[ce],be[Be]],[me[pe],me[ce],me[Be]])};ue(0,1,2),ue(2,3,0)}function Z(Ae,be,me){var ue=function(pe,ce,Be){W(Ae,[be[pe],be[ce],be[Be]],[me[pe],me[ce],me[Be]])};ue(0,1,2),ue(3,0,1),ue(2,3,0),ue(1,2,3)}function j(Ae,be,me,ue){var pe=Ae[3];peue&&(pe=ue);for(var ce=(Ae[3]-pe)/(Ae[3]-be[3]+1e-9),Be=[],$e=0;$e<4;$e++)Be[$e]=(1-ce)*Ae[$e]+ce*be[$e];return Be}function q(Ae,be,me){return Ae>=be&&Ae<=me}function Q(Ae){var be=.001*(M-b);return Ae>=b-be&&Ae<=M+be}function N(Ae){for(var be=[],me=0;me<4;me++){var ue=Ae[me];be.push([e._x[ue],e._y[ue],e._z[ue],e._value[ue]])}return be}var V=3;function J(Ae,be,me,ue,pe,ce){ce||(ce=1),me=[-1,-1,-1];var Be=!1,$e=[q(be[0][3],ue,pe),q(be[1][3],ue,pe),q(be[2][3],ue,pe)];if(!$e[0]&&!$e[1]&&!$e[2])return!1;var Ze=function(nt,Ue,xe){return Q(Ue[0][3])&&Q(Ue[1][3])&&Q(Ue[2][3])?(W(nt,Ue,xe),!0):ce$e?[w,ce]:[ce,_];we(be,Ze[0],Ze[1])}}var it=[[Math.min(b,_),Math.max(b,_)],[Math.min(w,M),Math.max(w,M)]];["x","y","z"].forEach(function(nt){for(var Ue=[],xe=0;xe0&&(Le.push(st.id),nt==="x"?Se.push([st.distRatio,0,0]):nt==="y"?Se.push([0,st.distRatio,0]):Se.push([0,0,st.distRatio]))}else nt==="x"?Ve=ye(1,d-1):nt==="y"?Ve=ye(1,p-1):Ve=ye(1,v-1);Le.length>0&&(nt==="x"?Ue[Re]=oe(Ae,Le,Qe,Pe,Se,Ue[Re]):nt==="y"?Ue[Re]=Y(Ae,Le,Qe,Pe,Se,Ue[Re]):Ue[Re]=ne(Ae,Le,Qe,Pe,Se,Ue[Re]),Re++),Ve.length>0&&(nt==="x"?Ue[Re]=Ie(Ae,Ve,Qe,Pe,Ue[Re]):nt==="y"?Ue[Re]=Ce(Ae,Ve,Qe,Pe,Ue[Re]):Ue[Re]=le(Ae,Ve,Qe,Pe,Ue[Re]),Re++)}var ft=e.caps[nt];ft.show&&ft.fill&&(F(ft.fill),nt==="x"?Ue[Re]=Ie(Ae,[0,d-1],Qe,Pe,Ue[Re]):nt==="y"?Ue[Re]=Ce(Ae,[0,p-1],Qe,Pe,Ue[Re]):Ue[Re]=le(Ae,[0,v-1],Qe,Pe,Ue[Re]),Re++)}}),s===0&&C(),e._meshX=x,e._meshY=A,e._meshZ=T,e._meshIntensity=g,e._Xs=f,e._Ys=c,e._Zs=h}return se(),e}function eor(e,t){var r=e.glplot.gl,i=Yar({gl:r}),n=new $Ne(e,i,t.uid);return i._trace=n,n.update(t),e.glplot.add(i),n}XNe.exports={findNearestOnAxis:kE,generateIsoMeshes:YNe,createIsosurfaceTrace:eor}});var KNe=K((YJr,ZNe)=>{"use strict";ZNe.exports={attributes:aR(),supplyDefaults:yQ().supplyDefaults,calc:bQ(),colorbar:{min:"cmin",max:"cmax"},plot:lR().createIsosurfaceTrace,moduleType:"trace",name:"isosurface",basePlotModule:I2(),categories:["gl3d","showLegend"],meta:{}}});var QNe=K((XJr,JNe)=>{"use strict";JNe.exports=KNe()});var AQ=K((ZJr,tVe)=>{"use strict";var tor=Wu(),Lc=aR(),ror=ME(),eVe=Au(),wQ=Os().extendFlat,ior=Ef().overrideAll,uR=tVe.exports=ior(wQ({x:Lc.x,y:Lc.y,z:Lc.z,value:Lc.value,isomin:Lc.isomin,isomax:Lc.isomax,surface:Lc.surface,spaceframe:{show:{valType:"boolean",dflt:!1},fill:{valType:"number",min:0,max:1,dflt:1}},slices:Lc.slices,caps:Lc.caps,text:Lc.text,hovertext:Lc.hovertext,xhoverformat:Lc.xhoverformat,yhoverformat:Lc.yhoverformat,zhoverformat:Lc.zhoverformat,valuehoverformat:Lc.valuehoverformat,hovertemplate:Lc.hovertemplate,hovertemplatefallback:Lc.hovertemplatefallback},tor("",{colorAttr:"`value`",showScaleDflt:!0,editTypeOverride:"calc"}),{colorbar:Lc.colorbar,opacity:Lc.opacity,opacityscale:ror.opacityscale,lightposition:Lc.lightposition,lighting:Lc.lighting,flatshading:Lc.flatshading,contour:Lc.contour,hoverinfo:wQ({},eVe.hoverinfo),showlegend:wQ({},eVe.showlegend,{dflt:!1})}),"calc","nested");uR.x.editType=uR.y.editType=uR.z.editType=uR.value.editType="calc+clearAxisTypes"});var iVe=K((KJr,rVe)=>{"use strict";var nor=Mt(),aor=AQ(),oor=yQ().supplyIsoDefaults,sor=cQ().opacityscaleDefaults;rVe.exports=function(t,r,i,n){function a(o,s){return nor.coerce(t,r,aor,o,s)}oor(t,r,i,n,a),sor(t,r,n,a)}});var sVe=K((JJr,oVe)=>{"use strict";var lor=Rh().gl_mesh3d,uor=Py().parseColorScale,cor=Mt().isArrayOrTypedArray,hor=Ly(),dor=gf().extractOpts,nVe=H4(),TQ=lR().findNearestOnAxis,por=lR().generateIsoMeshes;function aVe(e,t,r){this.scene=e,this.uid=r,this.mesh=t,this.name="",this.data=null,this.showContour=!1}var MQ=aVe.prototype;MQ.handlePick=function(e){if(e.object===this.mesh){var t=e.data.index,r=this.data._meshX[t],i=this.data._meshY[t],n=this.data._meshZ[t],a=this.data._Ys.length,o=this.data._Zs.length,s=TQ(r,this.data._Xs).id,l=TQ(i,this.data._Ys).id,u=TQ(n,this.data._Zs).id,f=e.index=u+o*l+o*a*s;e.traceCoordinate=[this.data._meshX[f],this.data._meshY[f],this.data._meshZ[f],this.data._value[f]];var c=this.data.hovertext||this.data.text;return cor(c)&&c[f]!==void 0?e.textLabel=c[f]:c&&(e.textLabel=c),!0}};MQ.update=function(e){var t=this.scene,r=t.fullSceneLayout;this.data=por(e);function i(l,u,f,c){return u.map(function(h){return l.d2l(h,0,c)*f})}var n=nVe(i(r.xaxis,e._meshX,t.dataScale[0],e.xcalendar),i(r.yaxis,e._meshY,t.dataScale[1],e.ycalendar),i(r.zaxis,e._meshZ,t.dataScale[2],e.zcalendar)),a=nVe(e._meshI,e._meshJ,e._meshK),o={positions:n,cells:a,lightPosition:[e.lightposition.x,e.lightposition.y,e.lightposition.z],ambient:e.lighting.ambient,diffuse:e.lighting.diffuse,specular:e.lighting.specular,roughness:e.lighting.roughness,fresnel:e.lighting.fresnel,vertexNormalsEpsilon:e.lighting.vertexnormalsepsilon,faceNormalsEpsilon:e.lighting.facenormalsepsilon,opacity:e.opacity,opacityscale:e.opacityscale,contourEnable:e.contour.show,contourColor:hor(e.contour.color).slice(0,3),contourWidth:e.contour.width,useFacetNormals:e.flatshading},s=dor(e);o.vertexIntensity=e._meshIntensity,o.vertexIntensityBounds=[s.min,s.max],o.colormap=uor(e),this.mesh.update(o)};MQ.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()};function vor(e,t){var r=e.glplot.gl,i=lor({gl:r}),n=new aVe(e,i,t.uid);return i._trace=n,n.update(t),e.glplot.add(i),n}oVe.exports=vor});var uVe=K((QJr,lVe)=>{"use strict";lVe.exports={attributes:AQ(),supplyDefaults:iVe(),calc:bQ(),colorbar:{min:"cmin",max:"cmax"},plot:sVe(),moduleType:"trace",name:"volume",basePlotModule:I2(),categories:["gl3d","showLegend"],meta:{}}});var cVe=K((eQr,fVe)=>{"use strict";fVe.exports=uVe()});var pVe=K((tQr,dVe)=>{"use strict";var mor=Ho(),hVe=Mt(),yor=gh(),gor=U4();dVe.exports=function(t,r,i,n){function a(f,c){return hVe.coerce(t,r,gor,f,c)}function o(f){var c=f.map(function(h){var d=a(h);return d&&hVe.isArrayOrTypedArray(d)?d:null});return c.every(function(h){return h&&h.length===c[0].length})&&c}var s=o(["x","y","z"]);if(!s){r.visible=!1;return}if(o(["i","j","k"]),r.i&&(!r.j||!r.k)||r.j&&(!r.k||!r.i)||r.k&&(!r.i||!r.j)){r.visible=!1;return}var l=mor.getComponentMethod("calendars","handleTraceDefaults");l(t,r,["x","y","z"],n),["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(f){a(f)});var u=a("contour.show");u&&(a("contour.color"),a("contour.width")),"intensity"in t?(a("intensity"),a("intensitymode"),yor(t,r,n,a,{prefix:"",cLetter:"c"})):(r.showscale=!1,"facecolor"in t?a("facecolor"):"vertexcolor"in t?a("vertexcolor"):a("color",i)),a("text"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback"),a("xhoverformat"),a("yhoverformat"),a("zhoverformat"),r._length=null}});var mVe=K((rQr,vVe)=>{"use strict";var xor=A0();vVe.exports=function(t,r){r.intensity&&xor(t,r,{vals:r.intensity,containerStr:"",cLetter:"c"})}});var _Ve=K((iQr,bVe)=>{"use strict";var bor=Rh().gl_mesh3d,_or=Rh().delaunay_triangulate,wor=Rh().alpha_shape,Aor=Rh().convex_hull,Tor=Py().parseColorScale,Mor=Mt().isArrayOrTypedArray,CQ=Ly(),Sor=gf().extractOpts,yVe=H4();function xVe(e,t,r){this.scene=e,this.uid=r,this.mesh=t,this.name="",this.color="#fff",this.data=null,this.showContour=!1}var DQ=xVe.prototype;DQ.handlePick=function(e){if(e.object===this.mesh){var t=e.index=e.data.index;e.data._cellCenter?e.traceCoordinate=e.data.dataCoordinate:e.traceCoordinate=[this.data.x[t],this.data.y[t],this.data.z[t]];var r=this.data.hovertext||this.data.text;return Mor(r)&&r[t]!==void 0?e.textLabel=r[t]:r&&(e.textLabel=r),!0}};function gVe(e){for(var t=[],r=e.length,i=0;i=t-.5)return!1;return!0}DQ.update=function(e){var t=this.scene,r=t.fullSceneLayout;this.data=e;var i=e.x.length,n=yVe(SQ(r.xaxis,e.x,t.dataScale[0],e.xcalendar),SQ(r.yaxis,e.y,t.dataScale[1],e.ycalendar),SQ(r.zaxis,e.z,t.dataScale[2],e.zcalendar)),a;if(e.i&&e.j&&e.k){if(e.i.length!==e.j.length||e.j.length!==e.k.length||!kQ(e.i,i)||!kQ(e.j,i)||!kQ(e.k,i))return;a=yVe(EQ(e.i),EQ(e.j),EQ(e.k))}else e.alphahull===0?a=Aor(n):e.alphahull>0?a=wor(e.alphahull,n):a=Eor(e.delaunayaxis,n);var o={positions:n,cells:a,lightPosition:[e.lightposition.x,e.lightposition.y,e.lightposition.z],ambient:e.lighting.ambient,diffuse:e.lighting.diffuse,specular:e.lighting.specular,roughness:e.lighting.roughness,fresnel:e.lighting.fresnel,vertexNormalsEpsilon:e.lighting.vertexnormalsepsilon,faceNormalsEpsilon:e.lighting.facenormalsepsilon,opacity:e.opacity,contourEnable:e.contour.show,contourColor:CQ(e.contour.color).slice(0,3),contourWidth:e.contour.width,useFacetNormals:e.flatshading};if(e.intensity){var s=Sor(e);this.color="#fff";var l=e.intensitymode;o[l+"Intensity"]=e.intensity,o[l+"IntensityBounds"]=[s.min,s.max],o.colormap=Tor(e)}else e.vertexcolor?(this.color=e.vertexcolor[0],o.vertexColors=gVe(e.vertexcolor)):e.facecolor?(this.color=e.facecolor[0],o.cellColors=gVe(e.facecolor)):(this.color=e.color,o.meshColor=CQ(e.color));this.mesh.update(o)};DQ.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()};function kor(e,t){var r=e.glplot.gl,i=bor({gl:r}),n=new xVe(e,i,t.uid);return i._trace=n,n.update(t),e.glplot.add(i),n}bVe.exports=kor});var AVe=K((nQr,wVe)=>{"use strict";wVe.exports={attributes:U4(),supplyDefaults:pVe(),calc:mVe(),colorbar:{min:"cmin",max:"cmax"},plot:_Ve(),moduleType:"trace",name:"mesh3d",basePlotModule:I2(),categories:["gl3d","showLegend"],meta:{}}});var MVe=K((aQr,TVe)=>{"use strict";TVe.exports=AVe()});var LQ=K((oQr,EVe)=>{"use strict";var Cor=Wu(),j4=zf().axisHoverFormat,{hovertemplateAttrs:Dor,templatefallbackAttrs:For}=yu(),Lor=U4(),SVe=Au(),FQ=Os().extendFlat,fR={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","raw"],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:Dor({editType:"calc"},{keys:["norm"]}),hovertemplatefallback:For({editType:"calc"}),uhoverformat:j4("u",1),vhoverformat:j4("v",1),whoverformat:j4("w",1),xhoverformat:j4("x"),yhoverformat:j4("y"),zhoverformat:j4("z"),showlegend:FQ({},SVe.showlegend,{dflt:!1})};FQ(fR,Cor("",{colorAttr:"u/v/w norm",showScaleDflt:!0,editTypeOverride:"calc"}));var Por=["opacity","lightposition","lighting"];Por.forEach(function(e){fR[e]=Lor[e]});fR.hoverinfo=FQ({},SVe.hoverinfo,{editType:"calc",flags:["x","y","z","u","v","w","norm","text","name"],dflt:"x+y+z+norm+text+name"});EVe.exports=fR});var CVe=K((sQr,kVe)=>{"use strict";var zor=Mt(),Ior=gh(),Ror=LQ();kVe.exports=function(t,r,i,n){function a(d,p){return zor.coerce(t,r,Ror,d,p)}var o=a("u"),s=a("v"),l=a("w"),u=a("x"),f=a("y"),c=a("z");if(!o||!o.length||!s||!s.length||!l||!l.length||!u||!u.length||!f||!f.length||!c||!c.length){r.visible=!1;return}var h=a("sizemode");a("sizeref",h==="raw"?1:.5),a("anchor"),a("lighting.ambient"),a("lighting.diffuse"),a("lighting.specular"),a("lighting.roughness"),a("lighting.fresnel"),a("lightposition.x"),a("lightposition.y"),a("lightposition.z"),Ior(t,r,n,a,{prefix:"",cLetter:"c"}),a("text"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback"),a("uhoverformat"),a("vhoverformat"),a("whoverformat"),a("xhoverformat"),a("yhoverformat"),a("zhoverformat"),r._length=null}});var FVe=K((lQr,DVe)=>{"use strict";var Bor=A0();DVe.exports=function(t,r){for(var i=r.u,n=r.v,a=r.w,o=Math.min(r.x.length,r.y.length,r.z.length,i.length,n.length,a.length),s=-1/0,l=1/0,u=0;u{"use strict";var qor=Rh().gl_cone3d,Oor=Rh().gl_cone3d.createConeMesh,Nor=Mt().simpleMap,Vor=Py().parseColorScale,Uor=gf().extractOpts,Gor=Mt().isArrayOrTypedArray,LVe=H4();function PVe(e,t){this.scene=e,this.uid=t,this.mesh=null,this.data=null}var PQ=PVe.prototype;PQ.handlePick=function(e){if(e.object===this.mesh){var t=e.index=e.data.index,r=this.data.x[t],i=this.data.y[t],n=this.data.z[t],a=this.data.u[t],o=this.data.v[t],s=this.data.w[t];e.traceCoordinate=[r,i,n,a,o,s,Math.sqrt(a*a+o*o+s*s)];var l=this.data.hovertext||this.data.text;return Gor(l)&&l[t]!==void 0?e.textLabel=l[t]:l&&(e.textLabel=l),!0}};var Hor={xaxis:0,yaxis:1,zaxis:2},jor={tip:1,tail:0,cm:.25,center:.5},Wor={tip:1,tail:1,cm:.75,center:.5};function zVe(e,t){var r=e.fullSceneLayout,i=e.dataScale,n={};function a(f,c){var h=r[c],d=i[Hor[c]];return Nor(f,function(p){return h.d2l(p)*d})}n.vectors=LVe(a(t.u,"xaxis"),a(t.v,"yaxis"),a(t.w,"zaxis"),t._len),n.positions=LVe(a(t.x,"xaxis"),a(t.y,"yaxis"),a(t.z,"zaxis"),t._len);var o=Uor(t);n.colormap=Vor(t),n.vertexIntensityBounds=[o.min/t._normMax,o.max/t._normMax],n.coneOffset=jor[t.anchor];var s=t.sizemode;s==="scaled"?n.coneSize=t.sizeref||.5:s==="absolute"?n.coneSize=t.sizeref&&t._normMax?t.sizeref/t._normMax:.5:s==="raw"&&(n.coneSize=t.sizeref),n.coneSizemode=s;var l=qor(n),u=t.lightposition;return l.lightPosition=[u.x,u.y,u.z],l.ambient=t.lighting.ambient,l.diffuse=t.lighting.diffuse,l.specular=t.lighting.specular,l.roughness=t.lighting.roughness,l.fresnel=t.lighting.fresnel,l.opacity=t.opacity,t._pad=Wor[t.anchor]*l.vectorScale*l.coneScale*t._normMax,l}PQ.update=function(e){this.data=e;var t=zVe(this.scene,e);this.mesh.update(t)};PQ.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()};function $or(e,t){var r=e.glplot.gl,i=zVe(e,t),n=Oor(r,i),a=new PVe(e,t.uid);return a.mesh=n,a.data=t,n._trace=a,e.glplot.add(n),a}IVe.exports=$or});var qVe=K((fQr,BVe)=>{"use strict";BVe.exports={moduleType:"trace",name:"cone",basePlotModule:I2(),categories:["gl3d","showLegend"],attributes:LQ(),supplyDefaults:CVe(),colorbar:{min:"cmin",max:"cmax"},calc:FVe(),plot:RVe(),eventData:function(e,t){return e.norm=t.traceCoordinate[6],e},meta:{}}});var NVe=K((cQr,OVe)=>{"use strict";OVe.exports=qVe()});var IQ=K((hQr,UVe)=>{"use strict";var Yor=Wu(),W4=zf().axisHoverFormat,{hovertemplateAttrs:Xor,templatefallbackAttrs:Zor}=yu(),Kor=U4(),VVe=Au(),zQ=Os().extendFlat,cR={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"},starts:{x:{valType:"data_array",editType:"calc"},y:{valType:"data_array",editType:"calc"},z:{valType:"data_array",editType:"calc"},editType:"calc"},maxdisplayed:{valType:"integer",min:0,dflt:1e3,editType:"calc"},sizeref:{valType:"number",editType:"calc",min:0,dflt:1},text:{valType:"string",dflt:"",editType:"calc"},hovertext:{valType:"string",dflt:"",editType:"calc"},hovertemplate:Xor({editType:"calc"},{keys:["tubex","tubey","tubez","tubeu","tubev","tubew","norm","divergence"]}),hovertemplatefallback:Zor({editType:"calc"}),uhoverformat:W4("u",1),vhoverformat:W4("v",1),whoverformat:W4("w",1),xhoverformat:W4("x"),yhoverformat:W4("y"),zhoverformat:W4("z"),showlegend:zQ({},VVe.showlegend,{dflt:!1})};zQ(cR,Yor("",{colorAttr:"u/v/w norm",showScaleDflt:!0,editTypeOverride:"calc"}));var Jor=["opacity","lightposition","lighting"];Jor.forEach(function(e){cR[e]=Kor[e]});cR.hoverinfo=zQ({},VVe.hoverinfo,{editType:"calc",flags:["x","y","z","u","v","w","norm","divergence","text","name"],dflt:"x+y+z+norm+text+name"});UVe.exports=cR});var HVe=K((dQr,GVe)=>{"use strict";var Qor=Mt(),esr=gh(),tsr=IQ();GVe.exports=function(t,r,i,n){function a(h,d){return Qor.coerce(t,r,tsr,h,d)}var o=a("u"),s=a("v"),l=a("w"),u=a("x"),f=a("y"),c=a("z");if(!o||!o.length||!s||!s.length||!l||!l.length||!u||!u.length||!f||!f.length||!c||!c.length){r.visible=!1;return}a("starts.x"),a("starts.y"),a("starts.z"),a("maxdisplayed"),a("sizeref"),a("lighting.ambient"),a("lighting.diffuse"),a("lighting.specular"),a("lighting.roughness"),a("lighting.fresnel"),a("lightposition.x"),a("lightposition.y"),a("lightposition.z"),esr(t,r,n,a,{prefix:"",cLetter:"c"}),a("text"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback"),a("uhoverformat"),a("vhoverformat"),a("whoverformat"),a("xhoverformat"),a("yhoverformat"),a("zhoverformat"),r._length=null}});var JVe=K((pQr,KVe)=>{"use strict";var $Ve=Rh().gl_streamtube3d,rsr=$Ve.createTubeMesh,isr=Mt(),nsr=Py().parseColorScale,asr=gf().extractOpts,jVe=H4(),YVe={xaxis:0,yaxis:1,zaxis:2};function XVe(e,t){this.scene=e,this.uid=t,this.mesh=null,this.data=null}var BQ=XVe.prototype;BQ.handlePick=function(e){var t=this.scene.fullSceneLayout,r=this.scene.dataScale;function i(o,s){var l=t[s],u=r[YVe[s]];return l.l2c(o)/u}if(e.object===this.mesh){var n=e.data.position,a=e.data.velocity;return e.traceCoordinate=[i(n[0],"xaxis"),i(n[1],"yaxis"),i(n[2],"zaxis"),i(a[0],"xaxis"),i(a[1],"yaxis"),i(a[2],"zaxis"),e.data.intensity*this.data._normMax,e.data.divergence],e.textLabel=this.data.hovertext||this.data.text,!0}};function WVe(e){var t=e.length,r;return t>2?r=e.slice(1,t-1):t===2?r=[(e[0]+e[1])/2]:r=e,r}function RQ(e){var t=e.length;return t===1?[.5,.5]:[e[1]-e[0],e[t-1]-e[t-2]]}function ZVe(e,t){var r=e.fullSceneLayout,i=e.dataScale,n=t._len,a={};function o(C,k){var D=r[k],L=i[YVe[k]];return isr.simpleMap(C,function(P){return D.d2l(P)*L})}if(a.vectors=jVe(o(t._u,"xaxis"),o(t._v,"yaxis"),o(t._w,"zaxis"),n),!n)return{positions:[],cells:[]};var s=o(t._Xs,"xaxis"),l=o(t._Ys,"yaxis"),u=o(t._Zs,"zaxis");a.meshgrid=[s,l,u],a.gridFill=t._gridFill;var f=t._slen;if(f)a.startingPositions=jVe(o(t._startsX,"xaxis"),o(t._startsY,"yaxis"),o(t._startsZ,"zaxis"));else{for(var c=l[0],h=WVe(s),d=WVe(u),p=new Array(h.length*d.length),v=0,y=0;y{"use strict";QVe.exports={moduleType:"trace",name:"streamtube",basePlotModule:I2(),categories:["gl3d","showLegend"],attributes:IQ(),supplyDefaults:HVe(),colorbar:{min:"cmin",max:"cmax"},calc:oR().calc,plot:JVe(),eventData:function(e,t){return e.tubex=e.x,e.tubey=e.y,e.tubez=e.z,e.tubeu=t.traceCoordinate[3],e.tubev=t.traceCoordinate[4],e.tubew=t.traceCoordinate[5],e.norm=t.traceCoordinate[6],e.divergence=t.traceCoordinate[7],delete e.x,delete e.y,delete e.z,e},meta:{}}});var rUe=K((mQr,tUe)=>{"use strict";tUe.exports=eUe()});var $4=K((yQr,sUe)=>{"use strict";var{hovertemplateAttrs:ssr,texttemplateAttrs:lsr,templatefallbackAttrs:iUe}=yu(),usr=im(),Tm=Zf(),fsr=Au(),nUe=Wu(),csr=yh().dash,B_=Os().extendFlat,hsr=Ef().overrideAll,pv=Tm.marker,aUe=Tm.line,oUe=pv.line;sUe.exports=hsr({lon:{valType:"data_array"},lat:{valType:"data_array"},locations:{valType:"data_array"},locationmode:{valType:"enumerated",values:["ISO-3","USA-states","country names","geojson-id"],dflt:"ISO-3"},geojson:{valType:"any",editType:"calc"},featureidkey:{valType:"string",editType:"calc",dflt:"id"},mode:B_({},Tm.mode,{dflt:"markers"}),text:B_({},Tm.text,{}),texttemplate:lsr({editType:"plot"},{keys:["lat","lon","location","text"]}),texttemplatefallback:iUe({editType:"plot"}),hovertext:B_({},Tm.hovertext,{}),textfont:Tm.textfont,textposition:Tm.textposition,line:{color:aUe.color,width:aUe.width,dash:csr},connectgaps:Tm.connectgaps,marker:B_({symbol:pv.symbol,opacity:pv.opacity,angle:pv.angle,angleref:B_({},pv.angleref,{values:["previous","up","north"]}),standoff:pv.standoff,size:pv.size,sizeref:pv.sizeref,sizemin:pv.sizemin,sizemode:pv.sizemode,colorbar:pv.colorbar,line:B_({width:oUe.width,dash:oUe.dash},nUe("marker.line")),gradient:pv.gradient},nUe("marker")),fill:{valType:"enumerated",values:["none","toself"],dflt:"none"},fillcolor:usr(),selected:Tm.selected,unselected:Tm.unselected,hoverinfo:B_({},fsr.hoverinfo,{flags:["lon","lat","location","text","name"]}),hovertemplate:ssr(),hovertemplatefallback:iUe()},"calc","nested")});var uUe=K((gQr,lUe)=>{"use strict";var qQ=Mt(),OQ=ff(),dsr=Yp(),psr=Zv(),vsr=Kv(),msr=am(),ysr=$4();lUe.exports=function(t,r,i,n){function a(d,p){return qQ.coerce(t,r,ysr,d,p)}var o=a("locations"),s;if(o&&o.length){var l=a("geojson"),u;(typeof l=="string"&&l!==""||qQ.isPlainObject(l))&&(u="geojson-id");var f=a("locationmode",u);f==="geojson-id"&&a("featureidkey"),s=o.length}else{var c=a("lon")||[],h=a("lat")||[];s=Math.min(c.length,h.length)}if(!s){r.visible=!1;return}r._length=s,a("text"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback"),a("mode"),OQ.hasMarkers(r)&&dsr(t,r,i,n,a,{gradient:!0}),OQ.hasLines(r)&&(psr(t,r,i,n,a),a("connectgaps")),OQ.hasText(r)&&(a("texttemplate"),a("texttemplatefallback"),vsr(t,r,n,a)),a("fill"),r.fill!=="none"&&msr(t,r,i,a),qQ.coerceSelectionMarkerOpacity(r,a)}});var hUe=K((xQr,cUe)=>{"use strict";var fUe=Cs();cUe.exports=function(t,r,i){var n={},a=i[r.geo]._subplot,o=a.mockAxis,s=t.lonlat;return n.lonLabel=fUe.tickText(o,o.c2l(s[0]),!0).text,n.latLabel=fUe.tickText(o,o.c2l(s[1]),!0).text,n}});var VQ=K((bQr,mUe)=>{"use strict";var NQ=Gs(),dUe=(Il(),ar(Bl)).BADNUM,gsr=Xp(),xsr=om(),bsr=np(),_sr=Mt().isArrayOrTypedArray,pUe=Mt()._;function vUe(e){return e&&typeof e=="string"}mUe.exports=function(t,r){var i=_sr(r.locations),n=i?r.locations.length:r._length,a=new Array(n),o;r.geojson?o=function(h){return vUe(h)||NQ(h)}:o=vUe;for(var s=0;sAsr,clipPad:()=>ksr,fillLayers:()=>zsr,fitboundsIncompatible:()=>Ssr,landColor:()=>Dsr,lataxisSpan:()=>Msr,layerNameToAdjective:()=>qsr,layers:()=>Rsr,layersForChoropleth:()=>Bsr,lineLayers:()=>Isr,locationmodeToLayer:()=>Lsr,lonaxisSpan:()=>Tsr,precision:()=>Csr,projNames:()=>wsr,scopeDefaults:()=>Esr,sphereSVG:()=>Psr,waterColor:()=>Fsr});var wsr,Asr,Tsr,Msr,Ssr,Esr,ksr,Csr,Dsr,Fsr,Lsr,Psr,zsr,Isr,Rsr,Bsr,qsr,DE=ps(()=>{"use strict";wsr={airy:"airy",aitoff:"aitoff","albers usa":"albersUsa",albers:"albers",august:"august","azimuthal equal area":"azimuthalEqualArea","azimuthal equidistant":"azimuthalEquidistant",baker:"baker",bertin1953:"bertin1953",boggs:"boggs",bonne:"bonne",bottomley:"bottomley",bromley:"bromley",collignon:"collignon","conic conformal":"conicConformal","conic equal area":"conicEqualArea","conic equidistant":"conicEquidistant",craig:"craig",craster:"craster","cylindrical equal area":"cylindricalEqualArea","cylindrical stereographic":"cylindricalStereographic",eckert1:"eckert1",eckert2:"eckert2",eckert3:"eckert3",eckert4:"eckert4",eckert5:"eckert5",eckert6:"eckert6",eisenlohr:"eisenlohr","equal earth":"equalEarth",equirectangular:"equirectangular",fahey:"fahey","foucaut sinusoidal":"foucautSinusoidal",foucaut:"foucaut",ginzburg4:"ginzburg4",ginzburg5:"ginzburg5",ginzburg6:"ginzburg6",ginzburg8:"ginzburg8",ginzburg9:"ginzburg9",gnomonic:"gnomonic","gringorten quincuncial":"gringortenQuincuncial",gringorten:"gringorten",guyou:"guyou",hammer:"hammer",hill:"hill",homolosine:"homolosine",hufnagel:"hufnagel",hyperelliptical:"hyperelliptical",kavrayskiy7:"kavrayskiy7",lagrange:"lagrange",larrivee:"larrivee",laskowski:"laskowski",loximuthal:"loximuthal",mercator:"mercator",miller:"miller",mollweide:"mollweide","mt flat polar parabolic":"mtFlatPolarParabolic","mt flat polar quartic":"mtFlatPolarQuartic","mt flat polar sinusoidal":"mtFlatPolarSinusoidal","natural earth":"naturalEarth","natural earth1":"naturalEarth1","natural earth2":"naturalEarth2","nell hammer":"nellHammer",nicolosi:"nicolosi",orthographic:"orthographic",patterson:"patterson","peirce quincuncial":"peirceQuincuncial",polyconic:"polyconic","rectangular polyconic":"rectangularPolyconic",robinson:"robinson",satellite:"satellite","sinu mollweide":"sinuMollweide",sinusoidal:"sinusoidal",stereographic:"stereographic",times:"times","transverse mercator":"transverseMercator","van der grinten":"vanDerGrinten","van der grinten2":"vanDerGrinten2","van der grinten3":"vanDerGrinten3","van der grinten4":"vanDerGrinten4",wagner4:"wagner4",wagner6:"wagner6",wiechel:"wiechel","winkel tripel":"winkel3",winkel3:"winkel3"},Asr=["lonaxis","lataxis"],Tsr={orthographic:180,"azimuthal equal area":360,"azimuthal equidistant":360,"conic conformal":180,gnomonic:160,stereographic:180,"transverse mercator":180,"*":360},Msr={"conic conformal":150,stereographic:179.5,"*":180},Ssr=new Set(["albers usa","craig","peirce quincuncial","satellite"]),Esr={world:{lonaxisRange:[-180,180],lataxisRange:[-90,90],projType:"equirectangular",projRotate:[0,0,0]},usa:{lonaxisRange:[-180,-50],lataxisRange:[15,80],projType:"albers usa"},europe:{lonaxisRange:[-30,60],lataxisRange:[30,85],projType:"conic conformal",projRotate:[15,0,0],projParallels:[0,60]},asia:{lonaxisRange:[22,160],lataxisRange:[-15,55],projType:"mercator",projRotate:[0,0,0]},africa:{lonaxisRange:[-30,60],lataxisRange:[-40,40],projType:"mercator",projRotate:[0,0,0]},"north america":{lonaxisRange:[-180,-45],lataxisRange:[5,85],projType:"conic conformal",projRotate:[-100,0,0],projParallels:[29.5,45.5]},"south america":{lonaxisRange:[-100,-30],lataxisRange:[-60,15],projType:"mercator",projRotate:[0,0,0]},antarctica:{lonaxisRange:[-180,180],lataxisRange:[-90,-60],projType:"equirectangular",projRotate:[0,0,0]},oceania:{lonaxisRange:[-180,180],lataxisRange:[-50,25],projType:"equirectangular",projRotate:[0,0,0]}},ksr=.001,Csr=.1,Dsr="#F0DC82",Fsr="#3399FF",Lsr={"ISO-3":"countries","USA-states":"subunits","country names":"countries"},Psr={type:"Sphere"},zsr={ocean:1,land:1,lakes:1},Isr={subunits:1,countries:1,coastlines:1,rivers:1,frame:1},Rsr=["bg","ocean","land","lakes","subunits","countries","coastlines","rivers","lataxis","lonaxis","frame","backplot","frontplot"],Bsr=["bg","ocean","land","subunits","countries","coastlines","lataxis","lonaxis","frame","backplot","lakes","rivers","frontplot"],qsr={ocean:"ocean",land:"land",lakes:"lake",subunits:"subunit",countries:"country",coastlines:"coastline",rivers:"river",frame:"frame"}});var UQ=K((hR,yUe)=>{(function(e,t){typeof hR=="object"&&typeof yUe!="undefined"?t(hR):(e=e||self,t(e.topojson=e.topojson||{}))})(hR,function(e){"use strict";function t(_){return _}function r(_){if(_==null)return t;var b,M,x=_.scale[0],A=_.scale[1],T=_.translate[0],g=_.translate[1];return function(E,S){S||(b=M=0);var C=2,k=E.length,D=new Array(k);for(D[0]=(b+=E[0])*x+T,D[1]=(M+=E[1])*A+g;CT&&(T=C[0]),C[1]g&&(g=C[1])}function S(C){switch(C.type){case"GeometryCollection":C.geometries.forEach(S);break;case"Point":E(C.coordinates);break;case"MultiPoint":C.coordinates.forEach(E);break}}_.arcs.forEach(function(C){for(var k=-1,D=C.length,L;++kT&&(T=L[0]),L[1]g&&(g=L[1])});for(M in _.objects)S(_.objects[M]);return[x,A,T,g]}function n(_,b){for(var M,x=_.length,A=x-b;A<--x;)M=_[A],_[A++]=_[x],_[x]=M}function a(_,b){return typeof b=="string"&&(b=_.objects[b]),b.type==="GeometryCollection"?{type:"FeatureCollection",features:b.geometries.map(function(M){return o(_,M)})}:o(_,b)}function o(_,b){var M=b.id,x=b.bbox,A=b.properties==null?{}:b.properties,T=s(_,b);return M==null&&x==null?{type:"Feature",properties:A,geometry:T}:x==null?{type:"Feature",id:M,properties:A,geometry:T}:{type:"Feature",id:M,bbox:x,properties:A,geometry:T}}function s(_,b){var M=r(_.transform),x=_.arcs;function A(k,D){D.length&&D.pop();for(var L=x[k<0?~k:k],P=0,I=L.length;P1)x=c(_,b,M);else for(A=0,x=new Array(T=_.arcs.length);A1)for(var D=1,L=E(C[0]),P,I;DL&&(I=C[0],C[0]=C[D],C[D]=I,L=P);return C}).filter(function(S){return S.length>0})}}function v(_,b){for(var M=0,x=_.length;M>>1;_[A]=2))throw new Error("n must be \u22652");S=_.bbox||i(_);var M=S[0],x=S[1],A=S[2],T=S[3],g;b={scale:[A-M?(A-M)/(g-1):1,T-x?(T-x)/(g-1):1],translate:[M,x]}}else S=_.bbox;var E=m(b),S,C,k=_.objects,D={};function L(F){return E(F)}function P(F){var z;switch(F.type){case"GeometryCollection":z={type:"GeometryCollection",geometries:F.geometries.map(P)};break;case"Point":z={type:"Point",coordinates:L(F.coordinates)};break;case"MultiPoint":z={type:"MultiPoint",coordinates:F.coordinates.map(L)};break;default:return F}return F.id!=null&&(z.id=F.id),F.bbox!=null&&(z.bbox=F.bbox),F.properties!=null&&(z.properties=F.properties),z}function I(F){var z=0,B=1,O=F.length,W,X=new Array(O);for(X[0]=E(F[0],0);++z{"use strict";var GQ=gUe.exports={},Osr=(DE(),ar(CE)).locationmodeToLayer,Nsr=UQ().feature;GQ.getTopojsonName=function(e){return[e.scope.replace(/ /g,"-"),"_",e.resolution.toString(),"m"].join("")};GQ.getTopojsonPath=function(e,t){return e+=e.endsWith("/")?"":"/",`${e}${t}.json`};GQ.getTopojsonFeatures=function(e,t){var r=Osr[e.locationmode],i=t.objects[r];return Nsr(t,i).features}});var LE=K(FE=>{"use strict";var Vsr=(Il(),ar(Bl)).BADNUM;FE.calcTraceToLineCoords=function(e){for(var t=e[0].trace,r=t.connectgaps,i=[],n=[],a=0;a0&&(i.push(n),n=[])}return n.length>0&&i.push(n),i};FE.makeLine=function(e){return e.length===1?{type:"LineString",coordinates:e[0]}:{type:"MultiLineString",coordinates:e}};FE.makePolygon=function(e){if(e.length===1)return{type:"Polygon",coordinates:e};for(var t=new Array(e.length),r=0;r{"use strict";var jQ=Object.defineProperty,Usr=Object.getOwnPropertyDescriptor,Gsr=Object.getOwnPropertyNames,Hsr=Object.prototype.hasOwnProperty,jsr=(e,t)=>{for(var r in t)jQ(e,r,{get:t[r],enumerable:!0})},Wsr=(e,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of Gsr(t))!Hsr.call(e,n)&&n!==r&&jQ(e,n,{get:()=>t[n],enumerable:!(i=Usr(t,n))||i.enumerable});return e},$sr=e=>Wsr(jQ({},"__esModule",{value:!0}),e),xUe={};jsr(xUe,{COUNTRIES:()=>bUe,byAlpha2:()=>Ksr,byAlpha3:()=>Zsr,byM49:()=>Jsr,createLookup:()=>_Ue,lookup:()=>Ysr,lookupAlpha3:()=>Xsr,sanitize:()=>HQ});wUe.exports=$sr(xUe);var bUe=[{iso3:"ABW",iso2:"AW",m49:"533",name:"Aruba",aliases:["\u{1F1E6}\u{1F1FC}","country of aruba","land aruba","pais aruba"]},{iso3:"AFG",iso2:"AF",m49:"004",name:"Afghanistan",aliases:["\u{1F1E6}\u{1F1EB}","affghanistan","affghanisthan","affghaunistan","afghania","afghanisthan","afghaunistan","afghaunistaun","afgoniston","de afghanistan islami jumhuriyat","owganystan","\u0430\u0444\u0493\u043E\u043D\u0438\u0441\u0442\u043E\u043D","\u0623\u0641\u063A\u0627\u0646\u0633\u062A\u0627\u0646","\u0627\u0641\u063A\u0627\u0646\u0633\u062A\u0627\u0646","\u062F \u0627\u0641\u063A\u0627\u0646\u0633\u062A\u0627\u0646 \u0627\u0633\u0644\u0627\u0645\u06CC \u062C\u0645\u0647\u0648\u0631\u06CC\u062A"]},{iso3:"AGO",iso2:"AO",m49:"024",name:"Angola",aliases:["\u{1F1E6}\u{1F1F4}","republic of angola","republica de angola"]},{iso3:"AIA",iso2:"AI",m49:"660",name:"Anguilla",aliases:["\u{1F1E6}\u{1F1EE}","malliouhana"]},{iso3:"ALA",iso2:"AX",m49:"248",name:"\xC5land Islands",aliases:["\u{1F1E6}\u{1F1FD}","aaland","aaland islands","ahvenanmaa","aland","aland isles","aland region","alands lan","landskapet aland"]},{iso3:"ALB",iso2:"AL",m49:"008",name:"Albania",aliases:["\u{1F1E6}\u{1F1F1}","peoples republic of albania","peoples socialist republic of albania","republic of albania","republika e shqiperise","shqiperi","shqiperia","shqiperise","socialist republic of albania"]},{iso3:"AND",iso2:"AD",m49:"020",name:"Andorra",aliases:["\u{1F1E6}\u{1F1E9}","el pais dels pirineus","les valls dandorra","principality of andorra","principality of the valleys of andorra","principat dandorra","valls dandorra"]},{iso3:"ARE",iso2:"AE",m49:"784",name:"United Arab Emirates",aliases:["\u{1F1E6}\u{1F1EA}","emirates","uae","\u0627\u0644\u0625\u0645\u0627\u0631\u0627\u062A","\u0627\u0644\u0625\u0645\u0627\u0631\u0627\u062A \u0627\u0644\u0639\u0631\u0628\u064A\u0629 \u0627\u0644\u0645\u062A\u062D\u062F\u0629","\u0627\u0644\u0627\u0645\u0627\u0631\u0627\u062A","\u0627\u0644\u0627\u0645\u0627\u0631\u0627\u062A \u0627\u0644\u0639\u0631\u0628\u064A\u0629 \u0627\u0644\u0645\u062A\u062D\u062F\u0629","\u062F\u0648\u0644\u0629 \u0627\u0644\u0625\u0645\u0627\u0631\u0627\u062A \u0627\u0644\u0639\u0631\u0628\u064A\u0629 \u0627\u0644\u0645\u062A\u062D\u062F\u0629"]},{iso3:"ARG",iso2:"AR",m49:"032",name:"Argentina",aliases:["\u{1F1E6}\u{1F1F7}","argentine republic","nacion argentina","republic of argentina","republica argentina"]},{iso3:"ARM",iso2:"AM",m49:"051",name:"Armenia",aliases:["\u{1F1E6}\u{1F1F2}","hayastan","hayastani hanrapetutyun","republic of armenia","\u0570\u0561\u0575\u0561\u057D\u057F\u0561\u0576","\u0570\u0561\u0575\u0561\u057D\u057F\u0561\u0576\u056B \u0570\u0561\u0576\u0580\u0561\u057A\u0565\u057F\u0578\u0582\u0569\u0575\u0578\u0582\u0576","\u0570\u0561\u0575\u0584","\u0570\u0570"]},{iso3:"ASM",iso2:"AS",m49:"016",name:"American Samoa",aliases:["\u{1F1E6}\u{1F1F8}","amerika samoa","east samoa","samoa american","samoa united states","territory of american samoa","us samoa"]},{iso3:"ATA",iso2:"AQ",m49:"010",name:"Antarctica",aliases:["\u{1F1E6}\u{1F1F6}","antarctica treaty area"]},{iso3:"ATF",iso2:"TF",m49:"260",name:"French Southern Territories",aliases:["\u{1F1F9}\u{1F1EB}","taaf","terres australes et antarctiques francaises","terres australes francaises","terres australes francaises les","territoire des terres australes et antarctiques francaises"]},{iso3:"ATG",iso2:"AG",m49:"028",name:"Antigua and Barbuda",aliases:["\u{1F1E6}\u{1F1EC}","antigua","antigua barbuda","barbuda"]},{iso3:"AUS",iso2:"AU",m49:"036",name:"Australia",aliases:["\u{1F1E6}\u{1F1FA}","commonwealth of australia","new holland","new hollandia","nova hollandia"]},{iso3:"AUT",iso2:"AT",m49:"040",name:"Austria",aliases:["\u{1F1E6}\u{1F1F9}","osterreich","republic of austria","republik osterreich","zweite republik"]},{iso3:"AZE",iso2:"AZ",m49:"031",name:"Azerbaijan",aliases:["\u{1F1E6}\u{1F1FF}","az\u0259rbaycan","az\u0259rbaycan respublikas\u0131","republic of azerbaijan"]},{iso3:"BDI",iso2:"BI",m49:"108",name:"Burundi",aliases:["\u{1F1E7}\u{1F1EE}","gouvernement du burundi","la republique du burundi","republic of burundi","republika yu burundi","republika yuburundi","republique du burundi","repuburika yuburundi","uburundi"]},{iso3:"BEL",iso2:"BE",m49:"056",name:"Belgium",aliases:["\u{1F1E7}\u{1F1EA}","belg","belgie","belgien","belgique","kingdom of belgium","konigreich belgien","koninkrijk belgie","royaume de belgique"]},{iso3:"BEN",iso2:"BJ",m49:"204",name:"Benin",aliases:["\u{1F1E7}\u{1F1EF}","dahomey","la republique du benin","republic of benin","republique du benin"]},{iso3:"BES",iso2:"BQ",m49:"535",name:"Bonaire, Sint Eustatius and Saba",aliases:["\u{1F1E7}\u{1F1F6}","bes eilanden","bes islands","bijzondere gemeente","bonaire","bonaire saint eustatius and saba","bonaire sint eustatius en saba","caraibisch nederland","caribbean netherlands","caribisch nederland","hulanda karibense","islanan bes","netherlands antilles","saba","sint eustatius"]},{iso3:"BFA",iso2:"BF",m49:"854",name:"Burkina Faso",aliases:["\u{1F1E7}\u{1F1EB}","republic of burkina faso","republic of upper volta"]},{iso3:"BGD",iso2:"BD",m49:"050",name:"Bangladesh",aliases:["\u{1F1E7}\u{1F1E9}","bangla desh","east pakistan","gonaoprojatontri bangladesh","peoples republic of bangladesh","\u0997\u09A3\u09AA\u09CD\u09B0\u099C\u09BE\u09A4\u09A8\u09CD\u09A4\u09CD\u09B0\u09C0 \u09AC\u09BE\u0982\u09B2\u09BE\u09A6\u09C7\u09B6","\u09AC\u09BE\u0982\u09B2\u09BE \u09A6\u09C7\u09B6","\u09AC\u09BE\u0982\u09B2\u09BE\u09A6\u09C7\u09B6","\u09AC\u09BF\u09A1\u09BF"]},{iso3:"BGR",iso2:"BG",m49:"100",name:"Bulgaria",aliases:["\u{1F1E7}\u{1F1EC}","bulgarian republic","republic of bulgaria","republika bulgaria","republika bulgariya","\u0431\u0433","\u0431\u044A\u043B\u0433\u0430\u0440\u0438\u044F","\u0440\u0435\u043F\u0443\u0431\u043B\u0438\u043A\u0430 \u0431\u044A\u043B\u0433\u0430\u0440\u0438\u044F"]},{iso3:"BHR",iso2:"BH",m49:"048",name:"Bahrain",aliases:["\u{1F1E7}\u{1F1ED}","bahrein islands","kingdom of bahrain","\u0627\u0644\u0628\u062D\u0631\u064A\u0646","\u062F\u0648\u0644\u0629 \u0627\u0644\u0628\u062D\u0631\u064A\u0646","\u0645\u0645\u0644\u0643\u0629 \u0627\u0644\u0628\u062D\u0631\u064A\u0646"]},{iso3:"BHS",iso2:"BS",m49:"044",name:"Bahamas",aliases:["\u{1F1E7}\u{1F1F8}","bahama islands","bahamas the","commonwealth of the bahamas"]},{iso3:"BIH",iso2:"BA",m49:"070",name:"Bosnia and Herzegovina",aliases:["\u{1F1E7}\u{1F1E6}","bosna","bosna i hercegovina","bosnia","bosnia and hercegovina","bosnia herzegovina","hercegovina","herzegovina","\u0431\u0438\u0445","\u0431\u043E\u0441\u043D\u0430","\u0431\u043E\u0441\u043D\u0430 \u0438 \u0445\u0435\u0440\u0446\u0435\u0433\u043E\u0432\u0438\u043D\u0430","\u0431\u0445"]},{iso3:"BLM",iso2:"BL",m49:"652",name:"Saint Barth\xE9lemy",aliases:["\u{1F1E7}\u{1F1F1}","collectivite doutre mer de saint barthelemy","collectivite territoriale de saint barthelemy","collectivity of saint barthelemy","saint barth","saint barths","saint barts","saint bartz"]},{iso3:"BLR",iso2:"BY",m49:"112",name:"Belarus",aliases:["\u{1F1E7}\u{1F1FE}","republic of belarus","respublika belarus","respublika byelarus","\u0431\u0435\u043B\u0430\u0440\u0443\u0441\u043A\u0430\u044F \u0440\u044D\u0441\u043F\u0443\u0431\u043B\u0456\u043A\u0430","\u0431\u0435\u043B\u0430\u0440\u0443\u0441\u044C","\u0431\u0435\u043B\u0430\u044F \u0440\u0443\u0441\u044C","\u0431\u0435\u043B\u043E\u0440\u0443\u0441\u0441\u0438\u044F","\u0440\u0431","\u0440\u0435\u0441\u043F\u0443\u0431\u043B\u0438\u043A\u0430 \u0431\u0435\u043B\u0430\u0440\u0443\u0441\u044C","\u0440\u044D\u0441\u043F\u0443\u0431\u043B\u0456\u043A\u0430 \u0431\u0435\u043B\u0430\u0440\u0443\u0441\u044C"]},{iso3:"BLZ",iso2:"BZ",m49:"084",name:"Belize",aliases:["\u{1F1E7}\u{1F1FF}"]},{iso3:"BMU",iso2:"BM",m49:"060",name:"Bermuda",aliases:["\u{1F1E7}\u{1F1F2}","barmuda","barmuda i","barmuda isl","barmuda islands","barmudas","bermoothes","bermuda islands","bermudas","bermudian islands","colony of bermuda","devils isles","isle of devils","somers islands","somers isles","summers isles","territory of bermuda","virgineola"]},{iso3:"BOL",iso2:"BO",m49:"068",name:"Bolivia (Plurinational State of)",aliases:["\u{1F1E7}\u{1F1F4}","bolivia","bulibiya","estado plurinacional de bolivia","plurinational state of bolivia","puliwya","republic of bolivia","republica de bolivia","volivia","wuliwiya","wuliwya"]},{iso3:"BRA",iso2:"BR",m49:"076",name:"Brazil",aliases:["\u{1F1E7}\u{1F1F7}","brasil","federative republic of brazil","pindorama","republica federativa do brasil"]},{iso3:"BRB",iso2:"BB",m49:"052",name:"Barbados",aliases:["\u{1F1E7}\u{1F1E7}","barbadoes"]},{iso3:"BRN",iso2:"BN",m49:"096",name:"Brunei Darussalam",aliases:["\u{1F1E7}\u{1F1F3}","brunei","nation of brunei the abode of peace","negara brunei darussalam"]},{iso3:"BTN",iso2:"BT",m49:"064",name:"Bhutan",aliases:["\u{1F1E7}\u{1F1F9}","kingdom of bhutan","\u0F60\u0F56\u0FB2\u0F74\u0F42","\u0F60\u0F56\u0FB2\u0F74\u0F42\u0F0B\u0F61\u0F74\u0F63\u0F0B","\u0F60\u0F56\u0FB2\u0F74\u0F42\u0F61\u0F74\u0F63\u0F0B\u0F0B"]},{iso3:"BVT",iso2:"BV",m49:"074",name:"Bouvet Island",aliases:["\u{1F1E7}\u{1F1FB}"]},{iso3:"BWA",iso2:"BW",m49:"072",name:"Botswana",aliases:["\u{1F1E7}\u{1F1FC}","lefatshe la botswana","republic of botswana"]},{iso3:"CAF",iso2:"CF",m49:"140",name:"Central African Republic",aliases:["\u{1F1E8}\u{1F1EB}","centrafricaine republique","centrafrique","central africa","kodorosese ti beafrika","la republique","rep centrafrique","republique centrafricaine"]},{iso3:"CAN",iso2:"CA",m49:"124",name:"Canada",aliases:["\u{1F1E8}\u{1F1E6}","le canada"]},{iso3:"CCK",iso2:"CC",m49:"166",name:"Cocos (Keeling) Islands",aliases:["\u{1F1E8}\u{1F1E8}","cocos islands","keeling islands","territory of the cocos keeling islands"]},{iso3:"CHE",iso2:"CH",m49:"756",name:"Switzerland",aliases:["\u{1F1E8}\u{1F1ED}","confederation helvetique","confederation suisse","confederazione elvetica","confederazione svizzera","confederaziun svizra","confoederatio helvetica","conf\u0153deratio helvetica","eidgenossenschaft","elvezia","helvetie","la confederation suisse","schweiz","schweizerische eidgenossenschaft","suisse","svizra","svizzera","swiss","swiss confederation"]},{iso3:"CHL",iso2:"CL",m49:"152",name:"Chile",aliases:["\u{1F1E8}\u{1F1F1}","republic of chile","republica de chile"]},{iso3:"CHN",iso2:"CN",m49:"156",name:"China",aliases:["\u{1F1E8}\u{1F1F3}","china pr","peoples republic of china","pr china","prc","\u4E2D\u534E\u4EBA\u6C11\u5171\u548C\u56FD","\u4E2D\u56FD"]},{iso3:"CIV",iso2:"CI",m49:"384",name:"C\xF4te d'Ivoire",aliases:["\u{1F1E8}\u{1F1EE}","cote ivoire","ivory coast","republic of cote divoire","republic of ivory coast","republic of the ivory coast","republique de cote divoire"]},{iso3:"CMR",iso2:"CM",m49:"120",name:"Cameroon",aliases:["\u{1F1E8}\u{1F1F2}","cameroun","la republique du cameroun","republic of cameroon","republique du cameroun"]},{iso3:"COD",iso2:"CD",m49:"180",name:"Democratic Republic of the Congo",aliases:["\u{1F1E8}\u{1F1E9}","congo belge","congo democratic republic of the","congo kinshasa","dem rep congo","dem republic of congo","dem republic of the congo","democratic republic of congo","dr congo","drc","rd congo","rep demcongo","republic of the congo","republique democratique du congo","republique du zaire","zaire"]},{iso3:"COG",iso2:"CG",m49:"178",name:"Congo",aliases:["\u{1F1E8}\u{1F1EC}","congo brazza","congo brazzaville","congo republic","rep congo","republic of congo","republique du congo"]},{iso3:"COK",iso2:"CK",m49:"184",name:"Cook Islands",aliases:["\u{1F1E8}\u{1F1F0}","cook group","hervey islands"]},{iso3:"COL",iso2:"CO",m49:"170",name:"Colombia",aliases:["\u{1F1E8}\u{1F1F4}","republic of colombia","republica de colombia"]},{iso3:"COM",iso2:"KM",m49:"174",name:"Comoros",aliases:["\u{1F1F0}\u{1F1F2}","comores","comores archipel","etat comorien","lunion des comores","republique des comores","republique federale et islamique des comores","republique federale islamique des comores","territoire des comores","union des comores","union of the comoros","\u0625\u062A\u062D\u0627\u062F \u0627\u0644\u0642\u0645\u0631","\u0627\u062A\u062D\u0627\u062F \u062C\u0632\u0631 \u0627\u0644\u0642\u0645\u0631","\u0627\u0644\u0627\u062A\u062D\u0627\u062F \u0627\u0644\u0642\u0645\u0631\u064A","\u0627\u0644\u0642\u0645\u0631","\u062C\u0632\u0631 \u0627\u0644\u0642\u0645\u0631","\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u0627\u0644\u0642\u0645\u0631 \u0627\u0644\u0645\u062A\u062D\u062F\u0629","\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u062C\u0632\u0631 \u0627\u0644\u0642\u0645\u0631 \u0627\u0644\u0627\u062A\u062D\u0627\u062F\u064A\u0629 \u0627\u0644\u0625\u0633\u0644\u0627\u0645\u064A\u0629","\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u062C\u0632\u0631\u0627\u0644\u0642\u0645\u0631 \u0627\u0644\u0645\u062A\u062D\u062F\u0629"]},{iso3:"CPV",iso2:"CV",m49:"132",name:"Cabo Verde",aliases:["\u{1F1E8}\u{1F1FB}","cape verde","cape verde islands","kab verd","kabu verdi","kauberdi","republic of cabo verde","republic of cape verde","republica de cabo verde"]},{iso3:"CRI",iso2:"CR",m49:"188",name:"Costa Rica",aliases:["\u{1F1E8}\u{1F1F7}","republic of costa rica","republica de costa rica"]},{iso3:"CUB",iso2:"CU",m49:"192",name:"Cuba",aliases:["\u{1F1E8}\u{1F1FA}","isla juana","republic of cuba","republica de cuba"]},{iso3:"CUW",iso2:"CW",m49:"531",name:"Cura\xE7ao",aliases:["\u{1F1E8}\u{1F1FC}","corsou","corsouw","corsow","country of curacao","curacau","curacoa","curazao","cura\u03C2ao","curocao","island territory of curacao","korsou","land curacao","pais korsou"]},{iso3:"CXR",iso2:"CX",m49:"162",name:"Christmas Island",aliases:["\u{1F1E8}\u{1F1FD}","christmas island other territories","christmas island other territories australia","territory of christmas island"]},{iso3:"CYM",iso2:"KY",m49:"136",name:"Cayman Islands",aliases:["\u{1F1F0}\u{1F1FE}","caymans"]},{iso3:"CYP",iso2:"CY",m49:"196",name:"Cyprus",aliases:["\u{1F1E8}\u{1F1FE}","greek administration of southern cyprus","greek cypriot state","guney k\u0131br\u0131s","guney k\u0131br\u0131s rum cumhuriyeti","guney k\u0131br\u0131s rum kesimi","guney k\u0131br\u0131s rum yonetimi","kipriaki dhimokratia","k\u0131br\u0131s","k\u0131br\u0131s cumhuriyeti","k\u0131br\u0131s rum kesimi","kypriaki dimokratia","kypros","republic of cyprus","\u03BA\u03C5\u03C0\u03C1\u03B9\u03B1\u03BA\u03B7 \u03B4\u03B7\u03BC\u03BF\u03BA\u03C1\u03B1\u03C4\u03B9\u03B1","\u03BA\u03C5\u03C0\u03C1\u03BF\u03C2"]},{iso3:"CZE",iso2:"CZ",m49:"203",name:"Czechia",aliases:["\u{1F1E8}\u{1F1FF}","ceska republika","ceske kraje","ceske uzemi","ceske zeme","cesko","cr","czech republic"]},{iso3:"DEU",iso2:"DE",m49:"276",name:"Germany",aliases:["\u{1F1E9}\u{1F1EA}","br deutschland","bundesrepublik","bundesrepublik deutschland","deutschland","federal republic of germany"]},{iso3:"DJI",iso2:"DJ",m49:"262",name:"Djibouti",aliases:["\u{1F1E9}\u{1F1EF}","la republique de djibouti","republic of djibouti","republique de djibouti","\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u062C\u064A\u0628\u0648\u062A\u064A","\u062C\u064A\u0628\u0648\u062A\u064A"]},{iso3:"DMA",iso2:"DM",m49:"212",name:"Dominica",aliases:["\u{1F1E9}\u{1F1F2}","commonwealth of dominica","island of dominica","waitu kubuli"]},{iso3:"DNK",iso2:"DK",m49:"208",name:"Denmark",aliases:["\u{1F1E9}\u{1F1F0}","dania","danmark","denmark proper","kongeriget danmark","metropolitan denmark"]},{iso3:"DOM",iso2:"DO",m49:"214",name:"Dominican Republic",aliases:["\u{1F1E9}\u{1F1F4}","dominicana","domrep","haiti espanol","quisqueya","republica de santo domingo","republica dominicana","santo domingo"]},{iso3:"DZA",iso2:"DZ",m49:"012",name:"Algeria",aliases:["\u{1F1E9}\u{1F1FF}","peoples democratic republic of algeria","\u0627\u0644\u062C\u0632\u0627\u0626\u0631","\u0627\u0644\u062C\u0632\u0627\u064A\u0631","\u0627\u0644\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u0627\u0644\u062C\u0632\u0627\u0626\u0631\u064A\u0629 \u0627\u0644\u062F\u064A\u0645\u0642\u0631\u0627\u0637\u064A\u0629 \u0627\u0644\u0634\u0639\u0628\u064A\u0629","\u0627\u0644\u062F\u0632\u0627\u064A\u0631","\u062F\u0632\u0627\u064A\u0631"]},{iso3:"ECU",iso2:"EC",m49:"218",name:"Ecuador",aliases:["\u{1F1EA}\u{1F1E8}","ecuadorian state","el ecuador","estado ecuatoriano","republic of ecuador","republic of equator","republic of the equator","republica del ecuador"]},{iso3:"EGY",iso2:"EG",m49:"818",name:"Egypt",aliases:["\u{1F1EA}\u{1F1EC}","arab rep egypt","arab republic of egypt","rep egypt","republic of egypt","\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u0645\u0635\u0631 \u0627\u0644\u0639\u0631\u0628\u064A\u0629","\u0645\u0635\u0631"]},{iso3:"ERI",iso2:"ER",m49:"232",name:"Eritrea",aliases:["\u{1F1EA}\u{1F1F7}","ertra","hagere ertra","hagere iertra","iertra","iritriya","state of eritrea","\u0625\u0631\u062A\u0631\u064A\u0627","\u0625\u0631\u064A\u062A\u0631\u064A\u0627","\u0627\u0631\u062A\u0631\u064A\u0627","\u0627\u0631\u062A\u064A\u0631\u064A\u0627","\u0627\u0631\u064A\u062A\u0631\u064A\u0627","\u062F\u0648\u0644\u0629 \u0625\u0631\u062A\u0631\u064A\u0627","\u062F\u0648\u0644\u0629 \u0625\u0631\u064A\u062A\u0631\u064A\u0627","\u1203\u1308\u1228 \u12A4\u122D\u1275\u122B","\u12A4\u122D\u1275\u122B"]},{iso3:"ESH",iso2:"EH",m49:"732",name:"Western Sahara",aliases:["\u{1F1EA}\u{1F1ED}","southern provinces","spanish sahara","west sahara"]},{iso3:"ESP",iso2:"ES",m49:"724",name:"Spain",aliases:["\u{1F1EA}\u{1F1F8}","espana","estado espanol","kingdom of spain","reino de espana"]},{iso3:"EST",iso2:"EE",m49:"233",name:"Estonia",aliases:["\u{1F1EA}\u{1F1EA}","eesti","eesti noukogude sotsialistlik vabariik","eesti vabariik","estland","republic of estonia"]},{iso3:"ETH",iso2:"ET",m49:"231",name:"Ethiopia",aliases:["\u{1F1EA}\u{1F1F9}","federal democratic republic of ethiopia","ityopiya","yeityopiya federalawi demokrasiyawi ripeblik","yeityopiya hizbawi dimokrasiyawi ripublik","\u12A2\u1275\u12EE\u1335\u12EB","\u12E8\u12A2\u1275\u12EE\u1335\u12EB \u134C\u12F4\u122B\u120B\u12CA \u12F4\u121E\u12AD\u122B\u1232\u12EB\u12CA \u122A\u1350\u1265\u120A\u12AD"]},{iso3:"FIN",iso2:"FI",m49:"246",name:"Finland",aliases:["\u{1F1EB}\u{1F1EE}","republic of finland","republiken finland","suomen tasavalta","suomi"]},{iso3:"FJI",iso2:"FJ",m49:"242",name:"Fiji",aliases:["\u{1F1EB}\u{1F1EF}","fiji ganarajya","matanitu ko viti","matanitu tugalala o viti","republic of fiji","republic of the fiji islands","viti"]},{iso3:"FLK",iso2:"FK",m49:"238",name:"Falkland Islands (Malvinas)",aliases:["\u{1F1EB}\u{1F1F0}","colony of the falkland islands","falkland islands","falklands","islas malvinas","malvinas","malvinas islands"]},{iso3:"FRA",iso2:"FR",m49:"250",name:"France",aliases:["\u{1F1EB}\u{1F1F7}","fr","french republic","la france","la republique francaise","lhexagone","republique francaise"]},{iso3:"FRO",iso2:"FO",m49:"234",name:"Faroe Islands",aliases:["\u{1F1EB}\u{1F1F4}","faer oer","f\xE6r\xF8","faeroe is","faeroe islands","faeroe isles","f\xE6r\xF8erne","faeroes","far oer","faroe island","faroe isles","faroes","faroese islands","f\xF8roya","f\xF8royar","f\xF8royum"]},{iso3:"FSM",iso2:"FM",m49:"583",name:"Micronesia (Federated States of)",aliases:["\u{1F1EB}\u{1F1F2}","fed sts micronesia","fed sts of micronesia","federated states of micronesia","federated states of micronesia fsm","micronesia"]},{iso3:"GAB",iso2:"GA",m49:"266",name:"Gabon",aliases:["\u{1F1EC}\u{1F1E6}","gabonese republic","la republique gabonaise","le gabon","republique du gabon","republique gabonaise"]},{iso3:"GBR",iso2:"GB",m49:"826",name:"United Kingdom of Great Britain and Northern Ireland",aliases:["\u{1F1EC}\u{1F1E7}","britain","england","great britain","great britain and northern ireland","northern ireland","scotland","uk","united kingdom","wales"]},{iso3:"GEO",iso2:"GE",m49:"268",name:"Georgia",aliases:["\u{1F1EC}\u{1F1EA}","georgia country","republic of georgia","sakartvelo","\u049B\u044B\u0440\u04AD\u0442\u04D9\u044B\u043B\u0430","\u10E1\u10D0\u10E5\u10D0\u10E0\u10D7\u10D5\u10D4\u10DA\u10DD","\u10E1\u10D0\u10E5\u10D0\u10E0\u10D7\u10D5\u10D4\u10DA\u10DD\u10E1 \u10E0\u10D4\u10E1\u10DE\u10E3\u10D1\u10DA\u10D8\u10D9\u10D0"]},{iso3:"GGY",iso2:"GG",m49:"831",name:"Guernsey",aliases:["\u{1F1EC}\u{1F1EC}","bailiwick of guernsey","bailliage de guernesey","bailliage de guernesi","giernesi","great britain guernsey","guernesey","lisia"]},{iso3:"GHA",iso2:"GH",m49:"288",name:"Ghana",aliases:["\u{1F1EC}\u{1F1ED}","republic of ghana"]},{iso3:"GIB",iso2:"GI",m49:"292",name:"Gibraltar",aliases:["\u{1F1EC}\u{1F1EE}","rock of gibraltar"]},{iso3:"GIN",iso2:"GN",m49:"324",name:"Guinea",aliases:["\u{1F1EC}\u{1F1F3}","guinee","guinee conakry","republic of guinea","republique de guinee"]},{iso3:"GLP",iso2:"GP",m49:"312",name:"Guadeloupe",aliases:["\u{1F1EC}\u{1F1F5}"]},{iso3:"GMB",iso2:"GM",m49:"270",name:"Gambia",aliases:["\u{1F1EC}\u{1F1F2}","islamic republic of the gambia","republic of the gambia"]},{iso3:"GNB",iso2:"GW",m49:"624",name:"Guinea-Bissau",aliases:["\u{1F1EC}\u{1F1FC}","guine bissau","republic of guinea bissau","republica da guine bissau"]},{iso3:"GNQ",iso2:"GQ",m49:"226",name:"Equatorial Guinea",aliases:["\u{1F1EC}\u{1F1F6}","guine equatorial","guinea ecuatorial","guinea espanola","guinee equat","guinee equatoriale","la republique de guinee equatoriale","posesiones espanolas del golfo de guinea","provincia de la guinea ecuatorial","republic of equatorial guinea","republica da guine equatorial","republica de guinea ecuatorial","territorios espanoles del golfo de guinea"]},{iso3:"GRC",iso2:"GR",m49:"300",name:"Greece",aliases:["\u{1F1EC}\u{1F1F7}","ellada","ellas","elliniki dhimokratia","elliniki dimokratia","greek republic","hellas","hellas greece","hellenic republic","vasilion tis ellados","\u03B4\u03B7\u03BC\u03BF\u03BA\u03C1\u03B1\u03C4\u03B9\u03B1 \u03C4\u03B7\u03C2 \u03B5\u03BB\u03BB\u03B1\u03B4\u03B1\u03C2","\u03B4\u03B7\u03BC\u03BF\u03BA\u03C1\u03B1\u03C4\u03B9\u03B1 \u03C4\u03B7\u03C2 \u03B5\u03BB\u03BB\u03B1\u03B4\u03BF\u03C2","\u03B5\u03BB\u03BB\u03B1\u03B4\u03B1","\u03B5\u03BB\u03BB\u03B1\u03C2","\u03B5\u03BB\u03BB\u03B1\u03C2 \u03B5\u03BB\u03BB\u03B1\u03B4\u03B1","\u03B5\u03BB\u03BB\u03B7\u03BD\u03B9\u03BA\u03B7 \u03B4\u03B7\u03BC\u03BF\u03BA\u03C1\u03B1\u03C4\u03B9\u03B1"]},{iso3:"GRD",iso2:"GD",m49:"308",name:"Grenada",aliases:["\u{1F1EC}\u{1F1E9}"]},{iso3:"GRL",iso2:"GL",m49:"304",name:"Greenland",aliases:["\u{1F1EC}\u{1F1F1}","kalaallit nunaat"]},{iso3:"GTM",iso2:"GT",m49:"320",name:"Guatemala",aliases:["\u{1F1EC}\u{1F1F9}","republic of guatemala","republica de guatemala"]},{iso3:"GUF",iso2:"GF",m49:"254",name:"French Guiana",aliases:["\u{1F1EC}\u{1F1EB}","fr 973","guiana","guiana france","guyane","guyane francaise","gwiyann","gwiyann franse","lagwiyann"]},{iso3:"GUM",iso2:"GU",m49:"316",name:"Guam",aliases:["\u{1F1EC}\u{1F1FA}","guahan","guam usa","islan guahan","island of guam","territory of guam"]},{iso3:"GUY",iso2:"GY",m49:"328",name:"Guyana",aliases:["\u{1F1EC}\u{1F1FE}","co operative republic of guyana","republic of guyana"]},{iso3:"HKG",iso2:"HK",m49:"344",name:"Hong Kong",aliases:["\u{1F1ED}\u{1F1F0}","hksar","hong kong sar","hong kong special administrative region","hong kong special administrative region of the peoples republic of china","hongkong"]},{iso3:"HMD",iso2:"HM",m49:"334",name:"Heard Island and McDonald Islands",aliases:["\u{1F1ED}\u{1F1F2}","heard","heard & mcdonald islands","heard and macdonald islands","heard island","himi","mcdonald","mcdonald island","territory of heard island and mcdonald islands"]},{iso3:"HND",iso2:"HN",m49:"340",name:"Honduras",aliases:["\u{1F1ED}\u{1F1F3}","guaymuras","higueras","honduran republic","republic of honduras","republica de honduras"]},{iso3:"HRV",iso2:"HR",m49:"191",name:"Croatia",aliases:["\u{1F1ED}\u{1F1F7}","hrvatska","republic of croatia","republika hrvatska"]},{iso3:"HTI",iso2:"HT",m49:"332",name:"Haiti",aliases:["\u{1F1ED}\u{1F1F9}","ayiti","haitian republic","la republique dhaiti","repiblik d ayiti","republic of haiti","republique dhaiti"]},{iso3:"HUN",iso2:"HU",m49:"348",name:"Hungary",aliases:["\u{1F1ED}\u{1F1FA}","a magyar koztarsasag","a magyar nepkoztarsasag","harmadik magyar koztarsasag","magyar koztarsasag","magyar nepkoztarsasag","magyarorszag","mo"]},{iso3:"IDN",iso2:"ID",m49:"360",name:"Indonesia",aliases:["\u{1F1EE}\u{1F1E9}","negara kesatuan republik indonesia","nkri","republic of indonesia","republik indonesia"]},{iso3:"IMN",iso2:"IM",m49:"833",name:"Isle of Man",aliases:["\u{1F1EE}\u{1F1F2}","ellan vannin","i man","i mann","i mannin","isle of mann","mann","mannin","manx"]},{iso3:"IND",iso2:"IN",m49:"356",name:"India",aliases:["\u{1F1EE}\u{1F1F3}","al hind","bharat","bharat ganarajya","bharata","bharatvarsh","hindoostan","hindustan","indostan","republic of india","tenjiku","tianzhu","\u0906\u0930\u094D\u092F\u0935\u0930\u094D\u0924","\u0907\u0902\u0921\u093F\u092F\u093E","\u0907\u0923\u094D\u0921\u093F\u092F\u093E","\u092D\u093E\u0930\u0924","\u092D\u093E\u0930\u0924 \u0917\u0923\u0930\u093E\u091C\u094D\u092F","\u092D\u093E\u0930\u0924\u0935\u0930\u094D\u0937","\u0939\u093F\u0902\u0926\u0941\u0938\u094D\u0924\u093E\u0928","\u0939\u093F\u0928\u094D\u0926\u0941\u0938\u094D\u0924\u093E\u0928","\u0939\u093F\u0928\u094D\u0926\u094B\u0938\u094D\u0924\u093E\u0928"]},{iso3:"IOT",iso2:"IO",m49:"086",name:"British Indian Ocean Territory",aliases:["\u{1F1EE}\u{1F1F4}","biot"]},{iso3:"IRL",iso2:"IE",m49:"372",name:"Ireland",aliases:["\u{1F1EE}\u{1F1EA}","eire","hibernia","irish republic","poblacht na heireann","republic of ireland","southern ireland"]},{iso3:"IRN",iso2:"IR",m49:"364",name:"Iran (Islamic Republic of)",aliases:["\u{1F1EE}\u{1F1F7}","iran","islamic rep iran","islamic republic of iran","persia","\u0627\u06CC\u0631\u0627\u0646","\u0627\u06CC\u0631\u0627\u0646\u0632\u0645\u06CC\u0646","\u067E\u0627\u0631\u0633","\u062C\u0645\u0647\u0648\u0631\u06CC \u0627\u0633\u0644\u0627\u0645\u06CC \u0627\u064A\u0631\u0627\u0646","\u062C\u0645\u0647\u0648\u0631\u06CC \u0627\u0633\u0644\u0627\u0645\u06CC \u0627\u06CC\u0631\u0627\u0646","\u0643\u0634\u0648\u0631 \u0634\u0627\u0647\u0646\u0634\u0627\u0647\u06CC \u0627\u064A\u0631\u0627\u0646"]},{iso3:"IRQ",iso2:"IQ",m49:"368",name:"Iraq",aliases:["\u{1F1EE}\u{1F1F6}","eraq","iraqe","komar i eraq","republic of iraq","\u0627\u0644\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u0627\u0644\u0639\u0631\u0627\u0642\u064A\u0629","\u0627\u0644\u0639\u0631\u0627\u0642","\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u0627\u0644\u0639\u0631\u0627\u0642","\u0639\u0631\u0627\u0642","\u0639\u06CE\u0631\u0627\u0642"]},{iso3:"ISL",iso2:"IS",m49:"352",name:"Iceland",aliases:["\u{1F1EE}\u{1F1F8}","icelandic republic","island","ly\xF0veldi\xF0 island","republic of iceland","ysland"]},{iso3:"ISR",iso2:"IL",m49:"376",name:"Israel",aliases:["\u{1F1EE}\u{1F1F1}","erez yisrael","medinat yisrael","state of israel","yisrael","\u05D9\u05E9\u05E8\u05D0\u05DC","\u05DE\u05D3\u05D9\u05E0\u05EA \u05D9\u05E9\u05E8\u05D0\u05DC"]},{iso3:"ITA",iso2:"IT",m49:"380",name:"Italy",aliases:["\u{1F1EE}\u{1F1F9}","il bel paese","italia","italian republic","repubblica italiana","republic of italy"]},{iso3:"JAM",iso2:"JM",m49:"388",name:"Jamaica",aliases:["\u{1F1EF}\u{1F1F2}","commonwealth of jamaica","jamieka","jomieka","jumieka"]},{iso3:"JEY",iso2:"JE",m49:"832",name:"Jersey",aliases:["\u{1F1EF}\u{1F1EA}","bailliage de jerri","bailliage de jersey","balliwick of jersey","i iersey","i jersey","iersey","iersey i","isle of jersey","jerri","jersey i","jersey island"]},{iso3:"JOR",iso2:"JO",m49:"400",name:"Jordan",aliases:["\u{1F1EF}\u{1F1F4}","giordania","hashemite kingdom of jordan","kingdom of jordan","state of jordan","yarden","\u0627\u0644\u0623\u0631\u062F\u0646","\u0627\u0644\u0627\u0631\u062F\u0646","\u0627\u0644\u0645\u0645\u0644\u0643\u0629 \u0627\u0644\u0623\u0631\u062F\u0646\u064A\u0629 \u0627\u0644\u0647\u0627\u0634\u0645\u064A\u0629","\u0627\u0644\u0645\u0645\u0644\u0643\u0629 \u0627\u0644\u0627\u0631\u062F\u0646\u064A\u0629 \u0627\u0644\u0647\u0627\u0634\u0645\u064A\u0629"]},{iso3:"JPN",iso2:"JP",m49:"392",name:"Japan",aliases:["\u{1F1EF}\u{1F1F5}","state of japan","\u3042\u304D\u3064\u3057\u307E","\u304A\u304A\u3084\u3057\u307E","\u3057\u304D\u3057\u307E","\u30B8\u30E3\u30D1\u30F3","\u3057\u3093\u3057\u3085\u3046","\u306B\u3063\u307D\u3093","\u306B\u3063\u307D\u3093\u3053\u304F","\u306B\u307B\u3093","\u306B\u307B\u3093\u3053\u304F","\u3072\u3044\u305A\u308B\u304F\u306B","\u3075\u305D\u3046","\u5927\u516B\u5DDE","\u6276\u6728\u4E4B\u5730","\u6276\u6851","\u6276\u6851\u56FD","\u6577\u5CF6","\u65E5\u51FA\u308B\u56FD","\u65E5\u672C","\u6991\u6728\u4E4B\u5730","\u745E\u7A42\u56FD","\u795E\u5DDE","\u79CB\u6D25\u5CF6","\u8466\u539F\u4E2D\u56FD"]},{iso3:"KAZ",iso2:"KZ",m49:"398",name:"Kazakhstan",aliases:["\u{1F1F0}\u{1F1FF}","qazaqstan","qazaqstan respublikasy","republic of kazakhstan","\u043A\u0430\u0437\u0430\u0445\u0441\u0442\u0430\u043D","\u049B\u0430\u0437\u0430\u049B\u0441\u0442\u0430\u043D","\u049B\u0430\u0437\u0430\u049B\u0441\u0442\u0430\u043D \u0440\u0435\u0441\u043F\u0443\u0431\u043B\u0438\u043A\u0430\u0441\u044B","\u0440\u0435\u0441\u043F\u0443\u0431\u043B\u0438\u043A\u0430 \u043A\u0430\u0437\u0430\u0445\u0441\u0442\u0430\u043D","\u0440\u043A"]},{iso3:"KEN",iso2:"KE",m49:"404",name:"Kenya",aliases:["\u{1F1F0}\u{1F1EA}","jamhuri ya kenya","republic of kenya"]},{iso3:"KGZ",iso2:"KG",m49:"417",name:"Kyrgyzstan",aliases:["\u{1F1F0}\u{1F1EC}","kyrgyz republic","kyrgyz respublikasy","kyrgyzstan respublikasy","\u043A\u0440","\u043A\u044B\u0440\u0433\u044B\u0437 \u0440\u0435\u0441\u043F\u0443\u0431\u043B\u0438\u043A\u0430\u0441\u044B","\u043A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D"]},{iso3:"KHM",iso2:"KH",m49:"116",name:"Cambodia",aliases:["\u{1F1F0}\u{1F1ED}","camboya","campuchia","kambodzha","kamboja","kampuchea","kingdom of cambodia","\u1780\u1798\u17D2\u1796\u17BB\u1787\u17B6","\u1796\u17D2\u179A\u17C7\u179A\u17B6\u1787\u17B6\u178E\u17B6\u1785\u1780\u17D2\u179A\u1780\u1798\u17D2\u1796\u17BB\u1787\u17B6"]},{iso3:"KIR",iso2:"KI",m49:"296",name:"Kiribati",aliases:["\u{1F1F0}\u{1F1EE}","republic of kiribati"]},{iso3:"KNA",iso2:"KN",m49:"659",name:"Saint Kitts and Nevis",aliases:["\u{1F1F0}\u{1F1F3}","federation of saint christopher and nevis","federation of saint kitts and nevis","kitts & nevis","nevis","saint christopher","saint christopher and nevis","saint kitts"]},{iso3:"KOR",iso2:"KR",m49:"410",name:"Republic of Korea",aliases:["\u{1F1F0}\u{1F1F7}","korea","korea republic","korea republic of","korea south","rep korea","s korea","south korea","taehan minguk","\uB0A8\uC870\uC120","\uB0A8\uD55C","\uB300\uD55C","\uB300\uD55C\uBBFC\uAD6D","\uCF54\uB9AC\uC544","\uD55C\uAD6D"]},{iso3:"KWT",iso2:"KW",m49:"414",name:"Kuwait",aliases:["\u{1F1F0}\u{1F1FC}","state of kuwait","\u0627\u0644\u0643\u0648\u064A\u062A","\u062F\u0648\u0644\u0629 \u0627\u0644\u0643\u0648\u064A\u062A"]},{iso3:"LAO",iso2:"LA",m49:"418",name:"Lao People's Democratic Republic",aliases:["\u{1F1F1}\u{1F1E6}","laos","sathalanalat paxathipatai paxaxon lao","\u0EAA\u0EB2\u0E97\u0EB2\u0EA5\u0EB0\u0E99\u0EB0\u0EA5\u0EB1\u0E94 \u0E9B\u0EB0\u0E8A\u0EB2\u0E97\u0EB4\u0E9B\u0EB0\u0EC4\u0E95 \u0E9B\u0EB0\u0E8A\u0EB2\u0E8A\u0EBB\u0E99\u0EA5\u0EB2\u0EA7","\u0E9B\u0EB0\u0EC0\u0E97\u0E94\u0EA5\u0EB2\u0EA7","\u0EA5\u0EB2\u0EA7"]},{iso3:"LBN",iso2:"LB",m49:"422",name:"Lebanon",aliases:["\u{1F1F1}\u{1F1E7}","lebanese republic","republic of lebanon","state of lebanon","\u0627\u0644\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u0627\u0644\u0644\u0628\u0646\u0627\u0646\u064A\u0629","\u0644\u0628\u0646\u0627\u0646"]},{iso3:"LBR",iso2:"LR",m49:"430",name:"Liberia",aliases:["\u{1F1F1}\u{1F1F7}","liber","republic of liberia"]},{iso3:"LBY",iso2:"LY",m49:"434",name:"Libya",aliases:["\u{1F1F1}\u{1F1FE}","state of libya","\u0627\u0644\u062C\u0645\u0627\u0647\u064A\u0631\u064A\u0629 \u0627\u0644\u0639\u0631\u0628\u064A\u0629 \u0627\u0644\u0644\u064A\u0628\u064A\u0629 \u0627\u0644\u0634\u0639\u0628\u064A\u0629 \u0627\u0644\u0625\u0634\u062A\u0631\u0627\u0643\u064A\u0629","\u0627\u0644\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u0627\u0644\u0644\u064A\u0628\u064A\u0629","\u0627\u0644\u0644\u064A\u0628\u064A","\u0627\u0644\u0644\u064A\u0628\u064A\u0629","\u0627\u0644\u0644\u064A\u0628\u064A\u0646","\u062F\u0648\u0644\u0629 \u0644\u064A\u0628\u064A\u0627","\u0644\u064A\u0628\u0628\u064A\u0627","\u0644\u064A\u0628\u064A","\u0644\u064A\u0628\u064A\u0627","\u0644\u064A\u0628\u064A\u0629"]},{iso3:"LCA",iso2:"LC",m49:"662",name:"Saint Lucia",aliases:["\u{1F1F1}\u{1F1E8}","hewanorra","iyonola"]},{iso3:"LIE",iso2:"LI",m49:"438",name:"Liechtenstein",aliases:["\u{1F1F1}\u{1F1EE}","furstentum lichtenstein","furstentum liechtenstein","principality of liechtenstein"]},{iso3:"LKA",iso2:"LK",m49:"144",name:"Sri Lanka",aliases:["\u{1F1F1}\u{1F1F0}","ceylan","ceylon","democratic socialist republic of sri lanka","ilankaic cananayaka cocalicak kutiyarcu","lankava","prajatantravadi samajavadi janarajaya sri lanka","serendib","srilanka","taprobane","\u0B87\u0BB2\u0B99\u0BCD\u0B95\u0BC8","\u0B87\u0BB2\u0B99\u0BCD\u0B95\u0BC8 \u0B9A\u0BA9\u0BA8\u0BBE\u0BAF\u0B95 \u0B9A\u0BCB\u0B9A\u0BB2\u0BBF\u0B9A\u0B95\u0BCD \u0B95\u0BC1\u0B9F\u0BBF\u0BAF\u0BB0\u0B9A\u0BC1","\u0B87\u0BB2\u0B99\u0BCD\u0B95\u0BC8 \u0B9A\u0BA9\u0BA8\u0BBE\u0BAF\u0B95 \u0B9A\u0BCB\u0BB7\u0BB2\u0BBF\u0B9A\u0B95\u0BCD \u0B95\u0BC1\u0B9F\u0BBF\u0BAF\u0BB0\u0B9A\u0BC1","\u0B88\u0BB4\u0BAE\u0BCD","\u0B9A\u0BBF\u0BB2\u0BCB\u0BA9\u0BCD","\u0DBD\u0D82\u0D9A\u0DCF\u0DC0","\u0DC1\u0DCA\u0DBB\u0DD3 \u0DBD\u0D82\u0D9A\u0DCF \u0DB4\u0DCA\u0DBB\u0DA2\u0DCF\u0DAD\u0DB1\u0DCA\u0DAD\u0DCA\u0DBB\u0DC0\u0DCF\u0DAF\u0DD3 \u0DC3\u0DB8\u0DCF\u0DA2\u0DC0\u0DCF\u0DAF\u0DD3 \u0DA2\u0DB1\u0DBB\u0DA2\u0DBA","\u0DC1\u0DCA\u0DBB\u0DD3 \u0DBD\u0D82\u0D9A\u0DCF\u0DC0","\u0DC1\u0DCA\u200D\u0DBB\u0DD3 \u0DBD\u0D82\u0D9A\u0DCF\u0DC0"]},{iso3:"LSO",iso2:"LS",m49:"426",name:"Lesotho",aliases:["\u{1F1F1}\u{1F1F8}","kingdom of lesotho","mmuso wa lesotho","mountain kingdom"]},{iso3:"LTU",iso2:"LT",m49:"440",name:"Lithuania",aliases:["\u{1F1F1}\u{1F1F9}","lietuva","lietuvos respublika","republic of lithuania"]},{iso3:"LUX",iso2:"LU",m49:"442",name:"Luxembourg",aliases:["\u{1F1F1}\u{1F1FA}","grand duche","grand duche de luxembourg","grand duchy of luxembourg","gro\xDFherzogtum luxemburg","groussherzogtum letzebuerg","le grand duche de luxembourg","letzebuerg","letzebuerger land","lux","luxemburg"]},{iso3:"LVA",iso2:"LV",m49:"428",name:"Latvia",aliases:["\u{1F1F1}\u{1F1FB}","latveja","latvejas republika","latvian republic","latvija","latvijas republika","letm\u043E","letm\u043E vabam\u043E","republic of latvia"]},{iso3:"MAC",iso2:"MO",m49:"446",name:"Macao",aliases:["\u{1F1F2}\u{1F1F4}","aomen","macao sar","macao special administrative region","macao special administrative region of the peoples republic of china","macau","macau rae da china","macau sar","macau special administrative region","macau special administrative region of the peoples republic of china","raem","regiao administrativa especial de macau","regiao administrativa especial de macau da republica popular da china","\u4E2D\u570B\u6FB3\u9580\u7279\u5225\u884C\u653F\u5340","\u6FB3\u9580"]},{iso3:"MAF",iso2:"MF",m49:"663",name:"Saint Martin (French Part)",aliases:["\u{1F1F2}\u{1F1EB}","collectivite de saint martin","collectivity of saint martin","saint martin","saint martin antilles francaises","saint martin france"]},{iso3:"MAR",iso2:"MA",m49:"504",name:"Morocco",aliases:["\u{1F1F2}\u{1F1E6}","kingdom of morocco","\u0627\u0644\u0645\u063A\u0631\u0628","\u0627\u0644\u0645\u0645\u0644\u0643\u0629 \u0627\u0644\u0645\u063A\u0631\u0628\u064A\u0629","\u2D30\u2D4E\u2D53\u2D54 \u2D4F \u2D61\u2D30\u2D3D\u2D53\u2D5B","\u2D30\u2D4E\u2D55\u2D55\u2D53\u2D3D","\u2D4D\u2D4E\u2D55\u2D55\u2D53\u2D3D","\u2D4D\u2D4E\u2D56\u2D54\u2D49\u2D31","\u2D5C\u2D30\u2D33\u2D4D\u2D37\u2D49\u2D5C \u2D4F \u2D4D\u2D4E\u2D56\u2D54\u2D49\u2D31"]},{iso3:"MCO",iso2:"MC",m49:"492",name:"Monaco",aliases:["\u{1F1F2}\u{1F1E8}","fort hercule","la principaute de monaco","monaco rattachee au district de menton en 1793","munegu","principality and diocese of monaco","principality of monaco","principatu de munegu","principaute de monaco"]},{iso3:"MDA",iso2:"MD",m49:"498",name:"Republic of Moldova",aliases:["\u{1F1F2}\u{1F1E9}","moldavia","moldova","moldova republic of","moldova republica","r moldova","rep moldova","republica moldova","\u043C\u043E\u043B\u0434\u043E\u0432\u0430"]},{iso3:"MDG",iso2:"MG",m49:"450",name:"Madagascar",aliases:["\u{1F1F2}\u{1F1EC}","la republique de madagascar","madagasikara","repoblikani madagasikara","republic of madagascar","republique de madagascar"]},{iso3:"MDV",iso2:"MV",m49:"462",name:"Maldives",aliases:["\u{1F1F2}\u{1F1FB}","dhivehi raajjeyge jumhooriyyaa","republic of maldives","\u078B\u07A8\u0788\u07AC\u0780\u07A8 \u0783\u07A7\u0787\u07B0\u0796\u07AC","\u078B\u07A8\u0788\u07AC\u0780\u07A8\u0783\u07A7\u0787\u07B0\u0796\u07AC","\u078B\u07A8\u0788\u07AC\u0780\u07A8\u0783\u07A7\u0787\u07B0\u0796\u07AD\u078E\u07AC \u0796\u07AA\u0789\u07AA\u0780\u07AB\u0783\u07A8\u0787\u07B0\u0794\u07A7","\u078B\u07A8\u0788\u07AC\u0780\u07A8\u0783\u07A7\u0787\u07B0\u0796\u07AD\u078E\u07AC \u0796\u07AA\u0789\u07B0\u0780\u07AB\u0783\u07A8\u0787\u07B0\u0794\u07A7"]},{iso3:"MEX",iso2:"MX",m49:"484",name:"Mexico",aliases:["\u{1F1F2}\u{1F1FD}","estados unidos mejicanos","estados unidos mexicanos","mejico","mexican republic","mexican united states","mexihco","mexihko","mexika sentik wexteyowalko","mexiko","mexko","mexko axkayotl","mexko tlalli","nueva espana","republica mejicana","republica mexicana","united mexican states","united states of mexico"]},{iso3:"MHL",iso2:"MH",m49:"584",name:"Marshall Islands",aliases:["\u{1F1F2}\u{1F1ED}","aelon kein ad","aolepan aorokin majel","jolet jen anij","majel","majol","republic of the marshall islands"]},{iso3:"MKD",iso2:"MK",m49:"807",name:"North Macedonia",aliases:["\u{1F1F2}\u{1F1F0}","former yugoslav republic of macedonia","fyr macedonia","fyrom","irjm","ish republika jugosllave e maqedonise","macedonia","macedonia former yugoslav republic of","macedonia fyr","maqedoni","maqedonia","maqedonia e veriut","republic of macedonia","republic of north macedonia","republika e maqedonise","republika e maqedonise se veriut","\u043C\u0430\u043A\u0435\u0434\u043E\u043D\u0438\u0458\u0430","\u0440\u0435\u043F\u0443\u0431\u043B\u0438\u043A\u0430 \u043C\u0430\u043A\u0435\u0434\u043E\u043D\u0438\u0458\u0430","\u0440\u0435\u043F\u0443\u0431\u043B\u0438\u043A\u0430 \u0441\u0435\u0432\u0435\u0440\u043D\u0430 \u043C\u0430\u043A\u0435\u0434\u043E\u043D\u0438\u0458\u0430","\u0440\u043C","\u0440\u0441\u043C","\u0441\u0435\u0432\u0435\u0440\u043D\u0430 \u043C\u0430\u043A\u0435\u0434\u043E\u043D\u0438\u0458\u0430"]},{iso3:"MLI",iso2:"ML",m49:"466",name:"Mali",aliases:["\u{1F1F2}\u{1F1F1}","maali","republic of mali"]},{iso3:"MLT",iso2:"MT",m49:"470",name:"Malta",aliases:["\u{1F1F2}\u{1F1F9}","malta island","repubblika ta malta","republic of malta"]},{iso3:"MMR",iso2:"MM",m49:"104",name:"Myanmar",aliases:["\u{1F1F2}\u{1F1F2}","burma","pyidaungzu myanma naingngandaw","pyidaungzu thammada myanma naingngandaw","republic of the union of myanmar","union of burma","\u1015\u103C\u100A\u103A\u1011\u1031\u102C\u1004\u103A\u1005\u102F \u1019\u103C\u1014\u103A\u1019\u102C\u1014\u102D\u102F\u1004\u103A\u1004\u1036","\u1015\u103C\u100A\u103A\u1011\u1031\u102C\u1004\u103A\u1005\u102F \u1019\u103C\u1014\u103A\u1019\u102C\u1014\u102D\u102F\u1004\u103A\u1004\u1036\u1010\u1031\u102C\u103A","\u1015\u103C\u100A\u103A\u1011\u1031\u102C\u1004\u103A\u1005\u102F \u101E\u1019\u1039\u1019\u1010 \u1019\u103C\u1014\u103A\u1019\u102C\u1014\u102D\u102F\u1004\u103A\u1004\u1036","\u1015\u103C\u100A\u103A\u1011\u1031\u102C\u1004\u103A\u1005\u102F \u101E\u1019\u1039\u1019\u1010 \u1019\u103C\u1014\u103A\u1019\u102C\u1014\u102D\u102F\u1004\u103A\u1004\u1036\u1010\u1031\u102C\u103A","\u1015\u103C\u100A\u103A\u1011\u1031\u102C\u1004\u103A\u1005\u102F\u1019\u103C\u1014\u103A\u1019\u102C\u1014\u102D\u102F\u1004\u103A\u1004\u1036\u1010\u1031\u102C\u103A","\u1015\u103C\u100A\u103A\u1011\u1031\u102C\u1004\u103A\u1005\u102F\u101E\u1019\u1039\u1019\u1010\u1019\u103C\u1014\u103A\u1019\u102C\u1014\u102D\u102F\u1004\u103A\u1004\u1036","\u1015\u103C\u200C\u100A\u103A\u1011\u1031\u102C\u1004\u103A\u1005\u102F\u101E\u1019\u1039\u1019\u1010\u1019\u103C\u1014\u103A\u1019\u102C\u1014\u102D\u102F\u1004\u103A\u1004\u1036","\u1015\u103C\u100A\u103A\u1011\u1031\u102C\u1004\u103A\u1005\u102F\u101E\u1019\u1039\u1019\u1010\u1019\u103C\u1014\u103A\u1019\u102C\u1014\u102D\u102F\u1004\u103A\u1004\u1036\u1010\u1031\u102C\u103A","\u1017\u1019\u102C\u1015\u103C\u100A\u103A","\u1019\u103C\u1014\u103A\u1019\u102C","\u1019\u103C\u1014\u103A\u1019\u102C\u1014\u102D\u102F\u1004\u103A\u1004\u1036","\u1019\u103C\u1014\u103A\u1019\u102C\u1014\u102D\u102F\u1004\u103A\u1004\u1036\u1010\u1031\u102C\u103A","\u1019\u103C\u1014\u103A\u1019\u102C\u1015\u103C\u100A\u103A"]},{iso3:"MNE",iso2:"ME",m49:"499",name:"Montenegro",aliases:["\u{1F1F2}\u{1F1EA}","crna cora","\u0446\u0440\u043D\u0430 \u0433\u043E\u0440\u0430"]},{iso3:"MNG",iso2:"MN",m49:"496",name:"Mongolia",aliases:["\u{1F1F2}\u{1F1F3}","bugd nayramdah mongol ard uls","mongol uls","state of mongolia","\u043C\u043E\u043D\u0433\u043E\u043B","\u043C\u043E\u043D\u0433\u043E\u043B \u0443\u043B\u0441","\u182E\u1824\u1829\u182D\u1824\u182F \u1824\u182F\u1824\u1830"]},{iso3:"MNP",iso2:"MP",m49:"580",name:"Northern Mariana Islands",aliases:["\u{1F1F2}\u{1F1F5}","cnmi","commonwealth of the northern maria islands","commonwealth of the northern mariana islands","northern marianas","notte marianas","sankattan siha na islas marianas"]},{iso3:"MOZ",iso2:"MZ",m49:"508",name:"Mozambique",aliases:["\u{1F1F2}\u{1F1FF}","mocambique","republic of mozambique","republica de mocambique"]},{iso3:"MRT",iso2:"MR",m49:"478",name:"Mauritania",aliases:["\u{1F1F2}\u{1F1F7}","islamic republic of mauritania","\u0627\u0644\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u0627\u0644\u0625\u0633\u0644\u0627\u0645\u064A\u0629 \u0627\u0644\u0645\u0648\u0631\u064A\u062A\u0627\u0646\u064A\u0629","\u0645\u0648\u0631\u064A\u062A\u0627\u0646\u064A\u0627"]},{iso3:"MSR",iso2:"MS",m49:"500",name:"Montserrat",aliases:["\u{1F1F2}\u{1F1F8}","island of montserrat"]},{iso3:"MTQ",iso2:"MQ",m49:"474",name:"Martinique",aliases:["\u{1F1F2}\u{1F1F6}","territorial collectivity of martinique"]},{iso3:"MUS",iso2:"MU",m49:"480",name:"Mauritius",aliases:["\u{1F1F2}\u{1F1FA}","ile maurice","la republique de maurice","maurice","moris","republic of mauritius","republique de maurice"]},{iso3:"MWI",iso2:"MW",m49:"454",name:"Malawi",aliases:["\u{1F1F2}\u{1F1FC}","republic of malawi"]},{iso3:"MYS",iso2:"MY",m49:"458",name:"Malaysia",aliases:["\u{1F1F2}\u{1F1FE}","federation of malaysia","malaysia federation","negara seberang tambak","persekutuan malaysia"]},{iso3:"MYT",iso2:"YT",m49:"175",name:"Mayotte",aliases:["\u{1F1FE}\u{1F1F9}","departement de mayotte","departement region de mayotte","department of mayotte"]},{iso3:"NAM",iso2:"NA",m49:"516",name:"Namibia",aliases:["\u{1F1F3}\u{1F1E6}","republic of namibia"]},{iso3:"NCL",iso2:"NC",m49:"540",name:"New Caledonia",aliases:["\u{1F1F3}\u{1F1E8}","caledonie","kanaky","kanaky nouvelle caledonie","nouvelle caledonie","territoire de la nouvelle caledonie et dependances","territoire des nouvelle caledonie et dependances","territory of new caledonia and dependencies"]},{iso3:"NER",iso2:"NE",m49:"562",name:"Niger",aliases:["\u{1F1F3}\u{1F1EA}","jamhuriyar nijar","nijar","republic niger","republic of niger","republic of the niger"]},{iso3:"NFK",iso2:"NF",m49:"574",name:"Norfolk Island",aliases:["\u{1F1F3}\u{1F1EB}","norfolk island australia","norfolk island other territories","norfolk island other territories australia","territory of norfolk island"]},{iso3:"NGA",iso2:"NG",m49:"566",name:"Nigeria",aliases:["\u{1F1F3}\u{1F1EC}","federal republic of nigeria","naija"]},{iso3:"NIC",iso2:"NI",m49:"558",name:"Nicaragua",aliases:["\u{1F1F3}\u{1F1EE}","republic of nicaragua","republica de nicaragua"]},{iso3:"NIU",iso2:"NU",m49:"570",name:"Niue",aliases:["\u{1F1F3}\u{1F1FA}"]},{iso3:"NLD",iso2:"NL",m49:"528",name:"Kingdom of the Netherlands",aliases:["\u{1F1F3}\u{1F1F1}","hollandt","kingdom of netherlands","koninkrijk der nederlanden","nederland","nederlanden","nederlandt","netherlands","netherlands kingdom of the"]},{iso3:"NOR",iso2:"NO",m49:"578",name:"Norway",aliases:["\u{1F1F3}\u{1F1F4}","kingdom of norway","kongeriket noreg","kongeriket norge","noreg","norge"]},{iso3:"NPL",iso2:"NP",m49:"524",name:"Nepal",aliases:["\u{1F1F3}\u{1F1F5}","bal bo","bal poi yul","bal yul","balbo","balpo","balpo yul","nipal","sanghiya loktantrik ganatantra nepal","\u0928\u0947\u092A\u093E\u0932","\u0938\u0902\u0918\u093F\u092F \u0932\u094B\u0915\u0924\u093E\u0928\u094D\u0924\u094D\u0930\u093F\u0915 \u0917\u0923\u0924\u0928\u094D\u0924\u094D\u0930 \u0928\u0947\u092A\u093E\u0932","\u0938\u0902\u0918\u093F\u092F \u0932\u094B\u0915\u0924\u093E\u0928\u094D\u0924\u094D\u0930\u093F\u0915 \u0917\u0923\u0924\u0928\u094D\u0924\u094D\u0930\u093E\u0924\u094D\u092E\u0915 \u0928\u0947\u092A\u093E\u0932","\u0938\u0902\u0918\u0940\u092F \u0932\u094B\u0915\u0924\u093E\u0928\u094D\u0924\u094D\u0930\u093F\u0915 \u0917\u0923\u0924\u0928\u094D\u0924\u094D\u0930 \u0928\u0947\u092A\u093E\u0932"]},{iso3:"NRU",iso2:"NR",m49:"520",name:"Naoero",aliases:["\u{1F1F3}\u{1F1F7}","nauru","pleasant island","republic of naoero","republic of nauru"]},{iso3:"NZL",iso2:"NZ",m49:"554",name:"New Zealand",aliases:["\u{1F1F3}\u{1F1FF}","aotearoa","aotearoa new zealand","dominion of new zealand"]},{iso3:"OMN",iso2:"OM",m49:"512",name:"Oman",aliases:["\u{1F1F4}\u{1F1F2}","sultanate of oman","uman","\u0633\u0644\u0637\u0646\u0629 \u0639\u0645\u0627\u0646","\u0639\u0645\u0627\u0646"]},{iso3:"PAK",iso2:"PK",m49:"586",name:"Pakistan",aliases:["\u{1F1F5}\u{1F1F0}","hoi quoc","islamic republic of pakistan","republic of pakistan","tay hoi","\u0627\u0633\u0644\u0627\u0645\u06CC \u062C\u0645\u06C1\u0648\u0631\u06CC\u06C1 \u067E\u0627\u06A9\u0633\u062A\u0627\u0646","\u0628\u0627\u06A9\u0633\u062A\u0627\u0646","\u067E\u0627\u06A9\u0633\u062A\u0627\u0646"]},{iso3:"PAN",iso2:"PA",m49:"591",name:"Panama",aliases:["\u{1F1F5}\u{1F1E6}","republic of panama","republica de panama"]},{iso3:"PCN",iso2:"PN",m49:"612",name:"Pitcairn",aliases:["\u{1F1F5}\u{1F1F3}","occas island","pisskern ali\u0435n","pitcairn henderson ducie and oeno islands","pitcairn island","pitcairn islands","pitkern ailen"]},{iso3:"PER",iso2:"PE",m49:"604",name:"Peru",aliases:["\u{1F1F5}\u{1F1EA}","piruw","piruw ripuwlika","republic of peru","republica del peru"]},{iso3:"PHL",iso2:"PH",m49:"608",name:"Philippines",aliases:["\u{1F1F5}\u{1F1ED}","philippine islands","republic of the philippines"]},{iso3:"PLW",iso2:"PW",m49:"585",name:"Palau",aliases:["\u{1F1F5}\u{1F1FC}","belau","peeloo","pelew","pelew islands","pellew","republic of belau","republic of palau","\u30D1\u30E9\u30AA","\u30D1\u30E9\u30AA\u5171\u548C\u56FD"]},{iso3:"PNG",iso2:"PG",m49:"598",name:"Papua New Guinea",aliases:["\u{1F1F5}\u{1F1EC}","independent state of papua new guinea","papua niugini"]},{iso3:"POL",iso2:"PL",m49:"616",name:"Poland",aliases:["\u{1F1F5}\u{1F1F1}","polska","republic of poland","rzeczpospolita polska"]},{iso3:"PRI",iso2:"PR",m49:"630",name:"Puerto Rico",aliases:["\u{1F1F5}\u{1F1F7}","boriken","borinquen","boriquen","commonwealth of puerto rico","estado libre asociado de puerto rico","free associated state of puerto rico","isla del encanto","island of enchantment","isle of enchantment","mancomunidad de puerto rico","porto rico","territorio de puerto rico","territorio estadounidense de puerto rico","territory of porto rico","territory of puerto rico"]},{iso3:"PRK",iso2:"KP",m49:"408",name:"Democratic People's Republic of Korea",aliases:["\u{1F1F0}\u{1F1F5}","choson minjujuui inmin konghwaguk","dpr korea","dprk","korea democratic peoples republic of","n korea","north korea","\uACF5\uD654\uAD6D","\uBD81\uC870\uC120","\uBD81\uD55C","\uC870\uC120","\uC870\uC120\uBBFC\uC8FC\uC8FC\uC758\uC778\uBBFC\uACF5\uD654\uAD6D"]},{iso3:"PRT",iso2:"PT",m49:"620",name:"Portugal",aliases:["\u{1F1F5}\u{1F1F9}","republica portuguesa"]},{iso3:"PRY",iso2:"PY",m49:"600",name:"Paraguay",aliases:["\u{1F1F5}\u{1F1FE}","paraguai","republic of paraguay","republica del paraguay","teta paraguai"]},{iso3:"PSE",iso2:"PS",m49:"275",name:"State of Palestine",aliases:["\u{1F1F5}\u{1F1F8}","palestine","palestine state of","palestinian authority","palestinian national authority","palestinian territory","west bank and gaza","\u0623\u0631\u0627\u0636\u064A \u0641\u0644\u0633\u0637\u064A\u0646\u064A\u0629","\u0627\u0644\u0623\u0631\u0627\u0636\u064A \u0627\u0644\u0641\u0644\u0633\u0637\u064A\u0646\u064A\u0629","\u0627\u0644\u062F\u0648\u0644\u0629 \u0627\u0644\u0641\u0644\u0633\u0637\u064A\u0646\u064A\u0629","\u0627\u0644\u0633\u0644\u0637\u0629 \u0627\u0644\u0641\u0644\u0633\u0637\u064A\u0646\u064A\u0629","\u0627\u0644\u0633\u0644\u0637\u0629 \u0627\u0644\u0648\u0637\u0646\u064A\u0629 \u0627\u0644\u0641\u0644\u0633\u0637\u064A\u0646\u064A\u0629","\u0627\u0644\u0636\u0641\u0629 \u0627\u0644\u063A\u0631\u0628\u064A\u0629 \u0648\u0642\u0637\u0627\u0639 \u063A\u0632\u0629","\u062F\u0648\u0644\u0629 \u0641\u0644\u0633\u0637\u064A\u0646","\u0641\u0644\u0633\u0637\u064A\u0646"]},{iso3:"PYF",iso2:"PF",m49:"258",name:"French Polynesia",aliases:["\u{1F1F5}\u{1F1EB}","f oh","french establishments in oceania","french oceania","french settlements in oceania","polynesie francaise","territoire de la polynesie francaise","territory of french polynesia"]},{iso3:"QAT",iso2:"QA",m49:"634",name:"Qatar",aliases:["\u{1F1F6}\u{1F1E6}","state of qatar","\u0625\u0645\u0627\u0631\u0629 \u0642\u0637\u0631","\u062F\u0648\u0644\u0629 \u0642\u0637\u0631","\u0642\u0637\u0631"]},{iso3:"REU",iso2:"RE",m49:"638",name:"R\xE9union",aliases:["\u{1F1F7}\u{1F1EA}","ile bourbon","ile de la reunion","la reunion","re","region reunion","reunion island"]},{iso3:"ROU",iso2:"RO",m49:"642",name:"Romania",aliases:["\u{1F1F7}\u{1F1F4}"]},{iso3:"RUS",iso2:"RU",m49:"643",name:"Russian Federation",aliases:["\u{1F1F7}\u{1F1FA}","federation of russia","russia","\u0440\u043E\u0441\u0441\u0438\u0438\u0441\u043A\u0430\u044F \u0444\u0435\u0434\u0435\u0440\u0430\u0446\u0438\u044F","\u0440\u043E\u0441\u0441\u0438\u044F","\u0440\u0444"]},{iso3:"RWA",iso2:"RW",m49:"646",name:"Rwanda",aliases:["\u{1F1F7}\u{1F1FC}","igihugu cyimisozi igihumbi","jamhuri ya rwanda","la republique du rwanda","land of a thousand hills","republic of rwanda","republika yu rwanda","republique du rwanda","republique rwandaise","repubulika yu rwanda","u rwanda"]},{iso3:"SAU",iso2:"SA",m49:"682",name:"Saudi Arabia",aliases:["\u{1F1F8}\u{1F1E6}","kingdom of saudi arabia","\u0627\u0644\u062F\u0648\u0644\u0629 \u0627\u0644\u0633\u0639\u0648\u062F\u064A\u0629","\u0627\u0644\u062F\u0648\u0644\u0647 \u0627\u0644\u0633\u0639\u0648\u062F\u064A\u0647","\u0627\u0644\u0633\u0639\u0648\u062F\u064A\u0629","\u0627\u0644\u0633\u0639\u0648\u062F\u064A\u0647","\u0627\u0644\u0639\u0631\u0628\u064A\u0629 \u0627\u0644\u0633\u0639\u0648\u062F\u064A\u0629","\u0627\u0644\u0645\u0645\u0644\u0643\u0629","\u0627\u0644\u0645\u0645\u0644\u0643\u0629 \u0627\u0644\u0633\u0639\u0648\u062F\u064A\u0629","\u0627\u0644\u0645\u0645\u0644\u0643\u0629 \u0627\u0644\u0639\u0631\u0628\u064A\u0629","\u0627\u0644\u0645\u0645\u0644\u0643\u0629 \u0627\u0644\u0639\u0631\u0628\u064A\u0629 \u0627\u0644\u0633\u0639\u0648\u062F\u064A\u0629","\u0627\u0644\u0645\u0645\u0644\u0643\u0647","\u0627\u0644\u0645\u0645\u0644\u0643\u0647 \u0627\u0644\u0639\u0631\u0628\u064A\u0647 \u0627\u0644\u0633\u0639\u0648\u062F\u064A\u0647","\u0628\u0644\u0627\u062F \u0627\u0644\u062D\u0631\u0645\u064A\u0646 \u0627\u0644\u0634\u0631\u064A\u0641\u064A\u0646","\u062F\u0648\u0644\u0629 \u0622\u0644 \u0633\u0639\u0648\u062F","\u0633\u0639\u0648\u062F\u064A\u0629","\u0633\u0639\u0648\u062F\u064A\u0647","\u0645\u0646\u0628\u0639 \u0627\u0644\u0631\u0633\u0627\u0644\u0629","\u0645\u0647\u0628\u0637 \u0627\u0644\u0648\u062D\u064A"]},{iso3:"SDN",iso2:"SD",m49:"729",name:"Sudan",aliases:["\u{1F1F8}\u{1F1E9}","al sudan","as sudan","north sudan","republic of sudan","republic of the sudan","soudan","\u0627\u0644\u0633\u0648\u062F\u0627\u0646","\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u0627\u0644\u0633\u0648\u062F\u0627\u0646"]},{iso3:"SEN",iso2:"SN",m49:"686",name:"Senegal",aliases:["\u{1F1F8}\u{1F1F3}","la republique du senegal","republic of senegal","republique du senegal","sen","senegaal"]},{iso3:"SGP",iso2:"SG",m49:"702",name:"Singapore",aliases:["\u{1F1F8}\u{1F1EC}","garden city","lion city","republic of singapore","republik singapura","singapore city","singapura","spore","\u0B9A\u0BBF\u0B99\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0BC2\u0BB0\u0BCD","\u0B9A\u0BBF\u0B99\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0BC2\u0BB0\u0BCD \u0B95\u0BC1\u0B9F\u0BBF\u0BAF\u0BB0\u0B9A\u0BC1","\u0B9A\u0BBF\u0B99\u0BCD\u0B95\u0BC8","\u0BB8\u0BBF\u0B99\u0BCD\u0B95\u0BAA\u0BC2\u0BB0\u0BCD"]},{iso3:"SGS",iso2:"GS",m49:"239",name:"South Georgia and the South Sandwich Islands",aliases:["\u{1F1EC}\u{1F1F8}","falkland islands dependencies","sgssi","south georgia","south georgia & south sandwich islands","south sandwich islands"]},{iso3:"SHN",iso2:"SH",m49:"654",name:"Saint Helena",aliases:["\u{1F1F8}\u{1F1ED}","ascension","saint helena and dependencies","saint helena ascension and tristan da cunha","tristan da cunha"]},{iso3:"SJM",iso2:"SJ",m49:"744",name:"Svalbard and Jan Mayen Islands",aliases:["\u{1F1F8}\u{1F1EF}","jan mayen","svalbard","svalbard and jan mayen","svalbard og jan mayen"]},{iso3:"SLB",iso2:"SB",m49:"090",name:"Solomon Islands",aliases:["\u{1F1F8}\u{1F1E7}"]},{iso3:"SLE",iso2:"SL",m49:"694",name:"Sierra Leone",aliases:["\u{1F1F8}\u{1F1F1}","republic of sierra leone"]},{iso3:"SLV",iso2:"SV",m49:"222",name:"El Salvador",aliases:["\u{1F1F8}\u{1F1FB}","republic of el salvador","republica de el salvador","salvador"]},{iso3:"SMR",iso2:"SM",m49:"674",name:"San Marino",aliases:["\u{1F1F8}\u{1F1F2}","most serene republic of san marino","repubblica di san marino","serenissima repubblica di san marino"]},{iso3:"SOM",iso2:"SO",m49:"706",name:"Somalia",aliases:["\u{1F1F8}\u{1F1F4}","as sumal","federal republic of somalia","jamhuuriyadda federaalka soomaaliya","jamhuuriyadda soomaaliyeed","soomaaliya","soomaaliyeey toosoo","\u0627\u0644\u0635\u0648\u0645\u0627\u0644","\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u0627\u0644\u0635\u0648\u0645\u0627\u0644","\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u0627\u0644\u0635\u0648\u0645\u0627\u0644 \u0627\u0644\u062F\u064A\u0645\u0648\u0642\u0631\u0627\u0637\u064A\u0629","\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u0627\u0644\u0635\u0648\u0645\u0627\u0644 \u0627\u0644\u0641\u064A\u062F\u0631\u0627\u0644\u064A\u0629","\u0635\u0648\u0645\u0627\u0644"]},{iso3:"SPM",iso2:"PM",m49:"666",name:"Saint Pierre and Miquelon",aliases:["\u{1F1F5}\u{1F1F2}","collectivite territoriale de saint pierre et miquelon","miquelon","saint pierre","saint pierre et miquelon","territorial collectivity of saint pierre and miquelon"]},{iso3:"SRB",iso2:"RS",m49:"688",name:"Serbia",aliases:["\u{1F1F7}\u{1F1F8}","republic of serbia","republika srbija","\u0440\u0435\u043F\u0443\u0431\u043B\u0438\u043A\u0430 \u0441\u0440\u0431\u0438\u0458\u0430","\u0441\u0440\u0431\u0438\u0458\u0430"]},{iso3:"SSD",iso2:"SS",m49:"728",name:"South Sudan",aliases:["\u{1F1F8}\u{1F1F8}","republic of south sudan","southern sudan"]},{iso3:"STP",iso2:"ST",m49:"678",name:"Sao Tome and Principe",aliases:["\u{1F1F8}\u{1F1F9}","democratic republic of sao tome and principe","principe","republica democratica de sao tome e principe","sao tome","sao tome e principe","sao tome og principe"]},{iso3:"SUR",iso2:"SR",m49:"740",name:"Suriname",aliases:["\u{1F1F8}\u{1F1F7}","dutch guiana","republic of surinam","republic of suriname","republiek suriname","surinam","surrinam"]},{iso3:"SVK",iso2:"SK",m49:"703",name:"Slovakia",aliases:["\u{1F1F8}\u{1F1F0}","slovak republic","slovenska republika","slovensko"]},{iso3:"SVN",iso2:"SI",m49:"705",name:"Slovenia",aliases:["\u{1F1F8}\u{1F1EE}","republic of slovenia","republika slovenija","slovenija"]},{iso3:"SWE",iso2:"SE",m49:"752",name:"Sweden",aliases:["\u{1F1F8}\u{1F1EA}","kingdom of sweden","konungadomet sverige","konungariket sverige","kungadomet sverige","kungariket sverige","sverige","swedish kingdom"]},{iso3:"SWZ",iso2:"SZ",m49:"748",name:"Eswatini",aliases:["\u{1F1F8}\u{1F1FF}","kingdom of eswatini","kingdom of swaziland","swaziland","umbuso weswatini"]},{iso3:"SXM",iso2:"SX",m49:"534",name:"Sint Maarten (Dutch part)",aliases:["\u{1F1F8}\u{1F1FD}","country of sint maarten","eilandgebied sint maarten","land sint maarten","saint maarten","saint martin dutch part","sint maarten","sint martin"]},{iso3:"SYC",iso2:"SC",m49:"690",name:"Seychelles",aliases:["\u{1F1F8}\u{1F1E8}","la republique des seychelles","repiblik sesel","republic of seychelles","republique des seychelles"]},{iso3:"SYR",iso2:"SY",m49:"760",name:"Syrian Arab Republic",aliases:["\u{1F1F8}\u{1F1FE}","surya","syria","\u0627\u0644\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u0627\u0644\u0639\u0631\u0628\u064A\u0629 \u0627\u0644\u0633\u0648\u0631\u064A\u0629","\u0627\u0644\u0634\u0627\u0645","\u0633\u0648\u0631\u064A\u0627","\u0633\u0648\u0631\u064A\u0629"]},{iso3:"TCA",iso2:"TC",m49:"796",name:"Turks and Caicos Islands",aliases:["\u{1F1F9}\u{1F1E8}","caicos","caicos islands","turks","turks & caicos","turks islands"]},{iso3:"TCD",iso2:"TD",m49:"148",name:"Chad",aliases:["\u{1F1F9}\u{1F1E9}","la republique du tchad","republic of chad","republique du tchad","tchad","\u062A\u0634\u0627\u062F","\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u062A\u0634\u0627\u062F"]},{iso3:"TGO",iso2:"TG",m49:"768",name:"Togo",aliases:["\u{1F1F9}\u{1F1EC}","la republique togolaise","republique togolaise","togolese republic"]},{iso3:"THA",iso2:"TH",m49:"764",name:"Thailand",aliases:["\u{1F1F9}\u{1F1ED}","kingdom of siam","kingdom of thailand","siam","thai","\u0E44\u0E17\u0E22","\u0E1B\u0E23\u0E30\u0E40\u0E17\u0E28\u0E44\u0E17\u0E22","\u0E1B\u0E23\u0E30\u0E40\u0E17\u0E28\u0E2A\u0E22\u0E32\u0E21","\u0E40\u0E21\u0E37\u0E2D\u0E07\u0E44\u0E17\u0E22","\u0E23\u0E32\u0E0A\u0E2D\u0E32\u0E13\u0E32\u0E08\u0E31\u0E01\u0E23\u0E44\u0E17\u0E22","\u0E23\u0E32\u0E0A\u0E2D\u0E32\u0E13\u0E32\u0E08\u0E31\u0E01\u0E23\u0E2A\u0E22\u0E32\u0E21","\u0E2A\u0E22\u0E32\u0E21"]},{iso3:"TJK",iso2:"TJ",m49:"762",name:"Tajikistan",aliases:["\u{1F1F9}\u{1F1EF}","jumhurii tojikiston","republic of tajikistan","\u0442\u043E\u04B7\u0438\u043A\u0438\u0441\u0442\u043E\u043D","\u0442\u04B7","\u0442\u04B7\u043A","\u04B7\u0442","\u04B7\u0443\u043C\u04B3\u0443\u0440\u0438\u0438 \u0442\u043E\u04B7\u0438\u043A\u0438\u0441\u0442\u043E\u043D"]},{iso3:"TKL",iso2:"TK",m49:"772",name:"Tokelau",aliases:["\u{1F1F9}\u{1F1F0}","tokelau islands","union islands"]},{iso3:"TKM",iso2:"TM",m49:"795",name:"Turkmenistan",aliases:["\u{1F1F9}\u{1F1F2}"]},{iso3:"TLS",iso2:"TL",m49:"626",name:"Timor-Leste",aliases:["\u{1F1F9}\u{1F1F1}","democratic republic of timor leste","east timor","republica democratica de timor leste","republika demokratika timor lorosae","timor loro sae","timor lorosae"]},{iso3:"TON",iso2:"TO",m49:"776",name:"Tonga",aliases:["\u{1F1F9}\u{1F1F4}","friendly islands","kingdom of tonga","puleanga fakatui o tonga","tonga islands"]},{iso3:"TTO",iso2:"TT",m49:"780",name:"Trinidad and Tobago",aliases:["\u{1F1F9}\u{1F1F9}","republic of trinidad and tobago","tobago","trinidad"]},{iso3:"TUN",iso2:"TN",m49:"788",name:"Tunisia",aliases:["\u{1F1F9}\u{1F1F3}","republic of tunisia","tunisian republic","\u0627\u0644\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u0627\u0644\u062A\u0648\u0646\u0633\u064A\u0629","\u062A\u0648\u0646\u0633","\u062A\u0648\u0646\u0633 \u0627\u0644\u062E\u0636\u0631\u0627\u0621"]},{iso3:"TUR",iso2:"TR",m49:"792",name:"T\xFCrkiye",aliases:["\u{1F1F9}\u{1F1F7}","republic of turkey","republic of turkiye","turkey","turkiye cumhuriyeti"]},{iso3:"TUV",iso2:"TV",m49:"798",name:"Tuvalu",aliases:["\u{1F1F9}\u{1F1FB}","ellice islands"]},{iso3:"TWN",iso2:"TW",m49:"158",name:"Taiwan",aliases:["\u{1F1F9}\u{1F1FC}","chinese republic","chinese taipei","chunghwa minkuo","chunghwa minkwo","conghwaminku","cunghwa minkwo","cyukamingkok","formosa","nanasian","nationalist china","republic of china","republic of china taiwan","roc","taivang","taiwan province of china","taiwan roc","taywan","taywang","teywan","\u4E2D\u83EF\u6C11\u570B","\u4E2D\u83EF\u6C11\u570B\uFF08\u81FA\u7063\uFF09","\u4E2D\u83EF\u81FA\u5317","\u53F0\u7063","\u81FA\u6F8E\u91D1\u99AC","\u81FA\u7063"]},{iso3:"TZA",iso2:"TZ",m49:"834",name:"United Republic of Tanzania",aliases:["\u{1F1F9}\u{1F1FF}","jamhuri ya muungano wa tanganyika na zanzibar","jamhuri ya muungano wa tanzania","tanzania","tanzania jamhuri ya muungano wa","tanzania united republic of","united republic of tanganyika and zanzibar"]},{iso3:"UGA",iso2:"UG",m49:"800",name:"Uganda",aliases:["\u{1F1FA}\u{1F1EC}","jamhuri ya uganda","lulu ya afrika","ouganda","pearl of africa","republic of uganda","ugandah"]},{iso3:"UKR",iso2:"UA",m49:"804",name:"Ukraine",aliases:["\u{1F1FA}\u{1F1E6}","ukr","ukraina","ukrainia","ukrayina","\u0432\u043A\u0440\u0430\u0456\u043D\u0430","\u0443\u043A\u0440\u0430\u0456\u043D\u0430"]},{iso3:"UMI",iso2:"UM",m49:"581",name:"United States Minor Outlying Islands",aliases:["\u{1F1FA}\u{1F1F2}","us minor outlying islands","us outlying islands","usmoi"]},{iso3:"URY",iso2:"UY",m49:"858",name:"Uruguay",aliases:["\u{1F1FA}\u{1F1FE}","eastern republic of uruguay","oriental republic of uruguay"]},{iso3:"USA",iso2:"US",m49:"840",name:"United States of America",aliases:["\u{1F1FA}\u{1F1F8}","amelika","amelika hui pu ia","amelika huipuia","amelika mokuaina hui pu ia","america","eeuu","eeuu de america","estados unidos","estados unidos de america","los estados","los estados unidos","los estados unidos de america","mokuaina hui pu ia","union americana","united states","us","us of a","us of america","usa"]},{iso3:"UZB",iso2:"UZ",m49:"860",name:"Uzbekistan",aliases:["\u{1F1FA}\u{1F1FF}","ozbek","ozbekiston","ozbekiston respublikasi","republic of uzbekistan","uzbekiston respublikasi"]},{iso3:"VAT",iso2:"VA",m49:"336",name:"Holy See",aliases:["\u{1F1FB}\u{1F1E6}","citta del vaticano","civitas vaticana","colle vaticano","papal state","santa sede citta del vaticano","state of vatican city","stato della citta del vaticano","status civitatis vaticanae","status civitatis vatican\xE6","vatican","vatican city","vatican city state","vaticano"]},{iso3:"VCT",iso2:"VC",m49:"670",name:"Saint Vincent and the Grenadines",aliases:["\u{1F1FB}\u{1F1E8}","grenadines","saint vincent","saint vincent and grenadines"]},{iso3:"VEN",iso2:"VE",m49:"862",name:"Venezuela (Bolivarian Republic of)",aliases:["\u{1F1FB}\u{1F1EA}","bolivarian republic of venezuela","br venezuela","estados unidos de venezuela","rb venezuela","republic of venezuela","republica bolivariana de venezuela","republica de venezuela","venezuela"]},{iso3:"VGB",iso2:"VG",m49:"092",name:"British Virgin Islands",aliases:["\u{1F1FB}\u{1F1EC}","bvi","virgin islands british","virgin islands of the united kingdom","virgin islands united kingdom"]},{iso3:"VIR",iso2:"VI",m49:"850",name:"United States Virgin Islands",aliases:["\u{1F1FB}\u{1F1EE}","american virgin islands","us virgin islands","virgin islands of the united states","virgin islands us"]},{iso3:"VNM",iso2:"VN",m49:"704",name:"Viet Nam",aliases:["\u{1F1FB}\u{1F1F3}","chxhcn viet nam","chxhcnvn","cong hoa xa hoi chu nghia viet nam","socialist republic of viet nam","socialist republic of vietnam","vietnam"]},{iso3:"VUT",iso2:"VU",m49:"548",name:"Vanuatu",aliases:["\u{1F1FB}\u{1F1FA}","la republique du vanuatu","republic of vanuatu","republique de vanuatu","ripablik blong vanuatu"]},{iso3:"WLF",iso2:"WF",m49:"876",name:"Wallis and Futuna Islands",aliases:["\u{1F1FC}\u{1F1EB}","collectivite des iles wallis et futuna","emeni simete","futuna","iles wallis et futuna","makape papilio","territoire de wallis et futuna","territoire des iles wallis et futuna","wallis","wallis & futuna","wallis et futuna"]},{iso3:"WSM",iso2:"WS",m49:"882",name:"Samoa",aliases:["\u{1F1FC}\u{1F1F8}","independent state of samoa","malo saoloto tutoatasi o samoa","samoa i sisifo","western samoa"]},{iso3:"YEM",iso2:"YE",m49:"887",name:"Yemen",aliases:["\u{1F1FE}\u{1F1EA}","rep yemen","republic of yemen","\u0627\u0644\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u0627\u0644\u064A\u0645\u0646\u064A\u0629","\u0627\u0644\u064A\u0645\u0646","\u062F\u0648\u0644\u0629 \u0627\u0644\u064A\u0645\u0646"]},{iso3:"ZAF",iso2:"ZA",m49:"710",name:"South Africa",aliases:["\u{1F1FF}\u{1F1E6}","aferika borwa","aforika borwa","afrika boroa","afrika borwa","afrika dzonga","afurika tshipembe","emzantsi afrika","iningizimu afrika","iriphabhulikhi ye ningizimu afrika","iriphabhulikhi yeningizimu afrika","iriphabhuliki yase ningizimu afrika","iriphabliki yasemzantsi afrika","iriphabliki yaseningizimu afrika","iriphabliki yom zantsi afrika","isewula afrika","repabliki ya afrika borwa","rephaboliki ya aforika borwa","rephaboliki ya afrika borwa","republic of south africa","republiek van suid afrika","riphabliki ra afrika dzonga","rsa","suid afrika","umzansi","umzantsi afrika","unie van suid afrika","union of south africa"]},{iso3:"ZMB",iso2:"ZM",m49:"894",name:"Zambia",aliases:["\u{1F1FF}\u{1F1F2}","northern rhodesia","republic of zambia"]},{iso3:"ZWE",iso2:"ZW",m49:"716",name:"Zimbabwe",aliases:["\u{1F1FF}\u{1F1FC}","ezimbabwe","izimbabwe","republic of zimbabwe","rhodesia","southern rhodesia","zimbabwe rhodesia","zimbagwe"]}];function HQ(e){return e.normalize("NFD").replace(/[\u0300-\u036F]/g,"").normalize("NFC").toLowerCase().replace(/[\u064B-\u065F]/g,"").replace(/['\u2018\u2019\u02BB\u02BC\u02BD\u02C8\u2032`]/g,"").replace(/&/g," and ").replace(/([,(])\s*the\b/g,"$1").replace(/[.(),[\]]/g,"").replace(/[-\u2013\u2014]/g," ").replace(/\bst\b/g,"saint").trim().replace(/\s+/g," ").replace(/^the\s+/,"")}function _Ue(e){let t=new Map,r=new Map,i=new Map;for(let s of e)t.set(s.iso3,s),s.iso2&&r.set(s.iso2,s),s.m49&&i.set(s.m49,s);let n=new Map;for(let s of e)for(let l of[s.name,...s.aliases]){let u=HQ(l),f=n.get(u);if(f!==void 0&&f!==s.iso3)throw new Error(`Duplicate name/alias "${u}": ${f} vs ${s.iso3}`);n.set(u,s.iso3)}function a(s){if(s==null)return;let l=String(s).trim();if(!l)return;if(/^\d+$/.test(l)){let f=i.get(String(parseInt(l,10)).padStart(3,"0"));if(f)return f}if(/^[A-Za-z]{2}$/.test(l)){let f=r.get(l.toUpperCase());if(f)return f}if(/^[A-Za-z]{3}$/.test(l)){let f=t.get(l.toUpperCase());if(f)return f}let u=n.get(HQ(l));return u===void 0?void 0:t.get(u)}function o(s){var l;return(l=a(s))==null?void 0:l.iso3}return{lookup:a,lookupAlpha3:o,byAlpha3:t,byAlpha2:r,byM49:i}}var PE=_Ue(bUe),Ysr=PE.lookup,Xsr=PE.lookupAlpha3,Zsr=PE.byAlpha3,Ksr=PE.byAlpha2,Jsr=PE.byM49});var yR=K(Yu=>{"use strict";Object.defineProperty(Yu,"__esModule",{value:!0});var Pc=63710088e-1,$Q={centimeters:Pc*100,centimetres:Pc*100,cm:Pc*100,degrees:360/(2*Math.PI),deg:360/(2*Math.PI),feet:Pc*3.28084,ft:Pc*3.28084,inches:Pc*39.37,in:Pc*39.37,kilometers:Pc/1e3,kilometres:Pc/1e3,km:Pc/1e3,meters:Pc,metres:Pc,m:Pc,miles:Pc/1609.344,mi:Pc/1609.344,millimeters:Pc*1e3,millimetres:Pc*1e3,mm:Pc*1e3,nauticalmiles:Pc/1852,nmi:Pc/1852,radians:1,rad:1,yards:Pc*1.0936,yd:Pc*1.0936},WQ={acres:247105e-9,ac:247105e-9,centimeters:1e4,centimetres:1e4,cm:1e4,feet:10.763910417,ft:10.763910417,hectares:1e-4,ha:1e-4,inches:1550.003100006,in:1550.003100006,kilometers:1e-6,kilometres:1e-6,km:1e-6,meters:1,metres:1,m:1,miles:386e-9,mi:386e-9,nauticalmiles:29155334959812285e-23,nmi:29155334959812285e-23,millimeters:1e6,millimetres:1e6,mm:1e6,yards:1.195990046,yd:1.195990046};function q2(e,t,r={}){let i={type:"Feature"};return(r.id===0||r.id)&&(i.id=r.id),r.bbox&&(i.bbox=r.bbox),i.properties=t||{},i.geometry=e,i}function Qsr(e,t,r={}){switch(e){case"Point":return YQ(t).geometry;case"LineString":return ZQ(t).geometry;case"Polygon":return XQ(t).geometry;case"MultiPoint":return MUe(t).geometry;case"MultiLineString":return TUe(t).geometry;case"MultiPolygon":return SUe(t).geometry;default:throw new Error(e+" is invalid")}}function YQ(e,t,r={}){if(!e)throw new Error("coordinates is required");if(!Array.isArray(e))throw new Error("coordinates must be an Array");if(e.length<2)throw new Error("coordinates must be at least 2 numbers long");if(!vR(e[0])||!vR(e[1]))throw new Error("coordinates must contain numbers");return q2({type:"Point",coordinates:e},t,r)}function elr(e,t,r={}){return mR(e.map(i=>YQ(i,t)),r)}function XQ(e,t,r={}){for(let n of e){if(n.length<4)throw new Error("Each LinearRing of a Polygon must have 4 or more Positions.");if(n[n.length-1].length!==n[0].length)throw new Error("First and last Position are not equivalent.");for(let a=0;aXQ(i,t)),r)}function ZQ(e,t,r={}){if(e.length<2)throw new Error("coordinates must be an array of two or more positions");return q2({type:"LineString",coordinates:e},t,r)}function rlr(e,t,r={}){return mR(e.map(i=>ZQ(i,t)),r)}function mR(e,t={}){let r={type:"FeatureCollection"};return t.id&&(r.id=t.id),t.bbox&&(r.bbox=t.bbox),r.features=e,r}function TUe(e,t,r={}){return q2({type:"MultiLineString",coordinates:e},t,r)}function MUe(e,t,r={}){return q2({type:"MultiPoint",coordinates:e},t,r)}function SUe(e,t,r={}){return q2({type:"MultiPolygon",coordinates:e},t,r)}function ilr(e,t,r={}){return q2({type:"GeometryCollection",geometries:e},t,r)}function nlr(e,t=0){if(t&&!(t>=0))throw new Error("precision must be a positive number");let r=Math.pow(10,t||0);return Math.round(e*r)/r}function EUe(e,t="kilometers"){let r=$Q[t];if(!r)throw new Error(t+" units is invalid");return e*r}function KQ(e,t="kilometers"){let r=$Q[t];if(!r)throw new Error(t+" units is invalid");return e/r}function alr(e,t){return kUe(KQ(e,t))}function olr(e){let t=e%360;return t<0&&(t+=360),t}function slr(e){return e=e%360,e>180?e-360:e<-180?e+360:e}function kUe(e){return e%(2*Math.PI)*180/Math.PI}function llr(e){return e%360*Math.PI/180}function ulr(e,t="kilometers",r="kilometers"){if(!(e>=0))throw new Error("length must be a positive number");return EUe(KQ(e,t),r)}function flr(e,t="meters",r="kilometers"){if(!(e>=0))throw new Error("area must be a positive number");let i=WQ[t];if(!i)throw new Error("invalid original units");let n=WQ[r];if(!n)throw new Error("invalid final units");return e/i*n}function vR(e){return!isNaN(e)&&e!==null&&!Array.isArray(e)}function clr(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function pR(e){delete e.bbox,e.type==="Feature"?e.geometry&&pR(e.geometry):e.type==="FeatureCollection"?e.features.forEach(pR):e.type==="GeometryCollection"&&e.geometries.forEach(pR)}function hlr(e){if(!e)throw new Error("bbox is required");if(!Array.isArray(e))throw new Error("bbox must be an Array");if(e.length!==4&&e.length!==6)throw new Error("bbox must be an Array of 4 or 6 numbers");e.forEach(t=>{if(!vR(t))throw new Error("bbox must only contain numbers")})}function dlr(e){if(!e)throw new Error("id is required");if(["string","number"].indexOf(typeof e)===-1)throw new Error("id must be a number or a string")}Yu.areaFactors=WQ;Yu.azimuthToBearing=slr;Yu.bearingToAzimuth=olr;Yu.convertArea=flr;Yu.convertLength=ulr;Yu.degreesToRadians=llr;Yu.earthRadius=Pc;Yu.factors=$Q;Yu.feature=q2;Yu.featureCollection=mR;Yu.geometry=Qsr;Yu.geometryCollection=ilr;Yu.isNumber=vR;Yu.isObject=clr;Yu.lengthToDegrees=alr;Yu.lengthToRadians=KQ;Yu.lineString=ZQ;Yu.lineStrings=rlr;Yu.multiLineString=TUe;Yu.multiPoint=MUe;Yu.multiPolygon=SUe;Yu.point=YQ;Yu.points=elr;Yu.polygon=XQ;Yu.polygons=tlr;Yu.radiansToDegrees=kUe;Yu.radiansToLength=EUe;Yu.removeBbox=pR;Yu.round=nlr;Yu.validateBBox=hlr;Yu.validateId=dlr});var xR=K(Bh=>{"use strict";Object.defineProperty(Bh,"__esModule",{value:!0});var X0=yR();function zE(e,t,r){if(e!==null)for(var i,n,a,o,s,l,u,f=0,c=0,h,d=e.type,p=d==="FeatureCollection",v=d==="Feature",y=p?e.features.length:1,m=0;ml||p>u||v>f){s=c,l=i,u=p,f=v,a=0;return}var y=X0.lineString.call(void 0,[s,c],r.properties);if(t(y,i,n,v,a)===!1)return!1;a++,s=c})===!1)return!1}}})}function blr(e,t,r){var i=r,n=!1;return FUe(e,function(a,o,s,l,u){n===!1&&r===void 0?i=a:i=t(i,a,o,s,l,u),n=!0}),i}function LUe(e,t){if(!e)throw new Error("geojson is required");gR(e,function(r,i,n){if(r.geometry!==null){var a=r.geometry.type,o=r.geometry.coordinates;switch(a){case"LineString":if(t(r,i,n,0,0)===!1)return!1;break;case"Polygon":for(var s=0;s{"use strict";Object.defineProperty(bR,"__esModule",{value:!0});var PUe=yR(),Tlr=xR();function RUe(e){return Tlr.geomReduce.call(void 0,e,(t,r)=>t+Mlr(r),0)}function Mlr(e){let t=0,r;switch(e.type){case"Polygon":return zUe(e.coordinates);case"MultiPolygon":for(r=0;r0){t+=Math.abs(IUe(e[0]));for(let r=1;r=t?(i+2)%t:i+2],s=n[0]*QQ,l=a[1]*QQ,u=o[0]*QQ;r+=(u-s)*Math.sin(l),i++}return r*Slr}var Elr=RUe;bR.area=RUe;bR.default=Elr});var OUe=K(_R=>{"use strict";Object.defineProperty(_R,"__esModule",{value:!0});var klr=yR(),Clr=xR();function qUe(e,t={}){let r=0,i=0,n=0;return Clr.coordEach.call(void 0,e,function(a){r+=a[0],i+=a[1],n++},!0),klr.point.call(void 0,[r/n,i/n],t.properties)}var Dlr=qUe;_R.centroid=qUe;_R.default=Dlr});var VUe=K((wR,NUe)=>{(function(e,t){t(typeof wR=="object"&&typeof NUe!="undefined"?wR:e.d3=e.d3||{})})(wR,(function(e){"use strict";function t(N,V){return NV?1:N>=V?0:NaN}function r(N){return N.length===1&&(N=i(N)),{left:function(V,J,H,$){for(H==null&&(H=0),$==null&&($=V.length);H<$;){var te=H+$>>>1;N(V[te],J)<0?H=te+1:$=te}return H},right:function(V,J,H,$){for(H==null&&(H=0),$==null&&($=V.length);H<$;){var te=H+$>>>1;N(V[te],J)>0?$=te:H=te+1}return H}}}function i(N){return function(V,J){return t(N(V),J)}}var n=r(t),a=n.right,o=n.left;function s(N,V){V==null&&(V=l);for(var J=0,H=N.length-1,$=N[0],te=new Array(H<0?0:H);JN?1:V>=N?0:NaN}function c(N){return N===null?NaN:+N}function h(N,V){var J=N.length,H=0,$=-1,te=0,ie,de,ge=0;if(V==null)for(;++$1)return ge/(H-1)}function d(N,V){var J=h(N,V);return J&&Math.sqrt(J)}function p(N,V){var J=N.length,H=-1,$,te,ie;if(V==null){for(;++H=$)for(te=ie=$;++H$&&(te=$),ie<$&&(ie=$))}else for(;++H=$)for(te=ie=$;++H$&&(te=$),ie<$&&(ie=$));return[te,ie]}var v=Array.prototype,y=v.slice,m=v.map;function w(N){return function(){return N}}function _(N){return N}function b(N,V,J){N=+N,V=+V,J=($=arguments.length)<2?(V=N,N=0,1):$<3?1:+J;for(var H=-1,$=Math.max(0,Math.ceil((V-N)/J))|0,te=new Array($);++H<$;)te[H]=N+H*J;return te}var M=Math.sqrt(50),x=Math.sqrt(10),A=Math.sqrt(2);function T(N,V,J){var H,$=-1,te,ie,de;if(V=+V,N=+N,J=+J,N===V&&J>0)return[N];if((H=V0)for(N=Math.ceil(N/de),V=Math.floor(V/de),ie=new Array(te=Math.ceil(V-N+1));++$=0?(te>=M?10:te>=x?5:te>=A?2:1)*Math.pow(10,$):-Math.pow(10,-$)/(te>=M?10:te>=x?5:te>=A?2:1)}function E(N,V,J){var H=Math.abs(V-N)/Math.max(0,J),$=Math.pow(10,Math.floor(Math.log(H)/Math.LN10)),te=H/$;return te>=M?$*=10:te>=x?$*=5:te>=A&&($*=2),Vle;)re.pop(),--Ee;var we=new Array(Ee+1),oe;for(te=0;te<=Ee;++te)oe=we[te]=[],oe.x0=te>0?re[te-1]:Ce,oe.x1=te=1)return+J(N[H-1],H-1,N);var H,$=(H-1)*V,te=Math.floor($),ie=+J(N[te],te,N),de=+J(N[te+1],te+1,N);return ie+(de-ie)*($-te)}}function D(N,V,J){return N=m.call(N,c).sort(t),Math.ceil((J-V)/(2*(k(N,.75)-k(N,.25))*Math.pow(N.length,-1/3)))}function L(N,V,J){return Math.ceil((J-V)/(3.5*d(N)*Math.pow(N.length,-1/3)))}function P(N,V){var J=N.length,H=-1,$,te;if(V==null){for(;++H=$)for(te=$;++Hte&&(te=$)}else for(;++H=$)for(te=$;++Hte&&(te=$);return te}function I(N,V){var J=N.length,H=J,$=-1,te,ie=0;if(V==null)for(;++$=0;)for(ie=N[V],J=ie.length;--J>=0;)te[--$]=ie[J];return te}function B(N,V){var J=N.length,H=-1,$,te;if(V==null){for(;++H=$)for(te=$;++H$&&(te=$)}else for(;++H=$)for(te=$;++H$&&(te=$);return te}function O(N,V){for(var J=V.length,H=new Array(J);J--;)H[J]=N[V[J]];return H}function W(N,V){if(J=N.length){var J,H=0,$=0,te,ie=N[$];for(V==null&&(V=t);++H{(function(e,t){typeof AR=="object"&&typeof UUe!="undefined"?t(AR,VUe()):(e=e||self,t(e.d3=e.d3||{},e.d3))})(AR,(function(e,t){"use strict";function r(){return new i}function i(){this.reset()}i.prototype={constructor:i,reset:function(){this.s=this.t=0},add:function(Fe){a(n,Fe,this.t),a(this,n.s,this.s),this.s?this.t+=n.t:this.s=n.t},valueOf:function(){return this.s}};var n=new i;function a(Fe,Ge,ot){var rt=Fe.s=Ge+ot,mt=rt-Ge,It=rt-mt;Fe.t=Ge-It+(ot-mt)}var o=1e-6,s=1e-12,l=Math.PI,u=l/2,f=l/4,c=l*2,h=180/l,d=l/180,p=Math.abs,v=Math.atan,y=Math.atan2,m=Math.cos,w=Math.ceil,_=Math.exp,b=Math.log,M=Math.pow,x=Math.sin,A=Math.sign||function(Fe){return Fe>0?1:Fe<0?-1:0},T=Math.sqrt,g=Math.tan;function E(Fe){return Fe>1?0:Fe<-1?l:Math.acos(Fe)}function S(Fe){return Fe>1?u:Fe<-1?-u:Math.asin(Fe)}function C(Fe){return(Fe=x(Fe/2))*Fe}function k(){}function D(Fe,Ge){Fe&&P.hasOwnProperty(Fe.type)&&P[Fe.type](Fe,Ge)}var L={Feature:function(Fe,Ge){D(Fe.geometry,Ge)},FeatureCollection:function(Fe,Ge){for(var ot=Fe.features,rt=-1,mt=ot.length;++rt=0?1:-1,mt=rt*ot,It=m(Ge),Bt=x(Ge),Ot=q*Bt,nr=j*It+Ot*m(mt),zr=Ot*rt*x(mt);B.add(y(zr,nr)),Z=Fe,j=It,q=Bt}function $(Fe){return O.reset(),z(Fe,Q),O*2}function te(Fe){return[y(Fe[1],Fe[0]),S(Fe[2])]}function ie(Fe){var Ge=Fe[0],ot=Fe[1],rt=m(ot);return[rt*m(Ge),rt*x(Ge),x(ot)]}function de(Fe,Ge){return Fe[0]*Ge[0]+Fe[1]*Ge[1]+Fe[2]*Ge[2]}function ge(Fe,Ge){return[Fe[1]*Ge[2]-Fe[2]*Ge[1],Fe[2]*Ge[0]-Fe[0]*Ge[2],Fe[0]*Ge[1]-Fe[1]*Ge[0]]}function Ie(Fe,Ge){Fe[0]+=Ge[0],Fe[1]+=Ge[1],Fe[2]+=Ge[2]}function Ce(Fe,Ge){return[Fe[0]*Ge,Fe[1]*Ge,Fe[2]*Ge]}function le(Fe){var Ge=T(Fe[0]*Fe[0]+Fe[1]*Fe[1]+Fe[2]*Fe[2]);Fe[0]/=Ge,Fe[1]/=Ge,Fe[2]/=Ge}var re,Ee,we,oe,Y,ne,ye,U,se=r(),Ae,be,me={point:ue,lineStart:ce,lineEnd:Be,polygonStart:function(){me.point=$e,me.lineStart=Ze,me.lineEnd=it,se.reset(),Q.polygonStart()},polygonEnd:function(){Q.polygonEnd(),me.point=ue,me.lineStart=ce,me.lineEnd=Be,B<0?(re=-(we=180),Ee=-(oe=90)):se>o?oe=90:se<-o&&(Ee=-90),be[0]=re,be[1]=we},sphere:function(){re=-(we=180),Ee=-(oe=90)}};function ue(Fe,Ge){Ae.push(be=[re=Fe,we=Fe]),Geoe&&(oe=Ge)}function pe(Fe,Ge){var ot=ie([Fe*d,Ge*d]);if(U){var rt=ge(U,ot),mt=[rt[1],-rt[0],0],It=ge(mt,rt);le(It),It=te(It);var Bt=Fe-Y,Ot=Bt>0?1:-1,nr=It[0]*h*Ot,zr,Wt=p(Bt)>180;Wt^(Ot*Yoe&&(oe=zr)):(nr=(nr+360)%360-180,Wt^(Ot*Yoe&&(oe=Ge))),Wt?Fent(re,we)&&(we=Fe):nt(Fe,we)>nt(re,we)&&(re=Fe):we>=re?(Fewe&&(we=Fe)):Fe>Y?nt(re,Fe)>nt(re,we)&&(we=Fe):nt(Fe,we)>nt(re,we)&&(re=Fe)}else Ae.push(be=[re=Fe,we=Fe]);Geoe&&(oe=Ge),U=ot,Y=Fe}function ce(){me.point=pe}function Be(){be[0]=re,be[1]=we,me.point=ue,U=null}function $e(Fe,Ge){if(U){var ot=Fe-Y;se.add(p(ot)>180?ot+(ot>0?360:-360):ot)}else ne=Fe,ye=Ge;Q.point(Fe,Ge),pe(Fe,Ge)}function Ze(){Q.lineStart()}function it(){$e(ne,ye),Q.lineEnd(),p(se)>o&&(re=-(we=180)),be[0]=re,be[1]=we,U=null}function nt(Fe,Ge){return(Ge-=Fe)<0?Ge+360:Ge}function Ue(Fe,Ge){return Fe[0]-Ge[0]}function xe(Fe,Ge){return Fe[0]<=Fe[1]?Fe[0]<=Ge&&Ge<=Fe[1]:Gent(rt[0],rt[1])&&(rt[1]=mt[1]),nt(mt[0],rt[1])>nt(rt[0],rt[1])&&(rt[0]=mt[0])):It.push(rt=mt);for(Bt=-1/0,ot=It.length-1,Ge=0,rt=It[ot];Ge<=ot;rt=mt,++Ge)mt=It[Ge],(Ot=nt(rt[1],mt[0]))>Bt&&(Bt=Ot,re=mt[0],we=rt[1])}return Ae=be=null,re===1/0||Ee===1/0?[[NaN,NaN],[NaN,NaN]]:[[re,Ee],[we,oe]]}var Qe,Pe,De,Ve,Le,Se,ze,st,ft,wt,At,Vt,Dt,yt,St,rr,Ke={sphere:k,point:at,lineStart:vt,lineEnd:kt,polygonStart:function(){Ke.lineStart=$t,Ke.lineEnd=or},polygonEnd:function(){Ke.lineStart=vt,Ke.lineEnd=kt}};function at(Fe,Ge){Fe*=d,Ge*=d;var ot=m(Ge);lt(ot*m(Fe),ot*x(Fe),x(Ge))}function lt(Fe,Ge,ot){++Qe,De+=(Fe-De)/Qe,Ve+=(Ge-Ve)/Qe,Le+=(ot-Le)/Qe}function vt(){Ke.point=We}function We(Fe,Ge){Fe*=d,Ge*=d;var ot=m(Ge);yt=ot*m(Fe),St=ot*x(Fe),rr=x(Ge),Ke.point=ut,lt(yt,St,rr)}function ut(Fe,Ge){Fe*=d,Ge*=d;var ot=m(Ge),rt=ot*m(Fe),mt=ot*x(Fe),It=x(Ge),Bt=y(T((Bt=St*It-rr*mt)*Bt+(Bt=rr*rt-yt*It)*Bt+(Bt=yt*mt-St*rt)*Bt),yt*rt+St*mt+rr*It);Pe+=Bt,Se+=Bt*(yt+(yt=rt)),ze+=Bt*(St+(St=mt)),st+=Bt*(rr+(rr=It)),lt(yt,St,rr)}function kt(){Ke.point=at}function $t(){Ke.point=Lr}function or(){Er(Vt,Dt),Ke.point=at}function Lr(Fe,Ge){Vt=Fe,Dt=Ge,Fe*=d,Ge*=d,Ke.point=Er;var ot=m(Ge);yt=ot*m(Fe),St=ot*x(Fe),rr=x(Ge),lt(yt,St,rr)}function Er(Fe,Ge){Fe*=d,Ge*=d;var ot=m(Ge),rt=ot*m(Fe),mt=ot*x(Fe),It=x(Ge),Bt=St*It-rr*mt,Ot=rr*rt-yt*It,nr=yt*mt-St*rt,zr=T(Bt*Bt+Ot*Ot+nr*nr),Wt=S(zr),Rt=zr&&-Wt/zr;ft+=Rt*Bt,wt+=Rt*Ot,At+=Rt*nr,Pe+=Wt,Se+=Wt*(yt+(yt=rt)),ze+=Wt*(St+(St=mt)),st+=Wt*(rr+(rr=It)),lt(yt,St,rr)}function hr(Fe){Qe=Pe=De=Ve=Le=Se=ze=st=ft=wt=At=0,z(Fe,Ke);var Ge=ft,ot=wt,rt=At,mt=Ge*Ge+ot*ot+rt*rt;return mtl?Fe+Math.round(-Fe/c)*c:Fe,Ge]}si.invert=si;function Tr(Fe,Ge,ot){return(Fe%=c)?Ge||ot?Kr(Hr(Fe),Di(Ge,ot)):Hr(Fe):Ge||ot?Di(Ge,ot):si}function vr(Fe){return function(Ge,ot){return Ge+=Fe,[Ge>l?Ge-c:Ge<-l?Ge+c:Ge,ot]}}function Hr(Fe){var Ge=vr(Fe);return Ge.invert=vr(-Fe),Ge}function Di(Fe,Ge){var ot=m(Fe),rt=x(Fe),mt=m(Ge),It=x(Ge);function Bt(Ot,nr){var zr=m(nr),Wt=m(Ot)*zr,Rt=x(Ot)*zr,er=x(nr),kr=er*ot+Wt*rt;return[y(Rt*mt-kr*It,Wt*ot-er*rt),S(kr*mt+Rt*It)]}return Bt.invert=function(Ot,nr){var zr=m(nr),Wt=m(Ot)*zr,Rt=x(Ot)*zr,er=x(nr),kr=er*mt-Rt*It;return[y(Rt*mt+er*It,Wt*ot+kr*rt),S(kr*ot-Wt*rt)]},Bt}function gn(Fe){Fe=Tr(Fe[0]*d,Fe[1]*d,Fe.length>2?Fe[2]*d:0);function Ge(ot){return ot=Fe(ot[0]*d,ot[1]*d),ot[0]*=h,ot[1]*=h,ot}return Ge.invert=function(ot){return ot=Fe.invert(ot[0]*d,ot[1]*d),ot[0]*=h,ot[1]*=h,ot},Ge}function wr(Fe,Ge,ot,rt,mt,It){if(ot){var Bt=m(Ge),Ot=x(Ge),nr=rt*ot;mt==null?(mt=Ge+rt*c,It=Ge-nr/2):(mt=qr(Bt,mt),It=qr(Bt,It),(rt>0?mtIt)&&(mt+=rt*c));for(var zr,Wt=mt;rt>0?Wt>It:Wt1&&Fe.push(Fe.pop().concat(Fe.shift()))},result:function(){var ot=Fe;return Fe=[],Ge=null,ot}}}function pr(Fe,Ge){return p(Fe[0]-Ge[0])=0;--Ot)mt.point((Rt=Wt[Ot])[0],Rt[1]);else rt(er.x,er.p.x,-1,mt);er=er.p}er=er.o,Wt=er.z,kr=!kr}while(!er.v);mt.lineEnd()}}}function Cr(Fe){if(Ge=Fe.length){for(var Ge,ot=0,rt=Fe[0],mt;++ot=0?1:-1,Fo=ho*ao,ls=Fo>l,Io=ii*ua;if(di.add(y(Io*ho*x(Fo),ci*xa+Io*m(Fo))),Bt+=ls?ao+ho*c:ao,ls^kr>=ot^xi>=ot){var Ps=ge(ie(er),ie(mi));le(Ps);var xs=ge(It,Ps);le(xs);var us=(ls^ao>=0?-1:1)*S(xs[2]);(rt>us||rt===us&&(Ps[0]||Ps[1]))&&(Ot+=ls^ao>=0?1:-1)}}return(Bt<-o||Bt0){for(nr||(mt.polygonStart(),nr=!0),mt.lineStart(),xa=0;xa1&&Oi&2&&ua.push(ua.pop().concat(ua.shift())),Wt.push(ua.filter(Me))}}return er}}function Me(Fe){return Fe.length>1}function Xe(Fe,Ge){return((Fe=Fe.x)[0]<0?Fe[1]-u-o:u-Fe[1])-((Ge=Ge.x)[0]<0?Ge[1]-u-o:u-Ge[1])}var Ye=Kt(function(){return!0},et,bt,[-l,-u]);function et(Fe){var Ge=NaN,ot=NaN,rt=NaN,mt;return{lineStart:function(){Fe.lineStart(),mt=1},point:function(It,Bt){var Ot=It>0?l:-l,nr=p(It-Ge);p(nr-l)0?u:-u),Fe.point(rt,ot),Fe.lineEnd(),Fe.lineStart(),Fe.point(Ot,ot),Fe.point(It,ot),mt=0):rt!==Ot&&nr>=l&&(p(Ge-rt)o?v((x(Ge)*(It=m(rt))*x(ot)-x(rt)*(mt=m(Ge))*x(Fe))/(mt*It*Bt)):(Ge+rt)/2}function bt(Fe,Ge,ot,rt){var mt;if(Fe==null)mt=ot*u,rt.point(-l,mt),rt.point(0,mt),rt.point(l,mt),rt.point(l,0),rt.point(l,-mt),rt.point(0,-mt),rt.point(-l,-mt),rt.point(-l,0),rt.point(-l,mt);else if(p(Fe[0]-Ge[0])>o){var It=Fe[0]0,mt=p(Ge)>o;function It(Wt,Rt,er,kr){wr(kr,Fe,ot,er,Wt,Rt)}function Bt(Wt,Rt){return m(Wt)*m(Rt)>Ge}function Ot(Wt){var Rt,er,kr,Vr,ii;return{lineStart:function(){Vr=kr=!1,ii=1},point:function(ci,li){var mi=[ci,li],xi,Oi=Bt(ci,li),ua=rt?Oi?0:zr(ci,li):Oi?zr(ci+(ci<0?l:-l),li):0;if(!Rt&&(Vr=kr=Oi)&&Wt.lineStart(),Oi!==kr&&(xi=nr(Rt,mi),(!xi||pr(Rt,xi)||pr(mi,xi))&&(mi[2]=1)),Oi!==kr)ii=0,Oi?(Wt.lineStart(),xi=nr(mi,Rt),Wt.point(xi[0],xi[1])):(xi=nr(Rt,mi),Wt.point(xi[0],xi[1],2),Wt.lineEnd()),Rt=xi;else if(mt&&Rt&&rt^Oi){var xa;!(ua&er)&&(xa=nr(mi,Rt,!0))&&(ii=0,rt?(Wt.lineStart(),Wt.point(xa[0][0],xa[0][1]),Wt.point(xa[1][0],xa[1][1]),Wt.lineEnd()):(Wt.point(xa[1][0],xa[1][1]),Wt.lineEnd(),Wt.lineStart(),Wt.point(xa[0][0],xa[0][1],3)))}Oi&&(!Rt||!pr(Rt,mi))&&Wt.point(mi[0],mi[1]),Rt=mi,kr=Oi,er=ua},lineEnd:function(){kr&&Wt.lineEnd(),Rt=null},clean:function(){return ii|(Vr&&kr)<<1}}}function nr(Wt,Rt,er){var kr=ie(Wt),Vr=ie(Rt),ii=[1,0,0],ci=ge(kr,Vr),li=de(ci,ci),mi=ci[0],xi=li-mi*mi;if(!xi)return!er&&Wt;var Oi=Ge*li/xi,ua=-Ge*mi/xi,xa=ge(ii,ci),ao=Ce(ii,Oi),ho=Ce(ci,ua);Ie(ao,ho);var Fo=xa,ls=de(ao,Fo),Io=de(Fo,Fo),Ps=ls*ls-Io*(de(ao,ao)-1);if(!(Ps<0)){var xs=T(Ps),us=Ce(Fo,(-ls-xs)/Io);if(Ie(us,ao),us=te(us),!er)return us;var Ni=Wt[0],io=Rt[0],Eo=Wt[1],oo=Rt[1],xo;io0^us[1]<(p(us[0]-Ni)l^(Ni<=us[0]&&us[0]<=io)){var Uo=Ce(Fo,(-ls+xs)/Io);return Ie(Uo,ao),[us,te(Uo)]}}}function zr(Wt,Rt){var er=rt?Fe:l-Fe,kr=0;return Wt<-er?kr|=1:Wt>er&&(kr|=2),Rt<-er?kr|=4:Rt>er&&(kr|=8),kr}return Kt(Bt,Ot,It,rt?[0,-Fe]:[-l,Fe-l])}function Ct(Fe,Ge,ot,rt,mt,It){var Bt=Fe[0],Ot=Fe[1],nr=Ge[0],zr=Ge[1],Wt=0,Rt=1,er=nr-Bt,kr=zr-Ot,Vr;if(Vr=ot-Bt,!(!er&&Vr>0)){if(Vr/=er,er<0){if(Vr0){if(Vr>Rt)return;Vr>Wt&&(Wt=Vr)}if(Vr=mt-Bt,!(!er&&Vr<0)){if(Vr/=er,er<0){if(Vr>Rt)return;Vr>Wt&&(Wt=Vr)}else if(er>0){if(Vr0)){if(Vr/=kr,kr<0){if(Vr0){if(Vr>Rt)return;Vr>Wt&&(Wt=Vr)}if(Vr=It-Ot,!(!kr&&Vr<0)){if(Vr/=kr,kr<0){if(Vr>Rt)return;Vr>Wt&&(Wt=Vr)}else if(kr>0){if(Vr0&&(Fe[0]=Bt+Wt*er,Fe[1]=Ot+Wt*kr),Rt<1&&(Ge[0]=Bt+Rt*er,Ge[1]=Ot+Rt*kr),!0}}}}}var ur=1e9,Ir=-ur;function Rr(Fe,Ge,ot,rt){function mt(zr,Wt){return Fe<=zr&&zr<=ot&&Ge<=Wt&&Wt<=rt}function It(zr,Wt,Rt,er){var kr=0,Vr=0;if(zr==null||(kr=Bt(zr,Rt))!==(Vr=Bt(Wt,Rt))||nr(zr,Wt)<0^Rt>0)do er.point(kr===0||kr===3?Fe:ot,kr>1?rt:Ge);while((kr=(kr+Rt+4)%4)!==Vr);else er.point(Wt[0],Wt[1])}function Bt(zr,Wt){return p(zr[0]-Fe)0?0:3:p(zr[0]-ot)0?2:1:p(zr[1]-Ge)0?1:0:Wt>0?3:2}function Ot(zr,Wt){return nr(zr.x,Wt.x)}function nr(zr,Wt){var Rt=Bt(zr,1),er=Bt(Wt,1);return Rt!==er?Rt-er:Rt===0?Wt[1]-zr[1]:Rt===1?zr[0]-Wt[0]:Rt===2?zr[1]-Wt[1]:Wt[0]-zr[0]}return function(zr){var Wt=zr,Rt=jt(),er,kr,Vr,ii,ci,li,mi,xi,Oi,ua,xa,ao={point:ho,lineStart:Ps,lineEnd:xs,polygonStart:ls,polygonEnd:Io};function ho(Ni,io){mt(Ni,io)&&Wt.point(Ni,io)}function Fo(){for(var Ni=0,io=0,Eo=kr.length;iort&&(es-Yo)*(rt-Uo)>(jo-Uo)*(Fe-Yo)&&++Ni:jo<=rt&&(es-Yo)*(rt-Uo)<(jo-Uo)*(Fe-Yo)&&--Ni;return Ni}function ls(){Wt=Rt,er=[],kr=[],xa=!0}function Io(){var Ni=Fo(),io=xa&&Ni,Eo=(er=t.merge(er)).length;(io||Eo)&&(zr.polygonStart(),io&&(zr.lineStart(),It(null,null,1,zr),zr.lineEnd()),Eo&&Sr(er,Ot,Ni,It,zr),zr.polygonEnd()),Wt=zr,er=kr=Vr=null}function Ps(){ao.point=us,kr&&kr.push(Vr=[]),ua=!0,Oi=!1,mi=xi=NaN}function xs(){er&&(us(ii,ci),li&&Oi&&Rt.rejoin(),er.push(Rt.result())),ao.point=ho,Oi&&Wt.lineEnd()}function us(Ni,io){var Eo=mt(Ni,io);if(kr&&Vr.push([Ni,io]),ua)ii=Ni,ci=io,li=Eo,ua=!1,Eo&&(Wt.lineStart(),Wt.point(Ni,io));else if(Eo&&Oi)Wt.point(Ni,io);else{var oo=[mi=Math.max(Ir,Math.min(ur,mi)),xi=Math.max(Ir,Math.min(ur,xi))],xo=[Ni=Math.max(Ir,Math.min(ur,Ni)),io=Math.max(Ir,Math.min(ur,io))];Ct(oo,xo,Fe,Ge,ot,rt)?(Oi||(Wt.lineStart(),Wt.point(oo[0],oo[1])),Wt.point(xo[0],xo[1]),Eo||Wt.lineEnd(),xa=!1):Eo&&(Wt.lineStart(),Wt.point(Ni,io),xa=!1)}mi=Ni,xi=io,Oi=Eo}return ao}}function Nr(){var Fe=0,Ge=0,ot=960,rt=500,mt,It,Bt;return Bt={stream:function(Ot){return mt&&It===Ot?mt:mt=Rr(Fe,Ge,ot,rt)(It=Ot)},extent:function(Ot){return arguments.length?(Fe=+Ot[0][0],Ge=+Ot[0][1],ot=+Ot[1][0],rt=+Ot[1][1],mt=It=null,Bt):[[Fe,Ge],[ot,rt]]}}}var gi=r(),ui,Qr,Ui,ln={sphere:k,point:k,lineStart:Tt,lineEnd:k,polygonStart:k,polygonEnd:k};function Tt(){ln.point=kn,ln.lineEnd=_i}function _i(){ln.point=ln.lineEnd=k}function kn(Fe,Ge){Fe*=d,Ge*=d,ui=Fe,Qr=x(Ge),Ui=m(Ge),ln.point=ti}function ti(Fe,Ge){Fe*=d,Ge*=d;var ot=x(Ge),rt=m(Ge),mt=p(Fe-ui),It=m(mt),Bt=x(mt),Ot=rt*Bt,nr=Ui*ot-Qr*rt*It,zr=Qr*ot+Ui*rt*It;gi.add(y(T(Ot*Ot+nr*nr),zr)),ui=Fe,Qr=ot,Ui=rt}function Fr(Fe){return gi.reset(),z(Fe,ln),+gi}var ji=[null,null],na={type:"LineString",coordinates:ji};function mn(Fe,Ge){return ji[0]=Fe,ji[1]=Ge,Fr(na)}var $n={Feature:function(Fe,Ge){return Qi(Fe.geometry,Ge)},FeatureCollection:function(Fe,Ge){for(var ot=Fe.features,rt=-1,mt=ot.length;++rt0&&(mt=mn(Fe[It],Fe[It-1]),mt>0&&ot<=mt&&rt<=mt&&(ot+rt-mt)*(1-Math.pow((ot-rt)/mt,2))o}).map(er)).concat(t.range(w(It/zr)*zr,mt,zr).filter(function(xi){return p(xi%Rt)>o}).map(kr))}return li.lines=function(){return mi().map(function(xi){return{type:"LineString",coordinates:xi}})},li.outline=function(){return{type:"Polygon",coordinates:[Vr(rt).concat(ii(Bt).slice(1),Vr(ot).reverse().slice(1),ii(Ot).reverse().slice(1))]}},li.extent=function(xi){return arguments.length?li.extentMajor(xi).extentMinor(xi):li.extentMinor()},li.extentMajor=function(xi){return arguments.length?(rt=+xi[0][0],ot=+xi[1][0],Ot=+xi[0][1],Bt=+xi[1][1],rt>ot&&(xi=rt,rt=ot,ot=xi),Ot>Bt&&(xi=Ot,Ot=Bt,Bt=xi),li.precision(ci)):[[rt,Ot],[ot,Bt]]},li.extentMinor=function(xi){return arguments.length?(Ge=+xi[0][0],Fe=+xi[1][0],It=+xi[0][1],mt=+xi[1][1],Ge>Fe&&(xi=Ge,Ge=Fe,Fe=xi),It>mt&&(xi=It,It=mt,mt=xi),li.precision(ci)):[[Ge,It],[Fe,mt]]},li.step=function(xi){return arguments.length?li.stepMajor(xi).stepMinor(xi):li.stepMinor()},li.stepMajor=function(xi){return arguments.length?(Wt=+xi[0],Rt=+xi[1],li):[Wt,Rt]},li.stepMinor=function(xi){return arguments.length?(nr=+xi[0],zr=+xi[1],li):[nr,zr]},li.precision=function(xi){return arguments.length?(ci=+xi,er=Kn(It,mt,90),kr=hn(Ge,Fe,ci),Vr=Kn(Ot,Bt,90),ii=hn(rt,ot,ci),li):ci},li.extentMajor([[-180,-90+o],[180,90-o]]).extentMinor([[-180,-80-o],[180,80+o]])}function tn(){return Ta()()}function wi(Fe,Ge){var ot=Fe[0]*d,rt=Fe[1]*d,mt=Ge[0]*d,It=Ge[1]*d,Bt=m(rt),Ot=x(rt),nr=m(It),zr=x(It),Wt=Bt*m(ot),Rt=Bt*x(ot),er=nr*m(mt),kr=nr*x(mt),Vr=2*S(T(C(It-rt)+Bt*nr*C(mt-ot))),ii=x(Vr),ci=Vr?function(li){var mi=x(li*=Vr)/ii,xi=x(Vr-li)/ii,Oi=xi*Wt+mi*er,ua=xi*Rt+mi*kr,xa=xi*Ot+mi*zr;return[y(ua,Oi)*h,y(xa,T(Oi*Oi+ua*ua))*h]}:function(){return[ot*h,rt*h]};return ci.distance=Vr,ci}function rn(Fe){return Fe}var Ai=r(),ea=r(),qn,pi,Fn,Pa,dr={point:k,lineStart:k,lineEnd:k,polygonStart:function(){dr.lineStart=ai,dr.lineEnd=pa},polygonEnd:function(){dr.lineStart=dr.lineEnd=dr.point=k,Ai.add(p(ea)),ea.reset()},result:function(){var Fe=Ai/2;return Ai.reset(),Fe}};function ai(){dr.point=Zi}function Zi(Fe,Ge){dr.point=Vi,qn=Fn=Fe,pi=Pa=Ge}function Vi(Fe,Ge){ea.add(Pa*Fe-Fn*Ge),Fn=Fe,Pa=Ge}function pa(){Vi(qn,pi)}var Na=1/0,an=Na,wn=-Na,Ra=wn,ei={point:Yn,lineStart:k,lineEnd:k,polygonStart:k,polygonEnd:k,result:function(){var Fe=[[Na,an],[wn,Ra]];return wn=Ra=-(an=Na=1/0),Fe}};function Yn(Fe,Ge){Fewn&&(wn=Fe),GeRa&&(Ra=Ge)}var Ja=0,ja=0,ka=0,ki=0,pn=0,Va=0,Gi=0,Pr=0,ri=0,bn,Ri,vi,yr,Ti={point:Cn,lineStart:Gr,lineEnd:ta,polygonStart:function(){Ti.lineStart=Bi,Ti.lineEnd=On},polygonEnd:function(){Ti.point=Cn,Ti.lineStart=Gr,Ti.lineEnd=ta},result:function(){var Fe=ri?[Gi/ri,Pr/ri]:Va?[ki/Va,pn/Va]:ka?[Ja/ka,ja/ka]:[NaN,NaN];return Ja=ja=ka=ki=pn=Va=Gi=Pr=ri=0,Fe}};function Cn(Fe,Ge){Ja+=Fe,ja+=Ge,++ka}function Gr(){Ti.point=Xn}function Xn(Fe,Ge){Ti.point=nn,Cn(vi=Fe,yr=Ge)}function nn(Fe,Ge){var ot=Fe-vi,rt=Ge-yr,mt=T(ot*ot+rt*rt);ki+=mt*(vi+Fe)/2,pn+=mt*(yr+Ge)/2,Va+=mt,Cn(vi=Fe,yr=Ge)}function ta(){Ti.point=Cn}function Bi(){Ti.point=Nn}function On(){ia(bn,Ri)}function Nn(Fe,Ge){Ti.point=ia,Cn(bn=vi=Fe,Ri=yr=Ge)}function ia(Fe,Ge){var ot=Fe-vi,rt=Ge-yr,mt=T(ot*ot+rt*rt);ki+=mt*(vi+Fe)/2,pn+=mt*(yr+Ge)/2,Va+=mt,mt=yr*Fe-vi*Ge,Gi+=mt*(vi+Fe),Pr+=mt*(yr+Ge),ri+=mt*3,Cn(vi=Fe,yr=Ge)}function Jr(Fe){this._context=Fe}Jr.prototype={_radius:4.5,pointRadius:function(Fe){return this._radius=Fe,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(Fe,Ge){switch(this._point){case 0:{this._context.moveTo(Fe,Ge),this._point=1;break}case 1:{this._context.lineTo(Fe,Ge);break}default:{this._context.moveTo(Fe+this._radius,Ge),this._context.arc(Fe,Ge,this._radius,0,c);break}}},result:k};var Ci=r(),un,Dn,Vn,vn,Br,Li={point:k,lineStart:function(){Li.point=Ua},lineEnd:function(){un&&yi(Dn,Vn),Li.point=k},polygonStart:function(){un=!0},polygonEnd:function(){un=null},result:function(){var Fe=+Ci;return Ci.reset(),Fe}};function Ua(Fe,Ge){Li.point=yi,Dn=vn=Fe,Vn=Br=Ge}function yi(Fe,Ge){vn-=Fe,Br-=Ge,Ci.add(T(vn*vn+Br*Br)),vn=Fe,Br=Ge}function Ma(){this._string=[]}Ma.prototype={_radius:4.5,_circle:Ba(4.5),pointRadius:function(Fe){return(Fe=+Fe)!==this._radius&&(this._radius=Fe,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(Fe,Ge){switch(this._point){case 0:{this._string.push("M",Fe,",",Ge),this._point=1;break}case 1:{this._string.push("L",Fe,",",Ge);break}default:{this._circle==null&&(this._circle=Ba(this._radius)),this._string.push("M",Fe,",",Ge,this._circle);break}}},result:function(){if(this._string.length){var Fe=this._string.join("");return this._string=[],Fe}else return null}};function Ba(Fe){return"m0,"+Fe+"a"+Fe+","+Fe+" 0 1,1 0,"+-2*Fe+"a"+Fe+","+Fe+" 0 1,1 0,"+2*Fe+"z"}function Bn(Fe,Ge){var ot=4.5,rt,mt;function It(Bt){return Bt&&(typeof ot=="function"&&mt.pointRadius(+ot.apply(this,arguments)),z(Bt,rt(mt))),mt.result()}return It.area=function(Bt){return z(Bt,rt(dr)),dr.result()},It.measure=function(Bt){return z(Bt,rt(Li)),Li.result()},It.bounds=function(Bt){return z(Bt,rt(ei)),ei.result()},It.centroid=function(Bt){return z(Bt,rt(Ti)),Ti.result()},It.projection=function(Bt){return arguments.length?(rt=Bt==null?(Fe=null,rn):(Fe=Bt).stream,It):Fe},It.context=function(Bt){return arguments.length?(mt=Bt==null?(Ge=null,new Ma):new Jr(Ge=Bt),typeof ot!="function"&&mt.pointRadius(ot),It):Ge},It.pointRadius=function(Bt){return arguments.length?(ot=typeof Bt=="function"?Bt:(mt.pointRadius(+Bt),+Bt),It):ot},It.projection(Fe).context(Ge)}function Hi(Fe){return{stream:yn(Fe)}}function yn(Fe){return function(Ge){var ot=new jn;for(var rt in Fe)ot[rt]=Fe[rt];return ot.stream=Ge,ot}}function jn(){}jn.prototype={constructor:jn,point:function(Fe,Ge){this.stream.point(Fe,Ge)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};function Un(Fe,Ge,ot){var rt=Fe.clipExtent&&Fe.clipExtent();return Fe.scale(150).translate([0,0]),rt!=null&&Fe.clipExtent(null),z(ot,Fe.stream(ei)),Ge(ei.result()),rt!=null&&Fe.clipExtent(rt),Fe}function zi(Fe,Ge,ot){return Un(Fe,function(rt){var mt=Ge[1][0]-Ge[0][0],It=Ge[1][1]-Ge[0][1],Bt=Math.min(mt/(rt[1][0]-rt[0][0]),It/(rt[1][1]-rt[0][1])),Ot=+Ge[0][0]+(mt-Bt*(rt[1][0]+rt[0][0]))/2,nr=+Ge[0][1]+(It-Bt*(rt[1][1]+rt[0][1]))/2;Fe.scale(150*Bt).translate([Ot,nr])},ot)}function xr(Fe,Ge,ot){return zi(Fe,[[0,0],Ge],ot)}function Ln(Fe,Ge,ot){return Un(Fe,function(rt){var mt=+Ge,It=mt/(rt[1][0]-rt[0][0]),Bt=(mt-It*(rt[1][0]+rt[0][0]))/2,Ot=-It*rt[0][1];Fe.scale(150*It).translate([Bt,Ot])},ot)}function xn(Fe,Ge,ot){return Un(Fe,function(rt){var mt=+Ge,It=mt/(rt[1][1]-rt[0][1]),Bt=-It*rt[0][0],Ot=(mt-It*(rt[1][1]+rt[0][1]))/2;Fe.scale(150*It).translate([Bt,Ot])},ot)}var da=16,Mi=m(30*d);function Xr(Fe,Ge){return+Ge?to(Fe,Ge):Gn(Fe)}function Gn(Fe){return yn({point:function(Ge,ot){Ge=Fe(Ge,ot),this.stream.point(Ge[0],Ge[1])}})}function to(Fe,Ge){function ot(rt,mt,It,Bt,Ot,nr,zr,Wt,Rt,er,kr,Vr,ii,ci){var li=zr-rt,mi=Wt-mt,xi=li*li+mi*mi;if(xi>4*Ge&&ii--){var Oi=Bt+er,ua=Ot+kr,xa=nr+Vr,ao=T(Oi*Oi+ua*ua+xa*xa),ho=S(xa/=ao),Fo=p(p(xa)-1)Ge||p((li*xs+mi*us)/xi-.5)>.3||Bt*er+Ot*kr+nr*Vr2?Ni[2]%360*d:0,xs()):[Ot*h,nr*h,zr*h]},Io.angle=function(Ni){return arguments.length?(Rt=Ni%360*d,xs()):Rt*h},Io.reflectX=function(Ni){return arguments.length?(er=Ni?-1:1,xs()):er<0},Io.reflectY=function(Ni){return arguments.length?(kr=Ni?-1:1,xs()):kr<0},Io.precision=function(Ni){return arguments.length?(xa=Xr(ao,ua=Ni*Ni),us()):T(ua)},Io.fitExtent=function(Ni,io){return zi(Io,Ni,io)},Io.fitSize=function(Ni,io){return xr(Io,Ni,io)},Io.fitWidth=function(Ni,io){return Ln(Io,Ni,io)},Io.fitHeight=function(Ni,io){return xn(Io,Ni,io)};function xs(){var Ni=Oa(ot,0,0,er,kr,Rt).apply(null,Ge(It,Bt)),io=(Rt?Oa:mo)(ot,rt-Ni[0],mt-Ni[1],er,kr,Rt);return Wt=Tr(Ot,nr,zr),ao=Kr(Ge,io),ho=Kr(Wt,ao),xa=Xr(ao,ua),us()}function us(){return Fo=ls=null,Io}return function(){return Ge=Fe.apply(this,arguments),Io.invert=Ge.invert&&Ps,xs()}}function Pn(Fe){var Ge=0,ot=l/3,rt=co(Fe),mt=rt(Ge,ot);return mt.parallels=function(It){return arguments.length?rt(Ge=It[0]*d,ot=It[1]*d):[Ge*h,ot*h]},mt}function Fa(Fe){var Ge=m(Fe);function ot(rt,mt){return[rt*Ge,x(mt)/Ge]}return ot.invert=function(rt,mt){return[rt/Ge,S(mt*Ge)]},ot}function oa(Fe,Ge){var ot=x(Fe),rt=(ot+x(Ge))/2;if(p(rt)=.12&&ci<.234&&ii>=-.425&&ii<-.214?mt:ci>=.166&&ci<.234&&ii>=-.214&&ii<-.115?Bt:ot).invert(er)},Wt.stream=function(er){return Fe&&Ge===er?Fe:Fe=ma([ot.stream(Ge=er),mt.stream(er),Bt.stream(er)])},Wt.precision=function(er){return arguments.length?(ot.precision(er),mt.precision(er),Bt.precision(er),Rt()):ot.precision()},Wt.scale=function(er){return arguments.length?(ot.scale(er),mt.scale(er*.35),Bt.scale(er),Wt.translate(ot.translate())):ot.scale()},Wt.translate=function(er){if(!arguments.length)return ot.translate();var kr=ot.scale(),Vr=+er[0],ii=+er[1];return rt=ot.translate(er).clipExtent([[Vr-.455*kr,ii-.238*kr],[Vr+.455*kr,ii+.238*kr]]).stream(zr),It=mt.translate([Vr-.307*kr,ii+.201*kr]).clipExtent([[Vr-.425*kr+o,ii+.12*kr+o],[Vr-.214*kr-o,ii+.234*kr-o]]).stream(zr),Ot=Bt.translate([Vr-.205*kr,ii+.212*kr]).clipExtent([[Vr-.214*kr+o,ii+.166*kr+o],[Vr-.115*kr-o,ii+.234*kr-o]]).stream(zr),Rt()},Wt.fitExtent=function(er,kr){return zi(Wt,er,kr)},Wt.fitSize=function(er,kr){return xr(Wt,er,kr)},Wt.fitWidth=function(er,kr){return Ln(Wt,er,kr)},Wt.fitHeight=function(er,kr){return xn(Wt,er,kr)};function Rt(){return Fe=Ge=null,Wt}return Wt.scale(1070)}function Ei(Fe){return function(Ge,ot){var rt=m(Ge),mt=m(ot),It=Fe(rt*mt);return[It*mt*x(Ge),It*x(ot)]}}function jr(Fe){return function(Ge,ot){var rt=T(Ge*Ge+ot*ot),mt=Fe(rt),It=x(mt),Bt=m(mt);return[y(Ge*It,rt*Bt),S(rt&&ot*It/rt)]}}var An=Ei(function(Fe){return T(2/(1+Fe))});An.invert=jr(function(Fe){return 2*S(Fe/2)});function Za(){return Si(An).scale(124.75).clipAngle(180-.001)}var Ga=Ei(function(Fe){return(Fe=E(Fe))&&Fe/x(Fe)});Ga.invert=jr(function(Fe){return Fe});function Ca(){return Si(Ga).scale(79.4188).clipAngle(180-.001)}function za(Fe,Ge){return[Fe,b(g((u+Ge)/2))]}za.invert=function(Fe,Ge){return[Fe,2*v(_(Ge))-u]};function Wn(){return Xi(za).scale(961/c)}function Xi(Fe){var Ge=Si(Fe),ot=Ge.center,rt=Ge.scale,mt=Ge.translate,It=Ge.clipExtent,Bt=null,Ot,nr,zr;Ge.scale=function(Rt){return arguments.length?(rt(Rt),Wt()):rt()},Ge.translate=function(Rt){return arguments.length?(mt(Rt),Wt()):mt()},Ge.center=function(Rt){return arguments.length?(ot(Rt),Wt()):ot()},Ge.clipExtent=function(Rt){return arguments.length?(Rt==null?Bt=Ot=nr=zr=null:(Bt=+Rt[0][0],Ot=+Rt[0][1],nr=+Rt[1][0],zr=+Rt[1][1]),Wt()):Bt==null?null:[[Bt,Ot],[nr,zr]]};function Wt(){var Rt=l*rt(),er=Ge(gn(Ge.rotate()).invert([0,0]));return It(Bt==null?[[er[0]-Rt,er[1]-Rt],[er[0]+Rt,er[1]+Rt]]:Fe===za?[[Math.max(er[0]-Rt,Bt),Ot],[Math.min(er[0]+Rt,nr),zr]]:[[Bt,Math.max(er[1]-Rt,Ot)],[nr,Math.min(er[1]+Rt,zr)]])}return Wt()}function sa(Fe){return g((u+Fe)/2)}function Mo(Fe,Ge){var ot=m(Fe),rt=Fe===Ge?x(Fe):b(ot/m(Ge))/b(sa(Ge)/sa(Fe)),mt=ot*M(sa(Fe),rt)/rt;if(!rt)return za;function It(Bt,Ot){mt>0?Ot<-u+o&&(Ot=-u+o):Ot>u-o&&(Ot=u-o);var nr=mt/M(sa(Ot),rt);return[nr*x(rt*Bt),mt-nr*m(rt*Bt)]}return It.invert=function(Bt,Ot){var nr=mt-Ot,zr=A(rt)*T(Bt*Bt+nr*nr),Wt=y(Bt,p(nr))*A(nr);return nr*rt<0&&(Wt-=l*A(Bt)*A(nr)),[Wt/rt,2*v(M(mt/zr,1/rt))-u]},It}function ya(){return Pn(Mo).scale(109.5).parallels([30,30])}function Qn(Fe,Ge){return[Fe,Ge]}Qn.invert=Qn;function Tn(){return Si(Qn).scale(152.63)}function Da(Fe,Ge){var ot=m(Fe),rt=Fe===Ge?x(Fe):(ot-m(Ge))/(Ge-Fe),mt=ot/rt+Fe;if(p(rt)o&&--rt>0);return[Fe/(.8707+(It=ot*ot)*(-.131979+It*(-.013791+It*It*It*(.003971-.001529*It)))),ot]};function Co(){return Si(Ya).scale(175.295)}function Ii(Fe,Ge){return[m(Ge)*x(Fe),x(Ge)]}Ii.invert=jr(S);function qa(){return Si(Ii).scale(249.5).clipAngle(90+o)}function Zn(Fe,Ge){var ot=m(Ge),rt=1+m(Fe)*ot;return[ot*x(Fe)/rt,x(Ge)/rt]}Zn.invert=jr(function(Fe){return 2*v(Fe)});function Ha(){return Si(Zn).scale(250).clipAngle(142)}function Wa(Fe,Ge){return[b(g((u+Ge)/2)),-Fe]}Wa.invert=function(Fe,Ge){return[-Ge,2*v(_(Fe))-u]};function $a(){var Fe=Xi(Wa),Ge=Fe.center,ot=Fe.rotate;return Fe.center=function(rt){return arguments.length?Ge([-rt[1],rt[0]]):(rt=Ge(),[rt[1],-rt[0]])},Fe.rotate=function(rt){return arguments.length?ot([rt[0],rt[1],rt.length>2?rt[2]+90:90]):(rt=ot(),[rt[0],rt[1],rt[2]-90])},ot([0,0,90]).scale(159.155)}e.geoAlbers=va,e.geoAlbersUsa=Sa,e.geoArea=$,e.geoAzimuthalEqualArea=Za,e.geoAzimuthalEqualAreaRaw=An,e.geoAzimuthalEquidistant=Ca,e.geoAzimuthalEquidistantRaw=Ga,e.geoBounds=Re,e.geoCentroid=hr,e.geoCircle=Ut,e.geoClipAntimeridian=Ye,e.geoClipCircle=lr,e.geoClipExtent=Nr,e.geoClipRectangle=Rr,e.geoConicConformal=ya,e.geoConicConformalRaw=Mo,e.geoConicEqualArea=Hn,e.geoConicEqualAreaRaw=oa,e.geoConicEquidistant=zn,e.geoConicEquidistantRaw=Da,e.geoContains=ca,e.geoDistance=mn,e.geoEqualEarth=eo,e.geoEqualEarthRaw=go,e.geoEquirectangular=Tn,e.geoEquirectangularRaw=Qn,e.geoGnomonic=Mn,e.geoGnomonicRaw=So,e.geoGraticule=Ta,e.geoGraticule10=tn,e.geoIdentity=Ao,e.geoInterpolate=wi,e.geoLength=Fr,e.geoMercator=Wn,e.geoMercatorRaw=za,e.geoNaturalEarth1=Co,e.geoNaturalEarth1Raw=Ya,e.geoOrthographic=qa,e.geoOrthographicRaw=Ii,e.geoPath=Bn,e.geoProjection=Si,e.geoProjectionMutator=co,e.geoRotation=gn,e.geoStereographic=Ha,e.geoStereographicRaw=Zn,e.geoStream=z,e.geoTransform=Hi,e.geoTransverseMercator=$a,e.geoTransverseMercatorRaw=Wa,Object.defineProperty(e,"__esModule",{value:!0})}))});var jUe=K((kQr,HUe)=>{"use strict";var GUe={alabama:"AL",alaska:"AK",arizona:"AZ",arkansas:"AR",california:"CA",colorado:"CO",connecticut:"CT",delaware:"DE","district of columbia":"DC",florida:"FL",georgia:"GA",hawaii:"HI",idaho:"ID",illinois:"IL",indiana:"IN",iowa:"IA",kansas:"KS",kentucky:"KY",louisiana:"LA",maine:"ME",maryland:"MD",massachusetts:"MA",michigan:"MI",minnesota:"MN",mississippi:"MS",missouri:"MO",montana:"MT",nebraska:"NE",nevada:"NV","new hampshire":"NH","new jersey":"NJ","new mexico":"NM","new york":"NY","north carolina":"NC","north dakota":"ND",ohio:"OH",oklahoma:"OK",oregon:"OR",pennsylvania:"PA","rhode island":"RI","south carolina":"SC","south dakota":"SD",tennessee:"TN",texas:"TX",utah:"UT",vermont:"VT",virginia:"VA",washington:"WA","washington dc":"DC","washington d.c.":"DC","west virginia":"WV",wisconsin:"WI",wyoming:"WY"},Flr=new Set(Object.values(GUe));HUe.exports={usaLocationAbbreviations:Flr,usaLocationList:GUe}});var WUe={};Fl(WUe,{COUNTRIES_X:()=>Llr});var Llr,$Ue=ps(()=>{"use strict";Llr=[{iso3:"XAC",iso2:"",m49:"",name:"Aksai Chin",aliases:[]},{iso3:"XAP",iso2:"",m49:"",name:"Arunachal Pradesh",aliases:[]},{iso3:"XBT",iso2:"",m49:"",name:"Bir Tawil",aliases:[]},{iso3:"XHT",iso2:"",m49:"",name:"Halaib Triangle",aliases:[]},{iso3:"XIT",iso2:"",m49:"",name:"Ilemi Triangle",aliases:[]},{iso3:"XJK",iso2:"",m49:"",name:"Jammu and Kashmir",aliases:[]}]});var Ry=K((CQr,ZUe)=>{"use strict";var Plr=No(),{COUNTRIES:zlr,createLookup:Ilr}=AUe(),{area:Rlr}=BUe(),{centroid:Blr}=OUe(),{coordAll:qlr}=xR(),{geoBounds:Olr}=TR(),Nlr=v6(),O2=Jm(),Vlr=yg(),Ulr=NT(),MR=iM(),{usaLocationAbbreviations:Glr,usaLocationList:Hlr}=jUe(),{COUNTRIES_X:jlr}=($Ue(),ar(WUe)),{lookupAlpha3:Wlr}=Ilr([...zlr,...jlr]),$lr={"ISO-3":Nlr,"USA-states":Xlr,"country names":Ylr};function Ylr(e){let t=Wlr(e);return t||(O2.log("Unrecognized country name: "+e+"."),!1)}function Xlr(e){e=e.trim();let t=Glr.has(e.toUpperCase())?e.toUpperCase():Hlr[e.toLowerCase()];return t||(O2.log("Unrecognized US location: "+e+"."),!1)}function Zlr(e,t,r){var n;if(!t||typeof t!="string")return!1;let i=$lr[e](t);if(i){let a;if(e==="USA-states"){a=[];for(let o of r)((n=o==null?void 0:o.properties)==null?void 0:n.gu)==="USA"&&a.push(o)}else a=r;for(let o of a)if(o.id===i)return o;O2.log(`Location with id ${i} does not have a matching topojson feature at this resolution.`)}return!1}var SR=360;function eee(e){for(let t=0;t0&&e[t+1][0]<0)return t;return null}function Klr(e){var t=e.geometry,r=t.coordinates,i=e.id,n=[],a,o,s,l;switch(i==="RUS"||i==="FJI"?a=function(u){var f;if(eee(u)===null)f=u;else for(f=new Array(u.length),l=0;lf?c[h++]=[u[l][0]+SR,u[l][1]]:l===f?(c[h++]=u[l],c[h++]=[u[l][0],-90]):c[h++]=u[l];var d=MR.tester(c);d.pts.pop(),n.push(d)}:a=function(u){n.push(MR.tester(u))},t.type){case"MultiPolygon":for(o=0;on&&(n=s,r=o)}else r=t;return!r||!r.coordinates.some(l=>l.length>0)?[NaN,NaN]:Blr(r).geometry.coordinates}function eur(e){var t=window.PlotlyGeoAssets||{},r=[];function i(l){return new Promise(function(u,f){Plr.json(l,function(c,h){if(c){delete t[l];var d=c.status===404?'GeoJSON at URL "'+l+'" does not exist.':"Unexpected error while fetching from "+l;return f(new Error(d))}return t[l]=h,u(h)})})}function n(l){return new Promise(function(u,f){var c=0,h=setInterval(function(){if(t[l]&&t[l]!=="pending")return clearInterval(h),u(t[l]);if(c>100)return clearInterval(h),f("Unexpected error while fetching from "+l);c++},50)})}for(var a=0;aiee(ree(e));function ree(e){try{return qlr(e)}catch(t){return[]}}function iee(e){if(e.length===0)return null;if(e.length===1){let[a,o]=e[0];return[a,o,a,o]}let[[t,r],[i,n]]=Olr({type:"MultiPoint",coordinates:e});return[t,r,XUe([t,i])[1],n]}var rur=(e,t)=>t.fitbounds==="geojson"&&e.locationmode==="geojson-id",YUe=(e,t)=>rur(e,t)?ree(tee(e)):[],iur=(e,t)=>iee(YUe(e,t));function XUe([e,t]){return[e,e>t?t+SR:t]}ZUe.exports={locationToFeature:Zlr,feature2polygons:Klr,getTraceGeojson:tee,extractTraceFeature:Jlr,fetchTraceGeoData:eur,boundsOfCoords:iee,computeBbox:tur,coordsOf:ree,doesCrossAntiMeridian:eee,fitGeojsonBbox:iur,fitGeojsonCoords:YUe,unwrapLonRange:XUe,ANTIMERIDIAN_LON_SHIFT:SR}});var nee=K((DQr,QUe)=>{"use strict";var nur=No(),aur=Bs(),KUe=ko(),JUe=fd(),our=JUe.stylePoints,sur=JUe.styleText;QUe.exports=function(t,r){r&&lur(t,r)};function lur(e,t){var r=t[0].trace,i=t[0].node3;i.style("opacity",t[0].trace.opacity),our(i,r,e),sur(i,r,e),i.selectAll("path.js-line").style("fill","none").each(function(n){var a=nur.select(this),o=n.trace,s=o.line||{};a.call(KUe.stroke,s.color).call(aur.dashLine,s.dash||"",s.width||0),o.fill!=="none"&&a.call(KUe.fill,o.fillcolor)})}});var CR=K((FQr,rGe)=>{"use strict";var eGe=No(),ER=Mt(),uur=dR().getTopojsonFeatures,aee=LE(),kR=Ry(),tGe=Hv().findExtremes,see=(Il(),ar(Bl)).BADNUM,fur=Zp().calcMarkerSize,oee=ff(),cur=nee();function hur(e,t,r){var i=t.layers.frontplot.select(".scatterlayer"),n=ER.makeTraceGroups(i,r,"trace scattergeo");function a(o,s){o.lonlat[0]===see&&eGe.select(s).remove()}n.selectAll("*").remove(),n.each(function(o){var s=eGe.select(this),l=o[0].trace;if(oee.hasLines(l)||l.fill!=="none"){var u=aee.calcTraceToLineCoords(o),f=l.fill!=="none"?aee.makePolygon(u):aee.makeLine(u);s.selectAll("path.js-line").data([{geojson:f,trace:l}]).enter().append("path").classed("js-line",!0).style("stroke-miterlimit",2)}oee.hasMarkers(l)&&s.selectAll("path.point").data(ER.identity).enter().append("path").classed("point",!0).each(function(c){a(c,this)}),oee.hasText(l)&&s.selectAll("g").data(ER.identity).enter().append("g").append("text").each(function(c){a(c,this)}),cur(e,o)})}function dur(e,t){var r=e[0].trace,i=t[r.geo],n=i._subplot,a=r._length,o,s;if(ER.isArrayOrTypedArray(r.locations)){var l=r.locationmode,u=l==="geojson-id"?kR.extractTraceFeature(e):uur(r,n.topojson);for(o=0;o{"use strict";var vur=Uf(),mur=(Il(),ar(Bl)).BADNUM,yur=sA(),gur=Mt().fillText,xur=$4();iGe.exports=function(t,r,i){var n=t.cd,a=n[0].trace,o=t.xa,s=t.ya,l=t.subplot,u=l.projection.isLonLatOverEdges,f=l.project;function c(w){var _=w.lonlat;if(_[0]===mur||u(_))return 1/0;var b=f(_),M=f([r,i]),x=Math.abs(b[0]-M[0]),A=Math.abs(b[1]-M[1]),T=Math.max(3,w.mrc||0);return Math.max(Math.sqrt(x*x+A*A)-T,1-3/T)}if(vur.getClosest(n,c,t),t.index!==!1){var h=n[t.index],d=h.lonlat,p=[o.c2p(d),s.c2p(d)],v=h.mrc||1;t.x0=p[0]-v,t.x1=p[0]+v,t.y0=p[1]-v,t.y1=p[1]+v,t.loc=h.loc,t.lon=d[0],t.lat=d[1];var y={};y[a.geo]={_subplot:l};var m=a._module.formatLabels(h,a,y);return t.lonLabel=m.lonLabel,t.latLabel=m.latLabel,t.color=yur(a,h),t.extraText=bur(a,h,t,n[0].t.labels),t.hovertemplate=a.hovertemplate,[t]}};function bur(e,t,r,i){if(e.hovertemplate)return;var n=t.hi||e.hoverinfo,a=n==="all"?xur.hoverinfo.flags:n.split("+"),o=a.indexOf("location")!==-1&&Array.isArray(e.locations),s=a.indexOf("lon")!==-1,l=a.indexOf("lat")!==-1,u=a.indexOf("text")!==-1,f=[];function c(h){return h+"\xB0"}return o?f.push(t.loc):s&&l?f.push("("+c(r.latLabel)+", "+c(r.lonLabel)+")"):s?f.push(i.lon+c(r.lonLabel)):l&&f.push(i.lat+c(r.latLabel)),u&&gur(t,e,f),f.join("
")}});var oGe=K((PQr,aGe)=>{"use strict";aGe.exports=function(t,r,i,n,a){t.lon=r.lon,t.lat=r.lat,t.location=r.loc?r.loc:null;var o=n[a];return o.fIn&&o.fIn.properties&&(t.properties=o.fIn.properties),t}});var uGe=K((zQr,lGe)=>{"use strict";var sGe=ff(),_ur=(Il(),ar(Bl)).BADNUM;lGe.exports=function(t,r){var i=t.cd,n=t.xaxis,a=t.yaxis,o=[],s=i[0].trace,l,u,f,c,h,d=!sGe.hasMarkers(s)&&!sGe.hasText(s);if(d)return[];if(r===!1)for(h=0;h{(function(e,t){t(typeof DR=="object"&&typeof fGe!="undefined"?DR:e.d3=e.d3||{})})(DR,(function(e){"use strict";function t(N,V){return NV?1:N>=V?0:NaN}function r(N){return N.length===1&&(N=i(N)),{left:function(V,J,H,$){for(H==null&&(H=0),$==null&&($=V.length);H<$;){var te=H+$>>>1;N(V[te],J)<0?H=te+1:$=te}return H},right:function(V,J,H,$){for(H==null&&(H=0),$==null&&($=V.length);H<$;){var te=H+$>>>1;N(V[te],J)>0?$=te:H=te+1}return H}}}function i(N){return function(V,J){return t(N(V),J)}}var n=r(t),a=n.right,o=n.left;function s(N,V){V==null&&(V=l);for(var J=0,H=N.length-1,$=N[0],te=new Array(H<0?0:H);JN?1:V>=N?0:NaN}function c(N){return N===null?NaN:+N}function h(N,V){var J=N.length,H=0,$=-1,te=0,ie,de,ge=0;if(V==null)for(;++$1)return ge/(H-1)}function d(N,V){var J=h(N,V);return J&&Math.sqrt(J)}function p(N,V){var J=N.length,H=-1,$,te,ie;if(V==null){for(;++H=$)for(te=ie=$;++H$&&(te=$),ie<$&&(ie=$))}else for(;++H=$)for(te=ie=$;++H$&&(te=$),ie<$&&(ie=$));return[te,ie]}var v=Array.prototype,y=v.slice,m=v.map;function w(N){return function(){return N}}function _(N){return N}function b(N,V,J){N=+N,V=+V,J=($=arguments.length)<2?(V=N,N=0,1):$<3?1:+J;for(var H=-1,$=Math.max(0,Math.ceil((V-N)/J))|0,te=new Array($);++H<$;)te[H]=N+H*J;return te}var M=Math.sqrt(50),x=Math.sqrt(10),A=Math.sqrt(2);function T(N,V,J){var H,$=-1,te,ie,de;if(V=+V,N=+N,J=+J,N===V&&J>0)return[N];if((H=V0)for(N=Math.ceil(N/de),V=Math.floor(V/de),ie=new Array(te=Math.ceil(V-N+1));++$=0?(te>=M?10:te>=x?5:te>=A?2:1)*Math.pow(10,$):-Math.pow(10,-$)/(te>=M?10:te>=x?5:te>=A?2:1)}function E(N,V,J){var H=Math.abs(V-N)/Math.max(0,J),$=Math.pow(10,Math.floor(Math.log(H)/Math.LN10)),te=H/$;return te>=M?$*=10:te>=x?$*=5:te>=A&&($*=2),Vle;)re.pop(),--Ee;var we=new Array(Ee+1),oe;for(te=0;te<=Ee;++te)oe=we[te]=[],oe.x0=te>0?re[te-1]:Ce,oe.x1=te=1)return+J(N[H-1],H-1,N);var H,$=(H-1)*V,te=Math.floor($),ie=+J(N[te],te,N),de=+J(N[te+1],te+1,N);return ie+(de-ie)*($-te)}}function D(N,V,J){return N=m.call(N,c).sort(t),Math.ceil((J-V)/(2*(k(N,.75)-k(N,.25))*Math.pow(N.length,-1/3)))}function L(N,V,J){return Math.ceil((J-V)/(3.5*d(N)*Math.pow(N.length,-1/3)))}function P(N,V){var J=N.length,H=-1,$,te;if(V==null){for(;++H=$)for(te=$;++Hte&&(te=$)}else for(;++H=$)for(te=$;++Hte&&(te=$);return te}function I(N,V){var J=N.length,H=J,$=-1,te,ie=0;if(V==null)for(;++$=0;)for(ie=N[V],J=ie.length;--J>=0;)te[--$]=ie[J];return te}function B(N,V){var J=N.length,H=-1,$,te;if(V==null){for(;++H=$)for(te=$;++H$&&(te=$)}else for(;++H=$)for(te=$;++H$&&(te=$);return te}function O(N,V){for(var J=V.length,H=new Array(J);J--;)H[J]=N[V[J]];return H}function W(N,V){if(J=N.length){var J,H=0,$=0,te,ie=N[$];for(V==null&&(V=t);++H{(function(e,t){typeof FR=="object"&&typeof hGe!="undefined"?t(FR,TR(),cGe()):t(e.d3=e.d3||{},e.d3,e.d3)})(FR,(function(e,t,r){"use strict";var i=Math.abs,n=Math.atan,a=Math.atan2,o=Math.cos,s=Math.exp,l=Math.floor,u=Math.log,f=Math.max,c=Math.min,h=Math.pow,d=Math.round,p=Math.sign||function(ae){return ae>0?1:ae<0?-1:0},v=Math.sin,y=Math.tan,m=1e-6,w=1e-12,_=Math.PI,b=_/2,M=_/4,x=Math.SQRT1_2,A=L(2),T=L(_),g=_*2,E=180/_,S=_/180;function C(ae){return ae?ae/Math.sin(ae):1}function k(ae){return ae>1?b:ae<-1?-b:Math.asin(ae)}function D(ae){return ae>1?0:ae<-1?_:Math.acos(ae)}function L(ae){return ae>0?Math.sqrt(ae):0}function P(ae){return ae=s(2*ae),(ae-1)/(ae+1)}function I(ae){return(s(ae)-s(-ae))/2}function F(ae){return(s(ae)+s(-ae))/2}function z(ae){return u(ae+L(ae*ae+1))}function B(ae){return u(ae+L(ae*ae-1))}function O(ae){var fe=y(ae/2),Te=2*u(o(ae/2))/(fe*fe);function ke(Ne,Oe){var He=o(Ne),ct=o(Oe),xt=v(Oe),pt=ct*He,_t=-((1-pt?u((1+pt)/2)/(1-pt):-.5)+Te/(1+pt));return[_t*ct*v(Ne),_t*xt]}return ke.invert=function(Ne,Oe){var He=L(Ne*Ne+Oe*Oe),ct=-ae/2,xt=50,pt;if(!He)return[0,0];do{var _t=ct/2,Lt=o(_t),Jt=v(_t),fr=Jt/Lt,Or=-u(i(Lt));ct-=pt=(2/fr*Or-Te*fr-He)/(-Or/(Jt*Jt)+1-Te/(2*Lt*Lt))*(Lt<0?.7:1)}while(i(pt)>m&&--xt>0);var Pi=v(ct);return[a(Ne*Pi,He*o(ct)),k(Oe*Pi/He)]},ke}function W(){var ae=b,fe=t.geoProjectionMutator(O),Te=fe(ae);return Te.radius=function(ke){return arguments.length?fe(ae=ke*S):ae*E},Te.scale(179.976).clipAngle(147)}function X(ae,fe){var Te=o(fe),ke=C(D(Te*o(ae/=2)));return[2*Te*v(ae)*ke,v(fe)*ke]}X.invert=function(ae,fe){if(!(ae*ae+4*fe*fe>_*_+m)){var Te=ae,ke=fe,Ne=25;do{var Oe=v(Te),He=v(Te/2),ct=o(Te/2),xt=v(ke),pt=o(ke),_t=v(2*ke),Lt=xt*xt,Jt=pt*pt,fr=He*He,Or=1-Jt*ct*ct,Pi=Or?D(pt*ct)*L(Rn=1/Or):Rn=0,Rn,fo=2*Pi*pt*He-ae,Xo=Pi*xt-fe,Bo=Rn*(Jt*fr+Pi*pt*ct*Lt),fs=Rn*(.5*Oe*_t-Pi*2*xt*He),cs=Rn*.25*(_t*He-Pi*xt*Jt*Oe),Ns=Rn*(Lt*ct+Pi*fr*pt),zl=fs*cs-Ns*Bo;if(!zl)break;var Is=(Xo*fs-fo*Ns)/zl,Nl=(fo*cs-Xo*Bo)/zl;Te-=Is,ke-=Nl}while((i(Is)>m||i(Nl)>m)&&--Ne>0);return[Te,ke]}};function Z(){return t.geoProjection(X).scale(152.63)}function j(ae){var fe=v(ae),Te=o(ae),ke=ae>=0?1:-1,Ne=y(ke*ae),Oe=(1+fe-Te)/2;function He(ct,xt){var pt=o(xt),_t=o(ct/=2);return[(1+pt)*v(ct),(ke*xt>-a(_t,Ne)-.001?0:-ke*10)+Oe+v(xt)*Te-(1+pt)*fe*_t]}return He.invert=function(ct,xt){var pt=0,_t=0,Lt=50;do{var Jt=o(pt),fr=v(pt),Or=o(_t),Pi=v(_t),Rn=1+Or,fo=Rn*fr-ct,Xo=Oe+Pi*Te-Rn*fe*Jt-xt,Bo=Rn*Jt/2,fs=-fr*Pi,cs=fe*Rn*fr/2,Ns=Te*Or+fe*Jt*Pi,zl=fs*cs-Ns*Bo,Is=(Xo*fs-fo*Ns)/zl/2,Nl=(fo*cs-Xo*Bo)/zl;i(Nl)>2&&(Nl/=2),pt-=Is,_t-=Nl}while((i(Is)>m||i(Nl)>m)&&--Lt>0);return ke*_t>-a(o(pt),Ne)-.001?[pt*2,_t]:null},He}function q(){var ae=20*S,fe=ae>=0?1:-1,Te=y(fe*ae),ke=t.geoProjectionMutator(j),Ne=ke(ae),Oe=Ne.stream;return Ne.parallel=function(He){return arguments.length?(Te=y((fe=(ae=He*S)>=0?1:-1)*ae),ke(ae)):ae*E},Ne.stream=function(He){var ct=Ne.rotate(),xt=Oe(He),pt=(Ne.rotate([0,0]),Oe(He)),_t=Ne.precision();return Ne.rotate(ct),xt.sphere=function(){pt.polygonStart(),pt.lineStart();for(var Lt=fe*-180;fe*Lt<180;Lt+=fe*90)pt.point(Lt,fe*90);if(ae)for(;fe*(Lt-=3*fe*_t)>=-180;)pt.point(Lt,fe*-a(o(Lt*S/2),Te)*E);pt.lineEnd(),pt.polygonEnd()},xt},Ne.scale(218.695).center([0,28.0974])}function Q(ae,fe){var Te=y(fe/2),ke=L(1-Te*Te),Ne=1+ke*o(ae/=2),Oe=v(ae)*ke/Ne,He=Te/Ne,ct=Oe*Oe,xt=He*He;return[4/3*Oe*(3+ct-3*xt),4/3*He*(3+3*ct-xt)]}Q.invert=function(ae,fe){if(ae*=3/8,fe*=3/8,!ae&&i(fe)>1)return null;var Te=ae*ae,ke=fe*fe,Ne=1+Te+ke,Oe=L((Ne-L(Ne*Ne-4*fe*fe))/2),He=k(Oe)/3,ct=Oe?B(i(fe/Oe))/3:z(i(ae))/3,xt=o(He),pt=F(ct),_t=pt*pt-xt*xt;return[p(ae)*2*a(I(ct)*xt,.25-_t),p(fe)*2*a(pt*v(He),.25+_t)]};function N(){return t.geoProjection(Q).scale(66.1603)}var V=L(8),J=u(1+A);function H(ae,fe){var Te=i(fe);return Tew&&--ke>0);return[ae/(o(Te)*(V-1/v(Te))),p(fe)*Te]};function $(){return t.geoProjection(H).scale(112.314)}function te(ae){var fe=2*_/ae;function Te(ke,Ne){var Oe=t.geoAzimuthalEquidistantRaw(ke,Ne);if(i(ke)>b){var He=a(Oe[1],Oe[0]),ct=L(Oe[0]*Oe[0]+Oe[1]*Oe[1]),xt=fe*d((He-b)/fe)+b,pt=a(v(He-=xt),2-o(He));He=xt+k(_/ct*v(pt))-pt,Oe[0]=ct*o(He),Oe[1]=ct*v(He)}return Oe}return Te.invert=function(ke,Ne){var Oe=L(ke*ke+Ne*Ne);if(Oe>b){var He=a(Ne,ke),ct=fe*d((He-b)/fe)+b,xt=He>ct?-1:1,pt=Oe*o(ct-He),_t=1/y(xt*D((pt-_)/L(_*(_-2*pt)+Oe*Oe)));He=ct+2*n((_t+xt*L(_t*_t-3))/3),ke=Oe*o(He),Ne=Oe*v(He)}return t.geoAzimuthalEquidistantRaw.invert(ke,Ne)},Te}function ie(){var ae=5,fe=t.geoProjectionMutator(te),Te=fe(ae),ke=Te.stream,Ne=.01,Oe=-o(Ne*S),He=v(Ne*S);return Te.lobes=function(ct){return arguments.length?fe(ae=+ct):ae},Te.stream=function(ct){var xt=Te.rotate(),pt=ke(ct),_t=(Te.rotate([0,0]),ke(ct));return Te.rotate(xt),pt.sphere=function(){_t.polygonStart(),_t.lineStart();for(var Lt=0,Jt=360/ae,fr=2*_/ae,Or=90-180/ae,Pi=b;Lt0&&i(Ne)>m);return ke<0?NaN:Te}function le(ae,fe,Te){return fe===void 0&&(fe=40),Te===void 0&&(Te=w),function(ke,Ne,Oe,He){var ct,xt,pt;Oe=Oe===void 0?0:+Oe,He=He===void 0?0:+He;for(var _t=0;_tct){Oe-=xt/=2,He-=pt/=2;continue}ct=Or;var Pi=(Oe>0?-1:1)*Te,Rn=(He>0?-1:1)*Te,fo=ae(Oe+Pi,He),Xo=ae(Oe,He+Rn),Bo=(fo[0]-Lt[0])/Pi,fs=(fo[1]-Lt[1])/Pi,cs=(Xo[0]-Lt[0])/Rn,Ns=(Xo[1]-Lt[1])/Rn,zl=Ns*Bo-fs*cs,Is=(i(zl)<.5?.5:1)/zl;if(xt=(fr*cs-Jt*Ns)*Is,pt=(Jt*fs-fr*Bo)*Is,Oe+=xt,He+=pt,i(xt)0&&(ct[1]*=1+xt/1.5*ct[0]*ct[0]),ct}return ke.invert=le(ke),ke}function Ee(){return t.geoProjection(re()).rotate([-16.5,-42]).scale(176.57).center([7.93,.09])}function we(ae,fe){var Te=ae*v(fe),ke=30,Ne;do fe-=Ne=(fe+v(fe)-Te)/(1+o(fe));while(i(Ne)>m&&--ke>0);return fe/2}function oe(ae,fe,Te){function ke(Ne,Oe){return[ae*Ne*o(Oe=we(Te,Oe)),fe*v(Oe)]}return ke.invert=function(Ne,Oe){return Oe=k(Oe/fe),[Ne/(ae*o(Oe)),k((2*Oe+v(2*Oe))/Te)]},ke}var Y=oe(A/b,A,_);function ne(){return t.geoProjection(Y).scale(169.529)}var ye=2.00276,U=1.11072;function se(ae,fe){var Te=we(_,fe);return[ye*ae/(1/o(fe)+U/o(Te)),(fe+A*v(Te))/ye]}se.invert=function(ae,fe){var Te=ye*fe,ke=fe<0?-M:M,Ne=25,Oe,He;do He=Te-A*v(ke),ke-=Oe=(v(2*ke)+2*ke-_*v(He))/(2*o(2*ke)+2+_*o(He)*A*o(ke));while(i(Oe)>m&&--Ne>0);return He=Te-A*v(ke),[ae*(1/o(He)+U/o(ke))/ye,He]};function Ae(){return t.geoProjection(se).scale(160.857)}function be(ae){var fe=0,Te=t.geoProjectionMutator(ae),ke=Te(fe);return ke.parallel=function(Ne){return arguments.length?Te(fe=Ne*S):fe*E},ke}function me(ae,fe){return[ae*o(fe),fe]}me.invert=function(ae,fe){return[ae/o(fe),fe]};function ue(){return t.geoProjection(me).scale(152.63)}function pe(ae){if(!ae)return me;var fe=1/y(ae);function Te(ke,Ne){var Oe=fe+ae-Ne,He=Oe&&ke*o(Ne)/Oe;return[Oe*v(He),fe-Oe*o(He)]}return Te.invert=function(ke,Ne){var Oe=L(ke*ke+(Ne=fe-Ne)*Ne),He=fe+ae-Oe;return[Oe/o(He)*a(ke,Ne),He]},Te}function ce(){return be(pe).scale(123.082).center([0,26.1441]).parallel(45)}function Be(ae){function fe(Te,ke){var Ne=b-ke,Oe=Ne&&Te*ae*v(Ne)/Ne;return[Ne*v(Oe)/ae,b-Ne*o(Oe)]}return fe.invert=function(Te,ke){var Ne=Te*ae,Oe=b-ke,He=L(Ne*Ne+Oe*Oe),ct=a(Ne,Oe);return[(He?He/v(He):1)*ct/ae,b-He]},fe}function $e(){var ae=.5,fe=t.geoProjectionMutator(Be),Te=fe(ae);return Te.fraction=function(ke){return arguments.length?fe(ae=+ke):ae},Te.scale(158.837)}var Ze=oe(1,4/_,_);function it(){return t.geoProjection(Ze).scale(152.63)}function nt(ae,fe,Te,ke,Ne,Oe){var He=o(Oe),ct;if(i(ae)>1||i(Oe)>1)ct=D(Te*Ne+fe*ke*He);else{var xt=v(ae/2),pt=v(Oe/2);ct=2*k(L(xt*xt+fe*ke*pt*pt))}return i(ct)>m?[ct,a(ke*v(Oe),fe*Ne-Te*ke*He)]:[0,0]}function Ue(ae,fe,Te){return D((ae*ae+fe*fe-Te*Te)/(2*ae*fe))}function xe(ae){return ae-2*_*l((ae+_)/(2*_))}function Re(ae,fe,Te){for(var ke=[[ae[0],ae[1],v(ae[1]),o(ae[1])],[fe[0],fe[1],v(fe[1]),o(fe[1])],[Te[0],Te[1],v(Te[1]),o(Te[1])]],Ne=ke[2],Oe,He=0;He<3;++He,Ne=Oe)Oe=ke[He],Ne.v=nt(Oe[1]-Ne[1],Ne[3],Ne[2],Oe[3],Oe[2],Oe[0]-Ne[0]),Ne.point=[0,0];var ct=Ue(ke[0].v[0],ke[2].v[0],ke[1].v[0]),xt=Ue(ke[0].v[0],ke[1].v[0],ke[2].v[0]),pt=_-ct;ke[2].point[1]=0,ke[0].point[0]=-(ke[1].point[0]=ke[0].v[0]/2);var _t=[ke[2].point[0]=ke[0].point[0]+ke[2].v[0]*o(ct),2*(ke[0].point[1]=ke[1].point[1]=ke[2].v[0]*v(ct))];function Lt(Jt,fr){var Or=v(fr),Pi=o(fr),Rn=new Array(3),fo;for(fo=0;fo<3;++fo){var Xo=ke[fo];if(Rn[fo]=nt(fr-Xo[1],Xo[3],Xo[2],Pi,Or,Jt-Xo[0]),!Rn[fo][0])return Xo.point;Rn[fo][1]=xe(Rn[fo][1]-Xo.v[1])}var Bo=_t.slice();for(fo=0;fo<3;++fo){var fs=fo==2?0:fo+1,cs=Ue(ke[fo].v[0],Rn[fo][0],Rn[fs][0]);Rn[fo][1]<0&&(cs=-cs),fo?fo==1?(cs=xt-cs,Bo[0]-=Rn[fo][0]*o(cs),Bo[1]-=Rn[fo][0]*v(cs)):(cs=pt-cs,Bo[0]+=Rn[fo][0]*o(cs),Bo[1]+=Rn[fo][0]*v(cs)):(Bo[0]+=Rn[fo][0]*o(cs),Bo[1]-=Rn[fo][0]*v(cs))}return Bo[0]/=3,Bo[1]/=3,Bo}return Lt}function Qe(ae){return ae[0]*=S,ae[1]*=S,ae}function Pe(){return De([0,22],[45,22],[22.5,-22]).scale(380).center([22.5,2])}function De(ae,fe,Te){var ke=t.geoCentroid({type:"MultiPoint",coordinates:[ae,fe,Te]}),Ne=[-ke[0],-ke[1]],Oe=t.geoRotation(Ne),He=Re(Qe(Oe(ae)),Qe(Oe(fe)),Qe(Oe(Te)));He.invert=le(He);var ct=t.geoProjection(He).rotate(Ne),xt=ct.center;return delete ct.rotate,ct.center=function(pt){return arguments.length?xt(Oe(pt)):Oe.invert(xt())},ct.clipAngle(90)}function Ve(ae,fe){var Te=L(1-v(fe));return[2/T*ae*Te,T*(1-Te)]}Ve.invert=function(ae,fe){var Te=(Te=fe/T-1)*Te;return[Te>0?ae*L(_/Te)/2:0,k(1-Te)]};function Le(){return t.geoProjection(Ve).scale(95.6464).center([0,30])}function Se(ae){var fe=y(ae);function Te(ke,Ne){return[ke,(ke?ke/v(ke):1)*(v(Ne)*o(ke)-fe*o(Ne))]}return Te.invert=fe?function(ke,Ne){ke&&(Ne*=v(ke)/ke);var Oe=o(ke);return[ke,2*a(L(Oe*Oe+fe*fe-Ne*Ne)-Oe,fe-Ne)]}:function(ke,Ne){return[ke,k(ke?Ne*y(ke)/ke:Ne)]},Te}function ze(){return be(Se).scale(249.828).clipAngle(90)}var st=L(3);function ft(ae,fe){return[st*ae*(2*o(2*fe/3)-1)/T,st*T*v(fe/3)]}ft.invert=function(ae,fe){var Te=3*k(fe/(st*T));return[T*ae/(st*(2*o(2*Te/3)-1)),Te]};function wt(){return t.geoProjection(ft).scale(156.19)}function At(ae){var fe=o(ae);function Te(ke,Ne){return[ke*fe,v(Ne)/fe]}return Te.invert=function(ke,Ne){return[ke/fe,k(Ne*fe)]},Te}function Vt(){return be(At).parallel(38.58).scale(195.044)}function Dt(ae){var fe=o(ae);function Te(ke,Ne){return[ke*fe,(1+fe)*y(Ne/2)]}return Te.invert=function(ke,Ne){return[ke/fe,n(Ne/(1+fe))*2]},Te}function yt(){return be(Dt).scale(124.75)}function St(ae,fe){var Te=L(8/(3*_));return[Te*ae*(1-i(fe)/_),Te*fe]}St.invert=function(ae,fe){var Te=L(8/(3*_)),ke=fe/Te;return[ae/(Te*(1-i(ke)/_)),ke]};function rr(){return t.geoProjection(St).scale(165.664)}function Ke(ae,fe){var Te=L(4-3*v(i(fe)));return[2/L(6*_)*ae*Te,p(fe)*L(2*_/3)*(2-Te)]}Ke.invert=function(ae,fe){var Te=2-i(fe)/L(2*_/3);return[ae*L(6*_)/(2*Te),p(fe)*k((4-Te*Te)/3)]};function at(){return t.geoProjection(Ke).scale(165.664)}function lt(ae,fe){var Te=L(_*(4+_));return[2/Te*ae*(1+L(1-4*fe*fe/(_*_))),4/Te*fe]}lt.invert=function(ae,fe){var Te=L(_*(4+_))/2;return[ae*Te/(1+L(1-fe*fe*(4+_)/(4*_))),fe*Te/2]};function vt(){return t.geoProjection(lt).scale(180.739)}function We(ae,fe){var Te=(2+b)*v(fe);fe/=2;for(var ke=0,Ne=1/0;ke<10&&i(Ne)>m;ke++){var Oe=o(fe);fe-=Ne=(fe+v(fe)*(Oe+2)-Te)/(2*Oe*(1+Oe))}return[2/L(_*(4+_))*ae*(1+o(fe)),2*L(_/(4+_))*v(fe)]}We.invert=function(ae,fe){var Te=fe*L((4+_)/_)/2,ke=k(Te),Ne=o(ke);return[ae/(2/L(_*(4+_))*(1+Ne)),k((ke+Te*(Ne+2))/(2+b))]};function ut(){return t.geoProjection(We).scale(180.739)}function kt(ae,fe){return[ae*(1+o(fe))/L(2+_),2*fe/L(2+_)]}kt.invert=function(ae,fe){var Te=L(2+_),ke=fe*Te/2;return[Te*ae/(1+o(ke)),ke]};function $t(){return t.geoProjection(kt).scale(173.044)}function or(ae,fe){for(var Te=(1+b)*v(fe),ke=0,Ne=1/0;ke<10&&i(Ne)>m;ke++)fe-=Ne=(fe+v(fe)-Te)/(1+o(fe));return Te=L(2+_),[ae*(1+o(fe))/Te,2*fe/Te]}or.invert=function(ae,fe){var Te=1+b,ke=L(Te/2);return[ae*2*ke/(1+o(fe*=ke)),k((fe+v(fe))/Te)]};function Lr(){return t.geoProjection(or).scale(173.044)}var Er=3+2*A;function hr(ae,fe){var Te=v(ae/=2),ke=o(ae),Ne=L(o(fe)),Oe=o(fe/=2),He=v(fe)/(Oe+A*ke*Ne),ct=L(2/(1+He*He)),xt=L((A*Oe+(ke+Te)*Ne)/(A*Oe+(ke-Te)*Ne));return[Er*(ct*(xt-1/xt)-2*u(xt)),Er*(ct*He*(xt+1/xt)-2*n(He))]}hr.invert=function(ae,fe){if(!(Oe=Q.invert(ae/1.2,fe*1.065)))return null;var Te=Oe[0],ke=Oe[1],Ne=20,Oe;ae/=Er,fe/=Er;do{var He=Te/2,ct=ke/2,xt=v(He),pt=o(He),_t=v(ct),Lt=o(ct),Jt=o(ke),fr=L(Jt),Or=_t/(Lt+A*pt*fr),Pi=Or*Or,Rn=L(2/(1+Pi)),fo=A*Lt+(pt+xt)*fr,Xo=A*Lt+(pt-xt)*fr,Bo=fo/Xo,fs=L(Bo),cs=fs-1/fs,Ns=fs+1/fs,zl=Rn*cs-2*u(fs)-ae,Is=Rn*Or*Ns-2*n(Or)-fe,Nl=_t&&x*fr*xt*Pi/_t,ul=(A*pt*Lt+fr)/(2*(Lt+A*pt*fr)*(Lt+A*pt*fr)*fr),cl=-.5*Or*Rn*Rn*Rn,vf=cl*Nl,wf=cl*ul,bu=(bu=2*Lt+A*fr*(pt-xt))*bu*fs,_u=(A*pt*Lt*fr+Jt)/bu,ju=-(A*xt*_t)/(fr*bu),wu=cs*vf-2*_u/fs+Rn*(_u+_u/Bo),Eu=cs*wf-2*ju/fs+Rn*(ju+ju/Bo),Af=Or*Ns*vf-2*Nl/(1+Pi)+Rn*Ns*Nl+Rn*Or*(_u-_u/Bo),mf=Or*Ns*wf-2*ul/(1+Pi)+Rn*Ns*ul+Rn*Or*(ju-ju/Bo),ef=Eu*Af-mf*wu;if(!ef)break;var Nf=(Is*Eu-zl*mf)/ef,ic=(zl*Af-Is*wu)/ef;Te-=Nf,ke=f(-b,c(b,ke-ic))}while((i(Nf)>m||i(ic)>m)&&--Ne>0);return i(i(ke)-b)ke){var Lt=L(_t),Jt=a(pt,xt),fr=Te*d(Jt/Te),Or=Jt-fr,Pi=ae*o(Or),Rn=(ae*v(Or)-Or*v(Pi))/(b-Pi),fo=pr(Or,Rn),Xo=(_-ae)/Ur(fo,Pi,_);xt=Lt;var Bo=50,fs;do xt-=fs=(ae+Ur(fo,Pi,xt)*Xo-Lt)/(fo(xt)*Xo);while(i(fs)>m&&--Bo>0);pt=Or*v(xt),xtke){var xt=L(ct),pt=a(He,Oe),_t=Te*d(pt/Te),Lt=pt-_t;Oe=xt*o(Lt),He=xt*v(Lt);for(var Jt=Oe-b,fr=v(Oe),Or=He/fr,Pi=Oem||i(Or)>m)&&--Pi>0);return[Lt,Jt]},xt}var di=Cr(2.8284,-1.6988,.75432,-.18071,1.76003,-.38914,.042555);function Fi(){return t.geoProjection(di).scale(149.995)}var ir=Cr(2.583819,-.835827,.170354,-.038094,1.543313,-.411435,.082742);function Kt(){return t.geoProjection(ir).scale(153.93)}var Me=Cr(5/6*_,-.62636,-.0344,0,1.3493,-.05524,0,.045);function Xe(){return t.geoProjection(Me).scale(130.945)}function Ye(ae,fe){var Te=ae*ae,ke=fe*fe;return[ae*(1-.162388*ke)*(.87-952426e-9*Te*Te),fe*(1+ke/12)]}Ye.invert=function(ae,fe){var Te=ae,ke=fe,Ne=50,Oe;do{var He=ke*ke;ke-=Oe=(ke*(1+He/12)-fe)/(1+He/4)}while(i(Oe)>m&&--Ne>0);Ne=50,ae/=1-.162388*He;do{var ct=(ct=Te*Te)*ct;Te-=Oe=(Te*(.87-952426e-9*ct)-ae)/(.87-.00476213*ct)}while(i(Oe)>m&&--Ne>0);return[Te,ke]};function et(){return t.geoProjection(Ye).scale(131.747)}var gt=Cr(2.6516,-.76534,.19123,-.047094,1.36289,-.13965,.031762);function bt(){return t.geoProjection(gt).scale(131.087)}function lr(ae){var fe=ae(b,0)[0]-ae(-b,0)[0];function Te(ke,Ne){var Oe=ke>0?-.5:.5,He=ae(ke+Oe*_,Ne);return He[0]-=Oe*fe,He}return ae.invert&&(Te.invert=function(ke,Ne){var Oe=ke>0?-.5:.5,He=ae.invert(ke+Oe*fe,Ne),ct=He[0]-Oe*_;return ct<-_?ct+=2*_:ct>_&&(ct-=2*_),He[0]=ct,He}),Te}function Ct(ae,fe){var Te=p(ae),ke=p(fe),Ne=o(fe),Oe=o(ae)*Ne,He=v(ae)*Ne,ct=v(ke*fe);ae=i(a(He,ct)),fe=k(Oe),i(ae-b)>m&&(ae%=b);var xt=ur(ae>_/4?b-ae:ae,fe);return ae>_/4&&(ct=xt[0],xt[0]=-xt[1],xt[1]=-ct),xt[0]*=Te,xt[1]*=-ke,xt}Ct.invert=function(ae,fe){i(ae)>1&&(ae=p(ae)*2-ae),i(fe)>1&&(fe=p(fe)*2-fe);var Te=p(ae),ke=p(fe),Ne=-Te*ae,Oe=-ke*fe,He=Oe/Ne<1,ct=Ir(He?Oe:Ne,He?Ne:Oe),xt=ct[0],pt=ct[1],_t=o(pt);return He&&(xt=-b-xt),[Te*(a(v(xt)*_t,-v(pt))+_),ke*k(o(xt)*_t)]};function ur(ae,fe){if(fe===b)return[0,0];var Te=v(fe),ke=Te*Te,Ne=ke*ke,Oe=1+Ne,He=1+3*Ne,ct=1-Ne,xt=k(1/L(Oe)),pt=ct+ke*Oe*xt,_t=(1-Te)/pt,Lt=L(_t),Jt=_t*Oe,fr=L(Jt),Or=Lt*ct,Pi,Rn;if(ae===0)return[0,-(Or+ke*fr)];var fo=o(fe),Xo=1/fo,Bo=2*Te*fo,fs=(-3*ke+xt*He)*Bo,cs=(-pt*fo-(1-Te)*fs)/(pt*pt),Ns=.5*cs/Lt,zl=ct*Ns-2*ke*Lt*Bo,Is=ke*Oe*cs+_t*He*Bo,Nl=-Xo*Bo,ul=-Xo*Is,cl=-2*Xo*zl,vf=4*ae/_,wf;if(ae>.222*_||fe<_/4&&ae>.175*_){if(Pi=(Or+ke*L(Jt*(1+Ne)-Or*Or))/(1+Ne),ae>_/4)return[Pi,Pi];var bu=Pi,_u=.5*Pi;Pi=.5*(_u+bu),Rn=50;do{var ju=L(Jt-Pi*Pi),wu=Pi*(cl+Nl*ju)+ul*k(Pi/fr)-vf;if(!wu)break;wu<0?_u=Pi:bu=Pi,Pi=.5*(_u+bu)}while(i(bu-_u)>m&&--Rn>0)}else{Pi=m,Rn=25;do{var Eu=Pi*Pi,Af=L(Jt-Eu),mf=cl+Nl*Af,ef=Pi*mf+ul*k(Pi/fr)-vf,Nf=mf+(ul-Nl*Eu)/Af;Pi-=wf=Af?ef/Nf:0}while(i(wf)>m&&--Rn>0)}return[Pi,-Or-ke*L(Jt-Pi*Pi)]}function Ir(ae,fe){for(var Te=0,ke=1,Ne=.5,Oe=50;;){var He=Ne*Ne,ct=L(Ne),xt=k(1/L(1+He)),pt=1-He+Ne*(1+He)*xt,_t=(1-ct)/pt,Lt=L(_t),Jt=_t*(1+He),fr=Lt*(1-He),Or=Jt-ae*ae,Pi=L(Or),Rn=fe+fr+Ne*Pi;if(i(ke-Te)0?Te=Ne:ke=Ne,Ne=.5*(Te+ke)}if(!Oe)return null;var fo=k(ct),Xo=o(fo),Bo=1/Xo,fs=2*ct*Xo,cs=(-3*Ne+xt*(1+3*He))*fs,Ns=(-pt*Xo-(1-ct)*cs)/(pt*pt),zl=.5*Ns/Lt,Is=(1-He)*zl-2*Ne*Lt*fs,Nl=-2*Bo*Is,ul=-Bo*fs,cl=-Bo*(Ne*(1+He)*Ns+_t*(1+3*He)*fs);return[_/4*(ae*(Nl+ul*Pi)+cl*k(ae/L(Jt))),fo]}function Rr(){return t.geoProjection(lr(Ct)).scale(239.75)}function Nr(ae,fe,Te){var ke,Ne,Oe;return ae?(ke=gi(ae,Te),fe?(Ne=gi(fe,1-Te),Oe=Ne[1]*Ne[1]+Te*ke[0]*ke[0]*Ne[0]*Ne[0],[[ke[0]*Ne[2]/Oe,ke[1]*ke[2]*Ne[0]*Ne[1]/Oe],[ke[1]*Ne[1]/Oe,-ke[0]*ke[2]*Ne[0]*Ne[2]/Oe],[ke[2]*Ne[1]*Ne[2]/Oe,-Te*ke[0]*ke[1]*Ne[0]/Oe]]):[[ke[0],0],[ke[1],0],[ke[2],0]]):(Ne=gi(fe,1-Te),[[0,Ne[0]/Ne[1]],[1/Ne[1],0],[Ne[2]/Ne[1],0]])}function gi(ae,fe){var Te,ke,Ne,Oe,He;if(fe=1-m)return Te=(1-fe)/4,ke=F(ae),Oe=P(ae),Ne=1/ke,He=ke*I(ae),[Oe+Te*(He-ae)/(ke*ke),Ne-Te*Oe*Ne*(He-ae),Ne+Te*Oe*Ne*(He+ae),2*n(s(ae))-b+Te*(He-ae)/ke];var ct=[1,0,0,0,0,0,0,0,0],xt=[L(fe),0,0,0,0,0,0,0,0],pt=0;for(ke=L(1-fe),He=1;i(xt[pt]/ct[pt])>m&&pt<8;)Te=ct[pt++],xt[pt]=(Te-ke)/2,ct[pt]=(Te+ke)/2,ke=L(Te*ke),He*=2;Ne=He*ct[pt]*ae;do Oe=xt[pt]*v(ke=Ne)/ct[pt],Ne=(k(Oe)+Ne)/2;while(--pt);return[v(Ne),Oe=o(Ne),Oe/o(Ne-ke),Ne]}function ui(ae,fe,Te){var ke=i(ae),Ne=i(fe),Oe=I(Ne);if(ke){var He=1/v(ke),ct=1/(y(ke)*y(ke)),xt=-(ct+Te*(Oe*Oe*He*He)-1+Te),pt=(Te-1)*ct,_t=(-xt+L(xt*xt-4*pt))/2;return[Qr(n(1/L(_t)),Te)*p(ae),Qr(n(L((_t/ct-1)/Te)),1-Te)*p(fe)]}return[0,Qr(n(Oe),1-Te)*p(fe)]}function Qr(ae,fe){if(!fe)return ae;if(fe===1)return u(y(ae/2+M));for(var Te=1,ke=L(1-fe),Ne=L(fe),Oe=0;i(Ne)>m;Oe++){if(ae%_){var He=n(ke*y(ae)/Te);He<0&&(He+=_),ae+=He+~~(ae/_)*_}else ae+=ae;Ne=(Te+ke)/2,ke=L(Te*ke),Ne=((Te=Ne)-ke)/2}return ae/(h(2,Oe)*Te)}function Ui(ae,fe){var Te=(A-1)/(A+1),ke=L(1-Te*Te),Ne=Qr(b,ke*ke),Oe=-1,He=u(y(_/4+i(fe)/2)),ct=s(Oe*He)/L(Te),xt=ln(ct*o(Oe*ae),ct*v(Oe*ae)),pt=ui(xt[0],xt[1],ke*ke);return[-pt[1],(fe>=0?1:-1)*(.5*Ne-pt[0])]}function ln(ae,fe){var Te=ae*ae,ke=fe+1,Ne=1-Te-fe*fe;return[.5*((ae>=0?b:-b)-a(Ne,2*ae)),-.25*u(Ne*Ne+4*Te)+.5*u(ke*ke+Te)]}function Tt(ae,fe){var Te=fe[0]*fe[0]+fe[1]*fe[1];return[(ae[0]*fe[0]+ae[1]*fe[1])/Te,(ae[1]*fe[0]-ae[0]*fe[1])/Te]}Ui.invert=function(ae,fe){var Te=(A-1)/(A+1),ke=L(1-Te*Te),Ne=Qr(b,ke*ke),Oe=-1,He=Nr(.5*Ne-fe,-ae,ke*ke),ct=Tt(He[0],He[1]),xt=a(ct[1],ct[0])/Oe;return[xt,2*n(s(.5/Oe*u(Te*ct[0]*ct[0]+Te*ct[1]*ct[1])))-b]};function _i(){return t.geoProjection(lr(Ui)).scale(151.496)}function kn(ae){var fe=v(ae),Te=o(ae),ke=ti(ae);ke.invert=ti(-ae);function Ne(Oe,He){var ct=ke(Oe,He);Oe=ct[0],He=ct[1];var xt=v(He),pt=o(He),_t=o(Oe),Lt=D(fe*xt+Te*pt*_t),Jt=v(Lt),fr=i(Jt)>m?Lt/Jt:1;return[fr*Te*v(Oe),(i(Oe)>b?fr:-fr)*(fe*pt-Te*xt*_t)]}return Ne.invert=function(Oe,He){var ct=L(Oe*Oe+He*He),xt=-v(ct),pt=o(ct),_t=ct*pt,Lt=-He*xt,Jt=ct*fe,fr=L(_t*_t+Lt*Lt-Jt*Jt),Or=a(_t*Jt+Lt*fr,Lt*Jt-_t*fr),Pi=(ct>b?-1:1)*a(Oe*xt,ct*o(Or)*pt+He*v(Or)*xt);return ke.invert(Pi,Or)},Ne}function ti(ae){var fe=v(ae),Te=o(ae);return function(ke,Ne){var Oe=o(Ne),He=o(ke)*Oe,ct=v(ke)*Oe,xt=v(Ne);return[a(ct,He*Te-xt*fe),k(xt*Te+He*fe)]}}function Fr(){var ae=0,fe=t.geoProjectionMutator(kn),Te=fe(ae),ke=Te.rotate,Ne=Te.stream,Oe=t.geoCircle();return Te.parallel=function(He){if(!arguments.length)return ae*E;var ct=Te.rotate();return fe(ae=He*S).rotate(ct)},Te.rotate=function(He){return arguments.length?(ke.call(Te,[He[0],He[1]-ae*E]),Oe.center([-He[0],-He[1]]),Te):(He=ke.call(Te),He[1]+=ae*E,He)},Te.stream=function(He){return He=Ne(He),He.sphere=function(){He.polygonStart();var ct=.01,xt=Oe.radius(90-ct)().coordinates[0],pt=xt.length-1,_t=-1,Lt;for(He.lineStart();++_t=0;)He.point((Lt=xt[_t])[0],Lt[1]);He.lineEnd(),He.polygonEnd()},He},Te.scale(79.4187).parallel(45).clipAngle(180-.001)}var ji=3,na=k(1-1/ji)*E,mn=At(0);function $n(ae){var fe=na*S,Te=Ve(_,fe)[0]-Ve(-_,fe)[0],ke=mn(0,fe)[1],Ne=Ve(0,fe)[1],Oe=T-Ne,He=g/ae,ct=4/g,xt=ke+Oe*Oe*4/g;function pt(_t,Lt){var Jt,fr=i(Lt);if(fr>fe){var Or=c(ae-1,f(0,l((_t+_)/He)));_t+=_*(ae-1)/ae-Or*He,Jt=Ve(_t,fr),Jt[0]=Jt[0]*g/Te-g*(ae-1)/(2*ae)+Or*g/ae,Jt[1]=ke+(Jt[1]-Ne)*4*Oe/g,Lt<0&&(Jt[1]=-Jt[1])}else Jt=mn(_t,Lt);return Jt[0]*=ct,Jt[1]/=xt,Jt}return pt.invert=function(_t,Lt){_t/=ct,Lt*=xt;var Jt=i(Lt);if(Jt>ke){var fr=c(ae-1,f(0,l((_t+_)/He)));_t=(_t+_*(ae-1)/ae-fr*He)*Te/g;var Or=Ve.invert(_t,.25*(Jt-ke)*g/Oe+Ne);return Or[0]-=_*(ae-1)/ae-fr*He,Lt<0&&(Or[1]=-Or[1]),Or}return mn.invert(_t,Lt)},pt}function Wi(ae,fe){return[ae,fe&1?90-m:na]}function Qi(ae,fe){return[ae,fe&1?-90+m:-na]}function _r(ae){return[ae[0]*(1-m),ae[1]]}function Yr(ae){var fe=[].concat(r.range(-180,180+ae/2,ae).map(Wi),r.range(180,-180-ae/2,-ae).map(Qi));return{type:"Polygon",coordinates:[ae===180?fe.map(_r):fe]}}function fi(){var ae=4,fe=t.geoProjectionMutator($n),Te=fe(ae),ke=Te.stream;return Te.lobes=function(Ne){return arguments.length?fe(ae=+Ne):ae},Te.stream=function(Ne){var Oe=Te.rotate(),He=ke(Ne),ct=(Te.rotate([0,0]),ke(Ne));return Te.rotate(Oe),He.sphere=function(){t.geoStream(Yr(180/ae),ct)},He},Te.scale(239.75)}function aa(ae){var fe=1+ae,Te=v(1/fe),ke=k(Te),Ne=2*L(_/(Oe=_+4*ke*fe)),Oe,He=.5*Ne*(fe+L(ae*(2+ae))),ct=ae*ae,xt=fe*fe;function pt(_t,Lt){var Jt=1-v(Lt),fr,Or;if(Jt&&Jt<2){var Pi=b-Lt,Rn=25,fo;do{var Xo=v(Pi),Bo=o(Pi),fs=ke+a(Xo,fe-Bo),cs=1+xt-2*fe*Bo;Pi-=fo=(Pi-ct*ke-fe*Xo+cs*fs-.5*Jt*Oe)/(2*fe*Xo*fs)}while(i(fo)>w&&--Rn>0);fr=Ne*L(cs),Or=_t*fs/_}else fr=Ne*(ae+Jt),Or=_t*ke/_;return[fr*v(Or),He-fr*o(Or)]}return pt.invert=function(_t,Lt){var Jt=_t*_t+(Lt-=He)*Lt,fr=(1+xt-Jt/(Ne*Ne))/(2*fe),Or=D(fr),Pi=v(Or),Rn=ke+a(Pi,fe-fr);return[k(_t/L(Jt))*_/Rn,k(1-2*(Or-ct*ke-fe*Pi+(1+xt-2*fe*fr)*Rn)/Oe)]},pt}function sn(){var ae=1,fe=t.geoProjectionMutator(aa),Te=fe(ae);return Te.ratio=function(ke){return arguments.length?fe(ae=+ke):ae},Te.scale(167.774).center([0,18.67])}var ca=.7109889596207567,Kn=.0528035274542;function hn(ae,fe){return fe>-ca?(ae=Y(ae,fe),ae[1]+=Kn,ae):me(ae,fe)}hn.invert=function(ae,fe){return fe>-ca?Y.invert(ae,fe-Kn):me.invert(ae,fe)};function Ta(){return t.geoProjection(hn).rotate([-20,-55]).scale(164.263).center([0,-5.4036])}function tn(ae,fe){return i(fe)>ca?(ae=Y(ae,fe),ae[1]-=fe>0?Kn:-Kn,ae):me(ae,fe)}tn.invert=function(ae,fe){return i(fe)>ca?Y.invert(ae,fe+(fe>0?Kn:-Kn)):me.invert(ae,fe)};function wi(){return t.geoProjection(tn).scale(152.63)}function rn(ae,fe,Te,ke){var Ne=L(4*_/(2*Te+(1+ae-fe/2)*v(2*Te)+(ae+fe)/2*v(4*Te)+fe/2*v(6*Te))),Oe=L(ke*v(Te)*L((1+ae*o(2*Te)+fe*o(4*Te))/(1+ae+fe))),He=Te*xt(1);function ct(Lt){return L(1+ae*o(2*Lt)+fe*o(4*Lt))}function xt(Lt){var Jt=Lt*Te;return(2*Jt+(1+ae-fe/2)*v(2*Jt)+(ae+fe)/2*v(4*Jt)+fe/2*v(6*Jt))/Te}function pt(Lt){return ct(Lt)*v(Lt)}var _t=function(Lt,Jt){var fr=Te*Ce(xt,He*v(Jt)/Te,Jt/_);isNaN(fr)&&(fr=Te*p(Jt));var Or=Ne*ct(fr);return[Or*Oe*Lt/_*o(fr),Or/Oe*v(fr)]};return _t.invert=function(Lt,Jt){var fr=Ce(pt,Jt*Oe/Ne);return[Lt*_/(o(fr)*Ne*Oe*ct(fr)),k(Te*xt(fr/Te)/He)]},Te===0&&(Ne=L(ke/_),_t=function(Lt,Jt){return[Lt*Ne,v(Jt)/Ne]},_t.invert=function(Lt,Jt){return[Lt/Ne,k(Jt*Ne)]}),_t}function Ai(){var ae=1,fe=0,Te=45*S,ke=2,Ne=t.geoProjectionMutator(rn),Oe=Ne(ae,fe,Te,ke);return Oe.a=function(He){return arguments.length?Ne(ae=+He,fe,Te,ke):ae},Oe.b=function(He){return arguments.length?Ne(ae,fe=+He,Te,ke):fe},Oe.psiMax=function(He){return arguments.length?Ne(ae,fe,Te=+He*S,ke):Te*E},Oe.ratio=function(He){return arguments.length?Ne(ae,fe,Te,ke=+He):ke},Oe.scale(180.739)}function ea(ae,fe,Te,ke,Ne,Oe,He,ct,xt,pt,_t){if(_t.nanEncountered)return NaN;var Lt,Jt,fr,Or,Pi,Rn,fo,Xo,Bo,fs;if(Lt=Te-fe,Jt=ae(fe+Lt*.25),fr=ae(Te-Lt*.25),isNaN(Jt)){_t.nanEncountered=!0;return}if(isNaN(fr)){_t.nanEncountered=!0;return}return Or=Lt*(ke+4*Jt+Ne)/12,Pi=Lt*(Ne+4*fr+Oe)/12,Rn=Or+Pi,fs=(Rn-He)/15,pt>xt?(_t.maxDepthCount++,Rn+fs):Math.abs(fs)>1;do xt[Rn]>fr?Pi=Rn:Or=Rn,Rn=Or+Pi>>1;while(Rn>Or);var fo=xt[Rn+1]-xt[Rn];return fo&&(fo=(fr-xt[Rn+1])/fo),(Rn+1+fo)/He}var Lt=2*_t(1)/_*Oe/Te,Jt=function(fr,Or){var Pi=_t(i(v(Or))),Rn=ke(Pi)*fr;return Pi/=Lt,[Rn,Or>=0?Pi:-Pi]};return Jt.invert=function(fr,Or){var Pi;return Or*=Lt,i(Or)<1&&(Pi=p(Or)*k(Ne(i(Or))*Oe)),[fr/ke(i(Or)),Pi]},Jt}function Fn(){var ae=0,fe=2.5,Te=1.183136,ke=t.geoProjectionMutator(pi),Ne=ke(ae,fe,Te);return Ne.alpha=function(Oe){return arguments.length?ke(ae=+Oe,fe,Te):ae},Ne.k=function(Oe){return arguments.length?ke(ae,fe=+Oe,Te):fe},Ne.gamma=function(Oe){return arguments.length?ke(ae,fe,Te=+Oe):Te},Ne.scale(152.63)}function Pa(ae,fe){return i(ae[0]-fe[0])=0;--xt)Te=ae[1][xt],ke=Te[0][0],Ne=Te[0][1],Oe=Te[1][1],He=Te[2][0],ct=Te[2][1],fe.push(dr([[He-m,ct-m],[He-m,Oe+m],[ke+m,Oe+m],[ke+m,Ne-m]],30));return{type:"Polygon",coordinates:[r.merge(fe)]}}function Zi(ae,fe,Te){var ke,Ne;function Oe(xt,pt){for(var _t=pt<0?-1:1,Lt=fe[+(pt<0)],Jt=0,fr=Lt.length-1;JtLt[Jt][2][0];++Jt);var Or=ae(xt-Lt[Jt][1][0],pt);return Or[0]+=ae(Lt[Jt][1][0],_t*pt>_t*Lt[Jt][0][1]?Lt[Jt][0][1]:pt)[0],Or}Te?Oe.invert=Te(Oe):ae.invert&&(Oe.invert=function(xt,pt){for(var _t=Ne[+(pt<0)],Lt=fe[+(pt<0)],Jt=0,fr=_t.length;JtOr&&(Pi=fr,fr=Or,Or=Pi),[[Lt,fr],[Jt,Or]]})}),He):fe.map(function(pt){return pt.map(function(_t){return[[_t[0][0]*E,_t[0][1]*E],[_t[1][0]*E,_t[1][1]*E],[_t[2][0]*E,_t[2][1]*E]]})})},fe!=null&&He.lobes(fe),He}var Vi=[[[[-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 pa(){return Zi(se,Vi).scale(160.857)}var Na=[[[[-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 an(){return Zi(tn,Na).scale(152.63)}var wn=[[[[-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 Ra(){return Zi(Y,wn).scale(169.529)}var ei=[[[[-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 Yn(){return Zi(Y,ei).scale(169.529).rotate([20,0])}var Ja=[[[[-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 ja(){return Zi(hn,Ja,le).rotate([-20,-55]).scale(164.263).center([0,-5.4036])}var ka=[[[[-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 ki(){return Zi(me,ka).scale(152.63).rotate([-20,0])}function pn(ae,fe){return[3/g*ae*L(_*_/3-fe*fe),fe]}pn.invert=function(ae,fe){return[g/3*ae/L(_*_/3-fe*fe),fe]};function Va(){return t.geoProjection(pn).scale(158.837)}function Gi(ae){function fe(Te,ke){if(i(i(ke)-b)2)return null;Te/=2,ke/=2;var Oe=Te*Te,He=ke*ke,ct=2*ke/(1+Oe+He);return ct=h((1+ct)/(1-ct),1/ae),[a(2*Te,1-Oe-He)/ae,k((ct-1)/(ct+1))]},fe}function Pr(){var ae=.5,fe=t.geoProjectionMutator(Gi),Te=fe(ae);return Te.spacing=function(ke){return arguments.length?fe(ae=+ke):ae},Te.scale(124.75)}var ri=_/A;function bn(ae,fe){return[ae*(1+L(o(fe)))/2,fe/(o(fe/2)*o(ae/6))]}bn.invert=function(ae,fe){var Te=i(ae),ke=i(fe),Ne=m,Oe=b;kem||i(Rn)>m)&&--Ne>0);return Ne&&[Te,ke]};function yr(){return t.geoProjection(vi).scale(139.98)}function Ti(ae,fe){return[v(ae)/o(fe),y(fe)*o(ae)]}Ti.invert=function(ae,fe){var Te=ae*ae,ke=fe*fe,Ne=ke+1,Oe=Te+Ne,He=ae?x*L((Oe-L(Oe*Oe-4*Te))/Te):1/L(Ne);return[k(ae*He),p(fe)*D(He)]};function Cn(){return t.geoProjection(Ti).scale(144.049).clipAngle(90-.001)}function Gr(ae){var fe=o(ae),Te=y(M+ae/2);function ke(Ne,Oe){var He=Oe-ae,ct=i(He)=0;)_t=ae[pt],Lt=_t[0]+ct*(fr=Lt)-xt*Jt,Jt=_t[1]+ct*Jt+xt*fr;return Lt=ct*(fr=Lt)-xt*Jt,Jt=ct*Jt+xt*fr,[Lt,Jt]}return Te.invert=function(ke,Ne){var Oe=20,He=ke,ct=Ne;do{for(var xt=fe,pt=ae[xt],_t=pt[0],Lt=pt[1],Jt=0,fr=0,Or;--xt>=0;)pt=ae[xt],Jt=_t+He*(Or=Jt)-ct*fr,fr=Lt+He*fr+ct*Or,_t=pt[0]+He*(Or=_t)-ct*Lt,Lt=pt[1]+He*Lt+ct*Or;Jt=_t+He*(Or=Jt)-ct*fr,fr=Lt+He*fr+ct*Or,_t=He*(Or=_t)-ct*Lt-ke,Lt=He*Lt+ct*Or-Ne;var Pi=Jt*Jt+fr*fr,Rn,fo;He-=Rn=(_t*Jt+Lt*fr)/Pi,ct-=fo=(Lt*Jt-_t*fr)/Pi}while(i(Rn)+i(fo)>m*m&&--Oe>0);if(Oe){var Xo=L(He*He+ct*ct),Bo=2*n(Xo*.5),fs=v(Bo);return[a(He*fs,Xo*o(Bo)),Xo?k(ct*fs/Xo):0]}},Te}var On=[[.9972523,0],[.0052513,-.0041175],[.0074606,.0048125],[-.0153783,-.1968253],[.0636871,-.1408027],[.3660976,-.2937382]],Nn=[[.98879,0],[0,0],[-.050909,0],[0,0],[.075528,0]],ia=[[.984299,0],[.0211642,.0037608],[-.1036018,-.0575102],[-.0329095,-.0320119],[.0499471,.1223335],[.026046,.0899805],[7388e-7,-.1435792],[.0075848,-.1334108],[-.0216473,.0776645],[-.0225161,.0853673]],Jr=[[.9245,0],[0,0],[.01943,0]],Ci=[[.721316,0],[0,0],[-.00881625,-.00617325]];function un(){return Li(On,[152,-64]).scale(1400).center([-160.908,62.4864]).clipAngle(30).angle(7.8)}function Dn(){return Li(Nn,[95,-38]).scale(1e3).clipAngle(55).center([-96.5563,38.8675])}function Vn(){return Li(ia,[120,-45]).scale(359.513).clipAngle(55).center([-117.474,53.0628])}function vn(){return Li(Jr,[-20,-18]).scale(209.091).center([20,16.7214]).clipAngle(82)}function Br(){return Li(Ci,[165,10]).scale(250).clipAngle(130).center([-165,-10])}function Li(ae,fe){var Te=t.geoProjection(Bi(ae)).rotate(fe).clipAngle(90),ke=t.geoRotation(fe),Ne=Te.center;return delete Te.rotate,Te.center=function(Oe){return arguments.length?Ne(ke(Oe)):ke.invert(Ne())},Te}var Ua=L(6),yi=L(7);function Ma(ae,fe){var Te=k(7*v(fe)/(3*Ua));return[Ua*ae*(2*o(2*Te/3)-1)/yi,9*v(Te/3)/yi]}Ma.invert=function(ae,fe){var Te=3*k(fe*yi/9);return[ae*yi/(Ua*(2*o(2*Te/3)-1)),k(v(Te)*3*Ua/7)]};function Ba(){return t.geoProjection(Ma).scale(164.859)}function Bn(ae,fe){for(var Te=(1+x)*v(fe),ke=fe,Ne=0,Oe;Ne<25&&(ke-=Oe=(v(ke/2)+v(ke)-Te)/(.5*o(ke/2)+o(ke)),!(i(Oe)w&&--ke>0);return Oe=Te*Te,He=Oe*Oe,ct=Oe*He,[ae/(.84719-.13063*Oe+ct*ct*(-.04515+.05494*Oe-.02326*He+.00331*ct)),Te]};function zi(){return t.geoProjection(Un).scale(175.295)}function xr(ae,fe){return[ae*(1+o(fe))/2,2*(fe-y(fe/2))]}xr.invert=function(ae,fe){for(var Te=fe/2,ke=0,Ne=1/0;ke<10&&i(Ne)>m;++ke){var Oe=o(fe/2);fe-=Ne=(fe-y(fe/2)-Te)/(1-.5/(Oe*Oe))}return[2*ae/(1+o(fe)),fe]};function Ln(){return t.geoProjection(xr).scale(152.63)}var xn=[[[[-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 da(){return Zi(de(1/0),xn).rotate([20,0]).scale(152.63)}function Mi(ae,fe){var Te=v(fe),ke=o(fe),Ne=p(ae);if(ae===0||i(fe)===b)return[0,fe];if(fe===0)return[ae,0];if(i(ae)===b)return[ae*ke,b*Te];var Oe=_/(2*ae)-2*ae/_,He=2*fe/_,ct=(1-He*He)/(Te-He),xt=Oe*Oe,pt=ct*ct,_t=1+xt/pt,Lt=1+pt/xt,Jt=(Oe*Te/ct-Oe/2)/_t,fr=(pt*Te/xt+ct/2)/Lt,Or=Jt*Jt+ke*ke/_t,Pi=fr*fr-(pt*Te*Te/xt+ct*Te-1)/Lt;return[b*(Jt+L(Or)*Ne),b*(fr+L(Pi<0?0:Pi)*p(-fe*Oe)*Ne)]}Mi.invert=function(ae,fe){ae/=b,fe/=b;var Te=ae*ae,ke=fe*fe,Ne=Te+ke,Oe=_*_;return[ae?(Ne-1+L((1-Ne)*(1-Ne)+4*Te))/(2*ae)*b:0,Ce(function(He){return Ne*(_*v(He)-2*He)*_+4*He*He*(fe-v(He))+2*_*He-Oe*fe},0)]};function Xr(){return t.geoProjection(Mi).scale(127.267)}var Gn=1.0148,to=.23185,Jn=-.14499,ro=.02406,mo=Gn,Oa=5*to,Si=7*Jn,co=9*ro,Pn=1.790857183;function Fa(ae,fe){var Te=fe*fe;return[ae,fe*(Gn+Te*Te*(to+Te*(Jn+ro*Te)))]}Fa.invert=function(ae,fe){fe>Pn?fe=Pn:fe<-Pn&&(fe=-Pn);var Te=fe,ke;do{var Ne=Te*Te;Te-=ke=(Te*(Gn+Ne*Ne*(to+Ne*(Jn+ro*Ne)))-fe)/(mo+Ne*Ne*(Oa+Ne*(Si+co*Ne)))}while(i(ke)>m);return[ae,Te]};function oa(){return t.geoProjection(Fa).scale(139.319)}function Hn(ae,fe){if(i(fe)m&&--Ne>0);return He=y(ke),[(i(fe)=0;)if(ke=fe[ct],Te[0]===ke[0]&&Te[1]===ke[1]){if(Oe)return[Oe,Te];Oe=Te}}}function Xi(ae){for(var fe=ae.length,Te=[],ke=ae[fe-1],Ne=0;Ne0?[-ke[0],0]:[180-ke[0],180])};var fe=ya.map(function(Te){return{face:Te,project:ae(Te)}});return[-1,0,0,1,0,1,4,5].forEach(function(Te,ke){var Ne=fe[Te];Ne&&(Ne.children||(Ne.children=[])).push(fe[ke])}),Ga(fe[0],function(Te,ke){return fe[Te<-_/2?ke<0?6:4:Te<0?ke<0?2:0:Te<_/2?ke<0?3:1:ke<0?7:5]}).angle(-30).scale(121.906).center([0,48.5904])}function Ia(ae){ae=ae||function(He){var ct=He.length===6?t.geoCentroid({type:"MultiPoint",coordinates:He}):He[0];return t.geoGnomonic().scale(1).translate([0,0]).rotate([-ct[0],-ct[1]])};var fe=ya.map(function(He){for(var ct=He.map(la),xt=ct.length,pt=ct[xt-1],_t,Lt=[],Jt=0;Jtke^fr>ke&&Te<(Jt-pt)*(ke-_t)/(fr-_t)+pt&&(Ne=!Ne)}return Ne}function So(ae,fe){var Te=fe.stream,ke;if(!Te)throw new Error("invalid projection");switch(ae&&ae.type){case"Feature":ke=Ao;break;case"FeatureCollection":ke=Mn;break;default:ke=Co;break}return ke(ae,Te)}function Mn(ae,fe){return{type:"FeatureCollection",features:ae.features.map(function(Te){return Ao(Te,fe)})}}function Ao(ae,fe){return{type:"Feature",id:ae.id,properties:ae.properties,geometry:Co(ae.geometry,fe)}}function Ya(ae,fe){return{type:"GeometryCollection",geometries:ae.geometries.map(function(Te){return Co(Te,fe)})}}function Co(ae,fe){if(!ae)return null;if(ae.type==="GeometryCollection")return Ya(ae,fe);var Te;switch(ae.type){case"Point":Te=Zn;break;case"MultiPoint":Te=Zn;break;case"LineString":Te=Ha;break;case"MultiLineString":Te=Ha;break;case"Polygon":Te=Wa;break;case"MultiPolygon":Te=Wa;break;case"Sphere":Te=Wa;break;default:return null}return t.geoStream(ae,fe(Te)),Te.result()}var Ii=[],qa=[],Zn={point:function(ae,fe){Ii.push([ae,fe])},result:function(){var ae=Ii.length?Ii.length<2?{type:"Point",coordinates:Ii[0]}:{type:"MultiPoint",coordinates:Ii}:null;return Ii=[],ae}},Ha={lineStart:ga,point:function(ae,fe){Ii.push([ae,fe])},lineEnd:function(){Ii.length&&(qa.push(Ii),Ii=[])},result:function(){var ae=qa.length?qa.length<2?{type:"LineString",coordinates:qa[0]}:{type:"MultiLineString",coordinates:qa}:null;return qa=[],ae}},Wa={polygonStart:ga,lineStart:ga,point:function(ae,fe){Ii.push([ae,fe])},lineEnd:function(){var ae=Ii.length;if(ae){do Ii.push(Ii[0].slice());while(++ae<4);qa.push(Ii),Ii=[]}},polygonEnd:ga,result:function(){if(!qa.length)return null;var ae=[],fe=[];return qa.forEach(function(Te){go(Te)?ae.push([Te]):fe.push(Te)}),fe.forEach(function(Te){var ke=Te[0];ae.some(function(Ne){if(eo(Ne[0],ke))return Ne.push(Te),!0})||ae.push([Te])}),qa=[],ae.length?ae.length>1?{type:"MultiPolygon",coordinates:ae}:{type:"Polygon",coordinates:ae[0]}:null}};function $a(ae){var fe=ae(b,0)[0]-ae(-b,0)[0];function Te(ke,Ne){var Oe=i(ke)0?ke-_:ke+_,Ne),ct=(He[0]-He[1])*x,xt=(He[0]+He[1])*x;if(Oe)return[ct,xt];var pt=fe*x,_t=ct>0^xt>0?-1:1;return[_t*ct-p(xt)*pt,_t*xt-p(ct)*pt]}return ae.invert&&(Te.invert=function(ke,Ne){var Oe=(ke+Ne)*x,He=(Ne-ke)*x,ct=i(Oe)<.5*fe&&i(He)<.5*fe;if(!ct){var xt=fe*x,pt=Oe>0^He>0?-1:1,_t=-pt*ke+(He>0?1:-1)*xt,Lt=-pt*Ne+(Oe>0?1:-1)*xt;Oe=(-_t-Lt)*x,He=(_t-Lt)*x}var Jt=ae.invert(Oe,He);return ct||(Jt[0]+=Oe>0?_:-_),Jt}),t.geoProjection(Te).rotate([-90,-90,45]).clipAngle(180-.001)}function Fe(){return $a(Ct).scale(176.423)}function Ge(){return $a(Ui).scale(111.48)}function ot(ae,fe){if(!(0<=(fe=+fe)&&fe<=20))throw new Error("invalid digits");function Te(pt){var _t=pt.length,Lt=2,Jt=new Array(_t);for(Jt[0]=+pt[0].toFixed(fe),Jt[1]=+pt[1].toFixed(fe);Lt<_t;)Jt[Lt]=pt[Lt],++Lt;return Jt}function ke(pt){return pt.map(Te)}function Ne(pt){for(var _t=Te(pt[0]),Lt=[_t],Jt=1;Jt2||fr[0]!=_t[0]||fr[1]!=_t[1])&&(Lt.push(fr),_t=fr)}return Lt.length===1&&pt.length>1&&Lt.push(Te(pt[pt.length-1])),Lt}function Oe(pt){return pt.map(Ne)}function He(pt){if(pt==null)return pt;var _t;switch(pt.type){case"GeometryCollection":_t={type:"GeometryCollection",geometries:pt.geometries.map(He)};break;case"Point":_t={type:"Point",coordinates:Te(pt.coordinates)};break;case"MultiPoint":_t={type:pt.type,coordinates:ke(pt.coordinates)};break;case"LineString":_t={type:pt.type,coordinates:Ne(pt.coordinates)};break;case"MultiLineString":case"Polygon":_t={type:pt.type,coordinates:Oe(pt.coordinates)};break;case"MultiPolygon":_t={type:"MultiPolygon",coordinates:pt.coordinates.map(Oe)};break;default:return pt}return pt.bbox!=null&&(_t.bbox=pt.bbox),_t}function ct(pt){var _t={type:"Feature",properties:pt.properties,geometry:He(pt.geometry)};return pt.id!=null&&(_t.id=pt.id),pt.bbox!=null&&(_t.bbox=pt.bbox),_t}if(ae!=null)switch(ae.type){case"Feature":return ct(ae);case"FeatureCollection":{var xt={type:"FeatureCollection",features:ae.features.map(ct)};return ae.bbox!=null&&(xt.bbox=ae.bbox),xt}default:return He(ae)}return ae}function rt(ae){var fe=v(ae);function Te(ke,Ne){var Oe=fe?y(ke*fe/2)/fe:ke/2;if(!Ne)return[2*Oe,-ae];var He=2*n(Oe*v(Ne)),ct=1/y(Ne);return[v(He)*ct,Ne+(1-o(He))*ct-ae]}return Te.invert=function(ke,Ne){if(i(Ne+=ae)m&&--ct>0);var Jt=ke*(pt=y(He)),fr=y(i(Ne)0?b:-b)*(xt+Ne*(_t-He)/2+Ne*Ne*(_t-2*xt+He)/2)]}Bt.invert=function(ae,fe){var Te=fe/b,ke=Te*90,Ne=c(18,i(ke/5)),Oe=f(0,l(Ne));do{var He=It[Oe][1],ct=It[Oe+1][1],xt=It[c(19,Oe+2)][1],pt=xt-He,_t=xt-2*ct+He,Lt=2*(i(Te)-ct)/pt,Jt=_t/pt,fr=Lt*(1-Jt*Lt*(1-2*Jt*Lt));if(fr>=0||Oe===1){ke=(fe>=0?5:-5)*(fr+Ne);var Or=50,Pi;do Ne=c(18,i(ke)/5),Oe=l(Ne),fr=Ne-Oe,He=It[Oe][1],ct=It[Oe+1][1],xt=It[c(19,Oe+2)][1],ke-=(Pi=(fe>=0?b:-b)*(ct+fr*(xt-He)/2+fr*fr*(xt-2*ct+He)/2)-fe)*E;while(i(Pi)>w&&--Or>0);break}}while(--Oe>=0);var Rn=It[Oe][0],fo=It[Oe+1][0],Xo=It[c(19,Oe+2)][0];return[ae/(fo+fr*(Xo-Rn)/2+fr*fr*(Xo-2*fo+Rn)/2),ke*S]};function Ot(){return t.geoProjection(Bt).scale(152.63)}function nr(ae){function fe(Te,ke){var Ne=o(ke),Oe=(ae-1)/(ae-Ne*o(Te));return[Oe*Ne*v(Te),Oe*v(ke)]}return fe.invert=function(Te,ke){var Ne=Te*Te+ke*ke,Oe=L(Ne),He=(ae-L(1-Ne*(ae+1)/(ae-1)))/((ae-1)/Oe+Oe/(ae-1));return[a(Te*He,Oe*L(1-He*He)),Oe?k(ke*He/Oe):0]},fe}function zr(ae,fe){var Te=nr(ae);if(!fe)return Te;var ke=o(fe),Ne=v(fe);function Oe(He,ct){var xt=Te(He,ct),pt=xt[1],_t=pt*Ne/(ae-1)+ke;return[xt[0]*ke/_t,pt/_t]}return Oe.invert=function(He,ct){var xt=(ae-1)/(ae-1-ct*Ne);return Te.invert(xt*He,xt*ct*ke)},Oe}function Wt(){var ae=2,fe=0,Te=t.geoProjectionMutator(zr),ke=Te(ae,fe);return ke.distance=function(Ne){return arguments.length?Te(ae=+Ne,fe):ae},ke.tilt=function(Ne){return arguments.length?Te(ae,fe=Ne*S):fe*E},ke.scale(432.147).clipAngle(D(1/ae)*E-1e-6)}var Rt=1e-4,er=1e4,kr=-180,Vr=kr+Rt,ii=180,ci=ii-Rt,li=-90,mi=li+Rt,xi=90,Oi=xi-Rt;function ua(ae){return ae.length>0}function xa(ae){return Math.floor(ae*er)/er}function ao(ae){return ae===li||ae===xi?[0,ae]:[kr,xa(ae)]}function ho(ae){var fe=ae[0],Te=ae[1],ke=!1;return fe<=Vr?(fe=kr,ke=!0):fe>=ci&&(fe=ii,ke=!0),Te<=mi?(Te=li,ke=!0):Te>=Oi&&(Te=xi,ke=!0),ke?[fe,Te]:ae}function Fo(ae){return ae.map(ho)}function ls(ae,fe,Te){for(var ke=0,Ne=ae.length;ke=ci||_t<=mi||_t>=Oi){Oe[He]=ho(xt);for(var Lt=He+1;LtVr&&frmi&&Or=ct)break;Te.push({index:-1,polygon:fe,ring:Oe=Oe.slice(Lt-1)}),Oe[0]=ao(Oe[0][1]),He=-1,ct=Oe.length}}}}function Io(ae){var fe,Te=ae.length,ke={},Ne={},Oe,He,ct,xt,pt;for(fe=0;fe0?_-ct:ct)*E],pt=t.geoProjection(ae(He)).rotate(xt),_t=t.geoRotation(xt),Lt=pt.center;return delete pt.rotate,pt.center=function(Jt){return arguments.length?Lt(_t(Jt)):_t.invert(Lt())},pt.clipAngle(90)}function oo(ae){var fe=o(ae);function Te(ke,Ne){var Oe=t.geoGnomonicRaw(ke,Ne);return Oe[0]*=fe,Oe}return Te.invert=function(ke,Ne){return t.geoGnomonicRaw.invert(ke/fe,Ne)},Te}function xo(){return bo([-158,21.5],[-77,39]).clipAngle(60).scale(400)}function bo(ae,fe){return Eo(oo,ae,fe)}function so(ae){if(!(ae*=2))return t.geoAzimuthalEquidistantRaw;var fe=-ae/2,Te=-fe,ke=ae*ae,Ne=y(Te),Oe=.5/v(Te);function He(ct,xt){var pt=D(o(xt)*o(ct-fe)),_t=D(o(xt)*o(ct-Te)),Lt=xt<0?-1:1;return pt*=pt,_t*=_t,[(pt-_t)/(2*ae),Lt*L(4*ke*_t-(ke-pt+_t)*(ke-pt+_t))/(2*ae)]}return He.invert=function(ct,xt){var pt=xt*xt,_t=o(L(pt+(Jt=ct+fe)*Jt)),Lt=o(L(pt+(Jt=ct+Te)*Jt)),Jt,fr;return[a(fr=_t-Lt,Jt=(_t+Lt)*Ne),(xt<0?-1:1)*D(L(Jt*Jt+fr*fr)*Oe)]},He}function Yo(){return Uo([-158,21.5],[-77,39]).clipAngle(130).scale(122.571)}function Uo(ae,fe){return Eo(so,ae,fe)}function es(ae,fe){if(i(fe)m&&--ct>0);return[p(ae)*(L(Ne*Ne+4)+Ne)*_/4,b*He]};function as(){return t.geoProjection(_s).scale(127.16)}function Es(ae,fe,Te,ke,Ne){function Oe(He,ct){var xt=Te*v(ke*ct),pt=L(1-xt*xt),_t=L(2/(1+pt*o(He*=Ne)));return[ae*pt*_t*v(He),fe*xt*_t]}return Oe.invert=function(He,ct){var xt=He/ae,pt=ct/fe,_t=L(xt*xt+pt*pt),Lt=2*k(_t/2);return[a(He*y(Lt),ae*_t)/Ne,_t&&k(ct*v(Lt)/(fe*Te*_t))/ke]},Oe}function To(ae,fe,Te,ke){var Ne=_/3;ae=f(ae,m),fe=f(fe,m),ae=c(ae,b),fe=c(fe,_-m),Te=f(Te,0),Te=c(Te,100-m),ke=f(ke,m);var Oe=Te/100+1,He=ke/100,ct=D(Oe*o(Ne))/Ne,xt=v(ae)/v(ct*b),pt=fe/_,_t=L(He*v(ae/2)/v(fe/2)),Lt=_t/L(pt*xt*ct),Jt=1/(_t*L(pt*xt*ct));return Es(Lt,Jt,xt,ct,pt)}function Go(){var ae=65*S,fe=60*S,Te=20,ke=200,Ne=t.geoProjectionMutator(To),Oe=Ne(ae,fe,Te,ke);return Oe.poleline=function(He){return arguments.length?Ne(ae=+He*S,fe,Te,ke):ae*E},Oe.parallels=function(He){return arguments.length?Ne(ae,fe=+He*S,Te,ke):fe*E},Oe.inflation=function(He){return arguments.length?Ne(ae,fe,Te=+He,ke):Te},Oe.ratio=function(He){return arguments.length?Ne(ae,fe,Te,ke=+He):ke},Oe.scale(163.775)}function qs(){return Go().poleline(65).parallels(60).inflation(0).ratio(200).scale(172.633)}var Ts=4*_+3*L(3),Dl=2*L(2*_*L(3)/Ts),_l=oe(Dl*L(3)/_,Dl,Ts/6);function wl(){return t.geoProjection(_l).scale(176.84)}function vl(ae,fe){return[ae*L(1-3*fe*fe/(_*_)),fe]}vl.invert=function(ae,fe){return[ae/L(1-3*fe*fe/(_*_)),fe]};function Al(){return t.geoProjection(vl).scale(152.63)}function ml(ae,fe){var Te=o(fe),ke=o(ae)*Te,Ne=1-ke,Oe=o(ae=a(v(ae)*Te,-v(fe))),He=v(ae);return Te=L(1-ke*ke),[He*Te-Oe*Ne,-Oe*Te-He*Ne]}ml.invert=function(ae,fe){var Te=(ae*ae+fe*fe)/-2,ke=L(-Te*(2+Te)),Ne=fe*Te+ae*ke,Oe=ae*Te-fe*ke,He=L(Oe*Oe+Ne*Ne);return[a(ke*Ne,He*(1+Te)),He?-k(ke*Oe/He):0]};function Hl(){return t.geoProjection(ml).rotate([0,-90,45]).scale(124.75).clipAngle(180-.001)}function Tl(ae,fe){var Te=X(ae,fe);return[(Te[0]+ae/b)/2,(Te[1]+fe)/2]}Tl.invert=function(ae,fe){var Te=ae,ke=fe,Ne=25;do{var Oe=o(ke),He=v(ke),ct=v(2*ke),xt=He*He,pt=Oe*Oe,_t=v(Te),Lt=o(Te/2),Jt=v(Te/2),fr=Jt*Jt,Or=1-pt*Lt*Lt,Pi=Or?D(Oe*Lt)*L(Rn=1/Or):Rn=0,Rn,fo=.5*(2*Pi*Oe*Jt+Te/b)-ae,Xo=.5*(Pi*He+ke)-fe,Bo=.5*Rn*(pt*fr+Pi*Oe*Lt*xt)+.5/b,fs=Rn*(_t*ct/4-Pi*He*Jt),cs=.125*Rn*(ct*Jt-Pi*He*pt*_t),Ns=.5*Rn*(xt*Lt+Pi*fr*Oe)+.5,zl=fs*cs-Ns*Bo,Is=(Xo*fs-fo*Ns)/zl,Nl=(fo*cs-Xo*Bo)/zl;Te-=Is,ke-=Nl}while((i(Is)>m||i(Nl)>m)&&--Ne>0);return[Te,ke]};function yl(){return t.geoProjection(Tl).scale(158.837)}e.geoNaturalEarth=t.geoNaturalEarth1,e.geoNaturalEarthRaw=t.geoNaturalEarth1Raw,e.geoAiry=W,e.geoAiryRaw=O,e.geoAitoff=Z,e.geoAitoffRaw=X,e.geoArmadillo=q,e.geoArmadilloRaw=j,e.geoAugust=N,e.geoAugustRaw=Q,e.geoBaker=$,e.geoBakerRaw=H,e.geoBerghaus=ie,e.geoBerghausRaw=te,e.geoBertin1953=Ee,e.geoBertin1953Raw=re,e.geoBoggs=Ae,e.geoBoggsRaw=se,e.geoBonne=ce,e.geoBonneRaw=pe,e.geoBottomley=$e,e.geoBottomleyRaw=Be,e.geoBromley=it,e.geoBromleyRaw=Ze,e.geoChamberlin=De,e.geoChamberlinRaw=Re,e.geoChamberlinAfrica=Pe,e.geoCollignon=Le,e.geoCollignonRaw=Ve,e.geoCraig=ze,e.geoCraigRaw=Se,e.geoCraster=wt,e.geoCrasterRaw=ft,e.geoCylindricalEqualArea=Vt,e.geoCylindricalEqualAreaRaw=At,e.geoCylindricalStereographic=yt,e.geoCylindricalStereographicRaw=Dt,e.geoEckert1=rr,e.geoEckert1Raw=St,e.geoEckert2=at,e.geoEckert2Raw=Ke,e.geoEckert3=vt,e.geoEckert3Raw=lt,e.geoEckert4=ut,e.geoEckert4Raw=We,e.geoEckert5=$t,e.geoEckert5Raw=kt,e.geoEckert6=Lr,e.geoEckert6Raw=or,e.geoEisenlohr=ni,e.geoEisenlohrRaw=hr,e.geoFahey=Tr,e.geoFaheyRaw=si,e.geoFoucaut=Hr,e.geoFoucautRaw=vr,e.geoFoucautSinusoidal=gn,e.geoFoucautSinusoidalRaw=Di,e.geoGilbert=Ut,e.geoGingery=Sr,e.geoGingeryRaw=jt,e.geoGinzburg4=Fi,e.geoGinzburg4Raw=di,e.geoGinzburg5=Kt,e.geoGinzburg5Raw=ir,e.geoGinzburg6=Xe,e.geoGinzburg6Raw=Me,e.geoGinzburg8=et,e.geoGinzburg8Raw=Ye,e.geoGinzburg9=bt,e.geoGinzburg9Raw=gt,e.geoGringorten=Rr,e.geoGringortenRaw=Ct,e.geoGuyou=_i,e.geoGuyouRaw=Ui,e.geoHammer=Ie,e.geoHammerRaw=de,e.geoHammerRetroazimuthal=Fr,e.geoHammerRetroazimuthalRaw=kn,e.geoHealpix=fi,e.geoHealpixRaw=$n,e.geoHill=sn,e.geoHillRaw=aa,e.geoHomolosine=wi,e.geoHomolosineRaw=tn,e.geoHufnagel=Ai,e.geoHufnagelRaw=rn,e.geoHyperelliptical=Fn,e.geoHyperellipticalRaw=pi,e.geoInterrupt=Zi,e.geoInterruptedBoggs=pa,e.geoInterruptedHomolosine=an,e.geoInterruptedMollweide=Ra,e.geoInterruptedMollweideHemispheres=Yn,e.geoInterruptedSinuMollweide=ja,e.geoInterruptedSinusoidal=ki,e.geoKavrayskiy7=Va,e.geoKavrayskiy7Raw=pn,e.geoLagrange=Pr,e.geoLagrangeRaw=Gi,e.geoLarrivee=Ri,e.geoLarriveeRaw=bn,e.geoLaskowski=yr,e.geoLaskowskiRaw=vi,e.geoLittrow=Cn,e.geoLittrowRaw=Ti,e.geoLoximuthal=Xn,e.geoLoximuthalRaw=Gr,e.geoMiller=ta,e.geoMillerRaw=nn,e.geoModifiedStereographic=Li,e.geoModifiedStereographicRaw=Bi,e.geoModifiedStereographicAlaska=un,e.geoModifiedStereographicGs48=Dn,e.geoModifiedStereographicGs50=Vn,e.geoModifiedStereographicMiller=vn,e.geoModifiedStereographicLee=Br,e.geoMollweide=ne,e.geoMollweideRaw=Y,e.geoMtFlatPolarParabolic=Ba,e.geoMtFlatPolarParabolicRaw=Ma,e.geoMtFlatPolarQuartic=Hi,e.geoMtFlatPolarQuarticRaw=Bn,e.geoMtFlatPolarSinusoidal=jn,e.geoMtFlatPolarSinusoidalRaw=yn,e.geoNaturalEarth2=zi,e.geoNaturalEarth2Raw=Un,e.geoNellHammer=Ln,e.geoNellHammerRaw=xr,e.geoInterruptedQuarticAuthalic=da,e.geoNicolosi=Xr,e.geoNicolosiRaw=Mi,e.geoPatterson=oa,e.geoPattersonRaw=Fa,e.geoPolyconic=va,e.geoPolyconicRaw=Hn,e.geoPolyhedral=Ga,e.geoPolyhedralButterfly=Qn,e.geoPolyhedralCollignon=zn,e.geoPolyhedralWaterman=Ia,e.geoProject=So,e.geoGringortenQuincuncial=Fe,e.geoPeirceQuincuncial=Ge,e.geoPierceQuincuncial=Ge,e.geoQuantize=ot,e.geoQuincuncial=$a,e.geoRectangularPolyconic=mt,e.geoRectangularPolyconicRaw=rt,e.geoRobinson=Ot,e.geoRobinsonRaw=Bt,e.geoSatellite=Wt,e.geoSatelliteRaw=zr,e.geoSinuMollweide=Ta,e.geoSinuMollweideRaw=hn,e.geoSinusoidal=ue,e.geoSinusoidalRaw=me,e.geoStitch=us,e.geoTimes=io,e.geoTimesRaw=Ni,e.geoTwoPointAzimuthal=bo,e.geoTwoPointAzimuthalRaw=oo,e.geoTwoPointAzimuthalUsa=xo,e.geoTwoPointEquidistant=Uo,e.geoTwoPointEquidistantRaw=so,e.geoTwoPointEquidistantUsa=Yo,e.geoVanDerGrinten=jo,e.geoVanDerGrintenRaw=es,e.geoVanDerGrinten2=Ks,e.geoVanDerGrinten2Raw=Qo,e.geoVanDerGrinten3=Ds,e.geoVanDerGrinten3Raw=js,e.geoVanDerGrinten4=as,e.geoVanDerGrinten4Raw=_s,e.geoWagner=Go,e.geoWagner7=qs,e.geoWagnerRaw=To,e.geoWagner4=wl,e.geoWagner4Raw=_l,e.geoWagner6=Al,e.geoWagner6Raw=vl,e.geoWiechel=Hl,e.geoWiechelRaw=ml,e.geoWinkel3=yl,e.geoWinkel3Raw=Tl,Object.defineProperty(e,"__esModule",{value:!0})}))});var gGe=K((IQr,yGe)=>{"use strict";var uc=No(),lee=Mt(),wur=Ho(),Y4=Math.PI/180,q_=180/Math.PI,fee={cursor:"pointer"},cee={cursor:"auto"};function Aur(e,t){var r=e.projection,i;return t._isScoped?i=Tur:t._isClipped?i=Sur:i=Mur,i(e,r)}yGe.exports=Aur;function hee(e,t){return uc.behavior.zoom().translate(t.translate()).scaleExtent(t.scaleExtent()).scale(t.scale())}function dee(e,t,r){var i=e.id,n=e.graphDiv,a=n.layout,o=a[i],s=n._fullLayout,l=s[i],u={},f={};function c(h,d){u[i+"."+h]=lee.nestedProperty(o,h).get(),wur.call("_storeDirectGUIEdit",a,s._preGUI,u);var p=lee.nestedProperty(l,h);p.get()!==d&&(p.set(d),lee.nestedProperty(o,h).set(d),f[i+"."+h]=d)}r(c),c("projection.scale",t.scale()/e.fitScale),c("fitbounds",!1),n.emit("plotly_relayout",f)}function Tur(e,t){var r=hee(e,t);function i(){uc.select(this).style(fee)}function n(){t.scale(uc.event.scale).translate(uc.event.translate),e.render(!0);var s=t.invert(e.midPt);e.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":t.scale()/e.fitScale,"geo.center.lon":s[0],"geo.center.lat":s[1]})}function a(s){var l=t.invert(e.midPt);s("center.lon",l[0]),s("center.lat",l[1])}function o(){uc.select(this).style(cee),dee(e,t,a)}return r.on("zoomstart",i).on("zoom",n).on("zoomend",o),r}function Mur(e,t){var r=hee(e,t),i=2,n,a,o,s,l,u,f,c,h;function d(_){return t.invert(_)}function p(_){var b=d(_);if(!b)return!0;var M=t(b);return Math.abs(M[0]-_[0])>i||Math.abs(M[1]-_[1])>i}function v(){uc.select(this).style(fee);let{x:_,y:b,width:M,height:x}=this.getBBox();n=uc.event.sourceEvent?uc.mouse(this):[_+M/2,b+x/2],a=t.rotate(),o=t.translate(),s=a,l=d(n)}function y(){let{x:_,y:b,width:M,height:x}=this.getBBox();if(u=uc.event.sourceEvent?uc.mouse(this):[_+M/2,b+x/2],p(n)){r.scale(t.scale()),r.translate(t.translate());return}t.scale(uc.event.scale),t.translate([o[0],uc.event.translate[1]]),l?d(u)&&(c=d(u),f=[s[0]+(c[0]-l[0]),a[1],a[2]],t.rotate(f),s=f):(n=u,l=d(n)),h=!0,e.render(!0);var A=t.rotate(),T=t.invert(e.midPt);e.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":t.scale()/e.fitScale,"geo.center.lon":T[0],"geo.center.lat":T[1],"geo.projection.rotation.lon":-A[0]})}function m(){uc.select(this).style(cee),h&&dee(e,t,w)}function w(_){var b=t.rotate(),M=t.invert(e.midPt);_("projection.rotation.lon",-b[0]),_("center.lon",M[0]),_("center.lat",M[1])}return r.on("zoomstart",v).on("zoom",y).on("zoomend",m),r}function Sur(e,t){var r={r:t.rotate(),k:t.scale()},i=hee(e,t),n=zur(i,"zoomstart","zoom","zoomend"),a=0,o=i.on,s;i.on("zoomstart",function(){uc.select(this).style(fee);let{x:h,y:d,width:p,height:v}=this.getBBox(),y=uc.event.sourceEvent?uc.mouse(this):[h+p/2,d+v/2],m=t.rotate(),w=m,_=t.translate(),b=Eur(m);s=LR(t,y),o.call(i,"zoom",function(){let{x:M,y:x,width:A,height:T}=this.getBBox(),g=uc.event.sourceEvent?uc.mouse(this):[M+A/2,x+T/2];if(t.scale(r.k=uc.event.scale),!s)y=g,s=LR(t,y);else if(LR(t,g)){t.rotate(m).translate(_);var E=LR(t,g),S=Cur(s,E),C=Fur(kur(b,S)),k=r.r=Dur(C,s,w);(!isFinite(k[0])||!isFinite(k[1])||!isFinite(k[2]))&&(k=w),t.rotate(k),w=k}u(n.of(this,arguments))}),l(n.of(this,arguments))}).on("zoomend",function(){uc.select(this).style(cee),o.call(i,"zoom",null),f(n.of(this,arguments)),dee(e,t,c)}).on("zoom.redraw",function(){e.render(!0);var h=t.rotate();e.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":t.scale()/e.fitScale,"geo.projection.rotation.lon":-h[0],"geo.projection.rotation.lat":-h[1]})});function l(h){a++||h({type:"zoomstart"})}function u(h){h({type:"zoom"})}function f(h){--a||h({type:"zoomend"})}function c(h){var d=t.rotate();h("projection.rotation.lon",-d[0]),h("projection.rotation.lat",-d[1])}return uc.rebind(i,n,"on")}function LR(e,t){var r=e.invert(t);return r&&isFinite(r[0])&&isFinite(r[1])&&Lur(r)}function Eur(e){var t=.5*e[0]*Y4,r=.5*e[1]*Y4,i=.5*e[2]*Y4,n=Math.sin(t),a=Math.cos(t),o=Math.sin(r),s=Math.cos(r),l=Math.sin(i),u=Math.cos(i);return[a*s*u+n*o*l,n*s*u-a*o*l,a*o*u+n*s*l,a*s*l-n*o*u]}function kur(e,t){var r=e[0],i=e[1],n=e[2],a=e[3],o=t[0],s=t[1],l=t[2],u=t[3];return[r*o-i*s-n*l-a*u,r*s+i*o+n*u-a*l,r*l-i*u+n*o+a*s,r*u+i*l-n*s+a*o]}function Cur(e,t){if(!(!e||!t)){var r=Pur(e,t),i=Math.sqrt(mGe(r,r)),n=.5*Math.acos(Math.max(-1,Math.min(1,mGe(e,t)))),a=Math.sin(n)/i;return i&&[Math.cos(n),r[2]*a,-r[1]*a,r[0]*a]}}function Dur(e,t,r){var i=uee(t,2,e[0]);i=uee(i,1,e[1]),i=uee(i,0,e[2]-r[2]);var n=t[0],a=t[1],o=t[2],s=i[0],l=i[1],u=i[2],f=Math.atan2(a,n)*q_,c=Math.sqrt(n*n+a*a),h,d;Math.abs(l)>c?(d=(l>0?90:-90)-f,h=0):(d=Math.asin(l/c)*q_-f,h=Math.sqrt(c*c-l*l));var p=180-d-2*f,v=(Math.atan2(u,s)-Math.atan2(o,h))*q_,y=(Math.atan2(u,s)-Math.atan2(o,-h))*q_,m=pGe(r[0],r[1],d,v),w=pGe(r[0],r[1],p,y);return m<=w?[d,v,r[2]]:[p,y,r[2]]}function pGe(e,t,r,i){var n=vGe(r-e),a=vGe(i-t);return Math.sqrt(n*n+a*a)}function vGe(e){return(e%360+540)%360-180}function uee(e,t,r){var i=r*Y4,n=e.slice(),a=t===0?1:0,o=t===2?1:2,s=Math.cos(i),l=Math.sin(i);return n[a]=e[a]*s-e[o]*l,n[o]=e[o]*s+e[a]*l,n}function Fur(e){return[Math.atan2(2*(e[0]*e[1]+e[2]*e[3]),1-2*(e[1]*e[1]+e[2]*e[2]))*q_,Math.asin(Math.max(-1,Math.min(1,2*(e[0]*e[2]-e[3]*e[1]))))*q_,Math.atan2(2*(e[0]*e[3]+e[1]*e[2]),1-2*(e[2]*e[2]+e[3]*e[3]))*q_]}function Lur(e){var t=e[0]*Y4,r=e[1]*Y4,i=Math.cos(r);return[i*Math.cos(t),i*Math.sin(t),Math.sin(r)]}function mGe(e,t){for(var r=0,i=0,n=e.length;i{"use strict";var Mm=No(),mee=TR(),Iur=mee.geoPath,Rur=mee.geoDistance,Bur=dGe(),qur=Ho(),RE=Mt(),Our=RE.strTranslate,PR=ko(),IE=Bs(),xGe=Uf(),Nur=yf(),vee=Cs(),{concatExtremes:Vur,getAutoRange:bGe,makePadFn:_Ge}=Hv(),pee=N0(),Uur=uh().prepSelect,Gur=uh().clearOutline,Hur=uh().selectOnClick,jur=gGe(),vd=(DE(),ar(CE)),yee=Ry(),{unwrapLonRange:Wur}=yee,AGe=dR(),$ur=UQ().feature;function TGe(e){this.id=e.id,this.graphDiv=e.graphDiv,this.container=e.container,this.topojsonURL=e.topojsonURL,this.isStatic=e.staticPlot,this.topojsonName=null,this.topojson=null,this.projection=null,this.scope=null,this.viewInitial=null,this.fitScale=null,this.bounds=null,this.midPt=null,this.hasChoropleth=!1,this.traceHash={},this.layers={},this.basePaths={},this.dataPaths={},this.dataPoints={},this.clipDef=null,this.clipRect=null,this.bgRect=null,this.makeFramework()}var g1=TGe.prototype;MGe.exports=function(t){return new TGe(t)};g1.plot=function(e,t,r,i){var n=this;if(i)return n.update(e,t,!0);n._geoCalcData=e,n._fullLayout=t;var a=t[this.id],o=[],s=!1;for(var l in vd.layerNameToAdjective)if(l!=="frame"&&a["show"+l]){s=!0;break}for(var u=!1,f=0;f0&&o._module.calcGeoJSON(a,t)}if(!r){var s=this.updateProjection(e,t);if(s)return;(!this.viewInitial||this.scope!==i.scope)&&this.saveViewInitial(i)}this.scope=i.scope,this.updateBaseLayers(t,i),this.updateDims(t,i),this.updateFx(t,i),Nur.generalUpdatePerTraceModule(this.graphDiv,this,e,i);var l=this.layers.frontplot.select(".scatterlayer");this.dataPoints.point=l.selectAll(".point"),this.dataPoints.text=l.selectAll("text"),this.dataPaths.line=l.selectAll(".js-line");var u=this.layers.backplot.select(".choroplethlayer");this.dataPaths.choropleth=u.selectAll("path"),this._render()};g1.updateProjection=function(e,t){var r=this.graphDiv,i=t[this.id],n=t._size,a=i.domain,o=i.projection,s=i.lonaxis,l=i.lataxis,u=s._ax,f=l._ax,c=this.projection=Yur(i),h=[[n.l+n.w*a.x[0],n.t+n.h*(1-a.y[1])],[n.l+n.w*a.x[1],n.t+n.h*(1-a.y[0])]],d=i.center||{},p=o.rotation||{},v=s.range||[],y=l.range||[];if(i.fitbounds){u._length=h[1][0]-h[0][0],f._length=h[1][1]-h[0][1],u.range=bGe(r,u),f.range=bGe(r,f);let L=[];for(let j of e){let q=j[0].trace;q.visible===!0&&q._module.fitCoords&&L.push(q._module.fitCoords(j,i))}let P=Vur(r,u),I=P.min.reduce((j,{val:q})=>Math.min(j,q),1/0),z=P.max.reduce((j,{val:q})=>Math.max(j,q),-1/0)-I,B=yee.boundsOfCoords(L.flat()),[O,,W]=B||[],X=W-O;if(!!B&&(z>360||z<360&&XMath.max($,j(te)),0),N=P.max.reduce(($,te)=>Math.max($,q(te)),0),V=u._length-Q-N,J=V>u._length/10?X*u._length/V:X,H=(O+W)/2;u.range=[H-J/2,H+J/2]}var m=(u.range[0]+u.range[1])/2,w=(f.range[0]+f.range[1])/2;if(i._isScoped)d={lon:m,lat:w};else if(i._isClipped){d={lon:m,lat:w},p={lon:m,lat:w,roll:p.roll};var _=o.type,b=vd.lonaxisSpan[_]/2||180,M=vd.lataxisSpan[_]/2||90;v=[m-b,m+b],y=[w-M,w+M]}else d={lon:m,lat:w},p={lon:m,lat:p.lat,roll:p.roll}}c.center([d.lon-p.lon,d.lat-p.lat]).rotate([-p.lon,-p.lat,p.roll]).parallels(o.parallels);var x=wGe(v,y);c.fitExtent(h,x);var A=this.bounds=c.getBounds(x),T=this.fitScale=c.scale(),g=c.translate();if(c.scaleExtent=()=>{var I;let{minscale:L}=o,P=(I=o.maxscale)!=null?I:1/0;return[T*Math.min(L,P),T*Math.max(L,P)]},i.fitbounds){var E=c.getBounds(wGe(u.range,f.range)),S=Math.min((A[1][0]-A[0][0])/(E[1][0]-E[0][0]),(A[1][1]-A[0][1])/(E[1][1]-E[0][1]));isFinite(S)?c.scale(S*T):RE.warn("Something went wrong during"+this.id+"fitbounds computations.")}else c.scale(o.scale*T);var C=this.midPt=[(A[0][0]+A[1][0])/2,(A[0][1]+A[1][1])/2];if(c.translate([g[0]+(C[0]-g[0]),g[1]+(C[1]-g[1])]).clipExtent(A),i._isAlbersUsa){var k=c([d.lon,d.lat]);if(k){var D=c.translate();c.translate([D[0]-(k[0]-D[0]),D[1]-(k[1]-D[1])])}}};g1.updateBaseLayers=function(e,t){var r=this,i=r.topojson,n=r.layers,a=r.basePaths;function o(h){return h==="lonaxis"||h==="lataxis"}function s(h){return!!vd.lineLayers[h]}function l(h){return!!vd.fillLayers[h]}var u=this.hasChoropleth?vd.layersForChoropleth:vd.layers,f=u.filter(function(h){return s(h)||l(h)?t["show"+h]:o(h)?t[h].showgrid:!0}),c=r.framework.selectAll(".layer").data(f,String);c.exit().each(function(h){delete n[h],delete a[h],Mm.select(this).remove()}),c.enter().append("g").attr("class",function(h){return"layer "+h}).each(function(h){var d=n[h]=Mm.select(this);h==="bg"?r.bgRect=d.append("rect").style("pointer-events","all"):o(h)?a[h]=d.append("path").style("fill","none"):h==="backplot"?d.append("g").classed("choroplethlayer",!0):h==="frontplot"?d.append("g").classed("scatterlayer",!0):s(h)?a[h]=d.append("path").style("fill","none").style("stroke-miterlimit",2):l(h)&&(a[h]=d.append("path").style("stroke","none"))}),c.order(),c.each(function(h){var d=a[h],p=vd.layerNameToAdjective[h];h==="frame"?d.datum(vd.sphereSVG):s(h)||l(h)?d.datum($ur(i,i.objects[h])):o(h)&&d.datum(Xur(h,t,e)).call(PR.stroke,t[h].gridcolor).call(IE.dashLine,t[h].griddash,t[h].gridwidth),s(h)?d.call(PR.stroke,t[p+"color"]).call(IE.dashLine,"",t[p+"width"]):l(h)&&d.call(PR.fill,t[p+"color"])})};g1.updateDims=function(e,t){var r=this.bounds,i=(t.framewidth||0)/2,n=r[0][0]-i,a=r[0][1]-i,o=r[1][0]-n+i,s=r[1][1]-a+i;IE.setRect(this.clipRect,n,a,o,s),this.bgRect.call(IE.setRect,n,a,o,s).call(PR.fill,t.bgcolor),this.xaxis._offset=n,this.xaxis._length=o,this.yaxis._offset=a,this.yaxis._length=s};g1.updateFx=function(e,t){var r=this,i=r.graphDiv,n=r.bgRect,a=e.dragmode,o=e.clickmode;if(r.isStatic)return;function s(){var c=r.viewInitial,h={};for(var d in c)h[r.id+"."+d]=c[d];qur.call("_guiRelayout",i,h),i.emit("plotly_doubleclick",null)}function l(c){return r.projection.invert([c[0]+r.xaxis._offset,c[1]+r.yaxis._offset])}var u=function(c,h){if(h.isRect){var d=c.range={};d[r.id]=[l([h.xmin,h.ymin]),l([h.xmax,h.ymax])]}else{var p=c.lassoPoints={};p[r.id]=h.map(l)}},f={element:r.bgRect.node(),gd:i,plotinfo:{id:r.id,xaxis:r.xaxis,yaxis:r.yaxis,fillRangeItems:u},xaxes:[r.xaxis],yaxes:[r.yaxis],subplot:r.id,clickFn:function(c){c===2&&Gur(i)}};if(a==="pan"){n.node().onmousedown=null;let c=jur(r,t);if(n.call(c),!Mm.event){let h=r.projection.scale(),[d,p]=r.projection.scaleExtent();(hp)&&c.event(n)}n.on("dblclick.zoom",s),i._context._scrollZoom.geo||n.on("wheel.zoom",null)}else(a==="select"||a==="lasso")&&(n.on(".zoom",null),f.prepFn=function(c,h,d){Uur(c,h,d,f,a)},pee.init(f));n.on("mousemove",function(){var c=r.projection.invert(RE.getPositionFromD3Event());if(!c)return pee.unhover(i,Mm.event);r.xaxis.p2c=function(){return c[0]},r.yaxis.p2c=function(){return c[1]},xGe.hover(i,Mm.event,r.id)}),n.on("mouseout",function(){i._dragging||pee.unhover(i,Mm.event)}),n.on("click",function(){a!=="select"&&a!=="lasso"&&(o.indexOf("select")>-1&&Hur(Mm.event,i,[r.xaxis],[r.yaxis],r.id,f),o.indexOf("event")>-1&&xGe.click(i,Mm.event))})};g1.makeFramework=function(){var e=this,t=e.graphDiv,r=t._fullLayout,i="clip"+r._uid+e.id;e.clipDef=r._clips.append("clipPath").attr("id",i),e.clipRect=e.clipDef.append("rect"),e.framework=Mm.select(e.container).append("g").attr("class","geo "+e.id).call(IE.setClipUrl,i,t),e.project=function(n){var a=e.projection(n);return a?[a[0]-e.xaxis._offset,a[1]-e.yaxis._offset]:[null,null]},e.xaxis={_id:"x",c2p:function(n){return e.project(n)[0]}},e.yaxis={_id:"y",c2p:function(n){return e.project(n)[1]}},e.mockAxis={type:"linear",showexponent:"all",exponentformat:"B"},vee.setConvert(e.mockAxis,r)};g1.saveViewInitial=function(e){var t=e.center||{},r=e.projection,i=r.rotation||{};this.viewInitial={fitbounds:e.fitbounds,"projection.scale":r.scale};var n;e._isScoped?n={"center.lon":t.lon,"center.lat":t.lat}:e._isClipped?n={"projection.rotation.lon":i.lon,"projection.rotation.lat":i.lat,"center.lon":t.lon,"center.lat":t.lat}:n={"center.lon":t.lon,"center.lat":t.lat,"projection.rotation.lon":i.lon},RE.extendFlat(this.viewInitial,n)};g1.render=function(e){this._hasMarkerAngles&&e?this.plot(this._geoCalcData,this._fullLayout,[],!0):this._render()};g1._render=function(){var e=this.projection,t=e.getPath(),r;function i(a){var o=e(a.lonlat);return o?Our(o[0],o[1]):null}function n(a){return e.isLonLatOverEdges(a.lonlat)?"none":null}for(r in this.basePaths)this.basePaths[r].attr("d",t);for(r in this.dataPaths)this.dataPaths[r].attr("d",function(a){return t(a.geojson)});for(r in this.dataPoints)this.dataPoints[r].attr("display",n).attr("transform",i)};function Yur(e){var t=e.projection,r=t.type,i=vd.projNames[r];i="geo"+RE.titleCase(i);for(var n=mee[i]||Bur[i],a=n(),o=e._isSatellite?Math.acos(1/t.distance)*180/Math.PI:e._isClipped?vd.lonaxisSpan[r]/2:null,s=["center","rotate","parallels","clipExtent"],l=function(c){return c?a:[]},u=0;up}else return!1},a.getPath=function(){return Iur().projection(a)},a.getBounds=function(c){return a.getPath().bounds(c)},a.precision(vd.precision),e._isSatellite&&a.tilt(t.tilt).distance(t.distance),o&&a.clipAngle(o-vd.clipPad),a}function Xur(e,t,r){var i=1e-6,n=2.5,a=t[e],o=vd.scopeDefaults[t.scope],s,l,u;e==="lonaxis"?(s=o.lonaxisRange,l=o.lataxisRange,u=function(w,_){return[w,_]}):e==="lataxis"&&(s=o.lataxisRange,l=o.lonaxisRange,u=function(w,_){return[_,w]});var f={type:"linear",range:[s[0],s[1]-i],tick0:a.tick0,dtick:a.dtick};vee.setConvert(f,r);var c=vee.calcTicks(f);!t.isScoped&&e==="lonaxis"&&c.pop();for(var h=c.length,d=new Array(h),p=0;p{"use strict";var Z4=Nc(),Zur=kf().attributes,Kur=yh().dash,X4=(DE(),ar(CE)),Jur=Ef().overrideAll,EGe=(Qx(),ar(Jx)).default,kGe={range:{valType:"info_array",items:[{valType:"number"},{valType:"number"}]},showgrid:{valType:"boolean",dflt:!1},tick0:{valType:"number",dflt:0},dtick:{valType:"number"},gridcolor:{valType:"color",dflt:Z4.lightLine},gridwidth:{valType:"number",min:0,dflt:1},griddash:Kur},Qur=CGe.exports=Jur({domain:Zur({name:"geo"},{}),fitbounds:{valType:"enumerated",values:[!1,"locations","geojson"],dflt:"locations",editType:"plot"},resolution:{valType:"enumerated",values:[110,50],dflt:110,coerceNumber:!0},scope:{valType:"enumerated",values:EGe(X4.scopeDefaults),dflt:"world"},projection:{type:{valType:"enumerated",values:EGe(X4.projNames)},rotation:{lon:{valType:"number"},lat:{valType:"number"},roll:{valType:"number"}},tilt:{valType:"number",dflt:0},distance:{valType:"number",min:1.001,dflt:2},parallels:{valType:"info_array",items:[{valType:"number"},{valType:"number"}]},scale:{valType:"number",min:0,dflt:1},minscale:{valType:"number",min:0,dflt:0},maxscale:{valType:"number",min:0,dflt:null}},center:{lon:{valType:"number"},lat:{valType:"number"}},visible:{valType:"boolean",dflt:!0},showcoastlines:{valType:"boolean"},coastlinecolor:{valType:"color",dflt:Z4.defaultLine},coastlinewidth:{valType:"number",min:0,dflt:1},showland:{valType:"boolean",dflt:!1},landcolor:{valType:"color",dflt:X4.landColor},showocean:{valType:"boolean",dflt:!1},oceancolor:{valType:"color",dflt:X4.waterColor},showlakes:{valType:"boolean",dflt:!1},lakecolor:{valType:"color",dflt:X4.waterColor},showrivers:{valType:"boolean",dflt:!1},rivercolor:{valType:"color",dflt:X4.waterColor},riverwidth:{valType:"number",min:0,dflt:1},showcountries:{valType:"boolean"},countrycolor:{valType:"color",dflt:Z4.defaultLine},countrywidth:{valType:"number",min:0,dflt:1},showsubunits:{valType:"boolean"},subunitcolor:{valType:"color",dflt:Z4.defaultLine},subunitwidth:{valType:"number",min:0,dflt:1},showframe:{valType:"boolean"},framecolor:{valType:"color",dflt:Z4.defaultLine},framewidth:{valType:"number",min:0,dflt:1},bgcolor:{valType:"color",dflt:Z4.background},lonaxis:kGe,lataxis:kGe},"plot","from-root");Qur.uirevision={valType:"any",editType:"none"}});var LGe=K((qQr,FGe)=>{"use strict";var zR=Mt(),efr=Jb(),tfr=Xh().getSubplotData,{unwrapLonRange:rfr}=Ry(),BE=(DE(),ar(CE)),ifr=gee(),DGe=BE.axesNames;FGe.exports=function(t,r,i){efr(t,r,i,{type:"geo",attributes:ifr,handleDefaults:nfr,fullData:i,partition:"y"})};function nfr(e,t,r,i){var n=tfr(i.fullData,"geo",i.id),a=n.map(function(B){return B.index}),o=r("resolution"),s=r("scope"),l=BE.scopeDefaults[s],u=r("projection.type",l.projType),f=t._isAlbersUsa=u==="albers usa";f&&(s=t.scope="usa");var c=t._isScoped=s!=="world",h=t._isSatellite=u==="satellite",d=t._isConic=u.indexOf("conic")!==-1||u==="albers",p=t._isClipped=!!BE.lonaxisSpan[u];if(e.visible===!1){var v=zR.extendDeep({},t._template);v.showcoastlines=!1,v.showcountries=!1,v.showframe=!1,v.showlakes=!1,v.showland=!1,v.showocean=!1,v.showrivers=!1,v.showsubunits=!1,v.lonaxis&&(v.lonaxis.showgrid=!1),v.lataxis&&(v.lataxis.showgrid=!1),t._template=v}for(var y=r("visible"),m,w=0;wQ[N]!=null)||BE.fitboundsIncompatible.has(u)?t.fitbounds=!1:j.forEach(({dst:Q,key:N})=>Q&&(Q[N]=null))}}});var xee=K((OQr,IGe)=>{"use strict";var afr=Xh().getSubplotCalcData,ofr=Mt().counterRegex,sfr=SGe(),Sm="geo",PGe=ofr(Sm),zGe={};zGe[Sm]={valType:"subplotid",dflt:Sm,editType:"calc"};function lfr(e){for(var t=e._fullLayout,r=e.calcdata,i=t._subplots[Sm],n=0;n{"use strict";RGe.exports={attributes:$4(),supplyDefaults:uUe(),colorbar:Qh(),formatLabels:hUe(),calc:VQ(),calcGeoJSON:CR().calcGeoJSON,fitCoords:CR().fitCoords,plot:CR().plot,style:nee(),styleOnSelect:fd().styleOnSelect,hoverPoints:nGe(),eventData:oGe(),selectPoints:uGe(),moduleType:"trace",name:"scattergeo",basePlotModule:xee(),categories:["geo","symbols","showLegend","scatter-like"],meta:{}}});var OGe=K((VQr,qGe)=>{"use strict";qGe.exports=BGe()});var qE=K((UQr,UGe)=>{"use strict";var{hovertemplateAttrs:cfr,templatefallbackAttrs:hfr}=yu(),V2=$4(),dfr=Wu(),NGe=Au(),pfr=Nc().defaultLine,N2=Os().extendFlat,VGe=V2.marker.line;UGe.exports=N2({locations:{valType:"data_array",editType:"calc"},locationmode:V2.locationmode,z:{valType:"data_array",editType:"calc"},geojson:N2({},V2.geojson,{}),featureidkey:V2.featureidkey,text:N2({},V2.text,{}),hovertext:N2({},V2.hovertext,{}),marker:{line:{color:N2({},VGe.color,{dflt:pfr}),width:N2({},VGe.width,{dflt:1}),editType:"calc"},opacity:{valType:"number",arrayOk:!0,min:0,max:1,dflt:1,editType:"style"},editType:"calc"},selected:{marker:{opacity:V2.selected.marker.opacity,editType:"plot"},editType:"plot"},unselected:{marker:{opacity:V2.unselected.marker.opacity,editType:"plot"},editType:"plot"},hoverinfo:N2({},NGe.hoverinfo,{editType:"calc",flags:["location","z","text","name"]}),hovertemplate:cfr(),hovertemplatefallback:hfr(),showlegend:N2({},NGe.showlegend,{dflt:!1})},dfr("",{cLetter:"z",editTypeOverride:"calc"}))});var HGe=K((GQr,GGe)=>{"use strict";var IR=Mt(),vfr=gh(),mfr=qE();GGe.exports=function(t,r,i,n){function a(h,d){return IR.coerce(t,r,mfr,h,d)}var o=a("locations"),s=a("z");if(!(o&&o.length&&IR.isArrayOrTypedArray(s)&&s.length)){r.visible=!1;return}r._length=Math.min(o.length,s.length);var l=a("geojson"),u;(typeof l=="string"&&l!==""||IR.isPlainObject(l))&&(u="geojson-id");var f=a("locationmode",u);f==="geojson-id"&&a("featureidkey"),a("text"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback");var c=a("marker.line.width");c&&a("marker.line.color"),a("marker.opacity"),vfr(t,r,n,a,{prefix:"",cLetter:"z"}),IR.coerceSelectionMarkerOpacity(r,a)}});var bee=K((HQr,$Ge)=>{"use strict";var jGe=Gs(),yfr=(Il(),ar(Bl)).BADNUM,gfr=A0(),xfr=om(),bfr=np();function WGe(e){return e&&typeof e=="string"}$Ge.exports=function(t,r){var i=r._length,n=new Array(i),a;r.geojson?a=function(f){return WGe(f)||jGe(f)}:a=WGe;for(var o=0;o{"use strict";var _fr=No(),wfr=ko(),_ee=Bs(),Afr=gf();function Tfr(e,t){t&&YGe(e,t)}function YGe(e,t){var r=t[0].trace,i=t[0].node3,n=i.selectAll(".choroplethlocation"),a=r.marker||{},o=a.line||{},s=Afr.makeColorScaleFuncFromTrace(r);n.each(function(l){_fr.select(this).attr("fill",s(l.z)).call(wfr.stroke,l.mlc||o.color).call(_ee.dashLine,"",l.mlw||o.width||0).style("opacity",a.opacity)}),_ee.selectedPointStyle(n,r)}function Mfr(e,t){var r=t[0].node3,i=t[0].trace;i.selectedpoints?_ee.selectedPointStyle(r.selectAll(".choroplethlocation"),i):YGe(e,t)}XGe.exports={style:Tfr,styleOnSelect:Mfr}});var BR=K((WQr,JGe)=>{"use strict";var Sfr=No(),ZGe=Mt(),O_=Ry(),Efr=dR().getTopojsonFeatures,KGe=Hv().findExtremes,kfr=RR().style;function Cfr(e,t,r){var i=t.layers.backplot.select(".choroplethlayer");ZGe.makeTraceGroups(i,r,"trace choropleth").each(function(n){var a=Sfr.select(this),o=a.selectAll("path.choroplethlocation").data(ZGe.identity);o.enter().append("path").classed("choroplethlocation",!0),o.exit().remove(),kfr(e,n)})}function Dfr(e,t){var r=e[0].trace,i=t[r.geo],n=i._subplot,a=r.locationmode,o=r._length,s=a==="geojson-id"?O_.extractTraceFeature(e):Efr(r,n.topojson);let l=O_.fitGeojsonBbox(r,i);for(var u=[],f=[],c=0;c{"use strict";var Lfr=Cs(),Pfr=qE(),zfr=Mt().fillText,{ANTIMERIDIAN_LON_SHIFT:Ifr}=Ry();QGe.exports=function(t,r,i){var n=t.cd,a=n[0].trace,o=t.subplot,s,l,u,f,c=[r,i];let h=[r+Ifr,i];for(l=0;l")}}});var Aee=K((YQr,eHe)=>{"use strict";eHe.exports=function(t,r,i,n,a){t.location=r.location,t.z=r.z;var o=n[a];return o.fIn&&o.fIn.properties&&(t.properties=o.fIn.properties),t.ct=o.ct,t}});var Tee=K((XQr,tHe)=>{"use strict";tHe.exports=function(t,r){var i=t.cd,n=t.xaxis,a=t.yaxis,o=[],s,l,u,f,c;if(r===!1)for(s=0;s{"use strict";rHe.exports={attributes:qE(),supplyDefaults:HGe(),colorbar:FA(),calc:bee(),calcGeoJSON:BR().calcGeoJSON,fitCoords:BR().fitCoords,plot:BR().plot,style:RR().style,styleOnSelect:RR().styleOnSelect,hoverPoints:wee(),eventData:Aee(),selectPoints:Tee(),moduleType:"trace",name:"choropleth",basePlotModule:xee(),categories:["geo","noOpacity","showLegend"],meta:{}}});var aHe=K((KQr,nHe)=>{"use strict";nHe.exports=iHe()});var qR=K((JQr,sHe)=>{"use strict";var Bfr=Ho(),mp=Mt(),qfr=sA(),Ofr=Bs();function Nfr(e,t,r,i){var n=e.cd,a=n[0].t,o=n[0].trace,s=e.xa,l=e.ya,u=a.x,f=a.y,c=s.c2p(t),h=l.c2p(r),d=e.distance,p;if(a.tree){var v=s.p2c(c-d),y=s.p2c(c+d),m=l.p2c(h-d),w=l.p2c(h+d);i==="x"?p=a.tree.range(Math.min(v,y),Math.min(l._rl[0],l._rl[1]),Math.max(v,y),Math.max(l._rl[0],l._rl[1])):p=a.tree.range(Math.min(v,y),Math.min(m,w),Math.max(v,y),Math.max(m,w))}else p=a.ids;var _,b,M,x,A,T,g,E,S,C=d;if(i==="x"){var k=!!o.xperiodalignment,D=!!o.yperiodalignment;for(A=0;A=Math.min(L,P)&&c<=Math.max(L,P)?0:1/0}if(T<=C){if(C=T,x=f[_],g=l.c2p(x)-h,D){var I=l.c2p(o._yStarts[_]),F=l.c2p(o._yEnds[_]);g=h>=Math.min(I,F)&&h<=Math.max(I,F)?0:1/0}S=Math.sqrt(T*T+g*g),b=p[A]}}}else for(A=0;A$fr,DOT_RE:()=>jfr,OPEN_RE:()=>Wfr,SYMBOL_SDF_SIZE:()=>Ufr,SYMBOL_SIZE:()=>Gfr,SYMBOL_STROKE:()=>Hfr,TOO_MANY_POINTS:()=>Vfr});var Vfr,Ufr,Gfr,Hfr,jfr,Wfr,$fr,G2=ps(()=>{"use strict";Vfr=1e5,Ufr=200,Gfr=20,Hfr=1,jfr=/-dot/,Wfr=/-open/,$fr={solid:[1],dot:[1,1],dash:[4,1],longdash:[8,1],dashdot:[4,1,1,1],longdashdot:[8,1,1,1]}});var OE=K((QQr,cHe)=>{"use strict";var Yfr=Au(),Xfr=lf(),Zfr=im(),Hf=Zf(),lHe=zf().axisHoverFormat,uHe=Wu(),Kfr=(Qx(),ar(Jx)).default,Mee=Os().extendFlat,Jfr=Ef().overrideAll,Qfr=(G2(),ar(U2)).DASHES,fHe=Hf.line,By=Hf.marker,ecr=By.line,H2=cHe.exports=Jfr({x:Hf.x,x0:Hf.x0,dx:Hf.dx,y:Hf.y,y0:Hf.y0,dy:Hf.dy,xperiod:Hf.xperiod,yperiod:Hf.yperiod,xperiod0:Hf.xperiod0,yperiod0:Hf.yperiod0,xperiodalignment:Hf.xperiodalignment,yperiodalignment:Hf.yperiodalignment,xhoverformat:lHe("x"),yhoverformat:lHe("y"),text:Hf.text,hovertext:Hf.hovertext,textposition:Hf.textposition,textfont:Xfr({noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0,editType:"calc",colorEditType:"style",arrayOk:!0,noNumericWeightValues:!0,variantValues:["normal","small-caps"]}),mode:{valType:"flaglist",flags:["lines","markers","text"],extras:["none"]},line:{color:fHe.color,width:fHe.width,shape:{valType:"enumerated",values:["linear","hv","vh","hvh","vhv"],dflt:"linear",editType:"plot"},dash:{valType:"enumerated",values:Kfr(Qfr),dflt:"solid"}},marker:Mee({},uHe("marker"),{symbol:By.symbol,angle:By.angle,size:By.size,sizeref:By.sizeref,sizemin:By.sizemin,sizemode:By.sizemode,opacity:By.opacity,colorbar:By.colorbar,line:Mee({},uHe("marker.line"),{width:ecr.width})}),connectgaps:Hf.connectgaps,fill:Mee({},Hf.fill,{dflt:"none"}),fillcolor:Zfr(),selected:{marker:Hf.selected.marker,textfont:Hf.selected.textfont},unselected:{marker:Hf.unselected.marker,textfont:Hf.unselected.textfont},opacity:Yfr.opacity},"calc","nested");H2.x.editType=H2.y.editType=H2.x0.editType=H2.y0.editType="calc+clearAxisTypes";H2.hovertemplate=Hf.hovertemplate;H2.hovertemplatefallback=Hf.hovertemplatefallback;H2.texttemplate=Hf.texttemplate;H2.texttemplatefallback=Hf.texttemplatefallback});var OR=K(See=>{"use strict";var hHe=(G2(),ar(U2));See.isOpenSymbol=function(e){return typeof e=="string"?hHe.OPEN_RE.test(e):e%200>100};See.isDotSymbol=function(e){return typeof e=="string"?hHe.DOT_RE.test(e):e>200}});var vHe=K((tei,pHe)=>{"use strict";var dHe=Mt(),tcr=Ho(),rcr=OR(),icr=OE(),ncr=(rm(),ar(tm)),NR=ff(),acr=Pb(),ocr=Xv(),scr=Yp(),lcr=Zv(),ucr=am(),fcr=Kv();pHe.exports=function(t,r,i,n){function a(d,p){return dHe.coerce(t,r,icr,d,p)}var o=t.marker?rcr.isOpenSymbol(t.marker.symbol):!1,s=NR.isBubble(t),l=acr(t,r,n,a);if(!l){r.visible=!1;return}ocr(t,r,n,a),a("xhoverformat"),a("yhoverformat");var u=l{"use strict";var ccr=WP();mHe.exports=function(t,r,i){var n=t.i;return"x"in t||(t.x=r._x[n]),"y"in t||(t.y=r._y[n]),ccr(t,r,i)}});var xHe=K((iei,gHe)=>{"use strict";function hcr(e,t,r,i,n){for(var a=n+1;i<=n;){var o=i+n>>>1,s=e[o],l=r!==void 0?r(s,t):s-t;l>=0?(a=o,n=o-1):i=o+1}return a}function dcr(e,t,r,i,n){for(var a=n+1;i<=n;){var o=i+n>>>1,s=e[o],l=r!==void 0?r(s,t):s-t;l>0?(a=o,n=o-1):i=o+1}return a}function pcr(e,t,r,i,n){for(var a=i-1;i<=n;){var o=i+n>>>1,s=e[o],l=r!==void 0?r(s,t):s-t;l<0?(a=o,i=o+1):n=o-1}return a}function vcr(e,t,r,i,n){for(var a=i-1;i<=n;){var o=i+n>>>1,s=e[o],l=r!==void 0?r(s,t):s-t;l<=0?(a=o,i=o+1):n=o-1}return a}function mcr(e,t,r,i,n){for(;i<=n;){var a=i+n>>>1,o=e[a],s=r!==void 0?r(o,t):o-t;if(s===0)return a;s<=0?i=a+1:n=a-1}return-1}function NE(e,t,r,i,n,a){return typeof r=="function"?a(e,t,r,i===void 0?0:i|0,n===void 0?e.length-1:n|0):a(e,t,void 0,r===void 0?0:r|0,i===void 0?e.length-1:i|0)}gHe.exports={ge:function(e,t,r,i,n){return NE(e,t,r,i,n,hcr)},gt:function(e,t,r,i,n){return NE(e,t,r,i,n,dcr)},lt:function(e,t,r,i,n){return NE(e,t,r,i,n,pcr)},le:function(e,t,r,i,n){return NE(e,t,r,i,n,vcr)},eq:function(e,t,r,i,n){return NE(e,t,r,i,n,mcr)}}});var Eee=K((nei,bHe)=>{bHe.exports=ycr;function ycr(e,t,r){return tr?r:e:et?t:e}});var Em=K((aei,wHe)=>{"use strict";wHe.exports=function(t,r,i){var n={},a,o;if(typeof r=="string"&&(r=_He(r)),Array.isArray(r)){var s={};for(o=0;o{"use strict";var gcr=Em();AHe.exports=xcr;function xcr(e){var t;return arguments.length>1&&(e=arguments),typeof e=="string"?e=e.split(/\s/).map(parseFloat):typeof e=="number"&&(e=[e]),e.length&&typeof e[0]=="number"?e.length===1?t={width:e[0],height:e[0],x:0,y:0}:e.length===2?t={width:e[0],height:e[1],x:0,y:0}:t={x:e[0],y:e[1],width:e[2]-e[0]||0,height:e[3]-e[1]||0}:e&&(e=gcr(e,{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"}),t={x:e.left||0,y:e.top||0},e.width==null?e.right?t.width=e.right-t.x:t.width=0:t.width=e.width,e.height==null?e.bottom?t.height=e.bottom-t.y:t.height=0:t.height=e.height),t}});var N_=K((sei,THe)=>{"use strict";THe.exports=bcr;function bcr(e,t){if(!e||e.length==null)throw Error("Argument should be an array");t==null?t=1:t=Math.floor(t);for(var r=Array(t*2),i=0;in&&(n=e[o]),e[o]{"use strict";MHe.exports=function(){for(var t=0;t{EHe.exports=function(e){switch(e){case"int8":return Int8Array;case"int16":return Int16Array;case"int32":return Int32Array;case"uint8":return Uint8Array;case"uint16":return Uint16Array;case"uint32":return Uint32Array;case"float32":return Float32Array;case"float64":return Float64Array;case"array":return Array;case"uint8_clamped":return Uint8ClampedArray}}});var V_=K((fei,CHe)=>{var kHe=VR();CHe.exports=_cr;function _cr(e,t,r){if(!e)throw new TypeError("must specify data as first parameter");if(r=+(r||0)|0,Array.isArray(e)&&e[0]&&typeof e[0][0]=="number"){var i=e[0].length,n=e.length*i,a,o,s,l;(!t||typeof t=="string")&&(t=new(kHe(t||"float32"))(n+r));var u=t.length-r;if(n!==u)throw new Error("source length "+n+" ("+i+"x"+e.length+") does not match destination length "+u);for(a=0,s=r;a{"use strict";DHe.exports=function(e){var t=typeof e;return e!==null&&(t==="object"||t==="function")}});var PHe=K((hei,LHe)=>{"use strict";LHe.exports=Math.log2||function(e){return Math.log(e)*Math.LOG2E}});var NHe=K((dei,OHe)=>{"use strict";var zHe=xHe(),IHe=Eee(),wcr=K4(),Acr=N_(),RHe=Em(),Cee=SHe(),Tcr=V_(),Mcr=FHe(),Scr=VR(),BHe=PHe(),Ecr=1073741824;OHe.exports=function(t,r){r||(r={}),t=Tcr(t,"float64"),r=RHe(r,{bounds:"range bounds dataBox databox",maxDepth:"depth maxDepth maxdepth level maxLevel maxlevel levels",dtype:"type dtype format out dst output destination"});let i=Cee(r.maxDepth,255),n=Cee(r.bounds,Acr(t,2));n[0]===n[2]&&n[2]++,n[1]===n[3]&&n[3]++;let a=qHe(t,n),o=t.length>>>1,s;r.dtype||(r.dtype="array"),typeof r.dtype=="string"?s=new(Scr(r.dtype))(o):r.dtype&&(s=r.dtype,Array.isArray(s)&&(s.length=o));for(let m=0;mi||x>Ecr){for(let F=0;FW||g>X||E=C||B===O)return;let Z=l[z];O===void 0&&(O=Z.length);for(let te=B;te=b&&de<=x&&ge>=M&&ge<=A&&k.push(ie)}let j=u[z],q=j[B*4+0],Q=j[B*4+1],N=j[B*4+2],V=j[B*4+3],J=L(j,B+1),H=F*.5,$=z+1;D(P,I,H,$,q,Q||N||V||J),D(P,I+H,H,$,Q,N||V||J),D(P+H,I,H,$,N,V||J),D(P+H,I+H,H,$,V,J)}function L(P,I){let F=null,z=0;for(;F===null;)if(F=P[I*4+z],z++,z>P.length)return null;return F}return k}function v(m,w,_,b,M){let x=[];for(let A=0;A{"use strict";VHe.exports=NHe()});var GHe=K((vei,UHe)=>{UHe.exports=Ccr;var Dee={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},kcr=/([astvzqmhlc])([^astvzqmhlc]*)/ig;function Ccr(e){var t=[];return e.replace(kcr,function(r,i,n){var a=i.toLowerCase();for(n=Fcr(n),a=="m"&&n.length>2&&(t.push([i].concat(n.splice(0,2))),a="l",i=i=="m"?"l":"L");;){if(n.length==Dee[a])return n.unshift(i),t.push(n);if(n.length{HHe.exports=Lcr;function Lcr(e){var t=0,r=0,i=0,n=0;return e.map(function(a){a=a.slice();var o=a[0],s=o.toUpperCase();if(o!=s)switch(a[0]=s,o){case"a":a[6]+=i,a[7]+=n;break;case"v":a[1]+=n;break;case"h":a[1]+=i;break;default:for(var l=1;l{"use strict";Object.defineProperty(GR,"__esModule",{value:!0});var Pcr=(function(){function e(t,r){var i=[],n=!0,a=!1,o=void 0;try{for(var s=t[Symbol.iterator](),l;!(n=(l=s.next()).done)&&(i.push(l.value),!(r&&i.length===r));n=!0);}catch(u){a=!0,o=u}finally{try{!n&&s.return&&s.return()}finally{if(a)throw o}}return i}return function(t,r){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),VE=Math.PI*2,Fee=function(t,r,i,n,a,o,s){var l=t.x,u=t.y;l*=r,u*=i;var f=n*l-a*u,c=a*l+n*u;return{x:f+o,y:c+s}},zcr=function(t,r){var i=r===1.5707963267948966?.551915024494:r===-1.5707963267948966?-.551915024494:1.3333333333333333*Math.tan(r/4),n=Math.cos(t),a=Math.sin(t),o=Math.cos(t+r),s=Math.sin(t+r);return[{x:n-a*i,y:a+n*i},{x:o+s*i,y:s-o*i},{x:o,y:s}]},WHe=function(t,r,i,n){var a=t*n-r*i<0?-1:1,o=t*i+r*n;return o>1&&(o=1),o<-1&&(o=-1),a*Math.acos(o)},Icr=function(t,r,i,n,a,o,s,l,u,f,c,h){var d=Math.pow(a,2),p=Math.pow(o,2),v=Math.pow(c,2),y=Math.pow(h,2),m=d*p-d*y-p*v;m<0&&(m=0),m/=d*y+p*v,m=Math.sqrt(m)*(s===l?-1:1);var w=m*a/o*h,_=m*-o/a*c,b=f*w-u*_+(t+i)/2,M=u*w+f*_+(r+n)/2,x=(c-w)/a,A=(h-_)/o,T=(-c-w)/a,g=(-h-_)/o,E=WHe(1,0,x,A),S=WHe(x,A,T,g);return l===0&&S>0&&(S-=VE),l===1&&S<0&&(S+=VE),[b,M,E,S]},Rcr=function(t){var r=t.px,i=t.py,n=t.cx,a=t.cy,o=t.rx,s=t.ry,l=t.xAxisRotation,u=l===void 0?0:l,f=t.largeArcFlag,c=f===void 0?0:f,h=t.sweepFlag,d=h===void 0?0:h,p=[];if(o===0||s===0)return[];var v=Math.sin(u*VE/360),y=Math.cos(u*VE/360),m=y*(r-n)/2+v*(i-a)/2,w=-v*(r-n)/2+y*(i-a)/2;if(m===0&&w===0)return[];o=Math.abs(o),s=Math.abs(s);var _=Math.pow(m,2)/Math.pow(o,2)+Math.pow(w,2)/Math.pow(s,2);_>1&&(o*=Math.sqrt(_),s*=Math.sqrt(_));var b=Icr(r,i,n,a,o,s,c,d,v,y,m,w),M=Pcr(b,4),x=M[0],A=M[1],T=M[2],g=M[3],E=Math.abs(g)/(VE/4);Math.abs(1-E)<1e-7&&(E=1);var S=Math.max(Math.ceil(E),1);g/=S;for(var C=0;C{"use strict";ZHe.exports=qcr;var Bcr=YHe();function qcr(e){for(var t,r=[],i=0,n=0,a=0,o=0,s=null,l=null,u=0,f=0,c=0,h=e.length;c4?(i=d[d.length-4],n=d[d.length-3]):(i=u,n=f),r.push(d)}return r}function HR(e,t,r,i){return["C",e,t,r,i,r,i]}function XHe(e,t,r,i,n,a){return["C",e/3+2/3*r,t/3+2/3*i,n/3+2/3*r,a/3+2/3*i,n,a]}});var Lee=K((gei,JHe)=>{"use strict";JHe.exports=function(t){return typeof t!="string"?!1:(t=t.trim(),!!(/^[mzlhvcsqta]\s*[-+.0-9][^mlhvzcsqta]+/i.test(t)&&/[\dz]$/i.test(t)&&t.length>4))}});var eje=K((xei,QHe)=>{"use strict";var Ocr=GHe(),Ncr=jHe(),Vcr=KHe(),Ucr=Lee();QHe.exports=Gcr;function Gcr(e){if(Array.isArray(e)&&e.length===1&&typeof e[0]=="string"&&(e=e[0]),typeof e=="string"){if(!Ucr(e))throw Error("String is not an SVG path.");e=Ocr(e)}if(!Array.isArray(e))throw Error("Argument should be a string or an array of path segments.");if(e=Ncr(e),e=Vcr(e),!e.length)return[0,0,0,0];for(var t=[1/0,1/0,-1/0,-1/0],r=0,i=e.length;rt[2]&&(t[2]=n[a+0]),n[a+1]>t[3]&&(t[3]=n[a+1]);return t}});var nje=K((bei,ije)=>{"use strict";ije.exports=Hcr;var UE=1e20;function Hcr(e,t){t||(t={});var r=t.cutoff==null?.25:t.cutoff,i=t.radius==null?8:t.radius,n=t.channel||0,a,o,s,l,u,f,c,h,d,p,v;if(ArrayBuffer.isView(e)||Array.isArray(e)){if(!t.width||!t.height)throw Error("For raw data width and height should be provided by options");a=t.width,o=t.height,l=e,t.stride?f=t.stride:f=Math.floor(e.length/a/o)}else window.HTMLCanvasElement&&e instanceof window.HTMLCanvasElement?(h=e,c=h.getContext("2d"),a=h.width,o=h.height,d=c.getImageData(0,0,a,o),l=d.data,f=4):window.CanvasRenderingContext2D&&e instanceof window.CanvasRenderingContext2D?(h=e.canvas,c=e,a=h.width,o=h.height,d=c.getImageData(0,0,a,o),l=d.data,f=4):window.ImageData&&e instanceof window.ImageData&&(d=e,a=e.width,o=e.height,l=d.data,f=4);if(s=Math.max(a,o),window.Uint8ClampedArray&&l instanceof window.Uint8ClampedArray||window.Uint8Array&&l instanceof window.Uint8Array)for(u=l,l=Array(a*o),p=0,v=Math.floor(u.length/f);plje});function lje(e,t={}){if(!(0,oje.default)(e))throw Error("Invalid SVG path");let r,i;t.shape||Array.isArray(t)?[r,i]=t.shape||t:(r=Pee.width=t.width||t.w||200,i=Pee.height=t.height||t.h||200);let n=Math.min(r,i),a=t.stroke||0,o=t.viewbox||t.viewBox||(0,aje.default)(e),s=[r/(o[2]-o[0]),i/(o[3]-o[1])],l=Math.min(s[0]||0,s[1]||0)/2;x1.fillStyle="black",x1.fillRect(0,0,r,i),x1.fillStyle="white",a&&(typeof a!="number"&&(a=1),x1.strokeStyle=a>0?"white":"black",x1.lineWidth=Math.abs(a)),x1.translate(r*.5,i*.5),x1.scale(l,l);let u=new Path2D(e);return x1.fill(u),a&&x1.stroke(u),x1.setTransform(1,0,0,1,0,0),(0,sje.default)(x1,{cutoff:t.cutoff!=null?t.cutoff:.5,radius:t.radius!=null?t.radius:n*.5})}var aje,oje,sje,Pee,x1,fje=ps(()=>{aje=I1(eje()),oje=I1(Lee()),sje=I1(nje()),Pee=document.createElement("canvas"),x1=Pee.getContext("2d",{willReadFrequently:!0})});var G_=K((_ei,_je)=>{"use strict";var WR=Gs(),jcr=(fje(),ar(uje)).default,{normalize:jR}=ko(),Wcr=Ho(),e5=Mt(),zc=e5.isArrayOrTypedArray,J4=Bs(),cje=Vf(),hje=Py().formatColor,Q4=ff(),$cr=T6(),Iee=OR(),GE=(G2(),ar(U2)),Ycr=(ey(),ar(Qm)).DESELECTDIM,dje={start:1,left:1,end:-1,right:-1,middle:0,center:0,bottom:1,top:-1},Xcr=od().appendArrayPointValue;function Zcr(e,t){var r,i={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},n=e._context.plotGlPixelRatio;if(t.visible!==!0)return i;if(Q4.hasText(t)&&(i.text=bje(e,t),i.textSel=vje(e,t,t.selected),i.textUnsel=vje(e,t,t.unselected)),Q4.hasMarkers(t)&&(i.marker=Bee(e,t),i.markerSel=Ree(e,t,t.selected),i.markerUnsel=Ree(e,t,t.unselected),!t.unselected&&zc(t.marker.opacity))){var a=t.marker.opacity;for(i.markerUnsel.opacity=new Array(a.length),r=0;r500?"bold":"normal":e}function Bee(e,t){var r=t._length,i=t.marker,n={},a,o=zc(i.symbol),s=zc(i.angle),l=zc(i.color),u=zc(i.line.color),f=zc(i.opacity),c=zc(i.size),h=zc(i.line.width),d;if(o||(d=Iee.isOpenSymbol(i.symbol)),o||l||u||f||s){n.symbols=new Array(r),n.angles=new Array(r),n.colors=new Array(r),n.borderColors=new Array(r);var p=i.symbol,v=i.angle,y=hje(i,i.opacity,r),m=hje(i.line,i.opacity,r);if(!zc(m[0])){var w=m;for(m=Array(r),a=0;aGE.TOO_MANY_POINTS||Q4.hasMarkers(t)?"rect":"round";if(u&&t.connectgaps){var c=a[0],h=a[1];for(o=0;o1?l[o]:l[0]:l,d=zc(u)?u.length>1?u[o]:u[0]:u,p=dje[h],v=dje[d],y=f?f/.8+1:0,m=-v*y-v*.5;a.offset[o]=[p*y/c,m/c]}}return a}_je.exports={style:Zcr,markerStyle:Bee,markerSelection:Ree,linePositions:Jcr,errorBarPositions:Qcr,textPosition:ehr}});var qee=K((wei,wje)=>{"use strict";var $R=Mt();wje.exports=function(t,r){var i=r._scene,n={count:0,dirty:!0,lineOptions:[],fillOptions:[],markerOptions:[],markerSelectedOptions:[],markerUnselectedOptions:[],errorXOptions:[],errorYOptions:[],textOptions:[],textSelectedOptions:[],textUnselectedOptions:[],selectBatch:[],unselectBatch:[]},a={fill2d:!1,scatter2d:!1,error2d:!1,line2d:!1,glText:!1,select2d:!1};return r._scene||(i=r._scene={},i.init=function(){$R.extendFlat(i,a,n)},i.init(),i.update=function(s){var l=$R.repeat(s,i.count);if(i.fill2d&&i.fill2d.update(l),i.scatter2d&&i.scatter2d.update(l),i.line2d&&i.line2d.update(l),i.error2d&&i.error2d.update(l.concat(l)),i.select2d&&i.select2d.update(l),i.glText)for(var u=0;u{"use strict";var thr=UR(),t5=Mt(),Aje=Vf(),rhr=Hv().findExtremes,Tje=Jv(),Oee=Zp(),ihr=Oee.calcMarkerSize,nhr=Oee.calcAxisExpansion,ahr=Oee.setFirstScatter,ohr=Xp(),r5=G_(),shr=qee(),Mje=(Il(),ar(Bl)).BADNUM,lhr=(G2(),ar(U2)).TOO_MANY_POINTS;Eje.exports=function(t,r){var i=t._fullLayout,n=r._xA=Aje.getFromId(t,r.xaxis,"x"),a=r._yA=Aje.getFromId(t,r.yaxis,"y"),o=i._plots[r.xaxis+r.yaxis],s=r._length,l=s>=lhr,u=s*2,f={},c,h=n.makeCalcdata(r,"x"),d=a.makeCalcdata(r,"y"),p=Tje(r,n,"x",h),v=Tje(r,a,"y",d),y=p.vals,m=v.vals;r._x=y,r._y=m,r.xperiodalignment&&(r._origX=h,r._xStarts=p.starts,r._xEnds=p.ends),r.yperiodalignment&&(r._origY=d,r._yStarts=v.starts,r._yEnds=v.ends);var w=new Array(u),_=new Array(s);for(c=0;c1&&t5.extendFlat(o.line,r5.linePositions(e,r,i)),o.errorX||o.errorY){var s=r5.errorBarPositions(e,r,i,n,a);o.errorX&&t5.extendFlat(o.errorX,s.x),o.errorY&&t5.extendFlat(o.errorY,s.y)}return o.text&&(t5.extendFlat(o.text,{positions:i},r5.textPosition(e,r,o.text,o.marker)),t5.extendFlat(o.textSel,{positions:i},r5.textPosition(e,r,o.text,o.markerSel)),t5.extendFlat(o.textUnsel,{positions:i},r5.textPosition(e,r,o.text,o.markerUnsel))),o}});var Nee=K((Tei,Dje)=>{"use strict";var Cje=Mt(),fhr=ko(),chr=(ey(),ar(Qm)).DESELECTDIM;function hhr(e){var t=e[0],r=t.trace,i=t.t,n=i._scene,a=i.index,o=n.selectBatch[a],s=n.unselectBatch[a],l=n.textOptions[a],u=n.textSelectedOptions[a]||{},f=n.textUnselectedOptions[a]||{},c=Cje.extendFlat({},l),h,d;if(o.length||s.length){var p=u.color,v=f.color,y=l.color,m=Cje.isArrayOrTypedArray(y);for(c.color=new Array(r._length),h=0;h{"use strict";var Fje=ff(),dhr=Nee().styleTextSelection;Lje.exports=function(t,r){var i=t.cd,n=t.xaxis,a=t.yaxis,o=[],s=i[0].trace,l=i[0].t,u=s._length,f=l.x,c=l.y,h=l._scene,d=l.index;if(!h)return o;var p=Fje.hasText(s),v=Fje.hasMarkers(s),y=!v&&!p;if(s.visible!==!0||y)return o;var m=[],w=[];if(r!==!1&&!r.degenerate)for(var _=0;_{"use strict";var phr=qR();Pje.exports={moduleType:"trace",name:"scattergl",basePlotModule:vc(),categories:["gl","regl","cartesian","symbols","errorBarsOK","showLegend","scatter-like"],attributes:OE(),supplyDefaults:vHe(),crossTraceDefaults:wW(),colorbar:Qh(),formatLabels:yHe(),calc:kje(),hoverPoints:phr.hoverPoints,selectPoints:Vee(),meta:{}}});var Rje=K((Eei,Ije)=>{"use strict";Ije.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 Nje=K((kei,Oje)=>{"use strict";var Bje=Rje();Oje.exports=vhr;var qje={red:0,orange:60,yellow:120,green:180,blue:240,purple:300};function vhr(e){var t,r=[],i=1,n;if(typeof e=="string")if(e=e.toLowerCase(),Bje[e])r=Bje[e].slice(),n="rgb";else if(e==="transparent")i=0,n="rgb",r=[0,0,0];else if(/^#[A-Fa-f0-9]+$/.test(e)){var a=e.slice(1),o=a.length,s=o<=4;i=1,s?(r=[parseInt(a[0]+a[0],16),parseInt(a[1]+a[1],16),parseInt(a[2]+a[2],16)],o===4&&(i=parseInt(a[3]+a[3],16)/255)):(r=[parseInt(a[0]+a[1],16),parseInt(a[2]+a[3],16),parseInt(a[4]+a[5],16)],o===8&&(i=parseInt(a[6]+a[7],16)/255)),r[0]||(r[0]=0),r[1]||(r[1]=0),r[2]||(r[2]=0),n="rgb"}else if(t=/^((?:rgb|hs[lvb]|hwb|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms)a?)\s*\(([^\)]*)\)/.exec(e)){var l=t[1],u=l==="rgb",a=l.replace(/a$/,"");n=a;var o=a==="cmyk"?4:a==="gray"?1:3;r=t[2].trim().split(/\s*[,\/]\s*|\s+/).map(function(h,d){if(/%$/.test(h))return d===o?parseFloat(h)/100:a==="rgb"?parseFloat(h)*255/100:parseFloat(h);if(a[d]==="h"){if(/deg$/.test(h))return parseFloat(h);if(qje[h]!==void 0)return qje[h]}return parseFloat(h)}),l===a&&r.push(1),i=u||r[o]===void 0?1:r[o],r=r.slice(0,o)}else e.length>10&&/[0-9](?:\s|\/)/.test(e)&&(r=e.match(/([0-9]+)/g).map(function(f){return parseFloat(f)}),n=e.match(/([a-z])/ig).join("").toLowerCase());else isNaN(e)?Array.isArray(e)||e.length?(r=[e[0],e[1],e[2]],n="rgb",i=e.length===4?e[3]:1):e instanceof Object&&(e.r!=null||e.red!=null||e.R!=null?(n="rgb",r=[e.r||e.red||e.R||0,e.g||e.green||e.G||0,e.b||e.blue||e.B||0]):(n="hsl",r=[e.h||e.hue||e.H||0,e.s||e.saturation||e.S||0,e.l||e.lightness||e.L||e.b||e.brightness]),i=e.a||e.alpha||e.opacity||1,e.opacity!=null&&(i/=100)):(n="rgb",r=[e>>>16,(e&65280)>>>8,e&255]);return{space:n,values:r,alpha:i}}});var Uje=K((Cei,Vje)=>{"use strict";var mhr=Nje();Vje.exports=function(t){Array.isArray(t)&&t.raw&&(t=String.raw.apply(null,arguments));var r,i,n,a=mhr(t);if(!a.space)return[];var o=[0,0,0],s=a.space[0]==="h"?[360,100,100]:[255,255,255];return r=Array(3),r[0]=Math.min(Math.max(a.values[0],o[0]),s[0]),r[1]=Math.min(Math.max(a.values[1],o[1]),s[1]),r[2]=Math.min(Math.max(a.values[2],o[2]),s[2]),a.space[0]==="h"&&(r=yhr(r)),r.push(Math.min(Math.max(a.alpha,0),1)),r};function yhr(e){var t=e[0]/360,r=e[1]/100,i=e[2]/100,n,a,o,s,l,u=0;if(r===0)return l=i*255,[l,l,l];for(a=i<.5?i*(1+r):i+r-i*r,n=2*i-a,s=[0,0,0];u<3;)o=t+1/3*-(u-1),o<0?o++:o>1&&o--,l=6*o<1?n+(a-n)*6*o:2*o<1?a:3*o<2?n+(a-n)*(2/3-o)*6:n,s[u++]=l*255;return s}});var HE=K((Dei,Gje)=>{"use strict";var ghr=Uje(),xhr=VR();Gje.exports=function(t,r){(r==="float"||!r)&&(r="array"),r==="uint"&&(r="uint8"),r==="uint_clamped"&&(r="uint8_clamped");var i=xhr(r),n=new i(4),a=r!=="uint8"&&r!=="uint8_clamped";return(!t.length||typeof t=="string")&&(t=ghr(t),t[0]/=255,t[1]/=255,t[2]/=255),bhr(t)?(n[0]=t[0],n[1]=t[1],n[2]=t[2],n[3]=t[3]!=null?t[3]:255,a&&(n[0]/=255,n[1]/=255,n[2]/=255,n[3]/=255),n):(a?(n[0]=t[0],n[1]=t[1],n[2]=t[2],n[3]=t[3]!=null?t[3]:1):(n[0]=Math.min(Math.max(Math.floor(t[0]*255),0),255),n[1]=Math.min(Math.max(Math.floor(t[1]*255),0),255),n[2]=Math.min(Math.max(Math.floor(t[2]*255),0),255),n[3]=t[3]==null?255:Math.min(Math.max(Math.floor(t[3]*255),0),255)),n)};function bhr(e){return!!(e instanceof Uint8Array||e instanceof Uint8ClampedArray||Array.isArray(e)&&(e[0]>1||e[0]===0)&&(e[1]>1||e[1]===0)&&(e[2]>1||e[2]===0)&&(!e[3]||e[3]>1))}});var jje=K((Fei,XR)=>{"use strict";var YR=Eee();XR.exports=Hje;XR.exports.to=Hje;XR.exports.from=_hr;function Hje(e,t){t==null&&(t=!0);var r=e[0],i=e[1],n=e[2],a=e[3];a==null&&(a=t?1:255),t&&(r*=255,i*=255,n*=255,a*=255),r=YR(r,0,255)&255,i=YR(i,0,255)&255,n=YR(n,0,255)&255,a=YR(a,0,255)&255;var o=r*16777216+(i<<16)+(n<<8)+a;return o}function _hr(e,t){e=+e;var r=e>>>24,i=(e&16711680)>>>16,n=(e&65280)>>>8,a=e&255;return t===!1?[r,i,n,a]:[r/255,i/255,n/255,a/255]}});var $je=K((Lei,Wje)=>{Wje.exports=function(e){typeof e=="string"&&(e=[e]);for(var t=[].slice.call(arguments,1),r=[],i=0;i{"use strict";Yje.exports=function(t,r,i){Array.isArray(i)||(i=[].slice.call(arguments,2));for(var n=0,a=i.length;n{"use strict";i5.exports=jE;i5.exports.float32=i5.exports.float=jE;i5.exports.fract32=i5.exports.fract=whr;var Xje=new Float32Array(1);function whr(e,t){if(e.length){if(e instanceof Float32Array)return new Float32Array(e.length);t instanceof Float32Array||(t=jE(e));for(var r=0,i=t.length;r{"use strict";var Ahr=HE(),Thr=N_(),Mhr=jje(),Shr=UR(),KR=$je(),Ehr=Em(),khr=Uee(),Chr=V_(),JR=ZR(),Dhr=K4(),Fhr=a0;function a0(e,t){if(!(this instanceof a0))return new a0(e,t);typeof e=="function"?(t||(t={}),t.regl=e):(t=e,e=null),t&&t.length&&(t.positions=t),e=t.regl;let r=e._gl,i,n=[],a={},o=[],s=[null],l=[null],u=255,f=100;this.tooManyColors=!1,i=e.texture({data:new Uint8Array(u*4),width:u,height:1,type:"uint8",format:"rgba",wrapS:"clamp",wrapT:"clamp",mag:"nearest",min:"nearest"}),Object.assign(this,{regl:e,gl:r,groups:o,markerCache:l,markerTextures:s,palette:n,paletteIds:a,paletteTexture:i,maxColors:u,maxSize:f,canvas:r.canvas}),this.update(t);let c={uniforms:{constPointSize:!!t.constPointSize,opacity:e.prop("opacity"),paletteSize:(p,v)=>[this.tooManyColors?0:u,i.height],pixelRatio:e.context("pixelRatio"),scale:e.prop("scale"),scaleFract:e.prop("scaleFract"),translate:e.prop("translate"),translateFract:e.prop("translateFract"),markerTexture:e.prop("markerTexture"),paletteTexture:i},attributes:{x:(p,v)=>v.xAttr||{buffer:v.positionBuffer,stride:8,offset:0},y:(p,v)=>v.yAttr||{buffer:v.positionBuffer,stride:8,offset:4},xFract:(p,v)=>v.xAttr?{constant:[0,0]}:{buffer:v.positionFractBuffer,stride:8,offset:0},yFract:(p,v)=>v.yAttr?{constant:[0,0]}:{buffer:v.positionFractBuffer,stride:8,offset:4},size:(p,v)=>v.size.length?{buffer:v.sizeBuffer,stride:2,offset:0}:{constant:[Math.round(v.size*255/this.maxSize)]},borderSize:(p,v)=>v.borderSize.length?{buffer:v.sizeBuffer,stride:2,offset:1}:{constant:[Math.round(v.borderSize*255/this.maxSize)]},colorId:(p,v)=>v.color.length?{buffer:v.colorBuffer,stride:this.tooManyColors?8:4,offset:0}:{constant:this.tooManyColors?n.slice(v.color*4,v.color*4+4):[v.color]},borderColorId:(p,v)=>v.borderColor.length?{buffer:v.colorBuffer,stride:this.tooManyColors?8:4,offset:this.tooManyColors?4:2}:{constant:this.tooManyColors?n.slice(v.borderColor*4,v.borderColor*4+4):[v.borderColor]},isActive:(p,v)=>v.activation===!0?{constant:[1]}:v.activation?v.activation:{constant:[0]}},blend:{enable:!0,color:[0,0,0,1],func:{srcRGB:"src alpha",dstRGB:"one minus src alpha",srcAlpha:"one minus dst alpha",dstAlpha:"one"}},scissor:{enable:!0,box:e.prop("viewport")},viewport:e.prop("viewport"),stencil:{enable:!1},depth:{enable:!1},elements:e.prop("elements"),count:e.prop("count"),offset:e.prop("offset"),primitive:"points"},h=Object.assign({},c);h.frag=KR([`precision highp float; +`]);a.createShader=function(d){var p=s(d,u,f,null,[{name:"uv",type:"vec4"},{name:"f",type:"vec3"},{name:"normal",type:"vec3"}]);return p.attributes.uv.location=0,p.attributes.f.location=1,p.attributes.normal.location=2,p},a.createPickShader=function(d){var p=s(d,u,h,null,[{name:"uv",type:"vec4"},{name:"f",type:"vec3"},{name:"normal",type:"vec3"}]);return p.attributes.uv.location=0,p.attributes.f.location=1,p.attributes.normal.location=2,p},a.createContourShader=function(d){var p=s(d,c,f,null,[{name:"uv",type:"vec4"},{name:"f",type:"float"}]);return p.attributes.uv.location=0,p.attributes.f.location=1,p},a.createPickContourShader=function(d){var p=s(d,c,h,null,[{name:"uv",type:"vec4"},{name:"f",type:"float"}]);return p.attributes.uv.location=0,p.attributes.f.location=1,p}},9499(n,a,o){"use strict";n.exports=J;var s=o(8828),l=o(2762),u=o(8116),f=o(7766),c=o(1888),h=o(6729),d=o(5298),p=o(9994),v=o(9618),y=o(3711),m=o(6760),w=o(7608),_=o(2478),b=o(6199),M=o(990),x=M.createShader,T=M.createContourShader,A=M.createPickShader,g=M.createPickContourShader,E=40,S=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],C=[[0,0],[0,1],[1,0],[1,1],[1,0],[0,1]],k=[[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 j=0;j<3;++j){var $=k[j],ie=(j+1)%3,re=(j+2)%3;$[ie+0]=1,$[re+3]=1,$[j+6]=1}})();function D(j,$,ie,re,de){this.position=j,this.index=$,this.uv=ie,this.level=re,this.dataCoordinate=de}var F=256;function P(j,$,ie,re,de,me,ze,ke,le,te,Ee,we,oe,Y,ne){this.gl=j,this.shape=$,this.bounds=ie,this.objectOffset=ne,this.intensityBounds=[],this._shader=re,this._pickShader=de,this._coordinateBuffer=me,this._vao=ze,this._colorMap=ke,this._contourShader=le,this._contourPickShader=te,this._contourBuffer=Ee,this._contourVAO=we,this._contourOffsets=[[],[],[]],this._contourCounts=[[],[],[]],this._vertexCount=0,this._pickResult=new D([0,0,0],[0,0],[0,0],[0,0,0],[0,0,0]),this._dynamicBuffer=oe,this._dynamicVAO=Y,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=[v(c.mallocFloat(1024),[0,0]),v(c.mallocFloat(1024),[0,0]),v(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 I=P.prototype;I.genColormap=function(j,$){var ie=!1,re=p([h({colormap:j,nshades:F,format:"rgba"}).map(function(de,me){var ze=$?L(me/255,$):de[3];return ze<1&&(ie=!0),[de[0],de[1],de[2],255*ze]})]);return d.divseq(re,255),this.hasAlphaScale=ie,re},I.isTransparent=function(){return this.opacity<1||this.hasAlphaScale},I.isOpaque=function(){return!this.isTransparent()},I.pickSlots=1,I.setPickBase=function(j){this.pickId=j};function L(j,$){if(!$||!$.length)return 1;for(var ie=0;ie<$.length;++ie){if($.length<2)return 1;if($[ie][0]===j)return $[ie][1];if($[ie][0]>j&&ie>0){var re=($[ie][0]-j)/($[ie][0]-$[ie-1][0]);return $[ie][1]*(1-re)+re*$[ie-1][1]}}return 1}var z=[0,0,0],B={showSurface:!1,showContour:!1,projections:[S.slice(),S.slice(),S.slice()],clipBounds:[[[0,0,0],[0,0,0]],[[0,0,0],[0,0,0]],[[0,0,0],[0,0,0]]]};function O(j,$){var ie,re,de,me=$.axes&&$.axes.lastCubeProps.axis||z,ze=$.showSurface,ke=$.showContour;for(ie=0;ie<3;++ie)for(ze=ze||$.surfaceProject[ie],re=0;re<3;++re)ke=ke||$.contourProject[ie][re];for(ie=0;ie<3;++ie){var le=B.projections[ie];for(re=0;re<16;++re)le[re]=0;for(re=0;re<4;++re)le[5*re]=1;le[5*ie]=0,le[12+ie]=$.axesBounds[+(me[ie]>0)][ie],m(le,j.model,le);var te=B.clipBounds[ie];for(de=0;de<2;++de)for(re=0;re<3;++re)te[de][re]=j.clipBounds[de][re];te[0][ie]=-1e8,te[1][ie]=1e8}return B.showSurface=ze,B.showContour=ke,B}var W={model:S,view:S,projection:S,inverseModel:S.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},X=S.slice(),Z=[1,0,0,0,1,0,0,0,1];function H(j,$){j=j||{};var ie=this.gl;ie.disable(ie.CULL_FACE),this._colorMap.bind(0);var re=W;re.model=j.model||S,re.view=j.view||S,re.projection=j.projection||S,re.lowerBound=[this.bounds[0][0],this.bounds[0][1],this.colorBounds[0]||this.bounds[0][2]],re.upperBound=[this.bounds[1][0],this.bounds[1][1],this.colorBounds[1]||this.bounds[1][2]],re.objectOffset=this.objectOffset,re.contourColor=this.contourColor[0],re.inverseModel=w(re.inverseModel,re.model);for(var de=0;de<2;++de)for(var me=re.clipBounds[de],ze=0;ze<3;++ze)me[ze]=Math.min(Math.max(this.clipBounds[de][ze],-1e8),1e8);re.kambient=this.ambientLight,re.kdiffuse=this.diffuseLight,re.kspecular=this.specularLight,re.roughness=this.roughness,re.fresnel=this.fresnel,re.opacity=this.opacity,re.height=0,re.permutation=Z,re.vertexColor=this.vertexColor;var ke=X;for(m(ke,re.view,re.model),m(ke,re.projection,ke),w(ke,ke),de=0;de<3;++de)re.eyePosition[de]=ke[12+de]/ke[15];var le=ke[15];for(de=0;de<3;++de)le+=this.lightPosition[de]*ke[4*de+3];for(de=0;de<3;++de){var te=ke[12+de];for(ze=0;ze<3;++ze)te+=ke[4*ze+de]*this.lightPosition[ze];re.lightPosition[de]=te/le}var Ee=O(re,this);if(Ee.showSurface){for(this._shader.bind(),this._shader.uniforms=re,this._vao.bind(),this.showSurface&&this._vertexCount&&this._vao.draw(ie.TRIANGLES,this._vertexCount),de=0;de<3;++de)!this.surfaceProject[de]||!this.vertexCount||(this._shader.uniforms.model=Ee.projections[de],this._shader.uniforms.clipBounds=Ee.clipBounds[de],this._vao.draw(ie.TRIANGLES,this._vertexCount));this._vao.unbind()}if(Ee.showContour){var we=this._contourShader;re.kambient=1,re.kdiffuse=0,re.kspecular=0,re.opacity=1,we.bind(),we.uniforms=re;var oe=this._contourVAO;for(oe.bind(),de=0;de<3;++de)for(we.uniforms.permutation=k[de],ie.lineWidth(this.contourWidth[de]*this.pixelRatio),ze=0;ze>4)/16)/255,de=Math.floor(re),me=re-de,ze=$[1]*(j.value[1]+(j.value[2]&15)/16)/255,ke=Math.floor(ze),le=ze-ke;de+=1,ke+=1;var te=ie.position;te[0]=te[1]=te[2]=0;for(var Ee=0;Ee<2;++Ee)for(var we=Ee?me:1-me,oe=0;oe<2;++oe)for(var Y=oe?le:1-le,ne=de+Ee,ye=ke+oe,V=we*Y,ue=0;ue<3;++ue)te[ue]+=this._field[ue].get(ne,ye)*V;for(var _e=this._pickResult.level,xe=0;xe<3;++xe)if(_e[xe]=_.le(this.contourLevels[xe],te[xe]),_e[xe]<0)this.contourLevels[xe].length>0&&(_e[xe]=0);else if(_e[xe]Math.abs(se-te[xe])&&(_e[xe]+=1)}for(ie.index[0]=me<.5?de:de+1,ie.index[1]=le<.5?ke:ke+1,ie.uv[0]=re/$[0],ie.uv[1]=ze/$[1],ue=0;ue<3;++ue)ie.dataCoordinate[ue]=this._field[ue].get(ie.index[0],ie.index[1]);return ie},I.padField=function(j,$){var ie=$.shape.slice(),re=j.shape.slice();d.assign(j.lo(1,1).hi(ie[0],ie[1]),$),d.assign(j.lo(1).hi(ie[0],1),$.hi(ie[0],1)),d.assign(j.lo(1,re[1]-1).hi(ie[0],1),$.lo(0,ie[1]-1).hi(ie[0],1)),d.assign(j.lo(0,1).hi(1,ie[1]),$.hi(1)),d.assign(j.lo(re[0]-1,1).hi(1,ie[1]),$.lo(ie[0]-1)),j.set(0,0,$.get(0,0)),j.set(0,re[1]-1,$.get(0,ie[1]-1)),j.set(re[0]-1,0,$.get(ie[0]-1,0)),j.set(re[0]-1,re[1]-1,$.get(ie[0]-1,ie[1]-1))};function Q(j,$){return Array.isArray(j)?[$(j[0]),$(j[1]),$(j[2])]:[$(j),$(j),$(j)]}function N(j){return Array.isArray(j)?j.length===3?[j[0],j[1],j[2],1]:[j[0],j[1],j[2],j[3]]:[0,0,0,1]}function U(j){if(Array.isArray(j)){if(Array.isArray(j))return[N(j[0]),N(j[1]),N(j[2])];var $=N(j);return[$.slice(),$.slice(),$.slice()]}}I.update=function(j){j=j||{},this.objectOffset=j.objectOffset||this.objectOffset,this.dirty=!0,"contourWidth"in j&&(this.contourWidth=Q(j.contourWidth,Number)),"showContour"in j&&(this.showContour=Q(j.showContour,Boolean)),"showSurface"in j&&(this.showSurface=!!j.showSurface),"contourTint"in j&&(this.contourTint=Q(j.contourTint,Boolean)),"contourColor"in j&&(this.contourColor=U(j.contourColor)),"contourProject"in j&&(this.contourProject=Q(j.contourProject,function(Fi){return Q(Fi,Boolean)})),"surfaceProject"in j&&(this.surfaceProject=j.surfaceProject),"dynamicColor"in j&&(this.dynamicColor=U(j.dynamicColor)),"dynamicTint"in j&&(this.dynamicTint=Q(j.dynamicTint,Number)),"dynamicWidth"in j&&(this.dynamicWidth=Q(j.dynamicWidth,Number)),"opacity"in j&&(this.opacity=j.opacity),"opacityscale"in j&&(this.opacityscale=j.opacityscale),"colorBounds"in j&&(this.colorBounds=j.colorBounds),"vertexColor"in j&&(this.vertexColor=j.vertexColor?1:0),"colormap"in j&&this._colorMap.setPixels(this.genColormap(j.colormap,this.opacityscale));var $=j.field||j.coords&&j.coords[2]||null,ie=!1;if($||(this._field[2].shape[0]||this._field[2].shape[2]?$=this._field[2].lo(1,1).hi(this._field[2].shape[0]-2,this._field[2].shape[1]-2):$=this._field[2].hi(0,0)),"field"in j||"coords"in j){var re=($.shape[0]+2)*($.shape[1]+2);re>this._field[2].data.length&&(c.freeFloat(this._field[2].data),this._field[2].data=c.mallocFloat(s.nextPow2(re))),this._field[2]=v(this._field[2].data,[$.shape[0]+2,$.shape[1]+2]),this.padField(this._field[2],$),this.shape=$.shape.slice();for(var de=this.shape,me=0;me<2;++me)this._field[2].size>this._field[me].data.length&&(c.freeFloat(this._field[me].data),this._field[me].data=c.mallocFloat(this._field[2].size)),this._field[me]=v(this._field[me].data,[de[0]+2,de[1]+2]);if(j.coords){var ze=j.coords;if(!Array.isArray(ze)||ze.length!==3)throw new Error("gl-surface: invalid coordinates for x/y");for(me=0;me<2;++me){var ke=ze[me];for(oe=0;oe<2;++oe)if(ke.shape[oe]!==de[oe])throw new Error("gl-surface: coords have incorrect shape");this.padField(this._field[me],ke)}}else if(j.ticks){var le=j.ticks;if(!Array.isArray(le)||le.length!==2)throw new Error("gl-surface: invalid ticks");for(me=0;me<2;++me){var te=le[me];if((Array.isArray(te)||te.length)&&(te=v(te)),te.shape[0]!==de[me])throw new Error("gl-surface: invalid tick length");var Ee=v(te.data,de);Ee.stride[me]=te.stride[0],Ee.stride[me^1]=0,this.padField(this._field[me],Ee)}}else{for(me=0;me<2;++me){var we=[0,0];we[me]=1,this._field[me]=v(this._field[me].data,[de[0]+2,de[1]+2],we,0)}this._field[0].set(0,0,0);for(var oe=0;oe0){for(var Gr=0;Gr<5;++Gr)Dt.pop();Le-=1}continue e}}}Ye.push(Le)}this._contourOffsets[yt]=tr,this._contourCounts[yt]=Ye}var _i=c.mallocFloat(Dt.length);for(me=0;meD||C<0||C>D)throw new Error("gl-texture2d: Invalid texture size");return E._shape=[S,C],E.bind(),k.texImage2D(k.TEXTURE_2D,0,E.format,S,C,0,E.format,E.type,null),E._mipLevels=[0],E}function m(E,S,C,k,D,F){this.gl=E,this.handle=S,this.format=D,this.type=F,this._shape=[C,k],this._mipLevels=[0],this._magFilter=E.NEAREST,this._minFilter=E.NEAREST,this._wrapS=E.CLAMP_TO_EDGE,this._wrapT=E.CLAMP_TO_EDGE,this._anisoSamples=1;var P=this,I=[this._wrapS,this._wrapT];Object.defineProperties(I,[{get:function(){return P._wrapS},set:function(z){return P.wrapS=z}},{get:function(){return P._wrapT},set:function(z){return P.wrapT=z}}]),this._wrapVector=I;var L=[this._shape[0],this._shape[1]];Object.defineProperties(L,[{get:function(){return P._shape[0]},set:function(z){return P.width=z}},{get:function(){return P._shape[1]},set:function(z){return P.height=z}}]),this._shapeVector=L}var w=m.prototype;Object.defineProperties(w,{minFilter:{get:function(){return this._minFilter},set:function(E){this.bind();var S=this.gl;if(this.type===S.FLOAT&&f.indexOf(E)>=0&&(S.getExtension("OES_texture_float_linear")||(E=S.NEAREST)),c.indexOf(E)<0)throw new Error("gl-texture2d: Unknown filter mode "+E);return S.texParameteri(S.TEXTURE_2D,S.TEXTURE_MIN_FILTER,E),this._minFilter=E}},magFilter:{get:function(){return this._magFilter},set:function(E){this.bind();var S=this.gl;if(this.type===S.FLOAT&&f.indexOf(E)>=0&&(S.getExtension("OES_texture_float_linear")||(E=S.NEAREST)),c.indexOf(E)<0)throw new Error("gl-texture2d: Unknown filter mode "+E);return S.texParameteri(S.TEXTURE_2D,S.TEXTURE_MAG_FILTER,E),this._magFilter=E}},mipSamples:{get:function(){return this._anisoSamples},set:function(E){var S=this._anisoSamples;if(this._anisoSamples=Math.max(E,1)|0,S!==this._anisoSamples){var C=this.gl.getExtension("EXT_texture_filter_anisotropic");C&&this.gl.texParameterf(this.gl.TEXTURE_2D,C.TEXTURE_MAX_ANISOTROPY_EXT,this._anisoSamples)}return this._anisoSamples}},wrapS:{get:function(){return this._wrapS},set:function(E){if(this.bind(),h.indexOf(E)<0)throw new Error("gl-texture2d: Unknown wrap mode "+E);return this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_WRAP_S,E),this._wrapS=E}},wrapT:{get:function(){return this._wrapT},set:function(E){if(this.bind(),h.indexOf(E)<0)throw new Error("gl-texture2d: Unknown wrap mode "+E);return this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_WRAP_T,E),this._wrapT=E}},wrap:{get:function(){return this._wrapVector},set:function(E){if(Array.isArray(E)||(E=[E,E]),E.length!==2)throw new Error("gl-texture2d: Must specify wrap mode for rows and columns");for(var S=0;S<2;++S)if(h.indexOf(E[S])<0)throw new Error("gl-texture2d: Unknown wrap mode "+E);this._wrapS=E[0],this._wrapT=E[1];var C=this.gl;return this.bind(),C.texParameteri(C.TEXTURE_2D,C.TEXTURE_WRAP_S,this._wrapS),C.texParameteri(C.TEXTURE_2D,C.TEXTURE_WRAP_T,this._wrapT),E}},shape:{get:function(){return this._shapeVector},set:function(E){if(!Array.isArray(E))E=[E|0,E|0];else if(E.length!==2)throw new Error("gl-texture2d: Invalid texture shape");return y(this,E[0]|0,E[1]|0),[E[0]|0,E[1]|0]}},width:{get:function(){return this._shape[0]},set:function(E){return E=E|0,y(this,E,this._shape[1]),E}},height:{get:function(){return this._shape[1]},set:function(E){return E=E|0,y(this,this._shape[0],E),E}}}),w.bind=function(E){var S=this.gl;return E!==void 0&&S.activeTexture(S.TEXTURE0+(E|0)),S.bindTexture(S.TEXTURE_2D,this.handle),E!==void 0?E|0:S.getParameter(S.ACTIVE_TEXTURE)-S.TEXTURE0},w.dispose=function(){this.gl.deleteTexture(this.handle)},w.generateMipmap=function(){this.bind(),this.gl.generateMipmap(this.gl.TEXTURE_2D);for(var E=Math.min(this._shape[0],this._shape[1]),S=0;E>0;++S,E>>>=1)this._mipLevels.indexOf(S)<0&&this._mipLevels.push(S)},w.setPixels=function(E,S,C,k){var D=this.gl;this.bind(),Array.isArray(S)?(k=C,C=S[1]|0,S=S[0]|0):(S=S||0,C=C||0),k=k||0;var F=p(E)?E:E.raw;if(F){var P=this._mipLevels.indexOf(k)<0;P?(D.texImage2D(D.TEXTURE_2D,0,this.format,this.format,this.type,F),this._mipLevels.push(k)):D.texSubImage2D(D.TEXTURE_2D,k,S,C,this.format,this.type,F)}else if(E.shape&&E.stride&&E.data){if(E.shape.length<2||S+E.shape[1]>this._shape[1]>>>k||C+E.shape[0]>this._shape[0]>>>k||S<0||C<0)throw new Error("gl-texture2d: Texture dimensions are out of bounds");b(D,S,C,k,this.format,this.type,this._mipLevels,E)}else throw new Error("gl-texture2d: Unsupported data type")};function _(E,S){return E.length===3?S[2]===1&&S[1]===E[0]*E[2]&&S[0]===E[2]:S[0]===1&&S[1]===E[0]}function b(E,S,C,k,D,F,P,I){var L=I.dtype,z=I.shape.slice();if(z.length<2||z.length>3)throw new Error("gl-texture2d: Invalid ndarray, must be 2d or 3d");var B=0,O=0,W=_(z,I.stride.slice());L==="float32"?B=E.FLOAT:L==="float64"?(B=E.FLOAT,W=!1,L="float32"):L==="uint8"?B=E.UNSIGNED_BYTE:(B=E.UNSIGNED_BYTE,W=!1,L="uint8");var X=1;if(z.length===2)O=E.LUMINANCE,z=[z[0],z[1],1],I=s(I.data,z,[I.stride[0],I.stride[1],1],I.offset);else if(z.length===3){if(z[2]===1)O=E.ALPHA;else if(z[2]===2)O=E.LUMINANCE_ALPHA;else if(z[2]===3)O=E.RGB;else if(z[2]===4)O=E.RGBA;else throw new Error("gl-texture2d: Invalid shape for pixel coords");X=z[2]}else throw new Error("gl-texture2d: Invalid shape for texture");if((O===E.LUMINANCE||O===E.ALPHA)&&(D===E.LUMINANCE||D===E.ALPHA)&&(O=D),O!==D)throw new Error("gl-texture2d: Incompatible texture format for setPixels");var Z=I.size,H=P.indexOf(k)<0;if(H&&P.push(k),B===F&&W)I.offset===0&&I.data.length===Z?H?E.texImage2D(E.TEXTURE_2D,k,D,z[0],z[1],0,D,F,I.data):E.texSubImage2D(E.TEXTURE_2D,k,S,C,z[0],z[1],D,F,I.data):H?E.texImage2D(E.TEXTURE_2D,k,D,z[0],z[1],0,D,F,I.data.subarray(I.offset,I.offset+Z)):E.texSubImage2D(E.TEXTURE_2D,k,S,C,z[0],z[1],D,F,I.data.subarray(I.offset,I.offset+Z));else{var q;F===E.FLOAT?q=u.mallocFloat32(Z):q=u.mallocUint8(Z);var Q=s(q,z,[z[2],z[2]*z[0],1]);B===E.FLOAT&&F===E.UNSIGNED_BYTE?v(Q,I):l.assign(Q,I),H?E.texImage2D(E.TEXTURE_2D,k,D,z[0],z[1],0,D,F,q.subarray(0,Z)):E.texSubImage2D(E.TEXTURE_2D,k,S,C,z[0],z[1],D,F,q.subarray(0,Z)),F===E.FLOAT?u.freeFloat32(q):u.freeUint8(q)}}function M(E){var S=E.createTexture();return E.bindTexture(E.TEXTURE_2D,S),E.texParameteri(E.TEXTURE_2D,E.TEXTURE_MIN_FILTER,E.NEAREST),E.texParameteri(E.TEXTURE_2D,E.TEXTURE_MAG_FILTER,E.NEAREST),E.texParameteri(E.TEXTURE_2D,E.TEXTURE_WRAP_S,E.CLAMP_TO_EDGE),E.texParameteri(E.TEXTURE_2D,E.TEXTURE_WRAP_T,E.CLAMP_TO_EDGE),S}function x(E,S,C,k,D){var F=E.getParameter(E.MAX_TEXTURE_SIZE);if(S<0||S>F||C<0||C>F)throw new Error("gl-texture2d: Invalid texture shape");if(D===E.FLOAT&&!E.getExtension("OES_texture_float"))throw new Error("gl-texture2d: Floating point textures not supported on this platform");var P=M(E);return E.texImage2D(E.TEXTURE_2D,0,k,S,C,0,k,D,null),new m(E,P,S,C,k,D)}function T(E,S,C,k,D,F){var P=M(E);return E.texImage2D(E.TEXTURE_2D,0,D,D,F,S),new m(E,P,C,k,D,F)}function A(E,S){var C=S.dtype,k=S.shape.slice(),D=E.getParameter(E.MAX_TEXTURE_SIZE);if(k[0]<0||k[0]>D||k[1]<0||k[1]>D)throw new Error("gl-texture2d: Invalid texture size");var F=_(k,S.stride.slice()),P=0;C==="float32"?P=E.FLOAT:C==="float64"?(P=E.FLOAT,F=!1,C="float32"):C==="uint8"?P=E.UNSIGNED_BYTE:(P=E.UNSIGNED_BYTE,F=!1,C="uint8");var I=0;if(k.length===2)I=E.LUMINANCE,k=[k[0],k[1],1],S=s(S.data,k,[S.stride[0],S.stride[1],1],S.offset);else if(k.length===3)if(k[2]===1)I=E.ALPHA;else if(k[2]===2)I=E.LUMINANCE_ALPHA;else if(k[2]===3)I=E.RGB;else if(k[2]===4)I=E.RGBA;else throw new Error("gl-texture2d: Invalid shape for pixel coords");else throw new Error("gl-texture2d: Invalid shape for texture");P===E.FLOAT&&!E.getExtension("OES_texture_float")&&(P=E.UNSIGNED_BYTE,F=!1);var L,z,B=S.size;if(F)S.offset===0&&S.data.length===B?L=S.data:L=S.data.subarray(S.offset,S.offset+B);else{var O=[k[2],k[2]*k[0],1];z=u.malloc(B,C);var W=s(z,k,O,0);(C==="float32"||C==="float64")&&P===E.UNSIGNED_BYTE?v(W,S):l.assign(W,S),L=z.subarray(0,B)}var X=M(E);return E.texImage2D(E.TEXTURE_2D,0,I,k[0],k[1],0,I,P,L),F||u.free(z),new m(E,X,k[0],k[1],I,P)}function g(E){if(arguments.length<=1)throw new Error("gl-texture2d: Missing arguments for texture2d constructor");if(f||d(E),typeof arguments[1]=="number")return x(E,arguments[1],arguments[2],arguments[3]||E.RGBA,arguments[4]||E.UNSIGNED_BYTE);if(Array.isArray(arguments[1]))return x(E,arguments[1][0]|0,arguments[1][1]|0,arguments[2]||E.RGBA,arguments[3]||E.UNSIGNED_BYTE);if(typeof arguments[1]=="object"){var S=arguments[1],C=p(S)?S:S.raw;if(C)return T(E,C,S.width|0,S.height|0,arguments[2]||E.RGBA,arguments[3]||E.UNSIGNED_BYTE);if(S.shape&&S.data&&S.stride)return A(E,S)}throw new Error("gl-texture2d: Invalid arguments for texture2d constructor")}},1433(n){"use strict";function a(o,s,l){s?s.bind():o.bindBuffer(o.ELEMENT_ARRAY_BUFFER,null);var u=o.getParameter(o.MAX_VERTEX_ATTRIBS)|0;if(l){if(l.length>u)throw new Error("gl-vao: Too many vertex attributes");for(var f=0;f1?0:Math.acos(v)}},9226(n){n.exports=a;function a(o,s){return o[0]=Math.ceil(s[0]),o[1]=Math.ceil(s[1]),o[2]=Math.ceil(s[2]),o}},3126(n){n.exports=a;function a(o){var s=new Float32Array(3);return s[0]=o[0],s[1]=o[1],s[2]=o[2],s}},3990(n){n.exports=a;function a(o,s){return o[0]=s[0],o[1]=s[1],o[2]=s[2],o}},1091(n){n.exports=a;function a(){var o=new Float32Array(3);return o[0]=0,o[1]=0,o[2]=0,o}},5911(n){n.exports=a;function a(o,s,l){var u=s[0],f=s[1],c=s[2],h=l[0],d=l[1],p=l[2];return o[0]=f*p-c*d,o[1]=c*h-u*p,o[2]=u*d-f*h,o}},5455(n,a,o){n.exports=o(7056)},7056(n){n.exports=a;function a(o,s){var l=s[0]-o[0],u=s[1]-o[1],f=s[2]-o[2];return Math.sqrt(l*l+u*u+f*f)}},4008(n,a,o){n.exports=o(6690)},6690(n){n.exports=a;function a(o,s,l){return o[0]=s[0]/l[0],o[1]=s[1]/l[1],o[2]=s[2]/l[2],o}},244(n){n.exports=a;function a(o,s){return o[0]*s[0]+o[1]*s[1]+o[2]*s[2]}},2613(n){n.exports=1e-6},9922(n,a,o){n.exports=l;var s=o(2613);function l(u,f){var c=u[0],h=u[1],d=u[2],p=f[0],v=f[1],y=f[2];return Math.abs(c-p)<=s*Math.max(1,Math.abs(c),Math.abs(p))&&Math.abs(h-v)<=s*Math.max(1,Math.abs(h),Math.abs(v))&&Math.abs(d-y)<=s*Math.max(1,Math.abs(d),Math.abs(y))}},9265(n){n.exports=a;function a(o,s){return o[0]===s[0]&&o[1]===s[1]&&o[2]===s[2]}},2681(n){n.exports=a;function a(o,s){return o[0]=Math.floor(s[0]),o[1]=Math.floor(s[1]),o[2]=Math.floor(s[2]),o}},5137(n,a,o){n.exports=l;var s=o(1091)();function l(u,f,c,h,d,p){var v,y;for(f||(f=3),c||(c=0),h?y=Math.min(h*f+c,u.length):y=u.length,v=c;v0&&(c=1/Math.sqrt(c),o[0]=s[0]*c,o[1]=s[1]*c,o[2]=s[2]*c),o}},7636(n){n.exports=a;function a(o,s){s=s||1;var l=Math.random()*2*Math.PI,u=Math.random()*2-1,f=Math.sqrt(1-u*u)*s;return o[0]=Math.cos(l)*f,o[1]=Math.sin(l)*f,o[2]=u*s,o}},6894(n){n.exports=a;function a(o,s,l,u){var f=l[1],c=l[2],h=s[1]-f,d=s[2]-c,p=Math.sin(u),v=Math.cos(u);return o[0]=s[0],o[1]=f+h*v-d*p,o[2]=c+h*p+d*v,o}},109(n){n.exports=a;function a(o,s,l,u){var f=l[0],c=l[2],h=s[0]-f,d=s[2]-c,p=Math.sin(u),v=Math.cos(u);return o[0]=f+d*p+h*v,o[1]=s[1],o[2]=c+d*v-h*p,o}},8692(n){n.exports=a;function a(o,s,l,u){var f=l[0],c=l[1],h=s[0]-f,d=s[1]-c,p=Math.sin(u),v=Math.cos(u);return o[0]=f+h*v-d*p,o[1]=c+h*p+d*v,o[2]=s[2],o}},2447(n){n.exports=a;function a(o,s){return o[0]=Math.round(s[0]),o[1]=Math.round(s[1]),o[2]=Math.round(s[2]),o}},6621(n){n.exports=a;function a(o,s,l){return o[0]=s[0]*l,o[1]=s[1]*l,o[2]=s[2]*l,o}},8489(n){n.exports=a;function a(o,s,l,u){return o[0]=s[0]+l[0]*u,o[1]=s[1]+l[1]*u,o[2]=s[2]+l[2]*u,o}},1463(n){n.exports=a;function a(o,s,l,u){return o[0]=s,o[1]=l,o[2]=u,o}},6141(n,a,o){n.exports=o(2953)},5486(n,a,o){n.exports=o(3066)},2953(n){n.exports=a;function a(o,s){var l=s[0]-o[0],u=s[1]-o[1],f=s[2]-o[2];return l*l+u*u+f*f}},3066(n){n.exports=a;function a(o){var s=o[0],l=o[1],u=o[2];return s*s+l*l+u*u}},2229(n,a,o){n.exports=o(6843)},6843(n){n.exports=a;function a(o,s,l){return o[0]=s[0]-l[0],o[1]=s[1]-l[1],o[2]=s[2]-l[2],o}},492(n){n.exports=a;function a(o,s,l){var u=s[0],f=s[1],c=s[2];return o[0]=u*l[0]+f*l[3]+c*l[6],o[1]=u*l[1]+f*l[4]+c*l[7],o[2]=u*l[2]+f*l[5]+c*l[8],o}},5673(n){n.exports=a;function a(o,s,l){var u=s[0],f=s[1],c=s[2],h=l[3]*u+l[7]*f+l[11]*c+l[15];return h=h||1,o[0]=(l[0]*u+l[4]*f+l[8]*c+l[12])/h,o[1]=(l[1]*u+l[5]*f+l[9]*c+l[13])/h,o[2]=(l[2]*u+l[6]*f+l[10]*c+l[14])/h,o}},264(n){n.exports=a;function a(o,s,l){var u=s[0],f=s[1],c=s[2],h=l[0],d=l[1],p=l[2],v=l[3],y=d*c-p*f,m=p*u-h*c,w=h*f-d*u;return y*=2,m*=2,w*=2,o[0]=u+v*y+d*w-p*m,o[1]=f+v*m+p*y-h*w,o[2]=c+v*w+h*m-d*y,o}},4361(n){n.exports=a;function a(o,s,l){return o[0]=s[0]+l[0],o[1]=s[1]+l[1],o[2]=s[2]+l[2],o[3]=s[3]+l[3],o}},2335(n){n.exports=a;function a(o){var s=new Float32Array(4);return s[0]=o[0],s[1]=o[1],s[2]=o[2],s[3]=o[3],s}},2933(n){n.exports=a;function a(o,s){return o[0]=s[0],o[1]=s[1],o[2]=s[2],o[3]=s[3],o}},7536(n){n.exports=a;function a(){var o=new Float32Array(4);return o[0]=0,o[1]=0,o[2]=0,o[3]=0,o}},4691(n){n.exports=a;function a(o,s){var l=s[0]-o[0],u=s[1]-o[1],f=s[2]-o[2],c=s[3]-o[3];return Math.sqrt(l*l+u*u+f*f+c*c)}},1373(n){n.exports=a;function a(o,s,l){return o[0]=s[0]/l[0],o[1]=s[1]/l[1],o[2]=s[2]/l[2],o[3]=s[3]/l[3],o}},3750(n){n.exports=a;function a(o,s){return o[0]*s[0]+o[1]*s[1]+o[2]*s[2]+o[3]*s[3]}},3390(n){n.exports=a;function a(o,s,l,u){var f=new Float32Array(4);return f[0]=o,f[1]=s,f[2]=l,f[3]=u,f}},9970(n,a,o){n.exports={create:o(7536),clone:o(2335),fromValues:o(3390),copy:o(2933),set:o(4578),add:o(4361),subtract:o(6860),multiply:o(3576),divide:o(1373),min:o(2334),max:o(160),scale:o(9288),scaleAndAdd:o(4844),distance:o(4691),squaredDistance:o(7960),length:o(6808),squaredLength:o(483),negate:o(1498),inverse:o(4494),normalize:o(5177),dot:o(3750),lerp:o(2573),random:o(9131),transformMat4:o(5352),transformQuat:o(4041)}},4494(n){n.exports=a;function a(o,s){return o[0]=1/s[0],o[1]=1/s[1],o[2]=1/s[2],o[3]=1/s[3],o}},6808(n){n.exports=a;function a(o){var s=o[0],l=o[1],u=o[2],f=o[3];return Math.sqrt(s*s+l*l+u*u+f*f)}},2573(n){n.exports=a;function a(o,s,l,u){var f=s[0],c=s[1],h=s[2],d=s[3];return o[0]=f+u*(l[0]-f),o[1]=c+u*(l[1]-c),o[2]=h+u*(l[2]-h),o[3]=d+u*(l[3]-d),o}},160(n){n.exports=a;function a(o,s,l){return o[0]=Math.max(s[0],l[0]),o[1]=Math.max(s[1],l[1]),o[2]=Math.max(s[2],l[2]),o[3]=Math.max(s[3],l[3]),o}},2334(n){n.exports=a;function a(o,s,l){return o[0]=Math.min(s[0],l[0]),o[1]=Math.min(s[1],l[1]),o[2]=Math.min(s[2],l[2]),o[3]=Math.min(s[3],l[3]),o}},3576(n){n.exports=a;function a(o,s,l){return o[0]=s[0]*l[0],o[1]=s[1]*l[1],o[2]=s[2]*l[2],o[3]=s[3]*l[3],o}},1498(n){n.exports=a;function a(o,s){return o[0]=-s[0],o[1]=-s[1],o[2]=-s[2],o[3]=-s[3],o}},5177(n){n.exports=a;function a(o,s){var l=s[0],u=s[1],f=s[2],c=s[3],h=l*l+u*u+f*f+c*c;return h>0&&(h=1/Math.sqrt(h),o[0]=l*h,o[1]=u*h,o[2]=f*h,o[3]=c*h),o}},9131(n,a,o){var s=o(5177),l=o(9288);n.exports=u;function u(f,c){return c=c||1,f[0]=Math.random(),f[1]=Math.random(),f[2]=Math.random(),f[3]=Math.random(),s(f,f),l(f,f,c),f}},9288(n){n.exports=a;function a(o,s,l){return o[0]=s[0]*l,o[1]=s[1]*l,o[2]=s[2]*l,o[3]=s[3]*l,o}},4844(n){n.exports=a;function a(o,s,l,u){return o[0]=s[0]+l[0]*u,o[1]=s[1]+l[1]*u,o[2]=s[2]+l[2]*u,o[3]=s[3]+l[3]*u,o}},4578(n){n.exports=a;function a(o,s,l,u,f){return o[0]=s,o[1]=l,o[2]=u,o[3]=f,o}},7960(n){n.exports=a;function a(o,s){var l=s[0]-o[0],u=s[1]-o[1],f=s[2]-o[2],c=s[3]-o[3];return l*l+u*u+f*f+c*c}},483(n){n.exports=a;function a(o){var s=o[0],l=o[1],u=o[2],f=o[3];return s*s+l*l+u*u+f*f}},6860(n){n.exports=a;function a(o,s,l){return o[0]=s[0]-l[0],o[1]=s[1]-l[1],o[2]=s[2]-l[2],o[3]=s[3]-l[3],o}},5352(n){n.exports=a;function a(o,s,l){var u=s[0],f=s[1],c=s[2],h=s[3];return o[0]=l[0]*u+l[4]*f+l[8]*c+l[12]*h,o[1]=l[1]*u+l[5]*f+l[9]*c+l[13]*h,o[2]=l[2]*u+l[6]*f+l[10]*c+l[14]*h,o[3]=l[3]*u+l[7]*f+l[11]*c+l[15]*h,o}},4041(n){n.exports=a;function a(o,s,l){var u=s[0],f=s[1],c=s[2],h=l[0],d=l[1],p=l[2],v=l[3],y=v*u+d*c-p*f,m=v*f+p*u-h*c,w=v*c+h*f-d*u,_=-h*u-d*f-p*c;return o[0]=y*v+_*-h+m*-p-w*-d,o[1]=m*v+_*-d+w*-h-y*-p,o[2]=w*v+_*-p+y*-d-m*-h,o[3]=s[3],o}},1848(n,a,o){var s=o(4905),l=o(6468);n.exports=u;function u(f){for(var c=Array.isArray(f)?f:s(f),h=0;h0)continue;xe=V.slice(0,1).join("")}return ie(xe),Z+=xe.length,L=L.slice(xe.length),L.length}while(!0)}function oe(){return/[^a-fA-F0-9]/.test(P)?(ie(L.join("")),F=h,k):(L.push(P),I=P,k+1)}function Y(){return P==="."||/[eE]/.test(P)?(L.push(P),F=_,I=P,k+1):P==="x"&&L.length===1&&L[0]==="0"?(F=g,L.push(P),I=P,k+1):/[^\d]/.test(P)?(ie(L.join("")),F=h,k):(L.push(P),I=P,k+1)}function ne(){return P==="f"&&(L.push(P),I=P,k+=1),/[eE]/.test(P)||(P==="-"||P==="+")&&/[eE]/.test(I)?(L.push(P),I=P,k+1):/[^\d]/.test(P)?(ie(L.join("")),F=h,k):(L.push(P),I=P,k+1)}function ye(){if(/[^\d\w_]/.test(P)){var V=L.join("");return $[V]?F=x:j[V]?F=M:F=b,ie(L.join("")),F=h,k}return L.push(P),I=P,k+1}}},3508(n,a,o){var s=o(6852);s=s.slice().filter(function(l){return!/^(gl\_|texture)/.test(l)}),n.exports=s.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"])},6852(n){n.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"]},7932(n,a,o){var s=o(620);n.exports=s.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"])},620(n){n.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"]},7827(n){n.exports=["<<=",">>=","++","--","<<",">>","<=",">=","==","!=","&&","||","+=","-=","*=","/=","%=","&=","^^","^=","|=","(",")","[","]",".","!","~","*","/","%","+","-","<",">","&","^","|","?",":","=",",",";","{","}"]},4905(n,a,o){var s=o(5874);n.exports=l;function l(u,f){var c=s(f),h=[];return h=h.concat(c(u)),h=h.concat(c(null)),h}},3236(n){n.exports=function(a){typeof a=="string"&&(a=[a]);for(var o=[].slice.call(arguments,1),s=[],l=0;l>1,y=-7,m=l?f-1:0,w=l?-1:1,_=o[s+m];for(m+=w,c=_&(1<<-y)-1,_>>=-y,y+=d;y>0;c=c*256+o[s+m],m+=w,y-=8);for(h=c&(1<<-y)-1,c>>=-y,y+=u;y>0;h=h*256+o[s+m],m+=w,y-=8);if(c===0)c=1-v;else{if(c===p)return h?NaN:(_?-1:1)*(1/0);h=h+Math.pow(2,u),c=c-v}return(_?-1:1)*h*Math.pow(2,c-u)},a.write=function(o,s,l,u,f,c){var h,d,p,v=c*8-f-1,y=(1<>1,w=f===23?Math.pow(2,-24)-Math.pow(2,-77):0,_=u?0:c-1,b=u?1:-1,M=s<0||s===0&&1/s<0?1:0;for(s=Math.abs(s),isNaN(s)||s===1/0?(d=isNaN(s)?1:0,h=y):(h=Math.floor(Math.log(s)/Math.LN2),s*(p=Math.pow(2,-h))<1&&(h--,p*=2),h+m>=1?s+=w/p:s+=w*Math.pow(2,1-m),s*p>=2&&(h++,p/=2),h+m>=y?(d=0,h=y):h+m>=1?(d=(s*p-1)*Math.pow(2,f),h=h+m):(d=s*Math.pow(2,m-1)*Math.pow(2,f),h=0));f>=8;o[l+_]=d&255,_+=b,d/=256,f-=8);for(h=h<0;o[l+_]=h&255,_+=b,h/=256,v-=8);o[l+_-b]|=M*128}},8954(n,a,o){"use strict";n.exports=m;var s=o(3250),l=o(6803).Fw;function u(w,_,b){this.vertices=w,this.adjacent=_,this.boundary=b,this.lastVisited=-1}u.prototype.flip=function(){var w=this.vertices[0];this.vertices[0]=this.vertices[1],this.vertices[1]=w;var _=this.adjacent[0];this.adjacent[0]=this.adjacent[1],this.adjacent[1]=_};function f(w,_,b){this.vertices=w,this.cell=_,this.index=b}function c(w,_){return l(w.vertices,_.vertices)}function h(w){return function(){var _=this.tuple;return w.apply(this,_)}}function d(w){var _=s[w+1];return _||(_=s),h(_)}var p=[];function v(w,_,b){this.dimension=w,this.vertices=_,this.simplices=b,this.interior=b.filter(function(T){return!T.boundary}),this.tuple=new Array(w+1);for(var M=0;M<=w;++M)this.tuple[M]=this.vertices[M];var x=p[w];x||(x=p[w]=d(w)),this.orient=x}var y=v.prototype;y.handleBoundaryDegeneracy=function(w,_){var b=this.dimension,M=this.vertices.length-1,x=this.tuple,T=this.vertices,A=[w];for(w.lastVisited=-M;A.length>0;){w=A.pop();for(var g=w.adjacent,E=0;E<=b;++E){var S=g[E];if(!(!S.boundary||S.lastVisited<=-M)){for(var C=S.vertices,k=0;k<=b;++k){var D=C[k];D<0?x[k]=_:x[k]=T[D]}var F=this.orient();if(F>0)return S;S.lastVisited=-M,F===0&&A.push(S)}}}return null},y.walk=function(w,_){var b=this.vertices.length-1,M=this.dimension,x=this.vertices,T=this.tuple,A=_?this.interior.length*Math.random()|0:this.interior.length-1,g=this.interior[A];e:for(;!g.boundary;){for(var E=g.vertices,S=g.adjacent,C=0;C<=M;++C)T[C]=x[E[C]];g.lastVisited=b;for(var C=0;C<=M;++C){var k=S[C];if(!(k.lastVisited>=b)){var D=T[C];T[C]=w;var F=this.orient();if(T[C]=D,F<0){g=k;continue e}else k.boundary?k.lastVisited=-b:k.lastVisited=b}}return}return g},y.addPeaks=function(w,_){var b=this.vertices.length-1,M=this.dimension,x=this.vertices,T=this.tuple,A=this.interior,g=this.simplices,E=[_];_.lastVisited=b,_.vertices[_.vertices.indexOf(-1)]=b,_.boundary=!1,A.push(_);for(var S=[];E.length>0;){var _=E.pop(),C=_.vertices,k=_.adjacent,D=C.indexOf(b);if(!(D<0)){for(var F=0;F<=M;++F)if(F!==D){var P=k[F];if(!(!P.boundary||P.lastVisited>=b)){var I=P.vertices;if(P.lastVisited!==-b){for(var L=0,z=0;z<=M;++z)I[z]<0?(L=z,T[z]=w):T[z]=x[I[z]];var B=this.orient();if(B>0){I[L]=b,P.boundary=!1,A.push(P),E.push(P),P.lastVisited=b;continue}else P.lastVisited=-b}var O=P.adjacent,W=C.slice(),X=k.slice(),Z=new u(W,X,!0);g.push(Z);var H=O.indexOf(_);if(!(H<0)){O[H]=Z,X[D]=P,W[F]=-1,X[F]=_,k[F]=Z,Z.flip();for(var z=0;z<=M;++z){var q=W[z];if(!(q<0||q===b)){for(var Q=new Array(M-1),N=0,U=0;U<=M;++U){var J=W[U];J<0||U===z||(Q[N++]=J)}S.push(new f(Q,Z,z))}}}}}}}S.sort(c);for(var F=0;F+1=0?A[E++]=g[C]:S=C&1;if(S===(w&1)){var k=A[0];A[0]=A[1],A[1]=k}_.push(A)}}return _};function m(w,_){var b=w.length;if(b===0)throw new Error("Must have at least d+1 points");var M=w[0].length;if(b<=M)throw new Error("Must input at least d+1 points");var x=w.slice(0,M+1),T=s.apply(void 0,x);if(T===0)throw new Error("Input not in general position");for(var A=new Array(M+1),g=0;g<=M;++g)A[g]=g;T<0&&(A[0]=1,A[1]=0);for(var E=new u(A,new Array(M+1),!1),S=E.adjacent,C=new Array(M+2),g=0;g<=M;++g){for(var k=A.slice(),D=0;D<=M;++D)D===g&&(k[D]=-1);var F=k[0];k[0]=k[1],k[1]=F;var P=new u(k,new Array(M+1),!0);S[g]=P,C[g]=P}C[M+1]=E;for(var g=0;g<=M;++g)for(var k=S[g].vertices,I=S[g].adjacent,D=0;D<=M;++D){var L=k[D];if(L<0){I[D]=E;continue}for(var z=0;z<=M;++z)S[z].vertices.indexOf(L)<0&&(I[D]=S[z])}for(var B=new v(M,x,C),O=!!_,g=M+1;g3*(C+1)?v(this,S):this.left.insert(S):this.left=T([S]);else if(S[0]>this.mid)this.right?4*(this.right.count+1)>3*(C+1)?v(this,S):this.right.insert(S):this.right=T([S]);else{var k=s.ge(this.leftPoints,S,M),D=s.ge(this.rightPoints,S,x);this.leftPoints.splice(k,0,S),this.rightPoints.splice(D,0,S)}},h.remove=function(S){var C=this.count-this.leftPoints;if(S[1]3*(C-1))return y(this,S);var D=this.left.remove(S);return D===f?(this.left=null,this.count-=1,u):(D===u&&(this.count-=1),D)}else if(S[0]>this.mid){if(!this.right)return l;var F=this.left?this.left.count:0;if(4*F>3*(C-1))return y(this,S);var D=this.right.remove(S);return D===f?(this.right=null,this.count-=1,u):(D===u&&(this.count-=1),D)}else{if(this.count===1)return this.leftPoints[0]===S?f:l;if(this.leftPoints.length===1&&this.leftPoints[0]===S){if(this.left&&this.right){for(var P=this,I=this.left;I.right;)P=I,I=I.right;if(P===this)I.right=this.right;else{var L=this.left,D=this.right;P.count-=I.count,P.right=I.left,I.left=L,I.right=D}d(this,I),this.count=(this.left?this.left.count:0)+(this.right?this.right.count:0)+this.leftPoints.length}else this.left?d(this,this.left):d(this,this.right);return u}for(var L=s.ge(this.leftPoints,S,M);L=0&&S[D][1]>=C;--D){var F=k(S[D]);if(F)return F}}function _(S,C){for(var k=0;kthis.mid){if(this.right){var k=this.right.queryPoint(S,C);if(k)return k}return w(this.rightPoints,S,C)}else return _(this.leftPoints,C)},h.queryInterval=function(S,C,k){if(Sthis.mid&&this.right){var D=this.right.queryInterval(S,C,k);if(D)return D}return Cthis.mid?w(this.rightPoints,S,k):_(this.leftPoints,k)};function b(S,C){return S-C}function M(S,C){var k=S[0]-C[0];return k||S[1]-C[1]}function x(S,C){var k=S[1]-C[1];return k||S[0]-C[0]}function T(S){if(S.length===0)return null;for(var C=[],k=0;k>1],F=[],P=[],I=[],k=0;k1&&f.indexOf("Macintosh")!==-1&&f.indexOf("Safari")!==-1&&(c=!0),c}},5219(n){"use strict";n.exports=function(a){for(var o=a.length,s,l=0;l13)&&s!==32&&s!==133&&s!==160&&s!==5760&&s!==6158&&(s<8192||s>8205)&&s!==8232&&s!==8233&&s!==8239&&s!==8287&&s!==8288&&s!==12288&&s!==65279)return!1;return!0}},395(n){function a(o,s,l){return o*(1-l)+s*l}n.exports=a},2652(n,a,o){var s=o(4335),l=o(6864),u=o(1903),f=o(9921),c=o(7608),h=o(5665),d={length:o(1387),normalize:o(3536),dot:o(244),cross:o(5911)},p=l(),v=l(),y=[0,0,0,0],m=[[0,0,0],[0,0,0],[0,0,0]],w=[0,0,0];n.exports=function(T,A,g,E,S,C){if(A||(A=[0,0,0]),g||(g=[0,0,0]),E||(E=[0,0,0]),S||(S=[0,0,0,1]),C||(C=[0,0,0,1]),!s(p,T)||(u(v,p),v[3]=0,v[7]=0,v[11]=0,v[15]=1,Math.abs(f(v)<1e-8)))return!1;var k=p[3],D=p[7],F=p[11],P=p[12],I=p[13],L=p[14],z=p[15];if(k!==0||D!==0||F!==0){y[0]=k,y[1]=D,y[2]=F,y[3]=z;var B=c(v,v);if(!B)return!1;h(v,v),_(S,y,v)}else S[0]=S[1]=S[2]=0,S[3]=1;if(A[0]=P,A[1]=I,A[2]=L,b(m,p),g[0]=d.length(m[0]),d.normalize(m[0],m[0]),E[0]=d.dot(m[0],m[1]),M(m[1],m[1],m[0],1,-E[0]),g[1]=d.length(m[1]),d.normalize(m[1],m[1]),E[0]/=g[1],E[1]=d.dot(m[0],m[2]),M(m[2],m[2],m[0],1,-E[1]),E[2]=d.dot(m[1],m[2]),M(m[2],m[2],m[1],1,-E[2]),g[2]=d.length(m[2]),d.normalize(m[2],m[2]),E[1]/=g[2],E[2]/=g[2],d.cross(w,m[1],m[2]),d.dot(m[0],w)<0)for(var O=0;O<3;O++)g[O]*=-1,m[O][0]*=-1,m[O][1]*=-1,m[O][2]*=-1;return C[0]=.5*Math.sqrt(Math.max(1+m[0][0]-m[1][1]-m[2][2],0)),C[1]=.5*Math.sqrt(Math.max(1-m[0][0]+m[1][1]-m[2][2],0)),C[2]=.5*Math.sqrt(Math.max(1-m[0][0]-m[1][1]+m[2][2],0)),C[3]=.5*Math.sqrt(Math.max(1+m[0][0]+m[1][1]+m[2][2],0)),m[2][1]>m[1][2]&&(C[0]=-C[0]),m[0][2]>m[2][0]&&(C[1]=-C[1]),m[1][0]>m[0][1]&&(C[2]=-C[2]),!0};function _(x,T,A){var g=T[0],E=T[1],S=T[2],C=T[3];return x[0]=A[0]*g+A[4]*E+A[8]*S+A[12]*C,x[1]=A[1]*g+A[5]*E+A[9]*S+A[13]*C,x[2]=A[2]*g+A[6]*E+A[10]*S+A[14]*C,x[3]=A[3]*g+A[7]*E+A[11]*S+A[15]*C,x}function b(x,T){x[0][0]=T[0],x[0][1]=T[1],x[0][2]=T[2],x[1][0]=T[4],x[1][1]=T[5],x[1][2]=T[6],x[2][0]=T[8],x[2][1]=T[9],x[2][2]=T[10]}function M(x,T,A,g,E){x[0]=T[0]*g+A[0]*E,x[1]=T[1]*g+A[1]*E,x[2]=T[2]*g+A[2]*E}},4335(n){n.exports=function(o,s){var l=s[15];if(l===0)return!1;for(var u=1/l,f=0;f<16;f++)o[f]=s[f]*u;return!0}},7442(n,a,o){var s=o(6658),l=o(7182),u=o(2652),f=o(9921),c=o(8648),h=y(),d=y(),p=y();n.exports=v;function v(_,b,M,x){if(f(b)===0||f(M)===0)return!1;var T=u(b,h.translate,h.scale,h.skew,h.perspective,h.quaternion),A=u(M,d.translate,d.scale,d.skew,d.perspective,d.quaternion);return!T||!A?!1:(s(p.translate,h.translate,d.translate,x),s(p.skew,h.skew,d.skew,x),s(p.scale,h.scale,d.scale,x),s(p.perspective,h.perspective,d.perspective,x),c(p.quaternion,h.quaternion,d.quaternion,x),l(_,p.translate,p.scale,p.skew,p.perspective,p.quaternion),!0)}function y(){return{translate:m(),scale:m(1),skew:m(),perspective:w(),quaternion:w()}}function m(_){return[_||0,_||0,_||0]}function w(){return[0,0,0,1]}},7182(n,a,o){var s={identity:o(7894),translate:o(7656),multiply:o(6760),create:o(6864),scale:o(2504),fromRotationTranslation:o(6743)},l=s.create(),u=s.create();n.exports=function(c,h,d,p,v,y){return s.identity(c),s.fromRotationTranslation(c,y,h),c[3]=v[0],c[7]=v[1],c[11]=v[2],c[15]=v[3],s.identity(u),p[2]!==0&&(u[9]=p[2],s.multiply(c,c,u)),p[1]!==0&&(u[9]=0,u[8]=p[1],s.multiply(c,c,u)),p[0]!==0&&(u[8]=0,u[4]=p[0],s.multiply(c,c,u)),s.scale(c,c,d),c}},1811(n,a,o){"use strict";var s=o(2478),l=o(7442),u=o(7608),f=o(5567),c=o(2408),h=o(7089),d=o(6582),p=o(7656),v=o(2504),y=o(3536),m=[0,0,0];n.exports=M;function w(x){this._components=x.slice(),this._time=[0],this.prevMatrix=x.slice(),this.nextMatrix=x.slice(),this.computedMatrix=x.slice(),this.computedInverse=x.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 _=w.prototype;_.recalcMatrix=function(x){var T=this._time,A=s.le(T,x),g=this.computedMatrix;if(!(A<0)){var E=this._components;if(A===T.length-1)for(var S=16*A,C=0;C<16;++C)g[C]=E[S++];else{for(var k=T[A+1]-T[A],S=16*A,D=this.prevMatrix,F=!0,C=0;C<16;++C)D[C]=E[S++];for(var P=this.nextMatrix,C=0;C<16;++C)P[C]=E[S++],F=F&&D[C]===P[C];if(k<1e-6||F)for(var C=0;C<16;++C)g[C]=D[C];else l(g,D,P,(x-T[A])/k)}var I=this.computedUp;I[0]=g[1],I[1]=g[5],I[2]=g[9],y(I,I);var L=this.computedInverse;u(L,g);var z=this.computedEye,B=L[15];z[0]=L[12]/B,z[1]=L[13]/B,z[2]=L[14]/B;for(var O=this.computedCenter,W=Math.exp(this.computedRadius[0]),C=0;C<3;++C)O[C]=z[C]-g[2+4*C]*W}},_.idle=function(x){if(!(x1&&s(u[d[m-2]],u[d[m-1]],y)<=0;)m-=1,d.pop();for(d.push(v),m=p.length;m>1&&s(u[p[m-2]],u[p[m-1]],y)>=0;)m-=1,p.pop();p.push(v)}for(var w=new Array(p.length+d.length-2),_=0,c=0,b=d.length;c0;--M)w[_++]=p[M];return w}},351(n,a,o){"use strict";n.exports=l;var s=o(4687);function l(u,f){f||(f=u,u=window);var c=0,h=0,d=0,p={shift:!1,alt:!1,control:!1,meta:!1},v=!1;function y(S){var C=!1;return"altKey"in S&&(C=C||S.altKey!==p.alt,p.alt=!!S.altKey),"shiftKey"in S&&(C=C||S.shiftKey!==p.shift,p.shift=!!S.shiftKey),"ctrlKey"in S&&(C=C||S.ctrlKey!==p.control,p.control=!!S.ctrlKey),"metaKey"in S&&(C=C||S.metaKey!==p.meta,p.meta=!!S.metaKey),C}function m(S,C){var k=s.x(C),D=s.y(C);"buttons"in C&&(S=C.buttons|0),(S!==c||k!==h||D!==d||y(C))&&(c=S|0,h=k||0,d=D||0,f&&f(c,h,d,p))}function w(S){m(0,S)}function _(){(c||h||d||p.shift||p.alt||p.meta||p.control)&&(h=d=0,c=0,p.shift=p.alt=p.control=p.meta=!1,f&&f(0,0,0,p))}function b(S){y(S)&&f&&f(c,h,d,p)}function M(S){s.buttons(S)===0?m(0,S):m(c,S)}function x(S){m(c|s.buttons(S),S)}function T(S){m(c&~s.buttons(S),S)}function A(){v||(v=!0,u.addEventListener("mousemove",M),u.addEventListener("mousedown",x),u.addEventListener("mouseup",T),u.addEventListener("mouseleave",w),u.addEventListener("mouseenter",w),u.addEventListener("mouseout",w),u.addEventListener("mouseover",w),u.addEventListener("blur",_),u.addEventListener("keyup",b),u.addEventListener("keydown",b),u.addEventListener("keypress",b),u!==window&&(window.addEventListener("blur",_),window.addEventListener("keyup",b),window.addEventListener("keydown",b),window.addEventListener("keypress",b)))}function g(){v&&(v=!1,u.removeEventListener("mousemove",M),u.removeEventListener("mousedown",x),u.removeEventListener("mouseup",T),u.removeEventListener("mouseleave",w),u.removeEventListener("mouseenter",w),u.removeEventListener("mouseout",w),u.removeEventListener("mouseover",w),u.removeEventListener("blur",_),u.removeEventListener("keyup",b),u.removeEventListener("keydown",b),u.removeEventListener("keypress",b),u!==window&&(window.removeEventListener("blur",_),window.removeEventListener("keyup",b),window.removeEventListener("keydown",b),window.removeEventListener("keypress",b)))}A();var E={element:u};return Object.defineProperties(E,{enabled:{get:function(){return v},set:function(S){S?A():g()},enumerable:!0},buttons:{get:function(){return c},enumerable:!0},x:{get:function(){return h},enumerable:!0},y:{get:function(){return d},enumerable:!0},mods:{get:function(){return p},enumerable:!0}}),E}},24(n){var a={left:0,top:0};n.exports=o;function o(l,u,f){u=u||l.currentTarget||l.srcElement,Array.isArray(f)||(f=[0,0]);var c=l.clientX||0,h=l.clientY||0,d=s(u);return f[0]=c-d.left,f[1]=h-d.top,f}function s(l){return l===window||l===document||l===document.body?a:l.getBoundingClientRect()}},4687(n,a){"use strict";function o(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(X=1,q[N++]=p(A[C],_,b,M),C+=B,x>0)for(W=1,k=A[C],U=q[N]=p(k,_,b,M),$=q[N+J],de=q[N+ie],ke=q[N+me],(U!==$||U!==de||U!==ke)&&(F=A[C+D],I=A[C+P],z=A[C+L],h(W,X,k,F,I,z,U,$,de,ke,_,b,M),le=Q[N]=Z++),N+=1,C+=B,W=2;W0)for(W=1,k=A[C],U=q[N]=p(k,_,b,M),$=q[N+J],de=q[N+ie],ke=q[N+me],(U!==$||U!==de||U!==ke)&&(F=A[C+D],I=A[C+P],z=A[C+L],h(W,X,k,F,I,z,U,$,de,ke,_,b,M),le=Q[N]=Z++,ke!==de&&d(Q[N+ie],le,I,z,de,ke,_,b,M)),N+=1,C+=B,W=2;W0){if(W=1,q[N++]=p(A[C],_,b,M),C+=B,T>0)for(X=1,k=A[C],U=q[N]=p(k,_,b,M),de=q[N+ie],$=q[N+J],ke=q[N+me],(U!==de||U!==$||U!==ke)&&(F=A[C+D],I=A[C+P],z=A[C+L],h(W,X,k,F,I,z,U,de,$,ke,_,b,M),le=Q[N]=Z++),N+=1,C+=B,X=2;X0)for(X=1,k=A[C],U=q[N]=p(k,_,b,M),de=q[N+ie],$=q[N+J],ke=q[N+me],(U!==de||U!==$||U!==ke)&&(F=A[C+D],I=A[C+P],z=A[C+L],h(W,X,k,F,I,z,U,de,$,ke,_,b,M),le=Q[N]=Z++,ke!==de&&d(Q[N+ie],le,z,F,ke,de,_,b,M)),N+=1,C+=B,X=2;X 0"),typeof c.vertex!="function"&&h("Must specify vertex creation function"),typeof c.cell!="function"&&h("Must specify cell creation function"),typeof c.phase!="function"&&h("Must specify phase function");for(var y=c.getters||[],m=new Array(p),w=0;w=0?m[w]=!0:m[w]=!1;return u(c.vertex,c.cell,c.phase,v,d,m)}},6199(n,a,o){"use strict";var s=o(1338),l={zero:function(M,x,T,A){var g=M[0],E=T[0];A|=0;var S=0,C=E;for(S=0;S2&&S[1]>2&&A(E.pick(-1,-1).lo(1,1).hi(S[0]-2,S[1]-2),g.pick(-1,-1,0).lo(1,1).hi(S[0]-2,S[1]-2),g.pick(-1,-1,1).lo(1,1).hi(S[0]-2,S[1]-2)),S[1]>2&&(T(E.pick(0,-1).lo(1).hi(S[1]-2),g.pick(0,-1,1).lo(1).hi(S[1]-2)),x(g.pick(0,-1,0).lo(1).hi(S[1]-2))),S[1]>2&&(T(E.pick(S[0]-1,-1).lo(1).hi(S[1]-2),g.pick(S[0]-1,-1,1).lo(1).hi(S[1]-2)),x(g.pick(S[0]-1,-1,0).lo(1).hi(S[1]-2))),S[0]>2&&(T(E.pick(-1,0).lo(1).hi(S[0]-2),g.pick(-1,0,0).lo(1).hi(S[0]-2)),x(g.pick(-1,0,1).lo(1).hi(S[0]-2))),S[0]>2&&(T(E.pick(-1,S[1]-1).lo(1).hi(S[0]-2),g.pick(-1,S[1]-1,0).lo(1).hi(S[0]-2)),x(g.pick(-1,S[1]-1,1).lo(1).hi(S[0]-2))),g.set(0,0,0,0),g.set(0,0,1,0),g.set(S[0]-1,0,0,0),g.set(S[0]-1,0,1,0),g.set(0,S[1]-1,0,0),g.set(0,S[1]-1,1,0),g.set(S[0]-1,S[1]-1,0,0),g.set(S[0]-1,S[1]-1,1,0),g}}function b(M){var x=M.join(),S=p[x];if(S)return S;for(var T=M.length,A=[y,m],g=1;g<=T;++g)A.push(w(g));var E=_,S=E.apply(void 0,A);return p[x]=S,S}n.exports=function(x,T,A){if(Array.isArray(A)||(typeof A=="string"?A=s(T.dimension,A):A=s(T.dimension,"clamp")),T.size===0)return x;if(T.dimension===0)return x.set(0),x;var g=b(A);return g(x,T)}},4317(n){"use strict";function a(f,c){var h=Math.floor(c),d=c-h,p=0<=h&&h0;){I<64?(x=I,I=0):(x=64,I-=64);for(var L=p[1]|0;L>0;){L<64?(T=L,L=0):(T=64,L-=64),m=F+I*g+L*E,b=P+I*C+L*k;var z=0,B=0,O=0,W=S,X=g-A*S,Z=E-x*g,H=D,q=C-A*D,Q=k-x*C;for(O=0;O0;){k<64?(x=k,k=0):(x=64,k-=64);for(var D=p[0]|0;D>0;){D<64?(M=D,D=0):(M=64,D-=64),m=S+k*A+D*T,b=C+k*E+D*g;var F=0,P=0,I=A,L=T-x*A,z=E,B=g-x*E;for(P=0;P0;){P<64?(T=P,P=0):(T=64,P-=64);for(var I=p[0]|0;I>0;){I<64?(M=I,I=0):(M=64,I-=64);for(var L=p[1]|0;L>0;){L<64?(x=L,L=0):(x=64,L-=64),m=D+P*E+I*A+L*g,b=F+P*k+I*S+L*C;var z=0,B=0,O=0,W=E,X=A-T*E,Z=g-M*A,H=k,q=S-T*k,Q=C-M*S;for(O=0;Ow;){z=0,B=F-x;t:for(I=0;IW)break t;B+=S,z+=C}for(z=F,B=F-x,I=0;I>1,L=I-D,z=I+D,B=F,O=L,W=I,X=z,Z=P,H=_+1,q=b-1,Q=!0,N,U,J,j,$,ie,re,de,me,ze=0,ke=0,le=0,te,Ee,we,oe,Y,ne,ye,V,ue,_e,xe,Ae,se,pe,fe,Re,We=E,Ke=y(We),tt=y(We);Ee=T*B,we=T*O,Re=x;e:for(te=0;te0){U=B,B=O,O=U;break e}if(le<0)break e;Re+=C}Ee=T*X,we=T*Z,Re=x;e:for(te=0;te0){U=X,X=Z,Z=U;break e}if(le<0)break e;Re+=C}Ee=T*B,we=T*W,Re=x;e:for(te=0;te0){U=B,B=W,W=U;break e}if(le<0)break e;Re+=C}Ee=T*O,we=T*W,Re=x;e:for(te=0;te0){U=O,O=W,W=U;break e}if(le<0)break e;Re+=C}Ee=T*B,we=T*X,Re=x;e:for(te=0;te0){U=B,B=X,X=U;break e}if(le<0)break e;Re+=C}Ee=T*W,we=T*X,Re=x;e:for(te=0;te0){U=W,W=X,X=U;break e}if(le<0)break e;Re+=C}Ee=T*O,we=T*Z,Re=x;e:for(te=0;te0){U=O,O=Z,Z=U;break e}if(le<0)break e;Re+=C}Ee=T*O,we=T*W,Re=x;e:for(te=0;te0){U=O,O=W,W=U;break e}if(le<0)break e;Re+=C}Ee=T*X,we=T*Z,Re=x;e:for(te=0;te0){U=X,X=Z,Z=U;break e}if(le<0)break e;Re+=C}for(Ee=T*B,we=T*O,oe=T*W,Y=T*X,ne=T*Z,ye=T*F,V=T*I,ue=T*P,fe=0,Re=x,te=0;te0)q--;else if(le<0){for(Ee=T*ie,we=T*H,oe=T*q,Re=x,te=0;te0)for(;;){re=x+q*T,fe=0;e:for(te=0;te0){if(--qP){e:for(;;){for(re=x+H*T,fe=0,Re=x,te=0;te1&&w?b(m,w[0],w[1]):b(m)}var d={"uint32,1,0":function(v,y){return function(m){var w=m.data,_=m.offset|0,b=m.shape,M=m.stride,x=M[0]|0,T=b[0]|0,A=M[1]|0,g=b[1]|0,E=A,S=A,C=1;T<=32?v(0,T-1,w,_,x,A,T,g,E,S,C):y(0,T-1,w,_,x,A,T,g,E,S,C)}}};function p(v,y){var m=[y,v].join(","),w=d[m],_=f(v,y),b=h(v,y,_);return w(_,b)}n.exports=p},446(n,a,o){"use strict";var s=o(7640),l={};function u(f){var c=f.order,h=f.dtype,d=[c,h],p=d.join(":"),v=l[p];return v||(l[p]=v=s(c,h)),v(f),f}n.exports=u},9618(n,a,o){var s=o(7163),l=typeof Float64Array!="undefined";function u(y,m){return y[0]-m[0]}function f(){var y=this.stride,m=new Array(y.length),w;for(w=0;w=0&&(A=x|0,T+=E*A,g-=A),new _(this.data,g,E,T)},b.step=function(x){var T=this.shape[0],A=this.stride[0],g=this.offset,E=0,S=Math.ceil;return typeof x=="number"&&(E=x|0,E<0?(g+=A*(T-1),T=S(-T/E)):T=S(T/E),A*=E),new _(this.data,T,A,g)},b.transpose=function(x){x=x===void 0?0:x|0;var T=this.shape,A=this.stride;return new _(this.data,T[x],A[x],this.offset)},b.pick=function(x){var T=[],A=[],g=this.offset;typeof x=="number"&&x>=0?g=g+this.stride[0]*x|0:(T.push(this.shape[0]),A.push(this.stride[0]));var E=m[T.length+1];return E(this.data,T,A,g)},function(x,T,A,g){return new _(x,T[0],A[0],g)}},2:function(y,m,w){function _(M,x,T,A,g,E){this.data=M,this.shape=[x,T],this.stride=[A,g],this.offset=E|0}var b=_.prototype;return b.dtype=y,b.dimension=2,Object.defineProperty(b,"size",{get:function(){return this.shape[0]*this.shape[1]}}),Object.defineProperty(b,"order",{get:function(){return Math.abs(this.stride[0])>Math.abs(this.stride[1])?[1,0]:[0,1]}}),b.set=function(x,T,A){return y==="generic"?this.data.set(this.offset+this.stride[0]*x+this.stride[1]*T,A):this.data[this.offset+this.stride[0]*x+this.stride[1]*T]=A},b.get=function(x,T){return y==="generic"?this.data.get(this.offset+this.stride[0]*x+this.stride[1]*T):this.data[this.offset+this.stride[0]*x+this.stride[1]*T]},b.index=function(x,T){return this.offset+this.stride[0]*x+this.stride[1]*T},b.hi=function(x,T){return new _(this.data,typeof x!="number"||x<0?this.shape[0]:x|0,typeof T!="number"||T<0?this.shape[1]:T|0,this.stride[0],this.stride[1],this.offset)},b.lo=function(x,T){var A=this.offset,g=0,E=this.shape[0],S=this.shape[1],C=this.stride[0],k=this.stride[1];return typeof x=="number"&&x>=0&&(g=x|0,A+=C*g,E-=g),typeof T=="number"&&T>=0&&(g=T|0,A+=k*g,S-=g),new _(this.data,E,S,C,k,A)},b.step=function(x,T){var A=this.shape[0],g=this.shape[1],E=this.stride[0],S=this.stride[1],C=this.offset,k=0,D=Math.ceil;return typeof x=="number"&&(k=x|0,k<0?(C+=E*(A-1),A=D(-A/k)):A=D(A/k),E*=k),typeof T=="number"&&(k=T|0,k<0?(C+=S*(g-1),g=D(-g/k)):g=D(g/k),S*=k),new _(this.data,A,g,E,S,C)},b.transpose=function(x,T){x=x===void 0?0:x|0,T=T===void 0?1:T|0;var A=this.shape,g=this.stride;return new _(this.data,A[x],A[T],g[x],g[T],this.offset)},b.pick=function(x,T){var A=[],g=[],E=this.offset;typeof x=="number"&&x>=0?E=E+this.stride[0]*x|0:(A.push(this.shape[0]),g.push(this.stride[0])),typeof T=="number"&&T>=0?E=E+this.stride[1]*T|0:(A.push(this.shape[1]),g.push(this.stride[1]));var S=m[A.length+1];return S(this.data,A,g,E)},function(x,T,A,g){return new _(x,T[0],T[1],A[0],A[1],g)}},3:function(y,m,w){function _(M,x,T,A,g,E,S,C){this.data=M,this.shape=[x,T,A],this.stride=[g,E,S],this.offset=C|0}var b=_.prototype;return b.dtype=y,b.dimension=3,Object.defineProperty(b,"size",{get:function(){return this.shape[0]*this.shape[1]*this.shape[2]}}),Object.defineProperty(b,"order",{get:function(){var x=Math.abs(this.stride[0]),T=Math.abs(this.stride[1]),A=Math.abs(this.stride[2]);return x>T?T>A?[2,1,0]:x>A?[1,2,0]:[1,0,2]:x>A?[2,0,1]:A>T?[0,1,2]:[0,2,1]}}),b.set=function(x,T,A,g){return y==="generic"?this.data.set(this.offset+this.stride[0]*x+this.stride[1]*T+this.stride[2]*A,g):this.data[this.offset+this.stride[0]*x+this.stride[1]*T+this.stride[2]*A]=g},b.get=function(x,T,A){return y==="generic"?this.data.get(this.offset+this.stride[0]*x+this.stride[1]*T+this.stride[2]*A):this.data[this.offset+this.stride[0]*x+this.stride[1]*T+this.stride[2]*A]},b.index=function(x,T,A){return this.offset+this.stride[0]*x+this.stride[1]*T+this.stride[2]*A},b.hi=function(x,T,A){return new _(this.data,typeof x!="number"||x<0?this.shape[0]:x|0,typeof T!="number"||T<0?this.shape[1]:T|0,typeof A!="number"||A<0?this.shape[2]:A|0,this.stride[0],this.stride[1],this.stride[2],this.offset)},b.lo=function(x,T,A){var g=this.offset,E=0,S=this.shape[0],C=this.shape[1],k=this.shape[2],D=this.stride[0],F=this.stride[1],P=this.stride[2];return typeof x=="number"&&x>=0&&(E=x|0,g+=D*E,S-=E),typeof T=="number"&&T>=0&&(E=T|0,g+=F*E,C-=E),typeof A=="number"&&A>=0&&(E=A|0,g+=P*E,k-=E),new _(this.data,S,C,k,D,F,P,g)},b.step=function(x,T,A){var g=this.shape[0],E=this.shape[1],S=this.shape[2],C=this.stride[0],k=this.stride[1],D=this.stride[2],F=this.offset,P=0,I=Math.ceil;return typeof x=="number"&&(P=x|0,P<0?(F+=C*(g-1),g=I(-g/P)):g=I(g/P),C*=P),typeof T=="number"&&(P=T|0,P<0?(F+=k*(E-1),E=I(-E/P)):E=I(E/P),k*=P),typeof A=="number"&&(P=A|0,P<0?(F+=D*(S-1),S=I(-S/P)):S=I(S/P),D*=P),new _(this.data,g,E,S,C,k,D,F)},b.transpose=function(x,T,A){x=x===void 0?0:x|0,T=T===void 0?1:T|0,A=A===void 0?2:A|0;var g=this.shape,E=this.stride;return new _(this.data,g[x],g[T],g[A],E[x],E[T],E[A],this.offset)},b.pick=function(x,T,A){var g=[],E=[],S=this.offset;typeof x=="number"&&x>=0?S=S+this.stride[0]*x|0:(g.push(this.shape[0]),E.push(this.stride[0])),typeof T=="number"&&T>=0?S=S+this.stride[1]*T|0:(g.push(this.shape[1]),E.push(this.stride[1])),typeof A=="number"&&A>=0?S=S+this.stride[2]*A|0:(g.push(this.shape[2]),E.push(this.stride[2]));var C=m[g.length+1];return C(this.data,g,E,S)},function(x,T,A,g){return new _(x,T[0],T[1],T[2],A[0],A[1],A[2],g)}},4:function(y,m,w){function _(M,x,T,A,g,E,S,C,k,D){this.data=M,this.shape=[x,T,A,g],this.stride=[E,S,C,k],this.offset=D|0}var b=_.prototype;return b.dtype=y,b.dimension=4,Object.defineProperty(b,"size",{get:function(){return this.shape[0]*this.shape[1]*this.shape[2]*this.shape[3]}}),Object.defineProperty(b,"order",{get:w}),b.set=function(x,T,A,g,E){return y==="generic"?this.data.set(this.offset+this.stride[0]*x+this.stride[1]*T+this.stride[2]*A+this.stride[3]*g,E):this.data[this.offset+this.stride[0]*x+this.stride[1]*T+this.stride[2]*A+this.stride[3]*g]=E},b.get=function(x,T,A,g){return y==="generic"?this.data.get(this.offset+this.stride[0]*x+this.stride[1]*T+this.stride[2]*A+this.stride[3]*g):this.data[this.offset+this.stride[0]*x+this.stride[1]*T+this.stride[2]*A+this.stride[3]*g]},b.index=function(x,T,A,g){return this.offset+this.stride[0]*x+this.stride[1]*T+this.stride[2]*A+this.stride[3]*g},b.hi=function(x,T,A,g){return new _(this.data,typeof x!="number"||x<0?this.shape[0]:x|0,typeof T!="number"||T<0?this.shape[1]:T|0,typeof A!="number"||A<0?this.shape[2]:A|0,typeof g!="number"||g<0?this.shape[3]:g|0,this.stride[0],this.stride[1],this.stride[2],this.stride[3],this.offset)},b.lo=function(x,T,A,g){var E=this.offset,S=0,C=this.shape[0],k=this.shape[1],D=this.shape[2],F=this.shape[3],P=this.stride[0],I=this.stride[1],L=this.stride[2],z=this.stride[3];return typeof x=="number"&&x>=0&&(S=x|0,E+=P*S,C-=S),typeof T=="number"&&T>=0&&(S=T|0,E+=I*S,k-=S),typeof A=="number"&&A>=0&&(S=A|0,E+=L*S,D-=S),typeof g=="number"&&g>=0&&(S=g|0,E+=z*S,F-=S),new _(this.data,C,k,D,F,P,I,L,z,E)},b.step=function(x,T,A,g){var E=this.shape[0],S=this.shape[1],C=this.shape[2],k=this.shape[3],D=this.stride[0],F=this.stride[1],P=this.stride[2],I=this.stride[3],L=this.offset,z=0,B=Math.ceil;return typeof x=="number"&&(z=x|0,z<0?(L+=D*(E-1),E=B(-E/z)):E=B(E/z),D*=z),typeof T=="number"&&(z=T|0,z<0?(L+=F*(S-1),S=B(-S/z)):S=B(S/z),F*=z),typeof A=="number"&&(z=A|0,z<0?(L+=P*(C-1),C=B(-C/z)):C=B(C/z),P*=z),typeof g=="number"&&(z=g|0,z<0?(L+=I*(k-1),k=B(-k/z)):k=B(k/z),I*=z),new _(this.data,E,S,C,k,D,F,P,I,L)},b.transpose=function(x,T,A,g){x=x===void 0?0:x|0,T=T===void 0?1:T|0,A=A===void 0?2:A|0,g=g===void 0?3:g|0;var E=this.shape,S=this.stride;return new _(this.data,E[x],E[T],E[A],E[g],S[x],S[T],S[A],S[g],this.offset)},b.pick=function(x,T,A,g){var E=[],S=[],C=this.offset;typeof x=="number"&&x>=0?C=C+this.stride[0]*x|0:(E.push(this.shape[0]),S.push(this.stride[0])),typeof T=="number"&&T>=0?C=C+this.stride[1]*T|0:(E.push(this.shape[1]),S.push(this.stride[1])),typeof A=="number"&&A>=0?C=C+this.stride[2]*A|0:(E.push(this.shape[2]),S.push(this.stride[2])),typeof g=="number"&&g>=0?C=C+this.stride[3]*g|0:(E.push(this.shape[3]),S.push(this.stride[3]));var k=m[E.length+1];return k(this.data,E,S,C)},function(x,T,A,g){return new _(x,T[0],T[1],T[2],T[3],A[0],A[1],A[2],A[3],g)}},5:function(m,w,_){function b(x,T,A,g,E,S,C,k,D,F,P,I){this.data=x,this.shape=[T,A,g,E,S],this.stride=[C,k,D,F,P],this.offset=I|0}var M=b.prototype;return M.dtype=m,M.dimension=5,Object.defineProperty(M,"size",{get:function(){return this.shape[0]*this.shape[1]*this.shape[2]*this.shape[3]*this.shape[4]}}),Object.defineProperty(M,"order",{get:_}),M.set=function(T,A,g,E,S,C){return m==="generic"?this.data.set(this.offset+this.stride[0]*T+this.stride[1]*A+this.stride[2]*g+this.stride[3]*E+this.stride[4]*S,C):this.data[this.offset+this.stride[0]*T+this.stride[1]*A+this.stride[2]*g+this.stride[3]*E+this.stride[4]*S]=C},M.get=function(T,A,g,E,S){return m==="generic"?this.data.get(this.offset+this.stride[0]*T+this.stride[1]*A+this.stride[2]*g+this.stride[3]*E+this.stride[4]*S):this.data[this.offset+this.stride[0]*T+this.stride[1]*A+this.stride[2]*g+this.stride[3]*E+this.stride[4]*S]},M.index=function(T,A,g,E,S){return this.offset+this.stride[0]*T+this.stride[1]*A+this.stride[2]*g+this.stride[3]*E+this.stride[4]*S},M.hi=function(T,A,g,E,S){return new b(this.data,typeof T!="number"||T<0?this.shape[0]:T|0,typeof A!="number"||A<0?this.shape[1]:A|0,typeof g!="number"||g<0?this.shape[2]:g|0,typeof E!="number"||E<0?this.shape[3]:E|0,typeof S!="number"||S<0?this.shape[4]:S|0,this.stride[0],this.stride[1],this.stride[2],this.stride[3],this.stride[4],this.offset)},M.lo=function(T,A,g,E,S){var C=this.offset,k=0,D=this.shape[0],F=this.shape[1],P=this.shape[2],I=this.shape[3],L=this.shape[4],z=this.stride[0],B=this.stride[1],O=this.stride[2],W=this.stride[3],X=this.stride[4];return typeof T=="number"&&T>=0&&(k=T|0,C+=z*k,D-=k),typeof A=="number"&&A>=0&&(k=A|0,C+=B*k,F-=k),typeof g=="number"&&g>=0&&(k=g|0,C+=O*k,P-=k),typeof E=="number"&&E>=0&&(k=E|0,C+=W*k,I-=k),typeof S=="number"&&S>=0&&(k=S|0,C+=X*k,L-=k),new b(this.data,D,F,P,I,L,z,B,O,W,X,C)},M.step=function(T,A,g,E,S){var C=this.shape[0],k=this.shape[1],D=this.shape[2],F=this.shape[3],P=this.shape[4],I=this.stride[0],L=this.stride[1],z=this.stride[2],B=this.stride[3],O=this.stride[4],W=this.offset,X=0,Z=Math.ceil;return typeof T=="number"&&(X=T|0,X<0?(W+=I*(C-1),C=Z(-C/X)):C=Z(C/X),I*=X),typeof A=="number"&&(X=A|0,X<0?(W+=L*(k-1),k=Z(-k/X)):k=Z(k/X),L*=X),typeof g=="number"&&(X=g|0,X<0?(W+=z*(D-1),D=Z(-D/X)):D=Z(D/X),z*=X),typeof E=="number"&&(X=E|0,X<0?(W+=B*(F-1),F=Z(-F/X)):F=Z(F/X),B*=X),typeof S=="number"&&(X=S|0,X<0?(W+=O*(P-1),P=Z(-P/X)):P=Z(P/X),O*=X),new b(this.data,C,k,D,F,P,I,L,z,B,O,W)},M.transpose=function(T,A,g,E,S){T=T===void 0?0:T|0,A=A===void 0?1:A|0,g=g===void 0?2:g|0,E=E===void 0?3:E|0,S=S===void 0?4:S|0;var C=this.shape,k=this.stride;return new b(this.data,C[T],C[A],C[g],C[E],C[S],k[T],k[A],k[g],k[E],k[S],this.offset)},M.pick=function(T,A,g,E,S){var C=[],k=[],D=this.offset;typeof T=="number"&&T>=0?D=D+this.stride[0]*T|0:(C.push(this.shape[0]),k.push(this.stride[0])),typeof A=="number"&&A>=0?D=D+this.stride[1]*A|0:(C.push(this.shape[1]),k.push(this.stride[1])),typeof g=="number"&&g>=0?D=D+this.stride[2]*g|0:(C.push(this.shape[2]),k.push(this.stride[2])),typeof E=="number"&&E>=0?D=D+this.stride[3]*E|0:(C.push(this.shape[3]),k.push(this.stride[3])),typeof S=="number"&&S>=0?D=D+this.stride[4]*S|0:(C.push(this.shape[4]),k.push(this.stride[4]));var F=w[C.length+1];return F(this.data,C,k,D)},function(T,A,g,E){return new b(T,A[0],A[1],A[2],A[3],A[4],g[0],g[1],g[2],g[3],g[4],E)}}};function h(y,m){var w=m===-1?"T":String(m),_=c[w];return m===-1?_(y):m===0?_(y,p[y][0]):_(y,p[y],f)}function d(y){if(s(y))return"buffer";if(l)switch(Object.prototype.toString.call(y)){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(y)?"array":"generic"}var p={generic:[],buffer:[],array:[],float32:[],float64:[],int8:[],int16:[],int32:[],uint8_clamped:[],uint8:[],uint16:[],uint32:[],bigint64:[],biguint64:[]};function v(y,m,w,_){if(y===void 0){var g=p.array[0];return g([])}else typeof y=="number"&&(y=[y]);m===void 0&&(m=[y.length]);var b=m.length;if(w===void 0){w=new Array(b);for(var M=b-1,x=1;M>=0;--M)w[M]=x,x*=m[M]}if(_===void 0){_=0;for(var M=0;M>>0;n.exports=f;function f(c,h){if(isNaN(c)||isNaN(h))return NaN;if(c===h)return c;if(c===0)return h<0?-l:l;var d=s.hi(c),p=s.lo(c);return h>c==c>0?p===u?(d+=1,p=0):p+=1:p===0?(p=u,d-=1):p-=1,s.pack(p,d)}},8406(n,a){var o=1e-6,s=1e-6;a.vertexNormals=function(l,u,f){for(var c=u.length,h=new Array(c),d=f===void 0?o:f,p=0;pd)for(var C=h[m],k=1/Math.sqrt(A*E),S=0;S<3;++S){var D=(S+1)%3,F=(S+2)%3;C[S]+=k*(g[D]*T[F]-g[F]*T[D])}}for(var p=0;pd)for(var k=1/Math.sqrt(P),S=0;S<3;++S)C[S]*=k;else for(var S=0;S<3;++S)C[S]=0}return h},a.faceNormals=function(l,u,f){for(var c=l.length,h=new Array(c),d=f===void 0?s:f,p=0;pd?M=1/Math.sqrt(M):M=0;for(var m=0;m<3;++m)b[m]*=M;h[p]=b}return h}},4081(n){"use strict";n.exports=a;function a(o,s,l,u,f,c,h,d,p,v){var y=s+c+v;if(m>0){var m=Math.sqrt(y+1);o[0]=.5*(h-p)/m,o[1]=.5*(d-u)/m,o[2]=.5*(l-c)/m,o[3]=.5*m}else{var w=Math.max(s,c,v),m=Math.sqrt(2*w-y+1);s>=w?(o[0]=.5*m,o[1]=.5*(f+l)/m,o[2]=.5*(d+u)/m,o[3]=.5*(h-p)/m):c>=w?(o[0]=.5*(l+f)/m,o[1]=.5*m,o[2]=.5*(p+h)/m,o[3]=.5*(d-u)/m):(o[0]=.5*(u+d)/m,o[1]=.5*(h+p)/m,o[2]=.5*m,o[3]=.5*(l-f)/m)}return o}},9977(n,a,o){"use strict";n.exports=m;var s=o(9215),l=o(6582),u=o(7399),f=o(7608),c=o(4081);function h(w,_,b){return Math.sqrt(Math.pow(w,2)+Math.pow(_,2)+Math.pow(b,2))}function d(w,_,b,M){return Math.sqrt(Math.pow(w,2)+Math.pow(_,2)+Math.pow(b,2)+Math.pow(M,2))}function p(w,_){var b=_[0],M=_[1],x=_[2],T=_[3],A=d(b,M,x,T);A>1e-6?(w[0]=b/A,w[1]=M/A,w[2]=x/A,w[3]=T/A):(w[0]=w[1]=w[2]=0,w[3]=1)}function v(w,_,b){this.radius=s([b]),this.center=s(_),this.rotation=s(w),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 y=v.prototype;y.lastT=function(){return Math.max(this.radius.lastT(),this.center.lastT(),this.rotation.lastT())},y.recalcMatrix=function(w){this.radius.curve(w),this.center.curve(w),this.rotation.curve(w);var _=this.computedRotation;p(_,_);var b=this.computedMatrix;u(b,_);var M=this.computedCenter,x=this.computedEye,T=this.computedUp,A=Math.exp(this.computedRadius[0]);x[0]=M[0]+A*b[2],x[1]=M[1]+A*b[6],x[2]=M[2]+A*b[10],T[0]=b[1],T[1]=b[5],T[2]=b[9];for(var g=0;g<3;++g){for(var E=0,S=0;S<3;++S)E+=b[g+4*S]*x[S];b[12+g]=-E}},y.getMatrix=function(w,_){this.recalcMatrix(w);var b=this.computedMatrix;if(_){for(var M=0;M<16;++M)_[M]=b[M];return _}return b},y.idle=function(w){this.center.idle(w),this.radius.idle(w),this.rotation.idle(w)},y.flush=function(w){this.center.flush(w),this.radius.flush(w),this.rotation.flush(w)},y.pan=function(w,_,b,M){_=_||0,b=b||0,M=M||0,this.recalcMatrix(w);var x=this.computedMatrix,T=x[1],A=x[5],g=x[9],E=h(T,A,g);T/=E,A/=E,g/=E;var S=x[0],C=x[4],k=x[8],D=S*T+C*A+k*g;S-=T*D,C-=A*D,k-=g*D;var F=h(S,C,k);S/=F,C/=F,k/=F;var P=x[2],I=x[6],L=x[10],z=P*T+I*A+L*g,B=P*S+I*C+L*k;P-=z*T+B*S,I-=z*A+B*C,L-=z*g+B*k;var O=h(P,I,L);P/=O,I/=O,L/=O;var W=S*_+T*b,X=C*_+A*b,Z=k*_+g*b;this.center.move(w,W,X,Z);var H=Math.exp(this.computedRadius[0]);H=Math.max(1e-4,H+M),this.radius.set(w,Math.log(H))},y.rotate=function(w,_,b,M){this.recalcMatrix(w),_=_||0,b=b||0;var x=this.computedMatrix,T=x[0],A=x[4],g=x[8],E=x[1],S=x[5],C=x[9],k=x[2],D=x[6],F=x[10],P=_*T+b*E,I=_*A+b*S,L=_*g+b*C,z=-(D*L-F*I),B=-(F*P-k*L),O=-(k*I-D*P),W=Math.sqrt(Math.max(0,1-Math.pow(z,2)-Math.pow(B,2)-Math.pow(O,2))),X=d(z,B,O,W);X>1e-6?(z/=X,B/=X,O/=X,W/=X):(z=B=O=0,W=1);var Z=this.computedRotation,H=Z[0],q=Z[1],Q=Z[2],N=Z[3],U=H*W+N*z+q*O-Q*B,J=q*W+N*B+Q*z-H*O,j=Q*W+N*O+H*B-q*z,$=N*W-H*z-q*B-Q*O;if(M){z=k,B=D,O=F;var ie=Math.sin(M)/h(z,B,O);z*=ie,B*=ie,O*=ie,W=Math.cos(_),U=U*W+$*z+J*O-j*B,J=J*W+$*B+j*z-U*O,j=j*W+$*O+U*B-J*z,$=$*W-U*z-J*B-j*O}var re=d(U,J,j,$);re>1e-6?(U/=re,J/=re,j/=re,$/=re):(U=J=j=0,$=1),this.rotation.set(w,U,J,j,$)},y.lookAt=function(w,_,b,M){this.recalcMatrix(w),b=b||this.computedCenter,_=_||this.computedEye,M=M||this.computedUp;var x=this.computedMatrix;l(x,_,b,M);var T=this.computedRotation;c(T,x[0],x[1],x[2],x[4],x[5],x[6],x[8],x[9],x[10]),p(T,T),this.rotation.set(w,T[0],T[1],T[2],T[3]);for(var A=0,g=0;g<3;++g)A+=Math.pow(b[g]-_[g],2);this.radius.set(w,.5*Math.log(Math.max(A,1e-6))),this.center.set(w,b[0],b[1],b[2])},y.translate=function(w,_,b,M){this.center.move(w,_||0,b||0,M||0)},y.setMatrix=function(w,_){var b=this.computedRotation;c(b,_[0],_[1],_[2],_[4],_[5],_[6],_[8],_[9],_[10]),p(b,b),this.rotation.set(w,b[0],b[1],b[2],b[3]);var M=this.computedMatrix;f(M,_);var x=M[15];if(Math.abs(x)>1e-6){var T=M[12]/x,A=M[13]/x,g=M[14]/x;this.recalcMatrix(w);var E=Math.exp(this.computedRadius[0]);this.center.set(w,T-M[2]*E,A-M[6]*E,g-M[10]*E),this.radius.idle(w)}else this.center.idle(w),this.radius.idle(w)},y.setDistance=function(w,_){_>0&&this.radius.set(w,Math.log(_))},y.setDistanceLimits=function(w,_){w>0?w=Math.log(w):w=-1/0,_>0?_=Math.log(_):_=1/0,_=Math.max(_,w),this.radius.bounds[0][0]=w,this.radius.bounds[1][0]=_},y.getDistanceLimits=function(w){var _=this.radius.bounds;return w?(w[0]=Math.exp(_[0][0]),w[1]=Math.exp(_[1][0]),w):[Math.exp(_[0][0]),Math.exp(_[1][0])]},y.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]}},y.fromJSON=function(w){var _=this.lastT(),b=w.center;b&&this.center.set(_,b[0],b[1],b[2]);var M=w.rotation;M&&this.rotation.set(_,M[0],M[1],M[2],M[3]);var x=w.distance;x&&x>0&&this.radius.set(_,Math.log(x)),this.setDistanceLimits(w.zoomMin,w.zoomMax)};function m(w){w=w||{};var _=w.center||[0,0,0],b=w.rotation||[0,0,0,1],M=w.radius||1;_=[].slice.call(_,0,3),b=[].slice.call(b,0,4),p(b,b);var x=new v(b,_,Math.log(M));return x.setDistanceLimits(w.zoomMin,w.zoomMax),("eye"in w||"up"in w)&&x.lookAt(0,w.eye,w.center,w.up),x}},1371(n,a,o){"use strict";var s=o(3233);n.exports=function(u,f,c){return c=typeof c!="undefined"?c+"":" ",s(c,f)+u}},3202(n){n.exports=function(o,s){s||(s=[0,""]),o=String(o);var l=parseFloat(o,10);return s[0]=l,s[1]=o.match(/[\d.\-\+]*\s*(.*)/)[1]||"",s}},3088(n,a,o){"use strict";n.exports=l;var s=o(3140);function l(u,f){for(var c=f.length|0,h=u.length,d=[new Array(c),new Array(c)],p=0;p0){C=d[F][E][0],D=F;break}k=C[D^1];for(var P=0;P<2;++P)for(var I=d[P][E],L=0;L0&&(C=z,k=B,D=P)}return S||C&&m(C,D),k}function _(g,E){var S=d[E][g][0],C=[g];m(S,E);for(var k=S[E^1],D=E;;){for(;k!==g;)C.push(k),k=w(C[C.length-2],k,!1);if(d[0][g].length+d[1][g].length===0)break;var F=C[C.length-1],P=g,I=C[1],L=w(F,P,!0);if(s(f[F],f[P],f[I],f[L])<0)break;C.push(g),k=w(F,P)}return C}function b(g,E){return E[1]===E[E.length-1]}for(var p=0;p0;){var T=d[0][p].length,A=_(p,M);b(x,A)?x.push.apply(x,A):(x.length>0&&y.push(x),x=A)}x.length>0&&y.push(x)}return y}},5609(n,a,o){"use strict";n.exports=l;var s=o(3134);function l(u,f){for(var c=s(u,f.length),h=new Array(f.length),d=new Array(f.length),p=[],v=0;v0;){var m=p.pop();h[m]=!1;for(var w=c[m],v=0;v0}T=T.filter(A);for(var g=T.length,E=new Array(g),S=new Array(g),x=0;x0;){var re=j.pop(),de=X[re];h(de,function(te,Ee){return te-Ee});var me=de.length,ze=$[re],ke;if(ze===0){var I=T[re];ke=[I]}for(var x=0;x=0)&&($[le]=ze^1,j.push(le),ze===0)){var I=T[le];J(I)||(I.reverse(),ke.push(I))}}ze===0&&ie.push(ke)}return ie}},5085(n,a,o){n.exports=w;var s=o(3250)[3],l=o(4209),u=o(3352),f=o(2478);function c(){return!0}function h(_){return function(b,M){var x=_[b];return x?!!x.queryPoint(M,c):!1}}function d(_){for(var b={},M=0;M<_.length;++M){var x=_[M],T=x[0][0],A=x[0][1],g=x[1][1],E=[Math.min(A,g),Math.max(A,g)];T in b?b[T].push(E):b[T]=[E]}for(var S={},C=Object.keys(b),M=0;M0&&b[x]===M[0])T=_[x-1];else return 1;for(var A=1;T;){var g=T.key,E=s(M,g[0],g[1]);if(g[0][0]0)A=-1,T=T.right;else return 0;else if(E>0)T=T.left;else if(E<0)A=1,T=T.right;else return 0}return A}}function v(_){return 1}function y(_){return function(M){return _(M[0],M[1])?0:1}}function m(_,b){return function(x){return _(x[0],x[1])?0:b(x)}}function w(_){for(var b=_.length,M=[],x=[],T=0,A=0;A=v?(g=1,S=v+2*w+b):(g=-w/v,S=w*g+b)):(g=0,_>=0?(E=0,S=b):-_>=m?(E=1,S=m+2*_+b):(E=-_/m,S=_*E+b));else if(E<0)E=0,w>=0?(g=0,S=b):-w>=v?(g=1,S=v+2*w+b):(g=-w/v,S=w*g+b);else{var C=1/A;g*=C,E*=C,S=g*(v*g+y*E+2*w)+E*(y*g+m*E+2*_)+b}else{var k,D,F,P;g<0?(k=y+w,D=m+_,D>k?(F=D-k,P=v-2*y+m,F>=P?(g=1,E=0,S=v+2*w+b):(g=F/P,E=1-g,S=g*(v*g+y*E+2*w)+E*(y*g+m*E+2*_)+b)):(g=0,D<=0?(E=1,S=m+2*_+b):_>=0?(E=0,S=b):(E=-_/m,S=_*E+b))):E<0?(k=y+_,D=v+w,D>k?(F=D-k,P=v-2*y+m,F>=P?(E=1,g=0,S=m+2*_+b):(E=F/P,g=1-E,S=g*(v*g+y*E+2*w)+E*(y*g+m*E+2*_)+b)):(E=0,D<=0?(g=1,S=v+2*w+b):w>=0?(g=0,S=b):(g=-w/v,S=w*g+b))):(F=m+_-y-w,F<=0?(g=0,E=1,S=m+2*_+b):(P=v-2*y+m,F>=P?(g=1,E=0,S=v+2*w+b):(g=F/P,E=1-g,S=g*(v*g+y*E+2*w)+E*(y*g+m*E+2*_)+b)))}for(var I=1-g-E,p=0;p0){var m=c[d-1];if(s(v,m)===0&&u(m)!==y){d-=1;continue}}c[d++]=v}}return c.length=d,c}},3233(n){"use strict";var a="",o;n.exports=s;function s(l,u){if(typeof l!="string")throw new TypeError("expected a string");if(u===1)return l;if(u===2)return l+l;var f=l.length*u;if(o!==l||typeof o=="undefined")o=l,a="";else if(a.length>=f)return a.substr(0,f);for(;f>a.length&&u>1;)u&1&&(a+=l),u>>=1,l+=l;return a+=l,a=a.substr(0,f),a}},3025(n,a,o){n.exports=o.g.performance&&o.g.performance.now?function(){return performance.now()}:Date.now||function(){return+new Date}},7004(n){"use strict";n.exports=a;function a(o){for(var s=o.length,l=o[o.length-1],u=s,f=s-2;f>=0;--f){var c=l,h=o[f];l=c+h;var d=l-c,p=h-d;p&&(o[--u]=l,l=p)}for(var v=0,f=u;f0){if(D<=0)return F;P=k+D}else if(k<0){if(D>=0)return F;P=-(k+D)}else return F;var I=d*P;return F>=I||F<=-I?F:_(E,S,C)},function(E,S,C,k){var D=E[0]-k[0],F=S[0]-k[0],P=C[0]-k[0],I=E[1]-k[1],L=S[1]-k[1],z=C[1]-k[1],B=E[2]-k[2],O=S[2]-k[2],W=C[2]-k[2],X=F*z,Z=P*L,H=P*I,q=D*z,Q=D*L,N=F*I,U=B*(X-Z)+O*(H-q)+W*(Q-N),J=(Math.abs(X)+Math.abs(Z))*Math.abs(B)+(Math.abs(H)+Math.abs(q))*Math.abs(O)+(Math.abs(Q)+Math.abs(N))*Math.abs(W),j=p*J;return U>j||-U>j?U:b(E,S,C,k)}];function x(g){var E=M[g.length];return E||(E=M[g.length]=w(g.length)),E.apply(void 0,g)}function T(g,E,S,C,k,D,F){return function(I,L,z,B,O){switch(arguments.length){case 0:case 1:return 0;case 2:return C(I,L);case 3:return k(I,L,z);case 4:return D(I,L,z,B);case 5:return F(I,L,z,B,O)}for(var W=new Array(arguments.length),X=0;X0&&v>0||p<0&&v<0)return!1;var y=s(h,f,c),m=s(d,f,c);return y>0&&m>0||y<0&&m<0?!1:p===0&&v===0&&y===0&&m===0?l(f,c,h,d):!0}},8545(n){"use strict";n.exports=o;function a(s,l){var u=s+l,f=u-s,c=u-f,h=l-f,d=s-c,p=d+h;return p?[p,u]:[u]}function o(s,l){var u=s.length|0,f=l.length|0;if(u===1&&f===1)return a(s[0],-l[0]);var c=u+f,h=new Array(c),d=0,p=0,v=0,y=Math.abs,m=s[p],w=y(m),_=-l[v],b=y(_),M,x;w=f?(M=m,p+=1,p=f?(M=m,p+=1,p>1,_=c[2*w+1];if(_===v)return w;v<_?m=w:y=w+1}return y}function u(f,c,h,d){for(var p=f.length,v=[],y=0;y>1,_=c[2*w+1];if(_===v)return w;v<_?m=w:y=w+1}return y}function u(f,c,h,d){for(var p=f.length,v=[],y=0;y>1,_=c[2*w+1];if(_===v)return w;v<_?m=w:y=w+1}return y}function u(f,c,h,d){for(var p=f.length,v=[],y=0;y>1,_=c[2*w+1];if(_===v)return w;v<_?m=w:y=w+1}return y}function u(f,c,h,d){for(var p=f.length,v=[],y=0;y>1,P=d(E[F],S);P<=0?(P===0&&(D=F),C=F+1):P>0&&(k=F-1)}return D}s=m;function w(E,S){for(var C=new Array(E.length),k=0,D=C.length;k=E.length||d(E[X],F)!==0););}return C}s=w;function _(E,S){if(!S)return w(y(M(E,0)),E,0);for(var C=new Array(S),k=0;k>>z&1&&L.push(D[z]);S.push(L)}return v(S)}s=b;function M(E,S){if(S<0)return[];for(var C=[],k=(1<0)-(u<0)},a.abs=function(u){var f=u>>o-1;return(u^f)-f},a.min=function(u,f){return f^(u^f)&-(u65535)<<4,u>>>=f,c=(u>255)<<3,u>>>=c,f|=c,c=(u>15)<<2,u>>>=c,f|=c,c=(u>3)<<1,u>>>=c,f|=c,f|u>>1},a.log10=function(u){return u>=1e9?9:u>=1e8?8:u>=1e7?7:u>=1e6?6:u>=1e5?5:u>=1e4?4:u>=1e3?3:u>=100?2:u>=10?1:0},a.popCount=function(u){return u=u-(u>>>1&1431655765),u=(u&858993459)+(u>>>2&858993459),(u+(u>>>4)&252645135)*16843009>>>24};function s(u){var f=32;return u&=-u,u&&f--,u&65535&&(f-=16),u&16711935&&(f-=8),u&252645135&&(f-=4),u&858993459&&(f-=2),u&1431655765&&(f-=1),f}a.countTrailingZeros=s,a.nextPow2=function(u){return u+=u===0,--u,u|=u>>>1,u|=u>>>2,u|=u>>>4,u|=u>>>8,u|=u>>>16,u+1},a.prevPow2=function(u){return u|=u>>>1,u|=u>>>2,u|=u>>>4,u|=u>>>8,u|=u>>>16,u-(u>>>1)},a.parity=function(u){return u^=u>>>16,u^=u>>>8,u^=u>>>4,u&=15,27030>>>u&1};var l=new Array(256);(function(u){for(var f=0;f<256;++f){var c=f,h=f,d=7;for(c>>>=1;c;c>>>=1)h<<=1,h|=c&1,--d;u[f]=h<>>8&255]<<16|l[u>>>16&255]<<8|l[u>>>24&255]},a.interleave2=function(u,f){return u&=65535,u=(u|u<<8)&16711935,u=(u|u<<4)&252645135,u=(u|u<<2)&858993459,u=(u|u<<1)&1431655765,f&=65535,f=(f|f<<8)&16711935,f=(f|f<<4)&252645135,f=(f|f<<2)&858993459,f=(f|f<<1)&1431655765,u|f<<1},a.deinterleave2=function(u,f){return u=u>>>f&1431655765,u=(u|u>>>1)&858993459,u=(u|u>>>2)&252645135,u=(u|u>>>4)&16711935,u=(u|u>>>16)&65535,u<<16>>16},a.interleave3=function(u,f,c){return u&=1023,u=(u|u<<16)&4278190335,u=(u|u<<8)&251719695,u=(u|u<<4)&3272356035,u=(u|u<<2)&1227133513,f&=1023,f=(f|f<<16)&4278190335,f=(f|f<<8)&251719695,f=(f|f<<4)&3272356035,f=(f|f<<2)&1227133513,u|=f<<1,c&=1023,c=(c|c<<16)&4278190335,c=(c|c<<8)&251719695,c=(c|c<<4)&3272356035,c=(c|c<<2)&1227133513,u|c<<2},a.deinterleave3=function(u,f){return u=u>>>f&1227133513,u=(u|u>>>2)&3272356035,u=(u|u>>>4)&251719695,u=(u|u>>>8)&4278190335,u=(u|u>>>16)&1023,u<<22>>22},a.nextCombination=function(u){var f=u|u-1;return f+1|(~f&-~f)-1>>>s(u)+1}},2014(n,a,o){"use strict";"use restrict";var s=o(3105),l=o(4623);function u(g){for(var E=0,S=Math.max,C=0,k=g.length;C>1,F=h(g[D],E);F<=0?(F===0&&(k=D),S=D+1):F>0&&(C=D-1)}return k}a.findCell=y;function m(g,E){for(var S=new Array(g.length),C=0,k=S.length;C=g.length||h(g[W],D)!==0););}return S}a.incidence=m;function w(g,E){if(!E)return m(v(b(g,0)),g,0);for(var S=new Array(E),C=0;C>>L&1&&I.push(k[L]);E.push(I)}return p(E)}a.explode=_;function b(g,E){if(E<0)return[];for(var S=[],C=(1<>1:(q>>1)-1}function C(q){for(var Q=E(q);;){var N=Q,U=2*q+1,J=2*(q+1),j=q;if(U0;){var N=S(q);if(N>=0){var U=E(N);if(Q0){var q=I[0];return g(0,B-1),B-=1,C(0),q}return-1}function F(q,Q){var N=I[q];return w[N]===Q?q:(w[N]=-1/0,k(q),D(),w[N]=Q,B+=1,k(B-1))}function P(q){if(!_[q]){_[q]=!0;var Q=y[q],N=m[q];y[N]>=0&&(y[N]=Q),m[Q]>=0&&(m[Q]=N),L[Q]>=0&&F(L[Q],A(Q)),L[N]>=0&&F(L[N],A(N))}}for(var I=[],L=new Array(p),b=0;b>1;b>=0;--b)C(b);for(;;){var O=D();if(O<0||w[O]>d)break;P(O)}for(var W=[],b=0;b=0&&N>=0&&Q!==N){var U=L[Q],J=L[N];U!==J&&H.push([U,J])}}),l.unique(l.normalize(H)),{positions:W,edges:H}}},1303(n,a,o){"use strict";n.exports=u;var s=o(3250);function l(f,c){var h,d;if(c[0][0]c[1][0])h=c[1],d=c[0];else{var p=Math.min(f[0][1],f[1][1]),v=Math.max(f[0][1],f[1][1]),y=Math.min(c[0][1],c[1][1]),m=Math.max(c[0][1],c[1][1]);return vm?p-m:v-m}var w,_;f[0][1]c[1][0])h=c[1],d=c[0];else return l(c,f);var p,v;if(f[0][0]f[1][0])p=f[1],v=f[0];else return-l(f,c);var y=s(h,d,v),m=s(h,d,p);if(y<0){if(m<=0)return y}else if(y>0){if(m>=0)return y}else if(m)return m;if(y=s(v,p,d),m=s(v,p,h),y<0){if(m<=0)return y}else if(y>0){if(m>=0)return y}else if(m)return m;return d[0]-v[0]}},4209(n,a,o){"use strict";n.exports=m;var s=o(2478),l=o(3840),u=o(3250),f=o(1303);function c(w,_,b){this.slabs=w,this.coordinates=_,this.horizontal=b}var h=c.prototype;function d(w,_){return w.y-_}function p(w,_){for(var b=null;w;){var M=w.key,x,T;M[0][0]0)if(_[0]!==M[1][0])b=w,w=w.right;else{var g=p(w.right,_);if(g)return g;w=w.left}else{if(_[0]!==M[1][0])return w;var g=p(w.right,_);if(g)return g;w=w.left}}return b}h.castUp=function(w){var _=s.le(this.coordinates,w[0]);if(_<0)return-1;var b=this.slabs[_],M=p(this.slabs[_],w),x=-1;if(M&&(x=M.value),this.coordinates[_]===w[0]){var T=null;if(M&&(T=M.key),_>0){var A=p(this.slabs[_-1],w);A&&(T?f(A.key,T)>0&&(T=A.key,x=A.value):(x=A.value,T=A.key))}var g=this.horizontal[_];if(g.length>0){var E=s.ge(g,w[1],d);if(E=g.length)return x;S=g[E]}}if(S.start)if(T){var C=u(T[0],T[1],[w[0],S.y]);T[0][0]>T[1][0]&&(C=-C),C>0&&(x=S.index)}else x=S.index;else S.y!==w[1]&&(x=S.index)}}}return x};function v(w,_,b,M){this.y=w,this.index=_,this.start=b,this.closed=M}function y(w,_,b,M){this.x=w,this.segment=_,this.create=b,this.index=M}function m(w){for(var _=w.length,b=2*_,M=new Array(b),x=0;x<_;++x){var T=w[x],A=T[0][0]1&&(_=1);for(var b=1-_,M=p.length,x=new Array(M),T=0;T0||w>0&&x<0){var T=f(_,x,b,w);y.push(T),m.push(T.slice())}x<0?m.push(b.slice()):x>0?y.push(b.slice()):(y.push(b.slice()),m.push(b.slice())),w=x}return{positive:y,negative:m}}function h(p,v){for(var y=[],m=u(p[p.length-1],v),w=p[p.length-1],_=p[0],b=0;b0||m>0&&M<0)&&y.push(f(w,M,_,m)),M>=0&&y.push(_.slice()),m=M}return y}function d(p,v){for(var y=[],m=u(p[p.length-1],v),w=p[p.length-1],_=p[0],b=0;b0||m>0&&M<0)&&y.push(f(w,M,_,m)),M<=0&&y.push(_.slice()),m=M}return y}},3387(n,a,o){var s;(function(){"use strict";var l={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 u(p){return c(d(p),arguments)}function f(p,v){return u.apply(null,[p].concat(v||[]))}function c(p,v){var y=1,m=p.length,w,_="",b,M,x,T,A,g,E,S;for(b=0;b=0),x.type){case"b":w=parseInt(w,10).toString(2);break;case"c":w=String.fromCharCode(parseInt(w,10));break;case"d":case"i":w=parseInt(w,10);break;case"j":w=JSON.stringify(w,null,x.width?parseInt(x.width):0);break;case"e":w=x.precision?parseFloat(w).toExponential(x.precision):parseFloat(w).toExponential();break;case"f":w=x.precision?parseFloat(w).toFixed(x.precision):parseFloat(w);break;case"g":w=x.precision?String(Number(w.toPrecision(x.precision))):parseFloat(w);break;case"o":w=(parseInt(w,10)>>>0).toString(8);break;case"s":w=String(w),w=x.precision?w.substring(0,x.precision):w;break;case"t":w=String(!!w),w=x.precision?w.substring(0,x.precision):w;break;case"T":w=Object.prototype.toString.call(w).slice(8,-1).toLowerCase(),w=x.precision?w.substring(0,x.precision):w;break;case"u":w=parseInt(w,10)>>>0;break;case"v":w=w.valueOf(),w=x.precision?w.substring(0,x.precision):w;break;case"x":w=(parseInt(w,10)>>>0).toString(16);break;case"X":w=(parseInt(w,10)>>>0).toString(16).toUpperCase();break}l.json.test(x.type)?_+=w:(l.number.test(x.type)&&(!E||x.sign)?(S=E?"+":"-",w=w.toString().replace(l.sign,"")):S="",A=x.pad_char?x.pad_char==="0"?"0":x.pad_char.charAt(1):" ",g=x.width-(S+w).length,T=x.width&&g>0?A.repeat(g):"",_+=x.align?S+w+T:A==="0"?S+T+w:T+S+w)}return _}var h=Object.create(null);function d(p){if(h[p])return h[p];for(var v=p,y,m=[],w=0;v;){if((y=l.text.exec(v))!==null)m.push(y[0]);else if((y=l.modulo.exec(v))!==null)m.push("%");else if((y=l.placeholder.exec(v))!==null){if(y[2]){w|=1;var _=[],b=y[2],M=[];if((M=l.key.exec(b))!==null)for(_.push(M[1]);(b=b.substring(M[0].length))!=="";)if((M=l.key_access.exec(b))!==null)_.push(M[1]);else if((M=l.index_access.exec(b))!==null)_.push(M[1]);else throw new SyntaxError("[sprintf] failed to parse named argument key");else throw new SyntaxError("[sprintf] failed to parse named argument key");y[2]=_}else w|=2;if(w===3)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");m.push({placeholder:y[0],param_no:y[1],keys:y[2],sign:y[3],pad_char:y[4],align:y[5],width:y[6],precision:y[7],type:y[8]})}else throw new SyntaxError("[sprintf] unexpected placeholder");v=v.substring(y[0].length)}return h[p]=m}a.sprintf=u,a.vsprintf=f,typeof window!="undefined"&&(window.sprintf=u,window.vsprintf=f,s=(function(){return{sprintf:u,vsprintf:f}}).call(a,o,a,n),s!==void 0&&(n.exports=s))})()},3711(n,a,o){"use strict";n.exports=d;var s=o(2640),l=o(781),u={"2d":function(p,v,y){var m=p({order:v,scalarArguments:3,getters:y==="generic"?[0]:void 0,phase:function(_,b,M,x){return _>x|0},vertex:function(_,b,M,x,T,A,g,E,S,C,k,D,F){var P=(g<<0)+(E<<1)+(S<<2)+(C<<3)|0;if(!(P===0||P===15))switch(P){case 0:k.push([_-.5,b-.5]);break;case 1:k.push([_-.25-.25*(x+M-2*F)/(M-x),b-.25-.25*(T+M-2*F)/(M-T)]);break;case 2:k.push([_-.75-.25*(-x-M+2*F)/(x-M),b-.25-.25*(A+x-2*F)/(x-A)]);break;case 3:k.push([_-.5,b-.5-.5*(T+M+A+x-4*F)/(M-T+x-A)]);break;case 4:k.push([_-.25-.25*(A+T-2*F)/(T-A),b-.75-.25*(-T-M+2*F)/(T-M)]);break;case 5:k.push([_-.5-.5*(x+M+A+T-4*F)/(M-x+T-A),b-.5]);break;case 6:k.push([_-.5-.25*(-x-M+A+T)/(x-M+T-A),b-.5-.25*(-T-M+A+x)/(T-M+x-A)]);break;case 7:k.push([_-.75-.25*(A+T-2*F)/(T-A),b-.75-.25*(A+x-2*F)/(x-A)]);break;case 8:k.push([_-.75-.25*(-A-T+2*F)/(A-T),b-.75-.25*(-A-x+2*F)/(A-x)]);break;case 9:k.push([_-.5-.25*(x+M+-A-T)/(M-x+A-T),b-.5-.25*(T+M+-A-x)/(M-T+A-x)]);break;case 10:k.push([_-.5-.5*(-x-M+-A-T+4*F)/(x-M+A-T),b-.5]);break;case 11:k.push([_-.25-.25*(-A-T+2*F)/(A-T),b-.75-.25*(T+M-2*F)/(M-T)]);break;case 12:k.push([_-.5,b-.5-.5*(-T-M+-A-x+4*F)/(T-M+A-x)]);break;case 13:k.push([_-.75-.25*(x+M-2*F)/(M-x),b-.25-.25*(-A-x+2*F)/(A-x)]);break;case 14:k.push([_-.25-.25*(-x-M+2*F)/(x-M),b-.25-.25*(-T-M+2*F)/(T-M)]);break;case 15:k.push([_-.5,b-.5]);break}},cell:function(_,b,M,x,T,A,g,E,S){T?E.push([_,b]):E.push([b,_])}});return function(w,_){var b=[],M=[];return m(w,b,M,_),{positions:b,cells:M}}}};function f(p,v){var y=p.length+"d",m=u[y];if(m)return m(s,p,v)}function c(p,v){for(var y=l(p,v),m=y.length,w=new Array(m),_=new Array(m),b=0;bMath.max(x,T)?A[2]=1:x>Math.max(M,T)?A[0]=1:A[1]=1;for(var g=0,E=0,S=0;S<3;++S)g+=b[S]*b[S],E+=A[S]*b[S];for(var S=0;S<3;++S)A[S]-=E/g*b[S];return c(A,A),A}function y(b,M,x,T,A,g,E,S){this.center=s(x),this.up=s(T),this.right=s(A),this.radius=s([g]),this.angle=s([E,S]),this.angle.bounds=[[-1/0,-Math.PI/2],[1/0,Math.PI/2]],this.setDistanceLimits(b,M),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 C=0;C<16;++C)this.computedMatrix[C]=.5;this.recalcMatrix(0)}var m=y.prototype;m.setDistanceLimits=function(b,M){b>0?b=Math.log(b):b=-1/0,M>0?M=Math.log(M):M=1/0,M=Math.max(M,b),this.radius.bounds[0][0]=b,this.radius.bounds[1][0]=M},m.getDistanceLimits=function(b){var M=this.radius.bounds[0];return b?(b[0]=Math.exp(M[0][0]),b[1]=Math.exp(M[1][0]),b):[Math.exp(M[0][0]),Math.exp(M[1][0])]},m.recalcMatrix=function(b){this.center.curve(b),this.up.curve(b),this.right.curve(b),this.radius.curve(b),this.angle.curve(b);for(var M=this.computedUp,x=this.computedRight,T=0,A=0,g=0;g<3;++g)A+=M[g]*x[g],T+=M[g]*M[g];for(var E=Math.sqrt(T),S=0,g=0;g<3;++g)x[g]-=M[g]*A/T,S+=x[g]*x[g],M[g]/=E;for(var C=Math.sqrt(S),g=0;g<3;++g)x[g]/=C;var k=this.computedToward;f(k,M,x),c(k,k);for(var D=Math.exp(this.computedRadius[0]),F=this.computedAngle[0],P=this.computedAngle[1],I=Math.cos(F),L=Math.sin(F),z=Math.cos(P),B=Math.sin(P),O=this.computedCenter,W=I*z,X=L*z,Z=B,H=-I*B,q=-L*B,Q=z,N=this.computedEye,U=this.computedMatrix,g=0;g<3;++g){var J=W*x[g]+X*k[g]+Z*M[g];U[4*g+1]=H*x[g]+q*k[g]+Q*M[g],U[4*g+2]=J,U[4*g+3]=0}var j=U[1],$=U[5],ie=U[9],re=U[2],de=U[6],me=U[10],ze=$*me-ie*de,ke=ie*re-j*me,le=j*de-$*re,te=d(ze,ke,le);ze/=te,ke/=te,le/=te,U[0]=ze,U[4]=ke,U[8]=le;for(var g=0;g<3;++g)N[g]=O[g]+U[2+4*g]*D;for(var g=0;g<3;++g){for(var S=0,Ee=0;Ee<3;++Ee)S+=U[g+4*Ee]*N[Ee];U[12+g]=-S}U[15]=1},m.getMatrix=function(b,M){this.recalcMatrix(b);var x=this.computedMatrix;if(M){for(var T=0;T<16;++T)M[T]=x[T];return M}return x};var w=[0,0,0];m.rotate=function(b,M,x,T){if(this.angle.move(b,M,x),T){this.recalcMatrix(b);var A=this.computedMatrix;w[0]=A[2],w[1]=A[6],w[2]=A[10];for(var g=this.computedUp,E=this.computedRight,S=this.computedToward,C=0;C<3;++C)A[4*C]=g[C],A[4*C+1]=E[C],A[4*C+2]=S[C];u(A,A,T,w);for(var C=0;C<3;++C)g[C]=A[4*C],E[C]=A[4*C+1];this.up.set(b,g[0],g[1],g[2]),this.right.set(b,E[0],E[1],E[2])}},m.pan=function(b,M,x,T){M=M||0,x=x||0,T=T||0,this.recalcMatrix(b);var A=this.computedMatrix,g=Math.exp(this.computedRadius[0]),E=A[1],S=A[5],C=A[9],k=d(E,S,C);E/=k,S/=k,C/=k;var D=A[0],F=A[4],P=A[8],I=D*E+F*S+P*C;D-=E*I,F-=S*I,P-=C*I;var L=d(D,F,P);D/=L,F/=L,P/=L;var z=D*M+E*x,B=F*M+S*x,O=P*M+C*x;this.center.move(b,z,B,O);var W=Math.exp(this.computedRadius[0]);W=Math.max(1e-4,W+T),this.radius.set(b,Math.log(W))},m.translate=function(b,M,x,T){this.center.move(b,M||0,x||0,T||0)},m.setMatrix=function(b,M,x,T){var A=1;typeof x=="number"&&(A=x|0),(A<0||A>3)&&(A=1);var g=(A+2)%3,E=(A+1)%3;M||(this.recalcMatrix(b),M=this.computedMatrix);var S=M[A],C=M[A+4],k=M[A+8];if(T){var F=Math.abs(S),P=Math.abs(C),I=Math.abs(k),L=Math.max(F,P,I);F===L?(S=S<0?-1:1,C=k=0):I===L?(k=k<0?-1:1,S=C=0):(C=C<0?-1:1,S=k=0)}else{var D=d(S,C,k);S/=D,C/=D,k/=D}var z=M[g],B=M[g+4],O=M[g+8],W=z*S+B*C+O*k;z-=S*W,B-=C*W,O-=k*W;var X=d(z,B,O);z/=X,B/=X,O/=X;var Z=C*O-k*B,H=k*z-S*O,q=S*B-C*z,Q=d(Z,H,q);Z/=Q,H/=Q,q/=Q,this.center.jump(b,ye,V,ue),this.radius.idle(b),this.up.jump(b,S,C,k),this.right.jump(b,z,B,O);var N,U;if(A===2){var J=M[1],j=M[5],$=M[9],ie=J*z+j*B+$*O,re=J*Z+j*H+$*q;ke<0?N=-Math.PI/2:N=Math.PI/2,U=Math.atan2(re,ie)}else{var de=M[2],me=M[6],ze=M[10],ke=de*S+me*C+ze*k,le=de*z+me*B+ze*O,te=de*Z+me*H+ze*q;N=Math.asin(p(ke)),U=Math.atan2(te,le)}this.angle.jump(b,U,N),this.recalcMatrix(b);var Ee=M[2],we=M[6],oe=M[10],Y=this.computedMatrix;l(Y,M);var ne=Y[15],ye=Y[12]/ne,V=Y[13]/ne,ue=Y[14]/ne,_e=Math.exp(this.computedRadius[0]);this.center.jump(b,ye-Ee*_e,V-we*_e,ue-oe*_e)},m.lastT=function(){return Math.max(this.center.lastT(),this.up.lastT(),this.right.lastT(),this.radius.lastT(),this.angle.lastT())},m.idle=function(b){this.center.idle(b),this.up.idle(b),this.right.idle(b),this.radius.idle(b),this.angle.idle(b)},m.flush=function(b){this.center.flush(b),this.up.flush(b),this.right.flush(b),this.radius.flush(b),this.angle.flush(b)},m.setDistance=function(b,M){M>0&&this.radius.set(b,Math.log(M))},m.lookAt=function(b,M,x,T){this.recalcMatrix(b),M=M||this.computedEye,x=x||this.computedCenter,T=T||this.computedUp;var A=T[0],g=T[1],E=T[2],S=d(A,g,E);if(!(S<1e-6)){A/=S,g/=S,E/=S;var C=M[0]-x[0],k=M[1]-x[1],D=M[2]-x[2],F=d(C,k,D);if(!(F<1e-6)){C/=F,k/=F,D/=F;var P=this.computedRight,I=P[0],L=P[1],z=P[2],B=A*I+g*L+E*z;I-=B*A,L-=B*g,z-=B*E;var O=d(I,L,z);if(!(O<.01&&(I=g*D-E*k,L=E*C-A*D,z=A*k-g*C,O=d(I,L,z),O<1e-6))){I/=O,L/=O,z/=O,this.up.set(b,A,g,E),this.right.set(b,I,L,z),this.center.set(b,x[0],x[1],x[2]),this.radius.set(b,Math.log(F));var W=g*z-E*L,X=E*I-A*z,Z=A*L-g*I,H=d(W,X,Z);W/=H,X/=H,Z/=H;var q=A*C+g*k+E*D,Q=I*C+L*k+z*D,N=W*C+X*k+Z*D,U=Math.asin(p(q)),J=Math.atan2(N,Q),j=this.angle._state,$=j[j.length-1],ie=j[j.length-2];$=$%(2*Math.PI);var re=Math.abs($+2*Math.PI-J),de=Math.abs($-J),me=Math.abs($-2*Math.PI-J);re0?z.pop():new ArrayBuffer(I)}a.mallocArrayBuffer=w;function _(P){return new Uint8Array(w(P),0,P)}a.mallocUint8=_;function b(P){return new Uint16Array(w(2*P),0,P)}a.mallocUint16=b;function M(P){return new Uint32Array(w(4*P),0,P)}a.mallocUint32=M;function x(P){return new Int8Array(w(P),0,P)}a.mallocInt8=x;function T(P){return new Int16Array(w(2*P),0,P)}a.mallocInt16=T;function A(P){return new Int32Array(w(4*P),0,P)}a.mallocInt32=A;function g(P){return new Float32Array(w(4*P),0,P)}a.mallocFloat32=a.mallocFloat=g;function E(P){return new Float64Array(w(8*P),0,P)}a.mallocFloat64=a.mallocDouble=E;function S(P){return f?new Uint8ClampedArray(w(P),0,P):_(P)}a.mallocUint8Clamped=S;function C(P){return c?new BigUint64Array(w(8*P),0,P):null}a.mallocBigUint64=C;function k(P){return h?new BigInt64Array(w(8*P),0,P):null}a.mallocBigInt64=k;function D(P){return new DataView(w(P),0,P)}a.mallocDataView=D;function F(P){P=s.nextPow2(P);var I=s.log2(P),L=v[I];return L.length>0?L.pop():new u(P)}a.mallocBuffer=F,a.clearCache=function(){for(var I=0;I<32;++I)d.UINT8[I].length=0,d.UINT16[I].length=0,d.UINT32[I].length=0,d.INT8[I].length=0,d.INT16[I].length=0,d.INT32[I].length=0,d.FLOAT[I].length=0,d.DOUBLE[I].length=0,d.BIGUINT64[I].length=0,d.BIGINT64[I].length=0,d.UINT8C[I].length=0,p[I].length=0,v[I].length=0}},1755(n){"use strict";"use restrict";n.exports=a;function a(s){this.roots=new Array(s),this.ranks=new Array(s);for(var l=0;l",z="",B=L.length,O=z.length,W=F[0]===w||F[0]===M,X=0,Z=-O;X>-1&&(X=P.indexOf(L,X),!(X===-1||(Z=P.indexOf(z,X+B),Z===-1)||Z<=X));){for(var H=X;H=Z)I[H]=null,P=P.substr(0,H)+" "+P.substr(H+1);else if(I[H]!==null){var q=I[H].indexOf(F[0]);q===-1?I[H]+=F:W&&(I[H]=I[H].substr(0,q+1)+(1+parseInt(I[H][q+1]))+I[H].substr(q+2))}var Q=X+B,N=P.substr(Q,Z-Q),U=N.indexOf(L);U!==-1?X=U:X=Z+O}return I}function A(D,F,P){for(var I=F.textAlign||"start",L=F.textBaseline||"alphabetic",z=[1<<30,1<<30],B=[0,0],O=D.length,W=0;W/g,` +`):P=P.replace(/\/g," ");var B="",O=[];for($=0;$-1?parseInt(V[1+xe]):0,pe=Ae>-1?parseInt(ue[1+Ae]):0;se!==pe&&(_e=_e.replace(le(),"?px "),de*=Math.pow(.75,pe-se),_e=_e.replace("?px ",le())),re+=.25*q*(pe-se)}if(z.superscripts===!0){var fe=V.indexOf(w),Re=ue.indexOf(w),We=fe>-1?parseInt(V[1+fe]):0,Ke=Re>-1?parseInt(ue[1+Re]):0;We!==Ke&&(_e=_e.replace(le(),"?px "),de*=Math.pow(.75,Ke-We),_e=_e.replace("?px ",le())),re-=.25*q*(Ke-We)}if(z.bolds===!0){var tt=V.indexOf(p)>-1,at=ue.indexOf(p)>-1;!tt&&at&&(Ge?_e=_e.replace("italic ","italic bold "):_e="bold "+_e),tt&&!at&&(_e=_e.replace("bold ",""))}if(z.italics===!0){var Ge=V.indexOf(y)>-1,ge=ue.indexOf(y)>-1;!Ge&&ge&&(_e="italic "+_e),Ge&&!ge&&(_e=_e.replace("italic ",""))}F.font=_e}for(j=0;j0&&(L=I.size),I.lineSpacing&&I.lineSpacing>0&&(z=I.lineSpacing),I.styletags&&I.styletags.breaklines&&(B.breaklines=!!I.styletags.breaklines),I.styletags&&I.styletags.bolds&&(B.bolds=!!I.styletags.bolds),I.styletags&&I.styletags.italics&&(B.italics=!!I.styletags.italics),I.styletags&&I.styletags.subscripts&&(B.subscripts=!!I.styletags.subscripts),I.styletags&&I.styletags.superscripts&&(B.superscripts=!!I.styletags.superscripts)),P.font=[I.fontStyle,I.fontVariant,I.fontWeight,L+"px",I.font].filter(function(W){return W}).join(" "),P.textAlign="start",P.textBaseline="alphabetic",P.direction="ltr";var O=g(F,P,D,L,z,B);return C(O,I,L)}},1538(n){(function(){"use strict";if(typeof ses!="undefined"&&ses.ok&&!ses.ok())return;function o(S){S.permitHostObjects___&&S.permitHostObjects___(o)}typeof ses!="undefined"&&(ses.weakMapPermitHostObjects=o);var s=!1;if(typeof WeakMap=="function"){var l=WeakMap;if(!(typeof navigator!="undefined"&&/Firefox/.test(navigator.userAgent))){var u=new l,f=Object.freeze({});if(u.set(f,1),u.get(f)!==1)s=!0;else{n.exports=WeakMap;return}}}var c=Object.prototype.hasOwnProperty,h=Object.getOwnPropertyNames,d=Object.defineProperty,p=Object.isExtensible,v="weakmap:",y=v+"ident:"+Math.random()+"___";if(typeof crypto!="undefined"&&typeof crypto.getRandomValues=="function"&&typeof ArrayBuffer=="function"&&typeof Uint8Array=="function"){var m=new ArrayBuffer(25),w=new Uint8Array(m);crypto.getRandomValues(w),y=v+"rand:"+Array.prototype.map.call(w,function(S){return(S%36).toString(36)}).join("")+"___"}function _(S){return!(S.substr(0,v.length)==v&&S.substr(S.length-3)==="___")}if(d(Object,"getOwnPropertyNames",{value:function(C){return h(C).filter(_)}}),"getPropertyNames"in Object){var b=Object.getPropertyNames;d(Object,"getPropertyNames",{value:function(C){return b(C).filter(_)}})}function M(S){if(S!==Object(S))throw new TypeError("Not an object: "+S);var C=S[y];if(C&&C.key===S)return C;if(p(S)){C={key:S};try{return d(S,y,{value:C,writable:!1,enumerable:!1,configurable:!1}),C}catch(k){return}}}(function(){var S=Object.freeze;d(Object,"freeze",{value:function(F){return M(F),S(F)}});var C=Object.seal;d(Object,"seal",{value:function(F){return M(F),C(F)}});var k=Object.preventExtensions;d(Object,"preventExtensions",{value:function(F){return M(F),k(F)}})})();function x(S){return S.prototype=null,Object.freeze(S)}var T=!1;function A(){!T&&typeof console!="undefined"&&(T=!0,console.warn("WeakMap should be invoked as new WeakMap(), not WeakMap(). This will be an error in the future."))}var g=0,E=function(){this instanceof E||A();var S=[],C=[],k=g++;function D(L,z){var B,O=M(L);return O?k in O?O[k]:z:(B=S.indexOf(L),B>=0?C[B]:z)}function F(L){var z=M(L);return z?k in z:S.indexOf(L)>=0}function P(L,z){var B,O=M(L);return O?O[k]=z:(B=S.indexOf(L),B>=0?C[B]=z:(B=S.length,C[B]=z,S[B]=L)),this}function I(L){var z=M(L),B,O;return z?k in z&&delete z[k]:(B=S.indexOf(L),B<0?!1:(O=S.length-1,S[B]=void 0,C[B]=C[O],S[B]=S[O],S.length=O,C.length=O,!0))}return Object.create(E.prototype,{get___:{value:x(D)},has___:{value:x(F)},set___:{value:x(P)},delete___:{value:x(I)}})};E.prototype=Object.create(Object.prototype,{get:{value:function(C,k){return this.get___(C,k)},writable:!0,configurable:!0},has:{value:function(C){return this.has___(C)},writable:!0,configurable:!0},set:{value:function(C,k){return this.set___(C,k)},writable:!0,configurable:!0},delete:{value:function(C){return this.delete___(C)},writable:!0,configurable:!0}}),typeof l=="function"?(function(){s&&typeof Proxy!="undefined"&&(Proxy=void 0);function S(){this instanceof E||A();var C=new l,k=void 0,D=!1;function F(z,B){return k?C.has(z)?C.get(z):k.get___(z,B):C.get(z,B)}function P(z){return C.has(z)||(k?k.has___(z):!1)}var I;s?I=function(z,B){return C.set(z,B),C.has(z)||(k||(k=new E),k.set(z,B)),this}:I=function(z,B){if(D)try{C.set(z,B)}catch(O){k||(k=new E),k.set___(z,B)}else C.set(z,B);return this};function L(z){var B=!!C.delete(z);return k&&k.delete___(z)||B}return Object.create(E.prototype,{get___:{value:x(F)},has___:{value:x(P)},set___:{value:x(I)},delete___:{value:x(L)},permitHostObjects___:{value:x(function(z){if(z===o)D=!0;else throw new Error("bogus call to permitHostObjects___")})}})}S.prototype=E.prototype,n.exports=S,Object.defineProperty(WeakMap.prototype,"constructor",{value:WeakMap,enumerable:!1,configurable:!0,writable:!0})})():(typeof Proxy!="undefined"&&(Proxy=void 0),n.exports=E)})()},236(n,a,o){var s=o(8284);n.exports=l;function l(){var u={};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(u);return c&&c.identity===u?c:s(f,u)}}},8284(n){n.exports=a;function a(o,s){var l={identity:s},u=o.valueOf;return Object.defineProperty(o,"valueOf",{value:function(f){return f!==s?u.apply(this,arguments):l},writable:!0}),l}},606(n,a,o){var s=o(236);n.exports=l;function l(){var u=s();return{get:function(f,c){var h=u(f);return h.hasOwnProperty("value")?h.value:c},set:function(f,c){return u(f).value=c,this},has:function(f){return"value"in u(f)},delete:function(f){return delete u(f).value}}}},3349(n){"use strict";function a(){return function(c,h,d,p,v,y){var m=c[0],w=d[0],_=[0],b=w;p|=0;var M=0,x=w;for(M=0;M=0!=A>=0&&v.push(_[0]+.5+.5*(T+A)/(T-A))}p+=x,++_[0]}}}function o(){return a()}var s=o;function l(c){var h={};return function(p,v,y){var m=p.dtype,w=p.order,_=[m,w.join()].join(),b=h[_];return b||(h[_]=b=c([m,w])),b(p.shape.slice(0),p.data,p.stride,p.offset|0,v,y)}}function u(c){return l(s.bind(void 0,c))}function f(c){return u({funcName:c.funcName})}n.exports=f({funcName:"zeroCrossings"})},781(n,a,o){"use strict";n.exports=l;var s=o(3349);function l(u,f){var c=[];return f=+f||0,s(u.hi(u.shape[0]-1),c,f),c}},7790(){}};let t={};function r(n){let a=t[n];if(a!==void 0)return a.exports;let o=t[n]={id:n,loaded:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.loaded=!0,o.exports}r.g=(function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch(n){if(typeof window=="object")return window}})(),r.nmd=n=>(n.paths=[],n.children||(n.children=[]),n);let i=r(3065);dOe.exports=i})()});var Ry=K((SJr,pOe)=>{"use strict";var{normalize:Mir}=wo();function Sir(e){return e?Mir(e):[0,0,0,1]}pOe.exports=Sir});var By=K((EJr,bOe)=>{"use strict";var gOe=Hs(),tR=gf(),O4=wo(),Eir=Gc().defaultLine,vOe=Yh().isArrayOrTypedArray,WJ=O4.normalize(Eir),xOe=1;function mOe(e,t){return[e[0],e[1],e[2],e[3]*t]}function jJ(e){return gOe(e)||!O4.isChannelArray(e)&&!O4.isValid(e)?WJ:O4.normalize(e)}function yOe(e){return gOe(e)?e:xOe}function kir(e,t,r){var i=e.color;i&&i._inputArray&&(i=i._inputArray);var n=vOe(i),a=vOe(t),o=tR.extractOpts(e),s=[],l,u,f,c,h;if(o.colorscale!==void 0?l=tR.makeColorScaleFuncFromTrace(e):l=jJ,n?u=(p,v)=>p[v]===void 0?WJ:o.colorscale===void 0?l(p[v]):O4.normalize(l(p[v])):u=jJ,a?f=function(p,v){return p[v]===void 0?xOe:yOe(p[v])}:f=yOe,n||a)for(var d=0;dFir});var Dir,Fir,YJ=ps(()=>{"use strict";Dir={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]},Fir=Dir});var rR={};Fl(rR,{default:()=>Pir});var Lir,Pir,iR=ps(()=>{"use strict";Lir={circle:"\u25CF","circle-open":"\u25CB",square:"\u25A0","square-open":"\u25A1",diamond:"\u25C6","diamond-open":"\u25C7",cross:"+",x:"\u274C"},Pir=Lir});var wOe=K((kJr,_Oe)=>{"use strict";var zir=Ho();function XJ(e,t,r,i){if(!t||!t.visible)return null;for(var n=zir.getComponentMethod("errorbars","makeComputeError")(t),a=new Array(e.length),o=0;o0){var c=i.c2l(u);i._lowerLogErrorBound||(i._lowerLogErrorBound=c),i._lowerErrorBound=Math.min(i._lowerLogErrorBound,c)}}else a[o]=[-s[0]*r,s[1]*r]}return a}function Iir(e){for(var t=0;t{"use strict";var Bir=Bh().gl_line3d,AOe=Bh().gl_scatter3d,qir=Bh().gl_error3d,Oir=Bh().gl_mesh3d,Nir=Bh().delaunay_triangulate,qy=St(),kOe=Ry(),nR=By().formatColor,Vir=M6(),ZJ=(YJ(),or($J)).default,Uir=(iR(),or(rR)).default,Gir=Cs(),Hir=ud().appendArrayPointValue,jir=wOe();function COe(e,t){this.scene=e,this.uid=t,this.linePlot=null,this.scatterPlot=null,this.errorBars=null,this.textMarkers=null,this.delaunayMesh=null,this.color=null,this.mode="",this.dataPoints=[],this.axesBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.textLabels=null,this.data=null}var JJ=COe.prototype;JJ.handlePick=function(e){if(e.object&&(e.object===this.linePlot||e.object===this.delaunayMesh||e.object===this.textMarkers||e.object===this.scatterPlot)){var t=e.index=e.data.index;return e.object.highlight&&e.object.highlight(null),this.scatterPlot&&(e.object=this.scatterPlot,this.scatterPlot.highlight(e.data)),e.textLabel="",this.textLabels&&(qy.isArrayOrTypedArray(this.textLabels)?(this.textLabels[t]||this.textLabels[t]===0)&&(e.textLabel=this.textLabels[t]):e.textLabel=this.textLabels),e.traceCoordinate=[this.data.x[t],this.data.y[t],this.data.z[t]],!0}};function Wir(e,t,r){var i=(r+1)%3,n=(r+2)%3,a=[],o=[],s;for(s=0;s-1?-1:e.indexOf("right")>-1?1:0}function MOe(e){return e==null?0:e.indexOf("top")>-1?-1:e.indexOf("bottom")>-1?1:0}function Yir(e){var t=0,r=0,i=[t,r];if(Array.isArray(e))for(var n=0;n=0){var u=Wir(s.position,s.delaunayColor,s.delaunayAxis);u.opacity=e.opacity,this.delaunayMesh?this.delaunayMesh.update(u):(u.gl=t,this.delaunayMesh=Oir(u),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)};JJ.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 Jir(e,t){var r=new COe(e,t.uid);return r.update(t),r}DOe.exports=Jir});var iQ=K((DJr,IOe)=>{"use strict";var Oy=Qf(),Qir=lf(),rQ=Wu(),QJ=zf().axisHoverFormat,{hovertemplateAttrs:enr,texttemplateAttrs:tnr,templatefallbackAttrs:LOe}=gu(),POe=Tu(),rnr=(YJ(),or($J)).default,inr=(iR(),or(rR)).default,x1=Os().extendFlat,nnr=Ef().overrideAll,zOe=(eb(),or(Qx)).default,anr=Oy.line,I_=Oy.marker,onr=I_.line,snr=x1({width:anr.width,dash:{valType:"enumerated",values:zOe(rnr),dflt:"solid"}},rQ("line"));function eQ(e){return{show:{valType:"boolean",dflt:!1},opacity:{valType:"number",min:0,max:1,dflt:1},scale:{valType:"number",min:0,max:10,dflt:2/3}}}var tQ=IOe.exports=nnr({x:Oy.x,y:Oy.y,z:{valType:"data_array"},text:x1({},Oy.text,{}),texttemplate:tnr(),texttemplatefallback:LOe({editType:"calc"}),hovertext:x1({},Oy.hovertext,{}),hovertemplate:enr(),hovertemplatefallback:LOe(),xhoverformat:QJ("x"),yhoverformat:QJ("y"),zhoverformat:QJ("z"),mode:x1({},Oy.mode,{dflt:"lines+markers"}),surfaceaxis:{valType:"enumerated",values:[-1,0,1,2],dflt:-1},surfacecolor:{valType:"color"},projection:{x:eQ("x"),y:eQ("y"),z:eQ("z")},connectgaps:Oy.connectgaps,line:snr,marker:x1({symbol:{valType:"enumerated",values:zOe(inr),dflt:"circle",arrayOk:!0},size:x1({},I_.size,{dflt:8}),sizeref:I_.sizeref,sizemin:I_.sizemin,sizemode:I_.sizemode,opacity:x1({},I_.opacity,{arrayOk:!1}),colorbar:I_.colorbar,line:x1({width:x1({},onr.width,{arrayOk:!1})},rQ("marker.line"))},rQ("marker")),textposition:x1({},Oy.textposition,{dflt:"top center"}),textfont:Qir({noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0,editType:"calc",colorEditType:"style",arrayOk:!0,variantValues:["normal","small-caps"]}),opacity:POe.opacity,hoverinfo:x1({},POe.hoverinfo)},"calc","nested");tQ.x.editType=tQ.y.editType=tQ.z.editType="calc+clearAxisTypes"});var qOe=K((FJr,BOe)=>{"use strict";var ROe=Ho(),lnr=St(),nQ=ff(),unr=Xp(),fnr=Qv(),cnr=e1(),hnr=iQ();BOe.exports=function(t,r,i,n){function a(d,p){return lnr.coerce(t,r,hnr,d,p)}var o=dnr(t,r,a,n);if(!o){r.visible=!1;return}a("text"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback"),a("xhoverformat"),a("yhoverformat"),a("zhoverformat"),a("mode"),nQ.hasMarkers(r)&&unr(t,r,i,n,a,{noAngle:!0,noLineDash:!0,noSelect:!0}),nQ.hasLines(r)&&(a("connectgaps"),fnr(t,r,i,n,a)),nQ.hasText(r)&&(a("texttemplate"),a("texttemplatefallback"),cnr(t,r,n,a,{noSelect:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0}));var s=(r.line||{}).color,l=(r.marker||{}).color;a("surfaceaxis")>=0&&a("surfacecolor",s||l);for(var u=["x","y","z"],f=0;f<3;++f){var c="projection."+u[f];a(c+".show")&&(a(c+".opacity"),a(c+".scale"))}var h=ROe.getComponentMethod("errorbars","supplyDefaults");h(t,r,s||l||i,{axis:"z"}),h(t,r,s||l||i,{axis:"y",inherit:"z"}),h(t,r,s||l||i,{axis:"x",inherit:"z"})};function dnr(e,t,r,i){var n=0,a=r("x"),o=r("y"),s=r("z"),l=ROe.getComponentMethod("calendars","handleTraceDefaults");return l(e,t,["x","y","z"],i),a&&o&&s&&(n=Math.min(a.length,o.length,s.length),t._length=t._xlength=t._ylength=t._zlength=n),n}});var NOe=K((LJr,OOe)=>{"use strict";var pnr=fm(),vnr=Zp();OOe.exports=function(t,r){var i=[{x:!1,y:!1,trace:r,t:{}}];return pnr(i,r),vnr(t,r),i}});var UOe=K((PJr,VOe)=>{VOe.exports=mnr;function mnr(e,t){if(typeof e!="string")throw new TypeError("must specify type string");if(t=t||{},typeof document=="undefined"&&!t.canvas)return null;var r=t.canvas||document.createElement("canvas");typeof t.width=="number"&&(r.width=t.width),typeof t.height=="number"&&(r.height=t.height);var i=t,n;try{var a=[e];e.indexOf("webgl")===0&&a.push("experimental-"+e);for(var o=0;o{var ynr=UOe();GOe.exports=function(t){return ynr("webgl",t)}});var aQ=K((IJr,WOe)=>{"use strict";var jOe=wo(),gnr=function(){};WOe.exports=function(t){for(var r in t)typeof t[r]=="function"&&(t[r]=gnr);t.destroy=function(){t.container.parentNode.removeChild(t.container)};var i=document.createElement("div");i.className="no-webgl",i.style.cursor="pointer",i.style.fontSize="24px",i.style.color=jOe.defaults[0],i.style.position="absolute",i.style.left=i.style.top="0px",i.style.width=i.style.height="100%",i.style["background-color"]=jOe.lightLine,i.style["z-index"]=30;var n=document.createElement("p");return n.textContent="WebGL is not supported by your browser - visit https://get.webgl.org for more info",n.style.position="relative",n.style.top="50%",n.style.left="50%",n.style.height="30%",n.style.width="50%",n.style.margin="-15% 0 0 -25%",i.appendChild(n),t.container.appendChild(i),t.container.style.background="#FFFFFF",t.container.onclick=function(){window.open("https://get.webgl.org")},!1}});var XOe=K((RJr,YOe)=>{"use strict";var R_=Ry(),xnr=St(),bnr=["xaxis","yaxis","zaxis"];function $Oe(){this.bounds=[[-10,-10,-10],[10,10,10]],this.ticks=[[],[],[]],this.tickEnable=[!0,!0,!0],this.tickFont=["sans-serif","sans-serif","sans-serif"],this.tickSize=[12,12,12],this.tickFontWeight=["normal","normal","normal","normal"],this.tickFontStyle=["normal","normal","normal","normal"],this.tickFontVariant=["normal","normal","normal","normal"],this.tickAngle=[0,0,0],this.tickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.tickPad=[18,18,18],this.labels=["x","y","z"],this.labelEnable=[!0,!0,!0],this.labelFont=["Open Sans","Open Sans","Open Sans"],this.labelSize=[20,20,20],this.labelFontWeight=["normal","normal","normal","normal"],this.labelFontStyle=["normal","normal","normal","normal"],this.labelFontVariant=["normal","normal","normal","normal"],this.labelColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.labelPad=[30,30,30],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=[10,10,10],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=[!0,!0,!0],this.backgroundColor=[[.8,.8,.8,.5],[.8,.8,.8,.5],[.8,.8,.8,.5]],this._defaultTickPad=this.tickPad.slice(),this._defaultLabelPad=this.labelPad.slice(),this._defaultLineTickLength=this.lineTickLength.slice()}var _nr=$Oe.prototype;_nr.merge=function(e,t){for(var r=this,i=0;i<3;++i){var n=t[bnr[i]];if(!n.visible){r.tickEnable[i]=!1,r.labelEnable[i]=!1,r.lineEnable[i]=!1,r.lineTickEnable[i]=!1,r.gridEnable[i]=!1,r.zeroEnable[i]=!1,r.backgroundEnable[i]=!1;continue}r.labels[i]=e._meta?xnr.templateString(n.title.text,e._meta):n.title.text,"font"in n.title&&(n.title.font.color&&(r.labelColor[i]=R_(n.title.font.color)),n.title.font.family&&(r.labelFont[i]=n.title.font.family),n.title.font.size&&(r.labelSize[i]=n.title.font.size),n.title.font.weight&&(r.labelFontWeight[i]=n.title.font.weight),n.title.font.style&&(r.labelFontStyle[i]=n.title.font.style),n.title.font.variant&&(r.labelFontVariant[i]=n.title.font.variant)),"showline"in n&&(r.lineEnable[i]=n.showline),"linecolor"in n&&(r.lineColor[i]=R_(n.linecolor)),"linewidth"in n&&(r.lineWidth[i]=n.linewidth),"showgrid"in n&&(r.gridEnable[i]=n.showgrid),"gridcolor"in n&&(r.gridColor[i]=R_(n.gridcolor)),"gridwidth"in n&&(r.gridWidth[i]=n.gridwidth),n.type==="log"?r.zeroEnable[i]=!1:"zeroline"in n&&(r.zeroEnable[i]=n.zeroline),"zerolinecolor"in n&&(r.zeroLineColor[i]=R_(n.zerolinecolor)),"zerolinewidth"in n&&(r.zeroLineWidth[i]=n.zerolinewidth),"ticks"in n&&n.ticks?r.lineTickEnable[i]=!0:r.lineTickEnable[i]=!1,"ticklen"in n&&(r.lineTickLength[i]=r._defaultLineTickLength[i]=n.ticklen),"tickcolor"in n&&(r.lineTickColor[i]=R_(n.tickcolor)),"tickwidth"in n&&(r.lineTickWidth[i]=n.tickwidth),"tickangle"in n&&(r.tickAngle[i]=n.tickangle==="auto"?-3600:Math.PI*-n.tickangle/180),"showticklabels"in n&&(r.tickEnable[i]=n.showticklabels),"tickfont"in n&&(n.tickfont.color&&(r.tickColor[i]=R_(n.tickfont.color)),n.tickfont.family&&(r.tickFont[i]=n.tickfont.family),n.tickfont.size&&(r.tickSize[i]=n.tickfont.size),n.tickfont.weight&&(r.tickFontWeight[i]=n.tickfont.weight),n.tickfont.style&&(r.tickFontStyle[i]=n.tickfont.style),n.tickfont.variant&&(r.tickFontVariant[i]=n.tickfont.variant)),"mirror"in n?["ticks","all","allticks"].indexOf(n.mirror)!==-1?(r.lineTickMirror[i]=!0,r.lineMirror[i]=!0):n.mirror===!0?(r.lineTickMirror[i]=!1,r.lineMirror[i]=!0):(r.lineTickMirror[i]=!1,r.lineMirror[i]=!1):r.lineMirror[i]=!1,"showbackground"in n&&n.showbackground!==!1?(r.backgroundEnable[i]=!0,r.backgroundColor[i]=R_(n.backgroundcolor)):r.backgroundEnable[i]=!1}};function wnr(e,t){var r=new $Oe;return r.merge(e,t),r}YOe.exports=wnr});var JOe=K((BJr,KOe)=>{"use strict";var Anr=Ry(),Tnr=["xaxis","yaxis","zaxis"];function ZOe(){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 Mnr=ZOe.prototype;Mnr.merge=function(e){for(var t=0;t<3;++t){var r=e[Tnr[t]];if(!r.visible){this.enabled[t]=!1,this.drawSides[t]=!1;continue}this.enabled[t]=r.showspikes,this.colors[t]=Anr(r.spikecolor),this.drawSides[t]=r.spikesides,this.lineWidth[t]=r.spikethickness}};function Snr(e){var t=new ZOe;return t.merge(e),t}KOe.exports=Snr});var tNe=K((qJr,eNe)=>{"use strict";eNe.exports=Fnr;var QOe=Cs(),Enr=St(),knr=["xaxis","yaxis","zaxis"],Cnr=[0,0,0];function Dnr(e){for(var t=new Array(3),r=0;r<3;++r){for(var i=e[r],n=new Array(i.length),a=0;a/g," "));n[a]=u,o.tickmode=s}}t.ticks=n;for(var a=0;a<3;++a){Cnr[a]=.5*(e.glplot.bounds[0][a]+e.glplot.bounds[1][a]);for(var f=0;f<2;++f)t.bounds[f][a]=e.glplot.bounds[f][a]}e.contourLevels=Dnr(n)}});var lNe=K((OJr,sNe)=>{"use strict";var nNe=Bh().gl_plot3d,Lnr=nNe.createCamera,rNe=nNe.createScene,Pnr=HOe(),znr=ML(),sR=Ho(),md=St(),oR=md.preserveDrawingBuffer(),lR=Cs(),b1=Gf(),Inr=Ry(),Rnr=aQ(),Bnr=p$(),qnr=XOe(),Onr=JOe(),Nnr=tNe(),Vnr=$v().applyAutorangeOptions,ME,aR,aNe=!1;function oNe(e,t){var r=document.createElement("div"),i=e.container;this.graphDiv=e.graphDiv;var n=document.createElementNS("http://www.w3.org/2000/svg","svg");n.style.position="absolute",n.style.top=n.style.left="0px",n.style.width=n.style.height="100%",n.style["z-index"]=20,n.style["pointer-events"]="none",r.appendChild(n),this.svgContainer=n,r.id=e.id,r.style.position="absolute",r.style.top=r.style.left="0px",r.style.width=r.style.height="100%",i.appendChild(r),this.fullLayout=t,this.id=e.id||"scene",this.fullSceneLayout=t[this.id],this.plotArgs=[[],{},{}],this.axesOptions=qnr(t,t[this.id]),this.spikeOptions=Onr(t[this.id]),this.container=r,this.staticMode=!!e.staticPlot,this.pixelRatio=this.pixelRatio||e.plotGlPixelRatio||2,this.dataScale=[1,1,1],this.contourLevels=[[],[],[]],this.convertAnnotations=sR.getComponentMethod("annotations3d","convert"),this.drawAnnotations=sR.getComponentMethod("annotations3d","draw"),this.initializeGLPlot()}var F0=oNe.prototype;F0.prepareOptions=function(){var e=this,t={canvas:e.canvas,gl:e.gl,glOptions:{preserveDrawingBuffer:oR,premultipliedAlpha:!0,antialias:!0},container:e.container,axes:e.axesOptions,spikes:e.spikeOptions,pickRadius:10,snapToData:!0,autoScale:!0,autoBounds:!1,cameraObject:e.camera,pixelRatio:e.pixelRatio};if(e.staticMode){if(!aR&&(ME=document.createElement("canvas"),aR=Pnr({canvas:ME,preserveDrawingBuffer:!0,premultipliedAlpha:!0,antialias:!0}),!aR))throw new Error("error creating static canvas/context for image server");t.gl=aR,t.canvas=ME}return t};var iNe=!0;F0.tryCreatePlot=function(){var e=this,t=e.prepareOptions(),r=!0;try{e.glplot=rNe(t)}catch(i){if(e.staticMode||!iNe||oR)r=!1;else{md.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{oR=t.glOptions.preserveDrawingBuffer=!0,e.glplot=rNe(t)}catch(n){oR=t.glOptions.preserveDrawingBuffer=!1,r=!1}}}return iNe=!1,r};F0.initializeGLCamera=function(){var e=this,t=e.fullSceneLayout.camera,r=t.projection.type==="orthographic";e.camera=Lnr(e.container,{center:[t.center.x,t.center.y,t.center.z],eye:[t.eye.x,t.eye.y,t.eye.z],up:[t.up.x,t.up.y,t.up.z],_ortho:r,zoomMin:.01,zoomMax:100,mode:"orbit"})};F0.initializeGLPlot=function(){var e=this;e.initializeGLCamera();var t=e.tryCreatePlot();if(!t)return Rnr(e);e.traces={},e.make4thDimension();var r=e.graphDiv,i=r.layout,n=function(){var o={};return e.isCameraChanged(i)&&(o[e.id+".camera"]=e.getCamera()),e.isAspectChanged(i)&&(o[e.id+".aspectratio"]=e.glplot.getAspectratio(),i[e.id].aspectmode!=="manual"&&(e.fullSceneLayout.aspectmode=i[e.id].aspectmode=o[e.id+".aspectmode"]="manual")),o},a=function(o){if(o.fullSceneLayout.dragmode!==!1){var s=n();o.saveLayout(i),o.graphDiv.emit("plotly_relayout",s)}};return e.glplot.canvas&&(e.glplot.canvas.addEventListener("mouseup",function(){a(e)}),e.glplot.canvas.addEventListener("touchstart",function(){aNe=!0}),e.glplot.canvas.addEventListener("wheel",function(o){if(r._context._scrollZoom.gl3d){if(e.camera._ortho){var s=o.deltaX>o.deltaY?1.1:.9090909090909091,l=e.glplot.getAspectratio();e.glplot.setAspectratio({x:s*l.x,y:s*l.y,z:s*l.z})}a(e)}},znr?{passive:!1}:!1),e.glplot.canvas.addEventListener("mousemove",function(){if(e.fullSceneLayout.dragmode!==!1&&e.camera.mouseListener.buttons!==0){var o=n();e.graphDiv.emit("plotly_relayouting",o)}}),e.staticMode||e.glplot.canvas.addEventListener("webglcontextlost",function(o){r&&r.emit&&r.emit("plotly_webglcontextlost",{event:o,layer:e.id})},!1)),e.glplot.oncontextloss=function(){e.recoverContext()},e.glplot.onrender=function(){e.render()},!0};F0.render=function(){var e=this,t=e.graphDiv,r,i=e.svgContainer,n=e.container.getBoundingClientRect();t._fullLayout._calcInverseTransform(t);var a=t._fullLayout._invScaleX,o=t._fullLayout._invScaleY,s=n.width*a,l=n.height*o;i.setAttributeNS(null,"viewBox","0 0 "+s+" "+l),i.setAttributeNS(null,"width",s),i.setAttributeNS(null,"height",l),Nnr(e),e.glplot.axes.update(e.axesOptions);for(var u=Object.keys(e.traces),f=null,c=e.glplot.selection,h=0;h")):r.type==="isosurface"||r.type==="volume"?(m.valueLabel=lR.hoverLabelText(e._mockAxis,e._mockAxis.d2l(c.traceCoordinate[3]),r.valuehoverformat),x.push("value: "+m.valueLabel),c.textLabel&&x.push(c.textLabel),M=x.join("
")):M=c.textLabel;var T={x:c.traceCoordinate[0],y:c.traceCoordinate[1],z:c.traceCoordinate[2],data:v._input,fullData:v,curveNumber:v.index,pointNumber:y};b1.appendArrayPointValue(T,v,y),r._module.eventData&&(T=v._module.eventData(T,c,v,{},y));var A={points:[T]};if(e.fullSceneLayout.hovermode){var g=[];b1.loneHover({trace:v,x:(.5+.5*p[0]/p[3])*s,y:(.5-.5*p[1]/p[3])*l,xLabel:m.xLabel,yLabel:m.yLabel,zLabel:m.zLabel,text:M,name:f.name,color:b1.castHoverOption(v,y,"bgcolor")||f.color,borderColor:b1.castHoverOption(v,y,"bordercolor"),fontFamily:b1.castHoverOption(v,y,"font.family"),fontSize:b1.castHoverOption(v,y,"font.size"),fontColor:b1.castHoverOption(v,y,"font.color"),nameLength:b1.castHoverOption(v,y,"namelength"),textAlign:b1.castHoverOption(v,y,"align"),hovertemplate:md.castOption(v,y,"hovertemplate"),hovertemplateLabels:md.extendFlat({},T,m),eventData:[T]},{container:i,gd:t,inOut_bbox:g}),T.bbox=g[0]}c.distance<5&&(c.buttons||aNe)?t.emit("plotly_click",A):t.emit("plotly_hover",A),this.oldEventData=A}else b1.loneUnhover(i),this.oldEventData&&t.emit("plotly_unhover",this.oldEventData),this.oldEventData=void 0;e.drawAnnotations(e)};F0.recoverContext=function(){var e=this;e.glplot.dispose();var t=function(){if(e.glplot.gl.isContextLost()){requestAnimationFrame(t);return}if(!e.initializeGLPlot()){md.error("Catastrophic and unrecoverable WebGL error. Context lost.");return}e.plot.apply(e,e.plotArgs)};requestAnimationFrame(t)};var SE=["xaxis","yaxis","zaxis"];function Unr(e,t,r){for(var i=e.fullSceneLayout,n=0;n<3;n++){var a=SE[n],o=a.charAt(0),s=i[a],l=t[o],u=t[o+"calendar"],f=t["_"+o+"length"];if(!md.isArrayOrTypedArray(l))r[0][n]=Math.min(r[0][n],0),r[1][n]=Math.max(r[1][n],f-1);else for(var c,h=0;h<(f||l.length);h++)if(md.isArrayOrTypedArray(l[h]))for(var d=0;dv[1][o])v[0][o]=-1,v[1][o]=1;else{var S=v[1][o]-v[0][o];v[0][o]-=S/32,v[1][o]+=S/32}if(w=[v[0][o],v[1][o]],w=Vnr(w,l),v[0][o]=w[0],v[1][o]=w[1],l.isReversed()){var C=v[0][o];v[0][o]=v[1][o],v[1][o]=C}}else w=l.range,v[0][o]=l.r2l(w[0]),v[1][o]=l.r2l(w[1]);v[0][o]===v[1][o]&&(v[0][o]-=1,v[1][o]+=1),y[o]=v[1][o]-v[0][o],l.range=[v[0][o],v[1][o]],l.limitRange(),i.glplot.setBounds(o,{min:l.range[0]*d[o],max:l.range[1]*d[o]})}var k,D=f.aspectmode;if(D==="cube")k=[1,1,1];else if(D==="manual"){var F=f.aspectratio;k=[F.x,F.y,F.z]}else if(D==="auto"||D==="data"){var P=[1,1,1];for(o=0;o<3;++o){l=f[SE[o]],u=l.type;var I=m[u];P[o]=Math.pow(I.acc,1/I.count)/d[o]}D==="data"||Math.max.apply(null,P)/Math.min.apply(null,P)<=4?k=P:k=[1,1,1]}else throw new Error("scene.js aspectRatio was not one of the enumerated types");f.aspectratio.x=c.aspectratio.x=k[0],f.aspectratio.y=c.aspectratio.y=k[1],f.aspectratio.z=c.aspectratio.z=k[2],i.glplot.setAspectratio(f.aspectratio),i.viewInitial.aspectratio||(i.viewInitial.aspectratio={x:f.aspectratio.x,y:f.aspectratio.y,z:f.aspectratio.z}),i.viewInitial.aspectmode||(i.viewInitial.aspectmode=f.aspectmode);var L=f.domain||null,z=t._size||null;if(L&&z){var B=i.container.style;B.position="absolute",B.left=z.l+L.x[0]*z.w+"px",B.top=z.t+(1-L.y[1])*z.h+"px",B.width=z.w*(L.x[1]-L.x[0])+"px",B.height=z.h*(L.y[1]-L.y[0])+"px"}i.glplot.redraw()}};F0.destroy=function(){var e=this;e.glplot&&(e.camera.mouseListener.enabled=!1,e.container.removeEventListener("wheel",e.camera.wheelListener),e.camera=null,e.glplot.dispose(),e.container.parentNode.removeChild(e.container),e.glplot=null)};function Hnr(e){return[[e.eye.x,e.eye.y,e.eye.z],[e.center.x,e.center.y,e.center.z],[e.up.x,e.up.y,e.up.z]]}function jnr(e){return{up:{x:e.up[0],y:e.up[1],z:e.up[2]},center:{x:e.center[0],y:e.center[1],z:e.center[2]},eye:{x:e.eye[0],y:e.eye[1],z:e.eye[2]},projection:{type:e._ortho===!0?"orthographic":"perspective"}}}F0.getCamera=function(){var e=this;return e.camera.view.recalcMatrix(e.camera.view.lastT()),jnr(e.camera)};F0.setViewport=function(e){var t=this,r=e.camera;t.camera.lookAt.apply(this,Hnr(r)),t.glplot.setAspectratio(e.aspectratio);var i=r.projection.type==="orthographic",n=t.camera._ortho;i!==n&&(t.glplot.redraw(),t.glplot.clearRGBA(),t.glplot.dispose(),t.initializeGLPlot())};F0.isCameraChanged=function(e){var t=this,r=t.getCamera(),i=md.nestedProperty(e,t.id+".camera"),n=i.get();function a(u,f,c,h){var d=["up","center","eye"],p=["x","y","z"];return f[d[c]]&&u[d[c]][p[h]]===f[d[c]][p[h]]}var o=!1;if(n===void 0)o=!0;else{for(var s=0;s<3;s++)for(var l=0;l<3;l++)if(!a(r,n,s,l)){o=!0;break}(!n.projection||r.projection&&r.projection.type!==n.projection.type)&&(o=!0)}return o};F0.isAspectChanged=function(e){var t=this,r=t.glplot.getAspectratio(),i=md.nestedProperty(e,t.id+".aspectratio"),n=i.get();return n===void 0||n.x!==r.x||n.y!==r.y||n.z!==r.z};F0.saveLayout=function(e){var t=this,r=t.fullLayout,i,n,a,o,s,l,u=t.isCameraChanged(e),f=t.isAspectChanged(e),c=u||f;if(c){var h={};if(u&&(i=t.getCamera(),n=md.nestedProperty(e,t.id+".camera"),a=n.get(),h[t.id+".camera"]=a),f&&(o=t.glplot.getAspectratio(),s=md.nestedProperty(e,t.id+".aspectratio"),l=s.get(),h[t.id+".aspectratio"]=l),sR.call("_storeDirectGUIEdit",e,r._preGUI,h),u){n.set(i);var d=md.nestedProperty(r,t.id+".camera");d.set(i)}if(f){s.set(o);var p=md.nestedProperty(r,t.id+".aspectratio");p.set(o),t.glplot.redraw()}}return c};F0.updateFx=function(e,t){var r=this,i=r.camera;if(i)if(e==="orbit")i.mode="orbit",i.keyBindingMode="rotate";else if(e==="turntable"){i.up=[0,0,1],i.mode="turntable",i.keyBindingMode="rotate";var n=r.graphDiv,a=n._fullLayout,o=r.fullSceneLayout.camera,s=o.up.x,l=o.up.y,u=o.up.z;if(u/Math.sqrt(s*s+l*l+u*u)<.999){var f=r.id+".camera.up",c={x:0,y:0,z:1},h={};h[f]=c;var d=n.layout;sR.call("_storeDirectGUIEdit",d,a._preGUI,h),o.up=c,md.nestedProperty(d,f).set(c)}}else i.keyBindingMode=e;r.fullSceneLayout.hovermode=t};function Wnr(e,t,r){for(var i=0,n=r-1;i0)for(var s=255/o,l=0;l<3;++l)e[a+l]=Math.min(s*e[a+l],255)}}F0.toImage=function(e){var t=this;e||(e="png"),t.staticMode&&t.container.appendChild(ME),t.glplot.redraw();var r=t.glplot.gl,i=r.drawingBufferWidth,n=r.drawingBufferHeight;r.bindFramebuffer(r.FRAMEBUFFER,null);var a=new Uint8Array(i*n*4);r.readPixels(0,0,i,n,r.RGBA,r.UNSIGNED_BYTE,a),Wnr(a,i,n),$nr(a,i,n);var o=document.createElement("canvas");o.width=i,o.height=n;var s=o.getContext("2d",{willReadFrequently:!0}),l=s.createImageData(i,n);l.data.set(a),s.putImageData(l,0,0);var u;switch(e){case"jpeg":u=o.toDataURL("image/jpeg");break;case"webp":u=o.toDataURL("image/webp");break;default:u=o.toDataURL("image/png")}return t.staticMode&&t.container.removeChild(ME),u};F0.setConvert=function(){for(var e=this,t=0;t<3;t++){var r=e.fullSceneLayout[SE[t]];lR.setConvert(r,e.fullLayout),r.setScale=md.noop}};F0.make4thDimension=function(){var e=this,t=e.graphDiv,r=t._fullLayout;e._mockAxis={type:"linear",showexponent:"all",exponentformat:"B"},lR.setConvert(e._mockAxis,r)};sNe.exports=oNe});var fNe=K((NJr,uNe)=>{"use strict";uNe.exports={scene:{valType:"subplotid",dflt:"scene",editType:"calc+clearAxisTypes"}}});var sQ=K((VJr,cNe)=>{"use strict";var Ynr=wo(),Ll=Ph(),oQ=Os().extendFlat,Xnr=Ef().overrideAll;cNe.exports=Xnr({visible:Ll.visible,showspikes:{valType:"boolean",dflt:!0},spikesides:{valType:"boolean",dflt:!0},spikethickness:{valType:"number",min:0,dflt:2},spikecolor:{valType:"color",dflt:Ynr.defaultLine},showbackground:{valType:"boolean",dflt:!1},backgroundcolor:{valType:"color",dflt:"rgba(204, 204, 204, 0.5)"},showaxeslabels:{valType:"boolean",dflt:!0},color:Ll.color,categoryorder:Ll.categoryorder,categoryarray:Ll.categoryarray,title:{text:Ll.title.text,font:Ll.title.font},type:oQ({},Ll.type,{values:["-","linear","log","date","category"]}),autotypenumbers:Ll.autotypenumbers,autorange:Ll.autorange,autorangeoptions:{minallowed:Ll.autorangeoptions.minallowed,maxallowed:Ll.autorangeoptions.maxallowed,clipmin:Ll.autorangeoptions.clipmin,clipmax:Ll.autorangeoptions.clipmax,include:Ll.autorangeoptions.include,editType:"plot"},rangemode:Ll.rangemode,minallowed:Ll.minallowed,maxallowed:Ll.maxallowed,range:oQ({},Ll.range,{items:[{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}}],anim:!1}),tickmode:Ll.minor.tickmode,nticks:Ll.nticks,tick0:Ll.tick0,dtick:Ll.dtick,tickvals:Ll.tickvals,ticktext:Ll.ticktext,ticks:Ll.ticks,mirror:Ll.mirror,ticklen:Ll.ticklen,tickwidth:Ll.tickwidth,tickcolor:Ll.tickcolor,showticklabels:Ll.showticklabels,labelalias:Ll.labelalias,tickfont:Ll.tickfont,tickangle:Ll.tickangle,tickprefix:Ll.tickprefix,showtickprefix:Ll.showtickprefix,ticksuffix:Ll.ticksuffix,showticksuffix:Ll.showticksuffix,showexponent:Ll.showexponent,exponentformat:Ll.exponentformat,minexponent:Ll.minexponent,separatethousands:Ll.separatethousands,tickformat:Ll.tickformat,tickformatstops:Ll.tickformatstops,hoverformat:Ll.hoverformat,showline:Ll.showline,linecolor:Ll.linecolor,linewidth:Ll.linewidth,showgrid:Ll.showgrid,gridcolor:oQ({},Ll.gridcolor,{dflt:"rgb(204, 204, 204)"}),gridwidth:Ll.gridwidth,zeroline:Ll.zeroline,zerolinecolor:Ll.zerolinecolor,zerolinewidth:Ll.zerolinewidth},"plot","from-root")});var cQ=K((UJr,hNe)=>{"use strict";var lQ=sQ(),Znr=kf().attributes,uQ=Os().extendFlat,Knr=St().counterRegex;function fQ(e,t,r){return{x:{valType:"number",dflt:e,editType:"camera"},y:{valType:"number",dflt:t,editType:"camera"},z:{valType:"number",dflt:r,editType:"camera"},editType:"camera"}}hNe.exports={_arrayAttrRegexps:[Knr("scene",".annotations",!0)],bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"plot"},camera:{up:uQ(fQ(0,0,1),{}),center:uQ(fQ(0,0,0),{}),eye:uQ(fQ(1.25,1.25,1.25),{}),projection:{type:{valType:"enumerated",values:["perspective","orthographic"],dflt:"perspective",editType:"calc"},editType:"calc"},editType:"camera"},domain:Znr({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:lQ,yaxis:lQ,zaxis:lQ,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"}});var mNe=K((GJr,vNe)=>{"use strict";var Jnr=wo(),dNe=St(),Qnr=cu(),ear=sQ(),tar=JW(),rar=PM(),pNe=["xaxis","yaxis","zaxis"],iar=13600/187;vNe.exports=function(t,r,i){var n,a;function o(u,f){return dNe.coerce(n,a,ear,u,f)}for(var s=0;s{"use strict";var nar=St(),aar=wo(),oar=Ho(),sar=Jb(),lar=mNe(),yNe=cQ(),uar=Zh().getSubplotData,gNe="gl3d";xNe.exports=function(t,r,i){var n=r._basePlotModules.length>1;function a(o){if(!n){var s=nar.validate(t[o],yNe[o]);if(s)return t[o]}}sar(t,r,i,{type:gNe,attributes:yNe,handleDefaults:far,fullLayout:r,font:r.font,fullData:i,getDfltFromLayout:a,autotypenumbersDflt:r.autotypenumbers,paper_bgcolor:r.paper_bgcolor,calendar:r.calendar})};function far(e,t,r,i){for(var n=r("bgcolor"),a=aar.combine(n,i.paper_bgcolor),o=["up","center","eye"],s=0;s.999)&&(h="turntable")}else h="turntable";r("dragmode",h),r("hovermode",i.getDfltFromLayout("hovermode"))}});var q2=K(yd=>{"use strict";var car=Ef().overrideAll,har=wg(),dar=lNe(),par=Zh().getSubplotData,mar=St(),yar=(Rp(),or(Ip)),N4="gl3d",hQ="scene";yd.name=N4;yd.attr=hQ;yd.idRoot=hQ;yd.idRegex=yd.attrRegex=mar.counterRegex("scene");yd.attributes=fNe();yd.layoutAttributes=cQ();yd.baseLayoutAttrOverrides=car({hoverlabel:har.hoverlabel},"plot","nested");yd.supplyLayoutDefaults=bNe();yd.plot=function(t){for(var r=t._fullLayout,i=t._fullData,n=r._subplots[N4],a=0;a{"use strict";_Ne.exports={plot:FOe(),attributes:iQ(),markerSymbols:(iR(),or(rR)).default,supplyDefaults:qOe(),colorbar:[{container:"marker",min:"cmin",max:"cmax"},{container:"line",min:"cmin",max:"cmax"}],calc:NOe(),moduleType:"trace",name:"scatter3d",basePlotModule:q2(),categories:["gl3d","symbols","showLegend","scatter-like"],meta:{}}});var TNe=K(($Jr,ANe)=>{"use strict";ANe.exports=wNe()});var EE=K((YJr,ENe)=>{"use strict";var MNe=wo(),gar=Wu(),dQ=zf().axisHoverFormat,{hovertemplateAttrs:xar,templatefallbackAttrs:bar}=gu(),SNe=Tu(),pQ=Os().extendFlat,_ar=Ef().overrideAll;function vQ(e){return{valType:"boolean",dflt:!1}}function mQ(e){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:vQ("x"),y:vQ("y"),z:vQ("z")},color:{valType:"color",dflt:MNe.defaultLine},usecolormap:{valType:"boolean",dflt:!1},width:{valType:"number",min:1,max:16,dflt:2},highlight:{valType:"boolean",dflt:!0},highlightcolor:{valType:"color",dflt:MNe.defaultLine},highlightwidth:{valType:"number",min:1,max:16,dflt:2}}}var yQ=ENe.exports=_ar(pQ({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:xar(),hovertemplatefallback:bar(),xhoverformat:dQ("x"),yhoverformat:dQ("y"),zhoverformat:dQ("z"),connectgaps:{valType:"boolean",dflt:!1,editType:"calc"},surfacecolor:{valType:"data_array"}},gar("",{colorAttr:"z or surfacecolor",showScaleDflt:!0,autoColorDflt:!1,editTypeOverride:"calc"}),{contours:{x:mQ("x"),y:mQ("y"),z:mQ("z")},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,description:"Represents the level that incident rays are reflected in a single direction, causing shine."},roughness:{valType:"number",min:0,max:1,dflt:.5,description:"Alters specular reflection; the rougher the surface, the wider and less contrasty the shine."},fresnel:{valType:"number",min:0,max:5,dflt:.2}},opacity:{valType:"number",min:0,max:1,dflt:1},opacityscale:{valType:"any",editType:"calc"},hoverinfo:pQ({},SNe.hoverinfo),showlegend:pQ({},SNe.showlegend,{dflt:!1})}),"calc","nested");yQ.x.editType=yQ.y.editType=yQ.z.editType="calc+clearAxisTypes"});var xQ=K((XJr,DNe)=>{"use strict";var war=Ho(),kNe=St(),Aar=xh(),Tar=EE(),gQ=.1;function Mar(e,t){for(var r=[],i=32,n=0;n{"use strict";var FNe=T0();LNe.exports=function(t,r){r.surfacecolor?FNe(t,r,{vals:r.surfacecolor,containerStr:"",cLetter:"c"}):FNe(t,r,{vals:r.z,containerStr:"",cLetter:"c"})}});var ONe=K((KJr,qNe)=>{"use strict";var kar=Bh().gl_surface3d,V4=Bh().ndarray,Car=Bh().ndarray_linear_interpolate.d2,Dar=n8(),Far=a8(),kE=St().isArrayOrTypedArray,Lar=By().parseColorScale,zNe=Ry(),Par=gf().extractOpts;function RNe(e,t,r){this.scene=e,this.uid=r,this.surface=t,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 _1=RNe.prototype;_1.getXat=function(e,t,r,i){var n=kE(this.data.x)?kE(this.data.x[0])?this.data.x[t][e]:this.data.x[e]:e;return r===void 0?n:i.d2l(n,0,r)};_1.getYat=function(e,t,r,i){var n=kE(this.data.y)?kE(this.data.y[0])?this.data.y[t][e]:this.data.y[t]:t;return r===void 0?n:i.d2l(n,0,r)};_1.getZat=function(e,t,r,i){var n=this.data.z[t][e];return n===null&&this.data.connectgaps&&this.data._interpolatedZ&&(n=this.data._interpolatedZ[t][e]),r===void 0?n:i.d2l(n,0,r)};_1.handlePick=function(e){if(e.object===this.surface){var t=(e.data.index[0]-1)/this.dataScaleX-1,r=(e.data.index[1]-1)/this.dataScaleY-1,i=Math.max(Math.min(Math.round(t),this.data.z[0].length-1),0),n=Math.max(Math.min(Math.round(r),this.data._ylength-1),0);e.index=[i,n],e.traceCoordinate=[this.getXat(i,n),this.getYat(i,n),this.getZat(i,n)],e.dataCoordinate=[this.getXat(i,n,this.data.xcalendar,this.scene.fullSceneLayout.xaxis),this.getYat(i,n,this.data.ycalendar,this.scene.fullSceneLayout.yaxis),this.getZat(i,n,this.data.zcalendar,this.scene.fullSceneLayout.zaxis)];for(var a=0;a<3;a++){var o=e.dataCoordinate[a];o!=null&&(e.dataCoordinate[a]*=this.scene.dataScale[a])}var s=this.data.hovertext||this.data.text;return kE(s)&&s[n]&&s[n][i]!==void 0?e.textLabel=s[n][i]:s?e.textLabel=s:e.textLabel="",e.data.dataCoordinate=e.dataCoordinate.slice(),this.surface.highlight(e.data),this.scene.glplot.spikes.position=e.dataCoordinate,!0}};function zar(e){var t=e[0].rgb,r=e[e.length-1].rgb;return t[0]===r[0]&&t[1]===r[1]&&t[2]===r[2]&&t[3]===r[3]}var U4=[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 Iar(e,t){if(e0){r=U4[i];break}return r}function Bar(e,t){if(!(e<1||t<1)){for(var r=bQ(e),i=bQ(t),n=1,a=0;auR;)i--,i/=Rar(i),i++,i1?n:1};function Oar(e,t,r){var i=r[8]+r[2]*t[0]+r[5]*t[1];return e[0]=(r[6]+r[0]*t[0]+r[3]*t[1])/i,e[1]=(r[7]+r[1]*t[0]+r[4]*t[1])/i,e}function Nar(e,t,r){return Var(e,t,Oar,r),e}function Var(e,t,r,i){for(var n=[0,0],a=e.shape[0],o=e.shape[1],s=0;s0&&this.contourStart[i]!==null&&this.contourEnd[i]!==null&&this.contourEnd[i]>this.contourStart[i]))for(t[i]=!0,n=this.contourStart[i];nh&&(this.minValues[u]=h),this.maxValues[u]{"use strict";NNe.exports={attributes:EE(),supplyDefaults:xQ().supplyDefaults,colorbar:{min:"cmin",max:"cmax"},calc:PNe(),plot:ONe(),moduleType:"trace",name:"surface",basePlotModule:q2(),categories:["gl3d","2dMap","showLegend"],meta:{}}});var GNe=K((QJr,UNe)=>{"use strict";UNe.exports=VNe()});var G4=K((eQr,jNe)=>{"use strict";var Har=Wu(),_Q=zf().axisHoverFormat,{hovertemplateAttrs:jar,templatefallbackAttrs:War}=gu(),O2=EE(),HNe=Tu(),N2=Os().extendFlat;jNe.exports=N2({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:jar({editType:"calc"}),hovertemplatefallback:War({editType:"calc"}),xhoverformat:_Q("x"),yhoverformat:_Q("y"),zhoverformat:_Q("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"}},Har("",{colorAttr:"`intensity`",showScaleDflt:!0,editTypeOverride:"calc"}),{opacity:O2.opacity,flatshading:{valType:"boolean",dflt:!1,editType:"calc"},contour:{show:N2({},O2.contours.x.show,{}),color:O2.contours.x.color,width:O2.contours.x.width,editType:"calc"},lightposition:{x:N2({},O2.lightposition.x,{dflt:1e5}),y:N2({},O2.lightposition.y,{dflt:1e5}),z:N2({},O2.lightposition.z,{dflt:0}),editType:"calc"},lighting:N2({vertexnormalsepsilon:{valType:"number",min:0,max:1,dflt:1e-12,editType:"calc",description:"Epsilon for vertex normals calculation avoids math issues arising from degenerate geometry."},facenormalsepsilon:{valType:"number",min:0,max:1,dflt:1e-6,editType:"calc",description:"Epsilon for face normals calculation avoids math issues arising from degenerate geometry."},editType:"calc"},O2.lighting),hoverinfo:N2({},HNe.hoverinfo,{editType:"calc"}),showlegend:N2({},HNe.showlegend,{dflt:!1})})});var cR=K((tQr,$Ne)=>{"use strict";var $ar=Wu(),fR=zf().axisHoverFormat,{hovertemplateAttrs:Yar,templatefallbackAttrs:Xar}=gu(),CE=G4(),WNe=Tu(),wQ=Os().extendFlat,Zar=Ef().overrideAll;function AQ(e){return{show:{valType:"boolean",dflt:!1},locations:{valType:"data_array",dflt:[]},fill:{valType:"number",min:0,max:1,dflt:1}}}function TQ(e){return{show:{valType:"boolean",dflt:!0},fill:{valType:"number",min:0,max:1,dflt:1}}}var H4=$Ne.exports=Zar(wQ({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:AQ("x"),y:AQ("y"),z:AQ("z")},caps:{x:TQ("x"),y:TQ("y"),z:TQ("z")},text:{valType:"string",dflt:"",arrayOk:!0},hovertext:{valType:"string",dflt:"",arrayOk:!0},hovertemplate:Yar(),hovertemplatefallback:Xar(),xhoverformat:fR("x"),yhoverformat:fR("y"),zhoverformat:fR("z"),valuehoverformat:fR("value",1),showlegend:wQ({},WNe.showlegend,{dflt:!1})},$ar("",{colorAttr:"`value`",showScaleDflt:!0,editTypeOverride:"calc"}),{opacity:CE.opacity,lightposition:CE.lightposition,lighting:CE.lighting,flatshading:CE.flatshading,contour:CE.contour,hoverinfo:wQ({},WNe.hoverinfo)}),"calc","nested");H4.flatshading.dflt=!0;H4.lighting.facenormalsepsilon.dflt=0;H4.x.editType=H4.y.editType=H4.z.editType=H4.value.editType="calc+clearAxisTypes"});var MQ=K((rQr,XNe)=>{"use strict";var Kar=St(),Jar=Ho(),Qar=cR(),eor=xh();function tor(e,t,r,i){function n(a,o){return Kar.coerce(e,t,Qar,a,o)}YNe(e,t,r,i,n)}function YNe(e,t,r,i,n){var a=n("isomin"),o=n("isomax");o!=null&&a!==void 0&&a!==null&&a>o&&(t.isomin=null,t.isomax=null);var s=n("x"),l=n("y"),u=n("z"),f=n("value");if(!s||!s.length||!l||!l.length||!u||!u.length||!f||!f.length){t.visible=!1;return}var c=Jar.getComponentMethod("calendars","handleTraceDefaults");c(e,t,["x","y","z"],i),n("valuehoverformat"),["x","y","z"].forEach(function(v){n(v+"hoverformat");var y="caps."+v,m=n(y+".show");m&&n(y+".fill");var w="slices."+v,_=n(w+".show");_&&(n(w+".fill"),n(w+".locations"))});var h=n("spaceframe.show");h&&n("spaceframe.fill");var d=n("surface.show");d&&(n("surface.count"),n("surface.fill"),n("surface.pattern"));var p=n("contour.show");p&&(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(v){n(v)}),eor(e,t,i,n,{prefix:"",cLetter:"c"}),t._length=null}XNe.exports={supplyDefaults:tor,supplyIsoDefaults:YNe}});var hR=K((iQr,KNe)=>{"use strict";var EQ=St(),ror=T0();function ior(e,t){t._len=Math.min(t.u.length,t.v.length,t.w.length,t.x.length,t.y.length,t.z.length),t._u=Mm(t.u,t._len),t._v=Mm(t.v,t._len),t._w=Mm(t.w,t._len),t._x=Mm(t.x,t._len),t._y=Mm(t.y,t._len),t._z=Mm(t.z,t._len);var r=ZNe(t);t._gridFill=r.fill,t._Xs=r.Xs,t._Ys=r.Ys,t._Zs=r.Zs,t._len=r.len;var i=0,n,a,o;t.starts&&(n=Mm(t.starts.x||[]),a=Mm(t.starts.y||[]),o=Mm(t.starts.z||[]),i=Math.min(n.length,a.length,o.length)),t._startsX=n||[],t._startsY=a||[],t._startsZ=o||[];var s=0,l=1/0,u;for(u=0;u1&&(_=t[n-1],M=r[n-1],T=i[n-1]),a=0;a_?"-":"+")+"x"),p=p.replace("y",(b>M?"-":"+")+"y"),p=p.replace("z",(x>T?"-":"+")+"z");var S=function(){n=0,A=[],g=[],E=[]};(!n||n{"use strict";var nor=T0(),aor=hR().processGrid,dR=hR().filter;JNe.exports=function(t,r){r._len=Math.min(r.x.length,r.y.length,r.z.length,r.value.length),r._x=dR(r.x,r._len),r._y=dR(r.y,r._len),r._z=dR(r.z,r._len),r._value=dR(r.value,r._len);var i=aor(r);r._gridFill=i.fill,r._Xs=i.Xs,r._Ys=i.Ys,r._Zs=i.Zs,r._len=i.len;for(var n=1/0,a=-1/0,o=0;o{"use strict";QNe.exports=function(t,r,i,n){n=n||t.length;for(var a=new Array(n),o=0;o{"use strict";var oor=Bh().gl_mesh3d,sor=By().parseColorScale,lor=St().isArrayOrTypedArray,uor=Ry(),cor=gf().extractOpts,eVe=j4(),DE=function(e,t){for(var r=t.length-1;r>0;r--){var i=Math.min(t[r],t[r-1]),n=Math.max(t[r],t[r-1]);if(n>i&&i-1}function O(_e,xe){return _e===null?xe:_e}function W(_e,xe,Ae){S();var se=[xe],pe=[Ae];if(I>=1)se=[xe],pe=[Ae];else if(I>0){var fe=z(xe,Ae);se=fe.xyzv,pe=fe.abc}for(var Re=0;Re-1?Ae[Ke]:E(tt,at,Ge);Be>-1?We[Ke]=Be:We[Ke]=k(tt,at,Ge,O(_e,ge))}D(We[0],We[1],We[2])}}function X(_e,xe,Ae){var se=function(pe,fe,Re){W(_e,[xe[pe],xe[fe],xe[Re]],[Ae[pe],Ae[fe],Ae[Re]])};se(0,1,2),se(2,3,0)}function Z(_e,xe,Ae){var se=function(pe,fe,Re){W(_e,[xe[pe],xe[fe],xe[Re]],[Ae[pe],Ae[fe],Ae[Re]])};se(0,1,2),se(3,0,1),se(2,3,0),se(1,2,3)}function H(_e,xe,Ae,se){var pe=_e[3];pese&&(pe=se);for(var fe=(_e[3]-pe)/(_e[3]-xe[3]+1e-9),Re=[],We=0;We<4;We++)Re[We]=(1-fe)*_e[We]+fe*xe[We];return Re}function q(_e,xe,Ae){return _e>=xe&&_e<=Ae}function Q(_e){var xe=.001*(M-b);return _e>=b-xe&&_e<=M+xe}function N(_e){for(var xe=[],Ae=0;Ae<4;Ae++){var se=_e[Ae];xe.push([e._x[se],e._y[se],e._z[se],e._value[se]])}return xe}var U=3;function J(_e,xe,Ae,se,pe,fe){fe||(fe=1),Ae=[-1,-1,-1];var Re=!1,We=[q(xe[0][3],se,pe),q(xe[1][3],se,pe),q(xe[2][3],se,pe)];if(!We[0]&&!We[1]&&!We[2])return!1;var Ke=function(at,Ge,ge){return Q(Ge[0][3])&&Q(Ge[1][3])&&Q(Ge[2][3])?(W(at,Ge,ge),!0):feWe?[w,fe]:[fe,_];we(xe,Ke[0],Ke[1])}}var tt=[[Math.min(b,_),Math.max(b,_)],[Math.min(w,M),Math.max(w,M)]];["x","y","z"].forEach(function(at){for(var Ge=[],ge=0;ge0&&(Pe.push(ot.id),at==="x"?Se.push([ot.distRatio,0,0]):at==="y"?Se.push([0,ot.distRatio,0]):Se.push([0,0,ot.distRatio]))}else at==="x"?Ue=ye(1,d-1):at==="y"?Ue=ye(1,p-1):Ue=ye(1,v-1);Pe.length>0&&(at==="x"?Ge[Be]=oe(_e,Pe,Ze,Le,Se,Ge[Be]):at==="y"?Ge[Be]=Y(_e,Pe,Ze,Le,Se,Ge[Be]):Ge[Be]=ne(_e,Pe,Ze,Le,Se,Ge[Be]),Be++),Ue.length>0&&(at==="x"?Ge[Be]=ze(_e,Ue,Ze,Le,Ge[Be]):at==="y"?Ge[Be]=ke(_e,Ue,Ze,Le,Ge[Be]):Ge[Be]=le(_e,Ue,Ze,Le,Ge[Be]),Be++)}var ut=e.caps[at];ut.show&&ut.fill&&(L(ut.fill),at==="x"?Ge[Be]=ze(_e,[0,d-1],Ze,Le,Ge[Be]):at==="y"?Ge[Be]=ke(_e,[0,p-1],Ze,Le,Ge[Be]):Ge[Be]=le(_e,[0,v-1],Ze,Le,Ge[Be]),Be++)}}),s===0&&C(),e._meshX=x,e._meshY=T,e._meshZ=A,e._meshIntensity=g,e._Xs=f,e._Ys=c,e._Zs=h}return ue(),e}function dor(e,t){var r=e.glplot.gl,i=oor({gl:r}),n=new tVe(e,i,t.uid);return i._trace=n,n.update(t),e.glplot.add(i),n}iVe.exports={findNearestOnAxis:DE,generateIsoMeshes:rVe,createIsosurfaceTrace:dor}});var aVe=K((sQr,nVe)=>{"use strict";nVe.exports={attributes:cR(),supplyDefaults:MQ().supplyDefaults,calc:kQ(),colorbar:{min:"cmin",max:"cmax"},plot:pR().createIsosurfaceTrace,moduleType:"trace",name:"isosurface",basePlotModule:q2(),categories:["gl3d","showLegend"],meta:{}}});var sVe=K((lQr,oVe)=>{"use strict";oVe.exports=aVe()});var FQ=K((uQr,uVe)=>{"use strict";var por=Wu(),Ic=cR(),vor=EE(),lVe=Tu(),DQ=Os().extendFlat,mor=Ef().overrideAll,vR=uVe.exports=mor(DQ({x:Ic.x,y:Ic.y,z:Ic.z,value:Ic.value,isomin:Ic.isomin,isomax:Ic.isomax,surface:Ic.surface,spaceframe:{show:{valType:"boolean",dflt:!1},fill:{valType:"number",min:0,max:1,dflt:1}},slices:Ic.slices,caps:Ic.caps,text:Ic.text,hovertext:Ic.hovertext,xhoverformat:Ic.xhoverformat,yhoverformat:Ic.yhoverformat,zhoverformat:Ic.zhoverformat,valuehoverformat:Ic.valuehoverformat,hovertemplate:Ic.hovertemplate,hovertemplatefallback:Ic.hovertemplatefallback},por("",{colorAttr:"`value`",showScaleDflt:!0,editTypeOverride:"calc"}),{colorbar:Ic.colorbar,opacity:Ic.opacity,opacityscale:vor.opacityscale,lightposition:Ic.lightposition,lighting:Ic.lighting,flatshading:Ic.flatshading,contour:Ic.contour,hoverinfo:DQ({},lVe.hoverinfo),showlegend:DQ({},lVe.showlegend,{dflt:!1})}),"calc","nested");vR.x.editType=vR.y.editType=vR.z.editType=vR.value.editType="calc+clearAxisTypes"});var cVe=K((fQr,fVe)=>{"use strict";var yor=St(),gor=FQ(),xor=MQ().supplyIsoDefaults,bor=xQ().opacityscaleDefaults;fVe.exports=function(t,r,i,n){function a(o,s){return yor.coerce(t,r,gor,o,s)}xor(t,r,i,n,a),bor(t,r,n,a)}});var vVe=K((cQr,pVe)=>{"use strict";var _or=Bh().gl_mesh3d,wor=By().parseColorScale,Aor=St().isArrayOrTypedArray,Tor=Ry(),Mor=gf().extractOpts,hVe=j4(),LQ=pR().findNearestOnAxis,Sor=pR().generateIsoMeshes;function dVe(e,t,r){this.scene=e,this.uid=r,this.mesh=t,this.name="",this.data=null,this.showContour=!1}var PQ=dVe.prototype;PQ.handlePick=function(e){if(e.object===this.mesh){var t=e.data.index,r=this.data._meshX[t],i=this.data._meshY[t],n=this.data._meshZ[t],a=this.data._Ys.length,o=this.data._Zs.length,s=LQ(r,this.data._Xs).id,l=LQ(i,this.data._Ys).id,u=LQ(n,this.data._Zs).id,f=e.index=u+o*l+o*a*s;e.traceCoordinate=[this.data._meshX[f],this.data._meshY[f],this.data._meshZ[f],this.data._value[f]];var c=this.data.hovertext||this.data.text;return Aor(c)&&c[f]!==void 0?e.textLabel=c[f]:c&&(e.textLabel=c),!0}};PQ.update=function(e){var t=this.scene,r=t.fullSceneLayout;this.data=Sor(e);function i(l,u,f,c){return u.map(function(h){return l.d2l(h,0,c)*f})}var n=hVe(i(r.xaxis,e._meshX,t.dataScale[0],e.xcalendar),i(r.yaxis,e._meshY,t.dataScale[1],e.ycalendar),i(r.zaxis,e._meshZ,t.dataScale[2],e.zcalendar)),a=hVe(e._meshI,e._meshJ,e._meshK),o={positions:n,cells:a,lightPosition:[e.lightposition.x,e.lightposition.y,e.lightposition.z],ambient:e.lighting.ambient,diffuse:e.lighting.diffuse,specular:e.lighting.specular,roughness:e.lighting.roughness,fresnel:e.lighting.fresnel,vertexNormalsEpsilon:e.lighting.vertexnormalsepsilon,faceNormalsEpsilon:e.lighting.facenormalsepsilon,opacity:e.opacity,opacityscale:e.opacityscale,contourEnable:e.contour.show,contourColor:Tor(e.contour.color).slice(0,3),contourWidth:e.contour.width,useFacetNormals:e.flatshading},s=Mor(e);o.vertexIntensity=e._meshIntensity,o.vertexIntensityBounds=[s.min,s.max],o.colormap=wor(e),this.mesh.update(o)};PQ.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()};function Eor(e,t){var r=e.glplot.gl,i=_or({gl:r}),n=new dVe(e,i,t.uid);return i._trace=n,n.update(t),e.glplot.add(i),n}pVe.exports=Eor});var yVe=K((hQr,mVe)=>{"use strict";mVe.exports={attributes:FQ(),supplyDefaults:cVe(),calc:kQ(),colorbar:{min:"cmin",max:"cmax"},plot:vVe(),moduleType:"trace",name:"volume",basePlotModule:q2(),categories:["gl3d","showLegend"],meta:{}}});var xVe=K((dQr,gVe)=>{"use strict";gVe.exports=yVe()});var wVe=K((pQr,_Ve)=>{"use strict";var kor=Ho(),bVe=St(),Cor=xh(),Dor=G4();_Ve.exports=function(t,r,i,n){function a(f,c){return bVe.coerce(t,r,Dor,f,c)}function o(f){var c=f.map(function(h){var d=a(h);return d&&bVe.isArrayOrTypedArray(d)?d:null});return c.every(function(h){return h&&h.length===c[0].length})&&c}var s=o(["x","y","z"]);if(!s){r.visible=!1;return}if(o(["i","j","k"]),r.i&&(!r.j||!r.k)||r.j&&(!r.k||!r.i)||r.k&&(!r.i||!r.j)){r.visible=!1;return}var l=kor.getComponentMethod("calendars","handleTraceDefaults");l(t,r,["x","y","z"],n),["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(f){a(f)});var u=a("contour.show");u&&(a("contour.color"),a("contour.width")),"intensity"in t?(a("intensity"),a("intensitymode"),Cor(t,r,n,a,{prefix:"",cLetter:"c"})):(r.showscale=!1,"facecolor"in t?a("facecolor"):"vertexcolor"in t?a("vertexcolor"):a("color",i)),a("text"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback"),a("xhoverformat"),a("yhoverformat"),a("zhoverformat"),r._length=null}});var TVe=K((vQr,AVe)=>{"use strict";var For=T0();AVe.exports=function(t,r){r.intensity&&For(t,r,{vals:r.intensity,containerStr:"",cLetter:"c"})}});var CVe=K((mQr,kVe)=>{"use strict";var Lor=Bh().gl_mesh3d,Por=Bh().delaunay_triangulate,zor=Bh().alpha_shape,Ior=Bh().convex_hull,Ror=By().parseColorScale,Bor=St().isArrayOrTypedArray,BQ=Ry(),qor=gf().extractOpts,MVe=j4();function EVe(e,t,r){this.scene=e,this.uid=r,this.mesh=t,this.name="",this.color="#fff",this.data=null,this.showContour=!1}var qQ=EVe.prototype;qQ.handlePick=function(e){if(e.object===this.mesh){var t=e.index=e.data.index;e.data._cellCenter?e.traceCoordinate=e.data.dataCoordinate:e.traceCoordinate=[this.data.x[t],this.data.y[t],this.data.z[t]];var r=this.data.hovertext||this.data.text;return Bor(r)&&r[t]!==void 0?e.textLabel=r[t]:r&&(e.textLabel=r),!0}};function SVe(e){for(var t=[],r=e.length,i=0;i=t-.5)return!1;return!0}qQ.update=function(e){var t=this.scene,r=t.fullSceneLayout;this.data=e;var i=e.x.length,n=MVe(zQ(r.xaxis,e.x,t.dataScale[0],e.xcalendar),zQ(r.yaxis,e.y,t.dataScale[1],e.ycalendar),zQ(r.zaxis,e.z,t.dataScale[2],e.zcalendar)),a;if(e.i&&e.j&&e.k){if(e.i.length!==e.j.length||e.j.length!==e.k.length||!RQ(e.i,i)||!RQ(e.j,i)||!RQ(e.k,i))return;a=MVe(IQ(e.i),IQ(e.j),IQ(e.k))}else e.alphahull===0?a=Ior(n):e.alphahull>0?a=zor(e.alphahull,n):a=Oor(e.delaunayaxis,n);var o={positions:n,cells:a,lightPosition:[e.lightposition.x,e.lightposition.y,e.lightposition.z],ambient:e.lighting.ambient,diffuse:e.lighting.diffuse,specular:e.lighting.specular,roughness:e.lighting.roughness,fresnel:e.lighting.fresnel,vertexNormalsEpsilon:e.lighting.vertexnormalsepsilon,faceNormalsEpsilon:e.lighting.facenormalsepsilon,opacity:e.opacity,contourEnable:e.contour.show,contourColor:BQ(e.contour.color).slice(0,3),contourWidth:e.contour.width,useFacetNormals:e.flatshading};if(e.intensity){var s=qor(e);this.color="#fff";var l=e.intensitymode;o[l+"Intensity"]=e.intensity,o[l+"IntensityBounds"]=[s.min,s.max],o.colormap=Ror(e)}else e.vertexcolor?(this.color=e.vertexcolor[0],o.vertexColors=SVe(e.vertexcolor)):e.facecolor?(this.color=e.facecolor[0],o.cellColors=SVe(e.facecolor)):(this.color=e.color,o.meshColor=BQ(e.color));this.mesh.update(o)};qQ.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()};function Nor(e,t){var r=e.glplot.gl,i=Lor({gl:r}),n=new EVe(e,i,t.uid);return i._trace=n,n.update(t),e.glplot.add(i),n}kVe.exports=Nor});var FVe=K((yQr,DVe)=>{"use strict";DVe.exports={attributes:G4(),supplyDefaults:wVe(),calc:TVe(),colorbar:{min:"cmin",max:"cmax"},plot:CVe(),moduleType:"trace",name:"mesh3d",basePlotModule:q2(),categories:["gl3d","showLegend"],meta:{}}});var PVe=K((gQr,LVe)=>{"use strict";LVe.exports=FVe()});var NQ=K((xQr,IVe)=>{"use strict";var Vor=Wu(),W4=zf().axisHoverFormat,{hovertemplateAttrs:Uor,templatefallbackAttrs:Gor}=gu(),Hor=G4(),zVe=Tu(),OQ=Os().extendFlat,mR={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","raw"],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:Uor({editType:"calc"},{keys:["norm"]}),hovertemplatefallback:Gor({editType:"calc"}),uhoverformat:W4("u",1),vhoverformat:W4("v",1),whoverformat:W4("w",1),xhoverformat:W4("x"),yhoverformat:W4("y"),zhoverformat:W4("z"),showlegend:OQ({},zVe.showlegend,{dflt:!1})};OQ(mR,Vor("",{colorAttr:"u/v/w norm",showScaleDflt:!0,editTypeOverride:"calc"}));var jor=["opacity","lightposition","lighting"];jor.forEach(function(e){mR[e]=Hor[e]});mR.hoverinfo=OQ({},zVe.hoverinfo,{editType:"calc",flags:["x","y","z","u","v","w","norm","text","name"],dflt:"x+y+z+norm+text+name"});IVe.exports=mR});var BVe=K((bQr,RVe)=>{"use strict";var Wor=St(),$or=xh(),Yor=NQ();RVe.exports=function(t,r,i,n){function a(d,p){return Wor.coerce(t,r,Yor,d,p)}var o=a("u"),s=a("v"),l=a("w"),u=a("x"),f=a("y"),c=a("z");if(!o||!o.length||!s||!s.length||!l||!l.length||!u||!u.length||!f||!f.length||!c||!c.length){r.visible=!1;return}var h=a("sizemode");a("sizeref",h==="raw"?1:.5),a("anchor"),a("lighting.ambient"),a("lighting.diffuse"),a("lighting.specular"),a("lighting.roughness"),a("lighting.fresnel"),a("lightposition.x"),a("lightposition.y"),a("lightposition.z"),$or(t,r,n,a,{prefix:"",cLetter:"c"}),a("text"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback"),a("uhoverformat"),a("vhoverformat"),a("whoverformat"),a("xhoverformat"),a("yhoverformat"),a("zhoverformat"),r._length=null}});var OVe=K((_Qr,qVe)=>{"use strict";var Xor=T0();qVe.exports=function(t,r){for(var i=r.u,n=r.v,a=r.w,o=Math.min(r.x.length,r.y.length,r.z.length,i.length,n.length,a.length),s=-1/0,l=1/0,u=0;u{"use strict";var Zor=Bh().gl_cone3d,Kor=Bh().gl_cone3d.createConeMesh,Jor=St().simpleMap,Qor=By().parseColorScale,esr=gf().extractOpts,tsr=St().isArrayOrTypedArray,NVe=j4();function VVe(e,t){this.scene=e,this.uid=t,this.mesh=null,this.data=null}var VQ=VVe.prototype;VQ.handlePick=function(e){if(e.object===this.mesh){var t=e.index=e.data.index,r=this.data.x[t],i=this.data.y[t],n=this.data.z[t],a=this.data.u[t],o=this.data.v[t],s=this.data.w[t];e.traceCoordinate=[r,i,n,a,o,s,Math.sqrt(a*a+o*o+s*s)];var l=this.data.hovertext||this.data.text;return tsr(l)&&l[t]!==void 0?e.textLabel=l[t]:l&&(e.textLabel=l),!0}};var rsr={xaxis:0,yaxis:1,zaxis:2},isr={tip:1,tail:0,cm:.25,center:.5},nsr={tip:1,tail:1,cm:.75,center:.5};function UVe(e,t){var r=e.fullSceneLayout,i=e.dataScale,n={};function a(f,c){var h=r[c],d=i[rsr[c]];return Jor(f,function(p){return h.d2l(p)*d})}n.vectors=NVe(a(t.u,"xaxis"),a(t.v,"yaxis"),a(t.w,"zaxis"),t._len),n.positions=NVe(a(t.x,"xaxis"),a(t.y,"yaxis"),a(t.z,"zaxis"),t._len);var o=esr(t);n.colormap=Qor(t),n.vertexIntensityBounds=[o.min/t._normMax,o.max/t._normMax],n.coneOffset=isr[t.anchor];var s=t.sizemode;s==="scaled"?n.coneSize=t.sizeref||.5:s==="absolute"?n.coneSize=t.sizeref&&t._normMax?t.sizeref/t._normMax:.5:s==="raw"&&(n.coneSize=t.sizeref),n.coneSizemode=s;var l=Zor(n),u=t.lightposition;return l.lightPosition=[u.x,u.y,u.z],l.ambient=t.lighting.ambient,l.diffuse=t.lighting.diffuse,l.specular=t.lighting.specular,l.roughness=t.lighting.roughness,l.fresnel=t.lighting.fresnel,l.opacity=t.opacity,t._pad=nsr[t.anchor]*l.vectorScale*l.coneScale*t._normMax,l}VQ.update=function(e){this.data=e;var t=UVe(this.scene,e);this.mesh.update(t)};VQ.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()};function asr(e,t){var r=e.glplot.gl,i=UVe(e,t),n=Kor(r,i),a=new VVe(e,t.uid);return a.mesh=n,a.data=t,n._trace=a,e.glplot.add(n),a}GVe.exports=asr});var WVe=K((AQr,jVe)=>{"use strict";jVe.exports={moduleType:"trace",name:"cone",basePlotModule:q2(),categories:["gl3d","showLegend"],attributes:NQ(),supplyDefaults:BVe(),colorbar:{min:"cmin",max:"cmax"},calc:OVe(),plot:HVe(),eventData:function(e,t){return e.norm=t.traceCoordinate[6],e},meta:{}}});var YVe=K((TQr,$Ve)=>{"use strict";$Ve.exports=WVe()});var GQ=K((MQr,ZVe)=>{"use strict";var osr=Wu(),$4=zf().axisHoverFormat,{hovertemplateAttrs:ssr,templatefallbackAttrs:lsr}=gu(),usr=G4(),XVe=Tu(),UQ=Os().extendFlat,yR={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"},starts:{x:{valType:"data_array",editType:"calc"},y:{valType:"data_array",editType:"calc"},z:{valType:"data_array",editType:"calc"},editType:"calc"},maxdisplayed:{valType:"integer",min:0,dflt:1e3,editType:"calc"},sizeref:{valType:"number",editType:"calc",min:0,dflt:1},text:{valType:"string",dflt:"",editType:"calc"},hovertext:{valType:"string",dflt:"",editType:"calc"},hovertemplate:ssr({editType:"calc"},{keys:["tubex","tubey","tubez","tubeu","tubev","tubew","norm","divergence"]}),hovertemplatefallback:lsr({editType:"calc"}),uhoverformat:$4("u",1),vhoverformat:$4("v",1),whoverformat:$4("w",1),xhoverformat:$4("x"),yhoverformat:$4("y"),zhoverformat:$4("z"),showlegend:UQ({},XVe.showlegend,{dflt:!1})};UQ(yR,osr("",{colorAttr:"u/v/w norm",showScaleDflt:!0,editTypeOverride:"calc"}));var fsr=["opacity","lightposition","lighting"];fsr.forEach(function(e){yR[e]=usr[e]});yR.hoverinfo=UQ({},XVe.hoverinfo,{editType:"calc",flags:["x","y","z","u","v","w","norm","divergence","text","name"],dflt:"x+y+z+norm+text+name"});ZVe.exports=yR});var JVe=K((SQr,KVe)=>{"use strict";var csr=St(),hsr=xh(),dsr=GQ();KVe.exports=function(t,r,i,n){function a(h,d){return csr.coerce(t,r,dsr,h,d)}var o=a("u"),s=a("v"),l=a("w"),u=a("x"),f=a("y"),c=a("z");if(!o||!o.length||!s||!s.length||!l||!l.length||!u||!u.length||!f||!f.length||!c||!c.length){r.visible=!1;return}a("starts.x"),a("starts.y"),a("starts.z"),a("maxdisplayed"),a("sizeref"),a("lighting.ambient"),a("lighting.diffuse"),a("lighting.specular"),a("lighting.roughness"),a("lighting.fresnel"),a("lightposition.x"),a("lightposition.y"),a("lightposition.z"),hsr(t,r,n,a,{prefix:"",cLetter:"c"}),a("text"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback"),a("uhoverformat"),a("vhoverformat"),a("whoverformat"),a("xhoverformat"),a("yhoverformat"),a("zhoverformat"),r._length=null}});var oUe=K((EQr,aUe)=>{"use strict";var tUe=Bh().gl_streamtube3d,psr=tUe.createTubeMesh,vsr=St(),msr=By().parseColorScale,ysr=gf().extractOpts,QVe=j4(),rUe={xaxis:0,yaxis:1,zaxis:2};function iUe(e,t){this.scene=e,this.uid=t,this.mesh=null,this.data=null}var jQ=iUe.prototype;jQ.handlePick=function(e){var t=this.scene.fullSceneLayout,r=this.scene.dataScale;function i(o,s){var l=t[s],u=r[rUe[s]];return l.l2c(o)/u}if(e.object===this.mesh){var n=e.data.position,a=e.data.velocity;return e.traceCoordinate=[i(n[0],"xaxis"),i(n[1],"yaxis"),i(n[2],"zaxis"),i(a[0],"xaxis"),i(a[1],"yaxis"),i(a[2],"zaxis"),e.data.intensity*this.data._normMax,e.data.divergence],e.textLabel=this.data.hovertext||this.data.text,!0}};function eUe(e){var t=e.length,r;return t>2?r=e.slice(1,t-1):t===2?r=[(e[0]+e[1])/2]:r=e,r}function HQ(e){var t=e.length;return t===1?[.5,.5]:[e[1]-e[0],e[t-1]-e[t-2]]}function nUe(e,t){var r=e.fullSceneLayout,i=e.dataScale,n=t._len,a={};function o(C,k){var D=r[k],F=i[rUe[k]];return vsr.simpleMap(C,function(P){return D.d2l(P)*F})}if(a.vectors=QVe(o(t._u,"xaxis"),o(t._v,"yaxis"),o(t._w,"zaxis"),n),!n)return{positions:[],cells:[]};var s=o(t._Xs,"xaxis"),l=o(t._Ys,"yaxis"),u=o(t._Zs,"zaxis");a.meshgrid=[s,l,u],a.gridFill=t._gridFill;var f=t._slen;if(f)a.startingPositions=QVe(o(t._startsX,"xaxis"),o(t._startsY,"yaxis"),o(t._startsZ,"zaxis"));else{for(var c=l[0],h=eUe(s),d=eUe(u),p=new Array(h.length*d.length),v=0,y=0;y{"use strict";sUe.exports={moduleType:"trace",name:"streamtube",basePlotModule:q2(),categories:["gl3d","showLegend"],attributes:GQ(),supplyDefaults:JVe(),colorbar:{min:"cmin",max:"cmax"},calc:hR().calc,plot:oUe(),eventData:function(e,t){return e.tubex=e.x,e.tubey=e.y,e.tubez=e.z,e.tubeu=t.traceCoordinate[3],e.tubev=t.traceCoordinate[4],e.tubew=t.traceCoordinate[5],e.norm=t.traceCoordinate[6],e.divergence=t.traceCoordinate[7],delete e.x,delete e.y,delete e.z,e},meta:{}}});var fUe=K((CQr,uUe)=>{"use strict";uUe.exports=lUe()});var Y4=K((DQr,vUe)=>{"use strict";var{hovertemplateAttrs:xsr,texttemplateAttrs:bsr,templatefallbackAttrs:cUe}=gu(),_sr=sm(),Sm=Qf(),wsr=Tu(),hUe=Wu(),Asr=gh().dash,B_=Os().extendFlat,Tsr=Ef().overrideAll,yv=Sm.marker,dUe=Sm.line,pUe=yv.line;vUe.exports=Tsr({lon:{valType:"data_array"},lat:{valType:"data_array"},locations:{valType:"data_array"},locationmode:{valType:"enumerated",values:["ISO-3","USA-states","country names","geojson-id"],dflt:"ISO-3"},geojson:{valType:"any",editType:"calc"},featureidkey:{valType:"string",editType:"calc",dflt:"id"},mode:B_({},Sm.mode,{dflt:"markers"}),text:B_({},Sm.text,{}),texttemplate:bsr({editType:"plot"},{keys:["lat","lon","location","text"]}),texttemplatefallback:cUe({editType:"plot"}),hovertext:B_({},Sm.hovertext,{}),textfont:Sm.textfont,textposition:Sm.textposition,line:{color:dUe.color,width:dUe.width,dash:Asr},connectgaps:Sm.connectgaps,marker:B_({symbol:yv.symbol,opacity:yv.opacity,angle:yv.angle,angleref:B_({},yv.angleref,{values:["previous","up","north"]}),standoff:yv.standoff,size:yv.size,sizeref:yv.sizeref,sizemin:yv.sizemin,sizemode:yv.sizemode,colorbar:yv.colorbar,line:B_({width:pUe.width,dash:pUe.dash},hUe("marker.line")),gradient:yv.gradient},hUe("marker")),fill:{valType:"enumerated",values:["none","toself"],dflt:"none"},fillcolor:_sr(),selected:Sm.selected,unselected:Sm.unselected,hoverinfo:B_({},wsr.hoverinfo,{flags:["lon","lat","location","text","name"]}),hovertemplate:xsr(),hovertemplatefallback:cUe()},"calc","nested")});var yUe=K((FQr,mUe)=>{"use strict";var WQ=St(),$Q=ff(),Msr=Xp(),Ssr=Qv(),Esr=e1(),ksr=um(),Csr=Y4();mUe.exports=function(t,r,i,n){function a(d,p){return WQ.coerce(t,r,Csr,d,p)}var o=a("locations"),s;if(o&&o.length){var l=a("geojson"),u;(typeof l=="string"&&l!==""||WQ.isPlainObject(l))&&(u="geojson-id");var f=a("locationmode",u);f==="geojson-id"&&a("featureidkey"),s=o.length}else{var c=a("lon")||[],h=a("lat")||[];s=Math.min(c.length,h.length)}if(!s){r.visible=!1;return}r._length=s,a("text"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback"),a("mode"),$Q.hasMarkers(r)&&Msr(t,r,i,n,a,{gradient:!0}),$Q.hasLines(r)&&(Ssr(t,r,i,n,a),a("connectgaps")),$Q.hasText(r)&&(a("texttemplate"),a("texttemplatefallback"),Esr(t,r,n,a)),a("fill"),r.fill!=="none"&&ksr(t,r,i,a),WQ.coerceSelectionMarkerOpacity(r,a)}});var bUe=K((LQr,xUe)=>{"use strict";var gUe=Cs();xUe.exports=function(t,r,i){var n={},a=i[r.geo]._subplot,o=a.mockAxis,s=t.lonlat;return n.lonLabel=gUe.tickText(o,o.c2l(s[0]),!0).text,n.latLabel=gUe.tickText(o,o.c2l(s[1]),!0).text,n}});var XQ=K((PQr,TUe)=>{"use strict";var YQ=Hs(),_Ue=(Il(),or(Bl)).BADNUM,Dsr=Zp(),Fsr=fm(),Lsr=op(),Psr=St().isArrayOrTypedArray,wUe=St()._;function AUe(e){return e&&typeof e=="string"}TUe.exports=function(t,r){var i=Psr(r.locations),n=i?r.locations.length:r._length,a=new Array(n),o;r.geojson?o=function(h){return AUe(h)||YQ(h)}:o=AUe;for(var s=0;sIsr,clipPad:()=>Nsr,fillLayers:()=>Wsr,fitboundsIncompatible:()=>qsr,landColor:()=>Usr,lataxisSpan:()=>Bsr,layerNameToAdjective:()=>Zsr,layers:()=>Ysr,layersForChoropleth:()=>Xsr,lineLayers:()=>$sr,locationmodeToLayer:()=>Hsr,lonaxisSpan:()=>Rsr,precision:()=>Vsr,projNames:()=>zsr,scopeDefaults:()=>Osr,sphereSVG:()=>jsr,waterColor:()=>Gsr});var zsr,Isr,Rsr,Bsr,qsr,Osr,Nsr,Vsr,Usr,Gsr,Hsr,jsr,Wsr,$sr,Ysr,Xsr,Zsr,LE=ps(()=>{"use strict";zsr={airy:"airy",aitoff:"aitoff","albers usa":"albersUsa",albers:"albers",august:"august","azimuthal equal area":"azimuthalEqualArea","azimuthal equidistant":"azimuthalEquidistant",baker:"baker",bertin1953:"bertin1953",boggs:"boggs",bonne:"bonne",bottomley:"bottomley",bromley:"bromley",collignon:"collignon","conic conformal":"conicConformal","conic equal area":"conicEqualArea","conic equidistant":"conicEquidistant",craig:"craig",craster:"craster","cylindrical equal area":"cylindricalEqualArea","cylindrical stereographic":"cylindricalStereographic",eckert1:"eckert1",eckert2:"eckert2",eckert3:"eckert3",eckert4:"eckert4",eckert5:"eckert5",eckert6:"eckert6",eisenlohr:"eisenlohr","equal earth":"equalEarth",equirectangular:"equirectangular",fahey:"fahey","foucaut sinusoidal":"foucautSinusoidal",foucaut:"foucaut",ginzburg4:"ginzburg4",ginzburg5:"ginzburg5",ginzburg6:"ginzburg6",ginzburg8:"ginzburg8",ginzburg9:"ginzburg9",gnomonic:"gnomonic","gringorten quincuncial":"gringortenQuincuncial",gringorten:"gringorten",guyou:"guyou",hammer:"hammer",hill:"hill",homolosine:"homolosine",hufnagel:"hufnagel",hyperelliptical:"hyperelliptical",kavrayskiy7:"kavrayskiy7",lagrange:"lagrange",larrivee:"larrivee",laskowski:"laskowski",loximuthal:"loximuthal",mercator:"mercator",miller:"miller",mollweide:"mollweide","mt flat polar parabolic":"mtFlatPolarParabolic","mt flat polar quartic":"mtFlatPolarQuartic","mt flat polar sinusoidal":"mtFlatPolarSinusoidal","natural earth":"naturalEarth","natural earth1":"naturalEarth1","natural earth2":"naturalEarth2","nell hammer":"nellHammer",nicolosi:"nicolosi",orthographic:"orthographic",patterson:"patterson","peirce quincuncial":"peirceQuincuncial",polyconic:"polyconic","rectangular polyconic":"rectangularPolyconic",robinson:"robinson",satellite:"satellite","sinu mollweide":"sinuMollweide",sinusoidal:"sinusoidal",stereographic:"stereographic",times:"times","transverse mercator":"transverseMercator","van der grinten":"vanDerGrinten","van der grinten2":"vanDerGrinten2","van der grinten3":"vanDerGrinten3","van der grinten4":"vanDerGrinten4",wagner4:"wagner4",wagner6:"wagner6",wiechel:"wiechel","winkel tripel":"winkel3",winkel3:"winkel3"},Isr=["lonaxis","lataxis"],Rsr={orthographic:180,"azimuthal equal area":360,"azimuthal equidistant":360,"conic conformal":180,gnomonic:160,stereographic:180,"transverse mercator":180,"*":360},Bsr={"conic conformal":150,stereographic:179.5,"*":180},qsr=new Set(["albers usa","craig","peirce quincuncial","satellite"]),Osr={world:{lonaxisRange:[-180,180],lataxisRange:[-90,90],projType:"equirectangular",projRotate:[0,0,0]},usa:{lonaxisRange:[-180,-50],lataxisRange:[15,80],projType:"albers usa"},europe:{lonaxisRange:[-30,60],lataxisRange:[30,85],projType:"conic conformal",projRotate:[15,0,0],projParallels:[0,60]},asia:{lonaxisRange:[22,160],lataxisRange:[-15,55],projType:"mercator",projRotate:[0,0,0]},africa:{lonaxisRange:[-30,60],lataxisRange:[-40,40],projType:"mercator",projRotate:[0,0,0]},"north america":{lonaxisRange:[-180,-45],lataxisRange:[5,85],projType:"conic conformal",projRotate:[-100,0,0],projParallels:[29.5,45.5]},"south america":{lonaxisRange:[-100,-30],lataxisRange:[-60,15],projType:"mercator",projRotate:[0,0,0]},antarctica:{lonaxisRange:[-180,180],lataxisRange:[-90,-60],projType:"equirectangular",projRotate:[0,0,0]},oceania:{lonaxisRange:[-180,180],lataxisRange:[-50,25],projType:"equirectangular",projRotate:[0,0,0]}},Nsr=.001,Vsr=.1,Usr="#F0DC82",Gsr="#3399FF",Hsr={"ISO-3":"countries","USA-states":"subunits","country names":"countries"},jsr={type:"Sphere"},Wsr={ocean:1,land:1,lakes:1},$sr={subunits:1,countries:1,coastlines:1,rivers:1,frame:1},Ysr=["bg","ocean","land","lakes","subunits","countries","coastlines","rivers","lataxis","lonaxis","frame","backplot","frontplot"],Xsr=["bg","ocean","land","subunits","countries","coastlines","lataxis","lonaxis","frame","backplot","lakes","rivers","frontplot"],Zsr={ocean:"ocean",land:"land",lakes:"lake",subunits:"subunit",countries:"country",coastlines:"coastline",rivers:"river",frame:"frame"}});var ZQ=K((gR,MUe)=>{(function(e,t){typeof gR=="object"&&typeof MUe!="undefined"?t(gR):(e=e||self,t(e.topojson=e.topojson||{}))})(gR,function(e){"use strict";function t(_){return _}function r(_){if(_==null)return t;var b,M,x=_.scale[0],T=_.scale[1],A=_.translate[0],g=_.translate[1];return function(E,S){S||(b=M=0);var C=2,k=E.length,D=new Array(k);for(D[0]=(b+=E[0])*x+A,D[1]=(M+=E[1])*T+g;CA&&(A=C[0]),C[1]g&&(g=C[1])}function S(C){switch(C.type){case"GeometryCollection":C.geometries.forEach(S);break;case"Point":E(C.coordinates);break;case"MultiPoint":C.coordinates.forEach(E);break}}_.arcs.forEach(function(C){for(var k=-1,D=C.length,F;++kA&&(A=F[0]),F[1]g&&(g=F[1])});for(M in _.objects)S(_.objects[M]);return[x,T,A,g]}function n(_,b){for(var M,x=_.length,T=x-b;T<--x;)M=_[T],_[T++]=_[x],_[x]=M}function a(_,b){return typeof b=="string"&&(b=_.objects[b]),b.type==="GeometryCollection"?{type:"FeatureCollection",features:b.geometries.map(function(M){return o(_,M)})}:o(_,b)}function o(_,b){var M=b.id,x=b.bbox,T=b.properties==null?{}:b.properties,A=s(_,b);return M==null&&x==null?{type:"Feature",properties:T,geometry:A}:x==null?{type:"Feature",id:M,properties:T,geometry:A}:{type:"Feature",id:M,bbox:x,properties:T,geometry:A}}function s(_,b){var M=r(_.transform),x=_.arcs;function T(k,D){D.length&&D.pop();for(var F=x[k<0?~k:k],P=0,I=F.length;P1)x=c(_,b,M);else for(T=0,x=new Array(A=_.arcs.length);T1)for(var D=1,F=E(C[0]),P,I;DF&&(I=C[0],C[0]=C[D],C[D]=I,F=P);return C}).filter(function(S){return S.length>0})}}function v(_,b){for(var M=0,x=_.length;M>>1;_[T]=2))throw new Error("n must be \u22652");S=_.bbox||i(_);var M=S[0],x=S[1],T=S[2],A=S[3],g;b={scale:[T-M?(T-M)/(g-1):1,A-x?(A-x)/(g-1):1],translate:[M,x]}}else S=_.bbox;var E=m(b),S,C,k=_.objects,D={};function F(L){return E(L)}function P(L){var z;switch(L.type){case"GeometryCollection":z={type:"GeometryCollection",geometries:L.geometries.map(P)};break;case"Point":z={type:"Point",coordinates:F(L.coordinates)};break;case"MultiPoint":z={type:"MultiPoint",coordinates:L.coordinates.map(F)};break;default:return L}return L.id!=null&&(z.id=L.id),L.bbox!=null&&(z.bbox=L.bbox),L.properties!=null&&(z.properties=L.properties),z}function I(L){var z=0,B=1,O=L.length,W,X=new Array(O);for(X[0]=E(L[0],0);++z{"use strict";var KQ=SUe.exports={},Ksr=(LE(),or(FE)).locationmodeToLayer,Jsr=ZQ().feature;KQ.getTopojsonName=function(e){return[e.scope.replace(/ /g,"-"),"_",e.resolution.toString(),"m"].join("")};KQ.getTopojsonPath=function(e,t){return e+=e.endsWith("/")?"":"/",`${e}${t}.json`};KQ.getTopojsonFeatures=function(e,t){var r=Ksr[e.locationmode],i=t.objects[r];return Jsr(t,i).features}});var zE=K(PE=>{"use strict";var Qsr=(Il(),or(Bl)).BADNUM;PE.calcTraceToLineCoords=function(e){for(var t=e[0].trace,r=t.connectgaps,i=[],n=[],a=0;a0&&(i.push(n),n=[])}return n.length>0&&i.push(n),i};PE.makeLine=function(e){return e.length===1?{type:"LineString",coordinates:e[0]}:{type:"MultiLineString",coordinates:e}};PE.makePolygon=function(e){if(e.length===1)return{type:"Polygon",coordinates:e};for(var t=new Array(e.length),r=0;r{"use strict";var QQ=Object.defineProperty,elr=Object.getOwnPropertyDescriptor,tlr=Object.getOwnPropertyNames,rlr=Object.prototype.hasOwnProperty,ilr=(e,t)=>{for(var r in t)QQ(e,r,{get:t[r],enumerable:!0})},nlr=(e,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of tlr(t))!rlr.call(e,n)&&n!==r&&QQ(e,n,{get:()=>t[n],enumerable:!(i=elr(t,n))||i.enumerable});return e},alr=e=>nlr(QQ({},"__esModule",{value:!0}),e),EUe={};ilr(EUe,{COUNTRIES:()=>kUe,byAlpha2:()=>ulr,byAlpha3:()=>llr,byM49:()=>flr,createLookup:()=>CUe,lookup:()=>olr,lookupAlpha3:()=>slr,sanitize:()=>JQ});DUe.exports=alr(EUe);var kUe=[{iso3:"ABW",iso2:"AW",m49:"533",name:"Aruba",aliases:["\u{1F1E6}\u{1F1FC}","country of aruba","land aruba","pais aruba"]},{iso3:"AFG",iso2:"AF",m49:"004",name:"Afghanistan",aliases:["\u{1F1E6}\u{1F1EB}","affghanistan","affghanisthan","affghaunistan","afghania","afghanisthan","afghaunistan","afghaunistaun","afgoniston","de afghanistan islami jumhuriyat","owganystan","\u0430\u0444\u0493\u043E\u043D\u0438\u0441\u0442\u043E\u043D","\u0623\u0641\u063A\u0627\u0646\u0633\u062A\u0627\u0646","\u0627\u0641\u063A\u0627\u0646\u0633\u062A\u0627\u0646","\u062F \u0627\u0641\u063A\u0627\u0646\u0633\u062A\u0627\u0646 \u0627\u0633\u0644\u0627\u0645\u06CC \u062C\u0645\u0647\u0648\u0631\u06CC\u062A"]},{iso3:"AGO",iso2:"AO",m49:"024",name:"Angola",aliases:["\u{1F1E6}\u{1F1F4}","republic of angola","republica de angola"]},{iso3:"AIA",iso2:"AI",m49:"660",name:"Anguilla",aliases:["\u{1F1E6}\u{1F1EE}","malliouhana"]},{iso3:"ALA",iso2:"AX",m49:"248",name:"\xC5land Islands",aliases:["\u{1F1E6}\u{1F1FD}","aaland","aaland islands","ahvenanmaa","aland","aland isles","aland region","alands lan","landskapet aland"]},{iso3:"ALB",iso2:"AL",m49:"008",name:"Albania",aliases:["\u{1F1E6}\u{1F1F1}","peoples republic of albania","peoples socialist republic of albania","republic of albania","republika e shqiperise","shqiperi","shqiperia","shqiperise","socialist republic of albania"]},{iso3:"AND",iso2:"AD",m49:"020",name:"Andorra",aliases:["\u{1F1E6}\u{1F1E9}","el pais dels pirineus","les valls dandorra","principality of andorra","principality of the valleys of andorra","principat dandorra","valls dandorra"]},{iso3:"ARE",iso2:"AE",m49:"784",name:"United Arab Emirates",aliases:["\u{1F1E6}\u{1F1EA}","emirates","uae","\u0627\u0644\u0625\u0645\u0627\u0631\u0627\u062A","\u0627\u0644\u0625\u0645\u0627\u0631\u0627\u062A \u0627\u0644\u0639\u0631\u0628\u064A\u0629 \u0627\u0644\u0645\u062A\u062D\u062F\u0629","\u0627\u0644\u0627\u0645\u0627\u0631\u0627\u062A","\u0627\u0644\u0627\u0645\u0627\u0631\u0627\u062A \u0627\u0644\u0639\u0631\u0628\u064A\u0629 \u0627\u0644\u0645\u062A\u062D\u062F\u0629","\u062F\u0648\u0644\u0629 \u0627\u0644\u0625\u0645\u0627\u0631\u0627\u062A \u0627\u0644\u0639\u0631\u0628\u064A\u0629 \u0627\u0644\u0645\u062A\u062D\u062F\u0629"]},{iso3:"ARG",iso2:"AR",m49:"032",name:"Argentina",aliases:["\u{1F1E6}\u{1F1F7}","argentine republic","nacion argentina","republic of argentina","republica argentina"]},{iso3:"ARM",iso2:"AM",m49:"051",name:"Armenia",aliases:["\u{1F1E6}\u{1F1F2}","hayastan","hayastani hanrapetutyun","republic of armenia","\u0570\u0561\u0575\u0561\u057D\u057F\u0561\u0576","\u0570\u0561\u0575\u0561\u057D\u057F\u0561\u0576\u056B \u0570\u0561\u0576\u0580\u0561\u057A\u0565\u057F\u0578\u0582\u0569\u0575\u0578\u0582\u0576","\u0570\u0561\u0575\u0584","\u0570\u0570"]},{iso3:"ASM",iso2:"AS",m49:"016",name:"American Samoa",aliases:["\u{1F1E6}\u{1F1F8}","amerika samoa","east samoa","samoa american","samoa united states","territory of american samoa","us samoa"]},{iso3:"ATA",iso2:"AQ",m49:"010",name:"Antarctica",aliases:["\u{1F1E6}\u{1F1F6}","antarctica treaty area"]},{iso3:"ATF",iso2:"TF",m49:"260",name:"French Southern Territories",aliases:["\u{1F1F9}\u{1F1EB}","taaf","terres australes et antarctiques francaises","terres australes francaises","terres australes francaises les","territoire des terres australes et antarctiques francaises"]},{iso3:"ATG",iso2:"AG",m49:"028",name:"Antigua and Barbuda",aliases:["\u{1F1E6}\u{1F1EC}","antigua","antigua barbuda","barbuda"]},{iso3:"AUS",iso2:"AU",m49:"036",name:"Australia",aliases:["\u{1F1E6}\u{1F1FA}","commonwealth of australia","new holland","new hollandia","nova hollandia"]},{iso3:"AUT",iso2:"AT",m49:"040",name:"Austria",aliases:["\u{1F1E6}\u{1F1F9}","osterreich","republic of austria","republik osterreich","zweite republik"]},{iso3:"AZE",iso2:"AZ",m49:"031",name:"Azerbaijan",aliases:["\u{1F1E6}\u{1F1FF}","az\u0259rbaycan","az\u0259rbaycan respublikas\u0131","republic of azerbaijan"]},{iso3:"BDI",iso2:"BI",m49:"108",name:"Burundi",aliases:["\u{1F1E7}\u{1F1EE}","gouvernement du burundi","la republique du burundi","republic of burundi","republika yu burundi","republika yuburundi","republique du burundi","repuburika yuburundi","uburundi"]},{iso3:"BEL",iso2:"BE",m49:"056",name:"Belgium",aliases:["\u{1F1E7}\u{1F1EA}","belg","belgie","belgien","belgique","kingdom of belgium","konigreich belgien","koninkrijk belgie","royaume de belgique"]},{iso3:"BEN",iso2:"BJ",m49:"204",name:"Benin",aliases:["\u{1F1E7}\u{1F1EF}","dahomey","la republique du benin","republic of benin","republique du benin"]},{iso3:"BES",iso2:"BQ",m49:"535",name:"Bonaire, Sint Eustatius and Saba",aliases:["\u{1F1E7}\u{1F1F6}","bes eilanden","bes islands","bijzondere gemeente","bonaire","bonaire saint eustatius and saba","bonaire sint eustatius en saba","caraibisch nederland","caribbean netherlands","caribisch nederland","hulanda karibense","islanan bes","netherlands antilles","saba","sint eustatius"]},{iso3:"BFA",iso2:"BF",m49:"854",name:"Burkina Faso",aliases:["\u{1F1E7}\u{1F1EB}","republic of burkina faso","republic of upper volta"]},{iso3:"BGD",iso2:"BD",m49:"050",name:"Bangladesh",aliases:["\u{1F1E7}\u{1F1E9}","bangla desh","east pakistan","gonaoprojatontri bangladesh","peoples republic of bangladesh","\u0997\u09A3\u09AA\u09CD\u09B0\u099C\u09BE\u09A4\u09A8\u09CD\u09A4\u09CD\u09B0\u09C0 \u09AC\u09BE\u0982\u09B2\u09BE\u09A6\u09C7\u09B6","\u09AC\u09BE\u0982\u09B2\u09BE \u09A6\u09C7\u09B6","\u09AC\u09BE\u0982\u09B2\u09BE\u09A6\u09C7\u09B6","\u09AC\u09BF\u09A1\u09BF"]},{iso3:"BGR",iso2:"BG",m49:"100",name:"Bulgaria",aliases:["\u{1F1E7}\u{1F1EC}","bulgarian republic","republic of bulgaria","republika bulgaria","republika bulgariya","\u0431\u0433","\u0431\u044A\u043B\u0433\u0430\u0440\u0438\u044F","\u0440\u0435\u043F\u0443\u0431\u043B\u0438\u043A\u0430 \u0431\u044A\u043B\u0433\u0430\u0440\u0438\u044F"]},{iso3:"BHR",iso2:"BH",m49:"048",name:"Bahrain",aliases:["\u{1F1E7}\u{1F1ED}","bahrein islands","kingdom of bahrain","\u0627\u0644\u0628\u062D\u0631\u064A\u0646","\u062F\u0648\u0644\u0629 \u0627\u0644\u0628\u062D\u0631\u064A\u0646","\u0645\u0645\u0644\u0643\u0629 \u0627\u0644\u0628\u062D\u0631\u064A\u0646"]},{iso3:"BHS",iso2:"BS",m49:"044",name:"Bahamas",aliases:["\u{1F1E7}\u{1F1F8}","bahama islands","bahamas the","commonwealth of the bahamas"]},{iso3:"BIH",iso2:"BA",m49:"070",name:"Bosnia and Herzegovina",aliases:["\u{1F1E7}\u{1F1E6}","bosna","bosna i hercegovina","bosnia","bosnia and hercegovina","bosnia herzegovina","hercegovina","herzegovina","\u0431\u0438\u0445","\u0431\u043E\u0441\u043D\u0430","\u0431\u043E\u0441\u043D\u0430 \u0438 \u0445\u0435\u0440\u0446\u0435\u0433\u043E\u0432\u0438\u043D\u0430","\u0431\u0445"]},{iso3:"BLM",iso2:"BL",m49:"652",name:"Saint Barth\xE9lemy",aliases:["\u{1F1E7}\u{1F1F1}","collectivite doutre mer de saint barthelemy","collectivite territoriale de saint barthelemy","collectivity of saint barthelemy","saint barth","saint barths","saint barts","saint bartz"]},{iso3:"BLR",iso2:"BY",m49:"112",name:"Belarus",aliases:["\u{1F1E7}\u{1F1FE}","republic of belarus","respublika belarus","respublika byelarus","\u0431\u0435\u043B\u0430\u0440\u0443\u0441\u043A\u0430\u044F \u0440\u044D\u0441\u043F\u0443\u0431\u043B\u0456\u043A\u0430","\u0431\u0435\u043B\u0430\u0440\u0443\u0441\u044C","\u0431\u0435\u043B\u0430\u044F \u0440\u0443\u0441\u044C","\u0431\u0435\u043B\u043E\u0440\u0443\u0441\u0441\u0438\u044F","\u0440\u0431","\u0440\u0435\u0441\u043F\u0443\u0431\u043B\u0438\u043A\u0430 \u0431\u0435\u043B\u0430\u0440\u0443\u0441\u044C","\u0440\u044D\u0441\u043F\u0443\u0431\u043B\u0456\u043A\u0430 \u0431\u0435\u043B\u0430\u0440\u0443\u0441\u044C"]},{iso3:"BLZ",iso2:"BZ",m49:"084",name:"Belize",aliases:["\u{1F1E7}\u{1F1FF}"]},{iso3:"BMU",iso2:"BM",m49:"060",name:"Bermuda",aliases:["\u{1F1E7}\u{1F1F2}","barmuda","barmuda i","barmuda isl","barmuda islands","barmudas","bermoothes","bermuda islands","bermudas","bermudian islands","colony of bermuda","devils isles","isle of devils","somers islands","somers isles","summers isles","territory of bermuda","virgineola"]},{iso3:"BOL",iso2:"BO",m49:"068",name:"Bolivia (Plurinational State of)",aliases:["\u{1F1E7}\u{1F1F4}","bolivia","bulibiya","estado plurinacional de bolivia","plurinational state of bolivia","puliwya","republic of bolivia","republica de bolivia","volivia","wuliwiya","wuliwya"]},{iso3:"BRA",iso2:"BR",m49:"076",name:"Brazil",aliases:["\u{1F1E7}\u{1F1F7}","brasil","federative republic of brazil","pindorama","republica federativa do brasil"]},{iso3:"BRB",iso2:"BB",m49:"052",name:"Barbados",aliases:["\u{1F1E7}\u{1F1E7}","barbadoes"]},{iso3:"BRN",iso2:"BN",m49:"096",name:"Brunei Darussalam",aliases:["\u{1F1E7}\u{1F1F3}","brunei","nation of brunei the abode of peace","negara brunei darussalam"]},{iso3:"BTN",iso2:"BT",m49:"064",name:"Bhutan",aliases:["\u{1F1E7}\u{1F1F9}","kingdom of bhutan","\u0F60\u0F56\u0FB2\u0F74\u0F42","\u0F60\u0F56\u0FB2\u0F74\u0F42\u0F0B\u0F61\u0F74\u0F63\u0F0B","\u0F60\u0F56\u0FB2\u0F74\u0F42\u0F61\u0F74\u0F63\u0F0B\u0F0B"]},{iso3:"BVT",iso2:"BV",m49:"074",name:"Bouvet Island",aliases:["\u{1F1E7}\u{1F1FB}"]},{iso3:"BWA",iso2:"BW",m49:"072",name:"Botswana",aliases:["\u{1F1E7}\u{1F1FC}","lefatshe la botswana","republic of botswana"]},{iso3:"CAF",iso2:"CF",m49:"140",name:"Central African Republic",aliases:["\u{1F1E8}\u{1F1EB}","centrafricaine republique","centrafrique","central africa","kodorosese ti beafrika","la republique","rep centrafrique","republique centrafricaine"]},{iso3:"CAN",iso2:"CA",m49:"124",name:"Canada",aliases:["\u{1F1E8}\u{1F1E6}","le canada"]},{iso3:"CCK",iso2:"CC",m49:"166",name:"Cocos (Keeling) Islands",aliases:["\u{1F1E8}\u{1F1E8}","cocos islands","keeling islands","territory of the cocos keeling islands"]},{iso3:"CHE",iso2:"CH",m49:"756",name:"Switzerland",aliases:["\u{1F1E8}\u{1F1ED}","confederation helvetique","confederation suisse","confederazione elvetica","confederazione svizzera","confederaziun svizra","confoederatio helvetica","conf\u0153deratio helvetica","eidgenossenschaft","elvezia","helvetie","la confederation suisse","schweiz","schweizerische eidgenossenschaft","suisse","svizra","svizzera","swiss","swiss confederation"]},{iso3:"CHL",iso2:"CL",m49:"152",name:"Chile",aliases:["\u{1F1E8}\u{1F1F1}","republic of chile","republica de chile"]},{iso3:"CHN",iso2:"CN",m49:"156",name:"China",aliases:["\u{1F1E8}\u{1F1F3}","china pr","peoples republic of china","pr china","prc","\u4E2D\u534E\u4EBA\u6C11\u5171\u548C\u56FD","\u4E2D\u56FD"]},{iso3:"CIV",iso2:"CI",m49:"384",name:"C\xF4te d'Ivoire",aliases:["\u{1F1E8}\u{1F1EE}","cote ivoire","ivory coast","republic of cote divoire","republic of ivory coast","republic of the ivory coast","republique de cote divoire"]},{iso3:"CMR",iso2:"CM",m49:"120",name:"Cameroon",aliases:["\u{1F1E8}\u{1F1F2}","cameroun","la republique du cameroun","republic of cameroon","republique du cameroun"]},{iso3:"COD",iso2:"CD",m49:"180",name:"Democratic Republic of the Congo",aliases:["\u{1F1E8}\u{1F1E9}","congo belge","congo democratic republic of the","congo kinshasa","dem rep congo","dem republic of congo","dem republic of the congo","democratic republic of congo","dr congo","drc","rd congo","rep demcongo","republic of the congo","republique democratique du congo","republique du zaire","zaire"]},{iso3:"COG",iso2:"CG",m49:"178",name:"Congo",aliases:["\u{1F1E8}\u{1F1EC}","congo brazza","congo brazzaville","congo republic","rep congo","republic of congo","republique du congo"]},{iso3:"COK",iso2:"CK",m49:"184",name:"Cook Islands",aliases:["\u{1F1E8}\u{1F1F0}","cook group","hervey islands"]},{iso3:"COL",iso2:"CO",m49:"170",name:"Colombia",aliases:["\u{1F1E8}\u{1F1F4}","republic of colombia","republica de colombia"]},{iso3:"COM",iso2:"KM",m49:"174",name:"Comoros",aliases:["\u{1F1F0}\u{1F1F2}","comores","comores archipel","etat comorien","lunion des comores","republique des comores","republique federale et islamique des comores","republique federale islamique des comores","territoire des comores","union des comores","union of the comoros","\u0625\u062A\u062D\u0627\u062F \u0627\u0644\u0642\u0645\u0631","\u0627\u062A\u062D\u0627\u062F \u062C\u0632\u0631 \u0627\u0644\u0642\u0645\u0631","\u0627\u0644\u0627\u062A\u062D\u0627\u062F \u0627\u0644\u0642\u0645\u0631\u064A","\u0627\u0644\u0642\u0645\u0631","\u062C\u0632\u0631 \u0627\u0644\u0642\u0645\u0631","\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u0627\u0644\u0642\u0645\u0631 \u0627\u0644\u0645\u062A\u062D\u062F\u0629","\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u062C\u0632\u0631 \u0627\u0644\u0642\u0645\u0631 \u0627\u0644\u0627\u062A\u062D\u0627\u062F\u064A\u0629 \u0627\u0644\u0625\u0633\u0644\u0627\u0645\u064A\u0629","\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u062C\u0632\u0631\u0627\u0644\u0642\u0645\u0631 \u0627\u0644\u0645\u062A\u062D\u062F\u0629"]},{iso3:"CPV",iso2:"CV",m49:"132",name:"Cabo Verde",aliases:["\u{1F1E8}\u{1F1FB}","cape verde","cape verde islands","kab verd","kabu verdi","kauberdi","republic of cabo verde","republic of cape verde","republica de cabo verde"]},{iso3:"CRI",iso2:"CR",m49:"188",name:"Costa Rica",aliases:["\u{1F1E8}\u{1F1F7}","republic of costa rica","republica de costa rica"]},{iso3:"CUB",iso2:"CU",m49:"192",name:"Cuba",aliases:["\u{1F1E8}\u{1F1FA}","isla juana","republic of cuba","republica de cuba"]},{iso3:"CUW",iso2:"CW",m49:"531",name:"Cura\xE7ao",aliases:["\u{1F1E8}\u{1F1FC}","corsou","corsouw","corsow","country of curacao","curacau","curacoa","curazao","cura\u03C2ao","curocao","island territory of curacao","korsou","land curacao","pais korsou"]},{iso3:"CXR",iso2:"CX",m49:"162",name:"Christmas Island",aliases:["\u{1F1E8}\u{1F1FD}","christmas island other territories","christmas island other territories australia","territory of christmas island"]},{iso3:"CYM",iso2:"KY",m49:"136",name:"Cayman Islands",aliases:["\u{1F1F0}\u{1F1FE}","caymans"]},{iso3:"CYP",iso2:"CY",m49:"196",name:"Cyprus",aliases:["\u{1F1E8}\u{1F1FE}","greek administration of southern cyprus","greek cypriot state","guney k\u0131br\u0131s","guney k\u0131br\u0131s rum cumhuriyeti","guney k\u0131br\u0131s rum kesimi","guney k\u0131br\u0131s rum yonetimi","kipriaki dhimokratia","k\u0131br\u0131s","k\u0131br\u0131s cumhuriyeti","k\u0131br\u0131s rum kesimi","kypriaki dimokratia","kypros","republic of cyprus","\u03BA\u03C5\u03C0\u03C1\u03B9\u03B1\u03BA\u03B7 \u03B4\u03B7\u03BC\u03BF\u03BA\u03C1\u03B1\u03C4\u03B9\u03B1","\u03BA\u03C5\u03C0\u03C1\u03BF\u03C2"]},{iso3:"CZE",iso2:"CZ",m49:"203",name:"Czechia",aliases:["\u{1F1E8}\u{1F1FF}","ceska republika","ceske kraje","ceske uzemi","ceske zeme","cesko","cr","czech republic"]},{iso3:"DEU",iso2:"DE",m49:"276",name:"Germany",aliases:["\u{1F1E9}\u{1F1EA}","br deutschland","bundesrepublik","bundesrepublik deutschland","deutschland","federal republic of germany"]},{iso3:"DJI",iso2:"DJ",m49:"262",name:"Djibouti",aliases:["\u{1F1E9}\u{1F1EF}","la republique de djibouti","republic of djibouti","republique de djibouti","\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u062C\u064A\u0628\u0648\u062A\u064A","\u062C\u064A\u0628\u0648\u062A\u064A"]},{iso3:"DMA",iso2:"DM",m49:"212",name:"Dominica",aliases:["\u{1F1E9}\u{1F1F2}","commonwealth of dominica","island of dominica","waitu kubuli"]},{iso3:"DNK",iso2:"DK",m49:"208",name:"Denmark",aliases:["\u{1F1E9}\u{1F1F0}","dania","danmark","denmark proper","kongeriget danmark","metropolitan denmark"]},{iso3:"DOM",iso2:"DO",m49:"214",name:"Dominican Republic",aliases:["\u{1F1E9}\u{1F1F4}","dominicana","domrep","haiti espanol","quisqueya","republica de santo domingo","republica dominicana","santo domingo"]},{iso3:"DZA",iso2:"DZ",m49:"012",name:"Algeria",aliases:["\u{1F1E9}\u{1F1FF}","peoples democratic republic of algeria","\u0627\u0644\u062C\u0632\u0627\u0626\u0631","\u0627\u0644\u062C\u0632\u0627\u064A\u0631","\u0627\u0644\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u0627\u0644\u062C\u0632\u0627\u0626\u0631\u064A\u0629 \u0627\u0644\u062F\u064A\u0645\u0642\u0631\u0627\u0637\u064A\u0629 \u0627\u0644\u0634\u0639\u0628\u064A\u0629","\u0627\u0644\u062F\u0632\u0627\u064A\u0631","\u062F\u0632\u0627\u064A\u0631"]},{iso3:"ECU",iso2:"EC",m49:"218",name:"Ecuador",aliases:["\u{1F1EA}\u{1F1E8}","ecuadorian state","el ecuador","estado ecuatoriano","republic of ecuador","republic of equator","republic of the equator","republica del ecuador"]},{iso3:"EGY",iso2:"EG",m49:"818",name:"Egypt",aliases:["\u{1F1EA}\u{1F1EC}","arab rep egypt","arab republic of egypt","rep egypt","republic of egypt","\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u0645\u0635\u0631 \u0627\u0644\u0639\u0631\u0628\u064A\u0629","\u0645\u0635\u0631"]},{iso3:"ERI",iso2:"ER",m49:"232",name:"Eritrea",aliases:["\u{1F1EA}\u{1F1F7}","ertra","hagere ertra","hagere iertra","iertra","iritriya","state of eritrea","\u0625\u0631\u062A\u0631\u064A\u0627","\u0625\u0631\u064A\u062A\u0631\u064A\u0627","\u0627\u0631\u062A\u0631\u064A\u0627","\u0627\u0631\u062A\u064A\u0631\u064A\u0627","\u0627\u0631\u064A\u062A\u0631\u064A\u0627","\u062F\u0648\u0644\u0629 \u0625\u0631\u062A\u0631\u064A\u0627","\u062F\u0648\u0644\u0629 \u0625\u0631\u064A\u062A\u0631\u064A\u0627","\u1203\u1308\u1228 \u12A4\u122D\u1275\u122B","\u12A4\u122D\u1275\u122B"]},{iso3:"ESH",iso2:"EH",m49:"732",name:"Western Sahara",aliases:["\u{1F1EA}\u{1F1ED}","southern provinces","spanish sahara","west sahara"]},{iso3:"ESP",iso2:"ES",m49:"724",name:"Spain",aliases:["\u{1F1EA}\u{1F1F8}","espana","estado espanol","kingdom of spain","reino de espana"]},{iso3:"EST",iso2:"EE",m49:"233",name:"Estonia",aliases:["\u{1F1EA}\u{1F1EA}","eesti","eesti noukogude sotsialistlik vabariik","eesti vabariik","estland","republic of estonia"]},{iso3:"ETH",iso2:"ET",m49:"231",name:"Ethiopia",aliases:["\u{1F1EA}\u{1F1F9}","federal democratic republic of ethiopia","ityopiya","yeityopiya federalawi demokrasiyawi ripeblik","yeityopiya hizbawi dimokrasiyawi ripublik","\u12A2\u1275\u12EE\u1335\u12EB","\u12E8\u12A2\u1275\u12EE\u1335\u12EB \u134C\u12F4\u122B\u120B\u12CA \u12F4\u121E\u12AD\u122B\u1232\u12EB\u12CA \u122A\u1350\u1265\u120A\u12AD"]},{iso3:"FIN",iso2:"FI",m49:"246",name:"Finland",aliases:["\u{1F1EB}\u{1F1EE}","republic of finland","republiken finland","suomen tasavalta","suomi"]},{iso3:"FJI",iso2:"FJ",m49:"242",name:"Fiji",aliases:["\u{1F1EB}\u{1F1EF}","fiji ganarajya","matanitu ko viti","matanitu tugalala o viti","republic of fiji","republic of the fiji islands","viti"]},{iso3:"FLK",iso2:"FK",m49:"238",name:"Falkland Islands (Malvinas)",aliases:["\u{1F1EB}\u{1F1F0}","colony of the falkland islands","falkland islands","falklands","islas malvinas","malvinas","malvinas islands"]},{iso3:"FRA",iso2:"FR",m49:"250",name:"France",aliases:["\u{1F1EB}\u{1F1F7}","fr","french republic","la france","la republique francaise","lhexagone","republique francaise"]},{iso3:"FRO",iso2:"FO",m49:"234",name:"Faroe Islands",aliases:["\u{1F1EB}\u{1F1F4}","faer oer","f\xE6r\xF8","faeroe is","faeroe islands","faeroe isles","f\xE6r\xF8erne","faeroes","far oer","faroe island","faroe isles","faroes","faroese islands","f\xF8roya","f\xF8royar","f\xF8royum"]},{iso3:"FSM",iso2:"FM",m49:"583",name:"Micronesia (Federated States of)",aliases:["\u{1F1EB}\u{1F1F2}","fed sts micronesia","fed sts of micronesia","federated states of micronesia","federated states of micronesia fsm","micronesia"]},{iso3:"GAB",iso2:"GA",m49:"266",name:"Gabon",aliases:["\u{1F1EC}\u{1F1E6}","gabonese republic","la republique gabonaise","le gabon","republique du gabon","republique gabonaise"]},{iso3:"GBR",iso2:"GB",m49:"826",name:"United Kingdom of Great Britain and Northern Ireland",aliases:["\u{1F1EC}\u{1F1E7}","britain","england","great britain","great britain and northern ireland","northern ireland","scotland","uk","united kingdom","wales"]},{iso3:"GEO",iso2:"GE",m49:"268",name:"Georgia",aliases:["\u{1F1EC}\u{1F1EA}","georgia country","republic of georgia","sakartvelo","\u049B\u044B\u0440\u04AD\u0442\u04D9\u044B\u043B\u0430","\u10E1\u10D0\u10E5\u10D0\u10E0\u10D7\u10D5\u10D4\u10DA\u10DD","\u10E1\u10D0\u10E5\u10D0\u10E0\u10D7\u10D5\u10D4\u10DA\u10DD\u10E1 \u10E0\u10D4\u10E1\u10DE\u10E3\u10D1\u10DA\u10D8\u10D9\u10D0"]},{iso3:"GGY",iso2:"GG",m49:"831",name:"Guernsey",aliases:["\u{1F1EC}\u{1F1EC}","bailiwick of guernsey","bailliage de guernesey","bailliage de guernesi","giernesi","great britain guernsey","guernesey","lisia"]},{iso3:"GHA",iso2:"GH",m49:"288",name:"Ghana",aliases:["\u{1F1EC}\u{1F1ED}","republic of ghana"]},{iso3:"GIB",iso2:"GI",m49:"292",name:"Gibraltar",aliases:["\u{1F1EC}\u{1F1EE}","rock of gibraltar"]},{iso3:"GIN",iso2:"GN",m49:"324",name:"Guinea",aliases:["\u{1F1EC}\u{1F1F3}","guinee","guinee conakry","republic of guinea","republique de guinee"]},{iso3:"GLP",iso2:"GP",m49:"312",name:"Guadeloupe",aliases:["\u{1F1EC}\u{1F1F5}"]},{iso3:"GMB",iso2:"GM",m49:"270",name:"Gambia",aliases:["\u{1F1EC}\u{1F1F2}","islamic republic of the gambia","republic of the gambia"]},{iso3:"GNB",iso2:"GW",m49:"624",name:"Guinea-Bissau",aliases:["\u{1F1EC}\u{1F1FC}","guine bissau","republic of guinea bissau","republica da guine bissau"]},{iso3:"GNQ",iso2:"GQ",m49:"226",name:"Equatorial Guinea",aliases:["\u{1F1EC}\u{1F1F6}","guine equatorial","guinea ecuatorial","guinea espanola","guinee equat","guinee equatoriale","la republique de guinee equatoriale","posesiones espanolas del golfo de guinea","provincia de la guinea ecuatorial","republic of equatorial guinea","republica da guine equatorial","republica de guinea ecuatorial","territorios espanoles del golfo de guinea"]},{iso3:"GRC",iso2:"GR",m49:"300",name:"Greece",aliases:["\u{1F1EC}\u{1F1F7}","ellada","ellas","elliniki dhimokratia","elliniki dimokratia","greek republic","hellas","hellas greece","hellenic republic","vasilion tis ellados","\u03B4\u03B7\u03BC\u03BF\u03BA\u03C1\u03B1\u03C4\u03B9\u03B1 \u03C4\u03B7\u03C2 \u03B5\u03BB\u03BB\u03B1\u03B4\u03B1\u03C2","\u03B4\u03B7\u03BC\u03BF\u03BA\u03C1\u03B1\u03C4\u03B9\u03B1 \u03C4\u03B7\u03C2 \u03B5\u03BB\u03BB\u03B1\u03B4\u03BF\u03C2","\u03B5\u03BB\u03BB\u03B1\u03B4\u03B1","\u03B5\u03BB\u03BB\u03B1\u03C2","\u03B5\u03BB\u03BB\u03B1\u03C2 \u03B5\u03BB\u03BB\u03B1\u03B4\u03B1","\u03B5\u03BB\u03BB\u03B7\u03BD\u03B9\u03BA\u03B7 \u03B4\u03B7\u03BC\u03BF\u03BA\u03C1\u03B1\u03C4\u03B9\u03B1"]},{iso3:"GRD",iso2:"GD",m49:"308",name:"Grenada",aliases:["\u{1F1EC}\u{1F1E9}"]},{iso3:"GRL",iso2:"GL",m49:"304",name:"Greenland",aliases:["\u{1F1EC}\u{1F1F1}","kalaallit nunaat"]},{iso3:"GTM",iso2:"GT",m49:"320",name:"Guatemala",aliases:["\u{1F1EC}\u{1F1F9}","republic of guatemala","republica de guatemala"]},{iso3:"GUF",iso2:"GF",m49:"254",name:"French Guiana",aliases:["\u{1F1EC}\u{1F1EB}","fr 973","guiana","guiana france","guyane","guyane francaise","gwiyann","gwiyann franse","lagwiyann"]},{iso3:"GUM",iso2:"GU",m49:"316",name:"Guam",aliases:["\u{1F1EC}\u{1F1FA}","guahan","guam usa","islan guahan","island of guam","territory of guam"]},{iso3:"GUY",iso2:"GY",m49:"328",name:"Guyana",aliases:["\u{1F1EC}\u{1F1FE}","co operative republic of guyana","republic of guyana"]},{iso3:"HKG",iso2:"HK",m49:"344",name:"Hong Kong",aliases:["\u{1F1ED}\u{1F1F0}","hksar","hong kong sar","hong kong special administrative region","hong kong special administrative region of the peoples republic of china","hongkong"]},{iso3:"HMD",iso2:"HM",m49:"334",name:"Heard Island and McDonald Islands",aliases:["\u{1F1ED}\u{1F1F2}","heard","heard & mcdonald islands","heard and macdonald islands","heard island","himi","mcdonald","mcdonald island","territory of heard island and mcdonald islands"]},{iso3:"HND",iso2:"HN",m49:"340",name:"Honduras",aliases:["\u{1F1ED}\u{1F1F3}","guaymuras","higueras","honduran republic","republic of honduras","republica de honduras"]},{iso3:"HRV",iso2:"HR",m49:"191",name:"Croatia",aliases:["\u{1F1ED}\u{1F1F7}","hrvatska","republic of croatia","republika hrvatska"]},{iso3:"HTI",iso2:"HT",m49:"332",name:"Haiti",aliases:["\u{1F1ED}\u{1F1F9}","ayiti","haitian republic","la republique dhaiti","repiblik d ayiti","republic of haiti","republique dhaiti"]},{iso3:"HUN",iso2:"HU",m49:"348",name:"Hungary",aliases:["\u{1F1ED}\u{1F1FA}","a magyar koztarsasag","a magyar nepkoztarsasag","harmadik magyar koztarsasag","magyar koztarsasag","magyar nepkoztarsasag","magyarorszag","mo"]},{iso3:"IDN",iso2:"ID",m49:"360",name:"Indonesia",aliases:["\u{1F1EE}\u{1F1E9}","negara kesatuan republik indonesia","nkri","republic of indonesia","republik indonesia"]},{iso3:"IMN",iso2:"IM",m49:"833",name:"Isle of Man",aliases:["\u{1F1EE}\u{1F1F2}","ellan vannin","i man","i mann","i mannin","isle of mann","mann","mannin","manx"]},{iso3:"IND",iso2:"IN",m49:"356",name:"India",aliases:["\u{1F1EE}\u{1F1F3}","al hind","bharat","bharat ganarajya","bharata","bharatvarsh","hindoostan","hindustan","indostan","republic of india","tenjiku","tianzhu","\u0906\u0930\u094D\u092F\u0935\u0930\u094D\u0924","\u0907\u0902\u0921\u093F\u092F\u093E","\u0907\u0923\u094D\u0921\u093F\u092F\u093E","\u092D\u093E\u0930\u0924","\u092D\u093E\u0930\u0924 \u0917\u0923\u0930\u093E\u091C\u094D\u092F","\u092D\u093E\u0930\u0924\u0935\u0930\u094D\u0937","\u0939\u093F\u0902\u0926\u0941\u0938\u094D\u0924\u093E\u0928","\u0939\u093F\u0928\u094D\u0926\u0941\u0938\u094D\u0924\u093E\u0928","\u0939\u093F\u0928\u094D\u0926\u094B\u0938\u094D\u0924\u093E\u0928"]},{iso3:"IOT",iso2:"IO",m49:"086",name:"British Indian Ocean Territory",aliases:["\u{1F1EE}\u{1F1F4}","biot"]},{iso3:"IRL",iso2:"IE",m49:"372",name:"Ireland",aliases:["\u{1F1EE}\u{1F1EA}","eire","hibernia","irish republic","poblacht na heireann","republic of ireland","southern ireland"]},{iso3:"IRN",iso2:"IR",m49:"364",name:"Iran (Islamic Republic of)",aliases:["\u{1F1EE}\u{1F1F7}","iran","islamic rep iran","islamic republic of iran","persia","\u0627\u06CC\u0631\u0627\u0646","\u0627\u06CC\u0631\u0627\u0646\u0632\u0645\u06CC\u0646","\u067E\u0627\u0631\u0633","\u062C\u0645\u0647\u0648\u0631\u06CC \u0627\u0633\u0644\u0627\u0645\u06CC \u0627\u064A\u0631\u0627\u0646","\u062C\u0645\u0647\u0648\u0631\u06CC \u0627\u0633\u0644\u0627\u0645\u06CC \u0627\u06CC\u0631\u0627\u0646","\u0643\u0634\u0648\u0631 \u0634\u0627\u0647\u0646\u0634\u0627\u0647\u06CC \u0627\u064A\u0631\u0627\u0646"]},{iso3:"IRQ",iso2:"IQ",m49:"368",name:"Iraq",aliases:["\u{1F1EE}\u{1F1F6}","eraq","iraqe","komar i eraq","republic of iraq","\u0627\u0644\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u0627\u0644\u0639\u0631\u0627\u0642\u064A\u0629","\u0627\u0644\u0639\u0631\u0627\u0642","\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u0627\u0644\u0639\u0631\u0627\u0642","\u0639\u0631\u0627\u0642","\u0639\u06CE\u0631\u0627\u0642"]},{iso3:"ISL",iso2:"IS",m49:"352",name:"Iceland",aliases:["\u{1F1EE}\u{1F1F8}","icelandic republic","island","ly\xF0veldi\xF0 island","republic of iceland","ysland"]},{iso3:"ISR",iso2:"IL",m49:"376",name:"Israel",aliases:["\u{1F1EE}\u{1F1F1}","erez yisrael","medinat yisrael","state of israel","yisrael","\u05D9\u05E9\u05E8\u05D0\u05DC","\u05DE\u05D3\u05D9\u05E0\u05EA \u05D9\u05E9\u05E8\u05D0\u05DC"]},{iso3:"ITA",iso2:"IT",m49:"380",name:"Italy",aliases:["\u{1F1EE}\u{1F1F9}","il bel paese","italia","italian republic","repubblica italiana","republic of italy"]},{iso3:"JAM",iso2:"JM",m49:"388",name:"Jamaica",aliases:["\u{1F1EF}\u{1F1F2}","commonwealth of jamaica","jamieka","jomieka","jumieka"]},{iso3:"JEY",iso2:"JE",m49:"832",name:"Jersey",aliases:["\u{1F1EF}\u{1F1EA}","bailliage de jerri","bailliage de jersey","balliwick of jersey","i iersey","i jersey","iersey","iersey i","isle of jersey","jerri","jersey i","jersey island"]},{iso3:"JOR",iso2:"JO",m49:"400",name:"Jordan",aliases:["\u{1F1EF}\u{1F1F4}","giordania","hashemite kingdom of jordan","kingdom of jordan","state of jordan","yarden","\u0627\u0644\u0623\u0631\u062F\u0646","\u0627\u0644\u0627\u0631\u062F\u0646","\u0627\u0644\u0645\u0645\u0644\u0643\u0629 \u0627\u0644\u0623\u0631\u062F\u0646\u064A\u0629 \u0627\u0644\u0647\u0627\u0634\u0645\u064A\u0629","\u0627\u0644\u0645\u0645\u0644\u0643\u0629 \u0627\u0644\u0627\u0631\u062F\u0646\u064A\u0629 \u0627\u0644\u0647\u0627\u0634\u0645\u064A\u0629"]},{iso3:"JPN",iso2:"JP",m49:"392",name:"Japan",aliases:["\u{1F1EF}\u{1F1F5}","state of japan","\u3042\u304D\u3064\u3057\u307E","\u304A\u304A\u3084\u3057\u307E","\u3057\u304D\u3057\u307E","\u30B8\u30E3\u30D1\u30F3","\u3057\u3093\u3057\u3085\u3046","\u306B\u3063\u307D\u3093","\u306B\u3063\u307D\u3093\u3053\u304F","\u306B\u307B\u3093","\u306B\u307B\u3093\u3053\u304F","\u3072\u3044\u305A\u308B\u304F\u306B","\u3075\u305D\u3046","\u5927\u516B\u5DDE","\u6276\u6728\u4E4B\u5730","\u6276\u6851","\u6276\u6851\u56FD","\u6577\u5CF6","\u65E5\u51FA\u308B\u56FD","\u65E5\u672C","\u6991\u6728\u4E4B\u5730","\u745E\u7A42\u56FD","\u795E\u5DDE","\u79CB\u6D25\u5CF6","\u8466\u539F\u4E2D\u56FD"]},{iso3:"KAZ",iso2:"KZ",m49:"398",name:"Kazakhstan",aliases:["\u{1F1F0}\u{1F1FF}","qazaqstan","qazaqstan respublikasy","republic of kazakhstan","\u043A\u0430\u0437\u0430\u0445\u0441\u0442\u0430\u043D","\u049B\u0430\u0437\u0430\u049B\u0441\u0442\u0430\u043D","\u049B\u0430\u0437\u0430\u049B\u0441\u0442\u0430\u043D \u0440\u0435\u0441\u043F\u0443\u0431\u043B\u0438\u043A\u0430\u0441\u044B","\u0440\u0435\u0441\u043F\u0443\u0431\u043B\u0438\u043A\u0430 \u043A\u0430\u0437\u0430\u0445\u0441\u0442\u0430\u043D","\u0440\u043A"]},{iso3:"KEN",iso2:"KE",m49:"404",name:"Kenya",aliases:["\u{1F1F0}\u{1F1EA}","jamhuri ya kenya","republic of kenya"]},{iso3:"KGZ",iso2:"KG",m49:"417",name:"Kyrgyzstan",aliases:["\u{1F1F0}\u{1F1EC}","kyrgyz republic","kyrgyz respublikasy","kyrgyzstan respublikasy","\u043A\u0440","\u043A\u044B\u0440\u0433\u044B\u0437 \u0440\u0435\u0441\u043F\u0443\u0431\u043B\u0438\u043A\u0430\u0441\u044B","\u043A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D"]},{iso3:"KHM",iso2:"KH",m49:"116",name:"Cambodia",aliases:["\u{1F1F0}\u{1F1ED}","camboya","campuchia","kambodzha","kamboja","kampuchea","kingdom of cambodia","\u1780\u1798\u17D2\u1796\u17BB\u1787\u17B6","\u1796\u17D2\u179A\u17C7\u179A\u17B6\u1787\u17B6\u178E\u17B6\u1785\u1780\u17D2\u179A\u1780\u1798\u17D2\u1796\u17BB\u1787\u17B6"]},{iso3:"KIR",iso2:"KI",m49:"296",name:"Kiribati",aliases:["\u{1F1F0}\u{1F1EE}","republic of kiribati"]},{iso3:"KNA",iso2:"KN",m49:"659",name:"Saint Kitts and Nevis",aliases:["\u{1F1F0}\u{1F1F3}","federation of saint christopher and nevis","federation of saint kitts and nevis","kitts & nevis","nevis","saint christopher","saint christopher and nevis","saint kitts"]},{iso3:"KOR",iso2:"KR",m49:"410",name:"Republic of Korea",aliases:["\u{1F1F0}\u{1F1F7}","korea","korea republic","korea republic of","korea south","rep korea","s korea","south korea","taehan minguk","\uB0A8\uC870\uC120","\uB0A8\uD55C","\uB300\uD55C","\uB300\uD55C\uBBFC\uAD6D","\uCF54\uB9AC\uC544","\uD55C\uAD6D"]},{iso3:"KWT",iso2:"KW",m49:"414",name:"Kuwait",aliases:["\u{1F1F0}\u{1F1FC}","state of kuwait","\u0627\u0644\u0643\u0648\u064A\u062A","\u062F\u0648\u0644\u0629 \u0627\u0644\u0643\u0648\u064A\u062A"]},{iso3:"LAO",iso2:"LA",m49:"418",name:"Lao People's Democratic Republic",aliases:["\u{1F1F1}\u{1F1E6}","laos","sathalanalat paxathipatai paxaxon lao","\u0EAA\u0EB2\u0E97\u0EB2\u0EA5\u0EB0\u0E99\u0EB0\u0EA5\u0EB1\u0E94 \u0E9B\u0EB0\u0E8A\u0EB2\u0E97\u0EB4\u0E9B\u0EB0\u0EC4\u0E95 \u0E9B\u0EB0\u0E8A\u0EB2\u0E8A\u0EBB\u0E99\u0EA5\u0EB2\u0EA7","\u0E9B\u0EB0\u0EC0\u0E97\u0E94\u0EA5\u0EB2\u0EA7","\u0EA5\u0EB2\u0EA7"]},{iso3:"LBN",iso2:"LB",m49:"422",name:"Lebanon",aliases:["\u{1F1F1}\u{1F1E7}","lebanese republic","republic of lebanon","state of lebanon","\u0627\u0644\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u0627\u0644\u0644\u0628\u0646\u0627\u0646\u064A\u0629","\u0644\u0628\u0646\u0627\u0646"]},{iso3:"LBR",iso2:"LR",m49:"430",name:"Liberia",aliases:["\u{1F1F1}\u{1F1F7}","liber","republic of liberia"]},{iso3:"LBY",iso2:"LY",m49:"434",name:"Libya",aliases:["\u{1F1F1}\u{1F1FE}","state of libya","\u0627\u0644\u062C\u0645\u0627\u0647\u064A\u0631\u064A\u0629 \u0627\u0644\u0639\u0631\u0628\u064A\u0629 \u0627\u0644\u0644\u064A\u0628\u064A\u0629 \u0627\u0644\u0634\u0639\u0628\u064A\u0629 \u0627\u0644\u0625\u0634\u062A\u0631\u0627\u0643\u064A\u0629","\u0627\u0644\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u0627\u0644\u0644\u064A\u0628\u064A\u0629","\u0627\u0644\u0644\u064A\u0628\u064A","\u0627\u0644\u0644\u064A\u0628\u064A\u0629","\u0627\u0644\u0644\u064A\u0628\u064A\u0646","\u062F\u0648\u0644\u0629 \u0644\u064A\u0628\u064A\u0627","\u0644\u064A\u0628\u0628\u064A\u0627","\u0644\u064A\u0628\u064A","\u0644\u064A\u0628\u064A\u0627","\u0644\u064A\u0628\u064A\u0629"]},{iso3:"LCA",iso2:"LC",m49:"662",name:"Saint Lucia",aliases:["\u{1F1F1}\u{1F1E8}","hewanorra","iyonola"]},{iso3:"LIE",iso2:"LI",m49:"438",name:"Liechtenstein",aliases:["\u{1F1F1}\u{1F1EE}","furstentum lichtenstein","furstentum liechtenstein","principality of liechtenstein"]},{iso3:"LKA",iso2:"LK",m49:"144",name:"Sri Lanka",aliases:["\u{1F1F1}\u{1F1F0}","ceylan","ceylon","democratic socialist republic of sri lanka","ilankaic cananayaka cocalicak kutiyarcu","lankava","prajatantravadi samajavadi janarajaya sri lanka","serendib","srilanka","taprobane","\u0B87\u0BB2\u0B99\u0BCD\u0B95\u0BC8","\u0B87\u0BB2\u0B99\u0BCD\u0B95\u0BC8 \u0B9A\u0BA9\u0BA8\u0BBE\u0BAF\u0B95 \u0B9A\u0BCB\u0B9A\u0BB2\u0BBF\u0B9A\u0B95\u0BCD \u0B95\u0BC1\u0B9F\u0BBF\u0BAF\u0BB0\u0B9A\u0BC1","\u0B87\u0BB2\u0B99\u0BCD\u0B95\u0BC8 \u0B9A\u0BA9\u0BA8\u0BBE\u0BAF\u0B95 \u0B9A\u0BCB\u0BB7\u0BB2\u0BBF\u0B9A\u0B95\u0BCD \u0B95\u0BC1\u0B9F\u0BBF\u0BAF\u0BB0\u0B9A\u0BC1","\u0B88\u0BB4\u0BAE\u0BCD","\u0B9A\u0BBF\u0BB2\u0BCB\u0BA9\u0BCD","\u0DBD\u0D82\u0D9A\u0DCF\u0DC0","\u0DC1\u0DCA\u0DBB\u0DD3 \u0DBD\u0D82\u0D9A\u0DCF \u0DB4\u0DCA\u0DBB\u0DA2\u0DCF\u0DAD\u0DB1\u0DCA\u0DAD\u0DCA\u0DBB\u0DC0\u0DCF\u0DAF\u0DD3 \u0DC3\u0DB8\u0DCF\u0DA2\u0DC0\u0DCF\u0DAF\u0DD3 \u0DA2\u0DB1\u0DBB\u0DA2\u0DBA","\u0DC1\u0DCA\u0DBB\u0DD3 \u0DBD\u0D82\u0D9A\u0DCF\u0DC0","\u0DC1\u0DCA\u200D\u0DBB\u0DD3 \u0DBD\u0D82\u0D9A\u0DCF\u0DC0"]},{iso3:"LSO",iso2:"LS",m49:"426",name:"Lesotho",aliases:["\u{1F1F1}\u{1F1F8}","kingdom of lesotho","mmuso wa lesotho","mountain kingdom"]},{iso3:"LTU",iso2:"LT",m49:"440",name:"Lithuania",aliases:["\u{1F1F1}\u{1F1F9}","lietuva","lietuvos respublika","republic of lithuania"]},{iso3:"LUX",iso2:"LU",m49:"442",name:"Luxembourg",aliases:["\u{1F1F1}\u{1F1FA}","grand duche","grand duche de luxembourg","grand duchy of luxembourg","gro\xDFherzogtum luxemburg","groussherzogtum letzebuerg","le grand duche de luxembourg","letzebuerg","letzebuerger land","lux","luxemburg"]},{iso3:"LVA",iso2:"LV",m49:"428",name:"Latvia",aliases:["\u{1F1F1}\u{1F1FB}","latveja","latvejas republika","latvian republic","latvija","latvijas republika","letm\u043E","letm\u043E vabam\u043E","republic of latvia"]},{iso3:"MAC",iso2:"MO",m49:"446",name:"Macao",aliases:["\u{1F1F2}\u{1F1F4}","aomen","macao sar","macao special administrative region","macao special administrative region of the peoples republic of china","macau","macau rae da china","macau sar","macau special administrative region","macau special administrative region of the peoples republic of china","raem","regiao administrativa especial de macau","regiao administrativa especial de macau da republica popular da china","\u4E2D\u570B\u6FB3\u9580\u7279\u5225\u884C\u653F\u5340","\u6FB3\u9580"]},{iso3:"MAF",iso2:"MF",m49:"663",name:"Saint Martin (French Part)",aliases:["\u{1F1F2}\u{1F1EB}","collectivite de saint martin","collectivity of saint martin","saint martin","saint martin antilles francaises","saint martin france"]},{iso3:"MAR",iso2:"MA",m49:"504",name:"Morocco",aliases:["\u{1F1F2}\u{1F1E6}","kingdom of morocco","\u0627\u0644\u0645\u063A\u0631\u0628","\u0627\u0644\u0645\u0645\u0644\u0643\u0629 \u0627\u0644\u0645\u063A\u0631\u0628\u064A\u0629","\u2D30\u2D4E\u2D53\u2D54 \u2D4F \u2D61\u2D30\u2D3D\u2D53\u2D5B","\u2D30\u2D4E\u2D55\u2D55\u2D53\u2D3D","\u2D4D\u2D4E\u2D55\u2D55\u2D53\u2D3D","\u2D4D\u2D4E\u2D56\u2D54\u2D49\u2D31","\u2D5C\u2D30\u2D33\u2D4D\u2D37\u2D49\u2D5C \u2D4F \u2D4D\u2D4E\u2D56\u2D54\u2D49\u2D31"]},{iso3:"MCO",iso2:"MC",m49:"492",name:"Monaco",aliases:["\u{1F1F2}\u{1F1E8}","fort hercule","la principaute de monaco","monaco rattachee au district de menton en 1793","munegu","principality and diocese of monaco","principality of monaco","principatu de munegu","principaute de monaco"]},{iso3:"MDA",iso2:"MD",m49:"498",name:"Republic of Moldova",aliases:["\u{1F1F2}\u{1F1E9}","moldavia","moldova","moldova republic of","moldova republica","r moldova","rep moldova","republica moldova","\u043C\u043E\u043B\u0434\u043E\u0432\u0430"]},{iso3:"MDG",iso2:"MG",m49:"450",name:"Madagascar",aliases:["\u{1F1F2}\u{1F1EC}","la republique de madagascar","madagasikara","repoblikani madagasikara","republic of madagascar","republique de madagascar"]},{iso3:"MDV",iso2:"MV",m49:"462",name:"Maldives",aliases:["\u{1F1F2}\u{1F1FB}","dhivehi raajjeyge jumhooriyyaa","republic of maldives","\u078B\u07A8\u0788\u07AC\u0780\u07A8 \u0783\u07A7\u0787\u07B0\u0796\u07AC","\u078B\u07A8\u0788\u07AC\u0780\u07A8\u0783\u07A7\u0787\u07B0\u0796\u07AC","\u078B\u07A8\u0788\u07AC\u0780\u07A8\u0783\u07A7\u0787\u07B0\u0796\u07AD\u078E\u07AC \u0796\u07AA\u0789\u07AA\u0780\u07AB\u0783\u07A8\u0787\u07B0\u0794\u07A7","\u078B\u07A8\u0788\u07AC\u0780\u07A8\u0783\u07A7\u0787\u07B0\u0796\u07AD\u078E\u07AC \u0796\u07AA\u0789\u07B0\u0780\u07AB\u0783\u07A8\u0787\u07B0\u0794\u07A7"]},{iso3:"MEX",iso2:"MX",m49:"484",name:"Mexico",aliases:["\u{1F1F2}\u{1F1FD}","estados unidos mejicanos","estados unidos mexicanos","mejico","mexican republic","mexican united states","mexihco","mexihko","mexika sentik wexteyowalko","mexiko","mexko","mexko axkayotl","mexko tlalli","nueva espana","republica mejicana","republica mexicana","united mexican states","united states of mexico"]},{iso3:"MHL",iso2:"MH",m49:"584",name:"Marshall Islands",aliases:["\u{1F1F2}\u{1F1ED}","aelon kein ad","aolepan aorokin majel","jolet jen anij","majel","majol","republic of the marshall islands"]},{iso3:"MKD",iso2:"MK",m49:"807",name:"North Macedonia",aliases:["\u{1F1F2}\u{1F1F0}","former yugoslav republic of macedonia","fyr macedonia","fyrom","irjm","ish republika jugosllave e maqedonise","macedonia","macedonia former yugoslav republic of","macedonia fyr","maqedoni","maqedonia","maqedonia e veriut","republic of macedonia","republic of north macedonia","republika e maqedonise","republika e maqedonise se veriut","\u043C\u0430\u043A\u0435\u0434\u043E\u043D\u0438\u0458\u0430","\u0440\u0435\u043F\u0443\u0431\u043B\u0438\u043A\u0430 \u043C\u0430\u043A\u0435\u0434\u043E\u043D\u0438\u0458\u0430","\u0440\u0435\u043F\u0443\u0431\u043B\u0438\u043A\u0430 \u0441\u0435\u0432\u0435\u0440\u043D\u0430 \u043C\u0430\u043A\u0435\u0434\u043E\u043D\u0438\u0458\u0430","\u0440\u043C","\u0440\u0441\u043C","\u0441\u0435\u0432\u0435\u0440\u043D\u0430 \u043C\u0430\u043A\u0435\u0434\u043E\u043D\u0438\u0458\u0430"]},{iso3:"MLI",iso2:"ML",m49:"466",name:"Mali",aliases:["\u{1F1F2}\u{1F1F1}","maali","republic of mali"]},{iso3:"MLT",iso2:"MT",m49:"470",name:"Malta",aliases:["\u{1F1F2}\u{1F1F9}","malta island","repubblika ta malta","republic of malta"]},{iso3:"MMR",iso2:"MM",m49:"104",name:"Myanmar",aliases:["\u{1F1F2}\u{1F1F2}","burma","pyidaungzu myanma naingngandaw","pyidaungzu thammada myanma naingngandaw","republic of the union of myanmar","union of burma","\u1015\u103C\u100A\u103A\u1011\u1031\u102C\u1004\u103A\u1005\u102F \u1019\u103C\u1014\u103A\u1019\u102C\u1014\u102D\u102F\u1004\u103A\u1004\u1036","\u1015\u103C\u100A\u103A\u1011\u1031\u102C\u1004\u103A\u1005\u102F \u1019\u103C\u1014\u103A\u1019\u102C\u1014\u102D\u102F\u1004\u103A\u1004\u1036\u1010\u1031\u102C\u103A","\u1015\u103C\u100A\u103A\u1011\u1031\u102C\u1004\u103A\u1005\u102F \u101E\u1019\u1039\u1019\u1010 \u1019\u103C\u1014\u103A\u1019\u102C\u1014\u102D\u102F\u1004\u103A\u1004\u1036","\u1015\u103C\u100A\u103A\u1011\u1031\u102C\u1004\u103A\u1005\u102F \u101E\u1019\u1039\u1019\u1010 \u1019\u103C\u1014\u103A\u1019\u102C\u1014\u102D\u102F\u1004\u103A\u1004\u1036\u1010\u1031\u102C\u103A","\u1015\u103C\u100A\u103A\u1011\u1031\u102C\u1004\u103A\u1005\u102F\u1019\u103C\u1014\u103A\u1019\u102C\u1014\u102D\u102F\u1004\u103A\u1004\u1036\u1010\u1031\u102C\u103A","\u1015\u103C\u100A\u103A\u1011\u1031\u102C\u1004\u103A\u1005\u102F\u101E\u1019\u1039\u1019\u1010\u1019\u103C\u1014\u103A\u1019\u102C\u1014\u102D\u102F\u1004\u103A\u1004\u1036","\u1015\u103C\u200C\u100A\u103A\u1011\u1031\u102C\u1004\u103A\u1005\u102F\u101E\u1019\u1039\u1019\u1010\u1019\u103C\u1014\u103A\u1019\u102C\u1014\u102D\u102F\u1004\u103A\u1004\u1036","\u1015\u103C\u100A\u103A\u1011\u1031\u102C\u1004\u103A\u1005\u102F\u101E\u1019\u1039\u1019\u1010\u1019\u103C\u1014\u103A\u1019\u102C\u1014\u102D\u102F\u1004\u103A\u1004\u1036\u1010\u1031\u102C\u103A","\u1017\u1019\u102C\u1015\u103C\u100A\u103A","\u1019\u103C\u1014\u103A\u1019\u102C","\u1019\u103C\u1014\u103A\u1019\u102C\u1014\u102D\u102F\u1004\u103A\u1004\u1036","\u1019\u103C\u1014\u103A\u1019\u102C\u1014\u102D\u102F\u1004\u103A\u1004\u1036\u1010\u1031\u102C\u103A","\u1019\u103C\u1014\u103A\u1019\u102C\u1015\u103C\u100A\u103A"]},{iso3:"MNE",iso2:"ME",m49:"499",name:"Montenegro",aliases:["\u{1F1F2}\u{1F1EA}","crna cora","\u0446\u0440\u043D\u0430 \u0433\u043E\u0440\u0430"]},{iso3:"MNG",iso2:"MN",m49:"496",name:"Mongolia",aliases:["\u{1F1F2}\u{1F1F3}","bugd nayramdah mongol ard uls","mongol uls","state of mongolia","\u043C\u043E\u043D\u0433\u043E\u043B","\u043C\u043E\u043D\u0433\u043E\u043B \u0443\u043B\u0441","\u182E\u1824\u1829\u182D\u1824\u182F \u1824\u182F\u1824\u1830"]},{iso3:"MNP",iso2:"MP",m49:"580",name:"Northern Mariana Islands",aliases:["\u{1F1F2}\u{1F1F5}","cnmi","commonwealth of the northern maria islands","commonwealth of the northern mariana islands","northern marianas","notte marianas","sankattan siha na islas marianas"]},{iso3:"MOZ",iso2:"MZ",m49:"508",name:"Mozambique",aliases:["\u{1F1F2}\u{1F1FF}","mocambique","republic of mozambique","republica de mocambique"]},{iso3:"MRT",iso2:"MR",m49:"478",name:"Mauritania",aliases:["\u{1F1F2}\u{1F1F7}","islamic republic of mauritania","\u0627\u0644\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u0627\u0644\u0625\u0633\u0644\u0627\u0645\u064A\u0629 \u0627\u0644\u0645\u0648\u0631\u064A\u062A\u0627\u0646\u064A\u0629","\u0645\u0648\u0631\u064A\u062A\u0627\u0646\u064A\u0627"]},{iso3:"MSR",iso2:"MS",m49:"500",name:"Montserrat",aliases:["\u{1F1F2}\u{1F1F8}","island of montserrat"]},{iso3:"MTQ",iso2:"MQ",m49:"474",name:"Martinique",aliases:["\u{1F1F2}\u{1F1F6}","territorial collectivity of martinique"]},{iso3:"MUS",iso2:"MU",m49:"480",name:"Mauritius",aliases:["\u{1F1F2}\u{1F1FA}","ile maurice","la republique de maurice","maurice","moris","republic of mauritius","republique de maurice"]},{iso3:"MWI",iso2:"MW",m49:"454",name:"Malawi",aliases:["\u{1F1F2}\u{1F1FC}","republic of malawi"]},{iso3:"MYS",iso2:"MY",m49:"458",name:"Malaysia",aliases:["\u{1F1F2}\u{1F1FE}","federation of malaysia","malaysia federation","negara seberang tambak","persekutuan malaysia"]},{iso3:"MYT",iso2:"YT",m49:"175",name:"Mayotte",aliases:["\u{1F1FE}\u{1F1F9}","departement de mayotte","departement region de mayotte","department of mayotte"]},{iso3:"NAM",iso2:"NA",m49:"516",name:"Namibia",aliases:["\u{1F1F3}\u{1F1E6}","republic of namibia"]},{iso3:"NCL",iso2:"NC",m49:"540",name:"New Caledonia",aliases:["\u{1F1F3}\u{1F1E8}","caledonie","kanaky","kanaky nouvelle caledonie","nouvelle caledonie","territoire de la nouvelle caledonie et dependances","territoire des nouvelle caledonie et dependances","territory of new caledonia and dependencies"]},{iso3:"NER",iso2:"NE",m49:"562",name:"Niger",aliases:["\u{1F1F3}\u{1F1EA}","jamhuriyar nijar","nijar","republic niger","republic of niger","republic of the niger"]},{iso3:"NFK",iso2:"NF",m49:"574",name:"Norfolk Island",aliases:["\u{1F1F3}\u{1F1EB}","norfolk island australia","norfolk island other territories","norfolk island other territories australia","territory of norfolk island"]},{iso3:"NGA",iso2:"NG",m49:"566",name:"Nigeria",aliases:["\u{1F1F3}\u{1F1EC}","federal republic of nigeria","naija"]},{iso3:"NIC",iso2:"NI",m49:"558",name:"Nicaragua",aliases:["\u{1F1F3}\u{1F1EE}","republic of nicaragua","republica de nicaragua"]},{iso3:"NIU",iso2:"NU",m49:"570",name:"Niue",aliases:["\u{1F1F3}\u{1F1FA}"]},{iso3:"NLD",iso2:"NL",m49:"528",name:"Kingdom of the Netherlands",aliases:["\u{1F1F3}\u{1F1F1}","hollandt","kingdom of netherlands","koninkrijk der nederlanden","nederland","nederlanden","nederlandt","netherlands","netherlands kingdom of the"]},{iso3:"NOR",iso2:"NO",m49:"578",name:"Norway",aliases:["\u{1F1F3}\u{1F1F4}","kingdom of norway","kongeriket noreg","kongeriket norge","noreg","norge"]},{iso3:"NPL",iso2:"NP",m49:"524",name:"Nepal",aliases:["\u{1F1F3}\u{1F1F5}","bal bo","bal poi yul","bal yul","balbo","balpo","balpo yul","nipal","sanghiya loktantrik ganatantra nepal","\u0928\u0947\u092A\u093E\u0932","\u0938\u0902\u0918\u093F\u092F \u0932\u094B\u0915\u0924\u093E\u0928\u094D\u0924\u094D\u0930\u093F\u0915 \u0917\u0923\u0924\u0928\u094D\u0924\u094D\u0930 \u0928\u0947\u092A\u093E\u0932","\u0938\u0902\u0918\u093F\u092F \u0932\u094B\u0915\u0924\u093E\u0928\u094D\u0924\u094D\u0930\u093F\u0915 \u0917\u0923\u0924\u0928\u094D\u0924\u094D\u0930\u093E\u0924\u094D\u092E\u0915 \u0928\u0947\u092A\u093E\u0932","\u0938\u0902\u0918\u0940\u092F \u0932\u094B\u0915\u0924\u093E\u0928\u094D\u0924\u094D\u0930\u093F\u0915 \u0917\u0923\u0924\u0928\u094D\u0924\u094D\u0930 \u0928\u0947\u092A\u093E\u0932"]},{iso3:"NRU",iso2:"NR",m49:"520",name:"Naoero",aliases:["\u{1F1F3}\u{1F1F7}","nauru","pleasant island","republic of naoero","republic of nauru"]},{iso3:"NZL",iso2:"NZ",m49:"554",name:"New Zealand",aliases:["\u{1F1F3}\u{1F1FF}","aotearoa","aotearoa new zealand","dominion of new zealand"]},{iso3:"OMN",iso2:"OM",m49:"512",name:"Oman",aliases:["\u{1F1F4}\u{1F1F2}","sultanate of oman","uman","\u0633\u0644\u0637\u0646\u0629 \u0639\u0645\u0627\u0646","\u0639\u0645\u0627\u0646"]},{iso3:"PAK",iso2:"PK",m49:"586",name:"Pakistan",aliases:["\u{1F1F5}\u{1F1F0}","hoi quoc","islamic republic of pakistan","republic of pakistan","tay hoi","\u0627\u0633\u0644\u0627\u0645\u06CC \u062C\u0645\u06C1\u0648\u0631\u06CC\u06C1 \u067E\u0627\u06A9\u0633\u062A\u0627\u0646","\u0628\u0627\u06A9\u0633\u062A\u0627\u0646","\u067E\u0627\u06A9\u0633\u062A\u0627\u0646"]},{iso3:"PAN",iso2:"PA",m49:"591",name:"Panama",aliases:["\u{1F1F5}\u{1F1E6}","republic of panama","republica de panama"]},{iso3:"PCN",iso2:"PN",m49:"612",name:"Pitcairn",aliases:["\u{1F1F5}\u{1F1F3}","occas island","pisskern ali\u0435n","pitcairn henderson ducie and oeno islands","pitcairn island","pitcairn islands","pitkern ailen"]},{iso3:"PER",iso2:"PE",m49:"604",name:"Peru",aliases:["\u{1F1F5}\u{1F1EA}","piruw","piruw ripuwlika","republic of peru","republica del peru"]},{iso3:"PHL",iso2:"PH",m49:"608",name:"Philippines",aliases:["\u{1F1F5}\u{1F1ED}","philippine islands","republic of the philippines"]},{iso3:"PLW",iso2:"PW",m49:"585",name:"Palau",aliases:["\u{1F1F5}\u{1F1FC}","belau","peeloo","pelew","pelew islands","pellew","republic of belau","republic of palau","\u30D1\u30E9\u30AA","\u30D1\u30E9\u30AA\u5171\u548C\u56FD"]},{iso3:"PNG",iso2:"PG",m49:"598",name:"Papua New Guinea",aliases:["\u{1F1F5}\u{1F1EC}","independent state of papua new guinea","papua niugini"]},{iso3:"POL",iso2:"PL",m49:"616",name:"Poland",aliases:["\u{1F1F5}\u{1F1F1}","polska","republic of poland","rzeczpospolita polska"]},{iso3:"PRI",iso2:"PR",m49:"630",name:"Puerto Rico",aliases:["\u{1F1F5}\u{1F1F7}","boriken","borinquen","boriquen","commonwealth of puerto rico","estado libre asociado de puerto rico","free associated state of puerto rico","isla del encanto","island of enchantment","isle of enchantment","mancomunidad de puerto rico","porto rico","territorio de puerto rico","territorio estadounidense de puerto rico","territory of porto rico","territory of puerto rico"]},{iso3:"PRK",iso2:"KP",m49:"408",name:"Democratic People's Republic of Korea",aliases:["\u{1F1F0}\u{1F1F5}","choson minjujuui inmin konghwaguk","dpr korea","dprk","korea democratic peoples republic of","n korea","north korea","\uACF5\uD654\uAD6D","\uBD81\uC870\uC120","\uBD81\uD55C","\uC870\uC120","\uC870\uC120\uBBFC\uC8FC\uC8FC\uC758\uC778\uBBFC\uACF5\uD654\uAD6D"]},{iso3:"PRT",iso2:"PT",m49:"620",name:"Portugal",aliases:["\u{1F1F5}\u{1F1F9}","republica portuguesa"]},{iso3:"PRY",iso2:"PY",m49:"600",name:"Paraguay",aliases:["\u{1F1F5}\u{1F1FE}","paraguai","republic of paraguay","republica del paraguay","teta paraguai"]},{iso3:"PSE",iso2:"PS",m49:"275",name:"State of Palestine",aliases:["\u{1F1F5}\u{1F1F8}","palestine","palestine state of","palestinian authority","palestinian national authority","palestinian territory","west bank and gaza","\u0623\u0631\u0627\u0636\u064A \u0641\u0644\u0633\u0637\u064A\u0646\u064A\u0629","\u0627\u0644\u0623\u0631\u0627\u0636\u064A \u0627\u0644\u0641\u0644\u0633\u0637\u064A\u0646\u064A\u0629","\u0627\u0644\u062F\u0648\u0644\u0629 \u0627\u0644\u0641\u0644\u0633\u0637\u064A\u0646\u064A\u0629","\u0627\u0644\u0633\u0644\u0637\u0629 \u0627\u0644\u0641\u0644\u0633\u0637\u064A\u0646\u064A\u0629","\u0627\u0644\u0633\u0644\u0637\u0629 \u0627\u0644\u0648\u0637\u0646\u064A\u0629 \u0627\u0644\u0641\u0644\u0633\u0637\u064A\u0646\u064A\u0629","\u0627\u0644\u0636\u0641\u0629 \u0627\u0644\u063A\u0631\u0628\u064A\u0629 \u0648\u0642\u0637\u0627\u0639 \u063A\u0632\u0629","\u062F\u0648\u0644\u0629 \u0641\u0644\u0633\u0637\u064A\u0646","\u0641\u0644\u0633\u0637\u064A\u0646"]},{iso3:"PYF",iso2:"PF",m49:"258",name:"French Polynesia",aliases:["\u{1F1F5}\u{1F1EB}","f oh","french establishments in oceania","french oceania","french settlements in oceania","polynesie francaise","territoire de la polynesie francaise","territory of french polynesia"]},{iso3:"QAT",iso2:"QA",m49:"634",name:"Qatar",aliases:["\u{1F1F6}\u{1F1E6}","state of qatar","\u0625\u0645\u0627\u0631\u0629 \u0642\u0637\u0631","\u062F\u0648\u0644\u0629 \u0642\u0637\u0631","\u0642\u0637\u0631"]},{iso3:"REU",iso2:"RE",m49:"638",name:"R\xE9union",aliases:["\u{1F1F7}\u{1F1EA}","ile bourbon","ile de la reunion","la reunion","re","region reunion","reunion island"]},{iso3:"ROU",iso2:"RO",m49:"642",name:"Romania",aliases:["\u{1F1F7}\u{1F1F4}"]},{iso3:"RUS",iso2:"RU",m49:"643",name:"Russian Federation",aliases:["\u{1F1F7}\u{1F1FA}","federation of russia","russia","\u0440\u043E\u0441\u0441\u0438\u0438\u0441\u043A\u0430\u044F \u0444\u0435\u0434\u0435\u0440\u0430\u0446\u0438\u044F","\u0440\u043E\u0441\u0441\u0438\u044F","\u0440\u0444"]},{iso3:"RWA",iso2:"RW",m49:"646",name:"Rwanda",aliases:["\u{1F1F7}\u{1F1FC}","igihugu cyimisozi igihumbi","jamhuri ya rwanda","la republique du rwanda","land of a thousand hills","republic of rwanda","republika yu rwanda","republique du rwanda","republique rwandaise","repubulika yu rwanda","u rwanda"]},{iso3:"SAU",iso2:"SA",m49:"682",name:"Saudi Arabia",aliases:["\u{1F1F8}\u{1F1E6}","kingdom of saudi arabia","\u0627\u0644\u062F\u0648\u0644\u0629 \u0627\u0644\u0633\u0639\u0648\u062F\u064A\u0629","\u0627\u0644\u062F\u0648\u0644\u0647 \u0627\u0644\u0633\u0639\u0648\u062F\u064A\u0647","\u0627\u0644\u0633\u0639\u0648\u062F\u064A\u0629","\u0627\u0644\u0633\u0639\u0648\u062F\u064A\u0647","\u0627\u0644\u0639\u0631\u0628\u064A\u0629 \u0627\u0644\u0633\u0639\u0648\u062F\u064A\u0629","\u0627\u0644\u0645\u0645\u0644\u0643\u0629","\u0627\u0644\u0645\u0645\u0644\u0643\u0629 \u0627\u0644\u0633\u0639\u0648\u062F\u064A\u0629","\u0627\u0644\u0645\u0645\u0644\u0643\u0629 \u0627\u0644\u0639\u0631\u0628\u064A\u0629","\u0627\u0644\u0645\u0645\u0644\u0643\u0629 \u0627\u0644\u0639\u0631\u0628\u064A\u0629 \u0627\u0644\u0633\u0639\u0648\u062F\u064A\u0629","\u0627\u0644\u0645\u0645\u0644\u0643\u0647","\u0627\u0644\u0645\u0645\u0644\u0643\u0647 \u0627\u0644\u0639\u0631\u0628\u064A\u0647 \u0627\u0644\u0633\u0639\u0648\u062F\u064A\u0647","\u0628\u0644\u0627\u062F \u0627\u0644\u062D\u0631\u0645\u064A\u0646 \u0627\u0644\u0634\u0631\u064A\u0641\u064A\u0646","\u062F\u0648\u0644\u0629 \u0622\u0644 \u0633\u0639\u0648\u062F","\u0633\u0639\u0648\u062F\u064A\u0629","\u0633\u0639\u0648\u062F\u064A\u0647","\u0645\u0646\u0628\u0639 \u0627\u0644\u0631\u0633\u0627\u0644\u0629","\u0645\u0647\u0628\u0637 \u0627\u0644\u0648\u062D\u064A"]},{iso3:"SDN",iso2:"SD",m49:"729",name:"Sudan",aliases:["\u{1F1F8}\u{1F1E9}","al sudan","as sudan","north sudan","republic of sudan","republic of the sudan","soudan","\u0627\u0644\u0633\u0648\u062F\u0627\u0646","\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u0627\u0644\u0633\u0648\u062F\u0627\u0646"]},{iso3:"SEN",iso2:"SN",m49:"686",name:"Senegal",aliases:["\u{1F1F8}\u{1F1F3}","la republique du senegal","republic of senegal","republique du senegal","sen","senegaal"]},{iso3:"SGP",iso2:"SG",m49:"702",name:"Singapore",aliases:["\u{1F1F8}\u{1F1EC}","garden city","lion city","republic of singapore","republik singapura","singapore city","singapura","spore","\u0B9A\u0BBF\u0B99\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0BC2\u0BB0\u0BCD","\u0B9A\u0BBF\u0B99\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0BC2\u0BB0\u0BCD \u0B95\u0BC1\u0B9F\u0BBF\u0BAF\u0BB0\u0B9A\u0BC1","\u0B9A\u0BBF\u0B99\u0BCD\u0B95\u0BC8","\u0BB8\u0BBF\u0B99\u0BCD\u0B95\u0BAA\u0BC2\u0BB0\u0BCD"]},{iso3:"SGS",iso2:"GS",m49:"239",name:"South Georgia and the South Sandwich Islands",aliases:["\u{1F1EC}\u{1F1F8}","falkland islands dependencies","sgssi","south georgia","south georgia & south sandwich islands","south sandwich islands"]},{iso3:"SHN",iso2:"SH",m49:"654",name:"Saint Helena",aliases:["\u{1F1F8}\u{1F1ED}","ascension","saint helena and dependencies","saint helena ascension and tristan da cunha","tristan da cunha"]},{iso3:"SJM",iso2:"SJ",m49:"744",name:"Svalbard and Jan Mayen Islands",aliases:["\u{1F1F8}\u{1F1EF}","jan mayen","svalbard","svalbard and jan mayen","svalbard og jan mayen"]},{iso3:"SLB",iso2:"SB",m49:"090",name:"Solomon Islands",aliases:["\u{1F1F8}\u{1F1E7}"]},{iso3:"SLE",iso2:"SL",m49:"694",name:"Sierra Leone",aliases:["\u{1F1F8}\u{1F1F1}","republic of sierra leone"]},{iso3:"SLV",iso2:"SV",m49:"222",name:"El Salvador",aliases:["\u{1F1F8}\u{1F1FB}","republic of el salvador","republica de el salvador","salvador"]},{iso3:"SMR",iso2:"SM",m49:"674",name:"San Marino",aliases:["\u{1F1F8}\u{1F1F2}","most serene republic of san marino","repubblica di san marino","serenissima repubblica di san marino"]},{iso3:"SOM",iso2:"SO",m49:"706",name:"Somalia",aliases:["\u{1F1F8}\u{1F1F4}","as sumal","federal republic of somalia","jamhuuriyadda federaalka soomaaliya","jamhuuriyadda soomaaliyeed","soomaaliya","soomaaliyeey toosoo","\u0627\u0644\u0635\u0648\u0645\u0627\u0644","\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u0627\u0644\u0635\u0648\u0645\u0627\u0644","\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u0627\u0644\u0635\u0648\u0645\u0627\u0644 \u0627\u0644\u062F\u064A\u0645\u0648\u0642\u0631\u0627\u0637\u064A\u0629","\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u0627\u0644\u0635\u0648\u0645\u0627\u0644 \u0627\u0644\u0641\u064A\u062F\u0631\u0627\u0644\u064A\u0629","\u0635\u0648\u0645\u0627\u0644"]},{iso3:"SPM",iso2:"PM",m49:"666",name:"Saint Pierre and Miquelon",aliases:["\u{1F1F5}\u{1F1F2}","collectivite territoriale de saint pierre et miquelon","miquelon","saint pierre","saint pierre et miquelon","territorial collectivity of saint pierre and miquelon"]},{iso3:"SRB",iso2:"RS",m49:"688",name:"Serbia",aliases:["\u{1F1F7}\u{1F1F8}","republic of serbia","republika srbija","\u0440\u0435\u043F\u0443\u0431\u043B\u0438\u043A\u0430 \u0441\u0440\u0431\u0438\u0458\u0430","\u0441\u0440\u0431\u0438\u0458\u0430"]},{iso3:"SSD",iso2:"SS",m49:"728",name:"South Sudan",aliases:["\u{1F1F8}\u{1F1F8}","republic of south sudan","southern sudan"]},{iso3:"STP",iso2:"ST",m49:"678",name:"Sao Tome and Principe",aliases:["\u{1F1F8}\u{1F1F9}","democratic republic of sao tome and principe","principe","republica democratica de sao tome e principe","sao tome","sao tome e principe","sao tome og principe"]},{iso3:"SUR",iso2:"SR",m49:"740",name:"Suriname",aliases:["\u{1F1F8}\u{1F1F7}","dutch guiana","republic of surinam","republic of suriname","republiek suriname","surinam","surrinam"]},{iso3:"SVK",iso2:"SK",m49:"703",name:"Slovakia",aliases:["\u{1F1F8}\u{1F1F0}","slovak republic","slovenska republika","slovensko"]},{iso3:"SVN",iso2:"SI",m49:"705",name:"Slovenia",aliases:["\u{1F1F8}\u{1F1EE}","republic of slovenia","republika slovenija","slovenija"]},{iso3:"SWE",iso2:"SE",m49:"752",name:"Sweden",aliases:["\u{1F1F8}\u{1F1EA}","kingdom of sweden","konungadomet sverige","konungariket sverige","kungadomet sverige","kungariket sverige","sverige","swedish kingdom"]},{iso3:"SWZ",iso2:"SZ",m49:"748",name:"Eswatini",aliases:["\u{1F1F8}\u{1F1FF}","kingdom of eswatini","kingdom of swaziland","swaziland","umbuso weswatini"]},{iso3:"SXM",iso2:"SX",m49:"534",name:"Sint Maarten (Dutch part)",aliases:["\u{1F1F8}\u{1F1FD}","country of sint maarten","eilandgebied sint maarten","land sint maarten","saint maarten","saint martin dutch part","sint maarten","sint martin"]},{iso3:"SYC",iso2:"SC",m49:"690",name:"Seychelles",aliases:["\u{1F1F8}\u{1F1E8}","la republique des seychelles","repiblik sesel","republic of seychelles","republique des seychelles"]},{iso3:"SYR",iso2:"SY",m49:"760",name:"Syrian Arab Republic",aliases:["\u{1F1F8}\u{1F1FE}","surya","syria","\u0627\u0644\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u0627\u0644\u0639\u0631\u0628\u064A\u0629 \u0627\u0644\u0633\u0648\u0631\u064A\u0629","\u0627\u0644\u0634\u0627\u0645","\u0633\u0648\u0631\u064A\u0627","\u0633\u0648\u0631\u064A\u0629"]},{iso3:"TCA",iso2:"TC",m49:"796",name:"Turks and Caicos Islands",aliases:["\u{1F1F9}\u{1F1E8}","caicos","caicos islands","turks","turks & caicos","turks islands"]},{iso3:"TCD",iso2:"TD",m49:"148",name:"Chad",aliases:["\u{1F1F9}\u{1F1E9}","la republique du tchad","republic of chad","republique du tchad","tchad","\u062A\u0634\u0627\u062F","\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u062A\u0634\u0627\u062F"]},{iso3:"TGO",iso2:"TG",m49:"768",name:"Togo",aliases:["\u{1F1F9}\u{1F1EC}","la republique togolaise","republique togolaise","togolese republic"]},{iso3:"THA",iso2:"TH",m49:"764",name:"Thailand",aliases:["\u{1F1F9}\u{1F1ED}","kingdom of siam","kingdom of thailand","siam","thai","\u0E44\u0E17\u0E22","\u0E1B\u0E23\u0E30\u0E40\u0E17\u0E28\u0E44\u0E17\u0E22","\u0E1B\u0E23\u0E30\u0E40\u0E17\u0E28\u0E2A\u0E22\u0E32\u0E21","\u0E40\u0E21\u0E37\u0E2D\u0E07\u0E44\u0E17\u0E22","\u0E23\u0E32\u0E0A\u0E2D\u0E32\u0E13\u0E32\u0E08\u0E31\u0E01\u0E23\u0E44\u0E17\u0E22","\u0E23\u0E32\u0E0A\u0E2D\u0E32\u0E13\u0E32\u0E08\u0E31\u0E01\u0E23\u0E2A\u0E22\u0E32\u0E21","\u0E2A\u0E22\u0E32\u0E21"]},{iso3:"TJK",iso2:"TJ",m49:"762",name:"Tajikistan",aliases:["\u{1F1F9}\u{1F1EF}","jumhurii tojikiston","republic of tajikistan","\u0442\u043E\u04B7\u0438\u043A\u0438\u0441\u0442\u043E\u043D","\u0442\u04B7","\u0442\u04B7\u043A","\u04B7\u0442","\u04B7\u0443\u043C\u04B3\u0443\u0440\u0438\u0438 \u0442\u043E\u04B7\u0438\u043A\u0438\u0441\u0442\u043E\u043D"]},{iso3:"TKL",iso2:"TK",m49:"772",name:"Tokelau",aliases:["\u{1F1F9}\u{1F1F0}","tokelau islands","union islands"]},{iso3:"TKM",iso2:"TM",m49:"795",name:"Turkmenistan",aliases:["\u{1F1F9}\u{1F1F2}"]},{iso3:"TLS",iso2:"TL",m49:"626",name:"Timor-Leste",aliases:["\u{1F1F9}\u{1F1F1}","democratic republic of timor leste","east timor","republica democratica de timor leste","republika demokratika timor lorosae","timor loro sae","timor lorosae"]},{iso3:"TON",iso2:"TO",m49:"776",name:"Tonga",aliases:["\u{1F1F9}\u{1F1F4}","friendly islands","kingdom of tonga","puleanga fakatui o tonga","tonga islands"]},{iso3:"TTO",iso2:"TT",m49:"780",name:"Trinidad and Tobago",aliases:["\u{1F1F9}\u{1F1F9}","republic of trinidad and tobago","tobago","trinidad"]},{iso3:"TUN",iso2:"TN",m49:"788",name:"Tunisia",aliases:["\u{1F1F9}\u{1F1F3}","republic of tunisia","tunisian republic","\u0627\u0644\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u0627\u0644\u062A\u0648\u0646\u0633\u064A\u0629","\u062A\u0648\u0646\u0633","\u062A\u0648\u0646\u0633 \u0627\u0644\u062E\u0636\u0631\u0627\u0621"]},{iso3:"TUR",iso2:"TR",m49:"792",name:"T\xFCrkiye",aliases:["\u{1F1F9}\u{1F1F7}","republic of turkey","republic of turkiye","turkey","turkiye cumhuriyeti"]},{iso3:"TUV",iso2:"TV",m49:"798",name:"Tuvalu",aliases:["\u{1F1F9}\u{1F1FB}","ellice islands"]},{iso3:"TWN",iso2:"TW",m49:"158",name:"Taiwan",aliases:["\u{1F1F9}\u{1F1FC}","chinese republic","chinese taipei","chunghwa minkuo","chunghwa minkwo","conghwaminku","cunghwa minkwo","cyukamingkok","formosa","nanasian","nationalist china","republic of china","republic of china taiwan","roc","taivang","taiwan province of china","taiwan roc","taywan","taywang","teywan","\u4E2D\u83EF\u6C11\u570B","\u4E2D\u83EF\u6C11\u570B\uFF08\u81FA\u7063\uFF09","\u4E2D\u83EF\u81FA\u5317","\u53F0\u7063","\u81FA\u6F8E\u91D1\u99AC","\u81FA\u7063"]},{iso3:"TZA",iso2:"TZ",m49:"834",name:"United Republic of Tanzania",aliases:["\u{1F1F9}\u{1F1FF}","jamhuri ya muungano wa tanganyika na zanzibar","jamhuri ya muungano wa tanzania","tanzania","tanzania jamhuri ya muungano wa","tanzania united republic of","united republic of tanganyika and zanzibar"]},{iso3:"UGA",iso2:"UG",m49:"800",name:"Uganda",aliases:["\u{1F1FA}\u{1F1EC}","jamhuri ya uganda","lulu ya afrika","ouganda","pearl of africa","republic of uganda","ugandah"]},{iso3:"UKR",iso2:"UA",m49:"804",name:"Ukraine",aliases:["\u{1F1FA}\u{1F1E6}","ukr","ukraina","ukrainia","ukrayina","\u0432\u043A\u0440\u0430\u0456\u043D\u0430","\u0443\u043A\u0440\u0430\u0456\u043D\u0430"]},{iso3:"UMI",iso2:"UM",m49:"581",name:"United States Minor Outlying Islands",aliases:["\u{1F1FA}\u{1F1F2}","us minor outlying islands","us outlying islands","usmoi"]},{iso3:"URY",iso2:"UY",m49:"858",name:"Uruguay",aliases:["\u{1F1FA}\u{1F1FE}","eastern republic of uruguay","oriental republic of uruguay"]},{iso3:"USA",iso2:"US",m49:"840",name:"United States of America",aliases:["\u{1F1FA}\u{1F1F8}","amelika","amelika hui pu ia","amelika huipuia","amelika mokuaina hui pu ia","america","eeuu","eeuu de america","estados unidos","estados unidos de america","los estados","los estados unidos","los estados unidos de america","mokuaina hui pu ia","union americana","united states","us","us of a","us of america","usa"]},{iso3:"UZB",iso2:"UZ",m49:"860",name:"Uzbekistan",aliases:["\u{1F1FA}\u{1F1FF}","ozbek","ozbekiston","ozbekiston respublikasi","republic of uzbekistan","uzbekiston respublikasi"]},{iso3:"VAT",iso2:"VA",m49:"336",name:"Holy See",aliases:["\u{1F1FB}\u{1F1E6}","citta del vaticano","civitas vaticana","colle vaticano","papal state","santa sede citta del vaticano","state of vatican city","stato della citta del vaticano","status civitatis vaticanae","status civitatis vatican\xE6","vatican","vatican city","vatican city state","vaticano"]},{iso3:"VCT",iso2:"VC",m49:"670",name:"Saint Vincent and the Grenadines",aliases:["\u{1F1FB}\u{1F1E8}","grenadines","saint vincent","saint vincent and grenadines"]},{iso3:"VEN",iso2:"VE",m49:"862",name:"Venezuela (Bolivarian Republic of)",aliases:["\u{1F1FB}\u{1F1EA}","bolivarian republic of venezuela","br venezuela","estados unidos de venezuela","rb venezuela","republic of venezuela","republica bolivariana de venezuela","republica de venezuela","venezuela"]},{iso3:"VGB",iso2:"VG",m49:"092",name:"British Virgin Islands",aliases:["\u{1F1FB}\u{1F1EC}","bvi","virgin islands british","virgin islands of the united kingdom","virgin islands united kingdom"]},{iso3:"VIR",iso2:"VI",m49:"850",name:"United States Virgin Islands",aliases:["\u{1F1FB}\u{1F1EE}","american virgin islands","us virgin islands","virgin islands of the united states","virgin islands us"]},{iso3:"VNM",iso2:"VN",m49:"704",name:"Viet Nam",aliases:["\u{1F1FB}\u{1F1F3}","chxhcn viet nam","chxhcnvn","cong hoa xa hoi chu nghia viet nam","socialist republic of viet nam","socialist republic of vietnam","vietnam"]},{iso3:"VUT",iso2:"VU",m49:"548",name:"Vanuatu",aliases:["\u{1F1FB}\u{1F1FA}","la republique du vanuatu","republic of vanuatu","republique de vanuatu","ripablik blong vanuatu"]},{iso3:"WLF",iso2:"WF",m49:"876",name:"Wallis and Futuna Islands",aliases:["\u{1F1FC}\u{1F1EB}","collectivite des iles wallis et futuna","emeni simete","futuna","iles wallis et futuna","makape papilio","territoire de wallis et futuna","territoire des iles wallis et futuna","wallis","wallis & futuna","wallis et futuna"]},{iso3:"WSM",iso2:"WS",m49:"882",name:"Samoa",aliases:["\u{1F1FC}\u{1F1F8}","independent state of samoa","malo saoloto tutoatasi o samoa","samoa i sisifo","western samoa"]},{iso3:"YEM",iso2:"YE",m49:"887",name:"Yemen",aliases:["\u{1F1FE}\u{1F1EA}","rep yemen","republic of yemen","\u0627\u0644\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u0627\u0644\u064A\u0645\u0646\u064A\u0629","\u0627\u0644\u064A\u0645\u0646","\u062F\u0648\u0644\u0629 \u0627\u0644\u064A\u0645\u0646"]},{iso3:"ZAF",iso2:"ZA",m49:"710",name:"South Africa",aliases:["\u{1F1FF}\u{1F1E6}","aferika borwa","aforika borwa","afrika boroa","afrika borwa","afrika dzonga","afurika tshipembe","emzantsi afrika","iningizimu afrika","iriphabhulikhi ye ningizimu afrika","iriphabhulikhi yeningizimu afrika","iriphabhuliki yase ningizimu afrika","iriphabliki yasemzantsi afrika","iriphabliki yaseningizimu afrika","iriphabliki yom zantsi afrika","isewula afrika","repabliki ya afrika borwa","rephaboliki ya aforika borwa","rephaboliki ya afrika borwa","republic of south africa","republiek van suid afrika","riphabliki ra afrika dzonga","rsa","suid afrika","umzansi","umzantsi afrika","unie van suid afrika","union of south africa"]},{iso3:"ZMB",iso2:"ZM",m49:"894",name:"Zambia",aliases:["\u{1F1FF}\u{1F1F2}","northern rhodesia","republic of zambia"]},{iso3:"ZWE",iso2:"ZW",m49:"716",name:"Zimbabwe",aliases:["\u{1F1FF}\u{1F1FC}","ezimbabwe","izimbabwe","republic of zimbabwe","rhodesia","southern rhodesia","zimbabwe rhodesia","zimbagwe"]}];function JQ(e){return e.normalize("NFD").replace(/[\u0300-\u036F]/g,"").normalize("NFC").toLowerCase().replace(/[\u064B-\u065F]/g,"").replace(/['\u2018\u2019\u02BB\u02BC\u02BD\u02C8\u2032`]/g,"").replace(/&/g," and ").replace(/([,(])\s*the\b/g,"$1").replace(/[.(),[\]]/g,"").replace(/[-\u2013\u2014]/g," ").replace(/\bst\b/g,"saint").trim().replace(/\s+/g," ").replace(/^the\s+/,"")}function CUe(e){let t=new Map,r=new Map,i=new Map;for(let s of e)t.set(s.iso3,s),s.iso2&&r.set(s.iso2,s),s.m49&&i.set(s.m49,s);let n=new Map;for(let s of e)for(let l of[s.name,...s.aliases]){let u=JQ(l),f=n.get(u);if(f!==void 0&&f!==s.iso3)throw new Error(`Duplicate name/alias "${u}": ${f} vs ${s.iso3}`);n.set(u,s.iso3)}function a(s){if(s==null)return;let l=String(s).trim();if(!l)return;if(/^\d+$/.test(l)){let f=i.get(String(parseInt(l,10)).padStart(3,"0"));if(f)return f}if(/^[A-Za-z]{2}$/.test(l)){let f=r.get(l.toUpperCase());if(f)return f}if(/^[A-Za-z]{3}$/.test(l)){let f=t.get(l.toUpperCase());if(f)return f}let u=n.get(JQ(l));return u===void 0?void 0:t.get(u)}function o(s){var l;return(l=a(s))==null?void 0:l.iso3}return{lookup:a,lookupAlpha3:o,byAlpha3:t,byAlpha2:r,byM49:i}}var IE=CUe(kUe),olr=IE.lookup,slr=IE.lookupAlpha3,llr=IE.byAlpha3,ulr=IE.byAlpha2,flr=IE.byM49});var AR=K(Yu=>{"use strict";Object.defineProperty(Yu,"__esModule",{value:!0});var Rc=63710088e-1,tee={centimeters:Rc*100,centimetres:Rc*100,cm:Rc*100,degrees:360/(2*Math.PI),deg:360/(2*Math.PI),feet:Rc*3.28084,ft:Rc*3.28084,inches:Rc*39.37,in:Rc*39.37,kilometers:Rc/1e3,kilometres:Rc/1e3,km:Rc/1e3,meters:Rc,metres:Rc,m:Rc,miles:Rc/1609.344,mi:Rc/1609.344,millimeters:Rc*1e3,millimetres:Rc*1e3,mm:Rc*1e3,nauticalmiles:Rc/1852,nmi:Rc/1852,radians:1,rad:1,yards:Rc*1.0936,yd:Rc*1.0936},eee={acres:247105e-9,ac:247105e-9,centimeters:1e4,centimetres:1e4,cm:1e4,feet:10.763910417,ft:10.763910417,hectares:1e-4,ha:1e-4,inches:1550.003100006,in:1550.003100006,kilometers:1e-6,kilometres:1e-6,km:1e-6,meters:1,metres:1,m:1,miles:386e-9,mi:386e-9,nauticalmiles:29155334959812285e-23,nmi:29155334959812285e-23,millimeters:1e6,millimetres:1e6,mm:1e6,yards:1.195990046,yd:1.195990046};function V2(e,t,r={}){let i={type:"Feature"};return(r.id===0||r.id)&&(i.id=r.id),r.bbox&&(i.bbox=r.bbox),i.properties=t||{},i.geometry=e,i}function clr(e,t,r={}){switch(e){case"Point":return ree(t).geometry;case"LineString":return nee(t).geometry;case"Polygon":return iee(t).geometry;case"MultiPoint":return PUe(t).geometry;case"MultiLineString":return LUe(t).geometry;case"MultiPolygon":return zUe(t).geometry;default:throw new Error(e+" is invalid")}}function ree(e,t,r={}){if(!e)throw new Error("coordinates is required");if(!Array.isArray(e))throw new Error("coordinates must be an Array");if(e.length<2)throw new Error("coordinates must be at least 2 numbers long");if(!_R(e[0])||!_R(e[1]))throw new Error("coordinates must contain numbers");return V2({type:"Point",coordinates:e},t,r)}function hlr(e,t,r={}){return wR(e.map(i=>ree(i,t)),r)}function iee(e,t,r={}){for(let n of e){if(n.length<4)throw new Error("Each LinearRing of a Polygon must have 4 or more Positions.");if(n[n.length-1].length!==n[0].length)throw new Error("First and last Position are not equivalent.");for(let a=0;aiee(i,t)),r)}function nee(e,t,r={}){if(e.length<2)throw new Error("coordinates must be an array of two or more positions");return V2({type:"LineString",coordinates:e},t,r)}function plr(e,t,r={}){return wR(e.map(i=>nee(i,t)),r)}function wR(e,t={}){let r={type:"FeatureCollection"};return t.id&&(r.id=t.id),t.bbox&&(r.bbox=t.bbox),r.features=e,r}function LUe(e,t,r={}){return V2({type:"MultiLineString",coordinates:e},t,r)}function PUe(e,t,r={}){return V2({type:"MultiPoint",coordinates:e},t,r)}function zUe(e,t,r={}){return V2({type:"MultiPolygon",coordinates:e},t,r)}function vlr(e,t,r={}){return V2({type:"GeometryCollection",geometries:e},t,r)}function mlr(e,t=0){if(t&&!(t>=0))throw new Error("precision must be a positive number");let r=Math.pow(10,t||0);return Math.round(e*r)/r}function IUe(e,t="kilometers"){let r=tee[t];if(!r)throw new Error(t+" units is invalid");return e*r}function aee(e,t="kilometers"){let r=tee[t];if(!r)throw new Error(t+" units is invalid");return e/r}function ylr(e,t){return RUe(aee(e,t))}function glr(e){let t=e%360;return t<0&&(t+=360),t}function xlr(e){return e=e%360,e>180?e-360:e<-180?e+360:e}function RUe(e){return e%(2*Math.PI)*180/Math.PI}function blr(e){return e%360*Math.PI/180}function _lr(e,t="kilometers",r="kilometers"){if(!(e>=0))throw new Error("length must be a positive number");return IUe(aee(e,t),r)}function wlr(e,t="meters",r="kilometers"){if(!(e>=0))throw new Error("area must be a positive number");let i=eee[t];if(!i)throw new Error("invalid original units");let n=eee[r];if(!n)throw new Error("invalid final units");return e/i*n}function _R(e){return!isNaN(e)&&e!==null&&!Array.isArray(e)}function Alr(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function bR(e){delete e.bbox,e.type==="Feature"?e.geometry&&bR(e.geometry):e.type==="FeatureCollection"?e.features.forEach(bR):e.type==="GeometryCollection"&&e.geometries.forEach(bR)}function Tlr(e){if(!e)throw new Error("bbox is required");if(!Array.isArray(e))throw new Error("bbox must be an Array");if(e.length!==4&&e.length!==6)throw new Error("bbox must be an Array of 4 or 6 numbers");e.forEach(t=>{if(!_R(t))throw new Error("bbox must only contain numbers")})}function Mlr(e){if(!e)throw new Error("id is required");if(["string","number"].indexOf(typeof e)===-1)throw new Error("id must be a number or a string")}Yu.areaFactors=eee;Yu.azimuthToBearing=xlr;Yu.bearingToAzimuth=glr;Yu.convertArea=wlr;Yu.convertLength=_lr;Yu.degreesToRadians=blr;Yu.earthRadius=Rc;Yu.factors=tee;Yu.feature=V2;Yu.featureCollection=wR;Yu.geometry=clr;Yu.geometryCollection=vlr;Yu.isNumber=_R;Yu.isObject=Alr;Yu.lengthToDegrees=ylr;Yu.lengthToRadians=aee;Yu.lineString=nee;Yu.lineStrings=plr;Yu.multiLineString=LUe;Yu.multiPoint=PUe;Yu.multiPolygon=zUe;Yu.point=ree;Yu.points=hlr;Yu.polygon=iee;Yu.polygons=dlr;Yu.radiansToDegrees=RUe;Yu.radiansToLength=IUe;Yu.removeBbox=bR;Yu.round=mlr;Yu.validateBBox=Tlr;Yu.validateId=Mlr});var MR=K(qh=>{"use strict";Object.defineProperty(qh,"__esModule",{value:!0});var J0=AR();function RE(e,t,r){if(e!==null)for(var i,n,a,o,s,l,u,f=0,c=0,h,d=e.type,p=d==="FeatureCollection",v=d==="Feature",y=p?e.features.length:1,m=0;ml||p>u||v>f){s=c,l=i,u=p,f=v,a=0;return}var y=J0.lineString.call(void 0,[s,c],r.properties);if(t(y,i,n,v,a)===!1)return!1;a++,s=c})===!1)return!1}}})}function Llr(e,t,r){var i=r,n=!1;return OUe(e,function(a,o,s,l,u){n===!1&&r===void 0?i=a:i=t(i,a,o,s,l,u),n=!0}),i}function NUe(e,t){if(!e)throw new Error("geojson is required");TR(e,function(r,i,n){if(r.geometry!==null){var a=r.geometry.type,o=r.geometry.coordinates;switch(a){case"LineString":if(t(r,i,n,0,0)===!1)return!1;break;case"Polygon":for(var s=0;s{"use strict";Object.defineProperty(SR,"__esModule",{value:!0});var VUe=AR(),Rlr=MR();function HUe(e){return Rlr.geomReduce.call(void 0,e,(t,r)=>t+Blr(r),0)}function Blr(e){let t=0,r;switch(e.type){case"Polygon":return UUe(e.coordinates);case"MultiPolygon":for(r=0;r0){t+=Math.abs(GUe(e[0]));for(let r=1;r=t?(i+2)%t:i+2],s=n[0]*see,l=a[1]*see,u=o[0]*see;r+=(u-s)*Math.sin(l),i++}return r*qlr}var Olr=HUe;SR.area=HUe;SR.default=Olr});var $Ue=K(ER=>{"use strict";Object.defineProperty(ER,"__esModule",{value:!0});var Nlr=AR(),Vlr=MR();function WUe(e,t={}){let r=0,i=0,n=0;return Vlr.coordEach.call(void 0,e,function(a){r+=a[0],i+=a[1],n++},!0),Nlr.point.call(void 0,[r/n,i/n],t.properties)}var Ulr=WUe;ER.centroid=WUe;ER.default=Ulr});var XUe=K((kR,YUe)=>{(function(e,t){t(typeof kR=="object"&&typeof YUe!="undefined"?kR:e.d3=e.d3||{})})(kR,(function(e){"use strict";function t(N,U){return NU?1:N>=U?0:NaN}function r(N){return N.length===1&&(N=i(N)),{left:function(U,J,j,$){for(j==null&&(j=0),$==null&&($=U.length);j<$;){var ie=j+$>>>1;N(U[ie],J)<0?j=ie+1:$=ie}return j},right:function(U,J,j,$){for(j==null&&(j=0),$==null&&($=U.length);j<$;){var ie=j+$>>>1;N(U[ie],J)>0?$=ie:j=ie+1}return j}}}function i(N){return function(U,J){return t(N(U),J)}}var n=r(t),a=n.right,o=n.left;function s(N,U){U==null&&(U=l);for(var J=0,j=N.length-1,$=N[0],ie=new Array(j<0?0:j);JN?1:U>=N?0:NaN}function c(N){return N===null?NaN:+N}function h(N,U){var J=N.length,j=0,$=-1,ie=0,re,de,me=0;if(U==null)for(;++$1)return me/(j-1)}function d(N,U){var J=h(N,U);return J&&Math.sqrt(J)}function p(N,U){var J=N.length,j=-1,$,ie,re;if(U==null){for(;++j=$)for(ie=re=$;++j$&&(ie=$),re<$&&(re=$))}else for(;++j=$)for(ie=re=$;++j$&&(ie=$),re<$&&(re=$));return[ie,re]}var v=Array.prototype,y=v.slice,m=v.map;function w(N){return function(){return N}}function _(N){return N}function b(N,U,J){N=+N,U=+U,J=($=arguments.length)<2?(U=N,N=0,1):$<3?1:+J;for(var j=-1,$=Math.max(0,Math.ceil((U-N)/J))|0,ie=new Array($);++j<$;)ie[j]=N+j*J;return ie}var M=Math.sqrt(50),x=Math.sqrt(10),T=Math.sqrt(2);function A(N,U,J){var j,$=-1,ie,re,de;if(U=+U,N=+N,J=+J,N===U&&J>0)return[N];if((j=U0)for(N=Math.ceil(N/de),U=Math.floor(U/de),re=new Array(ie=Math.ceil(U-N+1));++$=0?(ie>=M?10:ie>=x?5:ie>=T?2:1)*Math.pow(10,$):-Math.pow(10,-$)/(ie>=M?10:ie>=x?5:ie>=T?2:1)}function E(N,U,J){var j=Math.abs(U-N)/Math.max(0,J),$=Math.pow(10,Math.floor(Math.log(j)/Math.LN10)),ie=j/$;return ie>=M?$*=10:ie>=x?$*=5:ie>=T&&($*=2),Ule;)te.pop(),--Ee;var we=new Array(Ee+1),oe;for(ie=0;ie<=Ee;++ie)oe=we[ie]=[],oe.x0=ie>0?te[ie-1]:ke,oe.x1=ie=1)return+J(N[j-1],j-1,N);var j,$=(j-1)*U,ie=Math.floor($),re=+J(N[ie],ie,N),de=+J(N[ie+1],ie+1,N);return re+(de-re)*($-ie)}}function D(N,U,J){return N=m.call(N,c).sort(t),Math.ceil((J-U)/(2*(k(N,.75)-k(N,.25))*Math.pow(N.length,-1/3)))}function F(N,U,J){return Math.ceil((J-U)/(3.5*d(N)*Math.pow(N.length,-1/3)))}function P(N,U){var J=N.length,j=-1,$,ie;if(U==null){for(;++j=$)for(ie=$;++jie&&(ie=$)}else for(;++j=$)for(ie=$;++jie&&(ie=$);return ie}function I(N,U){var J=N.length,j=J,$=-1,ie,re=0;if(U==null)for(;++$=0;)for(re=N[U],J=re.length;--J>=0;)ie[--$]=re[J];return ie}function B(N,U){var J=N.length,j=-1,$,ie;if(U==null){for(;++j=$)for(ie=$;++j$&&(ie=$)}else for(;++j=$)for(ie=$;++j$&&(ie=$);return ie}function O(N,U){for(var J=U.length,j=new Array(J);J--;)j[J]=N[U[J]];return j}function W(N,U){if(J=N.length){var J,j=0,$=0,ie,re=N[$];for(U==null&&(U=t);++j{(function(e,t){typeof CR=="object"&&typeof ZUe!="undefined"?t(CR,XUe()):(e=e||self,t(e.d3=e.d3||{},e.d3))})(CR,(function(e,t){"use strict";function r(){return new i}function i(){this.reset()}i.prototype={constructor:i,reset:function(){this.s=this.t=0},add:function(Fe){a(n,Fe,this.t),a(this,n.s,this.s),this.s?this.t+=n.t:this.s=n.t},valueOf:function(){return this.s}};var n=new i;function a(Fe,Ve,lt){var it=Fe.s=Ve+lt,mt=it-Ve,Rt=it-mt;Fe.t=Ve-Rt+(lt-mt)}var o=1e-6,s=1e-12,l=Math.PI,u=l/2,f=l/4,c=l*2,h=180/l,d=l/180,p=Math.abs,v=Math.atan,y=Math.atan2,m=Math.cos,w=Math.ceil,_=Math.exp,b=Math.log,M=Math.pow,x=Math.sin,T=Math.sign||function(Fe){return Fe>0?1:Fe<0?-1:0},A=Math.sqrt,g=Math.tan;function E(Fe){return Fe>1?0:Fe<-1?l:Math.acos(Fe)}function S(Fe){return Fe>1?u:Fe<-1?-u:Math.asin(Fe)}function C(Fe){return(Fe=x(Fe/2))*Fe}function k(){}function D(Fe,Ve){Fe&&P.hasOwnProperty(Fe.type)&&P[Fe.type](Fe,Ve)}var F={Feature:function(Fe,Ve){D(Fe.geometry,Ve)},FeatureCollection:function(Fe,Ve){for(var lt=Fe.features,it=-1,mt=lt.length;++it=0?1:-1,mt=it*lt,Rt=m(Ve),qt=x(Ve),Nt=q*qt,ar=H*Rt+Nt*m(mt),Ir=Nt*it*x(mt);B.add(y(Ir,ar)),Z=Fe,H=Rt,q=qt}function $(Fe){return O.reset(),z(Fe,Q),O*2}function ie(Fe){return[y(Fe[1],Fe[0]),S(Fe[2])]}function re(Fe){var Ve=Fe[0],lt=Fe[1],it=m(lt);return[it*m(Ve),it*x(Ve),x(lt)]}function de(Fe,Ve){return Fe[0]*Ve[0]+Fe[1]*Ve[1]+Fe[2]*Ve[2]}function me(Fe,Ve){return[Fe[1]*Ve[2]-Fe[2]*Ve[1],Fe[2]*Ve[0]-Fe[0]*Ve[2],Fe[0]*Ve[1]-Fe[1]*Ve[0]]}function ze(Fe,Ve){Fe[0]+=Ve[0],Fe[1]+=Ve[1],Fe[2]+=Ve[2]}function ke(Fe,Ve){return[Fe[0]*Ve,Fe[1]*Ve,Fe[2]*Ve]}function le(Fe){var Ve=A(Fe[0]*Fe[0]+Fe[1]*Fe[1]+Fe[2]*Fe[2]);Fe[0]/=Ve,Fe[1]/=Ve,Fe[2]/=Ve}var te,Ee,we,oe,Y,ne,ye,V,ue=r(),_e,xe,Ae={point:se,lineStart:fe,lineEnd:Re,polygonStart:function(){Ae.point=We,Ae.lineStart=Ke,Ae.lineEnd=tt,ue.reset(),Q.polygonStart()},polygonEnd:function(){Q.polygonEnd(),Ae.point=se,Ae.lineStart=fe,Ae.lineEnd=Re,B<0?(te=-(we=180),Ee=-(oe=90)):ue>o?oe=90:ue<-o&&(Ee=-90),xe[0]=te,xe[1]=we},sphere:function(){te=-(we=180),Ee=-(oe=90)}};function se(Fe,Ve){_e.push(xe=[te=Fe,we=Fe]),Veoe&&(oe=Ve)}function pe(Fe,Ve){var lt=re([Fe*d,Ve*d]);if(V){var it=me(V,lt),mt=[it[1],-it[0],0],Rt=me(mt,it);le(Rt),Rt=ie(Rt);var qt=Fe-Y,Nt=qt>0?1:-1,ar=Rt[0]*h*Nt,Ir,$t=p(qt)>180;$t^(Nt*Yoe&&(oe=Ir)):(ar=(ar+360)%360-180,$t^(Nt*Yoe&&(oe=Ve))),$t?Feat(te,we)&&(we=Fe):at(Fe,we)>at(te,we)&&(te=Fe):we>=te?(Fewe&&(we=Fe)):Fe>Y?at(te,Fe)>at(te,we)&&(we=Fe):at(Fe,we)>at(te,we)&&(te=Fe)}else _e.push(xe=[te=Fe,we=Fe]);Veoe&&(oe=Ve),V=lt,Y=Fe}function fe(){Ae.point=pe}function Re(){xe[0]=te,xe[1]=we,Ae.point=se,V=null}function We(Fe,Ve){if(V){var lt=Fe-Y;ue.add(p(lt)>180?lt+(lt>0?360:-360):lt)}else ne=Fe,ye=Ve;Q.point(Fe,Ve),pe(Fe,Ve)}function Ke(){Q.lineStart()}function tt(){We(ne,ye),Q.lineEnd(),p(ue)>o&&(te=-(we=180)),xe[0]=te,xe[1]=we,V=null}function at(Fe,Ve){return(Ve-=Fe)<0?Ve+360:Ve}function Ge(Fe,Ve){return Fe[0]-Ve[0]}function ge(Fe,Ve){return Fe[0]<=Fe[1]?Fe[0]<=Ve&&Ve<=Fe[1]:Veat(it[0],it[1])&&(it[1]=mt[1]),at(mt[0],it[1])>at(it[0],it[1])&&(it[0]=mt[0])):Rt.push(it=mt);for(qt=-1/0,lt=Rt.length-1,Ve=0,it=Rt[lt];Ve<=lt;it=mt,++Ve)mt=Rt[Ve],(Nt=at(it[1],mt[0]))>qt&&(qt=Nt,te=mt[0],we=it[1])}return _e=xe=null,te===1/0||Ee===1/0?[[NaN,NaN],[NaN,NaN]]:[[te,Ee],[we,oe]]}var Ze,Le,De,Ue,Pe,Se,Ie,ot,ut,_t,At,Gt,Dt,yt,Mt,tr,Ye={sphere:k,point:nt,lineStart:dt,lineEnd:Ft,polygonStart:function(){Ye.lineStart=Et,Ye.lineEnd=er},polygonEnd:function(){Ye.lineStart=dt,Ye.lineEnd=Ft}};function nt(Fe,Ve){Fe*=d,Ve*=d;var lt=m(Ve);st(lt*m(Fe),lt*x(Fe),x(Ve))}function st(Fe,Ve,lt){++Ze,De+=(Fe-De)/Ze,Ue+=(Ve-Ue)/Ze,Pe+=(lt-Pe)/Ze}function dt(){Ye.point=rt}function rt(Fe,Ve){Fe*=d,Ve*=d;var lt=m(Ve);yt=lt*m(Fe),Mt=lt*x(Fe),tr=x(Ve),Ye.point=ft,st(yt,Mt,tr)}function ft(Fe,Ve){Fe*=d,Ve*=d;var lt=m(Ve),it=lt*m(Fe),mt=lt*x(Fe),Rt=x(Ve),qt=y(A((qt=Mt*Rt-tr*mt)*qt+(qt=tr*it-yt*Rt)*qt+(qt=yt*mt-Mt*it)*qt),yt*it+Mt*mt+tr*Rt);Le+=qt,Se+=qt*(yt+(yt=it)),Ie+=qt*(Mt+(Mt=mt)),ot+=qt*(tr+(tr=Rt)),st(yt,Mt,tr)}function Ft(){Ye.point=nt}function Et(){Ye.point=xr}function er(){kr(Gt,Dt),Ye.point=nt}function xr(Fe,Ve){Gt=Fe,Dt=Ve,Fe*=d,Ve*=d,Ye.point=kr;var lt=m(Ve);yt=lt*m(Fe),Mt=lt*x(Fe),tr=x(Ve),st(yt,Mt,tr)}function kr(Fe,Ve){Fe*=d,Ve*=d;var lt=m(Ve),it=lt*m(Fe),mt=lt*x(Fe),Rt=x(Ve),qt=Mt*Rt-tr*mt,Nt=tr*it-yt*Rt,ar=yt*mt-Mt*it,Ir=A(qt*qt+Nt*Nt+ar*ar),$t=S(Ir),Bt=Ir&&-$t/Ir;ut+=Bt*qt,_t+=Bt*Nt,At+=Bt*ar,Le+=$t,Se+=$t*(yt+(yt=it)),Ie+=$t*(Mt+(Mt=mt)),ot+=$t*(tr+(tr=Rt)),st(yt,Mt,tr)}function fr(Fe){Ze=Le=De=Ue=Pe=Se=Ie=ot=ut=_t=At=0,z(Fe,Ye);var Ve=ut,lt=_t,it=At,mt=Ve*Ve+lt*lt+it*it;return mtl?Fe+Math.round(-Fe/c)*c:Fe,Ve]}ri.invert=ri;function Tr(Fe,Ve,lt){return(Fe%=c)?Ve||lt?Or(Gr(Fe),_i(Ve,lt)):Gr(Fe):Ve||lt?_i(Ve,lt):ri}function Mr(Fe){return function(Ve,lt){return Ve+=Fe,[Ve>l?Ve-c:Ve<-l?Ve+c:Ve,lt]}}function Gr(Fe){var Ve=Mr(Fe);return Ve.invert=Mr(-Fe),Ve}function _i(Fe,Ve){var lt=m(Fe),it=x(Fe),mt=m(Ve),Rt=x(Ve);function qt(Nt,ar){var Ir=m(ar),$t=m(Nt)*Ir,Bt=x(Nt)*Ir,rr=x(ar),Dr=rr*lt+$t*it;return[y(Bt*mt-Dr*Rt,$t*lt-rr*it),S(Dr*mt+Bt*Rt)]}return qt.invert=function(Nt,ar){var Ir=m(ar),$t=m(Nt)*Ir,Bt=x(Nt)*Ir,rr=x(ar),Dr=rr*mt-Bt*Rt;return[y(Bt*mt+rr*Rt,$t*lt+Dr*it),S(Dr*lt-$t*it)]},qt}function Fi(Fe){Fe=Tr(Fe[0]*d,Fe[1]*d,Fe.length>2?Fe[2]*d:0);function Ve(lt){return lt=Fe(lt[0]*d,lt[1]*d),lt[0]*=h,lt[1]*=h,lt}return Ve.invert=function(lt){return lt=Fe.invert(lt[0]*d,lt[1]*d),lt[0]*=h,lt[1]*=h,lt},Ve}function wr(Fe,Ve,lt,it,mt,Rt){if(lt){var qt=m(Ve),Nt=x(Ve),ar=it*lt;mt==null?(mt=Ve+it*c,Rt=Ve-ar/2):(mt=Cr(qt,mt),Rt=Cr(qt,Rt),(it>0?mtRt)&&(mt+=it*c));for(var Ir,$t=mt;it>0?$t>Rt:$t1&&Fe.push(Fe.pop().concat(Fe.shift()))},result:function(){var lt=Fe;return Fe=[],Ve=null,lt}}}function dr(Fe,Ve){return p(Fe[0]-Ve[0])=0;--Nt)mt.point((Bt=$t[Nt])[0],Bt[1]);else it(rr.x,rr.p.x,-1,mt);rr=rr.p}rr=rr.o,$t=rr.z,Dr=!Dr}while(!rr.v);mt.lineEnd()}}}function Fr(Fe){if(Ve=Fe.length){for(var Ve,lt=0,it=Fe[0],mt;++lt=0?1:-1,Fo=ho*ao,ls=Fo>l,Io=ai*ua;if(di.add(y(Io*ho*x(Fo),ci*xa+Io*m(Fo))),qt+=ls?ao+ho*c:ao,ls^Dr>=lt^xi>=lt){var Ps=me(re(rr),re(mi));le(Ps);var xs=me(Rt,Ps);le(xs);var us=(ls^ao>=0?-1:1)*S(xs[2]);(it>us||it===us&&(Ps[0]||Ps[1]))&&(Nt+=ls^ao>=0?1:-1)}}return(qt<-o||qt0){for(ar||(mt.polygonStart(),ar=!0),mt.lineStart(),xa=0;xa1&&Ni&2&&ua.push(ua.pop().concat(ua.shift())),$t.push(ua.filter(Me))}}return rr}}function Me(Fe){return Fe.length>1}function Xe(Fe,Ve){return((Fe=Fe.x)[0]<0?Fe[1]-u-o:u-Fe[1])-((Ve=Ve.x)[0]<0?Ve[1]-u-o:u-Ve[1])}var $e=Kt(function(){return!0},Qe,bt,[-l,-u]);function Qe(Fe){var Ve=NaN,lt=NaN,it=NaN,mt;return{lineStart:function(){Fe.lineStart(),mt=1},point:function(Rt,qt){var Nt=Rt>0?l:-l,ar=p(Rt-Ve);p(ar-l)0?u:-u),Fe.point(it,lt),Fe.lineEnd(),Fe.lineStart(),Fe.point(Nt,lt),Fe.point(Rt,lt),mt=0):it!==Nt&&ar>=l&&(p(Ve-it)o?v((x(Ve)*(Rt=m(it))*x(lt)-x(it)*(mt=m(Ve))*x(Fe))/(mt*Rt*qt)):(Ve+it)/2}function bt(Fe,Ve,lt,it){var mt;if(Fe==null)mt=lt*u,it.point(-l,mt),it.point(0,mt),it.point(l,mt),it.point(l,0),it.point(l,-mt),it.point(0,-mt),it.point(-l,-mt),it.point(-l,0),it.point(-l,mt);else if(p(Fe[0]-Ve[0])>o){var Rt=Fe[0]0,mt=p(Ve)>o;function Rt($t,Bt,rr,Dr){wr(Dr,Fe,lt,rr,$t,Bt)}function qt($t,Bt){return m($t)*m(Bt)>Ve}function Nt($t){var Bt,rr,Dr,Ur,ai;return{lineStart:function(){Ur=Dr=!1,ai=1},point:function(ci,li){var mi=[ci,li],xi,Ni=qt(ci,li),ua=it?Ni?0:Ir(ci,li):Ni?Ir(ci+(ci<0?l:-l),li):0;if(!Bt&&(Ur=Dr=Ni)&&$t.lineStart(),Ni!==Dr&&(xi=ar(Bt,mi),(!xi||dr(Bt,xi)||dr(mi,xi))&&(mi[2]=1)),Ni!==Dr)ai=0,Ni?($t.lineStart(),xi=ar(mi,Bt),$t.point(xi[0],xi[1])):(xi=ar(Bt,mi),$t.point(xi[0],xi[1],2),$t.lineEnd()),Bt=xi;else if(mt&&Bt&&it^Ni){var xa;!(ua&rr)&&(xa=ar(mi,Bt,!0))&&(ai=0,it?($t.lineStart(),$t.point(xa[0][0],xa[0][1]),$t.point(xa[1][0],xa[1][1]),$t.lineEnd()):($t.point(xa[1][0],xa[1][1]),$t.lineEnd(),$t.lineStart(),$t.point(xa[0][0],xa[0][1],3)))}Ni&&(!Bt||!dr(Bt,mi))&&$t.point(mi[0],mi[1]),Bt=mi,Dr=Ni,rr=ua},lineEnd:function(){Dr&&$t.lineEnd(),Bt=null},clean:function(){return ai|(Ur&&Dr)<<1}}}function ar($t,Bt,rr){var Dr=re($t),Ur=re(Bt),ai=[1,0,0],ci=me(Dr,Ur),li=de(ci,ci),mi=ci[0],xi=li-mi*mi;if(!xi)return!rr&&$t;var Ni=Ve*li/xi,ua=-Ve*mi/xi,xa=me(ai,ci),ao=ke(ai,Ni),ho=ke(ci,ua);ze(ao,ho);var Fo=xa,ls=de(ao,Fo),Io=de(Fo,Fo),Ps=ls*ls-Io*(de(ao,ao)-1);if(!(Ps<0)){var xs=A(Ps),us=ke(Fo,(-ls-xs)/Io);if(ze(us,ao),us=ie(us),!rr)return us;var Vi=$t[0],io=Bt[0],ko=$t[1],oo=Bt[1],xo;io0^us[1]<(p(us[0]-Vi)l^(Vi<=us[0]&&us[0]<=io)){var Uo=ke(Fo,(-ls+xs)/Io);return ze(Uo,ao),[us,ie(Uo)]}}}function Ir($t,Bt){var rr=it?Fe:l-Fe,Dr=0;return $t<-rr?Dr|=1:$t>rr&&(Dr|=2),Bt<-rr?Dr|=4:Bt>rr&&(Dr|=8),Dr}return Kt(qt,Nt,Rt,it?[0,-Fe]:[-l,Fe-l])}function Ct(Fe,Ve,lt,it,mt,Rt){var qt=Fe[0],Nt=Fe[1],ar=Ve[0],Ir=Ve[1],$t=0,Bt=1,rr=ar-qt,Dr=Ir-Nt,Ur;if(Ur=lt-qt,!(!rr&&Ur>0)){if(Ur/=rr,rr<0){if(Ur<$t)return;Ur0){if(Ur>Bt)return;Ur>$t&&($t=Ur)}if(Ur=mt-qt,!(!rr&&Ur<0)){if(Ur/=rr,rr<0){if(Ur>Bt)return;Ur>$t&&($t=Ur)}else if(rr>0){if(Ur<$t)return;Ur0)){if(Ur/=Dr,Dr<0){if(Ur<$t)return;Ur0){if(Ur>Bt)return;Ur>$t&&($t=Ur)}if(Ur=Rt-Nt,!(!Dr&&Ur<0)){if(Ur/=Dr,Dr<0){if(Ur>Bt)return;Ur>$t&&($t=Ur)}else if(Dr>0){if(Ur<$t)return;Ur0&&(Fe[0]=qt+$t*rr,Fe[1]=Nt+$t*Dr),Bt<1&&(Ve[0]=qt+Bt*rr,Ve[1]=Nt+Bt*Dr),!0}}}}}var ur=1e9,Rr=-ur;function Br(Fe,Ve,lt,it){function mt(Ir,$t){return Fe<=Ir&&Ir<=lt&&Ve<=$t&&$t<=it}function Rt(Ir,$t,Bt,rr){var Dr=0,Ur=0;if(Ir==null||(Dr=qt(Ir,Bt))!==(Ur=qt($t,Bt))||ar(Ir,$t)<0^Bt>0)do rr.point(Dr===0||Dr===3?Fe:lt,Dr>1?it:Ve);while((Dr=(Dr+Bt+4)%4)!==Ur);else rr.point($t[0],$t[1])}function qt(Ir,$t){return p(Ir[0]-Fe)0?0:3:p(Ir[0]-lt)0?2:1:p(Ir[1]-Ve)0?1:0:$t>0?3:2}function Nt(Ir,$t){return ar(Ir.x,$t.x)}function ar(Ir,$t){var Bt=qt(Ir,1),rr=qt($t,1);return Bt!==rr?Bt-rr:Bt===0?$t[1]-Ir[1]:Bt===1?Ir[0]-$t[0]:Bt===2?Ir[1]-$t[1]:$t[0]-Ir[0]}return function(Ir){var $t=Ir,Bt=Wt(),rr,Dr,Ur,ai,ci,li,mi,xi,Ni,ua,xa,ao={point:ho,lineStart:Ps,lineEnd:xs,polygonStart:ls,polygonEnd:Io};function ho(Vi,io){mt(Vi,io)&&$t.point(Vi,io)}function Fo(){for(var Vi=0,io=0,ko=Dr.length;ioit&&(es-Yo)*(it-Uo)>(jo-Uo)*(Fe-Yo)&&++Vi:jo<=it&&(es-Yo)*(it-Uo)<(jo-Uo)*(Fe-Yo)&&--Vi;return Vi}function ls(){$t=Bt,rr=[],Dr=[],xa=!0}function Io(){var Vi=Fo(),io=xa&&Vi,ko=(rr=t.merge(rr)).length;(io||ko)&&(Ir.polygonStart(),io&&(Ir.lineStart(),Rt(null,null,1,Ir),Ir.lineEnd()),ko&&Er(rr,Nt,Vi,Rt,Ir),Ir.polygonEnd()),$t=Ir,rr=Dr=Ur=null}function Ps(){ao.point=us,Dr&&Dr.push(Ur=[]),ua=!0,Ni=!1,mi=xi=NaN}function xs(){rr&&(us(ai,ci),li&&Ni&&Bt.rejoin(),rr.push(Bt.result())),ao.point=ho,Ni&&$t.lineEnd()}function us(Vi,io){var ko=mt(Vi,io);if(Dr&&Ur.push([Vi,io]),ua)ai=Vi,ci=io,li=ko,ua=!1,ko&&($t.lineStart(),$t.point(Vi,io));else if(ko&&Ni)$t.point(Vi,io);else{var oo=[mi=Math.max(Rr,Math.min(ur,mi)),xi=Math.max(Rr,Math.min(ur,xi))],xo=[Vi=Math.max(Rr,Math.min(ur,Vi)),io=Math.max(Rr,Math.min(ur,io))];Ct(oo,xo,Fe,Ve,lt,it)?(Ni||($t.lineStart(),$t.point(oo[0],oo[1])),$t.point(xo[0],xo[1]),ko||$t.lineEnd(),xa=!1):ko&&($t.lineStart(),$t.point(Vi,io),xa=!1)}mi=Vi,xi=io,Ni=ko}return ao}}function Vr(){var Fe=0,Ve=0,lt=960,it=500,mt,Rt,qt;return qt={stream:function(Nt){return mt&&Rt===Nt?mt:mt=Br(Fe,Ve,lt,it)(Rt=Nt)},extent:function(Nt){return arguments.length?(Fe=+Nt[0][0],Ve=+Nt[0][1],lt=+Nt[1][0],it=+Nt[1][1],mt=Rt=null,qt):[[Fe,Ve],[lt,it]]}}}var gi=r(),ui,ei,Gi,un={sphere:k,point:k,lineStart:Tt,lineEnd:k,polygonStart:k,polygonEnd:k};function Tt(){un.point=kn,un.lineEnd=wi}function wi(){un.point=un.lineEnd=k}function kn(Fe,Ve){Fe*=d,Ve*=d,ui=Fe,ei=x(Ve),Gi=m(Ve),un.point=ii}function ii(Fe,Ve){Fe*=d,Ve*=d;var lt=x(Ve),it=m(Ve),mt=p(Fe-ui),Rt=m(mt),qt=x(mt),Nt=it*qt,ar=Gi*lt-ei*it*Rt,Ir=ei*lt+Gi*it*Rt;gi.add(y(A(Nt*Nt+ar*ar),Ir)),ui=Fe,ei=lt,Gi=it}function Pr(Fe){return gi.reset(),z(Fe,un),+gi}var Wi=[null,null],na={type:"LineString",coordinates:Wi};function yn(Fe,Ve){return Wi[0]=Fe,Wi[1]=Ve,Pr(na)}var $n={Feature:function(Fe,Ve){return en(Fe.geometry,Ve)},FeatureCollection:function(Fe,Ve){for(var lt=Fe.features,it=-1,mt=lt.length;++it0&&(mt=yn(Fe[Rt],Fe[Rt-1]),mt>0&<<=mt&&it<=mt&&(lt+it-mt)*(1-Math.pow((lt-it)/mt,2))o}).map(rr)).concat(t.range(w(Rt/Ir)*Ir,mt,Ir).filter(function(xi){return p(xi%Bt)>o}).map(Dr))}return li.lines=function(){return mi().map(function(xi){return{type:"LineString",coordinates:xi}})},li.outline=function(){return{type:"Polygon",coordinates:[Ur(it).concat(ai(qt).slice(1),Ur(lt).reverse().slice(1),ai(Nt).reverse().slice(1))]}},li.extent=function(xi){return arguments.length?li.extentMajor(xi).extentMinor(xi):li.extentMinor()},li.extentMajor=function(xi){return arguments.length?(it=+xi[0][0],lt=+xi[1][0],Nt=+xi[0][1],qt=+xi[1][1],it>lt&&(xi=it,it=lt,lt=xi),Nt>qt&&(xi=Nt,Nt=qt,qt=xi),li.precision(ci)):[[it,Nt],[lt,qt]]},li.extentMinor=function(xi){return arguments.length?(Ve=+xi[0][0],Fe=+xi[1][0],Rt=+xi[0][1],mt=+xi[1][1],Ve>Fe&&(xi=Ve,Ve=Fe,Fe=xi),Rt>mt&&(xi=Rt,Rt=mt,mt=xi),li.precision(ci)):[[Ve,Rt],[Fe,mt]]},li.step=function(xi){return arguments.length?li.stepMajor(xi).stepMinor(xi):li.stepMinor()},li.stepMajor=function(xi){return arguments.length?($t=+xi[0],Bt=+xi[1],li):[$t,Bt]},li.stepMinor=function(xi){return arguments.length?(ar=+xi[0],Ir=+xi[1],li):[ar,Ir]},li.precision=function(xi){return arguments.length?(ci=+xi,rr=Kn(Rt,mt,90),Dr=dn(Ve,Fe,ci),Ur=Kn(Nt,qt,90),ai=dn(it,lt,ci),li):ci},li.extentMajor([[-180,-90+o],[180,90-o]]).extentMinor([[-180,-80-o],[180,80+o]])}function rn(){return Ta()()}function Ai(Fe,Ve){var lt=Fe[0]*d,it=Fe[1]*d,mt=Ve[0]*d,Rt=Ve[1]*d,qt=m(it),Nt=x(it),ar=m(Rt),Ir=x(Rt),$t=qt*m(lt),Bt=qt*x(lt),rr=ar*m(mt),Dr=ar*x(mt),Ur=2*S(A(C(Rt-it)+qt*ar*C(mt-lt))),ai=x(Ur),ci=Ur?function(li){var mi=x(li*=Ur)/ai,xi=x(Ur-li)/ai,Ni=xi*$t+mi*rr,ua=xi*Bt+mi*Dr,xa=xi*Nt+mi*Ir;return[y(ua,Ni)*h,y(xa,A(Ni*Ni+ua*ua))*h]}:function(){return[lt*h,it*h]};return ci.distance=Ur,ci}function nn(Fe){return Fe}var Ti=r(),ea=r(),qn,pi,Fn,Pa,pr={point:k,lineStart:k,lineEnd:k,polygonStart:function(){pr.lineStart=oi,pr.lineEnd=pa},polygonEnd:function(){pr.lineStart=pr.lineEnd=pr.point=k,Ti.add(p(ea)),ea.reset()},result:function(){var Fe=Ti/2;return Ti.reset(),Fe}};function oi(){pr.point=Ki}function Ki(Fe,Ve){pr.point=Ui,qn=Fn=Fe,pi=Pa=Ve}function Ui(Fe,Ve){ea.add(Pa*Fe-Fn*Ve),Fn=Fe,Pa=Ve}function pa(){Ui(qn,pi)}var Na=1/0,on=Na,wn=-Na,Ra=wn,ti={point:Yn,lineStart:k,lineEnd:k,polygonStart:k,polygonEnd:k,result:function(){var Fe=[[Na,on],[wn,Ra]];return wn=Ra=-(on=Na=1/0),Fe}};function Yn(Fe,Ve){Fewn&&(wn=Fe),VeRa&&(Ra=Ve)}var Ja=0,ja=0,ka=0,Ci=0,vn=0,Va=0,Hi=0,zr=0,ni=0,bn,Bi,vi,mr,Mi={point:Cn,lineStart:jr,lineEnd:ta,polygonStart:function(){Mi.lineStart=qi,Mi.lineEnd=On},polygonEnd:function(){Mi.point=Cn,Mi.lineStart=jr,Mi.lineEnd=ta},result:function(){var Fe=ni?[Hi/ni,zr/ni]:Va?[Ci/Va,vn/Va]:ka?[Ja/ka,ja/ka]:[NaN,NaN];return Ja=ja=ka=Ci=vn=Va=Hi=zr=ni=0,Fe}};function Cn(Fe,Ve){Ja+=Fe,ja+=Ve,++ka}function jr(){Mi.point=Xn}function Xn(Fe,Ve){Mi.point=an,Cn(vi=Fe,mr=Ve)}function an(Fe,Ve){var lt=Fe-vi,it=Ve-mr,mt=A(lt*lt+it*it);Ci+=mt*(vi+Fe)/2,vn+=mt*(mr+Ve)/2,Va+=mt,Cn(vi=Fe,mr=Ve)}function ta(){Mi.point=Cn}function qi(){Mi.point=Nn}function On(){ia(bn,Bi)}function Nn(Fe,Ve){Mi.point=ia,Cn(bn=vi=Fe,Bi=mr=Ve)}function ia(Fe,Ve){var lt=Fe-vi,it=Ve-mr,mt=A(lt*lt+it*it);Ci+=mt*(vi+Fe)/2,vn+=mt*(mr+Ve)/2,Va+=mt,mt=mr*Fe-vi*Ve,Hi+=mt*(vi+Fe),zr+=mt*(mr+Ve),ni+=mt*3,Cn(vi=Fe,mr=Ve)}function Qr(Fe){this._context=Fe}Qr.prototype={_radius:4.5,pointRadius:function(Fe){return this._radius=Fe,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(Fe,Ve){switch(this._point){case 0:{this._context.moveTo(Fe,Ve),this._point=1;break}case 1:{this._context.lineTo(Fe,Ve);break}default:{this._context.moveTo(Fe+this._radius,Ve),this._context.arc(Fe,Ve,this._radius,0,c);break}}},result:k};var Di=r(),fn,Dn,Vn,mn,qr,Pi={point:k,lineStart:function(){Pi.point=Ua},lineEnd:function(){fn&&yi(Dn,Vn),Pi.point=k},polygonStart:function(){fn=!0},polygonEnd:function(){fn=null},result:function(){var Fe=+Di;return Di.reset(),Fe}};function Ua(Fe,Ve){Pi.point=yi,Dn=mn=Fe,Vn=qr=Ve}function yi(Fe,Ve){mn-=Fe,qr-=Ve,Di.add(A(mn*mn+qr*qr)),mn=Fe,qr=Ve}function Ma(){this._string=[]}Ma.prototype={_radius:4.5,_circle:Ba(4.5),pointRadius:function(Fe){return(Fe=+Fe)!==this._radius&&(this._radius=Fe,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(Fe,Ve){switch(this._point){case 0:{this._string.push("M",Fe,",",Ve),this._point=1;break}case 1:{this._string.push("L",Fe,",",Ve);break}default:{this._circle==null&&(this._circle=Ba(this._radius)),this._string.push("M",Fe,",",Ve,this._circle);break}}},result:function(){if(this._string.length){var Fe=this._string.join("");return this._string=[],Fe}else return null}};function Ba(Fe){return"m0,"+Fe+"a"+Fe+","+Fe+" 0 1,1 0,"+-2*Fe+"a"+Fe+","+Fe+" 0 1,1 0,"+2*Fe+"z"}function Bn(Fe,Ve){var lt=4.5,it,mt;function Rt(qt){return qt&&(typeof lt=="function"&&mt.pointRadius(+lt.apply(this,arguments)),z(qt,it(mt))),mt.result()}return Rt.area=function(qt){return z(qt,it(pr)),pr.result()},Rt.measure=function(qt){return z(qt,it(Pi)),Pi.result()},Rt.bounds=function(qt){return z(qt,it(ti)),ti.result()},Rt.centroid=function(qt){return z(qt,it(Mi)),Mi.result()},Rt.projection=function(qt){return arguments.length?(it=qt==null?(Fe=null,nn):(Fe=qt).stream,Rt):Fe},Rt.context=function(qt){return arguments.length?(mt=qt==null?(Ve=null,new Ma):new Qr(Ve=qt),typeof lt!="function"&&mt.pointRadius(lt),Rt):Ve},Rt.pointRadius=function(qt){return arguments.length?(lt=typeof qt=="function"?qt:(mt.pointRadius(+qt),+qt),Rt):lt},Rt.projection(Fe).context(Ve)}function ji(Fe){return{stream:gn(Fe)}}function gn(Fe){return function(Ve){var lt=new jn;for(var it in Fe)lt[it]=Fe[it];return lt.stream=Ve,lt}}function jn(){}jn.prototype={constructor:jn,point:function(Fe,Ve){this.stream.point(Fe,Ve)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};function Un(Fe,Ve,lt){var it=Fe.clipExtent&&Fe.clipExtent();return Fe.scale(150).translate([0,0]),it!=null&&Fe.clipExtent(null),z(lt,Fe.stream(ti)),Ve(ti.result()),it!=null&&Fe.clipExtent(it),Fe}function Ii(Fe,Ve,lt){return Un(Fe,function(it){var mt=Ve[1][0]-Ve[0][0],Rt=Ve[1][1]-Ve[0][1],qt=Math.min(mt/(it[1][0]-it[0][0]),Rt/(it[1][1]-it[0][1])),Nt=+Ve[0][0]+(mt-qt*(it[1][0]+it[0][0]))/2,ar=+Ve[0][1]+(Rt-qt*(it[1][1]+it[0][1]))/2;Fe.scale(150*qt).translate([Nt,ar])},lt)}function gr(Fe,Ve,lt){return Ii(Fe,[[0,0],Ve],lt)}function Ln(Fe,Ve,lt){return Un(Fe,function(it){var mt=+Ve,Rt=mt/(it[1][0]-it[0][0]),qt=(mt-Rt*(it[1][0]+it[0][0]))/2,Nt=-Rt*it[0][1];Fe.scale(150*Rt).translate([qt,Nt])},lt)}function xn(Fe,Ve,lt){return Un(Fe,function(it){var mt=+Ve,Rt=mt/(it[1][1]-it[0][1]),qt=-Rt*it[0][0],Nt=(mt-Rt*(it[1][1]+it[0][1]))/2;Fe.scale(150*Rt).translate([qt,Nt])},lt)}var da=16,Si=m(30*d);function Kr(Fe,Ve){return+Ve?to(Fe,Ve):Gn(Fe)}function Gn(Fe){return gn({point:function(Ve,lt){Ve=Fe(Ve,lt),this.stream.point(Ve[0],Ve[1])}})}function to(Fe,Ve){function lt(it,mt,Rt,qt,Nt,ar,Ir,$t,Bt,rr,Dr,Ur,ai,ci){var li=Ir-it,mi=$t-mt,xi=li*li+mi*mi;if(xi>4*Ve&&ai--){var Ni=qt+rr,ua=Nt+Dr,xa=ar+Ur,ao=A(Ni*Ni+ua*ua+xa*xa),ho=S(xa/=ao),Fo=p(p(xa)-1)Ve||p((li*xs+mi*us)/xi-.5)>.3||qt*rr+Nt*Dr+ar*Ur2?Vi[2]%360*d:0,xs()):[Nt*h,ar*h,Ir*h]},Io.angle=function(Vi){return arguments.length?(Bt=Vi%360*d,xs()):Bt*h},Io.reflectX=function(Vi){return arguments.length?(rr=Vi?-1:1,xs()):rr<0},Io.reflectY=function(Vi){return arguments.length?(Dr=Vi?-1:1,xs()):Dr<0},Io.precision=function(Vi){return arguments.length?(xa=Kr(ao,ua=Vi*Vi),us()):A(ua)},Io.fitExtent=function(Vi,io){return Ii(Io,Vi,io)},Io.fitSize=function(Vi,io){return gr(Io,Vi,io)},Io.fitWidth=function(Vi,io){return Ln(Io,Vi,io)},Io.fitHeight=function(Vi,io){return xn(Io,Vi,io)};function xs(){var Vi=Oa(lt,0,0,rr,Dr,Bt).apply(null,Ve(Rt,qt)),io=(Bt?Oa:mo)(lt,it-Vi[0],mt-Vi[1],rr,Dr,Bt);return $t=Tr(Nt,ar,Ir),ao=Or(Ve,io),ho=Or($t,ao),xa=Kr(ao,ua),us()}function us(){return Fo=ls=null,Io}return function(){return Ve=Fe.apply(this,arguments),Io.invert=Ve.invert&&Ps,xs()}}function Pn(Fe){var Ve=0,lt=l/3,it=co(Fe),mt=it(Ve,lt);return mt.parallels=function(Rt){return arguments.length?it(Ve=Rt[0]*d,lt=Rt[1]*d):[Ve*h,lt*h]},mt}function Fa(Fe){var Ve=m(Fe);function lt(it,mt){return[it*Ve,x(mt)/Ve]}return lt.invert=function(it,mt){return[it/Ve,S(mt*Ve)]},lt}function oa(Fe,Ve){var lt=x(Fe),it=(lt+x(Ve))/2;if(p(it)=.12&&ci<.234&&ai>=-.425&&ai<-.214?mt:ci>=.166&&ci<.234&&ai>=-.214&&ai<-.115?qt:lt).invert(rr)},$t.stream=function(rr){return Fe&&Ve===rr?Fe:Fe=ma([lt.stream(Ve=rr),mt.stream(rr),qt.stream(rr)])},$t.precision=function(rr){return arguments.length?(lt.precision(rr),mt.precision(rr),qt.precision(rr),Bt()):lt.precision()},$t.scale=function(rr){return arguments.length?(lt.scale(rr),mt.scale(rr*.35),qt.scale(rr),$t.translate(lt.translate())):lt.scale()},$t.translate=function(rr){if(!arguments.length)return lt.translate();var Dr=lt.scale(),Ur=+rr[0],ai=+rr[1];return it=lt.translate(rr).clipExtent([[Ur-.455*Dr,ai-.238*Dr],[Ur+.455*Dr,ai+.238*Dr]]).stream(Ir),Rt=mt.translate([Ur-.307*Dr,ai+.201*Dr]).clipExtent([[Ur-.425*Dr+o,ai+.12*Dr+o],[Ur-.214*Dr-o,ai+.234*Dr-o]]).stream(Ir),Nt=qt.translate([Ur-.205*Dr,ai+.212*Dr]).clipExtent([[Ur-.214*Dr+o,ai+.166*Dr+o],[Ur-.115*Dr-o,ai+.234*Dr-o]]).stream(Ir),Bt()},$t.fitExtent=function(rr,Dr){return Ii($t,rr,Dr)},$t.fitSize=function(rr,Dr){return gr($t,rr,Dr)},$t.fitWidth=function(rr,Dr){return Ln($t,rr,Dr)},$t.fitHeight=function(rr,Dr){return xn($t,rr,Dr)};function Bt(){return Fe=Ve=null,$t}return $t.scale(1070)}function ki(Fe){return function(Ve,lt){var it=m(Ve),mt=m(lt),Rt=Fe(it*mt);return[Rt*mt*x(Ve),Rt*x(lt)]}}function Wr(Fe){return function(Ve,lt){var it=A(Ve*Ve+lt*lt),mt=Fe(it),Rt=x(mt),qt=m(mt);return[y(Ve*Rt,it*qt),S(it&<*Rt/it)]}}var An=ki(function(Fe){return A(2/(1+Fe))});An.invert=Wr(function(Fe){return 2*S(Fe/2)});function Za(){return Ei(An).scale(124.75).clipAngle(180-.001)}var Ga=ki(function(Fe){return(Fe=E(Fe))&&Fe/x(Fe)});Ga.invert=Wr(function(Fe){return Fe});function Ca(){return Ei(Ga).scale(79.4188).clipAngle(180-.001)}function za(Fe,Ve){return[Fe,b(g((u+Ve)/2))]}za.invert=function(Fe,Ve){return[Fe,2*v(_(Ve))-u]};function Wn(){return Zi(za).scale(961/c)}function Zi(Fe){var Ve=Ei(Fe),lt=Ve.center,it=Ve.scale,mt=Ve.translate,Rt=Ve.clipExtent,qt=null,Nt,ar,Ir;Ve.scale=function(Bt){return arguments.length?(it(Bt),$t()):it()},Ve.translate=function(Bt){return arguments.length?(mt(Bt),$t()):mt()},Ve.center=function(Bt){return arguments.length?(lt(Bt),$t()):lt()},Ve.clipExtent=function(Bt){return arguments.length?(Bt==null?qt=Nt=ar=Ir=null:(qt=+Bt[0][0],Nt=+Bt[0][1],ar=+Bt[1][0],Ir=+Bt[1][1]),$t()):qt==null?null:[[qt,Nt],[ar,Ir]]};function $t(){var Bt=l*it(),rr=Ve(Fi(Ve.rotate()).invert([0,0]));return Rt(qt==null?[[rr[0]-Bt,rr[1]-Bt],[rr[0]+Bt,rr[1]+Bt]]:Fe===za?[[Math.max(rr[0]-Bt,qt),Nt],[Math.min(rr[0]+Bt,ar),Ir]]:[[qt,Math.max(rr[1]-Bt,Nt)],[ar,Math.min(rr[1]+Bt,Ir)]])}return $t()}function sa(Fe){return g((u+Fe)/2)}function So(Fe,Ve){var lt=m(Fe),it=Fe===Ve?x(Fe):b(lt/m(Ve))/b(sa(Ve)/sa(Fe)),mt=lt*M(sa(Fe),it)/it;if(!it)return za;function Rt(qt,Nt){mt>0?Nt<-u+o&&(Nt=-u+o):Nt>u-o&&(Nt=u-o);var ar=mt/M(sa(Nt),it);return[ar*x(it*qt),mt-ar*m(it*qt)]}return Rt.invert=function(qt,Nt){var ar=mt-Nt,Ir=T(it)*A(qt*qt+ar*ar),$t=y(qt,p(ar))*T(ar);return ar*it<0&&($t-=l*T(qt)*T(ar)),[$t/it,2*v(M(mt/Ir,1/it))-u]},Rt}function ya(){return Pn(So).scale(109.5).parallels([30,30])}function Qn(Fe,Ve){return[Fe,Ve]}Qn.invert=Qn;function Tn(){return Ei(Qn).scale(152.63)}function Da(Fe,Ve){var lt=m(Fe),it=Fe===Ve?x(Fe):(lt-m(Ve))/(Ve-Fe),mt=lt/it+Fe;if(p(it)o&&--it>0);return[Fe/(.8707+(Rt=lt*lt)*(-.131979+Rt*(-.013791+Rt*Rt*Rt*(.003971-.001529*Rt)))),lt]};function Co(){return Ei(Ya).scale(175.295)}function Ri(Fe,Ve){return[m(Ve)*x(Fe),x(Ve)]}Ri.invert=Wr(S);function qa(){return Ei(Ri).scale(249.5).clipAngle(90+o)}function Zn(Fe,Ve){var lt=m(Ve),it=1+m(Fe)*lt;return[lt*x(Fe)/it,x(Ve)/it]}Zn.invert=Wr(function(Fe){return 2*v(Fe)});function Ha(){return Ei(Zn).scale(250).clipAngle(142)}function Wa(Fe,Ve){return[b(g((u+Ve)/2)),-Fe]}Wa.invert=function(Fe,Ve){return[-Ve,2*v(_(Fe))-u]};function $a(){var Fe=Zi(Wa),Ve=Fe.center,lt=Fe.rotate;return Fe.center=function(it){return arguments.length?Ve([-it[1],it[0]]):(it=Ve(),[it[1],-it[0]])},Fe.rotate=function(it){return arguments.length?lt([it[0],it[1],it.length>2?it[2]+90:90]):(it=lt(),[it[0],it[1],it[2]-90])},lt([0,0,90]).scale(159.155)}e.geoAlbers=va,e.geoAlbersUsa=Sa,e.geoArea=$,e.geoAzimuthalEqualArea=Za,e.geoAzimuthalEqualAreaRaw=An,e.geoAzimuthalEquidistant=Ca,e.geoAzimuthalEquidistantRaw=Ga,e.geoBounds=Be,e.geoCentroid=fr,e.geoCircle=Ut,e.geoClipAntimeridian=$e,e.geoClipCircle=lr,e.geoClipExtent=Vr,e.geoClipRectangle=Br,e.geoConicConformal=ya,e.geoConicConformalRaw=So,e.geoConicEqualArea=Hn,e.geoConicEqualAreaRaw=oa,e.geoConicEquidistant=zn,e.geoConicEquidistantRaw=Da,e.geoContains=ca,e.geoDistance=yn,e.geoEqualEarth=eo,e.geoEqualEarthRaw=go,e.geoEquirectangular=Tn,e.geoEquirectangularRaw=Qn,e.geoGnomonic=Mn,e.geoGnomonicRaw=Eo,e.geoGraticule=Ta,e.geoGraticule10=rn,e.geoIdentity=To,e.geoInterpolate=Ai,e.geoLength=Pr,e.geoMercator=Wn,e.geoMercatorRaw=za,e.geoNaturalEarth1=Co,e.geoNaturalEarth1Raw=Ya,e.geoOrthographic=qa,e.geoOrthographicRaw=Ri,e.geoPath=Bn,e.geoProjection=Ei,e.geoProjectionMutator=co,e.geoRotation=Fi,e.geoStereographic=Ha,e.geoStereographicRaw=Zn,e.geoStream=z,e.geoTransform=ji,e.geoTransverseMercator=$a,e.geoTransverseMercatorRaw=Wa,Object.defineProperty(e,"__esModule",{value:!0})}))});var QUe=K((VQr,JUe)=>{"use strict";var KUe={alabama:"AL",alaska:"AK",arizona:"AZ",arkansas:"AR",california:"CA",colorado:"CO",connecticut:"CT",delaware:"DE","district of columbia":"DC",florida:"FL",georgia:"GA",hawaii:"HI",idaho:"ID",illinois:"IL",indiana:"IN",iowa:"IA",kansas:"KS",kentucky:"KY",louisiana:"LA",maine:"ME",maryland:"MD",massachusetts:"MA",michigan:"MI",minnesota:"MN",mississippi:"MS",missouri:"MO",montana:"MT",nebraska:"NE",nevada:"NV","new hampshire":"NH","new jersey":"NJ","new mexico":"NM","new york":"NY","north carolina":"NC","north dakota":"ND",ohio:"OH",oklahoma:"OK",oregon:"OR",pennsylvania:"PA","rhode island":"RI","south carolina":"SC","south dakota":"SD",tennessee:"TN",texas:"TX",utah:"UT",vermont:"VT",virginia:"VA",washington:"WA","washington dc":"DC","washington d.c.":"DC","west virginia":"WV",wisconsin:"WI",wyoming:"WY"},Glr=new Set(Object.values(KUe));JUe.exports={usaLocationAbbreviations:Glr,usaLocationList:KUe}});var eGe={};Fl(eGe,{COUNTRIES_X:()=>Hlr});var Hlr,tGe=ps(()=>{"use strict";Hlr=[{iso3:"XAC",iso2:"",m49:"",name:"Aksai Chin",aliases:[]},{iso3:"XAP",iso2:"",m49:"",name:"Arunachal Pradesh",aliases:[]},{iso3:"XBT",iso2:"",m49:"",name:"Bir Tawil",aliases:[]},{iso3:"XHT",iso2:"",m49:"",name:"Halaib Triangle",aliases:[]},{iso3:"XIT",iso2:"",m49:"",name:"Ilemi Triangle",aliases:[]},{iso3:"XJK",iso2:"",m49:"",name:"Jammu and Kashmir",aliases:[]}]});var Ny=K((UQr,nGe)=>{"use strict";var jlr=No(),{COUNTRIES:Wlr,createLookup:$lr}=FUe(),{area:Ylr}=jUe(),{centroid:Xlr}=$Ue(),{coordAll:Zlr}=MR(),{geoBounds:Klr}=DR(),Jlr=m6(),U2=ey(),Qlr=_g(),eur=VT(),FR=nM(),{usaLocationAbbreviations:tur,usaLocationList:rur}=QUe(),{COUNTRIES_X:iur}=(tGe(),or(eGe)),{lookupAlpha3:nur}=$lr([...Wlr,...iur]),aur={"ISO-3":Jlr,"USA-states":sur,"country names":our};function our(e){let t=nur(e);return t||(U2.log("Unrecognized country name: "+e+"."),!1)}function sur(e){e=e.trim();let t=tur.has(e.toUpperCase())?e.toUpperCase():rur[e.toLowerCase()];return t||(U2.log("Unrecognized US location: "+e+"."),!1)}function lur(e,t,r){var n;if(!t||typeof t!="string")return!1;let i=aur[e](t);if(i){let a;if(e==="USA-states"){a=[];for(let o of r)((n=o==null?void 0:o.properties)==null?void 0:n.gu)==="USA"&&a.push(o)}else a=r;for(let o of a)if(o.id===i)return o;U2.log(`Location with id ${i} does not have a matching topojson feature at this resolution.`)}return!1}var LR=360;function lee(e){for(let t=0;t0&&e[t+1][0]<0)return t;return null}function uur(e){var t=e.geometry,r=t.coordinates,i=e.id,n=[],a,o,s,l;switch(i==="RUS"||i==="FJI"?a=function(u){var f;if(lee(u)===null)f=u;else for(f=new Array(u.length),l=0;lf?c[h++]=[u[l][0]+LR,u[l][1]]:l===f?(c[h++]=u[l],c[h++]=[u[l][0],-90]):c[h++]=u[l];var d=FR.tester(c);d.pts.pop(),n.push(d)}:a=function(u){n.push(FR.tester(u))},t.type){case"MultiPolygon":for(o=0;on&&(n=s,r=o)}else r=t;return!r||!r.coordinates.some(l=>l.length>0)?[NaN,NaN]:Xlr(r).geometry.coordinates}function hur(e){var t=window.PlotlyGeoAssets||{},r=[];function i(l){return new Promise(function(u,f){jlr.json(l,function(c,h){if(c){delete t[l];var d=c.status===404?'GeoJSON at URL "'+l+'" does not exist.':"Unexpected error while fetching from "+l;return f(new Error(d))}return t[l]=h,u(h)})})}function n(l){return new Promise(function(u,f){var c=0,h=setInterval(function(){if(t[l]&&t[l]!=="pending")return clearInterval(h),u(t[l]);if(c>100)return clearInterval(h),f("Unexpected error while fetching from "+l);c++},50)})}for(var a=0;acee(fee(e));function fee(e){try{return Zlr(e)}catch(t){return[]}}function cee(e){if(e.length===0)return null;if(e.length===1){let[a,o]=e[0];return[a,o,a,o]}let[[t,r],[i,n]]=Klr({type:"MultiPoint",coordinates:e});return[t,r,iGe([t,i])[1],n]}var pur=(e,t)=>t.fitbounds==="geojson"&&e.locationmode==="geojson-id",rGe=(e,t)=>pur(e,t)?fee(uee(e)):[],vur=(e,t)=>cee(rGe(e,t));function iGe([e,t]){return[e,e>t?t+LR:t]}nGe.exports={locationToFeature:lur,feature2polygons:uur,getTraceGeojson:uee,extractTraceFeature:fur,fetchTraceGeoData:hur,boundsOfCoords:cee,computeBbox:dur,coordsOf:fee,doesCrossAntiMeridian:lee,fitGeojsonBbox:vur,fitGeojsonCoords:rGe,unwrapLonRange:iGe,ANTIMERIDIAN_LON_SHIFT:LR}});var hee=K((GQr,sGe)=>{"use strict";var mur=No(),yur=Is(),aGe=wo(),oGe=hd(),gur=oGe.stylePoints,xur=oGe.styleText;sGe.exports=function(t,r){r&&bur(t,r)};function bur(e,t){var r=t[0].trace,i=t[0].node3;i.style("opacity",t[0].trace.opacity),gur(i,r,e),xur(i,r,e),i.selectAll("path.js-line").style("fill","none").each(function(n){var a=mur.select(this),o=n.trace,s=o.line||{};a.call(aGe.stroke,s.color).call(yur.dashLine,s.dash||"",s.width||0),o.fill!=="none"&&a.call(aGe.fill,o.fillcolor)})}});var IR=K((HQr,fGe)=>{"use strict";var lGe=No(),PR=St(),_ur=xR().getTopojsonFeatures,dee=zE(),zR=Ny(),uGe=$v().findExtremes,vee=(Il(),or(Bl)).BADNUM,wur=Kp().calcMarkerSize,pee=ff(),Aur=hee();function Tur(e,t,r){var i=t.layers.frontplot.select(".scatterlayer"),n=PR.makeTraceGroups(i,r,"trace scattergeo");function a(o,s){o.lonlat[0]===vee&&lGe.select(s).remove()}n.selectAll("*").remove(),n.each(function(o){var s=lGe.select(this),l=o[0].trace;if(pee.hasLines(l)||l.fill!=="none"){var u=dee.calcTraceToLineCoords(o),f=l.fill!=="none"?dee.makePolygon(u):dee.makeLine(u);s.selectAll("path.js-line").data([{geojson:f,trace:l}]).enter().append("path").classed("js-line",!0).style("stroke-miterlimit",2)}pee.hasMarkers(l)&&s.selectAll("path.point").data(PR.identity).enter().append("path").classed("point",!0).each(function(c){a(c,this)}),pee.hasText(l)&&s.selectAll("g").data(PR.identity).enter().append("g").append("text").each(function(c){a(c,this)}),Aur(e,o)})}function Mur(e,t){var r=e[0].trace,i=t[r.geo],n=i._subplot,a=r._length,o,s;if(PR.isArrayOrTypedArray(r.locations)){var l=r.locationmode,u=l==="geojson-id"?zR.extractTraceFeature(e):_ur(r,n.topojson);for(o=0;o{"use strict";var Eur=Gf(),kur=(Il(),or(Bl)).BADNUM,Cur=lA(),Dur=St().fillText,Fur=Y4();cGe.exports=function(t,r,i){var n=t.cd,a=n[0].trace,o=t.xa,s=t.ya,l=t.subplot,u=l.projection.isLonLatOverEdges,f=l.project;function c(w){var _=w.lonlat;if(_[0]===kur||u(_))return 1/0;var b=f(_),M=f([r,i]),x=Math.abs(b[0]-M[0]),T=Math.abs(b[1]-M[1]),A=Math.max(3,w.mrc||0);return Math.max(Math.sqrt(x*x+T*T)-A,1-3/A)}if(Eur.getClosest(n,c,t),t.index!==!1){var h=n[t.index],d=h.lonlat,p=[o.c2p(d),s.c2p(d)],v=h.mrc||1;t.x0=p[0]-v,t.x1=p[0]+v,t.y0=p[1]-v,t.y1=p[1]+v,t.loc=h.loc,t.lon=d[0],t.lat=d[1];var y={};y[a.geo]={_subplot:l};var m=a._module.formatLabels(h,a,y);return t.lonLabel=m.lonLabel,t.latLabel=m.latLabel,t.color=Cur(a,h),t.extraText=Lur(a,h,t,n[0].t.labels),t.hovertemplate=a.hovertemplate,[t]}};function Lur(e,t,r,i){if(e.hovertemplate)return;var n=t.hi||e.hoverinfo,a=n==="all"?Fur.hoverinfo.flags:n.split("+"),o=a.indexOf("location")!==-1&&Array.isArray(e.locations),s=a.indexOf("lon")!==-1,l=a.indexOf("lat")!==-1,u=a.indexOf("text")!==-1,f=[];function c(h){return h+"\xB0"}return o?f.push(t.loc):s&&l?f.push("("+c(r.latLabel)+", "+c(r.lonLabel)+")"):s?f.push(i.lon+c(r.lonLabel)):l&&f.push(i.lat+c(r.latLabel)),u&&Dur(t,e,f),f.join("
")}});var pGe=K((WQr,dGe)=>{"use strict";dGe.exports=function(t,r,i,n,a){t.lon=r.lon,t.lat=r.lat,t.location=r.loc?r.loc:null;var o=n[a];return o.fIn&&o.fIn.properties&&(t.properties=o.fIn.properties),t}});var yGe=K(($Qr,mGe)=>{"use strict";var vGe=ff(),Pur=(Il(),or(Bl)).BADNUM;mGe.exports=function(t,r){var i=t.cd,n=t.xaxis,a=t.yaxis,o=[],s=i[0].trace,l,u,f,c,h,d=!vGe.hasMarkers(s)&&!vGe.hasText(s);if(d)return[];if(r===!1)for(h=0;h{(function(e,t){t(typeof RR=="object"&&typeof gGe!="undefined"?RR:e.d3=e.d3||{})})(RR,(function(e){"use strict";function t(N,U){return NU?1:N>=U?0:NaN}function r(N){return N.length===1&&(N=i(N)),{left:function(U,J,j,$){for(j==null&&(j=0),$==null&&($=U.length);j<$;){var ie=j+$>>>1;N(U[ie],J)<0?j=ie+1:$=ie}return j},right:function(U,J,j,$){for(j==null&&(j=0),$==null&&($=U.length);j<$;){var ie=j+$>>>1;N(U[ie],J)>0?$=ie:j=ie+1}return j}}}function i(N){return function(U,J){return t(N(U),J)}}var n=r(t),a=n.right,o=n.left;function s(N,U){U==null&&(U=l);for(var J=0,j=N.length-1,$=N[0],ie=new Array(j<0?0:j);JN?1:U>=N?0:NaN}function c(N){return N===null?NaN:+N}function h(N,U){var J=N.length,j=0,$=-1,ie=0,re,de,me=0;if(U==null)for(;++$1)return me/(j-1)}function d(N,U){var J=h(N,U);return J&&Math.sqrt(J)}function p(N,U){var J=N.length,j=-1,$,ie,re;if(U==null){for(;++j=$)for(ie=re=$;++j$&&(ie=$),re<$&&(re=$))}else for(;++j=$)for(ie=re=$;++j$&&(ie=$),re<$&&(re=$));return[ie,re]}var v=Array.prototype,y=v.slice,m=v.map;function w(N){return function(){return N}}function _(N){return N}function b(N,U,J){N=+N,U=+U,J=($=arguments.length)<2?(U=N,N=0,1):$<3?1:+J;for(var j=-1,$=Math.max(0,Math.ceil((U-N)/J))|0,ie=new Array($);++j<$;)ie[j]=N+j*J;return ie}var M=Math.sqrt(50),x=Math.sqrt(10),T=Math.sqrt(2);function A(N,U,J){var j,$=-1,ie,re,de;if(U=+U,N=+N,J=+J,N===U&&J>0)return[N];if((j=U0)for(N=Math.ceil(N/de),U=Math.floor(U/de),re=new Array(ie=Math.ceil(U-N+1));++$=0?(ie>=M?10:ie>=x?5:ie>=T?2:1)*Math.pow(10,$):-Math.pow(10,-$)/(ie>=M?10:ie>=x?5:ie>=T?2:1)}function E(N,U,J){var j=Math.abs(U-N)/Math.max(0,J),$=Math.pow(10,Math.floor(Math.log(j)/Math.LN10)),ie=j/$;return ie>=M?$*=10:ie>=x?$*=5:ie>=T&&($*=2),Ule;)te.pop(),--Ee;var we=new Array(Ee+1),oe;for(ie=0;ie<=Ee;++ie)oe=we[ie]=[],oe.x0=ie>0?te[ie-1]:ke,oe.x1=ie=1)return+J(N[j-1],j-1,N);var j,$=(j-1)*U,ie=Math.floor($),re=+J(N[ie],ie,N),de=+J(N[ie+1],ie+1,N);return re+(de-re)*($-ie)}}function D(N,U,J){return N=m.call(N,c).sort(t),Math.ceil((J-U)/(2*(k(N,.75)-k(N,.25))*Math.pow(N.length,-1/3)))}function F(N,U,J){return Math.ceil((J-U)/(3.5*d(N)*Math.pow(N.length,-1/3)))}function P(N,U){var J=N.length,j=-1,$,ie;if(U==null){for(;++j=$)for(ie=$;++jie&&(ie=$)}else for(;++j=$)for(ie=$;++jie&&(ie=$);return ie}function I(N,U){var J=N.length,j=J,$=-1,ie,re=0;if(U==null)for(;++$=0;)for(re=N[U],J=re.length;--J>=0;)ie[--$]=re[J];return ie}function B(N,U){var J=N.length,j=-1,$,ie;if(U==null){for(;++j=$)for(ie=$;++j$&&(ie=$)}else for(;++j=$)for(ie=$;++j$&&(ie=$);return ie}function O(N,U){for(var J=U.length,j=new Array(J);J--;)j[J]=N[U[J]];return j}function W(N,U){if(J=N.length){var J,j=0,$=0,ie,re=N[$];for(U==null&&(U=t);++j{(function(e,t){typeof BR=="object"&&typeof bGe!="undefined"?t(BR,DR(),xGe()):t(e.d3=e.d3||{},e.d3,e.d3)})(BR,(function(e,t,r){"use strict";var i=Math.abs,n=Math.atan,a=Math.atan2,o=Math.cos,s=Math.exp,l=Math.floor,u=Math.log,f=Math.max,c=Math.min,h=Math.pow,d=Math.round,p=Math.sign||function(ae){return ae>0?1:ae<0?-1:0},v=Math.sin,y=Math.tan,m=1e-6,w=1e-12,_=Math.PI,b=_/2,M=_/4,x=Math.SQRT1_2,T=F(2),A=F(_),g=_*2,E=180/_,S=_/180;function C(ae){return ae?ae/Math.sin(ae):1}function k(ae){return ae>1?b:ae<-1?-b:Math.asin(ae)}function D(ae){return ae>1?0:ae<-1?_:Math.acos(ae)}function F(ae){return ae>0?Math.sqrt(ae):0}function P(ae){return ae=s(2*ae),(ae-1)/(ae+1)}function I(ae){return(s(ae)-s(-ae))/2}function L(ae){return(s(ae)+s(-ae))/2}function z(ae){return u(ae+F(ae*ae+1))}function B(ae){return u(ae+F(ae*ae-1))}function O(ae){var ce=y(ae/2),Te=2*u(o(ae/2))/(ce*ce);function Ce(Ne,Oe){var He=o(Ne),ct=o(Oe),xt=v(Oe),vt=ct*He,wt=-((1-vt?u((1+vt)/2)/(1-vt):-.5)+Te/(1+vt));return[wt*ct*v(Ne),wt*xt]}return Ce.invert=function(Ne,Oe){var He=F(Ne*Ne+Oe*Oe),ct=-ae/2,xt=50,vt;if(!He)return[0,0];do{var wt=ct/2,Pt=o(wt),Jt=v(wt),cr=Jt/Pt,Nr=-u(i(Pt));ct-=vt=(2/cr*Nr-Te*cr-He)/(-Nr/(Jt*Jt)+1-Te/(2*Pt*Pt))*(Pt<0?.7:1)}while(i(vt)>m&&--xt>0);var zi=v(ct);return[a(Ne*zi,He*o(ct)),k(Oe*zi/He)]},Ce}function W(){var ae=b,ce=t.geoProjectionMutator(O),Te=ce(ae);return Te.radius=function(Ce){return arguments.length?ce(ae=Ce*S):ae*E},Te.scale(179.976).clipAngle(147)}function X(ae,ce){var Te=o(ce),Ce=C(D(Te*o(ae/=2)));return[2*Te*v(ae)*Ce,v(ce)*Ce]}X.invert=function(ae,ce){if(!(ae*ae+4*ce*ce>_*_+m)){var Te=ae,Ce=ce,Ne=25;do{var Oe=v(Te),He=v(Te/2),ct=o(Te/2),xt=v(Ce),vt=o(Ce),wt=v(2*Ce),Pt=xt*xt,Jt=vt*vt,cr=He*He,Nr=1-Jt*ct*ct,zi=Nr?D(vt*ct)*F(Rn=1/Nr):Rn=0,Rn,fo=2*zi*vt*He-ae,Xo=zi*xt-ce,Bo=Rn*(Jt*cr+zi*vt*ct*Pt),fs=Rn*(.5*Oe*wt-zi*2*xt*He),cs=Rn*.25*(wt*He-zi*xt*Jt*Oe),Ns=Rn*(Pt*ct+zi*cr*vt),zl=fs*cs-Ns*Bo;if(!zl)break;var Rs=(Xo*fs-fo*Ns)/zl,Nl=(fo*cs-Xo*Bo)/zl;Te-=Rs,Ce-=Nl}while((i(Rs)>m||i(Nl)>m)&&--Ne>0);return[Te,Ce]}};function Z(){return t.geoProjection(X).scale(152.63)}function H(ae){var ce=v(ae),Te=o(ae),Ce=ae>=0?1:-1,Ne=y(Ce*ae),Oe=(1+ce-Te)/2;function He(ct,xt){var vt=o(xt),wt=o(ct/=2);return[(1+vt)*v(ct),(Ce*xt>-a(wt,Ne)-.001?0:-Ce*10)+Oe+v(xt)*Te-(1+vt)*ce*wt]}return He.invert=function(ct,xt){var vt=0,wt=0,Pt=50;do{var Jt=o(vt),cr=v(vt),Nr=o(wt),zi=v(wt),Rn=1+Nr,fo=Rn*cr-ct,Xo=Oe+zi*Te-Rn*ce*Jt-xt,Bo=Rn*Jt/2,fs=-cr*zi,cs=ce*Rn*cr/2,Ns=Te*Nr+ce*Jt*zi,zl=fs*cs-Ns*Bo,Rs=(Xo*fs-fo*Ns)/zl/2,Nl=(fo*cs-Xo*Bo)/zl;i(Nl)>2&&(Nl/=2),vt-=Rs,wt-=Nl}while((i(Rs)>m||i(Nl)>m)&&--Pt>0);return Ce*wt>-a(o(vt),Ne)-.001?[vt*2,wt]:null},He}function q(){var ae=20*S,ce=ae>=0?1:-1,Te=y(ce*ae),Ce=t.geoProjectionMutator(H),Ne=Ce(ae),Oe=Ne.stream;return Ne.parallel=function(He){return arguments.length?(Te=y((ce=(ae=He*S)>=0?1:-1)*ae),Ce(ae)):ae*E},Ne.stream=function(He){var ct=Ne.rotate(),xt=Oe(He),vt=(Ne.rotate([0,0]),Oe(He)),wt=Ne.precision();return Ne.rotate(ct),xt.sphere=function(){vt.polygonStart(),vt.lineStart();for(var Pt=ce*-180;ce*Pt<180;Pt+=ce*90)vt.point(Pt,ce*90);if(ae)for(;ce*(Pt-=3*ce*wt)>=-180;)vt.point(Pt,ce*-a(o(Pt*S/2),Te)*E);vt.lineEnd(),vt.polygonEnd()},xt},Ne.scale(218.695).center([0,28.0974])}function Q(ae,ce){var Te=y(ce/2),Ce=F(1-Te*Te),Ne=1+Ce*o(ae/=2),Oe=v(ae)*Ce/Ne,He=Te/Ne,ct=Oe*Oe,xt=He*He;return[4/3*Oe*(3+ct-3*xt),4/3*He*(3+3*ct-xt)]}Q.invert=function(ae,ce){if(ae*=3/8,ce*=3/8,!ae&&i(ce)>1)return null;var Te=ae*ae,Ce=ce*ce,Ne=1+Te+Ce,Oe=F((Ne-F(Ne*Ne-4*ce*ce))/2),He=k(Oe)/3,ct=Oe?B(i(ce/Oe))/3:z(i(ae))/3,xt=o(He),vt=L(ct),wt=vt*vt-xt*xt;return[p(ae)*2*a(I(ct)*xt,.25-wt),p(ce)*2*a(vt*v(He),.25+wt)]};function N(){return t.geoProjection(Q).scale(66.1603)}var U=F(8),J=u(1+T);function j(ae,ce){var Te=i(ce);return Tew&&--Ce>0);return[ae/(o(Te)*(U-1/v(Te))),p(ce)*Te]};function $(){return t.geoProjection(j).scale(112.314)}function ie(ae){var ce=2*_/ae;function Te(Ce,Ne){var Oe=t.geoAzimuthalEquidistantRaw(Ce,Ne);if(i(Ce)>b){var He=a(Oe[1],Oe[0]),ct=F(Oe[0]*Oe[0]+Oe[1]*Oe[1]),xt=ce*d((He-b)/ce)+b,vt=a(v(He-=xt),2-o(He));He=xt+k(_/ct*v(vt))-vt,Oe[0]=ct*o(He),Oe[1]=ct*v(He)}return Oe}return Te.invert=function(Ce,Ne){var Oe=F(Ce*Ce+Ne*Ne);if(Oe>b){var He=a(Ne,Ce),ct=ce*d((He-b)/ce)+b,xt=He>ct?-1:1,vt=Oe*o(ct-He),wt=1/y(xt*D((vt-_)/F(_*(_-2*vt)+Oe*Oe)));He=ct+2*n((wt+xt*F(wt*wt-3))/3),Ce=Oe*o(He),Ne=Oe*v(He)}return t.geoAzimuthalEquidistantRaw.invert(Ce,Ne)},Te}function re(){var ae=5,ce=t.geoProjectionMutator(ie),Te=ce(ae),Ce=Te.stream,Ne=.01,Oe=-o(Ne*S),He=v(Ne*S);return Te.lobes=function(ct){return arguments.length?ce(ae=+ct):ae},Te.stream=function(ct){var xt=Te.rotate(),vt=Ce(ct),wt=(Te.rotate([0,0]),Ce(ct));return Te.rotate(xt),vt.sphere=function(){wt.polygonStart(),wt.lineStart();for(var Pt=0,Jt=360/ae,cr=2*_/ae,Nr=90-180/ae,zi=b;Pt0&&i(Ne)>m);return Ce<0?NaN:Te}function le(ae,ce,Te){return ce===void 0&&(ce=40),Te===void 0&&(Te=w),function(Ce,Ne,Oe,He){var ct,xt,vt;Oe=Oe===void 0?0:+Oe,He=He===void 0?0:+He;for(var wt=0;wtct){Oe-=xt/=2,He-=vt/=2;continue}ct=Nr;var zi=(Oe>0?-1:1)*Te,Rn=(He>0?-1:1)*Te,fo=ae(Oe+zi,He),Xo=ae(Oe,He+Rn),Bo=(fo[0]-Pt[0])/zi,fs=(fo[1]-Pt[1])/zi,cs=(Xo[0]-Pt[0])/Rn,Ns=(Xo[1]-Pt[1])/Rn,zl=Ns*Bo-fs*cs,Rs=(i(zl)<.5?.5:1)/zl;if(xt=(cr*cs-Jt*Ns)*Rs,vt=(Jt*fs-cr*Bo)*Rs,Oe+=xt,He+=vt,i(xt)0&&(ct[1]*=1+xt/1.5*ct[0]*ct[0]),ct}return Ce.invert=le(Ce),Ce}function Ee(){return t.geoProjection(te()).rotate([-16.5,-42]).scale(176.57).center([7.93,.09])}function we(ae,ce){var Te=ae*v(ce),Ce=30,Ne;do ce-=Ne=(ce+v(ce)-Te)/(1+o(ce));while(i(Ne)>m&&--Ce>0);return ce/2}function oe(ae,ce,Te){function Ce(Ne,Oe){return[ae*Ne*o(Oe=we(Te,Oe)),ce*v(Oe)]}return Ce.invert=function(Ne,Oe){return Oe=k(Oe/ce),[Ne/(ae*o(Oe)),k((2*Oe+v(2*Oe))/Te)]},Ce}var Y=oe(T/b,T,_);function ne(){return t.geoProjection(Y).scale(169.529)}var ye=2.00276,V=1.11072;function ue(ae,ce){var Te=we(_,ce);return[ye*ae/(1/o(ce)+V/o(Te)),(ce+T*v(Te))/ye]}ue.invert=function(ae,ce){var Te=ye*ce,Ce=ce<0?-M:M,Ne=25,Oe,He;do He=Te-T*v(Ce),Ce-=Oe=(v(2*Ce)+2*Ce-_*v(He))/(2*o(2*Ce)+2+_*o(He)*T*o(Ce));while(i(Oe)>m&&--Ne>0);return He=Te-T*v(Ce),[ae*(1/o(He)+V/o(Ce))/ye,He]};function _e(){return t.geoProjection(ue).scale(160.857)}function xe(ae){var ce=0,Te=t.geoProjectionMutator(ae),Ce=Te(ce);return Ce.parallel=function(Ne){return arguments.length?Te(ce=Ne*S):ce*E},Ce}function Ae(ae,ce){return[ae*o(ce),ce]}Ae.invert=function(ae,ce){return[ae/o(ce),ce]};function se(){return t.geoProjection(Ae).scale(152.63)}function pe(ae){if(!ae)return Ae;var ce=1/y(ae);function Te(Ce,Ne){var Oe=ce+ae-Ne,He=Oe&&Ce*o(Ne)/Oe;return[Oe*v(He),ce-Oe*o(He)]}return Te.invert=function(Ce,Ne){var Oe=F(Ce*Ce+(Ne=ce-Ne)*Ne),He=ce+ae-Oe;return[Oe/o(He)*a(Ce,Ne),He]},Te}function fe(){return xe(pe).scale(123.082).center([0,26.1441]).parallel(45)}function Re(ae){function ce(Te,Ce){var Ne=b-Ce,Oe=Ne&&Te*ae*v(Ne)/Ne;return[Ne*v(Oe)/ae,b-Ne*o(Oe)]}return ce.invert=function(Te,Ce){var Ne=Te*ae,Oe=b-Ce,He=F(Ne*Ne+Oe*Oe),ct=a(Ne,Oe);return[(He?He/v(He):1)*ct/ae,b-He]},ce}function We(){var ae=.5,ce=t.geoProjectionMutator(Re),Te=ce(ae);return Te.fraction=function(Ce){return arguments.length?ce(ae=+Ce):ae},Te.scale(158.837)}var Ke=oe(1,4/_,_);function tt(){return t.geoProjection(Ke).scale(152.63)}function at(ae,ce,Te,Ce,Ne,Oe){var He=o(Oe),ct;if(i(ae)>1||i(Oe)>1)ct=D(Te*Ne+ce*Ce*He);else{var xt=v(ae/2),vt=v(Oe/2);ct=2*k(F(xt*xt+ce*Ce*vt*vt))}return i(ct)>m?[ct,a(Ce*v(Oe),ce*Ne-Te*Ce*He)]:[0,0]}function Ge(ae,ce,Te){return D((ae*ae+ce*ce-Te*Te)/(2*ae*ce))}function ge(ae){return ae-2*_*l((ae+_)/(2*_))}function Be(ae,ce,Te){for(var Ce=[[ae[0],ae[1],v(ae[1]),o(ae[1])],[ce[0],ce[1],v(ce[1]),o(ce[1])],[Te[0],Te[1],v(Te[1]),o(Te[1])]],Ne=Ce[2],Oe,He=0;He<3;++He,Ne=Oe)Oe=Ce[He],Ne.v=at(Oe[1]-Ne[1],Ne[3],Ne[2],Oe[3],Oe[2],Oe[0]-Ne[0]),Ne.point=[0,0];var ct=Ge(Ce[0].v[0],Ce[2].v[0],Ce[1].v[0]),xt=Ge(Ce[0].v[0],Ce[1].v[0],Ce[2].v[0]),vt=_-ct;Ce[2].point[1]=0,Ce[0].point[0]=-(Ce[1].point[0]=Ce[0].v[0]/2);var wt=[Ce[2].point[0]=Ce[0].point[0]+Ce[2].v[0]*o(ct),2*(Ce[0].point[1]=Ce[1].point[1]=Ce[2].v[0]*v(ct))];function Pt(Jt,cr){var Nr=v(cr),zi=o(cr),Rn=new Array(3),fo;for(fo=0;fo<3;++fo){var Xo=Ce[fo];if(Rn[fo]=at(cr-Xo[1],Xo[3],Xo[2],zi,Nr,Jt-Xo[0]),!Rn[fo][0])return Xo.point;Rn[fo][1]=ge(Rn[fo][1]-Xo.v[1])}var Bo=wt.slice();for(fo=0;fo<3;++fo){var fs=fo==2?0:fo+1,cs=Ge(Ce[fo].v[0],Rn[fo][0],Rn[fs][0]);Rn[fo][1]<0&&(cs=-cs),fo?fo==1?(cs=xt-cs,Bo[0]-=Rn[fo][0]*o(cs),Bo[1]-=Rn[fo][0]*v(cs)):(cs=vt-cs,Bo[0]+=Rn[fo][0]*o(cs),Bo[1]+=Rn[fo][0]*v(cs)):(Bo[0]+=Rn[fo][0]*o(cs),Bo[1]-=Rn[fo][0]*v(cs))}return Bo[0]/=3,Bo[1]/=3,Bo}return Pt}function Ze(ae){return ae[0]*=S,ae[1]*=S,ae}function Le(){return De([0,22],[45,22],[22.5,-22]).scale(380).center([22.5,2])}function De(ae,ce,Te){var Ce=t.geoCentroid({type:"MultiPoint",coordinates:[ae,ce,Te]}),Ne=[-Ce[0],-Ce[1]],Oe=t.geoRotation(Ne),He=Be(Ze(Oe(ae)),Ze(Oe(ce)),Ze(Oe(Te)));He.invert=le(He);var ct=t.geoProjection(He).rotate(Ne),xt=ct.center;return delete ct.rotate,ct.center=function(vt){return arguments.length?xt(Oe(vt)):Oe.invert(xt())},ct.clipAngle(90)}function Ue(ae,ce){var Te=F(1-v(ce));return[2/A*ae*Te,A*(1-Te)]}Ue.invert=function(ae,ce){var Te=(Te=ce/A-1)*Te;return[Te>0?ae*F(_/Te)/2:0,k(1-Te)]};function Pe(){return t.geoProjection(Ue).scale(95.6464).center([0,30])}function Se(ae){var ce=y(ae);function Te(Ce,Ne){return[Ce,(Ce?Ce/v(Ce):1)*(v(Ne)*o(Ce)-ce*o(Ne))]}return Te.invert=ce?function(Ce,Ne){Ce&&(Ne*=v(Ce)/Ce);var Oe=o(Ce);return[Ce,2*a(F(Oe*Oe+ce*ce-Ne*Ne)-Oe,ce-Ne)]}:function(Ce,Ne){return[Ce,k(Ce?Ne*y(Ce)/Ce:Ne)]},Te}function Ie(){return xe(Se).scale(249.828).clipAngle(90)}var ot=F(3);function ut(ae,ce){return[ot*ae*(2*o(2*ce/3)-1)/A,ot*A*v(ce/3)]}ut.invert=function(ae,ce){var Te=3*k(ce/(ot*A));return[A*ae/(ot*(2*o(2*Te/3)-1)),Te]};function _t(){return t.geoProjection(ut).scale(156.19)}function At(ae){var ce=o(ae);function Te(Ce,Ne){return[Ce*ce,v(Ne)/ce]}return Te.invert=function(Ce,Ne){return[Ce/ce,k(Ne*ce)]},Te}function Gt(){return xe(At).parallel(38.58).scale(195.044)}function Dt(ae){var ce=o(ae);function Te(Ce,Ne){return[Ce*ce,(1+ce)*y(Ne/2)]}return Te.invert=function(Ce,Ne){return[Ce/ce,n(Ne/(1+ce))*2]},Te}function yt(){return xe(Dt).scale(124.75)}function Mt(ae,ce){var Te=F(8/(3*_));return[Te*ae*(1-i(ce)/_),Te*ce]}Mt.invert=function(ae,ce){var Te=F(8/(3*_)),Ce=ce/Te;return[ae/(Te*(1-i(Ce)/_)),Ce]};function tr(){return t.geoProjection(Mt).scale(165.664)}function Ye(ae,ce){var Te=F(4-3*v(i(ce)));return[2/F(6*_)*ae*Te,p(ce)*F(2*_/3)*(2-Te)]}Ye.invert=function(ae,ce){var Te=2-i(ce)/F(2*_/3);return[ae*F(6*_)/(2*Te),p(ce)*k((4-Te*Te)/3)]};function nt(){return t.geoProjection(Ye).scale(165.664)}function st(ae,ce){var Te=F(_*(4+_));return[2/Te*ae*(1+F(1-4*ce*ce/(_*_))),4/Te*ce]}st.invert=function(ae,ce){var Te=F(_*(4+_))/2;return[ae*Te/(1+F(1-ce*ce*(4+_)/(4*_))),ce*Te/2]};function dt(){return t.geoProjection(st).scale(180.739)}function rt(ae,ce){var Te=(2+b)*v(ce);ce/=2;for(var Ce=0,Ne=1/0;Ce<10&&i(Ne)>m;Ce++){var Oe=o(ce);ce-=Ne=(ce+v(ce)*(Oe+2)-Te)/(2*Oe*(1+Oe))}return[2/F(_*(4+_))*ae*(1+o(ce)),2*F(_/(4+_))*v(ce)]}rt.invert=function(ae,ce){var Te=ce*F((4+_)/_)/2,Ce=k(Te),Ne=o(Ce);return[ae/(2/F(_*(4+_))*(1+Ne)),k((Ce+Te*(Ne+2))/(2+b))]};function ft(){return t.geoProjection(rt).scale(180.739)}function Ft(ae,ce){return[ae*(1+o(ce))/F(2+_),2*ce/F(2+_)]}Ft.invert=function(ae,ce){var Te=F(2+_),Ce=ce*Te/2;return[Te*ae/(1+o(Ce)),Ce]};function Et(){return t.geoProjection(Ft).scale(173.044)}function er(ae,ce){for(var Te=(1+b)*v(ce),Ce=0,Ne=1/0;Ce<10&&i(Ne)>m;Ce++)ce-=Ne=(ce+v(ce)-Te)/(1+o(ce));return Te=F(2+_),[ae*(1+o(ce))/Te,2*ce/Te]}er.invert=function(ae,ce){var Te=1+b,Ce=F(Te/2);return[ae*2*Ce/(1+o(ce*=Ce)),k((ce+v(ce))/Te)]};function xr(){return t.geoProjection(er).scale(173.044)}var kr=3+2*T;function fr(ae,ce){var Te=v(ae/=2),Ce=o(ae),Ne=F(o(ce)),Oe=o(ce/=2),He=v(ce)/(Oe+T*Ce*Ne),ct=F(2/(1+He*He)),xt=F((T*Oe+(Ce+Te)*Ne)/(T*Oe+(Ce-Te)*Ne));return[kr*(ct*(xt-1/xt)-2*u(xt)),kr*(ct*He*(xt+1/xt)-2*n(He))]}fr.invert=function(ae,ce){if(!(Oe=Q.invert(ae/1.2,ce*1.065)))return null;var Te=Oe[0],Ce=Oe[1],Ne=20,Oe;ae/=kr,ce/=kr;do{var He=Te/2,ct=Ce/2,xt=v(He),vt=o(He),wt=v(ct),Pt=o(ct),Jt=o(Ce),cr=F(Jt),Nr=wt/(Pt+T*vt*cr),zi=Nr*Nr,Rn=F(2/(1+zi)),fo=T*Pt+(vt+xt)*cr,Xo=T*Pt+(vt-xt)*cr,Bo=fo/Xo,fs=F(Bo),cs=fs-1/fs,Ns=fs+1/fs,zl=Rn*cs-2*u(fs)-ae,Rs=Rn*Nr*Ns-2*n(Nr)-ce,Nl=wt&&x*cr*xt*zi/wt,ul=(T*vt*Pt+cr)/(2*(Pt+T*vt*cr)*(Pt+T*vt*cr)*cr),cl=-.5*Nr*Rn*Rn*Rn,vf=cl*Nl,wf=cl*ul,_u=(_u=2*Pt+T*cr*(vt-xt))*_u*fs,wu=(T*vt*Pt*cr+Jt)/_u,ju=-(T*xt*wt)/(cr*_u),Au=cs*vf-2*wu/fs+Rn*(wu+wu/Bo),ku=cs*wf-2*ju/fs+Rn*(ju+ju/Bo),Af=Nr*Ns*vf-2*Nl/(1+zi)+Rn*Ns*Nl+Rn*Nr*(wu-wu/Bo),mf=Nr*Ns*wf-2*ul/(1+zi)+Rn*Ns*ul+Rn*Nr*(ju-ju/Bo),ef=ku*Af-mf*Au;if(!ef)break;var Nf=(Rs*ku-zl*mf)/ef,oc=(zl*Af-Rs*Au)/ef;Te-=Nf,Ce=f(-b,c(b,Ce-oc))}while((i(Nf)>m||i(oc)>m)&&--Ne>0);return i(i(Ce)-b)Ce){var Pt=F(wt),Jt=a(vt,xt),cr=Te*d(Jt/Te),Nr=Jt-cr,zi=ae*o(Nr),Rn=(ae*v(Nr)-Nr*v(zi))/(b-zi),fo=dr(Nr,Rn),Xo=(_-ae)/Hr(fo,zi,_);xt=Pt;var Bo=50,fs;do xt-=fs=(ae+Hr(fo,zi,xt)*Xo-Pt)/(fo(xt)*Xo);while(i(fs)>m&&--Bo>0);vt=Nr*v(xt),xtCe){var xt=F(ct),vt=a(He,Oe),wt=Te*d(vt/Te),Pt=vt-wt;Oe=xt*o(Pt),He=xt*v(Pt);for(var Jt=Oe-b,cr=v(Oe),Nr=He/cr,zi=Oem||i(Nr)>m)&&--zi>0);return[Pt,Jt]},xt}var di=Fr(2.8284,-1.6988,.75432,-.18071,1.76003,-.38914,.042555);function Li(){return t.geoProjection(di).scale(149.995)}var nr=Fr(2.583819,-.835827,.170354,-.038094,1.543313,-.411435,.082742);function Kt(){return t.geoProjection(nr).scale(153.93)}var Me=Fr(5/6*_,-.62636,-.0344,0,1.3493,-.05524,0,.045);function Xe(){return t.geoProjection(Me).scale(130.945)}function $e(ae,ce){var Te=ae*ae,Ce=ce*ce;return[ae*(1-.162388*Ce)*(.87-952426e-9*Te*Te),ce*(1+Ce/12)]}$e.invert=function(ae,ce){var Te=ae,Ce=ce,Ne=50,Oe;do{var He=Ce*Ce;Ce-=Oe=(Ce*(1+He/12)-ce)/(1+He/4)}while(i(Oe)>m&&--Ne>0);Ne=50,ae/=1-.162388*He;do{var ct=(ct=Te*Te)*ct;Te-=Oe=(Te*(.87-952426e-9*ct)-ae)/(.87-.00476213*ct)}while(i(Oe)>m&&--Ne>0);return[Te,Ce]};function Qe(){return t.geoProjection($e).scale(131.747)}var gt=Fr(2.6516,-.76534,.19123,-.047094,1.36289,-.13965,.031762);function bt(){return t.geoProjection(gt).scale(131.087)}function lr(ae){var ce=ae(b,0)[0]-ae(-b,0)[0];function Te(Ce,Ne){var Oe=Ce>0?-.5:.5,He=ae(Ce+Oe*_,Ne);return He[0]-=Oe*ce,He}return ae.invert&&(Te.invert=function(Ce,Ne){var Oe=Ce>0?-.5:.5,He=ae.invert(Ce+Oe*ce,Ne),ct=He[0]-Oe*_;return ct<-_?ct+=2*_:ct>_&&(ct-=2*_),He[0]=ct,He}),Te}function Ct(ae,ce){var Te=p(ae),Ce=p(ce),Ne=o(ce),Oe=o(ae)*Ne,He=v(ae)*Ne,ct=v(Ce*ce);ae=i(a(He,ct)),ce=k(Oe),i(ae-b)>m&&(ae%=b);var xt=ur(ae>_/4?b-ae:ae,ce);return ae>_/4&&(ct=xt[0],xt[0]=-xt[1],xt[1]=-ct),xt[0]*=Te,xt[1]*=-Ce,xt}Ct.invert=function(ae,ce){i(ae)>1&&(ae=p(ae)*2-ae),i(ce)>1&&(ce=p(ce)*2-ce);var Te=p(ae),Ce=p(ce),Ne=-Te*ae,Oe=-Ce*ce,He=Oe/Ne<1,ct=Rr(He?Oe:Ne,He?Ne:Oe),xt=ct[0],vt=ct[1],wt=o(vt);return He&&(xt=-b-xt),[Te*(a(v(xt)*wt,-v(vt))+_),Ce*k(o(xt)*wt)]};function ur(ae,ce){if(ce===b)return[0,0];var Te=v(ce),Ce=Te*Te,Ne=Ce*Ce,Oe=1+Ne,He=1+3*Ne,ct=1-Ne,xt=k(1/F(Oe)),vt=ct+Ce*Oe*xt,wt=(1-Te)/vt,Pt=F(wt),Jt=wt*Oe,cr=F(Jt),Nr=Pt*ct,zi,Rn;if(ae===0)return[0,-(Nr+Ce*cr)];var fo=o(ce),Xo=1/fo,Bo=2*Te*fo,fs=(-3*Ce+xt*He)*Bo,cs=(-vt*fo-(1-Te)*fs)/(vt*vt),Ns=.5*cs/Pt,zl=ct*Ns-2*Ce*Pt*Bo,Rs=Ce*Oe*cs+wt*He*Bo,Nl=-Xo*Bo,ul=-Xo*Rs,cl=-2*Xo*zl,vf=4*ae/_,wf;if(ae>.222*_||ce<_/4&&ae>.175*_){if(zi=(Nr+Ce*F(Jt*(1+Ne)-Nr*Nr))/(1+Ne),ae>_/4)return[zi,zi];var _u=zi,wu=.5*zi;zi=.5*(wu+_u),Rn=50;do{var ju=F(Jt-zi*zi),Au=zi*(cl+Nl*ju)+ul*k(zi/cr)-vf;if(!Au)break;Au<0?wu=zi:_u=zi,zi=.5*(wu+_u)}while(i(_u-wu)>m&&--Rn>0)}else{zi=m,Rn=25;do{var ku=zi*zi,Af=F(Jt-ku),mf=cl+Nl*Af,ef=zi*mf+ul*k(zi/cr)-vf,Nf=mf+(ul-Nl*ku)/Af;zi-=wf=Af?ef/Nf:0}while(i(wf)>m&&--Rn>0)}return[zi,-Nr-Ce*F(Jt-zi*zi)]}function Rr(ae,ce){for(var Te=0,Ce=1,Ne=.5,Oe=50;;){var He=Ne*Ne,ct=F(Ne),xt=k(1/F(1+He)),vt=1-He+Ne*(1+He)*xt,wt=(1-ct)/vt,Pt=F(wt),Jt=wt*(1+He),cr=Pt*(1-He),Nr=Jt-ae*ae,zi=F(Nr),Rn=ce+cr+Ne*zi;if(i(Ce-Te)0?Te=Ne:Ce=Ne,Ne=.5*(Te+Ce)}if(!Oe)return null;var fo=k(ct),Xo=o(fo),Bo=1/Xo,fs=2*ct*Xo,cs=(-3*Ne+xt*(1+3*He))*fs,Ns=(-vt*Xo-(1-ct)*cs)/(vt*vt),zl=.5*Ns/Pt,Rs=(1-He)*zl-2*Ne*Pt*fs,Nl=-2*Bo*Rs,ul=-Bo*fs,cl=-Bo*(Ne*(1+He)*Ns+wt*(1+3*He)*fs);return[_/4*(ae*(Nl+ul*zi)+cl*k(ae/F(Jt))),fo]}function Br(){return t.geoProjection(lr(Ct)).scale(239.75)}function Vr(ae,ce,Te){var Ce,Ne,Oe;return ae?(Ce=gi(ae,Te),ce?(Ne=gi(ce,1-Te),Oe=Ne[1]*Ne[1]+Te*Ce[0]*Ce[0]*Ne[0]*Ne[0],[[Ce[0]*Ne[2]/Oe,Ce[1]*Ce[2]*Ne[0]*Ne[1]/Oe],[Ce[1]*Ne[1]/Oe,-Ce[0]*Ce[2]*Ne[0]*Ne[2]/Oe],[Ce[2]*Ne[1]*Ne[2]/Oe,-Te*Ce[0]*Ce[1]*Ne[0]/Oe]]):[[Ce[0],0],[Ce[1],0],[Ce[2],0]]):(Ne=gi(ce,1-Te),[[0,Ne[0]/Ne[1]],[1/Ne[1],0],[Ne[2]/Ne[1],0]])}function gi(ae,ce){var Te,Ce,Ne,Oe,He;if(ce=1-m)return Te=(1-ce)/4,Ce=L(ae),Oe=P(ae),Ne=1/Ce,He=Ce*I(ae),[Oe+Te*(He-ae)/(Ce*Ce),Ne-Te*Oe*Ne*(He-ae),Ne+Te*Oe*Ne*(He+ae),2*n(s(ae))-b+Te*(He-ae)/Ce];var ct=[1,0,0,0,0,0,0,0,0],xt=[F(ce),0,0,0,0,0,0,0,0],vt=0;for(Ce=F(1-ce),He=1;i(xt[vt]/ct[vt])>m&&vt<8;)Te=ct[vt++],xt[vt]=(Te-Ce)/2,ct[vt]=(Te+Ce)/2,Ce=F(Te*Ce),He*=2;Ne=He*ct[vt]*ae;do Oe=xt[vt]*v(Ce=Ne)/ct[vt],Ne=(k(Oe)+Ne)/2;while(--vt);return[v(Ne),Oe=o(Ne),Oe/o(Ne-Ce),Ne]}function ui(ae,ce,Te){var Ce=i(ae),Ne=i(ce),Oe=I(Ne);if(Ce){var He=1/v(Ce),ct=1/(y(Ce)*y(Ce)),xt=-(ct+Te*(Oe*Oe*He*He)-1+Te),vt=(Te-1)*ct,wt=(-xt+F(xt*xt-4*vt))/2;return[ei(n(1/F(wt)),Te)*p(ae),ei(n(F((wt/ct-1)/Te)),1-Te)*p(ce)]}return[0,ei(n(Oe),1-Te)*p(ce)]}function ei(ae,ce){if(!ce)return ae;if(ce===1)return u(y(ae/2+M));for(var Te=1,Ce=F(1-ce),Ne=F(ce),Oe=0;i(Ne)>m;Oe++){if(ae%_){var He=n(Ce*y(ae)/Te);He<0&&(He+=_),ae+=He+~~(ae/_)*_}else ae+=ae;Ne=(Te+Ce)/2,Ce=F(Te*Ce),Ne=((Te=Ne)-Ce)/2}return ae/(h(2,Oe)*Te)}function Gi(ae,ce){var Te=(T-1)/(T+1),Ce=F(1-Te*Te),Ne=ei(b,Ce*Ce),Oe=-1,He=u(y(_/4+i(ce)/2)),ct=s(Oe*He)/F(Te),xt=un(ct*o(Oe*ae),ct*v(Oe*ae)),vt=ui(xt[0],xt[1],Ce*Ce);return[-vt[1],(ce>=0?1:-1)*(.5*Ne-vt[0])]}function un(ae,ce){var Te=ae*ae,Ce=ce+1,Ne=1-Te-ce*ce;return[.5*((ae>=0?b:-b)-a(Ne,2*ae)),-.25*u(Ne*Ne+4*Te)+.5*u(Ce*Ce+Te)]}function Tt(ae,ce){var Te=ce[0]*ce[0]+ce[1]*ce[1];return[(ae[0]*ce[0]+ae[1]*ce[1])/Te,(ae[1]*ce[0]-ae[0]*ce[1])/Te]}Gi.invert=function(ae,ce){var Te=(T-1)/(T+1),Ce=F(1-Te*Te),Ne=ei(b,Ce*Ce),Oe=-1,He=Vr(.5*Ne-ce,-ae,Ce*Ce),ct=Tt(He[0],He[1]),xt=a(ct[1],ct[0])/Oe;return[xt,2*n(s(.5/Oe*u(Te*ct[0]*ct[0]+Te*ct[1]*ct[1])))-b]};function wi(){return t.geoProjection(lr(Gi)).scale(151.496)}function kn(ae){var ce=v(ae),Te=o(ae),Ce=ii(ae);Ce.invert=ii(-ae);function Ne(Oe,He){var ct=Ce(Oe,He);Oe=ct[0],He=ct[1];var xt=v(He),vt=o(He),wt=o(Oe),Pt=D(ce*xt+Te*vt*wt),Jt=v(Pt),cr=i(Jt)>m?Pt/Jt:1;return[cr*Te*v(Oe),(i(Oe)>b?cr:-cr)*(ce*vt-Te*xt*wt)]}return Ne.invert=function(Oe,He){var ct=F(Oe*Oe+He*He),xt=-v(ct),vt=o(ct),wt=ct*vt,Pt=-He*xt,Jt=ct*ce,cr=F(wt*wt+Pt*Pt-Jt*Jt),Nr=a(wt*Jt+Pt*cr,Pt*Jt-wt*cr),zi=(ct>b?-1:1)*a(Oe*xt,ct*o(Nr)*vt+He*v(Nr)*xt);return Ce.invert(zi,Nr)},Ne}function ii(ae){var ce=v(ae),Te=o(ae);return function(Ce,Ne){var Oe=o(Ne),He=o(Ce)*Oe,ct=v(Ce)*Oe,xt=v(Ne);return[a(ct,He*Te-xt*ce),k(xt*Te+He*ce)]}}function Pr(){var ae=0,ce=t.geoProjectionMutator(kn),Te=ce(ae),Ce=Te.rotate,Ne=Te.stream,Oe=t.geoCircle();return Te.parallel=function(He){if(!arguments.length)return ae*E;var ct=Te.rotate();return ce(ae=He*S).rotate(ct)},Te.rotate=function(He){return arguments.length?(Ce.call(Te,[He[0],He[1]-ae*E]),Oe.center([-He[0],-He[1]]),Te):(He=Ce.call(Te),He[1]+=ae*E,He)},Te.stream=function(He){return He=Ne(He),He.sphere=function(){He.polygonStart();var ct=.01,xt=Oe.radius(90-ct)().coordinates[0],vt=xt.length-1,wt=-1,Pt;for(He.lineStart();++wt=0;)He.point((Pt=xt[wt])[0],Pt[1]);He.lineEnd(),He.polygonEnd()},He},Te.scale(79.4187).parallel(45).clipAngle(180-.001)}var Wi=3,na=k(1-1/Wi)*E,yn=At(0);function $n(ae){var ce=na*S,Te=Ue(_,ce)[0]-Ue(-_,ce)[0],Ce=yn(0,ce)[1],Ne=Ue(0,ce)[1],Oe=A-Ne,He=g/ae,ct=4/g,xt=Ce+Oe*Oe*4/g;function vt(wt,Pt){var Jt,cr=i(Pt);if(cr>ce){var Nr=c(ae-1,f(0,l((wt+_)/He)));wt+=_*(ae-1)/ae-Nr*He,Jt=Ue(wt,cr),Jt[0]=Jt[0]*g/Te-g*(ae-1)/(2*ae)+Nr*g/ae,Jt[1]=Ce+(Jt[1]-Ne)*4*Oe/g,Pt<0&&(Jt[1]=-Jt[1])}else Jt=yn(wt,Pt);return Jt[0]*=ct,Jt[1]/=xt,Jt}return vt.invert=function(wt,Pt){wt/=ct,Pt*=xt;var Jt=i(Pt);if(Jt>Ce){var cr=c(ae-1,f(0,l((wt+_)/He)));wt=(wt+_*(ae-1)/ae-cr*He)*Te/g;var Nr=Ue.invert(wt,.25*(Jt-Ce)*g/Oe+Ne);return Nr[0]-=_*(ae-1)/ae-cr*He,Pt<0&&(Nr[1]=-Nr[1]),Nr}return yn.invert(wt,Pt)},vt}function $i(ae,ce){return[ae,ce&1?90-m:na]}function en(ae,ce){return[ae,ce&1?-90+m:-na]}function _r(ae){return[ae[0]*(1-m),ae[1]]}function Zr(ae){var ce=[].concat(r.range(-180,180+ae/2,ae).map($i),r.range(180,-180-ae/2,-ae).map(en));return{type:"Polygon",coordinates:[ae===180?ce.map(_r):ce]}}function fi(){var ae=4,ce=t.geoProjectionMutator($n),Te=ce(ae),Ce=Te.stream;return Te.lobes=function(Ne){return arguments.length?ce(ae=+Ne):ae},Te.stream=function(Ne){var Oe=Te.rotate(),He=Ce(Ne),ct=(Te.rotate([0,0]),Ce(Ne));return Te.rotate(Oe),He.sphere=function(){t.geoStream(Zr(180/ae),ct)},He},Te.scale(239.75)}function aa(ae){var ce=1+ae,Te=v(1/ce),Ce=k(Te),Ne=2*F(_/(Oe=_+4*Ce*ce)),Oe,He=.5*Ne*(ce+F(ae*(2+ae))),ct=ae*ae,xt=ce*ce;function vt(wt,Pt){var Jt=1-v(Pt),cr,Nr;if(Jt&&Jt<2){var zi=b-Pt,Rn=25,fo;do{var Xo=v(zi),Bo=o(zi),fs=Ce+a(Xo,ce-Bo),cs=1+xt-2*ce*Bo;zi-=fo=(zi-ct*Ce-ce*Xo+cs*fs-.5*Jt*Oe)/(2*ce*Xo*fs)}while(i(fo)>w&&--Rn>0);cr=Ne*F(cs),Nr=wt*fs/_}else cr=Ne*(ae+Jt),Nr=wt*Ce/_;return[cr*v(Nr),He-cr*o(Nr)]}return vt.invert=function(wt,Pt){var Jt=wt*wt+(Pt-=He)*Pt,cr=(1+xt-Jt/(Ne*Ne))/(2*ce),Nr=D(cr),zi=v(Nr),Rn=Ce+a(zi,ce-cr);return[k(wt/F(Jt))*_/Rn,k(1-2*(Nr-ct*Ce-ce*zi+(1+xt-2*ce*cr)*Rn)/Oe)]},vt}function ln(){var ae=1,ce=t.geoProjectionMutator(aa),Te=ce(ae);return Te.ratio=function(Ce){return arguments.length?ce(ae=+Ce):ae},Te.scale(167.774).center([0,18.67])}var ca=.7109889596207567,Kn=.0528035274542;function dn(ae,ce){return ce>-ca?(ae=Y(ae,ce),ae[1]+=Kn,ae):Ae(ae,ce)}dn.invert=function(ae,ce){return ce>-ca?Y.invert(ae,ce-Kn):Ae.invert(ae,ce)};function Ta(){return t.geoProjection(dn).rotate([-20,-55]).scale(164.263).center([0,-5.4036])}function rn(ae,ce){return i(ce)>ca?(ae=Y(ae,ce),ae[1]-=ce>0?Kn:-Kn,ae):Ae(ae,ce)}rn.invert=function(ae,ce){return i(ce)>ca?Y.invert(ae,ce+(ce>0?Kn:-Kn)):Ae.invert(ae,ce)};function Ai(){return t.geoProjection(rn).scale(152.63)}function nn(ae,ce,Te,Ce){var Ne=F(4*_/(2*Te+(1+ae-ce/2)*v(2*Te)+(ae+ce)/2*v(4*Te)+ce/2*v(6*Te))),Oe=F(Ce*v(Te)*F((1+ae*o(2*Te)+ce*o(4*Te))/(1+ae+ce))),He=Te*xt(1);function ct(Pt){return F(1+ae*o(2*Pt)+ce*o(4*Pt))}function xt(Pt){var Jt=Pt*Te;return(2*Jt+(1+ae-ce/2)*v(2*Jt)+(ae+ce)/2*v(4*Jt)+ce/2*v(6*Jt))/Te}function vt(Pt){return ct(Pt)*v(Pt)}var wt=function(Pt,Jt){var cr=Te*ke(xt,He*v(Jt)/Te,Jt/_);isNaN(cr)&&(cr=Te*p(Jt));var Nr=Ne*ct(cr);return[Nr*Oe*Pt/_*o(cr),Nr/Oe*v(cr)]};return wt.invert=function(Pt,Jt){var cr=ke(vt,Jt*Oe/Ne);return[Pt*_/(o(cr)*Ne*Oe*ct(cr)),k(Te*xt(cr/Te)/He)]},Te===0&&(Ne=F(Ce/_),wt=function(Pt,Jt){return[Pt*Ne,v(Jt)/Ne]},wt.invert=function(Pt,Jt){return[Pt/Ne,k(Jt*Ne)]}),wt}function Ti(){var ae=1,ce=0,Te=45*S,Ce=2,Ne=t.geoProjectionMutator(nn),Oe=Ne(ae,ce,Te,Ce);return Oe.a=function(He){return arguments.length?Ne(ae=+He,ce,Te,Ce):ae},Oe.b=function(He){return arguments.length?Ne(ae,ce=+He,Te,Ce):ce},Oe.psiMax=function(He){return arguments.length?Ne(ae,ce,Te=+He*S,Ce):Te*E},Oe.ratio=function(He){return arguments.length?Ne(ae,ce,Te,Ce=+He):Ce},Oe.scale(180.739)}function ea(ae,ce,Te,Ce,Ne,Oe,He,ct,xt,vt,wt){if(wt.nanEncountered)return NaN;var Pt,Jt,cr,Nr,zi,Rn,fo,Xo,Bo,fs;if(Pt=Te-ce,Jt=ae(ce+Pt*.25),cr=ae(Te-Pt*.25),isNaN(Jt)){wt.nanEncountered=!0;return}if(isNaN(cr)){wt.nanEncountered=!0;return}return Nr=Pt*(Ce+4*Jt+Ne)/12,zi=Pt*(Ne+4*cr+Oe)/12,Rn=Nr+zi,fs=(Rn-He)/15,vt>xt?(wt.maxDepthCount++,Rn+fs):Math.abs(fs)>1;do xt[Rn]>cr?zi=Rn:Nr=Rn,Rn=Nr+zi>>1;while(Rn>Nr);var fo=xt[Rn+1]-xt[Rn];return fo&&(fo=(cr-xt[Rn+1])/fo),(Rn+1+fo)/He}var Pt=2*wt(1)/_*Oe/Te,Jt=function(cr,Nr){var zi=wt(i(v(Nr))),Rn=Ce(zi)*cr;return zi/=Pt,[Rn,Nr>=0?zi:-zi]};return Jt.invert=function(cr,Nr){var zi;return Nr*=Pt,i(Nr)<1&&(zi=p(Nr)*k(Ne(i(Nr))*Oe)),[cr/Ce(i(Nr)),zi]},Jt}function Fn(){var ae=0,ce=2.5,Te=1.183136,Ce=t.geoProjectionMutator(pi),Ne=Ce(ae,ce,Te);return Ne.alpha=function(Oe){return arguments.length?Ce(ae=+Oe,ce,Te):ae},Ne.k=function(Oe){return arguments.length?Ce(ae,ce=+Oe,Te):ce},Ne.gamma=function(Oe){return arguments.length?Ce(ae,ce,Te=+Oe):Te},Ne.scale(152.63)}function Pa(ae,ce){return i(ae[0]-ce[0])=0;--xt)Te=ae[1][xt],Ce=Te[0][0],Ne=Te[0][1],Oe=Te[1][1],He=Te[2][0],ct=Te[2][1],ce.push(pr([[He-m,ct-m],[He-m,Oe+m],[Ce+m,Oe+m],[Ce+m,Ne-m]],30));return{type:"Polygon",coordinates:[r.merge(ce)]}}function Ki(ae,ce,Te){var Ce,Ne;function Oe(xt,vt){for(var wt=vt<0?-1:1,Pt=ce[+(vt<0)],Jt=0,cr=Pt.length-1;JtPt[Jt][2][0];++Jt);var Nr=ae(xt-Pt[Jt][1][0],vt);return Nr[0]+=ae(Pt[Jt][1][0],wt*vt>wt*Pt[Jt][0][1]?Pt[Jt][0][1]:vt)[0],Nr}Te?Oe.invert=Te(Oe):ae.invert&&(Oe.invert=function(xt,vt){for(var wt=Ne[+(vt<0)],Pt=ce[+(vt<0)],Jt=0,cr=wt.length;JtNr&&(zi=cr,cr=Nr,Nr=zi),[[Pt,cr],[Jt,Nr]]})}),He):ce.map(function(vt){return vt.map(function(wt){return[[wt[0][0]*E,wt[0][1]*E],[wt[1][0]*E,wt[1][1]*E],[wt[2][0]*E,wt[2][1]*E]]})})},ce!=null&&He.lobes(ce),He}var Ui=[[[[-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 pa(){return Ki(ue,Ui).scale(160.857)}var Na=[[[[-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 on(){return Ki(rn,Na).scale(152.63)}var wn=[[[[-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 Ra(){return Ki(Y,wn).scale(169.529)}var ti=[[[[-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 Yn(){return Ki(Y,ti).scale(169.529).rotate([20,0])}var Ja=[[[[-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 ja(){return Ki(dn,Ja,le).rotate([-20,-55]).scale(164.263).center([0,-5.4036])}var ka=[[[[-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 Ci(){return Ki(Ae,ka).scale(152.63).rotate([-20,0])}function vn(ae,ce){return[3/g*ae*F(_*_/3-ce*ce),ce]}vn.invert=function(ae,ce){return[g/3*ae/F(_*_/3-ce*ce),ce]};function Va(){return t.geoProjection(vn).scale(158.837)}function Hi(ae){function ce(Te,Ce){if(i(i(Ce)-b)2)return null;Te/=2,Ce/=2;var Oe=Te*Te,He=Ce*Ce,ct=2*Ce/(1+Oe+He);return ct=h((1+ct)/(1-ct),1/ae),[a(2*Te,1-Oe-He)/ae,k((ct-1)/(ct+1))]},ce}function zr(){var ae=.5,ce=t.geoProjectionMutator(Hi),Te=ce(ae);return Te.spacing=function(Ce){return arguments.length?ce(ae=+Ce):ae},Te.scale(124.75)}var ni=_/T;function bn(ae,ce){return[ae*(1+F(o(ce)))/2,ce/(o(ce/2)*o(ae/6))]}bn.invert=function(ae,ce){var Te=i(ae),Ce=i(ce),Ne=m,Oe=b;Cem||i(Rn)>m)&&--Ne>0);return Ne&&[Te,Ce]};function mr(){return t.geoProjection(vi).scale(139.98)}function Mi(ae,ce){return[v(ae)/o(ce),y(ce)*o(ae)]}Mi.invert=function(ae,ce){var Te=ae*ae,Ce=ce*ce,Ne=Ce+1,Oe=Te+Ne,He=ae?x*F((Oe-F(Oe*Oe-4*Te))/Te):1/F(Ne);return[k(ae*He),p(ce)*D(He)]};function Cn(){return t.geoProjection(Mi).scale(144.049).clipAngle(90-.001)}function jr(ae){var ce=o(ae),Te=y(M+ae/2);function Ce(Ne,Oe){var He=Oe-ae,ct=i(He)=0;)wt=ae[vt],Pt=wt[0]+ct*(cr=Pt)-xt*Jt,Jt=wt[1]+ct*Jt+xt*cr;return Pt=ct*(cr=Pt)-xt*Jt,Jt=ct*Jt+xt*cr,[Pt,Jt]}return Te.invert=function(Ce,Ne){var Oe=20,He=Ce,ct=Ne;do{for(var xt=ce,vt=ae[xt],wt=vt[0],Pt=vt[1],Jt=0,cr=0,Nr;--xt>=0;)vt=ae[xt],Jt=wt+He*(Nr=Jt)-ct*cr,cr=Pt+He*cr+ct*Nr,wt=vt[0]+He*(Nr=wt)-ct*Pt,Pt=vt[1]+He*Pt+ct*Nr;Jt=wt+He*(Nr=Jt)-ct*cr,cr=Pt+He*cr+ct*Nr,wt=He*(Nr=wt)-ct*Pt-Ce,Pt=He*Pt+ct*Nr-Ne;var zi=Jt*Jt+cr*cr,Rn,fo;He-=Rn=(wt*Jt+Pt*cr)/zi,ct-=fo=(Pt*Jt-wt*cr)/zi}while(i(Rn)+i(fo)>m*m&&--Oe>0);if(Oe){var Xo=F(He*He+ct*ct),Bo=2*n(Xo*.5),fs=v(Bo);return[a(He*fs,Xo*o(Bo)),Xo?k(ct*fs/Xo):0]}},Te}var On=[[.9972523,0],[.0052513,-.0041175],[.0074606,.0048125],[-.0153783,-.1968253],[.0636871,-.1408027],[.3660976,-.2937382]],Nn=[[.98879,0],[0,0],[-.050909,0],[0,0],[.075528,0]],ia=[[.984299,0],[.0211642,.0037608],[-.1036018,-.0575102],[-.0329095,-.0320119],[.0499471,.1223335],[.026046,.0899805],[7388e-7,-.1435792],[.0075848,-.1334108],[-.0216473,.0776645],[-.0225161,.0853673]],Qr=[[.9245,0],[0,0],[.01943,0]],Di=[[.721316,0],[0,0],[-.00881625,-.00617325]];function fn(){return Pi(On,[152,-64]).scale(1400).center([-160.908,62.4864]).clipAngle(30).angle(7.8)}function Dn(){return Pi(Nn,[95,-38]).scale(1e3).clipAngle(55).center([-96.5563,38.8675])}function Vn(){return Pi(ia,[120,-45]).scale(359.513).clipAngle(55).center([-117.474,53.0628])}function mn(){return Pi(Qr,[-20,-18]).scale(209.091).center([20,16.7214]).clipAngle(82)}function qr(){return Pi(Di,[165,10]).scale(250).clipAngle(130).center([-165,-10])}function Pi(ae,ce){var Te=t.geoProjection(qi(ae)).rotate(ce).clipAngle(90),Ce=t.geoRotation(ce),Ne=Te.center;return delete Te.rotate,Te.center=function(Oe){return arguments.length?Ne(Ce(Oe)):Ce.invert(Ne())},Te}var Ua=F(6),yi=F(7);function Ma(ae,ce){var Te=k(7*v(ce)/(3*Ua));return[Ua*ae*(2*o(2*Te/3)-1)/yi,9*v(Te/3)/yi]}Ma.invert=function(ae,ce){var Te=3*k(ce*yi/9);return[ae*yi/(Ua*(2*o(2*Te/3)-1)),k(v(Te)*3*Ua/7)]};function Ba(){return t.geoProjection(Ma).scale(164.859)}function Bn(ae,ce){for(var Te=(1+x)*v(ce),Ce=ce,Ne=0,Oe;Ne<25&&(Ce-=Oe=(v(Ce/2)+v(Ce)-Te)/(.5*o(Ce/2)+o(Ce)),!(i(Oe)w&&--Ce>0);return Oe=Te*Te,He=Oe*Oe,ct=Oe*He,[ae/(.84719-.13063*Oe+ct*ct*(-.04515+.05494*Oe-.02326*He+.00331*ct)),Te]};function Ii(){return t.geoProjection(Un).scale(175.295)}function gr(ae,ce){return[ae*(1+o(ce))/2,2*(ce-y(ce/2))]}gr.invert=function(ae,ce){for(var Te=ce/2,Ce=0,Ne=1/0;Ce<10&&i(Ne)>m;++Ce){var Oe=o(ce/2);ce-=Ne=(ce-y(ce/2)-Te)/(1-.5/(Oe*Oe))}return[2*ae/(1+o(ce)),ce]};function Ln(){return t.geoProjection(gr).scale(152.63)}var xn=[[[[-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 da(){return Ki(de(1/0),xn).rotate([20,0]).scale(152.63)}function Si(ae,ce){var Te=v(ce),Ce=o(ce),Ne=p(ae);if(ae===0||i(ce)===b)return[0,ce];if(ce===0)return[ae,0];if(i(ae)===b)return[ae*Ce,b*Te];var Oe=_/(2*ae)-2*ae/_,He=2*ce/_,ct=(1-He*He)/(Te-He),xt=Oe*Oe,vt=ct*ct,wt=1+xt/vt,Pt=1+vt/xt,Jt=(Oe*Te/ct-Oe/2)/wt,cr=(vt*Te/xt+ct/2)/Pt,Nr=Jt*Jt+Ce*Ce/wt,zi=cr*cr-(vt*Te*Te/xt+ct*Te-1)/Pt;return[b*(Jt+F(Nr)*Ne),b*(cr+F(zi<0?0:zi)*p(-ce*Oe)*Ne)]}Si.invert=function(ae,ce){ae/=b,ce/=b;var Te=ae*ae,Ce=ce*ce,Ne=Te+Ce,Oe=_*_;return[ae?(Ne-1+F((1-Ne)*(1-Ne)+4*Te))/(2*ae)*b:0,ke(function(He){return Ne*(_*v(He)-2*He)*_+4*He*He*(ce-v(He))+2*_*He-Oe*ce},0)]};function Kr(){return t.geoProjection(Si).scale(127.267)}var Gn=1.0148,to=.23185,Jn=-.14499,ro=.02406,mo=Gn,Oa=5*to,Ei=7*Jn,co=9*ro,Pn=1.790857183;function Fa(ae,ce){var Te=ce*ce;return[ae,ce*(Gn+Te*Te*(to+Te*(Jn+ro*Te)))]}Fa.invert=function(ae,ce){ce>Pn?ce=Pn:ce<-Pn&&(ce=-Pn);var Te=ce,Ce;do{var Ne=Te*Te;Te-=Ce=(Te*(Gn+Ne*Ne*(to+Ne*(Jn+ro*Ne)))-ce)/(mo+Ne*Ne*(Oa+Ne*(Ei+co*Ne)))}while(i(Ce)>m);return[ae,Te]};function oa(){return t.geoProjection(Fa).scale(139.319)}function Hn(ae,ce){if(i(ce)m&&--Ne>0);return He=y(Ce),[(i(ce)=0;)if(Ce=ce[ct],Te[0]===Ce[0]&&Te[1]===Ce[1]){if(Oe)return[Oe,Te];Oe=Te}}}function Zi(ae){for(var ce=ae.length,Te=[],Ce=ae[ce-1],Ne=0;Ne0?[-Ce[0],0]:[180-Ce[0],180])};var ce=ya.map(function(Te){return{face:Te,project:ae(Te)}});return[-1,0,0,1,0,1,4,5].forEach(function(Te,Ce){var Ne=ce[Te];Ne&&(Ne.children||(Ne.children=[])).push(ce[Ce])}),Ga(ce[0],function(Te,Ce){return ce[Te<-_/2?Ce<0?6:4:Te<0?Ce<0?2:0:Te<_/2?Ce<0?3:1:Ce<0?7:5]}).angle(-30).scale(121.906).center([0,48.5904])}function Ia(ae){ae=ae||function(He){var ct=He.length===6?t.geoCentroid({type:"MultiPoint",coordinates:He}):He[0];return t.geoGnomonic().scale(1).translate([0,0]).rotate([-ct[0],-ct[1]])};var ce=ya.map(function(He){for(var ct=He.map(la),xt=ct.length,vt=ct[xt-1],wt,Pt=[],Jt=0;JtCe^cr>Ce&&Te<(Jt-vt)*(Ce-wt)/(cr-wt)+vt&&(Ne=!Ne)}return Ne}function Eo(ae,ce){var Te=ce.stream,Ce;if(!Te)throw new Error("invalid projection");switch(ae&&ae.type){case"Feature":Ce=To;break;case"FeatureCollection":Ce=Mn;break;default:Ce=Co;break}return Ce(ae,Te)}function Mn(ae,ce){return{type:"FeatureCollection",features:ae.features.map(function(Te){return To(Te,ce)})}}function To(ae,ce){return{type:"Feature",id:ae.id,properties:ae.properties,geometry:Co(ae.geometry,ce)}}function Ya(ae,ce){return{type:"GeometryCollection",geometries:ae.geometries.map(function(Te){return Co(Te,ce)})}}function Co(ae,ce){if(!ae)return null;if(ae.type==="GeometryCollection")return Ya(ae,ce);var Te;switch(ae.type){case"Point":Te=Zn;break;case"MultiPoint":Te=Zn;break;case"LineString":Te=Ha;break;case"MultiLineString":Te=Ha;break;case"Polygon":Te=Wa;break;case"MultiPolygon":Te=Wa;break;case"Sphere":Te=Wa;break;default:return null}return t.geoStream(ae,ce(Te)),Te.result()}var Ri=[],qa=[],Zn={point:function(ae,ce){Ri.push([ae,ce])},result:function(){var ae=Ri.length?Ri.length<2?{type:"Point",coordinates:Ri[0]}:{type:"MultiPoint",coordinates:Ri}:null;return Ri=[],ae}},Ha={lineStart:ga,point:function(ae,ce){Ri.push([ae,ce])},lineEnd:function(){Ri.length&&(qa.push(Ri),Ri=[])},result:function(){var ae=qa.length?qa.length<2?{type:"LineString",coordinates:qa[0]}:{type:"MultiLineString",coordinates:qa}:null;return qa=[],ae}},Wa={polygonStart:ga,lineStart:ga,point:function(ae,ce){Ri.push([ae,ce])},lineEnd:function(){var ae=Ri.length;if(ae){do Ri.push(Ri[0].slice());while(++ae<4);qa.push(Ri),Ri=[]}},polygonEnd:ga,result:function(){if(!qa.length)return null;var ae=[],ce=[];return qa.forEach(function(Te){go(Te)?ae.push([Te]):ce.push(Te)}),ce.forEach(function(Te){var Ce=Te[0];ae.some(function(Ne){if(eo(Ne[0],Ce))return Ne.push(Te),!0})||ae.push([Te])}),qa=[],ae.length?ae.length>1?{type:"MultiPolygon",coordinates:ae}:{type:"Polygon",coordinates:ae[0]}:null}};function $a(ae){var ce=ae(b,0)[0]-ae(-b,0)[0];function Te(Ce,Ne){var Oe=i(Ce)0?Ce-_:Ce+_,Ne),ct=(He[0]-He[1])*x,xt=(He[0]+He[1])*x;if(Oe)return[ct,xt];var vt=ce*x,wt=ct>0^xt>0?-1:1;return[wt*ct-p(xt)*vt,wt*xt-p(ct)*vt]}return ae.invert&&(Te.invert=function(Ce,Ne){var Oe=(Ce+Ne)*x,He=(Ne-Ce)*x,ct=i(Oe)<.5*ce&&i(He)<.5*ce;if(!ct){var xt=ce*x,vt=Oe>0^He>0?-1:1,wt=-vt*Ce+(He>0?1:-1)*xt,Pt=-vt*Ne+(Oe>0?1:-1)*xt;Oe=(-wt-Pt)*x,He=(wt-Pt)*x}var Jt=ae.invert(Oe,He);return ct||(Jt[0]+=Oe>0?_:-_),Jt}),t.geoProjection(Te).rotate([-90,-90,45]).clipAngle(180-.001)}function Fe(){return $a(Ct).scale(176.423)}function Ve(){return $a(Gi).scale(111.48)}function lt(ae,ce){if(!(0<=(ce=+ce)&&ce<=20))throw new Error("invalid digits");function Te(vt){var wt=vt.length,Pt=2,Jt=new Array(wt);for(Jt[0]=+vt[0].toFixed(ce),Jt[1]=+vt[1].toFixed(ce);Pt2||cr[0]!=wt[0]||cr[1]!=wt[1])&&(Pt.push(cr),wt=cr)}return Pt.length===1&&vt.length>1&&Pt.push(Te(vt[vt.length-1])),Pt}function Oe(vt){return vt.map(Ne)}function He(vt){if(vt==null)return vt;var wt;switch(vt.type){case"GeometryCollection":wt={type:"GeometryCollection",geometries:vt.geometries.map(He)};break;case"Point":wt={type:"Point",coordinates:Te(vt.coordinates)};break;case"MultiPoint":wt={type:vt.type,coordinates:Ce(vt.coordinates)};break;case"LineString":wt={type:vt.type,coordinates:Ne(vt.coordinates)};break;case"MultiLineString":case"Polygon":wt={type:vt.type,coordinates:Oe(vt.coordinates)};break;case"MultiPolygon":wt={type:"MultiPolygon",coordinates:vt.coordinates.map(Oe)};break;default:return vt}return vt.bbox!=null&&(wt.bbox=vt.bbox),wt}function ct(vt){var wt={type:"Feature",properties:vt.properties,geometry:He(vt.geometry)};return vt.id!=null&&(wt.id=vt.id),vt.bbox!=null&&(wt.bbox=vt.bbox),wt}if(ae!=null)switch(ae.type){case"Feature":return ct(ae);case"FeatureCollection":{var xt={type:"FeatureCollection",features:ae.features.map(ct)};return ae.bbox!=null&&(xt.bbox=ae.bbox),xt}default:return He(ae)}return ae}function it(ae){var ce=v(ae);function Te(Ce,Ne){var Oe=ce?y(Ce*ce/2)/ce:Ce/2;if(!Ne)return[2*Oe,-ae];var He=2*n(Oe*v(Ne)),ct=1/y(Ne);return[v(He)*ct,Ne+(1-o(He))*ct-ae]}return Te.invert=function(Ce,Ne){if(i(Ne+=ae)m&&--ct>0);var Jt=Ce*(vt=y(He)),cr=y(i(Ne)0?b:-b)*(xt+Ne*(wt-He)/2+Ne*Ne*(wt-2*xt+He)/2)]}qt.invert=function(ae,ce){var Te=ce/b,Ce=Te*90,Ne=c(18,i(Ce/5)),Oe=f(0,l(Ne));do{var He=Rt[Oe][1],ct=Rt[Oe+1][1],xt=Rt[c(19,Oe+2)][1],vt=xt-He,wt=xt-2*ct+He,Pt=2*(i(Te)-ct)/vt,Jt=wt/vt,cr=Pt*(1-Jt*Pt*(1-2*Jt*Pt));if(cr>=0||Oe===1){Ce=(ce>=0?5:-5)*(cr+Ne);var Nr=50,zi;do Ne=c(18,i(Ce)/5),Oe=l(Ne),cr=Ne-Oe,He=Rt[Oe][1],ct=Rt[Oe+1][1],xt=Rt[c(19,Oe+2)][1],Ce-=(zi=(ce>=0?b:-b)*(ct+cr*(xt-He)/2+cr*cr*(xt-2*ct+He)/2)-ce)*E;while(i(zi)>w&&--Nr>0);break}}while(--Oe>=0);var Rn=Rt[Oe][0],fo=Rt[Oe+1][0],Xo=Rt[c(19,Oe+2)][0];return[ae/(fo+cr*(Xo-Rn)/2+cr*cr*(Xo-2*fo+Rn)/2),Ce*S]};function Nt(){return t.geoProjection(qt).scale(152.63)}function ar(ae){function ce(Te,Ce){var Ne=o(Ce),Oe=(ae-1)/(ae-Ne*o(Te));return[Oe*Ne*v(Te),Oe*v(Ce)]}return ce.invert=function(Te,Ce){var Ne=Te*Te+Ce*Ce,Oe=F(Ne),He=(ae-F(1-Ne*(ae+1)/(ae-1)))/((ae-1)/Oe+Oe/(ae-1));return[a(Te*He,Oe*F(1-He*He)),Oe?k(Ce*He/Oe):0]},ce}function Ir(ae,ce){var Te=ar(ae);if(!ce)return Te;var Ce=o(ce),Ne=v(ce);function Oe(He,ct){var xt=Te(He,ct),vt=xt[1],wt=vt*Ne/(ae-1)+Ce;return[xt[0]*Ce/wt,vt/wt]}return Oe.invert=function(He,ct){var xt=(ae-1)/(ae-1-ct*Ne);return Te.invert(xt*He,xt*ct*Ce)},Oe}function $t(){var ae=2,ce=0,Te=t.geoProjectionMutator(Ir),Ce=Te(ae,ce);return Ce.distance=function(Ne){return arguments.length?Te(ae=+Ne,ce):ae},Ce.tilt=function(Ne){return arguments.length?Te(ae,ce=Ne*S):ce*E},Ce.scale(432.147).clipAngle(D(1/ae)*E-1e-6)}var Bt=1e-4,rr=1e4,Dr=-180,Ur=Dr+Bt,ai=180,ci=ai-Bt,li=-90,mi=li+Bt,xi=90,Ni=xi-Bt;function ua(ae){return ae.length>0}function xa(ae){return Math.floor(ae*rr)/rr}function ao(ae){return ae===li||ae===xi?[0,ae]:[Dr,xa(ae)]}function ho(ae){var ce=ae[0],Te=ae[1],Ce=!1;return ce<=Ur?(ce=Dr,Ce=!0):ce>=ci&&(ce=ai,Ce=!0),Te<=mi?(Te=li,Ce=!0):Te>=Ni&&(Te=xi,Ce=!0),Ce?[ce,Te]:ae}function Fo(ae){return ae.map(ho)}function ls(ae,ce,Te){for(var Ce=0,Ne=ae.length;Ce=ci||wt<=mi||wt>=Ni){Oe[He]=ho(xt);for(var Pt=He+1;PtUr&&crmi&&Nr=ct)break;Te.push({index:-1,polygon:ce,ring:Oe=Oe.slice(Pt-1)}),Oe[0]=ao(Oe[0][1]),He=-1,ct=Oe.length}}}}function Io(ae){var ce,Te=ae.length,Ce={},Ne={},Oe,He,ct,xt,vt;for(ce=0;ce0?_-ct:ct)*E],vt=t.geoProjection(ae(He)).rotate(xt),wt=t.geoRotation(xt),Pt=vt.center;return delete vt.rotate,vt.center=function(Jt){return arguments.length?Pt(wt(Jt)):wt.invert(Pt())},vt.clipAngle(90)}function oo(ae){var ce=o(ae);function Te(Ce,Ne){var Oe=t.geoGnomonicRaw(Ce,Ne);return Oe[0]*=ce,Oe}return Te.invert=function(Ce,Ne){return t.geoGnomonicRaw.invert(Ce/ce,Ne)},Te}function xo(){return bo([-158,21.5],[-77,39]).clipAngle(60).scale(400)}function bo(ae,ce){return ko(oo,ae,ce)}function so(ae){if(!(ae*=2))return t.geoAzimuthalEquidistantRaw;var ce=-ae/2,Te=-ce,Ce=ae*ae,Ne=y(Te),Oe=.5/v(Te);function He(ct,xt){var vt=D(o(xt)*o(ct-ce)),wt=D(o(xt)*o(ct-Te)),Pt=xt<0?-1:1;return vt*=vt,wt*=wt,[(vt-wt)/(2*ae),Pt*F(4*Ce*wt-(Ce-vt+wt)*(Ce-vt+wt))/(2*ae)]}return He.invert=function(ct,xt){var vt=xt*xt,wt=o(F(vt+(Jt=ct+ce)*Jt)),Pt=o(F(vt+(Jt=ct+Te)*Jt)),Jt,cr;return[a(cr=wt-Pt,Jt=(wt+Pt)*Ne),(xt<0?-1:1)*D(F(Jt*Jt+cr*cr)*Oe)]},He}function Yo(){return Uo([-158,21.5],[-77,39]).clipAngle(130).scale(122.571)}function Uo(ae,ce){return ko(so,ae,ce)}function es(ae,ce){if(i(ce)m&&--ct>0);return[p(ae)*(F(Ne*Ne+4)+Ne)*_/4,b*He]};function as(){return t.geoProjection(_s).scale(127.16)}function Es(ae,ce,Te,Ce,Ne){function Oe(He,ct){var xt=Te*v(Ce*ct),vt=F(1-xt*xt),wt=F(2/(1+vt*o(He*=Ne)));return[ae*vt*wt*v(He),ce*xt*wt]}return Oe.invert=function(He,ct){var xt=He/ae,vt=ct/ce,wt=F(xt*xt+vt*vt),Pt=2*k(wt/2);return[a(He*y(Pt),ae*wt)/Ne,wt&&k(ct*v(Pt)/(ce*Te*wt))/Ce]},Oe}function Mo(ae,ce,Te,Ce){var Ne=_/3;ae=f(ae,m),ce=f(ce,m),ae=c(ae,b),ce=c(ce,_-m),Te=f(Te,0),Te=c(Te,100-m),Ce=f(Ce,m);var Oe=Te/100+1,He=Ce/100,ct=D(Oe*o(Ne))/Ne,xt=v(ae)/v(ct*b),vt=ce/_,wt=F(He*v(ae/2)/v(ce/2)),Pt=wt/F(vt*xt*ct),Jt=1/(wt*F(vt*xt*ct));return Es(Pt,Jt,xt,ct,vt)}function Go(){var ae=65*S,ce=60*S,Te=20,Ce=200,Ne=t.geoProjectionMutator(Mo),Oe=Ne(ae,ce,Te,Ce);return Oe.poleline=function(He){return arguments.length?Ne(ae=+He*S,ce,Te,Ce):ae*E},Oe.parallels=function(He){return arguments.length?Ne(ae,ce=+He*S,Te,Ce):ce*E},Oe.inflation=function(He){return arguments.length?Ne(ae,ce,Te=+He,Ce):Te},Oe.ratio=function(He){return arguments.length?Ne(ae,ce,Te,Ce=+He):Ce},Oe.scale(163.775)}function qs(){return Go().poleline(65).parallels(60).inflation(0).ratio(200).scale(172.633)}var Ts=4*_+3*F(3),Dl=2*F(2*_*F(3)/Ts),_l=oe(Dl*F(3)/_,Dl,Ts/6);function wl(){return t.geoProjection(_l).scale(176.84)}function vl(ae,ce){return[ae*F(1-3*ce*ce/(_*_)),ce]}vl.invert=function(ae,ce){return[ae/F(1-3*ce*ce/(_*_)),ce]};function Al(){return t.geoProjection(vl).scale(152.63)}function ml(ae,ce){var Te=o(ce),Ce=o(ae)*Te,Ne=1-Ce,Oe=o(ae=a(v(ae)*Te,-v(ce))),He=v(ae);return Te=F(1-Ce*Ce),[He*Te-Oe*Ne,-Oe*Te-He*Ne]}ml.invert=function(ae,ce){var Te=(ae*ae+ce*ce)/-2,Ce=F(-Te*(2+Te)),Ne=ce*Te+ae*Ce,Oe=ae*Te-ce*Ce,He=F(Oe*Oe+Ne*Ne);return[a(Ce*Ne,He*(1+Te)),He?-k(Ce*Oe/He):0]};function Hl(){return t.geoProjection(ml).rotate([0,-90,45]).scale(124.75).clipAngle(180-.001)}function Tl(ae,ce){var Te=X(ae,ce);return[(Te[0]+ae/b)/2,(Te[1]+ce)/2]}Tl.invert=function(ae,ce){var Te=ae,Ce=ce,Ne=25;do{var Oe=o(Ce),He=v(Ce),ct=v(2*Ce),xt=He*He,vt=Oe*Oe,wt=v(Te),Pt=o(Te/2),Jt=v(Te/2),cr=Jt*Jt,Nr=1-vt*Pt*Pt,zi=Nr?D(Oe*Pt)*F(Rn=1/Nr):Rn=0,Rn,fo=.5*(2*zi*Oe*Jt+Te/b)-ae,Xo=.5*(zi*He+Ce)-ce,Bo=.5*Rn*(vt*cr+zi*Oe*Pt*xt)+.5/b,fs=Rn*(wt*ct/4-zi*He*Jt),cs=.125*Rn*(ct*Jt-zi*He*vt*wt),Ns=.5*Rn*(xt*Pt+zi*cr*Oe)+.5,zl=fs*cs-Ns*Bo,Rs=(Xo*fs-fo*Ns)/zl,Nl=(fo*cs-Xo*Bo)/zl;Te-=Rs,Ce-=Nl}while((i(Rs)>m||i(Nl)>m)&&--Ne>0);return[Te,Ce]};function yl(){return t.geoProjection(Tl).scale(158.837)}e.geoNaturalEarth=t.geoNaturalEarth1,e.geoNaturalEarthRaw=t.geoNaturalEarth1Raw,e.geoAiry=W,e.geoAiryRaw=O,e.geoAitoff=Z,e.geoAitoffRaw=X,e.geoArmadillo=q,e.geoArmadilloRaw=H,e.geoAugust=N,e.geoAugustRaw=Q,e.geoBaker=$,e.geoBakerRaw=j,e.geoBerghaus=re,e.geoBerghausRaw=ie,e.geoBertin1953=Ee,e.geoBertin1953Raw=te,e.geoBoggs=_e,e.geoBoggsRaw=ue,e.geoBonne=fe,e.geoBonneRaw=pe,e.geoBottomley=We,e.geoBottomleyRaw=Re,e.geoBromley=tt,e.geoBromleyRaw=Ke,e.geoChamberlin=De,e.geoChamberlinRaw=Be,e.geoChamberlinAfrica=Le,e.geoCollignon=Pe,e.geoCollignonRaw=Ue,e.geoCraig=Ie,e.geoCraigRaw=Se,e.geoCraster=_t,e.geoCrasterRaw=ut,e.geoCylindricalEqualArea=Gt,e.geoCylindricalEqualAreaRaw=At,e.geoCylindricalStereographic=yt,e.geoCylindricalStereographicRaw=Dt,e.geoEckert1=tr,e.geoEckert1Raw=Mt,e.geoEckert2=nt,e.geoEckert2Raw=Ye,e.geoEckert3=dt,e.geoEckert3Raw=st,e.geoEckert4=ft,e.geoEckert4Raw=rt,e.geoEckert5=Et,e.geoEckert5Raw=Ft,e.geoEckert6=xr,e.geoEckert6Raw=er,e.geoEisenlohr=Yr,e.geoEisenlohrRaw=fr,e.geoFahey=Tr,e.geoFaheyRaw=ri,e.geoFoucaut=Gr,e.geoFoucautRaw=Mr,e.geoFoucautSinusoidal=Fi,e.geoFoucautSinusoidalRaw=_i,e.geoGilbert=Ut,e.geoGingery=Er,e.geoGingeryRaw=Wt,e.geoGinzburg4=Li,e.geoGinzburg4Raw=di,e.geoGinzburg5=Kt,e.geoGinzburg5Raw=nr,e.geoGinzburg6=Xe,e.geoGinzburg6Raw=Me,e.geoGinzburg8=Qe,e.geoGinzburg8Raw=$e,e.geoGinzburg9=bt,e.geoGinzburg9Raw=gt,e.geoGringorten=Br,e.geoGringortenRaw=Ct,e.geoGuyou=wi,e.geoGuyouRaw=Gi,e.geoHammer=ze,e.geoHammerRaw=de,e.geoHammerRetroazimuthal=Pr,e.geoHammerRetroazimuthalRaw=kn,e.geoHealpix=fi,e.geoHealpixRaw=$n,e.geoHill=ln,e.geoHillRaw=aa,e.geoHomolosine=Ai,e.geoHomolosineRaw=rn,e.geoHufnagel=Ti,e.geoHufnagelRaw=nn,e.geoHyperelliptical=Fn,e.geoHyperellipticalRaw=pi,e.geoInterrupt=Ki,e.geoInterruptedBoggs=pa,e.geoInterruptedHomolosine=on,e.geoInterruptedMollweide=Ra,e.geoInterruptedMollweideHemispheres=Yn,e.geoInterruptedSinuMollweide=ja,e.geoInterruptedSinusoidal=Ci,e.geoKavrayskiy7=Va,e.geoKavrayskiy7Raw=vn,e.geoLagrange=zr,e.geoLagrangeRaw=Hi,e.geoLarrivee=Bi,e.geoLarriveeRaw=bn,e.geoLaskowski=mr,e.geoLaskowskiRaw=vi,e.geoLittrow=Cn,e.geoLittrowRaw=Mi,e.geoLoximuthal=Xn,e.geoLoximuthalRaw=jr,e.geoMiller=ta,e.geoMillerRaw=an,e.geoModifiedStereographic=Pi,e.geoModifiedStereographicRaw=qi,e.geoModifiedStereographicAlaska=fn,e.geoModifiedStereographicGs48=Dn,e.geoModifiedStereographicGs50=Vn,e.geoModifiedStereographicMiller=mn,e.geoModifiedStereographicLee=qr,e.geoMollweide=ne,e.geoMollweideRaw=Y,e.geoMtFlatPolarParabolic=Ba,e.geoMtFlatPolarParabolicRaw=Ma,e.geoMtFlatPolarQuartic=ji,e.geoMtFlatPolarQuarticRaw=Bn,e.geoMtFlatPolarSinusoidal=jn,e.geoMtFlatPolarSinusoidalRaw=gn,e.geoNaturalEarth2=Ii,e.geoNaturalEarth2Raw=Un,e.geoNellHammer=Ln,e.geoNellHammerRaw=gr,e.geoInterruptedQuarticAuthalic=da,e.geoNicolosi=Kr,e.geoNicolosiRaw=Si,e.geoPatterson=oa,e.geoPattersonRaw=Fa,e.geoPolyconic=va,e.geoPolyconicRaw=Hn,e.geoPolyhedral=Ga,e.geoPolyhedralButterfly=Qn,e.geoPolyhedralCollignon=zn,e.geoPolyhedralWaterman=Ia,e.geoProject=Eo,e.geoGringortenQuincuncial=Fe,e.geoPeirceQuincuncial=Ve,e.geoPierceQuincuncial=Ve,e.geoQuantize=lt,e.geoQuincuncial=$a,e.geoRectangularPolyconic=mt,e.geoRectangularPolyconicRaw=it,e.geoRobinson=Nt,e.geoRobinsonRaw=qt,e.geoSatellite=$t,e.geoSatelliteRaw=Ir,e.geoSinuMollweide=Ta,e.geoSinuMollweideRaw=dn,e.geoSinusoidal=se,e.geoSinusoidalRaw=Ae,e.geoStitch=us,e.geoTimes=io,e.geoTimesRaw=Vi,e.geoTwoPointAzimuthal=bo,e.geoTwoPointAzimuthalRaw=oo,e.geoTwoPointAzimuthalUsa=xo,e.geoTwoPointEquidistant=Uo,e.geoTwoPointEquidistantRaw=so,e.geoTwoPointEquidistantUsa=Yo,e.geoVanDerGrinten=jo,e.geoVanDerGrintenRaw=es,e.geoVanDerGrinten2=Ks,e.geoVanDerGrinten2Raw=Qo,e.geoVanDerGrinten3=Ds,e.geoVanDerGrinten3Raw=Ws,e.geoVanDerGrinten4=as,e.geoVanDerGrinten4Raw=_s,e.geoWagner=Go,e.geoWagner7=qs,e.geoWagnerRaw=Mo,e.geoWagner4=wl,e.geoWagner4Raw=_l,e.geoWagner6=Al,e.geoWagner6Raw=vl,e.geoWiechel=Hl,e.geoWiechelRaw=ml,e.geoWinkel3=yl,e.geoWinkel3Raw=Tl,Object.defineProperty(e,"__esModule",{value:!0})}))});var SGe=K((YQr,MGe)=>{"use strict";var cc=No(),mee=St(),zur=Ho(),X4=Math.PI/180,q_=180/Math.PI,gee={cursor:"pointer"},xee={cursor:"auto"};function Iur(e,t){var r=e.projection,i;return t._isScoped?i=Rur:t._isClipped?i=qur:i=Bur,i(e,r)}MGe.exports=Iur;function bee(e,t){return cc.behavior.zoom().translate(t.translate()).scaleExtent(t.scaleExtent()).scale(t.scale())}function _ee(e,t,r){var i=e.id,n=e.graphDiv,a=n.layout,o=a[i],s=n._fullLayout,l=s[i],u={},f={};function c(h,d){u[i+"."+h]=mee.nestedProperty(o,h).get(),zur.call("_storeDirectGUIEdit",a,s._preGUI,u);var p=mee.nestedProperty(l,h);p.get()!==d&&(p.set(d),mee.nestedProperty(o,h).set(d),f[i+"."+h]=d)}r(c),c("projection.scale",t.scale()/e.fitScale),c("fitbounds",!1),n.emit("plotly_relayout",f)}function Rur(e,t){var r=bee(e,t);function i(){cc.select(this).style(gee)}function n(){t.scale(cc.event.scale).translate(cc.event.translate),e.render(!0);var s=t.invert(e.midPt);e.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":t.scale()/e.fitScale,"geo.center.lon":s[0],"geo.center.lat":s[1]})}function a(s){var l=t.invert(e.midPt);s("center.lon",l[0]),s("center.lat",l[1])}function o(){cc.select(this).style(xee),_ee(e,t,a)}return r.on("zoomstart",i).on("zoom",n).on("zoomend",o),r}function Bur(e,t){var r=bee(e,t),i=2,n,a,o,s,l,u,f,c,h;function d(_){return t.invert(_)}function p(_){var b=d(_);if(!b)return!0;var M=t(b);return Math.abs(M[0]-_[0])>i||Math.abs(M[1]-_[1])>i}function v(){cc.select(this).style(gee);let{x:_,y:b,width:M,height:x}=this.getBBox();n=cc.event.sourceEvent?cc.mouse(this):[_+M/2,b+x/2],a=t.rotate(),o=t.translate(),s=a,l=d(n)}function y(){let{x:_,y:b,width:M,height:x}=this.getBBox();if(u=cc.event.sourceEvent?cc.mouse(this):[_+M/2,b+x/2],p(n)){r.scale(t.scale()),r.translate(t.translate());return}t.scale(cc.event.scale),t.translate([o[0],cc.event.translate[1]]),l?d(u)&&(c=d(u),f=[s[0]+(c[0]-l[0]),a[1],a[2]],t.rotate(f),s=f):(n=u,l=d(n)),h=!0,e.render(!0);var T=t.rotate(),A=t.invert(e.midPt);e.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":t.scale()/e.fitScale,"geo.center.lon":A[0],"geo.center.lat":A[1],"geo.projection.rotation.lon":-T[0]})}function m(){cc.select(this).style(xee),h&&_ee(e,t,w)}function w(_){var b=t.rotate(),M=t.invert(e.midPt);_("projection.rotation.lon",-b[0]),_("center.lon",M[0]),_("center.lat",M[1])}return r.on("zoomstart",v).on("zoom",y).on("zoomend",m),r}function qur(e,t){var r={r:t.rotate(),k:t.scale()},i=bee(e,t),n=Wur(i,"zoomstart","zoom","zoomend"),a=0,o=i.on,s;i.on("zoomstart",function(){cc.select(this).style(gee);let{x:h,y:d,width:p,height:v}=this.getBBox(),y=cc.event.sourceEvent?cc.mouse(this):[h+p/2,d+v/2],m=t.rotate(),w=m,_=t.translate(),b=Our(m);s=qR(t,y),o.call(i,"zoom",function(){let{x:M,y:x,width:T,height:A}=this.getBBox(),g=cc.event.sourceEvent?cc.mouse(this):[M+T/2,x+A/2];if(t.scale(r.k=cc.event.scale),!s)y=g,s=qR(t,y);else if(qR(t,g)){t.rotate(m).translate(_);var E=qR(t,g),S=Vur(s,E),C=Gur(Nur(b,S)),k=r.r=Uur(C,s,w);(!isFinite(k[0])||!isFinite(k[1])||!isFinite(k[2]))&&(k=w),t.rotate(k),w=k}u(n.of(this,arguments))}),l(n.of(this,arguments))}).on("zoomend",function(){cc.select(this).style(xee),o.call(i,"zoom",null),f(n.of(this,arguments)),_ee(e,t,c)}).on("zoom.redraw",function(){e.render(!0);var h=t.rotate();e.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":t.scale()/e.fitScale,"geo.projection.rotation.lon":-h[0],"geo.projection.rotation.lat":-h[1]})});function l(h){a++||h({type:"zoomstart"})}function u(h){h({type:"zoom"})}function f(h){--a||h({type:"zoomend"})}function c(h){var d=t.rotate();h("projection.rotation.lon",-d[0]),h("projection.rotation.lat",-d[1])}return cc.rebind(i,n,"on")}function qR(e,t){var r=e.invert(t);return r&&isFinite(r[0])&&isFinite(r[1])&&Hur(r)}function Our(e){var t=.5*e[0]*X4,r=.5*e[1]*X4,i=.5*e[2]*X4,n=Math.sin(t),a=Math.cos(t),o=Math.sin(r),s=Math.cos(r),l=Math.sin(i),u=Math.cos(i);return[a*s*u+n*o*l,n*s*u-a*o*l,a*o*u+n*s*l,a*s*l-n*o*u]}function Nur(e,t){var r=e[0],i=e[1],n=e[2],a=e[3],o=t[0],s=t[1],l=t[2],u=t[3];return[r*o-i*s-n*l-a*u,r*s+i*o+n*u-a*l,r*l-i*u+n*o+a*s,r*u+i*l-n*s+a*o]}function Vur(e,t){if(!(!e||!t)){var r=jur(e,t),i=Math.sqrt(TGe(r,r)),n=.5*Math.acos(Math.max(-1,Math.min(1,TGe(e,t)))),a=Math.sin(n)/i;return i&&[Math.cos(n),r[2]*a,-r[1]*a,r[0]*a]}}function Uur(e,t,r){var i=yee(t,2,e[0]);i=yee(i,1,e[1]),i=yee(i,0,e[2]-r[2]);var n=t[0],a=t[1],o=t[2],s=i[0],l=i[1],u=i[2],f=Math.atan2(a,n)*q_,c=Math.sqrt(n*n+a*a),h,d;Math.abs(l)>c?(d=(l>0?90:-90)-f,h=0):(d=Math.asin(l/c)*q_-f,h=Math.sqrt(c*c-l*l));var p=180-d-2*f,v=(Math.atan2(u,s)-Math.atan2(o,h))*q_,y=(Math.atan2(u,s)-Math.atan2(o,-h))*q_,m=wGe(r[0],r[1],d,v),w=wGe(r[0],r[1],p,y);return m<=w?[d,v,r[2]]:[p,y,r[2]]}function wGe(e,t,r,i){var n=AGe(r-e),a=AGe(i-t);return Math.sqrt(n*n+a*a)}function AGe(e){return(e%360+540)%360-180}function yee(e,t,r){var i=r*X4,n=e.slice(),a=t===0?1:0,o=t===2?1:2,s=Math.cos(i),l=Math.sin(i);return n[a]=e[a]*s-e[o]*l,n[o]=e[o]*s+e[a]*l,n}function Gur(e){return[Math.atan2(2*(e[0]*e[1]+e[2]*e[3]),1-2*(e[1]*e[1]+e[2]*e[2]))*q_,Math.asin(Math.max(-1,Math.min(1,2*(e[0]*e[2]-e[3]*e[1]))))*q_,Math.atan2(2*(e[0]*e[3]+e[1]*e[2]),1-2*(e[2]*e[2]+e[3]*e[3]))*q_]}function Hur(e){var t=e[0]*X4,r=e[1]*X4,i=Math.cos(r);return[i*Math.cos(t),i*Math.sin(t),Math.sin(r)]}function TGe(e,t){for(var r=0,i=0,n=e.length;i{"use strict";var Em=No(),Tee=DR(),$ur=Tee.geoPath,Yur=Tee.geoDistance,Xur=_Ge(),Zur=Ho(),qE=St(),Kur=qE.strTranslate,OR=wo(),BE=Is(),EGe=Gf(),Jur=yf(),Aee=Cs(),{concatExtremes:Qur,getAutoRange:kGe,makePadFn:CGe}=$v(),wee=U0(),efr=fh().prepSelect,tfr=fh().clearOutline,rfr=fh().selectOnClick,ifr=SGe(),gd=(LE(),or(FE)),Mee=Ny(),{unwrapLonRange:nfr}=Mee,FGe=xR(),afr=ZQ().feature;function LGe(e){this.id=e.id,this.graphDiv=e.graphDiv,this.container=e.container,this.topojsonURL=e.topojsonURL,this.isStatic=e.staticPlot,this.topojsonName=null,this.topojson=null,this.projection=null,this.scope=null,this.viewInitial=null,this.fitScale=null,this.bounds=null,this.midPt=null,this.hasChoropleth=!1,this.traceHash={},this.layers={},this.basePaths={},this.dataPaths={},this.dataPoints={},this.clipDef=null,this.clipRect=null,this.bgRect=null,this.makeFramework()}var w1=LGe.prototype;PGe.exports=function(t){return new LGe(t)};w1.plot=function(e,t,r,i){var n=this;if(i)return n.update(e,t,!0);n._geoCalcData=e,n._fullLayout=t;var a=t[this.id],o=[],s=!1;for(var l in gd.layerNameToAdjective)if(l!=="frame"&&a["show"+l]){s=!0;break}for(var u=!1,f=0;f0&&o._module.calcGeoJSON(a,t)}if(!r){var s=this.updateProjection(e,t);if(s)return;(!this.viewInitial||this.scope!==i.scope)&&this.saveViewInitial(i)}this.scope=i.scope,this.updateBaseLayers(t,i),this.updateDims(t,i),this.updateFx(t,i),Jur.generalUpdatePerTraceModule(this.graphDiv,this,e,i);var l=this.layers.frontplot.select(".scatterlayer");this.dataPoints.point=l.selectAll(".point"),this.dataPoints.text=l.selectAll("text"),this.dataPaths.line=l.selectAll(".js-line");var u=this.layers.backplot.select(".choroplethlayer");this.dataPaths.choropleth=u.selectAll("path"),this._render()};w1.updateProjection=function(e,t){var r=this.graphDiv,i=t[this.id],n=t._size,a=i.domain,o=i.projection,s=i.lonaxis,l=i.lataxis,u=s._ax,f=l._ax,c=this.projection=ofr(i),h=[[n.l+n.w*a.x[0],n.t+n.h*(1-a.y[1])],[n.l+n.w*a.x[1],n.t+n.h*(1-a.y[0])]],d=i.center||{},p=o.rotation||{},v=s.range||[],y=l.range||[];if(i.fitbounds){u._length=h[1][0]-h[0][0],f._length=h[1][1]-h[0][1],u.range=kGe(r,u),f.range=kGe(r,f);let F=[];for(let H of e){let q=H[0].trace;q.visible===!0&&q._module.fitCoords&&F.push(q._module.fitCoords(H,i))}let P=Qur(r,u),I=P.min.reduce((H,{val:q})=>Math.min(H,q),1/0),z=P.max.reduce((H,{val:q})=>Math.max(H,q),-1/0)-I,B=Mee.boundsOfCoords(F.flat()),[O,,W]=B||[],X=W-O;if(!!B&&(z>360||z<360&&XMath.max($,H(ie)),0),N=P.max.reduce(($,ie)=>Math.max($,q(ie)),0),U=u._length-Q-N,J=U>u._length/10?X*u._length/U:X,j=(O+W)/2;u.range=[j-J/2,j+J/2]}var m=(u.range[0]+u.range[1])/2,w=(f.range[0]+f.range[1])/2;if(i._isScoped)d={lon:m,lat:w};else if(i._isClipped){d={lon:m,lat:w},p={lon:m,lat:w,roll:p.roll};var _=o.type,b=gd.lonaxisSpan[_]/2||180,M=gd.lataxisSpan[_]/2||90;v=[m-b,m+b],y=[w-M,w+M]}else d={lon:m,lat:w},p={lon:m,lat:p.lat,roll:p.roll}}c.center([d.lon-p.lon,d.lat-p.lat]).rotate([-p.lon,-p.lat,p.roll]).parallels(o.parallels);var x=DGe(v,y);c.fitExtent(h,x);var T=this.bounds=c.getBounds(x),A=this.fitScale=c.scale(),g=c.translate();if(c.scaleExtent=()=>{var I;let{minscale:F}=o,P=(I=o.maxscale)!=null?I:1/0;return[A*Math.min(F,P),A*Math.max(F,P)]},i.fitbounds){var E=c.getBounds(DGe(u.range,f.range)),S=Math.min((T[1][0]-T[0][0])/(E[1][0]-E[0][0]),(T[1][1]-T[0][1])/(E[1][1]-E[0][1]));isFinite(S)?c.scale(S*A):qE.warn("Something went wrong during"+this.id+"fitbounds computations.")}else c.scale(o.scale*A);var C=this.midPt=[(T[0][0]+T[1][0])/2,(T[0][1]+T[1][1])/2];if(c.translate([g[0]+(C[0]-g[0]),g[1]+(C[1]-g[1])]).clipExtent(T),i._isAlbersUsa){var k=c([d.lon,d.lat]);if(k){var D=c.translate();c.translate([D[0]-(k[0]-D[0]),D[1]-(k[1]-D[1])])}}};w1.updateBaseLayers=function(e,t){var r=this,i=r.topojson,n=r.layers,a=r.basePaths;function o(h){return h==="lonaxis"||h==="lataxis"}function s(h){return!!gd.lineLayers[h]}function l(h){return!!gd.fillLayers[h]}var u=this.hasChoropleth?gd.layersForChoropleth:gd.layers,f=u.filter(function(h){return s(h)||l(h)?t["show"+h]:o(h)?t[h].showgrid:!0}),c=r.framework.selectAll(".layer").data(f,String);c.exit().each(function(h){delete n[h],delete a[h],Em.select(this).remove()}),c.enter().append("g").attr("class",function(h){return"layer "+h}).each(function(h){var d=n[h]=Em.select(this);h==="bg"?r.bgRect=d.append("rect").style("pointer-events","all"):o(h)?a[h]=d.append("path").style("fill","none"):h==="backplot"?d.append("g").classed("choroplethlayer",!0):h==="frontplot"?d.append("g").classed("scatterlayer",!0):s(h)?a[h]=d.append("path").style("fill","none").style("stroke-miterlimit",2):l(h)&&(a[h]=d.append("path").style("stroke","none"))}),c.order(),c.each(function(h){var d=a[h],p=gd.layerNameToAdjective[h];h==="frame"?d.datum(gd.sphereSVG):s(h)||l(h)?d.datum(afr(i,i.objects[h])):o(h)&&d.datum(sfr(h,t,e)).call(OR.stroke,t[h].gridcolor).call(BE.dashLine,t[h].griddash,t[h].gridwidth),s(h)?d.call(OR.stroke,t[p+"color"]).call(BE.dashLine,"",t[p+"width"]):l(h)&&d.call(OR.fill,t[p+"color"])})};w1.updateDims=function(e,t){var r=this.bounds,i=(t.framewidth||0)/2,n=r[0][0]-i,a=r[0][1]-i,o=r[1][0]-n+i,s=r[1][1]-a+i;BE.setRect(this.clipRect,n,a,o,s),this.bgRect.call(BE.setRect,n,a,o,s).call(OR.fill,t.bgcolor),this.xaxis._offset=n,this.xaxis._length=o,this.yaxis._offset=a,this.yaxis._length=s};w1.updateFx=function(e,t){var r=this,i=r.graphDiv,n=r.bgRect,a=e.dragmode,o=e.clickmode;if(r.isStatic)return;function s(){var c=r.viewInitial,h={};for(var d in c)h[r.id+"."+d]=c[d];Zur.call("_guiRelayout",i,h),i.emit("plotly_doubleclick",null)}function l(c){return r.projection.invert([c[0]+r.xaxis._offset,c[1]+r.yaxis._offset])}var u=function(c,h){if(h.isRect){var d=c.range={};d[r.id]=[l([h.xmin,h.ymin]),l([h.xmax,h.ymax])]}else{var p=c.lassoPoints={};p[r.id]=h.map(l)}},f={element:r.bgRect.node(),gd:i,plotinfo:{id:r.id,xaxis:r.xaxis,yaxis:r.yaxis,fillRangeItems:u},xaxes:[r.xaxis],yaxes:[r.yaxis],subplot:r.id,clickFn:function(c){c===2&&tfr(i)}};if(a==="pan"){n.node().onmousedown=null;let c=ifr(r,t);if(n.call(c),!Em.event){let h=r.projection.scale(),[d,p]=r.projection.scaleExtent();(hp)&&c.event(n)}n.on("dblclick.zoom",s),i._context._scrollZoom.geo||n.on("wheel.zoom",null)}else(a==="select"||a==="lasso")&&(n.on(".zoom",null),f.prepFn=function(c,h,d){efr(c,h,d,f,a)},wee.init(f));n.on("mousemove",function(){var c=r.projection.invert(qE.getPositionFromD3Event());if(!c)return wee.unhover(i,Em.event);r.xaxis.p2c=function(){return c[0]},r.yaxis.p2c=function(){return c[1]},EGe.hover(i,Em.event,r.id)}),n.on("mouseout",function(){i._dragging||wee.unhover(i,Em.event)}),n.on("click",function(){a!=="select"&&a!=="lasso"&&(o.indexOf("select")>-1&&rfr(Em.event,i,[r.xaxis],[r.yaxis],r.id,f),o.indexOf("event")>-1&&EGe.click(i,Em.event))})};w1.makeFramework=function(){var e=this,t=e.graphDiv,r=t._fullLayout,i="clip"+r._uid+e.id;e.clipDef=r._clips.append("clipPath").attr("id",i),e.clipRect=e.clipDef.append("rect"),e.framework=Em.select(e.container).append("g").attr("class","geo "+e.id).call(BE.setClipUrl,i,t),e.project=function(n){var a=e.projection(n);return a?[a[0]-e.xaxis._offset,a[1]-e.yaxis._offset]:[null,null]},e.xaxis={_id:"x",c2p:function(n){return e.project(n)[0]}},e.yaxis={_id:"y",c2p:function(n){return e.project(n)[1]}},e.mockAxis={type:"linear",showexponent:"all",exponentformat:"B"},Aee.setConvert(e.mockAxis,r)};w1.saveViewInitial=function(e){var t=e.center||{},r=e.projection,i=r.rotation||{};this.viewInitial={fitbounds:e.fitbounds,"projection.scale":r.scale};var n;e._isScoped?n={"center.lon":t.lon,"center.lat":t.lat}:e._isClipped?n={"projection.rotation.lon":i.lon,"projection.rotation.lat":i.lat,"center.lon":t.lon,"center.lat":t.lat}:n={"center.lon":t.lon,"center.lat":t.lat,"projection.rotation.lon":i.lon},qE.extendFlat(this.viewInitial,n)};w1.render=function(e){this._hasMarkerAngles&&e?this.plot(this._geoCalcData,this._fullLayout,[],!0):this._render()};w1._render=function(){var e=this.projection,t=e.getPath(),r;function i(a){var o=e(a.lonlat);return o?Kur(o[0],o[1]):null}function n(a){return e.isLonLatOverEdges(a.lonlat)?"none":null}for(r in this.basePaths)this.basePaths[r].attr("d",t);for(r in this.dataPaths)this.dataPaths[r].attr("d",function(a){return t(a.geojson)});for(r in this.dataPoints)this.dataPoints[r].attr("display",n).attr("transform",i)};function ofr(e){var t=e.projection,r=t.type,i=gd.projNames[r];i="geo"+qE.titleCase(i);for(var n=Tee[i]||Xur[i],a=n(),o=e._isSatellite?Math.acos(1/t.distance)*180/Math.PI:e._isClipped?gd.lonaxisSpan[r]/2:null,s=["center","rotate","parallels","clipExtent"],l=function(c){return c?a:[]},u=0;up}else return!1},a.getPath=function(){return $ur().projection(a)},a.getBounds=function(c){return a.getPath().bounds(c)},a.precision(gd.precision),e._isSatellite&&a.tilt(t.tilt).distance(t.distance),o&&a.clipAngle(o-gd.clipPad),a}function sfr(e,t,r){var i=1e-6,n=2.5,a=t[e],o=gd.scopeDefaults[t.scope],s,l,u;e==="lonaxis"?(s=o.lonaxisRange,l=o.lataxisRange,u=function(w,_){return[w,_]}):e==="lataxis"&&(s=o.lataxisRange,l=o.lonaxisRange,u=function(w,_){return[_,w]});var f={type:"linear",range:[s[0],s[1]-i],tick0:a.tick0,dtick:a.dtick};Aee.setConvert(f,r);var c=Aee.calcTicks(f);!t.isScoped&&e==="lonaxis"&&c.pop();for(var h=c.length,d=new Array(h),p=0;p{"use strict";var K4=Gc(),lfr=kf().attributes,ufr=gh().dash,Z4=(LE(),or(FE)),ffr=Ef().overrideAll,IGe=(eb(),or(Qx)).default,RGe={range:{valType:"info_array",items:[{valType:"number"},{valType:"number"}]},showgrid:{valType:"boolean",dflt:!1},tick0:{valType:"number",dflt:0},dtick:{valType:"number"},gridcolor:{valType:"color",dflt:K4.lightLine},gridwidth:{valType:"number",min:0,dflt:1},griddash:ufr},cfr=BGe.exports=ffr({domain:lfr({name:"geo"},{}),fitbounds:{valType:"enumerated",values:[!1,"locations","geojson"],dflt:"locations",editType:"plot"},resolution:{valType:"enumerated",values:[110,50],dflt:110,coerceNumber:!0},scope:{valType:"enumerated",values:IGe(Z4.scopeDefaults),dflt:"world"},projection:{type:{valType:"enumerated",values:IGe(Z4.projNames)},rotation:{lon:{valType:"number"},lat:{valType:"number"},roll:{valType:"number"}},tilt:{valType:"number",dflt:0},distance:{valType:"number",min:1.001,dflt:2},parallels:{valType:"info_array",items:[{valType:"number"},{valType:"number"}]},scale:{valType:"number",min:0,dflt:1},minscale:{valType:"number",min:0,dflt:0},maxscale:{valType:"number",min:0,dflt:null}},center:{lon:{valType:"number"},lat:{valType:"number"}},visible:{valType:"boolean",dflt:!0},showcoastlines:{valType:"boolean"},coastlinecolor:{valType:"color",dflt:K4.defaultLine},coastlinewidth:{valType:"number",min:0,dflt:1},showland:{valType:"boolean",dflt:!1},landcolor:{valType:"color",dflt:Z4.landColor},showocean:{valType:"boolean",dflt:!1},oceancolor:{valType:"color",dflt:Z4.waterColor},showlakes:{valType:"boolean",dflt:!1},lakecolor:{valType:"color",dflt:Z4.waterColor},showrivers:{valType:"boolean",dflt:!1},rivercolor:{valType:"color",dflt:Z4.waterColor},riverwidth:{valType:"number",min:0,dflt:1},showcountries:{valType:"boolean"},countrycolor:{valType:"color",dflt:K4.defaultLine},countrywidth:{valType:"number",min:0,dflt:1},showsubunits:{valType:"boolean"},subunitcolor:{valType:"color",dflt:K4.defaultLine},subunitwidth:{valType:"number",min:0,dflt:1},showframe:{valType:"boolean"},framecolor:{valType:"color",dflt:K4.defaultLine},framewidth:{valType:"number",min:0,dflt:1},bgcolor:{valType:"color",dflt:K4.background},lonaxis:RGe,lataxis:RGe},"plot","from-root");cfr.uirevision={valType:"any",editType:"none"}});var NGe=K((KQr,OGe)=>{"use strict";var NR=St(),hfr=Jb(),dfr=Zh().getSubplotData,{unwrapLonRange:pfr}=Ny(),OE=(LE(),or(FE)),vfr=See(),qGe=OE.axesNames;OGe.exports=function(t,r,i){hfr(t,r,i,{type:"geo",attributes:vfr,handleDefaults:mfr,fullData:i,partition:"y"})};function mfr(e,t,r,i){var n=dfr(i.fullData,"geo",i.id),a=n.map(function(B){return B.index}),o=r("resolution"),s=r("scope"),l=OE.scopeDefaults[s],u=r("projection.type",l.projType),f=t._isAlbersUsa=u==="albers usa";f&&(s=t.scope="usa");var c=t._isScoped=s!=="world",h=t._isSatellite=u==="satellite",d=t._isConic=u.indexOf("conic")!==-1||u==="albers",p=t._isClipped=!!OE.lonaxisSpan[u];if(e.visible===!1){var v=NR.extendDeep({},t._template);v.showcoastlines=!1,v.showcountries=!1,v.showframe=!1,v.showlakes=!1,v.showland=!1,v.showocean=!1,v.showrivers=!1,v.showsubunits=!1,v.lonaxis&&(v.lonaxis.showgrid=!1),v.lataxis&&(v.lataxis.showgrid=!1),t._template=v}for(var y=r("visible"),m,w=0;wQ[N]!=null)||OE.fitboundsIncompatible.has(u)?t.fitbounds=!1:H.forEach(({dst:Q,key:N})=>Q&&(Q[N]=null))}}});var Eee=K((JQr,GGe)=>{"use strict";var yfr=Zh().getSubplotCalcData,gfr=St().counterRegex,xfr=zGe(),km="geo",VGe=gfr(km),UGe={};UGe[km]={valType:"subplotid",dflt:km,editType:"calc"};function bfr(e){for(var t=e._fullLayout,r=e.calcdata,i=t._subplots[km],n=0;n{"use strict";HGe.exports={attributes:Y4(),supplyDefaults:yUe(),colorbar:e0(),formatLabels:bUe(),calc:XQ(),calcGeoJSON:IR().calcGeoJSON,fitCoords:IR().fitCoords,plot:IR().plot,style:hee(),styleOnSelect:hd().styleOnSelect,hoverPoints:hGe(),eventData:pGe(),selectPoints:yGe(),moduleType:"trace",name:"scattergeo",basePlotModule:Eee(),categories:["geo","symbols","showLegend","scatter-like"],meta:{}}});var $Ge=K((eei,WGe)=>{"use strict";WGe.exports=jGe()});var NE=K((tei,ZGe)=>{"use strict";var{hovertemplateAttrs:Afr,templatefallbackAttrs:Tfr}=gu(),H2=Y4(),Mfr=Wu(),YGe=Tu(),Sfr=Gc().defaultLine,G2=Os().extendFlat,XGe=H2.marker.line;ZGe.exports=G2({locations:{valType:"data_array",editType:"calc"},locationmode:H2.locationmode,z:{valType:"data_array",editType:"calc"},geojson:G2({},H2.geojson,{}),featureidkey:H2.featureidkey,text:G2({},H2.text,{}),hovertext:G2({},H2.hovertext,{}),marker:{line:{color:G2({},XGe.color,{dflt:Sfr}),width:G2({},XGe.width,{dflt:1}),editType:"calc"},opacity:{valType:"number",arrayOk:!0,min:0,max:1,dflt:1,editType:"style"},editType:"calc"},selected:{marker:{opacity:H2.selected.marker.opacity,editType:"plot"},editType:"plot"},unselected:{marker:{opacity:H2.unselected.marker.opacity,editType:"plot"},editType:"plot"},hoverinfo:G2({},YGe.hoverinfo,{editType:"calc",flags:["location","z","text","name"]}),hovertemplate:Afr(),hovertemplatefallback:Tfr(),showlegend:G2({},YGe.showlegend,{dflt:!1})},Mfr("",{cLetter:"z",editTypeOverride:"calc"}))});var JGe=K((rei,KGe)=>{"use strict";var VR=St(),Efr=xh(),kfr=NE();KGe.exports=function(t,r,i,n){function a(h,d){return VR.coerce(t,r,kfr,h,d)}var o=a("locations"),s=a("z");if(!(o&&o.length&&VR.isArrayOrTypedArray(s)&&s.length)){r.visible=!1;return}r._length=Math.min(o.length,s.length);var l=a("geojson"),u;(typeof l=="string"&&l!==""||VR.isPlainObject(l))&&(u="geojson-id");var f=a("locationmode",u);f==="geojson-id"&&a("featureidkey"),a("text"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback");var c=a("marker.line.width");c&&a("marker.line.color"),a("marker.opacity"),Efr(t,r,n,a,{prefix:"",cLetter:"z"}),VR.coerceSelectionMarkerOpacity(r,a)}});var kee=K((iei,tHe)=>{"use strict";var QGe=Hs(),Cfr=(Il(),or(Bl)).BADNUM,Dfr=T0(),Ffr=fm(),Lfr=op();function eHe(e){return e&&typeof e=="string"}tHe.exports=function(t,r){var i=r._length,n=new Array(i),a;r.geojson?a=function(f){return eHe(f)||QGe(f)}:a=eHe;for(var o=0;o{"use strict";var Pfr=No(),zfr=wo(),Cee=Is(),Ifr=gf();function Rfr(e,t){t&&rHe(e,t)}function rHe(e,t){var r=t[0].trace,i=t[0].node3,n=i.selectAll(".choroplethlocation"),a=r.marker||{},o=a.line||{},s=Ifr.makeColorScaleFuncFromTrace(r);n.each(function(l){Pfr.select(this).attr("fill",s(l.z)).call(zfr.stroke,l.mlc||o.color).call(Cee.dashLine,"",l.mlw||o.width||0).style("opacity",a.opacity)}),Cee.selectedPointStyle(n,r)}function Bfr(e,t){var r=t[0].node3,i=t[0].trace;i.selectedpoints?Cee.selectedPointStyle(r.selectAll(".choroplethlocation"),i):rHe(e,t)}iHe.exports={style:Rfr,styleOnSelect:Bfr}});var GR=K((aei,oHe)=>{"use strict";var qfr=No(),nHe=St(),O_=Ny(),Ofr=xR().getTopojsonFeatures,aHe=$v().findExtremes,Nfr=UR().style;function Vfr(e,t,r){var i=t.layers.backplot.select(".choroplethlayer");nHe.makeTraceGroups(i,r,"trace choropleth").each(function(n){var a=qfr.select(this),o=a.selectAll("path.choroplethlocation").data(nHe.identity);o.enter().append("path").classed("choroplethlocation",!0),o.exit().remove(),Nfr(e,n)})}function Ufr(e,t){var r=e[0].trace,i=t[r.geo],n=i._subplot,a=r.locationmode,o=r._length,s=a==="geojson-id"?O_.extractTraceFeature(e):Ofr(r,n.topojson);let l=O_.fitGeojsonBbox(r,i);for(var u=[],f=[],c=0;c{"use strict";var Hfr=Cs(),jfr=NE(),Wfr=St().fillText,{ANTIMERIDIAN_LON_SHIFT:$fr}=Ny();sHe.exports=function(t,r,i){var n=t.cd,a=n[0].trace,o=t.subplot,s,l,u,f,c=[r,i];let h=[r+$fr,i];for(l=0;l")}}});var Fee=K((sei,lHe)=>{"use strict";lHe.exports=function(t,r,i,n,a){t.location=r.location,t.z=r.z;var o=n[a];return o.fIn&&o.fIn.properties&&(t.properties=o.fIn.properties),t.ct=o.ct,t}});var Lee=K((lei,uHe)=>{"use strict";uHe.exports=function(t,r){var i=t.cd,n=t.xaxis,a=t.yaxis,o=[],s,l,u,f,c;if(r===!1)for(s=0;s{"use strict";fHe.exports={attributes:NE(),supplyDefaults:JGe(),colorbar:LA(),calc:kee(),calcGeoJSON:GR().calcGeoJSON,fitCoords:GR().fitCoords,plot:GR().plot,style:UR().style,styleOnSelect:UR().styleOnSelect,hoverPoints:Dee(),eventData:Fee(),selectPoints:Lee(),moduleType:"trace",name:"choropleth",basePlotModule:Eee(),categories:["geo","noOpacity","showLegend"],meta:{}}});var dHe=K((fei,hHe)=>{"use strict";hHe.exports=cHe()});var HR=K((cei,vHe)=>{"use strict";var Xfr=Ho(),gp=St(),Zfr=lA(),Kfr=Is();function Jfr(e,t,r,i){var n=e.cd,a=n[0].t,o=n[0].trace,s=e.xa,l=e.ya,u=a.x,f=a.y,c=s.c2p(t),h=l.c2p(r),d=e.distance,p;if(a.tree){var v=s.p2c(c-d),y=s.p2c(c+d),m=l.p2c(h-d),w=l.p2c(h+d);i==="x"?p=a.tree.range(Math.min(v,y),Math.min(l._rl[0],l._rl[1]),Math.max(v,y),Math.max(l._rl[0],l._rl[1])):p=a.tree.range(Math.min(v,y),Math.min(m,w),Math.max(v,y),Math.max(m,w))}else p=a.ids;var _,b,M,x,T,A,g,E,S,C=d;if(i==="x"){var k=!!o.xperiodalignment,D=!!o.yperiodalignment;for(T=0;T=Math.min(F,P)&&c<=Math.max(F,P)?0:1/0}if(A<=C){if(C=A,x=f[_],g=l.c2p(x)-h,D){var I=l.c2p(o._yStarts[_]),L=l.c2p(o._yEnds[_]);g=h>=Math.min(I,L)&&h<=Math.max(I,L)?0:1/0}S=Math.sqrt(A*A+g*g),b=p[T]}}}else for(T=0;Ticr,SYMBOL_SDF_SIZE:()=>ecr,SYMBOL_SIZE:()=>tcr,SYMBOL_STROKE:()=>rcr,TOO_MANY_POINTS:()=>Qfr});var Qfr,ecr,tcr,rcr,icr,V_=ps(()=>{"use strict";Qfr=1e5,ecr=200,tcr=20,rcr=1,icr={solid:[1],dot:[1,1],dash:[4,1],longdash:[8,1],dashdot:[4,1,1,1],longdashdot:[8,1,1,1]}});var VE=K((hei,xHe)=>{"use strict";var ncr=Tu(),acr=lf(),ocr=sm(),jf=Qf(),mHe=zf().axisHoverFormat,yHe=Wu(),scr=(eb(),or(Qx)).default,Pee=Os().extendFlat,lcr=Ef().overrideAll,ucr=(V_(),or(N_)).DASHES,gHe=jf.line,Vy=jf.marker,fcr=Vy.line,j2=xHe.exports=lcr({x:jf.x,x0:jf.x0,dx:jf.dx,y:jf.y,y0:jf.y0,dy:jf.dy,xperiod:jf.xperiod,yperiod:jf.yperiod,xperiod0:jf.xperiod0,yperiod0:jf.yperiod0,xperiodalignment:jf.xperiodalignment,yperiodalignment:jf.yperiodalignment,xhoverformat:mHe("x"),yhoverformat:mHe("y"),text:jf.text,hovertext:jf.hovertext,textposition:jf.textposition,textfont:acr({noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0,editType:"calc",colorEditType:"style",arrayOk:!0,noNumericWeightValues:!0,variantValues:["normal","small-caps"]}),mode:{valType:"flaglist",flags:["lines","markers","text"],extras:["none"]},line:{color:gHe.color,width:gHe.width,shape:{valType:"enumerated",values:["linear","hv","vh","hvh","vhv"],dflt:"linear",editType:"plot"},dash:{valType:"enumerated",values:scr(ucr),dflt:"solid"}},marker:Pee({},yHe("marker"),{symbol:Vy.symbol,angle:Vy.angle,size:Vy.size,sizeref:Vy.sizeref,sizemin:Vy.sizemin,sizemode:Vy.sizemode,opacity:Vy.opacity,colorbar:Vy.colorbar,line:Pee({},yHe("marker.line"),{width:fcr.width})}),connectgaps:jf.connectgaps,fill:Pee({},jf.fill,{dflt:"none"}),fillcolor:ocr(),selected:{marker:jf.selected.marker,textfont:jf.selected.textfont},unselected:{marker:jf.unselected.marker,textfont:jf.unselected.textfont},opacity:ncr.opacity},"calc","nested");j2.x.editType=j2.y.editType=j2.x0.editType=j2.y0.editType="calc+clearAxisTypes";j2.hovertemplate=jf.hovertemplate;j2.hovertemplatefallback=jf.hovertemplatefallback;j2.texttemplate=jf.texttemplate;j2.texttemplatefallback=jf.texttemplatefallback});var jR=K(zee=>{"use strict";var{symbolNumber:bHe}=Is();zee.isOpenSymbol=e=>bHe(e)%200>=100;zee.isDotSymbol=e=>bHe(e)>=200});var AHe=K((pei,wHe)=>{"use strict";var _He=St(),ccr=Ho(),hcr=jR(),dcr=VE(),pcr=(om(),or(am)),WR=ff(),vcr=Pb(),mcr=Jv(),ycr=Xp(),gcr=Qv(),xcr=um(),bcr=e1();wHe.exports=function(t,r,i,n){function a(d,p){return _He.coerce(t,r,dcr,d,p)}var o=t.marker?hcr.isOpenSymbol(t.marker.symbol):!1,s=WR.isBubble(t),l=vcr(t,r,n,a);if(!l){r.visible=!1;return}mcr(t,r,n,a),a("xhoverformat"),a("yhoverformat");var u=l{"use strict";var _cr=QP();THe.exports=function(t,r,i){var n=t.i;return"x"in t||(t.x=r._x[n]),"y"in t||(t.y=r._y[n]),_cr(t,r,i)}});var EHe=K((mei,SHe)=>{"use strict";function wcr(e,t,r,i,n){for(var a=n+1;i<=n;){var o=i+n>>>1,s=e[o],l=r!==void 0?r(s,t):s-t;l>=0?(a=o,n=o-1):i=o+1}return a}function Acr(e,t,r,i,n){for(var a=n+1;i<=n;){var o=i+n>>>1,s=e[o],l=r!==void 0?r(s,t):s-t;l>0?(a=o,n=o-1):i=o+1}return a}function Tcr(e,t,r,i,n){for(var a=i-1;i<=n;){var o=i+n>>>1,s=e[o],l=r!==void 0?r(s,t):s-t;l<0?(a=o,i=o+1):n=o-1}return a}function Mcr(e,t,r,i,n){for(var a=i-1;i<=n;){var o=i+n>>>1,s=e[o],l=r!==void 0?r(s,t):s-t;l<=0?(a=o,i=o+1):n=o-1}return a}function Scr(e,t,r,i,n){for(;i<=n;){var a=i+n>>>1,o=e[a],s=r!==void 0?r(o,t):o-t;if(s===0)return a;s<=0?i=a+1:n=a-1}return-1}function UE(e,t,r,i,n,a){return typeof r=="function"?a(e,t,r,i===void 0?0:i|0,n===void 0?e.length-1:n|0):a(e,t,void 0,r===void 0?0:r|0,i===void 0?e.length-1:i|0)}SHe.exports={ge:function(e,t,r,i,n){return UE(e,t,r,i,n,wcr)},gt:function(e,t,r,i,n){return UE(e,t,r,i,n,Acr)},lt:function(e,t,r,i,n){return UE(e,t,r,i,n,Tcr)},le:function(e,t,r,i,n){return UE(e,t,r,i,n,Mcr)},eq:function(e,t,r,i,n){return UE(e,t,r,i,n,Scr)}}});var Iee=K((yei,kHe)=>{kHe.exports=Ecr;function Ecr(e,t,r){return tr?r:e:et?t:e}});var Cm=K((gei,DHe)=>{"use strict";DHe.exports=function(t,r,i){var n={},a,o;if(typeof r=="string"&&(r=CHe(r)),Array.isArray(r)){var s={};for(o=0;o{"use strict";var kcr=Cm();FHe.exports=Ccr;function Ccr(e){var t;return arguments.length>1&&(e=arguments),typeof e=="string"?e=e.split(/\s/).map(parseFloat):typeof e=="number"&&(e=[e]),e.length&&typeof e[0]=="number"?e.length===1?t={width:e[0],height:e[0],x:0,y:0}:e.length===2?t={width:e[0],height:e[1],x:0,y:0}:t={x:e[0],y:e[1],width:e[2]-e[0]||0,height:e[3]-e[1]||0}:e&&(e=kcr(e,{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"}),t={x:e.left||0,y:e.top||0},e.width==null?e.right?t.width=e.right-t.x:t.width=0:t.width=e.width,e.height==null?e.bottom?t.height=e.bottom-t.y:t.height=0:t.height=e.height),t}});var U_=K((bei,LHe)=>{"use strict";LHe.exports=Dcr;function Dcr(e,t){if(!e||e.length==null)throw Error("Argument should be an array");t==null?t=1:t=Math.floor(t);for(var r=Array(t*2),i=0;in&&(n=e[o]),e[o]{"use strict";PHe.exports=function(){for(var t=0;t{IHe.exports=function(e){switch(e){case"int8":return Int8Array;case"int16":return Int16Array;case"int32":return Int32Array;case"uint8":return Uint8Array;case"uint16":return Uint16Array;case"uint32":return Uint32Array;case"float32":return Float32Array;case"float64":return Float64Array;case"array":return Array;case"uint8_clamped":return Uint8ClampedArray}}});var G_=K((Aei,BHe)=>{var RHe=$R();BHe.exports=Fcr;function Fcr(e,t,r){if(!e)throw new TypeError("must specify data as first parameter");if(r=+(r||0)|0,Array.isArray(e)&&e[0]&&typeof e[0][0]=="number"){var i=e[0].length,n=e.length*i,a,o,s,l;(!t||typeof t=="string")&&(t=new(RHe(t||"float32"))(n+r));var u=t.length-r;if(n!==u)throw new Error("source length "+n+" ("+i+"x"+e.length+") does not match destination length "+u);for(a=0,s=r;a{"use strict";qHe.exports=function(e){var t=typeof e;return e!==null&&(t==="object"||t==="function")}});var VHe=K((Mei,NHe)=>{"use strict";NHe.exports=Math.log2||function(e){return Math.log(e)*Math.LOG2E}});var YHe=K((Sei,$He)=>{"use strict";var UHe=EHe(),GHe=Iee(),Lcr=J4(),Pcr=U_(),HHe=Cm(),Bee=zHe(),zcr=G_(),Icr=OHe(),Rcr=$R(),jHe=VHe(),Bcr=1073741824;$He.exports=function(t,r){r||(r={}),t=zcr(t,"float64"),r=HHe(r,{bounds:"range bounds dataBox databox",maxDepth:"depth maxDepth maxdepth level maxLevel maxlevel levels",dtype:"type dtype format out dst output destination"});let i=Bee(r.maxDepth,255),n=Bee(r.bounds,Pcr(t,2));n[0]===n[2]&&n[2]++,n[1]===n[3]&&n[3]++;let a=WHe(t,n),o=t.length>>>1,s;r.dtype||(r.dtype="array"),typeof r.dtype=="string"?s=new(Rcr(r.dtype))(o):r.dtype&&(s=r.dtype,Array.isArray(s)&&(s.length=o));for(let m=0;mi||x>Bcr){for(let L=0;LW||g>X||E=C||B===O)return;let Z=l[z];O===void 0&&(O=Z.length);for(let ie=B;ie=b&&de<=x&&me>=M&&me<=T&&k.push(re)}let H=u[z],q=H[B*4+0],Q=H[B*4+1],N=H[B*4+2],U=H[B*4+3],J=F(H,B+1),j=L*.5,$=z+1;D(P,I,j,$,q,Q||N||U||J),D(P,I+j,j,$,Q,N||U||J),D(P+j,I,j,$,N,U||J),D(P+j,I+j,j,$,U,J)}function F(P,I){let L=null,z=0;for(;L===null;)if(L=P[I*4+z],z++,z>P.length)return null;return L}return k}function v(m,w,_,b,M){let x=[];for(let T=0;T{"use strict";XHe.exports=YHe()});var KHe=K((kei,ZHe)=>{ZHe.exports=Ocr;var qee={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},qcr=/([astvzqmhlc])([^astvzqmhlc]*)/ig;function Ocr(e){var t=[];return e.replace(qcr,function(r,i,n){var a=i.toLowerCase();for(n=Vcr(n),a=="m"&&n.length>2&&(t.push([i].concat(n.splice(0,2))),a="l",i=i=="m"?"l":"L");;){if(n.length==qee[a])return n.unshift(i),t.push(n);if(n.length{JHe.exports=Ucr;function Ucr(e){var t=0,r=0,i=0,n=0;return e.map(function(a){a=a.slice();var o=a[0],s=o.toUpperCase();if(o!=s)switch(a[0]=s,o){case"a":a[6]+=i,a[7]+=n;break;case"v":a[1]+=n;break;case"h":a[1]+=i;break;default:for(var l=1;l{"use strict";Object.defineProperty(XR,"__esModule",{value:!0});var Gcr=(function(){function e(t,r){var i=[],n=!0,a=!1,o=void 0;try{for(var s=t[Symbol.iterator](),l;!(n=(l=s.next()).done)&&(i.push(l.value),!(r&&i.length===r));n=!0);}catch(u){a=!0,o=u}finally{try{!n&&s.return&&s.return()}finally{if(a)throw o}}return i}return function(t,r){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),GE=Math.PI*2,Oee=function(t,r,i,n,a,o,s){var l=t.x,u=t.y;l*=r,u*=i;var f=n*l-a*u,c=a*l+n*u;return{x:f+o,y:c+s}},Hcr=function(t,r){var i=r===1.5707963267948966?.551915024494:r===-1.5707963267948966?-.551915024494:1.3333333333333333*Math.tan(r/4),n=Math.cos(t),a=Math.sin(t),o=Math.cos(t+r),s=Math.sin(t+r);return[{x:n-a*i,y:a+n*i},{x:o+s*i,y:s-o*i},{x:o,y:s}]},eje=function(t,r,i,n){var a=t*n-r*i<0?-1:1,o=t*i+r*n;return o>1&&(o=1),o<-1&&(o=-1),a*Math.acos(o)},jcr=function(t,r,i,n,a,o,s,l,u,f,c,h){var d=Math.pow(a,2),p=Math.pow(o,2),v=Math.pow(c,2),y=Math.pow(h,2),m=d*p-d*y-p*v;m<0&&(m=0),m/=d*y+p*v,m=Math.sqrt(m)*(s===l?-1:1);var w=m*a/o*h,_=m*-o/a*c,b=f*w-u*_+(t+i)/2,M=u*w+f*_+(r+n)/2,x=(c-w)/a,T=(h-_)/o,A=(-c-w)/a,g=(-h-_)/o,E=eje(1,0,x,T),S=eje(x,T,A,g);return l===0&&S>0&&(S-=GE),l===1&&S<0&&(S+=GE),[b,M,E,S]},Wcr=function(t){var r=t.px,i=t.py,n=t.cx,a=t.cy,o=t.rx,s=t.ry,l=t.xAxisRotation,u=l===void 0?0:l,f=t.largeArcFlag,c=f===void 0?0:f,h=t.sweepFlag,d=h===void 0?0:h,p=[];if(o===0||s===0)return[];var v=Math.sin(u*GE/360),y=Math.cos(u*GE/360),m=y*(r-n)/2+v*(i-a)/2,w=-v*(r-n)/2+y*(i-a)/2;if(m===0&&w===0)return[];o=Math.abs(o),s=Math.abs(s);var _=Math.pow(m,2)/Math.pow(o,2)+Math.pow(w,2)/Math.pow(s,2);_>1&&(o*=Math.sqrt(_),s*=Math.sqrt(_));var b=jcr(r,i,n,a,o,s,c,d,v,y,m,w),M=Gcr(b,4),x=M[0],T=M[1],A=M[2],g=M[3],E=Math.abs(g)/(GE/4);Math.abs(1-E)<1e-7&&(E=1);var S=Math.max(Math.ceil(E),1);g/=S;for(var C=0;C{"use strict";nje.exports=Ycr;var $cr=rje();function Ycr(e){for(var t,r=[],i=0,n=0,a=0,o=0,s=null,l=null,u=0,f=0,c=0,h=e.length;c4?(i=d[d.length-4],n=d[d.length-3]):(i=u,n=f),r.push(d)}return r}function ZR(e,t,r,i){return["C",e,t,r,i,r,i]}function ije(e,t,r,i,n,a){return["C",e/3+2/3*r,t/3+2/3*i,n/3+2/3*r,a/3+2/3*i,n,a]}});var Nee=K((Fei,oje)=>{"use strict";oje.exports=function(t){return typeof t!="string"?!1:(t=t.trim(),!!(/^[mzlhvcsqta]\s*[-+.0-9][^mlhvzcsqta]+/i.test(t)&&/[\dz]$/i.test(t)&&t.length>4))}});var lje=K((Lei,sje)=>{"use strict";var Xcr=KHe(),Zcr=QHe(),Kcr=aje(),Jcr=Nee();sje.exports=Qcr;function Qcr(e){if(Array.isArray(e)&&e.length===1&&typeof e[0]=="string"&&(e=e[0]),typeof e=="string"){if(!Jcr(e))throw Error("String is not an SVG path.");e=Xcr(e)}if(!Array.isArray(e))throw Error("Argument should be a string or an array of path segments.");if(e=Zcr(e),e=Kcr(e),!e.length)return[0,0,0,0];for(var t=[1/0,1/0,-1/0,-1/0],r=0,i=e.length;rt[2]&&(t[2]=n[a+0]),n[a+1]>t[3]&&(t[3]=n[a+1]);return t}});var hje=K((Pei,cje)=>{"use strict";cje.exports=ehr;var HE=1e20;function ehr(e,t){t||(t={});var r=t.cutoff==null?.25:t.cutoff,i=t.radius==null?8:t.radius,n=t.channel||0,a,o,s,l,u,f,c,h,d,p,v;if(ArrayBuffer.isView(e)||Array.isArray(e)){if(!t.width||!t.height)throw Error("For raw data width and height should be provided by options");a=t.width,o=t.height,l=e,t.stride?f=t.stride:f=Math.floor(e.length/a/o)}else window.HTMLCanvasElement&&e instanceof window.HTMLCanvasElement?(h=e,c=h.getContext("2d"),a=h.width,o=h.height,d=c.getImageData(0,0,a,o),l=d.data,f=4):window.CanvasRenderingContext2D&&e instanceof window.CanvasRenderingContext2D?(h=e.canvas,c=e,a=h.width,o=h.height,d=c.getImageData(0,0,a,o),l=d.data,f=4):window.ImageData&&e instanceof window.ImageData&&(d=e,a=e.width,o=e.height,l=d.data,f=4);if(s=Math.max(a,o),window.Uint8ClampedArray&&l instanceof window.Uint8ClampedArray||window.Uint8Array&&l instanceof window.Uint8Array)for(u=l,l=Array(a*o),p=0,v=Math.floor(u.length/f);pmje});function mje(e,t={}){if(!(0,pje.default)(e))throw Error("Invalid SVG path");let r,i;t.shape||Array.isArray(t)?[r,i]=t.shape||t:(r=Vee.width=t.width||t.w||200,i=Vee.height=t.height||t.h||200);let n=Math.min(r,i),a=t.stroke||0,o=t.viewbox||t.viewBox||(0,dje.default)(e),s=[r/(o[2]-o[0]),i/(o[3]-o[1])],l=Math.min(s[0]||0,s[1]||0)/2;A1.fillStyle="black",A1.fillRect(0,0,r,i),A1.fillStyle="white",a&&(typeof a!="number"&&(a=1),A1.strokeStyle=a>0?"white":"black",A1.lineWidth=Math.abs(a)),A1.translate(r*.5,i*.5),A1.scale(l,l);let u=new Path2D(e);return A1.fill(u),a&&A1.stroke(u),A1.setTransform(1,0,0,1,0,0),(0,vje.default)(A1,{cutoff:t.cutoff!=null?t.cutoff:.5,radius:t.radius!=null?t.radius:n*.5})}var dje,pje,vje,Vee,A1,gje=ps(()=>{dje=O1(lje()),pje=O1(Nee()),vje=O1(hje()),Vee=document.createElement("canvas"),A1=Vee.getContext("2d",{willReadFrequently:!0})});var W_=K((zei,Cje)=>{"use strict";var JR=Hs(),thr=(gje(),or(yje)).default,{normalize:KR,rgbaString:j_}=wo(),rhr=Ho(),t5=St(),Bc=t5.isArrayOrTypedArray,Q4=Is(),xje=Vf(),bje=By().formatColor,e5=ff(),ihr=M6(),Gee=jR(),jE=(V_(),or(N_)),nhr=(ry(),or(ty)).DESELECTDIM,_je={start:1,left:1,end:-1,right:-1,middle:0,center:0,bottom:1,top:-1},ahr=ud().appendArrayPointValue;function ohr(e,t){var r,i={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},n=e._context.plotGlPixelRatio;if(t.visible!==!0)return i;if(e5.hasText(t)&&(i.text=kje(e,t),i.textSel=Aje(e,t,t.selected),i.textUnsel=Aje(e,t,t.unselected)),e5.hasMarkers(t)&&(i.marker=jee(e,t),i.markerSel=Hee(e,t,t.selected),i.markerUnsel=Hee(e,t,t.unselected),!t.unselected&&Bc(t.marker.opacity))){var a=t.marker.opacity;for(i.markerUnsel.opacity=new Array(a.length),r=0;r500?"bold":"normal":e}function jee(e,t){var r=t._length,i=t.marker,n={},a,o=Bc(i.symbol),s=Bc(i.angle),l=Bc(i.color),u=Bc(i.line.color),f=Bc(i.opacity),c=Bc(i.size),h=Bc(i.line.width),d;if(o||(d=Gee.isOpenSymbol(i.symbol)),o||l||u||f||s){n.symbols=new Array(r),n.angles=new Array(r),n.colors=new Array(r),n.borderColors=new Array(r);var p=i.symbol,v=i.angle,y=bje(i,i.opacity,r),m=bje(i.line,i.opacity,r);if(!Bc(m[0])){var w=m;for(m=Array(r),a=0;ajE.TOO_MANY_POINTS||e5.hasMarkers(t)?"rect":"round";if(u&&t.connectgaps){var c=a[0],h=a[1];for(o=0;o1?l[o]:l[0]:l,d=Bc(u)?u.length>1?u[o]:u[0]:u,p=_je[h],v=_je[d],y=f?f/.8+1:0,m=-v*y-v*.5;a.offset[o]=[p*y/c,m/c]}}return a}Cje.exports={style:ohr,markerStyle:jee,markerSelection:Hee,linePositions:lhr,errorBarPositions:uhr,textPosition:fhr}});var Wee=K((Rei,Dje)=>{"use strict";var QR=St();Dje.exports=function(t,r){var i=r._scene,n={count:0,dirty:!0,lineOptions:[],fillOptions:[],markerOptions:[],markerSelectedOptions:[],markerUnselectedOptions:[],errorXOptions:[],errorYOptions:[],textOptions:[],textSelectedOptions:[],textUnselectedOptions:[],selectBatch:[],unselectBatch:[]},a={fill2d:!1,scatter2d:!1,error2d:!1,line2d:!1,glText:!1,select2d:!1};return r._scene||(i=r._scene={},i.init=function(){QR.extendFlat(i,a,n)},i.init(),i.update=function(s){var l=QR.repeat(s,i.count);if(i.fill2d&&i.fill2d.update(l),i.scatter2d&&i.scatter2d.update(l),i.line2d&&i.line2d.update(l),i.error2d&&i.error2d.update(l.concat(l)),i.select2d&&i.select2d.update(l),i.glText)for(var u=0;u{"use strict";var chr=YR(),r5=St(),Fje=Vf(),hhr=$v().findExtremes,Lje=t1(),$ee=Kp(),dhr=$ee.calcMarkerSize,phr=$ee.calcAxisExpansion,vhr=$ee.setFirstScatter,mhr=Zp(),i5=W_(),yhr=Wee(),Pje=(Il(),or(Bl)).BADNUM,ghr=(V_(),or(N_)).TOO_MANY_POINTS;Ije.exports=function(t,r){var i=t._fullLayout,n=r._xA=Fje.getFromId(t,r.xaxis,"x"),a=r._yA=Fje.getFromId(t,r.yaxis,"y"),o=i._plots[r.xaxis+r.yaxis],s=r._length,l=s>=ghr,u=s*2,f={},c,h=n.makeCalcdata(r,"x"),d=a.makeCalcdata(r,"y"),p=Lje(r,n,"x",h),v=Lje(r,a,"y",d),y=p.vals,m=v.vals;r._x=y,r._y=m,r.xperiodalignment&&(r._origX=h,r._xStarts=p.starts,r._xEnds=p.ends),r.yperiodalignment&&(r._origY=d,r._yStarts=v.starts,r._yEnds=v.ends);var w=new Array(u),_=new Array(s);for(c=0;c1&&r5.extendFlat(o.line,i5.linePositions(e,r,i)),o.errorX||o.errorY){var s=i5.errorBarPositions(e,r,i,n,a);o.errorX&&r5.extendFlat(o.errorX,s.x),o.errorY&&r5.extendFlat(o.errorY,s.y)}return o.text&&(r5.extendFlat(o.text,{positions:i},i5.textPosition(e,r,o.text,o.marker)),r5.extendFlat(o.textSel,{positions:i},i5.textPosition(e,r,o.text,o.markerSel)),r5.extendFlat(o.textUnsel,{positions:i},i5.textPosition(e,r,o.text,o.markerUnsel))),o}});var Yee=K((qei,qje)=>{"use strict";var Bje=St(),bhr=wo(),_hr=(ry(),or(ty)).DESELECTDIM;function whr(e){var t=e[0],r=t.trace,i=t.t,n=i._scene,a=i.index,o=n.selectBatch[a],s=n.unselectBatch[a],l=n.textOptions[a],u=n.textSelectedOptions[a]||{},f=n.textUnselectedOptions[a]||{},c=Bje.extendFlat({},l),h,d;if(o.length||s.length){var p=u.color,v=f.color,y=l.color,m=Bje.isArrayOrTypedArray(y);for(c.color=new Array(r._length),h=0;h{"use strict";var Oje=ff(),Ahr=Yee().styleTextSelection;Nje.exports=function(t,r){var i=t.cd,n=t.xaxis,a=t.yaxis,o=[],s=i[0].trace,l=i[0].t,u=s._length,f=l.x,c=l.y,h=l._scene,d=l.index;if(!h)return o;var p=Oje.hasText(s),v=Oje.hasMarkers(s),y=!v&&!p;if(s.visible!==!0||y)return o;var m=[],w=[];if(r!==!1&&!r.degenerate)for(var _=0;_{"use strict";var Thr=HR();Vje.exports={moduleType:"trace",name:"scattergl",basePlotModule:gc(),categories:["gl","regl","cartesian","symbols","errorBarsOK","showLegend","scatter-like"],attributes:VE(),supplyDefaults:AHe(),crossTraceDefaults:FW(),colorbar:e0(),formatLabels:MHe(),calc:Rje(),hoverPoints:Thr.hoverPoints,selectPoints:Xee(),meta:{}}});var Hje=K((Vei,Gje)=>{"use strict";Gje.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 Yje=K((Uei,$je)=>{"use strict";var jje=Hje();$je.exports=Mhr;var Wje={red:0,orange:60,yellow:120,green:180,blue:240,purple:300};function Mhr(e){var t,r=[],i=1,n;if(typeof e=="string")if(e=e.toLowerCase(),jje[e])r=jje[e].slice(),n="rgb";else if(e==="transparent")i=0,n="rgb",r=[0,0,0];else if(/^#[A-Fa-f0-9]+$/.test(e)){var a=e.slice(1),o=a.length,s=o<=4;i=1,s?(r=[parseInt(a[0]+a[0],16),parseInt(a[1]+a[1],16),parseInt(a[2]+a[2],16)],o===4&&(i=parseInt(a[3]+a[3],16)/255)):(r=[parseInt(a[0]+a[1],16),parseInt(a[2]+a[3],16),parseInt(a[4]+a[5],16)],o===8&&(i=parseInt(a[6]+a[7],16)/255)),r[0]||(r[0]=0),r[1]||(r[1]=0),r[2]||(r[2]=0),n="rgb"}else if(t=/^((?:rgb|hs[lvb]|hwb|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms)a?)\s*\(([^\)]*)\)/.exec(e)){var l=t[1],u=l==="rgb",a=l.replace(/a$/,"");n=a;var o=a==="cmyk"?4:a==="gray"?1:3;r=t[2].trim().split(/\s*[,\/]\s*|\s+/).map(function(h,d){if(/%$/.test(h))return d===o?parseFloat(h)/100:a==="rgb"?parseFloat(h)*255/100:parseFloat(h);if(a[d]==="h"){if(/deg$/.test(h))return parseFloat(h);if(Wje[h]!==void 0)return Wje[h]}return parseFloat(h)}),l===a&&r.push(1),i=u||r[o]===void 0?1:r[o],r=r.slice(0,o)}else e.length>10&&/[0-9](?:\s|\/)/.test(e)&&(r=e.match(/([0-9]+)/g).map(function(f){return parseFloat(f)}),n=e.match(/([a-z])/ig).join("").toLowerCase());else isNaN(e)?Array.isArray(e)||e.length?(r=[e[0],e[1],e[2]],n="rgb",i=e.length===4?e[3]:1):e instanceof Object&&(e.r!=null||e.red!=null||e.R!=null?(n="rgb",r=[e.r||e.red||e.R||0,e.g||e.green||e.G||0,e.b||e.blue||e.B||0]):(n="hsl",r=[e.h||e.hue||e.H||0,e.s||e.saturation||e.S||0,e.l||e.lightness||e.L||e.b||e.brightness]),i=e.a||e.alpha||e.opacity||1,e.opacity!=null&&(i/=100)):(n="rgb",r=[e>>>16,(e&65280)>>>8,e&255]);return{space:n,values:r,alpha:i}}});var Zje=K((Gei,Xje)=>{"use strict";var Shr=Yje();Xje.exports=function(t){Array.isArray(t)&&t.raw&&(t=String.raw.apply(null,arguments));var r,i,n,a=Shr(t);if(!a.space)return[];var o=[0,0,0],s=a.space[0]==="h"?[360,100,100]:[255,255,255];return r=Array(3),r[0]=Math.min(Math.max(a.values[0],o[0]),s[0]),r[1]=Math.min(Math.max(a.values[1],o[1]),s[1]),r[2]=Math.min(Math.max(a.values[2],o[2]),s[2]),a.space[0]==="h"&&(r=Ehr(r)),r.push(Math.min(Math.max(a.alpha,0),1)),r};function Ehr(e){var t=e[0]/360,r=e[1]/100,i=e[2]/100,n,a,o,s,l,u=0;if(r===0)return l=i*255,[l,l,l];for(a=i<.5?i*(1+r):i+r-i*r,n=2*i-a,s=[0,0,0];u<3;)o=t+1/3*-(u-1),o<0?o++:o>1&&o--,l=6*o<1?n+(a-n)*6*o:2*o<1?a:3*o<2?n+(a-n)*(2/3-o)*6:n,s[u++]=l*255;return s}});var WE=K((Hei,Kje)=>{"use strict";var khr=Zje(),Chr=$R();Kje.exports=function(t,r){(r==="float"||!r)&&(r="array"),r==="uint"&&(r="uint8"),r==="uint_clamped"&&(r="uint8_clamped");var i=Chr(r),n=new i(4),a=r!=="uint8"&&r!=="uint8_clamped";return(!t.length||typeof t=="string")&&(t=khr(t),t[0]/=255,t[1]/=255,t[2]/=255),Dhr(t)?(n[0]=t[0],n[1]=t[1],n[2]=t[2],n[3]=t[3]!=null?t[3]:255,a&&(n[0]/=255,n[1]/=255,n[2]/=255,n[3]/=255),n):(a?(n[0]=t[0],n[1]=t[1],n[2]=t[2],n[3]=t[3]!=null?t[3]:1):(n[0]=Math.min(Math.max(Math.floor(t[0]*255),0),255),n[1]=Math.min(Math.max(Math.floor(t[1]*255),0),255),n[2]=Math.min(Math.max(Math.floor(t[2]*255),0),255),n[3]=t[3]==null?255:Math.min(Math.max(Math.floor(t[3]*255),0),255)),n)};function Dhr(e){return!!(e instanceof Uint8Array||e instanceof Uint8ClampedArray||Array.isArray(e)&&(e[0]>1||e[0]===0)&&(e[1]>1||e[1]===0)&&(e[2]>1||e[2]===0)&&(!e[3]||e[3]>1))}});var Qje=K((jei,tB)=>{"use strict";var eB=Iee();tB.exports=Jje;tB.exports.to=Jje;tB.exports.from=Fhr;function Jje(e,t){t==null&&(t=!0);var r=e[0],i=e[1],n=e[2],a=e[3];a==null&&(a=t?1:255),t&&(r*=255,i*=255,n*=255,a*=255),r=eB(r,0,255)&255,i=eB(i,0,255)&255,n=eB(n,0,255)&255,a=eB(a,0,255)&255;var o=r*16777216+(i<<16)+(n<<8)+a;return o}function Fhr(e,t){e=+e;var r=e>>>24,i=(e&16711680)>>>16,n=(e&65280)>>>8,a=e&255;return t===!1?[r,i,n,a]:[r/255,i/255,n/255,a/255]}});var tWe=K((Wei,eWe)=>{eWe.exports=function(e){typeof e=="string"&&(e=[e]);for(var t=[].slice.call(arguments,1),r=[],i=0;i{"use strict";rWe.exports=function(t,r,i){Array.isArray(i)||(i=[].slice.call(arguments,2));for(var n=0,a=i.length;n{"use strict";n5.exports=$E;n5.exports.float32=n5.exports.float=$E;n5.exports.fract32=n5.exports.fract=Lhr;var iWe=new Float32Array(1);function Lhr(e,t){if(e.length){if(e instanceof Float32Array)return new Float32Array(e.length);t instanceof Float32Array||(t=$E(e));for(var r=0,i=t.length;r{"use strict";var Phr=WE(),zhr=U_(),Ihr=Qje(),Rhr=YR(),iB=tWe(),Bhr=Cm(),qhr=Zee(),Ohr=G_(),nB=rB(),Nhr=J4(),Vhr=o0;function o0(e,t){if(!(this instanceof o0))return new o0(e,t);typeof e=="function"?(t||(t={}),t.regl=e):(t=e,e=null),t&&t.length&&(t.positions=t),e=t.regl;let r=e._gl,i,n=[],a={},o=[],s=[null],l=[null],u=255,f=100;this.tooManyColors=!1,i=e.texture({data:new Uint8Array(u*4),width:u,height:1,type:"uint8",format:"rgba",wrapS:"clamp",wrapT:"clamp",mag:"nearest",min:"nearest"}),Object.assign(this,{regl:e,gl:r,groups:o,markerCache:l,markerTextures:s,palette:n,paletteIds:a,paletteTexture:i,maxColors:u,maxSize:f,canvas:r.canvas}),this.update(t);let c={uniforms:{constPointSize:!!t.constPointSize,opacity:e.prop("opacity"),paletteSize:(p,v)=>[this.tooManyColors?0:u,i.height],pixelRatio:e.context("pixelRatio"),scale:e.prop("scale"),scaleFract:e.prop("scaleFract"),translate:e.prop("translate"),translateFract:e.prop("translateFract"),markerTexture:e.prop("markerTexture"),paletteTexture:i},attributes:{x:(p,v)=>v.xAttr||{buffer:v.positionBuffer,stride:8,offset:0},y:(p,v)=>v.yAttr||{buffer:v.positionBuffer,stride:8,offset:4},xFract:(p,v)=>v.xAttr?{constant:[0,0]}:{buffer:v.positionFractBuffer,stride:8,offset:0},yFract:(p,v)=>v.yAttr?{constant:[0,0]}:{buffer:v.positionFractBuffer,stride:8,offset:4},size:(p,v)=>v.size.length?{buffer:v.sizeBuffer,stride:2,offset:0}:{constant:[Math.round(v.size*255/this.maxSize)]},borderSize:(p,v)=>v.borderSize.length?{buffer:v.sizeBuffer,stride:2,offset:1}:{constant:[Math.round(v.borderSize*255/this.maxSize)]},colorId:(p,v)=>v.color.length?{buffer:v.colorBuffer,stride:this.tooManyColors?8:4,offset:0}:{constant:this.tooManyColors?n.slice(v.color*4,v.color*4+4):[v.color]},borderColorId:(p,v)=>v.borderColor.length?{buffer:v.colorBuffer,stride:this.tooManyColors?8:4,offset:this.tooManyColors?4:2}:{constant:this.tooManyColors?n.slice(v.borderColor*4,v.borderColor*4+4):[v.borderColor]},isActive:(p,v)=>v.activation===!0?{constant:[1]}:v.activation?v.activation:{constant:[0]}},blend:{enable:!0,color:[0,0,0,1],func:{srcRGB:"src alpha",dstRGB:"one minus src alpha",srcAlpha:"one minus dst alpha",dstAlpha:"one"}},scissor:{enable:!0,box:e.prop("viewport")},viewport:e.prop("viewport"),stencil:{enable:!1},depth:{enable:!1},elements:e.prop("elements"),count:e.prop("count"),offset:e.prop("offset"),primitive:"points"},h=Object.assign({},c);h.frag=iB([`precision highp float; #define GLSLIFY 1 uniform float opacity; @@ -2045,7 +2045,7 @@ void main() { } } -`]),h.vert=KR([`precision highp float; +`]),h.vert=iB([`precision highp float; #define GLSLIFY 1 attribute float x, y, xFract, yFract; @@ -2113,7 +2113,7 @@ void main() { fragBorderColorLevel = clamp(borderLevel - borderLevel * borderSize / size, 0., 1.); fragColorLevel = clamp(borderLevel + (1. - borderLevel) * borderSize / size, 0., 1.); } -`]),this.drawMarker=e(h);let d=Object.assign({},c);d.frag=KR([`precision highp float; +`]),this.drawMarker=e(h);let d=Object.assign({},c);d.frag=iB([`precision highp float; #define GLSLIFY 1 varying vec4 fragColor, fragBorderColor; @@ -2144,7 +2144,7 @@ void main() { color.a *= alpha * opacity; gl_FragColor = color; } -`]),d.vert=KR([`precision highp float; +`]),d.vert=iB([`precision highp float; #define GLSLIFY 1 attribute float x, y, xFract, yFract; @@ -2208,8 +2208,8 @@ void main() { fragBorderColor = borderColor.a == 0. || borderSize == 0. ? vec4(color.rgb, 0.) : borderColor; fragWidth = 1. / gl_PointSize; } -`]),this.drawCircle=e(d)}a0.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};a0.prototype.render=function(){return arguments.length&&this.update(...arguments),this.draw(),this};a0.prototype.draw=function(){for(var e=arguments.length,t=new Array(e),r=0;r{this.drawItem(a)});return this};a0.prototype.drawItem=function(e,t){let{groups:r}=this,i=r[e];if(typeof t=="number"&&(e=t,i=r[t],t=null),!(i&&i.count&&i.opacity))return;i.activation[0]&&this.drawCircle(this.getMarkerDrawOptions(0,i,t));let n=[];for(let a=1;a{let c=i[f];if(u===void 0)return c;u===null?u={positions:null}:typeof u=="function"?u={ondraw:u}:typeof u[0]=="number"&&(u={positions:u}),u=Ehr(u,{positions:"positions data points",snap:"snap cluster lod tree",size:"sizes size radius",borderSize:"borderSizes borderSize border-size bordersize borderWidth borderWidths border-width borderwidth stroke-width strokeWidth strokewidth outline",color:"colors color fill fill-color fillColor",borderColor:"borderColors borderColor stroke stroke-color strokeColor",marker:"markers marker shape",range:"range dataBox databox",viewport:"viewport viewPort viewBox viewbox",opacity:"opacity alpha transparency",bounds:"bound bounds boundaries limits",tooManyColors:"tooManyColors palette paletteMode optimizePalette enablePalette"}),u.positions===null&&(u.positions=[]),u.tooManyColors!=null&&(this.tooManyColors=u.tooManyColors),c||(i[f]=c={id:f,scale:null,translate:null,scaleFract:null,translateFract:null,activation:[],selectionBuffer:a.buffer({data:new Uint8Array(0),usage:"stream",type:"uint8"}),sizeBuffer:a.buffer({data:new Uint8Array(0),usage:"dynamic",type:"uint8"}),colorBuffer:a.buffer({data:new Uint8Array(0),usage:"dynamic",type:"uint8"}),positionBuffer:a.buffer({data:new Uint8Array(0),usage:"dynamic",type:"float"}),positionFractBuffer:a.buffer({data:new Uint8Array(0),usage:"dynamic",type:"float"})},u=Object.assign({},a0.defaults,u)),u.positions&&!("marker"in u)&&(u.marker=c.marker,delete c.marker),u.marker&&!("positions"in u)&&(u.positions=c.positions,delete c.positions);let h=0,d=0;if(khr(c,u,[{snap:!0,size:(p,v)=>(p==null&&(p=a0.defaults.size),h+=p&&p.length?1:0,p),borderSize:(p,v)=>(p==null&&(p=a0.defaults.borderSize),h+=p&&p.length?1:0,p),opacity:parseFloat,color:(p,v)=>(p==null&&(p=a0.defaults.color),p=this.updateColor(p),d++,p),borderColor:(p,v)=>(p==null&&(p=a0.defaults.borderColor),p=this.updateColor(p),d++,p),bounds:(p,v,y)=>("range"in y||(y.range=null),p),positions:(p,v,y)=>{let{snap:m}=v,{positionBuffer:w,positionFractBuffer:_,selectionBuffer:b}=v;if(p.x||p.y)return p.x.length?v.xAttr={buffer:a.buffer(p.x),offset:0,stride:4,count:p.x.length}:v.xAttr={buffer:p.x.buffer,offset:p.x.offset*4||0,stride:(p.x.stride||1)*4,count:p.x.count},p.y.length?v.yAttr={buffer:a.buffer(p.y),offset:0,stride:4,count:p.y.length}:v.yAttr={buffer:p.y.buffer,offset:p.y.offset*4||0,stride:(p.y.stride||1)*4,count:p.y.count},v.count=Math.max(v.xAttr.count,v.yAttr.count),p;p=Chr(p,"float64");let M=v.count=Math.floor(p.length/2),x=v.bounds=M?Thr(p,2):null;if(!y.range&&!v.range&&(delete v.range,y.range=x),!y.marker&&!v.marker&&(delete v.marker,y.marker=null),m&&(m===!0||M>m)?v.tree=Shr(p,{bounds:x}):m&&m.length&&(v.tree=m),v.tree){let g={primitive:"points",usage:"static",data:v.tree,type:"uint32"};v.elements?v.elements(g):v.elements=a.elements(g)}var A=JR.float32(p);w({data:A,usage:"dynamic"});var T=JR.fract32(p,A);return _({data:T,usage:"dynamic"}),b({data:new Uint8Array(M),type:"uint8",usage:"stream"}),p}},{marker:(p,v,y)=>{let{activation:m}=v;if(m.forEach(w=>w&&w.destroy&&w.destroy()),m.length=0,!p||typeof p[0]=="number"){let w=this.addMarker(p);m[w]=!0}else{let w=[];for(let _=0,b=Math.min(p.length,v.count);_{let m=v.bounds;if(m)return p||(p=m),v.scale=[1/(p[2]-p[0]),1/(p[3]-p[1])],v.translate=[-p[0],-p[1]],v.scaleFract=JR.fract(v.scale),v.translateFract=JR.fract(v.translate),p},viewport:p=>Dhr(p||[n.drawingBufferWidth,n.drawingBufferHeight])}]),h){let{count:p,size:v,borderSize:y,sizeBuffer:m}=c,w=new Uint8Array(p*2);if(v.length||y.length)for(let _=0;_=0)return n;let a;if(e instanceof Uint8Array||e instanceof Uint8ClampedArray)a=e;else{a=new Uint8Array(e.length);for(let s=0,l=e.length;si*4&&(this.tooManyColors=!0),this.updatePalette(r),n.length===1?n[0]:n};a0.prototype.updatePalette=function(e){if(this.tooManyColors)return;let{maxColors:t,paletteTexture:r}=this,i=Math.ceil(e.length*.25/t);if(i>1){e=e.slice();for(let n=e.length*.25%t;n{e.sizeBuffer.destroy(),e.positionBuffer.destroy(),e.positionFractBuffer.destroy(),e.colorBuffer.destroy(),e.activation.forEach(t=>t&&t.destroy&&t.destroy()),e.selectionBuffer.destroy(),e.elements&&e.elements.destroy()}),this.groups.length=0,this.paletteTexture.destroy(),this.markerTextures.forEach(e=>e&&e.destroy&&e.destroy()),this};var Lhr=function(e,t){var r=new Fhr(e,t),i=r.render.bind(r);return Object.assign(i,{render:i,update:r.update.bind(r),draw:r.draw.bind(r),destroy:r.destroy.bind(r),regl:r.regl,gl:r.gl,canvas:r.gl.canvas,groups:r.groups,markers:r.markerCache,palette:r.palette}),i};Zje.exports=Lhr});var Mh=K((Rei,Jje)=>{"use strict";var Kje=Object.getOwnPropertySymbols,Phr=Object.prototype.hasOwnProperty,zhr=Object.prototype.propertyIsEnumerable;function Ihr(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function Rhr(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;var i=Object.getOwnPropertyNames(t).map(function(a){return t[a]});if(i.join("")!=="0123456789")return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach(function(a){n[a]=a}),Object.keys(Object.assign({},n)).join("")==="abcdefghijklmnopqrst"}catch(a){return!1}}Jje.exports=Rhr()?Object.assign:function(e,t){for(var r,i=Ihr(e),n,a=1;a{"use strict";$ee.exports=tB;$ee.exports.default=tB;function tB(e,t,r){r=r||2;var i=t&&t.length,n=i?t[0]*r:e.length,a=eWe(e,0,n,r,!0),o=[];if(!a||a.next===a.prev)return o;var s,l,u,f,c,h,d;if(i&&(a=Vhr(e,t,a,r)),e.length>80*r){s=u=e[0],l=f=e[1];for(var p=r;pu&&(u=c),h>f&&(f=h);d=Math.max(u-s,f-l),d=d!==0?32767/d:0}return WE(a,o,r,s,l,d,0),o}function eWe(e,t,r,i,n){var a,o;if(n===Wee(e,t,r,i)>0)for(a=t;a=t;a-=i)o=Qje(a,e[a],e[a+1],o);return o&&rB(o,o.next)&&(YE(o),o=o.next),o}function H_(e,t){if(!e)return e;t||(t=e);var r=e,i;do if(i=!1,!r.steiner&&(rB(r,r.next)||Ic(r.prev,r,r.next)===0)){if(YE(r),r=t=r.prev,r===r.next)break;i=!0}else r=r.next;while(i||r!==t);return t}function WE(e,t,r,i,n,a,o){if(e){!o&&a&&Whr(e,i,n,a);for(var s=e,l,u;e.prev!==e.next;){if(l=e.prev,u=e.next,a?qhr(e,i,n,a):Bhr(e)){t.push(l.i/r|0),t.push(e.i/r|0),t.push(u.i/r|0),YE(e),e=u.next,s=u.next;continue}if(e=u,e===s){o?o===1?(e=Ohr(H_(e),t,r),WE(e,t,r,i,n,a,2)):o===2&&Nhr(e,t,r,i,n,a):WE(H_(e),t,r,i,n,a,1);break}}}}function Bhr(e){var t=e.prev,r=e,i=e.next;if(Ic(t,r,i)>=0)return!1;for(var n=t.x,a=r.x,o=i.x,s=t.y,l=r.y,u=i.y,f=na?n>o?n:o:a>o?a:o,d=s>l?s>u?s:u:l>u?l:u,p=i.next;p!==t;){if(p.x>=f&&p.x<=h&&p.y>=c&&p.y<=d&&n5(n,s,a,l,o,u,p.x,p.y)&&Ic(p.prev,p,p.next)>=0)return!1;p=p.next}return!0}function qhr(e,t,r,i){var n=e.prev,a=e,o=e.next;if(Ic(n,a,o)>=0)return!1;for(var s=n.x,l=a.x,u=o.x,f=n.y,c=a.y,h=o.y,d=sl?s>u?s:u:l>u?l:u,y=f>c?f>h?f:h:c>h?c:h,m=Hee(d,p,t,r,i),w=Hee(v,y,t,r,i),_=e.prevZ,b=e.nextZ;_&&_.z>=m&&b&&b.z<=w;){if(_.x>=d&&_.x<=v&&_.y>=p&&_.y<=y&&_!==n&&_!==o&&n5(s,f,l,c,u,h,_.x,_.y)&&Ic(_.prev,_,_.next)>=0||(_=_.prevZ,b.x>=d&&b.x<=v&&b.y>=p&&b.y<=y&&b!==n&&b!==o&&n5(s,f,l,c,u,h,b.x,b.y)&&Ic(b.prev,b,b.next)>=0))return!1;b=b.nextZ}for(;_&&_.z>=m;){if(_.x>=d&&_.x<=v&&_.y>=p&&_.y<=y&&_!==n&&_!==o&&n5(s,f,l,c,u,h,_.x,_.y)&&Ic(_.prev,_,_.next)>=0)return!1;_=_.prevZ}for(;b&&b.z<=w;){if(b.x>=d&&b.x<=v&&b.y>=p&&b.y<=y&&b!==n&&b!==o&&n5(s,f,l,c,u,h,b.x,b.y)&&Ic(b.prev,b,b.next)>=0)return!1;b=b.nextZ}return!0}function Ohr(e,t,r){var i=e;do{var n=i.prev,a=i.next.next;!rB(n,a)&&tWe(n,i,i.next,a)&&$E(n,a)&&$E(a,n)&&(t.push(n.i/r|0),t.push(i.i/r|0),t.push(a.i/r|0),YE(i),YE(i.next),i=e=a),i=i.next}while(i!==e);return H_(i)}function Nhr(e,t,r,i,n,a){var o=e;do{for(var s=o.next.next;s!==o.prev;){if(o.i!==s.i&&Xhr(o,s)){var l=rWe(o,s);o=H_(o,o.next),l=H_(l,l.next),WE(o,t,r,i,n,a,0),WE(l,t,r,i,n,a,0);return}s=s.next}o=o.next}while(o!==e)}function Vhr(e,t,r,i){var n=[],a,o,s,l,u;for(a=0,o=t.length;a=r.next.y&&r.next.y!==r.y){var s=r.x+(n-r.y)*(r.next.x-r.x)/(r.next.y-r.y);if(s<=i&&s>a&&(a=s,o=r.x=r.x&&r.x>=u&&i!==r.x&&n5(no.x||r.x===o.x&&jhr(o,r)))&&(o=r,c=h)),r=r.next;while(r!==l);return o}function jhr(e,t){return Ic(e.prev,e,t.prev)<0&&Ic(t.next,e,e.next)<0}function Whr(e,t,r,i){var n=e;do n.z===0&&(n.z=Hee(n.x,n.y,t,r,i)),n.prevZ=n.prev,n.nextZ=n.next,n=n.next;while(n!==e);n.prevZ.nextZ=null,n.prevZ=null,$hr(n)}function $hr(e){var t,r,i,n,a,o,s,l,u=1;do{for(r=e,e=null,a=null,o=0;r;){for(o++,i=r,s=0,t=0;t0||l>0&&i;)s!==0&&(l===0||!i||r.z<=i.z)?(n=r,r=r.nextZ,s--):(n=i,i=i.nextZ,l--),a?a.nextZ=n:e=n,n.prevZ=a,a=n;r=i}a.nextZ=null,u*=2}while(o>1);return e}function Hee(e,t,r,i,n){return e=(e-r)*n|0,t=(t-i)*n|0,e=(e|e<<8)&16711935,e=(e|e<<4)&252645135,e=(e|e<<2)&858993459,e=(e|e<<1)&1431655765,t=(t|t<<8)&16711935,t=(t|t<<4)&252645135,t=(t|t<<2)&858993459,t=(t|t<<1)&1431655765,e|t<<1}function Yhr(e){var t=e,r=e;do(t.x=(e-o)*(a-s)&&(e-o)*(i-s)>=(r-o)*(t-s)&&(r-o)*(a-s)>=(n-o)*(i-s)}function Xhr(e,t){return e.next.i!==t.i&&e.prev.i!==t.i&&!Zhr(e,t)&&($E(e,t)&&$E(t,e)&&Khr(e,t)&&(Ic(e.prev,e,t.prev)||Ic(e,t.prev,t))||rB(e,t)&&Ic(e.prev,e,e.next)>0&&Ic(t.prev,t,t.next)>0)}function Ic(e,t,r){return(t.y-e.y)*(r.x-t.x)-(t.x-e.x)*(r.y-t.y)}function rB(e,t){return e.x===t.x&&e.y===t.y}function tWe(e,t,r,i){var n=eB(Ic(e,t,r)),a=eB(Ic(e,t,i)),o=eB(Ic(r,i,e)),s=eB(Ic(r,i,t));return!!(n!==a&&o!==s||n===0&&QR(e,r,t)||a===0&&QR(e,i,t)||o===0&&QR(r,e,i)||s===0&&QR(r,t,i))}function QR(e,t,r){return t.x<=Math.max(e.x,r.x)&&t.x>=Math.min(e.x,r.x)&&t.y<=Math.max(e.y,r.y)&&t.y>=Math.min(e.y,r.y)}function eB(e){return e>0?1:e<0?-1:0}function Zhr(e,t){var r=e;do{if(r.i!==e.i&&r.next.i!==e.i&&r.i!==t.i&&r.next.i!==t.i&&tWe(r,r.next,e,t))return!0;r=r.next}while(r!==e);return!1}function $E(e,t){return Ic(e.prev,e,e.next)<0?Ic(e,t,e.next)>=0&&Ic(e,e.prev,t)>=0:Ic(e,t,e.prev)<0||Ic(e,e.next,t)<0}function Khr(e,t){var r=e,i=!1,n=(e.x+t.x)/2,a=(e.y+t.y)/2;do r.y>a!=r.next.y>a&&r.next.y!==r.y&&n<(r.next.x-r.x)*(a-r.y)/(r.next.y-r.y)+r.x&&(i=!i),r=r.next;while(r!==e);return i}function rWe(e,t){var r=new jee(e.i,e.x,e.y),i=new jee(t.i,t.x,t.y),n=e.next,a=t.prev;return e.next=t,t.prev=e,r.next=n,n.prev=r,i.next=r,r.prev=i,a.next=i,i.prev=a,i}function Qje(e,t,r,i){var n=new jee(e,t,r);return i?(n.next=i.next,n.prev=i,i.next.prev=n,i.next=n):(n.prev=n,n.next=n),n}function YE(e){e.next.prev=e.prev,e.prev.next=e.next,e.prevZ&&(e.prevZ.nextZ=e.nextZ),e.nextZ&&(e.nextZ.prevZ=e.prevZ)}function jee(e,t,r){this.i=e,this.x=t,this.y=r,this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1}tB.deviation=function(e,t,r,i){var n=t&&t.length,a=n?t[0]*r:e.length,o=Math.abs(Wee(e,0,a,r));if(n)for(var s=0,l=t.length;s0&&(i+=e[n-1].length,r.holes.push(i))}return r}});var aWe=K((qei,nWe)=>{"use strict";var Jhr=N_();nWe.exports=Qhr;function Qhr(e,t,r){if(!e||e.length==null)throw Error("Argument should be an array");t==null&&(t=1),r==null&&(r=Jhr(e,t));for(var i=0;i{"use strict";oWe.exports=function(){var e,t;if(typeof WeakMap!="function")return!1;try{e=new WeakMap([[t={},"one"],[{},"two"],[{},"three"]])}catch(r){return!1}return!(String(e)!=="[object WeakMap]"||typeof e.set!="function"||e.set({},1)!==e||typeof e.delete!="function"||typeof e.has!="function"||e.get(t)!=="one")}});var uWe=K((Nei,lWe)=>{"use strict";lWe.exports=function(){}});var j2=K((Vei,fWe)=>{"use strict";var e0r=uWe()();fWe.exports=function(e){return e!==e0r&&e!==null}});var Yee=K((Uei,hWe)=>{"use strict";var t0r=Object.create,r0r=Object.getPrototypeOf,cWe={};hWe.exports=function(){var e=Object.setPrototypeOf,t=arguments[0]||t0r;return typeof e!="function"?!1:r0r(e(t(null),cWe))===cWe}});var Xee=K((Gei,dWe)=>{"use strict";var i0r=j2(),n0r={function:!0,object:!0};dWe.exports=function(e){return i0r(e)&&n0r[typeof e]||!1}});var qy=K((Hei,pWe)=>{"use strict";var a0r=j2();pWe.exports=function(e){if(!a0r(e))throw new TypeError("Cannot use null or undefined");return e}});var mWe=K((jei,vWe)=>{"use strict";var Zee=Object.create,iB;Yee()()||(iB=Kee());vWe.exports=(function(){var e,t,r;return!iB||iB.level!==1?Zee:(e={},t={},r={configurable:!1,enumerable:!1,writable:!0,value:void 0},Object.getOwnPropertyNames(Object.prototype).forEach(function(i){if(i==="__proto__"){t[i]={configurable:!0,enumerable:!1,writable:!0,value:void 0};return}t[i]=r}),Object.defineProperties(e,t),Object.defineProperty(iB,"nullPolyfill",{configurable:!1,enumerable:!1,writable:!1,value:e}),function(i,n){return Zee(i===null?e:i,n)})})()});var Kee=K((Wei,yWe)=>{"use strict";var o0r=Xee(),s0r=qy(),l0r=Object.prototype.isPrototypeOf,u0r=Object.defineProperty,f0r={configurable:!0,enumerable:!1,writable:!0,value:void 0},nB;nB=function(e,t){if(s0r(e),t===null||o0r(t))return e;throw new TypeError("Prototype must be null or an object")};yWe.exports=(function(e){var t,r;return e?(e.level===2?e.set?(r=e.set,t=function(i,n){return r.call(nB(i,n),n),i}):t=function(i,n){return nB(i,n).__proto__=n,i}:t=function i(n,a){var o;return nB(n,a),o=l0r.call(i.nullPolyfill,n),o&&delete i.nullPolyfill.__proto__,a===null&&(a=i.nullPolyfill),n.__proto__=a,o&&u0r(i.nullPolyfill,"__proto__",f0r),n},Object.defineProperty(t,"level",{configurable:!1,enumerable:!1,writable:!1,value:e.level})):null})((function(){var e=Object.create(null),t={},r,i=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__");if(i){try{r=i.set,r.call(e,t)}catch(n){}if(Object.getPrototypeOf(e)===t)return{set:r,level:2}}return e.__proto__=t,Object.getPrototypeOf(e)===t?{level:2}:(e={},e.__proto__=t,Object.getPrototypeOf(e)===t?{level:1}:!1)})());mWe()});var aB=K(($ei,gWe)=>{"use strict";gWe.exports=Yee()()?Object.setPrototypeOf:Kee()});var bWe=K((Yei,xWe)=>{"use strict";var c0r=Xee();xWe.exports=function(e){if(!c0r(e))throw new TypeError(e+" is not an Object");return e}});var wWe=K((Xei,_We)=>{"use strict";var h0r=Object.create(null),d0r=Math.random;_We.exports=function(){var e;do e=d0r().toString(36).slice(2);while(h0r[e]);return e}});var j_=K((Zei,AWe)=>{"use strict";var p0r=void 0;AWe.exports=function(e){return e!==p0r&&e!==null}});var Jee=K((Kei,TWe)=>{"use strict";var v0r=j_(),m0r={object:!0,function:!0,undefined:!0};TWe.exports=function(e){return v0r(e)?hasOwnProperty.call(m0r,typeof e):!1}});var SWe=K((Jei,MWe)=>{"use strict";var y0r=Jee();MWe.exports=function(e){if(!y0r(e))return!1;try{return e.constructor?e.constructor.prototype===e:!1}catch(t){return!1}}});var kWe=K((Qei,EWe)=>{"use strict";var g0r=SWe();EWe.exports=function(e){if(typeof e!="function"||!hasOwnProperty.call(e,"length"))return!1;try{if(typeof e.length!="number"||typeof e.call!="function"||typeof e.apply!="function")return!1}catch(t){return!1}return!g0r(e)}});var Qee=K((eti,CWe)=>{"use strict";var x0r=kWe(),b0r=/^\s*class[\s{/}]/,_0r=Function.prototype.toString;CWe.exports=function(e){return!(!x0r(e)||b0r.test(_0r.call(e)))}});var FWe=K((tti,DWe)=>{"use strict";DWe.exports=function(){var e=Object.assign,t;return typeof e!="function"?!1:(t={foo:"raz"},e(t,{bar:"dwa"},{trzy:"trzy"}),t.foo+t.bar+t.trzy==="razdwatrzy")}});var PWe=K((rti,LWe)=>{"use strict";LWe.exports=function(){try{return Object.keys("primitive"),!0}catch(e){return!1}}});var IWe=K((iti,zWe)=>{"use strict";var w0r=j2(),A0r=Object.keys;zWe.exports=function(e){return A0r(w0r(e)?Object(e):e)}});var BWe=K((nti,RWe)=>{"use strict";RWe.exports=PWe()()?Object.keys:IWe()});var OWe=K((ati,qWe)=>{"use strict";var T0r=BWe(),M0r=qy(),S0r=Math.max;qWe.exports=function(e,t){var r,i,n=S0r(arguments.length,2),a;for(e=Object(M0r(e)),a=function(o){try{e[o]=t[o]}catch(s){r||(r=s)}},i=1;i{"use strict";NWe.exports=FWe()()?Object.assign:OWe()});var ete=K((sti,VWe)=>{"use strict";var E0r=j2(),k0r=Array.prototype.forEach,C0r=Object.create,D0r=function(e,t){var r;for(r in e)t[r]=e[r]};VWe.exports=function(e){var t=C0r(null);return k0r.call(arguments,function(r){E0r(r)&&D0r(Object(r),t)}),t}});var GWe=K((lti,UWe)=>{"use strict";var tte="razdwatrzy";UWe.exports=function(){return typeof tte.contains!="function"?!1:tte.contains("dwa")===!0&&tte.contains("foo")===!1}});var jWe=K((uti,HWe)=>{"use strict";var F0r=String.prototype.indexOf;HWe.exports=function(e){return F0r.call(this,e,arguments[1])>-1}});var rte=K((fti,WWe)=>{"use strict";WWe.exports=GWe()()?String.prototype.contains:jWe()});var Oy=K((cti,ZWe)=>{"use strict";var sB=j_(),$We=Qee(),YWe=oB(),XWe=ete(),XE=rte(),L0r=ZWe.exports=function(e,t){var r,i,n,a,o;return arguments.length<2||typeof e!="string"?(a=t,t=e,e=null):a=arguments[2],sB(e)?(r=XE.call(e,"c"),i=XE.call(e,"e"),n=XE.call(e,"w")):(r=n=!0,i=!1),o={value:t,configurable:r,enumerable:i,writable:n},a?YWe(XWe(a),o):o};L0r.gs=function(e,t,r){var i,n,a,o;return typeof e!="string"?(a=r,r=t,t=e,e=null):a=arguments[3],sB(t)?$We(t)?sB(r)?$We(r)||(a=r,r=void 0):r=void 0:(a=t,t=r=void 0):t=void 0,sB(e)?(i=XE.call(e,"c"),n=XE.call(e,"e")):(i=!0,n=!1),o={get:t,set:r,configurable:i,enumerable:n},a?YWe(XWe(a),o):o}});var ZE=K((hti,JWe)=>{"use strict";var KWe=Object.prototype.toString,P0r=KWe.call((function(){return arguments})());JWe.exports=function(e){return KWe.call(e)===P0r}});var KE=K((dti,e$e)=>{"use strict";var QWe=Object.prototype.toString,z0r=QWe.call("");e$e.exports=function(e){return typeof e=="string"||e&&typeof e=="object"&&(e instanceof String||QWe.call(e)===z0r)||!1}});var r$e=K((pti,t$e)=>{"use strict";t$e.exports=function(){return typeof globalThis!="object"||!globalThis?!1:globalThis.Array===Array}});var a$e=K((vti,n$e)=>{var i$e=function(){if(typeof self=="object"&&self)return self;if(typeof window=="object"&&window)return window;throw new Error("Unable to resolve global `this`")};n$e.exports=(function(){if(this)return this;try{Object.defineProperty(Object.prototype,"__global__",{get:function(){return this},configurable:!0})}catch(e){return i$e()}try{return __global__||i$e()}finally{delete Object.prototype.__global__}})()});var JE=K((mti,o$e)=>{"use strict";o$e.exports=r$e()()?globalThis:a$e()});var l$e=K((yti,s$e)=>{"use strict";var I0r=JE(),ite={object:!0,symbol:!0};s$e.exports=function(){var e=I0r.Symbol,t;if(typeof e!="function")return!1;t=e("test symbol");try{String(t)}catch(r){return!1}return!(!ite[typeof e.iterator]||!ite[typeof e.toPrimitive]||!ite[typeof e.toStringTag])}});var f$e=K((gti,u$e)=>{"use strict";u$e.exports=function(e){return e?typeof e=="symbol"?!0:!e.constructor||e.constructor.name!=="Symbol"?!1:e[e.constructor.toStringTag]==="Symbol":!1}});var nte=K((xti,c$e)=>{"use strict";var R0r=f$e();c$e.exports=function(e){if(!R0r(e))throw new TypeError(e+" is not a symbol");return e}});var m$e=K((bti,v$e)=>{"use strict";var h$e=Oy(),B0r=Object.create,d$e=Object.defineProperty,q0r=Object.prototype,p$e=B0r(null);v$e.exports=function(e){for(var t=0,r,i;p$e[e+(t||"")];)++t;return e+=t||"",p$e[e]=!0,r="@@"+e,d$e(q0r,r,h$e.gs(null,function(n){i||(i=!0,d$e(this,r,h$e(n)),i=!1)})),r}});var g$e=K((_ti,y$e)=>{"use strict";var b1=Oy(),Xc=JE().Symbol;y$e.exports=function(e){return Object.defineProperties(e,{hasInstance:b1("",Xc&&Xc.hasInstance||e("hasInstance")),isConcatSpreadable:b1("",Xc&&Xc.isConcatSpreadable||e("isConcatSpreadable")),iterator:b1("",Xc&&Xc.iterator||e("iterator")),match:b1("",Xc&&Xc.match||e("match")),replace:b1("",Xc&&Xc.replace||e("replace")),search:b1("",Xc&&Xc.search||e("search")),species:b1("",Xc&&Xc.species||e("species")),split:b1("",Xc&&Xc.split||e("split")),toPrimitive:b1("",Xc&&Xc.toPrimitive||e("toPrimitive")),toStringTag:b1("",Xc&&Xc.toStringTag||e("toStringTag")),unscopables:b1("",Xc&&Xc.unscopables||e("unscopables"))})}});var _$e=K((wti,b$e)=>{"use strict";var x$e=Oy(),O0r=nte(),QE=Object.create(null);b$e.exports=function(e){return Object.defineProperties(e,{for:x$e(function(t){return QE[t]?QE[t]:QE[t]=e(String(t))}),keyFor:x$e(function(t){var r;O0r(t);for(r in QE)if(QE[r]===t)return r})})}});var T$e=K((Ati,A$e)=>{"use strict";var km=Oy(),ate=nte(),lB=JE().Symbol,N0r=m$e(),V0r=g$e(),U0r=_$e(),G0r=Object.create,ote=Object.defineProperties,uB=Object.defineProperty,Z0,a5,w$e;if(typeof lB=="function")try{String(lB()),w$e=!0}catch(e){}else lB=null;a5=function(t){if(this instanceof a5)throw new TypeError("Symbol is not a constructor");return Z0(t)};A$e.exports=Z0=function e(t){var r;if(this instanceof e)throw new TypeError("Symbol is not a constructor");return w$e?lB(t):(r=G0r(a5.prototype),t=t===void 0?"":String(t),ote(r,{__description__:km("",t),__name__:km("",N0r(t))}))};V0r(Z0);U0r(Z0);ote(a5.prototype,{constructor:km(Z0),toString:km("",function(){return this.__name__})});ote(Z0.prototype,{toString:km(function(){return"Symbol ("+ate(this).__description__+")"}),valueOf:km(function(){return ate(this)})});uB(Z0.prototype,Z0.toPrimitive,km("",function(){var e=ate(this);return typeof e=="symbol"?e:e.toString()}));uB(Z0.prototype,Z0.toStringTag,km("c","Symbol"));uB(a5.prototype,Z0.toStringTag,km("c",Z0.prototype[Z0.toStringTag]));uB(a5.prototype,Z0.toPrimitive,km("c",Z0.prototype[Z0.toPrimitive]))});var W2=K((Tti,M$e)=>{"use strict";M$e.exports=l$e()()?JE().Symbol:T$e()});var E$e=K((Mti,S$e)=>{"use strict";var H0r=qy();S$e.exports=function(){return H0r(this).length=0,this}});var o5=K((Sti,k$e)=>{"use strict";k$e.exports=function(e){if(typeof e!="function")throw new TypeError(e+" is not a function");return e}});var D$e=K((Eti,C$e)=>{"use strict";var j0r=j_(),W0r=Jee(),$0r=Object.prototype.toString;C$e.exports=function(e){if(!j0r(e))return null;if(W0r(e)){var t=e.toString;if(typeof t!="function"||t===$0r)return null}try{return""+e}catch(r){return null}}});var L$e=K((kti,F$e)=>{"use strict";F$e.exports=function(e){try{return e.toString()}catch(t){try{return String(e)}catch(r){return null}}}});var z$e=K((Cti,P$e)=>{"use strict";var Y0r=L$e(),X0r=/[\n\r\u2028\u2029]/g;P$e.exports=function(e){var t=Y0r(e);return t===null?"":(t.length>100&&(t=t.slice(0,99)+"\u2026"),t=t.replace(X0r,function(r){switch(r){case` -`:return"\\n";case"\r":return"\\r";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw new Error("Unexpected character")}}),t)}});var R$e=K((Dti,I$e)=>{"use strict";var Z0r=D$e(),K0r=z$e();I$e.exports=function(e,t,r){r&&r.errorMessage&&(e=Z0r(r.errorMessage));var i=e.indexOf("%v"),n=i>-1?K0r(t):null;if(r&&r.name){var a=e.indexOf("%n");if(a>-1){if(i>-1){var o,s,l,u;return a>i?(o=n,l=i,s=r.name,u=a):(o=r.name,l=a,s=n,u=i),e.slice(0,l)+o+e.slice(l+2,u)+s+e.slice(u+2)}return e.slice(0,a)+r.name+e.slice(a+2)}}return i>-1?e.slice(0,i)+n+e.slice(i+2):e}});var ste=K((Fti,B$e)=>{"use strict";var J0r=j_(),Q0r=R$e();B$e.exports=function(e,t,r){if(r&&!J0r(e)){if("default"in r)return r.default;if(r.isOptional)return null}var i=r&&r.Error||TypeError,n=new i(Q0r(t,e,r));throw r&&r.errorCode&&(n.code=r.errorCode),n}});var O$e=K((Lti,q$e)=>{"use strict";var edr=ste(),tdr=j_();q$e.exports=function(e){if(tdr(e))return e;var t=arguments[1],r=t&&t.name?"Expected a value for %n, received %v":"Cannot use %v";return edr(e,r,t)}});var V$e=K((Pti,N$e)=>{"use strict";var rdr=ste(),idr=Qee();N$e.exports=function(e){if(idr(e))return e;var t=arguments[1],r=t&&t.name?"Expected a plain function for %n, received %v":"%v is not a plain function";return rdr(e,r,t)}});var G$e=K((zti,U$e)=>{"use strict";U$e.exports=function(){var e=Array.from,t,r;return typeof e!="function"?!1:(t=["raz","dwa"],r=e(t),!!(r&&r!==t&&r[1]==="dwa"))}});var j$e=K((Iti,H$e)=>{"use strict";var ndr=Object.prototype.toString,adr=RegExp.prototype.test.bind(/^[object [A-Za-z0-9]*Function]$/);H$e.exports=function(e){return typeof e=="function"&&adr(ndr.call(e))}});var $$e=K((Rti,W$e)=>{"use strict";W$e.exports=function(){var e=Math.sign;return typeof e!="function"?!1:e(10)===1&&e(-20)===-1}});var X$e=K((Bti,Y$e)=>{"use strict";Y$e.exports=function(e){return e=Number(e),isNaN(e)||e===0?e:e>0?1:-1}});var K$e=K((qti,Z$e)=>{"use strict";Z$e.exports=$$e()()?Math.sign:X$e()});var Q$e=K((Oti,J$e)=>{"use strict";var odr=K$e(),sdr=Math.abs,ldr=Math.floor;J$e.exports=function(e){return isNaN(e)?0:(e=Number(e),e===0||!isFinite(e)?e:odr(e)*ldr(sdr(e)))}});var tYe=K((Nti,eYe)=>{"use strict";var udr=Q$e(),fdr=Math.max;eYe.exports=function(e){return fdr(0,udr(e))}});var aYe=K((Vti,nYe)=>{"use strict";var cdr=W2().iterator,hdr=ZE(),ddr=j$e(),pdr=tYe(),rYe=o5(),vdr=qy(),mdr=j2(),ydr=KE(),iYe=Array.isArray,lte=Function.prototype.call,W_={configurable:!0,enumerable:!0,writable:!0,value:null},ute=Object.defineProperty;nYe.exports=function(e){var t=arguments[1],r=arguments[2],i,n,a,o,s,l,u,f,c,h;if(e=Object(vdr(e)),mdr(t)&&rYe(t),!this||this===Array||!ddr(this)){if(!t){if(hdr(e))return s=e.length,s!==1?Array.apply(null,e):(o=new Array(1),o[0]=e[0],o);if(iYe(e)){for(o=new Array(s=e.length),n=0;n=55296&&l<=56319&&(h+=e[++n])),h=t?lte.call(t,r,h,a):h,i?(W_.value=h,ute(o,a,W_)):o[a]=h,++a;s=a}}if(s===void 0)for(s=pdr(e.length),i&&(o=new i(s)),n=0;n{"use strict";oYe.exports=G$e()()?Array.from:aYe()});var uYe=K((Gti,lYe)=>{"use strict";var gdr=sYe(),xdr=oB(),bdr=qy();lYe.exports=function(e){var t=Object(bdr(e)),r=arguments[1],i=Object(arguments[2]);if(t!==e&&!r)return t;var n={};return r?gdr(r,function(a){(i.ensure||a in e)&&(n[a]=e[a])}):xdr(n,e),n}});var hYe=K((Hti,cYe)=>{"use strict";var _dr=o5(),wdr=qy(),Adr=Function.prototype.bind,fYe=Function.prototype.call,Tdr=Object.keys,Mdr=Object.prototype.propertyIsEnumerable;cYe.exports=function(e,t){return function(r,i){var n,a=arguments[2],o=arguments[3];return r=Object(wdr(r)),_dr(i),n=Tdr(r),o&&n.sort(typeof o=="function"?Adr.call(o,r):void 0),typeof e!="function"&&(e=n[e]),fYe.call(e,n,function(s,l){return Mdr.call(r,s)?fYe.call(i,a,r[s],s,r,l):t})}}});var pYe=K((jti,dYe)=>{"use strict";dYe.exports=hYe()("forEach")});var mYe=K((Wti,vYe)=>{"use strict";var Sdr=o5(),Edr=pYe(),kdr=Function.prototype.call;vYe.exports=function(e,t){var r={},i=arguments[2];return Sdr(t),Edr(e,function(n,a,o,s){r[a]=kdr.call(t,i,n,a,o,s)}),r}});var bYe=K(($ti,xYe)=>{"use strict";var Cdr=j_(),Ddr=O$e(),yYe=V$e(),Fdr=uYe(),Ldr=ete(),Pdr=mYe(),zdr=Function.prototype.bind,Idr=Object.defineProperty,Rdr=Object.prototype.hasOwnProperty,gYe;gYe=function(e,t,r){var i=Ddr(t)&&yYe(t.value),n;return n=Fdr(t),delete n.writable,delete n.value,n.get=function(){return!r.overwriteDefinition&&Rdr.call(this,e)?i:(t.value=zdr.call(i,r.resolveContext?r.resolveContext(this):this),Idr(this,e,t),this[e])},n};xYe.exports=function(e){var t=Ldr(arguments[1]);return Cdr(t.resolveContext)&&yYe(t.resolveContext),Pdr(e,function(r,i){return gYe(i,r,t)})}});var fte=K((Yti,TYe)=>{"use strict";var Bdr=E$e(),qdr=oB(),Odr=o5(),Ndr=qy(),Bd=Oy(),Vdr=bYe(),_Ye=W2(),wYe=Object.defineProperty,AYe=Object.defineProperties,ek;TYe.exports=ek=function(e,t){if(!(this instanceof ek))throw new TypeError("Constructor requires 'new'");AYe(this,{__list__:Bd("w",Ndr(e)),__context__:Bd("w",t),__nextIndex__:Bd("w",0)}),t&&(Odr(t.on),t.on("_add",this._onAdd),t.on("_delete",this._onDelete),t.on("_clear",this._onClear))};delete ek.prototype.constructor;AYe(ek.prototype,qdr({_next:Bd(function(){var e;if(this.__list__){if(this.__redo__&&(e=this.__redo__.shift(),e!==void 0))return e;if(this.__nextIndex__=this.__nextIndex__)){if(++this.__nextIndex__,!this.__redo__){wYe(this,"__redo__",Bd("c",[e]));return}this.__redo__.forEach(function(t,r){t>=e&&(this.__redo__[r]=++t)},this),this.__redo__.push(e)}}),_onDelete:Bd(function(e){var t;e>=this.__nextIndex__||(--this.__nextIndex__,this.__redo__&&(t=this.__redo__.indexOf(e),t!==-1&&this.__redo__.splice(t,1),this.__redo__.forEach(function(r,i){r>e&&(this.__redo__[i]=--r)},this)))}),_onClear:Bd(function(){this.__redo__&&Bdr.call(this.__redo__),this.__nextIndex__=0})})));wYe(ek.prototype,_Ye.iterator,Bd(function(){return this}))});var CYe=K((Xti,kYe)=>{"use strict";var MYe=aB(),SYe=rte(),cte=Oy(),Udr=W2(),hte=fte(),EYe=Object.defineProperty,s5;s5=kYe.exports=function(e,t){if(!(this instanceof s5))throw new TypeError("Constructor requires 'new'");hte.call(this,e),t?SYe.call(t,"key+value")?t="key+value":SYe.call(t,"key")?t="key":t="value":t="value",EYe(this,"__kind__",cte("",t))};MYe&&MYe(s5,hte);delete s5.prototype.constructor;s5.prototype=Object.create(hte.prototype,{_resolve:cte(function(e){return this.__kind__==="value"?this.__list__[e]:this.__kind__==="key+value"?[e,this.__list__[e]]:e})});EYe(s5.prototype,Udr.toStringTag,cte("c","Array Iterator"))});var PYe=K((Zti,LYe)=>{"use strict";var DYe=aB(),fB=Oy(),Gdr=W2(),dte=fte(),FYe=Object.defineProperty,l5;l5=LYe.exports=function(e){if(!(this instanceof l5))throw new TypeError("Constructor requires 'new'");e=String(e),dte.call(this,e),FYe(this,"__length__",fB("",e.length))};DYe&&DYe(l5,dte);delete l5.prototype.constructor;l5.prototype=Object.create(dte.prototype,{_next:fB(function(){if(this.__list__){if(this.__nextIndex__=55296&&r<=56319?t+this.__list__[this.__nextIndex__++]:t)})});FYe(l5.prototype,Gdr.toStringTag,fB("c","String Iterator"))});var IYe=K((Kti,zYe)=>{"use strict";var Hdr=ZE(),jdr=j2(),Wdr=KE(),$dr=W2().iterator,Ydr=Array.isArray;zYe.exports=function(e){return jdr(e)?Ydr(e)||Wdr(e)||Hdr(e)?!0:typeof e[$dr]=="function":!1}});var BYe=K((Jti,RYe)=>{"use strict";var Xdr=IYe();RYe.exports=function(e){if(!Xdr(e))throw new TypeError(e+" is not iterable");return e}});var pte=K((Qti,NYe)=>{"use strict";var Zdr=ZE(),Kdr=KE(),qYe=CYe(),Jdr=PYe(),Qdr=BYe(),OYe=W2().iterator;NYe.exports=function(e){return typeof Qdr(e)[OYe]=="function"?e[OYe]():Zdr(e)?new qYe(e):Kdr(e)?new Jdr(e):new qYe(e)}});var UYe=K((eri,VYe)=>{"use strict";var epr=ZE(),tpr=o5(),rpr=KE(),ipr=pte(),npr=Array.isArray,vte=Function.prototype.call,apr=Array.prototype.some;VYe.exports=function(e,t){var r,i=arguments[2],n,a,o,s,l,u,f;if(npr(e)||epr(e)?r="array":rpr(e)?r="string":e=ipr(e),tpr(t),a=function(){o=!0},r==="array"){apr.call(e,function(c){return vte.call(t,i,c,a),o});return}if(r==="string"){for(l=e.length,s=0;s=55296&&f<=56319&&(u+=e[++s])),vte.call(t,i,u,a),!o);++s);return}for(n=e.next();!n.done;){if(vte.call(t,i,n.value,a),o)return;n=e.next()}}});var HYe=K((tri,GYe)=>{"use strict";GYe.exports=(function(){return typeof WeakMap!="function"?!1:Object.prototype.toString.call(new WeakMap)==="[object WeakMap]"})()});var $Ye=K((rri,WYe)=>{"use strict";var opr=j2(),hB=aB(),cB=bWe(),spr=qy(),lpr=wWe(),Ny=Oy(),upr=pte(),fpr=UYe(),cpr=W2().toStringTag,jYe=HYe(),hpr=Array.isArray,yte=Object.defineProperty,mte=Object.prototype.hasOwnProperty,dpr=Object.getPrototypeOf,$2;WYe.exports=$2=function(){var e=arguments[0],t;if(!(this instanceof $2))throw new TypeError("Constructor requires 'new'");return t=jYe&&hB&&WeakMap!==$2?hB(new WeakMap,dpr(this)):this,opr(e)&&(hpr(e)||(e=upr(e))),yte(t,"__weakMapData__",Ny("c","$weakMap$"+lpr())),e&&fpr(e,function(r){spr(r),t.set(r[0],r[1])}),t};jYe&&(hB&&hB($2,WeakMap),$2.prototype=Object.create(WeakMap.prototype,{constructor:Ny($2)}));Object.defineProperties($2.prototype,{delete:Ny(function(e){return mte.call(cB(e),this.__weakMapData__)?(delete e[this.__weakMapData__],!0):!1}),get:Ny(function(e){if(mte.call(cB(e),this.__weakMapData__))return e[this.__weakMapData__]}),has:Ny(function(e){return mte.call(cB(e),this.__weakMapData__)}),set:Ny(function(e,t){return yte(cB(e),this.__weakMapData__,Ny("c",t)),this}),toString:Ny(function(){return"[object WeakMap]"})});yte($2.prototype,cpr,Ny("c","WeakMap"))});var gte=K((iri,YYe)=>{"use strict";YYe.exports=sWe()()?WeakMap:$Ye()});var ZYe=K((nri,XYe)=>{"use strict";XYe.exports=function(e,t,r){if(typeof Array.prototype.findIndex=="function")return e.findIndex(t,r);if(typeof t!="function")throw new TypeError("predicate must be a function");var i=Object(e),n=i.length;if(n===0)return-1;for(var a=0;a{"use strict";var dB=HE(),ppr=N_(),bte=Mh(),vpr=Em(),mpr=V_(),KYe=iWe(),ypr=aWe(),{float32:gpr,fract32:xte}=ZR(),xpr=gte(),JYe=K4(),bpr=ZYe(),_pr=` +`]),this.drawCircle=e(d)}o0.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};o0.prototype.render=function(){return arguments.length&&this.update(...arguments),this.draw(),this};o0.prototype.draw=function(){for(var e=arguments.length,t=new Array(e),r=0;r{this.drawItem(a)});return this};o0.prototype.drawItem=function(e,t){let{groups:r}=this,i=r[e];if(typeof t=="number"&&(e=t,i=r[t],t=null),!(i&&i.count&&i.opacity))return;i.activation[0]&&this.drawCircle(this.getMarkerDrawOptions(0,i,t));let n=[];for(let a=1;a{let c=i[f];if(u===void 0)return c;u===null?u={positions:null}:typeof u=="function"?u={ondraw:u}:typeof u[0]=="number"&&(u={positions:u}),u=Bhr(u,{positions:"positions data points",snap:"snap cluster lod tree",size:"sizes size radius",borderSize:"borderSizes borderSize border-size bordersize borderWidth borderWidths border-width borderwidth stroke-width strokeWidth strokewidth outline",color:"colors color fill fill-color fillColor",borderColor:"borderColors borderColor stroke stroke-color strokeColor",marker:"markers marker shape",range:"range dataBox databox",viewport:"viewport viewPort viewBox viewbox",opacity:"opacity alpha transparency",bounds:"bound bounds boundaries limits",tooManyColors:"tooManyColors palette paletteMode optimizePalette enablePalette"}),u.positions===null&&(u.positions=[]),u.tooManyColors!=null&&(this.tooManyColors=u.tooManyColors),c||(i[f]=c={id:f,scale:null,translate:null,scaleFract:null,translateFract:null,activation:[],selectionBuffer:a.buffer({data:new Uint8Array(0),usage:"stream",type:"uint8"}),sizeBuffer:a.buffer({data:new Uint8Array(0),usage:"dynamic",type:"uint8"}),colorBuffer:a.buffer({data:new Uint8Array(0),usage:"dynamic",type:"uint8"}),positionBuffer:a.buffer({data:new Uint8Array(0),usage:"dynamic",type:"float"}),positionFractBuffer:a.buffer({data:new Uint8Array(0),usage:"dynamic",type:"float"})},u=Object.assign({},o0.defaults,u)),u.positions&&!("marker"in u)&&(u.marker=c.marker,delete c.marker),u.marker&&!("positions"in u)&&(u.positions=c.positions,delete c.positions);let h=0,d=0;if(qhr(c,u,[{snap:!0,size:(p,v)=>(p==null&&(p=o0.defaults.size),h+=p&&p.length?1:0,p),borderSize:(p,v)=>(p==null&&(p=o0.defaults.borderSize),h+=p&&p.length?1:0,p),opacity:parseFloat,color:(p,v)=>(p==null&&(p=o0.defaults.color),p=this.updateColor(p),d++,p),borderColor:(p,v)=>(p==null&&(p=o0.defaults.borderColor),p=this.updateColor(p),d++,p),bounds:(p,v,y)=>("range"in y||(y.range=null),p),positions:(p,v,y)=>{let{snap:m}=v,{positionBuffer:w,positionFractBuffer:_,selectionBuffer:b}=v;if(p.x||p.y)return p.x.length?v.xAttr={buffer:a.buffer(p.x),offset:0,stride:4,count:p.x.length}:v.xAttr={buffer:p.x.buffer,offset:p.x.offset*4||0,stride:(p.x.stride||1)*4,count:p.x.count},p.y.length?v.yAttr={buffer:a.buffer(p.y),offset:0,stride:4,count:p.y.length}:v.yAttr={buffer:p.y.buffer,offset:p.y.offset*4||0,stride:(p.y.stride||1)*4,count:p.y.count},v.count=Math.max(v.xAttr.count,v.yAttr.count),p;p=Ohr(p,"float64");let M=v.count=Math.floor(p.length/2),x=v.bounds=M?zhr(p,2):null;if(!y.range&&!v.range&&(delete v.range,y.range=x),!y.marker&&!v.marker&&(delete v.marker,y.marker=null),m&&(m===!0||M>m)?v.tree=Rhr(p,{bounds:x}):m&&m.length&&(v.tree=m),v.tree){let g={primitive:"points",usage:"static",data:v.tree,type:"uint32"};v.elements?v.elements(g):v.elements=a.elements(g)}var T=nB.float32(p);w({data:T,usage:"dynamic"});var A=nB.fract32(p,T);return _({data:A,usage:"dynamic"}),b({data:new Uint8Array(M),type:"uint8",usage:"stream"}),p}},{marker:(p,v,y)=>{let{activation:m}=v;if(m.forEach(w=>w&&w.destroy&&w.destroy()),m.length=0,!p||typeof p[0]=="number"){let w=this.addMarker(p);m[w]=!0}else{let w=[];for(let _=0,b=Math.min(p.length,v.count);_{let m=v.bounds;if(m)return p||(p=m),v.scale=[1/(p[2]-p[0]),1/(p[3]-p[1])],v.translate=[-p[0],-p[1]],v.scaleFract=nB.fract(v.scale),v.translateFract=nB.fract(v.translate),p},viewport:p=>Nhr(p||[n.drawingBufferWidth,n.drawingBufferHeight])}]),h){let{count:p,size:v,borderSize:y,sizeBuffer:m}=c,w=new Uint8Array(p*2);if(v.length||y.length)for(let _=0;_=0)return n;let a;if(e instanceof Uint8Array||e instanceof Uint8ClampedArray)a=e;else{a=new Uint8Array(e.length);for(let s=0,l=e.length;si*4&&(this.tooManyColors=!0),this.updatePalette(r),n.length===1?n[0]:n};o0.prototype.updatePalette=function(e){if(this.tooManyColors)return;let{maxColors:t,paletteTexture:r}=this,i=Math.ceil(e.length*.25/t);if(i>1){e=e.slice();for(let n=e.length*.25%t;n{e.sizeBuffer.destroy(),e.positionBuffer.destroy(),e.positionFractBuffer.destroy(),e.colorBuffer.destroy(),e.activation.forEach(t=>t&&t.destroy&&t.destroy()),e.selectionBuffer.destroy(),e.elements&&e.elements.destroy()}),this.groups.length=0,this.paletteTexture.destroy(),this.markerTextures.forEach(e=>e&&e.destroy&&e.destroy()),this};var Uhr=function(e,t){var r=new Vhr(e,t),i=r.render.bind(r);return Object.assign(i,{render:i,update:r.update.bind(r),draw:r.draw.bind(r),destroy:r.destroy.bind(r),regl:r.regl,gl:r.gl,canvas:r.gl.canvas,groups:r.groups,markers:r.markerCache,palette:r.palette}),i};nWe.exports=Uhr});var Sh=K((Zei,oWe)=>{"use strict";var aWe=Object.getOwnPropertySymbols,Ghr=Object.prototype.hasOwnProperty,Hhr=Object.prototype.propertyIsEnumerable;function jhr(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function Whr(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;var i=Object.getOwnPropertyNames(t).map(function(a){return t[a]});if(i.join("")!=="0123456789")return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach(function(a){n[a]=a}),Object.keys(Object.assign({},n)).join("")==="abcdefghijklmnopqrst"}catch(a){return!1}}oWe.exports=Whr()?Object.assign:function(e,t){for(var r,i=jhr(e),n,a=1;a{"use strict";tte.exports=sB;tte.exports.default=sB;function sB(e,t,r){r=r||2;var i=t&&t.length,n=i?t[0]*r:e.length,a=lWe(e,0,n,r,!0),o=[];if(!a||a.next===a.prev)return o;var s,l,u,f,c,h,d;if(i&&(a=Khr(e,t,a,r)),e.length>80*r){s=u=e[0],l=f=e[1];for(var p=r;pu&&(u=c),h>f&&(f=h);d=Math.max(u-s,f-l),d=d!==0?32767/d:0}return YE(a,o,r,s,l,d,0),o}function lWe(e,t,r,i,n){var a,o;if(n===ete(e,t,r,i)>0)for(a=t;a=t;a-=i)o=sWe(a,e[a],e[a+1],o);return o&&lB(o,o.next)&&(ZE(o),o=o.next),o}function $_(e,t){if(!e)return e;t||(t=e);var r=e,i;do if(i=!1,!r.steiner&&(lB(r,r.next)||qc(r.prev,r,r.next)===0)){if(ZE(r),r=t=r.prev,r===r.next)break;i=!0}else r=r.next;while(i||r!==t);return t}function YE(e,t,r,i,n,a,o){if(e){!o&&a&&r0r(e,i,n,a);for(var s=e,l,u;e.prev!==e.next;){if(l=e.prev,u=e.next,a?Yhr(e,i,n,a):$hr(e)){t.push(l.i/r|0),t.push(e.i/r|0),t.push(u.i/r|0),ZE(e),e=u.next,s=u.next;continue}if(e=u,e===s){o?o===1?(e=Xhr($_(e),t,r),YE(e,t,r,i,n,a,2)):o===2&&Zhr(e,t,r,i,n,a):YE($_(e),t,r,i,n,a,1);break}}}}function $hr(e){var t=e.prev,r=e,i=e.next;if(qc(t,r,i)>=0)return!1;for(var n=t.x,a=r.x,o=i.x,s=t.y,l=r.y,u=i.y,f=na?n>o?n:o:a>o?a:o,d=s>l?s>u?s:u:l>u?l:u,p=i.next;p!==t;){if(p.x>=f&&p.x<=h&&p.y>=c&&p.y<=d&&a5(n,s,a,l,o,u,p.x,p.y)&&qc(p.prev,p,p.next)>=0)return!1;p=p.next}return!0}function Yhr(e,t,r,i){var n=e.prev,a=e,o=e.next;if(qc(n,a,o)>=0)return!1;for(var s=n.x,l=a.x,u=o.x,f=n.y,c=a.y,h=o.y,d=sl?s>u?s:u:l>u?l:u,y=f>c?f>h?f:h:c>h?c:h,m=Jee(d,p,t,r,i),w=Jee(v,y,t,r,i),_=e.prevZ,b=e.nextZ;_&&_.z>=m&&b&&b.z<=w;){if(_.x>=d&&_.x<=v&&_.y>=p&&_.y<=y&&_!==n&&_!==o&&a5(s,f,l,c,u,h,_.x,_.y)&&qc(_.prev,_,_.next)>=0||(_=_.prevZ,b.x>=d&&b.x<=v&&b.y>=p&&b.y<=y&&b!==n&&b!==o&&a5(s,f,l,c,u,h,b.x,b.y)&&qc(b.prev,b,b.next)>=0))return!1;b=b.nextZ}for(;_&&_.z>=m;){if(_.x>=d&&_.x<=v&&_.y>=p&&_.y<=y&&_!==n&&_!==o&&a5(s,f,l,c,u,h,_.x,_.y)&&qc(_.prev,_,_.next)>=0)return!1;_=_.prevZ}for(;b&&b.z<=w;){if(b.x>=d&&b.x<=v&&b.y>=p&&b.y<=y&&b!==n&&b!==o&&a5(s,f,l,c,u,h,b.x,b.y)&&qc(b.prev,b,b.next)>=0)return!1;b=b.nextZ}return!0}function Xhr(e,t,r){var i=e;do{var n=i.prev,a=i.next.next;!lB(n,a)&&uWe(n,i,i.next,a)&&XE(n,a)&&XE(a,n)&&(t.push(n.i/r|0),t.push(i.i/r|0),t.push(a.i/r|0),ZE(i),ZE(i.next),i=e=a),i=i.next}while(i!==e);return $_(i)}function Zhr(e,t,r,i,n,a){var o=e;do{for(var s=o.next.next;s!==o.prev;){if(o.i!==s.i&&a0r(o,s)){var l=fWe(o,s);o=$_(o,o.next),l=$_(l,l.next),YE(o,t,r,i,n,a,0),YE(l,t,r,i,n,a,0);return}s=s.next}o=o.next}while(o!==e)}function Khr(e,t,r,i){var n=[],a,o,s,l,u;for(a=0,o=t.length;a=r.next.y&&r.next.y!==r.y){var s=r.x+(n-r.y)*(r.next.x-r.x)/(r.next.y-r.y);if(s<=i&&s>a&&(a=s,o=r.x=r.x&&r.x>=u&&i!==r.x&&a5(no.x||r.x===o.x&&t0r(o,r)))&&(o=r,c=h)),r=r.next;while(r!==l);return o}function t0r(e,t){return qc(e.prev,e,t.prev)<0&&qc(t.next,e,e.next)<0}function r0r(e,t,r,i){var n=e;do n.z===0&&(n.z=Jee(n.x,n.y,t,r,i)),n.prevZ=n.prev,n.nextZ=n.next,n=n.next;while(n!==e);n.prevZ.nextZ=null,n.prevZ=null,i0r(n)}function i0r(e){var t,r,i,n,a,o,s,l,u=1;do{for(r=e,e=null,a=null,o=0;r;){for(o++,i=r,s=0,t=0;t0||l>0&&i;)s!==0&&(l===0||!i||r.z<=i.z)?(n=r,r=r.nextZ,s--):(n=i,i=i.nextZ,l--),a?a.nextZ=n:e=n,n.prevZ=a,a=n;r=i}a.nextZ=null,u*=2}while(o>1);return e}function Jee(e,t,r,i,n){return e=(e-r)*n|0,t=(t-i)*n|0,e=(e|e<<8)&16711935,e=(e|e<<4)&252645135,e=(e|e<<2)&858993459,e=(e|e<<1)&1431655765,t=(t|t<<8)&16711935,t=(t|t<<4)&252645135,t=(t|t<<2)&858993459,t=(t|t<<1)&1431655765,e|t<<1}function n0r(e){var t=e,r=e;do(t.x=(e-o)*(a-s)&&(e-o)*(i-s)>=(r-o)*(t-s)&&(r-o)*(a-s)>=(n-o)*(i-s)}function a0r(e,t){return e.next.i!==t.i&&e.prev.i!==t.i&&!o0r(e,t)&&(XE(e,t)&&XE(t,e)&&s0r(e,t)&&(qc(e.prev,e,t.prev)||qc(e,t.prev,t))||lB(e,t)&&qc(e.prev,e,e.next)>0&&qc(t.prev,t,t.next)>0)}function qc(e,t,r){return(t.y-e.y)*(r.x-t.x)-(t.x-e.x)*(r.y-t.y)}function lB(e,t){return e.x===t.x&&e.y===t.y}function uWe(e,t,r,i){var n=oB(qc(e,t,r)),a=oB(qc(e,t,i)),o=oB(qc(r,i,e)),s=oB(qc(r,i,t));return!!(n!==a&&o!==s||n===0&&aB(e,r,t)||a===0&&aB(e,i,t)||o===0&&aB(r,e,i)||s===0&&aB(r,t,i))}function aB(e,t,r){return t.x<=Math.max(e.x,r.x)&&t.x>=Math.min(e.x,r.x)&&t.y<=Math.max(e.y,r.y)&&t.y>=Math.min(e.y,r.y)}function oB(e){return e>0?1:e<0?-1:0}function o0r(e,t){var r=e;do{if(r.i!==e.i&&r.next.i!==e.i&&r.i!==t.i&&r.next.i!==t.i&&uWe(r,r.next,e,t))return!0;r=r.next}while(r!==e);return!1}function XE(e,t){return qc(e.prev,e,e.next)<0?qc(e,t,e.next)>=0&&qc(e,e.prev,t)>=0:qc(e,t,e.prev)<0||qc(e,e.next,t)<0}function s0r(e,t){var r=e,i=!1,n=(e.x+t.x)/2,a=(e.y+t.y)/2;do r.y>a!=r.next.y>a&&r.next.y!==r.y&&n<(r.next.x-r.x)*(a-r.y)/(r.next.y-r.y)+r.x&&(i=!i),r=r.next;while(r!==e);return i}function fWe(e,t){var r=new Qee(e.i,e.x,e.y),i=new Qee(t.i,t.x,t.y),n=e.next,a=t.prev;return e.next=t,t.prev=e,r.next=n,n.prev=r,i.next=r,r.prev=i,a.next=i,i.prev=a,i}function sWe(e,t,r,i){var n=new Qee(e,t,r);return i?(n.next=i.next,n.prev=i,i.next.prev=n,i.next=n):(n.prev=n,n.next=n),n}function ZE(e){e.next.prev=e.prev,e.prev.next=e.next,e.prevZ&&(e.prevZ.nextZ=e.nextZ),e.nextZ&&(e.nextZ.prevZ=e.prevZ)}function Qee(e,t,r){this.i=e,this.x=t,this.y=r,this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1}sB.deviation=function(e,t,r,i){var n=t&&t.length,a=n?t[0]*r:e.length,o=Math.abs(ete(e,0,a,r));if(n)for(var s=0,l=t.length;s0&&(i+=e[n-1].length,r.holes.push(i))}return r}});var dWe=K((Jei,hWe)=>{"use strict";var l0r=U_();hWe.exports=u0r;function u0r(e,t,r){if(!e||e.length==null)throw Error("Argument should be an array");t==null&&(t=1),r==null&&(r=l0r(e,t));for(var i=0;i{"use strict";pWe.exports=function(){var e,t;if(typeof WeakMap!="function")return!1;try{e=new WeakMap([[t={},"one"],[{},"two"],[{},"three"]])}catch(r){return!1}return!(String(e)!=="[object WeakMap]"||typeof e.set!="function"||e.set({},1)!==e||typeof e.delete!="function"||typeof e.has!="function"||e.get(t)!=="one")}});var yWe=K((eti,mWe)=>{"use strict";mWe.exports=function(){}});var W2=K((tti,gWe)=>{"use strict";var f0r=yWe()();gWe.exports=function(e){return e!==f0r&&e!==null}});var rte=K((rti,bWe)=>{"use strict";var c0r=Object.create,h0r=Object.getPrototypeOf,xWe={};bWe.exports=function(){var e=Object.setPrototypeOf,t=arguments[0]||c0r;return typeof e!="function"?!1:h0r(e(t(null),xWe))===xWe}});var ite=K((iti,_We)=>{"use strict";var d0r=W2(),p0r={function:!0,object:!0};_We.exports=function(e){return d0r(e)&&p0r[typeof e]||!1}});var Uy=K((nti,wWe)=>{"use strict";var v0r=W2();wWe.exports=function(e){if(!v0r(e))throw new TypeError("Cannot use null or undefined");return e}});var TWe=K((ati,AWe)=>{"use strict";var nte=Object.create,uB;rte()()||(uB=ate());AWe.exports=(function(){var e,t,r;return!uB||uB.level!==1?nte:(e={},t={},r={configurable:!1,enumerable:!1,writable:!0,value:void 0},Object.getOwnPropertyNames(Object.prototype).forEach(function(i){if(i==="__proto__"){t[i]={configurable:!0,enumerable:!1,writable:!0,value:void 0};return}t[i]=r}),Object.defineProperties(e,t),Object.defineProperty(uB,"nullPolyfill",{configurable:!1,enumerable:!1,writable:!1,value:e}),function(i,n){return nte(i===null?e:i,n)})})()});var ate=K((oti,MWe)=>{"use strict";var m0r=ite(),y0r=Uy(),g0r=Object.prototype.isPrototypeOf,x0r=Object.defineProperty,b0r={configurable:!0,enumerable:!1,writable:!0,value:void 0},fB;fB=function(e,t){if(y0r(e),t===null||m0r(t))return e;throw new TypeError("Prototype must be null or an object")};MWe.exports=(function(e){var t,r;return e?(e.level===2?e.set?(r=e.set,t=function(i,n){return r.call(fB(i,n),n),i}):t=function(i,n){return fB(i,n).__proto__=n,i}:t=function i(n,a){var o;return fB(n,a),o=g0r.call(i.nullPolyfill,n),o&&delete i.nullPolyfill.__proto__,a===null&&(a=i.nullPolyfill),n.__proto__=a,o&&x0r(i.nullPolyfill,"__proto__",b0r),n},Object.defineProperty(t,"level",{configurable:!1,enumerable:!1,writable:!1,value:e.level})):null})((function(){var e=Object.create(null),t={},r,i=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__");if(i){try{r=i.set,r.call(e,t)}catch(n){}if(Object.getPrototypeOf(e)===t)return{set:r,level:2}}return e.__proto__=t,Object.getPrototypeOf(e)===t?{level:2}:(e={},e.__proto__=t,Object.getPrototypeOf(e)===t?{level:1}:!1)})());TWe()});var cB=K((sti,SWe)=>{"use strict";SWe.exports=rte()()?Object.setPrototypeOf:ate()});var kWe=K((lti,EWe)=>{"use strict";var _0r=ite();EWe.exports=function(e){if(!_0r(e))throw new TypeError(e+" is not an Object");return e}});var DWe=K((uti,CWe)=>{"use strict";var w0r=Object.create(null),A0r=Math.random;CWe.exports=function(){var e;do e=A0r().toString(36).slice(2);while(w0r[e]);return e}});var Y_=K((fti,FWe)=>{"use strict";var T0r=void 0;FWe.exports=function(e){return e!==T0r&&e!==null}});var ote=K((cti,LWe)=>{"use strict";var M0r=Y_(),S0r={object:!0,function:!0,undefined:!0};LWe.exports=function(e){return M0r(e)?hasOwnProperty.call(S0r,typeof e):!1}});var zWe=K((hti,PWe)=>{"use strict";var E0r=ote();PWe.exports=function(e){if(!E0r(e))return!1;try{return e.constructor?e.constructor.prototype===e:!1}catch(t){return!1}}});var RWe=K((dti,IWe)=>{"use strict";var k0r=zWe();IWe.exports=function(e){if(typeof e!="function"||!hasOwnProperty.call(e,"length"))return!1;try{if(typeof e.length!="number"||typeof e.call!="function"||typeof e.apply!="function")return!1}catch(t){return!1}return!k0r(e)}});var ste=K((pti,BWe)=>{"use strict";var C0r=RWe(),D0r=/^\s*class[\s{/}]/,F0r=Function.prototype.toString;BWe.exports=function(e){return!(!C0r(e)||D0r.test(F0r.call(e)))}});var OWe=K((vti,qWe)=>{"use strict";qWe.exports=function(){var e=Object.assign,t;return typeof e!="function"?!1:(t={foo:"raz"},e(t,{bar:"dwa"},{trzy:"trzy"}),t.foo+t.bar+t.trzy==="razdwatrzy")}});var VWe=K((mti,NWe)=>{"use strict";NWe.exports=function(){try{return Object.keys("primitive"),!0}catch(e){return!1}}});var GWe=K((yti,UWe)=>{"use strict";var L0r=W2(),P0r=Object.keys;UWe.exports=function(e){return P0r(L0r(e)?Object(e):e)}});var jWe=K((gti,HWe)=>{"use strict";HWe.exports=VWe()()?Object.keys:GWe()});var $We=K((xti,WWe)=>{"use strict";var z0r=jWe(),I0r=Uy(),R0r=Math.max;WWe.exports=function(e,t){var r,i,n=R0r(arguments.length,2),a;for(e=Object(I0r(e)),a=function(o){try{e[o]=t[o]}catch(s){r||(r=s)}},i=1;i{"use strict";YWe.exports=OWe()()?Object.assign:$We()});var lte=K((_ti,XWe)=>{"use strict";var B0r=W2(),q0r=Array.prototype.forEach,O0r=Object.create,N0r=function(e,t){var r;for(r in e)t[r]=e[r]};XWe.exports=function(e){var t=O0r(null);return q0r.call(arguments,function(r){B0r(r)&&N0r(Object(r),t)}),t}});var KWe=K((wti,ZWe)=>{"use strict";var ute="razdwatrzy";ZWe.exports=function(){return typeof ute.contains!="function"?!1:ute.contains("dwa")===!0&&ute.contains("foo")===!1}});var QWe=K((Ati,JWe)=>{"use strict";var V0r=String.prototype.indexOf;JWe.exports=function(e){return V0r.call(this,e,arguments[1])>-1}});var fte=K((Tti,e$e)=>{"use strict";e$e.exports=KWe()()?String.prototype.contains:QWe()});var Gy=K((Mti,n$e)=>{"use strict";var dB=Y_(),t$e=ste(),r$e=hB(),i$e=lte(),KE=fte(),U0r=n$e.exports=function(e,t){var r,i,n,a,o;return arguments.length<2||typeof e!="string"?(a=t,t=e,e=null):a=arguments[2],dB(e)?(r=KE.call(e,"c"),i=KE.call(e,"e"),n=KE.call(e,"w")):(r=n=!0,i=!1),o={value:t,configurable:r,enumerable:i,writable:n},a?r$e(i$e(a),o):o};U0r.gs=function(e,t,r){var i,n,a,o;return typeof e!="string"?(a=r,r=t,t=e,e=null):a=arguments[3],dB(t)?t$e(t)?dB(r)?t$e(r)||(a=r,r=void 0):r=void 0:(a=t,t=r=void 0):t=void 0,dB(e)?(i=KE.call(e,"c"),n=KE.call(e,"e")):(i=!0,n=!1),o={get:t,set:r,configurable:i,enumerable:n},a?r$e(i$e(a),o):o}});var JE=K((Sti,o$e)=>{"use strict";var a$e=Object.prototype.toString,G0r=a$e.call((function(){return arguments})());o$e.exports=function(e){return a$e.call(e)===G0r}});var QE=K((Eti,l$e)=>{"use strict";var s$e=Object.prototype.toString,H0r=s$e.call("");l$e.exports=function(e){return typeof e=="string"||e&&typeof e=="object"&&(e instanceof String||s$e.call(e)===H0r)||!1}});var f$e=K((kti,u$e)=>{"use strict";u$e.exports=function(){return typeof globalThis!="object"||!globalThis?!1:globalThis.Array===Array}});var d$e=K((Cti,h$e)=>{var c$e=function(){if(typeof self=="object"&&self)return self;if(typeof window=="object"&&window)return window;throw new Error("Unable to resolve global `this`")};h$e.exports=(function(){if(this)return this;try{Object.defineProperty(Object.prototype,"__global__",{get:function(){return this},configurable:!0})}catch(e){return c$e()}try{return __global__||c$e()}finally{delete Object.prototype.__global__}})()});var ek=K((Dti,p$e)=>{"use strict";p$e.exports=f$e()()?globalThis:d$e()});var m$e=K((Fti,v$e)=>{"use strict";var j0r=ek(),cte={object:!0,symbol:!0};v$e.exports=function(){var e=j0r.Symbol,t;if(typeof e!="function")return!1;t=e("test symbol");try{String(t)}catch(r){return!1}return!(!cte[typeof e.iterator]||!cte[typeof e.toPrimitive]||!cte[typeof e.toStringTag])}});var g$e=K((Lti,y$e)=>{"use strict";y$e.exports=function(e){return e?typeof e=="symbol"?!0:!e.constructor||e.constructor.name!=="Symbol"?!1:e[e.constructor.toStringTag]==="Symbol":!1}});var hte=K((Pti,x$e)=>{"use strict";var W0r=g$e();x$e.exports=function(e){if(!W0r(e))throw new TypeError(e+" is not a symbol");return e}});var T$e=K((zti,A$e)=>{"use strict";var b$e=Gy(),$0r=Object.create,_$e=Object.defineProperty,Y0r=Object.prototype,w$e=$0r(null);A$e.exports=function(e){for(var t=0,r,i;w$e[e+(t||"")];)++t;return e+=t||"",w$e[e]=!0,r="@@"+e,_$e(Y0r,r,b$e.gs(null,function(n){i||(i=!0,_$e(this,r,b$e(n)),i=!1)})),r}});var S$e=K((Iti,M$e)=>{"use strict";var T1=Gy(),Kc=ek().Symbol;M$e.exports=function(e){return Object.defineProperties(e,{hasInstance:T1("",Kc&&Kc.hasInstance||e("hasInstance")),isConcatSpreadable:T1("",Kc&&Kc.isConcatSpreadable||e("isConcatSpreadable")),iterator:T1("",Kc&&Kc.iterator||e("iterator")),match:T1("",Kc&&Kc.match||e("match")),replace:T1("",Kc&&Kc.replace||e("replace")),search:T1("",Kc&&Kc.search||e("search")),species:T1("",Kc&&Kc.species||e("species")),split:T1("",Kc&&Kc.split||e("split")),toPrimitive:T1("",Kc&&Kc.toPrimitive||e("toPrimitive")),toStringTag:T1("",Kc&&Kc.toStringTag||e("toStringTag")),unscopables:T1("",Kc&&Kc.unscopables||e("unscopables"))})}});var C$e=K((Rti,k$e)=>{"use strict";var E$e=Gy(),X0r=hte(),tk=Object.create(null);k$e.exports=function(e){return Object.defineProperties(e,{for:E$e(function(t){return tk[t]?tk[t]:tk[t]=e(String(t))}),keyFor:E$e(function(t){var r;X0r(t);for(r in tk)if(tk[r]===t)return r})})}});var L$e=K((Bti,F$e)=>{"use strict";var Dm=Gy(),dte=hte(),pB=ek().Symbol,Z0r=T$e(),K0r=S$e(),J0r=C$e(),Q0r=Object.create,pte=Object.defineProperties,vB=Object.defineProperty,Q0,o5,D$e;if(typeof pB=="function")try{String(pB()),D$e=!0}catch(e){}else pB=null;o5=function(t){if(this instanceof o5)throw new TypeError("Symbol is not a constructor");return Q0(t)};F$e.exports=Q0=function e(t){var r;if(this instanceof e)throw new TypeError("Symbol is not a constructor");return D$e?pB(t):(r=Q0r(o5.prototype),t=t===void 0?"":String(t),pte(r,{__description__:Dm("",t),__name__:Dm("",Z0r(t))}))};K0r(Q0);J0r(Q0);pte(o5.prototype,{constructor:Dm(Q0),toString:Dm("",function(){return this.__name__})});pte(Q0.prototype,{toString:Dm(function(){return"Symbol ("+dte(this).__description__+")"}),valueOf:Dm(function(){return dte(this)})});vB(Q0.prototype,Q0.toPrimitive,Dm("",function(){var e=dte(this);return typeof e=="symbol"?e:e.toString()}));vB(Q0.prototype,Q0.toStringTag,Dm("c","Symbol"));vB(o5.prototype,Q0.toStringTag,Dm("c",Q0.prototype[Q0.toStringTag]));vB(o5.prototype,Q0.toPrimitive,Dm("c",Q0.prototype[Q0.toPrimitive]))});var $2=K((qti,P$e)=>{"use strict";P$e.exports=m$e()()?ek().Symbol:L$e()});var I$e=K((Oti,z$e)=>{"use strict";var edr=Uy();z$e.exports=function(){return edr(this).length=0,this}});var s5=K((Nti,R$e)=>{"use strict";R$e.exports=function(e){if(typeof e!="function")throw new TypeError(e+" is not a function");return e}});var q$e=K((Vti,B$e)=>{"use strict";var tdr=Y_(),rdr=ote(),idr=Object.prototype.toString;B$e.exports=function(e){if(!tdr(e))return null;if(rdr(e)){var t=e.toString;if(typeof t!="function"||t===idr)return null}try{return""+e}catch(r){return null}}});var N$e=K((Uti,O$e)=>{"use strict";O$e.exports=function(e){try{return e.toString()}catch(t){try{return String(e)}catch(r){return null}}}});var U$e=K((Gti,V$e)=>{"use strict";var ndr=N$e(),adr=/[\n\r\u2028\u2029]/g;V$e.exports=function(e){var t=ndr(e);return t===null?"":(t.length>100&&(t=t.slice(0,99)+"\u2026"),t=t.replace(adr,function(r){switch(r){case` +`:return"\\n";case"\r":return"\\r";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw new Error("Unexpected character")}}),t)}});var H$e=K((Hti,G$e)=>{"use strict";var odr=q$e(),sdr=U$e();G$e.exports=function(e,t,r){r&&r.errorMessage&&(e=odr(r.errorMessage));var i=e.indexOf("%v"),n=i>-1?sdr(t):null;if(r&&r.name){var a=e.indexOf("%n");if(a>-1){if(i>-1){var o,s,l,u;return a>i?(o=n,l=i,s=r.name,u=a):(o=r.name,l=a,s=n,u=i),e.slice(0,l)+o+e.slice(l+2,u)+s+e.slice(u+2)}return e.slice(0,a)+r.name+e.slice(a+2)}}return i>-1?e.slice(0,i)+n+e.slice(i+2):e}});var vte=K((jti,j$e)=>{"use strict";var ldr=Y_(),udr=H$e();j$e.exports=function(e,t,r){if(r&&!ldr(e)){if("default"in r)return r.default;if(r.isOptional)return null}var i=r&&r.Error||TypeError,n=new i(udr(t,e,r));throw r&&r.errorCode&&(n.code=r.errorCode),n}});var $$e=K((Wti,W$e)=>{"use strict";var fdr=vte(),cdr=Y_();W$e.exports=function(e){if(cdr(e))return e;var t=arguments[1],r=t&&t.name?"Expected a value for %n, received %v":"Cannot use %v";return fdr(e,r,t)}});var X$e=K(($ti,Y$e)=>{"use strict";var hdr=vte(),ddr=ste();Y$e.exports=function(e){if(ddr(e))return e;var t=arguments[1],r=t&&t.name?"Expected a plain function for %n, received %v":"%v is not a plain function";return hdr(e,r,t)}});var K$e=K((Yti,Z$e)=>{"use strict";Z$e.exports=function(){var e=Array.from,t,r;return typeof e!="function"?!1:(t=["raz","dwa"],r=e(t),!!(r&&r!==t&&r[1]==="dwa"))}});var Q$e=K((Xti,J$e)=>{"use strict";var pdr=Object.prototype.toString,vdr=RegExp.prototype.test.bind(/^[object [A-Za-z0-9]*Function]$/);J$e.exports=function(e){return typeof e=="function"&&vdr(pdr.call(e))}});var tYe=K((Zti,eYe)=>{"use strict";eYe.exports=function(){var e=Math.sign;return typeof e!="function"?!1:e(10)===1&&e(-20)===-1}});var iYe=K((Kti,rYe)=>{"use strict";rYe.exports=function(e){return e=Number(e),isNaN(e)||e===0?e:e>0?1:-1}});var aYe=K((Jti,nYe)=>{"use strict";nYe.exports=tYe()()?Math.sign:iYe()});var sYe=K((Qti,oYe)=>{"use strict";var mdr=aYe(),ydr=Math.abs,gdr=Math.floor;oYe.exports=function(e){return isNaN(e)?0:(e=Number(e),e===0||!isFinite(e)?e:mdr(e)*gdr(ydr(e)))}});var uYe=K((eri,lYe)=>{"use strict";var xdr=sYe(),bdr=Math.max;lYe.exports=function(e){return bdr(0,xdr(e))}});var dYe=K((tri,hYe)=>{"use strict";var _dr=$2().iterator,wdr=JE(),Adr=Q$e(),Tdr=uYe(),fYe=s5(),Mdr=Uy(),Sdr=W2(),Edr=QE(),cYe=Array.isArray,mte=Function.prototype.call,X_={configurable:!0,enumerable:!0,writable:!0,value:null},yte=Object.defineProperty;hYe.exports=function(e){var t=arguments[1],r=arguments[2],i,n,a,o,s,l,u,f,c,h;if(e=Object(Mdr(e)),Sdr(t)&&fYe(t),!this||this===Array||!Adr(this)){if(!t){if(wdr(e))return s=e.length,s!==1?Array.apply(null,e):(o=new Array(1),o[0]=e[0],o);if(cYe(e)){for(o=new Array(s=e.length),n=0;n=55296&&l<=56319&&(h+=e[++n])),h=t?mte.call(t,r,h,a):h,i?(X_.value=h,yte(o,a,X_)):o[a]=h,++a;s=a}}if(s===void 0)for(s=Tdr(e.length),i&&(o=new i(s)),n=0;n{"use strict";pYe.exports=K$e()()?Array.from:dYe()});var yYe=K((iri,mYe)=>{"use strict";var kdr=vYe(),Cdr=hB(),Ddr=Uy();mYe.exports=function(e){var t=Object(Ddr(e)),r=arguments[1],i=Object(arguments[2]);if(t!==e&&!r)return t;var n={};return r?kdr(r,function(a){(i.ensure||a in e)&&(n[a]=e[a])}):Cdr(n,e),n}});var bYe=K((nri,xYe)=>{"use strict";var Fdr=s5(),Ldr=Uy(),Pdr=Function.prototype.bind,gYe=Function.prototype.call,zdr=Object.keys,Idr=Object.prototype.propertyIsEnumerable;xYe.exports=function(e,t){return function(r,i){var n,a=arguments[2],o=arguments[3];return r=Object(Ldr(r)),Fdr(i),n=zdr(r),o&&n.sort(typeof o=="function"?Pdr.call(o,r):void 0),typeof e!="function"&&(e=n[e]),gYe.call(e,n,function(s,l){return Idr.call(r,s)?gYe.call(i,a,r[s],s,r,l):t})}}});var wYe=K((ari,_Ye)=>{"use strict";_Ye.exports=bYe()("forEach")});var TYe=K((ori,AYe)=>{"use strict";var Rdr=s5(),Bdr=wYe(),qdr=Function.prototype.call;AYe.exports=function(e,t){var r={},i=arguments[2];return Rdr(t),Bdr(e,function(n,a,o,s){r[a]=qdr.call(t,i,n,a,o,s)}),r}});var kYe=K((sri,EYe)=>{"use strict";var Odr=Y_(),Ndr=$$e(),MYe=X$e(),Vdr=yYe(),Udr=lte(),Gdr=TYe(),Hdr=Function.prototype.bind,jdr=Object.defineProperty,Wdr=Object.prototype.hasOwnProperty,SYe;SYe=function(e,t,r){var i=Ndr(t)&&MYe(t.value),n;return n=Vdr(t),delete n.writable,delete n.value,n.get=function(){return!r.overwriteDefinition&&Wdr.call(this,e)?i:(t.value=Hdr.call(i,r.resolveContext?r.resolveContext(this):this),jdr(this,e,t),this[e])},n};EYe.exports=function(e){var t=Udr(arguments[1]);return Odr(t.resolveContext)&&MYe(t.resolveContext),Gdr(e,function(r,i){return SYe(i,r,t)})}});var gte=K((lri,LYe)=>{"use strict";var $dr=I$e(),Ydr=hB(),Xdr=s5(),Zdr=Uy(),Nd=Gy(),Kdr=kYe(),CYe=$2(),DYe=Object.defineProperty,FYe=Object.defineProperties,rk;LYe.exports=rk=function(e,t){if(!(this instanceof rk))throw new TypeError("Constructor requires 'new'");FYe(this,{__list__:Nd("w",Zdr(e)),__context__:Nd("w",t),__nextIndex__:Nd("w",0)}),t&&(Xdr(t.on),t.on("_add",this._onAdd),t.on("_delete",this._onDelete),t.on("_clear",this._onClear))};delete rk.prototype.constructor;FYe(rk.prototype,Ydr({_next:Nd(function(){var e;if(this.__list__){if(this.__redo__&&(e=this.__redo__.shift(),e!==void 0))return e;if(this.__nextIndex__=this.__nextIndex__)){if(++this.__nextIndex__,!this.__redo__){DYe(this,"__redo__",Nd("c",[e]));return}this.__redo__.forEach(function(t,r){t>=e&&(this.__redo__[r]=++t)},this),this.__redo__.push(e)}}),_onDelete:Nd(function(e){var t;e>=this.__nextIndex__||(--this.__nextIndex__,this.__redo__&&(t=this.__redo__.indexOf(e),t!==-1&&this.__redo__.splice(t,1),this.__redo__.forEach(function(r,i){r>e&&(this.__redo__[i]=--r)},this)))}),_onClear:Nd(function(){this.__redo__&&$dr.call(this.__redo__),this.__nextIndex__=0})})));DYe(rk.prototype,CYe.iterator,Nd(function(){return this}))});var BYe=K((uri,RYe)=>{"use strict";var PYe=cB(),zYe=fte(),xte=Gy(),Jdr=$2(),bte=gte(),IYe=Object.defineProperty,l5;l5=RYe.exports=function(e,t){if(!(this instanceof l5))throw new TypeError("Constructor requires 'new'");bte.call(this,e),t?zYe.call(t,"key+value")?t="key+value":zYe.call(t,"key")?t="key":t="value":t="value",IYe(this,"__kind__",xte("",t))};PYe&&PYe(l5,bte);delete l5.prototype.constructor;l5.prototype=Object.create(bte.prototype,{_resolve:xte(function(e){return this.__kind__==="value"?this.__list__[e]:this.__kind__==="key+value"?[e,this.__list__[e]]:e})});IYe(l5.prototype,Jdr.toStringTag,xte("c","Array Iterator"))});var VYe=K((fri,NYe)=>{"use strict";var qYe=cB(),mB=Gy(),Qdr=$2(),_te=gte(),OYe=Object.defineProperty,u5;u5=NYe.exports=function(e){if(!(this instanceof u5))throw new TypeError("Constructor requires 'new'");e=String(e),_te.call(this,e),OYe(this,"__length__",mB("",e.length))};qYe&&qYe(u5,_te);delete u5.prototype.constructor;u5.prototype=Object.create(_te.prototype,{_next:mB(function(){if(this.__list__){if(this.__nextIndex__=55296&&r<=56319?t+this.__list__[this.__nextIndex__++]:t)})});OYe(u5.prototype,Qdr.toStringTag,mB("c","String Iterator"))});var GYe=K((cri,UYe)=>{"use strict";var epr=JE(),tpr=W2(),rpr=QE(),ipr=$2().iterator,npr=Array.isArray;UYe.exports=function(e){return tpr(e)?npr(e)||rpr(e)||epr(e)?!0:typeof e[ipr]=="function":!1}});var jYe=K((hri,HYe)=>{"use strict";var apr=GYe();HYe.exports=function(e){if(!apr(e))throw new TypeError(e+" is not iterable");return e}});var wte=K((dri,YYe)=>{"use strict";var opr=JE(),spr=QE(),WYe=BYe(),lpr=VYe(),upr=jYe(),$Ye=$2().iterator;YYe.exports=function(e){return typeof upr(e)[$Ye]=="function"?e[$Ye]():opr(e)?new WYe(e):spr(e)?new lpr(e):new WYe(e)}});var ZYe=K((pri,XYe)=>{"use strict";var fpr=JE(),cpr=s5(),hpr=QE(),dpr=wte(),ppr=Array.isArray,Ate=Function.prototype.call,vpr=Array.prototype.some;XYe.exports=function(e,t){var r,i=arguments[2],n,a,o,s,l,u,f;if(ppr(e)||fpr(e)?r="array":hpr(e)?r="string":e=dpr(e),cpr(t),a=function(){o=!0},r==="array"){vpr.call(e,function(c){return Ate.call(t,i,c,a),o});return}if(r==="string"){for(l=e.length,s=0;s=55296&&f<=56319&&(u+=e[++s])),Ate.call(t,i,u,a),!o);++s);return}for(n=e.next();!n.done;){if(Ate.call(t,i,n.value,a),o)return;n=e.next()}}});var JYe=K((vri,KYe)=>{"use strict";KYe.exports=(function(){return typeof WeakMap!="function"?!1:Object.prototype.toString.call(new WeakMap)==="[object WeakMap]"})()});var tXe=K((mri,eXe)=>{"use strict";var mpr=W2(),gB=cB(),yB=kWe(),ypr=Uy(),gpr=DWe(),Hy=Gy(),xpr=wte(),bpr=ZYe(),_pr=$2().toStringTag,QYe=JYe(),wpr=Array.isArray,Mte=Object.defineProperty,Tte=Object.prototype.hasOwnProperty,Apr=Object.getPrototypeOf,Y2;eXe.exports=Y2=function(){var e=arguments[0],t;if(!(this instanceof Y2))throw new TypeError("Constructor requires 'new'");return t=QYe&&gB&&WeakMap!==Y2?gB(new WeakMap,Apr(this)):this,mpr(e)&&(wpr(e)||(e=xpr(e))),Mte(t,"__weakMapData__",Hy("c","$weakMap$"+gpr())),e&&bpr(e,function(r){ypr(r),t.set(r[0],r[1])}),t};QYe&&(gB&&gB(Y2,WeakMap),Y2.prototype=Object.create(WeakMap.prototype,{constructor:Hy(Y2)}));Object.defineProperties(Y2.prototype,{delete:Hy(function(e){return Tte.call(yB(e),this.__weakMapData__)?(delete e[this.__weakMapData__],!0):!1}),get:Hy(function(e){if(Tte.call(yB(e),this.__weakMapData__))return e[this.__weakMapData__]}),has:Hy(function(e){return Tte.call(yB(e),this.__weakMapData__)}),set:Hy(function(e,t){return Mte(yB(e),this.__weakMapData__,Hy("c",t)),this}),toString:Hy(function(){return"[object WeakMap]"})});Mte(Y2.prototype,_pr,Hy("c","WeakMap"))});var Ste=K((yri,rXe)=>{"use strict";rXe.exports=vWe()()?WeakMap:tXe()});var nXe=K((gri,iXe)=>{"use strict";iXe.exports=function(e,t,r){if(typeof Array.prototype.findIndex=="function")return e.findIndex(t,r);if(typeof t!="function")throw new TypeError("predicate must be a function");var i=Object(e),n=i.length;if(n===0)return-1;for(var a=0;a{"use strict";var xB=WE(),Tpr=U_(),kte=Sh(),Mpr=Cm(),Spr=G_(),aXe=cWe(),Epr=dWe(),{float32:kpr,fract32:Ete}=rB(),Cpr=Ste(),oXe=J4(),Dpr=nXe(),Fpr=` precision highp float; attribute vec2 aCoord, bCoord, aCoordFract, bCoordFract; @@ -2248,7 +2248,7 @@ void main() { fragColor = color / 255.; } -`,wpr=` +`,Lpr=` precision highp float; uniform float dashLength, pixelRatio, thickness, opacity, id; @@ -2266,7 +2266,7 @@ void main() { gl_FragColor = fragColor; gl_FragColor.a *= alpha * opacity * dash; } -`,Apr=` +`,Ppr=` precision highp float; attribute vec2 position, positionFract; @@ -2294,14 +2294,14 @@ void main() { fragColor = color / 255.; fragColor.a *= opacity; } -`,Tpr=` +`,zpr=` precision highp float; varying vec4 fragColor; void main() { gl_FragColor = fragColor; } -`,Mpr=` +`,Ipr=` precision highp float; attribute vec2 aCoord, bCoord, nextCoord, prevCoord; @@ -2505,7 +2505,7 @@ void main() { } } } -`,Spr=` +`,Rpr=` precision highp float; uniform float dashLength, pixelRatio, thickness, opacity, id, miterMode; @@ -2585,7 +2585,7 @@ void main() { gl_FragColor = fragColor; gl_FragColor.a *= alpha * opacity * dash; } -`;QYe.exports=Df;function Df(e,t){if(!(this instanceof Df))return new Df(e,t);if(typeof e=="function"?(t||(t={}),t.regl=e):t=e,t.length&&(t.positions=t),e=t.regl,!e.hasExtension("ANGLE_instanced_arrays"))throw Error("regl-error2d: `ANGLE_instanced_arrays` extension should be enabled");this.gl=e._gl,this.regl=e,this.passes=[],this.shaders=Df.shaders.has(e)?Df.shaders.get(e):Df.shaders.set(e,Df.createShaders(e)).get(e),this.update(t)}Df.dashMult=2;Df.maxPatternLength=256;Df.precisionThreshold=3e6;Df.maxPoints=1e4;Df.maxLines=2048;Df.shaders=new xpr;Df.createShaders=function(e){let t=e.buffer({usage:"static",type:"float",data:[0,1,0,0,1,1,1,0]}),r={primitive:"triangle strip",instances:e.prop("count"),count:4,offset:0,uniforms:{miterMode:(o,s)=>s.join==="round"?2:1,miterLimit:e.prop("miterLimit"),scale:e.prop("scale"),scaleFract:e.prop("scaleFract"),translateFract:e.prop("translateFract"),translate:e.prop("translate"),thickness:e.prop("thickness"),dashTexture:e.prop("dashTexture"),opacity:e.prop("opacity"),pixelRatio:e.context("pixelRatio"),id:e.prop("id"),dashLength:e.prop("dashLength"),viewport:(o,s)=>[s.viewport.x,s.viewport.y,o.viewportWidth,o.viewportHeight],depth:e.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:(o,s)=>!s.overlay},stencil:{enable:!1},scissor:{enable:!0,box:e.prop("viewport")},viewport:e.prop("viewport")},i=e(bte({vert:_pr,frag:wpr,attributes:{lineEnd:{buffer:t,divisor:0,stride:8,offset:0},lineTop:{buffer:t,divisor:0,stride:8,offset:4},aCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:8,divisor:1},bCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:16,divisor:1},aCoordFract:{buffer:e.prop("positionFractBuffer"),stride:8,offset:8,divisor:1},bCoordFract:{buffer:e.prop("positionFractBuffer"),stride:8,offset:16,divisor:1},color:{buffer:e.prop("colorBuffer"),stride:4,offset:0,divisor:1}}},r)),n;try{n=e(bte({cull:{enable:!0,face:"back"},vert:Mpr,frag:Spr,attributes:{lineEnd:{buffer:t,divisor:0,stride:8,offset:0},lineTop:{buffer:t,divisor:0,stride:8,offset:4},aColor:{buffer:e.prop("colorBuffer"),stride:4,offset:0,divisor:1},bColor:{buffer:e.prop("colorBuffer"),stride:4,offset:4,divisor:1},prevCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:0,divisor:1},aCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:8,divisor:1},bCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:16,divisor:1},nextCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:24,divisor:1}}},r))}catch(o){n=i}return{fill:e({primitive:"triangle",elements:(o,s)=>s.triangles,offset:0,vert:Apr,frag:Tpr,uniforms:{scale:e.prop("scale"),color:e.prop("fill"),scaleFract:e.prop("scaleFract"),translateFract:e.prop("translateFract"),translate:e.prop("translate"),opacity:e.prop("opacity"),pixelRatio:e.context("pixelRatio"),id:e.prop("id"),viewport:(o,s)=>[s.viewport.x,s.viewport.y,o.viewportWidth,o.viewportHeight]},attributes:{position:{buffer:e.prop("positionBuffer"),stride:8,offset:8},positionFract:{buffer:e.prop("positionFractBuffer"),stride:8,offset:8}},blend:r.blend,depth:{enable:!1},scissor:r.scissor,stencil:r.stencil,viewport:r.viewport}),rect:i,miter:n}};Df.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};Df.prototype.render=function(...e){e.length&&this.update(...e),this.draw()};Df.prototype.draw=function(...e){return(e.length?e:this.passes).forEach((t,r)=>{if(t&&Array.isArray(t))return this.draw(...t);typeof t=="number"&&(t=this.passes[t]),t&&t.count>1&&t.opacity&&(this.regl._refresh(),t.fill&&t.triangles&&t.triangles.length>2&&this.shaders.fill(t),t.thickness&&(t.scale[0]*t.viewport.width>Df.precisionThreshold||t.scale[1]*t.viewport.height>Df.precisionThreshold?this.shaders.rect(t):t.join==="rect"||!t.join&&(t.thickness<=2||t.count>=Df.maxPoints)?this.shaders.rect(t):this.shaders.miter(t)))}),this};Df.prototype.update=function(e){if(!e)return;e.length!=null?typeof e[0]=="number"&&(e=[{positions:e}]):Array.isArray(e)||(e=[e]);let{regl:t,gl:r}=this;if(e.forEach((n,a)=>{let o=this.passes[a];if(n!==void 0){if(n===null){this.passes[a]=null;return}if(typeof n[0]=="number"&&(n={positions:n}),n=vpr(n,{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"}),o||(this.passes[a]=o={id:a,scale:null,scaleFract:null,translate:null,translateFract:null,count:0,hole:[],depth:0,dashLength:1,dashTexture:t.texture({channels:1,data:new Uint8Array([255]),width:1,height:1,mag:"linear",min:"linear"}),colorBuffer:t.buffer({usage:"dynamic",type:"uint8",data:new Uint8Array}),positionBuffer:t.buffer({usage:"dynamic",type:"float",data:new Uint8Array}),positionFractBuffer:t.buffer({usage:"dynamic",type:"float",data:new Uint8Array})},n=bte({},Df.defaults,n)),n.thickness!=null&&(o.thickness=parseFloat(n.thickness)),n.opacity!=null&&(o.opacity=parseFloat(n.opacity)),n.miterLimit!=null&&(o.miterLimit=parseFloat(n.miterLimit)),n.overlay!=null&&(o.overlay=!!n.overlay,ah[0]||(h[2]=h[0]+1e-155),h[3]>h[1]||(h[3]=h[1]+1e-155)),o.normBounds=h,o.fill){let y=[],m={},w=0;for(let _=0,b=0,M=o.count;_A-T),b=[],M=0,x=o.hole!=null?o.hole[0]:null;if(x!=null){let A=bpr(_,T=>T>=x);_=_.slice(0,A),_.push(x)}for(let A=0;A<_.length;A++){let T=y.slice(M*2,_[A]*2).concat(x?y.slice(x*2):[]),g=(o.hole||[]).map(S=>S-x+(_[A]-M)),E=KYe(T,g);E=E.map(S=>S+M+(S+M<_[A]?0:x-_[A])),b.push(...E),M=_[A]+1}for(let A=0,T=b.length;A{e.colorBuffer.destroy(),e.positionBuffer.destroy(),e.dashTexture.destroy()}),this.passes.length=0,this}});var nXe=K((ori,iXe)=>{"use strict";var Epr=N_(),kpr=HE(),Cpr=Uee(),Dpr=Em(),eXe=Mh(),tXe=V_(),{float32:Fpr,fract32:wte}=ZR();iXe.exports=Lpr;var rXe=[[1,0,0,1,0,0],[1,0,0,-1,0,0],[-1,0,0,-1,0,0],[-1,0,0,-1,0,0],[-1,0,0,1,0,0],[1,0,0,1,0,0],[1,0,-1,0,0,1],[1,0,-1,0,0,-1],[1,0,1,0,0,-1],[1,0,1,0,0,-1],[1,0,1,0,0,1],[1,0,-1,0,0,1],[-1,0,-1,0,0,1],[-1,0,-1,0,0,-1],[-1,0,1,0,0,-1],[-1,0,1,0,0,-1],[-1,0,1,0,0,1],[-1,0,-1,0,0,1],[0,1,1,0,0,0],[0,1,-1,0,0,0],[0,-1,-1,0,0,0],[0,-1,-1,0,0,0],[0,1,1,0,0,0],[0,-1,1,0,0,0],[0,1,0,-1,1,0],[0,1,0,-1,-1,0],[0,1,0,1,-1,0],[0,1,0,1,1,0],[0,1,0,-1,1,0],[0,1,0,1,-1,0],[0,-1,0,-1,1,0],[0,-1,0,-1,-1,0],[0,-1,0,1,-1,0],[0,-1,0,1,1,0],[0,-1,0,-1,1,0],[0,-1,0,1,-1,0]];function Lpr(e,t){if(typeof e=="function"?(t||(t={}),t.regl=e):t=e,t.length&&(t.positions=t),e=t.regl,!e.hasExtension("ANGLE_instanced_arrays"))throw Error("regl-error2d: `ANGLE_instanced_arrays` extension should be enabled");let r=e._gl,i,n,a,o,s,l,u={color:"black",capSize:5,lineWidth:1,opacity:1,viewport:null,range:null,offset:0,count:0,bounds:null,positions:[],errors:[]},f=[];return o=e.buffer({usage:"dynamic",type:"uint8",data:new Uint8Array(0)}),n=e.buffer({usage:"dynamic",type:"float",data:new Uint8Array(0)}),a=e.buffer({usage:"dynamic",type:"float",data:new Uint8Array(0)}),s=e.buffer({usage:"dynamic",type:"float",data:new Uint8Array(0)}),l=e.buffer({usage:"static",type:"float",data:rXe}),p(t),i=e({vert:` +`;sXe.exports=Df;function Df(e,t){if(!(this instanceof Df))return new Df(e,t);if(typeof e=="function"?(t||(t={}),t.regl=e):t=e,t.length&&(t.positions=t),e=t.regl,!e.hasExtension("ANGLE_instanced_arrays"))throw Error("regl-error2d: `ANGLE_instanced_arrays` extension should be enabled");this.gl=e._gl,this.regl=e,this.passes=[],this.shaders=Df.shaders.has(e)?Df.shaders.get(e):Df.shaders.set(e,Df.createShaders(e)).get(e),this.update(t)}Df.dashMult=2;Df.maxPatternLength=256;Df.precisionThreshold=3e6;Df.maxPoints=1e4;Df.maxLines=2048;Df.shaders=new Cpr;Df.createShaders=function(e){let t=e.buffer({usage:"static",type:"float",data:[0,1,0,0,1,1,1,0]}),r={primitive:"triangle strip",instances:e.prop("count"),count:4,offset:0,uniforms:{miterMode:(o,s)=>s.join==="round"?2:1,miterLimit:e.prop("miterLimit"),scale:e.prop("scale"),scaleFract:e.prop("scaleFract"),translateFract:e.prop("translateFract"),translate:e.prop("translate"),thickness:e.prop("thickness"),dashTexture:e.prop("dashTexture"),opacity:e.prop("opacity"),pixelRatio:e.context("pixelRatio"),id:e.prop("id"),dashLength:e.prop("dashLength"),viewport:(o,s)=>[s.viewport.x,s.viewport.y,o.viewportWidth,o.viewportHeight],depth:e.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:(o,s)=>!s.overlay},stencil:{enable:!1},scissor:{enable:!0,box:e.prop("viewport")},viewport:e.prop("viewport")},i=e(kte({vert:Fpr,frag:Lpr,attributes:{lineEnd:{buffer:t,divisor:0,stride:8,offset:0},lineTop:{buffer:t,divisor:0,stride:8,offset:4},aCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:8,divisor:1},bCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:16,divisor:1},aCoordFract:{buffer:e.prop("positionFractBuffer"),stride:8,offset:8,divisor:1},bCoordFract:{buffer:e.prop("positionFractBuffer"),stride:8,offset:16,divisor:1},color:{buffer:e.prop("colorBuffer"),stride:4,offset:0,divisor:1}}},r)),n;try{n=e(kte({cull:{enable:!0,face:"back"},vert:Ipr,frag:Rpr,attributes:{lineEnd:{buffer:t,divisor:0,stride:8,offset:0},lineTop:{buffer:t,divisor:0,stride:8,offset:4},aColor:{buffer:e.prop("colorBuffer"),stride:4,offset:0,divisor:1},bColor:{buffer:e.prop("colorBuffer"),stride:4,offset:4,divisor:1},prevCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:0,divisor:1},aCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:8,divisor:1},bCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:16,divisor:1},nextCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:24,divisor:1}}},r))}catch(o){n=i}return{fill:e({primitive:"triangle",elements:(o,s)=>s.triangles,offset:0,vert:Ppr,frag:zpr,uniforms:{scale:e.prop("scale"),color:e.prop("fill"),scaleFract:e.prop("scaleFract"),translateFract:e.prop("translateFract"),translate:e.prop("translate"),opacity:e.prop("opacity"),pixelRatio:e.context("pixelRatio"),id:e.prop("id"),viewport:(o,s)=>[s.viewport.x,s.viewport.y,o.viewportWidth,o.viewportHeight]},attributes:{position:{buffer:e.prop("positionBuffer"),stride:8,offset:8},positionFract:{buffer:e.prop("positionFractBuffer"),stride:8,offset:8}},blend:r.blend,depth:{enable:!1},scissor:r.scissor,stencil:r.stencil,viewport:r.viewport}),rect:i,miter:n}};Df.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};Df.prototype.render=function(...e){e.length&&this.update(...e),this.draw()};Df.prototype.draw=function(...e){return(e.length?e:this.passes).forEach((t,r)=>{if(t&&Array.isArray(t))return this.draw(...t);typeof t=="number"&&(t=this.passes[t]),t&&t.count>1&&t.opacity&&(this.regl._refresh(),t.fill&&t.triangles&&t.triangles.length>2&&this.shaders.fill(t),t.thickness&&(t.scale[0]*t.viewport.width>Df.precisionThreshold||t.scale[1]*t.viewport.height>Df.precisionThreshold?this.shaders.rect(t):t.join==="rect"||!t.join&&(t.thickness<=2||t.count>=Df.maxPoints)?this.shaders.rect(t):this.shaders.miter(t)))}),this};Df.prototype.update=function(e){if(!e)return;e.length!=null?typeof e[0]=="number"&&(e=[{positions:e}]):Array.isArray(e)||(e=[e]);let{regl:t,gl:r}=this;if(e.forEach((n,a)=>{let o=this.passes[a];if(n!==void 0){if(n===null){this.passes[a]=null;return}if(typeof n[0]=="number"&&(n={positions:n}),n=Mpr(n,{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"}),o||(this.passes[a]=o={id:a,scale:null,scaleFract:null,translate:null,translateFract:null,count:0,hole:[],depth:0,dashLength:1,dashTexture:t.texture({channels:1,data:new Uint8Array([255]),width:1,height:1,mag:"linear",min:"linear"}),colorBuffer:t.buffer({usage:"dynamic",type:"uint8",data:new Uint8Array}),positionBuffer:t.buffer({usage:"dynamic",type:"float",data:new Uint8Array}),positionFractBuffer:t.buffer({usage:"dynamic",type:"float",data:new Uint8Array})},n=kte({},Df.defaults,n)),n.thickness!=null&&(o.thickness=parseFloat(n.thickness)),n.opacity!=null&&(o.opacity=parseFloat(n.opacity)),n.miterLimit!=null&&(o.miterLimit=parseFloat(n.miterLimit)),n.overlay!=null&&(o.overlay=!!n.overlay,ah[0]||(h[2]=h[0]+1e-155),h[3]>h[1]||(h[3]=h[1]+1e-155)),o.normBounds=h,o.fill){let y=[],m={},w=0;for(let _=0,b=0,M=o.count;_T-A),b=[],M=0,x=o.hole!=null?o.hole[0]:null;if(x!=null){let T=Dpr(_,A=>A>=x);_=_.slice(0,T),_.push(x)}for(let T=0;T<_.length;T++){let A=y.slice(M*2,_[T]*2).concat(x?y.slice(x*2):[]),g=(o.hole||[]).map(S=>S-x+(_[T]-M)),E=aXe(A,g);E=E.map(S=>S+M+(S+M<_[T]?0:x-_[T])),b.push(...E),M=_[T]+1}for(let T=0,A=b.length;T{e.colorBuffer.destroy(),e.positionBuffer.destroy(),e.dashTexture.destroy()}),this.passes.length=0,this}});var hXe=K((bri,cXe)=>{"use strict";var Bpr=U_(),qpr=WE(),Opr=Zee(),Npr=Cm(),lXe=Sh(),uXe=G_(),{float32:Vpr,fract32:Dte}=rB();cXe.exports=Upr;var fXe=[[1,0,0,1,0,0],[1,0,0,-1,0,0],[-1,0,0,-1,0,0],[-1,0,0,-1,0,0],[-1,0,0,1,0,0],[1,0,0,1,0,0],[1,0,-1,0,0,1],[1,0,-1,0,0,-1],[1,0,1,0,0,-1],[1,0,1,0,0,-1],[1,0,1,0,0,1],[1,0,-1,0,0,1],[-1,0,-1,0,0,1],[-1,0,-1,0,0,-1],[-1,0,1,0,0,-1],[-1,0,1,0,0,-1],[-1,0,1,0,0,1],[-1,0,-1,0,0,1],[0,1,1,0,0,0],[0,1,-1,0,0,0],[0,-1,-1,0,0,0],[0,-1,-1,0,0,0],[0,1,1,0,0,0],[0,-1,1,0,0,0],[0,1,0,-1,1,0],[0,1,0,-1,-1,0],[0,1,0,1,-1,0],[0,1,0,1,1,0],[0,1,0,-1,1,0],[0,1,0,1,-1,0],[0,-1,0,-1,1,0],[0,-1,0,-1,-1,0],[0,-1,0,1,-1,0],[0,-1,0,1,1,0],[0,-1,0,-1,1,0],[0,-1,0,1,-1,0]];function Upr(e,t){if(typeof e=="function"?(t||(t={}),t.regl=e):t=e,t.length&&(t.positions=t),e=t.regl,!e.hasExtension("ANGLE_instanced_arrays"))throw Error("regl-error2d: `ANGLE_instanced_arrays` extension should be enabled");let r=e._gl,i,n,a,o,s,l,u={color:"black",capSize:5,lineWidth:1,opacity:1,viewport:null,range:null,offset:0,count:0,bounds:null,positions:[],errors:[]},f=[];return o=e.buffer({usage:"dynamic",type:"uint8",data:new Uint8Array(0)}),n=e.buffer({usage:"dynamic",type:"float",data:new Uint8Array(0)}),a=e.buffer({usage:"dynamic",type:"float",data:new Uint8Array(0)}),s=e.buffer({usage:"dynamic",type:"float",data:new Uint8Array(0)}),l=e.buffer({usage:"static",type:"float",data:fXe}),p(t),i=e({vert:` precision highp float; attribute vec2 position, positionFract; @@ -2629,10 +2629,10 @@ void main() { gl_FragColor = fragColor; gl_FragColor.a *= opacity; } - `,uniforms:{range:e.prop("range"),lineWidth:e.prop("lineWidth"),capSize:e.prop("capSize"),opacity:e.prop("opacity"),scale:e.prop("scale"),translate:e.prop("translate"),scaleFract:e.prop("scaleFract"),translateFract:e.prop("translateFract"),viewport:(y,m)=>[m.viewport.x,m.viewport.y,y.viewportWidth,y.viewportHeight]},attributes:{color:{buffer:o,offset:(y,m)=>m.offset*4,divisor:1},position:{buffer:n,offset:(y,m)=>m.offset*8,divisor:1},positionFract:{buffer:a,offset:(y,m)=>m.offset*8,divisor:1},error:{buffer:s,offset:(y,m)=>m.offset*16,divisor:1},direction:{buffer:l,stride:24,offset:0},lineOffset:{buffer:l,stride:24,offset:8},capOffset:{buffer:l,stride:24,offset:16}},primitive:"triangles",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:!1},scissor:{enable:!0,box:e.prop("viewport")},viewport:e.prop("viewport"),stencil:!1,instances:e.prop("count"),count:rXe.length}),eXe(c,{update:p,draw:h,destroy:v,regl:e,gl:r,canvas:r.canvas,groups:f}),c;function c(y){y?p(y):y===null&&v(),h()}function h(y){if(typeof y=="number")return d(y);y&&!Array.isArray(y)&&(y=[y]),e._refresh(),f.forEach((m,w)=>{if(m){if(y&&(y[w]?m.draw=!0:m.draw=!1),!m.draw){m.draw=!0;return}d(w)}})}function d(y){typeof y=="number"&&(y=f[y]),y!=null&&y&&y.count&&y.color&&y.opacity&&y.positions&&y.positions.length>1&&(y.scaleRatio=[y.scale[0]*y.viewport.width,y.scale[1]*y.viewport.height],i(y),y.after&&y.after(y))}function p(y){if(!y)return;y.length!=null?typeof y[0]=="number"&&(y=[{positions:y}]):Array.isArray(y)||(y=[y]);let m=0,w=0;if(c.groups=f=y.map((M,x)=>{let A=f[x];if(M)typeof M=="function"?M={after:M}:typeof M[0]=="number"&&(M={positions:M});else return A;return M=Dpr(M,{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"}),A||(f[x]=A={id:x,scale:null,translate:null,scaleFract:null,translateFract:null,draw:!0},M=eXe({},u,M)),Cpr(A,M,[{lineWidth:T=>+T*.5,capSize:T=>+T*.5,opacity:parseFloat,errors:T=>(T=tXe(T),w+=T.length,T),positions:(T,g)=>(T=tXe(T,"float64"),g.count=Math.floor(T.length/2),g.bounds=Epr(T,2),g.offset=m,m+=g.count,T)},{color:(T,g)=>{let E=g.count;if(T||(T="transparent"),!Array.isArray(T)||typeof T[0]=="number"){let C=T;T=Array(E);for(let k=0;k{let S=g.bounds;return T||(T=S),g.scale=[1/(T[2]-T[0]),1/(T[3]-T[1])],g.translate=[-T[0],-T[1]],g.scaleFract=wte(g.scale),g.translateFract=wte(g.translate),T},viewport:T=>{let g;return Array.isArray(T)?g={x:T[0],y:T[1],width:T[2]-T[0],height:T[3]-T[1]}:T?(g={x:T.x||T.left||0,y:T.y||T.top||0},T.right?g.width=T.right-g.x:g.width=T.w||T.width||0,T.bottom?g.height=T.bottom-g.y:g.height=T.h||T.height||0):g={x:0,y:0,width:r.drawingBufferWidth,height:r.drawingBufferHeight},g}}]),A}),m||w){let M=f.reduce((g,E,S)=>g+(E?E.count:0),0),x=new Float64Array(M*2),A=new Uint8Array(M*4),T=new Float32Array(M*4);f.forEach((g,E)=>{if(!g)return;let{positions:S,count:C,offset:k,color:D,errors:L}=g;C&&(A.set(D,k*4),T.set(L,k*4),x.set(S,k*2))});var _=Fpr(x);n(_);var b=wte(x,_);a(b),o(A),s(T)}}function v(){n.destroy(),a.destroy(),o.destroy(),s.destroy(),l.destroy()}}});var sXe=K((sri,oXe)=>{var aXe=/[\'\"]/;oXe.exports=function(t){return t?(aXe.test(t.charAt(0))&&(t=t.substr(1)),aXe.test(t.charAt(t.length-1))&&(t=t.substr(0,t.length-1)),t):""}});var Ate=K((lri,Ppr)=>{Ppr.exports=["inherit","initial","unset"]});var Tte=K((uri,zpr)=>{zpr.exports=["caption","icon","menu","message-box","small-caption","status-bar"]});var Mte=K((fri,Ipr)=>{Ipr.exports=["normal","bold","bolder","lighter","100","200","300","400","500","600","700","800","900"]});var Ste=K((cri,Rpr)=>{Rpr.exports=["normal","italic","oblique"]});var Ete=K((hri,Bpr)=>{Bpr.exports=["normal","condensed","semi-condensed","extra-condensed","ultra-condensed","expanded","semi-expanded","extra-expanded","ultra-expanded"]});var cXe=K((dri,fXe)=>{"use strict";function lXe(e,t){if(typeof e!="string")return[e];var r=[e];typeof t=="string"||Array.isArray(t)?t={brackets:t}:t||(t={});var i=t.brackets?Array.isArray(t.brackets)?t.brackets:[t.brackets]:["{}","[]","()"],n=t.escape||"___",a=!!t.flat;i.forEach(function(l){var u=new RegExp(["\\",l[0],"[^\\",l[0],"\\",l[1],"]*\\",l[1]].join("")),f=[];function c(h,d,p){var v=r.push(h.slice(l[0].length,-l[1].length))-1;return f.push(v),n+v+n}r.forEach(function(h,d){for(var p,v=0;h!=p;)if(p=h,h=h.replace(u,c),v++>1e4)throw Error("References have circular dependency. Please, check them.");r[d]=h}),f=f.reverse(),r=r.map(function(h){return f.forEach(function(d){h=h.replace(new RegExp("(\\"+n+d+"\\"+n+")","g"),l[0]+"$1"+l[1])}),h})});var o=new RegExp("\\"+n+"([0-9]+)\\"+n);function s(l,u,f){for(var c=[],h,d=0;h=o.exec(l);){if(d++>1e4)throw Error("Circular references in parenthesis");c.push(l.slice(0,h.index)),c.push(s(u[h[1]],u)),l=l.slice(h.index+h[0].length)}return c.push(l),c}return a?r:s(r[0],r)}function uXe(e,t){if(t&&t.flat){var r=t&&t.escape||"___",i=e[0],n;if(!i)return"";for(var a=new RegExp("\\"+r+"([0-9]+)\\"+r),o=0;i!=n;){if(o++>1e4)throw Error("Circular references in "+e);n=i,i=i.replace(a,s)}return i}return e.reduce(function l(u,f){return Array.isArray(f)&&(f=f.reduce(l,"")),u+f},"");function s(l,u){if(e[u]==null)throw Error("Reference "+u+"is undefined");return e[u]}}function kte(e,t){return Array.isArray(e)?uXe(e,t):lXe(e,t)}kte.parse=lXe;kte.stringify=uXe;fXe.exports=kte});var pXe=K((pri,dXe)=>{"use strict";var hXe=cXe();dXe.exports=function(t,r,i){if(t==null)throw Error("First argument should be a string");if(r==null)throw Error("Separator should be a string or a RegExp");i?(typeof i=="string"||Array.isArray(i))&&(i={ignore:i}):i={},i.escape==null&&(i.escape=!0),i.ignore==null?i.ignore=["[]","()","{}","<>",'""',"''","``","\u201C\u201D","\xAB\xBB"]:(typeof i.ignore=="string"&&(i.ignore=[i.ignore]),i.ignore=i.ignore.map(function(c){return c.length===1&&(c=c+c),c}));var n=hXe.parse(t,{flat:!0,brackets:i.ignore}),a=n[0],o=a.split(r);if(i.escape){for(var s=[],l=0;l{qpr.exports=["xx-small","x-small","small","medium","large","x-large","xx-large","larger","smaller"]});var Cte=K((mri,mXe)=>{"use strict";var Opr=vXe();mXe.exports={isSize:function(t){return/^[\d\.]/.test(t)||t.indexOf("/")!==-1||Opr.indexOf(t)!==-1}}});var bXe=K((yri,xXe)=>{"use strict";var Npr=sXe(),Vpr=Ate(),Upr=Tte(),Gpr=Mte(),Hpr=Ste(),jpr=Ete(),Dte=pXe(),Wpr=Cte().isSize;xXe.exports=gXe;var tk=gXe.cache={};function gXe(e){if(typeof e!="string")throw new Error("Font argument must be a string.");if(tk[e])return tk[e];if(e==="")throw new Error("Cannot parse an empty string.");if(Upr.indexOf(e)!==-1)return tk[e]={system:e};for(var t={style:"normal",variant:"normal",weight:"normal",stretch:"normal",lineHeight:"normal",size:"1rem",family:["serif"]},r=Dte(e,/\s+/),i;i=r.shift();){if(Vpr.indexOf(i)!==-1)return["style","variant","weight","stretch"].forEach(function(a){t[a]=i}),tk[e]=t;if(Hpr.indexOf(i)!==-1){t.style=i;continue}if(i==="normal"||i==="small-caps"){t.variant=i;continue}if(jpr.indexOf(i)!==-1){t.stretch=i;continue}if(Gpr.indexOf(i)!==-1){t.weight=i;continue}if(Wpr(i)){var n=Dte(i,"/");if(t.size=n[0],n[1]!=null?t.lineHeight=yXe(n[1]):r[0]==="/"&&(r.shift(),t.lineHeight=yXe(r.shift())),!r.length)throw new Error("Missing required font-family.");return t.family=Dte(r.join(" "),/\s*,\s*/).map(Npr),tk[e]=t}throw new Error("Unknown or unsupported font token: "+i)}throw new Error("Missing required font-size.")}function yXe(e){var t=parseFloat(e);return t.toString()===e?t:e}});var Lte=K((gri,_Xe)=>{"use strict";var $pr=Em(),Ypr=Cte().isSize,Xpr=ik(Ate()),Zpr=ik(Tte()),Kpr=ik(Mte()),Jpr=ik(Ste()),Qpr=ik(Ete()),evr={normal:1,"small-caps":1},tvr={serif:1,"sans-serif":1,monospace:1,cursive:1,fantasy:1,"system-ui":1},Fte={style:"normal",variant:"normal",weight:"normal",stretch:"normal",size:"1rem",lineHeight:"normal",family:"serif"};_Xe.exports=function(t){if(t=$pr(t,{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"}),t.system)return t.system&&rk(t.system,Zpr),t.system;if(rk(t.style,Jpr),rk(t.variant,evr),rk(t.weight,Kpr),rk(t.stretch,Qpr),t.size==null&&(t.size=Fte.size),typeof t.size=="number"&&(t.size+="px"),!Ypr)throw Error("Bad size value `"+t.size+"`");t.family||(t.family=Fte.family),Array.isArray(t.family)&&(t.family.length||(t.family=[Fte.family]),t.family=t.family.map(function(i){return tvr[i]?i:'"'+i+'"'}).join(", "));var r=[];return r.push(t.style),t.variant!==t.style&&r.push(t.variant),t.weight!==t.variant&&t.weight!==t.style&&r.push(t.weight),t.stretch!==t.weight&&t.stretch!==t.variant&&t.stretch!==t.style&&r.push(t.stretch),r.push(t.size+(t.lineHeight==null||t.lineHeight==="normal"||t.lineHeight+""=="1"?"":"/"+t.lineHeight)),r.push(t.family),r.filter(Boolean).join(" ")};function rk(e,t){if(e&&!t[e]&&!Xpr[e])throw Error("Unknown keyword `"+e+"`");return e}function ik(e){for(var t={},r=0;r{"use strict";wXe.exports={parse:bXe(),stringify:Lte()}});var Ite=K((Pte,zte)=>{(function(e,t){typeof Pte=="object"&&typeof zte!="undefined"?zte.exports=t():e.createREGL=t()})(Pte,(function(){"use strict";var e=function(tt,qt){for(var Gt=Object.keys(qt),hi=0;hi1&&qt===Gt&&(qt==='"'||qt==="'"))return['"'+o(tt.substr(1,tt.length-2))+'"'];var hi=/\[(false|true|null|\d+|'[^']*'|"[^"]*")\]/.exec(tt);if(hi)return s(tt.substr(0,hi.index)).concat(s(hi[1])).concat(s(tt.substr(hi.index+hi[0].length)));var Ki=tt.split(".");if(Ki.length===1)return['"'+o(tt)+'"'];for(var fn=[],Yi=0;Yi65535)<<4,tt>>>=qt,Gt=(tt>255)<<3,tt>>>=Gt,qt|=Gt,Gt=(tt>15)<<2,tt>>>=Gt,qt|=Gt,Gt=(tt>3)<<1,tt>>>=Gt,qt|=Gt,qt|tt>>1}function F(){var tt=T(8,function(){return[]});function qt(fn){var Yi=P(fn),ba=tt[I(Yi)>>2];return ba.length>0?ba.pop():new ArrayBuffer(Yi)}function Gt(fn){tt[I(fn.byteLength)>>2].push(fn)}function hi(fn,Yi){var ba=null;switch(fn){case g:ba=new Int8Array(qt(Yi),0,Yi);break;case E:ba=new Uint8Array(qt(Yi),0,Yi);break;case S:ba=new Int16Array(qt(2*Yi),0,Yi);break;case C:ba=new Uint16Array(qt(2*Yi),0,Yi);break;case k:ba=new Int32Array(qt(4*Yi),0,Yi);break;case D:ba=new Uint32Array(qt(4*Yi),0,Yi);break;case L:ba=new Float32Array(qt(4*Yi),0,Yi);break;default:return null}return ba.length!==Yi?ba.subarray(0,Yi):ba}function Ki(fn){Gt(fn.buffer)}return{alloc:qt,free:Gt,allocType:hi,freeType:Ki}}var z=F();z.zero=F();var B=3408,O=3410,W=3411,X=3412,Z=3413,j=3414,q=3415,Q=33901,N=33902,V=3379,J=3386,H=34921,$=36347,te=36348,ie=35661,de=35660,ge=34930,Ie=36349,Ce=34076,le=34024,re=7936,Ee=7937,we=7938,oe=35724,Y=34047,ne=36063,ye=34852,U=3553,se=34067,Ae=34069,be=33984,me=6408,ue=5126,pe=5121,ce=36160,Be=36053,$e=36064,Ze=16384,it=function(tt,qt){var Gt=1;qt.ext_texture_filter_anisotropic&&(Gt=tt.getParameter(Y));var hi=1,Ki=1;qt.webgl_draw_buffers&&(hi=tt.getParameter(ye),Ki=tt.getParameter(ne));var fn=!!qt.oes_texture_float;if(fn){var Yi=tt.createTexture();tt.bindTexture(U,Yi),tt.texImage2D(U,0,me,1,1,0,me,ue,null);var ba=tt.createFramebuffer();if(tt.bindFramebuffer(ce,ba),tt.framebufferTexture2D(ce,$e,U,Yi,0),tt.bindTexture(U,null),tt.checkFramebufferStatus(ce)!==Be)fn=!1;else{tt.viewport(0,0,1,1),tt.clearColor(1,0,0,1),tt.clear(Ze);var lo=z.allocType(ue,4);tt.readPixels(0,0,1,1,me,ue,lo),tt.getError()?fn=!1:(tt.deleteFramebuffer(ba),tt.deleteTexture(Yi),fn=lo[0]===1),z.freeType(lo)}}var uo=typeof navigator!="undefined"&&(/MSIE/.test(navigator.userAgent)||/Trident\//.test(navigator.appVersion)||/Edge/.test(navigator.userAgent)),vo=!0;if(!uo){var Vs=tt.createTexture(),ys=z.allocType(pe,36);tt.activeTexture(be),tt.bindTexture(se,Vs),tt.texImage2D(Ae,0,me,3,3,0,me,pe,ys),z.freeType(ys),tt.bindTexture(se,null),tt.deleteTexture(Vs),vo=!tt.getError()}return{colorBits:[tt.getParameter(O),tt.getParameter(W),tt.getParameter(X),tt.getParameter(Z)],depthBits:tt.getParameter(j),stencilBits:tt.getParameter(q),subpixelBits:tt.getParameter(B),extensions:Object.keys(qt).filter(function(Oo){return!!qt[Oo]}),maxAnisotropic:Gt,maxDrawbuffers:hi,maxColorAttachments:Ki,pointSizeDims:tt.getParameter(Q),lineWidthDims:tt.getParameter(N),maxViewportDims:tt.getParameter(J),maxCombinedTextureUnits:tt.getParameter(ie),maxCubeMapSize:tt.getParameter(Ce),maxRenderbufferSize:tt.getParameter(le),maxTextureUnits:tt.getParameter(ge),maxTextureSize:tt.getParameter(V),maxAttributes:tt.getParameter(H),maxVertexUniforms:tt.getParameter($),maxVertexTextureUnits:tt.getParameter(de),maxVaryingVectors:tt.getParameter(te),maxFragmentUniforms:tt.getParameter(Ie),glsl:tt.getParameter(oe),renderer:tt.getParameter(Ee),vendor:tt.getParameter(re),version:tt.getParameter(we),readFloat:fn,npotTextureCube:vo}},nt=function(tt){return tt instanceof Uint8Array||tt instanceof Uint16Array||tt instanceof Uint32Array||tt instanceof Int8Array||tt instanceof Int16Array||tt instanceof Int32Array||tt instanceof Float32Array||tt instanceof Float64Array||tt instanceof Uint8ClampedArray};function Ue(tt){return!!tt&&typeof tt=="object"&&Array.isArray(tt.shape)&&Array.isArray(tt.stride)&&typeof tt.offset=="number"&&tt.shape.length===tt.stride.length&&(Array.isArray(tt.data)||nt(tt.data))}var xe=function(tt){return Object.keys(tt).map(function(qt){return tt[qt]})},Re={shape:Se,flatten:Le};function Qe(tt,qt,Gt){for(var hi=0;hi0){var Ws;if(Array.isArray(Sn[0])){Vo=We(Sn);for(var _a=1,fa=1;fa0){if(typeof _a[0]=="number"){var Do=z.allocType(Ea.dtype,_a.length);hr(Do,_a),Vo(Do,hs),z.freeType(Do)}else if(Array.isArray(_a[0])||nt(_a[0])){qo=We(_a);var Lo=vt(_a,qo,Ea.dtype);Vo(Lo,hs),z.freeType(Lo)}}}else if(Ue(_a)){qo=_a.shape;var ds=_a.stride,$s=0,xl=0,$o=0,bs=0;qo.length===1?($s=qo[0],xl=1,$o=ds[0],bs=0):qo.length===2&&($s=qo[0],xl=qo[1],$o=ds[0],bs=ds[1]);var hl=Array.isArray(_a.data)?Ea.dtype:Er(_a.data),dl=z.allocType(hl,$s*xl);ni(dl,_a.data,$s,xl,$o,bs,_a.offset),Vo(dl,hs),z.freeType(dl)}return Ko}return Ka||Ko(Wr),Ko._reglType="buffer",Ko._buffer=Ea,Ko.subdata=Ws,Gt.profile&&(Ko.stats=Ea.stats),Ko.destroy=function(){ys(Ea)},Ko}function ra(){xe(fn).forEach(function(Wr){Wr.buffer=tt.createBuffer(),tt.bindBuffer(Wr.type,Wr.buffer),tt.bufferData(Wr.type,Wr.persistentData||Wr.byteLength,Wr.usage)})}return Gt.profile&&(qt.getTotalBufferSize=function(){var Wr=0;return Object.keys(fn).forEach(function(Sn){Wr+=fn[Sn].stats.size}),Wr}),{create:Oo,createStream:lo,destroyStream:uo,clear:function(){xe(fn).forEach(ys),ba.forEach(ys)},getBuffer:function(Wr){return Wr&&Wr._buffer instanceof Yi?Wr._buffer:null},restore:ra,_initBuffer:Vs}}var si=0,Tr=0,vr=1,Hr=1,Di=4,gn=4,wr={points:si,point:Tr,lines:vr,line:Hr,triangles:Di,triangle:gn,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},qr=0,Ut=1,jt=4,pr=5120,Ur=5121,Sr=5122,Cr=5123,di=5124,Fi=5125,ir=34963,Kt=35040,Me=35044;function Xe(tt,qt,Gt,hi){var Ki={},fn=0,Yi={uint8:Ur,uint16:Cr};qt.oes_element_index_uint&&(Yi.uint32=Fi);function ba(ra){this.id=fn++,Ki[this.id]=this,this.buffer=ra,this.primType=jt,this.vertCount=0,this.type=0}ba.prototype.bind=function(){this.buffer.bind()};var lo=[];function uo(ra){var Wr=lo.pop();return Wr||(Wr=new ba(Gt.create(null,ir,!0,!1)._buffer)),Vs(Wr,ra,Kt,-1,-1,0,0),Wr}function vo(ra){lo.push(ra)}function Vs(ra,Wr,Sn,Ka,_o,Ea,Ko){ra.buffer.bind();var Vo;if(Wr){var Ws=Ko;!Ko&&(!nt(Wr)||Ue(Wr)&&!nt(Wr.data))&&(Ws=qt.oes_element_index_uint?Fi:Cr),Gt._initBuffer(ra.buffer,Wr,Sn,Ws,3)}else tt.bufferData(ir,Ea,Sn),ra.buffer.dtype=Vo||Ur,ra.buffer.usage=Sn,ra.buffer.dimension=3,ra.buffer.byteLength=Ea;if(Vo=Ko,!Ko){switch(ra.buffer.dtype){case Ur:case pr:Vo=Ur;break;case Cr:case Sr:Vo=Cr;break;case Fi:case di:Vo=Fi;break;default:}ra.buffer.dtype=Vo}ra.type=Vo;var _a=_o;_a<0&&(_a=ra.buffer.byteLength,Vo===Cr?_a>>=1:Vo===Fi&&(_a>>=2)),ra.vertCount=_a;var fa=Ka;if(Ka<0){fa=jt;var hs=ra.buffer.dimension;hs===1&&(fa=qr),hs===2&&(fa=Ut),hs===3&&(fa=jt)}ra.primType=fa}function ys(ra){hi.elementsCount--,delete Ki[ra.id],ra.buffer.destroy(),ra.buffer=null}function Oo(ra,Wr){var Sn=Gt.create(null,ir,!0),Ka=new ba(Sn._buffer);hi.elementsCount++;function _o(Ea){if(!Ea)Sn(),Ka.primType=jt,Ka.vertCount=0,Ka.type=Ur;else if(typeof Ea=="number")Sn(Ea),Ka.primType=jt,Ka.vertCount=Ea|0,Ka.type=Ur;else{var Ko=null,Vo=Me,Ws=-1,_a=-1,fa=0,hs=0;Array.isArray(Ea)||nt(Ea)||Ue(Ea)?Ko=Ea:("data"in Ea&&(Ko=Ea.data),"usage"in Ea&&(Vo=lt[Ea.usage]),"primitive"in Ea&&(Ws=wr[Ea.primitive]),"count"in Ea&&(_a=Ea.count|0),"type"in Ea&&(hs=Yi[Ea.type]),"length"in Ea?fa=Ea.length|0:(fa=_a,hs===Cr||hs===Sr?fa*=2:(hs===Fi||hs===di)&&(fa*=4))),Vs(Ka,Ko,Vo,Ws,_a,fa,hs)}return _o}return _o(ra),_o._reglType="elements",_o._elements=Ka,_o.subdata=function(Ea,Ko){return Sn.subdata(Ea,Ko),_o},_o.destroy=function(){ys(Ka)},_o}return{create:Oo,createStream:uo,destroyStream:vo,getElements:function(ra){return typeof ra=="function"&&ra._elements instanceof ba?ra._elements:null},clear:function(){xe(Ki).forEach(ys)}}}var Ye=new Float32Array(1),et=new Uint32Array(Ye.buffer),gt=5123;function bt(tt){for(var qt=z.allocType(gt,tt.length),Gt=0;Gt>>31<<15,fn=(hi<<1>>>24)-127,Yi=hi>>13&1023;if(fn<-24)qt[Gt]=Ki;else if(fn<-14){var ba=-14-fn;qt[Gt]=Ki+(Yi+1024>>ba)}else fn>15?qt[Gt]=Ki+31744:qt[Gt]=Ki+(fn+15<<10)+Yi}return qt}function lr(tt){return Array.isArray(tt)||nt(tt)}var Ct=34467,ur=3553,Ir=34067,Rr=34069,Nr=6408,gi=6406,ui=6407,Qr=6409,Ui=6410,ln=32854,Tt=32855,_i=36194,kn=32819,ti=32820,Fr=33635,ji=34042,na=6402,mn=34041,$n=35904,Wi=35906,Qi=36193,_r=33776,Yr=33777,fi=33778,aa=33779,sn=35986,ca=35987,Kn=34798,hn=35840,Ta=35841,tn=35842,wi=35843,rn=36196,Ai=5121,ea=5123,qn=5125,pi=5126,Fn=10242,Pa=10243,dr=10497,ai=33071,Zi=33648,Vi=10240,pa=10241,Na=9728,an=9729,wn=9984,Ra=9985,ei=9986,Yn=9987,Ja=33170,ja=4352,ka=4353,ki=4354,pn=34046,Va=3317,Gi=37440,Pr=37441,ri=37443,bn=37444,Ri=33984,vi=[wn,ei,Ra,Yn],yr=[0,Qr,Ui,ui,Nr],Ti={};Ti[Qr]=Ti[gi]=Ti[na]=1,Ti[mn]=Ti[Ui]=2,Ti[ui]=Ti[$n]=3,Ti[Nr]=Ti[Wi]=4;function Cn(tt){return"[object "+tt+"]"}var Gr=Cn("HTMLCanvasElement"),Xn=Cn("OffscreenCanvas"),nn=Cn("CanvasRenderingContext2D"),ta=Cn("ImageBitmap"),Bi=Cn("HTMLImageElement"),On=Cn("HTMLVideoElement"),Nn=Object.keys(ze).concat([Gr,Xn,nn,ta,Bi,On]),ia=[];ia[Ai]=1,ia[pi]=4,ia[Qi]=2,ia[ea]=2,ia[qn]=4;var Jr=[];Jr[ln]=2,Jr[Tt]=2,Jr[_i]=2,Jr[mn]=4,Jr[_r]=.5,Jr[Yr]=.5,Jr[fi]=1,Jr[aa]=1,Jr[sn]=.5,Jr[ca]=1,Jr[Kn]=1,Jr[hn]=.5,Jr[Ta]=.25,Jr[tn]=.5,Jr[wi]=.25,Jr[rn]=.5;function Ci(tt){return Array.isArray(tt)&&(tt.length===0||typeof tt[0]=="number")}function un(tt){if(!Array.isArray(tt))return!1;var qt=tt.length;return!(qt===0||!lr(tt[0]))}function Dn(tt){return Object.prototype.toString.call(tt)}function Vn(tt){return Dn(tt)===Gr}function vn(tt){return Dn(tt)===Xn}function Br(tt){return Dn(tt)===nn}function Li(tt){return Dn(tt)===ta}function Ua(tt){return Dn(tt)===Bi}function yi(tt){return Dn(tt)===On}function Ma(tt){if(!tt)return!1;var qt=Dn(tt);return Nn.indexOf(qt)>=0?!0:Ci(tt)||un(tt)||Ue(tt)}function Ba(tt){return ze[Object.prototype.toString.call(tt)]|0}function Bn(tt,qt){var Gt=qt.length;switch(tt.type){case Ai:case ea:case qn:case pi:var hi=z.allocType(tt.type,Gt);hi.set(qt),tt.data=hi;break;case Qi:tt.data=bt(qt);break;default:}}function Hi(tt,qt){return z.allocType(tt.type===Qi?pi:tt.type,qt)}function yn(tt,qt){tt.type===Qi?(tt.data=bt(qt),z.freeType(qt)):tt.data=qt}function jn(tt,qt,Gt,hi,Ki,fn){for(var Yi=tt.width,ba=tt.height,lo=tt.channels,uo=Yi*ba*lo,vo=Hi(tt,uo),Vs=0,ys=0;ys=1;)ba+=Yi*lo*lo,lo/=2;return ba}else return Yi*Gt*hi}function zi(tt,qt,Gt,hi,Ki,fn,Yi){var ba={"don't care":ja,"dont care":ja,nice:ki,fast:ka},lo={repeat:dr,clamp:ai,mirror:Zi},uo={nearest:Na,linear:an},vo=e({mipmap:Yn,"nearest mipmap nearest":wn,"linear mipmap nearest":Ra,"nearest mipmap linear":ei,"linear mipmap linear":Yn},uo),Vs={none:0,browser:bn},ys={uint8:Ai,rgba4:kn,rgb565:Fr,"rgb5 a1":ti},Oo={alpha:gi,luminance:Qr,"luminance alpha":Ui,rgb:ui,rgba:Nr,rgba4:ln,"rgb5 a1":Tt,rgb565:_i},ra={};qt.ext_srgb&&(Oo.srgb=$n,Oo.srgba=Wi),qt.oes_texture_float&&(ys.float32=ys.float=pi),qt.oes_texture_half_float&&(ys.float16=ys["half float"]=Qi),qt.webgl_depth_texture&&(e(Oo,{depth:na,"depth stencil":mn}),e(ys,{uint16:ea,uint32:qn,"depth stencil":ji})),qt.webgl_compressed_texture_s3tc&&e(ra,{"rgb s3tc dxt1":_r,"rgba s3tc dxt1":Yr,"rgba s3tc dxt3":fi,"rgba s3tc dxt5":aa}),qt.webgl_compressed_texture_atc&&e(ra,{"rgb atc":sn,"rgba atc explicit alpha":ca,"rgba atc interpolated alpha":Kn}),qt.webgl_compressed_texture_pvrtc&&e(ra,{"rgb pvrtc 4bppv1":hn,"rgb pvrtc 2bppv1":Ta,"rgba pvrtc 4bppv1":tn,"rgba pvrtc 2bppv1":wi}),qt.webgl_compressed_texture_etc1&&(ra["rgb etc1"]=rn);var Wr=Array.prototype.slice.call(tt.getParameter(Ct));Object.keys(ra).forEach(function(Nt){var en=ra[Nt];Wr.indexOf(en)>=0&&(Oo[Nt]=en)});var Sn=Object.keys(Oo);Gt.textureFormats=Sn;var Ka=[];Object.keys(Oo).forEach(function(Nt){var en=Oo[Nt];Ka[en]=Nt});var _o=[];Object.keys(ys).forEach(function(Nt){var en=ys[Nt];_o[en]=Nt});var Ea=[];Object.keys(uo).forEach(function(Nt){var en=uo[Nt];Ea[en]=Nt});var Ko=[];Object.keys(vo).forEach(function(Nt){var en=vo[Nt];Ko[en]=Nt});var Vo=[];Object.keys(lo).forEach(function(Nt){var en=lo[Nt];Vo[en]=Nt});var Ws=Sn.reduce(function(Nt,en){var on=Oo[en];return on===Qr||on===gi||on===Qr||on===Ui||on===na||on===mn||qt.ext_srgb&&(on===$n||on===Wi)?Nt[on]=on:on===Tt||en.indexOf("rgba")>=0?Nt[on]=Nr:Nt[on]=ui,Nt},{});function _a(){this.internalformat=Nr,this.format=Nr,this.type=Ai,this.compressed=!1,this.premultiplyAlpha=!1,this.flipY=!1,this.unpackAlignment=1,this.colorSpace=bn,this.width=0,this.height=0,this.channels=0}function fa(Nt,en){Nt.internalformat=en.internalformat,Nt.format=en.format,Nt.type=en.type,Nt.compressed=en.compressed,Nt.premultiplyAlpha=en.premultiplyAlpha,Nt.flipY=en.flipY,Nt.unpackAlignment=en.unpackAlignment,Nt.colorSpace=en.colorSpace,Nt.width=en.width,Nt.height=en.height,Nt.channels=en.channels}function hs(Nt,en){if(!(typeof en!="object"||!en)){if("premultiplyAlpha"in en&&(Nt.premultiplyAlpha=en.premultiplyAlpha),"flipY"in en&&(Nt.flipY=en.flipY),"alignment"in en&&(Nt.unpackAlignment=en.alignment),"colorSpace"in en&&(Nt.colorSpace=Vs[en.colorSpace]),"type"in en){var on=en.type;Nt.type=ys[on]}var ks=Nt.width,ou=Nt.height,nf=Nt.channels,Ms=!1;"shape"in en?(ks=en.shape[0],ou=en.shape[1],en.shape.length===3&&(nf=en.shape[2],Ms=!0)):("radius"in en&&(ks=ou=en.radius),"width"in en&&(ks=en.width),"height"in en&&(ou=en.height),"channels"in en&&(nf=en.channels,Ms=!0)),Nt.width=ks|0,Nt.height=ou|0,Nt.channels=nf|0;var Pt=!1;if("format"in en){var Ht=en.format,cr=Nt.internalformat=Oo[Ht];Nt.format=Ws[cr],Ht in ys&&("type"in en||(Nt.type=ys[Ht])),Ht in ra&&(Nt.compressed=!0),Pt=!0}!Ms&&Pt?Nt.channels=Ti[Nt.format]:Ms&&!Pt&&Nt.channels!==yr[Nt.format]&&(Nt.format=Nt.internalformat=yr[Nt.channels])}}function qo(Nt){tt.pixelStorei(Gi,Nt.flipY),tt.pixelStorei(Pr,Nt.premultiplyAlpha),tt.pixelStorei(ri,Nt.colorSpace),tt.pixelStorei(Va,Nt.unpackAlignment)}function Do(){_a.call(this),this.xOffset=0,this.yOffset=0,this.data=null,this.needsFree=!1,this.element=null,this.needsCopy=!1}function Lo(Nt,en){var on=null;if(Ma(en)?on=en:en&&(hs(Nt,en),"x"in en&&(Nt.xOffset=en.x|0),"y"in en&&(Nt.yOffset=en.y|0),Ma(en.data)&&(on=en.data)),en.copy){var ks=Ki.viewportWidth,ou=Ki.viewportHeight;Nt.width=Nt.width||ks-Nt.xOffset,Nt.height=Nt.height||ou-Nt.yOffset,Nt.needsCopy=!0}else if(!on)Nt.width=Nt.width||1,Nt.height=Nt.height||1,Nt.channels=Nt.channels||4;else if(nt(on))Nt.channels=Nt.channels||4,Nt.data=on,!("type"in en)&&Nt.type===Ai&&(Nt.type=Ba(on));else if(Ci(on))Nt.channels=Nt.channels||4,Bn(Nt,on),Nt.alignment=1,Nt.needsFree=!0;else if(Ue(on)){var nf=on.data;!Array.isArray(nf)&&Nt.type===Ai&&(Nt.type=Ba(nf));var Ms=on.shape,Pt=on.stride,Ht,cr,Ji,dn,oi,$r;Ms.length===3?(Ji=Ms[2],$r=Pt[2]):(Ji=1,$r=1),Ht=Ms[0],cr=Ms[1],dn=Pt[0],oi=Pt[1],Nt.alignment=1,Nt.width=Ht,Nt.height=cr,Nt.channels=Ji,Nt.format=Nt.internalformat=yr[Ji],Nt.needsFree=!0,jn(Nt,nf,dn,oi,$r,on.offset)}else if(Vn(on)||vn(on)||Br(on))Vn(on)||vn(on)?Nt.element=on:Nt.element=on.canvas,Nt.width=Nt.element.width,Nt.height=Nt.element.height,Nt.channels=4;else if(Li(on))Nt.element=on,Nt.width=on.width,Nt.height=on.height,Nt.channels=4;else if(Ua(on))Nt.element=on,Nt.width=on.naturalWidth,Nt.height=on.naturalHeight,Nt.channels=4;else if(yi(on))Nt.element=on,Nt.width=on.videoWidth,Nt.height=on.videoHeight,Nt.channels=4;else if(un(on)){var Dr=Nt.width||on[0].length,tr=Nt.height||on.length,gr=Nt.channels;lr(on[0][0])?gr=gr||on[0][0].length:gr=gr||1;for(var Zt=Re.shape(on),bi=1,En=0;En>=ou,on.height>>=ou,Lo(on,ks[ou]),Nt.mipmask|=1<=0&&!("faces"in en)&&(Nt.genMipmaps=!0)}if("mag"in en){var ks=en.mag;Nt.magFilter=uo[ks]}var ou=Nt.wrapS,nf=Nt.wrapT;if("wrap"in en){var Ms=en.wrap;typeof Ms=="string"?ou=nf=lo[Ms]:Array.isArray(Ms)&&(ou=lo[Ms[0]],nf=lo[Ms[1]])}else{if("wrapS"in en){var Pt=en.wrapS;ou=lo[Pt]}if("wrapT"in en){var Ht=en.wrapT;nf=lo[Ht]}}if(Nt.wrapS=ou,Nt.wrapT=nf,"anisotropic"in en){var cr=en.anisotropic;Nt.anisotropic=en.anisotropic}if("mipmap"in en){var Ji=!1;switch(typeof en.mipmap){case"string":Nt.mipmapHint=ba[en.mipmap],Nt.genMipmaps=!0,Ji=!0;break;case"boolean":Ji=Nt.genMipmaps=en.mipmap;break;case"object":Nt.genMipmaps=!1,Ji=!0;break;default:}Ji&&!("min"in en)&&(Nt.minFilter=wn)}}function jh(Nt,en){tt.texParameteri(en,pa,Nt.minFilter),tt.texParameteri(en,Vi,Nt.magFilter),tt.texParameteri(en,Fn,Nt.wrapS),tt.texParameteri(en,Pa,Nt.wrapT),qt.ext_texture_filter_anisotropic&&tt.texParameteri(en,pn,Nt.anisotropic),Nt.genMipmaps&&(tt.hint(Ja,Nt.mipmapHint),tt.generateMipmap(en))}var y0=0,_c={},wc=Gt.maxTextureUnits,Oc=Array(wc).map(function(){return null});function Rl(Nt){_a.call(this),this.mipmask=0,this.internalformat=Nr,this.id=y0++,this.refCount=1,this.target=Nt,this.texture=tt.createTexture(),this.unit=-1,this.bindCount=0,this.texInfo=new rf,Yi.profile&&(this.stats={size:0})}function ah(Nt){tt.activeTexture(Ri),tt.bindTexture(Nt.target,Nt.texture)}function sf(){var Nt=Oc[0];Nt?tt.bindTexture(Nt.target,Nt.texture):tt.bindTexture(ur,null)}function Wh(Nt){var en=Nt.texture,on=Nt.unit,ks=Nt.target;on>=0&&(tt.activeTexture(Ri+on),tt.bindTexture(ks,null),Oc[on]=null),tt.deleteTexture(en),Nt.texture=null,Nt.params=null,Nt.pixels=null,Nt.refCount=0,delete _c[Nt.id],fn.textureCount--}e(Rl.prototype,{bind:function(){var Nt=this;Nt.bindCount+=1;var en=Nt.unit;if(en<0){for(var on=0;on0)continue;ks.unit=-1}Oc[on]=Nt,en=on;break}en>=wc,Yi.profile&&fn.maxTextureUnits>oi)-Ji,$r.height=$r.height||(on.height>>oi)-dn,ah(on),$s($r,ur,Ji,dn,oi),sf(),bs($r),ks}function nf(Ms,Pt){var Ht=Ms|0,cr=Pt|0||Ht;if(Ht===on.width&&cr===on.height)return ks;ks.width=on.width=Ht,ks.height=on.height=cr,ah(on);for(var Ji=0;on.mipmask>>Ji;++Ji){var dn=Ht>>Ji,oi=cr>>Ji;if(!dn||!oi)break;tt.texImage2D(ur,Ji,on.format,dn,oi,0,on.format,on.type,null)}return sf(),Yi.profile&&(on.stats.size=Un(on.internalformat,on.type,Ht,cr,!1,!1)),ks}return ks(Nt,en),ks.subimage=ou,ks.resize=nf,ks._reglType="texture2d",ks._texture=on,Yi.profile&&(ks.stats=on.stats),ks.destroy=function(){on.decRef()},ks}function x0(Nt,en,on,ks,ou,nf){var Ms=new Rl(Ir);_c[Ms.id]=Ms,fn.cubeCount++;var Pt=new Array(6);function Ht(dn,oi,$r,Dr,tr,gr){var Zt,bi=Ms.texInfo;for(rf.call(bi),Zt=0;Zt<6;++Zt)Pt[Zt]=ru();if(typeof dn=="number"||!dn){var En=dn|0||1;for(Zt=0;Zt<6;++Zt)dl(Pt[Zt],En,En)}else if(typeof dn=="object")if(oi)Wl(Pt[0],dn),Wl(Pt[1],oi),Wl(Pt[2],$r),Wl(Pt[3],Dr),Wl(Pt[4],tr),Wl(Pt[5],gr);else if(Dh(bi,dn),hs(Ms,dn),"faces"in dn){var Qa=dn.faces;for(Zt=0;Zt<6;++Zt)fa(Pt[Zt],Ms),Wl(Pt[Zt],Qa[Zt])}else for(Zt=0;Zt<6;++Zt)Wl(Pt[Zt],dn);for(fa(Ms,Pt[0]),bi.genMipmaps?Ms.mipmask=(Pt[0].width<<1)-1:Ms.mipmask=Pt[0].mipmask,Ms.internalformat=Pt[0].internalformat,Ht.width=Pt[0].width,Ht.height=Pt[0].height,ah(Ms),Zt=0;Zt<6;++Zt)Xf(Pt[Zt],Rr+Zt);for(jh(bi,Ir),sf(),Yi.profile&&(Ms.stats.size=Un(Ms.internalformat,Ms.type,Ht.width,Ht.height,bi.genMipmaps,!0)),Ht.format=Ka[Ms.internalformat],Ht.type=_o[Ms.type],Ht.mag=Ea[bi.magFilter],Ht.min=Ko[bi.minFilter],Ht.wrapS=Vo[bi.wrapS],Ht.wrapT=Vo[bi.wrapT],Zt=0;Zt<6;++Zt)m0(Pt[Zt]);return Ht}function cr(dn,oi,$r,Dr,tr){var gr=$r|0,Zt=Dr|0,bi=tr|0,En=$o();return fa(En,Ms),En.width=0,En.height=0,Lo(En,oi),En.width=En.width||(Ms.width>>bi)-gr,En.height=En.height||(Ms.height>>bi)-Zt,ah(Ms),$s(En,Rr+dn,gr,Zt,bi),sf(),bs(En),Ht}function Ji(dn){var oi=dn|0;if(oi!==Ms.width){Ht.width=Ms.width=oi,Ht.height=Ms.height=oi,ah(Ms);for(var $r=0;$r<6;++$r)for(var Dr=0;Ms.mipmask>>Dr;++Dr)tt.texImage2D(Rr+$r,Dr,Ms.format,oi>>Dr,oi>>Dr,0,Ms.format,Ms.type,null);return sf(),Yi.profile&&(Ms.stats.size=Un(Ms.internalformat,Ms.type,Ht.width,Ht.height,!1,!0)),Ht}}return Ht(Nt,en,on,ks,ou,nf),Ht.subimage=cr,Ht.resize=Ji,Ht._reglType="textureCube",Ht._texture=Ms,Yi.profile&&(Ht.stats=Ms.stats),Ht.destroy=function(){Ms.decRef()},Ht}function kl(){for(var Nt=0;Nt>ks,on.height>>ks,0,on.internalformat,on.type,null);else for(var ou=0;ou<6;++ou)tt.texImage2D(Rr+ou,ks,on.internalformat,on.width>>ks,on.height>>ks,0,on.internalformat,on.type,null);jh(on.texInfo,on.target)})}function Mf(){for(var Nt=0;Nt=0?m0=!0:lo.indexOf(rf)>=0&&(m0=!1))),("depthTexture"in Rl||"depthStencilTexture"in Rl)&&(Oc=!!(Rl.depthTexture||Rl.depthStencilTexture)),"depth"in Rl&&(typeof Rl.depth=="boolean"?Xf=Rl.depth:(y0=Rl.depth,qc=!1)),"stencil"in Rl&&(typeof Rl.stencil=="boolean"?qc=Rl.stencil:(_c=Rl.stencil,Xf=!1)),"depthStencil"in Rl&&(typeof Rl.depthStencil=="boolean"?Xf=qc=Rl.depthStencil:(wc=Rl.depthStencil,Xf=!1,qc=!1))}var sf=null,Wh=null,g0=null,x0=null;if(Array.isArray(ru))sf=ru.map(ra);else if(ru)sf=[ra(ru)];else for(sf=new Array(jh),hl=0;hl0&&(bs.depth=Lo[0].depth,bs.stencil=Lo[0].stencil,bs.depthStencil=Lo[0].depthStencil),Lo[$o]?Lo[$o](bs):Lo[$o]=fa(bs)}return e(ds,{width:hl,height:hl,color:rf})}function $s(xl){var $o,bs=xl|0;if(bs===ds.width)return ds;var hl=ds.color;for($o=0;$o=hl.byteLength?dl.subdata(hl):(dl.destroy(),fa.buffers[xl]=null)),fa.buffers[xl]||(dl=fa.buffers[xl]=Ki.create($o,ya,!1,!0)),bs.buffer=Ki.getBuffer(dl),bs.size=bs.buffer.dimension|0,bs.normalized=!1,bs.type=bs.buffer.dtype,bs.offset=0,bs.stride=0,bs.divisor=0,bs.state=1,ds[xl]=1}else Ki.getBuffer($o)?(bs.buffer=Ki.getBuffer($o),bs.size=bs.buffer.dimension|0,bs.normalized=!1,bs.type=bs.buffer.dtype,bs.offset=0,bs.stride=0,bs.divisor=0,bs.state=1):Ki.getBuffer($o.buffer)?(bs.buffer=Ki.getBuffer($o.buffer),bs.size=(+$o.size||bs.buffer.dimension)|0,bs.normalized=!!$o.normalized||!1,"type"in $o?bs.type=rr[$o.type]:bs.type=bs.buffer.dtype,bs.offset=($o.offset||0)|0,bs.stride=($o.stride||0)|0,bs.divisor=($o.divisor||0)|0,bs.state=1):"x"in $o&&(bs.x=+$o.x||0,bs.y=+$o.y||0,bs.z=+$o.z||0,bs.w=+$o.w||0,bs.state=2)}for(var Wl=0;Wl1)for(var qo=0;qoWr&&(Wr=Sn.stats.uniformsCount)}),Wr},Gt.getMaxAttributesCount=function(){var Wr=0;return vo.forEach(function(Sn){Sn.stats.attributesCount>Wr&&(Wr=Sn.stats.attributesCount)}),Wr});function ra(){Ki={},fn={};for(var Wr=0;Wr16&&(Gt=Wt(Gt,tt.length*8));for(var hi=Array(16),Ki=Array(16),fn=0;fn<16;fn++)hi[fn]=Gt[fn]^909522486,Ki[fn]=Gt[fn]^1549556828;var Yi=Wt(hi.concat($a(qt)),512+qt.length*8);return Fe(Wt(Ki.concat(Yi),768))}function qa(tt){for(var qt=Mn?"0123456789ABCDEF":"0123456789abcdef",Gt="",hi,Ki=0;Ki>>4&15)+qt.charAt(hi&15);return Gt}function Zn(tt){for(var qt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Gt="",hi=tt.length,Ki=0;Kitt.length*8?Gt+=Ao:Gt+=qt.charAt(fn>>>6*(3-Yi)&63);return Gt}function Ha(tt,qt){var Gt=qt.length,hi=Array(),Ki,fn,Yi,ba,lo=Array(Math.ceil(tt.length/2));for(Ki=0;Ki0;){for(ba=Array(),Yi=0,Ki=0;Ki0||fn>0)&&(ba[ba.length]=fn);hi[hi.length]=Yi,lo=ba}var uo="";for(Ki=hi.length-1;Ki>=0;Ki--)uo+=qt.charAt(hi[Ki]);var vo=Math.ceil(tt.length*8/(Math.log(qt.length)/Math.log(2)));for(Ki=uo.length;Ki>>6&31,128|hi&63):hi<=65535?qt+=String.fromCharCode(224|hi>>>12&15,128|hi>>>6&63,128|hi&63):hi<=2097151&&(qt+=String.fromCharCode(240|hi>>>18&7,128|hi>>>12&63,128|hi>>>6&63,128|hi&63));return qt}function $a(tt){for(var qt=Array(tt.length>>2),Gt=0;Gt>5]|=(tt.charCodeAt(Gt/8)&255)<<24-Gt%32;return qt}function Fe(tt){for(var qt="",Gt=0;Gt>5]>>>24-Gt%32&255);return qt}function Ge(tt,qt){return tt>>>qt|tt<<32-qt}function ot(tt,qt){return tt>>>qt}function rt(tt,qt,Gt){return tt&qt^~tt&Gt}function mt(tt,qt,Gt){return tt&qt^tt&Gt^qt&Gt}function It(tt){return Ge(tt,2)^Ge(tt,13)^Ge(tt,22)}function Bt(tt){return Ge(tt,6)^Ge(tt,11)^Ge(tt,25)}function Ot(tt){return Ge(tt,7)^Ge(tt,18)^ot(tt,3)}function nr(tt){return Ge(tt,17)^Ge(tt,19)^ot(tt,10)}var zr=new Array(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);function Wt(tt,qt){var Gt=new Array(1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225),hi=new Array(64),Ki,fn,Yi,ba,lo,uo,vo,Vs,ys,Oo,ra,Wr;for(tt[qt>>5]|=128<<24-qt%32,tt[(qt+64>>9<<4)+15]=qt,ys=0;ys>16)+(qt>>16)+(Gt>>16);return hi<<16|Gt&65535}function er(tt){return Array.prototype.slice.call(tt)}function kr(tt){return er(tt).join("")}function Vr(tt){var qt=tt&&tt.cache,Gt=0,hi=[],Ki=[],fn=[];function Yi(ra,Wr){var Sn=Wr&&Wr.stable;if(!Sn){for(var Ka=0;Ka0&&(ra.push(_o,"="),ra.push.apply(ra,er(arguments)),ra.push(";")),_o}return e(Wr,{def:Ka,toString:function(){return kr([Sn.length>0?"var "+Sn.join(",")+";":"",kr(ra)])}})}function lo(){var ra=ba(),Wr=ba(),Sn=ra.toString,Ka=Wr.toString;function _o(Ea,Ko){Wr(Ea,Ko,"=",ra.def(Ea,Ko),";")}return e(function(){ra.apply(ra,er(arguments))},{def:ra.def,entry:ra,exit:Wr,save:_o,set:function(Ea,Ko,Vo){_o(Ea,Ko),ra(Ea,Ko,"=",Vo,";")},toString:function(){return Sn()+Ka()}})}function uo(){var ra=kr(arguments),Wr=lo(),Sn=lo(),Ka=Wr.toString,_o=Sn.toString;return e(Wr,{then:function(){return Wr.apply(Wr,er(arguments)),this},else:function(){return Sn.apply(Sn,er(arguments)),this},toString:function(){var Ea=_o();return Ea&&(Ea="else{"+Ea+"}"),kr(["if(",ra,"){",Ka(),"}",Ea])}})}var vo=ba(),Vs={};function ys(ra,Wr){var Sn=[];function Ka(){var Ws="a"+Sn.length;return Sn.push(Ws),Ws}Wr=Wr||0;for(var _o=0;_o[m.viewport.x,m.viewport.y,y.viewportWidth,y.viewportHeight]},attributes:{color:{buffer:o,offset:(y,m)=>m.offset*4,divisor:1},position:{buffer:n,offset:(y,m)=>m.offset*8,divisor:1},positionFract:{buffer:a,offset:(y,m)=>m.offset*8,divisor:1},error:{buffer:s,offset:(y,m)=>m.offset*16,divisor:1},direction:{buffer:l,stride:24,offset:0},lineOffset:{buffer:l,stride:24,offset:8},capOffset:{buffer:l,stride:24,offset:16}},primitive:"triangles",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:!1},scissor:{enable:!0,box:e.prop("viewport")},viewport:e.prop("viewport"),stencil:!1,instances:e.prop("count"),count:fXe.length}),lXe(c,{update:p,draw:h,destroy:v,regl:e,gl:r,canvas:r.canvas,groups:f}),c;function c(y){y?p(y):y===null&&v(),h()}function h(y){if(typeof y=="number")return d(y);y&&!Array.isArray(y)&&(y=[y]),e._refresh(),f.forEach((m,w)=>{if(m){if(y&&(y[w]?m.draw=!0:m.draw=!1),!m.draw){m.draw=!0;return}d(w)}})}function d(y){typeof y=="number"&&(y=f[y]),y!=null&&y&&y.count&&y.color&&y.opacity&&y.positions&&y.positions.length>1&&(y.scaleRatio=[y.scale[0]*y.viewport.width,y.scale[1]*y.viewport.height],i(y),y.after&&y.after(y))}function p(y){if(!y)return;y.length!=null?typeof y[0]=="number"&&(y=[{positions:y}]):Array.isArray(y)||(y=[y]);let m=0,w=0;if(c.groups=f=y.map((M,x)=>{let T=f[x];if(M)typeof M=="function"?M={after:M}:typeof M[0]=="number"&&(M={positions:M});else return T;return M=Npr(M,{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"}),T||(f[x]=T={id:x,scale:null,translate:null,scaleFract:null,translateFract:null,draw:!0},M=lXe({},u,M)),Opr(T,M,[{lineWidth:A=>+A*.5,capSize:A=>+A*.5,opacity:parseFloat,errors:A=>(A=uXe(A),w+=A.length,A),positions:(A,g)=>(A=uXe(A,"float64"),g.count=Math.floor(A.length/2),g.bounds=Bpr(A,2),g.offset=m,m+=g.count,A)},{color:(A,g)=>{let E=g.count;if(A||(A="transparent"),!Array.isArray(A)||typeof A[0]=="number"){let C=A;A=Array(E);for(let k=0;k{let S=g.bounds;return A||(A=S),g.scale=[1/(A[2]-A[0]),1/(A[3]-A[1])],g.translate=[-A[0],-A[1]],g.scaleFract=Dte(g.scale),g.translateFract=Dte(g.translate),A},viewport:A=>{let g;return Array.isArray(A)?g={x:A[0],y:A[1],width:A[2]-A[0],height:A[3]-A[1]}:A?(g={x:A.x||A.left||0,y:A.y||A.top||0},A.right?g.width=A.right-g.x:g.width=A.w||A.width||0,A.bottom?g.height=A.bottom-g.y:g.height=A.h||A.height||0):g={x:0,y:0,width:r.drawingBufferWidth,height:r.drawingBufferHeight},g}}]),T}),m||w){let M=f.reduce((g,E,S)=>g+(E?E.count:0),0),x=new Float64Array(M*2),T=new Uint8Array(M*4),A=new Float32Array(M*4);f.forEach((g,E)=>{if(!g)return;let{positions:S,count:C,offset:k,color:D,errors:F}=g;C&&(T.set(D,k*4),A.set(F,k*4),x.set(S,k*2))});var _=Vpr(x);n(_);var b=Dte(x,_);a(b),o(T),s(A)}}function v(){n.destroy(),a.destroy(),o.destroy(),s.destroy(),l.destroy()}}});var vXe=K((_ri,pXe)=>{var dXe=/[\'\"]/;pXe.exports=function(t){return t?(dXe.test(t.charAt(0))&&(t=t.substr(1)),dXe.test(t.charAt(t.length-1))&&(t=t.substr(0,t.length-1)),t):""}});var Fte=K((wri,Gpr)=>{Gpr.exports=["inherit","initial","unset"]});var Lte=K((Ari,Hpr)=>{Hpr.exports=["caption","icon","menu","message-box","small-caption","status-bar"]});var Pte=K((Tri,jpr)=>{jpr.exports=["normal","bold","bolder","lighter","100","200","300","400","500","600","700","800","900"]});var zte=K((Mri,Wpr)=>{Wpr.exports=["normal","italic","oblique"]});var Ite=K((Sri,$pr)=>{$pr.exports=["normal","condensed","semi-condensed","extra-condensed","ultra-condensed","expanded","semi-expanded","extra-expanded","ultra-expanded"]});var xXe=K((Eri,gXe)=>{"use strict";function mXe(e,t){if(typeof e!="string")return[e];var r=[e];typeof t=="string"||Array.isArray(t)?t={brackets:t}:t||(t={});var i=t.brackets?Array.isArray(t.brackets)?t.brackets:[t.brackets]:["{}","[]","()"],n=t.escape||"___",a=!!t.flat;i.forEach(function(l){var u=new RegExp(["\\",l[0],"[^\\",l[0],"\\",l[1],"]*\\",l[1]].join("")),f=[];function c(h,d,p){var v=r.push(h.slice(l[0].length,-l[1].length))-1;return f.push(v),n+v+n}r.forEach(function(h,d){for(var p,v=0;h!=p;)if(p=h,h=h.replace(u,c),v++>1e4)throw Error("References have circular dependency. Please, check them.");r[d]=h}),f=f.reverse(),r=r.map(function(h){return f.forEach(function(d){h=h.replace(new RegExp("(\\"+n+d+"\\"+n+")","g"),l[0]+"$1"+l[1])}),h})});var o=new RegExp("\\"+n+"([0-9]+)\\"+n);function s(l,u,f){for(var c=[],h,d=0;h=o.exec(l);){if(d++>1e4)throw Error("Circular references in parenthesis");c.push(l.slice(0,h.index)),c.push(s(u[h[1]],u)),l=l.slice(h.index+h[0].length)}return c.push(l),c}return a?r:s(r[0],r)}function yXe(e,t){if(t&&t.flat){var r=t&&t.escape||"___",i=e[0],n;if(!i)return"";for(var a=new RegExp("\\"+r+"([0-9]+)\\"+r),o=0;i!=n;){if(o++>1e4)throw Error("Circular references in "+e);n=i,i=i.replace(a,s)}return i}return e.reduce(function l(u,f){return Array.isArray(f)&&(f=f.reduce(l,"")),u+f},"");function s(l,u){if(e[u]==null)throw Error("Reference "+u+"is undefined");return e[u]}}function Rte(e,t){return Array.isArray(e)?yXe(e,t):mXe(e,t)}Rte.parse=mXe;Rte.stringify=yXe;gXe.exports=Rte});var wXe=K((kri,_Xe)=>{"use strict";var bXe=xXe();_Xe.exports=function(t,r,i){if(t==null)throw Error("First argument should be a string");if(r==null)throw Error("Separator should be a string or a RegExp");i?(typeof i=="string"||Array.isArray(i))&&(i={ignore:i}):i={},i.escape==null&&(i.escape=!0),i.ignore==null?i.ignore=["[]","()","{}","<>",'""',"''","``","\u201C\u201D","\xAB\xBB"]:(typeof i.ignore=="string"&&(i.ignore=[i.ignore]),i.ignore=i.ignore.map(function(c){return c.length===1&&(c=c+c),c}));var n=bXe.parse(t,{flat:!0,brackets:i.ignore}),a=n[0],o=a.split(r);if(i.escape){for(var s=[],l=0;l{Ypr.exports=["xx-small","x-small","small","medium","large","x-large","xx-large","larger","smaller"]});var Bte=K((Dri,TXe)=>{"use strict";var Xpr=AXe();TXe.exports={isSize:function(t){return/^[\d\.]/.test(t)||t.indexOf("/")!==-1||Xpr.indexOf(t)!==-1}}});var kXe=K((Fri,EXe)=>{"use strict";var Zpr=vXe(),Kpr=Fte(),Jpr=Lte(),Qpr=Pte(),evr=zte(),tvr=Ite(),qte=wXe(),rvr=Bte().isSize;EXe.exports=SXe;var ik=SXe.cache={};function SXe(e){if(typeof e!="string")throw new Error("Font argument must be a string.");if(ik[e])return ik[e];if(e==="")throw new Error("Cannot parse an empty string.");if(Jpr.indexOf(e)!==-1)return ik[e]={system:e};for(var t={style:"normal",variant:"normal",weight:"normal",stretch:"normal",lineHeight:"normal",size:"1rem",family:["serif"]},r=qte(e,/\s+/),i;i=r.shift();){if(Kpr.indexOf(i)!==-1)return["style","variant","weight","stretch"].forEach(function(a){t[a]=i}),ik[e]=t;if(evr.indexOf(i)!==-1){t.style=i;continue}if(i==="normal"||i==="small-caps"){t.variant=i;continue}if(tvr.indexOf(i)!==-1){t.stretch=i;continue}if(Qpr.indexOf(i)!==-1){t.weight=i;continue}if(rvr(i)){var n=qte(i,"/");if(t.size=n[0],n[1]!=null?t.lineHeight=MXe(n[1]):r[0]==="/"&&(r.shift(),t.lineHeight=MXe(r.shift())),!r.length)throw new Error("Missing required font-family.");return t.family=qte(r.join(" "),/\s*,\s*/).map(Zpr),ik[e]=t}throw new Error("Unknown or unsupported font token: "+i)}throw new Error("Missing required font-size.")}function MXe(e){var t=parseFloat(e);return t.toString()===e?t:e}});var Nte=K((Lri,CXe)=>{"use strict";var ivr=Cm(),nvr=Bte().isSize,avr=ak(Fte()),ovr=ak(Lte()),svr=ak(Pte()),lvr=ak(zte()),uvr=ak(Ite()),fvr={normal:1,"small-caps":1},cvr={serif:1,"sans-serif":1,monospace:1,cursive:1,fantasy:1,"system-ui":1},Ote={style:"normal",variant:"normal",weight:"normal",stretch:"normal",size:"1rem",lineHeight:"normal",family:"serif"};CXe.exports=function(t){if(t=ivr(t,{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"}),t.system)return t.system&&nk(t.system,ovr),t.system;if(nk(t.style,lvr),nk(t.variant,fvr),nk(t.weight,svr),nk(t.stretch,uvr),t.size==null&&(t.size=Ote.size),typeof t.size=="number"&&(t.size+="px"),!nvr)throw Error("Bad size value `"+t.size+"`");t.family||(t.family=Ote.family),Array.isArray(t.family)&&(t.family.length||(t.family=[Ote.family]),t.family=t.family.map(function(i){return cvr[i]?i:'"'+i+'"'}).join(", "));var r=[];return r.push(t.style),t.variant!==t.style&&r.push(t.variant),t.weight!==t.variant&&t.weight!==t.style&&r.push(t.weight),t.stretch!==t.weight&&t.stretch!==t.variant&&t.stretch!==t.style&&r.push(t.stretch),r.push(t.size+(t.lineHeight==null||t.lineHeight==="normal"||t.lineHeight+""=="1"?"":"/"+t.lineHeight)),r.push(t.family),r.filter(Boolean).join(" ")};function nk(e,t){if(e&&!t[e]&&!avr[e])throw Error("Unknown keyword `"+e+"`");return e}function ak(e){for(var t={},r=0;r{"use strict";DXe.exports={parse:kXe(),stringify:Nte()}});var Gte=K((Vte,Ute)=>{(function(e,t){typeof Vte=="object"&&typeof Ute!="undefined"?Ute.exports=t():e.createREGL=t()})(Vte,(function(){"use strict";var e=function(et,Ot){for(var Ht=Object.keys(Ot),hi=0;hi1&&Ot===Ht&&(Ot==='"'||Ot==="'"))return['"'+o(et.substr(1,et.length-2))+'"'];var hi=/\[(false|true|null|\d+|'[^']*'|"[^"]*")\]/.exec(et);if(hi)return s(et.substr(0,hi.index)).concat(s(hi[1])).concat(s(et.substr(hi.index+hi[0].length)));var Ji=et.split(".");if(Ji.length===1)return['"'+o(et)+'"'];for(var cn=[],Xi=0;Xi65535)<<4,et>>>=Ot,Ht=(et>255)<<3,et>>>=Ht,Ot|=Ht,Ht=(et>15)<<2,et>>>=Ht,Ot|=Ht,Ht=(et>3)<<1,et>>>=Ht,Ot|=Ht,Ot|et>>1}function L(){var et=A(8,function(){return[]});function Ot(cn){var Xi=P(cn),ba=et[I(Xi)>>2];return ba.length>0?ba.pop():new ArrayBuffer(Xi)}function Ht(cn){et[I(cn.byteLength)>>2].push(cn)}function hi(cn,Xi){var ba=null;switch(cn){case g:ba=new Int8Array(Ot(Xi),0,Xi);break;case E:ba=new Uint8Array(Ot(Xi),0,Xi);break;case S:ba=new Int16Array(Ot(2*Xi),0,Xi);break;case C:ba=new Uint16Array(Ot(2*Xi),0,Xi);break;case k:ba=new Int32Array(Ot(4*Xi),0,Xi);break;case D:ba=new Uint32Array(Ot(4*Xi),0,Xi);break;case F:ba=new Float32Array(Ot(4*Xi),0,Xi);break;default:return null}return ba.length!==Xi?ba.subarray(0,Xi):ba}function Ji(cn){Ht(cn.buffer)}return{alloc:Ot,free:Ht,allocType:hi,freeType:Ji}}var z=L();z.zero=L();var B=3408,O=3410,W=3411,X=3412,Z=3413,H=3414,q=3415,Q=33901,N=33902,U=3379,J=3386,j=34921,$=36347,ie=36348,re=35661,de=35660,me=34930,ze=36349,ke=34076,le=34024,te=7936,Ee=7937,we=7938,oe=35724,Y=34047,ne=36063,ye=34852,V=3553,ue=34067,_e=34069,xe=33984,Ae=6408,se=5126,pe=5121,fe=36160,Re=36053,We=36064,Ke=16384,tt=function(et,Ot){var Ht=1;Ot.ext_texture_filter_anisotropic&&(Ht=et.getParameter(Y));var hi=1,Ji=1;Ot.webgl_draw_buffers&&(hi=et.getParameter(ye),Ji=et.getParameter(ne));var cn=!!Ot.oes_texture_float;if(cn){var Xi=et.createTexture();et.bindTexture(V,Xi),et.texImage2D(V,0,Ae,1,1,0,Ae,se,null);var ba=et.createFramebuffer();if(et.bindFramebuffer(fe,ba),et.framebufferTexture2D(fe,We,V,Xi,0),et.bindTexture(V,null),et.checkFramebufferStatus(fe)!==Re)cn=!1;else{et.viewport(0,0,1,1),et.clearColor(1,0,0,1),et.clear(Ke);var lo=z.allocType(se,4);et.readPixels(0,0,1,1,Ae,se,lo),et.getError()?cn=!1:(et.deleteFramebuffer(ba),et.deleteTexture(Xi),cn=lo[0]===1),z.freeType(lo)}}var uo=typeof navigator!="undefined"&&(/MSIE/.test(navigator.userAgent)||/Trident\//.test(navigator.appVersion)||/Edge/.test(navigator.userAgent)),vo=!0;if(!uo){var Vs=et.createTexture(),ys=z.allocType(pe,36);et.activeTexture(xe),et.bindTexture(ue,Vs),et.texImage2D(_e,0,Ae,3,3,0,Ae,pe,ys),z.freeType(ys),et.bindTexture(ue,null),et.deleteTexture(Vs),vo=!et.getError()}return{colorBits:[et.getParameter(O),et.getParameter(W),et.getParameter(X),et.getParameter(Z)],depthBits:et.getParameter(H),stencilBits:et.getParameter(q),subpixelBits:et.getParameter(B),extensions:Object.keys(Ot).filter(function(Oo){return!!Ot[Oo]}),maxAnisotropic:Ht,maxDrawbuffers:hi,maxColorAttachments:Ji,pointSizeDims:et.getParameter(Q),lineWidthDims:et.getParameter(N),maxViewportDims:et.getParameter(J),maxCombinedTextureUnits:et.getParameter(re),maxCubeMapSize:et.getParameter(ke),maxRenderbufferSize:et.getParameter(le),maxTextureUnits:et.getParameter(me),maxTextureSize:et.getParameter(U),maxAttributes:et.getParameter(j),maxVertexUniforms:et.getParameter($),maxVertexTextureUnits:et.getParameter(de),maxVaryingVectors:et.getParameter(ie),maxFragmentUniforms:et.getParameter(ze),glsl:et.getParameter(oe),renderer:et.getParameter(Ee),vendor:et.getParameter(te),version:et.getParameter(we),readFloat:cn,npotTextureCube:vo}},at=function(et){return et instanceof Uint8Array||et instanceof Uint16Array||et instanceof Uint32Array||et instanceof Int8Array||et instanceof Int16Array||et instanceof Int32Array||et instanceof Float32Array||et instanceof Float64Array||et instanceof Uint8ClampedArray};function Ge(et){return!!et&&typeof et=="object"&&Array.isArray(et.shape)&&Array.isArray(et.stride)&&typeof et.offset=="number"&&et.shape.length===et.stride.length&&(Array.isArray(et.data)||at(et.data))}var ge=function(et){return Object.keys(et).map(function(Ot){return et[Ot]})},Be={shape:Se,flatten:Pe};function Ze(et,Ot,Ht){for(var hi=0;hi0){var $s;if(Array.isArray(Sn[0])){Vo=rt(Sn);for(var _a=1,fa=1;fa0){if(typeof _a[0]=="number"){var Do=z.allocType(Ea.dtype,_a.length);fr(Do,_a),Vo(Do,hs),z.freeType(Do)}else if(Array.isArray(_a[0])||at(_a[0])){qo=rt(_a);var Lo=dt(_a,qo,Ea.dtype);Vo(Lo,hs),z.freeType(Lo)}}}else if(Ge(_a)){qo=_a.shape;var ds=_a.stride,Ys=0,xl=0,$o=0,bs=0;qo.length===1?(Ys=qo[0],xl=1,$o=ds[0],bs=0):qo.length===2&&(Ys=qo[0],xl=qo[1],$o=ds[0],bs=ds[1]);var hl=Array.isArray(_a.data)?Ea.dtype:kr(_a.data),dl=z.allocType(hl,Ys*xl);Yr(dl,_a.data,Ys,xl,$o,bs,_a.offset),Vo(dl,hs),z.freeType(dl)}return Ko}return Ka||Ko($r),Ko._reglType="buffer",Ko._buffer=Ea,Ko.subdata=$s,Ht.profile&&(Ko.stats=Ea.stats),Ko.destroy=function(){ys(Ea)},Ko}function ra(){ge(cn).forEach(function($r){$r.buffer=et.createBuffer(),et.bindBuffer($r.type,$r.buffer),et.bufferData($r.type,$r.persistentData||$r.byteLength,$r.usage)})}return Ht.profile&&(Ot.getTotalBufferSize=function(){var $r=0;return Object.keys(cn).forEach(function(Sn){$r+=cn[Sn].stats.size}),$r}),{create:Oo,createStream:lo,destroyStream:uo,clear:function(){ge(cn).forEach(ys),ba.forEach(ys)},getBuffer:function($r){return $r&&$r._buffer instanceof Xi?$r._buffer:null},restore:ra,_initBuffer:Vs}}var ri=0,Tr=0,Mr=1,Gr=1,_i=4,Fi=4,wr={points:ri,point:Tr,lines:Mr,line:Gr,triangles:_i,triangle:Fi,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},Cr=0,Ut=1,Wt=4,dr=5120,Hr=5121,Er=5122,Fr=5123,di=5124,Li=5125,nr=34963,Kt=35040,Me=35044;function Xe(et,Ot,Ht,hi){var Ji={},cn=0,Xi={uint8:Hr,uint16:Fr};Ot.oes_element_index_uint&&(Xi.uint32=Li);function ba(ra){this.id=cn++,Ji[this.id]=this,this.buffer=ra,this.primType=Wt,this.vertCount=0,this.type=0}ba.prototype.bind=function(){this.buffer.bind()};var lo=[];function uo(ra){var $r=lo.pop();return $r||($r=new ba(Ht.create(null,nr,!0,!1)._buffer)),Vs($r,ra,Kt,-1,-1,0,0),$r}function vo(ra){lo.push(ra)}function Vs(ra,$r,Sn,Ka,_o,Ea,Ko){ra.buffer.bind();var Vo;if($r){var $s=Ko;!Ko&&(!at($r)||Ge($r)&&!at($r.data))&&($s=Ot.oes_element_index_uint?Li:Fr),Ht._initBuffer(ra.buffer,$r,Sn,$s,3)}else et.bufferData(nr,Ea,Sn),ra.buffer.dtype=Vo||Hr,ra.buffer.usage=Sn,ra.buffer.dimension=3,ra.buffer.byteLength=Ea;if(Vo=Ko,!Ko){switch(ra.buffer.dtype){case Hr:case dr:Vo=Hr;break;case Fr:case Er:Vo=Fr;break;case Li:case di:Vo=Li;break;default:}ra.buffer.dtype=Vo}ra.type=Vo;var _a=_o;_a<0&&(_a=ra.buffer.byteLength,Vo===Fr?_a>>=1:Vo===Li&&(_a>>=2)),ra.vertCount=_a;var fa=Ka;if(Ka<0){fa=Wt;var hs=ra.buffer.dimension;hs===1&&(fa=Cr),hs===2&&(fa=Ut),hs===3&&(fa=Wt)}ra.primType=fa}function ys(ra){hi.elementsCount--,delete Ji[ra.id],ra.buffer.destroy(),ra.buffer=null}function Oo(ra,$r){var Sn=Ht.create(null,nr,!0),Ka=new ba(Sn._buffer);hi.elementsCount++;function _o(Ea){if(!Ea)Sn(),Ka.primType=Wt,Ka.vertCount=0,Ka.type=Hr;else if(typeof Ea=="number")Sn(Ea),Ka.primType=Wt,Ka.vertCount=Ea|0,Ka.type=Hr;else{var Ko=null,Vo=Me,$s=-1,_a=-1,fa=0,hs=0;Array.isArray(Ea)||at(Ea)||Ge(Ea)?Ko=Ea:("data"in Ea&&(Ko=Ea.data),"usage"in Ea&&(Vo=st[Ea.usage]),"primitive"in Ea&&($s=wr[Ea.primitive]),"count"in Ea&&(_a=Ea.count|0),"type"in Ea&&(hs=Xi[Ea.type]),"length"in Ea?fa=Ea.length|0:(fa=_a,hs===Fr||hs===Er?fa*=2:(hs===Li||hs===di)&&(fa*=4))),Vs(Ka,Ko,Vo,$s,_a,fa,hs)}return _o}return _o(ra),_o._reglType="elements",_o._elements=Ka,_o.subdata=function(Ea,Ko){return Sn.subdata(Ea,Ko),_o},_o.destroy=function(){ys(Ka)},_o}return{create:Oo,createStream:uo,destroyStream:vo,getElements:function(ra){return typeof ra=="function"&&ra._elements instanceof ba?ra._elements:null},clear:function(){ge(Ji).forEach(ys)}}}var $e=new Float32Array(1),Qe=new Uint32Array($e.buffer),gt=5123;function bt(et){for(var Ot=z.allocType(gt,et.length),Ht=0;Ht>>31<<15,cn=(hi<<1>>>24)-127,Xi=hi>>13&1023;if(cn<-24)Ot[Ht]=Ji;else if(cn<-14){var ba=-14-cn;Ot[Ht]=Ji+(Xi+1024>>ba)}else cn>15?Ot[Ht]=Ji+31744:Ot[Ht]=Ji+(cn+15<<10)+Xi}return Ot}function lr(et){return Array.isArray(et)||at(et)}var Ct=34467,ur=3553,Rr=34067,Br=34069,Vr=6408,gi=6406,ui=6407,ei=6409,Gi=6410,un=32854,Tt=32855,wi=36194,kn=32819,ii=32820,Pr=33635,Wi=34042,na=6402,yn=34041,$n=35904,$i=35906,en=36193,_r=33776,Zr=33777,fi=33778,aa=33779,ln=35986,ca=35987,Kn=34798,dn=35840,Ta=35841,rn=35842,Ai=35843,nn=36196,Ti=5121,ea=5123,qn=5125,pi=5126,Fn=10242,Pa=10243,pr=10497,oi=33071,Ki=33648,Ui=10240,pa=10241,Na=9728,on=9729,wn=9984,Ra=9985,ti=9986,Yn=9987,Ja=33170,ja=4352,ka=4353,Ci=4354,vn=34046,Va=3317,Hi=37440,zr=37441,ni=37443,bn=37444,Bi=33984,vi=[wn,ti,Ra,Yn],mr=[0,ei,Gi,ui,Vr],Mi={};Mi[ei]=Mi[gi]=Mi[na]=1,Mi[yn]=Mi[Gi]=2,Mi[ui]=Mi[$n]=3,Mi[Vr]=Mi[$i]=4;function Cn(et){return"[object "+et+"]"}var jr=Cn("HTMLCanvasElement"),Xn=Cn("OffscreenCanvas"),an=Cn("CanvasRenderingContext2D"),ta=Cn("ImageBitmap"),qi=Cn("HTMLImageElement"),On=Cn("HTMLVideoElement"),Nn=Object.keys(Ie).concat([jr,Xn,an,ta,qi,On]),ia=[];ia[Ti]=1,ia[pi]=4,ia[en]=2,ia[ea]=2,ia[qn]=4;var Qr=[];Qr[un]=2,Qr[Tt]=2,Qr[wi]=2,Qr[yn]=4,Qr[_r]=.5,Qr[Zr]=.5,Qr[fi]=1,Qr[aa]=1,Qr[ln]=.5,Qr[ca]=1,Qr[Kn]=1,Qr[dn]=.5,Qr[Ta]=.25,Qr[rn]=.5,Qr[Ai]=.25,Qr[nn]=.5;function Di(et){return Array.isArray(et)&&(et.length===0||typeof et[0]=="number")}function fn(et){if(!Array.isArray(et))return!1;var Ot=et.length;return!(Ot===0||!lr(et[0]))}function Dn(et){return Object.prototype.toString.call(et)}function Vn(et){return Dn(et)===jr}function mn(et){return Dn(et)===Xn}function qr(et){return Dn(et)===an}function Pi(et){return Dn(et)===ta}function Ua(et){return Dn(et)===qi}function yi(et){return Dn(et)===On}function Ma(et){if(!et)return!1;var Ot=Dn(et);return Nn.indexOf(Ot)>=0?!0:Di(et)||fn(et)||Ge(et)}function Ba(et){return Ie[Object.prototype.toString.call(et)]|0}function Bn(et,Ot){var Ht=Ot.length;switch(et.type){case Ti:case ea:case qn:case pi:var hi=z.allocType(et.type,Ht);hi.set(Ot),et.data=hi;break;case en:et.data=bt(Ot);break;default:}}function ji(et,Ot){return z.allocType(et.type===en?pi:et.type,Ot)}function gn(et,Ot){et.type===en?(et.data=bt(Ot),z.freeType(Ot)):et.data=Ot}function jn(et,Ot,Ht,hi,Ji,cn){for(var Xi=et.width,ba=et.height,lo=et.channels,uo=Xi*ba*lo,vo=ji(et,uo),Vs=0,ys=0;ys=1;)ba+=Xi*lo*lo,lo/=2;return ba}else return Xi*Ht*hi}function Ii(et,Ot,Ht,hi,Ji,cn,Xi){var ba={"don't care":ja,"dont care":ja,nice:Ci,fast:ka},lo={repeat:pr,clamp:oi,mirror:Ki},uo={nearest:Na,linear:on},vo=e({mipmap:Yn,"nearest mipmap nearest":wn,"linear mipmap nearest":Ra,"nearest mipmap linear":ti,"linear mipmap linear":Yn},uo),Vs={none:0,browser:bn},ys={uint8:Ti,rgba4:kn,rgb565:Pr,"rgb5 a1":ii},Oo={alpha:gi,luminance:ei,"luminance alpha":Gi,rgb:ui,rgba:Vr,rgba4:un,"rgb5 a1":Tt,rgb565:wi},ra={};Ot.ext_srgb&&(Oo.srgb=$n,Oo.srgba=$i),Ot.oes_texture_float&&(ys.float32=ys.float=pi),Ot.oes_texture_half_float&&(ys.float16=ys["half float"]=en),Ot.webgl_depth_texture&&(e(Oo,{depth:na,"depth stencil":yn}),e(ys,{uint16:ea,uint32:qn,"depth stencil":Wi})),Ot.webgl_compressed_texture_s3tc&&e(ra,{"rgb s3tc dxt1":_r,"rgba s3tc dxt1":Zr,"rgba s3tc dxt3":fi,"rgba s3tc dxt5":aa}),Ot.webgl_compressed_texture_atc&&e(ra,{"rgb atc":ln,"rgba atc explicit alpha":ca,"rgba atc interpolated alpha":Kn}),Ot.webgl_compressed_texture_pvrtc&&e(ra,{"rgb pvrtc 4bppv1":dn,"rgb pvrtc 2bppv1":Ta,"rgba pvrtc 4bppv1":rn,"rgba pvrtc 2bppv1":Ai}),Ot.webgl_compressed_texture_etc1&&(ra["rgb etc1"]=nn);var $r=Array.prototype.slice.call(et.getParameter(Ct));Object.keys(ra).forEach(function(Vt){var tn=ra[Vt];$r.indexOf(tn)>=0&&(Oo[Vt]=tn)});var Sn=Object.keys(Oo);Ht.textureFormats=Sn;var Ka=[];Object.keys(Oo).forEach(function(Vt){var tn=Oo[Vt];Ka[tn]=Vt});var _o=[];Object.keys(ys).forEach(function(Vt){var tn=ys[Vt];_o[tn]=Vt});var Ea=[];Object.keys(uo).forEach(function(Vt){var tn=uo[Vt];Ea[tn]=Vt});var Ko=[];Object.keys(vo).forEach(function(Vt){var tn=vo[Vt];Ko[tn]=Vt});var Vo=[];Object.keys(lo).forEach(function(Vt){var tn=lo[Vt];Vo[tn]=Vt});var $s=Sn.reduce(function(Vt,tn){var sn=Oo[tn];return sn===ei||sn===gi||sn===ei||sn===Gi||sn===na||sn===yn||Ot.ext_srgb&&(sn===$n||sn===$i)?Vt[sn]=sn:sn===Tt||tn.indexOf("rgba")>=0?Vt[sn]=Vr:Vt[sn]=ui,Vt},{});function _a(){this.internalformat=Vr,this.format=Vr,this.type=Ti,this.compressed=!1,this.premultiplyAlpha=!1,this.flipY=!1,this.unpackAlignment=1,this.colorSpace=bn,this.width=0,this.height=0,this.channels=0}function fa(Vt,tn){Vt.internalformat=tn.internalformat,Vt.format=tn.format,Vt.type=tn.type,Vt.compressed=tn.compressed,Vt.premultiplyAlpha=tn.premultiplyAlpha,Vt.flipY=tn.flipY,Vt.unpackAlignment=tn.unpackAlignment,Vt.colorSpace=tn.colorSpace,Vt.width=tn.width,Vt.height=tn.height,Vt.channels=tn.channels}function hs(Vt,tn){if(!(typeof tn!="object"||!tn)){if("premultiplyAlpha"in tn&&(Vt.premultiplyAlpha=tn.premultiplyAlpha),"flipY"in tn&&(Vt.flipY=tn.flipY),"alignment"in tn&&(Vt.unpackAlignment=tn.alignment),"colorSpace"in tn&&(Vt.colorSpace=Vs[tn.colorSpace]),"type"in tn){var sn=tn.type;Vt.type=ys[sn]}var ks=Vt.width,ou=Vt.height,nf=Vt.channels,Ms=!1;"shape"in tn?(ks=tn.shape[0],ou=tn.shape[1],tn.shape.length===3&&(nf=tn.shape[2],Ms=!0)):("radius"in tn&&(ks=ou=tn.radius),"width"in tn&&(ks=tn.width),"height"in tn&&(ou=tn.height),"channels"in tn&&(nf=tn.channels,Ms=!0)),Vt.width=ks|0,Vt.height=ou|0,Vt.channels=nf|0;var zt=!1;if("format"in tn){var jt=tn.format,hr=Vt.internalformat=Oo[jt];Vt.format=$s[hr],jt in ys&&("type"in tn||(Vt.type=ys[jt])),jt in ra&&(Vt.compressed=!0),zt=!0}!Ms&&zt?Vt.channels=Mi[Vt.format]:Ms&&!zt&&Vt.channels!==mr[Vt.format]&&(Vt.format=Vt.internalformat=mr[Vt.channels])}}function qo(Vt){et.pixelStorei(Hi,Vt.flipY),et.pixelStorei(zr,Vt.premultiplyAlpha),et.pixelStorei(ni,Vt.colorSpace),et.pixelStorei(Va,Vt.unpackAlignment)}function Do(){_a.call(this),this.xOffset=0,this.yOffset=0,this.data=null,this.needsFree=!1,this.element=null,this.needsCopy=!1}function Lo(Vt,tn){var sn=null;if(Ma(tn)?sn=tn:tn&&(hs(Vt,tn),"x"in tn&&(Vt.xOffset=tn.x|0),"y"in tn&&(Vt.yOffset=tn.y|0),Ma(tn.data)&&(sn=tn.data)),tn.copy){var ks=Ji.viewportWidth,ou=Ji.viewportHeight;Vt.width=Vt.width||ks-Vt.xOffset,Vt.height=Vt.height||ou-Vt.yOffset,Vt.needsCopy=!0}else if(!sn)Vt.width=Vt.width||1,Vt.height=Vt.height||1,Vt.channels=Vt.channels||4;else if(at(sn))Vt.channels=Vt.channels||4,Vt.data=sn,!("type"in tn)&&Vt.type===Ti&&(Vt.type=Ba(sn));else if(Di(sn))Vt.channels=Vt.channels||4,Bn(Vt,sn),Vt.alignment=1,Vt.needsFree=!0;else if(Ge(sn)){var nf=sn.data;!Array.isArray(nf)&&Vt.type===Ti&&(Vt.type=Ba(nf));var Ms=sn.shape,zt=sn.stride,jt,hr,Qi,pn,si,Xr;Ms.length===3?(Qi=Ms[2],Xr=zt[2]):(Qi=1,Xr=1),jt=Ms[0],hr=Ms[1],pn=zt[0],si=zt[1],Vt.alignment=1,Vt.width=jt,Vt.height=hr,Vt.channels=Qi,Vt.format=Vt.internalformat=mr[Qi],Vt.needsFree=!0,jn(Vt,nf,pn,si,Xr,sn.offset)}else if(Vn(sn)||mn(sn)||qr(sn))Vn(sn)||mn(sn)?Vt.element=sn:Vt.element=sn.canvas,Vt.width=Vt.element.width,Vt.height=Vt.element.height,Vt.channels=4;else if(Pi(sn))Vt.element=sn,Vt.width=sn.width,Vt.height=sn.height,Vt.channels=4;else if(Ua(sn))Vt.element=sn,Vt.width=sn.naturalWidth,Vt.height=sn.naturalHeight,Vt.channels=4;else if(yi(sn))Vt.element=sn,Vt.width=sn.videoWidth,Vt.height=sn.videoHeight,Vt.channels=4;else if(fn(sn)){var Lr=Vt.width||sn[0].length,ir=Vt.height||sn.length,yr=Vt.channels;lr(sn[0][0])?yr=yr||sn[0][0].length:yr=yr||1;for(var Zt=Be.shape(sn),bi=1,En=0;En>=ou,sn.height>>=ou,Lo(sn,ks[ou]),Vt.mipmask|=1<=0&&!("faces"in tn)&&(Vt.genMipmaps=!0)}if("mag"in tn){var ks=tn.mag;Vt.magFilter=uo[ks]}var ou=Vt.wrapS,nf=Vt.wrapT;if("wrap"in tn){var Ms=tn.wrap;typeof Ms=="string"?ou=nf=lo[Ms]:Array.isArray(Ms)&&(ou=lo[Ms[0]],nf=lo[Ms[1]])}else{if("wrapS"in tn){var zt=tn.wrapS;ou=lo[zt]}if("wrapT"in tn){var jt=tn.wrapT;nf=lo[jt]}}if(Vt.wrapS=ou,Vt.wrapT=nf,"anisotropic"in tn){var hr=tn.anisotropic;Vt.anisotropic=tn.anisotropic}if("mipmap"in tn){var Qi=!1;switch(typeof tn.mipmap){case"string":Vt.mipmapHint=ba[tn.mipmap],Vt.genMipmaps=!0,Qi=!0;break;case"boolean":Qi=Vt.genMipmaps=tn.mipmap;break;case"object":Vt.genMipmaps=!1,Qi=!0;break;default:}Qi&&!("min"in tn)&&(Vt.minFilter=wn)}}function Wh(Vt,tn){et.texParameteri(tn,pa,Vt.minFilter),et.texParameteri(tn,Ui,Vt.magFilter),et.texParameteri(tn,Fn,Vt.wrapS),et.texParameteri(tn,Pa,Vt.wrapT),Ot.ext_texture_filter_anisotropic&&et.texParameteri(tn,vn,Vt.anisotropic),Vt.genMipmaps&&(et.hint(Ja,Vt.mipmapHint),et.generateMipmap(tn))}var g0=0,Tc={},Mc=Ht.maxTextureUnits,Uc=Array(Mc).map(function(){return null});function Rl(Vt){_a.call(this),this.mipmask=0,this.internalformat=Vr,this.id=g0++,this.refCount=1,this.target=Vt,this.texture=et.createTexture(),this.unit=-1,this.bindCount=0,this.texInfo=new rf,Xi.profile&&(this.stats={size:0})}function sh(Vt){et.activeTexture(Bi),et.bindTexture(Vt.target,Vt.texture)}function sf(){var Vt=Uc[0];Vt?et.bindTexture(Vt.target,Vt.texture):et.bindTexture(ur,null)}function $h(Vt){var tn=Vt.texture,sn=Vt.unit,ks=Vt.target;sn>=0&&(et.activeTexture(Bi+sn),et.bindTexture(ks,null),Uc[sn]=null),et.deleteTexture(tn),Vt.texture=null,Vt.params=null,Vt.pixels=null,Vt.refCount=0,delete Tc[Vt.id],cn.textureCount--}e(Rl.prototype,{bind:function(){var Vt=this;Vt.bindCount+=1;var tn=Vt.unit;if(tn<0){for(var sn=0;sn0)continue;ks.unit=-1}Uc[sn]=Vt,tn=sn;break}tn>=Mc,Xi.profile&&cn.maxTextureUnits>si)-Qi,Xr.height=Xr.height||(sn.height>>si)-pn,sh(sn),Ys(Xr,ur,Qi,pn,si),sf(),bs(Xr),ks}function nf(Ms,zt){var jt=Ms|0,hr=zt|0||jt;if(jt===sn.width&&hr===sn.height)return ks;ks.width=sn.width=jt,ks.height=sn.height=hr,sh(sn);for(var Qi=0;sn.mipmask>>Qi;++Qi){var pn=jt>>Qi,si=hr>>Qi;if(!pn||!si)break;et.texImage2D(ur,Qi,sn.format,pn,si,0,sn.format,sn.type,null)}return sf(),Xi.profile&&(sn.stats.size=Un(sn.internalformat,sn.type,jt,hr,!1,!1)),ks}return ks(Vt,tn),ks.subimage=ou,ks.resize=nf,ks._reglType="texture2d",ks._texture=sn,Xi.profile&&(ks.stats=sn.stats),ks.destroy=function(){sn.decRef()},ks}function b0(Vt,tn,sn,ks,ou,nf){var Ms=new Rl(Rr);Tc[Ms.id]=Ms,cn.cubeCount++;var zt=new Array(6);function jt(pn,si,Xr,Lr,ir,yr){var Zt,bi=Ms.texInfo;for(rf.call(bi),Zt=0;Zt<6;++Zt)zt[Zt]=ru();if(typeof pn=="number"||!pn){var En=pn|0||1;for(Zt=0;Zt<6;++Zt)dl(zt[Zt],En,En)}else if(typeof pn=="object")if(si)Wl(zt[0],pn),Wl(zt[1],si),Wl(zt[2],Xr),Wl(zt[3],Lr),Wl(zt[4],ir),Wl(zt[5],yr);else if(Fh(bi,pn),hs(Ms,pn),"faces"in pn){var Qa=pn.faces;for(Zt=0;Zt<6;++Zt)fa(zt[Zt],Ms),Wl(zt[Zt],Qa[Zt])}else for(Zt=0;Zt<6;++Zt)Wl(zt[Zt],pn);for(fa(Ms,zt[0]),bi.genMipmaps?Ms.mipmask=(zt[0].width<<1)-1:Ms.mipmask=zt[0].mipmask,Ms.internalformat=zt[0].internalformat,jt.width=zt[0].width,jt.height=zt[0].height,sh(Ms),Zt=0;Zt<6;++Zt)Zf(zt[Zt],Br+Zt);for(Wh(bi,Rr),sf(),Xi.profile&&(Ms.stats.size=Un(Ms.internalformat,Ms.type,jt.width,jt.height,bi.genMipmaps,!0)),jt.format=Ka[Ms.internalformat],jt.type=_o[Ms.type],jt.mag=Ea[bi.magFilter],jt.min=Ko[bi.minFilter],jt.wrapS=Vo[bi.wrapS],jt.wrapT=Vo[bi.wrapT],Zt=0;Zt<6;++Zt)y0(zt[Zt]);return jt}function hr(pn,si,Xr,Lr,ir){var yr=Xr|0,Zt=Lr|0,bi=ir|0,En=$o();return fa(En,Ms),En.width=0,En.height=0,Lo(En,si),En.width=En.width||(Ms.width>>bi)-yr,En.height=En.height||(Ms.height>>bi)-Zt,sh(Ms),Ys(En,Br+pn,yr,Zt,bi),sf(),bs(En),jt}function Qi(pn){var si=pn|0;if(si!==Ms.width){jt.width=Ms.width=si,jt.height=Ms.height=si,sh(Ms);for(var Xr=0;Xr<6;++Xr)for(var Lr=0;Ms.mipmask>>Lr;++Lr)et.texImage2D(Br+Xr,Lr,Ms.format,si>>Lr,si>>Lr,0,Ms.format,Ms.type,null);return sf(),Xi.profile&&(Ms.stats.size=Un(Ms.internalformat,Ms.type,jt.width,jt.height,!1,!0)),jt}}return jt(Vt,tn,sn,ks,ou,nf),jt.subimage=hr,jt.resize=Qi,jt._reglType="textureCube",jt._texture=Ms,Xi.profile&&(jt.stats=Ms.stats),jt.destroy=function(){Ms.decRef()},jt}function kl(){for(var Vt=0;Vt>ks,sn.height>>ks,0,sn.internalformat,sn.type,null);else for(var ou=0;ou<6;++ou)et.texImage2D(Br+ou,ks,sn.internalformat,sn.width>>ks,sn.height>>ks,0,sn.internalformat,sn.type,null);Wh(sn.texInfo,sn.target)})}function Mf(){for(var Vt=0;Vt=0?y0=!0:lo.indexOf(rf)>=0&&(y0=!1))),("depthTexture"in Rl||"depthStencilTexture"in Rl)&&(Uc=!!(Rl.depthTexture||Rl.depthStencilTexture)),"depth"in Rl&&(typeof Rl.depth=="boolean"?Zf=Rl.depth:(g0=Rl.depth,Vc=!1)),"stencil"in Rl&&(typeof Rl.stencil=="boolean"?Vc=Rl.stencil:(Tc=Rl.stencil,Zf=!1)),"depthStencil"in Rl&&(typeof Rl.depthStencil=="boolean"?Zf=Vc=Rl.depthStencil:(Mc=Rl.depthStencil,Zf=!1,Vc=!1))}var sf=null,$h=null,x0=null,b0=null;if(Array.isArray(ru))sf=ru.map(ra);else if(ru)sf=[ra(ru)];else for(sf=new Array(Wh),hl=0;hl0&&(bs.depth=Lo[0].depth,bs.stencil=Lo[0].stencil,bs.depthStencil=Lo[0].depthStencil),Lo[$o]?Lo[$o](bs):Lo[$o]=fa(bs)}return e(ds,{width:hl,height:hl,color:rf})}function Ys(xl){var $o,bs=xl|0;if(bs===ds.width)return ds;var hl=ds.color;for($o=0;$o=hl.byteLength?dl.subdata(hl):(dl.destroy(),fa.buffers[xl]=null)),fa.buffers[xl]||(dl=fa.buffers[xl]=Ji.create($o,ya,!1,!0)),bs.buffer=Ji.getBuffer(dl),bs.size=bs.buffer.dimension|0,bs.normalized=!1,bs.type=bs.buffer.dtype,bs.offset=0,bs.stride=0,bs.divisor=0,bs.state=1,ds[xl]=1}else Ji.getBuffer($o)?(bs.buffer=Ji.getBuffer($o),bs.size=bs.buffer.dimension|0,bs.normalized=!1,bs.type=bs.buffer.dtype,bs.offset=0,bs.stride=0,bs.divisor=0,bs.state=1):Ji.getBuffer($o.buffer)?(bs.buffer=Ji.getBuffer($o.buffer),bs.size=(+$o.size||bs.buffer.dimension)|0,bs.normalized=!!$o.normalized||!1,"type"in $o?bs.type=tr[$o.type]:bs.type=bs.buffer.dtype,bs.offset=($o.offset||0)|0,bs.stride=($o.stride||0)|0,bs.divisor=($o.divisor||0)|0,bs.state=1):"x"in $o&&(bs.x=+$o.x||0,bs.y=+$o.y||0,bs.z=+$o.z||0,bs.w=+$o.w||0,bs.state=2)}for(var Wl=0;Wl1)for(var qo=0;qo$r&&($r=Sn.stats.uniformsCount)}),$r},Ht.getMaxAttributesCount=function(){var $r=0;return vo.forEach(function(Sn){Sn.stats.attributesCount>$r&&($r=Sn.stats.attributesCount)}),$r});function ra(){Ji={},cn={};for(var $r=0;$r16&&(Ht=$t(Ht,et.length*8));for(var hi=Array(16),Ji=Array(16),cn=0;cn<16;cn++)hi[cn]=Ht[cn]^909522486,Ji[cn]=Ht[cn]^1549556828;var Xi=$t(hi.concat($a(Ot)),512+Ot.length*8);return Fe($t(Ji.concat(Xi),768))}function qa(et){for(var Ot=Mn?"0123456789ABCDEF":"0123456789abcdef",Ht="",hi,Ji=0;Ji>>4&15)+Ot.charAt(hi&15);return Ht}function Zn(et){for(var Ot="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ht="",hi=et.length,Ji=0;Jiet.length*8?Ht+=To:Ht+=Ot.charAt(cn>>>6*(3-Xi)&63);return Ht}function Ha(et,Ot){var Ht=Ot.length,hi=Array(),Ji,cn,Xi,ba,lo=Array(Math.ceil(et.length/2));for(Ji=0;Ji0;){for(ba=Array(),Xi=0,Ji=0;Ji0||cn>0)&&(ba[ba.length]=cn);hi[hi.length]=Xi,lo=ba}var uo="";for(Ji=hi.length-1;Ji>=0;Ji--)uo+=Ot.charAt(hi[Ji]);var vo=Math.ceil(et.length*8/(Math.log(Ot.length)/Math.log(2)));for(Ji=uo.length;Ji>>6&31,128|hi&63):hi<=65535?Ot+=String.fromCharCode(224|hi>>>12&15,128|hi>>>6&63,128|hi&63):hi<=2097151&&(Ot+=String.fromCharCode(240|hi>>>18&7,128|hi>>>12&63,128|hi>>>6&63,128|hi&63));return Ot}function $a(et){for(var Ot=Array(et.length>>2),Ht=0;Ht>5]|=(et.charCodeAt(Ht/8)&255)<<24-Ht%32;return Ot}function Fe(et){for(var Ot="",Ht=0;Ht>5]>>>24-Ht%32&255);return Ot}function Ve(et,Ot){return et>>>Ot|et<<32-Ot}function lt(et,Ot){return et>>>Ot}function it(et,Ot,Ht){return et&Ot^~et&Ht}function mt(et,Ot,Ht){return et&Ot^et&Ht^Ot&Ht}function Rt(et){return Ve(et,2)^Ve(et,13)^Ve(et,22)}function qt(et){return Ve(et,6)^Ve(et,11)^Ve(et,25)}function Nt(et){return Ve(et,7)^Ve(et,18)^lt(et,3)}function ar(et){return Ve(et,17)^Ve(et,19)^lt(et,10)}var Ir=new Array(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);function $t(et,Ot){var Ht=new Array(1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225),hi=new Array(64),Ji,cn,Xi,ba,lo,uo,vo,Vs,ys,Oo,ra,$r;for(et[Ot>>5]|=128<<24-Ot%32,et[(Ot+64>>9<<4)+15]=Ot,ys=0;ys>16)+(Ot>>16)+(Ht>>16);return hi<<16|Ht&65535}function rr(et){return Array.prototype.slice.call(et)}function Dr(et){return rr(et).join("")}function Ur(et){var Ot=et&&et.cache,Ht=0,hi=[],Ji=[],cn=[];function Xi(ra,$r){var Sn=$r&&$r.stable;if(!Sn){for(var Ka=0;Ka0&&(ra.push(_o,"="),ra.push.apply(ra,rr(arguments)),ra.push(";")),_o}return e($r,{def:Ka,toString:function(){return Dr([Sn.length>0?"var "+Sn.join(",")+";":"",Dr(ra)])}})}function lo(){var ra=ba(),$r=ba(),Sn=ra.toString,Ka=$r.toString;function _o(Ea,Ko){$r(Ea,Ko,"=",ra.def(Ea,Ko),";")}return e(function(){ra.apply(ra,rr(arguments))},{def:ra.def,entry:ra,exit:$r,save:_o,set:function(Ea,Ko,Vo){_o(Ea,Ko),ra(Ea,Ko,"=",Vo,";")},toString:function(){return Sn()+Ka()}})}function uo(){var ra=Dr(arguments),$r=lo(),Sn=lo(),Ka=$r.toString,_o=Sn.toString;return e($r,{then:function(){return $r.apply($r,rr(arguments)),this},else:function(){return Sn.apply(Sn,rr(arguments)),this},toString:function(){var Ea=_o();return Ea&&(Ea="else{"+Ea+"}"),Dr(["if(",ra,"){",Ka(),"}",Ea])}})}var vo=ba(),Vs={};function ys(ra,$r){var Sn=[];function Ka(){var $s="a"+Sn.length;return Sn.push($s),$s}$r=$r||0;for(var _o=0;_o<$r;++_o)Ka();var Ea=lo(),Ko=Ea.toString,Vo=Vs[ra]=e(Ea,{arg:Ka,toString:function(){return Dr(["function(",Sn.join(),"){",Ko(),"}"])}});return Vo}function Oo(){var ra=['"use strict";',vo,"return {"];Object.keys(Vs).forEach(function(_o){ra.push('"',_o,'":',Vs[_o].toString(),",")}),ra.push("}");var $r=Dr(ra).replace(/;/g,`; `).replace(/}/g,`} `).replace(/{/g,`{ -`),Sn;if(qt&&(Sn=Ya(Wr),qt[Sn]))return qt[Sn].apply(null,Ki);var Ka=Function.apply(null,hi.concat(Wr));return qt&&(qt[Sn]=Ka),Ka.apply(null,Ki)}return{global:vo,link:Yi,block:ba,proc:ys,scope:lo,cond:uo,compile:Oo}}var ii="xyzw".split(""),ci=5121,li=1,mi=2,xi=0,Oi=1,ua=2,xa=3,ao=4,ho=5,Fo=6,ls="dither",Io="blend.enable",Ps="blend.color",xs="blend.equation",us="blend.func",Ni="depth.enable",io="depth.func",Eo="depth.range",oo="depth.mask",xo="colorMask",bo="cull.enable",so="cull.face",Yo="frontFace",Uo="lineWidth",es="polygonOffset.enable",jo="polygonOffset.offset",Qo="sample.alpha",Ks="sample.enable",js="sample.coverage",Ds="stencil.enable",_s="stencil.mask",as="stencil.func",Es="stencil.opFront",To="stencil.opBack",Go="scissor.enable",qs="scissor.box",Ts="viewport",Dl="profile",_l="framebuffer",wl="vert",vl="frag",Al="elements",ml="primitive",Hl="count",Tl="offset",yl="instances",ae="vao",fe="Width",Te="Height",ke=_l+fe,Ne=_l+Te,Oe=Ts+fe,He=Ts+Te,ct="drawingBuffer",xt=ct+fe,pt=ct+Te,_t=[us,xs,as,Es,To,js,Ts,qs,jo],Lt=34962,Jt=34963,fr=2884,Or=3042,Pi=3024,Rn=2960,fo=2929,Xo=3089,Bo=32823,fs=32926,cs=32928,Ns=5126,zl=35664,Is=35665,Nl=35666,ul=5124,cl=35667,vf=35668,wf=35669,bu=35670,_u=35671,ju=35672,wu=35673,Eu=35674,Af=35675,mf=35676,ef=35678,Nf=35680,ic=4,R=1028,G=1029,ee=2304,he=2305,ve=32775,_e=32776,je=519,qe=7680,Je=0,ht=1,dt=32774,Ft=513,Et=36160,Qt=36064,Mr={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},zt={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},Yt={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},sr={cw:ee,ccw:he};function Ar(tt){return Array.isArray(tt)||nt(tt)||Ue(tt)}function br(tt){return tt.sort(function(qt,Gt){return qt===Ts?-1:Gt===Ts?1:qt=1,hi>=2,qt)}else if(Gt===ao){var Ki=tt.data;return new Xt(Ki.thisDep,Ki.contextDep,Ki.propDep,qt)}else{if(Gt===ho)return new Xt(!1,!1,!1,qt);if(Gt===Fo){for(var fn=!1,Yi=!1,ba=!1,lo=0;lo=1&&(Yi=!0),vo>=2&&(ba=!0)}else uo.type===ao&&(fn=fn||uo.data.thisDep,Yi=Yi||uo.data.contextDep,ba=ba||uo.data.propDep)}return new Xt(fn,Yi,ba,qt)}else return new Xt(Gt===xa,Gt===ua,Gt===Oi,qt)}}var yo=new Xt(!1,!1,!1,function(){});function Wo(tt,qt,Gt,hi,Ki,fn,Yi,ba,lo,uo,vo,Vs,ys,Oo,ra,Wr){var Sn=uo.Record,Ka={add:32774,subtract:32778,"reverse subtract":32779};Gt.ext_blend_minmax&&(Ka.min=ve,Ka.max=_e);var _o=Gt.angle_instanced_arrays,Ea=Gt.webgl_draw_buffers,Ko=Gt.oes_vertex_array_object,Vo={dirty:!0,profile:Wr.profile},Ws={},_a=[],fa={},hs={};function qo(Pt){return Pt.replace(".","_")}function Do(Pt,Ht,cr){var Ji=qo(Pt);_a.push(Pt),Ws[Ji]=Vo[Ji]=!!cr,fa[Ji]=Ht}function Lo(Pt,Ht,cr){var Ji=qo(Pt);_a.push(Pt),Array.isArray(cr)?(Vo[Ji]=cr.slice(),Ws[Ji]=cr.slice()):Vo[Ji]=Ws[Ji]=cr,hs[Ji]=Ht}function ds(Pt){return!!isNaN(Pt)}Do(ls,Pi),Do(Io,Or),Lo(Ps,"blendColor",[0,0,0,0]),Lo(xs,"blendEquationSeparate",[dt,dt]),Lo(us,"blendFuncSeparate",[ht,Je,ht,Je]),Do(Ni,fo,!0),Lo(io,"depthFunc",Ft),Lo(Eo,"depthRange",[0,1]),Lo(oo,"depthMask",!0),Lo(xo,xo,[!0,!0,!0,!0]),Do(bo,fr),Lo(so,"cullFace",G),Lo(Yo,Yo,he),Lo(Uo,Uo,1),Do(es,Bo),Lo(jo,"polygonOffset",[0,0]),Do(Qo,fs),Do(Ks,cs),Lo(js,"sampleCoverage",[1,!1]),Do(Ds,Rn),Lo(_s,"stencilMask",-1),Lo(as,"stencilFunc",[je,0,-1]),Lo(Es,"stencilOpSeparate",[R,qe,qe,qe]),Lo(To,"stencilOpSeparate",[G,qe,qe,qe]),Do(Go,Xo),Lo(qs,"scissor",[0,0,tt.drawingBufferWidth,tt.drawingBufferHeight]),Lo(Ts,Ts,[0,0,tt.drawingBufferWidth,tt.drawingBufferHeight]);var $s={gl:tt,context:ys,strings:qt,next:Ws,current:Vo,draw:Vs,elements:fn,buffer:Ki,shader:vo,attributes:uo.state,vao:uo,uniforms:lo,framebuffer:ba,extensions:Gt,timer:Oo,isBufferArgs:Ar},xl={primTypes:wr,compareFuncs:zt,blendFuncs:Mr,blendEquations:Ka,stencilOps:Yt,glTypes:rr,orientationType:sr};Ea&&(xl.backBuffer=[G],xl.drawBuffer=T(hi.maxDrawbuffers,function(Pt){return Pt===0?[0]:T(Pt,function(Ht){return Qt+Ht})}));var $o=0;function bs(){var Pt=Vr({cache:ra}),Ht=Pt.link,cr=Pt.global;Pt.id=$o++,Pt.batchId="0";var Ji=Ht($s),dn=Pt.shared={props:"a0"};Object.keys($s).forEach(function(gr){dn[gr]=cr.def(Ji,".",gr)});var oi=Pt.next={},$r=Pt.current={};Object.keys(hs).forEach(function(gr){Array.isArray(Vo[gr])&&(oi[gr]=cr.def(dn.next,".",gr),$r[gr]=cr.def(dn.current,".",gr))});var Dr=Pt.constants={};Object.keys(xl).forEach(function(gr){Dr[gr]=cr.def(JSON.stringify(xl[gr]))}),Pt.invoke=function(gr,Zt){switch(Zt.type){case xi:var bi=["this",dn.context,dn.props,Pt.batchId];return gr.def(Ht(Zt.data),".call(",bi.slice(0,Math.max(Zt.data.length+1,4)),")");case Oi:return gr.def(dn.props,Zt.data);case ua:return gr.def(dn.context,Zt.data);case xa:return gr.def("this",Zt.data);case ao:return Zt.data.append(Pt,gr),Zt.data.ref;case ho:return Zt.data.toString();case Fo:return Zt.data.map(function(En){return Pt.invoke(gr,En)})}},Pt.attribCache={};var tr={};return Pt.scopeAttrib=function(gr){var Zt=qt.id(gr);if(Zt in tr)return tr[Zt];var bi=uo.scope[Zt];bi||(bi=uo.scope[Zt]=new Sn);var En=tr[Zt]=Ht(bi);return En},Pt}function hl(Pt){var Ht=Pt.static,cr=Pt.dynamic,Ji;if(Dl in Ht){var dn=!!Ht[Dl];Ji=ha(function($r,Dr){return dn}),Ji.enable=dn}else if(Dl in cr){var oi=cr[Dl];Ji=Xa(oi,function($r,Dr){return $r.invoke(Dr,oi)})}return Ji}function dl(Pt,Ht){var cr=Pt.static,Ji=Pt.dynamic;if(_l in cr){var dn=cr[_l];return dn?(dn=ba.getFramebuffer(dn),ha(function($r,Dr){var tr=$r.link(dn),gr=$r.shared;Dr.set(gr.framebuffer,".next",tr);var Zt=gr.context;return Dr.set(Zt,"."+ke,tr+".width"),Dr.set(Zt,"."+Ne,tr+".height"),tr})):ha(function($r,Dr){var tr=$r.shared;Dr.set(tr.framebuffer,".next","null");var gr=tr.context;return Dr.set(gr,"."+ke,gr+"."+xt),Dr.set(gr,"."+Ne,gr+"."+pt),"null"})}else if(_l in Ji){var oi=Ji[_l];return Xa(oi,function($r,Dr){var tr=$r.invoke(Dr,oi),gr=$r.shared,Zt=gr.framebuffer,bi=Dr.def(Zt,".getFramebuffer(",tr,")");Dr.set(Zt,".next",bi);var En=gr.context;return Dr.set(En,"."+ke,bi+"?"+bi+".width:"+En+"."+xt),Dr.set(En,"."+Ne,bi+"?"+bi+".height:"+En+"."+pt),bi})}else return null}function Wl(Pt,Ht,cr){var Ji=Pt.static,dn=Pt.dynamic;function oi(tr){if(tr in Ji){var gr=Ji[tr],Zt=!0,bi=gr.x|0,En=gr.y|0,Qa,Xs;return"width"in gr?Qa=gr.width|0:Zt=!1,"height"in gr?Xs=gr.height|0:Zt=!1,new Xt(!Zt&&Ht&&Ht.thisDep,!Zt&&Ht&&Ht.contextDep,!Zt&&Ht&&Ht.propDep,function(Ys,Rs){var zs=Ys.shared.context,ns=Qa;"width"in gr||(ns=Rs.def(zs,".",ke,"-",bi));var Ss=Xs;return"height"in gr||(Ss=Rs.def(zs,".",Ne,"-",En)),[bi,En,ns,Ss]})}else if(tr in dn){var vs=dn[tr],is=Xa(vs,function(Ys,Rs){var zs=Ys.invoke(Rs,vs),ns=Ys.shared.context,Ss=Rs.def(zs,".x|0"),Fs=Rs.def(zs,".y|0"),bl=Rs.def('"width" in ',zs,"?",zs,".width|0:","(",ns,".",ke,"-",Ss,")"),Sf=Rs.def('"height" in ',zs,"?",zs,".height|0:","(",ns,".",Ne,"-",Fs,")");return[Ss,Fs,bl,Sf]});return Ht&&(is.thisDep=is.thisDep||Ht.thisDep,is.contextDep=is.contextDep||Ht.contextDep,is.propDep=is.propDep||Ht.propDep),is}else return Ht?new Xt(Ht.thisDep,Ht.contextDep,Ht.propDep,function(Ys,Rs){var zs=Ys.shared.context;return[0,0,Rs.def(zs,".",ke),Rs.def(zs,".",Ne)]}):null}var $r=oi(Ts);if($r){var Dr=$r;$r=new Xt($r.thisDep,$r.contextDep,$r.propDep,function(tr,gr){var Zt=Dr.append(tr,gr),bi=tr.shared.context;return gr.set(bi,"."+Oe,Zt[2]),gr.set(bi,"."+He,Zt[3]),Zt})}return{viewport:$r,scissor_box:oi(qs)}}function Xf(Pt,Ht){var cr=Pt.static,Ji=typeof cr[vl]=="string"&&typeof cr[wl]=="string";if(Ji){if(Object.keys(Ht.dynamic).length>0)return null;var dn=Ht.static,oi=Object.keys(dn);if(oi.length>0&&typeof dn[oi[0]]=="number"){for(var $r=[],Dr=0;Dr"+Ss+"?"+Zt+".constant["+Ss+"]:0;"}).join(""),"}}else{","if(",Qa,"(",Zt,".buffer)){",Ys,"=",Xs,".createStream(",Lt,",",Zt,".buffer);","}else{",Ys,"=",Xs,".getBuffer(",Zt,".buffer);","}",Rs,'="type" in ',Zt,"?",En.glTypes,"[",Zt,".type]:",Ys,".dtype;",vs.normalized,"=!!",Zt,".normalized;");function zs(ns){gr(vs[ns],"=",Zt,".",ns,"|0;")}return zs("size"),zs("offset"),zs("stride"),zs("divisor"),gr("}}"),gr.exit("if(",vs.isStream,"){",Xs,".destroyStream(",Ys,");","}"),vs}dn[oi]=Xa($r,Dr)}),dn}function jh(Pt){var Ht=Pt.static,cr=Pt.dynamic,Ji={};return Object.keys(Ht).forEach(function(dn){var oi=Ht[dn];Ji[dn]=ha(function($r,Dr){return typeof oi=="number"||typeof oi=="boolean"?""+oi:$r.link(oi)})}),Object.keys(cr).forEach(function(dn){var oi=cr[dn];Ji[dn]=Xa(oi,function($r,Dr){return $r.invoke(Dr,oi)})}),Ji}function y0(Pt,Ht,cr,Ji,dn){var oi=Pt.static,$r=Pt.dynamic,Dr=Xf(Pt,Ht),tr=dl(Pt,dn),gr=Wl(Pt,tr,dn),Zt=ru(Pt,dn),bi=m0(Pt,dn),En=qc(Pt,dn,Dr);function Qa(zs){var ns=gr[zs];ns&&(bi[zs]=ns)}Qa(Ts),Qa(qo(qs));var Xs=Object.keys(bi).length>0,vs={framebuffer:tr,draw:Zt,shader:En,state:bi,dirty:Xs,scopeVAO:null,drawVAO:null,useVAO:!1,attributes:{}};if(vs.profile=hl(Pt,dn),vs.uniforms=rf(cr,dn),vs.drawVAO=vs.scopeVAO=Zt.vao,!vs.drawVAO&&En.program&&!Dr&&Gt.angle_instanced_arrays&&Zt.static.elements){var is=!0,Ys=En.program.attributes.map(function(zs){var ns=Ht.static[zs];return is=is&&!!ns,ns});if(is&&Ys.length>0){var Rs=uo.getVAO(uo.createVAO({attributes:Ys,elements:Zt.static.elements}));vs.drawVAO=new Xt(null,null,null,function(zs,ns){return zs.link(Rs)}),vs.useVAO=!0}}return Dr?vs.useVAO=!0:vs.attributes=Dh(Ht,dn),vs.context=jh(Ji,dn),vs}function _c(Pt,Ht,cr){var Ji=Pt.shared,dn=Ji.context,oi=Pt.scope();Object.keys(cr).forEach(function($r){Ht.save(dn,"."+$r);var Dr=cr[$r],tr=Dr.append(Pt,Ht);Array.isArray(tr)?oi(dn,".",$r,"=[",tr.join(),"];"):oi(dn,".",$r,"=",tr,";")}),Ht(oi)}function wc(Pt,Ht,cr,Ji){var dn=Pt.shared,oi=dn.gl,$r=dn.framebuffer,Dr;Ea&&(Dr=Ht.def(dn.extensions,".webgl_draw_buffers"));var tr=Pt.constants,gr=tr.drawBuffer,Zt=tr.backBuffer,bi;cr?bi=cr.append(Pt,Ht):bi=Ht.def($r,".next"),Ji||Ht("if(",bi,"!==",$r,".cur){"),Ht("if(",bi,"){",oi,".bindFramebuffer(",Et,",",bi,".framebuffer);"),Ea&&Ht(Dr,".drawBuffersWEBGL(",gr,"[",bi,".colorAttachments.length]);"),Ht("}else{",oi,".bindFramebuffer(",Et,",null);"),Ea&&Ht(Dr,".drawBuffersWEBGL(",Zt,");"),Ht("}",$r,".cur=",bi,";"),Ji||Ht("}")}function Oc(Pt,Ht,cr){var Ji=Pt.shared,dn=Ji.gl,oi=Pt.current,$r=Pt.next,Dr=Ji.current,tr=Ji.next,gr=Pt.cond(Dr,".dirty");_a.forEach(function(Zt){var bi=qo(Zt);if(!(bi in cr.state)){var En,Qa;if(bi in $r){En=$r[bi],Qa=oi[bi];var Xs=T(Vo[bi].length,function(is){return gr.def(En,"[",is,"]")});gr(Pt.cond(Xs.map(function(is,Ys){return is+"!=="+Qa+"["+Ys+"]"}).join("||")).then(dn,".",hs[bi],"(",Xs,");",Xs.map(function(is,Ys){return Qa+"["+Ys+"]="+is}).join(";"),";"))}else{En=gr.def(tr,".",bi);var vs=Pt.cond(En,"!==",Dr,".",bi);gr(vs),bi in fa?vs(Pt.cond(En).then(dn,".enable(",fa[bi],");").else(dn,".disable(",fa[bi],");"),Dr,".",bi,"=",En,";"):vs(dn,".",hs[bi],"(",En,");",Dr,".",bi,"=",En,";")}}}),Object.keys(cr.state).length===0&&gr(Dr,".dirty=false;"),Ht(gr)}function Rl(Pt,Ht,cr,Ji){var dn=Pt.shared,oi=Pt.current,$r=dn.current,Dr=dn.gl,tr;br(Object.keys(cr)).forEach(function(gr){var Zt=cr[gr];if(!(Ji&&!Ji(Zt))){var bi=Zt.append(Pt,Ht);if(fa[gr]){var En=fa[gr];_n(Zt)?(tr=Pt.link(bi,{stable:!0}),Ht(Pt.cond(tr).then(Dr,".enable(",En,");").else(Dr,".disable(",En,");")),Ht($r,".",gr,"=",tr,";")):(Ht(Pt.cond(bi).then(Dr,".enable(",En,");").else(Dr,".disable(",En,");")),Ht($r,".",gr,"=",bi,";"))}else if(lr(bi)){var Qa=oi[gr];Ht(Dr,".",hs[gr],"(",bi,");",bi.map(function(Xs,vs){return Qa+"["+vs+"]="+Xs}).join(";"),";")}else _n(Zt)?(tr=Pt.link(bi,{stable:!0}),Ht(Dr,".",hs[gr],"(",tr,");",$r,".",gr,"=",tr,";")):Ht(Dr,".",hs[gr],"(",bi,");",$r,".",gr,"=",bi,";")}})}function ah(Pt,Ht){_o&&(Pt.instancing=Ht.def(Pt.shared.extensions,".angle_instanced_arrays"))}function sf(Pt,Ht,cr,Ji,dn){var oi=Pt.shared,$r=Pt.stats,Dr=oi.current,tr=oi.timer,gr=cr.profile;function Zt(){return typeof performance=="undefined"?"Date.now()":"performance.now()"}var bi,En;function Qa(zs){bi=Ht.def(),zs(bi,"=",Zt(),";"),typeof dn=="string"?zs($r,".count+=",dn,";"):zs($r,".count++;"),Oo&&(Ji?(En=Ht.def(),zs(En,"=",tr,".getNumPendingQueries();")):zs(tr,".beginQuery(",$r,");"))}function Xs(zs){zs($r,".cpuTime+=",Zt(),"-",bi,";"),Oo&&(Ji?zs(tr,".pushScopeStats(",En,",",tr,".getNumPendingQueries(),",$r,");"):zs(tr,".endQuery();"))}function vs(zs){var ns=Ht.def(Dr,".profile");Ht(Dr,".profile=",zs,";"),Ht.exit(Dr,".profile=",ns,";")}var is;if(gr){if(_n(gr)){gr.enable?(Qa(Ht),Xs(Ht.exit),vs("true")):vs("false");return}is=gr.append(Pt,Ht),vs(is)}else is=Ht.def(Dr,".profile");var Ys=Pt.block();Qa(Ys),Ht("if(",is,"){",Ys,"}");var Rs=Pt.block();Xs(Rs),Ht.exit("if(",is,"){",Rs,"}")}function Wh(Pt,Ht,cr,Ji,dn){var oi=Pt.shared;function $r(tr){switch(tr){case zl:case cl:case _u:return 2;case Is:case vf:case ju:return 3;case Nl:case wf:case wu:return 4;default:return 1}}function Dr(tr,gr,Zt){var bi=oi.gl,En=Ht.def(tr,".location"),Qa=Ht.def(oi.attributes,"[",En,"]"),Xs=Zt.state,vs=Zt.buffer,is=[Zt.x,Zt.y,Zt.z,Zt.w],Ys=["buffer","normalized","offset","stride"];function Rs(){Ht("if(!",Qa,".buffer){",bi,".enableVertexAttribArray(",En,");}");var ns=Zt.type,Ss;if(Zt.size?Ss=Ht.def(Zt.size,"||",gr):Ss=gr,Ht("if(",Qa,".type!==",ns,"||",Qa,".size!==",Ss,"||",Ys.map(function(bl){return Qa+"."+bl+"!=="+Zt[bl]}).join("||"),"){",bi,".bindBuffer(",Lt,",",vs,".buffer);",bi,".vertexAttribPointer(",[En,Ss,ns,Zt.normalized,Zt.stride,Zt.offset],");",Qa,".type=",ns,";",Qa,".size=",Ss,";",Ys.map(function(bl){return Qa+"."+bl+"="+Zt[bl]+";"}).join(""),"}"),_o){var Fs=Zt.divisor;Ht("if(",Qa,".divisor!==",Fs,"){",Pt.instancing,".vertexAttribDivisorANGLE(",[En,Fs],");",Qa,".divisor=",Fs,";}")}}function zs(){Ht("if(",Qa,".buffer){",bi,".disableVertexAttribArray(",En,");",Qa,".buffer=null;","}if(",ii.map(function(ns,Ss){return Qa+"."+ns+"!=="+is[Ss]}).join("||"),"){",bi,".vertexAttrib4f(",En,",",is,");",ii.map(function(ns,Ss){return Qa+"."+ns+"="+is[Ss]+";"}).join(""),"}")}Xs===li?Rs():Xs===mi?zs():(Ht("if(",Xs,"===",li,"){"),Rs(),Ht("}else{"),zs(),Ht("}"))}Ji.forEach(function(tr){var gr=tr.name,Zt=cr.attributes[gr],bi;if(Zt){if(!dn(Zt))return;bi=Zt.append(Pt,Ht)}else{if(!dn(yo))return;var En=Pt.scopeAttrib(gr);bi={},Object.keys(new Sn).forEach(function(Qa){bi[Qa]=Ht.def(En,".",Qa)})}Dr(Pt.link(tr),$r(tr.info.type),bi)})}function g0(Pt,Ht,cr,Ji,dn,oi){for(var $r=Pt.shared,Dr=$r.gl,tr,gr=0;gr1){for(var b0=[],Dp=[],Iv=0;Iv>1)",vs],");")}function Fs(){cr(is,".drawArraysInstancedANGLE(",[En,Qa,Xs,vs],");")}Zt&&Zt!=="null"?Rs?Ss():(cr("if(",Zt,"){"),Ss(),cr("}else{"),Fs(),cr("}")):Fs()}function ns(){function Ss(){cr(oi+".drawElements("+[En,Xs,Ys,Qa+"<<(("+Ys+"-"+ci+")>>1)"]+");")}function Fs(){cr(oi+".drawArrays("+[En,Qa,Xs]+");")}Zt&&Zt!=="null"?Rs?Ss():(cr("if(",Zt,"){"),Ss(),cr("}else{"),Fs(),cr("}")):Fs()}_o&&(typeof vs!="number"||vs>=0)?typeof vs=="string"?(cr("if(",vs,">0){"),zs(),cr("}else if(",vs,"<0){"),ns(),cr("}")):zs():ns()}function kl(Pt,Ht,cr,Ji,dn){var oi=bs(),$r=oi.proc("body",dn);return _o&&(oi.instancing=$r.def(oi.shared.extensions,".angle_instanced_arrays")),Pt(oi,$r,cr,Ji),oi.compile().body}function uu(Pt,Ht,cr,Ji){ah(Pt,Ht),cr.useVAO?cr.drawVAO?Ht(Pt.shared.vao,".setVAO(",cr.drawVAO.append(Pt,Ht),");"):Ht(Pt.shared.vao,".setVAO(",Pt.shared.vao,".targetVAO);"):(Ht(Pt.shared.vao,".setVAO(null);"),Wh(Pt,Ht,cr,Ji.attributes,function(){return!0})),g0(Pt,Ht,cr,Ji.uniforms,function(){return!0},!1),x0(Pt,Ht,Ht,cr)}function Mf(Pt,Ht){var cr=Pt.proc("draw",1);ah(Pt,cr),_c(Pt,cr,Ht.context),wc(Pt,cr,Ht.framebuffer),Oc(Pt,cr,Ht),Rl(Pt,cr,Ht.state),sf(Pt,cr,Ht,!1,!0);var Ji=Ht.shader.progVar.append(Pt,cr);if(cr(Pt.shared.gl,".useProgram(",Ji,".program);"),Ht.shader.program)uu(Pt,cr,Ht,Ht.shader.program);else{cr(Pt.shared.vao,".setVAO(null);");var dn=Pt.global.def("{}"),oi=cr.def(Ji,".id"),$r=cr.def(dn,"[",oi,"]");cr(Pt.cond($r).then($r,".call(this,a0);").else($r,"=",dn,"[",oi,"]=",Pt.link(function(Dr){return kl(uu,Pt,Ht,Dr,1)}),"(",Ji,");",$r,".call(this,a0);"))}Object.keys(Ht.state).length>0&&cr(Pt.shared.current,".dirty=true;"),Pt.shared.vao&&cr(Pt.shared.vao,".setVAO(null);")}function Nt(Pt,Ht,cr,Ji){Pt.batchId="a1",ah(Pt,Ht);function dn(){return!0}Wh(Pt,Ht,cr,Ji.attributes,dn),g0(Pt,Ht,cr,Ji.uniforms,dn,!1),x0(Pt,Ht,Ht,cr)}function en(Pt,Ht,cr,Ji){ah(Pt,Ht);var dn=cr.contextDep,oi=Ht.def(),$r="a0",Dr="a1",tr=Ht.def();Pt.shared.props=tr,Pt.batchId=oi;var gr=Pt.scope(),Zt=Pt.scope();Ht(gr.entry,"for(",oi,"=0;",oi,"<",Dr,";++",oi,"){",tr,"=",$r,"[",oi,"];",Zt,"}",gr.exit);function bi(Ys){return Ys.contextDep&&dn||Ys.propDep}function En(Ys){return!bi(Ys)}if(cr.needsContext&&_c(Pt,Zt,cr.context),cr.needsFramebuffer&&wc(Pt,Zt,cr.framebuffer),Rl(Pt,Zt,cr.state,bi),cr.profile&&bi(cr.profile)&&sf(Pt,Zt,cr,!1,!0),Ji)cr.useVAO?cr.drawVAO?bi(cr.drawVAO)?Zt(Pt.shared.vao,".setVAO(",cr.drawVAO.append(Pt,Zt),");"):gr(Pt.shared.vao,".setVAO(",cr.drawVAO.append(Pt,gr),");"):gr(Pt.shared.vao,".setVAO(",Pt.shared.vao,".targetVAO);"):(gr(Pt.shared.vao,".setVAO(null);"),Wh(Pt,gr,cr,Ji.attributes,En),Wh(Pt,Zt,cr,Ji.attributes,bi)),g0(Pt,gr,cr,Ji.uniforms,En,!1),g0(Pt,Zt,cr,Ji.uniforms,bi,!0),x0(Pt,gr,Zt,cr);else{var Qa=Pt.global.def("{}"),Xs=cr.shader.progVar.append(Pt,Zt),vs=Zt.def(Xs,".id"),is=Zt.def(Qa,"[",vs,"]");Zt(Pt.shared.gl,".useProgram(",Xs,".program);","if(!",is,"){",is,"=",Qa,"[",vs,"]=",Pt.link(function(Ys){return kl(Nt,Pt,cr,Ys,2)}),"(",Xs,");}",is,".call(this,a0[",oi,"],",oi,");")}}function on(Pt,Ht){var cr=Pt.proc("batch",2);Pt.batchId="0",ah(Pt,cr);var Ji=!1,dn=!0;Object.keys(Ht.context).forEach(function(Qa){Ji=Ji||Ht.context[Qa].propDep}),Ji||(_c(Pt,cr,Ht.context),dn=!1);var oi=Ht.framebuffer,$r=!1;oi?(oi.propDep?Ji=$r=!0:oi.contextDep&&Ji&&($r=!0),$r||wc(Pt,cr,oi)):wc(Pt,cr,null),Ht.state.viewport&&Ht.state.viewport.propDep&&(Ji=!0);function Dr(Qa){return Qa.contextDep&&Ji||Qa.propDep}Oc(Pt,cr,Ht),Rl(Pt,cr,Ht.state,function(Qa){return!Dr(Qa)}),(!Ht.profile||!Dr(Ht.profile))&&sf(Pt,cr,Ht,!1,"a1"),Ht.contextDep=Ji,Ht.needsContext=dn,Ht.needsFramebuffer=$r;var tr=Ht.shader.progVar;if(tr.contextDep&&Ji||tr.propDep)en(Pt,cr,Ht,null);else{var gr=tr.append(Pt,cr);if(cr(Pt.shared.gl,".useProgram(",gr,".program);"),Ht.shader.program)en(Pt,cr,Ht,Ht.shader.program);else{cr(Pt.shared.vao,".setVAO(null);");var Zt=Pt.global.def("{}"),bi=cr.def(gr,".id"),En=cr.def(Zt,"[",bi,"]");cr(Pt.cond(En).then(En,".call(this,a0,a1);").else(En,"=",Zt,"[",bi,"]=",Pt.link(function(Qa){return kl(en,Pt,Ht,Qa,2)}),"(",gr,");",En,".call(this,a0,a1);"))}}Object.keys(Ht.state).length>0&&cr(Pt.shared.current,".dirty=true;"),Pt.shared.vao&&cr(Pt.shared.vao,".setVAO(null);")}function ks(Pt,Ht){var cr=Pt.proc("scope",3);Pt.batchId="a2";var Ji=Pt.shared,dn=Ji.current;if(_c(Pt,cr,Ht.context),Ht.framebuffer&&Ht.framebuffer.append(Pt,cr),br(Object.keys(Ht.state)).forEach(function(Dr){var tr=Ht.state[Dr],gr=tr.append(Pt,cr);lr(gr)?gr.forEach(function(Zt,bi){ds(Zt)?cr.set(Pt.next[Dr],"["+bi+"]",Zt):cr.set(Pt.next[Dr],"["+bi+"]",Pt.link(Zt,{stable:!0}))}):_n(tr)?cr.set(Ji.next,"."+Dr,Pt.link(gr,{stable:!0})):cr.set(Ji.next,"."+Dr,gr)}),sf(Pt,cr,Ht,!0,!0),[Al,Tl,Hl,yl,ml].forEach(function(Dr){var tr=Ht.draw[Dr];if(tr){var gr=tr.append(Pt,cr);ds(gr)?cr.set(Ji.draw,"."+Dr,gr):cr.set(Ji.draw,"."+Dr,Pt.link(gr),{stable:!0})}}),Object.keys(Ht.uniforms).forEach(function(Dr){var tr=Ht.uniforms[Dr].append(Pt,cr);Array.isArray(tr)&&(tr="["+tr.map(function(gr){return ds(gr)?gr:Pt.link(gr,{stable:!0})})+"]"),cr.set(Ji.uniforms,"["+Pt.link(qt.id(Dr),{stable:!0})+"]",tr)}),Object.keys(Ht.attributes).forEach(function(Dr){var tr=Ht.attributes[Dr].append(Pt,cr),gr=Pt.scopeAttrib(Dr);Object.keys(new Sn).forEach(function(Zt){cr.set(gr,"."+Zt,tr[Zt])})}),Ht.scopeVAO){var oi=Ht.scopeVAO.append(Pt,cr);ds(oi)?cr.set(Ji.vao,".targetVAO",oi):cr.set(Ji.vao,".targetVAO",Pt.link(oi,{stable:!0}))}function $r(Dr){var tr=Ht.shader[Dr];if(tr){var gr=tr.append(Pt,cr);ds(gr)?cr.set(Ji.shader,"."+Dr,gr):cr.set(Ji.shader,"."+Dr,Pt.link(gr,{stable:!0}))}}$r(wl),$r(vl),Object.keys(Ht.state).length>0&&(cr(dn,".dirty=true;"),cr.exit(dn,".dirty=true;")),cr("a1(",Pt.shared.context,",a0,",Pt.batchId,");")}function ou(Pt){if(!(typeof Pt!="object"||lr(Pt))){for(var Ht=Object.keys(Pt),cr=0;cr=0;--kl){var uu=$s[kl];uu&&uu(ra,null,0)}Gt.flush(),vo&&vo.update()}function Wl(){!hl&&$s.length>0&&(hl=d.next(dl))}function Xf(){hl&&(d.cancel(dl),hl=null)}function qc(kl){kl.preventDefault(),Ki=!0,Xf(),xl.forEach(function(uu){uu()})}function ru(kl){Gt.getError(),Ki=!1,fn.restore(),Ws.restore(),_o.restore(),_a.restore(),fa.restore(),hs.restore(),Ko.restore(),vo&&vo.restore(),qo.procs.refresh(),Wl(),$o.forEach(function(uu){uu()})}ds&&(ds.addEventListener(nl,qc,!1),ds.addEventListener(Vl,ru,!1));function m0(){$s.length=0,Xf(),ds&&(ds.removeEventListener(nl,qc),ds.removeEventListener(Vl,ru)),Ws.clear(),hs.clear(),fa.clear(),Ko.clear(),_a.clear(),Ea.clear(),_o.clear(),vo&&vo.clear(),bs.forEach(function(kl){kl()})}function rf(kl){function uu(oi){var $r=e({},oi);delete $r.uniforms,delete $r.attributes,delete $r.context,delete $r.vao,"stencil"in $r&&$r.stencil.op&&($r.stencil.opBack=$r.stencil.opFront=$r.stencil.op,delete $r.stencil.op);function Dr(tr){if(tr in $r){var gr=$r[tr];delete $r[tr],Object.keys(gr).forEach(function(Zt){$r[tr+"."+Zt]=gr[Zt]})}}return Dr("blend"),Dr("depth"),Dr("cull"),Dr("stencil"),Dr("polygonOffset"),Dr("scissor"),Dr("sample"),"vao"in oi&&($r.vao=oi.vao),$r}function Mf(oi,$r){var Dr={},tr={};return Object.keys(oi).forEach(function(gr){var Zt=oi[gr];if(h.isDynamic(Zt)){tr[gr]=h.unbox(Zt,gr);return}else if($r&&Array.isArray(Zt)){for(var bi=0;bi0)return Pt.call(this,Ji(oi|0),oi|0)}else if(Array.isArray(oi)){if(oi.length)return Pt.call(this,oi,oi.length)}else return Ms.call(this,oi)}return e(dn,{stats:ou,destroy:function(){nf.destroy()}})}var Dh=hs.setFBO=rf({framebuffer:h.define.call(null,ku,"framebuffer")});function jh(kl,uu){var Mf=0;qo.procs.poll();var Nt=uu.color;Nt&&(Gt.clearColor(+Nt[0]||0,+Nt[1]||0,+Nt[2]||0,+Nt[3]||0),Mf|=Ou),"depth"in uu&&(Gt.clearDepth(+uu.depth),Mf|=Jl),"stencil"in uu&&(Gt.clearStencil(uu.stencil|0),Mf|=po),Gt.clear(Mf)}function y0(kl){if("framebuffer"in kl)if(kl.framebuffer&&kl.framebuffer_reglType==="framebufferCube")for(var uu=0;uu<6;++uu)Dh(e({framebuffer:kl.framebuffer.faces[uu]},kl),jh);else Dh(kl,jh);else jh(null,kl)}function _c(kl){$s.push(kl);function uu(){var Mf=nc($s,kl);function Nt(){var en=nc($s,Nt);$s[en]=$s[$s.length-1],$s.length-=1,$s.length<=0&&Xf()}$s[Mf]=Nt}return Wl(),{cancel:uu}}function wc(){var kl=Lo.viewport,uu=Lo.scissor_box;kl[0]=kl[1]=uu[0]=uu[1]=0,ra.viewportWidth=ra.framebufferWidth=ra.drawingBufferWidth=kl[2]=uu[2]=Gt.drawingBufferWidth,ra.viewportHeight=ra.framebufferHeight=ra.drawingBufferHeight=kl[3]=uu[3]=Gt.drawingBufferHeight}function Oc(){ra.tick+=1,ra.time=ah(),wc(),qo.procs.poll()}function Rl(){_a.refresh(),wc(),qo.procs.refresh(),vo&&vo.update()}function ah(){return(p()-Vs)/1e3}Rl();function sf(kl,uu){var Mf;switch(kl){case"frame":return _c(uu);case"lost":Mf=xl;break;case"restore":Mf=$o;break;case"destroy":Mf=bs;break;default:}return Mf.push(uu),{cancel:function(){for(var Nt=0;Nt=0},read:Do,destroy:m0,_gl:Gt,_refresh:Rl,poll:function(){Oc(),vo&&vo.update()},now:ah,stats:ba,getCachedCode:Wh,preloadCachedCode:g0});return qt.onDone(null,x0),x0}return ph}))});var kXe=K((bri,EXe)=>{"use strict";var rvr=Em();EXe.exports=function(t){if(t?typeof t=="string"&&(t={container:t}):t={},MXe(t)?t={container:t}:ivr(t)?t={container:t}:nvr(t)?t={gl:t}:t=rvr(t,{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),t.pixelRatio||(t.pixelRatio=window.pixelRatio||1),t.gl)return t.gl;if(t.canvas&&(t.container=t.canvas.parentNode),t.container){if(typeof t.container=="string"){var r=document.querySelector(t.container);if(!r)throw Error("Element "+t.container+" is not found");t.container=r}MXe(t.container)?(t.canvas=t.container,t.container=t.canvas.parentNode):t.canvas||(t.canvas=SXe(),t.container.appendChild(t.canvas),TXe(t))}else if(!t.canvas)if(typeof document!="undefined")t.container=document.body||document.documentElement,t.canvas=SXe(),t.container.appendChild(t.canvas),TXe(t);else throw Error("Not DOM environment. Use headless-gl.");return t.gl||["webgl","experimental-webgl","webgl-experimental"].some(function(i){try{t.gl=t.canvas.getContext(i,t.attrs)}catch(n){}return t.gl}),t.gl};function TXe(e){if(e.container)if(e.container==document.body)document.body.style.width||(e.canvas.width=e.width||e.pixelRatio*window.innerWidth),document.body.style.height||(e.canvas.height=e.height||e.pixelRatio*window.innerHeight);else{var t=e.container.getBoundingClientRect();e.canvas.width=e.width||t.right-t.left,e.canvas.height=e.height||t.bottom-t.top}}function MXe(e){return typeof e.getContext=="function"&&"width"in e&&"height"in e}function ivr(e){return typeof e.nodeName=="string"&&typeof e.appendChild=="function"&&typeof e.getBoundingClientRect=="function"}function nvr(e){return typeof e.drawArrays=="function"||typeof e.drawElements=="function"}function SXe(){var e=document.createElement("canvas");return e.style.position="absolute",e.style.top=0,e.style.left=0,e}});var DXe=K((_ri,CXe)=>{"use strict";var avr=Lte(),ovr=[32,126];CXe.exports=svr;function svr(e){e=e||{};var t=e.shape?e.shape:e.canvas?[e.canvas.width,e.canvas.height]:[512,512],r=e.canvas||document.createElement("canvas"),i=e.font,n=typeof e.step=="number"?[e.step,e.step]:e.step||[32,32],a=e.chars||ovr;if(i&&typeof i!="string"&&(i=avr(i)),!Array.isArray(a))a=String(a).split("");else if(a.length===2&&typeof a[0]=="number"&&typeof a[1]=="number"){for(var o=[],s=a[0],l=0;s<=a[1];s++)o[l++]=String.fromCharCode(s);a=o}t=t.slice(),r.width=t[0],r.height=t[1];var u=r.getContext("2d");u.fillStyle="#000",u.fillRect(0,0,r.width,r.height),u.font=i,u.textAlign="center",u.textBaseline="middle",u.fillStyle="#fff";for(var f=n[0]/2,c=n[1]/2,s=0;st[0]-n[0]/2&&(f=n[0]/2,c+=n[1]);return r}});var Bte=K(Zc=>{"use strict";"use restrict";var Rte=32;Zc.INT_BITS=Rte;Zc.INT_MAX=2147483647;Zc.INT_MIN=-1<0)-(e<0)};Zc.abs=function(e){var t=e>>Rte-1;return(e^t)-t};Zc.min=function(e,t){return t^(e^t)&-(e65535)<<4,e>>>=t,r=(e>255)<<3,e>>>=r,t|=r,r=(e>15)<<2,e>>>=r,t|=r,r=(e>3)<<1,e>>>=r,t|=r,t|e>>1};Zc.log10=function(e){return e>=1e9?9:e>=1e8?8:e>=1e7?7:e>=1e6?6:e>=1e5?5:e>=1e4?4:e>=1e3?3:e>=100?2:e>=10?1:0};Zc.popCount=function(e){return e=e-(e>>>1&1431655765),e=(e&858993459)+(e>>>2&858993459),(e+(e>>>4)&252645135)*16843009>>>24};function FXe(e){var t=32;return e&=-e,e&&t--,e&65535&&(t-=16),e&16711935&&(t-=8),e&252645135&&(t-=4),e&858993459&&(t-=2),e&1431655765&&(t-=1),t}Zc.countTrailingZeros=FXe;Zc.nextPow2=function(e){return e+=e===0,--e,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e+1};Zc.prevPow2=function(e){return e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e-(e>>>1)};Zc.parity=function(e){return e^=e>>>16,e^=e>>>8,e^=e>>>4,e&=15,27030>>>e&1};var nk=new Array(256);(function(e){for(var t=0;t<256;++t){var r=t,i=t,n=7;for(r>>>=1;r;r>>>=1)i<<=1,i|=r&1,--n;e[t]=i<>>8&255]<<16|nk[e>>>16&255]<<8|nk[e>>>24&255]};Zc.interleave2=function(e,t){return e&=65535,e=(e|e<<8)&16711935,e=(e|e<<4)&252645135,e=(e|e<<2)&858993459,e=(e|e<<1)&1431655765,t&=65535,t=(t|t<<8)&16711935,t=(t|t<<4)&252645135,t=(t|t<<2)&858993459,t=(t|t<<1)&1431655765,e|t<<1};Zc.deinterleave2=function(e,t){return e=e>>>t&1431655765,e=(e|e>>>1)&858993459,e=(e|e>>>2)&252645135,e=(e|e>>>4)&16711935,e=(e|e>>>16)&65535,e<<16>>16};Zc.interleave3=function(e,t,r){return e&=1023,e=(e|e<<16)&4278190335,e=(e|e<<8)&251719695,e=(e|e<<4)&3272356035,e=(e|e<<2)&1227133513,t&=1023,t=(t|t<<16)&4278190335,t=(t|t<<8)&251719695,t=(t|t<<4)&3272356035,t=(t|t<<2)&1227133513,e|=t<<1,r&=1023,r=(r|r<<16)&4278190335,r=(r|r<<8)&251719695,r=(r|r<<4)&3272356035,r=(r|r<<2)&1227133513,e|r<<2};Zc.deinterleave3=function(e,t){return e=e>>>t&1227133513,e=(e|e>>>2)&3272356035,e=(e|e>>>4)&251719695,e=(e|e>>>8)&4278190335,e=(e|e>>>16)&1023,e<<22>>22};Zc.nextCombination=function(e){var t=e|e-1;return t+1|(~t&-~t)-1>>>FXe(e)+1}});var zXe=K((Ari,PXe)=>{"use strict";function LXe(e,t,r){var i=e[r]|0;if(i<=0)return[];var n=new Array(i),a;if(r===e.length-1)for(a=0;a0)return lvr(e|0,t);break;case"object":if(typeof e.length=="number")return LXe(e,t,0);break}return[]}PXe.exports=uvr});var XXe=K(Iu=>{"use strict";var Y2=Bte(),F0=zXe(),IXe=r_().Buffer;window.__TYPEDARRAY_POOL||(window.__TYPEDARRAY_POOL={UINT8:F0([32,0]),UINT16:F0([32,0]),UINT32:F0([32,0]),BIGUINT64:F0([32,0]),INT8:F0([32,0]),INT16:F0([32,0]),INT32:F0([32,0]),BIGINT64:F0([32,0]),FLOAT:F0([32,0]),DOUBLE:F0([32,0]),DATA:F0([32,0]),UINT8C:F0([32,0]),BUFFER:F0([32,0])});var fvr=typeof Uint8ClampedArray!="undefined",cvr=typeof BigUint64Array!="undefined",hvr=typeof BigInt64Array!="undefined",hh=window.__TYPEDARRAY_POOL;hh.UINT8C||(hh.UINT8C=F0([32,0]));hh.BIGUINT64||(hh.BIGUINT64=F0([32,0]));hh.BIGINT64||(hh.BIGINT64=F0([32,0]));hh.BUFFER||(hh.BUFFER=F0([32,0]));var pB=hh.DATA,vB=hh.BUFFER;Iu.free=function(t){if(IXe.isBuffer(t))vB[Y2.log2(t.length)].push(t);else{if(Object.prototype.toString.call(t)!=="[object ArrayBuffer]"&&(t=t.buffer),!t)return;var r=t.length||t.byteLength,i=Y2.log2(r)|0;pB[i].push(t)}};function RXe(e){if(e){var t=e.length||e.byteLength,r=Y2.log2(t);pB[r].push(e)}}function dvr(e){RXe(e.buffer)}Iu.freeUint8=Iu.freeUint16=Iu.freeUint32=Iu.freeBigUint64=Iu.freeInt8=Iu.freeInt16=Iu.freeInt32=Iu.freeBigInt64=Iu.freeFloat32=Iu.freeFloat=Iu.freeFloat64=Iu.freeDouble=Iu.freeUint8Clamped=Iu.freeDataView=dvr;Iu.freeArrayBuffer=RXe;Iu.freeBuffer=function(t){vB[Y2.log2(t.length)].push(t)};Iu.malloc=function(t,r){if(r===void 0||r==="arraybuffer")return qd(t);switch(r){case"uint8":return qte(t);case"uint16":return BXe(t);case"uint32":return qXe(t);case"int8":return OXe(t);case"int16":return NXe(t);case"int32":return VXe(t);case"float":case"float32":return UXe(t);case"double":case"float64":return GXe(t);case"uint8_clamped":return HXe(t);case"bigint64":return WXe(t);case"biguint64":return jXe(t);case"buffer":return YXe(t);case"data":case"dataview":return $Xe(t);default:return null}return null};function qd(t){var t=Y2.nextPow2(t),r=Y2.log2(t),i=pB[r];return i.length>0?i.pop():new ArrayBuffer(t)}Iu.mallocArrayBuffer=qd;function qte(e){return new Uint8Array(qd(e),0,e)}Iu.mallocUint8=qte;function BXe(e){return new Uint16Array(qd(2*e),0,e)}Iu.mallocUint16=BXe;function qXe(e){return new Uint32Array(qd(4*e),0,e)}Iu.mallocUint32=qXe;function OXe(e){return new Int8Array(qd(e),0,e)}Iu.mallocInt8=OXe;function NXe(e){return new Int16Array(qd(2*e),0,e)}Iu.mallocInt16=NXe;function VXe(e){return new Int32Array(qd(4*e),0,e)}Iu.mallocInt32=VXe;function UXe(e){return new Float32Array(qd(4*e),0,e)}Iu.mallocFloat32=Iu.mallocFloat=UXe;function GXe(e){return new Float64Array(qd(8*e),0,e)}Iu.mallocFloat64=Iu.mallocDouble=GXe;function HXe(e){return fvr?new Uint8ClampedArray(qd(e),0,e):qte(e)}Iu.mallocUint8Clamped=HXe;function jXe(e){return cvr?new BigUint64Array(qd(8*e),0,e):null}Iu.mallocBigUint64=jXe;function WXe(e){return hvr?new BigInt64Array(qd(8*e),0,e):null}Iu.mallocBigInt64=WXe;function $Xe(e){return new DataView(qd(e),0,e)}Iu.mallocDataView=$Xe;function YXe(e){e=Y2.nextPow2(e);var t=Y2.log2(e),r=vB[t];return r.length>0?r.pop():new IXe(e)}Iu.mallocBuffer=YXe;Iu.clearCache=function(){for(var t=0;t<32;++t)hh.UINT8[t].length=0,hh.UINT16[t].length=0,hh.UINT32[t].length=0,hh.INT8[t].length=0,hh.INT16[t].length=0,hh.INT32[t].length=0,hh.FLOAT[t].length=0,hh.DOUBLE[t].length=0,hh.BIGUINT64[t].length=0,hh.BIGINT64[t].length=0,hh.UINT8C[t].length=0,pB[t].length=0,vB[t].length=0}});var KXe=K((Mri,ZXe)=>{"use strict";var pvr=Object.prototype.toString;ZXe.exports=function(e){var t;return pvr.call(e)==="[object Object]"&&(t=Object.getPrototypeOf(e),t===null||t===Object.getPrototypeOf({}))}});var Ote=K((Sri,JXe)=>{JXe.exports=function(t,r){r||(r=[0,""]),t=String(t);var i=parseFloat(t,10);return r[0]=i,r[1]=t.match(/[\d.\-\+]*\s*(.*)/)[1]||"",r}});var tZe=K((Eri,eZe)=>{"use strict";var vvr=Ote();eZe.exports=QXe;var ak=96;function Nte(e,t){var r=vvr(getComputedStyle(e).getPropertyValue(t));return r[0]*QXe(r[1],e)}function mvr(e,t){var r=document.createElement("div");r.style["font-size"]="128"+e,t.appendChild(r);var i=Nte(r,"font-size")/128;return t.removeChild(r),i}function QXe(e,t){switch(t=t||document.body,e=(e||"px").trim().toLowerCase(),(t===window||t===document)&&(t=document.body),e){case"%":return t.clientHeight/100;case"ch":case"ex":return mvr(e,t);case"em":return Nte(t,"font-size");case"rem":return Nte(document.body,"font-size");case"vw":return window.innerWidth/100;case"vh":return window.innerHeight/100;case"vmin":return Math.min(window.innerWidth,window.innerHeight)/100;case"vmax":return Math.max(window.innerWidth,window.innerHeight)/100;case"in":return ak;case"cm":return ak/2.54;case"mm":return ak/25.4;case"pt":return ak/72;case"pc":return ak/6}return 1}});var nZe=K((kri,iZe)=>{"use strict";iZe.exports=gB;var yvr=gB.canvas=document.createElement("canvas"),mB=yvr.getContext("2d"),rZe=yB([32,126]);gB.createPairs=yB;gB.ascii=rZe;function gB(e,t){Array.isArray(e)&&(e=e.join(", "));var r={},i,n=16,a=.05;t&&(t.length===2&&typeof t[0]=="number"?i=yB(t):Array.isArray(t)?i=t:(t.o?i=yB(t.o):t.pairs&&(i=t.pairs),t.fontSize&&(n=t.fontSize),t.threshold!=null&&(a=t.threshold))),i||(i=rZe),mB.font=n+"px "+e;for(var o=0;on*a){var f=(u-l)/n;r[s]=f*1e3}}return r}function yB(e){for(var t=[],r=e[0];r<=e[1];r++)for(var i=String.fromCharCode(r),n=e[0];n{"use strict";sZe.exports=X2;X2.canvas=document.createElement("canvas");X2.cache={};function X2(o,t){t||(t={}),(typeof o=="string"||Array.isArray(o))&&(t.family=o);var r=Array.isArray(t.family)?t.family.join(", "):t.family;if(!r)throw Error("`family` must be defined");var i=t.size||t.fontSize||t.em||48,n=t.weight||t.fontWeight||"",a=t.style||t.fontStyle||"",o=[a,n,i].join(" ")+"px "+r,s=t.origin||"top";if(X2.cache[r]&&i<=X2.cache[r].em)return aZe(X2.cache[r],s);var l=t.canvas||X2.canvas,u=l.getContext("2d"),f={upper:t.upper!==void 0?t.upper:"H",lower:t.lower!==void 0?t.lower:"x",descent:t.descent!==void 0?t.descent:"p",ascent:t.ascent!==void 0?t.ascent:"h",tittle:t.tittle!==void 0?t.tittle:"i",overshoot:t.overshoot!==void 0?t.overshoot:"O"},c=Math.ceil(i*1.5);l.height=c,l.width=c*.5,u.font=o;var h="H",d={top:0};u.clearRect(0,0,c,c),u.textBaseline="top",u.fillStyle="black",u.fillText(h,0,0);var p=Cm(u.getImageData(0,0,c,c));u.clearRect(0,0,c,c),u.textBaseline="bottom",u.fillText(h,0,c);var v=Cm(u.getImageData(0,0,c,c));d.lineHeight=d.bottom=c-v+p,u.clearRect(0,0,c,c),u.textBaseline="alphabetic",u.fillText(h,0,c);var y=Cm(u.getImageData(0,0,c,c)),m=c-y-1+p;d.baseline=d.alphabetic=m,u.clearRect(0,0,c,c),u.textBaseline="middle",u.fillText(h,0,c*.5);var w=Cm(u.getImageData(0,0,c,c));d.median=d.middle=c-w-1+p-c*.5,u.clearRect(0,0,c,c),u.textBaseline="hanging",u.fillText(h,0,c*.5);var _=Cm(u.getImageData(0,0,c,c));d.hanging=c-_-1+p-c*.5,u.clearRect(0,0,c,c),u.textBaseline="ideographic",u.fillText(h,0,c);var b=Cm(u.getImageData(0,0,c,c));if(d.ideographic=c-b-1+p,f.upper&&(u.clearRect(0,0,c,c),u.textBaseline="top",u.fillText(f.upper,0,0),d.upper=Cm(u.getImageData(0,0,c,c)),d.capHeight=d.baseline-d.upper),f.lower&&(u.clearRect(0,0,c,c),u.textBaseline="top",u.fillText(f.lower,0,0),d.lower=Cm(u.getImageData(0,0,c,c)),d.xHeight=d.baseline-d.lower),f.tittle&&(u.clearRect(0,0,c,c),u.textBaseline="top",u.fillText(f.tittle,0,0),d.tittle=Cm(u.getImageData(0,0,c,c))),f.ascent&&(u.clearRect(0,0,c,c),u.textBaseline="top",u.fillText(f.ascent,0,0),d.ascent=Cm(u.getImageData(0,0,c,c))),f.descent&&(u.clearRect(0,0,c,c),u.textBaseline="top",u.fillText(f.descent,0,0),d.descent=oZe(u.getImageData(0,0,c,c))),f.overshoot){u.clearRect(0,0,c,c),u.textBaseline="top",u.fillText(f.overshoot,0,0);var M=oZe(u.getImageData(0,0,c,c));d.overshoot=M-m}for(var x in d)d[x]/=i;return d.em=i,X2.cache[r]=d,aZe(d,s)}function aZe(e,t){var r={};typeof t=="string"&&(t=e[t]);for(var i in e)i!=="em"&&(r[i]=e[i]-t);return r}function Cm(e){for(var t=e.height,r=e.data,i=3;i0;i-=4)if(r[i]!==0)return Math.floor((i-3)*.25/t)}});var hZe=K((Dri,cZe)=>{"use strict";var u5=AXe(),gvr=Em(),xvr=Ite(),bvr=kXe(),_vr=gte(),Vte=HE(),wvr=DXe(),Z2=XXe(),Avr=K4(),Tvr=KXe(),Mvr=Ote(),Svr=tZe(),Evr=nZe(),kvr=Mh(),Cvr=lZe(),Dvr=V_(),Fvr=Bte(),uZe=Fvr.nextPow2,fZe=new _vr,bB=!1;document.body&&(xB=document.body.appendChild(document.createElement("div")),xB.style.font="italic small-caps bold condensed 16px/2 cursive",getComputedStyle(xB).fontStretch&&(bB=!0),document.body.removeChild(xB));var xB,df=function(t){Lvr(t)?(t={regl:t},this.gl=t.regl._gl):this.gl=bvr(t),this.shader=fZe.get(this.gl),this.shader?this.regl=this.shader.regl:this.regl=t.regl||xvr({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(),fZe.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(Tvr(t)?t:{})};df.prototype.createShader=function(){var t=this.regl,r=t({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:t.prop("count"),offset:t.prop("offset"),attributes:{charOffset:{offset:4,stride:8,buffer:t.this("sizeBuffer")},width:{offset:0,stride:8,buffer:t.this("sizeBuffer")},char:t.this("charBuffer"),position:t.this("position")},uniforms:{atlasSize:function(n,a){return[a.atlas.width,a.atlas.height]},atlasDim:function(n,a){return[a.atlas.cols,a.atlas.rows]},atlas:function(n,a){return a.atlas.texture},charStep:function(n,a){return a.atlas.step},em:function(n,a){return a.atlas.em},color:t.prop("color"),opacity:t.prop("opacity"),viewport:t.this("viewportArray"),scale:t.this("scale"),align:t.prop("align"),baseline:t.prop("baseline"),translate:t.this("translate"),positionOffset:t.prop("positionOffset")},primitive:"points",viewport:t.this("viewport"),vert:` +`),Sn;if(Ot&&(Sn=Ya($r),Ot[Sn]))return Ot[Sn].apply(null,Ji);var Ka=Function.apply(null,hi.concat($r));return Ot&&(Ot[Sn]=Ka),Ka.apply(null,Ji)}return{global:vo,link:Xi,block:ba,proc:ys,scope:lo,cond:uo,compile:Oo}}var ai="xyzw".split(""),ci=5121,li=1,mi=2,xi=0,Ni=1,ua=2,xa=3,ao=4,ho=5,Fo=6,ls="dither",Io="blend.enable",Ps="blend.color",xs="blend.equation",us="blend.func",Vi="depth.enable",io="depth.func",ko="depth.range",oo="depth.mask",xo="colorMask",bo="cull.enable",so="cull.face",Yo="frontFace",Uo="lineWidth",es="polygonOffset.enable",jo="polygonOffset.offset",Qo="sample.alpha",Ks="sample.enable",Ws="sample.coverage",Ds="stencil.enable",_s="stencil.mask",as="stencil.func",Es="stencil.opFront",Mo="stencil.opBack",Go="scissor.enable",qs="scissor.box",Ts="viewport",Dl="profile",_l="framebuffer",wl="vert",vl="frag",Al="elements",ml="primitive",Hl="count",Tl="offset",yl="instances",ae="vao",ce="Width",Te="Height",Ce=_l+ce,Ne=_l+Te,Oe=Ts+ce,He=Ts+Te,ct="drawingBuffer",xt=ct+ce,vt=ct+Te,wt=[us,xs,as,Es,Mo,Ws,Ts,qs,jo],Pt=34962,Jt=34963,cr=2884,Nr=3042,zi=3024,Rn=2960,fo=2929,Xo=3089,Bo=32823,fs=32926,cs=32928,Ns=5126,zl=35664,Rs=35665,Nl=35666,ul=5124,cl=35667,vf=35668,wf=35669,_u=35670,wu=35671,ju=35672,Au=35673,ku=35674,Af=35675,mf=35676,ef=35678,Nf=35680,oc=4,R=1028,G=1029,ee=2304,he=2305,ve=32775,be=32776,je=519,qe=7680,Je=0,ht=1,pt=32774,Lt=513,kt=36160,Qt=36064,Sr={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},It={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},Yt={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},sr={cw:ee,ccw:he};function Ar(et){return Array.isArray(et)||at(et)||Ge(et)}function br(et){return et.sort(function(Ot,Ht){return Ot===Ts?-1:Ht===Ts?1:Ot=1,hi>=2,Ot)}else if(Ht===ao){var Ji=et.data;return new Xt(Ji.thisDep,Ji.contextDep,Ji.propDep,Ot)}else{if(Ht===ho)return new Xt(!1,!1,!1,Ot);if(Ht===Fo){for(var cn=!1,Xi=!1,ba=!1,lo=0;lo=1&&(Xi=!0),vo>=2&&(ba=!0)}else uo.type===ao&&(cn=cn||uo.data.thisDep,Xi=Xi||uo.data.contextDep,ba=ba||uo.data.propDep)}return new Xt(cn,Xi,ba,Ot)}else return new Xt(Ht===xa,Ht===ua,Ht===Ni,Ot)}}var yo=new Xt(!1,!1,!1,function(){});function Wo(et,Ot,Ht,hi,Ji,cn,Xi,ba,lo,uo,vo,Vs,ys,Oo,ra,$r){var Sn=uo.Record,Ka={add:32774,subtract:32778,"reverse subtract":32779};Ht.ext_blend_minmax&&(Ka.min=ve,Ka.max=be);var _o=Ht.angle_instanced_arrays,Ea=Ht.webgl_draw_buffers,Ko=Ht.oes_vertex_array_object,Vo={dirty:!0,profile:$r.profile},$s={},_a=[],fa={},hs={};function qo(zt){return zt.replace(".","_")}function Do(zt,jt,hr){var Qi=qo(zt);_a.push(zt),$s[Qi]=Vo[Qi]=!!hr,fa[Qi]=jt}function Lo(zt,jt,hr){var Qi=qo(zt);_a.push(zt),Array.isArray(hr)?(Vo[Qi]=hr.slice(),$s[Qi]=hr.slice()):Vo[Qi]=$s[Qi]=hr,hs[Qi]=jt}function ds(zt){return!!isNaN(zt)}Do(ls,zi),Do(Io,Nr),Lo(Ps,"blendColor",[0,0,0,0]),Lo(xs,"blendEquationSeparate",[pt,pt]),Lo(us,"blendFuncSeparate",[ht,Je,ht,Je]),Do(Vi,fo,!0),Lo(io,"depthFunc",Lt),Lo(ko,"depthRange",[0,1]),Lo(oo,"depthMask",!0),Lo(xo,xo,[!0,!0,!0,!0]),Do(bo,cr),Lo(so,"cullFace",G),Lo(Yo,Yo,he),Lo(Uo,Uo,1),Do(es,Bo),Lo(jo,"polygonOffset",[0,0]),Do(Qo,fs),Do(Ks,cs),Lo(Ws,"sampleCoverage",[1,!1]),Do(Ds,Rn),Lo(_s,"stencilMask",-1),Lo(as,"stencilFunc",[je,0,-1]),Lo(Es,"stencilOpSeparate",[R,qe,qe,qe]),Lo(Mo,"stencilOpSeparate",[G,qe,qe,qe]),Do(Go,Xo),Lo(qs,"scissor",[0,0,et.drawingBufferWidth,et.drawingBufferHeight]),Lo(Ts,Ts,[0,0,et.drawingBufferWidth,et.drawingBufferHeight]);var Ys={gl:et,context:ys,strings:Ot,next:$s,current:Vo,draw:Vs,elements:cn,buffer:Ji,shader:vo,attributes:uo.state,vao:uo,uniforms:lo,framebuffer:ba,extensions:Ht,timer:Oo,isBufferArgs:Ar},xl={primTypes:wr,compareFuncs:It,blendFuncs:Sr,blendEquations:Ka,stencilOps:Yt,glTypes:tr,orientationType:sr};Ea&&(xl.backBuffer=[G],xl.drawBuffer=A(hi.maxDrawbuffers,function(zt){return zt===0?[0]:A(zt,function(jt){return Qt+jt})}));var $o=0;function bs(){var zt=Ur({cache:ra}),jt=zt.link,hr=zt.global;zt.id=$o++,zt.batchId="0";var Qi=jt(Ys),pn=zt.shared={props:"a0"};Object.keys(Ys).forEach(function(yr){pn[yr]=hr.def(Qi,".",yr)});var si=zt.next={},Xr=zt.current={};Object.keys(hs).forEach(function(yr){Array.isArray(Vo[yr])&&(si[yr]=hr.def(pn.next,".",yr),Xr[yr]=hr.def(pn.current,".",yr))});var Lr=zt.constants={};Object.keys(xl).forEach(function(yr){Lr[yr]=hr.def(JSON.stringify(xl[yr]))}),zt.invoke=function(yr,Zt){switch(Zt.type){case xi:var bi=["this",pn.context,pn.props,zt.batchId];return yr.def(jt(Zt.data),".call(",bi.slice(0,Math.max(Zt.data.length+1,4)),")");case Ni:return yr.def(pn.props,Zt.data);case ua:return yr.def(pn.context,Zt.data);case xa:return yr.def("this",Zt.data);case ao:return Zt.data.append(zt,yr),Zt.data.ref;case ho:return Zt.data.toString();case Fo:return Zt.data.map(function(En){return zt.invoke(yr,En)})}},zt.attribCache={};var ir={};return zt.scopeAttrib=function(yr){var Zt=Ot.id(yr);if(Zt in ir)return ir[Zt];var bi=uo.scope[Zt];bi||(bi=uo.scope[Zt]=new Sn);var En=ir[Zt]=jt(bi);return En},zt}function hl(zt){var jt=zt.static,hr=zt.dynamic,Qi;if(Dl in jt){var pn=!!jt[Dl];Qi=ha(function(Xr,Lr){return pn}),Qi.enable=pn}else if(Dl in hr){var si=hr[Dl];Qi=Xa(si,function(Xr,Lr){return Xr.invoke(Lr,si)})}return Qi}function dl(zt,jt){var hr=zt.static,Qi=zt.dynamic;if(_l in hr){var pn=hr[_l];return pn?(pn=ba.getFramebuffer(pn),ha(function(Xr,Lr){var ir=Xr.link(pn),yr=Xr.shared;Lr.set(yr.framebuffer,".next",ir);var Zt=yr.context;return Lr.set(Zt,"."+Ce,ir+".width"),Lr.set(Zt,"."+Ne,ir+".height"),ir})):ha(function(Xr,Lr){var ir=Xr.shared;Lr.set(ir.framebuffer,".next","null");var yr=ir.context;return Lr.set(yr,"."+Ce,yr+"."+xt),Lr.set(yr,"."+Ne,yr+"."+vt),"null"})}else if(_l in Qi){var si=Qi[_l];return Xa(si,function(Xr,Lr){var ir=Xr.invoke(Lr,si),yr=Xr.shared,Zt=yr.framebuffer,bi=Lr.def(Zt,".getFramebuffer(",ir,")");Lr.set(Zt,".next",bi);var En=yr.context;return Lr.set(En,"."+Ce,bi+"?"+bi+".width:"+En+"."+xt),Lr.set(En,"."+Ne,bi+"?"+bi+".height:"+En+"."+vt),bi})}else return null}function Wl(zt,jt,hr){var Qi=zt.static,pn=zt.dynamic;function si(ir){if(ir in Qi){var yr=Qi[ir],Zt=!0,bi=yr.x|0,En=yr.y|0,Qa,Zs;return"width"in yr?Qa=yr.width|0:Zt=!1,"height"in yr?Zs=yr.height|0:Zt=!1,new Xt(!Zt&&jt&&jt.thisDep,!Zt&&jt&&jt.contextDep,!Zt&&jt&&jt.propDep,function(Xs,Bs){var zs=Xs.shared.context,ns=Qa;"width"in yr||(ns=Bs.def(zs,".",Ce,"-",bi));var Ss=Zs;return"height"in yr||(Ss=Bs.def(zs,".",Ne,"-",En)),[bi,En,ns,Ss]})}else if(ir in pn){var vs=pn[ir],is=Xa(vs,function(Xs,Bs){var zs=Xs.invoke(Bs,vs),ns=Xs.shared.context,Ss=Bs.def(zs,".x|0"),Fs=Bs.def(zs,".y|0"),bl=Bs.def('"width" in ',zs,"?",zs,".width|0:","(",ns,".",Ce,"-",Ss,")"),Sf=Bs.def('"height" in ',zs,"?",zs,".height|0:","(",ns,".",Ne,"-",Fs,")");return[Ss,Fs,bl,Sf]});return jt&&(is.thisDep=is.thisDep||jt.thisDep,is.contextDep=is.contextDep||jt.contextDep,is.propDep=is.propDep||jt.propDep),is}else return jt?new Xt(jt.thisDep,jt.contextDep,jt.propDep,function(Xs,Bs){var zs=Xs.shared.context;return[0,0,Bs.def(zs,".",Ce),Bs.def(zs,".",Ne)]}):null}var Xr=si(Ts);if(Xr){var Lr=Xr;Xr=new Xt(Xr.thisDep,Xr.contextDep,Xr.propDep,function(ir,yr){var Zt=Lr.append(ir,yr),bi=ir.shared.context;return yr.set(bi,"."+Oe,Zt[2]),yr.set(bi,"."+He,Zt[3]),Zt})}return{viewport:Xr,scissor_box:si(qs)}}function Zf(zt,jt){var hr=zt.static,Qi=typeof hr[vl]=="string"&&typeof hr[wl]=="string";if(Qi){if(Object.keys(jt.dynamic).length>0)return null;var pn=jt.static,si=Object.keys(pn);if(si.length>0&&typeof pn[si[0]]=="number"){for(var Xr=[],Lr=0;Lr"+Ss+"?"+Zt+".constant["+Ss+"]:0;"}).join(""),"}}else{","if(",Qa,"(",Zt,".buffer)){",Xs,"=",Zs,".createStream(",Pt,",",Zt,".buffer);","}else{",Xs,"=",Zs,".getBuffer(",Zt,".buffer);","}",Bs,'="type" in ',Zt,"?",En.glTypes,"[",Zt,".type]:",Xs,".dtype;",vs.normalized,"=!!",Zt,".normalized;");function zs(ns){yr(vs[ns],"=",Zt,".",ns,"|0;")}return zs("size"),zs("offset"),zs("stride"),zs("divisor"),yr("}}"),yr.exit("if(",vs.isStream,"){",Zs,".destroyStream(",Xs,");","}"),vs}pn[si]=Xa(Xr,Lr)}),pn}function Wh(zt){var jt=zt.static,hr=zt.dynamic,Qi={};return Object.keys(jt).forEach(function(pn){var si=jt[pn];Qi[pn]=ha(function(Xr,Lr){return typeof si=="number"||typeof si=="boolean"?""+si:Xr.link(si)})}),Object.keys(hr).forEach(function(pn){var si=hr[pn];Qi[pn]=Xa(si,function(Xr,Lr){return Xr.invoke(Lr,si)})}),Qi}function g0(zt,jt,hr,Qi,pn){var si=zt.static,Xr=zt.dynamic,Lr=Zf(zt,jt),ir=dl(zt,pn),yr=Wl(zt,ir,pn),Zt=ru(zt,pn),bi=y0(zt,pn),En=Vc(zt,pn,Lr);function Qa(zs){var ns=yr[zs];ns&&(bi[zs]=ns)}Qa(Ts),Qa(qo(qs));var Zs=Object.keys(bi).length>0,vs={framebuffer:ir,draw:Zt,shader:En,state:bi,dirty:Zs,scopeVAO:null,drawVAO:null,useVAO:!1,attributes:{}};if(vs.profile=hl(zt,pn),vs.uniforms=rf(hr,pn),vs.drawVAO=vs.scopeVAO=Zt.vao,!vs.drawVAO&&En.program&&!Lr&&Ht.angle_instanced_arrays&&Zt.static.elements){var is=!0,Xs=En.program.attributes.map(function(zs){var ns=jt.static[zs];return is=is&&!!ns,ns});if(is&&Xs.length>0){var Bs=uo.getVAO(uo.createVAO({attributes:Xs,elements:Zt.static.elements}));vs.drawVAO=new Xt(null,null,null,function(zs,ns){return zs.link(Bs)}),vs.useVAO=!0}}return Lr?vs.useVAO=!0:vs.attributes=Fh(jt,pn),vs.context=Wh(Qi,pn),vs}function Tc(zt,jt,hr){var Qi=zt.shared,pn=Qi.context,si=zt.scope();Object.keys(hr).forEach(function(Xr){jt.save(pn,"."+Xr);var Lr=hr[Xr],ir=Lr.append(zt,jt);Array.isArray(ir)?si(pn,".",Xr,"=[",ir.join(),"];"):si(pn,".",Xr,"=",ir,";")}),jt(si)}function Mc(zt,jt,hr,Qi){var pn=zt.shared,si=pn.gl,Xr=pn.framebuffer,Lr;Ea&&(Lr=jt.def(pn.extensions,".webgl_draw_buffers"));var ir=zt.constants,yr=ir.drawBuffer,Zt=ir.backBuffer,bi;hr?bi=hr.append(zt,jt):bi=jt.def(Xr,".next"),Qi||jt("if(",bi,"!==",Xr,".cur){"),jt("if(",bi,"){",si,".bindFramebuffer(",kt,",",bi,".framebuffer);"),Ea&&jt(Lr,".drawBuffersWEBGL(",yr,"[",bi,".colorAttachments.length]);"),jt("}else{",si,".bindFramebuffer(",kt,",null);"),Ea&&jt(Lr,".drawBuffersWEBGL(",Zt,");"),jt("}",Xr,".cur=",bi,";"),Qi||jt("}")}function Uc(zt,jt,hr){var Qi=zt.shared,pn=Qi.gl,si=zt.current,Xr=zt.next,Lr=Qi.current,ir=Qi.next,yr=zt.cond(Lr,".dirty");_a.forEach(function(Zt){var bi=qo(Zt);if(!(bi in hr.state)){var En,Qa;if(bi in Xr){En=Xr[bi],Qa=si[bi];var Zs=A(Vo[bi].length,function(is){return yr.def(En,"[",is,"]")});yr(zt.cond(Zs.map(function(is,Xs){return is+"!=="+Qa+"["+Xs+"]"}).join("||")).then(pn,".",hs[bi],"(",Zs,");",Zs.map(function(is,Xs){return Qa+"["+Xs+"]="+is}).join(";"),";"))}else{En=yr.def(ir,".",bi);var vs=zt.cond(En,"!==",Lr,".",bi);yr(vs),bi in fa?vs(zt.cond(En).then(pn,".enable(",fa[bi],");").else(pn,".disable(",fa[bi],");"),Lr,".",bi,"=",En,";"):vs(pn,".",hs[bi],"(",En,");",Lr,".",bi,"=",En,";")}}}),Object.keys(hr.state).length===0&&yr(Lr,".dirty=false;"),jt(yr)}function Rl(zt,jt,hr,Qi){var pn=zt.shared,si=zt.current,Xr=pn.current,Lr=pn.gl,ir;br(Object.keys(hr)).forEach(function(yr){var Zt=hr[yr];if(!(Qi&&!Qi(Zt))){var bi=Zt.append(zt,jt);if(fa[yr]){var En=fa[yr];_n(Zt)?(ir=zt.link(bi,{stable:!0}),jt(zt.cond(ir).then(Lr,".enable(",En,");").else(Lr,".disable(",En,");")),jt(Xr,".",yr,"=",ir,";")):(jt(zt.cond(bi).then(Lr,".enable(",En,");").else(Lr,".disable(",En,");")),jt(Xr,".",yr,"=",bi,";"))}else if(lr(bi)){var Qa=si[yr];jt(Lr,".",hs[yr],"(",bi,");",bi.map(function(Zs,vs){return Qa+"["+vs+"]="+Zs}).join(";"),";")}else _n(Zt)?(ir=zt.link(bi,{stable:!0}),jt(Lr,".",hs[yr],"(",ir,");",Xr,".",yr,"=",ir,";")):jt(Lr,".",hs[yr],"(",bi,");",Xr,".",yr,"=",bi,";")}})}function sh(zt,jt){_o&&(zt.instancing=jt.def(zt.shared.extensions,".angle_instanced_arrays"))}function sf(zt,jt,hr,Qi,pn){var si=zt.shared,Xr=zt.stats,Lr=si.current,ir=si.timer,yr=hr.profile;function Zt(){return typeof performance=="undefined"?"Date.now()":"performance.now()"}var bi,En;function Qa(zs){bi=jt.def(),zs(bi,"=",Zt(),";"),typeof pn=="string"?zs(Xr,".count+=",pn,";"):zs(Xr,".count++;"),Oo&&(Qi?(En=jt.def(),zs(En,"=",ir,".getNumPendingQueries();")):zs(ir,".beginQuery(",Xr,");"))}function Zs(zs){zs(Xr,".cpuTime+=",Zt(),"-",bi,";"),Oo&&(Qi?zs(ir,".pushScopeStats(",En,",",ir,".getNumPendingQueries(),",Xr,");"):zs(ir,".endQuery();"))}function vs(zs){var ns=jt.def(Lr,".profile");jt(Lr,".profile=",zs,";"),jt.exit(Lr,".profile=",ns,";")}var is;if(yr){if(_n(yr)){yr.enable?(Qa(jt),Zs(jt.exit),vs("true")):vs("false");return}is=yr.append(zt,jt),vs(is)}else is=jt.def(Lr,".profile");var Xs=zt.block();Qa(Xs),jt("if(",is,"){",Xs,"}");var Bs=zt.block();Zs(Bs),jt.exit("if(",is,"){",Bs,"}")}function $h(zt,jt,hr,Qi,pn){var si=zt.shared;function Xr(ir){switch(ir){case zl:case cl:case wu:return 2;case Rs:case vf:case ju:return 3;case Nl:case wf:case Au:return 4;default:return 1}}function Lr(ir,yr,Zt){var bi=si.gl,En=jt.def(ir,".location"),Qa=jt.def(si.attributes,"[",En,"]"),Zs=Zt.state,vs=Zt.buffer,is=[Zt.x,Zt.y,Zt.z,Zt.w],Xs=["buffer","normalized","offset","stride"];function Bs(){jt("if(!",Qa,".buffer){",bi,".enableVertexAttribArray(",En,");}");var ns=Zt.type,Ss;if(Zt.size?Ss=jt.def(Zt.size,"||",yr):Ss=yr,jt("if(",Qa,".type!==",ns,"||",Qa,".size!==",Ss,"||",Xs.map(function(bl){return Qa+"."+bl+"!=="+Zt[bl]}).join("||"),"){",bi,".bindBuffer(",Pt,",",vs,".buffer);",bi,".vertexAttribPointer(",[En,Ss,ns,Zt.normalized,Zt.stride,Zt.offset],");",Qa,".type=",ns,";",Qa,".size=",Ss,";",Xs.map(function(bl){return Qa+"."+bl+"="+Zt[bl]+";"}).join(""),"}"),_o){var Fs=Zt.divisor;jt("if(",Qa,".divisor!==",Fs,"){",zt.instancing,".vertexAttribDivisorANGLE(",[En,Fs],");",Qa,".divisor=",Fs,";}")}}function zs(){jt("if(",Qa,".buffer){",bi,".disableVertexAttribArray(",En,");",Qa,".buffer=null;","}if(",ai.map(function(ns,Ss){return Qa+"."+ns+"!=="+is[Ss]}).join("||"),"){",bi,".vertexAttrib4f(",En,",",is,");",ai.map(function(ns,Ss){return Qa+"."+ns+"="+is[Ss]+";"}).join(""),"}")}Zs===li?Bs():Zs===mi?zs():(jt("if(",Zs,"===",li,"){"),Bs(),jt("}else{"),zs(),jt("}"))}Qi.forEach(function(ir){var yr=ir.name,Zt=hr.attributes[yr],bi;if(Zt){if(!pn(Zt))return;bi=Zt.append(zt,jt)}else{if(!pn(yo))return;var En=zt.scopeAttrib(yr);bi={},Object.keys(new Sn).forEach(function(Qa){bi[Qa]=jt.def(En,".",Qa)})}Lr(zt.link(ir),Xr(ir.info.type),bi)})}function x0(zt,jt,hr,Qi,pn,si){for(var Xr=zt.shared,Lr=Xr.gl,ir,yr=0;yr1){for(var _0=[],Lp=[],qv=0;qv>1)",vs],");")}function Fs(){hr(is,".drawArraysInstancedANGLE(",[En,Qa,Zs,vs],");")}Zt&&Zt!=="null"?Bs?Ss():(hr("if(",Zt,"){"),Ss(),hr("}else{"),Fs(),hr("}")):Fs()}function ns(){function Ss(){hr(si+".drawElements("+[En,Zs,Xs,Qa+"<<(("+Xs+"-"+ci+")>>1)"]+");")}function Fs(){hr(si+".drawArrays("+[En,Qa,Zs]+");")}Zt&&Zt!=="null"?Bs?Ss():(hr("if(",Zt,"){"),Ss(),hr("}else{"),Fs(),hr("}")):Fs()}_o&&(typeof vs!="number"||vs>=0)?typeof vs=="string"?(hr("if(",vs,">0){"),zs(),hr("}else if(",vs,"<0){"),ns(),hr("}")):zs():ns()}function kl(zt,jt,hr,Qi,pn){var si=bs(),Xr=si.proc("body",pn);return _o&&(si.instancing=Xr.def(si.shared.extensions,".angle_instanced_arrays")),zt(si,Xr,hr,Qi),si.compile().body}function fu(zt,jt,hr,Qi){sh(zt,jt),hr.useVAO?hr.drawVAO?jt(zt.shared.vao,".setVAO(",hr.drawVAO.append(zt,jt),");"):jt(zt.shared.vao,".setVAO(",zt.shared.vao,".targetVAO);"):(jt(zt.shared.vao,".setVAO(null);"),$h(zt,jt,hr,Qi.attributes,function(){return!0})),x0(zt,jt,hr,Qi.uniforms,function(){return!0},!1),b0(zt,jt,jt,hr)}function Mf(zt,jt){var hr=zt.proc("draw",1);sh(zt,hr),Tc(zt,hr,jt.context),Mc(zt,hr,jt.framebuffer),Uc(zt,hr,jt),Rl(zt,hr,jt.state),sf(zt,hr,jt,!1,!0);var Qi=jt.shader.progVar.append(zt,hr);if(hr(zt.shared.gl,".useProgram(",Qi,".program);"),jt.shader.program)fu(zt,hr,jt,jt.shader.program);else{hr(zt.shared.vao,".setVAO(null);");var pn=zt.global.def("{}"),si=hr.def(Qi,".id"),Xr=hr.def(pn,"[",si,"]");hr(zt.cond(Xr).then(Xr,".call(this,a0);").else(Xr,"=",pn,"[",si,"]=",zt.link(function(Lr){return kl(fu,zt,jt,Lr,1)}),"(",Qi,");",Xr,".call(this,a0);"))}Object.keys(jt.state).length>0&&hr(zt.shared.current,".dirty=true;"),zt.shared.vao&&hr(zt.shared.vao,".setVAO(null);")}function Vt(zt,jt,hr,Qi){zt.batchId="a1",sh(zt,jt);function pn(){return!0}$h(zt,jt,hr,Qi.attributes,pn),x0(zt,jt,hr,Qi.uniforms,pn,!1),b0(zt,jt,jt,hr)}function tn(zt,jt,hr,Qi){sh(zt,jt);var pn=hr.contextDep,si=jt.def(),Xr="a0",Lr="a1",ir=jt.def();zt.shared.props=ir,zt.batchId=si;var yr=zt.scope(),Zt=zt.scope();jt(yr.entry,"for(",si,"=0;",si,"<",Lr,";++",si,"){",ir,"=",Xr,"[",si,"];",Zt,"}",yr.exit);function bi(Xs){return Xs.contextDep&&pn||Xs.propDep}function En(Xs){return!bi(Xs)}if(hr.needsContext&&Tc(zt,Zt,hr.context),hr.needsFramebuffer&&Mc(zt,Zt,hr.framebuffer),Rl(zt,Zt,hr.state,bi),hr.profile&&bi(hr.profile)&&sf(zt,Zt,hr,!1,!0),Qi)hr.useVAO?hr.drawVAO?bi(hr.drawVAO)?Zt(zt.shared.vao,".setVAO(",hr.drawVAO.append(zt,Zt),");"):yr(zt.shared.vao,".setVAO(",hr.drawVAO.append(zt,yr),");"):yr(zt.shared.vao,".setVAO(",zt.shared.vao,".targetVAO);"):(yr(zt.shared.vao,".setVAO(null);"),$h(zt,yr,hr,Qi.attributes,En),$h(zt,Zt,hr,Qi.attributes,bi)),x0(zt,yr,hr,Qi.uniforms,En,!1),x0(zt,Zt,hr,Qi.uniforms,bi,!0),b0(zt,yr,Zt,hr);else{var Qa=zt.global.def("{}"),Zs=hr.shader.progVar.append(zt,Zt),vs=Zt.def(Zs,".id"),is=Zt.def(Qa,"[",vs,"]");Zt(zt.shared.gl,".useProgram(",Zs,".program);","if(!",is,"){",is,"=",Qa,"[",vs,"]=",zt.link(function(Xs){return kl(Vt,zt,hr,Xs,2)}),"(",Zs,");}",is,".call(this,a0[",si,"],",si,");")}}function sn(zt,jt){var hr=zt.proc("batch",2);zt.batchId="0",sh(zt,hr);var Qi=!1,pn=!0;Object.keys(jt.context).forEach(function(Qa){Qi=Qi||jt.context[Qa].propDep}),Qi||(Tc(zt,hr,jt.context),pn=!1);var si=jt.framebuffer,Xr=!1;si?(si.propDep?Qi=Xr=!0:si.contextDep&&Qi&&(Xr=!0),Xr||Mc(zt,hr,si)):Mc(zt,hr,null),jt.state.viewport&&jt.state.viewport.propDep&&(Qi=!0);function Lr(Qa){return Qa.contextDep&&Qi||Qa.propDep}Uc(zt,hr,jt),Rl(zt,hr,jt.state,function(Qa){return!Lr(Qa)}),(!jt.profile||!Lr(jt.profile))&&sf(zt,hr,jt,!1,"a1"),jt.contextDep=Qi,jt.needsContext=pn,jt.needsFramebuffer=Xr;var ir=jt.shader.progVar;if(ir.contextDep&&Qi||ir.propDep)tn(zt,hr,jt,null);else{var yr=ir.append(zt,hr);if(hr(zt.shared.gl,".useProgram(",yr,".program);"),jt.shader.program)tn(zt,hr,jt,jt.shader.program);else{hr(zt.shared.vao,".setVAO(null);");var Zt=zt.global.def("{}"),bi=hr.def(yr,".id"),En=hr.def(Zt,"[",bi,"]");hr(zt.cond(En).then(En,".call(this,a0,a1);").else(En,"=",Zt,"[",bi,"]=",zt.link(function(Qa){return kl(tn,zt,jt,Qa,2)}),"(",yr,");",En,".call(this,a0,a1);"))}}Object.keys(jt.state).length>0&&hr(zt.shared.current,".dirty=true;"),zt.shared.vao&&hr(zt.shared.vao,".setVAO(null);")}function ks(zt,jt){var hr=zt.proc("scope",3);zt.batchId="a2";var Qi=zt.shared,pn=Qi.current;if(Tc(zt,hr,jt.context),jt.framebuffer&&jt.framebuffer.append(zt,hr),br(Object.keys(jt.state)).forEach(function(Lr){var ir=jt.state[Lr],yr=ir.append(zt,hr);lr(yr)?yr.forEach(function(Zt,bi){ds(Zt)?hr.set(zt.next[Lr],"["+bi+"]",Zt):hr.set(zt.next[Lr],"["+bi+"]",zt.link(Zt,{stable:!0}))}):_n(ir)?hr.set(Qi.next,"."+Lr,zt.link(yr,{stable:!0})):hr.set(Qi.next,"."+Lr,yr)}),sf(zt,hr,jt,!0,!0),[Al,Tl,Hl,yl,ml].forEach(function(Lr){var ir=jt.draw[Lr];if(ir){var yr=ir.append(zt,hr);ds(yr)?hr.set(Qi.draw,"."+Lr,yr):hr.set(Qi.draw,"."+Lr,zt.link(yr),{stable:!0})}}),Object.keys(jt.uniforms).forEach(function(Lr){var ir=jt.uniforms[Lr].append(zt,hr);Array.isArray(ir)&&(ir="["+ir.map(function(yr){return ds(yr)?yr:zt.link(yr,{stable:!0})})+"]"),hr.set(Qi.uniforms,"["+zt.link(Ot.id(Lr),{stable:!0})+"]",ir)}),Object.keys(jt.attributes).forEach(function(Lr){var ir=jt.attributes[Lr].append(zt,hr),yr=zt.scopeAttrib(Lr);Object.keys(new Sn).forEach(function(Zt){hr.set(yr,"."+Zt,ir[Zt])})}),jt.scopeVAO){var si=jt.scopeVAO.append(zt,hr);ds(si)?hr.set(Qi.vao,".targetVAO",si):hr.set(Qi.vao,".targetVAO",zt.link(si,{stable:!0}))}function Xr(Lr){var ir=jt.shader[Lr];if(ir){var yr=ir.append(zt,hr);ds(yr)?hr.set(Qi.shader,"."+Lr,yr):hr.set(Qi.shader,"."+Lr,zt.link(yr,{stable:!0}))}}Xr(wl),Xr(vl),Object.keys(jt.state).length>0&&(hr(pn,".dirty=true;"),hr.exit(pn,".dirty=true;")),hr("a1(",zt.shared.context,",a0,",zt.batchId,");")}function ou(zt){if(!(typeof zt!="object"||lr(zt))){for(var jt=Object.keys(zt),hr=0;hr=0;--kl){var fu=Ys[kl];fu&&fu(ra,null,0)}Ht.flush(),vo&&vo.update()}function Wl(){!hl&&Ys.length>0&&(hl=d.next(dl))}function Zf(){hl&&(d.cancel(dl),hl=null)}function Vc(kl){kl.preventDefault(),Ji=!0,Zf(),xl.forEach(function(fu){fu()})}function ru(kl){Ht.getError(),Ji=!1,cn.restore(),$s.restore(),_o.restore(),_a.restore(),fa.restore(),hs.restore(),Ko.restore(),vo&&vo.restore(),qo.procs.refresh(),Wl(),$o.forEach(function(fu){fu()})}ds&&(ds.addEventListener(nl,Vc,!1),ds.addEventListener(Vl,ru,!1));function y0(){Ys.length=0,Zf(),ds&&(ds.removeEventListener(nl,Vc),ds.removeEventListener(Vl,ru)),$s.clear(),hs.clear(),fa.clear(),Ko.clear(),_a.clear(),Ea.clear(),_o.clear(),vo&&vo.clear(),bs.forEach(function(kl){kl()})}function rf(kl){function fu(si){var Xr=e({},si);delete Xr.uniforms,delete Xr.attributes,delete Xr.context,delete Xr.vao,"stencil"in Xr&&Xr.stencil.op&&(Xr.stencil.opBack=Xr.stencil.opFront=Xr.stencil.op,delete Xr.stencil.op);function Lr(ir){if(ir in Xr){var yr=Xr[ir];delete Xr[ir],Object.keys(yr).forEach(function(Zt){Xr[ir+"."+Zt]=yr[Zt]})}}return Lr("blend"),Lr("depth"),Lr("cull"),Lr("stencil"),Lr("polygonOffset"),Lr("scissor"),Lr("sample"),"vao"in si&&(Xr.vao=si.vao),Xr}function Mf(si,Xr){var Lr={},ir={};return Object.keys(si).forEach(function(yr){var Zt=si[yr];if(h.isDynamic(Zt)){ir[yr]=h.unbox(Zt,yr);return}else if(Xr&&Array.isArray(Zt)){for(var bi=0;bi0)return zt.call(this,Qi(si|0),si|0)}else if(Array.isArray(si)){if(si.length)return zt.call(this,si,si.length)}else return Ms.call(this,si)}return e(pn,{stats:ou,destroy:function(){nf.destroy()}})}var Fh=hs.setFBO=rf({framebuffer:h.define.call(null,Cu,"framebuffer")});function Wh(kl,fu){var Mf=0;qo.procs.poll();var Vt=fu.color;Vt&&(Ht.clearColor(+Vt[0]||0,+Vt[1]||0,+Vt[2]||0,+Vt[3]||0),Mf|=qu),"depth"in fu&&(Ht.clearDepth(+fu.depth),Mf|=Ql),"stencil"in fu&&(Ht.clearStencil(fu.stencil|0),Mf|=po),Ht.clear(Mf)}function g0(kl){if("framebuffer"in kl)if(kl.framebuffer&&kl.framebuffer_reglType==="framebufferCube")for(var fu=0;fu<6;++fu)Fh(e({framebuffer:kl.framebuffer.faces[fu]},kl),Wh);else Fh(kl,Wh);else Wh(null,kl)}function Tc(kl){Ys.push(kl);function fu(){var Mf=sc(Ys,kl);function Vt(){var tn=sc(Ys,Vt);Ys[tn]=Ys[Ys.length-1],Ys.length-=1,Ys.length<=0&&Zf()}Ys[Mf]=Vt}return Wl(),{cancel:fu}}function Mc(){var kl=Lo.viewport,fu=Lo.scissor_box;kl[0]=kl[1]=fu[0]=fu[1]=0,ra.viewportWidth=ra.framebufferWidth=ra.drawingBufferWidth=kl[2]=fu[2]=Ht.drawingBufferWidth,ra.viewportHeight=ra.framebufferHeight=ra.drawingBufferHeight=kl[3]=fu[3]=Ht.drawingBufferHeight}function Uc(){ra.tick+=1,ra.time=sh(),Mc(),qo.procs.poll()}function Rl(){_a.refresh(),Mc(),qo.procs.refresh(),vo&&vo.update()}function sh(){return(p()-Vs)/1e3}Rl();function sf(kl,fu){var Mf;switch(kl){case"frame":return Tc(fu);case"lost":Mf=xl;break;case"restore":Mf=$o;break;case"destroy":Mf=bs;break;default:}return Mf.push(fu),{cancel:function(){for(var Vt=0;Vt=0},read:Do,destroy:y0,_gl:Ht,_refresh:Rl,poll:function(){Uc(),vo&&vo.update()},now:sh,stats:ba,getCachedCode:$h,preloadCachedCode:x0});return Ot.onDone(null,b0),b0}return vh}))});var RXe=K((zri,IXe)=>{"use strict";var hvr=Cm();IXe.exports=function(t){if(t?typeof t=="string"&&(t={container:t}):t={},PXe(t)?t={container:t}:dvr(t)?t={container:t}:pvr(t)?t={gl:t}:t=hvr(t,{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),t.pixelRatio||(t.pixelRatio=window.pixelRatio||1),t.gl)return t.gl;if(t.canvas&&(t.container=t.canvas.parentNode),t.container){if(typeof t.container=="string"){var r=document.querySelector(t.container);if(!r)throw Error("Element "+t.container+" is not found");t.container=r}PXe(t.container)?(t.canvas=t.container,t.container=t.canvas.parentNode):t.canvas||(t.canvas=zXe(),t.container.appendChild(t.canvas),LXe(t))}else if(!t.canvas)if(typeof document!="undefined")t.container=document.body||document.documentElement,t.canvas=zXe(),t.container.appendChild(t.canvas),LXe(t);else throw Error("Not DOM environment. Use headless-gl.");return t.gl||["webgl","experimental-webgl","webgl-experimental"].some(function(i){try{t.gl=t.canvas.getContext(i,t.attrs)}catch(n){}return t.gl}),t.gl};function LXe(e){if(e.container)if(e.container==document.body)document.body.style.width||(e.canvas.width=e.width||e.pixelRatio*window.innerWidth),document.body.style.height||(e.canvas.height=e.height||e.pixelRatio*window.innerHeight);else{var t=e.container.getBoundingClientRect();e.canvas.width=e.width||t.right-t.left,e.canvas.height=e.height||t.bottom-t.top}}function PXe(e){return typeof e.getContext=="function"&&"width"in e&&"height"in e}function dvr(e){return typeof e.nodeName=="string"&&typeof e.appendChild=="function"&&typeof e.getBoundingClientRect=="function"}function pvr(e){return typeof e.drawArrays=="function"||typeof e.drawElements=="function"}function zXe(){var e=document.createElement("canvas");return e.style.position="absolute",e.style.top=0,e.style.left=0,e}});var qXe=K((Iri,BXe)=>{"use strict";var vvr=Nte(),mvr=[32,126];BXe.exports=yvr;function yvr(e){e=e||{};var t=e.shape?e.shape:e.canvas?[e.canvas.width,e.canvas.height]:[512,512],r=e.canvas||document.createElement("canvas"),i=e.font,n=typeof e.step=="number"?[e.step,e.step]:e.step||[32,32],a=e.chars||mvr;if(i&&typeof i!="string"&&(i=vvr(i)),!Array.isArray(a))a=String(a).split("");else if(a.length===2&&typeof a[0]=="number"&&typeof a[1]=="number"){for(var o=[],s=a[0],l=0;s<=a[1];s++)o[l++]=String.fromCharCode(s);a=o}t=t.slice(),r.width=t[0],r.height=t[1];var u=r.getContext("2d");u.fillStyle="#000",u.fillRect(0,0,r.width,r.height),u.font=i,u.textAlign="center",u.textBaseline="middle",u.fillStyle="#fff";for(var f=n[0]/2,c=n[1]/2,s=0;st[0]-n[0]/2&&(f=n[0]/2,c+=n[1]);return r}});var jte=K(Jc=>{"use strict";"use restrict";var Hte=32;Jc.INT_BITS=Hte;Jc.INT_MAX=2147483647;Jc.INT_MIN=-1<0)-(e<0)};Jc.abs=function(e){var t=e>>Hte-1;return(e^t)-t};Jc.min=function(e,t){return t^(e^t)&-(e65535)<<4,e>>>=t,r=(e>255)<<3,e>>>=r,t|=r,r=(e>15)<<2,e>>>=r,t|=r,r=(e>3)<<1,e>>>=r,t|=r,t|e>>1};Jc.log10=function(e){return e>=1e9?9:e>=1e8?8:e>=1e7?7:e>=1e6?6:e>=1e5?5:e>=1e4?4:e>=1e3?3:e>=100?2:e>=10?1:0};Jc.popCount=function(e){return e=e-(e>>>1&1431655765),e=(e&858993459)+(e>>>2&858993459),(e+(e>>>4)&252645135)*16843009>>>24};function OXe(e){var t=32;return e&=-e,e&&t--,e&65535&&(t-=16),e&16711935&&(t-=8),e&252645135&&(t-=4),e&858993459&&(t-=2),e&1431655765&&(t-=1),t}Jc.countTrailingZeros=OXe;Jc.nextPow2=function(e){return e+=e===0,--e,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e+1};Jc.prevPow2=function(e){return e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e-(e>>>1)};Jc.parity=function(e){return e^=e>>>16,e^=e>>>8,e^=e>>>4,e&=15,27030>>>e&1};var ok=new Array(256);(function(e){for(var t=0;t<256;++t){var r=t,i=t,n=7;for(r>>>=1;r;r>>>=1)i<<=1,i|=r&1,--n;e[t]=i<>>8&255]<<16|ok[e>>>16&255]<<8|ok[e>>>24&255]};Jc.interleave2=function(e,t){return e&=65535,e=(e|e<<8)&16711935,e=(e|e<<4)&252645135,e=(e|e<<2)&858993459,e=(e|e<<1)&1431655765,t&=65535,t=(t|t<<8)&16711935,t=(t|t<<4)&252645135,t=(t|t<<2)&858993459,t=(t|t<<1)&1431655765,e|t<<1};Jc.deinterleave2=function(e,t){return e=e>>>t&1431655765,e=(e|e>>>1)&858993459,e=(e|e>>>2)&252645135,e=(e|e>>>4)&16711935,e=(e|e>>>16)&65535,e<<16>>16};Jc.interleave3=function(e,t,r){return e&=1023,e=(e|e<<16)&4278190335,e=(e|e<<8)&251719695,e=(e|e<<4)&3272356035,e=(e|e<<2)&1227133513,t&=1023,t=(t|t<<16)&4278190335,t=(t|t<<8)&251719695,t=(t|t<<4)&3272356035,t=(t|t<<2)&1227133513,e|=t<<1,r&=1023,r=(r|r<<16)&4278190335,r=(r|r<<8)&251719695,r=(r|r<<4)&3272356035,r=(r|r<<2)&1227133513,e|r<<2};Jc.deinterleave3=function(e,t){return e=e>>>t&1227133513,e=(e|e>>>2)&3272356035,e=(e|e>>>4)&251719695,e=(e|e>>>8)&4278190335,e=(e|e>>>16)&1023,e<<22>>22};Jc.nextCombination=function(e){var t=e|e-1;return t+1|(~t&-~t)-1>>>OXe(e)+1}});var UXe=K((Bri,VXe)=>{"use strict";function NXe(e,t,r){var i=e[r]|0;if(i<=0)return[];var n=new Array(i),a;if(r===e.length-1)for(a=0;a0)return gvr(e|0,t);break;case"object":if(typeof e.length=="number")return NXe(e,t,0);break}return[]}VXe.exports=xvr});var iZe=K(Iu=>{"use strict";var X2=jte(),L0=UXe(),GXe=r_().Buffer;window.__TYPEDARRAY_POOL||(window.__TYPEDARRAY_POOL={UINT8:L0([32,0]),UINT16:L0([32,0]),UINT32:L0([32,0]),BIGUINT64:L0([32,0]),INT8:L0([32,0]),INT16:L0([32,0]),INT32:L0([32,0]),BIGINT64:L0([32,0]),FLOAT:L0([32,0]),DOUBLE:L0([32,0]),DATA:L0([32,0]),UINT8C:L0([32,0]),BUFFER:L0([32,0])});var bvr=typeof Uint8ClampedArray!="undefined",_vr=typeof BigUint64Array!="undefined",wvr=typeof BigInt64Array!="undefined",dh=window.__TYPEDARRAY_POOL;dh.UINT8C||(dh.UINT8C=L0([32,0]));dh.BIGUINT64||(dh.BIGUINT64=L0([32,0]));dh.BIGINT64||(dh.BIGINT64=L0([32,0]));dh.BUFFER||(dh.BUFFER=L0([32,0]));var bB=dh.DATA,_B=dh.BUFFER;Iu.free=function(t){if(GXe.isBuffer(t))_B[X2.log2(t.length)].push(t);else{if(Object.prototype.toString.call(t)!=="[object ArrayBuffer]"&&(t=t.buffer),!t)return;var r=t.length||t.byteLength,i=X2.log2(r)|0;bB[i].push(t)}};function HXe(e){if(e){var t=e.length||e.byteLength,r=X2.log2(t);bB[r].push(e)}}function Avr(e){HXe(e.buffer)}Iu.freeUint8=Iu.freeUint16=Iu.freeUint32=Iu.freeBigUint64=Iu.freeInt8=Iu.freeInt16=Iu.freeInt32=Iu.freeBigInt64=Iu.freeFloat32=Iu.freeFloat=Iu.freeFloat64=Iu.freeDouble=Iu.freeUint8Clamped=Iu.freeDataView=Avr;Iu.freeArrayBuffer=HXe;Iu.freeBuffer=function(t){_B[X2.log2(t.length)].push(t)};Iu.malloc=function(t,r){if(r===void 0||r==="arraybuffer")return Vd(t);switch(r){case"uint8":return Wte(t);case"uint16":return jXe(t);case"uint32":return WXe(t);case"int8":return $Xe(t);case"int16":return YXe(t);case"int32":return XXe(t);case"float":case"float32":return ZXe(t);case"double":case"float64":return KXe(t);case"uint8_clamped":return JXe(t);case"bigint64":return eZe(t);case"biguint64":return QXe(t);case"buffer":return rZe(t);case"data":case"dataview":return tZe(t);default:return null}return null};function Vd(t){var t=X2.nextPow2(t),r=X2.log2(t),i=bB[r];return i.length>0?i.pop():new ArrayBuffer(t)}Iu.mallocArrayBuffer=Vd;function Wte(e){return new Uint8Array(Vd(e),0,e)}Iu.mallocUint8=Wte;function jXe(e){return new Uint16Array(Vd(2*e),0,e)}Iu.mallocUint16=jXe;function WXe(e){return new Uint32Array(Vd(4*e),0,e)}Iu.mallocUint32=WXe;function $Xe(e){return new Int8Array(Vd(e),0,e)}Iu.mallocInt8=$Xe;function YXe(e){return new Int16Array(Vd(2*e),0,e)}Iu.mallocInt16=YXe;function XXe(e){return new Int32Array(Vd(4*e),0,e)}Iu.mallocInt32=XXe;function ZXe(e){return new Float32Array(Vd(4*e),0,e)}Iu.mallocFloat32=Iu.mallocFloat=ZXe;function KXe(e){return new Float64Array(Vd(8*e),0,e)}Iu.mallocFloat64=Iu.mallocDouble=KXe;function JXe(e){return bvr?new Uint8ClampedArray(Vd(e),0,e):Wte(e)}Iu.mallocUint8Clamped=JXe;function QXe(e){return _vr?new BigUint64Array(Vd(8*e),0,e):null}Iu.mallocBigUint64=QXe;function eZe(e){return wvr?new BigInt64Array(Vd(8*e),0,e):null}Iu.mallocBigInt64=eZe;function tZe(e){return new DataView(Vd(e),0,e)}Iu.mallocDataView=tZe;function rZe(e){e=X2.nextPow2(e);var t=X2.log2(e),r=_B[t];return r.length>0?r.pop():new GXe(e)}Iu.mallocBuffer=rZe;Iu.clearCache=function(){for(var t=0;t<32;++t)dh.UINT8[t].length=0,dh.UINT16[t].length=0,dh.UINT32[t].length=0,dh.INT8[t].length=0,dh.INT16[t].length=0,dh.INT32[t].length=0,dh.FLOAT[t].length=0,dh.DOUBLE[t].length=0,dh.BIGUINT64[t].length=0,dh.BIGINT64[t].length=0,dh.UINT8C[t].length=0,bB[t].length=0,_B[t].length=0}});var aZe=K((Ori,nZe)=>{"use strict";var Tvr=Object.prototype.toString;nZe.exports=function(e){var t;return Tvr.call(e)==="[object Object]"&&(t=Object.getPrototypeOf(e),t===null||t===Object.getPrototypeOf({}))}});var $te=K((Nri,oZe)=>{oZe.exports=function(t,r){r||(r=[0,""]),t=String(t);var i=parseFloat(t,10);return r[0]=i,r[1]=t.match(/[\d.\-\+]*\s*(.*)/)[1]||"",r}});var uZe=K((Vri,lZe)=>{"use strict";var Mvr=$te();lZe.exports=sZe;var sk=96;function Yte(e,t){var r=Mvr(getComputedStyle(e).getPropertyValue(t));return r[0]*sZe(r[1],e)}function Svr(e,t){var r=document.createElement("div");r.style["font-size"]="128"+e,t.appendChild(r);var i=Yte(r,"font-size")/128;return t.removeChild(r),i}function sZe(e,t){switch(t=t||document.body,e=(e||"px").trim().toLowerCase(),(t===window||t===document)&&(t=document.body),e){case"%":return t.clientHeight/100;case"ch":case"ex":return Svr(e,t);case"em":return Yte(t,"font-size");case"rem":return Yte(document.body,"font-size");case"vw":return window.innerWidth/100;case"vh":return window.innerHeight/100;case"vmin":return Math.min(window.innerWidth,window.innerHeight)/100;case"vmax":return Math.max(window.innerWidth,window.innerHeight)/100;case"in":return sk;case"cm":return sk/2.54;case"mm":return sk/25.4;case"pt":return sk/72;case"pc":return sk/6}return 1}});var hZe=K((Uri,cZe)=>{"use strict";cZe.exports=TB;var Evr=TB.canvas=document.createElement("canvas"),wB=Evr.getContext("2d"),fZe=AB([32,126]);TB.createPairs=AB;TB.ascii=fZe;function TB(e,t){Array.isArray(e)&&(e=e.join(", "));var r={},i,n=16,a=.05;t&&(t.length===2&&typeof t[0]=="number"?i=AB(t):Array.isArray(t)?i=t:(t.o?i=AB(t.o):t.pairs&&(i=t.pairs),t.fontSize&&(n=t.fontSize),t.threshold!=null&&(a=t.threshold))),i||(i=fZe),wB.font=n+"px "+e;for(var o=0;on*a){var f=(u-l)/n;r[s]=f*1e3}}return r}function AB(e){for(var t=[],r=e[0];r<=e[1];r++)for(var i=String.fromCharCode(r),n=e[0];n{"use strict";vZe.exports=Z2;Z2.canvas=document.createElement("canvas");Z2.cache={};function Z2(o,t){t||(t={}),(typeof o=="string"||Array.isArray(o))&&(t.family=o);var r=Array.isArray(t.family)?t.family.join(", "):t.family;if(!r)throw Error("`family` must be defined");var i=t.size||t.fontSize||t.em||48,n=t.weight||t.fontWeight||"",a=t.style||t.fontStyle||"",o=[a,n,i].join(" ")+"px "+r,s=t.origin||"top";if(Z2.cache[r]&&i<=Z2.cache[r].em)return dZe(Z2.cache[r],s);var l=t.canvas||Z2.canvas,u=l.getContext("2d"),f={upper:t.upper!==void 0?t.upper:"H",lower:t.lower!==void 0?t.lower:"x",descent:t.descent!==void 0?t.descent:"p",ascent:t.ascent!==void 0?t.ascent:"h",tittle:t.tittle!==void 0?t.tittle:"i",overshoot:t.overshoot!==void 0?t.overshoot:"O"},c=Math.ceil(i*1.5);l.height=c,l.width=c*.5,u.font=o;var h="H",d={top:0};u.clearRect(0,0,c,c),u.textBaseline="top",u.fillStyle="black",u.fillText(h,0,0);var p=Fm(u.getImageData(0,0,c,c));u.clearRect(0,0,c,c),u.textBaseline="bottom",u.fillText(h,0,c);var v=Fm(u.getImageData(0,0,c,c));d.lineHeight=d.bottom=c-v+p,u.clearRect(0,0,c,c),u.textBaseline="alphabetic",u.fillText(h,0,c);var y=Fm(u.getImageData(0,0,c,c)),m=c-y-1+p;d.baseline=d.alphabetic=m,u.clearRect(0,0,c,c),u.textBaseline="middle",u.fillText(h,0,c*.5);var w=Fm(u.getImageData(0,0,c,c));d.median=d.middle=c-w-1+p-c*.5,u.clearRect(0,0,c,c),u.textBaseline="hanging",u.fillText(h,0,c*.5);var _=Fm(u.getImageData(0,0,c,c));d.hanging=c-_-1+p-c*.5,u.clearRect(0,0,c,c),u.textBaseline="ideographic",u.fillText(h,0,c);var b=Fm(u.getImageData(0,0,c,c));if(d.ideographic=c-b-1+p,f.upper&&(u.clearRect(0,0,c,c),u.textBaseline="top",u.fillText(f.upper,0,0),d.upper=Fm(u.getImageData(0,0,c,c)),d.capHeight=d.baseline-d.upper),f.lower&&(u.clearRect(0,0,c,c),u.textBaseline="top",u.fillText(f.lower,0,0),d.lower=Fm(u.getImageData(0,0,c,c)),d.xHeight=d.baseline-d.lower),f.tittle&&(u.clearRect(0,0,c,c),u.textBaseline="top",u.fillText(f.tittle,0,0),d.tittle=Fm(u.getImageData(0,0,c,c))),f.ascent&&(u.clearRect(0,0,c,c),u.textBaseline="top",u.fillText(f.ascent,0,0),d.ascent=Fm(u.getImageData(0,0,c,c))),f.descent&&(u.clearRect(0,0,c,c),u.textBaseline="top",u.fillText(f.descent,0,0),d.descent=pZe(u.getImageData(0,0,c,c))),f.overshoot){u.clearRect(0,0,c,c),u.textBaseline="top",u.fillText(f.overshoot,0,0);var M=pZe(u.getImageData(0,0,c,c));d.overshoot=M-m}for(var x in d)d[x]/=i;return d.em=i,Z2.cache[r]=d,dZe(d,s)}function dZe(e,t){var r={};typeof t=="string"&&(t=e[t]);for(var i in e)i!=="em"&&(r[i]=e[i]-t);return r}function Fm(e){for(var t=e.height,r=e.data,i=3;i0;i-=4)if(r[i]!==0)return Math.floor((i-3)*.25/t)}});var bZe=K((Hri,xZe)=>{"use strict";var f5=FXe(),kvr=Cm(),Cvr=Gte(),Dvr=RXe(),Fvr=Ste(),Xte=WE(),Lvr=qXe(),K2=iZe(),Pvr=J4(),zvr=aZe(),Ivr=$te(),Rvr=uZe(),Bvr=hZe(),qvr=Sh(),Ovr=mZe(),Nvr=G_(),Vvr=jte(),yZe=Vvr.nextPow2,gZe=new Fvr,SB=!1;document.body&&(MB=document.body.appendChild(document.createElement("div")),MB.style.font="italic small-caps bold condensed 16px/2 cursive",getComputedStyle(MB).fontStretch&&(SB=!0),document.body.removeChild(MB));var MB,df=function(t){Uvr(t)?(t={regl:t},this.gl=t.regl._gl):this.gl=Dvr(t),this.shader=gZe.get(this.gl),this.shader?this.regl=this.shader.regl:this.regl=t.regl||Cvr({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(),gZe.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(zvr(t)?t:{})};df.prototype.createShader=function(){var t=this.regl,r=t({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:t.prop("count"),offset:t.prop("offset"),attributes:{charOffset:{offset:4,stride:8,buffer:t.this("sizeBuffer")},width:{offset:0,stride:8,buffer:t.this("sizeBuffer")},char:t.this("charBuffer"),position:t.this("position")},uniforms:{atlasSize:function(n,a){return[a.atlas.width,a.atlas.height]},atlasDim:function(n,a){return[a.atlas.cols,a.atlas.rows]},atlas:function(n,a){return a.atlas.texture},charStep:function(n,a){return a.atlas.step},em:function(n,a){return a.atlas.em},color:t.prop("color"),opacity:t.prop("opacity"),viewport:t.this("viewportArray"),scale:t.this("scale"),align:t.prop("align"),baseline:t.prop("baseline"),translate:t.this("translate"),positionOffset:t.prop("positionOffset")},primitive:"points",viewport:t.this("viewport"),vert:` precision highp float; attribute float width, charOffset, char; attribute vec2 position; @@ -2706,9 +2706,9 @@ void main() { // color.rgb += (1. - color.rgb) * (1. - mask.rgb); gl_FragColor = color; - }`}),i={};return{regl:t,draw:r,atlas:i}};df.prototype.update=function(t){var r=this;if(typeof t=="string")t={text:t};else if(!t)return;t=gvr(t,{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),t.opacity!=null&&(Array.isArray(t.opacity)?this.opacity=t.opacity.map(function(Z){return parseFloat(Z)}):this.opacity=parseFloat(t.opacity)),t.viewport!=null&&(this.viewport=Avr(t.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]),t.kerning!=null&&(this.kerning=t.kerning),t.offset!=null&&(typeof t.offset=="number"&&(t.offset=[t.offset,0]),this.positionOffset=Dvr(t.offset)),t.direction&&(this.direction=t.direction),t.range&&(this.range=t.range,this.scale=[1/(t.range[2]-t.range[0]),1/(t.range[3]-t.range[1])],this.translate=[-t.range[0],-t.range[1]]),t.scale&&(this.scale=t.scale),t.translate&&(this.translate=t.translate),this.scale||(this.scale=[1/this.viewport.width,1/this.viewport.height]),this.translate||(this.translate=[0,0]),!this.font.length&&!t.font&&(t.font=df.baseFontSize+"px sans-serif");var i=!1,n=!1;if(t.font&&(Array.isArray(t.font)?t.font:[t.font]).forEach(function(Z,j){if(typeof Z=="string")try{Z=u5.parse(Z)}catch(de){Z=u5.parse(df.baseFontSize+"px "+Z)}else{var q=Z.style,Q=Z.weight,N=Z.stretch,V=Z.variant;Z=u5.parse(u5.stringify(Z)),q&&(Z.style=q),Q&&(Z.weight=Q),N&&(Z.stretch=N),V&&(Z.variant=V)}var J=u5.stringify({size:df.baseFontSize,family:Z.family,stretch:bB?Z.stretch:void 0,variant:Z.variant,weight:Z.weight,style:Z.style}),H=Mvr(Z.size),$=Math.round(H[0]*Svr(H[1]));if($!==r.fontSize[j]&&(n=!0,r.fontSize[j]=$),(!r.font[j]||J!=r.font[j].baseString)&&(i=!0,r.font[j]=df.fonts[J],!r.font[j])){var te=Z.family.join(", "),ie=[Z.style];Z.style!=Z.variant&&ie.push(Z.variant),Z.variant!=Z.weight&&ie.push(Z.weight),bB&&Z.weight!=Z.stretch&&ie.push(Z.stretch),r.font[j]={baseString:J,family:te,weight:Z.weight,stretch:Z.stretch,style:Z.style,variant:Z.variant,width:{},kerning:{},metrics:Cvr(te,{origin:"top",fontSize:df.baseFontSize,fontStyle:ie.join(" ")})},df.fonts[J]=r.font[j]}}),(i||n)&&this.font.forEach(function(Z,j){var q=u5.stringify({size:r.fontSize[j],family:Z.family,stretch:bB?Z.stretch:void 0,variant:Z.variant,weight:Z.weight,style:Z.style});if(r.fontAtlas[j]=r.shader.atlas[q],!r.fontAtlas[j]){var Q=Z.metrics;r.shader.atlas[q]=r.fontAtlas[j]={fontString:q,step:Math.ceil(r.fontSize[j]*Q.bottom*.5)*2,em:r.fontSize[j],cols:0,rows:0,height:0,width:0,chars:[],ids:{},texture:r.regl.texture()}}t.text==null&&(t.text=r.text)}),typeof t.text=="string"&&t.position&&t.position.length>2){for(var a=Array(t.position.length*.5),o=0;o2){for(var u=!t.position[0].length,f=Z2.mallocFloat(this.count*2),c=0,h=0;c1?r.align[j]:r.align[0]:r.align;if(typeof q=="number")return q;switch(q){case"right":case"end":return-Z;case"center":case"centre":case"middle":return-Z*.5}return 0})),this.baseline==null&&t.baseline==null&&(t.baseline=0),t.baseline!=null&&(this.baseline=t.baseline,Array.isArray(this.baseline)||(this.baseline=[this.baseline]),this.baselineOffset=this.baseline.map(function(Z,j){var q=(r.font[j]||r.font[0]).metrics,Q=0;return Q+=q.bottom*.5,typeof Z=="number"?Q+=Z-q.baseline:Q+=-q[Z],Q*=-1,Q})),t.color!=null)if(t.color||(t.color="transparent"),typeof t.color=="string"||!isNaN(t.color))this.color=Vte(t.color,"uint8");else{var L;if(typeof t.color[0]=="number"&&t.color.length>this.counts.length){var P=t.color.length;L=Z2.mallocUint8(P);for(var I=(t.color.subarray||t.color.slice).bind(t.color),F=0;F4||this.baselineOffset.length>1||this.align&&this.align.length>1||this.fontAtlas.length>1||this.positionOffset.length>2;if(O){var W=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(W);for(var X=0;X1?this.counts[X]:this.counts[0],offset:this.textOffsets.length>1?this.textOffsets[X]:this.textOffsets[0],color:this.color?this.color.length<=4?this.color:this.color.subarray(X*4,X*4+4):[0,0,0,255],opacity:Array.isArray(this.opacity)?this.opacity[X]:this.opacity,baseline:this.baselineOffset[X]!=null?this.baselineOffset[X]:this.baselineOffset[0],align:this.align?this.alignOffset[X]!=null?this.alignOffset[X]:this.alignOffset[0]:0,atlas:this.fontAtlas[X]||this.fontAtlas[0],positionOffset:this.positionOffset.length>2?this.positionOffset.subarray(X*2,X*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=[]}};df.prototype.destroy=function(){};df.prototype.kerning=!0;df.prototype.position={constant:new Float32Array(2)};df.prototype.translate=null;df.prototype.scale=null;df.prototype.font=null;df.prototype.text="";df.prototype.positionOffset=[0,0];df.prototype.opacity=1;df.prototype.color=new Uint8Array([0,0,0,255]);df.prototype.alignOffset=[0,0];df.maxAtlasSize=1024;df.atlasCanvas=document.createElement("canvas");df.atlasContext=df.atlasCanvas.getContext("2d",{alpha:!1});df.baseFontSize=64;df.fonts={};function Lvr(e){return typeof e=="function"&&e._gl&&e.prop&&e.texture&&e.buffer}cZe.exports=df});var _B=K((Fri,dZe)=>{"use strict";var Pvr=KJ(),zvr=Ite();dZe.exports=function(t,r,i){var n=t._fullLayout,a=!0;return n._glcanvas.each(function(o){if(o.regl){o.regl.preloadCachedCode(i);return}if(!(o.pick&&!n._has("parcoords"))){try{o.regl=zvr({canvas:this,attributes:{antialias:!o.pick,preserveDrawingBuffer:!0},pixelRatio:t._context.plotGlPixelRatio||window.devicePixelRatio,extensions:r||[],cachedCode:i||{}})}catch(s){a=!1}o.regl||(a=!1),a&&this.addEventListener("webglcontextlost",function(s){t&&t.emit&&t.emit("plotly_webglcontextlost",{event:s,layer:o.key})},!1)}}),a||Pvr({container:n._glcontainer.node()}),a}});var Gte=K((Ute,xZe)=>{"use strict";var pZe=Gee(),vZe=_te(),Ivr=nXe(),mZe=hZe(),yZe=Mt(),Rvr=X1().selectMode,Bvr=_B(),qvr=ff(),Ovr=BW(),Nvr=Nee().styleTextSelection,gZe={};function Vvr(e,t,r,i){var n=e._size,a=e.width*i,o=e.height*i,s=n.l*i,l=n.b*i,u=n.r*i,f=n.t*i,c=n.w*i,h=n.h*i;return[s+t.domain[0]*c,l+r.domain[0]*h,a-u-(1-t.domain[1])*c,o-f-(1-r.domain[1])*h]}var Ute=xZe.exports=function(t,r,i){if(i.length){var n=t._fullLayout,a=r._scene,o=r.xaxis,s=r.yaxis,l,u;if(a){var f=Bvr(t,["ANGLE_instanced_arrays","OES_element_index_uint"],gZe);if(!f){a.init();return}var c=a.count,h=n._glcanvas.data()[0].regl;if(Ovr(t,r,i),a.dirty){if((a.line2d||a.error2d)&&!(a.scatter2d||a.fill2d||a.glText)&&h.clear({color:!0,depth:!0}),a.error2d===!0&&(a.error2d=Ivr(h)),a.line2d===!0&&(a.line2d=vZe(h)),a.scatter2d===!0&&(a.scatter2d=pZe(h)),a.fill2d===!0&&(a.fill2d=vZe(h)),a.glText===!0)for(a.glText=new Array(c),l=0;la.glText.length){var d=c-a.glText.length;for(l=0;lB&&(isNaN(z[O])||isNaN(z[O+1]));)O-=2;F.positions=z.slice(B,O+2)}return F}),a.line2d.update(a.lineOptions)),a.error2d){var y=(a.errorXOptions||[]).concat(a.errorYOptions||[]).map(function(F){return F||{positions:[],errors:[]}});a.error2d.update(y)}a.scatter2d&&a.scatter2d.update(a.markerOptions),a.fillOrder=yZe.repeat(null,c),a.fill2d&&(a.fillOptions=a.fillOptions.map(function(F,z){var B=i[z];if(!(!F||!B||!B[0]||!B[0].trace)){var O=B[0],W=O.trace,X=O.t,Z=a.lineOptions[z],j,q,Q=[];W._ownfill&&Q.push(z),W._nexttrace&&Q.push(z+1),Q.length&&(a.fillOrder[z]=Q);var N=[],V=Z&&Z.positions||X.positions,J,H;if(W.fill==="tozeroy"){for(J=0;JJ&&isNaN(V[H+1]);)H-=2;V[J+1]!==0&&(N=[V[J],0]),N=N.concat(V.slice(J,H+2)),V[H+1]!==0&&(N=N.concat([V[H],0]))}else if(W.fill==="tozerox"){for(J=0;JJ&&isNaN(V[H]);)H-=2;V[J]!==0&&(N=[0,V[J+1]]),N=N.concat(V.slice(J,H+2)),V[H]!==0&&(N=N.concat([0,V[H+1]]))}else if(W.fill==="toself"||W.fill==="tonext"){for(N=[],j=0,F.splitNull=!0,q=0;q-1;for(let[F]of i)if(F){var b=F.trace,M=F.t,x=M.index,A=b._length,T=M.x,g=M.y;if(b.selectedpoints||w||_){if(w||(w=!0),b.selectedpoints){var E=a.selectBatch[x]=b.selectedpoints,S={};for(u=0;u{"use strict";bZe.exports=function(t,r,i){"use strict";var n,a,o,s,l,u,f,c,h,d,p,v,y,m,w,_,b,M,x,A,T,g,E,S,C,k,D,L,P,I,F,z,B,O,W,X,Z,j,q,Q,N,V,J,H,$,te,ie,de,ge,Ie,Ce,le,re,Ee,we,oe,Y,ne,ye,U,se,Ae,be,me,ue,pe,ce,Be,$e,Ze,it;return n=t.gl,a=t.context,o=t.strings,s=t.next,l=t.current,u=t.draw,f=t.elements,c=t.buffer,h=t.shader,d=t.attributes,p=t.vao,v=t.uniforms,y=t.framebuffer,m=t.extensions,w=t.timer,_=t.isBufferArgs,b=s.blend_color,M=l.blend_color,x=s.blend_equation,A=l.blend_equation,T=s.blend_func,g=l.blend_func,E=s.depth_range,S=l.depth_range,C=s.colorMask,k=l.colorMask,D=s.polygonOffset_offset,L=l.polygonOffset_offset,P=s.sample_coverage,I=l.sample_coverage,F=s.stencil_func,z=l.stencil_func,B=s.stencil_opFront,O=l.stencil_opFront,W=s.stencil_opBack,X=l.stencil_opBack,Z=s.scissor_box,j=l.scissor_box,q=s.viewport,Q=l.viewport,N={points:0,point:0,lines:1,line:1,triangles:4,triangle:4,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},V={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},J={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},H={add:32774,subtract:32778,"reverse subtract":32779},$={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},te={int8:5120,int16:5122,int32:5124,uint8:5121,uint16:5123,uint32:5125,float:5126,float32:5126},ie={cw:2304,ccw:2305},de=s.blend_color,ge=l.blend_color,Ie=s.blend_equation,Ce=l.blend_equation,le=s.blend_func,re=l.blend_func,Ee=s.depth_range,we=l.depth_range,oe=s.colorMask,Y=l.colorMask,ne=s.polygonOffset_offset,ye=l.polygonOffset_offset,U=s.sample_coverage,se=l.sample_coverage,Ae=s.stencil_func,be=l.stencil_func,me=s.stencil_opFront,ue=l.stencil_opFront,pe=s.stencil_opBack,ce=l.stencil_opBack,Be=s.scissor_box,$e=l.scissor_box,Ze=s.viewport,it=l.viewport,{poll:function(){var nt,Ue,xe,Re,Qe,Pe,De,Ve,Le,Se,ze,st,ft,wt,At,Vt,Dt,yt,St,rr,Ke,at;l.dirty=!1,Ue=s.dither,xe=s.blend_enable,Re=s.depth_enable,Qe=s.cull_enable,Pe=s.polygonOffset_enable,De=s.sample_alpha,Ve=s.sample_enable,Le=s.stencil_enable,Se=s.scissor_enable,ze=s.depth_func,st=l.depth_func,ft=s.depth_mask,wt=l.depth_mask,At=s.cull_face,Vt=l.cull_face,Dt=s.frontFace,yt=l.frontFace,St=s.lineWidth,rr=l.lineWidth,Ke=s.stencil_mask,at=l.stencil_mask,nt=y.next,nt!==y.cur&&(nt?n.bindFramebuffer(36160,nt.framebuffer):n.bindFramebuffer(36160,null),y.cur=nt),Ue!==l.dither&&(Ue?n.enable(3024):n.disable(3024),l.dither=Ue),xe!==l.blend_enable&&(xe?n.enable(3042):n.disable(3042),l.blend_enable=xe),Re!==l.depth_enable&&(Re?n.enable(2929):n.disable(2929),l.depth_enable=Re),Qe!==l.cull_enable&&(Qe?n.enable(2884):n.disable(2884),l.cull_enable=Qe),Pe!==l.polygonOffset_enable&&(Pe?n.enable(32823):n.disable(32823),l.polygonOffset_enable=Pe),De!==l.sample_alpha&&(De?n.enable(32926):n.disable(32926),l.sample_alpha=De),Ve!==l.sample_enable&&(Ve?n.enable(32928):n.disable(32928),l.sample_enable=Ve),Le!==l.stencil_enable&&(Le?n.enable(2960):n.disable(2960),l.stencil_enable=Le),Se!==l.scissor_enable&&(Se?n.enable(3089):n.disable(3089),l.scissor_enable=Se),(de[0]!==ge[0]||de[1]!==ge[1]||de[2]!==ge[2]||de[3]!==ge[3])&&(n.blendColor(de[0],de[1],de[2],de[3]),ge[0]=de[0],ge[1]=de[1],ge[2]=de[2],ge[3]=de[3]),(Ie[0]!==Ce[0]||Ie[1]!==Ce[1])&&(n.blendEquationSeparate(Ie[0],Ie[1]),Ce[0]=Ie[0],Ce[1]=Ie[1]),(le[0]!==re[0]||le[1]!==re[1]||le[2]!==re[2]||le[3]!==re[3])&&(n.blendFuncSeparate(le[0],le[1],le[2],le[3]),re[0]=le[0],re[1]=le[1],re[2]=le[2],re[3]=le[3]),ze!==st&&(n.depthFunc(ze),l.depth_func=ze),(Ee[0]!==we[0]||Ee[1]!==we[1])&&(n.depthRange(Ee[0],Ee[1]),we[0]=Ee[0],we[1]=Ee[1]),ft!==wt&&(n.depthMask(ft),l.depth_mask=ft),(oe[0]!==Y[0]||oe[1]!==Y[1]||oe[2]!==Y[2]||oe[3]!==Y[3])&&(n.colorMask(oe[0],oe[1],oe[2],oe[3]),Y[0]=oe[0],Y[1]=oe[1],Y[2]=oe[2],Y[3]=oe[3]),At!==Vt&&(n.cullFace(At),l.cull_face=At),Dt!==yt&&(n.frontFace(Dt),l.frontFace=Dt),St!==rr&&(n.lineWidth(St),l.lineWidth=St),(ne[0]!==ye[0]||ne[1]!==ye[1])&&(n.polygonOffset(ne[0],ne[1]),ye[0]=ne[0],ye[1]=ne[1]),(U[0]!==se[0]||U[1]!==se[1])&&(n.sampleCoverage(U[0],U[1]),se[0]=U[0],se[1]=U[1]),Ke!==at&&(n.stencilMask(Ke),l.stencil_mask=Ke),(Ae[0]!==be[0]||Ae[1]!==be[1]||Ae[2]!==be[2])&&(n.stencilFunc(Ae[0],Ae[1],Ae[2]),be[0]=Ae[0],be[1]=Ae[1],be[2]=Ae[2]),(me[0]!==ue[0]||me[1]!==ue[1]||me[2]!==ue[2]||me[3]!==ue[3])&&(n.stencilOpSeparate(me[0],me[1],me[2],me[3]),ue[0]=me[0],ue[1]=me[1],ue[2]=me[2],ue[3]=me[3]),(pe[0]!==ce[0]||pe[1]!==ce[1]||pe[2]!==ce[2]||pe[3]!==ce[3])&&(n.stencilOpSeparate(pe[0],pe[1],pe[2],pe[3]),ce[0]=pe[0],ce[1]=pe[1],ce[2]=pe[2],ce[3]=pe[3]),(Be[0]!==$e[0]||Be[1]!==$e[1]||Be[2]!==$e[2]||Be[3]!==$e[3])&&(n.scissor(Be[0],Be[1],Be[2],Be[3]),$e[0]=Be[0],$e[1]=Be[1],$e[2]=Be[2],$e[3]=Be[3]),(Ze[0]!==it[0]||Ze[1]!==it[1]||Ze[2]!==it[2]||Ze[3]!==it[3])&&(n.viewport(Ze[0],Ze[1],Ze[2],Ze[3]),it[0]=Ze[0],it[1]=Ze[1],it[2]=Ze[2],it[3]=Ze[3])},refresh:function(){var nt,Ue,xe,Re,Qe,Pe,De,Ve,Le,Se,ze,st,ft,wt,At,Vt,Dt,yt,St,rr,Ke,at,lt,vt;l.dirty=!1,Re=s.dither,Qe=s.blend_enable,Pe=s.depth_enable,De=s.cull_enable,Ve=s.polygonOffset_enable,Le=s.sample_alpha,Se=s.sample_enable,ze=s.stencil_enable,st=s.scissor_enable,ft=s.depth_func,wt=l.depth_func,At=s.depth_mask,Vt=l.depth_mask,Dt=s.cull_face,yt=l.cull_face,St=s.frontFace,rr=l.frontFace,Ke=s.lineWidth,at=l.lineWidth,lt=s.stencil_mask,vt=l.stencil_mask,nt=y.next,nt?n.bindFramebuffer(36160,nt.framebuffer):n.bindFramebuffer(36160,null),y.cur=nt,Ue=d,xe=0;for(var We=0;We{"use strict";_Ze.exports=function(t,r,i,n,a,o,s,l,u,f,c,h,d,p,v,y,m,w,_,b,M,x,A,T,g,E,S,C,k,D,L,P,I,F,z,B,O,W,X,Z,j,q,Q,N,V,J,H,$,te,ie,de){"use strict";var ge,Ie,Ce,le,re,Ee,we,oe,Y,ne,ye,U,se,Ae,be,me,ue,pe,ce,Be,$e,Ze,it,nt,Ue,xe,Re,Qe,Pe,De,Ve,Le,Se,ze,st,ft,wt,At,Vt,Dt,yt,St,rr,Ke,at,lt,vt,We,ut;return ge=t.gl,Ie=t.context,Ce=t.strings,le=t.next,re=t.current,Ee=t.draw,we=t.elements,oe=t.buffer,Y=t.shader,ne=t.attributes,ye=t.vao,U=t.uniforms,se=t.framebuffer,Ae=t.extensions,be=t.timer,me=t.isBufferArgs,ue=le.blend_color,pe=re.blend_color,ce=le.blend_equation,Be=re.blend_equation,$e=le.blend_func,Ze=re.blend_func,it=le.depth_range,nt=re.depth_range,Ue=le.colorMask,xe=re.colorMask,Re=le.polygonOffset_offset,Qe=re.polygonOffset_offset,Pe=le.sample_coverage,De=re.sample_coverage,Ve=le.stencil_func,Le=re.stencil_func,Se=le.stencil_opFront,ze=re.stencil_opFront,st=le.stencil_opBack,ft=re.stencil_opBack,wt=le.scissor_box,At=re.scissor_box,Vt=le.viewport,Dt=re.viewport,yt={points:0,point:0,lines:1,line:1,triangles:4,triangle:4,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},St={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},rr={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},Ke={add:32774,subtract:32778,"reverse subtract":32779},at={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},lt={int8:5120,int16:5122,int32:5124,uint8:5121,uint16:5123,uint32:5125,float:5126,float32:5126},vt={cw:2304,ccw:2305},We={},We.stride=8,We.offset=8,ut={},ut.stride=8,ut.offset=8,{draw:function(kt){var $t,or,Lr,Er,hr,ni,Kr,si,Tr,vr,Hr,Di,gn,wr,qr,Ut,jt,pr,Ur,Sr,Cr,di,Fi,ir,Kt,Me,Xe,Ye,et,gt,bt,lr,Ct,ur,Ir,Rr,Nr,gi,ui,Qr,Ui,ln,Tt,_i,kn,ti,Fr,ji,na,mn,$n,Wi,Qi,_r,Yr,fi,aa,sn,ca,Kn,hn,Ta,tn,wi,rn,Ai,ea,qn,pi,Fn,Pa,dr,ai,Zi,Vi;if($t=Ae.angle_instanced_arrays,or=se.next,or!==se.cur&&(or?ge.bindFramebuffer(36160,or.framebuffer):ge.bindFramebuffer(36160,null),se.cur=or),re.dirty){var pa,Na,an,wn,Ra,ei,Yn,Ja,ja,ka,ki,pn,Va,Gi,Pr,ri,bn,Ri,vi,yr,Ti,Cn,Gr,Xn,nn,ta,Bi,On,Nn,ia,Jr,Ci;pa=le.dither,pa!==re.dither&&(pa?ge.enable(3024):ge.disable(3024),re.dither=pa),Na=le.depth_func,Na!==re.depth_func&&(ge.depthFunc(Na),re.depth_func=Na),an=it[0],wn=it[1],(an!==nt[0]||wn!==nt[1])&&(ge.depthRange(an,wn),nt[0]=an,nt[1]=wn),Ra=le.depth_mask,Ra!==re.depth_mask&&(ge.depthMask(Ra),re.depth_mask=Ra),ei=Ue[0],Yn=Ue[1],Ja=Ue[2],ja=Ue[3],(ei!==xe[0]||Yn!==xe[1]||Ja!==xe[2]||ja!==xe[3])&&(ge.colorMask(ei,Yn,Ja,ja),xe[0]=ei,xe[1]=Yn,xe[2]=Ja,xe[3]=ja),ka=le.cull_enable,ka!==re.cull_enable&&(ka?ge.enable(2884):ge.disable(2884),re.cull_enable=ka),ki=le.cull_face,ki!==re.cull_face&&(ge.cullFace(ki),re.cull_face=ki),pn=le.frontFace,pn!==re.frontFace&&(ge.frontFace(pn),re.frontFace=pn),Va=le.lineWidth,Va!==re.lineWidth&&(ge.lineWidth(Va),re.lineWidth=Va),Gi=le.polygonOffset_enable,Gi!==re.polygonOffset_enable&&(Gi?ge.enable(32823):ge.disable(32823),re.polygonOffset_enable=Gi),Pr=Re[0],ri=Re[1],(Pr!==Qe[0]||ri!==Qe[1])&&(ge.polygonOffset(Pr,ri),Qe[0]=Pr,Qe[1]=ri),bn=le.sample_alpha,bn!==re.sample_alpha&&(bn?ge.enable(32926):ge.disable(32926),re.sample_alpha=bn),Ri=le.sample_enable,Ri!==re.sample_enable&&(Ri?ge.enable(32928):ge.disable(32928),re.sample_enable=Ri),vi=Pe[0],yr=Pe[1],(vi!==De[0]||yr!==De[1])&&(ge.sampleCoverage(vi,yr),De[0]=vi,De[1]=yr),Ti=le.stencil_mask,Ti!==re.stencil_mask&&(ge.stencilMask(Ti),re.stencil_mask=Ti),Cn=Ve[0],Gr=Ve[1],Xn=Ve[2],(Cn!==Le[0]||Gr!==Le[1]||Xn!==Le[2])&&(ge.stencilFunc(Cn,Gr,Xn),Le[0]=Cn,Le[1]=Gr,Le[2]=Xn),nn=Se[0],ta=Se[1],Bi=Se[2],On=Se[3],(nn!==ze[0]||ta!==ze[1]||Bi!==ze[2]||On!==ze[3])&&(ge.stencilOpSeparate(nn,ta,Bi,On),ze[0]=nn,ze[1]=ta,ze[2]=Bi,ze[3]=On),Nn=st[0],ia=st[1],Jr=st[2],Ci=st[3],(Nn!==ft[0]||ia!==ft[1]||Jr!==ft[2]||Ci!==ft[3])&&(ge.stencilOpSeparate(Nn,ia,Jr,Ci),ft[0]=Nn,ft[1]=ia,ft[2]=Jr,ft[3]=Ci)}Lr=kt.viewport,Er=Lr.x|0,hr=Lr.y|0,ni="width"in Lr?Lr.width|0:Ie.framebufferWidth-Er,Kr="height"in Lr?Lr.height|0:Ie.framebufferHeight-hr,si=Ie.viewportWidth,Ie.viewportWidth=ni,Tr=Ie.viewportHeight,Ie.viewportHeight=Kr,ge.viewport(Er,hr,ni,Kr),Dt[0]=Er,Dt[1]=hr,Dt[2]=ni,Dt[3]=Kr,ge.blendColor(0,0,0,0),pe[0]=0,pe[1]=0,pe[2]=0,pe[3]=0,i?ge.enable(3042):ge.disable(3042),re.blend_enable=i,ge.blendEquationSeparate(32774,32774),Be[0]=32774,Be[1]=32774,ge.blendFuncSeparate(770,771,773,1),Ze[0]=770,Ze[1]=771,Ze[2]=773,Ze[3]=1,n?ge.enable(2929):ge.disable(2929),re.depth_enable=n,vr=kt.viewport,Hr=vr.x|0,Di=vr.y|0,gn="width"in vr?vr.width|0:Ie.framebufferWidth-Hr,wr="height"in vr?vr.height|0:Ie.framebufferHeight-Di,ge.scissor(Hr,Di,gn,wr),At[0]=Hr,At[1]=Di,At[2]=gn,At[3]=wr,a?ge.enable(3089):ge.disable(3089),re.scissor_enable=a,o?ge.enable(2960):ge.disable(2960),re.stencil_enable=o,qr=re.profile,qr&&(Ut=performance.now(),r.count++),ge.useProgram(s.program),jt=Ae.angle_instanced_arrays,ye.setVAO(null),pr=kt.positionBuffer,We.buffer=pr,Ur=!1,Sr=1,Cr=0,di=0,Fi=0,ir=0,Kt=null,Me=0,Xe=!1,Ye=5126,et=0,gt=0,bt=0,me(We)?(Ur=!0,Kt=oe.createStream(34962,We),Ye=Kt.dtype):(Kt=oe.getBuffer(We),Kt?Ye=Kt.dtype:"constant"in We?(Sr=2,typeof We.constant=="number"?(Cr=We.constant,di=Fi=ir=0):(Cr=We.constant.length>0?We.constant[0]:0,di=We.constant.length>1?We.constant[1]:0,Fi=We.constant.length>2?We.constant[2]:0,ir=We.constant.length>3?We.constant[3]:0)):(me(We.buffer)?Kt=oe.createStream(34962,We.buffer):Kt=oe.getBuffer(We.buffer),Ye="type"in We?lt[We.type]:Kt.dtype,Xe=!!We.normalized,Me=We.size|0,et=We.offset|0,gt=We.stride|0,bt=We.divisor|0)),lr=l.location,Ct=ne[lr],Sr===1?(Ct.buffer||ge.enableVertexAttribArray(lr),ur=Me||2,(Ct.type!==Ye||Ct.size!==ur||Ct.buffer!==Kt||Ct.normalized!==Xe||Ct.offset!==et||Ct.stride!==gt)&&(ge.bindBuffer(34962,Kt.buffer),ge.vertexAttribPointer(lr,ur,Ye,Xe,gt,et),Ct.type=Ye,Ct.size=ur,Ct.buffer=Kt,Ct.normalized=Xe,Ct.offset=et,Ct.stride=gt),Ct.divisor!==bt&&(jt.vertexAttribDivisorANGLE(lr,bt),Ct.divisor=bt)):(Ct.buffer&&(ge.disableVertexAttribArray(lr),Ct.buffer=null),(Ct.x!==Cr||Ct.y!==di||Ct.z!==Fi||Ct.w!==ir)&&(ge.vertexAttrib4f(lr,Cr,di,Fi,ir),Ct.x=Cr,Ct.y=di,Ct.z=Fi,Ct.w=ir)),Ir=kt.positionFractBuffer,ut.buffer=Ir,Rr=!1,Nr=1,gi=0,ui=0,Qr=0,Ui=0,ln=null,Tt=0,_i=!1,kn=5126,ti=0,Fr=0,ji=0,me(ut)?(Rr=!0,ln=oe.createStream(34962,ut),kn=ln.dtype):(ln=oe.getBuffer(ut),ln?kn=ln.dtype:"constant"in ut?(Nr=2,typeof ut.constant=="number"?(gi=ut.constant,ui=Qr=Ui=0):(gi=ut.constant.length>0?ut.constant[0]:0,ui=ut.constant.length>1?ut.constant[1]:0,Qr=ut.constant.length>2?ut.constant[2]:0,Ui=ut.constant.length>3?ut.constant[3]:0)):(me(ut.buffer)?ln=oe.createStream(34962,ut.buffer):ln=oe.getBuffer(ut.buffer),kn="type"in ut?lt[ut.type]:ln.dtype,_i=!!ut.normalized,Tt=ut.size|0,ti=ut.offset|0,Fr=ut.stride|0,ji=ut.divisor|0)),na=u.location,mn=ne[na],Nr===1?(mn.buffer||ge.enableVertexAttribArray(na),$n=Tt||2,(mn.type!==kn||mn.size!==$n||mn.buffer!==ln||mn.normalized!==_i||mn.offset!==ti||mn.stride!==Fr)&&(ge.bindBuffer(34962,ln.buffer),ge.vertexAttribPointer(na,$n,kn,_i,Fr,ti),mn.type=kn,mn.size=$n,mn.buffer=ln,mn.normalized=_i,mn.offset=ti,mn.stride=Fr),mn.divisor!==ji&&(jt.vertexAttribDivisorANGLE(na,ji),mn.divisor=ji)):(mn.buffer&&(ge.disableVertexAttribArray(na),mn.buffer=null),(mn.x!==gi||mn.y!==ui||mn.z!==Qr||mn.w!==Ui)&&(ge.vertexAttrib4f(na,gi,ui,Qr,Ui),mn.x=gi,mn.y=ui,mn.z=Qr,mn.w=Ui)),Wi=kt.fill,Qi=Wi[0],_r=Wi[1],Yr=Wi[2],fi=Wi[3],ge.uniform4f(f.location,Qi,_r,Yr,fi),aa=kt.id,ge.uniform1f(c.location,aa),sn=kt.opacity,ge.uniform1f(h.location,sn),ca=kt.scale,Kn=ca[0],hn=ca[1],ge.uniform2f(d.location,Kn,hn),Ta=kt.scaleFract,tn=Ta[0],wi=Ta[1],ge.uniform2f(p.location,tn,wi),rn=kt.translate,Ai=rn[0],ea=rn[1],ge.uniform2f(v.location,Ai,ea),qn=kt.translateFract,pi=qn[0],Fn=qn[1],ge.uniform2f(y.location,pi,Fn),Pa=m.call(this,Ie,kt,0),dr=null,ai=me(Pa),ai?dr=we.createStream(Pa):dr=we.getElements(Pa),dr&&ge.bindBuffer(34963,dr.buffer.buffer),Zi=dr?dr.vertCount:-1,Zi&&(Vi=Ee.instances,Vi>0?dr?jt.drawElementsInstancedANGLE(4,Zi,dr.type,0<<(dr.type-5121>>1),Vi):jt.drawArraysInstancedANGLE(4,0,Zi,Vi):Vi<0&&(dr?ge.drawElements(4,Zi,dr.type,0<<(dr.type-5121>>1)):ge.drawArrays(4,0,Zi)),re.dirty=!0,ye.setVAO(null),Ie.viewportWidth=si,Ie.viewportHeight=Tr,qr&&(r.cpuTime+=performance.now()-Ut),Ur&&oe.destroyStream(Kt),Rr&&oe.destroyStream(ln),ai&&we.destroyStream(dr))},scope:function(kt,$t,or){var Lr,Er,hr,ni,Kr,si,Tr,vr,Hr,Di,gn,wr,qr,Ut,jt,pr,Ur,Sr,Cr,di,Fi,ir,Kt,Me,Xe,Ye,et,gt,bt,lr,Ct,ur,Ir,Rr,Nr,gi,ui,Qr,Ui,ln,Tt,_i,kn,ti,Fr,ji,na,mn,$n,Wi,Qi,_r,Yr,fi,aa,sn,ca,Kn,hn,Ta,tn,wi,rn,Ai,ea,qn,pi,Fn,Pa,dr,ai,Zi,Vi,pa,Na,an,wn,Ra,ei,Yn,Ja,ja,ka,ki,pn,Va,Gi,Pr,ri,bn,Ri,vi,yr,Ti,Cn,Gr,Xn,nn,ta,Bi,On,Nn,ia,Jr,Ci,un,Dn,Vn,vn,Br,Li,Ua,yi,Ma,Ba,Bn;Lr=kt.viewport,Er=Lr.x|0,hr=Lr.y|0,ni="width"in Lr?Lr.width|0:Ie.framebufferWidth-Er,Kr="height"in Lr?Lr.height|0:Ie.framebufferHeight-hr,si=Ie.viewportWidth,Ie.viewportWidth=ni,Tr=Ie.viewportHeight,Ie.viewportHeight=Kr,vr=Vt[0],Vt[0]=Er,Hr=Vt[1],Vt[1]=hr,Di=Vt[2],Vt[2]=ni,gn=Vt[3],Vt[3]=Kr,wr=ue[0],ue[0]=w,qr=ue[1],ue[1]=_,Ut=ue[2],ue[2]=b,jt=ue[3],ue[3]=M,pr=le.blend_enable,le.blend_enable=x,Ur=ce[0],ce[0]=A,Sr=ce[1],ce[1]=T,Cr=$e[0],$e[0]=g,di=$e[1],$e[1]=E,Fi=$e[2],$e[2]=S,ir=$e[3],$e[3]=C,Kt=le.depth_enable,le.depth_enable=k,Me=kt.viewport,Xe=Me.x|0,Ye=Me.y|0,et="width"in Me?Me.width|0:Ie.framebufferWidth-Xe,gt="height"in Me?Me.height|0:Ie.framebufferHeight-Ye,bt=wt[0],wt[0]=Xe,lr=wt[1],wt[1]=Ye,Ct=wt[2],wt[2]=et,ur=wt[3],wt[3]=gt,Ir=le.scissor_enable,le.scissor_enable=D,Rr=le.stencil_enable,le.stencil_enable=L,Nr=re.profile,Nr&&(gi=performance.now(),r.count++),ui=m.call(this,Ie,kt,or),Qr=null,Ui=me(ui),Ui?Qr=we.createStream(ui):Qr=we.getElements(ui),ln=Ee.elements,Ee.elements=Qr,Tt=Ee.offset,Ee.offset=P,_i=Qr?Qr.vertCount:-1,kn=Ee.count,Ee.count=_i,ti=Ee.primitive,Ee.primitive=I,Fr=kt.scale,ji=U[F],U[F]=Fr,na=kt.fill,mn=U[z],U[z]=na,$n=kt.scaleFract,Wi=U[B],U[B]=$n,Qi=kt.translateFract,_r=U[O],U[O]=Qi,Yr=kt.translate,fi=U[W],U[W]=Yr,aa=kt.opacity,sn=U[X],U[X]=aa,ca=Ie.pixelRatio,Kn=U[Z],U[Z]=ca,hn=kt.id,Ta=U[j],U[j]=hn,tn=q.call(this,Ie,kt,or),wi=U[Q],U[Q]=tn,rn=kt.positionBuffer,We.buffer=rn,Ai=!1,ea=1,qn=0,pi=0,Fn=0,Pa=0,dr=null,ai=0,Zi=!1,Vi=5126,pa=0,Na=0,an=0,me(We)?(Ai=!0,dr=oe.createStream(34962,We),Vi=dr.dtype):(dr=oe.getBuffer(We),dr?Vi=dr.dtype:"constant"in We?(ea=2,typeof We.constant=="number"?(qn=We.constant,pi=Fn=Pa=0):(qn=We.constant.length>0?We.constant[0]:0,pi=We.constant.length>1?We.constant[1]:0,Fn=We.constant.length>2?We.constant[2]:0,Pa=We.constant.length>3?We.constant[3]:0)):(me(We.buffer)?dr=oe.createStream(34962,We.buffer):dr=oe.getBuffer(We.buffer),Vi="type"in We?lt[We.type]:dr.dtype,Zi=!!We.normalized,ai=We.size|0,pa=We.offset|0,Na=We.stride|0,an=We.divisor|0)),wn=N.state,N.state=ea,Ra=N.x,N.x=qn,ei=N.y,N.y=pi,Yn=N.z,N.z=Fn,Ja=N.w,N.w=Pa,ja=N.buffer,N.buffer=dr,ka=N.size,N.size=ai,ki=N.normalized,N.normalized=Zi,pn=N.type,N.type=Vi,Va=N.offset,N.offset=pa,Gi=N.stride,N.stride=Na,Pr=N.divisor,N.divisor=an,ri=kt.positionFractBuffer,ut.buffer=ri,bn=!1,Ri=1,vi=0,yr=0,Ti=0,Cn=0,Gr=null,Xn=0,nn=!1,ta=5126,Bi=0,On=0,Nn=0,me(ut)?(bn=!0,Gr=oe.createStream(34962,ut),ta=Gr.dtype):(Gr=oe.getBuffer(ut),Gr?ta=Gr.dtype:"constant"in ut?(Ri=2,typeof ut.constant=="number"?(vi=ut.constant,yr=Ti=Cn=0):(vi=ut.constant.length>0?ut.constant[0]:0,yr=ut.constant.length>1?ut.constant[1]:0,Ti=ut.constant.length>2?ut.constant[2]:0,Cn=ut.constant.length>3?ut.constant[3]:0)):(me(ut.buffer)?Gr=oe.createStream(34962,ut.buffer):Gr=oe.getBuffer(ut.buffer),ta="type"in ut?lt[ut.type]:Gr.dtype,nn=!!ut.normalized,Xn=ut.size|0,Bi=ut.offset|0,On=ut.stride|0,Nn=ut.divisor|0)),ia=V.state,V.state=Ri,Jr=V.x,V.x=vi,Ci=V.y,V.y=yr,un=V.z,V.z=Ti,Dn=V.w,V.w=Cn,Vn=V.buffer,V.buffer=Gr,vn=V.size,V.size=Xn,Br=V.normalized,V.normalized=nn,Li=V.type,V.type=ta,Ua=V.offset,V.offset=Bi,yi=V.stride,V.stride=On,Ma=V.divisor,V.divisor=Nn,Ba=Y.vert,Y.vert=J,Bn=Y.frag,Y.frag=H,re.dirty=!0,$t(Ie,kt,or),Ie.viewportWidth=si,Ie.viewportHeight=Tr,Vt[0]=vr,Vt[1]=Hr,Vt[2]=Di,Vt[3]=gn,ue[0]=wr,ue[1]=qr,ue[2]=Ut,ue[3]=jt,le.blend_enable=pr,ce[0]=Ur,ce[1]=Sr,$e[0]=Cr,$e[1]=di,$e[2]=Fi,$e[3]=ir,le.depth_enable=Kt,wt[0]=bt,wt[1]=lr,wt[2]=Ct,wt[3]=ur,le.scissor_enable=Ir,le.stencil_enable=Rr,Nr&&(r.cpuTime+=performance.now()-gi),Ui&&we.destroyStream(Qr),Ee.elements=ln,Ee.offset=Tt,Ee.count=kn,Ee.primitive=ti,U[F]=ji,U[z]=mn,U[B]=Wi,U[O]=_r,U[W]=fi,U[X]=sn,U[Z]=Kn,U[j]=Ta,U[Q]=wi,Ai&&oe.destroyStream(dr),N.state=wn,N.x=Ra,N.y=ei,N.z=Yn,N.w=Ja,N.buffer=ja,N.size=ka,N.normalized=ki,N.type=pn,N.offset=Va,N.stride=Gi,N.divisor=Pr,bn&&oe.destroyStream(Gr),V.state=ia,V.x=Jr,V.y=Ci,V.z=un,V.w=Dn,V.buffer=Vn,V.size=vn,V.normalized=Br,V.type=Li,V.offset=Ua,V.stride=yi,V.divisor=Ma,Y.vert=Ba,Y.frag=Bn,re.dirty=!0},batch:function(kt,$t){var or,Lr,Er,hr,ni,Kr,si;if(or=Ae.angle_instanced_arrays,Lr=se.next,Lr!==se.cur&&(Lr?ge.bindFramebuffer(36160,Lr.framebuffer):ge.bindFramebuffer(36160,null),se.cur=Lr),re.dirty){var Tr,vr,Hr,Di,gn,wr,qr,Ut,jt,pr,Ur,Sr,Cr,di,Fi,ir,Kt,Me,Xe,Ye,et,gt,bt,lr,Ct,ur,Ir,Rr,Nr,gi,ui,Qr;Tr=le.dither,Tr!==re.dither&&(Tr?ge.enable(3024):ge.disable(3024),re.dither=Tr),vr=le.depth_func,vr!==re.depth_func&&(ge.depthFunc(vr),re.depth_func=vr),Hr=it[0],Di=it[1],(Hr!==nt[0]||Di!==nt[1])&&(ge.depthRange(Hr,Di),nt[0]=Hr,nt[1]=Di),gn=le.depth_mask,gn!==re.depth_mask&&(ge.depthMask(gn),re.depth_mask=gn),wr=Ue[0],qr=Ue[1],Ut=Ue[2],jt=Ue[3],(wr!==xe[0]||qr!==xe[1]||Ut!==xe[2]||jt!==xe[3])&&(ge.colorMask(wr,qr,Ut,jt),xe[0]=wr,xe[1]=qr,xe[2]=Ut,xe[3]=jt),pr=le.cull_enable,pr!==re.cull_enable&&(pr?ge.enable(2884):ge.disable(2884),re.cull_enable=pr),Ur=le.cull_face,Ur!==re.cull_face&&(ge.cullFace(Ur),re.cull_face=Ur),Sr=le.frontFace,Sr!==re.frontFace&&(ge.frontFace(Sr),re.frontFace=Sr),Cr=le.lineWidth,Cr!==re.lineWidth&&(ge.lineWidth(Cr),re.lineWidth=Cr),di=le.polygonOffset_enable,di!==re.polygonOffset_enable&&(di?ge.enable(32823):ge.disable(32823),re.polygonOffset_enable=di),Fi=Re[0],ir=Re[1],(Fi!==Qe[0]||ir!==Qe[1])&&(ge.polygonOffset(Fi,ir),Qe[0]=Fi,Qe[1]=ir),Kt=le.sample_alpha,Kt!==re.sample_alpha&&(Kt?ge.enable(32926):ge.disable(32926),re.sample_alpha=Kt),Me=le.sample_enable,Me!==re.sample_enable&&(Me?ge.enable(32928):ge.disable(32928),re.sample_enable=Me),Xe=Pe[0],Ye=Pe[1],(Xe!==De[0]||Ye!==De[1])&&(ge.sampleCoverage(Xe,Ye),De[0]=Xe,De[1]=Ye),et=le.stencil_mask,et!==re.stencil_mask&&(ge.stencilMask(et),re.stencil_mask=et),gt=Ve[0],bt=Ve[1],lr=Ve[2],(gt!==Le[0]||bt!==Le[1]||lr!==Le[2])&&(ge.stencilFunc(gt,bt,lr),Le[0]=gt,Le[1]=bt,Le[2]=lr),Ct=Se[0],ur=Se[1],Ir=Se[2],Rr=Se[3],(Ct!==ze[0]||ur!==ze[1]||Ir!==ze[2]||Rr!==ze[3])&&(ge.stencilOpSeparate(Ct,ur,Ir,Rr),ze[0]=Ct,ze[1]=ur,ze[2]=Ir,ze[3]=Rr),Nr=st[0],gi=st[1],ui=st[2],Qr=st[3],(Nr!==ft[0]||gi!==ft[1]||ui!==ft[2]||Qr!==ft[3])&&(ge.stencilOpSeparate(Nr,gi,ui,Qr),ft[0]=Nr,ft[1]=gi,ft[2]=ui,ft[3]=Qr)}ge.blendColor(0,0,0,0),pe[0]=0,pe[1]=0,pe[2]=0,pe[3]=0,$?ge.enable(3042):ge.disable(3042),re.blend_enable=$,ge.blendEquationSeparate(32774,32774),Be[0]=32774,Be[1]=32774,ge.blendFuncSeparate(770,771,773,1),Ze[0]=770,Ze[1]=771,Ze[2]=773,Ze[3]=1,te?ge.enable(2929):ge.disable(2929),re.depth_enable=te,ie?ge.enable(3089):ge.disable(3089),re.scissor_enable=ie,de?ge.enable(2960):ge.disable(2960),re.stencil_enable=de,Er=re.profile,Er&&(hr=performance.now(),r.count+=$t),ge.useProgram(s.program),ni=Ae.angle_instanced_arrays;var Ui;for(ye.setVAO(null),Ui=Ee.instances,Kr=0;Kr<$t;++Kr){si=kt[Kr];var ln,Tt,_i,kn,ti,Fr,ji,na,mn,$n,Wi,Qi,_r,Yr,fi,aa,sn,ca,Kn,hn,Ta,tn,wi,rn,Ai,ea,qn,pi,Fn,Pa,dr,ai,Zi,Vi,pa,Na,an,wn,Ra,ei,Yn,Ja,ja,ka,ki,pn,Va,Gi,Pr,ri,bn,Ri,vi,yr,Ti,Cn,Gr,Xn,nn,ta,Bi,On,Nn,ia,Jr,Ci,un,Dn,Vn,vn,Br,Li,Ua,yi,Ma,Ba,Bn,Hi,yn,jn,Un,zi,xr;ln=si.viewport,Tt=ln.x|0,_i=ln.y|0,kn="width"in ln?ln.width|0:Ie.framebufferWidth-Tt,ti="height"in ln?ln.height|0:Ie.framebufferHeight-_i,Fr=Ie.viewportWidth,Ie.viewportWidth=kn,ji=Ie.viewportHeight,Ie.viewportHeight=ti,ge.viewport(Tt,_i,kn,ti),Dt[0]=Tt,Dt[1]=_i,Dt[2]=kn,Dt[3]=ti,na=si.viewport,mn=na.x|0,$n=na.y|0,Wi="width"in na?na.width|0:Ie.framebufferWidth-mn,Qi="height"in na?na.height|0:Ie.framebufferHeight-$n,ge.scissor(mn,$n,Wi,Qi),At[0]=mn,At[1]=$n,At[2]=Wi,At[3]=Qi,_r=si.positionBuffer,We.buffer=_r,Yr=!1,fi=1,aa=0,sn=0,ca=0,Kn=0,hn=null,Ta=0,tn=!1,wi=5126,rn=0,Ai=0,ea=0,me(We)?(Yr=!0,hn=oe.createStream(34962,We),wi=hn.dtype):(hn=oe.getBuffer(We),hn?wi=hn.dtype:"constant"in We?(fi=2,typeof We.constant=="number"?(aa=We.constant,sn=ca=Kn=0):(aa=We.constant.length>0?We.constant[0]:0,sn=We.constant.length>1?We.constant[1]:0,ca=We.constant.length>2?We.constant[2]:0,Kn=We.constant.length>3?We.constant[3]:0)):(me(We.buffer)?hn=oe.createStream(34962,We.buffer):hn=oe.getBuffer(We.buffer),wi="type"in We?lt[We.type]:hn.dtype,tn=!!We.normalized,Ta=We.size|0,rn=We.offset|0,Ai=We.stride|0,ea=We.divisor|0)),qn=l.location,pi=ne[qn],fi===1?(pi.buffer||ge.enableVertexAttribArray(qn),Fn=Ta||2,(pi.type!==wi||pi.size!==Fn||pi.buffer!==hn||pi.normalized!==tn||pi.offset!==rn||pi.stride!==Ai)&&(ge.bindBuffer(34962,hn.buffer),ge.vertexAttribPointer(qn,Fn,wi,tn,Ai,rn),pi.type=wi,pi.size=Fn,pi.buffer=hn,pi.normalized=tn,pi.offset=rn,pi.stride=Ai),pi.divisor!==ea&&(ni.vertexAttribDivisorANGLE(qn,ea),pi.divisor=ea)):(pi.buffer&&(ge.disableVertexAttribArray(qn),pi.buffer=null),(pi.x!==aa||pi.y!==sn||pi.z!==ca||pi.w!==Kn)&&(ge.vertexAttrib4f(qn,aa,sn,ca,Kn),pi.x=aa,pi.y=sn,pi.z=ca,pi.w=Kn)),Pa=si.positionFractBuffer,ut.buffer=Pa,dr=!1,ai=1,Zi=0,Vi=0,pa=0,Na=0,an=null,wn=0,Ra=!1,ei=5126,Yn=0,Ja=0,ja=0,me(ut)?(dr=!0,an=oe.createStream(34962,ut),ei=an.dtype):(an=oe.getBuffer(ut),an?ei=an.dtype:"constant"in ut?(ai=2,typeof ut.constant=="number"?(Zi=ut.constant,Vi=pa=Na=0):(Zi=ut.constant.length>0?ut.constant[0]:0,Vi=ut.constant.length>1?ut.constant[1]:0,pa=ut.constant.length>2?ut.constant[2]:0,Na=ut.constant.length>3?ut.constant[3]:0)):(me(ut.buffer)?an=oe.createStream(34962,ut.buffer):an=oe.getBuffer(ut.buffer),ei="type"in ut?lt[ut.type]:an.dtype,Ra=!!ut.normalized,wn=ut.size|0,Yn=ut.offset|0,Ja=ut.stride|0,ja=ut.divisor|0)),ka=u.location,ki=ne[ka],ai===1?(ki.buffer||ge.enableVertexAttribArray(ka),pn=wn||2,(ki.type!==ei||ki.size!==pn||ki.buffer!==an||ki.normalized!==Ra||ki.offset!==Yn||ki.stride!==Ja)&&(ge.bindBuffer(34962,an.buffer),ge.vertexAttribPointer(ka,pn,ei,Ra,Ja,Yn),ki.type=ei,ki.size=pn,ki.buffer=an,ki.normalized=Ra,ki.offset=Yn,ki.stride=Ja),ki.divisor!==ja&&(ni.vertexAttribDivisorANGLE(ka,ja),ki.divisor=ja)):(ki.buffer&&(ge.disableVertexAttribArray(ka),ki.buffer=null),(ki.x!==Zi||ki.y!==Vi||ki.z!==pa||ki.w!==Na)&&(ge.vertexAttrib4f(ka,Zi,Vi,pa,Na),ki.x=Zi,ki.y=Vi,ki.z=pa,ki.w=Na)),Va=si.fill,Gi=Va[0],ri=Va[1],Ri=Va[2],yr=Va[3],(!Kr||Pr!==Gi||bn!==ri||vi!==Ri||Ti!==yr)&&(Pr=Gi,bn=ri,vi=Ri,Ti=yr,ge.uniform4f(f.location,Gi,ri,Ri,yr)),Cn=si.id,(!Kr||Gr!==Cn)&&(Gr=Cn,ge.uniform1f(c.location,Cn)),Xn=si.opacity,(!Kr||nn!==Xn)&&(nn=Xn,ge.uniform1f(h.location,Xn)),ta=si.scale,Bi=ta[0],Nn=ta[1],(!Kr||On!==Bi||ia!==Nn)&&(On=Bi,ia=Nn,ge.uniform2f(d.location,Bi,Nn)),Jr=si.scaleFract,Ci=Jr[0],Dn=Jr[1],(!Kr||un!==Ci||Vn!==Dn)&&(un=Ci,Vn=Dn,ge.uniform2f(p.location,Ci,Dn)),vn=si.translate,Br=vn[0],Ua=vn[1],(!Kr||Li!==Br||yi!==Ua)&&(Li=Br,yi=Ua,ge.uniform2f(v.location,Br,Ua)),Ma=si.translateFract,Ba=Ma[0],Hi=Ma[1],(!Kr||Bn!==Ba||yn!==Hi)&&(Bn=Ba,yn=Hi,ge.uniform2f(y.location,Ba,Hi)),jn=m.call(this,Ie,si,Kr),Un=null,zi=me(jn),zi?Un=we.createStream(jn):Un=we.getElements(jn),Un&&ge.bindBuffer(34963,Un.buffer.buffer),xr=Un?Un.vertCount:-1,xr&&(Ui>0?Un?ni.drawElementsInstancedANGLE(4,xr,Un.type,0<<(Un.type-5121>>1),Ui):ni.drawArraysInstancedANGLE(4,0,xr,Ui):Ui<0&&(Un?ge.drawElements(4,xr,Un.type,0<<(Un.type-5121>>1)):ge.drawArrays(4,0,xr)),Ie.viewportWidth=Fr,Ie.viewportHeight=ji,Yr&&oe.destroyStream(hn),dr&&oe.destroyStream(an),zi&&we.destroyStream(Un))}re.dirty=!0,ye.setVAO(null),Er&&(r.cpuTime+=performance.now()-hr)}}}});var TB=K((zri,wZe)=>{"use strict";wZe.exports=function(t,r,i,n,a,o,s,l,u,f,c,h,d,p,v,y,m,w,_,b,M,x,A,T,g,E,S,C,k,D,L,P,I,F,z,B,O,W,X,Z,j,q,Q,N,V,J,H,$,te,ie,de,ge,Ie,Ce,le,re,Ee,we,oe,Y,ne,ye,U,se,Ae,be,me){"use strict";var ue,pe,ce,Be,$e,Ze,it,nt,Ue,xe,Re,Qe,Pe,De,Ve,Le,Se,ze,st,ft,wt,At,Vt,Dt,yt,St,rr,Ke,at,lt,vt,We,ut,kt,$t,or,Lr,Er,hr,ni,Kr,si,Tr,vr,Hr,Di,gn,wr,qr,Ut,jt;return ue=t.gl,pe=t.context,ce=t.strings,Be=t.next,$e=t.current,Ze=t.draw,it=t.elements,nt=t.buffer,Ue=t.shader,xe=t.attributes,Re=t.vao,Qe=t.uniforms,Pe=t.framebuffer,De=t.extensions,Ve=t.timer,Le=t.isBufferArgs,Se=Be.blend_color,ze=$e.blend_color,st=Be.blend_equation,ft=$e.blend_equation,wt=Be.blend_func,At=$e.blend_func,Vt=Be.depth_range,Dt=$e.depth_range,yt=Be.colorMask,St=$e.colorMask,rr=Be.polygonOffset_offset,Ke=$e.polygonOffset_offset,at=Be.sample_coverage,lt=$e.sample_coverage,vt=Be.stencil_func,We=$e.stencil_func,ut=Be.stencil_opFront,kt=$e.stencil_opFront,$t=Be.stencil_opBack,or=$e.stencil_opBack,Lr=Be.scissor_box,Er=$e.scissor_box,hr=Be.viewport,ni=$e.viewport,Kr={points:0,point:0,lines:1,line:1,triangles:4,triangle:4,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},si={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},Tr={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},vr={add:32774,subtract:32778,"reverse subtract":32779},Hr={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},Di={int8:5120,int16:5122,int32:5124,uint8:5121,uint16:5123,uint32:5125,float:5126,float32:5126},gn={cw:2304,ccw:2305},wr={},wr.buffer=i,wr.divisor=1,qr={},qr.buffer=n,qr.divisor=1,Ut={},Ut.buffer=a,Ut.divisor=1,jt={},jt.buffer=o,jt.divisor=1,{draw:function(pr){var Ur,Sr,Cr,di,Fi,ir,Kt,Me,Xe,Ye,et,gt,bt,lr,Ct,ur,Ir,Rr,Nr,gi,ui,Qr,Ui,ln,Tt,_i,kn,ti,Fr,ji,na,mn,$n,Wi,Qi,_r,Yr,fi,aa,sn,ca,Kn,hn,Ta,tn,wi,rn,Ai,ea,qn,pi,Fn,Pa,dr,ai,Zi,Vi,pa,Na,an,wn,Ra,ei,Yn,Ja,ja,ka,ki,pn,Va,Gi,Pr,ri,bn,Ri,vi,yr,Ti,Cn,Gr,Xn,nn,ta,Bi,On,Nn,ia,Jr,Ci,un,Dn,Vn,vn,Br,Li,Ua,yi,Ma,Ba,Bn,Hi,yn,jn,Un,zi,xr,Ln,xn,da,Mi,Xr,Gn,to,Jn;if(Ur=De.angle_instanced_arrays,Sr=Pe.next,Sr!==Pe.cur&&(Sr?ue.bindFramebuffer(36160,Sr.framebuffer):ue.bindFramebuffer(36160,null),Pe.cur=Sr),$e.dirty){var ro,mo,Oa,Si,co,Pn,Fa,oa,Hn,va,ma,Sa,Ei,jr,An,Za,Ga,Ca,za,Wn,Xi,sa,Mo,ya,Qn,Tn,Da,zn,Ia,$i,In,qi,la;ro=Be.dither,ro!==$e.dither&&(ro?ue.enable(3024):ue.disable(3024),$e.dither=ro),mo=Be.depth_func,mo!==$e.depth_func&&(ue.depthFunc(mo),$e.depth_func=mo),Oa=Vt[0],Si=Vt[1],(Oa!==Dt[0]||Si!==Dt[1])&&(ue.depthRange(Oa,Si),Dt[0]=Oa,Dt[1]=Si),co=Be.depth_mask,co!==$e.depth_mask&&(ue.depthMask(co),$e.depth_mask=co),Pn=yt[0],Fa=yt[1],oa=yt[2],Hn=yt[3],(Pn!==St[0]||Fa!==St[1]||oa!==St[2]||Hn!==St[3])&&(ue.colorMask(Pn,Fa,oa,Hn),St[0]=Pn,St[1]=Fa,St[2]=oa,St[3]=Hn),va=Be.cull_enable,va!==$e.cull_enable&&(va?ue.enable(2884):ue.disable(2884),$e.cull_enable=va),ma=Be.cull_face,ma!==$e.cull_face&&(ue.cullFace(ma),$e.cull_face=ma),Sa=Be.frontFace,Sa!==$e.frontFace&&(ue.frontFace(Sa),$e.frontFace=Sa),Ei=Be.lineWidth,Ei!==$e.lineWidth&&(ue.lineWidth(Ei),$e.lineWidth=Ei),jr=Be.polygonOffset_enable,jr!==$e.polygonOffset_enable&&(jr?ue.enable(32823):ue.disable(32823),$e.polygonOffset_enable=jr),An=rr[0],Za=rr[1],(An!==Ke[0]||Za!==Ke[1])&&(ue.polygonOffset(An,Za),Ke[0]=An,Ke[1]=Za),Ga=Be.sample_alpha,Ga!==$e.sample_alpha&&(Ga?ue.enable(32926):ue.disable(32926),$e.sample_alpha=Ga),Ca=Be.sample_enable,Ca!==$e.sample_enable&&(Ca?ue.enable(32928):ue.disable(32928),$e.sample_enable=Ca),za=at[0],Wn=at[1],(za!==lt[0]||Wn!==lt[1])&&(ue.sampleCoverage(za,Wn),lt[0]=za,lt[1]=Wn),Xi=Be.stencil_enable,Xi!==$e.stencil_enable&&(Xi?ue.enable(2960):ue.disable(2960),$e.stencil_enable=Xi),sa=Be.stencil_mask,sa!==$e.stencil_mask&&(ue.stencilMask(sa),$e.stencil_mask=sa),Mo=vt[0],ya=vt[1],Qn=vt[2],(Mo!==We[0]||ya!==We[1]||Qn!==We[2])&&(ue.stencilFunc(Mo,ya,Qn),We[0]=Mo,We[1]=ya,We[2]=Qn),Tn=ut[0],Da=ut[1],zn=ut[2],Ia=ut[3],(Tn!==kt[0]||Da!==kt[1]||zn!==kt[2]||Ia!==kt[3])&&(ue.stencilOpSeparate(Tn,Da,zn,Ia),kt[0]=Tn,kt[1]=Da,kt[2]=zn,kt[3]=Ia),$i=$t[0],In=$t[1],qi=$t[2],la=$t[3],($i!==or[0]||In!==or[1]||qi!==or[2]||la!==or[3])&&(ue.stencilOpSeparate($i,In,qi,la),or[0]=$i,or[1]=In,or[2]=qi,or[3]=la)}Cr=pr.viewport,di=Cr.x|0,Fi=Cr.y|0,ir="width"in Cr?Cr.width|0:pe.framebufferWidth-di,Kt="height"in Cr?Cr.height|0:pe.framebufferHeight-Fi,Me=pe.viewportWidth,pe.viewportWidth=ir,Xe=pe.viewportHeight,pe.viewportHeight=Kt,ue.viewport(di,Fi,ir,Kt),ni[0]=di,ni[1]=Fi,ni[2]=ir,ni[3]=Kt,ue.blendColor(0,0,0,0),ze[0]=0,ze[1]=0,ze[2]=0,ze[3]=0,s?ue.enable(3042):ue.disable(3042),$e.blend_enable=s,ue.blendEquationSeparate(32774,32774),ft[0]=32774,ft[1]=32774,ue.blendFuncSeparate(770,771,773,1),At[0]=770,At[1]=771,At[2]=773,At[3]=1,l?ue.enable(2929):ue.disable(2929),$e.depth_enable=l,Ye=pr.viewport,et=Ye.x|0,gt=Ye.y|0,bt="width"in Ye?Ye.width|0:pe.framebufferWidth-et,lr="height"in Ye?Ye.height|0:pe.framebufferHeight-gt,ue.scissor(et,gt,bt,lr),Er[0]=et,Er[1]=gt,Er[2]=bt,Er[3]=lr,u?ue.enable(3089):ue.disable(3089),$e.scissor_enable=u,Ct=$e.profile,Ct&&(ur=performance.now(),r.count++),ue.useProgram(f.program),Ir=De.angle_instanced_arrays,Re.setVAO(null),Rr=h.location,Nr=xe[Rr],Nr.buffer||ue.enableVertexAttribArray(Rr),(Nr.type!==5126||Nr.size!==2||Nr.buffer!==c||Nr.normalized!==!1||Nr.offset!==16||Nr.stride!==24)&&(ue.bindBuffer(34962,c.buffer),ue.vertexAttribPointer(Rr,2,5126,!1,24,16),Nr.type=5126,Nr.size=2,Nr.buffer=c,Nr.normalized=!1,Nr.offset=16,Nr.stride=24),Nr.divisor!==0&&(Ir.vertexAttribDivisorANGLE(Rr,0),Nr.divisor=0),gi=d.call(this,pe,pr,0),wr.offset=gi,ui=!1,Qr=1,Ui=0,ln=0,Tt=0,_i=0,kn=null,ti=0,Fr=!1,ji=5126,na=0,mn=0,$n=0,Le(wr)?(ui=!0,kn=nt.createStream(34962,wr),ji=kn.dtype):(kn=nt.getBuffer(wr),kn?ji=kn.dtype:"constant"in wr?(Qr=2,typeof wr.constant=="number"?(Ui=wr.constant,ln=Tt=_i=0):(Ui=wr.constant.length>0?wr.constant[0]:0,ln=wr.constant.length>1?wr.constant[1]:0,Tt=wr.constant.length>2?wr.constant[2]:0,_i=wr.constant.length>3?wr.constant[3]:0)):(Le(wr.buffer)?kn=nt.createStream(34962,wr.buffer):kn=nt.getBuffer(wr.buffer),ji="type"in wr?Di[wr.type]:kn.dtype,Fr=!!wr.normalized,ti=wr.size|0,na=wr.offset|0,mn=wr.stride|0,$n=wr.divisor|0)),Wi=p.location,Qi=xe[Wi],Qr===1?(Qi.buffer||ue.enableVertexAttribArray(Wi),_r=ti||4,(Qi.type!==ji||Qi.size!==_r||Qi.buffer!==kn||Qi.normalized!==Fr||Qi.offset!==na||Qi.stride!==mn)&&(ue.bindBuffer(34962,kn.buffer),ue.vertexAttribPointer(Wi,_r,ji,Fr,mn,na),Qi.type=ji,Qi.size=_r,Qi.buffer=kn,Qi.normalized=Fr,Qi.offset=na,Qi.stride=mn),Qi.divisor!==$n&&(Ir.vertexAttribDivisorANGLE(Wi,$n),Qi.divisor=$n)):(Qi.buffer&&(ue.disableVertexAttribArray(Wi),Qi.buffer=null),(Qi.x!==Ui||Qi.y!==ln||Qi.z!==Tt||Qi.w!==_i)&&(ue.vertexAttrib4f(Wi,Ui,ln,Tt,_i),Qi.x=Ui,Qi.y=ln,Qi.z=Tt,Qi.w=_i)),Yr=v.location,fi=xe[Yr],fi.buffer||ue.enableVertexAttribArray(Yr),(fi.type!==5126||fi.size!==2||fi.buffer!==c||fi.normalized!==!1||fi.offset!==0||fi.stride!==24)&&(ue.bindBuffer(34962,c.buffer),ue.vertexAttribPointer(Yr,2,5126,!1,24,0),fi.type=5126,fi.size=2,fi.buffer=c,fi.normalized=!1,fi.offset=0,fi.stride=24),fi.divisor!==0&&(Ir.vertexAttribDivisorANGLE(Yr,0),fi.divisor=0),aa=y.call(this,pe,pr,0),jt.offset=aa,sn=!1,ca=1,Kn=0,hn=0,Ta=0,tn=0,wi=null,rn=0,Ai=!1,ea=5126,qn=0,pi=0,Fn=0,Le(jt)?(sn=!0,wi=nt.createStream(34962,jt),ea=wi.dtype):(wi=nt.getBuffer(jt),wi?ea=wi.dtype:"constant"in jt?(ca=2,typeof jt.constant=="number"?(Kn=jt.constant,hn=Ta=tn=0):(Kn=jt.constant.length>0?jt.constant[0]:0,hn=jt.constant.length>1?jt.constant[1]:0,Ta=jt.constant.length>2?jt.constant[2]:0,tn=jt.constant.length>3?jt.constant[3]:0)):(Le(jt.buffer)?wi=nt.createStream(34962,jt.buffer):wi=nt.getBuffer(jt.buffer),ea="type"in jt?Di[jt.type]:wi.dtype,Ai=!!jt.normalized,rn=jt.size|0,qn=jt.offset|0,pi=jt.stride|0,Fn=jt.divisor|0)),Pa=m.location,dr=xe[Pa],ca===1?(dr.buffer||ue.enableVertexAttribArray(Pa),ai=rn||4,(dr.type!==ea||dr.size!==ai||dr.buffer!==wi||dr.normalized!==Ai||dr.offset!==qn||dr.stride!==pi)&&(ue.bindBuffer(34962,wi.buffer),ue.vertexAttribPointer(Pa,ai,ea,Ai,pi,qn),dr.type=ea,dr.size=ai,dr.buffer=wi,dr.normalized=Ai,dr.offset=qn,dr.stride=pi),dr.divisor!==Fn&&(Ir.vertexAttribDivisorANGLE(Pa,Fn),dr.divisor=Fn)):(dr.buffer&&(ue.disableVertexAttribArray(Pa),dr.buffer=null),(dr.x!==Kn||dr.y!==hn||dr.z!==Ta||dr.w!==tn)&&(ue.vertexAttrib4f(Pa,Kn,hn,Ta,tn),dr.x=Kn,dr.y=hn,dr.z=Ta,dr.w=tn)),Zi=w.location,Vi=xe[Zi],Vi.buffer||ue.enableVertexAttribArray(Zi),(Vi.type!==5126||Vi.size!==2||Vi.buffer!==c||Vi.normalized!==!1||Vi.offset!==8||Vi.stride!==24)&&(ue.bindBuffer(34962,c.buffer),ue.vertexAttribPointer(Zi,2,5126,!1,24,8),Vi.type=5126,Vi.size=2,Vi.buffer=c,Vi.normalized=!1,Vi.offset=8,Vi.stride=24),Vi.divisor!==0&&(Ir.vertexAttribDivisorANGLE(Zi,0),Vi.divisor=0),pa=_.call(this,pe,pr,0),qr.offset=pa,Na=!1,an=1,wn=0,Ra=0,ei=0,Yn=0,Ja=null,ja=0,ka=!1,ki=5126,pn=0,Va=0,Gi=0,Le(qr)?(Na=!0,Ja=nt.createStream(34962,qr),ki=Ja.dtype):(Ja=nt.getBuffer(qr),Ja?ki=Ja.dtype:"constant"in qr?(an=2,typeof qr.constant=="number"?(wn=qr.constant,Ra=ei=Yn=0):(wn=qr.constant.length>0?qr.constant[0]:0,Ra=qr.constant.length>1?qr.constant[1]:0,ei=qr.constant.length>2?qr.constant[2]:0,Yn=qr.constant.length>3?qr.constant[3]:0)):(Le(qr.buffer)?Ja=nt.createStream(34962,qr.buffer):Ja=nt.getBuffer(qr.buffer),ki="type"in qr?Di[qr.type]:Ja.dtype,ka=!!qr.normalized,ja=qr.size|0,pn=qr.offset|0,Va=qr.stride|0,Gi=qr.divisor|0)),Pr=b.location,ri=xe[Pr],an===1?(ri.buffer||ue.enableVertexAttribArray(Pr),bn=ja||2,(ri.type!==ki||ri.size!==bn||ri.buffer!==Ja||ri.normalized!==ka||ri.offset!==pn||ri.stride!==Va)&&(ue.bindBuffer(34962,Ja.buffer),ue.vertexAttribPointer(Pr,bn,ki,ka,Va,pn),ri.type=ki,ri.size=bn,ri.buffer=Ja,ri.normalized=ka,ri.offset=pn,ri.stride=Va),ri.divisor!==Gi&&(Ir.vertexAttribDivisorANGLE(Pr,Gi),ri.divisor=Gi)):(ri.buffer&&(ue.disableVertexAttribArray(Pr),ri.buffer=null),(ri.x!==wn||ri.y!==Ra||ri.z!==ei||ri.w!==Yn)&&(ue.vertexAttrib4f(Pr,wn,Ra,ei,Yn),ri.x=wn,ri.y=Ra,ri.z=ei,ri.w=Yn)),Ri=M.call(this,pe,pr,0),Ut.offset=Ri,vi=!1,yr=1,Ti=0,Cn=0,Gr=0,Xn=0,nn=null,ta=0,Bi=!1,On=5126,Nn=0,ia=0,Jr=0,Le(Ut)?(vi=!0,nn=nt.createStream(34962,Ut),On=nn.dtype):(nn=nt.getBuffer(Ut),nn?On=nn.dtype:"constant"in Ut?(yr=2,typeof Ut.constant=="number"?(Ti=Ut.constant,Cn=Gr=Xn=0):(Ti=Ut.constant.length>0?Ut.constant[0]:0,Cn=Ut.constant.length>1?Ut.constant[1]:0,Gr=Ut.constant.length>2?Ut.constant[2]:0,Xn=Ut.constant.length>3?Ut.constant[3]:0)):(Le(Ut.buffer)?nn=nt.createStream(34962,Ut.buffer):nn=nt.getBuffer(Ut.buffer),On="type"in Ut?Di[Ut.type]:nn.dtype,Bi=!!Ut.normalized,ta=Ut.size|0,Nn=Ut.offset|0,ia=Ut.stride|0,Jr=Ut.divisor|0)),Ci=x.location,un=xe[Ci],yr===1?(un.buffer||ue.enableVertexAttribArray(Ci),Dn=ta||2,(un.type!==On||un.size!==Dn||un.buffer!==nn||un.normalized!==Bi||un.offset!==Nn||un.stride!==ia)&&(ue.bindBuffer(34962,nn.buffer),ue.vertexAttribPointer(Ci,Dn,On,Bi,ia,Nn),un.type=On,un.size=Dn,un.buffer=nn,un.normalized=Bi,un.offset=Nn,un.stride=ia),un.divisor!==Jr&&(Ir.vertexAttribDivisorANGLE(Ci,Jr),un.divisor=Jr)):(un.buffer&&(ue.disableVertexAttribArray(Ci),un.buffer=null),(un.x!==Ti||un.y!==Cn||un.z!==Gr||un.w!==Xn)&&(ue.vertexAttrib4f(Ci,Ti,Cn,Gr,Xn),un.x=Ti,un.y=Cn,un.z=Gr,un.w=Xn)),Vn=pr.capSize,ue.uniform1f(A.location,Vn),vn=pr.lineWidth,ue.uniform1f(T.location,vn),Br=pr.opacity,ue.uniform1f(g.location,Br),Li=pr.scale,Ua=Li[0],yi=Li[1],ue.uniform2f(E.location,Ua,yi),Ma=pr.scaleFract,Ba=Ma[0],Bn=Ma[1],ue.uniform2f(S.location,Ba,Bn),Hi=pr.translate,yn=Hi[0],jn=Hi[1],ue.uniform2f(C.location,yn,jn),Un=pr.translateFract,zi=Un[0],xr=Un[1],ue.uniform2f(k.location,zi,xr),Ln=L.call(this,pe,pr,0),xn=Ln[0],da=Ln[1],Mi=Ln[2],Xr=Ln[3],ue.uniform4f(D.location,xn,da,Mi,Xr),Gn=Ze.elements,Gn?ue.bindBuffer(34963,Gn.buffer.buffer):Re.currentVAO&&(Gn=it.getElements(Re.currentVAO.elements),Gn&&ue.bindBuffer(34963,Gn.buffer.buffer)),to=Ze.offset,Jn=pr.count,Jn>0?Gn?Ir.drawElementsInstancedANGLE(4,36,Gn.type,to<<(Gn.type-5121>>1),Jn):Ir.drawArraysInstancedANGLE(4,to,36,Jn):Jn<0&&(Gn?ue.drawElements(4,36,Gn.type,to<<(Gn.type-5121>>1)):ue.drawArrays(4,to,36)),$e.dirty=!0,Re.setVAO(null),pe.viewportWidth=Me,pe.viewportHeight=Xe,Ct&&(r.cpuTime+=performance.now()-ur),ui&&nt.destroyStream(kn),sn&&nt.destroyStream(wi),Na&&nt.destroyStream(Ja),vi&&nt.destroyStream(nn)},scope:function(pr,Ur,Sr){var Cr,di,Fi,ir,Kt,Me,Xe,Ye,et,gt,bt,lr,Ct,ur,Ir,Rr,Nr,gi,ui,Qr,Ui,ln,Tt,_i,kn,ti,Fr,ji,na,mn,$n,Wi,Qi,_r,Yr,fi,aa,sn,ca,Kn,hn,Ta,tn,wi,rn,Ai,ea,qn,pi,Fn,Pa,dr,ai,Zi,Vi,pa,Na,an,wn,Ra,ei,Yn,Ja,ja,ka,ki,pn,Va,Gi,Pr,ri,bn,Ri,vi,yr,Ti,Cn,Gr,Xn,nn,ta,Bi,On,Nn,ia,Jr,Ci,un,Dn,Vn,vn,Br,Li,Ua,yi,Ma,Ba,Bn,Hi,yn,jn,Un,zi,xr,Ln,xn,da,Mi,Xr,Gn,to,Jn,ro,mo,Oa,Si,co,Pn,Fa,oa,Hn,va,ma,Sa,Ei,jr,An,Za,Ga,Ca,za,Wn,Xi,sa,Mo,ya,Qn,Tn,Da,zn,Ia,$i,In,qi,la,ga,go,eo,So,Mn,Ao,Ya,Co,Ii,qa,Zn,Ha,Wa,$a,Fe,Ge,ot,rt,mt,It,Bt,Ot,nr,zr,Wt,Rt,er,kr,Vr,ii,ci,li,mi,xi,Oi,ua,xa,ao,ho,Fo,ls,Io,Ps,xs,us,Ni,io,Eo,oo,xo,bo,so,Yo,Uo;Cr=pr.viewport,di=Cr.x|0,Fi=Cr.y|0,ir="width"in Cr?Cr.width|0:pe.framebufferWidth-di,Kt="height"in Cr?Cr.height|0:pe.framebufferHeight-Fi,Me=pe.viewportWidth,pe.viewportWidth=ir,Xe=pe.viewportHeight,pe.viewportHeight=Kt,Ye=hr[0],hr[0]=di,et=hr[1],hr[1]=Fi,gt=hr[2],hr[2]=ir,bt=hr[3],hr[3]=Kt,lr=Se[0],Se[0]=P,Ct=Se[1],Se[1]=I,ur=Se[2],Se[2]=F,Ir=Se[3],Se[3]=z,Rr=Be.blend_enable,Be.blend_enable=B,Nr=st[0],st[0]=O,gi=st[1],st[1]=W,ui=wt[0],wt[0]=X,Qr=wt[1],wt[1]=Z,Ui=wt[2],wt[2]=j,ln=wt[3],wt[3]=q,Tt=Be.depth_enable,Be.depth_enable=Q,_i=pr.viewport,kn=_i.x|0,ti=_i.y|0,Fr="width"in _i?_i.width|0:pe.framebufferWidth-kn,ji="height"in _i?_i.height|0:pe.framebufferHeight-ti,na=Lr[0],Lr[0]=kn,mn=Lr[1],Lr[1]=ti,$n=Lr[2],Lr[2]=Fr,Wi=Lr[3],Lr[3]=ji,Qi=Be.scissor_enable,Be.scissor_enable=N,_r=$e.profile,_r&&(Yr=performance.now(),r.count++),fi=Ze.count,Ze.count=V,aa=pr.count,sn=Ze.instances,Ze.instances=aa,ca=Ze.primitive,Ze.primitive=J,Kn=pr.range,hn=Qe[H],Qe[H]=Kn,Ta=pr.lineWidth,tn=Qe[$],Qe[$]=Ta,wi=pr.capSize,rn=Qe[te],Qe[te]=wi,Ai=pr.opacity,ea=Qe[ie],Qe[ie]=Ai,qn=pr.scale,pi=Qe[de],Qe[de]=qn,Fn=pr.translate,Pa=Qe[ge],Qe[ge]=Fn,dr=pr.scaleFract,ai=Qe[Ie],Qe[Ie]=dr,Zi=pr.translateFract,Vi=Qe[Ce],Qe[Ce]=Zi,pa=L.call(this,pe,pr,Sr),Na=Qe[le],Qe[le]=pa,an=re.state,re.state=1,wn=re.x,re.x=0,Ra=re.y,re.y=0,ei=re.z,re.z=0,Yn=re.w,re.w=0,Ja=re.buffer,re.buffer=c,ja=re.size,re.size=0,ka=re.normalized,re.normalized=!1,ki=re.type,re.type=5126,pn=re.offset,re.offset=0,Va=re.stride,re.stride=24,Gi=re.divisor,re.divisor=0,Pr=Ee.state,Ee.state=1,ri=Ee.x,Ee.x=0,bn=Ee.y,Ee.y=0,Ri=Ee.z,Ee.z=0,vi=Ee.w,Ee.w=0,yr=Ee.buffer,Ee.buffer=c,Ti=Ee.size,Ee.size=0,Cn=Ee.normalized,Ee.normalized=!1,Gr=Ee.type,Ee.type=5126,Xn=Ee.offset,Ee.offset=8,nn=Ee.stride,Ee.stride=24,ta=Ee.divisor,Ee.divisor=0,Bi=we.state,we.state=1,On=we.x,we.x=0,Nn=we.y,we.y=0,ia=we.z,we.z=0,Jr=we.w,we.w=0,Ci=we.buffer,we.buffer=c,un=we.size,we.size=0,Dn=we.normalized,we.normalized=!1,Vn=we.type,we.type=5126,vn=we.offset,we.offset=16,Br=we.stride,we.stride=24,Li=we.divisor,we.divisor=0,Ua=d.call(this,pe,pr,Sr),wr.offset=Ua,yi=!1,Ma=1,Ba=0,Bn=0,Hi=0,yn=0,jn=null,Un=0,zi=!1,xr=5126,Ln=0,xn=0,da=0,Le(wr)?(yi=!0,jn=nt.createStream(34962,wr),xr=jn.dtype):(jn=nt.getBuffer(wr),jn?xr=jn.dtype:"constant"in wr?(Ma=2,typeof wr.constant=="number"?(Ba=wr.constant,Bn=Hi=yn=0):(Ba=wr.constant.length>0?wr.constant[0]:0,Bn=wr.constant.length>1?wr.constant[1]:0,Hi=wr.constant.length>2?wr.constant[2]:0,yn=wr.constant.length>3?wr.constant[3]:0)):(Le(wr.buffer)?jn=nt.createStream(34962,wr.buffer):jn=nt.getBuffer(wr.buffer),xr="type"in wr?Di[wr.type]:jn.dtype,zi=!!wr.normalized,Un=wr.size|0,Ln=wr.offset|0,xn=wr.stride|0,da=wr.divisor|0)),Mi=oe.state,oe.state=Ma,Xr=oe.x,oe.x=Ba,Gn=oe.y,oe.y=Bn,to=oe.z,oe.z=Hi,Jn=oe.w,oe.w=yn,ro=oe.buffer,oe.buffer=jn,mo=oe.size,oe.size=Un,Oa=oe.normalized,oe.normalized=zi,Si=oe.type,oe.type=xr,co=oe.offset,oe.offset=Ln,Pn=oe.stride,oe.stride=xn,Fa=oe.divisor,oe.divisor=da,oa=_.call(this,pe,pr,Sr),qr.offset=oa,Hn=!1,va=1,ma=0,Sa=0,Ei=0,jr=0,An=null,Za=0,Ga=!1,Ca=5126,za=0,Wn=0,Xi=0,Le(qr)?(Hn=!0,An=nt.createStream(34962,qr),Ca=An.dtype):(An=nt.getBuffer(qr),An?Ca=An.dtype:"constant"in qr?(va=2,typeof qr.constant=="number"?(ma=qr.constant,Sa=Ei=jr=0):(ma=qr.constant.length>0?qr.constant[0]:0,Sa=qr.constant.length>1?qr.constant[1]:0,Ei=qr.constant.length>2?qr.constant[2]:0,jr=qr.constant.length>3?qr.constant[3]:0)):(Le(qr.buffer)?An=nt.createStream(34962,qr.buffer):An=nt.getBuffer(qr.buffer),Ca="type"in qr?Di[qr.type]:An.dtype,Ga=!!qr.normalized,Za=qr.size|0,za=qr.offset|0,Wn=qr.stride|0,Xi=qr.divisor|0)),sa=Y.state,Y.state=va,Mo=Y.x,Y.x=ma,ya=Y.y,Y.y=Sa,Qn=Y.z,Y.z=Ei,Tn=Y.w,Y.w=jr,Da=Y.buffer,Y.buffer=An,zn=Y.size,Y.size=Za,Ia=Y.normalized,Y.normalized=Ga,$i=Y.type,Y.type=Ca,In=Y.offset,Y.offset=za,qi=Y.stride,Y.stride=Wn,la=Y.divisor,Y.divisor=Xi,ga=M.call(this,pe,pr,Sr),Ut.offset=ga,go=!1,eo=1,So=0,Mn=0,Ao=0,Ya=0,Co=null,Ii=0,qa=!1,Zn=5126,Ha=0,Wa=0,$a=0,Le(Ut)?(go=!0,Co=nt.createStream(34962,Ut),Zn=Co.dtype):(Co=nt.getBuffer(Ut),Co?Zn=Co.dtype:"constant"in Ut?(eo=2,typeof Ut.constant=="number"?(So=Ut.constant,Mn=Ao=Ya=0):(So=Ut.constant.length>0?Ut.constant[0]:0,Mn=Ut.constant.length>1?Ut.constant[1]:0,Ao=Ut.constant.length>2?Ut.constant[2]:0,Ya=Ut.constant.length>3?Ut.constant[3]:0)):(Le(Ut.buffer)?Co=nt.createStream(34962,Ut.buffer):Co=nt.getBuffer(Ut.buffer),Zn="type"in Ut?Di[Ut.type]:Co.dtype,qa=!!Ut.normalized,Ii=Ut.size|0,Ha=Ut.offset|0,Wa=Ut.stride|0,$a=Ut.divisor|0)),Fe=ne.state,ne.state=eo,Ge=ne.x,ne.x=So,ot=ne.y,ne.y=Mn,rt=ne.z,ne.z=Ao,mt=ne.w,ne.w=Ya,It=ne.buffer,ne.buffer=Co,Bt=ne.size,ne.size=Ii,Ot=ne.normalized,ne.normalized=qa,nr=ne.type,ne.type=Zn,zr=ne.offset,ne.offset=Ha,Wt=ne.stride,ne.stride=Wa,Rt=ne.divisor,ne.divisor=$a,er=y.call(this,pe,pr,Sr),jt.offset=er,kr=!1,Vr=1,ii=0,ci=0,li=0,mi=0,xi=null,Oi=0,ua=!1,xa=5126,ao=0,ho=0,Fo=0,Le(jt)?(kr=!0,xi=nt.createStream(34962,jt),xa=xi.dtype):(xi=nt.getBuffer(jt),xi?xa=xi.dtype:"constant"in jt?(Vr=2,typeof jt.constant=="number"?(ii=jt.constant,ci=li=mi=0):(ii=jt.constant.length>0?jt.constant[0]:0,ci=jt.constant.length>1?jt.constant[1]:0,li=jt.constant.length>2?jt.constant[2]:0,mi=jt.constant.length>3?jt.constant[3]:0)):(Le(jt.buffer)?xi=nt.createStream(34962,jt.buffer):xi=nt.getBuffer(jt.buffer),xa="type"in jt?Di[jt.type]:xi.dtype,ua=!!jt.normalized,Oi=jt.size|0,ao=jt.offset|0,ho=jt.stride|0,Fo=jt.divisor|0)),ls=ye.state,ye.state=Vr,Io=ye.x,ye.x=ii,Ps=ye.y,ye.y=ci,xs=ye.z,ye.z=li,us=ye.w,ye.w=mi,Ni=ye.buffer,ye.buffer=xi,io=ye.size,ye.size=Oi,Eo=ye.normalized,ye.normalized=ua,oo=ye.type,ye.type=xa,xo=ye.offset,ye.offset=ao,bo=ye.stride,ye.stride=ho,so=ye.divisor,ye.divisor=Fo,Yo=Ue.vert,Ue.vert=U,Uo=Ue.frag,Ue.frag=se,$e.dirty=!0,Ur(pe,pr,Sr),pe.viewportWidth=Me,pe.viewportHeight=Xe,hr[0]=Ye,hr[1]=et,hr[2]=gt,hr[3]=bt,Se[0]=lr,Se[1]=Ct,Se[2]=ur,Se[3]=Ir,Be.blend_enable=Rr,st[0]=Nr,st[1]=gi,wt[0]=ui,wt[1]=Qr,wt[2]=Ui,wt[3]=ln,Be.depth_enable=Tt,Lr[0]=na,Lr[1]=mn,Lr[2]=$n,Lr[3]=Wi,Be.scissor_enable=Qi,_r&&(r.cpuTime+=performance.now()-Yr),Ze.count=fi,Ze.instances=sn,Ze.primitive=ca,Qe[H]=hn,Qe[$]=tn,Qe[te]=rn,Qe[ie]=ea,Qe[de]=pi,Qe[ge]=Pa,Qe[Ie]=ai,Qe[Ce]=Vi,Qe[le]=Na,re.state=an,re.x=wn,re.y=Ra,re.z=ei,re.w=Yn,re.buffer=Ja,re.size=ja,re.normalized=ka,re.type=ki,re.offset=pn,re.stride=Va,re.divisor=Gi,Ee.state=Pr,Ee.x=ri,Ee.y=bn,Ee.z=Ri,Ee.w=vi,Ee.buffer=yr,Ee.size=Ti,Ee.normalized=Cn,Ee.type=Gr,Ee.offset=Xn,Ee.stride=nn,Ee.divisor=ta,we.state=Bi,we.x=On,we.y=Nn,we.z=ia,we.w=Jr,we.buffer=Ci,we.size=un,we.normalized=Dn,we.type=Vn,we.offset=vn,we.stride=Br,we.divisor=Li,yi&&nt.destroyStream(jn),oe.state=Mi,oe.x=Xr,oe.y=Gn,oe.z=to,oe.w=Jn,oe.buffer=ro,oe.size=mo,oe.normalized=Oa,oe.type=Si,oe.offset=co,oe.stride=Pn,oe.divisor=Fa,Hn&&nt.destroyStream(An),Y.state=sa,Y.x=Mo,Y.y=ya,Y.z=Qn,Y.w=Tn,Y.buffer=Da,Y.size=zn,Y.normalized=Ia,Y.type=$i,Y.offset=In,Y.stride=qi,Y.divisor=la,go&&nt.destroyStream(Co),ne.state=Fe,ne.x=Ge,ne.y=ot,ne.z=rt,ne.w=mt,ne.buffer=It,ne.size=Bt,ne.normalized=Ot,ne.type=nr,ne.offset=zr,ne.stride=Wt,ne.divisor=Rt,kr&&nt.destroyStream(xi),ye.state=ls,ye.x=Io,ye.y=Ps,ye.z=xs,ye.w=us,ye.buffer=Ni,ye.size=io,ye.normalized=Eo,ye.type=oo,ye.offset=xo,ye.stride=bo,ye.divisor=so,Ue.vert=Yo,Ue.frag=Uo,$e.dirty=!0},batch:function(pr,Ur){var Sr,Cr,di,Fi,ir,Kt,Me;if(Sr=De.angle_instanced_arrays,Cr=Pe.next,Cr!==Pe.cur&&(Cr?ue.bindFramebuffer(36160,Cr.framebuffer):ue.bindFramebuffer(36160,null),Pe.cur=Cr),$e.dirty){var Xe,Ye,et,gt,bt,lr,Ct,ur,Ir,Rr,Nr,gi,ui,Qr,Ui,ln,Tt,_i,kn,ti,Fr,ji,na,mn,$n,Wi,Qi,_r,Yr,fi,aa,sn,ca;Xe=Be.dither,Xe!==$e.dither&&(Xe?ue.enable(3024):ue.disable(3024),$e.dither=Xe),Ye=Be.depth_func,Ye!==$e.depth_func&&(ue.depthFunc(Ye),$e.depth_func=Ye),et=Vt[0],gt=Vt[1],(et!==Dt[0]||gt!==Dt[1])&&(ue.depthRange(et,gt),Dt[0]=et,Dt[1]=gt),bt=Be.depth_mask,bt!==$e.depth_mask&&(ue.depthMask(bt),$e.depth_mask=bt),lr=yt[0],Ct=yt[1],ur=yt[2],Ir=yt[3],(lr!==St[0]||Ct!==St[1]||ur!==St[2]||Ir!==St[3])&&(ue.colorMask(lr,Ct,ur,Ir),St[0]=lr,St[1]=Ct,St[2]=ur,St[3]=Ir),Rr=Be.cull_enable,Rr!==$e.cull_enable&&(Rr?ue.enable(2884):ue.disable(2884),$e.cull_enable=Rr),Nr=Be.cull_face,Nr!==$e.cull_face&&(ue.cullFace(Nr),$e.cull_face=Nr),gi=Be.frontFace,gi!==$e.frontFace&&(ue.frontFace(gi),$e.frontFace=gi),ui=Be.lineWidth,ui!==$e.lineWidth&&(ue.lineWidth(ui),$e.lineWidth=ui),Qr=Be.polygonOffset_enable,Qr!==$e.polygonOffset_enable&&(Qr?ue.enable(32823):ue.disable(32823),$e.polygonOffset_enable=Qr),Ui=rr[0],ln=rr[1],(Ui!==Ke[0]||ln!==Ke[1])&&(ue.polygonOffset(Ui,ln),Ke[0]=Ui,Ke[1]=ln),Tt=Be.sample_alpha,Tt!==$e.sample_alpha&&(Tt?ue.enable(32926):ue.disable(32926),$e.sample_alpha=Tt),_i=Be.sample_enable,_i!==$e.sample_enable&&(_i?ue.enable(32928):ue.disable(32928),$e.sample_enable=_i),kn=at[0],ti=at[1],(kn!==lt[0]||ti!==lt[1])&&(ue.sampleCoverage(kn,ti),lt[0]=kn,lt[1]=ti),Fr=Be.stencil_enable,Fr!==$e.stencil_enable&&(Fr?ue.enable(2960):ue.disable(2960),$e.stencil_enable=Fr),ji=Be.stencil_mask,ji!==$e.stencil_mask&&(ue.stencilMask(ji),$e.stencil_mask=ji),na=vt[0],mn=vt[1],$n=vt[2],(na!==We[0]||mn!==We[1]||$n!==We[2])&&(ue.stencilFunc(na,mn,$n),We[0]=na,We[1]=mn,We[2]=$n),Wi=ut[0],Qi=ut[1],_r=ut[2],Yr=ut[3],(Wi!==kt[0]||Qi!==kt[1]||_r!==kt[2]||Yr!==kt[3])&&(ue.stencilOpSeparate(Wi,Qi,_r,Yr),kt[0]=Wi,kt[1]=Qi,kt[2]=_r,kt[3]=Yr),fi=$t[0],aa=$t[1],sn=$t[2],ca=$t[3],(fi!==or[0]||aa!==or[1]||sn!==or[2]||ca!==or[3])&&(ue.stencilOpSeparate(fi,aa,sn,ca),or[0]=fi,or[1]=aa,or[2]=sn,or[3]=ca)}ue.blendColor(0,0,0,0),ze[0]=0,ze[1]=0,ze[2]=0,ze[3]=0,Ae?ue.enable(3042):ue.disable(3042),$e.blend_enable=Ae,ue.blendEquationSeparate(32774,32774),ft[0]=32774,ft[1]=32774,ue.blendFuncSeparate(770,771,773,1),At[0]=770,At[1]=771,At[2]=773,At[3]=1,be?ue.enable(2929):ue.disable(2929),$e.depth_enable=be,me?ue.enable(3089):ue.disable(3089),$e.scissor_enable=me,di=$e.profile,di&&(Fi=performance.now(),r.count+=Ur),ue.useProgram(f.program),ir=De.angle_instanced_arrays;var Kn,hn,Ta,tn,wi,rn,Ai,ea;for(Re.setVAO(null),Kn=h.location,hn=xe[Kn],hn.buffer||ue.enableVertexAttribArray(Kn),(hn.type!==5126||hn.size!==2||hn.buffer!==c||hn.normalized!==!1||hn.offset!==16||hn.stride!==24)&&(ue.bindBuffer(34962,c.buffer),ue.vertexAttribPointer(Kn,2,5126,!1,24,16),hn.type=5126,hn.size=2,hn.buffer=c,hn.normalized=!1,hn.offset=16,hn.stride=24),hn.divisor!==0&&(ir.vertexAttribDivisorANGLE(Kn,0),hn.divisor=0),Ta=v.location,tn=xe[Ta],tn.buffer||ue.enableVertexAttribArray(Ta),(tn.type!==5126||tn.size!==2||tn.buffer!==c||tn.normalized!==!1||tn.offset!==0||tn.stride!==24)&&(ue.bindBuffer(34962,c.buffer),ue.vertexAttribPointer(Ta,2,5126,!1,24,0),tn.type=5126,tn.size=2,tn.buffer=c,tn.normalized=!1,tn.offset=0,tn.stride=24),tn.divisor!==0&&(ir.vertexAttribDivisorANGLE(Ta,0),tn.divisor=0),wi=w.location,rn=xe[wi],rn.buffer||ue.enableVertexAttribArray(wi),(rn.type!==5126||rn.size!==2||rn.buffer!==c||rn.normalized!==!1||rn.offset!==8||rn.stride!==24)&&(ue.bindBuffer(34962,c.buffer),ue.vertexAttribPointer(wi,2,5126,!1,24,8),rn.type=5126,rn.size=2,rn.buffer=c,rn.normalized=!1,rn.offset=8,rn.stride=24),rn.divisor!==0&&(ir.vertexAttribDivisorANGLE(wi,0),rn.divisor=0),Ai=Ze.elements,Ai?ue.bindBuffer(34963,Ai.buffer.buffer):Re.currentVAO&&(Ai=it.getElements(Re.currentVAO.elements),Ai&&ue.bindBuffer(34963,Ai.buffer.buffer)),ea=Ze.offset,Kt=0;Kt0?wr.constant[0]:0,ja=wr.constant.length>1?wr.constant[1]:0,ka=wr.constant.length>2?wr.constant[2]:0,ki=wr.constant.length>3?wr.constant[3]:0)):(Le(wr.buffer)?pn=nt.createStream(34962,wr.buffer):pn=nt.getBuffer(wr.buffer),Pr="type"in wr?Di[wr.type]:pn.dtype,Gi=!!wr.normalized,Va=wr.size|0,ri=wr.offset|0,bn=wr.stride|0,Ri=wr.divisor|0)),vi=p.location,yr=xe[vi],Yn===1?(yr.buffer||ue.enableVertexAttribArray(vi),Ti=Va||4,(yr.type!==Pr||yr.size!==Ti||yr.buffer!==pn||yr.normalized!==Gi||yr.offset!==ri||yr.stride!==bn)&&(ue.bindBuffer(34962,pn.buffer),ue.vertexAttribPointer(vi,Ti,Pr,Gi,bn,ri),yr.type=Pr,yr.size=Ti,yr.buffer=pn,yr.normalized=Gi,yr.offset=ri,yr.stride=bn),yr.divisor!==Ri&&(ir.vertexAttribDivisorANGLE(vi,Ri),yr.divisor=Ri)):(yr.buffer&&(ue.disableVertexAttribArray(vi),yr.buffer=null),(yr.x!==Ja||yr.y!==ja||yr.z!==ka||yr.w!==ki)&&(ue.vertexAttrib4f(vi,Ja,ja,ka,ki),yr.x=Ja,yr.y=ja,yr.z=ka,yr.w=ki)),Cn=y.call(this,pe,Me,Kt),jt.offset=Cn,Gr=!1,Xn=1,nn=0,ta=0,Bi=0,On=0,Nn=null,ia=0,Jr=!1,Ci=5126,un=0,Dn=0,Vn=0,Le(jt)?(Gr=!0,Nn=nt.createStream(34962,jt),Ci=Nn.dtype):(Nn=nt.getBuffer(jt),Nn?Ci=Nn.dtype:"constant"in jt?(Xn=2,typeof jt.constant=="number"?(nn=jt.constant,ta=Bi=On=0):(nn=jt.constant.length>0?jt.constant[0]:0,ta=jt.constant.length>1?jt.constant[1]:0,Bi=jt.constant.length>2?jt.constant[2]:0,On=jt.constant.length>3?jt.constant[3]:0)):(Le(jt.buffer)?Nn=nt.createStream(34962,jt.buffer):Nn=nt.getBuffer(jt.buffer),Ci="type"in jt?Di[jt.type]:Nn.dtype,Jr=!!jt.normalized,ia=jt.size|0,un=jt.offset|0,Dn=jt.stride|0,Vn=jt.divisor|0)),vn=m.location,Br=xe[vn],Xn===1?(Br.buffer||ue.enableVertexAttribArray(vn),Li=ia||4,(Br.type!==Ci||Br.size!==Li||Br.buffer!==Nn||Br.normalized!==Jr||Br.offset!==un||Br.stride!==Dn)&&(ue.bindBuffer(34962,Nn.buffer),ue.vertexAttribPointer(vn,Li,Ci,Jr,Dn,un),Br.type=Ci,Br.size=Li,Br.buffer=Nn,Br.normalized=Jr,Br.offset=un,Br.stride=Dn),Br.divisor!==Vn&&(ir.vertexAttribDivisorANGLE(vn,Vn),Br.divisor=Vn)):(Br.buffer&&(ue.disableVertexAttribArray(vn),Br.buffer=null),(Br.x!==nn||Br.y!==ta||Br.z!==Bi||Br.w!==On)&&(ue.vertexAttrib4f(vn,nn,ta,Bi,On),Br.x=nn,Br.y=ta,Br.z=Bi,Br.w=On)),Ua=_.call(this,pe,Me,Kt),qr.offset=Ua,yi=!1,Ma=1,Ba=0,Bn=0,Hi=0,yn=0,jn=null,Un=0,zi=!1,xr=5126,Ln=0,xn=0,da=0,Le(qr)?(yi=!0,jn=nt.createStream(34962,qr),xr=jn.dtype):(jn=nt.getBuffer(qr),jn?xr=jn.dtype:"constant"in qr?(Ma=2,typeof qr.constant=="number"?(Ba=qr.constant,Bn=Hi=yn=0):(Ba=qr.constant.length>0?qr.constant[0]:0,Bn=qr.constant.length>1?qr.constant[1]:0,Hi=qr.constant.length>2?qr.constant[2]:0,yn=qr.constant.length>3?qr.constant[3]:0)):(Le(qr.buffer)?jn=nt.createStream(34962,qr.buffer):jn=nt.getBuffer(qr.buffer),xr="type"in qr?Di[qr.type]:jn.dtype,zi=!!qr.normalized,Un=qr.size|0,Ln=qr.offset|0,xn=qr.stride|0,da=qr.divisor|0)),Mi=b.location,Xr=xe[Mi],Ma===1?(Xr.buffer||ue.enableVertexAttribArray(Mi),Gn=Un||2,(Xr.type!==xr||Xr.size!==Gn||Xr.buffer!==jn||Xr.normalized!==zi||Xr.offset!==Ln||Xr.stride!==xn)&&(ue.bindBuffer(34962,jn.buffer),ue.vertexAttribPointer(Mi,Gn,xr,zi,xn,Ln),Xr.type=xr,Xr.size=Gn,Xr.buffer=jn,Xr.normalized=zi,Xr.offset=Ln,Xr.stride=xn),Xr.divisor!==da&&(ir.vertexAttribDivisorANGLE(Mi,da),Xr.divisor=da)):(Xr.buffer&&(ue.disableVertexAttribArray(Mi),Xr.buffer=null),(Xr.x!==Ba||Xr.y!==Bn||Xr.z!==Hi||Xr.w!==yn)&&(ue.vertexAttrib4f(Mi,Ba,Bn,Hi,yn),Xr.x=Ba,Xr.y=Bn,Xr.z=Hi,Xr.w=yn)),to=M.call(this,pe,Me,Kt),Ut.offset=to,Jn=!1,ro=1,mo=0,Oa=0,Si=0,co=0,Pn=null,Fa=0,oa=!1,Hn=5126,va=0,ma=0,Sa=0,Le(Ut)?(Jn=!0,Pn=nt.createStream(34962,Ut),Hn=Pn.dtype):(Pn=nt.getBuffer(Ut),Pn?Hn=Pn.dtype:"constant"in Ut?(ro=2,typeof Ut.constant=="number"?(mo=Ut.constant,Oa=Si=co=0):(mo=Ut.constant.length>0?Ut.constant[0]:0,Oa=Ut.constant.length>1?Ut.constant[1]:0,Si=Ut.constant.length>2?Ut.constant[2]:0,co=Ut.constant.length>3?Ut.constant[3]:0)):(Le(Ut.buffer)?Pn=nt.createStream(34962,Ut.buffer):Pn=nt.getBuffer(Ut.buffer),Hn="type"in Ut?Di[Ut.type]:Pn.dtype,oa=!!Ut.normalized,Fa=Ut.size|0,va=Ut.offset|0,ma=Ut.stride|0,Sa=Ut.divisor|0)),Ei=x.location,jr=xe[Ei],ro===1?(jr.buffer||ue.enableVertexAttribArray(Ei),An=Fa||2,(jr.type!==Hn||jr.size!==An||jr.buffer!==Pn||jr.normalized!==oa||jr.offset!==va||jr.stride!==ma)&&(ue.bindBuffer(34962,Pn.buffer),ue.vertexAttribPointer(Ei,An,Hn,oa,ma,va),jr.type=Hn,jr.size=An,jr.buffer=Pn,jr.normalized=oa,jr.offset=va,jr.stride=ma),jr.divisor!==Sa&&(ir.vertexAttribDivisorANGLE(Ei,Sa),jr.divisor=Sa)):(jr.buffer&&(ue.disableVertexAttribArray(Ei),jr.buffer=null),(jr.x!==mo||jr.y!==Oa||jr.z!==Si||jr.w!==co)&&(ue.vertexAttrib4f(Ei,mo,Oa,Si,co),jr.x=mo,jr.y=Oa,jr.z=Si,jr.w=co)),Za=Me.capSize,(!Kt||Ga!==Za)&&(Ga=Za,ue.uniform1f(A.location,Za)),Ca=Me.lineWidth,(!Kt||za!==Ca)&&(za=Ca,ue.uniform1f(T.location,Ca)),Wn=Me.opacity,(!Kt||Xi!==Wn)&&(Xi=Wn,ue.uniform1f(g.location,Wn)),sa=Me.scale,Mo=sa[0],Qn=sa[1],(!Kt||ya!==Mo||Tn!==Qn)&&(ya=Mo,Tn=Qn,ue.uniform2f(E.location,Mo,Qn)),Da=Me.scaleFract,zn=Da[0],$i=Da[1],(!Kt||Ia!==zn||In!==$i)&&(Ia=zn,In=$i,ue.uniform2f(S.location,zn,$i)),qi=Me.translate,la=qi[0],go=qi[1],(!Kt||ga!==la||eo!==go)&&(ga=la,eo=go,ue.uniform2f(C.location,la,go)),So=Me.translateFract,Mn=So[0],Ya=So[1],(!Kt||Ao!==Mn||Co!==Ya)&&(Ao=Mn,Co=Ya,ue.uniform2f(k.location,Mn,Ya)),Ii=L.call(this,pe,Me,Kt),qa=Ii[0],Ha=Ii[1],$a=Ii[2],Ge=Ii[3],(!Kt||Zn!==qa||Wa!==Ha||Fe!==$a||ot!==Ge)&&(Zn=qa,Wa=Ha,Fe=$a,ot=Ge,ue.uniform4f(D.location,qa,Ha,$a,Ge)),rt=Me.count,rt>0?Ai?ir.drawElementsInstancedANGLE(4,36,Ai.type,ea<<(Ai.type-5121>>1),rt):ir.drawArraysInstancedANGLE(4,ea,36,rt):rt<0&&(Ai?ue.drawElements(4,36,Ai.type,ea<<(Ai.type-5121>>1)):ue.drawArrays(4,ea,36)),pe.viewportWidth=ai,pe.viewportHeight=Zi,ei&&nt.destroyStream(pn),Gr&&nt.destroyStream(Nn),yi&&nt.destroyStream(jn),Jn&&nt.destroyStream(Pn)}$e.dirty=!0,Re.setVAO(null),di&&(r.cpuTime+=performance.now()-Fi)}}}});var MB=K((Iri,AZe)=>{"use strict";AZe.exports=function(t,r,i,n,a,o,s,l,u,f,c,h,d,p,v,y,m,w,_,b,M,x,A,T,g,E,S,C,k,D,L,P,I,F,z,B,O,W,X,Z,j,q,Q,N,V,J,H,$,te,ie,de,ge,Ie,Ce,le,re,Ee,we,oe,Y,ne,ye){"use strict";var U,se,Ae,be,me,ue,pe,ce,Be,$e,Ze,it,nt,Ue,xe,Re,Qe,Pe,De,Ve,Le,Se,ze,st,ft,wt,At,Vt,Dt,yt,St,rr,Ke,at,lt,vt,We,ut,kt,$t,or,Lr,Er,hr,ni,Kr,si,Tr,vr;return U=t.gl,se=t.context,Ae=t.strings,be=t.next,me=t.current,ue=t.draw,pe=t.elements,ce=t.buffer,Be=t.shader,$e=t.attributes,Ze=t.vao,it=t.uniforms,nt=t.framebuffer,Ue=t.extensions,xe=t.timer,Re=t.isBufferArgs,Qe=be.blend_color,Pe=me.blend_color,De=be.blend_equation,Ve=me.blend_equation,Le=be.blend_func,Se=me.blend_func,ze=be.depth_range,st=me.depth_range,ft=be.colorMask,wt=me.colorMask,At=be.polygonOffset_offset,Vt=me.polygonOffset_offset,Dt=be.sample_coverage,yt=me.sample_coverage,St=be.stencil_func,rr=me.stencil_func,Ke=be.stencil_opFront,at=me.stencil_opFront,lt=be.stencil_opBack,vt=me.stencil_opBack,We=be.scissor_box,ut=me.scissor_box,kt=be.viewport,$t=me.viewport,or={points:0,point:0,lines:1,line:1,triangles:4,triangle:4,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},Lr={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},Er={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},hr={add:32774,subtract:32778,"reverse subtract":32779},ni={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},Kr={int8:5120,int16:5122,int32:5124,uint8:5121,uint16:5123,uint32:5125,float:5126,float32:5126},si={cw:2304,ccw:2305},Tr={},Tr.offset=4,Tr.stride=8,vr={},vr.offset=0,vr.stride=8,{draw:function(Hr){var Di,gn,wr,qr,Ut,jt,pr,Ur,Sr,Cr,di,Fi,ir,Kt,Me,Xe,Ye,et,gt,bt,lr,Ct,ur,Ir,Rr,Nr,gi,ui,Qr,Ui,ln,Tt,_i,kn,ti,Fr,ji,na,mn,$n,Wi,Qi,_r,Yr,fi,aa,sn,ca,Kn,hn,Ta,tn,wi,rn,Ai,ea,qn,pi,Fn,Pa,dr,ai,Zi,Vi,pa,Na,an,wn,Ra,ei,Yn,Ja,ja,ka,ki,pn,Va,Gi,Pr,ri,bn,Ri,vi,yr,Ti,Cn,Gr,Xn,nn,ta,Bi,On,Nn,ia,Jr,Ci,un,Dn,Vn,vn,Br,Li,Ua,yi,Ma,Ba,Bn,Hi,yn,jn,Un,zi,xr,Ln,xn,da;if(Di=Ue.angle_instanced_arrays,gn=nt.next,gn!==nt.cur&&(gn?U.bindFramebuffer(36160,gn.framebuffer):U.bindFramebuffer(36160,null),nt.cur=gn),me.dirty){var Mi,Xr,Gn,to,Jn,ro,mo,Oa,Si,co,Pn,Fa,oa,Hn,va,ma,Sa,Ei,jr,An,Za,Ga,Ca,za,Wn,Xi,sa,Mo,ya,Qn,Tn,Da,zn,Ia,$i,In,qi,la,ga;Mi=be.dither,Mi!==me.dither&&(Mi?U.enable(3024):U.disable(3024),me.dither=Mi),Xr=De[0],Gn=De[1],(Xr!==Ve[0]||Gn!==Ve[1])&&(U.blendEquationSeparate(Xr,Gn),Ve[0]=Xr,Ve[1]=Gn),to=be.depth_func,to!==me.depth_func&&(U.depthFunc(to),me.depth_func=to),Jn=ze[0],ro=ze[1],(Jn!==st[0]||ro!==st[1])&&(U.depthRange(Jn,ro),st[0]=Jn,st[1]=ro),mo=be.depth_mask,mo!==me.depth_mask&&(U.depthMask(mo),me.depth_mask=mo),Oa=ft[0],Si=ft[1],co=ft[2],Pn=ft[3],(Oa!==wt[0]||Si!==wt[1]||co!==wt[2]||Pn!==wt[3])&&(U.colorMask(Oa,Si,co,Pn),wt[0]=Oa,wt[1]=Si,wt[2]=co,wt[3]=Pn),Fa=be.cull_enable,Fa!==me.cull_enable&&(Fa?U.enable(2884):U.disable(2884),me.cull_enable=Fa),oa=be.cull_face,oa!==me.cull_face&&(U.cullFace(oa),me.cull_face=oa),Hn=be.frontFace,Hn!==me.frontFace&&(U.frontFace(Hn),me.frontFace=Hn),va=be.lineWidth,va!==me.lineWidth&&(U.lineWidth(va),me.lineWidth=va),ma=be.polygonOffset_enable,ma!==me.polygonOffset_enable&&(ma?U.enable(32823):U.disable(32823),me.polygonOffset_enable=ma),Sa=At[0],Ei=At[1],(Sa!==Vt[0]||Ei!==Vt[1])&&(U.polygonOffset(Sa,Ei),Vt[0]=Sa,Vt[1]=Ei),jr=be.sample_alpha,jr!==me.sample_alpha&&(jr?U.enable(32926):U.disable(32926),me.sample_alpha=jr),An=be.sample_enable,An!==me.sample_enable&&(An?U.enable(32928):U.disable(32928),me.sample_enable=An),Za=Dt[0],Ga=Dt[1],(Za!==yt[0]||Ga!==yt[1])&&(U.sampleCoverage(Za,Ga),yt[0]=Za,yt[1]=Ga),Ca=be.stencil_mask,Ca!==me.stencil_mask&&(U.stencilMask(Ca),me.stencil_mask=Ca),za=St[0],Wn=St[1],Xi=St[2],(za!==rr[0]||Wn!==rr[1]||Xi!==rr[2])&&(U.stencilFunc(za,Wn,Xi),rr[0]=za,rr[1]=Wn,rr[2]=Xi),sa=Ke[0],Mo=Ke[1],ya=Ke[2],Qn=Ke[3],(sa!==at[0]||Mo!==at[1]||ya!==at[2]||Qn!==at[3])&&(U.stencilOpSeparate(sa,Mo,ya,Qn),at[0]=sa,at[1]=Mo,at[2]=ya,at[3]=Qn),Tn=lt[0],Da=lt[1],zn=lt[2],Ia=lt[3],(Tn!==vt[0]||Da!==vt[1]||zn!==vt[2]||Ia!==vt[3])&&(U.stencilOpSeparate(Tn,Da,zn,Ia),vt[0]=Tn,vt[1]=Da,vt[2]=zn,vt[3]=Ia),$i=be.scissor_enable,$i!==me.scissor_enable&&($i?U.enable(3089):U.disable(3089),me.scissor_enable=$i),In=We[0],qi=We[1],la=We[2],ga=We[3],(In!==ut[0]||qi!==ut[1]||la!==ut[2]||ga!==ut[3])&&(U.scissor(In,qi,la,ga),ut[0]=In,ut[1]=qi,ut[2]=la,ut[3]=ga)}wr=this.viewport,qr=wr.x|0,Ut=wr.y|0,jt="width"in wr?wr.width|0:se.framebufferWidth-qr,pr="height"in wr?wr.height|0:se.framebufferHeight-Ut,Ur=se.viewportWidth,se.viewportWidth=jt,Sr=se.viewportHeight,se.viewportHeight=pr,U.viewport(qr,Ut,jt,pr),$t[0]=qr,$t[1]=Ut,$t[2]=jt,$t[3]=pr,U.blendColor(0,0,0,1),Pe[0]=0,Pe[1]=0,Pe[2]=0,Pe[3]=1,i?U.enable(3042):U.disable(3042),me.blend_enable=i,U.blendFuncSeparate(770,771,773,1),Se[0]=770,Se[1]=771,Se[2]=773,Se[3]=1,n?U.enable(2929):U.disable(2929),me.depth_enable=n,a?U.enable(2960):U.disable(2960),me.stencil_enable=a,Cr=me.profile,Cr&&(di=performance.now(),r.count++),U.useProgram(o.program),Fi=Ue.angle_instanced_arrays,Ze.setVAO(null),ir=this.charBuffer,Kt=!1,Me=1,Xe=0,Ye=0,et=0,gt=0,bt=null,lr=0,Ct=!1,ur=5126,Ir=0,Rr=0,Nr=0,Re(ir)?(Kt=!0,bt=ce.createStream(34962,ir),ur=bt.dtype):(bt=ce.getBuffer(ir),bt?ur=bt.dtype:"constant"in ir?(Me=2,typeof ir.constant=="number"?(Xe=ir.constant,Ye=et=gt=0):(Xe=ir.constant.length>0?ir.constant[0]:0,Ye=ir.constant.length>1?ir.constant[1]:0,et=ir.constant.length>2?ir.constant[2]:0,gt=ir.constant.length>3?ir.constant[3]:0)):(Re(ir.buffer)?bt=ce.createStream(34962,ir.buffer):bt=ce.getBuffer(ir.buffer),ur="type"in ir?Kr[ir.type]:bt.dtype,Ct=!!ir.normalized,lr=ir.size|0,Ir=ir.offset|0,Rr=ir.stride|0,Nr=ir.divisor|0)),gi=s.location,ui=$e[gi],Me===1?(ui.buffer||U.enableVertexAttribArray(gi),Qr=lr||1,(ui.type!==ur||ui.size!==Qr||ui.buffer!==bt||ui.normalized!==Ct||ui.offset!==Ir||ui.stride!==Rr)&&(U.bindBuffer(34962,bt.buffer),U.vertexAttribPointer(gi,Qr,ur,Ct,Rr,Ir),ui.type=ur,ui.size=Qr,ui.buffer=bt,ui.normalized=Ct,ui.offset=Ir,ui.stride=Rr),ui.divisor!==Nr&&(Fi.vertexAttribDivisorANGLE(gi,Nr),ui.divisor=Nr)):(ui.buffer&&(U.disableVertexAttribArray(gi),ui.buffer=null),(ui.x!==Xe||ui.y!==Ye||ui.z!==et||ui.w!==gt)&&(U.vertexAttrib4f(gi,Xe,Ye,et,gt),ui.x=Xe,ui.y=Ye,ui.z=et,ui.w=gt)),Ui=this.sizeBuffer,Tr.buffer=Ui,ln=!1,Tt=1,_i=0,kn=0,ti=0,Fr=0,ji=null,na=0,mn=!1,$n=5126,Wi=0,Qi=0,_r=0,Re(Tr)?(ln=!0,ji=ce.createStream(34962,Tr),$n=ji.dtype):(ji=ce.getBuffer(Tr),ji?$n=ji.dtype:"constant"in Tr?(Tt=2,typeof Tr.constant=="number"?(_i=Tr.constant,kn=ti=Fr=0):(_i=Tr.constant.length>0?Tr.constant[0]:0,kn=Tr.constant.length>1?Tr.constant[1]:0,ti=Tr.constant.length>2?Tr.constant[2]:0,Fr=Tr.constant.length>3?Tr.constant[3]:0)):(Re(Tr.buffer)?ji=ce.createStream(34962,Tr.buffer):ji=ce.getBuffer(Tr.buffer),$n="type"in Tr?Kr[Tr.type]:ji.dtype,mn=!!Tr.normalized,na=Tr.size|0,Wi=Tr.offset|0,Qi=Tr.stride|0,_r=Tr.divisor|0)),Yr=l.location,fi=$e[Yr],Tt===1?(fi.buffer||U.enableVertexAttribArray(Yr),aa=na||1,(fi.type!==$n||fi.size!==aa||fi.buffer!==ji||fi.normalized!==mn||fi.offset!==Wi||fi.stride!==Qi)&&(U.bindBuffer(34962,ji.buffer),U.vertexAttribPointer(Yr,aa,$n,mn,Qi,Wi),fi.type=$n,fi.size=aa,fi.buffer=ji,fi.normalized=mn,fi.offset=Wi,fi.stride=Qi),fi.divisor!==_r&&(Fi.vertexAttribDivisorANGLE(Yr,_r),fi.divisor=_r)):(fi.buffer&&(U.disableVertexAttribArray(Yr),fi.buffer=null),(fi.x!==_i||fi.y!==kn||fi.z!==ti||fi.w!==Fr)&&(U.vertexAttrib4f(Yr,_i,kn,ti,Fr),fi.x=_i,fi.y=kn,fi.z=ti,fi.w=Fr)),sn=this.position,ca=!1,Kn=1,hn=0,Ta=0,tn=0,wi=0,rn=null,Ai=0,ea=!1,qn=5126,pi=0,Fn=0,Pa=0,Re(sn)?(ca=!0,rn=ce.createStream(34962,sn),qn=rn.dtype):(rn=ce.getBuffer(sn),rn?qn=rn.dtype:"constant"in sn?(Kn=2,typeof sn.constant=="number"?(hn=sn.constant,Ta=tn=wi=0):(hn=sn.constant.length>0?sn.constant[0]:0,Ta=sn.constant.length>1?sn.constant[1]:0,tn=sn.constant.length>2?sn.constant[2]:0,wi=sn.constant.length>3?sn.constant[3]:0)):(Re(sn.buffer)?rn=ce.createStream(34962,sn.buffer):rn=ce.getBuffer(sn.buffer),qn="type"in sn?Kr[sn.type]:rn.dtype,ea=!!sn.normalized,Ai=sn.size|0,pi=sn.offset|0,Fn=sn.stride|0,Pa=sn.divisor|0)),dr=u.location,ai=$e[dr],Kn===1?(ai.buffer||U.enableVertexAttribArray(dr),Zi=Ai||2,(ai.type!==qn||ai.size!==Zi||ai.buffer!==rn||ai.normalized!==ea||ai.offset!==pi||ai.stride!==Fn)&&(U.bindBuffer(34962,rn.buffer),U.vertexAttribPointer(dr,Zi,qn,ea,Fn,pi),ai.type=qn,ai.size=Zi,ai.buffer=rn,ai.normalized=ea,ai.offset=pi,ai.stride=Fn),ai.divisor!==Pa&&(Fi.vertexAttribDivisorANGLE(dr,Pa),ai.divisor=Pa)):(ai.buffer&&(U.disableVertexAttribArray(dr),ai.buffer=null),(ai.x!==hn||ai.y!==Ta||ai.z!==tn||ai.w!==wi)&&(U.vertexAttrib4f(dr,hn,Ta,tn,wi),ai.x=hn,ai.y=Ta,ai.z=tn,ai.w=wi)),Vi=this.sizeBuffer,vr.buffer=Vi,pa=!1,Na=1,an=0,wn=0,Ra=0,ei=0,Yn=null,Ja=0,ja=!1,ka=5126,ki=0,pn=0,Va=0,Re(vr)?(pa=!0,Yn=ce.createStream(34962,vr),ka=Yn.dtype):(Yn=ce.getBuffer(vr),Yn?ka=Yn.dtype:"constant"in vr?(Na=2,typeof vr.constant=="number"?(an=vr.constant,wn=Ra=ei=0):(an=vr.constant.length>0?vr.constant[0]:0,wn=vr.constant.length>1?vr.constant[1]:0,Ra=vr.constant.length>2?vr.constant[2]:0,ei=vr.constant.length>3?vr.constant[3]:0)):(Re(vr.buffer)?Yn=ce.createStream(34962,vr.buffer):Yn=ce.getBuffer(vr.buffer),ka="type"in vr?Kr[vr.type]:Yn.dtype,ja=!!vr.normalized,Ja=vr.size|0,ki=vr.offset|0,pn=vr.stride|0,Va=vr.divisor|0)),Gi=f.location,Pr=$e[Gi],Na===1?(Pr.buffer||U.enableVertexAttribArray(Gi),ri=Ja||1,(Pr.type!==ka||Pr.size!==ri||Pr.buffer!==Yn||Pr.normalized!==ja||Pr.offset!==ki||Pr.stride!==pn)&&(U.bindBuffer(34962,Yn.buffer),U.vertexAttribPointer(Gi,ri,ka,ja,pn,ki),Pr.type=ka,Pr.size=ri,Pr.buffer=Yn,Pr.normalized=ja,Pr.offset=ki,Pr.stride=pn),Pr.divisor!==Va&&(Fi.vertexAttribDivisorANGLE(Gi,Va),Pr.divisor=Va)):(Pr.buffer&&(U.disableVertexAttribArray(Gi),Pr.buffer=null),(Pr.x!==an||Pr.y!==wn||Pr.z!==Ra||Pr.w!==ei)&&(U.vertexAttrib4f(Gi,an,wn,Ra,ei),Pr.x=an,Pr.y=wn,Pr.z=Ra,Pr.w=ei)),bn=Hr.align,U.uniform1f(c.location,bn),Ri=d.call(this,se,Hr,0),Ri&&Ri._reglType==="framebuffer"&&(Ri=Ri.color[0]),vi=Ri._texture,U.uniform1i(h.location,vi.bind()),yr=v.call(this,se,Hr,0),Ti=yr[0],Cn=yr[1],U.uniform2f(p.location,Ti,Cn),Gr=m.call(this,se,Hr,0),Xn=Gr[0],nn=Gr[1],U.uniform2f(y.location,Xn,nn),ta=Hr.baseline,U.uniform1f(w.location,ta),Bi=b.call(this,se,Hr,0),U.uniform1f(_.location,Bi),On=Hr.color,Nn=On[0],ia=On[1],Jr=On[2],Ci=On[3],U.uniform4f(M.location,Nn,ia,Jr,Ci),un=A.call(this,se,Hr,0),U.uniform1f(x.location,un),Dn=Hr.opacity,U.uniform1f(T.location,Dn),Vn=Hr.positionOffset,vn=Vn[0],Br=Vn[1],U.uniform2f(g.location,vn,Br),Li=this.scale,Ua=Li[0],yi=Li[1],U.uniform2f(E.location,Ua,yi),Ma=this.translate,Ba=Ma[0],Bn=Ma[1],U.uniform2f(S.location,Ba,Bn),Hi=this.viewportArray,yn=Hi[0],jn=Hi[1],Un=Hi[2],zi=Hi[3],U.uniform4f(C.location,yn,jn,Un,zi),xr=ue.elements,xr?U.bindBuffer(34963,xr.buffer.buffer):Ze.currentVAO&&(xr=pe.getElements(Ze.currentVAO.elements),xr&&U.bindBuffer(34963,xr.buffer.buffer)),Ln=Hr.offset,xn=Hr.count,xn&&(da=ue.instances,da>0?xr?Fi.drawElementsInstancedANGLE(0,xn,xr.type,Ln<<(xr.type-5121>>1),da):Fi.drawArraysInstancedANGLE(0,Ln,xn,da):da<0&&(xr?U.drawElements(0,xn,xr.type,Ln<<(xr.type-5121>>1)):U.drawArrays(0,Ln,xn)),me.dirty=!0,Ze.setVAO(null),se.viewportWidth=Ur,se.viewportHeight=Sr,Cr&&(r.cpuTime+=performance.now()-di),Kt&&ce.destroyStream(bt),ln&&ce.destroyStream(ji),ca&&ce.destroyStream(rn),pa&&ce.destroyStream(Yn),vi.unbind())},scope:function(Hr,Di,gn){var wr,qr,Ut,jt,pr,Ur,Sr,Cr,di,Fi,ir,Kt,Me,Xe,Ye,et,gt,bt,lr,Ct,ur,Ir,Rr,Nr,gi,ui,Qr,Ui,ln,Tt,_i,kn,ti,Fr,ji,na,mn,$n,Wi,Qi,_r,Yr,fi,aa,sn,ca,Kn,hn,Ta,tn,wi,rn,Ai,ea,qn,pi,Fn,Pa,dr,ai,Zi,Vi,pa,Na,an,wn,Ra,ei,Yn,Ja,ja,ka,ki,pn,Va,Gi,Pr,ri,bn,Ri,vi,yr,Ti,Cn,Gr,Xn,nn,ta,Bi,On,Nn,ia,Jr,Ci,un,Dn,Vn,vn,Br,Li,Ua,yi,Ma,Ba,Bn,Hi,yn,jn,Un,zi,xr,Ln,xn,da,Mi,Xr,Gn,to,Jn,ro,mo,Oa,Si,co,Pn,Fa,oa,Hn,va,ma,Sa,Ei,jr,An,Za,Ga,Ca,za,Wn,Xi,sa,Mo,ya,Qn,Tn,Da,zn,Ia,$i,In,qi,la,ga,go,eo,So,Mn,Ao,Ya,Co,Ii;wr=this.viewport,qr=wr.x|0,Ut=wr.y|0,jt="width"in wr?wr.width|0:se.framebufferWidth-qr,pr="height"in wr?wr.height|0:se.framebufferHeight-Ut,Ur=se.viewportWidth,se.viewportWidth=jt,Sr=se.viewportHeight,se.viewportHeight=pr,Cr=kt[0],kt[0]=qr,di=kt[1],kt[1]=Ut,Fi=kt[2],kt[2]=jt,ir=kt[3],kt[3]=pr,Kt=Qe[0],Qe[0]=k,Me=Qe[1],Qe[1]=D,Xe=Qe[2],Qe[2]=L,Ye=Qe[3],Qe[3]=P,et=be.blend_enable,be.blend_enable=I,gt=Le[0],Le[0]=F,bt=Le[1],Le[1]=z,lr=Le[2],Le[2]=B,Ct=Le[3],Le[3]=O,ur=be.depth_enable,be.depth_enable=W,Ir=be.stencil_enable,be.stencil_enable=X,Rr=me.profile,Rr&&(Nr=performance.now(),r.count++),gi=Hr.offset,ui=ue.offset,ue.offset=gi,Qr=Hr.count,Ui=ue.count,ue.count=Qr,ln=ue.primitive,ue.primitive=Z,Tt=m.call(this,se,Hr,gn),_i=it[j],it[j]=Tt,kn=v.call(this,se,Hr,gn),ti=it[q],it[q]=kn,Fr=d.call(this,se,Hr,gn),ji=it[Q],it[Q]=Fr,na=b.call(this,se,Hr,gn),mn=it[N],it[N]=na,$n=A.call(this,se,Hr,gn),Wi=it[V],it[V]=$n,Qi=Hr.color,_r=it[J],it[J]=Qi,Yr=Hr.opacity,fi=it[H],it[H]=Yr,aa=this.viewportArray,sn=it[$],it[$]=aa,ca=this.scale,Kn=it[te],it[te]=ca,hn=Hr.align,Ta=it[ie],it[ie]=hn,tn=Hr.baseline,wi=it[de],it[de]=tn,rn=this.translate,Ai=it[ge],it[ge]=rn,ea=Hr.positionOffset,qn=it[Ie],it[Ie]=ea,pi=this.charBuffer,Fn=!1,Pa=1,dr=0,ai=0,Zi=0,Vi=0,pa=null,Na=0,an=!1,wn=5126,Ra=0,ei=0,Yn=0,Re(pi)?(Fn=!0,pa=ce.createStream(34962,pi),wn=pa.dtype):(pa=ce.getBuffer(pi),pa?wn=pa.dtype:"constant"in pi?(Pa=2,typeof pi.constant=="number"?(dr=pi.constant,ai=Zi=Vi=0):(dr=pi.constant.length>0?pi.constant[0]:0,ai=pi.constant.length>1?pi.constant[1]:0,Zi=pi.constant.length>2?pi.constant[2]:0,Vi=pi.constant.length>3?pi.constant[3]:0)):(Re(pi.buffer)?pa=ce.createStream(34962,pi.buffer):pa=ce.getBuffer(pi.buffer),wn="type"in pi?Kr[pi.type]:pa.dtype,an=!!pi.normalized,Na=pi.size|0,Ra=pi.offset|0,ei=pi.stride|0,Yn=pi.divisor|0)),Ja=Ce.state,Ce.state=Pa,ja=Ce.x,Ce.x=dr,ka=Ce.y,Ce.y=ai,ki=Ce.z,Ce.z=Zi,pn=Ce.w,Ce.w=Vi,Va=Ce.buffer,Ce.buffer=pa,Gi=Ce.size,Ce.size=Na,Pr=Ce.normalized,Ce.normalized=an,ri=Ce.type,Ce.type=wn,bn=Ce.offset,Ce.offset=Ra,Ri=Ce.stride,Ce.stride=ei,vi=Ce.divisor,Ce.divisor=Yn,yr=this.position,Ti=!1,Cn=1,Gr=0,Xn=0,nn=0,ta=0,Bi=null,On=0,Nn=!1,ia=5126,Jr=0,Ci=0,un=0,Re(yr)?(Ti=!0,Bi=ce.createStream(34962,yr),ia=Bi.dtype):(Bi=ce.getBuffer(yr),Bi?ia=Bi.dtype:"constant"in yr?(Cn=2,typeof yr.constant=="number"?(Gr=yr.constant,Xn=nn=ta=0):(Gr=yr.constant.length>0?yr.constant[0]:0,Xn=yr.constant.length>1?yr.constant[1]:0,nn=yr.constant.length>2?yr.constant[2]:0,ta=yr.constant.length>3?yr.constant[3]:0)):(Re(yr.buffer)?Bi=ce.createStream(34962,yr.buffer):Bi=ce.getBuffer(yr.buffer),ia="type"in yr?Kr[yr.type]:Bi.dtype,Nn=!!yr.normalized,On=yr.size|0,Jr=yr.offset|0,Ci=yr.stride|0,un=yr.divisor|0)),Dn=le.state,le.state=Cn,Vn=le.x,le.x=Gr,vn=le.y,le.y=Xn,Br=le.z,le.z=nn,Li=le.w,le.w=ta,Ua=le.buffer,le.buffer=Bi,yi=le.size,le.size=On,Ma=le.normalized,le.normalized=Nn,Ba=le.type,le.type=ia,Bn=le.offset,le.offset=Jr,Hi=le.stride,le.stride=Ci,yn=le.divisor,le.divisor=un,jn=this.sizeBuffer,Tr.buffer=jn,Un=!1,zi=1,xr=0,Ln=0,xn=0,da=0,Mi=null,Xr=0,Gn=!1,to=5126,Jn=0,ro=0,mo=0,Re(Tr)?(Un=!0,Mi=ce.createStream(34962,Tr),to=Mi.dtype):(Mi=ce.getBuffer(Tr),Mi?to=Mi.dtype:"constant"in Tr?(zi=2,typeof Tr.constant=="number"?(xr=Tr.constant,Ln=xn=da=0):(xr=Tr.constant.length>0?Tr.constant[0]:0,Ln=Tr.constant.length>1?Tr.constant[1]:0,xn=Tr.constant.length>2?Tr.constant[2]:0,da=Tr.constant.length>3?Tr.constant[3]:0)):(Re(Tr.buffer)?Mi=ce.createStream(34962,Tr.buffer):Mi=ce.getBuffer(Tr.buffer),to="type"in Tr?Kr[Tr.type]:Mi.dtype,Gn=!!Tr.normalized,Xr=Tr.size|0,Jn=Tr.offset|0,ro=Tr.stride|0,mo=Tr.divisor|0)),Oa=re.state,re.state=zi,Si=re.x,re.x=xr,co=re.y,re.y=Ln,Pn=re.z,re.z=xn,Fa=re.w,re.w=da,oa=re.buffer,re.buffer=Mi,Hn=re.size,re.size=Xr,va=re.normalized,re.normalized=Gn,ma=re.type,re.type=to,Sa=re.offset,re.offset=Jn,Ei=re.stride,re.stride=ro,jr=re.divisor,re.divisor=mo,An=this.sizeBuffer,vr.buffer=An,Za=!1,Ga=1,Ca=0,za=0,Wn=0,Xi=0,sa=null,Mo=0,ya=!1,Qn=5126,Tn=0,Da=0,zn=0,Re(vr)?(Za=!0,sa=ce.createStream(34962,vr),Qn=sa.dtype):(sa=ce.getBuffer(vr),sa?Qn=sa.dtype:"constant"in vr?(Ga=2,typeof vr.constant=="number"?(Ca=vr.constant,za=Wn=Xi=0):(Ca=vr.constant.length>0?vr.constant[0]:0,za=vr.constant.length>1?vr.constant[1]:0,Wn=vr.constant.length>2?vr.constant[2]:0,Xi=vr.constant.length>3?vr.constant[3]:0)):(Re(vr.buffer)?sa=ce.createStream(34962,vr.buffer):sa=ce.getBuffer(vr.buffer),Qn="type"in vr?Kr[vr.type]:sa.dtype,ya=!!vr.normalized,Mo=vr.size|0,Tn=vr.offset|0,Da=vr.stride|0,zn=vr.divisor|0)),Ia=Ee.state,Ee.state=Ga,$i=Ee.x,Ee.x=Ca,In=Ee.y,Ee.y=za,qi=Ee.z,Ee.z=Wn,la=Ee.w,Ee.w=Xi,ga=Ee.buffer,Ee.buffer=sa,go=Ee.size,Ee.size=Mo,eo=Ee.normalized,Ee.normalized=ya,So=Ee.type,Ee.type=Qn,Mn=Ee.offset,Ee.offset=Tn,Ao=Ee.stride,Ee.stride=Da,Ya=Ee.divisor,Ee.divisor=zn,Co=Be.vert,Be.vert=we,Ii=Be.frag,Be.frag=oe,me.dirty=!0,Di(se,Hr,gn),se.viewportWidth=Ur,se.viewportHeight=Sr,kt[0]=Cr,kt[1]=di,kt[2]=Fi,kt[3]=ir,Qe[0]=Kt,Qe[1]=Me,Qe[2]=Xe,Qe[3]=Ye,be.blend_enable=et,Le[0]=gt,Le[1]=bt,Le[2]=lr,Le[3]=Ct,be.depth_enable=ur,be.stencil_enable=Ir,Rr&&(r.cpuTime+=performance.now()-Nr),ue.offset=ui,ue.count=Ui,ue.primitive=ln,it[j]=_i,it[q]=ti,it[Q]=ji,it[N]=mn,it[V]=Wi,it[J]=_r,it[H]=fi,it[$]=sn,it[te]=Kn,it[ie]=Ta,it[de]=wi,it[ge]=Ai,it[Ie]=qn,Fn&&ce.destroyStream(pa),Ce.state=Ja,Ce.x=ja,Ce.y=ka,Ce.z=ki,Ce.w=pn,Ce.buffer=Va,Ce.size=Gi,Ce.normalized=Pr,Ce.type=ri,Ce.offset=bn,Ce.stride=Ri,Ce.divisor=vi,Ti&&ce.destroyStream(Bi),le.state=Dn,le.x=Vn,le.y=vn,le.z=Br,le.w=Li,le.buffer=Ua,le.size=yi,le.normalized=Ma,le.type=Ba,le.offset=Bn,le.stride=Hi,le.divisor=yn,Un&&ce.destroyStream(Mi),re.state=Oa,re.x=Si,re.y=co,re.z=Pn,re.w=Fa,re.buffer=oa,re.size=Hn,re.normalized=va,re.type=ma,re.offset=Sa,re.stride=Ei,re.divisor=jr,Za&&ce.destroyStream(sa),Ee.state=Ia,Ee.x=$i,Ee.y=In,Ee.z=qi,Ee.w=la,Ee.buffer=ga,Ee.size=go,Ee.normalized=eo,Ee.type=So,Ee.offset=Mn,Ee.stride=Ao,Ee.divisor=Ya,Be.vert=Co,Be.frag=Ii,me.dirty=!0},batch:function(Hr,Di){var gn,wr,qr,Ut,jt,pr,Ur,Sr,Cr,di,Fi,ir,Kt,Me;if(gn=Ue.angle_instanced_arrays,wr=nt.next,wr!==nt.cur&&(wr?U.bindFramebuffer(36160,wr.framebuffer):U.bindFramebuffer(36160,null),nt.cur=wr),me.dirty){var Xe,Ye,et,gt,bt,lr,Ct,ur,Ir,Rr,Nr,gi,ui,Qr,Ui,ln,Tt,_i,kn,ti,Fr,ji,na,mn,$n,Wi,Qi,_r,Yr,fi,aa,sn,ca,Kn,hn,Ta,tn,wi,rn;Xe=be.dither,Xe!==me.dither&&(Xe?U.enable(3024):U.disable(3024),me.dither=Xe),Ye=De[0],et=De[1],(Ye!==Ve[0]||et!==Ve[1])&&(U.blendEquationSeparate(Ye,et),Ve[0]=Ye,Ve[1]=et),gt=be.depth_func,gt!==me.depth_func&&(U.depthFunc(gt),me.depth_func=gt),bt=ze[0],lr=ze[1],(bt!==st[0]||lr!==st[1])&&(U.depthRange(bt,lr),st[0]=bt,st[1]=lr),Ct=be.depth_mask,Ct!==me.depth_mask&&(U.depthMask(Ct),me.depth_mask=Ct),ur=ft[0],Ir=ft[1],Rr=ft[2],Nr=ft[3],(ur!==wt[0]||Ir!==wt[1]||Rr!==wt[2]||Nr!==wt[3])&&(U.colorMask(ur,Ir,Rr,Nr),wt[0]=ur,wt[1]=Ir,wt[2]=Rr,wt[3]=Nr),gi=be.cull_enable,gi!==me.cull_enable&&(gi?U.enable(2884):U.disable(2884),me.cull_enable=gi),ui=be.cull_face,ui!==me.cull_face&&(U.cullFace(ui),me.cull_face=ui),Qr=be.frontFace,Qr!==me.frontFace&&(U.frontFace(Qr),me.frontFace=Qr),Ui=be.lineWidth,Ui!==me.lineWidth&&(U.lineWidth(Ui),me.lineWidth=Ui),ln=be.polygonOffset_enable,ln!==me.polygonOffset_enable&&(ln?U.enable(32823):U.disable(32823),me.polygonOffset_enable=ln),Tt=At[0],_i=At[1],(Tt!==Vt[0]||_i!==Vt[1])&&(U.polygonOffset(Tt,_i),Vt[0]=Tt,Vt[1]=_i),kn=be.sample_alpha,kn!==me.sample_alpha&&(kn?U.enable(32926):U.disable(32926),me.sample_alpha=kn),ti=be.sample_enable,ti!==me.sample_enable&&(ti?U.enable(32928):U.disable(32928),me.sample_enable=ti),Fr=Dt[0],ji=Dt[1],(Fr!==yt[0]||ji!==yt[1])&&(U.sampleCoverage(Fr,ji),yt[0]=Fr,yt[1]=ji),na=be.stencil_mask,na!==me.stencil_mask&&(U.stencilMask(na),me.stencil_mask=na),mn=St[0],$n=St[1],Wi=St[2],(mn!==rr[0]||$n!==rr[1]||Wi!==rr[2])&&(U.stencilFunc(mn,$n,Wi),rr[0]=mn,rr[1]=$n,rr[2]=Wi),Qi=Ke[0],_r=Ke[1],Yr=Ke[2],fi=Ke[3],(Qi!==at[0]||_r!==at[1]||Yr!==at[2]||fi!==at[3])&&(U.stencilOpSeparate(Qi,_r,Yr,fi),at[0]=Qi,at[1]=_r,at[2]=Yr,at[3]=fi),aa=lt[0],sn=lt[1],ca=lt[2],Kn=lt[3],(aa!==vt[0]||sn!==vt[1]||ca!==vt[2]||Kn!==vt[3])&&(U.stencilOpSeparate(aa,sn,ca,Kn),vt[0]=aa,vt[1]=sn,vt[2]=ca,vt[3]=Kn),hn=be.scissor_enable,hn!==me.scissor_enable&&(hn?U.enable(3089):U.disable(3089),me.scissor_enable=hn),Ta=We[0],tn=We[1],wi=We[2],rn=We[3],(Ta!==ut[0]||tn!==ut[1]||wi!==ut[2]||rn!==ut[3])&&(U.scissor(Ta,tn,wi,rn),ut[0]=Ta,ut[1]=tn,ut[2]=wi,ut[3]=rn)}qr=this.viewport,Ut=qr.x|0,jt=qr.y|0,pr="width"in qr?qr.width|0:se.framebufferWidth-Ut,Ur="height"in qr?qr.height|0:se.framebufferHeight-jt,Sr=se.viewportWidth,se.viewportWidth=pr,Cr=se.viewportHeight,se.viewportHeight=Ur,U.viewport(Ut,jt,pr,Ur),$t[0]=Ut,$t[1]=jt,$t[2]=pr,$t[3]=Ur,U.blendColor(0,0,0,1),Pe[0]=0,Pe[1]=0,Pe[2]=0,Pe[3]=1,Y?U.enable(3042):U.disable(3042),me.blend_enable=Y,U.blendFuncSeparate(770,771,773,1),Se[0]=770,Se[1]=771,Se[2]=773,Se[3]=1,ne?U.enable(2929):U.disable(2929),me.depth_enable=ne,ye?U.enable(2960):U.disable(2960),me.stencil_enable=ye,di=me.profile,di&&(Fi=performance.now(),r.count+=Di),U.useProgram(o.program),ir=Ue.angle_instanced_arrays;var Ai,ea,qn,pi,Fn,Pa,dr,ai,Zi,Vi,pa,Na,an,wn,Ra,ei,Yn,Ja,ja,ka,ki,pn,Va,Gi,Pr,ri,bn,Ri,vi,yr,Ti,Cn,Gr,Xn,nn,ta,Bi,On,Nn,ia,Jr,Ci,un,Dn,Vn,vn,Br,Li,Ua,yi,Ma,Ba,Bn,Hi,yn,jn,Un,zi,xr,Ln,xn,da,Mi,Xr,Gn,to,Jn,ro,mo,Oa,Si,co,Pn,Fa,oa,Hn,va,ma,Sa,Ei,jr;for(Ze.setVAO(null),Ai=this.charBuffer,ea=!1,qn=1,pi=0,Fn=0,Pa=0,dr=0,ai=null,Zi=0,Vi=!1,pa=5126,Na=0,an=0,wn=0,Re(Ai)?(ea=!0,ai=ce.createStream(34962,Ai),pa=ai.dtype):(ai=ce.getBuffer(Ai),ai?pa=ai.dtype:"constant"in Ai?(qn=2,typeof Ai.constant=="number"?(pi=Ai.constant,Fn=Pa=dr=0):(pi=Ai.constant.length>0?Ai.constant[0]:0,Fn=Ai.constant.length>1?Ai.constant[1]:0,Pa=Ai.constant.length>2?Ai.constant[2]:0,dr=Ai.constant.length>3?Ai.constant[3]:0)):(Re(Ai.buffer)?ai=ce.createStream(34962,Ai.buffer):ai=ce.getBuffer(Ai.buffer),pa="type"in Ai?Kr[Ai.type]:ai.dtype,Vi=!!Ai.normalized,Zi=Ai.size|0,Na=Ai.offset|0,an=Ai.stride|0,wn=Ai.divisor|0)),Ra=s.location,ei=$e[Ra],qn===1?(ei.buffer||U.enableVertexAttribArray(Ra),Yn=Zi||1,(ei.type!==pa||ei.size!==Yn||ei.buffer!==ai||ei.normalized!==Vi||ei.offset!==Na||ei.stride!==an)&&(U.bindBuffer(34962,ai.buffer),U.vertexAttribPointer(Ra,Yn,pa,Vi,an,Na),ei.type=pa,ei.size=Yn,ei.buffer=ai,ei.normalized=Vi,ei.offset=Na,ei.stride=an),ei.divisor!==wn&&(ir.vertexAttribDivisorANGLE(Ra,wn),ei.divisor=wn)):(ei.buffer&&(U.disableVertexAttribArray(Ra),ei.buffer=null),(ei.x!==pi||ei.y!==Fn||ei.z!==Pa||ei.w!==dr)&&(U.vertexAttrib4f(Ra,pi,Fn,Pa,dr),ei.x=pi,ei.y=Fn,ei.z=Pa,ei.w=dr)),Ja=this.sizeBuffer,Tr.buffer=Ja,ja=!1,ka=1,ki=0,pn=0,Va=0,Gi=0,Pr=null,ri=0,bn=!1,Ri=5126,vi=0,yr=0,Ti=0,Re(Tr)?(ja=!0,Pr=ce.createStream(34962,Tr),Ri=Pr.dtype):(Pr=ce.getBuffer(Tr),Pr?Ri=Pr.dtype:"constant"in Tr?(ka=2,typeof Tr.constant=="number"?(ki=Tr.constant,pn=Va=Gi=0):(ki=Tr.constant.length>0?Tr.constant[0]:0,pn=Tr.constant.length>1?Tr.constant[1]:0,Va=Tr.constant.length>2?Tr.constant[2]:0,Gi=Tr.constant.length>3?Tr.constant[3]:0)):(Re(Tr.buffer)?Pr=ce.createStream(34962,Tr.buffer):Pr=ce.getBuffer(Tr.buffer),Ri="type"in Tr?Kr[Tr.type]:Pr.dtype,bn=!!Tr.normalized,ri=Tr.size|0,vi=Tr.offset|0,yr=Tr.stride|0,Ti=Tr.divisor|0)),Cn=l.location,Gr=$e[Cn],ka===1?(Gr.buffer||U.enableVertexAttribArray(Cn),Xn=ri||1,(Gr.type!==Ri||Gr.size!==Xn||Gr.buffer!==Pr||Gr.normalized!==bn||Gr.offset!==vi||Gr.stride!==yr)&&(U.bindBuffer(34962,Pr.buffer),U.vertexAttribPointer(Cn,Xn,Ri,bn,yr,vi),Gr.type=Ri,Gr.size=Xn,Gr.buffer=Pr,Gr.normalized=bn,Gr.offset=vi,Gr.stride=yr),Gr.divisor!==Ti&&(ir.vertexAttribDivisorANGLE(Cn,Ti),Gr.divisor=Ti)):(Gr.buffer&&(U.disableVertexAttribArray(Cn),Gr.buffer=null),(Gr.x!==ki||Gr.y!==pn||Gr.z!==Va||Gr.w!==Gi)&&(U.vertexAttrib4f(Cn,ki,pn,Va,Gi),Gr.x=ki,Gr.y=pn,Gr.z=Va,Gr.w=Gi)),nn=this.position,ta=!1,Bi=1,On=0,Nn=0,ia=0,Jr=0,Ci=null,un=0,Dn=!1,Vn=5126,vn=0,Br=0,Li=0,Re(nn)?(ta=!0,Ci=ce.createStream(34962,nn),Vn=Ci.dtype):(Ci=ce.getBuffer(nn),Ci?Vn=Ci.dtype:"constant"in nn?(Bi=2,typeof nn.constant=="number"?(On=nn.constant,Nn=ia=Jr=0):(On=nn.constant.length>0?nn.constant[0]:0,Nn=nn.constant.length>1?nn.constant[1]:0,ia=nn.constant.length>2?nn.constant[2]:0,Jr=nn.constant.length>3?nn.constant[3]:0)):(Re(nn.buffer)?Ci=ce.createStream(34962,nn.buffer):Ci=ce.getBuffer(nn.buffer),Vn="type"in nn?Kr[nn.type]:Ci.dtype,Dn=!!nn.normalized,un=nn.size|0,vn=nn.offset|0,Br=nn.stride|0,Li=nn.divisor|0)),Ua=u.location,yi=$e[Ua],Bi===1?(yi.buffer||U.enableVertexAttribArray(Ua),Ma=un||2,(yi.type!==Vn||yi.size!==Ma||yi.buffer!==Ci||yi.normalized!==Dn||yi.offset!==vn||yi.stride!==Br)&&(U.bindBuffer(34962,Ci.buffer),U.vertexAttribPointer(Ua,Ma,Vn,Dn,Br,vn),yi.type=Vn,yi.size=Ma,yi.buffer=Ci,yi.normalized=Dn,yi.offset=vn,yi.stride=Br),yi.divisor!==Li&&(ir.vertexAttribDivisorANGLE(Ua,Li),yi.divisor=Li)):(yi.buffer&&(U.disableVertexAttribArray(Ua),yi.buffer=null),(yi.x!==On||yi.y!==Nn||yi.z!==ia||yi.w!==Jr)&&(U.vertexAttrib4f(Ua,On,Nn,ia,Jr),yi.x=On,yi.y=Nn,yi.z=ia,yi.w=Jr)),Ba=this.sizeBuffer,vr.buffer=Ba,Bn=!1,Hi=1,yn=0,jn=0,Un=0,zi=0,xr=null,Ln=0,xn=!1,da=5126,Mi=0,Xr=0,Gn=0,Re(vr)?(Bn=!0,xr=ce.createStream(34962,vr),da=xr.dtype):(xr=ce.getBuffer(vr),xr?da=xr.dtype:"constant"in vr?(Hi=2,typeof vr.constant=="number"?(yn=vr.constant,jn=Un=zi=0):(yn=vr.constant.length>0?vr.constant[0]:0,jn=vr.constant.length>1?vr.constant[1]:0,Un=vr.constant.length>2?vr.constant[2]:0,zi=vr.constant.length>3?vr.constant[3]:0)):(Re(vr.buffer)?xr=ce.createStream(34962,vr.buffer):xr=ce.getBuffer(vr.buffer),da="type"in vr?Kr[vr.type]:xr.dtype,xn=!!vr.normalized,Ln=vr.size|0,Mi=vr.offset|0,Xr=vr.stride|0,Gn=vr.divisor|0)),to=f.location,Jn=$e[to],Hi===1?(Jn.buffer||U.enableVertexAttribArray(to),ro=Ln||1,(Jn.type!==da||Jn.size!==ro||Jn.buffer!==xr||Jn.normalized!==xn||Jn.offset!==Mi||Jn.stride!==Xr)&&(U.bindBuffer(34962,xr.buffer),U.vertexAttribPointer(to,ro,da,xn,Xr,Mi),Jn.type=da,Jn.size=ro,Jn.buffer=xr,Jn.normalized=xn,Jn.offset=Mi,Jn.stride=Xr),Jn.divisor!==Gn&&(ir.vertexAttribDivisorANGLE(to,Gn),Jn.divisor=Gn)):(Jn.buffer&&(U.disableVertexAttribArray(to),Jn.buffer=null),(Jn.x!==yn||Jn.y!==jn||Jn.z!==Un||Jn.w!==zi)&&(U.vertexAttrib4f(to,yn,jn,Un,zi),Jn.x=yn,Jn.y=jn,Jn.z=Un,Jn.w=zi)),mo=this.scale,Oa=mo[0],Si=mo[1],U.uniform2f(E.location,Oa,Si),co=this.translate,Pn=co[0],Fa=co[1],U.uniform2f(S.location,Pn,Fa),oa=this.viewportArray,Hn=oa[0],va=oa[1],ma=oa[2],Sa=oa[3],U.uniform4f(C.location,Hn,va,ma,Sa),Ei=ue.elements,Ei?U.bindBuffer(34963,Ei.buffer.buffer):Ze.currentVAO&&(Ei=pe.getElements(Ze.currentVAO.elements),Ei&&U.bindBuffer(34963,Ei.buffer.buffer)),jr=ue.instances,Kt=0;Kt0?Ei?ir.drawElementsInstancedANGLE(0,mt,Ei.type,rt<<(Ei.type-5121>>1),jr):ir.drawArraysInstancedANGLE(0,rt,mt,jr):jr<0&&(Ei?U.drawElements(0,mt,Ei.type,rt<<(Ei.type-5121>>1)):U.drawArrays(0,rt,mt)),Ca.unbind())}ea&&ce.destroyStream(ai),ja&&ce.destroyStream(Pr),ta&&ce.destroyStream(Ci),Bn&&ce.destroyStream(xr),me.dirty=!0,Ze.setVAO(null),se.viewportWidth=Sr,se.viewportHeight=Cr,di&&(r.cpuTime+=performance.now()-Fi)}}}});var SB=K((Rri,TZe)=>{"use strict";TZe.exports=function(t,r,i,n){"use strict";var a,o,s,l,u,f,c,h,d,p,v,y,m,w,_,b,M,x,A,T,g,E,S,C,k,D,L,P,I,F,z,B,O,W,X,Z,j,q,Q,N,V,J,H,$,te,ie,de,ge,Ie;return a=t.gl,o=t.context,s=t.strings,l=t.next,u=t.current,f=t.draw,c=t.elements,h=t.buffer,d=t.shader,p=t.attributes,v=t.vao,y=t.uniforms,m=t.framebuffer,w=t.extensions,_=t.timer,b=t.isBufferArgs,M=l.blend_color,x=u.blend_color,A=l.blend_equation,T=u.blend_equation,g=l.blend_func,E=u.blend_func,S=l.depth_range,C=u.depth_range,k=l.colorMask,D=u.colorMask,L=l.polygonOffset_offset,P=u.polygonOffset_offset,I=l.sample_coverage,F=u.sample_coverage,z=l.stencil_func,B=u.stencil_func,O=l.stencil_opFront,W=u.stencil_opFront,X=l.stencil_opBack,Z=u.stencil_opBack,j=l.scissor_box,q=u.scissor_box,Q=l.viewport,N=u.viewport,V={points:0,point:0,lines:1,line:1,triangles:4,triangle:4,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},J={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},H={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},$={add:32774,subtract:32778,"reverse subtract":32779},te={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},ie={int8:5120,int16:5122,int32:5124,uint8:5121,uint16:5123,uint32:5125,float:5126,float32:5126},de={cw:2304,ccw:2305},ge={},Ie={},{draw:function(Ce){var le,re,Ee,we,oe,Y,ne,ye,U;if(le=w.angle_instanced_arrays,re=m.next,re!==m.cur&&(re?a.bindFramebuffer(36160,re.framebuffer):a.bindFramebuffer(36160,null),m.cur=re),u.dirty){var se,Ae,be,me,ue,pe,ce,Be,$e,Ze,it,nt,Ue,xe,Re,Qe,Pe,De,Ve,Le,Se,ze,st,ft,wt,At,Vt,Dt,yt,St,rr,Ke,at,lt,vt,We,ut,kt,$t,or,Lr,Er,hr,ni,Kr,si,Tr,vr,Hr,Di,gn,wr,qr,Ut;se=l.dither,se!==u.dither&&(se?a.enable(3024):a.disable(3024),u.dither=se),Ae=l.blend_enable,Ae!==u.blend_enable&&(Ae?a.enable(3042):a.disable(3042),u.blend_enable=Ae),be=M[0],me=M[1],ue=M[2],pe=M[3],(be!==x[0]||me!==x[1]||ue!==x[2]||pe!==x[3])&&(a.blendColor(be,me,ue,pe),x[0]=be,x[1]=me,x[2]=ue,x[3]=pe),ce=A[0],Be=A[1],(ce!==T[0]||Be!==T[1])&&(a.blendEquationSeparate(ce,Be),T[0]=ce,T[1]=Be),$e=g[0],Ze=g[1],it=g[2],nt=g[3],($e!==E[0]||Ze!==E[1]||it!==E[2]||nt!==E[3])&&(a.blendFuncSeparate($e,Ze,it,nt),E[0]=$e,E[1]=Ze,E[2]=it,E[3]=nt),Ue=l.depth_enable,Ue!==u.depth_enable&&(Ue?a.enable(2929):a.disable(2929),u.depth_enable=Ue),xe=l.depth_func,xe!==u.depth_func&&(a.depthFunc(xe),u.depth_func=xe),Re=S[0],Qe=S[1],(Re!==C[0]||Qe!==C[1])&&(a.depthRange(Re,Qe),C[0]=Re,C[1]=Qe),Pe=l.depth_mask,Pe!==u.depth_mask&&(a.depthMask(Pe),u.depth_mask=Pe),De=k[0],Ve=k[1],Le=k[2],Se=k[3],(De!==D[0]||Ve!==D[1]||Le!==D[2]||Se!==D[3])&&(a.colorMask(De,Ve,Le,Se),D[0]=De,D[1]=Ve,D[2]=Le,D[3]=Se),ze=l.cull_enable,ze!==u.cull_enable&&(ze?a.enable(2884):a.disable(2884),u.cull_enable=ze),st=l.cull_face,st!==u.cull_face&&(a.cullFace(st),u.cull_face=st),ft=l.frontFace,ft!==u.frontFace&&(a.frontFace(ft),u.frontFace=ft),wt=l.lineWidth,wt!==u.lineWidth&&(a.lineWidth(wt),u.lineWidth=wt),At=l.polygonOffset_enable,At!==u.polygonOffset_enable&&(At?a.enable(32823):a.disable(32823),u.polygonOffset_enable=At),Vt=L[0],Dt=L[1],(Vt!==P[0]||Dt!==P[1])&&(a.polygonOffset(Vt,Dt),P[0]=Vt,P[1]=Dt),yt=l.sample_alpha,yt!==u.sample_alpha&&(yt?a.enable(32926):a.disable(32926),u.sample_alpha=yt),St=l.sample_enable,St!==u.sample_enable&&(St?a.enable(32928):a.disable(32928),u.sample_enable=St),rr=I[0],Ke=I[1],(rr!==F[0]||Ke!==F[1])&&(a.sampleCoverage(rr,Ke),F[0]=rr,F[1]=Ke),at=l.stencil_enable,at!==u.stencil_enable&&(at?a.enable(2960):a.disable(2960),u.stencil_enable=at),lt=l.stencil_mask,lt!==u.stencil_mask&&(a.stencilMask(lt),u.stencil_mask=lt),vt=z[0],We=z[1],ut=z[2],(vt!==B[0]||We!==B[1]||ut!==B[2])&&(a.stencilFunc(vt,We,ut),B[0]=vt,B[1]=We,B[2]=ut),kt=O[0],$t=O[1],or=O[2],Lr=O[3],(kt!==W[0]||$t!==W[1]||or!==W[2]||Lr!==W[3])&&(a.stencilOpSeparate(kt,$t,or,Lr),W[0]=kt,W[1]=$t,W[2]=or,W[3]=Lr),Er=X[0],hr=X[1],ni=X[2],Kr=X[3],(Er!==Z[0]||hr!==Z[1]||ni!==Z[2]||Kr!==Z[3])&&(a.stencilOpSeparate(Er,hr,ni,Kr),Z[0]=Er,Z[1]=hr,Z[2]=ni,Z[3]=Kr),si=l.scissor_enable,si!==u.scissor_enable&&(si?a.enable(3089):a.disable(3089),u.scissor_enable=si),Tr=j[0],vr=j[1],Hr=j[2],Di=j[3],(Tr!==q[0]||vr!==q[1]||Hr!==q[2]||Di!==q[3])&&(a.scissor(Tr,vr,Hr,Di),q[0]=Tr,q[1]=vr,q[2]=Hr,q[3]=Di),gn=Q[0],wr=Q[1],qr=Q[2],Ut=Q[3],(gn!==N[0]||wr!==N[1]||qr!==N[2]||Ut!==N[3])&&(a.viewport(gn,wr,qr,Ut),N[0]=gn,N[1]=wr,N[2]=qr,N[3]=Ut),u.dirty=!1}Ee=u.profile,Ee&&(we=performance.now(),r.count++),oe=d.frag,Y=d.vert,ne=d.program(Y,oe),a.useProgram(ne.program),v.setVAO(null),ye=ne.id,U=ge[ye],U?U.call(this,Ce):(U=ge[ye]=i(ne),U.call(this,Ce)),v.setVAO(null),Ee&&(r.cpuTime+=performance.now()-we)},scope:function(Ce,le,re){var Ee,we;Ee=u.profile,Ee&&(we=performance.now(),r.count++),le(o,Ce,re),Ee&&(r.cpuTime+=performance.now()-we)},batch:function(Ce,le){var re,Ee,we,oe,Y,ne,ye,U,se;if(re=w.angle_instanced_arrays,Ee=m.next,Ee!==m.cur&&(Ee?a.bindFramebuffer(36160,Ee.framebuffer):a.bindFramebuffer(36160,null),m.cur=Ee),u.dirty){var Ae,be,me,ue,pe,ce,Be,$e,Ze,it,nt,Ue,xe,Re,Qe,Pe,De,Ve,Le,Se,ze,st,ft,wt,At,Vt,Dt,yt,St,rr,Ke,at,lt,vt,We,ut,kt,$t,or,Lr,Er,hr,ni,Kr,si,Tr,vr,Hr,Di,gn,wr,qr,Ut,jt;Ae=l.dither,Ae!==u.dither&&(Ae?a.enable(3024):a.disable(3024),u.dither=Ae),be=l.blend_enable,be!==u.blend_enable&&(be?a.enable(3042):a.disable(3042),u.blend_enable=be),me=M[0],ue=M[1],pe=M[2],ce=M[3],(me!==x[0]||ue!==x[1]||pe!==x[2]||ce!==x[3])&&(a.blendColor(me,ue,pe,ce),x[0]=me,x[1]=ue,x[2]=pe,x[3]=ce),Be=A[0],$e=A[1],(Be!==T[0]||$e!==T[1])&&(a.blendEquationSeparate(Be,$e),T[0]=Be,T[1]=$e),Ze=g[0],it=g[1],nt=g[2],Ue=g[3],(Ze!==E[0]||it!==E[1]||nt!==E[2]||Ue!==E[3])&&(a.blendFuncSeparate(Ze,it,nt,Ue),E[0]=Ze,E[1]=it,E[2]=nt,E[3]=Ue),xe=l.depth_enable,xe!==u.depth_enable&&(xe?a.enable(2929):a.disable(2929),u.depth_enable=xe),Re=l.depth_func,Re!==u.depth_func&&(a.depthFunc(Re),u.depth_func=Re),Qe=S[0],Pe=S[1],(Qe!==C[0]||Pe!==C[1])&&(a.depthRange(Qe,Pe),C[0]=Qe,C[1]=Pe),De=l.depth_mask,De!==u.depth_mask&&(a.depthMask(De),u.depth_mask=De),Ve=k[0],Le=k[1],Se=k[2],ze=k[3],(Ve!==D[0]||Le!==D[1]||Se!==D[2]||ze!==D[3])&&(a.colorMask(Ve,Le,Se,ze),D[0]=Ve,D[1]=Le,D[2]=Se,D[3]=ze),st=l.cull_enable,st!==u.cull_enable&&(st?a.enable(2884):a.disable(2884),u.cull_enable=st),ft=l.cull_face,ft!==u.cull_face&&(a.cullFace(ft),u.cull_face=ft),wt=l.frontFace,wt!==u.frontFace&&(a.frontFace(wt),u.frontFace=wt),At=l.lineWidth,At!==u.lineWidth&&(a.lineWidth(At),u.lineWidth=At),Vt=l.polygonOffset_enable,Vt!==u.polygonOffset_enable&&(Vt?a.enable(32823):a.disable(32823),u.polygonOffset_enable=Vt),Dt=L[0],yt=L[1],(Dt!==P[0]||yt!==P[1])&&(a.polygonOffset(Dt,yt),P[0]=Dt,P[1]=yt),St=l.sample_alpha,St!==u.sample_alpha&&(St?a.enable(32926):a.disable(32926),u.sample_alpha=St),rr=l.sample_enable,rr!==u.sample_enable&&(rr?a.enable(32928):a.disable(32928),u.sample_enable=rr),Ke=I[0],at=I[1],(Ke!==F[0]||at!==F[1])&&(a.sampleCoverage(Ke,at),F[0]=Ke,F[1]=at),lt=l.stencil_enable,lt!==u.stencil_enable&&(lt?a.enable(2960):a.disable(2960),u.stencil_enable=lt),vt=l.stencil_mask,vt!==u.stencil_mask&&(a.stencilMask(vt),u.stencil_mask=vt),We=z[0],ut=z[1],kt=z[2],(We!==B[0]||ut!==B[1]||kt!==B[2])&&(a.stencilFunc(We,ut,kt),B[0]=We,B[1]=ut,B[2]=kt),$t=O[0],or=O[1],Lr=O[2],Er=O[3],($t!==W[0]||or!==W[1]||Lr!==W[2]||Er!==W[3])&&(a.stencilOpSeparate($t,or,Lr,Er),W[0]=$t,W[1]=or,W[2]=Lr,W[3]=Er),hr=X[0],ni=X[1],Kr=X[2],si=X[3],(hr!==Z[0]||ni!==Z[1]||Kr!==Z[2]||si!==Z[3])&&(a.stencilOpSeparate(hr,ni,Kr,si),Z[0]=hr,Z[1]=ni,Z[2]=Kr,Z[3]=si),Tr=l.scissor_enable,Tr!==u.scissor_enable&&(Tr?a.enable(3089):a.disable(3089),u.scissor_enable=Tr),vr=j[0],Hr=j[1],Di=j[2],gn=j[3],(vr!==q[0]||Hr!==q[1]||Di!==q[2]||gn!==q[3])&&(a.scissor(vr,Hr,Di,gn),q[0]=vr,q[1]=Hr,q[2]=Di,q[3]=gn),wr=Q[0],qr=Q[1],Ut=Q[2],jt=Q[3],(wr!==N[0]||qr!==N[1]||Ut!==N[2]||jt!==N[3])&&(a.viewport(wr,qr,Ut,jt),N[0]=wr,N[1]=qr,N[2]=Ut,N[3]=jt),u.dirty=!1}we=u.profile,we&&(oe=performance.now(),r.count+=le),Y=d.frag,ne=d.vert,ye=d.program(ne,Y),a.useProgram(ye.program),v.setVAO(null),U=ye.id,se=Ie[U],se?se.call(this,Ce,le):(se=Ie[U]=n(ye),se.call(this,Ce,le)),v.setVAO(null),we&&(r.cpuTime+=performance.now()-oe)}}}});var EB=K((Bri,MZe)=>{"use strict";MZe.exports=function(t,r,i,n,a,o,s,l,u,f,c,h,d,p,v,y,m,w,_,b,M,x,A,T,g,E,S,C,k,D,L,P,I,F,z,B,O,W,X,Z,j,q,Q,N,V,J,H,$,te,ie,de,ge,Ie,Ce,le,re,Ee,we,oe,Y,ne,ye,U,se,Ae,be,me,ue,pe,ce,Be,$e,Ze,it,nt){"use strict";var Ue,xe,Re,Qe,Pe,De,Ve,Le,Se,ze,st,ft,wt,At,Vt,Dt,yt,St,rr,Ke,at,lt,vt,We,ut,kt,$t,or,Lr,Er,hr,ni,Kr,si,Tr,vr,Hr,Di,gn,wr,qr,Ut,jt,pr,Ur,Sr,Cr;return Ue=t.gl,xe=t.context,Re=t.strings,Qe=t.next,Pe=t.current,De=t.draw,Ve=t.elements,Le=t.buffer,Se=t.shader,ze=t.attributes,st=t.vao,ft=t.uniforms,wt=t.framebuffer,At=t.extensions,Vt=t.timer,Dt=t.isBufferArgs,yt=Qe.blend_color,St=Pe.blend_color,rr=Qe.blend_equation,Ke=Pe.blend_equation,at=Qe.blend_func,lt=Pe.blend_func,vt=Qe.depth_range,We=Pe.depth_range,ut=Qe.colorMask,kt=Pe.colorMask,$t=Qe.polygonOffset_offset,or=Pe.polygonOffset_offset,Lr=Qe.sample_coverage,Er=Pe.sample_coverage,hr=Qe.stencil_func,ni=Pe.stencil_func,Kr=Qe.stencil_opFront,si=Pe.stencil_opFront,Tr=Qe.stencil_opBack,vr=Pe.stencil_opBack,Hr=Qe.scissor_box,Di=Pe.scissor_box,gn=Qe.viewport,wr=Pe.viewport,qr={points:0,point:0,lines:1,line:1,triangles:4,triangle:4,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},Ut={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},jt={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},pr={add:32774,subtract:32778,"reverse subtract":32779},Ur={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},Sr={int8:5120,int16:5122,int32:5124,uint8:5121,uint16:5123,uint32:5125,float:5126,float32:5126},Cr={cw:2304,ccw:2305},{draw:function(di){var Fi,ir,Kt,Me,Xe,Ye,et,gt,bt,lr,Ct,ur,Ir,Rr,Nr,gi,ui,Qr,Ui,ln,Tt,_i,kn,ti,Fr,ji,na,mn,$n,Wi,Qi,_r,Yr,fi,aa,sn,ca,Kn,hn,Ta,tn,wi,rn,Ai,ea,qn,pi,Fn,Pa,dr,ai,Zi,Vi,pa,Na,an,wn,Ra,ei,Yn,Ja,ja,ka,ki,pn,Va,Gi,Pr,ri,bn,Ri,vi,yr,Ti,Cn,Gr,Xn,nn,ta,Bi,On,Nn,ia,Jr,Ci,un,Dn,Vn,vn,Br,Li,Ua,yi,Ma,Ba,Bn,Hi,yn,jn,Un,zi,xr,Ln,xn,da,Mi,Xr,Gn,to,Jn,ro,mo,Oa,Si,co,Pn,Fa,oa,Hn,va,ma,Sa,Ei,jr,An,Za,Ga,Ca,za,Wn,Xi,sa,Mo,ya,Qn,Tn,Da,zn,Ia,$i,In,qi,la,ga,go,eo,So,Mn,Ao,Ya,Co,Ii,qa,Zn,Ha,Wa,$a,Fe,Ge,ot,rt,mt,It,Bt,Ot,nr,zr,Wt,Rt,er,kr,Vr,ii,ci,li,mi,xi,Oi,ua,xa,ao,ho,Fo,ls,Io,Ps,xs,us,Ni,io,Eo,oo,xo;if(Fi=At.angle_instanced_arrays,ir=wt.next,ir!==wt.cur&&(ir?Ue.bindFramebuffer(36160,ir.framebuffer):Ue.bindFramebuffer(36160,null),wt.cur=ir),Pe.dirty){var bo,so,Yo,Uo,es,jo,Qo,Ks,js,Ds,_s,as,Es,To,Go,qs,Ts,Dl,_l,wl,vl,Al,ml,Hl,Tl,yl,ae,fe,Te,ke,Ne,Oe,He,ct;bo=Qe.dither,bo!==Pe.dither&&(bo?Ue.enable(3024):Ue.disable(3024),Pe.dither=bo),so=rr[0],Yo=rr[1],(so!==Ke[0]||Yo!==Ke[1])&&(Ue.blendEquationSeparate(so,Yo),Ke[0]=so,Ke[1]=Yo),Uo=Qe.depth_func,Uo!==Pe.depth_func&&(Ue.depthFunc(Uo),Pe.depth_func=Uo),es=vt[0],jo=vt[1],(es!==We[0]||jo!==We[1])&&(Ue.depthRange(es,jo),We[0]=es,We[1]=jo),Qo=Qe.depth_mask,Qo!==Pe.depth_mask&&(Ue.depthMask(Qo),Pe.depth_mask=Qo),Ks=ut[0],js=ut[1],Ds=ut[2],_s=ut[3],(Ks!==kt[0]||js!==kt[1]||Ds!==kt[2]||_s!==kt[3])&&(Ue.colorMask(Ks,js,Ds,_s),kt[0]=Ks,kt[1]=js,kt[2]=Ds,kt[3]=_s),as=Qe.cull_enable,as!==Pe.cull_enable&&(as?Ue.enable(2884):Ue.disable(2884),Pe.cull_enable=as),Es=Qe.cull_face,Es!==Pe.cull_face&&(Ue.cullFace(Es),Pe.cull_face=Es),To=Qe.frontFace,To!==Pe.frontFace&&(Ue.frontFace(To),Pe.frontFace=To),Go=Qe.lineWidth,Go!==Pe.lineWidth&&(Ue.lineWidth(Go),Pe.lineWidth=Go),qs=Qe.polygonOffset_enable,qs!==Pe.polygonOffset_enable&&(qs?Ue.enable(32823):Ue.disable(32823),Pe.polygonOffset_enable=qs),Ts=$t[0],Dl=$t[1],(Ts!==or[0]||Dl!==or[1])&&(Ue.polygonOffset(Ts,Dl),or[0]=Ts,or[1]=Dl),_l=Qe.sample_alpha,_l!==Pe.sample_alpha&&(_l?Ue.enable(32926):Ue.disable(32926),Pe.sample_alpha=_l),wl=Qe.sample_enable,wl!==Pe.sample_enable&&(wl?Ue.enable(32928):Ue.disable(32928),Pe.sample_enable=wl),vl=Lr[0],Al=Lr[1],(vl!==Er[0]||Al!==Er[1])&&(Ue.sampleCoverage(vl,Al),Er[0]=vl,Er[1]=Al),ml=Qe.stencil_mask,ml!==Pe.stencil_mask&&(Ue.stencilMask(ml),Pe.stencil_mask=ml),Hl=hr[0],Tl=hr[1],yl=hr[2],(Hl!==ni[0]||Tl!==ni[1]||yl!==ni[2])&&(Ue.stencilFunc(Hl,Tl,yl),ni[0]=Hl,ni[1]=Tl,ni[2]=yl),ae=Kr[0],fe=Kr[1],Te=Kr[2],ke=Kr[3],(ae!==si[0]||fe!==si[1]||Te!==si[2]||ke!==si[3])&&(Ue.stencilOpSeparate(ae,fe,Te,ke),si[0]=ae,si[1]=fe,si[2]=Te,si[3]=ke),Ne=Tr[0],Oe=Tr[1],He=Tr[2],ct=Tr[3],(Ne!==vr[0]||Oe!==vr[1]||He!==vr[2]||ct!==vr[3])&&(Ue.stencilOpSeparate(Ne,Oe,He,ct),vr[0]=Ne,vr[1]=Oe,vr[2]=He,vr[3]=ct)}Kt=di.viewport,Me=Kt.x|0,Xe=Kt.y|0,Ye="width"in Kt?Kt.width|0:xe.framebufferWidth-Me,et="height"in Kt?Kt.height|0:xe.framebufferHeight-Xe,gt=xe.viewportWidth,xe.viewportWidth=Ye,bt=xe.viewportHeight,xe.viewportHeight=et,Ue.viewport(Me,Xe,Ye,et),wr[0]=Me,wr[1]=Xe,wr[2]=Ye,wr[3]=et,Ue.blendColor(0,0,0,1),St[0]=0,St[1]=0,St[2]=0,St[3]=1,i?Ue.enable(3042):Ue.disable(3042),Pe.blend_enable=i,Ue.blendFuncSeparate(770,771,773,1),lt[0]=770,lt[1]=771,lt[2]=773,lt[3]=1,n?Ue.enable(2929):Ue.disable(2929),Pe.depth_enable=n,lr=di.viewport,Ct=lr.x|0,ur=lr.y|0,Ir="width"in lr?lr.width|0:xe.framebufferWidth-Ct,Rr="height"in lr?lr.height|0:xe.framebufferHeight-ur,Ue.scissor(Ct,ur,Ir,Rr),Di[0]=Ct,Di[1]=ur,Di[2]=Ir,Di[3]=Rr,a?Ue.enable(3089):Ue.disable(3089),Pe.scissor_enable=a,o?Ue.enable(2960):Ue.disable(2960),Pe.stencil_enable=o,Nr=Pe.profile,Nr&&(gi=performance.now(),r.count++),Ue.useProgram(s.program),ui=At.angle_instanced_arrays,st.setVAO(null),Qr=l.call(this,xe,di,0),Ui=!1,ln=1,Tt=0,_i=0,kn=0,ti=0,Fr=null,ji=0,na=!1,mn=5126,$n=0,Wi=0,Qi=0,Dt(Qr)?(Ui=!0,Fr=Le.createStream(34962,Qr),mn=Fr.dtype):(Fr=Le.getBuffer(Qr),Fr?mn=Fr.dtype:"constant"in Qr?(ln=2,typeof Qr.constant=="number"?(Tt=Qr.constant,_i=kn=ti=0):(Tt=Qr.constant.length>0?Qr.constant[0]:0,_i=Qr.constant.length>1?Qr.constant[1]:0,kn=Qr.constant.length>2?Qr.constant[2]:0,ti=Qr.constant.length>3?Qr.constant[3]:0)):(Dt(Qr.buffer)?Fr=Le.createStream(34962,Qr.buffer):Fr=Le.getBuffer(Qr.buffer),mn="type"in Qr?Sr[Qr.type]:Fr.dtype,na=!!Qr.normalized,ji=Qr.size|0,$n=Qr.offset|0,Wi=Qr.stride|0,Qi=Qr.divisor|0)),_r=u.location,Yr=ze[_r],ln===1?(Yr.buffer||Ue.enableVertexAttribArray(_r),fi=ji||4,(Yr.type!==mn||Yr.size!==fi||Yr.buffer!==Fr||Yr.normalized!==na||Yr.offset!==$n||Yr.stride!==Wi)&&(Ue.bindBuffer(34962,Fr.buffer),Ue.vertexAttribPointer(_r,fi,mn,na,Wi,$n),Yr.type=mn,Yr.size=fi,Yr.buffer=Fr,Yr.normalized=na,Yr.offset=$n,Yr.stride=Wi),Yr.divisor!==Qi&&(ui.vertexAttribDivisorANGLE(_r,Qi),Yr.divisor=Qi)):(Yr.buffer&&(Ue.disableVertexAttribArray(_r),Yr.buffer=null),(Yr.x!==Tt||Yr.y!==_i||Yr.z!==kn||Yr.w!==ti)&&(Ue.vertexAttrib4f(_r,Tt,_i,kn,ti),Yr.x=Tt,Yr.y=_i,Yr.z=kn,Yr.w=ti)),aa=f.call(this,xe,di,0),sn=!1,ca=1,Kn=0,hn=0,Ta=0,tn=0,wi=null,rn=0,Ai=!1,ea=5126,qn=0,pi=0,Fn=0,Dt(aa)?(sn=!0,wi=Le.createStream(34962,aa),ea=wi.dtype):(wi=Le.getBuffer(aa),wi?ea=wi.dtype:"constant"in aa?(ca=2,typeof aa.constant=="number"?(Kn=aa.constant,hn=Ta=tn=0):(Kn=aa.constant.length>0?aa.constant[0]:0,hn=aa.constant.length>1?aa.constant[1]:0,Ta=aa.constant.length>2?aa.constant[2]:0,tn=aa.constant.length>3?aa.constant[3]:0)):(Dt(aa.buffer)?wi=Le.createStream(34962,aa.buffer):wi=Le.getBuffer(aa.buffer),ea="type"in aa?Sr[aa.type]:wi.dtype,Ai=!!aa.normalized,rn=aa.size|0,qn=aa.offset|0,pi=aa.stride|0,Fn=aa.divisor|0)),Pa=c.location,dr=ze[Pa],ca===1?(dr.buffer||Ue.enableVertexAttribArray(Pa),ai=rn||1,(dr.type!==ea||dr.size!==ai||dr.buffer!==wi||dr.normalized!==Ai||dr.offset!==qn||dr.stride!==pi)&&(Ue.bindBuffer(34962,wi.buffer),Ue.vertexAttribPointer(Pa,ai,ea,Ai,pi,qn),dr.type=ea,dr.size=ai,dr.buffer=wi,dr.normalized=Ai,dr.offset=qn,dr.stride=pi),dr.divisor!==Fn&&(ui.vertexAttribDivisorANGLE(Pa,Fn),dr.divisor=Fn)):(dr.buffer&&(Ue.disableVertexAttribArray(Pa),dr.buffer=null),(dr.x!==Kn||dr.y!==hn||dr.z!==Ta||dr.w!==tn)&&(Ue.vertexAttrib4f(Pa,Kn,hn,Ta,tn),dr.x=Kn,dr.y=hn,dr.z=Ta,dr.w=tn)),Zi=h.call(this,xe,di,0),Vi=!1,pa=1,Na=0,an=0,wn=0,Ra=0,ei=null,Yn=0,Ja=!1,ja=5126,ka=0,ki=0,pn=0,Dt(Zi)?(Vi=!0,ei=Le.createStream(34962,Zi),ja=ei.dtype):(ei=Le.getBuffer(Zi),ei?ja=ei.dtype:"constant"in Zi?(pa=2,typeof Zi.constant=="number"?(Na=Zi.constant,an=wn=Ra=0):(Na=Zi.constant.length>0?Zi.constant[0]:0,an=Zi.constant.length>1?Zi.constant[1]:0,wn=Zi.constant.length>2?Zi.constant[2]:0,Ra=Zi.constant.length>3?Zi.constant[3]:0)):(Dt(Zi.buffer)?ei=Le.createStream(34962,Zi.buffer):ei=Le.getBuffer(Zi.buffer),ja="type"in Zi?Sr[Zi.type]:ei.dtype,Ja=!!Zi.normalized,Yn=Zi.size|0,ka=Zi.offset|0,ki=Zi.stride|0,pn=Zi.divisor|0)),Va=d.location,Gi=ze[Va],pa===1?(Gi.buffer||Ue.enableVertexAttribArray(Va),Pr=Yn||4,(Gi.type!==ja||Gi.size!==Pr||Gi.buffer!==ei||Gi.normalized!==Ja||Gi.offset!==ka||Gi.stride!==ki)&&(Ue.bindBuffer(34962,ei.buffer),Ue.vertexAttribPointer(Va,Pr,ja,Ja,ki,ka),Gi.type=ja,Gi.size=Pr,Gi.buffer=ei,Gi.normalized=Ja,Gi.offset=ka,Gi.stride=ki),Gi.divisor!==pn&&(ui.vertexAttribDivisorANGLE(Va,pn),Gi.divisor=pn)):(Gi.buffer&&(Ue.disableVertexAttribArray(Va),Gi.buffer=null),(Gi.x!==Na||Gi.y!==an||Gi.z!==wn||Gi.w!==Ra)&&(Ue.vertexAttrib4f(Va,Na,an,wn,Ra),Gi.x=Na,Gi.y=an,Gi.z=wn,Gi.w=Ra)),ri=p.call(this,xe,di,0),bn=!1,Ri=1,vi=0,yr=0,Ti=0,Cn=0,Gr=null,Xn=0,nn=!1,ta=5126,Bi=0,On=0,Nn=0,Dt(ri)?(bn=!0,Gr=Le.createStream(34962,ri),ta=Gr.dtype):(Gr=Le.getBuffer(ri),Gr?ta=Gr.dtype:"constant"in ri?(Ri=2,typeof ri.constant=="number"?(vi=ri.constant,yr=Ti=Cn=0):(vi=ri.constant.length>0?ri.constant[0]:0,yr=ri.constant.length>1?ri.constant[1]:0,Ti=ri.constant.length>2?ri.constant[2]:0,Cn=ri.constant.length>3?ri.constant[3]:0)):(Dt(ri.buffer)?Gr=Le.createStream(34962,ri.buffer):Gr=Le.getBuffer(ri.buffer),ta="type"in ri?Sr[ri.type]:Gr.dtype,nn=!!ri.normalized,Xn=ri.size|0,Bi=ri.offset|0,On=ri.stride|0,Nn=ri.divisor|0)),ia=v.location,Jr=ze[ia],Ri===1?(Jr.buffer||Ue.enableVertexAttribArray(ia),Ci=Xn||1,(Jr.type!==ta||Jr.size!==Ci||Jr.buffer!==Gr||Jr.normalized!==nn||Jr.offset!==Bi||Jr.stride!==On)&&(Ue.bindBuffer(34962,Gr.buffer),Ue.vertexAttribPointer(ia,Ci,ta,nn,On,Bi),Jr.type=ta,Jr.size=Ci,Jr.buffer=Gr,Jr.normalized=nn,Jr.offset=Bi,Jr.stride=On),Jr.divisor!==Nn&&(ui.vertexAttribDivisorANGLE(ia,Nn),Jr.divisor=Nn)):(Jr.buffer&&(Ue.disableVertexAttribArray(ia),Jr.buffer=null),(Jr.x!==vi||Jr.y!==yr||Jr.z!==Ti||Jr.w!==Cn)&&(Ue.vertexAttrib4f(ia,vi,yr,Ti,Cn),Jr.x=vi,Jr.y=yr,Jr.z=Ti,Jr.w=Cn)),un=y.call(this,xe,di,0),Dn=!1,Vn=1,vn=0,Br=0,Li=0,Ua=0,yi=null,Ma=0,Ba=!1,Bn=5126,Hi=0,yn=0,jn=0,Dt(un)?(Dn=!0,yi=Le.createStream(34962,un),Bn=yi.dtype):(yi=Le.getBuffer(un),yi?Bn=yi.dtype:"constant"in un?(Vn=2,typeof un.constant=="number"?(vn=un.constant,Br=Li=Ua=0):(vn=un.constant.length>0?un.constant[0]:0,Br=un.constant.length>1?un.constant[1]:0,Li=un.constant.length>2?un.constant[2]:0,Ua=un.constant.length>3?un.constant[3]:0)):(Dt(un.buffer)?yi=Le.createStream(34962,un.buffer):yi=Le.getBuffer(un.buffer),Bn="type"in un?Sr[un.type]:yi.dtype,Ba=!!un.normalized,Ma=un.size|0,Hi=un.offset|0,yn=un.stride|0,jn=un.divisor|0)),Un=m.location,zi=ze[Un],Vn===1?(zi.buffer||Ue.enableVertexAttribArray(Un),xr=Ma||1,(zi.type!==Bn||zi.size!==xr||zi.buffer!==yi||zi.normalized!==Ba||zi.offset!==Hi||zi.stride!==yn)&&(Ue.bindBuffer(34962,yi.buffer),Ue.vertexAttribPointer(Un,xr,Bn,Ba,yn,Hi),zi.type=Bn,zi.size=xr,zi.buffer=yi,zi.normalized=Ba,zi.offset=Hi,zi.stride=yn),zi.divisor!==jn&&(ui.vertexAttribDivisorANGLE(Un,jn),zi.divisor=jn)):(zi.buffer&&(Ue.disableVertexAttribArray(Un),zi.buffer=null),(zi.x!==vn||zi.y!==Br||zi.z!==Li||zi.w!==Ua)&&(Ue.vertexAttrib4f(Un,vn,Br,Li,Ua),zi.x=vn,zi.y=Br,zi.z=Li,zi.w=Ua)),Ln=w.call(this,xe,di,0),xn=!1,da=1,Mi=0,Xr=0,Gn=0,to=0,Jn=null,ro=0,mo=!1,Oa=5126,Si=0,co=0,Pn=0,Dt(Ln)?(xn=!0,Jn=Le.createStream(34962,Ln),Oa=Jn.dtype):(Jn=Le.getBuffer(Ln),Jn?Oa=Jn.dtype:"constant"in Ln?(da=2,typeof Ln.constant=="number"?(Mi=Ln.constant,Xr=Gn=to=0):(Mi=Ln.constant.length>0?Ln.constant[0]:0,Xr=Ln.constant.length>1?Ln.constant[1]:0,Gn=Ln.constant.length>2?Ln.constant[2]:0,to=Ln.constant.length>3?Ln.constant[3]:0)):(Dt(Ln.buffer)?Jn=Le.createStream(34962,Ln.buffer):Jn=Le.getBuffer(Ln.buffer),Oa="type"in Ln?Sr[Ln.type]:Jn.dtype,mo=!!Ln.normalized,ro=Ln.size|0,Si=Ln.offset|0,co=Ln.stride|0,Pn=Ln.divisor|0)),Fa=_.location,oa=ze[Fa],da===1?(oa.buffer||Ue.enableVertexAttribArray(Fa),Hn=ro||1,(oa.type!==Oa||oa.size!==Hn||oa.buffer!==Jn||oa.normalized!==mo||oa.offset!==Si||oa.stride!==co)&&(Ue.bindBuffer(34962,Jn.buffer),Ue.vertexAttribPointer(Fa,Hn,Oa,mo,co,Si),oa.type=Oa,oa.size=Hn,oa.buffer=Jn,oa.normalized=mo,oa.offset=Si,oa.stride=co),oa.divisor!==Pn&&(ui.vertexAttribDivisorANGLE(Fa,Pn),oa.divisor=Pn)):(oa.buffer&&(Ue.disableVertexAttribArray(Fa),oa.buffer=null),(oa.x!==Mi||oa.y!==Xr||oa.z!==Gn||oa.w!==to)&&(Ue.vertexAttrib4f(Fa,Mi,Xr,Gn,to),oa.x=Mi,oa.y=Xr,oa.z=Gn,oa.w=to)),va=b.call(this,xe,di,0),ma=!1,Sa=1,Ei=0,jr=0,An=0,Za=0,Ga=null,Ca=0,za=!1,Wn=5126,Xi=0,sa=0,Mo=0,Dt(va)?(ma=!0,Ga=Le.createStream(34962,va),Wn=Ga.dtype):(Ga=Le.getBuffer(va),Ga?Wn=Ga.dtype:"constant"in va?(Sa=2,typeof va.constant=="number"?(Ei=va.constant,jr=An=Za=0):(Ei=va.constant.length>0?va.constant[0]:0,jr=va.constant.length>1?va.constant[1]:0,An=va.constant.length>2?va.constant[2]:0,Za=va.constant.length>3?va.constant[3]:0)):(Dt(va.buffer)?Ga=Le.createStream(34962,va.buffer):Ga=Le.getBuffer(va.buffer),Wn="type"in va?Sr[va.type]:Ga.dtype,za=!!va.normalized,Ca=va.size|0,Xi=va.offset|0,sa=va.stride|0,Mo=va.divisor|0)),ya=M.location,Qn=ze[ya],Sa===1?(Qn.buffer||Ue.enableVertexAttribArray(ya),Tn=Ca||1,(Qn.type!==Wn||Qn.size!==Tn||Qn.buffer!==Ga||Qn.normalized!==za||Qn.offset!==Xi||Qn.stride!==sa)&&(Ue.bindBuffer(34962,Ga.buffer),Ue.vertexAttribPointer(ya,Tn,Wn,za,sa,Xi),Qn.type=Wn,Qn.size=Tn,Qn.buffer=Ga,Qn.normalized=za,Qn.offset=Xi,Qn.stride=sa),Qn.divisor!==Mo&&(ui.vertexAttribDivisorANGLE(ya,Mo),Qn.divisor=Mo)):(Qn.buffer&&(Ue.disableVertexAttribArray(ya),Qn.buffer=null),(Qn.x!==Ei||Qn.y!==jr||Qn.z!==An||Qn.w!==Za)&&(Ue.vertexAttrib4f(ya,Ei,jr,An,Za),Qn.x=Ei,Qn.y=jr,Qn.z=An,Qn.w=Za)),Da=x.call(this,xe,di,0),zn=!1,Ia=1,$i=0,In=0,qi=0,la=0,ga=null,go=0,eo=!1,So=5126,Mn=0,Ao=0,Ya=0,Dt(Da)?(zn=!0,ga=Le.createStream(34962,Da),So=ga.dtype):(ga=Le.getBuffer(Da),ga?So=ga.dtype:"constant"in Da?(Ia=2,typeof Da.constant=="number"?($i=Da.constant,In=qi=la=0):($i=Da.constant.length>0?Da.constant[0]:0,In=Da.constant.length>1?Da.constant[1]:0,qi=Da.constant.length>2?Da.constant[2]:0,la=Da.constant.length>3?Da.constant[3]:0)):(Dt(Da.buffer)?ga=Le.createStream(34962,Da.buffer):ga=Le.getBuffer(Da.buffer),So="type"in Da?Sr[Da.type]:ga.dtype,eo=!!Da.normalized,go=Da.size|0,Mn=Da.offset|0,Ao=Da.stride|0,Ya=Da.divisor|0)),Co=A.location,Ii=ze[Co],Ia===1?(Ii.buffer||Ue.enableVertexAttribArray(Co),qa=go||1,(Ii.type!==So||Ii.size!==qa||Ii.buffer!==ga||Ii.normalized!==eo||Ii.offset!==Mn||Ii.stride!==Ao)&&(Ue.bindBuffer(34962,ga.buffer),Ue.vertexAttribPointer(Co,qa,So,eo,Ao,Mn),Ii.type=So,Ii.size=qa,Ii.buffer=ga,Ii.normalized=eo,Ii.offset=Mn,Ii.stride=Ao),Ii.divisor!==Ya&&(ui.vertexAttribDivisorANGLE(Co,Ya),Ii.divisor=Ya)):(Ii.buffer&&(Ue.disableVertexAttribArray(Co),Ii.buffer=null),(Ii.x!==$i||Ii.y!==In||Ii.z!==qi||Ii.w!==la)&&(Ue.vertexAttrib4f(Co,$i,In,qi,la),Ii.x=$i,Ii.y=In,Ii.z=qi,Ii.w=la)),Zn=T.call(this,xe,di,0),Ha=!1,Wa=1,$a=0,Fe=0,Ge=0,ot=0,rt=null,mt=0,It=!1,Bt=5126,Ot=0,nr=0,zr=0,Dt(Zn)?(Ha=!0,rt=Le.createStream(34962,Zn),Bt=rt.dtype):(rt=Le.getBuffer(Zn),rt?Bt=rt.dtype:"constant"in Zn?(Wa=2,typeof Zn.constant=="number"?($a=Zn.constant,Fe=Ge=ot=0):($a=Zn.constant.length>0?Zn.constant[0]:0,Fe=Zn.constant.length>1?Zn.constant[1]:0,Ge=Zn.constant.length>2?Zn.constant[2]:0,ot=Zn.constant.length>3?Zn.constant[3]:0)):(Dt(Zn.buffer)?rt=Le.createStream(34962,Zn.buffer):rt=Le.getBuffer(Zn.buffer),Bt="type"in Zn?Sr[Zn.type]:rt.dtype,It=!!Zn.normalized,mt=Zn.size|0,Ot=Zn.offset|0,nr=Zn.stride|0,zr=Zn.divisor|0)),Wt=g.location,Rt=ze[Wt],Wa===1?(Rt.buffer||Ue.enableVertexAttribArray(Wt),er=mt||1,(Rt.type!==Bt||Rt.size!==er||Rt.buffer!==rt||Rt.normalized!==It||Rt.offset!==Ot||Rt.stride!==nr)&&(Ue.bindBuffer(34962,rt.buffer),Ue.vertexAttribPointer(Wt,er,Bt,It,nr,Ot),Rt.type=Bt,Rt.size=er,Rt.buffer=rt,Rt.normalized=It,Rt.offset=Ot,Rt.stride=nr),Rt.divisor!==zr&&(ui.vertexAttribDivisorANGLE(Wt,zr),Rt.divisor=zr)):(Rt.buffer&&(Ue.disableVertexAttribArray(Wt),Rt.buffer=null),(Rt.x!==$a||Rt.y!==Fe||Rt.z!==Ge||Rt.w!==ot)&&(Ue.vertexAttrib4f(Wt,$a,Fe,Ge,ot),Rt.x=$a,Rt.y=Fe,Rt.z=Ge,Rt.w=ot)),Ue.uniform1i(E.location,!1),kr=di.opacity,Ue.uniform1f(S.location,kr),Vr=k.call(this,xe,di,0),ii=Vr[0],ci=Vr[1],Ue.uniform2f(C.location,ii,ci),Ue.uniform1i(D.location,L.bind()),li=xe.pixelRatio,Ue.uniform1f(P.location,li),mi=di.scale,xi=mi[0],Oi=mi[1],Ue.uniform2f(I.location,xi,Oi),ua=di.scaleFract,xa=ua[0],ao=ua[1],Ue.uniform2f(F.location,xa,ao),ho=di.translate,Fo=ho[0],ls=ho[1],Ue.uniform2f(z.location,Fo,ls),Io=di.translateFract,Ps=Io[0],xs=Io[1],Ue.uniform2f(B.location,Ps,xs),us=di.elements,Ni=null,io=Dt(us),io?Ni=Ve.createStream(us):Ni=Ve.getElements(us),Ni&&Ue.bindBuffer(34963,Ni.buffer.buffer),Eo=di.offset,oo=di.count,oo&&(xo=De.instances,xo>0?Ni?ui.drawElementsInstancedANGLE(0,oo,Ni.type,Eo<<(Ni.type-5121>>1),xo):ui.drawArraysInstancedANGLE(0,Eo,oo,xo):xo<0&&(Ni?Ue.drawElements(0,oo,Ni.type,Eo<<(Ni.type-5121>>1)):Ue.drawArrays(0,Eo,oo)),Pe.dirty=!0,st.setVAO(null),xe.viewportWidth=gt,xe.viewportHeight=bt,Nr&&(r.cpuTime+=performance.now()-gi),Ui&&Le.destroyStream(Fr),sn&&Le.destroyStream(wi),Vi&&Le.destroyStream(ei),bn&&Le.destroyStream(Gr),Dn&&Le.destroyStream(yi),xn&&Le.destroyStream(Jn),ma&&Le.destroyStream(Ga),zn&&Le.destroyStream(ga),Ha&&Le.destroyStream(rt),L.unbind(),io&&Ve.destroyStream(Ni))},scope:function(di,Fi,ir){var Kt,Me,Xe,Ye,et,gt,bt,lr,Ct,ur,Ir,Rr,Nr,gi,ui,Qr,Ui,ln,Tt,_i,kn,ti,Fr,ji,na,mn,$n,Wi,Qi,_r,Yr,fi,aa,sn,ca,Kn,hn,Ta,tn,wi,rn,Ai,ea,qn,pi,Fn,Pa,dr,ai,Zi,Vi,pa,Na,an,wn,Ra,ei,Yn,Ja,ja,ka,ki,pn,Va,Gi,Pr,ri,bn,Ri,vi,yr,Ti,Cn,Gr,Xn,nn,ta,Bi,On,Nn,ia,Jr,Ci,un,Dn,Vn,vn,Br,Li,Ua,yi,Ma,Ba,Bn,Hi,yn,jn,Un,zi,xr,Ln,xn,da,Mi,Xr,Gn,to,Jn,ro,mo,Oa,Si,co,Pn,Fa,oa,Hn,va,ma,Sa,Ei,jr,An,Za,Ga,Ca,za,Wn,Xi,sa,Mo,ya,Qn,Tn,Da,zn,Ia,$i,In,qi,la,ga,go,eo,So,Mn,Ao,Ya,Co,Ii,qa,Zn,Ha,Wa,$a,Fe,Ge,ot,rt,mt,It,Bt,Ot,nr,zr,Wt,Rt,er,kr,Vr,ii,ci,li,mi,xi,Oi,ua,xa,ao,ho,Fo,ls,Io,Ps,xs,us,Ni,io,Eo,oo,xo,bo,so,Yo,Uo,es,jo,Qo,Ks,js,Ds,_s,as,Es,To,Go,qs,Ts,Dl,_l,wl,vl,Al,ml,Hl,Tl,yl,ae,fe,Te,ke,Ne,Oe,He,ct,xt,pt,_t,Lt,Jt,fr,Or,Pi,Rn,fo,Xo,Bo,fs,cs,Ns,zl,Is,Nl,ul,cl,vf,wf,bu,_u,ju,wu,Eu,Af,mf,ef,Nf,ic,R,G,ee,he,ve,_e,je,qe,Je,ht,dt,Ft,Et,Qt,Mr,zt,Yt,sr,Ar,br,Xt,_n,ha,Xa,yo,Wo,Zo,Qs,rs,Us,jl,Ou,Jl,po,el,nl,Vl,ku,tf,Tf;Kt=di.viewport,Me=Kt.x|0,Xe=Kt.y|0,Ye="width"in Kt?Kt.width|0:xe.framebufferWidth-Me,et="height"in Kt?Kt.height|0:xe.framebufferHeight-Xe,gt=xe.viewportWidth,xe.viewportWidth=Ye,bt=xe.viewportHeight,xe.viewportHeight=et,lr=gn[0],gn[0]=Me,Ct=gn[1],gn[1]=Xe,ur=gn[2],gn[2]=Ye,Ir=gn[3],gn[3]=et,Rr=yt[0],yt[0]=O,Nr=yt[1],yt[1]=W,gi=yt[2],yt[2]=X,ui=yt[3],yt[3]=Z,Qr=Qe.blend_enable,Qe.blend_enable=j,Ui=at[0],at[0]=q,ln=at[1],at[1]=Q,Tt=at[2],at[2]=N,_i=at[3],at[3]=V,kn=Qe.depth_enable,Qe.depth_enable=J,ti=di.viewport,Fr=ti.x|0,ji=ti.y|0,na="width"in ti?ti.width|0:xe.framebufferWidth-Fr,mn="height"in ti?ti.height|0:xe.framebufferHeight-ji,$n=Hr[0],Hr[0]=Fr,Wi=Hr[1],Hr[1]=ji,Qi=Hr[2],Hr[2]=na,_r=Hr[3],Hr[3]=mn,Yr=Qe.scissor_enable,Qe.scissor_enable=H,fi=Qe.stencil_enable,Qe.stencil_enable=$,aa=Pe.profile,aa&&(sn=performance.now(),r.count++),ca=di.elements,Kn=null,hn=Dt(ca),hn?Kn=Ve.createStream(ca):Kn=Ve.getElements(ca),Ta=De.elements,De.elements=Kn,tn=di.offset,wi=De.offset,De.offset=tn,rn=di.count,Ai=De.count,De.count=rn,ea=De.primitive,De.primitive=te,qn=ft[ie],ft[ie]=!1,pi=ft[ge],ft[ge]=de,Fn=di.opacity,Pa=ft[Ie],ft[Ie]=Fn,dr=k.call(this,xe,di,ir),ai=ft[Ce],ft[Ce]=dr,Zi=xe.pixelRatio,Vi=ft[le],ft[le]=Zi,pa=di.scale,Na=ft[re],ft[re]=pa,an=di.scaleFract,wn=ft[Ee],ft[Ee]=an,Ra=di.translate,ei=ft[we],ft[we]=Ra,Yn=di.translateFract,Ja=ft[oe],ft[oe]=Yn,ja=di.markerTexture,ka=ft[Y],ft[Y]=ja,ki=w.call(this,xe,di,ir),pn=!1,Va=1,Gi=0,Pr=0,ri=0,bn=0,Ri=null,vi=0,yr=!1,Ti=5126,Cn=0,Gr=0,Xn=0,Dt(ki)?(pn=!0,Ri=Le.createStream(34962,ki),Ti=Ri.dtype):(Ri=Le.getBuffer(ki),Ri?Ti=Ri.dtype:"constant"in ki?(Va=2,typeof ki.constant=="number"?(Gi=ki.constant,Pr=ri=bn=0):(Gi=ki.constant.length>0?ki.constant[0]:0,Pr=ki.constant.length>1?ki.constant[1]:0,ri=ki.constant.length>2?ki.constant[2]:0,bn=ki.constant.length>3?ki.constant[3]:0)):(Dt(ki.buffer)?Ri=Le.createStream(34962,ki.buffer):Ri=Le.getBuffer(ki.buffer),Ti="type"in ki?Sr[ki.type]:Ri.dtype,yr=!!ki.normalized,vi=ki.size|0,Cn=ki.offset|0,Gr=ki.stride|0,Xn=ki.divisor|0)),nn=ne.state,ne.state=Va,ta=ne.x,ne.x=Gi,Bi=ne.y,ne.y=Pr,On=ne.z,ne.z=ri,Nn=ne.w,ne.w=bn,ia=ne.buffer,ne.buffer=Ri,Jr=ne.size,ne.size=vi,Ci=ne.normalized,ne.normalized=yr,un=ne.type,ne.type=Ti,Dn=ne.offset,ne.offset=Cn,Vn=ne.stride,ne.stride=Gr,vn=ne.divisor,ne.divisor=Xn,Br=x.call(this,xe,di,ir),Li=!1,Ua=1,yi=0,Ma=0,Ba=0,Bn=0,Hi=null,yn=0,jn=!1,Un=5126,zi=0,xr=0,Ln=0,Dt(Br)?(Li=!0,Hi=Le.createStream(34962,Br),Un=Hi.dtype):(Hi=Le.getBuffer(Br),Hi?Un=Hi.dtype:"constant"in Br?(Ua=2,typeof Br.constant=="number"?(yi=Br.constant,Ma=Ba=Bn=0):(yi=Br.constant.length>0?Br.constant[0]:0,Ma=Br.constant.length>1?Br.constant[1]:0,Ba=Br.constant.length>2?Br.constant[2]:0,Bn=Br.constant.length>3?Br.constant[3]:0)):(Dt(Br.buffer)?Hi=Le.createStream(34962,Br.buffer):Hi=Le.getBuffer(Br.buffer),Un="type"in Br?Sr[Br.type]:Hi.dtype,jn=!!Br.normalized,yn=Br.size|0,zi=Br.offset|0,xr=Br.stride|0,Ln=Br.divisor|0)),xn=ye.state,ye.state=Ua,da=ye.x,ye.x=yi,Mi=ye.y,ye.y=Ma,Xr=ye.z,ye.z=Ba,Gn=ye.w,ye.w=Bn,to=ye.buffer,ye.buffer=Hi,Jn=ye.size,ye.size=yn,ro=ye.normalized,ye.normalized=jn,mo=ye.type,ye.type=Un,Oa=ye.offset,ye.offset=zi,Si=ye.stride,ye.stride=xr,co=ye.divisor,ye.divisor=Ln,Pn=b.call(this,xe,di,ir),Fa=!1,oa=1,Hn=0,va=0,ma=0,Sa=0,Ei=null,jr=0,An=!1,Za=5126,Ga=0,Ca=0,za=0,Dt(Pn)?(Fa=!0,Ei=Le.createStream(34962,Pn),Za=Ei.dtype):(Ei=Le.getBuffer(Pn),Ei?Za=Ei.dtype:"constant"in Pn?(oa=2,typeof Pn.constant=="number"?(Hn=Pn.constant,va=ma=Sa=0):(Hn=Pn.constant.length>0?Pn.constant[0]:0,va=Pn.constant.length>1?Pn.constant[1]:0,ma=Pn.constant.length>2?Pn.constant[2]:0,Sa=Pn.constant.length>3?Pn.constant[3]:0)):(Dt(Pn.buffer)?Ei=Le.createStream(34962,Pn.buffer):Ei=Le.getBuffer(Pn.buffer),Za="type"in Pn?Sr[Pn.type]:Ei.dtype,An=!!Pn.normalized,jr=Pn.size|0,Ga=Pn.offset|0,Ca=Pn.stride|0,za=Pn.divisor|0)),Wn=U.state,U.state=oa,Xi=U.x,U.x=Hn,sa=U.y,U.y=va,Mo=U.z,U.z=ma,ya=U.w,U.w=Sa,Qn=U.buffer,U.buffer=Ei,Tn=U.size,U.size=jr,Da=U.normalized,U.normalized=An,zn=U.type,U.type=Za,Ia=U.offset,U.offset=Ga,$i=U.stride,U.stride=Ca,In=U.divisor,U.divisor=za,qi=T.call(this,xe,di,ir),la=!1,ga=1,go=0,eo=0,So=0,Mn=0,Ao=null,Ya=0,Co=!1,Ii=5126,qa=0,Zn=0,Ha=0,Dt(qi)?(la=!0,Ao=Le.createStream(34962,qi),Ii=Ao.dtype):(Ao=Le.getBuffer(qi),Ao?Ii=Ao.dtype:"constant"in qi?(ga=2,typeof qi.constant=="number"?(go=qi.constant,eo=So=Mn=0):(go=qi.constant.length>0?qi.constant[0]:0,eo=qi.constant.length>1?qi.constant[1]:0,So=qi.constant.length>2?qi.constant[2]:0,Mn=qi.constant.length>3?qi.constant[3]:0)):(Dt(qi.buffer)?Ao=Le.createStream(34962,qi.buffer):Ao=Le.getBuffer(qi.buffer),Ii="type"in qi?Sr[qi.type]:Ao.dtype,Co=!!qi.normalized,Ya=qi.size|0,qa=qi.offset|0,Zn=qi.stride|0,Ha=qi.divisor|0)),Wa=se.state,se.state=ga,$a=se.x,se.x=go,Fe=se.y,se.y=eo,Ge=se.z,se.z=So,ot=se.w,se.w=Mn,rt=se.buffer,se.buffer=Ao,mt=se.size,se.size=Ya,It=se.normalized,se.normalized=Co,Bt=se.type,se.type=Ii,Ot=se.offset,se.offset=qa,nr=se.stride,se.stride=Zn,zr=se.divisor,se.divisor=Ha,Wt=y.call(this,xe,di,ir),Rt=!1,er=1,kr=0,Vr=0,ii=0,ci=0,li=null,mi=0,xi=!1,Oi=5126,ua=0,xa=0,ao=0,Dt(Wt)?(Rt=!0,li=Le.createStream(34962,Wt),Oi=li.dtype):(li=Le.getBuffer(Wt),li?Oi=li.dtype:"constant"in Wt?(er=2,typeof Wt.constant=="number"?(kr=Wt.constant,Vr=ii=ci=0):(kr=Wt.constant.length>0?Wt.constant[0]:0,Vr=Wt.constant.length>1?Wt.constant[1]:0,ii=Wt.constant.length>2?Wt.constant[2]:0,ci=Wt.constant.length>3?Wt.constant[3]:0)):(Dt(Wt.buffer)?li=Le.createStream(34962,Wt.buffer):li=Le.getBuffer(Wt.buffer),Oi="type"in Wt?Sr[Wt.type]:li.dtype,xi=!!Wt.normalized,mi=Wt.size|0,ua=Wt.offset|0,xa=Wt.stride|0,ao=Wt.divisor|0)),ho=Ae.state,Ae.state=er,Fo=Ae.x,Ae.x=kr,ls=Ae.y,Ae.y=Vr,Io=Ae.z,Ae.z=ii,Ps=Ae.w,Ae.w=ci,xs=Ae.buffer,Ae.buffer=li,us=Ae.size,Ae.size=mi,Ni=Ae.normalized,Ae.normalized=xi,io=Ae.type,Ae.type=Oi,Eo=Ae.offset,Ae.offset=ua,oo=Ae.stride,Ae.stride=xa,xo=Ae.divisor,Ae.divisor=ao,bo=f.call(this,xe,di,ir),so=!1,Yo=1,Uo=0,es=0,jo=0,Qo=0,Ks=null,js=0,Ds=!1,_s=5126,as=0,Es=0,To=0,Dt(bo)?(so=!0,Ks=Le.createStream(34962,bo),_s=Ks.dtype):(Ks=Le.getBuffer(bo),Ks?_s=Ks.dtype:"constant"in bo?(Yo=2,typeof bo.constant=="number"?(Uo=bo.constant,es=jo=Qo=0):(Uo=bo.constant.length>0?bo.constant[0]:0,es=bo.constant.length>1?bo.constant[1]:0,jo=bo.constant.length>2?bo.constant[2]:0,Qo=bo.constant.length>3?bo.constant[3]:0)):(Dt(bo.buffer)?Ks=Le.createStream(34962,bo.buffer):Ks=Le.getBuffer(bo.buffer),_s="type"in bo?Sr[bo.type]:Ks.dtype,Ds=!!bo.normalized,js=bo.size|0,as=bo.offset|0,Es=bo.stride|0,To=bo.divisor|0)),Go=be.state,be.state=Yo,qs=be.x,be.x=Uo,Ts=be.y,be.y=es,Dl=be.z,be.z=jo,_l=be.w,be.w=Qo,wl=be.buffer,be.buffer=Ks,vl=be.size,be.size=js,Al=be.normalized,be.normalized=Ds,ml=be.type,be.type=_s,Hl=be.offset,be.offset=as,Tl=be.stride,be.stride=Es,yl=be.divisor,be.divisor=To,ae=h.call(this,xe,di,ir),fe=!1,Te=1,ke=0,Ne=0,Oe=0,He=0,ct=null,xt=0,pt=!1,_t=5126,Lt=0,Jt=0,fr=0,Dt(ae)?(fe=!0,ct=Le.createStream(34962,ae),_t=ct.dtype):(ct=Le.getBuffer(ae),ct?_t=ct.dtype:"constant"in ae?(Te=2,typeof ae.constant=="number"?(ke=ae.constant,Ne=Oe=He=0):(ke=ae.constant.length>0?ae.constant[0]:0,Ne=ae.constant.length>1?ae.constant[1]:0,Oe=ae.constant.length>2?ae.constant[2]:0,He=ae.constant.length>3?ae.constant[3]:0)):(Dt(ae.buffer)?ct=Le.createStream(34962,ae.buffer):ct=Le.getBuffer(ae.buffer),_t="type"in ae?Sr[ae.type]:ct.dtype,pt=!!ae.normalized,xt=ae.size|0,Lt=ae.offset|0,Jt=ae.stride|0,fr=ae.divisor|0)),Or=me.state,me.state=Te,Pi=me.x,me.x=ke,Rn=me.y,me.y=Ne,fo=me.z,me.z=Oe,Xo=me.w,me.w=He,Bo=me.buffer,me.buffer=ct,fs=me.size,me.size=xt,cs=me.normalized,me.normalized=pt,Ns=me.type,me.type=_t,zl=me.offset,me.offset=Lt,Is=me.stride,me.stride=Jt,Nl=me.divisor,me.divisor=fr,ul=l.call(this,xe,di,ir),cl=!1,vf=1,wf=0,bu=0,_u=0,ju=0,wu=null,Eu=0,Af=!1,mf=5126,ef=0,Nf=0,ic=0,Dt(ul)?(cl=!0,wu=Le.createStream(34962,ul),mf=wu.dtype):(wu=Le.getBuffer(ul),wu?mf=wu.dtype:"constant"in ul?(vf=2,typeof ul.constant=="number"?(wf=ul.constant,bu=_u=ju=0):(wf=ul.constant.length>0?ul.constant[0]:0,bu=ul.constant.length>1?ul.constant[1]:0,_u=ul.constant.length>2?ul.constant[2]:0,ju=ul.constant.length>3?ul.constant[3]:0)):(Dt(ul.buffer)?wu=Le.createStream(34962,ul.buffer):wu=Le.getBuffer(ul.buffer),mf="type"in ul?Sr[ul.type]:wu.dtype,Af=!!ul.normalized,Eu=ul.size|0,ef=ul.offset|0,Nf=ul.stride|0,ic=ul.divisor|0)),R=ue.state,ue.state=vf,G=ue.x,ue.x=wf,ee=ue.y,ue.y=bu,he=ue.z,ue.z=_u,ve=ue.w,ue.w=ju,_e=ue.buffer,ue.buffer=wu,je=ue.size,ue.size=Eu,qe=ue.normalized,ue.normalized=Af,Je=ue.type,ue.type=mf,ht=ue.offset,ue.offset=ef,dt=ue.stride,ue.stride=Nf,Ft=ue.divisor,ue.divisor=ic,Et=p.call(this,xe,di,ir),Qt=!1,Mr=1,zt=0,Yt=0,sr=0,Ar=0,br=null,Xt=0,_n=!1,ha=5126,Xa=0,yo=0,Wo=0,Dt(Et)?(Qt=!0,br=Le.createStream(34962,Et),ha=br.dtype):(br=Le.getBuffer(Et),br?ha=br.dtype:"constant"in Et?(Mr=2,typeof Et.constant=="number"?(zt=Et.constant,Yt=sr=Ar=0):(zt=Et.constant.length>0?Et.constant[0]:0,Yt=Et.constant.length>1?Et.constant[1]:0,sr=Et.constant.length>2?Et.constant[2]:0,Ar=Et.constant.length>3?Et.constant[3]:0)):(Dt(Et.buffer)?br=Le.createStream(34962,Et.buffer):br=Le.getBuffer(Et.buffer),ha="type"in Et?Sr[Et.type]:br.dtype,_n=!!Et.normalized,Xt=Et.size|0,Xa=Et.offset|0,yo=Et.stride|0,Wo=Et.divisor|0)),Zo=pe.state,pe.state=Mr,Qs=pe.x,pe.x=zt,rs=pe.y,pe.y=Yt,Us=pe.z,pe.z=sr,jl=pe.w,pe.w=Ar,Ou=pe.buffer,pe.buffer=br,Jl=pe.size,pe.size=Xt,po=pe.normalized,pe.normalized=_n,el=pe.type,pe.type=ha,nl=pe.offset,pe.offset=Xa,Vl=pe.stride,pe.stride=yo,ku=pe.divisor,pe.divisor=Wo,tf=Se.vert,Se.vert=ce,Tf=Se.frag,Se.frag=Be,Pe.dirty=!0,Fi(xe,di,ir),xe.viewportWidth=gt,xe.viewportHeight=bt,gn[0]=lr,gn[1]=Ct,gn[2]=ur,gn[3]=Ir,yt[0]=Rr,yt[1]=Nr,yt[2]=gi,yt[3]=ui,Qe.blend_enable=Qr,at[0]=Ui,at[1]=ln,at[2]=Tt,at[3]=_i,Qe.depth_enable=kn,Hr[0]=$n,Hr[1]=Wi,Hr[2]=Qi,Hr[3]=_r,Qe.scissor_enable=Yr,Qe.stencil_enable=fi,aa&&(r.cpuTime+=performance.now()-sn),hn&&Ve.destroyStream(Kn),De.elements=Ta,De.offset=wi,De.count=Ai,De.primitive=ea,ft[ie]=qn,ft[ge]=pi,ft[Ie]=Pa,ft[Ce]=ai,ft[le]=Vi,ft[re]=Na,ft[Ee]=wn,ft[we]=ei,ft[oe]=Ja,ft[Y]=ka,pn&&Le.destroyStream(Ri),ne.state=nn,ne.x=ta,ne.y=Bi,ne.z=On,ne.w=Nn,ne.buffer=ia,ne.size=Jr,ne.normalized=Ci,ne.type=un,ne.offset=Dn,ne.stride=Vn,ne.divisor=vn,Li&&Le.destroyStream(Hi),ye.state=xn,ye.x=da,ye.y=Mi,ye.z=Xr,ye.w=Gn,ye.buffer=to,ye.size=Jn,ye.normalized=ro,ye.type=mo,ye.offset=Oa,ye.stride=Si,ye.divisor=co,Fa&&Le.destroyStream(Ei),U.state=Wn,U.x=Xi,U.y=sa,U.z=Mo,U.w=ya,U.buffer=Qn,U.size=Tn,U.normalized=Da,U.type=zn,U.offset=Ia,U.stride=$i,U.divisor=In,la&&Le.destroyStream(Ao),se.state=Wa,se.x=$a,se.y=Fe,se.z=Ge,se.w=ot,se.buffer=rt,se.size=mt,se.normalized=It,se.type=Bt,se.offset=Ot,se.stride=nr,se.divisor=zr,Rt&&Le.destroyStream(li),Ae.state=ho,Ae.x=Fo,Ae.y=ls,Ae.z=Io,Ae.w=Ps,Ae.buffer=xs,Ae.size=us,Ae.normalized=Ni,Ae.type=io,Ae.offset=Eo,Ae.stride=oo,Ae.divisor=xo,so&&Le.destroyStream(Ks),be.state=Go,be.x=qs,be.y=Ts,be.z=Dl,be.w=_l,be.buffer=wl,be.size=vl,be.normalized=Al,be.type=ml,be.offset=Hl,be.stride=Tl,be.divisor=yl,fe&&Le.destroyStream(ct),me.state=Or,me.x=Pi,me.y=Rn,me.z=fo,me.w=Xo,me.buffer=Bo,me.size=fs,me.normalized=cs,me.type=Ns,me.offset=zl,me.stride=Is,me.divisor=Nl,cl&&Le.destroyStream(wu),ue.state=R,ue.x=G,ue.y=ee,ue.z=he,ue.w=ve,ue.buffer=_e,ue.size=je,ue.normalized=qe,ue.type=Je,ue.offset=ht,ue.stride=dt,ue.divisor=Ft,Qt&&Le.destroyStream(br),pe.state=Zo,pe.x=Qs,pe.y=rs,pe.z=Us,pe.w=jl,pe.buffer=Ou,pe.size=Jl,pe.normalized=po,pe.type=el,pe.offset=nl,pe.stride=Vl,pe.divisor=ku,Se.vert=tf,Se.frag=Tf,Pe.dirty=!0},batch:function(di,Fi){var ir,Kt,Me,Xe,Ye,et,gt;if(ir=At.angle_instanced_arrays,Kt=wt.next,Kt!==wt.cur&&(Kt?Ue.bindFramebuffer(36160,Kt.framebuffer):Ue.bindFramebuffer(36160,null),wt.cur=Kt),Pe.dirty){var bt,lr,Ct,ur,Ir,Rr,Nr,gi,ui,Qr,Ui,ln,Tt,_i,kn,ti,Fr,ji,na,mn,$n,Wi,Qi,_r,Yr,fi,aa,sn,ca,Kn,hn,Ta,tn,wi;bt=Qe.dither,bt!==Pe.dither&&(bt?Ue.enable(3024):Ue.disable(3024),Pe.dither=bt),lr=rr[0],Ct=rr[1],(lr!==Ke[0]||Ct!==Ke[1])&&(Ue.blendEquationSeparate(lr,Ct),Ke[0]=lr,Ke[1]=Ct),ur=Qe.depth_func,ur!==Pe.depth_func&&(Ue.depthFunc(ur),Pe.depth_func=ur),Ir=vt[0],Rr=vt[1],(Ir!==We[0]||Rr!==We[1])&&(Ue.depthRange(Ir,Rr),We[0]=Ir,We[1]=Rr),Nr=Qe.depth_mask,Nr!==Pe.depth_mask&&(Ue.depthMask(Nr),Pe.depth_mask=Nr),gi=ut[0],ui=ut[1],Qr=ut[2],Ui=ut[3],(gi!==kt[0]||ui!==kt[1]||Qr!==kt[2]||Ui!==kt[3])&&(Ue.colorMask(gi,ui,Qr,Ui),kt[0]=gi,kt[1]=ui,kt[2]=Qr,kt[3]=Ui),ln=Qe.cull_enable,ln!==Pe.cull_enable&&(ln?Ue.enable(2884):Ue.disable(2884),Pe.cull_enable=ln),Tt=Qe.cull_face,Tt!==Pe.cull_face&&(Ue.cullFace(Tt),Pe.cull_face=Tt),_i=Qe.frontFace,_i!==Pe.frontFace&&(Ue.frontFace(_i),Pe.frontFace=_i),kn=Qe.lineWidth,kn!==Pe.lineWidth&&(Ue.lineWidth(kn),Pe.lineWidth=kn),ti=Qe.polygonOffset_enable,ti!==Pe.polygonOffset_enable&&(ti?Ue.enable(32823):Ue.disable(32823),Pe.polygonOffset_enable=ti),Fr=$t[0],ji=$t[1],(Fr!==or[0]||ji!==or[1])&&(Ue.polygonOffset(Fr,ji),or[0]=Fr,or[1]=ji),na=Qe.sample_alpha,na!==Pe.sample_alpha&&(na?Ue.enable(32926):Ue.disable(32926),Pe.sample_alpha=na),mn=Qe.sample_enable,mn!==Pe.sample_enable&&(mn?Ue.enable(32928):Ue.disable(32928),Pe.sample_enable=mn),$n=Lr[0],Wi=Lr[1],($n!==Er[0]||Wi!==Er[1])&&(Ue.sampleCoverage($n,Wi),Er[0]=$n,Er[1]=Wi),Qi=Qe.stencil_mask,Qi!==Pe.stencil_mask&&(Ue.stencilMask(Qi),Pe.stencil_mask=Qi),_r=hr[0],Yr=hr[1],fi=hr[2],(_r!==ni[0]||Yr!==ni[1]||fi!==ni[2])&&(Ue.stencilFunc(_r,Yr,fi),ni[0]=_r,ni[1]=Yr,ni[2]=fi),aa=Kr[0],sn=Kr[1],ca=Kr[2],Kn=Kr[3],(aa!==si[0]||sn!==si[1]||ca!==si[2]||Kn!==si[3])&&(Ue.stencilOpSeparate(aa,sn,ca,Kn),si[0]=aa,si[1]=sn,si[2]=ca,si[3]=Kn),hn=Tr[0],Ta=Tr[1],tn=Tr[2],wi=Tr[3],(hn!==vr[0]||Ta!==vr[1]||tn!==vr[2]||wi!==vr[3])&&(Ue.stencilOpSeparate(hn,Ta,tn,wi),vr[0]=hn,vr[1]=Ta,vr[2]=tn,vr[3]=wi)}Ue.blendColor(0,0,0,1),St[0]=0,St[1]=0,St[2]=0,St[3]=1,$e?Ue.enable(3042):Ue.disable(3042),Pe.blend_enable=$e,Ue.blendFuncSeparate(770,771,773,1),lt[0]=770,lt[1]=771,lt[2]=773,lt[3]=1,Ze?Ue.enable(2929):Ue.disable(2929),Pe.depth_enable=Ze,it?Ue.enable(3089):Ue.disable(3089),Pe.scissor_enable=it,nt?Ue.enable(2960):Ue.disable(2960),Pe.stencil_enable=nt,Me=Pe.profile,Me&&(Xe=performance.now(),r.count+=Fi),Ue.useProgram(s.program),Ye=At.angle_instanced_arrays;var rn;for(st.setVAO(null),Ue.uniform1i(E.location,!1),Ue.uniform1i(D.location,L.bind()),rn=De.instances,et=0;et0?an.constant[0]:0,Yn=an.constant.length>1?an.constant[1]:0,Ja=an.constant.length>2?an.constant[2]:0,ja=an.constant.length>3?an.constant[3]:0)):(Dt(an.buffer)?ka=Le.createStream(34962,an.buffer):ka=Le.getBuffer(an.buffer),Va="type"in an?Sr[an.type]:ka.dtype,pn=!!an.normalized,ki=an.size|0,Gi=an.offset|0,Pr=an.stride|0,ri=an.divisor|0)),bn=u.location,Ri=ze[bn],Ra===1?(Ri.buffer||Ue.enableVertexAttribArray(bn),vi=ki||4,(Ri.type!==Va||Ri.size!==vi||Ri.buffer!==ka||Ri.normalized!==pn||Ri.offset!==Gi||Ri.stride!==Pr)&&(Ue.bindBuffer(34962,ka.buffer),Ue.vertexAttribPointer(bn,vi,Va,pn,Pr,Gi),Ri.type=Va,Ri.size=vi,Ri.buffer=ka,Ri.normalized=pn,Ri.offset=Gi,Ri.stride=Pr),Ri.divisor!==ri&&(Ye.vertexAttribDivisorANGLE(bn,ri),Ri.divisor=ri)):(Ri.buffer&&(Ue.disableVertexAttribArray(bn),Ri.buffer=null),(Ri.x!==ei||Ri.y!==Yn||Ri.z!==Ja||Ri.w!==ja)&&(Ue.vertexAttrib4f(bn,ei,Yn,Ja,ja),Ri.x=ei,Ri.y=Yn,Ri.z=Ja,Ri.w=ja)),yr=f.call(this,xe,gt,et),Ti=!1,Cn=1,Gr=0,Xn=0,nn=0,ta=0,Bi=null,On=0,Nn=!1,ia=5126,Jr=0,Ci=0,un=0,Dt(yr)?(Ti=!0,Bi=Le.createStream(34962,yr),ia=Bi.dtype):(Bi=Le.getBuffer(yr),Bi?ia=Bi.dtype:"constant"in yr?(Cn=2,typeof yr.constant=="number"?(Gr=yr.constant,Xn=nn=ta=0):(Gr=yr.constant.length>0?yr.constant[0]:0,Xn=yr.constant.length>1?yr.constant[1]:0,nn=yr.constant.length>2?yr.constant[2]:0,ta=yr.constant.length>3?yr.constant[3]:0)):(Dt(yr.buffer)?Bi=Le.createStream(34962,yr.buffer):Bi=Le.getBuffer(yr.buffer),ia="type"in yr?Sr[yr.type]:Bi.dtype,Nn=!!yr.normalized,On=yr.size|0,Jr=yr.offset|0,Ci=yr.stride|0,un=yr.divisor|0)),Dn=c.location,Vn=ze[Dn],Cn===1?(Vn.buffer||Ue.enableVertexAttribArray(Dn),vn=On||1,(Vn.type!==ia||Vn.size!==vn||Vn.buffer!==Bi||Vn.normalized!==Nn||Vn.offset!==Jr||Vn.stride!==Ci)&&(Ue.bindBuffer(34962,Bi.buffer),Ue.vertexAttribPointer(Dn,vn,ia,Nn,Ci,Jr),Vn.type=ia,Vn.size=vn,Vn.buffer=Bi,Vn.normalized=Nn,Vn.offset=Jr,Vn.stride=Ci),Vn.divisor!==un&&(Ye.vertexAttribDivisorANGLE(Dn,un),Vn.divisor=un)):(Vn.buffer&&(Ue.disableVertexAttribArray(Dn),Vn.buffer=null),(Vn.x!==Gr||Vn.y!==Xn||Vn.z!==nn||Vn.w!==ta)&&(Ue.vertexAttrib4f(Dn,Gr,Xn,nn,ta),Vn.x=Gr,Vn.y=Xn,Vn.z=nn,Vn.w=ta)),Br=h.call(this,xe,gt,et),Li=!1,Ua=1,yi=0,Ma=0,Ba=0,Bn=0,Hi=null,yn=0,jn=!1,Un=5126,zi=0,xr=0,Ln=0,Dt(Br)?(Li=!0,Hi=Le.createStream(34962,Br),Un=Hi.dtype):(Hi=Le.getBuffer(Br),Hi?Un=Hi.dtype:"constant"in Br?(Ua=2,typeof Br.constant=="number"?(yi=Br.constant,Ma=Ba=Bn=0):(yi=Br.constant.length>0?Br.constant[0]:0,Ma=Br.constant.length>1?Br.constant[1]:0,Ba=Br.constant.length>2?Br.constant[2]:0,Bn=Br.constant.length>3?Br.constant[3]:0)):(Dt(Br.buffer)?Hi=Le.createStream(34962,Br.buffer):Hi=Le.getBuffer(Br.buffer),Un="type"in Br?Sr[Br.type]:Hi.dtype,jn=!!Br.normalized,yn=Br.size|0,zi=Br.offset|0,xr=Br.stride|0,Ln=Br.divisor|0)),xn=d.location,da=ze[xn],Ua===1?(da.buffer||Ue.enableVertexAttribArray(xn),Mi=yn||4,(da.type!==Un||da.size!==Mi||da.buffer!==Hi||da.normalized!==jn||da.offset!==zi||da.stride!==xr)&&(Ue.bindBuffer(34962,Hi.buffer),Ue.vertexAttribPointer(xn,Mi,Un,jn,xr,zi),da.type=Un,da.size=Mi,da.buffer=Hi,da.normalized=jn,da.offset=zi,da.stride=xr),da.divisor!==Ln&&(Ye.vertexAttribDivisorANGLE(xn,Ln),da.divisor=Ln)):(da.buffer&&(Ue.disableVertexAttribArray(xn),da.buffer=null),(da.x!==yi||da.y!==Ma||da.z!==Ba||da.w!==Bn)&&(Ue.vertexAttrib4f(xn,yi,Ma,Ba,Bn),da.x=yi,da.y=Ma,da.z=Ba,da.w=Bn)),Xr=p.call(this,xe,gt,et),Gn=!1,to=1,Jn=0,ro=0,mo=0,Oa=0,Si=null,co=0,Pn=!1,Fa=5126,oa=0,Hn=0,va=0,Dt(Xr)?(Gn=!0,Si=Le.createStream(34962,Xr),Fa=Si.dtype):(Si=Le.getBuffer(Xr),Si?Fa=Si.dtype:"constant"in Xr?(to=2,typeof Xr.constant=="number"?(Jn=Xr.constant,ro=mo=Oa=0):(Jn=Xr.constant.length>0?Xr.constant[0]:0,ro=Xr.constant.length>1?Xr.constant[1]:0,mo=Xr.constant.length>2?Xr.constant[2]:0,Oa=Xr.constant.length>3?Xr.constant[3]:0)):(Dt(Xr.buffer)?Si=Le.createStream(34962,Xr.buffer):Si=Le.getBuffer(Xr.buffer),Fa="type"in Xr?Sr[Xr.type]:Si.dtype,Pn=!!Xr.normalized,co=Xr.size|0,oa=Xr.offset|0,Hn=Xr.stride|0,va=Xr.divisor|0)),ma=v.location,Sa=ze[ma],to===1?(Sa.buffer||Ue.enableVertexAttribArray(ma),Ei=co||1,(Sa.type!==Fa||Sa.size!==Ei||Sa.buffer!==Si||Sa.normalized!==Pn||Sa.offset!==oa||Sa.stride!==Hn)&&(Ue.bindBuffer(34962,Si.buffer),Ue.vertexAttribPointer(ma,Ei,Fa,Pn,Hn,oa),Sa.type=Fa,Sa.size=Ei,Sa.buffer=Si,Sa.normalized=Pn,Sa.offset=oa,Sa.stride=Hn),Sa.divisor!==va&&(Ye.vertexAttribDivisorANGLE(ma,va),Sa.divisor=va)):(Sa.buffer&&(Ue.disableVertexAttribArray(ma),Sa.buffer=null),(Sa.x!==Jn||Sa.y!==ro||Sa.z!==mo||Sa.w!==Oa)&&(Ue.vertexAttrib4f(ma,Jn,ro,mo,Oa),Sa.x=Jn,Sa.y=ro,Sa.z=mo,Sa.w=Oa)),jr=y.call(this,xe,gt,et),An=!1,Za=1,Ga=0,Ca=0,za=0,Wn=0,Xi=null,sa=0,Mo=!1,ya=5126,Qn=0,Tn=0,Da=0,Dt(jr)?(An=!0,Xi=Le.createStream(34962,jr),ya=Xi.dtype):(Xi=Le.getBuffer(jr),Xi?ya=Xi.dtype:"constant"in jr?(Za=2,typeof jr.constant=="number"?(Ga=jr.constant,Ca=za=Wn=0):(Ga=jr.constant.length>0?jr.constant[0]:0,Ca=jr.constant.length>1?jr.constant[1]:0,za=jr.constant.length>2?jr.constant[2]:0,Wn=jr.constant.length>3?jr.constant[3]:0)):(Dt(jr.buffer)?Xi=Le.createStream(34962,jr.buffer):Xi=Le.getBuffer(jr.buffer),ya="type"in jr?Sr[jr.type]:Xi.dtype,Mo=!!jr.normalized,sa=jr.size|0,Qn=jr.offset|0,Tn=jr.stride|0,Da=jr.divisor|0)),zn=m.location,Ia=ze[zn],Za===1?(Ia.buffer||Ue.enableVertexAttribArray(zn),$i=sa||1,(Ia.type!==ya||Ia.size!==$i||Ia.buffer!==Xi||Ia.normalized!==Mo||Ia.offset!==Qn||Ia.stride!==Tn)&&(Ue.bindBuffer(34962,Xi.buffer),Ue.vertexAttribPointer(zn,$i,ya,Mo,Tn,Qn),Ia.type=ya,Ia.size=$i,Ia.buffer=Xi,Ia.normalized=Mo,Ia.offset=Qn,Ia.stride=Tn),Ia.divisor!==Da&&(Ye.vertexAttribDivisorANGLE(zn,Da),Ia.divisor=Da)):(Ia.buffer&&(Ue.disableVertexAttribArray(zn),Ia.buffer=null),(Ia.x!==Ga||Ia.y!==Ca||Ia.z!==za||Ia.w!==Wn)&&(Ue.vertexAttrib4f(zn,Ga,Ca,za,Wn),Ia.x=Ga,Ia.y=Ca,Ia.z=za,Ia.w=Wn)),In=w.call(this,xe,gt,et),qi=!1,la=1,ga=0,go=0,eo=0,So=0,Mn=null,Ao=0,Ya=!1,Co=5126,Ii=0,qa=0,Zn=0,Dt(In)?(qi=!0,Mn=Le.createStream(34962,In),Co=Mn.dtype):(Mn=Le.getBuffer(In),Mn?Co=Mn.dtype:"constant"in In?(la=2,typeof In.constant=="number"?(ga=In.constant,go=eo=So=0):(ga=In.constant.length>0?In.constant[0]:0,go=In.constant.length>1?In.constant[1]:0,eo=In.constant.length>2?In.constant[2]:0,So=In.constant.length>3?In.constant[3]:0)):(Dt(In.buffer)?Mn=Le.createStream(34962,In.buffer):Mn=Le.getBuffer(In.buffer),Co="type"in In?Sr[In.type]:Mn.dtype,Ya=!!In.normalized,Ao=In.size|0,Ii=In.offset|0,qa=In.stride|0,Zn=In.divisor|0)),Ha=_.location,Wa=ze[Ha],la===1?(Wa.buffer||Ue.enableVertexAttribArray(Ha),$a=Ao||1,(Wa.type!==Co||Wa.size!==$a||Wa.buffer!==Mn||Wa.normalized!==Ya||Wa.offset!==Ii||Wa.stride!==qa)&&(Ue.bindBuffer(34962,Mn.buffer),Ue.vertexAttribPointer(Ha,$a,Co,Ya,qa,Ii),Wa.type=Co,Wa.size=$a,Wa.buffer=Mn,Wa.normalized=Ya,Wa.offset=Ii,Wa.stride=qa),Wa.divisor!==Zn&&(Ye.vertexAttribDivisorANGLE(Ha,Zn),Wa.divisor=Zn)):(Wa.buffer&&(Ue.disableVertexAttribArray(Ha),Wa.buffer=null),(Wa.x!==ga||Wa.y!==go||Wa.z!==eo||Wa.w!==So)&&(Ue.vertexAttrib4f(Ha,ga,go,eo,So),Wa.x=ga,Wa.y=go,Wa.z=eo,Wa.w=So)),Fe=b.call(this,xe,gt,et),Ge=!1,ot=1,rt=0,mt=0,It=0,Bt=0,Ot=null,nr=0,zr=!1,Wt=5126,Rt=0,er=0,kr=0,Dt(Fe)?(Ge=!0,Ot=Le.createStream(34962,Fe),Wt=Ot.dtype):(Ot=Le.getBuffer(Fe),Ot?Wt=Ot.dtype:"constant"in Fe?(ot=2,typeof Fe.constant=="number"?(rt=Fe.constant,mt=It=Bt=0):(rt=Fe.constant.length>0?Fe.constant[0]:0,mt=Fe.constant.length>1?Fe.constant[1]:0,It=Fe.constant.length>2?Fe.constant[2]:0,Bt=Fe.constant.length>3?Fe.constant[3]:0)):(Dt(Fe.buffer)?Ot=Le.createStream(34962,Fe.buffer):Ot=Le.getBuffer(Fe.buffer),Wt="type"in Fe?Sr[Fe.type]:Ot.dtype,zr=!!Fe.normalized,nr=Fe.size|0,Rt=Fe.offset|0,er=Fe.stride|0,kr=Fe.divisor|0)),Vr=M.location,ii=ze[Vr],ot===1?(ii.buffer||Ue.enableVertexAttribArray(Vr),ci=nr||1,(ii.type!==Wt||ii.size!==ci||ii.buffer!==Ot||ii.normalized!==zr||ii.offset!==Rt||ii.stride!==er)&&(Ue.bindBuffer(34962,Ot.buffer),Ue.vertexAttribPointer(Vr,ci,Wt,zr,er,Rt),ii.type=Wt,ii.size=ci,ii.buffer=Ot,ii.normalized=zr,ii.offset=Rt,ii.stride=er),ii.divisor!==kr&&(Ye.vertexAttribDivisorANGLE(Vr,kr),ii.divisor=kr)):(ii.buffer&&(Ue.disableVertexAttribArray(Vr),ii.buffer=null),(ii.x!==rt||ii.y!==mt||ii.z!==It||ii.w!==Bt)&&(Ue.vertexAttrib4f(Vr,rt,mt,It,Bt),ii.x=rt,ii.y=mt,ii.z=It,ii.w=Bt)),li=x.call(this,xe,gt,et),mi=!1,xi=1,Oi=0,ua=0,xa=0,ao=0,ho=null,Fo=0,ls=!1,Io=5126,Ps=0,xs=0,us=0,Dt(li)?(mi=!0,ho=Le.createStream(34962,li),Io=ho.dtype):(ho=Le.getBuffer(li),ho?Io=ho.dtype:"constant"in li?(xi=2,typeof li.constant=="number"?(Oi=li.constant,ua=xa=ao=0):(Oi=li.constant.length>0?li.constant[0]:0,ua=li.constant.length>1?li.constant[1]:0,xa=li.constant.length>2?li.constant[2]:0,ao=li.constant.length>3?li.constant[3]:0)):(Dt(li.buffer)?ho=Le.createStream(34962,li.buffer):ho=Le.getBuffer(li.buffer),Io="type"in li?Sr[li.type]:ho.dtype,ls=!!li.normalized,Fo=li.size|0,Ps=li.offset|0,xs=li.stride|0,us=li.divisor|0)),Ni=A.location,io=ze[Ni],xi===1?(io.buffer||Ue.enableVertexAttribArray(Ni),Eo=Fo||1,(io.type!==Io||io.size!==Eo||io.buffer!==ho||io.normalized!==ls||io.offset!==Ps||io.stride!==xs)&&(Ue.bindBuffer(34962,ho.buffer),Ue.vertexAttribPointer(Ni,Eo,Io,ls,xs,Ps),io.type=Io,io.size=Eo,io.buffer=ho,io.normalized=ls,io.offset=Ps,io.stride=xs),io.divisor!==us&&(Ye.vertexAttribDivisorANGLE(Ni,us),io.divisor=us)):(io.buffer&&(Ue.disableVertexAttribArray(Ni),io.buffer=null),(io.x!==Oi||io.y!==ua||io.z!==xa||io.w!==ao)&&(Ue.vertexAttrib4f(Ni,Oi,ua,xa,ao),io.x=Oi,io.y=ua,io.z=xa,io.w=ao)),oo=T.call(this,xe,gt,et),xo=!1,bo=1,so=0,Yo=0,Uo=0,es=0,jo=null,Qo=0,Ks=!1,js=5126,Ds=0,_s=0,as=0,Dt(oo)?(xo=!0,jo=Le.createStream(34962,oo),js=jo.dtype):(jo=Le.getBuffer(oo),jo?js=jo.dtype:"constant"in oo?(bo=2,typeof oo.constant=="number"?(so=oo.constant,Yo=Uo=es=0):(so=oo.constant.length>0?oo.constant[0]:0,Yo=oo.constant.length>1?oo.constant[1]:0,Uo=oo.constant.length>2?oo.constant[2]:0,es=oo.constant.length>3?oo.constant[3]:0)):(Dt(oo.buffer)?jo=Le.createStream(34962,oo.buffer):jo=Le.getBuffer(oo.buffer),js="type"in oo?Sr[oo.type]:jo.dtype,Ks=!!oo.normalized,Qo=oo.size|0,Ds=oo.offset|0,_s=oo.stride|0,as=oo.divisor|0)),Es=g.location,To=ze[Es],bo===1?(To.buffer||Ue.enableVertexAttribArray(Es),Go=Qo||1,(To.type!==js||To.size!==Go||To.buffer!==jo||To.normalized!==Ks||To.offset!==Ds||To.stride!==_s)&&(Ue.bindBuffer(34962,jo.buffer),Ue.vertexAttribPointer(Es,Go,js,Ks,_s,Ds),To.type=js,To.size=Go,To.buffer=jo,To.normalized=Ks,To.offset=Ds,To.stride=_s),To.divisor!==as&&(Ye.vertexAttribDivisorANGLE(Es,as),To.divisor=as)):(To.buffer&&(Ue.disableVertexAttribArray(Es),To.buffer=null),(To.x!==so||To.y!==Yo||To.z!==Uo||To.w!==es)&&(Ue.vertexAttrib4f(Es,so,Yo,Uo,es),To.x=so,To.y=Yo,To.z=Uo,To.w=es)),qs=gt.opacity,(!et||Ts!==qs)&&(Ts=qs,Ue.uniform1f(S.location,qs)),Dl=k.call(this,xe,gt,et),_l=Dl[0],vl=Dl[1],(!et||wl!==_l||Al!==vl)&&(wl=_l,Al=vl,Ue.uniform2f(C.location,_l,vl)),ml=xe.pixelRatio,(!et||Hl!==ml)&&(Hl=ml,Ue.uniform1f(P.location,ml)),Tl=gt.scale,yl=Tl[0],fe=Tl[1],(!et||ae!==yl||Te!==fe)&&(ae=yl,Te=fe,Ue.uniform2f(I.location,yl,fe)),ke=gt.scaleFract,Ne=ke[0],He=ke[1],(!et||Oe!==Ne||ct!==He)&&(Oe=Ne,ct=He,Ue.uniform2f(F.location,Ne,He)),xt=gt.translate,pt=xt[0],Lt=xt[1],(!et||_t!==pt||Jt!==Lt)&&(_t=pt,Jt=Lt,Ue.uniform2f(z.location,pt,Lt)),fr=gt.translateFract,Or=fr[0],Rn=fr[1],(!et||Pi!==Or||fo!==Rn)&&(Pi=Or,fo=Rn,Ue.uniform2f(B.location,Or,Rn)),Xo=gt.elements,Bo=null,fs=Dt(Xo),fs?Bo=Ve.createStream(Xo):Bo=Ve.getElements(Xo),Bo&&Ue.bindBuffer(34963,Bo.buffer.buffer),cs=gt.offset,Ns=gt.count,Ns&&(rn>0?Bo?Ye.drawElementsInstancedANGLE(0,Ns,Bo.type,cs<<(Bo.type-5121>>1),rn):Ye.drawArraysInstancedANGLE(0,cs,Ns,rn):rn<0&&(Bo?Ue.drawElements(0,Ns,Bo.type,cs<<(Bo.type-5121>>1)):Ue.drawArrays(0,cs,Ns)),xe.viewportWidth=Pa,xe.viewportHeight=dr,wn&&Le.destroyStream(ka),Ti&&Le.destroyStream(Bi),Li&&Le.destroyStream(Hi),Gn&&Le.destroyStream(Si),An&&Le.destroyStream(Xi),qi&&Le.destroyStream(Mn),Ge&&Le.destroyStream(Ot),mi&&Le.destroyStream(ho),xo&&Le.destroyStream(jo),fs&&Ve.destroyStream(Bo))}L.unbind(),Pe.dirty=!0,st.setVAO(null),Me&&(r.cpuTime+=performance.now()-Xe)}}}});var kB=K((qri,SZe)=>{"use strict";SZe.exports=function(t,r,i,n,a,o,s,l){"use strict";var u,f,c,h,d,p,v,y,m,w,_,b,M,x,A,T,g,E,S,C,k,D,L,P,I,F,z,B,O,W,X,Z,j,q,Q,N,V,J,H,$,te,ie,de,ge,Ie,Ce,le,re,Ee;return u=t.gl,f=t.context,c=t.strings,h=t.next,d=t.current,p=t.draw,v=t.elements,y=t.buffer,m=t.shader,w=t.attributes,_=t.vao,b=t.uniforms,M=t.framebuffer,x=t.extensions,A=t.timer,T=t.isBufferArgs,g=h.blend_color,E=d.blend_color,S=h.blend_equation,C=d.blend_equation,k=h.blend_func,D=d.blend_func,L=h.depth_range,P=d.depth_range,I=h.colorMask,F=d.colorMask,z=h.polygonOffset_offset,B=d.polygonOffset_offset,O=h.sample_coverage,W=d.sample_coverage,X=h.stencil_func,Z=d.stencil_func,j=h.stencil_opFront,q=d.stencil_opFront,Q=h.stencil_opBack,N=d.stencil_opBack,V=h.scissor_box,J=d.scissor_box,H=h.viewport,$=d.viewport,te={points:0,point:0,lines:1,line:1,triangles:4,triangle:4,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},ie={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},de={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},ge={add:32774,subtract:32778,"reverse subtract":32779},Ie={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},Ce={int8:5120,int16:5122,int32:5124,uint8:5121,uint16:5123,uint32:5125,float:5126,float32:5126},le={cw:2304,ccw:2305},re={},Ee={},{draw:function(we){var oe,Y,ne,ye,U,se,Ae,be,me,ue,pe,ce,Be,$e,Ze,it,nt,Ue,xe;if(oe=x.angle_instanced_arrays,Y=we.framebuffer,ne=M.getFramebuffer(Y),ye=M.next,M.next=ne,U=f.framebufferWidth,f.framebufferWidth=ne?ne.width:f.drawingBufferWidth,se=f.framebufferHeight,f.framebufferHeight=ne?ne.height:f.drawingBufferHeight,ne!==M.cur&&(ne?u.bindFramebuffer(36160,ne.framebuffer):u.bindFramebuffer(36160,null),M.cur=ne),d.dirty){var Re,Qe,Pe,De,Ve,Le,Se,ze,st,ft,wt,At,Vt,Dt,yt,St,rr,Ke,at,lt,vt,We,ut,kt,$t,or,Lr,Er,hr,ni,Kr,si,Tr,vr,Hr,Di,gn,wr,qr,Ut,jt,pr,Ur,Sr,Cr,di;Re=h.dither,Re!==d.dither&&(Re?u.enable(3024):u.disable(3024),d.dither=Re),Qe=h.blend_enable,Qe!==d.blend_enable&&(Qe?u.enable(3042):u.disable(3042),d.blend_enable=Qe),Pe=g[0],De=g[1],Ve=g[2],Le=g[3],(Pe!==E[0]||De!==E[1]||Ve!==E[2]||Le!==E[3])&&(u.blendColor(Pe,De,Ve,Le),E[0]=Pe,E[1]=De,E[2]=Ve,E[3]=Le),Se=S[0],ze=S[1],(Se!==C[0]||ze!==C[1])&&(u.blendEquationSeparate(Se,ze),C[0]=Se,C[1]=ze),st=k[0],ft=k[1],wt=k[2],At=k[3],(st!==D[0]||ft!==D[1]||wt!==D[2]||At!==D[3])&&(u.blendFuncSeparate(st,ft,wt,At),D[0]=st,D[1]=ft,D[2]=wt,D[3]=At),Vt=h.depth_enable,Vt!==d.depth_enable&&(Vt?u.enable(2929):u.disable(2929),d.depth_enable=Vt),Dt=h.depth_func,Dt!==d.depth_func&&(u.depthFunc(Dt),d.depth_func=Dt),yt=L[0],St=L[1],(yt!==P[0]||St!==P[1])&&(u.depthRange(yt,St),P[0]=yt,P[1]=St),rr=h.depth_mask,rr!==d.depth_mask&&(u.depthMask(rr),d.depth_mask=rr),Ke=I[0],at=I[1],lt=I[2],vt=I[3],(Ke!==F[0]||at!==F[1]||lt!==F[2]||vt!==F[3])&&(u.colorMask(Ke,at,lt,vt),F[0]=Ke,F[1]=at,F[2]=lt,F[3]=vt),We=h.cull_enable,We!==d.cull_enable&&(We?u.enable(2884):u.disable(2884),d.cull_enable=We),ut=h.cull_face,ut!==d.cull_face&&(u.cullFace(ut),d.cull_face=ut),kt=h.frontFace,kt!==d.frontFace&&(u.frontFace(kt),d.frontFace=kt),$t=h.lineWidth,$t!==d.lineWidth&&(u.lineWidth($t),d.lineWidth=$t),or=h.polygonOffset_enable,or!==d.polygonOffset_enable&&(or?u.enable(32823):u.disable(32823),d.polygonOffset_enable=or),Lr=z[0],Er=z[1],(Lr!==B[0]||Er!==B[1])&&(u.polygonOffset(Lr,Er),B[0]=Lr,B[1]=Er),hr=h.sample_alpha,hr!==d.sample_alpha&&(hr?u.enable(32926):u.disable(32926),d.sample_alpha=hr),ni=h.sample_enable,ni!==d.sample_enable&&(ni?u.enable(32928):u.disable(32928),d.sample_enable=ni),Kr=O[0],si=O[1],(Kr!==W[0]||si!==W[1])&&(u.sampleCoverage(Kr,si),W[0]=Kr,W[1]=si),Tr=h.stencil_enable,Tr!==d.stencil_enable&&(Tr?u.enable(2960):u.disable(2960),d.stencil_enable=Tr),vr=h.stencil_mask,vr!==d.stencil_mask&&(u.stencilMask(vr),d.stencil_mask=vr),Hr=X[0],Di=X[1],gn=X[2],(Hr!==Z[0]||Di!==Z[1]||gn!==Z[2])&&(u.stencilFunc(Hr,Di,gn),Z[0]=Hr,Z[1]=Di,Z[2]=gn),wr=j[0],qr=j[1],Ut=j[2],jt=j[3],(wr!==q[0]||qr!==q[1]||Ut!==q[2]||jt!==q[3])&&(u.stencilOpSeparate(wr,qr,Ut,jt),q[0]=wr,q[1]=qr,q[2]=Ut,q[3]=jt),pr=Q[0],Ur=Q[1],Sr=Q[2],Cr=Q[3],(pr!==N[0]||Ur!==N[1]||Sr!==N[2]||Cr!==N[3])&&(u.stencilOpSeparate(pr,Ur,Sr,Cr),N[0]=pr,N[1]=Ur,N[2]=Sr,N[3]=Cr),di=h.scissor_enable,di!==d.scissor_enable&&(di?u.enable(3089):u.disable(3089),d.scissor_enable=di)}Ae=f.framebufferWidth,be=f.framebufferHeight,me=f.viewportWidth,f.viewportWidth=Ae,ue=f.viewportHeight,f.viewportHeight=be,u.viewport(0,0,Ae,be),$[0]=0,$[1]=0,$[2]=Ae,$[3]=be,pe=f.framebufferWidth,ce=f.framebufferHeight,u.scissor(0,0,pe,ce),J[0]=0,J[1]=0,J[2]=pe,J[3]=ce,Be=d.profile,Be&&($e=performance.now(),r.count++),Ze=m.frag,it=m.vert,nt=m.program(it,Ze),u.useProgram(nt.program),_.setVAO(null),Ue=nt.id,xe=re[Ue],xe?xe.call(this,we):(xe=re[Ue]=i(nt),xe.call(this,we)),d.dirty=!0,_.setVAO(null),M.next=ye,f.framebufferWidth=U,f.framebufferHeight=se,f.viewportWidth=me,f.viewportHeight=ue,Be&&(r.cpuTime+=performance.now()-$e)},scope:function(we,oe,Y){var ne,ye,U,se,Ae,be,me,ue,pe,ce,Be,$e,Ze,it,nt,Ue,xe,Re,Qe,Pe,De;ne=we.framebuffer,ye=M.getFramebuffer(ne),U=M.next,M.next=ye,se=f.framebufferWidth,f.framebufferWidth=ye?ye.width:f.drawingBufferWidth,Ae=f.framebufferHeight,f.framebufferHeight=ye?ye.height:f.drawingBufferHeight,be=f.framebufferWidth,me=f.framebufferHeight,ue=f.viewportWidth,f.viewportWidth=be,pe=f.viewportHeight,f.viewportHeight=me,ce=H[0],H[0]=n,Be=H[1],H[1]=a,$e=H[2],H[2]=be,Ze=H[3],H[3]=me,it=f.framebufferWidth,nt=f.framebufferHeight,Ue=V[0],V[0]=o,xe=V[1],V[1]=s,Re=V[2],V[2]=it,Qe=V[3],V[3]=nt,Pe=d.profile,Pe&&(De=performance.now(),r.count++),d.dirty=!0,oe(f,we,Y),M.next=U,f.framebufferWidth=se,f.framebufferHeight=Ae,f.viewportWidth=ue,f.viewportHeight=pe,H[0]=ce,H[1]=Be,H[2]=$e,H[3]=Ze,V[0]=Ue,V[1]=xe,V[2]=Re,V[3]=Qe,Pe&&(r.cpuTime+=performance.now()-De),d.dirty=!0},batch:function(we,oe){var Y,ne,ye,U,se,Ae,be,me;if(Y=x.angle_instanced_arrays,d.dirty){var ue,pe,ce,Be,$e,Ze,it,nt,Ue,xe,Re,Qe,Pe,De,Ve,Le,Se,ze,st,ft,wt,At,Vt,Dt,yt,St,rr,Ke,at,lt,vt,We,ut,kt,$t,or,Lr,Er,hr,ni,Kr,si,Tr,vr,Hr,Di;ue=h.dither,ue!==d.dither&&(ue?u.enable(3024):u.disable(3024),d.dither=ue),pe=h.blend_enable,pe!==d.blend_enable&&(pe?u.enable(3042):u.disable(3042),d.blend_enable=pe),ce=g[0],Be=g[1],$e=g[2],Ze=g[3],(ce!==E[0]||Be!==E[1]||$e!==E[2]||Ze!==E[3])&&(u.blendColor(ce,Be,$e,Ze),E[0]=ce,E[1]=Be,E[2]=$e,E[3]=Ze),it=S[0],nt=S[1],(it!==C[0]||nt!==C[1])&&(u.blendEquationSeparate(it,nt),C[0]=it,C[1]=nt),Ue=k[0],xe=k[1],Re=k[2],Qe=k[3],(Ue!==D[0]||xe!==D[1]||Re!==D[2]||Qe!==D[3])&&(u.blendFuncSeparate(Ue,xe,Re,Qe),D[0]=Ue,D[1]=xe,D[2]=Re,D[3]=Qe),Pe=h.depth_enable,Pe!==d.depth_enable&&(Pe?u.enable(2929):u.disable(2929),d.depth_enable=Pe),De=h.depth_func,De!==d.depth_func&&(u.depthFunc(De),d.depth_func=De),Ve=L[0],Le=L[1],(Ve!==P[0]||Le!==P[1])&&(u.depthRange(Ve,Le),P[0]=Ve,P[1]=Le),Se=h.depth_mask,Se!==d.depth_mask&&(u.depthMask(Se),d.depth_mask=Se),ze=I[0],st=I[1],ft=I[2],wt=I[3],(ze!==F[0]||st!==F[1]||ft!==F[2]||wt!==F[3])&&(u.colorMask(ze,st,ft,wt),F[0]=ze,F[1]=st,F[2]=ft,F[3]=wt),At=h.cull_enable,At!==d.cull_enable&&(At?u.enable(2884):u.disable(2884),d.cull_enable=At),Vt=h.cull_face,Vt!==d.cull_face&&(u.cullFace(Vt),d.cull_face=Vt),Dt=h.frontFace,Dt!==d.frontFace&&(u.frontFace(Dt),d.frontFace=Dt),yt=h.lineWidth,yt!==d.lineWidth&&(u.lineWidth(yt),d.lineWidth=yt),St=h.polygonOffset_enable,St!==d.polygonOffset_enable&&(St?u.enable(32823):u.disable(32823),d.polygonOffset_enable=St),rr=z[0],Ke=z[1],(rr!==B[0]||Ke!==B[1])&&(u.polygonOffset(rr,Ke),B[0]=rr,B[1]=Ke),at=h.sample_alpha,at!==d.sample_alpha&&(at?u.enable(32926):u.disable(32926),d.sample_alpha=at),lt=h.sample_enable,lt!==d.sample_enable&&(lt?u.enable(32928):u.disable(32928),d.sample_enable=lt),vt=O[0],We=O[1],(vt!==W[0]||We!==W[1])&&(u.sampleCoverage(vt,We),W[0]=vt,W[1]=We),ut=h.stencil_enable,ut!==d.stencil_enable&&(ut?u.enable(2960):u.disable(2960),d.stencil_enable=ut),kt=h.stencil_mask,kt!==d.stencil_mask&&(u.stencilMask(kt),d.stencil_mask=kt),$t=X[0],or=X[1],Lr=X[2],($t!==Z[0]||or!==Z[1]||Lr!==Z[2])&&(u.stencilFunc($t,or,Lr),Z[0]=$t,Z[1]=or,Z[2]=Lr),Er=j[0],hr=j[1],ni=j[2],Kr=j[3],(Er!==q[0]||hr!==q[1]||ni!==q[2]||Kr!==q[3])&&(u.stencilOpSeparate(Er,hr,ni,Kr),q[0]=Er,q[1]=hr,q[2]=ni,q[3]=Kr),si=Q[0],Tr=Q[1],vr=Q[2],Hr=Q[3],(si!==N[0]||Tr!==N[1]||vr!==N[2]||Hr!==N[3])&&(u.stencilOpSeparate(si,Tr,vr,Hr),N[0]=si,N[1]=Tr,N[2]=vr,N[3]=Hr),Di=h.scissor_enable,Di!==d.scissor_enable&&(Di?u.enable(3089):u.disable(3089),d.scissor_enable=Di)}ne=d.profile,ne&&(ye=performance.now(),r.count+=oe),U=m.frag,se=m.vert,Ae=m.program(se,U),u.useProgram(Ae.program),_.setVAO(null),be=Ae.id,me=Ee[be],me?me.call(this,we,oe):(me=Ee[be]=l(Ae),me.call(this,we,oe)),d.dirty=!0,_.setVAO(null),ne&&(r.cpuTime+=performance.now()-ye)}}}});var CB=K((Ori,EZe)=>{"use strict";EZe.exports=function(t,r,i,n,a,o,s,l,u,f,c,h,d,p,v,y,m,w,_,b,M,x,A,T,g,E,S,C,k,D,L,P,I,F,z,B,O,W,X,Z,j,q,Q,N,V,J,H,$,te,ie,de,ge,Ie,Ce,le,re,Ee,we,oe,Y,ne,ye,U,se,Ae,be,me,ue,pe,ce,Be,$e,Ze,it,nt,Ue,xe){"use strict";var Re,Qe,Pe,De,Ve,Le,Se,ze,st,ft,wt,At,Vt,Dt,yt,St,rr,Ke,at,lt,vt,We,ut,kt,$t,or,Lr,Er,hr,ni,Kr,si,Tr,vr,Hr,Di,gn,wr,qr,Ut,jt,pr,Ur,Sr,Cr,di,Fi,ir,Kt,Me,Xe,Ye,et;return Re=t.gl,Qe=t.context,Pe=t.strings,De=t.next,Ve=t.current,Le=t.draw,Se=t.elements,ze=t.buffer,st=t.shader,ft=t.attributes,wt=t.vao,At=t.uniforms,Vt=t.framebuffer,Dt=t.extensions,yt=t.timer,St=t.isBufferArgs,rr=De.blend_color,Ke=Ve.blend_color,at=De.blend_equation,lt=Ve.blend_equation,vt=De.blend_func,We=Ve.blend_func,ut=De.depth_range,kt=Ve.depth_range,$t=De.colorMask,or=Ve.colorMask,Lr=De.polygonOffset_offset,Er=Ve.polygonOffset_offset,hr=De.sample_coverage,ni=Ve.sample_coverage,Kr=De.stencil_func,si=Ve.stencil_func,Tr=De.stencil_opFront,vr=Ve.stencil_opFront,Hr=De.stencil_opBack,Di=Ve.stencil_opBack,gn=De.scissor_box,wr=Ve.scissor_box,qr=De.viewport,Ut=Ve.viewport,jt={points:0,point:0,lines:1,line:1,triangles:4,triangle:4,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},pr={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},Ur={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},Sr={add:32774,subtract:32778,"reverse subtract":32779},Cr={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},di={int8:5120,int16:5122,int32:5124,uint8:5121,uint16:5123,uint32:5125,float:5126,float32:5126},Fi={cw:2304,ccw:2305},ir={},ir.stride=4,ir.offset=0,ir.divisor=1,Kt={},Kt.stride=4,Kt.offset=4,Kt.divisor=1,Me={},Me.stride=8,Me.offset=0,Me.divisor=1,Xe={},Xe.stride=8,Xe.offset=8,Xe.divisor=1,Ye={},Ye.stride=8,Ye.offset=16,Ye.divisor=1,et={},et.stride=8,et.offset=24,et.divisor=1,{draw:function(gt){var bt,lr,Ct,ur,Ir,Rr,Nr,gi,ui,Qr,Ui,ln,Tt,_i,kn,ti,Fr,ji,na,mn,$n,Wi,Qi,_r,Yr,fi,aa,sn,ca,Kn,hn,Ta,tn,wi,rn,Ai,ea,qn,pi,Fn,Pa,dr,ai,Zi,Vi,pa,Na,an,wn,Ra,ei,Yn,Ja,ja,ka,ki,pn,Va,Gi,Pr,ri,bn,Ri,vi,yr,Ti,Cn,Gr,Xn,nn,ta,Bi,On,Nn,ia,Jr,Ci,un,Dn,Vn,vn,Br,Li,Ua,yi,Ma,Ba,Bn,Hi,yn,jn,Un,zi,xr,Ln,xn,da,Mi,Xr,Gn,to,Jn,ro,mo,Oa,Si,co,Pn,Fa,oa,Hn,va,ma,Sa,Ei,jr,An,Za,Ga,Ca,za,Wn,Xi,sa,Mo,ya,Qn,Tn,Da,zn,Ia,$i,In,qi,la,ga,go,eo,So,Mn,Ao,Ya,Co,Ii,qa;if(bt=Dt.angle_instanced_arrays,lr=Vt.next,lr!==Vt.cur&&(lr?Re.bindFramebuffer(36160,lr.framebuffer):Re.bindFramebuffer(36160,null),Vt.cur=lr),Ve.dirty){var Zn,Ha,Wa,$a,Fe,Ge,ot,rt,mt,It,Bt,Ot,nr,zr,Wt,Rt,er,kr,Vr,ii,ci,li,mi,xi,Oi,ua,xa,ao,ho,Fo;Zn=De.dither,Zn!==Ve.dither&&(Zn?Re.enable(3024):Re.disable(3024),Ve.dither=Zn),Ha=De.depth_func,Ha!==Ve.depth_func&&(Re.depthFunc(Ha),Ve.depth_func=Ha),Wa=ut[0],$a=ut[1],(Wa!==kt[0]||$a!==kt[1])&&(Re.depthRange(Wa,$a),kt[0]=Wa,kt[1]=$a),Fe=De.depth_mask,Fe!==Ve.depth_mask&&(Re.depthMask(Fe),Ve.depth_mask=Fe),Ge=$t[0],ot=$t[1],rt=$t[2],mt=$t[3],(Ge!==or[0]||ot!==or[1]||rt!==or[2]||mt!==or[3])&&(Re.colorMask(Ge,ot,rt,mt),or[0]=Ge,or[1]=ot,or[2]=rt,or[3]=mt),It=De.frontFace,It!==Ve.frontFace&&(Re.frontFace(It),Ve.frontFace=It),Bt=De.lineWidth,Bt!==Ve.lineWidth&&(Re.lineWidth(Bt),Ve.lineWidth=Bt),Ot=De.polygonOffset_enable,Ot!==Ve.polygonOffset_enable&&(Ot?Re.enable(32823):Re.disable(32823),Ve.polygonOffset_enable=Ot),nr=Lr[0],zr=Lr[1],(nr!==Er[0]||zr!==Er[1])&&(Re.polygonOffset(nr,zr),Er[0]=nr,Er[1]=zr),Wt=De.sample_alpha,Wt!==Ve.sample_alpha&&(Wt?Re.enable(32926):Re.disable(32926),Ve.sample_alpha=Wt),Rt=De.sample_enable,Rt!==Ve.sample_enable&&(Rt?Re.enable(32928):Re.disable(32928),Ve.sample_enable=Rt),er=hr[0],kr=hr[1],(er!==ni[0]||kr!==ni[1])&&(Re.sampleCoverage(er,kr),ni[0]=er,ni[1]=kr),Vr=De.stencil_mask,Vr!==Ve.stencil_mask&&(Re.stencilMask(Vr),Ve.stencil_mask=Vr),ii=Kr[0],ci=Kr[1],li=Kr[2],(ii!==si[0]||ci!==si[1]||li!==si[2])&&(Re.stencilFunc(ii,ci,li),si[0]=ii,si[1]=ci,si[2]=li),mi=Tr[0],xi=Tr[1],Oi=Tr[2],ua=Tr[3],(mi!==vr[0]||xi!==vr[1]||Oi!==vr[2]||ua!==vr[3])&&(Re.stencilOpSeparate(mi,xi,Oi,ua),vr[0]=mi,vr[1]=xi,vr[2]=Oi,vr[3]=ua),xa=Hr[0],ao=Hr[1],ho=Hr[2],Fo=Hr[3],(xa!==Di[0]||ao!==Di[1]||ho!==Di[2]||Fo!==Di[3])&&(Re.stencilOpSeparate(xa,ao,ho,Fo),Di[0]=xa,Di[1]=ao,Di[2]=ho,Di[3]=Fo)}Ct=gt.viewport,ur=Ct.x|0,Ir=Ct.y|0,Rr="width"in Ct?Ct.width|0:Qe.framebufferWidth-ur,Nr="height"in Ct?Ct.height|0:Qe.framebufferHeight-Ir,gi=Qe.viewportWidth,Qe.viewportWidth=Rr,ui=Qe.viewportHeight,Qe.viewportHeight=Nr,Re.viewport(ur,Ir,Rr,Nr),Ut[0]=ur,Ut[1]=Ir,Ut[2]=Rr,Ut[3]=Nr,Re.blendColor(0,0,0,0),Ke[0]=0,Ke[1]=0,Ke[2]=0,Ke[3]=0,i?Re.enable(3042):Re.disable(3042),Ve.blend_enable=i,Re.blendEquationSeparate(32774,32774),lt[0]=32774,lt[1]=32774,Re.blendFuncSeparate(770,771,773,1),We[0]=770,We[1]=771,We[2]=773,We[3]=1,n?Re.enable(2884):Re.disable(2884),Ve.cull_enable=n,Re.cullFace(a),Ve.cull_face=a,Qr=o.call(this,Qe,gt,0),Qr?Re.enable(2929):Re.disable(2929),Ve.depth_enable=Qr,Ui=gt.viewport,ln=Ui.x|0,Tt=Ui.y|0,_i="width"in Ui?Ui.width|0:Qe.framebufferWidth-ln,kn="height"in Ui?Ui.height|0:Qe.framebufferHeight-Tt,Re.scissor(ln,Tt,_i,kn),wr[0]=ln,wr[1]=Tt,wr[2]=_i,wr[3]=kn,s?Re.enable(3089):Re.disable(3089),Ve.scissor_enable=s,l?Re.enable(2960):Re.disable(2960),Ve.stencil_enable=l,ti=Ve.profile,ti&&(Fr=performance.now(),r.count++),Re.useProgram(u.program),ji=Dt.angle_instanced_arrays,wt.setVAO(null),na=gt.colorBuffer,ir.buffer=na,mn=!1,$n=1,Wi=0,Qi=0,_r=0,Yr=0,fi=null,aa=0,sn=!1,ca=5126,Kn=0,hn=0,Ta=0,St(ir)?(mn=!0,fi=ze.createStream(34962,ir),ca=fi.dtype):(fi=ze.getBuffer(ir),fi?ca=fi.dtype:"constant"in ir?($n=2,typeof ir.constant=="number"?(Wi=ir.constant,Qi=_r=Yr=0):(Wi=ir.constant.length>0?ir.constant[0]:0,Qi=ir.constant.length>1?ir.constant[1]:0,_r=ir.constant.length>2?ir.constant[2]:0,Yr=ir.constant.length>3?ir.constant[3]:0)):(St(ir.buffer)?fi=ze.createStream(34962,ir.buffer):fi=ze.getBuffer(ir.buffer),ca="type"in ir?di[ir.type]:fi.dtype,sn=!!ir.normalized,aa=ir.size|0,Kn=ir.offset|0,hn=ir.stride|0,Ta=ir.divisor|0)),tn=f.location,wi=ft[tn],$n===1?(wi.buffer||Re.enableVertexAttribArray(tn),rn=aa||4,(wi.type!==ca||wi.size!==rn||wi.buffer!==fi||wi.normalized!==sn||wi.offset!==Kn||wi.stride!==hn)&&(Re.bindBuffer(34962,fi.buffer),Re.vertexAttribPointer(tn,rn,ca,sn,hn,Kn),wi.type=ca,wi.size=rn,wi.buffer=fi,wi.normalized=sn,wi.offset=Kn,wi.stride=hn),wi.divisor!==Ta&&(ji.vertexAttribDivisorANGLE(tn,Ta),wi.divisor=Ta)):(wi.buffer&&(Re.disableVertexAttribArray(tn),wi.buffer=null),(wi.x!==Wi||wi.y!==Qi||wi.z!==_r||wi.w!==Yr)&&(Re.vertexAttrib4f(tn,Wi,Qi,_r,Yr),wi.x=Wi,wi.y=Qi,wi.z=_r,wi.w=Yr)),Ai=gt.positionBuffer,Xe.buffer=Ai,ea=!1,qn=1,pi=0,Fn=0,Pa=0,dr=0,ai=null,Zi=0,Vi=!1,pa=5126,Na=0,an=0,wn=0,St(Xe)?(ea=!0,ai=ze.createStream(34962,Xe),pa=ai.dtype):(ai=ze.getBuffer(Xe),ai?pa=ai.dtype:"constant"in Xe?(qn=2,typeof Xe.constant=="number"?(pi=Xe.constant,Fn=Pa=dr=0):(pi=Xe.constant.length>0?Xe.constant[0]:0,Fn=Xe.constant.length>1?Xe.constant[1]:0,Pa=Xe.constant.length>2?Xe.constant[2]:0,dr=Xe.constant.length>3?Xe.constant[3]:0)):(St(Xe.buffer)?ai=ze.createStream(34962,Xe.buffer):ai=ze.getBuffer(Xe.buffer),pa="type"in Xe?di[Xe.type]:ai.dtype,Vi=!!Xe.normalized,Zi=Xe.size|0,Na=Xe.offset|0,an=Xe.stride|0,wn=Xe.divisor|0)),Ra=c.location,ei=ft[Ra],qn===1?(ei.buffer||Re.enableVertexAttribArray(Ra),Yn=Zi||2,(ei.type!==pa||ei.size!==Yn||ei.buffer!==ai||ei.normalized!==Vi||ei.offset!==Na||ei.stride!==an)&&(Re.bindBuffer(34962,ai.buffer),Re.vertexAttribPointer(Ra,Yn,pa,Vi,an,Na),ei.type=pa,ei.size=Yn,ei.buffer=ai,ei.normalized=Vi,ei.offset=Na,ei.stride=an),ei.divisor!==wn&&(ji.vertexAttribDivisorANGLE(Ra,wn),ei.divisor=wn)):(ei.buffer&&(Re.disableVertexAttribArray(Ra),ei.buffer=null),(ei.x!==pi||ei.y!==Fn||ei.z!==Pa||ei.w!==dr)&&(Re.vertexAttrib4f(Ra,pi,Fn,Pa,dr),ei.x=pi,ei.y=Fn,ei.z=Pa,ei.w=dr)),Ja=gt.colorBuffer,Kt.buffer=Ja,ja=!1,ka=1,ki=0,pn=0,Va=0,Gi=0,Pr=null,ri=0,bn=!1,Ri=5126,vi=0,yr=0,Ti=0,St(Kt)?(ja=!0,Pr=ze.createStream(34962,Kt),Ri=Pr.dtype):(Pr=ze.getBuffer(Kt),Pr?Ri=Pr.dtype:"constant"in Kt?(ka=2,typeof Kt.constant=="number"?(ki=Kt.constant,pn=Va=Gi=0):(ki=Kt.constant.length>0?Kt.constant[0]:0,pn=Kt.constant.length>1?Kt.constant[1]:0,Va=Kt.constant.length>2?Kt.constant[2]:0,Gi=Kt.constant.length>3?Kt.constant[3]:0)):(St(Kt.buffer)?Pr=ze.createStream(34962,Kt.buffer):Pr=ze.getBuffer(Kt.buffer),Ri="type"in Kt?di[Kt.type]:Pr.dtype,bn=!!Kt.normalized,ri=Kt.size|0,vi=Kt.offset|0,yr=Kt.stride|0,Ti=Kt.divisor|0)),Cn=h.location,Gr=ft[Cn],ka===1?(Gr.buffer||Re.enableVertexAttribArray(Cn),Xn=ri||4,(Gr.type!==Ri||Gr.size!==Xn||Gr.buffer!==Pr||Gr.normalized!==bn||Gr.offset!==vi||Gr.stride!==yr)&&(Re.bindBuffer(34962,Pr.buffer),Re.vertexAttribPointer(Cn,Xn,Ri,bn,yr,vi),Gr.type=Ri,Gr.size=Xn,Gr.buffer=Pr,Gr.normalized=bn,Gr.offset=vi,Gr.stride=yr),Gr.divisor!==Ti&&(ji.vertexAttribDivisorANGLE(Cn,Ti),Gr.divisor=Ti)):(Gr.buffer&&(Re.disableVertexAttribArray(Cn),Gr.buffer=null),(Gr.x!==ki||Gr.y!==pn||Gr.z!==Va||Gr.w!==Gi)&&(Re.vertexAttrib4f(Cn,ki,pn,Va,Gi),Gr.x=ki,Gr.y=pn,Gr.z=Va,Gr.w=Gi)),nn=gt.positionBuffer,Ye.buffer=nn,ta=!1,Bi=1,On=0,Nn=0,ia=0,Jr=0,Ci=null,un=0,Dn=!1,Vn=5126,vn=0,Br=0,Li=0,St(Ye)?(ta=!0,Ci=ze.createStream(34962,Ye),Vn=Ci.dtype):(Ci=ze.getBuffer(Ye),Ci?Vn=Ci.dtype:"constant"in Ye?(Bi=2,typeof Ye.constant=="number"?(On=Ye.constant,Nn=ia=Jr=0):(On=Ye.constant.length>0?Ye.constant[0]:0,Nn=Ye.constant.length>1?Ye.constant[1]:0,ia=Ye.constant.length>2?Ye.constant[2]:0,Jr=Ye.constant.length>3?Ye.constant[3]:0)):(St(Ye.buffer)?Ci=ze.createStream(34962,Ye.buffer):Ci=ze.getBuffer(Ye.buffer),Vn="type"in Ye?di[Ye.type]:Ci.dtype,Dn=!!Ye.normalized,un=Ye.size|0,vn=Ye.offset|0,Br=Ye.stride|0,Li=Ye.divisor|0)),Ua=d.location,yi=ft[Ua],Bi===1?(yi.buffer||Re.enableVertexAttribArray(Ua),Ma=un||2,(yi.type!==Vn||yi.size!==Ma||yi.buffer!==Ci||yi.normalized!==Dn||yi.offset!==vn||yi.stride!==Br)&&(Re.bindBuffer(34962,Ci.buffer),Re.vertexAttribPointer(Ua,Ma,Vn,Dn,Br,vn),yi.type=Vn,yi.size=Ma,yi.buffer=Ci,yi.normalized=Dn,yi.offset=vn,yi.stride=Br),yi.divisor!==Li&&(ji.vertexAttribDivisorANGLE(Ua,Li),yi.divisor=Li)):(yi.buffer&&(Re.disableVertexAttribArray(Ua),yi.buffer=null),(yi.x!==On||yi.y!==Nn||yi.z!==ia||yi.w!==Jr)&&(Re.vertexAttrib4f(Ua,On,Nn,ia,Jr),yi.x=On,yi.y=Nn,yi.z=ia,yi.w=Jr)),Ba=v.location,Bn=ft[Ba],Bn.buffer||Re.enableVertexAttribArray(Ba),(Bn.type!==5126||Bn.size!==1||Bn.buffer!==p||Bn.normalized!==!1||Bn.offset!==0||Bn.stride!==8)&&(Re.bindBuffer(34962,p.buffer),Re.vertexAttribPointer(Ba,1,5126,!1,8,0),Bn.type=5126,Bn.size=1,Bn.buffer=p,Bn.normalized=!1,Bn.offset=0,Bn.stride=8),Bn.divisor!==0&&(ji.vertexAttribDivisorANGLE(Ba,0),Bn.divisor=0),Hi=y.location,yn=ft[Hi],yn.buffer||Re.enableVertexAttribArray(Hi),(yn.type!==5126||yn.size!==1||yn.buffer!==p||yn.normalized!==!1||yn.offset!==4||yn.stride!==8)&&(Re.bindBuffer(34962,p.buffer),Re.vertexAttribPointer(Hi,1,5126,!1,8,4),yn.type=5126,yn.size=1,yn.buffer=p,yn.normalized=!1,yn.offset=4,yn.stride=8),yn.divisor!==0&&(ji.vertexAttribDivisorANGLE(Hi,0),yn.divisor=0),jn=gt.positionBuffer,et.buffer=jn,Un=!1,zi=1,xr=0,Ln=0,xn=0,da=0,Mi=null,Xr=0,Gn=!1,to=5126,Jn=0,ro=0,mo=0,St(et)?(Un=!0,Mi=ze.createStream(34962,et),to=Mi.dtype):(Mi=ze.getBuffer(et),Mi?to=Mi.dtype:"constant"in et?(zi=2,typeof et.constant=="number"?(xr=et.constant,Ln=xn=da=0):(xr=et.constant.length>0?et.constant[0]:0,Ln=et.constant.length>1?et.constant[1]:0,xn=et.constant.length>2?et.constant[2]:0,da=et.constant.length>3?et.constant[3]:0)):(St(et.buffer)?Mi=ze.createStream(34962,et.buffer):Mi=ze.getBuffer(et.buffer),to="type"in et?di[et.type]:Mi.dtype,Gn=!!et.normalized,Xr=et.size|0,Jn=et.offset|0,ro=et.stride|0,mo=et.divisor|0)),Oa=m.location,Si=ft[Oa],zi===1?(Si.buffer||Re.enableVertexAttribArray(Oa),co=Xr||2,(Si.type!==to||Si.size!==co||Si.buffer!==Mi||Si.normalized!==Gn||Si.offset!==Jn||Si.stride!==ro)&&(Re.bindBuffer(34962,Mi.buffer),Re.vertexAttribPointer(Oa,co,to,Gn,ro,Jn),Si.type=to,Si.size=co,Si.buffer=Mi,Si.normalized=Gn,Si.offset=Jn,Si.stride=ro),Si.divisor!==mo&&(ji.vertexAttribDivisorANGLE(Oa,mo),Si.divisor=mo)):(Si.buffer&&(Re.disableVertexAttribArray(Oa),Si.buffer=null),(Si.x!==xr||Si.y!==Ln||Si.z!==xn||Si.w!==da)&&(Re.vertexAttrib4f(Oa,xr,Ln,xn,da),Si.x=xr,Si.y=Ln,Si.z=xn,Si.w=da)),Pn=gt.positionBuffer,Me.buffer=Pn,Fa=!1,oa=1,Hn=0,va=0,ma=0,Sa=0,Ei=null,jr=0,An=!1,Za=5126,Ga=0,Ca=0,za=0,St(Me)?(Fa=!0,Ei=ze.createStream(34962,Me),Za=Ei.dtype):(Ei=ze.getBuffer(Me),Ei?Za=Ei.dtype:"constant"in Me?(oa=2,typeof Me.constant=="number"?(Hn=Me.constant,va=ma=Sa=0):(Hn=Me.constant.length>0?Me.constant[0]:0,va=Me.constant.length>1?Me.constant[1]:0,ma=Me.constant.length>2?Me.constant[2]:0,Sa=Me.constant.length>3?Me.constant[3]:0)):(St(Me.buffer)?Ei=ze.createStream(34962,Me.buffer):Ei=ze.getBuffer(Me.buffer),Za="type"in Me?di[Me.type]:Ei.dtype,An=!!Me.normalized,jr=Me.size|0,Ga=Me.offset|0,Ca=Me.stride|0,za=Me.divisor|0)),Wn=w.location,Xi=ft[Wn],oa===1?(Xi.buffer||Re.enableVertexAttribArray(Wn),sa=jr||2,(Xi.type!==Za||Xi.size!==sa||Xi.buffer!==Ei||Xi.normalized!==An||Xi.offset!==Ga||Xi.stride!==Ca)&&(Re.bindBuffer(34962,Ei.buffer),Re.vertexAttribPointer(Wn,sa,Za,An,Ca,Ga),Xi.type=Za,Xi.size=sa,Xi.buffer=Ei,Xi.normalized=An,Xi.offset=Ga,Xi.stride=Ca),Xi.divisor!==za&&(ji.vertexAttribDivisorANGLE(Wn,za),Xi.divisor=za)):(Xi.buffer&&(Re.disableVertexAttribArray(Wn),Xi.buffer=null),(Xi.x!==Hn||Xi.y!==va||Xi.z!==ma||Xi.w!==Sa)&&(Re.vertexAttrib4f(Wn,Hn,va,ma,Sa),Xi.x=Hn,Xi.y=va,Xi.z=ma,Xi.w=Sa)),Mo=gt.dashLength,Re.uniform1f(_.location,Mo),ya=gt.dashTexture,ya&&ya._reglType==="framebuffer"&&(ya=ya.color[0]),Qn=ya._texture,Re.uniform1i(b.location,Qn.bind()),Tn=gt.depth,Re.uniform1f(M.location,Tn),Da=gt.miterLimit,Re.uniform1f(x.location,Da),zn=T.call(this,Qe,gt,0),Re.uniform1f(A.location,zn),Ia=gt.opacity,Re.uniform1f(g.location,Ia),$i=gt.scale,In=$i[0],qi=$i[1],Re.uniform2f(E.location,In,qi),la=gt.thickness,Re.uniform1f(S.location,la),ga=gt.translate,go=ga[0],eo=ga[1],Re.uniform2f(C.location,go,eo),So=D.call(this,Qe,gt,0),Mn=So[0],Ao=So[1],Ya=So[2],Co=So[3],Re.uniform4f(k.location,Mn,Ao,Ya,Co),Ii=Le.elements,Ii?Re.bindBuffer(34963,Ii.buffer.buffer):wt.currentVAO&&(Ii=Se.getElements(wt.currentVAO.elements),Ii&&Re.bindBuffer(34963,Ii.buffer.buffer)),qa=gt.count,qa>0?Ii?ji.drawElementsInstancedANGLE(5,4,Ii.type,0<<(Ii.type-5121>>1),qa):ji.drawArraysInstancedANGLE(5,0,4,qa):qa<0&&(Ii?Re.drawElements(5,4,Ii.type,0<<(Ii.type-5121>>1)):Re.drawArrays(5,0,4)),Ve.dirty=!0,wt.setVAO(null),Qe.viewportWidth=gi,Qe.viewportHeight=ui,ti&&(r.cpuTime+=performance.now()-Fr),mn&&ze.destroyStream(fi),ea&&ze.destroyStream(ai),ja&&ze.destroyStream(Pr),ta&&ze.destroyStream(Ci),Un&&ze.destroyStream(Mi),Fa&&ze.destroyStream(Ei),Qn.unbind()},scope:function(gt,bt,lr){var Ct,ur,Ir,Rr,Nr,gi,ui,Qr,Ui,ln,Tt,_i,kn,ti,Fr,ji,na,mn,$n,Wi,Qi,_r,Yr,fi,aa,sn,ca,Kn,hn,Ta,tn,wi,rn,Ai,ea,qn,pi,Fn,Pa,dr,ai,Zi,Vi,pa,Na,an,wn,Ra,ei,Yn,Ja,ja,ka,ki,pn,Va,Gi,Pr,ri,bn,Ri,vi,yr,Ti,Cn,Gr,Xn,nn,ta,Bi,On,Nn,ia,Jr,Ci,un,Dn,Vn,vn,Br,Li,Ua,yi,Ma,Ba,Bn,Hi,yn,jn,Un,zi,xr,Ln,xn,da,Mi,Xr,Gn,to,Jn,ro,mo,Oa,Si,co,Pn,Fa,oa,Hn,va,ma,Sa,Ei,jr,An,Za,Ga,Ca,za,Wn,Xi,sa,Mo,ya,Qn,Tn,Da,zn,Ia,$i,In,qi,la,ga,go,eo,So,Mn,Ao,Ya,Co,Ii,qa,Zn,Ha,Wa,$a,Fe,Ge,ot,rt,mt,It,Bt,Ot,nr,zr,Wt,Rt,er,kr,Vr,ii,ci,li,mi,xi,Oi,ua,xa,ao,ho,Fo,ls,Io,Ps,xs,us,Ni,io,Eo,oo,xo,bo,so,Yo,Uo,es,jo,Qo,Ks,js,Ds,_s,as,Es,To,Go,qs,Ts,Dl,_l,wl,vl,Al,ml,Hl,Tl,yl,ae,fe,Te,ke,Ne,Oe,He,ct,xt,pt,_t,Lt,Jt,fr,Or,Pi,Rn,fo,Xo,Bo,fs,cs,Ns,zl,Is,Nl,ul,cl,vf,wf,bu,_u,ju,wu,Eu,Af,mf,ef,Nf,ic,R,G,ee,he,ve;Ct=gt.viewport,ur=Ct.x|0,Ir=Ct.y|0,Rr="width"in Ct?Ct.width|0:Qe.framebufferWidth-ur,Nr="height"in Ct?Ct.height|0:Qe.framebufferHeight-Ir,gi=Qe.viewportWidth,Qe.viewportWidth=Rr,ui=Qe.viewportHeight,Qe.viewportHeight=Nr,Qr=qr[0],qr[0]=ur,Ui=qr[1],qr[1]=Ir,ln=qr[2],qr[2]=Rr,Tt=qr[3],qr[3]=Nr,_i=rr[0],rr[0]=L,kn=rr[1],rr[1]=P,ti=rr[2],rr[2]=I,Fr=rr[3],rr[3]=F,ji=De.blend_enable,De.blend_enable=z,na=at[0],at[0]=B,mn=at[1],at[1]=O,$n=vt[0],vt[0]=W,Wi=vt[1],vt[1]=X,Qi=vt[2],vt[2]=Z,_r=vt[3],vt[3]=j,Yr=De.cull_enable,De.cull_enable=q,fi=De.cull_face,De.cull_face=Q,aa=o.call(this,Qe,gt,lr),sn=De.depth_enable,De.depth_enable=aa,ca=gt.viewport,Kn=ca.x|0,hn=ca.y|0,Ta="width"in ca?ca.width|0:Qe.framebufferWidth-Kn,tn="height"in ca?ca.height|0:Qe.framebufferHeight-hn,wi=gn[0],gn[0]=Kn,rn=gn[1],gn[1]=hn,Ai=gn[2],gn[2]=Ta,ea=gn[3],gn[3]=tn,qn=De.scissor_enable,De.scissor_enable=N,pi=De.stencil_enable,De.stencil_enable=V,Fn=Ve.profile,Fn&&(Pa=performance.now(),r.count++),dr=Le.offset,Le.offset=J,ai=Le.count,Le.count=H,Zi=gt.count,Vi=Le.instances,Le.instances=Zi,pa=Le.primitive,Le.primitive=$,Na=T.call(this,Qe,gt,lr),an=At[te],At[te]=Na,wn=gt.miterLimit,Ra=At[ie],At[ie]=wn,ei=gt.scale,Yn=At[de],At[de]=ei,Ja=gt.scaleFract,ja=At[ge],At[ge]=Ja,ka=gt.translateFract,ki=At[Ie],At[Ie]=ka,pn=gt.translate,Va=At[Ce],At[Ce]=pn,Gi=gt.thickness,Pr=At[le],At[le]=Gi,ri=gt.dashTexture,bn=At[re],At[re]=ri,Ri=gt.opacity,vi=At[Ee],At[Ee]=Ri,yr=Qe.pixelRatio,Ti=At[we],At[we]=yr,Cn=gt.id,Gr=At[oe],At[oe]=Cn,Xn=gt.dashLength,nn=At[Y],At[Y]=Xn,ta=D.call(this,Qe,gt,lr),Bi=At[ne],At[ne]=ta,On=gt.depth,Nn=At[ye],At[ye]=On,ia=U.state,U.state=1,Jr=U.x,U.x=0,Ci=U.y,U.y=0,un=U.z,U.z=0,Dn=U.w,U.w=0,Vn=U.buffer,U.buffer=p,vn=U.size,U.size=0,Br=U.normalized,U.normalized=!1,Li=U.type,U.type=5126,Ua=U.offset,U.offset=0,yi=U.stride,U.stride=8,Ma=U.divisor,U.divisor=0,Ba=se.state,se.state=1,Bn=se.x,se.x=0,Hi=se.y,se.y=0,yn=se.z,se.z=0,jn=se.w,se.w=0,Un=se.buffer,se.buffer=p,zi=se.size,se.size=0,xr=se.normalized,se.normalized=!1,Ln=se.type,se.type=5126,xn=se.offset,se.offset=4,da=se.stride,se.stride=8,Mi=se.divisor,se.divisor=0,Xr=gt.colorBuffer,ir.buffer=Xr,Gn=!1,to=1,Jn=0,ro=0,mo=0,Oa=0,Si=null,co=0,Pn=!1,Fa=5126,oa=0,Hn=0,va=0,St(ir)?(Gn=!0,Si=ze.createStream(34962,ir),Fa=Si.dtype):(Si=ze.getBuffer(ir),Si?Fa=Si.dtype:"constant"in ir?(to=2,typeof ir.constant=="number"?(Jn=ir.constant,ro=mo=Oa=0):(Jn=ir.constant.length>0?ir.constant[0]:0,ro=ir.constant.length>1?ir.constant[1]:0,mo=ir.constant.length>2?ir.constant[2]:0,Oa=ir.constant.length>3?ir.constant[3]:0)):(St(ir.buffer)?Si=ze.createStream(34962,ir.buffer):Si=ze.getBuffer(ir.buffer),Fa="type"in ir?di[ir.type]:Si.dtype,Pn=!!ir.normalized,co=ir.size|0,oa=ir.offset|0,Hn=ir.stride|0,va=ir.divisor|0)),ma=Ae.state,Ae.state=to,Sa=Ae.x,Ae.x=Jn,Ei=Ae.y,Ae.y=ro,jr=Ae.z,Ae.z=mo,An=Ae.w,Ae.w=Oa,Za=Ae.buffer,Ae.buffer=Si,Ga=Ae.size,Ae.size=co,Ca=Ae.normalized,Ae.normalized=Pn,za=Ae.type,Ae.type=Fa,Wn=Ae.offset,Ae.offset=oa,Xi=Ae.stride,Ae.stride=Hn,sa=Ae.divisor,Ae.divisor=va,Mo=gt.colorBuffer,Kt.buffer=Mo,ya=!1,Qn=1,Tn=0,Da=0,zn=0,Ia=0,$i=null,In=0,qi=!1,la=5126,ga=0,go=0,eo=0,St(Kt)?(ya=!0,$i=ze.createStream(34962,Kt),la=$i.dtype):($i=ze.getBuffer(Kt),$i?la=$i.dtype:"constant"in Kt?(Qn=2,typeof Kt.constant=="number"?(Tn=Kt.constant,Da=zn=Ia=0):(Tn=Kt.constant.length>0?Kt.constant[0]:0,Da=Kt.constant.length>1?Kt.constant[1]:0,zn=Kt.constant.length>2?Kt.constant[2]:0,Ia=Kt.constant.length>3?Kt.constant[3]:0)):(St(Kt.buffer)?$i=ze.createStream(34962,Kt.buffer):$i=ze.getBuffer(Kt.buffer),la="type"in Kt?di[Kt.type]:$i.dtype,qi=!!Kt.normalized,In=Kt.size|0,ga=Kt.offset|0,go=Kt.stride|0,eo=Kt.divisor|0)),So=be.state,be.state=Qn,Mn=be.x,be.x=Tn,Ao=be.y,be.y=Da,Ya=be.z,be.z=zn,Co=be.w,be.w=Ia,Ii=be.buffer,be.buffer=$i,qa=be.size,be.size=In,Zn=be.normalized,be.normalized=qi,Ha=be.type,be.type=la,Wa=be.offset,be.offset=ga,$a=be.stride,be.stride=go,Fe=be.divisor,be.divisor=eo,Ge=gt.positionBuffer,Me.buffer=Ge,ot=!1,rt=1,mt=0,It=0,Bt=0,Ot=0,nr=null,zr=0,Wt=!1,Rt=5126,er=0,kr=0,Vr=0,St(Me)?(ot=!0,nr=ze.createStream(34962,Me),Rt=nr.dtype):(nr=ze.getBuffer(Me),nr?Rt=nr.dtype:"constant"in Me?(rt=2,typeof Me.constant=="number"?(mt=Me.constant,It=Bt=Ot=0):(mt=Me.constant.length>0?Me.constant[0]:0,It=Me.constant.length>1?Me.constant[1]:0,Bt=Me.constant.length>2?Me.constant[2]:0,Ot=Me.constant.length>3?Me.constant[3]:0)):(St(Me.buffer)?nr=ze.createStream(34962,Me.buffer):nr=ze.getBuffer(Me.buffer),Rt="type"in Me?di[Me.type]:nr.dtype,Wt=!!Me.normalized,zr=Me.size|0,er=Me.offset|0,kr=Me.stride|0,Vr=Me.divisor|0)),ii=me.state,me.state=rt,ci=me.x,me.x=mt,li=me.y,me.y=It,mi=me.z,me.z=Bt,xi=me.w,me.w=Ot,Oi=me.buffer,me.buffer=nr,ua=me.size,me.size=zr,xa=me.normalized,me.normalized=Wt,ao=me.type,me.type=Rt,ho=me.offset,me.offset=er,Fo=me.stride,me.stride=kr,ls=me.divisor,me.divisor=Vr,Io=gt.positionBuffer,Xe.buffer=Io,Ps=!1,xs=1,us=0,Ni=0,io=0,Eo=0,oo=null,xo=0,bo=!1,so=5126,Yo=0,Uo=0,es=0,St(Xe)?(Ps=!0,oo=ze.createStream(34962,Xe),so=oo.dtype):(oo=ze.getBuffer(Xe),oo?so=oo.dtype:"constant"in Xe?(xs=2,typeof Xe.constant=="number"?(us=Xe.constant,Ni=io=Eo=0):(us=Xe.constant.length>0?Xe.constant[0]:0,Ni=Xe.constant.length>1?Xe.constant[1]:0,io=Xe.constant.length>2?Xe.constant[2]:0,Eo=Xe.constant.length>3?Xe.constant[3]:0)):(St(Xe.buffer)?oo=ze.createStream(34962,Xe.buffer):oo=ze.getBuffer(Xe.buffer),so="type"in Xe?di[Xe.type]:oo.dtype,bo=!!Xe.normalized,xo=Xe.size|0,Yo=Xe.offset|0,Uo=Xe.stride|0,es=Xe.divisor|0)),jo=ue.state,ue.state=xs,Qo=ue.x,ue.x=us,Ks=ue.y,ue.y=Ni,js=ue.z,ue.z=io,Ds=ue.w,ue.w=Eo,_s=ue.buffer,ue.buffer=oo,as=ue.size,ue.size=xo,Es=ue.normalized,ue.normalized=bo,To=ue.type,ue.type=so,Go=ue.offset,ue.offset=Yo,qs=ue.stride,ue.stride=Uo,Ts=ue.divisor,ue.divisor=es,Dl=gt.positionBuffer,Ye.buffer=Dl,_l=!1,wl=1,vl=0,Al=0,ml=0,Hl=0,Tl=null,yl=0,ae=!1,fe=5126,Te=0,ke=0,Ne=0,St(Ye)?(_l=!0,Tl=ze.createStream(34962,Ye),fe=Tl.dtype):(Tl=ze.getBuffer(Ye),Tl?fe=Tl.dtype:"constant"in Ye?(wl=2,typeof Ye.constant=="number"?(vl=Ye.constant,Al=ml=Hl=0):(vl=Ye.constant.length>0?Ye.constant[0]:0,Al=Ye.constant.length>1?Ye.constant[1]:0,ml=Ye.constant.length>2?Ye.constant[2]:0,Hl=Ye.constant.length>3?Ye.constant[3]:0)):(St(Ye.buffer)?Tl=ze.createStream(34962,Ye.buffer):Tl=ze.getBuffer(Ye.buffer),fe="type"in Ye?di[Ye.type]:Tl.dtype,ae=!!Ye.normalized,yl=Ye.size|0,Te=Ye.offset|0,ke=Ye.stride|0,Ne=Ye.divisor|0)),Oe=pe.state,pe.state=wl,He=pe.x,pe.x=vl,ct=pe.y,pe.y=Al,xt=pe.z,pe.z=ml,pt=pe.w,pe.w=Hl,_t=pe.buffer,pe.buffer=Tl,Lt=pe.size,pe.size=yl,Jt=pe.normalized,pe.normalized=ae,fr=pe.type,pe.type=fe,Or=pe.offset,pe.offset=Te,Pi=pe.stride,pe.stride=ke,Rn=pe.divisor,pe.divisor=Ne,fo=gt.positionBuffer,et.buffer=fo,Xo=!1,Bo=1,fs=0,cs=0,Ns=0,zl=0,Is=null,Nl=0,ul=!1,cl=5126,vf=0,wf=0,bu=0,St(et)?(Xo=!0,Is=ze.createStream(34962,et),cl=Is.dtype):(Is=ze.getBuffer(et),Is?cl=Is.dtype:"constant"in et?(Bo=2,typeof et.constant=="number"?(fs=et.constant,cs=Ns=zl=0):(fs=et.constant.length>0?et.constant[0]:0,cs=et.constant.length>1?et.constant[1]:0,Ns=et.constant.length>2?et.constant[2]:0,zl=et.constant.length>3?et.constant[3]:0)):(St(et.buffer)?Is=ze.createStream(34962,et.buffer):Is=ze.getBuffer(et.buffer),cl="type"in et?di[et.type]:Is.dtype,ul=!!et.normalized,Nl=et.size|0,vf=et.offset|0,wf=et.stride|0,bu=et.divisor|0)),_u=ce.state,ce.state=Bo,ju=ce.x,ce.x=fs,wu=ce.y,ce.y=cs,Eu=ce.z,ce.z=Ns,Af=ce.w,ce.w=zl,mf=ce.buffer,ce.buffer=Is,ef=ce.size,ce.size=Nl,Nf=ce.normalized,ce.normalized=ul,ic=ce.type,ce.type=cl,R=ce.offset,ce.offset=vf,G=ce.stride,ce.stride=wf,ee=ce.divisor,ce.divisor=bu,he=st.vert,st.vert=Be,ve=st.frag,st.frag=$e,Ve.dirty=!0,bt(Qe,gt,lr),Qe.viewportWidth=gi,Qe.viewportHeight=ui,qr[0]=Qr,qr[1]=Ui,qr[2]=ln,qr[3]=Tt,rr[0]=_i,rr[1]=kn,rr[2]=ti,rr[3]=Fr,De.blend_enable=ji,at[0]=na,at[1]=mn,vt[0]=$n,vt[1]=Wi,vt[2]=Qi,vt[3]=_r,De.cull_enable=Yr,De.cull_face=fi,De.depth_enable=sn,gn[0]=wi,gn[1]=rn,gn[2]=Ai,gn[3]=ea,De.scissor_enable=qn,De.stencil_enable=pi,Fn&&(r.cpuTime+=performance.now()-Pa),Le.offset=dr,Le.count=ai,Le.instances=Vi,Le.primitive=pa,At[te]=an,At[ie]=Ra,At[de]=Yn,At[ge]=ja,At[Ie]=ki,At[Ce]=Va,At[le]=Pr,At[re]=bn,At[Ee]=vi,At[we]=Ti,At[oe]=Gr,At[Y]=nn,At[ne]=Bi,At[ye]=Nn,U.state=ia,U.x=Jr,U.y=Ci,U.z=un,U.w=Dn,U.buffer=Vn,U.size=vn,U.normalized=Br,U.type=Li,U.offset=Ua,U.stride=yi,U.divisor=Ma,se.state=Ba,se.x=Bn,se.y=Hi,se.z=yn,se.w=jn,se.buffer=Un,se.size=zi,se.normalized=xr,se.type=Ln,se.offset=xn,se.stride=da,se.divisor=Mi,Gn&&ze.destroyStream(Si),Ae.state=ma,Ae.x=Sa,Ae.y=Ei,Ae.z=jr,Ae.w=An,Ae.buffer=Za,Ae.size=Ga,Ae.normalized=Ca,Ae.type=za,Ae.offset=Wn,Ae.stride=Xi,Ae.divisor=sa,ya&&ze.destroyStream($i),be.state=So,be.x=Mn,be.y=Ao,be.z=Ya,be.w=Co,be.buffer=Ii,be.size=qa,be.normalized=Zn,be.type=Ha,be.offset=Wa,be.stride=$a,be.divisor=Fe,ot&&ze.destroyStream(nr),me.state=ii,me.x=ci,me.y=li,me.z=mi,me.w=xi,me.buffer=Oi,me.size=ua,me.normalized=xa,me.type=ao,me.offset=ho,me.stride=Fo,me.divisor=ls,Ps&&ze.destroyStream(oo),ue.state=jo,ue.x=Qo,ue.y=Ks,ue.z=js,ue.w=Ds,ue.buffer=_s,ue.size=as,ue.normalized=Es,ue.type=To,ue.offset=Go,ue.stride=qs,ue.divisor=Ts,_l&&ze.destroyStream(Tl),pe.state=Oe,pe.x=He,pe.y=ct,pe.z=xt,pe.w=pt,pe.buffer=_t,pe.size=Lt,pe.normalized=Jt,pe.type=fr,pe.offset=Or,pe.stride=Pi,pe.divisor=Rn,Xo&&ze.destroyStream(Is),ce.state=_u,ce.x=ju,ce.y=wu,ce.z=Eu,ce.w=Af,ce.buffer=mf,ce.size=ef,ce.normalized=Nf,ce.type=ic,ce.offset=R,ce.stride=G,ce.divisor=ee,st.vert=he,st.frag=ve,Ve.dirty=!0},batch:function(gt,bt){var lr,Ct,ur,Ir,Rr,Nr,gi;if(lr=Dt.angle_instanced_arrays,Ct=Vt.next,Ct!==Vt.cur&&(Ct?Re.bindFramebuffer(36160,Ct.framebuffer):Re.bindFramebuffer(36160,null),Vt.cur=Ct),Ve.dirty){var ui,Qr,Ui,ln,Tt,_i,kn,ti,Fr,ji,na,mn,$n,Wi,Qi,_r,Yr,fi,aa,sn,ca,Kn,hn,Ta,tn,wi,rn,Ai,ea,qn;ui=De.dither,ui!==Ve.dither&&(ui?Re.enable(3024):Re.disable(3024),Ve.dither=ui),Qr=De.depth_func,Qr!==Ve.depth_func&&(Re.depthFunc(Qr),Ve.depth_func=Qr),Ui=ut[0],ln=ut[1],(Ui!==kt[0]||ln!==kt[1])&&(Re.depthRange(Ui,ln),kt[0]=Ui,kt[1]=ln),Tt=De.depth_mask,Tt!==Ve.depth_mask&&(Re.depthMask(Tt),Ve.depth_mask=Tt),_i=$t[0],kn=$t[1],ti=$t[2],Fr=$t[3],(_i!==or[0]||kn!==or[1]||ti!==or[2]||Fr!==or[3])&&(Re.colorMask(_i,kn,ti,Fr),or[0]=_i,or[1]=kn,or[2]=ti,or[3]=Fr),ji=De.frontFace,ji!==Ve.frontFace&&(Re.frontFace(ji),Ve.frontFace=ji),na=De.lineWidth,na!==Ve.lineWidth&&(Re.lineWidth(na),Ve.lineWidth=na),mn=De.polygonOffset_enable,mn!==Ve.polygonOffset_enable&&(mn?Re.enable(32823):Re.disable(32823),Ve.polygonOffset_enable=mn),$n=Lr[0],Wi=Lr[1],($n!==Er[0]||Wi!==Er[1])&&(Re.polygonOffset($n,Wi),Er[0]=$n,Er[1]=Wi),Qi=De.sample_alpha,Qi!==Ve.sample_alpha&&(Qi?Re.enable(32926):Re.disable(32926),Ve.sample_alpha=Qi),_r=De.sample_enable,_r!==Ve.sample_enable&&(_r?Re.enable(32928):Re.disable(32928),Ve.sample_enable=_r),Yr=hr[0],fi=hr[1],(Yr!==ni[0]||fi!==ni[1])&&(Re.sampleCoverage(Yr,fi),ni[0]=Yr,ni[1]=fi),aa=De.stencil_mask,aa!==Ve.stencil_mask&&(Re.stencilMask(aa),Ve.stencil_mask=aa),sn=Kr[0],ca=Kr[1],Kn=Kr[2],(sn!==si[0]||ca!==si[1]||Kn!==si[2])&&(Re.stencilFunc(sn,ca,Kn),si[0]=sn,si[1]=ca,si[2]=Kn),hn=Tr[0],Ta=Tr[1],tn=Tr[2],wi=Tr[3],(hn!==vr[0]||Ta!==vr[1]||tn!==vr[2]||wi!==vr[3])&&(Re.stencilOpSeparate(hn,Ta,tn,wi),vr[0]=hn,vr[1]=Ta,vr[2]=tn,vr[3]=wi),rn=Hr[0],Ai=Hr[1],ea=Hr[2],qn=Hr[3],(rn!==Di[0]||Ai!==Di[1]||ea!==Di[2]||qn!==Di[3])&&(Re.stencilOpSeparate(rn,Ai,ea,qn),Di[0]=rn,Di[1]=Ai,Di[2]=ea,Di[3]=qn)}Re.blendColor(0,0,0,0),Ke[0]=0,Ke[1]=0,Ke[2]=0,Ke[3]=0,Ze?Re.enable(3042):Re.disable(3042),Ve.blend_enable=Ze,Re.blendEquationSeparate(32774,32774),lt[0]=32774,lt[1]=32774,Re.blendFuncSeparate(770,771,773,1),We[0]=770,We[1]=771,We[2]=773,We[3]=1,it?Re.enable(2884):Re.disable(2884),Ve.cull_enable=it,Re.cullFace(nt),Ve.cull_face=nt,Ue?Re.enable(3089):Re.disable(3089),Ve.scissor_enable=Ue,xe?Re.enable(2960):Re.disable(2960),Ve.stencil_enable=xe,ur=Ve.profile,ur&&(Ir=performance.now(),r.count+=bt),Re.useProgram(u.program),Rr=Dt.angle_instanced_arrays;var pi,Fn,Pa,dr,ai;for(wt.setVAO(null),pi=v.location,Fn=ft[pi],Fn.buffer||Re.enableVertexAttribArray(pi),(Fn.type!==5126||Fn.size!==1||Fn.buffer!==p||Fn.normalized!==!1||Fn.offset!==0||Fn.stride!==8)&&(Re.bindBuffer(34962,p.buffer),Re.vertexAttribPointer(pi,1,5126,!1,8,0),Fn.type=5126,Fn.size=1,Fn.buffer=p,Fn.normalized=!1,Fn.offset=0,Fn.stride=8),Fn.divisor!==0&&(Rr.vertexAttribDivisorANGLE(pi,0),Fn.divisor=0),Pa=y.location,dr=ft[Pa],dr.buffer||Re.enableVertexAttribArray(Pa),(dr.type!==5126||dr.size!==1||dr.buffer!==p||dr.normalized!==!1||dr.offset!==4||dr.stride!==8)&&(Re.bindBuffer(34962,p.buffer),Re.vertexAttribPointer(Pa,1,5126,!1,8,4),dr.type=5126,dr.size=1,dr.buffer=p,dr.normalized=!1,dr.offset=4,dr.stride=8),dr.divisor!==0&&(Rr.vertexAttribDivisorANGLE(Pa,0),dr.divisor=0),ai=Le.elements,ai?Re.bindBuffer(34963,ai.buffer.buffer):wt.currentVAO&&(ai=Se.getElements(wt.currentVAO.elements),ai&&Re.bindBuffer(34963,ai.buffer.buffer)),Nr=0;Nr0?ir.constant[0]:0,ri=ir.constant.length>1?ir.constant[1]:0,bn=ir.constant.length>2?ir.constant[2]:0,Ri=ir.constant.length>3?ir.constant[3]:0)):(St(ir.buffer)?vi=ze.createStream(34962,ir.buffer):vi=ze.getBuffer(ir.buffer),Cn="type"in ir?di[ir.type]:vi.dtype,Ti=!!ir.normalized,yr=ir.size|0,Gr=ir.offset|0,Xn=ir.stride|0,nn=ir.divisor|0)),ta=f.location,Bi=ft[ta],Gi===1?(Bi.buffer||Re.enableVertexAttribArray(ta),On=yr||4,(Bi.type!==Cn||Bi.size!==On||Bi.buffer!==vi||Bi.normalized!==Ti||Bi.offset!==Gr||Bi.stride!==Xn)&&(Re.bindBuffer(34962,vi.buffer),Re.vertexAttribPointer(ta,On,Cn,Ti,Xn,Gr),Bi.type=Cn,Bi.size=On,Bi.buffer=vi,Bi.normalized=Ti,Bi.offset=Gr,Bi.stride=Xn),Bi.divisor!==nn&&(Rr.vertexAttribDivisorANGLE(ta,nn),Bi.divisor=nn)):(Bi.buffer&&(Re.disableVertexAttribArray(ta),Bi.buffer=null),(Bi.x!==Pr||Bi.y!==ri||Bi.z!==bn||Bi.w!==Ri)&&(Re.vertexAttrib4f(ta,Pr,ri,bn,Ri),Bi.x=Pr,Bi.y=ri,Bi.z=bn,Bi.w=Ri)),Nn=gi.positionBuffer,Xe.buffer=Nn,ia=!1,Jr=1,Ci=0,un=0,Dn=0,Vn=0,vn=null,Br=0,Li=!1,Ua=5126,yi=0,Ma=0,Ba=0,St(Xe)?(ia=!0,vn=ze.createStream(34962,Xe),Ua=vn.dtype):(vn=ze.getBuffer(Xe),vn?Ua=vn.dtype:"constant"in Xe?(Jr=2,typeof Xe.constant=="number"?(Ci=Xe.constant,un=Dn=Vn=0):(Ci=Xe.constant.length>0?Xe.constant[0]:0,un=Xe.constant.length>1?Xe.constant[1]:0,Dn=Xe.constant.length>2?Xe.constant[2]:0,Vn=Xe.constant.length>3?Xe.constant[3]:0)):(St(Xe.buffer)?vn=ze.createStream(34962,Xe.buffer):vn=ze.getBuffer(Xe.buffer),Ua="type"in Xe?di[Xe.type]:vn.dtype,Li=!!Xe.normalized,Br=Xe.size|0,yi=Xe.offset|0,Ma=Xe.stride|0,Ba=Xe.divisor|0)),Bn=c.location,Hi=ft[Bn],Jr===1?(Hi.buffer||Re.enableVertexAttribArray(Bn),yn=Br||2,(Hi.type!==Ua||Hi.size!==yn||Hi.buffer!==vn||Hi.normalized!==Li||Hi.offset!==yi||Hi.stride!==Ma)&&(Re.bindBuffer(34962,vn.buffer),Re.vertexAttribPointer(Bn,yn,Ua,Li,Ma,yi),Hi.type=Ua,Hi.size=yn,Hi.buffer=vn,Hi.normalized=Li,Hi.offset=yi,Hi.stride=Ma),Hi.divisor!==Ba&&(Rr.vertexAttribDivisorANGLE(Bn,Ba),Hi.divisor=Ba)):(Hi.buffer&&(Re.disableVertexAttribArray(Bn),Hi.buffer=null),(Hi.x!==Ci||Hi.y!==un||Hi.z!==Dn||Hi.w!==Vn)&&(Re.vertexAttrib4f(Bn,Ci,un,Dn,Vn),Hi.x=Ci,Hi.y=un,Hi.z=Dn,Hi.w=Vn)),jn=gi.colorBuffer,Kt.buffer=jn,Un=!1,zi=1,xr=0,Ln=0,xn=0,da=0,Mi=null,Xr=0,Gn=!1,to=5126,Jn=0,ro=0,mo=0,St(Kt)?(Un=!0,Mi=ze.createStream(34962,Kt),to=Mi.dtype):(Mi=ze.getBuffer(Kt),Mi?to=Mi.dtype:"constant"in Kt?(zi=2,typeof Kt.constant=="number"?(xr=Kt.constant,Ln=xn=da=0):(xr=Kt.constant.length>0?Kt.constant[0]:0,Ln=Kt.constant.length>1?Kt.constant[1]:0,xn=Kt.constant.length>2?Kt.constant[2]:0,da=Kt.constant.length>3?Kt.constant[3]:0)):(St(Kt.buffer)?Mi=ze.createStream(34962,Kt.buffer):Mi=ze.getBuffer(Kt.buffer),to="type"in Kt?di[Kt.type]:Mi.dtype,Gn=!!Kt.normalized,Xr=Kt.size|0,Jn=Kt.offset|0,ro=Kt.stride|0,mo=Kt.divisor|0)),Oa=h.location,Si=ft[Oa],zi===1?(Si.buffer||Re.enableVertexAttribArray(Oa),co=Xr||4,(Si.type!==to||Si.size!==co||Si.buffer!==Mi||Si.normalized!==Gn||Si.offset!==Jn||Si.stride!==ro)&&(Re.bindBuffer(34962,Mi.buffer),Re.vertexAttribPointer(Oa,co,to,Gn,ro,Jn),Si.type=to,Si.size=co,Si.buffer=Mi,Si.normalized=Gn,Si.offset=Jn,Si.stride=ro),Si.divisor!==mo&&(Rr.vertexAttribDivisorANGLE(Oa,mo),Si.divisor=mo)):(Si.buffer&&(Re.disableVertexAttribArray(Oa),Si.buffer=null),(Si.x!==xr||Si.y!==Ln||Si.z!==xn||Si.w!==da)&&(Re.vertexAttrib4f(Oa,xr,Ln,xn,da),Si.x=xr,Si.y=Ln,Si.z=xn,Si.w=da)),Pn=gi.positionBuffer,Ye.buffer=Pn,Fa=!1,oa=1,Hn=0,va=0,ma=0,Sa=0,Ei=null,jr=0,An=!1,Za=5126,Ga=0,Ca=0,za=0,St(Ye)?(Fa=!0,Ei=ze.createStream(34962,Ye),Za=Ei.dtype):(Ei=ze.getBuffer(Ye),Ei?Za=Ei.dtype:"constant"in Ye?(oa=2,typeof Ye.constant=="number"?(Hn=Ye.constant,va=ma=Sa=0):(Hn=Ye.constant.length>0?Ye.constant[0]:0,va=Ye.constant.length>1?Ye.constant[1]:0,ma=Ye.constant.length>2?Ye.constant[2]:0,Sa=Ye.constant.length>3?Ye.constant[3]:0)):(St(Ye.buffer)?Ei=ze.createStream(34962,Ye.buffer):Ei=ze.getBuffer(Ye.buffer),Za="type"in Ye?di[Ye.type]:Ei.dtype,An=!!Ye.normalized,jr=Ye.size|0,Ga=Ye.offset|0,Ca=Ye.stride|0,za=Ye.divisor|0)),Wn=d.location,Xi=ft[Wn],oa===1?(Xi.buffer||Re.enableVertexAttribArray(Wn),sa=jr||2,(Xi.type!==Za||Xi.size!==sa||Xi.buffer!==Ei||Xi.normalized!==An||Xi.offset!==Ga||Xi.stride!==Ca)&&(Re.bindBuffer(34962,Ei.buffer),Re.vertexAttribPointer(Wn,sa,Za,An,Ca,Ga),Xi.type=Za,Xi.size=sa,Xi.buffer=Ei,Xi.normalized=An,Xi.offset=Ga,Xi.stride=Ca),Xi.divisor!==za&&(Rr.vertexAttribDivisorANGLE(Wn,za),Xi.divisor=za)):(Xi.buffer&&(Re.disableVertexAttribArray(Wn),Xi.buffer=null),(Xi.x!==Hn||Xi.y!==va||Xi.z!==ma||Xi.w!==Sa)&&(Re.vertexAttrib4f(Wn,Hn,va,ma,Sa),Xi.x=Hn,Xi.y=va,Xi.z=ma,Xi.w=Sa)),Mo=gi.positionBuffer,et.buffer=Mo,ya=!1,Qn=1,Tn=0,Da=0,zn=0,Ia=0,$i=null,In=0,qi=!1,la=5126,ga=0,go=0,eo=0,St(et)?(ya=!0,$i=ze.createStream(34962,et),la=$i.dtype):($i=ze.getBuffer(et),$i?la=$i.dtype:"constant"in et?(Qn=2,typeof et.constant=="number"?(Tn=et.constant,Da=zn=Ia=0):(Tn=et.constant.length>0?et.constant[0]:0,Da=et.constant.length>1?et.constant[1]:0,zn=et.constant.length>2?et.constant[2]:0,Ia=et.constant.length>3?et.constant[3]:0)):(St(et.buffer)?$i=ze.createStream(34962,et.buffer):$i=ze.getBuffer(et.buffer),la="type"in et?di[et.type]:$i.dtype,qi=!!et.normalized,In=et.size|0,ga=et.offset|0,go=et.stride|0,eo=et.divisor|0)),So=m.location,Mn=ft[So],Qn===1?(Mn.buffer||Re.enableVertexAttribArray(So),Ao=In||2,(Mn.type!==la||Mn.size!==Ao||Mn.buffer!==$i||Mn.normalized!==qi||Mn.offset!==ga||Mn.stride!==go)&&(Re.bindBuffer(34962,$i.buffer),Re.vertexAttribPointer(So,Ao,la,qi,go,ga),Mn.type=la,Mn.size=Ao,Mn.buffer=$i,Mn.normalized=qi,Mn.offset=ga,Mn.stride=go),Mn.divisor!==eo&&(Rr.vertexAttribDivisorANGLE(So,eo),Mn.divisor=eo)):(Mn.buffer&&(Re.disableVertexAttribArray(So),Mn.buffer=null),(Mn.x!==Tn||Mn.y!==Da||Mn.z!==zn||Mn.w!==Ia)&&(Re.vertexAttrib4f(So,Tn,Da,zn,Ia),Mn.x=Tn,Mn.y=Da,Mn.z=zn,Mn.w=Ia)),Ya=gi.positionBuffer,Me.buffer=Ya,Co=!1,Ii=1,qa=0,Zn=0,Ha=0,Wa=0,$a=null,Fe=0,Ge=!1,ot=5126,rt=0,mt=0,It=0,St(Me)?(Co=!0,$a=ze.createStream(34962,Me),ot=$a.dtype):($a=ze.getBuffer(Me),$a?ot=$a.dtype:"constant"in Me?(Ii=2,typeof Me.constant=="number"?(qa=Me.constant,Zn=Ha=Wa=0):(qa=Me.constant.length>0?Me.constant[0]:0,Zn=Me.constant.length>1?Me.constant[1]:0,Ha=Me.constant.length>2?Me.constant[2]:0,Wa=Me.constant.length>3?Me.constant[3]:0)):(St(Me.buffer)?$a=ze.createStream(34962,Me.buffer):$a=ze.getBuffer(Me.buffer),ot="type"in Me?di[Me.type]:$a.dtype,Ge=!!Me.normalized,Fe=Me.size|0,rt=Me.offset|0,mt=Me.stride|0,It=Me.divisor|0)),Bt=w.location,Ot=ft[Bt],Ii===1?(Ot.buffer||Re.enableVertexAttribArray(Bt),nr=Fe||2,(Ot.type!==ot||Ot.size!==nr||Ot.buffer!==$a||Ot.normalized!==Ge||Ot.offset!==rt||Ot.stride!==mt)&&(Re.bindBuffer(34962,$a.buffer),Re.vertexAttribPointer(Bt,nr,ot,Ge,mt,rt),Ot.type=ot,Ot.size=nr,Ot.buffer=$a,Ot.normalized=Ge,Ot.offset=rt,Ot.stride=mt),Ot.divisor!==It&&(Rr.vertexAttribDivisorANGLE(Bt,It),Ot.divisor=It)):(Ot.buffer&&(Re.disableVertexAttribArray(Bt),Ot.buffer=null),(Ot.x!==qa||Ot.y!==Zn||Ot.z!==Ha||Ot.w!==Wa)&&(Re.vertexAttrib4f(Bt,qa,Zn,Ha,Wa),Ot.x=qa,Ot.y=Zn,Ot.z=Ha,Ot.w=Wa)),zr=gi.dashLength,(!Nr||Wt!==zr)&&(Wt=zr,Re.uniform1f(_.location,zr)),Rt=gi.dashTexture,Rt&&Rt._reglType==="framebuffer"&&(Rt=Rt.color[0]),er=Rt._texture,Re.uniform1i(b.location,er.bind()),kr=gi.depth,(!Nr||Vr!==kr)&&(Vr=kr,Re.uniform1f(M.location,kr)),ii=gi.miterLimit,(!Nr||ci!==ii)&&(ci=ii,Re.uniform1f(x.location,ii)),li=T.call(this,Qe,gi,Nr),(!Nr||mi!==li)&&(mi=li,Re.uniform1f(A.location,li)),xi=gi.opacity,(!Nr||Oi!==xi)&&(Oi=xi,Re.uniform1f(g.location,xi)),ua=gi.scale,xa=ua[0],ho=ua[1],(!Nr||ao!==xa||Fo!==ho)&&(ao=xa,Fo=ho,Re.uniform2f(E.location,xa,ho)),ls=gi.thickness,(!Nr||Io!==ls)&&(Io=ls,Re.uniform1f(S.location,ls)),Ps=gi.translate,xs=Ps[0],Ni=Ps[1],(!Nr||us!==xs||io!==Ni)&&(us=xs,io=Ni,Re.uniform2f(C.location,xs,Ni)),Eo=D.call(this,Qe,gi,Nr),oo=Eo[0],bo=Eo[1],Yo=Eo[2],es=Eo[3],(!Nr||xo!==oo||so!==bo||Uo!==Yo||jo!==es)&&(xo=oo,so=bo,Uo=Yo,jo=es,Re.uniform4f(k.location,oo,bo,Yo,es)),Qo=gi.count,Qo>0?ai?Rr.drawElementsInstancedANGLE(5,4,ai.type,0<<(ai.type-5121>>1),Qo):Rr.drawArraysInstancedANGLE(5,0,4,Qo):Qo<0&&(ai?Re.drawElements(5,4,ai.type,0<<(ai.type-5121>>1)):Re.drawArrays(5,0,4)),Qe.viewportWidth=wn,Qe.viewportHeight=Ra,Va&&ze.destroyStream(vi),ia&&ze.destroyStream(vn),Un&&ze.destroyStream(Mi),Fa&&ze.destroyStream(Ei),ya&&ze.destroyStream($i),Co&&ze.destroyStream($a),er.unbind()}Ve.dirty=!0,wt.setVAO(null),ur&&(r.cpuTime+=performance.now()-Ir)}}}});var DB=K((Nri,kZe)=>{"use strict";kZe.exports=function(t,r,i,n,a,o,s,l,u,f,c,h,d,p,v,y,m,w,_,b,M,x,A,T,g,E,S,C,k,D,L,P,I,F,z,B,O,W,X,Z,j,q,Q,N,V,J,H,$,te,ie,de,ge,Ie,Ce,le,re,Ee,we,oe,Y,ne,ye,U,se,Ae,be,me,ue,pe,ce,Be,$e,Ze,it,nt,Ue){"use strict";var xe,Re,Qe,Pe,De,Ve,Le,Se,ze,st,ft,wt,At,Vt,Dt,yt,St,rr,Ke,at,lt,vt,We,ut,kt,$t,or,Lr,Er,hr,ni,Kr,si,Tr,vr,Hr,Di,gn,wr,qr,Ut,jt,pr,Ur,Sr,Cr,di;return xe=t.gl,Re=t.context,Qe=t.strings,Pe=t.next,De=t.current,Ve=t.draw,Le=t.elements,Se=t.buffer,ze=t.shader,st=t.attributes,ft=t.vao,wt=t.uniforms,At=t.framebuffer,Vt=t.extensions,Dt=t.timer,yt=t.isBufferArgs,St=Pe.blend_color,rr=De.blend_color,Ke=Pe.blend_equation,at=De.blend_equation,lt=Pe.blend_func,vt=De.blend_func,We=Pe.depth_range,ut=De.depth_range,kt=Pe.colorMask,$t=De.colorMask,or=Pe.polygonOffset_offset,Lr=De.polygonOffset_offset,Er=Pe.sample_coverage,hr=De.sample_coverage,ni=Pe.stencil_func,Kr=De.stencil_func,si=Pe.stencil_opFront,Tr=De.stencil_opFront,vr=Pe.stencil_opBack,Hr=De.stencil_opBack,Di=Pe.scissor_box,gn=De.scissor_box,wr=Pe.viewport,qr=De.viewport,Ut={points:0,point:0,lines:1,line:1,triangles:4,triangle:4,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},jt={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},pr={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},Ur={add:32774,subtract:32778,"reverse subtract":32779},Sr={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},Cr={int8:5120,int16:5122,int32:5124,uint8:5121,uint16:5123,uint32:5125,float:5126,float32:5126},di={cw:2304,ccw:2305},{draw:function(Fi){var ir,Kt,Me,Xe,Ye,et,gt,bt,lr,Ct,ur,Ir,Rr,Nr,gi,ui,Qr,Ui,ln,Tt,_i,kn,ti,Fr,ji,na,mn,$n,Wi,Qi,_r,Yr,fi,aa,sn,ca,Kn,hn,Ta,tn,wi,rn,Ai,ea,qn,pi,Fn,Pa,dr,ai,Zi,Vi,pa,Na,an,wn,Ra,ei,Yn,Ja,ja,ka,ki,pn,Va,Gi,Pr,ri,bn,Ri,vi,yr,Ti,Cn,Gr,Xn,nn,ta,Bi,On,Nn,ia,Jr,Ci,un,Dn,Vn,vn,Br,Li,Ua,yi,Ma,Ba,Bn,Hi,yn,jn,Un,zi,xr,Ln,xn,da,Mi,Xr,Gn,to,Jn,ro,mo,Oa,Si,co,Pn,Fa,oa,Hn,va,ma,Sa,Ei,jr,An,Za,Ga,Ca,za,Wn,Xi,sa,Mo,ya,Qn,Tn,Da,zn,Ia,$i,In,qi,la,ga,go,eo,So,Mn,Ao,Ya,Co,Ii,qa,Zn,Ha,Wa,$a,Fe,Ge,ot,rt,mt,It,Bt,Ot,nr,zr,Wt,Rt,er,kr,Vr,ii,ci,li,mi,xi,Oi,ua,xa,ao,ho,Fo,ls,Io,Ps,xs,us,Ni,io,Eo,oo,xo,bo,so,Yo;if(ir=Vt.angle_instanced_arrays,Kt=At.next,Kt!==At.cur&&(Kt?xe.bindFramebuffer(36160,Kt.framebuffer):xe.bindFramebuffer(36160,null),At.cur=Kt),De.dirty){var Uo,es,jo,Qo,Ks,js,Ds,_s,as,Es,To,Go,qs,Ts,Dl,_l,wl,vl,Al,ml,Hl,Tl,yl,ae,fe,Te,ke,Ne,Oe,He,ct,xt,pt,_t;Uo=Pe.dither,Uo!==De.dither&&(Uo?xe.enable(3024):xe.disable(3024),De.dither=Uo),es=Ke[0],jo=Ke[1],(es!==at[0]||jo!==at[1])&&(xe.blendEquationSeparate(es,jo),at[0]=es,at[1]=jo),Qo=Pe.depth_func,Qo!==De.depth_func&&(xe.depthFunc(Qo),De.depth_func=Qo),Ks=We[0],js=We[1],(Ks!==ut[0]||js!==ut[1])&&(xe.depthRange(Ks,js),ut[0]=Ks,ut[1]=js),Ds=Pe.depth_mask,Ds!==De.depth_mask&&(xe.depthMask(Ds),De.depth_mask=Ds),_s=kt[0],as=kt[1],Es=kt[2],To=kt[3],(_s!==$t[0]||as!==$t[1]||Es!==$t[2]||To!==$t[3])&&(xe.colorMask(_s,as,Es,To),$t[0]=_s,$t[1]=as,$t[2]=Es,$t[3]=To),Go=Pe.cull_enable,Go!==De.cull_enable&&(Go?xe.enable(2884):xe.disable(2884),De.cull_enable=Go),qs=Pe.cull_face,qs!==De.cull_face&&(xe.cullFace(qs),De.cull_face=qs),Ts=Pe.frontFace,Ts!==De.frontFace&&(xe.frontFace(Ts),De.frontFace=Ts),Dl=Pe.lineWidth,Dl!==De.lineWidth&&(xe.lineWidth(Dl),De.lineWidth=Dl),_l=Pe.polygonOffset_enable,_l!==De.polygonOffset_enable&&(_l?xe.enable(32823):xe.disable(32823),De.polygonOffset_enable=_l),wl=or[0],vl=or[1],(wl!==Lr[0]||vl!==Lr[1])&&(xe.polygonOffset(wl,vl),Lr[0]=wl,Lr[1]=vl),Al=Pe.sample_alpha,Al!==De.sample_alpha&&(Al?xe.enable(32926):xe.disable(32926),De.sample_alpha=Al),ml=Pe.sample_enable,ml!==De.sample_enable&&(ml?xe.enable(32928):xe.disable(32928),De.sample_enable=ml),Hl=Er[0],Tl=Er[1],(Hl!==hr[0]||Tl!==hr[1])&&(xe.sampleCoverage(Hl,Tl),hr[0]=Hl,hr[1]=Tl),yl=Pe.stencil_mask,yl!==De.stencil_mask&&(xe.stencilMask(yl),De.stencil_mask=yl),ae=ni[0],fe=ni[1],Te=ni[2],(ae!==Kr[0]||fe!==Kr[1]||Te!==Kr[2])&&(xe.stencilFunc(ae,fe,Te),Kr[0]=ae,Kr[1]=fe,Kr[2]=Te),ke=si[0],Ne=si[1],Oe=si[2],He=si[3],(ke!==Tr[0]||Ne!==Tr[1]||Oe!==Tr[2]||He!==Tr[3])&&(xe.stencilOpSeparate(ke,Ne,Oe,He),Tr[0]=ke,Tr[1]=Ne,Tr[2]=Oe,Tr[3]=He),ct=vr[0],xt=vr[1],pt=vr[2],_t=vr[3],(ct!==Hr[0]||xt!==Hr[1]||pt!==Hr[2]||_t!==Hr[3])&&(xe.stencilOpSeparate(ct,xt,pt,_t),Hr[0]=ct,Hr[1]=xt,Hr[2]=pt,Hr[3]=_t)}Me=Fi.viewport,Xe=Me.x|0,Ye=Me.y|0,et="width"in Me?Me.width|0:Re.framebufferWidth-Xe,gt="height"in Me?Me.height|0:Re.framebufferHeight-Ye,bt=Re.viewportWidth,Re.viewportWidth=et,lr=Re.viewportHeight,Re.viewportHeight=gt,xe.viewport(Xe,Ye,et,gt),qr[0]=Xe,qr[1]=Ye,qr[2]=et,qr[3]=gt,xe.blendColor(0,0,0,1),rr[0]=0,rr[1]=0,rr[2]=0,rr[3]=1,i?xe.enable(3042):xe.disable(3042),De.blend_enable=i,xe.blendFuncSeparate(770,771,773,1),vt[0]=770,vt[1]=771,vt[2]=773,vt[3]=1,n?xe.enable(2929):xe.disable(2929),De.depth_enable=n,Ct=Fi.viewport,ur=Ct.x|0,Ir=Ct.y|0,Rr="width"in Ct?Ct.width|0:Re.framebufferWidth-ur,Nr="height"in Ct?Ct.height|0:Re.framebufferHeight-Ir,xe.scissor(ur,Ir,Rr,Nr),gn[0]=ur,gn[1]=Ir,gn[2]=Rr,gn[3]=Nr,a?xe.enable(3089):xe.disable(3089),De.scissor_enable=a,o?xe.enable(2960):xe.disable(2960),De.stencil_enable=o,gi=De.profile,gi&&(ui=performance.now(),r.count++),xe.useProgram(s.program),Qr=Vt.angle_instanced_arrays,ft.setVAO(null),Ui=l.call(this,Re,Fi,0),ln=!1,Tt=1,_i=0,kn=0,ti=0,Fr=0,ji=null,na=0,mn=!1,$n=5126,Wi=0,Qi=0,_r=0,yt(Ui)?(ln=!0,ji=Se.createStream(34962,Ui),$n=ji.dtype):(ji=Se.getBuffer(Ui),ji?$n=ji.dtype:"constant"in Ui?(Tt=2,typeof Ui.constant=="number"?(_i=Ui.constant,kn=ti=Fr=0):(_i=Ui.constant.length>0?Ui.constant[0]:0,kn=Ui.constant.length>1?Ui.constant[1]:0,ti=Ui.constant.length>2?Ui.constant[2]:0,Fr=Ui.constant.length>3?Ui.constant[3]:0)):(yt(Ui.buffer)?ji=Se.createStream(34962,Ui.buffer):ji=Se.getBuffer(Ui.buffer),$n="type"in Ui?Cr[Ui.type]:ji.dtype,mn=!!Ui.normalized,na=Ui.size|0,Wi=Ui.offset|0,Qi=Ui.stride|0,_r=Ui.divisor|0)),Yr=u.location,fi=st[Yr],Tt===1?(fi.buffer||xe.enableVertexAttribArray(Yr),aa=na||4,(fi.type!==$n||fi.size!==aa||fi.buffer!==ji||fi.normalized!==mn||fi.offset!==Wi||fi.stride!==Qi)&&(xe.bindBuffer(34962,ji.buffer),xe.vertexAttribPointer(Yr,aa,$n,mn,Qi,Wi),fi.type=$n,fi.size=aa,fi.buffer=ji,fi.normalized=mn,fi.offset=Wi,fi.stride=Qi),fi.divisor!==_r&&(Qr.vertexAttribDivisorANGLE(Yr,_r),fi.divisor=_r)):(fi.buffer&&(xe.disableVertexAttribArray(Yr),fi.buffer=null),(fi.x!==_i||fi.y!==kn||fi.z!==ti||fi.w!==Fr)&&(xe.vertexAttrib4f(Yr,_i,kn,ti,Fr),fi.x=_i,fi.y=kn,fi.z=ti,fi.w=Fr)),sn=f.call(this,Re,Fi,0),ca=!1,Kn=1,hn=0,Ta=0,tn=0,wi=0,rn=null,Ai=0,ea=!1,qn=5126,pi=0,Fn=0,Pa=0,yt(sn)?(ca=!0,rn=Se.createStream(34962,sn),qn=rn.dtype):(rn=Se.getBuffer(sn),rn?qn=rn.dtype:"constant"in sn?(Kn=2,typeof sn.constant=="number"?(hn=sn.constant,Ta=tn=wi=0):(hn=sn.constant.length>0?sn.constant[0]:0,Ta=sn.constant.length>1?sn.constant[1]:0,tn=sn.constant.length>2?sn.constant[2]:0,wi=sn.constant.length>3?sn.constant[3]:0)):(yt(sn.buffer)?rn=Se.createStream(34962,sn.buffer):rn=Se.getBuffer(sn.buffer),qn="type"in sn?Cr[sn.type]:rn.dtype,ea=!!sn.normalized,Ai=sn.size|0,pi=sn.offset|0,Fn=sn.stride|0,Pa=sn.divisor|0)),dr=c.location,ai=st[dr],Kn===1?(ai.buffer||xe.enableVertexAttribArray(dr),Zi=Ai||1,(ai.type!==qn||ai.size!==Zi||ai.buffer!==rn||ai.normalized!==ea||ai.offset!==pi||ai.stride!==Fn)&&(xe.bindBuffer(34962,rn.buffer),xe.vertexAttribPointer(dr,Zi,qn,ea,Fn,pi),ai.type=qn,ai.size=Zi,ai.buffer=rn,ai.normalized=ea,ai.offset=pi,ai.stride=Fn),ai.divisor!==Pa&&(Qr.vertexAttribDivisorANGLE(dr,Pa),ai.divisor=Pa)):(ai.buffer&&(xe.disableVertexAttribArray(dr),ai.buffer=null),(ai.x!==hn||ai.y!==Ta||ai.z!==tn||ai.w!==wi)&&(xe.vertexAttrib4f(dr,hn,Ta,tn,wi),ai.x=hn,ai.y=Ta,ai.z=tn,ai.w=wi)),Vi=h.call(this,Re,Fi,0),pa=!1,Na=1,an=0,wn=0,Ra=0,ei=0,Yn=null,Ja=0,ja=!1,ka=5126,ki=0,pn=0,Va=0,yt(Vi)?(pa=!0,Yn=Se.createStream(34962,Vi),ka=Yn.dtype):(Yn=Se.getBuffer(Vi),Yn?ka=Yn.dtype:"constant"in Vi?(Na=2,typeof Vi.constant=="number"?(an=Vi.constant,wn=Ra=ei=0):(an=Vi.constant.length>0?Vi.constant[0]:0,wn=Vi.constant.length>1?Vi.constant[1]:0,Ra=Vi.constant.length>2?Vi.constant[2]:0,ei=Vi.constant.length>3?Vi.constant[3]:0)):(yt(Vi.buffer)?Yn=Se.createStream(34962,Vi.buffer):Yn=Se.getBuffer(Vi.buffer),ka="type"in Vi?Cr[Vi.type]:Yn.dtype,ja=!!Vi.normalized,Ja=Vi.size|0,ki=Vi.offset|0,pn=Vi.stride|0,Va=Vi.divisor|0)),Gi=d.location,Pr=st[Gi],Na===1?(Pr.buffer||xe.enableVertexAttribArray(Gi),ri=Ja||4,(Pr.type!==ka||Pr.size!==ri||Pr.buffer!==Yn||Pr.normalized!==ja||Pr.offset!==ki||Pr.stride!==pn)&&(xe.bindBuffer(34962,Yn.buffer),xe.vertexAttribPointer(Gi,ri,ka,ja,pn,ki),Pr.type=ka,Pr.size=ri,Pr.buffer=Yn,Pr.normalized=ja,Pr.offset=ki,Pr.stride=pn),Pr.divisor!==Va&&(Qr.vertexAttribDivisorANGLE(Gi,Va),Pr.divisor=Va)):(Pr.buffer&&(xe.disableVertexAttribArray(Gi),Pr.buffer=null),(Pr.x!==an||Pr.y!==wn||Pr.z!==Ra||Pr.w!==ei)&&(xe.vertexAttrib4f(Gi,an,wn,Ra,ei),Pr.x=an,Pr.y=wn,Pr.z=Ra,Pr.w=ei)),bn=p.call(this,Re,Fi,0),Ri=!1,vi=1,yr=0,Ti=0,Cn=0,Gr=0,Xn=null,nn=0,ta=!1,Bi=5126,On=0,Nn=0,ia=0,yt(bn)?(Ri=!0,Xn=Se.createStream(34962,bn),Bi=Xn.dtype):(Xn=Se.getBuffer(bn),Xn?Bi=Xn.dtype:"constant"in bn?(vi=2,typeof bn.constant=="number"?(yr=bn.constant,Ti=Cn=Gr=0):(yr=bn.constant.length>0?bn.constant[0]:0,Ti=bn.constant.length>1?bn.constant[1]:0,Cn=bn.constant.length>2?bn.constant[2]:0,Gr=bn.constant.length>3?bn.constant[3]:0)):(yt(bn.buffer)?Xn=Se.createStream(34962,bn.buffer):Xn=Se.getBuffer(bn.buffer),Bi="type"in bn?Cr[bn.type]:Xn.dtype,ta=!!bn.normalized,nn=bn.size|0,On=bn.offset|0,Nn=bn.stride|0,ia=bn.divisor|0)),Jr=v.location,Ci=st[Jr],vi===1?(Ci.buffer||xe.enableVertexAttribArray(Jr),un=nn||1,(Ci.type!==Bi||Ci.size!==un||Ci.buffer!==Xn||Ci.normalized!==ta||Ci.offset!==On||Ci.stride!==Nn)&&(xe.bindBuffer(34962,Xn.buffer),xe.vertexAttribPointer(Jr,un,Bi,ta,Nn,On),Ci.type=Bi,Ci.size=un,Ci.buffer=Xn,Ci.normalized=ta,Ci.offset=On,Ci.stride=Nn),Ci.divisor!==ia&&(Qr.vertexAttribDivisorANGLE(Jr,ia),Ci.divisor=ia)):(Ci.buffer&&(xe.disableVertexAttribArray(Jr),Ci.buffer=null),(Ci.x!==yr||Ci.y!==Ti||Ci.z!==Cn||Ci.w!==Gr)&&(xe.vertexAttrib4f(Jr,yr,Ti,Cn,Gr),Ci.x=yr,Ci.y=Ti,Ci.z=Cn,Ci.w=Gr)),Dn=y.call(this,Re,Fi,0),Vn=!1,vn=1,Br=0,Li=0,Ua=0,yi=0,Ma=null,Ba=0,Bn=!1,Hi=5126,yn=0,jn=0,Un=0,yt(Dn)?(Vn=!0,Ma=Se.createStream(34962,Dn),Hi=Ma.dtype):(Ma=Se.getBuffer(Dn),Ma?Hi=Ma.dtype:"constant"in Dn?(vn=2,typeof Dn.constant=="number"?(Br=Dn.constant,Li=Ua=yi=0):(Br=Dn.constant.length>0?Dn.constant[0]:0,Li=Dn.constant.length>1?Dn.constant[1]:0,Ua=Dn.constant.length>2?Dn.constant[2]:0,yi=Dn.constant.length>3?Dn.constant[3]:0)):(yt(Dn.buffer)?Ma=Se.createStream(34962,Dn.buffer):Ma=Se.getBuffer(Dn.buffer),Hi="type"in Dn?Cr[Dn.type]:Ma.dtype,Bn=!!Dn.normalized,Ba=Dn.size|0,yn=Dn.offset|0,jn=Dn.stride|0,Un=Dn.divisor|0)),zi=m.location,xr=st[zi],vn===1?(xr.buffer||xe.enableVertexAttribArray(zi),Ln=Ba||1,(xr.type!==Hi||xr.size!==Ln||xr.buffer!==Ma||xr.normalized!==Bn||xr.offset!==yn||xr.stride!==jn)&&(xe.bindBuffer(34962,Ma.buffer),xe.vertexAttribPointer(zi,Ln,Hi,Bn,jn,yn),xr.type=Hi,xr.size=Ln,xr.buffer=Ma,xr.normalized=Bn,xr.offset=yn,xr.stride=jn),xr.divisor!==Un&&(Qr.vertexAttribDivisorANGLE(zi,Un),xr.divisor=Un)):(xr.buffer&&(xe.disableVertexAttribArray(zi),xr.buffer=null),(xr.x!==Br||xr.y!==Li||xr.z!==Ua||xr.w!==yi)&&(xe.vertexAttrib4f(zi,Br,Li,Ua,yi),xr.x=Br,xr.y=Li,xr.z=Ua,xr.w=yi)),xn=w.call(this,Re,Fi,0),da=!1,Mi=1,Xr=0,Gn=0,to=0,Jn=0,ro=null,mo=0,Oa=!1,Si=5126,co=0,Pn=0,Fa=0,yt(xn)?(da=!0,ro=Se.createStream(34962,xn),Si=ro.dtype):(ro=Se.getBuffer(xn),ro?Si=ro.dtype:"constant"in xn?(Mi=2,typeof xn.constant=="number"?(Xr=xn.constant,Gn=to=Jn=0):(Xr=xn.constant.length>0?xn.constant[0]:0,Gn=xn.constant.length>1?xn.constant[1]:0,to=xn.constant.length>2?xn.constant[2]:0,Jn=xn.constant.length>3?xn.constant[3]:0)):(yt(xn.buffer)?ro=Se.createStream(34962,xn.buffer):ro=Se.getBuffer(xn.buffer),Si="type"in xn?Cr[xn.type]:ro.dtype,Oa=!!xn.normalized,mo=xn.size|0,co=xn.offset|0,Pn=xn.stride|0,Fa=xn.divisor|0)),oa=_.location,Hn=st[oa],Mi===1?(Hn.buffer||xe.enableVertexAttribArray(oa),va=mo||1,(Hn.type!==Si||Hn.size!==va||Hn.buffer!==ro||Hn.normalized!==Oa||Hn.offset!==co||Hn.stride!==Pn)&&(xe.bindBuffer(34962,ro.buffer),xe.vertexAttribPointer(oa,va,Si,Oa,Pn,co),Hn.type=Si,Hn.size=va,Hn.buffer=ro,Hn.normalized=Oa,Hn.offset=co,Hn.stride=Pn),Hn.divisor!==Fa&&(Qr.vertexAttribDivisorANGLE(oa,Fa),Hn.divisor=Fa)):(Hn.buffer&&(xe.disableVertexAttribArray(oa),Hn.buffer=null),(Hn.x!==Xr||Hn.y!==Gn||Hn.z!==to||Hn.w!==Jn)&&(xe.vertexAttrib4f(oa,Xr,Gn,to,Jn),Hn.x=Xr,Hn.y=Gn,Hn.z=to,Hn.w=Jn)),ma=b.call(this,Re,Fi,0),Sa=!1,Ei=1,jr=0,An=0,Za=0,Ga=0,Ca=null,za=0,Wn=!1,Xi=5126,sa=0,Mo=0,ya=0,yt(ma)?(Sa=!0,Ca=Se.createStream(34962,ma),Xi=Ca.dtype):(Ca=Se.getBuffer(ma),Ca?Xi=Ca.dtype:"constant"in ma?(Ei=2,typeof ma.constant=="number"?(jr=ma.constant,An=Za=Ga=0):(jr=ma.constant.length>0?ma.constant[0]:0,An=ma.constant.length>1?ma.constant[1]:0,Za=ma.constant.length>2?ma.constant[2]:0,Ga=ma.constant.length>3?ma.constant[3]:0)):(yt(ma.buffer)?Ca=Se.createStream(34962,ma.buffer):Ca=Se.getBuffer(ma.buffer),Xi="type"in ma?Cr[ma.type]:Ca.dtype,Wn=!!ma.normalized,za=ma.size|0,sa=ma.offset|0,Mo=ma.stride|0,ya=ma.divisor|0)),Qn=M.location,Tn=st[Qn],Ei===1?(Tn.buffer||xe.enableVertexAttribArray(Qn),Da=za||1,(Tn.type!==Xi||Tn.size!==Da||Tn.buffer!==Ca||Tn.normalized!==Wn||Tn.offset!==sa||Tn.stride!==Mo)&&(xe.bindBuffer(34962,Ca.buffer),xe.vertexAttribPointer(Qn,Da,Xi,Wn,Mo,sa),Tn.type=Xi,Tn.size=Da,Tn.buffer=Ca,Tn.normalized=Wn,Tn.offset=sa,Tn.stride=Mo),Tn.divisor!==ya&&(Qr.vertexAttribDivisorANGLE(Qn,ya),Tn.divisor=ya)):(Tn.buffer&&(xe.disableVertexAttribArray(Qn),Tn.buffer=null),(Tn.x!==jr||Tn.y!==An||Tn.z!==Za||Tn.w!==Ga)&&(xe.vertexAttrib4f(Qn,jr,An,Za,Ga),Tn.x=jr,Tn.y=An,Tn.z=Za,Tn.w=Ga)),zn=x.call(this,Re,Fi,0),Ia=!1,$i=1,In=0,qi=0,la=0,ga=0,go=null,eo=0,So=!1,Mn=5126,Ao=0,Ya=0,Co=0,yt(zn)?(Ia=!0,go=Se.createStream(34962,zn),Mn=go.dtype):(go=Se.getBuffer(zn),go?Mn=go.dtype:"constant"in zn?($i=2,typeof zn.constant=="number"?(In=zn.constant,qi=la=ga=0):(In=zn.constant.length>0?zn.constant[0]:0,qi=zn.constant.length>1?zn.constant[1]:0,la=zn.constant.length>2?zn.constant[2]:0,ga=zn.constant.length>3?zn.constant[3]:0)):(yt(zn.buffer)?go=Se.createStream(34962,zn.buffer):go=Se.getBuffer(zn.buffer),Mn="type"in zn?Cr[zn.type]:go.dtype,So=!!zn.normalized,eo=zn.size|0,Ao=zn.offset|0,Ya=zn.stride|0,Co=zn.divisor|0)),Ii=A.location,qa=st[Ii],$i===1?(qa.buffer||xe.enableVertexAttribArray(Ii),Zn=eo||1,(qa.type!==Mn||qa.size!==Zn||qa.buffer!==go||qa.normalized!==So||qa.offset!==Ao||qa.stride!==Ya)&&(xe.bindBuffer(34962,go.buffer),xe.vertexAttribPointer(Ii,Zn,Mn,So,Ya,Ao),qa.type=Mn,qa.size=Zn,qa.buffer=go,qa.normalized=So,qa.offset=Ao,qa.stride=Ya),qa.divisor!==Co&&(Qr.vertexAttribDivisorANGLE(Ii,Co),qa.divisor=Co)):(qa.buffer&&(xe.disableVertexAttribArray(Ii),qa.buffer=null),(qa.x!==In||qa.y!==qi||qa.z!==la||qa.w!==ga)&&(xe.vertexAttrib4f(Ii,In,qi,la,ga),qa.x=In,qa.y=qi,qa.z=la,qa.w=ga)),Ha=T.call(this,Re,Fi,0),Wa=!1,$a=1,Fe=0,Ge=0,ot=0,rt=0,mt=null,It=0,Bt=!1,Ot=5126,nr=0,zr=0,Wt=0,yt(Ha)?(Wa=!0,mt=Se.createStream(34962,Ha),Ot=mt.dtype):(mt=Se.getBuffer(Ha),mt?Ot=mt.dtype:"constant"in Ha?($a=2,typeof Ha.constant=="number"?(Fe=Ha.constant,Ge=ot=rt=0):(Fe=Ha.constant.length>0?Ha.constant[0]:0,Ge=Ha.constant.length>1?Ha.constant[1]:0,ot=Ha.constant.length>2?Ha.constant[2]:0,rt=Ha.constant.length>3?Ha.constant[3]:0)):(yt(Ha.buffer)?mt=Se.createStream(34962,Ha.buffer):mt=Se.getBuffer(Ha.buffer),Ot="type"in Ha?Cr[Ha.type]:mt.dtype,Bt=!!Ha.normalized,It=Ha.size|0,nr=Ha.offset|0,zr=Ha.stride|0,Wt=Ha.divisor|0)),Rt=g.location,er=st[Rt],$a===1?(er.buffer||xe.enableVertexAttribArray(Rt),kr=It||1,(er.type!==Ot||er.size!==kr||er.buffer!==mt||er.normalized!==Bt||er.offset!==nr||er.stride!==zr)&&(xe.bindBuffer(34962,mt.buffer),xe.vertexAttribPointer(Rt,kr,Ot,Bt,zr,nr),er.type=Ot,er.size=kr,er.buffer=mt,er.normalized=Bt,er.offset=nr,er.stride=zr),er.divisor!==Wt&&(Qr.vertexAttribDivisorANGLE(Rt,Wt),er.divisor=Wt)):(er.buffer&&(xe.disableVertexAttribArray(Rt),er.buffer=null),(er.x!==Fe||er.y!==Ge||er.z!==ot||er.w!==rt)&&(xe.vertexAttrib4f(Rt,Fe,Ge,ot,rt),er.x=Fe,er.y=Ge,er.z=ot,er.w=rt)),xe.uniform1i(E.location,!1),Vr=Fi.markerTexture,Vr&&Vr._reglType==="framebuffer"&&(Vr=Vr.color[0]),ii=Vr._texture,xe.uniform1i(S.location,ii.bind()),ci=Fi.opacity,xe.uniform1f(C.location,ci),li=D.call(this,Re,Fi,0),mi=li[0],xi=li[1],xe.uniform2f(k.location,mi,xi),xe.uniform1i(L.location,P.bind()),Oi=Re.pixelRatio,xe.uniform1f(I.location,Oi),ua=Fi.scale,xa=ua[0],ao=ua[1],xe.uniform2f(F.location,xa,ao),ho=Fi.scaleFract,Fo=ho[0],ls=ho[1],xe.uniform2f(z.location,Fo,ls),Io=Fi.translate,Ps=Io[0],xs=Io[1],xe.uniform2f(B.location,Ps,xs),us=Fi.translateFract,Ni=us[0],io=us[1],xe.uniform2f(O.location,Ni,io),Eo=Fi.elements,oo=null,xo=yt(Eo),xo?oo=Le.createStream(Eo):oo=Le.getElements(Eo),oo&&xe.bindBuffer(34963,oo.buffer.buffer),bo=Fi.offset,so=Fi.count,so&&(Yo=Ve.instances,Yo>0?oo?Qr.drawElementsInstancedANGLE(0,so,oo.type,bo<<(oo.type-5121>>1),Yo):Qr.drawArraysInstancedANGLE(0,bo,so,Yo):Yo<0&&(oo?xe.drawElements(0,so,oo.type,bo<<(oo.type-5121>>1)):xe.drawArrays(0,bo,so)),De.dirty=!0,ft.setVAO(null),Re.viewportWidth=bt,Re.viewportHeight=lr,gi&&(r.cpuTime+=performance.now()-ui),ln&&Se.destroyStream(ji),ca&&Se.destroyStream(rn),pa&&Se.destroyStream(Yn),Ri&&Se.destroyStream(Xn),Vn&&Se.destroyStream(Ma),da&&Se.destroyStream(ro),Sa&&Se.destroyStream(Ca),Ia&&Se.destroyStream(go),Wa&&Se.destroyStream(mt),ii.unbind(),P.unbind(),xo&&Le.destroyStream(oo))},scope:function(Fi,ir,Kt){var Me,Xe,Ye,et,gt,bt,lr,Ct,ur,Ir,Rr,Nr,gi,ui,Qr,Ui,ln,Tt,_i,kn,ti,Fr,ji,na,mn,$n,Wi,Qi,_r,Yr,fi,aa,sn,ca,Kn,hn,Ta,tn,wi,rn,Ai,ea,qn,pi,Fn,Pa,dr,ai,Zi,Vi,pa,Na,an,wn,Ra,ei,Yn,Ja,ja,ka,ki,pn,Va,Gi,Pr,ri,bn,Ri,vi,yr,Ti,Cn,Gr,Xn,nn,ta,Bi,On,Nn,ia,Jr,Ci,un,Dn,Vn,vn,Br,Li,Ua,yi,Ma,Ba,Bn,Hi,yn,jn,Un,zi,xr,Ln,xn,da,Mi,Xr,Gn,to,Jn,ro,mo,Oa,Si,co,Pn,Fa,oa,Hn,va,ma,Sa,Ei,jr,An,Za,Ga,Ca,za,Wn,Xi,sa,Mo,ya,Qn,Tn,Da,zn,Ia,$i,In,qi,la,ga,go,eo,So,Mn,Ao,Ya,Co,Ii,qa,Zn,Ha,Wa,$a,Fe,Ge,ot,rt,mt,It,Bt,Ot,nr,zr,Wt,Rt,er,kr,Vr,ii,ci,li,mi,xi,Oi,ua,xa,ao,ho,Fo,ls,Io,Ps,xs,us,Ni,io,Eo,oo,xo,bo,so,Yo,Uo,es,jo,Qo,Ks,js,Ds,_s,as,Es,To,Go,qs,Ts,Dl,_l,wl,vl,Al,ml,Hl,Tl,yl,ae,fe,Te,ke,Ne,Oe,He,ct,xt,pt,_t,Lt,Jt,fr,Or,Pi,Rn,fo,Xo,Bo,fs,cs,Ns,zl,Is,Nl,ul,cl,vf,wf,bu,_u,ju,wu,Eu,Af,mf,ef,Nf,ic,R,G,ee,he,ve,_e,je,qe,Je,ht,dt,Ft,Et,Qt,Mr,zt,Yt,sr,Ar,br,Xt,_n,ha,Xa,yo,Wo,Zo,Qs,rs,Us,jl,Ou,Jl,po,el,nl,Vl,ku,tf,Tf,nc;Me=Fi.viewport,Xe=Me.x|0,Ye=Me.y|0,et="width"in Me?Me.width|0:Re.framebufferWidth-Xe,gt="height"in Me?Me.height|0:Re.framebufferHeight-Ye,bt=Re.viewportWidth,Re.viewportWidth=et,lr=Re.viewportHeight,Re.viewportHeight=gt,Ct=wr[0],wr[0]=Xe,ur=wr[1],wr[1]=Ye,Ir=wr[2],wr[2]=et,Rr=wr[3],wr[3]=gt,Nr=St[0],St[0]=W,gi=St[1],St[1]=X,ui=St[2],St[2]=Z,Qr=St[3],St[3]=j,Ui=Pe.blend_enable,Pe.blend_enable=q,ln=lt[0],lt[0]=Q,Tt=lt[1],lt[1]=N,_i=lt[2],lt[2]=V,kn=lt[3],lt[3]=J,ti=Pe.depth_enable,Pe.depth_enable=H,Fr=Fi.viewport,ji=Fr.x|0,na=Fr.y|0,mn="width"in Fr?Fr.width|0:Re.framebufferWidth-ji,$n="height"in Fr?Fr.height|0:Re.framebufferHeight-na,Wi=Di[0],Di[0]=ji,Qi=Di[1],Di[1]=na,_r=Di[2],Di[2]=mn,Yr=Di[3],Di[3]=$n,fi=Pe.scissor_enable,Pe.scissor_enable=$,aa=Pe.stencil_enable,Pe.stencil_enable=te,sn=De.profile,sn&&(ca=performance.now(),r.count++),Kn=Fi.elements,hn=null,Ta=yt(Kn),Ta?hn=Le.createStream(Kn):hn=Le.getElements(Kn),tn=Ve.elements,Ve.elements=hn,wi=Fi.offset,rn=Ve.offset,Ve.offset=wi,Ai=Fi.count,ea=Ve.count,Ve.count=Ai,qn=Ve.primitive,Ve.primitive=ie,pi=wt[de],wt[de]=!1,Fn=wt[Ie],wt[Ie]=ge,Pa=Fi.opacity,dr=wt[Ce],wt[Ce]=Pa,ai=D.call(this,Re,Fi,Kt),Zi=wt[le],wt[le]=ai,Vi=Re.pixelRatio,pa=wt[re],wt[re]=Vi,Na=Fi.scale,an=wt[Ee],wt[Ee]=Na,wn=Fi.scaleFract,Ra=wt[we],wt[we]=wn,ei=Fi.translate,Yn=wt[oe],wt[oe]=ei,Ja=Fi.translateFract,ja=wt[Y],wt[Y]=Ja,ka=Fi.markerTexture,ki=wt[ne],wt[ne]=ka,pn=w.call(this,Re,Fi,Kt),Va=!1,Gi=1,Pr=0,ri=0,bn=0,Ri=0,vi=null,yr=0,Ti=!1,Cn=5126,Gr=0,Xn=0,nn=0,yt(pn)?(Va=!0,vi=Se.createStream(34962,pn),Cn=vi.dtype):(vi=Se.getBuffer(pn),vi?Cn=vi.dtype:"constant"in pn?(Gi=2,typeof pn.constant=="number"?(Pr=pn.constant,ri=bn=Ri=0):(Pr=pn.constant.length>0?pn.constant[0]:0,ri=pn.constant.length>1?pn.constant[1]:0,bn=pn.constant.length>2?pn.constant[2]:0,Ri=pn.constant.length>3?pn.constant[3]:0)):(yt(pn.buffer)?vi=Se.createStream(34962,pn.buffer):vi=Se.getBuffer(pn.buffer),Cn="type"in pn?Cr[pn.type]:vi.dtype,Ti=!!pn.normalized,yr=pn.size|0,Gr=pn.offset|0,Xn=pn.stride|0,nn=pn.divisor|0)),ta=ye.state,ye.state=Gi,Bi=ye.x,ye.x=Pr,On=ye.y,ye.y=ri,Nn=ye.z,ye.z=bn,ia=ye.w,ye.w=Ri,Jr=ye.buffer,ye.buffer=vi,Ci=ye.size,ye.size=yr,un=ye.normalized,ye.normalized=Ti,Dn=ye.type,ye.type=Cn,Vn=ye.offset,ye.offset=Gr,vn=ye.stride,ye.stride=Xn,Br=ye.divisor,ye.divisor=nn,Li=x.call(this,Re,Fi,Kt),Ua=!1,yi=1,Ma=0,Ba=0,Bn=0,Hi=0,yn=null,jn=0,Un=!1,zi=5126,xr=0,Ln=0,xn=0,yt(Li)?(Ua=!0,yn=Se.createStream(34962,Li),zi=yn.dtype):(yn=Se.getBuffer(Li),yn?zi=yn.dtype:"constant"in Li?(yi=2,typeof Li.constant=="number"?(Ma=Li.constant,Ba=Bn=Hi=0):(Ma=Li.constant.length>0?Li.constant[0]:0,Ba=Li.constant.length>1?Li.constant[1]:0,Bn=Li.constant.length>2?Li.constant[2]:0,Hi=Li.constant.length>3?Li.constant[3]:0)):(yt(Li.buffer)?yn=Se.createStream(34962,Li.buffer):yn=Se.getBuffer(Li.buffer),zi="type"in Li?Cr[Li.type]:yn.dtype,Un=!!Li.normalized,jn=Li.size|0,xr=Li.offset|0,Ln=Li.stride|0,xn=Li.divisor|0)),da=U.state,U.state=yi,Mi=U.x,U.x=Ma,Xr=U.y,U.y=Ba,Gn=U.z,U.z=Bn,to=U.w,U.w=Hi,Jn=U.buffer,U.buffer=yn,ro=U.size,U.size=jn,mo=U.normalized,U.normalized=Un,Oa=U.type,U.type=zi,Si=U.offset,U.offset=xr,co=U.stride,U.stride=Ln,Pn=U.divisor,U.divisor=xn,Fa=b.call(this,Re,Fi,Kt),oa=!1,Hn=1,va=0,ma=0,Sa=0,Ei=0,jr=null,An=0,Za=!1,Ga=5126,Ca=0,za=0,Wn=0,yt(Fa)?(oa=!0,jr=Se.createStream(34962,Fa),Ga=jr.dtype):(jr=Se.getBuffer(Fa),jr?Ga=jr.dtype:"constant"in Fa?(Hn=2,typeof Fa.constant=="number"?(va=Fa.constant,ma=Sa=Ei=0):(va=Fa.constant.length>0?Fa.constant[0]:0,ma=Fa.constant.length>1?Fa.constant[1]:0,Sa=Fa.constant.length>2?Fa.constant[2]:0,Ei=Fa.constant.length>3?Fa.constant[3]:0)):(yt(Fa.buffer)?jr=Se.createStream(34962,Fa.buffer):jr=Se.getBuffer(Fa.buffer),Ga="type"in Fa?Cr[Fa.type]:jr.dtype,Za=!!Fa.normalized,An=Fa.size|0,Ca=Fa.offset|0,za=Fa.stride|0,Wn=Fa.divisor|0)),Xi=se.state,se.state=Hn,sa=se.x,se.x=va,Mo=se.y,se.y=ma,ya=se.z,se.z=Sa,Qn=se.w,se.w=Ei,Tn=se.buffer,se.buffer=jr,Da=se.size,se.size=An,zn=se.normalized,se.normalized=Za,Ia=se.type,se.type=Ga,$i=se.offset,se.offset=Ca,In=se.stride,se.stride=za,qi=se.divisor,se.divisor=Wn,la=T.call(this,Re,Fi,Kt),ga=!1,go=1,eo=0,So=0,Mn=0,Ao=0,Ya=null,Co=0,Ii=!1,qa=5126,Zn=0,Ha=0,Wa=0,yt(la)?(ga=!0,Ya=Se.createStream(34962,la),qa=Ya.dtype):(Ya=Se.getBuffer(la),Ya?qa=Ya.dtype:"constant"in la?(go=2,typeof la.constant=="number"?(eo=la.constant,So=Mn=Ao=0):(eo=la.constant.length>0?la.constant[0]:0,So=la.constant.length>1?la.constant[1]:0,Mn=la.constant.length>2?la.constant[2]:0,Ao=la.constant.length>3?la.constant[3]:0)):(yt(la.buffer)?Ya=Se.createStream(34962,la.buffer):Ya=Se.getBuffer(la.buffer),qa="type"in la?Cr[la.type]:Ya.dtype,Ii=!!la.normalized,Co=la.size|0,Zn=la.offset|0,Ha=la.stride|0,Wa=la.divisor|0)),$a=Ae.state,Ae.state=go,Fe=Ae.x,Ae.x=eo,Ge=Ae.y,Ae.y=So,ot=Ae.z,Ae.z=Mn,rt=Ae.w,Ae.w=Ao,mt=Ae.buffer,Ae.buffer=Ya,It=Ae.size,Ae.size=Co,Bt=Ae.normalized,Ae.normalized=Ii,Ot=Ae.type,Ae.type=qa,nr=Ae.offset,Ae.offset=Zn,zr=Ae.stride,Ae.stride=Ha,Wt=Ae.divisor,Ae.divisor=Wa,Rt=y.call(this,Re,Fi,Kt),er=!1,kr=1,Vr=0,ii=0,ci=0,li=0,mi=null,xi=0,Oi=!1,ua=5126,xa=0,ao=0,ho=0,yt(Rt)?(er=!0,mi=Se.createStream(34962,Rt),ua=mi.dtype):(mi=Se.getBuffer(Rt),mi?ua=mi.dtype:"constant"in Rt?(kr=2,typeof Rt.constant=="number"?(Vr=Rt.constant,ii=ci=li=0):(Vr=Rt.constant.length>0?Rt.constant[0]:0,ii=Rt.constant.length>1?Rt.constant[1]:0,ci=Rt.constant.length>2?Rt.constant[2]:0,li=Rt.constant.length>3?Rt.constant[3]:0)):(yt(Rt.buffer)?mi=Se.createStream(34962,Rt.buffer):mi=Se.getBuffer(Rt.buffer),ua="type"in Rt?Cr[Rt.type]:mi.dtype,Oi=!!Rt.normalized,xi=Rt.size|0,xa=Rt.offset|0,ao=Rt.stride|0,ho=Rt.divisor|0)),Fo=be.state,be.state=kr,ls=be.x,be.x=Vr,Io=be.y,be.y=ii,Ps=be.z,be.z=ci,xs=be.w,be.w=li,us=be.buffer,be.buffer=mi,Ni=be.size,be.size=xi,io=be.normalized,be.normalized=Oi,Eo=be.type,be.type=ua,oo=be.offset,be.offset=xa,xo=be.stride,be.stride=ao,bo=be.divisor,be.divisor=ho,so=f.call(this,Re,Fi,Kt),Yo=!1,Uo=1,es=0,jo=0,Qo=0,Ks=0,js=null,Ds=0,_s=!1,as=5126,Es=0,To=0,Go=0,yt(so)?(Yo=!0,js=Se.createStream(34962,so),as=js.dtype):(js=Se.getBuffer(so),js?as=js.dtype:"constant"in so?(Uo=2,typeof so.constant=="number"?(es=so.constant,jo=Qo=Ks=0):(es=so.constant.length>0?so.constant[0]:0,jo=so.constant.length>1?so.constant[1]:0,Qo=so.constant.length>2?so.constant[2]:0,Ks=so.constant.length>3?so.constant[3]:0)):(yt(so.buffer)?js=Se.createStream(34962,so.buffer):js=Se.getBuffer(so.buffer),as="type"in so?Cr[so.type]:js.dtype,_s=!!so.normalized,Ds=so.size|0,Es=so.offset|0,To=so.stride|0,Go=so.divisor|0)),qs=me.state,me.state=Uo,Ts=me.x,me.x=es,Dl=me.y,me.y=jo,_l=me.z,me.z=Qo,wl=me.w,me.w=Ks,vl=me.buffer,me.buffer=js,Al=me.size,me.size=Ds,ml=me.normalized,me.normalized=_s,Hl=me.type,me.type=as,Tl=me.offset,me.offset=Es,yl=me.stride,me.stride=To,ae=me.divisor,me.divisor=Go,fe=h.call(this,Re,Fi,Kt),Te=!1,ke=1,Ne=0,Oe=0,He=0,ct=0,xt=null,pt=0,_t=!1,Lt=5126,Jt=0,fr=0,Or=0,yt(fe)?(Te=!0,xt=Se.createStream(34962,fe),Lt=xt.dtype):(xt=Se.getBuffer(fe),xt?Lt=xt.dtype:"constant"in fe?(ke=2,typeof fe.constant=="number"?(Ne=fe.constant,Oe=He=ct=0):(Ne=fe.constant.length>0?fe.constant[0]:0,Oe=fe.constant.length>1?fe.constant[1]:0,He=fe.constant.length>2?fe.constant[2]:0,ct=fe.constant.length>3?fe.constant[3]:0)):(yt(fe.buffer)?xt=Se.createStream(34962,fe.buffer):xt=Se.getBuffer(fe.buffer),Lt="type"in fe?Cr[fe.type]:xt.dtype,_t=!!fe.normalized,pt=fe.size|0,Jt=fe.offset|0,fr=fe.stride|0,Or=fe.divisor|0)),Pi=ue.state,ue.state=ke,Rn=ue.x,ue.x=Ne,fo=ue.y,ue.y=Oe,Xo=ue.z,ue.z=He,Bo=ue.w,ue.w=ct,fs=ue.buffer,ue.buffer=xt,cs=ue.size,ue.size=pt,Ns=ue.normalized,ue.normalized=_t,zl=ue.type,ue.type=Lt,Is=ue.offset,ue.offset=Jt,Nl=ue.stride,ue.stride=fr,ul=ue.divisor,ue.divisor=Or,cl=l.call(this,Re,Fi,Kt),vf=!1,wf=1,bu=0,_u=0,ju=0,wu=0,Eu=null,Af=0,mf=!1,ef=5126,Nf=0,ic=0,R=0,yt(cl)?(vf=!0,Eu=Se.createStream(34962,cl),ef=Eu.dtype):(Eu=Se.getBuffer(cl),Eu?ef=Eu.dtype:"constant"in cl?(wf=2,typeof cl.constant=="number"?(bu=cl.constant,_u=ju=wu=0):(bu=cl.constant.length>0?cl.constant[0]:0,_u=cl.constant.length>1?cl.constant[1]:0,ju=cl.constant.length>2?cl.constant[2]:0,wu=cl.constant.length>3?cl.constant[3]:0)):(yt(cl.buffer)?Eu=Se.createStream(34962,cl.buffer):Eu=Se.getBuffer(cl.buffer),ef="type"in cl?Cr[cl.type]:Eu.dtype,mf=!!cl.normalized,Af=cl.size|0,Nf=cl.offset|0,ic=cl.stride|0,R=cl.divisor|0)),G=pe.state,pe.state=wf,ee=pe.x,pe.x=bu,he=pe.y,pe.y=_u,ve=pe.z,pe.z=ju,_e=pe.w,pe.w=wu,je=pe.buffer,pe.buffer=Eu,qe=pe.size,pe.size=Af,Je=pe.normalized,pe.normalized=mf,ht=pe.type,pe.type=ef,dt=pe.offset,pe.offset=Nf,Ft=pe.stride,pe.stride=ic,Et=pe.divisor,pe.divisor=R,Qt=p.call(this,Re,Fi,Kt),Mr=!1,zt=1,Yt=0,sr=0,Ar=0,br=0,Xt=null,_n=0,ha=!1,Xa=5126,yo=0,Wo=0,Zo=0,yt(Qt)?(Mr=!0,Xt=Se.createStream(34962,Qt),Xa=Xt.dtype):(Xt=Se.getBuffer(Qt),Xt?Xa=Xt.dtype:"constant"in Qt?(zt=2,typeof Qt.constant=="number"?(Yt=Qt.constant,sr=Ar=br=0):(Yt=Qt.constant.length>0?Qt.constant[0]:0,sr=Qt.constant.length>1?Qt.constant[1]:0,Ar=Qt.constant.length>2?Qt.constant[2]:0,br=Qt.constant.length>3?Qt.constant[3]:0)):(yt(Qt.buffer)?Xt=Se.createStream(34962,Qt.buffer):Xt=Se.getBuffer(Qt.buffer),Xa="type"in Qt?Cr[Qt.type]:Xt.dtype,ha=!!Qt.normalized,_n=Qt.size|0,yo=Qt.offset|0,Wo=Qt.stride|0,Zo=Qt.divisor|0)),Qs=ce.state,ce.state=zt,rs=ce.x,ce.x=Yt,Us=ce.y,ce.y=sr,jl=ce.z,ce.z=Ar,Ou=ce.w,ce.w=br,Jl=ce.buffer,ce.buffer=Xt,po=ce.size,ce.size=_n,el=ce.normalized,ce.normalized=ha,nl=ce.type,ce.type=Xa,Vl=ce.offset,ce.offset=yo,ku=ce.stride,ce.stride=Wo,tf=ce.divisor,ce.divisor=Zo,Tf=ze.vert,ze.vert=Be,nc=ze.frag,ze.frag=$e,De.dirty=!0,ir(Re,Fi,Kt),Re.viewportWidth=bt,Re.viewportHeight=lr,wr[0]=Ct,wr[1]=ur,wr[2]=Ir,wr[3]=Rr,St[0]=Nr,St[1]=gi,St[2]=ui,St[3]=Qr,Pe.blend_enable=Ui,lt[0]=ln,lt[1]=Tt,lt[2]=_i,lt[3]=kn,Pe.depth_enable=ti,Di[0]=Wi,Di[1]=Qi,Di[2]=_r,Di[3]=Yr,Pe.scissor_enable=fi,Pe.stencil_enable=aa,sn&&(r.cpuTime+=performance.now()-ca),Ta&&Le.destroyStream(hn),Ve.elements=tn,Ve.offset=rn,Ve.count=ea,Ve.primitive=qn,wt[de]=pi,wt[Ie]=Fn,wt[Ce]=dr,wt[le]=Zi,wt[re]=pa,wt[Ee]=an,wt[we]=Ra,wt[oe]=Yn,wt[Y]=ja,wt[ne]=ki,Va&&Se.destroyStream(vi),ye.state=ta,ye.x=Bi,ye.y=On,ye.z=Nn,ye.w=ia,ye.buffer=Jr,ye.size=Ci,ye.normalized=un,ye.type=Dn,ye.offset=Vn,ye.stride=vn,ye.divisor=Br,Ua&&Se.destroyStream(yn),U.state=da,U.x=Mi,U.y=Xr,U.z=Gn,U.w=to,U.buffer=Jn,U.size=ro,U.normalized=mo,U.type=Oa,U.offset=Si,U.stride=co,U.divisor=Pn,oa&&Se.destroyStream(jr),se.state=Xi,se.x=sa,se.y=Mo,se.z=ya,se.w=Qn,se.buffer=Tn,se.size=Da,se.normalized=zn,se.type=Ia,se.offset=$i,se.stride=In,se.divisor=qi,ga&&Se.destroyStream(Ya),Ae.state=$a,Ae.x=Fe,Ae.y=Ge,Ae.z=ot,Ae.w=rt,Ae.buffer=mt,Ae.size=It,Ae.normalized=Bt,Ae.type=Ot,Ae.offset=nr,Ae.stride=zr,Ae.divisor=Wt,er&&Se.destroyStream(mi),be.state=Fo,be.x=ls,be.y=Io,be.z=Ps,be.w=xs,be.buffer=us,be.size=Ni,be.normalized=io,be.type=Eo,be.offset=oo,be.stride=xo,be.divisor=bo,Yo&&Se.destroyStream(js),me.state=qs,me.x=Ts,me.y=Dl,me.z=_l,me.w=wl,me.buffer=vl,me.size=Al,me.normalized=ml,me.type=Hl,me.offset=Tl,me.stride=yl,me.divisor=ae,Te&&Se.destroyStream(xt),ue.state=Pi,ue.x=Rn,ue.y=fo,ue.z=Xo,ue.w=Bo,ue.buffer=fs,ue.size=cs,ue.normalized=Ns,ue.type=zl,ue.offset=Is,ue.stride=Nl,ue.divisor=ul,vf&&Se.destroyStream(Eu),pe.state=G,pe.x=ee,pe.y=he,pe.z=ve,pe.w=_e,pe.buffer=je,pe.size=qe,pe.normalized=Je,pe.type=ht,pe.offset=dt,pe.stride=Ft,pe.divisor=Et,Mr&&Se.destroyStream(Xt),ce.state=Qs,ce.x=rs,ce.y=Us,ce.z=jl,ce.w=Ou,ce.buffer=Jl,ce.size=po,ce.normalized=el,ce.type=nl,ce.offset=Vl,ce.stride=ku,ce.divisor=tf,ze.vert=Tf,ze.frag=nc,De.dirty=!0},batch:function(Fi,ir){var Kt,Me,Xe,Ye,et,gt,bt;if(Kt=Vt.angle_instanced_arrays,Me=At.next,Me!==At.cur&&(Me?xe.bindFramebuffer(36160,Me.framebuffer):xe.bindFramebuffer(36160,null),At.cur=Me),De.dirty){var lr,Ct,ur,Ir,Rr,Nr,gi,ui,Qr,Ui,ln,Tt,_i,kn,ti,Fr,ji,na,mn,$n,Wi,Qi,_r,Yr,fi,aa,sn,ca,Kn,hn,Ta,tn,wi,rn;lr=Pe.dither,lr!==De.dither&&(lr?xe.enable(3024):xe.disable(3024),De.dither=lr),Ct=Ke[0],ur=Ke[1],(Ct!==at[0]||ur!==at[1])&&(xe.blendEquationSeparate(Ct,ur),at[0]=Ct,at[1]=ur),Ir=Pe.depth_func,Ir!==De.depth_func&&(xe.depthFunc(Ir),De.depth_func=Ir),Rr=We[0],Nr=We[1],(Rr!==ut[0]||Nr!==ut[1])&&(xe.depthRange(Rr,Nr),ut[0]=Rr,ut[1]=Nr),gi=Pe.depth_mask,gi!==De.depth_mask&&(xe.depthMask(gi),De.depth_mask=gi),ui=kt[0],Qr=kt[1],Ui=kt[2],ln=kt[3],(ui!==$t[0]||Qr!==$t[1]||Ui!==$t[2]||ln!==$t[3])&&(xe.colorMask(ui,Qr,Ui,ln),$t[0]=ui,$t[1]=Qr,$t[2]=Ui,$t[3]=ln),Tt=Pe.cull_enable,Tt!==De.cull_enable&&(Tt?xe.enable(2884):xe.disable(2884),De.cull_enable=Tt),_i=Pe.cull_face,_i!==De.cull_face&&(xe.cullFace(_i),De.cull_face=_i),kn=Pe.frontFace,kn!==De.frontFace&&(xe.frontFace(kn),De.frontFace=kn),ti=Pe.lineWidth,ti!==De.lineWidth&&(xe.lineWidth(ti),De.lineWidth=ti),Fr=Pe.polygonOffset_enable,Fr!==De.polygonOffset_enable&&(Fr?xe.enable(32823):xe.disable(32823),De.polygonOffset_enable=Fr),ji=or[0],na=or[1],(ji!==Lr[0]||na!==Lr[1])&&(xe.polygonOffset(ji,na),Lr[0]=ji,Lr[1]=na),mn=Pe.sample_alpha,mn!==De.sample_alpha&&(mn?xe.enable(32926):xe.disable(32926),De.sample_alpha=mn),$n=Pe.sample_enable,$n!==De.sample_enable&&($n?xe.enable(32928):xe.disable(32928),De.sample_enable=$n),Wi=Er[0],Qi=Er[1],(Wi!==hr[0]||Qi!==hr[1])&&(xe.sampleCoverage(Wi,Qi),hr[0]=Wi,hr[1]=Qi),_r=Pe.stencil_mask,_r!==De.stencil_mask&&(xe.stencilMask(_r),De.stencil_mask=_r),Yr=ni[0],fi=ni[1],aa=ni[2],(Yr!==Kr[0]||fi!==Kr[1]||aa!==Kr[2])&&(xe.stencilFunc(Yr,fi,aa),Kr[0]=Yr,Kr[1]=fi,Kr[2]=aa),sn=si[0],ca=si[1],Kn=si[2],hn=si[3],(sn!==Tr[0]||ca!==Tr[1]||Kn!==Tr[2]||hn!==Tr[3])&&(xe.stencilOpSeparate(sn,ca,Kn,hn),Tr[0]=sn,Tr[1]=ca,Tr[2]=Kn,Tr[3]=hn),Ta=vr[0],tn=vr[1],wi=vr[2],rn=vr[3],(Ta!==Hr[0]||tn!==Hr[1]||wi!==Hr[2]||rn!==Hr[3])&&(xe.stencilOpSeparate(Ta,tn,wi,rn),Hr[0]=Ta,Hr[1]=tn,Hr[2]=wi,Hr[3]=rn)}xe.blendColor(0,0,0,1),rr[0]=0,rr[1]=0,rr[2]=0,rr[3]=1,Ze?xe.enable(3042):xe.disable(3042),De.blend_enable=Ze,xe.blendFuncSeparate(770,771,773,1),vt[0]=770,vt[1]=771,vt[2]=773,vt[3]=1,it?xe.enable(2929):xe.disable(2929),De.depth_enable=it,nt?xe.enable(3089):xe.disable(3089),De.scissor_enable=nt,Ue?xe.enable(2960):xe.disable(2960),De.stencil_enable=Ue,Xe=De.profile,Xe&&(Ye=performance.now(),r.count+=ir),xe.useProgram(s.program),et=Vt.angle_instanced_arrays;var Ai;for(ft.setVAO(null),xe.uniform1i(E.location,!1),xe.uniform1i(L.location,P.bind()),Ai=Ve.instances,gt=0;gt0?wn.constant[0]:0,Ja=wn.constant.length>1?wn.constant[1]:0,ja=wn.constant.length>2?wn.constant[2]:0,ka=wn.constant.length>3?wn.constant[3]:0)):(yt(wn.buffer)?ki=Se.createStream(34962,wn.buffer):ki=Se.getBuffer(wn.buffer),Gi="type"in wn?Cr[wn.type]:ki.dtype,Va=!!wn.normalized,pn=wn.size|0,Pr=wn.offset|0,ri=wn.stride|0,bn=wn.divisor|0)),Ri=u.location,vi=st[Ri],ei===1?(vi.buffer||xe.enableVertexAttribArray(Ri),yr=pn||4,(vi.type!==Gi||vi.size!==yr||vi.buffer!==ki||vi.normalized!==Va||vi.offset!==Pr||vi.stride!==ri)&&(xe.bindBuffer(34962,ki.buffer),xe.vertexAttribPointer(Ri,yr,Gi,Va,ri,Pr),vi.type=Gi,vi.size=yr,vi.buffer=ki,vi.normalized=Va,vi.offset=Pr,vi.stride=ri),vi.divisor!==bn&&(et.vertexAttribDivisorANGLE(Ri,bn),vi.divisor=bn)):(vi.buffer&&(xe.disableVertexAttribArray(Ri),vi.buffer=null),(vi.x!==Yn||vi.y!==Ja||vi.z!==ja||vi.w!==ka)&&(xe.vertexAttrib4f(Ri,Yn,Ja,ja,ka),vi.x=Yn,vi.y=Ja,vi.z=ja,vi.w=ka)),Ti=f.call(this,Re,bt,gt),Cn=!1,Gr=1,Xn=0,nn=0,ta=0,Bi=0,On=null,Nn=0,ia=!1,Jr=5126,Ci=0,un=0,Dn=0,yt(Ti)?(Cn=!0,On=Se.createStream(34962,Ti),Jr=On.dtype):(On=Se.getBuffer(Ti),On?Jr=On.dtype:"constant"in Ti?(Gr=2,typeof Ti.constant=="number"?(Xn=Ti.constant,nn=ta=Bi=0):(Xn=Ti.constant.length>0?Ti.constant[0]:0,nn=Ti.constant.length>1?Ti.constant[1]:0,ta=Ti.constant.length>2?Ti.constant[2]:0,Bi=Ti.constant.length>3?Ti.constant[3]:0)):(yt(Ti.buffer)?On=Se.createStream(34962,Ti.buffer):On=Se.getBuffer(Ti.buffer),Jr="type"in Ti?Cr[Ti.type]:On.dtype,ia=!!Ti.normalized,Nn=Ti.size|0,Ci=Ti.offset|0,un=Ti.stride|0,Dn=Ti.divisor|0)),Vn=c.location,vn=st[Vn],Gr===1?(vn.buffer||xe.enableVertexAttribArray(Vn),Br=Nn||1,(vn.type!==Jr||vn.size!==Br||vn.buffer!==On||vn.normalized!==ia||vn.offset!==Ci||vn.stride!==un)&&(xe.bindBuffer(34962,On.buffer),xe.vertexAttribPointer(Vn,Br,Jr,ia,un,Ci),vn.type=Jr,vn.size=Br,vn.buffer=On,vn.normalized=ia,vn.offset=Ci,vn.stride=un),vn.divisor!==Dn&&(et.vertexAttribDivisorANGLE(Vn,Dn),vn.divisor=Dn)):(vn.buffer&&(xe.disableVertexAttribArray(Vn),vn.buffer=null),(vn.x!==Xn||vn.y!==nn||vn.z!==ta||vn.w!==Bi)&&(xe.vertexAttrib4f(Vn,Xn,nn,ta,Bi),vn.x=Xn,vn.y=nn,vn.z=ta,vn.w=Bi)),Li=h.call(this,Re,bt,gt),Ua=!1,yi=1,Ma=0,Ba=0,Bn=0,Hi=0,yn=null,jn=0,Un=!1,zi=5126,xr=0,Ln=0,xn=0,yt(Li)?(Ua=!0,yn=Se.createStream(34962,Li),zi=yn.dtype):(yn=Se.getBuffer(Li),yn?zi=yn.dtype:"constant"in Li?(yi=2,typeof Li.constant=="number"?(Ma=Li.constant,Ba=Bn=Hi=0):(Ma=Li.constant.length>0?Li.constant[0]:0,Ba=Li.constant.length>1?Li.constant[1]:0,Bn=Li.constant.length>2?Li.constant[2]:0,Hi=Li.constant.length>3?Li.constant[3]:0)):(yt(Li.buffer)?yn=Se.createStream(34962,Li.buffer):yn=Se.getBuffer(Li.buffer),zi="type"in Li?Cr[Li.type]:yn.dtype,Un=!!Li.normalized,jn=Li.size|0,xr=Li.offset|0,Ln=Li.stride|0,xn=Li.divisor|0)),da=d.location,Mi=st[da],yi===1?(Mi.buffer||xe.enableVertexAttribArray(da),Xr=jn||4,(Mi.type!==zi||Mi.size!==Xr||Mi.buffer!==yn||Mi.normalized!==Un||Mi.offset!==xr||Mi.stride!==Ln)&&(xe.bindBuffer(34962,yn.buffer),xe.vertexAttribPointer(da,Xr,zi,Un,Ln,xr),Mi.type=zi,Mi.size=Xr,Mi.buffer=yn,Mi.normalized=Un,Mi.offset=xr,Mi.stride=Ln),Mi.divisor!==xn&&(et.vertexAttribDivisorANGLE(da,xn),Mi.divisor=xn)):(Mi.buffer&&(xe.disableVertexAttribArray(da),Mi.buffer=null),(Mi.x!==Ma||Mi.y!==Ba||Mi.z!==Bn||Mi.w!==Hi)&&(xe.vertexAttrib4f(da,Ma,Ba,Bn,Hi),Mi.x=Ma,Mi.y=Ba,Mi.z=Bn,Mi.w=Hi)),Gn=p.call(this,Re,bt,gt),to=!1,Jn=1,ro=0,mo=0,Oa=0,Si=0,co=null,Pn=0,Fa=!1,oa=5126,Hn=0,va=0,ma=0,yt(Gn)?(to=!0,co=Se.createStream(34962,Gn),oa=co.dtype):(co=Se.getBuffer(Gn),co?oa=co.dtype:"constant"in Gn?(Jn=2,typeof Gn.constant=="number"?(ro=Gn.constant,mo=Oa=Si=0):(ro=Gn.constant.length>0?Gn.constant[0]:0,mo=Gn.constant.length>1?Gn.constant[1]:0,Oa=Gn.constant.length>2?Gn.constant[2]:0,Si=Gn.constant.length>3?Gn.constant[3]:0)):(yt(Gn.buffer)?co=Se.createStream(34962,Gn.buffer):co=Se.getBuffer(Gn.buffer),oa="type"in Gn?Cr[Gn.type]:co.dtype,Fa=!!Gn.normalized,Pn=Gn.size|0,Hn=Gn.offset|0,va=Gn.stride|0,ma=Gn.divisor|0)),Sa=v.location,Ei=st[Sa],Jn===1?(Ei.buffer||xe.enableVertexAttribArray(Sa),jr=Pn||1,(Ei.type!==oa||Ei.size!==jr||Ei.buffer!==co||Ei.normalized!==Fa||Ei.offset!==Hn||Ei.stride!==va)&&(xe.bindBuffer(34962,co.buffer),xe.vertexAttribPointer(Sa,jr,oa,Fa,va,Hn),Ei.type=oa,Ei.size=jr,Ei.buffer=co,Ei.normalized=Fa,Ei.offset=Hn,Ei.stride=va),Ei.divisor!==ma&&(et.vertexAttribDivisorANGLE(Sa,ma),Ei.divisor=ma)):(Ei.buffer&&(xe.disableVertexAttribArray(Sa),Ei.buffer=null),(Ei.x!==ro||Ei.y!==mo||Ei.z!==Oa||Ei.w!==Si)&&(xe.vertexAttrib4f(Sa,ro,mo,Oa,Si),Ei.x=ro,Ei.y=mo,Ei.z=Oa,Ei.w=Si)),An=y.call(this,Re,bt,gt),Za=!1,Ga=1,Ca=0,za=0,Wn=0,Xi=0,sa=null,Mo=0,ya=!1,Qn=5126,Tn=0,Da=0,zn=0,yt(An)?(Za=!0,sa=Se.createStream(34962,An),Qn=sa.dtype):(sa=Se.getBuffer(An),sa?Qn=sa.dtype:"constant"in An?(Ga=2,typeof An.constant=="number"?(Ca=An.constant,za=Wn=Xi=0):(Ca=An.constant.length>0?An.constant[0]:0,za=An.constant.length>1?An.constant[1]:0,Wn=An.constant.length>2?An.constant[2]:0,Xi=An.constant.length>3?An.constant[3]:0)):(yt(An.buffer)?sa=Se.createStream(34962,An.buffer):sa=Se.getBuffer(An.buffer),Qn="type"in An?Cr[An.type]:sa.dtype,ya=!!An.normalized,Mo=An.size|0,Tn=An.offset|0,Da=An.stride|0,zn=An.divisor|0)),Ia=m.location,$i=st[Ia],Ga===1?($i.buffer||xe.enableVertexAttribArray(Ia),In=Mo||1,($i.type!==Qn||$i.size!==In||$i.buffer!==sa||$i.normalized!==ya||$i.offset!==Tn||$i.stride!==Da)&&(xe.bindBuffer(34962,sa.buffer),xe.vertexAttribPointer(Ia,In,Qn,ya,Da,Tn),$i.type=Qn,$i.size=In,$i.buffer=sa,$i.normalized=ya,$i.offset=Tn,$i.stride=Da),$i.divisor!==zn&&(et.vertexAttribDivisorANGLE(Ia,zn),$i.divisor=zn)):($i.buffer&&(xe.disableVertexAttribArray(Ia),$i.buffer=null),($i.x!==Ca||$i.y!==za||$i.z!==Wn||$i.w!==Xi)&&(xe.vertexAttrib4f(Ia,Ca,za,Wn,Xi),$i.x=Ca,$i.y=za,$i.z=Wn,$i.w=Xi)),qi=w.call(this,Re,bt,gt),la=!1,ga=1,go=0,eo=0,So=0,Mn=0,Ao=null,Ya=0,Co=!1,Ii=5126,qa=0,Zn=0,Ha=0,yt(qi)?(la=!0,Ao=Se.createStream(34962,qi),Ii=Ao.dtype):(Ao=Se.getBuffer(qi),Ao?Ii=Ao.dtype:"constant"in qi?(ga=2,typeof qi.constant=="number"?(go=qi.constant,eo=So=Mn=0):(go=qi.constant.length>0?qi.constant[0]:0,eo=qi.constant.length>1?qi.constant[1]:0,So=qi.constant.length>2?qi.constant[2]:0,Mn=qi.constant.length>3?qi.constant[3]:0)):(yt(qi.buffer)?Ao=Se.createStream(34962,qi.buffer):Ao=Se.getBuffer(qi.buffer),Ii="type"in qi?Cr[qi.type]:Ao.dtype,Co=!!qi.normalized,Ya=qi.size|0,qa=qi.offset|0,Zn=qi.stride|0,Ha=qi.divisor|0)),Wa=_.location,$a=st[Wa],ga===1?($a.buffer||xe.enableVertexAttribArray(Wa),Fe=Ya||1,($a.type!==Ii||$a.size!==Fe||$a.buffer!==Ao||$a.normalized!==Co||$a.offset!==qa||$a.stride!==Zn)&&(xe.bindBuffer(34962,Ao.buffer),xe.vertexAttribPointer(Wa,Fe,Ii,Co,Zn,qa),$a.type=Ii,$a.size=Fe,$a.buffer=Ao,$a.normalized=Co,$a.offset=qa,$a.stride=Zn),$a.divisor!==Ha&&(et.vertexAttribDivisorANGLE(Wa,Ha),$a.divisor=Ha)):($a.buffer&&(xe.disableVertexAttribArray(Wa),$a.buffer=null),($a.x!==go||$a.y!==eo||$a.z!==So||$a.w!==Mn)&&(xe.vertexAttrib4f(Wa,go,eo,So,Mn),$a.x=go,$a.y=eo,$a.z=So,$a.w=Mn)),Ge=b.call(this,Re,bt,gt),ot=!1,rt=1,mt=0,It=0,Bt=0,Ot=0,nr=null,zr=0,Wt=!1,Rt=5126,er=0,kr=0,Vr=0,yt(Ge)?(ot=!0,nr=Se.createStream(34962,Ge),Rt=nr.dtype):(nr=Se.getBuffer(Ge),nr?Rt=nr.dtype:"constant"in Ge?(rt=2,typeof Ge.constant=="number"?(mt=Ge.constant,It=Bt=Ot=0):(mt=Ge.constant.length>0?Ge.constant[0]:0,It=Ge.constant.length>1?Ge.constant[1]:0,Bt=Ge.constant.length>2?Ge.constant[2]:0,Ot=Ge.constant.length>3?Ge.constant[3]:0)):(yt(Ge.buffer)?nr=Se.createStream(34962,Ge.buffer):nr=Se.getBuffer(Ge.buffer),Rt="type"in Ge?Cr[Ge.type]:nr.dtype,Wt=!!Ge.normalized,zr=Ge.size|0,er=Ge.offset|0,kr=Ge.stride|0,Vr=Ge.divisor|0)),ii=M.location,ci=st[ii],rt===1?(ci.buffer||xe.enableVertexAttribArray(ii),li=zr||1,(ci.type!==Rt||ci.size!==li||ci.buffer!==nr||ci.normalized!==Wt||ci.offset!==er||ci.stride!==kr)&&(xe.bindBuffer(34962,nr.buffer),xe.vertexAttribPointer(ii,li,Rt,Wt,kr,er),ci.type=Rt,ci.size=li,ci.buffer=nr,ci.normalized=Wt,ci.offset=er,ci.stride=kr),ci.divisor!==Vr&&(et.vertexAttribDivisorANGLE(ii,Vr),ci.divisor=Vr)):(ci.buffer&&(xe.disableVertexAttribArray(ii),ci.buffer=null),(ci.x!==mt||ci.y!==It||ci.z!==Bt||ci.w!==Ot)&&(xe.vertexAttrib4f(ii,mt,It,Bt,Ot),ci.x=mt,ci.y=It,ci.z=Bt,ci.w=Ot)),mi=x.call(this,Re,bt,gt),xi=!1,Oi=1,ua=0,xa=0,ao=0,ho=0,Fo=null,ls=0,Io=!1,Ps=5126,xs=0,us=0,Ni=0,yt(mi)?(xi=!0,Fo=Se.createStream(34962,mi),Ps=Fo.dtype):(Fo=Se.getBuffer(mi),Fo?Ps=Fo.dtype:"constant"in mi?(Oi=2,typeof mi.constant=="number"?(ua=mi.constant,xa=ao=ho=0):(ua=mi.constant.length>0?mi.constant[0]:0,xa=mi.constant.length>1?mi.constant[1]:0,ao=mi.constant.length>2?mi.constant[2]:0,ho=mi.constant.length>3?mi.constant[3]:0)):(yt(mi.buffer)?Fo=Se.createStream(34962,mi.buffer):Fo=Se.getBuffer(mi.buffer),Ps="type"in mi?Cr[mi.type]:Fo.dtype,Io=!!mi.normalized,ls=mi.size|0,xs=mi.offset|0,us=mi.stride|0,Ni=mi.divisor|0)),io=A.location,Eo=st[io],Oi===1?(Eo.buffer||xe.enableVertexAttribArray(io),oo=ls||1,(Eo.type!==Ps||Eo.size!==oo||Eo.buffer!==Fo||Eo.normalized!==Io||Eo.offset!==xs||Eo.stride!==us)&&(xe.bindBuffer(34962,Fo.buffer),xe.vertexAttribPointer(io,oo,Ps,Io,us,xs),Eo.type=Ps,Eo.size=oo,Eo.buffer=Fo,Eo.normalized=Io,Eo.offset=xs,Eo.stride=us),Eo.divisor!==Ni&&(et.vertexAttribDivisorANGLE(io,Ni),Eo.divisor=Ni)):(Eo.buffer&&(xe.disableVertexAttribArray(io),Eo.buffer=null),(Eo.x!==ua||Eo.y!==xa||Eo.z!==ao||Eo.w!==ho)&&(xe.vertexAttrib4f(io,ua,xa,ao,ho),Eo.x=ua,Eo.y=xa,Eo.z=ao,Eo.w=ho)),xo=T.call(this,Re,bt,gt),bo=!1,so=1,Yo=0,Uo=0,es=0,jo=0,Qo=null,Ks=0,js=!1,Ds=5126,_s=0,as=0,Es=0,yt(xo)?(bo=!0,Qo=Se.createStream(34962,xo),Ds=Qo.dtype):(Qo=Se.getBuffer(xo),Qo?Ds=Qo.dtype:"constant"in xo?(so=2,typeof xo.constant=="number"?(Yo=xo.constant,Uo=es=jo=0):(Yo=xo.constant.length>0?xo.constant[0]:0,Uo=xo.constant.length>1?xo.constant[1]:0,es=xo.constant.length>2?xo.constant[2]:0,jo=xo.constant.length>3?xo.constant[3]:0)):(yt(xo.buffer)?Qo=Se.createStream(34962,xo.buffer):Qo=Se.getBuffer(xo.buffer),Ds="type"in xo?Cr[xo.type]:Qo.dtype,js=!!xo.normalized,Ks=xo.size|0,_s=xo.offset|0,as=xo.stride|0,Es=xo.divisor|0)),To=g.location,Go=st[To],so===1?(Go.buffer||xe.enableVertexAttribArray(To),qs=Ks||1,(Go.type!==Ds||Go.size!==qs||Go.buffer!==Qo||Go.normalized!==js||Go.offset!==_s||Go.stride!==as)&&(xe.bindBuffer(34962,Qo.buffer),xe.vertexAttribPointer(To,qs,Ds,js,as,_s),Go.type=Ds,Go.size=qs,Go.buffer=Qo,Go.normalized=js,Go.offset=_s,Go.stride=as),Go.divisor!==Es&&(et.vertexAttribDivisorANGLE(To,Es),Go.divisor=Es)):(Go.buffer&&(xe.disableVertexAttribArray(To),Go.buffer=null),(Go.x!==Yo||Go.y!==Uo||Go.z!==es||Go.w!==jo)&&(xe.vertexAttrib4f(To,Yo,Uo,es,jo),Go.x=Yo,Go.y=Uo,Go.z=es,Go.w=jo)),Ts=bt.markerTexture,Ts&&Ts._reglType==="framebuffer"&&(Ts=Ts.color[0]),Dl=Ts._texture,xe.uniform1i(S.location,Dl.bind()),_l=bt.opacity,(!gt||wl!==_l)&&(wl=_l,xe.uniform1f(C.location,_l)),vl=D.call(this,Re,bt,gt),Al=vl[0],Hl=vl[1],(!gt||ml!==Al||Tl!==Hl)&&(ml=Al,Tl=Hl,xe.uniform2f(k.location,Al,Hl)),yl=Re.pixelRatio,(!gt||ae!==yl)&&(ae=yl,xe.uniform1f(I.location,yl)),fe=bt.scale,Te=fe[0],Ne=fe[1],(!gt||ke!==Te||Oe!==Ne)&&(ke=Te,Oe=Ne,xe.uniform2f(F.location,Te,Ne)),He=bt.scaleFract,ct=He[0],pt=He[1],(!gt||xt!==ct||_t!==pt)&&(xt=ct,_t=pt,xe.uniform2f(z.location,ct,pt)),Lt=bt.translate,Jt=Lt[0],Or=Lt[1],(!gt||fr!==Jt||Pi!==Or)&&(fr=Jt,Pi=Or,xe.uniform2f(B.location,Jt,Or)),Rn=bt.translateFract,fo=Rn[0],Bo=Rn[1],(!gt||Xo!==fo||fs!==Bo)&&(Xo=fo,fs=Bo,xe.uniform2f(O.location,fo,Bo)),cs=bt.elements,Ns=null,zl=yt(cs),zl?Ns=Le.createStream(cs):Ns=Le.getElements(cs),Ns&&xe.bindBuffer(34963,Ns.buffer.buffer),Is=bt.offset,Nl=bt.count,Nl&&(Ai>0?Ns?et.drawElementsInstancedANGLE(0,Nl,Ns.type,Is<<(Ns.type-5121>>1),Ai):et.drawArraysInstancedANGLE(0,Is,Nl,Ai):Ai<0&&(Ns?xe.drawElements(0,Nl,Ns.type,Is<<(Ns.type-5121>>1)):xe.drawArrays(0,Is,Nl)),Re.viewportWidth=dr,Re.viewportHeight=ai,Ra&&Se.destroyStream(ki),Cn&&Se.destroyStream(On),Ua&&Se.destroyStream(yn),to&&Se.destroyStream(co),Za&&Se.destroyStream(sa),la&&Se.destroyStream(Ao),ot&&Se.destroyStream(nr),xi&&Se.destroyStream(Fo),bo&&Se.destroyStream(Qo),Dl.unbind(),zl&&Le.destroyStream(Ns))}P.unbind(),De.dirty=!0,ft.setVAO(null),Xe&&(r.cpuTime+=performance.now()-Ye)}}}});var FB=K((Vri,CZe)=>{"use strict";CZe.exports=function(t,r,i,n,a,o,s,l,u,f,c,h,d,p,v,y,m,w,_,b,M,x,A,T,g,E,S,C,k,D,L,P,I,F,z,B,O,W,X,Z,j,q,Q,N,V,J,H,$,te,ie,de,ge,Ie,Ce,le,re,Ee,we,oe,Y,ne,ye,U,se,Ae,be,me,ue,pe){"use strict";var ce,Be,$e,Ze,it,nt,Ue,xe,Re,Qe,Pe,De,Ve,Le,Se,ze,st,ft,wt,At,Vt,Dt,yt,St,rr,Ke,at,lt,vt,We,ut,kt,$t,or,Lr,Er,hr,ni,Kr,si,Tr,vr,Hr,Di,gn,wr,qr,Ut,jt,pr,Ur,Sr;return ce=t.gl,Be=t.context,$e=t.strings,Ze=t.next,it=t.current,nt=t.draw,Ue=t.elements,xe=t.buffer,Re=t.shader,Qe=t.attributes,Pe=t.vao,De=t.uniforms,Ve=t.framebuffer,Le=t.extensions,Se=t.timer,ze=t.isBufferArgs,st=Ze.blend_color,ft=it.blend_color,wt=Ze.blend_equation,At=it.blend_equation,Vt=Ze.blend_func,Dt=it.blend_func,yt=Ze.depth_range,St=it.depth_range,rr=Ze.colorMask,Ke=it.colorMask,at=Ze.polygonOffset_offset,lt=it.polygonOffset_offset,vt=Ze.sample_coverage,We=it.sample_coverage,ut=Ze.stencil_func,kt=it.stencil_func,$t=Ze.stencil_opFront,or=it.stencil_opFront,Lr=Ze.stencil_opBack,Er=it.stencil_opBack,hr=Ze.scissor_box,ni=it.scissor_box,Kr=Ze.viewport,si=it.viewport,Tr={points:0,point:0,lines:1,line:1,triangles:4,triangle:4,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},vr={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},Hr={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},Di={add:32774,subtract:32778,"reverse subtract":32779},gn={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},wr={int8:5120,int16:5122,int32:5124,uint8:5121,uint16:5123,uint32:5125,float:5126,float32:5126},qr={cw:2304,ccw:2305},Ut={},Ut.stride=8,Ut.offset=8,Ut.divisor=1,jt={},jt.stride=8,jt.offset=16,jt.divisor=1,pr={},pr.stride=8,pr.offset=8,pr.divisor=1,Ur={},Ur.stride=8,Ur.offset=16,Ur.divisor=1,Sr={},Sr.stride=4,Sr.offset=0,Sr.divisor=1,{draw:function(Cr){var di,Fi,ir,Kt,Me,Xe,Ye,et,gt,bt,lr,Ct,ur,Ir,Rr,Nr,gi,ui,Qr,Ui,ln,Tt,_i,kn,ti,Fr,ji,na,mn,$n,Wi,Qi,_r,Yr,fi,aa,sn,ca,Kn,hn,Ta,tn,wi,rn,Ai,ea,qn,pi,Fn,Pa,dr,ai,Zi,Vi,pa,Na,an,wn,Ra,ei,Yn,Ja,ja,ka,ki,pn,Va,Gi,Pr,ri,bn,Ri,vi,yr,Ti,Cn,Gr,Xn,nn,ta,Bi,On,Nn,ia,Jr,Ci,un,Dn,Vn,vn,Br,Li,Ua,yi,Ma,Ba,Bn,Hi,yn,jn,Un,zi,xr,Ln,xn,da,Mi,Xr,Gn,to,Jn,ro,mo,Oa,Si,co,Pn,Fa,oa,Hn,va,ma,Sa,Ei,jr,An,Za,Ga,Ca,za,Wn,Xi;if(di=Le.angle_instanced_arrays,Fi=Ve.next,Fi!==Ve.cur&&(Fi?ce.bindFramebuffer(36160,Fi.framebuffer):ce.bindFramebuffer(36160,null),Ve.cur=Fi),it.dirty){var sa,Mo,ya,Qn,Tn,Da,zn,Ia,$i,In,qi,la,ga,go,eo,So,Mn,Ao,Ya,Co,Ii,qa,Zn,Ha,Wa,$a,Fe,Ge,ot,rt,mt,It;sa=Ze.dither,sa!==it.dither&&(sa?ce.enable(3024):ce.disable(3024),it.dither=sa),Mo=Ze.depth_func,Mo!==it.depth_func&&(ce.depthFunc(Mo),it.depth_func=Mo),ya=yt[0],Qn=yt[1],(ya!==St[0]||Qn!==St[1])&&(ce.depthRange(ya,Qn),St[0]=ya,St[1]=Qn),Tn=Ze.depth_mask,Tn!==it.depth_mask&&(ce.depthMask(Tn),it.depth_mask=Tn),Da=rr[0],zn=rr[1],Ia=rr[2],$i=rr[3],(Da!==Ke[0]||zn!==Ke[1]||Ia!==Ke[2]||$i!==Ke[3])&&(ce.colorMask(Da,zn,Ia,$i),Ke[0]=Da,Ke[1]=zn,Ke[2]=Ia,Ke[3]=$i),In=Ze.cull_enable,In!==it.cull_enable&&(In?ce.enable(2884):ce.disable(2884),it.cull_enable=In),qi=Ze.cull_face,qi!==it.cull_face&&(ce.cullFace(qi),it.cull_face=qi),la=Ze.frontFace,la!==it.frontFace&&(ce.frontFace(la),it.frontFace=la),ga=Ze.lineWidth,ga!==it.lineWidth&&(ce.lineWidth(ga),it.lineWidth=ga),go=Ze.polygonOffset_enable,go!==it.polygonOffset_enable&&(go?ce.enable(32823):ce.disable(32823),it.polygonOffset_enable=go),eo=at[0],So=at[1],(eo!==lt[0]||So!==lt[1])&&(ce.polygonOffset(eo,So),lt[0]=eo,lt[1]=So),Mn=Ze.sample_alpha,Mn!==it.sample_alpha&&(Mn?ce.enable(32926):ce.disable(32926),it.sample_alpha=Mn),Ao=Ze.sample_enable,Ao!==it.sample_enable&&(Ao?ce.enable(32928):ce.disable(32928),it.sample_enable=Ao),Ya=vt[0],Co=vt[1],(Ya!==We[0]||Co!==We[1])&&(ce.sampleCoverage(Ya,Co),We[0]=Ya,We[1]=Co),Ii=Ze.stencil_mask,Ii!==it.stencil_mask&&(ce.stencilMask(Ii),it.stencil_mask=Ii),qa=ut[0],Zn=ut[1],Ha=ut[2],(qa!==kt[0]||Zn!==kt[1]||Ha!==kt[2])&&(ce.stencilFunc(qa,Zn,Ha),kt[0]=qa,kt[1]=Zn,kt[2]=Ha),Wa=$t[0],$a=$t[1],Fe=$t[2],Ge=$t[3],(Wa!==or[0]||$a!==or[1]||Fe!==or[2]||Ge!==or[3])&&(ce.stencilOpSeparate(Wa,$a,Fe,Ge),or[0]=Wa,or[1]=$a,or[2]=Fe,or[3]=Ge),ot=Lr[0],rt=Lr[1],mt=Lr[2],It=Lr[3],(ot!==Er[0]||rt!==Er[1]||mt!==Er[2]||It!==Er[3])&&(ce.stencilOpSeparate(ot,rt,mt,It),Er[0]=ot,Er[1]=rt,Er[2]=mt,Er[3]=It)}ir=Cr.viewport,Kt=ir.x|0,Me=ir.y|0,Xe="width"in ir?ir.width|0:Be.framebufferWidth-Kt,Ye="height"in ir?ir.height|0:Be.framebufferHeight-Me,et=Be.viewportWidth,Be.viewportWidth=Xe,gt=Be.viewportHeight,Be.viewportHeight=Ye,ce.viewport(Kt,Me,Xe,Ye),si[0]=Kt,si[1]=Me,si[2]=Xe,si[3]=Ye,ce.blendColor(0,0,0,0),ft[0]=0,ft[1]=0,ft[2]=0,ft[3]=0,i?ce.enable(3042):ce.disable(3042),it.blend_enable=i,ce.blendEquationSeparate(32774,32774),At[0]=32774,At[1]=32774,ce.blendFuncSeparate(770,771,773,1),Dt[0]=770,Dt[1]=771,Dt[2]=773,Dt[3]=1,bt=n.call(this,Be,Cr,0),bt?ce.enable(2929):ce.disable(2929),it.depth_enable=bt,lr=Cr.viewport,Ct=lr.x|0,ur=lr.y|0,Ir="width"in lr?lr.width|0:Be.framebufferWidth-Ct,Rr="height"in lr?lr.height|0:Be.framebufferHeight-ur,ce.scissor(Ct,ur,Ir,Rr),ni[0]=Ct,ni[1]=ur,ni[2]=Ir,ni[3]=Rr,a?ce.enable(3089):ce.disable(3089),it.scissor_enable=a,o?ce.enable(2960):ce.disable(2960),it.stencil_enable=o,Nr=it.profile,Nr&&(gi=performance.now(),r.count++),ce.useProgram(s.program),ui=Le.angle_instanced_arrays,Pe.setVAO(null),Qr=Cr.positionBuffer,Ut.buffer=Qr,Ui=!1,ln=1,Tt=0,_i=0,kn=0,ti=0,Fr=null,ji=0,na=!1,mn=5126,$n=0,Wi=0,Qi=0,ze(Ut)?(Ui=!0,Fr=xe.createStream(34962,Ut),mn=Fr.dtype):(Fr=xe.getBuffer(Ut),Fr?mn=Fr.dtype:"constant"in Ut?(ln=2,typeof Ut.constant=="number"?(Tt=Ut.constant,_i=kn=ti=0):(Tt=Ut.constant.length>0?Ut.constant[0]:0,_i=Ut.constant.length>1?Ut.constant[1]:0,kn=Ut.constant.length>2?Ut.constant[2]:0,ti=Ut.constant.length>3?Ut.constant[3]:0)):(ze(Ut.buffer)?Fr=xe.createStream(34962,Ut.buffer):Fr=xe.getBuffer(Ut.buffer),mn="type"in Ut?wr[Ut.type]:Fr.dtype,na=!!Ut.normalized,ji=Ut.size|0,$n=Ut.offset|0,Wi=Ut.stride|0,Qi=Ut.divisor|0)),_r=l.location,Yr=Qe[_r],ln===1?(Yr.buffer||ce.enableVertexAttribArray(_r),fi=ji||2,(Yr.type!==mn||Yr.size!==fi||Yr.buffer!==Fr||Yr.normalized!==na||Yr.offset!==$n||Yr.stride!==Wi)&&(ce.bindBuffer(34962,Fr.buffer),ce.vertexAttribPointer(_r,fi,mn,na,Wi,$n),Yr.type=mn,Yr.size=fi,Yr.buffer=Fr,Yr.normalized=na,Yr.offset=$n,Yr.stride=Wi),Yr.divisor!==Qi&&(ui.vertexAttribDivisorANGLE(_r,Qi),Yr.divisor=Qi)):(Yr.buffer&&(ce.disableVertexAttribArray(_r),Yr.buffer=null),(Yr.x!==Tt||Yr.y!==_i||Yr.z!==kn||Yr.w!==ti)&&(ce.vertexAttrib4f(_r,Tt,_i,kn,ti),Yr.x=Tt,Yr.y=_i,Yr.z=kn,Yr.w=ti)),aa=Cr.positionFractBuffer,pr.buffer=aa,sn=!1,ca=1,Kn=0,hn=0,Ta=0,tn=0,wi=null,rn=0,Ai=!1,ea=5126,qn=0,pi=0,Fn=0,ze(pr)?(sn=!0,wi=xe.createStream(34962,pr),ea=wi.dtype):(wi=xe.getBuffer(pr),wi?ea=wi.dtype:"constant"in pr?(ca=2,typeof pr.constant=="number"?(Kn=pr.constant,hn=Ta=tn=0):(Kn=pr.constant.length>0?pr.constant[0]:0,hn=pr.constant.length>1?pr.constant[1]:0,Ta=pr.constant.length>2?pr.constant[2]:0,tn=pr.constant.length>3?pr.constant[3]:0)):(ze(pr.buffer)?wi=xe.createStream(34962,pr.buffer):wi=xe.getBuffer(pr.buffer),ea="type"in pr?wr[pr.type]:wi.dtype,Ai=!!pr.normalized,rn=pr.size|0,qn=pr.offset|0,pi=pr.stride|0,Fn=pr.divisor|0)),Pa=u.location,dr=Qe[Pa],ca===1?(dr.buffer||ce.enableVertexAttribArray(Pa),ai=rn||2,(dr.type!==ea||dr.size!==ai||dr.buffer!==wi||dr.normalized!==Ai||dr.offset!==qn||dr.stride!==pi)&&(ce.bindBuffer(34962,wi.buffer),ce.vertexAttribPointer(Pa,ai,ea,Ai,pi,qn),dr.type=ea,dr.size=ai,dr.buffer=wi,dr.normalized=Ai,dr.offset=qn,dr.stride=pi),dr.divisor!==Fn&&(ui.vertexAttribDivisorANGLE(Pa,Fn),dr.divisor=Fn)):(dr.buffer&&(ce.disableVertexAttribArray(Pa),dr.buffer=null),(dr.x!==Kn||dr.y!==hn||dr.z!==Ta||dr.w!==tn)&&(ce.vertexAttrib4f(Pa,Kn,hn,Ta,tn),dr.x=Kn,dr.y=hn,dr.z=Ta,dr.w=tn)),Zi=Cr.positionBuffer,jt.buffer=Zi,Vi=!1,pa=1,Na=0,an=0,wn=0,Ra=0,ei=null,Yn=0,Ja=!1,ja=5126,ka=0,ki=0,pn=0,ze(jt)?(Vi=!0,ei=xe.createStream(34962,jt),ja=ei.dtype):(ei=xe.getBuffer(jt),ei?ja=ei.dtype:"constant"in jt?(pa=2,typeof jt.constant=="number"?(Na=jt.constant,an=wn=Ra=0):(Na=jt.constant.length>0?jt.constant[0]:0,an=jt.constant.length>1?jt.constant[1]:0,wn=jt.constant.length>2?jt.constant[2]:0,Ra=jt.constant.length>3?jt.constant[3]:0)):(ze(jt.buffer)?ei=xe.createStream(34962,jt.buffer):ei=xe.getBuffer(jt.buffer),ja="type"in jt?wr[jt.type]:ei.dtype,Ja=!!jt.normalized,Yn=jt.size|0,ka=jt.offset|0,ki=jt.stride|0,pn=jt.divisor|0)),Va=f.location,Gi=Qe[Va],pa===1?(Gi.buffer||ce.enableVertexAttribArray(Va),Pr=Yn||2,(Gi.type!==ja||Gi.size!==Pr||Gi.buffer!==ei||Gi.normalized!==Ja||Gi.offset!==ka||Gi.stride!==ki)&&(ce.bindBuffer(34962,ei.buffer),ce.vertexAttribPointer(Va,Pr,ja,Ja,ki,ka),Gi.type=ja,Gi.size=Pr,Gi.buffer=ei,Gi.normalized=Ja,Gi.offset=ka,Gi.stride=ki),Gi.divisor!==pn&&(ui.vertexAttribDivisorANGLE(Va,pn),Gi.divisor=pn)):(Gi.buffer&&(ce.disableVertexAttribArray(Va),Gi.buffer=null),(Gi.x!==Na||Gi.y!==an||Gi.z!==wn||Gi.w!==Ra)&&(ce.vertexAttrib4f(Va,Na,an,wn,Ra),Gi.x=Na,Gi.y=an,Gi.z=wn,Gi.w=Ra)),ri=Cr.positionFractBuffer,Ur.buffer=ri,bn=!1,Ri=1,vi=0,yr=0,Ti=0,Cn=0,Gr=null,Xn=0,nn=!1,ta=5126,Bi=0,On=0,Nn=0,ze(Ur)?(bn=!0,Gr=xe.createStream(34962,Ur),ta=Gr.dtype):(Gr=xe.getBuffer(Ur),Gr?ta=Gr.dtype:"constant"in Ur?(Ri=2,typeof Ur.constant=="number"?(vi=Ur.constant,yr=Ti=Cn=0):(vi=Ur.constant.length>0?Ur.constant[0]:0,yr=Ur.constant.length>1?Ur.constant[1]:0,Ti=Ur.constant.length>2?Ur.constant[2]:0,Cn=Ur.constant.length>3?Ur.constant[3]:0)):(ze(Ur.buffer)?Gr=xe.createStream(34962,Ur.buffer):Gr=xe.getBuffer(Ur.buffer),ta="type"in Ur?wr[Ur.type]:Gr.dtype,nn=!!Ur.normalized,Xn=Ur.size|0,Bi=Ur.offset|0,On=Ur.stride|0,Nn=Ur.divisor|0)),ia=c.location,Jr=Qe[ia],Ri===1?(Jr.buffer||ce.enableVertexAttribArray(ia),Ci=Xn||2,(Jr.type!==ta||Jr.size!==Ci||Jr.buffer!==Gr||Jr.normalized!==nn||Jr.offset!==Bi||Jr.stride!==On)&&(ce.bindBuffer(34962,Gr.buffer),ce.vertexAttribPointer(ia,Ci,ta,nn,On,Bi),Jr.type=ta,Jr.size=Ci,Jr.buffer=Gr,Jr.normalized=nn,Jr.offset=Bi,Jr.stride=On),Jr.divisor!==Nn&&(ui.vertexAttribDivisorANGLE(ia,Nn),Jr.divisor=Nn)):(Jr.buffer&&(ce.disableVertexAttribArray(ia),Jr.buffer=null),(Jr.x!==vi||Jr.y!==yr||Jr.z!==Ti||Jr.w!==Cn)&&(ce.vertexAttrib4f(ia,vi,yr,Ti,Cn),Jr.x=vi,Jr.y=yr,Jr.z=Ti,Jr.w=Cn)),un=Cr.colorBuffer,Sr.buffer=un,Dn=!1,Vn=1,vn=0,Br=0,Li=0,Ua=0,yi=null,Ma=0,Ba=!1,Bn=5126,Hi=0,yn=0,jn=0,ze(Sr)?(Dn=!0,yi=xe.createStream(34962,Sr),Bn=yi.dtype):(yi=xe.getBuffer(Sr),yi?Bn=yi.dtype:"constant"in Sr?(Vn=2,typeof Sr.constant=="number"?(vn=Sr.constant,Br=Li=Ua=0):(vn=Sr.constant.length>0?Sr.constant[0]:0,Br=Sr.constant.length>1?Sr.constant[1]:0,Li=Sr.constant.length>2?Sr.constant[2]:0,Ua=Sr.constant.length>3?Sr.constant[3]:0)):(ze(Sr.buffer)?yi=xe.createStream(34962,Sr.buffer):yi=xe.getBuffer(Sr.buffer),Bn="type"in Sr?wr[Sr.type]:yi.dtype,Ba=!!Sr.normalized,Ma=Sr.size|0,Hi=Sr.offset|0,yn=Sr.stride|0,jn=Sr.divisor|0)),Un=h.location,zi=Qe[Un],Vn===1?(zi.buffer||ce.enableVertexAttribArray(Un),xr=Ma||4,(zi.type!==Bn||zi.size!==xr||zi.buffer!==yi||zi.normalized!==Ba||zi.offset!==Hi||zi.stride!==yn)&&(ce.bindBuffer(34962,yi.buffer),ce.vertexAttribPointer(Un,xr,Bn,Ba,yn,Hi),zi.type=Bn,zi.size=xr,zi.buffer=yi,zi.normalized=Ba,zi.offset=Hi,zi.stride=yn),zi.divisor!==jn&&(ui.vertexAttribDivisorANGLE(Un,jn),zi.divisor=jn)):(zi.buffer&&(ce.disableVertexAttribArray(Un),zi.buffer=null),(zi.x!==vn||zi.y!==Br||zi.z!==Li||zi.w!==Ua)&&(ce.vertexAttrib4f(Un,vn,Br,Li,Ua),zi.x=vn,zi.y=Br,zi.z=Li,zi.w=Ua)),Ln=p.location,xn=Qe[Ln],xn.buffer||ce.enableVertexAttribArray(Ln),(xn.type!==5126||xn.size!==1||xn.buffer!==d||xn.normalized!==!1||xn.offset!==0||xn.stride!==8)&&(ce.bindBuffer(34962,d.buffer),ce.vertexAttribPointer(Ln,1,5126,!1,8,0),xn.type=5126,xn.size=1,xn.buffer=d,xn.normalized=!1,xn.offset=0,xn.stride=8),xn.divisor!==0&&(ui.vertexAttribDivisorANGLE(Ln,0),xn.divisor=0),da=v.location,Mi=Qe[da],Mi.buffer||ce.enableVertexAttribArray(da),(Mi.type!==5126||Mi.size!==1||Mi.buffer!==d||Mi.normalized!==!1||Mi.offset!==4||Mi.stride!==8)&&(ce.bindBuffer(34962,d.buffer),ce.vertexAttribPointer(da,1,5126,!1,8,4),Mi.type=5126,Mi.size=1,Mi.buffer=d,Mi.normalized=!1,Mi.offset=4,Mi.stride=8),Mi.divisor!==0&&(ui.vertexAttribDivisorANGLE(da,0),Mi.divisor=0),Xr=Cr.dashLength,ce.uniform1f(y.location,Xr),Gn=Cr.dashTexture,Gn&&Gn._reglType==="framebuffer"&&(Gn=Gn.color[0]),to=Gn._texture,ce.uniform1i(m.location,to.bind()),Jn=Cr.depth,ce.uniform1f(w.location,Jn),ro=Cr.opacity,ce.uniform1f(_.location,ro),mo=Cr.scale,Oa=mo[0],Si=mo[1],ce.uniform2f(b.location,Oa,Si),co=Cr.scaleFract,Pn=co[0],Fa=co[1],ce.uniform2f(M.location,Pn,Fa),oa=Cr.thickness,ce.uniform1f(x.location,oa),Hn=Cr.translate,va=Hn[0],ma=Hn[1],ce.uniform2f(A.location,va,ma),Sa=Cr.translateFract,Ei=Sa[0],jr=Sa[1],ce.uniform2f(T.location,Ei,jr),An=E.call(this,Be,Cr,0),Za=An[0],Ga=An[1],Ca=An[2],za=An[3],ce.uniform4f(g.location,Za,Ga,Ca,za),Wn=nt.elements,Wn?ce.bindBuffer(34963,Wn.buffer.buffer):Pe.currentVAO&&(Wn=Ue.getElements(Pe.currentVAO.elements),Wn&&ce.bindBuffer(34963,Wn.buffer.buffer)),Xi=Cr.count,Xi>0?Wn?ui.drawElementsInstancedANGLE(5,4,Wn.type,0<<(Wn.type-5121>>1),Xi):ui.drawArraysInstancedANGLE(5,0,4,Xi):Xi<0&&(Wn?ce.drawElements(5,4,Wn.type,0<<(Wn.type-5121>>1)):ce.drawArrays(5,0,4)),it.dirty=!0,Pe.setVAO(null),Be.viewportWidth=et,Be.viewportHeight=gt,Nr&&(r.cpuTime+=performance.now()-gi),Ui&&xe.destroyStream(Fr),sn&&xe.destroyStream(wi),Vi&&xe.destroyStream(ei),bn&&xe.destroyStream(Gr),Dn&&xe.destroyStream(yi),to.unbind()},scope:function(Cr,di,Fi){var ir,Kt,Me,Xe,Ye,et,gt,bt,lr,Ct,ur,Ir,Rr,Nr,gi,ui,Qr,Ui,ln,Tt,_i,kn,ti,Fr,ji,na,mn,$n,Wi,Qi,_r,Yr,fi,aa,sn,ca,Kn,hn,Ta,tn,wi,rn,Ai,ea,qn,pi,Fn,Pa,dr,ai,Zi,Vi,pa,Na,an,wn,Ra,ei,Yn,Ja,ja,ka,ki,pn,Va,Gi,Pr,ri,bn,Ri,vi,yr,Ti,Cn,Gr,Xn,nn,ta,Bi,On,Nn,ia,Jr,Ci,un,Dn,Vn,vn,Br,Li,Ua,yi,Ma,Ba,Bn,Hi,yn,jn,Un,zi,xr,Ln,xn,da,Mi,Xr,Gn,to,Jn,ro,mo,Oa,Si,co,Pn,Fa,oa,Hn,va,ma,Sa,Ei,jr,An,Za,Ga,Ca,za,Wn,Xi,sa,Mo,ya,Qn,Tn,Da,zn,Ia,$i,In,qi,la,ga,go,eo,So,Mn,Ao,Ya,Co,Ii,qa,Zn,Ha,Wa,$a,Fe,Ge,ot,rt,mt,It,Bt,Ot,nr,zr,Wt,Rt,er,kr,Vr,ii,ci,li,mi,xi,Oi,ua,xa,ao,ho,Fo,ls,Io,Ps,xs,us,Ni,io,Eo,oo,xo,bo,so,Yo,Uo,es,jo,Qo,Ks,js,Ds,_s,as,Es,To,Go,qs,Ts,Dl,_l,wl,vl,Al,ml,Hl,Tl,yl,ae,fe,Te,ke,Ne,Oe,He,ct;ir=Cr.viewport,Kt=ir.x|0,Me=ir.y|0,Xe="width"in ir?ir.width|0:Be.framebufferWidth-Kt,Ye="height"in ir?ir.height|0:Be.framebufferHeight-Me,et=Be.viewportWidth,Be.viewportWidth=Xe,gt=Be.viewportHeight,Be.viewportHeight=Ye,bt=Kr[0],Kr[0]=Kt,lr=Kr[1],Kr[1]=Me,Ct=Kr[2],Kr[2]=Xe,ur=Kr[3],Kr[3]=Ye,Ir=st[0],st[0]=S,Rr=st[1],st[1]=C,Nr=st[2],st[2]=k,gi=st[3],st[3]=D,ui=Ze.blend_enable,Ze.blend_enable=L,Qr=wt[0],wt[0]=P,Ui=wt[1],wt[1]=I,ln=Vt[0],Vt[0]=F,Tt=Vt[1],Vt[1]=z,_i=Vt[2],Vt[2]=B,kn=Vt[3],Vt[3]=O,ti=n.call(this,Be,Cr,Fi),Fr=Ze.depth_enable,Ze.depth_enable=ti,ji=Cr.viewport,na=ji.x|0,mn=ji.y|0,$n="width"in ji?ji.width|0:Be.framebufferWidth-na,Wi="height"in ji?ji.height|0:Be.framebufferHeight-mn,Qi=hr[0],hr[0]=na,_r=hr[1],hr[1]=mn,Yr=hr[2],hr[2]=$n,fi=hr[3],hr[3]=Wi,aa=Ze.scissor_enable,Ze.scissor_enable=W,sn=Ze.stencil_enable,Ze.stencil_enable=X,ca=it.profile,ca&&(Kn=performance.now(),r.count++),hn=nt.offset,nt.offset=Z,Ta=nt.count,nt.count=j,tn=Cr.count,wi=nt.instances,nt.instances=tn,rn=nt.primitive,nt.primitive=q,Ai=Q.call(this,Be,Cr,Fi),ea=De[N],De[N]=Ai,qn=Cr.miterLimit,pi=De[V],De[V]=qn,Fn=Cr.scale,Pa=De[J],De[J]=Fn,dr=Cr.scaleFract,ai=De[H],De[H]=dr,Zi=Cr.translateFract,Vi=De[$],De[$]=Zi,pa=Cr.translate,Na=De[te],De[te]=pa,an=Cr.thickness,wn=De[ie],De[ie]=an,Ra=Cr.dashTexture,ei=De[de],De[de]=Ra,Yn=Cr.opacity,Ja=De[ge],De[ge]=Yn,ja=Be.pixelRatio,ka=De[Ie],De[Ie]=ja,ki=Cr.id,pn=De[Ce],De[Ce]=ki,Va=Cr.dashLength,Gi=De[le],De[le]=Va,Pr=E.call(this,Be,Cr,Fi),ri=De[re],De[re]=Pr,bn=Cr.depth,Ri=De[Ee],De[Ee]=bn,vi=we.state,we.state=1,yr=we.x,we.x=0,Ti=we.y,we.y=0,Cn=we.z,we.z=0,Gr=we.w,we.w=0,Xn=we.buffer,we.buffer=d,nn=we.size,we.size=0,ta=we.normalized,we.normalized=!1,Bi=we.type,we.type=5126,On=we.offset,we.offset=0,Nn=we.stride,we.stride=8,ia=we.divisor,we.divisor=0,Jr=oe.state,oe.state=1,Ci=oe.x,oe.x=0,un=oe.y,oe.y=0,Dn=oe.z,oe.z=0,Vn=oe.w,oe.w=0,vn=oe.buffer,oe.buffer=d,Br=oe.size,oe.size=0,Li=oe.normalized,oe.normalized=!1,Ua=oe.type,oe.type=5126,yi=oe.offset,oe.offset=4,Ma=oe.stride,oe.stride=8,Ba=oe.divisor,oe.divisor=0,Bn=Cr.positionBuffer,Ut.buffer=Bn,Hi=!1,yn=1,jn=0,Un=0,zi=0,xr=0,Ln=null,xn=0,da=!1,Mi=5126,Xr=0,Gn=0,to=0,ze(Ut)?(Hi=!0,Ln=xe.createStream(34962,Ut),Mi=Ln.dtype):(Ln=xe.getBuffer(Ut),Ln?Mi=Ln.dtype:"constant"in Ut?(yn=2,typeof Ut.constant=="number"?(jn=Ut.constant,Un=zi=xr=0):(jn=Ut.constant.length>0?Ut.constant[0]:0,Un=Ut.constant.length>1?Ut.constant[1]:0,zi=Ut.constant.length>2?Ut.constant[2]:0,xr=Ut.constant.length>3?Ut.constant[3]:0)):(ze(Ut.buffer)?Ln=xe.createStream(34962,Ut.buffer):Ln=xe.getBuffer(Ut.buffer),Mi="type"in Ut?wr[Ut.type]:Ln.dtype,da=!!Ut.normalized,xn=Ut.size|0,Xr=Ut.offset|0,Gn=Ut.stride|0,to=Ut.divisor|0)),Jn=Y.state,Y.state=yn,ro=Y.x,Y.x=jn,mo=Y.y,Y.y=Un,Oa=Y.z,Y.z=zi,Si=Y.w,Y.w=xr,co=Y.buffer,Y.buffer=Ln,Pn=Y.size,Y.size=xn,Fa=Y.normalized,Y.normalized=da,oa=Y.type,Y.type=Mi,Hn=Y.offset,Y.offset=Xr,va=Y.stride,Y.stride=Gn,ma=Y.divisor,Y.divisor=to,Sa=Cr.positionBuffer,jt.buffer=Sa,Ei=!1,jr=1,An=0,Za=0,Ga=0,Ca=0,za=null,Wn=0,Xi=!1,sa=5126,Mo=0,ya=0,Qn=0,ze(jt)?(Ei=!0,za=xe.createStream(34962,jt),sa=za.dtype):(za=xe.getBuffer(jt),za?sa=za.dtype:"constant"in jt?(jr=2,typeof jt.constant=="number"?(An=jt.constant,Za=Ga=Ca=0):(An=jt.constant.length>0?jt.constant[0]:0,Za=jt.constant.length>1?jt.constant[1]:0,Ga=jt.constant.length>2?jt.constant[2]:0,Ca=jt.constant.length>3?jt.constant[3]:0)):(ze(jt.buffer)?za=xe.createStream(34962,jt.buffer):za=xe.getBuffer(jt.buffer),sa="type"in jt?wr[jt.type]:za.dtype,Xi=!!jt.normalized,Wn=jt.size|0,Mo=jt.offset|0,ya=jt.stride|0,Qn=jt.divisor|0)),Tn=ne.state,ne.state=jr,Da=ne.x,ne.x=An,zn=ne.y,ne.y=Za,Ia=ne.z,ne.z=Ga,$i=ne.w,ne.w=Ca,In=ne.buffer,ne.buffer=za,qi=ne.size,ne.size=Wn,la=ne.normalized,ne.normalized=Xi,ga=ne.type,ne.type=sa,go=ne.offset,ne.offset=Mo,eo=ne.stride,ne.stride=ya,So=ne.divisor,ne.divisor=Qn,Mn=Cr.positionFractBuffer,pr.buffer=Mn,Ao=!1,Ya=1,Co=0,Ii=0,qa=0,Zn=0,Ha=null,Wa=0,$a=!1,Fe=5126,Ge=0,ot=0,rt=0,ze(pr)?(Ao=!0,Ha=xe.createStream(34962,pr),Fe=Ha.dtype):(Ha=xe.getBuffer(pr),Ha?Fe=Ha.dtype:"constant"in pr?(Ya=2,typeof pr.constant=="number"?(Co=pr.constant,Ii=qa=Zn=0):(Co=pr.constant.length>0?pr.constant[0]:0,Ii=pr.constant.length>1?pr.constant[1]:0,qa=pr.constant.length>2?pr.constant[2]:0,Zn=pr.constant.length>3?pr.constant[3]:0)):(ze(pr.buffer)?Ha=xe.createStream(34962,pr.buffer):Ha=xe.getBuffer(pr.buffer),Fe="type"in pr?wr[pr.type]:Ha.dtype,$a=!!pr.normalized,Wa=pr.size|0,Ge=pr.offset|0,ot=pr.stride|0,rt=pr.divisor|0)),mt=ye.state,ye.state=Ya,It=ye.x,ye.x=Co,Bt=ye.y,ye.y=Ii,Ot=ye.z,ye.z=qa,nr=ye.w,ye.w=Zn,zr=ye.buffer,ye.buffer=Ha,Wt=ye.size,ye.size=Wa,Rt=ye.normalized,ye.normalized=$a,er=ye.type,ye.type=Fe,kr=ye.offset,ye.offset=Ge,Vr=ye.stride,ye.stride=ot,ii=ye.divisor,ye.divisor=rt,ci=Cr.positionFractBuffer,Ur.buffer=ci,li=!1,mi=1,xi=0,Oi=0,ua=0,xa=0,ao=null,ho=0,Fo=!1,ls=5126,Io=0,Ps=0,xs=0,ze(Ur)?(li=!0,ao=xe.createStream(34962,Ur),ls=ao.dtype):(ao=xe.getBuffer(Ur),ao?ls=ao.dtype:"constant"in Ur?(mi=2,typeof Ur.constant=="number"?(xi=Ur.constant,Oi=ua=xa=0):(xi=Ur.constant.length>0?Ur.constant[0]:0,Oi=Ur.constant.length>1?Ur.constant[1]:0,ua=Ur.constant.length>2?Ur.constant[2]:0,xa=Ur.constant.length>3?Ur.constant[3]:0)):(ze(Ur.buffer)?ao=xe.createStream(34962,Ur.buffer):ao=xe.getBuffer(Ur.buffer),ls="type"in Ur?wr[Ur.type]:ao.dtype,Fo=!!Ur.normalized,ho=Ur.size|0,Io=Ur.offset|0,Ps=Ur.stride|0,xs=Ur.divisor|0)),us=U.state,U.state=mi,Ni=U.x,U.x=xi,io=U.y,U.y=Oi,Eo=U.z,U.z=ua,oo=U.w,U.w=xa,xo=U.buffer,U.buffer=ao,bo=U.size,U.size=ho,so=U.normalized,U.normalized=Fo,Yo=U.type,U.type=ls,Uo=U.offset,U.offset=Io,es=U.stride,U.stride=Ps,jo=U.divisor,U.divisor=xs,Qo=Cr.colorBuffer,Sr.buffer=Qo,Ks=!1,js=1,Ds=0,_s=0,as=0,Es=0,To=null,Go=0,qs=!1,Ts=5126,Dl=0,_l=0,wl=0,ze(Sr)?(Ks=!0,To=xe.createStream(34962,Sr),Ts=To.dtype):(To=xe.getBuffer(Sr),To?Ts=To.dtype:"constant"in Sr?(js=2,typeof Sr.constant=="number"?(Ds=Sr.constant,_s=as=Es=0):(Ds=Sr.constant.length>0?Sr.constant[0]:0,_s=Sr.constant.length>1?Sr.constant[1]:0,as=Sr.constant.length>2?Sr.constant[2]:0,Es=Sr.constant.length>3?Sr.constant[3]:0)):(ze(Sr.buffer)?To=xe.createStream(34962,Sr.buffer):To=xe.getBuffer(Sr.buffer),Ts="type"in Sr?wr[Sr.type]:To.dtype,qs=!!Sr.normalized,Go=Sr.size|0,Dl=Sr.offset|0,_l=Sr.stride|0,wl=Sr.divisor|0)),vl=se.state,se.state=js,Al=se.x,se.x=Ds,ml=se.y,se.y=_s,Hl=se.z,se.z=as,Tl=se.w,se.w=Es,yl=se.buffer,se.buffer=To,ae=se.size,se.size=Go,fe=se.normalized,se.normalized=qs,Te=se.type,se.type=Ts,ke=se.offset,se.offset=Dl,Ne=se.stride,se.stride=_l,Oe=se.divisor,se.divisor=wl,He=Re.vert,Re.vert=Ae,ct=Re.frag,Re.frag=be,it.dirty=!0,di(Be,Cr,Fi),Be.viewportWidth=et,Be.viewportHeight=gt,Kr[0]=bt,Kr[1]=lr,Kr[2]=Ct,Kr[3]=ur,st[0]=Ir,st[1]=Rr,st[2]=Nr,st[3]=gi,Ze.blend_enable=ui,wt[0]=Qr,wt[1]=Ui,Vt[0]=ln,Vt[1]=Tt,Vt[2]=_i,Vt[3]=kn,Ze.depth_enable=Fr,hr[0]=Qi,hr[1]=_r,hr[2]=Yr,hr[3]=fi,Ze.scissor_enable=aa,Ze.stencil_enable=sn,ca&&(r.cpuTime+=performance.now()-Kn),nt.offset=hn,nt.count=Ta,nt.instances=wi,nt.primitive=rn,De[N]=ea,De[V]=pi,De[J]=Pa,De[H]=ai,De[$]=Vi,De[te]=Na,De[ie]=wn,De[de]=ei,De[ge]=Ja,De[Ie]=ka,De[Ce]=pn,De[le]=Gi,De[re]=ri,De[Ee]=Ri,we.state=vi,we.x=yr,we.y=Ti,we.z=Cn,we.w=Gr,we.buffer=Xn,we.size=nn,we.normalized=ta,we.type=Bi,we.offset=On,we.stride=Nn,we.divisor=ia,oe.state=Jr,oe.x=Ci,oe.y=un,oe.z=Dn,oe.w=Vn,oe.buffer=vn,oe.size=Br,oe.normalized=Li,oe.type=Ua,oe.offset=yi,oe.stride=Ma,oe.divisor=Ba,Hi&&xe.destroyStream(Ln),Y.state=Jn,Y.x=ro,Y.y=mo,Y.z=Oa,Y.w=Si,Y.buffer=co,Y.size=Pn,Y.normalized=Fa,Y.type=oa,Y.offset=Hn,Y.stride=va,Y.divisor=ma,Ei&&xe.destroyStream(za),ne.state=Tn,ne.x=Da,ne.y=zn,ne.z=Ia,ne.w=$i,ne.buffer=In,ne.size=qi,ne.normalized=la,ne.type=ga,ne.offset=go,ne.stride=eo,ne.divisor=So,Ao&&xe.destroyStream(Ha),ye.state=mt,ye.x=It,ye.y=Bt,ye.z=Ot,ye.w=nr,ye.buffer=zr,ye.size=Wt,ye.normalized=Rt,ye.type=er,ye.offset=kr,ye.stride=Vr,ye.divisor=ii,li&&xe.destroyStream(ao),U.state=us,U.x=Ni,U.y=io,U.z=Eo,U.w=oo,U.buffer=xo,U.size=bo,U.normalized=so,U.type=Yo,U.offset=Uo,U.stride=es,U.divisor=jo,Ks&&xe.destroyStream(To),se.state=vl,se.x=Al,se.y=ml,se.z=Hl,se.w=Tl,se.buffer=yl,se.size=ae,se.normalized=fe,se.type=Te,se.offset=ke,se.stride=Ne,se.divisor=Oe,Re.vert=He,Re.frag=ct,it.dirty=!0},batch:function(Cr,di){var Fi,ir,Kt,Me,Xe,Ye,et;if(Fi=Le.angle_instanced_arrays,ir=Ve.next,ir!==Ve.cur&&(ir?ce.bindFramebuffer(36160,ir.framebuffer):ce.bindFramebuffer(36160,null),Ve.cur=ir),it.dirty){var gt,bt,lr,Ct,ur,Ir,Rr,Nr,gi,ui,Qr,Ui,ln,Tt,_i,kn,ti,Fr,ji,na,mn,$n,Wi,Qi,_r,Yr,fi,aa,sn,ca,Kn,hn;gt=Ze.dither,gt!==it.dither&&(gt?ce.enable(3024):ce.disable(3024),it.dither=gt),bt=Ze.depth_func,bt!==it.depth_func&&(ce.depthFunc(bt),it.depth_func=bt),lr=yt[0],Ct=yt[1],(lr!==St[0]||Ct!==St[1])&&(ce.depthRange(lr,Ct),St[0]=lr,St[1]=Ct),ur=Ze.depth_mask,ur!==it.depth_mask&&(ce.depthMask(ur),it.depth_mask=ur),Ir=rr[0],Rr=rr[1],Nr=rr[2],gi=rr[3],(Ir!==Ke[0]||Rr!==Ke[1]||Nr!==Ke[2]||gi!==Ke[3])&&(ce.colorMask(Ir,Rr,Nr,gi),Ke[0]=Ir,Ke[1]=Rr,Ke[2]=Nr,Ke[3]=gi),ui=Ze.cull_enable,ui!==it.cull_enable&&(ui?ce.enable(2884):ce.disable(2884),it.cull_enable=ui),Qr=Ze.cull_face,Qr!==it.cull_face&&(ce.cullFace(Qr),it.cull_face=Qr),Ui=Ze.frontFace,Ui!==it.frontFace&&(ce.frontFace(Ui),it.frontFace=Ui),ln=Ze.lineWidth,ln!==it.lineWidth&&(ce.lineWidth(ln),it.lineWidth=ln),Tt=Ze.polygonOffset_enable,Tt!==it.polygonOffset_enable&&(Tt?ce.enable(32823):ce.disable(32823),it.polygonOffset_enable=Tt),_i=at[0],kn=at[1],(_i!==lt[0]||kn!==lt[1])&&(ce.polygonOffset(_i,kn),lt[0]=_i,lt[1]=kn),ti=Ze.sample_alpha,ti!==it.sample_alpha&&(ti?ce.enable(32926):ce.disable(32926),it.sample_alpha=ti),Fr=Ze.sample_enable,Fr!==it.sample_enable&&(Fr?ce.enable(32928):ce.disable(32928),it.sample_enable=Fr),ji=vt[0],na=vt[1],(ji!==We[0]||na!==We[1])&&(ce.sampleCoverage(ji,na),We[0]=ji,We[1]=na),mn=Ze.stencil_mask,mn!==it.stencil_mask&&(ce.stencilMask(mn),it.stencil_mask=mn),$n=ut[0],Wi=ut[1],Qi=ut[2],($n!==kt[0]||Wi!==kt[1]||Qi!==kt[2])&&(ce.stencilFunc($n,Wi,Qi),kt[0]=$n,kt[1]=Wi,kt[2]=Qi),_r=$t[0],Yr=$t[1],fi=$t[2],aa=$t[3],(_r!==or[0]||Yr!==or[1]||fi!==or[2]||aa!==or[3])&&(ce.stencilOpSeparate(_r,Yr,fi,aa),or[0]=_r,or[1]=Yr,or[2]=fi,or[3]=aa),sn=Lr[0],ca=Lr[1],Kn=Lr[2],hn=Lr[3],(sn!==Er[0]||ca!==Er[1]||Kn!==Er[2]||hn!==Er[3])&&(ce.stencilOpSeparate(sn,ca,Kn,hn),Er[0]=sn,Er[1]=ca,Er[2]=Kn,Er[3]=hn)}ce.blendColor(0,0,0,0),ft[0]=0,ft[1]=0,ft[2]=0,ft[3]=0,me?ce.enable(3042):ce.disable(3042),it.blend_enable=me,ce.blendEquationSeparate(32774,32774),At[0]=32774,At[1]=32774,ce.blendFuncSeparate(770,771,773,1),Dt[0]=770,Dt[1]=771,Dt[2]=773,Dt[3]=1,ue?ce.enable(3089):ce.disable(3089),it.scissor_enable=ue,pe?ce.enable(2960):ce.disable(2960),it.stencil_enable=pe,Kt=it.profile,Kt&&(Me=performance.now(),r.count+=di),ce.useProgram(s.program),Xe=Le.angle_instanced_arrays;var Ta,tn,wi,rn,Ai;for(Pe.setVAO(null),Ta=p.location,tn=Qe[Ta],tn.buffer||ce.enableVertexAttribArray(Ta),(tn.type!==5126||tn.size!==1||tn.buffer!==d||tn.normalized!==!1||tn.offset!==0||tn.stride!==8)&&(ce.bindBuffer(34962,d.buffer),ce.vertexAttribPointer(Ta,1,5126,!1,8,0),tn.type=5126,tn.size=1,tn.buffer=d,tn.normalized=!1,tn.offset=0,tn.stride=8),tn.divisor!==0&&(Xe.vertexAttribDivisorANGLE(Ta,0),tn.divisor=0),wi=v.location,rn=Qe[wi],rn.buffer||ce.enableVertexAttribArray(wi),(rn.type!==5126||rn.size!==1||rn.buffer!==d||rn.normalized!==!1||rn.offset!==4||rn.stride!==8)&&(ce.bindBuffer(34962,d.buffer),ce.vertexAttribPointer(wi,1,5126,!1,8,4),rn.type=5126,rn.size=1,rn.buffer=d,rn.normalized=!1,rn.offset=4,rn.stride=8),rn.divisor!==0&&(Xe.vertexAttribDivisorANGLE(wi,0),rn.divisor=0),Ai=nt.elements,Ai?ce.bindBuffer(34963,Ai.buffer.buffer):Pe.currentVAO&&(Ai=Ue.getElements(Pe.currentVAO.elements),Ai&&ce.bindBuffer(34963,Ai.buffer.buffer)),Ye=0;Ye0?Ut.constant[0]:0,ja=Ut.constant.length>1?Ut.constant[1]:0,ka=Ut.constant.length>2?Ut.constant[2]:0,ki=Ut.constant.length>3?Ut.constant[3]:0)):(ze(Ut.buffer)?pn=xe.createStream(34962,Ut.buffer):pn=xe.getBuffer(Ut.buffer),Pr="type"in Ut?wr[Ut.type]:pn.dtype,Gi=!!Ut.normalized,Va=Ut.size|0,ri=Ut.offset|0,bn=Ut.stride|0,Ri=Ut.divisor|0)),vi=l.location,yr=Qe[vi],Yn===1?(yr.buffer||ce.enableVertexAttribArray(vi),Ti=Va||2,(yr.type!==Pr||yr.size!==Ti||yr.buffer!==pn||yr.normalized!==Gi||yr.offset!==ri||yr.stride!==bn)&&(ce.bindBuffer(34962,pn.buffer),ce.vertexAttribPointer(vi,Ti,Pr,Gi,bn,ri),yr.type=Pr,yr.size=Ti,yr.buffer=pn,yr.normalized=Gi,yr.offset=ri,yr.stride=bn),yr.divisor!==Ri&&(Xe.vertexAttribDivisorANGLE(vi,Ri),yr.divisor=Ri)):(yr.buffer&&(ce.disableVertexAttribArray(vi),yr.buffer=null),(yr.x!==Ja||yr.y!==ja||yr.z!==ka||yr.w!==ki)&&(ce.vertexAttrib4f(vi,Ja,ja,ka,ki),yr.x=Ja,yr.y=ja,yr.z=ka,yr.w=ki)),Cn=et.positionFractBuffer,pr.buffer=Cn,Gr=!1,Xn=1,nn=0,ta=0,Bi=0,On=0,Nn=null,ia=0,Jr=!1,Ci=5126,un=0,Dn=0,Vn=0,ze(pr)?(Gr=!0,Nn=xe.createStream(34962,pr),Ci=Nn.dtype):(Nn=xe.getBuffer(pr),Nn?Ci=Nn.dtype:"constant"in pr?(Xn=2,typeof pr.constant=="number"?(nn=pr.constant,ta=Bi=On=0):(nn=pr.constant.length>0?pr.constant[0]:0,ta=pr.constant.length>1?pr.constant[1]:0,Bi=pr.constant.length>2?pr.constant[2]:0,On=pr.constant.length>3?pr.constant[3]:0)):(ze(pr.buffer)?Nn=xe.createStream(34962,pr.buffer):Nn=xe.getBuffer(pr.buffer),Ci="type"in pr?wr[pr.type]:Nn.dtype,Jr=!!pr.normalized,ia=pr.size|0,un=pr.offset|0,Dn=pr.stride|0,Vn=pr.divisor|0)),vn=u.location,Br=Qe[vn],Xn===1?(Br.buffer||ce.enableVertexAttribArray(vn),Li=ia||2,(Br.type!==Ci||Br.size!==Li||Br.buffer!==Nn||Br.normalized!==Jr||Br.offset!==un||Br.stride!==Dn)&&(ce.bindBuffer(34962,Nn.buffer),ce.vertexAttribPointer(vn,Li,Ci,Jr,Dn,un),Br.type=Ci,Br.size=Li,Br.buffer=Nn,Br.normalized=Jr,Br.offset=un,Br.stride=Dn),Br.divisor!==Vn&&(Xe.vertexAttribDivisorANGLE(vn,Vn),Br.divisor=Vn)):(Br.buffer&&(ce.disableVertexAttribArray(vn),Br.buffer=null),(Br.x!==nn||Br.y!==ta||Br.z!==Bi||Br.w!==On)&&(ce.vertexAttrib4f(vn,nn,ta,Bi,On),Br.x=nn,Br.y=ta,Br.z=Bi,Br.w=On)),Ua=et.positionBuffer,jt.buffer=Ua,yi=!1,Ma=1,Ba=0,Bn=0,Hi=0,yn=0,jn=null,Un=0,zi=!1,xr=5126,Ln=0,xn=0,da=0,ze(jt)?(yi=!0,jn=xe.createStream(34962,jt),xr=jn.dtype):(jn=xe.getBuffer(jt),jn?xr=jn.dtype:"constant"in jt?(Ma=2,typeof jt.constant=="number"?(Ba=jt.constant,Bn=Hi=yn=0):(Ba=jt.constant.length>0?jt.constant[0]:0,Bn=jt.constant.length>1?jt.constant[1]:0,Hi=jt.constant.length>2?jt.constant[2]:0,yn=jt.constant.length>3?jt.constant[3]:0)):(ze(jt.buffer)?jn=xe.createStream(34962,jt.buffer):jn=xe.getBuffer(jt.buffer),xr="type"in jt?wr[jt.type]:jn.dtype,zi=!!jt.normalized,Un=jt.size|0,Ln=jt.offset|0,xn=jt.stride|0,da=jt.divisor|0)),Mi=f.location,Xr=Qe[Mi],Ma===1?(Xr.buffer||ce.enableVertexAttribArray(Mi),Gn=Un||2,(Xr.type!==xr||Xr.size!==Gn||Xr.buffer!==jn||Xr.normalized!==zi||Xr.offset!==Ln||Xr.stride!==xn)&&(ce.bindBuffer(34962,jn.buffer),ce.vertexAttribPointer(Mi,Gn,xr,zi,xn,Ln),Xr.type=xr,Xr.size=Gn,Xr.buffer=jn,Xr.normalized=zi,Xr.offset=Ln,Xr.stride=xn),Xr.divisor!==da&&(Xe.vertexAttribDivisorANGLE(Mi,da),Xr.divisor=da)):(Xr.buffer&&(ce.disableVertexAttribArray(Mi),Xr.buffer=null),(Xr.x!==Ba||Xr.y!==Bn||Xr.z!==Hi||Xr.w!==yn)&&(ce.vertexAttrib4f(Mi,Ba,Bn,Hi,yn),Xr.x=Ba,Xr.y=Bn,Xr.z=Hi,Xr.w=yn)),to=et.positionFractBuffer,Ur.buffer=to,Jn=!1,ro=1,mo=0,Oa=0,Si=0,co=0,Pn=null,Fa=0,oa=!1,Hn=5126,va=0,ma=0,Sa=0,ze(Ur)?(Jn=!0,Pn=xe.createStream(34962,Ur),Hn=Pn.dtype):(Pn=xe.getBuffer(Ur),Pn?Hn=Pn.dtype:"constant"in Ur?(ro=2,typeof Ur.constant=="number"?(mo=Ur.constant,Oa=Si=co=0):(mo=Ur.constant.length>0?Ur.constant[0]:0,Oa=Ur.constant.length>1?Ur.constant[1]:0,Si=Ur.constant.length>2?Ur.constant[2]:0,co=Ur.constant.length>3?Ur.constant[3]:0)):(ze(Ur.buffer)?Pn=xe.createStream(34962,Ur.buffer):Pn=xe.getBuffer(Ur.buffer),Hn="type"in Ur?wr[Ur.type]:Pn.dtype,oa=!!Ur.normalized,Fa=Ur.size|0,va=Ur.offset|0,ma=Ur.stride|0,Sa=Ur.divisor|0)),Ei=c.location,jr=Qe[Ei],ro===1?(jr.buffer||ce.enableVertexAttribArray(Ei),An=Fa||2,(jr.type!==Hn||jr.size!==An||jr.buffer!==Pn||jr.normalized!==oa||jr.offset!==va||jr.stride!==ma)&&(ce.bindBuffer(34962,Pn.buffer),ce.vertexAttribPointer(Ei,An,Hn,oa,ma,va),jr.type=Hn,jr.size=An,jr.buffer=Pn,jr.normalized=oa,jr.offset=va,jr.stride=ma),jr.divisor!==Sa&&(Xe.vertexAttribDivisorANGLE(Ei,Sa),jr.divisor=Sa)):(jr.buffer&&(ce.disableVertexAttribArray(Ei),jr.buffer=null),(jr.x!==mo||jr.y!==Oa||jr.z!==Si||jr.w!==co)&&(ce.vertexAttrib4f(Ei,mo,Oa,Si,co),jr.x=mo,jr.y=Oa,jr.z=Si,jr.w=co)),Za=et.colorBuffer,Sr.buffer=Za,Ga=!1,Ca=1,za=0,Wn=0,Xi=0,sa=0,Mo=null,ya=0,Qn=!1,Tn=5126,Da=0,zn=0,Ia=0,ze(Sr)?(Ga=!0,Mo=xe.createStream(34962,Sr),Tn=Mo.dtype):(Mo=xe.getBuffer(Sr),Mo?Tn=Mo.dtype:"constant"in Sr?(Ca=2,typeof Sr.constant=="number"?(za=Sr.constant,Wn=Xi=sa=0):(za=Sr.constant.length>0?Sr.constant[0]:0,Wn=Sr.constant.length>1?Sr.constant[1]:0,Xi=Sr.constant.length>2?Sr.constant[2]:0,sa=Sr.constant.length>3?Sr.constant[3]:0)):(ze(Sr.buffer)?Mo=xe.createStream(34962,Sr.buffer):Mo=xe.getBuffer(Sr.buffer),Tn="type"in Sr?wr[Sr.type]:Mo.dtype,Qn=!!Sr.normalized,ya=Sr.size|0,Da=Sr.offset|0,zn=Sr.stride|0,Ia=Sr.divisor|0)),$i=h.location,In=Qe[$i],Ca===1?(In.buffer||ce.enableVertexAttribArray($i),qi=ya||4,(In.type!==Tn||In.size!==qi||In.buffer!==Mo||In.normalized!==Qn||In.offset!==Da||In.stride!==zn)&&(ce.bindBuffer(34962,Mo.buffer),ce.vertexAttribPointer($i,qi,Tn,Qn,zn,Da),In.type=Tn,In.size=qi,In.buffer=Mo,In.normalized=Qn,In.offset=Da,In.stride=zn),In.divisor!==Ia&&(Xe.vertexAttribDivisorANGLE($i,Ia),In.divisor=Ia)):(In.buffer&&(ce.disableVertexAttribArray($i),In.buffer=null),(In.x!==za||In.y!==Wn||In.z!==Xi||In.w!==sa)&&(ce.vertexAttrib4f($i,za,Wn,Xi,sa),In.x=za,In.y=Wn,In.z=Xi,In.w=sa)),la=et.dashLength,(!Ye||ga!==la)&&(ga=la,ce.uniform1f(y.location,la)),go=et.dashTexture,go&&go._reglType==="framebuffer"&&(go=go.color[0]),eo=go._texture,ce.uniform1i(m.location,eo.bind()),So=et.depth,(!Ye||Mn!==So)&&(Mn=So,ce.uniform1f(w.location,So)),Ao=et.opacity,(!Ye||Ya!==Ao)&&(Ya=Ao,ce.uniform1f(_.location,Ao)),Co=et.scale,Ii=Co[0],Zn=Co[1],(!Ye||qa!==Ii||Ha!==Zn)&&(qa=Ii,Ha=Zn,ce.uniform2f(b.location,Ii,Zn)),Wa=et.scaleFract,$a=Wa[0],Ge=Wa[1],(!Ye||Fe!==$a||ot!==Ge)&&(Fe=$a,ot=Ge,ce.uniform2f(M.location,$a,Ge)),rt=et.thickness,(!Ye||mt!==rt)&&(mt=rt,ce.uniform1f(x.location,rt)),It=et.translate,Bt=It[0],nr=It[1],(!Ye||Ot!==Bt||zr!==nr)&&(Ot=Bt,zr=nr,ce.uniform2f(A.location,Bt,nr)),Wt=et.translateFract,Rt=Wt[0],kr=Wt[1],(!Ye||er!==Rt||Vr!==kr)&&(er=Rt,Vr=kr,ce.uniform2f(T.location,Rt,kr)),ii=E.call(this,Be,et,Ye),ci=ii[0],mi=ii[1],Oi=ii[2],xa=ii[3],(!Ye||li!==ci||xi!==mi||ua!==Oi||ao!==xa)&&(li=ci,xi=mi,ua=Oi,ao=xa,ce.uniform4f(g.location,ci,mi,Oi,xa)),ho=et.count,ho>0?Ai?Xe.drawElementsInstancedANGLE(5,4,Ai.type,0<<(Ai.type-5121>>1),ho):Xe.drawArraysInstancedANGLE(5,0,4,ho):ho<0&&(Ai?ce.drawElements(5,4,Ai.type,0<<(Ai.type-5121>>1)):ce.drawArrays(5,0,4)),Be.viewportWidth=dr,Be.viewportHeight=ai,ei&&xe.destroyStream(pn),Gr&&xe.destroyStream(Nn),yi&&xe.destroyStream(jn),Jn&&xe.destroyStream(Pn),Ga&&xe.destroyStream(Mo),eo.unbind()}it.dirty=!0,Pe.setVAO(null),Kt&&(r.cpuTime+=performance.now()-Me)}}}});var Hte=K((Uri,DZe)=>{"use strict";var Uvr=wB(),Gvr=AB(),Hvr=TB(),jvr=MB(),Wvr=SB(),$vr=EB(),Yvr=kB(),Xvr=CB(),Zvr=DB(),Kvr=FB();DZe.exports={"3e771157d23b4793771f65d83e6387262ed73d488209157f19a7fa027bddd71b":Uvr,"49e82bba439f1d9d441c17ba252d05640bc63fefdf22d1219993633af7730210":Gvr,"6a5d6bd29c15cf7614221b94c3f384df47c2c46fbe4456e8c57b5cd14c84d923":Hvr,"8902aff2b23b600f8103bcc84a8af2999d28795208aedadc2db06f921f9c7034":jvr,"8fad2284703471df7c0e0d0a7b96d983e8c53f6d707dd55d5921c1eab71f6623":Wvr,bfc540da96a87fcc039073cb37b45e6b81ef5ee6ef3529d726ceed8336354019:$vr,cbf700f001fff25b649fba9c37fa0dc6631c1cdee318ad49473d28ec10dcee81:Yvr,db1b82c68771e7f5012fad1fbdae7ff23b526e58d2995bf6dd2cf30024e0f41d:Xvr,dbd1cc9126a137a605df67dc0706e55116f04e33b4545a80042031752de5aef5:Zvr,fe5b6844077cde1bdd7273f4495969fad93500c26a69b62e74ec2664c447bcc7:Kvr}});var PZe=K((Gri,LZe)=>{"use strict";var FZe=Gte(),Jvr=Hte();Object.assign(FZe.reglPrecompiled,Jvr);LZe.exports=FZe});var RZe=K((Hri,IZe)=>{"use strict";var zZe=zje();zZe.plot=PZe();IZe.exports=zZe});var jte=K((jri,NZe)=>{"use strict";var Qvr=Zf(),OZe=Wu(),BZe=zf().axisHoverFormat,{hovertemplateAttrs:e1r,templatefallbackAttrs:t1r}=yu(),ok=OE(),r1r=(Uc(),ar(Vc)).idRegex,i1r=fu().templatedArray,f5=Os().extendFlat,Vy=Qvr.marker,n1r=Vy.line,a1r=f5(OZe("marker.line",{editTypeOverride:"calc"}),{width:f5({},n1r.width,{editType:"calc"}),editType:"calc"}),LB=f5(OZe("marker"),{symbol:Vy.symbol,angle:Vy.angle,size:f5({},Vy.size,{editType:"markerSize"}),sizeref:Vy.sizeref,sizemin:Vy.sizemin,sizemode:Vy.sizemode,opacity:Vy.opacity,colorbar:Vy.colorbar,line:a1r,editType:"calc"});LB.color.editType=LB.cmin.editType=LB.cmax.editType="style";function qZe(e){return{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"subplotid",regex:r1r[e],editType:"plot"}}}NZe.exports={dimensions:i1r("dimension",{visible:{valType:"boolean",dflt:!0,editType:"calc"},label:{valType:"string",editType:"calc"},values:{valType:"data_array",editType:"calc+clearAxisTypes"},axis:{type:{valType:"enumerated",values:["linear","log","date","category"],editType:"calc+clearAxisTypes"},matches:{valType:"boolean",dflt:!0,editType:"calc"},editType:"calc+clearAxisTypes"},editType:"calc+clearAxisTypes"}),text:f5({},ok.text,{}),hovertext:f5({},ok.hovertext,{}),hovertemplate:e1r(),hovertemplatefallback:t1r(),xhoverformat:BZe("x"),yhoverformat:BZe("y"),marker:LB,xaxes:qZe("x"),yaxes:qZe("y"),diagonal:{visible:{valType:"boolean",dflt:!0,editType:"calc"},editType:"calc"},showupperhalf:{valType:"boolean",dflt:!0,editType:"calc"},showlowerhalf:{valType:"boolean",dflt:!0,editType:"calc"},selected:{marker:ok.selected.marker,editType:"calc"},unselected:{marker:ok.unselected.marker,editType:"calc"},opacity:ok.opacity}});var PB=K((Wri,VZe)=>{"use strict";VZe.exports=function(e,t,r,i){i||(i=1/0);var n,a;for(n=0;n{"use strict";var Wte=Mt(),o1r=w0(),UZe=jte(),s1r=ff(),l1r=Yp(),u1r=PB(),f1r=OR().isOpenSymbol;GZe.exports=function(t,r,i,n){function a(d,p){return Wte.coerce(t,r,UZe,d,p)}var o=o1r(t,r,{name:"dimensions",handleItemDefaults:c1r}),s=a("diagonal.visible"),l=a("showupperhalf"),u=a("showlowerhalf"),f=u1r(r,o,"values");if(!f||!s&&!l&&!u){r.visible=!1;return}a("text"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback"),a("xhoverformat"),a("yhoverformat"),l1r(t,r,i,n,a,{noAngleRef:!0,noLineDash:!0,noStandOff:!0});var c=f1r(r.marker.symbol),h=s1r.isBubble(r);a("marker.line.width",c||h?1:0),h1r(t,r,n,a),Wte.coerceSelectionMarkerOpacity(r,a)};function c1r(e,t){function r(n,a){return Wte.coerce(e,t,UZe.dimensions,n,a)}r("label");var i=r("values");i&&i.length?r("visible"):t.visible=!1,r("axis.type"),r("axis.matches")}function h1r(e,t,r,i){var n=t.dimensions,a=n.length,o=t.showupperhalf,s=t.showlowerhalf,l=t.diagonal.visible,u,f,c=new Array(a),h=new Array(a);for(u=0;uf&&o||u{"use strict";var jZe=Mt();WZe.exports=function(t,r){var i=t._fullLayout,n=r.uid,a=i._splomScenes;a||(a=i._splomScenes={});var o={dirty:!0,selectBatch:[],unselectBatch:[]},s={matrix:!1,selectBatch:[],unselectBatch:[]},l=a[r.uid];return l||(l=a[n]=jZe.extendFlat({},o,s),l.draw=function(){l.matrix&&l.matrix.draw&&(l.selectBatch.length||l.unselectBatch.length?l.matrix.draw(l.unselectBatch,l.selectBatch):l.matrix.draw()),l.dirty=!1},l.destroy=function(){l.matrix&&l.matrix.destroy&&l.matrix.destroy(),l.matrixOptions=null,l.selectBatch=null,l.unselectBatch=null,l=null}),l.dirty||jZe.extendFlat(l,o),l}});var ZZe=K((Xri,XZe)=>{"use strict";var $te=Mt(),zB=Vf(),d1r=Zp().calcMarkerSize,p1r=Zp().calcAxisExpansion,v1r=Xp(),YZe=G_().markerSelection,m1r=G_().markerStyle,y1r=$Ze(),g1r=(Il(),ar(Bl)).BADNUM,x1r=(G2(),ar(U2)).TOO_MANY_POINTS;XZe.exports=function(t,r){var i=r.dimensions,n=r._length,a={},o=a.cdata=[],s=a.data=[],l=r._visibleDims=[],u,f,c,h,d;function p(_,b){for(var M=_.makeCalcdata({v:b.values,vcalendar:r.calendar},"v"),x=0;xx1r,m;for(y?m=a.sizeAvg||Math.max(a.size,3):m=d1r(r,n),f=0;f{(function(){var e,t,r,i,n,a;typeof performance!="undefined"&&performance!==null&&performance.now?sk.exports=function(){return performance.now()}:typeof process!="undefined"&&process!==null&&process.hrtime?(sk.exports=function(){return(e()-n)/1e6},t=process.hrtime,e=function(){var o;return o=t(),o[0]*1e9+o[1]},i=e(),a=process.uptime()*1e9,n=i-a):Date.now?(sk.exports=function(){return Date.now()-r},r=Date.now()):(sk.exports=function(){return new Date().getTime()-r},r=new Date().getTime())}).call(KZe)});var eKe=K((Zri,BB)=>{var b1r=JZe(),Uy=window,IB=["moz","webkit"],h5="AnimationFrame",d5=Uy["request"+h5],lk=Uy["cancel"+h5]||Uy["cancelRequest"+h5];for(c5=0;!d5&&c5{tKe.exports=function(t,r){var i=typeof t=="number",n=typeof r=="number";i&&!n?(r=t,t=0):!i&&!n&&(t=0,r=0),t=t|0,r=r|0;var a=r-t;if(a<0)throw new Error("array length must be positive");for(var o=new Array(a),s=0,l=t;s{"use strict";var _1r=Gee(),w1r=Em(),A1r=N_(),iKe=eKe(),T1r=rKe(),Xte=K4(),M1r=V_();aKe.exports=J2;function J2(e,t){if(!(this instanceof J2))return new J2(e,t);this.traces=[],this.passes={},this.regl=e,this.scatter=_1r(e),this.canvas=this.scatter.canvas}J2.prototype.render=function(...e){return e.length&&this.update(...e),this.regl.attributes.preserveDrawingBuffer?this.draw():(this.dirty?this.planned==null&&(this.planned=iKe(()=>{this.draw(),this.dirty=!0,this.planned=null})):(this.draw(),this.dirty=!0,iKe(()=>{this.dirty=!1})),this)};J2.prototype.update=function(...e){if(!e.length)return;for(let i=0;iy||!n.lower&&v{t[a+s]=i})}this.scatter.draw(...t)}return this};J2.prototype.destroy=function(){return this.traces.forEach(e=>{e.buffer&&e.buffer.destroy&&e.buffer.destroy()}),this.traces=null,this.passes=null,this.scatter.destroy(),this};function S1r(e,t,r){let i=e.id!=null?e.id:e,n=t,a=r;return i<<16|(n&255)<<8|a&255}function qB(e,t,r){let i,n,a,o,s,l,u,f,c=e[t],h=e[r];return c.length>2?(i=c[0],a=c[2],n=c[1],o=c[3]):c.length?(i=n=c[0],a=o=c[1]):(i=c.x,n=c.y,a=c.x+c.width,o=c.y+c.height),h.length>2?(s=h[0],u=h[2],l=h[1],f=h[3]):h.length?(s=l=h[0],u=f=h[1]):(s=h.x,l=h.y,u=h.x+h.width,f=h.y+h.height),[s,n,u,o]}function nKe(e){if(typeof e=="number")return[e,e,e,e];if(e.length===2)return[e[0],e[1],e[0],e[1]];{let t=Xte(e);return[t.x,t.y,t.x+t.width,t.y+t.height]}}});var lKe=K((Qri,sKe)=>{"use strict";var E1r=oKe(),Zte=Mt(),OB=Vf(),k1r=X1().selectMode;sKe.exports=function(t,r,i){if(i.length)for(var n=0;n-1,S=k1r(f)||!!n.selectedpoints||E,C=!0;if(S){var k=n._length;if(n.selectedpoints){o.selectBatch=n.selectedpoints;var D=n.selectedpoints,L={};for(d=0;d{"use strict";uKe.getDimIndex=function(t,r){for(var i=r._id,n=i.charAt(0),a={x:0,y:1}[n],o=t._visibleDims,s=0;s{"use strict";var fKe=Kte(),D1r=qR().calcHover,cKe=Cs().getFromId,F1r=Os().extendFlat;function L1r(e,t,r,i,n){n||(n={});var a=(i||"").charAt(0)==="x",o=(i||"").charAt(0)==="y",s=hKe(e,t,r);if((a||o)&&n.hoversubplots==="axis"&&s[0])for(var l=(a?e.xa:e.ya)._subplotsWith,u=n.gd,f=F1r({},e),c=0;c{"use strict";var gKe=Mt(),vKe=gKe.pushUnique,mKe=ff(),yKe=Kte();xKe.exports=function(t,r){var i=t.cd,n=i[0].trace,a=i[0].t,o=t.scene,s=o.matrixOptions.cdata,l=t.xaxis,u=t.yaxis,f=[];if(!o)return f;var c=!mKe.hasMarkers(n)&&!mKe.hasText(n);if(n.visible!==!0||c)return f;var h=yKe.getDimIndex(n,l),d=yKe.getDimIndex(n,u);if(h===!1||d===!1)return f;var p=a.xpx[h],v=a.ypx[d],y=s[h],m=s[d],w=(t.scene.selectBatch||[]).slice(),_=[];if(r!==!1&&!r.degenerate)for(var b=0;b{"use strict";var _Ke=Mt(),P1r=Xp(),z1r=G_().markerStyle;wKe.exports=function(t,r){var i=r.trace,n=t._fullLayout._splomScenes[i.uid];if(n){P1r(t,i),_Ke.extendFlat(n.matrixOptions,z1r(t,i));var a=_Ke.extendFlat({},n.matrixOptions,n.viewOpts);n.matrix.update(a,null)}}});var MKe=K((nii,TKe)=>{"use strict";var I1r=Ho(),R1r=F$();TKe.exports={moduleType:"trace",name:"splom",categories:["gl","regl","cartesian","symbols","showLegend","scatter-like"],attributes:jte(),supplyDefaults:HZe(),colorbar:Qh(),calc:ZZe(),plot:lKe(),hoverPoints:pKe().hoverPoints,selectPoints:bKe(),editStyle:AKe(),meta:{}};I1r.register(R1r)});var FKe=K((aii,DKe)=>{"use strict";var B1r=_te(),q1r=Ho(),O1r=_B(),N1r=Xh().getModuleCalcData,Q2=vc(),SKe=Vf().getFromId,EKe=Cs().shouldShowZeroLine,kKe="splom",CKe={};function V1r(e){var t=e._fullLayout,r=q1r.getModule(kKe),i=N1r(e.calcdata,r)[0],n=O1r(e,["ANGLE_instanced_arrays","OES_element_index_uint"],CKe);n&&(t._hasOnlyLargeSploms&&Jte(e),r.plot(e,{},i))}function U1r(e){var t=e.calcdata,r=e._fullLayout;r._hasOnlyLargeSploms&&Jte(e);for(var i=0;i{"use strict";var W1r=wB(),$1r=AB(),Y1r=TB(),X1r=MB(),Z1r=SB(),K1r=EB(),J1r=kB(),Q1r=CB(),emr=DB(),tmr=FB();LKe.exports={"3e771157d23b4793771f65d83e6387262ed73d488209157f19a7fa027bddd71b":W1r,"49e82bba439f1d9d441c17ba252d05640bc63fefdf22d1219993633af7730210":$1r,"6a5d6bd29c15cf7614221b94c3f384df47c2c46fbe4456e8c57b5cd14c84d923":Y1r,"8902aff2b23b600f8103bcc84a8af2999d28795208aedadc2db06f921f9c7034":X1r,"8fad2284703471df7c0e0d0a7b96d983e8c53f6d707dd55d5921c1eab71f6623":Z1r,bfc540da96a87fcc039073cb37b45e6b81ef5ee6ef3529d726ceed8336354019:K1r,cbf700f001fff25b649fba9c37fa0dc6631c1cdee318ad49473d28ec10dcee81:J1r,db1b82c68771e7f5012fad1fbdae7ff23b526e58d2995bf6dd2cf30024e0f41d:Q1r,dbd1cc9126a137a605df67dc0706e55116f04e33b4545a80042031752de5aef5:emr,fe5b6844077cde1bdd7273f4495969fad93500c26a69b62e74ec2664c447bcc7:tmr}});var RKe=K((sii,IKe)=>{"use strict";var zKe=FKe(),rmr=PKe();Object.assign(zKe.reglPrecompiled,rmr);IKe.exports=zKe});var OKe=K((lii,qKe)=>{"use strict";var BKe=MKe();BKe.basePlotModule=RKe(),qKe.exports=BKe});var tre=K((uii,NKe)=>{"use strict";var imr=Wu(),Qte=Lh(),ere=lf(),nmr=kf().attributes,NB=Os().extendFlat,amr=fu().templatedArray;NKe.exports={domain:nmr({name:"parcoords",trace:!0,editType:"plot"}),labelangle:{valType:"angle",dflt:0,editType:"plot"},labelside:{valType:"enumerated",values:["top","bottom"],dflt:"top",editType:"plot"},labelfont:ere({editType:"plot"}),tickfont:ere({autoShadowDflt:!0,editType:"plot"}),rangefont:ere({editType:"plot"}),dimensions:amr("dimension",{label:{valType:"string",editType:"plot"},tickvals:NB({},Qte.tickvals,{editType:"plot"}),ticktext:NB({},Qte.ticktext,{editType:"plot"}),tickformat:NB({},Qte.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:NB({editType:"calc"},imr("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"}}});var uk={};Fl(uk,{axisExtentOffset:()=>pmr,axisTitleOffset:()=>dmr,bar:()=>vmr,blockLineCount:()=>cmr,canvasPixelRatio:()=>fmr,cn:()=>mmr,id:()=>ymr,layers:()=>hmr,maxDimensionCount:()=>omr,overdrag:()=>smr,tickDistance:()=>umr,verticalPadding:()=>lmr});var omr,smr,lmr,umr,fmr,cmr,hmr,dmr,pmr,vmr,mmr,ymr,fk=ps(()=>{"use strict";omr=60,smr=45,lmr=2,umr=50,fmr=1,cmr=5e3,hmr=["contextLineLayer","focusLineLayer","pickLineLayer"],dmr=28,pmr=10,vmr={width:4,captureWidth:10,fillColor:"magenta",fillOpacity:1,snapDuration:150,snapRatio:.25,snapClose:.01,strokeOpacity:1,strokeWidth:1,handleHeight:8,handleOpacity:1,handleOverlap:0},mmr={axisExtentText:"axis-extent-text",parcoordsLineLayers:"parcoords-line-layers",parcoordsLineLayer:"parcoords-lines",parcoords:"parcoords",parcoordsControlView:"parcoords-control-view",yAxis:"y-axis",axisOverlays:"axis-overlays",axis:"axis",axisHeading:"axis-heading",axisTitle:"axis-title",axisExtent:"axis-extent",axisExtentTop:"axis-extent-top",axisExtentTopText:"axis-extent-top-text",axisExtentBottom:"axis-extent-bottom",axisExtentBottomText:"axis-extent-bottom-text",axisBrush:"axis-brush"},ymr={filterBarPattern:"filter-bar-pattern"}});var Dm=K((fii,UKe)=>{"use strict";var gmr=v6();function VKe(e){return[e]}UKe.exports={keyFun:function(e){return e.key},repeat:VKe,descend:gmr,wrap:VKe,unwrap:function(e){return e[0]}}});var nre=K((cii,QKe)=>{"use strict";var Rc=(fk(),ar(uk)),_1=No(),xmr=Dm().keyFun,VB=Dm().repeat,p5=Mt().sorterAsc,bmr=Mt().strTranslate,GKe=Rc.bar.snapRatio;function HKe(e,t){return e*(1-GKe)+t*GKe}var jKe=Rc.bar.snapClose;function _mr(e,t){return e*(1-jKe)+t*jKe}function GB(e,t,r,i){if(wmr(r,i))return r;var n=e?-1:1,a=0,o=t.length-1;if(n<0){var s=a;a=o,o=s}for(var l=t[a],u=l,f=a;n*f=t[r][0]&&e<=t[r][1])return!0;return!1}function Amr(e){e.attr("x",-Rc.bar.captureWidth/2).attr("width",Rc.bar.captureWidth)}function Tmr(e){e.attr("visibility","visible").style("visibility","visible").attr("fill","yellow").attr("opacity",0)}function Mmr(e){if(!e.brush.filterSpecified)return"0,"+e.height;for(var t=WKe(e.brush.filter.getConsolidated(),e.height),r=[0],i,n,a,o=t.length?t[0][0]:null,s=0;se[1]+r||t=.9*e[1]+.1*e[0]?"n":t<=.9*e[0]+.1*e[1]?"s":"ns"}function $Ke(){_1.select(document.body).style("cursor",null)}function ire(e){e.attr("stroke-dasharray",Mmr)}function UB(e,t){var r=_1.select(e).selectAll(".highlight, .highlight-shadow"),i=t?r.transition().duration(Rc.bar.snapDuration).each("end",t):r;ire(i)}function YKe(e,t){var r=e.brush,i=r.filterSpecified,n=NaN,a={},o;if(i){var s=e.height,l=r.filter.getConsolidated(),u=WKe(l,s),f=NaN,c=NaN,h=NaN;for(o=0;o<=u.length;o++){var d=u[o];if(d&&d[0]<=t&&t<=d[1]){f=o;break}else if(c=o?o-1:NaN,d&&d[0]>t){h=o;break}}if(n=f,isNaN(n)&&(isNaN(c)||isNaN(h)?n=isNaN(c)?h:c:n=t-u[c][1]=w[0]&&m<=w[1]){a.clickableOrdinalRange=w;break}}}return a}function Emr(e,t){_1.event.sourceEvent.stopPropagation();var r=t.height-_1.mouse(e)[1]-2*Rc.verticalPadding,i=t.unitToPaddedPx.invert(r),n=t.brush,a=YKe(t,r),o=a.interval,s=n.svgBrush;if(s.wasDragged=!1,s.grabbingBar=a.region==="ns",s.grabbingBar){var l=o.map(t.unitToPaddedPx);s.grabPoint=r-l[0]-Rc.verticalPadding,s.barLength=l[1]-l[0]}s.clickableOrdinalRange=a.clickableOrdinalRange,s.stayingIntervals=t.multiselect&&n.filterSpecified?n.filter.getConsolidated():[],o&&(s.stayingIntervals=s.stayingIntervals.filter(function(u){return u[0]!==o[0]&&u[1]!==o[1]})),s.startExtent=a.region?o[a.region==="s"?1:0]:i,t.parent.inBrushDrag=!0,s.brushStartCallback()}function XKe(e,t){_1.event.sourceEvent.stopPropagation();var r=t.height-_1.mouse(e)[1]-2*Rc.verticalPadding,i=t.brush.svgBrush;i.wasDragged=!0,i._dragging=!0,i.grabbingBar?i.newExtent=[r-i.grabPoint,r+i.barLength-i.grabPoint].map(t.unitToPaddedPx.invert):i.newExtent=[i.startExtent,t.unitToPaddedPx.invert(r)].sort(p5),t.brush.filterSpecified=!0,i.extent=i.stayingIntervals.concat([i.newExtent]),i.brushCallback(t),UB(e.parentNode)}function kmr(e,t){var r=t.brush,i=r.filter,n=r.svgBrush;n._dragging||(ZKe(e,t),XKe(e,t),t.brush.svgBrush.wasDragged=!1),n._dragging=!1;var a=_1.event;a.sourceEvent.stopPropagation();var o=n.grabbingBar;if(n.grabbingBar=!1,n.grabLocation=void 0,t.parent.inBrushDrag=!1,$Ke(),!n.wasDragged){n.wasDragged=void 0,n.clickableOrdinalRange?r.filterSpecified&&t.multiselect?n.extent.push(n.clickableOrdinalRange):(n.extent=[n.clickableOrdinalRange],r.filterSpecified=!0):o?(n.extent=n.stayingIntervals,n.extent.length===0&&rre(r)):rre(r),n.brushCallback(t),UB(e.parentNode),n.brushEndCallback(r.filterSpecified?i.getConsolidated():[]);return}var s=function(){i.set(i.getConsolidated())};if(t.ordinal){var l=t.unitTickvals;l[l.length-1]n.newExtent[0];n.extent=n.stayingIntervals.concat(u?[n.newExtent]:[]),n.extent.length||rre(r),n.brushCallback(t),u?UB(e.parentNode,s):(s(),UB(e.parentNode))}else s();n.brushEndCallback(r.filterSpecified?i.getConsolidated():[])}function ZKe(e,t){var r=t.height-_1.mouse(e)[1]-2*Rc.verticalPadding,i=YKe(t,r),n="crosshair";i.clickableOrdinalRange?n="pointer":i.region&&(n=i.region+"-resize"),_1.select(document.body).style("cursor",n)}function Cmr(e){e.on("mousemove",function(t){_1.event.preventDefault(),t.parent.inBrushDrag||ZKe(this,t)}).on("mouseleave",function(t){t.parent.inBrushDrag||$Ke()}).call(_1.behavior.drag().on("dragstart",function(t){Emr(this,t)}).on("drag",function(t){XKe(this,t)}).on("dragend",function(t){kmr(this,t)}))}function KKe(e,t){return e[0]-t[0]}function Dmr(e,t,r){var i=r._context.staticPlot,n=e.selectAll(".background").data(VB);n.enter().append("rect").classed("background",!0).call(Amr).call(Tmr).style("pointer-events",i?"none":"auto").attr("transform",bmr(0,Rc.verticalPadding)),n.call(Cmr).attr("height",function(s){return s.height-Rc.verticalPadding});var a=e.selectAll(".highlight-shadow").data(VB);a.enter().append("line").classed("highlight-shadow",!0).attr("x",-Rc.bar.width/2).attr("stroke-width",Rc.bar.width+Rc.bar.strokeWidth).attr("stroke",t).attr("opacity",Rc.bar.strokeOpacity).attr("stroke-linecap","butt"),a.attr("y1",function(s){return s.height}).call(ire);var o=e.selectAll(".highlight").data(VB);o.enter().append("line").classed("highlight",!0).attr("x",-Rc.bar.width/2).attr("stroke-width",Rc.bar.width-Rc.bar.strokeWidth).attr("stroke",Rc.bar.fillColor).attr("opacity",Rc.bar.fillOpacity).attr("stroke-linecap","butt"),o.attr("y1",function(s){return s.height}).call(ire)}function Fmr(e,t,r){var i=e.selectAll("."+Rc.cn.axisBrush).data(VB,xmr);i.enter().append("g").classed(Rc.cn.axisBrush,!0),Dmr(i,t,r)}function Lmr(e){return e.svgBrush.extent.map(function(t){return t.slice()})}function rre(e){e.filterSpecified=!1,e.svgBrush.extent=[[-1/0,1/0]]}function Pmr(e){return function(r){var i=r.brush,n=Lmr(i),a=n.slice();i.filter.set(a),e()}}function JKe(e){for(var t=e.slice(),r=[],i,n=t.shift();n;){for(i=n.slice();(n=t.shift())&&n[0]<=i[1];)i[1]=Math.max(i[1],n[1]);r.push(i)}return r.length===1&&r[0][0]>r[0][1]&&(r=[]),r}function zmr(){var e=[],t,r;return{set:function(i){e=i.map(function(n){return n.slice().sort(p5)}).sort(KKe),e.length===1&&e[0][0]===-1/0&&e[0][1]===1/0&&(e=[[0,-1]]),t=JKe(e),r=e.reduce(function(n,a){return[Math.min(n[0],a[0]),Math.max(n[1],a[1])]},[1/0,-1/0])},get:function(){return e.slice()},getConsolidated:function(){return t},getBounds:function(){return r}}}function Imr(e,t,r,i,n,a){var o=zmr();return o.set(r),{filter:o,filterSpecified:t,svgBrush:{extent:[],brushStartCallback:i,brushCallback:Pmr(n),brushEndCallback:a}}}function Rmr(e,t){if(Array.isArray(e[0])?(e=e.map(function(i){return i.sort(p5)}),t.multiselect?e=JKe(e.sort(KKe)):e=[e[0]]):e=[e.sort(p5)],t.tickvals){var r=t.tickvals.slice().sort(p5);if(e=e.map(function(i){var n=[GB(0,r,i[0],[]),GB(1,r,i[1],[])];if(n[1]>n[0])return n}).filter(function(i){return i}),!e.length)return}return e.length>1?e:e[0]}QKe.exports={makeBrush:Imr,ensureAxisBrush:Fmr,cleanRanges:Rmr}});var rJe=K((hii,tJe)=>{"use strict";var ex=Mt(),Bmr=Zh().hasColorscale,qmr=gh(),Omr=kf().defaults,Nmr=w0(),Vmr=Cs(),eJe=tre(),Umr=nre(),are=(fk(),ar(uk)).maxDimensionCount,Gmr=PB();function Hmr(e,t,r,i,n){var a=n("line.color",r);if(Bmr(e,"line")&&ex.isArrayOrTypedArray(a)){if(a.length)return n("line.colorscale"),qmr(e,t,i,n,{prefix:"line.",cLetter:"c"}),a.length;t.line.color=r}return 1/0}function jmr(e,t,r,i){function n(u,f){return ex.coerce(e,t,eJe.dimensions,u,f)}var a=n("values"),o=n("visible");if(a&&a.length||(o=t.visible=!1),o){n("label"),n("tickvals"),n("ticktext"),n("tickformat");var s=n("range");t._ax={_id:"y",type:"linear",showexponent:"all",exponentformat:"B",range:s},Vmr.setConvert(t._ax,i.layout),n("multiselect");var l=n("constraintrange");l&&(t.constraintrange=Umr.cleanRanges(l,t))}}tJe.exports=function(t,r,i,n){function a(f,c){return ex.coerce(t,r,eJe,f,c)}var o=t.dimensions;Array.isArray(o)&&o.length>are&&(ex.log("parcoords traces support up to "+are+" dimensions at the moment"),o.splice(are));var s=Nmr(t,r,{name:"dimensions",layout:n,handleItemDefaults:jmr}),l=Hmr(t,r,i,n,a);Omr(r,n,a),(!Array.isArray(s)||!s.length)&&(r.visible=!1),Gmr(r,s,"values",l);var u=ex.extendFlat({},n.font,{size:Math.round(n.font.size/1.2)});ex.coerceFont(a,"labelfont",u),ex.coerceFont(a,"tickfont",u,{autoShadowDflt:!0}),ex.coerceFont(a,"rangefont",u),a("labelangle"),a("labelside"),a("unselected.line.color"),a("unselected.line.opacity")}});var nJe=K((dii,iJe)=>{"use strict";var Wmr=Mt().isArrayOrTypedArray,ore=gf(),$mr=Dm().wrap;iJe.exports=function(t,r){var i,n;return ore.hasColorscale(r,"line")&&Wmr(r.line.color)?(i=r.line.color,n=ore.extractOpts(r.line).colorscale,ore.calc(t,r,{vals:i,containerStr:"line",cLetter:"c"})):(i=Ymr(r._length),n=[[0,r.line.color],[1,r.line.color]]),$mr({lineColor:i,cscale:n})};function Ymr(e){for(var t=new Array(e),r=0;r{"use strict";var Xmr=Mt().isTypedArray;HB.convertTypedArray=function(e){return Xmr(e)?Array.prototype.slice.call(e):e};HB.isOrdinal=function(e){return!!e.tickvals};HB.isVisible=function(e){return e.visible||!("visible"in e)}});var pJe=K((vii,dJe)=>{"use strict";var Zmr=["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(` -`),Kmr=["precision highp float;","","varying vec4 fragColor;","","void main() {"," gl_FragColor = fragColor;","}"].join(` -`),ck=(fk(),ar(uk)).maxDimensionCount,fJe=Mt(),aJe=1e-6,jB=2048,Jmr=new Uint8Array(4),oJe=new Uint8Array(4),sJe={shape:[256,1],format:"rgba",type:"uint8",mag:"nearest",min:"nearest"};function Qmr(e){e.read({x:0,y:0,width:1,height:1,data:Jmr})}function cJe(e,t,r,i,n){var a=e._gl;a.enable(a.SCISSOR_TEST),a.scissor(t,r,i,n),e.clear({color:[0,0,0,0],depth:1})}function eyr(e,t,r,i,n,a){var o=a.key;function s(l){var u=Math.min(i,n-l*i);l===0&&(window.cancelAnimationFrame(r.currentRafs[o]),delete r.currentRafs[o],cJe(e,a.scissorX,a.scissorY,a.scissorWidth,a.viewBoxSize[1])),!r.clearOnly&&(a.count=2*u,a.offset=2*l*i,t(a),l*i+u>>8*t)%256/255}function iyr(e,t,r){for(var i=new Array(e*(ck+4)),n=0,a=0;aP&&(P=T[C].dim1.canvasX,D=C);S===0&&cJe(n,0,0,u.canvasWidth,u.canvasHeight);var I=_(r);for(C=0;C{"use strict";var qh=No(),Gy=Mt(),ure=Gy.isArrayOrTypedArray,bJe=Gy.numberFormat,_Je=ko(),wJe=Cs(),lyr=Gy.strRotate,Fm=Gy.strTranslate,uyr=zu(),WB=Bs(),vJe=gf(),hre=Dm(),vv=hre.keyFun,Lm=hre.repeat,AJe=hre.unwrap,v5=sre(),du=(fk(),ar(uk)),TJe=nre(),fyr=pJe();function mJe(e,t,r){return Gy.aggNums(e,null,t,r)}function MJe(e,t){return dre(mJe(Math.min,e,t),mJe(Math.max,e,t))}function $B(e){var t=e.range;return t?dre(t[0],t[1]):MJe(e.values,e._length)}function dre(e,t){return(isNaN(e)||!isFinite(e))&&(e=0),(isNaN(t)||!isFinite(t))&&(t=0),e===t&&(e===0?(e-=1,t+=1):(e*=.9,t*=1.1)),[e,t]}function cyr(e,t){return t?function(r,i){var n=t[i];return n==null?e(r):n}:e}function hyr(e,t,r,i,n){var a=$B(r);return i?qh.scale.ordinal().domain(i.map(cyr(bJe(r.tickformat),n))).range(i.map(function(o){var s=(o-a[0])/(a[1]-a[0]);return e-t+s*(2*t-e)})):qh.scale.linear().domain(a).range([e-t,t])}function dyr(e,t){return qh.scale.linear().range([t,e-t])}function pyr(e,t){return qh.scale.linear().domain($B(e)).range([t,1-t])}function vyr(e){if(e.tickvals){var t=$B(e);return qh.scale.ordinal().domain(e.tickvals).range(e.tickvals.map(function(r){return(r-t[0])/(t[1]-t[0])}))}}function myr(e){var t=e.map(function(a){return a[0]}),r=e.map(function(a){let[o,s,l]=_Je.rgbaArray(a[1]);return qh.rgb(o,s,l)}),i=function(a){return function(o){return o[a]}},n="rgb".split("").map(function(a){return qh.scale.linear().clamp(!0).domain(t).range(r.map(i(a)))});return function(a){return n.map(function(o){return o(a)})}}function cre(e){return e.dimensions.some(function(t){return t.brush.filterSpecified})}function yyr(e,t,r){var i=AJe(t),n=i.trace,a=v5.convertTypedArray(i.lineColor),o=n.line,s={color:_Je.normalize(n.unselected.line.color),opacity:n.unselected.line.opacity},l=vJe.extractOpts(o),u=l.reversescale?vJe.flipScale(i.cscale):i.cscale,f=n.domain,c=n.dimensions,h=e.width,d=n.labelangle,p=n.labelside,v=n.labelfont,y=n.tickfont,m=n.rangefont,w=Gy.extendDeepNoArrays({},o,{color:a.map(qh.scale.linear().domain($B({values:a,range:[l.min,l.max],_length:n._length}))),blockLineCount:du.blockLineCount,canvasOverdrag:du.overdrag*du.canvasPixelRatio}),_=Math.floor(h*(f.x[1]-f.x[0])),b=Math.floor(e.height*(f.y[1]-f.y[0])),M=e.margin||{l:80,r:80,t:100,b:80},x=_,A=b;return{key:r,colCount:c.filter(v5.isVisible).length,dimensions:c,tickDistance:du.tickDistance,unitToColor:myr(u),lines:w,deselectedLines:s,labelAngle:d,labelSide:p,labelFont:v,tickFont:y,rangeFont:m,layoutWidth:h,layoutHeight:e.height,domain:f,translateX:f.x[0]*h,translateY:e.height-f.y[1]*e.height,pad:M,canvasWidth:x*du.canvasPixelRatio+2*w.canvasOverdrag,canvasHeight:A*du.canvasPixelRatio,width:x,height:A,canvasPixelRatio:du.canvasPixelRatio}}function gyr(e,t,r){var i=r.width,n=r.height,a=r.dimensions,o=r.canvasPixelRatio,s=function(h){return i*h/Math.max(1,r.colCount-1)},l=du.verticalPadding/n,u=dyr(n,du.verticalPadding),f={key:r.key,xScale:s,model:r,inBrushDrag:!1},c={};return f.dimensions=a.filter(v5.isVisible).map(function(h,d){var p=pyr(h,l),v=c[h.label];c[h.label]=(v||0)+1;var y=h.label+(v?"__"+v:""),m=h.constraintrange,w=m&&m.length;w&&!ure(m[0])&&(m=[m]);var _=w?m.map(function(k){return k.map(p)}):[[-1/0,1/0]],b=function(){var k=f;k.focusLayer&&k.focusLayer.render(k.panels,!0);var D=cre(k);!e.contextShown()&&D?(k.contextLayer&&k.contextLayer.render(k.panels,!0),e.contextShown(!0)):e.contextShown()&&!D&&(k.contextLayer&&k.contextLayer.render(k.panels,!0,!0),e.contextShown(!1))},M=h.values;M.length>h._length&&(M=M.slice(0,h._length));var x=h.tickvals,A;function T(k,D){return{val:k,text:A[D]}}function g(k,D){return k.val-D.val}if(ure(x)&&x.length){Gy.isTypedArray(x)&&(x=Array.from(x)),A=h.ticktext,!ure(A)||!A.length?A=x.map(bJe(h.tickformat)):A.length>x.length?A=A.slice(0,x.length):x.length>A.length&&(x=x.slice(0,A.length));for(var E=1;E=D||F>=L)return;var z=C.lineLayer.readPixel(I,L-1-F),B=z[3]!==0,O=B?z[2]+256*(z[1]+256*z[0]):null,W={x:I,y:F,clientX:k.clientX,clientY:k.clientY,dataIndex:C.model.key,curveNumber:O};O!==p&&(B?n.hover(W):n.unhover&&n.unhover(W),p=O)}}),d.style("opacity",function(C){return C.pick?0:1}),s.style("background","rgba(255, 255, 255, 0)");var y=s.selectAll("."+du.cn.parcoords).data(h,vv);y.exit().remove(),y.enter().append("g").classed(du.cn.parcoords,!0).style("shape-rendering","crispEdges").style("pointer-events","none"),y.attr("transform",function(C){return Fm(C.model.translateX,C.model.translateY)});var m=y.selectAll("."+du.cn.parcoordsControlView).data(Lm,vv);m.enter().append("g").classed(du.cn.parcoordsControlView,!0),m.attr("transform",function(C){return Fm(C.model.pad.l,C.model.pad.t)});var w=m.selectAll("."+du.cn.yAxis).data(function(C){return C.dimensions},vv);w.enter().append("g").classed(du.cn.yAxis,!0),m.each(function(C){fre(w,C,u)}),d.each(function(C){if(C.viewModel){!C.lineLayer||n?C.lineLayer=fyr(this,C):C.lineLayer.update(C),(C.key||C.key===0)&&(C.viewModel[C.key]=C.lineLayer);var k=!C.context||n;C.lineLayer.render(C.viewModel.panels,k)}}),w.attr("transform",function(C){return Fm(C.xScale(C.xIndex),0)}),w.call(qh.behavior.drag().origin(function(C){return C}).on("drag",function(C){var k=C.parent;c.linePickActive(!1),C.x=Math.max(-du.overdrag,Math.min(C.model.width+du.overdrag,qh.event.x)),C.canvasX=C.x*C.model.canvasPixelRatio,w.sort(function(D,L){return D.x-L.x}).each(function(D,L){D.xIndex=L,D.x=C===D?D.x:D.xScale(D.xIndex),D.canvasX=D.x*D.model.canvasPixelRatio}),fre(w,k,u),w.filter(function(D){return Math.abs(C.xIndex-D.xIndex)!==0}).attr("transform",function(D){return Fm(D.xScale(D.xIndex),0)}),qh.select(this).attr("transform",Fm(C.x,0)),w.each(function(D,L,P){P===C.parent.key&&(k.dimensions[L]=D)}),k.contextLayer&&k.contextLayer.render(k.panels,!1,!cre(k)),k.focusLayer.render&&k.focusLayer.render(k.panels)}).on("dragend",function(C){var k=C.parent;C.x=C.xScale(C.xIndex),C.canvasX=C.x*C.model.canvasPixelRatio,fre(w,k,u),qh.select(this).attr("transform",function(D){return Fm(D.x,0)}),k.contextLayer&&k.contextLayer.render(k.panels,!1,!cre(k)),k.focusLayer&&k.focusLayer.render(k.panels),k.pickLayer&&k.pickLayer.render(k.panels,!0),c.linePickActive(!0),n&&n.axesMoved&&n.axesMoved(k.key,k.dimensions.map(function(D){return D.crossfilterDimensionIndex}))})),w.exit().remove();var _=w.selectAll("."+du.cn.axisOverlays).data(Lm,vv);_.enter().append("g").classed(du.cn.axisOverlays,!0),_.selectAll("."+du.cn.axis).remove();var b=_.selectAll("."+du.cn.axis).data(Lm,vv);b.enter().append("g").classed(du.cn.axis,!0),b.each(function(C){var k=C.model.height/C.model.tickDistance,D=C.domainScale,L=D.domain();qh.select(this).call(qh.svg.axis().orient("left").tickSize(4).outerTickSize(2).ticks(k,C.tickFormat).tickValues(C.ordinal?L:null).tickFormat(function(P){return v5.isOrdinal(C)?P:SJe(C.model.dimensions[C.visibleIndex],P)}).scale(D)),WB.font(b.selectAll("text"),C.model.tickFont)}),b.selectAll(".domain, .tick>line").attr("fill","none").attr("stroke","black").attr("stroke-opacity",.25).attr("stroke-width","1px"),b.selectAll("text").style("cursor","default");var M=_.selectAll("."+du.cn.axisHeading).data(Lm,vv);M.enter().append("g").classed(du.cn.axisHeading,!0);var x=M.selectAll("."+du.cn.axisTitle).data(Lm,vv);x.enter().append("text").classed(du.cn.axisTitle,!0).attr("text-anchor","middle").style("cursor","ew-resize").style("pointer-events",a?"none":"auto"),x.text(function(C){return C.label}).each(function(C){var k=qh.select(this);WB.font(k,C.model.labelFont),uyr.convertToTspans(k,t)}).attr("transform",function(C){var k=gJe(C.model.labelAngle,C.model.labelSide),D=du.axisTitleOffset;return(k.dir>0?"":Fm(0,2*D+C.model.height))+lyr(k.degrees)+Fm(-D*k.dx,-D*k.dy)}).attr("text-anchor",function(C){var k=gJe(C.model.labelAngle,C.model.labelSide),D=Math.abs(k.dx),L=Math.abs(k.dy);return 2*D>L?k.dir*k.dx<0?"start":"end":"middle"});var A=_.selectAll("."+du.cn.axisExtent).data(Lm,vv);A.enter().append("g").classed(du.cn.axisExtent,!0);var T=A.selectAll("."+du.cn.axisExtentTop).data(Lm,vv);T.enter().append("g").classed(du.cn.axisExtentTop,!0),T.attr("transform",Fm(0,-du.axisExtentOffset));var g=T.selectAll("."+du.cn.axisExtentTopText).data(Lm,vv);g.enter().append("text").classed(du.cn.axisExtentTopText,!0).call(yJe),g.text(function(C){return xJe(C,!0)}).each(function(C){WB.font(qh.select(this),C.model.rangeFont)});var E=A.selectAll("."+du.cn.axisExtentBottom).data(Lm,vv);E.enter().append("g").classed(du.cn.axisExtentBottom,!0),E.attr("transform",function(C){return Fm(0,C.model.height+du.axisExtentOffset)});var S=E.selectAll("."+du.cn.axisExtentBottomText).data(Lm,vv);S.enter().append("text").classed(du.cn.axisExtentBottomText,!0).attr("dy","0.75em").call(yJe),S.text(function(C){return xJe(C,!1)}).each(function(C){WB.font(qh.select(this),C.model.rangeFont)}),TJe.ensureAxisBrush(_,f,t)}});var vre=K((pre,LJe)=>{"use strict";var _yr=kJe(),wyr=_B(),CJe=sre().isVisible,FJe={};function DJe(e,t,r){var i=t.indexOf(r),n=e.indexOf(i);return n===-1&&(n+=t.length),n}function Ayr(e,t){return function(i,n){return DJe(e,t,i)-DJe(e,t,n)}}var pre=LJe.exports=function(t,r){var i=t._fullLayout,n=wyr(t,[],FJe);if(n){var a={},o={},s={},l=i._size;r.forEach(function(d,p){var v=d[0].trace,y=s[p]=v.index;a[p]=t.data[y].dimensions,o[p]=t.data[y].dimensions.slice()});var u=function(d,p,v){var y=o[d][p],m=v.map(function(A){return A.slice()}),w="dimensions["+p+"].constraintrange",_=i._tracePreGUI[t._fullData[s[d]].uid];if(_[w]===void 0){var b=y.constraintrange;_[w]=b||null}var M=t._fullData[s[d]].dimensions[p];m.length?(m.length===1&&(m=m[0]),y.constraintrange=m,M.constraintrange=m.slice(),m=[m]):(delete y.constraintrange,delete M.constraintrange,m=null);var x={};x[w]=m,t.emit("plotly_restyle",[x,[s[d]]])},f=function(d){t.emit("plotly_hover",d)},c=function(d){t.emit("plotly_unhover",d)},h=function(d,p){var v=Ayr(p,o[d].filter(CJe));a[d].sort(v),o[d].filter(function(y){return!CJe(y)}).sort(function(y){return o[d].indexOf(y)}).forEach(function(y){a[d].splice(a[d].indexOf(y),1),a[d].splice(o[d].indexOf(y),0,y)}),t.emit("plotly_restyle",[{dimensions:[a[d]]},[s[d]]])};_yr(t,r,{width:l.w,height:l.h,margin:{t:l.t,r:l.r,b:l.b,l:l.l}},{filterChanged:u,hover:f,unhover:c,axesMoved:h})}};pre.reglPrecompiled=FJe});var zJe=K(hk=>{"use strict";var PJe=No(),Tyr=Xh().getModuleCalcData,Myr=vre(),Syr=(zp(),ar(Pp));hk.name="parcoords";hk.plot=function(e){var t=Tyr(e.calcdata,"parcoords")[0];t.length&&Myr(e,t)};hk.clean=function(e,t,r,i){var n=i._has&&i._has("parcoords"),a=t._has&&t._has("parcoords");n&&!a&&(i._paperdiv.selectAll(".parcoords").remove(),i._glimages.selectAll("*").remove())};hk.toSVG=function(e){var t=e._fullLayout._glimages,r=PJe.select(e).selectAll(".svg-container"),i=r.filter(function(a,o){return o===r.size()-1}).selectAll(".gl-canvas-context, .gl-canvas-focus");function n(){var a=this,o=a.toDataURL("image/png"),s=t.append("svg:image");s.attr({xmlns:Syr.svg,"xlink:href":o,preserveAspectRatio:"none",x:0,y:0,width:a.style.width,height:a.style.height})}i.each(n),window.setTimeout(function(){PJe.selectAll("#filterBarPattern").attr("id","filterBarPattern")},60)}});var RJe=K((gii,IJe)=>{"use strict";IJe.exports={attributes:tre(),supplyDefaults:rJe(),calc:nJe(),colorbar:{container:"line",min:"cmin",max:"cmax"},moduleType:"trace",name:"parcoords",basePlotModule:zJe(),categories:["gl","regl","noOpacity","noHover"],meta:{}}});var qJe=K((xii,BJe)=>{"use strict";BJe.exports=function(t,r,i,n,a,o,s,l){"use strict";var u,f,c,h,d,p,v,y,m,w,_,b,M,x,A,T,g,E,S,C,k,D,L,P,I,F,z,B,O,W,X,Z,j,q,Q,N,V,J,H,$,te,ie,de,ge,Ie,Ce,le,re,Ee;return u=t.gl,f=t.context,c=t.strings,h=t.next,d=t.current,p=t.draw,v=t.elements,y=t.buffer,m=t.shader,w=t.attributes,_=t.vao,b=t.uniforms,M=t.framebuffer,x=t.extensions,A=t.timer,T=t.isBufferArgs,g=h.blend_color,E=d.blend_color,S=h.blend_equation,C=d.blend_equation,k=h.blend_func,D=d.blend_func,L=h.depth_range,P=d.depth_range,I=h.colorMask,F=d.colorMask,z=h.polygonOffset_offset,B=d.polygonOffset_offset,O=h.sample_coverage,W=d.sample_coverage,X=h.stencil_func,Z=d.stencil_func,j=h.stencil_opFront,q=d.stencil_opFront,Q=h.stencil_opBack,N=d.stencil_opBack,V=h.scissor_box,J=d.scissor_box,H=h.viewport,$=d.viewport,te={points:0,point:0,lines:1,line:1,triangles:4,triangle:4,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},ie={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},de={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},ge={add:32774,subtract:32778,"reverse subtract":32779},Ie={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},Ce={int8:5120,int16:5122,int32:5124,uint8:5121,uint16:5123,uint32:5125,float:5126,float32:5126},le={cw:2304,ccw:2305},re={},Ee={},{draw:function(we){var oe,Y,ne,ye,U,se,Ae,be,me,ue,pe,ce,Be,$e,Ze,it,nt,Ue;if(oe=we.framebuffer,Y=M.getFramebuffer(oe),ne=M.next,M.next=Y,ye=f.framebufferWidth,f.framebufferWidth=Y?Y.width:f.drawingBufferWidth,U=f.framebufferHeight,f.framebufferHeight=Y?Y.height:f.drawingBufferHeight,Y!==M.cur&&(Y?u.bindFramebuffer(36160,Y.framebuffer):u.bindFramebuffer(36160,null),M.cur=Y),d.dirty){var xe,Re,Qe,Pe,De,Ve,Le,Se,ze,st,ft,wt,At,Vt,Dt,yt,St,rr,Ke,at,lt,vt,We,ut,kt,$t,or,Lr,Er,hr,ni,Kr,si,Tr,vr,Hr,Di,gn,wr,qr,Ut,jt,pr,Ur,Sr,Cr;xe=h.dither,xe!==d.dither&&(xe?u.enable(3024):u.disable(3024),d.dither=xe),Re=h.blend_enable,Re!==d.blend_enable&&(Re?u.enable(3042):u.disable(3042),d.blend_enable=Re),Qe=g[0],Pe=g[1],De=g[2],Ve=g[3],(Qe!==E[0]||Pe!==E[1]||De!==E[2]||Ve!==E[3])&&(u.blendColor(Qe,Pe,De,Ve),E[0]=Qe,E[1]=Pe,E[2]=De,E[3]=Ve),Le=S[0],Se=S[1],(Le!==C[0]||Se!==C[1])&&(u.blendEquationSeparate(Le,Se),C[0]=Le,C[1]=Se),ze=k[0],st=k[1],ft=k[2],wt=k[3],(ze!==D[0]||st!==D[1]||ft!==D[2]||wt!==D[3])&&(u.blendFuncSeparate(ze,st,ft,wt),D[0]=ze,D[1]=st,D[2]=ft,D[3]=wt),At=h.depth_enable,At!==d.depth_enable&&(At?u.enable(2929):u.disable(2929),d.depth_enable=At),Vt=h.depth_func,Vt!==d.depth_func&&(u.depthFunc(Vt),d.depth_func=Vt),Dt=L[0],yt=L[1],(Dt!==P[0]||yt!==P[1])&&(u.depthRange(Dt,yt),P[0]=Dt,P[1]=yt),St=h.depth_mask,St!==d.depth_mask&&(u.depthMask(St),d.depth_mask=St),rr=I[0],Ke=I[1],at=I[2],lt=I[3],(rr!==F[0]||Ke!==F[1]||at!==F[2]||lt!==F[3])&&(u.colorMask(rr,Ke,at,lt),F[0]=rr,F[1]=Ke,F[2]=at,F[3]=lt),vt=h.cull_enable,vt!==d.cull_enable&&(vt?u.enable(2884):u.disable(2884),d.cull_enable=vt),We=h.cull_face,We!==d.cull_face&&(u.cullFace(We),d.cull_face=We),ut=h.frontFace,ut!==d.frontFace&&(u.frontFace(ut),d.frontFace=ut),kt=h.lineWidth,kt!==d.lineWidth&&(u.lineWidth(kt),d.lineWidth=kt),$t=h.polygonOffset_enable,$t!==d.polygonOffset_enable&&($t?u.enable(32823):u.disable(32823),d.polygonOffset_enable=$t),or=z[0],Lr=z[1],(or!==B[0]||Lr!==B[1])&&(u.polygonOffset(or,Lr),B[0]=or,B[1]=Lr),Er=h.sample_alpha,Er!==d.sample_alpha&&(Er?u.enable(32926):u.disable(32926),d.sample_alpha=Er),hr=h.sample_enable,hr!==d.sample_enable&&(hr?u.enable(32928):u.disable(32928),d.sample_enable=hr),ni=O[0],Kr=O[1],(ni!==W[0]||Kr!==W[1])&&(u.sampleCoverage(ni,Kr),W[0]=ni,W[1]=Kr),si=h.stencil_enable,si!==d.stencil_enable&&(si?u.enable(2960):u.disable(2960),d.stencil_enable=si),Tr=h.stencil_mask,Tr!==d.stencil_mask&&(u.stencilMask(Tr),d.stencil_mask=Tr),vr=X[0],Hr=X[1],Di=X[2],(vr!==Z[0]||Hr!==Z[1]||Di!==Z[2])&&(u.stencilFunc(vr,Hr,Di),Z[0]=vr,Z[1]=Hr,Z[2]=Di),gn=j[0],wr=j[1],qr=j[2],Ut=j[3],(gn!==q[0]||wr!==q[1]||qr!==q[2]||Ut!==q[3])&&(u.stencilOpSeparate(gn,wr,qr,Ut),q[0]=gn,q[1]=wr,q[2]=qr,q[3]=Ut),jt=Q[0],pr=Q[1],Ur=Q[2],Sr=Q[3],(jt!==N[0]||pr!==N[1]||Ur!==N[2]||Sr!==N[3])&&(u.stencilOpSeparate(jt,pr,Ur,Sr),N[0]=jt,N[1]=pr,N[2]=Ur,N[3]=Sr),Cr=h.scissor_enable,Cr!==d.scissor_enable&&(Cr?u.enable(3089):u.disable(3089),d.scissor_enable=Cr)}se=f.framebufferWidth,Ae=f.framebufferHeight,be=f.viewportWidth,f.viewportWidth=se,me=f.viewportHeight,f.viewportHeight=Ae,u.viewport(0,0,se,Ae),$[0]=0,$[1]=0,$[2]=se,$[3]=Ae,ue=f.framebufferWidth,pe=f.framebufferHeight,u.scissor(0,0,ue,pe),J[0]=0,J[1]=0,J[2]=ue,J[3]=pe,ce=d.profile,ce&&(Be=performance.now(),r.count++),$e=m.frag,Ze=m.vert,it=m.program(Ze,$e),u.useProgram(it.program),_.setVAO(null),nt=it.id,Ue=re[nt],Ue?Ue.call(this,we):(Ue=re[nt]=i(it),Ue.call(this,we)),d.dirty=!0,_.setVAO(null),M.next=ne,f.framebufferWidth=ye,f.framebufferHeight=U,f.viewportWidth=be,f.viewportHeight=me,ce&&(r.cpuTime+=performance.now()-Be)},scope:function(we,oe,Y){var ne,ye,U,se,Ae,be,me,ue,pe,ce,Be,$e,Ze,it,nt,Ue,xe,Re,Qe,Pe,De;ne=we.framebuffer,ye=M.getFramebuffer(ne),U=M.next,M.next=ye,se=f.framebufferWidth,f.framebufferWidth=ye?ye.width:f.drawingBufferWidth,Ae=f.framebufferHeight,f.framebufferHeight=ye?ye.height:f.drawingBufferHeight,be=f.framebufferWidth,me=f.framebufferHeight,ue=f.viewportWidth,f.viewportWidth=be,pe=f.viewportHeight,f.viewportHeight=me,ce=H[0],H[0]=n,Be=H[1],H[1]=a,$e=H[2],H[2]=be,Ze=H[3],H[3]=me,it=f.framebufferWidth,nt=f.framebufferHeight,Ue=V[0],V[0]=o,xe=V[1],V[1]=s,Re=V[2],V[2]=it,Qe=V[3],V[3]=nt,Pe=d.profile,Pe&&(De=performance.now(),r.count++),d.dirty=!0,oe(f,we,Y),M.next=U,f.framebufferWidth=se,f.framebufferHeight=Ae,f.viewportWidth=ue,f.viewportHeight=pe,H[0]=ce,H[1]=Be,H[2]=$e,H[3]=Ze,V[0]=Ue,V[1]=xe,V[2]=Re,V[3]=Qe,Pe&&(r.cpuTime+=performance.now()-De),d.dirty=!0},batch:function(we,oe){var Y,ne,ye,U,se,Ae,be;if(d.dirty){var me,ue,pe,ce,Be,$e,Ze,it,nt,Ue,xe,Re,Qe,Pe,De,Ve,Le,Se,ze,st,ft,wt,At,Vt,Dt,yt,St,rr,Ke,at,lt,vt,We,ut,kt,$t,or,Lr,Er,hr,ni,Kr,si,Tr,vr,Hr;me=h.dither,me!==d.dither&&(me?u.enable(3024):u.disable(3024),d.dither=me),ue=h.blend_enable,ue!==d.blend_enable&&(ue?u.enable(3042):u.disable(3042),d.blend_enable=ue),pe=g[0],ce=g[1],Be=g[2],$e=g[3],(pe!==E[0]||ce!==E[1]||Be!==E[2]||$e!==E[3])&&(u.blendColor(pe,ce,Be,$e),E[0]=pe,E[1]=ce,E[2]=Be,E[3]=$e),Ze=S[0],it=S[1],(Ze!==C[0]||it!==C[1])&&(u.blendEquationSeparate(Ze,it),C[0]=Ze,C[1]=it),nt=k[0],Ue=k[1],xe=k[2],Re=k[3],(nt!==D[0]||Ue!==D[1]||xe!==D[2]||Re!==D[3])&&(u.blendFuncSeparate(nt,Ue,xe,Re),D[0]=nt,D[1]=Ue,D[2]=xe,D[3]=Re),Qe=h.depth_enable,Qe!==d.depth_enable&&(Qe?u.enable(2929):u.disable(2929),d.depth_enable=Qe),Pe=h.depth_func,Pe!==d.depth_func&&(u.depthFunc(Pe),d.depth_func=Pe),De=L[0],Ve=L[1],(De!==P[0]||Ve!==P[1])&&(u.depthRange(De,Ve),P[0]=De,P[1]=Ve),Le=h.depth_mask,Le!==d.depth_mask&&(u.depthMask(Le),d.depth_mask=Le),Se=I[0],ze=I[1],st=I[2],ft=I[3],(Se!==F[0]||ze!==F[1]||st!==F[2]||ft!==F[3])&&(u.colorMask(Se,ze,st,ft),F[0]=Se,F[1]=ze,F[2]=st,F[3]=ft),wt=h.cull_enable,wt!==d.cull_enable&&(wt?u.enable(2884):u.disable(2884),d.cull_enable=wt),At=h.cull_face,At!==d.cull_face&&(u.cullFace(At),d.cull_face=At),Vt=h.frontFace,Vt!==d.frontFace&&(u.frontFace(Vt),d.frontFace=Vt),Dt=h.lineWidth,Dt!==d.lineWidth&&(u.lineWidth(Dt),d.lineWidth=Dt),yt=h.polygonOffset_enable,yt!==d.polygonOffset_enable&&(yt?u.enable(32823):u.disable(32823),d.polygonOffset_enable=yt),St=z[0],rr=z[1],(St!==B[0]||rr!==B[1])&&(u.polygonOffset(St,rr),B[0]=St,B[1]=rr),Ke=h.sample_alpha,Ke!==d.sample_alpha&&(Ke?u.enable(32926):u.disable(32926),d.sample_alpha=Ke),at=h.sample_enable,at!==d.sample_enable&&(at?u.enable(32928):u.disable(32928),d.sample_enable=at),lt=O[0],vt=O[1],(lt!==W[0]||vt!==W[1])&&(u.sampleCoverage(lt,vt),W[0]=lt,W[1]=vt),We=h.stencil_enable,We!==d.stencil_enable&&(We?u.enable(2960):u.disable(2960),d.stencil_enable=We),ut=h.stencil_mask,ut!==d.stencil_mask&&(u.stencilMask(ut),d.stencil_mask=ut),kt=X[0],$t=X[1],or=X[2],(kt!==Z[0]||$t!==Z[1]||or!==Z[2])&&(u.stencilFunc(kt,$t,or),Z[0]=kt,Z[1]=$t,Z[2]=or),Lr=j[0],Er=j[1],hr=j[2],ni=j[3],(Lr!==q[0]||Er!==q[1]||hr!==q[2]||ni!==q[3])&&(u.stencilOpSeparate(Lr,Er,hr,ni),q[0]=Lr,q[1]=Er,q[2]=hr,q[3]=ni),Kr=Q[0],si=Q[1],Tr=Q[2],vr=Q[3],(Kr!==N[0]||si!==N[1]||Tr!==N[2]||vr!==N[3])&&(u.stencilOpSeparate(Kr,si,Tr,vr),N[0]=Kr,N[1]=si,N[2]=Tr,N[3]=vr),Hr=h.scissor_enable,Hr!==d.scissor_enable&&(Hr?u.enable(3089):u.disable(3089),d.scissor_enable=Hr)}Y=d.profile,Y&&(ne=performance.now(),r.count+=oe),ye=m.frag,U=m.vert,se=m.program(U,ye),u.useProgram(se.program),_.setVAO(null),Ae=se.id,be=Ee[Ae],be?be.call(this,we,oe):(be=Ee[Ae]=l(se),be.call(this,we,oe)),d.dirty=!0,_.setVAO(null),Y&&(r.cpuTime+=performance.now()-ne)}}}});var NJe=K((bii,OJe)=>{"use strict";OJe.exports=function(t,r,i,n,a,o,s,l,u,f,c,h,d,p,v,y,m,w,_,b,M,x,A,T,g,E,S,C,k,D,L,P,I,F,z,B,O,W,X,Z,j,q,Q,N,V,J,H,$,te,ie,de,ge,Ie,Ce,le,re,Ee,we,oe,Y,ne,ye,U,se,Ae,be,me,ue,pe,ce,Be,$e,Ze,it,nt,Ue,xe,Re,Qe,Pe,De,Ve,Le,Se,ze,st,ft,wt,At,Vt,Dt,yt,St,rr,Ke,at,lt,vt,We,ut,kt,$t,or,Lr,Er,hr,ni,Kr,si,Tr,vr,Hr,Di,gn,wr,qr,Ut,jt,pr,Ur,Sr,Cr,di,Fi,ir,Kt,Me,Xe,Ye,et,gt,bt,lr,Ct,ur,Ir,Rr,Nr,gi,ui,Qr,Ui,ln){"use strict";var Tt,_i,kn,ti,Fr,ji,na,mn,$n,Wi,Qi,_r,Yr,fi,aa,sn,ca,Kn,hn,Ta,tn,wi,rn,Ai,ea,qn,pi,Fn,Pa,dr,ai,Zi,Vi,pa,Na,an,wn,Ra,ei,Yn,Ja,ja,ka,ki,pn,Va,Gi,Pr,ri,bn,Ri,vi,yr,Ti,Cn,Gr,Xn,nn,ta,Bi,On,Nn,ia,Jr,Ci,un,Dn,Vn,vn,Br,Li,Ua,yi,Ma,Ba,Bn,Hi,yn,jn,Un,zi;return Tt=t.gl,_i=t.context,kn=t.strings,ti=t.next,Fr=t.current,ji=t.draw,na=t.elements,mn=t.buffer,$n=t.shader,Wi=t.attributes,Qi=t.vao,_r=t.uniforms,Yr=t.framebuffer,fi=t.extensions,aa=t.timer,sn=t.isBufferArgs,ca=ti.blend_color,Kn=Fr.blend_color,hn=ti.blend_equation,Ta=Fr.blend_equation,tn=ti.blend_func,wi=Fr.blend_func,rn=ti.depth_range,Ai=Fr.depth_range,ea=ti.colorMask,qn=Fr.colorMask,pi=ti.polygonOffset_offset,Fn=Fr.polygonOffset_offset,Pa=ti.sample_coverage,dr=Fr.sample_coverage,ai=ti.stencil_func,Zi=Fr.stencil_func,Vi=ti.stencil_opFront,pa=Fr.stencil_opFront,Na=ti.stencil_opBack,an=Fr.stencil_opBack,wn=ti.scissor_box,Ra=Fr.scissor_box,ei=ti.viewport,Yn=Fr.viewport,Ja={points:0,point:0,lines:1,line:1,triangles:4,triangle:4,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},ja={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},ka={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},ki={add:32774,subtract:32778,"reverse subtract":32779},pn={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},Va={int8:5120,int16:5122,int32:5124,uint8:5121,uint16:5123,uint32:5125,float:5126,float32:5126},Gi={cw:2304,ccw:2305},Pr={},ri={},bn=new Float32Array(16),Ri=new Float32Array(16),vi=new Float32Array(16),yr=new Float32Array(16),Ti=new Float32Array(16),Cn=new Float32Array(16),Gr=new Float32Array(16),Xn=new Float32Array(16),nn=new Float32Array(16),ta=new Float32Array(16),Bi=new Float32Array(16),On=new Float32Array(16),Nn=new Float32Array(16),ia=new Float32Array(16),Jr=new Float32Array(16),Ci=new Float32Array(16),un=new Float32Array(16),Dn=new Float32Array(16),Vn=new Float32Array(16),vn=new Float32Array(16),Br=new Float32Array(16),Li=new Float32Array(16),Ua=new Float32Array(16),yi=new Float32Array(16),Ma=new Float32Array(16),Ba=new Float32Array(16),Bn=new Float32Array(16),Hi=new Float32Array(16),yn=new Float32Array(16),jn=new Float32Array(16),Un=new Float32Array(16),zi=new Float32Array(16),{draw:function(xr){var Ln,xn,da,Mi,Xr,Gn,to,Jn,ro,mo,Oa,Si,co,Pn,Fa,oa,Hn,va,ma,Sa,Ei,jr,An,Za,Ga,Ca,za,Wn,Xi,sa,Mo,ya,Qn,Tn,Da,zn,Ia,$i,In,qi,la,ga,go,eo,So,Mn,Ao,Ya,Co,Ii,qa,Zn,Ha,Wa,$a,Fe,Ge,ot,rt,mt,It,Bt,Ot,nr,zr,Wt,Rt,er,kr,Vr,ii,ci,li,mi,xi,Oi,ua,xa,ao,ho,Fo,ls,Io,Ps,xs,us,Ni,io,Eo;if(Ln=Yr.next,Ln!==Yr.cur&&(Ln?Tt.bindFramebuffer(36160,Ln.framebuffer):Tt.bindFramebuffer(36160,null),Yr.cur=Ln),Fr.dirty){var oo,xo,bo,so,Yo,Uo,es,jo,Qo,Ks,js,Ds,_s,as,Es,To,Go,qs,Ts,Dl,_l,wl,vl,Al,ml;oo=ea[0],xo=ea[1],bo=ea[2],so=ea[3],(oo!==qn[0]||xo!==qn[1]||bo!==qn[2]||so!==qn[3])&&(Tt.colorMask(oo,xo,bo,so),qn[0]=oo,qn[1]=xo,qn[2]=bo,qn[3]=so),Yo=ti.frontFace,Yo!==Fr.frontFace&&(Tt.frontFace(Yo),Fr.frontFace=Yo),Uo=ti.polygonOffset_enable,Uo!==Fr.polygonOffset_enable&&(Uo?Tt.enable(32823):Tt.disable(32823),Fr.polygonOffset_enable=Uo),es=pi[0],jo=pi[1],(es!==Fn[0]||jo!==Fn[1])&&(Tt.polygonOffset(es,jo),Fn[0]=es,Fn[1]=jo),Qo=ti.sample_alpha,Qo!==Fr.sample_alpha&&(Qo?Tt.enable(32926):Tt.disable(32926),Fr.sample_alpha=Qo),Ks=ti.sample_enable,Ks!==Fr.sample_enable&&(Ks?Tt.enable(32928):Tt.disable(32928),Fr.sample_enable=Ks),js=Pa[0],Ds=Pa[1],(js!==dr[0]||Ds!==dr[1])&&(Tt.sampleCoverage(js,Ds),dr[0]=js,dr[1]=Ds),_s=ti.stencil_enable,_s!==Fr.stencil_enable&&(_s?Tt.enable(2960):Tt.disable(2960),Fr.stencil_enable=_s),as=ti.stencil_mask,as!==Fr.stencil_mask&&(Tt.stencilMask(as),Fr.stencil_mask=as),Es=ai[0],To=ai[1],Go=ai[2],(Es!==Zi[0]||To!==Zi[1]||Go!==Zi[2])&&(Tt.stencilFunc(Es,To,Go),Zi[0]=Es,Zi[1]=To,Zi[2]=Go),qs=Vi[0],Ts=Vi[1],Dl=Vi[2],_l=Vi[3],(qs!==pa[0]||Ts!==pa[1]||Dl!==pa[2]||_l!==pa[3])&&(Tt.stencilOpSeparate(qs,Ts,Dl,_l),pa[0]=qs,pa[1]=Ts,pa[2]=Dl,pa[3]=_l),wl=Na[0],vl=Na[1],Al=Na[2],ml=Na[3],(wl!==an[0]||vl!==an[1]||Al!==an[2]||ml!==an[3])&&(Tt.stencilOpSeparate(wl,vl,Al,ml),an[0]=wl,an[1]=vl,an[2]=Al,an[3]=ml)}xn=xr.viewportX,Pr.x=xn,da=xr.viewportY,Pr.y=da,Mi=xr.viewportWidth,Pr.width=Mi,Xr=xr.viewportHeight,Pr.height=Xr,Gn=Pr.x|0,to=Pr.y|0,Jn="width"in Pr?Pr.width|0:_i.framebufferWidth-Gn,ro="height"in Pr?Pr.height|0:_i.framebufferHeight-to,mo=_i.viewportWidth,_i.viewportWidth=Jn,Oa=_i.viewportHeight,_i.viewportHeight=ro,Tt.viewport(Gn,to,Jn,ro),Yn[0]=Gn,Yn[1]=to,Yn[2]=Jn,Yn[3]=ro,Tt.blendColor(0,0,0,0),Kn[0]=0,Kn[1]=0,Kn[2]=0,Kn[3]=0,i?Tt.enable(3042):Tt.disable(3042),Fr.blend_enable=i,Tt.blendEquationSeparate(32774,32774),Ta[0]=32774,Ta[1]=32774,Tt.blendFuncSeparate(770,771,1,1),wi[0]=770,wi[1]=771,wi[2]=1,wi[3]=1,n?Tt.enable(2884):Tt.disable(2884),Fr.cull_enable=n,Tt.cullFace(a),Fr.cull_face=a,o?Tt.enable(2929):Tt.disable(2929),Fr.depth_enable=o,Tt.depthFunc(s),Fr.depth_func=s,Tt.depthMask(l),Fr.depth_mask=l,Tt.depthRange(0,1),Ai[0]=0,Ai[1]=1,u?Tt.enable(3024):Tt.disable(3024),Fr.dither=u,Tt.lineWidth(f),Fr.lineWidth=f,Si=xr.scissorX,ri.x=Si,co=xr.scissorY,ri.y=co,Pn=xr.scissorWidth,ri.width=Pn,Fa=xr.scissorHeight,ri.height=Fa,oa=ri.x|0,Hn=ri.y|0,va="width"in ri?ri.width|0:_i.framebufferWidth-oa,ma="height"in ri?ri.height|0:_i.framebufferHeight-Hn,Tt.scissor(oa,Hn,va,ma),Ra[0]=oa,Ra[1]=Hn,Ra[2]=va,Ra[3]=ma,c?Tt.enable(3089):Tt.disable(3089),Fr.scissor_enable=c,Sa=Fr.profile,Fr.profile=!1,Tt.useProgram(h.program),Qi.setVAO(null),Ei=p.location,jr=Wi[Ei],jr.buffer||Tt.enableVertexAttribArray(Ei),(jr.type!==d.dtype||jr.size!==4||jr.buffer!==d||jr.normalized!==!1||jr.offset!==0||jr.stride!==0)&&(Tt.bindBuffer(34962,d.buffer),Tt.vertexAttribPointer(Ei,4,d.dtype,!1,0,0),jr.type=d.dtype,jr.size=4,jr.buffer=d,jr.normalized=!1,jr.offset=0,jr.stride=0),An=y.location,Za=Wi[An],Za.buffer||Tt.enableVertexAttribArray(An),(Za.type!==v.dtype||Za.size!==4||Za.buffer!==v||Za.normalized!==!1||Za.offset!==0||Za.stride!==0)&&(Tt.bindBuffer(34962,v.buffer),Tt.vertexAttribPointer(An,4,v.dtype,!1,0,0),Za.type=v.dtype,Za.size=4,Za.buffer=v,Za.normalized=!1,Za.offset=0,Za.stride=0),Ga=w.location,Ca=Wi[Ga],Ca.buffer||Tt.enableVertexAttribArray(Ga),(Ca.type!==m.dtype||Ca.size!==4||Ca.buffer!==m||Ca.normalized!==!1||Ca.offset!==0||Ca.stride!==0)&&(Tt.bindBuffer(34962,m.buffer),Tt.vertexAttribPointer(Ga,4,m.dtype,!1,0,0),Ca.type=m.dtype,Ca.size=4,Ca.buffer=m,Ca.normalized=!1,Ca.offset=0,Ca.stride=0),za=b.location,Wn=Wi[za],Wn.buffer||Tt.enableVertexAttribArray(za),(Wn.type!==_.dtype||Wn.size!==4||Wn.buffer!==_||Wn.normalized!==!1||Wn.offset!==0||Wn.stride!==0)&&(Tt.bindBuffer(34962,_.buffer),Tt.vertexAttribPointer(za,4,_.dtype,!1,0,0),Wn.type=_.dtype,Wn.size=4,Wn.buffer=_,Wn.normalized=!1,Wn.offset=0,Wn.stride=0),Xi=x.location,sa=Wi[Xi],sa.buffer||Tt.enableVertexAttribArray(Xi),(sa.type!==M.dtype||sa.size!==4||sa.buffer!==M||sa.normalized!==!1||sa.offset!==0||sa.stride!==0)&&(Tt.bindBuffer(34962,M.buffer),Tt.vertexAttribPointer(Xi,4,M.dtype,!1,0,0),sa.type=M.dtype,sa.size=4,sa.buffer=M,sa.normalized=!1,sa.offset=0,sa.stride=0),Mo=T.location,ya=Wi[Mo],ya.buffer||Tt.enableVertexAttribArray(Mo),(ya.type!==A.dtype||ya.size!==4||ya.buffer!==A||ya.normalized!==!1||ya.offset!==0||ya.stride!==0)&&(Tt.bindBuffer(34962,A.buffer),Tt.vertexAttribPointer(Mo,4,A.dtype,!1,0,0),ya.type=A.dtype,ya.size=4,ya.buffer=A,ya.normalized=!1,ya.offset=0,ya.stride=0),Qn=E.location,Tn=Wi[Qn],Tn.buffer||Tt.enableVertexAttribArray(Qn),(Tn.type!==g.dtype||Tn.size!==4||Tn.buffer!==g||Tn.normalized!==!1||Tn.offset!==0||Tn.stride!==0)&&(Tt.bindBuffer(34962,g.buffer),Tt.vertexAttribPointer(Qn,4,g.dtype,!1,0,0),Tn.type=g.dtype,Tn.size=4,Tn.buffer=g,Tn.normalized=!1,Tn.offset=0,Tn.stride=0),Da=C.location,zn=Wi[Da],zn.buffer||Tt.enableVertexAttribArray(Da),(zn.type!==S.dtype||zn.size!==4||zn.buffer!==S||zn.normalized!==!1||zn.offset!==0||zn.stride!==0)&&(Tt.bindBuffer(34962,S.buffer),Tt.vertexAttribPointer(Da,4,S.dtype,!1,0,0),zn.type=S.dtype,zn.size=4,zn.buffer=S,zn.normalized=!1,zn.offset=0,zn.stride=0),Ia=D.location,$i=Wi[Ia],$i.buffer||Tt.enableVertexAttribArray(Ia),($i.type!==k.dtype||$i.size!==4||$i.buffer!==k||$i.normalized!==!1||$i.offset!==0||$i.stride!==0)&&(Tt.bindBuffer(34962,k.buffer),Tt.vertexAttribPointer(Ia,4,k.dtype,!1,0,0),$i.type=k.dtype,$i.size=4,$i.buffer=k,$i.normalized=!1,$i.offset=0,$i.stride=0),In=P.location,qi=Wi[In],qi.buffer||Tt.enableVertexAttribArray(In),(qi.type!==L.dtype||qi.size!==4||qi.buffer!==L||qi.normalized!==!1||qi.offset!==0||qi.stride!==0)&&(Tt.bindBuffer(34962,L.buffer),Tt.vertexAttribPointer(In,4,L.dtype,!1,0,0),qi.type=L.dtype,qi.size=4,qi.buffer=L,qi.normalized=!1,qi.offset=0,qi.stride=0),la=F.location,ga=Wi[la],ga.buffer||Tt.enableVertexAttribArray(la),(ga.type!==I.dtype||ga.size!==4||ga.buffer!==I||ga.normalized!==!1||ga.offset!==0||ga.stride!==0)&&(Tt.bindBuffer(34962,I.buffer),Tt.vertexAttribPointer(la,4,I.dtype,!1,0,0),ga.type=I.dtype,ga.size=4,ga.buffer=I,ga.normalized=!1,ga.offset=0,ga.stride=0),go=B.location,eo=Wi[go],eo.buffer||Tt.enableVertexAttribArray(go),(eo.type!==z.dtype||eo.size!==4||eo.buffer!==z||eo.normalized!==!1||eo.offset!==0||eo.stride!==0)&&(Tt.bindBuffer(34962,z.buffer),Tt.vertexAttribPointer(go,4,z.dtype,!1,0,0),eo.type=z.dtype,eo.size=4,eo.buffer=z,eo.normalized=!1,eo.offset=0,eo.stride=0),So=W.location,Mn=Wi[So],Mn.buffer||Tt.enableVertexAttribArray(So),(Mn.type!==O.dtype||Mn.size!==4||Mn.buffer!==O||Mn.normalized!==!1||Mn.offset!==0||Mn.stride!==0)&&(Tt.bindBuffer(34962,O.buffer),Tt.vertexAttribPointer(So,4,O.dtype,!1,0,0),Mn.type=O.dtype,Mn.size=4,Mn.buffer=O,Mn.normalized=!1,Mn.offset=0,Mn.stride=0),Ao=Z.location,Ya=Wi[Ao],Ya.buffer||Tt.enableVertexAttribArray(Ao),(Ya.type!==X.dtype||Ya.size!==4||Ya.buffer!==X||Ya.normalized!==!1||Ya.offset!==0||Ya.stride!==0)&&(Tt.bindBuffer(34962,X.buffer),Tt.vertexAttribPointer(Ao,4,X.dtype,!1,0,0),Ya.type=X.dtype,Ya.size=4,Ya.buffer=X,Ya.normalized=!1,Ya.offset=0,Ya.stride=0),Co=q.location,Ii=Wi[Co],Ii.buffer||Tt.enableVertexAttribArray(Co),(Ii.type!==j.dtype||Ii.size!==4||Ii.buffer!==j||Ii.normalized!==!1||Ii.offset!==0||Ii.stride!==0)&&(Tt.bindBuffer(34962,j.buffer),Tt.vertexAttribPointer(Co,4,j.dtype,!1,0,0),Ii.type=j.dtype,Ii.size=4,Ii.buffer=j,Ii.normalized=!1,Ii.offset=0,Ii.stride=0),qa=N.location,Zn=Wi[qa],Zn.buffer||Tt.enableVertexAttribArray(qa),(Zn.type!==Q.dtype||Zn.size!==4||Zn.buffer!==Q||Zn.normalized!==!1||Zn.offset!==0||Zn.stride!==0)&&(Tt.bindBuffer(34962,Q.buffer),Tt.vertexAttribPointer(qa,4,Q.dtype,!1,0,0),Zn.type=Q.dtype,Zn.size=4,Zn.buffer=Q,Zn.normalized=!1,Zn.offset=0,Zn.stride=0),Ha=xr.contextColor,Wa=Ha[0],$a=Ha[1],Fe=Ha[2],Ge=Ha[3],Tt.uniform4f(V.location,Wa,$a,Fe,Ge),ot=xr.dim0A,Tt.uniformMatrix4fv(J.location,!1,Array.isArray(ot)||ot instanceof Float32Array?ot:(bn[0]=ot[0],bn[1]=ot[1],bn[2]=ot[2],bn[3]=ot[3],bn[4]=ot[4],bn[5]=ot[5],bn[6]=ot[6],bn[7]=ot[7],bn[8]=ot[8],bn[9]=ot[9],bn[10]=ot[10],bn[11]=ot[11],bn[12]=ot[12],bn[13]=ot[13],bn[14]=ot[14],bn[15]=ot[15],bn)),rt=xr.dim0B,Tt.uniformMatrix4fv(H.location,!1,Array.isArray(rt)||rt instanceof Float32Array?rt:(Ri[0]=rt[0],Ri[1]=rt[1],Ri[2]=rt[2],Ri[3]=rt[3],Ri[4]=rt[4],Ri[5]=rt[5],Ri[6]=rt[6],Ri[7]=rt[7],Ri[8]=rt[8],Ri[9]=rt[9],Ri[10]=rt[10],Ri[11]=rt[11],Ri[12]=rt[12],Ri[13]=rt[13],Ri[14]=rt[14],Ri[15]=rt[15],Ri)),mt=xr.dim0C,Tt.uniformMatrix4fv($.location,!1,Array.isArray(mt)||mt instanceof Float32Array?mt:(vi[0]=mt[0],vi[1]=mt[1],vi[2]=mt[2],vi[3]=mt[3],vi[4]=mt[4],vi[5]=mt[5],vi[6]=mt[6],vi[7]=mt[7],vi[8]=mt[8],vi[9]=mt[9],vi[10]=mt[10],vi[11]=mt[11],vi[12]=mt[12],vi[13]=mt[13],vi[14]=mt[14],vi[15]=mt[15],vi)),It=xr.dim0D,Tt.uniformMatrix4fv(te.location,!1,Array.isArray(It)||It instanceof Float32Array?It:(yr[0]=It[0],yr[1]=It[1],yr[2]=It[2],yr[3]=It[3],yr[4]=It[4],yr[5]=It[5],yr[6]=It[6],yr[7]=It[7],yr[8]=It[8],yr[9]=It[9],yr[10]=It[10],yr[11]=It[11],yr[12]=It[12],yr[13]=It[13],yr[14]=It[14],yr[15]=It[15],yr)),Bt=xr.dim1A,Tt.uniformMatrix4fv(ie.location,!1,Array.isArray(Bt)||Bt instanceof Float32Array?Bt:(Ti[0]=Bt[0],Ti[1]=Bt[1],Ti[2]=Bt[2],Ti[3]=Bt[3],Ti[4]=Bt[4],Ti[5]=Bt[5],Ti[6]=Bt[6],Ti[7]=Bt[7],Ti[8]=Bt[8],Ti[9]=Bt[9],Ti[10]=Bt[10],Ti[11]=Bt[11],Ti[12]=Bt[12],Ti[13]=Bt[13],Ti[14]=Bt[14],Ti[15]=Bt[15],Ti)),Ot=xr.dim1B,Tt.uniformMatrix4fv(de.location,!1,Array.isArray(Ot)||Ot instanceof Float32Array?Ot:(Cn[0]=Ot[0],Cn[1]=Ot[1],Cn[2]=Ot[2],Cn[3]=Ot[3],Cn[4]=Ot[4],Cn[5]=Ot[5],Cn[6]=Ot[6],Cn[7]=Ot[7],Cn[8]=Ot[8],Cn[9]=Ot[9],Cn[10]=Ot[10],Cn[11]=Ot[11],Cn[12]=Ot[12],Cn[13]=Ot[13],Cn[14]=Ot[14],Cn[15]=Ot[15],Cn)),nr=xr.dim1C,Tt.uniformMatrix4fv(ge.location,!1,Array.isArray(nr)||nr instanceof Float32Array?nr:(Gr[0]=nr[0],Gr[1]=nr[1],Gr[2]=nr[2],Gr[3]=nr[3],Gr[4]=nr[4],Gr[5]=nr[5],Gr[6]=nr[6],Gr[7]=nr[7],Gr[8]=nr[8],Gr[9]=nr[9],Gr[10]=nr[10],Gr[11]=nr[11],Gr[12]=nr[12],Gr[13]=nr[13],Gr[14]=nr[14],Gr[15]=nr[15],Gr)),zr=xr.dim1D,Tt.uniformMatrix4fv(Ie.location,!1,Array.isArray(zr)||zr instanceof Float32Array?zr:(Xn[0]=zr[0],Xn[1]=zr[1],Xn[2]=zr[2],Xn[3]=zr[3],Xn[4]=zr[4],Xn[5]=zr[5],Xn[6]=zr[6],Xn[7]=zr[7],Xn[8]=zr[8],Xn[9]=zr[9],Xn[10]=zr[10],Xn[11]=zr[11],Xn[12]=zr[12],Xn[13]=zr[13],Xn[14]=zr[14],Xn[15]=zr[15],Xn)),Wt=xr.drwLayer,Tt.uniform1f(Ce.location,Wt),Rt=xr.hiA,Tt.uniformMatrix4fv(le.location,!1,Array.isArray(Rt)||Rt instanceof Float32Array?Rt:(nn[0]=Rt[0],nn[1]=Rt[1],nn[2]=Rt[2],nn[3]=Rt[3],nn[4]=Rt[4],nn[5]=Rt[5],nn[6]=Rt[6],nn[7]=Rt[7],nn[8]=Rt[8],nn[9]=Rt[9],nn[10]=Rt[10],nn[11]=Rt[11],nn[12]=Rt[12],nn[13]=Rt[13],nn[14]=Rt[14],nn[15]=Rt[15],nn)),er=xr.hiB,Tt.uniformMatrix4fv(re.location,!1,Array.isArray(er)||er instanceof Float32Array?er:(ta[0]=er[0],ta[1]=er[1],ta[2]=er[2],ta[3]=er[3],ta[4]=er[4],ta[5]=er[5],ta[6]=er[6],ta[7]=er[7],ta[8]=er[8],ta[9]=er[9],ta[10]=er[10],ta[11]=er[11],ta[12]=er[12],ta[13]=er[13],ta[14]=er[14],ta[15]=er[15],ta)),kr=xr.hiC,Tt.uniformMatrix4fv(Ee.location,!1,Array.isArray(kr)||kr instanceof Float32Array?kr:(Bi[0]=kr[0],Bi[1]=kr[1],Bi[2]=kr[2],Bi[3]=kr[3],Bi[4]=kr[4],Bi[5]=kr[5],Bi[6]=kr[6],Bi[7]=kr[7],Bi[8]=kr[8],Bi[9]=kr[9],Bi[10]=kr[10],Bi[11]=kr[11],Bi[12]=kr[12],Bi[13]=kr[13],Bi[14]=kr[14],Bi[15]=kr[15],Bi)),Vr=xr.hiD,Tt.uniformMatrix4fv(we.location,!1,Array.isArray(Vr)||Vr instanceof Float32Array?Vr:(On[0]=Vr[0],On[1]=Vr[1],On[2]=Vr[2],On[3]=Vr[3],On[4]=Vr[4],On[5]=Vr[5],On[6]=Vr[6],On[7]=Vr[7],On[8]=Vr[8],On[9]=Vr[9],On[10]=Vr[10],On[11]=Vr[11],On[12]=Vr[12],On[13]=Vr[13],On[14]=Vr[14],On[15]=Vr[15],On)),ii=xr.loA,Tt.uniformMatrix4fv(oe.location,!1,Array.isArray(ii)||ii instanceof Float32Array?ii:(Nn[0]=ii[0],Nn[1]=ii[1],Nn[2]=ii[2],Nn[3]=ii[3],Nn[4]=ii[4],Nn[5]=ii[5],Nn[6]=ii[6],Nn[7]=ii[7],Nn[8]=ii[8],Nn[9]=ii[9],Nn[10]=ii[10],Nn[11]=ii[11],Nn[12]=ii[12],Nn[13]=ii[13],Nn[14]=ii[14],Nn[15]=ii[15],Nn)),ci=xr.loB,Tt.uniformMatrix4fv(Y.location,!1,Array.isArray(ci)||ci instanceof Float32Array?ci:(ia[0]=ci[0],ia[1]=ci[1],ia[2]=ci[2],ia[3]=ci[3],ia[4]=ci[4],ia[5]=ci[5],ia[6]=ci[6],ia[7]=ci[7],ia[8]=ci[8],ia[9]=ci[9],ia[10]=ci[10],ia[11]=ci[11],ia[12]=ci[12],ia[13]=ci[13],ia[14]=ci[14],ia[15]=ci[15],ia)),li=xr.loC,Tt.uniformMatrix4fv(ne.location,!1,Array.isArray(li)||li instanceof Float32Array?li:(Jr[0]=li[0],Jr[1]=li[1],Jr[2]=li[2],Jr[3]=li[3],Jr[4]=li[4],Jr[5]=li[5],Jr[6]=li[6],Jr[7]=li[7],Jr[8]=li[8],Jr[9]=li[9],Jr[10]=li[10],Jr[11]=li[11],Jr[12]=li[12],Jr[13]=li[13],Jr[14]=li[14],Jr[15]=li[15],Jr)),mi=xr.loD,Tt.uniformMatrix4fv(ye.location,!1,Array.isArray(mi)||mi instanceof Float32Array?mi:(Ci[0]=mi[0],Ci[1]=mi[1],Ci[2]=mi[2],Ci[3]=mi[3],Ci[4]=mi[4],Ci[5]=mi[5],Ci[6]=mi[6],Ci[7]=mi[7],Ci[8]=mi[8],Ci[9]=mi[9],Ci[10]=mi[10],Ci[11]=mi[11],Ci[12]=mi[12],Ci[13]=mi[13],Ci[14]=mi[14],Ci[15]=mi[15],Ci)),xi=xr.maskHeight,Tt.uniform1f(U.location,xi),Oi=xr.maskTexture,Oi&&Oi._reglType==="framebuffer"&&(Oi=Oi.color[0]),ua=Oi._texture,Tt.uniform1i(se.location,ua.bind()),Tt.uniform1i(Ae.location,be.bind()),xa=xr.resolution,ao=xa[0],ho=xa[1],Tt.uniform2f(me.location,ao,ho),Fo=xr.viewBoxPos,ls=Fo[0],Io=Fo[1],Tt.uniform2f(ue.location,ls,Io),Ps=xr.viewBoxSize,xs=Ps[0],us=Ps[1],Tt.uniform2f(pe.location,xs,us),Ni=ji.elements,Ni?Tt.bindBuffer(34963,Ni.buffer.buffer):Qi.currentVAO&&(Ni=na.getElements(Qi.currentVAO.elements),Ni&&Tt.bindBuffer(34963,Ni.buffer.buffer)),io=xr.offset,Eo=xr.count,Eo&&(Ni?Tt.drawElements(1,Eo,Ni.type,io<<(Ni.type-5121>>1)):Tt.drawArrays(1,io,Eo),Fr.dirty=!0,Qi.setVAO(null),_i.viewportWidth=mo,_i.viewportHeight=Oa,Fr.profile=Sa,ua.unbind(),be.unbind())},scope:function(xr,Ln,xn){var da,Mi,Xr,Gn,to,Jn,ro,mo,Oa,Si,co,Pn,Fa,oa,Hn,va,ma,Sa,Ei,jr,An,Za,Ga,Ca,za,Wn,Xi,sa,Mo,ya,Qn,Tn,Da,zn,Ia,$i,In,qi,la,ga,go,eo,So,Mn,Ao,Ya,Co,Ii,qa,Zn,Ha,Wa,$a,Fe,Ge,ot,rt,mt,It,Bt,Ot,nr,zr,Wt,Rt,er,kr,Vr,ii,ci,li,mi,xi,Oi,ua,xa,ao,ho,Fo,ls,Io,Ps,xs,us,Ni,io,Eo,oo,xo,bo,so,Yo,Uo,es,jo,Qo,Ks,js,Ds,_s,as,Es,To,Go,qs,Ts,Dl,_l,wl,vl,Al,ml,Hl,Tl,yl,ae,fe,Te,ke,Ne,Oe,He,ct,xt,pt,_t,Lt,Jt,fr,Or,Pi,Rn,fo,Xo,Bo,fs,cs,Ns,zl,Is,Nl,ul,cl,vf,wf,bu,_u,ju,wu,Eu,Af,mf,ef,Nf,ic,R,G,ee,he,ve,_e,je,qe,Je,ht,dt,Ft,Et,Qt,Mr,zt,Yt,sr,Ar,br,Xt,_n,ha,Xa,yo,Wo,Zo,Qs,rs,Us,jl,Ou,Jl,po,el,nl,Vl,ku,tf,Tf,nc,ph,tt,qt,Gt,hi,Ki,fn,Yi,ba,lo,uo,vo,Vs,ys,Oo,ra,Wr,Sn,Ka,_o,Ea,Ko,Vo,Ws,_a,fa,hs,qo,Do,Lo,ds,$s,xl,$o,bs,hl,dl,Wl,Xf,qc,ru,m0,rf,Dh,jh,y0,_c,wc,Oc,Rl,ah,sf,Wh,g0,x0,kl,uu,Mf,Nt,en,on,ks,ou,nf,Ms,Pt,Ht,cr,Ji,dn,oi,$r,Dr,tr,gr,Zt,bi,En,Qa,Xs,vs,is,Ys,Rs,zs,ns,Ss,Fs,bl,Sf,b0,Dp,Iv,Rv,ad,mg,Kle,Jle;da=xr.viewportX,Pr.x=da,Mi=xr.viewportY,Pr.y=Mi,Xr=xr.viewportWidth,Pr.width=Xr,Gn=xr.viewportHeight,Pr.height=Gn,to=Pr.x|0,Jn=Pr.y|0,ro="width"in Pr?Pr.width|0:_i.framebufferWidth-to,mo="height"in Pr?Pr.height|0:_i.framebufferHeight-Jn,Oa=_i.viewportWidth,_i.viewportWidth=ro,Si=_i.viewportHeight,_i.viewportHeight=mo,co=ei[0],ei[0]=to,Pn=ei[1],ei[1]=Jn,Fa=ei[2],ei[2]=ro,oa=ei[3],ei[3]=mo,Hn=ca[0],ca[0]=ce,va=ca[1],ca[1]=Be,ma=ca[2],ca[2]=$e,Sa=ca[3],ca[3]=Ze,Ei=ti.blend_enable,ti.blend_enable=it,jr=hn[0],hn[0]=nt,An=hn[1],hn[1]=Ue,Za=tn[0],tn[0]=xe,Ga=tn[1],tn[1]=Re,Ca=tn[2],tn[2]=Qe,za=tn[3],tn[3]=Pe,Wn=ti.cull_enable,ti.cull_enable=De,Xi=ti.cull_face,ti.cull_face=Ve,sa=ti.depth_enable,ti.depth_enable=Le,Mo=ti.depth_func,ti.depth_func=Se,ya=ti.depth_mask,ti.depth_mask=ze,Qn=rn[0],rn[0]=st,Tn=rn[1],rn[1]=ft,Da=ti.dither,ti.dither=wt,zn=ti.lineWidth,ti.lineWidth=At,Ia=xr.scissorX,ri.x=Ia,$i=xr.scissorY,ri.y=$i,In=xr.scissorWidth,ri.width=In,qi=xr.scissorHeight,ri.height=qi,la=ri.x|0,ga=ri.y|0,go="width"in ri?ri.width|0:_i.framebufferWidth-la,eo="height"in ri?ri.height|0:_i.framebufferHeight-ga,So=wn[0],wn[0]=la,Mn=wn[1],wn[1]=ga,Ao=wn[2],wn[2]=go,Ya=wn[3],wn[3]=eo,Co=ti.scissor_enable,ti.scissor_enable=Vt,Ii=Fr.profile,Fr.profile=!1,qa=xr.offset,Zn=ji.offset,ji.offset=qa,Ha=xr.count,Wa=ji.count,ji.count=Ha,$a=ji.primitive,ji.primitive=Dt,Fe=_r[St],_r[St]=yt,Ge=xr.resolution,ot=_r[rr],_r[rr]=Ge,rt=xr.viewBoxPos,mt=_r[Ke],_r[Ke]=rt,It=xr.viewBoxSize,Bt=_r[at],_r[at]=It,Ot=xr.dim0A,nr=_r[lt],_r[lt]=Ot,zr=xr.dim1A,Wt=_r[vt],_r[vt]=zr,Rt=xr.dim0B,er=_r[We],_r[We]=Rt,kr=xr.dim1B,Vr=_r[ut],_r[ut]=kr,ii=xr.dim0C,ci=_r[kt],_r[kt]=ii,li=xr.dim1C,mi=_r[$t],_r[$t]=li,xi=xr.dim0D,Oi=_r[or],_r[or]=xi,ua=xr.dim1D,xa=_r[Lr],_r[Lr]=ua,ao=xr.loA,ho=_r[Er],_r[Er]=ao,Fo=xr.hiA,ls=_r[hr],_r[hr]=Fo,Io=xr.loB,Ps=_r[ni],_r[ni]=Io,xs=xr.hiB,us=_r[Kr],_r[Kr]=xs,Ni=xr.loC,io=_r[si],_r[si]=Ni,Eo=xr.hiC,oo=_r[Tr],_r[Tr]=Eo,xo=xr.loD,bo=_r[vr],_r[vr]=xo,so=xr.hiD,Yo=_r[Hr],_r[Hr]=so,Uo=xr.contextColor,es=_r[Di],_r[Di]=Uo,jo=xr.maskTexture,Qo=_r[gn],_r[gn]=jo,Ks=xr.drwLayer,js=_r[wr],_r[wr]=Ks,Ds=xr.maskHeight,_s=_r[qr],_r[qr]=Ds,as=Ut.state,Ut.state=1,Es=Ut.x,Ut.x=0,To=Ut.y,Ut.y=0,Go=Ut.z,Ut.z=0,qs=Ut.w,Ut.w=0,Ts=Ut.buffer,Ut.buffer=v,Dl=Ut.size,Ut.size=0,_l=Ut.normalized,Ut.normalized=!1,wl=Ut.type,Ut.type=v.dtype,vl=Ut.offset,Ut.offset=0,Al=Ut.stride,Ut.stride=0,ml=Ut.divisor,Ut.divisor=0,Hl=jt.state,jt.state=1,Tl=jt.x,jt.x=0,yl=jt.y,jt.y=0,ae=jt.z,jt.z=0,fe=jt.w,jt.w=0,Te=jt.buffer,jt.buffer=m,ke=jt.size,jt.size=0,Ne=jt.normalized,jt.normalized=!1,Oe=jt.type,jt.type=m.dtype,He=jt.offset,jt.offset=0,ct=jt.stride,jt.stride=0,xt=jt.divisor,jt.divisor=0,pt=pr.state,pr.state=1,_t=pr.x,pr.x=0,Lt=pr.y,pr.y=0,Jt=pr.z,pr.z=0,fr=pr.w,pr.w=0,Or=pr.buffer,pr.buffer=_,Pi=pr.size,pr.size=0,Rn=pr.normalized,pr.normalized=!1,fo=pr.type,pr.type=_.dtype,Xo=pr.offset,pr.offset=0,Bo=pr.stride,pr.stride=0,fs=pr.divisor,pr.divisor=0,cs=Ur.state,Ur.state=1,Ns=Ur.x,Ur.x=0,zl=Ur.y,Ur.y=0,Is=Ur.z,Ur.z=0,Nl=Ur.w,Ur.w=0,ul=Ur.buffer,Ur.buffer=M,cl=Ur.size,Ur.size=0,vf=Ur.normalized,Ur.normalized=!1,wf=Ur.type,Ur.type=M.dtype,bu=Ur.offset,Ur.offset=0,_u=Ur.stride,Ur.stride=0,ju=Ur.divisor,Ur.divisor=0,wu=Sr.state,Sr.state=1,Eu=Sr.x,Sr.x=0,Af=Sr.y,Sr.y=0,mf=Sr.z,Sr.z=0,ef=Sr.w,Sr.w=0,Nf=Sr.buffer,Sr.buffer=A,ic=Sr.size,Sr.size=0,R=Sr.normalized,Sr.normalized=!1,G=Sr.type,Sr.type=A.dtype,ee=Sr.offset,Sr.offset=0,he=Sr.stride,Sr.stride=0,ve=Sr.divisor,Sr.divisor=0,_e=Cr.state,Cr.state=1,je=Cr.x,Cr.x=0,qe=Cr.y,Cr.y=0,Je=Cr.z,Cr.z=0,ht=Cr.w,Cr.w=0,dt=Cr.buffer,Cr.buffer=g,Ft=Cr.size,Cr.size=0,Et=Cr.normalized,Cr.normalized=!1,Qt=Cr.type,Cr.type=g.dtype,Mr=Cr.offset,Cr.offset=0,zt=Cr.stride,Cr.stride=0,Yt=Cr.divisor,Cr.divisor=0,sr=di.state,di.state=1,Ar=di.x,di.x=0,br=di.y,di.y=0,Xt=di.z,di.z=0,_n=di.w,di.w=0,ha=di.buffer,di.buffer=S,Xa=di.size,di.size=0,yo=di.normalized,di.normalized=!1,Wo=di.type,di.type=S.dtype,Zo=di.offset,di.offset=0,Qs=di.stride,di.stride=0,rs=di.divisor,di.divisor=0,Us=Fi.state,Fi.state=1,jl=Fi.x,Fi.x=0,Ou=Fi.y,Fi.y=0,Jl=Fi.z,Fi.z=0,po=Fi.w,Fi.w=0,el=Fi.buffer,Fi.buffer=k,nl=Fi.size,Fi.size=0,Vl=Fi.normalized,Fi.normalized=!1,ku=Fi.type,Fi.type=k.dtype,tf=Fi.offset,Fi.offset=0,Tf=Fi.stride,Fi.stride=0,nc=Fi.divisor,Fi.divisor=0,ph=ir.state,ir.state=1,tt=ir.x,ir.x=0,qt=ir.y,ir.y=0,Gt=ir.z,ir.z=0,hi=ir.w,ir.w=0,Ki=ir.buffer,ir.buffer=L,fn=ir.size,ir.size=0,Yi=ir.normalized,ir.normalized=!1,ba=ir.type,ir.type=L.dtype,lo=ir.offset,ir.offset=0,uo=ir.stride,ir.stride=0,vo=ir.divisor,ir.divisor=0,Vs=Kt.state,Kt.state=1,ys=Kt.x,Kt.x=0,Oo=Kt.y,Kt.y=0,ra=Kt.z,Kt.z=0,Wr=Kt.w,Kt.w=0,Sn=Kt.buffer,Kt.buffer=I,Ka=Kt.size,Kt.size=0,_o=Kt.normalized,Kt.normalized=!1,Ea=Kt.type,Kt.type=I.dtype,Ko=Kt.offset,Kt.offset=0,Vo=Kt.stride,Kt.stride=0,Ws=Kt.divisor,Kt.divisor=0,_a=Me.state,Me.state=1,fa=Me.x,Me.x=0,hs=Me.y,Me.y=0,qo=Me.z,Me.z=0,Do=Me.w,Me.w=0,Lo=Me.buffer,Me.buffer=z,ds=Me.size,Me.size=0,$s=Me.normalized,Me.normalized=!1,xl=Me.type,Me.type=z.dtype,$o=Me.offset,Me.offset=0,bs=Me.stride,Me.stride=0,hl=Me.divisor,Me.divisor=0,dl=Xe.state,Xe.state=1,Wl=Xe.x,Xe.x=0,Xf=Xe.y,Xe.y=0,qc=Xe.z,Xe.z=0,ru=Xe.w,Xe.w=0,m0=Xe.buffer,Xe.buffer=O,rf=Xe.size,Xe.size=0,Dh=Xe.normalized,Xe.normalized=!1,jh=Xe.type,Xe.type=O.dtype,y0=Xe.offset,Xe.offset=0,_c=Xe.stride,Xe.stride=0,wc=Xe.divisor,Xe.divisor=0,Oc=Ye.state,Ye.state=1,Rl=Ye.x,Ye.x=0,ah=Ye.y,Ye.y=0,sf=Ye.z,Ye.z=0,Wh=Ye.w,Ye.w=0,g0=Ye.buffer,Ye.buffer=X,x0=Ye.size,Ye.size=0,kl=Ye.normalized,Ye.normalized=!1,uu=Ye.type,Ye.type=X.dtype,Mf=Ye.offset,Ye.offset=0,Nt=Ye.stride,Ye.stride=0,en=Ye.divisor,Ye.divisor=0,on=et.state,et.state=1,ks=et.x,et.x=0,ou=et.y,et.y=0,nf=et.z,et.z=0,Ms=et.w,et.w=0,Pt=et.buffer,et.buffer=j,Ht=et.size,et.size=0,cr=et.normalized,et.normalized=!1,Ji=et.type,et.type=j.dtype,dn=et.offset,et.offset=0,oi=et.stride,et.stride=0,$r=et.divisor,et.divisor=0,Dr=gt.state,gt.state=1,tr=gt.x,gt.x=0,gr=gt.y,gt.y=0,Zt=gt.z,gt.z=0,bi=gt.w,gt.w=0,En=gt.buffer,gt.buffer=Q,Qa=gt.size,gt.size=0,Xs=gt.normalized,gt.normalized=!1,vs=gt.type,gt.type=Q.dtype,is=gt.offset,gt.offset=0,Ys=gt.stride,gt.stride=0,Rs=gt.divisor,gt.divisor=0,zs=bt.state,bt.state=1,ns=bt.x,bt.x=0,Ss=bt.y,bt.y=0,Fs=bt.z,bt.z=0,bl=bt.w,bt.w=0,Sf=bt.buffer,bt.buffer=d,b0=bt.size,bt.size=0,Dp=bt.normalized,bt.normalized=!1,Iv=bt.type,bt.type=d.dtype,Rv=bt.offset,bt.offset=0,ad=bt.stride,bt.stride=0,mg=bt.divisor,bt.divisor=0,Kle=$n.vert,$n.vert=lr,Jle=$n.frag,$n.frag=Ct,Fr.dirty=!0,Ln(_i,xr,xn),_i.viewportWidth=Oa,_i.viewportHeight=Si,ei[0]=co,ei[1]=Pn,ei[2]=Fa,ei[3]=oa,ca[0]=Hn,ca[1]=va,ca[2]=ma,ca[3]=Sa,ti.blend_enable=Ei,hn[0]=jr,hn[1]=An,tn[0]=Za,tn[1]=Ga,tn[2]=Ca,tn[3]=za,ti.cull_enable=Wn,ti.cull_face=Xi,ti.depth_enable=sa,ti.depth_func=Mo,ti.depth_mask=ya,rn[0]=Qn,rn[1]=Tn,ti.dither=Da,ti.lineWidth=zn,wn[0]=So,wn[1]=Mn,wn[2]=Ao,wn[3]=Ya,ti.scissor_enable=Co,Fr.profile=Ii,ji.offset=Zn,ji.count=Wa,ji.primitive=$a,_r[St]=Fe,_r[rr]=ot,_r[Ke]=mt,_r[at]=Bt,_r[lt]=nr,_r[vt]=Wt,_r[We]=er,_r[ut]=Vr,_r[kt]=ci,_r[$t]=mi,_r[or]=Oi,_r[Lr]=xa,_r[Er]=ho,_r[hr]=ls,_r[ni]=Ps,_r[Kr]=us,_r[si]=io,_r[Tr]=oo,_r[vr]=bo,_r[Hr]=Yo,_r[Di]=es,_r[gn]=Qo,_r[wr]=js,_r[qr]=_s,Ut.state=as,Ut.x=Es,Ut.y=To,Ut.z=Go,Ut.w=qs,Ut.buffer=Ts,Ut.size=Dl,Ut.normalized=_l,Ut.type=wl,Ut.offset=vl,Ut.stride=Al,Ut.divisor=ml,jt.state=Hl,jt.x=Tl,jt.y=yl,jt.z=ae,jt.w=fe,jt.buffer=Te,jt.size=ke,jt.normalized=Ne,jt.type=Oe,jt.offset=He,jt.stride=ct,jt.divisor=xt,pr.state=pt,pr.x=_t,pr.y=Lt,pr.z=Jt,pr.w=fr,pr.buffer=Or,pr.size=Pi,pr.normalized=Rn,pr.type=fo,pr.offset=Xo,pr.stride=Bo,pr.divisor=fs,Ur.state=cs,Ur.x=Ns,Ur.y=zl,Ur.z=Is,Ur.w=Nl,Ur.buffer=ul,Ur.size=cl,Ur.normalized=vf,Ur.type=wf,Ur.offset=bu,Ur.stride=_u,Ur.divisor=ju,Sr.state=wu,Sr.x=Eu,Sr.y=Af,Sr.z=mf,Sr.w=ef,Sr.buffer=Nf,Sr.size=ic,Sr.normalized=R,Sr.type=G,Sr.offset=ee,Sr.stride=he,Sr.divisor=ve,Cr.state=_e,Cr.x=je,Cr.y=qe,Cr.z=Je,Cr.w=ht,Cr.buffer=dt,Cr.size=Ft,Cr.normalized=Et,Cr.type=Qt,Cr.offset=Mr,Cr.stride=zt,Cr.divisor=Yt,di.state=sr,di.x=Ar,di.y=br,di.z=Xt,di.w=_n,di.buffer=ha,di.size=Xa,di.normalized=yo,di.type=Wo,di.offset=Zo,di.stride=Qs,di.divisor=rs,Fi.state=Us,Fi.x=jl,Fi.y=Ou,Fi.z=Jl,Fi.w=po,Fi.buffer=el,Fi.size=nl,Fi.normalized=Vl,Fi.type=ku,Fi.offset=tf,Fi.stride=Tf,Fi.divisor=nc,ir.state=ph,ir.x=tt,ir.y=qt,ir.z=Gt,ir.w=hi,ir.buffer=Ki,ir.size=fn,ir.normalized=Yi,ir.type=ba,ir.offset=lo,ir.stride=uo,ir.divisor=vo,Kt.state=Vs,Kt.x=ys,Kt.y=Oo,Kt.z=ra,Kt.w=Wr,Kt.buffer=Sn,Kt.size=Ka,Kt.normalized=_o,Kt.type=Ea,Kt.offset=Ko,Kt.stride=Vo,Kt.divisor=Ws,Me.state=_a,Me.x=fa,Me.y=hs,Me.z=qo,Me.w=Do,Me.buffer=Lo,Me.size=ds,Me.normalized=$s,Me.type=xl,Me.offset=$o,Me.stride=bs,Me.divisor=hl,Xe.state=dl,Xe.x=Wl,Xe.y=Xf,Xe.z=qc,Xe.w=ru,Xe.buffer=m0,Xe.size=rf,Xe.normalized=Dh,Xe.type=jh,Xe.offset=y0,Xe.stride=_c,Xe.divisor=wc,Ye.state=Oc,Ye.x=Rl,Ye.y=ah,Ye.z=sf,Ye.w=Wh,Ye.buffer=g0,Ye.size=x0,Ye.normalized=kl,Ye.type=uu,Ye.offset=Mf,Ye.stride=Nt,Ye.divisor=en,et.state=on,et.x=ks,et.y=ou,et.z=nf,et.w=Ms,et.buffer=Pt,et.size=Ht,et.normalized=cr,et.type=Ji,et.offset=dn,et.stride=oi,et.divisor=$r,gt.state=Dr,gt.x=tr,gt.y=gr,gt.z=Zt,gt.w=bi,gt.buffer=En,gt.size=Qa,gt.normalized=Xs,gt.type=vs,gt.offset=is,gt.stride=Ys,gt.divisor=Rs,bt.state=zs,bt.x=ns,bt.y=Ss,bt.z=Fs,bt.w=bl,bt.buffer=Sf,bt.size=b0,bt.normalized=Dp,bt.type=Iv,bt.offset=Rv,bt.stride=ad,bt.divisor=mg,$n.vert=Kle,$n.frag=Jle,Fr.dirty=!0},batch:function(xr,Ln){var xn,da,Mi,Xr;if(xn=Yr.next,xn!==Yr.cur&&(xn?Tt.bindFramebuffer(36160,xn.framebuffer):Tt.bindFramebuffer(36160,null),Yr.cur=xn),Fr.dirty){var Gn,to,Jn,ro,mo,Oa,Si,co,Pn,Fa,oa,Hn,va,ma,Sa,Ei,jr,An,Za,Ga,Ca,za,Wn,Xi,sa;Gn=ea[0],to=ea[1],Jn=ea[2],ro=ea[3],(Gn!==qn[0]||to!==qn[1]||Jn!==qn[2]||ro!==qn[3])&&(Tt.colorMask(Gn,to,Jn,ro),qn[0]=Gn,qn[1]=to,qn[2]=Jn,qn[3]=ro),mo=ti.frontFace,mo!==Fr.frontFace&&(Tt.frontFace(mo),Fr.frontFace=mo),Oa=ti.polygonOffset_enable,Oa!==Fr.polygonOffset_enable&&(Oa?Tt.enable(32823):Tt.disable(32823),Fr.polygonOffset_enable=Oa),Si=pi[0],co=pi[1],(Si!==Fn[0]||co!==Fn[1])&&(Tt.polygonOffset(Si,co),Fn[0]=Si,Fn[1]=co),Pn=ti.sample_alpha,Pn!==Fr.sample_alpha&&(Pn?Tt.enable(32926):Tt.disable(32926),Fr.sample_alpha=Pn),Fa=ti.sample_enable,Fa!==Fr.sample_enable&&(Fa?Tt.enable(32928):Tt.disable(32928),Fr.sample_enable=Fa),oa=Pa[0],Hn=Pa[1],(oa!==dr[0]||Hn!==dr[1])&&(Tt.sampleCoverage(oa,Hn),dr[0]=oa,dr[1]=Hn),va=ti.stencil_enable,va!==Fr.stencil_enable&&(va?Tt.enable(2960):Tt.disable(2960),Fr.stencil_enable=va),ma=ti.stencil_mask,ma!==Fr.stencil_mask&&(Tt.stencilMask(ma),Fr.stencil_mask=ma),Sa=ai[0],Ei=ai[1],jr=ai[2],(Sa!==Zi[0]||Ei!==Zi[1]||jr!==Zi[2])&&(Tt.stencilFunc(Sa,Ei,jr),Zi[0]=Sa,Zi[1]=Ei,Zi[2]=jr),An=Vi[0],Za=Vi[1],Ga=Vi[2],Ca=Vi[3],(An!==pa[0]||Za!==pa[1]||Ga!==pa[2]||Ca!==pa[3])&&(Tt.stencilOpSeparate(An,Za,Ga,Ca),pa[0]=An,pa[1]=Za,pa[2]=Ga,pa[3]=Ca),za=Na[0],Wn=Na[1],Xi=Na[2],sa=Na[3],(za!==an[0]||Wn!==an[1]||Xi!==an[2]||sa!==an[3])&&(Tt.stencilOpSeparate(za,Wn,Xi,sa),an[0]=za,an[1]=Wn,an[2]=Xi,an[3]=sa)}Tt.blendColor(0,0,0,0),Kn[0]=0,Kn[1]=0,Kn[2]=0,Kn[3]=0,ur?Tt.enable(3042):Tt.disable(3042),Fr.blend_enable=ur,Tt.blendEquationSeparate(32774,32774),Ta[0]=32774,Ta[1]=32774,Tt.blendFuncSeparate(770,771,1,1),wi[0]=770,wi[1]=771,wi[2]=1,wi[3]=1,Ir?Tt.enable(2884):Tt.disable(2884),Fr.cull_enable=Ir,Tt.cullFace(Rr),Fr.cull_face=Rr,Nr?Tt.enable(2929):Tt.disable(2929),Fr.depth_enable=Nr,Tt.depthFunc(gi),Fr.depth_func=gi,Tt.depthMask(ui),Fr.depth_mask=ui,Tt.depthRange(0,1),Ai[0]=0,Ai[1]=1,Qr?Tt.enable(3024):Tt.disable(3024),Fr.dither=Qr,Tt.lineWidth(Ui),Fr.lineWidth=Ui,ln?Tt.enable(3089):Tt.disable(3089),Fr.scissor_enable=ln,da=Fr.profile,Fr.profile=!1,Tt.useProgram(h.program);var Mo,ya,Qn,Tn,Da,zn,Ia,$i,In,qi,la,ga,go,eo,So,Mn,Ao,Ya,Co,Ii,qa,Zn,Ha,Wa,$a,Fe,Ge,ot,rt,mt,It,Bt,Ot;for(Qi.setVAO(null),Mo=p.location,ya=Wi[Mo],ya.buffer||Tt.enableVertexAttribArray(Mo),(ya.type!==d.dtype||ya.size!==4||ya.buffer!==d||ya.normalized!==!1||ya.offset!==0||ya.stride!==0)&&(Tt.bindBuffer(34962,d.buffer),Tt.vertexAttribPointer(Mo,4,d.dtype,!1,0,0),ya.type=d.dtype,ya.size=4,ya.buffer=d,ya.normalized=!1,ya.offset=0,ya.stride=0),Qn=y.location,Tn=Wi[Qn],Tn.buffer||Tt.enableVertexAttribArray(Qn),(Tn.type!==v.dtype||Tn.size!==4||Tn.buffer!==v||Tn.normalized!==!1||Tn.offset!==0||Tn.stride!==0)&&(Tt.bindBuffer(34962,v.buffer),Tt.vertexAttribPointer(Qn,4,v.dtype,!1,0,0),Tn.type=v.dtype,Tn.size=4,Tn.buffer=v,Tn.normalized=!1,Tn.offset=0,Tn.stride=0),Da=w.location,zn=Wi[Da],zn.buffer||Tt.enableVertexAttribArray(Da),(zn.type!==m.dtype||zn.size!==4||zn.buffer!==m||zn.normalized!==!1||zn.offset!==0||zn.stride!==0)&&(Tt.bindBuffer(34962,m.buffer),Tt.vertexAttribPointer(Da,4,m.dtype,!1,0,0),zn.type=m.dtype,zn.size=4,zn.buffer=m,zn.normalized=!1,zn.offset=0,zn.stride=0),Ia=b.location,$i=Wi[Ia],$i.buffer||Tt.enableVertexAttribArray(Ia),($i.type!==_.dtype||$i.size!==4||$i.buffer!==_||$i.normalized!==!1||$i.offset!==0||$i.stride!==0)&&(Tt.bindBuffer(34962,_.buffer),Tt.vertexAttribPointer(Ia,4,_.dtype,!1,0,0),$i.type=_.dtype,$i.size=4,$i.buffer=_,$i.normalized=!1,$i.offset=0,$i.stride=0),In=x.location,qi=Wi[In],qi.buffer||Tt.enableVertexAttribArray(In),(qi.type!==M.dtype||qi.size!==4||qi.buffer!==M||qi.normalized!==!1||qi.offset!==0||qi.stride!==0)&&(Tt.bindBuffer(34962,M.buffer),Tt.vertexAttribPointer(In,4,M.dtype,!1,0,0),qi.type=M.dtype,qi.size=4,qi.buffer=M,qi.normalized=!1,qi.offset=0,qi.stride=0),la=T.location,ga=Wi[la],ga.buffer||Tt.enableVertexAttribArray(la),(ga.type!==A.dtype||ga.size!==4||ga.buffer!==A||ga.normalized!==!1||ga.offset!==0||ga.stride!==0)&&(Tt.bindBuffer(34962,A.buffer),Tt.vertexAttribPointer(la,4,A.dtype,!1,0,0),ga.type=A.dtype,ga.size=4,ga.buffer=A,ga.normalized=!1,ga.offset=0,ga.stride=0),go=E.location,eo=Wi[go],eo.buffer||Tt.enableVertexAttribArray(go),(eo.type!==g.dtype||eo.size!==4||eo.buffer!==g||eo.normalized!==!1||eo.offset!==0||eo.stride!==0)&&(Tt.bindBuffer(34962,g.buffer),Tt.vertexAttribPointer(go,4,g.dtype,!1,0,0),eo.type=g.dtype,eo.size=4,eo.buffer=g,eo.normalized=!1,eo.offset=0,eo.stride=0),So=C.location,Mn=Wi[So],Mn.buffer||Tt.enableVertexAttribArray(So),(Mn.type!==S.dtype||Mn.size!==4||Mn.buffer!==S||Mn.normalized!==!1||Mn.offset!==0||Mn.stride!==0)&&(Tt.bindBuffer(34962,S.buffer),Tt.vertexAttribPointer(So,4,S.dtype,!1,0,0),Mn.type=S.dtype,Mn.size=4,Mn.buffer=S,Mn.normalized=!1,Mn.offset=0,Mn.stride=0),Ao=D.location,Ya=Wi[Ao],Ya.buffer||Tt.enableVertexAttribArray(Ao),(Ya.type!==k.dtype||Ya.size!==4||Ya.buffer!==k||Ya.normalized!==!1||Ya.offset!==0||Ya.stride!==0)&&(Tt.bindBuffer(34962,k.buffer),Tt.vertexAttribPointer(Ao,4,k.dtype,!1,0,0),Ya.type=k.dtype,Ya.size=4,Ya.buffer=k,Ya.normalized=!1,Ya.offset=0,Ya.stride=0),Co=P.location,Ii=Wi[Co],Ii.buffer||Tt.enableVertexAttribArray(Co),(Ii.type!==L.dtype||Ii.size!==4||Ii.buffer!==L||Ii.normalized!==!1||Ii.offset!==0||Ii.stride!==0)&&(Tt.bindBuffer(34962,L.buffer),Tt.vertexAttribPointer(Co,4,L.dtype,!1,0,0),Ii.type=L.dtype,Ii.size=4,Ii.buffer=L,Ii.normalized=!1,Ii.offset=0,Ii.stride=0),qa=F.location,Zn=Wi[qa],Zn.buffer||Tt.enableVertexAttribArray(qa),(Zn.type!==I.dtype||Zn.size!==4||Zn.buffer!==I||Zn.normalized!==!1||Zn.offset!==0||Zn.stride!==0)&&(Tt.bindBuffer(34962,I.buffer),Tt.vertexAttribPointer(qa,4,I.dtype,!1,0,0),Zn.type=I.dtype,Zn.size=4,Zn.buffer=I,Zn.normalized=!1,Zn.offset=0,Zn.stride=0),Ha=B.location,Wa=Wi[Ha],Wa.buffer||Tt.enableVertexAttribArray(Ha),(Wa.type!==z.dtype||Wa.size!==4||Wa.buffer!==z||Wa.normalized!==!1||Wa.offset!==0||Wa.stride!==0)&&(Tt.bindBuffer(34962,z.buffer),Tt.vertexAttribPointer(Ha,4,z.dtype,!1,0,0),Wa.type=z.dtype,Wa.size=4,Wa.buffer=z,Wa.normalized=!1,Wa.offset=0,Wa.stride=0),$a=W.location,Fe=Wi[$a],Fe.buffer||Tt.enableVertexAttribArray($a),(Fe.type!==O.dtype||Fe.size!==4||Fe.buffer!==O||Fe.normalized!==!1||Fe.offset!==0||Fe.stride!==0)&&(Tt.bindBuffer(34962,O.buffer),Tt.vertexAttribPointer($a,4,O.dtype,!1,0,0),Fe.type=O.dtype,Fe.size=4,Fe.buffer=O,Fe.normalized=!1,Fe.offset=0,Fe.stride=0),Ge=Z.location,ot=Wi[Ge],ot.buffer||Tt.enableVertexAttribArray(Ge),(ot.type!==X.dtype||ot.size!==4||ot.buffer!==X||ot.normalized!==!1||ot.offset!==0||ot.stride!==0)&&(Tt.bindBuffer(34962,X.buffer),Tt.vertexAttribPointer(Ge,4,X.dtype,!1,0,0),ot.type=X.dtype,ot.size=4,ot.buffer=X,ot.normalized=!1,ot.offset=0,ot.stride=0),rt=q.location,mt=Wi[rt],mt.buffer||Tt.enableVertexAttribArray(rt),(mt.type!==j.dtype||mt.size!==4||mt.buffer!==j||mt.normalized!==!1||mt.offset!==0||mt.stride!==0)&&(Tt.bindBuffer(34962,j.buffer),Tt.vertexAttribPointer(rt,4,j.dtype,!1,0,0),mt.type=j.dtype,mt.size=4,mt.buffer=j,mt.normalized=!1,mt.offset=0,mt.stride=0),It=N.location,Bt=Wi[It],Bt.buffer||Tt.enableVertexAttribArray(It),(Bt.type!==Q.dtype||Bt.size!==4||Bt.buffer!==Q||Bt.normalized!==!1||Bt.offset!==0||Bt.stride!==0)&&(Tt.bindBuffer(34962,Q.buffer),Tt.vertexAttribPointer(It,4,Q.dtype,!1,0,0),Bt.type=Q.dtype,Bt.size=4,Bt.buffer=Q,Bt.normalized=!1,Bt.offset=0,Bt.stride=0),Tt.uniform1i(Ae.location,be.bind()),Ot=ji.elements,Ot?Tt.bindBuffer(34963,Ot.buffer.buffer):Qi.currentVAO&&(Ot=na.getElements(Qi.currentVAO.elements),Ot&&Tt.bindBuffer(34963,Ot.buffer.buffer)),Mi=0;Mi>1)):Tt.drawArrays(1,_t,Lt),_i.viewportWidth=ci,_i.viewportHeight=li,vl.unbind())}be.unbind(),Fr.dirty=!0,Qi.setVAO(null),Fr.profile=da}}}});var UJe=K((_ii,VJe)=>{"use strict";VJe.exports=function(t,r){"use strict";var i,n,a,o,s,l,u,f,c,h,d,p,v,y,m,w,_,b,M,x,A,T,g,E,S,C,k,D,L,P,I,F,z,B,O,W,X,Z,j,q,Q,N,V,J,H,$,te,ie,de,ge,Ie,Ce,le,re,Ee,we,oe,Y,ne,ye,U,se,Ae,be,me,ue,pe,ce,Be,$e,Ze;return i=t.gl,n=t.context,a=t.strings,o=t.next,s=t.current,l=t.draw,u=t.elements,f=t.buffer,c=t.shader,h=t.attributes,d=t.vao,p=t.uniforms,v=t.framebuffer,y=t.extensions,m=t.timer,w=t.isBufferArgs,_=o.blend_color,b=s.blend_color,M=o.blend_equation,x=s.blend_equation,A=o.blend_func,T=s.blend_func,g=o.depth_range,E=s.depth_range,S=o.colorMask,C=s.colorMask,k=o.polygonOffset_offset,D=s.polygonOffset_offset,L=o.sample_coverage,P=s.sample_coverage,I=o.stencil_func,F=s.stencil_func,z=o.stencil_opFront,B=s.stencil_opFront,O=o.stencil_opBack,W=s.stencil_opBack,X=o.scissor_box,Z=s.scissor_box,j=o.viewport,q=s.viewport,Q={points:0,point:0,lines:1,line:1,triangles:4,triangle:4,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},N={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},V={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},J={add:32774,subtract:32778,"reverse subtract":32779},H={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},$={int8:5120,int16:5122,int32:5124,uint8:5121,uint16:5123,uint32:5125,float:5126,float32:5126},te={cw:2304,ccw:2305},ie=o.blend_color,de=s.blend_color,ge=o.blend_equation,Ie=s.blend_equation,Ce=o.blend_func,le=s.blend_func,re=o.depth_range,Ee=s.depth_range,we=o.colorMask,oe=s.colorMask,Y=o.polygonOffset_offset,ne=s.polygonOffset_offset,ye=o.sample_coverage,U=s.sample_coverage,se=o.stencil_func,Ae=s.stencil_func,be=o.stencil_opFront,me=s.stencil_opFront,ue=o.stencil_opBack,pe=s.stencil_opBack,ce=o.scissor_box,Be=s.scissor_box,$e=o.viewport,Ze=s.viewport,{poll:function(){var it,nt,Ue,xe,Re,Qe,Pe,De,Ve,Le,Se,ze,st,ft,wt,At,Vt,Dt,yt,St,rr,Ke;s.dirty=!1,nt=o.dither,Ue=o.blend_enable,xe=o.depth_enable,Re=o.cull_enable,Qe=o.polygonOffset_enable,Pe=o.sample_alpha,De=o.sample_enable,Ve=o.stencil_enable,Le=o.scissor_enable,Se=o.depth_func,ze=s.depth_func,st=o.depth_mask,ft=s.depth_mask,wt=o.cull_face,At=s.cull_face,Vt=o.frontFace,Dt=s.frontFace,yt=o.lineWidth,St=s.lineWidth,rr=o.stencil_mask,Ke=s.stencil_mask,it=v.next,it!==v.cur&&(it?i.bindFramebuffer(36160,it.framebuffer):i.bindFramebuffer(36160,null),v.cur=it),nt!==s.dither&&(nt?i.enable(3024):i.disable(3024),s.dither=nt),Ue!==s.blend_enable&&(Ue?i.enable(3042):i.disable(3042),s.blend_enable=Ue),xe!==s.depth_enable&&(xe?i.enable(2929):i.disable(2929),s.depth_enable=xe),Re!==s.cull_enable&&(Re?i.enable(2884):i.disable(2884),s.cull_enable=Re),Qe!==s.polygonOffset_enable&&(Qe?i.enable(32823):i.disable(32823),s.polygonOffset_enable=Qe),Pe!==s.sample_alpha&&(Pe?i.enable(32926):i.disable(32926),s.sample_alpha=Pe),De!==s.sample_enable&&(De?i.enable(32928):i.disable(32928),s.sample_enable=De),Ve!==s.stencil_enable&&(Ve?i.enable(2960):i.disable(2960),s.stencil_enable=Ve),Le!==s.scissor_enable&&(Le?i.enable(3089):i.disable(3089),s.scissor_enable=Le),(ie[0]!==de[0]||ie[1]!==de[1]||ie[2]!==de[2]||ie[3]!==de[3])&&(i.blendColor(ie[0],ie[1],ie[2],ie[3]),de[0]=ie[0],de[1]=ie[1],de[2]=ie[2],de[3]=ie[3]),(ge[0]!==Ie[0]||ge[1]!==Ie[1])&&(i.blendEquationSeparate(ge[0],ge[1]),Ie[0]=ge[0],Ie[1]=ge[1]),(Ce[0]!==le[0]||Ce[1]!==le[1]||Ce[2]!==le[2]||Ce[3]!==le[3])&&(i.blendFuncSeparate(Ce[0],Ce[1],Ce[2],Ce[3]),le[0]=Ce[0],le[1]=Ce[1],le[2]=Ce[2],le[3]=Ce[3]),Se!==ze&&(i.depthFunc(Se),s.depth_func=Se),(re[0]!==Ee[0]||re[1]!==Ee[1])&&(i.depthRange(re[0],re[1]),Ee[0]=re[0],Ee[1]=re[1]),st!==ft&&(i.depthMask(st),s.depth_mask=st),(we[0]!==oe[0]||we[1]!==oe[1]||we[2]!==oe[2]||we[3]!==oe[3])&&(i.colorMask(we[0],we[1],we[2],we[3]),oe[0]=we[0],oe[1]=we[1],oe[2]=we[2],oe[3]=we[3]),wt!==At&&(i.cullFace(wt),s.cull_face=wt),Vt!==Dt&&(i.frontFace(Vt),s.frontFace=Vt),yt!==St&&(i.lineWidth(yt),s.lineWidth=yt),(Y[0]!==ne[0]||Y[1]!==ne[1])&&(i.polygonOffset(Y[0],Y[1]),ne[0]=Y[0],ne[1]=Y[1]),(ye[0]!==U[0]||ye[1]!==U[1])&&(i.sampleCoverage(ye[0],ye[1]),U[0]=ye[0],U[1]=ye[1]),rr!==Ke&&(i.stencilMask(rr),s.stencil_mask=rr),(se[0]!==Ae[0]||se[1]!==Ae[1]||se[2]!==Ae[2])&&(i.stencilFunc(se[0],se[1],se[2]),Ae[0]=se[0],Ae[1]=se[1],Ae[2]=se[2]),(be[0]!==me[0]||be[1]!==me[1]||be[2]!==me[2]||be[3]!==me[3])&&(i.stencilOpSeparate(be[0],be[1],be[2],be[3]),me[0]=be[0],me[1]=be[1],me[2]=be[2],me[3]=be[3]),(ue[0]!==pe[0]||ue[1]!==pe[1]||ue[2]!==pe[2]||ue[3]!==pe[3])&&(i.stencilOpSeparate(ue[0],ue[1],ue[2],ue[3]),pe[0]=ue[0],pe[1]=ue[1],pe[2]=ue[2],pe[3]=ue[3]),(ce[0]!==Be[0]||ce[1]!==Be[1]||ce[2]!==Be[2]||ce[3]!==Be[3])&&(i.scissor(ce[0],ce[1],ce[2],ce[3]),Be[0]=ce[0],Be[1]=ce[1],Be[2]=ce[2],Be[3]=ce[3]),($e[0]!==Ze[0]||$e[1]!==Ze[1]||$e[2]!==Ze[2]||$e[3]!==Ze[3])&&(i.viewport($e[0],$e[1],$e[2],$e[3]),Ze[0]=$e[0],Ze[1]=$e[1],Ze[2]=$e[2],Ze[3]=$e[3])},refresh:function(){var it,nt,Ue,xe,Re,Qe,Pe,De,Ve,Le,Se,ze,st,ft,wt,At,Vt,Dt,yt,St,rr,Ke,at,lt;s.dirty=!1,xe=o.dither,Re=o.blend_enable,Qe=o.depth_enable,Pe=o.cull_enable,De=o.polygonOffset_enable,Ve=o.sample_alpha,Le=o.sample_enable,Se=o.stencil_enable,ze=o.scissor_enable,st=o.depth_func,ft=s.depth_func,wt=o.depth_mask,At=s.depth_mask,Vt=o.cull_face,Dt=s.cull_face,yt=o.frontFace,St=s.frontFace,rr=o.lineWidth,Ke=s.lineWidth,at=o.stencil_mask,lt=s.stencil_mask,it=v.next,it?i.bindFramebuffer(36160,it.framebuffer):i.bindFramebuffer(36160,null),v.cur=it,nt=h,Ue=0;for(var vt=0;vt{"use strict";GJe.exports=function(t,r,i,n){"use strict";var a,o,s,l,u,f,c,h,d,p,v,y,m,w,_,b,M,x,A,T,g,E,S,C,k,D,L,P,I,F,z,B,O,W,X,Z,j,q,Q,N,V,J,H,$,te,ie,de,ge,Ie;return a=t.gl,o=t.context,s=t.strings,l=t.next,u=t.current,f=t.draw,c=t.elements,h=t.buffer,d=t.shader,p=t.attributes,v=t.vao,y=t.uniforms,m=t.framebuffer,w=t.extensions,_=t.timer,b=t.isBufferArgs,M=l.blend_color,x=u.blend_color,A=l.blend_equation,T=u.blend_equation,g=l.blend_func,E=u.blend_func,S=l.depth_range,C=u.depth_range,k=l.colorMask,D=u.colorMask,L=l.polygonOffset_offset,P=u.polygonOffset_offset,I=l.sample_coverage,F=u.sample_coverage,z=l.stencil_func,B=u.stencil_func,O=l.stencil_opFront,W=u.stencil_opFront,X=l.stencil_opBack,Z=u.stencil_opBack,j=l.scissor_box,q=u.scissor_box,Q=l.viewport,N=u.viewport,V={points:0,point:0,lines:1,line:1,triangles:4,triangle:4,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},J={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},H={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},$={add:32774,subtract:32778,"reverse subtract":32779},te={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},ie={int8:5120,int16:5122,int32:5124,uint8:5121,uint16:5123,uint32:5125,float:5126,float32:5126},de={cw:2304,ccw:2305},ge={},Ie={},{draw:function(Ce){var le,re,Ee,we,oe,Y,ne,ye;if(le=m.next,le!==m.cur&&(le?a.bindFramebuffer(36160,le.framebuffer):a.bindFramebuffer(36160,null),m.cur=le),u.dirty){var U,se,Ae,be,me,ue,pe,ce,Be,$e,Ze,it,nt,Ue,xe,Re,Qe,Pe,De,Ve,Le,Se,ze,st,ft,wt,At,Vt,Dt,yt,St,rr,Ke,at,lt,vt,We,ut,kt,$t,or,Lr,Er,hr,ni,Kr,si,Tr,vr,Hr,Di,gn,wr,qr;U=l.dither,U!==u.dither&&(U?a.enable(3024):a.disable(3024),u.dither=U),se=l.blend_enable,se!==u.blend_enable&&(se?a.enable(3042):a.disable(3042),u.blend_enable=se),Ae=M[0],be=M[1],me=M[2],ue=M[3],(Ae!==x[0]||be!==x[1]||me!==x[2]||ue!==x[3])&&(a.blendColor(Ae,be,me,ue),x[0]=Ae,x[1]=be,x[2]=me,x[3]=ue),pe=A[0],ce=A[1],(pe!==T[0]||ce!==T[1])&&(a.blendEquationSeparate(pe,ce),T[0]=pe,T[1]=ce),Be=g[0],$e=g[1],Ze=g[2],it=g[3],(Be!==E[0]||$e!==E[1]||Ze!==E[2]||it!==E[3])&&(a.blendFuncSeparate(Be,$e,Ze,it),E[0]=Be,E[1]=$e,E[2]=Ze,E[3]=it),nt=l.depth_enable,nt!==u.depth_enable&&(nt?a.enable(2929):a.disable(2929),u.depth_enable=nt),Ue=l.depth_func,Ue!==u.depth_func&&(a.depthFunc(Ue),u.depth_func=Ue),xe=S[0],Re=S[1],(xe!==C[0]||Re!==C[1])&&(a.depthRange(xe,Re),C[0]=xe,C[1]=Re),Qe=l.depth_mask,Qe!==u.depth_mask&&(a.depthMask(Qe),u.depth_mask=Qe),Pe=k[0],De=k[1],Ve=k[2],Le=k[3],(Pe!==D[0]||De!==D[1]||Ve!==D[2]||Le!==D[3])&&(a.colorMask(Pe,De,Ve,Le),D[0]=Pe,D[1]=De,D[2]=Ve,D[3]=Le),Se=l.cull_enable,Se!==u.cull_enable&&(Se?a.enable(2884):a.disable(2884),u.cull_enable=Se),ze=l.cull_face,ze!==u.cull_face&&(a.cullFace(ze),u.cull_face=ze),st=l.frontFace,st!==u.frontFace&&(a.frontFace(st),u.frontFace=st),ft=l.lineWidth,ft!==u.lineWidth&&(a.lineWidth(ft),u.lineWidth=ft),wt=l.polygonOffset_enable,wt!==u.polygonOffset_enable&&(wt?a.enable(32823):a.disable(32823),u.polygonOffset_enable=wt),At=L[0],Vt=L[1],(At!==P[0]||Vt!==P[1])&&(a.polygonOffset(At,Vt),P[0]=At,P[1]=Vt),Dt=l.sample_alpha,Dt!==u.sample_alpha&&(Dt?a.enable(32926):a.disable(32926),u.sample_alpha=Dt),yt=l.sample_enable,yt!==u.sample_enable&&(yt?a.enable(32928):a.disable(32928),u.sample_enable=yt),St=I[0],rr=I[1],(St!==F[0]||rr!==F[1])&&(a.sampleCoverage(St,rr),F[0]=St,F[1]=rr),Ke=l.stencil_enable,Ke!==u.stencil_enable&&(Ke?a.enable(2960):a.disable(2960),u.stencil_enable=Ke),at=l.stencil_mask,at!==u.stencil_mask&&(a.stencilMask(at),u.stencil_mask=at),lt=z[0],vt=z[1],We=z[2],(lt!==B[0]||vt!==B[1]||We!==B[2])&&(a.stencilFunc(lt,vt,We),B[0]=lt,B[1]=vt,B[2]=We),ut=O[0],kt=O[1],$t=O[2],or=O[3],(ut!==W[0]||kt!==W[1]||$t!==W[2]||or!==W[3])&&(a.stencilOpSeparate(ut,kt,$t,or),W[0]=ut,W[1]=kt,W[2]=$t,W[3]=or),Lr=X[0],Er=X[1],hr=X[2],ni=X[3],(Lr!==Z[0]||Er!==Z[1]||hr!==Z[2]||ni!==Z[3])&&(a.stencilOpSeparate(Lr,Er,hr,ni),Z[0]=Lr,Z[1]=Er,Z[2]=hr,Z[3]=ni),Kr=l.scissor_enable,Kr!==u.scissor_enable&&(Kr?a.enable(3089):a.disable(3089),u.scissor_enable=Kr),si=j[0],Tr=j[1],vr=j[2],Hr=j[3],(si!==q[0]||Tr!==q[1]||vr!==q[2]||Hr!==q[3])&&(a.scissor(si,Tr,vr,Hr),q[0]=si,q[1]=Tr,q[2]=vr,q[3]=Hr),Di=Q[0],gn=Q[1],wr=Q[2],qr=Q[3],(Di!==N[0]||gn!==N[1]||wr!==N[2]||qr!==N[3])&&(a.viewport(Di,gn,wr,qr),N[0]=Di,N[1]=gn,N[2]=wr,N[3]=qr),u.dirty=!1}re=u.profile,re&&(Ee=performance.now(),r.count++),we=d.frag,oe=d.vert,Y=d.program(oe,we),a.useProgram(Y.program),v.setVAO(null),ne=Y.id,ye=ge[ne],ye?ye.call(this,Ce):(ye=ge[ne]=i(Y),ye.call(this,Ce)),v.setVAO(null),re&&(r.cpuTime+=performance.now()-Ee)},scope:function(Ce,le,re){var Ee,we;Ee=u.profile,Ee&&(we=performance.now(),r.count++),le(o,Ce,re),Ee&&(r.cpuTime+=performance.now()-we)},batch:function(Ce,le){var re,Ee,we,oe,Y,ne,ye,U;if(re=m.next,re!==m.cur&&(re?a.bindFramebuffer(36160,re.framebuffer):a.bindFramebuffer(36160,null),m.cur=re),u.dirty){var se,Ae,be,me,ue,pe,ce,Be,$e,Ze,it,nt,Ue,xe,Re,Qe,Pe,De,Ve,Le,Se,ze,st,ft,wt,At,Vt,Dt,yt,St,rr,Ke,at,lt,vt,We,ut,kt,$t,or,Lr,Er,hr,ni,Kr,si,Tr,vr,Hr,Di,gn,wr,qr,Ut;se=l.dither,se!==u.dither&&(se?a.enable(3024):a.disable(3024),u.dither=se),Ae=l.blend_enable,Ae!==u.blend_enable&&(Ae?a.enable(3042):a.disable(3042),u.blend_enable=Ae),be=M[0],me=M[1],ue=M[2],pe=M[3],(be!==x[0]||me!==x[1]||ue!==x[2]||pe!==x[3])&&(a.blendColor(be,me,ue,pe),x[0]=be,x[1]=me,x[2]=ue,x[3]=pe),ce=A[0],Be=A[1],(ce!==T[0]||Be!==T[1])&&(a.blendEquationSeparate(ce,Be),T[0]=ce,T[1]=Be),$e=g[0],Ze=g[1],it=g[2],nt=g[3],($e!==E[0]||Ze!==E[1]||it!==E[2]||nt!==E[3])&&(a.blendFuncSeparate($e,Ze,it,nt),E[0]=$e,E[1]=Ze,E[2]=it,E[3]=nt),Ue=l.depth_enable,Ue!==u.depth_enable&&(Ue?a.enable(2929):a.disable(2929),u.depth_enable=Ue),xe=l.depth_func,xe!==u.depth_func&&(a.depthFunc(xe),u.depth_func=xe),Re=S[0],Qe=S[1],(Re!==C[0]||Qe!==C[1])&&(a.depthRange(Re,Qe),C[0]=Re,C[1]=Qe),Pe=l.depth_mask,Pe!==u.depth_mask&&(a.depthMask(Pe),u.depth_mask=Pe),De=k[0],Ve=k[1],Le=k[2],Se=k[3],(De!==D[0]||Ve!==D[1]||Le!==D[2]||Se!==D[3])&&(a.colorMask(De,Ve,Le,Se),D[0]=De,D[1]=Ve,D[2]=Le,D[3]=Se),ze=l.cull_enable,ze!==u.cull_enable&&(ze?a.enable(2884):a.disable(2884),u.cull_enable=ze),st=l.cull_face,st!==u.cull_face&&(a.cullFace(st),u.cull_face=st),ft=l.frontFace,ft!==u.frontFace&&(a.frontFace(ft),u.frontFace=ft),wt=l.lineWidth,wt!==u.lineWidth&&(a.lineWidth(wt),u.lineWidth=wt),At=l.polygonOffset_enable,At!==u.polygonOffset_enable&&(At?a.enable(32823):a.disable(32823),u.polygonOffset_enable=At),Vt=L[0],Dt=L[1],(Vt!==P[0]||Dt!==P[1])&&(a.polygonOffset(Vt,Dt),P[0]=Vt,P[1]=Dt),yt=l.sample_alpha,yt!==u.sample_alpha&&(yt?a.enable(32926):a.disable(32926),u.sample_alpha=yt),St=l.sample_enable,St!==u.sample_enable&&(St?a.enable(32928):a.disable(32928),u.sample_enable=St),rr=I[0],Ke=I[1],(rr!==F[0]||Ke!==F[1])&&(a.sampleCoverage(rr,Ke),F[0]=rr,F[1]=Ke),at=l.stencil_enable,at!==u.stencil_enable&&(at?a.enable(2960):a.disable(2960),u.stencil_enable=at),lt=l.stencil_mask,lt!==u.stencil_mask&&(a.stencilMask(lt),u.stencil_mask=lt),vt=z[0],We=z[1],ut=z[2],(vt!==B[0]||We!==B[1]||ut!==B[2])&&(a.stencilFunc(vt,We,ut),B[0]=vt,B[1]=We,B[2]=ut),kt=O[0],$t=O[1],or=O[2],Lr=O[3],(kt!==W[0]||$t!==W[1]||or!==W[2]||Lr!==W[3])&&(a.stencilOpSeparate(kt,$t,or,Lr),W[0]=kt,W[1]=$t,W[2]=or,W[3]=Lr),Er=X[0],hr=X[1],ni=X[2],Kr=X[3],(Er!==Z[0]||hr!==Z[1]||ni!==Z[2]||Kr!==Z[3])&&(a.stencilOpSeparate(Er,hr,ni,Kr),Z[0]=Er,Z[1]=hr,Z[2]=ni,Z[3]=Kr),si=l.scissor_enable,si!==u.scissor_enable&&(si?a.enable(3089):a.disable(3089),u.scissor_enable=si),Tr=j[0],vr=j[1],Hr=j[2],Di=j[3],(Tr!==q[0]||vr!==q[1]||Hr!==q[2]||Di!==q[3])&&(a.scissor(Tr,vr,Hr,Di),q[0]=Tr,q[1]=vr,q[2]=Hr,q[3]=Di),gn=Q[0],wr=Q[1],qr=Q[2],Ut=Q[3],(gn!==N[0]||wr!==N[1]||qr!==N[2]||Ut!==N[3])&&(a.viewport(gn,wr,qr,Ut),N[0]=gn,N[1]=wr,N[2]=qr,N[3]=Ut),u.dirty=!1}Ee=u.profile,Ee&&(we=performance.now(),r.count+=le),oe=d.frag,Y=d.vert,ne=d.program(Y,oe),a.useProgram(ne.program),v.setVAO(null),ye=ne.id,U=Ie[ye],U?U.call(this,Ce,le):(U=Ie[ye]=n(ne),U.call(this,Ce,le)),v.setVAO(null),Ee&&(r.cpuTime+=performance.now()-we)}}}});var WJe=K((Aii,jJe)=>{"use strict";var Eyr=qJe(),kyr=NJe(),Cyr=UJe(),Dyr=HJe();jJe.exports={"30680f8f6712ef1af5cf7547e0af35b036fb300c67b07967cf448492ff4de4d0":Eyr,"3fd666968f3ce90d1c048b7a9aab515f3ce387a5401a10f8b66121c9469d1c0d":kyr,"453a70fefa48db31713162aeb1ac438cb8579f54504f3b23acf32128df3dfd45":Cyr,a3970baf1d8cac9305ee830c7026550387343d4dde2353dd86a4d082c97d3470:Dyr}});var XJe=K((Tii,YJe)=>{"use strict";var $Je=vre(),Fyr=WJe();Object.assign($Je.reglPrecompiled,Fyr);YJe.exports=$Je});var JJe=K((Mii,KJe)=>{"use strict";var ZJe=RJe();ZJe.plot=XJe();KJe.exports=ZJe});var mre=K((Sii,iQe)=>{"use strict";var eQe=Os().extendFlat,Lyr=Au(),QJe=lf(),Pyr=Wu(),{hovertemplateAttrs:tQe,templatefallbackAttrs:rQe}=yu(),zyr=kf().attributes,Iyr=eQe({editType:"calc"},Pyr("line",{editTypeOverride:"calc"}),{shape:{valType:"enumerated",values:["linear","hspline"],dflt:"linear",editType:"plot"},hovertemplate:tQe({editType:"plot",arrayOk:!1},{keys:["count","probability"]}),hovertemplatefallback:rQe({editType:"plot"})});iQe.exports={domain:zyr({name:"parcats",trace:!0,editType:"calc"}),hoverinfo:eQe({},Lyr.hoverinfo,{flags:["count","probability"],editType:"plot",arrayOk:!1}),hoveron:{valType:"enumerated",values:["category","color","dimension"],dflt:"category",editType:"plot"},hovertemplate:tQe({editType:"plot",arrayOk:!1},{keys:["count","probability","category","categorycount","colorcount","bandcolorcount"]}),hovertemplatefallback:rQe({editType:"plot"}),arrangement:{valType:"enumerated",values:["perpendicular","freeform","fixed"],dflt:"perpendicular",editType:"plot"},bundlecolors:{valType:"boolean",dflt:!0,editType:"plot"},sortpaths:{valType:"enumerated",values:["forward","backward"],dflt:"forward",editType:"plot"},labelfont:QJe({editType:"calc"}),tickfont:QJe({autoShadowDflt:!0,editType:"calc"}),dimensions:{_isLinkedToArray:"dimension",label:{valType:"string",editType:"calc"},categoryorder:{valType:"enumerated",values:["trace","category ascending","category descending","array"],dflt:"trace",editType:"calc"},categoryarray:{valType:"data_array",editType:"calc"},ticktext:{valType:"data_array",editType:"calc"},values:{valType:"data_array",dflt:[],editType:"calc"},displayindex:{valType:"integer",editType:"calc"},editType:"calc",visible:{valType:"boolean",dflt:!0,editType:"calc"}},line:Iyr,counts:{valType:"number",min:0,dflt:1,arrayOk:!0,editType:"calc"},customdata:void 0,hoverlabel:void 0,ids:void 0,legend:void 0,legendgroup:void 0,legendrank:void 0,opacity:void 0,selectedpoints:void 0,showlegend:void 0}});var oQe=K((Eii,aQe)=>{"use strict";var m5=Mt(),Ryr=Zh().hasColorscale,Byr=gh(),qyr=kf().defaults,Oyr=w0(),nQe=mre(),Nyr=PB(),Vyr=$h().isTypedArraySpec;function Uyr(e,t,r,i,n){n("line.shape"),n("line.hovertemplate"),n("line.hovertemplatefallback");var a=n("line.color",i.colorway[0]);if(Ryr(e,"line")&&m5.isArrayOrTypedArray(a)){if(a.length)return n("line.colorscale"),Byr(e,t,i,n,{prefix:"line.",cLetter:"c"}),a.length;t.line.color=r}return 1/0}function Gyr(e,t){function r(u,f){return m5.coerce(e,t,nQe.dimensions,u,f)}var i=r("values"),n=r("visible");if(i&&i.length||(n=t.visible=!1),n){r("label"),r("displayindex",t._index);var a=e.categoryarray,o=m5.isArrayOrTypedArray(a)&&a.length>0||Vyr(a),s;o&&(s="array");var l=r("categoryorder",s);l==="array"?(r("categoryarray"),r("ticktext")):(delete e.categoryarray,delete e.ticktext),!o&&l==="array"&&(t.categoryorder="trace")}}aQe.exports=function(t,r,i,n){function a(u,f){return m5.coerce(t,r,nQe,u,f)}var o=Oyr(t,r,{name:"dimensions",handleItemDefaults:Gyr}),s=Uyr(t,r,i,n,a);qyr(r,n,a),(!Array.isArray(o)||!o.length)&&(r.visible=!1),Nyr(r,o,"values",s),a("hoveron"),a("hovertemplate"),a("hovertemplatefallback"),a("arrangement"),a("bundlecolors"),a("sortpaths"),a("counts");var l=n.font;m5.coerceFont(a,"labelfont",l,{overrideDflt:{size:Math.round(l.size)}}),m5.coerceFont(a,"tickfont",l,{autoShadowDflt:!0,overrideDflt:{size:Math.round(l.size/1.2)}})}});var lQe=K((kii,sQe)=>{"use strict";var Hyr=Dm().wrap,jyr=Zh().hasColorscale,Wyr=A0(),$yr=lG(),Yyr=Bs(),dk=Mt(),Xyr=Gs();sQe.exports=function(t,r){var i=dk.filterVisible(r.dimensions);if(i.length===0)return[];var n=i.map(function(g){var E;if(g.categoryorder==="trace")E=null;else if(g.categoryorder==="array")E=g.categoryarray;else{E=$yr(g.values);for(var S=!0,C=0;C=e.length||t[e[r]]!==void 0)return!1;t[e[r]]=!0}return!0}});var yQe=K((Cii,mQe)=>{"use strict";var pu=No(),ogr=(E_(),ar(S_)).interpolateNumber,sgr=FP(),yre=ko(),mk=Uf(),tx=Mt(),pk=tx.strTranslate,uQe=Bs(),lgr=zu();function ugr(e,t,r,i){var n=t._context.staticPlot,a=e.map(Mgr.bind(0,t,r)),o=i.selectAll("g.parcatslayer").data([null]);o.enter().append("g").attr("class","parcatslayer").style("pointer-events",n?"none":"all");var s=o.selectAll("g.trace.parcats").data(a,Hy),l=s.enter().append("g").attr("class","trace parcats");s.attr("transform",function(w){return pk(w.x,w.y)}),l.append("g").attr("class","paths");var u=s.select("g.paths"),f=u.selectAll("path.path").data(function(w){return w.paths},Hy);f.attr("fill",function(w){return w.model.color});var c=f.enter().append("path").attr("class","path").attr("stroke-opacity",0).attr("fill",function(w){return w.model.color}).attr("fill-opacity",0);bre(c),f.attr("d",function(w){return w.svgD}),c.empty()||f.sort(gre),f.exit().remove(),f.on("mouseover",cgr).on("mouseout",hgr).on("click",dgr),l.append("g").attr("class","dimensions");var h=s.select("g.dimensions"),d=h.selectAll("g.dimension").data(function(w){return w.dimensions},Hy);d.enter().append("g").attr("class","dimension"),d.attr("transform",function(w){return pk(w.x,0)}),d.exit().remove();var p=d.selectAll("g.category").data(function(w){return w.categories},Hy),v=p.enter().append("g").attr("class","category");p.attr("transform",function(w){return pk(0,w.y)}),v.append("rect").attr("class","catrect").attr("pointer-events","none"),p.select("rect.catrect").attr("fill","none").attr("width",function(w){return w.width}).attr("height",function(w){return w.height}),cQe(v);var y=p.selectAll("rect.bandrect").data(function(w){return w.bands},Hy);y.each(function(){tx.raiseToTop(this)}),y.attr("fill",function(w){return w.color});var m=y.enter().append("rect").attr("class","bandrect").attr("stroke-opacity",0).attr("fill",function(w){return w.color}).attr("fill-opacity",0);y.attr("fill",function(w){return w.color}).attr("width",function(w){return w.width}).attr("height",function(w){return w.height}).attr("y",function(w){return w.y}).attr("cursor",function(w){return w.parcatsViewModel.arrangement==="fixed"?"default":w.parcatsViewModel.arrangement==="perpendicular"?"ns-resize":"move"}),wre(m),y.exit().remove(),v.append("text").attr("class","catlabel").attr("pointer-events","none"),p.select("text.catlabel").attr("text-anchor",function(w){return vk(w)?"start":"end"}).attr("alignment-baseline","middle").style("fill","rgb(0, 0, 0)").attr("x",function(w){return vk(w)?w.width+5:-5}).attr("y",function(w){return w.height/2}).text(function(w){return w.model.categoryLabel}).each(function(w){uQe.font(pu.select(this),w.parcatsViewModel.categorylabelfont),lgr.convertToTspans(pu.select(this),t)}),v.append("text").attr("class","dimlabel"),p.select("text.dimlabel").attr("text-anchor","middle").attr("alignment-baseline","baseline").attr("cursor",function(w){return w.parcatsViewModel.arrangement==="fixed"?"default":"ew-resize"}).attr("x",function(w){return w.width/2}).attr("y",-5).text(function(w,_){return _===0?w.parcatsViewModel.model.dimensions[w.model.dimensionInd].dimensionLabel:null}).each(function(w){uQe.font(pu.select(this),w.parcatsViewModel.labelfont)}),p.selectAll("rect.bandrect").on("mouseover",bgr).on("mouseout",_gr),p.exit().remove(),d.call(pu.behavior.drag().origin(function(w){return{x:w.x,y:0}}).on("dragstart",wgr).on("drag",Agr).on("dragend",Tgr)),s.each(function(w){w.traceSelection=pu.select(this),w.pathSelection=pu.select(this).selectAll("g.paths").selectAll("path.path"),w.dimensionSelection=pu.select(this).selectAll("g.dimensions").selectAll("g.dimension")}),s.exit().remove()}mQe.exports=function(e,t,r,i){ugr(r,e,i,t)};function Hy(e){return e.key}function vk(e){var t=e.parcatsViewModel.dimensions.length,r=e.parcatsViewModel.dimensions[t-1].model.dimensionInd;return e.model.dimensionInd===r}function gre(e,t){return e.model.rawColor>t.model.rawColor?1:e.model.rawColorn)return 1;if(i!==n){var a=isNaN(i),o=isNaN(n);if(a!==o)return a?1:-1}}return e.length-t.length}function cgr(e){if(!e.parcatsViewModel.dragDimension&&e.parcatsViewModel.hoverinfoItems.indexOf("skip")===-1){tx.raiseToTop(this),_re(pu.select(this));var t=yk(e),r=xre(e);if(e.parcatsViewModel.graphDiv.emit("plotly_hover",{points:t,event:pu.event,constraints:r}),e.parcatsViewModel.hoverinfoItems.indexOf("none")===-1){var i=pu.mouse(this)[0],n=e.parcatsViewModel.graphDiv,a=e.parcatsViewModel.trace,o=n._fullLayout,s=o._paperdiv.node().getBoundingClientRect(),l=e.parcatsViewModel.graphDiv.getBoundingClientRect(),u,f,c;for(c=0;c"),x=pu.mouse(n)[0];mk.loneHover({trace:a,x:p-s.left+l.left,y:v-s.top+l.top,text:M,color:e.model.color,borderColor:"black",fontFamily:'Monaco, "Courier New", monospace',fontSize:10,fontColor:y,idealAlign:xyre.mostReadable(t.model.color)).attr("stroke-width",.3)}function pgr(e){e.select("rect.catrect").attr("stroke","black").attr("stroke-width",2.5)}function cQe(e){e.select("rect.catrect").attr("stroke","black").attr("stroke-width",1).attr("stroke-opacity",1)}function vgr(e){e.attr("stroke","black").attr("stroke-width",1.5)}function wre(e){e.attr("stroke","black").attr("stroke-width",.2).attr("stroke-opacity",1).attr("fill-opacity",1)}function YB(e){var t=e.parcatsViewModel.pathSelection,r=e.categoryViewModel.model.dimensionInd,i=e.categoryViewModel.model.categoryInd;return t.filter(function(n){return n.model.categoryInds[r]===i&&n.model.color===e.color})}function mgr(e){var t=pu.select(e.parentNode).selectAll("rect.bandrect");t.each(function(r){var i=YB(r);_re(i),i.each(function(){tx.raiseToTop(this)})}),pgr(pu.select(e.parentNode))}function ygr(e){var t=pu.select(e).datum(),r=YB(t);_re(r),r.each(function(){tx.raiseToTop(this)}),pu.select(e.parentNode).selectAll("rect.bandrect").filter(function(i){return i.color===t.color}).each(function(){tx.raiseToTop(this),vgr(pu.select(this))})}function Are(e,t,r){var i=pu.select(e).datum(),n=i.categoryViewModel.model,a=i.parcatsViewModel.graphDiv,o=pu.select(e.parentNode).selectAll("rect.bandrect"),s=[];o.each(function(u){var f=YB(u);f.each(function(c){Array.prototype.push.apply(s,yk(c))})});var l={};l[n.dimensionInd]=n.categoryValue,a.emit(t,{points:s,event:r,constraints:l})}function Tre(e,t,r){var i=pu.select(e).datum(),n=i.categoryViewModel.model,a=i.parcatsViewModel.graphDiv,o=YB(i),s=[];o.each(function(u){Array.prototype.push.apply(s,yk(u))});var l={};l[n.dimensionInd]=n.categoryValue,i.rawColor!==void 0&&(l.color=i.rawColor),a.emit(t,{points:s,event:r,constraints:l})}function hQe(e,t,r){e._fullLayout._calcInverseTransform(e);var i=e._fullLayout._invScaleX,n=e._fullLayout._invScaleY,a=pu.select(r.parentNode).select("rect.catrect"),o=a.node().getBoundingClientRect(),s=a.datum(),l=s.parcatsViewModel,u=l.model.dimensions[s.model.dimensionInd],f=l.trace,c=o.top+o.height/2,h,d;l.dimensions.length>1&&u.displayInd===l.dimensions.length-1?(h=o.left,d="left"):(h=o.left+o.width,d="right");var p=s.model.count,v=s.model.categoryLabel,y=p/s.parcatsViewModel.model.count,m={countLabel:p,categoryLabel:v,probabilityLabel:y.toFixed(3)},w=[];s.parcatsViewModel.hoverinfoItems.indexOf("count")!==-1&&w.push(["Count:",m.countLabel].join(" ")),s.parcatsViewModel.hoverinfoItems.indexOf("probability")!==-1&&w.push(["P("+m.categoryLabel+"):",m.probabilityLabel].join(" "));var _=w.join("
");return{trace:f,x:i*(h-t.left),y:n*(c-t.top),text:_,color:"lightgray",borderColor:"black",fontFamily:'Monaco, "Courier New", monospace',fontSize:12,fontColor:"black",idealAlign:d,hovertemplate:f.hovertemplate,hovertemplateLabels:m,eventData:[{data:f._input,fullData:f,count:p,category:v,probability:y}]}}function ggr(e,t,r){var i=[];return pu.select(r.parentNode.parentNode).selectAll("g.category").select("rect.catrect").each(function(){var n=this;i.push(hQe(e,t,n))}),i}function xgr(e,t,r){e._fullLayout._calcInverseTransform(e);var i=e._fullLayout._invScaleX,n=e._fullLayout._invScaleY,a=r.getBoundingClientRect(),o=pu.select(r).datum(),s=o.categoryViewModel,l=s.parcatsViewModel,u=l.model.dimensions[s.model.dimensionInd],f=l.trace,c=a.y+a.height/2,h,d;l.dimensions.length>1&&u.displayInd===l.dimensions.length-1?(h=a.left,d="left"):(h=a.left+a.width,d="right");var p=s.model.categoryLabel,v=o.parcatsViewModel.model.count,y=0;o.categoryViewModel.bands.forEach(function(E){E.color===o.color&&(y+=E.count)});var m=s.model.count,w=0;l.pathSelection.each(function(E){E.model.color===o.color&&(w+=E.model.count)});var _=y/v,b=y/w,M=y/m,x={countLabel:y,categoryLabel:p,probabilityLabel:_.toFixed(3)},A=[];s.parcatsViewModel.hoverinfoItems.indexOf("count")!==-1&&A.push(["Count:",x.countLabel].join(" ")),s.parcatsViewModel.hoverinfoItems.indexOf("probability")!==-1&&(A.push("P(color \u2229 "+p+"): "+x.probabilityLabel),A.push("P("+p+" | color): "+b.toFixed(3)),A.push("P(color | "+p+"): "+M.toFixed(3)));var T=A.join("
"),g=yre.mostReadable(o.color);return{trace:f,x:i*(h-t.left),y:n*(c-t.top),text:T,color:o.color,borderColor:"black",fontFamily:'Monaco, "Courier New", monospace',fontColor:g,fontSize:10,idealAlign:d,hovertemplate:f.hovertemplate,hovertemplateLabels:x,eventData:[{data:f._input,fullData:f,category:p,count:v,probability:_,categorycount:m,colorcount:w,bandcolorcount:y}]}}function bgr(e){if(!e.parcatsViewModel.dragDimension&&e.parcatsViewModel.hoverinfoItems.indexOf("skip")===-1){var t=pu.mouse(this)[1];if(t<-1)return;var r=e.parcatsViewModel.graphDiv,i=r._fullLayout,n=i._paperdiv.node().getBoundingClientRect(),a=e.parcatsViewModel.hoveron,o=this;if(a==="color"?(ygr(o),Tre(o,"plotly_hover",pu.event)):(mgr(o),Are(o,"plotly_hover",pu.event)),e.parcatsViewModel.hoverinfoItems.indexOf("none")===-1){var s;a==="category"?s=hQe(r,n,o):a==="color"?s=xgr(r,n,o):a==="dimension"&&(s=ggr(r,n,o)),s&&mk.loneHover(s,{container:i._hoverlayer.node(),outerContainer:i._paper.node(),gd:r})}}}function _gr(e){var t=e.parcatsViewModel;if(!t.dragDimension&&(bre(t.pathSelection),cQe(t.dimensionSelection.selectAll("g.category")),wre(t.dimensionSelection.selectAll("g.category").selectAll("rect.bandrect")),mk.loneUnhover(t.graphDiv._fullLayout._hoverlayer.node()),t.pathSelection.sort(gre),t.hoverinfoItems.indexOf("skip")===-1)){var r=e.parcatsViewModel.hoveron,i=this;r==="color"?Tre(i,"plotly_unhover",pu.event):Are(i,"plotly_unhover",pu.event)}}function wgr(e){e.parcatsViewModel.arrangement!=="fixed"&&(e.dragDimensionDisplayInd=e.model.displayInd,e.initialDragDimensionDisplayInds=e.parcatsViewModel.model.dimensions.map(function(t){return t.displayInd}),e.dragHasMoved=!1,e.dragCategoryDisplayInd=null,pu.select(this).selectAll("g.category").select("rect.catrect").each(function(t){var r=pu.mouse(this)[0],i=pu.mouse(this)[1];-2<=r&&r<=t.width+2&&-2<=i&&i<=t.height+2&&(e.dragCategoryDisplayInd=t.model.displayInd,e.initialDragCategoryDisplayInds=e.model.categories.map(function(n){return n.displayInd}),t.model.dragY=t.y,tx.raiseToTop(this.parentNode),pu.select(this.parentNode).selectAll("rect.bandrect").each(function(n){n.yf.y+f.height/2&&(a.model.displayInd=f.model.displayInd,f.model.displayInd=s),e.dragCategoryDisplayInd=a.model.displayInd}if(e.dragCategoryDisplayInd===null||e.parcatsViewModel.arrangement==="freeform"){n.model.dragX=pu.event.x;var c=e.parcatsViewModel.dimensions[r],h=e.parcatsViewModel.dimensions[i];c!==void 0&&n.model.dragXh.x&&(n.model.displayInd=h.model.displayInd,h.model.displayInd=e.dragDimensionDisplayInd),e.dragDimensionDisplayInd=n.model.displayInd}Sre(e.parcatsViewModel),Mre(e.parcatsViewModel),vQe(e.parcatsViewModel),pQe(e.parcatsViewModel)}}function Tgr(e){if(e.parcatsViewModel.arrangement!=="fixed"&&e.dragDimensionDisplayInd!==null){pu.select(this).selectAll("text").attr("font-weight","normal");var t={},r=dQe(e.parcatsViewModel),i=e.parcatsViewModel.model.dimensions.map(function(h){return h.displayInd}),n=e.initialDragDimensionDisplayInds.some(function(h,d){return h!==i[d]});n&&i.forEach(function(h,d){var p=e.parcatsViewModel.model.dimensions[d].containerInd;t["dimensions["+p+"].displayindex"]=h});var a=!1;if(e.dragCategoryDisplayInd!==null){var o=e.model.categories.map(function(h){return h.displayInd});if(a=e.initialDragCategoryDisplayInds.some(function(h,d){return h!==o[d]}),a){var s=e.model.categories.slice().sort(function(h,d){return h.displayInd-d.displayInd}),l=s.map(function(h){return h.categoryValue}),u=s.map(function(h){return h.categoryLabel});t["dimensions["+e.model.containerInd+"].categoryarray"]=[l],t["dimensions["+e.model.containerInd+"].ticktext"]=[u],t["dimensions["+e.model.containerInd+"].categoryorder"]="array"}}if(e.parcatsViewModel.hoverinfoItems.indexOf("skip")===-1&&!e.dragHasMoved&&e.potentialClickBand&&(e.parcatsViewModel.hoveron==="color"?Tre(e.potentialClickBand,"plotly_click",pu.event.sourceEvent):Are(e.potentialClickBand,"plotly_click",pu.event.sourceEvent)),e.model.dragX=null,e.dragCategoryDisplayInd!==null){var f=e.parcatsViewModel.dimensions[e.dragDimensionDisplayInd].categories[e.dragCategoryDisplayInd];f.model.dragY=null,e.dragCategoryDisplayInd=null}e.dragDimensionDisplayInd=null,e.parcatsViewModel.dragDimension=null,e.dragHasMoved=null,e.potentialClickBand=null,Sre(e.parcatsViewModel),Mre(e.parcatsViewModel);var c=pu.transition().duration(300).ease("cubic-in-out");c.each(function(){vQe(e.parcatsViewModel,!0),pQe(e.parcatsViewModel,!0)}).each("end",function(){(n||a)&&sgr.restyle(e.parcatsViewModel.graphDiv,t,[r])})}}function dQe(e){for(var t,r=e.graphDiv._fullData,i=0;i=0;l--)u+="C"+o[l]+","+(t[l+1]+i)+" "+a[l]+","+(t[l]+i)+" "+(e[l]+r[l])+","+(t[l]+i),u+="l-"+r[l]+",0 ";return u+="Z",u}function Mre(e){var t=e.dimensions,r=e.model,i=t.map(function(k){return k.categories.map(function(D){return D.y})}),n=e.model.dimensions.map(function(k){return k.categories.map(function(D){return D.displayInd})}),a=e.model.dimensions.map(function(k){return k.displayInd}),o=e.dimensions.map(function(k){return k.model.dimensionInd}),s=t.map(function(k){return k.x}),l=t.map(function(k){return k.width}),u=[];for(var f in r.paths)r.paths.hasOwnProperty(f)&&u.push(r.paths[f]);function c(k){var D=k.categoryInds.map(function(P,I){return n[I][P]}),L=o.map(function(P){return D[P]});return L}u.sort(function(k,D){var L=c(k),P=c(D);return e.sortpaths==="backward"&&(L.reverse(),P.reverse()),L.push(k.valueInds[0]),P.push(D.valueInds[0]),e.bundlecolors&&(L.unshift(k.rawColor),P.unshift(D.rawColor)),fgr(L,P)});for(var h=new Array(u.length),d=t[0].model.count,p=t[0].categories.map(function(k){return k.height}).reduce(function(k,D){return k+D}),v=0;v0?m=p*(y.count/d):m=0;for(var w=new Array(i.length),_=0;_1?o=(e.width-2*r-i)/(n-1):o=0,s=r,l=s+o*a;var u=[],f=e.model.maxCats,c=t.categories.length,h=8,d=t.count,p=e.height-h*(f-1),v,y,m,w,_,b=(f-c)*h/2,M=t.categories.map(function(x){return{displayInd:x.displayInd,categoryInd:x.categoryInd}});for(M.sort(function(x,A){return x.displayInd-A.displayInd}),_=0;_0?v=y.count/d*p:v=0,m={key:y.valueInds[0],model:y,width:i,height:v,y:y.dragY!==null?y.dragY:b,bands:[],parcatsViewModel:e},b=b+v+h,u.push(m);return{key:t.dimensionInd,x:t.dragX!==null?t.dragX:l,y:0,width:i,model:t,categories:u,parcatsViewModel:e,dragCategoryDisplayInd:null,dragDimensionDisplayInd:null,initialDragDimensionDisplayInds:null,initialDragCategoryDisplayInds:null,dragHasMoved:null,potentialClickBand:null}}});var Ere=K((Dii,gQe)=>{"use strict";var Egr=yQe();gQe.exports=function(t,r,i,n){var a=t._fullLayout,o=a._paper,s=a._size;Egr(t,o,r,{width:s.w,height:s.h,margin:{t:s.t,r:s.r,b:s.b,l:s.l}},i,n)}});var bQe=K(XB=>{"use strict";var kgr=Xh().getModuleCalcData,Cgr=Ere(),xQe="parcats";XB.name=xQe;XB.plot=function(e,t,r,i){var n=kgr(e.calcdata,xQe);if(n.length){var a=n[0];Cgr(e,a,r,i)}};XB.clean=function(e,t,r,i){var n=i._has&&i._has("parcats"),a=t._has&&t._has("parcats");n&&!a&&i._paperdiv.selectAll(".parcats").remove()}});var wQe=K((Lii,_Qe)=>{"use strict";_Qe.exports={attributes:mre(),supplyDefaults:oQe(),calc:lQe(),plot:Ere(),colorbar:{container:"line",min:"cmin",max:"cmax"},moduleType:"trace",name:"parcats",basePlotModule:bQe(),categories:["noOpacity"],meta:{}}});var TQe=K((Pii,AQe)=>{"use strict";AQe.exports=wQe()});var SQe=K((zii,MQe)=>{"use strict";MQe.exports={version:8,name:"orto",metadata:{"maputnik:renderer":"mlgljs"},center:[1.537786,41.837539],zoom:12,bearing:0,pitch:0,light:{anchor:"viewport",color:"white",intensity:.4,position:[1.15,45,30]},sources:{ortoEsri:{type:"raster",tiles:["https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}"],tileSize:256,maxzoom:18,attribution:"ESRI © ESRI"},ortoInstaMaps:{type:"raster",tiles:["https://tilemaps.icgc.cat/mapfactory/wmts/orto_8_12/CAT3857/{z}/{x}/{y}.png"],tileSize:256,maxzoom:13},ortoICGC:{type:"raster",tiles:["https://geoserveis.icgc.cat/icc_mapesmultibase/noutm/wmts/orto/GRID3857/{z}/{x}/{y}.jpeg"],tileSize:256,minzoom:13.1,maxzoom:20},openmaptiles:{type:"vector",url:"https://geoserveis.icgc.cat/contextmaps/basemap.json"}},sprite:"https://geoserveis.icgc.cat/contextmaps/sprites/sprite@1",glyphs:"https://geoserveis.icgc.cat/contextmaps/glyphs/{fontstack}/{range}.pbf",layers:[{id:"background",type:"background",paint:{"background-color":"#F4F9F4"}},{id:"ortoEsri",type:"raster",source:"ortoEsri",maxzoom:16,layout:{visibility:"visible"}},{id:"ortoICGC",type:"raster",source:"ortoICGC",minzoom:13.1,maxzoom:19,layout:{visibility:"visible"}},{id:"ortoInstaMaps",type:"raster",source:"ortoInstaMaps",maxzoom:13,layout:{visibility:"visible"}},{id:"waterway_tunnel",type:"line",source:"openmaptiles","source-layer":"waterway",minzoom:14,filter:["all",["in","class","river","stream","canal"],["==","brunnel","tunnel"]],layout:{"line-cap":"round"},paint:{"line-color":"#a0c8f0","line-width":{base:1.3,stops:[[13,.5],[20,6]]},"line-dasharray":[2,4]}},{id:"waterway-other",type:"line",metadata:{"mapbox:group":"1444849382550.77"},source:"openmaptiles","source-layer":"waterway",filter:["!in","class","canal","river","stream"],layout:{"line-cap":"round"},paint:{"line-color":"#a0c8f0","line-width":{base:1.3,stops:[[13,.5],[20,2]]}}},{id:"waterway-stream-canal",type:"line",metadata:{"mapbox:group":"1444849382550.77"},source:"openmaptiles","source-layer":"waterway",filter:["all",["in","class","canal","stream"],["!=","brunnel","tunnel"]],layout:{"line-cap":"round"},paint:{"line-color":"#a0c8f0","line-width":{base:1.3,stops:[[13,.5],[20,6]]}}},{id:"waterway-river",type:"line",metadata:{"mapbox:group":"1444849382550.77"},source:"openmaptiles","source-layer":"waterway",filter:["all",["==","class","river"],["!=","brunnel","tunnel"]],layout:{"line-cap":"round"},paint:{"line-color":"#a0c8f0","line-width":{base:1.2,stops:[[10,.8],[20,4]]},"line-opacity":.5}},{id:"water-offset",type:"fill",metadata:{"mapbox:group":"1444849382550.77"},source:"openmaptiles","source-layer":"water",maxzoom:8,filter:["==","$type","Polygon"],layout:{visibility:"visible"},paint:{"fill-opacity":0,"fill-color":"#a0c8f0","fill-translate":{base:1,stops:[[6,[2,0]],[8,[0,0]]]}}},{id:"water",type:"fill",metadata:{"mapbox:group":"1444849382550.77"},source:"openmaptiles","source-layer":"water",layout:{visibility:"visible"},paint:{"fill-color":"hsl(210, 67%, 85%)","fill-opacity":0}},{id:"water-pattern",type:"fill",metadata:{"mapbox:group":"1444849382550.77"},source:"openmaptiles","source-layer":"water",layout:{visibility:"visible"},paint:{"fill-translate":[0,2.5],"fill-pattern":"wave","fill-opacity":1}},{id:"landcover-ice-shelf",type:"fill",metadata:{"mapbox:group":"1444849382550.77"},source:"openmaptiles","source-layer":"landcover",filter:["==","subclass","ice_shelf"],layout:{visibility:"visible"},paint:{"fill-color":"#fff","fill-opacity":{base:1,stops:[[0,.9],[10,.3]]}}},{id:"tunnel-service-track-casing",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["in","class","service","track"]],layout:{"line-join":"round"},paint:{"line-color":"#cfcdca","line-dasharray":[.5,.25],"line-width":{base:1.2,stops:[[15,1],[16,4],[20,11]]}}},{id:"tunnel-minor-casing",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["==","class","minor"]],layout:{"line-join":"round"},paint:{"line-color":"#cfcdca","line-opacity":{stops:[[12,0],[12.5,1]]},"line-width":{base:1.2,stops:[[12,.5],[13,1],[14,4],[20,15]]}}},{id:"tunnel-secondary-tertiary-casing",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["in","class","secondary","tertiary"]],layout:{"line-join":"round"},paint:{"line-color":"#e9ac77","line-opacity":1,"line-width":{base:1.2,stops:[[8,1.5],[20,17]]}}},{id:"tunnel-trunk-primary-casing",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["in","class","primary","trunk"]],layout:{"line-join":"round"},paint:{"line-color":"#e9ac77","line-width":{base:1.2,stops:[[5,.4],[6,.6],[7,1.5],[20,22]]},"line-opacity":.7}},{id:"tunnel-motorway-casing",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["==","class","motorway"]],layout:{"line-join":"round",visibility:"visible"},paint:{"line-color":"#e9ac77","line-dasharray":[.5,.25],"line-width":{base:1.2,stops:[[5,.4],[6,.6],[7,1.5],[20,22]]},"line-opacity":.5}},{id:"tunnel-path",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["==","brunnel","tunnel"],["==","class","path"]]],paint:{"line-color":"#cba","line-dasharray":[1.5,.75],"line-width":{base:1.2,stops:[[15,1.2],[20,4]]}}},{id:"tunnel-service-track",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["in","class","service","track"]],layout:{"line-join":"round"},paint:{"line-color":"#fff","line-width":{base:1.2,stops:[[15.5,0],[16,2],[20,7.5]]}}},{id:"tunnel-minor",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["==","class","minor_road"]],layout:{"line-join":"round"},paint:{"line-color":"#fff","line-opacity":1,"line-width":{base:1.2,stops:[[13.5,0],[14,2.5],[20,11.5]]}}},{id:"tunnel-secondary-tertiary",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["in","class","secondary","tertiary"]],layout:{"line-join":"round"},paint:{"line-color":"#fff4c6","line-width":{base:1.2,stops:[[6.5,0],[7,.5],[20,10]]}}},{id:"tunnel-trunk-primary",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["in","class","primary","trunk"]],layout:{"line-join":"round"},paint:{"line-color":"#fff4c6","line-width":{base:1.2,stops:[[6.5,0],[7,.5],[20,18]]},"line-opacity":.5}},{id:"tunnel-motorway",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["==","class","motorway"]],layout:{"line-join":"round",visibility:"visible"},paint:{"line-color":"#ffdaa6","line-width":{base:1.2,stops:[[6.5,0],[7,.5],[20,18]]},"line-opacity":.5}},{id:"tunnel-railway",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["==","class","rail"]],paint:{"line-color":"#bbb","line-width":{base:1.4,stops:[[14,.4],[15,.75],[20,2]]},"line-dasharray":[2,2]}},{id:"ferry",type:"line",source:"openmaptiles","source-layer":"transportation",filter:["all",["in","class","ferry"]],layout:{"line-join":"round",visibility:"visible"},paint:{"line-color":"rgba(108, 159, 182, 1)","line-width":1.1,"line-dasharray":[2,2]}},{id:"aeroway-taxiway-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"aeroway",minzoom:12,filter:["all",["in","class","taxiway"]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"rgba(153, 153, 153, 1)","line-width":{base:1.5,stops:[[11,2],[17,12]]},"line-opacity":1}},{id:"aeroway-runway-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"aeroway",minzoom:12,filter:["all",["in","class","runway"]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"rgba(153, 153, 153, 1)","line-width":{base:1.5,stops:[[11,5],[17,55]]},"line-opacity":1}},{id:"aeroway-taxiway",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"aeroway",minzoom:4,filter:["all",["in","class","taxiway"],["==","$type","LineString"]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"rgba(255, 255, 255, 1)","line-width":{base:1.5,stops:[[11,1],[17,10]]},"line-opacity":{base:1,stops:[[11,0],[12,1]]}}},{id:"aeroway-runway",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"aeroway",minzoom:4,filter:["all",["in","class","runway"],["==","$type","LineString"]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"rgba(255, 255, 255, 1)","line-width":{base:1.5,stops:[[11,4],[17,50]]},"line-opacity":{base:1,stops:[[11,0],[12,1]]}}},{id:"highway-motorway-link-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",minzoom:12,filter:["all",["!in","brunnel","bridge","tunnel"],["==","class","motorway_link"]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"#e9ac77","line-opacity":1,"line-width":{base:1.2,stops:[[12,1],[13,3],[14,4],[20,15]]}}},{id:"highway-link-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",minzoom:13,filter:["all",["!in","brunnel","bridge","tunnel"],["in","class","primary_link","secondary_link","tertiary_link","trunk_link"]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"#e9ac77","line-opacity":1,"line-width":{base:1.2,stops:[[12,1],[13,3],[14,4],[20,15]]}}},{id:"highway-minor-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["!=","brunnel","tunnel"],["in","class","minor","service","track"]]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"#cfcdca","line-opacity":{stops:[[12,0],[12.5,0]]},"line-width":{base:1.2,stops:[[12,.5],[13,1],[14,4],[20,15]]}}},{id:"highway-secondary-tertiary-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["!in","brunnel","bridge","tunnel"],["in","class","secondary","tertiary"]],layout:{"line-cap":"butt","line-join":"round",visibility:"visible"},paint:{"line-color":"#e9ac77","line-opacity":.5,"line-width":{base:1.2,stops:[[8,1.5],[20,17]]}}},{id:"highway-primary-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",minzoom:5,filter:["all",["!in","brunnel","bridge","tunnel"],["in","class","primary"]],layout:{"line-cap":"butt","line-join":"round",visibility:"visible"},paint:{"line-color":"#e9ac77","line-opacity":{stops:[[7,0],[8,.6]]},"line-width":{base:1.2,stops:[[7,0],[8,.6],[9,1.5],[20,22]]}}},{id:"highway-trunk-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",minzoom:5,filter:["all",["!in","brunnel","bridge","tunnel"],["in","class","trunk"]],layout:{"line-cap":"butt","line-join":"round",visibility:"visible"},paint:{"line-color":"#e9ac77","line-opacity":{stops:[[5,0],[6,.5]]},"line-width":{base:1.2,stops:[[5,0],[6,.6],[7,1.5],[20,22]]}}},{id:"highway-motorway-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",minzoom:4,filter:["all",["!in","brunnel","bridge","tunnel"],["==","class","motorway"]],layout:{"line-cap":"butt","line-join":"round",visibility:"visible"},paint:{"line-color":"#e9ac77","line-width":{base:1.2,stops:[[4,0],[5,.4],[6,.6],[7,1.5],[20,22]]},"line-opacity":{stops:[[4,0],[5,.5]]}}},{id:"highway-path",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["!in","brunnel","bridge","tunnel"],["==","class","path"]]],paint:{"line-color":"#cba","line-dasharray":[1.5,.75],"line-width":{base:1.2,stops:[[15,1.2],[20,4]]}}},{id:"highway-motorway-link",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",minzoom:12,filter:["all",["!in","brunnel","bridge","tunnel"],["==","class","motorway_link"]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"#fc8","line-width":{base:1.2,stops:[[12.5,0],[13,1.5],[14,2.5],[20,11.5]]}}},{id:"highway-link",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",minzoom:13,filter:["all",["!in","brunnel","bridge","tunnel"],["in","class","primary_link","secondary_link","tertiary_link","trunk_link"]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"#fea","line-width":{base:1.2,stops:[[12.5,0],[13,1.5],[14,2.5],[20,11.5]]}}},{id:"highway-minor",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["!=","brunnel","tunnel"],["in","class","minor","service","track"]]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"#fff","line-opacity":.5,"line-width":{base:1.2,stops:[[13.5,0],[14,2.5],[20,11.5]]}}},{id:"highway-secondary-tertiary",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["!in","brunnel","bridge","tunnel"],["in","class","secondary","tertiary"]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"#fea","line-width":{base:1.2,stops:[[6.5,0],[8,.5],[20,13]]},"line-opacity":.5}},{id:"highway-primary",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["!in","brunnel","bridge","tunnel"],["in","class","primary"]]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"#fea","line-width":{base:1.2,stops:[[8.5,0],[9,.5],[20,18]]},"line-opacity":0}},{id:"highway-trunk",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["!in","brunnel","bridge","tunnel"],["in","class","trunk"]]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"#fea","line-width":{base:1.2,stops:[[6.5,0],[7,.5],[20,18]]},"line-opacity":.5}},{id:"highway-motorway",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",minzoom:5,filter:["all",["==","$type","LineString"],["all",["!in","brunnel","bridge","tunnel"],["==","class","motorway"]]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"#fc8","line-width":{base:1.2,stops:[[6.5,0],[7,.5],[20,18]]},"line-opacity":.5}},{id:"railway-transit",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["==","class","transit"],["!in","brunnel","tunnel"]]],layout:{visibility:"visible"},paint:{"line-color":"hsla(0, 0%, 73%, 0.77)","line-width":{base:1.4,stops:[[14,.4],[20,1]]}}},{id:"railway-transit-hatching",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["==","class","transit"],["!in","brunnel","tunnel"]]],layout:{visibility:"visible"},paint:{"line-color":"hsla(0, 0%, 73%, 0.68)","line-dasharray":[.2,8],"line-width":{base:1.4,stops:[[14.5,0],[15,2],[20,6]]}}},{id:"railway-service",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["==","class","rail"],["has","service"]]],paint:{"line-color":"hsla(0, 0%, 73%, 0.77)","line-width":{base:1.4,stops:[[14,.4],[20,1]]}}},{id:"railway-service-hatching",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["==","class","rail"],["has","service"]]],layout:{visibility:"visible"},paint:{"line-color":"hsla(0, 0%, 73%, 0.68)","line-dasharray":[.2,8],"line-width":{base:1.4,stops:[[14.5,0],[15,2],[20,6]]}}},{id:"railway",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["!has","service"],["!in","brunnel","bridge","tunnel"],["==","class","rail"]]],paint:{"line-color":"#bbb","line-width":{base:1.4,stops:[[14,.4],[15,.75],[20,2]]}}},{id:"railway-hatching",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["!has","service"],["!in","brunnel","bridge","tunnel"],["==","class","rail"]]],paint:{"line-color":"#bbb","line-dasharray":[.2,8],"line-width":{base:1.4,stops:[[14.5,0],[15,3],[20,8]]}}},{id:"bridge-motorway-link-casing",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["==","class","motorway_link"]],layout:{"line-join":"round"},paint:{"line-color":"#e9ac77","line-opacity":1,"line-width":{base:1.2,stops:[[12,1],[13,3],[14,4],[20,15]]}}},{id:"bridge-link-casing",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["in","class","primary_link","secondary_link","tertiary_link","trunk_link"]],layout:{"line-join":"round"},paint:{"line-color":"#e9ac77","line-opacity":1,"line-width":{base:1.2,stops:[[12,1],[13,3],[14,4],[20,15]]}}},{id:"bridge-secondary-tertiary-casing",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["in","class","secondary","tertiary"]],layout:{"line-join":"round"},paint:{"line-color":"#e9ac77","line-opacity":1,"line-width":{base:1.2,stops:[[8,1.5],[20,28]]}}},{id:"bridge-trunk-primary-casing",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["in","class","primary","trunk"]],layout:{"line-join":"round"},paint:{"line-color":"hsl(28, 76%, 67%)","line-width":{base:1.2,stops:[[5,.4],[6,.6],[7,1.5],[20,26]]}}},{id:"bridge-motorway-casing",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["==","class","motorway"]],layout:{"line-join":"round"},paint:{"line-color":"#e9ac77","line-width":{base:1.2,stops:[[5,.4],[6,.6],[7,1.5],[20,22]]},"line-opacity":.5}},{id:"bridge-path-casing",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["==","brunnel","bridge"],["==","class","path"]]],paint:{"line-color":"#f8f4f0","line-width":{base:1.2,stops:[[15,1.2],[20,18]]}}},{id:"bridge-path",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["==","brunnel","bridge"],["==","class","path"]]],paint:{"line-color":"#cba","line-width":{base:1.2,stops:[[15,1.2],[20,4]]},"line-dasharray":[1.5,.75]}},{id:"bridge-motorway-link",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["==","class","motorway_link"]],layout:{"line-join":"round"},paint:{"line-color":"#fc8","line-width":{base:1.2,stops:[[12.5,0],[13,1.5],[14,2.5],[20,11.5]]}}},{id:"bridge-link",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["in","class","primary_link","secondary_link","tertiary_link","trunk_link"]],layout:{"line-join":"round"},paint:{"line-color":"#fea","line-width":{base:1.2,stops:[[12.5,0],[13,1.5],[14,2.5],[20,11.5]]}}},{id:"bridge-secondary-tertiary",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["in","class","secondary","tertiary"]],layout:{"line-join":"round"},paint:{"line-color":"#fea","line-width":{base:1.2,stops:[[6.5,0],[7,.5],[20,20]]}}},{id:"bridge-trunk-primary",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["in","class","primary","trunk"]],layout:{"line-join":"round"},paint:{"line-color":"#fea","line-width":{base:1.2,stops:[[6.5,0],[7,.5],[20,18]]}}},{id:"bridge-motorway",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["==","class","motorway"]],layout:{"line-join":"round"},paint:{"line-color":"#fc8","line-width":{base:1.2,stops:[[6.5,0],[7,.5],[20,18]]},"line-opacity":.5}},{id:"bridge-railway",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["==","class","rail"]],paint:{"line-color":"#bbb","line-width":{base:1.4,stops:[[14,.4],[15,.75],[20,2]]}}},{id:"bridge-railway-hatching",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["==","class","rail"]],paint:{"line-color":"#bbb","line-dasharray":[.2,8],"line-width":{base:1.4,stops:[[14.5,0],[15,3],[20,8]]}}},{id:"cablecar",type:"line",source:"openmaptiles","source-layer":"transportation",minzoom:13,filter:["==","class","cable_car"],layout:{visibility:"visible","line-cap":"round"},paint:{"line-color":"hsl(0, 0%, 70%)","line-width":{base:1,stops:[[11,1],[19,2.5]]}}},{id:"cablecar-dash",type:"line",source:"openmaptiles","source-layer":"transportation",minzoom:13,filter:["==","class","cable_car"],layout:{visibility:"visible","line-cap":"round"},paint:{"line-color":"hsl(0, 0%, 70%)","line-width":{base:1,stops:[[11,3],[19,5.5]]},"line-dasharray":[2,3]}},{id:"boundary-land-level-4",type:"line",source:"openmaptiles","source-layer":"boundary",filter:["all",[">=","admin_level",4],["<=","admin_level",8],["!=","maritime",1]],layout:{"line-join":"round"},paint:{"line-color":"#9e9cab","line-dasharray":[3,1,1,1],"line-width":{base:1.4,stops:[[4,.4],[5,1],[12,3]]},"line-opacity":.6}},{id:"boundary-land-level-2",type:"line",source:"openmaptiles","source-layer":"boundary",filter:["all",["==","admin_level",2],["!=","maritime",1],["!=","disputed",1]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"hsl(248, 7%, 66%)","line-width":{base:1,stops:[[0,.6],[4,1.4],[5,2],[12,2]]}}},{id:"boundary-land-disputed",type:"line",source:"openmaptiles","source-layer":"boundary",filter:["all",["!=","maritime",1],["==","disputed",1]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"hsl(248, 7%, 70%)","line-dasharray":[1,3],"line-width":{base:1,stops:[[0,.6],[4,1.4],[5,2],[12,8]]}}},{id:"boundary-water",type:"line",source:"openmaptiles","source-layer":"boundary",filter:["all",["in","admin_level",2,4],["==","maritime",1]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"rgba(154, 189, 214, 1)","line-width":{base:1,stops:[[0,.6],[4,1],[5,1],[12,1]]},"line-opacity":{stops:[[6,0],[10,0]]}}},{id:"waterway-name",type:"symbol",source:"openmaptiles","source-layer":"waterway",minzoom:13,filter:["all",["==","$type","LineString"],["has","name"]],layout:{"text-font":["Noto Sans Italic"],"text-size":14,"text-field":"{name:latin} {name:nonlatin}","text-max-width":5,"text-rotation-alignment":"map","symbol-placement":"line","text-letter-spacing":.2,"symbol-spacing":350},paint:{"text-color":"#74aee9","text-halo-width":1.5,"text-halo-color":"rgba(255,255,255,0.7)"}},{id:"water-name-lakeline",type:"symbol",source:"openmaptiles","source-layer":"water_name",filter:["==","$type","LineString"],layout:{"text-font":["Noto Sans Italic"],"text-size":14,"text-field":`{name:latin} + }`}),i={};return{regl:t,draw:r,atlas:i}};df.prototype.update=function(t){var r=this;if(typeof t=="string")t={text:t};else if(!t)return;t=kvr(t,{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),t.opacity!=null&&(Array.isArray(t.opacity)?this.opacity=t.opacity.map(function(Z){return parseFloat(Z)}):this.opacity=parseFloat(t.opacity)),t.viewport!=null&&(this.viewport=Pvr(t.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]),t.kerning!=null&&(this.kerning=t.kerning),t.offset!=null&&(typeof t.offset=="number"&&(t.offset=[t.offset,0]),this.positionOffset=Nvr(t.offset)),t.direction&&(this.direction=t.direction),t.range&&(this.range=t.range,this.scale=[1/(t.range[2]-t.range[0]),1/(t.range[3]-t.range[1])],this.translate=[-t.range[0],-t.range[1]]),t.scale&&(this.scale=t.scale),t.translate&&(this.translate=t.translate),this.scale||(this.scale=[1/this.viewport.width,1/this.viewport.height]),this.translate||(this.translate=[0,0]),!this.font.length&&!t.font&&(t.font=df.baseFontSize+"px sans-serif");var i=!1,n=!1;if(t.font&&(Array.isArray(t.font)?t.font:[t.font]).forEach(function(Z,H){if(typeof Z=="string")try{Z=f5.parse(Z)}catch(de){Z=f5.parse(df.baseFontSize+"px "+Z)}else{var q=Z.style,Q=Z.weight,N=Z.stretch,U=Z.variant;Z=f5.parse(f5.stringify(Z)),q&&(Z.style=q),Q&&(Z.weight=Q),N&&(Z.stretch=N),U&&(Z.variant=U)}var J=f5.stringify({size:df.baseFontSize,family:Z.family,stretch:SB?Z.stretch:void 0,variant:Z.variant,weight:Z.weight,style:Z.style}),j=Ivr(Z.size),$=Math.round(j[0]*Rvr(j[1]));if($!==r.fontSize[H]&&(n=!0,r.fontSize[H]=$),(!r.font[H]||J!=r.font[H].baseString)&&(i=!0,r.font[H]=df.fonts[J],!r.font[H])){var ie=Z.family.join(", "),re=[Z.style];Z.style!=Z.variant&&re.push(Z.variant),Z.variant!=Z.weight&&re.push(Z.weight),SB&&Z.weight!=Z.stretch&&re.push(Z.stretch),r.font[H]={baseString:J,family:ie,weight:Z.weight,stretch:Z.stretch,style:Z.style,variant:Z.variant,width:{},kerning:{},metrics:Ovr(ie,{origin:"top",fontSize:df.baseFontSize,fontStyle:re.join(" ")})},df.fonts[J]=r.font[H]}}),(i||n)&&this.font.forEach(function(Z,H){var q=f5.stringify({size:r.fontSize[H],family:Z.family,stretch:SB?Z.stretch:void 0,variant:Z.variant,weight:Z.weight,style:Z.style});if(r.fontAtlas[H]=r.shader.atlas[q],!r.fontAtlas[H]){var Q=Z.metrics;r.shader.atlas[q]=r.fontAtlas[H]={fontString:q,step:Math.ceil(r.fontSize[H]*Q.bottom*.5)*2,em:r.fontSize[H],cols:0,rows:0,height:0,width:0,chars:[],ids:{},texture:r.regl.texture()}}t.text==null&&(t.text=r.text)}),typeof t.text=="string"&&t.position&&t.position.length>2){for(var a=Array(t.position.length*.5),o=0;o2){for(var u=!t.position[0].length,f=K2.mallocFloat(this.count*2),c=0,h=0;c1?r.align[H]:r.align[0]:r.align;if(typeof q=="number")return q;switch(q){case"right":case"end":return-Z;case"center":case"centre":case"middle":return-Z*.5}return 0})),this.baseline==null&&t.baseline==null&&(t.baseline=0),t.baseline!=null&&(this.baseline=t.baseline,Array.isArray(this.baseline)||(this.baseline=[this.baseline]),this.baselineOffset=this.baseline.map(function(Z,H){var q=(r.font[H]||r.font[0]).metrics,Q=0;return Q+=q.bottom*.5,typeof Z=="number"?Q+=Z-q.baseline:Q+=-q[Z],Q*=-1,Q})),t.color!=null)if(t.color||(t.color="transparent"),typeof t.color=="string"||!isNaN(t.color))this.color=Xte(t.color,"uint8");else{var F;if(typeof t.color[0]=="number"&&t.color.length>this.counts.length){var P=t.color.length;F=K2.mallocUint8(P);for(var I=(t.color.subarray||t.color.slice).bind(t.color),L=0;L4||this.baselineOffset.length>1||this.align&&this.align.length>1||this.fontAtlas.length>1||this.positionOffset.length>2;if(O){var W=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(W);for(var X=0;X1?this.counts[X]:this.counts[0],offset:this.textOffsets.length>1?this.textOffsets[X]:this.textOffsets[0],color:this.color?this.color.length<=4?this.color:this.color.subarray(X*4,X*4+4):[0,0,0,255],opacity:Array.isArray(this.opacity)?this.opacity[X]:this.opacity,baseline:this.baselineOffset[X]!=null?this.baselineOffset[X]:this.baselineOffset[0],align:this.align?this.alignOffset[X]!=null?this.alignOffset[X]:this.alignOffset[0]:0,atlas:this.fontAtlas[X]||this.fontAtlas[0],positionOffset:this.positionOffset.length>2?this.positionOffset.subarray(X*2,X*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=[]}};df.prototype.destroy=function(){};df.prototype.kerning=!0;df.prototype.position={constant:new Float32Array(2)};df.prototype.translate=null;df.prototype.scale=null;df.prototype.font=null;df.prototype.text="";df.prototype.positionOffset=[0,0];df.prototype.opacity=1;df.prototype.color=new Uint8Array([0,0,0,255]);df.prototype.alignOffset=[0,0];df.maxAtlasSize=1024;df.atlasCanvas=document.createElement("canvas");df.atlasContext=df.atlasCanvas.getContext("2d",{alpha:!1});df.baseFontSize=64;df.fonts={};function Uvr(e){return typeof e=="function"&&e._gl&&e.prop&&e.texture&&e.buffer}xZe.exports=df});var EB=K((jri,_Ze)=>{"use strict";var Gvr=aQ(),Hvr=Gte();_Ze.exports=function(t,r,i){var n=t._fullLayout,a=!0;return n._glcanvas.each(function(o){if(o.regl){o.regl.preloadCachedCode(i);return}if(!(o.pick&&!n._has("parcoords"))){try{o.regl=Hvr({canvas:this,attributes:{antialias:!o.pick,preserveDrawingBuffer:!0},pixelRatio:t._context.plotGlPixelRatio||window.devicePixelRatio,extensions:r||[],cachedCode:i||{}})}catch(s){a=!1}o.regl||(a=!1),a&&this.addEventListener("webglcontextlost",function(s){t&&t.emit&&t.emit("plotly_webglcontextlost",{event:s,layer:o.key})},!1)}}),a||Gvr({container:n._glcontainer.node()}),a}});var Kte=K((Zte,EZe)=>{"use strict";var wZe=Kee(),AZe=Cte(),jvr=hXe(),TZe=bZe(),MZe=St(),{rgbaString:Wvr}=wo(),$vr=Q1().selectMode,Yvr=EB(),Xvr=ff(),Zvr=WW(),Kvr=Yee().styleTextSelection,SZe={};function Jvr(e,t,r,i){var n=e._size,a=e.width*i,o=e.height*i,s=n.l*i,l=n.b*i,u=n.r*i,f=n.t*i,c=n.w*i,h=n.h*i;return[s+t.domain[0]*c,l+r.domain[0]*h,a-u-(1-t.domain[1])*c,o-f-(1-r.domain[1])*h]}var Zte=EZe.exports=function(t,r,i){if(i.length){var n=t._fullLayout,a=r._scene,o=r.xaxis,s=r.yaxis,l,u;if(a){var f=Yvr(t,["ANGLE_instanced_arrays","OES_element_index_uint"],SZe);if(!f){a.init();return}var c=a.count,h=n._glcanvas.data()[0].regl;if(Zvr(t,r,i),a.dirty){if((a.line2d||a.error2d)&&!(a.scatter2d||a.fill2d||a.glText)&&h.clear({color:!0,depth:!0}),a.error2d===!0&&(a.error2d=jvr(h)),a.line2d===!0&&(a.line2d=AZe(h)),a.scatter2d===!0&&(a.scatter2d=wZe(h)),a.fill2d===!0&&(a.fill2d=AZe(h)),a.glText===!0)for(a.glText=new Array(c),l=0;la.glText.length){var d=c-a.glText.length;for(l=0;lB&&(isNaN(z[O])||isNaN(z[O+1]));)O-=2;L.positions=z.slice(B,O+2)}return L}),a.line2d.update(a.lineOptions)),a.error2d){var y=(a.errorXOptions||[]).concat(a.errorYOptions||[]).map(function(L){return L||{positions:[],errors:[]}});a.error2d.update(y)}a.scatter2d&&a.scatter2d.update(a.markerOptions),a.fillOrder=MZe.repeat(null,c),a.fill2d&&(a.fillOptions=a.fillOptions.map(function(L,z){var B=i[z];if(!(!L||!B||!B[0]||!B[0].trace)){var O=B[0],W=O.trace,X=O.t,Z=a.lineOptions[z],H,q,Q=[];W._ownfill&&Q.push(z),W._nexttrace&&Q.push(z+1),Q.length&&(a.fillOrder[z]=Q);var N=[],U=Z&&Z.positions||X.positions,J,j;if(W.fill==="tozeroy"){for(J=0;JJ&&isNaN(U[j+1]);)j-=2;U[J+1]!==0&&(N=[U[J],0]),N=N.concat(U.slice(J,j+2)),U[j+1]!==0&&(N=N.concat([U[j],0]))}else if(W.fill==="tozerox"){for(J=0;JJ&&isNaN(U[j]);)j-=2;U[J]!==0&&(N=[0,U[J+1]]),N=N.concat(U.slice(J,j+2)),U[j]!==0&&(N=N.concat([0,U[j+1]]))}else if(W.fill==="toself"||W.fill==="tonext"){for(N=[],H=0,L.splitNull=!0,q=0;q-1;for(let[L]of i)if(L){var b=L.trace,M=L.t,x=M.index,T=b._length,A=M.x,g=M.y;if(b.selectedpoints||w||_){if(w||(w=!0),b.selectedpoints){var E=a.selectBatch[x]=b.selectedpoints,S={};for(u=0;u{"use strict";kZe.exports=function(t,r,i){"use strict";var n,a,o,s,l,u,f,c,h,d,p,v,y,m,w,_,b,M,x,T,A,g,E,S,C,k,D,F,P,I,L,z,B,O,W,X,Z,H,q,Q,N,U,J,j,$,ie,re,de,me,ze,ke,le,te,Ee,we,oe,Y,ne,ye,V,ue,_e,xe,Ae,se,pe,fe,Re,We,Ke,tt;return n=t.gl,a=t.context,o=t.strings,s=t.next,l=t.current,u=t.draw,f=t.elements,c=t.buffer,h=t.shader,d=t.attributes,p=t.vao,v=t.uniforms,y=t.framebuffer,m=t.extensions,w=t.timer,_=t.isBufferArgs,b=s.blend_color,M=l.blend_color,x=s.blend_equation,T=l.blend_equation,A=s.blend_func,g=l.blend_func,E=s.depth_range,S=l.depth_range,C=s.colorMask,k=l.colorMask,D=s.polygonOffset_offset,F=l.polygonOffset_offset,P=s.sample_coverage,I=l.sample_coverage,L=s.stencil_func,z=l.stencil_func,B=s.stencil_opFront,O=l.stencil_opFront,W=s.stencil_opBack,X=l.stencil_opBack,Z=s.scissor_box,H=l.scissor_box,q=s.viewport,Q=l.viewport,N={points:0,point:0,lines:1,line:1,triangles:4,triangle:4,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},U={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},J={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},j={add:32774,subtract:32778,"reverse subtract":32779},$={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},ie={int8:5120,int16:5122,int32:5124,uint8:5121,uint16:5123,uint32:5125,float:5126,float32:5126},re={cw:2304,ccw:2305},de=s.blend_color,me=l.blend_color,ze=s.blend_equation,ke=l.blend_equation,le=s.blend_func,te=l.blend_func,Ee=s.depth_range,we=l.depth_range,oe=s.colorMask,Y=l.colorMask,ne=s.polygonOffset_offset,ye=l.polygonOffset_offset,V=s.sample_coverage,ue=l.sample_coverage,_e=s.stencil_func,xe=l.stencil_func,Ae=s.stencil_opFront,se=l.stencil_opFront,pe=s.stencil_opBack,fe=l.stencil_opBack,Re=s.scissor_box,We=l.scissor_box,Ke=s.viewport,tt=l.viewport,{poll:function(){var at,Ge,ge,Be,Ze,Le,De,Ue,Pe,Se,Ie,ot,ut,_t,At,Gt,Dt,yt,Mt,tr,Ye,nt;l.dirty=!1,Ge=s.dither,ge=s.blend_enable,Be=s.depth_enable,Ze=s.cull_enable,Le=s.polygonOffset_enable,De=s.sample_alpha,Ue=s.sample_enable,Pe=s.stencil_enable,Se=s.scissor_enable,Ie=s.depth_func,ot=l.depth_func,ut=s.depth_mask,_t=l.depth_mask,At=s.cull_face,Gt=l.cull_face,Dt=s.frontFace,yt=l.frontFace,Mt=s.lineWidth,tr=l.lineWidth,Ye=s.stencil_mask,nt=l.stencil_mask,at=y.next,at!==y.cur&&(at?n.bindFramebuffer(36160,at.framebuffer):n.bindFramebuffer(36160,null),y.cur=at),Ge!==l.dither&&(Ge?n.enable(3024):n.disable(3024),l.dither=Ge),ge!==l.blend_enable&&(ge?n.enable(3042):n.disable(3042),l.blend_enable=ge),Be!==l.depth_enable&&(Be?n.enable(2929):n.disable(2929),l.depth_enable=Be),Ze!==l.cull_enable&&(Ze?n.enable(2884):n.disable(2884),l.cull_enable=Ze),Le!==l.polygonOffset_enable&&(Le?n.enable(32823):n.disable(32823),l.polygonOffset_enable=Le),De!==l.sample_alpha&&(De?n.enable(32926):n.disable(32926),l.sample_alpha=De),Ue!==l.sample_enable&&(Ue?n.enable(32928):n.disable(32928),l.sample_enable=Ue),Pe!==l.stencil_enable&&(Pe?n.enable(2960):n.disable(2960),l.stencil_enable=Pe),Se!==l.scissor_enable&&(Se?n.enable(3089):n.disable(3089),l.scissor_enable=Se),(de[0]!==me[0]||de[1]!==me[1]||de[2]!==me[2]||de[3]!==me[3])&&(n.blendColor(de[0],de[1],de[2],de[3]),me[0]=de[0],me[1]=de[1],me[2]=de[2],me[3]=de[3]),(ze[0]!==ke[0]||ze[1]!==ke[1])&&(n.blendEquationSeparate(ze[0],ze[1]),ke[0]=ze[0],ke[1]=ze[1]),(le[0]!==te[0]||le[1]!==te[1]||le[2]!==te[2]||le[3]!==te[3])&&(n.blendFuncSeparate(le[0],le[1],le[2],le[3]),te[0]=le[0],te[1]=le[1],te[2]=le[2],te[3]=le[3]),Ie!==ot&&(n.depthFunc(Ie),l.depth_func=Ie),(Ee[0]!==we[0]||Ee[1]!==we[1])&&(n.depthRange(Ee[0],Ee[1]),we[0]=Ee[0],we[1]=Ee[1]),ut!==_t&&(n.depthMask(ut),l.depth_mask=ut),(oe[0]!==Y[0]||oe[1]!==Y[1]||oe[2]!==Y[2]||oe[3]!==Y[3])&&(n.colorMask(oe[0],oe[1],oe[2],oe[3]),Y[0]=oe[0],Y[1]=oe[1],Y[2]=oe[2],Y[3]=oe[3]),At!==Gt&&(n.cullFace(At),l.cull_face=At),Dt!==yt&&(n.frontFace(Dt),l.frontFace=Dt),Mt!==tr&&(n.lineWidth(Mt),l.lineWidth=Mt),(ne[0]!==ye[0]||ne[1]!==ye[1])&&(n.polygonOffset(ne[0],ne[1]),ye[0]=ne[0],ye[1]=ne[1]),(V[0]!==ue[0]||V[1]!==ue[1])&&(n.sampleCoverage(V[0],V[1]),ue[0]=V[0],ue[1]=V[1]),Ye!==nt&&(n.stencilMask(Ye),l.stencil_mask=Ye),(_e[0]!==xe[0]||_e[1]!==xe[1]||_e[2]!==xe[2])&&(n.stencilFunc(_e[0],_e[1],_e[2]),xe[0]=_e[0],xe[1]=_e[1],xe[2]=_e[2]),(Ae[0]!==se[0]||Ae[1]!==se[1]||Ae[2]!==se[2]||Ae[3]!==se[3])&&(n.stencilOpSeparate(Ae[0],Ae[1],Ae[2],Ae[3]),se[0]=Ae[0],se[1]=Ae[1],se[2]=Ae[2],se[3]=Ae[3]),(pe[0]!==fe[0]||pe[1]!==fe[1]||pe[2]!==fe[2]||pe[3]!==fe[3])&&(n.stencilOpSeparate(pe[0],pe[1],pe[2],pe[3]),fe[0]=pe[0],fe[1]=pe[1],fe[2]=pe[2],fe[3]=pe[3]),(Re[0]!==We[0]||Re[1]!==We[1]||Re[2]!==We[2]||Re[3]!==We[3])&&(n.scissor(Re[0],Re[1],Re[2],Re[3]),We[0]=Re[0],We[1]=Re[1],We[2]=Re[2],We[3]=Re[3]),(Ke[0]!==tt[0]||Ke[1]!==tt[1]||Ke[2]!==tt[2]||Ke[3]!==tt[3])&&(n.viewport(Ke[0],Ke[1],Ke[2],Ke[3]),tt[0]=Ke[0],tt[1]=Ke[1],tt[2]=Ke[2],tt[3]=Ke[3])},refresh:function(){var at,Ge,ge,Be,Ze,Le,De,Ue,Pe,Se,Ie,ot,ut,_t,At,Gt,Dt,yt,Mt,tr,Ye,nt,st,dt;l.dirty=!1,Be=s.dither,Ze=s.blend_enable,Le=s.depth_enable,De=s.cull_enable,Ue=s.polygonOffset_enable,Pe=s.sample_alpha,Se=s.sample_enable,Ie=s.stencil_enable,ot=s.scissor_enable,ut=s.depth_func,_t=l.depth_func,At=s.depth_mask,Gt=l.depth_mask,Dt=s.cull_face,yt=l.cull_face,Mt=s.frontFace,tr=l.frontFace,Ye=s.lineWidth,nt=l.lineWidth,st=s.stencil_mask,dt=l.stencil_mask,at=y.next,at?n.bindFramebuffer(36160,at.framebuffer):n.bindFramebuffer(36160,null),y.cur=at,Ge=d,ge=0;for(var rt=0;rt{"use strict";CZe.exports=function(t,r,i,n,a,o,s,l,u,f,c,h,d,p,v,y,m,w,_,b,M,x,T,A,g,E,S,C,k,D,F,P,I,L,z,B,O,W,X,Z,H,q,Q,N,U,J,j,$,ie,re,de){"use strict";var me,ze,ke,le,te,Ee,we,oe,Y,ne,ye,V,ue,_e,xe,Ae,se,pe,fe,Re,We,Ke,tt,at,Ge,ge,Be,Ze,Le,De,Ue,Pe,Se,Ie,ot,ut,_t,At,Gt,Dt,yt,Mt,tr,Ye,nt,st,dt,rt,ft;return me=t.gl,ze=t.context,ke=t.strings,le=t.next,te=t.current,Ee=t.draw,we=t.elements,oe=t.buffer,Y=t.shader,ne=t.attributes,ye=t.vao,V=t.uniforms,ue=t.framebuffer,_e=t.extensions,xe=t.timer,Ae=t.isBufferArgs,se=le.blend_color,pe=te.blend_color,fe=le.blend_equation,Re=te.blend_equation,We=le.blend_func,Ke=te.blend_func,tt=le.depth_range,at=te.depth_range,Ge=le.colorMask,ge=te.colorMask,Be=le.polygonOffset_offset,Ze=te.polygonOffset_offset,Le=le.sample_coverage,De=te.sample_coverage,Ue=le.stencil_func,Pe=te.stencil_func,Se=le.stencil_opFront,Ie=te.stencil_opFront,ot=le.stencil_opBack,ut=te.stencil_opBack,_t=le.scissor_box,At=te.scissor_box,Gt=le.viewport,Dt=te.viewport,yt={points:0,point:0,lines:1,line:1,triangles:4,triangle:4,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},Mt={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},tr={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},Ye={add:32774,subtract:32778,"reverse subtract":32779},nt={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},st={int8:5120,int16:5122,int32:5124,uint8:5121,uint16:5123,uint32:5125,float:5126,float32:5126},dt={cw:2304,ccw:2305},rt={},rt.stride=8,rt.offset=8,ft={},ft.stride=8,ft.offset=8,{draw:function(Ft){var Et,er,xr,kr,fr,Yr,Or,ri,Tr,Mr,Gr,_i,Fi,wr,Cr,Ut,Wt,dr,Hr,Er,Fr,di,Li,nr,Kt,Me,Xe,$e,Qe,gt,bt,lr,Ct,ur,Rr,Br,Vr,gi,ui,ei,Gi,un,Tt,wi,kn,ii,Pr,Wi,na,yn,$n,$i,en,_r,Zr,fi,aa,ln,ca,Kn,dn,Ta,rn,Ai,nn,Ti,ea,qn,pi,Fn,Pa,pr,oi,Ki,Ui;if(Et=_e.angle_instanced_arrays,er=ue.next,er!==ue.cur&&(er?me.bindFramebuffer(36160,er.framebuffer):me.bindFramebuffer(36160,null),ue.cur=er),te.dirty){var pa,Na,on,wn,Ra,ti,Yn,Ja,ja,ka,Ci,vn,Va,Hi,zr,ni,bn,Bi,vi,mr,Mi,Cn,jr,Xn,an,ta,qi,On,Nn,ia,Qr,Di;pa=le.dither,pa!==te.dither&&(pa?me.enable(3024):me.disable(3024),te.dither=pa),Na=le.depth_func,Na!==te.depth_func&&(me.depthFunc(Na),te.depth_func=Na),on=tt[0],wn=tt[1],(on!==at[0]||wn!==at[1])&&(me.depthRange(on,wn),at[0]=on,at[1]=wn),Ra=le.depth_mask,Ra!==te.depth_mask&&(me.depthMask(Ra),te.depth_mask=Ra),ti=Ge[0],Yn=Ge[1],Ja=Ge[2],ja=Ge[3],(ti!==ge[0]||Yn!==ge[1]||Ja!==ge[2]||ja!==ge[3])&&(me.colorMask(ti,Yn,Ja,ja),ge[0]=ti,ge[1]=Yn,ge[2]=Ja,ge[3]=ja),ka=le.cull_enable,ka!==te.cull_enable&&(ka?me.enable(2884):me.disable(2884),te.cull_enable=ka),Ci=le.cull_face,Ci!==te.cull_face&&(me.cullFace(Ci),te.cull_face=Ci),vn=le.frontFace,vn!==te.frontFace&&(me.frontFace(vn),te.frontFace=vn),Va=le.lineWidth,Va!==te.lineWidth&&(me.lineWidth(Va),te.lineWidth=Va),Hi=le.polygonOffset_enable,Hi!==te.polygonOffset_enable&&(Hi?me.enable(32823):me.disable(32823),te.polygonOffset_enable=Hi),zr=Be[0],ni=Be[1],(zr!==Ze[0]||ni!==Ze[1])&&(me.polygonOffset(zr,ni),Ze[0]=zr,Ze[1]=ni),bn=le.sample_alpha,bn!==te.sample_alpha&&(bn?me.enable(32926):me.disable(32926),te.sample_alpha=bn),Bi=le.sample_enable,Bi!==te.sample_enable&&(Bi?me.enable(32928):me.disable(32928),te.sample_enable=Bi),vi=Le[0],mr=Le[1],(vi!==De[0]||mr!==De[1])&&(me.sampleCoverage(vi,mr),De[0]=vi,De[1]=mr),Mi=le.stencil_mask,Mi!==te.stencil_mask&&(me.stencilMask(Mi),te.stencil_mask=Mi),Cn=Ue[0],jr=Ue[1],Xn=Ue[2],(Cn!==Pe[0]||jr!==Pe[1]||Xn!==Pe[2])&&(me.stencilFunc(Cn,jr,Xn),Pe[0]=Cn,Pe[1]=jr,Pe[2]=Xn),an=Se[0],ta=Se[1],qi=Se[2],On=Se[3],(an!==Ie[0]||ta!==Ie[1]||qi!==Ie[2]||On!==Ie[3])&&(me.stencilOpSeparate(an,ta,qi,On),Ie[0]=an,Ie[1]=ta,Ie[2]=qi,Ie[3]=On),Nn=ot[0],ia=ot[1],Qr=ot[2],Di=ot[3],(Nn!==ut[0]||ia!==ut[1]||Qr!==ut[2]||Di!==ut[3])&&(me.stencilOpSeparate(Nn,ia,Qr,Di),ut[0]=Nn,ut[1]=ia,ut[2]=Qr,ut[3]=Di)}xr=Ft.viewport,kr=xr.x|0,fr=xr.y|0,Yr="width"in xr?xr.width|0:ze.framebufferWidth-kr,Or="height"in xr?xr.height|0:ze.framebufferHeight-fr,ri=ze.viewportWidth,ze.viewportWidth=Yr,Tr=ze.viewportHeight,ze.viewportHeight=Or,me.viewport(kr,fr,Yr,Or),Dt[0]=kr,Dt[1]=fr,Dt[2]=Yr,Dt[3]=Or,me.blendColor(0,0,0,0),pe[0]=0,pe[1]=0,pe[2]=0,pe[3]=0,i?me.enable(3042):me.disable(3042),te.blend_enable=i,me.blendEquationSeparate(32774,32774),Re[0]=32774,Re[1]=32774,me.blendFuncSeparate(770,771,773,1),Ke[0]=770,Ke[1]=771,Ke[2]=773,Ke[3]=1,n?me.enable(2929):me.disable(2929),te.depth_enable=n,Mr=Ft.viewport,Gr=Mr.x|0,_i=Mr.y|0,Fi="width"in Mr?Mr.width|0:ze.framebufferWidth-Gr,wr="height"in Mr?Mr.height|0:ze.framebufferHeight-_i,me.scissor(Gr,_i,Fi,wr),At[0]=Gr,At[1]=_i,At[2]=Fi,At[3]=wr,a?me.enable(3089):me.disable(3089),te.scissor_enable=a,o?me.enable(2960):me.disable(2960),te.stencil_enable=o,Cr=te.profile,Cr&&(Ut=performance.now(),r.count++),me.useProgram(s.program),Wt=_e.angle_instanced_arrays,ye.setVAO(null),dr=Ft.positionBuffer,rt.buffer=dr,Hr=!1,Er=1,Fr=0,di=0,Li=0,nr=0,Kt=null,Me=0,Xe=!1,$e=5126,Qe=0,gt=0,bt=0,Ae(rt)?(Hr=!0,Kt=oe.createStream(34962,rt),$e=Kt.dtype):(Kt=oe.getBuffer(rt),Kt?$e=Kt.dtype:"constant"in rt?(Er=2,typeof rt.constant=="number"?(Fr=rt.constant,di=Li=nr=0):(Fr=rt.constant.length>0?rt.constant[0]:0,di=rt.constant.length>1?rt.constant[1]:0,Li=rt.constant.length>2?rt.constant[2]:0,nr=rt.constant.length>3?rt.constant[3]:0)):(Ae(rt.buffer)?Kt=oe.createStream(34962,rt.buffer):Kt=oe.getBuffer(rt.buffer),$e="type"in rt?st[rt.type]:Kt.dtype,Xe=!!rt.normalized,Me=rt.size|0,Qe=rt.offset|0,gt=rt.stride|0,bt=rt.divisor|0)),lr=l.location,Ct=ne[lr],Er===1?(Ct.buffer||me.enableVertexAttribArray(lr),ur=Me||2,(Ct.type!==$e||Ct.size!==ur||Ct.buffer!==Kt||Ct.normalized!==Xe||Ct.offset!==Qe||Ct.stride!==gt)&&(me.bindBuffer(34962,Kt.buffer),me.vertexAttribPointer(lr,ur,$e,Xe,gt,Qe),Ct.type=$e,Ct.size=ur,Ct.buffer=Kt,Ct.normalized=Xe,Ct.offset=Qe,Ct.stride=gt),Ct.divisor!==bt&&(Wt.vertexAttribDivisorANGLE(lr,bt),Ct.divisor=bt)):(Ct.buffer&&(me.disableVertexAttribArray(lr),Ct.buffer=null),(Ct.x!==Fr||Ct.y!==di||Ct.z!==Li||Ct.w!==nr)&&(me.vertexAttrib4f(lr,Fr,di,Li,nr),Ct.x=Fr,Ct.y=di,Ct.z=Li,Ct.w=nr)),Rr=Ft.positionFractBuffer,ft.buffer=Rr,Br=!1,Vr=1,gi=0,ui=0,ei=0,Gi=0,un=null,Tt=0,wi=!1,kn=5126,ii=0,Pr=0,Wi=0,Ae(ft)?(Br=!0,un=oe.createStream(34962,ft),kn=un.dtype):(un=oe.getBuffer(ft),un?kn=un.dtype:"constant"in ft?(Vr=2,typeof ft.constant=="number"?(gi=ft.constant,ui=ei=Gi=0):(gi=ft.constant.length>0?ft.constant[0]:0,ui=ft.constant.length>1?ft.constant[1]:0,ei=ft.constant.length>2?ft.constant[2]:0,Gi=ft.constant.length>3?ft.constant[3]:0)):(Ae(ft.buffer)?un=oe.createStream(34962,ft.buffer):un=oe.getBuffer(ft.buffer),kn="type"in ft?st[ft.type]:un.dtype,wi=!!ft.normalized,Tt=ft.size|0,ii=ft.offset|0,Pr=ft.stride|0,Wi=ft.divisor|0)),na=u.location,yn=ne[na],Vr===1?(yn.buffer||me.enableVertexAttribArray(na),$n=Tt||2,(yn.type!==kn||yn.size!==$n||yn.buffer!==un||yn.normalized!==wi||yn.offset!==ii||yn.stride!==Pr)&&(me.bindBuffer(34962,un.buffer),me.vertexAttribPointer(na,$n,kn,wi,Pr,ii),yn.type=kn,yn.size=$n,yn.buffer=un,yn.normalized=wi,yn.offset=ii,yn.stride=Pr),yn.divisor!==Wi&&(Wt.vertexAttribDivisorANGLE(na,Wi),yn.divisor=Wi)):(yn.buffer&&(me.disableVertexAttribArray(na),yn.buffer=null),(yn.x!==gi||yn.y!==ui||yn.z!==ei||yn.w!==Gi)&&(me.vertexAttrib4f(na,gi,ui,ei,Gi),yn.x=gi,yn.y=ui,yn.z=ei,yn.w=Gi)),$i=Ft.fill,en=$i[0],_r=$i[1],Zr=$i[2],fi=$i[3],me.uniform4f(f.location,en,_r,Zr,fi),aa=Ft.id,me.uniform1f(c.location,aa),ln=Ft.opacity,me.uniform1f(h.location,ln),ca=Ft.scale,Kn=ca[0],dn=ca[1],me.uniform2f(d.location,Kn,dn),Ta=Ft.scaleFract,rn=Ta[0],Ai=Ta[1],me.uniform2f(p.location,rn,Ai),nn=Ft.translate,Ti=nn[0],ea=nn[1],me.uniform2f(v.location,Ti,ea),qn=Ft.translateFract,pi=qn[0],Fn=qn[1],me.uniform2f(y.location,pi,Fn),Pa=m.call(this,ze,Ft,0),pr=null,oi=Ae(Pa),oi?pr=we.createStream(Pa):pr=we.getElements(Pa),pr&&me.bindBuffer(34963,pr.buffer.buffer),Ki=pr?pr.vertCount:-1,Ki&&(Ui=Ee.instances,Ui>0?pr?Wt.drawElementsInstancedANGLE(4,Ki,pr.type,0<<(pr.type-5121>>1),Ui):Wt.drawArraysInstancedANGLE(4,0,Ki,Ui):Ui<0&&(pr?me.drawElements(4,Ki,pr.type,0<<(pr.type-5121>>1)):me.drawArrays(4,0,Ki)),te.dirty=!0,ye.setVAO(null),ze.viewportWidth=ri,ze.viewportHeight=Tr,Cr&&(r.cpuTime+=performance.now()-Ut),Hr&&oe.destroyStream(Kt),Br&&oe.destroyStream(un),oi&&we.destroyStream(pr))},scope:function(Ft,Et,er){var xr,kr,fr,Yr,Or,ri,Tr,Mr,Gr,_i,Fi,wr,Cr,Ut,Wt,dr,Hr,Er,Fr,di,Li,nr,Kt,Me,Xe,$e,Qe,gt,bt,lr,Ct,ur,Rr,Br,Vr,gi,ui,ei,Gi,un,Tt,wi,kn,ii,Pr,Wi,na,yn,$n,$i,en,_r,Zr,fi,aa,ln,ca,Kn,dn,Ta,rn,Ai,nn,Ti,ea,qn,pi,Fn,Pa,pr,oi,Ki,Ui,pa,Na,on,wn,Ra,ti,Yn,Ja,ja,ka,Ci,vn,Va,Hi,zr,ni,bn,Bi,vi,mr,Mi,Cn,jr,Xn,an,ta,qi,On,Nn,ia,Qr,Di,fn,Dn,Vn,mn,qr,Pi,Ua,yi,Ma,Ba,Bn;xr=Ft.viewport,kr=xr.x|0,fr=xr.y|0,Yr="width"in xr?xr.width|0:ze.framebufferWidth-kr,Or="height"in xr?xr.height|0:ze.framebufferHeight-fr,ri=ze.viewportWidth,ze.viewportWidth=Yr,Tr=ze.viewportHeight,ze.viewportHeight=Or,Mr=Gt[0],Gt[0]=kr,Gr=Gt[1],Gt[1]=fr,_i=Gt[2],Gt[2]=Yr,Fi=Gt[3],Gt[3]=Or,wr=se[0],se[0]=w,Cr=se[1],se[1]=_,Ut=se[2],se[2]=b,Wt=se[3],se[3]=M,dr=le.blend_enable,le.blend_enable=x,Hr=fe[0],fe[0]=T,Er=fe[1],fe[1]=A,Fr=We[0],We[0]=g,di=We[1],We[1]=E,Li=We[2],We[2]=S,nr=We[3],We[3]=C,Kt=le.depth_enable,le.depth_enable=k,Me=Ft.viewport,Xe=Me.x|0,$e=Me.y|0,Qe="width"in Me?Me.width|0:ze.framebufferWidth-Xe,gt="height"in Me?Me.height|0:ze.framebufferHeight-$e,bt=_t[0],_t[0]=Xe,lr=_t[1],_t[1]=$e,Ct=_t[2],_t[2]=Qe,ur=_t[3],_t[3]=gt,Rr=le.scissor_enable,le.scissor_enable=D,Br=le.stencil_enable,le.stencil_enable=F,Vr=te.profile,Vr&&(gi=performance.now(),r.count++),ui=m.call(this,ze,Ft,er),ei=null,Gi=Ae(ui),Gi?ei=we.createStream(ui):ei=we.getElements(ui),un=Ee.elements,Ee.elements=ei,Tt=Ee.offset,Ee.offset=P,wi=ei?ei.vertCount:-1,kn=Ee.count,Ee.count=wi,ii=Ee.primitive,Ee.primitive=I,Pr=Ft.scale,Wi=V[L],V[L]=Pr,na=Ft.fill,yn=V[z],V[z]=na,$n=Ft.scaleFract,$i=V[B],V[B]=$n,en=Ft.translateFract,_r=V[O],V[O]=en,Zr=Ft.translate,fi=V[W],V[W]=Zr,aa=Ft.opacity,ln=V[X],V[X]=aa,ca=ze.pixelRatio,Kn=V[Z],V[Z]=ca,dn=Ft.id,Ta=V[H],V[H]=dn,rn=q.call(this,ze,Ft,er),Ai=V[Q],V[Q]=rn,nn=Ft.positionBuffer,rt.buffer=nn,Ti=!1,ea=1,qn=0,pi=0,Fn=0,Pa=0,pr=null,oi=0,Ki=!1,Ui=5126,pa=0,Na=0,on=0,Ae(rt)?(Ti=!0,pr=oe.createStream(34962,rt),Ui=pr.dtype):(pr=oe.getBuffer(rt),pr?Ui=pr.dtype:"constant"in rt?(ea=2,typeof rt.constant=="number"?(qn=rt.constant,pi=Fn=Pa=0):(qn=rt.constant.length>0?rt.constant[0]:0,pi=rt.constant.length>1?rt.constant[1]:0,Fn=rt.constant.length>2?rt.constant[2]:0,Pa=rt.constant.length>3?rt.constant[3]:0)):(Ae(rt.buffer)?pr=oe.createStream(34962,rt.buffer):pr=oe.getBuffer(rt.buffer),Ui="type"in rt?st[rt.type]:pr.dtype,Ki=!!rt.normalized,oi=rt.size|0,pa=rt.offset|0,Na=rt.stride|0,on=rt.divisor|0)),wn=N.state,N.state=ea,Ra=N.x,N.x=qn,ti=N.y,N.y=pi,Yn=N.z,N.z=Fn,Ja=N.w,N.w=Pa,ja=N.buffer,N.buffer=pr,ka=N.size,N.size=oi,Ci=N.normalized,N.normalized=Ki,vn=N.type,N.type=Ui,Va=N.offset,N.offset=pa,Hi=N.stride,N.stride=Na,zr=N.divisor,N.divisor=on,ni=Ft.positionFractBuffer,ft.buffer=ni,bn=!1,Bi=1,vi=0,mr=0,Mi=0,Cn=0,jr=null,Xn=0,an=!1,ta=5126,qi=0,On=0,Nn=0,Ae(ft)?(bn=!0,jr=oe.createStream(34962,ft),ta=jr.dtype):(jr=oe.getBuffer(ft),jr?ta=jr.dtype:"constant"in ft?(Bi=2,typeof ft.constant=="number"?(vi=ft.constant,mr=Mi=Cn=0):(vi=ft.constant.length>0?ft.constant[0]:0,mr=ft.constant.length>1?ft.constant[1]:0,Mi=ft.constant.length>2?ft.constant[2]:0,Cn=ft.constant.length>3?ft.constant[3]:0)):(Ae(ft.buffer)?jr=oe.createStream(34962,ft.buffer):jr=oe.getBuffer(ft.buffer),ta="type"in ft?st[ft.type]:jr.dtype,an=!!ft.normalized,Xn=ft.size|0,qi=ft.offset|0,On=ft.stride|0,Nn=ft.divisor|0)),ia=U.state,U.state=Bi,Qr=U.x,U.x=vi,Di=U.y,U.y=mr,fn=U.z,U.z=Mi,Dn=U.w,U.w=Cn,Vn=U.buffer,U.buffer=jr,mn=U.size,U.size=Xn,qr=U.normalized,U.normalized=an,Pi=U.type,U.type=ta,Ua=U.offset,U.offset=qi,yi=U.stride,U.stride=On,Ma=U.divisor,U.divisor=Nn,Ba=Y.vert,Y.vert=J,Bn=Y.frag,Y.frag=j,te.dirty=!0,Et(ze,Ft,er),ze.viewportWidth=ri,ze.viewportHeight=Tr,Gt[0]=Mr,Gt[1]=Gr,Gt[2]=_i,Gt[3]=Fi,se[0]=wr,se[1]=Cr,se[2]=Ut,se[3]=Wt,le.blend_enable=dr,fe[0]=Hr,fe[1]=Er,We[0]=Fr,We[1]=di,We[2]=Li,We[3]=nr,le.depth_enable=Kt,_t[0]=bt,_t[1]=lr,_t[2]=Ct,_t[3]=ur,le.scissor_enable=Rr,le.stencil_enable=Br,Vr&&(r.cpuTime+=performance.now()-gi),Gi&&we.destroyStream(ei),Ee.elements=un,Ee.offset=Tt,Ee.count=kn,Ee.primitive=ii,V[L]=Wi,V[z]=yn,V[B]=$i,V[O]=_r,V[W]=fi,V[X]=ln,V[Z]=Kn,V[H]=Ta,V[Q]=Ai,Ti&&oe.destroyStream(pr),N.state=wn,N.x=Ra,N.y=ti,N.z=Yn,N.w=Ja,N.buffer=ja,N.size=ka,N.normalized=Ci,N.type=vn,N.offset=Va,N.stride=Hi,N.divisor=zr,bn&&oe.destroyStream(jr),U.state=ia,U.x=Qr,U.y=Di,U.z=fn,U.w=Dn,U.buffer=Vn,U.size=mn,U.normalized=qr,U.type=Pi,U.offset=Ua,U.stride=yi,U.divisor=Ma,Y.vert=Ba,Y.frag=Bn,te.dirty=!0},batch:function(Ft,Et){var er,xr,kr,fr,Yr,Or,ri;if(er=_e.angle_instanced_arrays,xr=ue.next,xr!==ue.cur&&(xr?me.bindFramebuffer(36160,xr.framebuffer):me.bindFramebuffer(36160,null),ue.cur=xr),te.dirty){var Tr,Mr,Gr,_i,Fi,wr,Cr,Ut,Wt,dr,Hr,Er,Fr,di,Li,nr,Kt,Me,Xe,$e,Qe,gt,bt,lr,Ct,ur,Rr,Br,Vr,gi,ui,ei;Tr=le.dither,Tr!==te.dither&&(Tr?me.enable(3024):me.disable(3024),te.dither=Tr),Mr=le.depth_func,Mr!==te.depth_func&&(me.depthFunc(Mr),te.depth_func=Mr),Gr=tt[0],_i=tt[1],(Gr!==at[0]||_i!==at[1])&&(me.depthRange(Gr,_i),at[0]=Gr,at[1]=_i),Fi=le.depth_mask,Fi!==te.depth_mask&&(me.depthMask(Fi),te.depth_mask=Fi),wr=Ge[0],Cr=Ge[1],Ut=Ge[2],Wt=Ge[3],(wr!==ge[0]||Cr!==ge[1]||Ut!==ge[2]||Wt!==ge[3])&&(me.colorMask(wr,Cr,Ut,Wt),ge[0]=wr,ge[1]=Cr,ge[2]=Ut,ge[3]=Wt),dr=le.cull_enable,dr!==te.cull_enable&&(dr?me.enable(2884):me.disable(2884),te.cull_enable=dr),Hr=le.cull_face,Hr!==te.cull_face&&(me.cullFace(Hr),te.cull_face=Hr),Er=le.frontFace,Er!==te.frontFace&&(me.frontFace(Er),te.frontFace=Er),Fr=le.lineWidth,Fr!==te.lineWidth&&(me.lineWidth(Fr),te.lineWidth=Fr),di=le.polygonOffset_enable,di!==te.polygonOffset_enable&&(di?me.enable(32823):me.disable(32823),te.polygonOffset_enable=di),Li=Be[0],nr=Be[1],(Li!==Ze[0]||nr!==Ze[1])&&(me.polygonOffset(Li,nr),Ze[0]=Li,Ze[1]=nr),Kt=le.sample_alpha,Kt!==te.sample_alpha&&(Kt?me.enable(32926):me.disable(32926),te.sample_alpha=Kt),Me=le.sample_enable,Me!==te.sample_enable&&(Me?me.enable(32928):me.disable(32928),te.sample_enable=Me),Xe=Le[0],$e=Le[1],(Xe!==De[0]||$e!==De[1])&&(me.sampleCoverage(Xe,$e),De[0]=Xe,De[1]=$e),Qe=le.stencil_mask,Qe!==te.stencil_mask&&(me.stencilMask(Qe),te.stencil_mask=Qe),gt=Ue[0],bt=Ue[1],lr=Ue[2],(gt!==Pe[0]||bt!==Pe[1]||lr!==Pe[2])&&(me.stencilFunc(gt,bt,lr),Pe[0]=gt,Pe[1]=bt,Pe[2]=lr),Ct=Se[0],ur=Se[1],Rr=Se[2],Br=Se[3],(Ct!==Ie[0]||ur!==Ie[1]||Rr!==Ie[2]||Br!==Ie[3])&&(me.stencilOpSeparate(Ct,ur,Rr,Br),Ie[0]=Ct,Ie[1]=ur,Ie[2]=Rr,Ie[3]=Br),Vr=ot[0],gi=ot[1],ui=ot[2],ei=ot[3],(Vr!==ut[0]||gi!==ut[1]||ui!==ut[2]||ei!==ut[3])&&(me.stencilOpSeparate(Vr,gi,ui,ei),ut[0]=Vr,ut[1]=gi,ut[2]=ui,ut[3]=ei)}me.blendColor(0,0,0,0),pe[0]=0,pe[1]=0,pe[2]=0,pe[3]=0,$?me.enable(3042):me.disable(3042),te.blend_enable=$,me.blendEquationSeparate(32774,32774),Re[0]=32774,Re[1]=32774,me.blendFuncSeparate(770,771,773,1),Ke[0]=770,Ke[1]=771,Ke[2]=773,Ke[3]=1,ie?me.enable(2929):me.disable(2929),te.depth_enable=ie,re?me.enable(3089):me.disable(3089),te.scissor_enable=re,de?me.enable(2960):me.disable(2960),te.stencil_enable=de,kr=te.profile,kr&&(fr=performance.now(),r.count+=Et),me.useProgram(s.program),Yr=_e.angle_instanced_arrays;var Gi;for(ye.setVAO(null),Gi=Ee.instances,Or=0;Or0?rt.constant[0]:0,ln=rt.constant.length>1?rt.constant[1]:0,ca=rt.constant.length>2?rt.constant[2]:0,Kn=rt.constant.length>3?rt.constant[3]:0)):(Ae(rt.buffer)?dn=oe.createStream(34962,rt.buffer):dn=oe.getBuffer(rt.buffer),Ai="type"in rt?st[rt.type]:dn.dtype,rn=!!rt.normalized,Ta=rt.size|0,nn=rt.offset|0,Ti=rt.stride|0,ea=rt.divisor|0)),qn=l.location,pi=ne[qn],fi===1?(pi.buffer||me.enableVertexAttribArray(qn),Fn=Ta||2,(pi.type!==Ai||pi.size!==Fn||pi.buffer!==dn||pi.normalized!==rn||pi.offset!==nn||pi.stride!==Ti)&&(me.bindBuffer(34962,dn.buffer),me.vertexAttribPointer(qn,Fn,Ai,rn,Ti,nn),pi.type=Ai,pi.size=Fn,pi.buffer=dn,pi.normalized=rn,pi.offset=nn,pi.stride=Ti),pi.divisor!==ea&&(Yr.vertexAttribDivisorANGLE(qn,ea),pi.divisor=ea)):(pi.buffer&&(me.disableVertexAttribArray(qn),pi.buffer=null),(pi.x!==aa||pi.y!==ln||pi.z!==ca||pi.w!==Kn)&&(me.vertexAttrib4f(qn,aa,ln,ca,Kn),pi.x=aa,pi.y=ln,pi.z=ca,pi.w=Kn)),Pa=ri.positionFractBuffer,ft.buffer=Pa,pr=!1,oi=1,Ki=0,Ui=0,pa=0,Na=0,on=null,wn=0,Ra=!1,ti=5126,Yn=0,Ja=0,ja=0,Ae(ft)?(pr=!0,on=oe.createStream(34962,ft),ti=on.dtype):(on=oe.getBuffer(ft),on?ti=on.dtype:"constant"in ft?(oi=2,typeof ft.constant=="number"?(Ki=ft.constant,Ui=pa=Na=0):(Ki=ft.constant.length>0?ft.constant[0]:0,Ui=ft.constant.length>1?ft.constant[1]:0,pa=ft.constant.length>2?ft.constant[2]:0,Na=ft.constant.length>3?ft.constant[3]:0)):(Ae(ft.buffer)?on=oe.createStream(34962,ft.buffer):on=oe.getBuffer(ft.buffer),ti="type"in ft?st[ft.type]:on.dtype,Ra=!!ft.normalized,wn=ft.size|0,Yn=ft.offset|0,Ja=ft.stride|0,ja=ft.divisor|0)),ka=u.location,Ci=ne[ka],oi===1?(Ci.buffer||me.enableVertexAttribArray(ka),vn=wn||2,(Ci.type!==ti||Ci.size!==vn||Ci.buffer!==on||Ci.normalized!==Ra||Ci.offset!==Yn||Ci.stride!==Ja)&&(me.bindBuffer(34962,on.buffer),me.vertexAttribPointer(ka,vn,ti,Ra,Ja,Yn),Ci.type=ti,Ci.size=vn,Ci.buffer=on,Ci.normalized=Ra,Ci.offset=Yn,Ci.stride=Ja),Ci.divisor!==ja&&(Yr.vertexAttribDivisorANGLE(ka,ja),Ci.divisor=ja)):(Ci.buffer&&(me.disableVertexAttribArray(ka),Ci.buffer=null),(Ci.x!==Ki||Ci.y!==Ui||Ci.z!==pa||Ci.w!==Na)&&(me.vertexAttrib4f(ka,Ki,Ui,pa,Na),Ci.x=Ki,Ci.y=Ui,Ci.z=pa,Ci.w=Na)),Va=ri.fill,Hi=Va[0],ni=Va[1],Bi=Va[2],mr=Va[3],(!Or||zr!==Hi||bn!==ni||vi!==Bi||Mi!==mr)&&(zr=Hi,bn=ni,vi=Bi,Mi=mr,me.uniform4f(f.location,Hi,ni,Bi,mr)),Cn=ri.id,(!Or||jr!==Cn)&&(jr=Cn,me.uniform1f(c.location,Cn)),Xn=ri.opacity,(!Or||an!==Xn)&&(an=Xn,me.uniform1f(h.location,Xn)),ta=ri.scale,qi=ta[0],Nn=ta[1],(!Or||On!==qi||ia!==Nn)&&(On=qi,ia=Nn,me.uniform2f(d.location,qi,Nn)),Qr=ri.scaleFract,Di=Qr[0],Dn=Qr[1],(!Or||fn!==Di||Vn!==Dn)&&(fn=Di,Vn=Dn,me.uniform2f(p.location,Di,Dn)),mn=ri.translate,qr=mn[0],Ua=mn[1],(!Or||Pi!==qr||yi!==Ua)&&(Pi=qr,yi=Ua,me.uniform2f(v.location,qr,Ua)),Ma=ri.translateFract,Ba=Ma[0],ji=Ma[1],(!Or||Bn!==Ba||gn!==ji)&&(Bn=Ba,gn=ji,me.uniform2f(y.location,Ba,ji)),jn=m.call(this,ze,ri,Or),Un=null,Ii=Ae(jn),Ii?Un=we.createStream(jn):Un=we.getElements(jn),Un&&me.bindBuffer(34963,Un.buffer.buffer),gr=Un?Un.vertCount:-1,gr&&(Gi>0?Un?Yr.drawElementsInstancedANGLE(4,gr,Un.type,0<<(Un.type-5121>>1),Gi):Yr.drawArraysInstancedANGLE(4,0,gr,Gi):Gi<0&&(Un?me.drawElements(4,gr,Un.type,0<<(Un.type-5121>>1)):me.drawArrays(4,0,gr)),ze.viewportWidth=Pr,ze.viewportHeight=Wi,Zr&&oe.destroyStream(dn),pr&&oe.destroyStream(on),Ii&&we.destroyStream(Un))}te.dirty=!0,ye.setVAO(null),kr&&(r.cpuTime+=performance.now()-fr)}}}});var DB=K((Yri,DZe)=>{"use strict";DZe.exports=function(t,r,i,n,a,o,s,l,u,f,c,h,d,p,v,y,m,w,_,b,M,x,T,A,g,E,S,C,k,D,F,P,I,L,z,B,O,W,X,Z,H,q,Q,N,U,J,j,$,ie,re,de,me,ze,ke,le,te,Ee,we,oe,Y,ne,ye,V,ue,_e,xe,Ae){"use strict";var se,pe,fe,Re,We,Ke,tt,at,Ge,ge,Be,Ze,Le,De,Ue,Pe,Se,Ie,ot,ut,_t,At,Gt,Dt,yt,Mt,tr,Ye,nt,st,dt,rt,ft,Ft,Et,er,xr,kr,fr,Yr,Or,ri,Tr,Mr,Gr,_i,Fi,wr,Cr,Ut,Wt;return se=t.gl,pe=t.context,fe=t.strings,Re=t.next,We=t.current,Ke=t.draw,tt=t.elements,at=t.buffer,Ge=t.shader,ge=t.attributes,Be=t.vao,Ze=t.uniforms,Le=t.framebuffer,De=t.extensions,Ue=t.timer,Pe=t.isBufferArgs,Se=Re.blend_color,Ie=We.blend_color,ot=Re.blend_equation,ut=We.blend_equation,_t=Re.blend_func,At=We.blend_func,Gt=Re.depth_range,Dt=We.depth_range,yt=Re.colorMask,Mt=We.colorMask,tr=Re.polygonOffset_offset,Ye=We.polygonOffset_offset,nt=Re.sample_coverage,st=We.sample_coverage,dt=Re.stencil_func,rt=We.stencil_func,ft=Re.stencil_opFront,Ft=We.stencil_opFront,Et=Re.stencil_opBack,er=We.stencil_opBack,xr=Re.scissor_box,kr=We.scissor_box,fr=Re.viewport,Yr=We.viewport,Or={points:0,point:0,lines:1,line:1,triangles:4,triangle:4,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},ri={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},Tr={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},Mr={add:32774,subtract:32778,"reverse subtract":32779},Gr={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},_i={int8:5120,int16:5122,int32:5124,uint8:5121,uint16:5123,uint32:5125,float:5126,float32:5126},Fi={cw:2304,ccw:2305},wr={},wr.buffer=i,wr.divisor=1,Cr={},Cr.buffer=n,Cr.divisor=1,Ut={},Ut.buffer=a,Ut.divisor=1,Wt={},Wt.buffer=o,Wt.divisor=1,{draw:function(dr){var Hr,Er,Fr,di,Li,nr,Kt,Me,Xe,$e,Qe,gt,bt,lr,Ct,ur,Rr,Br,Vr,gi,ui,ei,Gi,un,Tt,wi,kn,ii,Pr,Wi,na,yn,$n,$i,en,_r,Zr,fi,aa,ln,ca,Kn,dn,Ta,rn,Ai,nn,Ti,ea,qn,pi,Fn,Pa,pr,oi,Ki,Ui,pa,Na,on,wn,Ra,ti,Yn,Ja,ja,ka,Ci,vn,Va,Hi,zr,ni,bn,Bi,vi,mr,Mi,Cn,jr,Xn,an,ta,qi,On,Nn,ia,Qr,Di,fn,Dn,Vn,mn,qr,Pi,Ua,yi,Ma,Ba,Bn,ji,gn,jn,Un,Ii,gr,Ln,xn,da,Si,Kr,Gn,to,Jn;if(Hr=De.angle_instanced_arrays,Er=Le.next,Er!==Le.cur&&(Er?se.bindFramebuffer(36160,Er.framebuffer):se.bindFramebuffer(36160,null),Le.cur=Er),We.dirty){var ro,mo,Oa,Ei,co,Pn,Fa,oa,Hn,va,ma,Sa,ki,Wr,An,Za,Ga,Ca,za,Wn,Zi,sa,So,ya,Qn,Tn,Da,zn,Ia,Yi,In,Oi,la;ro=Re.dither,ro!==We.dither&&(ro?se.enable(3024):se.disable(3024),We.dither=ro),mo=Re.depth_func,mo!==We.depth_func&&(se.depthFunc(mo),We.depth_func=mo),Oa=Gt[0],Ei=Gt[1],(Oa!==Dt[0]||Ei!==Dt[1])&&(se.depthRange(Oa,Ei),Dt[0]=Oa,Dt[1]=Ei),co=Re.depth_mask,co!==We.depth_mask&&(se.depthMask(co),We.depth_mask=co),Pn=yt[0],Fa=yt[1],oa=yt[2],Hn=yt[3],(Pn!==Mt[0]||Fa!==Mt[1]||oa!==Mt[2]||Hn!==Mt[3])&&(se.colorMask(Pn,Fa,oa,Hn),Mt[0]=Pn,Mt[1]=Fa,Mt[2]=oa,Mt[3]=Hn),va=Re.cull_enable,va!==We.cull_enable&&(va?se.enable(2884):se.disable(2884),We.cull_enable=va),ma=Re.cull_face,ma!==We.cull_face&&(se.cullFace(ma),We.cull_face=ma),Sa=Re.frontFace,Sa!==We.frontFace&&(se.frontFace(Sa),We.frontFace=Sa),ki=Re.lineWidth,ki!==We.lineWidth&&(se.lineWidth(ki),We.lineWidth=ki),Wr=Re.polygonOffset_enable,Wr!==We.polygonOffset_enable&&(Wr?se.enable(32823):se.disable(32823),We.polygonOffset_enable=Wr),An=tr[0],Za=tr[1],(An!==Ye[0]||Za!==Ye[1])&&(se.polygonOffset(An,Za),Ye[0]=An,Ye[1]=Za),Ga=Re.sample_alpha,Ga!==We.sample_alpha&&(Ga?se.enable(32926):se.disable(32926),We.sample_alpha=Ga),Ca=Re.sample_enable,Ca!==We.sample_enable&&(Ca?se.enable(32928):se.disable(32928),We.sample_enable=Ca),za=nt[0],Wn=nt[1],(za!==st[0]||Wn!==st[1])&&(se.sampleCoverage(za,Wn),st[0]=za,st[1]=Wn),Zi=Re.stencil_enable,Zi!==We.stencil_enable&&(Zi?se.enable(2960):se.disable(2960),We.stencil_enable=Zi),sa=Re.stencil_mask,sa!==We.stencil_mask&&(se.stencilMask(sa),We.stencil_mask=sa),So=dt[0],ya=dt[1],Qn=dt[2],(So!==rt[0]||ya!==rt[1]||Qn!==rt[2])&&(se.stencilFunc(So,ya,Qn),rt[0]=So,rt[1]=ya,rt[2]=Qn),Tn=ft[0],Da=ft[1],zn=ft[2],Ia=ft[3],(Tn!==Ft[0]||Da!==Ft[1]||zn!==Ft[2]||Ia!==Ft[3])&&(se.stencilOpSeparate(Tn,Da,zn,Ia),Ft[0]=Tn,Ft[1]=Da,Ft[2]=zn,Ft[3]=Ia),Yi=Et[0],In=Et[1],Oi=Et[2],la=Et[3],(Yi!==er[0]||In!==er[1]||Oi!==er[2]||la!==er[3])&&(se.stencilOpSeparate(Yi,In,Oi,la),er[0]=Yi,er[1]=In,er[2]=Oi,er[3]=la)}Fr=dr.viewport,di=Fr.x|0,Li=Fr.y|0,nr="width"in Fr?Fr.width|0:pe.framebufferWidth-di,Kt="height"in Fr?Fr.height|0:pe.framebufferHeight-Li,Me=pe.viewportWidth,pe.viewportWidth=nr,Xe=pe.viewportHeight,pe.viewportHeight=Kt,se.viewport(di,Li,nr,Kt),Yr[0]=di,Yr[1]=Li,Yr[2]=nr,Yr[3]=Kt,se.blendColor(0,0,0,0),Ie[0]=0,Ie[1]=0,Ie[2]=0,Ie[3]=0,s?se.enable(3042):se.disable(3042),We.blend_enable=s,se.blendEquationSeparate(32774,32774),ut[0]=32774,ut[1]=32774,se.blendFuncSeparate(770,771,773,1),At[0]=770,At[1]=771,At[2]=773,At[3]=1,l?se.enable(2929):se.disable(2929),We.depth_enable=l,$e=dr.viewport,Qe=$e.x|0,gt=$e.y|0,bt="width"in $e?$e.width|0:pe.framebufferWidth-Qe,lr="height"in $e?$e.height|0:pe.framebufferHeight-gt,se.scissor(Qe,gt,bt,lr),kr[0]=Qe,kr[1]=gt,kr[2]=bt,kr[3]=lr,u?se.enable(3089):se.disable(3089),We.scissor_enable=u,Ct=We.profile,Ct&&(ur=performance.now(),r.count++),se.useProgram(f.program),Rr=De.angle_instanced_arrays,Be.setVAO(null),Br=h.location,Vr=ge[Br],Vr.buffer||se.enableVertexAttribArray(Br),(Vr.type!==5126||Vr.size!==2||Vr.buffer!==c||Vr.normalized!==!1||Vr.offset!==16||Vr.stride!==24)&&(se.bindBuffer(34962,c.buffer),se.vertexAttribPointer(Br,2,5126,!1,24,16),Vr.type=5126,Vr.size=2,Vr.buffer=c,Vr.normalized=!1,Vr.offset=16,Vr.stride=24),Vr.divisor!==0&&(Rr.vertexAttribDivisorANGLE(Br,0),Vr.divisor=0),gi=d.call(this,pe,dr,0),wr.offset=gi,ui=!1,ei=1,Gi=0,un=0,Tt=0,wi=0,kn=null,ii=0,Pr=!1,Wi=5126,na=0,yn=0,$n=0,Pe(wr)?(ui=!0,kn=at.createStream(34962,wr),Wi=kn.dtype):(kn=at.getBuffer(wr),kn?Wi=kn.dtype:"constant"in wr?(ei=2,typeof wr.constant=="number"?(Gi=wr.constant,un=Tt=wi=0):(Gi=wr.constant.length>0?wr.constant[0]:0,un=wr.constant.length>1?wr.constant[1]:0,Tt=wr.constant.length>2?wr.constant[2]:0,wi=wr.constant.length>3?wr.constant[3]:0)):(Pe(wr.buffer)?kn=at.createStream(34962,wr.buffer):kn=at.getBuffer(wr.buffer),Wi="type"in wr?_i[wr.type]:kn.dtype,Pr=!!wr.normalized,ii=wr.size|0,na=wr.offset|0,yn=wr.stride|0,$n=wr.divisor|0)),$i=p.location,en=ge[$i],ei===1?(en.buffer||se.enableVertexAttribArray($i),_r=ii||4,(en.type!==Wi||en.size!==_r||en.buffer!==kn||en.normalized!==Pr||en.offset!==na||en.stride!==yn)&&(se.bindBuffer(34962,kn.buffer),se.vertexAttribPointer($i,_r,Wi,Pr,yn,na),en.type=Wi,en.size=_r,en.buffer=kn,en.normalized=Pr,en.offset=na,en.stride=yn),en.divisor!==$n&&(Rr.vertexAttribDivisorANGLE($i,$n),en.divisor=$n)):(en.buffer&&(se.disableVertexAttribArray($i),en.buffer=null),(en.x!==Gi||en.y!==un||en.z!==Tt||en.w!==wi)&&(se.vertexAttrib4f($i,Gi,un,Tt,wi),en.x=Gi,en.y=un,en.z=Tt,en.w=wi)),Zr=v.location,fi=ge[Zr],fi.buffer||se.enableVertexAttribArray(Zr),(fi.type!==5126||fi.size!==2||fi.buffer!==c||fi.normalized!==!1||fi.offset!==0||fi.stride!==24)&&(se.bindBuffer(34962,c.buffer),se.vertexAttribPointer(Zr,2,5126,!1,24,0),fi.type=5126,fi.size=2,fi.buffer=c,fi.normalized=!1,fi.offset=0,fi.stride=24),fi.divisor!==0&&(Rr.vertexAttribDivisorANGLE(Zr,0),fi.divisor=0),aa=y.call(this,pe,dr,0),Wt.offset=aa,ln=!1,ca=1,Kn=0,dn=0,Ta=0,rn=0,Ai=null,nn=0,Ti=!1,ea=5126,qn=0,pi=0,Fn=0,Pe(Wt)?(ln=!0,Ai=at.createStream(34962,Wt),ea=Ai.dtype):(Ai=at.getBuffer(Wt),Ai?ea=Ai.dtype:"constant"in Wt?(ca=2,typeof Wt.constant=="number"?(Kn=Wt.constant,dn=Ta=rn=0):(Kn=Wt.constant.length>0?Wt.constant[0]:0,dn=Wt.constant.length>1?Wt.constant[1]:0,Ta=Wt.constant.length>2?Wt.constant[2]:0,rn=Wt.constant.length>3?Wt.constant[3]:0)):(Pe(Wt.buffer)?Ai=at.createStream(34962,Wt.buffer):Ai=at.getBuffer(Wt.buffer),ea="type"in Wt?_i[Wt.type]:Ai.dtype,Ti=!!Wt.normalized,nn=Wt.size|0,qn=Wt.offset|0,pi=Wt.stride|0,Fn=Wt.divisor|0)),Pa=m.location,pr=ge[Pa],ca===1?(pr.buffer||se.enableVertexAttribArray(Pa),oi=nn||4,(pr.type!==ea||pr.size!==oi||pr.buffer!==Ai||pr.normalized!==Ti||pr.offset!==qn||pr.stride!==pi)&&(se.bindBuffer(34962,Ai.buffer),se.vertexAttribPointer(Pa,oi,ea,Ti,pi,qn),pr.type=ea,pr.size=oi,pr.buffer=Ai,pr.normalized=Ti,pr.offset=qn,pr.stride=pi),pr.divisor!==Fn&&(Rr.vertexAttribDivisorANGLE(Pa,Fn),pr.divisor=Fn)):(pr.buffer&&(se.disableVertexAttribArray(Pa),pr.buffer=null),(pr.x!==Kn||pr.y!==dn||pr.z!==Ta||pr.w!==rn)&&(se.vertexAttrib4f(Pa,Kn,dn,Ta,rn),pr.x=Kn,pr.y=dn,pr.z=Ta,pr.w=rn)),Ki=w.location,Ui=ge[Ki],Ui.buffer||se.enableVertexAttribArray(Ki),(Ui.type!==5126||Ui.size!==2||Ui.buffer!==c||Ui.normalized!==!1||Ui.offset!==8||Ui.stride!==24)&&(se.bindBuffer(34962,c.buffer),se.vertexAttribPointer(Ki,2,5126,!1,24,8),Ui.type=5126,Ui.size=2,Ui.buffer=c,Ui.normalized=!1,Ui.offset=8,Ui.stride=24),Ui.divisor!==0&&(Rr.vertexAttribDivisorANGLE(Ki,0),Ui.divisor=0),pa=_.call(this,pe,dr,0),Cr.offset=pa,Na=!1,on=1,wn=0,Ra=0,ti=0,Yn=0,Ja=null,ja=0,ka=!1,Ci=5126,vn=0,Va=0,Hi=0,Pe(Cr)?(Na=!0,Ja=at.createStream(34962,Cr),Ci=Ja.dtype):(Ja=at.getBuffer(Cr),Ja?Ci=Ja.dtype:"constant"in Cr?(on=2,typeof Cr.constant=="number"?(wn=Cr.constant,Ra=ti=Yn=0):(wn=Cr.constant.length>0?Cr.constant[0]:0,Ra=Cr.constant.length>1?Cr.constant[1]:0,ti=Cr.constant.length>2?Cr.constant[2]:0,Yn=Cr.constant.length>3?Cr.constant[3]:0)):(Pe(Cr.buffer)?Ja=at.createStream(34962,Cr.buffer):Ja=at.getBuffer(Cr.buffer),Ci="type"in Cr?_i[Cr.type]:Ja.dtype,ka=!!Cr.normalized,ja=Cr.size|0,vn=Cr.offset|0,Va=Cr.stride|0,Hi=Cr.divisor|0)),zr=b.location,ni=ge[zr],on===1?(ni.buffer||se.enableVertexAttribArray(zr),bn=ja||2,(ni.type!==Ci||ni.size!==bn||ni.buffer!==Ja||ni.normalized!==ka||ni.offset!==vn||ni.stride!==Va)&&(se.bindBuffer(34962,Ja.buffer),se.vertexAttribPointer(zr,bn,Ci,ka,Va,vn),ni.type=Ci,ni.size=bn,ni.buffer=Ja,ni.normalized=ka,ni.offset=vn,ni.stride=Va),ni.divisor!==Hi&&(Rr.vertexAttribDivisorANGLE(zr,Hi),ni.divisor=Hi)):(ni.buffer&&(se.disableVertexAttribArray(zr),ni.buffer=null),(ni.x!==wn||ni.y!==Ra||ni.z!==ti||ni.w!==Yn)&&(se.vertexAttrib4f(zr,wn,Ra,ti,Yn),ni.x=wn,ni.y=Ra,ni.z=ti,ni.w=Yn)),Bi=M.call(this,pe,dr,0),Ut.offset=Bi,vi=!1,mr=1,Mi=0,Cn=0,jr=0,Xn=0,an=null,ta=0,qi=!1,On=5126,Nn=0,ia=0,Qr=0,Pe(Ut)?(vi=!0,an=at.createStream(34962,Ut),On=an.dtype):(an=at.getBuffer(Ut),an?On=an.dtype:"constant"in Ut?(mr=2,typeof Ut.constant=="number"?(Mi=Ut.constant,Cn=jr=Xn=0):(Mi=Ut.constant.length>0?Ut.constant[0]:0,Cn=Ut.constant.length>1?Ut.constant[1]:0,jr=Ut.constant.length>2?Ut.constant[2]:0,Xn=Ut.constant.length>3?Ut.constant[3]:0)):(Pe(Ut.buffer)?an=at.createStream(34962,Ut.buffer):an=at.getBuffer(Ut.buffer),On="type"in Ut?_i[Ut.type]:an.dtype,qi=!!Ut.normalized,ta=Ut.size|0,Nn=Ut.offset|0,ia=Ut.stride|0,Qr=Ut.divisor|0)),Di=x.location,fn=ge[Di],mr===1?(fn.buffer||se.enableVertexAttribArray(Di),Dn=ta||2,(fn.type!==On||fn.size!==Dn||fn.buffer!==an||fn.normalized!==qi||fn.offset!==Nn||fn.stride!==ia)&&(se.bindBuffer(34962,an.buffer),se.vertexAttribPointer(Di,Dn,On,qi,ia,Nn),fn.type=On,fn.size=Dn,fn.buffer=an,fn.normalized=qi,fn.offset=Nn,fn.stride=ia),fn.divisor!==Qr&&(Rr.vertexAttribDivisorANGLE(Di,Qr),fn.divisor=Qr)):(fn.buffer&&(se.disableVertexAttribArray(Di),fn.buffer=null),(fn.x!==Mi||fn.y!==Cn||fn.z!==jr||fn.w!==Xn)&&(se.vertexAttrib4f(Di,Mi,Cn,jr,Xn),fn.x=Mi,fn.y=Cn,fn.z=jr,fn.w=Xn)),Vn=dr.capSize,se.uniform1f(T.location,Vn),mn=dr.lineWidth,se.uniform1f(A.location,mn),qr=dr.opacity,se.uniform1f(g.location,qr),Pi=dr.scale,Ua=Pi[0],yi=Pi[1],se.uniform2f(E.location,Ua,yi),Ma=dr.scaleFract,Ba=Ma[0],Bn=Ma[1],se.uniform2f(S.location,Ba,Bn),ji=dr.translate,gn=ji[0],jn=ji[1],se.uniform2f(C.location,gn,jn),Un=dr.translateFract,Ii=Un[0],gr=Un[1],se.uniform2f(k.location,Ii,gr),Ln=F.call(this,pe,dr,0),xn=Ln[0],da=Ln[1],Si=Ln[2],Kr=Ln[3],se.uniform4f(D.location,xn,da,Si,Kr),Gn=Ke.elements,Gn?se.bindBuffer(34963,Gn.buffer.buffer):Be.currentVAO&&(Gn=tt.getElements(Be.currentVAO.elements),Gn&&se.bindBuffer(34963,Gn.buffer.buffer)),to=Ke.offset,Jn=dr.count,Jn>0?Gn?Rr.drawElementsInstancedANGLE(4,36,Gn.type,to<<(Gn.type-5121>>1),Jn):Rr.drawArraysInstancedANGLE(4,to,36,Jn):Jn<0&&(Gn?se.drawElements(4,36,Gn.type,to<<(Gn.type-5121>>1)):se.drawArrays(4,to,36)),We.dirty=!0,Be.setVAO(null),pe.viewportWidth=Me,pe.viewportHeight=Xe,Ct&&(r.cpuTime+=performance.now()-ur),ui&&at.destroyStream(kn),ln&&at.destroyStream(Ai),Na&&at.destroyStream(Ja),vi&&at.destroyStream(an)},scope:function(dr,Hr,Er){var Fr,di,Li,nr,Kt,Me,Xe,$e,Qe,gt,bt,lr,Ct,ur,Rr,Br,Vr,gi,ui,ei,Gi,un,Tt,wi,kn,ii,Pr,Wi,na,yn,$n,$i,en,_r,Zr,fi,aa,ln,ca,Kn,dn,Ta,rn,Ai,nn,Ti,ea,qn,pi,Fn,Pa,pr,oi,Ki,Ui,pa,Na,on,wn,Ra,ti,Yn,Ja,ja,ka,Ci,vn,Va,Hi,zr,ni,bn,Bi,vi,mr,Mi,Cn,jr,Xn,an,ta,qi,On,Nn,ia,Qr,Di,fn,Dn,Vn,mn,qr,Pi,Ua,yi,Ma,Ba,Bn,ji,gn,jn,Un,Ii,gr,Ln,xn,da,Si,Kr,Gn,to,Jn,ro,mo,Oa,Ei,co,Pn,Fa,oa,Hn,va,ma,Sa,ki,Wr,An,Za,Ga,Ca,za,Wn,Zi,sa,So,ya,Qn,Tn,Da,zn,Ia,Yi,In,Oi,la,ga,go,eo,Eo,Mn,To,Ya,Co,Ri,qa,Zn,Ha,Wa,$a,Fe,Ve,lt,it,mt,Rt,qt,Nt,ar,Ir,$t,Bt,rr,Dr,Ur,ai,ci,li,mi,xi,Ni,ua,xa,ao,ho,Fo,ls,Io,Ps,xs,us,Vi,io,ko,oo,xo,bo,so,Yo,Uo;Fr=dr.viewport,di=Fr.x|0,Li=Fr.y|0,nr="width"in Fr?Fr.width|0:pe.framebufferWidth-di,Kt="height"in Fr?Fr.height|0:pe.framebufferHeight-Li,Me=pe.viewportWidth,pe.viewportWidth=nr,Xe=pe.viewportHeight,pe.viewportHeight=Kt,$e=fr[0],fr[0]=di,Qe=fr[1],fr[1]=Li,gt=fr[2],fr[2]=nr,bt=fr[3],fr[3]=Kt,lr=Se[0],Se[0]=P,Ct=Se[1],Se[1]=I,ur=Se[2],Se[2]=L,Rr=Se[3],Se[3]=z,Br=Re.blend_enable,Re.blend_enable=B,Vr=ot[0],ot[0]=O,gi=ot[1],ot[1]=W,ui=_t[0],_t[0]=X,ei=_t[1],_t[1]=Z,Gi=_t[2],_t[2]=H,un=_t[3],_t[3]=q,Tt=Re.depth_enable,Re.depth_enable=Q,wi=dr.viewport,kn=wi.x|0,ii=wi.y|0,Pr="width"in wi?wi.width|0:pe.framebufferWidth-kn,Wi="height"in wi?wi.height|0:pe.framebufferHeight-ii,na=xr[0],xr[0]=kn,yn=xr[1],xr[1]=ii,$n=xr[2],xr[2]=Pr,$i=xr[3],xr[3]=Wi,en=Re.scissor_enable,Re.scissor_enable=N,_r=We.profile,_r&&(Zr=performance.now(),r.count++),fi=Ke.count,Ke.count=U,aa=dr.count,ln=Ke.instances,Ke.instances=aa,ca=Ke.primitive,Ke.primitive=J,Kn=dr.range,dn=Ze[j],Ze[j]=Kn,Ta=dr.lineWidth,rn=Ze[$],Ze[$]=Ta,Ai=dr.capSize,nn=Ze[ie],Ze[ie]=Ai,Ti=dr.opacity,ea=Ze[re],Ze[re]=Ti,qn=dr.scale,pi=Ze[de],Ze[de]=qn,Fn=dr.translate,Pa=Ze[me],Ze[me]=Fn,pr=dr.scaleFract,oi=Ze[ze],Ze[ze]=pr,Ki=dr.translateFract,Ui=Ze[ke],Ze[ke]=Ki,pa=F.call(this,pe,dr,Er),Na=Ze[le],Ze[le]=pa,on=te.state,te.state=1,wn=te.x,te.x=0,Ra=te.y,te.y=0,ti=te.z,te.z=0,Yn=te.w,te.w=0,Ja=te.buffer,te.buffer=c,ja=te.size,te.size=0,ka=te.normalized,te.normalized=!1,Ci=te.type,te.type=5126,vn=te.offset,te.offset=0,Va=te.stride,te.stride=24,Hi=te.divisor,te.divisor=0,zr=Ee.state,Ee.state=1,ni=Ee.x,Ee.x=0,bn=Ee.y,Ee.y=0,Bi=Ee.z,Ee.z=0,vi=Ee.w,Ee.w=0,mr=Ee.buffer,Ee.buffer=c,Mi=Ee.size,Ee.size=0,Cn=Ee.normalized,Ee.normalized=!1,jr=Ee.type,Ee.type=5126,Xn=Ee.offset,Ee.offset=8,an=Ee.stride,Ee.stride=24,ta=Ee.divisor,Ee.divisor=0,qi=we.state,we.state=1,On=we.x,we.x=0,Nn=we.y,we.y=0,ia=we.z,we.z=0,Qr=we.w,we.w=0,Di=we.buffer,we.buffer=c,fn=we.size,we.size=0,Dn=we.normalized,we.normalized=!1,Vn=we.type,we.type=5126,mn=we.offset,we.offset=16,qr=we.stride,we.stride=24,Pi=we.divisor,we.divisor=0,Ua=d.call(this,pe,dr,Er),wr.offset=Ua,yi=!1,Ma=1,Ba=0,Bn=0,ji=0,gn=0,jn=null,Un=0,Ii=!1,gr=5126,Ln=0,xn=0,da=0,Pe(wr)?(yi=!0,jn=at.createStream(34962,wr),gr=jn.dtype):(jn=at.getBuffer(wr),jn?gr=jn.dtype:"constant"in wr?(Ma=2,typeof wr.constant=="number"?(Ba=wr.constant,Bn=ji=gn=0):(Ba=wr.constant.length>0?wr.constant[0]:0,Bn=wr.constant.length>1?wr.constant[1]:0,ji=wr.constant.length>2?wr.constant[2]:0,gn=wr.constant.length>3?wr.constant[3]:0)):(Pe(wr.buffer)?jn=at.createStream(34962,wr.buffer):jn=at.getBuffer(wr.buffer),gr="type"in wr?_i[wr.type]:jn.dtype,Ii=!!wr.normalized,Un=wr.size|0,Ln=wr.offset|0,xn=wr.stride|0,da=wr.divisor|0)),Si=oe.state,oe.state=Ma,Kr=oe.x,oe.x=Ba,Gn=oe.y,oe.y=Bn,to=oe.z,oe.z=ji,Jn=oe.w,oe.w=gn,ro=oe.buffer,oe.buffer=jn,mo=oe.size,oe.size=Un,Oa=oe.normalized,oe.normalized=Ii,Ei=oe.type,oe.type=gr,co=oe.offset,oe.offset=Ln,Pn=oe.stride,oe.stride=xn,Fa=oe.divisor,oe.divisor=da,oa=_.call(this,pe,dr,Er),Cr.offset=oa,Hn=!1,va=1,ma=0,Sa=0,ki=0,Wr=0,An=null,Za=0,Ga=!1,Ca=5126,za=0,Wn=0,Zi=0,Pe(Cr)?(Hn=!0,An=at.createStream(34962,Cr),Ca=An.dtype):(An=at.getBuffer(Cr),An?Ca=An.dtype:"constant"in Cr?(va=2,typeof Cr.constant=="number"?(ma=Cr.constant,Sa=ki=Wr=0):(ma=Cr.constant.length>0?Cr.constant[0]:0,Sa=Cr.constant.length>1?Cr.constant[1]:0,ki=Cr.constant.length>2?Cr.constant[2]:0,Wr=Cr.constant.length>3?Cr.constant[3]:0)):(Pe(Cr.buffer)?An=at.createStream(34962,Cr.buffer):An=at.getBuffer(Cr.buffer),Ca="type"in Cr?_i[Cr.type]:An.dtype,Ga=!!Cr.normalized,Za=Cr.size|0,za=Cr.offset|0,Wn=Cr.stride|0,Zi=Cr.divisor|0)),sa=Y.state,Y.state=va,So=Y.x,Y.x=ma,ya=Y.y,Y.y=Sa,Qn=Y.z,Y.z=ki,Tn=Y.w,Y.w=Wr,Da=Y.buffer,Y.buffer=An,zn=Y.size,Y.size=Za,Ia=Y.normalized,Y.normalized=Ga,Yi=Y.type,Y.type=Ca,In=Y.offset,Y.offset=za,Oi=Y.stride,Y.stride=Wn,la=Y.divisor,Y.divisor=Zi,ga=M.call(this,pe,dr,Er),Ut.offset=ga,go=!1,eo=1,Eo=0,Mn=0,To=0,Ya=0,Co=null,Ri=0,qa=!1,Zn=5126,Ha=0,Wa=0,$a=0,Pe(Ut)?(go=!0,Co=at.createStream(34962,Ut),Zn=Co.dtype):(Co=at.getBuffer(Ut),Co?Zn=Co.dtype:"constant"in Ut?(eo=2,typeof Ut.constant=="number"?(Eo=Ut.constant,Mn=To=Ya=0):(Eo=Ut.constant.length>0?Ut.constant[0]:0,Mn=Ut.constant.length>1?Ut.constant[1]:0,To=Ut.constant.length>2?Ut.constant[2]:0,Ya=Ut.constant.length>3?Ut.constant[3]:0)):(Pe(Ut.buffer)?Co=at.createStream(34962,Ut.buffer):Co=at.getBuffer(Ut.buffer),Zn="type"in Ut?_i[Ut.type]:Co.dtype,qa=!!Ut.normalized,Ri=Ut.size|0,Ha=Ut.offset|0,Wa=Ut.stride|0,$a=Ut.divisor|0)),Fe=ne.state,ne.state=eo,Ve=ne.x,ne.x=Eo,lt=ne.y,ne.y=Mn,it=ne.z,ne.z=To,mt=ne.w,ne.w=Ya,Rt=ne.buffer,ne.buffer=Co,qt=ne.size,ne.size=Ri,Nt=ne.normalized,ne.normalized=qa,ar=ne.type,ne.type=Zn,Ir=ne.offset,ne.offset=Ha,$t=ne.stride,ne.stride=Wa,Bt=ne.divisor,ne.divisor=$a,rr=y.call(this,pe,dr,Er),Wt.offset=rr,Dr=!1,Ur=1,ai=0,ci=0,li=0,mi=0,xi=null,Ni=0,ua=!1,xa=5126,ao=0,ho=0,Fo=0,Pe(Wt)?(Dr=!0,xi=at.createStream(34962,Wt),xa=xi.dtype):(xi=at.getBuffer(Wt),xi?xa=xi.dtype:"constant"in Wt?(Ur=2,typeof Wt.constant=="number"?(ai=Wt.constant,ci=li=mi=0):(ai=Wt.constant.length>0?Wt.constant[0]:0,ci=Wt.constant.length>1?Wt.constant[1]:0,li=Wt.constant.length>2?Wt.constant[2]:0,mi=Wt.constant.length>3?Wt.constant[3]:0)):(Pe(Wt.buffer)?xi=at.createStream(34962,Wt.buffer):xi=at.getBuffer(Wt.buffer),xa="type"in Wt?_i[Wt.type]:xi.dtype,ua=!!Wt.normalized,Ni=Wt.size|0,ao=Wt.offset|0,ho=Wt.stride|0,Fo=Wt.divisor|0)),ls=ye.state,ye.state=Ur,Io=ye.x,ye.x=ai,Ps=ye.y,ye.y=ci,xs=ye.z,ye.z=li,us=ye.w,ye.w=mi,Vi=ye.buffer,ye.buffer=xi,io=ye.size,ye.size=Ni,ko=ye.normalized,ye.normalized=ua,oo=ye.type,ye.type=xa,xo=ye.offset,ye.offset=ao,bo=ye.stride,ye.stride=ho,so=ye.divisor,ye.divisor=Fo,Yo=Ge.vert,Ge.vert=V,Uo=Ge.frag,Ge.frag=ue,We.dirty=!0,Hr(pe,dr,Er),pe.viewportWidth=Me,pe.viewportHeight=Xe,fr[0]=$e,fr[1]=Qe,fr[2]=gt,fr[3]=bt,Se[0]=lr,Se[1]=Ct,Se[2]=ur,Se[3]=Rr,Re.blend_enable=Br,ot[0]=Vr,ot[1]=gi,_t[0]=ui,_t[1]=ei,_t[2]=Gi,_t[3]=un,Re.depth_enable=Tt,xr[0]=na,xr[1]=yn,xr[2]=$n,xr[3]=$i,Re.scissor_enable=en,_r&&(r.cpuTime+=performance.now()-Zr),Ke.count=fi,Ke.instances=ln,Ke.primitive=ca,Ze[j]=dn,Ze[$]=rn,Ze[ie]=nn,Ze[re]=ea,Ze[de]=pi,Ze[me]=Pa,Ze[ze]=oi,Ze[ke]=Ui,Ze[le]=Na,te.state=on,te.x=wn,te.y=Ra,te.z=ti,te.w=Yn,te.buffer=Ja,te.size=ja,te.normalized=ka,te.type=Ci,te.offset=vn,te.stride=Va,te.divisor=Hi,Ee.state=zr,Ee.x=ni,Ee.y=bn,Ee.z=Bi,Ee.w=vi,Ee.buffer=mr,Ee.size=Mi,Ee.normalized=Cn,Ee.type=jr,Ee.offset=Xn,Ee.stride=an,Ee.divisor=ta,we.state=qi,we.x=On,we.y=Nn,we.z=ia,we.w=Qr,we.buffer=Di,we.size=fn,we.normalized=Dn,we.type=Vn,we.offset=mn,we.stride=qr,we.divisor=Pi,yi&&at.destroyStream(jn),oe.state=Si,oe.x=Kr,oe.y=Gn,oe.z=to,oe.w=Jn,oe.buffer=ro,oe.size=mo,oe.normalized=Oa,oe.type=Ei,oe.offset=co,oe.stride=Pn,oe.divisor=Fa,Hn&&at.destroyStream(An),Y.state=sa,Y.x=So,Y.y=ya,Y.z=Qn,Y.w=Tn,Y.buffer=Da,Y.size=zn,Y.normalized=Ia,Y.type=Yi,Y.offset=In,Y.stride=Oi,Y.divisor=la,go&&at.destroyStream(Co),ne.state=Fe,ne.x=Ve,ne.y=lt,ne.z=it,ne.w=mt,ne.buffer=Rt,ne.size=qt,ne.normalized=Nt,ne.type=ar,ne.offset=Ir,ne.stride=$t,ne.divisor=Bt,Dr&&at.destroyStream(xi),ye.state=ls,ye.x=Io,ye.y=Ps,ye.z=xs,ye.w=us,ye.buffer=Vi,ye.size=io,ye.normalized=ko,ye.type=oo,ye.offset=xo,ye.stride=bo,ye.divisor=so,Ge.vert=Yo,Ge.frag=Uo,We.dirty=!0},batch:function(dr,Hr){var Er,Fr,di,Li,nr,Kt,Me;if(Er=De.angle_instanced_arrays,Fr=Le.next,Fr!==Le.cur&&(Fr?se.bindFramebuffer(36160,Fr.framebuffer):se.bindFramebuffer(36160,null),Le.cur=Fr),We.dirty){var Xe,$e,Qe,gt,bt,lr,Ct,ur,Rr,Br,Vr,gi,ui,ei,Gi,un,Tt,wi,kn,ii,Pr,Wi,na,yn,$n,$i,en,_r,Zr,fi,aa,ln,ca;Xe=Re.dither,Xe!==We.dither&&(Xe?se.enable(3024):se.disable(3024),We.dither=Xe),$e=Re.depth_func,$e!==We.depth_func&&(se.depthFunc($e),We.depth_func=$e),Qe=Gt[0],gt=Gt[1],(Qe!==Dt[0]||gt!==Dt[1])&&(se.depthRange(Qe,gt),Dt[0]=Qe,Dt[1]=gt),bt=Re.depth_mask,bt!==We.depth_mask&&(se.depthMask(bt),We.depth_mask=bt),lr=yt[0],Ct=yt[1],ur=yt[2],Rr=yt[3],(lr!==Mt[0]||Ct!==Mt[1]||ur!==Mt[2]||Rr!==Mt[3])&&(se.colorMask(lr,Ct,ur,Rr),Mt[0]=lr,Mt[1]=Ct,Mt[2]=ur,Mt[3]=Rr),Br=Re.cull_enable,Br!==We.cull_enable&&(Br?se.enable(2884):se.disable(2884),We.cull_enable=Br),Vr=Re.cull_face,Vr!==We.cull_face&&(se.cullFace(Vr),We.cull_face=Vr),gi=Re.frontFace,gi!==We.frontFace&&(se.frontFace(gi),We.frontFace=gi),ui=Re.lineWidth,ui!==We.lineWidth&&(se.lineWidth(ui),We.lineWidth=ui),ei=Re.polygonOffset_enable,ei!==We.polygonOffset_enable&&(ei?se.enable(32823):se.disable(32823),We.polygonOffset_enable=ei),Gi=tr[0],un=tr[1],(Gi!==Ye[0]||un!==Ye[1])&&(se.polygonOffset(Gi,un),Ye[0]=Gi,Ye[1]=un),Tt=Re.sample_alpha,Tt!==We.sample_alpha&&(Tt?se.enable(32926):se.disable(32926),We.sample_alpha=Tt),wi=Re.sample_enable,wi!==We.sample_enable&&(wi?se.enable(32928):se.disable(32928),We.sample_enable=wi),kn=nt[0],ii=nt[1],(kn!==st[0]||ii!==st[1])&&(se.sampleCoverage(kn,ii),st[0]=kn,st[1]=ii),Pr=Re.stencil_enable,Pr!==We.stencil_enable&&(Pr?se.enable(2960):se.disable(2960),We.stencil_enable=Pr),Wi=Re.stencil_mask,Wi!==We.stencil_mask&&(se.stencilMask(Wi),We.stencil_mask=Wi),na=dt[0],yn=dt[1],$n=dt[2],(na!==rt[0]||yn!==rt[1]||$n!==rt[2])&&(se.stencilFunc(na,yn,$n),rt[0]=na,rt[1]=yn,rt[2]=$n),$i=ft[0],en=ft[1],_r=ft[2],Zr=ft[3],($i!==Ft[0]||en!==Ft[1]||_r!==Ft[2]||Zr!==Ft[3])&&(se.stencilOpSeparate($i,en,_r,Zr),Ft[0]=$i,Ft[1]=en,Ft[2]=_r,Ft[3]=Zr),fi=Et[0],aa=Et[1],ln=Et[2],ca=Et[3],(fi!==er[0]||aa!==er[1]||ln!==er[2]||ca!==er[3])&&(se.stencilOpSeparate(fi,aa,ln,ca),er[0]=fi,er[1]=aa,er[2]=ln,er[3]=ca)}se.blendColor(0,0,0,0),Ie[0]=0,Ie[1]=0,Ie[2]=0,Ie[3]=0,_e?se.enable(3042):se.disable(3042),We.blend_enable=_e,se.blendEquationSeparate(32774,32774),ut[0]=32774,ut[1]=32774,se.blendFuncSeparate(770,771,773,1),At[0]=770,At[1]=771,At[2]=773,At[3]=1,xe?se.enable(2929):se.disable(2929),We.depth_enable=xe,Ae?se.enable(3089):se.disable(3089),We.scissor_enable=Ae,di=We.profile,di&&(Li=performance.now(),r.count+=Hr),se.useProgram(f.program),nr=De.angle_instanced_arrays;var Kn,dn,Ta,rn,Ai,nn,Ti,ea;for(Be.setVAO(null),Kn=h.location,dn=ge[Kn],dn.buffer||se.enableVertexAttribArray(Kn),(dn.type!==5126||dn.size!==2||dn.buffer!==c||dn.normalized!==!1||dn.offset!==16||dn.stride!==24)&&(se.bindBuffer(34962,c.buffer),se.vertexAttribPointer(Kn,2,5126,!1,24,16),dn.type=5126,dn.size=2,dn.buffer=c,dn.normalized=!1,dn.offset=16,dn.stride=24),dn.divisor!==0&&(nr.vertexAttribDivisorANGLE(Kn,0),dn.divisor=0),Ta=v.location,rn=ge[Ta],rn.buffer||se.enableVertexAttribArray(Ta),(rn.type!==5126||rn.size!==2||rn.buffer!==c||rn.normalized!==!1||rn.offset!==0||rn.stride!==24)&&(se.bindBuffer(34962,c.buffer),se.vertexAttribPointer(Ta,2,5126,!1,24,0),rn.type=5126,rn.size=2,rn.buffer=c,rn.normalized=!1,rn.offset=0,rn.stride=24),rn.divisor!==0&&(nr.vertexAttribDivisorANGLE(Ta,0),rn.divisor=0),Ai=w.location,nn=ge[Ai],nn.buffer||se.enableVertexAttribArray(Ai),(nn.type!==5126||nn.size!==2||nn.buffer!==c||nn.normalized!==!1||nn.offset!==8||nn.stride!==24)&&(se.bindBuffer(34962,c.buffer),se.vertexAttribPointer(Ai,2,5126,!1,24,8),nn.type=5126,nn.size=2,nn.buffer=c,nn.normalized=!1,nn.offset=8,nn.stride=24),nn.divisor!==0&&(nr.vertexAttribDivisorANGLE(Ai,0),nn.divisor=0),Ti=Ke.elements,Ti?se.bindBuffer(34963,Ti.buffer.buffer):Be.currentVAO&&(Ti=tt.getElements(Be.currentVAO.elements),Ti&&se.bindBuffer(34963,Ti.buffer.buffer)),ea=Ke.offset,Kt=0;Kt0?wr.constant[0]:0,ja=wr.constant.length>1?wr.constant[1]:0,ka=wr.constant.length>2?wr.constant[2]:0,Ci=wr.constant.length>3?wr.constant[3]:0)):(Pe(wr.buffer)?vn=at.createStream(34962,wr.buffer):vn=at.getBuffer(wr.buffer),zr="type"in wr?_i[wr.type]:vn.dtype,Hi=!!wr.normalized,Va=wr.size|0,ni=wr.offset|0,bn=wr.stride|0,Bi=wr.divisor|0)),vi=p.location,mr=ge[vi],Yn===1?(mr.buffer||se.enableVertexAttribArray(vi),Mi=Va||4,(mr.type!==zr||mr.size!==Mi||mr.buffer!==vn||mr.normalized!==Hi||mr.offset!==ni||mr.stride!==bn)&&(se.bindBuffer(34962,vn.buffer),se.vertexAttribPointer(vi,Mi,zr,Hi,bn,ni),mr.type=zr,mr.size=Mi,mr.buffer=vn,mr.normalized=Hi,mr.offset=ni,mr.stride=bn),mr.divisor!==Bi&&(nr.vertexAttribDivisorANGLE(vi,Bi),mr.divisor=Bi)):(mr.buffer&&(se.disableVertexAttribArray(vi),mr.buffer=null),(mr.x!==Ja||mr.y!==ja||mr.z!==ka||mr.w!==Ci)&&(se.vertexAttrib4f(vi,Ja,ja,ka,Ci),mr.x=Ja,mr.y=ja,mr.z=ka,mr.w=Ci)),Cn=y.call(this,pe,Me,Kt),Wt.offset=Cn,jr=!1,Xn=1,an=0,ta=0,qi=0,On=0,Nn=null,ia=0,Qr=!1,Di=5126,fn=0,Dn=0,Vn=0,Pe(Wt)?(jr=!0,Nn=at.createStream(34962,Wt),Di=Nn.dtype):(Nn=at.getBuffer(Wt),Nn?Di=Nn.dtype:"constant"in Wt?(Xn=2,typeof Wt.constant=="number"?(an=Wt.constant,ta=qi=On=0):(an=Wt.constant.length>0?Wt.constant[0]:0,ta=Wt.constant.length>1?Wt.constant[1]:0,qi=Wt.constant.length>2?Wt.constant[2]:0,On=Wt.constant.length>3?Wt.constant[3]:0)):(Pe(Wt.buffer)?Nn=at.createStream(34962,Wt.buffer):Nn=at.getBuffer(Wt.buffer),Di="type"in Wt?_i[Wt.type]:Nn.dtype,Qr=!!Wt.normalized,ia=Wt.size|0,fn=Wt.offset|0,Dn=Wt.stride|0,Vn=Wt.divisor|0)),mn=m.location,qr=ge[mn],Xn===1?(qr.buffer||se.enableVertexAttribArray(mn),Pi=ia||4,(qr.type!==Di||qr.size!==Pi||qr.buffer!==Nn||qr.normalized!==Qr||qr.offset!==fn||qr.stride!==Dn)&&(se.bindBuffer(34962,Nn.buffer),se.vertexAttribPointer(mn,Pi,Di,Qr,Dn,fn),qr.type=Di,qr.size=Pi,qr.buffer=Nn,qr.normalized=Qr,qr.offset=fn,qr.stride=Dn),qr.divisor!==Vn&&(nr.vertexAttribDivisorANGLE(mn,Vn),qr.divisor=Vn)):(qr.buffer&&(se.disableVertexAttribArray(mn),qr.buffer=null),(qr.x!==an||qr.y!==ta||qr.z!==qi||qr.w!==On)&&(se.vertexAttrib4f(mn,an,ta,qi,On),qr.x=an,qr.y=ta,qr.z=qi,qr.w=On)),Ua=_.call(this,pe,Me,Kt),Cr.offset=Ua,yi=!1,Ma=1,Ba=0,Bn=0,ji=0,gn=0,jn=null,Un=0,Ii=!1,gr=5126,Ln=0,xn=0,da=0,Pe(Cr)?(yi=!0,jn=at.createStream(34962,Cr),gr=jn.dtype):(jn=at.getBuffer(Cr),jn?gr=jn.dtype:"constant"in Cr?(Ma=2,typeof Cr.constant=="number"?(Ba=Cr.constant,Bn=ji=gn=0):(Ba=Cr.constant.length>0?Cr.constant[0]:0,Bn=Cr.constant.length>1?Cr.constant[1]:0,ji=Cr.constant.length>2?Cr.constant[2]:0,gn=Cr.constant.length>3?Cr.constant[3]:0)):(Pe(Cr.buffer)?jn=at.createStream(34962,Cr.buffer):jn=at.getBuffer(Cr.buffer),gr="type"in Cr?_i[Cr.type]:jn.dtype,Ii=!!Cr.normalized,Un=Cr.size|0,Ln=Cr.offset|0,xn=Cr.stride|0,da=Cr.divisor|0)),Si=b.location,Kr=ge[Si],Ma===1?(Kr.buffer||se.enableVertexAttribArray(Si),Gn=Un||2,(Kr.type!==gr||Kr.size!==Gn||Kr.buffer!==jn||Kr.normalized!==Ii||Kr.offset!==Ln||Kr.stride!==xn)&&(se.bindBuffer(34962,jn.buffer),se.vertexAttribPointer(Si,Gn,gr,Ii,xn,Ln),Kr.type=gr,Kr.size=Gn,Kr.buffer=jn,Kr.normalized=Ii,Kr.offset=Ln,Kr.stride=xn),Kr.divisor!==da&&(nr.vertexAttribDivisorANGLE(Si,da),Kr.divisor=da)):(Kr.buffer&&(se.disableVertexAttribArray(Si),Kr.buffer=null),(Kr.x!==Ba||Kr.y!==Bn||Kr.z!==ji||Kr.w!==gn)&&(se.vertexAttrib4f(Si,Ba,Bn,ji,gn),Kr.x=Ba,Kr.y=Bn,Kr.z=ji,Kr.w=gn)),to=M.call(this,pe,Me,Kt),Ut.offset=to,Jn=!1,ro=1,mo=0,Oa=0,Ei=0,co=0,Pn=null,Fa=0,oa=!1,Hn=5126,va=0,ma=0,Sa=0,Pe(Ut)?(Jn=!0,Pn=at.createStream(34962,Ut),Hn=Pn.dtype):(Pn=at.getBuffer(Ut),Pn?Hn=Pn.dtype:"constant"in Ut?(ro=2,typeof Ut.constant=="number"?(mo=Ut.constant,Oa=Ei=co=0):(mo=Ut.constant.length>0?Ut.constant[0]:0,Oa=Ut.constant.length>1?Ut.constant[1]:0,Ei=Ut.constant.length>2?Ut.constant[2]:0,co=Ut.constant.length>3?Ut.constant[3]:0)):(Pe(Ut.buffer)?Pn=at.createStream(34962,Ut.buffer):Pn=at.getBuffer(Ut.buffer),Hn="type"in Ut?_i[Ut.type]:Pn.dtype,oa=!!Ut.normalized,Fa=Ut.size|0,va=Ut.offset|0,ma=Ut.stride|0,Sa=Ut.divisor|0)),ki=x.location,Wr=ge[ki],ro===1?(Wr.buffer||se.enableVertexAttribArray(ki),An=Fa||2,(Wr.type!==Hn||Wr.size!==An||Wr.buffer!==Pn||Wr.normalized!==oa||Wr.offset!==va||Wr.stride!==ma)&&(se.bindBuffer(34962,Pn.buffer),se.vertexAttribPointer(ki,An,Hn,oa,ma,va),Wr.type=Hn,Wr.size=An,Wr.buffer=Pn,Wr.normalized=oa,Wr.offset=va,Wr.stride=ma),Wr.divisor!==Sa&&(nr.vertexAttribDivisorANGLE(ki,Sa),Wr.divisor=Sa)):(Wr.buffer&&(se.disableVertexAttribArray(ki),Wr.buffer=null),(Wr.x!==mo||Wr.y!==Oa||Wr.z!==Ei||Wr.w!==co)&&(se.vertexAttrib4f(ki,mo,Oa,Ei,co),Wr.x=mo,Wr.y=Oa,Wr.z=Ei,Wr.w=co)),Za=Me.capSize,(!Kt||Ga!==Za)&&(Ga=Za,se.uniform1f(T.location,Za)),Ca=Me.lineWidth,(!Kt||za!==Ca)&&(za=Ca,se.uniform1f(A.location,Ca)),Wn=Me.opacity,(!Kt||Zi!==Wn)&&(Zi=Wn,se.uniform1f(g.location,Wn)),sa=Me.scale,So=sa[0],Qn=sa[1],(!Kt||ya!==So||Tn!==Qn)&&(ya=So,Tn=Qn,se.uniform2f(E.location,So,Qn)),Da=Me.scaleFract,zn=Da[0],Yi=Da[1],(!Kt||Ia!==zn||In!==Yi)&&(Ia=zn,In=Yi,se.uniform2f(S.location,zn,Yi)),Oi=Me.translate,la=Oi[0],go=Oi[1],(!Kt||ga!==la||eo!==go)&&(ga=la,eo=go,se.uniform2f(C.location,la,go)),Eo=Me.translateFract,Mn=Eo[0],Ya=Eo[1],(!Kt||To!==Mn||Co!==Ya)&&(To=Mn,Co=Ya,se.uniform2f(k.location,Mn,Ya)),Ri=F.call(this,pe,Me,Kt),qa=Ri[0],Ha=Ri[1],$a=Ri[2],Ve=Ri[3],(!Kt||Zn!==qa||Wa!==Ha||Fe!==$a||lt!==Ve)&&(Zn=qa,Wa=Ha,Fe=$a,lt=Ve,se.uniform4f(D.location,qa,Ha,$a,Ve)),it=Me.count,it>0?Ti?nr.drawElementsInstancedANGLE(4,36,Ti.type,ea<<(Ti.type-5121>>1),it):nr.drawArraysInstancedANGLE(4,ea,36,it):it<0&&(Ti?se.drawElements(4,36,Ti.type,ea<<(Ti.type-5121>>1)):se.drawArrays(4,ea,36)),pe.viewportWidth=oi,pe.viewportHeight=Ki,ti&&at.destroyStream(vn),jr&&at.destroyStream(Nn),yi&&at.destroyStream(jn),Jn&&at.destroyStream(Pn)}We.dirty=!0,Be.setVAO(null),di&&(r.cpuTime+=performance.now()-Li)}}}});var FB=K((Xri,FZe)=>{"use strict";FZe.exports=function(t,r,i,n,a,o,s,l,u,f,c,h,d,p,v,y,m,w,_,b,M,x,T,A,g,E,S,C,k,D,F,P,I,L,z,B,O,W,X,Z,H,q,Q,N,U,J,j,$,ie,re,de,me,ze,ke,le,te,Ee,we,oe,Y,ne,ye){"use strict";var V,ue,_e,xe,Ae,se,pe,fe,Re,We,Ke,tt,at,Ge,ge,Be,Ze,Le,De,Ue,Pe,Se,Ie,ot,ut,_t,At,Gt,Dt,yt,Mt,tr,Ye,nt,st,dt,rt,ft,Ft,Et,er,xr,kr,fr,Yr,Or,ri,Tr,Mr;return V=t.gl,ue=t.context,_e=t.strings,xe=t.next,Ae=t.current,se=t.draw,pe=t.elements,fe=t.buffer,Re=t.shader,We=t.attributes,Ke=t.vao,tt=t.uniforms,at=t.framebuffer,Ge=t.extensions,ge=t.timer,Be=t.isBufferArgs,Ze=xe.blend_color,Le=Ae.blend_color,De=xe.blend_equation,Ue=Ae.blend_equation,Pe=xe.blend_func,Se=Ae.blend_func,Ie=xe.depth_range,ot=Ae.depth_range,ut=xe.colorMask,_t=Ae.colorMask,At=xe.polygonOffset_offset,Gt=Ae.polygonOffset_offset,Dt=xe.sample_coverage,yt=Ae.sample_coverage,Mt=xe.stencil_func,tr=Ae.stencil_func,Ye=xe.stencil_opFront,nt=Ae.stencil_opFront,st=xe.stencil_opBack,dt=Ae.stencil_opBack,rt=xe.scissor_box,ft=Ae.scissor_box,Ft=xe.viewport,Et=Ae.viewport,er={points:0,point:0,lines:1,line:1,triangles:4,triangle:4,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},xr={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},kr={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},fr={add:32774,subtract:32778,"reverse subtract":32779},Yr={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},Or={int8:5120,int16:5122,int32:5124,uint8:5121,uint16:5123,uint32:5125,float:5126,float32:5126},ri={cw:2304,ccw:2305},Tr={},Tr.offset=4,Tr.stride=8,Mr={},Mr.offset=0,Mr.stride=8,{draw:function(Gr){var _i,Fi,wr,Cr,Ut,Wt,dr,Hr,Er,Fr,di,Li,nr,Kt,Me,Xe,$e,Qe,gt,bt,lr,Ct,ur,Rr,Br,Vr,gi,ui,ei,Gi,un,Tt,wi,kn,ii,Pr,Wi,na,yn,$n,$i,en,_r,Zr,fi,aa,ln,ca,Kn,dn,Ta,rn,Ai,nn,Ti,ea,qn,pi,Fn,Pa,pr,oi,Ki,Ui,pa,Na,on,wn,Ra,ti,Yn,Ja,ja,ka,Ci,vn,Va,Hi,zr,ni,bn,Bi,vi,mr,Mi,Cn,jr,Xn,an,ta,qi,On,Nn,ia,Qr,Di,fn,Dn,Vn,mn,qr,Pi,Ua,yi,Ma,Ba,Bn,ji,gn,jn,Un,Ii,gr,Ln,xn,da;if(_i=Ge.angle_instanced_arrays,Fi=at.next,Fi!==at.cur&&(Fi?V.bindFramebuffer(36160,Fi.framebuffer):V.bindFramebuffer(36160,null),at.cur=Fi),Ae.dirty){var Si,Kr,Gn,to,Jn,ro,mo,Oa,Ei,co,Pn,Fa,oa,Hn,va,ma,Sa,ki,Wr,An,Za,Ga,Ca,za,Wn,Zi,sa,So,ya,Qn,Tn,Da,zn,Ia,Yi,In,Oi,la,ga;Si=xe.dither,Si!==Ae.dither&&(Si?V.enable(3024):V.disable(3024),Ae.dither=Si),Kr=De[0],Gn=De[1],(Kr!==Ue[0]||Gn!==Ue[1])&&(V.blendEquationSeparate(Kr,Gn),Ue[0]=Kr,Ue[1]=Gn),to=xe.depth_func,to!==Ae.depth_func&&(V.depthFunc(to),Ae.depth_func=to),Jn=Ie[0],ro=Ie[1],(Jn!==ot[0]||ro!==ot[1])&&(V.depthRange(Jn,ro),ot[0]=Jn,ot[1]=ro),mo=xe.depth_mask,mo!==Ae.depth_mask&&(V.depthMask(mo),Ae.depth_mask=mo),Oa=ut[0],Ei=ut[1],co=ut[2],Pn=ut[3],(Oa!==_t[0]||Ei!==_t[1]||co!==_t[2]||Pn!==_t[3])&&(V.colorMask(Oa,Ei,co,Pn),_t[0]=Oa,_t[1]=Ei,_t[2]=co,_t[3]=Pn),Fa=xe.cull_enable,Fa!==Ae.cull_enable&&(Fa?V.enable(2884):V.disable(2884),Ae.cull_enable=Fa),oa=xe.cull_face,oa!==Ae.cull_face&&(V.cullFace(oa),Ae.cull_face=oa),Hn=xe.frontFace,Hn!==Ae.frontFace&&(V.frontFace(Hn),Ae.frontFace=Hn),va=xe.lineWidth,va!==Ae.lineWidth&&(V.lineWidth(va),Ae.lineWidth=va),ma=xe.polygonOffset_enable,ma!==Ae.polygonOffset_enable&&(ma?V.enable(32823):V.disable(32823),Ae.polygonOffset_enable=ma),Sa=At[0],ki=At[1],(Sa!==Gt[0]||ki!==Gt[1])&&(V.polygonOffset(Sa,ki),Gt[0]=Sa,Gt[1]=ki),Wr=xe.sample_alpha,Wr!==Ae.sample_alpha&&(Wr?V.enable(32926):V.disable(32926),Ae.sample_alpha=Wr),An=xe.sample_enable,An!==Ae.sample_enable&&(An?V.enable(32928):V.disable(32928),Ae.sample_enable=An),Za=Dt[0],Ga=Dt[1],(Za!==yt[0]||Ga!==yt[1])&&(V.sampleCoverage(Za,Ga),yt[0]=Za,yt[1]=Ga),Ca=xe.stencil_mask,Ca!==Ae.stencil_mask&&(V.stencilMask(Ca),Ae.stencil_mask=Ca),za=Mt[0],Wn=Mt[1],Zi=Mt[2],(za!==tr[0]||Wn!==tr[1]||Zi!==tr[2])&&(V.stencilFunc(za,Wn,Zi),tr[0]=za,tr[1]=Wn,tr[2]=Zi),sa=Ye[0],So=Ye[1],ya=Ye[2],Qn=Ye[3],(sa!==nt[0]||So!==nt[1]||ya!==nt[2]||Qn!==nt[3])&&(V.stencilOpSeparate(sa,So,ya,Qn),nt[0]=sa,nt[1]=So,nt[2]=ya,nt[3]=Qn),Tn=st[0],Da=st[1],zn=st[2],Ia=st[3],(Tn!==dt[0]||Da!==dt[1]||zn!==dt[2]||Ia!==dt[3])&&(V.stencilOpSeparate(Tn,Da,zn,Ia),dt[0]=Tn,dt[1]=Da,dt[2]=zn,dt[3]=Ia),Yi=xe.scissor_enable,Yi!==Ae.scissor_enable&&(Yi?V.enable(3089):V.disable(3089),Ae.scissor_enable=Yi),In=rt[0],Oi=rt[1],la=rt[2],ga=rt[3],(In!==ft[0]||Oi!==ft[1]||la!==ft[2]||ga!==ft[3])&&(V.scissor(In,Oi,la,ga),ft[0]=In,ft[1]=Oi,ft[2]=la,ft[3]=ga)}wr=this.viewport,Cr=wr.x|0,Ut=wr.y|0,Wt="width"in wr?wr.width|0:ue.framebufferWidth-Cr,dr="height"in wr?wr.height|0:ue.framebufferHeight-Ut,Hr=ue.viewportWidth,ue.viewportWidth=Wt,Er=ue.viewportHeight,ue.viewportHeight=dr,V.viewport(Cr,Ut,Wt,dr),Et[0]=Cr,Et[1]=Ut,Et[2]=Wt,Et[3]=dr,V.blendColor(0,0,0,1),Le[0]=0,Le[1]=0,Le[2]=0,Le[3]=1,i?V.enable(3042):V.disable(3042),Ae.blend_enable=i,V.blendFuncSeparate(770,771,773,1),Se[0]=770,Se[1]=771,Se[2]=773,Se[3]=1,n?V.enable(2929):V.disable(2929),Ae.depth_enable=n,a?V.enable(2960):V.disable(2960),Ae.stencil_enable=a,Fr=Ae.profile,Fr&&(di=performance.now(),r.count++),V.useProgram(o.program),Li=Ge.angle_instanced_arrays,Ke.setVAO(null),nr=this.charBuffer,Kt=!1,Me=1,Xe=0,$e=0,Qe=0,gt=0,bt=null,lr=0,Ct=!1,ur=5126,Rr=0,Br=0,Vr=0,Be(nr)?(Kt=!0,bt=fe.createStream(34962,nr),ur=bt.dtype):(bt=fe.getBuffer(nr),bt?ur=bt.dtype:"constant"in nr?(Me=2,typeof nr.constant=="number"?(Xe=nr.constant,$e=Qe=gt=0):(Xe=nr.constant.length>0?nr.constant[0]:0,$e=nr.constant.length>1?nr.constant[1]:0,Qe=nr.constant.length>2?nr.constant[2]:0,gt=nr.constant.length>3?nr.constant[3]:0)):(Be(nr.buffer)?bt=fe.createStream(34962,nr.buffer):bt=fe.getBuffer(nr.buffer),ur="type"in nr?Or[nr.type]:bt.dtype,Ct=!!nr.normalized,lr=nr.size|0,Rr=nr.offset|0,Br=nr.stride|0,Vr=nr.divisor|0)),gi=s.location,ui=We[gi],Me===1?(ui.buffer||V.enableVertexAttribArray(gi),ei=lr||1,(ui.type!==ur||ui.size!==ei||ui.buffer!==bt||ui.normalized!==Ct||ui.offset!==Rr||ui.stride!==Br)&&(V.bindBuffer(34962,bt.buffer),V.vertexAttribPointer(gi,ei,ur,Ct,Br,Rr),ui.type=ur,ui.size=ei,ui.buffer=bt,ui.normalized=Ct,ui.offset=Rr,ui.stride=Br),ui.divisor!==Vr&&(Li.vertexAttribDivisorANGLE(gi,Vr),ui.divisor=Vr)):(ui.buffer&&(V.disableVertexAttribArray(gi),ui.buffer=null),(ui.x!==Xe||ui.y!==$e||ui.z!==Qe||ui.w!==gt)&&(V.vertexAttrib4f(gi,Xe,$e,Qe,gt),ui.x=Xe,ui.y=$e,ui.z=Qe,ui.w=gt)),Gi=this.sizeBuffer,Tr.buffer=Gi,un=!1,Tt=1,wi=0,kn=0,ii=0,Pr=0,Wi=null,na=0,yn=!1,$n=5126,$i=0,en=0,_r=0,Be(Tr)?(un=!0,Wi=fe.createStream(34962,Tr),$n=Wi.dtype):(Wi=fe.getBuffer(Tr),Wi?$n=Wi.dtype:"constant"in Tr?(Tt=2,typeof Tr.constant=="number"?(wi=Tr.constant,kn=ii=Pr=0):(wi=Tr.constant.length>0?Tr.constant[0]:0,kn=Tr.constant.length>1?Tr.constant[1]:0,ii=Tr.constant.length>2?Tr.constant[2]:0,Pr=Tr.constant.length>3?Tr.constant[3]:0)):(Be(Tr.buffer)?Wi=fe.createStream(34962,Tr.buffer):Wi=fe.getBuffer(Tr.buffer),$n="type"in Tr?Or[Tr.type]:Wi.dtype,yn=!!Tr.normalized,na=Tr.size|0,$i=Tr.offset|0,en=Tr.stride|0,_r=Tr.divisor|0)),Zr=l.location,fi=We[Zr],Tt===1?(fi.buffer||V.enableVertexAttribArray(Zr),aa=na||1,(fi.type!==$n||fi.size!==aa||fi.buffer!==Wi||fi.normalized!==yn||fi.offset!==$i||fi.stride!==en)&&(V.bindBuffer(34962,Wi.buffer),V.vertexAttribPointer(Zr,aa,$n,yn,en,$i),fi.type=$n,fi.size=aa,fi.buffer=Wi,fi.normalized=yn,fi.offset=$i,fi.stride=en),fi.divisor!==_r&&(Li.vertexAttribDivisorANGLE(Zr,_r),fi.divisor=_r)):(fi.buffer&&(V.disableVertexAttribArray(Zr),fi.buffer=null),(fi.x!==wi||fi.y!==kn||fi.z!==ii||fi.w!==Pr)&&(V.vertexAttrib4f(Zr,wi,kn,ii,Pr),fi.x=wi,fi.y=kn,fi.z=ii,fi.w=Pr)),ln=this.position,ca=!1,Kn=1,dn=0,Ta=0,rn=0,Ai=0,nn=null,Ti=0,ea=!1,qn=5126,pi=0,Fn=0,Pa=0,Be(ln)?(ca=!0,nn=fe.createStream(34962,ln),qn=nn.dtype):(nn=fe.getBuffer(ln),nn?qn=nn.dtype:"constant"in ln?(Kn=2,typeof ln.constant=="number"?(dn=ln.constant,Ta=rn=Ai=0):(dn=ln.constant.length>0?ln.constant[0]:0,Ta=ln.constant.length>1?ln.constant[1]:0,rn=ln.constant.length>2?ln.constant[2]:0,Ai=ln.constant.length>3?ln.constant[3]:0)):(Be(ln.buffer)?nn=fe.createStream(34962,ln.buffer):nn=fe.getBuffer(ln.buffer),qn="type"in ln?Or[ln.type]:nn.dtype,ea=!!ln.normalized,Ti=ln.size|0,pi=ln.offset|0,Fn=ln.stride|0,Pa=ln.divisor|0)),pr=u.location,oi=We[pr],Kn===1?(oi.buffer||V.enableVertexAttribArray(pr),Ki=Ti||2,(oi.type!==qn||oi.size!==Ki||oi.buffer!==nn||oi.normalized!==ea||oi.offset!==pi||oi.stride!==Fn)&&(V.bindBuffer(34962,nn.buffer),V.vertexAttribPointer(pr,Ki,qn,ea,Fn,pi),oi.type=qn,oi.size=Ki,oi.buffer=nn,oi.normalized=ea,oi.offset=pi,oi.stride=Fn),oi.divisor!==Pa&&(Li.vertexAttribDivisorANGLE(pr,Pa),oi.divisor=Pa)):(oi.buffer&&(V.disableVertexAttribArray(pr),oi.buffer=null),(oi.x!==dn||oi.y!==Ta||oi.z!==rn||oi.w!==Ai)&&(V.vertexAttrib4f(pr,dn,Ta,rn,Ai),oi.x=dn,oi.y=Ta,oi.z=rn,oi.w=Ai)),Ui=this.sizeBuffer,Mr.buffer=Ui,pa=!1,Na=1,on=0,wn=0,Ra=0,ti=0,Yn=null,Ja=0,ja=!1,ka=5126,Ci=0,vn=0,Va=0,Be(Mr)?(pa=!0,Yn=fe.createStream(34962,Mr),ka=Yn.dtype):(Yn=fe.getBuffer(Mr),Yn?ka=Yn.dtype:"constant"in Mr?(Na=2,typeof Mr.constant=="number"?(on=Mr.constant,wn=Ra=ti=0):(on=Mr.constant.length>0?Mr.constant[0]:0,wn=Mr.constant.length>1?Mr.constant[1]:0,Ra=Mr.constant.length>2?Mr.constant[2]:0,ti=Mr.constant.length>3?Mr.constant[3]:0)):(Be(Mr.buffer)?Yn=fe.createStream(34962,Mr.buffer):Yn=fe.getBuffer(Mr.buffer),ka="type"in Mr?Or[Mr.type]:Yn.dtype,ja=!!Mr.normalized,Ja=Mr.size|0,Ci=Mr.offset|0,vn=Mr.stride|0,Va=Mr.divisor|0)),Hi=f.location,zr=We[Hi],Na===1?(zr.buffer||V.enableVertexAttribArray(Hi),ni=Ja||1,(zr.type!==ka||zr.size!==ni||zr.buffer!==Yn||zr.normalized!==ja||zr.offset!==Ci||zr.stride!==vn)&&(V.bindBuffer(34962,Yn.buffer),V.vertexAttribPointer(Hi,ni,ka,ja,vn,Ci),zr.type=ka,zr.size=ni,zr.buffer=Yn,zr.normalized=ja,zr.offset=Ci,zr.stride=vn),zr.divisor!==Va&&(Li.vertexAttribDivisorANGLE(Hi,Va),zr.divisor=Va)):(zr.buffer&&(V.disableVertexAttribArray(Hi),zr.buffer=null),(zr.x!==on||zr.y!==wn||zr.z!==Ra||zr.w!==ti)&&(V.vertexAttrib4f(Hi,on,wn,Ra,ti),zr.x=on,zr.y=wn,zr.z=Ra,zr.w=ti)),bn=Gr.align,V.uniform1f(c.location,bn),Bi=d.call(this,ue,Gr,0),Bi&&Bi._reglType==="framebuffer"&&(Bi=Bi.color[0]),vi=Bi._texture,V.uniform1i(h.location,vi.bind()),mr=v.call(this,ue,Gr,0),Mi=mr[0],Cn=mr[1],V.uniform2f(p.location,Mi,Cn),jr=m.call(this,ue,Gr,0),Xn=jr[0],an=jr[1],V.uniform2f(y.location,Xn,an),ta=Gr.baseline,V.uniform1f(w.location,ta),qi=b.call(this,ue,Gr,0),V.uniform1f(_.location,qi),On=Gr.color,Nn=On[0],ia=On[1],Qr=On[2],Di=On[3],V.uniform4f(M.location,Nn,ia,Qr,Di),fn=T.call(this,ue,Gr,0),V.uniform1f(x.location,fn),Dn=Gr.opacity,V.uniform1f(A.location,Dn),Vn=Gr.positionOffset,mn=Vn[0],qr=Vn[1],V.uniform2f(g.location,mn,qr),Pi=this.scale,Ua=Pi[0],yi=Pi[1],V.uniform2f(E.location,Ua,yi),Ma=this.translate,Ba=Ma[0],Bn=Ma[1],V.uniform2f(S.location,Ba,Bn),ji=this.viewportArray,gn=ji[0],jn=ji[1],Un=ji[2],Ii=ji[3],V.uniform4f(C.location,gn,jn,Un,Ii),gr=se.elements,gr?V.bindBuffer(34963,gr.buffer.buffer):Ke.currentVAO&&(gr=pe.getElements(Ke.currentVAO.elements),gr&&V.bindBuffer(34963,gr.buffer.buffer)),Ln=Gr.offset,xn=Gr.count,xn&&(da=se.instances,da>0?gr?Li.drawElementsInstancedANGLE(0,xn,gr.type,Ln<<(gr.type-5121>>1),da):Li.drawArraysInstancedANGLE(0,Ln,xn,da):da<0&&(gr?V.drawElements(0,xn,gr.type,Ln<<(gr.type-5121>>1)):V.drawArrays(0,Ln,xn)),Ae.dirty=!0,Ke.setVAO(null),ue.viewportWidth=Hr,ue.viewportHeight=Er,Fr&&(r.cpuTime+=performance.now()-di),Kt&&fe.destroyStream(bt),un&&fe.destroyStream(Wi),ca&&fe.destroyStream(nn),pa&&fe.destroyStream(Yn),vi.unbind())},scope:function(Gr,_i,Fi){var wr,Cr,Ut,Wt,dr,Hr,Er,Fr,di,Li,nr,Kt,Me,Xe,$e,Qe,gt,bt,lr,Ct,ur,Rr,Br,Vr,gi,ui,ei,Gi,un,Tt,wi,kn,ii,Pr,Wi,na,yn,$n,$i,en,_r,Zr,fi,aa,ln,ca,Kn,dn,Ta,rn,Ai,nn,Ti,ea,qn,pi,Fn,Pa,pr,oi,Ki,Ui,pa,Na,on,wn,Ra,ti,Yn,Ja,ja,ka,Ci,vn,Va,Hi,zr,ni,bn,Bi,vi,mr,Mi,Cn,jr,Xn,an,ta,qi,On,Nn,ia,Qr,Di,fn,Dn,Vn,mn,qr,Pi,Ua,yi,Ma,Ba,Bn,ji,gn,jn,Un,Ii,gr,Ln,xn,da,Si,Kr,Gn,to,Jn,ro,mo,Oa,Ei,co,Pn,Fa,oa,Hn,va,ma,Sa,ki,Wr,An,Za,Ga,Ca,za,Wn,Zi,sa,So,ya,Qn,Tn,Da,zn,Ia,Yi,In,Oi,la,ga,go,eo,Eo,Mn,To,Ya,Co,Ri;wr=this.viewport,Cr=wr.x|0,Ut=wr.y|0,Wt="width"in wr?wr.width|0:ue.framebufferWidth-Cr,dr="height"in wr?wr.height|0:ue.framebufferHeight-Ut,Hr=ue.viewportWidth,ue.viewportWidth=Wt,Er=ue.viewportHeight,ue.viewportHeight=dr,Fr=Ft[0],Ft[0]=Cr,di=Ft[1],Ft[1]=Ut,Li=Ft[2],Ft[2]=Wt,nr=Ft[3],Ft[3]=dr,Kt=Ze[0],Ze[0]=k,Me=Ze[1],Ze[1]=D,Xe=Ze[2],Ze[2]=F,$e=Ze[3],Ze[3]=P,Qe=xe.blend_enable,xe.blend_enable=I,gt=Pe[0],Pe[0]=L,bt=Pe[1],Pe[1]=z,lr=Pe[2],Pe[2]=B,Ct=Pe[3],Pe[3]=O,ur=xe.depth_enable,xe.depth_enable=W,Rr=xe.stencil_enable,xe.stencil_enable=X,Br=Ae.profile,Br&&(Vr=performance.now(),r.count++),gi=Gr.offset,ui=se.offset,se.offset=gi,ei=Gr.count,Gi=se.count,se.count=ei,un=se.primitive,se.primitive=Z,Tt=m.call(this,ue,Gr,Fi),wi=tt[H],tt[H]=Tt,kn=v.call(this,ue,Gr,Fi),ii=tt[q],tt[q]=kn,Pr=d.call(this,ue,Gr,Fi),Wi=tt[Q],tt[Q]=Pr,na=b.call(this,ue,Gr,Fi),yn=tt[N],tt[N]=na,$n=T.call(this,ue,Gr,Fi),$i=tt[U],tt[U]=$n,en=Gr.color,_r=tt[J],tt[J]=en,Zr=Gr.opacity,fi=tt[j],tt[j]=Zr,aa=this.viewportArray,ln=tt[$],tt[$]=aa,ca=this.scale,Kn=tt[ie],tt[ie]=ca,dn=Gr.align,Ta=tt[re],tt[re]=dn,rn=Gr.baseline,Ai=tt[de],tt[de]=rn,nn=this.translate,Ti=tt[me],tt[me]=nn,ea=Gr.positionOffset,qn=tt[ze],tt[ze]=ea,pi=this.charBuffer,Fn=!1,Pa=1,pr=0,oi=0,Ki=0,Ui=0,pa=null,Na=0,on=!1,wn=5126,Ra=0,ti=0,Yn=0,Be(pi)?(Fn=!0,pa=fe.createStream(34962,pi),wn=pa.dtype):(pa=fe.getBuffer(pi),pa?wn=pa.dtype:"constant"in pi?(Pa=2,typeof pi.constant=="number"?(pr=pi.constant,oi=Ki=Ui=0):(pr=pi.constant.length>0?pi.constant[0]:0,oi=pi.constant.length>1?pi.constant[1]:0,Ki=pi.constant.length>2?pi.constant[2]:0,Ui=pi.constant.length>3?pi.constant[3]:0)):(Be(pi.buffer)?pa=fe.createStream(34962,pi.buffer):pa=fe.getBuffer(pi.buffer),wn="type"in pi?Or[pi.type]:pa.dtype,on=!!pi.normalized,Na=pi.size|0,Ra=pi.offset|0,ti=pi.stride|0,Yn=pi.divisor|0)),Ja=ke.state,ke.state=Pa,ja=ke.x,ke.x=pr,ka=ke.y,ke.y=oi,Ci=ke.z,ke.z=Ki,vn=ke.w,ke.w=Ui,Va=ke.buffer,ke.buffer=pa,Hi=ke.size,ke.size=Na,zr=ke.normalized,ke.normalized=on,ni=ke.type,ke.type=wn,bn=ke.offset,ke.offset=Ra,Bi=ke.stride,ke.stride=ti,vi=ke.divisor,ke.divisor=Yn,mr=this.position,Mi=!1,Cn=1,jr=0,Xn=0,an=0,ta=0,qi=null,On=0,Nn=!1,ia=5126,Qr=0,Di=0,fn=0,Be(mr)?(Mi=!0,qi=fe.createStream(34962,mr),ia=qi.dtype):(qi=fe.getBuffer(mr),qi?ia=qi.dtype:"constant"in mr?(Cn=2,typeof mr.constant=="number"?(jr=mr.constant,Xn=an=ta=0):(jr=mr.constant.length>0?mr.constant[0]:0,Xn=mr.constant.length>1?mr.constant[1]:0,an=mr.constant.length>2?mr.constant[2]:0,ta=mr.constant.length>3?mr.constant[3]:0)):(Be(mr.buffer)?qi=fe.createStream(34962,mr.buffer):qi=fe.getBuffer(mr.buffer),ia="type"in mr?Or[mr.type]:qi.dtype,Nn=!!mr.normalized,On=mr.size|0,Qr=mr.offset|0,Di=mr.stride|0,fn=mr.divisor|0)),Dn=le.state,le.state=Cn,Vn=le.x,le.x=jr,mn=le.y,le.y=Xn,qr=le.z,le.z=an,Pi=le.w,le.w=ta,Ua=le.buffer,le.buffer=qi,yi=le.size,le.size=On,Ma=le.normalized,le.normalized=Nn,Ba=le.type,le.type=ia,Bn=le.offset,le.offset=Qr,ji=le.stride,le.stride=Di,gn=le.divisor,le.divisor=fn,jn=this.sizeBuffer,Tr.buffer=jn,Un=!1,Ii=1,gr=0,Ln=0,xn=0,da=0,Si=null,Kr=0,Gn=!1,to=5126,Jn=0,ro=0,mo=0,Be(Tr)?(Un=!0,Si=fe.createStream(34962,Tr),to=Si.dtype):(Si=fe.getBuffer(Tr),Si?to=Si.dtype:"constant"in Tr?(Ii=2,typeof Tr.constant=="number"?(gr=Tr.constant,Ln=xn=da=0):(gr=Tr.constant.length>0?Tr.constant[0]:0,Ln=Tr.constant.length>1?Tr.constant[1]:0,xn=Tr.constant.length>2?Tr.constant[2]:0,da=Tr.constant.length>3?Tr.constant[3]:0)):(Be(Tr.buffer)?Si=fe.createStream(34962,Tr.buffer):Si=fe.getBuffer(Tr.buffer),to="type"in Tr?Or[Tr.type]:Si.dtype,Gn=!!Tr.normalized,Kr=Tr.size|0,Jn=Tr.offset|0,ro=Tr.stride|0,mo=Tr.divisor|0)),Oa=te.state,te.state=Ii,Ei=te.x,te.x=gr,co=te.y,te.y=Ln,Pn=te.z,te.z=xn,Fa=te.w,te.w=da,oa=te.buffer,te.buffer=Si,Hn=te.size,te.size=Kr,va=te.normalized,te.normalized=Gn,ma=te.type,te.type=to,Sa=te.offset,te.offset=Jn,ki=te.stride,te.stride=ro,Wr=te.divisor,te.divisor=mo,An=this.sizeBuffer,Mr.buffer=An,Za=!1,Ga=1,Ca=0,za=0,Wn=0,Zi=0,sa=null,So=0,ya=!1,Qn=5126,Tn=0,Da=0,zn=0,Be(Mr)?(Za=!0,sa=fe.createStream(34962,Mr),Qn=sa.dtype):(sa=fe.getBuffer(Mr),sa?Qn=sa.dtype:"constant"in Mr?(Ga=2,typeof Mr.constant=="number"?(Ca=Mr.constant,za=Wn=Zi=0):(Ca=Mr.constant.length>0?Mr.constant[0]:0,za=Mr.constant.length>1?Mr.constant[1]:0,Wn=Mr.constant.length>2?Mr.constant[2]:0,Zi=Mr.constant.length>3?Mr.constant[3]:0)):(Be(Mr.buffer)?sa=fe.createStream(34962,Mr.buffer):sa=fe.getBuffer(Mr.buffer),Qn="type"in Mr?Or[Mr.type]:sa.dtype,ya=!!Mr.normalized,So=Mr.size|0,Tn=Mr.offset|0,Da=Mr.stride|0,zn=Mr.divisor|0)),Ia=Ee.state,Ee.state=Ga,Yi=Ee.x,Ee.x=Ca,In=Ee.y,Ee.y=za,Oi=Ee.z,Ee.z=Wn,la=Ee.w,Ee.w=Zi,ga=Ee.buffer,Ee.buffer=sa,go=Ee.size,Ee.size=So,eo=Ee.normalized,Ee.normalized=ya,Eo=Ee.type,Ee.type=Qn,Mn=Ee.offset,Ee.offset=Tn,To=Ee.stride,Ee.stride=Da,Ya=Ee.divisor,Ee.divisor=zn,Co=Re.vert,Re.vert=we,Ri=Re.frag,Re.frag=oe,Ae.dirty=!0,_i(ue,Gr,Fi),ue.viewportWidth=Hr,ue.viewportHeight=Er,Ft[0]=Fr,Ft[1]=di,Ft[2]=Li,Ft[3]=nr,Ze[0]=Kt,Ze[1]=Me,Ze[2]=Xe,Ze[3]=$e,xe.blend_enable=Qe,Pe[0]=gt,Pe[1]=bt,Pe[2]=lr,Pe[3]=Ct,xe.depth_enable=ur,xe.stencil_enable=Rr,Br&&(r.cpuTime+=performance.now()-Vr),se.offset=ui,se.count=Gi,se.primitive=un,tt[H]=wi,tt[q]=ii,tt[Q]=Wi,tt[N]=yn,tt[U]=$i,tt[J]=_r,tt[j]=fi,tt[$]=ln,tt[ie]=Kn,tt[re]=Ta,tt[de]=Ai,tt[me]=Ti,tt[ze]=qn,Fn&&fe.destroyStream(pa),ke.state=Ja,ke.x=ja,ke.y=ka,ke.z=Ci,ke.w=vn,ke.buffer=Va,ke.size=Hi,ke.normalized=zr,ke.type=ni,ke.offset=bn,ke.stride=Bi,ke.divisor=vi,Mi&&fe.destroyStream(qi),le.state=Dn,le.x=Vn,le.y=mn,le.z=qr,le.w=Pi,le.buffer=Ua,le.size=yi,le.normalized=Ma,le.type=Ba,le.offset=Bn,le.stride=ji,le.divisor=gn,Un&&fe.destroyStream(Si),te.state=Oa,te.x=Ei,te.y=co,te.z=Pn,te.w=Fa,te.buffer=oa,te.size=Hn,te.normalized=va,te.type=ma,te.offset=Sa,te.stride=ki,te.divisor=Wr,Za&&fe.destroyStream(sa),Ee.state=Ia,Ee.x=Yi,Ee.y=In,Ee.z=Oi,Ee.w=la,Ee.buffer=ga,Ee.size=go,Ee.normalized=eo,Ee.type=Eo,Ee.offset=Mn,Ee.stride=To,Ee.divisor=Ya,Re.vert=Co,Re.frag=Ri,Ae.dirty=!0},batch:function(Gr,_i){var Fi,wr,Cr,Ut,Wt,dr,Hr,Er,Fr,di,Li,nr,Kt,Me;if(Fi=Ge.angle_instanced_arrays,wr=at.next,wr!==at.cur&&(wr?V.bindFramebuffer(36160,wr.framebuffer):V.bindFramebuffer(36160,null),at.cur=wr),Ae.dirty){var Xe,$e,Qe,gt,bt,lr,Ct,ur,Rr,Br,Vr,gi,ui,ei,Gi,un,Tt,wi,kn,ii,Pr,Wi,na,yn,$n,$i,en,_r,Zr,fi,aa,ln,ca,Kn,dn,Ta,rn,Ai,nn;Xe=xe.dither,Xe!==Ae.dither&&(Xe?V.enable(3024):V.disable(3024),Ae.dither=Xe),$e=De[0],Qe=De[1],($e!==Ue[0]||Qe!==Ue[1])&&(V.blendEquationSeparate($e,Qe),Ue[0]=$e,Ue[1]=Qe),gt=xe.depth_func,gt!==Ae.depth_func&&(V.depthFunc(gt),Ae.depth_func=gt),bt=Ie[0],lr=Ie[1],(bt!==ot[0]||lr!==ot[1])&&(V.depthRange(bt,lr),ot[0]=bt,ot[1]=lr),Ct=xe.depth_mask,Ct!==Ae.depth_mask&&(V.depthMask(Ct),Ae.depth_mask=Ct),ur=ut[0],Rr=ut[1],Br=ut[2],Vr=ut[3],(ur!==_t[0]||Rr!==_t[1]||Br!==_t[2]||Vr!==_t[3])&&(V.colorMask(ur,Rr,Br,Vr),_t[0]=ur,_t[1]=Rr,_t[2]=Br,_t[3]=Vr),gi=xe.cull_enable,gi!==Ae.cull_enable&&(gi?V.enable(2884):V.disable(2884),Ae.cull_enable=gi),ui=xe.cull_face,ui!==Ae.cull_face&&(V.cullFace(ui),Ae.cull_face=ui),ei=xe.frontFace,ei!==Ae.frontFace&&(V.frontFace(ei),Ae.frontFace=ei),Gi=xe.lineWidth,Gi!==Ae.lineWidth&&(V.lineWidth(Gi),Ae.lineWidth=Gi),un=xe.polygonOffset_enable,un!==Ae.polygonOffset_enable&&(un?V.enable(32823):V.disable(32823),Ae.polygonOffset_enable=un),Tt=At[0],wi=At[1],(Tt!==Gt[0]||wi!==Gt[1])&&(V.polygonOffset(Tt,wi),Gt[0]=Tt,Gt[1]=wi),kn=xe.sample_alpha,kn!==Ae.sample_alpha&&(kn?V.enable(32926):V.disable(32926),Ae.sample_alpha=kn),ii=xe.sample_enable,ii!==Ae.sample_enable&&(ii?V.enable(32928):V.disable(32928),Ae.sample_enable=ii),Pr=Dt[0],Wi=Dt[1],(Pr!==yt[0]||Wi!==yt[1])&&(V.sampleCoverage(Pr,Wi),yt[0]=Pr,yt[1]=Wi),na=xe.stencil_mask,na!==Ae.stencil_mask&&(V.stencilMask(na),Ae.stencil_mask=na),yn=Mt[0],$n=Mt[1],$i=Mt[2],(yn!==tr[0]||$n!==tr[1]||$i!==tr[2])&&(V.stencilFunc(yn,$n,$i),tr[0]=yn,tr[1]=$n,tr[2]=$i),en=Ye[0],_r=Ye[1],Zr=Ye[2],fi=Ye[3],(en!==nt[0]||_r!==nt[1]||Zr!==nt[2]||fi!==nt[3])&&(V.stencilOpSeparate(en,_r,Zr,fi),nt[0]=en,nt[1]=_r,nt[2]=Zr,nt[3]=fi),aa=st[0],ln=st[1],ca=st[2],Kn=st[3],(aa!==dt[0]||ln!==dt[1]||ca!==dt[2]||Kn!==dt[3])&&(V.stencilOpSeparate(aa,ln,ca,Kn),dt[0]=aa,dt[1]=ln,dt[2]=ca,dt[3]=Kn),dn=xe.scissor_enable,dn!==Ae.scissor_enable&&(dn?V.enable(3089):V.disable(3089),Ae.scissor_enable=dn),Ta=rt[0],rn=rt[1],Ai=rt[2],nn=rt[3],(Ta!==ft[0]||rn!==ft[1]||Ai!==ft[2]||nn!==ft[3])&&(V.scissor(Ta,rn,Ai,nn),ft[0]=Ta,ft[1]=rn,ft[2]=Ai,ft[3]=nn)}Cr=this.viewport,Ut=Cr.x|0,Wt=Cr.y|0,dr="width"in Cr?Cr.width|0:ue.framebufferWidth-Ut,Hr="height"in Cr?Cr.height|0:ue.framebufferHeight-Wt,Er=ue.viewportWidth,ue.viewportWidth=dr,Fr=ue.viewportHeight,ue.viewportHeight=Hr,V.viewport(Ut,Wt,dr,Hr),Et[0]=Ut,Et[1]=Wt,Et[2]=dr,Et[3]=Hr,V.blendColor(0,0,0,1),Le[0]=0,Le[1]=0,Le[2]=0,Le[3]=1,Y?V.enable(3042):V.disable(3042),Ae.blend_enable=Y,V.blendFuncSeparate(770,771,773,1),Se[0]=770,Se[1]=771,Se[2]=773,Se[3]=1,ne?V.enable(2929):V.disable(2929),Ae.depth_enable=ne,ye?V.enable(2960):V.disable(2960),Ae.stencil_enable=ye,di=Ae.profile,di&&(Li=performance.now(),r.count+=_i),V.useProgram(o.program),nr=Ge.angle_instanced_arrays;var Ti,ea,qn,pi,Fn,Pa,pr,oi,Ki,Ui,pa,Na,on,wn,Ra,ti,Yn,Ja,ja,ka,Ci,vn,Va,Hi,zr,ni,bn,Bi,vi,mr,Mi,Cn,jr,Xn,an,ta,qi,On,Nn,ia,Qr,Di,fn,Dn,Vn,mn,qr,Pi,Ua,yi,Ma,Ba,Bn,ji,gn,jn,Un,Ii,gr,Ln,xn,da,Si,Kr,Gn,to,Jn,ro,mo,Oa,Ei,co,Pn,Fa,oa,Hn,va,ma,Sa,ki,Wr;for(Ke.setVAO(null),Ti=this.charBuffer,ea=!1,qn=1,pi=0,Fn=0,Pa=0,pr=0,oi=null,Ki=0,Ui=!1,pa=5126,Na=0,on=0,wn=0,Be(Ti)?(ea=!0,oi=fe.createStream(34962,Ti),pa=oi.dtype):(oi=fe.getBuffer(Ti),oi?pa=oi.dtype:"constant"in Ti?(qn=2,typeof Ti.constant=="number"?(pi=Ti.constant,Fn=Pa=pr=0):(pi=Ti.constant.length>0?Ti.constant[0]:0,Fn=Ti.constant.length>1?Ti.constant[1]:0,Pa=Ti.constant.length>2?Ti.constant[2]:0,pr=Ti.constant.length>3?Ti.constant[3]:0)):(Be(Ti.buffer)?oi=fe.createStream(34962,Ti.buffer):oi=fe.getBuffer(Ti.buffer),pa="type"in Ti?Or[Ti.type]:oi.dtype,Ui=!!Ti.normalized,Ki=Ti.size|0,Na=Ti.offset|0,on=Ti.stride|0,wn=Ti.divisor|0)),Ra=s.location,ti=We[Ra],qn===1?(ti.buffer||V.enableVertexAttribArray(Ra),Yn=Ki||1,(ti.type!==pa||ti.size!==Yn||ti.buffer!==oi||ti.normalized!==Ui||ti.offset!==Na||ti.stride!==on)&&(V.bindBuffer(34962,oi.buffer),V.vertexAttribPointer(Ra,Yn,pa,Ui,on,Na),ti.type=pa,ti.size=Yn,ti.buffer=oi,ti.normalized=Ui,ti.offset=Na,ti.stride=on),ti.divisor!==wn&&(nr.vertexAttribDivisorANGLE(Ra,wn),ti.divisor=wn)):(ti.buffer&&(V.disableVertexAttribArray(Ra),ti.buffer=null),(ti.x!==pi||ti.y!==Fn||ti.z!==Pa||ti.w!==pr)&&(V.vertexAttrib4f(Ra,pi,Fn,Pa,pr),ti.x=pi,ti.y=Fn,ti.z=Pa,ti.w=pr)),Ja=this.sizeBuffer,Tr.buffer=Ja,ja=!1,ka=1,Ci=0,vn=0,Va=0,Hi=0,zr=null,ni=0,bn=!1,Bi=5126,vi=0,mr=0,Mi=0,Be(Tr)?(ja=!0,zr=fe.createStream(34962,Tr),Bi=zr.dtype):(zr=fe.getBuffer(Tr),zr?Bi=zr.dtype:"constant"in Tr?(ka=2,typeof Tr.constant=="number"?(Ci=Tr.constant,vn=Va=Hi=0):(Ci=Tr.constant.length>0?Tr.constant[0]:0,vn=Tr.constant.length>1?Tr.constant[1]:0,Va=Tr.constant.length>2?Tr.constant[2]:0,Hi=Tr.constant.length>3?Tr.constant[3]:0)):(Be(Tr.buffer)?zr=fe.createStream(34962,Tr.buffer):zr=fe.getBuffer(Tr.buffer),Bi="type"in Tr?Or[Tr.type]:zr.dtype,bn=!!Tr.normalized,ni=Tr.size|0,vi=Tr.offset|0,mr=Tr.stride|0,Mi=Tr.divisor|0)),Cn=l.location,jr=We[Cn],ka===1?(jr.buffer||V.enableVertexAttribArray(Cn),Xn=ni||1,(jr.type!==Bi||jr.size!==Xn||jr.buffer!==zr||jr.normalized!==bn||jr.offset!==vi||jr.stride!==mr)&&(V.bindBuffer(34962,zr.buffer),V.vertexAttribPointer(Cn,Xn,Bi,bn,mr,vi),jr.type=Bi,jr.size=Xn,jr.buffer=zr,jr.normalized=bn,jr.offset=vi,jr.stride=mr),jr.divisor!==Mi&&(nr.vertexAttribDivisorANGLE(Cn,Mi),jr.divisor=Mi)):(jr.buffer&&(V.disableVertexAttribArray(Cn),jr.buffer=null),(jr.x!==Ci||jr.y!==vn||jr.z!==Va||jr.w!==Hi)&&(V.vertexAttrib4f(Cn,Ci,vn,Va,Hi),jr.x=Ci,jr.y=vn,jr.z=Va,jr.w=Hi)),an=this.position,ta=!1,qi=1,On=0,Nn=0,ia=0,Qr=0,Di=null,fn=0,Dn=!1,Vn=5126,mn=0,qr=0,Pi=0,Be(an)?(ta=!0,Di=fe.createStream(34962,an),Vn=Di.dtype):(Di=fe.getBuffer(an),Di?Vn=Di.dtype:"constant"in an?(qi=2,typeof an.constant=="number"?(On=an.constant,Nn=ia=Qr=0):(On=an.constant.length>0?an.constant[0]:0,Nn=an.constant.length>1?an.constant[1]:0,ia=an.constant.length>2?an.constant[2]:0,Qr=an.constant.length>3?an.constant[3]:0)):(Be(an.buffer)?Di=fe.createStream(34962,an.buffer):Di=fe.getBuffer(an.buffer),Vn="type"in an?Or[an.type]:Di.dtype,Dn=!!an.normalized,fn=an.size|0,mn=an.offset|0,qr=an.stride|0,Pi=an.divisor|0)),Ua=u.location,yi=We[Ua],qi===1?(yi.buffer||V.enableVertexAttribArray(Ua),Ma=fn||2,(yi.type!==Vn||yi.size!==Ma||yi.buffer!==Di||yi.normalized!==Dn||yi.offset!==mn||yi.stride!==qr)&&(V.bindBuffer(34962,Di.buffer),V.vertexAttribPointer(Ua,Ma,Vn,Dn,qr,mn),yi.type=Vn,yi.size=Ma,yi.buffer=Di,yi.normalized=Dn,yi.offset=mn,yi.stride=qr),yi.divisor!==Pi&&(nr.vertexAttribDivisorANGLE(Ua,Pi),yi.divisor=Pi)):(yi.buffer&&(V.disableVertexAttribArray(Ua),yi.buffer=null),(yi.x!==On||yi.y!==Nn||yi.z!==ia||yi.w!==Qr)&&(V.vertexAttrib4f(Ua,On,Nn,ia,Qr),yi.x=On,yi.y=Nn,yi.z=ia,yi.w=Qr)),Ba=this.sizeBuffer,Mr.buffer=Ba,Bn=!1,ji=1,gn=0,jn=0,Un=0,Ii=0,gr=null,Ln=0,xn=!1,da=5126,Si=0,Kr=0,Gn=0,Be(Mr)?(Bn=!0,gr=fe.createStream(34962,Mr),da=gr.dtype):(gr=fe.getBuffer(Mr),gr?da=gr.dtype:"constant"in Mr?(ji=2,typeof Mr.constant=="number"?(gn=Mr.constant,jn=Un=Ii=0):(gn=Mr.constant.length>0?Mr.constant[0]:0,jn=Mr.constant.length>1?Mr.constant[1]:0,Un=Mr.constant.length>2?Mr.constant[2]:0,Ii=Mr.constant.length>3?Mr.constant[3]:0)):(Be(Mr.buffer)?gr=fe.createStream(34962,Mr.buffer):gr=fe.getBuffer(Mr.buffer),da="type"in Mr?Or[Mr.type]:gr.dtype,xn=!!Mr.normalized,Ln=Mr.size|0,Si=Mr.offset|0,Kr=Mr.stride|0,Gn=Mr.divisor|0)),to=f.location,Jn=We[to],ji===1?(Jn.buffer||V.enableVertexAttribArray(to),ro=Ln||1,(Jn.type!==da||Jn.size!==ro||Jn.buffer!==gr||Jn.normalized!==xn||Jn.offset!==Si||Jn.stride!==Kr)&&(V.bindBuffer(34962,gr.buffer),V.vertexAttribPointer(to,ro,da,xn,Kr,Si),Jn.type=da,Jn.size=ro,Jn.buffer=gr,Jn.normalized=xn,Jn.offset=Si,Jn.stride=Kr),Jn.divisor!==Gn&&(nr.vertexAttribDivisorANGLE(to,Gn),Jn.divisor=Gn)):(Jn.buffer&&(V.disableVertexAttribArray(to),Jn.buffer=null),(Jn.x!==gn||Jn.y!==jn||Jn.z!==Un||Jn.w!==Ii)&&(V.vertexAttrib4f(to,gn,jn,Un,Ii),Jn.x=gn,Jn.y=jn,Jn.z=Un,Jn.w=Ii)),mo=this.scale,Oa=mo[0],Ei=mo[1],V.uniform2f(E.location,Oa,Ei),co=this.translate,Pn=co[0],Fa=co[1],V.uniform2f(S.location,Pn,Fa),oa=this.viewportArray,Hn=oa[0],va=oa[1],ma=oa[2],Sa=oa[3],V.uniform4f(C.location,Hn,va,ma,Sa),ki=se.elements,ki?V.bindBuffer(34963,ki.buffer.buffer):Ke.currentVAO&&(ki=pe.getElements(Ke.currentVAO.elements),ki&&V.bindBuffer(34963,ki.buffer.buffer)),Wr=se.instances,Kt=0;Kt<_i;++Kt){Me=Gr[Kt];var An,Za,Ga,Ca,za,Wn,Zi,sa,So,ya,Qn,Tn,Da,zn,Ia,Yi,In,Oi,la,ga,go,eo,Eo,Mn,To,Ya,Co,Ri,qa,Zn,Ha,Wa,$a,Fe,Ve,lt,it,mt;An=Me.align,(!Kt||Za!==An)&&(Za=An,V.uniform1f(c.location,An)),Ga=d.call(this,ue,Me,Kt),Ga&&Ga._reglType==="framebuffer"&&(Ga=Ga.color[0]),Ca=Ga._texture,V.uniform1i(h.location,Ca.bind()),za=v.call(this,ue,Me,Kt),Wn=za[0],sa=za[1],(!Kt||Zi!==Wn||So!==sa)&&(Zi=Wn,So=sa,V.uniform2f(p.location,Wn,sa)),ya=m.call(this,ue,Me,Kt),Qn=ya[0],Da=ya[1],(!Kt||Tn!==Qn||zn!==Da)&&(Tn=Qn,zn=Da,V.uniform2f(y.location,Qn,Da)),Ia=Me.baseline,(!Kt||Yi!==Ia)&&(Yi=Ia,V.uniform1f(w.location,Ia)),In=b.call(this,ue,Me,Kt),(!Kt||Oi!==In)&&(Oi=In,V.uniform1f(_.location,In)),la=Me.color,ga=la[0],eo=la[1],Mn=la[2],Ya=la[3],(!Kt||go!==ga||Eo!==eo||To!==Mn||Co!==Ya)&&(go=ga,Eo=eo,To=Mn,Co=Ya,V.uniform4f(M.location,ga,eo,Mn,Ya)),Ri=T.call(this,ue,Me,Kt),(!Kt||qa!==Ri)&&(qa=Ri,V.uniform1f(x.location,Ri)),Zn=Me.opacity,(!Kt||Ha!==Zn)&&(Ha=Zn,V.uniform1f(A.location,Zn)),Wa=Me.positionOffset,$a=Wa[0],Ve=Wa[1],(!Kt||Fe!==$a||lt!==Ve)&&(Fe=$a,lt=Ve,V.uniform2f(g.location,$a,Ve)),it=Me.offset,mt=Me.count,mt&&(Wr>0?ki?nr.drawElementsInstancedANGLE(0,mt,ki.type,it<<(ki.type-5121>>1),Wr):nr.drawArraysInstancedANGLE(0,it,mt,Wr):Wr<0&&(ki?V.drawElements(0,mt,ki.type,it<<(ki.type-5121>>1)):V.drawArrays(0,it,mt)),Ca.unbind())}ea&&fe.destroyStream(oi),ja&&fe.destroyStream(zr),ta&&fe.destroyStream(Di),Bn&&fe.destroyStream(gr),Ae.dirty=!0,Ke.setVAO(null),ue.viewportWidth=Er,ue.viewportHeight=Fr,di&&(r.cpuTime+=performance.now()-Li)}}}});var LB=K((Zri,LZe)=>{"use strict";LZe.exports=function(t,r,i,n){"use strict";var a,o,s,l,u,f,c,h,d,p,v,y,m,w,_,b,M,x,T,A,g,E,S,C,k,D,F,P,I,L,z,B,O,W,X,Z,H,q,Q,N,U,J,j,$,ie,re,de,me,ze;return a=t.gl,o=t.context,s=t.strings,l=t.next,u=t.current,f=t.draw,c=t.elements,h=t.buffer,d=t.shader,p=t.attributes,v=t.vao,y=t.uniforms,m=t.framebuffer,w=t.extensions,_=t.timer,b=t.isBufferArgs,M=l.blend_color,x=u.blend_color,T=l.blend_equation,A=u.blend_equation,g=l.blend_func,E=u.blend_func,S=l.depth_range,C=u.depth_range,k=l.colorMask,D=u.colorMask,F=l.polygonOffset_offset,P=u.polygonOffset_offset,I=l.sample_coverage,L=u.sample_coverage,z=l.stencil_func,B=u.stencil_func,O=l.stencil_opFront,W=u.stencil_opFront,X=l.stencil_opBack,Z=u.stencil_opBack,H=l.scissor_box,q=u.scissor_box,Q=l.viewport,N=u.viewport,U={points:0,point:0,lines:1,line:1,triangles:4,triangle:4,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},J={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},j={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},$={add:32774,subtract:32778,"reverse subtract":32779},ie={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},re={int8:5120,int16:5122,int32:5124,uint8:5121,uint16:5123,uint32:5125,float:5126,float32:5126},de={cw:2304,ccw:2305},me={},ze={},{draw:function(ke){var le,te,Ee,we,oe,Y,ne,ye,V;if(le=w.angle_instanced_arrays,te=m.next,te!==m.cur&&(te?a.bindFramebuffer(36160,te.framebuffer):a.bindFramebuffer(36160,null),m.cur=te),u.dirty){var ue,_e,xe,Ae,se,pe,fe,Re,We,Ke,tt,at,Ge,ge,Be,Ze,Le,De,Ue,Pe,Se,Ie,ot,ut,_t,At,Gt,Dt,yt,Mt,tr,Ye,nt,st,dt,rt,ft,Ft,Et,er,xr,kr,fr,Yr,Or,ri,Tr,Mr,Gr,_i,Fi,wr,Cr,Ut;ue=l.dither,ue!==u.dither&&(ue?a.enable(3024):a.disable(3024),u.dither=ue),_e=l.blend_enable,_e!==u.blend_enable&&(_e?a.enable(3042):a.disable(3042),u.blend_enable=_e),xe=M[0],Ae=M[1],se=M[2],pe=M[3],(xe!==x[0]||Ae!==x[1]||se!==x[2]||pe!==x[3])&&(a.blendColor(xe,Ae,se,pe),x[0]=xe,x[1]=Ae,x[2]=se,x[3]=pe),fe=T[0],Re=T[1],(fe!==A[0]||Re!==A[1])&&(a.blendEquationSeparate(fe,Re),A[0]=fe,A[1]=Re),We=g[0],Ke=g[1],tt=g[2],at=g[3],(We!==E[0]||Ke!==E[1]||tt!==E[2]||at!==E[3])&&(a.blendFuncSeparate(We,Ke,tt,at),E[0]=We,E[1]=Ke,E[2]=tt,E[3]=at),Ge=l.depth_enable,Ge!==u.depth_enable&&(Ge?a.enable(2929):a.disable(2929),u.depth_enable=Ge),ge=l.depth_func,ge!==u.depth_func&&(a.depthFunc(ge),u.depth_func=ge),Be=S[0],Ze=S[1],(Be!==C[0]||Ze!==C[1])&&(a.depthRange(Be,Ze),C[0]=Be,C[1]=Ze),Le=l.depth_mask,Le!==u.depth_mask&&(a.depthMask(Le),u.depth_mask=Le),De=k[0],Ue=k[1],Pe=k[2],Se=k[3],(De!==D[0]||Ue!==D[1]||Pe!==D[2]||Se!==D[3])&&(a.colorMask(De,Ue,Pe,Se),D[0]=De,D[1]=Ue,D[2]=Pe,D[3]=Se),Ie=l.cull_enable,Ie!==u.cull_enable&&(Ie?a.enable(2884):a.disable(2884),u.cull_enable=Ie),ot=l.cull_face,ot!==u.cull_face&&(a.cullFace(ot),u.cull_face=ot),ut=l.frontFace,ut!==u.frontFace&&(a.frontFace(ut),u.frontFace=ut),_t=l.lineWidth,_t!==u.lineWidth&&(a.lineWidth(_t),u.lineWidth=_t),At=l.polygonOffset_enable,At!==u.polygonOffset_enable&&(At?a.enable(32823):a.disable(32823),u.polygonOffset_enable=At),Gt=F[0],Dt=F[1],(Gt!==P[0]||Dt!==P[1])&&(a.polygonOffset(Gt,Dt),P[0]=Gt,P[1]=Dt),yt=l.sample_alpha,yt!==u.sample_alpha&&(yt?a.enable(32926):a.disable(32926),u.sample_alpha=yt),Mt=l.sample_enable,Mt!==u.sample_enable&&(Mt?a.enable(32928):a.disable(32928),u.sample_enable=Mt),tr=I[0],Ye=I[1],(tr!==L[0]||Ye!==L[1])&&(a.sampleCoverage(tr,Ye),L[0]=tr,L[1]=Ye),nt=l.stencil_enable,nt!==u.stencil_enable&&(nt?a.enable(2960):a.disable(2960),u.stencil_enable=nt),st=l.stencil_mask,st!==u.stencil_mask&&(a.stencilMask(st),u.stencil_mask=st),dt=z[0],rt=z[1],ft=z[2],(dt!==B[0]||rt!==B[1]||ft!==B[2])&&(a.stencilFunc(dt,rt,ft),B[0]=dt,B[1]=rt,B[2]=ft),Ft=O[0],Et=O[1],er=O[2],xr=O[3],(Ft!==W[0]||Et!==W[1]||er!==W[2]||xr!==W[3])&&(a.stencilOpSeparate(Ft,Et,er,xr),W[0]=Ft,W[1]=Et,W[2]=er,W[3]=xr),kr=X[0],fr=X[1],Yr=X[2],Or=X[3],(kr!==Z[0]||fr!==Z[1]||Yr!==Z[2]||Or!==Z[3])&&(a.stencilOpSeparate(kr,fr,Yr,Or),Z[0]=kr,Z[1]=fr,Z[2]=Yr,Z[3]=Or),ri=l.scissor_enable,ri!==u.scissor_enable&&(ri?a.enable(3089):a.disable(3089),u.scissor_enable=ri),Tr=H[0],Mr=H[1],Gr=H[2],_i=H[3],(Tr!==q[0]||Mr!==q[1]||Gr!==q[2]||_i!==q[3])&&(a.scissor(Tr,Mr,Gr,_i),q[0]=Tr,q[1]=Mr,q[2]=Gr,q[3]=_i),Fi=Q[0],wr=Q[1],Cr=Q[2],Ut=Q[3],(Fi!==N[0]||wr!==N[1]||Cr!==N[2]||Ut!==N[3])&&(a.viewport(Fi,wr,Cr,Ut),N[0]=Fi,N[1]=wr,N[2]=Cr,N[3]=Ut),u.dirty=!1}Ee=u.profile,Ee&&(we=performance.now(),r.count++),oe=d.frag,Y=d.vert,ne=d.program(Y,oe),a.useProgram(ne.program),v.setVAO(null),ye=ne.id,V=me[ye],V?V.call(this,ke):(V=me[ye]=i(ne),V.call(this,ke)),v.setVAO(null),Ee&&(r.cpuTime+=performance.now()-we)},scope:function(ke,le,te){var Ee,we;Ee=u.profile,Ee&&(we=performance.now(),r.count++),le(o,ke,te),Ee&&(r.cpuTime+=performance.now()-we)},batch:function(ke,le){var te,Ee,we,oe,Y,ne,ye,V,ue;if(te=w.angle_instanced_arrays,Ee=m.next,Ee!==m.cur&&(Ee?a.bindFramebuffer(36160,Ee.framebuffer):a.bindFramebuffer(36160,null),m.cur=Ee),u.dirty){var _e,xe,Ae,se,pe,fe,Re,We,Ke,tt,at,Ge,ge,Be,Ze,Le,De,Ue,Pe,Se,Ie,ot,ut,_t,At,Gt,Dt,yt,Mt,tr,Ye,nt,st,dt,rt,ft,Ft,Et,er,xr,kr,fr,Yr,Or,ri,Tr,Mr,Gr,_i,Fi,wr,Cr,Ut,Wt;_e=l.dither,_e!==u.dither&&(_e?a.enable(3024):a.disable(3024),u.dither=_e),xe=l.blend_enable,xe!==u.blend_enable&&(xe?a.enable(3042):a.disable(3042),u.blend_enable=xe),Ae=M[0],se=M[1],pe=M[2],fe=M[3],(Ae!==x[0]||se!==x[1]||pe!==x[2]||fe!==x[3])&&(a.blendColor(Ae,se,pe,fe),x[0]=Ae,x[1]=se,x[2]=pe,x[3]=fe),Re=T[0],We=T[1],(Re!==A[0]||We!==A[1])&&(a.blendEquationSeparate(Re,We),A[0]=Re,A[1]=We),Ke=g[0],tt=g[1],at=g[2],Ge=g[3],(Ke!==E[0]||tt!==E[1]||at!==E[2]||Ge!==E[3])&&(a.blendFuncSeparate(Ke,tt,at,Ge),E[0]=Ke,E[1]=tt,E[2]=at,E[3]=Ge),ge=l.depth_enable,ge!==u.depth_enable&&(ge?a.enable(2929):a.disable(2929),u.depth_enable=ge),Be=l.depth_func,Be!==u.depth_func&&(a.depthFunc(Be),u.depth_func=Be),Ze=S[0],Le=S[1],(Ze!==C[0]||Le!==C[1])&&(a.depthRange(Ze,Le),C[0]=Ze,C[1]=Le),De=l.depth_mask,De!==u.depth_mask&&(a.depthMask(De),u.depth_mask=De),Ue=k[0],Pe=k[1],Se=k[2],Ie=k[3],(Ue!==D[0]||Pe!==D[1]||Se!==D[2]||Ie!==D[3])&&(a.colorMask(Ue,Pe,Se,Ie),D[0]=Ue,D[1]=Pe,D[2]=Se,D[3]=Ie),ot=l.cull_enable,ot!==u.cull_enable&&(ot?a.enable(2884):a.disable(2884),u.cull_enable=ot),ut=l.cull_face,ut!==u.cull_face&&(a.cullFace(ut),u.cull_face=ut),_t=l.frontFace,_t!==u.frontFace&&(a.frontFace(_t),u.frontFace=_t),At=l.lineWidth,At!==u.lineWidth&&(a.lineWidth(At),u.lineWidth=At),Gt=l.polygonOffset_enable,Gt!==u.polygonOffset_enable&&(Gt?a.enable(32823):a.disable(32823),u.polygonOffset_enable=Gt),Dt=F[0],yt=F[1],(Dt!==P[0]||yt!==P[1])&&(a.polygonOffset(Dt,yt),P[0]=Dt,P[1]=yt),Mt=l.sample_alpha,Mt!==u.sample_alpha&&(Mt?a.enable(32926):a.disable(32926),u.sample_alpha=Mt),tr=l.sample_enable,tr!==u.sample_enable&&(tr?a.enable(32928):a.disable(32928),u.sample_enable=tr),Ye=I[0],nt=I[1],(Ye!==L[0]||nt!==L[1])&&(a.sampleCoverage(Ye,nt),L[0]=Ye,L[1]=nt),st=l.stencil_enable,st!==u.stencil_enable&&(st?a.enable(2960):a.disable(2960),u.stencil_enable=st),dt=l.stencil_mask,dt!==u.stencil_mask&&(a.stencilMask(dt),u.stencil_mask=dt),rt=z[0],ft=z[1],Ft=z[2],(rt!==B[0]||ft!==B[1]||Ft!==B[2])&&(a.stencilFunc(rt,ft,Ft),B[0]=rt,B[1]=ft,B[2]=Ft),Et=O[0],er=O[1],xr=O[2],kr=O[3],(Et!==W[0]||er!==W[1]||xr!==W[2]||kr!==W[3])&&(a.stencilOpSeparate(Et,er,xr,kr),W[0]=Et,W[1]=er,W[2]=xr,W[3]=kr),fr=X[0],Yr=X[1],Or=X[2],ri=X[3],(fr!==Z[0]||Yr!==Z[1]||Or!==Z[2]||ri!==Z[3])&&(a.stencilOpSeparate(fr,Yr,Or,ri),Z[0]=fr,Z[1]=Yr,Z[2]=Or,Z[3]=ri),Tr=l.scissor_enable,Tr!==u.scissor_enable&&(Tr?a.enable(3089):a.disable(3089),u.scissor_enable=Tr),Mr=H[0],Gr=H[1],_i=H[2],Fi=H[3],(Mr!==q[0]||Gr!==q[1]||_i!==q[2]||Fi!==q[3])&&(a.scissor(Mr,Gr,_i,Fi),q[0]=Mr,q[1]=Gr,q[2]=_i,q[3]=Fi),wr=Q[0],Cr=Q[1],Ut=Q[2],Wt=Q[3],(wr!==N[0]||Cr!==N[1]||Ut!==N[2]||Wt!==N[3])&&(a.viewport(wr,Cr,Ut,Wt),N[0]=wr,N[1]=Cr,N[2]=Ut,N[3]=Wt),u.dirty=!1}we=u.profile,we&&(oe=performance.now(),r.count+=le),Y=d.frag,ne=d.vert,ye=d.program(ne,Y),a.useProgram(ye.program),v.setVAO(null),V=ye.id,ue=ze[V],ue?ue.call(this,ke,le):(ue=ze[V]=n(ye),ue.call(this,ke,le)),v.setVAO(null),we&&(r.cpuTime+=performance.now()-oe)}}}});var PB=K((Kri,PZe)=>{"use strict";PZe.exports=function(t,r,i,n,a,o,s,l,u,f,c,h,d,p,v,y,m,w,_,b,M,x,T,A,g,E,S,C,k,D,F,P,I,L,z,B,O,W,X,Z,H,q,Q,N,U,J,j,$,ie,re,de,me,ze,ke,le,te,Ee,we,oe,Y,ne,ye,V,ue,_e,xe,Ae,se,pe,fe,Re,We,Ke,tt,at){"use strict";var Ge,ge,Be,Ze,Le,De,Ue,Pe,Se,Ie,ot,ut,_t,At,Gt,Dt,yt,Mt,tr,Ye,nt,st,dt,rt,ft,Ft,Et,er,xr,kr,fr,Yr,Or,ri,Tr,Mr,Gr,_i,Fi,wr,Cr,Ut,Wt,dr,Hr,Er,Fr;return Ge=t.gl,ge=t.context,Be=t.strings,Ze=t.next,Le=t.current,De=t.draw,Ue=t.elements,Pe=t.buffer,Se=t.shader,Ie=t.attributes,ot=t.vao,ut=t.uniforms,_t=t.framebuffer,At=t.extensions,Gt=t.timer,Dt=t.isBufferArgs,yt=Ze.blend_color,Mt=Le.blend_color,tr=Ze.blend_equation,Ye=Le.blend_equation,nt=Ze.blend_func,st=Le.blend_func,dt=Ze.depth_range,rt=Le.depth_range,ft=Ze.colorMask,Ft=Le.colorMask,Et=Ze.polygonOffset_offset,er=Le.polygonOffset_offset,xr=Ze.sample_coverage,kr=Le.sample_coverage,fr=Ze.stencil_func,Yr=Le.stencil_func,Or=Ze.stencil_opFront,ri=Le.stencil_opFront,Tr=Ze.stencil_opBack,Mr=Le.stencil_opBack,Gr=Ze.scissor_box,_i=Le.scissor_box,Fi=Ze.viewport,wr=Le.viewport,Cr={points:0,point:0,lines:1,line:1,triangles:4,triangle:4,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},Ut={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},Wt={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},dr={add:32774,subtract:32778,"reverse subtract":32779},Hr={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},Er={int8:5120,int16:5122,int32:5124,uint8:5121,uint16:5123,uint32:5125,float:5126,float32:5126},Fr={cw:2304,ccw:2305},{draw:function(di){var Li,nr,Kt,Me,Xe,$e,Qe,gt,bt,lr,Ct,ur,Rr,Br,Vr,gi,ui,ei,Gi,un,Tt,wi,kn,ii,Pr,Wi,na,yn,$n,$i,en,_r,Zr,fi,aa,ln,ca,Kn,dn,Ta,rn,Ai,nn,Ti,ea,qn,pi,Fn,Pa,pr,oi,Ki,Ui,pa,Na,on,wn,Ra,ti,Yn,Ja,ja,ka,Ci,vn,Va,Hi,zr,ni,bn,Bi,vi,mr,Mi,Cn,jr,Xn,an,ta,qi,On,Nn,ia,Qr,Di,fn,Dn,Vn,mn,qr,Pi,Ua,yi,Ma,Ba,Bn,ji,gn,jn,Un,Ii,gr,Ln,xn,da,Si,Kr,Gn,to,Jn,ro,mo,Oa,Ei,co,Pn,Fa,oa,Hn,va,ma,Sa,ki,Wr,An,Za,Ga,Ca,za,Wn,Zi,sa,So,ya,Qn,Tn,Da,zn,Ia,Yi,In,Oi,la,ga,go,eo,Eo,Mn,To,Ya,Co,Ri,qa,Zn,Ha,Wa,$a,Fe,Ve,lt,it,mt,Rt,qt,Nt,ar,Ir,$t,Bt,rr,Dr,Ur,ai,ci,li,mi,xi,Ni,ua,xa,ao,ho,Fo,ls,Io,Ps,xs,us,Vi,io,ko,oo,xo;if(Li=At.angle_instanced_arrays,nr=_t.next,nr!==_t.cur&&(nr?Ge.bindFramebuffer(36160,nr.framebuffer):Ge.bindFramebuffer(36160,null),_t.cur=nr),Le.dirty){var bo,so,Yo,Uo,es,jo,Qo,Ks,Ws,Ds,_s,as,Es,Mo,Go,qs,Ts,Dl,_l,wl,vl,Al,ml,Hl,Tl,yl,ae,ce,Te,Ce,Ne,Oe,He,ct;bo=Ze.dither,bo!==Le.dither&&(bo?Ge.enable(3024):Ge.disable(3024),Le.dither=bo),so=tr[0],Yo=tr[1],(so!==Ye[0]||Yo!==Ye[1])&&(Ge.blendEquationSeparate(so,Yo),Ye[0]=so,Ye[1]=Yo),Uo=Ze.depth_func,Uo!==Le.depth_func&&(Ge.depthFunc(Uo),Le.depth_func=Uo),es=dt[0],jo=dt[1],(es!==rt[0]||jo!==rt[1])&&(Ge.depthRange(es,jo),rt[0]=es,rt[1]=jo),Qo=Ze.depth_mask,Qo!==Le.depth_mask&&(Ge.depthMask(Qo),Le.depth_mask=Qo),Ks=ft[0],Ws=ft[1],Ds=ft[2],_s=ft[3],(Ks!==Ft[0]||Ws!==Ft[1]||Ds!==Ft[2]||_s!==Ft[3])&&(Ge.colorMask(Ks,Ws,Ds,_s),Ft[0]=Ks,Ft[1]=Ws,Ft[2]=Ds,Ft[3]=_s),as=Ze.cull_enable,as!==Le.cull_enable&&(as?Ge.enable(2884):Ge.disable(2884),Le.cull_enable=as),Es=Ze.cull_face,Es!==Le.cull_face&&(Ge.cullFace(Es),Le.cull_face=Es),Mo=Ze.frontFace,Mo!==Le.frontFace&&(Ge.frontFace(Mo),Le.frontFace=Mo),Go=Ze.lineWidth,Go!==Le.lineWidth&&(Ge.lineWidth(Go),Le.lineWidth=Go),qs=Ze.polygonOffset_enable,qs!==Le.polygonOffset_enable&&(qs?Ge.enable(32823):Ge.disable(32823),Le.polygonOffset_enable=qs),Ts=Et[0],Dl=Et[1],(Ts!==er[0]||Dl!==er[1])&&(Ge.polygonOffset(Ts,Dl),er[0]=Ts,er[1]=Dl),_l=Ze.sample_alpha,_l!==Le.sample_alpha&&(_l?Ge.enable(32926):Ge.disable(32926),Le.sample_alpha=_l),wl=Ze.sample_enable,wl!==Le.sample_enable&&(wl?Ge.enable(32928):Ge.disable(32928),Le.sample_enable=wl),vl=xr[0],Al=xr[1],(vl!==kr[0]||Al!==kr[1])&&(Ge.sampleCoverage(vl,Al),kr[0]=vl,kr[1]=Al),ml=Ze.stencil_mask,ml!==Le.stencil_mask&&(Ge.stencilMask(ml),Le.stencil_mask=ml),Hl=fr[0],Tl=fr[1],yl=fr[2],(Hl!==Yr[0]||Tl!==Yr[1]||yl!==Yr[2])&&(Ge.stencilFunc(Hl,Tl,yl),Yr[0]=Hl,Yr[1]=Tl,Yr[2]=yl),ae=Or[0],ce=Or[1],Te=Or[2],Ce=Or[3],(ae!==ri[0]||ce!==ri[1]||Te!==ri[2]||Ce!==ri[3])&&(Ge.stencilOpSeparate(ae,ce,Te,Ce),ri[0]=ae,ri[1]=ce,ri[2]=Te,ri[3]=Ce),Ne=Tr[0],Oe=Tr[1],He=Tr[2],ct=Tr[3],(Ne!==Mr[0]||Oe!==Mr[1]||He!==Mr[2]||ct!==Mr[3])&&(Ge.stencilOpSeparate(Ne,Oe,He,ct),Mr[0]=Ne,Mr[1]=Oe,Mr[2]=He,Mr[3]=ct)}Kt=di.viewport,Me=Kt.x|0,Xe=Kt.y|0,$e="width"in Kt?Kt.width|0:ge.framebufferWidth-Me,Qe="height"in Kt?Kt.height|0:ge.framebufferHeight-Xe,gt=ge.viewportWidth,ge.viewportWidth=$e,bt=ge.viewportHeight,ge.viewportHeight=Qe,Ge.viewport(Me,Xe,$e,Qe),wr[0]=Me,wr[1]=Xe,wr[2]=$e,wr[3]=Qe,Ge.blendColor(0,0,0,1),Mt[0]=0,Mt[1]=0,Mt[2]=0,Mt[3]=1,i?Ge.enable(3042):Ge.disable(3042),Le.blend_enable=i,Ge.blendFuncSeparate(770,771,773,1),st[0]=770,st[1]=771,st[2]=773,st[3]=1,n?Ge.enable(2929):Ge.disable(2929),Le.depth_enable=n,lr=di.viewport,Ct=lr.x|0,ur=lr.y|0,Rr="width"in lr?lr.width|0:ge.framebufferWidth-Ct,Br="height"in lr?lr.height|0:ge.framebufferHeight-ur,Ge.scissor(Ct,ur,Rr,Br),_i[0]=Ct,_i[1]=ur,_i[2]=Rr,_i[3]=Br,a?Ge.enable(3089):Ge.disable(3089),Le.scissor_enable=a,o?Ge.enable(2960):Ge.disable(2960),Le.stencil_enable=o,Vr=Le.profile,Vr&&(gi=performance.now(),r.count++),Ge.useProgram(s.program),ui=At.angle_instanced_arrays,ot.setVAO(null),ei=l.call(this,ge,di,0),Gi=!1,un=1,Tt=0,wi=0,kn=0,ii=0,Pr=null,Wi=0,na=!1,yn=5126,$n=0,$i=0,en=0,Dt(ei)?(Gi=!0,Pr=Pe.createStream(34962,ei),yn=Pr.dtype):(Pr=Pe.getBuffer(ei),Pr?yn=Pr.dtype:"constant"in ei?(un=2,typeof ei.constant=="number"?(Tt=ei.constant,wi=kn=ii=0):(Tt=ei.constant.length>0?ei.constant[0]:0,wi=ei.constant.length>1?ei.constant[1]:0,kn=ei.constant.length>2?ei.constant[2]:0,ii=ei.constant.length>3?ei.constant[3]:0)):(Dt(ei.buffer)?Pr=Pe.createStream(34962,ei.buffer):Pr=Pe.getBuffer(ei.buffer),yn="type"in ei?Er[ei.type]:Pr.dtype,na=!!ei.normalized,Wi=ei.size|0,$n=ei.offset|0,$i=ei.stride|0,en=ei.divisor|0)),_r=u.location,Zr=Ie[_r],un===1?(Zr.buffer||Ge.enableVertexAttribArray(_r),fi=Wi||4,(Zr.type!==yn||Zr.size!==fi||Zr.buffer!==Pr||Zr.normalized!==na||Zr.offset!==$n||Zr.stride!==$i)&&(Ge.bindBuffer(34962,Pr.buffer),Ge.vertexAttribPointer(_r,fi,yn,na,$i,$n),Zr.type=yn,Zr.size=fi,Zr.buffer=Pr,Zr.normalized=na,Zr.offset=$n,Zr.stride=$i),Zr.divisor!==en&&(ui.vertexAttribDivisorANGLE(_r,en),Zr.divisor=en)):(Zr.buffer&&(Ge.disableVertexAttribArray(_r),Zr.buffer=null),(Zr.x!==Tt||Zr.y!==wi||Zr.z!==kn||Zr.w!==ii)&&(Ge.vertexAttrib4f(_r,Tt,wi,kn,ii),Zr.x=Tt,Zr.y=wi,Zr.z=kn,Zr.w=ii)),aa=f.call(this,ge,di,0),ln=!1,ca=1,Kn=0,dn=0,Ta=0,rn=0,Ai=null,nn=0,Ti=!1,ea=5126,qn=0,pi=0,Fn=0,Dt(aa)?(ln=!0,Ai=Pe.createStream(34962,aa),ea=Ai.dtype):(Ai=Pe.getBuffer(aa),Ai?ea=Ai.dtype:"constant"in aa?(ca=2,typeof aa.constant=="number"?(Kn=aa.constant,dn=Ta=rn=0):(Kn=aa.constant.length>0?aa.constant[0]:0,dn=aa.constant.length>1?aa.constant[1]:0,Ta=aa.constant.length>2?aa.constant[2]:0,rn=aa.constant.length>3?aa.constant[3]:0)):(Dt(aa.buffer)?Ai=Pe.createStream(34962,aa.buffer):Ai=Pe.getBuffer(aa.buffer),ea="type"in aa?Er[aa.type]:Ai.dtype,Ti=!!aa.normalized,nn=aa.size|0,qn=aa.offset|0,pi=aa.stride|0,Fn=aa.divisor|0)),Pa=c.location,pr=Ie[Pa],ca===1?(pr.buffer||Ge.enableVertexAttribArray(Pa),oi=nn||1,(pr.type!==ea||pr.size!==oi||pr.buffer!==Ai||pr.normalized!==Ti||pr.offset!==qn||pr.stride!==pi)&&(Ge.bindBuffer(34962,Ai.buffer),Ge.vertexAttribPointer(Pa,oi,ea,Ti,pi,qn),pr.type=ea,pr.size=oi,pr.buffer=Ai,pr.normalized=Ti,pr.offset=qn,pr.stride=pi),pr.divisor!==Fn&&(ui.vertexAttribDivisorANGLE(Pa,Fn),pr.divisor=Fn)):(pr.buffer&&(Ge.disableVertexAttribArray(Pa),pr.buffer=null),(pr.x!==Kn||pr.y!==dn||pr.z!==Ta||pr.w!==rn)&&(Ge.vertexAttrib4f(Pa,Kn,dn,Ta,rn),pr.x=Kn,pr.y=dn,pr.z=Ta,pr.w=rn)),Ki=h.call(this,ge,di,0),Ui=!1,pa=1,Na=0,on=0,wn=0,Ra=0,ti=null,Yn=0,Ja=!1,ja=5126,ka=0,Ci=0,vn=0,Dt(Ki)?(Ui=!0,ti=Pe.createStream(34962,Ki),ja=ti.dtype):(ti=Pe.getBuffer(Ki),ti?ja=ti.dtype:"constant"in Ki?(pa=2,typeof Ki.constant=="number"?(Na=Ki.constant,on=wn=Ra=0):(Na=Ki.constant.length>0?Ki.constant[0]:0,on=Ki.constant.length>1?Ki.constant[1]:0,wn=Ki.constant.length>2?Ki.constant[2]:0,Ra=Ki.constant.length>3?Ki.constant[3]:0)):(Dt(Ki.buffer)?ti=Pe.createStream(34962,Ki.buffer):ti=Pe.getBuffer(Ki.buffer),ja="type"in Ki?Er[Ki.type]:ti.dtype,Ja=!!Ki.normalized,Yn=Ki.size|0,ka=Ki.offset|0,Ci=Ki.stride|0,vn=Ki.divisor|0)),Va=d.location,Hi=Ie[Va],pa===1?(Hi.buffer||Ge.enableVertexAttribArray(Va),zr=Yn||4,(Hi.type!==ja||Hi.size!==zr||Hi.buffer!==ti||Hi.normalized!==Ja||Hi.offset!==ka||Hi.stride!==Ci)&&(Ge.bindBuffer(34962,ti.buffer),Ge.vertexAttribPointer(Va,zr,ja,Ja,Ci,ka),Hi.type=ja,Hi.size=zr,Hi.buffer=ti,Hi.normalized=Ja,Hi.offset=ka,Hi.stride=Ci),Hi.divisor!==vn&&(ui.vertexAttribDivisorANGLE(Va,vn),Hi.divisor=vn)):(Hi.buffer&&(Ge.disableVertexAttribArray(Va),Hi.buffer=null),(Hi.x!==Na||Hi.y!==on||Hi.z!==wn||Hi.w!==Ra)&&(Ge.vertexAttrib4f(Va,Na,on,wn,Ra),Hi.x=Na,Hi.y=on,Hi.z=wn,Hi.w=Ra)),ni=p.call(this,ge,di,0),bn=!1,Bi=1,vi=0,mr=0,Mi=0,Cn=0,jr=null,Xn=0,an=!1,ta=5126,qi=0,On=0,Nn=0,Dt(ni)?(bn=!0,jr=Pe.createStream(34962,ni),ta=jr.dtype):(jr=Pe.getBuffer(ni),jr?ta=jr.dtype:"constant"in ni?(Bi=2,typeof ni.constant=="number"?(vi=ni.constant,mr=Mi=Cn=0):(vi=ni.constant.length>0?ni.constant[0]:0,mr=ni.constant.length>1?ni.constant[1]:0,Mi=ni.constant.length>2?ni.constant[2]:0,Cn=ni.constant.length>3?ni.constant[3]:0)):(Dt(ni.buffer)?jr=Pe.createStream(34962,ni.buffer):jr=Pe.getBuffer(ni.buffer),ta="type"in ni?Er[ni.type]:jr.dtype,an=!!ni.normalized,Xn=ni.size|0,qi=ni.offset|0,On=ni.stride|0,Nn=ni.divisor|0)),ia=v.location,Qr=Ie[ia],Bi===1?(Qr.buffer||Ge.enableVertexAttribArray(ia),Di=Xn||1,(Qr.type!==ta||Qr.size!==Di||Qr.buffer!==jr||Qr.normalized!==an||Qr.offset!==qi||Qr.stride!==On)&&(Ge.bindBuffer(34962,jr.buffer),Ge.vertexAttribPointer(ia,Di,ta,an,On,qi),Qr.type=ta,Qr.size=Di,Qr.buffer=jr,Qr.normalized=an,Qr.offset=qi,Qr.stride=On),Qr.divisor!==Nn&&(ui.vertexAttribDivisorANGLE(ia,Nn),Qr.divisor=Nn)):(Qr.buffer&&(Ge.disableVertexAttribArray(ia),Qr.buffer=null),(Qr.x!==vi||Qr.y!==mr||Qr.z!==Mi||Qr.w!==Cn)&&(Ge.vertexAttrib4f(ia,vi,mr,Mi,Cn),Qr.x=vi,Qr.y=mr,Qr.z=Mi,Qr.w=Cn)),fn=y.call(this,ge,di,0),Dn=!1,Vn=1,mn=0,qr=0,Pi=0,Ua=0,yi=null,Ma=0,Ba=!1,Bn=5126,ji=0,gn=0,jn=0,Dt(fn)?(Dn=!0,yi=Pe.createStream(34962,fn),Bn=yi.dtype):(yi=Pe.getBuffer(fn),yi?Bn=yi.dtype:"constant"in fn?(Vn=2,typeof fn.constant=="number"?(mn=fn.constant,qr=Pi=Ua=0):(mn=fn.constant.length>0?fn.constant[0]:0,qr=fn.constant.length>1?fn.constant[1]:0,Pi=fn.constant.length>2?fn.constant[2]:0,Ua=fn.constant.length>3?fn.constant[3]:0)):(Dt(fn.buffer)?yi=Pe.createStream(34962,fn.buffer):yi=Pe.getBuffer(fn.buffer),Bn="type"in fn?Er[fn.type]:yi.dtype,Ba=!!fn.normalized,Ma=fn.size|0,ji=fn.offset|0,gn=fn.stride|0,jn=fn.divisor|0)),Un=m.location,Ii=Ie[Un],Vn===1?(Ii.buffer||Ge.enableVertexAttribArray(Un),gr=Ma||1,(Ii.type!==Bn||Ii.size!==gr||Ii.buffer!==yi||Ii.normalized!==Ba||Ii.offset!==ji||Ii.stride!==gn)&&(Ge.bindBuffer(34962,yi.buffer),Ge.vertexAttribPointer(Un,gr,Bn,Ba,gn,ji),Ii.type=Bn,Ii.size=gr,Ii.buffer=yi,Ii.normalized=Ba,Ii.offset=ji,Ii.stride=gn),Ii.divisor!==jn&&(ui.vertexAttribDivisorANGLE(Un,jn),Ii.divisor=jn)):(Ii.buffer&&(Ge.disableVertexAttribArray(Un),Ii.buffer=null),(Ii.x!==mn||Ii.y!==qr||Ii.z!==Pi||Ii.w!==Ua)&&(Ge.vertexAttrib4f(Un,mn,qr,Pi,Ua),Ii.x=mn,Ii.y=qr,Ii.z=Pi,Ii.w=Ua)),Ln=w.call(this,ge,di,0),xn=!1,da=1,Si=0,Kr=0,Gn=0,to=0,Jn=null,ro=0,mo=!1,Oa=5126,Ei=0,co=0,Pn=0,Dt(Ln)?(xn=!0,Jn=Pe.createStream(34962,Ln),Oa=Jn.dtype):(Jn=Pe.getBuffer(Ln),Jn?Oa=Jn.dtype:"constant"in Ln?(da=2,typeof Ln.constant=="number"?(Si=Ln.constant,Kr=Gn=to=0):(Si=Ln.constant.length>0?Ln.constant[0]:0,Kr=Ln.constant.length>1?Ln.constant[1]:0,Gn=Ln.constant.length>2?Ln.constant[2]:0,to=Ln.constant.length>3?Ln.constant[3]:0)):(Dt(Ln.buffer)?Jn=Pe.createStream(34962,Ln.buffer):Jn=Pe.getBuffer(Ln.buffer),Oa="type"in Ln?Er[Ln.type]:Jn.dtype,mo=!!Ln.normalized,ro=Ln.size|0,Ei=Ln.offset|0,co=Ln.stride|0,Pn=Ln.divisor|0)),Fa=_.location,oa=Ie[Fa],da===1?(oa.buffer||Ge.enableVertexAttribArray(Fa),Hn=ro||1,(oa.type!==Oa||oa.size!==Hn||oa.buffer!==Jn||oa.normalized!==mo||oa.offset!==Ei||oa.stride!==co)&&(Ge.bindBuffer(34962,Jn.buffer),Ge.vertexAttribPointer(Fa,Hn,Oa,mo,co,Ei),oa.type=Oa,oa.size=Hn,oa.buffer=Jn,oa.normalized=mo,oa.offset=Ei,oa.stride=co),oa.divisor!==Pn&&(ui.vertexAttribDivisorANGLE(Fa,Pn),oa.divisor=Pn)):(oa.buffer&&(Ge.disableVertexAttribArray(Fa),oa.buffer=null),(oa.x!==Si||oa.y!==Kr||oa.z!==Gn||oa.w!==to)&&(Ge.vertexAttrib4f(Fa,Si,Kr,Gn,to),oa.x=Si,oa.y=Kr,oa.z=Gn,oa.w=to)),va=b.call(this,ge,di,0),ma=!1,Sa=1,ki=0,Wr=0,An=0,Za=0,Ga=null,Ca=0,za=!1,Wn=5126,Zi=0,sa=0,So=0,Dt(va)?(ma=!0,Ga=Pe.createStream(34962,va),Wn=Ga.dtype):(Ga=Pe.getBuffer(va),Ga?Wn=Ga.dtype:"constant"in va?(Sa=2,typeof va.constant=="number"?(ki=va.constant,Wr=An=Za=0):(ki=va.constant.length>0?va.constant[0]:0,Wr=va.constant.length>1?va.constant[1]:0,An=va.constant.length>2?va.constant[2]:0,Za=va.constant.length>3?va.constant[3]:0)):(Dt(va.buffer)?Ga=Pe.createStream(34962,va.buffer):Ga=Pe.getBuffer(va.buffer),Wn="type"in va?Er[va.type]:Ga.dtype,za=!!va.normalized,Ca=va.size|0,Zi=va.offset|0,sa=va.stride|0,So=va.divisor|0)),ya=M.location,Qn=Ie[ya],Sa===1?(Qn.buffer||Ge.enableVertexAttribArray(ya),Tn=Ca||1,(Qn.type!==Wn||Qn.size!==Tn||Qn.buffer!==Ga||Qn.normalized!==za||Qn.offset!==Zi||Qn.stride!==sa)&&(Ge.bindBuffer(34962,Ga.buffer),Ge.vertexAttribPointer(ya,Tn,Wn,za,sa,Zi),Qn.type=Wn,Qn.size=Tn,Qn.buffer=Ga,Qn.normalized=za,Qn.offset=Zi,Qn.stride=sa),Qn.divisor!==So&&(ui.vertexAttribDivisorANGLE(ya,So),Qn.divisor=So)):(Qn.buffer&&(Ge.disableVertexAttribArray(ya),Qn.buffer=null),(Qn.x!==ki||Qn.y!==Wr||Qn.z!==An||Qn.w!==Za)&&(Ge.vertexAttrib4f(ya,ki,Wr,An,Za),Qn.x=ki,Qn.y=Wr,Qn.z=An,Qn.w=Za)),Da=x.call(this,ge,di,0),zn=!1,Ia=1,Yi=0,In=0,Oi=0,la=0,ga=null,go=0,eo=!1,Eo=5126,Mn=0,To=0,Ya=0,Dt(Da)?(zn=!0,ga=Pe.createStream(34962,Da),Eo=ga.dtype):(ga=Pe.getBuffer(Da),ga?Eo=ga.dtype:"constant"in Da?(Ia=2,typeof Da.constant=="number"?(Yi=Da.constant,In=Oi=la=0):(Yi=Da.constant.length>0?Da.constant[0]:0,In=Da.constant.length>1?Da.constant[1]:0,Oi=Da.constant.length>2?Da.constant[2]:0,la=Da.constant.length>3?Da.constant[3]:0)):(Dt(Da.buffer)?ga=Pe.createStream(34962,Da.buffer):ga=Pe.getBuffer(Da.buffer),Eo="type"in Da?Er[Da.type]:ga.dtype,eo=!!Da.normalized,go=Da.size|0,Mn=Da.offset|0,To=Da.stride|0,Ya=Da.divisor|0)),Co=T.location,Ri=Ie[Co],Ia===1?(Ri.buffer||Ge.enableVertexAttribArray(Co),qa=go||1,(Ri.type!==Eo||Ri.size!==qa||Ri.buffer!==ga||Ri.normalized!==eo||Ri.offset!==Mn||Ri.stride!==To)&&(Ge.bindBuffer(34962,ga.buffer),Ge.vertexAttribPointer(Co,qa,Eo,eo,To,Mn),Ri.type=Eo,Ri.size=qa,Ri.buffer=ga,Ri.normalized=eo,Ri.offset=Mn,Ri.stride=To),Ri.divisor!==Ya&&(ui.vertexAttribDivisorANGLE(Co,Ya),Ri.divisor=Ya)):(Ri.buffer&&(Ge.disableVertexAttribArray(Co),Ri.buffer=null),(Ri.x!==Yi||Ri.y!==In||Ri.z!==Oi||Ri.w!==la)&&(Ge.vertexAttrib4f(Co,Yi,In,Oi,la),Ri.x=Yi,Ri.y=In,Ri.z=Oi,Ri.w=la)),Zn=A.call(this,ge,di,0),Ha=!1,Wa=1,$a=0,Fe=0,Ve=0,lt=0,it=null,mt=0,Rt=!1,qt=5126,Nt=0,ar=0,Ir=0,Dt(Zn)?(Ha=!0,it=Pe.createStream(34962,Zn),qt=it.dtype):(it=Pe.getBuffer(Zn),it?qt=it.dtype:"constant"in Zn?(Wa=2,typeof Zn.constant=="number"?($a=Zn.constant,Fe=Ve=lt=0):($a=Zn.constant.length>0?Zn.constant[0]:0,Fe=Zn.constant.length>1?Zn.constant[1]:0,Ve=Zn.constant.length>2?Zn.constant[2]:0,lt=Zn.constant.length>3?Zn.constant[3]:0)):(Dt(Zn.buffer)?it=Pe.createStream(34962,Zn.buffer):it=Pe.getBuffer(Zn.buffer),qt="type"in Zn?Er[Zn.type]:it.dtype,Rt=!!Zn.normalized,mt=Zn.size|0,Nt=Zn.offset|0,ar=Zn.stride|0,Ir=Zn.divisor|0)),$t=g.location,Bt=Ie[$t],Wa===1?(Bt.buffer||Ge.enableVertexAttribArray($t),rr=mt||1,(Bt.type!==qt||Bt.size!==rr||Bt.buffer!==it||Bt.normalized!==Rt||Bt.offset!==Nt||Bt.stride!==ar)&&(Ge.bindBuffer(34962,it.buffer),Ge.vertexAttribPointer($t,rr,qt,Rt,ar,Nt),Bt.type=qt,Bt.size=rr,Bt.buffer=it,Bt.normalized=Rt,Bt.offset=Nt,Bt.stride=ar),Bt.divisor!==Ir&&(ui.vertexAttribDivisorANGLE($t,Ir),Bt.divisor=Ir)):(Bt.buffer&&(Ge.disableVertexAttribArray($t),Bt.buffer=null),(Bt.x!==$a||Bt.y!==Fe||Bt.z!==Ve||Bt.w!==lt)&&(Ge.vertexAttrib4f($t,$a,Fe,Ve,lt),Bt.x=$a,Bt.y=Fe,Bt.z=Ve,Bt.w=lt)),Ge.uniform1i(E.location,!1),Dr=di.opacity,Ge.uniform1f(S.location,Dr),Ur=k.call(this,ge,di,0),ai=Ur[0],ci=Ur[1],Ge.uniform2f(C.location,ai,ci),Ge.uniform1i(D.location,F.bind()),li=ge.pixelRatio,Ge.uniform1f(P.location,li),mi=di.scale,xi=mi[0],Ni=mi[1],Ge.uniform2f(I.location,xi,Ni),ua=di.scaleFract,xa=ua[0],ao=ua[1],Ge.uniform2f(L.location,xa,ao),ho=di.translate,Fo=ho[0],ls=ho[1],Ge.uniform2f(z.location,Fo,ls),Io=di.translateFract,Ps=Io[0],xs=Io[1],Ge.uniform2f(B.location,Ps,xs),us=di.elements,Vi=null,io=Dt(us),io?Vi=Ue.createStream(us):Vi=Ue.getElements(us),Vi&&Ge.bindBuffer(34963,Vi.buffer.buffer),ko=di.offset,oo=di.count,oo&&(xo=De.instances,xo>0?Vi?ui.drawElementsInstancedANGLE(0,oo,Vi.type,ko<<(Vi.type-5121>>1),xo):ui.drawArraysInstancedANGLE(0,ko,oo,xo):xo<0&&(Vi?Ge.drawElements(0,oo,Vi.type,ko<<(Vi.type-5121>>1)):Ge.drawArrays(0,ko,oo)),Le.dirty=!0,ot.setVAO(null),ge.viewportWidth=gt,ge.viewportHeight=bt,Vr&&(r.cpuTime+=performance.now()-gi),Gi&&Pe.destroyStream(Pr),ln&&Pe.destroyStream(Ai),Ui&&Pe.destroyStream(ti),bn&&Pe.destroyStream(jr),Dn&&Pe.destroyStream(yi),xn&&Pe.destroyStream(Jn),ma&&Pe.destroyStream(Ga),zn&&Pe.destroyStream(ga),Ha&&Pe.destroyStream(it),F.unbind(),io&&Ue.destroyStream(Vi))},scope:function(di,Li,nr){var Kt,Me,Xe,$e,Qe,gt,bt,lr,Ct,ur,Rr,Br,Vr,gi,ui,ei,Gi,un,Tt,wi,kn,ii,Pr,Wi,na,yn,$n,$i,en,_r,Zr,fi,aa,ln,ca,Kn,dn,Ta,rn,Ai,nn,Ti,ea,qn,pi,Fn,Pa,pr,oi,Ki,Ui,pa,Na,on,wn,Ra,ti,Yn,Ja,ja,ka,Ci,vn,Va,Hi,zr,ni,bn,Bi,vi,mr,Mi,Cn,jr,Xn,an,ta,qi,On,Nn,ia,Qr,Di,fn,Dn,Vn,mn,qr,Pi,Ua,yi,Ma,Ba,Bn,ji,gn,jn,Un,Ii,gr,Ln,xn,da,Si,Kr,Gn,to,Jn,ro,mo,Oa,Ei,co,Pn,Fa,oa,Hn,va,ma,Sa,ki,Wr,An,Za,Ga,Ca,za,Wn,Zi,sa,So,ya,Qn,Tn,Da,zn,Ia,Yi,In,Oi,la,ga,go,eo,Eo,Mn,To,Ya,Co,Ri,qa,Zn,Ha,Wa,$a,Fe,Ve,lt,it,mt,Rt,qt,Nt,ar,Ir,$t,Bt,rr,Dr,Ur,ai,ci,li,mi,xi,Ni,ua,xa,ao,ho,Fo,ls,Io,Ps,xs,us,Vi,io,ko,oo,xo,bo,so,Yo,Uo,es,jo,Qo,Ks,Ws,Ds,_s,as,Es,Mo,Go,qs,Ts,Dl,_l,wl,vl,Al,ml,Hl,Tl,yl,ae,ce,Te,Ce,Ne,Oe,He,ct,xt,vt,wt,Pt,Jt,cr,Nr,zi,Rn,fo,Xo,Bo,fs,cs,Ns,zl,Rs,Nl,ul,cl,vf,wf,_u,wu,ju,Au,ku,Af,mf,ef,Nf,oc,R,G,ee,he,ve,be,je,qe,Je,ht,pt,Lt,kt,Qt,Sr,It,Yt,sr,Ar,br,Xt,_n,ha,Xa,yo,Wo,Zo,Qs,rs,Us,jl,qu,Ql,po,el,nl,Vl,Cu,tf,Tf;Kt=di.viewport,Me=Kt.x|0,Xe=Kt.y|0,$e="width"in Kt?Kt.width|0:ge.framebufferWidth-Me,Qe="height"in Kt?Kt.height|0:ge.framebufferHeight-Xe,gt=ge.viewportWidth,ge.viewportWidth=$e,bt=ge.viewportHeight,ge.viewportHeight=Qe,lr=Fi[0],Fi[0]=Me,Ct=Fi[1],Fi[1]=Xe,ur=Fi[2],Fi[2]=$e,Rr=Fi[3],Fi[3]=Qe,Br=yt[0],yt[0]=O,Vr=yt[1],yt[1]=W,gi=yt[2],yt[2]=X,ui=yt[3],yt[3]=Z,ei=Ze.blend_enable,Ze.blend_enable=H,Gi=nt[0],nt[0]=q,un=nt[1],nt[1]=Q,Tt=nt[2],nt[2]=N,wi=nt[3],nt[3]=U,kn=Ze.depth_enable,Ze.depth_enable=J,ii=di.viewport,Pr=ii.x|0,Wi=ii.y|0,na="width"in ii?ii.width|0:ge.framebufferWidth-Pr,yn="height"in ii?ii.height|0:ge.framebufferHeight-Wi,$n=Gr[0],Gr[0]=Pr,$i=Gr[1],Gr[1]=Wi,en=Gr[2],Gr[2]=na,_r=Gr[3],Gr[3]=yn,Zr=Ze.scissor_enable,Ze.scissor_enable=j,fi=Ze.stencil_enable,Ze.stencil_enable=$,aa=Le.profile,aa&&(ln=performance.now(),r.count++),ca=di.elements,Kn=null,dn=Dt(ca),dn?Kn=Ue.createStream(ca):Kn=Ue.getElements(ca),Ta=De.elements,De.elements=Kn,rn=di.offset,Ai=De.offset,De.offset=rn,nn=di.count,Ti=De.count,De.count=nn,ea=De.primitive,De.primitive=ie,qn=ut[re],ut[re]=!1,pi=ut[me],ut[me]=de,Fn=di.opacity,Pa=ut[ze],ut[ze]=Fn,pr=k.call(this,ge,di,nr),oi=ut[ke],ut[ke]=pr,Ki=ge.pixelRatio,Ui=ut[le],ut[le]=Ki,pa=di.scale,Na=ut[te],ut[te]=pa,on=di.scaleFract,wn=ut[Ee],ut[Ee]=on,Ra=di.translate,ti=ut[we],ut[we]=Ra,Yn=di.translateFract,Ja=ut[oe],ut[oe]=Yn,ja=di.markerTexture,ka=ut[Y],ut[Y]=ja,Ci=w.call(this,ge,di,nr),vn=!1,Va=1,Hi=0,zr=0,ni=0,bn=0,Bi=null,vi=0,mr=!1,Mi=5126,Cn=0,jr=0,Xn=0,Dt(Ci)?(vn=!0,Bi=Pe.createStream(34962,Ci),Mi=Bi.dtype):(Bi=Pe.getBuffer(Ci),Bi?Mi=Bi.dtype:"constant"in Ci?(Va=2,typeof Ci.constant=="number"?(Hi=Ci.constant,zr=ni=bn=0):(Hi=Ci.constant.length>0?Ci.constant[0]:0,zr=Ci.constant.length>1?Ci.constant[1]:0,ni=Ci.constant.length>2?Ci.constant[2]:0,bn=Ci.constant.length>3?Ci.constant[3]:0)):(Dt(Ci.buffer)?Bi=Pe.createStream(34962,Ci.buffer):Bi=Pe.getBuffer(Ci.buffer),Mi="type"in Ci?Er[Ci.type]:Bi.dtype,mr=!!Ci.normalized,vi=Ci.size|0,Cn=Ci.offset|0,jr=Ci.stride|0,Xn=Ci.divisor|0)),an=ne.state,ne.state=Va,ta=ne.x,ne.x=Hi,qi=ne.y,ne.y=zr,On=ne.z,ne.z=ni,Nn=ne.w,ne.w=bn,ia=ne.buffer,ne.buffer=Bi,Qr=ne.size,ne.size=vi,Di=ne.normalized,ne.normalized=mr,fn=ne.type,ne.type=Mi,Dn=ne.offset,ne.offset=Cn,Vn=ne.stride,ne.stride=jr,mn=ne.divisor,ne.divisor=Xn,qr=x.call(this,ge,di,nr),Pi=!1,Ua=1,yi=0,Ma=0,Ba=0,Bn=0,ji=null,gn=0,jn=!1,Un=5126,Ii=0,gr=0,Ln=0,Dt(qr)?(Pi=!0,ji=Pe.createStream(34962,qr),Un=ji.dtype):(ji=Pe.getBuffer(qr),ji?Un=ji.dtype:"constant"in qr?(Ua=2,typeof qr.constant=="number"?(yi=qr.constant,Ma=Ba=Bn=0):(yi=qr.constant.length>0?qr.constant[0]:0,Ma=qr.constant.length>1?qr.constant[1]:0,Ba=qr.constant.length>2?qr.constant[2]:0,Bn=qr.constant.length>3?qr.constant[3]:0)):(Dt(qr.buffer)?ji=Pe.createStream(34962,qr.buffer):ji=Pe.getBuffer(qr.buffer),Un="type"in qr?Er[qr.type]:ji.dtype,jn=!!qr.normalized,gn=qr.size|0,Ii=qr.offset|0,gr=qr.stride|0,Ln=qr.divisor|0)),xn=ye.state,ye.state=Ua,da=ye.x,ye.x=yi,Si=ye.y,ye.y=Ma,Kr=ye.z,ye.z=Ba,Gn=ye.w,ye.w=Bn,to=ye.buffer,ye.buffer=ji,Jn=ye.size,ye.size=gn,ro=ye.normalized,ye.normalized=jn,mo=ye.type,ye.type=Un,Oa=ye.offset,ye.offset=Ii,Ei=ye.stride,ye.stride=gr,co=ye.divisor,ye.divisor=Ln,Pn=b.call(this,ge,di,nr),Fa=!1,oa=1,Hn=0,va=0,ma=0,Sa=0,ki=null,Wr=0,An=!1,Za=5126,Ga=0,Ca=0,za=0,Dt(Pn)?(Fa=!0,ki=Pe.createStream(34962,Pn),Za=ki.dtype):(ki=Pe.getBuffer(Pn),ki?Za=ki.dtype:"constant"in Pn?(oa=2,typeof Pn.constant=="number"?(Hn=Pn.constant,va=ma=Sa=0):(Hn=Pn.constant.length>0?Pn.constant[0]:0,va=Pn.constant.length>1?Pn.constant[1]:0,ma=Pn.constant.length>2?Pn.constant[2]:0,Sa=Pn.constant.length>3?Pn.constant[3]:0)):(Dt(Pn.buffer)?ki=Pe.createStream(34962,Pn.buffer):ki=Pe.getBuffer(Pn.buffer),Za="type"in Pn?Er[Pn.type]:ki.dtype,An=!!Pn.normalized,Wr=Pn.size|0,Ga=Pn.offset|0,Ca=Pn.stride|0,za=Pn.divisor|0)),Wn=V.state,V.state=oa,Zi=V.x,V.x=Hn,sa=V.y,V.y=va,So=V.z,V.z=ma,ya=V.w,V.w=Sa,Qn=V.buffer,V.buffer=ki,Tn=V.size,V.size=Wr,Da=V.normalized,V.normalized=An,zn=V.type,V.type=Za,Ia=V.offset,V.offset=Ga,Yi=V.stride,V.stride=Ca,In=V.divisor,V.divisor=za,Oi=A.call(this,ge,di,nr),la=!1,ga=1,go=0,eo=0,Eo=0,Mn=0,To=null,Ya=0,Co=!1,Ri=5126,qa=0,Zn=0,Ha=0,Dt(Oi)?(la=!0,To=Pe.createStream(34962,Oi),Ri=To.dtype):(To=Pe.getBuffer(Oi),To?Ri=To.dtype:"constant"in Oi?(ga=2,typeof Oi.constant=="number"?(go=Oi.constant,eo=Eo=Mn=0):(go=Oi.constant.length>0?Oi.constant[0]:0,eo=Oi.constant.length>1?Oi.constant[1]:0,Eo=Oi.constant.length>2?Oi.constant[2]:0,Mn=Oi.constant.length>3?Oi.constant[3]:0)):(Dt(Oi.buffer)?To=Pe.createStream(34962,Oi.buffer):To=Pe.getBuffer(Oi.buffer),Ri="type"in Oi?Er[Oi.type]:To.dtype,Co=!!Oi.normalized,Ya=Oi.size|0,qa=Oi.offset|0,Zn=Oi.stride|0,Ha=Oi.divisor|0)),Wa=ue.state,ue.state=ga,$a=ue.x,ue.x=go,Fe=ue.y,ue.y=eo,Ve=ue.z,ue.z=Eo,lt=ue.w,ue.w=Mn,it=ue.buffer,ue.buffer=To,mt=ue.size,ue.size=Ya,Rt=ue.normalized,ue.normalized=Co,qt=ue.type,ue.type=Ri,Nt=ue.offset,ue.offset=qa,ar=ue.stride,ue.stride=Zn,Ir=ue.divisor,ue.divisor=Ha,$t=y.call(this,ge,di,nr),Bt=!1,rr=1,Dr=0,Ur=0,ai=0,ci=0,li=null,mi=0,xi=!1,Ni=5126,ua=0,xa=0,ao=0,Dt($t)?(Bt=!0,li=Pe.createStream(34962,$t),Ni=li.dtype):(li=Pe.getBuffer($t),li?Ni=li.dtype:"constant"in $t?(rr=2,typeof $t.constant=="number"?(Dr=$t.constant,Ur=ai=ci=0):(Dr=$t.constant.length>0?$t.constant[0]:0,Ur=$t.constant.length>1?$t.constant[1]:0,ai=$t.constant.length>2?$t.constant[2]:0,ci=$t.constant.length>3?$t.constant[3]:0)):(Dt($t.buffer)?li=Pe.createStream(34962,$t.buffer):li=Pe.getBuffer($t.buffer),Ni="type"in $t?Er[$t.type]:li.dtype,xi=!!$t.normalized,mi=$t.size|0,ua=$t.offset|0,xa=$t.stride|0,ao=$t.divisor|0)),ho=_e.state,_e.state=rr,Fo=_e.x,_e.x=Dr,ls=_e.y,_e.y=Ur,Io=_e.z,_e.z=ai,Ps=_e.w,_e.w=ci,xs=_e.buffer,_e.buffer=li,us=_e.size,_e.size=mi,Vi=_e.normalized,_e.normalized=xi,io=_e.type,_e.type=Ni,ko=_e.offset,_e.offset=ua,oo=_e.stride,_e.stride=xa,xo=_e.divisor,_e.divisor=ao,bo=f.call(this,ge,di,nr),so=!1,Yo=1,Uo=0,es=0,jo=0,Qo=0,Ks=null,Ws=0,Ds=!1,_s=5126,as=0,Es=0,Mo=0,Dt(bo)?(so=!0,Ks=Pe.createStream(34962,bo),_s=Ks.dtype):(Ks=Pe.getBuffer(bo),Ks?_s=Ks.dtype:"constant"in bo?(Yo=2,typeof bo.constant=="number"?(Uo=bo.constant,es=jo=Qo=0):(Uo=bo.constant.length>0?bo.constant[0]:0,es=bo.constant.length>1?bo.constant[1]:0,jo=bo.constant.length>2?bo.constant[2]:0,Qo=bo.constant.length>3?bo.constant[3]:0)):(Dt(bo.buffer)?Ks=Pe.createStream(34962,bo.buffer):Ks=Pe.getBuffer(bo.buffer),_s="type"in bo?Er[bo.type]:Ks.dtype,Ds=!!bo.normalized,Ws=bo.size|0,as=bo.offset|0,Es=bo.stride|0,Mo=bo.divisor|0)),Go=xe.state,xe.state=Yo,qs=xe.x,xe.x=Uo,Ts=xe.y,xe.y=es,Dl=xe.z,xe.z=jo,_l=xe.w,xe.w=Qo,wl=xe.buffer,xe.buffer=Ks,vl=xe.size,xe.size=Ws,Al=xe.normalized,xe.normalized=Ds,ml=xe.type,xe.type=_s,Hl=xe.offset,xe.offset=as,Tl=xe.stride,xe.stride=Es,yl=xe.divisor,xe.divisor=Mo,ae=h.call(this,ge,di,nr),ce=!1,Te=1,Ce=0,Ne=0,Oe=0,He=0,ct=null,xt=0,vt=!1,wt=5126,Pt=0,Jt=0,cr=0,Dt(ae)?(ce=!0,ct=Pe.createStream(34962,ae),wt=ct.dtype):(ct=Pe.getBuffer(ae),ct?wt=ct.dtype:"constant"in ae?(Te=2,typeof ae.constant=="number"?(Ce=ae.constant,Ne=Oe=He=0):(Ce=ae.constant.length>0?ae.constant[0]:0,Ne=ae.constant.length>1?ae.constant[1]:0,Oe=ae.constant.length>2?ae.constant[2]:0,He=ae.constant.length>3?ae.constant[3]:0)):(Dt(ae.buffer)?ct=Pe.createStream(34962,ae.buffer):ct=Pe.getBuffer(ae.buffer),wt="type"in ae?Er[ae.type]:ct.dtype,vt=!!ae.normalized,xt=ae.size|0,Pt=ae.offset|0,Jt=ae.stride|0,cr=ae.divisor|0)),Nr=Ae.state,Ae.state=Te,zi=Ae.x,Ae.x=Ce,Rn=Ae.y,Ae.y=Ne,fo=Ae.z,Ae.z=Oe,Xo=Ae.w,Ae.w=He,Bo=Ae.buffer,Ae.buffer=ct,fs=Ae.size,Ae.size=xt,cs=Ae.normalized,Ae.normalized=vt,Ns=Ae.type,Ae.type=wt,zl=Ae.offset,Ae.offset=Pt,Rs=Ae.stride,Ae.stride=Jt,Nl=Ae.divisor,Ae.divisor=cr,ul=l.call(this,ge,di,nr),cl=!1,vf=1,wf=0,_u=0,wu=0,ju=0,Au=null,ku=0,Af=!1,mf=5126,ef=0,Nf=0,oc=0,Dt(ul)?(cl=!0,Au=Pe.createStream(34962,ul),mf=Au.dtype):(Au=Pe.getBuffer(ul),Au?mf=Au.dtype:"constant"in ul?(vf=2,typeof ul.constant=="number"?(wf=ul.constant,_u=wu=ju=0):(wf=ul.constant.length>0?ul.constant[0]:0,_u=ul.constant.length>1?ul.constant[1]:0,wu=ul.constant.length>2?ul.constant[2]:0,ju=ul.constant.length>3?ul.constant[3]:0)):(Dt(ul.buffer)?Au=Pe.createStream(34962,ul.buffer):Au=Pe.getBuffer(ul.buffer),mf="type"in ul?Er[ul.type]:Au.dtype,Af=!!ul.normalized,ku=ul.size|0,ef=ul.offset|0,Nf=ul.stride|0,oc=ul.divisor|0)),R=se.state,se.state=vf,G=se.x,se.x=wf,ee=se.y,se.y=_u,he=se.z,se.z=wu,ve=se.w,se.w=ju,be=se.buffer,se.buffer=Au,je=se.size,se.size=ku,qe=se.normalized,se.normalized=Af,Je=se.type,se.type=mf,ht=se.offset,se.offset=ef,pt=se.stride,se.stride=Nf,Lt=se.divisor,se.divisor=oc,kt=p.call(this,ge,di,nr),Qt=!1,Sr=1,It=0,Yt=0,sr=0,Ar=0,br=null,Xt=0,_n=!1,ha=5126,Xa=0,yo=0,Wo=0,Dt(kt)?(Qt=!0,br=Pe.createStream(34962,kt),ha=br.dtype):(br=Pe.getBuffer(kt),br?ha=br.dtype:"constant"in kt?(Sr=2,typeof kt.constant=="number"?(It=kt.constant,Yt=sr=Ar=0):(It=kt.constant.length>0?kt.constant[0]:0,Yt=kt.constant.length>1?kt.constant[1]:0,sr=kt.constant.length>2?kt.constant[2]:0,Ar=kt.constant.length>3?kt.constant[3]:0)):(Dt(kt.buffer)?br=Pe.createStream(34962,kt.buffer):br=Pe.getBuffer(kt.buffer),ha="type"in kt?Er[kt.type]:br.dtype,_n=!!kt.normalized,Xt=kt.size|0,Xa=kt.offset|0,yo=kt.stride|0,Wo=kt.divisor|0)),Zo=pe.state,pe.state=Sr,Qs=pe.x,pe.x=It,rs=pe.y,pe.y=Yt,Us=pe.z,pe.z=sr,jl=pe.w,pe.w=Ar,qu=pe.buffer,pe.buffer=br,Ql=pe.size,pe.size=Xt,po=pe.normalized,pe.normalized=_n,el=pe.type,pe.type=ha,nl=pe.offset,pe.offset=Xa,Vl=pe.stride,pe.stride=yo,Cu=pe.divisor,pe.divisor=Wo,tf=Se.vert,Se.vert=fe,Tf=Se.frag,Se.frag=Re,Le.dirty=!0,Li(ge,di,nr),ge.viewportWidth=gt,ge.viewportHeight=bt,Fi[0]=lr,Fi[1]=Ct,Fi[2]=ur,Fi[3]=Rr,yt[0]=Br,yt[1]=Vr,yt[2]=gi,yt[3]=ui,Ze.blend_enable=ei,nt[0]=Gi,nt[1]=un,nt[2]=Tt,nt[3]=wi,Ze.depth_enable=kn,Gr[0]=$n,Gr[1]=$i,Gr[2]=en,Gr[3]=_r,Ze.scissor_enable=Zr,Ze.stencil_enable=fi,aa&&(r.cpuTime+=performance.now()-ln),dn&&Ue.destroyStream(Kn),De.elements=Ta,De.offset=Ai,De.count=Ti,De.primitive=ea,ut[re]=qn,ut[me]=pi,ut[ze]=Pa,ut[ke]=oi,ut[le]=Ui,ut[te]=Na,ut[Ee]=wn,ut[we]=ti,ut[oe]=Ja,ut[Y]=ka,vn&&Pe.destroyStream(Bi),ne.state=an,ne.x=ta,ne.y=qi,ne.z=On,ne.w=Nn,ne.buffer=ia,ne.size=Qr,ne.normalized=Di,ne.type=fn,ne.offset=Dn,ne.stride=Vn,ne.divisor=mn,Pi&&Pe.destroyStream(ji),ye.state=xn,ye.x=da,ye.y=Si,ye.z=Kr,ye.w=Gn,ye.buffer=to,ye.size=Jn,ye.normalized=ro,ye.type=mo,ye.offset=Oa,ye.stride=Ei,ye.divisor=co,Fa&&Pe.destroyStream(ki),V.state=Wn,V.x=Zi,V.y=sa,V.z=So,V.w=ya,V.buffer=Qn,V.size=Tn,V.normalized=Da,V.type=zn,V.offset=Ia,V.stride=Yi,V.divisor=In,la&&Pe.destroyStream(To),ue.state=Wa,ue.x=$a,ue.y=Fe,ue.z=Ve,ue.w=lt,ue.buffer=it,ue.size=mt,ue.normalized=Rt,ue.type=qt,ue.offset=Nt,ue.stride=ar,ue.divisor=Ir,Bt&&Pe.destroyStream(li),_e.state=ho,_e.x=Fo,_e.y=ls,_e.z=Io,_e.w=Ps,_e.buffer=xs,_e.size=us,_e.normalized=Vi,_e.type=io,_e.offset=ko,_e.stride=oo,_e.divisor=xo,so&&Pe.destroyStream(Ks),xe.state=Go,xe.x=qs,xe.y=Ts,xe.z=Dl,xe.w=_l,xe.buffer=wl,xe.size=vl,xe.normalized=Al,xe.type=ml,xe.offset=Hl,xe.stride=Tl,xe.divisor=yl,ce&&Pe.destroyStream(ct),Ae.state=Nr,Ae.x=zi,Ae.y=Rn,Ae.z=fo,Ae.w=Xo,Ae.buffer=Bo,Ae.size=fs,Ae.normalized=cs,Ae.type=Ns,Ae.offset=zl,Ae.stride=Rs,Ae.divisor=Nl,cl&&Pe.destroyStream(Au),se.state=R,se.x=G,se.y=ee,se.z=he,se.w=ve,se.buffer=be,se.size=je,se.normalized=qe,se.type=Je,se.offset=ht,se.stride=pt,se.divisor=Lt,Qt&&Pe.destroyStream(br),pe.state=Zo,pe.x=Qs,pe.y=rs,pe.z=Us,pe.w=jl,pe.buffer=qu,pe.size=Ql,pe.normalized=po,pe.type=el,pe.offset=nl,pe.stride=Vl,pe.divisor=Cu,Se.vert=tf,Se.frag=Tf,Le.dirty=!0},batch:function(di,Li){var nr,Kt,Me,Xe,$e,Qe,gt;if(nr=At.angle_instanced_arrays,Kt=_t.next,Kt!==_t.cur&&(Kt?Ge.bindFramebuffer(36160,Kt.framebuffer):Ge.bindFramebuffer(36160,null),_t.cur=Kt),Le.dirty){var bt,lr,Ct,ur,Rr,Br,Vr,gi,ui,ei,Gi,un,Tt,wi,kn,ii,Pr,Wi,na,yn,$n,$i,en,_r,Zr,fi,aa,ln,ca,Kn,dn,Ta,rn,Ai;bt=Ze.dither,bt!==Le.dither&&(bt?Ge.enable(3024):Ge.disable(3024),Le.dither=bt),lr=tr[0],Ct=tr[1],(lr!==Ye[0]||Ct!==Ye[1])&&(Ge.blendEquationSeparate(lr,Ct),Ye[0]=lr,Ye[1]=Ct),ur=Ze.depth_func,ur!==Le.depth_func&&(Ge.depthFunc(ur),Le.depth_func=ur),Rr=dt[0],Br=dt[1],(Rr!==rt[0]||Br!==rt[1])&&(Ge.depthRange(Rr,Br),rt[0]=Rr,rt[1]=Br),Vr=Ze.depth_mask,Vr!==Le.depth_mask&&(Ge.depthMask(Vr),Le.depth_mask=Vr),gi=ft[0],ui=ft[1],ei=ft[2],Gi=ft[3],(gi!==Ft[0]||ui!==Ft[1]||ei!==Ft[2]||Gi!==Ft[3])&&(Ge.colorMask(gi,ui,ei,Gi),Ft[0]=gi,Ft[1]=ui,Ft[2]=ei,Ft[3]=Gi),un=Ze.cull_enable,un!==Le.cull_enable&&(un?Ge.enable(2884):Ge.disable(2884),Le.cull_enable=un),Tt=Ze.cull_face,Tt!==Le.cull_face&&(Ge.cullFace(Tt),Le.cull_face=Tt),wi=Ze.frontFace,wi!==Le.frontFace&&(Ge.frontFace(wi),Le.frontFace=wi),kn=Ze.lineWidth,kn!==Le.lineWidth&&(Ge.lineWidth(kn),Le.lineWidth=kn),ii=Ze.polygonOffset_enable,ii!==Le.polygonOffset_enable&&(ii?Ge.enable(32823):Ge.disable(32823),Le.polygonOffset_enable=ii),Pr=Et[0],Wi=Et[1],(Pr!==er[0]||Wi!==er[1])&&(Ge.polygonOffset(Pr,Wi),er[0]=Pr,er[1]=Wi),na=Ze.sample_alpha,na!==Le.sample_alpha&&(na?Ge.enable(32926):Ge.disable(32926),Le.sample_alpha=na),yn=Ze.sample_enable,yn!==Le.sample_enable&&(yn?Ge.enable(32928):Ge.disable(32928),Le.sample_enable=yn),$n=xr[0],$i=xr[1],($n!==kr[0]||$i!==kr[1])&&(Ge.sampleCoverage($n,$i),kr[0]=$n,kr[1]=$i),en=Ze.stencil_mask,en!==Le.stencil_mask&&(Ge.stencilMask(en),Le.stencil_mask=en),_r=fr[0],Zr=fr[1],fi=fr[2],(_r!==Yr[0]||Zr!==Yr[1]||fi!==Yr[2])&&(Ge.stencilFunc(_r,Zr,fi),Yr[0]=_r,Yr[1]=Zr,Yr[2]=fi),aa=Or[0],ln=Or[1],ca=Or[2],Kn=Or[3],(aa!==ri[0]||ln!==ri[1]||ca!==ri[2]||Kn!==ri[3])&&(Ge.stencilOpSeparate(aa,ln,ca,Kn),ri[0]=aa,ri[1]=ln,ri[2]=ca,ri[3]=Kn),dn=Tr[0],Ta=Tr[1],rn=Tr[2],Ai=Tr[3],(dn!==Mr[0]||Ta!==Mr[1]||rn!==Mr[2]||Ai!==Mr[3])&&(Ge.stencilOpSeparate(dn,Ta,rn,Ai),Mr[0]=dn,Mr[1]=Ta,Mr[2]=rn,Mr[3]=Ai)}Ge.blendColor(0,0,0,1),Mt[0]=0,Mt[1]=0,Mt[2]=0,Mt[3]=1,We?Ge.enable(3042):Ge.disable(3042),Le.blend_enable=We,Ge.blendFuncSeparate(770,771,773,1),st[0]=770,st[1]=771,st[2]=773,st[3]=1,Ke?Ge.enable(2929):Ge.disable(2929),Le.depth_enable=Ke,tt?Ge.enable(3089):Ge.disable(3089),Le.scissor_enable=tt,at?Ge.enable(2960):Ge.disable(2960),Le.stencil_enable=at,Me=Le.profile,Me&&(Xe=performance.now(),r.count+=Li),Ge.useProgram(s.program),$e=At.angle_instanced_arrays;var nn;for(ot.setVAO(null),Ge.uniform1i(E.location,!1),Ge.uniform1i(D.location,F.bind()),nn=De.instances,Qe=0;Qe0?on.constant[0]:0,Yn=on.constant.length>1?on.constant[1]:0,Ja=on.constant.length>2?on.constant[2]:0,ja=on.constant.length>3?on.constant[3]:0)):(Dt(on.buffer)?ka=Pe.createStream(34962,on.buffer):ka=Pe.getBuffer(on.buffer),Va="type"in on?Er[on.type]:ka.dtype,vn=!!on.normalized,Ci=on.size|0,Hi=on.offset|0,zr=on.stride|0,ni=on.divisor|0)),bn=u.location,Bi=Ie[bn],Ra===1?(Bi.buffer||Ge.enableVertexAttribArray(bn),vi=Ci||4,(Bi.type!==Va||Bi.size!==vi||Bi.buffer!==ka||Bi.normalized!==vn||Bi.offset!==Hi||Bi.stride!==zr)&&(Ge.bindBuffer(34962,ka.buffer),Ge.vertexAttribPointer(bn,vi,Va,vn,zr,Hi),Bi.type=Va,Bi.size=vi,Bi.buffer=ka,Bi.normalized=vn,Bi.offset=Hi,Bi.stride=zr),Bi.divisor!==ni&&($e.vertexAttribDivisorANGLE(bn,ni),Bi.divisor=ni)):(Bi.buffer&&(Ge.disableVertexAttribArray(bn),Bi.buffer=null),(Bi.x!==ti||Bi.y!==Yn||Bi.z!==Ja||Bi.w!==ja)&&(Ge.vertexAttrib4f(bn,ti,Yn,Ja,ja),Bi.x=ti,Bi.y=Yn,Bi.z=Ja,Bi.w=ja)),mr=f.call(this,ge,gt,Qe),Mi=!1,Cn=1,jr=0,Xn=0,an=0,ta=0,qi=null,On=0,Nn=!1,ia=5126,Qr=0,Di=0,fn=0,Dt(mr)?(Mi=!0,qi=Pe.createStream(34962,mr),ia=qi.dtype):(qi=Pe.getBuffer(mr),qi?ia=qi.dtype:"constant"in mr?(Cn=2,typeof mr.constant=="number"?(jr=mr.constant,Xn=an=ta=0):(jr=mr.constant.length>0?mr.constant[0]:0,Xn=mr.constant.length>1?mr.constant[1]:0,an=mr.constant.length>2?mr.constant[2]:0,ta=mr.constant.length>3?mr.constant[3]:0)):(Dt(mr.buffer)?qi=Pe.createStream(34962,mr.buffer):qi=Pe.getBuffer(mr.buffer),ia="type"in mr?Er[mr.type]:qi.dtype,Nn=!!mr.normalized,On=mr.size|0,Qr=mr.offset|0,Di=mr.stride|0,fn=mr.divisor|0)),Dn=c.location,Vn=Ie[Dn],Cn===1?(Vn.buffer||Ge.enableVertexAttribArray(Dn),mn=On||1,(Vn.type!==ia||Vn.size!==mn||Vn.buffer!==qi||Vn.normalized!==Nn||Vn.offset!==Qr||Vn.stride!==Di)&&(Ge.bindBuffer(34962,qi.buffer),Ge.vertexAttribPointer(Dn,mn,ia,Nn,Di,Qr),Vn.type=ia,Vn.size=mn,Vn.buffer=qi,Vn.normalized=Nn,Vn.offset=Qr,Vn.stride=Di),Vn.divisor!==fn&&($e.vertexAttribDivisorANGLE(Dn,fn),Vn.divisor=fn)):(Vn.buffer&&(Ge.disableVertexAttribArray(Dn),Vn.buffer=null),(Vn.x!==jr||Vn.y!==Xn||Vn.z!==an||Vn.w!==ta)&&(Ge.vertexAttrib4f(Dn,jr,Xn,an,ta),Vn.x=jr,Vn.y=Xn,Vn.z=an,Vn.w=ta)),qr=h.call(this,ge,gt,Qe),Pi=!1,Ua=1,yi=0,Ma=0,Ba=0,Bn=0,ji=null,gn=0,jn=!1,Un=5126,Ii=0,gr=0,Ln=0,Dt(qr)?(Pi=!0,ji=Pe.createStream(34962,qr),Un=ji.dtype):(ji=Pe.getBuffer(qr),ji?Un=ji.dtype:"constant"in qr?(Ua=2,typeof qr.constant=="number"?(yi=qr.constant,Ma=Ba=Bn=0):(yi=qr.constant.length>0?qr.constant[0]:0,Ma=qr.constant.length>1?qr.constant[1]:0,Ba=qr.constant.length>2?qr.constant[2]:0,Bn=qr.constant.length>3?qr.constant[3]:0)):(Dt(qr.buffer)?ji=Pe.createStream(34962,qr.buffer):ji=Pe.getBuffer(qr.buffer),Un="type"in qr?Er[qr.type]:ji.dtype,jn=!!qr.normalized,gn=qr.size|0,Ii=qr.offset|0,gr=qr.stride|0,Ln=qr.divisor|0)),xn=d.location,da=Ie[xn],Ua===1?(da.buffer||Ge.enableVertexAttribArray(xn),Si=gn||4,(da.type!==Un||da.size!==Si||da.buffer!==ji||da.normalized!==jn||da.offset!==Ii||da.stride!==gr)&&(Ge.bindBuffer(34962,ji.buffer),Ge.vertexAttribPointer(xn,Si,Un,jn,gr,Ii),da.type=Un,da.size=Si,da.buffer=ji,da.normalized=jn,da.offset=Ii,da.stride=gr),da.divisor!==Ln&&($e.vertexAttribDivisorANGLE(xn,Ln),da.divisor=Ln)):(da.buffer&&(Ge.disableVertexAttribArray(xn),da.buffer=null),(da.x!==yi||da.y!==Ma||da.z!==Ba||da.w!==Bn)&&(Ge.vertexAttrib4f(xn,yi,Ma,Ba,Bn),da.x=yi,da.y=Ma,da.z=Ba,da.w=Bn)),Kr=p.call(this,ge,gt,Qe),Gn=!1,to=1,Jn=0,ro=0,mo=0,Oa=0,Ei=null,co=0,Pn=!1,Fa=5126,oa=0,Hn=0,va=0,Dt(Kr)?(Gn=!0,Ei=Pe.createStream(34962,Kr),Fa=Ei.dtype):(Ei=Pe.getBuffer(Kr),Ei?Fa=Ei.dtype:"constant"in Kr?(to=2,typeof Kr.constant=="number"?(Jn=Kr.constant,ro=mo=Oa=0):(Jn=Kr.constant.length>0?Kr.constant[0]:0,ro=Kr.constant.length>1?Kr.constant[1]:0,mo=Kr.constant.length>2?Kr.constant[2]:0,Oa=Kr.constant.length>3?Kr.constant[3]:0)):(Dt(Kr.buffer)?Ei=Pe.createStream(34962,Kr.buffer):Ei=Pe.getBuffer(Kr.buffer),Fa="type"in Kr?Er[Kr.type]:Ei.dtype,Pn=!!Kr.normalized,co=Kr.size|0,oa=Kr.offset|0,Hn=Kr.stride|0,va=Kr.divisor|0)),ma=v.location,Sa=Ie[ma],to===1?(Sa.buffer||Ge.enableVertexAttribArray(ma),ki=co||1,(Sa.type!==Fa||Sa.size!==ki||Sa.buffer!==Ei||Sa.normalized!==Pn||Sa.offset!==oa||Sa.stride!==Hn)&&(Ge.bindBuffer(34962,Ei.buffer),Ge.vertexAttribPointer(ma,ki,Fa,Pn,Hn,oa),Sa.type=Fa,Sa.size=ki,Sa.buffer=Ei,Sa.normalized=Pn,Sa.offset=oa,Sa.stride=Hn),Sa.divisor!==va&&($e.vertexAttribDivisorANGLE(ma,va),Sa.divisor=va)):(Sa.buffer&&(Ge.disableVertexAttribArray(ma),Sa.buffer=null),(Sa.x!==Jn||Sa.y!==ro||Sa.z!==mo||Sa.w!==Oa)&&(Ge.vertexAttrib4f(ma,Jn,ro,mo,Oa),Sa.x=Jn,Sa.y=ro,Sa.z=mo,Sa.w=Oa)),Wr=y.call(this,ge,gt,Qe),An=!1,Za=1,Ga=0,Ca=0,za=0,Wn=0,Zi=null,sa=0,So=!1,ya=5126,Qn=0,Tn=0,Da=0,Dt(Wr)?(An=!0,Zi=Pe.createStream(34962,Wr),ya=Zi.dtype):(Zi=Pe.getBuffer(Wr),Zi?ya=Zi.dtype:"constant"in Wr?(Za=2,typeof Wr.constant=="number"?(Ga=Wr.constant,Ca=za=Wn=0):(Ga=Wr.constant.length>0?Wr.constant[0]:0,Ca=Wr.constant.length>1?Wr.constant[1]:0,za=Wr.constant.length>2?Wr.constant[2]:0,Wn=Wr.constant.length>3?Wr.constant[3]:0)):(Dt(Wr.buffer)?Zi=Pe.createStream(34962,Wr.buffer):Zi=Pe.getBuffer(Wr.buffer),ya="type"in Wr?Er[Wr.type]:Zi.dtype,So=!!Wr.normalized,sa=Wr.size|0,Qn=Wr.offset|0,Tn=Wr.stride|0,Da=Wr.divisor|0)),zn=m.location,Ia=Ie[zn],Za===1?(Ia.buffer||Ge.enableVertexAttribArray(zn),Yi=sa||1,(Ia.type!==ya||Ia.size!==Yi||Ia.buffer!==Zi||Ia.normalized!==So||Ia.offset!==Qn||Ia.stride!==Tn)&&(Ge.bindBuffer(34962,Zi.buffer),Ge.vertexAttribPointer(zn,Yi,ya,So,Tn,Qn),Ia.type=ya,Ia.size=Yi,Ia.buffer=Zi,Ia.normalized=So,Ia.offset=Qn,Ia.stride=Tn),Ia.divisor!==Da&&($e.vertexAttribDivisorANGLE(zn,Da),Ia.divisor=Da)):(Ia.buffer&&(Ge.disableVertexAttribArray(zn),Ia.buffer=null),(Ia.x!==Ga||Ia.y!==Ca||Ia.z!==za||Ia.w!==Wn)&&(Ge.vertexAttrib4f(zn,Ga,Ca,za,Wn),Ia.x=Ga,Ia.y=Ca,Ia.z=za,Ia.w=Wn)),In=w.call(this,ge,gt,Qe),Oi=!1,la=1,ga=0,go=0,eo=0,Eo=0,Mn=null,To=0,Ya=!1,Co=5126,Ri=0,qa=0,Zn=0,Dt(In)?(Oi=!0,Mn=Pe.createStream(34962,In),Co=Mn.dtype):(Mn=Pe.getBuffer(In),Mn?Co=Mn.dtype:"constant"in In?(la=2,typeof In.constant=="number"?(ga=In.constant,go=eo=Eo=0):(ga=In.constant.length>0?In.constant[0]:0,go=In.constant.length>1?In.constant[1]:0,eo=In.constant.length>2?In.constant[2]:0,Eo=In.constant.length>3?In.constant[3]:0)):(Dt(In.buffer)?Mn=Pe.createStream(34962,In.buffer):Mn=Pe.getBuffer(In.buffer),Co="type"in In?Er[In.type]:Mn.dtype,Ya=!!In.normalized,To=In.size|0,Ri=In.offset|0,qa=In.stride|0,Zn=In.divisor|0)),Ha=_.location,Wa=Ie[Ha],la===1?(Wa.buffer||Ge.enableVertexAttribArray(Ha),$a=To||1,(Wa.type!==Co||Wa.size!==$a||Wa.buffer!==Mn||Wa.normalized!==Ya||Wa.offset!==Ri||Wa.stride!==qa)&&(Ge.bindBuffer(34962,Mn.buffer),Ge.vertexAttribPointer(Ha,$a,Co,Ya,qa,Ri),Wa.type=Co,Wa.size=$a,Wa.buffer=Mn,Wa.normalized=Ya,Wa.offset=Ri,Wa.stride=qa),Wa.divisor!==Zn&&($e.vertexAttribDivisorANGLE(Ha,Zn),Wa.divisor=Zn)):(Wa.buffer&&(Ge.disableVertexAttribArray(Ha),Wa.buffer=null),(Wa.x!==ga||Wa.y!==go||Wa.z!==eo||Wa.w!==Eo)&&(Ge.vertexAttrib4f(Ha,ga,go,eo,Eo),Wa.x=ga,Wa.y=go,Wa.z=eo,Wa.w=Eo)),Fe=b.call(this,ge,gt,Qe),Ve=!1,lt=1,it=0,mt=0,Rt=0,qt=0,Nt=null,ar=0,Ir=!1,$t=5126,Bt=0,rr=0,Dr=0,Dt(Fe)?(Ve=!0,Nt=Pe.createStream(34962,Fe),$t=Nt.dtype):(Nt=Pe.getBuffer(Fe),Nt?$t=Nt.dtype:"constant"in Fe?(lt=2,typeof Fe.constant=="number"?(it=Fe.constant,mt=Rt=qt=0):(it=Fe.constant.length>0?Fe.constant[0]:0,mt=Fe.constant.length>1?Fe.constant[1]:0,Rt=Fe.constant.length>2?Fe.constant[2]:0,qt=Fe.constant.length>3?Fe.constant[3]:0)):(Dt(Fe.buffer)?Nt=Pe.createStream(34962,Fe.buffer):Nt=Pe.getBuffer(Fe.buffer),$t="type"in Fe?Er[Fe.type]:Nt.dtype,Ir=!!Fe.normalized,ar=Fe.size|0,Bt=Fe.offset|0,rr=Fe.stride|0,Dr=Fe.divisor|0)),Ur=M.location,ai=Ie[Ur],lt===1?(ai.buffer||Ge.enableVertexAttribArray(Ur),ci=ar||1,(ai.type!==$t||ai.size!==ci||ai.buffer!==Nt||ai.normalized!==Ir||ai.offset!==Bt||ai.stride!==rr)&&(Ge.bindBuffer(34962,Nt.buffer),Ge.vertexAttribPointer(Ur,ci,$t,Ir,rr,Bt),ai.type=$t,ai.size=ci,ai.buffer=Nt,ai.normalized=Ir,ai.offset=Bt,ai.stride=rr),ai.divisor!==Dr&&($e.vertexAttribDivisorANGLE(Ur,Dr),ai.divisor=Dr)):(ai.buffer&&(Ge.disableVertexAttribArray(Ur),ai.buffer=null),(ai.x!==it||ai.y!==mt||ai.z!==Rt||ai.w!==qt)&&(Ge.vertexAttrib4f(Ur,it,mt,Rt,qt),ai.x=it,ai.y=mt,ai.z=Rt,ai.w=qt)),li=x.call(this,ge,gt,Qe),mi=!1,xi=1,Ni=0,ua=0,xa=0,ao=0,ho=null,Fo=0,ls=!1,Io=5126,Ps=0,xs=0,us=0,Dt(li)?(mi=!0,ho=Pe.createStream(34962,li),Io=ho.dtype):(ho=Pe.getBuffer(li),ho?Io=ho.dtype:"constant"in li?(xi=2,typeof li.constant=="number"?(Ni=li.constant,ua=xa=ao=0):(Ni=li.constant.length>0?li.constant[0]:0,ua=li.constant.length>1?li.constant[1]:0,xa=li.constant.length>2?li.constant[2]:0,ao=li.constant.length>3?li.constant[3]:0)):(Dt(li.buffer)?ho=Pe.createStream(34962,li.buffer):ho=Pe.getBuffer(li.buffer),Io="type"in li?Er[li.type]:ho.dtype,ls=!!li.normalized,Fo=li.size|0,Ps=li.offset|0,xs=li.stride|0,us=li.divisor|0)),Vi=T.location,io=Ie[Vi],xi===1?(io.buffer||Ge.enableVertexAttribArray(Vi),ko=Fo||1,(io.type!==Io||io.size!==ko||io.buffer!==ho||io.normalized!==ls||io.offset!==Ps||io.stride!==xs)&&(Ge.bindBuffer(34962,ho.buffer),Ge.vertexAttribPointer(Vi,ko,Io,ls,xs,Ps),io.type=Io,io.size=ko,io.buffer=ho,io.normalized=ls,io.offset=Ps,io.stride=xs),io.divisor!==us&&($e.vertexAttribDivisorANGLE(Vi,us),io.divisor=us)):(io.buffer&&(Ge.disableVertexAttribArray(Vi),io.buffer=null),(io.x!==Ni||io.y!==ua||io.z!==xa||io.w!==ao)&&(Ge.vertexAttrib4f(Vi,Ni,ua,xa,ao),io.x=Ni,io.y=ua,io.z=xa,io.w=ao)),oo=A.call(this,ge,gt,Qe),xo=!1,bo=1,so=0,Yo=0,Uo=0,es=0,jo=null,Qo=0,Ks=!1,Ws=5126,Ds=0,_s=0,as=0,Dt(oo)?(xo=!0,jo=Pe.createStream(34962,oo),Ws=jo.dtype):(jo=Pe.getBuffer(oo),jo?Ws=jo.dtype:"constant"in oo?(bo=2,typeof oo.constant=="number"?(so=oo.constant,Yo=Uo=es=0):(so=oo.constant.length>0?oo.constant[0]:0,Yo=oo.constant.length>1?oo.constant[1]:0,Uo=oo.constant.length>2?oo.constant[2]:0,es=oo.constant.length>3?oo.constant[3]:0)):(Dt(oo.buffer)?jo=Pe.createStream(34962,oo.buffer):jo=Pe.getBuffer(oo.buffer),Ws="type"in oo?Er[oo.type]:jo.dtype,Ks=!!oo.normalized,Qo=oo.size|0,Ds=oo.offset|0,_s=oo.stride|0,as=oo.divisor|0)),Es=g.location,Mo=Ie[Es],bo===1?(Mo.buffer||Ge.enableVertexAttribArray(Es),Go=Qo||1,(Mo.type!==Ws||Mo.size!==Go||Mo.buffer!==jo||Mo.normalized!==Ks||Mo.offset!==Ds||Mo.stride!==_s)&&(Ge.bindBuffer(34962,jo.buffer),Ge.vertexAttribPointer(Es,Go,Ws,Ks,_s,Ds),Mo.type=Ws,Mo.size=Go,Mo.buffer=jo,Mo.normalized=Ks,Mo.offset=Ds,Mo.stride=_s),Mo.divisor!==as&&($e.vertexAttribDivisorANGLE(Es,as),Mo.divisor=as)):(Mo.buffer&&(Ge.disableVertexAttribArray(Es),Mo.buffer=null),(Mo.x!==so||Mo.y!==Yo||Mo.z!==Uo||Mo.w!==es)&&(Ge.vertexAttrib4f(Es,so,Yo,Uo,es),Mo.x=so,Mo.y=Yo,Mo.z=Uo,Mo.w=es)),qs=gt.opacity,(!Qe||Ts!==qs)&&(Ts=qs,Ge.uniform1f(S.location,qs)),Dl=k.call(this,ge,gt,Qe),_l=Dl[0],vl=Dl[1],(!Qe||wl!==_l||Al!==vl)&&(wl=_l,Al=vl,Ge.uniform2f(C.location,_l,vl)),ml=ge.pixelRatio,(!Qe||Hl!==ml)&&(Hl=ml,Ge.uniform1f(P.location,ml)),Tl=gt.scale,yl=Tl[0],ce=Tl[1],(!Qe||ae!==yl||Te!==ce)&&(ae=yl,Te=ce,Ge.uniform2f(I.location,yl,ce)),Ce=gt.scaleFract,Ne=Ce[0],He=Ce[1],(!Qe||Oe!==Ne||ct!==He)&&(Oe=Ne,ct=He,Ge.uniform2f(L.location,Ne,He)),xt=gt.translate,vt=xt[0],Pt=xt[1],(!Qe||wt!==vt||Jt!==Pt)&&(wt=vt,Jt=Pt,Ge.uniform2f(z.location,vt,Pt)),cr=gt.translateFract,Nr=cr[0],Rn=cr[1],(!Qe||zi!==Nr||fo!==Rn)&&(zi=Nr,fo=Rn,Ge.uniform2f(B.location,Nr,Rn)),Xo=gt.elements,Bo=null,fs=Dt(Xo),fs?Bo=Ue.createStream(Xo):Bo=Ue.getElements(Xo),Bo&&Ge.bindBuffer(34963,Bo.buffer.buffer),cs=gt.offset,Ns=gt.count,Ns&&(nn>0?Bo?$e.drawElementsInstancedANGLE(0,Ns,Bo.type,cs<<(Bo.type-5121>>1),nn):$e.drawArraysInstancedANGLE(0,cs,Ns,nn):nn<0&&(Bo?Ge.drawElements(0,Ns,Bo.type,cs<<(Bo.type-5121>>1)):Ge.drawArrays(0,cs,Ns)),ge.viewportWidth=Pa,ge.viewportHeight=pr,wn&&Pe.destroyStream(ka),Mi&&Pe.destroyStream(qi),Pi&&Pe.destroyStream(ji),Gn&&Pe.destroyStream(Ei),An&&Pe.destroyStream(Zi),Oi&&Pe.destroyStream(Mn),Ve&&Pe.destroyStream(Nt),mi&&Pe.destroyStream(ho),xo&&Pe.destroyStream(jo),fs&&Ue.destroyStream(Bo))}F.unbind(),Le.dirty=!0,ot.setVAO(null),Me&&(r.cpuTime+=performance.now()-Xe)}}}});var zB=K((Jri,zZe)=>{"use strict";zZe.exports=function(t,r,i,n,a,o,s,l){"use strict";var u,f,c,h,d,p,v,y,m,w,_,b,M,x,T,A,g,E,S,C,k,D,F,P,I,L,z,B,O,W,X,Z,H,q,Q,N,U,J,j,$,ie,re,de,me,ze,ke,le,te,Ee;return u=t.gl,f=t.context,c=t.strings,h=t.next,d=t.current,p=t.draw,v=t.elements,y=t.buffer,m=t.shader,w=t.attributes,_=t.vao,b=t.uniforms,M=t.framebuffer,x=t.extensions,T=t.timer,A=t.isBufferArgs,g=h.blend_color,E=d.blend_color,S=h.blend_equation,C=d.blend_equation,k=h.blend_func,D=d.blend_func,F=h.depth_range,P=d.depth_range,I=h.colorMask,L=d.colorMask,z=h.polygonOffset_offset,B=d.polygonOffset_offset,O=h.sample_coverage,W=d.sample_coverage,X=h.stencil_func,Z=d.stencil_func,H=h.stencil_opFront,q=d.stencil_opFront,Q=h.stencil_opBack,N=d.stencil_opBack,U=h.scissor_box,J=d.scissor_box,j=h.viewport,$=d.viewport,ie={points:0,point:0,lines:1,line:1,triangles:4,triangle:4,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},re={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},de={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},me={add:32774,subtract:32778,"reverse subtract":32779},ze={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},ke={int8:5120,int16:5122,int32:5124,uint8:5121,uint16:5123,uint32:5125,float:5126,float32:5126},le={cw:2304,ccw:2305},te={},Ee={},{draw:function(we){var oe,Y,ne,ye,V,ue,_e,xe,Ae,se,pe,fe,Re,We,Ke,tt,at,Ge,ge;if(oe=x.angle_instanced_arrays,Y=we.framebuffer,ne=M.getFramebuffer(Y),ye=M.next,M.next=ne,V=f.framebufferWidth,f.framebufferWidth=ne?ne.width:f.drawingBufferWidth,ue=f.framebufferHeight,f.framebufferHeight=ne?ne.height:f.drawingBufferHeight,ne!==M.cur&&(ne?u.bindFramebuffer(36160,ne.framebuffer):u.bindFramebuffer(36160,null),M.cur=ne),d.dirty){var Be,Ze,Le,De,Ue,Pe,Se,Ie,ot,ut,_t,At,Gt,Dt,yt,Mt,tr,Ye,nt,st,dt,rt,ft,Ft,Et,er,xr,kr,fr,Yr,Or,ri,Tr,Mr,Gr,_i,Fi,wr,Cr,Ut,Wt,dr,Hr,Er,Fr,di;Be=h.dither,Be!==d.dither&&(Be?u.enable(3024):u.disable(3024),d.dither=Be),Ze=h.blend_enable,Ze!==d.blend_enable&&(Ze?u.enable(3042):u.disable(3042),d.blend_enable=Ze),Le=g[0],De=g[1],Ue=g[2],Pe=g[3],(Le!==E[0]||De!==E[1]||Ue!==E[2]||Pe!==E[3])&&(u.blendColor(Le,De,Ue,Pe),E[0]=Le,E[1]=De,E[2]=Ue,E[3]=Pe),Se=S[0],Ie=S[1],(Se!==C[0]||Ie!==C[1])&&(u.blendEquationSeparate(Se,Ie),C[0]=Se,C[1]=Ie),ot=k[0],ut=k[1],_t=k[2],At=k[3],(ot!==D[0]||ut!==D[1]||_t!==D[2]||At!==D[3])&&(u.blendFuncSeparate(ot,ut,_t,At),D[0]=ot,D[1]=ut,D[2]=_t,D[3]=At),Gt=h.depth_enable,Gt!==d.depth_enable&&(Gt?u.enable(2929):u.disable(2929),d.depth_enable=Gt),Dt=h.depth_func,Dt!==d.depth_func&&(u.depthFunc(Dt),d.depth_func=Dt),yt=F[0],Mt=F[1],(yt!==P[0]||Mt!==P[1])&&(u.depthRange(yt,Mt),P[0]=yt,P[1]=Mt),tr=h.depth_mask,tr!==d.depth_mask&&(u.depthMask(tr),d.depth_mask=tr),Ye=I[0],nt=I[1],st=I[2],dt=I[3],(Ye!==L[0]||nt!==L[1]||st!==L[2]||dt!==L[3])&&(u.colorMask(Ye,nt,st,dt),L[0]=Ye,L[1]=nt,L[2]=st,L[3]=dt),rt=h.cull_enable,rt!==d.cull_enable&&(rt?u.enable(2884):u.disable(2884),d.cull_enable=rt),ft=h.cull_face,ft!==d.cull_face&&(u.cullFace(ft),d.cull_face=ft),Ft=h.frontFace,Ft!==d.frontFace&&(u.frontFace(Ft),d.frontFace=Ft),Et=h.lineWidth,Et!==d.lineWidth&&(u.lineWidth(Et),d.lineWidth=Et),er=h.polygonOffset_enable,er!==d.polygonOffset_enable&&(er?u.enable(32823):u.disable(32823),d.polygonOffset_enable=er),xr=z[0],kr=z[1],(xr!==B[0]||kr!==B[1])&&(u.polygonOffset(xr,kr),B[0]=xr,B[1]=kr),fr=h.sample_alpha,fr!==d.sample_alpha&&(fr?u.enable(32926):u.disable(32926),d.sample_alpha=fr),Yr=h.sample_enable,Yr!==d.sample_enable&&(Yr?u.enable(32928):u.disable(32928),d.sample_enable=Yr),Or=O[0],ri=O[1],(Or!==W[0]||ri!==W[1])&&(u.sampleCoverage(Or,ri),W[0]=Or,W[1]=ri),Tr=h.stencil_enable,Tr!==d.stencil_enable&&(Tr?u.enable(2960):u.disable(2960),d.stencil_enable=Tr),Mr=h.stencil_mask,Mr!==d.stencil_mask&&(u.stencilMask(Mr),d.stencil_mask=Mr),Gr=X[0],_i=X[1],Fi=X[2],(Gr!==Z[0]||_i!==Z[1]||Fi!==Z[2])&&(u.stencilFunc(Gr,_i,Fi),Z[0]=Gr,Z[1]=_i,Z[2]=Fi),wr=H[0],Cr=H[1],Ut=H[2],Wt=H[3],(wr!==q[0]||Cr!==q[1]||Ut!==q[2]||Wt!==q[3])&&(u.stencilOpSeparate(wr,Cr,Ut,Wt),q[0]=wr,q[1]=Cr,q[2]=Ut,q[3]=Wt),dr=Q[0],Hr=Q[1],Er=Q[2],Fr=Q[3],(dr!==N[0]||Hr!==N[1]||Er!==N[2]||Fr!==N[3])&&(u.stencilOpSeparate(dr,Hr,Er,Fr),N[0]=dr,N[1]=Hr,N[2]=Er,N[3]=Fr),di=h.scissor_enable,di!==d.scissor_enable&&(di?u.enable(3089):u.disable(3089),d.scissor_enable=di)}_e=f.framebufferWidth,xe=f.framebufferHeight,Ae=f.viewportWidth,f.viewportWidth=_e,se=f.viewportHeight,f.viewportHeight=xe,u.viewport(0,0,_e,xe),$[0]=0,$[1]=0,$[2]=_e,$[3]=xe,pe=f.framebufferWidth,fe=f.framebufferHeight,u.scissor(0,0,pe,fe),J[0]=0,J[1]=0,J[2]=pe,J[3]=fe,Re=d.profile,Re&&(We=performance.now(),r.count++),Ke=m.frag,tt=m.vert,at=m.program(tt,Ke),u.useProgram(at.program),_.setVAO(null),Ge=at.id,ge=te[Ge],ge?ge.call(this,we):(ge=te[Ge]=i(at),ge.call(this,we)),d.dirty=!0,_.setVAO(null),M.next=ye,f.framebufferWidth=V,f.framebufferHeight=ue,f.viewportWidth=Ae,f.viewportHeight=se,Re&&(r.cpuTime+=performance.now()-We)},scope:function(we,oe,Y){var ne,ye,V,ue,_e,xe,Ae,se,pe,fe,Re,We,Ke,tt,at,Ge,ge,Be,Ze,Le,De;ne=we.framebuffer,ye=M.getFramebuffer(ne),V=M.next,M.next=ye,ue=f.framebufferWidth,f.framebufferWidth=ye?ye.width:f.drawingBufferWidth,_e=f.framebufferHeight,f.framebufferHeight=ye?ye.height:f.drawingBufferHeight,xe=f.framebufferWidth,Ae=f.framebufferHeight,se=f.viewportWidth,f.viewportWidth=xe,pe=f.viewportHeight,f.viewportHeight=Ae,fe=j[0],j[0]=n,Re=j[1],j[1]=a,We=j[2],j[2]=xe,Ke=j[3],j[3]=Ae,tt=f.framebufferWidth,at=f.framebufferHeight,Ge=U[0],U[0]=o,ge=U[1],U[1]=s,Be=U[2],U[2]=tt,Ze=U[3],U[3]=at,Le=d.profile,Le&&(De=performance.now(),r.count++),d.dirty=!0,oe(f,we,Y),M.next=V,f.framebufferWidth=ue,f.framebufferHeight=_e,f.viewportWidth=se,f.viewportHeight=pe,j[0]=fe,j[1]=Re,j[2]=We,j[3]=Ke,U[0]=Ge,U[1]=ge,U[2]=Be,U[3]=Ze,Le&&(r.cpuTime+=performance.now()-De),d.dirty=!0},batch:function(we,oe){var Y,ne,ye,V,ue,_e,xe,Ae;if(Y=x.angle_instanced_arrays,d.dirty){var se,pe,fe,Re,We,Ke,tt,at,Ge,ge,Be,Ze,Le,De,Ue,Pe,Se,Ie,ot,ut,_t,At,Gt,Dt,yt,Mt,tr,Ye,nt,st,dt,rt,ft,Ft,Et,er,xr,kr,fr,Yr,Or,ri,Tr,Mr,Gr,_i;se=h.dither,se!==d.dither&&(se?u.enable(3024):u.disable(3024),d.dither=se),pe=h.blend_enable,pe!==d.blend_enable&&(pe?u.enable(3042):u.disable(3042),d.blend_enable=pe),fe=g[0],Re=g[1],We=g[2],Ke=g[3],(fe!==E[0]||Re!==E[1]||We!==E[2]||Ke!==E[3])&&(u.blendColor(fe,Re,We,Ke),E[0]=fe,E[1]=Re,E[2]=We,E[3]=Ke),tt=S[0],at=S[1],(tt!==C[0]||at!==C[1])&&(u.blendEquationSeparate(tt,at),C[0]=tt,C[1]=at),Ge=k[0],ge=k[1],Be=k[2],Ze=k[3],(Ge!==D[0]||ge!==D[1]||Be!==D[2]||Ze!==D[3])&&(u.blendFuncSeparate(Ge,ge,Be,Ze),D[0]=Ge,D[1]=ge,D[2]=Be,D[3]=Ze),Le=h.depth_enable,Le!==d.depth_enable&&(Le?u.enable(2929):u.disable(2929),d.depth_enable=Le),De=h.depth_func,De!==d.depth_func&&(u.depthFunc(De),d.depth_func=De),Ue=F[0],Pe=F[1],(Ue!==P[0]||Pe!==P[1])&&(u.depthRange(Ue,Pe),P[0]=Ue,P[1]=Pe),Se=h.depth_mask,Se!==d.depth_mask&&(u.depthMask(Se),d.depth_mask=Se),Ie=I[0],ot=I[1],ut=I[2],_t=I[3],(Ie!==L[0]||ot!==L[1]||ut!==L[2]||_t!==L[3])&&(u.colorMask(Ie,ot,ut,_t),L[0]=Ie,L[1]=ot,L[2]=ut,L[3]=_t),At=h.cull_enable,At!==d.cull_enable&&(At?u.enable(2884):u.disable(2884),d.cull_enable=At),Gt=h.cull_face,Gt!==d.cull_face&&(u.cullFace(Gt),d.cull_face=Gt),Dt=h.frontFace,Dt!==d.frontFace&&(u.frontFace(Dt),d.frontFace=Dt),yt=h.lineWidth,yt!==d.lineWidth&&(u.lineWidth(yt),d.lineWidth=yt),Mt=h.polygonOffset_enable,Mt!==d.polygonOffset_enable&&(Mt?u.enable(32823):u.disable(32823),d.polygonOffset_enable=Mt),tr=z[0],Ye=z[1],(tr!==B[0]||Ye!==B[1])&&(u.polygonOffset(tr,Ye),B[0]=tr,B[1]=Ye),nt=h.sample_alpha,nt!==d.sample_alpha&&(nt?u.enable(32926):u.disable(32926),d.sample_alpha=nt),st=h.sample_enable,st!==d.sample_enable&&(st?u.enable(32928):u.disable(32928),d.sample_enable=st),dt=O[0],rt=O[1],(dt!==W[0]||rt!==W[1])&&(u.sampleCoverage(dt,rt),W[0]=dt,W[1]=rt),ft=h.stencil_enable,ft!==d.stencil_enable&&(ft?u.enable(2960):u.disable(2960),d.stencil_enable=ft),Ft=h.stencil_mask,Ft!==d.stencil_mask&&(u.stencilMask(Ft),d.stencil_mask=Ft),Et=X[0],er=X[1],xr=X[2],(Et!==Z[0]||er!==Z[1]||xr!==Z[2])&&(u.stencilFunc(Et,er,xr),Z[0]=Et,Z[1]=er,Z[2]=xr),kr=H[0],fr=H[1],Yr=H[2],Or=H[3],(kr!==q[0]||fr!==q[1]||Yr!==q[2]||Or!==q[3])&&(u.stencilOpSeparate(kr,fr,Yr,Or),q[0]=kr,q[1]=fr,q[2]=Yr,q[3]=Or),ri=Q[0],Tr=Q[1],Mr=Q[2],Gr=Q[3],(ri!==N[0]||Tr!==N[1]||Mr!==N[2]||Gr!==N[3])&&(u.stencilOpSeparate(ri,Tr,Mr,Gr),N[0]=ri,N[1]=Tr,N[2]=Mr,N[3]=Gr),_i=h.scissor_enable,_i!==d.scissor_enable&&(_i?u.enable(3089):u.disable(3089),d.scissor_enable=_i)}ne=d.profile,ne&&(ye=performance.now(),r.count+=oe),V=m.frag,ue=m.vert,_e=m.program(ue,V),u.useProgram(_e.program),_.setVAO(null),xe=_e.id,Ae=Ee[xe],Ae?Ae.call(this,we,oe):(Ae=Ee[xe]=l(_e),Ae.call(this,we,oe)),d.dirty=!0,_.setVAO(null),ne&&(r.cpuTime+=performance.now()-ye)}}}});var IB=K((Qri,IZe)=>{"use strict";IZe.exports=function(t,r,i,n,a,o,s,l,u,f,c,h,d,p,v,y,m,w,_,b,M,x,T,A,g,E,S,C,k,D,F,P,I,L,z,B,O,W,X,Z,H,q,Q,N,U,J,j,$,ie,re,de,me,ze,ke,le,te,Ee,we,oe,Y,ne,ye,V,ue,_e,xe,Ae,se,pe,fe,Re,We,Ke,tt,at,Ge,ge){"use strict";var Be,Ze,Le,De,Ue,Pe,Se,Ie,ot,ut,_t,At,Gt,Dt,yt,Mt,tr,Ye,nt,st,dt,rt,ft,Ft,Et,er,xr,kr,fr,Yr,Or,ri,Tr,Mr,Gr,_i,Fi,wr,Cr,Ut,Wt,dr,Hr,Er,Fr,di,Li,nr,Kt,Me,Xe,$e,Qe;return Be=t.gl,Ze=t.context,Le=t.strings,De=t.next,Ue=t.current,Pe=t.draw,Se=t.elements,Ie=t.buffer,ot=t.shader,ut=t.attributes,_t=t.vao,At=t.uniforms,Gt=t.framebuffer,Dt=t.extensions,yt=t.timer,Mt=t.isBufferArgs,tr=De.blend_color,Ye=Ue.blend_color,nt=De.blend_equation,st=Ue.blend_equation,dt=De.blend_func,rt=Ue.blend_func,ft=De.depth_range,Ft=Ue.depth_range,Et=De.colorMask,er=Ue.colorMask,xr=De.polygonOffset_offset,kr=Ue.polygonOffset_offset,fr=De.sample_coverage,Yr=Ue.sample_coverage,Or=De.stencil_func,ri=Ue.stencil_func,Tr=De.stencil_opFront,Mr=Ue.stencil_opFront,Gr=De.stencil_opBack,_i=Ue.stencil_opBack,Fi=De.scissor_box,wr=Ue.scissor_box,Cr=De.viewport,Ut=Ue.viewport,Wt={points:0,point:0,lines:1,line:1,triangles:4,triangle:4,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},dr={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},Hr={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},Er={add:32774,subtract:32778,"reverse subtract":32779},Fr={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},di={int8:5120,int16:5122,int32:5124,uint8:5121,uint16:5123,uint32:5125,float:5126,float32:5126},Li={cw:2304,ccw:2305},nr={},nr.stride=4,nr.offset=0,nr.divisor=1,Kt={},Kt.stride=4,Kt.offset=4,Kt.divisor=1,Me={},Me.stride=8,Me.offset=0,Me.divisor=1,Xe={},Xe.stride=8,Xe.offset=8,Xe.divisor=1,$e={},$e.stride=8,$e.offset=16,$e.divisor=1,Qe={},Qe.stride=8,Qe.offset=24,Qe.divisor=1,{draw:function(gt){var bt,lr,Ct,ur,Rr,Br,Vr,gi,ui,ei,Gi,un,Tt,wi,kn,ii,Pr,Wi,na,yn,$n,$i,en,_r,Zr,fi,aa,ln,ca,Kn,dn,Ta,rn,Ai,nn,Ti,ea,qn,pi,Fn,Pa,pr,oi,Ki,Ui,pa,Na,on,wn,Ra,ti,Yn,Ja,ja,ka,Ci,vn,Va,Hi,zr,ni,bn,Bi,vi,mr,Mi,Cn,jr,Xn,an,ta,qi,On,Nn,ia,Qr,Di,fn,Dn,Vn,mn,qr,Pi,Ua,yi,Ma,Ba,Bn,ji,gn,jn,Un,Ii,gr,Ln,xn,da,Si,Kr,Gn,to,Jn,ro,mo,Oa,Ei,co,Pn,Fa,oa,Hn,va,ma,Sa,ki,Wr,An,Za,Ga,Ca,za,Wn,Zi,sa,So,ya,Qn,Tn,Da,zn,Ia,Yi,In,Oi,la,ga,go,eo,Eo,Mn,To,Ya,Co,Ri,qa;if(bt=Dt.angle_instanced_arrays,lr=Gt.next,lr!==Gt.cur&&(lr?Be.bindFramebuffer(36160,lr.framebuffer):Be.bindFramebuffer(36160,null),Gt.cur=lr),Ue.dirty){var Zn,Ha,Wa,$a,Fe,Ve,lt,it,mt,Rt,qt,Nt,ar,Ir,$t,Bt,rr,Dr,Ur,ai,ci,li,mi,xi,Ni,ua,xa,ao,ho,Fo;Zn=De.dither,Zn!==Ue.dither&&(Zn?Be.enable(3024):Be.disable(3024),Ue.dither=Zn),Ha=De.depth_func,Ha!==Ue.depth_func&&(Be.depthFunc(Ha),Ue.depth_func=Ha),Wa=ft[0],$a=ft[1],(Wa!==Ft[0]||$a!==Ft[1])&&(Be.depthRange(Wa,$a),Ft[0]=Wa,Ft[1]=$a),Fe=De.depth_mask,Fe!==Ue.depth_mask&&(Be.depthMask(Fe),Ue.depth_mask=Fe),Ve=Et[0],lt=Et[1],it=Et[2],mt=Et[3],(Ve!==er[0]||lt!==er[1]||it!==er[2]||mt!==er[3])&&(Be.colorMask(Ve,lt,it,mt),er[0]=Ve,er[1]=lt,er[2]=it,er[3]=mt),Rt=De.frontFace,Rt!==Ue.frontFace&&(Be.frontFace(Rt),Ue.frontFace=Rt),qt=De.lineWidth,qt!==Ue.lineWidth&&(Be.lineWidth(qt),Ue.lineWidth=qt),Nt=De.polygonOffset_enable,Nt!==Ue.polygonOffset_enable&&(Nt?Be.enable(32823):Be.disable(32823),Ue.polygonOffset_enable=Nt),ar=xr[0],Ir=xr[1],(ar!==kr[0]||Ir!==kr[1])&&(Be.polygonOffset(ar,Ir),kr[0]=ar,kr[1]=Ir),$t=De.sample_alpha,$t!==Ue.sample_alpha&&($t?Be.enable(32926):Be.disable(32926),Ue.sample_alpha=$t),Bt=De.sample_enable,Bt!==Ue.sample_enable&&(Bt?Be.enable(32928):Be.disable(32928),Ue.sample_enable=Bt),rr=fr[0],Dr=fr[1],(rr!==Yr[0]||Dr!==Yr[1])&&(Be.sampleCoverage(rr,Dr),Yr[0]=rr,Yr[1]=Dr),Ur=De.stencil_mask,Ur!==Ue.stencil_mask&&(Be.stencilMask(Ur),Ue.stencil_mask=Ur),ai=Or[0],ci=Or[1],li=Or[2],(ai!==ri[0]||ci!==ri[1]||li!==ri[2])&&(Be.stencilFunc(ai,ci,li),ri[0]=ai,ri[1]=ci,ri[2]=li),mi=Tr[0],xi=Tr[1],Ni=Tr[2],ua=Tr[3],(mi!==Mr[0]||xi!==Mr[1]||Ni!==Mr[2]||ua!==Mr[3])&&(Be.stencilOpSeparate(mi,xi,Ni,ua),Mr[0]=mi,Mr[1]=xi,Mr[2]=Ni,Mr[3]=ua),xa=Gr[0],ao=Gr[1],ho=Gr[2],Fo=Gr[3],(xa!==_i[0]||ao!==_i[1]||ho!==_i[2]||Fo!==_i[3])&&(Be.stencilOpSeparate(xa,ao,ho,Fo),_i[0]=xa,_i[1]=ao,_i[2]=ho,_i[3]=Fo)}Ct=gt.viewport,ur=Ct.x|0,Rr=Ct.y|0,Br="width"in Ct?Ct.width|0:Ze.framebufferWidth-ur,Vr="height"in Ct?Ct.height|0:Ze.framebufferHeight-Rr,gi=Ze.viewportWidth,Ze.viewportWidth=Br,ui=Ze.viewportHeight,Ze.viewportHeight=Vr,Be.viewport(ur,Rr,Br,Vr),Ut[0]=ur,Ut[1]=Rr,Ut[2]=Br,Ut[3]=Vr,Be.blendColor(0,0,0,0),Ye[0]=0,Ye[1]=0,Ye[2]=0,Ye[3]=0,i?Be.enable(3042):Be.disable(3042),Ue.blend_enable=i,Be.blendEquationSeparate(32774,32774),st[0]=32774,st[1]=32774,Be.blendFuncSeparate(770,771,773,1),rt[0]=770,rt[1]=771,rt[2]=773,rt[3]=1,n?Be.enable(2884):Be.disable(2884),Ue.cull_enable=n,Be.cullFace(a),Ue.cull_face=a,ei=o.call(this,Ze,gt,0),ei?Be.enable(2929):Be.disable(2929),Ue.depth_enable=ei,Gi=gt.viewport,un=Gi.x|0,Tt=Gi.y|0,wi="width"in Gi?Gi.width|0:Ze.framebufferWidth-un,kn="height"in Gi?Gi.height|0:Ze.framebufferHeight-Tt,Be.scissor(un,Tt,wi,kn),wr[0]=un,wr[1]=Tt,wr[2]=wi,wr[3]=kn,s?Be.enable(3089):Be.disable(3089),Ue.scissor_enable=s,l?Be.enable(2960):Be.disable(2960),Ue.stencil_enable=l,ii=Ue.profile,ii&&(Pr=performance.now(),r.count++),Be.useProgram(u.program),Wi=Dt.angle_instanced_arrays,_t.setVAO(null),na=gt.colorBuffer,nr.buffer=na,yn=!1,$n=1,$i=0,en=0,_r=0,Zr=0,fi=null,aa=0,ln=!1,ca=5126,Kn=0,dn=0,Ta=0,Mt(nr)?(yn=!0,fi=Ie.createStream(34962,nr),ca=fi.dtype):(fi=Ie.getBuffer(nr),fi?ca=fi.dtype:"constant"in nr?($n=2,typeof nr.constant=="number"?($i=nr.constant,en=_r=Zr=0):($i=nr.constant.length>0?nr.constant[0]:0,en=nr.constant.length>1?nr.constant[1]:0,_r=nr.constant.length>2?nr.constant[2]:0,Zr=nr.constant.length>3?nr.constant[3]:0)):(Mt(nr.buffer)?fi=Ie.createStream(34962,nr.buffer):fi=Ie.getBuffer(nr.buffer),ca="type"in nr?di[nr.type]:fi.dtype,ln=!!nr.normalized,aa=nr.size|0,Kn=nr.offset|0,dn=nr.stride|0,Ta=nr.divisor|0)),rn=f.location,Ai=ut[rn],$n===1?(Ai.buffer||Be.enableVertexAttribArray(rn),nn=aa||4,(Ai.type!==ca||Ai.size!==nn||Ai.buffer!==fi||Ai.normalized!==ln||Ai.offset!==Kn||Ai.stride!==dn)&&(Be.bindBuffer(34962,fi.buffer),Be.vertexAttribPointer(rn,nn,ca,ln,dn,Kn),Ai.type=ca,Ai.size=nn,Ai.buffer=fi,Ai.normalized=ln,Ai.offset=Kn,Ai.stride=dn),Ai.divisor!==Ta&&(Wi.vertexAttribDivisorANGLE(rn,Ta),Ai.divisor=Ta)):(Ai.buffer&&(Be.disableVertexAttribArray(rn),Ai.buffer=null),(Ai.x!==$i||Ai.y!==en||Ai.z!==_r||Ai.w!==Zr)&&(Be.vertexAttrib4f(rn,$i,en,_r,Zr),Ai.x=$i,Ai.y=en,Ai.z=_r,Ai.w=Zr)),Ti=gt.positionBuffer,Xe.buffer=Ti,ea=!1,qn=1,pi=0,Fn=0,Pa=0,pr=0,oi=null,Ki=0,Ui=!1,pa=5126,Na=0,on=0,wn=0,Mt(Xe)?(ea=!0,oi=Ie.createStream(34962,Xe),pa=oi.dtype):(oi=Ie.getBuffer(Xe),oi?pa=oi.dtype:"constant"in Xe?(qn=2,typeof Xe.constant=="number"?(pi=Xe.constant,Fn=Pa=pr=0):(pi=Xe.constant.length>0?Xe.constant[0]:0,Fn=Xe.constant.length>1?Xe.constant[1]:0,Pa=Xe.constant.length>2?Xe.constant[2]:0,pr=Xe.constant.length>3?Xe.constant[3]:0)):(Mt(Xe.buffer)?oi=Ie.createStream(34962,Xe.buffer):oi=Ie.getBuffer(Xe.buffer),pa="type"in Xe?di[Xe.type]:oi.dtype,Ui=!!Xe.normalized,Ki=Xe.size|0,Na=Xe.offset|0,on=Xe.stride|0,wn=Xe.divisor|0)),Ra=c.location,ti=ut[Ra],qn===1?(ti.buffer||Be.enableVertexAttribArray(Ra),Yn=Ki||2,(ti.type!==pa||ti.size!==Yn||ti.buffer!==oi||ti.normalized!==Ui||ti.offset!==Na||ti.stride!==on)&&(Be.bindBuffer(34962,oi.buffer),Be.vertexAttribPointer(Ra,Yn,pa,Ui,on,Na),ti.type=pa,ti.size=Yn,ti.buffer=oi,ti.normalized=Ui,ti.offset=Na,ti.stride=on),ti.divisor!==wn&&(Wi.vertexAttribDivisorANGLE(Ra,wn),ti.divisor=wn)):(ti.buffer&&(Be.disableVertexAttribArray(Ra),ti.buffer=null),(ti.x!==pi||ti.y!==Fn||ti.z!==Pa||ti.w!==pr)&&(Be.vertexAttrib4f(Ra,pi,Fn,Pa,pr),ti.x=pi,ti.y=Fn,ti.z=Pa,ti.w=pr)),Ja=gt.colorBuffer,Kt.buffer=Ja,ja=!1,ka=1,Ci=0,vn=0,Va=0,Hi=0,zr=null,ni=0,bn=!1,Bi=5126,vi=0,mr=0,Mi=0,Mt(Kt)?(ja=!0,zr=Ie.createStream(34962,Kt),Bi=zr.dtype):(zr=Ie.getBuffer(Kt),zr?Bi=zr.dtype:"constant"in Kt?(ka=2,typeof Kt.constant=="number"?(Ci=Kt.constant,vn=Va=Hi=0):(Ci=Kt.constant.length>0?Kt.constant[0]:0,vn=Kt.constant.length>1?Kt.constant[1]:0,Va=Kt.constant.length>2?Kt.constant[2]:0,Hi=Kt.constant.length>3?Kt.constant[3]:0)):(Mt(Kt.buffer)?zr=Ie.createStream(34962,Kt.buffer):zr=Ie.getBuffer(Kt.buffer),Bi="type"in Kt?di[Kt.type]:zr.dtype,bn=!!Kt.normalized,ni=Kt.size|0,vi=Kt.offset|0,mr=Kt.stride|0,Mi=Kt.divisor|0)),Cn=h.location,jr=ut[Cn],ka===1?(jr.buffer||Be.enableVertexAttribArray(Cn),Xn=ni||4,(jr.type!==Bi||jr.size!==Xn||jr.buffer!==zr||jr.normalized!==bn||jr.offset!==vi||jr.stride!==mr)&&(Be.bindBuffer(34962,zr.buffer),Be.vertexAttribPointer(Cn,Xn,Bi,bn,mr,vi),jr.type=Bi,jr.size=Xn,jr.buffer=zr,jr.normalized=bn,jr.offset=vi,jr.stride=mr),jr.divisor!==Mi&&(Wi.vertexAttribDivisorANGLE(Cn,Mi),jr.divisor=Mi)):(jr.buffer&&(Be.disableVertexAttribArray(Cn),jr.buffer=null),(jr.x!==Ci||jr.y!==vn||jr.z!==Va||jr.w!==Hi)&&(Be.vertexAttrib4f(Cn,Ci,vn,Va,Hi),jr.x=Ci,jr.y=vn,jr.z=Va,jr.w=Hi)),an=gt.positionBuffer,$e.buffer=an,ta=!1,qi=1,On=0,Nn=0,ia=0,Qr=0,Di=null,fn=0,Dn=!1,Vn=5126,mn=0,qr=0,Pi=0,Mt($e)?(ta=!0,Di=Ie.createStream(34962,$e),Vn=Di.dtype):(Di=Ie.getBuffer($e),Di?Vn=Di.dtype:"constant"in $e?(qi=2,typeof $e.constant=="number"?(On=$e.constant,Nn=ia=Qr=0):(On=$e.constant.length>0?$e.constant[0]:0,Nn=$e.constant.length>1?$e.constant[1]:0,ia=$e.constant.length>2?$e.constant[2]:0,Qr=$e.constant.length>3?$e.constant[3]:0)):(Mt($e.buffer)?Di=Ie.createStream(34962,$e.buffer):Di=Ie.getBuffer($e.buffer),Vn="type"in $e?di[$e.type]:Di.dtype,Dn=!!$e.normalized,fn=$e.size|0,mn=$e.offset|0,qr=$e.stride|0,Pi=$e.divisor|0)),Ua=d.location,yi=ut[Ua],qi===1?(yi.buffer||Be.enableVertexAttribArray(Ua),Ma=fn||2,(yi.type!==Vn||yi.size!==Ma||yi.buffer!==Di||yi.normalized!==Dn||yi.offset!==mn||yi.stride!==qr)&&(Be.bindBuffer(34962,Di.buffer),Be.vertexAttribPointer(Ua,Ma,Vn,Dn,qr,mn),yi.type=Vn,yi.size=Ma,yi.buffer=Di,yi.normalized=Dn,yi.offset=mn,yi.stride=qr),yi.divisor!==Pi&&(Wi.vertexAttribDivisorANGLE(Ua,Pi),yi.divisor=Pi)):(yi.buffer&&(Be.disableVertexAttribArray(Ua),yi.buffer=null),(yi.x!==On||yi.y!==Nn||yi.z!==ia||yi.w!==Qr)&&(Be.vertexAttrib4f(Ua,On,Nn,ia,Qr),yi.x=On,yi.y=Nn,yi.z=ia,yi.w=Qr)),Ba=v.location,Bn=ut[Ba],Bn.buffer||Be.enableVertexAttribArray(Ba),(Bn.type!==5126||Bn.size!==1||Bn.buffer!==p||Bn.normalized!==!1||Bn.offset!==0||Bn.stride!==8)&&(Be.bindBuffer(34962,p.buffer),Be.vertexAttribPointer(Ba,1,5126,!1,8,0),Bn.type=5126,Bn.size=1,Bn.buffer=p,Bn.normalized=!1,Bn.offset=0,Bn.stride=8),Bn.divisor!==0&&(Wi.vertexAttribDivisorANGLE(Ba,0),Bn.divisor=0),ji=y.location,gn=ut[ji],gn.buffer||Be.enableVertexAttribArray(ji),(gn.type!==5126||gn.size!==1||gn.buffer!==p||gn.normalized!==!1||gn.offset!==4||gn.stride!==8)&&(Be.bindBuffer(34962,p.buffer),Be.vertexAttribPointer(ji,1,5126,!1,8,4),gn.type=5126,gn.size=1,gn.buffer=p,gn.normalized=!1,gn.offset=4,gn.stride=8),gn.divisor!==0&&(Wi.vertexAttribDivisorANGLE(ji,0),gn.divisor=0),jn=gt.positionBuffer,Qe.buffer=jn,Un=!1,Ii=1,gr=0,Ln=0,xn=0,da=0,Si=null,Kr=0,Gn=!1,to=5126,Jn=0,ro=0,mo=0,Mt(Qe)?(Un=!0,Si=Ie.createStream(34962,Qe),to=Si.dtype):(Si=Ie.getBuffer(Qe),Si?to=Si.dtype:"constant"in Qe?(Ii=2,typeof Qe.constant=="number"?(gr=Qe.constant,Ln=xn=da=0):(gr=Qe.constant.length>0?Qe.constant[0]:0,Ln=Qe.constant.length>1?Qe.constant[1]:0,xn=Qe.constant.length>2?Qe.constant[2]:0,da=Qe.constant.length>3?Qe.constant[3]:0)):(Mt(Qe.buffer)?Si=Ie.createStream(34962,Qe.buffer):Si=Ie.getBuffer(Qe.buffer),to="type"in Qe?di[Qe.type]:Si.dtype,Gn=!!Qe.normalized,Kr=Qe.size|0,Jn=Qe.offset|0,ro=Qe.stride|0,mo=Qe.divisor|0)),Oa=m.location,Ei=ut[Oa],Ii===1?(Ei.buffer||Be.enableVertexAttribArray(Oa),co=Kr||2,(Ei.type!==to||Ei.size!==co||Ei.buffer!==Si||Ei.normalized!==Gn||Ei.offset!==Jn||Ei.stride!==ro)&&(Be.bindBuffer(34962,Si.buffer),Be.vertexAttribPointer(Oa,co,to,Gn,ro,Jn),Ei.type=to,Ei.size=co,Ei.buffer=Si,Ei.normalized=Gn,Ei.offset=Jn,Ei.stride=ro),Ei.divisor!==mo&&(Wi.vertexAttribDivisorANGLE(Oa,mo),Ei.divisor=mo)):(Ei.buffer&&(Be.disableVertexAttribArray(Oa),Ei.buffer=null),(Ei.x!==gr||Ei.y!==Ln||Ei.z!==xn||Ei.w!==da)&&(Be.vertexAttrib4f(Oa,gr,Ln,xn,da),Ei.x=gr,Ei.y=Ln,Ei.z=xn,Ei.w=da)),Pn=gt.positionBuffer,Me.buffer=Pn,Fa=!1,oa=1,Hn=0,va=0,ma=0,Sa=0,ki=null,Wr=0,An=!1,Za=5126,Ga=0,Ca=0,za=0,Mt(Me)?(Fa=!0,ki=Ie.createStream(34962,Me),Za=ki.dtype):(ki=Ie.getBuffer(Me),ki?Za=ki.dtype:"constant"in Me?(oa=2,typeof Me.constant=="number"?(Hn=Me.constant,va=ma=Sa=0):(Hn=Me.constant.length>0?Me.constant[0]:0,va=Me.constant.length>1?Me.constant[1]:0,ma=Me.constant.length>2?Me.constant[2]:0,Sa=Me.constant.length>3?Me.constant[3]:0)):(Mt(Me.buffer)?ki=Ie.createStream(34962,Me.buffer):ki=Ie.getBuffer(Me.buffer),Za="type"in Me?di[Me.type]:ki.dtype,An=!!Me.normalized,Wr=Me.size|0,Ga=Me.offset|0,Ca=Me.stride|0,za=Me.divisor|0)),Wn=w.location,Zi=ut[Wn],oa===1?(Zi.buffer||Be.enableVertexAttribArray(Wn),sa=Wr||2,(Zi.type!==Za||Zi.size!==sa||Zi.buffer!==ki||Zi.normalized!==An||Zi.offset!==Ga||Zi.stride!==Ca)&&(Be.bindBuffer(34962,ki.buffer),Be.vertexAttribPointer(Wn,sa,Za,An,Ca,Ga),Zi.type=Za,Zi.size=sa,Zi.buffer=ki,Zi.normalized=An,Zi.offset=Ga,Zi.stride=Ca),Zi.divisor!==za&&(Wi.vertexAttribDivisorANGLE(Wn,za),Zi.divisor=za)):(Zi.buffer&&(Be.disableVertexAttribArray(Wn),Zi.buffer=null),(Zi.x!==Hn||Zi.y!==va||Zi.z!==ma||Zi.w!==Sa)&&(Be.vertexAttrib4f(Wn,Hn,va,ma,Sa),Zi.x=Hn,Zi.y=va,Zi.z=ma,Zi.w=Sa)),So=gt.dashLength,Be.uniform1f(_.location,So),ya=gt.dashTexture,ya&&ya._reglType==="framebuffer"&&(ya=ya.color[0]),Qn=ya._texture,Be.uniform1i(b.location,Qn.bind()),Tn=gt.depth,Be.uniform1f(M.location,Tn),Da=gt.miterLimit,Be.uniform1f(x.location,Da),zn=A.call(this,Ze,gt,0),Be.uniform1f(T.location,zn),Ia=gt.opacity,Be.uniform1f(g.location,Ia),Yi=gt.scale,In=Yi[0],Oi=Yi[1],Be.uniform2f(E.location,In,Oi),la=gt.thickness,Be.uniform1f(S.location,la),ga=gt.translate,go=ga[0],eo=ga[1],Be.uniform2f(C.location,go,eo),Eo=D.call(this,Ze,gt,0),Mn=Eo[0],To=Eo[1],Ya=Eo[2],Co=Eo[3],Be.uniform4f(k.location,Mn,To,Ya,Co),Ri=Pe.elements,Ri?Be.bindBuffer(34963,Ri.buffer.buffer):_t.currentVAO&&(Ri=Se.getElements(_t.currentVAO.elements),Ri&&Be.bindBuffer(34963,Ri.buffer.buffer)),qa=gt.count,qa>0?Ri?Wi.drawElementsInstancedANGLE(5,4,Ri.type,0<<(Ri.type-5121>>1),qa):Wi.drawArraysInstancedANGLE(5,0,4,qa):qa<0&&(Ri?Be.drawElements(5,4,Ri.type,0<<(Ri.type-5121>>1)):Be.drawArrays(5,0,4)),Ue.dirty=!0,_t.setVAO(null),Ze.viewportWidth=gi,Ze.viewportHeight=ui,ii&&(r.cpuTime+=performance.now()-Pr),yn&&Ie.destroyStream(fi),ea&&Ie.destroyStream(oi),ja&&Ie.destroyStream(zr),ta&&Ie.destroyStream(Di),Un&&Ie.destroyStream(Si),Fa&&Ie.destroyStream(ki),Qn.unbind()},scope:function(gt,bt,lr){var Ct,ur,Rr,Br,Vr,gi,ui,ei,Gi,un,Tt,wi,kn,ii,Pr,Wi,na,yn,$n,$i,en,_r,Zr,fi,aa,ln,ca,Kn,dn,Ta,rn,Ai,nn,Ti,ea,qn,pi,Fn,Pa,pr,oi,Ki,Ui,pa,Na,on,wn,Ra,ti,Yn,Ja,ja,ka,Ci,vn,Va,Hi,zr,ni,bn,Bi,vi,mr,Mi,Cn,jr,Xn,an,ta,qi,On,Nn,ia,Qr,Di,fn,Dn,Vn,mn,qr,Pi,Ua,yi,Ma,Ba,Bn,ji,gn,jn,Un,Ii,gr,Ln,xn,da,Si,Kr,Gn,to,Jn,ro,mo,Oa,Ei,co,Pn,Fa,oa,Hn,va,ma,Sa,ki,Wr,An,Za,Ga,Ca,za,Wn,Zi,sa,So,ya,Qn,Tn,Da,zn,Ia,Yi,In,Oi,la,ga,go,eo,Eo,Mn,To,Ya,Co,Ri,qa,Zn,Ha,Wa,$a,Fe,Ve,lt,it,mt,Rt,qt,Nt,ar,Ir,$t,Bt,rr,Dr,Ur,ai,ci,li,mi,xi,Ni,ua,xa,ao,ho,Fo,ls,Io,Ps,xs,us,Vi,io,ko,oo,xo,bo,so,Yo,Uo,es,jo,Qo,Ks,Ws,Ds,_s,as,Es,Mo,Go,qs,Ts,Dl,_l,wl,vl,Al,ml,Hl,Tl,yl,ae,ce,Te,Ce,Ne,Oe,He,ct,xt,vt,wt,Pt,Jt,cr,Nr,zi,Rn,fo,Xo,Bo,fs,cs,Ns,zl,Rs,Nl,ul,cl,vf,wf,_u,wu,ju,Au,ku,Af,mf,ef,Nf,oc,R,G,ee,he,ve;Ct=gt.viewport,ur=Ct.x|0,Rr=Ct.y|0,Br="width"in Ct?Ct.width|0:Ze.framebufferWidth-ur,Vr="height"in Ct?Ct.height|0:Ze.framebufferHeight-Rr,gi=Ze.viewportWidth,Ze.viewportWidth=Br,ui=Ze.viewportHeight,Ze.viewportHeight=Vr,ei=Cr[0],Cr[0]=ur,Gi=Cr[1],Cr[1]=Rr,un=Cr[2],Cr[2]=Br,Tt=Cr[3],Cr[3]=Vr,wi=tr[0],tr[0]=F,kn=tr[1],tr[1]=P,ii=tr[2],tr[2]=I,Pr=tr[3],tr[3]=L,Wi=De.blend_enable,De.blend_enable=z,na=nt[0],nt[0]=B,yn=nt[1],nt[1]=O,$n=dt[0],dt[0]=W,$i=dt[1],dt[1]=X,en=dt[2],dt[2]=Z,_r=dt[3],dt[3]=H,Zr=De.cull_enable,De.cull_enable=q,fi=De.cull_face,De.cull_face=Q,aa=o.call(this,Ze,gt,lr),ln=De.depth_enable,De.depth_enable=aa,ca=gt.viewport,Kn=ca.x|0,dn=ca.y|0,Ta="width"in ca?ca.width|0:Ze.framebufferWidth-Kn,rn="height"in ca?ca.height|0:Ze.framebufferHeight-dn,Ai=Fi[0],Fi[0]=Kn,nn=Fi[1],Fi[1]=dn,Ti=Fi[2],Fi[2]=Ta,ea=Fi[3],Fi[3]=rn,qn=De.scissor_enable,De.scissor_enable=N,pi=De.stencil_enable,De.stencil_enable=U,Fn=Ue.profile,Fn&&(Pa=performance.now(),r.count++),pr=Pe.offset,Pe.offset=J,oi=Pe.count,Pe.count=j,Ki=gt.count,Ui=Pe.instances,Pe.instances=Ki,pa=Pe.primitive,Pe.primitive=$,Na=A.call(this,Ze,gt,lr),on=At[ie],At[ie]=Na,wn=gt.miterLimit,Ra=At[re],At[re]=wn,ti=gt.scale,Yn=At[de],At[de]=ti,Ja=gt.scaleFract,ja=At[me],At[me]=Ja,ka=gt.translateFract,Ci=At[ze],At[ze]=ka,vn=gt.translate,Va=At[ke],At[ke]=vn,Hi=gt.thickness,zr=At[le],At[le]=Hi,ni=gt.dashTexture,bn=At[te],At[te]=ni,Bi=gt.opacity,vi=At[Ee],At[Ee]=Bi,mr=Ze.pixelRatio,Mi=At[we],At[we]=mr,Cn=gt.id,jr=At[oe],At[oe]=Cn,Xn=gt.dashLength,an=At[Y],At[Y]=Xn,ta=D.call(this,Ze,gt,lr),qi=At[ne],At[ne]=ta,On=gt.depth,Nn=At[ye],At[ye]=On,ia=V.state,V.state=1,Qr=V.x,V.x=0,Di=V.y,V.y=0,fn=V.z,V.z=0,Dn=V.w,V.w=0,Vn=V.buffer,V.buffer=p,mn=V.size,V.size=0,qr=V.normalized,V.normalized=!1,Pi=V.type,V.type=5126,Ua=V.offset,V.offset=0,yi=V.stride,V.stride=8,Ma=V.divisor,V.divisor=0,Ba=ue.state,ue.state=1,Bn=ue.x,ue.x=0,ji=ue.y,ue.y=0,gn=ue.z,ue.z=0,jn=ue.w,ue.w=0,Un=ue.buffer,ue.buffer=p,Ii=ue.size,ue.size=0,gr=ue.normalized,ue.normalized=!1,Ln=ue.type,ue.type=5126,xn=ue.offset,ue.offset=4,da=ue.stride,ue.stride=8,Si=ue.divisor,ue.divisor=0,Kr=gt.colorBuffer,nr.buffer=Kr,Gn=!1,to=1,Jn=0,ro=0,mo=0,Oa=0,Ei=null,co=0,Pn=!1,Fa=5126,oa=0,Hn=0,va=0,Mt(nr)?(Gn=!0,Ei=Ie.createStream(34962,nr),Fa=Ei.dtype):(Ei=Ie.getBuffer(nr),Ei?Fa=Ei.dtype:"constant"in nr?(to=2,typeof nr.constant=="number"?(Jn=nr.constant,ro=mo=Oa=0):(Jn=nr.constant.length>0?nr.constant[0]:0,ro=nr.constant.length>1?nr.constant[1]:0,mo=nr.constant.length>2?nr.constant[2]:0,Oa=nr.constant.length>3?nr.constant[3]:0)):(Mt(nr.buffer)?Ei=Ie.createStream(34962,nr.buffer):Ei=Ie.getBuffer(nr.buffer),Fa="type"in nr?di[nr.type]:Ei.dtype,Pn=!!nr.normalized,co=nr.size|0,oa=nr.offset|0,Hn=nr.stride|0,va=nr.divisor|0)),ma=_e.state,_e.state=to,Sa=_e.x,_e.x=Jn,ki=_e.y,_e.y=ro,Wr=_e.z,_e.z=mo,An=_e.w,_e.w=Oa,Za=_e.buffer,_e.buffer=Ei,Ga=_e.size,_e.size=co,Ca=_e.normalized,_e.normalized=Pn,za=_e.type,_e.type=Fa,Wn=_e.offset,_e.offset=oa,Zi=_e.stride,_e.stride=Hn,sa=_e.divisor,_e.divisor=va,So=gt.colorBuffer,Kt.buffer=So,ya=!1,Qn=1,Tn=0,Da=0,zn=0,Ia=0,Yi=null,In=0,Oi=!1,la=5126,ga=0,go=0,eo=0,Mt(Kt)?(ya=!0,Yi=Ie.createStream(34962,Kt),la=Yi.dtype):(Yi=Ie.getBuffer(Kt),Yi?la=Yi.dtype:"constant"in Kt?(Qn=2,typeof Kt.constant=="number"?(Tn=Kt.constant,Da=zn=Ia=0):(Tn=Kt.constant.length>0?Kt.constant[0]:0,Da=Kt.constant.length>1?Kt.constant[1]:0,zn=Kt.constant.length>2?Kt.constant[2]:0,Ia=Kt.constant.length>3?Kt.constant[3]:0)):(Mt(Kt.buffer)?Yi=Ie.createStream(34962,Kt.buffer):Yi=Ie.getBuffer(Kt.buffer),la="type"in Kt?di[Kt.type]:Yi.dtype,Oi=!!Kt.normalized,In=Kt.size|0,ga=Kt.offset|0,go=Kt.stride|0,eo=Kt.divisor|0)),Eo=xe.state,xe.state=Qn,Mn=xe.x,xe.x=Tn,To=xe.y,xe.y=Da,Ya=xe.z,xe.z=zn,Co=xe.w,xe.w=Ia,Ri=xe.buffer,xe.buffer=Yi,qa=xe.size,xe.size=In,Zn=xe.normalized,xe.normalized=Oi,Ha=xe.type,xe.type=la,Wa=xe.offset,xe.offset=ga,$a=xe.stride,xe.stride=go,Fe=xe.divisor,xe.divisor=eo,Ve=gt.positionBuffer,Me.buffer=Ve,lt=!1,it=1,mt=0,Rt=0,qt=0,Nt=0,ar=null,Ir=0,$t=!1,Bt=5126,rr=0,Dr=0,Ur=0,Mt(Me)?(lt=!0,ar=Ie.createStream(34962,Me),Bt=ar.dtype):(ar=Ie.getBuffer(Me),ar?Bt=ar.dtype:"constant"in Me?(it=2,typeof Me.constant=="number"?(mt=Me.constant,Rt=qt=Nt=0):(mt=Me.constant.length>0?Me.constant[0]:0,Rt=Me.constant.length>1?Me.constant[1]:0,qt=Me.constant.length>2?Me.constant[2]:0,Nt=Me.constant.length>3?Me.constant[3]:0)):(Mt(Me.buffer)?ar=Ie.createStream(34962,Me.buffer):ar=Ie.getBuffer(Me.buffer),Bt="type"in Me?di[Me.type]:ar.dtype,$t=!!Me.normalized,Ir=Me.size|0,rr=Me.offset|0,Dr=Me.stride|0,Ur=Me.divisor|0)),ai=Ae.state,Ae.state=it,ci=Ae.x,Ae.x=mt,li=Ae.y,Ae.y=Rt,mi=Ae.z,Ae.z=qt,xi=Ae.w,Ae.w=Nt,Ni=Ae.buffer,Ae.buffer=ar,ua=Ae.size,Ae.size=Ir,xa=Ae.normalized,Ae.normalized=$t,ao=Ae.type,Ae.type=Bt,ho=Ae.offset,Ae.offset=rr,Fo=Ae.stride,Ae.stride=Dr,ls=Ae.divisor,Ae.divisor=Ur,Io=gt.positionBuffer,Xe.buffer=Io,Ps=!1,xs=1,us=0,Vi=0,io=0,ko=0,oo=null,xo=0,bo=!1,so=5126,Yo=0,Uo=0,es=0,Mt(Xe)?(Ps=!0,oo=Ie.createStream(34962,Xe),so=oo.dtype):(oo=Ie.getBuffer(Xe),oo?so=oo.dtype:"constant"in Xe?(xs=2,typeof Xe.constant=="number"?(us=Xe.constant,Vi=io=ko=0):(us=Xe.constant.length>0?Xe.constant[0]:0,Vi=Xe.constant.length>1?Xe.constant[1]:0,io=Xe.constant.length>2?Xe.constant[2]:0,ko=Xe.constant.length>3?Xe.constant[3]:0)):(Mt(Xe.buffer)?oo=Ie.createStream(34962,Xe.buffer):oo=Ie.getBuffer(Xe.buffer),so="type"in Xe?di[Xe.type]:oo.dtype,bo=!!Xe.normalized,xo=Xe.size|0,Yo=Xe.offset|0,Uo=Xe.stride|0,es=Xe.divisor|0)),jo=se.state,se.state=xs,Qo=se.x,se.x=us,Ks=se.y,se.y=Vi,Ws=se.z,se.z=io,Ds=se.w,se.w=ko,_s=se.buffer,se.buffer=oo,as=se.size,se.size=xo,Es=se.normalized,se.normalized=bo,Mo=se.type,se.type=so,Go=se.offset,se.offset=Yo,qs=se.stride,se.stride=Uo,Ts=se.divisor,se.divisor=es,Dl=gt.positionBuffer,$e.buffer=Dl,_l=!1,wl=1,vl=0,Al=0,ml=0,Hl=0,Tl=null,yl=0,ae=!1,ce=5126,Te=0,Ce=0,Ne=0,Mt($e)?(_l=!0,Tl=Ie.createStream(34962,$e),ce=Tl.dtype):(Tl=Ie.getBuffer($e),Tl?ce=Tl.dtype:"constant"in $e?(wl=2,typeof $e.constant=="number"?(vl=$e.constant,Al=ml=Hl=0):(vl=$e.constant.length>0?$e.constant[0]:0,Al=$e.constant.length>1?$e.constant[1]:0,ml=$e.constant.length>2?$e.constant[2]:0,Hl=$e.constant.length>3?$e.constant[3]:0)):(Mt($e.buffer)?Tl=Ie.createStream(34962,$e.buffer):Tl=Ie.getBuffer($e.buffer),ce="type"in $e?di[$e.type]:Tl.dtype,ae=!!$e.normalized,yl=$e.size|0,Te=$e.offset|0,Ce=$e.stride|0,Ne=$e.divisor|0)),Oe=pe.state,pe.state=wl,He=pe.x,pe.x=vl,ct=pe.y,pe.y=Al,xt=pe.z,pe.z=ml,vt=pe.w,pe.w=Hl,wt=pe.buffer,pe.buffer=Tl,Pt=pe.size,pe.size=yl,Jt=pe.normalized,pe.normalized=ae,cr=pe.type,pe.type=ce,Nr=pe.offset,pe.offset=Te,zi=pe.stride,pe.stride=Ce,Rn=pe.divisor,pe.divisor=Ne,fo=gt.positionBuffer,Qe.buffer=fo,Xo=!1,Bo=1,fs=0,cs=0,Ns=0,zl=0,Rs=null,Nl=0,ul=!1,cl=5126,vf=0,wf=0,_u=0,Mt(Qe)?(Xo=!0,Rs=Ie.createStream(34962,Qe),cl=Rs.dtype):(Rs=Ie.getBuffer(Qe),Rs?cl=Rs.dtype:"constant"in Qe?(Bo=2,typeof Qe.constant=="number"?(fs=Qe.constant,cs=Ns=zl=0):(fs=Qe.constant.length>0?Qe.constant[0]:0,cs=Qe.constant.length>1?Qe.constant[1]:0,Ns=Qe.constant.length>2?Qe.constant[2]:0,zl=Qe.constant.length>3?Qe.constant[3]:0)):(Mt(Qe.buffer)?Rs=Ie.createStream(34962,Qe.buffer):Rs=Ie.getBuffer(Qe.buffer),cl="type"in Qe?di[Qe.type]:Rs.dtype,ul=!!Qe.normalized,Nl=Qe.size|0,vf=Qe.offset|0,wf=Qe.stride|0,_u=Qe.divisor|0)),wu=fe.state,fe.state=Bo,ju=fe.x,fe.x=fs,Au=fe.y,fe.y=cs,ku=fe.z,fe.z=Ns,Af=fe.w,fe.w=zl,mf=fe.buffer,fe.buffer=Rs,ef=fe.size,fe.size=Nl,Nf=fe.normalized,fe.normalized=ul,oc=fe.type,fe.type=cl,R=fe.offset,fe.offset=vf,G=fe.stride,fe.stride=wf,ee=fe.divisor,fe.divisor=_u,he=ot.vert,ot.vert=Re,ve=ot.frag,ot.frag=We,Ue.dirty=!0,bt(Ze,gt,lr),Ze.viewportWidth=gi,Ze.viewportHeight=ui,Cr[0]=ei,Cr[1]=Gi,Cr[2]=un,Cr[3]=Tt,tr[0]=wi,tr[1]=kn,tr[2]=ii,tr[3]=Pr,De.blend_enable=Wi,nt[0]=na,nt[1]=yn,dt[0]=$n,dt[1]=$i,dt[2]=en,dt[3]=_r,De.cull_enable=Zr,De.cull_face=fi,De.depth_enable=ln,Fi[0]=Ai,Fi[1]=nn,Fi[2]=Ti,Fi[3]=ea,De.scissor_enable=qn,De.stencil_enable=pi,Fn&&(r.cpuTime+=performance.now()-Pa),Pe.offset=pr,Pe.count=oi,Pe.instances=Ui,Pe.primitive=pa,At[ie]=on,At[re]=Ra,At[de]=Yn,At[me]=ja,At[ze]=Ci,At[ke]=Va,At[le]=zr,At[te]=bn,At[Ee]=vi,At[we]=Mi,At[oe]=jr,At[Y]=an,At[ne]=qi,At[ye]=Nn,V.state=ia,V.x=Qr,V.y=Di,V.z=fn,V.w=Dn,V.buffer=Vn,V.size=mn,V.normalized=qr,V.type=Pi,V.offset=Ua,V.stride=yi,V.divisor=Ma,ue.state=Ba,ue.x=Bn,ue.y=ji,ue.z=gn,ue.w=jn,ue.buffer=Un,ue.size=Ii,ue.normalized=gr,ue.type=Ln,ue.offset=xn,ue.stride=da,ue.divisor=Si,Gn&&Ie.destroyStream(Ei),_e.state=ma,_e.x=Sa,_e.y=ki,_e.z=Wr,_e.w=An,_e.buffer=Za,_e.size=Ga,_e.normalized=Ca,_e.type=za,_e.offset=Wn,_e.stride=Zi,_e.divisor=sa,ya&&Ie.destroyStream(Yi),xe.state=Eo,xe.x=Mn,xe.y=To,xe.z=Ya,xe.w=Co,xe.buffer=Ri,xe.size=qa,xe.normalized=Zn,xe.type=Ha,xe.offset=Wa,xe.stride=$a,xe.divisor=Fe,lt&&Ie.destroyStream(ar),Ae.state=ai,Ae.x=ci,Ae.y=li,Ae.z=mi,Ae.w=xi,Ae.buffer=Ni,Ae.size=ua,Ae.normalized=xa,Ae.type=ao,Ae.offset=ho,Ae.stride=Fo,Ae.divisor=ls,Ps&&Ie.destroyStream(oo),se.state=jo,se.x=Qo,se.y=Ks,se.z=Ws,se.w=Ds,se.buffer=_s,se.size=as,se.normalized=Es,se.type=Mo,se.offset=Go,se.stride=qs,se.divisor=Ts,_l&&Ie.destroyStream(Tl),pe.state=Oe,pe.x=He,pe.y=ct,pe.z=xt,pe.w=vt,pe.buffer=wt,pe.size=Pt,pe.normalized=Jt,pe.type=cr,pe.offset=Nr,pe.stride=zi,pe.divisor=Rn,Xo&&Ie.destroyStream(Rs),fe.state=wu,fe.x=ju,fe.y=Au,fe.z=ku,fe.w=Af,fe.buffer=mf,fe.size=ef,fe.normalized=Nf,fe.type=oc,fe.offset=R,fe.stride=G,fe.divisor=ee,ot.vert=he,ot.frag=ve,Ue.dirty=!0},batch:function(gt,bt){var lr,Ct,ur,Rr,Br,Vr,gi;if(lr=Dt.angle_instanced_arrays,Ct=Gt.next,Ct!==Gt.cur&&(Ct?Be.bindFramebuffer(36160,Ct.framebuffer):Be.bindFramebuffer(36160,null),Gt.cur=Ct),Ue.dirty){var ui,ei,Gi,un,Tt,wi,kn,ii,Pr,Wi,na,yn,$n,$i,en,_r,Zr,fi,aa,ln,ca,Kn,dn,Ta,rn,Ai,nn,Ti,ea,qn;ui=De.dither,ui!==Ue.dither&&(ui?Be.enable(3024):Be.disable(3024),Ue.dither=ui),ei=De.depth_func,ei!==Ue.depth_func&&(Be.depthFunc(ei),Ue.depth_func=ei),Gi=ft[0],un=ft[1],(Gi!==Ft[0]||un!==Ft[1])&&(Be.depthRange(Gi,un),Ft[0]=Gi,Ft[1]=un),Tt=De.depth_mask,Tt!==Ue.depth_mask&&(Be.depthMask(Tt),Ue.depth_mask=Tt),wi=Et[0],kn=Et[1],ii=Et[2],Pr=Et[3],(wi!==er[0]||kn!==er[1]||ii!==er[2]||Pr!==er[3])&&(Be.colorMask(wi,kn,ii,Pr),er[0]=wi,er[1]=kn,er[2]=ii,er[3]=Pr),Wi=De.frontFace,Wi!==Ue.frontFace&&(Be.frontFace(Wi),Ue.frontFace=Wi),na=De.lineWidth,na!==Ue.lineWidth&&(Be.lineWidth(na),Ue.lineWidth=na),yn=De.polygonOffset_enable,yn!==Ue.polygonOffset_enable&&(yn?Be.enable(32823):Be.disable(32823),Ue.polygonOffset_enable=yn),$n=xr[0],$i=xr[1],($n!==kr[0]||$i!==kr[1])&&(Be.polygonOffset($n,$i),kr[0]=$n,kr[1]=$i),en=De.sample_alpha,en!==Ue.sample_alpha&&(en?Be.enable(32926):Be.disable(32926),Ue.sample_alpha=en),_r=De.sample_enable,_r!==Ue.sample_enable&&(_r?Be.enable(32928):Be.disable(32928),Ue.sample_enable=_r),Zr=fr[0],fi=fr[1],(Zr!==Yr[0]||fi!==Yr[1])&&(Be.sampleCoverage(Zr,fi),Yr[0]=Zr,Yr[1]=fi),aa=De.stencil_mask,aa!==Ue.stencil_mask&&(Be.stencilMask(aa),Ue.stencil_mask=aa),ln=Or[0],ca=Or[1],Kn=Or[2],(ln!==ri[0]||ca!==ri[1]||Kn!==ri[2])&&(Be.stencilFunc(ln,ca,Kn),ri[0]=ln,ri[1]=ca,ri[2]=Kn),dn=Tr[0],Ta=Tr[1],rn=Tr[2],Ai=Tr[3],(dn!==Mr[0]||Ta!==Mr[1]||rn!==Mr[2]||Ai!==Mr[3])&&(Be.stencilOpSeparate(dn,Ta,rn,Ai),Mr[0]=dn,Mr[1]=Ta,Mr[2]=rn,Mr[3]=Ai),nn=Gr[0],Ti=Gr[1],ea=Gr[2],qn=Gr[3],(nn!==_i[0]||Ti!==_i[1]||ea!==_i[2]||qn!==_i[3])&&(Be.stencilOpSeparate(nn,Ti,ea,qn),_i[0]=nn,_i[1]=Ti,_i[2]=ea,_i[3]=qn)}Be.blendColor(0,0,0,0),Ye[0]=0,Ye[1]=0,Ye[2]=0,Ye[3]=0,Ke?Be.enable(3042):Be.disable(3042),Ue.blend_enable=Ke,Be.blendEquationSeparate(32774,32774),st[0]=32774,st[1]=32774,Be.blendFuncSeparate(770,771,773,1),rt[0]=770,rt[1]=771,rt[2]=773,rt[3]=1,tt?Be.enable(2884):Be.disable(2884),Ue.cull_enable=tt,Be.cullFace(at),Ue.cull_face=at,Ge?Be.enable(3089):Be.disable(3089),Ue.scissor_enable=Ge,ge?Be.enable(2960):Be.disable(2960),Ue.stencil_enable=ge,ur=Ue.profile,ur&&(Rr=performance.now(),r.count+=bt),Be.useProgram(u.program),Br=Dt.angle_instanced_arrays;var pi,Fn,Pa,pr,oi;for(_t.setVAO(null),pi=v.location,Fn=ut[pi],Fn.buffer||Be.enableVertexAttribArray(pi),(Fn.type!==5126||Fn.size!==1||Fn.buffer!==p||Fn.normalized!==!1||Fn.offset!==0||Fn.stride!==8)&&(Be.bindBuffer(34962,p.buffer),Be.vertexAttribPointer(pi,1,5126,!1,8,0),Fn.type=5126,Fn.size=1,Fn.buffer=p,Fn.normalized=!1,Fn.offset=0,Fn.stride=8),Fn.divisor!==0&&(Br.vertexAttribDivisorANGLE(pi,0),Fn.divisor=0),Pa=y.location,pr=ut[Pa],pr.buffer||Be.enableVertexAttribArray(Pa),(pr.type!==5126||pr.size!==1||pr.buffer!==p||pr.normalized!==!1||pr.offset!==4||pr.stride!==8)&&(Be.bindBuffer(34962,p.buffer),Be.vertexAttribPointer(Pa,1,5126,!1,8,4),pr.type=5126,pr.size=1,pr.buffer=p,pr.normalized=!1,pr.offset=4,pr.stride=8),pr.divisor!==0&&(Br.vertexAttribDivisorANGLE(Pa,0),pr.divisor=0),oi=Pe.elements,oi?Be.bindBuffer(34963,oi.buffer.buffer):_t.currentVAO&&(oi=Se.getElements(_t.currentVAO.elements),oi&&Be.bindBuffer(34963,oi.buffer.buffer)),Vr=0;Vr0?nr.constant[0]:0,ni=nr.constant.length>1?nr.constant[1]:0,bn=nr.constant.length>2?nr.constant[2]:0,Bi=nr.constant.length>3?nr.constant[3]:0)):(Mt(nr.buffer)?vi=Ie.createStream(34962,nr.buffer):vi=Ie.getBuffer(nr.buffer),Cn="type"in nr?di[nr.type]:vi.dtype,Mi=!!nr.normalized,mr=nr.size|0,jr=nr.offset|0,Xn=nr.stride|0,an=nr.divisor|0)),ta=f.location,qi=ut[ta],Hi===1?(qi.buffer||Be.enableVertexAttribArray(ta),On=mr||4,(qi.type!==Cn||qi.size!==On||qi.buffer!==vi||qi.normalized!==Mi||qi.offset!==jr||qi.stride!==Xn)&&(Be.bindBuffer(34962,vi.buffer),Be.vertexAttribPointer(ta,On,Cn,Mi,Xn,jr),qi.type=Cn,qi.size=On,qi.buffer=vi,qi.normalized=Mi,qi.offset=jr,qi.stride=Xn),qi.divisor!==an&&(Br.vertexAttribDivisorANGLE(ta,an),qi.divisor=an)):(qi.buffer&&(Be.disableVertexAttribArray(ta),qi.buffer=null),(qi.x!==zr||qi.y!==ni||qi.z!==bn||qi.w!==Bi)&&(Be.vertexAttrib4f(ta,zr,ni,bn,Bi),qi.x=zr,qi.y=ni,qi.z=bn,qi.w=Bi)),Nn=gi.positionBuffer,Xe.buffer=Nn,ia=!1,Qr=1,Di=0,fn=0,Dn=0,Vn=0,mn=null,qr=0,Pi=!1,Ua=5126,yi=0,Ma=0,Ba=0,Mt(Xe)?(ia=!0,mn=Ie.createStream(34962,Xe),Ua=mn.dtype):(mn=Ie.getBuffer(Xe),mn?Ua=mn.dtype:"constant"in Xe?(Qr=2,typeof Xe.constant=="number"?(Di=Xe.constant,fn=Dn=Vn=0):(Di=Xe.constant.length>0?Xe.constant[0]:0,fn=Xe.constant.length>1?Xe.constant[1]:0,Dn=Xe.constant.length>2?Xe.constant[2]:0,Vn=Xe.constant.length>3?Xe.constant[3]:0)):(Mt(Xe.buffer)?mn=Ie.createStream(34962,Xe.buffer):mn=Ie.getBuffer(Xe.buffer),Ua="type"in Xe?di[Xe.type]:mn.dtype,Pi=!!Xe.normalized,qr=Xe.size|0,yi=Xe.offset|0,Ma=Xe.stride|0,Ba=Xe.divisor|0)),Bn=c.location,ji=ut[Bn],Qr===1?(ji.buffer||Be.enableVertexAttribArray(Bn),gn=qr||2,(ji.type!==Ua||ji.size!==gn||ji.buffer!==mn||ji.normalized!==Pi||ji.offset!==yi||ji.stride!==Ma)&&(Be.bindBuffer(34962,mn.buffer),Be.vertexAttribPointer(Bn,gn,Ua,Pi,Ma,yi),ji.type=Ua,ji.size=gn,ji.buffer=mn,ji.normalized=Pi,ji.offset=yi,ji.stride=Ma),ji.divisor!==Ba&&(Br.vertexAttribDivisorANGLE(Bn,Ba),ji.divisor=Ba)):(ji.buffer&&(Be.disableVertexAttribArray(Bn),ji.buffer=null),(ji.x!==Di||ji.y!==fn||ji.z!==Dn||ji.w!==Vn)&&(Be.vertexAttrib4f(Bn,Di,fn,Dn,Vn),ji.x=Di,ji.y=fn,ji.z=Dn,ji.w=Vn)),jn=gi.colorBuffer,Kt.buffer=jn,Un=!1,Ii=1,gr=0,Ln=0,xn=0,da=0,Si=null,Kr=0,Gn=!1,to=5126,Jn=0,ro=0,mo=0,Mt(Kt)?(Un=!0,Si=Ie.createStream(34962,Kt),to=Si.dtype):(Si=Ie.getBuffer(Kt),Si?to=Si.dtype:"constant"in Kt?(Ii=2,typeof Kt.constant=="number"?(gr=Kt.constant,Ln=xn=da=0):(gr=Kt.constant.length>0?Kt.constant[0]:0,Ln=Kt.constant.length>1?Kt.constant[1]:0,xn=Kt.constant.length>2?Kt.constant[2]:0,da=Kt.constant.length>3?Kt.constant[3]:0)):(Mt(Kt.buffer)?Si=Ie.createStream(34962,Kt.buffer):Si=Ie.getBuffer(Kt.buffer),to="type"in Kt?di[Kt.type]:Si.dtype,Gn=!!Kt.normalized,Kr=Kt.size|0,Jn=Kt.offset|0,ro=Kt.stride|0,mo=Kt.divisor|0)),Oa=h.location,Ei=ut[Oa],Ii===1?(Ei.buffer||Be.enableVertexAttribArray(Oa),co=Kr||4,(Ei.type!==to||Ei.size!==co||Ei.buffer!==Si||Ei.normalized!==Gn||Ei.offset!==Jn||Ei.stride!==ro)&&(Be.bindBuffer(34962,Si.buffer),Be.vertexAttribPointer(Oa,co,to,Gn,ro,Jn),Ei.type=to,Ei.size=co,Ei.buffer=Si,Ei.normalized=Gn,Ei.offset=Jn,Ei.stride=ro),Ei.divisor!==mo&&(Br.vertexAttribDivisorANGLE(Oa,mo),Ei.divisor=mo)):(Ei.buffer&&(Be.disableVertexAttribArray(Oa),Ei.buffer=null),(Ei.x!==gr||Ei.y!==Ln||Ei.z!==xn||Ei.w!==da)&&(Be.vertexAttrib4f(Oa,gr,Ln,xn,da),Ei.x=gr,Ei.y=Ln,Ei.z=xn,Ei.w=da)),Pn=gi.positionBuffer,$e.buffer=Pn,Fa=!1,oa=1,Hn=0,va=0,ma=0,Sa=0,ki=null,Wr=0,An=!1,Za=5126,Ga=0,Ca=0,za=0,Mt($e)?(Fa=!0,ki=Ie.createStream(34962,$e),Za=ki.dtype):(ki=Ie.getBuffer($e),ki?Za=ki.dtype:"constant"in $e?(oa=2,typeof $e.constant=="number"?(Hn=$e.constant,va=ma=Sa=0):(Hn=$e.constant.length>0?$e.constant[0]:0,va=$e.constant.length>1?$e.constant[1]:0,ma=$e.constant.length>2?$e.constant[2]:0,Sa=$e.constant.length>3?$e.constant[3]:0)):(Mt($e.buffer)?ki=Ie.createStream(34962,$e.buffer):ki=Ie.getBuffer($e.buffer),Za="type"in $e?di[$e.type]:ki.dtype,An=!!$e.normalized,Wr=$e.size|0,Ga=$e.offset|0,Ca=$e.stride|0,za=$e.divisor|0)),Wn=d.location,Zi=ut[Wn],oa===1?(Zi.buffer||Be.enableVertexAttribArray(Wn),sa=Wr||2,(Zi.type!==Za||Zi.size!==sa||Zi.buffer!==ki||Zi.normalized!==An||Zi.offset!==Ga||Zi.stride!==Ca)&&(Be.bindBuffer(34962,ki.buffer),Be.vertexAttribPointer(Wn,sa,Za,An,Ca,Ga),Zi.type=Za,Zi.size=sa,Zi.buffer=ki,Zi.normalized=An,Zi.offset=Ga,Zi.stride=Ca),Zi.divisor!==za&&(Br.vertexAttribDivisorANGLE(Wn,za),Zi.divisor=za)):(Zi.buffer&&(Be.disableVertexAttribArray(Wn),Zi.buffer=null),(Zi.x!==Hn||Zi.y!==va||Zi.z!==ma||Zi.w!==Sa)&&(Be.vertexAttrib4f(Wn,Hn,va,ma,Sa),Zi.x=Hn,Zi.y=va,Zi.z=ma,Zi.w=Sa)),So=gi.positionBuffer,Qe.buffer=So,ya=!1,Qn=1,Tn=0,Da=0,zn=0,Ia=0,Yi=null,In=0,Oi=!1,la=5126,ga=0,go=0,eo=0,Mt(Qe)?(ya=!0,Yi=Ie.createStream(34962,Qe),la=Yi.dtype):(Yi=Ie.getBuffer(Qe),Yi?la=Yi.dtype:"constant"in Qe?(Qn=2,typeof Qe.constant=="number"?(Tn=Qe.constant,Da=zn=Ia=0):(Tn=Qe.constant.length>0?Qe.constant[0]:0,Da=Qe.constant.length>1?Qe.constant[1]:0,zn=Qe.constant.length>2?Qe.constant[2]:0,Ia=Qe.constant.length>3?Qe.constant[3]:0)):(Mt(Qe.buffer)?Yi=Ie.createStream(34962,Qe.buffer):Yi=Ie.getBuffer(Qe.buffer),la="type"in Qe?di[Qe.type]:Yi.dtype,Oi=!!Qe.normalized,In=Qe.size|0,ga=Qe.offset|0,go=Qe.stride|0,eo=Qe.divisor|0)),Eo=m.location,Mn=ut[Eo],Qn===1?(Mn.buffer||Be.enableVertexAttribArray(Eo),To=In||2,(Mn.type!==la||Mn.size!==To||Mn.buffer!==Yi||Mn.normalized!==Oi||Mn.offset!==ga||Mn.stride!==go)&&(Be.bindBuffer(34962,Yi.buffer),Be.vertexAttribPointer(Eo,To,la,Oi,go,ga),Mn.type=la,Mn.size=To,Mn.buffer=Yi,Mn.normalized=Oi,Mn.offset=ga,Mn.stride=go),Mn.divisor!==eo&&(Br.vertexAttribDivisorANGLE(Eo,eo),Mn.divisor=eo)):(Mn.buffer&&(Be.disableVertexAttribArray(Eo),Mn.buffer=null),(Mn.x!==Tn||Mn.y!==Da||Mn.z!==zn||Mn.w!==Ia)&&(Be.vertexAttrib4f(Eo,Tn,Da,zn,Ia),Mn.x=Tn,Mn.y=Da,Mn.z=zn,Mn.w=Ia)),Ya=gi.positionBuffer,Me.buffer=Ya,Co=!1,Ri=1,qa=0,Zn=0,Ha=0,Wa=0,$a=null,Fe=0,Ve=!1,lt=5126,it=0,mt=0,Rt=0,Mt(Me)?(Co=!0,$a=Ie.createStream(34962,Me),lt=$a.dtype):($a=Ie.getBuffer(Me),$a?lt=$a.dtype:"constant"in Me?(Ri=2,typeof Me.constant=="number"?(qa=Me.constant,Zn=Ha=Wa=0):(qa=Me.constant.length>0?Me.constant[0]:0,Zn=Me.constant.length>1?Me.constant[1]:0,Ha=Me.constant.length>2?Me.constant[2]:0,Wa=Me.constant.length>3?Me.constant[3]:0)):(Mt(Me.buffer)?$a=Ie.createStream(34962,Me.buffer):$a=Ie.getBuffer(Me.buffer),lt="type"in Me?di[Me.type]:$a.dtype,Ve=!!Me.normalized,Fe=Me.size|0,it=Me.offset|0,mt=Me.stride|0,Rt=Me.divisor|0)),qt=w.location,Nt=ut[qt],Ri===1?(Nt.buffer||Be.enableVertexAttribArray(qt),ar=Fe||2,(Nt.type!==lt||Nt.size!==ar||Nt.buffer!==$a||Nt.normalized!==Ve||Nt.offset!==it||Nt.stride!==mt)&&(Be.bindBuffer(34962,$a.buffer),Be.vertexAttribPointer(qt,ar,lt,Ve,mt,it),Nt.type=lt,Nt.size=ar,Nt.buffer=$a,Nt.normalized=Ve,Nt.offset=it,Nt.stride=mt),Nt.divisor!==Rt&&(Br.vertexAttribDivisorANGLE(qt,Rt),Nt.divisor=Rt)):(Nt.buffer&&(Be.disableVertexAttribArray(qt),Nt.buffer=null),(Nt.x!==qa||Nt.y!==Zn||Nt.z!==Ha||Nt.w!==Wa)&&(Be.vertexAttrib4f(qt,qa,Zn,Ha,Wa),Nt.x=qa,Nt.y=Zn,Nt.z=Ha,Nt.w=Wa)),Ir=gi.dashLength,(!Vr||$t!==Ir)&&($t=Ir,Be.uniform1f(_.location,Ir)),Bt=gi.dashTexture,Bt&&Bt._reglType==="framebuffer"&&(Bt=Bt.color[0]),rr=Bt._texture,Be.uniform1i(b.location,rr.bind()),Dr=gi.depth,(!Vr||Ur!==Dr)&&(Ur=Dr,Be.uniform1f(M.location,Dr)),ai=gi.miterLimit,(!Vr||ci!==ai)&&(ci=ai,Be.uniform1f(x.location,ai)),li=A.call(this,Ze,gi,Vr),(!Vr||mi!==li)&&(mi=li,Be.uniform1f(T.location,li)),xi=gi.opacity,(!Vr||Ni!==xi)&&(Ni=xi,Be.uniform1f(g.location,xi)),ua=gi.scale,xa=ua[0],ho=ua[1],(!Vr||ao!==xa||Fo!==ho)&&(ao=xa,Fo=ho,Be.uniform2f(E.location,xa,ho)),ls=gi.thickness,(!Vr||Io!==ls)&&(Io=ls,Be.uniform1f(S.location,ls)),Ps=gi.translate,xs=Ps[0],Vi=Ps[1],(!Vr||us!==xs||io!==Vi)&&(us=xs,io=Vi,Be.uniform2f(C.location,xs,Vi)),ko=D.call(this,Ze,gi,Vr),oo=ko[0],bo=ko[1],Yo=ko[2],es=ko[3],(!Vr||xo!==oo||so!==bo||Uo!==Yo||jo!==es)&&(xo=oo,so=bo,Uo=Yo,jo=es,Be.uniform4f(k.location,oo,bo,Yo,es)),Qo=gi.count,Qo>0?oi?Br.drawElementsInstancedANGLE(5,4,oi.type,0<<(oi.type-5121>>1),Qo):Br.drawArraysInstancedANGLE(5,0,4,Qo):Qo<0&&(oi?Be.drawElements(5,4,oi.type,0<<(oi.type-5121>>1)):Be.drawArrays(5,0,4)),Ze.viewportWidth=wn,Ze.viewportHeight=Ra,Va&&Ie.destroyStream(vi),ia&&Ie.destroyStream(mn),Un&&Ie.destroyStream(Si),Fa&&Ie.destroyStream(ki),ya&&Ie.destroyStream(Yi),Co&&Ie.destroyStream($a),rr.unbind()}Ue.dirty=!0,_t.setVAO(null),ur&&(r.cpuTime+=performance.now()-Rr)}}}});var RB=K((eii,RZe)=>{"use strict";RZe.exports=function(t,r,i,n,a,o,s,l,u,f,c,h,d,p,v,y,m,w,_,b,M,x,T,A,g,E,S,C,k,D,F,P,I,L,z,B,O,W,X,Z,H,q,Q,N,U,J,j,$,ie,re,de,me,ze,ke,le,te,Ee,we,oe,Y,ne,ye,V,ue,_e,xe,Ae,se,pe,fe,Re,We,Ke,tt,at,Ge){"use strict";var ge,Be,Ze,Le,De,Ue,Pe,Se,Ie,ot,ut,_t,At,Gt,Dt,yt,Mt,tr,Ye,nt,st,dt,rt,ft,Ft,Et,er,xr,kr,fr,Yr,Or,ri,Tr,Mr,Gr,_i,Fi,wr,Cr,Ut,Wt,dr,Hr,Er,Fr,di;return ge=t.gl,Be=t.context,Ze=t.strings,Le=t.next,De=t.current,Ue=t.draw,Pe=t.elements,Se=t.buffer,Ie=t.shader,ot=t.attributes,ut=t.vao,_t=t.uniforms,At=t.framebuffer,Gt=t.extensions,Dt=t.timer,yt=t.isBufferArgs,Mt=Le.blend_color,tr=De.blend_color,Ye=Le.blend_equation,nt=De.blend_equation,st=Le.blend_func,dt=De.blend_func,rt=Le.depth_range,ft=De.depth_range,Ft=Le.colorMask,Et=De.colorMask,er=Le.polygonOffset_offset,xr=De.polygonOffset_offset,kr=Le.sample_coverage,fr=De.sample_coverage,Yr=Le.stencil_func,Or=De.stencil_func,ri=Le.stencil_opFront,Tr=De.stencil_opFront,Mr=Le.stencil_opBack,Gr=De.stencil_opBack,_i=Le.scissor_box,Fi=De.scissor_box,wr=Le.viewport,Cr=De.viewport,Ut={points:0,point:0,lines:1,line:1,triangles:4,triangle:4,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},Wt={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},dr={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},Hr={add:32774,subtract:32778,"reverse subtract":32779},Er={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},Fr={int8:5120,int16:5122,int32:5124,uint8:5121,uint16:5123,uint32:5125,float:5126,float32:5126},di={cw:2304,ccw:2305},{draw:function(Li){var nr,Kt,Me,Xe,$e,Qe,gt,bt,lr,Ct,ur,Rr,Br,Vr,gi,ui,ei,Gi,un,Tt,wi,kn,ii,Pr,Wi,na,yn,$n,$i,en,_r,Zr,fi,aa,ln,ca,Kn,dn,Ta,rn,Ai,nn,Ti,ea,qn,pi,Fn,Pa,pr,oi,Ki,Ui,pa,Na,on,wn,Ra,ti,Yn,Ja,ja,ka,Ci,vn,Va,Hi,zr,ni,bn,Bi,vi,mr,Mi,Cn,jr,Xn,an,ta,qi,On,Nn,ia,Qr,Di,fn,Dn,Vn,mn,qr,Pi,Ua,yi,Ma,Ba,Bn,ji,gn,jn,Un,Ii,gr,Ln,xn,da,Si,Kr,Gn,to,Jn,ro,mo,Oa,Ei,co,Pn,Fa,oa,Hn,va,ma,Sa,ki,Wr,An,Za,Ga,Ca,za,Wn,Zi,sa,So,ya,Qn,Tn,Da,zn,Ia,Yi,In,Oi,la,ga,go,eo,Eo,Mn,To,Ya,Co,Ri,qa,Zn,Ha,Wa,$a,Fe,Ve,lt,it,mt,Rt,qt,Nt,ar,Ir,$t,Bt,rr,Dr,Ur,ai,ci,li,mi,xi,Ni,ua,xa,ao,ho,Fo,ls,Io,Ps,xs,us,Vi,io,ko,oo,xo,bo,so,Yo;if(nr=Gt.angle_instanced_arrays,Kt=At.next,Kt!==At.cur&&(Kt?ge.bindFramebuffer(36160,Kt.framebuffer):ge.bindFramebuffer(36160,null),At.cur=Kt),De.dirty){var Uo,es,jo,Qo,Ks,Ws,Ds,_s,as,Es,Mo,Go,qs,Ts,Dl,_l,wl,vl,Al,ml,Hl,Tl,yl,ae,ce,Te,Ce,Ne,Oe,He,ct,xt,vt,wt;Uo=Le.dither,Uo!==De.dither&&(Uo?ge.enable(3024):ge.disable(3024),De.dither=Uo),es=Ye[0],jo=Ye[1],(es!==nt[0]||jo!==nt[1])&&(ge.blendEquationSeparate(es,jo),nt[0]=es,nt[1]=jo),Qo=Le.depth_func,Qo!==De.depth_func&&(ge.depthFunc(Qo),De.depth_func=Qo),Ks=rt[0],Ws=rt[1],(Ks!==ft[0]||Ws!==ft[1])&&(ge.depthRange(Ks,Ws),ft[0]=Ks,ft[1]=Ws),Ds=Le.depth_mask,Ds!==De.depth_mask&&(ge.depthMask(Ds),De.depth_mask=Ds),_s=Ft[0],as=Ft[1],Es=Ft[2],Mo=Ft[3],(_s!==Et[0]||as!==Et[1]||Es!==Et[2]||Mo!==Et[3])&&(ge.colorMask(_s,as,Es,Mo),Et[0]=_s,Et[1]=as,Et[2]=Es,Et[3]=Mo),Go=Le.cull_enable,Go!==De.cull_enable&&(Go?ge.enable(2884):ge.disable(2884),De.cull_enable=Go),qs=Le.cull_face,qs!==De.cull_face&&(ge.cullFace(qs),De.cull_face=qs),Ts=Le.frontFace,Ts!==De.frontFace&&(ge.frontFace(Ts),De.frontFace=Ts),Dl=Le.lineWidth,Dl!==De.lineWidth&&(ge.lineWidth(Dl),De.lineWidth=Dl),_l=Le.polygonOffset_enable,_l!==De.polygonOffset_enable&&(_l?ge.enable(32823):ge.disable(32823),De.polygonOffset_enable=_l),wl=er[0],vl=er[1],(wl!==xr[0]||vl!==xr[1])&&(ge.polygonOffset(wl,vl),xr[0]=wl,xr[1]=vl),Al=Le.sample_alpha,Al!==De.sample_alpha&&(Al?ge.enable(32926):ge.disable(32926),De.sample_alpha=Al),ml=Le.sample_enable,ml!==De.sample_enable&&(ml?ge.enable(32928):ge.disable(32928),De.sample_enable=ml),Hl=kr[0],Tl=kr[1],(Hl!==fr[0]||Tl!==fr[1])&&(ge.sampleCoverage(Hl,Tl),fr[0]=Hl,fr[1]=Tl),yl=Le.stencil_mask,yl!==De.stencil_mask&&(ge.stencilMask(yl),De.stencil_mask=yl),ae=Yr[0],ce=Yr[1],Te=Yr[2],(ae!==Or[0]||ce!==Or[1]||Te!==Or[2])&&(ge.stencilFunc(ae,ce,Te),Or[0]=ae,Or[1]=ce,Or[2]=Te),Ce=ri[0],Ne=ri[1],Oe=ri[2],He=ri[3],(Ce!==Tr[0]||Ne!==Tr[1]||Oe!==Tr[2]||He!==Tr[3])&&(ge.stencilOpSeparate(Ce,Ne,Oe,He),Tr[0]=Ce,Tr[1]=Ne,Tr[2]=Oe,Tr[3]=He),ct=Mr[0],xt=Mr[1],vt=Mr[2],wt=Mr[3],(ct!==Gr[0]||xt!==Gr[1]||vt!==Gr[2]||wt!==Gr[3])&&(ge.stencilOpSeparate(ct,xt,vt,wt),Gr[0]=ct,Gr[1]=xt,Gr[2]=vt,Gr[3]=wt)}Me=Li.viewport,Xe=Me.x|0,$e=Me.y|0,Qe="width"in Me?Me.width|0:Be.framebufferWidth-Xe,gt="height"in Me?Me.height|0:Be.framebufferHeight-$e,bt=Be.viewportWidth,Be.viewportWidth=Qe,lr=Be.viewportHeight,Be.viewportHeight=gt,ge.viewport(Xe,$e,Qe,gt),Cr[0]=Xe,Cr[1]=$e,Cr[2]=Qe,Cr[3]=gt,ge.blendColor(0,0,0,1),tr[0]=0,tr[1]=0,tr[2]=0,tr[3]=1,i?ge.enable(3042):ge.disable(3042),De.blend_enable=i,ge.blendFuncSeparate(770,771,773,1),dt[0]=770,dt[1]=771,dt[2]=773,dt[3]=1,n?ge.enable(2929):ge.disable(2929),De.depth_enable=n,Ct=Li.viewport,ur=Ct.x|0,Rr=Ct.y|0,Br="width"in Ct?Ct.width|0:Be.framebufferWidth-ur,Vr="height"in Ct?Ct.height|0:Be.framebufferHeight-Rr,ge.scissor(ur,Rr,Br,Vr),Fi[0]=ur,Fi[1]=Rr,Fi[2]=Br,Fi[3]=Vr,a?ge.enable(3089):ge.disable(3089),De.scissor_enable=a,o?ge.enable(2960):ge.disable(2960),De.stencil_enable=o,gi=De.profile,gi&&(ui=performance.now(),r.count++),ge.useProgram(s.program),ei=Gt.angle_instanced_arrays,ut.setVAO(null),Gi=l.call(this,Be,Li,0),un=!1,Tt=1,wi=0,kn=0,ii=0,Pr=0,Wi=null,na=0,yn=!1,$n=5126,$i=0,en=0,_r=0,yt(Gi)?(un=!0,Wi=Se.createStream(34962,Gi),$n=Wi.dtype):(Wi=Se.getBuffer(Gi),Wi?$n=Wi.dtype:"constant"in Gi?(Tt=2,typeof Gi.constant=="number"?(wi=Gi.constant,kn=ii=Pr=0):(wi=Gi.constant.length>0?Gi.constant[0]:0,kn=Gi.constant.length>1?Gi.constant[1]:0,ii=Gi.constant.length>2?Gi.constant[2]:0,Pr=Gi.constant.length>3?Gi.constant[3]:0)):(yt(Gi.buffer)?Wi=Se.createStream(34962,Gi.buffer):Wi=Se.getBuffer(Gi.buffer),$n="type"in Gi?Fr[Gi.type]:Wi.dtype,yn=!!Gi.normalized,na=Gi.size|0,$i=Gi.offset|0,en=Gi.stride|0,_r=Gi.divisor|0)),Zr=u.location,fi=ot[Zr],Tt===1?(fi.buffer||ge.enableVertexAttribArray(Zr),aa=na||4,(fi.type!==$n||fi.size!==aa||fi.buffer!==Wi||fi.normalized!==yn||fi.offset!==$i||fi.stride!==en)&&(ge.bindBuffer(34962,Wi.buffer),ge.vertexAttribPointer(Zr,aa,$n,yn,en,$i),fi.type=$n,fi.size=aa,fi.buffer=Wi,fi.normalized=yn,fi.offset=$i,fi.stride=en),fi.divisor!==_r&&(ei.vertexAttribDivisorANGLE(Zr,_r),fi.divisor=_r)):(fi.buffer&&(ge.disableVertexAttribArray(Zr),fi.buffer=null),(fi.x!==wi||fi.y!==kn||fi.z!==ii||fi.w!==Pr)&&(ge.vertexAttrib4f(Zr,wi,kn,ii,Pr),fi.x=wi,fi.y=kn,fi.z=ii,fi.w=Pr)),ln=f.call(this,Be,Li,0),ca=!1,Kn=1,dn=0,Ta=0,rn=0,Ai=0,nn=null,Ti=0,ea=!1,qn=5126,pi=0,Fn=0,Pa=0,yt(ln)?(ca=!0,nn=Se.createStream(34962,ln),qn=nn.dtype):(nn=Se.getBuffer(ln),nn?qn=nn.dtype:"constant"in ln?(Kn=2,typeof ln.constant=="number"?(dn=ln.constant,Ta=rn=Ai=0):(dn=ln.constant.length>0?ln.constant[0]:0,Ta=ln.constant.length>1?ln.constant[1]:0,rn=ln.constant.length>2?ln.constant[2]:0,Ai=ln.constant.length>3?ln.constant[3]:0)):(yt(ln.buffer)?nn=Se.createStream(34962,ln.buffer):nn=Se.getBuffer(ln.buffer),qn="type"in ln?Fr[ln.type]:nn.dtype,ea=!!ln.normalized,Ti=ln.size|0,pi=ln.offset|0,Fn=ln.stride|0,Pa=ln.divisor|0)),pr=c.location,oi=ot[pr],Kn===1?(oi.buffer||ge.enableVertexAttribArray(pr),Ki=Ti||1,(oi.type!==qn||oi.size!==Ki||oi.buffer!==nn||oi.normalized!==ea||oi.offset!==pi||oi.stride!==Fn)&&(ge.bindBuffer(34962,nn.buffer),ge.vertexAttribPointer(pr,Ki,qn,ea,Fn,pi),oi.type=qn,oi.size=Ki,oi.buffer=nn,oi.normalized=ea,oi.offset=pi,oi.stride=Fn),oi.divisor!==Pa&&(ei.vertexAttribDivisorANGLE(pr,Pa),oi.divisor=Pa)):(oi.buffer&&(ge.disableVertexAttribArray(pr),oi.buffer=null),(oi.x!==dn||oi.y!==Ta||oi.z!==rn||oi.w!==Ai)&&(ge.vertexAttrib4f(pr,dn,Ta,rn,Ai),oi.x=dn,oi.y=Ta,oi.z=rn,oi.w=Ai)),Ui=h.call(this,Be,Li,0),pa=!1,Na=1,on=0,wn=0,Ra=0,ti=0,Yn=null,Ja=0,ja=!1,ka=5126,Ci=0,vn=0,Va=0,yt(Ui)?(pa=!0,Yn=Se.createStream(34962,Ui),ka=Yn.dtype):(Yn=Se.getBuffer(Ui),Yn?ka=Yn.dtype:"constant"in Ui?(Na=2,typeof Ui.constant=="number"?(on=Ui.constant,wn=Ra=ti=0):(on=Ui.constant.length>0?Ui.constant[0]:0,wn=Ui.constant.length>1?Ui.constant[1]:0,Ra=Ui.constant.length>2?Ui.constant[2]:0,ti=Ui.constant.length>3?Ui.constant[3]:0)):(yt(Ui.buffer)?Yn=Se.createStream(34962,Ui.buffer):Yn=Se.getBuffer(Ui.buffer),ka="type"in Ui?Fr[Ui.type]:Yn.dtype,ja=!!Ui.normalized,Ja=Ui.size|0,Ci=Ui.offset|0,vn=Ui.stride|0,Va=Ui.divisor|0)),Hi=d.location,zr=ot[Hi],Na===1?(zr.buffer||ge.enableVertexAttribArray(Hi),ni=Ja||4,(zr.type!==ka||zr.size!==ni||zr.buffer!==Yn||zr.normalized!==ja||zr.offset!==Ci||zr.stride!==vn)&&(ge.bindBuffer(34962,Yn.buffer),ge.vertexAttribPointer(Hi,ni,ka,ja,vn,Ci),zr.type=ka,zr.size=ni,zr.buffer=Yn,zr.normalized=ja,zr.offset=Ci,zr.stride=vn),zr.divisor!==Va&&(ei.vertexAttribDivisorANGLE(Hi,Va),zr.divisor=Va)):(zr.buffer&&(ge.disableVertexAttribArray(Hi),zr.buffer=null),(zr.x!==on||zr.y!==wn||zr.z!==Ra||zr.w!==ti)&&(ge.vertexAttrib4f(Hi,on,wn,Ra,ti),zr.x=on,zr.y=wn,zr.z=Ra,zr.w=ti)),bn=p.call(this,Be,Li,0),Bi=!1,vi=1,mr=0,Mi=0,Cn=0,jr=0,Xn=null,an=0,ta=!1,qi=5126,On=0,Nn=0,ia=0,yt(bn)?(Bi=!0,Xn=Se.createStream(34962,bn),qi=Xn.dtype):(Xn=Se.getBuffer(bn),Xn?qi=Xn.dtype:"constant"in bn?(vi=2,typeof bn.constant=="number"?(mr=bn.constant,Mi=Cn=jr=0):(mr=bn.constant.length>0?bn.constant[0]:0,Mi=bn.constant.length>1?bn.constant[1]:0,Cn=bn.constant.length>2?bn.constant[2]:0,jr=bn.constant.length>3?bn.constant[3]:0)):(yt(bn.buffer)?Xn=Se.createStream(34962,bn.buffer):Xn=Se.getBuffer(bn.buffer),qi="type"in bn?Fr[bn.type]:Xn.dtype,ta=!!bn.normalized,an=bn.size|0,On=bn.offset|0,Nn=bn.stride|0,ia=bn.divisor|0)),Qr=v.location,Di=ot[Qr],vi===1?(Di.buffer||ge.enableVertexAttribArray(Qr),fn=an||1,(Di.type!==qi||Di.size!==fn||Di.buffer!==Xn||Di.normalized!==ta||Di.offset!==On||Di.stride!==Nn)&&(ge.bindBuffer(34962,Xn.buffer),ge.vertexAttribPointer(Qr,fn,qi,ta,Nn,On),Di.type=qi,Di.size=fn,Di.buffer=Xn,Di.normalized=ta,Di.offset=On,Di.stride=Nn),Di.divisor!==ia&&(ei.vertexAttribDivisorANGLE(Qr,ia),Di.divisor=ia)):(Di.buffer&&(ge.disableVertexAttribArray(Qr),Di.buffer=null),(Di.x!==mr||Di.y!==Mi||Di.z!==Cn||Di.w!==jr)&&(ge.vertexAttrib4f(Qr,mr,Mi,Cn,jr),Di.x=mr,Di.y=Mi,Di.z=Cn,Di.w=jr)),Dn=y.call(this,Be,Li,0),Vn=!1,mn=1,qr=0,Pi=0,Ua=0,yi=0,Ma=null,Ba=0,Bn=!1,ji=5126,gn=0,jn=0,Un=0,yt(Dn)?(Vn=!0,Ma=Se.createStream(34962,Dn),ji=Ma.dtype):(Ma=Se.getBuffer(Dn),Ma?ji=Ma.dtype:"constant"in Dn?(mn=2,typeof Dn.constant=="number"?(qr=Dn.constant,Pi=Ua=yi=0):(qr=Dn.constant.length>0?Dn.constant[0]:0,Pi=Dn.constant.length>1?Dn.constant[1]:0,Ua=Dn.constant.length>2?Dn.constant[2]:0,yi=Dn.constant.length>3?Dn.constant[3]:0)):(yt(Dn.buffer)?Ma=Se.createStream(34962,Dn.buffer):Ma=Se.getBuffer(Dn.buffer),ji="type"in Dn?Fr[Dn.type]:Ma.dtype,Bn=!!Dn.normalized,Ba=Dn.size|0,gn=Dn.offset|0,jn=Dn.stride|0,Un=Dn.divisor|0)),Ii=m.location,gr=ot[Ii],mn===1?(gr.buffer||ge.enableVertexAttribArray(Ii),Ln=Ba||1,(gr.type!==ji||gr.size!==Ln||gr.buffer!==Ma||gr.normalized!==Bn||gr.offset!==gn||gr.stride!==jn)&&(ge.bindBuffer(34962,Ma.buffer),ge.vertexAttribPointer(Ii,Ln,ji,Bn,jn,gn),gr.type=ji,gr.size=Ln,gr.buffer=Ma,gr.normalized=Bn,gr.offset=gn,gr.stride=jn),gr.divisor!==Un&&(ei.vertexAttribDivisorANGLE(Ii,Un),gr.divisor=Un)):(gr.buffer&&(ge.disableVertexAttribArray(Ii),gr.buffer=null),(gr.x!==qr||gr.y!==Pi||gr.z!==Ua||gr.w!==yi)&&(ge.vertexAttrib4f(Ii,qr,Pi,Ua,yi),gr.x=qr,gr.y=Pi,gr.z=Ua,gr.w=yi)),xn=w.call(this,Be,Li,0),da=!1,Si=1,Kr=0,Gn=0,to=0,Jn=0,ro=null,mo=0,Oa=!1,Ei=5126,co=0,Pn=0,Fa=0,yt(xn)?(da=!0,ro=Se.createStream(34962,xn),Ei=ro.dtype):(ro=Se.getBuffer(xn),ro?Ei=ro.dtype:"constant"in xn?(Si=2,typeof xn.constant=="number"?(Kr=xn.constant,Gn=to=Jn=0):(Kr=xn.constant.length>0?xn.constant[0]:0,Gn=xn.constant.length>1?xn.constant[1]:0,to=xn.constant.length>2?xn.constant[2]:0,Jn=xn.constant.length>3?xn.constant[3]:0)):(yt(xn.buffer)?ro=Se.createStream(34962,xn.buffer):ro=Se.getBuffer(xn.buffer),Ei="type"in xn?Fr[xn.type]:ro.dtype,Oa=!!xn.normalized,mo=xn.size|0,co=xn.offset|0,Pn=xn.stride|0,Fa=xn.divisor|0)),oa=_.location,Hn=ot[oa],Si===1?(Hn.buffer||ge.enableVertexAttribArray(oa),va=mo||1,(Hn.type!==Ei||Hn.size!==va||Hn.buffer!==ro||Hn.normalized!==Oa||Hn.offset!==co||Hn.stride!==Pn)&&(ge.bindBuffer(34962,ro.buffer),ge.vertexAttribPointer(oa,va,Ei,Oa,Pn,co),Hn.type=Ei,Hn.size=va,Hn.buffer=ro,Hn.normalized=Oa,Hn.offset=co,Hn.stride=Pn),Hn.divisor!==Fa&&(ei.vertexAttribDivisorANGLE(oa,Fa),Hn.divisor=Fa)):(Hn.buffer&&(ge.disableVertexAttribArray(oa),Hn.buffer=null),(Hn.x!==Kr||Hn.y!==Gn||Hn.z!==to||Hn.w!==Jn)&&(ge.vertexAttrib4f(oa,Kr,Gn,to,Jn),Hn.x=Kr,Hn.y=Gn,Hn.z=to,Hn.w=Jn)),ma=b.call(this,Be,Li,0),Sa=!1,ki=1,Wr=0,An=0,Za=0,Ga=0,Ca=null,za=0,Wn=!1,Zi=5126,sa=0,So=0,ya=0,yt(ma)?(Sa=!0,Ca=Se.createStream(34962,ma),Zi=Ca.dtype):(Ca=Se.getBuffer(ma),Ca?Zi=Ca.dtype:"constant"in ma?(ki=2,typeof ma.constant=="number"?(Wr=ma.constant,An=Za=Ga=0):(Wr=ma.constant.length>0?ma.constant[0]:0,An=ma.constant.length>1?ma.constant[1]:0,Za=ma.constant.length>2?ma.constant[2]:0,Ga=ma.constant.length>3?ma.constant[3]:0)):(yt(ma.buffer)?Ca=Se.createStream(34962,ma.buffer):Ca=Se.getBuffer(ma.buffer),Zi="type"in ma?Fr[ma.type]:Ca.dtype,Wn=!!ma.normalized,za=ma.size|0,sa=ma.offset|0,So=ma.stride|0,ya=ma.divisor|0)),Qn=M.location,Tn=ot[Qn],ki===1?(Tn.buffer||ge.enableVertexAttribArray(Qn),Da=za||1,(Tn.type!==Zi||Tn.size!==Da||Tn.buffer!==Ca||Tn.normalized!==Wn||Tn.offset!==sa||Tn.stride!==So)&&(ge.bindBuffer(34962,Ca.buffer),ge.vertexAttribPointer(Qn,Da,Zi,Wn,So,sa),Tn.type=Zi,Tn.size=Da,Tn.buffer=Ca,Tn.normalized=Wn,Tn.offset=sa,Tn.stride=So),Tn.divisor!==ya&&(ei.vertexAttribDivisorANGLE(Qn,ya),Tn.divisor=ya)):(Tn.buffer&&(ge.disableVertexAttribArray(Qn),Tn.buffer=null),(Tn.x!==Wr||Tn.y!==An||Tn.z!==Za||Tn.w!==Ga)&&(ge.vertexAttrib4f(Qn,Wr,An,Za,Ga),Tn.x=Wr,Tn.y=An,Tn.z=Za,Tn.w=Ga)),zn=x.call(this,Be,Li,0),Ia=!1,Yi=1,In=0,Oi=0,la=0,ga=0,go=null,eo=0,Eo=!1,Mn=5126,To=0,Ya=0,Co=0,yt(zn)?(Ia=!0,go=Se.createStream(34962,zn),Mn=go.dtype):(go=Se.getBuffer(zn),go?Mn=go.dtype:"constant"in zn?(Yi=2,typeof zn.constant=="number"?(In=zn.constant,Oi=la=ga=0):(In=zn.constant.length>0?zn.constant[0]:0,Oi=zn.constant.length>1?zn.constant[1]:0,la=zn.constant.length>2?zn.constant[2]:0,ga=zn.constant.length>3?zn.constant[3]:0)):(yt(zn.buffer)?go=Se.createStream(34962,zn.buffer):go=Se.getBuffer(zn.buffer),Mn="type"in zn?Fr[zn.type]:go.dtype,Eo=!!zn.normalized,eo=zn.size|0,To=zn.offset|0,Ya=zn.stride|0,Co=zn.divisor|0)),Ri=T.location,qa=ot[Ri],Yi===1?(qa.buffer||ge.enableVertexAttribArray(Ri),Zn=eo||1,(qa.type!==Mn||qa.size!==Zn||qa.buffer!==go||qa.normalized!==Eo||qa.offset!==To||qa.stride!==Ya)&&(ge.bindBuffer(34962,go.buffer),ge.vertexAttribPointer(Ri,Zn,Mn,Eo,Ya,To),qa.type=Mn,qa.size=Zn,qa.buffer=go,qa.normalized=Eo,qa.offset=To,qa.stride=Ya),qa.divisor!==Co&&(ei.vertexAttribDivisorANGLE(Ri,Co),qa.divisor=Co)):(qa.buffer&&(ge.disableVertexAttribArray(Ri),qa.buffer=null),(qa.x!==In||qa.y!==Oi||qa.z!==la||qa.w!==ga)&&(ge.vertexAttrib4f(Ri,In,Oi,la,ga),qa.x=In,qa.y=Oi,qa.z=la,qa.w=ga)),Ha=A.call(this,Be,Li,0),Wa=!1,$a=1,Fe=0,Ve=0,lt=0,it=0,mt=null,Rt=0,qt=!1,Nt=5126,ar=0,Ir=0,$t=0,yt(Ha)?(Wa=!0,mt=Se.createStream(34962,Ha),Nt=mt.dtype):(mt=Se.getBuffer(Ha),mt?Nt=mt.dtype:"constant"in Ha?($a=2,typeof Ha.constant=="number"?(Fe=Ha.constant,Ve=lt=it=0):(Fe=Ha.constant.length>0?Ha.constant[0]:0,Ve=Ha.constant.length>1?Ha.constant[1]:0,lt=Ha.constant.length>2?Ha.constant[2]:0,it=Ha.constant.length>3?Ha.constant[3]:0)):(yt(Ha.buffer)?mt=Se.createStream(34962,Ha.buffer):mt=Se.getBuffer(Ha.buffer),Nt="type"in Ha?Fr[Ha.type]:mt.dtype,qt=!!Ha.normalized,Rt=Ha.size|0,ar=Ha.offset|0,Ir=Ha.stride|0,$t=Ha.divisor|0)),Bt=g.location,rr=ot[Bt],$a===1?(rr.buffer||ge.enableVertexAttribArray(Bt),Dr=Rt||1,(rr.type!==Nt||rr.size!==Dr||rr.buffer!==mt||rr.normalized!==qt||rr.offset!==ar||rr.stride!==Ir)&&(ge.bindBuffer(34962,mt.buffer),ge.vertexAttribPointer(Bt,Dr,Nt,qt,Ir,ar),rr.type=Nt,rr.size=Dr,rr.buffer=mt,rr.normalized=qt,rr.offset=ar,rr.stride=Ir),rr.divisor!==$t&&(ei.vertexAttribDivisorANGLE(Bt,$t),rr.divisor=$t)):(rr.buffer&&(ge.disableVertexAttribArray(Bt),rr.buffer=null),(rr.x!==Fe||rr.y!==Ve||rr.z!==lt||rr.w!==it)&&(ge.vertexAttrib4f(Bt,Fe,Ve,lt,it),rr.x=Fe,rr.y=Ve,rr.z=lt,rr.w=it)),ge.uniform1i(E.location,!1),Ur=Li.markerTexture,Ur&&Ur._reglType==="framebuffer"&&(Ur=Ur.color[0]),ai=Ur._texture,ge.uniform1i(S.location,ai.bind()),ci=Li.opacity,ge.uniform1f(C.location,ci),li=D.call(this,Be,Li,0),mi=li[0],xi=li[1],ge.uniform2f(k.location,mi,xi),ge.uniform1i(F.location,P.bind()),Ni=Be.pixelRatio,ge.uniform1f(I.location,Ni),ua=Li.scale,xa=ua[0],ao=ua[1],ge.uniform2f(L.location,xa,ao),ho=Li.scaleFract,Fo=ho[0],ls=ho[1],ge.uniform2f(z.location,Fo,ls),Io=Li.translate,Ps=Io[0],xs=Io[1],ge.uniform2f(B.location,Ps,xs),us=Li.translateFract,Vi=us[0],io=us[1],ge.uniform2f(O.location,Vi,io),ko=Li.elements,oo=null,xo=yt(ko),xo?oo=Pe.createStream(ko):oo=Pe.getElements(ko),oo&&ge.bindBuffer(34963,oo.buffer.buffer),bo=Li.offset,so=Li.count,so&&(Yo=Ue.instances,Yo>0?oo?ei.drawElementsInstancedANGLE(0,so,oo.type,bo<<(oo.type-5121>>1),Yo):ei.drawArraysInstancedANGLE(0,bo,so,Yo):Yo<0&&(oo?ge.drawElements(0,so,oo.type,bo<<(oo.type-5121>>1)):ge.drawArrays(0,bo,so)),De.dirty=!0,ut.setVAO(null),Be.viewportWidth=bt,Be.viewportHeight=lr,gi&&(r.cpuTime+=performance.now()-ui),un&&Se.destroyStream(Wi),ca&&Se.destroyStream(nn),pa&&Se.destroyStream(Yn),Bi&&Se.destroyStream(Xn),Vn&&Se.destroyStream(Ma),da&&Se.destroyStream(ro),Sa&&Se.destroyStream(Ca),Ia&&Se.destroyStream(go),Wa&&Se.destroyStream(mt),ai.unbind(),P.unbind(),xo&&Pe.destroyStream(oo))},scope:function(Li,nr,Kt){var Me,Xe,$e,Qe,gt,bt,lr,Ct,ur,Rr,Br,Vr,gi,ui,ei,Gi,un,Tt,wi,kn,ii,Pr,Wi,na,yn,$n,$i,en,_r,Zr,fi,aa,ln,ca,Kn,dn,Ta,rn,Ai,nn,Ti,ea,qn,pi,Fn,Pa,pr,oi,Ki,Ui,pa,Na,on,wn,Ra,ti,Yn,Ja,ja,ka,Ci,vn,Va,Hi,zr,ni,bn,Bi,vi,mr,Mi,Cn,jr,Xn,an,ta,qi,On,Nn,ia,Qr,Di,fn,Dn,Vn,mn,qr,Pi,Ua,yi,Ma,Ba,Bn,ji,gn,jn,Un,Ii,gr,Ln,xn,da,Si,Kr,Gn,to,Jn,ro,mo,Oa,Ei,co,Pn,Fa,oa,Hn,va,ma,Sa,ki,Wr,An,Za,Ga,Ca,za,Wn,Zi,sa,So,ya,Qn,Tn,Da,zn,Ia,Yi,In,Oi,la,ga,go,eo,Eo,Mn,To,Ya,Co,Ri,qa,Zn,Ha,Wa,$a,Fe,Ve,lt,it,mt,Rt,qt,Nt,ar,Ir,$t,Bt,rr,Dr,Ur,ai,ci,li,mi,xi,Ni,ua,xa,ao,ho,Fo,ls,Io,Ps,xs,us,Vi,io,ko,oo,xo,bo,so,Yo,Uo,es,jo,Qo,Ks,Ws,Ds,_s,as,Es,Mo,Go,qs,Ts,Dl,_l,wl,vl,Al,ml,Hl,Tl,yl,ae,ce,Te,Ce,Ne,Oe,He,ct,xt,vt,wt,Pt,Jt,cr,Nr,zi,Rn,fo,Xo,Bo,fs,cs,Ns,zl,Rs,Nl,ul,cl,vf,wf,_u,wu,ju,Au,ku,Af,mf,ef,Nf,oc,R,G,ee,he,ve,be,je,qe,Je,ht,pt,Lt,kt,Qt,Sr,It,Yt,sr,Ar,br,Xt,_n,ha,Xa,yo,Wo,Zo,Qs,rs,Us,jl,qu,Ql,po,el,nl,Vl,Cu,tf,Tf,sc;Me=Li.viewport,Xe=Me.x|0,$e=Me.y|0,Qe="width"in Me?Me.width|0:Be.framebufferWidth-Xe,gt="height"in Me?Me.height|0:Be.framebufferHeight-$e,bt=Be.viewportWidth,Be.viewportWidth=Qe,lr=Be.viewportHeight,Be.viewportHeight=gt,Ct=wr[0],wr[0]=Xe,ur=wr[1],wr[1]=$e,Rr=wr[2],wr[2]=Qe,Br=wr[3],wr[3]=gt,Vr=Mt[0],Mt[0]=W,gi=Mt[1],Mt[1]=X,ui=Mt[2],Mt[2]=Z,ei=Mt[3],Mt[3]=H,Gi=Le.blend_enable,Le.blend_enable=q,un=st[0],st[0]=Q,Tt=st[1],st[1]=N,wi=st[2],st[2]=U,kn=st[3],st[3]=J,ii=Le.depth_enable,Le.depth_enable=j,Pr=Li.viewport,Wi=Pr.x|0,na=Pr.y|0,yn="width"in Pr?Pr.width|0:Be.framebufferWidth-Wi,$n="height"in Pr?Pr.height|0:Be.framebufferHeight-na,$i=_i[0],_i[0]=Wi,en=_i[1],_i[1]=na,_r=_i[2],_i[2]=yn,Zr=_i[3],_i[3]=$n,fi=Le.scissor_enable,Le.scissor_enable=$,aa=Le.stencil_enable,Le.stencil_enable=ie,ln=De.profile,ln&&(ca=performance.now(),r.count++),Kn=Li.elements,dn=null,Ta=yt(Kn),Ta?dn=Pe.createStream(Kn):dn=Pe.getElements(Kn),rn=Ue.elements,Ue.elements=dn,Ai=Li.offset,nn=Ue.offset,Ue.offset=Ai,Ti=Li.count,ea=Ue.count,Ue.count=Ti,qn=Ue.primitive,Ue.primitive=re,pi=_t[de],_t[de]=!1,Fn=_t[ze],_t[ze]=me,Pa=Li.opacity,pr=_t[ke],_t[ke]=Pa,oi=D.call(this,Be,Li,Kt),Ki=_t[le],_t[le]=oi,Ui=Be.pixelRatio,pa=_t[te],_t[te]=Ui,Na=Li.scale,on=_t[Ee],_t[Ee]=Na,wn=Li.scaleFract,Ra=_t[we],_t[we]=wn,ti=Li.translate,Yn=_t[oe],_t[oe]=ti,Ja=Li.translateFract,ja=_t[Y],_t[Y]=Ja,ka=Li.markerTexture,Ci=_t[ne],_t[ne]=ka,vn=w.call(this,Be,Li,Kt),Va=!1,Hi=1,zr=0,ni=0,bn=0,Bi=0,vi=null,mr=0,Mi=!1,Cn=5126,jr=0,Xn=0,an=0,yt(vn)?(Va=!0,vi=Se.createStream(34962,vn),Cn=vi.dtype):(vi=Se.getBuffer(vn),vi?Cn=vi.dtype:"constant"in vn?(Hi=2,typeof vn.constant=="number"?(zr=vn.constant,ni=bn=Bi=0):(zr=vn.constant.length>0?vn.constant[0]:0,ni=vn.constant.length>1?vn.constant[1]:0,bn=vn.constant.length>2?vn.constant[2]:0,Bi=vn.constant.length>3?vn.constant[3]:0)):(yt(vn.buffer)?vi=Se.createStream(34962,vn.buffer):vi=Se.getBuffer(vn.buffer),Cn="type"in vn?Fr[vn.type]:vi.dtype,Mi=!!vn.normalized,mr=vn.size|0,jr=vn.offset|0,Xn=vn.stride|0,an=vn.divisor|0)),ta=ye.state,ye.state=Hi,qi=ye.x,ye.x=zr,On=ye.y,ye.y=ni,Nn=ye.z,ye.z=bn,ia=ye.w,ye.w=Bi,Qr=ye.buffer,ye.buffer=vi,Di=ye.size,ye.size=mr,fn=ye.normalized,ye.normalized=Mi,Dn=ye.type,ye.type=Cn,Vn=ye.offset,ye.offset=jr,mn=ye.stride,ye.stride=Xn,qr=ye.divisor,ye.divisor=an,Pi=x.call(this,Be,Li,Kt),Ua=!1,yi=1,Ma=0,Ba=0,Bn=0,ji=0,gn=null,jn=0,Un=!1,Ii=5126,gr=0,Ln=0,xn=0,yt(Pi)?(Ua=!0,gn=Se.createStream(34962,Pi),Ii=gn.dtype):(gn=Se.getBuffer(Pi),gn?Ii=gn.dtype:"constant"in Pi?(yi=2,typeof Pi.constant=="number"?(Ma=Pi.constant,Ba=Bn=ji=0):(Ma=Pi.constant.length>0?Pi.constant[0]:0,Ba=Pi.constant.length>1?Pi.constant[1]:0,Bn=Pi.constant.length>2?Pi.constant[2]:0,ji=Pi.constant.length>3?Pi.constant[3]:0)):(yt(Pi.buffer)?gn=Se.createStream(34962,Pi.buffer):gn=Se.getBuffer(Pi.buffer),Ii="type"in Pi?Fr[Pi.type]:gn.dtype,Un=!!Pi.normalized,jn=Pi.size|0,gr=Pi.offset|0,Ln=Pi.stride|0,xn=Pi.divisor|0)),da=V.state,V.state=yi,Si=V.x,V.x=Ma,Kr=V.y,V.y=Ba,Gn=V.z,V.z=Bn,to=V.w,V.w=ji,Jn=V.buffer,V.buffer=gn,ro=V.size,V.size=jn,mo=V.normalized,V.normalized=Un,Oa=V.type,V.type=Ii,Ei=V.offset,V.offset=gr,co=V.stride,V.stride=Ln,Pn=V.divisor,V.divisor=xn,Fa=b.call(this,Be,Li,Kt),oa=!1,Hn=1,va=0,ma=0,Sa=0,ki=0,Wr=null,An=0,Za=!1,Ga=5126,Ca=0,za=0,Wn=0,yt(Fa)?(oa=!0,Wr=Se.createStream(34962,Fa),Ga=Wr.dtype):(Wr=Se.getBuffer(Fa),Wr?Ga=Wr.dtype:"constant"in Fa?(Hn=2,typeof Fa.constant=="number"?(va=Fa.constant,ma=Sa=ki=0):(va=Fa.constant.length>0?Fa.constant[0]:0,ma=Fa.constant.length>1?Fa.constant[1]:0,Sa=Fa.constant.length>2?Fa.constant[2]:0,ki=Fa.constant.length>3?Fa.constant[3]:0)):(yt(Fa.buffer)?Wr=Se.createStream(34962,Fa.buffer):Wr=Se.getBuffer(Fa.buffer),Ga="type"in Fa?Fr[Fa.type]:Wr.dtype,Za=!!Fa.normalized,An=Fa.size|0,Ca=Fa.offset|0,za=Fa.stride|0,Wn=Fa.divisor|0)),Zi=ue.state,ue.state=Hn,sa=ue.x,ue.x=va,So=ue.y,ue.y=ma,ya=ue.z,ue.z=Sa,Qn=ue.w,ue.w=ki,Tn=ue.buffer,ue.buffer=Wr,Da=ue.size,ue.size=An,zn=ue.normalized,ue.normalized=Za,Ia=ue.type,ue.type=Ga,Yi=ue.offset,ue.offset=Ca,In=ue.stride,ue.stride=za,Oi=ue.divisor,ue.divisor=Wn,la=A.call(this,Be,Li,Kt),ga=!1,go=1,eo=0,Eo=0,Mn=0,To=0,Ya=null,Co=0,Ri=!1,qa=5126,Zn=0,Ha=0,Wa=0,yt(la)?(ga=!0,Ya=Se.createStream(34962,la),qa=Ya.dtype):(Ya=Se.getBuffer(la),Ya?qa=Ya.dtype:"constant"in la?(go=2,typeof la.constant=="number"?(eo=la.constant,Eo=Mn=To=0):(eo=la.constant.length>0?la.constant[0]:0,Eo=la.constant.length>1?la.constant[1]:0,Mn=la.constant.length>2?la.constant[2]:0,To=la.constant.length>3?la.constant[3]:0)):(yt(la.buffer)?Ya=Se.createStream(34962,la.buffer):Ya=Se.getBuffer(la.buffer),qa="type"in la?Fr[la.type]:Ya.dtype,Ri=!!la.normalized,Co=la.size|0,Zn=la.offset|0,Ha=la.stride|0,Wa=la.divisor|0)),$a=_e.state,_e.state=go,Fe=_e.x,_e.x=eo,Ve=_e.y,_e.y=Eo,lt=_e.z,_e.z=Mn,it=_e.w,_e.w=To,mt=_e.buffer,_e.buffer=Ya,Rt=_e.size,_e.size=Co,qt=_e.normalized,_e.normalized=Ri,Nt=_e.type,_e.type=qa,ar=_e.offset,_e.offset=Zn,Ir=_e.stride,_e.stride=Ha,$t=_e.divisor,_e.divisor=Wa,Bt=y.call(this,Be,Li,Kt),rr=!1,Dr=1,Ur=0,ai=0,ci=0,li=0,mi=null,xi=0,Ni=!1,ua=5126,xa=0,ao=0,ho=0,yt(Bt)?(rr=!0,mi=Se.createStream(34962,Bt),ua=mi.dtype):(mi=Se.getBuffer(Bt),mi?ua=mi.dtype:"constant"in Bt?(Dr=2,typeof Bt.constant=="number"?(Ur=Bt.constant,ai=ci=li=0):(Ur=Bt.constant.length>0?Bt.constant[0]:0,ai=Bt.constant.length>1?Bt.constant[1]:0,ci=Bt.constant.length>2?Bt.constant[2]:0,li=Bt.constant.length>3?Bt.constant[3]:0)):(yt(Bt.buffer)?mi=Se.createStream(34962,Bt.buffer):mi=Se.getBuffer(Bt.buffer),ua="type"in Bt?Fr[Bt.type]:mi.dtype,Ni=!!Bt.normalized,xi=Bt.size|0,xa=Bt.offset|0,ao=Bt.stride|0,ho=Bt.divisor|0)),Fo=xe.state,xe.state=Dr,ls=xe.x,xe.x=Ur,Io=xe.y,xe.y=ai,Ps=xe.z,xe.z=ci,xs=xe.w,xe.w=li,us=xe.buffer,xe.buffer=mi,Vi=xe.size,xe.size=xi,io=xe.normalized,xe.normalized=Ni,ko=xe.type,xe.type=ua,oo=xe.offset,xe.offset=xa,xo=xe.stride,xe.stride=ao,bo=xe.divisor,xe.divisor=ho,so=f.call(this,Be,Li,Kt),Yo=!1,Uo=1,es=0,jo=0,Qo=0,Ks=0,Ws=null,Ds=0,_s=!1,as=5126,Es=0,Mo=0,Go=0,yt(so)?(Yo=!0,Ws=Se.createStream(34962,so),as=Ws.dtype):(Ws=Se.getBuffer(so),Ws?as=Ws.dtype:"constant"in so?(Uo=2,typeof so.constant=="number"?(es=so.constant,jo=Qo=Ks=0):(es=so.constant.length>0?so.constant[0]:0,jo=so.constant.length>1?so.constant[1]:0,Qo=so.constant.length>2?so.constant[2]:0,Ks=so.constant.length>3?so.constant[3]:0)):(yt(so.buffer)?Ws=Se.createStream(34962,so.buffer):Ws=Se.getBuffer(so.buffer),as="type"in so?Fr[so.type]:Ws.dtype,_s=!!so.normalized,Ds=so.size|0,Es=so.offset|0,Mo=so.stride|0,Go=so.divisor|0)),qs=Ae.state,Ae.state=Uo,Ts=Ae.x,Ae.x=es,Dl=Ae.y,Ae.y=jo,_l=Ae.z,Ae.z=Qo,wl=Ae.w,Ae.w=Ks,vl=Ae.buffer,Ae.buffer=Ws,Al=Ae.size,Ae.size=Ds,ml=Ae.normalized,Ae.normalized=_s,Hl=Ae.type,Ae.type=as,Tl=Ae.offset,Ae.offset=Es,yl=Ae.stride,Ae.stride=Mo,ae=Ae.divisor,Ae.divisor=Go,ce=h.call(this,Be,Li,Kt),Te=!1,Ce=1,Ne=0,Oe=0,He=0,ct=0,xt=null,vt=0,wt=!1,Pt=5126,Jt=0,cr=0,Nr=0,yt(ce)?(Te=!0,xt=Se.createStream(34962,ce),Pt=xt.dtype):(xt=Se.getBuffer(ce),xt?Pt=xt.dtype:"constant"in ce?(Ce=2,typeof ce.constant=="number"?(Ne=ce.constant,Oe=He=ct=0):(Ne=ce.constant.length>0?ce.constant[0]:0,Oe=ce.constant.length>1?ce.constant[1]:0,He=ce.constant.length>2?ce.constant[2]:0,ct=ce.constant.length>3?ce.constant[3]:0)):(yt(ce.buffer)?xt=Se.createStream(34962,ce.buffer):xt=Se.getBuffer(ce.buffer),Pt="type"in ce?Fr[ce.type]:xt.dtype,wt=!!ce.normalized,vt=ce.size|0,Jt=ce.offset|0,cr=ce.stride|0,Nr=ce.divisor|0)),zi=se.state,se.state=Ce,Rn=se.x,se.x=Ne,fo=se.y,se.y=Oe,Xo=se.z,se.z=He,Bo=se.w,se.w=ct,fs=se.buffer,se.buffer=xt,cs=se.size,se.size=vt,Ns=se.normalized,se.normalized=wt,zl=se.type,se.type=Pt,Rs=se.offset,se.offset=Jt,Nl=se.stride,se.stride=cr,ul=se.divisor,se.divisor=Nr,cl=l.call(this,Be,Li,Kt),vf=!1,wf=1,_u=0,wu=0,ju=0,Au=0,ku=null,Af=0,mf=!1,ef=5126,Nf=0,oc=0,R=0,yt(cl)?(vf=!0,ku=Se.createStream(34962,cl),ef=ku.dtype):(ku=Se.getBuffer(cl),ku?ef=ku.dtype:"constant"in cl?(wf=2,typeof cl.constant=="number"?(_u=cl.constant,wu=ju=Au=0):(_u=cl.constant.length>0?cl.constant[0]:0,wu=cl.constant.length>1?cl.constant[1]:0,ju=cl.constant.length>2?cl.constant[2]:0,Au=cl.constant.length>3?cl.constant[3]:0)):(yt(cl.buffer)?ku=Se.createStream(34962,cl.buffer):ku=Se.getBuffer(cl.buffer),ef="type"in cl?Fr[cl.type]:ku.dtype,mf=!!cl.normalized,Af=cl.size|0,Nf=cl.offset|0,oc=cl.stride|0,R=cl.divisor|0)),G=pe.state,pe.state=wf,ee=pe.x,pe.x=_u,he=pe.y,pe.y=wu,ve=pe.z,pe.z=ju,be=pe.w,pe.w=Au,je=pe.buffer,pe.buffer=ku,qe=pe.size,pe.size=Af,Je=pe.normalized,pe.normalized=mf,ht=pe.type,pe.type=ef,pt=pe.offset,pe.offset=Nf,Lt=pe.stride,pe.stride=oc,kt=pe.divisor,pe.divisor=R,Qt=p.call(this,Be,Li,Kt),Sr=!1,It=1,Yt=0,sr=0,Ar=0,br=0,Xt=null,_n=0,ha=!1,Xa=5126,yo=0,Wo=0,Zo=0,yt(Qt)?(Sr=!0,Xt=Se.createStream(34962,Qt),Xa=Xt.dtype):(Xt=Se.getBuffer(Qt),Xt?Xa=Xt.dtype:"constant"in Qt?(It=2,typeof Qt.constant=="number"?(Yt=Qt.constant,sr=Ar=br=0):(Yt=Qt.constant.length>0?Qt.constant[0]:0,sr=Qt.constant.length>1?Qt.constant[1]:0,Ar=Qt.constant.length>2?Qt.constant[2]:0,br=Qt.constant.length>3?Qt.constant[3]:0)):(yt(Qt.buffer)?Xt=Se.createStream(34962,Qt.buffer):Xt=Se.getBuffer(Qt.buffer),Xa="type"in Qt?Fr[Qt.type]:Xt.dtype,ha=!!Qt.normalized,_n=Qt.size|0,yo=Qt.offset|0,Wo=Qt.stride|0,Zo=Qt.divisor|0)),Qs=fe.state,fe.state=It,rs=fe.x,fe.x=Yt,Us=fe.y,fe.y=sr,jl=fe.z,fe.z=Ar,qu=fe.w,fe.w=br,Ql=fe.buffer,fe.buffer=Xt,po=fe.size,fe.size=_n,el=fe.normalized,fe.normalized=ha,nl=fe.type,fe.type=Xa,Vl=fe.offset,fe.offset=yo,Cu=fe.stride,fe.stride=Wo,tf=fe.divisor,fe.divisor=Zo,Tf=Ie.vert,Ie.vert=Re,sc=Ie.frag,Ie.frag=We,De.dirty=!0,nr(Be,Li,Kt),Be.viewportWidth=bt,Be.viewportHeight=lr,wr[0]=Ct,wr[1]=ur,wr[2]=Rr,wr[3]=Br,Mt[0]=Vr,Mt[1]=gi,Mt[2]=ui,Mt[3]=ei,Le.blend_enable=Gi,st[0]=un,st[1]=Tt,st[2]=wi,st[3]=kn,Le.depth_enable=ii,_i[0]=$i,_i[1]=en,_i[2]=_r,_i[3]=Zr,Le.scissor_enable=fi,Le.stencil_enable=aa,ln&&(r.cpuTime+=performance.now()-ca),Ta&&Pe.destroyStream(dn),Ue.elements=rn,Ue.offset=nn,Ue.count=ea,Ue.primitive=qn,_t[de]=pi,_t[ze]=Fn,_t[ke]=pr,_t[le]=Ki,_t[te]=pa,_t[Ee]=on,_t[we]=Ra,_t[oe]=Yn,_t[Y]=ja,_t[ne]=Ci,Va&&Se.destroyStream(vi),ye.state=ta,ye.x=qi,ye.y=On,ye.z=Nn,ye.w=ia,ye.buffer=Qr,ye.size=Di,ye.normalized=fn,ye.type=Dn,ye.offset=Vn,ye.stride=mn,ye.divisor=qr,Ua&&Se.destroyStream(gn),V.state=da,V.x=Si,V.y=Kr,V.z=Gn,V.w=to,V.buffer=Jn,V.size=ro,V.normalized=mo,V.type=Oa,V.offset=Ei,V.stride=co,V.divisor=Pn,oa&&Se.destroyStream(Wr),ue.state=Zi,ue.x=sa,ue.y=So,ue.z=ya,ue.w=Qn,ue.buffer=Tn,ue.size=Da,ue.normalized=zn,ue.type=Ia,ue.offset=Yi,ue.stride=In,ue.divisor=Oi,ga&&Se.destroyStream(Ya),_e.state=$a,_e.x=Fe,_e.y=Ve,_e.z=lt,_e.w=it,_e.buffer=mt,_e.size=Rt,_e.normalized=qt,_e.type=Nt,_e.offset=ar,_e.stride=Ir,_e.divisor=$t,rr&&Se.destroyStream(mi),xe.state=Fo,xe.x=ls,xe.y=Io,xe.z=Ps,xe.w=xs,xe.buffer=us,xe.size=Vi,xe.normalized=io,xe.type=ko,xe.offset=oo,xe.stride=xo,xe.divisor=bo,Yo&&Se.destroyStream(Ws),Ae.state=qs,Ae.x=Ts,Ae.y=Dl,Ae.z=_l,Ae.w=wl,Ae.buffer=vl,Ae.size=Al,Ae.normalized=ml,Ae.type=Hl,Ae.offset=Tl,Ae.stride=yl,Ae.divisor=ae,Te&&Se.destroyStream(xt),se.state=zi,se.x=Rn,se.y=fo,se.z=Xo,se.w=Bo,se.buffer=fs,se.size=cs,se.normalized=Ns,se.type=zl,se.offset=Rs,se.stride=Nl,se.divisor=ul,vf&&Se.destroyStream(ku),pe.state=G,pe.x=ee,pe.y=he,pe.z=ve,pe.w=be,pe.buffer=je,pe.size=qe,pe.normalized=Je,pe.type=ht,pe.offset=pt,pe.stride=Lt,pe.divisor=kt,Sr&&Se.destroyStream(Xt),fe.state=Qs,fe.x=rs,fe.y=Us,fe.z=jl,fe.w=qu,fe.buffer=Ql,fe.size=po,fe.normalized=el,fe.type=nl,fe.offset=Vl,fe.stride=Cu,fe.divisor=tf,Ie.vert=Tf,Ie.frag=sc,De.dirty=!0},batch:function(Li,nr){var Kt,Me,Xe,$e,Qe,gt,bt;if(Kt=Gt.angle_instanced_arrays,Me=At.next,Me!==At.cur&&(Me?ge.bindFramebuffer(36160,Me.framebuffer):ge.bindFramebuffer(36160,null),At.cur=Me),De.dirty){var lr,Ct,ur,Rr,Br,Vr,gi,ui,ei,Gi,un,Tt,wi,kn,ii,Pr,Wi,na,yn,$n,$i,en,_r,Zr,fi,aa,ln,ca,Kn,dn,Ta,rn,Ai,nn;lr=Le.dither,lr!==De.dither&&(lr?ge.enable(3024):ge.disable(3024),De.dither=lr),Ct=Ye[0],ur=Ye[1],(Ct!==nt[0]||ur!==nt[1])&&(ge.blendEquationSeparate(Ct,ur),nt[0]=Ct,nt[1]=ur),Rr=Le.depth_func,Rr!==De.depth_func&&(ge.depthFunc(Rr),De.depth_func=Rr),Br=rt[0],Vr=rt[1],(Br!==ft[0]||Vr!==ft[1])&&(ge.depthRange(Br,Vr),ft[0]=Br,ft[1]=Vr),gi=Le.depth_mask,gi!==De.depth_mask&&(ge.depthMask(gi),De.depth_mask=gi),ui=Ft[0],ei=Ft[1],Gi=Ft[2],un=Ft[3],(ui!==Et[0]||ei!==Et[1]||Gi!==Et[2]||un!==Et[3])&&(ge.colorMask(ui,ei,Gi,un),Et[0]=ui,Et[1]=ei,Et[2]=Gi,Et[3]=un),Tt=Le.cull_enable,Tt!==De.cull_enable&&(Tt?ge.enable(2884):ge.disable(2884),De.cull_enable=Tt),wi=Le.cull_face,wi!==De.cull_face&&(ge.cullFace(wi),De.cull_face=wi),kn=Le.frontFace,kn!==De.frontFace&&(ge.frontFace(kn),De.frontFace=kn),ii=Le.lineWidth,ii!==De.lineWidth&&(ge.lineWidth(ii),De.lineWidth=ii),Pr=Le.polygonOffset_enable,Pr!==De.polygonOffset_enable&&(Pr?ge.enable(32823):ge.disable(32823),De.polygonOffset_enable=Pr),Wi=er[0],na=er[1],(Wi!==xr[0]||na!==xr[1])&&(ge.polygonOffset(Wi,na),xr[0]=Wi,xr[1]=na),yn=Le.sample_alpha,yn!==De.sample_alpha&&(yn?ge.enable(32926):ge.disable(32926),De.sample_alpha=yn),$n=Le.sample_enable,$n!==De.sample_enable&&($n?ge.enable(32928):ge.disable(32928),De.sample_enable=$n),$i=kr[0],en=kr[1],($i!==fr[0]||en!==fr[1])&&(ge.sampleCoverage($i,en),fr[0]=$i,fr[1]=en),_r=Le.stencil_mask,_r!==De.stencil_mask&&(ge.stencilMask(_r),De.stencil_mask=_r),Zr=Yr[0],fi=Yr[1],aa=Yr[2],(Zr!==Or[0]||fi!==Or[1]||aa!==Or[2])&&(ge.stencilFunc(Zr,fi,aa),Or[0]=Zr,Or[1]=fi,Or[2]=aa),ln=ri[0],ca=ri[1],Kn=ri[2],dn=ri[3],(ln!==Tr[0]||ca!==Tr[1]||Kn!==Tr[2]||dn!==Tr[3])&&(ge.stencilOpSeparate(ln,ca,Kn,dn),Tr[0]=ln,Tr[1]=ca,Tr[2]=Kn,Tr[3]=dn),Ta=Mr[0],rn=Mr[1],Ai=Mr[2],nn=Mr[3],(Ta!==Gr[0]||rn!==Gr[1]||Ai!==Gr[2]||nn!==Gr[3])&&(ge.stencilOpSeparate(Ta,rn,Ai,nn),Gr[0]=Ta,Gr[1]=rn,Gr[2]=Ai,Gr[3]=nn)}ge.blendColor(0,0,0,1),tr[0]=0,tr[1]=0,tr[2]=0,tr[3]=1,Ke?ge.enable(3042):ge.disable(3042),De.blend_enable=Ke,ge.blendFuncSeparate(770,771,773,1),dt[0]=770,dt[1]=771,dt[2]=773,dt[3]=1,tt?ge.enable(2929):ge.disable(2929),De.depth_enable=tt,at?ge.enable(3089):ge.disable(3089),De.scissor_enable=at,Ge?ge.enable(2960):ge.disable(2960),De.stencil_enable=Ge,Xe=De.profile,Xe&&($e=performance.now(),r.count+=nr),ge.useProgram(s.program),Qe=Gt.angle_instanced_arrays;var Ti;for(ut.setVAO(null),ge.uniform1i(E.location,!1),ge.uniform1i(F.location,P.bind()),Ti=Ue.instances,gt=0;gt0?wn.constant[0]:0,Ja=wn.constant.length>1?wn.constant[1]:0,ja=wn.constant.length>2?wn.constant[2]:0,ka=wn.constant.length>3?wn.constant[3]:0)):(yt(wn.buffer)?Ci=Se.createStream(34962,wn.buffer):Ci=Se.getBuffer(wn.buffer),Hi="type"in wn?Fr[wn.type]:Ci.dtype,Va=!!wn.normalized,vn=wn.size|0,zr=wn.offset|0,ni=wn.stride|0,bn=wn.divisor|0)),Bi=u.location,vi=ot[Bi],ti===1?(vi.buffer||ge.enableVertexAttribArray(Bi),mr=vn||4,(vi.type!==Hi||vi.size!==mr||vi.buffer!==Ci||vi.normalized!==Va||vi.offset!==zr||vi.stride!==ni)&&(ge.bindBuffer(34962,Ci.buffer),ge.vertexAttribPointer(Bi,mr,Hi,Va,ni,zr),vi.type=Hi,vi.size=mr,vi.buffer=Ci,vi.normalized=Va,vi.offset=zr,vi.stride=ni),vi.divisor!==bn&&(Qe.vertexAttribDivisorANGLE(Bi,bn),vi.divisor=bn)):(vi.buffer&&(ge.disableVertexAttribArray(Bi),vi.buffer=null),(vi.x!==Yn||vi.y!==Ja||vi.z!==ja||vi.w!==ka)&&(ge.vertexAttrib4f(Bi,Yn,Ja,ja,ka),vi.x=Yn,vi.y=Ja,vi.z=ja,vi.w=ka)),Mi=f.call(this,Be,bt,gt),Cn=!1,jr=1,Xn=0,an=0,ta=0,qi=0,On=null,Nn=0,ia=!1,Qr=5126,Di=0,fn=0,Dn=0,yt(Mi)?(Cn=!0,On=Se.createStream(34962,Mi),Qr=On.dtype):(On=Se.getBuffer(Mi),On?Qr=On.dtype:"constant"in Mi?(jr=2,typeof Mi.constant=="number"?(Xn=Mi.constant,an=ta=qi=0):(Xn=Mi.constant.length>0?Mi.constant[0]:0,an=Mi.constant.length>1?Mi.constant[1]:0,ta=Mi.constant.length>2?Mi.constant[2]:0,qi=Mi.constant.length>3?Mi.constant[3]:0)):(yt(Mi.buffer)?On=Se.createStream(34962,Mi.buffer):On=Se.getBuffer(Mi.buffer),Qr="type"in Mi?Fr[Mi.type]:On.dtype,ia=!!Mi.normalized,Nn=Mi.size|0,Di=Mi.offset|0,fn=Mi.stride|0,Dn=Mi.divisor|0)),Vn=c.location,mn=ot[Vn],jr===1?(mn.buffer||ge.enableVertexAttribArray(Vn),qr=Nn||1,(mn.type!==Qr||mn.size!==qr||mn.buffer!==On||mn.normalized!==ia||mn.offset!==Di||mn.stride!==fn)&&(ge.bindBuffer(34962,On.buffer),ge.vertexAttribPointer(Vn,qr,Qr,ia,fn,Di),mn.type=Qr,mn.size=qr,mn.buffer=On,mn.normalized=ia,mn.offset=Di,mn.stride=fn),mn.divisor!==Dn&&(Qe.vertexAttribDivisorANGLE(Vn,Dn),mn.divisor=Dn)):(mn.buffer&&(ge.disableVertexAttribArray(Vn),mn.buffer=null),(mn.x!==Xn||mn.y!==an||mn.z!==ta||mn.w!==qi)&&(ge.vertexAttrib4f(Vn,Xn,an,ta,qi),mn.x=Xn,mn.y=an,mn.z=ta,mn.w=qi)),Pi=h.call(this,Be,bt,gt),Ua=!1,yi=1,Ma=0,Ba=0,Bn=0,ji=0,gn=null,jn=0,Un=!1,Ii=5126,gr=0,Ln=0,xn=0,yt(Pi)?(Ua=!0,gn=Se.createStream(34962,Pi),Ii=gn.dtype):(gn=Se.getBuffer(Pi),gn?Ii=gn.dtype:"constant"in Pi?(yi=2,typeof Pi.constant=="number"?(Ma=Pi.constant,Ba=Bn=ji=0):(Ma=Pi.constant.length>0?Pi.constant[0]:0,Ba=Pi.constant.length>1?Pi.constant[1]:0,Bn=Pi.constant.length>2?Pi.constant[2]:0,ji=Pi.constant.length>3?Pi.constant[3]:0)):(yt(Pi.buffer)?gn=Se.createStream(34962,Pi.buffer):gn=Se.getBuffer(Pi.buffer),Ii="type"in Pi?Fr[Pi.type]:gn.dtype,Un=!!Pi.normalized,jn=Pi.size|0,gr=Pi.offset|0,Ln=Pi.stride|0,xn=Pi.divisor|0)),da=d.location,Si=ot[da],yi===1?(Si.buffer||ge.enableVertexAttribArray(da),Kr=jn||4,(Si.type!==Ii||Si.size!==Kr||Si.buffer!==gn||Si.normalized!==Un||Si.offset!==gr||Si.stride!==Ln)&&(ge.bindBuffer(34962,gn.buffer),ge.vertexAttribPointer(da,Kr,Ii,Un,Ln,gr),Si.type=Ii,Si.size=Kr,Si.buffer=gn,Si.normalized=Un,Si.offset=gr,Si.stride=Ln),Si.divisor!==xn&&(Qe.vertexAttribDivisorANGLE(da,xn),Si.divisor=xn)):(Si.buffer&&(ge.disableVertexAttribArray(da),Si.buffer=null),(Si.x!==Ma||Si.y!==Ba||Si.z!==Bn||Si.w!==ji)&&(ge.vertexAttrib4f(da,Ma,Ba,Bn,ji),Si.x=Ma,Si.y=Ba,Si.z=Bn,Si.w=ji)),Gn=p.call(this,Be,bt,gt),to=!1,Jn=1,ro=0,mo=0,Oa=0,Ei=0,co=null,Pn=0,Fa=!1,oa=5126,Hn=0,va=0,ma=0,yt(Gn)?(to=!0,co=Se.createStream(34962,Gn),oa=co.dtype):(co=Se.getBuffer(Gn),co?oa=co.dtype:"constant"in Gn?(Jn=2,typeof Gn.constant=="number"?(ro=Gn.constant,mo=Oa=Ei=0):(ro=Gn.constant.length>0?Gn.constant[0]:0,mo=Gn.constant.length>1?Gn.constant[1]:0,Oa=Gn.constant.length>2?Gn.constant[2]:0,Ei=Gn.constant.length>3?Gn.constant[3]:0)):(yt(Gn.buffer)?co=Se.createStream(34962,Gn.buffer):co=Se.getBuffer(Gn.buffer),oa="type"in Gn?Fr[Gn.type]:co.dtype,Fa=!!Gn.normalized,Pn=Gn.size|0,Hn=Gn.offset|0,va=Gn.stride|0,ma=Gn.divisor|0)),Sa=v.location,ki=ot[Sa],Jn===1?(ki.buffer||ge.enableVertexAttribArray(Sa),Wr=Pn||1,(ki.type!==oa||ki.size!==Wr||ki.buffer!==co||ki.normalized!==Fa||ki.offset!==Hn||ki.stride!==va)&&(ge.bindBuffer(34962,co.buffer),ge.vertexAttribPointer(Sa,Wr,oa,Fa,va,Hn),ki.type=oa,ki.size=Wr,ki.buffer=co,ki.normalized=Fa,ki.offset=Hn,ki.stride=va),ki.divisor!==ma&&(Qe.vertexAttribDivisorANGLE(Sa,ma),ki.divisor=ma)):(ki.buffer&&(ge.disableVertexAttribArray(Sa),ki.buffer=null),(ki.x!==ro||ki.y!==mo||ki.z!==Oa||ki.w!==Ei)&&(ge.vertexAttrib4f(Sa,ro,mo,Oa,Ei),ki.x=ro,ki.y=mo,ki.z=Oa,ki.w=Ei)),An=y.call(this,Be,bt,gt),Za=!1,Ga=1,Ca=0,za=0,Wn=0,Zi=0,sa=null,So=0,ya=!1,Qn=5126,Tn=0,Da=0,zn=0,yt(An)?(Za=!0,sa=Se.createStream(34962,An),Qn=sa.dtype):(sa=Se.getBuffer(An),sa?Qn=sa.dtype:"constant"in An?(Ga=2,typeof An.constant=="number"?(Ca=An.constant,za=Wn=Zi=0):(Ca=An.constant.length>0?An.constant[0]:0,za=An.constant.length>1?An.constant[1]:0,Wn=An.constant.length>2?An.constant[2]:0,Zi=An.constant.length>3?An.constant[3]:0)):(yt(An.buffer)?sa=Se.createStream(34962,An.buffer):sa=Se.getBuffer(An.buffer),Qn="type"in An?Fr[An.type]:sa.dtype,ya=!!An.normalized,So=An.size|0,Tn=An.offset|0,Da=An.stride|0,zn=An.divisor|0)),Ia=m.location,Yi=ot[Ia],Ga===1?(Yi.buffer||ge.enableVertexAttribArray(Ia),In=So||1,(Yi.type!==Qn||Yi.size!==In||Yi.buffer!==sa||Yi.normalized!==ya||Yi.offset!==Tn||Yi.stride!==Da)&&(ge.bindBuffer(34962,sa.buffer),ge.vertexAttribPointer(Ia,In,Qn,ya,Da,Tn),Yi.type=Qn,Yi.size=In,Yi.buffer=sa,Yi.normalized=ya,Yi.offset=Tn,Yi.stride=Da),Yi.divisor!==zn&&(Qe.vertexAttribDivisorANGLE(Ia,zn),Yi.divisor=zn)):(Yi.buffer&&(ge.disableVertexAttribArray(Ia),Yi.buffer=null),(Yi.x!==Ca||Yi.y!==za||Yi.z!==Wn||Yi.w!==Zi)&&(ge.vertexAttrib4f(Ia,Ca,za,Wn,Zi),Yi.x=Ca,Yi.y=za,Yi.z=Wn,Yi.w=Zi)),Oi=w.call(this,Be,bt,gt),la=!1,ga=1,go=0,eo=0,Eo=0,Mn=0,To=null,Ya=0,Co=!1,Ri=5126,qa=0,Zn=0,Ha=0,yt(Oi)?(la=!0,To=Se.createStream(34962,Oi),Ri=To.dtype):(To=Se.getBuffer(Oi),To?Ri=To.dtype:"constant"in Oi?(ga=2,typeof Oi.constant=="number"?(go=Oi.constant,eo=Eo=Mn=0):(go=Oi.constant.length>0?Oi.constant[0]:0,eo=Oi.constant.length>1?Oi.constant[1]:0,Eo=Oi.constant.length>2?Oi.constant[2]:0,Mn=Oi.constant.length>3?Oi.constant[3]:0)):(yt(Oi.buffer)?To=Se.createStream(34962,Oi.buffer):To=Se.getBuffer(Oi.buffer),Ri="type"in Oi?Fr[Oi.type]:To.dtype,Co=!!Oi.normalized,Ya=Oi.size|0,qa=Oi.offset|0,Zn=Oi.stride|0,Ha=Oi.divisor|0)),Wa=_.location,$a=ot[Wa],ga===1?($a.buffer||ge.enableVertexAttribArray(Wa),Fe=Ya||1,($a.type!==Ri||$a.size!==Fe||$a.buffer!==To||$a.normalized!==Co||$a.offset!==qa||$a.stride!==Zn)&&(ge.bindBuffer(34962,To.buffer),ge.vertexAttribPointer(Wa,Fe,Ri,Co,Zn,qa),$a.type=Ri,$a.size=Fe,$a.buffer=To,$a.normalized=Co,$a.offset=qa,$a.stride=Zn),$a.divisor!==Ha&&(Qe.vertexAttribDivisorANGLE(Wa,Ha),$a.divisor=Ha)):($a.buffer&&(ge.disableVertexAttribArray(Wa),$a.buffer=null),($a.x!==go||$a.y!==eo||$a.z!==Eo||$a.w!==Mn)&&(ge.vertexAttrib4f(Wa,go,eo,Eo,Mn),$a.x=go,$a.y=eo,$a.z=Eo,$a.w=Mn)),Ve=b.call(this,Be,bt,gt),lt=!1,it=1,mt=0,Rt=0,qt=0,Nt=0,ar=null,Ir=0,$t=!1,Bt=5126,rr=0,Dr=0,Ur=0,yt(Ve)?(lt=!0,ar=Se.createStream(34962,Ve),Bt=ar.dtype):(ar=Se.getBuffer(Ve),ar?Bt=ar.dtype:"constant"in Ve?(it=2,typeof Ve.constant=="number"?(mt=Ve.constant,Rt=qt=Nt=0):(mt=Ve.constant.length>0?Ve.constant[0]:0,Rt=Ve.constant.length>1?Ve.constant[1]:0,qt=Ve.constant.length>2?Ve.constant[2]:0,Nt=Ve.constant.length>3?Ve.constant[3]:0)):(yt(Ve.buffer)?ar=Se.createStream(34962,Ve.buffer):ar=Se.getBuffer(Ve.buffer),Bt="type"in Ve?Fr[Ve.type]:ar.dtype,$t=!!Ve.normalized,Ir=Ve.size|0,rr=Ve.offset|0,Dr=Ve.stride|0,Ur=Ve.divisor|0)),ai=M.location,ci=ot[ai],it===1?(ci.buffer||ge.enableVertexAttribArray(ai),li=Ir||1,(ci.type!==Bt||ci.size!==li||ci.buffer!==ar||ci.normalized!==$t||ci.offset!==rr||ci.stride!==Dr)&&(ge.bindBuffer(34962,ar.buffer),ge.vertexAttribPointer(ai,li,Bt,$t,Dr,rr),ci.type=Bt,ci.size=li,ci.buffer=ar,ci.normalized=$t,ci.offset=rr,ci.stride=Dr),ci.divisor!==Ur&&(Qe.vertexAttribDivisorANGLE(ai,Ur),ci.divisor=Ur)):(ci.buffer&&(ge.disableVertexAttribArray(ai),ci.buffer=null),(ci.x!==mt||ci.y!==Rt||ci.z!==qt||ci.w!==Nt)&&(ge.vertexAttrib4f(ai,mt,Rt,qt,Nt),ci.x=mt,ci.y=Rt,ci.z=qt,ci.w=Nt)),mi=x.call(this,Be,bt,gt),xi=!1,Ni=1,ua=0,xa=0,ao=0,ho=0,Fo=null,ls=0,Io=!1,Ps=5126,xs=0,us=0,Vi=0,yt(mi)?(xi=!0,Fo=Se.createStream(34962,mi),Ps=Fo.dtype):(Fo=Se.getBuffer(mi),Fo?Ps=Fo.dtype:"constant"in mi?(Ni=2,typeof mi.constant=="number"?(ua=mi.constant,xa=ao=ho=0):(ua=mi.constant.length>0?mi.constant[0]:0,xa=mi.constant.length>1?mi.constant[1]:0,ao=mi.constant.length>2?mi.constant[2]:0,ho=mi.constant.length>3?mi.constant[3]:0)):(yt(mi.buffer)?Fo=Se.createStream(34962,mi.buffer):Fo=Se.getBuffer(mi.buffer),Ps="type"in mi?Fr[mi.type]:Fo.dtype,Io=!!mi.normalized,ls=mi.size|0,xs=mi.offset|0,us=mi.stride|0,Vi=mi.divisor|0)),io=T.location,ko=ot[io],Ni===1?(ko.buffer||ge.enableVertexAttribArray(io),oo=ls||1,(ko.type!==Ps||ko.size!==oo||ko.buffer!==Fo||ko.normalized!==Io||ko.offset!==xs||ko.stride!==us)&&(ge.bindBuffer(34962,Fo.buffer),ge.vertexAttribPointer(io,oo,Ps,Io,us,xs),ko.type=Ps,ko.size=oo,ko.buffer=Fo,ko.normalized=Io,ko.offset=xs,ko.stride=us),ko.divisor!==Vi&&(Qe.vertexAttribDivisorANGLE(io,Vi),ko.divisor=Vi)):(ko.buffer&&(ge.disableVertexAttribArray(io),ko.buffer=null),(ko.x!==ua||ko.y!==xa||ko.z!==ao||ko.w!==ho)&&(ge.vertexAttrib4f(io,ua,xa,ao,ho),ko.x=ua,ko.y=xa,ko.z=ao,ko.w=ho)),xo=A.call(this,Be,bt,gt),bo=!1,so=1,Yo=0,Uo=0,es=0,jo=0,Qo=null,Ks=0,Ws=!1,Ds=5126,_s=0,as=0,Es=0,yt(xo)?(bo=!0,Qo=Se.createStream(34962,xo),Ds=Qo.dtype):(Qo=Se.getBuffer(xo),Qo?Ds=Qo.dtype:"constant"in xo?(so=2,typeof xo.constant=="number"?(Yo=xo.constant,Uo=es=jo=0):(Yo=xo.constant.length>0?xo.constant[0]:0,Uo=xo.constant.length>1?xo.constant[1]:0,es=xo.constant.length>2?xo.constant[2]:0,jo=xo.constant.length>3?xo.constant[3]:0)):(yt(xo.buffer)?Qo=Se.createStream(34962,xo.buffer):Qo=Se.getBuffer(xo.buffer),Ds="type"in xo?Fr[xo.type]:Qo.dtype,Ws=!!xo.normalized,Ks=xo.size|0,_s=xo.offset|0,as=xo.stride|0,Es=xo.divisor|0)),Mo=g.location,Go=ot[Mo],so===1?(Go.buffer||ge.enableVertexAttribArray(Mo),qs=Ks||1,(Go.type!==Ds||Go.size!==qs||Go.buffer!==Qo||Go.normalized!==Ws||Go.offset!==_s||Go.stride!==as)&&(ge.bindBuffer(34962,Qo.buffer),ge.vertexAttribPointer(Mo,qs,Ds,Ws,as,_s),Go.type=Ds,Go.size=qs,Go.buffer=Qo,Go.normalized=Ws,Go.offset=_s,Go.stride=as),Go.divisor!==Es&&(Qe.vertexAttribDivisorANGLE(Mo,Es),Go.divisor=Es)):(Go.buffer&&(ge.disableVertexAttribArray(Mo),Go.buffer=null),(Go.x!==Yo||Go.y!==Uo||Go.z!==es||Go.w!==jo)&&(ge.vertexAttrib4f(Mo,Yo,Uo,es,jo),Go.x=Yo,Go.y=Uo,Go.z=es,Go.w=jo)),Ts=bt.markerTexture,Ts&&Ts._reglType==="framebuffer"&&(Ts=Ts.color[0]),Dl=Ts._texture,ge.uniform1i(S.location,Dl.bind()),_l=bt.opacity,(!gt||wl!==_l)&&(wl=_l,ge.uniform1f(C.location,_l)),vl=D.call(this,Be,bt,gt),Al=vl[0],Hl=vl[1],(!gt||ml!==Al||Tl!==Hl)&&(ml=Al,Tl=Hl,ge.uniform2f(k.location,Al,Hl)),yl=Be.pixelRatio,(!gt||ae!==yl)&&(ae=yl,ge.uniform1f(I.location,yl)),ce=bt.scale,Te=ce[0],Ne=ce[1],(!gt||Ce!==Te||Oe!==Ne)&&(Ce=Te,Oe=Ne,ge.uniform2f(L.location,Te,Ne)),He=bt.scaleFract,ct=He[0],vt=He[1],(!gt||xt!==ct||wt!==vt)&&(xt=ct,wt=vt,ge.uniform2f(z.location,ct,vt)),Pt=bt.translate,Jt=Pt[0],Nr=Pt[1],(!gt||cr!==Jt||zi!==Nr)&&(cr=Jt,zi=Nr,ge.uniform2f(B.location,Jt,Nr)),Rn=bt.translateFract,fo=Rn[0],Bo=Rn[1],(!gt||Xo!==fo||fs!==Bo)&&(Xo=fo,fs=Bo,ge.uniform2f(O.location,fo,Bo)),cs=bt.elements,Ns=null,zl=yt(cs),zl?Ns=Pe.createStream(cs):Ns=Pe.getElements(cs),Ns&&ge.bindBuffer(34963,Ns.buffer.buffer),Rs=bt.offset,Nl=bt.count,Nl&&(Ti>0?Ns?Qe.drawElementsInstancedANGLE(0,Nl,Ns.type,Rs<<(Ns.type-5121>>1),Ti):Qe.drawArraysInstancedANGLE(0,Rs,Nl,Ti):Ti<0&&(Ns?ge.drawElements(0,Nl,Ns.type,Rs<<(Ns.type-5121>>1)):ge.drawArrays(0,Rs,Nl)),Be.viewportWidth=pr,Be.viewportHeight=oi,Ra&&Se.destroyStream(Ci),Cn&&Se.destroyStream(On),Ua&&Se.destroyStream(gn),to&&Se.destroyStream(co),Za&&Se.destroyStream(sa),la&&Se.destroyStream(To),lt&&Se.destroyStream(ar),xi&&Se.destroyStream(Fo),bo&&Se.destroyStream(Qo),Dl.unbind(),zl&&Pe.destroyStream(Ns))}P.unbind(),De.dirty=!0,ut.setVAO(null),Xe&&(r.cpuTime+=performance.now()-$e)}}}});var BB=K((tii,BZe)=>{"use strict";BZe.exports=function(t,r,i,n,a,o,s,l,u,f,c,h,d,p,v,y,m,w,_,b,M,x,T,A,g,E,S,C,k,D,F,P,I,L,z,B,O,W,X,Z,H,q,Q,N,U,J,j,$,ie,re,de,me,ze,ke,le,te,Ee,we,oe,Y,ne,ye,V,ue,_e,xe,Ae,se,pe){"use strict";var fe,Re,We,Ke,tt,at,Ge,ge,Be,Ze,Le,De,Ue,Pe,Se,Ie,ot,ut,_t,At,Gt,Dt,yt,Mt,tr,Ye,nt,st,dt,rt,ft,Ft,Et,er,xr,kr,fr,Yr,Or,ri,Tr,Mr,Gr,_i,Fi,wr,Cr,Ut,Wt,dr,Hr,Er;return fe=t.gl,Re=t.context,We=t.strings,Ke=t.next,tt=t.current,at=t.draw,Ge=t.elements,ge=t.buffer,Be=t.shader,Ze=t.attributes,Le=t.vao,De=t.uniforms,Ue=t.framebuffer,Pe=t.extensions,Se=t.timer,Ie=t.isBufferArgs,ot=Ke.blend_color,ut=tt.blend_color,_t=Ke.blend_equation,At=tt.blend_equation,Gt=Ke.blend_func,Dt=tt.blend_func,yt=Ke.depth_range,Mt=tt.depth_range,tr=Ke.colorMask,Ye=tt.colorMask,nt=Ke.polygonOffset_offset,st=tt.polygonOffset_offset,dt=Ke.sample_coverage,rt=tt.sample_coverage,ft=Ke.stencil_func,Ft=tt.stencil_func,Et=Ke.stencil_opFront,er=tt.stencil_opFront,xr=Ke.stencil_opBack,kr=tt.stencil_opBack,fr=Ke.scissor_box,Yr=tt.scissor_box,Or=Ke.viewport,ri=tt.viewport,Tr={points:0,point:0,lines:1,line:1,triangles:4,triangle:4,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},Mr={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},Gr={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},_i={add:32774,subtract:32778,"reverse subtract":32779},Fi={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},wr={int8:5120,int16:5122,int32:5124,uint8:5121,uint16:5123,uint32:5125,float:5126,float32:5126},Cr={cw:2304,ccw:2305},Ut={},Ut.stride=8,Ut.offset=8,Ut.divisor=1,Wt={},Wt.stride=8,Wt.offset=16,Wt.divisor=1,dr={},dr.stride=8,dr.offset=8,dr.divisor=1,Hr={},Hr.stride=8,Hr.offset=16,Hr.divisor=1,Er={},Er.stride=4,Er.offset=0,Er.divisor=1,{draw:function(Fr){var di,Li,nr,Kt,Me,Xe,$e,Qe,gt,bt,lr,Ct,ur,Rr,Br,Vr,gi,ui,ei,Gi,un,Tt,wi,kn,ii,Pr,Wi,na,yn,$n,$i,en,_r,Zr,fi,aa,ln,ca,Kn,dn,Ta,rn,Ai,nn,Ti,ea,qn,pi,Fn,Pa,pr,oi,Ki,Ui,pa,Na,on,wn,Ra,ti,Yn,Ja,ja,ka,Ci,vn,Va,Hi,zr,ni,bn,Bi,vi,mr,Mi,Cn,jr,Xn,an,ta,qi,On,Nn,ia,Qr,Di,fn,Dn,Vn,mn,qr,Pi,Ua,yi,Ma,Ba,Bn,ji,gn,jn,Un,Ii,gr,Ln,xn,da,Si,Kr,Gn,to,Jn,ro,mo,Oa,Ei,co,Pn,Fa,oa,Hn,va,ma,Sa,ki,Wr,An,Za,Ga,Ca,za,Wn,Zi;if(di=Pe.angle_instanced_arrays,Li=Ue.next,Li!==Ue.cur&&(Li?fe.bindFramebuffer(36160,Li.framebuffer):fe.bindFramebuffer(36160,null),Ue.cur=Li),tt.dirty){var sa,So,ya,Qn,Tn,Da,zn,Ia,Yi,In,Oi,la,ga,go,eo,Eo,Mn,To,Ya,Co,Ri,qa,Zn,Ha,Wa,$a,Fe,Ve,lt,it,mt,Rt;sa=Ke.dither,sa!==tt.dither&&(sa?fe.enable(3024):fe.disable(3024),tt.dither=sa),So=Ke.depth_func,So!==tt.depth_func&&(fe.depthFunc(So),tt.depth_func=So),ya=yt[0],Qn=yt[1],(ya!==Mt[0]||Qn!==Mt[1])&&(fe.depthRange(ya,Qn),Mt[0]=ya,Mt[1]=Qn),Tn=Ke.depth_mask,Tn!==tt.depth_mask&&(fe.depthMask(Tn),tt.depth_mask=Tn),Da=tr[0],zn=tr[1],Ia=tr[2],Yi=tr[3],(Da!==Ye[0]||zn!==Ye[1]||Ia!==Ye[2]||Yi!==Ye[3])&&(fe.colorMask(Da,zn,Ia,Yi),Ye[0]=Da,Ye[1]=zn,Ye[2]=Ia,Ye[3]=Yi),In=Ke.cull_enable,In!==tt.cull_enable&&(In?fe.enable(2884):fe.disable(2884),tt.cull_enable=In),Oi=Ke.cull_face,Oi!==tt.cull_face&&(fe.cullFace(Oi),tt.cull_face=Oi),la=Ke.frontFace,la!==tt.frontFace&&(fe.frontFace(la),tt.frontFace=la),ga=Ke.lineWidth,ga!==tt.lineWidth&&(fe.lineWidth(ga),tt.lineWidth=ga),go=Ke.polygonOffset_enable,go!==tt.polygonOffset_enable&&(go?fe.enable(32823):fe.disable(32823),tt.polygonOffset_enable=go),eo=nt[0],Eo=nt[1],(eo!==st[0]||Eo!==st[1])&&(fe.polygonOffset(eo,Eo),st[0]=eo,st[1]=Eo),Mn=Ke.sample_alpha,Mn!==tt.sample_alpha&&(Mn?fe.enable(32926):fe.disable(32926),tt.sample_alpha=Mn),To=Ke.sample_enable,To!==tt.sample_enable&&(To?fe.enable(32928):fe.disable(32928),tt.sample_enable=To),Ya=dt[0],Co=dt[1],(Ya!==rt[0]||Co!==rt[1])&&(fe.sampleCoverage(Ya,Co),rt[0]=Ya,rt[1]=Co),Ri=Ke.stencil_mask,Ri!==tt.stencil_mask&&(fe.stencilMask(Ri),tt.stencil_mask=Ri),qa=ft[0],Zn=ft[1],Ha=ft[2],(qa!==Ft[0]||Zn!==Ft[1]||Ha!==Ft[2])&&(fe.stencilFunc(qa,Zn,Ha),Ft[0]=qa,Ft[1]=Zn,Ft[2]=Ha),Wa=Et[0],$a=Et[1],Fe=Et[2],Ve=Et[3],(Wa!==er[0]||$a!==er[1]||Fe!==er[2]||Ve!==er[3])&&(fe.stencilOpSeparate(Wa,$a,Fe,Ve),er[0]=Wa,er[1]=$a,er[2]=Fe,er[3]=Ve),lt=xr[0],it=xr[1],mt=xr[2],Rt=xr[3],(lt!==kr[0]||it!==kr[1]||mt!==kr[2]||Rt!==kr[3])&&(fe.stencilOpSeparate(lt,it,mt,Rt),kr[0]=lt,kr[1]=it,kr[2]=mt,kr[3]=Rt)}nr=Fr.viewport,Kt=nr.x|0,Me=nr.y|0,Xe="width"in nr?nr.width|0:Re.framebufferWidth-Kt,$e="height"in nr?nr.height|0:Re.framebufferHeight-Me,Qe=Re.viewportWidth,Re.viewportWidth=Xe,gt=Re.viewportHeight,Re.viewportHeight=$e,fe.viewport(Kt,Me,Xe,$e),ri[0]=Kt,ri[1]=Me,ri[2]=Xe,ri[3]=$e,fe.blendColor(0,0,0,0),ut[0]=0,ut[1]=0,ut[2]=0,ut[3]=0,i?fe.enable(3042):fe.disable(3042),tt.blend_enable=i,fe.blendEquationSeparate(32774,32774),At[0]=32774,At[1]=32774,fe.blendFuncSeparate(770,771,773,1),Dt[0]=770,Dt[1]=771,Dt[2]=773,Dt[3]=1,bt=n.call(this,Re,Fr,0),bt?fe.enable(2929):fe.disable(2929),tt.depth_enable=bt,lr=Fr.viewport,Ct=lr.x|0,ur=lr.y|0,Rr="width"in lr?lr.width|0:Re.framebufferWidth-Ct,Br="height"in lr?lr.height|0:Re.framebufferHeight-ur,fe.scissor(Ct,ur,Rr,Br),Yr[0]=Ct,Yr[1]=ur,Yr[2]=Rr,Yr[3]=Br,a?fe.enable(3089):fe.disable(3089),tt.scissor_enable=a,o?fe.enable(2960):fe.disable(2960),tt.stencil_enable=o,Vr=tt.profile,Vr&&(gi=performance.now(),r.count++),fe.useProgram(s.program),ui=Pe.angle_instanced_arrays,Le.setVAO(null),ei=Fr.positionBuffer,Ut.buffer=ei,Gi=!1,un=1,Tt=0,wi=0,kn=0,ii=0,Pr=null,Wi=0,na=!1,yn=5126,$n=0,$i=0,en=0,Ie(Ut)?(Gi=!0,Pr=ge.createStream(34962,Ut),yn=Pr.dtype):(Pr=ge.getBuffer(Ut),Pr?yn=Pr.dtype:"constant"in Ut?(un=2,typeof Ut.constant=="number"?(Tt=Ut.constant,wi=kn=ii=0):(Tt=Ut.constant.length>0?Ut.constant[0]:0,wi=Ut.constant.length>1?Ut.constant[1]:0,kn=Ut.constant.length>2?Ut.constant[2]:0,ii=Ut.constant.length>3?Ut.constant[3]:0)):(Ie(Ut.buffer)?Pr=ge.createStream(34962,Ut.buffer):Pr=ge.getBuffer(Ut.buffer),yn="type"in Ut?wr[Ut.type]:Pr.dtype,na=!!Ut.normalized,Wi=Ut.size|0,$n=Ut.offset|0,$i=Ut.stride|0,en=Ut.divisor|0)),_r=l.location,Zr=Ze[_r],un===1?(Zr.buffer||fe.enableVertexAttribArray(_r),fi=Wi||2,(Zr.type!==yn||Zr.size!==fi||Zr.buffer!==Pr||Zr.normalized!==na||Zr.offset!==$n||Zr.stride!==$i)&&(fe.bindBuffer(34962,Pr.buffer),fe.vertexAttribPointer(_r,fi,yn,na,$i,$n),Zr.type=yn,Zr.size=fi,Zr.buffer=Pr,Zr.normalized=na,Zr.offset=$n,Zr.stride=$i),Zr.divisor!==en&&(ui.vertexAttribDivisorANGLE(_r,en),Zr.divisor=en)):(Zr.buffer&&(fe.disableVertexAttribArray(_r),Zr.buffer=null),(Zr.x!==Tt||Zr.y!==wi||Zr.z!==kn||Zr.w!==ii)&&(fe.vertexAttrib4f(_r,Tt,wi,kn,ii),Zr.x=Tt,Zr.y=wi,Zr.z=kn,Zr.w=ii)),aa=Fr.positionFractBuffer,dr.buffer=aa,ln=!1,ca=1,Kn=0,dn=0,Ta=0,rn=0,Ai=null,nn=0,Ti=!1,ea=5126,qn=0,pi=0,Fn=0,Ie(dr)?(ln=!0,Ai=ge.createStream(34962,dr),ea=Ai.dtype):(Ai=ge.getBuffer(dr),Ai?ea=Ai.dtype:"constant"in dr?(ca=2,typeof dr.constant=="number"?(Kn=dr.constant,dn=Ta=rn=0):(Kn=dr.constant.length>0?dr.constant[0]:0,dn=dr.constant.length>1?dr.constant[1]:0,Ta=dr.constant.length>2?dr.constant[2]:0,rn=dr.constant.length>3?dr.constant[3]:0)):(Ie(dr.buffer)?Ai=ge.createStream(34962,dr.buffer):Ai=ge.getBuffer(dr.buffer),ea="type"in dr?wr[dr.type]:Ai.dtype,Ti=!!dr.normalized,nn=dr.size|0,qn=dr.offset|0,pi=dr.stride|0,Fn=dr.divisor|0)),Pa=u.location,pr=Ze[Pa],ca===1?(pr.buffer||fe.enableVertexAttribArray(Pa),oi=nn||2,(pr.type!==ea||pr.size!==oi||pr.buffer!==Ai||pr.normalized!==Ti||pr.offset!==qn||pr.stride!==pi)&&(fe.bindBuffer(34962,Ai.buffer),fe.vertexAttribPointer(Pa,oi,ea,Ti,pi,qn),pr.type=ea,pr.size=oi,pr.buffer=Ai,pr.normalized=Ti,pr.offset=qn,pr.stride=pi),pr.divisor!==Fn&&(ui.vertexAttribDivisorANGLE(Pa,Fn),pr.divisor=Fn)):(pr.buffer&&(fe.disableVertexAttribArray(Pa),pr.buffer=null),(pr.x!==Kn||pr.y!==dn||pr.z!==Ta||pr.w!==rn)&&(fe.vertexAttrib4f(Pa,Kn,dn,Ta,rn),pr.x=Kn,pr.y=dn,pr.z=Ta,pr.w=rn)),Ki=Fr.positionBuffer,Wt.buffer=Ki,Ui=!1,pa=1,Na=0,on=0,wn=0,Ra=0,ti=null,Yn=0,Ja=!1,ja=5126,ka=0,Ci=0,vn=0,Ie(Wt)?(Ui=!0,ti=ge.createStream(34962,Wt),ja=ti.dtype):(ti=ge.getBuffer(Wt),ti?ja=ti.dtype:"constant"in Wt?(pa=2,typeof Wt.constant=="number"?(Na=Wt.constant,on=wn=Ra=0):(Na=Wt.constant.length>0?Wt.constant[0]:0,on=Wt.constant.length>1?Wt.constant[1]:0,wn=Wt.constant.length>2?Wt.constant[2]:0,Ra=Wt.constant.length>3?Wt.constant[3]:0)):(Ie(Wt.buffer)?ti=ge.createStream(34962,Wt.buffer):ti=ge.getBuffer(Wt.buffer),ja="type"in Wt?wr[Wt.type]:ti.dtype,Ja=!!Wt.normalized,Yn=Wt.size|0,ka=Wt.offset|0,Ci=Wt.stride|0,vn=Wt.divisor|0)),Va=f.location,Hi=Ze[Va],pa===1?(Hi.buffer||fe.enableVertexAttribArray(Va),zr=Yn||2,(Hi.type!==ja||Hi.size!==zr||Hi.buffer!==ti||Hi.normalized!==Ja||Hi.offset!==ka||Hi.stride!==Ci)&&(fe.bindBuffer(34962,ti.buffer),fe.vertexAttribPointer(Va,zr,ja,Ja,Ci,ka),Hi.type=ja,Hi.size=zr,Hi.buffer=ti,Hi.normalized=Ja,Hi.offset=ka,Hi.stride=Ci),Hi.divisor!==vn&&(ui.vertexAttribDivisorANGLE(Va,vn),Hi.divisor=vn)):(Hi.buffer&&(fe.disableVertexAttribArray(Va),Hi.buffer=null),(Hi.x!==Na||Hi.y!==on||Hi.z!==wn||Hi.w!==Ra)&&(fe.vertexAttrib4f(Va,Na,on,wn,Ra),Hi.x=Na,Hi.y=on,Hi.z=wn,Hi.w=Ra)),ni=Fr.positionFractBuffer,Hr.buffer=ni,bn=!1,Bi=1,vi=0,mr=0,Mi=0,Cn=0,jr=null,Xn=0,an=!1,ta=5126,qi=0,On=0,Nn=0,Ie(Hr)?(bn=!0,jr=ge.createStream(34962,Hr),ta=jr.dtype):(jr=ge.getBuffer(Hr),jr?ta=jr.dtype:"constant"in Hr?(Bi=2,typeof Hr.constant=="number"?(vi=Hr.constant,mr=Mi=Cn=0):(vi=Hr.constant.length>0?Hr.constant[0]:0,mr=Hr.constant.length>1?Hr.constant[1]:0,Mi=Hr.constant.length>2?Hr.constant[2]:0,Cn=Hr.constant.length>3?Hr.constant[3]:0)):(Ie(Hr.buffer)?jr=ge.createStream(34962,Hr.buffer):jr=ge.getBuffer(Hr.buffer),ta="type"in Hr?wr[Hr.type]:jr.dtype,an=!!Hr.normalized,Xn=Hr.size|0,qi=Hr.offset|0,On=Hr.stride|0,Nn=Hr.divisor|0)),ia=c.location,Qr=Ze[ia],Bi===1?(Qr.buffer||fe.enableVertexAttribArray(ia),Di=Xn||2,(Qr.type!==ta||Qr.size!==Di||Qr.buffer!==jr||Qr.normalized!==an||Qr.offset!==qi||Qr.stride!==On)&&(fe.bindBuffer(34962,jr.buffer),fe.vertexAttribPointer(ia,Di,ta,an,On,qi),Qr.type=ta,Qr.size=Di,Qr.buffer=jr,Qr.normalized=an,Qr.offset=qi,Qr.stride=On),Qr.divisor!==Nn&&(ui.vertexAttribDivisorANGLE(ia,Nn),Qr.divisor=Nn)):(Qr.buffer&&(fe.disableVertexAttribArray(ia),Qr.buffer=null),(Qr.x!==vi||Qr.y!==mr||Qr.z!==Mi||Qr.w!==Cn)&&(fe.vertexAttrib4f(ia,vi,mr,Mi,Cn),Qr.x=vi,Qr.y=mr,Qr.z=Mi,Qr.w=Cn)),fn=Fr.colorBuffer,Er.buffer=fn,Dn=!1,Vn=1,mn=0,qr=0,Pi=0,Ua=0,yi=null,Ma=0,Ba=!1,Bn=5126,ji=0,gn=0,jn=0,Ie(Er)?(Dn=!0,yi=ge.createStream(34962,Er),Bn=yi.dtype):(yi=ge.getBuffer(Er),yi?Bn=yi.dtype:"constant"in Er?(Vn=2,typeof Er.constant=="number"?(mn=Er.constant,qr=Pi=Ua=0):(mn=Er.constant.length>0?Er.constant[0]:0,qr=Er.constant.length>1?Er.constant[1]:0,Pi=Er.constant.length>2?Er.constant[2]:0,Ua=Er.constant.length>3?Er.constant[3]:0)):(Ie(Er.buffer)?yi=ge.createStream(34962,Er.buffer):yi=ge.getBuffer(Er.buffer),Bn="type"in Er?wr[Er.type]:yi.dtype,Ba=!!Er.normalized,Ma=Er.size|0,ji=Er.offset|0,gn=Er.stride|0,jn=Er.divisor|0)),Un=h.location,Ii=Ze[Un],Vn===1?(Ii.buffer||fe.enableVertexAttribArray(Un),gr=Ma||4,(Ii.type!==Bn||Ii.size!==gr||Ii.buffer!==yi||Ii.normalized!==Ba||Ii.offset!==ji||Ii.stride!==gn)&&(fe.bindBuffer(34962,yi.buffer),fe.vertexAttribPointer(Un,gr,Bn,Ba,gn,ji),Ii.type=Bn,Ii.size=gr,Ii.buffer=yi,Ii.normalized=Ba,Ii.offset=ji,Ii.stride=gn),Ii.divisor!==jn&&(ui.vertexAttribDivisorANGLE(Un,jn),Ii.divisor=jn)):(Ii.buffer&&(fe.disableVertexAttribArray(Un),Ii.buffer=null),(Ii.x!==mn||Ii.y!==qr||Ii.z!==Pi||Ii.w!==Ua)&&(fe.vertexAttrib4f(Un,mn,qr,Pi,Ua),Ii.x=mn,Ii.y=qr,Ii.z=Pi,Ii.w=Ua)),Ln=p.location,xn=Ze[Ln],xn.buffer||fe.enableVertexAttribArray(Ln),(xn.type!==5126||xn.size!==1||xn.buffer!==d||xn.normalized!==!1||xn.offset!==0||xn.stride!==8)&&(fe.bindBuffer(34962,d.buffer),fe.vertexAttribPointer(Ln,1,5126,!1,8,0),xn.type=5126,xn.size=1,xn.buffer=d,xn.normalized=!1,xn.offset=0,xn.stride=8),xn.divisor!==0&&(ui.vertexAttribDivisorANGLE(Ln,0),xn.divisor=0),da=v.location,Si=Ze[da],Si.buffer||fe.enableVertexAttribArray(da),(Si.type!==5126||Si.size!==1||Si.buffer!==d||Si.normalized!==!1||Si.offset!==4||Si.stride!==8)&&(fe.bindBuffer(34962,d.buffer),fe.vertexAttribPointer(da,1,5126,!1,8,4),Si.type=5126,Si.size=1,Si.buffer=d,Si.normalized=!1,Si.offset=4,Si.stride=8),Si.divisor!==0&&(ui.vertexAttribDivisorANGLE(da,0),Si.divisor=0),Kr=Fr.dashLength,fe.uniform1f(y.location,Kr),Gn=Fr.dashTexture,Gn&&Gn._reglType==="framebuffer"&&(Gn=Gn.color[0]),to=Gn._texture,fe.uniform1i(m.location,to.bind()),Jn=Fr.depth,fe.uniform1f(w.location,Jn),ro=Fr.opacity,fe.uniform1f(_.location,ro),mo=Fr.scale,Oa=mo[0],Ei=mo[1],fe.uniform2f(b.location,Oa,Ei),co=Fr.scaleFract,Pn=co[0],Fa=co[1],fe.uniform2f(M.location,Pn,Fa),oa=Fr.thickness,fe.uniform1f(x.location,oa),Hn=Fr.translate,va=Hn[0],ma=Hn[1],fe.uniform2f(T.location,va,ma),Sa=Fr.translateFract,ki=Sa[0],Wr=Sa[1],fe.uniform2f(A.location,ki,Wr),An=E.call(this,Re,Fr,0),Za=An[0],Ga=An[1],Ca=An[2],za=An[3],fe.uniform4f(g.location,Za,Ga,Ca,za),Wn=at.elements,Wn?fe.bindBuffer(34963,Wn.buffer.buffer):Le.currentVAO&&(Wn=Ge.getElements(Le.currentVAO.elements),Wn&&fe.bindBuffer(34963,Wn.buffer.buffer)),Zi=Fr.count,Zi>0?Wn?ui.drawElementsInstancedANGLE(5,4,Wn.type,0<<(Wn.type-5121>>1),Zi):ui.drawArraysInstancedANGLE(5,0,4,Zi):Zi<0&&(Wn?fe.drawElements(5,4,Wn.type,0<<(Wn.type-5121>>1)):fe.drawArrays(5,0,4)),tt.dirty=!0,Le.setVAO(null),Re.viewportWidth=Qe,Re.viewportHeight=gt,Vr&&(r.cpuTime+=performance.now()-gi),Gi&&ge.destroyStream(Pr),ln&&ge.destroyStream(Ai),Ui&&ge.destroyStream(ti),bn&&ge.destroyStream(jr),Dn&&ge.destroyStream(yi),to.unbind()},scope:function(Fr,di,Li){var nr,Kt,Me,Xe,$e,Qe,gt,bt,lr,Ct,ur,Rr,Br,Vr,gi,ui,ei,Gi,un,Tt,wi,kn,ii,Pr,Wi,na,yn,$n,$i,en,_r,Zr,fi,aa,ln,ca,Kn,dn,Ta,rn,Ai,nn,Ti,ea,qn,pi,Fn,Pa,pr,oi,Ki,Ui,pa,Na,on,wn,Ra,ti,Yn,Ja,ja,ka,Ci,vn,Va,Hi,zr,ni,bn,Bi,vi,mr,Mi,Cn,jr,Xn,an,ta,qi,On,Nn,ia,Qr,Di,fn,Dn,Vn,mn,qr,Pi,Ua,yi,Ma,Ba,Bn,ji,gn,jn,Un,Ii,gr,Ln,xn,da,Si,Kr,Gn,to,Jn,ro,mo,Oa,Ei,co,Pn,Fa,oa,Hn,va,ma,Sa,ki,Wr,An,Za,Ga,Ca,za,Wn,Zi,sa,So,ya,Qn,Tn,Da,zn,Ia,Yi,In,Oi,la,ga,go,eo,Eo,Mn,To,Ya,Co,Ri,qa,Zn,Ha,Wa,$a,Fe,Ve,lt,it,mt,Rt,qt,Nt,ar,Ir,$t,Bt,rr,Dr,Ur,ai,ci,li,mi,xi,Ni,ua,xa,ao,ho,Fo,ls,Io,Ps,xs,us,Vi,io,ko,oo,xo,bo,so,Yo,Uo,es,jo,Qo,Ks,Ws,Ds,_s,as,Es,Mo,Go,qs,Ts,Dl,_l,wl,vl,Al,ml,Hl,Tl,yl,ae,ce,Te,Ce,Ne,Oe,He,ct;nr=Fr.viewport,Kt=nr.x|0,Me=nr.y|0,Xe="width"in nr?nr.width|0:Re.framebufferWidth-Kt,$e="height"in nr?nr.height|0:Re.framebufferHeight-Me,Qe=Re.viewportWidth,Re.viewportWidth=Xe,gt=Re.viewportHeight,Re.viewportHeight=$e,bt=Or[0],Or[0]=Kt,lr=Or[1],Or[1]=Me,Ct=Or[2],Or[2]=Xe,ur=Or[3],Or[3]=$e,Rr=ot[0],ot[0]=S,Br=ot[1],ot[1]=C,Vr=ot[2],ot[2]=k,gi=ot[3],ot[3]=D,ui=Ke.blend_enable,Ke.blend_enable=F,ei=_t[0],_t[0]=P,Gi=_t[1],_t[1]=I,un=Gt[0],Gt[0]=L,Tt=Gt[1],Gt[1]=z,wi=Gt[2],Gt[2]=B,kn=Gt[3],Gt[3]=O,ii=n.call(this,Re,Fr,Li),Pr=Ke.depth_enable,Ke.depth_enable=ii,Wi=Fr.viewport,na=Wi.x|0,yn=Wi.y|0,$n="width"in Wi?Wi.width|0:Re.framebufferWidth-na,$i="height"in Wi?Wi.height|0:Re.framebufferHeight-yn,en=fr[0],fr[0]=na,_r=fr[1],fr[1]=yn,Zr=fr[2],fr[2]=$n,fi=fr[3],fr[3]=$i,aa=Ke.scissor_enable,Ke.scissor_enable=W,ln=Ke.stencil_enable,Ke.stencil_enable=X,ca=tt.profile,ca&&(Kn=performance.now(),r.count++),dn=at.offset,at.offset=Z,Ta=at.count,at.count=H,rn=Fr.count,Ai=at.instances,at.instances=rn,nn=at.primitive,at.primitive=q,Ti=Q.call(this,Re,Fr,Li),ea=De[N],De[N]=Ti,qn=Fr.miterLimit,pi=De[U],De[U]=qn,Fn=Fr.scale,Pa=De[J],De[J]=Fn,pr=Fr.scaleFract,oi=De[j],De[j]=pr,Ki=Fr.translateFract,Ui=De[$],De[$]=Ki,pa=Fr.translate,Na=De[ie],De[ie]=pa,on=Fr.thickness,wn=De[re],De[re]=on,Ra=Fr.dashTexture,ti=De[de],De[de]=Ra,Yn=Fr.opacity,Ja=De[me],De[me]=Yn,ja=Re.pixelRatio,ka=De[ze],De[ze]=ja,Ci=Fr.id,vn=De[ke],De[ke]=Ci,Va=Fr.dashLength,Hi=De[le],De[le]=Va,zr=E.call(this,Re,Fr,Li),ni=De[te],De[te]=zr,bn=Fr.depth,Bi=De[Ee],De[Ee]=bn,vi=we.state,we.state=1,mr=we.x,we.x=0,Mi=we.y,we.y=0,Cn=we.z,we.z=0,jr=we.w,we.w=0,Xn=we.buffer,we.buffer=d,an=we.size,we.size=0,ta=we.normalized,we.normalized=!1,qi=we.type,we.type=5126,On=we.offset,we.offset=0,Nn=we.stride,we.stride=8,ia=we.divisor,we.divisor=0,Qr=oe.state,oe.state=1,Di=oe.x,oe.x=0,fn=oe.y,oe.y=0,Dn=oe.z,oe.z=0,Vn=oe.w,oe.w=0,mn=oe.buffer,oe.buffer=d,qr=oe.size,oe.size=0,Pi=oe.normalized,oe.normalized=!1,Ua=oe.type,oe.type=5126,yi=oe.offset,oe.offset=4,Ma=oe.stride,oe.stride=8,Ba=oe.divisor,oe.divisor=0,Bn=Fr.positionBuffer,Ut.buffer=Bn,ji=!1,gn=1,jn=0,Un=0,Ii=0,gr=0,Ln=null,xn=0,da=!1,Si=5126,Kr=0,Gn=0,to=0,Ie(Ut)?(ji=!0,Ln=ge.createStream(34962,Ut),Si=Ln.dtype):(Ln=ge.getBuffer(Ut),Ln?Si=Ln.dtype:"constant"in Ut?(gn=2,typeof Ut.constant=="number"?(jn=Ut.constant,Un=Ii=gr=0):(jn=Ut.constant.length>0?Ut.constant[0]:0,Un=Ut.constant.length>1?Ut.constant[1]:0,Ii=Ut.constant.length>2?Ut.constant[2]:0,gr=Ut.constant.length>3?Ut.constant[3]:0)):(Ie(Ut.buffer)?Ln=ge.createStream(34962,Ut.buffer):Ln=ge.getBuffer(Ut.buffer),Si="type"in Ut?wr[Ut.type]:Ln.dtype,da=!!Ut.normalized,xn=Ut.size|0,Kr=Ut.offset|0,Gn=Ut.stride|0,to=Ut.divisor|0)),Jn=Y.state,Y.state=gn,ro=Y.x,Y.x=jn,mo=Y.y,Y.y=Un,Oa=Y.z,Y.z=Ii,Ei=Y.w,Y.w=gr,co=Y.buffer,Y.buffer=Ln,Pn=Y.size,Y.size=xn,Fa=Y.normalized,Y.normalized=da,oa=Y.type,Y.type=Si,Hn=Y.offset,Y.offset=Kr,va=Y.stride,Y.stride=Gn,ma=Y.divisor,Y.divisor=to,Sa=Fr.positionBuffer,Wt.buffer=Sa,ki=!1,Wr=1,An=0,Za=0,Ga=0,Ca=0,za=null,Wn=0,Zi=!1,sa=5126,So=0,ya=0,Qn=0,Ie(Wt)?(ki=!0,za=ge.createStream(34962,Wt),sa=za.dtype):(za=ge.getBuffer(Wt),za?sa=za.dtype:"constant"in Wt?(Wr=2,typeof Wt.constant=="number"?(An=Wt.constant,Za=Ga=Ca=0):(An=Wt.constant.length>0?Wt.constant[0]:0,Za=Wt.constant.length>1?Wt.constant[1]:0,Ga=Wt.constant.length>2?Wt.constant[2]:0,Ca=Wt.constant.length>3?Wt.constant[3]:0)):(Ie(Wt.buffer)?za=ge.createStream(34962,Wt.buffer):za=ge.getBuffer(Wt.buffer),sa="type"in Wt?wr[Wt.type]:za.dtype,Zi=!!Wt.normalized,Wn=Wt.size|0,So=Wt.offset|0,ya=Wt.stride|0,Qn=Wt.divisor|0)),Tn=ne.state,ne.state=Wr,Da=ne.x,ne.x=An,zn=ne.y,ne.y=Za,Ia=ne.z,ne.z=Ga,Yi=ne.w,ne.w=Ca,In=ne.buffer,ne.buffer=za,Oi=ne.size,ne.size=Wn,la=ne.normalized,ne.normalized=Zi,ga=ne.type,ne.type=sa,go=ne.offset,ne.offset=So,eo=ne.stride,ne.stride=ya,Eo=ne.divisor,ne.divisor=Qn,Mn=Fr.positionFractBuffer,dr.buffer=Mn,To=!1,Ya=1,Co=0,Ri=0,qa=0,Zn=0,Ha=null,Wa=0,$a=!1,Fe=5126,Ve=0,lt=0,it=0,Ie(dr)?(To=!0,Ha=ge.createStream(34962,dr),Fe=Ha.dtype):(Ha=ge.getBuffer(dr),Ha?Fe=Ha.dtype:"constant"in dr?(Ya=2,typeof dr.constant=="number"?(Co=dr.constant,Ri=qa=Zn=0):(Co=dr.constant.length>0?dr.constant[0]:0,Ri=dr.constant.length>1?dr.constant[1]:0,qa=dr.constant.length>2?dr.constant[2]:0,Zn=dr.constant.length>3?dr.constant[3]:0)):(Ie(dr.buffer)?Ha=ge.createStream(34962,dr.buffer):Ha=ge.getBuffer(dr.buffer),Fe="type"in dr?wr[dr.type]:Ha.dtype,$a=!!dr.normalized,Wa=dr.size|0,Ve=dr.offset|0,lt=dr.stride|0,it=dr.divisor|0)),mt=ye.state,ye.state=Ya,Rt=ye.x,ye.x=Co,qt=ye.y,ye.y=Ri,Nt=ye.z,ye.z=qa,ar=ye.w,ye.w=Zn,Ir=ye.buffer,ye.buffer=Ha,$t=ye.size,ye.size=Wa,Bt=ye.normalized,ye.normalized=$a,rr=ye.type,ye.type=Fe,Dr=ye.offset,ye.offset=Ve,Ur=ye.stride,ye.stride=lt,ai=ye.divisor,ye.divisor=it,ci=Fr.positionFractBuffer,Hr.buffer=ci,li=!1,mi=1,xi=0,Ni=0,ua=0,xa=0,ao=null,ho=0,Fo=!1,ls=5126,Io=0,Ps=0,xs=0,Ie(Hr)?(li=!0,ao=ge.createStream(34962,Hr),ls=ao.dtype):(ao=ge.getBuffer(Hr),ao?ls=ao.dtype:"constant"in Hr?(mi=2,typeof Hr.constant=="number"?(xi=Hr.constant,Ni=ua=xa=0):(xi=Hr.constant.length>0?Hr.constant[0]:0,Ni=Hr.constant.length>1?Hr.constant[1]:0,ua=Hr.constant.length>2?Hr.constant[2]:0,xa=Hr.constant.length>3?Hr.constant[3]:0)):(Ie(Hr.buffer)?ao=ge.createStream(34962,Hr.buffer):ao=ge.getBuffer(Hr.buffer),ls="type"in Hr?wr[Hr.type]:ao.dtype,Fo=!!Hr.normalized,ho=Hr.size|0,Io=Hr.offset|0,Ps=Hr.stride|0,xs=Hr.divisor|0)),us=V.state,V.state=mi,Vi=V.x,V.x=xi,io=V.y,V.y=Ni,ko=V.z,V.z=ua,oo=V.w,V.w=xa,xo=V.buffer,V.buffer=ao,bo=V.size,V.size=ho,so=V.normalized,V.normalized=Fo,Yo=V.type,V.type=ls,Uo=V.offset,V.offset=Io,es=V.stride,V.stride=Ps,jo=V.divisor,V.divisor=xs,Qo=Fr.colorBuffer,Er.buffer=Qo,Ks=!1,Ws=1,Ds=0,_s=0,as=0,Es=0,Mo=null,Go=0,qs=!1,Ts=5126,Dl=0,_l=0,wl=0,Ie(Er)?(Ks=!0,Mo=ge.createStream(34962,Er),Ts=Mo.dtype):(Mo=ge.getBuffer(Er),Mo?Ts=Mo.dtype:"constant"in Er?(Ws=2,typeof Er.constant=="number"?(Ds=Er.constant,_s=as=Es=0):(Ds=Er.constant.length>0?Er.constant[0]:0,_s=Er.constant.length>1?Er.constant[1]:0,as=Er.constant.length>2?Er.constant[2]:0,Es=Er.constant.length>3?Er.constant[3]:0)):(Ie(Er.buffer)?Mo=ge.createStream(34962,Er.buffer):Mo=ge.getBuffer(Er.buffer),Ts="type"in Er?wr[Er.type]:Mo.dtype,qs=!!Er.normalized,Go=Er.size|0,Dl=Er.offset|0,_l=Er.stride|0,wl=Er.divisor|0)),vl=ue.state,ue.state=Ws,Al=ue.x,ue.x=Ds,ml=ue.y,ue.y=_s,Hl=ue.z,ue.z=as,Tl=ue.w,ue.w=Es,yl=ue.buffer,ue.buffer=Mo,ae=ue.size,ue.size=Go,ce=ue.normalized,ue.normalized=qs,Te=ue.type,ue.type=Ts,Ce=ue.offset,ue.offset=Dl,Ne=ue.stride,ue.stride=_l,Oe=ue.divisor,ue.divisor=wl,He=Be.vert,Be.vert=_e,ct=Be.frag,Be.frag=xe,tt.dirty=!0,di(Re,Fr,Li),Re.viewportWidth=Qe,Re.viewportHeight=gt,Or[0]=bt,Or[1]=lr,Or[2]=Ct,Or[3]=ur,ot[0]=Rr,ot[1]=Br,ot[2]=Vr,ot[3]=gi,Ke.blend_enable=ui,_t[0]=ei,_t[1]=Gi,Gt[0]=un,Gt[1]=Tt,Gt[2]=wi,Gt[3]=kn,Ke.depth_enable=Pr,fr[0]=en,fr[1]=_r,fr[2]=Zr,fr[3]=fi,Ke.scissor_enable=aa,Ke.stencil_enable=ln,ca&&(r.cpuTime+=performance.now()-Kn),at.offset=dn,at.count=Ta,at.instances=Ai,at.primitive=nn,De[N]=ea,De[U]=pi,De[J]=Pa,De[j]=oi,De[$]=Ui,De[ie]=Na,De[re]=wn,De[de]=ti,De[me]=Ja,De[ze]=ka,De[ke]=vn,De[le]=Hi,De[te]=ni,De[Ee]=Bi,we.state=vi,we.x=mr,we.y=Mi,we.z=Cn,we.w=jr,we.buffer=Xn,we.size=an,we.normalized=ta,we.type=qi,we.offset=On,we.stride=Nn,we.divisor=ia,oe.state=Qr,oe.x=Di,oe.y=fn,oe.z=Dn,oe.w=Vn,oe.buffer=mn,oe.size=qr,oe.normalized=Pi,oe.type=Ua,oe.offset=yi,oe.stride=Ma,oe.divisor=Ba,ji&&ge.destroyStream(Ln),Y.state=Jn,Y.x=ro,Y.y=mo,Y.z=Oa,Y.w=Ei,Y.buffer=co,Y.size=Pn,Y.normalized=Fa,Y.type=oa,Y.offset=Hn,Y.stride=va,Y.divisor=ma,ki&&ge.destroyStream(za),ne.state=Tn,ne.x=Da,ne.y=zn,ne.z=Ia,ne.w=Yi,ne.buffer=In,ne.size=Oi,ne.normalized=la,ne.type=ga,ne.offset=go,ne.stride=eo,ne.divisor=Eo,To&&ge.destroyStream(Ha),ye.state=mt,ye.x=Rt,ye.y=qt,ye.z=Nt,ye.w=ar,ye.buffer=Ir,ye.size=$t,ye.normalized=Bt,ye.type=rr,ye.offset=Dr,ye.stride=Ur,ye.divisor=ai,li&&ge.destroyStream(ao),V.state=us,V.x=Vi,V.y=io,V.z=ko,V.w=oo,V.buffer=xo,V.size=bo,V.normalized=so,V.type=Yo,V.offset=Uo,V.stride=es,V.divisor=jo,Ks&&ge.destroyStream(Mo),ue.state=vl,ue.x=Al,ue.y=ml,ue.z=Hl,ue.w=Tl,ue.buffer=yl,ue.size=ae,ue.normalized=ce,ue.type=Te,ue.offset=Ce,ue.stride=Ne,ue.divisor=Oe,Be.vert=He,Be.frag=ct,tt.dirty=!0},batch:function(Fr,di){var Li,nr,Kt,Me,Xe,$e,Qe;if(Li=Pe.angle_instanced_arrays,nr=Ue.next,nr!==Ue.cur&&(nr?fe.bindFramebuffer(36160,nr.framebuffer):fe.bindFramebuffer(36160,null),Ue.cur=nr),tt.dirty){var gt,bt,lr,Ct,ur,Rr,Br,Vr,gi,ui,ei,Gi,un,Tt,wi,kn,ii,Pr,Wi,na,yn,$n,$i,en,_r,Zr,fi,aa,ln,ca,Kn,dn;gt=Ke.dither,gt!==tt.dither&&(gt?fe.enable(3024):fe.disable(3024),tt.dither=gt),bt=Ke.depth_func,bt!==tt.depth_func&&(fe.depthFunc(bt),tt.depth_func=bt),lr=yt[0],Ct=yt[1],(lr!==Mt[0]||Ct!==Mt[1])&&(fe.depthRange(lr,Ct),Mt[0]=lr,Mt[1]=Ct),ur=Ke.depth_mask,ur!==tt.depth_mask&&(fe.depthMask(ur),tt.depth_mask=ur),Rr=tr[0],Br=tr[1],Vr=tr[2],gi=tr[3],(Rr!==Ye[0]||Br!==Ye[1]||Vr!==Ye[2]||gi!==Ye[3])&&(fe.colorMask(Rr,Br,Vr,gi),Ye[0]=Rr,Ye[1]=Br,Ye[2]=Vr,Ye[3]=gi),ui=Ke.cull_enable,ui!==tt.cull_enable&&(ui?fe.enable(2884):fe.disable(2884),tt.cull_enable=ui),ei=Ke.cull_face,ei!==tt.cull_face&&(fe.cullFace(ei),tt.cull_face=ei),Gi=Ke.frontFace,Gi!==tt.frontFace&&(fe.frontFace(Gi),tt.frontFace=Gi),un=Ke.lineWidth,un!==tt.lineWidth&&(fe.lineWidth(un),tt.lineWidth=un),Tt=Ke.polygonOffset_enable,Tt!==tt.polygonOffset_enable&&(Tt?fe.enable(32823):fe.disable(32823),tt.polygonOffset_enable=Tt),wi=nt[0],kn=nt[1],(wi!==st[0]||kn!==st[1])&&(fe.polygonOffset(wi,kn),st[0]=wi,st[1]=kn),ii=Ke.sample_alpha,ii!==tt.sample_alpha&&(ii?fe.enable(32926):fe.disable(32926),tt.sample_alpha=ii),Pr=Ke.sample_enable,Pr!==tt.sample_enable&&(Pr?fe.enable(32928):fe.disable(32928),tt.sample_enable=Pr),Wi=dt[0],na=dt[1],(Wi!==rt[0]||na!==rt[1])&&(fe.sampleCoverage(Wi,na),rt[0]=Wi,rt[1]=na),yn=Ke.stencil_mask,yn!==tt.stencil_mask&&(fe.stencilMask(yn),tt.stencil_mask=yn),$n=ft[0],$i=ft[1],en=ft[2],($n!==Ft[0]||$i!==Ft[1]||en!==Ft[2])&&(fe.stencilFunc($n,$i,en),Ft[0]=$n,Ft[1]=$i,Ft[2]=en),_r=Et[0],Zr=Et[1],fi=Et[2],aa=Et[3],(_r!==er[0]||Zr!==er[1]||fi!==er[2]||aa!==er[3])&&(fe.stencilOpSeparate(_r,Zr,fi,aa),er[0]=_r,er[1]=Zr,er[2]=fi,er[3]=aa),ln=xr[0],ca=xr[1],Kn=xr[2],dn=xr[3],(ln!==kr[0]||ca!==kr[1]||Kn!==kr[2]||dn!==kr[3])&&(fe.stencilOpSeparate(ln,ca,Kn,dn),kr[0]=ln,kr[1]=ca,kr[2]=Kn,kr[3]=dn)}fe.blendColor(0,0,0,0),ut[0]=0,ut[1]=0,ut[2]=0,ut[3]=0,Ae?fe.enable(3042):fe.disable(3042),tt.blend_enable=Ae,fe.blendEquationSeparate(32774,32774),At[0]=32774,At[1]=32774,fe.blendFuncSeparate(770,771,773,1),Dt[0]=770,Dt[1]=771,Dt[2]=773,Dt[3]=1,se?fe.enable(3089):fe.disable(3089),tt.scissor_enable=se,pe?fe.enable(2960):fe.disable(2960),tt.stencil_enable=pe,Kt=tt.profile,Kt&&(Me=performance.now(),r.count+=di),fe.useProgram(s.program),Xe=Pe.angle_instanced_arrays;var Ta,rn,Ai,nn,Ti;for(Le.setVAO(null),Ta=p.location,rn=Ze[Ta],rn.buffer||fe.enableVertexAttribArray(Ta),(rn.type!==5126||rn.size!==1||rn.buffer!==d||rn.normalized!==!1||rn.offset!==0||rn.stride!==8)&&(fe.bindBuffer(34962,d.buffer),fe.vertexAttribPointer(Ta,1,5126,!1,8,0),rn.type=5126,rn.size=1,rn.buffer=d,rn.normalized=!1,rn.offset=0,rn.stride=8),rn.divisor!==0&&(Xe.vertexAttribDivisorANGLE(Ta,0),rn.divisor=0),Ai=v.location,nn=Ze[Ai],nn.buffer||fe.enableVertexAttribArray(Ai),(nn.type!==5126||nn.size!==1||nn.buffer!==d||nn.normalized!==!1||nn.offset!==4||nn.stride!==8)&&(fe.bindBuffer(34962,d.buffer),fe.vertexAttribPointer(Ai,1,5126,!1,8,4),nn.type=5126,nn.size=1,nn.buffer=d,nn.normalized=!1,nn.offset=4,nn.stride=8),nn.divisor!==0&&(Xe.vertexAttribDivisorANGLE(Ai,0),nn.divisor=0),Ti=at.elements,Ti?fe.bindBuffer(34963,Ti.buffer.buffer):Le.currentVAO&&(Ti=Ge.getElements(Le.currentVAO.elements),Ti&&fe.bindBuffer(34963,Ti.buffer.buffer)),$e=0;$e0?Ut.constant[0]:0,ja=Ut.constant.length>1?Ut.constant[1]:0,ka=Ut.constant.length>2?Ut.constant[2]:0,Ci=Ut.constant.length>3?Ut.constant[3]:0)):(Ie(Ut.buffer)?vn=ge.createStream(34962,Ut.buffer):vn=ge.getBuffer(Ut.buffer),zr="type"in Ut?wr[Ut.type]:vn.dtype,Hi=!!Ut.normalized,Va=Ut.size|0,ni=Ut.offset|0,bn=Ut.stride|0,Bi=Ut.divisor|0)),vi=l.location,mr=Ze[vi],Yn===1?(mr.buffer||fe.enableVertexAttribArray(vi),Mi=Va||2,(mr.type!==zr||mr.size!==Mi||mr.buffer!==vn||mr.normalized!==Hi||mr.offset!==ni||mr.stride!==bn)&&(fe.bindBuffer(34962,vn.buffer),fe.vertexAttribPointer(vi,Mi,zr,Hi,bn,ni),mr.type=zr,mr.size=Mi,mr.buffer=vn,mr.normalized=Hi,mr.offset=ni,mr.stride=bn),mr.divisor!==Bi&&(Xe.vertexAttribDivisorANGLE(vi,Bi),mr.divisor=Bi)):(mr.buffer&&(fe.disableVertexAttribArray(vi),mr.buffer=null),(mr.x!==Ja||mr.y!==ja||mr.z!==ka||mr.w!==Ci)&&(fe.vertexAttrib4f(vi,Ja,ja,ka,Ci),mr.x=Ja,mr.y=ja,mr.z=ka,mr.w=Ci)),Cn=Qe.positionFractBuffer,dr.buffer=Cn,jr=!1,Xn=1,an=0,ta=0,qi=0,On=0,Nn=null,ia=0,Qr=!1,Di=5126,fn=0,Dn=0,Vn=0,Ie(dr)?(jr=!0,Nn=ge.createStream(34962,dr),Di=Nn.dtype):(Nn=ge.getBuffer(dr),Nn?Di=Nn.dtype:"constant"in dr?(Xn=2,typeof dr.constant=="number"?(an=dr.constant,ta=qi=On=0):(an=dr.constant.length>0?dr.constant[0]:0,ta=dr.constant.length>1?dr.constant[1]:0,qi=dr.constant.length>2?dr.constant[2]:0,On=dr.constant.length>3?dr.constant[3]:0)):(Ie(dr.buffer)?Nn=ge.createStream(34962,dr.buffer):Nn=ge.getBuffer(dr.buffer),Di="type"in dr?wr[dr.type]:Nn.dtype,Qr=!!dr.normalized,ia=dr.size|0,fn=dr.offset|0,Dn=dr.stride|0,Vn=dr.divisor|0)),mn=u.location,qr=Ze[mn],Xn===1?(qr.buffer||fe.enableVertexAttribArray(mn),Pi=ia||2,(qr.type!==Di||qr.size!==Pi||qr.buffer!==Nn||qr.normalized!==Qr||qr.offset!==fn||qr.stride!==Dn)&&(fe.bindBuffer(34962,Nn.buffer),fe.vertexAttribPointer(mn,Pi,Di,Qr,Dn,fn),qr.type=Di,qr.size=Pi,qr.buffer=Nn,qr.normalized=Qr,qr.offset=fn,qr.stride=Dn),qr.divisor!==Vn&&(Xe.vertexAttribDivisorANGLE(mn,Vn),qr.divisor=Vn)):(qr.buffer&&(fe.disableVertexAttribArray(mn),qr.buffer=null),(qr.x!==an||qr.y!==ta||qr.z!==qi||qr.w!==On)&&(fe.vertexAttrib4f(mn,an,ta,qi,On),qr.x=an,qr.y=ta,qr.z=qi,qr.w=On)),Ua=Qe.positionBuffer,Wt.buffer=Ua,yi=!1,Ma=1,Ba=0,Bn=0,ji=0,gn=0,jn=null,Un=0,Ii=!1,gr=5126,Ln=0,xn=0,da=0,Ie(Wt)?(yi=!0,jn=ge.createStream(34962,Wt),gr=jn.dtype):(jn=ge.getBuffer(Wt),jn?gr=jn.dtype:"constant"in Wt?(Ma=2,typeof Wt.constant=="number"?(Ba=Wt.constant,Bn=ji=gn=0):(Ba=Wt.constant.length>0?Wt.constant[0]:0,Bn=Wt.constant.length>1?Wt.constant[1]:0,ji=Wt.constant.length>2?Wt.constant[2]:0,gn=Wt.constant.length>3?Wt.constant[3]:0)):(Ie(Wt.buffer)?jn=ge.createStream(34962,Wt.buffer):jn=ge.getBuffer(Wt.buffer),gr="type"in Wt?wr[Wt.type]:jn.dtype,Ii=!!Wt.normalized,Un=Wt.size|0,Ln=Wt.offset|0,xn=Wt.stride|0,da=Wt.divisor|0)),Si=f.location,Kr=Ze[Si],Ma===1?(Kr.buffer||fe.enableVertexAttribArray(Si),Gn=Un||2,(Kr.type!==gr||Kr.size!==Gn||Kr.buffer!==jn||Kr.normalized!==Ii||Kr.offset!==Ln||Kr.stride!==xn)&&(fe.bindBuffer(34962,jn.buffer),fe.vertexAttribPointer(Si,Gn,gr,Ii,xn,Ln),Kr.type=gr,Kr.size=Gn,Kr.buffer=jn,Kr.normalized=Ii,Kr.offset=Ln,Kr.stride=xn),Kr.divisor!==da&&(Xe.vertexAttribDivisorANGLE(Si,da),Kr.divisor=da)):(Kr.buffer&&(fe.disableVertexAttribArray(Si),Kr.buffer=null),(Kr.x!==Ba||Kr.y!==Bn||Kr.z!==ji||Kr.w!==gn)&&(fe.vertexAttrib4f(Si,Ba,Bn,ji,gn),Kr.x=Ba,Kr.y=Bn,Kr.z=ji,Kr.w=gn)),to=Qe.positionFractBuffer,Hr.buffer=to,Jn=!1,ro=1,mo=0,Oa=0,Ei=0,co=0,Pn=null,Fa=0,oa=!1,Hn=5126,va=0,ma=0,Sa=0,Ie(Hr)?(Jn=!0,Pn=ge.createStream(34962,Hr),Hn=Pn.dtype):(Pn=ge.getBuffer(Hr),Pn?Hn=Pn.dtype:"constant"in Hr?(ro=2,typeof Hr.constant=="number"?(mo=Hr.constant,Oa=Ei=co=0):(mo=Hr.constant.length>0?Hr.constant[0]:0,Oa=Hr.constant.length>1?Hr.constant[1]:0,Ei=Hr.constant.length>2?Hr.constant[2]:0,co=Hr.constant.length>3?Hr.constant[3]:0)):(Ie(Hr.buffer)?Pn=ge.createStream(34962,Hr.buffer):Pn=ge.getBuffer(Hr.buffer),Hn="type"in Hr?wr[Hr.type]:Pn.dtype,oa=!!Hr.normalized,Fa=Hr.size|0,va=Hr.offset|0,ma=Hr.stride|0,Sa=Hr.divisor|0)),ki=c.location,Wr=Ze[ki],ro===1?(Wr.buffer||fe.enableVertexAttribArray(ki),An=Fa||2,(Wr.type!==Hn||Wr.size!==An||Wr.buffer!==Pn||Wr.normalized!==oa||Wr.offset!==va||Wr.stride!==ma)&&(fe.bindBuffer(34962,Pn.buffer),fe.vertexAttribPointer(ki,An,Hn,oa,ma,va),Wr.type=Hn,Wr.size=An,Wr.buffer=Pn,Wr.normalized=oa,Wr.offset=va,Wr.stride=ma),Wr.divisor!==Sa&&(Xe.vertexAttribDivisorANGLE(ki,Sa),Wr.divisor=Sa)):(Wr.buffer&&(fe.disableVertexAttribArray(ki),Wr.buffer=null),(Wr.x!==mo||Wr.y!==Oa||Wr.z!==Ei||Wr.w!==co)&&(fe.vertexAttrib4f(ki,mo,Oa,Ei,co),Wr.x=mo,Wr.y=Oa,Wr.z=Ei,Wr.w=co)),Za=Qe.colorBuffer,Er.buffer=Za,Ga=!1,Ca=1,za=0,Wn=0,Zi=0,sa=0,So=null,ya=0,Qn=!1,Tn=5126,Da=0,zn=0,Ia=0,Ie(Er)?(Ga=!0,So=ge.createStream(34962,Er),Tn=So.dtype):(So=ge.getBuffer(Er),So?Tn=So.dtype:"constant"in Er?(Ca=2,typeof Er.constant=="number"?(za=Er.constant,Wn=Zi=sa=0):(za=Er.constant.length>0?Er.constant[0]:0,Wn=Er.constant.length>1?Er.constant[1]:0,Zi=Er.constant.length>2?Er.constant[2]:0,sa=Er.constant.length>3?Er.constant[3]:0)):(Ie(Er.buffer)?So=ge.createStream(34962,Er.buffer):So=ge.getBuffer(Er.buffer),Tn="type"in Er?wr[Er.type]:So.dtype,Qn=!!Er.normalized,ya=Er.size|0,Da=Er.offset|0,zn=Er.stride|0,Ia=Er.divisor|0)),Yi=h.location,In=Ze[Yi],Ca===1?(In.buffer||fe.enableVertexAttribArray(Yi),Oi=ya||4,(In.type!==Tn||In.size!==Oi||In.buffer!==So||In.normalized!==Qn||In.offset!==Da||In.stride!==zn)&&(fe.bindBuffer(34962,So.buffer),fe.vertexAttribPointer(Yi,Oi,Tn,Qn,zn,Da),In.type=Tn,In.size=Oi,In.buffer=So,In.normalized=Qn,In.offset=Da,In.stride=zn),In.divisor!==Ia&&(Xe.vertexAttribDivisorANGLE(Yi,Ia),In.divisor=Ia)):(In.buffer&&(fe.disableVertexAttribArray(Yi),In.buffer=null),(In.x!==za||In.y!==Wn||In.z!==Zi||In.w!==sa)&&(fe.vertexAttrib4f(Yi,za,Wn,Zi,sa),In.x=za,In.y=Wn,In.z=Zi,In.w=sa)),la=Qe.dashLength,(!$e||ga!==la)&&(ga=la,fe.uniform1f(y.location,la)),go=Qe.dashTexture,go&&go._reglType==="framebuffer"&&(go=go.color[0]),eo=go._texture,fe.uniform1i(m.location,eo.bind()),Eo=Qe.depth,(!$e||Mn!==Eo)&&(Mn=Eo,fe.uniform1f(w.location,Eo)),To=Qe.opacity,(!$e||Ya!==To)&&(Ya=To,fe.uniform1f(_.location,To)),Co=Qe.scale,Ri=Co[0],Zn=Co[1],(!$e||qa!==Ri||Ha!==Zn)&&(qa=Ri,Ha=Zn,fe.uniform2f(b.location,Ri,Zn)),Wa=Qe.scaleFract,$a=Wa[0],Ve=Wa[1],(!$e||Fe!==$a||lt!==Ve)&&(Fe=$a,lt=Ve,fe.uniform2f(M.location,$a,Ve)),it=Qe.thickness,(!$e||mt!==it)&&(mt=it,fe.uniform1f(x.location,it)),Rt=Qe.translate,qt=Rt[0],ar=Rt[1],(!$e||Nt!==qt||Ir!==ar)&&(Nt=qt,Ir=ar,fe.uniform2f(T.location,qt,ar)),$t=Qe.translateFract,Bt=$t[0],Dr=$t[1],(!$e||rr!==Bt||Ur!==Dr)&&(rr=Bt,Ur=Dr,fe.uniform2f(A.location,Bt,Dr)),ai=E.call(this,Re,Qe,$e),ci=ai[0],mi=ai[1],Ni=ai[2],xa=ai[3],(!$e||li!==ci||xi!==mi||ua!==Ni||ao!==xa)&&(li=ci,xi=mi,ua=Ni,ao=xa,fe.uniform4f(g.location,ci,mi,Ni,xa)),ho=Qe.count,ho>0?Ti?Xe.drawElementsInstancedANGLE(5,4,Ti.type,0<<(Ti.type-5121>>1),ho):Xe.drawArraysInstancedANGLE(5,0,4,ho):ho<0&&(Ti?fe.drawElements(5,4,Ti.type,0<<(Ti.type-5121>>1)):fe.drawArrays(5,0,4)),Re.viewportWidth=pr,Re.viewportHeight=oi,ti&&ge.destroyStream(vn),jr&&ge.destroyStream(Nn),yi&&ge.destroyStream(jn),Jn&&ge.destroyStream(Pn),Ga&&ge.destroyStream(So),eo.unbind()}tt.dirty=!0,Le.setVAO(null),Kt&&(r.cpuTime+=performance.now()-Me)}}}});var Jte=K((rii,qZe)=>{"use strict";var Qvr=kB(),e1r=CB(),t1r=DB(),r1r=FB(),i1r=LB(),n1r=PB(),a1r=zB(),o1r=IB(),s1r=RB(),l1r=BB();qZe.exports={"3e771157d23b4793771f65d83e6387262ed73d488209157f19a7fa027bddd71b":Qvr,"49e82bba439f1d9d441c17ba252d05640bc63fefdf22d1219993633af7730210":e1r,"6a5d6bd29c15cf7614221b94c3f384df47c2c46fbe4456e8c57b5cd14c84d923":t1r,"8902aff2b23b600f8103bcc84a8af2999d28795208aedadc2db06f921f9c7034":r1r,"8fad2284703471df7c0e0d0a7b96d983e8c53f6d707dd55d5921c1eab71f6623":i1r,bfc540da96a87fcc039073cb37b45e6b81ef5ee6ef3529d726ceed8336354019:n1r,cbf700f001fff25b649fba9c37fa0dc6631c1cdee318ad49473d28ec10dcee81:a1r,db1b82c68771e7f5012fad1fbdae7ff23b526e58d2995bf6dd2cf30024e0f41d:o1r,dbd1cc9126a137a605df67dc0706e55116f04e33b4545a80042031752de5aef5:s1r,fe5b6844077cde1bdd7273f4495969fad93500c26a69b62e74ec2664c447bcc7:l1r}});var VZe=K((iii,NZe)=>{"use strict";var OZe=Kte(),u1r=Jte();Object.assign(OZe.reglPrecompiled,u1r);NZe.exports=OZe});var HZe=K((nii,GZe)=>{"use strict";var UZe=Uje();UZe.plot=VZe();GZe.exports=UZe});var Qte=K((aii,YZe)=>{"use strict";var f1r=Qf(),$Ze=Wu(),jZe=zf().axisHoverFormat,{hovertemplateAttrs:c1r,templatefallbackAttrs:h1r}=gu(),lk=VE(),d1r=(jc(),or(Hc)).idRegex,p1r=cu().templatedArray,c5=Os().extendFlat,jy=f1r.marker,v1r=jy.line,m1r=c5($Ze("marker.line",{editTypeOverride:"calc"}),{width:c5({},v1r.width,{editType:"calc"}),editType:"calc"}),qB=c5($Ze("marker"),{symbol:jy.symbol,angle:jy.angle,size:c5({},jy.size,{editType:"markerSize"}),sizeref:jy.sizeref,sizemin:jy.sizemin,sizemode:jy.sizemode,opacity:jy.opacity,colorbar:jy.colorbar,line:m1r,editType:"calc"});qB.color.editType=qB.cmin.editType=qB.cmax.editType="style";function WZe(e){return{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"subplotid",regex:d1r[e],editType:"plot"}}}YZe.exports={dimensions:p1r("dimension",{visible:{valType:"boolean",dflt:!0,editType:"calc"},label:{valType:"string",editType:"calc"},values:{valType:"data_array",editType:"calc+clearAxisTypes"},axis:{type:{valType:"enumerated",values:["linear","log","date","category"],editType:"calc+clearAxisTypes"},matches:{valType:"boolean",dflt:!0,editType:"calc"},editType:"calc+clearAxisTypes"},editType:"calc+clearAxisTypes"}),text:c5({},lk.text,{}),hovertext:c5({},lk.hovertext,{}),hovertemplate:c1r(),hovertemplatefallback:h1r(),xhoverformat:jZe("x"),yhoverformat:jZe("y"),marker:qB,xaxes:WZe("x"),yaxes:WZe("y"),diagonal:{visible:{valType:"boolean",dflt:!0,editType:"calc"},editType:"calc"},showupperhalf:{valType:"boolean",dflt:!0,editType:"calc"},showlowerhalf:{valType:"boolean",dflt:!0,editType:"calc"},selected:{marker:lk.selected.marker,editType:"calc"},unselected:{marker:lk.unselected.marker,editType:"calc"},opacity:lk.opacity}});var OB=K((oii,XZe)=>{"use strict";XZe.exports=function(e,t,r,i){i||(i=1/0);var n,a;for(n=0;n{"use strict";var ere=St(),y1r=A0(),ZZe=Qte(),g1r=ff(),x1r=Xp(),b1r=OB(),_1r=jR().isOpenSymbol;KZe.exports=function(t,r,i,n){function a(d,p){return ere.coerce(t,r,ZZe,d,p)}var o=y1r(t,r,{name:"dimensions",handleItemDefaults:w1r}),s=a("diagonal.visible"),l=a("showupperhalf"),u=a("showlowerhalf"),f=b1r(r,o,"values");if(!f||!s&&!l&&!u){r.visible=!1;return}a("text"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback"),a("xhoverformat"),a("yhoverformat"),x1r(t,r,i,n,a,{noAngleRef:!0,noLineDash:!0,noStandOff:!0});var c=_1r(r.marker.symbol),h=g1r.isBubble(r);a("marker.line.width",c||h?1:0),A1r(t,r,n,a),ere.coerceSelectionMarkerOpacity(r,a)};function w1r(e,t){function r(n,a){return ere.coerce(e,t,ZZe.dimensions,n,a)}r("label");var i=r("values");i&&i.length?r("visible"):t.visible=!1,r("axis.type"),r("axis.matches")}function A1r(e,t,r,i){var n=t.dimensions,a=n.length,o=t.showupperhalf,s=t.showlowerhalf,l=t.diagonal.visible,u,f,c=new Array(a),h=new Array(a);for(u=0;uf&&o||u{"use strict";var QZe=St();eKe.exports=function(t,r){var i=t._fullLayout,n=r.uid,a=i._splomScenes;a||(a=i._splomScenes={});var o={dirty:!0,selectBatch:[],unselectBatch:[]},s={matrix:!1,selectBatch:[],unselectBatch:[]},l=a[r.uid];return l||(l=a[n]=QZe.extendFlat({},o,s),l.draw=function(){l.matrix&&l.matrix.draw&&(l.selectBatch.length||l.unselectBatch.length?l.matrix.draw(l.unselectBatch,l.selectBatch):l.matrix.draw()),l.dirty=!1},l.destroy=function(){l.matrix&&l.matrix.destroy&&l.matrix.destroy(),l.matrixOptions=null,l.selectBatch=null,l.unselectBatch=null,l=null}),l.dirty||QZe.extendFlat(l,o),l}});var nKe=K((uii,iKe)=>{"use strict";var tre=St(),NB=Vf(),T1r=Kp().calcMarkerSize,M1r=Kp().calcAxisExpansion,S1r=Zp(),rKe=W_().markerSelection,E1r=W_().markerStyle,k1r=tKe(),C1r=(Il(),or(Bl)).BADNUM,D1r=(V_(),or(N_)).TOO_MANY_POINTS;iKe.exports=function(t,r){var i=r.dimensions,n=r._length,a={},o=a.cdata=[],s=a.data=[],l=r._visibleDims=[],u,f,c,h,d;function p(_,b){for(var M=_.makeCalcdata({v:b.values,vcalendar:r.calendar},"v"),x=0;xD1r,m;for(y?m=a.sizeAvg||Math.max(a.size,3):m=T1r(r,n),f=0;f{(function(){var e,t,r,i,n,a;typeof performance!="undefined"&&performance!==null&&performance.now?uk.exports=function(){return performance.now()}:typeof process!="undefined"&&process!==null&&process.hrtime?(uk.exports=function(){return(e()-n)/1e6},t=process.hrtime,e=function(){var o;return o=t(),o[0]*1e9+o[1]},i=e(),a=process.uptime()*1e9,n=i-a):Date.now?(uk.exports=function(){return Date.now()-r},r=Date.now()):(uk.exports=function(){return new Date().getTime()-r},r=new Date().getTime())}).call(aKe)});var lKe=K((fii,GB)=>{var F1r=oKe(),Wy=window,VB=["moz","webkit"],d5="AnimationFrame",p5=Wy["request"+d5],fk=Wy["cancel"+d5]||Wy["cancelRequest"+d5];for(h5=0;!p5&&h5{uKe.exports=function(t,r){var i=typeof t=="number",n=typeof r=="number";i&&!n?(r=t,t=0):!i&&!n&&(t=0,r=0),t=t|0,r=r|0;var a=r-t;if(a<0)throw new Error("array length must be positive");for(var o=new Array(a),s=0,l=t;s{"use strict";var L1r=Kee(),P1r=Cm(),z1r=U_(),cKe=lKe(),I1r=fKe(),ire=J4(),R1r=G_();dKe.exports=Q2;function Q2(e,t){if(!(this instanceof Q2))return new Q2(e,t);this.traces=[],this.passes={},this.regl=e,this.scatter=L1r(e),this.canvas=this.scatter.canvas}Q2.prototype.render=function(...e){return e.length&&this.update(...e),this.regl.attributes.preserveDrawingBuffer?this.draw():(this.dirty?this.planned==null&&(this.planned=cKe(()=>{this.draw(),this.dirty=!0,this.planned=null})):(this.draw(),this.dirty=!0,cKe(()=>{this.dirty=!1})),this)};Q2.prototype.update=function(...e){if(!e.length)return;for(let i=0;iy||!n.lower&&v{t[a+s]=i})}this.scatter.draw(...t)}return this};Q2.prototype.destroy=function(){return this.traces.forEach(e=>{e.buffer&&e.buffer.destroy&&e.buffer.destroy()}),this.traces=null,this.passes=null,this.scatter.destroy(),this};function B1r(e,t,r){let i=e.id!=null?e.id:e,n=t,a=r;return i<<16|(n&255)<<8|a&255}function HB(e,t,r){let i,n,a,o,s,l,u,f,c=e[t],h=e[r];return c.length>2?(i=c[0],a=c[2],n=c[1],o=c[3]):c.length?(i=n=c[0],a=o=c[1]):(i=c.x,n=c.y,a=c.x+c.width,o=c.y+c.height),h.length>2?(s=h[0],u=h[2],l=h[1],f=h[3]):h.length?(s=l=h[0],u=f=h[1]):(s=h.x,l=h.y,u=h.x+h.width,f=h.y+h.height),[s,n,u,o]}function hKe(e){if(typeof e=="number")return[e,e,e,e];if(e.length===2)return[e[0],e[1],e[0],e[1]];{let t=ire(e);return[t.x,t.y,t.x+t.width,t.y+t.height]}}});var mKe=K((dii,vKe)=>{"use strict";var q1r=pKe(),nre=St(),jB=Vf(),O1r=Q1().selectMode;vKe.exports=function(t,r,i){if(i.length)for(var n=0;n-1,S=O1r(f)||!!n.selectedpoints||E,C=!0;if(S){var k=n._length;if(n.selectedpoints){o.selectBatch=n.selectedpoints;var D=n.selectedpoints,F={};for(d=0;d{"use strict";yKe.getDimIndex=function(t,r){for(var i=r._id,n=i.charAt(0),a={x:0,y:1}[n],o=t._visibleDims,s=0;s{"use strict";var gKe=are(),V1r=HR().calcHover,xKe=Cs().getFromId,U1r=Os().extendFlat;function G1r(e,t,r,i,n){n||(n={});var a=(i||"").charAt(0)==="x",o=(i||"").charAt(0)==="y",s=bKe(e,t,r);if((a||o)&&n.hoversubplots==="axis"&&s[0])for(var l=(a?e.xa:e.ya)._subplotsWith,u=n.gd,f=U1r({},e),c=0;c{"use strict";var SKe=St(),AKe=SKe.pushUnique,TKe=ff(),MKe=are();EKe.exports=function(t,r){var i=t.cd,n=i[0].trace,a=i[0].t,o=t.scene,s=o.matrixOptions.cdata,l=t.xaxis,u=t.yaxis,f=[];if(!o)return f;var c=!TKe.hasMarkers(n)&&!TKe.hasText(n);if(n.visible!==!0||c)return f;var h=MKe.getDimIndex(n,l),d=MKe.getDimIndex(n,u);if(h===!1||d===!1)return f;var p=a.xpx[h],v=a.ypx[d],y=s[h],m=s[d],w=(t.scene.selectBatch||[]).slice(),_=[];if(r!==!1&&!r.degenerate)for(var b=0;b{"use strict";var CKe=St(),H1r=Zp(),j1r=W_().markerStyle;DKe.exports=function(t,r){var i=r.trace,n=t._fullLayout._splomScenes[i.uid];if(n){H1r(t,i),CKe.extendFlat(n.matrixOptions,j1r(t,i));var a=CKe.extendFlat({},n.matrixOptions,n.viewOpts);n.matrix.update(a,null)}}});var PKe=K((gii,LKe)=>{"use strict";var W1r=Ho(),$1r=N$();LKe.exports={moduleType:"trace",name:"splom",categories:["gl","regl","cartesian","symbols","showLegend","scatter-like"],attributes:Qte(),supplyDefaults:JZe(),colorbar:e0(),calc:nKe(),plot:mKe(),hoverPoints:wKe().hoverPoints,selectPoints:kKe(),editStyle:FKe(),meta:{}};W1r.register($1r)});var OKe=K((xii,qKe)=>{"use strict";var Y1r=Cte(),X1r=Ho(),{rgbaString:Z1r}=wo(),K1r=EB(),J1r=Zh().getModuleCalcData,ex=gc(),zKe=Vf().getFromId,IKe=Cs().shouldShowZeroLine,RKe="splom",BKe={};function Q1r(e){var t=e._fullLayout,r=X1r.getModule(RKe),i=J1r(e.calcdata,r)[0],n=K1r(e,["ANGLE_instanced_arrays","OES_element_index_uint"],BKe);n&&(t._hasOnlyLargeSploms&&ore(e),r.plot(e,{},i))}function emr(e){var t=e.calcdata,r=e._fullLayout;r._hasOnlyLargeSploms&&ore(e);for(var i=0;i{"use strict";var nmr=kB(),amr=CB(),omr=DB(),smr=FB(),lmr=LB(),umr=PB(),fmr=zB(),cmr=IB(),hmr=RB(),dmr=BB();NKe.exports={"3e771157d23b4793771f65d83e6387262ed73d488209157f19a7fa027bddd71b":nmr,"49e82bba439f1d9d441c17ba252d05640bc63fefdf22d1219993633af7730210":amr,"6a5d6bd29c15cf7614221b94c3f384df47c2c46fbe4456e8c57b5cd14c84d923":omr,"8902aff2b23b600f8103bcc84a8af2999d28795208aedadc2db06f921f9c7034":smr,"8fad2284703471df7c0e0d0a7b96d983e8c53f6d707dd55d5921c1eab71f6623":lmr,bfc540da96a87fcc039073cb37b45e6b81ef5ee6ef3529d726ceed8336354019:umr,cbf700f001fff25b649fba9c37fa0dc6631c1cdee318ad49473d28ec10dcee81:fmr,db1b82c68771e7f5012fad1fbdae7ff23b526e58d2995bf6dd2cf30024e0f41d:cmr,dbd1cc9126a137a605df67dc0706e55116f04e33b4545a80042031752de5aef5:hmr,fe5b6844077cde1bdd7273f4495969fad93500c26a69b62e74ec2664c447bcc7:dmr}});var HKe=K((_ii,GKe)=>{"use strict";var UKe=OKe(),pmr=VKe();Object.assign(UKe.reglPrecompiled,pmr);GKe.exports=UKe});var $Ke=K((wii,WKe)=>{"use strict";var jKe=PKe();jKe.basePlotModule=HKe(),WKe.exports=jKe});var ure=K((Aii,YKe)=>{"use strict";var vmr=Wu(),sre=Ph(),lre=lf(),mmr=kf().attributes,WB=Os().extendFlat,ymr=cu().templatedArray;YKe.exports={domain:mmr({name:"parcoords",trace:!0,editType:"plot"}),labelangle:{valType:"angle",dflt:0,editType:"plot"},labelside:{valType:"enumerated",values:["top","bottom"],dflt:"top",editType:"plot"},labelfont:lre({editType:"plot"}),tickfont:lre({autoShadowDflt:!0,editType:"plot"}),rangefont:lre({editType:"plot"}),dimensions:ymr("dimension",{label:{valType:"string",editType:"plot"},tickvals:WB({},sre.tickvals,{editType:"plot"}),ticktext:WB({},sre.ticktext,{editType:"plot"}),tickformat:WB({},sre.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:WB({editType:"calc"},vmr("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"}}});var ck={};Fl(ck,{axisExtentOffset:()=>Smr,axisTitleOffset:()=>Mmr,bar:()=>Emr,blockLineCount:()=>Amr,canvasPixelRatio:()=>wmr,cn:()=>kmr,id:()=>Cmr,layers:()=>Tmr,maxDimensionCount:()=>gmr,overdrag:()=>xmr,tickDistance:()=>_mr,verticalPadding:()=>bmr});var gmr,xmr,bmr,_mr,wmr,Amr,Tmr,Mmr,Smr,Emr,kmr,Cmr,hk=ps(()=>{"use strict";gmr=60,xmr=45,bmr=2,_mr=50,wmr=1,Amr=5e3,Tmr=["contextLineLayer","focusLineLayer","pickLineLayer"],Mmr=28,Smr=10,Emr={width:4,captureWidth:10,fillColor:"magenta",fillOpacity:1,snapDuration:150,snapRatio:.25,snapClose:.01,strokeOpacity:1,strokeWidth:1,handleHeight:8,handleOpacity:1,handleOverlap:0},kmr={axisExtentText:"axis-extent-text",parcoordsLineLayers:"parcoords-line-layers",parcoordsLineLayer:"parcoords-lines",parcoords:"parcoords",parcoordsControlView:"parcoords-control-view",yAxis:"y-axis",axisOverlays:"axis-overlays",axis:"axis",axisHeading:"axis-heading",axisTitle:"axis-title",axisExtent:"axis-extent",axisExtentTop:"axis-extent-top",axisExtentTopText:"axis-extent-top-text",axisExtentBottom:"axis-extent-bottom",axisExtentBottomText:"axis-extent-bottom-text",axisBrush:"axis-brush"},Cmr={filterBarPattern:"filter-bar-pattern"}});var Lm=K((Tii,ZKe)=>{"use strict";var Dmr=m6();function XKe(e){return[e]}ZKe.exports={keyFun:function(e){return e.key},repeat:XKe,descend:Dmr,wrap:XKe,unwrap:function(e){return e[0]}}});var hre=K((Mii,sJe)=>{"use strict";var Oc=(hk(),or(ck)),M1=No(),Fmr=Lm().keyFun,$B=Lm().repeat,v5=St().sorterAsc,Lmr=St().strTranslate,KKe=Oc.bar.snapRatio;function JKe(e,t){return e*(1-KKe)+t*KKe}var QKe=Oc.bar.snapClose;function Pmr(e,t){return e*(1-QKe)+t*QKe}function XB(e,t,r,i){if(zmr(r,i))return r;var n=e?-1:1,a=0,o=t.length-1;if(n<0){var s=a;a=o,o=s}for(var l=t[a],u=l,f=a;n*f=t[r][0]&&e<=t[r][1])return!0;return!1}function Imr(e){e.attr("x",-Oc.bar.captureWidth/2).attr("width",Oc.bar.captureWidth)}function Rmr(e){e.attr("visibility","visible").style("visibility","visible").attr("fill","yellow").attr("opacity",0)}function Bmr(e){if(!e.brush.filterSpecified)return"0,"+e.height;for(var t=eJe(e.brush.filter.getConsolidated(),e.height),r=[0],i,n,a,o=t.length?t[0][0]:null,s=0;se[1]+r||t=.9*e[1]+.1*e[0]?"n":t<=.9*e[0]+.1*e[1]?"s":"ns"}function tJe(){M1.select(document.body).style("cursor",null)}function cre(e){e.attr("stroke-dasharray",Bmr)}function YB(e,t){var r=M1.select(e).selectAll(".highlight, .highlight-shadow"),i=t?r.transition().duration(Oc.bar.snapDuration).each("end",t):r;cre(i)}function rJe(e,t){var r=e.brush,i=r.filterSpecified,n=NaN,a={},o;if(i){var s=e.height,l=r.filter.getConsolidated(),u=eJe(l,s),f=NaN,c=NaN,h=NaN;for(o=0;o<=u.length;o++){var d=u[o];if(d&&d[0]<=t&&t<=d[1]){f=o;break}else if(c=o?o-1:NaN,d&&d[0]>t){h=o;break}}if(n=f,isNaN(n)&&(isNaN(c)||isNaN(h)?n=isNaN(c)?h:c:n=t-u[c][1]=w[0]&&m<=w[1]){a.clickableOrdinalRange=w;break}}}return a}function Omr(e,t){M1.event.sourceEvent.stopPropagation();var r=t.height-M1.mouse(e)[1]-2*Oc.verticalPadding,i=t.unitToPaddedPx.invert(r),n=t.brush,a=rJe(t,r),o=a.interval,s=n.svgBrush;if(s.wasDragged=!1,s.grabbingBar=a.region==="ns",s.grabbingBar){var l=o.map(t.unitToPaddedPx);s.grabPoint=r-l[0]-Oc.verticalPadding,s.barLength=l[1]-l[0]}s.clickableOrdinalRange=a.clickableOrdinalRange,s.stayingIntervals=t.multiselect&&n.filterSpecified?n.filter.getConsolidated():[],o&&(s.stayingIntervals=s.stayingIntervals.filter(function(u){return u[0]!==o[0]&&u[1]!==o[1]})),s.startExtent=a.region?o[a.region==="s"?1:0]:i,t.parent.inBrushDrag=!0,s.brushStartCallback()}function iJe(e,t){M1.event.sourceEvent.stopPropagation();var r=t.height-M1.mouse(e)[1]-2*Oc.verticalPadding,i=t.brush.svgBrush;i.wasDragged=!0,i._dragging=!0,i.grabbingBar?i.newExtent=[r-i.grabPoint,r+i.barLength-i.grabPoint].map(t.unitToPaddedPx.invert):i.newExtent=[i.startExtent,t.unitToPaddedPx.invert(r)].sort(v5),t.brush.filterSpecified=!0,i.extent=i.stayingIntervals.concat([i.newExtent]),i.brushCallback(t),YB(e.parentNode)}function Nmr(e,t){var r=t.brush,i=r.filter,n=r.svgBrush;n._dragging||(nJe(e,t),iJe(e,t),t.brush.svgBrush.wasDragged=!1),n._dragging=!1;var a=M1.event;a.sourceEvent.stopPropagation();var o=n.grabbingBar;if(n.grabbingBar=!1,n.grabLocation=void 0,t.parent.inBrushDrag=!1,tJe(),!n.wasDragged){n.wasDragged=void 0,n.clickableOrdinalRange?r.filterSpecified&&t.multiselect?n.extent.push(n.clickableOrdinalRange):(n.extent=[n.clickableOrdinalRange],r.filterSpecified=!0):o?(n.extent=n.stayingIntervals,n.extent.length===0&&fre(r)):fre(r),n.brushCallback(t),YB(e.parentNode),n.brushEndCallback(r.filterSpecified?i.getConsolidated():[]);return}var s=function(){i.set(i.getConsolidated())};if(t.ordinal){var l=t.unitTickvals;l[l.length-1]n.newExtent[0];n.extent=n.stayingIntervals.concat(u?[n.newExtent]:[]),n.extent.length||fre(r),n.brushCallback(t),u?YB(e.parentNode,s):(s(),YB(e.parentNode))}else s();n.brushEndCallback(r.filterSpecified?i.getConsolidated():[])}function nJe(e,t){var r=t.height-M1.mouse(e)[1]-2*Oc.verticalPadding,i=rJe(t,r),n="crosshair";i.clickableOrdinalRange?n="pointer":i.region&&(n=i.region+"-resize"),M1.select(document.body).style("cursor",n)}function Vmr(e){e.on("mousemove",function(t){M1.event.preventDefault(),t.parent.inBrushDrag||nJe(this,t)}).on("mouseleave",function(t){t.parent.inBrushDrag||tJe()}).call(M1.behavior.drag().on("dragstart",function(t){Omr(this,t)}).on("drag",function(t){iJe(this,t)}).on("dragend",function(t){Nmr(this,t)}))}function aJe(e,t){return e[0]-t[0]}function Umr(e,t,r){var i=r._context.staticPlot,n=e.selectAll(".background").data($B);n.enter().append("rect").classed("background",!0).call(Imr).call(Rmr).style("pointer-events",i?"none":"auto").attr("transform",Lmr(0,Oc.verticalPadding)),n.call(Vmr).attr("height",function(s){return s.height-Oc.verticalPadding});var a=e.selectAll(".highlight-shadow").data($B);a.enter().append("line").classed("highlight-shadow",!0).attr("x",-Oc.bar.width/2).attr("stroke-width",Oc.bar.width+Oc.bar.strokeWidth).attr("stroke",t).attr("opacity",Oc.bar.strokeOpacity).attr("stroke-linecap","butt"),a.attr("y1",function(s){return s.height}).call(cre);var o=e.selectAll(".highlight").data($B);o.enter().append("line").classed("highlight",!0).attr("x",-Oc.bar.width/2).attr("stroke-width",Oc.bar.width-Oc.bar.strokeWidth).attr("stroke",Oc.bar.fillColor).attr("opacity",Oc.bar.fillOpacity).attr("stroke-linecap","butt"),o.attr("y1",function(s){return s.height}).call(cre)}function Gmr(e,t,r){var i=e.selectAll("."+Oc.cn.axisBrush).data($B,Fmr);i.enter().append("g").classed(Oc.cn.axisBrush,!0),Umr(i,t,r)}function Hmr(e){return e.svgBrush.extent.map(function(t){return t.slice()})}function fre(e){e.filterSpecified=!1,e.svgBrush.extent=[[-1/0,1/0]]}function jmr(e){return function(r){var i=r.brush,n=Hmr(i),a=n.slice();i.filter.set(a),e()}}function oJe(e){for(var t=e.slice(),r=[],i,n=t.shift();n;){for(i=n.slice();(n=t.shift())&&n[0]<=i[1];)i[1]=Math.max(i[1],n[1]);r.push(i)}return r.length===1&&r[0][0]>r[0][1]&&(r=[]),r}function Wmr(){var e=[],t,r;return{set:function(i){e=i.map(function(n){return n.slice().sort(v5)}).sort(aJe),e.length===1&&e[0][0]===-1/0&&e[0][1]===1/0&&(e=[[0,-1]]),t=oJe(e),r=e.reduce(function(n,a){return[Math.min(n[0],a[0]),Math.max(n[1],a[1])]},[1/0,-1/0])},get:function(){return e.slice()},getConsolidated:function(){return t},getBounds:function(){return r}}}function $mr(e,t,r,i,n,a){var o=Wmr();return o.set(r),{filter:o,filterSpecified:t,svgBrush:{extent:[],brushStartCallback:i,brushCallback:jmr(n),brushEndCallback:a}}}function Ymr(e,t){if(Array.isArray(e[0])?(e=e.map(function(i){return i.sort(v5)}),t.multiselect?e=oJe(e.sort(aJe)):e=[e[0]]):e=[e.sort(v5)],t.tickvals){var r=t.tickvals.slice().sort(v5);if(e=e.map(function(i){var n=[XB(0,r,i[0],[]),XB(1,r,i[1],[])];if(n[1]>n[0])return n}).filter(function(i){return i}),!e.length)return}return e.length>1?e:e[0]}sJe.exports={makeBrush:$mr,ensureAxisBrush:Gmr,cleanRanges:Ymr}});var fJe=K((Sii,uJe)=>{"use strict";var tx=St(),Xmr=Kh().hasColorscale,Zmr=xh(),Kmr=kf().defaults,Jmr=A0(),Qmr=Cs(),lJe=ure(),eyr=hre(),dre=(hk(),or(ck)).maxDimensionCount,tyr=OB();function ryr(e,t,r,i,n){var a=n("line.color",r);if(Xmr(e,"line")&&tx.isArrayOrTypedArray(a)){if(a.length)return n("line.colorscale"),Zmr(e,t,i,n,{prefix:"line.",cLetter:"c"}),a.length;t.line.color=r}return 1/0}function iyr(e,t,r,i){function n(u,f){return tx.coerce(e,t,lJe.dimensions,u,f)}var a=n("values"),o=n("visible");if(a&&a.length||(o=t.visible=!1),o){n("label"),n("tickvals"),n("ticktext"),n("tickformat");var s=n("range");t._ax={_id:"y",type:"linear",showexponent:"all",exponentformat:"B",range:s},Qmr.setConvert(t._ax,i.layout),n("multiselect");var l=n("constraintrange");l&&(t.constraintrange=eyr.cleanRanges(l,t))}}uJe.exports=function(t,r,i,n){function a(f,c){return tx.coerce(t,r,lJe,f,c)}var o=t.dimensions;Array.isArray(o)&&o.length>dre&&(tx.log("parcoords traces support up to "+dre+" dimensions at the moment"),o.splice(dre));var s=Jmr(t,r,{name:"dimensions",layout:n,handleItemDefaults:iyr}),l=ryr(t,r,i,n,a);Kmr(r,n,a),(!Array.isArray(s)||!s.length)&&(r.visible=!1),tyr(r,s,"values",l);var u=tx.extendFlat({},n.font,{size:Math.round(n.font.size/1.2)});tx.coerceFont(a,"labelfont",u),tx.coerceFont(a,"tickfont",u,{autoShadowDflt:!0}),tx.coerceFont(a,"rangefont",u),a("labelangle"),a("labelside"),a("unselected.line.color"),a("unselected.line.opacity")}});var hJe=K((Eii,cJe)=>{"use strict";var nyr=St().isArrayOrTypedArray,pre=gf(),ayr=Lm().wrap;cJe.exports=function(t,r){var i,n;return pre.hasColorscale(r,"line")&&nyr(r.line.color)?(i=r.line.color,n=pre.extractOpts(r.line).colorscale,pre.calc(t,r,{vals:i,containerStr:"line",cLetter:"c"})):(i=oyr(r._length),n=[[0,r.line.color],[1,r.line.color]]),ayr({lineColor:i,cscale:n})};function oyr(e){for(var t=new Array(e),r=0;r{"use strict";var syr=St().isTypedArray;ZB.convertTypedArray=function(e){return syr(e)?Array.prototype.slice.call(e):e};ZB.isOrdinal=function(e){return!!e.tickvals};ZB.isVisible=function(e){return e.visible||!("visible"in e)}});var wJe=K((Cii,_Je)=>{"use strict";var lyr=["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(` +`),uyr=["precision highp float;","","varying vec4 fragColor;","","void main() {"," gl_FragColor = fragColor;","}"].join(` +`),dk=(hk(),or(ck)).maxDimensionCount,gJe=St(),dJe=1e-6,KB=2048,fyr=new Uint8Array(4),pJe=new Uint8Array(4),vJe={shape:[256,1],format:"rgba",type:"uint8",mag:"nearest",min:"nearest"};function cyr(e){e.read({x:0,y:0,width:1,height:1,data:fyr})}function xJe(e,t,r,i,n){var a=e._gl;a.enable(a.SCISSOR_TEST),a.scissor(t,r,i,n),e.clear({color:[0,0,0,0],depth:1})}function hyr(e,t,r,i,n,a){var o=a.key;function s(l){var u=Math.min(i,n-l*i);l===0&&(window.cancelAnimationFrame(r.currentRafs[o]),delete r.currentRafs[o],xJe(e,a.scissorX,a.scissorY,a.scissorWidth,a.viewBoxSize[1])),!r.clearOnly&&(a.count=2*u,a.offset=2*l*i,t(a),l*i+u>>8*t)%256/255}function vyr(e,t,r){for(var i=new Array(e*(dk+4)),n=0,a=0;aP&&(P=A[C].dim1.canvasX,D=C);S===0&&xJe(n,0,0,u.canvasWidth,u.canvasHeight);var I=_(r);for(C=0;C{"use strict";var Oh=No(),$y=St(),yre=$y.isArrayOrTypedArray,kJe=$y.numberFormat,CJe=wo(),DJe=Cs(),byr=$y.strRotate,Pm=$y.strTranslate,_yr=Du(),JB=Is(),AJe=gf(),bre=Lm(),gv=bre.keyFun,zm=bre.repeat,FJe=bre.unwrap,m5=vre(),pu=(hk(),or(ck)),LJe=hre(),wyr=wJe();function TJe(e,t,r){return $y.aggNums(e,null,t,r)}function PJe(e,t){return _re(TJe(Math.min,e,t),TJe(Math.max,e,t))}function QB(e){var t=e.range;return t?_re(t[0],t[1]):PJe(e.values,e._length)}function _re(e,t){return(isNaN(e)||!isFinite(e))&&(e=0),(isNaN(t)||!isFinite(t))&&(t=0),e===t&&(e===0?(e-=1,t+=1):(e*=.9,t*=1.1)),[e,t]}function Ayr(e,t){return t?function(r,i){var n=t[i];return n==null?e(r):n}:e}function Tyr(e,t,r,i,n){var a=QB(r);return i?Oh.scale.ordinal().domain(i.map(Ayr(kJe(r.tickformat),n))).range(i.map(function(o){var s=(o-a[0])/(a[1]-a[0]);return e-t+s*(2*t-e)})):Oh.scale.linear().domain(a).range([e-t,t])}function Myr(e,t){return Oh.scale.linear().range([t,e-t])}function Syr(e,t){return Oh.scale.linear().domain(QB(e)).range([t,1-t])}function Eyr(e){if(e.tickvals){var t=QB(e);return Oh.scale.ordinal().domain(e.tickvals).range(e.tickvals.map(function(r){return(r-t[0])/(t[1]-t[0])}))}}function kyr(e){var t=e.map(function(a){return a[0]}),r=e.map(function(a){let[o,s,l]=CJe.rgbaArray(a[1]);return Oh.rgb(o,s,l)}),i=function(a){return function(o){return o[a]}},n="rgb".split("").map(function(a){return Oh.scale.linear().clamp(!0).domain(t).range(r.map(i(a)))});return function(a){return n.map(function(o){return o(a)})}}function xre(e){return e.dimensions.some(function(t){return t.brush.filterSpecified})}function Cyr(e,t,r){var i=FJe(t),n=i.trace,a=m5.convertTypedArray(i.lineColor),o=n.line,s={color:CJe.normalize(n.unselected.line.color),opacity:n.unselected.line.opacity},l=AJe.extractOpts(o),u=l.reversescale?AJe.flipScale(i.cscale):i.cscale,f=n.domain,c=n.dimensions,h=e.width,d=n.labelangle,p=n.labelside,v=n.labelfont,y=n.tickfont,m=n.rangefont,w=$y.extendDeepNoArrays({},o,{color:a.map(Oh.scale.linear().domain(QB({values:a,range:[l.min,l.max],_length:n._length}))),blockLineCount:pu.blockLineCount,canvasOverdrag:pu.overdrag*pu.canvasPixelRatio}),_=Math.floor(h*(f.x[1]-f.x[0])),b=Math.floor(e.height*(f.y[1]-f.y[0])),M=e.margin||{l:80,r:80,t:100,b:80},x=_,T=b;return{key:r,colCount:c.filter(m5.isVisible).length,dimensions:c,tickDistance:pu.tickDistance,unitToColor:kyr(u),lines:w,deselectedLines:s,labelAngle:d,labelSide:p,labelFont:v,tickFont:y,rangeFont:m,layoutWidth:h,layoutHeight:e.height,domain:f,translateX:f.x[0]*h,translateY:e.height-f.y[1]*e.height,pad:M,canvasWidth:x*pu.canvasPixelRatio+2*w.canvasOverdrag,canvasHeight:T*pu.canvasPixelRatio,width:x,height:T,canvasPixelRatio:pu.canvasPixelRatio}}function Dyr(e,t,r){var i=r.width,n=r.height,a=r.dimensions,o=r.canvasPixelRatio,s=function(h){return i*h/Math.max(1,r.colCount-1)},l=pu.verticalPadding/n,u=Myr(n,pu.verticalPadding),f={key:r.key,xScale:s,model:r,inBrushDrag:!1},c={};return f.dimensions=a.filter(m5.isVisible).map(function(h,d){var p=Syr(h,l),v=c[h.label];c[h.label]=(v||0)+1;var y=h.label+(v?"__"+v:""),m=h.constraintrange,w=m&&m.length;w&&!yre(m[0])&&(m=[m]);var _=w?m.map(function(k){return k.map(p)}):[[-1/0,1/0]],b=function(){var k=f;k.focusLayer&&k.focusLayer.render(k.panels,!0);var D=xre(k);!e.contextShown()&&D?(k.contextLayer&&k.contextLayer.render(k.panels,!0),e.contextShown(!0)):e.contextShown()&&!D&&(k.contextLayer&&k.contextLayer.render(k.panels,!0,!0),e.contextShown(!1))},M=h.values;M.length>h._length&&(M=M.slice(0,h._length));var x=h.tickvals,T;function A(k,D){return{val:k,text:T[D]}}function g(k,D){return k.val-D.val}if(yre(x)&&x.length){$y.isTypedArray(x)&&(x=Array.from(x)),T=h.ticktext,!yre(T)||!T.length?T=x.map(kJe(h.tickformat)):T.length>x.length?T=T.slice(0,x.length):x.length>T.length&&(x=x.slice(0,T.length));for(var E=1;E=D||L>=F)return;var z=C.lineLayer.readPixel(I,F-1-L),B=z[3]!==0,O=B?z[2]+256*(z[1]+256*z[0]):null,W={x:I,y:L,clientX:k.clientX,clientY:k.clientY,dataIndex:C.model.key,curveNumber:O};O!==p&&(B?n.hover(W):n.unhover&&n.unhover(W),p=O)}}),d.style("opacity",function(C){return C.pick?0:1}),s.style("background","rgba(255, 255, 255, 0)");var y=s.selectAll("."+pu.cn.parcoords).data(h,gv);y.exit().remove(),y.enter().append("g").classed(pu.cn.parcoords,!0).style("shape-rendering","crispEdges").style("pointer-events","none"),y.attr("transform",function(C){return Pm(C.model.translateX,C.model.translateY)});var m=y.selectAll("."+pu.cn.parcoordsControlView).data(zm,gv);m.enter().append("g").classed(pu.cn.parcoordsControlView,!0),m.attr("transform",function(C){return Pm(C.model.pad.l,C.model.pad.t)});var w=m.selectAll("."+pu.cn.yAxis).data(function(C){return C.dimensions},gv);w.enter().append("g").classed(pu.cn.yAxis,!0),m.each(function(C){gre(w,C,u)}),d.each(function(C){if(C.viewModel){!C.lineLayer||n?C.lineLayer=wyr(this,C):C.lineLayer.update(C),(C.key||C.key===0)&&(C.viewModel[C.key]=C.lineLayer);var k=!C.context||n;C.lineLayer.render(C.viewModel.panels,k)}}),w.attr("transform",function(C){return Pm(C.xScale(C.xIndex),0)}),w.call(Oh.behavior.drag().origin(function(C){return C}).on("drag",function(C){var k=C.parent;c.linePickActive(!1),C.x=Math.max(-pu.overdrag,Math.min(C.model.width+pu.overdrag,Oh.event.x)),C.canvasX=C.x*C.model.canvasPixelRatio,w.sort(function(D,F){return D.x-F.x}).each(function(D,F){D.xIndex=F,D.x=C===D?D.x:D.xScale(D.xIndex),D.canvasX=D.x*D.model.canvasPixelRatio}),gre(w,k,u),w.filter(function(D){return Math.abs(C.xIndex-D.xIndex)!==0}).attr("transform",function(D){return Pm(D.xScale(D.xIndex),0)}),Oh.select(this).attr("transform",Pm(C.x,0)),w.each(function(D,F,P){P===C.parent.key&&(k.dimensions[F]=D)}),k.contextLayer&&k.contextLayer.render(k.panels,!1,!xre(k)),k.focusLayer.render&&k.focusLayer.render(k.panels)}).on("dragend",function(C){var k=C.parent;C.x=C.xScale(C.xIndex),C.canvasX=C.x*C.model.canvasPixelRatio,gre(w,k,u),Oh.select(this).attr("transform",function(D){return Pm(D.x,0)}),k.contextLayer&&k.contextLayer.render(k.panels,!1,!xre(k)),k.focusLayer&&k.focusLayer.render(k.panels),k.pickLayer&&k.pickLayer.render(k.panels,!0),c.linePickActive(!0),n&&n.axesMoved&&n.axesMoved(k.key,k.dimensions.map(function(D){return D.crossfilterDimensionIndex}))})),w.exit().remove();var _=w.selectAll("."+pu.cn.axisOverlays).data(zm,gv);_.enter().append("g").classed(pu.cn.axisOverlays,!0),_.selectAll("."+pu.cn.axis).remove();var b=_.selectAll("."+pu.cn.axis).data(zm,gv);b.enter().append("g").classed(pu.cn.axis,!0),b.each(function(C){var k=C.model.height/C.model.tickDistance,D=C.domainScale,F=D.domain();Oh.select(this).call(Oh.svg.axis().orient("left").tickSize(4).outerTickSize(2).ticks(k,C.tickFormat).tickValues(C.ordinal?F:null).tickFormat(function(P){return m5.isOrdinal(C)?P:zJe(C.model.dimensions[C.visibleIndex],P)}).scale(D)),JB.font(b.selectAll("text"),C.model.tickFont)}),b.selectAll(".domain, .tick>line").attr("fill","none").attr("stroke","black").attr("stroke-opacity",.25).attr("stroke-width","1px"),b.selectAll("text").style("cursor","default");var M=_.selectAll("."+pu.cn.axisHeading).data(zm,gv);M.enter().append("g").classed(pu.cn.axisHeading,!0);var x=M.selectAll("."+pu.cn.axisTitle).data(zm,gv);x.enter().append("text").classed(pu.cn.axisTitle,!0).attr("text-anchor","middle").style("cursor","ew-resize").style("pointer-events",a?"none":"auto"),x.text(function(C){return C.label}).each(function(C){var k=Oh.select(this);JB.font(k,C.model.labelFont),_yr.convertToTspans(k,t)}).attr("transform",function(C){var k=SJe(C.model.labelAngle,C.model.labelSide),D=pu.axisTitleOffset;return(k.dir>0?"":Pm(0,2*D+C.model.height))+byr(k.degrees)+Pm(-D*k.dx,-D*k.dy)}).attr("text-anchor",function(C){var k=SJe(C.model.labelAngle,C.model.labelSide),D=Math.abs(k.dx),F=Math.abs(k.dy);return 2*D>F?k.dir*k.dx<0?"start":"end":"middle"});var T=_.selectAll("."+pu.cn.axisExtent).data(zm,gv);T.enter().append("g").classed(pu.cn.axisExtent,!0);var A=T.selectAll("."+pu.cn.axisExtentTop).data(zm,gv);A.enter().append("g").classed(pu.cn.axisExtentTop,!0),A.attr("transform",Pm(0,-pu.axisExtentOffset));var g=A.selectAll("."+pu.cn.axisExtentTopText).data(zm,gv);g.enter().append("text").classed(pu.cn.axisExtentTopText,!0).call(MJe),g.text(function(C){return EJe(C,!0)}).each(function(C){JB.font(Oh.select(this),C.model.rangeFont)});var E=T.selectAll("."+pu.cn.axisExtentBottom).data(zm,gv);E.enter().append("g").classed(pu.cn.axisExtentBottom,!0),E.attr("transform",function(C){return Pm(0,C.model.height+pu.axisExtentOffset)});var S=E.selectAll("."+pu.cn.axisExtentBottomText).data(zm,gv);S.enter().append("text").classed(pu.cn.axisExtentBottomText,!0).attr("dy","0.75em").call(MJe),S.text(function(C){return EJe(C,!1)}).each(function(C){JB.font(Oh.select(this),C.model.rangeFont)}),LJe.ensureAxisBrush(_,f,t)}});var Are=K((wre,NJe)=>{"use strict";var Pyr=RJe(),zyr=EB(),BJe=vre().isVisible,OJe={};function qJe(e,t,r){var i=t.indexOf(r),n=e.indexOf(i);return n===-1&&(n+=t.length),n}function Iyr(e,t){return function(i,n){return qJe(e,t,i)-qJe(e,t,n)}}var wre=NJe.exports=function(t,r){var i=t._fullLayout,n=zyr(t,[],OJe);if(n){var a={},o={},s={},l=i._size;r.forEach(function(d,p){var v=d[0].trace,y=s[p]=v.index;a[p]=t.data[y].dimensions,o[p]=t.data[y].dimensions.slice()});var u=function(d,p,v){var y=o[d][p],m=v.map(function(T){return T.slice()}),w="dimensions["+p+"].constraintrange",_=i._tracePreGUI[t._fullData[s[d]].uid];if(_[w]===void 0){var b=y.constraintrange;_[w]=b||null}var M=t._fullData[s[d]].dimensions[p];m.length?(m.length===1&&(m=m[0]),y.constraintrange=m,M.constraintrange=m.slice(),m=[m]):(delete y.constraintrange,delete M.constraintrange,m=null);var x={};x[w]=m,t.emit("plotly_restyle",[x,[s[d]]])},f=function(d){t.emit("plotly_hover",d)},c=function(d){t.emit("plotly_unhover",d)},h=function(d,p){var v=Iyr(p,o[d].filter(BJe));a[d].sort(v),o[d].filter(function(y){return!BJe(y)}).sort(function(y){return o[d].indexOf(y)}).forEach(function(y){a[d].splice(a[d].indexOf(y),1),a[d].splice(o[d].indexOf(y),0,y)}),t.emit("plotly_restyle",[{dimensions:[a[d]]},[s[d]]])};Pyr(t,r,{width:l.w,height:l.h,margin:{t:l.t,r:l.r,b:l.b,l:l.l}},{filterChanged:u,hover:f,unhover:c,axesMoved:h})}};wre.reglPrecompiled=OJe});var UJe=K(pk=>{"use strict";var VJe=No(),Ryr=Zh().getModuleCalcData,Byr=Are(),qyr=(Rp(),or(Ip));pk.name="parcoords";pk.plot=function(e){var t=Ryr(e.calcdata,"parcoords")[0];t.length&&Byr(e,t)};pk.clean=function(e,t,r,i){var n=i._has&&i._has("parcoords"),a=t._has&&t._has("parcoords");n&&!a&&(i._paperdiv.selectAll(".parcoords").remove(),i._glimages.selectAll("*").remove())};pk.toSVG=function(e){var t=e._fullLayout._glimages,r=VJe.select(e).selectAll(".svg-container"),i=r.filter(function(a,o){return o===r.size()-1}).selectAll(".gl-canvas-context, .gl-canvas-focus");function n(){var a=this,o=a.toDataURL("image/png"),s=t.append("svg:image");s.attr({xmlns:qyr.svg,"xlink:href":o,preserveAspectRatio:"none",x:0,y:0,width:a.style.width,height:a.style.height})}i.each(n),window.setTimeout(function(){VJe.selectAll("#filterBarPattern").attr("id","filterBarPattern")},60)}});var HJe=K((Lii,GJe)=>{"use strict";GJe.exports={attributes:ure(),supplyDefaults:fJe(),calc:hJe(),colorbar:{container:"line",min:"cmin",max:"cmax"},moduleType:"trace",name:"parcoords",basePlotModule:UJe(),categories:["gl","regl","noOpacity","noHover"],meta:{}}});var WJe=K((Pii,jJe)=>{"use strict";jJe.exports=function(t,r,i,n,a,o,s,l){"use strict";var u,f,c,h,d,p,v,y,m,w,_,b,M,x,T,A,g,E,S,C,k,D,F,P,I,L,z,B,O,W,X,Z,H,q,Q,N,U,J,j,$,ie,re,de,me,ze,ke,le,te,Ee;return u=t.gl,f=t.context,c=t.strings,h=t.next,d=t.current,p=t.draw,v=t.elements,y=t.buffer,m=t.shader,w=t.attributes,_=t.vao,b=t.uniforms,M=t.framebuffer,x=t.extensions,T=t.timer,A=t.isBufferArgs,g=h.blend_color,E=d.blend_color,S=h.blend_equation,C=d.blend_equation,k=h.blend_func,D=d.blend_func,F=h.depth_range,P=d.depth_range,I=h.colorMask,L=d.colorMask,z=h.polygonOffset_offset,B=d.polygonOffset_offset,O=h.sample_coverage,W=d.sample_coverage,X=h.stencil_func,Z=d.stencil_func,H=h.stencil_opFront,q=d.stencil_opFront,Q=h.stencil_opBack,N=d.stencil_opBack,U=h.scissor_box,J=d.scissor_box,j=h.viewport,$=d.viewport,ie={points:0,point:0,lines:1,line:1,triangles:4,triangle:4,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},re={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},de={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},me={add:32774,subtract:32778,"reverse subtract":32779},ze={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},ke={int8:5120,int16:5122,int32:5124,uint8:5121,uint16:5123,uint32:5125,float:5126,float32:5126},le={cw:2304,ccw:2305},te={},Ee={},{draw:function(we){var oe,Y,ne,ye,V,ue,_e,xe,Ae,se,pe,fe,Re,We,Ke,tt,at,Ge;if(oe=we.framebuffer,Y=M.getFramebuffer(oe),ne=M.next,M.next=Y,ye=f.framebufferWidth,f.framebufferWidth=Y?Y.width:f.drawingBufferWidth,V=f.framebufferHeight,f.framebufferHeight=Y?Y.height:f.drawingBufferHeight,Y!==M.cur&&(Y?u.bindFramebuffer(36160,Y.framebuffer):u.bindFramebuffer(36160,null),M.cur=Y),d.dirty){var ge,Be,Ze,Le,De,Ue,Pe,Se,Ie,ot,ut,_t,At,Gt,Dt,yt,Mt,tr,Ye,nt,st,dt,rt,ft,Ft,Et,er,xr,kr,fr,Yr,Or,ri,Tr,Mr,Gr,_i,Fi,wr,Cr,Ut,Wt,dr,Hr,Er,Fr;ge=h.dither,ge!==d.dither&&(ge?u.enable(3024):u.disable(3024),d.dither=ge),Be=h.blend_enable,Be!==d.blend_enable&&(Be?u.enable(3042):u.disable(3042),d.blend_enable=Be),Ze=g[0],Le=g[1],De=g[2],Ue=g[3],(Ze!==E[0]||Le!==E[1]||De!==E[2]||Ue!==E[3])&&(u.blendColor(Ze,Le,De,Ue),E[0]=Ze,E[1]=Le,E[2]=De,E[3]=Ue),Pe=S[0],Se=S[1],(Pe!==C[0]||Se!==C[1])&&(u.blendEquationSeparate(Pe,Se),C[0]=Pe,C[1]=Se),Ie=k[0],ot=k[1],ut=k[2],_t=k[3],(Ie!==D[0]||ot!==D[1]||ut!==D[2]||_t!==D[3])&&(u.blendFuncSeparate(Ie,ot,ut,_t),D[0]=Ie,D[1]=ot,D[2]=ut,D[3]=_t),At=h.depth_enable,At!==d.depth_enable&&(At?u.enable(2929):u.disable(2929),d.depth_enable=At),Gt=h.depth_func,Gt!==d.depth_func&&(u.depthFunc(Gt),d.depth_func=Gt),Dt=F[0],yt=F[1],(Dt!==P[0]||yt!==P[1])&&(u.depthRange(Dt,yt),P[0]=Dt,P[1]=yt),Mt=h.depth_mask,Mt!==d.depth_mask&&(u.depthMask(Mt),d.depth_mask=Mt),tr=I[0],Ye=I[1],nt=I[2],st=I[3],(tr!==L[0]||Ye!==L[1]||nt!==L[2]||st!==L[3])&&(u.colorMask(tr,Ye,nt,st),L[0]=tr,L[1]=Ye,L[2]=nt,L[3]=st),dt=h.cull_enable,dt!==d.cull_enable&&(dt?u.enable(2884):u.disable(2884),d.cull_enable=dt),rt=h.cull_face,rt!==d.cull_face&&(u.cullFace(rt),d.cull_face=rt),ft=h.frontFace,ft!==d.frontFace&&(u.frontFace(ft),d.frontFace=ft),Ft=h.lineWidth,Ft!==d.lineWidth&&(u.lineWidth(Ft),d.lineWidth=Ft),Et=h.polygonOffset_enable,Et!==d.polygonOffset_enable&&(Et?u.enable(32823):u.disable(32823),d.polygonOffset_enable=Et),er=z[0],xr=z[1],(er!==B[0]||xr!==B[1])&&(u.polygonOffset(er,xr),B[0]=er,B[1]=xr),kr=h.sample_alpha,kr!==d.sample_alpha&&(kr?u.enable(32926):u.disable(32926),d.sample_alpha=kr),fr=h.sample_enable,fr!==d.sample_enable&&(fr?u.enable(32928):u.disable(32928),d.sample_enable=fr),Yr=O[0],Or=O[1],(Yr!==W[0]||Or!==W[1])&&(u.sampleCoverage(Yr,Or),W[0]=Yr,W[1]=Or),ri=h.stencil_enable,ri!==d.stencil_enable&&(ri?u.enable(2960):u.disable(2960),d.stencil_enable=ri),Tr=h.stencil_mask,Tr!==d.stencil_mask&&(u.stencilMask(Tr),d.stencil_mask=Tr),Mr=X[0],Gr=X[1],_i=X[2],(Mr!==Z[0]||Gr!==Z[1]||_i!==Z[2])&&(u.stencilFunc(Mr,Gr,_i),Z[0]=Mr,Z[1]=Gr,Z[2]=_i),Fi=H[0],wr=H[1],Cr=H[2],Ut=H[3],(Fi!==q[0]||wr!==q[1]||Cr!==q[2]||Ut!==q[3])&&(u.stencilOpSeparate(Fi,wr,Cr,Ut),q[0]=Fi,q[1]=wr,q[2]=Cr,q[3]=Ut),Wt=Q[0],dr=Q[1],Hr=Q[2],Er=Q[3],(Wt!==N[0]||dr!==N[1]||Hr!==N[2]||Er!==N[3])&&(u.stencilOpSeparate(Wt,dr,Hr,Er),N[0]=Wt,N[1]=dr,N[2]=Hr,N[3]=Er),Fr=h.scissor_enable,Fr!==d.scissor_enable&&(Fr?u.enable(3089):u.disable(3089),d.scissor_enable=Fr)}ue=f.framebufferWidth,_e=f.framebufferHeight,xe=f.viewportWidth,f.viewportWidth=ue,Ae=f.viewportHeight,f.viewportHeight=_e,u.viewport(0,0,ue,_e),$[0]=0,$[1]=0,$[2]=ue,$[3]=_e,se=f.framebufferWidth,pe=f.framebufferHeight,u.scissor(0,0,se,pe),J[0]=0,J[1]=0,J[2]=se,J[3]=pe,fe=d.profile,fe&&(Re=performance.now(),r.count++),We=m.frag,Ke=m.vert,tt=m.program(Ke,We),u.useProgram(tt.program),_.setVAO(null),at=tt.id,Ge=te[at],Ge?Ge.call(this,we):(Ge=te[at]=i(tt),Ge.call(this,we)),d.dirty=!0,_.setVAO(null),M.next=ne,f.framebufferWidth=ye,f.framebufferHeight=V,f.viewportWidth=xe,f.viewportHeight=Ae,fe&&(r.cpuTime+=performance.now()-Re)},scope:function(we,oe,Y){var ne,ye,V,ue,_e,xe,Ae,se,pe,fe,Re,We,Ke,tt,at,Ge,ge,Be,Ze,Le,De;ne=we.framebuffer,ye=M.getFramebuffer(ne),V=M.next,M.next=ye,ue=f.framebufferWidth,f.framebufferWidth=ye?ye.width:f.drawingBufferWidth,_e=f.framebufferHeight,f.framebufferHeight=ye?ye.height:f.drawingBufferHeight,xe=f.framebufferWidth,Ae=f.framebufferHeight,se=f.viewportWidth,f.viewportWidth=xe,pe=f.viewportHeight,f.viewportHeight=Ae,fe=j[0],j[0]=n,Re=j[1],j[1]=a,We=j[2],j[2]=xe,Ke=j[3],j[3]=Ae,tt=f.framebufferWidth,at=f.framebufferHeight,Ge=U[0],U[0]=o,ge=U[1],U[1]=s,Be=U[2],U[2]=tt,Ze=U[3],U[3]=at,Le=d.profile,Le&&(De=performance.now(),r.count++),d.dirty=!0,oe(f,we,Y),M.next=V,f.framebufferWidth=ue,f.framebufferHeight=_e,f.viewportWidth=se,f.viewportHeight=pe,j[0]=fe,j[1]=Re,j[2]=We,j[3]=Ke,U[0]=Ge,U[1]=ge,U[2]=Be,U[3]=Ze,Le&&(r.cpuTime+=performance.now()-De),d.dirty=!0},batch:function(we,oe){var Y,ne,ye,V,ue,_e,xe;if(d.dirty){var Ae,se,pe,fe,Re,We,Ke,tt,at,Ge,ge,Be,Ze,Le,De,Ue,Pe,Se,Ie,ot,ut,_t,At,Gt,Dt,yt,Mt,tr,Ye,nt,st,dt,rt,ft,Ft,Et,er,xr,kr,fr,Yr,Or,ri,Tr,Mr,Gr;Ae=h.dither,Ae!==d.dither&&(Ae?u.enable(3024):u.disable(3024),d.dither=Ae),se=h.blend_enable,se!==d.blend_enable&&(se?u.enable(3042):u.disable(3042),d.blend_enable=se),pe=g[0],fe=g[1],Re=g[2],We=g[3],(pe!==E[0]||fe!==E[1]||Re!==E[2]||We!==E[3])&&(u.blendColor(pe,fe,Re,We),E[0]=pe,E[1]=fe,E[2]=Re,E[3]=We),Ke=S[0],tt=S[1],(Ke!==C[0]||tt!==C[1])&&(u.blendEquationSeparate(Ke,tt),C[0]=Ke,C[1]=tt),at=k[0],Ge=k[1],ge=k[2],Be=k[3],(at!==D[0]||Ge!==D[1]||ge!==D[2]||Be!==D[3])&&(u.blendFuncSeparate(at,Ge,ge,Be),D[0]=at,D[1]=Ge,D[2]=ge,D[3]=Be),Ze=h.depth_enable,Ze!==d.depth_enable&&(Ze?u.enable(2929):u.disable(2929),d.depth_enable=Ze),Le=h.depth_func,Le!==d.depth_func&&(u.depthFunc(Le),d.depth_func=Le),De=F[0],Ue=F[1],(De!==P[0]||Ue!==P[1])&&(u.depthRange(De,Ue),P[0]=De,P[1]=Ue),Pe=h.depth_mask,Pe!==d.depth_mask&&(u.depthMask(Pe),d.depth_mask=Pe),Se=I[0],Ie=I[1],ot=I[2],ut=I[3],(Se!==L[0]||Ie!==L[1]||ot!==L[2]||ut!==L[3])&&(u.colorMask(Se,Ie,ot,ut),L[0]=Se,L[1]=Ie,L[2]=ot,L[3]=ut),_t=h.cull_enable,_t!==d.cull_enable&&(_t?u.enable(2884):u.disable(2884),d.cull_enable=_t),At=h.cull_face,At!==d.cull_face&&(u.cullFace(At),d.cull_face=At),Gt=h.frontFace,Gt!==d.frontFace&&(u.frontFace(Gt),d.frontFace=Gt),Dt=h.lineWidth,Dt!==d.lineWidth&&(u.lineWidth(Dt),d.lineWidth=Dt),yt=h.polygonOffset_enable,yt!==d.polygonOffset_enable&&(yt?u.enable(32823):u.disable(32823),d.polygonOffset_enable=yt),Mt=z[0],tr=z[1],(Mt!==B[0]||tr!==B[1])&&(u.polygonOffset(Mt,tr),B[0]=Mt,B[1]=tr),Ye=h.sample_alpha,Ye!==d.sample_alpha&&(Ye?u.enable(32926):u.disable(32926),d.sample_alpha=Ye),nt=h.sample_enable,nt!==d.sample_enable&&(nt?u.enable(32928):u.disable(32928),d.sample_enable=nt),st=O[0],dt=O[1],(st!==W[0]||dt!==W[1])&&(u.sampleCoverage(st,dt),W[0]=st,W[1]=dt),rt=h.stencil_enable,rt!==d.stencil_enable&&(rt?u.enable(2960):u.disable(2960),d.stencil_enable=rt),ft=h.stencil_mask,ft!==d.stencil_mask&&(u.stencilMask(ft),d.stencil_mask=ft),Ft=X[0],Et=X[1],er=X[2],(Ft!==Z[0]||Et!==Z[1]||er!==Z[2])&&(u.stencilFunc(Ft,Et,er),Z[0]=Ft,Z[1]=Et,Z[2]=er),xr=H[0],kr=H[1],fr=H[2],Yr=H[3],(xr!==q[0]||kr!==q[1]||fr!==q[2]||Yr!==q[3])&&(u.stencilOpSeparate(xr,kr,fr,Yr),q[0]=xr,q[1]=kr,q[2]=fr,q[3]=Yr),Or=Q[0],ri=Q[1],Tr=Q[2],Mr=Q[3],(Or!==N[0]||ri!==N[1]||Tr!==N[2]||Mr!==N[3])&&(u.stencilOpSeparate(Or,ri,Tr,Mr),N[0]=Or,N[1]=ri,N[2]=Tr,N[3]=Mr),Gr=h.scissor_enable,Gr!==d.scissor_enable&&(Gr?u.enable(3089):u.disable(3089),d.scissor_enable=Gr)}Y=d.profile,Y&&(ne=performance.now(),r.count+=oe),ye=m.frag,V=m.vert,ue=m.program(V,ye),u.useProgram(ue.program),_.setVAO(null),_e=ue.id,xe=Ee[_e],xe?xe.call(this,we,oe):(xe=Ee[_e]=l(ue),xe.call(this,we,oe)),d.dirty=!0,_.setVAO(null),Y&&(r.cpuTime+=performance.now()-ne)}}}});var YJe=K((zii,$Je)=>{"use strict";$Je.exports=function(t,r,i,n,a,o,s,l,u,f,c,h,d,p,v,y,m,w,_,b,M,x,T,A,g,E,S,C,k,D,F,P,I,L,z,B,O,W,X,Z,H,q,Q,N,U,J,j,$,ie,re,de,me,ze,ke,le,te,Ee,we,oe,Y,ne,ye,V,ue,_e,xe,Ae,se,pe,fe,Re,We,Ke,tt,at,Ge,ge,Be,Ze,Le,De,Ue,Pe,Se,Ie,ot,ut,_t,At,Gt,Dt,yt,Mt,tr,Ye,nt,st,dt,rt,ft,Ft,Et,er,xr,kr,fr,Yr,Or,ri,Tr,Mr,Gr,_i,Fi,wr,Cr,Ut,Wt,dr,Hr,Er,Fr,di,Li,nr,Kt,Me,Xe,$e,Qe,gt,bt,lr,Ct,ur,Rr,Br,Vr,gi,ui,ei,Gi,un){"use strict";var Tt,wi,kn,ii,Pr,Wi,na,yn,$n,$i,en,_r,Zr,fi,aa,ln,ca,Kn,dn,Ta,rn,Ai,nn,Ti,ea,qn,pi,Fn,Pa,pr,oi,Ki,Ui,pa,Na,on,wn,Ra,ti,Yn,Ja,ja,ka,Ci,vn,Va,Hi,zr,ni,bn,Bi,vi,mr,Mi,Cn,jr,Xn,an,ta,qi,On,Nn,ia,Qr,Di,fn,Dn,Vn,mn,qr,Pi,Ua,yi,Ma,Ba,Bn,ji,gn,jn,Un,Ii;return Tt=t.gl,wi=t.context,kn=t.strings,ii=t.next,Pr=t.current,Wi=t.draw,na=t.elements,yn=t.buffer,$n=t.shader,$i=t.attributes,en=t.vao,_r=t.uniforms,Zr=t.framebuffer,fi=t.extensions,aa=t.timer,ln=t.isBufferArgs,ca=ii.blend_color,Kn=Pr.blend_color,dn=ii.blend_equation,Ta=Pr.blend_equation,rn=ii.blend_func,Ai=Pr.blend_func,nn=ii.depth_range,Ti=Pr.depth_range,ea=ii.colorMask,qn=Pr.colorMask,pi=ii.polygonOffset_offset,Fn=Pr.polygonOffset_offset,Pa=ii.sample_coverage,pr=Pr.sample_coverage,oi=ii.stencil_func,Ki=Pr.stencil_func,Ui=ii.stencil_opFront,pa=Pr.stencil_opFront,Na=ii.stencil_opBack,on=Pr.stencil_opBack,wn=ii.scissor_box,Ra=Pr.scissor_box,ti=ii.viewport,Yn=Pr.viewport,Ja={points:0,point:0,lines:1,line:1,triangles:4,triangle:4,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},ja={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},ka={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},Ci={add:32774,subtract:32778,"reverse subtract":32779},vn={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},Va={int8:5120,int16:5122,int32:5124,uint8:5121,uint16:5123,uint32:5125,float:5126,float32:5126},Hi={cw:2304,ccw:2305},zr={},ni={},bn=new Float32Array(16),Bi=new Float32Array(16),vi=new Float32Array(16),mr=new Float32Array(16),Mi=new Float32Array(16),Cn=new Float32Array(16),jr=new Float32Array(16),Xn=new Float32Array(16),an=new Float32Array(16),ta=new Float32Array(16),qi=new Float32Array(16),On=new Float32Array(16),Nn=new Float32Array(16),ia=new Float32Array(16),Qr=new Float32Array(16),Di=new Float32Array(16),fn=new Float32Array(16),Dn=new Float32Array(16),Vn=new Float32Array(16),mn=new Float32Array(16),qr=new Float32Array(16),Pi=new Float32Array(16),Ua=new Float32Array(16),yi=new Float32Array(16),Ma=new Float32Array(16),Ba=new Float32Array(16),Bn=new Float32Array(16),ji=new Float32Array(16),gn=new Float32Array(16),jn=new Float32Array(16),Un=new Float32Array(16),Ii=new Float32Array(16),{draw:function(gr){var Ln,xn,da,Si,Kr,Gn,to,Jn,ro,mo,Oa,Ei,co,Pn,Fa,oa,Hn,va,ma,Sa,ki,Wr,An,Za,Ga,Ca,za,Wn,Zi,sa,So,ya,Qn,Tn,Da,zn,Ia,Yi,In,Oi,la,ga,go,eo,Eo,Mn,To,Ya,Co,Ri,qa,Zn,Ha,Wa,$a,Fe,Ve,lt,it,mt,Rt,qt,Nt,ar,Ir,$t,Bt,rr,Dr,Ur,ai,ci,li,mi,xi,Ni,ua,xa,ao,ho,Fo,ls,Io,Ps,xs,us,Vi,io,ko;if(Ln=Zr.next,Ln!==Zr.cur&&(Ln?Tt.bindFramebuffer(36160,Ln.framebuffer):Tt.bindFramebuffer(36160,null),Zr.cur=Ln),Pr.dirty){var oo,xo,bo,so,Yo,Uo,es,jo,Qo,Ks,Ws,Ds,_s,as,Es,Mo,Go,qs,Ts,Dl,_l,wl,vl,Al,ml;oo=ea[0],xo=ea[1],bo=ea[2],so=ea[3],(oo!==qn[0]||xo!==qn[1]||bo!==qn[2]||so!==qn[3])&&(Tt.colorMask(oo,xo,bo,so),qn[0]=oo,qn[1]=xo,qn[2]=bo,qn[3]=so),Yo=ii.frontFace,Yo!==Pr.frontFace&&(Tt.frontFace(Yo),Pr.frontFace=Yo),Uo=ii.polygonOffset_enable,Uo!==Pr.polygonOffset_enable&&(Uo?Tt.enable(32823):Tt.disable(32823),Pr.polygonOffset_enable=Uo),es=pi[0],jo=pi[1],(es!==Fn[0]||jo!==Fn[1])&&(Tt.polygonOffset(es,jo),Fn[0]=es,Fn[1]=jo),Qo=ii.sample_alpha,Qo!==Pr.sample_alpha&&(Qo?Tt.enable(32926):Tt.disable(32926),Pr.sample_alpha=Qo),Ks=ii.sample_enable,Ks!==Pr.sample_enable&&(Ks?Tt.enable(32928):Tt.disable(32928),Pr.sample_enable=Ks),Ws=Pa[0],Ds=Pa[1],(Ws!==pr[0]||Ds!==pr[1])&&(Tt.sampleCoverage(Ws,Ds),pr[0]=Ws,pr[1]=Ds),_s=ii.stencil_enable,_s!==Pr.stencil_enable&&(_s?Tt.enable(2960):Tt.disable(2960),Pr.stencil_enable=_s),as=ii.stencil_mask,as!==Pr.stencil_mask&&(Tt.stencilMask(as),Pr.stencil_mask=as),Es=oi[0],Mo=oi[1],Go=oi[2],(Es!==Ki[0]||Mo!==Ki[1]||Go!==Ki[2])&&(Tt.stencilFunc(Es,Mo,Go),Ki[0]=Es,Ki[1]=Mo,Ki[2]=Go),qs=Ui[0],Ts=Ui[1],Dl=Ui[2],_l=Ui[3],(qs!==pa[0]||Ts!==pa[1]||Dl!==pa[2]||_l!==pa[3])&&(Tt.stencilOpSeparate(qs,Ts,Dl,_l),pa[0]=qs,pa[1]=Ts,pa[2]=Dl,pa[3]=_l),wl=Na[0],vl=Na[1],Al=Na[2],ml=Na[3],(wl!==on[0]||vl!==on[1]||Al!==on[2]||ml!==on[3])&&(Tt.stencilOpSeparate(wl,vl,Al,ml),on[0]=wl,on[1]=vl,on[2]=Al,on[3]=ml)}xn=gr.viewportX,zr.x=xn,da=gr.viewportY,zr.y=da,Si=gr.viewportWidth,zr.width=Si,Kr=gr.viewportHeight,zr.height=Kr,Gn=zr.x|0,to=zr.y|0,Jn="width"in zr?zr.width|0:wi.framebufferWidth-Gn,ro="height"in zr?zr.height|0:wi.framebufferHeight-to,mo=wi.viewportWidth,wi.viewportWidth=Jn,Oa=wi.viewportHeight,wi.viewportHeight=ro,Tt.viewport(Gn,to,Jn,ro),Yn[0]=Gn,Yn[1]=to,Yn[2]=Jn,Yn[3]=ro,Tt.blendColor(0,0,0,0),Kn[0]=0,Kn[1]=0,Kn[2]=0,Kn[3]=0,i?Tt.enable(3042):Tt.disable(3042),Pr.blend_enable=i,Tt.blendEquationSeparate(32774,32774),Ta[0]=32774,Ta[1]=32774,Tt.blendFuncSeparate(770,771,1,1),Ai[0]=770,Ai[1]=771,Ai[2]=1,Ai[3]=1,n?Tt.enable(2884):Tt.disable(2884),Pr.cull_enable=n,Tt.cullFace(a),Pr.cull_face=a,o?Tt.enable(2929):Tt.disable(2929),Pr.depth_enable=o,Tt.depthFunc(s),Pr.depth_func=s,Tt.depthMask(l),Pr.depth_mask=l,Tt.depthRange(0,1),Ti[0]=0,Ti[1]=1,u?Tt.enable(3024):Tt.disable(3024),Pr.dither=u,Tt.lineWidth(f),Pr.lineWidth=f,Ei=gr.scissorX,ni.x=Ei,co=gr.scissorY,ni.y=co,Pn=gr.scissorWidth,ni.width=Pn,Fa=gr.scissorHeight,ni.height=Fa,oa=ni.x|0,Hn=ni.y|0,va="width"in ni?ni.width|0:wi.framebufferWidth-oa,ma="height"in ni?ni.height|0:wi.framebufferHeight-Hn,Tt.scissor(oa,Hn,va,ma),Ra[0]=oa,Ra[1]=Hn,Ra[2]=va,Ra[3]=ma,c?Tt.enable(3089):Tt.disable(3089),Pr.scissor_enable=c,Sa=Pr.profile,Pr.profile=!1,Tt.useProgram(h.program),en.setVAO(null),ki=p.location,Wr=$i[ki],Wr.buffer||Tt.enableVertexAttribArray(ki),(Wr.type!==d.dtype||Wr.size!==4||Wr.buffer!==d||Wr.normalized!==!1||Wr.offset!==0||Wr.stride!==0)&&(Tt.bindBuffer(34962,d.buffer),Tt.vertexAttribPointer(ki,4,d.dtype,!1,0,0),Wr.type=d.dtype,Wr.size=4,Wr.buffer=d,Wr.normalized=!1,Wr.offset=0,Wr.stride=0),An=y.location,Za=$i[An],Za.buffer||Tt.enableVertexAttribArray(An),(Za.type!==v.dtype||Za.size!==4||Za.buffer!==v||Za.normalized!==!1||Za.offset!==0||Za.stride!==0)&&(Tt.bindBuffer(34962,v.buffer),Tt.vertexAttribPointer(An,4,v.dtype,!1,0,0),Za.type=v.dtype,Za.size=4,Za.buffer=v,Za.normalized=!1,Za.offset=0,Za.stride=0),Ga=w.location,Ca=$i[Ga],Ca.buffer||Tt.enableVertexAttribArray(Ga),(Ca.type!==m.dtype||Ca.size!==4||Ca.buffer!==m||Ca.normalized!==!1||Ca.offset!==0||Ca.stride!==0)&&(Tt.bindBuffer(34962,m.buffer),Tt.vertexAttribPointer(Ga,4,m.dtype,!1,0,0),Ca.type=m.dtype,Ca.size=4,Ca.buffer=m,Ca.normalized=!1,Ca.offset=0,Ca.stride=0),za=b.location,Wn=$i[za],Wn.buffer||Tt.enableVertexAttribArray(za),(Wn.type!==_.dtype||Wn.size!==4||Wn.buffer!==_||Wn.normalized!==!1||Wn.offset!==0||Wn.stride!==0)&&(Tt.bindBuffer(34962,_.buffer),Tt.vertexAttribPointer(za,4,_.dtype,!1,0,0),Wn.type=_.dtype,Wn.size=4,Wn.buffer=_,Wn.normalized=!1,Wn.offset=0,Wn.stride=0),Zi=x.location,sa=$i[Zi],sa.buffer||Tt.enableVertexAttribArray(Zi),(sa.type!==M.dtype||sa.size!==4||sa.buffer!==M||sa.normalized!==!1||sa.offset!==0||sa.stride!==0)&&(Tt.bindBuffer(34962,M.buffer),Tt.vertexAttribPointer(Zi,4,M.dtype,!1,0,0),sa.type=M.dtype,sa.size=4,sa.buffer=M,sa.normalized=!1,sa.offset=0,sa.stride=0),So=A.location,ya=$i[So],ya.buffer||Tt.enableVertexAttribArray(So),(ya.type!==T.dtype||ya.size!==4||ya.buffer!==T||ya.normalized!==!1||ya.offset!==0||ya.stride!==0)&&(Tt.bindBuffer(34962,T.buffer),Tt.vertexAttribPointer(So,4,T.dtype,!1,0,0),ya.type=T.dtype,ya.size=4,ya.buffer=T,ya.normalized=!1,ya.offset=0,ya.stride=0),Qn=E.location,Tn=$i[Qn],Tn.buffer||Tt.enableVertexAttribArray(Qn),(Tn.type!==g.dtype||Tn.size!==4||Tn.buffer!==g||Tn.normalized!==!1||Tn.offset!==0||Tn.stride!==0)&&(Tt.bindBuffer(34962,g.buffer),Tt.vertexAttribPointer(Qn,4,g.dtype,!1,0,0),Tn.type=g.dtype,Tn.size=4,Tn.buffer=g,Tn.normalized=!1,Tn.offset=0,Tn.stride=0),Da=C.location,zn=$i[Da],zn.buffer||Tt.enableVertexAttribArray(Da),(zn.type!==S.dtype||zn.size!==4||zn.buffer!==S||zn.normalized!==!1||zn.offset!==0||zn.stride!==0)&&(Tt.bindBuffer(34962,S.buffer),Tt.vertexAttribPointer(Da,4,S.dtype,!1,0,0),zn.type=S.dtype,zn.size=4,zn.buffer=S,zn.normalized=!1,zn.offset=0,zn.stride=0),Ia=D.location,Yi=$i[Ia],Yi.buffer||Tt.enableVertexAttribArray(Ia),(Yi.type!==k.dtype||Yi.size!==4||Yi.buffer!==k||Yi.normalized!==!1||Yi.offset!==0||Yi.stride!==0)&&(Tt.bindBuffer(34962,k.buffer),Tt.vertexAttribPointer(Ia,4,k.dtype,!1,0,0),Yi.type=k.dtype,Yi.size=4,Yi.buffer=k,Yi.normalized=!1,Yi.offset=0,Yi.stride=0),In=P.location,Oi=$i[In],Oi.buffer||Tt.enableVertexAttribArray(In),(Oi.type!==F.dtype||Oi.size!==4||Oi.buffer!==F||Oi.normalized!==!1||Oi.offset!==0||Oi.stride!==0)&&(Tt.bindBuffer(34962,F.buffer),Tt.vertexAttribPointer(In,4,F.dtype,!1,0,0),Oi.type=F.dtype,Oi.size=4,Oi.buffer=F,Oi.normalized=!1,Oi.offset=0,Oi.stride=0),la=L.location,ga=$i[la],ga.buffer||Tt.enableVertexAttribArray(la),(ga.type!==I.dtype||ga.size!==4||ga.buffer!==I||ga.normalized!==!1||ga.offset!==0||ga.stride!==0)&&(Tt.bindBuffer(34962,I.buffer),Tt.vertexAttribPointer(la,4,I.dtype,!1,0,0),ga.type=I.dtype,ga.size=4,ga.buffer=I,ga.normalized=!1,ga.offset=0,ga.stride=0),go=B.location,eo=$i[go],eo.buffer||Tt.enableVertexAttribArray(go),(eo.type!==z.dtype||eo.size!==4||eo.buffer!==z||eo.normalized!==!1||eo.offset!==0||eo.stride!==0)&&(Tt.bindBuffer(34962,z.buffer),Tt.vertexAttribPointer(go,4,z.dtype,!1,0,0),eo.type=z.dtype,eo.size=4,eo.buffer=z,eo.normalized=!1,eo.offset=0,eo.stride=0),Eo=W.location,Mn=$i[Eo],Mn.buffer||Tt.enableVertexAttribArray(Eo),(Mn.type!==O.dtype||Mn.size!==4||Mn.buffer!==O||Mn.normalized!==!1||Mn.offset!==0||Mn.stride!==0)&&(Tt.bindBuffer(34962,O.buffer),Tt.vertexAttribPointer(Eo,4,O.dtype,!1,0,0),Mn.type=O.dtype,Mn.size=4,Mn.buffer=O,Mn.normalized=!1,Mn.offset=0,Mn.stride=0),To=Z.location,Ya=$i[To],Ya.buffer||Tt.enableVertexAttribArray(To),(Ya.type!==X.dtype||Ya.size!==4||Ya.buffer!==X||Ya.normalized!==!1||Ya.offset!==0||Ya.stride!==0)&&(Tt.bindBuffer(34962,X.buffer),Tt.vertexAttribPointer(To,4,X.dtype,!1,0,0),Ya.type=X.dtype,Ya.size=4,Ya.buffer=X,Ya.normalized=!1,Ya.offset=0,Ya.stride=0),Co=q.location,Ri=$i[Co],Ri.buffer||Tt.enableVertexAttribArray(Co),(Ri.type!==H.dtype||Ri.size!==4||Ri.buffer!==H||Ri.normalized!==!1||Ri.offset!==0||Ri.stride!==0)&&(Tt.bindBuffer(34962,H.buffer),Tt.vertexAttribPointer(Co,4,H.dtype,!1,0,0),Ri.type=H.dtype,Ri.size=4,Ri.buffer=H,Ri.normalized=!1,Ri.offset=0,Ri.stride=0),qa=N.location,Zn=$i[qa],Zn.buffer||Tt.enableVertexAttribArray(qa),(Zn.type!==Q.dtype||Zn.size!==4||Zn.buffer!==Q||Zn.normalized!==!1||Zn.offset!==0||Zn.stride!==0)&&(Tt.bindBuffer(34962,Q.buffer),Tt.vertexAttribPointer(qa,4,Q.dtype,!1,0,0),Zn.type=Q.dtype,Zn.size=4,Zn.buffer=Q,Zn.normalized=!1,Zn.offset=0,Zn.stride=0),Ha=gr.contextColor,Wa=Ha[0],$a=Ha[1],Fe=Ha[2],Ve=Ha[3],Tt.uniform4f(U.location,Wa,$a,Fe,Ve),lt=gr.dim0A,Tt.uniformMatrix4fv(J.location,!1,Array.isArray(lt)||lt instanceof Float32Array?lt:(bn[0]=lt[0],bn[1]=lt[1],bn[2]=lt[2],bn[3]=lt[3],bn[4]=lt[4],bn[5]=lt[5],bn[6]=lt[6],bn[7]=lt[7],bn[8]=lt[8],bn[9]=lt[9],bn[10]=lt[10],bn[11]=lt[11],bn[12]=lt[12],bn[13]=lt[13],bn[14]=lt[14],bn[15]=lt[15],bn)),it=gr.dim0B,Tt.uniformMatrix4fv(j.location,!1,Array.isArray(it)||it instanceof Float32Array?it:(Bi[0]=it[0],Bi[1]=it[1],Bi[2]=it[2],Bi[3]=it[3],Bi[4]=it[4],Bi[5]=it[5],Bi[6]=it[6],Bi[7]=it[7],Bi[8]=it[8],Bi[9]=it[9],Bi[10]=it[10],Bi[11]=it[11],Bi[12]=it[12],Bi[13]=it[13],Bi[14]=it[14],Bi[15]=it[15],Bi)),mt=gr.dim0C,Tt.uniformMatrix4fv($.location,!1,Array.isArray(mt)||mt instanceof Float32Array?mt:(vi[0]=mt[0],vi[1]=mt[1],vi[2]=mt[2],vi[3]=mt[3],vi[4]=mt[4],vi[5]=mt[5],vi[6]=mt[6],vi[7]=mt[7],vi[8]=mt[8],vi[9]=mt[9],vi[10]=mt[10],vi[11]=mt[11],vi[12]=mt[12],vi[13]=mt[13],vi[14]=mt[14],vi[15]=mt[15],vi)),Rt=gr.dim0D,Tt.uniformMatrix4fv(ie.location,!1,Array.isArray(Rt)||Rt instanceof Float32Array?Rt:(mr[0]=Rt[0],mr[1]=Rt[1],mr[2]=Rt[2],mr[3]=Rt[3],mr[4]=Rt[4],mr[5]=Rt[5],mr[6]=Rt[6],mr[7]=Rt[7],mr[8]=Rt[8],mr[9]=Rt[9],mr[10]=Rt[10],mr[11]=Rt[11],mr[12]=Rt[12],mr[13]=Rt[13],mr[14]=Rt[14],mr[15]=Rt[15],mr)),qt=gr.dim1A,Tt.uniformMatrix4fv(re.location,!1,Array.isArray(qt)||qt instanceof Float32Array?qt:(Mi[0]=qt[0],Mi[1]=qt[1],Mi[2]=qt[2],Mi[3]=qt[3],Mi[4]=qt[4],Mi[5]=qt[5],Mi[6]=qt[6],Mi[7]=qt[7],Mi[8]=qt[8],Mi[9]=qt[9],Mi[10]=qt[10],Mi[11]=qt[11],Mi[12]=qt[12],Mi[13]=qt[13],Mi[14]=qt[14],Mi[15]=qt[15],Mi)),Nt=gr.dim1B,Tt.uniformMatrix4fv(de.location,!1,Array.isArray(Nt)||Nt instanceof Float32Array?Nt:(Cn[0]=Nt[0],Cn[1]=Nt[1],Cn[2]=Nt[2],Cn[3]=Nt[3],Cn[4]=Nt[4],Cn[5]=Nt[5],Cn[6]=Nt[6],Cn[7]=Nt[7],Cn[8]=Nt[8],Cn[9]=Nt[9],Cn[10]=Nt[10],Cn[11]=Nt[11],Cn[12]=Nt[12],Cn[13]=Nt[13],Cn[14]=Nt[14],Cn[15]=Nt[15],Cn)),ar=gr.dim1C,Tt.uniformMatrix4fv(me.location,!1,Array.isArray(ar)||ar instanceof Float32Array?ar:(jr[0]=ar[0],jr[1]=ar[1],jr[2]=ar[2],jr[3]=ar[3],jr[4]=ar[4],jr[5]=ar[5],jr[6]=ar[6],jr[7]=ar[7],jr[8]=ar[8],jr[9]=ar[9],jr[10]=ar[10],jr[11]=ar[11],jr[12]=ar[12],jr[13]=ar[13],jr[14]=ar[14],jr[15]=ar[15],jr)),Ir=gr.dim1D,Tt.uniformMatrix4fv(ze.location,!1,Array.isArray(Ir)||Ir instanceof Float32Array?Ir:(Xn[0]=Ir[0],Xn[1]=Ir[1],Xn[2]=Ir[2],Xn[3]=Ir[3],Xn[4]=Ir[4],Xn[5]=Ir[5],Xn[6]=Ir[6],Xn[7]=Ir[7],Xn[8]=Ir[8],Xn[9]=Ir[9],Xn[10]=Ir[10],Xn[11]=Ir[11],Xn[12]=Ir[12],Xn[13]=Ir[13],Xn[14]=Ir[14],Xn[15]=Ir[15],Xn)),$t=gr.drwLayer,Tt.uniform1f(ke.location,$t),Bt=gr.hiA,Tt.uniformMatrix4fv(le.location,!1,Array.isArray(Bt)||Bt instanceof Float32Array?Bt:(an[0]=Bt[0],an[1]=Bt[1],an[2]=Bt[2],an[3]=Bt[3],an[4]=Bt[4],an[5]=Bt[5],an[6]=Bt[6],an[7]=Bt[7],an[8]=Bt[8],an[9]=Bt[9],an[10]=Bt[10],an[11]=Bt[11],an[12]=Bt[12],an[13]=Bt[13],an[14]=Bt[14],an[15]=Bt[15],an)),rr=gr.hiB,Tt.uniformMatrix4fv(te.location,!1,Array.isArray(rr)||rr instanceof Float32Array?rr:(ta[0]=rr[0],ta[1]=rr[1],ta[2]=rr[2],ta[3]=rr[3],ta[4]=rr[4],ta[5]=rr[5],ta[6]=rr[6],ta[7]=rr[7],ta[8]=rr[8],ta[9]=rr[9],ta[10]=rr[10],ta[11]=rr[11],ta[12]=rr[12],ta[13]=rr[13],ta[14]=rr[14],ta[15]=rr[15],ta)),Dr=gr.hiC,Tt.uniformMatrix4fv(Ee.location,!1,Array.isArray(Dr)||Dr instanceof Float32Array?Dr:(qi[0]=Dr[0],qi[1]=Dr[1],qi[2]=Dr[2],qi[3]=Dr[3],qi[4]=Dr[4],qi[5]=Dr[5],qi[6]=Dr[6],qi[7]=Dr[7],qi[8]=Dr[8],qi[9]=Dr[9],qi[10]=Dr[10],qi[11]=Dr[11],qi[12]=Dr[12],qi[13]=Dr[13],qi[14]=Dr[14],qi[15]=Dr[15],qi)),Ur=gr.hiD,Tt.uniformMatrix4fv(we.location,!1,Array.isArray(Ur)||Ur instanceof Float32Array?Ur:(On[0]=Ur[0],On[1]=Ur[1],On[2]=Ur[2],On[3]=Ur[3],On[4]=Ur[4],On[5]=Ur[5],On[6]=Ur[6],On[7]=Ur[7],On[8]=Ur[8],On[9]=Ur[9],On[10]=Ur[10],On[11]=Ur[11],On[12]=Ur[12],On[13]=Ur[13],On[14]=Ur[14],On[15]=Ur[15],On)),ai=gr.loA,Tt.uniformMatrix4fv(oe.location,!1,Array.isArray(ai)||ai instanceof Float32Array?ai:(Nn[0]=ai[0],Nn[1]=ai[1],Nn[2]=ai[2],Nn[3]=ai[3],Nn[4]=ai[4],Nn[5]=ai[5],Nn[6]=ai[6],Nn[7]=ai[7],Nn[8]=ai[8],Nn[9]=ai[9],Nn[10]=ai[10],Nn[11]=ai[11],Nn[12]=ai[12],Nn[13]=ai[13],Nn[14]=ai[14],Nn[15]=ai[15],Nn)),ci=gr.loB,Tt.uniformMatrix4fv(Y.location,!1,Array.isArray(ci)||ci instanceof Float32Array?ci:(ia[0]=ci[0],ia[1]=ci[1],ia[2]=ci[2],ia[3]=ci[3],ia[4]=ci[4],ia[5]=ci[5],ia[6]=ci[6],ia[7]=ci[7],ia[8]=ci[8],ia[9]=ci[9],ia[10]=ci[10],ia[11]=ci[11],ia[12]=ci[12],ia[13]=ci[13],ia[14]=ci[14],ia[15]=ci[15],ia)),li=gr.loC,Tt.uniformMatrix4fv(ne.location,!1,Array.isArray(li)||li instanceof Float32Array?li:(Qr[0]=li[0],Qr[1]=li[1],Qr[2]=li[2],Qr[3]=li[3],Qr[4]=li[4],Qr[5]=li[5],Qr[6]=li[6],Qr[7]=li[7],Qr[8]=li[8],Qr[9]=li[9],Qr[10]=li[10],Qr[11]=li[11],Qr[12]=li[12],Qr[13]=li[13],Qr[14]=li[14],Qr[15]=li[15],Qr)),mi=gr.loD,Tt.uniformMatrix4fv(ye.location,!1,Array.isArray(mi)||mi instanceof Float32Array?mi:(Di[0]=mi[0],Di[1]=mi[1],Di[2]=mi[2],Di[3]=mi[3],Di[4]=mi[4],Di[5]=mi[5],Di[6]=mi[6],Di[7]=mi[7],Di[8]=mi[8],Di[9]=mi[9],Di[10]=mi[10],Di[11]=mi[11],Di[12]=mi[12],Di[13]=mi[13],Di[14]=mi[14],Di[15]=mi[15],Di)),xi=gr.maskHeight,Tt.uniform1f(V.location,xi),Ni=gr.maskTexture,Ni&&Ni._reglType==="framebuffer"&&(Ni=Ni.color[0]),ua=Ni._texture,Tt.uniform1i(ue.location,ua.bind()),Tt.uniform1i(_e.location,xe.bind()),xa=gr.resolution,ao=xa[0],ho=xa[1],Tt.uniform2f(Ae.location,ao,ho),Fo=gr.viewBoxPos,ls=Fo[0],Io=Fo[1],Tt.uniform2f(se.location,ls,Io),Ps=gr.viewBoxSize,xs=Ps[0],us=Ps[1],Tt.uniform2f(pe.location,xs,us),Vi=Wi.elements,Vi?Tt.bindBuffer(34963,Vi.buffer.buffer):en.currentVAO&&(Vi=na.getElements(en.currentVAO.elements),Vi&&Tt.bindBuffer(34963,Vi.buffer.buffer)),io=gr.offset,ko=gr.count,ko&&(Vi?Tt.drawElements(1,ko,Vi.type,io<<(Vi.type-5121>>1)):Tt.drawArrays(1,io,ko),Pr.dirty=!0,en.setVAO(null),wi.viewportWidth=mo,wi.viewportHeight=Oa,Pr.profile=Sa,ua.unbind(),xe.unbind())},scope:function(gr,Ln,xn){var da,Si,Kr,Gn,to,Jn,ro,mo,Oa,Ei,co,Pn,Fa,oa,Hn,va,ma,Sa,ki,Wr,An,Za,Ga,Ca,za,Wn,Zi,sa,So,ya,Qn,Tn,Da,zn,Ia,Yi,In,Oi,la,ga,go,eo,Eo,Mn,To,Ya,Co,Ri,qa,Zn,Ha,Wa,$a,Fe,Ve,lt,it,mt,Rt,qt,Nt,ar,Ir,$t,Bt,rr,Dr,Ur,ai,ci,li,mi,xi,Ni,ua,xa,ao,ho,Fo,ls,Io,Ps,xs,us,Vi,io,ko,oo,xo,bo,so,Yo,Uo,es,jo,Qo,Ks,Ws,Ds,_s,as,Es,Mo,Go,qs,Ts,Dl,_l,wl,vl,Al,ml,Hl,Tl,yl,ae,ce,Te,Ce,Ne,Oe,He,ct,xt,vt,wt,Pt,Jt,cr,Nr,zi,Rn,fo,Xo,Bo,fs,cs,Ns,zl,Rs,Nl,ul,cl,vf,wf,_u,wu,ju,Au,ku,Af,mf,ef,Nf,oc,R,G,ee,he,ve,be,je,qe,Je,ht,pt,Lt,kt,Qt,Sr,It,Yt,sr,Ar,br,Xt,_n,ha,Xa,yo,Wo,Zo,Qs,rs,Us,jl,qu,Ql,po,el,nl,Vl,Cu,tf,Tf,sc,vh,et,Ot,Ht,hi,Ji,cn,Xi,ba,lo,uo,vo,Vs,ys,Oo,ra,$r,Sn,Ka,_o,Ea,Ko,Vo,$s,_a,fa,hs,qo,Do,Lo,ds,Ys,xl,$o,bs,hl,dl,Wl,Zf,Vc,ru,y0,rf,Fh,Wh,g0,Tc,Mc,Uc,Rl,sh,sf,$h,x0,b0,kl,fu,Mf,Vt,tn,sn,ks,ou,nf,Ms,zt,jt,hr,Qi,pn,si,Xr,Lr,ir,yr,Zt,bi,En,Qa,Zs,vs,is,Xs,Bs,zs,ns,Ss,Fs,bl,Sf,_0,Lp,qv,Ov,ld,bg,oue,sue;da=gr.viewportX,zr.x=da,Si=gr.viewportY,zr.y=Si,Kr=gr.viewportWidth,zr.width=Kr,Gn=gr.viewportHeight,zr.height=Gn,to=zr.x|0,Jn=zr.y|0,ro="width"in zr?zr.width|0:wi.framebufferWidth-to,mo="height"in zr?zr.height|0:wi.framebufferHeight-Jn,Oa=wi.viewportWidth,wi.viewportWidth=ro,Ei=wi.viewportHeight,wi.viewportHeight=mo,co=ti[0],ti[0]=to,Pn=ti[1],ti[1]=Jn,Fa=ti[2],ti[2]=ro,oa=ti[3],ti[3]=mo,Hn=ca[0],ca[0]=fe,va=ca[1],ca[1]=Re,ma=ca[2],ca[2]=We,Sa=ca[3],ca[3]=Ke,ki=ii.blend_enable,ii.blend_enable=tt,Wr=dn[0],dn[0]=at,An=dn[1],dn[1]=Ge,Za=rn[0],rn[0]=ge,Ga=rn[1],rn[1]=Be,Ca=rn[2],rn[2]=Ze,za=rn[3],rn[3]=Le,Wn=ii.cull_enable,ii.cull_enable=De,Zi=ii.cull_face,ii.cull_face=Ue,sa=ii.depth_enable,ii.depth_enable=Pe,So=ii.depth_func,ii.depth_func=Se,ya=ii.depth_mask,ii.depth_mask=Ie,Qn=nn[0],nn[0]=ot,Tn=nn[1],nn[1]=ut,Da=ii.dither,ii.dither=_t,zn=ii.lineWidth,ii.lineWidth=At,Ia=gr.scissorX,ni.x=Ia,Yi=gr.scissorY,ni.y=Yi,In=gr.scissorWidth,ni.width=In,Oi=gr.scissorHeight,ni.height=Oi,la=ni.x|0,ga=ni.y|0,go="width"in ni?ni.width|0:wi.framebufferWidth-la,eo="height"in ni?ni.height|0:wi.framebufferHeight-ga,Eo=wn[0],wn[0]=la,Mn=wn[1],wn[1]=ga,To=wn[2],wn[2]=go,Ya=wn[3],wn[3]=eo,Co=ii.scissor_enable,ii.scissor_enable=Gt,Ri=Pr.profile,Pr.profile=!1,qa=gr.offset,Zn=Wi.offset,Wi.offset=qa,Ha=gr.count,Wa=Wi.count,Wi.count=Ha,$a=Wi.primitive,Wi.primitive=Dt,Fe=_r[Mt],_r[Mt]=yt,Ve=gr.resolution,lt=_r[tr],_r[tr]=Ve,it=gr.viewBoxPos,mt=_r[Ye],_r[Ye]=it,Rt=gr.viewBoxSize,qt=_r[nt],_r[nt]=Rt,Nt=gr.dim0A,ar=_r[st],_r[st]=Nt,Ir=gr.dim1A,$t=_r[dt],_r[dt]=Ir,Bt=gr.dim0B,rr=_r[rt],_r[rt]=Bt,Dr=gr.dim1B,Ur=_r[ft],_r[ft]=Dr,ai=gr.dim0C,ci=_r[Ft],_r[Ft]=ai,li=gr.dim1C,mi=_r[Et],_r[Et]=li,xi=gr.dim0D,Ni=_r[er],_r[er]=xi,ua=gr.dim1D,xa=_r[xr],_r[xr]=ua,ao=gr.loA,ho=_r[kr],_r[kr]=ao,Fo=gr.hiA,ls=_r[fr],_r[fr]=Fo,Io=gr.loB,Ps=_r[Yr],_r[Yr]=Io,xs=gr.hiB,us=_r[Or],_r[Or]=xs,Vi=gr.loC,io=_r[ri],_r[ri]=Vi,ko=gr.hiC,oo=_r[Tr],_r[Tr]=ko,xo=gr.loD,bo=_r[Mr],_r[Mr]=xo,so=gr.hiD,Yo=_r[Gr],_r[Gr]=so,Uo=gr.contextColor,es=_r[_i],_r[_i]=Uo,jo=gr.maskTexture,Qo=_r[Fi],_r[Fi]=jo,Ks=gr.drwLayer,Ws=_r[wr],_r[wr]=Ks,Ds=gr.maskHeight,_s=_r[Cr],_r[Cr]=Ds,as=Ut.state,Ut.state=1,Es=Ut.x,Ut.x=0,Mo=Ut.y,Ut.y=0,Go=Ut.z,Ut.z=0,qs=Ut.w,Ut.w=0,Ts=Ut.buffer,Ut.buffer=v,Dl=Ut.size,Ut.size=0,_l=Ut.normalized,Ut.normalized=!1,wl=Ut.type,Ut.type=v.dtype,vl=Ut.offset,Ut.offset=0,Al=Ut.stride,Ut.stride=0,ml=Ut.divisor,Ut.divisor=0,Hl=Wt.state,Wt.state=1,Tl=Wt.x,Wt.x=0,yl=Wt.y,Wt.y=0,ae=Wt.z,Wt.z=0,ce=Wt.w,Wt.w=0,Te=Wt.buffer,Wt.buffer=m,Ce=Wt.size,Wt.size=0,Ne=Wt.normalized,Wt.normalized=!1,Oe=Wt.type,Wt.type=m.dtype,He=Wt.offset,Wt.offset=0,ct=Wt.stride,Wt.stride=0,xt=Wt.divisor,Wt.divisor=0,vt=dr.state,dr.state=1,wt=dr.x,dr.x=0,Pt=dr.y,dr.y=0,Jt=dr.z,dr.z=0,cr=dr.w,dr.w=0,Nr=dr.buffer,dr.buffer=_,zi=dr.size,dr.size=0,Rn=dr.normalized,dr.normalized=!1,fo=dr.type,dr.type=_.dtype,Xo=dr.offset,dr.offset=0,Bo=dr.stride,dr.stride=0,fs=dr.divisor,dr.divisor=0,cs=Hr.state,Hr.state=1,Ns=Hr.x,Hr.x=0,zl=Hr.y,Hr.y=0,Rs=Hr.z,Hr.z=0,Nl=Hr.w,Hr.w=0,ul=Hr.buffer,Hr.buffer=M,cl=Hr.size,Hr.size=0,vf=Hr.normalized,Hr.normalized=!1,wf=Hr.type,Hr.type=M.dtype,_u=Hr.offset,Hr.offset=0,wu=Hr.stride,Hr.stride=0,ju=Hr.divisor,Hr.divisor=0,Au=Er.state,Er.state=1,ku=Er.x,Er.x=0,Af=Er.y,Er.y=0,mf=Er.z,Er.z=0,ef=Er.w,Er.w=0,Nf=Er.buffer,Er.buffer=T,oc=Er.size,Er.size=0,R=Er.normalized,Er.normalized=!1,G=Er.type,Er.type=T.dtype,ee=Er.offset,Er.offset=0,he=Er.stride,Er.stride=0,ve=Er.divisor,Er.divisor=0,be=Fr.state,Fr.state=1,je=Fr.x,Fr.x=0,qe=Fr.y,Fr.y=0,Je=Fr.z,Fr.z=0,ht=Fr.w,Fr.w=0,pt=Fr.buffer,Fr.buffer=g,Lt=Fr.size,Fr.size=0,kt=Fr.normalized,Fr.normalized=!1,Qt=Fr.type,Fr.type=g.dtype,Sr=Fr.offset,Fr.offset=0,It=Fr.stride,Fr.stride=0,Yt=Fr.divisor,Fr.divisor=0,sr=di.state,di.state=1,Ar=di.x,di.x=0,br=di.y,di.y=0,Xt=di.z,di.z=0,_n=di.w,di.w=0,ha=di.buffer,di.buffer=S,Xa=di.size,di.size=0,yo=di.normalized,di.normalized=!1,Wo=di.type,di.type=S.dtype,Zo=di.offset,di.offset=0,Qs=di.stride,di.stride=0,rs=di.divisor,di.divisor=0,Us=Li.state,Li.state=1,jl=Li.x,Li.x=0,qu=Li.y,Li.y=0,Ql=Li.z,Li.z=0,po=Li.w,Li.w=0,el=Li.buffer,Li.buffer=k,nl=Li.size,Li.size=0,Vl=Li.normalized,Li.normalized=!1,Cu=Li.type,Li.type=k.dtype,tf=Li.offset,Li.offset=0,Tf=Li.stride,Li.stride=0,sc=Li.divisor,Li.divisor=0,vh=nr.state,nr.state=1,et=nr.x,nr.x=0,Ot=nr.y,nr.y=0,Ht=nr.z,nr.z=0,hi=nr.w,nr.w=0,Ji=nr.buffer,nr.buffer=F,cn=nr.size,nr.size=0,Xi=nr.normalized,nr.normalized=!1,ba=nr.type,nr.type=F.dtype,lo=nr.offset,nr.offset=0,uo=nr.stride,nr.stride=0,vo=nr.divisor,nr.divisor=0,Vs=Kt.state,Kt.state=1,ys=Kt.x,Kt.x=0,Oo=Kt.y,Kt.y=0,ra=Kt.z,Kt.z=0,$r=Kt.w,Kt.w=0,Sn=Kt.buffer,Kt.buffer=I,Ka=Kt.size,Kt.size=0,_o=Kt.normalized,Kt.normalized=!1,Ea=Kt.type,Kt.type=I.dtype,Ko=Kt.offset,Kt.offset=0,Vo=Kt.stride,Kt.stride=0,$s=Kt.divisor,Kt.divisor=0,_a=Me.state,Me.state=1,fa=Me.x,Me.x=0,hs=Me.y,Me.y=0,qo=Me.z,Me.z=0,Do=Me.w,Me.w=0,Lo=Me.buffer,Me.buffer=z,ds=Me.size,Me.size=0,Ys=Me.normalized,Me.normalized=!1,xl=Me.type,Me.type=z.dtype,$o=Me.offset,Me.offset=0,bs=Me.stride,Me.stride=0,hl=Me.divisor,Me.divisor=0,dl=Xe.state,Xe.state=1,Wl=Xe.x,Xe.x=0,Zf=Xe.y,Xe.y=0,Vc=Xe.z,Xe.z=0,ru=Xe.w,Xe.w=0,y0=Xe.buffer,Xe.buffer=O,rf=Xe.size,Xe.size=0,Fh=Xe.normalized,Xe.normalized=!1,Wh=Xe.type,Xe.type=O.dtype,g0=Xe.offset,Xe.offset=0,Tc=Xe.stride,Xe.stride=0,Mc=Xe.divisor,Xe.divisor=0,Uc=$e.state,$e.state=1,Rl=$e.x,$e.x=0,sh=$e.y,$e.y=0,sf=$e.z,$e.z=0,$h=$e.w,$e.w=0,x0=$e.buffer,$e.buffer=X,b0=$e.size,$e.size=0,kl=$e.normalized,$e.normalized=!1,fu=$e.type,$e.type=X.dtype,Mf=$e.offset,$e.offset=0,Vt=$e.stride,$e.stride=0,tn=$e.divisor,$e.divisor=0,sn=Qe.state,Qe.state=1,ks=Qe.x,Qe.x=0,ou=Qe.y,Qe.y=0,nf=Qe.z,Qe.z=0,Ms=Qe.w,Qe.w=0,zt=Qe.buffer,Qe.buffer=H,jt=Qe.size,Qe.size=0,hr=Qe.normalized,Qe.normalized=!1,Qi=Qe.type,Qe.type=H.dtype,pn=Qe.offset,Qe.offset=0,si=Qe.stride,Qe.stride=0,Xr=Qe.divisor,Qe.divisor=0,Lr=gt.state,gt.state=1,ir=gt.x,gt.x=0,yr=gt.y,gt.y=0,Zt=gt.z,gt.z=0,bi=gt.w,gt.w=0,En=gt.buffer,gt.buffer=Q,Qa=gt.size,gt.size=0,Zs=gt.normalized,gt.normalized=!1,vs=gt.type,gt.type=Q.dtype,is=gt.offset,gt.offset=0,Xs=gt.stride,gt.stride=0,Bs=gt.divisor,gt.divisor=0,zs=bt.state,bt.state=1,ns=bt.x,bt.x=0,Ss=bt.y,bt.y=0,Fs=bt.z,bt.z=0,bl=bt.w,bt.w=0,Sf=bt.buffer,bt.buffer=d,_0=bt.size,bt.size=0,Lp=bt.normalized,bt.normalized=!1,qv=bt.type,bt.type=d.dtype,Ov=bt.offset,bt.offset=0,ld=bt.stride,bt.stride=0,bg=bt.divisor,bt.divisor=0,oue=$n.vert,$n.vert=lr,sue=$n.frag,$n.frag=Ct,Pr.dirty=!0,Ln(wi,gr,xn),wi.viewportWidth=Oa,wi.viewportHeight=Ei,ti[0]=co,ti[1]=Pn,ti[2]=Fa,ti[3]=oa,ca[0]=Hn,ca[1]=va,ca[2]=ma,ca[3]=Sa,ii.blend_enable=ki,dn[0]=Wr,dn[1]=An,rn[0]=Za,rn[1]=Ga,rn[2]=Ca,rn[3]=za,ii.cull_enable=Wn,ii.cull_face=Zi,ii.depth_enable=sa,ii.depth_func=So,ii.depth_mask=ya,nn[0]=Qn,nn[1]=Tn,ii.dither=Da,ii.lineWidth=zn,wn[0]=Eo,wn[1]=Mn,wn[2]=To,wn[3]=Ya,ii.scissor_enable=Co,Pr.profile=Ri,Wi.offset=Zn,Wi.count=Wa,Wi.primitive=$a,_r[Mt]=Fe,_r[tr]=lt,_r[Ye]=mt,_r[nt]=qt,_r[st]=ar,_r[dt]=$t,_r[rt]=rr,_r[ft]=Ur,_r[Ft]=ci,_r[Et]=mi,_r[er]=Ni,_r[xr]=xa,_r[kr]=ho,_r[fr]=ls,_r[Yr]=Ps,_r[Or]=us,_r[ri]=io,_r[Tr]=oo,_r[Mr]=bo,_r[Gr]=Yo,_r[_i]=es,_r[Fi]=Qo,_r[wr]=Ws,_r[Cr]=_s,Ut.state=as,Ut.x=Es,Ut.y=Mo,Ut.z=Go,Ut.w=qs,Ut.buffer=Ts,Ut.size=Dl,Ut.normalized=_l,Ut.type=wl,Ut.offset=vl,Ut.stride=Al,Ut.divisor=ml,Wt.state=Hl,Wt.x=Tl,Wt.y=yl,Wt.z=ae,Wt.w=ce,Wt.buffer=Te,Wt.size=Ce,Wt.normalized=Ne,Wt.type=Oe,Wt.offset=He,Wt.stride=ct,Wt.divisor=xt,dr.state=vt,dr.x=wt,dr.y=Pt,dr.z=Jt,dr.w=cr,dr.buffer=Nr,dr.size=zi,dr.normalized=Rn,dr.type=fo,dr.offset=Xo,dr.stride=Bo,dr.divisor=fs,Hr.state=cs,Hr.x=Ns,Hr.y=zl,Hr.z=Rs,Hr.w=Nl,Hr.buffer=ul,Hr.size=cl,Hr.normalized=vf,Hr.type=wf,Hr.offset=_u,Hr.stride=wu,Hr.divisor=ju,Er.state=Au,Er.x=ku,Er.y=Af,Er.z=mf,Er.w=ef,Er.buffer=Nf,Er.size=oc,Er.normalized=R,Er.type=G,Er.offset=ee,Er.stride=he,Er.divisor=ve,Fr.state=be,Fr.x=je,Fr.y=qe,Fr.z=Je,Fr.w=ht,Fr.buffer=pt,Fr.size=Lt,Fr.normalized=kt,Fr.type=Qt,Fr.offset=Sr,Fr.stride=It,Fr.divisor=Yt,di.state=sr,di.x=Ar,di.y=br,di.z=Xt,di.w=_n,di.buffer=ha,di.size=Xa,di.normalized=yo,di.type=Wo,di.offset=Zo,di.stride=Qs,di.divisor=rs,Li.state=Us,Li.x=jl,Li.y=qu,Li.z=Ql,Li.w=po,Li.buffer=el,Li.size=nl,Li.normalized=Vl,Li.type=Cu,Li.offset=tf,Li.stride=Tf,Li.divisor=sc,nr.state=vh,nr.x=et,nr.y=Ot,nr.z=Ht,nr.w=hi,nr.buffer=Ji,nr.size=cn,nr.normalized=Xi,nr.type=ba,nr.offset=lo,nr.stride=uo,nr.divisor=vo,Kt.state=Vs,Kt.x=ys,Kt.y=Oo,Kt.z=ra,Kt.w=$r,Kt.buffer=Sn,Kt.size=Ka,Kt.normalized=_o,Kt.type=Ea,Kt.offset=Ko,Kt.stride=Vo,Kt.divisor=$s,Me.state=_a,Me.x=fa,Me.y=hs,Me.z=qo,Me.w=Do,Me.buffer=Lo,Me.size=ds,Me.normalized=Ys,Me.type=xl,Me.offset=$o,Me.stride=bs,Me.divisor=hl,Xe.state=dl,Xe.x=Wl,Xe.y=Zf,Xe.z=Vc,Xe.w=ru,Xe.buffer=y0,Xe.size=rf,Xe.normalized=Fh,Xe.type=Wh,Xe.offset=g0,Xe.stride=Tc,Xe.divisor=Mc,$e.state=Uc,$e.x=Rl,$e.y=sh,$e.z=sf,$e.w=$h,$e.buffer=x0,$e.size=b0,$e.normalized=kl,$e.type=fu,$e.offset=Mf,$e.stride=Vt,$e.divisor=tn,Qe.state=sn,Qe.x=ks,Qe.y=ou,Qe.z=nf,Qe.w=Ms,Qe.buffer=zt,Qe.size=jt,Qe.normalized=hr,Qe.type=Qi,Qe.offset=pn,Qe.stride=si,Qe.divisor=Xr,gt.state=Lr,gt.x=ir,gt.y=yr,gt.z=Zt,gt.w=bi,gt.buffer=En,gt.size=Qa,gt.normalized=Zs,gt.type=vs,gt.offset=is,gt.stride=Xs,gt.divisor=Bs,bt.state=zs,bt.x=ns,bt.y=Ss,bt.z=Fs,bt.w=bl,bt.buffer=Sf,bt.size=_0,bt.normalized=Lp,bt.type=qv,bt.offset=Ov,bt.stride=ld,bt.divisor=bg,$n.vert=oue,$n.frag=sue,Pr.dirty=!0},batch:function(gr,Ln){var xn,da,Si,Kr;if(xn=Zr.next,xn!==Zr.cur&&(xn?Tt.bindFramebuffer(36160,xn.framebuffer):Tt.bindFramebuffer(36160,null),Zr.cur=xn),Pr.dirty){var Gn,to,Jn,ro,mo,Oa,Ei,co,Pn,Fa,oa,Hn,va,ma,Sa,ki,Wr,An,Za,Ga,Ca,za,Wn,Zi,sa;Gn=ea[0],to=ea[1],Jn=ea[2],ro=ea[3],(Gn!==qn[0]||to!==qn[1]||Jn!==qn[2]||ro!==qn[3])&&(Tt.colorMask(Gn,to,Jn,ro),qn[0]=Gn,qn[1]=to,qn[2]=Jn,qn[3]=ro),mo=ii.frontFace,mo!==Pr.frontFace&&(Tt.frontFace(mo),Pr.frontFace=mo),Oa=ii.polygonOffset_enable,Oa!==Pr.polygonOffset_enable&&(Oa?Tt.enable(32823):Tt.disable(32823),Pr.polygonOffset_enable=Oa),Ei=pi[0],co=pi[1],(Ei!==Fn[0]||co!==Fn[1])&&(Tt.polygonOffset(Ei,co),Fn[0]=Ei,Fn[1]=co),Pn=ii.sample_alpha,Pn!==Pr.sample_alpha&&(Pn?Tt.enable(32926):Tt.disable(32926),Pr.sample_alpha=Pn),Fa=ii.sample_enable,Fa!==Pr.sample_enable&&(Fa?Tt.enable(32928):Tt.disable(32928),Pr.sample_enable=Fa),oa=Pa[0],Hn=Pa[1],(oa!==pr[0]||Hn!==pr[1])&&(Tt.sampleCoverage(oa,Hn),pr[0]=oa,pr[1]=Hn),va=ii.stencil_enable,va!==Pr.stencil_enable&&(va?Tt.enable(2960):Tt.disable(2960),Pr.stencil_enable=va),ma=ii.stencil_mask,ma!==Pr.stencil_mask&&(Tt.stencilMask(ma),Pr.stencil_mask=ma),Sa=oi[0],ki=oi[1],Wr=oi[2],(Sa!==Ki[0]||ki!==Ki[1]||Wr!==Ki[2])&&(Tt.stencilFunc(Sa,ki,Wr),Ki[0]=Sa,Ki[1]=ki,Ki[2]=Wr),An=Ui[0],Za=Ui[1],Ga=Ui[2],Ca=Ui[3],(An!==pa[0]||Za!==pa[1]||Ga!==pa[2]||Ca!==pa[3])&&(Tt.stencilOpSeparate(An,Za,Ga,Ca),pa[0]=An,pa[1]=Za,pa[2]=Ga,pa[3]=Ca),za=Na[0],Wn=Na[1],Zi=Na[2],sa=Na[3],(za!==on[0]||Wn!==on[1]||Zi!==on[2]||sa!==on[3])&&(Tt.stencilOpSeparate(za,Wn,Zi,sa),on[0]=za,on[1]=Wn,on[2]=Zi,on[3]=sa)}Tt.blendColor(0,0,0,0),Kn[0]=0,Kn[1]=0,Kn[2]=0,Kn[3]=0,ur?Tt.enable(3042):Tt.disable(3042),Pr.blend_enable=ur,Tt.blendEquationSeparate(32774,32774),Ta[0]=32774,Ta[1]=32774,Tt.blendFuncSeparate(770,771,1,1),Ai[0]=770,Ai[1]=771,Ai[2]=1,Ai[3]=1,Rr?Tt.enable(2884):Tt.disable(2884),Pr.cull_enable=Rr,Tt.cullFace(Br),Pr.cull_face=Br,Vr?Tt.enable(2929):Tt.disable(2929),Pr.depth_enable=Vr,Tt.depthFunc(gi),Pr.depth_func=gi,Tt.depthMask(ui),Pr.depth_mask=ui,Tt.depthRange(0,1),Ti[0]=0,Ti[1]=1,ei?Tt.enable(3024):Tt.disable(3024),Pr.dither=ei,Tt.lineWidth(Gi),Pr.lineWidth=Gi,un?Tt.enable(3089):Tt.disable(3089),Pr.scissor_enable=un,da=Pr.profile,Pr.profile=!1,Tt.useProgram(h.program);var So,ya,Qn,Tn,Da,zn,Ia,Yi,In,Oi,la,ga,go,eo,Eo,Mn,To,Ya,Co,Ri,qa,Zn,Ha,Wa,$a,Fe,Ve,lt,it,mt,Rt,qt,Nt;for(en.setVAO(null),So=p.location,ya=$i[So],ya.buffer||Tt.enableVertexAttribArray(So),(ya.type!==d.dtype||ya.size!==4||ya.buffer!==d||ya.normalized!==!1||ya.offset!==0||ya.stride!==0)&&(Tt.bindBuffer(34962,d.buffer),Tt.vertexAttribPointer(So,4,d.dtype,!1,0,0),ya.type=d.dtype,ya.size=4,ya.buffer=d,ya.normalized=!1,ya.offset=0,ya.stride=0),Qn=y.location,Tn=$i[Qn],Tn.buffer||Tt.enableVertexAttribArray(Qn),(Tn.type!==v.dtype||Tn.size!==4||Tn.buffer!==v||Tn.normalized!==!1||Tn.offset!==0||Tn.stride!==0)&&(Tt.bindBuffer(34962,v.buffer),Tt.vertexAttribPointer(Qn,4,v.dtype,!1,0,0),Tn.type=v.dtype,Tn.size=4,Tn.buffer=v,Tn.normalized=!1,Tn.offset=0,Tn.stride=0),Da=w.location,zn=$i[Da],zn.buffer||Tt.enableVertexAttribArray(Da),(zn.type!==m.dtype||zn.size!==4||zn.buffer!==m||zn.normalized!==!1||zn.offset!==0||zn.stride!==0)&&(Tt.bindBuffer(34962,m.buffer),Tt.vertexAttribPointer(Da,4,m.dtype,!1,0,0),zn.type=m.dtype,zn.size=4,zn.buffer=m,zn.normalized=!1,zn.offset=0,zn.stride=0),Ia=b.location,Yi=$i[Ia],Yi.buffer||Tt.enableVertexAttribArray(Ia),(Yi.type!==_.dtype||Yi.size!==4||Yi.buffer!==_||Yi.normalized!==!1||Yi.offset!==0||Yi.stride!==0)&&(Tt.bindBuffer(34962,_.buffer),Tt.vertexAttribPointer(Ia,4,_.dtype,!1,0,0),Yi.type=_.dtype,Yi.size=4,Yi.buffer=_,Yi.normalized=!1,Yi.offset=0,Yi.stride=0),In=x.location,Oi=$i[In],Oi.buffer||Tt.enableVertexAttribArray(In),(Oi.type!==M.dtype||Oi.size!==4||Oi.buffer!==M||Oi.normalized!==!1||Oi.offset!==0||Oi.stride!==0)&&(Tt.bindBuffer(34962,M.buffer),Tt.vertexAttribPointer(In,4,M.dtype,!1,0,0),Oi.type=M.dtype,Oi.size=4,Oi.buffer=M,Oi.normalized=!1,Oi.offset=0,Oi.stride=0),la=A.location,ga=$i[la],ga.buffer||Tt.enableVertexAttribArray(la),(ga.type!==T.dtype||ga.size!==4||ga.buffer!==T||ga.normalized!==!1||ga.offset!==0||ga.stride!==0)&&(Tt.bindBuffer(34962,T.buffer),Tt.vertexAttribPointer(la,4,T.dtype,!1,0,0),ga.type=T.dtype,ga.size=4,ga.buffer=T,ga.normalized=!1,ga.offset=0,ga.stride=0),go=E.location,eo=$i[go],eo.buffer||Tt.enableVertexAttribArray(go),(eo.type!==g.dtype||eo.size!==4||eo.buffer!==g||eo.normalized!==!1||eo.offset!==0||eo.stride!==0)&&(Tt.bindBuffer(34962,g.buffer),Tt.vertexAttribPointer(go,4,g.dtype,!1,0,0),eo.type=g.dtype,eo.size=4,eo.buffer=g,eo.normalized=!1,eo.offset=0,eo.stride=0),Eo=C.location,Mn=$i[Eo],Mn.buffer||Tt.enableVertexAttribArray(Eo),(Mn.type!==S.dtype||Mn.size!==4||Mn.buffer!==S||Mn.normalized!==!1||Mn.offset!==0||Mn.stride!==0)&&(Tt.bindBuffer(34962,S.buffer),Tt.vertexAttribPointer(Eo,4,S.dtype,!1,0,0),Mn.type=S.dtype,Mn.size=4,Mn.buffer=S,Mn.normalized=!1,Mn.offset=0,Mn.stride=0),To=D.location,Ya=$i[To],Ya.buffer||Tt.enableVertexAttribArray(To),(Ya.type!==k.dtype||Ya.size!==4||Ya.buffer!==k||Ya.normalized!==!1||Ya.offset!==0||Ya.stride!==0)&&(Tt.bindBuffer(34962,k.buffer),Tt.vertexAttribPointer(To,4,k.dtype,!1,0,0),Ya.type=k.dtype,Ya.size=4,Ya.buffer=k,Ya.normalized=!1,Ya.offset=0,Ya.stride=0),Co=P.location,Ri=$i[Co],Ri.buffer||Tt.enableVertexAttribArray(Co),(Ri.type!==F.dtype||Ri.size!==4||Ri.buffer!==F||Ri.normalized!==!1||Ri.offset!==0||Ri.stride!==0)&&(Tt.bindBuffer(34962,F.buffer),Tt.vertexAttribPointer(Co,4,F.dtype,!1,0,0),Ri.type=F.dtype,Ri.size=4,Ri.buffer=F,Ri.normalized=!1,Ri.offset=0,Ri.stride=0),qa=L.location,Zn=$i[qa],Zn.buffer||Tt.enableVertexAttribArray(qa),(Zn.type!==I.dtype||Zn.size!==4||Zn.buffer!==I||Zn.normalized!==!1||Zn.offset!==0||Zn.stride!==0)&&(Tt.bindBuffer(34962,I.buffer),Tt.vertexAttribPointer(qa,4,I.dtype,!1,0,0),Zn.type=I.dtype,Zn.size=4,Zn.buffer=I,Zn.normalized=!1,Zn.offset=0,Zn.stride=0),Ha=B.location,Wa=$i[Ha],Wa.buffer||Tt.enableVertexAttribArray(Ha),(Wa.type!==z.dtype||Wa.size!==4||Wa.buffer!==z||Wa.normalized!==!1||Wa.offset!==0||Wa.stride!==0)&&(Tt.bindBuffer(34962,z.buffer),Tt.vertexAttribPointer(Ha,4,z.dtype,!1,0,0),Wa.type=z.dtype,Wa.size=4,Wa.buffer=z,Wa.normalized=!1,Wa.offset=0,Wa.stride=0),$a=W.location,Fe=$i[$a],Fe.buffer||Tt.enableVertexAttribArray($a),(Fe.type!==O.dtype||Fe.size!==4||Fe.buffer!==O||Fe.normalized!==!1||Fe.offset!==0||Fe.stride!==0)&&(Tt.bindBuffer(34962,O.buffer),Tt.vertexAttribPointer($a,4,O.dtype,!1,0,0),Fe.type=O.dtype,Fe.size=4,Fe.buffer=O,Fe.normalized=!1,Fe.offset=0,Fe.stride=0),Ve=Z.location,lt=$i[Ve],lt.buffer||Tt.enableVertexAttribArray(Ve),(lt.type!==X.dtype||lt.size!==4||lt.buffer!==X||lt.normalized!==!1||lt.offset!==0||lt.stride!==0)&&(Tt.bindBuffer(34962,X.buffer),Tt.vertexAttribPointer(Ve,4,X.dtype,!1,0,0),lt.type=X.dtype,lt.size=4,lt.buffer=X,lt.normalized=!1,lt.offset=0,lt.stride=0),it=q.location,mt=$i[it],mt.buffer||Tt.enableVertexAttribArray(it),(mt.type!==H.dtype||mt.size!==4||mt.buffer!==H||mt.normalized!==!1||mt.offset!==0||mt.stride!==0)&&(Tt.bindBuffer(34962,H.buffer),Tt.vertexAttribPointer(it,4,H.dtype,!1,0,0),mt.type=H.dtype,mt.size=4,mt.buffer=H,mt.normalized=!1,mt.offset=0,mt.stride=0),Rt=N.location,qt=$i[Rt],qt.buffer||Tt.enableVertexAttribArray(Rt),(qt.type!==Q.dtype||qt.size!==4||qt.buffer!==Q||qt.normalized!==!1||qt.offset!==0||qt.stride!==0)&&(Tt.bindBuffer(34962,Q.buffer),Tt.vertexAttribPointer(Rt,4,Q.dtype,!1,0,0),qt.type=Q.dtype,qt.size=4,qt.buffer=Q,qt.normalized=!1,qt.offset=0,qt.stride=0),Tt.uniform1i(_e.location,xe.bind()),Nt=Wi.elements,Nt?Tt.bindBuffer(34963,Nt.buffer.buffer):en.currentVAO&&(Nt=na.getElements(en.currentVAO.elements),Nt&&Tt.bindBuffer(34963,Nt.buffer.buffer)),Si=0;Si>1)):Tt.drawArrays(1,wt,Pt),wi.viewportWidth=ci,wi.viewportHeight=li,vl.unbind())}xe.unbind(),Pr.dirty=!0,en.setVAO(null),Pr.profile=da}}}});var ZJe=K((Iii,XJe)=>{"use strict";XJe.exports=function(t,r){"use strict";var i,n,a,o,s,l,u,f,c,h,d,p,v,y,m,w,_,b,M,x,T,A,g,E,S,C,k,D,F,P,I,L,z,B,O,W,X,Z,H,q,Q,N,U,J,j,$,ie,re,de,me,ze,ke,le,te,Ee,we,oe,Y,ne,ye,V,ue,_e,xe,Ae,se,pe,fe,Re,We,Ke;return i=t.gl,n=t.context,a=t.strings,o=t.next,s=t.current,l=t.draw,u=t.elements,f=t.buffer,c=t.shader,h=t.attributes,d=t.vao,p=t.uniforms,v=t.framebuffer,y=t.extensions,m=t.timer,w=t.isBufferArgs,_=o.blend_color,b=s.blend_color,M=o.blend_equation,x=s.blend_equation,T=o.blend_func,A=s.blend_func,g=o.depth_range,E=s.depth_range,S=o.colorMask,C=s.colorMask,k=o.polygonOffset_offset,D=s.polygonOffset_offset,F=o.sample_coverage,P=s.sample_coverage,I=o.stencil_func,L=s.stencil_func,z=o.stencil_opFront,B=s.stencil_opFront,O=o.stencil_opBack,W=s.stencil_opBack,X=o.scissor_box,Z=s.scissor_box,H=o.viewport,q=s.viewport,Q={points:0,point:0,lines:1,line:1,triangles:4,triangle:4,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},N={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},U={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},J={add:32774,subtract:32778,"reverse subtract":32779},j={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},$={int8:5120,int16:5122,int32:5124,uint8:5121,uint16:5123,uint32:5125,float:5126,float32:5126},ie={cw:2304,ccw:2305},re=o.blend_color,de=s.blend_color,me=o.blend_equation,ze=s.blend_equation,ke=o.blend_func,le=s.blend_func,te=o.depth_range,Ee=s.depth_range,we=o.colorMask,oe=s.colorMask,Y=o.polygonOffset_offset,ne=s.polygonOffset_offset,ye=o.sample_coverage,V=s.sample_coverage,ue=o.stencil_func,_e=s.stencil_func,xe=o.stencil_opFront,Ae=s.stencil_opFront,se=o.stencil_opBack,pe=s.stencil_opBack,fe=o.scissor_box,Re=s.scissor_box,We=o.viewport,Ke=s.viewport,{poll:function(){var tt,at,Ge,ge,Be,Ze,Le,De,Ue,Pe,Se,Ie,ot,ut,_t,At,Gt,Dt,yt,Mt,tr,Ye;s.dirty=!1,at=o.dither,Ge=o.blend_enable,ge=o.depth_enable,Be=o.cull_enable,Ze=o.polygonOffset_enable,Le=o.sample_alpha,De=o.sample_enable,Ue=o.stencil_enable,Pe=o.scissor_enable,Se=o.depth_func,Ie=s.depth_func,ot=o.depth_mask,ut=s.depth_mask,_t=o.cull_face,At=s.cull_face,Gt=o.frontFace,Dt=s.frontFace,yt=o.lineWidth,Mt=s.lineWidth,tr=o.stencil_mask,Ye=s.stencil_mask,tt=v.next,tt!==v.cur&&(tt?i.bindFramebuffer(36160,tt.framebuffer):i.bindFramebuffer(36160,null),v.cur=tt),at!==s.dither&&(at?i.enable(3024):i.disable(3024),s.dither=at),Ge!==s.blend_enable&&(Ge?i.enable(3042):i.disable(3042),s.blend_enable=Ge),ge!==s.depth_enable&&(ge?i.enable(2929):i.disable(2929),s.depth_enable=ge),Be!==s.cull_enable&&(Be?i.enable(2884):i.disable(2884),s.cull_enable=Be),Ze!==s.polygonOffset_enable&&(Ze?i.enable(32823):i.disable(32823),s.polygonOffset_enable=Ze),Le!==s.sample_alpha&&(Le?i.enable(32926):i.disable(32926),s.sample_alpha=Le),De!==s.sample_enable&&(De?i.enable(32928):i.disable(32928),s.sample_enable=De),Ue!==s.stencil_enable&&(Ue?i.enable(2960):i.disable(2960),s.stencil_enable=Ue),Pe!==s.scissor_enable&&(Pe?i.enable(3089):i.disable(3089),s.scissor_enable=Pe),(re[0]!==de[0]||re[1]!==de[1]||re[2]!==de[2]||re[3]!==de[3])&&(i.blendColor(re[0],re[1],re[2],re[3]),de[0]=re[0],de[1]=re[1],de[2]=re[2],de[3]=re[3]),(me[0]!==ze[0]||me[1]!==ze[1])&&(i.blendEquationSeparate(me[0],me[1]),ze[0]=me[0],ze[1]=me[1]),(ke[0]!==le[0]||ke[1]!==le[1]||ke[2]!==le[2]||ke[3]!==le[3])&&(i.blendFuncSeparate(ke[0],ke[1],ke[2],ke[3]),le[0]=ke[0],le[1]=ke[1],le[2]=ke[2],le[3]=ke[3]),Se!==Ie&&(i.depthFunc(Se),s.depth_func=Se),(te[0]!==Ee[0]||te[1]!==Ee[1])&&(i.depthRange(te[0],te[1]),Ee[0]=te[0],Ee[1]=te[1]),ot!==ut&&(i.depthMask(ot),s.depth_mask=ot),(we[0]!==oe[0]||we[1]!==oe[1]||we[2]!==oe[2]||we[3]!==oe[3])&&(i.colorMask(we[0],we[1],we[2],we[3]),oe[0]=we[0],oe[1]=we[1],oe[2]=we[2],oe[3]=we[3]),_t!==At&&(i.cullFace(_t),s.cull_face=_t),Gt!==Dt&&(i.frontFace(Gt),s.frontFace=Gt),yt!==Mt&&(i.lineWidth(yt),s.lineWidth=yt),(Y[0]!==ne[0]||Y[1]!==ne[1])&&(i.polygonOffset(Y[0],Y[1]),ne[0]=Y[0],ne[1]=Y[1]),(ye[0]!==V[0]||ye[1]!==V[1])&&(i.sampleCoverage(ye[0],ye[1]),V[0]=ye[0],V[1]=ye[1]),tr!==Ye&&(i.stencilMask(tr),s.stencil_mask=tr),(ue[0]!==_e[0]||ue[1]!==_e[1]||ue[2]!==_e[2])&&(i.stencilFunc(ue[0],ue[1],ue[2]),_e[0]=ue[0],_e[1]=ue[1],_e[2]=ue[2]),(xe[0]!==Ae[0]||xe[1]!==Ae[1]||xe[2]!==Ae[2]||xe[3]!==Ae[3])&&(i.stencilOpSeparate(xe[0],xe[1],xe[2],xe[3]),Ae[0]=xe[0],Ae[1]=xe[1],Ae[2]=xe[2],Ae[3]=xe[3]),(se[0]!==pe[0]||se[1]!==pe[1]||se[2]!==pe[2]||se[3]!==pe[3])&&(i.stencilOpSeparate(se[0],se[1],se[2],se[3]),pe[0]=se[0],pe[1]=se[1],pe[2]=se[2],pe[3]=se[3]),(fe[0]!==Re[0]||fe[1]!==Re[1]||fe[2]!==Re[2]||fe[3]!==Re[3])&&(i.scissor(fe[0],fe[1],fe[2],fe[3]),Re[0]=fe[0],Re[1]=fe[1],Re[2]=fe[2],Re[3]=fe[3]),(We[0]!==Ke[0]||We[1]!==Ke[1]||We[2]!==Ke[2]||We[3]!==Ke[3])&&(i.viewport(We[0],We[1],We[2],We[3]),Ke[0]=We[0],Ke[1]=We[1],Ke[2]=We[2],Ke[3]=We[3])},refresh:function(){var tt,at,Ge,ge,Be,Ze,Le,De,Ue,Pe,Se,Ie,ot,ut,_t,At,Gt,Dt,yt,Mt,tr,Ye,nt,st;s.dirty=!1,ge=o.dither,Be=o.blend_enable,Ze=o.depth_enable,Le=o.cull_enable,De=o.polygonOffset_enable,Ue=o.sample_alpha,Pe=o.sample_enable,Se=o.stencil_enable,Ie=o.scissor_enable,ot=o.depth_func,ut=s.depth_func,_t=o.depth_mask,At=s.depth_mask,Gt=o.cull_face,Dt=s.cull_face,yt=o.frontFace,Mt=s.frontFace,tr=o.lineWidth,Ye=s.lineWidth,nt=o.stencil_mask,st=s.stencil_mask,tt=v.next,tt?i.bindFramebuffer(36160,tt.framebuffer):i.bindFramebuffer(36160,null),v.cur=tt,at=h,Ge=0;for(var dt=0;dt{"use strict";KJe.exports=function(t,r,i,n){"use strict";var a,o,s,l,u,f,c,h,d,p,v,y,m,w,_,b,M,x,T,A,g,E,S,C,k,D,F,P,I,L,z,B,O,W,X,Z,H,q,Q,N,U,J,j,$,ie,re,de,me,ze;return a=t.gl,o=t.context,s=t.strings,l=t.next,u=t.current,f=t.draw,c=t.elements,h=t.buffer,d=t.shader,p=t.attributes,v=t.vao,y=t.uniforms,m=t.framebuffer,w=t.extensions,_=t.timer,b=t.isBufferArgs,M=l.blend_color,x=u.blend_color,T=l.blend_equation,A=u.blend_equation,g=l.blend_func,E=u.blend_func,S=l.depth_range,C=u.depth_range,k=l.colorMask,D=u.colorMask,F=l.polygonOffset_offset,P=u.polygonOffset_offset,I=l.sample_coverage,L=u.sample_coverage,z=l.stencil_func,B=u.stencil_func,O=l.stencil_opFront,W=u.stencil_opFront,X=l.stencil_opBack,Z=u.stencil_opBack,H=l.scissor_box,q=u.scissor_box,Q=l.viewport,N=u.viewport,U={points:0,point:0,lines:1,line:1,triangles:4,triangle:4,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},J={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},j={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},$={add:32774,subtract:32778,"reverse subtract":32779},ie={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},re={int8:5120,int16:5122,int32:5124,uint8:5121,uint16:5123,uint32:5125,float:5126,float32:5126},de={cw:2304,ccw:2305},me={},ze={},{draw:function(ke){var le,te,Ee,we,oe,Y,ne,ye;if(le=m.next,le!==m.cur&&(le?a.bindFramebuffer(36160,le.framebuffer):a.bindFramebuffer(36160,null),m.cur=le),u.dirty){var V,ue,_e,xe,Ae,se,pe,fe,Re,We,Ke,tt,at,Ge,ge,Be,Ze,Le,De,Ue,Pe,Se,Ie,ot,ut,_t,At,Gt,Dt,yt,Mt,tr,Ye,nt,st,dt,rt,ft,Ft,Et,er,xr,kr,fr,Yr,Or,ri,Tr,Mr,Gr,_i,Fi,wr,Cr;V=l.dither,V!==u.dither&&(V?a.enable(3024):a.disable(3024),u.dither=V),ue=l.blend_enable,ue!==u.blend_enable&&(ue?a.enable(3042):a.disable(3042),u.blend_enable=ue),_e=M[0],xe=M[1],Ae=M[2],se=M[3],(_e!==x[0]||xe!==x[1]||Ae!==x[2]||se!==x[3])&&(a.blendColor(_e,xe,Ae,se),x[0]=_e,x[1]=xe,x[2]=Ae,x[3]=se),pe=T[0],fe=T[1],(pe!==A[0]||fe!==A[1])&&(a.blendEquationSeparate(pe,fe),A[0]=pe,A[1]=fe),Re=g[0],We=g[1],Ke=g[2],tt=g[3],(Re!==E[0]||We!==E[1]||Ke!==E[2]||tt!==E[3])&&(a.blendFuncSeparate(Re,We,Ke,tt),E[0]=Re,E[1]=We,E[2]=Ke,E[3]=tt),at=l.depth_enable,at!==u.depth_enable&&(at?a.enable(2929):a.disable(2929),u.depth_enable=at),Ge=l.depth_func,Ge!==u.depth_func&&(a.depthFunc(Ge),u.depth_func=Ge),ge=S[0],Be=S[1],(ge!==C[0]||Be!==C[1])&&(a.depthRange(ge,Be),C[0]=ge,C[1]=Be),Ze=l.depth_mask,Ze!==u.depth_mask&&(a.depthMask(Ze),u.depth_mask=Ze),Le=k[0],De=k[1],Ue=k[2],Pe=k[3],(Le!==D[0]||De!==D[1]||Ue!==D[2]||Pe!==D[3])&&(a.colorMask(Le,De,Ue,Pe),D[0]=Le,D[1]=De,D[2]=Ue,D[3]=Pe),Se=l.cull_enable,Se!==u.cull_enable&&(Se?a.enable(2884):a.disable(2884),u.cull_enable=Se),Ie=l.cull_face,Ie!==u.cull_face&&(a.cullFace(Ie),u.cull_face=Ie),ot=l.frontFace,ot!==u.frontFace&&(a.frontFace(ot),u.frontFace=ot),ut=l.lineWidth,ut!==u.lineWidth&&(a.lineWidth(ut),u.lineWidth=ut),_t=l.polygonOffset_enable,_t!==u.polygonOffset_enable&&(_t?a.enable(32823):a.disable(32823),u.polygonOffset_enable=_t),At=F[0],Gt=F[1],(At!==P[0]||Gt!==P[1])&&(a.polygonOffset(At,Gt),P[0]=At,P[1]=Gt),Dt=l.sample_alpha,Dt!==u.sample_alpha&&(Dt?a.enable(32926):a.disable(32926),u.sample_alpha=Dt),yt=l.sample_enable,yt!==u.sample_enable&&(yt?a.enable(32928):a.disable(32928),u.sample_enable=yt),Mt=I[0],tr=I[1],(Mt!==L[0]||tr!==L[1])&&(a.sampleCoverage(Mt,tr),L[0]=Mt,L[1]=tr),Ye=l.stencil_enable,Ye!==u.stencil_enable&&(Ye?a.enable(2960):a.disable(2960),u.stencil_enable=Ye),nt=l.stencil_mask,nt!==u.stencil_mask&&(a.stencilMask(nt),u.stencil_mask=nt),st=z[0],dt=z[1],rt=z[2],(st!==B[0]||dt!==B[1]||rt!==B[2])&&(a.stencilFunc(st,dt,rt),B[0]=st,B[1]=dt,B[2]=rt),ft=O[0],Ft=O[1],Et=O[2],er=O[3],(ft!==W[0]||Ft!==W[1]||Et!==W[2]||er!==W[3])&&(a.stencilOpSeparate(ft,Ft,Et,er),W[0]=ft,W[1]=Ft,W[2]=Et,W[3]=er),xr=X[0],kr=X[1],fr=X[2],Yr=X[3],(xr!==Z[0]||kr!==Z[1]||fr!==Z[2]||Yr!==Z[3])&&(a.stencilOpSeparate(xr,kr,fr,Yr),Z[0]=xr,Z[1]=kr,Z[2]=fr,Z[3]=Yr),Or=l.scissor_enable,Or!==u.scissor_enable&&(Or?a.enable(3089):a.disable(3089),u.scissor_enable=Or),ri=H[0],Tr=H[1],Mr=H[2],Gr=H[3],(ri!==q[0]||Tr!==q[1]||Mr!==q[2]||Gr!==q[3])&&(a.scissor(ri,Tr,Mr,Gr),q[0]=ri,q[1]=Tr,q[2]=Mr,q[3]=Gr),_i=Q[0],Fi=Q[1],wr=Q[2],Cr=Q[3],(_i!==N[0]||Fi!==N[1]||wr!==N[2]||Cr!==N[3])&&(a.viewport(_i,Fi,wr,Cr),N[0]=_i,N[1]=Fi,N[2]=wr,N[3]=Cr),u.dirty=!1}te=u.profile,te&&(Ee=performance.now(),r.count++),we=d.frag,oe=d.vert,Y=d.program(oe,we),a.useProgram(Y.program),v.setVAO(null),ne=Y.id,ye=me[ne],ye?ye.call(this,ke):(ye=me[ne]=i(Y),ye.call(this,ke)),v.setVAO(null),te&&(r.cpuTime+=performance.now()-Ee)},scope:function(ke,le,te){var Ee,we;Ee=u.profile,Ee&&(we=performance.now(),r.count++),le(o,ke,te),Ee&&(r.cpuTime+=performance.now()-we)},batch:function(ke,le){var te,Ee,we,oe,Y,ne,ye,V;if(te=m.next,te!==m.cur&&(te?a.bindFramebuffer(36160,te.framebuffer):a.bindFramebuffer(36160,null),m.cur=te),u.dirty){var ue,_e,xe,Ae,se,pe,fe,Re,We,Ke,tt,at,Ge,ge,Be,Ze,Le,De,Ue,Pe,Se,Ie,ot,ut,_t,At,Gt,Dt,yt,Mt,tr,Ye,nt,st,dt,rt,ft,Ft,Et,er,xr,kr,fr,Yr,Or,ri,Tr,Mr,Gr,_i,Fi,wr,Cr,Ut;ue=l.dither,ue!==u.dither&&(ue?a.enable(3024):a.disable(3024),u.dither=ue),_e=l.blend_enable,_e!==u.blend_enable&&(_e?a.enable(3042):a.disable(3042),u.blend_enable=_e),xe=M[0],Ae=M[1],se=M[2],pe=M[3],(xe!==x[0]||Ae!==x[1]||se!==x[2]||pe!==x[3])&&(a.blendColor(xe,Ae,se,pe),x[0]=xe,x[1]=Ae,x[2]=se,x[3]=pe),fe=T[0],Re=T[1],(fe!==A[0]||Re!==A[1])&&(a.blendEquationSeparate(fe,Re),A[0]=fe,A[1]=Re),We=g[0],Ke=g[1],tt=g[2],at=g[3],(We!==E[0]||Ke!==E[1]||tt!==E[2]||at!==E[3])&&(a.blendFuncSeparate(We,Ke,tt,at),E[0]=We,E[1]=Ke,E[2]=tt,E[3]=at),Ge=l.depth_enable,Ge!==u.depth_enable&&(Ge?a.enable(2929):a.disable(2929),u.depth_enable=Ge),ge=l.depth_func,ge!==u.depth_func&&(a.depthFunc(ge),u.depth_func=ge),Be=S[0],Ze=S[1],(Be!==C[0]||Ze!==C[1])&&(a.depthRange(Be,Ze),C[0]=Be,C[1]=Ze),Le=l.depth_mask,Le!==u.depth_mask&&(a.depthMask(Le),u.depth_mask=Le),De=k[0],Ue=k[1],Pe=k[2],Se=k[3],(De!==D[0]||Ue!==D[1]||Pe!==D[2]||Se!==D[3])&&(a.colorMask(De,Ue,Pe,Se),D[0]=De,D[1]=Ue,D[2]=Pe,D[3]=Se),Ie=l.cull_enable,Ie!==u.cull_enable&&(Ie?a.enable(2884):a.disable(2884),u.cull_enable=Ie),ot=l.cull_face,ot!==u.cull_face&&(a.cullFace(ot),u.cull_face=ot),ut=l.frontFace,ut!==u.frontFace&&(a.frontFace(ut),u.frontFace=ut),_t=l.lineWidth,_t!==u.lineWidth&&(a.lineWidth(_t),u.lineWidth=_t),At=l.polygonOffset_enable,At!==u.polygonOffset_enable&&(At?a.enable(32823):a.disable(32823),u.polygonOffset_enable=At),Gt=F[0],Dt=F[1],(Gt!==P[0]||Dt!==P[1])&&(a.polygonOffset(Gt,Dt),P[0]=Gt,P[1]=Dt),yt=l.sample_alpha,yt!==u.sample_alpha&&(yt?a.enable(32926):a.disable(32926),u.sample_alpha=yt),Mt=l.sample_enable,Mt!==u.sample_enable&&(Mt?a.enable(32928):a.disable(32928),u.sample_enable=Mt),tr=I[0],Ye=I[1],(tr!==L[0]||Ye!==L[1])&&(a.sampleCoverage(tr,Ye),L[0]=tr,L[1]=Ye),nt=l.stencil_enable,nt!==u.stencil_enable&&(nt?a.enable(2960):a.disable(2960),u.stencil_enable=nt),st=l.stencil_mask,st!==u.stencil_mask&&(a.stencilMask(st),u.stencil_mask=st),dt=z[0],rt=z[1],ft=z[2],(dt!==B[0]||rt!==B[1]||ft!==B[2])&&(a.stencilFunc(dt,rt,ft),B[0]=dt,B[1]=rt,B[2]=ft),Ft=O[0],Et=O[1],er=O[2],xr=O[3],(Ft!==W[0]||Et!==W[1]||er!==W[2]||xr!==W[3])&&(a.stencilOpSeparate(Ft,Et,er,xr),W[0]=Ft,W[1]=Et,W[2]=er,W[3]=xr),kr=X[0],fr=X[1],Yr=X[2],Or=X[3],(kr!==Z[0]||fr!==Z[1]||Yr!==Z[2]||Or!==Z[3])&&(a.stencilOpSeparate(kr,fr,Yr,Or),Z[0]=kr,Z[1]=fr,Z[2]=Yr,Z[3]=Or),ri=l.scissor_enable,ri!==u.scissor_enable&&(ri?a.enable(3089):a.disable(3089),u.scissor_enable=ri),Tr=H[0],Mr=H[1],Gr=H[2],_i=H[3],(Tr!==q[0]||Mr!==q[1]||Gr!==q[2]||_i!==q[3])&&(a.scissor(Tr,Mr,Gr,_i),q[0]=Tr,q[1]=Mr,q[2]=Gr,q[3]=_i),Fi=Q[0],wr=Q[1],Cr=Q[2],Ut=Q[3],(Fi!==N[0]||wr!==N[1]||Cr!==N[2]||Ut!==N[3])&&(a.viewport(Fi,wr,Cr,Ut),N[0]=Fi,N[1]=wr,N[2]=Cr,N[3]=Ut),u.dirty=!1}Ee=u.profile,Ee&&(we=performance.now(),r.count+=le),oe=d.frag,Y=d.vert,ne=d.program(Y,oe),a.useProgram(ne.program),v.setVAO(null),ye=ne.id,V=ze[ye],V?V.call(this,ke,le):(V=ze[ye]=n(ne),V.call(this,ke,le)),v.setVAO(null),Ee&&(r.cpuTime+=performance.now()-we)}}}});var eQe=K((Bii,QJe)=>{"use strict";var Oyr=WJe(),Nyr=YJe(),Vyr=ZJe(),Uyr=JJe();QJe.exports={"30680f8f6712ef1af5cf7547e0af35b036fb300c67b07967cf448492ff4de4d0":Oyr,"3fd666968f3ce90d1c048b7a9aab515f3ce387a5401a10f8b66121c9469d1c0d":Nyr,"453a70fefa48db31713162aeb1ac438cb8579f54504f3b23acf32128df3dfd45":Vyr,a3970baf1d8cac9305ee830c7026550387343d4dde2353dd86a4d082c97d3470:Uyr}});var iQe=K((qii,rQe)=>{"use strict";var tQe=Are(),Gyr=eQe();Object.assign(tQe.reglPrecompiled,Gyr);rQe.exports=tQe});var oQe=K((Oii,aQe)=>{"use strict";var nQe=HJe();nQe.plot=iQe();aQe.exports=nQe});var Tre=K((Nii,cQe)=>{"use strict";var lQe=Os().extendFlat,Hyr=Tu(),sQe=lf(),jyr=Wu(),{hovertemplateAttrs:uQe,templatefallbackAttrs:fQe}=gu(),Wyr=kf().attributes,$yr=lQe({editType:"calc"},jyr("line",{editTypeOverride:"calc"}),{shape:{valType:"enumerated",values:["linear","hspline"],dflt:"linear",editType:"plot"},hovertemplate:uQe({editType:"plot",arrayOk:!1},{keys:["count","probability"]}),hovertemplatefallback:fQe({editType:"plot"})});cQe.exports={domain:Wyr({name:"parcats",trace:!0,editType:"calc"}),hoverinfo:lQe({},Hyr.hoverinfo,{flags:["count","probability"],editType:"plot",arrayOk:!1}),hoveron:{valType:"enumerated",values:["category","color","dimension"],dflt:"category",editType:"plot"},hovertemplate:uQe({editType:"plot",arrayOk:!1},{keys:["count","probability","category","categorycount","colorcount","bandcolorcount"]}),hovertemplatefallback:fQe({editType:"plot"}),arrangement:{valType:"enumerated",values:["perpendicular","freeform","fixed"],dflt:"perpendicular",editType:"plot"},bundlecolors:{valType:"boolean",dflt:!0,editType:"plot"},sortpaths:{valType:"enumerated",values:["forward","backward"],dflt:"forward",editType:"plot"},labelfont:sQe({editType:"calc"}),tickfont:sQe({autoShadowDflt:!0,editType:"calc"}),dimensions:{_isLinkedToArray:"dimension",label:{valType:"string",editType:"calc"},categoryorder:{valType:"enumerated",values:["trace","category ascending","category descending","array"],dflt:"trace",editType:"calc"},categoryarray:{valType:"data_array",editType:"calc"},ticktext:{valType:"data_array",editType:"calc"},values:{valType:"data_array",dflt:[],editType:"calc"},displayindex:{valType:"integer",editType:"calc"},editType:"calc",visible:{valType:"boolean",dflt:!0,editType:"calc"}},line:$yr,counts:{valType:"number",min:0,dflt:1,arrayOk:!0,editType:"calc"},customdata:void 0,hoverlabel:void 0,ids:void 0,legend:void 0,legendgroup:void 0,legendrank:void 0,opacity:void 0,selectedpoints:void 0,showlegend:void 0}});var pQe=K((Vii,dQe)=>{"use strict";var y5=St(),Yyr=Kh().hasColorscale,Xyr=xh(),Zyr=kf().defaults,Kyr=A0(),hQe=Tre(),Jyr=OB(),Qyr=Yh().isTypedArraySpec;function egr(e,t,r,i,n){n("line.shape"),n("line.hovertemplate"),n("line.hovertemplatefallback");var a=n("line.color",i.colorway[0]);if(Yyr(e,"line")&&y5.isArrayOrTypedArray(a)){if(a.length)return n("line.colorscale"),Xyr(e,t,i,n,{prefix:"line.",cLetter:"c"}),a.length;t.line.color=r}return 1/0}function tgr(e,t){function r(u,f){return y5.coerce(e,t,hQe.dimensions,u,f)}var i=r("values"),n=r("visible");if(i&&i.length||(n=t.visible=!1),n){r("label"),r("displayindex",t._index);var a=e.categoryarray,o=y5.isArrayOrTypedArray(a)&&a.length>0||Qyr(a),s;o&&(s="array");var l=r("categoryorder",s);l==="array"?(r("categoryarray"),r("ticktext")):(delete e.categoryarray,delete e.ticktext),!o&&l==="array"&&(t.categoryorder="trace")}}dQe.exports=function(t,r,i,n){function a(u,f){return y5.coerce(t,r,hQe,u,f)}var o=Kyr(t,r,{name:"dimensions",handleItemDefaults:tgr}),s=egr(t,r,i,n,a);Zyr(r,n,a),(!Array.isArray(o)||!o.length)&&(r.visible=!1),Jyr(r,o,"values",s),a("hoveron"),a("hovertemplate"),a("hovertemplatefallback"),a("arrangement"),a("bundlecolors"),a("sortpaths"),a("counts");var l=n.font;y5.coerceFont(a,"labelfont",l,{overrideDflt:{size:Math.round(l.size)}}),y5.coerceFont(a,"tickfont",l,{autoShadowDflt:!0,overrideDflt:{size:Math.round(l.size/1.2)}})}});var mQe=K((Uii,vQe)=>{"use strict";var rgr=Lm().wrap,igr=Kh().hasColorscale,ngr=T0(),agr=pG(),ogr=Is(),vk=St(),sgr=Hs();vQe.exports=function(t,r){var i=vk.filterVisible(r.dimensions);if(i.length===0)return[];var n=i.map(function(g){var E;if(g.categoryorder==="trace")E=null;else if(g.categoryorder==="array")E=g.categoryarray;else{E=agr(g.values);for(var S=!0,C=0;C=e.length||t[e[r]]!==void 0)return!1;t[e[r]]=!0}return!0}});var MQe=K((Gii,TQe)=>{"use strict";var vu=No(),ggr=(E_(),or(S_)).interpolateNumber,xgr=qP(),Mre=wo(),gk=Gf(),rx=St(),mk=rx.strTranslate,yQe=Is(),bgr=Du();function _gr(e,t,r,i){var n=t._context.staticPlot,a=e.map(Bgr.bind(0,t,r)),o=i.selectAll("g.parcatslayer").data([null]);o.enter().append("g").attr("class","parcatslayer").style("pointer-events",n?"none":"all");var s=o.selectAll("g.trace.parcats").data(a,Yy),l=s.enter().append("g").attr("class","trace parcats");s.attr("transform",function(w){return mk(w.x,w.y)}),l.append("g").attr("class","paths");var u=s.select("g.paths"),f=u.selectAll("path.path").data(function(w){return w.paths},Yy);f.attr("fill",function(w){return w.model.color});var c=f.enter().append("path").attr("class","path").attr("stroke-opacity",0).attr("fill",function(w){return w.model.color}).attr("fill-opacity",0);kre(c),f.attr("d",function(w){return w.svgD}),c.empty()||f.sort(Sre),f.exit().remove(),f.on("mouseover",Agr).on("mouseout",Tgr).on("click",Mgr),l.append("g").attr("class","dimensions");var h=s.select("g.dimensions"),d=h.selectAll("g.dimension").data(function(w){return w.dimensions},Yy);d.enter().append("g").attr("class","dimension"),d.attr("transform",function(w){return mk(w.x,0)}),d.exit().remove();var p=d.selectAll("g.category").data(function(w){return w.categories},Yy),v=p.enter().append("g").attr("class","category");p.attr("transform",function(w){return mk(0,w.y)}),v.append("rect").attr("class","catrect").attr("pointer-events","none"),p.select("rect.catrect").attr("fill","none").attr("width",function(w){return w.width}).attr("height",function(w){return w.height}),xQe(v);var y=p.selectAll("rect.bandrect").data(function(w){return w.bands},Yy);y.each(function(){rx.raiseToTop(this)}),y.attr("fill",function(w){return w.color});var m=y.enter().append("rect").attr("class","bandrect").attr("stroke-opacity",0).attr("fill",function(w){return w.color}).attr("fill-opacity",0);y.attr("fill",function(w){return w.color}).attr("width",function(w){return w.width}).attr("height",function(w){return w.height}).attr("y",function(w){return w.y}).attr("cursor",function(w){return w.parcatsViewModel.arrangement==="fixed"?"default":w.parcatsViewModel.arrangement==="perpendicular"?"ns-resize":"move"}),Dre(m),y.exit().remove(),v.append("text").attr("class","catlabel").attr("pointer-events","none"),p.select("text.catlabel").attr("text-anchor",function(w){return yk(w)?"start":"end"}).attr("alignment-baseline","middle").style("fill","rgb(0, 0, 0)").attr("x",function(w){return yk(w)?w.width+5:-5}).attr("y",function(w){return w.height/2}).text(function(w){return w.model.categoryLabel}).each(function(w){yQe.font(vu.select(this),w.parcatsViewModel.categorylabelfont),bgr.convertToTspans(vu.select(this),t)}),v.append("text").attr("class","dimlabel"),p.select("text.dimlabel").attr("text-anchor","middle").attr("alignment-baseline","baseline").attr("cursor",function(w){return w.parcatsViewModel.arrangement==="fixed"?"default":"ew-resize"}).attr("x",function(w){return w.width/2}).attr("y",-5).text(function(w,_){return _===0?w.parcatsViewModel.model.dimensions[w.model.dimensionInd].dimensionLabel:null}).each(function(w){yQe.font(vu.select(this),w.parcatsViewModel.labelfont)}),p.selectAll("rect.bandrect").on("mouseover",Lgr).on("mouseout",Pgr),p.exit().remove(),d.call(vu.behavior.drag().origin(function(w){return{x:w.x,y:0}}).on("dragstart",zgr).on("drag",Igr).on("dragend",Rgr)),s.each(function(w){w.traceSelection=vu.select(this),w.pathSelection=vu.select(this).selectAll("g.paths").selectAll("path.path"),w.dimensionSelection=vu.select(this).selectAll("g.dimensions").selectAll("g.dimension")}),s.exit().remove()}TQe.exports=function(e,t,r,i){_gr(r,e,i,t)};function Yy(e){return e.key}function yk(e){var t=e.parcatsViewModel.dimensions.length,r=e.parcatsViewModel.dimensions[t-1].model.dimensionInd;return e.model.dimensionInd===r}function Sre(e,t){return e.model.rawColor>t.model.rawColor?1:e.model.rawColorn)return 1;if(i!==n){var a=isNaN(i),o=isNaN(n);if(a!==o)return a?1:-1}}return e.length-t.length}function Agr(e){if(!e.parcatsViewModel.dragDimension&&e.parcatsViewModel.hoverinfoItems.indexOf("skip")===-1){rx.raiseToTop(this),Cre(vu.select(this));var t=xk(e),r=Ere(e);if(e.parcatsViewModel.graphDiv.emit("plotly_hover",{points:t,event:vu.event,constraints:r}),e.parcatsViewModel.hoverinfoItems.indexOf("none")===-1){var i=vu.mouse(this)[0],n=e.parcatsViewModel.graphDiv,a=e.parcatsViewModel.trace,o=n._fullLayout,s=o._paperdiv.node().getBoundingClientRect(),l=e.parcatsViewModel.graphDiv.getBoundingClientRect(),u,f,c;for(c=0;c"),x=vu.mouse(n)[0];gk.loneHover({trace:a,x:p-s.left+l.left,y:v-s.top+l.top,text:M,color:e.model.color,borderColor:"black",fontFamily:'Monaco, "Courier New", monospace',fontSize:10,fontColor:y,idealAlign:xMre.mostReadable(t.model.color)).attr("stroke-width",.3)}function Sgr(e){e.select("rect.catrect").attr("stroke","black").attr("stroke-width",2.5)}function xQe(e){e.select("rect.catrect").attr("stroke","black").attr("stroke-width",1).attr("stroke-opacity",1)}function Egr(e){e.attr("stroke","black").attr("stroke-width",1.5)}function Dre(e){e.attr("stroke","black").attr("stroke-width",.2).attr("stroke-opacity",1).attr("fill-opacity",1)}function e7(e){var t=e.parcatsViewModel.pathSelection,r=e.categoryViewModel.model.dimensionInd,i=e.categoryViewModel.model.categoryInd;return t.filter(function(n){return n.model.categoryInds[r]===i&&n.model.color===e.color})}function kgr(e){var t=vu.select(e.parentNode).selectAll("rect.bandrect");t.each(function(r){var i=e7(r);Cre(i),i.each(function(){rx.raiseToTop(this)})}),Sgr(vu.select(e.parentNode))}function Cgr(e){var t=vu.select(e).datum(),r=e7(t);Cre(r),r.each(function(){rx.raiseToTop(this)}),vu.select(e.parentNode).selectAll("rect.bandrect").filter(function(i){return i.color===t.color}).each(function(){rx.raiseToTop(this),Egr(vu.select(this))})}function Fre(e,t,r){var i=vu.select(e).datum(),n=i.categoryViewModel.model,a=i.parcatsViewModel.graphDiv,o=vu.select(e.parentNode).selectAll("rect.bandrect"),s=[];o.each(function(u){var f=e7(u);f.each(function(c){Array.prototype.push.apply(s,xk(c))})});var l={};l[n.dimensionInd]=n.categoryValue,a.emit(t,{points:s,event:r,constraints:l})}function Lre(e,t,r){var i=vu.select(e).datum(),n=i.categoryViewModel.model,a=i.parcatsViewModel.graphDiv,o=e7(i),s=[];o.each(function(u){Array.prototype.push.apply(s,xk(u))});var l={};l[n.dimensionInd]=n.categoryValue,i.rawColor!==void 0&&(l.color=i.rawColor),a.emit(t,{points:s,event:r,constraints:l})}function bQe(e,t,r){e._fullLayout._calcInverseTransform(e);var i=e._fullLayout._invScaleX,n=e._fullLayout._invScaleY,a=vu.select(r.parentNode).select("rect.catrect"),o=a.node().getBoundingClientRect(),s=a.datum(),l=s.parcatsViewModel,u=l.model.dimensions[s.model.dimensionInd],f=l.trace,c=o.top+o.height/2,h,d;l.dimensions.length>1&&u.displayInd===l.dimensions.length-1?(h=o.left,d="left"):(h=o.left+o.width,d="right");var p=s.model.count,v=s.model.categoryLabel,y=p/s.parcatsViewModel.model.count,m={countLabel:p,categoryLabel:v,probabilityLabel:y.toFixed(3)},w=[];s.parcatsViewModel.hoverinfoItems.indexOf("count")!==-1&&w.push(["Count:",m.countLabel].join(" ")),s.parcatsViewModel.hoverinfoItems.indexOf("probability")!==-1&&w.push(["P("+m.categoryLabel+"):",m.probabilityLabel].join(" "));var _=w.join("
");return{trace:f,x:i*(h-t.left),y:n*(c-t.top),text:_,color:"lightgray",borderColor:"black",fontFamily:'Monaco, "Courier New", monospace',fontSize:12,fontColor:"black",idealAlign:d,hovertemplate:f.hovertemplate,hovertemplateLabels:m,eventData:[{data:f._input,fullData:f,count:p,category:v,probability:y}]}}function Dgr(e,t,r){var i=[];return vu.select(r.parentNode.parentNode).selectAll("g.category").select("rect.catrect").each(function(){var n=this;i.push(bQe(e,t,n))}),i}function Fgr(e,t,r){e._fullLayout._calcInverseTransform(e);var i=e._fullLayout._invScaleX,n=e._fullLayout._invScaleY,a=r.getBoundingClientRect(),o=vu.select(r).datum(),s=o.categoryViewModel,l=s.parcatsViewModel,u=l.model.dimensions[s.model.dimensionInd],f=l.trace,c=a.y+a.height/2,h,d;l.dimensions.length>1&&u.displayInd===l.dimensions.length-1?(h=a.left,d="left"):(h=a.left+a.width,d="right");var p=s.model.categoryLabel,v=o.parcatsViewModel.model.count,y=0;o.categoryViewModel.bands.forEach(function(E){E.color===o.color&&(y+=E.count)});var m=s.model.count,w=0;l.pathSelection.each(function(E){E.model.color===o.color&&(w+=E.model.count)});var _=y/v,b=y/w,M=y/m,x={countLabel:y,categoryLabel:p,probabilityLabel:_.toFixed(3)},T=[];s.parcatsViewModel.hoverinfoItems.indexOf("count")!==-1&&T.push(["Count:",x.countLabel].join(" ")),s.parcatsViewModel.hoverinfoItems.indexOf("probability")!==-1&&(T.push("P(color \u2229 "+p+"): "+x.probabilityLabel),T.push("P("+p+" | color): "+b.toFixed(3)),T.push("P(color | "+p+"): "+M.toFixed(3)));var A=T.join("
"),g=Mre.mostReadable(o.color);return{trace:f,x:i*(h-t.left),y:n*(c-t.top),text:A,color:o.color,borderColor:"black",fontFamily:'Monaco, "Courier New", monospace',fontColor:g,fontSize:10,idealAlign:d,hovertemplate:f.hovertemplate,hovertemplateLabels:x,eventData:[{data:f._input,fullData:f,category:p,count:v,probability:_,categorycount:m,colorcount:w,bandcolorcount:y}]}}function Lgr(e){if(!e.parcatsViewModel.dragDimension&&e.parcatsViewModel.hoverinfoItems.indexOf("skip")===-1){var t=vu.mouse(this)[1];if(t<-1)return;var r=e.parcatsViewModel.graphDiv,i=r._fullLayout,n=i._paperdiv.node().getBoundingClientRect(),a=e.parcatsViewModel.hoveron,o=this;if(a==="color"?(Cgr(o),Lre(o,"plotly_hover",vu.event)):(kgr(o),Fre(o,"plotly_hover",vu.event)),e.parcatsViewModel.hoverinfoItems.indexOf("none")===-1){var s;a==="category"?s=bQe(r,n,o):a==="color"?s=Fgr(r,n,o):a==="dimension"&&(s=Dgr(r,n,o)),s&&gk.loneHover(s,{container:i._hoverlayer.node(),outerContainer:i._paper.node(),gd:r})}}}function Pgr(e){var t=e.parcatsViewModel;if(!t.dragDimension&&(kre(t.pathSelection),xQe(t.dimensionSelection.selectAll("g.category")),Dre(t.dimensionSelection.selectAll("g.category").selectAll("rect.bandrect")),gk.loneUnhover(t.graphDiv._fullLayout._hoverlayer.node()),t.pathSelection.sort(Sre),t.hoverinfoItems.indexOf("skip")===-1)){var r=e.parcatsViewModel.hoveron,i=this;r==="color"?Lre(i,"plotly_unhover",vu.event):Fre(i,"plotly_unhover",vu.event)}}function zgr(e){e.parcatsViewModel.arrangement!=="fixed"&&(e.dragDimensionDisplayInd=e.model.displayInd,e.initialDragDimensionDisplayInds=e.parcatsViewModel.model.dimensions.map(function(t){return t.displayInd}),e.dragHasMoved=!1,e.dragCategoryDisplayInd=null,vu.select(this).selectAll("g.category").select("rect.catrect").each(function(t){var r=vu.mouse(this)[0],i=vu.mouse(this)[1];-2<=r&&r<=t.width+2&&-2<=i&&i<=t.height+2&&(e.dragCategoryDisplayInd=t.model.displayInd,e.initialDragCategoryDisplayInds=e.model.categories.map(function(n){return n.displayInd}),t.model.dragY=t.y,rx.raiseToTop(this.parentNode),vu.select(this.parentNode).selectAll("rect.bandrect").each(function(n){n.yf.y+f.height/2&&(a.model.displayInd=f.model.displayInd,f.model.displayInd=s),e.dragCategoryDisplayInd=a.model.displayInd}if(e.dragCategoryDisplayInd===null||e.parcatsViewModel.arrangement==="freeform"){n.model.dragX=vu.event.x;var c=e.parcatsViewModel.dimensions[r],h=e.parcatsViewModel.dimensions[i];c!==void 0&&n.model.dragXh.x&&(n.model.displayInd=h.model.displayInd,h.model.displayInd=e.dragDimensionDisplayInd),e.dragDimensionDisplayInd=n.model.displayInd}zre(e.parcatsViewModel),Pre(e.parcatsViewModel),AQe(e.parcatsViewModel),wQe(e.parcatsViewModel)}}function Rgr(e){if(e.parcatsViewModel.arrangement!=="fixed"&&e.dragDimensionDisplayInd!==null){vu.select(this).selectAll("text").attr("font-weight","normal");var t={},r=_Qe(e.parcatsViewModel),i=e.parcatsViewModel.model.dimensions.map(function(h){return h.displayInd}),n=e.initialDragDimensionDisplayInds.some(function(h,d){return h!==i[d]});n&&i.forEach(function(h,d){var p=e.parcatsViewModel.model.dimensions[d].containerInd;t["dimensions["+p+"].displayindex"]=h});var a=!1;if(e.dragCategoryDisplayInd!==null){var o=e.model.categories.map(function(h){return h.displayInd});if(a=e.initialDragCategoryDisplayInds.some(function(h,d){return h!==o[d]}),a){var s=e.model.categories.slice().sort(function(h,d){return h.displayInd-d.displayInd}),l=s.map(function(h){return h.categoryValue}),u=s.map(function(h){return h.categoryLabel});t["dimensions["+e.model.containerInd+"].categoryarray"]=[l],t["dimensions["+e.model.containerInd+"].ticktext"]=[u],t["dimensions["+e.model.containerInd+"].categoryorder"]="array"}}if(e.parcatsViewModel.hoverinfoItems.indexOf("skip")===-1&&!e.dragHasMoved&&e.potentialClickBand&&(e.parcatsViewModel.hoveron==="color"?Lre(e.potentialClickBand,"plotly_click",vu.event.sourceEvent):Fre(e.potentialClickBand,"plotly_click",vu.event.sourceEvent)),e.model.dragX=null,e.dragCategoryDisplayInd!==null){var f=e.parcatsViewModel.dimensions[e.dragDimensionDisplayInd].categories[e.dragCategoryDisplayInd];f.model.dragY=null,e.dragCategoryDisplayInd=null}e.dragDimensionDisplayInd=null,e.parcatsViewModel.dragDimension=null,e.dragHasMoved=null,e.potentialClickBand=null,zre(e.parcatsViewModel),Pre(e.parcatsViewModel);var c=vu.transition().duration(300).ease("cubic-in-out");c.each(function(){AQe(e.parcatsViewModel,!0),wQe(e.parcatsViewModel,!0)}).each("end",function(){(n||a)&&xgr.restyle(e.parcatsViewModel.graphDiv,t,[r])})}}function _Qe(e){for(var t,r=e.graphDiv._fullData,i=0;i=0;l--)u+="C"+o[l]+","+(t[l+1]+i)+" "+a[l]+","+(t[l]+i)+" "+(e[l]+r[l])+","+(t[l]+i),u+="l-"+r[l]+",0 ";return u+="Z",u}function Pre(e){var t=e.dimensions,r=e.model,i=t.map(function(k){return k.categories.map(function(D){return D.y})}),n=e.model.dimensions.map(function(k){return k.categories.map(function(D){return D.displayInd})}),a=e.model.dimensions.map(function(k){return k.displayInd}),o=e.dimensions.map(function(k){return k.model.dimensionInd}),s=t.map(function(k){return k.x}),l=t.map(function(k){return k.width}),u=[];for(var f in r.paths)r.paths.hasOwnProperty(f)&&u.push(r.paths[f]);function c(k){var D=k.categoryInds.map(function(P,I){return n[I][P]}),F=o.map(function(P){return D[P]});return F}u.sort(function(k,D){var F=c(k),P=c(D);return e.sortpaths==="backward"&&(F.reverse(),P.reverse()),F.push(k.valueInds[0]),P.push(D.valueInds[0]),e.bundlecolors&&(F.unshift(k.rawColor),P.unshift(D.rawColor)),wgr(F,P)});for(var h=new Array(u.length),d=t[0].model.count,p=t[0].categories.map(function(k){return k.height}).reduce(function(k,D){return k+D}),v=0;v0?m=p*(y.count/d):m=0;for(var w=new Array(i.length),_=0;_1?o=(e.width-2*r-i)/(n-1):o=0,s=r,l=s+o*a;var u=[],f=e.model.maxCats,c=t.categories.length,h=8,d=t.count,p=e.height-h*(f-1),v,y,m,w,_,b=(f-c)*h/2,M=t.categories.map(function(x){return{displayInd:x.displayInd,categoryInd:x.categoryInd}});for(M.sort(function(x,T){return x.displayInd-T.displayInd}),_=0;_0?v=y.count/d*p:v=0,m={key:y.valueInds[0],model:y,width:i,height:v,y:y.dragY!==null?y.dragY:b,bands:[],parcatsViewModel:e},b=b+v+h,u.push(m);return{key:t.dimensionInd,x:t.dragX!==null?t.dragX:l,y:0,width:i,model:t,categories:u,parcatsViewModel:e,dragCategoryDisplayInd:null,dragDimensionDisplayInd:null,initialDragDimensionDisplayInds:null,initialDragCategoryDisplayInds:null,dragHasMoved:null,potentialClickBand:null}}});var Ire=K((Hii,SQe)=>{"use strict";var Ogr=MQe();SQe.exports=function(t,r,i,n){var a=t._fullLayout,o=a._paper,s=a._size;Ogr(t,o,r,{width:s.w,height:s.h,margin:{t:s.t,r:s.r,b:s.b,l:s.l}},i,n)}});var kQe=K(t7=>{"use strict";var Ngr=Zh().getModuleCalcData,Vgr=Ire(),EQe="parcats";t7.name=EQe;t7.plot=function(e,t,r,i){var n=Ngr(e.calcdata,EQe);if(n.length){var a=n[0];Vgr(e,a,r,i)}};t7.clean=function(e,t,r,i){var n=i._has&&i._has("parcats"),a=t._has&&t._has("parcats");n&&!a&&i._paperdiv.selectAll(".parcats").remove()}});var DQe=K((Wii,CQe)=>{"use strict";CQe.exports={attributes:Tre(),supplyDefaults:pQe(),calc:mQe(),plot:Ire(),colorbar:{container:"line",min:"cmin",max:"cmax"},moduleType:"trace",name:"parcats",basePlotModule:kQe(),categories:["noOpacity"],meta:{}}});var LQe=K(($ii,FQe)=>{"use strict";FQe.exports=DQe()});var zQe=K((Yii,PQe)=>{"use strict";PQe.exports={version:8,name:"orto",metadata:{"maputnik:renderer":"mlgljs"},center:[1.537786,41.837539],zoom:12,bearing:0,pitch:0,light:{anchor:"viewport",color:"white",intensity:.4,position:[1.15,45,30]},sources:{ortoEsri:{type:"raster",tiles:["https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}"],tileSize:256,maxzoom:18,attribution:"ESRI © ESRI"},ortoInstaMaps:{type:"raster",tiles:["https://tilemaps.icgc.cat/mapfactory/wmts/orto_8_12/CAT3857/{z}/{x}/{y}.png"],tileSize:256,maxzoom:13},ortoICGC:{type:"raster",tiles:["https://geoserveis.icgc.cat/icc_mapesmultibase/noutm/wmts/orto/GRID3857/{z}/{x}/{y}.jpeg"],tileSize:256,minzoom:13.1,maxzoom:20},openmaptiles:{type:"vector",url:"https://geoserveis.icgc.cat/contextmaps/basemap.json"}},sprite:"https://geoserveis.icgc.cat/contextmaps/sprites/sprite@1",glyphs:"https://geoserveis.icgc.cat/contextmaps/glyphs/{fontstack}/{range}.pbf",layers:[{id:"background",type:"background",paint:{"background-color":"#F4F9F4"}},{id:"ortoEsri",type:"raster",source:"ortoEsri",maxzoom:16,layout:{visibility:"visible"}},{id:"ortoICGC",type:"raster",source:"ortoICGC",minzoom:13.1,maxzoom:19,layout:{visibility:"visible"}},{id:"ortoInstaMaps",type:"raster",source:"ortoInstaMaps",maxzoom:13,layout:{visibility:"visible"}},{id:"waterway_tunnel",type:"line",source:"openmaptiles","source-layer":"waterway",minzoom:14,filter:["all",["in","class","river","stream","canal"],["==","brunnel","tunnel"]],layout:{"line-cap":"round"},paint:{"line-color":"#a0c8f0","line-width":{base:1.3,stops:[[13,.5],[20,6]]},"line-dasharray":[2,4]}},{id:"waterway-other",type:"line",metadata:{"mapbox:group":"1444849382550.77"},source:"openmaptiles","source-layer":"waterway",filter:["!in","class","canal","river","stream"],layout:{"line-cap":"round"},paint:{"line-color":"#a0c8f0","line-width":{base:1.3,stops:[[13,.5],[20,2]]}}},{id:"waterway-stream-canal",type:"line",metadata:{"mapbox:group":"1444849382550.77"},source:"openmaptiles","source-layer":"waterway",filter:["all",["in","class","canal","stream"],["!=","brunnel","tunnel"]],layout:{"line-cap":"round"},paint:{"line-color":"#a0c8f0","line-width":{base:1.3,stops:[[13,.5],[20,6]]}}},{id:"waterway-river",type:"line",metadata:{"mapbox:group":"1444849382550.77"},source:"openmaptiles","source-layer":"waterway",filter:["all",["==","class","river"],["!=","brunnel","tunnel"]],layout:{"line-cap":"round"},paint:{"line-color":"#a0c8f0","line-width":{base:1.2,stops:[[10,.8],[20,4]]},"line-opacity":.5}},{id:"water-offset",type:"fill",metadata:{"mapbox:group":"1444849382550.77"},source:"openmaptiles","source-layer":"water",maxzoom:8,filter:["==","$type","Polygon"],layout:{visibility:"visible"},paint:{"fill-opacity":0,"fill-color":"#a0c8f0","fill-translate":{base:1,stops:[[6,[2,0]],[8,[0,0]]]}}},{id:"water",type:"fill",metadata:{"mapbox:group":"1444849382550.77"},source:"openmaptiles","source-layer":"water",layout:{visibility:"visible"},paint:{"fill-color":"hsl(210, 67%, 85%)","fill-opacity":0}},{id:"water-pattern",type:"fill",metadata:{"mapbox:group":"1444849382550.77"},source:"openmaptiles","source-layer":"water",layout:{visibility:"visible"},paint:{"fill-translate":[0,2.5],"fill-pattern":"wave","fill-opacity":1}},{id:"landcover-ice-shelf",type:"fill",metadata:{"mapbox:group":"1444849382550.77"},source:"openmaptiles","source-layer":"landcover",filter:["==","subclass","ice_shelf"],layout:{visibility:"visible"},paint:{"fill-color":"#fff","fill-opacity":{base:1,stops:[[0,.9],[10,.3]]}}},{id:"tunnel-service-track-casing",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["in","class","service","track"]],layout:{"line-join":"round"},paint:{"line-color":"#cfcdca","line-dasharray":[.5,.25],"line-width":{base:1.2,stops:[[15,1],[16,4],[20,11]]}}},{id:"tunnel-minor-casing",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["==","class","minor"]],layout:{"line-join":"round"},paint:{"line-color":"#cfcdca","line-opacity":{stops:[[12,0],[12.5,1]]},"line-width":{base:1.2,stops:[[12,.5],[13,1],[14,4],[20,15]]}}},{id:"tunnel-secondary-tertiary-casing",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["in","class","secondary","tertiary"]],layout:{"line-join":"round"},paint:{"line-color":"#e9ac77","line-opacity":1,"line-width":{base:1.2,stops:[[8,1.5],[20,17]]}}},{id:"tunnel-trunk-primary-casing",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["in","class","primary","trunk"]],layout:{"line-join":"round"},paint:{"line-color":"#e9ac77","line-width":{base:1.2,stops:[[5,.4],[6,.6],[7,1.5],[20,22]]},"line-opacity":.7}},{id:"tunnel-motorway-casing",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["==","class","motorway"]],layout:{"line-join":"round",visibility:"visible"},paint:{"line-color":"#e9ac77","line-dasharray":[.5,.25],"line-width":{base:1.2,stops:[[5,.4],[6,.6],[7,1.5],[20,22]]},"line-opacity":.5}},{id:"tunnel-path",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["==","brunnel","tunnel"],["==","class","path"]]],paint:{"line-color":"#cba","line-dasharray":[1.5,.75],"line-width":{base:1.2,stops:[[15,1.2],[20,4]]}}},{id:"tunnel-service-track",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["in","class","service","track"]],layout:{"line-join":"round"},paint:{"line-color":"#fff","line-width":{base:1.2,stops:[[15.5,0],[16,2],[20,7.5]]}}},{id:"tunnel-minor",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["==","class","minor_road"]],layout:{"line-join":"round"},paint:{"line-color":"#fff","line-opacity":1,"line-width":{base:1.2,stops:[[13.5,0],[14,2.5],[20,11.5]]}}},{id:"tunnel-secondary-tertiary",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["in","class","secondary","tertiary"]],layout:{"line-join":"round"},paint:{"line-color":"#fff4c6","line-width":{base:1.2,stops:[[6.5,0],[7,.5],[20,10]]}}},{id:"tunnel-trunk-primary",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["in","class","primary","trunk"]],layout:{"line-join":"round"},paint:{"line-color":"#fff4c6","line-width":{base:1.2,stops:[[6.5,0],[7,.5],[20,18]]},"line-opacity":.5}},{id:"tunnel-motorway",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["==","class","motorway"]],layout:{"line-join":"round",visibility:"visible"},paint:{"line-color":"#ffdaa6","line-width":{base:1.2,stops:[[6.5,0],[7,.5],[20,18]]},"line-opacity":.5}},{id:"tunnel-railway",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["==","class","rail"]],paint:{"line-color":"#bbb","line-width":{base:1.4,stops:[[14,.4],[15,.75],[20,2]]},"line-dasharray":[2,2]}},{id:"ferry",type:"line",source:"openmaptiles","source-layer":"transportation",filter:["all",["in","class","ferry"]],layout:{"line-join":"round",visibility:"visible"},paint:{"line-color":"rgba(108, 159, 182, 1)","line-width":1.1,"line-dasharray":[2,2]}},{id:"aeroway-taxiway-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"aeroway",minzoom:12,filter:["all",["in","class","taxiway"]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"rgba(153, 153, 153, 1)","line-width":{base:1.5,stops:[[11,2],[17,12]]},"line-opacity":1}},{id:"aeroway-runway-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"aeroway",minzoom:12,filter:["all",["in","class","runway"]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"rgba(153, 153, 153, 1)","line-width":{base:1.5,stops:[[11,5],[17,55]]},"line-opacity":1}},{id:"aeroway-taxiway",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"aeroway",minzoom:4,filter:["all",["in","class","taxiway"],["==","$type","LineString"]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"rgba(255, 255, 255, 1)","line-width":{base:1.5,stops:[[11,1],[17,10]]},"line-opacity":{base:1,stops:[[11,0],[12,1]]}}},{id:"aeroway-runway",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"aeroway",minzoom:4,filter:["all",["in","class","runway"],["==","$type","LineString"]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"rgba(255, 255, 255, 1)","line-width":{base:1.5,stops:[[11,4],[17,50]]},"line-opacity":{base:1,stops:[[11,0],[12,1]]}}},{id:"highway-motorway-link-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",minzoom:12,filter:["all",["!in","brunnel","bridge","tunnel"],["==","class","motorway_link"]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"#e9ac77","line-opacity":1,"line-width":{base:1.2,stops:[[12,1],[13,3],[14,4],[20,15]]}}},{id:"highway-link-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",minzoom:13,filter:["all",["!in","brunnel","bridge","tunnel"],["in","class","primary_link","secondary_link","tertiary_link","trunk_link"]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"#e9ac77","line-opacity":1,"line-width":{base:1.2,stops:[[12,1],[13,3],[14,4],[20,15]]}}},{id:"highway-minor-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["!=","brunnel","tunnel"],["in","class","minor","service","track"]]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"#cfcdca","line-opacity":{stops:[[12,0],[12.5,0]]},"line-width":{base:1.2,stops:[[12,.5],[13,1],[14,4],[20,15]]}}},{id:"highway-secondary-tertiary-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["!in","brunnel","bridge","tunnel"],["in","class","secondary","tertiary"]],layout:{"line-cap":"butt","line-join":"round",visibility:"visible"},paint:{"line-color":"#e9ac77","line-opacity":.5,"line-width":{base:1.2,stops:[[8,1.5],[20,17]]}}},{id:"highway-primary-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",minzoom:5,filter:["all",["!in","brunnel","bridge","tunnel"],["in","class","primary"]],layout:{"line-cap":"butt","line-join":"round",visibility:"visible"},paint:{"line-color":"#e9ac77","line-opacity":{stops:[[7,0],[8,.6]]},"line-width":{base:1.2,stops:[[7,0],[8,.6],[9,1.5],[20,22]]}}},{id:"highway-trunk-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",minzoom:5,filter:["all",["!in","brunnel","bridge","tunnel"],["in","class","trunk"]],layout:{"line-cap":"butt","line-join":"round",visibility:"visible"},paint:{"line-color":"#e9ac77","line-opacity":{stops:[[5,0],[6,.5]]},"line-width":{base:1.2,stops:[[5,0],[6,.6],[7,1.5],[20,22]]}}},{id:"highway-motorway-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",minzoom:4,filter:["all",["!in","brunnel","bridge","tunnel"],["==","class","motorway"]],layout:{"line-cap":"butt","line-join":"round",visibility:"visible"},paint:{"line-color":"#e9ac77","line-width":{base:1.2,stops:[[4,0],[5,.4],[6,.6],[7,1.5],[20,22]]},"line-opacity":{stops:[[4,0],[5,.5]]}}},{id:"highway-path",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["!in","brunnel","bridge","tunnel"],["==","class","path"]]],paint:{"line-color":"#cba","line-dasharray":[1.5,.75],"line-width":{base:1.2,stops:[[15,1.2],[20,4]]}}},{id:"highway-motorway-link",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",minzoom:12,filter:["all",["!in","brunnel","bridge","tunnel"],["==","class","motorway_link"]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"#fc8","line-width":{base:1.2,stops:[[12.5,0],[13,1.5],[14,2.5],[20,11.5]]}}},{id:"highway-link",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",minzoom:13,filter:["all",["!in","brunnel","bridge","tunnel"],["in","class","primary_link","secondary_link","tertiary_link","trunk_link"]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"#fea","line-width":{base:1.2,stops:[[12.5,0],[13,1.5],[14,2.5],[20,11.5]]}}},{id:"highway-minor",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["!=","brunnel","tunnel"],["in","class","minor","service","track"]]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"#fff","line-opacity":.5,"line-width":{base:1.2,stops:[[13.5,0],[14,2.5],[20,11.5]]}}},{id:"highway-secondary-tertiary",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["!in","brunnel","bridge","tunnel"],["in","class","secondary","tertiary"]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"#fea","line-width":{base:1.2,stops:[[6.5,0],[8,.5],[20,13]]},"line-opacity":.5}},{id:"highway-primary",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["!in","brunnel","bridge","tunnel"],["in","class","primary"]]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"#fea","line-width":{base:1.2,stops:[[8.5,0],[9,.5],[20,18]]},"line-opacity":0}},{id:"highway-trunk",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["!in","brunnel","bridge","tunnel"],["in","class","trunk"]]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"#fea","line-width":{base:1.2,stops:[[6.5,0],[7,.5],[20,18]]},"line-opacity":.5}},{id:"highway-motorway",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",minzoom:5,filter:["all",["==","$type","LineString"],["all",["!in","brunnel","bridge","tunnel"],["==","class","motorway"]]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"#fc8","line-width":{base:1.2,stops:[[6.5,0],[7,.5],[20,18]]},"line-opacity":.5}},{id:"railway-transit",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["==","class","transit"],["!in","brunnel","tunnel"]]],layout:{visibility:"visible"},paint:{"line-color":"hsla(0, 0%, 73%, 0.77)","line-width":{base:1.4,stops:[[14,.4],[20,1]]}}},{id:"railway-transit-hatching",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["==","class","transit"],["!in","brunnel","tunnel"]]],layout:{visibility:"visible"},paint:{"line-color":"hsla(0, 0%, 73%, 0.68)","line-dasharray":[.2,8],"line-width":{base:1.4,stops:[[14.5,0],[15,2],[20,6]]}}},{id:"railway-service",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["==","class","rail"],["has","service"]]],paint:{"line-color":"hsla(0, 0%, 73%, 0.77)","line-width":{base:1.4,stops:[[14,.4],[20,1]]}}},{id:"railway-service-hatching",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["==","class","rail"],["has","service"]]],layout:{visibility:"visible"},paint:{"line-color":"hsla(0, 0%, 73%, 0.68)","line-dasharray":[.2,8],"line-width":{base:1.4,stops:[[14.5,0],[15,2],[20,6]]}}},{id:"railway",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["!has","service"],["!in","brunnel","bridge","tunnel"],["==","class","rail"]]],paint:{"line-color":"#bbb","line-width":{base:1.4,stops:[[14,.4],[15,.75],[20,2]]}}},{id:"railway-hatching",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["!has","service"],["!in","brunnel","bridge","tunnel"],["==","class","rail"]]],paint:{"line-color":"#bbb","line-dasharray":[.2,8],"line-width":{base:1.4,stops:[[14.5,0],[15,3],[20,8]]}}},{id:"bridge-motorway-link-casing",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["==","class","motorway_link"]],layout:{"line-join":"round"},paint:{"line-color":"#e9ac77","line-opacity":1,"line-width":{base:1.2,stops:[[12,1],[13,3],[14,4],[20,15]]}}},{id:"bridge-link-casing",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["in","class","primary_link","secondary_link","tertiary_link","trunk_link"]],layout:{"line-join":"round"},paint:{"line-color":"#e9ac77","line-opacity":1,"line-width":{base:1.2,stops:[[12,1],[13,3],[14,4],[20,15]]}}},{id:"bridge-secondary-tertiary-casing",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["in","class","secondary","tertiary"]],layout:{"line-join":"round"},paint:{"line-color":"#e9ac77","line-opacity":1,"line-width":{base:1.2,stops:[[8,1.5],[20,28]]}}},{id:"bridge-trunk-primary-casing",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["in","class","primary","trunk"]],layout:{"line-join":"round"},paint:{"line-color":"hsl(28, 76%, 67%)","line-width":{base:1.2,stops:[[5,.4],[6,.6],[7,1.5],[20,26]]}}},{id:"bridge-motorway-casing",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["==","class","motorway"]],layout:{"line-join":"round"},paint:{"line-color":"#e9ac77","line-width":{base:1.2,stops:[[5,.4],[6,.6],[7,1.5],[20,22]]},"line-opacity":.5}},{id:"bridge-path-casing",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["==","brunnel","bridge"],["==","class","path"]]],paint:{"line-color":"#f8f4f0","line-width":{base:1.2,stops:[[15,1.2],[20,18]]}}},{id:"bridge-path",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["==","brunnel","bridge"],["==","class","path"]]],paint:{"line-color":"#cba","line-width":{base:1.2,stops:[[15,1.2],[20,4]]},"line-dasharray":[1.5,.75]}},{id:"bridge-motorway-link",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["==","class","motorway_link"]],layout:{"line-join":"round"},paint:{"line-color":"#fc8","line-width":{base:1.2,stops:[[12.5,0],[13,1.5],[14,2.5],[20,11.5]]}}},{id:"bridge-link",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["in","class","primary_link","secondary_link","tertiary_link","trunk_link"]],layout:{"line-join":"round"},paint:{"line-color":"#fea","line-width":{base:1.2,stops:[[12.5,0],[13,1.5],[14,2.5],[20,11.5]]}}},{id:"bridge-secondary-tertiary",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["in","class","secondary","tertiary"]],layout:{"line-join":"round"},paint:{"line-color":"#fea","line-width":{base:1.2,stops:[[6.5,0],[7,.5],[20,20]]}}},{id:"bridge-trunk-primary",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["in","class","primary","trunk"]],layout:{"line-join":"round"},paint:{"line-color":"#fea","line-width":{base:1.2,stops:[[6.5,0],[7,.5],[20,18]]}}},{id:"bridge-motorway",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["==","class","motorway"]],layout:{"line-join":"round"},paint:{"line-color":"#fc8","line-width":{base:1.2,stops:[[6.5,0],[7,.5],[20,18]]},"line-opacity":.5}},{id:"bridge-railway",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["==","class","rail"]],paint:{"line-color":"#bbb","line-width":{base:1.4,stops:[[14,.4],[15,.75],[20,2]]}}},{id:"bridge-railway-hatching",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["==","class","rail"]],paint:{"line-color":"#bbb","line-dasharray":[.2,8],"line-width":{base:1.4,stops:[[14.5,0],[15,3],[20,8]]}}},{id:"cablecar",type:"line",source:"openmaptiles","source-layer":"transportation",minzoom:13,filter:["==","class","cable_car"],layout:{visibility:"visible","line-cap":"round"},paint:{"line-color":"hsl(0, 0%, 70%)","line-width":{base:1,stops:[[11,1],[19,2.5]]}}},{id:"cablecar-dash",type:"line",source:"openmaptiles","source-layer":"transportation",minzoom:13,filter:["==","class","cable_car"],layout:{visibility:"visible","line-cap":"round"},paint:{"line-color":"hsl(0, 0%, 70%)","line-width":{base:1,stops:[[11,3],[19,5.5]]},"line-dasharray":[2,3]}},{id:"boundary-land-level-4",type:"line",source:"openmaptiles","source-layer":"boundary",filter:["all",[">=","admin_level",4],["<=","admin_level",8],["!=","maritime",1]],layout:{"line-join":"round"},paint:{"line-color":"#9e9cab","line-dasharray":[3,1,1,1],"line-width":{base:1.4,stops:[[4,.4],[5,1],[12,3]]},"line-opacity":.6}},{id:"boundary-land-level-2",type:"line",source:"openmaptiles","source-layer":"boundary",filter:["all",["==","admin_level",2],["!=","maritime",1],["!=","disputed",1]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"hsl(248, 7%, 66%)","line-width":{base:1,stops:[[0,.6],[4,1.4],[5,2],[12,2]]}}},{id:"boundary-land-disputed",type:"line",source:"openmaptiles","source-layer":"boundary",filter:["all",["!=","maritime",1],["==","disputed",1]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"hsl(248, 7%, 70%)","line-dasharray":[1,3],"line-width":{base:1,stops:[[0,.6],[4,1.4],[5,2],[12,8]]}}},{id:"boundary-water",type:"line",source:"openmaptiles","source-layer":"boundary",filter:["all",["in","admin_level",2,4],["==","maritime",1]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"rgba(154, 189, 214, 1)","line-width":{base:1,stops:[[0,.6],[4,1],[5,1],[12,1]]},"line-opacity":{stops:[[6,0],[10,0]]}}},{id:"waterway-name",type:"symbol",source:"openmaptiles","source-layer":"waterway",minzoom:13,filter:["all",["==","$type","LineString"],["has","name"]],layout:{"text-font":["Noto Sans Italic"],"text-size":14,"text-field":"{name:latin} {name:nonlatin}","text-max-width":5,"text-rotation-alignment":"map","symbol-placement":"line","text-letter-spacing":.2,"symbol-spacing":350},paint:{"text-color":"#74aee9","text-halo-width":1.5,"text-halo-color":"rgba(255,255,255,0.7)"}},{id:"water-name-lakeline",type:"symbol",source:"openmaptiles","source-layer":"water_name",filter:["==","$type","LineString"],layout:{"text-font":["Noto Sans Italic"],"text-size":14,"text-field":`{name:latin} {name:nonlatin}`,"text-max-width":5,"text-rotation-alignment":"map","symbol-placement":"line","symbol-spacing":350,"text-letter-spacing":.2},paint:{"text-color":"#74aee9","text-halo-width":1.5,"text-halo-color":"rgba(255,255,255,0.7)"}},{id:"water-name-ocean",type:"symbol",source:"openmaptiles","source-layer":"water_name",filter:["all",["==","$type","Point"],["==","class","ocean"]],layout:{"text-font":["Noto Sans Italic"],"text-size":14,"text-field":"{name:latin}","text-max-width":5,"text-rotation-alignment":"map","symbol-placement":"point","symbol-spacing":350,"text-letter-spacing":.2},paint:{"text-color":"#74aee9","text-halo-width":1.5,"text-halo-color":"rgba(255,255,255,0.7)"}},{id:"water-name-other",type:"symbol",source:"openmaptiles","source-layer":"water_name",filter:["all",["==","$type","Point"],["!in","class","ocean"]],layout:{"text-font":["Noto Sans Italic"],"text-size":{stops:[[0,10],[6,14]]},"text-field":`{name:latin} {name:nonlatin}`,"text-max-width":5,"text-rotation-alignment":"map","symbol-placement":"point","symbol-spacing":350,"text-letter-spacing":.2,visibility:"visible"},paint:{"text-color":"#74aee9","text-halo-width":1.5,"text-halo-color":"rgba(255,255,255,0.7)"}},{id:"poi-level-3",type:"symbol",source:"openmaptiles","source-layer":"poi",minzoom:16,filter:["all",["==","$type","Point"],[">=","rank",25]],layout:{"text-padding":2,"text-font":["Noto Sans Regular"],"text-anchor":"top","icon-image":"{class}_11","text-field":`{name:latin} {name:nonlatin}`,"text-offset":[0,.6],"text-size":12,"text-max-width":9},paint:{"text-halo-blur":.5,"text-color":"#666","text-halo-width":1,"text-halo-color":"#ffffff"}},{id:"poi-level-2",type:"symbol",source:"openmaptiles","source-layer":"poi",minzoom:15,filter:["all",["==","$type","Point"],["<=","rank",24],[">=","rank",15]],layout:{"text-padding":2,"text-font":["Noto Sans Regular"],"text-anchor":"top","icon-image":"{class}_11","text-field":`{name:latin} @@ -2719,10 +2719,10 @@ void main() { {name:nonlatin}`,"text-max-width":8,visibility:"visible"},paint:{"text-color":"rgba(255, 255, 255, 1)","text-halo-width":1.2,"text-halo-color":"rgba(10, 9, 9, 0.8)"}},{id:"place-town",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",filter:["==","class","town"],layout:{"text-font":["Noto Sans Regular"],"text-size":{base:1.2,stops:[[10,14],[15,24]]},"text-field":`{name:latin} {name:nonlatin}`,"text-max-width":8,visibility:"visible"},paint:{"text-color":"rgba(255, 255, 255, 1)","text-halo-width":1.2,"text-halo-color":"rgba(22, 22, 22, 0.8)"}},{id:"place-city",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",filter:["all",["!=","capital",2],["==","class","city"]],layout:{"text-font":["Noto Sans Regular"],"text-size":{base:1.2,stops:[[7,14],[11,24]]},"text-field":`{name:latin} {name:nonlatin}`,"text-max-width":8,visibility:"visible"},paint:{"text-color":"rgba(0, 0, 0, 1)","text-halo-width":1.2,"text-halo-color":"rgba(255,255,255,0.8)"}},{id:"place-city-capital",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",filter:["all",["==","capital",2],["==","class","city"]],layout:{"text-font":["Noto Sans Regular"],"text-size":{base:1.2,stops:[[7,14],[11,24]]},"text-field":`{name:latin} -{name:nonlatin}`,"text-max-width":8,"icon-image":"star_11","text-offset":[.4,0],"icon-size":.8,"text-anchor":"left",visibility:"visible"},paint:{"text-color":"#333","text-halo-width":1.2,"text-halo-color":"rgba(255,255,255,0.8)"}},{id:"place-country-other",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",filter:["all",["==","class","country"],[">=","rank",3],["!has","iso_a2"]],layout:{"text-font":["Noto Sans Italic"],"text-field":"{name:latin}","text-size":{stops:[[3,11],[7,17]]},"text-transform":"uppercase","text-max-width":6.25,visibility:"visible"},paint:{"text-halo-blur":1,"text-color":"#334","text-halo-width":2,"text-halo-color":"rgba(255,255,255,0.8)"}},{id:"place-country-3",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",filter:["all",["==","class","country"],[">=","rank",3],["has","iso_a2"]],layout:{"text-font":["Noto Sans Bold"],"text-field":"{name:latin}","text-size":{stops:[[3,11],[7,17]]},"text-transform":"uppercase","text-max-width":6.25,visibility:"visible"},paint:{"text-halo-blur":1,"text-color":"#334","text-halo-width":2,"text-halo-color":"rgba(255,255,255,0.8)"}},{id:"place-country-2",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",filter:["all",["==","class","country"],["==","rank",2],["has","iso_a2"]],layout:{"text-font":["Noto Sans Bold"],"text-field":"{name:latin}","text-size":{stops:[[2,11],[5,17]]},"text-transform":"uppercase","text-max-width":6.25,visibility:"visible"},paint:{"text-halo-blur":1,"text-color":"#334","text-halo-width":2,"text-halo-color":"rgba(255,255,255,0.8)"}},{id:"place-country-1",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",filter:["all",["==","class","country"],["==","rank",1],["has","iso_a2"]],layout:{"text-font":["Noto Sans Bold"],"text-field":"{name:latin}","text-size":{stops:[[1,11],[4,17]]},"text-transform":"uppercase","text-max-width":6.25,visibility:"visible"},paint:{"text-halo-blur":1,"text-color":"#334","text-halo-width":2,"text-halo-color":"rgba(255,255,255,0.8)"}},{id:"place-continent",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",maxzoom:1,filter:["==","class","continent"],layout:{"text-font":["Noto Sans Bold"],"text-field":"{name:latin}","text-size":14,"text-max-width":6.25,"text-transform":"uppercase",visibility:"visible"},paint:{"text-halo-blur":1,"text-color":"#334","text-halo-width":2,"text-halo-color":"rgba(255,255,255,0.8)"}}],id:"qebnlkra6"}});var kQe=K((Iii,EQe)=>{"use strict";EQe.exports={version:8,name:"orto",metadata:{},center:[1.537786,41.837539],zoom:12,bearing:0,pitch:0,light:{anchor:"viewport",color:"white",intensity:.4,position:[1.15,45,30]},sources:{ortoEsri:{type:"raster",tiles:["https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}"],tileSize:256,maxzoom:18,attribution:"ESRI © ESRI"},ortoInstaMaps:{type:"raster",tiles:["https://tilemaps.icgc.cat/mapfactory/wmts/orto_8_12/CAT3857/{z}/{x}/{y}.png"],tileSize:256,maxzoom:13},ortoICGC:{type:"raster",tiles:["https://geoserveis.icgc.cat/icc_mapesmultibase/noutm/wmts/orto/GRID3857/{z}/{x}/{y}.jpeg"],tileSize:256,minzoom:13.1,maxzoom:20},openmaptiles:{type:"vector",url:"https://geoserveis.icgc.cat/contextmaps/basemap.json"}},sprite:"https://geoserveis.icgc.cat/contextmaps/sprites/sprite@1",glyphs:"https://geoserveis.icgc.cat/contextmaps/glyphs/{fontstack}/{range}.pbf",layers:[{id:"background",type:"background",paint:{"background-color":"#F4F9F4"}},{id:"ortoEsri",type:"raster",source:"ortoEsri",maxzoom:16,layout:{visibility:"visible"}},{id:"ortoICGC",type:"raster",source:"ortoICGC",minzoom:13.1,maxzoom:19,layout:{visibility:"visible"}},{id:"ortoInstaMaps",type:"raster",source:"ortoInstaMaps",maxzoom:13,layout:{visibility:"visible"}}]}});var rx=K((Rii,PQe)=>{"use strict";var Dgr=(Qx(),ar(Jx)).default,Fgr=SQe(),Lgr=kQe(),Pgr='\xA9 OpenStreetMap contributors',CQe="https://basemaps.cartocdn.com/gl/positron-gl-style/style.json",DQe="https://basemaps.cartocdn.com/gl/dark-matter-gl-style/style.json",ZB="https://basemaps.cartocdn.com/gl/voyager-gl-style/style.json",zgr="https://basemaps.cartocdn.com/gl/positron-nolabels-gl-style/style.json",Igr="https://basemaps.cartocdn.com/gl/dark-matter-nolabels-gl-style/style.json",Rgr="https://basemaps.cartocdn.com/gl/voyager-nolabels-gl-style/style.json",LQe={basic:ZB,streets:ZB,outdoors:ZB,light:CQe,dark:DQe,satellite:Lgr,"satellite-streets":Fgr,"open-street-map":{id:"osm",version:8,sources:{"plotly-osm-tiles":{type:"raster",attribution:Pgr,tiles:["https://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":CQe,"carto-darkmatter":DQe,"carto-voyager":ZB,"carto-positron-nolabels":zgr,"carto-darkmatter-nolabels":Igr,"carto-voyager-nolabels":Rgr},FQe=Dgr(LQe);PQe.exports={styleValueDflt:"basic",stylesMap:LQe,styleValuesMap:FQe,traceLayerPrefix:"plotly-trace-layer-",layoutLayerPrefix:"plotly-layout-layer-",missingStyleErrorMsg:["No valid maplibre style found, please set `map.style` to one of:",FQe.join(", "),"or use a tile service."].join(` -`),mapOnErrorMsg:"Map error.",fitBoundsPadding:20}});var gk=K((Bii,qQe)=>{"use strict";var zQe=Mt(),IQe=ko().defaultLine,Bgr=kf().attributes,qgr=lf(),Ogr=Zf().textposition,Ngr=Ef().overrideAll,Vgr=fu().templatedArray,RQe=rx(),BQe=qgr({noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0});BQe.family.dflt="Open Sans Regular, Arial Unicode MS Regular";var Ugr=qQe.exports=Ngr({_arrayAttrRegexps:[zQe.counterRegex("map",".layers",!0)],domain:Bgr({name:"map"}),style:{valType:"any",values:RQe.styleValuesMap,dflt:RQe.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},fitbounds:{valType:"enumerated",values:[!1,"locations"],dflt:"locations"},bounds:{west:{valType:"number"},east:{valType:"number"},south:{valType:"number"},north:{valType:"number"}},layers:Vgr("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:IQe},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:IQe}},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:BQe,textposition:zQe.extendFlat({},Ogr,{arrayOk:!1})}})},"plot","from-root");Ugr.uirevision={valType:"any",editType:"none"}});var KB=K((qii,UQe)=>{"use strict";var{hovertemplateAttrs:Ggr,texttemplateAttrs:Hgr,templatefallbackAttrs:OQe}=yu(),jgr=im(),xk=$4(),y5=Zf(),NQe=gk(),Wgr=Au(),$gr=Wu(),$_=Os().extendFlat,Ygr=Ef().overrideAll,Xgr=gk(),VQe=xk.line,g5=xk.marker;UQe.exports=Ygr({lon:xk.lon,lat:xk.lat,cluster:{enabled:{valType:"boolean"},maxzoom:$_({},Xgr.layers.maxzoom,{}),step:{valType:"number",arrayOk:!0,dflt:-1,min:-1},size:{valType:"number",arrayOk:!0,dflt:20,min:0},color:{valType:"color",arrayOk:!0},opacity:$_({},g5.opacity,{dflt:1})},mode:$_({},y5.mode,{dflt:"markers"}),text:$_({},y5.text,{}),texttemplate:Hgr({editType:"plot"},{keys:["lat","lon","text"]}),texttemplatefallback:OQe({editType:"plot"}),hovertext:$_({},y5.hovertext,{}),line:{color:VQe.color,width:VQe.width},connectgaps:y5.connectgaps,marker:$_({symbol:{valType:"string",dflt:"circle",arrayOk:!0},angle:{valType:"number",dflt:"auto",arrayOk:!0},allowoverlap:{valType:"boolean",dflt:!1},opacity:g5.opacity,size:g5.size,sizeref:g5.sizeref,sizemin:g5.sizemin,sizemode:g5.sizemode},$gr("marker")),fill:xk.fill,fillcolor:jgr(),textfont:NQe.layers.symbol.textfont,textposition:NQe.layers.symbol.textposition,below:{valType:"string"},selected:{marker:y5.selected.marker},unselected:{marker:y5.unselected.marker},hoverinfo:$_({},Wgr.hoverinfo,{flags:["lon","lat","text","name"]}),hovertemplate:Ggr(),hovertemplatefallback:OQe()},"calc","nested")});var kre={};Fl(kre,{isSupportedFont:()=>Kgr});function Kgr(e){return Zgr.indexOf(e)!==-1}var Zgr,Cre=ps(()=>{"use strict";Zgr=["Metropolis Black Italic","Metropolis Black","Metropolis Bold Italic","Metropolis Bold","Metropolis Extra Bold Italic","Metropolis Extra Bold","Metropolis Extra Light Italic","Metropolis Extra Light","Metropolis Light Italic","Metropolis Light","Metropolis Medium Italic","Metropolis Medium","Metropolis Regular Italic","Metropolis Regular","Metropolis Semi Bold Italic","Metropolis Semi Bold","Metropolis Thin Italic","Metropolis Thin","Open Sans Bold Italic","Open Sans Bold","Open Sans Extrabold Italic","Open Sans Extrabold","Open Sans Italic","Open Sans Light Italic","Open Sans Light","Open Sans Regular","Open Sans Semibold Italic","Open Sans Semibold","Klokantech Noto Sans Bold","Klokantech Noto Sans CJK Bold","Klokantech Noto Sans CJK Regular","Klokantech Noto Sans Italic","Klokantech Noto Sans Regular"]});var jQe=K((Oii,HQe)=>{"use strict";var bk=Mt(),Dre=ff(),Jgr=Yp(),Qgr=Zv(),e2r=Kv(),t2r=am(),GQe=KB(),r2r=(Cre(),ar(kre)).isSupportedFont;HQe.exports=function(t,r,i,n){function a(m,w){return bk.coerce(t,r,GQe,m,w)}function o(m,w){return bk.coerce2(t,r,GQe,m,w)}var s=i2r(t,r,a);if(!s){r.visible=!1;return}if(a("text"),a("texttemplate"),a("texttemplatefallback"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback"),a("mode"),a("below"),Dre.hasMarkers(r)){Jgr(t,r,i,n,a,{noLine:!0,noAngle:!0}),a("marker.allowoverlap"),a("marker.angle");var l=r.marker;l.symbol!=="circle"&&(bk.isArrayOrTypedArray(l.size)&&(l.size=l.size[0]),bk.isArrayOrTypedArray(l.color)&&(l.color=l.color[0]))}Dre.hasLines(r)&&(Qgr(t,r,i,n,a,{noDash:!0}),a("connectgaps"));var u=o("cluster.maxzoom"),f=o("cluster.step"),c=o("cluster.color",r.marker&&r.marker.color||i),h=o("cluster.size"),d=o("cluster.opacity"),p=u!==!1||f!==!1||c!==!1||h!==!1||d!==!1,v=a("cluster.enabled",p);if(v||Dre.hasText(r)){var y=n.font.family;e2r(t,r,n,a,{noSelect:!0,noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0,font:{family:r2r(y)?y:"Open Sans Regular",weight:n.font.weight,style:n.font.style,size:n.font.size,color:n.font.color}})}a("fill"),r.fill!=="none"&&t2r(t,r,i,a),bk.coerceSelectionMarkerOpacity(r,a)};function i2r(e,t,r){var i=r("lon")||[],n=r("lat")||[],a=Math.min(i.length,n.length);return t._length=a,a}});var Fre=K((Nii,$Qe)=>{"use strict";var WQe=Cs();$Qe.exports=function(t,r,i){var n={},a=i[r.subplot]._subplot,o=a.mockAxis,s=t.lonlat;return n.lonLabel=WQe.tickText(o,o.c2l(s[0]),!0).text,n.latLabel=WQe.tickText(o,o.c2l(s[1]),!0).text,n}});var Lre=K((Vii,XQe)=>{"use strict";var YQe=Mt();XQe.exports=function(t,r){var i=t.split(" "),n=i[0],a=i[1],o=YQe.isArrayOrTypedArray(r)?YQe.mean(r):r,s=.5+o/100,l=1.5+o/100,u=["",""],f=[0,0];switch(n){case"top":u[0]="top",f[1]=-l;break;case"bottom":u[0]="bottom",f[1]=l;break}switch(a){case"left":u[1]="right",f[0]=-s;break;case"right":u[1]="left",f[0]=s;break}var c;return u[0]&&u[1]?c=u.join("-"):u[0]?c=u[0]:u[1]?c=u[1]:c="center",{anchor:c,offset:f}}});var tet=K((Uii,eet)=>{"use strict";var JQe=Gs(),o0=Mt(),n2r=(Il(),ar(Bl)).BADNUM,QB=LE(),ZQe=gf(),a2r=Bs(),o2r=T6(),e7=ff(),s2r=(Cre(),ar(kre)).isSupportedFont,l2r=Lre(),u2r=od().appendArrayPointValue,f2r=zu().NEWLINES,c2r=zu().BR_TAG_ALL;eet.exports=function(t,r){var i=r[0].trace,n=i.visible===!0&&i._length!==0,a=i.fill!=="none",o=e7.hasLines(i),s=e7.hasMarkers(i),l=e7.hasText(i),u=s&&i.marker.symbol==="circle",f=s&&i.marker.symbol!=="circle",c=i.cluster&&i.cluster.enabled,h=JB("fill"),d=JB("line"),p=JB("circle"),v=JB("symbol"),y={fill:h,line:d,circle:p,symbol:v};if(!n)return y;var m;if((a||o)&&(m=QB.calcTraceToLineCoords(r)),a&&(h.geojson=QB.makePolygon(m),h.layout.visibility="visible",o0.extendFlat(h.paint,{"fill-color":i.fillcolor})),o&&(d.geojson=QB.makeLine(m),d.layout.visibility="visible",o0.extendFlat(d.paint,{"line-width":i.line.width,"line-color":i.line.color,"line-opacity":i.opacity})),u){var w=h2r(r);p.geojson=w.geojson,p.layout.visibility="visible",c&&(p.filter=["!",["has","point_count"]],y.cluster={type:"circle",filter:["has","point_count"],layout:{visibility:"visible"},paint:{"circle-color":zre(i.cluster.color,i.cluster.step),"circle-radius":zre(i.cluster.size,i.cluster.step),"circle-opacity":zre(i.cluster.opacity,i.cluster.step)}},y.clusterCount={type:"symbol",filter:["has","point_count"],paint:{},layout:{"text-field":"{point_count_abbreviated}","text-font":KQe(i),"text-size":12}}),o0.extendFlat(p.paint,{"circle-color":w.mcc,"circle-radius":w.mrc,"circle-opacity":w.mo})}if(u&&c&&(p.filter=["!",["has","point_count"]]),(f||l)&&(v.geojson=d2r(r,t),o0.extendFlat(v.layout,{visibility:"visible","icon-image":"{symbol}","text-field":"{text}"}),f&&(o0.extendFlat(v.layout,{"icon-size":i.marker.size/10}),"angle"in i.marker&&i.marker.angle!=="auto"&&o0.extendFlat(v.layout,{"icon-rotate":{type:"identity",property:"angle"},"icon-rotation-alignment":"map"}),v.layout["icon-allow-overlap"]=i.marker.allowoverlap,o0.extendFlat(v.paint,{"icon-opacity":i.opacity*i.marker.opacity,"icon-color":i.marker.color,"icon-halo-color":i.marker.color,"icon-halo-width":2,"icon-halo-blur":1.5})),l)){var _=(i.marker||{}).size,b=l2r(i.textposition,_);o0.extendFlat(v.layout,{"text-size":i.textfont.size,"text-anchor":b.anchor,"text-offset":b.offset,"text-font":KQe(i)}),o0.extendFlat(v.paint,{"text-color":i.textfont.color,"text-opacity":i.opacity})}return y};function JB(e){return{type:e,geojson:QB.makeBlank(),layout:{visibility:"none"},filter:null,paint:{}}}function h2r(e){var t=e[0].trace,r=t.marker,i=t.selectedpoints,n=o0.isArrayOrTypedArray(r.color),a=o0.isArrayOrTypedArray(r.size),o=o0.isArrayOrTypedArray(r.opacity),s;function l(_){return t.opacity*_}function u(_){return _/2}var f;n&&(ZQe.hasColorscale(t,"marker")?f=ZQe.makeColorScaleFuncFromTrace(r):f=o0.identity);var c;a&&(c=o2r(t));var h;o&&(h=function(_){var b=JQe(_)?+o0.constrain(_,0,1):0;return l(b)});var d=[];for(s=0;s850?s+=" Black":n>750?s+=" Extra Bold":n>650?s+=" Bold":n>550?s+=" Semi Bold":n>450?s+=" Medium":n>350?s+=" Regular":n>250?s+=" Light":n>150?s+=" Extra Light":s+=" Thin"):a.slice(0,2).join(" ")==="Open Sans"?(s="Open Sans",n>750?s+=" Extrabold":n>650?s+=" Bold":n>550?s+=" Semibold":n>350?s+=" Regular":s+=" Light"):a.slice(0,3).join(" ")==="Klokantech Noto Sans"&&(s="Klokantech Noto Sans",a[3]==="CJK"&&(s+=" CJK"),s+=n>500?" Bold":" Regular")),o&&(s+=" Italic"),s==="Open Sans Regular Italic"?s="Open Sans Italic":s==="Open Sans Regular Bold"?s="Open Sans Bold":s==="Open Sans Regular Bold Italic"?s="Open Sans Bold Italic":s==="Klokantech Noto Sans Regular Italic"&&(s="Klokantech Noto Sans Italic"),s2r(s)||(s=r);var l=s.split(", ");return l}});var aet=K((Gii,net)=>{"use strict";var p2r=Mt(),ret=tet(),x5=rx().traceLayerPrefix,mv={cluster:["cluster","clusterCount","circle"],nonCluster:["fill","line","circle","symbol"]};function iet(e,t,r,i){this.type="scattermap",this.subplot=e,this.uid=t,this.clusterEnabled=r,this.isHidden=i,this.sourceIds={fill:"source-"+t+"-fill",line:"source-"+t+"-line",circle:"source-"+t+"-circle",symbol:"source-"+t+"-symbol",cluster:"source-"+t+"-circle",clusterCount:"source-"+t+"-circle"},this.layerIds={fill:x5+t+"-fill",line:x5+t+"-line",circle:x5+t+"-circle",symbol:x5+t+"-symbol",cluster:x5+t+"-cluster",clusterCount:x5+t+"-cluster-count"},this.below=null}var _k=iet.prototype;_k.addSource=function(e,t,r){var i={type:"geojson",data:t.geojson};r&&r.enabled&&p2r.extendFlat(i,{cluster:!0,clusterMaxZoom:r.maxzoom});var n=this.subplot.map.getSource(this.sourceIds[e]);n?n.setData(t.geojson):this.subplot.map.addSource(this.sourceIds[e],i)};_k.setSourceData=function(e,t){this.subplot.map.getSource(this.sourceIds[e]).setData(t.geojson)};_k.addLayer=function(e,t,r){var i={type:t.type,id:this.layerIds[e],source:this.sourceIds[e],layout:t.layout,paint:t.paint};t.filter&&(i.filter=t.filter);for(var n=this.layerIds[e],a,o=this.subplot.getMapLayers(),s=0;s=0;M--){var x=b[M];n.removeLayer(u.layerIds[x])}_||n.removeSource(u.sourceIds.circle)}function h(_){for(var b=mv.nonCluster,M=0;M=0;M--){var x=b[M];n.removeLayer(u.layerIds[x]),_||n.removeSource(u.sourceIds[x])}}function p(_){l?c(_):d(_)}function v(_){s?f(_):h(_)}function y(){for(var _=s?mv.cluster:mv.nonCluster,b=0;b<_.length;b++){var M=_[b],x=a[M];x&&(i.setOptions(u.layerIds[M],"setLayoutProperty",x.layout),x.layout.visibility==="visible"&&(M!=="cluster"&&u.setSourceData(M,x),i.setOptions(u.layerIds[M],"setPaintProperty",x.paint)))}}var m=this.isHidden,w=r.visible!==!0;w?m||p():m?w||v():l!==s?(p(),v()):(this.below!==o&&(p(!0),v(!0)),y()),this.clusterEnabled=s,this.isHidden=w,this.below=o,t[0].trace._glTrace=this};_k.dispose=function(){for(var t=this.subplot.map,r=this.clusterEnabled?mv.cluster:mv.nonCluster,i=r.length-1;i>=0;i--){var n=r[i];t.removeLayer(this.layerIds[n]),t.removeSource(this.sourceIds[n])}};net.exports=function(t,r){var i=r[0].trace,n=i.cluster&&i.cluster.enabled,a=i.visible!==!0,o=new iet(t,i.uid,n,a),s=ret(t.gd,r),l=o.below=t.belowLookup["trace-"+i.uid],u,f,c;if(n)for(o.addSource("circle",s.circle,i.cluster),u=0;u{"use strict";var v2r=Uf(),Ire=Mt(),m2r=sA(),y2r=Ire.fillText,g2r=(Il(),ar(Bl)).BADNUM,x2r=rx().traceLayerPrefix;function b2r(e,t,r){var i=e.cd,n=i[0].trace,a=e.xa,o=e.ya,s=e.subplot,l=[],u=x2r+n.uid+"-circle",f=n.cluster&&n.cluster.enabled;if(f){var c=s.map.queryRenderedFeatures(null,{layers:[u]});l=c.map(function(T){return T.id})}var h=t>=0?Math.floor((t+180)/360):Math.ceil((t-180)/360),d=h*360,p=t-d;function v(T){var g=T.lonlat;if(g[0]===g2r||f&&l.indexOf(T.i+1)===-1)return 1/0;var E=Ire.modHalf(g[0],360),S=g[1],C=s.project([E,S]),k=C.x-a.c2p([p,S]),D=C.y-o.c2p([E,r]),L=Math.max(3,T.mrc||0);return Math.max(Math.sqrt(k*k+D*D)-L,1-3/L)}if(v2r.getClosest(i,v,e),e.index!==!1){var y=i[e.index],m=y.lonlat,w=[Ire.modHalf(m[0],360)+d,m[1]],_=a.c2p(w),b=o.c2p(w),M=y.mrc||1;e.x0=_-M,e.x1=_+M,e.y0=b-M,e.y1=b+M;var x={};x[n.subplot]={_subplot:s};var A=n._module.formatLabels(y,n,x);return e.lonLabel=A.lonLabel,e.latLabel=A.latLabel,e.color=m2r(n,y),e.extraText=oet(n,y,i[0].t.labels),e.hovertemplate=n.hovertemplate,[e]}}function oet(e,t,r){if(e.hovertemplate)return;var i=t.hi||e.hoverinfo,n=i.split("+"),a=n.indexOf("all")!==-1,o=n.indexOf("lon")!==-1,s=n.indexOf("lat")!==-1,l=t.lonlat,u=[];function f(c){return c+"\xB0"}return a||o&&s?u.push("("+f(l[1])+", "+f(l[0])+")"):o?u.push(r.lon+f(l[0])):s&&u.push(r.lat+f(l[1])),(a||n.indexOf("text")!==-1)&&y2r(t,e,u),u.join("
")}set.exports={hoverPoints:b2r,getExtraText:oet}});var fet=K((jii,uet)=>{"use strict";uet.exports=function(t,r){return t.lon=r.lon,t.lat=r.lat,t}});var het=K((Wii,cet)=>{"use strict";var _2r=Mt(),w2r=ff(),{BADNUM:A2r}=(Il(),ar(Bl)),i7=360,Rre=.001,n7=(e,t,r,i)=>[e.c2p([r,i]),t.c2p([r,i])];function T2r(e,t,r,i,n){let a=n7(e,t,r+i7,i),o=n7(e,t,r-i7,i),s=a[0]-n[0],l=a[1]-n[1],u=Math.abs(s-(n[0]-o[0])){if(Math.abs(o)n?null:[Math.floor(i)-1,Math.ceil(n)+1]}cet.exports=function(t,r){var f;let{cd:i,xaxis:n,yaxis:a}=t,{trace:o}=i[0];if(!w2r.hasMarkers(o))return[];if(r===!1){for(let c of i)c.selected=0;return[]}let s=(f=n._subplot)==null?void 0:f.map,l=!!(s!=null&&s.getRenderWorldCopies())&&r.xmax>r.xmin,u=[];for(let c=0;c=1)return 1;let h=f;for(let v=0;v<8;v++){let y=((o*h+a)*h+n)*h-f;if(Math.abs(y)y?d=h:p=h,h=(d+p)*.5}return((u*h+l)*h+s)*h}}function j7(){return wk!=null||(wk=typeof OffscreenCanvas<"u"&&!!new OffscreenCanvas(1,1).getContext("2d")&&typeof createImageBitmap=="function"),wk}function dne(){if(a7==null&&(a7=!1,j7())){let e=new OffscreenCanvas(5,5).getContext("2d",{willReadFrequently:!0});if(e){for(let r=0;r<25;r++){let i=r*4;e.fillStyle=`rgb(${i},${i+1},${i+2})`,e.fillRect(r%5,Math.floor(r/5),1,1)}let t=e.getImageData(0,0,5,5).data;for(let r=0;r<100;r++)if(r%4!=3&&t[r]!==r){a7=!0;break}}}return a7||!1}function pne(){var e=new kh(9);return kh!=Float32Array&&(e[1]=0,e[2]=0,e[3]=0,e[5]=0,e[6]=0,e[7]=0),e[0]=1,e[4]=1,e[8]=1,e}function P2r(e){var t=e[0],r=e[1],i=e[2],n=e[3],a=e[4],o=e[5],s=e[6],l=e[7],u=e[8];return t*(u*a-o*l)+r*(-u*n+o*s)+i*(l*n-a*s)}function art(e,t){var r=Math.sin(t),i=Math.cos(t);return e[0]=i,e[1]=r,e[2]=0,e[3]=-r,e[4]=i,e[5]=0,e[6]=0,e[7]=0,e[8]=1,e}function z2r(e,t){var r=t[0],i=t[1],n=t[2],a=t[3],o=r+r,s=i+i,l=n+n,u=r*o,f=i*o,c=i*s,h=n*o,d=n*s,p=n*l,v=a*o,y=a*s,m=a*l;return e[0]=1-c-p,e[3]=f-m,e[6]=h+y,e[1]=f+m,e[4]=1-u-p,e[7]=d-v,e[2]=h-y,e[5]=d+v,e[8]=1-u-c,e}function Ky(){var e=new kh(16);return kh!=Float32Array&&(e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[11]=0,e[12]=0,e[13]=0,e[14]=0),e[0]=1,e[5]=1,e[10]=1,e[15]=1,e}function W7(e){var t=new kh(16);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}function ort(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}function Mv(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}function lC(e,t){var r=t[0],i=t[1],n=t[2],a=t[3],o=t[4],s=t[5],l=t[6],u=t[7],f=t[8],c=t[9],h=t[10],d=t[11],p=t[12],v=t[13],y=t[14],m=t[15],w=r*s-i*o,_=r*l-n*o,b=r*u-a*o,M=i*l-n*s,x=i*u-a*s,A=n*u-a*l,T=f*v-c*p,g=f*y-h*p,E=f*m-d*p,S=c*y-h*v,C=c*m-d*v,k=h*m-d*y,D=w*k-_*C+b*S+M*E-x*g+A*T;return D?(D=1/D,e[0]=(s*k-l*C+u*S)*D,e[1]=(n*C-i*k-a*S)*D,e[2]=(v*A-y*x+m*M)*D,e[3]=(h*x-c*A-d*M)*D,e[4]=(l*E-o*k-u*g)*D,e[5]=(r*k-n*E+a*g)*D,e[6]=(y*b-p*A-m*_)*D,e[7]=(f*A-h*b+d*_)*D,e[8]=(o*C-s*E+u*T)*D,e[9]=(i*E-r*C-a*T)*D,e[10]=(p*x-v*b+m*w)*D,e[11]=(c*b-f*x-d*w)*D,e[12]=(s*g-o*S-l*T)*D,e[13]=(r*S-i*g+n*T)*D,e[14]=(v*_-p*M-y*w)*D,e[15]=(f*M-c*_+h*w)*D,e):null}function l3(e,t,r){var i=t[0],n=t[1],a=t[2],o=t[3],s=t[4],l=t[5],u=t[6],f=t[7],c=t[8],h=t[9],d=t[10],p=t[11],v=t[12],y=t[13],m=t[14],w=t[15],_=r[0],b=r[1],M=r[2],x=r[3];return e[0]=_*i+b*s+M*c+x*v,e[1]=_*n+b*l+M*h+x*y,e[2]=_*a+b*u+M*d+x*m,e[3]=_*o+b*f+M*p+x*w,_=r[4],b=r[5],M=r[6],x=r[7],e[4]=_*i+b*s+M*c+x*v,e[5]=_*n+b*l+M*h+x*y,e[6]=_*a+b*u+M*d+x*m,e[7]=_*o+b*f+M*p+x*w,_=r[8],b=r[9],M=r[10],x=r[11],e[8]=_*i+b*s+M*c+x*v,e[9]=_*n+b*l+M*h+x*y,e[10]=_*a+b*u+M*d+x*m,e[11]=_*o+b*f+M*p+x*w,_=r[12],b=r[13],M=r[14],x=r[15],e[12]=_*i+b*s+M*c+x*v,e[13]=_*n+b*l+M*h+x*y,e[14]=_*a+b*u+M*d+x*m,e[15]=_*o+b*f+M*p+x*w,e}function th(e,t,r){var i=r[0],n=r[1],a=r[2],o,s,l,u,f,c,h,d,p,v,y,m;return t===e?(e[12]=t[0]*i+t[4]*n+t[8]*a+t[12],e[13]=t[1]*i+t[5]*n+t[9]*a+t[13],e[14]=t[2]*i+t[6]*n+t[10]*a+t[14],e[15]=t[3]*i+t[7]*n+t[11]*a+t[15]):(o=t[0],s=t[1],l=t[2],u=t[3],f=t[4],c=t[5],h=t[6],d=t[7],p=t[8],v=t[9],y=t[10],m=t[11],e[0]=o,e[1]=s,e[2]=l,e[3]=u,e[4]=f,e[5]=c,e[6]=h,e[7]=d,e[8]=p,e[9]=v,e[10]=y,e[11]=m,e[12]=o*i+f*n+p*a+t[12],e[13]=s*i+c*n+v*a+t[13],e[14]=l*i+h*n+y*a+t[14],e[15]=u*i+d*n+m*a+t[15]),e}function f0(e,t,r){var i=r[0],n=r[1],a=r[2];return e[0]=t[0]*i,e[1]=t[1]*i,e[2]=t[2]*i,e[3]=t[3]*i,e[4]=t[4]*n,e[5]=t[5]*n,e[6]=t[6]*n,e[7]=t[7]*n,e[8]=t[8]*a,e[9]=t[9]*a,e[10]=t[10]*a,e[11]=t[11]*a,e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}function u3(e,t,r){var i=Math.sin(r),n=Math.cos(r),a=t[4],o=t[5],s=t[6],l=t[7],u=t[8],f=t[9],c=t[10],h=t[11];return t!==e&&(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[4]=a*n+u*i,e[5]=o*n+f*i,e[6]=s*n+c*i,e[7]=l*n+h*i,e[8]=u*n-a*i,e[9]=f*n-o*i,e[10]=c*n-s*i,e[11]=h*n-l*i,e}function vne(e,t,r){var i=Math.sin(r),n=Math.cos(r),a=t[0],o=t[1],s=t[2],l=t[3],u=t[8],f=t[9],c=t[10],h=t[11];return t!==e&&(e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=a*n-u*i,e[1]=o*n-f*i,e[2]=s*n-c*i,e[3]=l*n-h*i,e[8]=a*i+u*n,e[9]=o*i+f*n,e[10]=s*i+c*n,e[11]=l*i+h*n,e}function Jy(e,t,r){var i=Math.sin(r),n=Math.cos(r),a=t[0],o=t[1],s=t[2],l=t[3],u=t[4],f=t[5],c=t[6],h=t[7];return t!==e&&(e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=a*n+u*i,e[1]=o*n+f*i,e[2]=s*n+c*i,e[3]=l*n+h*i,e[4]=u*n-a*i,e[5]=f*n-o*i,e[6]=c*n-s*i,e[7]=h*n-l*i,e}function srt(e,t){return e[0]=t[0],e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=t[1],e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=t[2],e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}function I2r(e,t,r,i,n){var a=1/Math.tan(t/2);if(e[0]=a/r,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=a,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[11]=-1,e[12]=0,e[13]=0,e[15]=0,n!=null&&n!==1/0){var o=1/(i-n);e[10]=(n+i)*o,e[14]=2*n*i*o}else e[10]=-1,e[14]=-2*i;return e}function R2r(e,t,r,i,n,a,o){var s=1/(t-r),l=1/(i-n),u=1/(a-o);return e[0]=-2*s,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*l,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*u,e[11]=0,e[12]=(t+r)*s,e[13]=(n+i)*l,e[14]=(o+a)*u,e[15]=1,e}function lrt(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]&&e[3]===t[3]&&e[4]===t[4]&&e[5]===t[5]&&e[6]===t[6]&&e[7]===t[7]&&e[8]===t[8]&&e[9]===t[9]&&e[10]===t[10]&&e[11]===t[11]&&e[12]===t[12]&&e[13]===t[13]&&e[14]===t[14]&&e[15]===t[15]}function urt(e,t){var r=e[0],i=e[1],n=e[2],a=e[3],o=e[4],s=e[5],l=e[6],u=e[7],f=e[8],c=e[9],h=e[10],d=e[11],p=e[12],v=e[13],y=e[14],m=e[15],w=t[0],_=t[1],b=t[2],M=t[3],x=t[4],A=t[5],T=t[6],g=t[7],E=t[8],S=t[9],C=t[10],k=t[11],D=t[12],L=t[13],P=t[14],I=t[15];return Math.abs(r-w)<=1e-6*Math.max(1,Math.abs(r),Math.abs(w))&&Math.abs(i-_)<=1e-6*Math.max(1,Math.abs(i),Math.abs(_))&&Math.abs(n-b)<=1e-6*Math.max(1,Math.abs(n),Math.abs(b))&&Math.abs(a-M)<=1e-6*Math.max(1,Math.abs(a),Math.abs(M))&&Math.abs(o-x)<=1e-6*Math.max(1,Math.abs(o),Math.abs(x))&&Math.abs(s-A)<=1e-6*Math.max(1,Math.abs(s),Math.abs(A))&&Math.abs(l-T)<=1e-6*Math.max(1,Math.abs(l),Math.abs(T))&&Math.abs(u-g)<=1e-6*Math.max(1,Math.abs(u),Math.abs(g))&&Math.abs(f-E)<=1e-6*Math.max(1,Math.abs(f),Math.abs(E))&&Math.abs(c-S)<=1e-6*Math.max(1,Math.abs(c),Math.abs(S))&&Math.abs(h-C)<=1e-6*Math.max(1,Math.abs(h),Math.abs(C))&&Math.abs(d-k)<=1e-6*Math.max(1,Math.abs(d),Math.abs(k))&&Math.abs(p-D)<=1e-6*Math.max(1,Math.abs(p),Math.abs(D))&&Math.abs(v-L)<=1e-6*Math.max(1,Math.abs(v),Math.abs(L))&&Math.abs(y-P)<=1e-6*Math.max(1,Math.abs(y),Math.abs(P))&&Math.abs(m-I)<=1e-6*Math.max(1,Math.abs(m),Math.abs(I))}function frt(){var e=new kh(3);return kh!=Float32Array&&(e[0]=0,e[1]=0,e[2]=0),e}function Y7(e){var t=new kh(3);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function Sv(e){var t=e[0],r=e[1],i=e[2];return Math.sqrt(t*t+r*r+i*i)}function det(e,t,r){var i=new kh(3);return i[0]=e,i[1]=t,i[2]=r,i}function bp(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e[2]=t[2]+r[2],e}function X7(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e[2]=t[2]-r[2],e}function Wf(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e[2]=t[2]*r,e}function uC(e,t,r,i){return e[0]=t[0]+r[0]*i,e[1]=t[1]+r[1]*i,e[2]=t[2]+r[2]*i,e}function crt(e,t){var r=t[0]-e[0],i=t[1]-e[1],n=t[2]-e[2];return Math.sqrt(r*r+i*i+n*n)}function hrt(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e}function Q0(e,t){var r=t[0],i=t[1],n=t[2],a=r*r+i*i+n*n;return a>0&&(a=1/Math.sqrt(a)),e[0]=t[0]*a,e[1]=t[1]*a,e[2]=t[2]*a,e}function rh(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function yd(e,t,r){var i=t[0],n=t[1],a=t[2],o=r[0],s=r[1],l=r[2];return e[0]=n*l-a*s,e[1]=a*o-i*l,e[2]=i*s-n*o,e}function drt(e,t,r){var i=t[0],n=t[1],a=t[2],o=r[3]*i+r[7]*n+r[11]*a+r[15];return o||(o=1),e[0]=(r[0]*i+r[4]*n+r[8]*a+r[12])/o,e[1]=(r[1]*i+r[5]*n+r[9]*a+r[13])/o,e[2]=(r[2]*i+r[6]*n+r[10]*a+r[14])/o,e}function prt(e,t,r){var i=t[0],n=t[1],a=t[2];return e[0]=i*r[0]+n*r[3]+a*r[6],e[1]=i*r[1]+n*r[4]+a*r[7],e[2]=i*r[2]+n*r[5]+a*r[8],e}function Z7(e,t,r){var i=r[0],n=r[1],a=r[2],o=r[3],s=t[0],l=t[1],u=t[2],f=n*u-a*l,c=a*s-i*u,h=i*l-n*s;return f+=f,c+=c,h+=h,e[0]=s+o*f+n*h-a*c,e[1]=l+o*c+a*f-i*h,e[2]=u+o*h+i*c-n*f,e}function W5(e,t,r,i){var n=[],a=[];return n[0]=t[0]-r[0],n[1]=t[1]-r[1],n[2]=t[2]-r[2],a[0]=n[0],a[1]=n[1]*Math.cos(i)-n[2]*Math.sin(i),a[2]=n[1]*Math.sin(i)+n[2]*Math.cos(i),e[0]=a[0]+r[0],e[1]=a[1]+r[1],e[2]=a[2]+r[2],e}function f3(e,t,r,i){var n=[],a=[];return n[0]=t[0]-r[0],n[1]=t[1]-r[1],n[2]=t[2]-r[2],a[0]=n[2]*Math.sin(i)+n[0]*Math.cos(i),a[1]=n[1],a[2]=n[2]*Math.cos(i)-n[0]*Math.sin(i),e[0]=a[0]+r[0],e[1]=a[1]+r[1],e[2]=a[2]+r[2],e}function K7(e,t,r,i){var n=[],a=[];return n[0]=t[0]-r[0],n[1]=t[1]-r[1],n[2]=t[2]-r[2],a[0]=n[0]*Math.cos(i)-n[1]*Math.sin(i),a[1]=n[0]*Math.sin(i)+n[1]*Math.cos(i),a[2]=n[2],e[0]=a[0]+r[0],e[1]=a[1]+r[1],e[2]=a[2]+r[2],e}function vrt(e){return e[0]=0,e[1]=0,e[2]=0,e}function B2r(){var e=new kh(4);return kh!=Float32Array&&(e[0]=0,e[1]=0,e[2]=0,e[3]=0),e}function q2r(e,t,r,i){var n=new kh(4);return n[0]=e,n[1]=t,n[2]=r,n[3]=i,n}function O2r(e,t,r){return e[0]=t[0]*r[0],e[1]=t[1]*r[1],e[2]=t[2]*r[2],e[3]=t[3]*r[3],e}function mrt(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e[2]=t[2]*r,e[3]=t[3]*r,e}function N2r(e,t){var r=t[0],i=t[1],n=t[2],a=t[3],o=r*r+i*i+n*n+a*a;return o>0&&(o=1/Math.sqrt(o)),e[0]=r*o,e[1]=i*o,e[2]=n*o,e[3]=a*o,e}function c0(e,t,r){var i=t[0],n=t[1],a=t[2],o=t[3];return e[0]=r[0]*i+r[4]*n+r[8]*a+r[12]*o,e[1]=r[1]*i+r[5]*n+r[9]*a+r[13]*o,e[2]=r[2]*i+r[6]*n+r[10]*a+r[14]*o,e[3]=r[3]*i+r[7]*n+r[11]*a+r[15]*o,e}function pet(){var e=new kh(4);return kh!=Float32Array&&(e[0]=0,e[1]=0,e[2]=0),e[3]=1,e}function V2r(e,t,r){r*=.5;var i=Math.sin(r);return e[0]=i*t[0],e[1]=i*t[1],e[2]=i*t[2],e[3]=Math.cos(r),e}function grt(e,t,r){var i=t[0],n=t[1],a=t[2],o=t[3],s=r[0],l=r[1],u=r[2],f=r[3];return e[0]=i*f+o*s+n*u-a*l,e[1]=n*f+o*l+a*s-i*u,e[2]=a*f+o*u+i*l-n*s,e[3]=o*f-i*s-n*l-a*u,e}function qk(e,t,r,i){var n=t[0],a=t[1],o=t[2],s=t[3],l=r[0],u=r[1],f=r[2],c=r[3],h,d=n*l+a*u+o*f+s*c,p,v,y;return d<0&&(d=-d,l=-l,u=-u,f=-f,c=-c),1-d>1e-6?(h=Math.acos(d),p=Math.sin(h),v=Math.sin((1-i)*h)/p,y=Math.sin(i*h)/p):(v=1-i,y=i),e[0]=v*n+y*l,e[1]=v*a+y*u,e[2]=v*o+y*f,e[3]=v*s+y*c,e}function U2r(e,t){var r=t[0]+t[4]+t[8],i;if(r>0)i=Math.sqrt(r+1),e[3]=.5*i,i=.5/i,e[0]=(t[5]-t[7])*i,e[1]=(t[6]-t[2])*i,e[2]=(t[1]-t[3])*i;else{var n=0;t[4]>t[0]&&(n=1),t[8]>t[n*3+n]&&(n=2);var a=(n+1)%3,o=(n+2)%3;i=Math.sqrt(t[n*3+n]-t[a*3+a]-t[o*3+o]+1),e[n]=.5*i,i=.5/i,e[3]=(t[a*3+o]-t[o*3+a])*i,e[a]=(t[a*3+n]+t[n*3+a])*i,e[o]=(t[o*3+n]+t[n*3+o])*i}return e}function J7(e,t,r,i){var n=arguments.length>4&&arguments[4]!==void 0?arguments[4]:"zyx",a=Math.PI/360;t*=a,i*=a,r*=a;var o=Math.sin(t),s=Math.cos(t),l=Math.sin(r),u=Math.cos(r),f=Math.sin(i),c=Math.cos(i);switch(n){case"xyz":e[0]=o*u*c+s*l*f,e[1]=s*l*c-o*u*f,e[2]=s*u*f+o*l*c,e[3]=s*u*c-o*l*f;break;case"xzy":e[0]=o*u*c-s*l*f,e[1]=s*l*c-o*u*f,e[2]=s*u*f+o*l*c,e[3]=s*u*c+o*l*f;break;case"yxz":e[0]=o*u*c+s*l*f,e[1]=s*l*c-o*u*f,e[2]=s*u*f-o*l*c,e[3]=s*u*c+o*l*f;break;case"yzx":e[0]=o*u*c+s*l*f,e[1]=s*l*c+o*u*f,e[2]=s*u*f-o*l*c,e[3]=s*u*c-o*l*f;break;case"zxy":e[0]=o*u*c-s*l*f,e[1]=s*l*c+o*u*f,e[2]=s*u*f+o*l*c,e[3]=s*u*c-o*l*f;break;case"zyx":e[0]=o*u*c-s*l*f,e[1]=s*l*c+o*u*f,e[2]=s*u*f-o*l*c,e[3]=s*u*c+o*l*f;break;default:throw Error("Unknown angle order "+n)}return e}function Q7(){var e=new kh(2);return kh!=Float32Array&&(e[0]=0,e[1]=0),e}function met(e,t){var r=new kh(2);return r[0]=e,r[1]=t,r}function yne(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e}function gne(e){var t=e[0],r=e[1];return Math.sqrt(t*t+r*r)}function G2r(e){var t=e[0],r=e[1];return t*t+r*r}function H2r(e,t){return e[0]*t[0]+e[1]*t[1]}function xne(e){return e[0]=0,e[1]=0,e}function Od(e,t,r){return t*(Aa/(e.tileSize*2**(r-e.tileID.overscaledZ)))}function u0(e){return e instanceof Error?e:Error(typeof e=="string"?e:String(e))}function vx(){return new Float64Array(4)}function Gu(){return new Float64Array(3)}function mx(){return new Float64Array(16)}function cC(){let e=new Float64Array(16);return Mv(e),e}function bne(){let e=new Float32Array(16);return Mv(e),e}function Qy(e,t,r,i,n=!1){if(!r[0]&&!r[1])return[0,0];let a=n?i==="map"?-e.bearingInRadians:0:i==="viewport"?e.bearingInRadians:0;if(a){let o=Math.sin(a),s=Math.cos(a);r=[r[0]*s-r[1]*o,r[0]*o+r[1]*s]}return[n?r[0]:Od(t,r[0],e.zoom),n?r[1]:Od(t,r[1],e.zoom)]}function eq(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]+e[3]}function _p(e,t,r){let i=P2r([e[0],e[1],e[2],t[0],t[1],t[2],r[0],r[1],r[2]]);if(i===0)return null;let n=yd([],[t[0],t[1],t[2]],[r[0],r[1],r[2]]),a=yd([],[r[0],r[1],r[2]],[e[0],e[1],e[2]]),o=yd([],[e[0],e[1],e[2]],[t[0],t[1],t[2]]),s=Wf([],n,-e[3]);return bp(s,s,Wf([],a,-t[3])),bp(s,s,Wf([],o,-r[3])),Wf(s,s,1/i),s}function brt(e,t,r){let i=e[0]*r[0]+e[1]*r[1]+e[2]*r[2],n=t[0]*r[0]+t[1]*r[1]+t[2]*r[2];return n===0?null:(-i-r[3])/n}function hC(e,t,r,i){let n=Math.sqrt(e*e+t*t),a=Math.sqrt(r*r+i*i);e/=n,t/=n,r/=a,i/=a;let o=e*r+t*i,s=Math.acos(o);return-t*r+e*i>0?s:-s}function Nd(e,t){let r=hx(e,360),i=hx(t,360),n=i-r,a=i>r?n-360:n+360;return Math.abs(n)l.canonical.z)),r=1/0,i=-1/0,n=1/0,a=-1/0,o=[];for(let l of e){let{x:u,y:f,z:c}=l.canonical,h=2**(t-c),d=u*h,p=f*h;o.push({id:l,x:d,y:p}),di&&(i=d),pa&&(a=p)}let s=new Set;for(let l of o)(l.x===r||l.x===i||l.y===n||l.y===a)&&s.add(l.id);return s}function j2r(e){if(e<=0)return 0;if(e>=1)return 1;let t=e*e,r=t*e;return 4*(e<.5?r:3*(e-t)+r-.75)}function tq(e,t,r,i){return L2r(e,t,r,i)}function Pl(e,t,r){return Math.min(r,Math.max(t,e))}function wp(e,t,r){let i=r-t,n=((e-t)%i+i)%i+t;return n===t?r:n}function Hs(e,...t){for(let r of t)for(let i in r)e[i]=r[i];return e}function $5(e,t){let r={};for(let i of t)i in e&&(r[i]=e[i]);return r}function _ne(){return W2r++}function $2r(e){return Math.log(e)/Math.LN2%1==0}function Art(e){return e<=1?1:2**Math.ceil(Math.log(e)/Math.LN2)}function ed(e){return 2**e}function h0(e){return Math.log(e)/Math.LN2}function Vd(e,t,r){if(t<=0)return e;let i=1/t;return r===void 0||Math.abs(r)<1e-10?Math.round(e*i)/i:(r>0?Math.ceil(e*i-1e-9):Math.floor(e*i+1e-10))/i}function iq(e,t,r){let i={};for(let n in e)i[n]=t.call(r||this,e[n],n,e);return i}function wne(e,t,r){let i={};for(let n in e)t.call(r||this,e[n],n,e)&&(i[n]=e[n]);return i}function M1(e,t){if(Array.isArray(e)){if(!Array.isArray(t)||e.length!==t.length)return!1;for(let r=0;r(t.y-e.y)*(r.x-e.x)}function Trt(e,t,r,i){let n=t.y-e.y,a=t.x-e.x,o=i.y-r.y,s=i.x-r.x,l=o*a-s*n;if(l===0)return null;let u=e.y-r.y,f=e.x-r.x,c=(s*u-o*f)/l;return new Zr(e.x+c*a,e.y+c*n)}function Mrt([e,t,r]){return t+=90,t*=Math.PI/180,r*=Math.PI/180,[e*Math.cos(t)*Math.sin(r),e*Math.sin(t)*Math.sin(r),e*Math.cos(r)]}function n3(e){return typeof WorkerGlobalScope<"u"&&e!==void 0&&e instanceof WorkerGlobalScope}function Srt(e){let t=/(?:^|(?:\s*\,\s*))([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g,r={};if(e.replace(t,(i,n,a,o)=>{let s=a||o;return r[n]=!s||s.toLowerCase(),""}),r["max-age"]){let i=parseInt(r["max-age"],10);isNaN(i)?delete r["max-age"]:r["max-age"]=i}return r}function Ert(e){if(Bre==null){let t=e.navigator?e.navigator.userAgent:null;Bre=!!e.safari||!!(t&&(/\b(iPad|iPhone|iPod)\b/.test(t)||t.match("Safari")&&!t.match("Chrome")))}return Bre}function yx(e){return typeof ImageBitmap<"u"&&e instanceof ImageBitmap}function Y2r(e,t,r,i,n){let a=Math.max(-t,0)*4,o=(Math.max(0,r)-r)*i*4+a,s=i*4,l=Math.max(0,t),u=Math.max(0,r),f=Math.min(e.width,t+i),c=Math.min(e.height,r+n);return{rect:{x:l,y:u,width:f-l,height:c-u},layout:[{offset:o,stride:s}]}}function Drt(e,t,r,i,n){return Ls(this,null,function*(){if(typeof VideoFrame>"u")throw Error("VideoFrame not supported");let a=new VideoFrame(e,{timestamp:0});try{let o=a==null?void 0:a.format;if(!o||!(o.startsWith("BGR")||o.startsWith("RGB")))throw Error(`Unrecognized format ${o}`);let s=o.startsWith("BGR"),l=new Uint8ClampedArray(i*n*4);if(yield a.copyTo(l,Y2r(e,t,r,i,n)),s)for(let u=0;u{e.removeEventListener(t,r,i)}}}function $f(e){return e*Math.PI/180}function A1(e){return e/Math.PI*180}function Ane(e,t){return e.roll==t.roll&&e.pitch==t.pitch&&e.bearing==t.bearing}function Frt(e){let t=new Float64Array(9);z2r(t,e);let r=A1(-Math.asin(Pl(t[2],-1,1))),i,n;return Math.hypot(t[5],t[8])<.001?(i=0,n=-A1(Math.atan2(t[3],t[4]))):(i=A1(t[5]===0&&t[8]===0?0:Math.atan2(t[5],t[8])),n=A1(t[1]===0&&t[0]===0?0:Math.atan2(t[1],t[0]))),{roll:i,pitch:r+90,bearing:n}}function Tne(e,t,r){let i=met(t.x-r.x,t.y-r.y),n=met(e.x-r.x,e.y-r.y),a=i[0]*n[1]-i[1]*n[0];return A1(Math.atan2(a,H2r(i,n)))}function Mne(e,t,r){let i=new Float64Array(4);return J7(i,e,t-90,r),i}function zrt(e,t){return Lrt[t]&&"touches"in e}function Irt(e,t){var n,a;if(!Prt[t])return!1;let r=e,i=((a=(n=r==null?void 0:r.target)==null?void 0:n.ownerDocument)==null?void 0:a.defaultView)||window;return r instanceof i.MouseEvent||r instanceof i.WheelEvent}function Rrt(e){return Lrt[e]||Prt[e]}function eg(e){return e instanceof Error&&e.name==="AbortError"}function nq(e){if(e.aborted)throw new Y5(e.reason)}function Sne(e){return Ud.REGISTERED_PROTOCOLS[e.substring(0,e.indexOf("://"))]}function Brt(e,t){Ud.REGISTERED_PROTOCOLS[e]=t}function qrt(e){delete Ud.REGISTERED_PROTOCOLS[e]}function aq(){var e;if(n3(self))return(e=self.worker)==null?void 0:e.referrer;if(window.location.protocol==="blob:")try{return window.parent.location.href}catch(t){}return window.location.href}function Z2r(e,t){return Ls(this,null,function*(){let r=new Request(e.url,{method:e.method||"GET",body:e.body,credentials:e.credentials,headers:e.headers,cache:e.cache,referrer:aq(),referrerPolicy:e.referrerPolicy,signal:t.signal});e.type==="json"&&!r.headers.has("Accept")&&r.headers.set("Accept","application/json");let i;try{i=yield fetch(r)}catch(o){throw eg(o)?o:new R5(0,u0(o).message,e.url,new Blob)}if(!i.ok){let o=yield i.blob();throw new R5(i.status,i.statusText,e.url,o)}let n;n=e.type==="arrayBuffer"||e.type==="image"?i.arrayBuffer():e.type==="json"?i.json():i.text();let a=yield n;return nq(t.signal),{data:a,cacheControl:i.headers.get("Cache-Control"),expires:i.headers.get("Expires"),etag:i.headers.get("ETag")}})}function K2r(e,t){return new Promise((r,i)=>{var a;let n=new XMLHttpRequest;n.open(e.method||"GET",e.url,!0),(e.type==="arrayBuffer"||e.type==="image")&&(n.responseType="arraybuffer");for(let o in e.headers)n.setRequestHeader(o,e.headers[o]);e.type==="json"&&(n.responseType="text",(a=e.headers)!=null&&a.Accept||n.setRequestHeader("Accept","application/json")),n.withCredentials=e.credentials==="include",n.onerror=()=>{i(Error(n.statusText))},n.onload=()=>{if(!t.signal.aborted)if((n.status>=200&&n.status<300||n.status===0)&&n.response!==null){let o=n.response;if(e.type==="json")try{o=JSON.parse(n.response)}catch(s){i(s);return}r({data:o,cacheControl:n.getResponseHeader("Cache-Control"),expires:n.getResponseHeader("Expires"),etag:n.getResponseHeader("ETag")})}else{let o=new Blob([n.response],{type:n.getResponseHeader("Content-Type")});i(new R5(n.status,n.statusText,e.url,o))}},t.signal.addEventListener("abort",()=>{n.abort(),i(new Y5(t.signal.reason))}),n.send(e.body)})}function kne(e){if(!e||e.startsWith("data:image/"))return!0;if(e.startsWith("blob:")&&(e=e.slice(5),e.startsWith("null")))return!1;if(e.indexOf("://")<=0)return!0;let t=new URL(e),r=window.location;return t.protocol===r.protocol&&t.host===r.host}function xet(e,t,r){var i;(i=r[e])!=null&&i.includes(t)||(r[e]||(r[e]=[]),r[e].push(t))}function qre(e,t,r){if(r!=null&&r[e]){let i=r[e].indexOf(t);i!==-1&&r[e].splice(i,1)}}function K0(e,t){return{kind:"array",itemType:e,N:t}}function gc(e){if(e.kind==="array"){let t=gc(e.itemType);return typeof e.N=="number"?`array<${t}, ${e.N}>`:e.itemType.kind==="value"?"array":`array<${t}>`}return e.kind}function $k(e,t){if(t.kind==="error")return null;if(e.kind==="array"){if(t.kind==="array"&&(t.N===0&&t.itemType.kind==="value"||!$k(e.itemType,t.itemType))&&(typeof e.N!="number"||e.N===t.N))return null}else{if(e.kind===t.kind)return null;if(e.kind==="value"){for(let r of Q2r)if(!$k(r,t))return null}}return`Expected ${gc(e)} but found ${gc(t)} instead.`}function Cne(e,t){return t.some(r=>r.kind===e.kind)}function t3(e,t){return t.some(r=>r==="null"?e===null:r==="array"?Array.isArray(e):r==="object"?e&&!Array.isArray(e)&&typeof e=="object":r===typeof e)}function ix(e,t){return e.kind==="array"&&t.kind==="array"?e.itemType.kind===t.itemType.kind&&typeof e.N=="number":e.kind===t.kind}function Wrt(e){return e%=360,e<0&&(e+=360),e}function $rt([e,t,r,i]){e=Ore(e),t=Ore(t),r=Ore(r);let n,a,o=Nre((.2225045*e+.7168786*t+.0606169*r)/1);e===t&&t===r?n=a=o:(n=Nre((.4360747*e+.3850649*t+.1430804*r)/Urt),a=Nre((.0139322*e+.0971045*t+.7141733*r)/Grt));let s=116*o-16;return[s<0?0:s,500*(n-o),200*(o-a),i]}function Ore(e){return e<=.04045?e/12.92:((e+.055)/1.055)**2.4}function Nre(e){return e>.008856451679035631?e**(1/3):e/jrt+Hrt}function Yrt([e,t,r,i]){let n=(e+16)/116,a=isNaN(t)?n:n+t/500,o=isNaN(r)?n:n-r/200;return n=1*Ure(n),a=Urt*Ure(a),o=Grt*Ure(o),[Vre(3.1338561*a-1.6168667*n-.4906146*o),Vre(-.9787684*a+1.9161415*n+.033454*o),Vre(.0719453*a-.2289914*n+1.4052427*o),i]}function Vre(e){return e=e<=.00304?12.92*e:1.055*e**(1/2.4)-.055,e<0?0:e>1?1:e}function Ure(e){return e>rie?e*e*e:jrt*(e-Hrt)}function rxr(e){let[t,r,i,n]=$rt(e),a=Math.sqrt(r*r+i*i);return[Math.round(a*1e4)?Wrt(Math.atan2(i,r)*txr):NaN,a,t,n]}function ixr([e,t,r,i]){return e=isNaN(e)?0:e*exr,Yrt([r,Math.cos(e)*t,Math.sin(e)*t,i])}function nxr([e,t,r,i]){e=Wrt(e),t/=100,r/=100;function n(a){let o=(a+e/30)%12,s=t*Math.min(r,1-r);return r-s*Math.max(-1,Math.min(o-3,9-o,1))}return[n(0),n(8),n(4),i]}function Ok(e,t){return axr(e,t)?e[t]:void 0}function oxr(e){if(e=e.toLowerCase().trim(),e==="transparent")return[0,0,0,0];let t=Ok(sxr,e);if(t){let[i,n,a]=t;return[i/255,n/255,a/255,1]}if(e.startsWith("#")&&/^#(?:[0-9a-f]{3,4}|[0-9a-f]{6}|[0-9a-f]{8})$/.test(e)){let i=e.length<6?1:2,n=1;return[o7(e.slice(n,n+=i)),o7(e.slice(n,n+=i)),o7(e.slice(n,n+=i)),o7(e.slice(n,n+i)||"ff")]}if(e.startsWith("rgb")){let i=e.match(/^rgba?\(\s*([\de.+-]+)(%)?(?:\s+|\s*(,)\s*)([\de.+-]+)(%)?(?:\s+|\s*(,)\s*)([\de.+-]+)(%)?(?:\s*([,\/])\s*([\de.+-]+)(%)?)?\s*\)$/);if(i){let[n,a,o,s,l,u,f,c,h,d,p,v]=i,y=[s||" ",f||" ",d].join("");if(y===" "||y===" /"||y===",,"||y===",,,"){let m=[o,u,h].join(""),w=m==="%%%"?100:m===""?255:0;if(w){let _=[w5(+a/w,0,1),w5(+l/w,0,1),w5(+c/w,0,1),p?bet(+p,v):1];if(_et(_))return _}}return}}let r=e.match(/^hsla?\(\s*([\de.+-]+)(?:deg)?(?:\s+|\s*(,)\s*)([\de.+-]+)%(?:\s+|\s*(,)\s*)([\de.+-]+)%(?:\s*([,\/])\s*([\de.+-]+)(%)?)?\s*\)$/);if(r){let[i,n,a,o,s,l,u,f,c]=r,h=[a||" ",s||" ",u].join("");if(h===" "||h===" /"||h===",,"||h===",,,"){let d=[+n,w5(+o,0,100),w5(+l,0,100),f?bet(+f,c):1];if(_et(d))return nxr(d)}}}function o7(e){return parseInt(e.padEnd(2,e),16)/255}function bet(e,t){return w5(t?e/100:e,0,1)}function w5(e,t,r){return Math.min(Math.max(t,e),r)}function _et(e){return!e.some(Number.isNaN)}function fx(e,t,r){return e+r*(t-e)}function B5(e,t,r){return e.map((i,n)=>fx(i,t[n],r))}function lxr(e){return e==="rgb"||e==="hcl"||e==="lab"}function Zrt(e,t,r,i){return typeof e=="number"&&e>=0&&e<=255&&typeof t=="number"&&t>=0&&t<=255&&typeof r=="number"&&r>=0&&r<=255?i===void 0||typeof i=="number"&&i>=0&&i<=1?null:`Invalid rgba value [${[e,t,r,i].join(", ")}]: 'a' must be between 0 and 1.`:`Invalid rgba value [${(typeof i=="number"?[e,t,r,i]:[e,t,r]).join(", ")}]: 'r', 'g', and 'b' must be between 0 and 255.`}function q5(e){if(e===null||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||e instanceof tg||e instanceof Ol||e instanceof Dne||e instanceof Xy||e instanceof Vm||e instanceof Um||e instanceof wv||e instanceof qm||e instanceof Om)return!0;if(Array.isArray(e)){for(let t of e)if(!q5(t))return!1;return!0}if(typeof e=="object"){for(let t in e)if(!q5(e[t]))return!1;return!0}return!1}function eh(e){if(e===null)return yC;if(typeof e=="string")return $l;if(typeof e=="boolean")return cu;if(typeof e=="number")return ss;if(e instanceof Ol)return T1;if(e instanceof tg)return oq;if(e instanceof Dne)return sq;if(e instanceof Xy)return gC;if(e instanceof Vm)return lq;if(e instanceof Um)return uq;if(e instanceof wv)return Wk;if(e instanceof qm)return fq;if(e instanceof Om)return xC;if(Array.isArray(e)){let t=e.length,r;for(let i of e){let n=eh(i);if(!r)r=n;else{if(r===n)continue;r=Zl;break}}return K0(r||Zl,t)}return e3}function Nk(e){let t=typeof e;return e===null?"":t==="string"||t==="number"||t==="boolean"?String(e):e instanceof Ol||e instanceof tg||e instanceof Xy||e instanceof Vm||e instanceof Um||e instanceof wv||e instanceof qm||e instanceof Om?e.toString():JSON.stringify(e)}function cq(e,t,r){let i=e.length-1,n=0,a=i,o=0,s,l;for(;n<=a;)if(o=Math.floor((n+a)/2),s=e[o],l=e[o+1],s<=t){if(o===i||tt)a=o-1;else throw new fc("Input is not a number.",r);return 0}function hxr(e,t,r,i){let n=3*e,a=3*(r-e)-n,o=1-n-a,s=3*t,l=3*(i-t)-s,u=1-s-l;return function(f,c=1e-6){if(f<=0)return 0;if(f>=1)return 1;let h=f;for(let v=0;v<8;v++){let y=((o*h+a)*h+n)*h-f;if(Math.abs(y)y?d=h:p=h,h=(d+p)*.5}return((u*h+l)*h+s)*h}}function Gre(e,t,r,i){let n=i-r,a=e-r;return n===0?0:t===1?a/n:(t**+a-1)/(t**+n-1)}function rit(e,t,r=0,i=e.length-1,n=dxr){for(;i>r;){if(i-r>600){let l=i-r+1,u=t-r+1,f=Math.log(l),c=.5*Math.exp(2*f/3),h=.5*Math.sqrt(f*c*(l-c)/l)*(u-l/2<0?-1:1);rit(e,t,Math.max(r,Math.floor(t-u*c/l+h)),Math.min(i,Math.floor(t+(l-u)*c/l+h)),n)}let a=e[t],o=r,s=i;for(Ak(e,r,t),n(e[i],a)>0&&Ak(e,r,i);o0;)s--}n(e[r],a)===0?Ak(e,r,s):(s++,Ak(e,s,i)),s<=t&&(r=s+1),t<=s&&(i=s-1)}}function Ak(e,t,r){let i=e[t];e[t]=e[r],e[r]=i}function dxr(e,t){return et)}function hq(e,t){if(e.length<=1)return[e];let r=[],i,n;for(let a of e){let o=vxr(a);o!==0&&(a.area=Math.abs(o),n===void 0&&(n=o<0),n===o<0?(i&&r.push(i),i=[a]):i.push(a))}if(i&&r.push(i),t>1)for(let a=0;ar}function Sxr(e,t,r){return t<=r}function Exr(e,t,r){return t>=r}function pit(e,t,r,i){return i.compare(t,r)===0}function kxr(e,t,r,i){return!pit(e,t,r,i)}function Cxr(e,t,r,i){return i.compare(t,r)<0}function Dxr(e,t,r,i){return i.compare(t,r)>0}function Fxr(e,t,r,i){return i.compare(t,r)<=0}function Lxr(e,t,r,i){return i.compare(t,r)>=0}function X5(e,t,r){let i=e!=="=="&&e!=="!=";return class vit{constructor(a,o,s,l){this.lhs=a,this.rhs=o,this.key=s,this.collator=l,this.type=cu,this.hasUntypedArgument=a.type.kind==="value"||o.type.kind==="value"}static parse(a,o){if(a.length!==3&&a.length!==4)return o.error("Expected two or three arguments.");let s=a[0],l=o.parse(a[1],1,Zl);if(!l)return null;if(!Aet(s,l.type))return o.concat(1).error(`"${s}" comparisons are not supported for type '${gc(l.type)}'.`);let u=o.parse(a[2],2,Zl);if(!u)return null;if(!Aet(s,u.type))return o.concat(2).error(`"${s}" comparisons are not supported for type '${gc(u.type)}'.`);if(l.type.kind!==u.type.kind&&l.type.kind!=="value"&&u.type.kind!=="value")return o.error(`Cannot compare types '${gc(l.type)}' and '${gc(u.type)}'.`);i&&(l.type.kind==="value"&&u.type.kind!=="value"?l=new Wy(u.type,[l],o.key):l.type.kind!=="value"&&u.type.kind==="value"&&(u=new Wy(l.type,[u],o.key)));let f=null;if(a.length===4){if(l.type.kind!=="string"&&u.type.kind!=="string"&&l.type.kind!=="value"&&u.type.kind!=="value")return o.error("Cannot use collator to compare non-string types.");if(f=o.parse(a[3],3,sq),!f)return null}return new vit(l,u,o.key,f)}evaluate(a){let o=this.lhs.evaluate(a),s=this.rhs.evaluate(a);if(i&&this.hasUntypedArgument){let l=eh(o),u=eh(s);if(l.kind!==u.kind||l.kind!=="string"&&l.kind!=="number")throw new fc(`Expected arguments for "${e}" to be (string, string) or (number, number), but found (${l.kind}, ${u.kind}) instead.`,this.key)}if(this.collator&&!i&&this.hasUntypedArgument){let l=eh(o),u=eh(s);if(l.kind!=="string"||u.kind!=="string")return t(a,o,s)}return this.collator?r(a,o,s,this.collator.evaluate(a)):t(a,o,s)}eachChild(a){a(this.lhs),a(this.rhs),this.collator&&a(this.collator)}outputDefined(){return!0}}}function Uxr(e,t){let r=Gxr(e[0]),i=jxr(e[1]),n=2**t.z;return[Math.round(r*n*Bm),Math.round(i*n*Bm)]}function Lne(e,t){let r=2**t.z,i=(e[0]/Bm+t.x)/r,n=(e[1]/Bm+t.y)/r;return[Hxr(i),Wxr(n)]}function Gxr(e){return(180+e)/360}function Hxr(e){return e*360-180}function jxr(e){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+e*Math.PI/360)))/360}function Wxr(e){return 360/Math.PI*Math.atan(Math.exp((180-e*360)*Math.PI/180))-90}function bC(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.max(e[2],t[0]),e[3]=Math.max(e[3],t[1])}function Yk(e,t){return!(e[0]<=t[0]||e[2]>=t[2]||e[1]<=t[1]||e[3]>=t[3])}function $xr(e,t,r){return t[1]>e[1]!=r[1]>e[1]&&e[0]<(r[0]-t[0])*(e[1]-t[1])/(r[1]-t[1])+t[0]}function Yxr(e,t,r){let i=e[0]-t[0],n=e[1]-t[1],a=e[0]-r[0],o=e[1]-r[1];return i*o-a*n===0&&i*a<=0&&n*o<=0}function dq(e,t,r,i){let n=[t[0]-e[0],t[1]-e[1]];return Jxr([i[0]-r[0],i[1]-r[1]],n)!==0&&!!(Tet(e,t,r,i)&&Tet(r,i,e,t))}function Xxr(e,t,r){for(let i of r)for(let n=0;n0&&c<0||f<0&&c>0}function Pne(e,t,r){let i=[];for(let n=0;nr[2]){let n=i*.5,a=e[0]-r[0]>n?-i:r[0]-e[0]>n?i:0;a===0&&(a=e[0]-r[2]>n?-i:r[2]-e[0]>n?i:0),e[0]+=a}bC(t,e)}function Qxr(e){e[0]=e[1]=1/0,e[2]=e[3]=-1/0}function Met(e,t,r,i){let n=2**i.z*Bm,a=[i.x*Bm,i.y*Bm],o=[];for(let s of e)for(let l of s){let u=[l.x+a[0],l.y+a[1]];Ait(u,t,r,n),o.push(u)}return o}function Eet(e,t,r,i){let n=2**i.z*Bm,a=[i.x*Bm,i.y*Bm],o=[];for(let s of e){let l=[];for(let u of s){let f=[u.x+a[0],u.y+a[1]];bC(t,f),l.push(f)}o.push(l)}if(t[2]-t[0]<=n/2){Qxr(t);for(let s of o)for(let l of s)Ait(l,t,r,n)}return o}function ebr(e,t){let r=[1/0,1/0,-1/0,-1/0],i=[1/0,1/0,-1/0,-1/0],n=e.canonicalID();if(t.type==="Polygon"){let a=Pne(t.coordinates,i,n),o=Met(e.geometry(),r,i,n);if(!Yk(r,i))return!1;for(let s of o)if(!Z5(s,a))return!1}if(t.type==="MultiPolygon"){let a=wit(t.coordinates,i,n),o=Met(e.geometry(),r,i,n);if(!Yk(r,i))return!1;for(let s of o)if(!Zxr(s,a))return!1}return!0}function tbr(e,t){let r=[1/0,1/0,-1/0,-1/0],i=[1/0,1/0,-1/0,-1/0],n=e.canonicalID();if(t.type==="Polygon"){let a=Pne(t.coordinates,i,n),o=Eet(e.geometry(),r,i,n);if(!Yk(r,i))return!1;for(let s of o)if(!_it(s,a))return!1}if(t.type==="MultiPolygon"){let a=wit(t.coordinates,i,n),o=Eet(e.geometry(),r,i,n);if(!Yk(r,i))return!1;for(let s of o)if(!Kxr(s,a))return!1}return!0}function Mit(e,t){return t[0]-e[0]}function k7(e){return e[1]-e[0]+1}function Zy(e,t){return e[1]>=e[0]&&e[1]e[1])return[null,null];let r=k7(e);if(t){if(r===2)return[e,null];let n=Math.floor(r/2);return[[e[0],e[0]+n],[e[0]+n,e[1]]]}if(r===1)return[e,null];let i=Math.floor(r/2)-1;return[[e[0],e[0]+i],[e[0]+i+1,e[1]]]}function uie(e,t){if(!Zy(t,e.length))return[1/0,1/0,-1/0,-1/0];let r=[1/0,1/0,-1/0,-1/0];for(let i=t[0];i<=t[1];++i)bC(r,e[i]);return r}function fie(e){let t=[1/0,1/0,-1/0,-1/0];for(let r of e)for(let i of r)bC(t,i);return t}function Cet(e){return e[0]!==-1/0&&e[1]!==-1/0&&e[2]!==1/0&&e[3]!==1/0}function Rne(e,t,r){if(!Cet(e)||!Cet(t))return NaN;let i=0,n=0;return e[2]t[2]&&(i=e[0]-t[2]),e[1]>t[3]&&(n=e[1]-t[3]),e[3]=i)return i;if(Yk(n,a)){if(Det(e,t))return 0}else if(Det(t,e))return 0;let o=1/0;for(let s of e)for(let l=0,u=s.length,f=u-1;l0;){let l=o.pop();if(l[0]>=a)continue;let u=l[1],f=t?50:100;if(k7(u)<=f){if(!Zy(u,e.length))return NaN;if(t){let c=abr(e,u,r,i);if(isNaN(c)||c===0)return c;a=Math.min(a,c)}else for(let c=u[0];c<=u[1];++c){let h=nbr(e[c],r,i);if(a=Math.min(a,h),a===0)return 0}}else{let c=lie(u,t);Fet(o,a,i,e,s,c[0]),Fet(o,a,i,e,s,c[1])}}return a}function D7(e,t,r,i,n,a=1/0){let o=Math.min(a,n.distance(e[0],r[0]));if(o===0)return o;let s=new Tit([[0,[0,e.length-1],[0,r.length-1]]],Mit);for(;s.length>0;){let l=s.pop();if(l[0]>=o)continue;let u=l[1],f=l[2],c=t?50:100,h=i?50:100;if(k7(u)<=c&&k7(f)<=h){if(!Zy(u,e.length)&&Zy(f,r.length))return NaN;let d;if(t&&i)d=rbr(e,u,r,f,n),o=Math.min(o,d);else if(t&&!i){let p=e.slice(u[0],u[1]+1);for(let v=f[0];v<=f[1];++v)if(d=J_(r[v],p,n),o=Math.min(o,d),o===0)return o}else if(!t&&i){let p=r.slice(f[0],f[1]+1);for(let v=u[0];v<=u[1];++v)if(d=J_(e[v],p,n),o=Math.min(o,d),o===0)return o}else d=ibr(e,u,r,f,n),o=Math.min(o,d)}else{let d=lie(u,t),p=lie(f,i);l7(s,o,n,e,r,d[0],p[0]),l7(s,o,n,e,r,d[0],p[1]),l7(s,o,n,e,r,d[1],p[0]),l7(s,o,n,e,r,d[1],p[1])}}return o}function sbr(e,t){let r=e.geometry(),i=r.flat().map(o=>Lne([o.x,o.y],e.canonical));if(r.length===0)return NaN;let n=new Ine(i[0][1]),a=1/0;for(let o of t){switch(o.type){case"Point":a=Math.min(a,D7(i,!1,[o.coordinates],!1,n,a));break;case"LineString":a=Math.min(a,D7(i,!1,o.coordinates,!0,n,a));break;case"Polygon":a=Math.min(a,C7(i,!1,o.coordinates,n,a))}if(a===0)return a}return a}function lbr(e,t){let r=e.geometry(),i=r.flat().map(o=>Lne([o.x,o.y],e.canonical));if(r.length===0)return NaN;let n=new Ine(i[0][1]),a=1/0;for(let o of t){switch(o.type){case"Point":a=Math.min(a,D7(i,!0,[o.coordinates],!1,n,a));break;case"LineString":a=Math.min(a,D7(i,!0,o.coordinates,!0,n,a));break;case"Polygon":a=Math.min(a,C7(i,!0,o.coordinates,n,a))}if(a===0)return a}return a}function ubr(e,t){let r=e.geometry();if(r.length===0||r[0].length===0)return NaN;let i=hq(r,0).map(o=>o.map(s=>s.map(l=>Lne([l.x,l.y],e.canonical)))),n=new Ine(i[0][0][0][1]),a=1/0;for(let o of t)for(let s of i){switch(o.type){case"Point":a=Math.min(a,C7([o.coordinates],!1,s,n,a));break;case"LineString":a=Math.min(a,C7(o.coordinates,!0,s,n,a));break;case"Polygon":a=Math.min(a,obr(s,o.coordinates,n,a))}if(a===0)return a}return a}function Hre(e){return e.type==="MultiPolygon"?e.coordinates.map(t=>({type:"Polygon",coordinates:t})):e.type==="MultiLineString"?e.coordinates.map(t=>({type:"LineString",coordinates:t})):e.type==="MultiPoint"?e.coordinates.map(t=>({type:"Point",coordinates:t})):[e]}function Let(e,[t,r,i,n],a){t=t.evaluate(e),r=r.evaluate(e),i=i.evaluate(e);let o=n?n.evaluate(e):1,s=Zrt(t,r,i,o);if(s)throw new fc(s,a);return new Ol(t/255,r/255,i/255,o,!1)}function Pet(e,t){return e in t&&t[e]!==void 0}function jre(e,t){let r=t[e];return r===void 0?null:r}function hbr(e,t,r,i){for(;r<=i;){let n=r+i>>1;if(t[n]===e)return!0;t[n]>e?i=n-1:r=n+1}return!1}function Y_(e){return{type:e}}function dbr(e){return Array.isArray(e)?`(${e.map(gc).join(", ")})`:`(${gc(e.type)}...)`}function F7(e){if(e instanceof sit)return F7(e.boundExpression);if(e instanceof h3&&e.name==="error"||e instanceof mit||e instanceof zne||e instanceof qne||e instanceof One)return!1;let t=e instanceof E5||e instanceof Wy,r=!0;return e.eachChild(i=>{r&&(r=t?F7(i):i instanceof O5)}),r?pq(e)&&vq(e,["zoom","heatmap-density","elevation","line-progress","accumulated","is-supported-script"]):!1}function pq(e){if(e instanceof h3&&(e.name==="get"&&e.args.length===1||e.name==="feature-state"||e.name==="has"&&e.args.length===1||e.name==="properties"||e.name==="geometry-type"||e.name==="id"||/^filter-/.test(e.name))||e instanceof zne||e instanceof qne)return!1;let t=!0;return e.eachChild(r=>{t&&!pq(r)&&(t=!1)}),t}function Xk(e){if(e instanceof h3&&e.name==="feature-state")return!1;let t=!0;return e.eachChild(r=>{t&&!Xk(r)&&(t=!1)}),t}function vq(e,t){if(e instanceof h3&&t.indexOf(e.name)>=0)return!1;let r=!0;return e.eachChild(i=>{r&&!vq(i,t)&&(r=!1)}),r}function N5(e){return e["property-type"]==="data-driven"||e["property-type"]==="cross-faded-data-driven"}function Fit(e){return!!e.expression&&e.expression.parameters.indexOf("zoom")>-1}function Nne(e){return!!e.expression&&e.expression.interpolated}function Zk(e,...t){for(let r of t)for(let i in r)e[i]=r[i];return e}function au(e){return e instanceof Number?"number":e instanceof String?"string":e instanceof Boolean?"boolean":Array.isArray(e)?"array":e===null?"null":typeof e}function mq(e){return typeof e=="object"&&!!e&&!Array.isArray(e)&&eh(e)===e3}function pbr(e){return e}function vbr(e){switch(e.type){case"color":return Ol.parse;case"padding":return Vm.parse;case"numberArray":return Um.parse;case"colorArray":return wv.parse;default:return null}}function mbr(e){switch(e){case"exponential":return Pit;case"interval":return gbr;case"categorical":return ybr;case"identity":return xbr;default:throw Error(`Unknown function type "${e}"`)}}function Lit(e,t){let r=e.stops&&typeof e.stops[0][0]=="object",i=r||e.property!==void 0,n=r||!i,a=e.type||(Nne(t)?"exponential":"interval"),o=vbr(t);if(o&&(e=Zk({},e),e.stops&&(e.stops=e.stops.map(f=>[f[0],o(f[1])])),e.default?e.default=o(e.default):e.default=o(t.default)),e.colorSpace&&!lxr(e.colorSpace))throw Error(`Unknown color space: "${e.colorSpace}"`);let s=mbr(a),l,u;if(a==="categorical"){l=Object.create(null);for(let f of e.stops)l[f[0]]=f[1];u=typeof e.stops[0][0]}if(r){let f={},c=[];for(let p=0;pp[0]),evaluate({zoom:p},v){return Pit({stops:h,base:e.base},t,p).evaluate(p,v)}}}if(n){let f=a==="exponential"?{name:"exponential",base:e.base===void 0?1:e.base}:null;return{kind:"camera",interpolationType:f,interpolationFactor:Av.interpolationFactor.bind(void 0,f),zoomStops:e.stops.map(c=>c[0]),evaluate:({zoom:c})=>s(e,t,c,l,u)}}return{kind:"source",evaluate(f,c){let h=c&&c.properties?c.properties[e.property]:void 0;return h===void 0?_C(e.default,t.default):s(e,t,h,l,u)}}}function _C(e,t,r){if(e!==void 0)return e;if(t!==void 0)return t;if(r!==void 0)return r}function ybr(e,t,r,i,n){return _C(typeof r===n?i[r]:void 0,e.default,t.default)}function gbr(e,t,r){if(au(r)!=="number")return _C(e.default,t.default);let i=e.stops.length;if(i===1||r<=e.stops[0][0])return e.stops[0][1];if(r>=e.stops[i-1][0])return e.stops[i-1][1];let n=cq(e.stops.map(a=>a[0]),r,"");return e.stops[n][1]}function Pit(e,t,r){let i=e.base===void 0?1:e.base;if(au(r)!=="number")return _C(e.default,t.default);let n=e.stops.length;if(n===1||r<=e.stops[0][0])return e.stops[0][1];if(r>=e.stops[n-1][0])return e.stops[n-1][1];let a=cq(e.stops.map(f=>f[0]),r,""),o=bbr(r,i,e.stops[a][0],e.stops[a+1][0]),s=e.stops[a][1],l=e.stops[a+1][1],u=ec[t.type]||pbr;return typeof s.evaluate=="function"?{evaluate(...f){let c=s.evaluate.apply(void 0,f),h=l.evaluate.apply(void 0,f);if(c!==void 0&&h!==void 0)return u(c,h,o,e.colorSpace)}}:u(s,l,o,e.colorSpace)}function xbr(e,t,r){switch(t.type){case"color":r=Ol.parse(r);break;case"formatted":r=Xy.fromString(r.toString());break;case"resolvedImage":r=Om.fromString(r.toString());break;case"padding":r=Vm.parse(r);break;case"colorArray":r=wv.parse(r);break;case"numberArray":r=Um.parse(r);break;default:au(r)!==t.type&&(t.type!=="enum"||!t.values[r])&&(r=void 0)}return _C(r,e.default,t.default)}function bbr(e,t,r,i){let n=i-r,a=e-r;return n===0?0:t===1?a/n:(t**+a-1)/(t**+n-1)}function cie(e){return{result:"success",value:e}}function T5(e){return{result:"error",value:e}}function zit(e,t,r,i){return`${e}${t}: ${r}${i==null?"":` Falling back to ${String(i)}.`}`}function Iit(e){if(!e)throw Error('rootKey must identify the location of the expression in the style JSON, e.g. "layers[3].paint.line-width".')}function yq(e){return Array.isArray(e)&&e.length>0&&typeof e[0]=="string"&&e[0]in D5}function gq(e,t,r,i){Iit(t);let n=new Cit(D5,F7,[],r?Abr(r):void 0),a=n.parse(e,void 0,void 0,void 0,r&&r.type==="string"?{typeAnnotation:"coerce"}:void 0);return a?cie(new Une(a,t,r,i)):T5(n.errors)}function _br(e){return e._styleExpression!==void 0}function Rit(e,t,r,i){let n=gq(e,t,r,i);if(n.result==="error")return n;let a=n.value.expression,o=pq(a);if(!o&&!N5(r))return T5([new Pm("","data expressions not supported")]);let s=vq(a,["zoom"]);if(!s&&!Fit(r))return T5([new Pm("","zoom expressions not supported")]);let l=M7(a);if(!l&&!s)return T5([new Pm("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.')]);if(l instanceof Pm)return T5([l]);if(l instanceof Av&&!Nne(r))return T5([new Pm("",'"interpolate" expressions cannot be used with this property')]);if(!l)return cie(o?new Kk("constant",n.value,i):new Kk("source",n.value,i));let u=l instanceof Av?l.interpolation:void 0;return cie(o?new L7("camera",n.value,l.labels,u,i):new L7("composite",n.value,l.labels,u,i))}function wbr(e,t,r,i){if(mq(e))return new Bit(e,t,r);if(yq(e)){let n=Rit(e,t,r,i);if(n.result==="error")throw Error(n.value.map(a=>`${a.key}: ${a.message}`).join(", "));return n.value}{let n=e;return r.type==="color"&&typeof e=="string"?n=Ol.parse(e):r.type==="padding"&&(typeof e=="number"||Array.isArray(e))?n=Vm.parse(e):r.type==="numberArray"&&(typeof e=="number"||Array.isArray(e))?n=Um.parse(e):r.type==="colorArray"&&(typeof e=="string"||Array.isArray(e))?n=wv.parse(e):r.type==="variableAnchorOffsetCollection"&&Array.isArray(e)?n=qm.parse(e):r.type==="projectionDefinition"&&typeof e=="string"&&(n=tg.parse(e)),{globalStateRefs:new Set,_globalState:null,kind:"constant",evaluate:()=>n}}}function M7(e){let t=null;if(e instanceof ait)t=M7(e.result);else if(e instanceof dit){for(let r of e.args)if(t=M7(r),t)break}else(e instanceof Fne||e instanceof Av)&&e.input instanceof h3&&e.input.name==="zoom"&&(t=e);return t instanceof Pm||e.eachChild(r=>{let i=M7(r);i instanceof Pm?t=i:!t&&i?t=new Pm("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.'):t&&i&&t!==i&&(t=new Pm("",'Only one zoom-based "step" or "interpolate" subexpression may be used in an expression.'))}),t}function wC(e,t=new Set){return e instanceof One&&t.add(e.key),e.eachChild(r=>{wC(r,t)}),t}function Abr(e){let t={color:T1,string:$l,number:ss,enum:$l,boolean:cu,formatted:gC,padding:lq,numberArray:uq,colorArray:Wk,projectionDefinition:oq,resolvedImage:xC,variableAnchorOffsetCollection:fq};return e.type==="array"?K0(t[e.value]||Zl,e.length):t[e.type]}function Oit(e){if(e.type==="color"&&mq(e.default))return new Ol(0,0,0,0);switch(e.type){case"color":return Ol.parse(e.default)||null;case"padding":return Vm.parse(e.default)||null;case"numberArray":return Um.parse(e.default)||null;case"colorArray":return wv.parse(e.default)||null;case"variableAnchorOffsetCollection":return qm.parse(e.default)||null;case"projectionDefinition":return tg.parse(e.default)||null;default:return e.default===void 0?null:e.default}}function V5(e,t){let{zoom:r,heatmapDensity:i,elevation:n,lineProgress:a,isSupportedScript:o,accumulated:s}=e!=null?e:{};return{zoom:r,heatmapDensity:i,elevation:n,lineProgress:a,isSupportedScript:o,accumulated:s,globalState:t}}function Tbr(e){let t=!1;for(let r of e){let i=Nit(r);if(i==="expression")return"expression";i==="legacy"&&(t=!0)}return t?"legacy":"neutral"}function Nit(e){if(typeof e=="boolean")return"neutral";if(!Array.isArray(e)||e.length===0)return"legacy";switch(e[0]){case"has":return e.length<2||e[1]==="$id"||e[1]==="$type"?"legacy":e.length===2?"neutral":"expression";case"in":return e.length>=3&&(typeof e[1]!="string"||Array.isArray(e[2]))?"expression":"legacy";case"!in":case"!has":return"legacy";case"==":case"!=":case">":case">=":case"<":case"<=":return e.length!==3||Array.isArray(e[1])||Array.isArray(e[2])?"expression":"legacy";case"none":return"legacy";case"any":case"all":return Tbr(e.slice(1));default:return"expression"}}function Gne(e){return Nit(e)!=="legacy"}function zet(e){return e==="$type"?["geometry-type"]:e==="$id"?["id"]:["get",e]}function Mbr(e){switch(e[0]){case"==":case"!=":case"<":case"<=":case">":case">=":return e.length!==3||typeof e[1]!="string"?null:[e[0],zet(e[1]),e[2]];case"in":case"!in":{if(e.length<2||typeof e[1]!="string")return null;let t=["in",zet(e[1]),["literal",e.slice(2)]];return e[0]==="!in"?["!",t]:t}case"has":case"!has":{if(e.length!==2||typeof e[1]!="string"||e[1]==="$type"||e[1]==="$id")return null;let t=["has",e[1]];return e[0]==="!has"?["!",t]:t}default:return null}}function Vit(e){if((e[0]==="<"||e[0]==="<="||e[0]===">"||e[0]===">=")&&e[1]==="$type")return`"$type" cannot be use with operator "${e[0]}"`;let t=Mbr(e);return t?`Mixing deprecated filter syntax with expression syntax is not supported. Replace ${JSON.stringify(e)} with ${JSON.stringify(t)}.`:`Mixing deprecated filter syntax with expression syntax is not supported. Convert ${JSON.stringify(e)} to expression syntax.`}function Wre(e,t,r){let i=r[e];return Array.isArray(i)?Gne(i)?Hne(i,t.concat(e)):{path:t.concat(e),legacyFilter:i}:null}function Hne(e,t=[]){if(!Array.isArray(e)||e.length<1)return null;switch(e[0]){case"all":case"any":case"none":for(let r=1;r"u")return;let i=r.path.map(n=>`[${n}]`).join("");console.warn(`${t}${i}: ${Vit(r.legacyFilter)}`)}function U5(e,t,r){if(e==null)return{filter:()=>!0,needGeometry:!1,getGlobalStateRefs:()=>new Set};Gne(e)?Sbr(e,t):e=P7(e);let i=gq(e,t,Ebr,r);if(i.result==="error")throw Error(i.value.map(n=>`${n.key}: ${n.message}`).join(", "));return{filter:(n,a,o)=>i.value.evaluate(n,a,{},o),needGeometry:Uit(e),getGlobalStateRefs:()=>wC(i.value.expression)}}function kbr(e,t){return et)}function Uit(e){if(!Array.isArray(e))return!1;if(e[0]==="within"||e[0]==="distance")return!0;for(let t=1;t"||t==="<="||t===">="?$re(e[1],e[2],t):t==="any"?Cbr(e.slice(1)):t==="all"?["all"].concat(e.slice(1).map(P7)):t==="none"?["all"].concat(e.slice(1).map(P7).map(u7)):t==="in"?Iet(e[1],e.slice(2)):t==="!in"?u7(Iet(e[1],e.slice(2))):t==="has"?Ret(e[1]):t!=="!has"||u7(Ret(e[1]))}function $re(e,t,r){switch(e){case"$type":return[`filter-type-${r}`,t];case"$id":return[`filter-id-${r}`,t];default:return[`filter-${r}`,e,t]}}function Cbr(e){return["any"].concat(e.map(P7))}function Iet(e,t){if(t.length===0)return!1;switch(e){case"$type":return["filter-type-in",["literal",t]];case"$id":return["filter-id-in",["literal",t]];default:return t.length>200&&!t.some(r=>typeof r!=typeof t[0])?["filter-in-large",e,["literal",t.sort(kbr)]]:["filter-in-small",e,["literal",t]]}}function Ret(e){switch(e){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",e]}}function u7(e){return["!",e]}function Git(e){let t=e.key,r=e.value;return r?[new wo(t,r,"constants have been deprecated as of v8")]:[]}function Jc(e){return e instanceof Number||e instanceof String||e instanceof Boolean?e.valueOf():e}function a3(e){if(Array.isArray(e))return e.map(a3);if(e instanceof Object&&!(e instanceof Number||e instanceof String||e instanceof Boolean)){let t={};for(let r in e)t[r]=a3(e[r]);return t}return Jc(e)}function gp(e){let t=e.key,r=e.value,i=e.valueSpec||{},n=e.objectElementValidators||{},a=e.style,o=e.styleSpec,s=e.validateSpec,l=[],u=au(r);if(u!=="object")return[new wo(t,r,`object expected, ${u} found`)];for(let f in r){let c=f.split(".")[0],h=Ok(i,c)||i["*"],d;if(Ok(n,c))d=n[c];else if(Ok(i,c)){if(r[f]===void 0)continue;d=s}else if(n["*"])d=n["*"];else if(i["*"])d=s;else{l.push(new wo(t,r[f],`unknown property "${f}"`));continue}l=l.concat(d({key:(t&&`${t}.`)+f,value:r[f],valueSpec:h,style:a,styleSpec:o,object:r,objectKey:f,validateSpec:s},r))}for(let f in i)n[f]||i[f].required&&i[f].default===void 0&&r[f]===void 0&&l.push(new wo(t,r,`missing required property "${f}"`));return l}function jne(e){let t=e.value,r=e.valueSpec,i=e.validateSpec,n=e.style,a=e.styleSpec,o=e.key,s=e.arrayElementValidator||i;if(au(t)!=="array")return[new wo(o,t,`array expected, ${au(t)} found`)];if(r.length&&t.length!==r.length)return[new wo(o,t,`array length ${r.length} expected, length ${t.length} found`)];let l={type:r.value,values:r.values};a.$version<7&&(l.function=r.function),au(r.value)==="object"&&(l=r.value);let u=[];for(let f=0;fi.maximum?[new wo(t,r,`${r} is greater than the maximum value ${i.maximum}`)]:[]:[new wo(t,r,`number expected, ${n} found`)]}function Hit(e){let t=e.valueSpec,r=Jc(e.value.type),i,n={},a,o,s=r!=="categorical"&&e.value.property===void 0,l=!s,u=au(e.value.stops)==="array"&&au(e.value.stops[0])==="array"&&au(e.value.stops[0][0])==="object",f=gp({key:e.key,value:e.value,valueSpec:e.styleSpec.function,validateSpec:e.validateSpec,style:e.style,styleSpec:e.styleSpec,objectElementValidators:{stops:c,default:p}});return r==="identity"&&s&&f.push(new wo(e.key,e.value,'missing required property "property"')),r!=="identity"&&!e.value.stops&&f.push(new wo(e.key,e.value,'missing required property "stops"')),r==="exponential"&&e.valueSpec.expression&&!Nne(e.valueSpec)&&f.push(new wo(e.key,e.value,"exponential functions not supported")),e.styleSpec.$version>=8&&(l&&!N5(e.valueSpec)?f.push(new wo(e.key,e.value,"property functions not supported")):s&&!Fit(e.valueSpec)&&f.push(new wo(e.key,e.value,"zoom functions not supported"))),(r==="categorical"||u)&&e.value.property===void 0&&f.push(new wo(e.key,e.value,'"property" property is required')),f;function c(v){if(r==="identity")return[new wo(v.key,v.value,'identity function may not have a "stops" property')];let y=[],m=v.value;return y=y.concat(jne({key:v.key,value:m,valueSpec:v.valueSpec,validateSpec:v.validateSpec,style:v.style,styleSpec:v.styleSpec,arrayElementValidator:h})),au(m)==="array"&&m.length===0&&y.push(new wo(v.key,m,"array must have at least one stop")),y}function h(v){let y=[],m=v.value,w=v.key;if(au(m)!=="array")return[new wo(w,m,`array expected, ${au(m)} found`)];if(m.length!==2)return[new wo(w,m,`array length 2 expected, length ${m.length} found`)];if(u){if(au(m[0])!=="object")return[new wo(w,m,`object expected, ${au(m[0])} found`)];if(m[0].zoom===void 0)return[new wo(w,m,"object stop key must have zoom")];if(m[0].value===void 0)return[new wo(w,m,"object stop key must have value")];if(o&&o>Jc(m[0].zoom))return[new wo(w,m[0].zoom,"stop zoom values must appear in ascending order")];Jc(m[0].zoom)!==o&&(o=Jc(m[0].zoom),a=void 0,n={}),y=y.concat(gp({key:`${w}[0]`,value:m[0],valueSpec:{zoom:{}},validateSpec:v.validateSpec,style:v.style,styleSpec:v.styleSpec,objectElementValidators:{zoom:xq,value:d}}))}else y=y.concat(d({key:`${w}[0]`,value:m[0],valueSpec:{},validateSpec:v.validateSpec,style:v.style,styleSpec:v.styleSpec},m));return yq(a3(m[1]))?y.concat([new wo(`${w}[1]`,m[1],"expressions are not allowed in function stops.")]):y.concat(v.validateSpec({key:`${w}[1]`,value:m[1],valueSpec:t,validateSpec:v.validateSpec,style:v.style,styleSpec:v.styleSpec}))}function d(v,y){let m=au(v.value),w=Jc(v.value),_=v.value===null?y:v.value;if(!i)i=m;else if(m!==i)return[new wo(v.key,_,`${m} stop domain type must match previous stop domain type ${i}`)];if(m!=="number"&&m!=="string"&&m!=="boolean")return[new wo(v.key,_,"stop domain value must be a number, string, or boolean")];if(m!=="number"&&r!=="categorical"){let b=`number expected, ${m} found`;return N5(t)&&r===void 0&&(b+='\nIf you intended to use a categorical function, specify `"type": "categorical"`.'),[new wo(v.key,_,b)]}return r==="categorical"&&m==="number"&&(!isFinite(w)||Math.floor(w)!==w)?[new wo(v.key,_,`integer expected, found ${w}`)]:r!=="categorical"&&m==="number"&&a!==void 0&&wnew wo(`${e.key}${i.key}`,e.value,i.message));let r=t.value.expression||t.value._styleExpression.expression;if(e.expressionContext==="property"&&e.propertyKey==="text-font"&&!r.outputDefined())return[new wo(e.key,e.value,`Invalid data expression for "${e.propertyKey}". Output values must be contained as literals within the expression.`)];if(e.expressionContext==="property"&&e.propertyType==="layout"&&!Xk(r))return[new wo(e.key,e.value,'"feature-state" data expressions are not supported with layout properties.')];if(e.expressionContext==="filter"&&!Xk(r))return[new wo(e.key,e.value,'"feature-state" data expressions are not supported with filters.')];if(e.expressionContext&&e.expressionContext.indexOf("cluster")===0){if(!vq(r,["zoom","feature-state"]))return[new wo(e.key,e.value,'"zoom" and "feature-state" expressions are not supported with cluster properties.')];if(e.expressionContext==="cluster-initial"&&!pq(r))return[new wo(e.key,e.value,"Feature data expressions are not supported with initial expression part of cluster properties.")]}return[]}function Dbr(e){let t=e.value,r=e.key,i=au(t);return i==="boolean"?[]:[new wo(r,t,`boolean expected, ${i} found`)]}function hie(e){let t=e.key,r=e.value,i=au(r);return i==="string"?Ol.parse(String(r))?[]:[new wo(t,r,`color expected, "${r}" found`)]:[new wo(t,r,`color expected, ${i} found`)]}function Jk(e){let t=e.key,r=e.value,i=e.valueSpec,n=[];return Array.isArray(i.values)?i.values.indexOf(Jc(r))===-1&&n.push(new wo(t,r,`expected one of [${i.values.join(", ")}], ${JSON.stringify(r)} found`)):Object.keys(i.values).indexOf(Jc(r))===-1&&n.push(new wo(t,r,`expected one of [${Object.keys(i.values).join(", ")}], ${JSON.stringify(r)} found`)),n}function Fbr(e,t){let r=e;for(let i of t)r=r[i];return r}function Lbr(e,t){let r=Hne(t);return r?[new wo(`${e.key}${r.path.map(i=>`[${i}]`).join("")}`,Fbr(e.value,r.path),Vit(r.legacyFilter),null,"warning")]:[]}function Wne(e){let t=a3(e.value);return Gne(t)?[...Lbr(e,t),...G5(Zk({},e,{expressionContext:"filter",valueSpec:{value:"boolean"}}))]:jit(e)}function jit(e){let t=e.value,r=e.key;if(au(t)!=="array")return[new wo(r,t,`array expected, ${au(t)} found`)];let i=e.styleSpec,n,a=[];if(t.length<1)return[new wo(r,t,"filter array must have at least 1 element")];switch(a=a.concat(Jk({key:`${r}[0]`,value:t[0],valueSpec:i.filter_operator,style:e.style,styleSpec:e.styleSpec})),Jc(t[0])){case"<":case"<=":case">":case">=":t.length>=2&&Jc(t[1])==="$type"&&a.push(new wo(r,t,`"$type" cannot be use with operator "${t[0]}"`));case"==":case"!=":t.length!==3&&a.push(new wo(r,t,`filter array for operator "${t[0]}" must have 3 elements`));case"in":case"!in":t.length>=2&&(n=au(t[1]),n!=="string"&&a.push(new wo(`${r}[1]`,t[1],`string expected, ${n} found`)));for(let o=2;o{c in r&&t.push(new wo(i,r[c],`"${c}" is prohibited for ref layers`))});let f;n.layers.forEach(c=>{Jc(c.id)===s&&(f=c)}),f?f.ref?t.push(new wo(i,r.ref,"ref cannot reference another ref layer")):o=Jc(f.type):t.push(new wo(i,r.ref,`ref layer "${s}" not found`))}else if(o!=="background")if(!r.source)t.push(new wo(i,r,'missing required property "source"'));else{let f=n.sources&&n.sources[r.source],c=f&&Jc(f.type);f?c==="vector"&&o==="raster"?t.push(new wo(i,r.source,`layer "${r.id}" requires a raster source`)):c!=="raster-dem"&&o==="hillshade"||c!=="raster-dem"&&o==="color-relief"?t.push(new wo(i,r.source,`layer "${r.id}" requires a raster-dem source`)):c==="raster"&&o!=="raster"?t.push(new wo(i,r.source,`layer "${r.id}" requires a vector source`)):c==="vector"&&!r["source-layer"]?t.push(new wo(i,r,`layer "${r.id}" must specify a "source-layer"`)):c==="raster-dem"&&o!=="hillshade"&&o!=="color-relief"?t.push(new wo(i,r.source,"raster-dem source can only be used with layer type 'hillshade' or 'color-relief'.")):o==="line"&&r.paint&&r.paint["line-gradient"]&&(c!=="geojson"||!f.lineMetrics)&&t.push(new wo(i,r,`layer "${r.id}" specifies a line-gradient, which requires a GeoJSON source with \`lineMetrics\` enabled.`)):t.push(new wo(i,r.source,`source "${r.source}" not found`))}return o==="raster"&&((l=r.paint)!=null&&l.resampling)&&((u=r.paint)!=null&&u["raster-resampling"])&&t.push(new wo(i,r.paint,`layer "${r.id}" redundantly specifies "resampling" and "raster-resampling" paint properties, but only one is allowed. It is advised to use "resampling".`)),t=t.concat(gp({key:i,value:r,valueSpec:a.layer,style:e.style,styleSpec:e.styleSpec,validateSpec:e.validateSpec,objectElementValidators:{"*"(){return[]},type(){return e.validateSpec({key:`${i}.type`,value:r.type,valueSpec:a.layer.type,style:e.style,styleSpec:e.styleSpec,validateSpec:e.validateSpec,object:r,objectKey:"type"})},filter:Wne,layout(f){return gp({layer:r,key:f.key,value:f.value,style:f.style,styleSpec:f.styleSpec,validateSpec:f.validateSpec,objectElementValidators:{"*"(c){return Yit(Zk({layerType:o},c))}}})},paint(f){return gp({layer:r,key:f.key,value:f.value,style:f.style,styleSpec:f.styleSpec,validateSpec:f.validateSpec,objectElementValidators:{"*"(c){return $it(Zk({layerType:o},c))}}})}}})),t}function dx(e){let t=e.value,r=e.key,i=au(t);return i==="string"?[]:[new wo(r,t,`string expected, ${i} found`)]}function Pbr(e){var c;let t=(c=e.sourceName)!=null?c:"",r=e.value,i=e.styleSpec,n=i.source_raster_dem,a=e.style,o=[],s=au(r);if(r===void 0)return o;if(s!=="object")return o.push(new wo("source_raster_dem",r,`object expected, ${s} found`)),o;let l=Jc(r.encoding)==="custom",u=["redFactor","greenFactor","blueFactor","baseShift"],f=e.value.encoding?`"${e.value.encoding}"`:"Default";for(let h in r)!l&&u.includes(h)?o.push(new wo(h,r[h],`In "${t}": "${h}" is only valid when "encoding" is set to "custom". ${f} encoding found`)):n[h]?o=o.concat(e.validateSpec({key:h,value:r[h],valueSpec:n[h],validateSpec:e.validateSpec,style:a,styleSpec:i})):o.push(new wo(h,r[h],`unknown property "${h}"`));return o}function Zit(e){let t=e.value,r=e.key,i=e.styleSpec,n=e.style,a=e.validateSpec;if(!t.type)return[new wo(r,t,'"type" is required')];let o=Jc(t.type),s;switch(o){case"vector":case"raster":return s=gp({key:r,value:t,valueSpec:i[`source_${o.replace("-","_")}`],style:e.style,styleSpec:i,objectElementValidators:Bet,validateSpec:a}),s;case"raster-dem":return s=Pbr({sourceName:r,value:t,style:e.style,styleSpec:i,validateSpec:a}),s;case"geojson":if(s=gp({key:r,value:t,valueSpec:i.source_geojson,style:n,styleSpec:i,validateSpec:a,objectElementValidators:Bet}),t.cluster)for(let l in t.clusterProperties){let[u,f]=t.clusterProperties[l],c=typeof u=="string"?[u,["accumulated"],["get",l]]:u;s.push(...G5({key:`${r}.${l}.map`,value:f,validateSpec:a,expressionContext:"cluster-map"})),s.push(...G5({key:`${r}.${l}.reduce`,value:c,validateSpec:a,expressionContext:"cluster-reduce"}))}return s;case"video":return gp({key:r,value:t,valueSpec:i.source_video,style:n,validateSpec:a,styleSpec:i});case"image":return gp({key:r,value:t,valueSpec:i.source_image,style:n,validateSpec:a,styleSpec:i});case"canvas":return[new wo(r,null,"Please use runtime APIs to add canvas sources, rather than including them in stylesheets.","source.canvas")];default:return Jk({key:`${r}.type`,value:t.type,valueSpec:{values:["vector","raster","raster-dem","geojson","video","image"]},style:n,validateSpec:a,styleSpec:i})}}function zbr({key:e,value:t}){if(au(t)==="string")return dx({key:e,value:t});{let r=[];for(let i in t)r.push(...dx({key:`${e}.${i}`,value:t[i]}));return r}}function Kit(e){let t=e.value,r=e.styleSpec,i=r.light,n=e.style,a=[],o=au(t);if(t===void 0)return a;if(o!=="object")return a=a.concat([new wo("light",t,`object expected, ${o} found`)]),a;for(let s in t){let l=s.match(Vne);a=l&&i[l[1]]&&i[l[1]].transition?a.concat(e.validateSpec({key:s,value:t[s],valueSpec:r.transition,validateSpec:e.validateSpec,style:n,styleSpec:r})):i[s]?a.concat(e.validateSpec({key:s,value:t[s],valueSpec:i[s],validateSpec:e.validateSpec,style:n,styleSpec:r})):a.concat([new wo(s,t[s],`unknown property "${s}"`)])}return a}function Jit(e){let t=e.value,r=e.styleSpec,i=r.sky,n=e.style,a=au(t);if(t===void 0)return[];if(a!=="object")return[new wo("sky",t,`object expected, ${a} found`)];let o=[];for(let s in t){let l=s.match(Vne);o=l&&i[l[1]]&&i[l[1]].transition?o.concat(e.validateSpec({key:s,value:t[s],valueSpec:r.transition,style:n,styleSpec:r})):i[s]?o.concat(e.validateSpec({key:s,value:t[s],valueSpec:i[s],style:n,styleSpec:r})):o.concat([new wo(s,t[s],`unknown property "${s}"`)])}return o}function Qit(e){let t=e.value,r=e.styleSpec,i=r.terrain,n=e.style,a=[],o=au(t);if(t===void 0)return a;if(o!=="object")return a=a.concat([new wo("terrain",t,`object expected, ${o} found`)]),a;for(let s in t)a=i[s]?a.concat(e.validateSpec({key:s,value:t[s],valueSpec:i[s],validateSpec:e.validateSpec,style:n,styleSpec:r})):a.concat([new wo(s,t[s],`unknown property "${s}"`)]);return a}function Ibr(e){return dx(e).length===0?[]:G5(e)}function Rbr(e){return dx(e).length===0?[]:G5(e)}function Bbr(e){let t=e.key,r=e.value;if(au(r)==="array"){if(r.length<1||r.length>4)return[new wo(t,r,`padding requires 1 to 4 values; ${r.length} values found`)];let i={type:"number"},n=[];for(let a=0;a[new wo(e,t,'invalid unicode range, expected a value such as "U+26", "U+0-10FFFF" or "U+4??"')],n=r.match(jbr);if(!n)return i();let[,a,o,s]=n;if(s!==void 0)return s.length>6?i():[];let l=parseInt(a,16),u=o===void 0?l:parseInt(o,16);return l>qet||u>qet?[new wo(e,t,"unicode range is out of bounds, the maximum code point is U+10FFFF")]:l>u?[new wo(e,t,`unicode range start must not be greater than its end, but ${r} is`)]:[]}function rnt(e){var s,l;let t=(s=e.key)!=null?s:"font-faces",r=e.value,i=e.validateSpec,n=(l=e.styleSpec)!=null?l:Nrt,a=e.style;if(!die(r))return[new wo(t,r,`object expected, ${au(r)} found`)];let o=[];for(let u in r){let f=r[u],c=au(f);if(c==="string")o.push(...dx({key:`${t}.${u}`,value:f}));else if(c==="array"){let h={url:{type:"string",required:!0},"unicode-range":{type:"array",value:"string"}};for(let[d,p]of f.entries()){let v=`${t}.${u}[${d}]`;o.push(...gp({key:v,value:p,valueSpec:h,styleSpec:n,style:a,validateSpec:i}));let y=die(p)?p["unicode-range"]:void 0;if(au(y)==="array")for(let[m,w]of y.entries())o.push(...Wbr(`${v}.unicode-range[${m}]`,w))}}else o.push(new wo(`${t}.${u}`,f,`string or array expected, ${c} found`))}return o}function Vk(e){let t=e.value,r=e.valueSpec,i=e.styleSpec;return e.validateSpec=Vk,r.expression&&mq(Jc(t))?Hit(e):r.expression&&yq(a3(t))?G5(e):r.type&&Oet[r.type]?Oet[r.type](e):gp(Zk({},e,{valueSpec:r.type?i[r.type]:r}))}function int(e){let t=e.value,r=e.key,i=dx(e);return i.length||(t.indexOf("{fontstack}")===-1&&i.push(new wo(r,t,'"glyphs" url must include a "{fontstack}" token')),t.indexOf("{range}")===-1&&i.push(new wo(r,t,'"glyphs" url must include a "{range}" token'))),i}function yp(e,t=cn){let r=[];return r=r.concat(Vk({key:"",value:e,valueSpec:t.$root,styleSpec:t,style:e,validateSpec:Vk,objectElementValidators:{glyphs:int,"*"(){return[]}}})),e.constants&&(r=r.concat(Git({key:"constants",value:e.constants,style:e,styleSpec:t,validateSpec:Vk}))),nnt(r)}function yv(e){return function(t){return e(Object.assign({},t,{validateSpec:Vk}))}}function nnt(e){return[].concat(e).sort((t,r)=>t.line-r.line)}function gv(e){return function(...t){return nnt(e.apply(this,t))}}function Xbr(e,t,r){return new Ybr(e,t,r)}function Zbr(e){var t;return Object.entries((t=e.sources)!=null?t:{}).filter(([,r])=>!$ne.has(r.type)).map(([r])=>`sources.${r}`)}function Yne(e,t){let r=Zbr(t);return bq(e,gd(t).filter(({message:i})=>!r.some(n=>i.startsWith(`${n}:`)||i.startsWith(`${n}.`))))}function bq(e,t){let r=!1;for(let i of t){if(i.severity==="warning"){lu(i.message);continue}e.fire(new rl(Error(i.message))),r=!0}return r}function K5(e,t,r,i){return(i==null?void 0:i.validate)!==!1&&bq(e,t(Zs({styleSpec:cn},r)))}function As(e,t,r={}){if($y[e])throw Error(`${e} is already registered.`);Object.defineProperty(t,"_classRegistryKey",{value:e,writeable:!1}),$y[e]={klass:t,omit:r.omit||[],shallow:r.shallow||[]}}function ont(e){var t;return e&&typeof ArrayBuffer<"u"&&(e instanceof ArrayBuffer||((t=e.constructor)==null?void 0:t.name)==="ArrayBuffer")}function Xne(e){let t=e.constructor;return e.$name||t._classRegistryKey}function Kbr(e){if(typeof e!="object"||!e)return!1;let t=Xne(e);return t&&t!=="Object"}function snt(e){return!Kbr(e)&&(e==null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||e instanceof Boolean||e instanceof Number||e instanceof String||e instanceof Date||e instanceof RegExp||e instanceof Blob||e instanceof Error||ont(e)||yx(e)||ArrayBuffer.isView(e)||e instanceof ImageData)}function Uk(e,t){if(snt(e))return(ont(e)||yx(e))&&t&&t.push(e),ArrayBuffer.isView(e)&&t&&t.push(e.buffer),e instanceof ImageData&&t&&t.push(e.data.buffer),e;if(Array.isArray(e)){let a=[];for(let o of e)a.push(Uk(o,t));return a}if(typeof e!="object")throw Error(`can't serialize object of type ${typeof e}`);let r=Xne(e);if(!r)throw Error(`can't serialize object of unregistered class ${e.constructor.name}`);if(!$y[r])throw Error(`${r} is not registered.`);let{klass:i}=$y[r],n=i.serialize?i.serialize(e,t):{};if(i.serialize){if(n===(t==null?void 0:t[t.length-1]))throw Error("statically serialized object won't survive transfer of $name property")}else{for(let a in e){if(!e.hasOwnProperty(a)||$y[r].omit.includes(a))continue;let o=e[a];o!==void 0&&(n[a]=$y[r].shallow.includes(a)?o:Uk(o,t))}e instanceof Error&&(n.message=e.message)}if(n.$name)throw Error("$name property is reserved for worker serialization logic.");return r!=="Object"&&(n.$name=r),n}function Gk(e){if(snt(e))return e;if(Array.isArray(e))return e.map(Gk);if(typeof e!="object")throw Error(`can't deserialize object of type ${typeof e}`);let t=Xne(e)||"Object";if(!$y[t])throw Error(`can't deserialize unregistered class ${t}`);let{klass:r}=$y[t];if(!r)throw Error(`can't deserialize unregistered class ${t}`);if(r.deserialize)return r.deserialize(e);let i=Object.create(r.prototype);for(let n of Object.keys(e)){if(n==="$name")continue;let a=e[n];i[n]=$y[t].shallow.includes(n)?a:Gk(a)}return i}function Uet(e){if(Array.isArray(e))return e.length;let t=e==null?void 0:e.values;return Array.isArray(t)?t.length:void 0}function lnt(e,t){let r=Uet(e),i=Uet(t);return r!==void 0&&i!==void 0&&r!==i}function cc(e,t=1){let r=0,i=0;return{members:e.map(n=>{let a=i_r(n.type),o=r=jet(r,Math.max(t,a)),s=n.components||1;return i=Math.max(i,a),r+=a*s,{name:n.name,type:n.type,components:s,offset:o}}),size:jet(r,Math.max(i,t)),alignment:t}}function i_r(e){return r_r[e].BYTES_PER_ELEMENT}function jet(e,t){return Math.ceil(e/t)*t}function Yet(e,t){return e=Pl(Math.floor(e),0,255),t=Pl(Math.floor(t),0,255),256*e+t}function Xet(e){let t=+e;return!isNaN(t)&&t<=2**53-1?t:(0,q7.default)(String(e))}function Bie(e,t,r,i){for(;r>1],a=r-1,o=i+1;for(;;){do a++;while(e[a]n);if(a>=o)break;f7(e,a,o),f7(t,3*a,3*o),f7(t,3*a+1,3*o+1),f7(t,3*a+2,3*o+2)}o-rn.x+1||on.y+1)&&lu("Geometry exceeds allowed extent, reduce your vector tile buffer size")}return r}function gx(e,t){return{type:e.type,id:e.id,properties:e.properties,geometry:t?d3(e):[]}}function __r(e,t,r,i,n){e.emplaceBack(Jet+t*8+i,Jet+r*8+n)}function eae(e,t){for(let r of e)if(H5(t,r))return!0;for(let r of t)if(H5(e,r))return!0;return tae(e,t)}function Tq(e,t,r){return H5(e,t)?!0:Nie(t,e,r)}function Fnt(e,t){if(e.length===1)return Qet(t,e[0]);for(let r of t)for(let i of r)if(H5(e,i))return!0;for(let r of e)if(Qet(t,r))return!0;for(let r of t)if(tae(e,r))return!0;return!1}function w_r(e,t,r){for(let i of t){if(e.length>=3){for(let n of i)if(H5(e,n))return!0}if(A_r(e,i,r))return!0}return!1}function A_r(e,t,r){if(e.length>1){if(tae(e,t))return!0;for(let i of t)if(Nie(i,e,r))return!0}for(let i of e)if(Nie(i,t,r))return!0;return!1}function tae(e,t){if(e.length===0||t.length===0)return!1;for(let r=0;r1?e.distSqr(r):e.distSqr(r.sub(t)._mult(n)._add(t))}function Qet(e,t){let r=!1,i,n,a;for(let o of e){i=o;for(let s=0,l=i.length-1;st.y!=a.y>t.y&&t.x<(a.x-n.x)*(t.y-n.y)/(a.y-n.y)+n.x&&(r=!r)}return r}function H5(e,t){let r=!1;for(let i=0,n=e.length-1;it.y!=o.y>t.y&&t.x<(o.x-a.x)*(t.y-a.y)/(o.y-a.y)+a.x&&(r=!r)}return r}function M_r(e,t,r,i,n){for(let o of e)if(t<=o.x&&r<=o.y&&i>=o.x&&n>=o.y)return!0;let a=[new Zr(t,r),new Zr(t,n),new Zr(i,n),new Zr(i,r)];if(e.length>2){for(let o of a)if(H5(e,o))return!0}for(let o=0;on.x&&t.x>n.x||e.yn.y&&t.y>n.y)return!1;let a=lx(e,t,r[0]);return a!==lx(e,t,r[1])||a!==lx(e,t,r[2])||a!==lx(e,t,r[3])}function F5(e,t,r){let i=t.paint.get(e).value;return i.kind==="constant"?i.value:r.programConfigurations.get(t.id).getMaxValue(e)}function Mq(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function Sq(e,t,r,i,n){if(!t[0]&&!t[1])return e;let a=Zr.convert(t)._mult(n);r==="viewport"&&a._rotate(-i);let o=[];for(let s of e)o.push(s.sub(a));return o}function E_r(e){let t=[];for(let r=0;rrae(n,t,r,i))}function iae(e,{width:t,height:r},i,n){if(!n)n=new Uint8Array(t*r*i);else if(n instanceof Uint8ClampedArray)n=new Uint8Array(n.buffer);else if(n.length!==t*r*i)throw RangeError(`mismatched image size. expected: ${n.length} but got: ${t*r*i}`);return e.width=t,e.height=r,e.data=n,e}function Rnt(e,{width:t,height:r},i){if(t===e.width&&r===e.height)return;let n=iae({},{width:t,height:r},i);nae(e,n,{x:0,y:0},{x:0,y:0},{width:Math.min(e.width,t),height:Math.min(e.height,r)},i),e.width=t,e.height=r,e.data=n.data}function nae(e,t,r,i,n,a){if(n.width===0||n.height===0)return t;if(n.width>e.width||n.height>e.height||r.x>e.width-n.width||r.y>e.height-n.height)throw RangeError("out of range source coordinates for image copy");if(n.width>t.width||n.height>t.height||i.x>t.width-n.width||i.y>t.height-n.height)throw RangeError("out of range destination coordinates for image copy");let o=e.data,s=t.data;if(o===s)throw Error("srcData equals dstData, so image is already copied");for(let l=0;l{t[e.evaluationKey]=l;let u=e.expression.evaluate(t);n.setPixel(o/4/r,s/4,u)};if(e.clips)for(let o=0,s=0;o80*r){s=e[0],l=e[1];let f=s,c=l;for(let h=r;hf&&(f=d),p>c&&(c=p)}u=Math.max(f-s,c-l),u=u===0?0:32767/u}return Gie(a,o,s,l,u),o}function Gnt(e,t,r,i,n){let a=null;if(n===d3r(e,t,r,i)>0)for(let o=t;o=t;o-=i)a=stt(o/i|0,e[o],e[o+1],a);return a&&nC(a,a.next)&&(oC(a),a=a.next),a}function s3(e,t=e){let r=t===e,i=e,n;do n=!1,i!==i.next&&(iC.size===0||!iC.has(i))&&(nC(i,i.next)||Eh(i.prev,i,i.next)===0)?((r||i===t)&&(t=i.prev),Uie=!0,oC(i),i=i.prev,n=!0):(r||i!==t)&&(i=i.next,n=!r);while(n||i!==t);return t}function Gie(e,t,r,i,n){n&&s3r(e,r,i,n);let a=e,o=!1;for(;e.prev!==e.next;){let s=e.prev,l=e.next;if(Eh(s,e,l)<0&&(n?K_r(e,r,i,n):Z_r(e))){t.push(s.i,e.i,l.i),oC(e),e=l,a=l;continue}if(e=l,e===a){if(Uie=!1,e=s3(e),Uie){a=e;continue}if(!o){e=J_r(e,t),a=e,o=!0;continue}Q_r(e,t,r,i,n);break}}}function Z_r(e){let t=e.prev,r=e,i=e.next,n=t.x,a=r.x,o=i.x,s=t.y,l=r.y,u=i.y,f=Math.min(n,a,o),c=Math.min(s,l,u),h=Math.max(n,a,o),d=Math.max(s,l,u),p=i.next;for(;p!==t;){if(p.x>=f&&p.x<=h&&p.y>=c&&p.y<=d&&(n!==p.x||s!==p.y)&&V7(n,s,a,l,o,u,p.x,p.y)&&Eh(p.prev,p,p.next)>=0)return!1;p=p.next}return!0}function K_r(e,t,r,i){let n=e.prev,a=e,o=e.next,s=n.x,l=a.x,u=o.x,f=n.y,c=a.y,h=o.y,d=Math.min(s,l,u),p=Math.min(f,c,h),v=Math.max(s,l,u),y=Math.max(f,c,h),m=$ie(d,p,t,r,i),w=$ie(v,y,t,r,i),_=e.prevZ;for(;_&&_.z>=m;){if(_.x>=d&&_.x<=v&&_.y>=p&&_.y<=y&&_!==o&&(s!==_.x||f!==_.y)&&V7(s,f,l,c,u,h,_.x,_.y)&&Eh(_.prev,_,_.next)>=0)return!1;_=_.prevZ}let b=e.nextZ;for(;b&&b.z<=w;){if(b.x>=d&&b.x<=v&&b.y>=p&&b.y<=y&&b!==o&&(s!==b.x||f!==b.y)&&V7(s,f,l,c,u,h,b.x,b.y)&&Eh(b.prev,b,b.next)>=0)return!1;b=b.nextZ}return!0}function J_r(e,t){let r=e,i=!1;do{let n=r.prev,a=r.next.next;jnt(n,r,r.next,a,!1)&&aC(n,a)&&aC(a,n)&&(t.push(n.i,r.i,a.i),oC(r),oC(r.next),r=e=a,i=!0),r=r.next}while(r!==e);return i?s3(r):r}function Q_r(e,t,r,i,n){let a=e;do{let o=a.next.next;for(;o!==a.prev;){if(a.i!==o.i&&f3r(a,o)){let s=Wnt(a,o);a=s3(a,a.next),s=s3(s,s.next),Gie(a,t,r,i,n),Gie(s,t,r,i,n);return}o=o.next}a=a.next}while(a!==e)}function e3r(e,t,r,i){let n=[];for(let a=0,o=t.length;ao&&(o=r.x),r.ys&&(s=r.y),f.xo&&(o=f.x),f.ys&&(s=f.y),r=f}while(++l<16&&r!==t);Wie[i]=r;let u=i*4;Kc[u]=n,Kc[u+1]=a,Kc[u+2]=o,Kc[u+3]=s}while(r!==t)}function n3r(e,t){let r=e.z*4;t.xKc[r+2]&&(Kc[r+2]=t.x),t.y>Kc[r+3]&&(Kc[r+3]=t.y)}function att(e){let t=Wie[e];for(;t.prev.next!==t;)t=t.next;return Wie[e]=t,t}function ott(e){let t=jie[e];for(;t.prev.next!==t;)t=t.next;return jie[e]=t,t}function a3r(e,t){let r=t,i=e.x,n=e.y,a=-1/0,o;if(nC(e,r))return r;for(let h=0,d=0;hKc[d+3]||Kc[d]>i||Kc[d+2]<=a)continue;let p=att(h);r=ott(h);do{if(r.prev.next===r){if(nC(e,r.next))return r.next;if(n<=r.y&&n>=r.next.y&&r.next.y!==r.y){let v=r.x+(n-r.y)*(r.next.x-r.x)/(r.next.y-r.y);if(v<=i&&v>a&&(a=v,o=r.xi||Kc[d+3]f)continue;let p=att(h);r=ott(h);do{if(r.prev.next===r&&i>=r.x&&r.x>=s&&i!==r.x&&V7(ni)&&(vo.x||r.x===o.x&&o3r(o,r)))&&(o=r,c=v)}r=r.next}while(r!==p)}return o}function o3r(e,t){return Eh(e.prev,e,t.prev)<0&&Eh(t.next,e,e.next)<0}function s3r(e,t,r,i){let n=e,a=0;do n.z=$ie(n.x,n.y,t,r,i),bv[a++]=n,n=n.next;while(n!==e);l3r(a);let o=null;for(let s=0;s=0&&bv[n].z>i;)bv[n+1]=bv[n],n--;bv[n+1]=r}return}X_.length>>a&255]++;let o=0;for(let s=0;s<256;s++){let l=Sk[s];Sk[s]=o,o+=l}for(let s=0;s>>a&255]++;i[u]=t[s],n[u]=l}}function $ie(e,t,r,i,n){return e=(e-r)*n|0,t=(t-i)*n|0,e=(e|e<<8)&16711935,e=(e|e<<4)&252645135,e=(e|e<<2)&858993459,e=(e|e<<1)&1431655765,t=(t|t<<8)&16711935,t=(t|t<<4)&252645135,t=(t|t<<2)&858993459,t=(t|t<<1)&1431655765,e|t<<1}function u3r(e){let t=e,r=e;do(t.x=(e-o)*(a-s)&&(e-o)*(i-s)>=(r-o)*(t-s)&&(r-o)*(a-s)>=(n-o)*(i-s)}function f3r(e,t){let r=nC(e,t)&&Eh(e.prev,e,e.next)>0&&Eh(t.prev,t,t.next)>0;return e.next.i!==t.i&&(r||aC(e,t)&&aC(t,e)&&(Eh(e.prev,e,t.prev)!==0||Eh(e,t.prev,t)!==0))&&!c3r(e,t)&&(r||h3r(e,t))}function Eh(e,t,r){return(t.y-e.y)*(r.x-t.x)-(t.x-e.x)*(r.y-t.y)}function nC(e,t){return e.x===t.x&&e.y===t.y}function jnt(e,t,r,i,n=!0){let a=Eh(e,t,r),o=Eh(e,t,i),s=Eh(r,i,e),l=Eh(r,i,t);return(a>0&&o<0||a<0&&o>0)&&(s>0&&l<0||s<0&&l>0)?!0:n?!!(a===0&&d7(e,r,t)||o===0&&d7(e,i,t)||s===0&&d7(r,e,i)||l===0&&d7(r,t,i)):!1}function d7(e,t,r){return t.x<=Math.max(e.x,r.x)&&t.x>=Math.min(e.x,r.x)&&t.y<=Math.max(e.y,r.y)&&t.y>=Math.min(e.y,r.y)}function c3r(e,t){let r=Math.min(e.x,t.x),i=Math.max(e.x,t.x),n=Math.min(e.y,t.y),a=Math.max(e.y,t.y),o=e;do{let s=o.next;if(o.x>i&&s.x>i||o.xa&&s.y>a||o.y=0&&Eh(e,e.prev,t)>=0:Eh(e,t,e.prev)<0||Eh(e,e.next,t)<0}function h3r(e,t){let r=e,i=!1,n=(e.x+t.x)/2,a=(e.y+t.y)/2;do{let o=r.next;r.y>a!=o.y>a&&n<(o.x-r.x)*(a-r.y)/(o.y-r.y)+r.x&&(i=!i),r=o}while(r!==e);return i}function Wnt(e,t){let r=Yie(e.i,e.x,e.y),i=Yie(t.i,t.x,t.y),n=e.next,a=t.prev;return e.next=t,t.prev=e,r.next=n,n.prev=r,i.next=r,r.prev=i,a.next=i,i.prev=a,i}function stt(e,t,r,i){let n=Yie(e,t,r);return i?(n.next=i.next,n.prev=i,i.next.prev=n,i.next=n):(n.prev=n,n.next=n),n}function oC(e){e.next.prev=e.prev,e.prev.next=e.next,e.prevZ&&(e.prevZ.nextZ=e.nextZ),e.nextZ&&(e.nextZ.prevZ=e.prevZ),Hie&&n3r(e.prev,e.next)}function Yie(e,t,r){return{i:e,x:t,y:r,prev:null,next:null,z:0,prevZ:null,nextZ:null}}function d3r(e,t,r,i){let n=0;for(let a=t,o=r-i;a0?(Math.floor(M/n)+1)*n:(Math.ceil(M/n)-1)*n,g=w>0?(Math.floor(x/n)+1)*n:(Math.ceil(x/n)-1)*n,E=Math.abs(M-T),S=Math.abs(x-g),C=Math.abs(M-d),k=Math.abs(x-p),D=v?E/_:1/0,L=y?S/b:1/0;if((C<=E||!v)&&(k<=S||!y))break;if(D0?(r.push(n),r.push(o),r.push(a)):(r.push(n),r.push(a),r.push(o))}return r}function g3r(e,t,r){if(t.length===0)throw Error("Subdivision vertex ring is empty.");let i=0,n=e[t[0]*2];for(let l=1;l=0?o-1:a-1,u=(s+1)%a,f=e[t[l]*2],c=e[t[l]*2+1],h=e[t[u]*2],d=e[t[u]*2+1],p=e[t[o]*2],v=e[t[o]*2+1],y=e[t[s]*2],m=e[t[s]*2+1],w=!1;if(fh)w=!1;else{let _=m-v,b=-(y-p),M=v((h-p)*_+(d-v)*b)*M&&(w=!0)}if(w){let _=t[l],b=t[o],M=t[s];_!==b&&_!==M&&b!==M&&r.push(M,b,_),o--,o<0&&(o=a-1)}else{let _=t[u],b=t[o],M=t[s];_!==b&&_!==M&&b!==M&&r.push(M,b,_),s++,s>=a&&(s=0)}if(l===u)break}}function Xnt(e,t,r,i,n,a,o,s,l){let u=n.length/2,f=o&&s&&l;if(utc.MAX_VERTEX_ARRAY_LENGTH&&(u=e.createNewSegment(t,r),l=s.count,v=!0,y=!0,m=!0,f=0);let _=Hk(o,i,a,s,h,v,u),b=Hk(o,i,a,s,d,y,u),M=Hk(o,i,a,s,p,m,u);r.emplaceBack(f+_-l,f+b-l,f+M-l),u.primitiveLength++}}function b3r(e,t,r,i,n,a){let o=[];for(let c=0;ctc.MAX_VERTEX_ARRAY_LENGTH&&(u=e.createNewSegment(t,r),l=s.count,v=!0,y=!0,f=0);let w=Hk(o,i,a,s,d,v,u),_=Hk(o,i,a,s,p,y,u);r.emplaceBack(f+w-l,f+_-l),u.primitiveLength++}}function Kie(e,t){return e.x===t.x&&(e.x<0||e.x>8192)||e.y===t.y&&(e.y<0||e.y>8192)}function ftt(e){return e.every(t=>t.x<0)||e.every(t=>t.x>8192)||e.every(t=>t.y<0)||e.every(t=>t.y>8192)}function Qnt(e){let t=e.length;if(t<=1)return[e];let r=[],i,n;for(let a=0;aI3r(r,t))}function z3r(e,t){let r=L3r(Aa/2,Aa/2,t),i=Uu.fromLngLat(r).meterInMercatorCoordinateUnits(),n=(1<1&&t[0].x===t[t.length-1].x&&t[0].y===t[t.length-1].y;)t.pop();return t}function B3r(e,t,r,i,n){let a=t.sub(r),o=i.sub(r),s=a.mag(),l=o.mag();if(s<1e-6||l<1e-6){e.push(r.clone());return}a._div(s),o._div(l);let u=a.x*o.x+a.y*o.y;if(Math.abs(u)>Math.cos(5*Math.PI/180)){e.push(r.clone());return}let f=.2,c=Math.min(n,s*f,l*f),h=r.add(a.mult(c)),d=r.add(o.mult(c)),p=Math.sqrt((1+u)/2),v=r.add(a.add(o)._unit()._mult(c/p)),y=h.sub(v).angleWith(d.sub(v)),m=Math.max(2,Math.ceil(Math.abs(y)/(Math.PI/6)-1e-6));for(let w=0;w<=m;w++)e.push(h.rotateAround(w/m*y,v))}function Ek(e,t,r,i,n,a,o,s){e.emplaceBack(t,r,Math.floor(i*Zre)*2+o,n*Zre*2,a*Zre*2,Math.round(s))}function q3r(e,t){for(let r=0;r0?t+2*e:e}function nwr(e){return/[\u0600-\u0604\u0606-\u060B\u060D-\u061A\u061C-\u061E\u0620-\u063F\u0641-\u064A\u0656-\u066F\u0671-\u06DC\u06DE-\u070D\u070F-\u074A\u074D-\u077F\u07C0-\u07FA\u07FD-\u07FF\u0840-\u085B\u085E\u0860-\u086A\u0870-\u0891\u0897-\u08E1\u08E3-\u08FF\u1800\u1801\u1804\u1806-\u1819\u1820-\u1878\u1880-\u18AA\uA840-\uA877\uFB50-\uFD3D\uFD40-\uFDCF\uFDF0-\uFDFF\uFE70-\uFE74\uFE76-\uFEFC]|\uD802[\uDEC0-\uDEE6\uDEEB-\uDEF6\uDF80-\uDF91\uDF99-\uDF9C\uDFA9-\uDFAF]|\uD803[\uDD00-\uDD27\uDD30-\uDD39\uDE60-\uDE7E\uDEC2-\uDEC7\uDED0-\uDED8\uDEFA-\uDEFF\uDF30-\uDF59\uDF70-\uDF89\uDFB0-\uDFCB]|\uD805[\uDE60-\uDE6C]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9C-\uDC9F]|\uD83A[\uDD00-\uDD4B\uDD50-\uDD59\uDD5E\uDD5F]|\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\uDEF0\uDEF1]/gim.test(String.fromCodePoint(e))}function awr(e){return/[\u0591-\u05C7\u05D0-\u05EA\u05EF-\u05F4\u0600-\u0604\u0606-\u060B\u060D-\u061A\u061C-\u061E\u0620-\u063F\u0641-\u064A\u0656-\u066F\u0671-\u06DC\u06DE-\u070D\u070F-\u074A\u074D-\u07B1\u07C0-\u07FA\u07FD-\u082D\u0830-\u083E\u0840-\u085B\u085E\u0860-\u086A\u0870-\u0891\u0897-\u08E1\u08E3-\u08FF\uFB1D-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFD3D\uFD40-\uFDCF\uFDF0-\uFDFF\uFE70-\uFE74\uFE76-\uFEFC]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC57-\uDC9E\uDCA7-\uDCAF\uDCE0-\uDCF2\uDCF4\uDCF5\uDCFB-\uDD1B\uDD1F-\uDD39\uDD3F-\uDD59\uDD80-\uDDB7\uDDBC-\uDDCF\uDDD2-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE38-\uDE3A\uDE3F-\uDE48\uDE50-\uDE58\uDE60-\uDE9F\uDEC0-\uDEE6\uDEEB-\uDEF6\uDF00-\uDF35\uDF39-\uDF55\uDF58-\uDF72\uDF78-\uDF91\uDF99-\uDF9C\uDFA9-\uDFAF]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDCFA-\uDD27\uDD30-\uDD39\uDD40-\uDD65\uDD69-\uDD85\uDD8E\uDD8F\uDE60-\uDE7E\uDE80-\uDEA9\uDEAB-\uDEAD\uDEB0\uDEB1\uDEC2-\uDEC7\uDED0-\uDED8\uDEFA-\uDF27\uDF30-\uDF59\uDF70-\uDF89\uDFB0-\uDFCB\uDFE0-\uDFF6]|\uD83A[\uDC00-\uDCC4\uDCC7-\uDCD6\uDD00-\uDD4B\uDD50-\uDD59\uDD5E\uDD5F]|\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\uDEF0\uDEF1]/gim.test(String.fromCodePoint(e))}function fat(e){return/[\u02EA\u02EB\u1100-\u11FF\u2E80-\u2FDF\u3000-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u4DBF\u4E00-\uA48C\uA490-\uA4C6\uA960-\uA97C\uAC00-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFE10-\uFE1F\uFE30-\uFE4F\uFF00-\uFFEF]|\uD81B[\uDFE0-\uDFFF]|[\uD81C-\uD822\uD840-\uD868\uD86A-\uD86D\uD86F-\uD872\uD874-\uD879\uD880-\uD883\uD885-\uD88C][\uDC00-\uDFFF]|\uD823[\uDC00-\uDCD5\uDCFF-\uDD1E\uDD80-\uDDF2]|\uD82B[\uDFF0-\uDFFF]|\uD82C[\uDC00-\uDEFB]|\uD83C[\uDE00-\uDEFF]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEAD\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0\uDFF0-\uDFFF]|\uD87B[\uDC00-\uDE5D]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A\uDF50-\uDFFF]|\uD88D[\uDC00-\uDC79]/gim.test(String.fromCodePoint(e))}function owr(e){return/[\u02EA\u02EB\u2E80-\u2FDF\u2FF0-\u303F\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FD-\u30FF\u3105-\u312F\u31A0-\u4DBF\u4E00-\uA48C\uA490-\uA4C6\uF900-\uFA6D\uFA70-\uFAD9\uFE10-\uFE1F\uFE30-\uFE4F\uFF00-\uFFEF]|\uD81B[\uDFE0-\uDFFF]|[\uD81C-\uD822\uD840-\uD868\uD86A-\uD86D\uD86F-\uD872\uD874-\uD879\uD880-\uD883\uD885-\uD88C][\uDC00-\uDFFF]|\uD823[\uDC00-\uDCD5\uDCFF-\uDD1E\uDD80-\uDDF2]|\uD82B[\uDFF0-\uDFFF]|\uD82C[\uDC00-\uDEFB]|\uD83C[\uDE00-\uDEFF]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEAD\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0\uDFF0-\uDFFF]|\uD87B[\uDC00-\uDE5D]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A\uDF50-\uDFFF]|\uD88D[\uDC00-\uDC79]/gim.test(String.fromCodePoint(e))}function Lq(e){return/[\u02EA\u02EB\u1100-\u11FF\u1401-\u167F\u18B0-\u18FF\u2065\u20DD-\u20E0\u20E2-\u20E4\u2B97\u2BF0-\u2BFF\u2E50\u2E51\u2E80-\u3007\u3012\u3013\u3020-\u302F\u3031-\u30FB\u30FD-\uA4CF\uA960-\uA97F\uAC00-\uD7FF\uF900-\uFAFF\uFE10-\uFE1F\uFE30-\uFE48\uFE50-\uFE57\uFE5F-\uFE62\uFE67-\uFE6F\uFF00-\uFF07\uFF0A-\uFF0C\uFF0E-\uFF19\uFF1F-\uFF3A\uFF3C\uFF3E\uFF40-\uFF5A\uFFE0-\uFFE2\uFFE4-\uFFE7\uFFF0-\uFFF8]|\uD802[\uDD80-\uDD9F]|\uD805[\uDD80-\uDDFF]|\uD806[\uDE00-\uDEBF]|[\uD80C-\uD810\uD81C-\uD822\uD83C\uD83D\uD840-\uD87E\uD880-\uD8BE][\uDC00-\uDFFF]|\uD811[\uDC00-\uDE7F]|\uD81B[\uDFE0-\uDFFF]|\uD823[\uDC00-\uDDFF]|\uD82B[\uDFF0-\uDFFF]|\uD82C[\uDC00-\uDEFF]|\uD833[\uDEC0-\uDFCF]|\uD834[\uDC00-\uDDFF\uDEE0-\uDF7F]|\uD836[\uDC00-\uDEAF]|\uD83E[\uDD00-\uDEFF]|[\uD87F\uD8BF][\uDC00-\uDFFD]/gim.test(String.fromCodePoint(e))}function swr(e){return/[\xA7\xA9\xAE\xB1\xBC-\xBE\xD7\xF7\u2016\u2020\u2021\u2030\u2031\u203B\u203C\u2042\u2047-\u2049\u2051\u2100-\u218F\u221E\u2234\u2235\u2300-\u2307\u230C-\u231F\u2324-\u2328\u232B\u237D-\u239A\u23BE-\u23CD\u23CF\u23D1-\u23DB\u23E2-\u2422\u2424-\u24FF\u25A0-\u2619\u2620-\u2767\u2776-\u2793\u2B12-\u2B2F\u2B50-\u2B59\u2BB8-\u2BEB\u3000-\u303F\u30A0-\u30FF\uE000-\uF8FF\uFE30-\uFE6F\uFF00-\uFFEF\uFFFC\uFFFD]|[\uDB80-\uDBFF][\uDC00-\uDFFF]/gim.test(String.fromCodePoint(e))}function lwr(e){return/[\r\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0600-\u0605\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DD\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u070F\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0890\u0891\u0897-\u089F\u08CA-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D57\u0D62\u0D63\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E33-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB3-\u0EBC\u0EC8-\u0ECE\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1037\u1039-\u103E\u1056-\u1059\u105E-\u1060\u1071-\u1074\u1082\u1084-\u1086\u108D\u109D\u1100-\u11FF\u135D-\u135F\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u180F\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60\u1A62\u1A65-\u1A7C\u1A7F\u1AB0-\u1ADD\u1AE0-\u1AEB\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA953\uA960-\uA97C\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFF9E\uFF9F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDD69-\uDD6D\uDEAB\uDEAC\uDEFA-\uDEFF\uDF46-\uDF50\uDF82-\uDF85]|\uD804[\uDC00-\uDC02\uDC38-\uDC46\uDC70\uDC73\uDC74\uDC7F-\uDC82\uDCB0-\uDCBA\uDCBD\uDCC2\uDCCD\uDD00-\uDD02\uDD27-\uDD34\uDD45\uDD46\uDD73\uDD80-\uDD82\uDDB3-\uDDC0\uDDC2\uDDC3\uDDC9-\uDDCC\uDDCE\uDDCF\uDE2C-\uDE37\uDE3E\uDE41\uDEDF-\uDEEA\uDF00-\uDF03\uDF3B\uDF3C\uDF3E-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF57\uDF62\uDF63\uDF66-\uDF6C\uDF70-\uDF74\uDFB8-\uDFC0\uDFC2\uDFC5\uDFC7-\uDFCA\uDFCC-\uDFD2\uDFE1\uDFE2]|\uD805[\uDC35-\uDC46\uDC5E\uDCB0-\uDCC3\uDDAF-\uDDB5\uDDB8-\uDDC0\uDDDC\uDDDD\uDE30-\uDE40\uDEAB-\uDEB7\uDF1D-\uDF1F\uDF22-\uDF2B]|\uD806[\uDC2C-\uDC3A\uDD30-\uDD35\uDD37\uDD38\uDD3B-\uDD43\uDDD1-\uDDD7\uDDDA-\uDDE0\uDDE4\uDE01-\uDE0A\uDE33-\uDE39\uDE3B-\uDE3E\uDE47\uDE51-\uDE5B\uDE84-\uDE99\uDF60-\uDF67]|\uD807[\uDC2F-\uDC36\uDC38-\uDC3F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD8A-\uDD8E\uDD90\uDD91\uDD93-\uDD97\uDEF3-\uDEF6\uDF00-\uDF03\uDF34-\uDF3A\uDF3E-\uDF42\uDF5A]|\uD80D[\uDC40\uDC47-\uDC55]|\uD818[\uDD1E-\uDD2F]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDD63\uDD67-\uDD6A\uDF4F\uDF51-\uDF87\uDF8F-\uDF92\uDFE4\uDFF0\uDFF1]|\uD82F[\uDC9D\uDC9E]|\uD833[\uDF00-\uDF2D\uDF30-\uDF46]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDC8F\uDD30-\uDD36\uDEAE\uDEEC-\uDEEF]|\uD839[\uDCEC-\uDCEF\uDDEE\uDDEF\uDEE3\uDEE6\uDEEE\uDEEF\uDEF5]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uD83C[\uDDE6-\uDDFF\uDFFB-\uDFFF]|\uDB40[\uDC20-\uDC7F\uDD00-\uDDEF]/.test(e)}function btt(e){return/[\u0E01-\u0E3A\u0E40-\u0E4E\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECE\u0EDC-\u0EDF\u0F00-\u0F47\u0F49-\u0F6C\u0F71-\u0F97\u0F99-\u0FBC\u0FBE-\u0FCC\u0FCE-\u0FD4\u0FD9\u0FDA\u1000-\u103F\u1050-\u108F\u109A-\u109F\u1780-\u17D3\u17D7\u17DC\u17DD\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19DE\u19DF\u1A20-\u1A5E\u1A60-\u1A7C\u1AA0-\u1AAD\u1B00-\u1B4C\u1B4E-\u1B7F\uA980-\uA9CD\uA9D0-\uA9D9\uA9DE-\uA9EF\uA9FA-\uA9FE\uAA60-\uAAC2\uAADB-\uAADF]|\uD805[\uDF00-\uDF1A\uDF1D-\uDF2B\uDF3A\uDF3B\uDF3F-\uDF46]/gim.test(String.fromCodePoint(e))}function uwr(e,t){return/(?:[\u1039\u17D2\u1A60\u1BAB\u200D\uAAF6]|\uD802\uDE3F|\uD804[\uDD33\uDFD0]|\uD806[\uDD3E\uDE47\uDE99]|\uD807[\uDD45\uDD97\uDF42])$/.test(e)||new RegExp("^\\p{gc=Mc}","u").test(t)}function pwr(e,t,r){let i=0;for(let n of e.split(";")){let[a,o]=n.split(",").map(l=>parseInt(l,36)),s=i+a;for(let l=s;l{let r=t.codePointAt(0);return{codePoint:r,type:vwr(r),form:null}})}function bwr(e){let t=e.filter(r=>r.type!=="T");for(let r=0;r0&&mwr(t[r-1].type),a=r+1String.fromCodePoint(Awr(r))).join("")}function Mwr(e,t,r){var n;let i=t.layout.get("text-transform").evaluate(r,{});return i==="uppercase"?e=e.toLocaleUpperCase():i==="lowercase"&&(e=e.toLocaleLowerCase()),((n=U7.applyArabicShaping)!=null?n:Twr)(e)}function Swr(e,t,r){for(let i of e.sections)i.text=Mwr(i.text,t,r);return e}function Kre(e,t,r){let i=r?t.last.points:t.first.points,n=r?i[i.length-1]:i[0];return`${e}:${n.x}:${n.y}`}function Ewr(e){let t=e.first.points,r=t.length;for(let a=e.first.next;a;a=a.next)r+=a.points.length-1;let i=Array(r);for(let a=0;a=0&&uwr(t[i],r)?t[i]+=r:t.push(r)}return t}function Cwr(e){let t=new Set;if(hat){Dk!=null||(Dk=new Intl.Segmenter(void 0,{granularity:"word"}));for(let{index:i}of Dk.segment(e))t.add(i);return t}let r=0;for(let i of e.split(new RegExp("\\b|(?=\\p{Ideo})","u")))t.add(r),r+=i.length;return t}function EC(e){let t=e.codePointAt(0);return e.length>(t>65535?2:1)}function fae(e){return/\s/u.test(String.fromCodePoint(e))}function tne(e){for(let t of e)if(Lq(t.codePointAt(0)))return!0;return!1}function Dwr(e){for(let t of e)if(!Fwr(t.codePointAt(0)))return!1;return!0}function Fwr(e){return!nwr(e)}function Ttt(e){return!(Lq(e)||swr(e))}function dat(e){return new RegExp("\\p{sc=Arab}","u").test(String.fromCodePoint(e))}function pat(e){return awr(e)}function vat(e){for(let t of e)if(pat(t.codePointAt(0)))return!0;return!1}function Lwr(e){let t="",r={premature:!0,value:void 0},i=e[Symbol.iterator](),n=i.next(),a=e[Symbol.iterator]();a.next();let o=a.next();for(;!n.done;)(o.done||!Ttt(o.value.codePointAt(0))||k5[o.value])&&(r.premature||!Ttt(r.value.codePointAt(0))||k5[r.value])&&k5[n.value]?t+=k5[n.value]:t+=n.value,r={value:n.value,premature:!1},n=i.next(),o=a.next();return t}function Mtt(e,t,r,i,n,a){var o;if("fontStack"in t){let s=(o=r[t.fontStack])==null?void 0:o.default,l=s==null?void 0:s[e];if(l)return l.metrics.advance*t.scale+n;let u=0;for(let f of e){let c=s==null?void 0:s[f];c&&(u+=c.metrics.advance*t.scale+n)}return u}{let s=i[t.imageName];return s?s.displaySize[0]*t.scale*24/a+n:0}}function Stt(e,t,r,i){let n=(e-t)**2;return i?e1,1e>2,u>2,2wt>1,1>1,1ge>1,1wp>1,1j>1,f>1,hm>1,1>1,u>1,u6>1,1>1,+5,28>1,w>1,1>1,+3,b8>1,1>1,+3,1>3,-1>-1,3>1,1>1,+2,1s>1,1>1,x>1,th>1,1>1,+2,db>1,1>1,+3,3>1,1>1,+2,14qm>1,1>1,+1,4q>1,1e>2,u>2,2>1,+1",canonical:"6f1>-6dx,6dy>-6dx,6ec>-6ed,6ee>-6ed,6ww>2jj,-2ji>2jj,14r4>-1e7l,1e7m>-1e7l,1e7m>-1e5c,1e5d>-1e5b,1e5c>-14qx,14qy>-14qx,14vn>-1ecg,1ech>-1ecg,1edu>-1ecg,1eci>-1ecg,1eda>-1ecg,1eci>-1ecg,1eci>-168q,168r>-168q,168s>-14ye,14yf>-14ye"};function p(Ie,Ce){var le=0,re=new Map,Ee=Ce&&new Map,we;return Ie.split(",").forEach(function oe(Y){if(Y.indexOf("+")!==-1)for(var ne=+Y;ne--;)oe(we);else{we=Y;var ye=Y.split(">"),U=ye[0],se=ye[1];U=String.fromCodePoint(le+=parseInt(U,36)),se=String.fromCodePoint(le+=parseInt(se,36)),re.set(U,se),Ce&&Ee.set(se,U)}}),{map:re,reverseMap:Ee}}var v,y,m;function w(){if(!v){var Ie=p(d.pairs,!0),Ce=Ie.map,le=Ie.reverseMap;v=Ce,y=le,m=p(d.canonical,!1).map}}function _(Ie){return w(),v.get(Ie)||null}function b(Ie){return w(),y.get(Ie)||null}function M(Ie){return w(),m.get(Ie)||null}var x=r.L,A=r.R,T=r.EN,g=r.ES,E=r.ET,S=r.AN,C=r.CS,k=r.B,D=r.S,L=r.ON,P=r.BN,I=r.NSM,F=r.AL,z=r.LRO,B=r.RLO,O=r.LRE,W=r.RLE,X=r.PDF,Z=r.LRI,j=r.RLI,q=r.FSI,Q=r.PDI;function N(Ie,Ce){for(var le=125,re=new Uint32Array(Ie.length),Ee=0;Ee0)Be--;else if(Ze>0){for($e=0;!pe[pe.length-1]._isolate;)pe.pop();var Qe=pe[pe.length-1]._isolInitIndex;Qe!=null&&(ne.set(Qe,it),ne.set(it,Qe)),pe.pop(),Ze--}ce=pe[pe.length-1],Y[it]=ce._level,ce._override&&oe(it,ce._override)}else nt&X?(Be===0&&($e>0?$e--:!ce._isolate&&pe.length>1&&(pe.pop(),ce=pe[pe.length-1])),Y[it]=ce._level):nt&k&&(Y[it]=U.level);else Y[it]=ce._level,ce._override&&nt!==P&&oe(it,ce._override)}for(var Pe=[],De=null,Ve=U.start;Ve<=U.end;Ve++){var Le=re[Ve];if(!(Le&s)){var Se=Y[Ve],ze=Le&n,st=Le===Q;De&&Se===De._level?(De._end=Ve,De._endsWithIsolInit=ze):Pe.push(De={_start:Ve,_end:Ve,_level:Se,_startsWithPDI:st,_endsWithIsolInit:ze})}}for(var ft=[],wt=0;wt=0;We--)if(!(re[We]&s)){vt=Y[We];break}var ut=St[St.length-1],kt=Y[ut],$t=U.level;if(!(re[ut]&n)){for(var or=ut+1;or<=U.end;or++)if(!(re[or]&s)){$t=Y[or];break}}ft.push({_seqIndices:St,_sosType:Math.max(vt,lt)%2?A:x,_eosType:Math.max($t,kt)%2?A:x})}}for(var Lr=0;Lr=0;Di--)if(!(re[hr[Di]]&s)){Hr=re[hr[Di]];break}oe(vr,Hr&(n|Q)?L:Hr)}}if(we.get(T))for(var gn=0;gn=-1;qr--){var Ut=qr===-1?ni:re[hr[qr]];if(Ut&a){Ut===F&&oe(wr,S);break}}}if(we.get(F))for(var jt=0;jt=0&&(Cr=re[hr[Fi]],Cr&s);Fi--);for(var ir=Ur+1;ir=0&&re[hr[Me]]&(E|s);Me--)oe(hr[Me],T);for(Kt++;Kt=0&&re[hr[et]]&s;et--)oe(hr[et],L);for(var gt=Xe+1;gt=0;ln--){var Tt=gi[ln].char;if(Tt===Ui||Tt===b(M(Qr))||_(M(Tt))===Qr){Nr.push([gi[ln].seqIndex,ui]),gi.length=ln;break}}}Nr.sort(function(dr,ai){return dr[0]-ai[0]});for(var _i=0;_i=0;Qi--){var _r=hr[Qi];if(re[_r]&Rr){var Yr=re[_r]&Ir?A:x;na=Yr===si?si:Yr;break}}}if(na){if(re[hr[ti]]=re[hr[Fr]]=na,na!==si){for(var fi=ti+1;fi=0;Ta--)if(re[hr[Ta]]&s)ca=Ta;else{hn=re[hr[Ta]]&Ir?A:x;break}for(var tn=Kr,wi=sn+1;wi=0&&c(Ie[pi])&l;pi--)Y[pi]=U.level}}return{levels:Y,paragraphs:ye};function Fn(dr,ai){for(var Zi=dr;Zi=Y&&c(Ie[U])&l;U--)ye[U]=oe.level;for(var se=oe.level,Ae=1/0,be=0;bese&&(se=me),me=Ae;ue--)for(var pe=0;pe=ue){for(var ce=pe;pe+1=ue;)pe++;pe>ce&&we.push([ce+Y,pe+Y])}}}),we}function de(Ie,Ce,le,re){var Ee=ge(Ie,Ce,le,re),we=[].concat(Ie);return Ee.forEach(function(oe,Y){we[Y]=(Ce.levels[oe]&1?$(Ie[oe]):null)||Ie[oe]}),we.join("")}function ge(Ie,Ce,le,re){for(var Ee=ie(Ie,Ce,le,re),we=[],oe=0;oe=0;i--){let n=hae.getBidiCharTypeName(e[i].text[0]);Owr.has(n)?(e[i].level=t,r=!0):r&&qwr.has(n)?e[i].level=t:r=!1}}function Uwr(e,t){let r=t,i=1/0;for(let{level:a}of e)a>r&&(r=a),(a|1)=i;a--)for(let o=0;o=a;)s++;for(let l=o,u=s;lt>=n.start&&t<=n.end))==null?void 0:r.level)!=null?i:0}function jwr(e,t,r,i,n){let a=Nwr(e,t,i,n);Vwr(a,r);let o="",s=[];for(let l of Uwr(a,r)){if(Bwr.test(l.text))continue;let u=Gwr(l);o+=u,s.push(...Array(u.length).fill(l.index))}return{text:o,sourceIndices:s}}function Wwr(e,t){let r=t.filter(a=>a>0&&aa-o),n=[];for(let a=0;a+1n.start))).map(([n,a])=>jwr(e,r,Hwr(i,n),n,a))}function $wr(e,t){return yat(e,t).map(r=>r.text)}function Ywr(e,t,r){return yat(e,r).map(i=>[i.text,i.sourceIndices.map(n=>{var a;return(a=t[n])!=null?a:0})])}function Xwr(e,t,r){let i=r.buf,n,a;if(a=i[r.pos++],n=(a&112)>>4,a<128||(a=i[r.pos++],n|=(a&127)<<3,a<128)||(a=i[r.pos++],n|=(a&127)<<10,a<128)||(a=i[r.pos++],n|=(a&127)<<17,a<128)||(a=i[r.pos++],n|=(a&127)<<24,a<128)||(a=i[r.pos++],n|=(a&1)<<31,a<128))return Zwr(e,n,t);throw Error("Expected varint not more than 10 bytes")}function Zwr(e,t,r){return r?t*4294967296+(e>>>0):(t>>>0)*4294967296+(e>>>0)}function Kwr(e,t,r){let i="",n=t;for(;n239?4:a>223?3:a>191?2:1;if(n+s>r)break;let l,u,f;s===1?a<128&&(o=a):s===2?(l=e[n+1],(l&192)==128&&(o=(a&31)<<6|l&63,o<=127&&(o=null))):s===3?(l=e[n+1],u=e[n+2],(l&192)==128&&(u&192)==128&&(o=(a&15)<<12|(l&63)<<6|u&63,(o<=2047||o>=55296&&o<=57343)&&(o=null))):s===4&&(l=e[n+1],u=e[n+2],f=e[n+3],(l&192)==128&&(u&192)==128&&(f&192)==128&&(o=(a&15)<<18|(l&63)<<12|(u&63)<<6|f&63,(o<=65535||o>=1114112)&&(o=null))),o===null?(o=65533,s=1):o>65535&&(o-=65536,i+=String.fromCharCode(o>>>10&1023|55296),o=56320|o&1023),i+=String.fromCharCode(o),n+=s}return i}function Jwr(e,t,r){e===1&&r.readMessage(Qwr,t)}function Qwr(e,t,r){if(e===3){let{id:i,bitmap:n,width:a,height:o,left:s,top:l,advance:u}=r.readMessage(eAr,{});t.push({id:i,bitmap:new Eq({width:a+6,height:o+6},n),metrics:{width:a,height:o,left:s,top:l,advance:u}})}}function eAr(e,t,r){e===1?t.id=r.readVarint():e===2?t.bitmap=r.readBytes():e===3?t.width=r.readVarint():e===4?t.height=r.readVarint():e===5?t.left=r.readSVarint():e===6?t.top=r.readSVarint():e===7&&(t.advance=r.readVarint())}function xat(e){return new gat(e).readFields(Jwr,[])}function kC(e){return typeof(e==null?void 0:e.renderWithWebGL)=="function"}function bat(e){let{userImage:t}=e;return!(t!=null&&t.render)||!t.render()?!1:(kC(t.data)||e.data.replace(new Uint8Array(t.data.buffer)),!0)}function dae(e){let t=0,r=0;for(let o of e)t+=o.w*o.h,r=Math.max(r,o.w);e.sort((o,s)=>s.h-o.h);let i=[{x:0,y:0,w:Math.max(Math.ceil(Math.sqrt(t/.95)),r),h:1/0}],n=0,a=0;for(let o of e)for(let s=i.length-1;s>=0;s--){let l=i[s];if(!(o.w>l.w||o.h>l.h)){if(o.x=l.x,o.y=l.y,a=Math.max(a,o.y+o.h),n=Math.max(n,o.x+o.w),o.w===l.w&&o.h===l.h){let u=i.pop();u&&s=r;a--)t.push(a);r=i+1}else{for(let a=r;ae.toCodeUnitIndex(a)),i=U7.isParsed()?U7:null;if(e.sections.length===1)return i?i.processBidirectionalText(e.toString(),r).map(a=>Ftt(a,e.sections,[...a].map(()=>0))):$wr(e.toString(),r).map(a=>nne([...a],e.sections,[...a].map(()=>0)));let n=aAr(e);return i?i.processStyledBidirectionalText(e.text,n,r).map(([a,o])=>Ftt(a,e.sections,o)):Ywr(e.text,n,r).map(([a,o])=>{let s=[...a];return nne(s,e.sections,wat(s).map(l=>{var u;return(u=o[l])!=null?u:0}))})}function nne(e,t,r){var a;let i=new cae(e.join(""),t,[]),n=0;for(let o of i.graphemes())i.sectionIndex.push((a=r[n])!=null?a:0),n+=[...o].length;return i}function wat(e){let t=[],r=0;for(let i of e)t.push(r),r+=i.length;return t}function Ftt(e,t,r){let i=[...e],n=wat(i),a=nAr(i);return nne(a.map(o=>i[o]),t,a.map(o=>{var s;return(s=r[n[o]])!=null?s:0}))}function v7(e,t,r,i,n,a,o,s,l,u,f,c,h,d,p){let v=cae.fromFeature(e,n);c===2&&v.verticalizePunctuation();let y=v.determineLineBreaks(u,a,t,i,d),m=vat(v.text)?oAr(v,y):iAr(v,y),w=[],_={positionedLines:w,text:v.toString(),top:f[1],bottom:f[1],left:f[0],right:f[0],writingMode:c,iconsInText:!1,verticalizable:!1};return vAr(_,t,r,i,m,o,s,l,c,u,h,p),!rAr(w)&&_}function CC(e){let t=.5,r=.5;switch(e){case"right":case"top-right":case"bottom-right":t=1;break;case"left":case"top-left":case"bottom-left":t=0}switch(e){case"bottom":case"bottom-right":case"bottom-left":r=1;break;case"top":case"top-right":case"top-left":r=0}return{horizontalAlign:t,verticalAlign:r}}function sAr(e,t,r){let i=t.getMaxScale()*24,{maxImageWidth:n,maxImageHeight:a}=t.getMaxImageSize(e),o=Math.max(i,a*r);return{verticalLineContentWidth:Math.max(i,n*r),horizontalLineContentHeight:o}}function Aat(e){switch(e){case"top":return 0;case"center":return .5;default:return 1}}function lAr(e,t,r,i){var a,o;if(e!=null&&e.rect)return e;let n=(o=(a=t[r.fontStack])==null?void 0:a.default)==null?void 0:o[i];return n?{rect:null,metrics:n.metrics}:null}function uAr(e,t,r){return!(e===1||!t&&!Lq(r)||t&&(fae(r)||dat(r)))}function S7(e){return new RegExp("\\p{Nd}","u").test(String.fromCodePoint(e))}function Tat(e){return new RegExp("\\p{Lu}","u").test(String.fromCodePoint(e))}function fAr(e){return/[\p{P}\p{S}]/u.test(String.fromCodePoint(e))}function cAr(e){let t=e.some(S7)&&e.every(i=>S7(i)||fAr(i)),r=e.length<=3&&e.every(i=>Tat(i)||S7(i));return t||r}function hAr(e){return(S7(e)||Tat(e))&&!dat(e)}function dAr(e,t){let r=!1;for(let i=0;ia.codePointAt(0)),i=r.map(Lq),n=a=>!i[a]&&!fae(r[a])&&!("imageName"in e.getSection(a));for(let a=0;au){let h=Math.ceil(i/u);r*=h/n,n=h}return{x1:t,y1:r,x2:t+i,y2:r+n}}function Ltt(e,t,r,i,n,a){let o=e.image,s;if(o.content){let y=o.content,m=o.pixelRatio||1;s=[y[0]/m,y[1]/m,o.displaySize[0]-y[2]/m,o.displaySize[1]-y[3]/m]}let l=t.left*a,u=t.right*a,f,c,h,d;r==="width"||r==="both"?(d=n[0]+l-i[3],c=n[0]+u+i[1]):(d=n[0]+(l+u-o.displaySize[0])/2,c=d+o.displaySize[0]);let p=t.top*a,v=t.bottom*a;return r==="height"||r==="both"?(f=n[1]+p-i[0],h=n[1]+v+i[2]):(f=n[1]+(p+v-o.displaySize[1])/2,h=f+o.displaySize[1]),{image:o,top:f,right:c,bottom:h,left:d,collisionPadding:s}}function ztt(e,t){let{expression:r}=t;if(r.kind==="constant")return{kind:"constant",layoutSize:r.evaluate(new Xu(e+1))};if(r.kind==="source")return{kind:"source"};if(r.kind==="composite"){let{minZoom:i,maxZoom:n}=_Ar(r.zoomStops,e);return{kind:"composite",minZoom:i,maxZoom:n,interpolationType:r.interpolationType}}{let i=wAr(r),n=r.evaluate(new Xu(e+1));return{kind:"camera",zoomStops:r.zoomStops,sizes:i,layoutSize:n,interpolationType:r.interpolationType}}}function _Ar(e,t){let r=0;for(;re.evaluate(new Xu(t===-1/0?e.zoomStops[1]-1:t)))}function zq(e,{uSize:t,uSizeT:r},{lowerSize:i,upperSize:n}){return e.kind==="source"?i/128:e.kind==="composite"?ec.number(i/128,n/128,r):t}function DC(e,t){let r=0,i=0;return e.kind==="constant"?i=e.layoutSize:e.kind==="camera"?i=AAr(e,t):e.kind==="composite"&&(r=TAr(e,t)),{uSizeT:r,uSize:i}}function AAr({zoomStops:e,sizes:t,layoutSize:r,interpolationType:i},n){let a=e.length-1;for(;a>0&&e[a]>n;)a--;let o=Math.min(a+1,e.length-1),s=i?Pl(Av.interpolationFactor(i,n,e[a],e[o]),0,1):0;return Math.min(ec.number(t[a],t[o],s),r)}function TAr({interpolationType:e,minZoom:t,maxZoom:r},i){return e?Pl(Av.interpolationFactor(e,i,t,r),0,1):0}function Eat(e,t,r,i,n){if(t.segment===void 0||r===0)return!0;let a=t,o=t.segment+1,s=0;for(;s>-r/2;){if(o--,o<0)return!1;s-=e[o].dist(a),a=e[o]}s+=e[o].dist(e[o+1]),o++;let l=[],u=0;for(;si;)u-=l.shift().angleDelta;if(u>n)return!1;o++,s+=c.dist(h)}return!0}function kat(e){let t=0;for(let r=0;ru){let p=(u-l)/d,v=new z5(ec.number(c.x,h.x,p),ec.number(c.y,h.y,p),h.angleTo(c),f);return v._round(),!o||Eat(e,v,s,o,t)?v:void 0}l+=d}}function SAr(e,t,r,i,n,a,o,s,l){let u=Cat(i,a,o),f=Dat(i,n),c=f*o,h=e[0].x===0||e[0].x===l||e[0].y===0||e[0].y===l;t-c=0&&b=0&&M=0&&h+u<=f){let x=new z5(b,M,w,p);x._round(),(!i||Eat(e,x,a,i,n))&&d.push(x)}}c+=m}return!s&&!d.length&&!o&&(d=Fat(e,c/2,r,i,n,a,o,!0,l)),d}function pae(e,t,r,i,n){let a=[];for(let o of e){let s;for(let l=0;l=i&&f.x>=i)&&(u.x>=i?u=new Zr(i,u.y+(f.y-u.y)*((i-u.x)/(f.x-u.x)))._round():f.x>=i&&(f=new Zr(i,u.y+(f.y-u.y)*((i-u.x)/(f.x-u.x)))._round()),!(u.y>=n&&f.y>=n)&&(u.y>=n?u=new Zr(u.x+(f.x-u.x)*((n-u.y)/(f.y-u.y)),n)._round():f.y>=n&&(f=new Zr(u.x+(f.x-u.x)*((n-u.y)/(f.y-u.y)),n)._round()),(!s||!u.equals(s[s.length-1]))&&(s=[u],a.push(s)),s.push(f)))))}}return a}function Itt(e,t,r,i){let n=[],a=e.image,o=a.pixelRatio,s=a.paddedRect.w-2,l=a.paddedRect.h-2,u={x1:e.left,y1:e.top,x2:e.right,y2:e.bottom},f=a.stretchX||[[0,s]],c=a.stretchY||[[0,l]],h=(D,L)=>D+L[1]-L[0],d=f.reduce(h,0),p=c.reduce(h,0),v=s-d,y=l-p,m=0,w=d,_=0,b=p,M=0,x=v,A=0,T=y;if(a.content&&i){let D=a.content,L=D[2]-D[0],P=D[3]-D[1];(a.textFitWidth||a.textFitHeight)&&(u=Mat(e)),m=m7(f,0,D[0]),_=m7(c,0,D[1]),w=m7(f,D[0],D[2]),b=m7(c,D[1],D[3]),M=D[0]-m,A=D[1]-_,x=L-w,T=P-b}let g=u.x1,E=u.y1,S=u.x2-g,C=u.y2-E,k=(D,L,P,I)=>{let F=y7(D.stretch-m,w,S,g),z=g7(D.fixed-M,x,D.stretch,d),B=y7(L.stretch-_,b,C,E),O=g7(L.fixed-A,T,L.stretch,p),W=y7(P.stretch-m,w,S,g),X=g7(P.fixed-M,x,P.stretch,d),Z=y7(I.stretch-_,b,C,E),j=g7(I.fixed-A,T,I.stretch,p),q=new Zr(F,B),Q=new Zr(W,B),N=new Zr(W,Z),V=new Zr(F,Z),J=new Zr(z/o,O/o),H=new Zr(X/o,j/o),$=t*Math.PI/180;if($){let Ie=Math.sin($),Ce=Math.cos($),le=[Ce,-Ie,Ie,Ce];q._matMult(le),Q._matMult(le),V._matMult(le),N._matMult(le)}let te=D.stretch+D.fixed,ie=P.stretch+P.fixed,de=L.stretch+L.fixed,ge=I.stretch+I.fixed;return{tl:q,tr:Q,bl:V,br:N,tex:{x:a.paddedRect.x+1+te,y:a.paddedRect.y+1+de,w:ie-te,h:ge-de},writingMode:void 0,glyphOffset:[0,0],sectionIndex:0,pixelOffsetTL:J,pixelOffsetBR:H,minFontScaleX:x/o/S,minFontScaleY:T/o/C,isSDF:r}};if(!i||!a.stretchX&&!a.stretchY)n.push(k({fixed:0,stretch:-1},{fixed:0,stretch:-1},{fixed:0,stretch:s+1},{fixed:0,stretch:l+1}));else{let D=Rtt(f,v,d),L=Rtt(c,y,p);for(let P=0;Pc.d||!c.d)&&(c=h),!(h.max-c.d<=t)&&(n=h.h/2,a.push(new S5(h.p.x-n,h.p.y-n,n,e)),a.push(new S5(h.p.x+n,h.p.y-n,n,e)),a.push(new S5(h.p.x-n,h.p.y+n,n,e)),a.push(new S5(h.p.x+n,h.p.y+n,n,e)))}return f.d>0&&c.d-f.d<=t?f.p:c.p}function DAr(e,t){return t.max-e.max}function FAr(e,t){let r=!1,i=1/0;for(let n of t)for(let a=0,o=n.length,s=o-1;ae.y!=u.y>e.y&&e.x<(u.x-l.x)*(e.y-l.y)/(u.y-l.y)+l.x&&(r=!r),i=Math.min(i,Lnt(e,l,u))}return(r?1:-1)*Math.sqrt(i)}function LAr(e){let t=0,r=0,i=0,n=e[0];for(let a=0,o=n.length,s=o-1;ah*24);f.startsWith("top")?c[1]-=7:f.startsWith("bottom")&&(c[1]+=7),l[u+1]=c}return new qm(l)}let a=i.get("text-variable-anchor");if(a){let s;s=e._unevaluatedLayout.getValue("text-radial-offset")===void 0?i.get("text-offset").evaluate(t,{},r).map(u=>u*24):[i.get("text-radial-offset").evaluate(t,{},r)*24,vae];let l=[];for(let u of a)l.push(u,Lat(u,s));return new qm(l)}return null}function PAr(e){var f,c;e.bucket.createArrays();let t=512*e.bucket.overscaling;e.bucket.tilePixelRatio=Aa/t,e.bucket.compareText={},e.bucket.iconsNeedLinear=!1;let r=e.bucket.layers[0],i=r.layout,n=r._unevaluatedLayout._values,a={layoutIconSize:n["icon-size"].possiblyEvaluate(new Xu(e.bucket.zoom+1),e.canonical),layoutTextSize:n["text-size"].possiblyEvaluate(new Xu(e.bucket.zoom+1),e.canonical),textMaxSize:n["text-size"].possiblyEvaluate(new Xu(18))};if(e.bucket.textSizeData.kind==="composite"){let{minZoom:h,maxZoom:d}=e.bucket.textSizeData;a.compositeTextSizes=[n["text-size"].possiblyEvaluate(new Xu(h),e.canonical),n["text-size"].possiblyEvaluate(new Xu(d),e.canonical)]}if(e.bucket.iconSizeData.kind==="composite"){let{minZoom:h,maxZoom:d}=e.bucket.iconSizeData;a.compositeIconSizes=[n["icon-size"].possiblyEvaluate(new Xu(h),e.canonical),n["icon-size"].possiblyEvaluate(new Xu(d),e.canonical)]}let o=i.get("text-line-height")*24,s=i.get("text-rotation-alignment")!=="viewport"&&i.get("symbol-placement")!=="point",l=i.get("text-keep-upright"),u=i.get("text-size");for(let h of e.bucket.features){let d=i.get("text-font").evaluate(h,{},e.canonical).join(","),p=u.evaluate(h,{},e.canonical),v=a.layoutTextSize.evaluate(h,{},e.canonical),y=a.layoutIconSize.evaluate(h,{},e.canonical),m={horizontal:{},vertical:void 0},w=h.text,_=[0,0];if(w){let A=w.toString(),T=i.get("text-letter-spacing").evaluate(h,{},e.canonical)*24,g=Dwr(A)?T:0,E=i.get("text-anchor").evaluate(h,{},e.canonical),S=Pat(r,h,e.canonical);if(!S){let L=i.get("text-radial-offset").evaluate(h,{},e.canonical);_=L?Lat(E,[L*24,vae]):i.get("text-offset").evaluate(h,{},e.canonical).map(P=>P*24)}let C=s?"center":i.get("text-justify").evaluate(h,{},e.canonical),k=i.get("symbol-placement")==="point"?i.get("text-max-width").evaluate(h,{},e.canonical)*24:1/0,D=()=>{e.bucket.allowVerticalPlacement&&tne(A)&&(m.vertical=v7(w,e.glyphMap,e.glyphPositions,e.imagePositions,d,k,o,E,"left",g,_,2,!0,v,p))};if(!s&&S){let L=new Set;if(C==="auto")for(let I=0;I{F.x<0||F.x>=8192||F.y<0||F.y>=8192||RAr(e,F,I,r,i,n,D,e.layers[0],e.collisionBoxArray,t.index,t.sourceLayerIndex,e.index,w,[x,x,x,x],g,l,b,A,E,v,t,a,u,f,o,h)};if(S==="line")for(let I of pae(t.geometry,0,0,Aa,Aa)){let F=Q_(I,L),z=SAr(F,M,T,r.vertical||y,i,24,_,e.overscaling,Aa);for(let B of z){let O=y;(!O||!BAr(e,O.text,C,B))&&P(F,B)}}else if(S==="line-center"){for(let I of t.geometry)if(I.length>1){let F=Q_(I,L),z=MAr(F,T,r.vertical||y,i,24,_);z&&P(F,z)}}else if(t.type==="Polygon")for(let I of hq(t.geometry,0)){let F=CAr(I,16);P(Q_(I[0],L,!0),new z5(F.x,F.y,0))}else if(t.type==="LineString")for(let I of t.geometry){let F=Q_(I,L);P(F,new z5(F[0].x,F[0].y,0))}else if(t.type==="Point")for(let I of t.geometry)for(let F of I)P([F],new z5(F.x,F.y,0))}function IAr(e,t){let r=e.length,i=t==null?void 0:t.values;if((i==null?void 0:i.length)>0)for(let n=0;n32640&&lu(`${e.layerIds[0]}: Value for "text-size" is >= 255. Reduce your "text-size".`)):m.kind==="composite"&&(w=[128*p.compositeTextSizes[0].evaluate(o,{},v),128*p.compositeTextSizes[1].evaluate(o,{},v)],(w[0]>32640||w[1]>32640)&&lu(`${e.layerIds[0]}: Value for "text-size" is >= 255. Reduce your "text-size".`)),e.addSymbols(e.text,y,w,s,a,o,f,t,u.lineStartIndex,u.lineLength,d,v,l);for(let _ of c)h[_]=e.text.placedSymbolArray.length-1;return y.length*4}function zat(e){for(let t in e)return e[t];return null}function RAr(e,t,r,i,n,a,o,s,l,u,f,c,h,d,p,v,y,m,w,_,b,M,x,A,T,g){let E=e.addToLineVertexArray(t,r),S=s.layout.get("symbol-height-offset").evaluate(b,{},A);S>e.maxHeightOffset&&(e.maxHeightOffset=S);let C,k,D,L,P=0,I=0,F=0,z=0,B=-1,O=-1,W={},X=(0,q7.default)("");if(e.allowVerticalPlacement&&i.vertical){let le=s.layout.get("text-rotate").evaluate(b,{},A)+90,re=i.vertical;D=new x7(l,t,u,f,c,re,h,d,p,le),o&&(L=new x7(l,t,u,f,c,o,y,m,p,le))}if(n){let le=s.layout.get("icon-rotate").evaluate(b,{}),re=s.layout.get("icon-text-fit")!=="none",Ee=Itt(n,le,x,re),we=o?Itt(o,le,x,re):void 0;k=new x7(l,t,u,f,c,n,y,m,!1,le),P=Ee.length*4;let oe=e.iconSizeData,Y=null;oe.kind==="source"?(Y=[128*s.layout.get("icon-size").evaluate(b,{})],Y[0]>32640&&lu(`${e.layerIds[0]}: Value for "icon-size" is >= 255. Reduce your "icon-size".`)):oe.kind==="composite"&&(Y=[128*M.compositeIconSizes[0].evaluate(b,{},A),128*M.compositeIconSizes[1].evaluate(b,{},A)],(Y[0]>32640||Y[1]>32640)&&lu(`${e.layerIds[0]}: Value for "icon-size" is >= 255. Reduce your "icon-size".`)),e.addSymbols(e.icon,Ee,Y,_,w,b,0,t,E.lineStartIndex,E.lineLength,-1,A,S),B=e.icon.placedSymbolArray.length-1,we&&(I=we.length*4,e.addSymbols(e.icon,we,Y,_,w,b,2,t,E.lineStartIndex,E.lineLength,-1,A,S),O=e.icon.placedSymbolArray.length-1)}let Z=Object.keys(i.horizontal);for(let le of Z){let re=i.horizontal[le];C||(C=(X=(0,q7.default)(re.text),new x7(l,t,u,f,c,re,h,d,p,s.layout.get("text-rotate").evaluate(b,{},A))));let Ee=re.positionedLines.length===1;if(F+=Btt(e,t,re,a,s,p,b,v,S,E,i.vertical?1:3,Ee?Z:[le],W,B,M,A),Ee)break}i.vertical&&(z+=Btt(e,t,i.vertical,a,s,p,b,v,S,E,2,["vertical"],W,O,M,A));let j=C?C.boxStartIndex:e.collisionBoxArray.length,q=C?C.boxEndIndex:e.collisionBoxArray.length,Q=D?D.boxStartIndex:e.collisionBoxArray.length,N=D?D.boxEndIndex:e.collisionBoxArray.length,V=k?k.boxStartIndex:e.collisionBoxArray.length,J=k?k.boxEndIndex:e.collisionBoxArray.length,H=L?L.boxStartIndex:e.collisionBoxArray.length,$=L?L.boxEndIndex:e.collisionBoxArray.length,te=-1,ie=(le,re)=>le!=null&&le.circleDiameter?Math.max(le.circleDiameter,re):re;te=ie(C,te),te=ie(D,te),te=ie(k,te),te=ie(L,te);let de=+(te>-1);de&&(te*=T/24),e.glyphOffsetArray.length>=e.maxGlyphs&&lu("Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907"),b.sortKey!==void 0&&e.addToSortKeyRanges(e.symbolInstances.length,b.sortKey);let ge=Pat(s,b,A),[Ie,Ce]=IAr(e.textAnchorOffsets,ge);g&&(X=qAr(X,b)),e.symbolInstances.emplaceBack(t.x,t.y,W.right>=0?W.right:-1,W.center>=0?W.center:-1,W.left>=0?W.left:-1,W.vertical||-1,B,O,X,j,q,Q,N,V,J,H,$,u,F,z,P,I,de,0,h,te,Ie,Ce,S)}function BAr(e,t,r,i){let n=e.compareText;if(!(t in n))n[t]=[];else{let a=n[t];for(let o=a.length-1;o>=0;o--)if(i.dist(a[o])e&&i in e?String(e[i]):"")}function jAr(e,t,r,i=1){var a;let n=(a=e.get("icon-padding").evaluate(t,{},r))==null?void 0:a.values;return[n[0]*i,n[1]*i,n[2]*i,n[3]*i]}function Bat(e){let t=[],r=e.id;return r===void 0&&t.push(new wo(`layers.${r}`,null,'missing required property "id"')),e.render===void 0&&t.push(new wo(`layers.${r}`,null,'missing required method "render"')),e.renderingMode&&e.renderingMode!=="2d"&&e.renderingMode!=="3d"&&t.push(new wo(`layers.${r}`,null,'property "renderingMode" must be either "2d" or "3d"')),t}function Rq(e,t){if(e.type==="custom")return new XAr(e,t);switch(e.type){case"background":return new YAr(e,t);case"circle":return new B_r(e,t);case"color-relief":return new $_r(e,t);case"fill":return new T3r(e,t);case"fill-extrusion":return new U3r(e,t);case"heatmap":return new N_r(e,t);case"hillshade":return new G_r(e,t);case"line":return new ewr(e,t);case"raster":return new t_r(e,t);case"symbol":return new HAr(e,t)}}function JAr(e,t,r){return!(e<0||e>25||r<0||r>=2**e||t<0||t>=2**e)}function yae(e,t){let{x:r,y:i}=Uu.fromLngLat(t);return!(e<0||e>25||i<0||i>=1||r<0||r>=1)}function r3(e,t,r,i,n){e*=2,e<0&&(e=e*-1-1);let a=1<0;n--){let a=1<>>0;return((t&255)<<24|(t&65280)<<8|t>>>8&65280|t>>>24&255)>>>0}function a4r(e,t,r,i){let n=i,a=e[t]>>>0,o=e[t+1]>>>0;r[n++]=a>>>0&3,r[n++]=a>>>2&3,r[n++]=a>>>4&3,r[n++]=a>>>6&3,r[n++]=a>>>8&3,r[n++]=a>>>10&3,r[n++]=a>>>12&3,r[n++]=a>>>14&3,r[n++]=a>>>16&3,r[n++]=a>>>18&3,r[n++]=a>>>20&3,r[n++]=a>>>22&3,r[n++]=a>>>24&3,r[n++]=a>>>26&3,r[n++]=a>>>28&3,r[n++]=a>>>30&3,r[n++]=o>>>0&3,r[n++]=o>>>2&3,r[n++]=o>>>4&3,r[n++]=o>>>6&3,r[n++]=o>>>8&3,r[n++]=o>>>10&3,r[n++]=o>>>12&3,r[n++]=o>>>14&3,r[n++]=o>>>16&3,r[n++]=o>>>18&3,r[n++]=o>>>20&3,r[n++]=o>>>22&3,r[n++]=o>>>24&3,r[n++]=o>>>26&3,r[n++]=o>>>28&3,r[n]=o>>>30&3}function o4r(e,t,r,i){let n=i,a=e[t]>>>0,o=e[t+1]>>>0,s=e[t+2]>>>0;r[n++]=a>>>0&7,r[n++]=a>>>3&7,r[n++]=a>>>6&7,r[n++]=a>>>9&7,r[n++]=a>>>12&7,r[n++]=a>>>15&7,r[n++]=a>>>18&7,r[n++]=a>>>21&7,r[n++]=a>>>24&7,r[n++]=a>>>27&7,r[n++]=(a>>>30|(o&1)<<2)&7,r[n++]=o>>>1&7,r[n++]=o>>>4&7,r[n++]=o>>>7&7,r[n++]=o>>>10&7,r[n++]=o>>>13&7,r[n++]=o>>>16&7,r[n++]=o>>>19&7,r[n++]=o>>>22&7,r[n++]=o>>>25&7,r[n++]=o>>>28&7,r[n++]=(o>>>31|(s&3)<<1)&7,r[n++]=s>>>2&7,r[n++]=s>>>5&7,r[n++]=s>>>8&7,r[n++]=s>>>11&7,r[n++]=s>>>14&7,r[n++]=s>>>17&7,r[n++]=s>>>20&7,r[n++]=s>>>23&7,r[n++]=s>>>26&7,r[n]=s>>>29&7}function s4r(e,t,r,i){let n=i,a=e[t]>>>0,o=e[t+1]>>>0,s=e[t+2]>>>0,l=e[t+3]>>>0;r[n++]=a>>>0&15,r[n++]=a>>>4&15,r[n++]=a>>>8&15,r[n++]=a>>>12&15,r[n++]=a>>>16&15,r[n++]=a>>>20&15,r[n++]=a>>>24&15,r[n++]=a>>>28&15,r[n++]=o>>>0&15,r[n++]=o>>>4&15,r[n++]=o>>>8&15,r[n++]=o>>>12&15,r[n++]=o>>>16&15,r[n++]=o>>>20&15,r[n++]=o>>>24&15,r[n++]=o>>>28&15,r[n++]=s>>>0&15,r[n++]=s>>>4&15,r[n++]=s>>>8&15,r[n++]=s>>>12&15,r[n++]=s>>>16&15,r[n++]=s>>>20&15,r[n++]=s>>>24&15,r[n++]=s>>>28&15,r[n++]=l>>>0&15,r[n++]=l>>>4&15,r[n++]=l>>>8&15,r[n++]=l>>>12&15,r[n++]=l>>>16&15,r[n++]=l>>>20&15,r[n++]=l>>>24&15,r[n]=l>>>28&15}function l4r(e,t,r,i){let n=i,a=e[t]>>>0,o=e[t+1]>>>0,s=e[t+2]>>>0,l=e[t+3]>>>0,u=e[t+4]>>>0;r[n++]=a>>>0&31,r[n++]=a>>>5&31,r[n++]=a>>>10&31,r[n++]=a>>>15&31,r[n++]=a>>>20&31,r[n++]=a>>>25&31,r[n++]=(a>>>30|(o&7)<<2)&31,r[n++]=o>>>3&31,r[n++]=o>>>8&31,r[n++]=o>>>13&31,r[n++]=o>>>18&31,r[n++]=o>>>23&31,r[n++]=(o>>>28|(s&1)<<4)&31,r[n++]=s>>>1&31,r[n++]=s>>>6&31,r[n++]=s>>>11&31,r[n++]=s>>>16&31,r[n++]=s>>>21&31,r[n++]=s>>>26&31,r[n++]=(s>>>31|(l&15)<<1)&31,r[n++]=l>>>4&31,r[n++]=l>>>9&31,r[n++]=l>>>14&31,r[n++]=l>>>19&31,r[n++]=l>>>24&31,r[n++]=(l>>>29|(u&3)<<3)&31,r[n++]=u>>>2&31,r[n++]=u>>>7&31,r[n++]=u>>>12&31,r[n++]=u>>>17&31,r[n++]=u>>>22&31,r[n]=u>>>27&31}function u4r(e,t,r,i){let n=i,a=e[t]>>>0,o=e[t+1]>>>0,s=e[t+2]>>>0,l=e[t+3]>>>0,u=e[t+4]>>>0,f=e[t+5]>>>0;r[n++]=a>>>0&63,r[n++]=a>>>6&63,r[n++]=a>>>12&63,r[n++]=a>>>18&63,r[n++]=a>>>24&63,r[n++]=(a>>>30|(o&15)<<2)&63,r[n++]=o>>>4&63,r[n++]=o>>>10&63,r[n++]=o>>>16&63,r[n++]=o>>>22&63,r[n++]=(o>>>28|(s&3)<<4)&63,r[n++]=s>>>2&63,r[n++]=s>>>8&63,r[n++]=s>>>14&63,r[n++]=s>>>20&63,r[n++]=s>>>26&63,r[n++]=l>>>0&63,r[n++]=l>>>6&63,r[n++]=l>>>12&63,r[n++]=l>>>18&63,r[n++]=l>>>24&63,r[n++]=(l>>>30|(u&15)<<2)&63,r[n++]=u>>>4&63,r[n++]=u>>>10&63,r[n++]=u>>>16&63,r[n++]=u>>>22&63,r[n++]=(u>>>28|(f&3)<<4)&63,r[n++]=f>>>2&63,r[n++]=f>>>8&63,r[n++]=f>>>14&63,r[n++]=f>>>20&63,r[n]=f>>>26&63}function f4r(e,t,r,i){let n=i,a=e[t]>>>0,o=e[t+1]>>>0,s=e[t+2]>>>0,l=e[t+3]>>>0,u=e[t+4]>>>0,f=e[t+5]>>>0,c=e[t+6]>>>0;r[n++]=a>>>0&127,r[n++]=a>>>7&127,r[n++]=a>>>14&127,r[n++]=a>>>21&127,r[n++]=(a>>>28|(o&7)<<4)&127,r[n++]=o>>>3&127,r[n++]=o>>>10&127,r[n++]=o>>>17&127,r[n++]=o>>>24&127,r[n++]=(o>>>31|(s&63)<<1)&127,r[n++]=s>>>6&127,r[n++]=s>>>13&127,r[n++]=s>>>20&127,r[n++]=(s>>>27|(l&3)<<5)&127,r[n++]=l>>>2&127,r[n++]=l>>>9&127,r[n++]=l>>>16&127,r[n++]=l>>>23&127,r[n++]=(l>>>30|(u&31)<<2)&127,r[n++]=u>>>5&127,r[n++]=u>>>12&127,r[n++]=u>>>19&127,r[n++]=(u>>>26|(f&1)<<6)&127,r[n++]=f>>>1&127,r[n++]=f>>>8&127,r[n++]=f>>>15&127,r[n++]=f>>>22&127,r[n++]=(f>>>29|(c&15)<<3)&127,r[n++]=c>>>4&127,r[n++]=c>>>11&127,r[n++]=c>>>18&127,r[n]=c>>>25&127}function c4r(e,t,r,i){let n=i,a=e[t]>>>0,o=e[t+1]>>>0,s=e[t+2]>>>0,l=e[t+3]>>>0,u=e[t+4]>>>0,f=e[t+5]>>>0,c=e[t+6]>>>0,h=e[t+7]>>>0;r[n++]=a>>>0&255,r[n++]=a>>>8&255,r[n++]=a>>>16&255,r[n++]=a>>>24&255,r[n++]=o>>>0&255,r[n++]=o>>>8&255,r[n++]=o>>>16&255,r[n++]=o>>>24&255,r[n++]=s>>>0&255,r[n++]=s>>>8&255,r[n++]=s>>>16&255,r[n++]=s>>>24&255,r[n++]=l>>>0&255,r[n++]=l>>>8&255,r[n++]=l>>>16&255,r[n++]=l>>>24&255,r[n++]=u>>>0&255,r[n++]=u>>>8&255,r[n++]=u>>>16&255,r[n++]=u>>>24&255,r[n++]=f>>>0&255,r[n++]=f>>>8&255,r[n++]=f>>>16&255,r[n++]=f>>>24&255,r[n++]=c>>>0&255,r[n++]=c>>>8&255,r[n++]=c>>>16&255,r[n++]=c>>>24&255,r[n++]=h>>>0&255,r[n++]=h>>>8&255,r[n++]=h>>>16&255,r[n]=h>>>24&255}function h4r(e,t,r,i){let n=i,a=e[t]>>>0,o=e[t+1]>>>0,s=e[t+2]>>>0,l=e[t+3]>>>0,u=e[t+4]>>>0,f=e[t+5]>>>0,c=e[t+6]>>>0,h=e[t+7]>>>0,d=e[t+8]>>>0;r[n++]=a>>>0&511,r[n++]=a>>>9&511,r[n++]=a>>>18&511,r[n++]=(a>>>27|(o&15)<<5)&511,r[n++]=o>>>4&511,r[n++]=o>>>13&511,r[n++]=o>>>22&511,r[n++]=(o>>>31|(s&255)<<1)&511,r[n++]=s>>>8&511,r[n++]=s>>>17&511,r[n++]=(s>>>26|(l&7)<<6)&511,r[n++]=l>>>3&511,r[n++]=l>>>12&511,r[n++]=l>>>21&511,r[n++]=(l>>>30|(u&127)<<2)&511,r[n++]=u>>>7&511,r[n++]=u>>>16&511,r[n++]=(u>>>25|(f&3)<<7)&511,r[n++]=f>>>2&511,r[n++]=f>>>11&511,r[n++]=f>>>20&511,r[n++]=(f>>>29|(c&63)<<3)&511,r[n++]=c>>>6&511,r[n++]=c>>>15&511,r[n++]=(c>>>24|(h&1)<<8)&511,r[n++]=h>>>1&511,r[n++]=h>>>10&511,r[n++]=h>>>19&511,r[n++]=(h>>>28|(d&31)<<4)&511,r[n++]=d>>>5&511,r[n++]=d>>>14&511,r[n]=d>>>23&511}function d4r(e,t,r,i){let n=i,a=e[t]>>>0,o=e[t+1]>>>0,s=e[t+2]>>>0,l=e[t+3]>>>0,u=e[t+4]>>>0,f=e[t+5]>>>0,c=e[t+6]>>>0,h=e[t+7]>>>0,d=e[t+8]>>>0,p=e[t+9]>>>0;r[n++]=a>>>0&1023,r[n++]=a>>>10&1023,r[n++]=a>>>20&1023,r[n++]=(a>>>30|(o&255)<<2)&1023,r[n++]=o>>>8&1023,r[n++]=o>>>18&1023,r[n++]=(o>>>28|(s&63)<<4)&1023,r[n++]=s>>>6&1023,r[n++]=s>>>16&1023,r[n++]=(s>>>26|(l&15)<<6)&1023,r[n++]=l>>>4&1023,r[n++]=l>>>14&1023,r[n++]=(l>>>24|(u&3)<<8)&1023,r[n++]=u>>>2&1023,r[n++]=u>>>12&1023,r[n++]=u>>>22&1023,r[n++]=f>>>0&1023,r[n++]=f>>>10&1023,r[n++]=f>>>20&1023,r[n++]=(f>>>30|(c&255)<<2)&1023,r[n++]=c>>>8&1023,r[n++]=c>>>18&1023,r[n++]=(c>>>28|(h&63)<<4)&1023,r[n++]=h>>>6&1023,r[n++]=h>>>16&1023,r[n++]=(h>>>26|(d&15)<<6)&1023,r[n++]=d>>>4&1023,r[n++]=d>>>14&1023,r[n++]=(d>>>24|(p&3)<<8)&1023,r[n++]=p>>>2&1023,r[n++]=p>>>12&1023,r[n]=p>>>22&1023}function p4r(e,t,r,i){let n=i,a=e[t]>>>0,o=e[t+1]>>>0,s=e[t+2]>>>0,l=e[t+3]>>>0,u=e[t+4]>>>0,f=e[t+5]>>>0,c=e[t+6]>>>0,h=e[t+7]>>>0,d=e[t+8]>>>0,p=e[t+9]>>>0,v=e[t+10]>>>0;r[n++]=a>>>0&2047,r[n++]=a>>>11&2047,r[n++]=(a>>>22|(o&1)<<10)&2047,r[n++]=o>>>1&2047,r[n++]=o>>>12&2047,r[n++]=(o>>>23|(s&3)<<9)&2047,r[n++]=s>>>2&2047,r[n++]=s>>>13&2047,r[n++]=(s>>>24|(l&7)<<8)&2047,r[n++]=l>>>3&2047,r[n++]=l>>>14&2047,r[n++]=(l>>>25|(u&15)<<7)&2047,r[n++]=u>>>4&2047,r[n++]=u>>>15&2047,r[n++]=(u>>>26|(f&31)<<6)&2047,r[n++]=f>>>5&2047,r[n++]=f>>>16&2047,r[n++]=(f>>>27|(c&63)<<5)&2047,r[n++]=c>>>6&2047,r[n++]=c>>>17&2047,r[n++]=(c>>>28|(h&127)<<4)&2047,r[n++]=h>>>7&2047,r[n++]=h>>>18&2047,r[n++]=(h>>>29|(d&255)<<3)&2047,r[n++]=d>>>8&2047,r[n++]=d>>>19&2047,r[n++]=(d>>>30|(p&511)<<2)&2047,r[n++]=p>>>9&2047,r[n++]=p>>>20&2047,r[n++]=(p>>>31|(v&1023)<<1)&2047,r[n++]=v>>>10&2047,r[n]=v>>>21&2047}function v4r(e,t,r,i){let n=i,a=e[t]>>>0,o=e[t+1]>>>0,s=e[t+2]>>>0,l=e[t+3]>>>0,u=e[t+4]>>>0,f=e[t+5]>>>0,c=e[t+6]>>>0,h=e[t+7]>>>0,d=e[t+8]>>>0,p=e[t+9]>>>0,v=e[t+10]>>>0,y=e[t+11]>>>0;r[n++]=a>>>0&4095,r[n++]=a>>>12&4095,r[n++]=(a>>>24|(o&15)<<8)&4095,r[n++]=o>>>4&4095,r[n++]=o>>>16&4095,r[n++]=(o>>>28|(s&255)<<4)&4095,r[n++]=s>>>8&4095,r[n++]=s>>>20&4095,r[n++]=l>>>0&4095,r[n++]=l>>>12&4095,r[n++]=(l>>>24|(u&15)<<8)&4095,r[n++]=u>>>4&4095,r[n++]=u>>>16&4095,r[n++]=(u>>>28|(f&255)<<4)&4095,r[n++]=f>>>8&4095,r[n++]=f>>>20&4095,r[n++]=c>>>0&4095,r[n++]=c>>>12&4095,r[n++]=(c>>>24|(h&15)<<8)&4095,r[n++]=h>>>4&4095,r[n++]=h>>>16&4095,r[n++]=(h>>>28|(d&255)<<4)&4095,r[n++]=d>>>8&4095,r[n++]=d>>>20&4095,r[n++]=p>>>0&4095,r[n++]=p>>>12&4095,r[n++]=(p>>>24|(v&15)<<8)&4095,r[n++]=v>>>4&4095,r[n++]=v>>>16&4095,r[n++]=(v>>>28|(y&255)<<4)&4095,r[n++]=y>>>8&4095,r[n]=y>>>20&4095}function m4r(e,t,r,i){let n=i,a=e[t]>>>0,o=e[t+1]>>>0,s=e[t+2]>>>0,l=e[t+3]>>>0,u=e[t+4]>>>0,f=e[t+5]>>>0,c=e[t+6]>>>0,h=e[t+7]>>>0,d=e[t+8]>>>0,p=e[t+9]>>>0,v=e[t+10]>>>0,y=e[t+11]>>>0,m=e[t+12]>>>0,w=e[t+13]>>>0,_=e[t+14]>>>0,b=e[t+15]>>>0;r[n++]=a>>>0&65535,r[n++]=a>>>16&65535,r[n++]=o>>>0&65535,r[n++]=o>>>16&65535,r[n++]=s>>>0&65535,r[n++]=s>>>16&65535,r[n++]=l>>>0&65535,r[n++]=l>>>16&65535,r[n++]=u>>>0&65535,r[n++]=u>>>16&65535,r[n++]=f>>>0&65535,r[n++]=f>>>16&65535,r[n++]=c>>>0&65535,r[n++]=c>>>16&65535,r[n++]=h>>>0&65535,r[n++]=h>>>16&65535,r[n++]=d>>>0&65535,r[n++]=d>>>16&65535,r[n++]=p>>>0&65535,r[n++]=p>>>16&65535,r[n++]=v>>>0&65535,r[n++]=v>>>16&65535,r[n++]=y>>>0&65535,r[n++]=y>>>16&65535,r[n++]=m>>>0&65535,r[n++]=m>>>16&65535,r[n++]=w>>>0&65535,r[n++]=w>>>16&65535,r[n++]=_>>>0&65535,r[n++]=_>>>16&65535,r[n++]=b>>>0&65535,r[n]=b>>>16&65535}function y4r(e,t,r,i){let n=i,a=t;for(let o=0;o<8;o++){let s=e[a++]>>>0;r[n++]=s>>>0&1,r[n++]=s>>>1&1,r[n++]=s>>>2&1,r[n++]=s>>>3&1,r[n++]=s>>>4&1,r[n++]=s>>>5&1,r[n++]=s>>>6&1,r[n++]=s>>>7&1,r[n++]=s>>>8&1,r[n++]=s>>>9&1,r[n++]=s>>>10&1,r[n++]=s>>>11&1,r[n++]=s>>>12&1,r[n++]=s>>>13&1,r[n++]=s>>>14&1,r[n++]=s>>>15&1,r[n++]=s>>>16&1,r[n++]=s>>>17&1,r[n++]=s>>>18&1,r[n++]=s>>>19&1,r[n++]=s>>>20&1,r[n++]=s>>>21&1,r[n++]=s>>>22&1,r[n++]=s>>>23&1,r[n++]=s>>>24&1,r[n++]=s>>>25&1,r[n++]=s>>>26&1,r[n++]=s>>>27&1,r[n++]=s>>>28&1,r[n++]=s>>>29&1,r[n++]=s>>>30&1,r[n++]=s>>>31&1}}function g4r(e,t,r,i){let n=i,a=t;for(let o=0;o<8;o++){let s=e[a++]>>>0,l=e[a++]>>>0;r[n++]=s>>>0&3,r[n++]=s>>>2&3,r[n++]=s>>>4&3,r[n++]=s>>>6&3,r[n++]=s>>>8&3,r[n++]=s>>>10&3,r[n++]=s>>>12&3,r[n++]=s>>>14&3,r[n++]=s>>>16&3,r[n++]=s>>>18&3,r[n++]=s>>>20&3,r[n++]=s>>>22&3,r[n++]=s>>>24&3,r[n++]=s>>>26&3,r[n++]=s>>>28&3,r[n++]=s>>>30&3,r[n++]=l>>>0&3,r[n++]=l>>>2&3,r[n++]=l>>>4&3,r[n++]=l>>>6&3,r[n++]=l>>>8&3,r[n++]=l>>>10&3,r[n++]=l>>>12&3,r[n++]=l>>>14&3,r[n++]=l>>>16&3,r[n++]=l>>>18&3,r[n++]=l>>>20&3,r[n++]=l>>>22&3,r[n++]=l>>>24&3,r[n++]=l>>>26&3,r[n++]=l>>>28&3,r[n++]=l>>>30&3}}function x4r(e,t,r,i){let n=i,a=t;for(let o=0;o<8;o++){let s=e[a++]>>>0,l=e[a++]>>>0,u=e[a++]>>>0;r[n++]=s>>>0&7,r[n++]=s>>>3&7,r[n++]=s>>>6&7,r[n++]=s>>>9&7,r[n++]=s>>>12&7,r[n++]=s>>>15&7,r[n++]=s>>>18&7,r[n++]=s>>>21&7,r[n++]=s>>>24&7,r[n++]=s>>>27&7,r[n++]=(s>>>30|(l&1)<<2)&7,r[n++]=l>>>1&7,r[n++]=l>>>4&7,r[n++]=l>>>7&7,r[n++]=l>>>10&7,r[n++]=l>>>13&7,r[n++]=l>>>16&7,r[n++]=l>>>19&7,r[n++]=l>>>22&7,r[n++]=l>>>25&7,r[n++]=l>>>28&7,r[n++]=(l>>>31|(u&3)<<1)&7,r[n++]=u>>>2&7,r[n++]=u>>>5&7,r[n++]=u>>>8&7,r[n++]=u>>>11&7,r[n++]=u>>>14&7,r[n++]=u>>>17&7,r[n++]=u>>>20&7,r[n++]=u>>>23&7,r[n++]=u>>>26&7,r[n++]=u>>>29&7}}function b4r(e,t,r,i){let n=i,a=t;for(let o=0;o<8;o++){let s=e[a++]>>>0,l=e[a++]>>>0,u=e[a++]>>>0,f=e[a++]>>>0;r[n++]=s>>>0&15,r[n++]=s>>>4&15,r[n++]=s>>>8&15,r[n++]=s>>>12&15,r[n++]=s>>>16&15,r[n++]=s>>>20&15,r[n++]=s>>>24&15,r[n++]=s>>>28&15,r[n++]=l>>>0&15,r[n++]=l>>>4&15,r[n++]=l>>>8&15,r[n++]=l>>>12&15,r[n++]=l>>>16&15,r[n++]=l>>>20&15,r[n++]=l>>>24&15,r[n++]=l>>>28&15,r[n++]=u>>>0&15,r[n++]=u>>>4&15,r[n++]=u>>>8&15,r[n++]=u>>>12&15,r[n++]=u>>>16&15,r[n++]=u>>>20&15,r[n++]=u>>>24&15,r[n++]=u>>>28&15,r[n++]=f>>>0&15,r[n++]=f>>>4&15,r[n++]=f>>>8&15,r[n++]=f>>>12&15,r[n++]=f>>>16&15,r[n++]=f>>>20&15,r[n++]=f>>>24&15,r[n++]=f>>>28&15}}function _4r(e,t,r,i){let n=i,a=t;for(let o=0;o<8;o++){let s=e[a++]>>>0,l=e[a++]>>>0,u=e[a++]>>>0,f=e[a++]>>>0,c=e[a++]>>>0;r[n++]=s>>>0&31,r[n++]=s>>>5&31,r[n++]=s>>>10&31,r[n++]=s>>>15&31,r[n++]=s>>>20&31,r[n++]=s>>>25&31,r[n++]=(s>>>30|(l&7)<<2)&31,r[n++]=l>>>3&31,r[n++]=l>>>8&31,r[n++]=l>>>13&31,r[n++]=l>>>18&31,r[n++]=l>>>23&31,r[n++]=(l>>>28|(u&1)<<4)&31,r[n++]=u>>>1&31,r[n++]=u>>>6&31,r[n++]=u>>>11&31,r[n++]=u>>>16&31,r[n++]=u>>>21&31,r[n++]=u>>>26&31,r[n++]=(u>>>31|(f&15)<<1)&31,r[n++]=f>>>4&31,r[n++]=f>>>9&31,r[n++]=f>>>14&31,r[n++]=f>>>19&31,r[n++]=f>>>24&31,r[n++]=(f>>>29|(c&3)<<3)&31,r[n++]=c>>>2&31,r[n++]=c>>>7&31,r[n++]=c>>>12&31,r[n++]=c>>>17&31,r[n++]=c>>>22&31,r[n++]=c>>>27&31}}function w4r(e,t,r,i){let n=i,a=t;for(let o=0;o<8;o++){let s=e[a++]>>>0,l=e[a++]>>>0,u=e[a++]>>>0,f=e[a++]>>>0,c=e[a++]>>>0,h=e[a++]>>>0;r[n++]=s>>>0&63,r[n++]=s>>>6&63,r[n++]=s>>>12&63,r[n++]=s>>>18&63,r[n++]=s>>>24&63,r[n++]=(s>>>30|(l&15)<<2)&63,r[n++]=l>>>4&63,r[n++]=l>>>10&63,r[n++]=l>>>16&63,r[n++]=l>>>22&63,r[n++]=(l>>>28|(u&3)<<4)&63,r[n++]=u>>>2&63,r[n++]=u>>>8&63,r[n++]=u>>>14&63,r[n++]=u>>>20&63,r[n++]=u>>>26&63,r[n++]=f>>>0&63,r[n++]=f>>>6&63,r[n++]=f>>>12&63,r[n++]=f>>>18&63,r[n++]=f>>>24&63,r[n++]=(f>>>30|(c&15)<<2)&63,r[n++]=c>>>4&63,r[n++]=c>>>10&63,r[n++]=c>>>16&63,r[n++]=c>>>22&63,r[n++]=(c>>>28|(h&3)<<4)&63,r[n++]=h>>>2&63,r[n++]=h>>>8&63,r[n++]=h>>>14&63,r[n++]=h>>>20&63,r[n++]=h>>>26&63}}function A4r(e,t,r,i){let n=i,a=t;for(let o=0;o<8;o++){let s=e[a++]>>>0,l=e[a++]>>>0,u=e[a++]>>>0,f=e[a++]>>>0,c=e[a++]>>>0,h=e[a++]>>>0,d=e[a++]>>>0;r[n++]=s>>>0&127,r[n++]=s>>>7&127,r[n++]=s>>>14&127,r[n++]=s>>>21&127,r[n++]=(s>>>28|(l&7)<<4)&127,r[n++]=l>>>3&127,r[n++]=l>>>10&127,r[n++]=l>>>17&127,r[n++]=l>>>24&127,r[n++]=(l>>>31|(u&63)<<1)&127,r[n++]=u>>>6&127,r[n++]=u>>>13&127,r[n++]=u>>>20&127,r[n++]=(u>>>27|(f&3)<<5)&127,r[n++]=f>>>2&127,r[n++]=f>>>9&127,r[n++]=f>>>16&127,r[n++]=f>>>23&127,r[n++]=(f>>>30|(c&31)<<2)&127,r[n++]=c>>>5&127,r[n++]=c>>>12&127,r[n++]=c>>>19&127,r[n++]=(c>>>26|(h&1)<<6)&127,r[n++]=h>>>1&127,r[n++]=h>>>8&127,r[n++]=h>>>15&127,r[n++]=h>>>22&127,r[n++]=(h>>>29|(d&15)<<3)&127,r[n++]=d>>>4&127,r[n++]=d>>>11&127,r[n++]=d>>>18&127,r[n++]=d>>>25&127}}function T4r(e,t,r,i){let n=i,a=t;for(let o=0;o<8;o++){let s=e[a++]>>>0,l=e[a++]>>>0,u=e[a++]>>>0,f=e[a++]>>>0,c=e[a++]>>>0,h=e[a++]>>>0,d=e[a++]>>>0,p=e[a++]>>>0;r[n++]=s>>>0&255,r[n++]=s>>>8&255,r[n++]=s>>>16&255,r[n++]=s>>>24&255,r[n++]=l>>>0&255,r[n++]=l>>>8&255,r[n++]=l>>>16&255,r[n++]=l>>>24&255,r[n++]=u>>>0&255,r[n++]=u>>>8&255,r[n++]=u>>>16&255,r[n++]=u>>>24&255,r[n++]=f>>>0&255,r[n++]=f>>>8&255,r[n++]=f>>>16&255,r[n++]=f>>>24&255,r[n++]=c>>>0&255,r[n++]=c>>>8&255,r[n++]=c>>>16&255,r[n++]=c>>>24&255,r[n++]=h>>>0&255,r[n++]=h>>>8&255,r[n++]=h>>>16&255,r[n++]=h>>>24&255,r[n++]=d>>>0&255,r[n++]=d>>>8&255,r[n++]=d>>>16&255,r[n++]=d>>>24&255,r[n++]=p>>>0&255,r[n++]=p>>>8&255,r[n++]=p>>>16&255,r[n++]=p>>>24&255}}function M4r(e,t,r,i){let n=i,a=t;for(let o=0;o<128;o++){let s=e[a++]>>>0;r[n++]=s&65535,r[n++]=s>>>16&65535}}function S4r(e,t,r,i,n){let a=lne[n]>>>0,o=t,s=0,l=e[o]>>>0,u=i;for(let f=0;f<8;f++){for(let c=0;c<32;c++)if(s+n<=32){let h=l>>>s&a;r[u+c]=h|0,s+=n,s===32&&(s=0,o++,c!==31&&(l=e[o]>>>0))}else{let h=32-s,d=l>>>s;o++,l=e[o]>>>0;let p=n-h,v=-1>>>32-p>>>0,y=(d|(l&v)<>>0)}}function Hat(){let e=new Uint8Array(E4r);return{dataToBePacked:Array(33),dataPointers:new Int32Array(33),byteContainer:e,byteContainerI32:new Int32Array(e.buffer,e.byteOffset,e.byteLength>>>2),exceptionSizes:new Int32Array(33)}}function k4r(e=16){if(e<0)throw RangeError(`initialEncodedWordCapacity must be >= 0, got ${e}`);let t=Math.max(16,e|0);return{encodedWords:new Uint32Array(t),decoderWorkspace:Hat()}}function C4r(e,t){if(t<=e.encodedWords.length)return e.encodedWords;let r=new Uint32Array(Math.max(16,t*2));return e.encodedWords=r,r}function D4r(e,t,r,i){i.byteContainer.length>>2;if(n.byteOffset&3)for(let s=0;s>>8&255,n[u+2|0]=l>>>16&255,n[u+3|0]=l>>>24&255}else{let s=i.byteContainerI32;(!s||s.buffer!==n.buffer||s.byteOffset!==n.byteOffset||s.length>>2)),s.set(e.subarray(t,t+a))}let o=r&3;if(o>0){let s=e[t+a|0]|0,l=a<<2;for(let u=0;u>>(u<<3)&255}return n}function F4r(e,t,r){let i=e[t++]|0,n=r.dataToBePacked;for(let a=2;a<=32;a=a+1|0){if(!(i>>>a-1&1))continue;if(t>=e.length)throw Error(`FastPFOR decode: truncated exception stream header (bitWidth=${a}, streamWordIndex=${t}, needWords=1, availableWords=${e.length-t}, encodedWords=${e.length})`);let o=e[t++]>>>0,s=i4r(o),l=o*a+31>>>5;if(t+l>e.length)throw Error(`FastPFOR decode: truncated exception stream (bitWidth=${a}, size=${o}, streamWordIndex=${t}, needWords=${l}, availableWords=${e.length-t}, encodedWords=${e.length})`);let u=n[a];(!u||u.length>>5)|0,r.exceptionSizes[a]=o}return t}function L4r(e,t,r,i,n){switch(n){case 1:y4r(e,t,r,i);break;case 2:g4r(e,t,r,i);break;case 3:x4r(e,t,r,i);break;case 4:b4r(e,t,r,i);break;case 5:_4r(e,t,r,i);break;case 6:w4r(e,t,r,i);break;case 7:A4r(e,t,r,i);break;case 8:T4r(e,t,r,i);break;case 16:M4r(e,t,r,i);break;default:S4r(e,t,r,i,n)}return t+(n<<3)|0}function P4r(e,t,r,i){if(r+2>t)throw Error(`FastPFOR decode: byteContainer underflow at block=${i} (need 2 bytes for [bitWidth, exceptionCount], bytePos=${r}, byteSize=${t})`);let n=e[r++],a=e[r++];if(n>32)throw Error(`FastPFOR decode: invalid bitWidth=${n} at block=${i} (expected 0..32). This likely indicates corrupted or truncated input.`);return{bitWidth:n,exceptionCount:a,bytePosIn:r}}function z4r(e,t,r,i,n,a){if(r+1>t)throw Error(`FastPFOR decode: exception header underflow at block=${a} (need 1 byte for maxBits, bytePos=${r}, byteSize=${t})`);let o=e[r++];if(o32)throw Error(`FastPFOR decode: invalid maxBits=${o} at block=${a} (bitWidth=${i}, expected ${i}..32)`);let s=o-i|0;if(s<1||s>32)throw Error(`FastPFOR decode: invalid exceptionBitWidth=${s} at block=${a} (bitWidth=${i}, maxBits=${o})`);if(r+n>t)throw Error(`FastPFOR decode: exception positions underflow at block=${a} (need=${n}, have=${t-r})`);return{maxBits:o,exceptionBitWidth:s,bytePosIn:r}}function I4r(e,t,r,i,n,a,o,s,l){let{maxBits:u,exceptionBitWidth:f,bytePosIn:c}=z4r(n,a,o,r,i,l);if(o=c,f===1){let y=1<v)throw Error(`FastPFOR decode: exception stream overflow for exceptionBitWidth=${f} (ptr=${p}, need ${i}, size=${v}) at block ${l}`);for(let y=0;y0&&(c=I4r(n,y,p,v,s,l,c,u,h))}if(f!==i)throw Error(`FastPFOR decode: packed region mismatch (pageStart=${t}, packedStart=${r}, consumedPackedEnd=${f}, expectedPackedEnd=${i}, packedWords=${i-r}, encoded.length=${e.length})`)}function B4r(e,t,r,i,n,a){let o=r|0,s=e[o]|0;if(s<=0||o+s>e.length-1)throw Error(`FastPFOR decode: invalid whereMeta=${s} at pageStart=${o} (expected > 0 and pageStart+whereMeta < encoded.length=${e.length})`);let l=o+1|0,u=o+s|0,f=e[u]>>>0,c=f+3>>>2,h=u+1,d=h+c;if(d>=e.length)throw Error(`FastPFOR decode: invalid byteSize=${f} (metaInts=${c}, pageStart=${o}, packedEnd=${u}, byteContainerStart=${h}) causes bitmapPos=${d} out of bounds (encoded.length=${e.length})`);let p=D4r(e,h,f,a),v=f,y=F4r(e,d,a);return a.dataPointers.fill(0),R4r(e,o,l,u,t,i|0,n/256|0,p,v,a),y}function q4r(e,t,r,i,n,a){let o=i+Sae(n,256),s=i,l=r;for(;s!==o;){let u=Math.min(une,o-s);l=B4r(e,t,l,s,u,a),s=s+u|0}return l}function O4r(e,t,r,i,n,a){if(a===0)return t;let o=0,s=t,l=t+r,u=n,f=n,c=n+a,h=0,d=0;for(;s>>o&255;if(o+=8,s+=o>>>5,o&=31,h|=(p&127)<28)throw Error(`FastPFOR VByte: unterminated value (expected MSB=1 terminator within 5 bytes; shift=${d}, partial=${h}, decoded=${f-u}/${a}, inPos=${s}, inEnd=${l})`)}if(f!==c)throw Error(`FastPFOR VByte: truncated stream (decoded=${f-u}, expected=${a}, consumedWords=${s-t}/${r}, vbyteStart=${t}, vbyteEnd=${l})`);return s}function N4r(e,t,r){let i=0,n=0,a=new Uint32Array(t),o=r!=null?r:Hat();if(e.length>0){let u=e[i]|0;if(i=i+1|0,u&255)throw Error(`FastPFOR decode: invalid alignedLength=${u} (expected multiple of 256)`);if(n+u>a.length)throw Error(`FastPFOR decode: output buffer too small (outPos=${n}, alignedLength=${u}, out.length=${a.length})`);i=q4r(e,a,i,n,u,o),n=n+u|0}let s=e.length-i|0,l=t-n|0;return O4r(e,i,s,a,n,l),a}function V4r(e,t,r,i,n){switch(n){case 2:a4r(e,t,r,i);return;case 3:o4r(e,t,r,i);return;case 4:s4r(e,t,r,i);return;case 5:l4r(e,t,r,i);return;case 6:u4r(e,t,r,i);return;case 7:f4r(e,t,r,i);return;case 8:c4r(e,t,r,i);return;case 9:h4r(e,t,r,i);return;case 10:d4r(e,t,r,i);return;case 11:p4r(e,t,r,i);return;case 12:v4r(e,t,r,i);return;case 16:m4r(e,t,r,i);return;case 32:for(let u=0;u<32;u=u+1|0)r[i+u|0]=e[t+u|0]|0;return}let a=lne[n]>>>0,o=t,s=0,l=e[o]>>>0;for(let u=0;u<32;u++)if(s+n<=32){let f=l>>>s&a;r[i+u]=f|0,s+=n,s===32&&(s=0,o++,u!==31&&(l=e[o]>>>0))}else{let f=32-s,c=l>>>s;o++,l=e[o]>>>0;let h=lne[n-f]>>>0,d=(c|(l&h)<e.length)throw RangeError(`decodeBigEndianInt32sInto: out of bounds (offset=${t}, byteLength=${r}, bytes.length=${e.length})`);let n=Math.floor(r/4),a=r%4!=0,o=a?n+1:n;if(i.length0){let s=e.byteOffset+t;if(s&3)for(let l=0;l=64)throw Error("Varint too long")}return t.set(n),r}function H4r(e,t,r){let i=new Float64Array(r);for(let n=0;n>4,n<128||(n=t[r.get()],r.increment(),i|=(n&127)<<3,n<128)||(n=t[r.get()],r.increment(),i|=(n&127)<<10,n<128)||(n=t[r.get()],r.increment(),i|=(n&127)<<17,n<128)||(n=t[r.get()],r.increment(),i|=(n&127)<<24,n<128)||(n=t[r.get()],r.increment(),i|=(n&1)<<31,n<128))return i*4294967296+(e>>>0);throw Error("Expected varint not more than 10 bytes")}function $4r(e,t,r,i){return Y4r(e,t,r,i,k4r(r>>>2))}function Y4r(e,t,r,i,n){let a=i.get();if(r&3)throw Error(`FastPFOR: invalid encodedByteLength=${r} at offset=${a} (encodedBytes.length=${e.length}; expected a multiple of 4 bytes for an int32 big-endian word stream)`);let o=r>>>2,s=C4r(n,o);U4r(e,a,r,s);let l=N4r(s.subarray(0,o),t,n.decoderWorkspace);return i.add(r),l}function mu(e){return e>>>1^-(e&1)}function P0(e){return e>>BigInt(1)^-(e&BigInt(1))}function ox(e){return e%2==1?(e+1)/-2:e/2}function X4r(e){let t=new Int32Array(e.length);for(let r=0;r=4)for(;i=4)for(;i=4)for(;r=4)for(let i=e[0];r=4)for(;i=4)for(;l>>0;for(let r=1;r>>0;return t}function jtt(e){let t=new BigUint64Array(e.length);t[0]=BigInt.asUintN(64,P0(e[0]));for(let r=1;r>>0,t[1]=mu(e[1])>>>0;for(let r=2;r>>0,t[r+1]=t[r-1]+mu(e[r+1])>>>0;return t}function f5r(e,t,r,i){let n=Wat(e,t,r,i);return new Uint32Array(n)}function c5r(e){return e[1]}function h5r(e){return mu(e[1])}function d5r(e){if(e.length===2){let t=mu(e[1]);return[t,t]}return[mu(e[2]),mu(e[3])]}function p5r(e){return e[1]}function v5r(e){return P0(e[1])}function m5r(e){if(e.length===2){let t=P0(e[1]);return[t,t]}return[P0(e[2]),P0(e[3])]}function Qf(e,t){let r=T5r(e,t);return r.logicalLevelTechnique1===Yl.MORTON?w5r(r,e,t):(Yl.RLE===r.logicalLevelTechnique1||Yl.RLE===r.logicalLevelTechnique2)&&xp.NONE!==r.physicalLevelTechnique?A5r(r,e,t):r}function w5r(e,t,r){let i=z0(t,r,2);return{physicalStreamType:e.physicalStreamType,logicalStreamType:e.logicalStreamType,logicalLevelTechnique1:e.logicalLevelTechnique1,logicalLevelTechnique2:e.logicalLevelTechnique2,physicalLevelTechnique:e.physicalLevelTechnique,numValues:e.numValues,byteLength:e.byteLength,decompressedCount:e.decompressedCount,numBits:i[0],coordinateShift:i[1]}}function A5r(e,t,r){let i=z0(t,r,2);return{physicalStreamType:e.physicalStreamType,logicalStreamType:e.logicalStreamType,logicalLevelTechnique1:e.logicalLevelTechnique1,logicalLevelTechnique2:e.logicalLevelTechnique2,physicalLevelTechnique:e.physicalLevelTechnique,numValues:e.numValues,byteLength:e.byteLength,decompressedCount:i[1],runs:i[0],numRleValues:i[1]}}function T5r(e,t){let r=e[t.get()],i=y5r[r>>4],n={};switch(i){case Qc.DATA:n={dictionaryType:x5r[r&15]};break;case Qc.OFFSET:n={offsetType:b5r[r&15]};break;case Qc.LENGTH:n={lengthType:_5r[r&15]}}t.increment();let a=e[t.get()],o=Wtt[a>>5],s=Wtt[a>>2&7],l=g5r[a&3];t.increment();let u=z0(e,t,2),f=u[0],c=u[1];return{physicalStreamType:i,logicalStreamType:n,logicalLevelTechnique1:o,logicalLevelTechnique2:s,physicalLevelTechnique:l,numValues:f,byteLength:c,decompressedCount:f}}function y3(e,t,r){if(!t)return e;let i=t.size(),n=e.constructor,a=new n(i),o=0;for(let s=0;s=o);){let s=e[i.increment()];if(s<=127){let l=s+3,u=e[i.increment()],f=Math.min(a+l,t);n.fill(u,a,f),a=f}else{let l=256-s;for(let u=0;u=12?C5r.decode(e.subarray(t,r)):D5r(e,t,r)}function D5r(e,t,r){let i="",n=t;for(;n239?4:a>223?3:a>191?2:1;if(n+s>r)break;let l,u,f;s===1?a<128&&(o=a):s===2?(l=e[n+1],(l&192)==128&&(o=(a&31)<<6|l&63,o<=127&&(o=null))):s===3?(l=e[n+1],u=e[n+2],(l&192)==128&&(u&192)==128&&(o=(a&15)<<12|(l&63)<<6|u&63,(o<=2047||o>=55296&&o<=57343)&&(o=null))):s===4&&(l=e[n+1],u=e[n+2],f=e[n+3],(l&192)==128&&(u&192)==128&&(f&192)==128&&(o=(a&15)<<18|(l&63)<<12|(u&63)<<6|f&63,(o<=65535||o>=1114112)&&(o=null))),o===null?(o=65533,s=1):o>65535&&(o-=65536,i+=String.fromCharCode(o>>>10&1023|55296),o=56320|o&1023),i+=String.fromCharCode(o),n+=s}return i}function H7(e,t,r,i,n){return I5r(rT(e,t,r),r,i,n)}function L0(e,t,r,i,n){return R5r(rT(e,t,r),r,i,n)}function sx(e,t,r){return q5r(rT(e,t,r),r)}function rT(e,t,r){let i=r.physicalLevelTechnique;switch(i){case xp.FAST_PFOR:return $4r(e,r.numValues,r.byteLength,t);case xp.VARINT:return z0(e,t,r.numValues);case xp.NONE:return E5r(e,t,r.numValues);default:throw Error(`Specified physicalLevelTechnique ${i} is not supported (yet).`)}}function RC(e,t,r){let i=r.physicalLevelTechnique;switch(i){case xp.VARINT:return Eae(e,t,r.numValues);case xp.NONE:return k5r(e,t,r.numValues);default:throw Error(`Specified physicalLevelTechnique ${i} is not supported (yet).`)}}function F5r(e,t,r){let i=rT(e,t,r);return i.length===1?mu(i[0]):h5r(i)}function Dae(e,t,r){let i=rT(e,t,r);return i.length===1?r.logicalLevelTechnique1===Yl.DELTA?mu(i[0]):i[0]:c5r(i)}function Zat(e,t,r){return d5r(rT(e,t,r))}function Kat(e,t,r){return m5r(Eae(e,t,r.numValues))}function Jat(e,t,r,i){return eot(RC(e,t,r),r,i)}function Fae(e,t,r,i){return tot(RC(e,t,r),r,i)}function L5r(e,t,r,i){let n=P5r(e,t,r,!1);return i?y3(n,i,0):n}function P5r(e,t,r,i){if(r.physicalLevelTechnique===xp.VARINT)return B5r(H4r(e,t,r.numValues),r,i);let n=RC(e,t,r),a=i?eot(n,r):tot(n,r);return Float64Array.from(a,Number)}function z5r(e,t,r){let i=RC(e,t,r);return i.length===1?P0(i[0]):v5r(i)}function Qat(e,t,r){let i=RC(e,t,r);return i.length===1?r.logicalLevelTechnique1===Yl.DELTA?P0(i[0]):i[0]:p5r(i)}function I5r(e,t,r,i){let n;switch(t.logicalLevelTechnique1){case Yl.DELTA:if(t.logicalLevelTechnique2===Yl.RLE){let a=t;if(!i)return s5r(e,a.runs,a.numRleValues);e=fne(e,a.runs,a.numRleValues),n=Utt(e)}else n=Utt(e);break;case Yl.RLE:n=Q4r(e,t.runs,t.numRleValues);break;case Yl.MORTON:kae(e),n=new Int32Array(e);break;case Yl.COMPONENTWISE_DELTA:if(r&&!i)return Wat(e,r.scale,r.min,r.max);n=i5r(e);break;case Yl.NONE:n=X4r(e);break;default:throw Error(`The specified Logical level technique is not supported: ${t.logicalLevelTechnique1}`)}return i?y3(n,i,0):n}function R5r(e,t,r,i){let n;switch(t.logicalLevelTechnique1){case Yl.DELTA:if(t.logicalLevelTechnique2===Yl.RLE){let a=t;n=Htt(fne(e,a.runs,a.numRleValues))}else n=Htt(e);break;case Yl.RLE:n=fne(e,t.runs,t.numRleValues);break;case Yl.MORTON:kae(e),n=e;break;case Yl.COMPONENTWISE_DELTA:n=r&&!i?f5r(e,r.scale,r.min,r.max):u5r(e);break;case Yl.NONE:n=e;break;default:throw Error(`The specified Logical level technique is not supported: ${t.logicalLevelTechnique1}`)}return i?y3(n,i,0):n}function eot(e,t,r){let i;switch(t.logicalLevelTechnique1){case Yl.DELTA:if(t.logicalLevelTechnique2===Yl.RLE){let n=t;if(!r)return l5r(e,n.runs,n.numRleValues);e=cne(e,n.runs,n.numRleValues),i=Gtt(e)}else i=Gtt(e);break;case Yl.RLE:i=e5r(e,t.runs,t.numRleValues);break;case Yl.NONE:i=Z4r(e);break;default:throw Error(`The specified Logical level technique is not supported: ${t.logicalLevelTechnique1}`)}return r?y3(i,r,BigInt(0)):i}function tot(e,t,r){let i;switch(t.logicalLevelTechnique1){case Yl.DELTA:if(t.logicalLevelTechnique2===Yl.RLE){let n=t;i=jtt(cne(e,n.runs,n.numRleValues))}else i=jtt(e);break;case Yl.RLE:i=cne(e,t.runs,t.numRleValues);break;case Yl.NONE:i=e;break;default:throw Error(`The specified Logical level technique is not supported: ${t.logicalLevelTechnique1}`)}return r?y3(i,r,BigInt(0)):i}function B5r(e,t,r){switch(t.logicalLevelTechnique1){case Yl.DELTA:if(t.logicalLevelTechnique2===Yl.RLE){let i=t;e=jat(e,i.runs,i.numRleValues)}return J4r(e),e;case Yl.RLE:return N5r(e,t,r);case Yl.NONE:return r&&K4r(e),e;default:throw Error(`The specified Logical level technique is not supported: ${t.logicalLevelTechnique1}`)}}function q5r(e,t){if(t.logicalLevelTechnique1===Yl.DELTA&&t.logicalLevelTechnique2===Yl.NONE)return n5r(e);if(t.logicalLevelTechnique1===Yl.RLE&&t.logicalLevelTechnique2===Yl.NONE){let r=t;return o5r(e,r.runs,r.numRleValues)}if(t.logicalLevelTechnique1===Yl.NONE&&t.logicalLevelTechnique2===Yl.NONE){r5r(e);let r=new Uint32Array(t.numValues+1);return r[0]=0,r.set(e,1),r}if(t.logicalLevelTechnique1===Yl.DELTA&&t.logicalLevelTechnique2===Yl.RLE){let r=t,i=a5r(e,r.runs,r.numRleValues);return kae(i),new Uint32Array(i)}throw Error("Only delta encoding is supported for transforming length to offset streams yet.")}function qq(e,t,r,i,n="int32"){let a=e.logicalLevelTechnique1;if(a===Yl.RLE)return e.runs===1?jf.CONST:jf.FLAT;if(a!==Yl.DELTA||e.logicalLevelTechnique2!==Yl.RLE)return e.numValues===1?jf.CONST:jf.FLAT;let o=t instanceof S1?t.size():t,s=e;if(s.numRleValues!==o)return jf.FLAT;if(s.runs===1)return jf.SEQUENCE;if(s.runs!==2)return e.numValues===1?jf.CONST:jf.FLAT;let l=i.get();if(e.physicalLevelTechnique===xp.VARINT)return O5r(r,i,n)?jf.SEQUENCE:e.numValues===1?jf.CONST:jf.FLAT;let u=i.get(),f=new Int32Array(r.buffer,r.byteOffset+u,4);return i.set(l),f[2]===2&&f[3]===2?jf.SEQUENCE:e.numValues===1?jf.CONST:jf.FLAT}function O5r(e,t,r){let i=new Uat(t.get());if(r==="int64"){let a=Eae(e,i,4);return a[2]===BigInt(2)&&a[3]===BigInt(2)}let n=z0(e,i,4);return n[2]===2&&n[3]===2}function N5r(e,t,r){return r?t5r(e,t.runs,t.numRleValues):jat(e,t.runs,t.numRleValues)}function Lae(e,t,r){return{x:$tt(e,t)-r,y:$tt(e>>1,t)-r}}function $tt(e,t){let r=0;for(let i=0;i>i;return r}function V5r(e){let t=Array(e.numGeometries),r=1,i=1,n=1,a=0,o=0,s=0,l=e.mortonSettings,u=e.topologyVector,f=u.geometryOffsets,c=u.partOffsets,h=u.ringOffsets,d=e.vertexOffsets,p=!d||d.length===0,v=e.containsPolygonGeometry(),y=e.vertexBuffer;for(let m=0;m[M]),r+=_,i+=_}break;case l0.LINESTRING:{let _;v?(_=h[i]-h[i-1],i++):_=c[r]-c[r-1],r++;let b;p?(b=_5(y,o,_,!1),o+=_*2):(b=Z_(e.vertexBufferType,y,d,s,_,!1,l),s+=_),t[a++]=[b],f&&n++}break;case l0.POLYGON:{let _=c[r]-c[r-1];r++;let b=Array(_-1),M,x=h[i]-h[i-1];if(i++,p){M=_5(y,o,x,!0),o+=x*2;for(let A=0;Ar?t[a++]:1);return i}function Ktt(e,t,r,i){let n=new Uint32Array(t[t.length-1]+1),a=0;n[0]=a;let o=1,s=0;for(let l=0;l0;)n[a++]=e[u++]}}return n}function cot(e,t,r,i,n){var d,p;let a,o,s,l,u,f=n,c,h;for(let v=0;v1&&!d.nullable||p===1&&d.nullable)throw Error(`The number of streams for the child field ${d.name} does not match its nullability. nullibilty: ${d.nullable}, numStreams: ${p}`);let y;if(d.nullable){let w=Qf(e,t);y=new S1(tT(e,w.numValues,w.byteLength,t),w.numValues)}let m=L0(e,t,Qf(e,t),void 0,y);if(s){if(!o)throw Error(`Incomplete shared FSST dictionary for column "${v}"`);f[h++]=new fot(v,m,n,a,o,s,y,c)}else f[h++]=new I5(v,m,n,a,y)}return f}function oTr(e,t,r,i){let n=sTr(r);if(i===0)return n.map(f=>new Qtt(f,[]));let a=lTr(e,t,i),o=(a.presentStream?a.presentCount:a.lengthStream.length)/n.length,s=[],l=0,u=0;for(let f=0;f{var i;return e.name+((i=r.name)!=null?i:"")})}function lTr(e,t,r){let i=e[t.get()];t.add(1);let n=L0(e,t,Qf(e,t)),a=r-1,o=[];i&Rm.STRING&&(a-=uTr(e,t,o)),a-=fTr(e,t,i,o),a-=cTr(e,t,i,o);let s,l=0;if(i&Rm.PRESENCE){let f=hTr(e,t);s=f.value,l=f.count,a--}let u=new Uint32Array;if(a>0&&(u=L0(e,t,Qf(e,t)),a--),a!==0)throw Error(`Unexpected number of remaining streams while decoding map column: ${a}`);return{lengthStream:n,dictionary:o,presentStream:s,presentCount:l,flattenedValues:u}}function uTr(e,t,r){let i=e[t.get()];t.add(1);let n=cot("",e,t,i);if(n)for(let a=0;aa.length)throw Error("Merged map counts underflow while decoding child streams");let d=Array(r),p=i,v=n;for(let w=0;wo.length)throw Error("Map value stream underflow while decoding feature payload");let b=pTr(o,v,_,l);d[w]=b.value,v=b.nextIndex}let y=0;for(let w=i;w=r)throw Error("Unexpected end of map value stream");let n=e[t];if(n===ux.FALSE)return{value:!1,nextIndex:t+1};if(n===ux.TRUE)return{value:!0,nextIndex:t+1};if(n===ux.START_MAP){let a=ert(e,t,r);return{value:hot(e,t+2,a,i).value,nextIndex:a}}if(n===ux.START_LIST){let a=ert(e,t,r),o=[],s=t+2;for(;s=r)throw Error("Missing length for nested map/list payload");let i=e[t+1];if(i<2)throw Error(`Invalid nested payload length: ${i}`);let n=t+i;if(n>r)throw Error("Nested payload exceeds containing payload bounds");return n}function dot(e,t){let r=e-ux.COUNT;if(r<0||r>=t.length)throw Error(`Scalar dictionary index out of range: ${e}`);return t[r]}function C5(e,t){for(let r of t)e.push(r)}function vTr(e,t,r,i,n,a){var o;return r.type==="scalarType"?a&&!a.has(r.name)?($at(i,e,t),null):mTr(i,e,t,n,r.scalarType,r):((o=r.complexType)==null?void 0:o.physicalType)===cx.MAP?oTr(e,t,r,i):i===0?null:aTr(e,t,r,a)}function mTr(e,t,r,i,n,a){var l;let o;if(e===0)return null;if(a.nullable){let u=Qf(t,r),f=u.numValues,c=r.get(),h=tT(t,f,u.byteLength,r);r.set(c+u.byteLength),o=new S1(h,u.numValues)}let s=o!=null?o:i;switch(n.physicalType){case qu.UINT_32:case qu.INT_32:return _Tr(t,r,a,n,s);case qu.STRING:{let u=a.nullable?e-1:e;return(l=cot(a.name,t,r,u,o))!=null?l:null}case qu.BOOLEAN:return yTr(t,r,a,i,s);case qu.UINT_64:case qu.INT_64:return bTr(t,r,a,s,n);case qu.FLOAT:return gTr(t,r,a,s);case qu.DOUBLE:return xTr(t,r,a,s);default:throw Error(`The specified data type for the field is currently not supported: ${n}`)}}function yTr(e,t,r,i,n){let a=Qf(e,t),o=a.numValues,s=t.get(),l=BC(n)?n:void 0,u=tT(e,o,a.byteLength,t,l);t.set(s+a.byteLength);let f=new S1(u,o);return new J5r(r.name,f,n)}function gTr(e,t,r,i){let n=Qf(e,t),a=BC(i)?i:void 0,o=Yat(e,t,n.numValues,a);return new Q5r(r.name,o,i)}function xTr(e,t,r,i){let n=Qf(e,t),a=BC(i)?i:void 0,o=Xat(e,t,n.numValues,a);return new _ae(r.name,o,i)}function bTr(e,t,r,i,n){let a=Qf(e,t),o=qq(a,i,e,t,"int64"),s=n.physicalType===qu.INT_64;if(o===jf.FLAT){let u=BC(i)?i:void 0,f=s?Jat(e,t,a,u):Fae(e,t,a,u);return new rot(r.name,f,i)}if(o===jf.SEQUENCE){let u=Kat(e,t,a);return new iot(r.name,u[0],u[1],a.numRleValues,s)}let l=s?z5r(e,t,a):Qat(e,t,a);return new uot(r.name,l,i,s)}function _Tr(e,t,r,i,n){let a=Qf(e,t),o=qq(a,n,e,t),s=i.physicalType===qu.INT_32;if(o===jf.FLAT){let u=BC(n)?n:void 0,f=s?H7(e,t,a,void 0,u):L0(e,t,a,void 0,u);return new bae(r.name,f,n)}if(o===jf.SEQUENCE){let u=Zat(e,t,a);return new wae(r.name,u[0],u[1],a.numRleValues,s)}let l=s?F5r(e,t,a):Dae(e,t,a);return new Aae(r.name,l,n,s)}function BC(e){return e instanceof S1}function pot(e){switch(e){case Oh.ID:case Oh.ID|Oh.ID_NULLABLE:case Oh.ID|Oh.ID_LONG:case Oh.ID|Oh.ID_LONG|Oh.ID_NULLABLE:return{nullable:(e&Oh.ID_NULLABLE)!==0,columnScope:Bk.FEATURE,type:"scalarType",scalarType:{longID:(e&Oh.ID_LONG)!==0,type:"logicalType",logicalType:Vat.ID}};case Oh.GEOMETRY:return{nullable:!1,columnScope:Bk.FEATURE,type:"complexType",complexType:{type:"physicalType",physicalType:cx.GEOMETRY,children:[]}};case Oh.STRUCT:return{nullable:!1,columnScope:Bk.FEATURE,type:"complexType",complexType:{type:"physicalType",physicalType:cx.STRUCT,children:[]}};case Oh.MAP:return{nullable:!0,columnScope:Bk.FEATURE,type:"complexType",complexType:{type:"physicalType",physicalType:cx.MAP,children:[]}};default:return STr(e)}}function wTr(e){return e>=Oh.SCALAR_BASE}function vot(e){return e===Oh.STRUCT||e===Oh.MAP}function ATr(e){if(e.type==="scalarType"){let t=e.scalarType;if(t.type==="physicalType")switch(t.physicalType){case qu.BOOLEAN:case qu.INT_8:case qu.UINT_8:case qu.INT_32:case qu.UINT_32:case qu.INT_64:case qu.UINT_64:case qu.FLOAT:case qu.DOUBLE:return!1;case qu.STRING:return!0;default:return!1}if(t.type==="logicalType")return!1}else if(e.type==="complexType"){let t=e.complexType;if(t.type==="physicalType")switch(t.physicalType){case cx.GEOMETRY:case cx.STRUCT:case cx.MAP:return!0;default:return!1}}return console.warn("Unexpected column type in hasStreamCount",e),!1}function TTr(e){var t;return e.type==="scalarType"&&((t=e.scalarType)==null?void 0:t.type)==="logicalType"&&e.scalarType.logicalType===Vat.ID}function MTr(e){var t;return e.type==="complexType"&&((t=e.complexType)==null?void 0:t.type)==="physicalType"&&e.complexType.physicalType===cx.GEOMETRY}function STr(e){let t;switch(e){case 10:case 11:t=qu.BOOLEAN;break;case 12:case 13:t=qu.INT_8;break;case 14:case 15:t=qu.UINT_8;break;case 16:case 17:t=qu.INT_32;break;case 18:case 19:t=qu.UINT_32;break;case 20:case 21:t=qu.INT_64;break;case 22:case 23:t=qu.UINT_64;break;case 24:case 25:t=qu.FLOAT;break;case 26:case 27:t=qu.DOUBLE;break;case 28:case 29:t=qu.STRING;break;default:return null}return{nullable:!!(e&1),columnScope:Bk.FEATURE,type:"scalarType",scalarType:{longID:!1,type:"physicalType",physicalType:t}}}function Iae(e,t){let r=z0(e,t,1)[0];if(r===0)return"";let i=t.get(),n=i+r,a=e.subarray(i,n);return t.add(r),ETr.decode(a)}function kTr(e){let t=e.name,r=e.nullable;return e.type==="scalarType"?{type:"scalarField",scalarField:e.scalarType,name:t,nullable:r}:{type:"complexField",complexField:e.complexType,name:t,nullable:r}}function mot(e,t){let r=z0(e,t,1)[0]>>>0,i=r>=Oh.SCALAR_BASE?pot(r):null;if(!i)throw Error(`Unsupported field type code ${r}. Supported: 10-29(scalars), 30(STRUCT), 31(MAP)`);let n=Ql(Zs({},i),{name:Iae(e,t)});if(n.type==="complexType"&&vot(r)){let a=n.complexType,o=z0(e,t,1)[0]>>>0;a.children=Array(o);for(let s=0;s>>0,i=pot(r);if(!i)throw Error(`Unsupported column type code ${r}. Supported: ${trt}`);let n;if(wTr(r))n=Iae(e,t);else if(r>>0,s=a.complexType;s.children=Array(o);for(let l=0;l>>0,a=z0(e,t,1)[0]>>>0;i.columns=Array(a);for(let o=0;o>>0,o=i.get()+a;if(o>e.length)throw Error(`Block overruns tile: ${o} > ${e.length}`);let s=z0(e,i,1)[0]>>>0;if(s!==1&&s!==2){i.set(o);continue}let[l,u]=DTr(e,i),f=l.featureTables[0],c=null,h=null,d=[],p=0;for(let y of f.columns){let m=y.name;if(TTr(y)){let w=null;if(y.nullable){let b=Qf(e,i),M=i.get(),x=tT(e,b.numValues,b.byteLength,i);i.set(M+b.byteLength),w=new S1(x,b.numValues)}let _=Qf(e,i);p=w?w.size():_.decompressedCount,c=LTr(e,y,i,m,_,w!=null?w:p,r)}else if(MTr(y)){let w=z0(e,i,1)[0];if(p===0){let _=i.get();p=Qf(e,i).decompressedCount,i.set(_)}t&&(t.scale=t.extent/u),h=X5r(e,w,i,p,t)}else{let w=ATr(y)?z0(e,i,1)[0]:1;if(w===0)continue;let _=vTr(e,i,y,w,p,void 0);if(_)if(Array.isArray(_))for(let b of _)d.push(b);else d.push(_)}}let v=new r4r(f.name,h,c,d,u);n.push(v),i.set(o)}return n}function LTr(e,t,r,i,n,a,o=!1){var f;let s=(f=t.scalarType)!=null&&f.longID?qu.UINT_64:qu.UINT_32,l=typeof a=="number"?void 0:a,u=qq(n,a,e,r,s===qu.UINT_64?"int64":"int32");if(s===qu.UINT_32)switch(u){case jf.FLAT:return new bae(i,L0(e,r,n,void 0,l),a);case jf.SEQUENCE:{let c=Zat(e,r,n);return new wae(i,c[0],c[1],n.numRleValues,!1)}case jf.CONST:return new Aae(i,Dae(e,r,n),a,!1)}switch(u){case jf.FLAT:return o?new _ae(i,L5r(e,r,n,l),a):new rot(i,Fae(e,r,n,l),a);case jf.SEQUENCE:{let c=Kat(e,r,n);return new iot(i,c[0],c[1],n.numRleValues,!1)}case jf.CONST:return new uot(i,Qat(e,r,n),a,!1)}throw Error("Vector type not supported for id column.")}function BTr(e){return typeof e=="object"&&!!e&&"evaluate"in e}function rrt(e,t,r,i,n){return iq(e,(a,o)=>{let s=t instanceof _q?t.get(o):null;return BTr(s)?s.evaluate(r,i,void 0,n):s})}function qTr(e,t){return t-e}var S2r,irt,E2r,k2r,C2r,nrt,hne,D2r,F2r,wk,a7,kh,$7,E1,Nm,fC,yrt,mne,vet,xrt,Aa,rq,W2r,yet,Bre,krt,Crt,k1,Lrt,Prt,get,Y5,Ud,E7,R5,X2r,vC,mC,Ene,Ort,Gd,rl,ih,Nrt,cn,Vrt,wo,yC,ss,$l,cu,T1,oq,e3,Zl,J2r,sq,gC,lq,Wk,uq,xC,fq,Q2r,Urt,Grt,Hrt,rie,jrt,exr,txr,axr,sxr,s0,Ol,uxr,iie,Xy,Vm,Um,wv,fc,fxr,qm,Om,tg,Dne,O5,cxr,Jrt,Fne,Av,ec,eit,s7,Wy,wet,E5,ait,sit,mxr,yxr,gxr,xxr,bxr,_xr,dit,Pxr,zxr,Ixr,Rxr,Bxr,qxr,mit,Oxr,Nxr,Vxr,Bm,zne,Tit,ket,Ine,qne,fbr,One,D5,Pm,cbr,Cit,h3,Vne,Une,Kk,L7,Bit,Ebr,Bet,qet,jbr,Oet,$br,Ybr,gd,$ne,pie,$y,z7,Xu,Qk,vie,AC,Net,Vet,Jbr,_v,_q,ms,al,eC,unt,wq,Nh,Get,Yre,C1,Het,Qbr,e_r,Aq,t_r,r_r,TC,xc,tC,I7,mie,yie,gie,rC,xie,bie,_ie,wie,Aie,Tie,Mie,Sie,Eie,R7,kie,Cie,B7,Die,Fie,Lie,Pie,zie,fnt,Zne,cnt,hnt,dnt,pnt,vnt,mnt,ynt,gnt,xnt,bnt,rg,_nt,wnt,n_r,a_r,o_r,s_r,l_r,b5,Wet,u_r,f_r,c_r,$et,Ant,h_r,Tnt,D1,Iie,Mnt,Rie,d_r,tc,p_r,v_r,m_r,y_r,q7,Snt,ig,il,gs,Kl,td,J5,ng,Kne,Jne,g_r,Ev,Ik,K_,jy,w1,ax,knt,Cnt,Dnt,o3,Oie,Ket,Jet,Qne,ett,z_r,ttt,I_r,R_r,znt,B_r,Int,rtt,q_r,O_r,Eq,qf,MC,Ont,N_r,itt,V_r,U_r,Nnt,G_r,ntt,H_r,j_r,dh,Yy,W_r,Unt,$_r,Vie,Y_r,iC,Uie,Hie,Kc,N7,jie,Wie,bv,Tk,X_,Mk,Sk,zm,i3,kq,L5,P5,p3r,Znt,ltt,_3r,utt,w3r,A3r,Knt,T3r,Xie,M3r,S3r,Tv,Jnt,SC,k3r,D3r,rd,Js,eat,Uu,bx,Zre,nat,ctt,O3r,htt,N3r,V3r,aat,U3r,W3r,$3r,Jie,Y3r,Qie,X3r,Z3r,oat,ptt,sat,vtt,K3r,mtt,J3r,ytt,Q3r,p7,lat,ewr,twr,rwr,iwr,xtt,uat,U7,fwr,cwr,hwr,_tt,dwr,cat,hat,Ck,Dk,k5,Pwr,zwr,cae,hae,Bwr,qwr,Owr,ine,$ii,Ctt,gat,Pq,tAr,_at,Dtt,Ptt,z5,x7,kAr,S5,Iq,vae,OAr,ane,one,LC,qtt,UAr,Ott,GAr,Jre,Iat,mae,HAr,Ntt,WAr,$Ar,Rat,YAr,qat,XAr,ZAr,KAr,Oat,PC,zC,d0,Qre,IC,t4r,xae,m3,Bq,bae,_ae,Nat,wae,Aae,r4r,Bk,qu,cx,Vat,Uat,Yl,xp,Tae,lne,Mae,une,E4r,Qc,J0,Im,Sh,y5r,Wtt,g5r,x5r,b5r,_5r,jf,S1,C5r,rot,iot,l0,Ytt,px,not,aot,sot,lot,$5r,Y5r,J5r,Q5r,uot,Pae,Jtt,I5,fot,Qtt,Rm,ux,Oh,ETr,trt,tie,PTr,zTr,ITr,RTr,yot,got=ps(()=>{S2r=Object.create,irt=Object.defineProperty,E2r=Object.getOwnPropertyDescriptor,k2r=Object.getOwnPropertyNames,C2r=Object.getPrototypeOf,nrt=Object.prototype.hasOwnProperty,hne=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),D2r=(e,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(var n=k2r(t),a=0,o=n.length,s;at[l]).bind(null,s),enumerable:!(i=E2r(t,s))||i.enumerable});return e},F2r=(e,t,r)=>(r=e==null?{}:S2r(C2r(e)),D2r(t||!e||!e.__esModule||!nrt.call(e,"default")?irt(r,"default",{value:e,enumerable:!0}):r,e));Zr.prototype={clone(){return new Zr(this.x,this.y)},add(e){return this.clone()._add(e)},sub(e){return this.clone()._sub(e)},multByPoint(e){return this.clone()._multByPoint(e)},divByPoint(e){return this.clone()._divByPoint(e)},mult(e){return this.clone()._mult(e)},div(e){return this.clone()._div(e)},rotate(e){return this.clone()._rotate(e)},rotateAround(e,t){return this.clone()._rotateAround(e,t)},matMult(e){return this.clone()._matMult(e)},unit(){return this.clone()._unit()},perp(){return this.clone()._perp()},round(){return this.clone()._round()},mag(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals(e){return this.x===e.x&&this.y===e.y},dist(e){return Math.sqrt(this.distSqr(e))},distSqr(e){let t=e.x-this.x,r=e.y-this.y;return t*t+r*r},angle(){return Math.atan2(this.y,this.x)},angleTo(e){return Math.atan2(this.y-e.y,this.x-e.x)},angleWith(e){return this.angleWithSep(e.x,e.y)},angleWithSep(e,t){return Math.atan2(this.x*t-this.y*e,this.x*e+this.y*t)},_matMult(e){let t=e[0]*this.x+e[1]*this.y,r=e[2]*this.x+e[3]*this.y;return this.x=t,this.y=r,this},_add(e){return this.x+=e.x,this.y+=e.y,this},_sub(e){return this.x-=e.x,this.y-=e.y,this},_mult(e){return this.x*=e,this.y*=e,this},_div(e){return this.x/=e,this.y/=e,this},_multByPoint(e){return this.x*=e.x,this.y*=e.y,this},_divByPoint(e){return this.x/=e.x,this.y/=e.y,this},_unit(){return this._div(this.mag()),this},_perp(){let e=this.y;return this.y=this.x,this.x=-e,this},_rotate(e){let t=Math.cos(e),r=Math.sin(e),i=t*this.x-r*this.y,n=r*this.x+t*this.y;return this.x=i,this.y=n,this},_rotateAround(e,t){let r=Math.cos(e),i=Math.sin(e),n=t.x+r*(this.x-t.x)-i*(this.y-t.y),a=t.y+i*(this.x-t.x)+r*(this.y-t.y);return this.x=n,this.y=a,this},_round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},constructor:Zr},Zr.convert=function(e){if(e instanceof Zr)return e;if(Array.isArray(e))return new Zr(+e[0],+e[1]);if(e.x!==void 0&&e.y!==void 0)return new Zr(+e.x,+e.y);throw Error("Expected [x, y] or {x, y} point format")};kh=typeof Float32Array<"u"?Float32Array:Array;$7=I2r;E1=R2r;Nm=X7,fC=Sv;(function(){var e=frt();return function(t,r,i,n,a,o){var s,l;for(r||(r=3),i||(i=0),l=n?Math.min(n*r+i,t.length):t.length,s=i;s.999999?(i[0]=0,i[1]=0,i[2]=0,i[3]=1,i):(yd(e,n,a),i[0]=e[0],i[1]=e[1],i[2]=e[2],i[3]=1+o,vet(i,i))}})(),(function(){var e=pet(),t=pet();return function(r,i,n,a,o,s){return qk(e,i,o,s),qk(t,n,a,s),qk(r,e,t,2*s*(1-s)),r}})(),(function(){var e=pne();return function(t,r,i,n){return e[0]=i[0],e[3]=i[1],e[6]=i[2],e[1]=n[0],e[4]=n[1],e[7]=n[2],e[2]=-r[0],e[5]=-r[1],e[8]=-r[2],vet(t,U2r(t,e))}})();xrt=G2r;(function(){var e=Q7();return function(t,r,i,n,a,o){var s,l;for(r||(r=2),i||(i=0),l=n?Math.min(n*r+i,t.length):t.length,s=i;sLs(null,null,function*(){let r=new Blob([new Uint8Array(e)],{type:"image/png"});try{return createImageBitmap(r,t)}catch(i){throw Error(`Could not load image because of ${u0(i).message}. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported.`)}}),Crt=e=>new Promise((t,r)=>{let i=new Image;i.onload=()=>{t(i),URL.revokeObjectURL(i.src),i.onload=null,window.requestAnimationFrame(()=>i.src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=")},i.onerror=()=>r(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."));let n=new Blob([new Uint8Array(e)],{type:"image/png"});i.src=URL.createObjectURL(n)});k1=85.051129,Lrt={touchstart:!0,touchmove:!0,touchmoveWindow:!0,touchend:!0,touchcancel:!0},Prt={dblclick:!0,click:!0,mouseover:!0,mouseout:!0,mousedown:!0,mousemove:!0,mousemoveWindow:!0,mouseup:!0,mouseupWindow:!0,contextmenu:!0,wheel:!0};get="AbortError",Y5=class extends Error{constructor(e=get){super(e instanceof Error?e.message:e),this.name=get,e instanceof Error&&e.stack&&(this.stack=e.stack)}};Ud={MAX_PARALLEL_IMAGE_REQUESTS:16,MAX_PARALLEL_IMAGE_REQUESTS_PER_FRAME:8,MAX_TILE_CACHE_ZOOM_LEVELS:5,REGISTERED_PROTOCOLS:{},WORKER_URL:""};E7="global-dispatcher",R5=class extends Error{constructor(e,t,r,i){super(`AJAXError: ${t} (${e}): ${r}`),this.status=e,this.statusText=t,this.url=r,this.body=i}};X2r=e=>{var t;return e.startsWith("file:")||((t=aq())==null?void 0:t.startsWith("file:"))&&!/^\w+:/.test(e)};vC=function(e,t){return Ls(this,null,function*(){var r,i;if(e.url.includes("://")&&!/^https?:|^file:/.test(e.url)){let n=Sne(e.url);if(n){let a=yield n(e,t);return!a.data&&e.type==="arrayBuffer"?Hs(a,{data:new ArrayBuffer(0)}):a}if(n3(self)&&((r=self.worker)!=null&&r.actor))return self.worker.actor.sendAsync({type:"GR",data:e,targetMapId:E7},t)}if(!X2r(e.url)){if(fetch&&Request&&AbortController&&Object.hasOwn(Request.prototype,"signal"))return Z2r(e,t);if(n3(self)&&((i=self.worker)!=null&&i.actor))return self.worker.actor.sendAsync({type:"GR",data:e,mustQueue:!0,targetMapId:E7},t)}return K2r(e,t)})},mC=(e,t)=>vC(Hs(e,{type:"json"}),t),Ene=(e,t)=>vC(Hs(e,{type:"arrayBuffer"}),t);Ort=e=>{let t=window.document.createElement("video");return t.muted=!0,new Promise(r=>{t.onloadstart=()=>{r(t)};for(let i of e){let n=window.document.createElement("source");kne(i)||(t.crossOrigin="Anonymous"),n.src=i,t.appendChild(n)}})};Gd=class{constructor(e,t={}){Hs(this,t),this.type=e}},rl=class extends Gd{constructor(e,t={}){super("error",Hs({error:e},t))}},ih=class{on(e,t){return this._listeners||(this._listeners={}),xet(e,t,this._listeners),{unsubscribe:()=>{this.off(e,t)}}}off(e,t){return qre(e,t,this._listeners),qre(e,t,this._oneTimeListeners),this}once(e,t){return t?(this._oneTimeListeners||(this._oneTimeListeners={}),xet(e,t,this._oneTimeListeners),this):new Promise(r=>this.once(e,r))}fire(e,t){var n,a,o,s,l,u;let r=typeof e=="string"?new Gd(e,t||{}):e,i=r.type;if(this.listens(i)){r.target=this;let f=(o=(a=(n=this._listeners)==null?void 0:n[i])==null?void 0:a.slice())!=null?o:[];for(let d of f)d.call(this,r);let c=(u=(l=(s=this._oneTimeListeners)==null?void 0:s[i])==null?void 0:l.slice())!=null?u:[];for(let d of c)qre(i,d,this._oneTimeListeners),d.call(this,r);let h=this._eventedParent;h&&(Hs(r,typeof this._eventedParentData=="function"?this._eventedParentData():this._eventedParentData),h.fire(r))}else r instanceof rl&&console.error(r.error);return this}listens(e){var t,r,i,n,a;return!!((r=(t=this._listeners)==null?void 0:t[e])!=null&&r.length||(n=(i=this._oneTimeListeners)==null?void 0:i[e])!=null&&n.length||(a=this._eventedParent)!=null&&a.listens(e))}setEventedParent(e,t){return this._eventedParent=e,this._eventedParentData=t,this}},Nrt={$version:8,$root:{version:{required:!0,type:"enum",values:[8]},name:{type:"string"},metadata:{type:"*"},center:{type:"array",value:"number",length:2},centerAltitude:{type:"number"},zoom:{type:"number"},bearing:{type:"number",default:0,period:360,units:"degrees"},pitch:{type:"number",default:0,units:"degrees"},roll:{type:"number",default:0,units:"degrees"},state:{type:"state",default:{}},light:{type:"light"},sky:{type:"sky"},projection:{type:"projection"},terrain:{type:"terrain"},sources:{required:!0,type:"sources"},sprite:{type:"sprite"},glyphs:{type:"string"},"font-faces":{type:"fontFaces"},transition:{type:"transition"},layers:{required:!0,type:"array",value:"layer"}},sources:{"*":{type:"source"}},source:["source_vector","source_raster","source_raster_dem","source_geojson","source_video","source_image"],source_vector:{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},encoding:{type:"enum",values:{mvt:{},mlt:{}},default:"mvt"},"*":{type:"*"}},source_raster:{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:"*"}},source_raster_dem:{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:{},custom:{}},default:"mapbox"},redFactor:{type:"number",default:1},blueFactor:{type:"number",default:1},greenFactor:{type:"number",default:1},baseShift:{type:"number",default:0},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_geojson:{type:{required:!0,type:"enum",values:{geojson:{}}},data:{required:!0,type:"*"},maxzoom:{type:"number",default:18},attribution:{type:"string"},buffer:{type:"number",default:128,maximum:512,minimum:0},filter:{type:"filter"},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"}},source_video:{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"}}},source_image:{type:{required:!0,type:"enum",values:{image:{}}},url:{type:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},layer:{id:{type:"string",required:!0},type:{type:"enum",values:{fill:{},line:{},symbol:{},circle:{},heatmap:{},"fill-extrusion":{},raster:{},hillshade:{},"color-relief":{},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"}},layout:["layout_fill","layout_line","layout_circle","layout_heatmap","layout_fill-extrusion","layout_symbol","layout_raster","layout_hillshade","layout_color-relief","layout_background"],layout_background:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible",expression:{interpolated:!1,parameters:["global-state"]},"property-type":"data-constant"}},layout_fill:{"fill-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible",expression:{interpolated:!1,parameters:["global-state"]},"property-type":"data-constant"}},layout_circle:{"circle-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible",expression:{interpolated:!1,parameters:["global-state"]},"property-type":"data-constant"}},layout_heatmap:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible",expression:{interpolated:!1,parameters:["global-state"]},"property-type":"data-constant"}},"layout_fill-extrusion":{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible",expression:{interpolated:!1,parameters:["global-state"]},"property-type":"data-constant"},"fill-extrusion-rounded-corner-distance":{type:"number",default:0,minimum:0,units:"meters","property-type":"constant"}},layout_line:{"line-cap":{type:"enum",values:{butt:{},round:{},square:{}},default:"butt",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"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","feature"]},"property-type":"data-driven"},"line-round-limit":{type:"number",default:1.05,requires:[{"line-join":"round"}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible",expression:{interpolated:!1,parameters:["global-state"]},"property-type":"data-constant"}},layout_symbol:{"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",{"!":"icon-overlap"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-overlap":{type:"enum",values:{never:{},always:{},cooperative:{}},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","feature"]},"property-type":"data-driven"},"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:"padding",default:[2],units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"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:{},"viewport-glyph":{},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-variable-anchor-offset":{type:"variableAnchorOffsetCollection",requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"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",{"!":"text-overlap"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-overlap":{type:"enum",values:{never:{},always:{},cooperative:{}},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"},"symbol-height-offset":{type:"number",default:0,units:"meters",requires:[{"symbol-placement":["point"]}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"symbol-height-anchor":{type:"enum",values:{ground:{},absolute:{}},default:"ground",requires:["symbol-height-offset"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible",expression:{interpolated:!1,parameters:["global-state"]},"property-type":"data-constant"}},layout_raster:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible",expression:{interpolated:!1,parameters:["global-state"]},"property-type":"data-constant"}},layout_hillshade:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible",expression:{interpolated:!1,parameters:["global-state"]},"property-type":"data-constant"}},"layout_color-relief":{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible",expression:{interpolated:!1,parameters:["global-state"]},"property-type":"data-constant"}},filter:{type:"boolean",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},filter_operator:{type:"enum",values:{"==":{},"!=":{},">":{},">=":{},"<":{},"<=":{},in:{},"!in":{},all:{},any:{},none:{},has:{},"!has":{}}},geometry_type:{type:"enum",values:{Point:{},LineString:{},Polygon:{}}},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:{type:"array",minimum:0,maximum:24,value:["number","color"],length:2},expression:{type:"array",value:"expression_name",minimum:1},light:{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}},sky:{"sky-color":{type:"color","property-type":"data-constant",default:"#88C6FC",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"horizon-color":{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"fog-color":{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"fog-ground-blend":{type:"number","property-type":"data-constant",default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"horizon-fog-blend":{type:"number","property-type":"data-constant",default:.8,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"sky-horizon-blend":{type:"number","property-type":"data-constant",default:.8,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"atmosphere-blend":{type:"number","property-type":"data-constant",default:.8,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0}},terrain:{source:{type:"string",required:!0},exaggeration:{type:"number",minimum:0,default:1}},projection:{type:{type:"projectionDefinition",default:"mercator","property-type":"data-constant",transition:!1,expression:{interpolated:!0,parameters:["zoom"]}}},paint:["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_symbol","paint_raster","paint_hillshade","paint_color-relief","paint_background"],paint_fill:{"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-layer-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","global-state"]},"property-type":"data-constant"},"fill-color":{type:"color",default:"#000000",transition:!0,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"}},"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,units:"meters",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{type:"number",default: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:{"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-layer-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","global-state"]},"property-type":"data-constant"},"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","feature"]},"property-type":"cross-faded-data-driven"},"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"}},paint_circle:{"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"}},paint_heatmap:{"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"}},paint_symbol:{"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"}},paint_raster:{"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"},resampling:{type:"enum",values:{linear:{},nearest:{}},default:"linear",expression:{interpolated:!1,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"}},paint_hillshade:{"hillshade-illumination-direction":{type:"numberArray",default:335,minimum:0,maximum:359,transition:!1,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-illumination-altitude":{type:"numberArray",default:45,minimum:0,maximum:90,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:"colorArray",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-highlight-color":{type:"colorArray",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"},"hillshade-method":{type:"enum",values:{standard:{},basic:{},combined:{},igor:{},multidirectional:{}},default:"standard",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},resampling:{type:"enum",values:{linear:{},nearest:{}},default:"linear",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},"paint_color-relief":{"color-relief-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"color-relief-color":{type:"color",transition:!1,expression:{interpolated:!0,parameters:["elevation"]},"property-type":"color-ramp"},resampling:{type:"enum",values:{linear:{},nearest:{}},default:"linear",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_background:{"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"}},transition:{duration:{type:"number",default:300,minimum:0,units:"milliseconds"},delay:{type:"number",default:0,minimum:0,units:"milliseconds"}},"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:{"*":{type:"string"}},interpolation:{type:"array",value:"interpolation_name",minimum:1},interpolation_name:{type:"enum",values:{linear:{syntax:{overloads:[{parameters:[],"output-type":"interpolation"}],parameters:[]}},exponential:{syntax:{overloads:[{parameters:["base"],"output-type":"interpolation"}],parameters:[{name:"base",type:"number literal"}]}},"cubic-bezier":{syntax:{overloads:[{parameters:["x1","y1","x2","y2"],"output-type":"interpolation"}],parameters:[{name:"x1",type:"number literal"},{name:"y1",type:"number literal"},{name:"x2",type:"number literal"},{name:"y2",type:"number literal"}]}}}}},cn=Nrt,Vrt=["type","source","source-layer","minzoom","maxzoom","filter","layout"],wo=class{constructor(e,t,r,i,n="error"){this.message=(e?`${e}: `:"")+r,i&&(this.identifier=i),this.severity=n,t!=null&&t.__line__&&(this.line=t.__line__)}},yC={kind:"null"},ss={kind:"number"},$l={kind:"string"},cu={kind:"boolean"},T1={kind:"color"},oq={kind:"projectionDefinition"},e3={kind:"object"},Zl={kind:"value"},J2r={kind:"error"},sq={kind:"collator"},gC={kind:"formatted"},lq={kind:"padding"},Wk={kind:"colorArray"},uq={kind:"numberArray"},xC={kind:"resolvedImage"},fq={kind:"variableAnchorOffsetCollection"};Q2r=[yC,ss,$l,cu,T1,oq,gC,e3,K0(Zl),lq,uq,Wk,xC,fq];Urt=.96422,Grt=.82521,Hrt=4/29,rie=6/29,jrt=3*rie*rie,exr=Math.PI/180,txr=180/Math.PI;axr=Object.hasOwn||function(e,t){return Object.prototype.hasOwnProperty.call(e,t)};sxr={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]};Ol=(s0=class{constructor(t,r,i,n=1,a=!0){this.r=t,this.g=r,this.b=i,this.a=n,a||(this.r*=n,this.g*=n,this.b*=n,n||this.overwriteGetter("rgb",[t,r,i,n]))}static parse(t){if(t instanceof s0)return t;if(typeof t!="string")return;let r=oxr(t);if(r)return new s0(...r,!1)}get rgb(){let{r:t,g:r,b:i,a:n}=this,a=n||1/0;return this.overwriteGetter("rgb",[t/a,r/a,i/a,n])}get hcl(){return this.overwriteGetter("hcl",rxr(this.rgb))}get lab(){return this.overwriteGetter("lab",$rt(this.rgb))}overwriteGetter(t,r){return Object.defineProperty(this,t,{value:r}),r}toString(){let[t,r,i,n]=this.rgb;return`rgba(${[t,r,i].map(a=>Math.round(a*255)).join(",")},${n})`}static interpolate(t,r,i,n="rgb"){switch(n){case"rgb":{let[a,o,s,l]=B5(t.rgb,r.rgb,i);return new s0(a,o,s,l,!1)}case"hcl":{let[a,o,s,l]=t.hcl,[u,f,c,h]=r.hcl,d,p;if(!isNaN(a)&&!isNaN(u)){let _=u-a;u>a&&_>180?_-=360:u180&&(_+=360),d=a+i*_}else isNaN(a)?isNaN(u)?d=NaN:(d=u,(s===1||s===0)&&(p=f)):(d=a,(c===1||c===0)&&(p=o));let[v,y,m,w]=ixr([d,p!=null?p:fx(o,f,i),fx(s,c,i),fx(l,h,i)]);return new s0(v,y,m,w,!1)}case"lab":{let[a,o,s,l]=Yrt(B5(t.lab,r.lab,i));return new s0(a,o,s,l,!1)}}}},s0.black=new s0(0,0,0,1),s0.white=new s0(1,1,1,1),s0.transparent=new s0(0,0,0,0),s0.red=new s0(1,0,0,1),s0),uxr=["bottom","center","top"],iie=class{constructor(e,t,r,i,n,a){this.text=e,this.image=t,this.scale=r,this.fontStack=i,this.textColor=n,this.verticalAlign=a}},Xy=class _7{constructor(t){this.sections=t}static fromString(t){return new _7([new iie(t,null,null,null,null,null)])}isEmpty(){return this.sections.length===0||!this.sections.some(t=>t.text.length!==0||t.image&&t.image.name.length!==0)}static factory(t){return t instanceof _7?t:_7.fromString(t)}toString(){return this.sections.length===0?"":this.sections.map(t=>t.text).join("")}},Vm=class Fk{constructor(t){this.values=t.slice()}static parse(t){if(t instanceof Fk)return t;if(typeof t=="number")return new Fk([t,t,t,t]);if(Array.isArray(t)&&!(t.length<1||t.length>4)){for(let r of t)if(typeof r!="number")return;switch(t.length){case 1:t=[t[0],t[0],t[0],t[0]];break;case 2:t=[t[0],t[1],t[0],t[1]];break;case 3:t=[t[0],t[1],t[2],t[1]]}return new Fk(t)}}toString(){return JSON.stringify(this.values)}static interpolate(t,r,i){return new Fk(B5(t.values,r.values,i))}},Um=class Lk{constructor(t){this.values=t.slice()}static parse(t){if(t instanceof Lk)return t;if(typeof t=="number")return new Lk([t]);if(Array.isArray(t)){for(let r of t)if(typeof r!="number")return;return new Lk(t)}}toString(){return JSON.stringify(this.values)}static interpolate(t,r,i){return new Lk(B5(t.values,r.values,i))}},wv=class Pk{constructor(t){this.values=t.slice()}static parse(t){if(t instanceof Pk)return t;if(typeof t=="string"){let i=Ol.parse(t);return i?new Pk([i]):void 0}if(!Array.isArray(t))return;let r=[];for(let i of t){if(typeof i!="string")return;let n=Ol.parse(i);if(!n)return;r.push(n)}return new Pk(r)}toString(){return JSON.stringify(this.values)}static interpolate(t,r,i,n="rgb"){let a=[];if(t.values.length!=r.values.length)throw Error(`colorArray: Arrays have mismatched length (${t.values.length} vs. ${r.values.length}), cannot interpolate.`);for(let o=0;o=s)return r.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',u);let c=r.parse(l,f,a);if(!c)return null;a||(a=c.type),n.push([s,c])}return new Qrt(a,i,n,r.key)}evaluate(t){let r=this.labels,i=this.outputs;if(r.length===1)return i[0].evaluate(t);let n=this.input.evaluate(t);if(n<=r[0])return i[0].evaluate(t);let a=r.length;return n>=r[a-1]?i[a-1].evaluate(t):i[cq(r,n,this.key)].evaluate(t)}eachChild(t){t(this.input);for(let r of this.outputs)t(r)}outputDefined(){return this.outputs.every(t=>t.outputDefined())}};Av=class nie{constructor(t,r,i,n,a,o){this.type=t,this.operator=r,this.interpolation=i,this.input=n,this.key=o,this.labels=[],this.outputs=[];for(let[s,l]of a)this.labels.push(s),this.outputs.push(l)}static interpolationFactor(t,r,i,n){let a=0;if(t.name==="exponential")a=Gre(r,t.base,i,n);else if(t.name==="linear")a=Gre(r,1,i,n);else if(t.name==="cubic-bezier"){let o=t.controlPoints;a=hxr(o[0],o[1],o[2],o[3])(Gre(r,1,i,n))}return a}static parse(t,r){let[i,n,a,...o]=t;if(!Array.isArray(n)||n.length===0)return r.error("Expected an interpolation type expression.",1);if(n[0]==="linear")n={name:"linear"};else if(n[0]==="exponential"){let u=n[1];if(typeof u!="number")return r.error("Exponential interpolation requires a numeric base.",1,1);n={name:"exponential",base:u}}else if(n[0]==="cubic-bezier"){let u=n.slice(1);if(u.length!==4||u.some(f=>typeof f!="number"||f<0||f>1))return r.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);n={name:"cubic-bezier",controlPoints:u}}else return r.error(`Unknown interpolation type ${String(n[0])}`,1,0);if(t.length-1<4)return r.error(`Expected at least 4 arguments, but found only ${t.length-1}.`);if((t.length-1)%2!=0)return r.error("Expected an even number of arguments.");if(a=r.parse(a,2,ss),!a)return null;let s=[],l=null;(i==="interpolate-hcl"||i==="interpolate-lab")&&r.expectedType!=Wk?l=T1:r.expectedType&&r.expectedType.kind!=="value"&&(l=r.expectedType);for(let u=0;u=f)return r.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',h);let p=r.parse(c,d,l);if(!p)return null;l||(l=p.type),s.push([f,p])}return!ix(l,ss)&&!ix(l,oq)&&!ix(l,T1)&&!ix(l,lq)&&!ix(l,uq)&&!ix(l,Wk)&&!ix(l,fq)&&!ix(l,K0(ss))?r.error(`Type ${gc(l)} is not interpolatable.`):new nie(l,i,n,a,s,r.key)}evaluate(t){let r=this.labels,i=this.outputs;if(r.length===1)return i[0].evaluate(t);let n=this.input.evaluate(t);if(n<=r[0])return i[0].evaluate(t);let a=r.length;if(n>=r[a-1])return i[a-1].evaluate(t);let o=cq(r,n,this.key),s=r[o],l=r[o+1],u=nie.interpolationFactor(this.interpolation,n,s,l),f=i[o].evaluate(t),c=i[o+1].evaluate(t);switch(this.operator){case"interpolate":switch(this.type.kind){case"number":return fx(f,c,u);case"color":return Ol.interpolate(f,c,u);case"padding":return Vm.interpolate(f,c,u);case"colorArray":return wv.interpolate(f,c,u);case"numberArray":return Um.interpolate(f,c,u);case"variableAnchorOffsetCollection":return qm.interpolate(f,c,u,this.key);case"array":return B5(f,c,u);case"projectionDefinition":return tg.interpolate(f,c,u)}case"interpolate-hcl":switch(this.type.kind){case"color":return Ol.interpolate(f,c,u,"hcl");case"colorArray":return wv.interpolate(f,c,u,"hcl")}case"interpolate-lab":switch(this.type.kind){case"color":return Ol.interpolate(f,c,u,"lab");case"colorArray":return wv.interpolate(f,c,u,"lab")}}}eachChild(t){t(this.input);for(let r of this.outputs)t(r)}outputDefined(){return this.outputs.every(t=>t.outputDefined())}};ec={color:Ol.interpolate,number:fx,padding:Vm.interpolate,numberArray:Um.interpolate,colorArray:wv.interpolate,variableAnchorOffsetCollection:qm.interpolate,array:B5},eit=class tit{constructor(t){this.type=gC,this.sections=t}static parse(t,r){if(t.length<2)return r.error("Expected at least one argument.");let i=t[1];if(!Array.isArray(i)&&typeof i=="object")return r.error("First argument must be an image or text section.");let n=[],a=!1;for(let o=1;o<=t.length-1;++o){let s=t[o];if(a&&typeof s=="object"&&!Array.isArray(s)){a=!1;let l=null;if(s["font-scale"]&&(l=r.parse(s["font-scale"],1,ss),!l))return null;let u=null;if(s["text-font"]&&(u=r.parse(s["text-font"],1,K0($l)),!u))return null;let f=null;if(s["text-color"]&&(f=r.parse(s["text-color"],1,T1),!f))return null;let c=null;if(s["vertical-align"]){if(typeof s["vertical-align"]=="string"&&!uxr.includes(s["vertical-align"]))return r.error(`'vertical-align' must be one of: 'bottom', 'center', 'top' but found '${s["vertical-align"]}' instead.`);if(c=r.parse(s["vertical-align"],1,$l),!c)return null}let h=n[n.length-1];h.scale=l,h.font=u,h.textColor=f,h.verticalAlign=c}else{let l=r.parse(t[o],1,Zl);if(!l)return null;let u=l.type.kind;if(u!=="string"&&u!=="value"&&u!=="null"&&u!=="resolvedImage")return r.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");a=!0,n.push({content:l,scale:null,font:null,textColor:null,verticalAlign:null})}}return new tit(n)}evaluate(t){return new Xy(this.sections.map(r=>{let i=r.content.evaluate(t);return eh(i)===xC?new iie("",i,null,null,null,r.verticalAlign?r.verticalAlign.evaluate(t):null):new iie(Nk(i),null,r.scale?r.scale.evaluate(t):null,r.font?r.font.evaluate(t).join(","):null,r.textColor?r.textColor.evaluate(t):null,r.verticalAlign?r.verticalAlign.evaluate(t):null)}))}eachChild(t){for(let r of this.sections)t(r.content),r.scale&&t(r.scale),r.font&&t(r.font),r.textColor&&t(r.textColor),r.verticalAlign&&t(r.verticalAlign)}outputDefined(){return!1}};s7={string:$l,number:ss,boolean:cu,object:e3},Wy=class iit{constructor(t,r,i){this.type=t,this.args=r,this.key=i}static parse(t,r){if(t.length<2)return r.error("Expected at least one argument.");let i=1,n,a=t[0];if(a==="array"){let s;if(t.length>2){let u=t[1];if(typeof u!="string"||!(u in s7)||u==="object")return r.error('The item type argument of "array" must be one of string, number, boolean',1);s=s7[u],i++}else s=Zl;let l;if(t.length>3){if(t[2]!==null&&(typeof t[2]!="number"||t[2]<0||t[2]!==Math.floor(t[2])))return r.error('The length argument to "array" must be a positive integer literal',2);l=t[2],i++}n=K0(s,l)}else{if(!s7[a])throw Error(`Types doesn't contain name = ${a}`);n=s7[a]}let o=[];for(;it.outputDefined())}},wet={"to-boolean":cu,"to-color":T1,"to-number":ss,"to-string":$l},E5=class nit{constructor(t,r,i){this.type=t,this.args=r,this.key=i}static parse(t,r){if(t.length<2)return r.error("Expected at least one argument.");let i=t[0];if(!wet[i])throw Error(`Can't parse ${i} as it is not part of the known types`);if((i==="to-boolean"||i==="to-string")&&t.length!==2)return r.error("Expected one argument.");let n=wet[i],a=[];for(let o=1;o4?`Invalid rgba value ${JSON.stringify(r)}: expected an array containing either three or four numeric values.`:Zrt(r[0],r[1],r[2],r[3]),!i))return new Ol(r[0]/255,r[1]/255,r[2]/255,r[3])}throw new fc(i||`Could not parse color from value '${typeof r=="string"?r:JSON.stringify(r)}'`,this.key)}case"padding":{let r;for(let i of this.args){r=i.evaluate(t);let n=Vm.parse(r);if(n)return n}throw new fc(`Could not parse padding from value '${typeof r=="string"?r:JSON.stringify(r)}'`,this.key)}case"numberArray":{let r;for(let i of this.args){r=i.evaluate(t);let n=Um.parse(r);if(n)return n}throw new fc(`Could not parse numberArray from value '${typeof r=="string"?r:JSON.stringify(r)}'`,this.key)}case"colorArray":{let r;for(let i of this.args){r=i.evaluate(t);let n=wv.parse(r);if(n)return n}throw new fc(`Could not parse colorArray from value '${typeof r=="string"?r:JSON.stringify(r)}'`,this.key)}case"variableAnchorOffsetCollection":{let r;for(let i of this.args){r=i.evaluate(t);let n=qm.parse(r);if(n)return n}throw new fc(`Could not parse variableAnchorOffsetCollection from value '${typeof r=="string"?r:JSON.stringify(r)}'`,this.key)}case"number":{let r=null;for(let i of this.args){if(r=i.evaluate(t),r===null)return 0;let n=Number(r);if(!isNaN(n))return n}throw new fc(`Could not convert ${JSON.stringify(r)} to number.`,this.key)}case"formatted":return Xy.fromString(Nk(this.args[0].evaluate(t)));case"resolvedImage":return Om.fromString(Nk(this.args[0].evaluate(t)));case"projectionDefinition":{let r=this.args[0].evaluate(t);if(tg.parse(r))return r;throw new fc(`Could not parse projectionDefinition from value '${typeof r=="string"?r:JSON.stringify(r)}'`,this.key)}default:return Nk(this.args[0].evaluate(t))}}eachChild(t){this.args.forEach(t)}outputDefined(){return this.args.every(t=>t.outputDefined())}},ait=class oit{constructor(t,r){this.type=r.type,this.bindings=[].concat(t),this.result=r}evaluate(t){return this.result.evaluate(t)}eachChild(t){for(let r of this.bindings)t(r[1]);t(this.result)}static parse(t,r){if(t.length<4)return r.error(`Expected at least 3 arguments, but found ${t.length-1} instead.`);let i=[];for(let a=1;a=i.length)throw new fc(`Array index out of bounds: ${r} > ${i.length-1}.`,this.key);if(r!==Math.floor(r))throw new fc(`Array index must be an integer, but found ${r} instead.`,this.key);return i[r]}eachChild(t){t(this.index),t(this.input)}outputDefined(){return!1}},yxr=class fit{constructor(t,r,i){this.needle=t,this.haystack=r,this.key=i,this.type=cu}static parse(t,r){if(t.length!==3)return r.error(`Expected 2 arguments, but found ${t.length-1} instead.`);let i=r.parse(t[1],1,Zl),n=r.parse(t[2],2,Zl);return!i||!n?null:Cne(i.type,[cu,$l,ss,yC,Zl])?new fit(i,n,r.key):r.error(`Expected first argument to be of type boolean, string, number or null, but found ${gc(i.type)} instead`)}evaluate(t){let r=this.needle.evaluate(t),i=this.haystack.evaluate(t);if(!i)return!1;if(!t3(r,["boolean","string","number","null"]))throw new fc(`Expected first argument to be of type boolean, string, number or null, but found ${gc(eh(r))} instead.`,this.key);if(!t3(i,["string","array"]))throw new fc(`Expected second argument to be of type array or string, but found ${gc(eh(i))} instead.`,this.key);return i.indexOf(r)>=0}eachChild(t){t(this.needle),t(this.haystack)}outputDefined(){return!0}},gxr=class aie{constructor(t,r,i,n){this.needle=t,this.haystack=r,this.key=i,this.fromIndex=n,this.type=ss}static parse(t,r){if(t.length<=2||t.length>=5)return r.error(`Expected 2 or 3 arguments, but found ${t.length-1} instead.`);let i=r.parse(t[1],1,Zl),n=r.parse(t[2],2,Zl);if(!i||!n)return null;if(!Cne(i.type,[cu,$l,ss,yC,Zl]))return r.error(`Expected first argument to be of type boolean, string, number or null, but found ${gc(i.type)} instead`);if(t.length===4){let a=r.parse(t[3],3,ss);return a?new aie(i,n,r.key,a):null}return new aie(i,n,r.key)}evaluate(t){let r=this.needle.evaluate(t),i=this.haystack.evaluate(t);if(!t3(r,["boolean","string","number","null"]))throw new fc(`Expected first argument to be of type boolean, string, number or null, but found ${gc(eh(r))} instead.`,this.key);let n;if(this.fromIndex&&(n=this.fromIndex.evaluate(t)),t3(i,["string"])){let a=i.indexOf(r,n);return a===-1?-1:[...i.slice(0,a)].length}if(t3(i,["array"]))return i.indexOf(r,n);throw new fc(`Expected second argument to be of type array or string, but found ${gc(eh(i))} instead.`,this.key)}eachChild(t){t(this.needle),t(this.haystack),this.fromIndex&&t(this.fromIndex)}outputDefined(){return!1}},xxr=class cit{constructor(t,r,i,n,a,o){this.inputType=t,this.type=r,this.input=i,this.cases=n,this.outputs=a,this.otherwise=o}static parse(t,r){if(t.length<5)return r.error(`Expected at least 4 arguments, but found only ${t.length-1}.`);if(t.length%2!=1)return r.error("Expected an even number of arguments.");let i,n;r.expectedType&&r.expectedType.kind!=="value"&&(n=r.expectedType);let a={},o=[];for(let u=2;u2**53-1)return h.error(`Branch labels must be integers no larger than ${2**53-1}.`);if(typeof p=="number"&&Math.floor(p)!==p)return h.error("Numeric branch labels must be integer values.");if(!i)i=eh(p);else if(h.checkSubtype(i,eh(p)))return null;if(a[String(p)]!==void 0)return h.error("Branch labels must be unique.");a[String(p)]=o.length}let d=r.parse(c,u,n);if(!d)return null;n||(n=d.type),o.push(d)}let s=r.parse(t[1],1,Zl);if(!s)return null;let l=r.parse(t[t.length-1],t.length-1,n);return!l||s.type.kind!=="value"&&r.concat(1).checkSubtype(i,s.type)?null:new cit(i,n,s,a,o,l)}evaluate(t){let r=this.input.evaluate(t);return(eh(r)===this.inputType&&this.outputs[this.cases[r]]||this.otherwise).evaluate(t)}eachChild(t){t(this.input),this.outputs.forEach(t),t(this.otherwise)}outputDefined(){return this.outputs.every(t=>t.outputDefined())&&this.otherwise.outputDefined()}},bxr=class hit{constructor(t,r,i){this.type=t,this.branches=r,this.otherwise=i}static parse(t,r){if(t.length<4)return r.error(`Expected at least 3 arguments, but found only ${t.length-1}.`);if(t.length%2!=0)return r.error("Expected an odd number of arguments.");let i;r.expectedType&&r.expectedType.kind!=="value"&&(i=r.expectedType);let n=[];for(let o=1;or.outputDefined())&&this.otherwise.outputDefined()}},_xr=class oie{constructor(t,r,i,n,a){this.type=t,this.input=r,this.beginIndex=i,this.key=n,this.endIndex=a}static parse(t,r){if(t.length<=2||t.length>=5)return r.error(`Expected 2 or 3 arguments, but found ${t.length-1} instead.`);let i=r.parse(t[1],1,Zl),n=r.parse(t[2],2,ss);if(!i||!n)return null;if(!Cne(i.type,[K0(Zl),$l,Zl]))return r.error(`Expected first argument to be of type array or string, but found ${gc(i.type)} instead`);if(t.length===4){let a=r.parse(t[3],3,ss);return a?new oie(i.type,i,n,r.key,a):null}return new oie(i.type,i,n,r.key)}evaluate(t){let r=this.input.evaluate(t),i=this.beginIndex.evaluate(t),n;if(this.endIndex&&(n=this.endIndex.evaluate(t)),t3(r,["string"]))return[...r].slice(i,n).join("");if(t3(r,["array"]))return r.slice(i,n);throw new fc(`Expected first argument to be of type array or string, but found ${gc(eh(r))} instead.`,this.key)}eachChild(t){t(this.input),t(this.beginIndex),this.endIndex&&t(this.endIndex)}outputDefined(){return!1}},dit=class sie{constructor(t,r){this.type=t,this.args=r}static parse(t,r){if(t.length<2)return r.error("Expected at least one argument.");let i=null,n=r.expectedType;n&&n.kind!=="value"&&(i=n);let a=[];for(let o of t.slice(1)){let s=r.parse(o,1+a.length,i,void 0,{typeAnnotation:"omit"});if(!s)return null;i||(i=s.type),a.push(s)}if(!i)throw Error("No output type");return n&&a.some(o=>$k(n,o.type))?new sie(Zl,a):new sie(i,a)}evaluate(t){let r=null,i=0,n;for(let a of this.args)if(i++,r=a.evaluate(t),r&&r instanceof Om&&!r.available&&(n||(n=r.name),r=null,i===this.args.length&&(r=n)),r!==null)break;return r}eachChild(t){this.args.forEach(t)}outputDefined(){return this.args.every(t=>t.outputDefined())}};Pxr=X5("==",wxr,pit),zxr=X5("!=",Axr,kxr),Ixr=X5("<",Txr,Cxr),Rxr=X5(">",Mxr,Dxr),Bxr=X5("<=",Sxr,Fxr),qxr=X5(">=",Exr,Lxr),mit=class yit{constructor(t,r,i){this.type=sq,this.locale=i,this.caseSensitive=t,this.diacriticSensitive=r}static parse(t,r){if(t.length!==2)return r.error("Expected one argument.");let i=t[1];if(typeof i!="object"||Array.isArray(i))return r.error("Collator options argument must be an object.");let n=r.parse(i["case-sensitive"]!==void 0&&i["case-sensitive"],1,cu);if(!n)return null;let a=r.parse(i["diacritic-sensitive"]!==void 0&&i["diacritic-sensitive"],1,cu);if(!a)return null;let o=null;return i.locale&&(o=r.parse(i.locale,1,$l),!o)?null:new yit(n,a,o)}evaluate(t){return new Dne(this.caseSensitive.evaluate(t),this.diacriticSensitive.evaluate(t),this.locale?this.locale.evaluate(t):null)}eachChild(t){t(this.caseSensitive),t(this.diacriticSensitive),this.locale&&t(this.locale)}outputDefined(){return!1}},Oxr=class git{constructor(t,r,i,n,a,o){this.type=$l,this.number=t,this.locale=r,this.currency=i,this.unit=n,this.minFractionDigits=a,this.maxFractionDigits=o}static parse(t,r){if(t.length!==3)return r.error("Expected two arguments.");let i=r.parse(t[1],1,ss);if(!i)return null;let n=t[2];if(typeof n!="object"||Array.isArray(n))return r.error("NumberFormat options argument must be an object.");let a=null;if(n.locale&&(a=r.parse(n.locale,1,$l),!a))return null;let o=null;if(n.currency&&(o=r.parse(n.currency,1,$l),!o))return null;let s=null;if(n.unit&&(s=r.parse(n.unit,1,$l),!s))return null;if(o&&s)return r.error("NumberFormat options `currency` and `unit` are mutually exclusive");let l=null;if(n["min-fraction-digits"]&&(l=r.parse(n["min-fraction-digits"],1,ss),!l))return null;let u=null;return n["max-fraction-digits"]&&(u=r.parse(n["max-fraction-digits"],1,ss),!u)?null:new git(i,a,o,s,l,u)}evaluate(t){return new Intl.NumberFormat(this.locale?this.locale.evaluate(t):[],{style:this.currency?"currency":this.unit?"unit":"decimal",currency:this.currency?this.currency.evaluate(t):void 0,unit:this.unit?this.unit.evaluate(t):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(t):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(t):void 0}).format(this.number.evaluate(t))}eachChild(t){t(this.number),this.locale&&t(this.locale),this.currency&&t(this.currency),this.unit&&t(this.unit),this.minFractionDigits&&t(this.minFractionDigits),this.maxFractionDigits&&t(this.maxFractionDigits)}outputDefined(){return!1}},Nxr=class xit{constructor(t){this.type=xC,this.input=t}static parse(t,r){if(t.length!==2)return r.error("Expected two arguments.");let i=r.parse(t[1],1,$l);return i?new xit(i):r.error("No image name provided.")}evaluate(t){let r=this.input.evaluate(t),i=Om.fromString(r);return i&&t.availableImages&&(i.available=t.availableImages.indexOf(r)>-1),i}eachChild(t){t(this.input)}outputDefined(){return!1}},Vxr=class bit{constructor(t,r){this.input=t,this.key=r,this.type=ss}static parse(t,r){if(t.length!==2)return r.error(`Expected 1 argument, but found ${t.length-1} instead.`);let i=r.parse(t[1],1);return i?i.type.kind!=="array"&&i.type.kind!=="string"&&i.type.kind!=="value"?r.error(`Expected argument of type string or array, but found ${gc(i.type)} instead.`):new bit(i,r.key):null}evaluate(t){let r=this.input.evaluate(t);if(typeof r=="string")return[...r].length;if(Array.isArray(r))return r.length;throw new fc(`Expected value to be of type string or array, but found ${gc(eh(r))} instead.`,this.key)}eachChild(t){t(this.input)}outputDefined(){return!1}},Bm=8192;zne=class A7{constructor(t,r){this.type=cu,this.geojson=t,this.geometries=r}static parse(t,r){if(t.length!==2)return r.error(`'within' expression requires exactly one argument, but found ${t.length-1} instead.`);if(q5(t[1])){let i=t[1];if(i.type==="FeatureCollection"){let n=[];for(let a of i.features){let{type:o,coordinates:s}=a.geometry;o==="Polygon"&&n.push(s),o==="MultiPolygon"&&n.push(...s)}if(n.length)return new A7(i,{type:"MultiPolygon",coordinates:n})}else if(i.type==="Feature"){let n=i.geometry.type;if(n==="Polygon"||n==="MultiPolygon")return new A7(i,i.geometry)}else if(i.type==="Polygon"||i.type==="MultiPolygon")return new A7(i,i)}return r.error("'within' expression requires valid geojson object that contains polygon geometry type.")}evaluate(t){if(t.geometry()!=null&&t.canonicalID()!=null){if(t.geometryType()==="Point")return ebr(t,this.geometries);if(t.geometryType()==="LineString")return tbr(t,this.geometries)}return!1}eachChild(){}outputDefined(){return!0}},Tit=class{constructor(e=[],t=(r,i)=>ri)){if(this.data=e,this.length=this.data.length,this.compare=t,this.length>0)for(let r=(this.length>>1)-1;r>=0;r--)this._down(r)}push(e){this.data.push(e),this._up(this.length++)}pop(){if(this.length===0)return;let e=this.data[0],t=this.data.pop();return--this.length>0&&(this.data[0]=t,this._down(0)),e}peek(){return this.data[0]}_up(e){let{data:t,compare:r}=this,i=t[e];for(;e>0;){let n=e-1>>1,a=t[n];if(r(i,a)>=0)break;t[e]=a,e=n}t[e]=i}_down(e){let{data:t,compare:r}=this,i=this.length>>1,n=t[e];for(;e=0)break;t[e]=t[a],e=a}t[e]=n}},ket=Math.PI/180,Ine=class{constructor(e){let t=ket*6378.137*1e3,r=Math.cos(e*ket),i=1/(1-.0066943799901413165*(1-r*r)),n=Math.sqrt(i);this.kx=t*n*r,this.ky=t*n*i*.9933056200098587}distance(e,t){let r=this.wrap(e[0]-t[0])*this.kx,i=(e[1]-t[1])*this.ky;return Math.sqrt(r*r+i*i)}pointOnLine(e,t){let r=1/0,i,n,a,o;for(let s=0;s1?(l=e[s+1][0],u=e[s+1][1]):h>0&&(l+=f/this.kx*h,u+=c/this.ky*h)),f=this.wrap(t[0]-l)*this.kx,c=(t[1]-u)*this.ky;let d=f*f+c*c;d180;)e-=360;return e}};qne=class T7{constructor(t,r){this.type=ss,this.geojson=t,this.geometries=r}static parse(t,r){if(t.length!==2)return r.error(`'distance' expression requires exactly one argument, but found ${t.length-1} instead.`);if(q5(t[1])){let i=t[1];if(i.type==="FeatureCollection")return new T7(i,i.features.map(n=>Hre(n.geometry)).flat());if(i.type==="Feature")return new T7(i,Hre(i.geometry));if("type"in i&&"coordinates"in i)return new T7(i,Hre(i))}return r.error("'distance' expression requires valid geojson object that contains polygon geometry type.")}evaluate(t){if(t.geometry()!=null&&t.canonicalID()!=null){if(t.geometryType()==="Point")return sbr(t,this.geometries);if(t.geometryType()==="LineString")return lbr(t,this.geometries);if(t.geometryType()==="Polygon")return ubr(t,this.geometries)}return NaN}eachChild(){}outputDefined(){return!0}},fbr=class Sit{constructor(t){let r=null;for(let i of t)if(!r)r=i.type;else{if(r===i.type)continue;r=Zl;break}this.type=K0(r!=null?r:Zl,t.length),this.arr=t}static parse(t,r){if(t.length!==2)return r.error(`'semiliteral' expression requires exactly one argument, but found ${t.length-1} instead.`);if(!q5(t[1]))return r.error(`invalid value of type "${typeof t[1]}"`);let i=t[1],n=eh(i);if(n.kind==="array"){let a=i,o=r.concat(1),s=[];for(let l=0;lr.evaluate(t))}eachChild(t){this.arr.forEach(t)}outputDefined(){return this.arr.every(t=>t.outputDefined())}},One=class Eit{constructor(t){this.key=t,this.type=Zl}static parse(t,r){if(t.length!==2)return r.error(`Expected 1 argument, but found ${t.length-1} instead.`);let i=t[1];return i==null?r.error("Global state property must be defined."):typeof i=="string"?new Eit(i):r.error(`Global state property must be string, but found ${typeof t[1]} instead.`)}evaluate(t){var i,n;let r=(i=t.globals)==null?void 0:i.globalState;return!r||Object.keys(r).length===0?null:(n=Ok(r,this.key))!=null?n:null}eachChild(){}outputDefined(){return!1}},D5={"==":Pxr,"!=":zxr,">":Rxr,"<":Ixr,">=":qxr,"<=":Bxr,array:Wy,at:mxr,boolean:Wy,case:bxr,coalesce:dit,collator:mit,format:eit,image:Nxr,in:yxr,"index-of":gxr,interpolate:Av,"interpolate-hcl":Av,"interpolate-lab":Av,length:Vxr,let:ait,literal:O5,match:xxr,number:Wy,"number-format":Oxr,object:Wy,semiliteral:fbr,slice:_xr,step:Fne,string:Wy,"to-boolean":E5,"to-color":E5,"to-number":E5,"to-string":E5,var:sit,within:zne,distance:qne,"global-state":One},Pm=class extends Error{constructor(e,t){super(t),this.message=t,this.key=e}},cbr=class kit{constructor(t,r=[]){this.parent=t,this.bindings={};for(let[i,n]of r)this.bindings[i]=n}concat(t){return new kit(this,t)}get(t){if(this.bindings[t])return this.bindings[t];if(this.parent)return this.parent.get(t);throw Error(`${t} not found in scope.`)}has(t){return this.bindings[t]?!0:this.parent?this.parent.has(t):!1}},Cit=class Dit{constructor(t,r,i=[],n,a=new cbr,o=[]){this.registry=t,this.path=i,this.key=i.map(s=>`[${s}]`).join(""),this.scope=a,this.errors=o,this.expectedType=n,this._isConstant=r}parse(t,r,i,n,a={}){return r==null?this._parse(t,a):this.concat(r,i,n)._parse(t,a)}_parse(t,r){(t===null||typeof t=="string"||typeof t=="boolean"||typeof t=="number")&&(t=["literal",t]);let i=this.key;function n(a,o,s){return s==="assert"?new Wy(o,[a],i):s==="coerce"?new E5(o,[a],i):a}if(Array.isArray(t)){if(t.length===0)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');let a=t[0];if(typeof a!="string")return this.error(`Expression name must be a string, but found ${typeof a} instead. If you wanted a literal array, use ["literal", [...]].`,0),null;let o=this.registry[a];if(o){let s=o.parse(t,this);if(!s)return null;if(this.expectedType){let l=this.expectedType,u=s.type;if((l.kind==="string"||l.kind==="number"||l.kind==="boolean"||l.kind==="object"||l.kind==="array")&&u.kind==="value")s=n(s,l,r.typeAnnotation||"assert");else if(l.kind==="projectionDefinition"&&["string","array","value"].includes(u.kind)||["color","formatted","resolvedImage"].includes(l.kind)&&["value","string"].includes(u.kind)||["padding","numberArray"].includes(l.kind)&&["value","number","array"].includes(u.kind)||l.kind==="colorArray"&&["value","string","array"].includes(u.kind)||l.kind==="variableAnchorOffsetCollection"&&["value","array"].includes(u.kind))s=n(s,l,r.typeAnnotation||"coerce");else if(this.checkSubtype(l,u))return null}if(!(s instanceof O5)&&s.type.kind!=="resolvedImage"&&this._isConstant(s)){let l=new Jrt;try{s=new O5(s.type,s.evaluate(l))}catch(u){return this.error(u.message),null}}return s}return this.error(`Unknown expression "${a}". If you wanted a literal array, use ["literal", [...]].`,0)}return t===void 0?this.error("'undefined' value invalid. Use null instead."):typeof t=="object"?this.error('Bare objects invalid. Use ["literal", {...}] instead.'):this.error(`Expected an array, but found ${typeof t} instead.`)}concat(t,r,i){let n=typeof t=="number"?this.path.concat(t):this.path,a=i?this.scope.concat(i):this.scope;return new Dit(this.registry,this._isConstant,n,r||null,a,this.errors)}error(t,...r){let i=`${this.key}${r.map(n=>`[${n}]`).join("")}`;this.errors.push(new Pm(i,t))}checkSubtype(t,r){let i=$k(t,r);return i&&this.error(i),i}},h3=class zk{constructor(t,r,i,n,a){this.name=t,this.type=r,this._evaluate=i,this.args=n,this.key=a}evaluate(t){return this._evaluate(t,this.args,this.key)}eachChild(t){this.args.forEach(t)}outputDefined(){return!1}static parse(t,r){let i=t[0],n=zk.definitions[i];if(!n)return r.error(`Unknown expression "${i}". If you wanted a literal array, use ["literal", [...]].`,0);let a=Array.isArray(n)?n[0]:n.type,o=Array.isArray(n)?[[n[1],n[2]]]:n.overloads,s=o.filter(([u])=>!Array.isArray(u)||u.length===t.length-1),l=null;for(let[u,f]of s){l=new Cit(r.registry,F7,r.path,null,r.scope);let c=[],h=!1;for(let d=1;ddbr(c)).join(" | "),f=[];for(let c=1;c{throw new fc(t.evaluate(e),r)}],typeof:[$l,[Zl],(e,[t])=>gc(eh(t.evaluate(e)))],"to-rgba":[K0(ss,4),[T1],(e,[t])=>{let[r,i,n,a]=t.evaluate(e).rgb;return[r*255,i*255,n*255,a]}],rgb:[T1,[ss,ss,ss],Let],rgba:[T1,[ss,ss,ss,ss],Let],has:{type:cu,overloads:[[[$l],(e,[t])=>Pet(t.evaluate(e),e.properties())],[[$l,e3],(e,[t,r])=>Pet(t.evaluate(e),r.evaluate(e))]]},get:{type:Zl,overloads:[[[$l],(e,[t])=>jre(t.evaluate(e),e.properties())],[[$l,e3],(e,[t,r])=>jre(t.evaluate(e),r.evaluate(e))]]},"feature-state":[Zl,[$l],(e,[t])=>jre(t.evaluate(e),e.featureState||{})],properties:[e3,[],e=>e.properties()],"geometry-type":[$l,[],e=>e.geometryType()],id:[Zl,[],e=>e.id()],zoom:[ss,[],e=>e.globals.zoom],"heatmap-density":[ss,[],e=>e.globals.heatmapDensity||0],elevation:[ss,[],e=>e.globals.elevation||0],"line-progress":[ss,[],e=>e.globals.lineProgress||0],accumulated:[Zl,[],e=>e.globals.accumulated===void 0?null:e.globals.accumulated],"+":[ss,Y_(ss),(e,t)=>{let r=0;for(let i of t)r+=i.evaluate(e);return r}],"*":[ss,Y_(ss),(e,t)=>{let r=1;for(let i of t)r*=i.evaluate(e);return r}],"-":{type:ss,overloads:[[[ss,ss],(e,[t,r])=>t.evaluate(e)-r.evaluate(e)],[[ss],(e,[t])=>-t.evaluate(e)]]},"/":[ss,[ss,ss],(e,[t,r])=>t.evaluate(e)/r.evaluate(e)],"%":[ss,[ss,ss],(e,[t,r])=>t.evaluate(e)%r.evaluate(e)],ln2:[ss,[],()=>Math.LN2],pi:[ss,[],()=>Math.PI],e:[ss,[],()=>Math.E],"^":[ss,[ss,ss],(e,[t,r])=>t.evaluate(e)**+r.evaluate(e)],sqrt:[ss,[ss],(e,[t])=>Math.sqrt(t.evaluate(e))],log10:[ss,[ss],(e,[t])=>Math.log(t.evaluate(e))/Math.LN10],ln:[ss,[ss],(e,[t])=>Math.log(t.evaluate(e))],log2:[ss,[ss],(e,[t])=>Math.log(t.evaluate(e))/Math.LN2],sin:[ss,[ss],(e,[t])=>Math.sin(t.evaluate(e))],cos:[ss,[ss],(e,[t])=>Math.cos(t.evaluate(e))],tan:[ss,[ss],(e,[t])=>Math.tan(t.evaluate(e))],asin:[ss,[ss],(e,[t])=>Math.asin(t.evaluate(e))],acos:[ss,[ss],(e,[t])=>Math.acos(t.evaluate(e))],atan:[ss,[ss],(e,[t])=>Math.atan(t.evaluate(e))],min:[ss,Y_(ss),(e,t)=>Math.min(...t.map(r=>r.evaluate(e)))],max:[ss,Y_(ss),(e,t)=>Math.max(...t.map(r=>r.evaluate(e)))],abs:[ss,[ss],(e,[t])=>Math.abs(t.evaluate(e))],round:[ss,[ss],(e,[t])=>{let r=t.evaluate(e);return r<0?-Math.round(-r):Math.round(r)}],floor:[ss,[ss],(e,[t])=>Math.floor(t.evaluate(e))],ceil:[ss,[ss],(e,[t])=>Math.ceil(t.evaluate(e))],"filter-==":[cu,[$l,Zl],(e,[t,r])=>e.properties()[t.value]===r.value],"filter-id-==":[cu,[Zl],(e,[t])=>e.id()===t.value],"filter-type-==":[cu,[$l],(e,[t])=>e.geometryType()===t.value],"filter-<":[cu,[$l,Zl],(e,[t,r])=>{let i=e.properties()[t.value],n=r.value;return typeof i==typeof n&&i{let r=e.id(),i=t.value;return typeof r==typeof i&&r":[cu,[$l,Zl],(e,[t,r])=>{let i=e.properties()[t.value],n=r.value;return typeof i==typeof n&&i>n}],"filter-id->":[cu,[Zl],(e,[t])=>{let r=e.id(),i=t.value;return typeof r==typeof i&&r>i}],"filter-<=":[cu,[$l,Zl],(e,[t,r])=>{let i=e.properties()[t.value],n=r.value;return typeof i==typeof n&&i<=n}],"filter-id-<=":[cu,[Zl],(e,[t])=>{let r=e.id(),i=t.value;return typeof r==typeof i&&r<=i}],"filter->=":[cu,[$l,Zl],(e,[t,r])=>{let i=e.properties()[t.value],n=r.value;return typeof i==typeof n&&i>=n}],"filter-id->=":[cu,[Zl],(e,[t])=>{let r=e.id(),i=t.value;return typeof r==typeof i&&r>=i}],"filter-has":[cu,[Zl],(e,[t])=>{let r=t.value,i=e.properties();return r in i&&i[r]!==void 0}],"filter-has-id":[cu,[],e=>e.id()!==null&&e.id()!==void 0],"filter-type-in":[cu,[K0($l)],(e,[t])=>t.value.indexOf(e.geometryType())>=0],"filter-id-in":[cu,[K0(Zl)],(e,[t])=>t.value.indexOf(e.id())>=0],"filter-in-small":[cu,[$l,K0(Zl)],(e,[t,r])=>r.value.indexOf(e.properties()[t.value])>=0],"filter-in-large":[cu,[$l,K0(Zl)],(e,[t,r])=>hbr(e.properties()[t.value],r.value,0,r.value.length-1)],all:{type:cu,overloads:[[[cu,cu],(e,[t,r])=>t.evaluate(e)&&r.evaluate(e)],[Y_(cu),(e,t)=>{for(let r of t)if(!r.evaluate(e))return!1;return!0}]]},any:{type:cu,overloads:[[[cu,cu],(e,[t,r])=>t.evaluate(e)||r.evaluate(e)],[Y_(cu),(e,t)=>{for(let r of t)if(r.evaluate(e))return!0;return!1}]]},"!":[cu,[cu],(e,[t])=>!t.evaluate(e)],"is-supported-script":[cu,[$l],(e,[t])=>{let r=e.globals&&e.globals.isSupportedScript;return!r||r(t.evaluate(e))}],upcase:[$l,[$l],(e,[t])=>t.evaluate(e).toUpperCase()],downcase:[$l,[$l],(e,[t])=>t.evaluate(e).toLowerCase()],concat:[$l,Y_(Zl),(e,t)=>t.map(r=>Nk(r.evaluate(e))).join("")],split:[K0($l),[$l,$l],(e,[t,r])=>t.evaluate(e).split(r.evaluate(e))],join:[$l,[K0($l),$l],(e,[t,r])=>t.evaluate(e).join(r.evaluate(e))],"resolved-locale":[$l,[sq],(e,[t])=>t.evaluate(e).resolvedLocale()]});Vne=/^(.*)-transition$/;Une=class{constructor(e,t,r,i){this.expression=e,this._warningHistory={},this._evaluator=new Jrt,this._defaultValue=r?Oit(r):null,this._enumValues=r&&r.type==="enum"?r.values:null,this._globalState=i,this._rootKey=t}evaluateWithoutErrorHandling(e,t,r,i,n,a){return this._globalState&&(e=V5(e,this._globalState)),this._evaluator.globals=e,this._evaluator.feature=t,this._evaluator.featureState=r,this._evaluator.canonical=i,this._evaluator.availableImages=n||null,this._evaluator.formattedSection=a,this.expression.evaluate(this._evaluator)}evaluate(e,t,r,i,n,a){this._globalState&&(e=V5(e,this._globalState)),this._evaluator.globals=e,this._evaluator.feature=t||null,this._evaluator.featureState=r||null,this._evaluator.canonical=i,this._evaluator.availableImages=n||null,this._evaluator.formattedSection=a||null;try{let o=this.expression.evaluate(this._evaluator);if(o==null||typeof o=="number"&&o!==o)return this._defaultValue;if(this._enumValues&&!(o in this._enumValues))throw new fc(`Expected value to be one of ${Object.keys(this._enumValues).map(s=>JSON.stringify(s)).join(", ")}, but found ${JSON.stringify(o)} instead.`,"");return o}catch(o){let s=o instanceof fc?o.path:"",l=`${s}|${o.message}`;return this._warningHistory[l]||(this._warningHistory[l]=!0,typeof console<"u"&&console.warn(zit(this._rootKey,s,o.message,this._defaultValue))),this._defaultValue}}};Kk=class{constructor(e,t,r){this.kind=e,this._styleExpression=t,this.isStateDependent=e!=="constant"&&!Xk(t.expression),this.globalStateRefs=wC(t.expression),this._globalState=r}evaluateWithoutErrorHandling(e,t,r,i,n,a){return this._globalState&&(e=V5(e,this._globalState)),this._styleExpression.evaluateWithoutErrorHandling(e,t,r,i,n,a)}evaluate(e,t,r,i,n,a){return this._globalState&&(e=V5(e,this._globalState)),this._styleExpression.evaluate(e,t,r,i,n,a)}},L7=class{constructor(e,t,r,i,n){this.kind=e,this.zoomStops=r,this._styleExpression=t,this.isStateDependent=e!=="camera"&&!Xk(t.expression),this.globalStateRefs=wC(t.expression),this.interpolationType=i,this._globalState=n}evaluateWithoutErrorHandling(e,t,r,i,n,a){return this._globalState&&(e=V5(e,this._globalState)),this._styleExpression.evaluateWithoutErrorHandling(e,t,r,i,n,a)}evaluate(e,t,r,i,n,a){return this._globalState&&(e=V5(e,this._globalState)),this._styleExpression.evaluate(e,t,r,i,n,a)}interpolationFactor(e,t,r){return this.interpolationType?Av.interpolationFactor(this.interpolationType,e,t,r):0}};Bit=class qit{constructor(t,r,i){this.isStateDependent=!1,this.globalStateRefs=new Set,this._globalState=null,Iit(r),this._parameters=t,this._specification=i,this._rootKey=r,this._defaultValue=Oit(i),this._warningHistory={};let n=Lit(this._parameters,this._specification);this.kind=n.kind,this.interpolationFactor=n.interpolationFactor,this.zoomStops=n.zoomStops,this.interpolationType=n.interpolationType,this._innerEvaluate=n.evaluate}evaluate(t,r){try{return this._innerEvaluate(t,r)}catch(i){let n=i instanceof Error?i.message:String(i),a=`|${n}`;return this._warningHistory[a]||(this._warningHistory[a]=!0,typeof console<"u"&&console.warn(zit(this._rootKey,"",n,this._defaultValue))),this._defaultValue}}static deserialize(t){return new qit(t._parameters,t._rootKey,t._specification)}static serialize(t){return{_parameters:t._parameters,_specification:t._specification,_rootKey:t._rootKey}}};Ebr={type:"boolean",default:!1,transition:!1,"property-type":"data-driven",expression:{interpolated:!1,parameters:["zoom","feature"]}};Bet={promoteId:zbr};qet=1114111,jbr=/^u\+(?:([0-9a-f]{1,6})(?:-([0-9a-f]{1,6}))?|([0-9a-f]{0,5}\?{1,6}))$/i;Oet={"*"(){return[]},array:jne,boolean:Dbr,number:xq,color:hie,constants:Git,enum:Jk,filter:Wne,function:Hit,layer:Xit,object:gp,source:Zit,light:Kit,sky:Jit,terrain:Qit,projection:Vbr,projectionDefinition:Ubr,string:dx,formatted:Ibr,resolvedImage:Rbr,padding:Bbr,numberArray:qbr,colorArray:Obr,variableAnchorOffsetCollection:Nbr,sprite:ent,state:tnt,fontFaces:rnt};yp.source=gv(yv(Zit)),yp.sprite=gv(yv(ent)),yp.glyphs=gv(yv(int)),yp.fontFaces=gv(yv(rnt)),yp.light=gv(yv(Kit)),yp.sky=gv(yv(Jit)),yp.terrain=gv(yv(Qit)),yp.state=gv(yv(tnt)),yp.layer=gv(yv(Xit)),yp.filter=gv(yv(Wne)),yp.paintProperty=gv(yv($it)),yp.layoutProperty=gv(yv(Yit));$br={type:"enum","property-type":"data-constant",expression:{interpolated:!1,parameters:["global-state"]},values:{visible:{},none:{}},transition:!1,default:"visible"},Ybr=class{constructor(e,t,r){this._rootKey=t,this._globalState=r,this.setValue(e)}evaluate(){var e;return(e=this._literalValue)!=null?e:this._compiledValue.evaluate({})}setValue(e){if(e==null||e==="visible"||e==="none"){this._literalValue=e==="none"?"none":"visible",this._compiledValue=void 0,this._globalStateRefs=new Set;return}let t=gq(e,this._rootKey,$br,this._globalState);if(t.result==="error")throw this._literalValue="visible",this._compiledValue=void 0,Error(t.value.map(r=>`${r.key}: ${r.message}`).join(", "));this._literalValue=void 0,this._compiledValue=t.value,this._globalStateRefs=wC(t.value.expression)}getGlobalStateRefs(){return this._globalStateRefs}};gd=yp,$ne=new Set(Object.keys(cn).filter(e=>e.startsWith("source_")).map(e=>e.slice(7).replaceAll("_","-")));pie=class ant{constructor(t,r,i){let n=this.cells=[];if(t instanceof ArrayBuffer){this.arrayBuffer=t;let o=new Int32Array(this.arrayBuffer);t=o[0],r=o[1],i=o[2],this.d=r+2*i;for(let u=0;u=c[d+0]&&n>=c[d+1])?(s[h]=!0,o.push(f[h])):s[h]=!1}}}_forEachCell(t,r,i,n,a,o,s,l){let u=this._convertToCellCoord(t),f=this._convertToCellCoord(r),c=this._convertToCellCoord(i),h=this._convertToCellCoord(n);for(let d=u;d<=c;d++)for(let p=f;p<=h;p++){let v=this.d*p+d;if((!l||l(this._convertFromCellCoord(d),this._convertFromCellCoord(p),this._convertFromCellCoord(d+1),this._convertFromCellCoord(p+1)))&&a.call(this,t,r,i,n,v,o,s,l))return}}_convertFromCellCoord(t){return(t-this.padding)/this.scale}_convertToCellCoord(t){return Math.max(0,Math.min(this.d-1,Math.floor(t*this.scale)+this.padding))}toArrayBuffer(){if(this.arrayBuffer)return this.arrayBuffer;let t=this.cells,r=3+this.cells.length+1+1,i=0;for(let o of this.cells)i+=o.length;let n=new Int32Array(r+i+this.keys.length+this.bboxes.length);n[0]=this.extent,n[1]=this.n,n[2]=this.padding;let a=r;for(let o=0;or?(this.lastIntegerZoom=r+1,this.lastIntegerZoomTime=t):this.lastFloorZoomthis.zoomHistory.lastIntegerZoom?{fromScale:2,toScale:1,t:t+(1-t)*r}:{fromScale:.5,toScale:1,t:1-(1-r)*t}}},Qk=class{constructor(e,t,r,i){this.property=e,this.value=t,this.expression=wbr(t===void 0?e.specification.default:t,r,e.specification,i)}isDataDriven(){return this.expression.kind==="source"||this.expression.kind==="composite"}getGlobalStateRefs(){return this.expression.globalStateRefs||new Set}readsGlobalState(e){let t=this.getGlobalStateRefs();return e.some(r=>t.has(r))}possiblyEvaluate(e,t,r){return this.property.possiblyEvaluate(this,e,t,r)}},vie=class{constructor(e,t,r){this.property=e,this.value=new Qk(e,void 0,t,r)}transitioned(e,t){return t.value===this.value?t:new Net(this.property,this.value,t,Hs({},e.transition,this.transition),e.now)}untransitioned(){return new Net(this.property,this.value,null,{},0)}},AC=class{constructor(e,t,r){this._properties=e,this._values=Object.create(e.defaultTransitionablePropertyValues),this._globalState=r,this._rootKey=t}_propertyRootKey(e){return`${this._rootKey}.${String(e)}`}hasProperty(e){return e in this._properties.defaultTransitionablePropertyValues}getValue(e){return md(this._values[e].value.value)}setValue(e,t){Object.hasOwn(this._values,e)||(this._values[e]=new vie(this._values[e].property,this._propertyRootKey(e),this._globalState)),this._values[e].value=new Qk(this._values[e].property,t===null?void 0:md(t),this._propertyRootKey(e),this._globalState)}setValues(e){for(let t in e){let r=e[t];t.endsWith("-transition")?this.setTransition(t.slice(0,-11),r):M1(this._values[t].value.value,r)||this.setValue(t,r)}}getTransition(e){return md(this._values[e].transition)}setTransition(e,t){Object.hasOwn(this._values,e)||(this._values[e]=new vie(this._values[e].property,this._propertyRootKey(e),this._globalState)),this._values[e].transition=md(t)||void 0}retainPriorGlobalState(e,t,r){for(let i of Object.keys(r._values))for(let n=r._values[i];n;n=n.prior){let{value:a}=n;a.property.specification.transition&&!a.isDataDriven()&&a.expression._globalState===this._globalState&&a.readsGlobalState(e)&&(n.value=new Qk(a.property,a.value,this._propertyRootKey(i),t))}}applyGlobalStateChange(e,t,r,i){this.retainPriorGlobalState(e,t,r);let n=!1;for(let a of Object.keys(this._values)){let{value:o}=this._values[a];o.readsGlobalState(e)&&(this.setValue(a,o.value),n=!0)}return n?this.transitioned(i,r):r}serialize(){let e={};for(let t of Object.keys(this._values)){let r=this.getValue(t);r!==void 0&&(e[t]=r);let i=this.getTransition(t);i!==void 0&&(e[`${t}-transition`]=i)}return e}transitioned(e,t){let r=new Vet(this._properties);for(let i of Object.keys(this._values))r._values[i]=this._values[i].transitioned(e,t._values[i]);return r}untransitioned(){let e=new Vet(this._properties);for(let t of Object.keys(this._values))e._values[t]=this._values[t].untransitioned();return e}},Net=class{constructor(e,t,r,i,n){this.property=e,this.value=t,this.begin=n+i.delay||0,this.end=this.begin+i.duration||0,e.specification.transition&&(i.delay||i.duration)&&(this.prior=r)}possiblyEvaluate(e,t,r){let i=e.now||0,n=this.value.possiblyEvaluate(e,t,r),a=this.prior;if(!a)return n;if(i>this.end||this.value.isDataDriven())return this.prior=null,n;if(ii.zoomHistory.lastIntegerZoom?{from:e,to:t}:{from:r,to:t}}interpolate(e){return e}},unt=class{constructor(e,t){this.specification=e,this.name=t}possiblyEvaluate(e,t,r,i){if(e.value!==void 0){if(e.expression.kind==="constant"){let n=e.expression.evaluate(t,null,{},r,i);return this._calculate(n,n,n,t)}return this._calculate(e.expression.evaluate(new Xu(Math.floor(t.zoom-1),t)),e.expression.evaluate(new Xu(Math.floor(t.zoom),t)),e.expression.evaluate(new Xu(Math.floor(t.zoom+1),t)),t)}}_calculate(e,t,r,i){return i.zoom>i.zoomHistory.lastIntegerZoom?{from:e,to:t}:{from:r,to:t}}interpolate(e){return e}},wq=class{constructor(e,t){this.specification=e,this.name=t}possiblyEvaluate(e,t,r,i){return!!e.expression.evaluate(t,null,{},r,i)}interpolate(){return!1}},Nh=class{constructor(e){this.properties=e,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},this.overridableProperties=[];for(let t in e){let r=e[t];r.specification.overridable&&this.overridableProperties.push(t);let i=this.defaultPropertyValues[t]=new Qk(r,void 0,r.name,void 0),n=this.defaultTransitionablePropertyValues[t]=new vie(r,r.name,void 0);this.defaultTransitioningPropertyValues[t]=n.untransitioned(),this.defaultPossiblyEvaluatedValues[t]=i.possiblyEvaluate({})}}};As("DataDrivenProperty",al),As("DataConstantProperty",ms),As("CrossFadedDataDrivenProperty",eC),As("CrossFadedProperty",unt),As("ColorRampProperty",wq);Get=" is a PAINT property not a LAYOUT property. Use get/setPaintProperty instead?",Yre=" is a LAYOUT property not a PAINT property. Use get/setLayoutProperty instead?",C1=class extends ih{constructor(e,t,r){if(super(),this.id=e.id,this.type=e.type,this._globalState=r,this._featureFilter={filter:()=>!0,needGeometry:!1,getGlobalStateRefs:()=>new Set},this._visibilityExpression=Xbr(this.visibility,`layers[${this.id}].layout.visibility`,r),e.type!=="custom"&&(this.metadata=e.metadata,this.minzoom=e.minzoom,this.maxzoom=e.maxzoom,e.type!=="background"&&(this.source=e.source,this.sourceLayer=e["source-layer"],this.filter=e.filter,this._featureFilter=U5(e.filter,`layers[${this.id}].filter`,r)),t.layout&&(this._unevaluatedLayout=new Jbr(t.layout,`layers[${this.id}].layout`,r)),t.paint)){this._transitionablePaint=new AC(t.paint,`layers[${this.id}].paint`,r);for(let i in e.paint)this.setPaintProperty(i,e.paint[i],{validate:!1});for(let i in e.layout)this.setLayoutProperty(i,e.layout[i],{validate:!1});this._transitioningPaint=this._transitionablePaint.untransitioned(),this.paint=new _q(t.paint)}}setFilter(e){this.filter=e,this._featureFilter=U5(e,`layers[${this.id}].filter`,this._globalState)}getCrossfadeParameters(){return this._crossfadeParameters}getLayoutProperty(e){var t;if(e==="visibility")return this.visibility;if((t=this._transitionablePaint)!=null&&t.hasProperty(e))throw Error(e+Get);if(!this._unevaluatedLayout)throw Error(`Cannot get layout property "${e}" on layer type "${this.type}" which has no layout properties.`);return this._unevaluatedLayout.getValue(e)}getLayoutAffectingGlobalStateRefs(){let e=new Set;for(let t of this._visibilityExpression.getGlobalStateRefs())e.add(t);if(this._unevaluatedLayout)for(let t in this._unevaluatedLayout._values){let r=this._unevaluatedLayout._values[t];for(let i of r.getGlobalStateRefs())e.add(i)}for(let t of this._featureFilter.getGlobalStateRefs())e.add(t);return e}getPaintAffectingGlobalStateRefs(){var t;let e=new globalThis.Map;if(this._transitionablePaint)for(let r in this._transitionablePaint._values){let i=this._transitionablePaint._values[r].value;for(let n of i.getGlobalStateRefs()){let a=(t=e.get(n))!=null?t:[];a.push({name:r,value:i.value}),e.set(n,a)}}return e}getVisibilityAffectingGlobalStateRefs(){return this._visibilityExpression.getGlobalStateRefs()}setLayoutProperty(e,t,r={}){var i;if(e==="visibility"){this.visibility=t,this._visibilityExpression.setValue(t),this.recalculateVisibility();return}if((i=this._transitionablePaint)!=null&&i.hasProperty(e)){this.fire(new rl(Error(e+Get)));return}t!=null&&this._validate(gd.layoutProperty,`layers.${this.id}.layout.${e}`,e,t,r)||this._unevaluatedLayout.setValue(e,t)}getPaintProperty(e){var t,r;if(e.endsWith("-transition")){let i=e.slice(0,-11);if(i==="visibility"||(t=this._unevaluatedLayout)!=null&&t.hasProperty(i))throw Error(e+Yre);return this._transitionablePaint.getTransition(i)}if(e==="visibility"||(r=this._unevaluatedLayout)!=null&&r.hasProperty(e))throw Error(e+Yre);return this._transitionablePaint.getValue(e)}setPaintProperty(e,t,r={}){var i;if(e==="visibility"||(i=this._unevaluatedLayout)!=null&&i.hasProperty(e))return this.fire(new rl(Error(e+Yre))),!1;if(t!=null&&this._validate(gd.paintProperty,`layers.${this.id}.paint.${e}`,e,t,r))return!1;if(e.endsWith("-transition"))return this._transitionablePaint.setTransition(e.slice(0,-11),t||void 0),!1;{let n=this._transitionablePaint._values[e],a=n.property.specification["property-type"]==="cross-faded-data-driven",o=n.value.isDataDriven(),s=n.value;this._transitionablePaint.setValue(e,t),this._handleSpecialPaintPropertyUpdate(e);let l=this._transitionablePaint._values[e].value;return l.isDataDriven()||o||a||this._handleOverridablePaintPropertyUpdate(e,s,l)}}_handleSpecialPaintPropertyUpdate(e){}_handleOverridablePaintPropertyUpdate(e,t,r){return!1}isHidden(e=this.minzoom,t=!1){return this.minzoom&&e<(t?Math.floor(this.minzoom):this.minzoom)||this.maxzoom&&e>=this.maxzoom?!0:this._evaluatedVisibility==="none"}updateTransitions(e){this._transitioningPaint=this._transitionablePaint.transitioned(e,this._transitioningPaint)}retainPriorGlobalState(e,t){var r;(r=this._transitionablePaint)==null||r.retainPriorGlobalState(e,t,this._transitioningPaint)}hasTransition(){return this._transitioningPaint.hasTransition()}recalculateVisibility(){this._evaluatedVisibility=this._visibilityExpression.evaluate()}recalculate(e,t){e.getCrossfadeParameters&&(this._crossfadeParameters=e.getCrossfadeParameters()),this._unevaluatedLayout&&(this.layout=this._unevaluatedLayout.possiblyEvaluate(e,void 0,t)),this.paint=this._transitioningPaint.possiblyEvaluate(e,void 0,t)}serialize(){var t,r;let e={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:(t=this._unevaluatedLayout)==null?void 0:t.serialize(),paint:(r=this._transitionablePaint)==null?void 0:r.serialize()};return this.visibility&&(e.layout||(e.layout={}),e.layout.visibility=this.visibility),wne(e,(i,n)=>i!==void 0&&!(n==="layout"&&!Object.keys(i).length)&&!(n==="paint"&&!Object.keys(i).length))}_validate(e,t,r,i,n={}){return K5(this,e,{key:t,layerType:this.type,objectKey:r,value:i},n)}is3D(){return!1}isTileClipped(){return!1}hasOffscreenPass(){return!1}resize(){}isStateDependent(){for(let e in this.paint._values){let t=this.paint.get(e);if(t instanceof _v&&N5(t.property.specification)&&(t.value.kind==="source"||t.value.kind==="composite")&&t.value.isStateDependent)return!0}return!1}},Qbr=()=>Het||(Het=new Nh({"raster-opacity":new ms(cn.paint_raster["raster-opacity"],"raster-opacity"),"raster-hue-rotate":new ms(cn.paint_raster["raster-hue-rotate"],"raster-hue-rotate"),"raster-brightness-min":new ms(cn.paint_raster["raster-brightness-min"],"raster-brightness-min"),"raster-brightness-max":new ms(cn.paint_raster["raster-brightness-max"],"raster-brightness-max"),"raster-saturation":new ms(cn.paint_raster["raster-saturation"],"raster-saturation"),"raster-contrast":new ms(cn.paint_raster["raster-contrast"],"raster-contrast"),resampling:new ms(cn.paint_raster.resampling,"resampling"),"raster-resampling":new ms(cn.paint_raster["raster-resampling"],"raster-resampling"),"raster-fade-duration":new ms(cn.paint_raster["raster-fade-duration"],"raster-fade-duration")})),e_r={get paint(){return Qbr()}},Aq=e=>e.type==="raster",t_r=class extends C1{constructor(e,t){super(e,e_r,t)}},r_r={Int8:Int8Array,Uint8:Uint8Array,Int16:Int16Array,Uint16:Uint16Array,Int32:Int32Array,Uint32:Uint32Array,Float32:Float32Array},TC=class{constructor(e,t){this._structArray=e,this._pos1=t*this.size,this._pos2=this._pos1/2,this._pos4=this._pos1/4,this._pos8=this._pos1/8}},xc=class{constructor(){this.isTransferred=!1,this.capacity=-1,this.resize(0)}static serialize(e,t){return e._trim(),t&&(e.isTransferred=!0,t.push(e.arrayBuffer)),{length:e.length,arrayBuffer:e.arrayBuffer}}static deserialize(e){let t=Object.create(this.prototype);return t.arrayBuffer=e.arrayBuffer,t.length=e.length,t.capacity=e.arrayBuffer.byteLength/t.bytesPerElement,t._refreshViews(),t}_trim(){this.length!==this.capacity&&(this.capacity=this.length,this.arrayBuffer=this.arrayBuffer.slice(0,this.length*this.bytesPerElement),this._refreshViews())}clear(){this.length=0}resize(e){this.reserve(e),this.length=e}reserve(e){if(e>this.capacity){this.capacity=Math.max(e,Math.floor(this.capacity*5),128),this.arrayBuffer=new ArrayBuffer(this.capacity*this.bytesPerElement);let t=this.uint8;this._refreshViews(),t&&this.uint8.set(t)}}_refreshViews(){throw Error("_refreshViews() must be implemented by each concrete StructArray layout")}freeBufferAfterUpload(){this.arrayBuffer=new ArrayBuffer(0),this._refreshViews()}};tC=class extends xc{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,t){let r=this.length;return this.resize(r+1),this.emplace(r,e,t)}emplace(e,t,r){let i=e*2;return this.int16[i+0]=t,this.int16[i+1]=r,e}};tC.prototype.bytesPerElement=4,As("StructArrayLayout2i4",tC);I7=class extends xc{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,t,r){let i=this.length;return this.resize(i+1),this.emplace(i,e,t,r)}emplace(e,t,r,i){let n=e*3;return this.int16[n+0]=t,this.int16[n+1]=r,this.int16[n+2]=i,e}};I7.prototype.bytesPerElement=6,As("StructArrayLayout3i6",I7);mie=class extends xc{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,t,r,i){let n=this.length;return this.resize(n+1),this.emplace(n,e,t,r,i)}emplace(e,t,r,i,n){let a=e*4;return this.int16[a+0]=t,this.int16[a+1]=r,this.int16[a+2]=i,this.int16[a+3]=n,e}};mie.prototype.bytesPerElement=8,As("StructArrayLayout4i8",mie);yie=class extends xc{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,t,r,i,n,a){let o=this.length;return this.resize(o+1),this.emplace(o,e,t,r,i,n,a)}emplace(e,t,r,i,n,a,o){let s=e*6;return this.int16[s+0]=t,this.int16[s+1]=r,this.int16[s+2]=i,this.int16[s+3]=n,this.int16[s+4]=a,this.int16[s+5]=o,e}};yie.prototype.bytesPerElement=12,As("StructArrayLayout2i4i12",yie);gie=class extends xc{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,t,r,i,n,a){let o=this.length;return this.resize(o+1),this.emplace(o,e,t,r,i,n,a)}emplace(e,t,r,i,n,a,o){let s=e*4,l=e*8;return this.int16[s+0]=t,this.int16[s+1]=r,this.uint8[l+4]=i,this.uint8[l+5]=n,this.uint8[l+6]=a,this.uint8[l+7]=o,e}};gie.prototype.bytesPerElement=8,As("StructArrayLayout2i4ub8",gie);rC=class extends xc{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,t){let r=this.length;return this.resize(r+1),this.emplace(r,e,t)}emplace(e,t,r){let i=e*2;return this.float32[i+0]=t,this.float32[i+1]=r,e}};rC.prototype.bytesPerElement=8,As("StructArrayLayout2f8",rC);xie=class extends xc{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,t,r,i,n,a,o,s,l,u){let f=this.length;return this.resize(f+1),this.emplace(f,e,t,r,i,n,a,o,s,l,u)}emplace(e,t,r,i,n,a,o,s,l,u,f){let c=e*10;return this.uint16[c+0]=t,this.uint16[c+1]=r,this.uint16[c+2]=i,this.uint16[c+3]=n,this.uint16[c+4]=a,this.uint16[c+5]=o,this.uint16[c+6]=s,this.uint16[c+7]=l,this.uint16[c+8]=u,this.uint16[c+9]=f,e}};xie.prototype.bytesPerElement=20,As("StructArrayLayout10ui20",xie);bie=class extends xc{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,t,r,i,n,a,o,s){let l=this.length;return this.resize(l+1),this.emplace(l,e,t,r,i,n,a,o,s)}emplace(e,t,r,i,n,a,o,s,l){let u=e*8;return this.uint16[u+0]=t,this.uint16[u+1]=r,this.uint16[u+2]=i,this.uint16[u+3]=n,this.uint16[u+4]=a,this.uint16[u+5]=o,this.uint16[u+6]=s,this.uint16[u+7]=l,e}};bie.prototype.bytesPerElement=16,As("StructArrayLayout8ui16",bie);_ie=class extends xc{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,t,r,i,n,a,o,s,l,u,f,c,h){let d=this.length;return this.resize(d+1),this.emplace(d,e,t,r,i,n,a,o,s,l,u,f,c,h)}emplace(e,t,r,i,n,a,o,s,l,u,f,c,h,d){let p=e*14,v=e*7;return this.int16[p+0]=t,this.int16[p+1]=r,this.int16[p+2]=i,this.int16[p+3]=n,this.uint16[p+4]=a,this.uint16[p+5]=o,this.uint16[p+6]=s,this.uint16[p+7]=l,this.int16[p+8]=u,this.int16[p+9]=f,this.int16[p+10]=c,this.int16[p+11]=h,this.float32[v+6]=d,e}};_ie.prototype.bytesPerElement=28,As("StructArrayLayout4i4ui4i1f28",_ie);wie=class extends xc{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,t,r){let i=this.length;return this.resize(i+1),this.emplace(i,e,t,r)}emplace(e,t,r,i){let n=e*3;return this.float32[n+0]=t,this.float32[n+1]=r,this.float32[n+2]=i,e}};wie.prototype.bytesPerElement=12,As("StructArrayLayout3f12",wie);Aie=class extends xc{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)}emplaceBack(e){let t=this.length;return this.resize(t+1),this.emplace(t,e)}emplace(e,t){let r=e*1;return this.uint32[r+0]=t,e}};Aie.prototype.bytesPerElement=4,As("StructArrayLayout1ul4",Aie);Tie=class extends xc{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,t,r,i,n,a,o,s,l){let u=this.length;return this.resize(u+1),this.emplace(u,e,t,r,i,n,a,o,s,l)}emplace(e,t,r,i,n,a,o,s,l,u){let f=e*10,c=e*5;return this.int16[f+0]=t,this.int16[f+1]=r,this.int16[f+2]=i,this.int16[f+3]=n,this.int16[f+4]=a,this.int16[f+5]=o,this.uint32[c+3]=s,this.uint16[f+8]=l,this.uint16[f+9]=u,e}};Tie.prototype.bytesPerElement=20,As("StructArrayLayout6i1ul2ui20",Tie);Mie=class extends xc{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,t,r,i,n,a){let o=this.length;return this.resize(o+1),this.emplace(o,e,t,r,i,n,a)}emplace(e,t,r,i,n,a,o){let s=e*6;return this.int16[s+0]=t,this.int16[s+1]=r,this.int16[s+2]=i,this.int16[s+3]=n,this.int16[s+4]=a,this.int16[s+5]=o,e}};Mie.prototype.bytesPerElement=12,As("StructArrayLayout2i2i2i12",Mie);Sie=class extends xc{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,t,r,i,n){let a=this.length;return this.resize(a+1),this.emplace(a,e,t,r,i,n)}emplace(e,t,r,i,n,a){let o=e*4,s=e*8;return this.float32[o+0]=t,this.float32[o+1]=r,this.float32[o+2]=i,this.int16[s+6]=n,this.int16[s+7]=a,e}};Sie.prototype.bytesPerElement=16,As("StructArrayLayout2f1f2i16",Sie);Eie=class extends xc{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,t,r,i,n,a){let o=this.length;return this.resize(o+1),this.emplace(o,e,t,r,i,n,a)}emplace(e,t,r,i,n,a,o){let s=e*16,l=e*4,u=e*8;return this.uint8[s+0]=t,this.uint8[s+1]=r,this.float32[l+1]=i,this.float32[l+2]=n,this.int16[u+6]=a,this.int16[u+7]=o,e}};Eie.prototype.bytesPerElement=16,As("StructArrayLayout2ub2f2i16",Eie);R7=class extends xc{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,t,r){let i=this.length;return this.resize(i+1),this.emplace(i,e,t,r)}emplace(e,t,r,i){let n=e*3;return this.uint16[n+0]=t,this.uint16[n+1]=r,this.uint16[n+2]=i,e}};R7.prototype.bytesPerElement=6,As("StructArrayLayout3ui6",R7);kie=class extends xc{_refreshViews(){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)}emplaceBack(e,t,r,i,n,a,o,s,l,u,f,c,h,d,p,v,y,m){let w=this.length;return this.resize(w+1),this.emplace(w,e,t,r,i,n,a,o,s,l,u,f,c,h,d,p,v,y,m)}emplace(e,t,r,i,n,a,o,s,l,u,f,c,h,d,p,v,y,m,w){let _=e*26,b=e*13,M=e*52;return this.int16[_+0]=t,this.int16[_+1]=r,this.uint16[_+2]=i,this.uint16[_+3]=n,this.uint32[b+2]=a,this.uint32[b+3]=o,this.uint32[b+4]=s,this.uint16[_+10]=l,this.uint16[_+11]=u,this.uint16[_+12]=f,this.float32[b+7]=c,this.float32[b+8]=h,this.uint8[M+36]=d,this.uint8[M+37]=p,this.uint8[M+38]=v,this.uint32[b+10]=y,this.int16[_+22]=m,this.float32[b+12]=w,e}};kie.prototype.bytesPerElement=52,As("StructArrayLayout2i2ui3ul3ui2f3ub1ul1i1f52",kie);Cie=class extends xc{_refreshViews(){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)}emplaceBack(e,t,r,i,n,a,o,s,l,u,f,c,h,d,p,v,y,m,w,_,b,M,x,A,T,g,E,S,C){let k=this.length;return this.resize(k+1),this.emplace(k,e,t,r,i,n,a,o,s,l,u,f,c,h,d,p,v,y,m,w,_,b,M,x,A,T,g,E,S,C)}emplace(e,t,r,i,n,a,o,s,l,u,f,c,h,d,p,v,y,m,w,_,b,M,x,A,T,g,E,S,C,k){let D=e*34,L=e*17;return this.int16[D+0]=t,this.int16[D+1]=r,this.int16[D+2]=i,this.int16[D+3]=n,this.int16[D+4]=a,this.int16[D+5]=o,this.int16[D+6]=s,this.int16[D+7]=l,this.uint16[D+8]=u,this.uint16[D+9]=f,this.uint16[D+10]=c,this.uint16[D+11]=h,this.uint16[D+12]=d,this.uint16[D+13]=p,this.uint16[D+14]=v,this.uint16[D+15]=y,this.uint16[D+16]=m,this.uint16[D+17]=w,this.uint16[D+18]=_,this.uint16[D+19]=b,this.uint16[D+20]=M,this.uint16[D+21]=x,this.uint16[D+22]=A,this.uint32[L+12]=T,this.float32[L+13]=g,this.float32[L+14]=E,this.uint16[D+30]=S,this.uint16[D+31]=C,this.float32[L+16]=k,e}};Cie.prototype.bytesPerElement=68,As("StructArrayLayout8i15ui1ul2f2ui1f68",Cie);B7=class extends xc{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e){let t=this.length;return this.resize(t+1),this.emplace(t,e)}emplace(e,t){let r=e*1;return this.float32[r+0]=t,e}};B7.prototype.bytesPerElement=4,As("StructArrayLayout1f4",B7);Die=class extends xc{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,t,r){let i=this.length;return this.resize(i+1),this.emplace(i,e,t,r)}emplace(e,t,r,i){let n=e*6,a=e*3;return this.uint16[n+0]=t,this.float32[a+1]=r,this.float32[a+2]=i,e}};Die.prototype.bytesPerElement=12,As("StructArrayLayout1ui2f12",Die);Fie=class extends xc{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,t,r){let i=this.length;return this.resize(i+1),this.emplace(i,e,t,r)}emplace(e,t,r,i){let n=e*2,a=e*4;return this.uint32[n+0]=t,this.uint16[a+2]=r,this.uint16[a+3]=i,e}};Fie.prototype.bytesPerElement=8,As("StructArrayLayout1ul2ui8",Fie);Lie=class extends xc{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,t){let r=this.length;return this.resize(r+1),this.emplace(r,e,t)}emplace(e,t,r){let i=e*2;return this.uint16[i+0]=t,this.uint16[i+1]=r,e}};Lie.prototype.bytesPerElement=4,As("StructArrayLayout2ui4",Lie);Pie=class extends xc{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e){let t=this.length;return this.resize(t+1),this.emplace(t,e)}emplace(e,t){let r=e*1;return this.uint16[r+0]=t,e}};Pie.prototype.bytesPerElement=2,As("StructArrayLayout1ui2",Pie);zie=class extends xc{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,t,r,i){let n=this.length;return this.resize(n+1),this.emplace(n,e,t,r,i)}emplace(e,t,r,i,n){let a=e*4;return this.float32[a+0]=t,this.float32[a+1]=r,this.float32[a+2]=i,this.float32[a+3]=n,e}};zie.prototype.bytesPerElement=16,As("StructArrayLayout4f16",zie);fnt=class extends TC{get anchorPointX(){return this._structArray.int16[this._pos2+0]}get anchorPointY(){return this._structArray.int16[this._pos2+1]}get x1(){return this._structArray.int16[this._pos2+2]}get y1(){return this._structArray.int16[this._pos2+3]}get x2(){return this._structArray.int16[this._pos2+4]}get y2(){return this._structArray.int16[this._pos2+5]}get featureIndex(){return this._structArray.uint32[this._pos4+3]}get sourceLayerIndex(){return this._structArray.uint16[this._pos2+8]}get bucketIndex(){return this._structArray.uint16[this._pos2+9]}get anchorPoint(){return new Zr(this.anchorPointX,this.anchorPointY)}};fnt.prototype.size=20;Zne=class extends Tie{get(e){return new fnt(this,e)}};As("CollisionBoxArray",Zne);cnt=class extends TC{get anchorX(){return this._structArray.int16[this._pos2+0]}get anchorY(){return this._structArray.int16[this._pos2+1]}get glyphStartIndex(){return this._structArray.uint16[this._pos2+2]}get numGlyphs(){return this._structArray.uint16[this._pos2+3]}get vertexStartIndex(){return this._structArray.uint32[this._pos4+2]}get lineStartIndex(){return this._structArray.uint32[this._pos4+3]}get lineLength(){return this._structArray.uint32[this._pos4+4]}get segment(){return this._structArray.uint16[this._pos2+10]}get lowerSize(){return this._structArray.uint16[this._pos2+11]}get upperSize(){return this._structArray.uint16[this._pos2+12]}get lineOffsetX(){return this._structArray.float32[this._pos4+7]}get lineOffsetY(){return this._structArray.float32[this._pos4+8]}get writingMode(){return this._structArray.uint8[this._pos1+36]}get placedOrientation(){return this._structArray.uint8[this._pos1+37]}set placedOrientation(e){this._structArray.uint8[this._pos1+37]=e}get hidden(){return this._structArray.uint8[this._pos1+38]}set hidden(e){this._structArray.uint8[this._pos1+38]=e}get crossTileID(){return this._structArray.uint32[this._pos4+10]}set crossTileID(e){this._structArray.uint32[this._pos4+10]=e}get associatedIconIndex(){return this._structArray.int16[this._pos2+22]}get heightOffset(){return this._structArray.float32[this._pos4+12]}};cnt.prototype.size=52;hnt=class extends kie{get(e){return new cnt(this,e)}};As("PlacedSymbolArray",hnt);dnt=class extends TC{get anchorX(){return this._structArray.int16[this._pos2+0]}get anchorY(){return this._structArray.int16[this._pos2+1]}get rightJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+2]}get centerJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+3]}get leftJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+4]}get verticalPlacedTextSymbolIndex(){return this._structArray.int16[this._pos2+5]}get placedIconSymbolIndex(){return this._structArray.int16[this._pos2+6]}get verticalPlacedIconSymbolIndex(){return this._structArray.int16[this._pos2+7]}get key(){return this._structArray.uint16[this._pos2+8]}get textBoxStartIndex(){return this._structArray.uint16[this._pos2+9]}get textBoxEndIndex(){return this._structArray.uint16[this._pos2+10]}get verticalTextBoxStartIndex(){return this._structArray.uint16[this._pos2+11]}get verticalTextBoxEndIndex(){return this._structArray.uint16[this._pos2+12]}get iconBoxStartIndex(){return this._structArray.uint16[this._pos2+13]}get iconBoxEndIndex(){return this._structArray.uint16[this._pos2+14]}get verticalIconBoxStartIndex(){return this._structArray.uint16[this._pos2+15]}get verticalIconBoxEndIndex(){return this._structArray.uint16[this._pos2+16]}get featureIndex(){return this._structArray.uint16[this._pos2+17]}get numHorizontalGlyphVertices(){return this._structArray.uint16[this._pos2+18]}get numVerticalGlyphVertices(){return this._structArray.uint16[this._pos2+19]}get numIconVertices(){return this._structArray.uint16[this._pos2+20]}get numVerticalIconVertices(){return this._structArray.uint16[this._pos2+21]}get useRuntimeCollisionCircles(){return this._structArray.uint16[this._pos2+22]}get crossTileID(){return this._structArray.uint32[this._pos4+12]}set crossTileID(e){this._structArray.uint32[this._pos4+12]=e}get textBoxScale(){return this._structArray.float32[this._pos4+13]}get collisionCircleDiameter(){return this._structArray.float32[this._pos4+14]}get textAnchorOffsetStartIndex(){return this._structArray.uint16[this._pos2+30]}get textAnchorOffsetEndIndex(){return this._structArray.uint16[this._pos2+31]}get heightOffset(){return this._structArray.float32[this._pos4+16]}};dnt.prototype.size=68;pnt=class extends Cie{get(e){return new dnt(this,e)}};As("SymbolInstanceArray",pnt);vnt=class extends B7{getoffsetX(e){return this.float32[e*1+0]}};As("GlyphOffsetArray",vnt);mnt=class extends I7{getx(e){return this.int16[e*3+0]}gety(e){return this.int16[e*3+1]}gettileUnitDistanceFromAnchor(e){return this.int16[e*3+2]}};As("SymbolLineVertexArray",mnt);ynt=class extends TC{get textAnchor(){return this._structArray.uint16[this._pos2+0]}get textOffset0(){return this._structArray.float32[this._pos4+1]}get textOffset1(){return this._structArray.float32[this._pos4+2]}};ynt.prototype.size=12;gnt=class extends Die{get(e){return new ynt(this,e)}};As("TextAnchorOffsetArray",gnt);xnt=class extends TC{get featureIndex(){return this._structArray.uint32[this._pos4+0]}get sourceLayerIndex(){return this._structArray.uint16[this._pos2+2]}get bucketIndex(){return this._structArray.uint16[this._pos2+3]}};xnt.prototype.size=8;bnt=class extends Fie{get(e){return new xnt(this,e)}};As("FeatureIndexArray",bnt);rg=class extends tC{},_nt=class extends I7{},wnt=class extends mie{},n_r=class extends tC{},a_r=class extends tC{},o_r=class extends yie{},s_r=class extends gie{},l_r=class extends rC{},b5=class extends xie{},Wet=class extends bie{},u_r=class extends _ie{},f_r=class extends wie{},c_r=class extends Aie{},$et=class extends Mie{},Ant=class extends Sie{},h_r=class extends Eie{},Tnt=class extends R7{},D1=class extends R7{},Iie=class extends Lie{},Mnt=class extends Pie{},Rie=cc([{name:"a_pos",components:2,type:"Int16"}],4),d_r=Rie.members;Rie.size,Rie.alignment;tc=class M5{constructor(t=[]){this._forceNewSegmentOnNextPrepare=!1,this.segments=t}prepareSegment(t,r,i,n){let a=this.segments[this.segments.length-1];return t>M5.MAX_VERTEX_ARRAY_LENGTH&&lu(`Max vertices per segment is ${M5.MAX_VERTEX_ARRAY_LENGTH}: bucket requested ${t}. Consider using the \`fillLargeMeshArrays\` function if you require meshes with more than ${M5.MAX_VERTEX_ARRAY_LENGTH} vertices.`),this._forceNewSegmentOnNextPrepare||!a||a.vertexLength+t>M5.MAX_VERTEX_ARRAY_LENGTH||a.sortKey!==n?this.createNewSegment(r,i,n):a}createNewSegment(t,r,i){let n={vertexOffset:t.length,primitiveOffset:r.length,vertexLength:0,primitiveLength:0,vaos:{}};return i!==void 0&&(n.sortKey=i),this._forceNewSegmentOnNextPrepare=!1,this.segments.push(n),n}getOrCreateLatestSegment(t,r,i){return this.prepareSegment(0,t,r,i)}forceNewSegmentOnNextPrepare(){this._forceNewSegmentOnNextPrepare=!0}get(){return this.segments}destroy(){for(let t of this.segments)for(let r in t.vaos)t.vaos[r].destroy()}static simpleSegment(t,r,i,n){return new M5([{vertexOffset:t,primitiveOffset:r,vertexLength:i,primitiveLength:n,vaos:{},sortKey:0}])}};tc.MAX_VERTEX_ARRAY_LENGTH=2**16-1,As("SegmentVector",tc);p_r=cc([{name:"a_pattern_from",components:4,type:"Uint16"},{name:"a_pattern_to",components:4,type:"Uint16"},{name:"a_pixel_ratio_from",components:1,type:"Uint16"},{name:"a_pixel_ratio_to",components:1,type:"Uint16"}]),v_r=cc([{name:"a_dasharray_from",components:4,type:"Uint16"},{name:"a_dasharray_to",components:4,type:"Uint16"}]),m_r=hne(((e,t)=>{function r(i,n){for(var a=i.length&3,o=i.length-a,s=n,l,u=3432918353,f=461845907,c,h=0;h>>16)*u&65535)<<16)&4294967295,c=c<<15|c>>>17,c=(c&65535)*f+(((c>>>16)*f&65535)<<16)&4294967295,s^=c,s=s<<13|s>>>19,l=(s&65535)*5+(((s>>>16)*5&65535)<<16)&4294967295,s=(l&65535)+27492+(((l>>>16)+58964&65535)<<16);switch(c=0,a){case 3:c^=(i.charCodeAt(h+2)&255)<<16;case 2:c^=(i.charCodeAt(h+1)&255)<<8;case 1:c^=i.charCodeAt(h)&255,c=(c&65535)*u+(((c>>>16)*u&65535)<<16)&4294967295,c=c<<15|c>>>17,c=(c&65535)*f+(((c>>>16)*f&65535)<<16)&4294967295,s^=c}return s^=i.length,s^=s>>>16,s=(s&65535)*2246822507+(((s>>>16)*2246822507&65535)<<16)&4294967295,s^=s>>>13,s=(s&65535)*3266489909+(((s>>>16)*3266489909&65535)<<16)&4294967295,s^=s>>>16,s>>>0}t!==void 0&&(t.exports=r)})),y_r=hne(((e,t)=>{function r(i,n){for(var a=i.length,o=n^a,s=0,l;a>=4;)l=i.charCodeAt(s)&255|(i.charCodeAt(++s)&255)<<8|(i.charCodeAt(++s)&255)<<16|(i.charCodeAt(++s)&255)<<24,l=(l&65535)*1540483477+(((l>>>16)*1540483477&65535)<<16),l^=l>>>24,l=(l&65535)*1540483477+(((l>>>16)*1540483477&65535)<<16),o=(o&65535)*1540483477+(((o>>>16)*1540483477&65535)<<16)^l,a-=4,++s;switch(a){case 3:o^=(i.charCodeAt(s+2)&255)<<16;case 2:o^=(i.charCodeAt(s+1)&255)<<8;case 1:o^=i.charCodeAt(s)&255,o=(o&65535)*1540483477+(((o>>>16)*1540483477&65535)<<16)}return o^=o>>>13,o=(o&65535)*1540483477+(((o>>>16)*1540483477&65535)<<16),o^=o>>>15,o>>>0}t.exports=r})),q7=F2r(hne(((e,t)=>{var r=m_r(),i=y_r();t.exports=r,t.exports.murmur3=r,t.exports.murmur2=i}))(),1),Snt=class Ent{constructor(){this.ids=[],this.positions=[],this.indexed=!1}add(t,r,i,n){this.ids.push(Xet(t)),this.positions.push(r,i,n)}getPositions(t){if(!this.indexed)throw Error("Trying to get index, but feature positions are not indexed");let r=Xet(t),i=0,n=this.ids.length-1;for(;i>1;this.ids[o]>=r?n=o:i=o+1}let a=[];for(;this.ids[i]===r;){let o=this.positions[3*i],s=this.positions[3*i+1],l=this.positions[3*i+2];a.push({index:o,start:s,end:l}),i++}return a}static serialize(t,r){let i=new Float64Array(t.ids),n=new Uint32Array(t.positions);return Bie(i,n,0,i.length-1),r&&r.push(i.buffer,n.buffer),{ids:i,positions:n}}static deserialize(t){let r=new Ent;return r.ids=t.ids,r.positions=t.positions,r.indexed=!0,r}};As("FeaturePositionMap",Snt);ig=class{constructor(e,t){this.gl=e.gl,this.location=t}},il=class extends ig{constructor(e,t){super(e,t),this.current=0}set(e){this.current!==e&&(this.current=e,this.gl.uniform1i(this.location,e))}},gs=class extends ig{constructor(e,t){super(e,t),this.current=0}set(e){this.current!==e&&(this.current=e,this.gl.uniform1f(this.location,e))}},Kl=class extends ig{constructor(e,t){super(e,t),this.current=[0,0]}set(e){(e[0]!==this.current[0]||e[1]!==this.current[1])&&(this.current=e,this.gl.uniform2f(this.location,e[0],e[1]))}},td=class extends ig{constructor(e,t){super(e,t),this.current=[0,0,0]}set(e){(e[0]!==this.current[0]||e[1]!==this.current[1]||e[2]!==this.current[2])&&(this.current=e,this.gl.uniform3f(this.location,e[0],e[1],e[2]))}},J5=class extends ig{constructor(e,t){super(e,t),this.current=[0,0,0,0]}set(e){(e[0]!==this.current[0]||e[1]!==this.current[1]||e[2]!==this.current[2]||e[3]!==this.current[3])&&(this.current=e,this.gl.uniform4f(this.location,e[0],e[1],e[2],e[3]))}},ng=class extends ig{constructor(e,t){super(e,t),this.current=Ol.transparent}set(e){(e.r!==this.current.r||e.g!==this.current.g||e.b!==this.current.b||e.a!==this.current.a)&&(this.current=e,this.gl.uniform4f(this.location,e.r,e.g,e.b,e.a))}},Kne=class extends ig{constructor(e,t){super(e,t),this.current=[]}set(e){if(e!=this.current){this.current=e;let t=new Float32Array(e.length*4);for(let r=0;r`u_${i}`),this.type=r}setUniform(e,t,r){e.set(r.constantOr(this.value))}getBinding(e,t,r){return this.type==="color"?new ng(e,t):new gs(e,t)}},K_=class{constructor(e,t){this.uniformNames=t.map(r=>`u_${r}`),this.patternFrom=null,this.patternTo=null,this.pixelRatioFrom=1,this.pixelRatioTo=1}setConstantPatternPositions(e,t){this.pixelRatioFrom=t.pixelRatio,this.pixelRatioTo=e.pixelRatio,this.patternFrom=t.tlbr,this.patternTo=e.tlbr}setConstantDashPositions(e,t){this.dashTo=[0,e.y,e.height,e.width],this.dashFrom=[0,t.y,t.height,t.width]}setUniform(e,t,r,i){let n=null;i==="u_pattern_to"?n=this.patternTo:i==="u_pattern_from"?n=this.patternFrom:i==="u_dasharray_to"?n=this.dashTo:i==="u_dasharray_from"?n=this.dashFrom:i==="u_pixel_ratio_to"?n=this.pixelRatioTo:i==="u_pixel_ratio_from"&&(n=this.pixelRatioFrom),n!==null&&e.set(n)}getBinding(e,t,r){return r.startsWith("u_pattern")||r.startsWith("u_dasharray_")?new J5(e,t):new gs(e,t)}},jy=class{constructor(e,t,r,i){this.expression=e,this.type=r,this.maxValue=0,this.paintVertexAttributes=t.map(n=>({name:`a_${n}`,type:"Float32",components:r==="color"?2:1,offset:0})),this.paintVertexArray=new i}populatePaintArray(e,t,r){let i=this.paintVertexArray.length,n=this.expression.evaluate(new Xu(0,r),t,{},r.canonical,[],r.formattedSection);this.paintVertexArray.resize(e),this._setPaintValue(i,e,n)}updatePaintArray(e,t,r,i,n){let a=this.expression.evaluate(new Xu(0,n),r,i);this._setPaintValue(e,t,a)}_setPaintValue(e,t,r){if(this.type==="color"){let i=qie(r);for(let n=e;n`u_${o}_t`),this.type=r,this.useIntegerZoom=i,this.zoom=n,this.maxValue=0,this.paintVertexAttributes=t.map(o=>({name:`a_${o}`,type:"Float32",components:r==="color"?4:2,offset:0})),this.paintVertexArray=new a}populatePaintArray(e,t,r){let i=this.expression.evaluate(new Xu(this.zoom,r),t,{},r.canonical,[],r.formattedSection),n=this.expression.evaluate(new Xu(this.zoom+1,r),t,{},r.canonical,[],r.formattedSection),a=this.paintVertexArray.length;this.paintVertexArray.resize(e),this._setPaintValue(a,e,i,n)}updatePaintArray(e,t,r,i,n){let a=this.expression.evaluate(new Xu(this.zoom,n),r,i),o=this.expression.evaluate(new Xu(this.zoom+1,n),r,i);this._setPaintValue(e,t,a,o)}_setPaintValue(e,t,r,i){if(this.type==="color"){let n=qie(r),a=qie(i);for(let o=e;o`#define HAS_UNIFORM_${i}`))}return e}getBinderAttributes(){let e=[];for(let t in this.binders){let r=this.binders[t];if(r instanceof jy||r instanceof w1)for(let i of r.paintVertexAttributes)e.push(i.name);else if(r instanceof ax){let i=r.getVertexAttributes();for(let n of i)e.push(n.name)}}return e}getBinderUniforms(){let e=[];for(let t in this.binders){let r=this.binders[t];if(r instanceof Ik||r instanceof K_||r instanceof w1)for(let i of r.uniformNames)e.push(i)}return e}getPaintVertexBuffers(){return this._buffers}getUniforms(e,t){let r=[];for(let i in this.binders){let n=this.binders[i];if(n instanceof Ik||n instanceof K_||n instanceof w1){for(let a of n.uniformNames)if(t[a]){let o=n.getBinding(e,t[a],a);r.push({name:a,property:i,binding:o})}}}return r}setUniforms(e,t,r,i){for(let{name:n,property:a,binding:o}of t)this.binders[a].setUniform(o,i,r.get(a),n)}updatePaintBuffers(e){this._buffers=[];for(let t in this.binders){let r=this.binders[t];if(e&&r instanceof ax){let i=e.fromScale===2?r.zoomInPaintVertexBuffer:r.zoomOutPaintVertexBuffer;i&&this._buffers.push(i)}else(r instanceof jy||r instanceof w1)&&r.paintVertexBuffer&&this._buffers.push(r.paintVertexBuffer)}}upload(e){for(let t in this.binders){let r=this.binders[t];(r instanceof jy||r instanceof w1||r instanceof ax)&&r.upload(e)}this.updatePaintBuffers()}destroy(){for(let e in this.binders){let t=this.binders[e];(t instanceof jy||t instanceof w1||t instanceof ax)&&t.destroy()}}},o3=class{constructor(e,t,r=()=>!0){this.programConfigurations={};for(let i of e)this.programConfigurations[i.id]=new Dnt(i,t,r);this.needsUpload=!1,this._featureMap=new Snt,this._bufferOffset=0}populatePaintArrays(e,t,r,i){for(let n in this.programConfigurations)this.programConfigurations[n].populatePaintArrays(e,t,i);t.id!==void 0&&this._featureMap.add(t.id,r,this._bufferOffset,e),this._bufferOffset=e,this.needsUpload=!0}updatePaintArrays(e,t,r,i){for(let n of r)this.needsUpload=this.programConfigurations[n.id].updatePaintArrays(e,this._featureMap,t,n,i)||this.needsUpload}get(e){return this.programConfigurations[e]}upload(e){if(this.needsUpload){for(let t in this.programConfigurations)this.programConfigurations[t].upload(e);this.needsUpload=!1}}destroy(){for(let e in this.programConfigurations)this.programConfigurations[e].destroy()}};As("ConstantBinder",Ik),As("CrossFadedConstantBinder",K_),As("SourceExpressionBinder",jy),As("CrossFadedPatternBinder",knt),As("CrossFadedDasharrayBinder",Cnt),As("CompositeExpressionBinder",w1),As("ProgramConfiguration",Dnt,{omit:["_buffers"]}),As("ProgramConfigurationSet",o3);Oie=2**14-1,Ket=-Oie-1;Jet=-32768;Qne=class{constructor(e){this.zoom=e.zoom,this.overscaling=e.overscaling,this.layers=e.layers,this.layerIds=this.layers.map(t=>t.id),this.index=e.index,this.hasDependencies=!1,this.layoutVertexArray=new n_r,this.indexArray=new D1,this.segments=new tc,this.programConfigurations=new o3(e.layers,e.zoom),this.stateDependentLayerIds=this.layers.filter(t=>t.isStateDependent()).map(t=>t.id)}populate(e,t,r){let i=this.layers[0],n=[],a=null,o=!1,s=i.type==="heatmap";if(i.type==="circle"){let c=i;a=c.layout.get("circle-sort-key"),o=!a.isConstant(),s||(s=c.paint.get("circle-pitch-alignment")==="map")}let l=s?t.subdivisionGranularity.circle:1,u=new Xu(this.zoom),f=this.layers[0]._featureFilter.needGeometry;for(let{feature:c,id:h,index:d,sourceLayerIndex:p}of e){let v=gx(c,f);if(!this.layers[0]._featureFilter.filter(u,v,r))continue;let y=o?a.evaluate(v,{},r):void 0,m={id:h,properties:c.properties,type:c.type,sourceLayerIndex:p,index:d,geometry:f?v.geometry:d3(c),patterns:{},sortKey:y};n.push(m)}o&&n.sort((c,h)=>c.sortKey-h.sortKey);for(let c of n){let{geometry:h,index:d,sourceLayerIndex:p}=c,v=e[d].feature;this.addFeature(c,h,d,r,l),t.featureIndex.insert(v,h,d,p,this.index)}}update(e,t,r){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(e,t,this.stateDependentLayers,{imagePositions:r})}addFeatures(e){}isEmpty(){return this.layoutVertexArray.length===0}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(e){this.uploaded||(this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,d_r),this.indexBuffer=e.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(e),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())}addFeature(e,t,r,i,n=1){let a;switch(n){case 1:a=[0,7];break;case 3:a=[0,2,5,7];break;case 5:a=[0,1,3,4,6,7];break;case 7:a=[0,1,2,3,4,5,6,7];break;default:throw Error(`Invalid circle bucket granularity: ${n}; valid values are 1, 3, 5, 7.`)}let o=a.length;for(let s of t)for(let l of s){let u=l.x,f=l.y;if(u<0||u>=8192||f<0||f>=8192)continue;let c=this.segments.prepareSegment(o*o,this.layoutVertexArray,this.indexArray,e.sortKey),h=c.vertexLength;for(let d=0;dett||(ett=new Nh({"circle-sort-key":new al(cn.layout_circle["circle-sort-key"],"circle-sort-key")})),I_r=()=>ttt||(ttt=new Nh({"circle-radius":new al(cn.paint_circle["circle-radius"],"circle-radius"),"circle-color":new al(cn.paint_circle["circle-color"],"circle-color"),"circle-blur":new al(cn.paint_circle["circle-blur"],"circle-blur"),"circle-opacity":new al(cn.paint_circle["circle-opacity"],"circle-opacity"),"circle-translate":new ms(cn.paint_circle["circle-translate"],"circle-translate"),"circle-translate-anchor":new ms(cn.paint_circle["circle-translate-anchor"],"circle-translate-anchor"),"circle-pitch-scale":new ms(cn.paint_circle["circle-pitch-scale"],"circle-pitch-scale"),"circle-pitch-alignment":new ms(cn.paint_circle["circle-pitch-alignment"],"circle-pitch-alignment"),"circle-stroke-width":new al(cn.paint_circle["circle-stroke-width"],"circle-stroke-width"),"circle-stroke-color":new al(cn.paint_circle["circle-stroke-color"],"circle-stroke-color"),"circle-stroke-opacity":new al(cn.paint_circle["circle-stroke-opacity"],"circle-stroke-opacity")})),R_r={get paint(){return I_r()},get layout(){return z_r()}},znt=e=>e.type==="circle",B_r=class extends C1{constructor(e,t){super(e,R_r,t)}createBucket(e){return new Qne(e)}queryRadius(e){let t=e;return F5("circle-radius",this,t)+F5("circle-stroke-width",this,t)+Mq(this.paint.get("circle-translate"))}queryIntersectsFeature({queryGeometry:e,feature:t,featureState:r,geometry:i,transform:n,pixelsToTileUnits:a,unwrappedTileID:o,getElevation:s}){let l=Sq(e,this.paint.get("circle-translate"),this.paint.get("circle-translate-anchor"),-n.bearingInRadians,a),u=this.paint.get("circle-radius").evaluate(t,r)+this.paint.get("circle-stroke-width").evaluate(t,r),f=this.paint.get("circle-pitch-scale"),c=this.paint.get("circle-pitch-alignment"),h,d;return c==="map"?(h=l,d=u*a):(h=P_r(l,n,o,s),d=u),Pnt({queryGeometry:h,size:d,transform:n,unwrappedTileID:o,getElevation:s,pitchAlignment:c,pitchScale:f},i)}},Int=class extends Qne{};As("HeatmapBucket",Int,{omit:["layers"]});q_r=()=>rtt||(rtt=new Nh({"heatmap-radius":new al(cn.paint_heatmap["heatmap-radius"],"heatmap-radius"),"heatmap-weight":new al(cn.paint_heatmap["heatmap-weight"],"heatmap-weight"),"heatmap-intensity":new ms(cn.paint_heatmap["heatmap-intensity"],"heatmap-intensity"),"heatmap-color":new wq(cn.paint_heatmap["heatmap-color"],"heatmap-color"),"heatmap-opacity":new ms(cn.paint_heatmap["heatmap-opacity"],"heatmap-opacity")})),O_r={get paint(){return q_r()}};Eq=class Bnt{constructor(t,r){iae(this,t,1,r)}resize(t){Rnt(this,t,1)}clone(){return new Bnt({width:this.width,height:this.height},new Uint8Array(this.data))}static copy(t,r,i,n,a){nae(t,r,i,n,a,1)}},qf=class qnt{constructor(t,r){iae(this,t,4,r)}resize(t){Rnt(this,t,4)}replace(t,r){r?this.data.set(t):this.data=t instanceof Uint8ClampedArray?new Uint8Array(t.buffer):t}clone(){return new qnt({width:this.width,height:this.height},new Uint8Array(this.data))}static copy(t,r,i,n,a){nae(t,r,i,n,a,4)}setPixel(t,r,i){let n=(t*this.width+r)*4;this.data[n+0]=Math.round(i.r*255/i.a),this.data[n+1]=Math.round(i.g*255/i.a),this.data[n+2]=Math.round(i.b*255/i.a),this.data[n+3]=Math.round(i.a*255)}};As("AlphaImage",Eq),As("RGBAImage",qf);MC="big-fb",Ont=e=>e.type==="heatmap",N_r=class extends C1{createBucket(e){return new Int(e)}constructor(e,t){super(e,O_r,t),this.heatmapFbos=new Map,this._updateColorRamp()}_handleSpecialPaintPropertyUpdate(e){e==="heatmap-color"&&this._updateColorRamp()}_updateColorRamp(){let e=this._transitionablePaint._values["heatmap-color"].value.expression;this.colorRamp=aae({expression:e,evaluationKey:"heatmapDensity",image:this.colorRamp}),this.colorRampTexture=null}resize(){this.heatmapFbos.has("big-fb")&&this.heatmapFbos.delete(MC)}queryRadius(e){return F5("heatmap-radius",this,e)}queryIntersectsFeature({queryGeometry:e,feature:t,featureState:r,geometry:i,transform:n,pixelsToTileUnits:a,unwrappedTileID:o,getElevation:s}){return Pnt({queryGeometry:e,size:this.paint.get("heatmap-radius").evaluate(t,r)*a,transform:n,unwrappedTileID:o,getElevation:s},i)}hasOffscreenPass(){return this.paint.get("heatmap-opacity")!==0&&!this.isHidden()}},V_r=()=>itt||(itt=new Nh({"hillshade-illumination-direction":new ms(cn.paint_hillshade["hillshade-illumination-direction"],"hillshade-illumination-direction"),"hillshade-illumination-altitude":new ms(cn.paint_hillshade["hillshade-illumination-altitude"],"hillshade-illumination-altitude"),"hillshade-illumination-anchor":new ms(cn.paint_hillshade["hillshade-illumination-anchor"],"hillshade-illumination-anchor"),"hillshade-exaggeration":new ms(cn.paint_hillshade["hillshade-exaggeration"],"hillshade-exaggeration"),"hillshade-shadow-color":new ms(cn.paint_hillshade["hillshade-shadow-color"],"hillshade-shadow-color"),"hillshade-highlight-color":new ms(cn.paint_hillshade["hillshade-highlight-color"],"hillshade-highlight-color"),"hillshade-accent-color":new ms(cn.paint_hillshade["hillshade-accent-color"],"hillshade-accent-color"),"hillshade-method":new ms(cn.paint_hillshade["hillshade-method"],"hillshade-method"),resampling:new ms(cn.paint_hillshade.resampling,"resampling")})),U_r={get paint(){return V_r()}},Nnt=e=>e.type==="hillshade",G_r=class extends C1{constructor(e,t){super(e,U_r,t),this.recalculate({zoom:0,zoomHistory:{}},void 0)}getIlluminationProperties(){let e=this.paint.get("hillshade-illumination-direction").values,t=this.paint.get("hillshade-illumination-altitude").values,r=this.paint.get("hillshade-highlight-color").values,i=this.paint.get("hillshade-shadow-color").values,n=Math.max(e.length,t.length,r.length,i.length);e=e.concat(Array(n-e.length).fill(e.at(-1))),t=t.concat(Array(n-t.length).fill(t.at(-1))),r=r.concat(Array(n-r.length).fill(r.at(-1))),i=i.concat(Array(n-i.length).fill(i.at(-1)));let a=t.map($f);return{directionRadians:e.map($f),altitudeRadians:a,shadowColor:i,highlightColor:r}}hasOffscreenPass(){return this.paint.get("hillshade-exaggeration")!==0&&!this.isHidden()}},H_r=()=>ntt||(ntt=new Nh({"color-relief-opacity":new ms(cn["paint_color-relief"]["color-relief-opacity"],"color-relief-opacity"),"color-relief-color":new wq(cn["paint_color-relief"]["color-relief-color"],"color-relief-color"),resampling:new ms(cn["paint_color-relief"].resampling,"resampling")})),j_r={get paint(){return H_r()}};dh=class{constructor(e,t,r,i){this.context=e,this.format=r,this.texture=e.gl.createTexture(),this._ownedHandle=this.texture,this.update(t,i)}update(e,t,r){var u;let{width:i,height:n}=e,a=(((u=this.size)==null?void 0:u[0])!==i||this.size[1]!==n)&&!r,{context:o}=this,{gl:s}=o;this.useMipmap=!!(t!=null&&t.useMipmap),a&&this.size&&this.format===s.RGBA&&(s.deleteTexture(this.texture),this.texture=s.createTexture(),this._ownedHandle=this.texture,this.magFilter=void 0,this.minFilter=void 0,this.wrap=void 0),s.bindTexture(s.TEXTURE_2D,this.texture),o.pixelStoreUnpackFlipY.set(!1),o.pixelStoreUnpack.set(1);let l=this.format===s.RGBA&&(t==null?void 0:t.premultiply)!==!1;if(a)if(this.size=[i,n],this.format===s.RGBA&&i>0&&n>0){let f=this.useMipmap?Math.floor(Math.log2(Math.max(i,n)))+1:1;if(s.texStorage2D(s.TEXTURE_2D,f,s.RGBA8,i,n),c7(e)){o.pixelStoreUnpackPremultiplyAlpha.set(!1);let{data:c}=e;l&&c&&(c=Xre(c)),c&&s.texSubImage2D(s.TEXTURE_2D,0,0,0,i,n,s.RGBA,s.UNSIGNED_BYTE,c)}else o.pixelStoreUnpackPremultiplyAlpha.set(l),s.texSubImage2D(s.TEXTURE_2D,0,0,0,s.RGBA,s.UNSIGNED_BYTE,e)}else c7(e)?(o.pixelStoreUnpackPremultiplyAlpha.set(!1),this._uploadRawData(e,l,i,n,s)):(o.pixelStoreUnpackPremultiplyAlpha.set(l),this._uploadDomImage(e,s));else{let{x:f,y:c}=r||{x:0,y:0};c7(e)?(o.pixelStoreUnpackPremultiplyAlpha.set(!1),this._updateRawData(e,l,f,c,i,n,s)):(o.pixelStoreUnpackPremultiplyAlpha.set(l),this._updateDomImage(e,f,c,s))}this.useMipmap&&!(c7(e)&&e.data===null)&&s.generateMipmap(s.TEXTURE_2D),o.pixelStoreUnpackFlipY.setDefault(),o.pixelStoreUnpack.setDefault(),o.pixelStoreUnpackPremultiplyAlpha.setDefault()}_uploadDomImage(e,t){t.texImage2D(t.TEXTURE_2D,0,this.format,this.format,t.UNSIGNED_BYTE,e)}_uploadRawData(e,t,r,i,n){let{data:a}=e;t&&a&&(a=Xre(a)),n.texImage2D(n.TEXTURE_2D,0,this.format,r,i,0,this.format,n.UNSIGNED_BYTE,a)}_updateDomImage(e,t,r,i){i.texSubImage2D(i.TEXTURE_2D,0,t,r,i.RGBA,i.UNSIGNED_BYTE,e)}_updateRawData(e,t,r,i,n,a,o){let{data:s}=e;t&&s&&(s=Xre(s)),o.texSubImage2D(o.TEXTURE_2D,0,r,i,n,a,o.RGBA,o.UNSIGNED_BYTE,s)}bind(e,t,r){let{context:i}=this,{gl:n}=i;this.texture!==this._ownedHandle&&(this.texture=this._ownedHandle),n.bindTexture(n.TEXTURE_2D,this.texture),(r===n.LINEAR_MIPMAP_NEAREST||r===n.LINEAR_MIPMAP_LINEAR)&&!this.useMipmap&&(r=n.LINEAR);let a=r||e;e!==this.magFilter&&(n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MAG_FILTER,e),this.magFilter=e),a!==this.minFilter&&(n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MIN_FILTER,a),this.minFilter=a),t!==this.wrap&&(n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_S,t),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_T,t),this.wrap=t)}generateMipmap(){if(!this.useMipmap)return;let{gl:e}=this.context;e.bindTexture(e.TEXTURE_2D,this.texture),e.generateMipmap(e.TEXTURE_2D)}destroy(){let{gl:e}=this.context;e.deleteTexture(this.texture),this.texture=null,this._ownedHandle=null}},W_r=(Yy=class{constructor(t,r,i,n=1,a=1,o=1,s=0){if(this.uid=t,r.height!==r.width)throw RangeError("DEM tiles must be square");if(i&&!["mapbox","terrarium","custom"].includes(i)){lu(`"${i}" is not a valid encoding type. Valid types include "mapbox", "terrarium" and "custom".`);return}this.stride=r.height;let l=this.dim=r.height-4;switch(this.data=new Uint32Array(r.data.buffer),Yy.byteViewCache.set(this,new Uint8Array(this.data.buffer)),i){case"terrarium":this.redFactor=256,this.greenFactor=1,this.blueFactor=1/256,this.baseShift=32768;break;case"custom":this.redFactor=n,this.greenFactor=a,this.blueFactor=o,this.baseShift=s;break;default:this.redFactor=6553.6,this.greenFactor=25.6,this.blueFactor=.1,this.baseShift=1e4}for(let f=-2;f=l)&&this.data.copyWithin(this._idx(0,f),c,c+l),this.data.fill(this.data[c],this._idx(-2,f),this._idx(0,f)),this.data.fill(this.data[c+l-1],this._idx(l,f),this._idx(l+1,f)+1)}let u=this._getByteView();this.min=2**53-1,this.max=-(2**53-1);for(let f=0;fthis.max&&(this.max=d),d=this.dim||n<-1||n>=this.dim)throw RangeError(`Out of range source coordinates for DEM data. x: ${t}, y: ${r}, dim: ${this.dim}`);let a=this._getByteView(),o=((n+2)*this.stride+i+2)*4,s=this.stride*4,l=t-i,u=r-n,f=this._unpackAtIndex(a,o),c=this._unpackAtIndex(a,o+4),h=this._unpackAtIndex(a,o+s),d=this._unpackAtIndex(a,o+s+4);return f*(1-l)*(1-u)+c*l*(1-u)+h*(1-l)*u+d*l*u}getUnpackVector(){return[this.redFactor,this.greenFactor,this.blueFactor,this.baseShift]}_idx(t,r){if(t<-2||t>=this.dim+2||r<-2||r>=this.dim+2)throw RangeError(`Out of range source coordinates for DEM data. x: ${t}, y: ${r}, dim: ${this.dim}`);return(r+2)*this.stride+(t+2)}unpack(t,r,i){return t*this.redFactor+r*this.greenFactor+i*this.blueFactor-this.baseShift}pack(t){return Vnt(t,this.getUnpackVector())}getPixels(){return new qf({width:this.stride,height:this.stride},this._getByteView())}backfillBorder(t,r,i){if(this.dim!==t.dim)throw Error("dem dimension mismatch");let n=r*this.dim,a=r*this.dim+this.dim,o=i*this.dim,s=i*this.dim+this.dim;switch(r){case-1:n=a-2;break;case 1:a=n+2}switch(i){case-1:o=s-2;break;case 1:s=o+2}let l=-r*this.dim,u=-i*this.dim;for(let f=o;fe.type==="color-relief",$_r=class extends C1{constructor(e,t){super(e,j_r,t)}_createColorRamp(e){let t={elevationStops:[],colorStops:[]},r=this._transitionablePaint._values["color-relief-color"].value.expression;if(r instanceof Kk&&r._styleExpression.expression instanceof Av){this.colorRampExpression=r;let a=r._styleExpression.expression;t.elevationStops=a.labels,t.colorStops=[];for(let o of t.elevationStops)t.colorStops.push(a.evaluate({globals:{elevation:o}}))}if(t.elevationStops.length<1&&(t.elevationStops=[0],t.colorStops=[Ol.transparent]),t.elevationStops.length<2&&(t.elevationStops.push(t.elevationStops[0]+1),t.colorStops.push(t.colorStops[0])),t.elevationStops.length<=e)return t;let i={elevationStops:[],colorStops:[]},n=(t.elevationStops.length-1)/(e-1);for(let a=0;ae)throw Error("Min granularity must not be greater than base granularity.");this._baseZoomGranularity=e,this._minGranularity=t}getGranularityForZoomLevel(e){let t=1<32767||t>32767)throw Error("Vertex coordinates are out of signed 16 bit integer range.");let r=Math.round(e)|0,i=Math.round(t)|0,n=this._getKey(r,i),a=this._vertexDictionary.get(n);if(a!==void 0)return a;let o=this._vertexBuffer.length/2;return this._vertexDictionary.set(n,o),this._vertexBuffer.push(r,i),o}_subdivideTrianglesScanline(e,t){if(this._granularity<2)return y3r(this._vertexBuffer,m3r(e,t));let r=[],i=e.length;for(let n=0;n=1||b<=0)||y&&(ln)){f>=i&&f<=n&&a.push(r[(o+1)%3]);continue}if(!y&&_>0){let A=s+d*_,T=l+p*_;a.push(this._vertexToIndex(A,T))}let M=s+d*Math.max(_,0),x=s+d*Math.min(b,1);if(v||this._generateIntraEdgeVertices(a,s,l,u,f,M,x),!y&&b<1){let A=s+d*b,T=l+p*b;a.push(this._vertexToIndex(A,T))}(y||f>=i&&f<=n)&&a.push(r[(o+1)%3]),!y&&(f<=i||f>=n)&&this._generateInterEdgeVertices(a,s,l,u,f,c,h,x,i,n)}return a}_generateIntraEdgeVertices(e,t,r,i,n,a,o){let s=i-t,l=n-r,u=l===0,f=u?Math.min(t,i):Math.min(a,o),c=u?Math.max(t,i):Math.max(a,o),h=Math.floor(f/this._granularityCellSize)+1,d=Math.ceil(c/this._granularityCellSize)-1;if(u?t=h;p--){let v=p*this._granularityCellSize,y=r+l*(v-t)/s;e.push(this._vertexToIndex(v,y))}}_generateInterEdgeVertices(e,t,r,i,n,a,o,s,l,u){let f=n-r,c=a-i,h=o-n,d=(l-n)/h,p=(u-n)/h,v=Math.min(d,p),y=Math.max(d,p),m=i+c*v,w=Math.floor(Math.min(m,s)/this._granularityCellSize)+1,_=Math.ceil(Math.max(m,s)/this._granularityCellSize)-1,b=s=1||y<=0){let A=t-a,T=r-o,g=(l-o)/T,E=(u-o)/T,S=a+A*Math.min(g,E);w=Math.floor(Math.min(S,s)/this._granularityCellSize)+1,_=Math.ceil(Math.max(S,s)/this._granularityCellSize)-1,b=s0?u:l;if(b)for(let A=w;A<=_;A++){let T=A*this._granularityCellSize;e.push(this._vertexToIndex(T,x))}else for(let A=_;A>=w;A--){let T=A*this._granularityCellSize;e.push(this._vertexToIndex(T,x))}}_generateOutline(e,t){let r=[],i=0;for(let n of e){let a=this._granularity<2?this._ringPathIndices(n,i,t):this._pointArrayToIndices(Q_(n,this._granularity,!0));i+=n.length;let o=[];for(let s=1;s=2&&Ynt(e)&&i.push(i[0]),i}_handlePoles(e){let t=!1,r=!1;this._canonical&&(this._canonical.y===0&&(t=!0),this._canonical.y===(1<n==(a===-32768)?(e.push(r),e.push(t),e.push(this._vertexToIndex(i,a)),e.push(this._vertexToIndex(n,a)),e.push(r),e.push(this._vertexToIndex(i,a))):(e.push(t),e.push(r),e.push(this._vertexToIndex(i,a)),e.push(r),e.push(this._vertexToIndex(n,a)),e.push(this._vertexToIndex(i,a)))}_fillPoles(e,t,r){let i=this._vertexBuffer,n=Aa,a=e.length;for(let o=2;o=2&&((s=this._canonical)==null?void 0:s.z)===0&&(a=this._removeTrianglesOutsideTileX(a),o=o.map(l=>this._removeLinesOutsideTileX(l))),{verticesFlattened:this._vertexBuffer,indicesTriangles:a,indicesLineList:o}}_vertexOutsideTileX(e){let t=this._vertexBuffer[e*2];return t<0||t>8192}_removeTrianglesOutsideTileX(e){let t=[];for(let r=0;rt.id),this.index=e.index,this.hasDependencies=!1,this.sdfPatterns={},this.patternFeatures=[],this.layoutVertexArray=new a_r,this.indexArray=new D1,this.indexArray2=new Iie,this.programConfigurations=new o3(e.layers,e.zoom),this.segments=new tc,this.segments2=new tc,this.stateDependentLayerIds=this.layers.filter(t=>t.isStateDependent()).map(t=>t.id)}populate(e,t,r){this.hasDependencies=O7("fill",this.layers,t);let i=this.layers[0].layout.get("fill-sort-key"),n=!i.isConstant(),a=[],o=new Xu(this.zoom),s=this.layers[0]._featureFilter.needGeometry;for(let{feature:l,id:u,index:f,sourceLayerIndex:c}of e){let h=gx(l,s);if(!this.layers[0]._featureFilter.filter(o,h,r))continue;let d=n?i.evaluate(h,{},r,t.availableImages):void 0,p={id:u,properties:l.properties,type:l.type,sourceLayerIndex:c,index:f,geometry:s?h.geometry:d3(l),patterns:{},sortKey:d};a.push(p)}n&&a.sort((l,u)=>l.sortKey-u.sortKey);for(let l of a){let{geometry:u,index:f,sourceLayerIndex:c}=l;if(this.hasDependencies){let d=oae("fill",this.layers,l,{zoom:this.zoom},t);this.patternFeatures.push(d)}else this.addFeature(l,u,f,r,{},t.subdivisionGranularity);let h=e[f].feature;t.featureIndex.insert(h,u,f,c,this.index)}}update(e,t,r){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(e,t,this.stateDependentLayers,{imagePositions:r})}addFeatures({options:e,canonical:t,patternPositions:r,patternMap:i}){this.detectSdfPatterns(i);for(let n of this.patternFeatures)this.addFeature(n,n.geometry,n.index,t,r,e.subdivisionGranularity)}detectSdfPatterns(e){for(let t of this.patternFeatures)for(let r in t.patterns){let i=t.patterns[r];this.recordSdfPattern(r,e[i.min]),this.recordSdfPattern(r,e[i.mid]),this.recordSdfPattern(r,e[i.max])}for(let t of this.layers){let r=t.paint.get("fill-pattern").constantOr(null);r&&(this.recordSdfPattern(t.id,e[r.from.toString()]),this.recordSdfPattern(t.id,e[r.to.toString()]))}}recordSdfPattern(e,t){if(!t)return;let r=t.sdf===!0,i=this.sdfPatterns[e];i===void 0?this.sdfPatterns[e]=r:i!==r&&lu(`Style sheet warning: Cannot mix SDF and non-SDF fill patterns in layer "${e}"`)}isEmpty(){return this.layoutVertexArray.length===0}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(e){this.uploaded||(this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,Y_r),this.indexBuffer=e.createIndexBuffer(this.indexArray),this.indexBuffer2=e.createIndexBuffer(this.indexArray2)),this.programConfigurations.upload(e),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.indexBuffer2.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.segments2.destroy())}addFeature(e,t,r,i,n,a){for(let o of hq(t,500)){let s=$nt(o,i,a.fill.getGranularityForZoomLevel(i.z)),l=this.layoutVertexArray;Xnt((u,f)=>{l.emplaceBack(u,f)},this.segments,this.layoutVertexArray,this.indexArray,s.verticesFlattened,s.indicesTriangles,this.segments2,this.indexArray2,s.indicesLineList)}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,e,r,{imagePositions:n,canonical:i})}};As("FillBucket",Znt,{omit:["layers","patternFeatures"]});_3r=()=>ltt||(ltt=new Nh({"fill-sort-key":new al(cn.layout_fill["fill-sort-key"],"fill-sort-key")})),w3r=()=>utt||(utt=new Nh({"fill-antialias":new ms(cn.paint_fill["fill-antialias"],"fill-antialias"),"fill-opacity":new al(cn.paint_fill["fill-opacity"],"fill-opacity"),"fill-layer-opacity":new ms(cn.paint_fill["fill-layer-opacity"],"fill-layer-opacity"),"fill-color":new al(cn.paint_fill["fill-color"],"fill-color"),"fill-outline-color":new al(cn.paint_fill["fill-outline-color"],"fill-outline-color"),"fill-translate":new ms(cn.paint_fill["fill-translate"],"fill-translate"),"fill-translate-anchor":new ms(cn.paint_fill["fill-translate-anchor"],"fill-translate-anchor"),"fill-pattern":new eC(cn.paint_fill["fill-pattern"],"fill-pattern")})),A3r={get paint(){return w3r()},get layout(){return _3r()}},Knt=e=>e.type==="fill",T3r=class extends C1{constructor(e,t){super(e,A3r,t)}recalculate(e,t){super.recalculate(e,t);let r=this.paint._values["fill-outline-color"];r.value.kind==="constant"&&r.value.value===void 0&&(this.paint._values["fill-outline-color"]=this.paint._values["fill-color"])}createBucket(e){return new Znt(e)}queryRadius(){return Mq(this.paint.get("fill-translate"))}queryIntersectsFeature({queryGeometry:e,geometry:t,transform:r,pixelsToTileUnits:i}){return Fnt(Sq(e,this.paint.get("fill-translate"),this.paint.get("fill-translate-anchor"),-r.bearingInRadians,i),t)}isTileClipped(){return!0}},Xie=cc([{name:"a_pos",components:2,type:"Int16"},{name:"a_normal_ed",components:4,type:"Int16"}],4),M3r=cc([{name:"a_centroid",components:2,type:"Int16"}],4),S3r=Xie.members;Xie.size,Xie.alignment;Tv=class Zie{constructor(){this.minX=1/0,this.maxX=-1/0,this.minY=1/0,this.maxY=-1/0}extend(t){return this.minX=Math.min(this.minX,t.x),this.minY=Math.min(this.minY,t.y),this.maxX=Math.max(this.maxX,t.x),this.maxY=Math.max(this.maxY,t.y),this}expandBy(t){return this.minX-=t,this.minY-=t,this.maxX+=t,this.maxY+=t,(this.minX>this.maxX||this.minY>this.maxY)&&(this.minX=1/0,this.maxX=-1/0,this.minY=1/0,this.maxY=-1/0),this}shrinkBy(t){return this.expandBy(-t)}map(t){let r=new Zie;return r.extend(t(new Zr(this.minX,this.minY))),r.extend(t(new Zr(this.maxX,this.minY))),r.extend(t(new Zr(this.minX,this.maxY))),r.extend(t(new Zr(this.maxX,this.maxY))),r}static fromPoints(t){let r=new Zie;for(let i of t)r.extend(i);return r}contains(t){return t.x>=this.minX&&t.x<=this.maxX&&t.y>=this.minY&&t.y<=this.maxY}empty(){return this.minX>this.maxX}width(){return this.maxX-this.minX}height(){return this.maxY-this.minY}covers(t){return!this.empty()&&!t.empty()&&t.minX>=this.minX&&t.maxX<=this.maxX&&t.minY>=this.minY&&t.maxY<=this.maxY}intersects(t){return!this.empty()&&!t.empty()&&t.minX<=this.maxX&&t.maxX>=this.minX&&t.minY<=this.maxY&&t.maxY>=this.minY}},Jnt=Tv.fromPoints([new Zr(0,0),new Zr(Aa,Aa)]);SC=class{constructor(e,t,r,i,n){for(this.properties=Object.create(null),this.extent=r,this.type=0,this.id=void 0,this._pbf=e,this._geometry=-1,this._keys=i,this._values=n;e.pos>3,a===0)continue}if(a--,n===1)o+=e.readSVarint(),s+=e.readSVarint(),i&&r.push(i),i=[new Zr(o,s)];else if(n===2)o+=e.readSVarint(),s+=e.readSVarint(),i&&i.push(new Zr(o,s));else if(n===7)i&&i.push(i[0].clone());else throw Error(`unknown command ${n}`)}return i&&r.push(i),r}bbox(){if(this._geometry<0)throw Error("feature has no geometry");let e=this._pbf;e.pos=this._geometry;let t=e.readVarint()+e.pos,r=1,i=0,n=0,a=0,o=1/0,s=-1/0,l=1/0,u=-1/0;for(;e.pos>3,i===0)continue}if(i--,r===1||r===2)n+=e.readSVarint(),a+=e.readSVarint(),ns&&(s=n),au&&(u=a);else if(r!==7)throw Error(`unknown command ${r}`)}return[o,l,s,u]}toGeoJSON(e,t,r){let i=this.extent*2**r,n=this.extent*e,a=this.extent*t,o=this.loadGeometry();function s(c){return[(c.x+n)*360/i-180,360/Math.PI*Math.atan(Math.exp((1-(c.y+a)*2/i)*Math.PI))-90]}function l(c){return c.map(s)}let u;if(this.type===1){let c=[];for(let d of o)c.push(d[0]);let h=l(c);u=c.length===1?{type:"Point",coordinates:h[0]}:{type:"MultiPoint",coordinates:h}}else if(this.type===2){let c=o.map(l);u=c.length===1?{type:"LineString",coordinates:c[0]}:{type:"MultiLineString",coordinates:c}}else if(this.type===3){let c=Qnt(o),h=[];for(let d of c)h.push(d.map(l));u=h.length===1?{type:"Polygon",coordinates:h[0]}:{type:"MultiPolygon",coordinates:h}}else throw Error("unknown feature type");let f={type:"Feature",geometry:u,properties:this.properties};return this.id!=null&&(f.id=this.id),f}};SC.types=["Unknown","Point","LineString","Polygon"];k3r=class{constructor(e,t){for(this.version=1,this.name="",this.extent=4096,this.length=0,this._pbf=e,this._keys=[],this._values=[],this._features=[],t===void 0&&(t=e.length);e.pos=this._features.length)throw Error("feature index out of bounds");this._pbf.pos=this._features[e];let t=this._pbf.readVarint()+this._pbf.pos;return new SC(this._pbf,t,this.extent,this._keys,this._values)}};D3r=class{constructor(e,t=e.length){let r=Object.create(null);for(;e.pos90||this.lat<-90)throw Error("Invalid LngLat latitude value: must be between -90 and 90")}wrap(){return new Rk(wp(this.lng,-180,180),this.lat)}toArray(){return[this.lng,this.lat]}toString(){return`LngLat(${this.lng}, ${this.lat})`}distanceTo(t){let r=Math.PI/180,i=this.lat*r,n=t.lat*r,a=Math.sin(i)*Math.sin(n)+Math.cos(i)*Math.cos(n)*Math.cos((t.lng-this.lng)*r);return rd*Math.acos(Math.min(a,1))}static convert(t){if(t instanceof Rk)return t;if(Array.isArray(t)&&(t.length===2||t.length===3))return new Rk(Number(t[0]),Number(t[1]));if(!Array.isArray(t)&&typeof t=="object"&&t)return new Rk(Number("lng"in t?t.lng:t.lon),Number(t.lat));throw Error("`LngLatLike` argument must be specified as a LngLat instance, an object {lng: , lat: }, an object {lon: , lat: }, or an array of [, ]")}},eat=2*Math.PI*rd;Uu=class rat{constructor(t,r,i=0){this.x=+t,this.y=+r,this.z=+i}static fromLngLat(t,r=0){let i=Js.convert(t);return new rat(p3(i.lng),v3(i.lat),xx(r,i.lat))}toLngLat(){return new Js(Cq(this.x),j5(this.y))}toAltitude(){return sae(this.z,this.y)}meterInMercatorCoordinateUnits(){return 1/eat*F3r(j5(this.y))}},bx=89.25;Zre=8192;nat=class{constructor(e){this.zoom=e.zoom,this.overscaling=e.overscaling,this.layers=e.layers,this.layerIds=this.layers.map(t=>t.id),this.index=e.index,this.hasDependencies=!1,this.layoutVertexArray=new o_r,this.centroidVertexArray=new rg,this.indexArray=new D1,this.programConfigurations=new o3(e.layers,e.zoom),this.segments=new tc,this.stateDependentLayerIds=this.layers.filter(t=>t.isStateDependent()).map(t=>t.id)}populate(e,t,r){this.features=[],this.hasDependencies=O7("fill-extrusion",this.layers,t);let i=new Xu(this.zoom),n=this.layers[0],a=n.layout.get("fill-extrusion-rounded-corner-distance"),o=a>0?z3r(a,r):0,s=n._featureFilter.needGeometry;for(let{feature:l,id:u,index:f,sourceLayerIndex:c}of e){let h=gx(l,s);if(!n._featureFilter.filter(i,h,r))continue;let d={id:u,sourceLayerIndex:c,index:f,geometry:P3r(s?h.geometry:d3(l),o),properties:l.properties,type:l.type,patterns:{}};this.hasDependencies?this.features.push(oae("fill-extrusion",this.layers,d,{zoom:this.zoom},t)):this.addFeature(d,d.geometry,f,r,{},t.subdivisionGranularity),t.featureIndex.insert(l,d.geometry,f,c,this.index,!0)}}addFeatures({options:e,canonical:t,patternPositions:r}){for(let i of this.features){let{geometry:n}=i;this.addFeature(i,n,i.index,t,r,e.subdivisionGranularity)}}update(e,t,r){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(e,t,this.stateDependentLayers,{imagePositions:r})}isEmpty(){return this.layoutVertexArray.length===0&&this.centroidVertexArray.length===0}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(e){this.uploaded||(this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,S3r),this.centroidVertexBuffer=e.createVertexBuffer(this.centroidVertexArray,M3r.members,!0),this.indexBuffer=e.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(e),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.centroidVertexBuffer.destroy())}addFeature(e,t,r,i,n,a){for(let o of hq(t,500)){let s={x:0,y:0,sampleCount:0},l=this.layoutVertexArray.length;this.processPolygon(s,i,e,o,a);let u=this.layoutVertexArray.length-l,f=Math.floor(s.x/s.sampleCount),c=Math.floor(s.y/s.sampleCount);for(let h=0;h{Ek(u,f,c,0,0,1,1,0)},this.segments,this.layoutVertexArray,this.indexArray,l.verticesFlattened,l.indicesTriangles)}_generateSideFaces(e,t){let r=0;for(let i=1;itc.MAX_VERTEX_ARRAY_LENGTH&&(t.segment=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray));let o=n.sub(a)._perp()._unit(),s=a.dist(n);r+s>32768&&(r=0),Ek(this.layoutVertexArray,n.x,n.y,o.x,o.y,0,0,r),Ek(this.layoutVertexArray,n.x,n.y,o.x,o.y,0,1,r),r+=s,Ek(this.layoutVertexArray,a.x,a.y,o.x,o.y,0,0,r),Ek(this.layoutVertexArray,a.x,a.y,o.x,o.y,0,1,r);let l=t.segment.vertexLength;this.indexArray.emplaceBack(l,l+2,l+1),this.indexArray.emplaceBack(l+1,l+2,l+3),t.segment.vertexLength+=4,t.segment.primitiveLength+=2}}};As("FillExtrusionBucket",nat,{omit:["layers","features"]});O3r=()=>ctt||(ctt=new Nh({"fill-extrusion-rounded-corner-distance":new ms(cn["layout_fill-extrusion"]["fill-extrusion-rounded-corner-distance"],"fill-extrusion-rounded-corner-distance")})),N3r=()=>htt||(htt=new Nh({"fill-extrusion-opacity":new ms(cn["paint_fill-extrusion"]["fill-extrusion-opacity"],"fill-extrusion-opacity"),"fill-extrusion-color":new al(cn["paint_fill-extrusion"]["fill-extrusion-color"],"fill-extrusion-color"),"fill-extrusion-translate":new ms(cn["paint_fill-extrusion"]["fill-extrusion-translate"],"fill-extrusion-translate"),"fill-extrusion-translate-anchor":new ms(cn["paint_fill-extrusion"]["fill-extrusion-translate-anchor"],"fill-extrusion-translate-anchor"),"fill-extrusion-pattern":new eC(cn["paint_fill-extrusion"]["fill-extrusion-pattern"],"fill-extrusion-pattern"),"fill-extrusion-height":new al(cn["paint_fill-extrusion"]["fill-extrusion-height"],"fill-extrusion-height"),"fill-extrusion-base":new al(cn["paint_fill-extrusion"]["fill-extrusion-base"],"fill-extrusion-base"),"fill-extrusion-vertical-gradient":new ms(cn["paint_fill-extrusion"]["fill-extrusion-vertical-gradient"],"fill-extrusion-vertical-gradient")})),V3r={get paint(){return N3r()},get layout(){return O3r()}},aat=e=>e.type==="fill-extrusion",U3r=class extends C1{constructor(e,t){super(e,V3r,t)}createBucket(e){return new nat(e)}queryRadius(){return Mq(this.paint.get("fill-extrusion-translate"))}is3D(){return!0}queryIntersectsFeature({queryGeometry:e,feature:t,featureState:r,geometry:i,transform:n,pixelsToTileUnits:a,pixelPosMatrix:o}){let s=Sq(e,this.paint.get("fill-extrusion-translate"),this.paint.get("fill-extrusion-translate-anchor"),-n.bearingInRadians,a),l=this.paint.get("fill-extrusion-height").evaluate(t,r),u=this.paint.get("fill-extrusion-base").evaluate(t,r),f=j3r(s,o,0),c=H3r(i,u,l,o),h=c[0],d=c[1];return G3r(h,d,f)}};W3r="geojsonvt_clip_start",$3r="geojsonvt_clip_end",Jie=cc([{name:"a_pos_normal",components:2,type:"Int16"},{name:"a_data",components:4,type:"Uint8"}],4),Y3r=Jie.members;Jie.size,Jie.alignment;Qie=cc([{name:"a_uv_x",components:1,type:"Float32"},{name:"a_split_index",components:1,type:"Float32"}]),X3r=Qie.members;Qie.size,Qie.alignment;Z3r=Math.cos(75/2*(Math.PI/180)),oat=1/2,ptt=2**14/oat,sat=class{constructor(e){this.zoom=e.zoom,this.overscaling=e.overscaling,this.layers=e.layers,this.layerIds=this.layers.map(t=>t.id),this.index=e.index,this.hasDependencies=!1,this.patternFeatures=[],this.lineClipsArray=[],this.gradients={};for(let t of this.layers)this.gradients[t.id]={};this.layoutVertexArray=new s_r,this.layoutVertexArray2=new l_r,this.indexArray=new D1,this.programConfigurations=new o3(e.layers,e.zoom),this.segments=new tc,this.maxLineLength=0,this.stateDependentLayerIds=this.layers.filter(t=>t.isStateDependent()).map(t=>t.id)}populate(e,t,r){this.hasDependencies=O7("line",this.layers,t)||this.hasLineDasharray(this.layers);let i=this.layers[0].layout.get("line-sort-key"),n=!i.isConstant(),a=[],o=new Xu(this.zoom),s=this.layers[0]._featureFilter.needGeometry;for(let{feature:l,id:u,index:f,sourceLayerIndex:c}of e){let h=gx(l,s);if(!this.layers[0]._featureFilter.filter(o,h,r))continue;let d=n?i.evaluate(h,{},r):void 0,p={id:u,properties:l.properties,type:l.type,sourceLayerIndex:c,index:f,geometry:s?h.geometry:d3(l),patterns:{},dashes:{},sortKey:d};a.push(p)}n&&a.sort((l,u)=>l.sortKey-u.sortKey);for(let l of a){let{geometry:u,index:f,sourceLayerIndex:c}=l;this.hasDependencies?(O7("line",this.layers,t)?oae("line",this.layers,l,{zoom:this.zoom},t):this.hasLineDasharray(this.layers)&&this.addLineDashDependencies(this.layers,l,this.zoom,t),this.patternFeatures.push(l)):this.addFeature(l,u,f,r,{},{},t.subdivisionGranularity);let h=e[f].feature;t.featureIndex.insert(h,u,f,c,this.index)}}update(e,t,r,i){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(e,t,this.stateDependentLayers,{imagePositions:r,dashPositions:i})}addFeatures({options:e,canonical:t,patternPositions:r,dashPositions:i}){for(let n of this.patternFeatures)this.addFeature(n,n.geometry,n.index,t,r,i,e.subdivisionGranularity)}isEmpty(){return this.layoutVertexArray.length===0}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(e){this.uploaded||(this.layoutVertexArray2.length!==0&&(this.layoutVertexBuffer2=e.createVertexBuffer(this.layoutVertexArray2,X3r)),this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,Y3r),this.indexBuffer=e.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(e),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())}lineFeatureClips(e){if(e.properties&&Object.hasOwn(e.properties,"geojsonvt_clip_start")&&Object.hasOwn(e.properties,"geojsonvt_clip_end"))return{start:+e.properties[W3r],end:+e.properties[$3r]}}addFeature(e,t,r,i,n,a,o){let s=this.layers[0].layout,l=s.get("line-join").evaluate(e,{}),u=s.get("line-cap").evaluate(e,{}),f=s.get("line-miter-limit").evaluate(e,{}),c=s.get("line-round-limit").evaluate(e,{});this.lineClips=this.lineFeatureClips(e);for(let h of t)this.addLine(h,e,l,u,f,c,i,o);this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,e,r,{imagePositions:n,dashPositions:a,canonical:i})}addLine(e,t,r,i,n,a,o,s){this.distance=0,this.scaledDistance=0,this.totalDistance=0;let l=o?s.line.getGranularityForZoomLevel(o.z):1;if(e=Q_(e,l),this.lineClips){this.lineClipsArray.push(this.lineClips);for(let _=0;_=2&&e[f-1].equals(e[f-2]);)f--;let c=0;for(;c0;if(g&&_>c){let k=p.dist(v);if(k>2*h){let D=p.sub(p.sub(v)._mult(h/k)._round());this.updateDistance(v,D),this.addCurrentVertex(D,m,0,0,d),v=D}}let S=v&&y,C=S?r:u?"butt":i;if(S&&C==="round"&&(An&&(C="bevel"),C==="bevel"&&(A>2&&(C="flipbevel"),A100)b=w.mult(-1);else{let k=A*m.add(w).mag()/m.sub(w).mag();b._perp()._mult(k*(E?-1:1))}this.addCurrentVertex(p,b,0,0,d),this.addCurrentVertex(p,b.mult(-1),0,0,d)}else if(C==="bevel"||C==="fakeround"){let k=-Math.sqrt(A*A-1),D=E?k:0,L=E?0:k;if(v&&this.addCurrentVertex(p,m,D,L,d),C==="fakeround"){let P=Math.round(T*180/Math.PI/20);for(let I=1;I2*h){let D=p.add(y.sub(p)._mult(h/k)._round());this.updateDistance(p,D),this.addCurrentVertex(D,w,0,0,d),p=D}}}}addCurrentVertex(e,t,r,i,n,a=!1){let o=t.x+t.y*r,s=t.y-t.x*r,l=-t.x+t.y*i,u=-t.y-t.x*i;this.addHalfVertex(e,o,s,a,!1,r,n),this.addHalfVertex(e,l,u,a,!0,-i,n),this.distance>ptt/2&&this.totalDistance===0&&(this.distance=0,this.updateScaledDistance(),this.addCurrentVertex(e,t,r,i,n,a))}addHalfVertex({x:e,y:t},r,i,n,a,o,s){let l=(this.lineClips?this.scaledDistance*(ptt-1):this.scaledDistance)*oat;if(this.layoutVertexArray.emplaceBack((e<<1)+ +!!n,(t<<1)+ +!!a,Math.round(63*r)+128,Math.round(63*i)+128,(o===0?0:o<0?-1:1)+1|(l&63)<<2,l>>6),this.lineClips){let f=(this.scaledDistance-this.lineClips.start)/(this.lineClips.end-this.lineClips.start);this.layoutVertexArray2.emplaceBack(f,this.lineClipsArray.length)}let u=s.vertexLength++;this.e1>=0&&this.e2>=0&&(this.indexArray.emplaceBack(this.e1,u,this.e2),s.primitiveLength++),a?this.e2=u:this.e1=u}updateScaledDistance(){this.scaledDistance=this.lineClips?this.lineClips.start+(this.lineClips.end-this.lineClips.start)*this.distance/this.totalDistance:this.distance}updateDistance(e,t){this.distance+=e.dist(t),this.updateScaledDistance()}hasLineDasharray(e){for(let t of e){let r=t.paint.get("line-dasharray");if(r&&!r.isConstant())return!0}return!1}addLineDashDependencies(e,t,r,i){for(let n of e){let a=n.paint.get("line-dasharray");if(!a||a.value.kind==="constant")continue;let o=n.layout.get("line-cap").evaluate(t,{})==="round",s={dasharray:a.value.evaluate({zoom:r-1},t,{}),round:o},l={dasharray:a.value.evaluate({zoom:r},t,{}),round:o},u={dasharray:a.value.evaluate({zoom:r+1},t,{}),round:o},f=`${s.dasharray.join(",")},${s.round}`,c=`${l.dasharray.join(",")},${l.round}`,h=`${u.dasharray.join(",")},${u.round}`;i.dashDependencies[f]=s,i.dashDependencies[c]=l,i.dashDependencies[h]=u,t.dashes[n.id]={min:f,mid:c,max:h}}}};As("LineBucket",sat,{omit:["layers","patternFeatures"]});K3r=()=>vtt||(vtt=new Nh({"line-cap":new al(cn.layout_line["line-cap"],"line-cap"),"line-join":new al(cn.layout_line["line-join"],"line-join"),"line-miter-limit":new al(cn.layout_line["line-miter-limit"],"line-miter-limit"),"line-round-limit":new al(cn.layout_line["line-round-limit"],"line-round-limit"),"line-sort-key":new al(cn.layout_line["line-sort-key"],"line-sort-key")})),J3r=()=>mtt||(mtt=new Nh({"line-opacity":new al(cn.paint_line["line-opacity"],"line-opacity"),"line-layer-opacity":new ms(cn.paint_line["line-layer-opacity"],"line-layer-opacity"),"line-color":new al(cn.paint_line["line-color"],"line-color"),"line-translate":new ms(cn.paint_line["line-translate"],"line-translate"),"line-translate-anchor":new ms(cn.paint_line["line-translate-anchor"],"line-translate-anchor"),"line-width":new al(cn.paint_line["line-width"],"line-width"),"line-gap-width":new al(cn.paint_line["line-gap-width"],"line-gap-width"),"line-offset":new al(cn.paint_line["line-offset"],"line-offset"),"line-blur":new al(cn.paint_line["line-blur"],"line-blur"),"line-dasharray":new eC(cn.paint_line["line-dasharray"],"line-dasharray"),"line-pattern":new eC(cn.paint_line["line-pattern"],"line-pattern"),"line-gradient":new wq(cn.paint_line["line-gradient"],"line-gradient")})),ytt={get paint(){return J3r()},get layout(){return K3r()}},Q3r=class extends al{possiblyEvaluate(e,t){return t=new Xu(Math.floor(t.zoom),{now:t.now,fadeDuration:t.fadeDuration,zoomHistory:t.zoomHistory,transition:t.transition}),super.possiblyEvaluate(e,t)}evaluate(e,t,r,i){return t=Hs({},t,{zoom:Math.floor(t.zoom)}),super.evaluate(e,t,r,i)}},lat=e=>e.type==="line",ewr=class extends C1{constructor(e,t){super(e,ytt,t),this.gradientVersion=0,p7||(p7=new Q3r(ytt.paint.properties["line-width"].specification,"line-floorwidth"),p7.useIntegerZoom=!0)}_handleSpecialPaintPropertyUpdate(e){if(e==="line-gradient"){let t=this.gradientExpression();this.stepInterpolant=_br(t)?t._styleExpression.expression instanceof Fne:!1,this.gradientVersion=(this.gradientVersion+1)%(2**53-1)}}gradientExpression(){return this._transitionablePaint._values["line-gradient"].value.expression}recalculate(e,t){super.recalculate(e,t),this.paint._values["line-floorwidth"]=p7.possiblyEvaluate(this._transitioningPaint._values["line-width"].value,e)}createBucket(e){return new sat(e)}queryRadius(e){let t=e,r=gtt(F5("line-width",this,t),F5("line-gap-width",this,t)),i=F5("line-offset",this,t);return r/2+Math.abs(i)+Mq(this.paint.get("line-translate"))}queryIntersectsFeature({queryGeometry:e,feature:t,featureState:r,geometry:i,transform:n,pixelsToTileUnits:a}){let o=Sq(e,this.paint.get("line-translate"),this.paint.get("line-translate-anchor"),-n.bearingInRadians,a),s=a/2*gtt(this.paint.get("line-width").evaluate(t,r),this.paint.get("line-gap-width").evaluate(t,r)),l=this.paint.get("line-offset").evaluate(t,r);return l&&(i=k_r(i,l*a)),w_r(o,i,s)}isTileClipped(){return!0}};twr=cc([{name:"a_pos_offset",components:4,type:"Int16"},{name:"a_data",components:4,type:"Uint16"},{name:"a_pixeloffset",components:4,type:"Int16"},{name:"a_height_offset",components:1,type:"Float32"}],4),rwr=cc([{name:"a_projected_pos",components:3,type:"Float32"}],4);cc([{name:"a_fade_opacity",components:1,type:"Uint32"}],4);iwr=cc([{name:"a_placed",components:2,type:"Uint8"},{name:"a_shift",components:2,type:"Float32"},{name:"a_box_real",components:2,type:"Int16"}]);cc([{type:"Int16",name:"anchorPointX"},{type:"Int16",name:"anchorPointY"},{type:"Int16",name:"x1"},{type:"Int16",name:"y1"},{type:"Int16",name:"x2"},{type:"Int16",name:"y2"},{type:"Uint32",name:"featureIndex"},{type:"Uint16",name:"sourceLayerIndex"},{type:"Uint16",name:"bucketIndex"}]);xtt=cc([{name:"a_pos",components:2,type:"Int16"},{name:"a_anchor_pos",components:2,type:"Int16"},{name:"a_extrude",components:2,type:"Int16"}],4),uat=cc([{name:"a_pos",components:2,type:"Float32"},{name:"a_radius",components:1,type:"Float32"},{name:"a_flags",components:2,type:"Int16"}],4);cc([{name:"triangle",components:3,type:"Uint16"}]),cc([{type:"Int16",name:"anchorX"},{type:"Int16",name:"anchorY"},{type:"Uint16",name:"glyphStartIndex"},{type:"Uint16",name:"numGlyphs"},{type:"Uint32",name:"vertexStartIndex"},{type:"Uint32",name:"lineStartIndex"},{type:"Uint32",name:"lineLength"},{type:"Uint16",name:"segment"},{type:"Uint16",name:"lowerSize"},{type:"Uint16",name:"upperSize"},{type:"Float32",name:"lineOffsetX"},{type:"Float32",name:"lineOffsetY"},{type:"Uint8",name:"writingMode"},{type:"Uint8",name:"placedOrientation"},{type:"Uint8",name:"hidden"},{type:"Uint32",name:"crossTileID"},{type:"Int16",name:"associatedIconIndex"},{type:"Float32",name:"heightOffset"}]),cc([{type:"Int16",name:"anchorX"},{type:"Int16",name:"anchorY"},{type:"Int16",name:"rightJustifiedTextSymbolIndex"},{type:"Int16",name:"centerJustifiedTextSymbolIndex"},{type:"Int16",name:"leftJustifiedTextSymbolIndex"},{type:"Int16",name:"verticalPlacedTextSymbolIndex"},{type:"Int16",name:"placedIconSymbolIndex"},{type:"Int16",name:"verticalPlacedIconSymbolIndex"},{type:"Uint16",name:"key"},{type:"Uint16",name:"textBoxStartIndex"},{type:"Uint16",name:"textBoxEndIndex"},{type:"Uint16",name:"verticalTextBoxStartIndex"},{type:"Uint16",name:"verticalTextBoxEndIndex"},{type:"Uint16",name:"iconBoxStartIndex"},{type:"Uint16",name:"iconBoxEndIndex"},{type:"Uint16",name:"verticalIconBoxStartIndex"},{type:"Uint16",name:"verticalIconBoxEndIndex"},{type:"Uint16",name:"featureIndex"},{type:"Uint16",name:"numHorizontalGlyphVertices"},{type:"Uint16",name:"numVerticalGlyphVertices"},{type:"Uint16",name:"numIconVertices"},{type:"Uint16",name:"numVerticalIconVertices"},{type:"Uint16",name:"useRuntimeCollisionCircles"},{type:"Uint32",name:"crossTileID"},{type:"Float32",name:"textBoxScale"},{type:"Float32",name:"collisionCircleDiameter"},{type:"Uint16",name:"textAnchorOffsetStartIndex"},{type:"Uint16",name:"textAnchorOffsetEndIndex"},{type:"Float32",name:"heightOffset"}]),cc([{type:"Float32",name:"offsetX"}]),cc([{type:"Int16",name:"x"},{type:"Int16",name:"y"},{type:"Int16",name:"tileUnitDistanceFromAnchor"}]),cc([{type:"Uint16",name:"textAnchor"},{type:"Float32",components:2,name:"textOffset"}]);U7=new class{constructor(){this.TIMEOUT=5e3,this.applyArabicShaping=null,this.processBidirectionalText=null,this.processStyledBidirectionalText=null,this.pluginStatus="unavailable",this.pluginURL=null,this.loadScriptResolve=()=>{}}setState(e){this.pluginStatus=e.pluginStatus,this.pluginURL=e.pluginURL}getState(){return{pluginStatus:this.pluginStatus,pluginURL:this.pluginURL}}setMethods(e){if(U7.isParsed())throw Error("RTL text plugin already registered.");this.applyArabicShaping=e.applyArabicShaping,this.processBidirectionalText=e.processBidirectionalText,this.processStyledBidirectionalText=e.processStyledBidirectionalText,this.loadScriptResolve()}isParsed(){return this.applyArabicShaping!=null&&this.processBidirectionalText!=null&&this.processStyledBidirectionalText!=null}getRTLTextPluginStatus(){return this.pluginStatus}syncState(e,t){return Ls(this,null,function*(){if(this.isParsed())return this.getState();if(e.pluginStatus!=="loading")return this.setState(e),e;let r=e.pluginURL,i=new Promise(a=>{this.loadScriptResolve=a}),n=new Promise(a=>setTimeout(()=>a(),this.TIMEOUT));if(yield t(r),yield Promise.race([i,n]),this.isParsed()){let a={pluginStatus:"loaded",pluginURL:r};return this.setState(a),a}throw this.setState({pluginStatus:"error",pluginURL:""}),Error(`RTL Text Plugin failed to import scripts from ${r}`)})}};fwr={C:"18g,1;g2,3;4nb,1",D:"17k,1;5,1;1,1;1,5;4,d;1,7;1,2;z,2;8,g;i,12;1,2;9,1;1,1;1,2;14,3;2,1;28,9;3,f;2,4;1,1;2,3;2,6;7a,1;2,5;1,1;g,a;5,2;2,6;1,f",R:"17m,4;1,1;1,1;5,4;l,1;14,3;1,3;g,i;12,1;2,9;1,1;1,1;2,2;1,1;o,2;2x,3;f,2;4,1;1,2;3,2;6u,j;b,1;r,3;1,1;2,2;6,1",T:"174,b;1,1;1a,l;g,1;2t,7;2,6;2,2;1,4;bt,9;16,o;1,t;1clb,1"},cwr={1569:[65152,0,0,0],1570:[65153,65154,0,0],1571:[65155,65156,0,0],1572:[65157,65158,0,0],1573:[65159,65160,0,0],1574:[65161,65162,65163,65164],1575:[65165,65166,0,0],1576:[65167,65168,65169,65170],1577:[65171,65172,0,0],1578:[65173,65174,65175,65176],1579:[65177,65178,65179,65180],1580:[65181,65182,65183,65184],1581:[65185,65186,65187,65188],1582:[65189,65190,65191,65192],1583:[65193,65194,0,0],1584:[65195,65196,0,0],1585:[65197,65198,0,0],1586:[65199,65200,0,0],1587:[65201,65202,65203,65204],1588:[65205,65206,65207,65208],1589:[65209,65210,65211,65212],1590:[65213,65214,65215,65216],1591:[65217,65218,65219,65220],1592:[65221,65222,65223,65224],1593:[65225,65226,65227,65228],1594:[65229,65230,65231,65232],1601:[65233,65234,65235,65236],1602:[65237,65238,65239,65240],1603:[65241,65242,65243,65244],1604:[65245,65246,65247,65248],1605:[65249,65250,65251,65252],1606:[65253,65254,65255,65256],1607:[65257,65258,65259,65260],1608:[65261,65262,0,0],1609:[65263,65264,64488,64489],1610:[65265,65266,65267,65268],1611:[65136,0,0,65137],1612:[65138,0,0,0],1613:[65140,0,0,0],1614:[65142,0,0,65143],1615:[65144,0,0,65145],1616:[65146,0,0,65147],1617:[65148,0,0,65149],1618:[65150,0,0,65151],1649:[64336,64337,0,0],1655:[64477,0,0,0],1657:[64358,64359,64360,64361],1658:[64350,64351,64352,64353],1659:[64338,64339,64340,64341],1662:[64342,64343,64344,64345],1663:[64354,64355,64356,64357],1664:[64346,64347,64348,64349],1667:[64374,64375,64376,64377],1668:[64370,64371,64372,64373],1670:[64378,64379,64380,64381],1671:[64382,64383,64384,64385],1672:[64392,64393,0,0],1676:[64388,64389,0,0],1677:[64386,64387,0,0],1678:[64390,64391,0,0],1681:[64396,64397,0,0],1688:[64394,64395,0,0],1700:[64362,64363,64364,64365],1702:[64366,64367,64368,64369],1705:[64398,64399,64400,64401],1709:[64467,64468,64469,64470],1711:[64402,64403,64404,64405],1713:[64410,64411,64412,64413],1715:[64406,64407,64408,64409],1722:[64414,64415,0,0],1723:[64416,64417,64418,64419],1726:[64426,64427,64428,64429],1728:[64420,64421,0,0],1729:[64422,64423,64424,64425],1733:[64480,64481,0,0],1734:[64473,64474,0,0],1735:[64471,64472,0,0],1736:[64475,64476,0,0],1737:[64482,64483,0,0],1739:[64478,64479,0,0],1740:[64508,64509,64510,64511],1744:[64484,64485,64486,64487],1746:[64430,64431,0,0],1747:[64432,64433,0,0]},hwr={\u0644\u0622:[65269,65270],\u0644\u0623:[65271,65272],\u0644\u0625:[65273,65274],\u0644\u0627:[65275,65276]},_tt=1604,dwr=/[\u0600-\u06ff\u0750-\u077f\u0870-\u089f\u08a0-\u08ff\ufb50-\ufdff\ufe70-\ufeff]/;cat=new Map;for(let[e,t]of Object.entries(fwr))pwr(t,e,cat);hat=typeof Intl<"u"&&"Segmenter"in Intl;k5={"!":"\uFE15","#":"\uFF03",$:"\uFF04","%":"\uFF05","&":"\uFF06","(":"\uFE35",")":"\uFE36","*":"\uFF0A","+":"\uFF0B",",":"\uFE10","-":"\uFE32",".":"\u30FB","/":"\uFF0F",":":"\uFE13",";":"\uFE14","<":"\uFE3F","=":"\uFF1D",">":"\uFE40","?":"\uFE16","@":"\uFF20","[":"\uFE47","\\":"\uFF3C","]":"\uFE48","^":"\uFF3E",_:"\uFE33","`":"\uFF40","{":"\uFE37","|":"\u2015","}":"\uFE38","~":"\uFF5E","\xA2":"\uFFE0","\xA3":"\uFFE1","\xA5":"\uFFE5","\xA6":"\uFFE4","\xAC":"\uFFE2","\xAF":"\uFFE3","\u2013":"\uFE32","\u2014":"\uFE31","\u2018":"\uFE43","\u2019":"\uFE44","\u201C":"\uFE41","\u201D":"\uFE42","\u2026":"\uFE19","\u22EF":"\uFE19","\u2027":"\u30FB","\u20A9":"\uFFE6","\u3001":"\uFE11","\u3002":"\uFE12","\u3008":"\uFE3F","\u3009":"\uFE40","\u300A":"\uFE3D","\u300B":"\uFE3E","\u300C":"\uFE41","\u300D":"\uFE42","\u300E":"\uFE43","\u300F":"\uFE44","\u3010":"\uFE3B","\u3011":"\uFE3C","\u3014":"\uFE39","\u3015":"\uFE3A","\u3016":"\uFE17","\u3017":"\uFE18","\uFF01":"\uFE15","\uFF08":"\uFE35","\uFF09":"\uFE36","\uFF0C":"\uFE10","\uFF0D":"\uFE32","\uFF0E":"\u30FB","\uFF1A":"\uFE13","\uFF1B":"\uFE14","\uFF1C":"\uFE3F","\uFF1E":"\uFE40","\uFF1F":"\uFE16","\uFF3B":"\uFE47","\uFF3D":"\uFE48","\uFF3F":"\uFE33","\uFF5B":"\uFE37","\uFF5C":"\u2015","\uFF5D":"\uFE38","\uFF5F":"\uFE35","\uFF60":"\uFE36","\uFF61":"\uFE12","\uFF62":"\uFE41","\uFF63":"\uFE42"};Pwr={10:!0,13:!0,32:!0,38:!0,41:!0,43:!0,45:!0,47:!0,173:!0,183:!0,8203:!0,8208:!0,8211:!0,8231:!0},zwr={40:!0};cae=class rne{constructor(t="",r=[],i=[]){this.text=t,this.sections=r,this.sectionIndex=i,this.imageSectionID=null,this._graphemes=null}graphemes(){var t;return(t=this._graphemes)!=null||(this._graphemes=ene(this.text)),this._graphemes}static fromFeature(t,r){let i=new rne;for(let n of t.sections)n.image?i.addImageSection(n):i.addTextSection(n,r);return i}length(){return this.graphemes().length}getSection(t){return this.sections[this.sectionIndex[t]]}getSectionIndex(t){return this.sectionIndex[t]}verticalizePunctuation(){this.text=Lwr(this.text),this._graphemes=null}hasZeroWidthSpaces(){return this.text.includes("\u200B")}trim(){let t=this.graphemes(),r=0;for(;rr&&Ett(t[i-1]);)i--;this.text=t.slice(r,i).join(""),this.sectionIndex=this.sectionIndex.slice(r,i),this._graphemes=null}substring(t,r){let i=this.graphemes().slice(t,r).join(""),n=this.sectionIndex.slice(t,r);return new rne(i,this.sections,n)}toCodeUnitIndex(t){return this.graphemes().slice(0,t).join("").length}toString(){return this.text}getMaxScale(){return this.sectionIndex.reduce((t,r)=>Math.max(t,this.sections[r].scale),0)}getMaxImageSize(t){let r=0,i=0;for(let n=0;n0?i[i.length-1]:"",a=ene(n+t);this.text+=t,this._graphemes=i.slice(0,n?-1:void 0).concat(a);let o=a.length-+!!n;for(let s=0;s=63743?null:++this.imageSectionID:(this.imageSectionID=57344,this.imageSectionID)}determineLineBreaks(t,r,i,n,a){let o=[],s=this.determineAverageLineWidth(t,r,i,n,a),l=this.hasZeroWidthSpaces(),u=this.graphemes(),f=null,c=0,h=0;for(let d=0;d0){let v=u[d-1].codePointAt(0),y=p.codePointAt(0),m=owr(v),w=btt(v)&&btt(y);(Pwr[v]||m||"imageName"in this.getSection(d-1)||u[d+1]!==void 0&&zwr[y]||w&&(f!=null?f:f=Cwr(this.text)).has(h))&&o.push(ktt(d,c,s,o,Iwr(v,y,m&&l),!1))}fae(p.codePointAt(0))||(c+=Mtt(p,this.getSection(d),i,n,t,a)),h+=p.length}return mat(ktt(this.length(),c,s,o,0,!0))}determineAverageLineWidth(t,r,i,n,a){let o=0,s=0;for(let u of this.graphemes()){let f=this.getSection(s);o+=Mtt(u,f,i,n,t,a),s++}let l=Math.max(1,Math.ceil(o/r));return o/l}};hae=Rwr(),Bwr=/[\u061c\u200e\u200f\u202a-\u202e\u2066-\u2069]/,qwr=new Set(["WS","FSI","LRI","RLI","PDI"]),Owr=new Set(["S","B"]);ine=4294967296,$ii=1/ine,Ctt=typeof TextDecoder>"u"?null:new TextDecoder("utf-8"),gat=class{constructor(e){this.buf=ArrayBuffer.isView(e)?e:new Uint8Array(e),this.dataView=new DataView(this.buf.buffer,this.buf.byteOffset,this.buf.byteLength),this.pos=0,this.type=0,this._valueStart=-1,this.length=this.buf.length}readFields(e,t,r=this.length){let i;for(;i=this.nextField(r);)e(i,t,this);return t}readMessage(e,t){return this.readFields(e,t,this.readVarint()+this.pos)}readFixed32(){let e=this.dataView.getUint32(this.pos,!0);return this.pos+=4,e}readSFixed32(){let e=this.dataView.getInt32(this.pos,!0);return this.pos+=4,e}readFixed64(){let e=this.dataView.getUint32(this.pos,!0)+this.dataView.getUint32(this.pos+4,!0)*ine;return this.pos+=8,e}readSFixed64(){let e=this.dataView.getUint32(this.pos,!0)+this.dataView.getInt32(this.pos+4,!0)*ine;return this.pos+=8,e}readFloat(){let e=this.dataView.getFloat32(this.pos,!0);return this.pos+=4,e}readDouble(){let e=this.dataView.getFloat64(this.pos,!0);return this.pos+=8,e}readVarint(e){let t=this.buf,r=t[this.pos++];if(r<128)return r;let i=r&127,n;return n=t[this.pos++],i|=(n&127)<<7,n<128||(n=t[this.pos++],i|=(n&127)<<14,n<128)||(n=t[this.pos++],i|=(n&127)<<21,n<128)?i:(n=t[this.pos],i|=(n&15)<<28,Xwr(i,e,this))}readSVarint(){let e=this.readVarint();return e%2==1?(e+1)/-2:e/2}readBoolean(){return!!this.readVarint()}readString(){let e=this.readVarint()+this.pos,t=this.pos;return this.pos=e,e-t>=12&&Ctt?Ctt.decode(this.buf.subarray(t,e)):Kwr(this.buf,t,e)}readBytes(){let e=this.readVarint()+this.pos,t=this.buf.subarray(this.pos,e);return this.pos=e,t}readPackedVarint(e=[],t){let r=this.readPackedEnd();for(;this.pos=e)return 0;let t=this.readVarint();return this.type=t&7,this._valueStart=this.pos,t>>>3}skip(e){let t=e&7;if(t===0)for(;this.buf[this.pos++]>127;);else if(t===2)this.pos=this.readVarint()+this.pos;else if(t===5)this.pos+=4;else if(t===1)this.pos+=8;else throw Error(`Unimplemented type: ${t}`)}};Pq=class{constructor(e,{pixelRatio:t,version:r,isWebGLImage:i=!1,stretchX:n,stretchY:a,content:o,textFitWidth:s,textFitHeight:l}){this.paddedRect=e,this.pixelRatio=t,this.stretchX=n,this.stretchY=a,this.content=o,this.version=r,this.needsFirstWebGLRender=i,this.textFitWidth=s,this.textFitHeight=l}get tl(){return[this.paddedRect.x+1,this.paddedRect.y+1]}get br(){return[this.paddedRect.x+this.paddedRect.w-1,this.paddedRect.y+this.paddedRect.h-1]}get tlbr(){return this.tl.concat(this.br)}get displaySize(){return[(this.paddedRect.w-2)/this.pixelRatio,(this.paddedRect.h-2)/this.pixelRatio]}},tAr=class{constructor(e,t){let r={},i={};this.haveRenderCallbacks=[],this.patchedUpdateVersion=-1;let n=[];this.addImages(e,r,n),this.addImages(t,i,n);let{w:a,h:o}=dae(n),s=new qf({width:a||1,height:o||1});for(let l in e){let u=e[l];if(u.isWebGLImage)continue;let f=r[l].paddedRect;qf.copy(u.data,s,{x:0,y:0},{x:f.x+1,y:f.y+1},u.data)}for(let l in t){let u=t[l],f=i[l].paddedRect,c=f.x+1,h=f.y+1,d=u.data.width,p=u.data.height;qf.copy(u.data,s,{x:0,y:0},{x:c,y:h},u.data),qf.copy(u.data,s,{x:0,y:p-1},{x:c,y:h-1},{width:d,height:1}),qf.copy(u.data,s,{x:0,y:0},{x:c,y:h+p},{width:d,height:1}),qf.copy(u.data,s,{x:d-1,y:0},{x:c-1,y:h},{width:1,height:p}),qf.copy(u.data,s,{x:0,y:0},{x:c+d,y:h},{width:1,height:p})}this.image=s,this.iconPositions=r,this.patternPositions=i}addImages(e,t,r){for(let i in e){let n=e[i],a={x:0,y:0,w:n.data.width+2,h:n.data.height+2};r.push(a),t[i]=new Pq(a,n),n.hasRenderCallback&&this.haveRenderCallbacks.push(i)}}patchUpdatedImages(e,t){if(e.dispatchRenderCallbacks(this.haveRenderCallbacks),this.patchedUpdateVersion!==e.updateVersion){this.patchedUpdateVersion=e.updateVersion;for(let r in this.iconPositions)this.patchUpdatedImage(this.iconPositions[r],e.getImage(r),t);for(let r in this.patternPositions)this.patchUpdatedImage(this.patternPositions[r],e.getImage(r),t)}}patchUpdatedImage(e,t,r){var l;if(!e||!t||!e.needsFirstWebGLRender&&e.version===t.version)return;e.needsFirstWebGLRender=!1,e.version=t.version;let[i,n]=e.tl,a=(l=t.userImage)==null?void 0:l.data;if(!kC(a)){r.update(t.data,void 0,{x:i,y:n});return}let{width:o,height:s}=t.data;r.context.setCustomLayerDefaults(),a.renderWithWebGL({gl:r.context.gl,texture:r.texture,x:i,y:n,width:o,height:s}),r.context.setDirty()}};As("ImagePosition",Pq),As("ImageAtlas",tAr);_at=(function(e){return e[e.none=0]="none",e[e.horizontal=1]="horizontal",e[e.vertical=2]="vertical",e[e.horizontalOnly=3]="horizontalOnly",e})(_at||{});Dtt=new RegExp("^\\p{gc=M}$","u");Ptt=32640;z5=class Sat extends Zr{constructor(t,r,i,n){super(t,r),this.angle=i,n!==void 0&&(this.segment=n)}clone(){return new Sat(this.x,this.y,this.angle,this.segment)}};As("Anchor",z5);x7=class{constructor(e,t,r,i,n,a,o,s,l,u){var f;if(this.boxStartIndex=e.length,l){let c=a.top,h=a.bottom,d=a.collisionPadding;d&&(c-=d[1],h+=d[3]);let p=h-c;p>0&&(p=Math.max(10,p),this.circleDiameter=p)}else{let c=(f=a.image)!=null&&f.content&&(a.image.textFitWidth||a.image.textFitHeight)?Mat(a):{x1:a.left,y1:a.top,x2:a.right,y2:a.bottom};c.y1=c.y1*o-s[0],c.y2=c.y2*o+s[2],c.x1=c.x1*o-s[3],c.x2=c.x2*o+s[1];let h=a.collisionPadding;if(h&&(c.x1-=h[0]*o,c.y1-=h[1]*o,c.x2+=h[2]*o,c.y2+=h[3]*o),u){let d=new Zr(c.x1,c.y1),p=new Zr(c.x2,c.y1),v=new Zr(c.x1,c.y2),y=new Zr(c.x2,c.y2),m=u*Math.PI/180;d._rotate(m),p._rotate(m),v._rotate(m),y._rotate(m),c.x1=Math.min(d.x,p.x,v.x,y.x),c.x2=Math.max(d.x,p.x,v.x,y.x),c.y1=Math.min(d.y,p.y,v.y,y.y),c.y2=Math.max(d.y,p.y,v.y,y.y)}e.emplaceBack(t.x,t.y,c.x1,c.y1,c.x2,c.y2,r,i,n)}this.boxEndIndex=e.length}},kAr=class{constructor(e=[],t=(r,i)=>ri)){if(this.data=e,this.length=this.data.length,this.compare=t,this.length>0)for(let r=(this.length>>1)-1;r>=0;r--)this._down(r)}push(e){this.data.push(e),this._up(this.length++)}pop(){if(this.length===0)return;let e=this.data[0],t=this.data.pop();return--this.length>0&&(this.data[0]=t,this._down(0)),e}peek(){return this.data[0]}_up(e){let{data:t,compare:r}=this,i=t[e];for(;e>0;){let n=e-1>>1,a=t[n];if(r(i,a)>=0)break;t[e]=a,e=n}t[e]=i}_down(e){let{data:t,compare:r}=this,i=this.length>>1,n=t[e];for(;e=0)break;t[e]=t[a],e=a}t[e]=n}};S5=class{constructor(e,t,r,i){this.p=new Zr(e,t),this.h=r,this.d=FAr(this.p,i),this.max=this.d+this.h*Math.SQRT2}};Iq=(function(e){return e[e.center=1]="center",e[e.left=2]="left",e[e.right=3]="right",e[e.top=4]="top",e[e.bottom=5]="bottom",e[e["top-left"]=6]="top-left",e[e["top-right"]=7]="top-right",e[e["bottom-left"]=8]="bottom-left",e[e["bottom-right"]=9]="bottom-right",e})({}),vae=1/0;OAr=[{name:"a_fade_opacity",components:1,type:"Uint8",offset:0}];ane=class{constructor(e){this.layoutVertexArray=new u_r,this.indexArray=new D1,this.programConfigurations=e,this.segments=new tc,this.dynamicLayoutVertexArray=new f_r,this.opacityVertexArray=new c_r,this.hasVisibleVertices=!1,this.placedSymbolArray=new hnt}isEmpty(){return this.layoutVertexArray.length===0&&this.indexArray.length===0&&this.dynamicLayoutVertexArray.length===0&&this.opacityVertexArray.length===0}upload(e,t,r,i){this.isEmpty()||(r&&(this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,twr.members),this.indexBuffer=e.createIndexBuffer(this.indexArray,t),this.dynamicLayoutVertexBuffer=e.createVertexBuffer(this.dynamicLayoutVertexArray,rwr.members,!0),this.opacityVertexBuffer=e.createVertexBuffer(this.opacityVertexArray,OAr,!0),this.opacityVertexBuffer.itemSize=1),(r||i)&&this.programConfigurations.upload(e))}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.dynamicLayoutVertexBuffer.destroy(),this.opacityVertexBuffer.destroy())}};As("SymbolBuffers",ane);one=class{constructor(e,t,r){this.layoutVertexArray=new e,this.layoutAttributes=t,this.indexArray=new r,this.segments=new tc,this.collisionVertexArray=new h_r}upload(e){this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,this.layoutAttributes),this.indexBuffer=e.createIndexBuffer(this.indexArray),this.collisionVertexBuffer=e.createVertexBuffer(this.collisionVertexArray,iwr.members,!0)}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.segments.destroy(),this.collisionVertexBuffer.destroy())}};As("CollisionBuffers",one);LC=class{constructor(e){this.collisionBoxArray=e.collisionBoxArray,this.zoom=e.zoom,this.overscaling=e.overscaling,this.layers=e.layers,this.layerIds=this.layers.map(o=>o.id),this.index=e.index,this.pixelRatio=e.pixelRatio,this.sourceLayerIndex=e.sourceLayerIndex,this.hasDependencies=!0,this.hasRTLText=!1,this.maxHeightOffset=0,this.sortKeyRanges=[],this.collisionCircleArray=[],this.maxGlyphs=65535;let t=this.layers[0]._unevaluatedLayout._values;this.textSizeData=ztt(this.zoom,t["text-size"]),this.iconSizeData=ztt(this.zoom,t["icon-size"]);let r=this.layers[0].layout,i=r.get("symbol-sort-key"),n=r.get("symbol-z-order");this.canOverlap=sC(r,"text-overlap","text-allow-overlap")!=="never"||sC(r,"icon-overlap","icon-allow-overlap")!=="never"||r.get("text-ignore-placement")||r.get("icon-ignore-placement"),this.sortFeaturesByKey=n!=="viewport-y"&&!i.isConstant();let a=n==="viewport-y"||n==="auto"&&!this.sortFeaturesByKey;this.sortFeaturesByY=a&&this.canOverlap,r.get("symbol-placement")==="point"&&(this.writingModes=r.get("text-writing-mode").map(o=>_at[o])),this.stateDependentLayerIds=this.layers.filter(o=>o.isStateDependent()).map(o=>o.id),this.sourceID=e.sourceID}createArrays(){this.text=new ane(new o3(this.layers,this.zoom,e=>e.startsWith("text"))),this.icon=new ane(new o3(this.layers,this.zoom,e=>e.startsWith("icon"))),this.glyphOffsetArray=new vnt,this.lineVertexArray=new mnt,this.symbolInstances=new pnt,this.textAnchorOffsets=new gnt}calculateGlyphDependencies(e,t,r,i,n){var l;let a=(i||this.allowVerticalPlacement)&&n,o=cae.fromFeature(e,r),s=o.graphemes();for(let u=0;u0)&&(a.value.kind!=="constant"||a.value.value.length>0),u=s.value.kind!=="constant"||!!s.value.value||Object.keys(s.parameters).length>0,f=n.get("symbol-sort-key");if(this.features=[],!l&&!u)return;let c=t.iconDependencies,h=t.glyphDependencies,d=t.availableImages,p=new Xu(this.zoom);for(let{feature:y,id:m,index:w,sourceLayerIndex:_}of e){let b=i._featureFilter.needGeometry,M=gx(y,b);if(!i._featureFilter.filter(p,M,r))continue;b||(M.geometry=d3(y));let x;if(l){let E=i.getValueAndResolveTokens("text-field",M,r,d),S=Xy.factory(E);this.hasRTLText||(this.hasRTLText=NAr(S)),x=Swr(S,i,M)}let A;if(u){let E=i.getValueAndResolveTokens("icon-image",M,r,d);A=E instanceof Om?E:Om.fromString(E)}if(!x&&!A)continue;let T=this.sortFeaturesByKey?f.evaluate(M,{},r):void 0,g={id:m,text:x,icon:A,index:w,sourceLayerIndex:_,geometry:M.geometry,properties:y.properties,type:SC.types[y.type],sortKey:T};if(this.features.push(g),A&&(c[A.name]=!0),x){let E=a.evaluate(M,{},r).join(","),S=n.get("text-rotation-alignment")!=="viewport"&&n.get("symbol-placement")!=="point";this.allowVerticalPlacement=(v=this.writingModes)==null?void 0:v.includes(2);let C=tne(x.toString());this.calculateGlyphDependencies(x,h,E,S,C);for(let k of x.sections)k.image&&(c[k.image.name]=!0)}}n.get("symbol-placement")==="line"&&(this.features=kwr(this.features)),this.sortFeaturesByKey&&this.features.sort((y,m)=>y.sortKey-m.sortKey)}update(e,t,r){this.stateDependentLayers.length&&(this.text.programConfigurations.updatePaintArrays(e,t,this.layers,{imagePositions:r}),this.icon.programConfigurations.updatePaintArrays(e,t,this.layers,{imagePositions:r}))}addFeatures({options:e,canonical:t,glyphMap:r,glyphPositions:i,iconMap:n,iconPositions:a,showCollisionBoxes:o}){PAr({bucket:this,glyphMap:r,glyphPositions:i,imageMap:n,imagePositions:a,showCollisionBoxes:o,canonical:t,subdivisionGranularity:e.subdivisionGranularity,hasPromoteId:e.featureIndex.promoteId!=null})}isEmpty(){return this.symbolInstances.length===0}uploadPending(){return!this.uploaded||this.text.programConfigurations.needsUpload||this.icon.programConfigurations.needsUpload}upload(e){!this.uploaded&&this.hasDebugData()&&(this.textCollisionBox.upload(e),this.iconCollisionBox.upload(e)),this.text.upload(e,this.sortFeaturesByY,!this.uploaded,this.text.programConfigurations.needsUpload),this.icon.upload(e,this.sortFeaturesByY,!this.uploaded,this.icon.programConfigurations.needsUpload),this.uploaded=!0}destroyDebugData(){this.textCollisionBox.destroy(),this.iconCollisionBox.destroy()}destroy(){this.text.destroy(),this.icon.destroy(),this.hasDebugData()&&this.destroyDebugData()}addToLineVertexArray(e,t){let r=this.lineVertexArray.length;if(e.segment!==void 0){let i=e.dist(t[e.segment+1]),n=e.dist(t[e.segment]),a={};for(let o=e.segment+1;o=0;o--)a[o]={x:t[o].x,y:t[o].y,tileUnitDistanceFromAnchor:n},o>0&&(n+=t[o-1].dist(t[o]));for(let o=0;o0}hasIconData(){return this.icon.segments.get().length>0}hasDebugData(){return this.textCollisionBox&&this.iconCollisionBox}hasTextCollisionBoxData(){return this.hasDebugData()&&this.textCollisionBox.segments.get().length>0}hasIconCollisionBoxData(){return this.hasDebugData()&&this.iconCollisionBox.segments.get().length>0}addIndicesForPlacedSymbol(e,t){let r=e.placedSymbolArray.get(t),i=r.vertexStartIndex+r.numGlyphs*4;for(let n=r.vertexStartIndex;ni[o]-i[s]||n[s]-n[o]),a}addToSortKeyRanges(e,t){let r=this.sortKeyRanges[this.sortKeyRanges.length-1];(r==null?void 0:r.sortKey)===t?r.symbolInstanceEnd=e+1:this.sortKeyRanges.push({sortKey:t,symbolInstanceStart:e,symbolInstanceEnd:e+1})}sortFeatures(e){if(this.sortFeaturesByY&&this.sortedAngle!==e&&!(this.text.segments.get().length>1||this.icon.segments.get().length>1)){this.symbolInstanceIndexes=this.getSortedSymbolIndexes(e),this.sortedAngle=e,this.text.indexArray.clear(),this.icon.indexArray.clear(),this.featureSortOrder=[];for(let t of this.symbolInstanceIndexes){let r=this.symbolInstances.get(t);this.featureSortOrder.push(r.featureIndex);let i=[r.rightJustifiedTextSymbolIndex,r.centerJustifiedTextSymbolIndex,r.leftJustifiedTextSymbolIndex];for(let n=0;n=0&&i.indexOf(a)===n&&this.addIndicesForPlacedSymbol(this.text,a)}r.verticalPlacedTextSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.text,r.verticalPlacedTextSymbolIndex),r.placedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,r.placedIconSymbolIndex),r.verticalPlacedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,r.verticalPlacedIconSymbolIndex)}this.text.indexBuffer&&this.text.indexBuffer.updateData(this.text.indexArray),this.icon.indexBuffer&&this.icon.indexBuffer.updateData(this.icon.indexArray)}}};As("SymbolBucket",LC,{omit:["layers","collisionBoxArray","features","compareText"]});UAr=()=>qtt||(qtt=new Nh({"symbol-placement":new ms(cn.layout_symbol["symbol-placement"],"symbol-placement"),"symbol-spacing":new ms(cn.layout_symbol["symbol-spacing"],"symbol-spacing"),"symbol-avoid-edges":new ms(cn.layout_symbol["symbol-avoid-edges"],"symbol-avoid-edges"),"symbol-sort-key":new al(cn.layout_symbol["symbol-sort-key"],"symbol-sort-key"),"symbol-z-order":new ms(cn.layout_symbol["symbol-z-order"],"symbol-z-order"),"icon-allow-overlap":new ms(cn.layout_symbol["icon-allow-overlap"],"icon-allow-overlap"),"icon-overlap":new ms(cn.layout_symbol["icon-overlap"],"icon-overlap"),"icon-ignore-placement":new ms(cn.layout_symbol["icon-ignore-placement"],"icon-ignore-placement"),"icon-optional":new ms(cn.layout_symbol["icon-optional"],"icon-optional"),"icon-rotation-alignment":new al(cn.layout_symbol["icon-rotation-alignment"],"icon-rotation-alignment"),"icon-size":new al(cn.layout_symbol["icon-size"],"icon-size"),"icon-text-fit":new ms(cn.layout_symbol["icon-text-fit"],"icon-text-fit"),"icon-text-fit-padding":new ms(cn.layout_symbol["icon-text-fit-padding"],"icon-text-fit-padding"),"icon-image":new al(cn.layout_symbol["icon-image"],"icon-image"),"icon-rotate":new al(cn.layout_symbol["icon-rotate"],"icon-rotate"),"icon-padding":new al(cn.layout_symbol["icon-padding"],"icon-padding"),"icon-keep-upright":new ms(cn.layout_symbol["icon-keep-upright"],"icon-keep-upright"),"icon-offset":new al(cn.layout_symbol["icon-offset"],"icon-offset"),"icon-anchor":new al(cn.layout_symbol["icon-anchor"],"icon-anchor"),"icon-pitch-alignment":new ms(cn.layout_symbol["icon-pitch-alignment"],"icon-pitch-alignment"),"text-pitch-alignment":new ms(cn.layout_symbol["text-pitch-alignment"],"text-pitch-alignment"),"text-rotation-alignment":new ms(cn.layout_symbol["text-rotation-alignment"],"text-rotation-alignment"),"text-field":new al(cn.layout_symbol["text-field"],"text-field"),"text-font":new al(cn.layout_symbol["text-font"],"text-font"),"text-size":new al(cn.layout_symbol["text-size"],"text-size"),"text-max-width":new al(cn.layout_symbol["text-max-width"],"text-max-width"),"text-line-height":new ms(cn.layout_symbol["text-line-height"],"text-line-height"),"text-letter-spacing":new al(cn.layout_symbol["text-letter-spacing"],"text-letter-spacing"),"text-justify":new al(cn.layout_symbol["text-justify"],"text-justify"),"text-radial-offset":new al(cn.layout_symbol["text-radial-offset"],"text-radial-offset"),"text-variable-anchor":new ms(cn.layout_symbol["text-variable-anchor"],"text-variable-anchor"),"text-variable-anchor-offset":new al(cn.layout_symbol["text-variable-anchor-offset"],"text-variable-anchor-offset"),"text-anchor":new al(cn.layout_symbol["text-anchor"],"text-anchor"),"text-max-angle":new ms(cn.layout_symbol["text-max-angle"],"text-max-angle"),"text-writing-mode":new ms(cn.layout_symbol["text-writing-mode"],"text-writing-mode"),"text-rotate":new al(cn.layout_symbol["text-rotate"],"text-rotate"),"text-padding":new ms(cn.layout_symbol["text-padding"],"text-padding"),"text-keep-upright":new ms(cn.layout_symbol["text-keep-upright"],"text-keep-upright"),"text-transform":new al(cn.layout_symbol["text-transform"],"text-transform"),"text-offset":new al(cn.layout_symbol["text-offset"],"text-offset"),"text-allow-overlap":new ms(cn.layout_symbol["text-allow-overlap"],"text-allow-overlap"),"text-overlap":new ms(cn.layout_symbol["text-overlap"],"text-overlap"),"text-ignore-placement":new ms(cn.layout_symbol["text-ignore-placement"],"text-ignore-placement"),"text-optional":new ms(cn.layout_symbol["text-optional"],"text-optional"),"symbol-height-offset":new al(cn.layout_symbol["symbol-height-offset"],"symbol-height-offset"),"symbol-height-anchor":new ms(cn.layout_symbol["symbol-height-anchor"],"symbol-height-anchor")})),GAr=()=>Ott||(Ott=new Nh({"icon-opacity":new al(cn.paint_symbol["icon-opacity"],"icon-opacity"),"icon-color":new al(cn.paint_symbol["icon-color"],"icon-color"),"icon-halo-color":new al(cn.paint_symbol["icon-halo-color"],"icon-halo-color"),"icon-halo-width":new al(cn.paint_symbol["icon-halo-width"],"icon-halo-width"),"icon-halo-blur":new al(cn.paint_symbol["icon-halo-blur"],"icon-halo-blur"),"icon-translate":new ms(cn.paint_symbol["icon-translate"],"icon-translate"),"icon-translate-anchor":new ms(cn.paint_symbol["icon-translate-anchor"],"icon-translate-anchor"),"text-opacity":new al(cn.paint_symbol["text-opacity"],"text-opacity"),"text-color":new al(cn.paint_symbol["text-color"],"text-color",{runtimeType:T1,getOverride:e=>e.textColor,hasOverride:e=>!!e.textColor}),"text-halo-color":new al(cn.paint_symbol["text-halo-color"],"text-halo-color"),"text-halo-width":new al(cn.paint_symbol["text-halo-width"],"text-halo-width"),"text-halo-blur":new al(cn.paint_symbol["text-halo-blur"],"text-halo-blur"),"text-translate":new ms(cn.paint_symbol["text-translate"],"text-translate"),"text-translate-anchor":new ms(cn.paint_symbol["text-translate-anchor"],"text-translate-anchor")})),Jre={get paint(){return GAr()},get layout(){return UAr()}},Iat=class{constructor(e){if(e.property.overrides===void 0)throw Error("overrides must be provided to instantiate FormatSectionOverride class");this.type=e.property.overrides?e.property.overrides.runtimeType:yC,this.defaultValue=e}evaluate(e){if(e.formattedSection){let t=this.defaultValue.property.overrides;if(t!=null&&t.hasOverride(e.formattedSection))return t.getOverride(e.formattedSection)}return e.feature&&e.featureState?this.defaultValue.evaluate(e.feature,e.featureState):this.defaultValue.property.specification.default}eachChild(e){if(!this.defaultValue.isConstant()){let t=this.defaultValue.value;e(t._styleExpression.expression)}}outputDefined(){return!1}serialize(){return null}};As("FormatSectionOverride",Iat,{omit:["defaultValue"]});mae=e=>e.type==="symbol",HAr=class sne extends C1{constructor(t,r){super(t,Jre,r)}recalculate(t,r){super.recalculate(t,r);let i=this.layout.get("icon-rotation-alignment");if((i.value.kind!=="constant"||i.value.value==="auto")&&(this.layout._values["icon-rotation-alignment"]=new _v(i.property,{kind:"constant",value:this.layout.get("symbol-placement")==="point"?"viewport":"map"},i.parameters)),this.layout.get("text-rotation-alignment")==="auto"&&(this.layout.get("symbol-placement")==="point"?this.layout._values["text-rotation-alignment"]="viewport":this.layout._values["text-rotation-alignment"]="map"),this.layout.get("text-pitch-alignment")==="auto"&&(this.layout._values["text-pitch-alignment"]=this.layout.get("text-rotation-alignment")==="map"?"map":"viewport"),this.layout.get("icon-pitch-alignment")==="auto"&&(this.layout._values["icon-pitch-alignment"]=this.layout.get("icon-rotation-alignment").constantOr("viewport")),this.layout.get("symbol-placement")==="point"){let n=this.layout.get("text-writing-mode");if(n){let a=[];for(let o of n)a.includes(o)||a.push(o);this.layout._values["text-writing-mode"]=a}else this.layout._values["text-writing-mode"]=["horizontal"]}this._setPaintOverrides()}getValueAndResolveTokens(t,r,i,n){let a=this.layout.get(t).evaluate(r,{},i,n),o=this._unevaluatedLayout._values[t];return!o.isDataDriven()&&!yq(o.value)&&a?VAr(r.properties,a):a}createBucket(t){return new LC(t)}queryRadius(){return 0}queryIntersectsFeature(){throw Error("Should take a different path in FeatureIndex")}_setPaintOverrides(){for(let t of Jre.paint.overridableProperties){if(!sne.hasPaintOverride(this.layout,t))continue;let r=this.paint.get(t),i=new Une(new Iat(r),`layers[${this.id}].paint.${r.property.name}`,r.property.specification),n=null;n=r.value.kind==="constant"||r.value.kind==="source"?new Kk("source",i):new L7("composite",i,r.value.zoomStops),this.paint._values[t]=new _v(r.property,n,r.parameters)}}_handleOverridablePaintPropertyUpdate(t,r,i){return!this.layout||r.isDataDriven()||i.isDataDriven()?!1:sne.hasPaintOverride(this.layout,t)}static hasPaintOverride(t,r){let i=t.get("text-field"),n=Jre.paint.properties[r],a=!1,o=s=>{var l;for(let u of s)if((l=n.overrides)!=null&&l.hasOverride(u)){a=!0;return}};if(i.value.kind==="constant"&&i.value.value instanceof Xy)o(i.value.value.sections);else if(i.value.kind==="source"||i.value.kind==="composite"){let s=u=>{if(!a)if(u instanceof O5&&eh(u.value)===gC){let f=u.value;o(f.sections)}else u instanceof eit?o(u.sections):u.eachChild(s)},l=i.value;l._styleExpression&&s(l._styleExpression.expression)}return a}};WAr=()=>Ntt||(Ntt=new Nh({"background-color":new ms(cn.paint_background["background-color"],"background-color"),"background-pattern":new unt(cn.paint_background["background-pattern"],"background-pattern"),"background-opacity":new ms(cn.paint_background["background-opacity"],"background-opacity")})),$Ar={get paint(){return WAr()}},Rat=e=>e.type==="background",YAr=class extends C1{constructor(e,t){super(e,$Ar,t)}};qat=e=>e.type==="custom",XAr=class extends C1{constructor(e,t){super(e,{},t),this.onAdd=r=>{this.implementation.onAdd&&this.implementation.onAdd(r,r.painter.context.gl)},this.onRemove=r=>{this.implementation.onRemove&&this.implementation.onRemove(r,r.painter.context.gl)},this.implementation=e}is3D(){return this.implementation.renderingMode==="3d"}hasOffscreenPass(){return this.implementation.prerender!==void 0}recalculate(){}updateTransitions(){}hasTransition(){return!1}serialize(){throw Error("Custom layers cannot be serialized")}};ZAr=class{constructor(e){this._methodToThrottle=e,this._triggered=!1,this._channel=new MessageChannel,this._channel.port2.onmessage=()=>{this._triggered=!1,this._methodToThrottle()}}trigger(){var e;this._triggered||(this._triggered=!0,(e=this._channel)==null||e.port1.postMessage(!0))}remove(){delete this._channel,this._methodToThrottle=()=>{}}},KAr={once:!0},Oat=class{constructor(e,t){this.target=e,this.mapId=t,this.resolveRejects={},this.tasks={},this.taskQueue=[],this.abortControllers={},this.messageHandlers={},this.invoker=new ZAr(()=>this.process()),this.subscription=jk(this.target,"message",r=>this.receive(r),!1),this.globalScope=n3(self)?e:window}registerMessageHandler(e,t){this.messageHandlers[e]=t}unregisterMessageHandler(e){delete this.messageHandlers[e]}sendAsync(e,t){return new Promise((r,i)=>{let n=Math.round(Math.random()*1e18).toString(36).substring(0,10),a=t?jk(t.signal,"abort",()=>{a==null||a.unsubscribe(),delete this.resolveRejects[n];let l={id:n,type:"",origin:location.origin,targetMapId:e.targetMapId,sourceMapId:this.mapId};this.target.postMessage(l),i(new Y5(t.signal.reason))},KAr):null;this.resolveRejects[n]={resolve:l=>{a==null||a.unsubscribe(),r(l)},reject:l=>{a==null||a.unsubscribe(),i(l)}};let o=[],s=Ql(Zs({},e),{id:n,sourceMapId:this.mapId,origin:location.origin,data:Uk(e.data,o)});this.target.postMessage(s,{transfer:o})})}receive(e){let t=e.data,r=t.id,i=["file://","resource://android","null"],n=[t.origin,location.origin],a=t.origin===location.origin,o=n.some(s=>i.includes(s));if((a||o)&&!(t.targetMapId&&this.mapId!==t.targetMapId)){if(t.type===""){delete this.tasks[r];let s=this.abortControllers[r];delete this.abortControllers[r],s&&s.abort();return}if(n3(self)||t.mustQueue){this.tasks[r]=t,this.taskQueue.push(r),this.invoker.trigger();return}this.processTask(r,t)}}process(){if(this.taskQueue.length===0)return;let e=this.taskQueue.shift(),t=this.tasks[e];delete this.tasks[e],this.taskQueue.length>0&&this.invoker.trigger(),t&&this.processTask(e,t)}processTask(e,t){return Ls(this,null,function*(){if(t.type===""){let n=this.resolveRejects[e];if(delete this.resolveRejects[e],!n)return;t.error?n.reject(u0(Gk(t.error))):n.resolve(Gk(t.data));return}if(!this.messageHandlers[t.type]){this.completeTask(e,null,null);return}let r=Gk(t.data),i=new AbortController;this.abortControllers[e]=i;try{let n=yield this.messageHandlers[t.type](t.sourceMapId,r,i);this.completeTask(e,null,n)}catch(n){this.completeTask(e,u0(n))}})}completeTask(e,t,r){let i=[];delete this.abortControllers[e];let n={id:e,type:"",sourceMapId:this.mapId,origin:location.origin,error:t?Uk(t):null,data:Uk(r,i)};this.target.postMessage(n,{transfer:i})}remove(){this.invoker.remove(),this.subscription.unsubscribe()}};PC=class{constructor(e,t,r){if(!JAr(e,t,r))throw Error(`x=${t}, y=${r}, z=${e} outside of bounds. 0<=x<${2**e}, 0<=y<${2**e} 0<=z<=25 `);this.z=e,this.x=t,this.y=r,this.key=r3(0,e,e,t,r)}equals(e){return this.z===e.z&&this.x===e.x&&this.y===e.y}url(e,t,r){let i=QAr(this.x,this.y,this.z),n=e4r(this.z,this.x,this.y);return e[(this.x+this.y)%e.length].replace(/{prefix}/g,(this.x%16).toString(16)+(this.y%16).toString(16)).replace(/{z}/g,String(this.z)).replace(/{x}/g,String(this.x)).replace(/{y}/g,String(r==="tms"?2**this.z-this.y-1:this.y)).replace(/{ratio}/g,t>1?"@2x":"").replace(/{quadkey}/g,n).replace(/{bbox-epsg-3857}/g,i)}isChildOf(e){let t=this.z-e.z;return t>0&&e.x===this.x>>t&&e.y===this.y>>t}getTilePoint(e){let t=2**this.z;return new Zr((e.x*t-this.x)*Aa,(e.y*t-this.y)*Aa)}toString(){return`${this.z}/${this.x}/${this.y}`}},zC=class{constructor(e,t){this.wrap=e,this.canonical=t,this.key=r3(e,t.z,t.z,t.x,t.y)}},d0=class xv{constructor(t,r,i,n,a){if(this.terrainRttPosMatrix32f=null,t= z; overscaledZ = ${t}; z = ${i}`);this.overscaledZ=t,this.wrap=r,this.canonical=new PC(i,+n,+a),this.key=r3(r,t,i,n,a)}clone(){return new xv(this.overscaledZ,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)}equals(t){return this.overscaledZ===t.overscaledZ&&this.wrap===t.wrap&&this.canonical.equals(t.canonical)}scaledTo(t){if(t>this.overscaledZ)throw Error(`targetZ > this.overscaledZ; targetZ = ${t}; overscaledZ = ${this.overscaledZ}`);let r=this.canonical.z-t;return t>this.canonical.z?new xv(t,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y):new xv(t,this.wrap,t,this.canonical.x>>r,this.canonical.y>>r)}isOverscaled(){return this.overscaledZ>this.canonical.z}calculateScaledKey(t,r){if(t>this.overscaledZ)throw Error(`targetZ > this.overscaledZ; targetZ = ${t}; overscaledZ = ${this.overscaledZ}`);let i=this.canonical.z-t;return t>this.canonical.z?r3(this.wrap*+r,t,this.canonical.z,this.canonical.x,this.canonical.y):r3(this.wrap*+r,t,t,this.canonical.x>>i,this.canonical.y>>i)}isChildOf(t){if(t.wrap!==this.wrap||this.overscaledZ-t.overscaledZ<=0)return!1;if(t.overscaledZ===0)return this.overscaledZ>0;let r=this.canonical.z-t.canonical.z;return r<0?!1:t.canonical.x===this.canonical.x>>r&&t.canonical.y===this.canonical.y>>r}children(t){if(this.overscaledZ>=t)return[new xv(this.overscaledZ+1,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)];let r=this.canonical.z+1,i=this.canonical.x*2,n=this.canonical.y*2;return[new xv(r,this.wrap,r,i,n),new xv(r,this.wrap,r,i+1,n),new xv(r,this.wrap,r,i,n+1),new xv(r,this.wrap,r,i+1,n+1)]}isLessThan(t){return this.wrapt.wrap?!1:this.overscaledZt.overscaledZ?!1:this.canonical.xt.canonical.x?!1:this.canonical.y=0&&t=0&&r=u)return null;let c=this.canonical.x+n,h=this.wrap;return c<0?(h-=Math.ceil(-c/u),c=(c%u+u)%u):c>=u&&(h+=Math.floor(c/u),c%=u),{tileID:new xv(this.overscaledZ,h,l,c,f),x:o,y:s}}};Qre=Math.PI*6378137;As("CanonicalTileID",PC),As("OverscaledTileID",d0,{omit:["terrainRttPosMatrix32f"]});IC="_geojsonTileLayer",t4r=class{constructor(e){this._stringToNumber={},this._numberToString=[];for(let t=0;t=this._numberToString.length)throw Error(`Out of bounds. Index requested n=${e} can't be >= this._numberToString.length ${this._numberToString.length}`);return this._numberToString[e]}},xae=class{constructor(e,t,r,i,n){this.type="Feature",this._vectorTileFeature=e,this._x=r,this._y=i,this._z=t;for(let a in e.properties)typeof e.properties[a]=="string"&&e.properties[a].startsWith("__$json__:")&&(e.properties[a]=JSON.parse(e.properties[a].slice(10)));this.properties=e.properties,this.id=n}projectPoint(e,t,r,i){return[(e.x+t)*360/i-180,360/Math.PI*Math.atan(Math.exp((1-(e.y+r)*2/i)*Math.PI))-90]}projectLine(e,t,r,i){return e.map(n=>this.projectPoint(n,t,r,i))}get geometry(){if(this._geometry)return this._geometry;let e=this._vectorTileFeature,t=e.extent*2**this._z,r=e.extent*this._x,i=e.extent*this._y,n=e.loadGeometry();switch(e.type){case 1:{let a=[];for(let s of n)a.push(s[0]);let o=this.projectLine(a,r,i,t);this._geometry=a.length===1?{type:"Point",coordinates:o[0]}:{type:"MultiPoint",coordinates:o};break}case 2:{let a=n.map(o=>this.projectLine(o,r,i,t));this._geometry=a.length===1?{type:"LineString",coordinates:a[0]}:{type:"MultiLineString",coordinates:a};break}case 3:{let a=Qnt(n),o=[];for(let s of a)o.push(s.map(l=>this.projectLine(l,r,i,t)));this._geometry=o.length===1?{type:"Polygon",coordinates:o[0]}:{type:"MultiPolygon",coordinates:o};break}default:throw Error(`unknown feature type: ${e.type}`)}return this._geometry}set geometry(e){this._geometry=e}toJSON(){let e={geometry:this.geometry};for(let t in this)t!=="_geometry"&&t!=="_vectorTileFeature"&&t!=="_x"&&t!=="_y"&&t!=="_z"&&(e[t]=this[t]);return e}},m3=class{constructor(e,t,r){this._name=e,this.dataBuffer=t,typeof r=="number"?this._size=r:(this.nullabilityBuffer=r,this._size=r.size())}getValue(e){return this.nullabilityBuffer&&!this.nullabilityBuffer.get(e)?null:this.getValueFromBuffer(e)}has(e){var t;return((t=this.nullabilityBuffer)==null?void 0:t.get(e))||!this.nullabilityBuffer}get name(){return this._name}get size(){return this._size}},Bq=class extends m3{},bae=class extends Bq{getValueFromBuffer(e){return this.dataBuffer[e]}},_ae=class extends Bq{getValueFromBuffer(e){return this.dataBuffer[e]}},Nat=class extends m3{constructor(e,t,r,i){super(e,t,i),this.delta=r}},wae=class extends Nat{constructor(e,t,r,i,n){super(e,n?Int32Array.of(t):Uint32Array.of(t),r,i)}getValueFromBuffer(e){return this.dataBuffer[0]+e*this.delta}},Aae=class extends m3{constructor(e,t,r,i){super(e,i?Int32Array.of(t):Uint32Array.of(t),r)}getValueFromBuffer(e){return this.dataBuffer[0]}},r4r=class{constructor(e,t,r,i,n=4096){if(this._name=e,this._geometryVector=t,this._idVector=r,this._propertyVectors=i,this._extent=n,e.length===0)throw Error("Missing layer name")}get name(){return this._name}get idVector(){return this._idVector}get geometryVector(){return this._geometryVector}get propertyVectors(){var e;return(e=this._propertyVectors)!=null?e:[]}getPropertyVector(e){return this.propertyVectorsMap||(this.propertyVectorsMap=new Map(this.propertyVectors.map(t=>[t.name,t]))),this.propertyVectorsMap.get(e)}get numFeatures(){return this.geometryVector.numGeometries}get extent(){return this._extent}getFeatures(){let e=[],t=this.geometryVector.getGeometries();for(let r=0;r>>32-e;lne=Tae,Mae=65536;une=Gat(Mae),E4r=3*une/256+une|0;(function(e){e.PRESENT="PRESENT",e.DATA="DATA",e.OFFSET="OFFSET",e.LENGTH="LENGTH"})(Qc||(Qc={}));(function(e){e.NONE="NONE",e.SINGLE="SINGLE",e.SHARED="SHARED",e.VERTEX="VERTEX",e.MORTON="MORTON",e.FSST="FSST"})(J0||(J0={}));(function(e){e.VERTEX="VERTEX",e.INDEX="INDEX",e.STRING="STRING",e.KEY="KEY"})(Im||(Im={}));(function(e){e.VAR_BINARY="VAR_BINARY",e.GEOMETRIES="GEOMETRIES",e.PARTS="PARTS",e.RINGS="RINGS",e.TRIANGLES="TRIANGLES",e.SYMBOL="SYMBOL",e.DICTIONARY="DICTIONARY"})(Sh||(Sh={}));y5r=[Qc.PRESENT,Qc.DATA,Qc.OFFSET,Qc.LENGTH],Wtt=[Yl.NONE,Yl.DELTA,Yl.COMPONENTWISE_DELTA,Yl.RLE,Yl.MORTON],g5r=[xp.NONE,xp.FAST_PFOR,xp.VARINT],x5r=[J0.NONE,J0.SINGLE,J0.SHARED,J0.VERTEX,J0.MORTON,J0.FSST],b5r=[Im.VERTEX,Im.INDEX,Im.STRING,Im.KEY],_5r=[Sh.VAR_BINARY,Sh.GEOMETRIES,Sh.PARTS,Sh.RINGS,Sh.TRIANGLES,Sh.SYMBOL,Sh.DICTIONARY];(function(e){e[e.FLAT=0]="FLAT",e[e.CONST=1]="CONST",e[e.SEQUENCE=2]="SEQUENCE",e[e.DICTIONARY=3]="DICTIONARY",e[e.FSST_DICTIONARY=4]="FSST_DICTIONARY"})(jf||(jf={}));S1=class{constructor(e,t){this.values=e,this._size=t}get(e){let t=Math.floor(e/8),r=e%8;return(this.values[t]>>r&1)==1}set(e,t){let r=Math.floor(e/8),i=e%8;this.values[r]=this.values[r]|+!!t<>r&1}size(){return this._size}getBuffer(){return this.values}};C5r=new TextDecoder;rot=class extends Bq{getValueFromBuffer(e){return this.dataBuffer[e]}},iot=class extends Nat{constructor(e,t,r,i,n){super(e,n?BigInt64Array.of(t):BigUint64Array.of(t),r,i)}getValueFromBuffer(e){return this.dataBuffer[0]+BigInt(e)*this.delta}};(function(e){e[e.POINT=0]="POINT",e[e.LINESTRING=1]="LINESTRING",e[e.POLYGON=2]="POLYGON",e[e.MULTIPOINT=3]="MULTIPOINT",e[e.MULTILINESTRING=4]="MULTILINESTRING",e[e.MULTIPOLYGON=5]="MULTIPOLYGON"})(l0||(l0={}));(function(e){e[e.POINT=0]="POINT",e[e.LINESTRING=1]="LINESTRING",e[e.POLYGON=2]="POLYGON"})(Ytt||(Ytt={}));(function(e){e[e.MORTON=0]="MORTON",e[e.VEC_2=1]="VEC_2",e[e.VEC_3=2]="VEC_3"})(px||(px={}));not=class{constructor(e,t,r,i,n){this._vertexBufferType=e,this._topologyVector=t,this._vertexOffsets=r,this._vertexBuffer=i,this._mortonSettings=n}get vertexBufferType(){return this._vertexBufferType}get topologyVector(){return this._topologyVector}get vertexOffsets(){return this._vertexOffsets}get vertexBuffer(){return this._vertexBuffer}getSimpleEncodedVertex(e){let t=this.vertexOffsets?this.vertexOffsets[e]*2:e*2;return[this.vertexBuffer[t],this.vertexBuffer[t+1]]}getVertex(e){if(this.vertexOffsets&&this.mortonSettings){let r=this.vertexOffsets[e],i=this.vertexBuffer[r],n=Lae(i,this.mortonSettings.numBits,this.mortonSettings.coordinateShift);return[n.x,n.y]}let t=this.vertexOffsets?this.vertexOffsets[e]*2:e*2;return[this.vertexBuffer[t],this.vertexBuffer[t+1]]}getGeometries(){return V5r(this)}get mortonSettings(){return this._mortonSettings}};aot=class extends not{constructor(e,t,r,i,n,a,o){super(r,i,n,a,o),this._numGeometries=e,this._geometryType=t}geometryType(e){return this._geometryType}get numGeometries(){return this._numGeometries}containsPolygonGeometry(){return this._geometryType===l0.POLYGON||this._geometryType===l0.MULTIPOLYGON}containsSingleGeometryType(){return!0}};sot=class extends not{constructor(e,t,r,i,n,a){super(e,r,i,n,a),this._geometryTypes=t}geometryType(e){return this._geometryTypes[e]}get numGeometries(){return this._geometryTypes.length}containsPolygonGeometry(){for(let e=0;eQl(Zs({},r),{[i.name]:new zTr(i)}),{})}},RTr=class{constructor(e,t){this.tileID=e,this.x=e.canonical.x,this.y=e.canonical.y,this.z=e.canonical.z,this.grid=new pie(Aa,16,0),this.grid3D=new pie(Aa,16,0),this.featureIndexArray=new bnt,this.promoteId=t}insert(e,t,r,i,n,a){let o=this.featureIndexArray.length;this.featureIndexArray.emplaceBack(r,i,n);let s=a?this.grid3D:this.grid;for(let l of t){let u=[1/0,1/0,-1/0,-1/0];for(let f of l)u[0]=Math.min(u[0],f.x),u[1]=Math.min(u[1],f.y),u[2]=Math.max(u[2],f.x),u[3]=Math.max(u[3],f.y);u[0]<8192&&u[1]<8192&&u[2]>=0&&u[3]>=0&&s.insert(o,u[0],u[1],u[2],u[3])}}loadVTLayers(){return this.vtLayers||(this.encoding==="mlt"?this.vtLayers=new ITr(this.rawTileData).layers:this.vtLayers=new D3r(new gat(this.rawTileData)).layers,this.sourceLayerCoder=new t4r(this.vtLayers?Object.keys(this.vtLayers).sort():[IC])),this.vtLayers}query(e,t,r,i){this.loadVTLayers();let n=e.params,a=Aa/e.tileSize/e.scale,o=U5(n.filter,"queryRenderedFeatures filter",n.globalState),s=e.queryGeometry,l=e.queryPadding*a,u=Tv.fromPoints(s),f=this.grid.query(u.minX-l,u.minY-l,u.maxX+l,u.maxY+l),c=Tv.fromPoints(e.cameraQueryGeometry).expandBy(l),h=this.grid3D.query(c.minX,c.minY,c.maxX,c.maxY,(v,y,m,w)=>M_r(e.cameraQueryGeometry,v-l,y-l,m+l,w+l));for(let v of h)f.push(v);f.sort(qTr);let d={},p;for(let v of f){if(v===p)continue;p=v;let y=this.featureIndexArray.get(v),m=null;this.loadMatchingFeature(d,y.bucketIndex,y.sourceLayerIndex,y.featureIndex,o,n.layers,n.availableImages,t,r,i,(w,_,b)=>(m||(m=d3(w)),_.queryIntersectsFeature({queryGeometry:s,feature:w,featureState:b,geometry:m,zoom:this.z,transform:e.transform,pixelsToTileUnits:a,pixelPosMatrix:e.pixelPosMatrix,unwrappedTileID:this.tileID.toUnwrapped(),getElevation:e.getElevation})))}return d}loadMatchingFeature(e,t,r,i,n,a,o,s,l,u,f){let c=this.bucketLayerIDs[t];if(a&&!c.some(v=>a.has(v)))return;let h=this.sourceLayerCoder.decode(r),d=this.vtLayers[h].feature(i);if(n.needGeometry){let v=gx(d,!0);if(!n.filter(new Xu(this.tileID.overscaledZ),v,this.tileID.canonical))return}else if(!n.filter(new Xu(this.tileID.overscaledZ),d))return;let p=this.getId(d,h);for(let v of c){if(a&&!a.has(v))continue;let y=s[v];if(!y)continue;let m={};p&&u&&(m=u.getState(y.sourceLayer||"_geojsonTileLayer",p));let w=Hs({},l[v]);w.paint=rrt(w.paint,y.paint,d,m,o),w.layout=rrt(w.layout,y.layout,d,m,o);let _=!f||f(d,y,m);if(!_)continue;let b=new xae(d,this.z,this.x,this.y,p);b.layer=w;let M=e[v];M===void 0&&(M=e[v]=[]),M.push({featureIndex:i,feature:b,intersectionZ:_})}}lookupSymbolFeatures(e,t,r,i,n,a,o,s){let l={};this.loadVTLayers();let u=U5(n.filterSpec,"queryRenderedFeatures symbol filter",n.globalState);for(let f of e)this.loadMatchingFeature(l,r,i,f,u,a,o,s,t);return l}hasLayer(e){for(let t of this.bucketLayerIDs)for(let r of t)if(e===r)return!0;return!1}getId(e,t){var i;let r=e.id;if(this.promoteId){let n=typeof this.promoteId=="string"?this.promoteId:this.promoteId[t];r=e.properties[n],typeof r=="boolean"&&(r=Number(r)),r===void 0&&((i=e.properties)!=null&&i.cluster)&&this.promoteId&&(r=Number(e.properties.cluster_id))}return r}};As("FeatureIndex",RTr,{omit:["rawTileData","sourceLayerCoder"]});yot=class{constructor(e,t){this.max=e,this.onRemove=t,this.reset()}reset(){for(let e in this.data)for(let t of this.data[e])t.timeout&&clearTimeout(t.timeout),this.onRemove(t.value);return this.data={},this.order=[],this}add(e,t,r){let i=e.wrapped().key;this.data[i]===void 0&&(this.data[i]=[]);let n={value:t,timeout:void 0};if(r!==void 0&&(n.timeout=setTimeout(()=>{this.remove(e,n)},r)),this.data[i].push(n),this.order.push(i),this.order.length>this.max){let a=this._getAndRemoveByKey(this.order[0]);a&&this.onRemove(a)}return this}has(e){return e.wrapped().key in this.data}getAndRemove(e){return this.has(e)?this._getAndRemoveByKey(e.wrapped().key):null}_getAndRemoveByKey(e){let t=this.data[e].shift();return t.timeout&&clearTimeout(t.timeout),this.data[e].length===0&&delete this.data[e],this.order.splice(this.order.indexOf(e),1),t.value}getByKey(e){let t=this.data[e];return t?t[0].value:null}get(e){return this.has(e)?this.data[e.wrapped().key][0].value:null}remove(e,t){if(!this.has(e))return this;let r=e.wrapped().key,i=t===void 0?0:this.data[r].indexOf(t),n=this.data[r][i];return this.data[r].splice(i,1),n.timeout&&clearTimeout(n.timeout),this.data[r].length===0&&delete this.data[r],this.onRemove(n.value),this.order.splice(this.order.indexOf(r),1),this}setMaxSize(e){for(this.max=e;this.order.length>this.max;){let t=this._getAndRemoveByKey(this.order[0]);t&&this.onRemove(t)}return this}filter(e){let t=[];for(let r in this.data)for(let i of this.data[r])e(i.value)||t.push(i);for(let r of t)this.remove(r.value.tileID,r)}}});var mut={};Fl(mut,{AJAXError:()=>R5,AttributionControl:()=>lut,BoxZoomHandler:()=>Zlt,CanvasSource:()=>Kst,CooperativeGesturesHandler:()=>out,DoubleClickZoomHandler:()=>rut,DragPanHandler:()=>iut,DragRotateHandler:()=>nut,EXTENT:()=>Aa,EdgeInsets:()=>poe,ErrorEvent:()=>rl,Event:()=>Gd,Evented:()=>ih,FullscreenControl:()=>nDr,FullscreenEvent:()=>_oe,GPUInitializationError:()=>Ylt,GeoJSONSource:()=>Wst,GeolocateControl:()=>QCr,GeolocateErrorEvent:()=>put,GeolocateEvent:()=>b3,GeolocatePositionEvent:()=>boe,GlobeControl:()=>oDr,Hash:()=>Xlt,ImageSource:()=>lT,KeyboardHandler:()=>eut,LngLat:()=>Js,LngLatBounds:()=>P1,LogoControl:()=>uut,Map:()=>jCr,MapBoxZoomEvent:()=>noe,MapContextEvent:()=>eO,MapLibreEvent:()=>Uh,MapLibreMap:()=>jCr,MapMouseEvent:()=>Hd,MapMovementEvent:()=>ol,MapProjectionEvent:()=>Pst,MapSourceDataEvent:()=>Yf,MapStyleDataEvent:()=>Cv,MapStyleImageMissingEvent:()=>zst,MapStyleLoadEvent:()=>ioe,MapTerrainEvent:()=>Lst,MapTouchEvent:()=>YC,MapWheelEvent:()=>Fst,Marker:()=>xoe,MarkerClickEvent:()=>dut,MarkerDragEvent:()=>x3,MercatorCoordinate:()=>Uu,NavigationControl:()=>$Cr,Point:()=>Zr,Popup:()=>uDr,PopupEvent:()=>woe,RasterDEMTileSource:()=>Hst,RasterTileSource:()=>Eoe,ScaleControl:()=>tDr,ScrollZoomHandler:()=>tut,Style:()=>moe,TerrainControl:()=>aDr,TwoFingersTouchPitchHandler:()=>Qlt,TwoFingersTouchRotateHandler:()=>Jlt,TwoFingersTouchZoomHandler:()=>Klt,TwoFingersTouchZoomRotateHandler:()=>aut,VectorTileSource:()=>Gst,VideoSource:()=>Zst,addProtocol:()=>Brt,addSourceType:()=>tMr,clearPrewarmedResources:()=>k6r,config:()=>Ud,createTileMesh:()=>Yst,getGlobalDispatcher:()=>Soe,getMaxParallelImageRequests:()=>yDr,getRTLTextPluginStatus:()=>dDr,getVersion:()=>pDr,getWorkerCount:()=>vDr,getWorkerUrl:()=>xDr,importScriptInWorkers:()=>_Dr,isTimeFrozen:()=>HTr,now:()=>Ku,prewarm:()=>E6r,removeProtocol:()=>qrt,restoreNow:()=>GTr,setMaxParallelImageRequests:()=>gDr,setNow:()=>UTr,setRTLTextPlugin:()=>hDr,setWorkerCount:()=>mDr,setWorkerUrl:()=>bDr});function Dst(){var e=new kh(4);return kh!=Float32Array&&(e[1]=0,e[2]=0),e[0]=1,e[3]=1,e}function OTr(e,t){var r=t[0],i=t[1],n=t[2],a=t[3],o=r*a-n*i;return o?(o=1/o,e[0]=a*o,e[1]=-i*o,e[2]=-n*o,e[3]=r*o,e):null}function NTr(e){return e[0]*e[3]-e[2]*e[1]}function VTr(e,t,r){var i=t[0],n=t[1],a=t[2],o=t[3],s=Math.sin(r),l=Math.cos(r);return e[0]=i*l+a*s,e[1]=n*l+o*s,e[2]=i*-s+a*l,e[3]=n*-s+o*l,e}function Ku(){return dO.getCurrentTime()}function UTr(e){dO.setNow(e)}function GTr(){dO.restoreNow()}function HTr(){return dO.isFrozen()}function Bae(){return OC!=null||(OC={getAttribute:Element.prototype.getAttribute,getAttributeNames:Element.prototype.getAttributeNames,querySelectorAll:Element.prototype.querySelectorAll,remove:Element.prototype.remove,removeAttribute:Element.prototype.removeAttribute,localName:Object.getOwnPropertyDescriptor(Element.prototype,"localName").get,namespaceURI:Object.getOwnPropertyDescriptor(Element.prototype,"namespaceURI").get}),OC}function ZTr(e,t){let r={};for(let i in e)i!=="ref"&&(r[i]=e[i]);return Vrt.forEach(i=>{i in t&&(r[i]=t[i])}),r}function xot(e){e=e.slice();let t=Object.create(null);for(let r=0;r{"source"in s&&n[s.source]?r.push({command:"removeLayer",args:[s.id]}):o.push(s)}),r=r.concat(a),e6r(o,t.layers,r),i&&t.terrain&&r.push({command:"setTerrain",args:[t.terrain]})}catch(i){console.warn("Unable to compute style diff:",i),r=[{command:"setStyle",args:[t]}]}return r}function r6r(){let e={},t=cn.$version;for(let r in cn.$root){let i=cn.$root[r];if(i.required){let n=null;n=r==="version"?t:i.type==="array"?[]:{},n!=null&&(e[r]=n)}}return e}function tO(e){let t=[];if(typeof e=="string")t.push({id:"default",url:e});else if(e&&e.length>0){let r=[];for(let{id:i,url:n}of e){let a=`${i}${n}`;r.includes(a)||(r.push(a),t.push({id:i,url:n}))}}return t}function Aot(e,t,r){try{let i=new URL(e);return i.pathname+=`${t}${r}`,i.toString()}catch(i){throw Error(`Invalid sprite URL "${e}", must be absolute. Modify style specification directly or use TransformStyleFunction to correct the issue dynamically`)}}function i6r(e,t,r,i){return Ls(this,null,function*(){let n=tO(e),a=r>1?"@2x":"",o={},s={};for(let{id:l,url:u}of n){let f=yield t.transformRequest(Aot(u,a,".json"),"SpriteJSON");o[l]=mC(f,i);let c=yield t.transformRequest(Aot(u,a,".png"),"SpriteImage");s[l]=L1.getImage(c,i)}return yield Promise.all([...Object.values(o),...Object.values(s)]),n6r(o,s)})}function n6r(e,t){return Ls(this,null,function*(){let r={};for(let i in e){r[i]={};let n=(yield t[i]).data;if(!n)throw Error(`Could not load sprite image for ${i}: the response is empty`);let a=jd.getImageCanvasContext(n),o=(yield e[i]).data;for(let s in o){let{width:l,height:u,x:f,y:c,sdf:h,pixelRatio:d,stretchX:p,stretchY:v,content:y,textFitWidth:m,textFitHeight:w}=o[s],_={width:l,height:u,x:f,y:c,context:a};r[i][s]={data:null,pixelRatio:d,sdf:h,stretchX:p,stretchY:v,content:y,textFitWidth:m,textFitHeight:w,spriteData:_}}}return r})}function u6r(e){let t=/^u\+([0-9a-f]*)(\?+)$/i.exec(e);if(t){let[,n,a]=t;return n.length+a.length>6?null:Tot(parseInt(`${n}${"0".repeat(a.length)}`,16),parseInt(`${n}${"f".repeat(a.length)}`,16))}let r=/^u\+([0-9a-f]{1,6})(?:-([0-9a-f]{1,6}))?$/i.exec(e);if(!r)return null;let i=parseInt(r[1],16);return Tot(i,r[2]===void 0?i:parseInt(r[2],16))}function Tot(e,t){return e>t||e>aoe?null:{start:e,end:Math.min(t,aoe)}}function f6r(e,t){return e.ranges.some(({start:r,end:i})=>t>=r&&t<=i)}function Mot(e,t,r,i,n,a,o,s,l){for(let u=t;u-1);l++,a[l]=s,o[l]=u,o[l+1]=ooe}for(let s=0,l=0;svC(t,r))),Vq}function C6r(e,t){let r=Ky();return th(r,r,[1,1,0]),f0(r,r,[e.width*.5,e.height*.5,1]),e.calculatePosMatrix?l3(r,r,e.calculatePosMatrix(t.toUnwrapped())):r}function D6r(e,t,r){if(e)for(let i of e){let n=t[i];if((n==null?void 0:n.source)===r&&n.type==="fill-extrusion")return!0}else for(let i in t){let n=t[i];if(n.source===r&&n.type==="fill-extrusion")return!0}return!1}function F6r(e,t,r,i,n,a,o){var c;let s=D6r((c=n==null?void 0:n.layers)!=null?c:null,t,e.id),l=a.maxPitchScaleFactor(),u=e.tilesIn(i,l,s);u.sort(Ost);let f=[];for(let h of u)f.push({wrappedTileID:h.tileID.wrapped().key,queryResults:h.tile.queryRenderedFeatures(t,r,e.getState(),h.queryGeometry,h.cameraQueryGeometry,h.scale,n,a,l,C6r(a,h.tileID),o?(d,p)=>o(h.tileID,d,p):void 0)});return I6r(z6r(f),e)}function L6r(e,t,r,i,n,a,o){let s={},l=a.queryRenderedSymbols(i),u=[];for(let f of Object.keys(l).map(Number))u.push(o[f]);u.sort(Ost);for(let f of u){let c=f.featureIndex.lookupSymbolFeatures(l[f.bucketInstanceId],t,f.bucketIndex,f.sourceLayerIndex,{filterSpec:n.filter,globalState:n.globalState},n.layers,n.availableImages,e);for(let h in c){s[h]||(s[h]=[]);let d=c[h];d.sort((p,v)=>{let y=f.featureSortOrder;if(y){let m=y.indexOf(p.featureIndex);return y.indexOf(v.featureIndex)-m}return v.featureIndex-p.featureIndex});for(let p of d)s[h].push(p)}}return R6r(s,e,r)}function P6r(e,t){let r=e.getRenderableIds().map(a=>e.getTileByID(a)),i=[],n={};for(let a of r){let o=a.tileID.canonical.key;n[o]||(n[o]=!0,a.querySourceFeatures(i,t))}return i}function Ost(e,t){let r=e.tileID,i=t.tileID;return r.overscaledZ-i.overscaledZ||r.canonical.y-i.canonical.y||r.wrap-i.wrap||r.canonical.x-i.canonical.x}function z6r(e){let t={},r={};for(let{queryResults:i,wrappedTileID:n}of e){r[n]||(r[n]={});let a=r[n];for(let o in i){let s=i[o];a[o]||(a[o]={});let l=a[o];t[o]||(t[o]=[]);for(let u of s)l[u.featureIndex]||(l[u.featureIndex]=!0,t[o].push(u))}}return t}function I6r(e,t){for(let r in e)for(let i of e[r])Nst(i,t);return e}function R6r(e,t,r){for(let i in e)for(let n of e[i]){let a=r[t[i].source];Nst(n,a)}return e}function Nst(e,t){let r=e.feature,i=t.getFeatureState(r.layer["source-layer"],r.id);r.source=r.layer.source,r.layer["source-layer"]&&(r.sourceLayer=r.layer["source-layer"]),r.state=i}function Vst(e,t,r,i){return Ls(this,null,function*(){let n=e;if(e.url?n=(yield mC(yield t.transformRequest(e.url,"Source"),r)).data:yield jd.frameAsync(r,i),!n)return null;let a=$5(Hs(n,e),["tiles","minzoom","maxzoom","attribution","bounds","scheme","tileSize","encoding"]);return"vector_layers"in n&&n.vector_layers&&(a.vectorLayerIds=n.vector_layers.map(o=>o.id)),a})}function oO(e,t){return t?e.properties[t]:e.id}function B6r(e,t){let r=new Map;if(e==null||e.type==null)return r;if(e.type==="Feature"){let i=oO(e,t);return i==null?void 0:(r.set(i,e),r)}if(e.type==="FeatureCollection"){let i=new Set;for(let n of e.features){let a=oO(n,t);if(a==null||i.has(a))return;i.add(a),r.set(a,n)}return r}}function q6r(e,t,r){var n,a;let i=[];if(t.removeAll)e.clear();else if(t.remove)for(let o of t.remove){let s=e.get(o);s&&(i.push(s.geometry),e.delete(o))}if(t.add)for(let o of t.add){let s=oO(o,r);if(s==null)continue;let l=e.get(s);l&&i.push(l.geometry),i.push(o.geometry),e.set(s,o)}if(t.update)for(let o of t.update){let s=e.get(o.id);if(!s)continue;let l=!!o.newGeometry,u=o.removeAllProperties||((n=o.removeProperties)==null?void 0:n.length)>0||((a=o.addOrUpdateProperties)==null?void 0:a.length)>0;if(!l&&!u)continue;i.push(s.geometry);let f=Zs({},s);if(e.set(o.id,f),l&&(i.push(o.newGeometry),f.geometry=o.newGeometry),u){if(f.properties=o.removeAllProperties?{}:Zs({},f.properties||{}),o.removeProperties)for(let c of o.removeProperties)delete f.properties[c];if(o.addOrUpdateProperties)for(let{key:c,value:h}of o.addOrUpdateProperties)f.properties[c]=h}}return i}function O6r(e,t,r){if(!e)return t||{};if(!t)return e||{};let i=Cot(e,r),n=Cot(t,r);N6r(i,n);let a={};if((i.removeAll||n.removeAll)&&(a.removeAll=!0),a.remove=new Set([...i.remove,...n.remove]),a.add=new Map([...i.add,...n.add]),a.update=new Map([...i.update,...n.update]),a.remove.size&&a.add.size)for(let o of a.add.keys())a.remove.delete(o);return U6r(a)}function N6r(e,t){t.removeAll&&(e.add.clear(),e.update.clear(),e.remove.clear(),t.remove.clear());for(let r of t.remove)e.add.delete(r),e.update.delete(r);for(let[r,i]of t.update){let n=e.update.get(r);n&&(t.update.set(r,V6r(n,i)),e.update.delete(r))}}function V6r(e,t){let r={id:e.id};if(t.removeAllProperties&&(delete e.removeProperties,delete e.addOrUpdateProperties,delete t.removeProperties),t.removeProperties&&e.addOrUpdateProperties){let i=new Set(t.removeProperties);e.addOrUpdateProperties=e.addOrUpdateProperties.filter(n=>!i.has(n.key))}return(e.removeAllProperties||t.removeAllProperties)&&(r.removeAllProperties=!0),(e.removeProperties||t.removeProperties)&&(r.removeProperties=[...e.removeProperties||[],...t.removeProperties||[]]),(e.addOrUpdateProperties||t.addOrUpdateProperties)&&(r.addOrUpdateProperties=[...e.addOrUpdateProperties||[],...t.addOrUpdateProperties||[]]),(e.newGeometry||t.newGeometry)&&(r.newGeometry=t.newGeometry||e.newGeometry),r}function Cot(e,t){var i,n;if(!e)return{};let r={};return r.removeAll=e.removeAll,r.remove=new Set(e.remove||[]),r.add=new Map((i=e.add)==null?void 0:i.map(a=>[oO(a,t),a])),r.update=new Map((n=e.update)==null?void 0:n.map(a=>[a.id,a])),r}function U6r(e){let t={};return e.removeAll&&(t.removeAll=e.removeAll),e.remove&&(t.remove=Array.from(e.remove)),e.add&&(t.add=Array.from(e.add.values())),e.update&&(t.update=Array.from(e.update.values())),t}function jst(e){return!e||e.length===0?[]:typeof e[0]=="number"?[e]:e.flatMap(t=>jst(t))}function rO(e){return e.type==="GeometryCollection"?e.geometries.flatMap(t=>rO(t)):jst(e.coordinates)}function Dot(e){let t=new P1,r;switch(e.type){case"FeatureCollection":r=e.features.flatMap(i=>rO(i.geometry));break;case"Feature":r=rO(e.geometry);break;default:r=rO(e)}if(r.length===0)return t;for(let i of r){let[n,a]=i;t.extend([n,a])}return t}function G6r({x:e,y:t,z:r},i=0){let n=Cq((e-i)/2**r),a=j5((t+1+i)/2**r),o=Cq((e+1+i)/2**r),s=j5((t-i)/2**r);return new P1([n,a],[o,s])}function W6r(e){e*=Math.PI/180;let t=Math.sin(e),r=Math.cos(e);return[(2*r+1)/3,(-Math.sqrt(3)*t-r+1)/3,(Math.sqrt(3)*t-r+1)/3]}function $6r(e){return e>0?1/(1-e):1+e}function Y6r(e){return e>0?1-1/(1.001-e):-e}function $st(e,t){let r=Yst(t,"16bit"),i=rg.deserialize({arrayBuffer:r.vertices,length:r.vertices.byteLength/2/2}),n=D1.deserialize({arrayBuffer:r.indices,length:r.indices.byteLength/2/3});return new JC(e.createVertexBuffer(i,_3.members),e.createIndexBuffer(n),tc.simpleSegment(0,0,i.length,n.length))}function Yst(e,t){let r=e.granularity===void 0?1:Math.max(e.granularity,1),i=r+(e.generateBorders?2:0),n=r+(e.extendToNorthPole||e.generateBorders?1:0)+(e.extendToSouthPole||e.generateBorders?1:0),a=i+1,o=n+1,s=e.generateBorders?-1:0,l=e.generateBorders||e.extendToNorthPole?-1:0,u=r+ +!!e.generateBorders,f=r+(e.generateBorders||e.extendToSouthPole?1:0),c=a*o,h=i*n*6,d=a*o>65536;if(d&&t==="16bit")throw Error("Granularity is too large and meshes would not fit inside 16 bit vertex indices.");let p=d||t==="32bit",v=new Int16Array(c*2),y=0;for(let _=l;_<=f;_++)for(let b=s;b<=u;b++){let M=b/r*Aa;b===-1&&(M=-Uq),b===r+1&&(M=Aa+Uq);let x=_/r*Aa;_===-1&&(x=e.extendToNorthPole?L5:-Uq),_===r+1&&(x=e.extendToSouthPole?P5:Aa+Uq),v[y++]=M,v[y++]=x}let m=p?new Uint32Array(h):new Uint16Array(h),w=0;for(let _=0;_=1&&m<=512)||w>=1?aT:[p,v,w]}function J6r(e){let t=(1-4/e)/.9921875;return Math.max(0,t)}function Xst(e){let[t,r,i,n]=e;return t.x+i.x===r.x+n.x&&t.y+i.y===r.y+n.y}function rMr(e,t){let r={};if(!t)return r;for(let i of e){let n=i.layerIds.map(a=>t.getLayer(a)).filter(Boolean);if(n.length!==0){i.layers=n,i.stateDependentLayerIds&&(i.stateDependentLayers=i.stateDependentLayerIds.map(a=>n.filter(o=>o.id===a)[0]));for(let a of n)r[a.id]=i}}return r}function KC(){return Oae||(Oae=new iMr),Oae}function Fot(e){let t=[];for(let r in e)t.push({id:r,state:e[r]});return t}function aMr(e,t,r,i){let n=c0([],e,t),a=1/n[3]/r*i;return yrt(n,n,[a,a,1/n[3],a])}function oMr(e,t,r,i){let n=i?4:0,a=i?0:4,o=0,s=[],l=[];for(let c=0;c<4;c++){let h=Nm([],e[c+a],e[c+n]),d=Sv(h);Wf(h,h,1/d),s.push(d),l.push(h)}for(let c=0;c<4;c++){let h=brt(e[c+n],l[c],r);o=h!==null&&h>=0?Math.max(o,h):Math.max(o,s[c])}let u=sMr(e,t),f=lMr(r,u);if(f!==null){let c=f/rh(l[0],u);o=Math.min(o,c)}for(let c=0;c<4;c++){let h=Math.min(o,s[c]);e[c+a]=[e[c+n][0]+l[c][0]*h,e[c+n][1]+l[c][1]*h,e[c+n][2]+l[c][2]*h,1]}}function sMr(e,t){let r=Nm([],e[t[0]],e[t[1]]),i=Nm([],e[t[2]],e[t[1]]),n=[0,0,0,0];return Q0(n,yd([],r,i)),n[3]=-rh(n,e[t[0]]),n}function lMr(e,t){let r=fC(e),i=mrt([],e,1/r),n=Nm([],t,Wf([],i,rh(t,i))),a=fC(n);if(a>0){let o=Math.sqrt(1-i[3]*i[3]),s=Wf([],i,-i[3]),l=bp([],s,Wf([],n,o/a));return eq(t,l)}return null}function uMr(e,t,r){let i=t.intersectsFrustum(e);if(!r||i===0)return i;let n=t.intersectsPlane(r);return n===0?0:i===2&&n===2?2:1}function Lot(e,t,r){let i=0,n=(r-t)/10;for(let a=0;a<10;a++){let o=t+(a+.5)/10*(r-t);i+=n*Math.cos(o)**+e}return i}function loe(e,t){return function(r,i,n,a,o){let s=2*((e-1)/h0(Math.cos($f(bx-o))/Math.cos($f(bx)))-1),l=Math.acos(n/a),u=2*Lot(s-1,0,$f(o/2)),f=Math.min($f(bx),l+$f(o/2)),c=Math.min(f,l-$f(o/2)),h=Lot(s-1,c,f),d=Math.atan(i/n),p=Math.hypot(i,n),v=r;return v+=h0(a/p/Math.max(.5,Math.cos($f(o/2)))),v+=s*h0(Math.cos(d))/2,v-=h0(Math.max(1,h/u/t))/2,v}}function Doe(e,t){let r=(t.roundZoom?Math.round:Math.floor)(e.zoom+h0(e.tileSize/t.tileSize));return Math.max(0,r)}function cMr(e,t){let r=bx-e.pitch-e.fov/2,i=Pl((15-r)/15,0,1),n=Math.max(500,t!=null?t:0);return e.elevation+i*n}function hMr(e,t,r){let i=e.planes[1],n=e.points.map(l=>{let u=i[0]*l[0]+i[1]*l[1]+i[2]*l[2]+i[3];if(Math.abs(u)>1e-6)return l;let f=[l[0]-r[0],l[1]-r[1],l[2]-r[2]],c=i[0]*f[0]+i[1]*f[1]+i[2]*f[2];if(c>=-1e-9)return l;let h=t/-c;return[l[0]+f[0]*h,l[1]+f[1]*h,l[2]+f[2]*h,l[3]]}),a=e.planes.map((l,u)=>u===1?[l[0],l[1],l[2],l[3]+t]:l),o=[1/0,1/0,1/0],s=[-1/0,-1/0,-1/0];for(let l of n)for(let u=0;u<3;u++)o[u]=Math.min(o[u],l[u]),s[u]=Math.max(s[u],l[u]);return new Coe(n,a,new koe(o,s))}function dMr(e,t,r,i){let n=Math.hypot(t[0],t[1],t[2]);if(n===0)return{frustum:e,plane:t};let a=1+i/rd,o=Pl(-t[3]/n,-1,1),s=Math.cos(Math.acos(o)+Math.acos(1/a));return{frustum:hMr(e,Math.sqrt(a*a-1),r),plane:[t[0],t[1],t[2],-s*n]}}function uT(e,t){let r=e.getCameraFrustum(),i=e.getClippingPlane();i&&t.maxContentElevation>0&&({frustum:r,plane:i}=dMr(r,i,e.cameraPosition,t.maxContentElevation));let n=iat(e),a=Uu.fromLngLat(e.center,e.elevation),o=cMr(e,t.maxContentElevation),s=e.getCoveringTilesDetailsProvider(),l=s.allowVariableZoom(e,t),u=Doe(e,t),f=t.minzoom||0,c=t.maxzoom===void 0?e.maxZoom:t.maxzoom,h=Math.min(Math.max(0,u),c),d=2**h,p=[d*n.x,d*n.y,0],v=[d*a.x,d*a.y,0],y=Math.hypot(a.x-n.x,a.y-n.y),m=Math.abs(a.z-n.z),w=Math.hypot(y,m),_=x=>({zoom:0,x:0,y:0,wrap:x,fullyVisible:!1}),b=[],M=[];if(e.renderWorldCopies&&s.allowWorldCopies())for(let x=1;x<=3;x++)b.push(_(-x)),b.push(_(x));for(b.push(_(0));b.length>0;){let x=b.pop(),A=x.x,T=x.y,g=x.fullyVisible,E={x:A,y:T,z:x.zoom},S=s.getTileBoundingVolume(E,x.wrap,o,t);if(!g){let L=uMr(r,S,i);if(L===0)continue;g=L===2}let C=s.distanceToTile2d(n.x,n.y,E,S),k=u;l&&(k=(t.calculateTileZoom||fMr)(e.zoom+h0(e.tileSize/t.tileSize),C,m,w,e.fov)),k=(t.roundZoom?Math.round:Math.floor)(k),k=Math.max(0,k);let D=Math.min(k,c);if(x.wrap=s.getWrap(a,E,x.wrap),x.zoom>=D){if(x.zoom>1),F=x.zoom+1;b.push({zoom:F,x:P,y:I,wrap:x.wrap,fullyVisible:g})}}return M.sort((x,A)=>x.distanceSq-A.distanceSq).map(x=>x.tileID)}function Pot(e){return e==="raster"||e==="image"||e==="video"}function pMr(e,t,r,i,n,a,o){let s=Ku(),l=wrt(t);for(let u of t){let f=e.getTileById(u.key);(f.fadingDirection===0||f.fadeOpacity===0)&&f.resetFadeLogic(),!vMr(e,f,r,s,i,n,o)&&(mMr(e,f,r,s,a,o)||yMr(f,l,s,o)||f.resetFadeLogic())}}function vMr(e,t,r,i,n,a,o){if(!t.hasData())return!1;let{tileID:s,fadingRole:l,fadingDirection:u,fadingParentID:f}=t;if(l===0&&u===1&&f)return r[f.key]=f,!0;let c=Math.max(s.overscaledZ-n,a);for(let h=s.overscaledZ-1;h>=c;h--){let d=s.scaledTo(h),p=e.getLoadedTile(d);if(p)return t.setCrossFadeLogic({fadingRole:0,fadingDirection:1,fadingParentID:p.tileID,fadeEndTime:i+o}),p.setCrossFadeLogic({fadingRole:1,fadingDirection:0,fadeEndTime:i+o}),r[d.key]=d,!0}return!1}function mMr(e,t,r,i,n,a){if(!t.hasData())return!1;let o=t.tileID.children(n),s=zot(e,t,o,r,i,n,a);if(s)return!0;for(let l of o)zot(e,t,l.children(n),r,i,n,a)&&(s=!0);return s}function zot(e,t,r,i,n,a,o){if(r[0].overscaledZ>=a)return!1;let s=!1;for(let l of r){let u=e.getLoadedTile(l);if(!u)continue;let{fadingRole:f,fadingDirection:c,fadingParentID:h}=u;(f!==0||c!==0||!h)&&(u.setCrossFadeLogic({fadingRole:0,fadingDirection:0,fadingParentID:t.tileID,fadeEndTime:n+o}),t.setCrossFadeLogic({fadingRole:1,fadingDirection:1,fadeEndTime:n+o})),i[l.key]=l,s=!0}return s}function yMr(e,t,r,i){let n=e.tileID;if(e.selfFading)return!0;if(e.hasData())return!1;if(t.has(n)){let a=r+i;return e.setSelfFadeLogic(a),!0}return!1}function gMr(e,t){if(t<=0)return!1;let r=Ku();for(let i of e.getAllTiles())if(i.fadeEndTime>=r)return!0;return!1}function xMr(e,t){var i,n,a;let r=t.getRenderableIds();for(let o of r){if(!((i=e.neighboringTiles)!=null&&i[o]))continue;let s=t.getTileById(o);e.neighboringTiles[o].backfilled||Iot(e,s),!((a=(n=s.neighboringTiles)==null?void 0:n[e.tileID.key])!=null&&a.backfilled)&&Iot(s,e)}}function Iot(e,t){var o;e.needsHillshadePrepare=!0,e.needsTerrainPrepare=!0,e.needsColorReliefPrepare=!0;let r=t.tileID.canonical.x-e.tileID.canonical.x,i=t.tileID.canonical.y-e.tileID.canonical.y,n=2**e.tileID.canonical.z,a=t.tileID.key;(r!==0||i!==0)&&(Math.abs(i)>1||(Math.abs(r)>1&&(Math.abs(r+n)===1?r+=n:Math.abs(r-n)===1&&(r-=n)),t.dem&&e.dem&&(e.dem.backfillBorder(t.dem,r,i),(o=e.neighboringTiles)!=null&&o[a]&&(e.neighboringTiles[a].backfilled=!0))))}function iO(e,t,r,i,n){return n?e?e(t,r)+i:i===0?void 0:i:i}function Gq(e,t){let r=!0;return e==="always"||(e==="never"||t==="never")&&(r=!1),r}function _Mr(e,t){let r=1/(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]),i=1/(t[8]*t[8]+t[9]*t[9]+t[10]*t[10]),n=t[0]*r,a=t[4]*r,o=t[8]*i,s=t[1]*r,l=t[5]*r,u=t[9]*i,f=t[2]*r,c=t[6]*r,h=t[10]*i;e[0]=n,e[1]=a,e[2]=o,e[4]=s,e[5]=l,e[6]=u,e[8]=f,e[9]=c,e[10]=h;let d=t[12],p=t[13],v=t[14];return e[12]=-n*d-s*p-f*v,e[13]=-a*d-l*p-c*v,e[14]=-o*d-u*p-h*v,e[3]=0,e[7]=0,e[11]=0,e[15]=1,e}function wMr(e,t){return e[0]=1/t[0],e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1/t[5],e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=0,e[11]=1/t[14],e[12]=0,e[13]=0,e[14]=-1,e[15]=t[10]/t[14],e}function AMr(e,t){let r=1/(t[0]*t[5]-t[1]*t[4]);return e[0]=t[5]*r,e[1]=-t[1]*r,e[2]=0,e[3]=0,e[4]=-t[4]*r,e[5]=t[0]*r,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1/t[10],e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1/t[15],e}function Foe(e,t,r){let i=Ky();if(!e){let{vecSouth:n,vecEast:a}=Loe(t),o=Dst();o[0]=a[0],o[1]=a[1],o[2]=n[0],o[3]=n[1],OTr(o,o),i[0]=o[0],i[1]=o[1],i[4]=o[2],i[5]=o[3]}return f0(i,i,[1/r,1/r,1]),i}function MMr(e,t,r,i){if(e){let n=Ky();if(!t){let{vecSouth:a,vecEast:o}=Loe(r);n[0]=o[0],n[1]=o[1],n[4]=a[0],n[5]=a[1]}return f0(n,n,[i,i,1]),n}return r.pixelsToClipSpaceMatrix}function Loe(e){let t=Math.cos(e.rollInRadians),r=Math.sin(e.rollInRadians),i=Math.cos(e.pitchInRadians),n=Math.cos(e.bearingInRadians),a=Math.sin(e.bearingInRadians),o=Q7();o[0]=-n*i*r-a*t,o[1]=-a*i*r+n*t;let s=gne(o);s<1e-9?xne(o):yne(o,o,1/s);let l=Q7();l[0]=n*i*t-a*r,l[1]=a*i*t+n*r;let u=gne(l);return u<1e-9?xne(l):yne(l,l,1/u),{vecEast:l,vecSouth:o}}function A3(e,t,r){var i,n;return iO(e.getElevation,t,r,(i=e.heightOffset)!=null?i:0,(n=e.heightAnchorGround)!=null?n:!0)}function Poe(e,t,r,i){let n;i==null?(n=[e,t,0,1],zoe(n,n,r)):(n=[e,t,i,1],c0(n,n,r));let a=n[3];return{point:new Zr(n[0]/a,n[1]/a),signedDistanceFromCamera:a,isOccluded:!1}}function ilt(e,t){return .5+e/t*.5}function SMr(e,t){return e.x>=-t[0]&&e.x<=t[0]&&e.y>=-t[1]&&e.y<=t[1]}function EMr(e,t,r,i,n,a,o,s,l,u,f,c,h){let d=r?e.textSizeData:e.iconSizeData,p=DC(d,t.transform.zoom),v=[256/t.width*2+1,256/t.height*2+1],y=r?e.text.dynamicLayoutVertexArray:e.icon.dynamicLayoutVertexArray;y.clear();let m=e.lineVertexArray,w=r?e.text.placedSymbolArray:e.icon.placedSymbolArray,_=t.transform.width/t.transform.height,b=!1;for(let M=0;MMath.abs(r.x-t.x)*i?{useVertical:!0}:(e===2?t.yr.x)?{needsFlipping:!0}:null}function Oot(e){let{projectionContext:t,pitchedLabelPlaneMatrixInverse:r,symbol:i,fontSize:n,flip:a,keepUpright:o,glyphOffsetArray:s,dynamicLayoutVertexArray:l,aspectRatio:u,rotateToLine:f}=e,c=n/24,h=i.lineOffsetX*c,d=i.lineOffsetY*c,p;if(i.numGlyphs>1){let v=i.glyphStartIndex+i.numGlyphs,y=i.lineStartIndex,m=i.lineStartIndex+i.lineLength,w=nlt(c,s,h,d,a,i,f,t);if(!w)return{notEnoughRoom:!0};let _=Hq(w.first.point.x,w.first.point.y,t,r),b=Hq(w.last.point.x,w.last.point.y,t,r);if(o&&!a){let M=qot(i.writingMode,_,b,u);if(M)return M}p=[w.first];for(let M=i.glyphStartIndex+1;M0?_.point:alt(t.tileAnchorPoint,w,y,1,t),M=Hq(y.x,y.y,t,r),x=Hq(b.x,b.y,t,r),A=qot(i.writingMode,M,x,u);if(A)return A}let v=sO(c*s.getoffsetX(i.glyphStartIndex),h,d,a,i.segment,i.lineStartIndex,i.lineStartIndex+i.lineLength,t,f);if(!v||t.projectionCache.anyProjectionOccluded)return{notEnoughRoom:!0};p=[v]}for(let v of p)FC(l,v.point,v.angle);return{}}function alt(e,t,r,i,n){let a=e.add(e.sub(t)._unit()),o=T3(a.x,a.y,n).point,s=r.sub(o);return r.add(s._mult(i/s.mag()))}function foe(e,t,r){let i=t.projectionCache;if(i.projections[e])return i.projections[e];let n=new Zr(t.lineVertexArray.getx(e),t.lineVertexArray.gety(e)),a=T3(n.x,n.y,t);if(a.signedDistanceFromCamera>0)return i.projections[e]=a.point,i.anyProjectionOccluded||(i.anyProjectionOccluded=a.isOccluded),a.point;let o=e-r.direction,s=r.distanceFromAnchor===0?t.tileAnchorPoint:new Zr(t.lineVertexArray.getx(o),t.lineVertexArray.gety(o)),l=r.absOffsetX-r.distanceFromAnchor+1;return alt(s,n,r.previousVertex,l,t)}function T3(e,t,r){let i=e+r.translation[0],n=t+r.translation[1],a;return r.pitchWithMap?(a=Poe(i,n,r.pitchedLabelPlaneMatrix,A3(r,i,n)),a.isOccluded=!1):(a=r.transform.projectTileCoordinates(i,n,r.unwrappedTileID,A3(r,i,n)),a.point.x=(a.point.x*.5+.5)*r.width,a.point.y=(-a.point.y*.5+.5)*r.height),a}function Hq(e,t,r,i){if(r.pitchWithMap){let n=[e,t,0,1];c0(n,n,i);let a=n[0]/n[3],o=n[1]/n[3];return r.transform.projectTileCoordinates(a,o,r.unwrappedTileID,A3(r,a,o)).point}return{x:e/r.width*2-1,y:1-t/r.height*2}}function olt(e,t,r){return r.transform.projectTileCoordinates(e,t,r.unwrappedTileID,A3(r,e,t))}function coe(e,t,r){return e._unit()._perp()._mult(t*r)}function kMr(e,t,r,i,n,a,o,s,l){if(s.projectionCache.offsets[e])return s.projectionCache.offsets[e];let u=r.add(t);if(e+l.direction=n)return s.projectionCache.offsets[e]=u,u;let f=foe(e+l.direction,s,l),c=coe(f.sub(r),o,l.direction),h=r.add(c),d=f.add(c);return s.projectionCache.offsets[e]=Trt(a,u,h,d)||u,s.projectionCache.offsets[e]}function sO(e,t,r,i,n,a,o,s,l){let u=i?e-t:e+t,f=u>0?1:-1,c=0;i&&(f*=-1,c=Math.PI),f<0&&(c+=Math.PI);let h=f>0?a+n:a+n+1,d;s.projectionCache.cachedAnchorPoint?d=s.projectionCache.cachedAnchorPoint:(d=T3(s.tileAnchorPoint.x,s.tileAnchorPoint.y,s).point,s.projectionCache.cachedAnchorPoint=d);let p=d,v=d,y,m,w=0,_=0,b=Math.abs(u),M=[],x;for(;w+_<=b;){if(h+=f,h=o)return null;w+=_,v=p,m=y;let E={absOffsetX:b,direction:f,distanceFromAnchor:w,previousVertex:v};if(p=foe(h,s,E),r===0)M.push(v),x=p.sub(v);else{let S,C=p.sub(v);S=C.mag()===0?coe(foe(h+f,s,E).sub(p),r,f):coe(C,r,f),m||(m=v.add(S)),y=kMr(h,S,p,a,o,m,r,s,E),M.push(m),x=y.sub(m)}_=x.mag()}let A=(b-w)/_,T=x._mult(A)._add(m||v),g=c+Math.atan2(p.y-v.y,p.x-v.x);return M.push(T),{point:T,angle:l?g:0,path:M}}function oT(e,t){for(let r=0;r{let n=Poe(i.x,i.y,r,A3(t,i.x,i.y)),a=t.transform.projectTileCoordinates(n.point.x,n.point.y,t.unwrappedTileID,A3(t,n.point.x,n.point.y));return a.point.x=(a.point.x*.5+.5)*t.width,a.point.y=(-a.point.y*.5+.5)*t.height,a})}function FMr(e){let t=0,r=0,i=0,n=0;for(let a=0;ar&&(r=n,t=i));return e.slice(t,t+r)}function Uot(e,t,r,i,n){let{horizontalAlign:a,verticalAlign:o}=CC(e),s=-(a-.5)*t,l=-(o-.5)*r;return new Zr(s+i[0]*n,l+i[1]*n)}function Got(e,t,r,i,n,a){(!i||i.length===0)&&(i=[0,0,0,0]);let o=i[0]-100,s=i[1]-100,l=i[2]-100,u=i[3]-100;e.emplaceBack(+!!t,+!!r,n||0,a||0,o,s),e.emplaceBack(+!!t,+!!r,n||0,a||0,l,s),e.emplaceBack(+!!t,+!!r,n||0,a||0,l,u),e.emplaceBack(+!!t,+!!r,n||0,a||0,o,u)}function Hot(e){if(e.opacity===0&&!e.placed)return 0;if(e.opacity===1&&e.placed)return 4294967295;let t=+!!e.placed,r=Math.floor(e.opacity*127);return r*RMr+t*BMr+r*qMr+t*OMr+r*512+t*256+r*2+t}function hoe(e,t,r,i,n,a){if(n-i<=r)return;let o=i+n>>1;llt(e,t,o,i,n,a),hoe(e,t,r,i,o-1,1-a),hoe(e,t,r,o+1,n,1-a)}function llt(e,t,r,i,n,a){for(;n>i;){if(n-i>600){let u=n-i+1,f=r-i+1,c=Math.log(u),h=.5*Math.exp(2*c/3),d=.5*Math.sqrt(c*h*(u-h)/u)*(f-u/2<0?-1:1);llt(e,t,r,Math.max(i,Math.floor(r-f*h/u+d)),Math.min(n,Math.floor(r+(u-f)*h/u+d)),a)}let o=t[2*r+a],s=i,l=n;for(UC(e,t,i,r),t[2*n+a]>o&&UC(e,t,i,n);so;)l--}t[2*i+a]===o?UC(e,t,i,l):(l++,UC(e,t,l,n)),l<=r&&(i=l+1),r<=l&&(n=l-1)}}function UC(e,t,r,i){Nae(e,r,i),Nae(t,2*r,2*i),Nae(t,2*r+1,2*i+1)}function Nae(e,t,r){let i=e[t];e[t]=e[r],e[r]=i}function Wot(e,t,r,i){let n=e-r,a=t-i;return n*n+a*a}function Ru(e,t){let r=/#pragma maplibre: ([\w]+) ([\w]+) ([\w]+) ([\w]+)/g,i=t.match(/in ([\w]+) ([\w]+)/g),n=e.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),a=t.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),o=a?a.concat(n):n,s=i?i.length:0,l={};return e=e.replace(r,(u,f,c,h,d)=>(l[d]=!0,f==="define"?` +{name:nonlatin}`,"text-max-width":8,"icon-image":"star_11","text-offset":[.4,0],"icon-size":.8,"text-anchor":"left",visibility:"visible"},paint:{"text-color":"#333","text-halo-width":1.2,"text-halo-color":"rgba(255,255,255,0.8)"}},{id:"place-country-other",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",filter:["all",["==","class","country"],[">=","rank",3],["!has","iso_a2"]],layout:{"text-font":["Noto Sans Italic"],"text-field":"{name:latin}","text-size":{stops:[[3,11],[7,17]]},"text-transform":"uppercase","text-max-width":6.25,visibility:"visible"},paint:{"text-halo-blur":1,"text-color":"#334","text-halo-width":2,"text-halo-color":"rgba(255,255,255,0.8)"}},{id:"place-country-3",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",filter:["all",["==","class","country"],[">=","rank",3],["has","iso_a2"]],layout:{"text-font":["Noto Sans Bold"],"text-field":"{name:latin}","text-size":{stops:[[3,11],[7,17]]},"text-transform":"uppercase","text-max-width":6.25,visibility:"visible"},paint:{"text-halo-blur":1,"text-color":"#334","text-halo-width":2,"text-halo-color":"rgba(255,255,255,0.8)"}},{id:"place-country-2",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",filter:["all",["==","class","country"],["==","rank",2],["has","iso_a2"]],layout:{"text-font":["Noto Sans Bold"],"text-field":"{name:latin}","text-size":{stops:[[2,11],[5,17]]},"text-transform":"uppercase","text-max-width":6.25,visibility:"visible"},paint:{"text-halo-blur":1,"text-color":"#334","text-halo-width":2,"text-halo-color":"rgba(255,255,255,0.8)"}},{id:"place-country-1",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",filter:["all",["==","class","country"],["==","rank",1],["has","iso_a2"]],layout:{"text-font":["Noto Sans Bold"],"text-field":"{name:latin}","text-size":{stops:[[1,11],[4,17]]},"text-transform":"uppercase","text-max-width":6.25,visibility:"visible"},paint:{"text-halo-blur":1,"text-color":"#334","text-halo-width":2,"text-halo-color":"rgba(255,255,255,0.8)"}},{id:"place-continent",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",maxzoom:1,filter:["==","class","continent"],layout:{"text-font":["Noto Sans Bold"],"text-field":"{name:latin}","text-size":14,"text-max-width":6.25,"text-transform":"uppercase",visibility:"visible"},paint:{"text-halo-blur":1,"text-color":"#334","text-halo-width":2,"text-halo-color":"rgba(255,255,255,0.8)"}}],id:"qebnlkra6"}});var RQe=K((Xii,IQe)=>{"use strict";IQe.exports={version:8,name:"orto",metadata:{},center:[1.537786,41.837539],zoom:12,bearing:0,pitch:0,light:{anchor:"viewport",color:"white",intensity:.4,position:[1.15,45,30]},sources:{ortoEsri:{type:"raster",tiles:["https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}"],tileSize:256,maxzoom:18,attribution:"ESRI © ESRI"},ortoInstaMaps:{type:"raster",tiles:["https://tilemaps.icgc.cat/mapfactory/wmts/orto_8_12/CAT3857/{z}/{x}/{y}.png"],tileSize:256,maxzoom:13},ortoICGC:{type:"raster",tiles:["https://geoserveis.icgc.cat/icc_mapesmultibase/noutm/wmts/orto/GRID3857/{z}/{x}/{y}.jpeg"],tileSize:256,minzoom:13.1,maxzoom:20},openmaptiles:{type:"vector",url:"https://geoserveis.icgc.cat/contextmaps/basemap.json"}},sprite:"https://geoserveis.icgc.cat/contextmaps/sprites/sprite@1",glyphs:"https://geoserveis.icgc.cat/contextmaps/glyphs/{fontstack}/{range}.pbf",layers:[{id:"background",type:"background",paint:{"background-color":"#F4F9F4"}},{id:"ortoEsri",type:"raster",source:"ortoEsri",maxzoom:16,layout:{visibility:"visible"}},{id:"ortoICGC",type:"raster",source:"ortoICGC",minzoom:13.1,maxzoom:19,layout:{visibility:"visible"}},{id:"ortoInstaMaps",type:"raster",source:"ortoInstaMaps",maxzoom:13,layout:{visibility:"visible"}}]}});var ix=K((Zii,VQe)=>{"use strict";var Ugr=(eb(),or(Qx)).default,Ggr=zQe(),Hgr=RQe(),jgr='\xA9 OpenStreetMap contributors',BQe="https://basemaps.cartocdn.com/gl/positron-gl-style/style.json",qQe="https://basemaps.cartocdn.com/gl/dark-matter-gl-style/style.json",r7="https://basemaps.cartocdn.com/gl/voyager-gl-style/style.json",Wgr="https://basemaps.cartocdn.com/gl/positron-nolabels-gl-style/style.json",$gr="https://basemaps.cartocdn.com/gl/dark-matter-nolabels-gl-style/style.json",Ygr="https://basemaps.cartocdn.com/gl/voyager-nolabels-gl-style/style.json",NQe={basic:r7,streets:r7,outdoors:r7,light:BQe,dark:qQe,satellite:Hgr,"satellite-streets":Ggr,"open-street-map":{id:"osm",version:8,sources:{"plotly-osm-tiles":{type:"raster",attribution:jgr,tiles:["https://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":BQe,"carto-darkmatter":qQe,"carto-voyager":r7,"carto-positron-nolabels":Wgr,"carto-darkmatter-nolabels":$gr,"carto-voyager-nolabels":Ygr},OQe=Ugr(NQe);VQe.exports={styleValueDflt:"basic",stylesMap:NQe,styleValuesMap:OQe,traceLayerPrefix:"plotly-trace-layer-",layoutLayerPrefix:"plotly-layout-layer-",missingStyleErrorMsg:["No valid maplibre style found, please set `map.style` to one of:",OQe.join(", "),"or use a tile service."].join(` +`),mapOnErrorMsg:"Map error.",fitBoundsPadding:20}});var bk=K((Kii,WQe)=>{"use strict";var UQe=St(),GQe=wo().defaultLine,Xgr=kf().attributes,Zgr=lf(),Kgr=Qf().textposition,Jgr=Ef().overrideAll,Qgr=cu().templatedArray,HQe=ix(),jQe=Zgr({noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0});jQe.family.dflt="Open Sans Regular, Arial Unicode MS Regular";var e2r=WQe.exports=Jgr({_arrayAttrRegexps:[UQe.counterRegex("map",".layers",!0)],domain:Xgr({name:"map"}),style:{valType:"any",values:HQe.styleValuesMap,dflt:HQe.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},fitbounds:{valType:"enumerated",values:[!1,"locations"],dflt:"locations"},bounds:{west:{valType:"number"},east:{valType:"number"},south:{valType:"number"},north:{valType:"number"}},layers:Qgr("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:GQe},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:GQe}},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:jQe,textposition:UQe.extendFlat({},Kgr,{arrayOk:!1})}})},"plot","from-root");e2r.uirevision={valType:"any",editType:"none"}});var i7=K((Jii,ZQe)=>{"use strict";var{hovertemplateAttrs:t2r,texttemplateAttrs:r2r,templatefallbackAttrs:$Qe}=gu(),i2r=sm(),_k=Y4(),g5=Qf(),YQe=bk(),n2r=Tu(),a2r=Wu(),Z_=Os().extendFlat,o2r=Ef().overrideAll,s2r=bk(),XQe=_k.line,x5=_k.marker;ZQe.exports=o2r({lon:_k.lon,lat:_k.lat,cluster:{enabled:{valType:"boolean"},maxzoom:Z_({},s2r.layers.maxzoom,{}),step:{valType:"number",arrayOk:!0,dflt:-1,min:-1},size:{valType:"number",arrayOk:!0,dflt:20,min:0},color:{valType:"color",arrayOk:!0},opacity:Z_({},x5.opacity,{dflt:1})},mode:Z_({},g5.mode,{dflt:"markers"}),text:Z_({},g5.text,{}),texttemplate:r2r({editType:"plot"},{keys:["lat","lon","text"]}),texttemplatefallback:$Qe({editType:"plot"}),hovertext:Z_({},g5.hovertext,{}),line:{color:XQe.color,width:XQe.width},connectgaps:g5.connectgaps,marker:Z_({symbol:{valType:"string",dflt:"circle",arrayOk:!0},angle:{valType:"number",dflt:"auto",arrayOk:!0},allowoverlap:{valType:"boolean",dflt:!1},opacity:x5.opacity,size:x5.size,sizeref:x5.sizeref,sizemin:x5.sizemin,sizemode:x5.sizemode},a2r("marker")),fill:_k.fill,fillcolor:i2r(),textfont:YQe.layers.symbol.textfont,textposition:YQe.layers.symbol.textposition,below:{valType:"string"},selected:{marker:g5.selected.marker},unselected:{marker:g5.unselected.marker},hoverinfo:Z_({},n2r.hoverinfo,{flags:["lon","lat","text","name"]}),hovertemplate:t2r(),hovertemplatefallback:$Qe()},"calc","nested")});var Rre={};Fl(Rre,{isSupportedFont:()=>u2r});function u2r(e){return l2r.indexOf(e)!==-1}var l2r,Bre=ps(()=>{"use strict";l2r=["Metropolis Black Italic","Metropolis Black","Metropolis Bold Italic","Metropolis Bold","Metropolis Extra Bold Italic","Metropolis Extra Bold","Metropolis Extra Light Italic","Metropolis Extra Light","Metropolis Light Italic","Metropolis Light","Metropolis Medium Italic","Metropolis Medium","Metropolis Regular Italic","Metropolis Regular","Metropolis Semi Bold Italic","Metropolis Semi Bold","Metropolis Thin Italic","Metropolis Thin","Open Sans Bold Italic","Open Sans Bold","Open Sans Extrabold Italic","Open Sans Extrabold","Open Sans Italic","Open Sans Light Italic","Open Sans Light","Open Sans Regular","Open Sans Semibold Italic","Open Sans Semibold","Klokantech Noto Sans Bold","Klokantech Noto Sans CJK Bold","Klokantech Noto Sans CJK Regular","Klokantech Noto Sans Italic","Klokantech Noto Sans Regular"]});var QQe=K((Qii,JQe)=>{"use strict";var wk=St(),qre=ff(),f2r=Xp(),c2r=Qv(),h2r=e1(),d2r=um(),KQe=i7(),p2r=(Bre(),or(Rre)).isSupportedFont;JQe.exports=function(t,r,i,n){function a(m,w){return wk.coerce(t,r,KQe,m,w)}function o(m,w){return wk.coerce2(t,r,KQe,m,w)}var s=v2r(t,r,a);if(!s){r.visible=!1;return}if(a("text"),a("texttemplate"),a("texttemplatefallback"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback"),a("mode"),a("below"),qre.hasMarkers(r)){f2r(t,r,i,n,a,{noLine:!0,noAngle:!0}),a("marker.allowoverlap"),a("marker.angle");var l=r.marker;l.symbol!=="circle"&&(wk.isArrayOrTypedArray(l.size)&&(l.size=l.size[0]),wk.isArrayOrTypedArray(l.color)&&(l.color=l.color[0]))}qre.hasLines(r)&&(c2r(t,r,i,n,a,{noDash:!0}),a("connectgaps"));var u=o("cluster.maxzoom"),f=o("cluster.step"),c=o("cluster.color",r.marker&&r.marker.color||i),h=o("cluster.size"),d=o("cluster.opacity"),p=u!==!1||f!==!1||c!==!1||h!==!1||d!==!1,v=a("cluster.enabled",p);if(v||qre.hasText(r)){var y=n.font.family;h2r(t,r,n,a,{noSelect:!0,noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0,font:{family:p2r(y)?y:"Open Sans Regular",weight:n.font.weight,style:n.font.style,size:n.font.size,color:n.font.color}})}a("fill"),r.fill!=="none"&&d2r(t,r,i,a),wk.coerceSelectionMarkerOpacity(r,a)};function v2r(e,t,r){var i=r("lon")||[],n=r("lat")||[],a=Math.min(i.length,n.length);return t._length=a,a}});var Ore=K((eni,tet)=>{"use strict";var eet=Cs();tet.exports=function(t,r,i){var n={},a=i[r.subplot]._subplot,o=a.mockAxis,s=t.lonlat;return n.lonLabel=eet.tickText(o,o.c2l(s[0]),!0).text,n.latLabel=eet.tickText(o,o.c2l(s[1]),!0).text,n}});var Nre=K((tni,iet)=>{"use strict";var ret=St();iet.exports=function(t,r){var i=t.split(" "),n=i[0],a=i[1],o=ret.isArrayOrTypedArray(r)?ret.mean(r):r,s=.5+o/100,l=1.5+o/100,u=["",""],f=[0,0];switch(n){case"top":u[0]="top",f[1]=-l;break;case"bottom":u[0]="bottom",f[1]=l;break}switch(a){case"left":u[1]="right",f[0]=-s;break;case"right":u[1]="left",f[0]=s;break}var c;return u[0]&&u[1]?c=u.join("-"):u[0]?c=u[0]:u[1]?c=u[1]:c="center",{anchor:c,offset:f}}});var fet=K((rni,uet)=>{"use strict";var oet=Hs(),s0=St(),m2r=(Il(),or(Bl)).BADNUM,a7=zE(),net=gf(),y2r=Is(),g2r=M6(),o7=ff(),x2r=(Bre(),or(Rre)).isSupportedFont,b2r=Nre(),_2r=ud().appendArrayPointValue,w2r=Du().NEWLINES,A2r=Du().BR_TAG_ALL;uet.exports=function(t,r){var i=r[0].trace,n=i.visible===!0&&i._length!==0,a=i.fill!=="none",o=o7.hasLines(i),s=o7.hasMarkers(i),l=o7.hasText(i),u=s&&i.marker.symbol==="circle",f=s&&i.marker.symbol!=="circle",c=i.cluster&&i.cluster.enabled,h=n7("fill"),d=n7("line"),p=n7("circle"),v=n7("symbol"),y={fill:h,line:d,circle:p,symbol:v};if(!n)return y;var m;if((a||o)&&(m=a7.calcTraceToLineCoords(r)),a&&(h.geojson=a7.makePolygon(m),h.layout.visibility="visible",s0.extendFlat(h.paint,{"fill-color":i.fillcolor})),o&&(d.geojson=a7.makeLine(m),d.layout.visibility="visible",s0.extendFlat(d.paint,{"line-width":i.line.width,"line-color":i.line.color,"line-opacity":i.opacity})),u){var w=T2r(r);p.geojson=w.geojson,p.layout.visibility="visible",c&&(p.filter=["!",["has","point_count"]],y.cluster={type:"circle",filter:["has","point_count"],layout:{visibility:"visible"},paint:{"circle-color":Ure(i.cluster.color,i.cluster.step),"circle-radius":Ure(i.cluster.size,i.cluster.step),"circle-opacity":Ure(i.cluster.opacity,i.cluster.step)}},y.clusterCount={type:"symbol",filter:["has","point_count"],paint:{},layout:{"text-field":"{point_count_abbreviated}","text-font":aet(i),"text-size":12}}),s0.extendFlat(p.paint,{"circle-color":w.mcc,"circle-radius":w.mrc,"circle-opacity":w.mo})}if(u&&c&&(p.filter=["!",["has","point_count"]]),(f||l)&&(v.geojson=M2r(r,t),s0.extendFlat(v.layout,{visibility:"visible","icon-image":"{symbol}","text-field":"{text}"}),f&&(s0.extendFlat(v.layout,{"icon-size":i.marker.size/10}),"angle"in i.marker&&i.marker.angle!=="auto"&&s0.extendFlat(v.layout,{"icon-rotate":{type:"identity",property:"angle"},"icon-rotation-alignment":"map"}),v.layout["icon-allow-overlap"]=i.marker.allowoverlap,s0.extendFlat(v.paint,{"icon-opacity":i.opacity*i.marker.opacity,"icon-color":i.marker.color,"icon-halo-color":i.marker.color,"icon-halo-width":2,"icon-halo-blur":1.5})),l)){var _=(i.marker||{}).size,b=b2r(i.textposition,_);s0.extendFlat(v.layout,{"text-size":i.textfont.size,"text-anchor":b.anchor,"text-offset":b.offset,"text-font":aet(i)}),s0.extendFlat(v.paint,{"text-color":i.textfont.color,"text-opacity":i.opacity})}return y};function n7(e){return{type:e,geojson:a7.makeBlank(),layout:{visibility:"none"},filter:null,paint:{}}}function T2r(e){var t=e[0].trace,r=t.marker,i=t.selectedpoints,n=s0.isArrayOrTypedArray(r.color),a=s0.isArrayOrTypedArray(r.size),o=s0.isArrayOrTypedArray(r.opacity),s;function l(_){return t.opacity*_}function u(_){return _/2}var f;n&&(net.hasColorscale(t,"marker")?f=net.makeColorScaleFuncFromTrace(r):f=s0.identity);var c;a&&(c=g2r(t));var h;o&&(h=function(_){var b=oet(_)?+s0.constrain(_,0,1):0;return l(b)});var d=[];for(s=0;s850?s+=" Black":n>750?s+=" Extra Bold":n>650?s+=" Bold":n>550?s+=" Semi Bold":n>450?s+=" Medium":n>350?s+=" Regular":n>250?s+=" Light":n>150?s+=" Extra Light":s+=" Thin"):a.slice(0,2).join(" ")==="Open Sans"?(s="Open Sans",n>750?s+=" Extrabold":n>650?s+=" Bold":n>550?s+=" Semibold":n>350?s+=" Regular":s+=" Light"):a.slice(0,3).join(" ")==="Klokantech Noto Sans"&&(s="Klokantech Noto Sans",a[3]==="CJK"&&(s+=" CJK"),s+=n>500?" Bold":" Regular")),o&&(s+=" Italic"),s==="Open Sans Regular Italic"?s="Open Sans Italic":s==="Open Sans Regular Bold"?s="Open Sans Bold":s==="Open Sans Regular Bold Italic"?s="Open Sans Bold Italic":s==="Klokantech Noto Sans Regular Italic"&&(s="Klokantech Noto Sans Italic"),x2r(s)||(s=r);var l=s.split(", ");return l}});var pet=K((ini,det)=>{"use strict";var S2r=St(),cet=fet(),b5=ix().traceLayerPrefix,xv={cluster:["cluster","clusterCount","circle"],nonCluster:["fill","line","circle","symbol"]};function het(e,t,r,i){this.type="scattermap",this.subplot=e,this.uid=t,this.clusterEnabled=r,this.isHidden=i,this.sourceIds={fill:"source-"+t+"-fill",line:"source-"+t+"-line",circle:"source-"+t+"-circle",symbol:"source-"+t+"-symbol",cluster:"source-"+t+"-circle",clusterCount:"source-"+t+"-circle"},this.layerIds={fill:b5+t+"-fill",line:b5+t+"-line",circle:b5+t+"-circle",symbol:b5+t+"-symbol",cluster:b5+t+"-cluster",clusterCount:b5+t+"-cluster-count"},this.below=null}var Ak=het.prototype;Ak.addSource=function(e,t,r){var i={type:"geojson",data:t.geojson};r&&r.enabled&&S2r.extendFlat(i,{cluster:!0,clusterMaxZoom:r.maxzoom});var n=this.subplot.map.getSource(this.sourceIds[e]);n?n.setData(t.geojson):this.subplot.map.addSource(this.sourceIds[e],i)};Ak.setSourceData=function(e,t){this.subplot.map.getSource(this.sourceIds[e]).setData(t.geojson)};Ak.addLayer=function(e,t,r){var i={type:t.type,id:this.layerIds[e],source:this.sourceIds[e],layout:t.layout,paint:t.paint};t.filter&&(i.filter=t.filter);for(var n=this.layerIds[e],a,o=this.subplot.getMapLayers(),s=0;s=0;M--){var x=b[M];n.removeLayer(u.layerIds[x])}_||n.removeSource(u.sourceIds.circle)}function h(_){for(var b=xv.nonCluster,M=0;M=0;M--){var x=b[M];n.removeLayer(u.layerIds[x]),_||n.removeSource(u.sourceIds[x])}}function p(_){l?c(_):d(_)}function v(_){s?f(_):h(_)}function y(){for(var _=s?xv.cluster:xv.nonCluster,b=0;b<_.length;b++){var M=_[b],x=a[M];x&&(i.setOptions(u.layerIds[M],"setLayoutProperty",x.layout),x.layout.visibility==="visible"&&(M!=="cluster"&&u.setSourceData(M,x),i.setOptions(u.layerIds[M],"setPaintProperty",x.paint)))}}var m=this.isHidden,w=r.visible!==!0;w?m||p():m?w||v():l!==s?(p(),v()):(this.below!==o&&(p(!0),v(!0)),y()),this.clusterEnabled=s,this.isHidden=w,this.below=o,t[0].trace._glTrace=this};Ak.dispose=function(){for(var t=this.subplot.map,r=this.clusterEnabled?xv.cluster:xv.nonCluster,i=r.length-1;i>=0;i--){var n=r[i];t.removeLayer(this.layerIds[n]),t.removeSource(this.sourceIds[n])}};det.exports=function(t,r){var i=r[0].trace,n=i.cluster&&i.cluster.enabled,a=i.visible!==!0,o=new het(t,i.uid,n,a),s=cet(t.gd,r),l=o.below=t.belowLookup["trace-"+i.uid],u,f,c;if(n)for(o.addSource("circle",s.circle,i.cluster),u=0;u{"use strict";var E2r=Gf(),Gre=St(),k2r=lA(),C2r=Gre.fillText,D2r=(Il(),or(Bl)).BADNUM,F2r=ix().traceLayerPrefix;function L2r(e,t,r){var i=e.cd,n=i[0].trace,a=e.xa,o=e.ya,s=e.subplot,l=[],u=F2r+n.uid+"-circle",f=n.cluster&&n.cluster.enabled;if(f){var c=s.map.queryRenderedFeatures(null,{layers:[u]});l=c.map(function(A){return A.id})}var h=t>=0?Math.floor((t+180)/360):Math.ceil((t-180)/360),d=h*360,p=t-d;function v(A){var g=A.lonlat;if(g[0]===D2r||f&&l.indexOf(A.i+1)===-1)return 1/0;var E=Gre.modHalf(g[0],360),S=g[1],C=s.project([E,S]),k=C.x-a.c2p([p,S]),D=C.y-o.c2p([E,r]),F=Math.max(3,A.mrc||0);return Math.max(Math.sqrt(k*k+D*D)-F,1-3/F)}if(E2r.getClosest(i,v,e),e.index!==!1){var y=i[e.index],m=y.lonlat,w=[Gre.modHalf(m[0],360)+d,m[1]],_=a.c2p(w),b=o.c2p(w),M=y.mrc||1;e.x0=_-M,e.x1=_+M,e.y0=b-M,e.y1=b+M;var x={};x[n.subplot]={_subplot:s};var T=n._module.formatLabels(y,n,x);return e.lonLabel=T.lonLabel,e.latLabel=T.latLabel,e.color=k2r(n,y),e.extraText=vet(n,y,i[0].t.labels),e.hovertemplate=n.hovertemplate,[e]}}function vet(e,t,r){if(e.hovertemplate)return;var i=t.hi||e.hoverinfo,n=i.split("+"),a=n.indexOf("all")!==-1,o=n.indexOf("lon")!==-1,s=n.indexOf("lat")!==-1,l=t.lonlat,u=[];function f(c){return c+"\xB0"}return a||o&&s?u.push("("+f(l[1])+", "+f(l[0])+")"):o?u.push(r.lon+f(l[0])):s&&u.push(r.lat+f(l[1])),(a||n.indexOf("text")!==-1)&&C2r(t,e,u),u.join("
")}met.exports={hoverPoints:L2r,getExtraText:vet}});var get=K((ani,yet)=>{"use strict";yet.exports=function(t,r){return t.lon=r.lon,t.lat=r.lat,t}});var bet=K((oni,xet)=>{"use strict";var P2r=St(),z2r=ff(),{BADNUM:I2r}=(Il(),or(Bl)),u7=360,Hre=.001,f7=(e,t,r,i)=>[e.c2p([r,i]),t.c2p([r,i])];function R2r(e,t,r,i,n){let a=f7(e,t,r+u7,i),o=f7(e,t,r-u7,i),s=a[0]-n[0],l=a[1]-n[1],u=Math.abs(s-(n[0]-o[0])){if(Math.abs(o)n?null:[Math.floor(i)-1,Math.ceil(n)+1]}xet.exports=function(t,r){var f;let{cd:i,xaxis:n,yaxis:a}=t,{trace:o}=i[0];if(!z2r.hasMarkers(o))return[];if(r===!1){for(let c of i)c.selected=0;return[]}let s=(f=n._subplot)==null?void 0:f.map,l=!!(s!=null&&s.getRenderWorldCopies())&&r.xmax>r.xmin,u=[];for(let c=0;c=1)return 1;let h=f;for(let v=0;v<8;v++){let y=((o*h+a)*h+n)*h-f;if(Math.abs(y)y?d=h:p=h,h=(d+p)*.5}return((u*h+l)*h+s)*h}}function K7(){return Tk!=null||(Tk=typeof OffscreenCanvas<"u"&&!!new OffscreenCanvas(1,1).getContext("2d")&&typeof createImageBitmap=="function"),Tk}function _ne(){if(c7==null&&(c7=!1,K7())){let e=new OffscreenCanvas(5,5).getContext("2d",{willReadFrequently:!0});if(e){for(let r=0;r<25;r++){let i=r*4;e.fillStyle=`rgb(${i},${i+1},${i+2})`,e.fillRect(r%5,Math.floor(r/5),1,1)}let t=e.getImageData(0,0,5,5).data;for(let r=0;r<100;r++)if(r%4!=3&&t[r]!==r){c7=!0;break}}}return c7||!1}function wne(){var e=new Ch(9);return Ch!=Float32Array&&(e[1]=0,e[2]=0,e[3]=0,e[5]=0,e[6]=0,e[7]=0),e[0]=1,e[4]=1,e[8]=1,e}function j2r(e){var t=e[0],r=e[1],i=e[2],n=e[3],a=e[4],o=e[5],s=e[6],l=e[7],u=e[8];return t*(u*a-o*l)+r*(-u*n+o*s)+i*(l*n-a*s)}function drt(e,t){var r=Math.sin(t),i=Math.cos(t);return e[0]=i,e[1]=r,e[2]=0,e[3]=-r,e[4]=i,e[5]=0,e[6]=0,e[7]=0,e[8]=1,e}function W2r(e,t){var r=t[0],i=t[1],n=t[2],a=t[3],o=r+r,s=i+i,l=n+n,u=r*o,f=i*o,c=i*s,h=n*o,d=n*s,p=n*l,v=a*o,y=a*s,m=a*l;return e[0]=1-c-p,e[3]=f-m,e[6]=h+y,e[1]=f+m,e[4]=1-u-p,e[7]=d-v,e[2]=h-y,e[5]=d+v,e[8]=1-u-c,e}function tg(){var e=new Ch(16);return Ch!=Float32Array&&(e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[11]=0,e[12]=0,e[13]=0,e[14]=0),e[0]=1,e[5]=1,e[10]=1,e[15]=1,e}function J7(e){var t=new Ch(16);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}function prt(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}function kv(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}function fC(e,t){var r=t[0],i=t[1],n=t[2],a=t[3],o=t[4],s=t[5],l=t[6],u=t[7],f=t[8],c=t[9],h=t[10],d=t[11],p=t[12],v=t[13],y=t[14],m=t[15],w=r*s-i*o,_=r*l-n*o,b=r*u-a*o,M=i*l-n*s,x=i*u-a*s,T=n*u-a*l,A=f*v-c*p,g=f*y-h*p,E=f*m-d*p,S=c*y-h*v,C=c*m-d*v,k=h*m-d*y,D=w*k-_*C+b*S+M*E-x*g+T*A;return D?(D=1/D,e[0]=(s*k-l*C+u*S)*D,e[1]=(n*C-i*k-a*S)*D,e[2]=(v*T-y*x+m*M)*D,e[3]=(h*x-c*T-d*M)*D,e[4]=(l*E-o*k-u*g)*D,e[5]=(r*k-n*E+a*g)*D,e[6]=(y*b-p*T-m*_)*D,e[7]=(f*T-h*b+d*_)*D,e[8]=(o*C-s*E+u*A)*D,e[9]=(i*E-r*C-a*A)*D,e[10]=(p*x-v*b+m*w)*D,e[11]=(c*b-f*x-d*w)*D,e[12]=(s*g-o*S-l*A)*D,e[13]=(r*S-i*g+n*A)*D,e[14]=(v*_-p*M-y*w)*D,e[15]=(f*M-c*_+h*w)*D,e):null}function c3(e,t,r){var i=t[0],n=t[1],a=t[2],o=t[3],s=t[4],l=t[5],u=t[6],f=t[7],c=t[8],h=t[9],d=t[10],p=t[11],v=t[12],y=t[13],m=t[14],w=t[15],_=r[0],b=r[1],M=r[2],x=r[3];return e[0]=_*i+b*s+M*c+x*v,e[1]=_*n+b*l+M*h+x*y,e[2]=_*a+b*u+M*d+x*m,e[3]=_*o+b*f+M*p+x*w,_=r[4],b=r[5],M=r[6],x=r[7],e[4]=_*i+b*s+M*c+x*v,e[5]=_*n+b*l+M*h+x*y,e[6]=_*a+b*u+M*d+x*m,e[7]=_*o+b*f+M*p+x*w,_=r[8],b=r[9],M=r[10],x=r[11],e[8]=_*i+b*s+M*c+x*v,e[9]=_*n+b*l+M*h+x*y,e[10]=_*a+b*u+M*d+x*m,e[11]=_*o+b*f+M*p+x*w,_=r[12],b=r[13],M=r[14],x=r[15],e[12]=_*i+b*s+M*c+x*v,e[13]=_*n+b*l+M*h+x*y,e[14]=_*a+b*u+M*d+x*m,e[15]=_*o+b*f+M*p+x*w,e}function ih(e,t,r){var i=r[0],n=r[1],a=r[2],o,s,l,u,f,c,h,d,p,v,y,m;return t===e?(e[12]=t[0]*i+t[4]*n+t[8]*a+t[12],e[13]=t[1]*i+t[5]*n+t[9]*a+t[13],e[14]=t[2]*i+t[6]*n+t[10]*a+t[14],e[15]=t[3]*i+t[7]*n+t[11]*a+t[15]):(o=t[0],s=t[1],l=t[2],u=t[3],f=t[4],c=t[5],h=t[6],d=t[7],p=t[8],v=t[9],y=t[10],m=t[11],e[0]=o,e[1]=s,e[2]=l,e[3]=u,e[4]=f,e[5]=c,e[6]=h,e[7]=d,e[8]=p,e[9]=v,e[10]=y,e[11]=m,e[12]=o*i+f*n+p*a+t[12],e[13]=s*i+c*n+v*a+t[13],e[14]=l*i+h*n+y*a+t[14],e[15]=u*i+d*n+m*a+t[15]),e}function c0(e,t,r){var i=r[0],n=r[1],a=r[2];return e[0]=t[0]*i,e[1]=t[1]*i,e[2]=t[2]*i,e[3]=t[3]*i,e[4]=t[4]*n,e[5]=t[5]*n,e[6]=t[6]*n,e[7]=t[7]*n,e[8]=t[8]*a,e[9]=t[9]*a,e[10]=t[10]*a,e[11]=t[11]*a,e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}function h3(e,t,r){var i=Math.sin(r),n=Math.cos(r),a=t[4],o=t[5],s=t[6],l=t[7],u=t[8],f=t[9],c=t[10],h=t[11];return t!==e&&(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[4]=a*n+u*i,e[5]=o*n+f*i,e[6]=s*n+c*i,e[7]=l*n+h*i,e[8]=u*n-a*i,e[9]=f*n-o*i,e[10]=c*n-s*i,e[11]=h*n-l*i,e}function Ane(e,t,r){var i=Math.sin(r),n=Math.cos(r),a=t[0],o=t[1],s=t[2],l=t[3],u=t[8],f=t[9],c=t[10],h=t[11];return t!==e&&(e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=a*n-u*i,e[1]=o*n-f*i,e[2]=s*n-c*i,e[3]=l*n-h*i,e[8]=a*i+u*n,e[9]=o*i+f*n,e[10]=s*i+c*n,e[11]=l*i+h*n,e}function rg(e,t,r){var i=Math.sin(r),n=Math.cos(r),a=t[0],o=t[1],s=t[2],l=t[3],u=t[4],f=t[5],c=t[6],h=t[7];return t!==e&&(e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=a*n+u*i,e[1]=o*n+f*i,e[2]=s*n+c*i,e[3]=l*n+h*i,e[4]=u*n-a*i,e[5]=f*n-o*i,e[6]=c*n-s*i,e[7]=h*n-l*i,e}function vrt(e,t){return e[0]=t[0],e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=t[1],e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=t[2],e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}function $2r(e,t,r,i,n){var a=1/Math.tan(t/2);if(e[0]=a/r,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=a,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[11]=-1,e[12]=0,e[13]=0,e[15]=0,n!=null&&n!==1/0){var o=1/(i-n);e[10]=(n+i)*o,e[14]=2*n*i*o}else e[10]=-1,e[14]=-2*i;return e}function Y2r(e,t,r,i,n,a,o){var s=1/(t-r),l=1/(i-n),u=1/(a-o);return e[0]=-2*s,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*l,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*u,e[11]=0,e[12]=(t+r)*s,e[13]=(n+i)*l,e[14]=(o+a)*u,e[15]=1,e}function mrt(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]&&e[3]===t[3]&&e[4]===t[4]&&e[5]===t[5]&&e[6]===t[6]&&e[7]===t[7]&&e[8]===t[8]&&e[9]===t[9]&&e[10]===t[10]&&e[11]===t[11]&&e[12]===t[12]&&e[13]===t[13]&&e[14]===t[14]&&e[15]===t[15]}function yrt(e,t){var r=e[0],i=e[1],n=e[2],a=e[3],o=e[4],s=e[5],l=e[6],u=e[7],f=e[8],c=e[9],h=e[10],d=e[11],p=e[12],v=e[13],y=e[14],m=e[15],w=t[0],_=t[1],b=t[2],M=t[3],x=t[4],T=t[5],A=t[6],g=t[7],E=t[8],S=t[9],C=t[10],k=t[11],D=t[12],F=t[13],P=t[14],I=t[15];return Math.abs(r-w)<=1e-6*Math.max(1,Math.abs(r),Math.abs(w))&&Math.abs(i-_)<=1e-6*Math.max(1,Math.abs(i),Math.abs(_))&&Math.abs(n-b)<=1e-6*Math.max(1,Math.abs(n),Math.abs(b))&&Math.abs(a-M)<=1e-6*Math.max(1,Math.abs(a),Math.abs(M))&&Math.abs(o-x)<=1e-6*Math.max(1,Math.abs(o),Math.abs(x))&&Math.abs(s-T)<=1e-6*Math.max(1,Math.abs(s),Math.abs(T))&&Math.abs(l-A)<=1e-6*Math.max(1,Math.abs(l),Math.abs(A))&&Math.abs(u-g)<=1e-6*Math.max(1,Math.abs(u),Math.abs(g))&&Math.abs(f-E)<=1e-6*Math.max(1,Math.abs(f),Math.abs(E))&&Math.abs(c-S)<=1e-6*Math.max(1,Math.abs(c),Math.abs(S))&&Math.abs(h-C)<=1e-6*Math.max(1,Math.abs(h),Math.abs(C))&&Math.abs(d-k)<=1e-6*Math.max(1,Math.abs(d),Math.abs(k))&&Math.abs(p-D)<=1e-6*Math.max(1,Math.abs(p),Math.abs(D))&&Math.abs(v-F)<=1e-6*Math.max(1,Math.abs(v),Math.abs(F))&&Math.abs(y-P)<=1e-6*Math.max(1,Math.abs(y),Math.abs(P))&&Math.abs(m-I)<=1e-6*Math.max(1,Math.abs(m),Math.abs(I))}function grt(){var e=new Ch(3);return Ch!=Float32Array&&(e[0]=0,e[1]=0,e[2]=0),e}function eq(e){var t=new Ch(3);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function Cv(e){var t=e[0],r=e[1],i=e[2];return Math.sqrt(t*t+r*r+i*i)}function _et(e,t,r){var i=new Ch(3);return i[0]=e,i[1]=t,i[2]=r,i}function wp(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e[2]=t[2]+r[2],e}function tq(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e[2]=t[2]-r[2],e}function $f(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e[2]=t[2]*r,e}function cC(e,t,r,i){return e[0]=t[0]+r[0]*i,e[1]=t[1]+r[1]*i,e[2]=t[2]+r[2]*i,e}function xrt(e,t){var r=t[0]-e[0],i=t[1]-e[1],n=t[2]-e[2];return Math.sqrt(r*r+i*i+n*n)}function brt(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e}function rd(e,t){var r=t[0],i=t[1],n=t[2],a=r*r+i*i+n*n;return a>0&&(a=1/Math.sqrt(a)),e[0]=t[0]*a,e[1]=t[1]*a,e[2]=t[2]*a,e}function nh(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function bd(e,t,r){var i=t[0],n=t[1],a=t[2],o=r[0],s=r[1],l=r[2];return e[0]=n*l-a*s,e[1]=a*o-i*l,e[2]=i*s-n*o,e}function _rt(e,t,r){var i=t[0],n=t[1],a=t[2],o=r[3]*i+r[7]*n+r[11]*a+r[15];return o||(o=1),e[0]=(r[0]*i+r[4]*n+r[8]*a+r[12])/o,e[1]=(r[1]*i+r[5]*n+r[9]*a+r[13])/o,e[2]=(r[2]*i+r[6]*n+r[10]*a+r[14])/o,e}function wrt(e,t,r){var i=t[0],n=t[1],a=t[2];return e[0]=i*r[0]+n*r[3]+a*r[6],e[1]=i*r[1]+n*r[4]+a*r[7],e[2]=i*r[2]+n*r[5]+a*r[8],e}function rq(e,t,r){var i=r[0],n=r[1],a=r[2],o=r[3],s=t[0],l=t[1],u=t[2],f=n*u-a*l,c=a*s-i*u,h=i*l-n*s;return f+=f,c+=c,h+=h,e[0]=s+o*f+n*h-a*c,e[1]=l+o*c+a*f-i*h,e[2]=u+o*h+i*c-n*f,e}function $5(e,t,r,i){var n=[],a=[];return n[0]=t[0]-r[0],n[1]=t[1]-r[1],n[2]=t[2]-r[2],a[0]=n[0],a[1]=n[1]*Math.cos(i)-n[2]*Math.sin(i),a[2]=n[1]*Math.sin(i)+n[2]*Math.cos(i),e[0]=a[0]+r[0],e[1]=a[1]+r[1],e[2]=a[2]+r[2],e}function d3(e,t,r,i){var n=[],a=[];return n[0]=t[0]-r[0],n[1]=t[1]-r[1],n[2]=t[2]-r[2],a[0]=n[2]*Math.sin(i)+n[0]*Math.cos(i),a[1]=n[1],a[2]=n[2]*Math.cos(i)-n[0]*Math.sin(i),e[0]=a[0]+r[0],e[1]=a[1]+r[1],e[2]=a[2]+r[2],e}function iq(e,t,r,i){var n=[],a=[];return n[0]=t[0]-r[0],n[1]=t[1]-r[1],n[2]=t[2]-r[2],a[0]=n[0]*Math.cos(i)-n[1]*Math.sin(i),a[1]=n[0]*Math.sin(i)+n[1]*Math.cos(i),a[2]=n[2],e[0]=a[0]+r[0],e[1]=a[1]+r[1],e[2]=a[2]+r[2],e}function Art(e){return e[0]=0,e[1]=0,e[2]=0,e}function X2r(){var e=new Ch(4);return Ch!=Float32Array&&(e[0]=0,e[1]=0,e[2]=0,e[3]=0),e}function Z2r(e,t,r,i){var n=new Ch(4);return n[0]=e,n[1]=t,n[2]=r,n[3]=i,n}function K2r(e,t,r){return e[0]=t[0]*r[0],e[1]=t[1]*r[1],e[2]=t[2]*r[2],e[3]=t[3]*r[3],e}function Trt(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e[2]=t[2]*r,e[3]=t[3]*r,e}function J2r(e,t){var r=t[0],i=t[1],n=t[2],a=t[3],o=r*r+i*i+n*n+a*a;return o>0&&(o=1/Math.sqrt(o)),e[0]=r*o,e[1]=i*o,e[2]=n*o,e[3]=a*o,e}function h0(e,t,r){var i=t[0],n=t[1],a=t[2],o=t[3];return e[0]=r[0]*i+r[4]*n+r[8]*a+r[12]*o,e[1]=r[1]*i+r[5]*n+r[9]*a+r[13]*o,e[2]=r[2]*i+r[6]*n+r[10]*a+r[14]*o,e[3]=r[3]*i+r[7]*n+r[11]*a+r[15]*o,e}function wet(){var e=new Ch(4);return Ch!=Float32Array&&(e[0]=0,e[1]=0,e[2]=0),e[3]=1,e}function Q2r(e,t,r){r*=.5;var i=Math.sin(r);return e[0]=i*t[0],e[1]=i*t[1],e[2]=i*t[2],e[3]=Math.cos(r),e}function Srt(e,t,r){var i=t[0],n=t[1],a=t[2],o=t[3],s=r[0],l=r[1],u=r[2],f=r[3];return e[0]=i*f+o*s+n*u-a*l,e[1]=n*f+o*l+a*s-i*u,e[2]=a*f+o*u+i*l-n*s,e[3]=o*f-i*s-n*l-a*u,e}function Nk(e,t,r,i){var n=t[0],a=t[1],o=t[2],s=t[3],l=r[0],u=r[1],f=r[2],c=r[3],h,d=n*l+a*u+o*f+s*c,p,v,y;return d<0&&(d=-d,l=-l,u=-u,f=-f,c=-c),1-d>1e-6?(h=Math.acos(d),p=Math.sin(h),v=Math.sin((1-i)*h)/p,y=Math.sin(i*h)/p):(v=1-i,y=i),e[0]=v*n+y*l,e[1]=v*a+y*u,e[2]=v*o+y*f,e[3]=v*s+y*c,e}function exr(e,t){var r=t[0]+t[4]+t[8],i;if(r>0)i=Math.sqrt(r+1),e[3]=.5*i,i=.5/i,e[0]=(t[5]-t[7])*i,e[1]=(t[6]-t[2])*i,e[2]=(t[1]-t[3])*i;else{var n=0;t[4]>t[0]&&(n=1),t[8]>t[n*3+n]&&(n=2);var a=(n+1)%3,o=(n+2)%3;i=Math.sqrt(t[n*3+n]-t[a*3+a]-t[o*3+o]+1),e[n]=.5*i,i=.5/i,e[3]=(t[a*3+o]-t[o*3+a])*i,e[a]=(t[a*3+n]+t[n*3+a])*i,e[o]=(t[o*3+n]+t[n*3+o])*i}return e}function nq(e,t,r,i){var n=arguments.length>4&&arguments[4]!==void 0?arguments[4]:"zyx",a=Math.PI/360;t*=a,i*=a,r*=a;var o=Math.sin(t),s=Math.cos(t),l=Math.sin(r),u=Math.cos(r),f=Math.sin(i),c=Math.cos(i);switch(n){case"xyz":e[0]=o*u*c+s*l*f,e[1]=s*l*c-o*u*f,e[2]=s*u*f+o*l*c,e[3]=s*u*c-o*l*f;break;case"xzy":e[0]=o*u*c-s*l*f,e[1]=s*l*c-o*u*f,e[2]=s*u*f+o*l*c,e[3]=s*u*c+o*l*f;break;case"yxz":e[0]=o*u*c+s*l*f,e[1]=s*l*c-o*u*f,e[2]=s*u*f-o*l*c,e[3]=s*u*c+o*l*f;break;case"yzx":e[0]=o*u*c+s*l*f,e[1]=s*l*c+o*u*f,e[2]=s*u*f-o*l*c,e[3]=s*u*c-o*l*f;break;case"zxy":e[0]=o*u*c-s*l*f,e[1]=s*l*c+o*u*f,e[2]=s*u*f+o*l*c,e[3]=s*u*c-o*l*f;break;case"zyx":e[0]=o*u*c-s*l*f,e[1]=s*l*c+o*u*f,e[2]=s*u*f-o*l*c,e[3]=s*u*c+o*l*f;break;default:throw Error("Unknown angle order "+n)}return e}function aq(){var e=new Ch(2);return Ch!=Float32Array&&(e[0]=0,e[1]=0),e}function Tet(e,t){var r=new Ch(2);return r[0]=e,r[1]=t,r}function Mne(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e}function Sne(e){var t=e[0],r=e[1];return Math.sqrt(t*t+r*r)}function txr(e){var t=e[0],r=e[1];return t*t+r*r}function rxr(e,t){return e[0]*t[0]+e[1]*t[1]}function Ene(e){return e[0]=0,e[1]=0,e}function Ud(e,t,r){return t*(Aa/(e.tileSize*2**(r-e.tileID.overscaledZ)))}function f0(e){return e instanceof Error?e:Error(typeof e=="string"?e:String(e))}function mx(){return new Float64Array(4)}function Gu(){return new Float64Array(3)}function yx(){return new Float64Array(16)}function dC(){let e=new Float64Array(16);return kv(e),e}function kne(){let e=new Float32Array(16);return kv(e),e}function ig(e,t,r,i,n=!1){if(!r[0]&&!r[1])return[0,0];let a=n?i==="map"?-e.bearingInRadians:0:i==="viewport"?e.bearingInRadians:0;if(a){let o=Math.sin(a),s=Math.cos(a);r=[r[0]*s-r[1]*o,r[0]*o+r[1]*s]}return[n?r[0]:Ud(t,r[0],e.zoom),n?r[1]:Ud(t,r[1],e.zoom)]}function oq(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]+e[3]}function Ap(e,t,r){let i=j2r([e[0],e[1],e[2],t[0],t[1],t[2],r[0],r[1],r[2]]);if(i===0)return null;let n=bd([],[t[0],t[1],t[2]],[r[0],r[1],r[2]]),a=bd([],[r[0],r[1],r[2]],[e[0],e[1],e[2]]),o=bd([],[e[0],e[1],e[2]],[t[0],t[1],t[2]]),s=$f([],n,-e[3]);return wp(s,s,$f([],a,-t[3])),wp(s,s,$f([],o,-r[3])),$f(s,s,1/i),s}function krt(e,t,r){let i=e[0]*r[0]+e[1]*r[1]+e[2]*r[2],n=t[0]*r[0]+t[1]*r[1]+t[2]*r[2];return n===0?null:(-i-r[3])/n}function pC(e,t,r,i){let n=Math.sqrt(e*e+t*t),a=Math.sqrt(r*r+i*i);e/=n,t/=n,r/=a,i/=a;let o=e*r+t*i,s=Math.acos(o);return-t*r+e*i>0?s:-s}function Gd(e,t){let r=dx(e,360),i=dx(t,360),n=i-r,a=i>r?n-360:n+360;return Math.abs(n)l.canonical.z)),r=1/0,i=-1/0,n=1/0,a=-1/0,o=[];for(let l of e){let{x:u,y:f,z:c}=l.canonical,h=2**(t-c),d=u*h,p=f*h;o.push({id:l,x:d,y:p}),di&&(i=d),pa&&(a=p)}let s=new Set;for(let l of o)(l.x===r||l.x===i||l.y===n||l.y===a)&&s.add(l.id);return s}function ixr(e){if(e<=0)return 0;if(e>=1)return 1;let t=e*e,r=t*e;return 4*(e<.5?r:3*(e-t)+r-.75)}function sq(e,t,r,i){return H2r(e,t,r,i)}function Pl(e,t,r){return Math.min(r,Math.max(t,e))}function Tp(e,t,r){let i=r-t,n=((e-t)%i+i)%i+t;return n===t?r:n}function js(e,...t){for(let r of t)for(let i in r)e[i]=r[i];return e}function Y5(e,t){let r={};for(let i of t)i in e&&(r[i]=e[i]);return r}function Cne(){return nxr++}function axr(e){return Math.log(e)/Math.LN2%1==0}function Frt(e){return e<=1?1:2**Math.ceil(Math.log(e)/Math.LN2)}function id(e){return 2**e}function d0(e){return Math.log(e)/Math.LN2}function Hd(e,t,r){if(t<=0)return e;let i=1/t;return r===void 0||Math.abs(r)<1e-10?Math.round(e*i)/i:(r>0?Math.ceil(e*i-1e-9):Math.floor(e*i+1e-10))/i}function uq(e,t,r){let i={};for(let n in e)i[n]=t.call(r||this,e[n],n,e);return i}function Dne(e,t,r){let i={};for(let n in e)t.call(r||this,e[n],n,e)&&(i[n]=e[n]);return i}function C1(e,t){if(Array.isArray(e)){if(!Array.isArray(t)||e.length!==t.length)return!1;for(let r=0;r(t.y-e.y)*(r.x-e.x)}function Lrt(e,t,r,i){let n=t.y-e.y,a=t.x-e.x,o=i.y-r.y,s=i.x-r.x,l=o*a-s*n;if(l===0)return null;let u=e.y-r.y,f=e.x-r.x,c=(s*u-o*f)/l;return new Jr(e.x+c*a,e.y+c*n)}function Prt([e,t,r]){return t+=90,t*=Math.PI/180,r*=Math.PI/180,[e*Math.cos(t)*Math.sin(r),e*Math.sin(t)*Math.sin(r),e*Math.cos(r)]}function s3(e){return typeof WorkerGlobalScope<"u"&&e!==void 0&&e instanceof WorkerGlobalScope}function zrt(e){let t=/(?:^|(?:\s*\,\s*))([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g,r={};if(e.replace(t,(i,n,a,o)=>{let s=a||o;return r[n]=!s||s.toLowerCase(),""}),r["max-age"]){let i=parseInt(r["max-age"],10);isNaN(i)?delete r["max-age"]:r["max-age"]=i}return r}function Irt(e){if(jre==null){let t=e.navigator?e.navigator.userAgent:null;jre=!!e.safari||!!(t&&(/\b(iPad|iPhone|iPod)\b/.test(t)||t.match("Safari")&&!t.match("Chrome")))}return jre}function gx(e){return typeof ImageBitmap<"u"&&e instanceof ImageBitmap}function oxr(e,t,r,i,n){let a=Math.max(-t,0)*4,o=(Math.max(0,r)-r)*i*4+a,s=i*4,l=Math.max(0,t),u=Math.max(0,r),f=Math.min(e.width,t+i),c=Math.min(e.height,r+n);return{rect:{x:l,y:u,width:f-l,height:c-u},layout:[{offset:o,stride:s}]}}function qrt(e,t,r,i,n){return Ls(this,null,function*(){if(typeof VideoFrame>"u")throw Error("VideoFrame not supported");let a=new VideoFrame(e,{timestamp:0});try{let o=a==null?void 0:a.format;if(!o||!(o.startsWith("BGR")||o.startsWith("RGB")))throw Error(`Unrecognized format ${o}`);let s=o.startsWith("BGR"),l=new Uint8ClampedArray(i*n*4);if(yield a.copyTo(l,oxr(e,t,r,i,n)),s)for(let u=0;u{e.removeEventListener(t,r,i)}}}function Yf(e){return e*Math.PI/180}function E1(e){return e/Math.PI*180}function Fne(e,t){return e.roll==t.roll&&e.pitch==t.pitch&&e.bearing==t.bearing}function Ort(e){let t=new Float64Array(9);W2r(t,e);let r=E1(-Math.asin(Pl(t[2],-1,1))),i,n;return Math.hypot(t[5],t[8])<.001?(i=0,n=-E1(Math.atan2(t[3],t[4]))):(i=E1(t[5]===0&&t[8]===0?0:Math.atan2(t[5],t[8])),n=E1(t[1]===0&&t[0]===0?0:Math.atan2(t[1],t[0]))),{roll:i,pitch:r+90,bearing:n}}function Lne(e,t,r){let i=Tet(t.x-r.x,t.y-r.y),n=Tet(e.x-r.x,e.y-r.y),a=i[0]*n[1]-i[1]*n[0];return E1(Math.atan2(a,rxr(i,n)))}function Pne(e,t,r){let i=new Float64Array(4);return nq(i,e,t-90,r),i}function Urt(e,t){return Nrt[t]&&"touches"in e}function Grt(e,t){var n,a;if(!Vrt[t])return!1;let r=e,i=((a=(n=r==null?void 0:r.target)==null?void 0:n.ownerDocument)==null?void 0:a.defaultView)||window;return r instanceof i.MouseEvent||r instanceof i.WheelEvent}function Hrt(e){return Nrt[e]||Vrt[e]}function ng(e){return e instanceof Error&&e.name==="AbortError"}function fq(e){if(e.aborted)throw new X5(e.reason)}function zne(e){return jd.REGISTERED_PROTOCOLS[e.substring(0,e.indexOf("://"))]}function jrt(e,t){jd.REGISTERED_PROTOCOLS[e]=t}function Wrt(e){delete jd.REGISTERED_PROTOCOLS[e]}function cq(){var e;if(s3(self))return(e=self.worker)==null?void 0:e.referrer;if(window.location.protocol==="blob:")try{return window.parent.location.href}catch(t){}return window.location.href}function lxr(e,t){return Ls(this,null,function*(){let r=new Request(e.url,{method:e.method||"GET",body:e.body,credentials:e.credentials,headers:e.headers,cache:e.cache,referrer:cq(),referrerPolicy:e.referrerPolicy,signal:t.signal});e.type==="json"&&!r.headers.has("Accept")&&r.headers.set("Accept","application/json");let i;try{i=yield fetch(r)}catch(o){throw ng(o)?o:new B5(0,f0(o).message,e.url,new Blob)}if(!i.ok){let o=yield i.blob();throw new B5(i.status,i.statusText,e.url,o)}let n;n=e.type==="arrayBuffer"||e.type==="image"?i.arrayBuffer():e.type==="json"?i.json():i.text();let a=yield n;return fq(t.signal),{data:a,cacheControl:i.headers.get("Cache-Control"),expires:i.headers.get("Expires"),etag:i.headers.get("ETag")}})}function uxr(e,t){return new Promise((r,i)=>{var a;let n=new XMLHttpRequest;n.open(e.method||"GET",e.url,!0),(e.type==="arrayBuffer"||e.type==="image")&&(n.responseType="arraybuffer");for(let o in e.headers)n.setRequestHeader(o,e.headers[o]);e.type==="json"&&(n.responseType="text",(a=e.headers)!=null&&a.Accept||n.setRequestHeader("Accept","application/json")),n.withCredentials=e.credentials==="include",n.onerror=()=>{i(Error(n.statusText))},n.onload=()=>{if(!t.signal.aborted)if((n.status>=200&&n.status<300||n.status===0)&&n.response!==null){let o=n.response;if(e.type==="json")try{o=JSON.parse(n.response)}catch(s){i(s);return}r({data:o,cacheControl:n.getResponseHeader("Cache-Control"),expires:n.getResponseHeader("Expires"),etag:n.getResponseHeader("ETag")})}else{let o=new Blob([n.response],{type:n.getResponseHeader("Content-Type")});i(new B5(n.status,n.statusText,e.url,o))}},t.signal.addEventListener("abort",()=>{n.abort(),i(new X5(t.signal.reason))}),n.send(e.body)})}function Rne(e){if(!e||e.startsWith("data:image/"))return!0;if(e.startsWith("blob:")&&(e=e.slice(5),e.startsWith("null")))return!1;if(e.indexOf("://")<=0)return!0;let t=new URL(e),r=window.location;return t.protocol===r.protocol&&t.host===r.host}function ket(e,t,r){var i;(i=r[e])!=null&&i.includes(t)||(r[e]||(r[e]=[]),r[e].push(t))}function Wre(e,t,r){if(r!=null&&r[e]){let i=r[e].indexOf(t);i!==-1&&r[e].splice(i,1)}}function ed(e,t){return{kind:"array",itemType:e,N:t}}function _c(e){if(e.kind==="array"){let t=_c(e.itemType);return typeof e.N=="number"?`array<${t}, ${e.N}>`:e.itemType.kind==="value"?"array":`array<${t}>`}return e.kind}function Xk(e,t){if(t.kind==="error")return null;if(e.kind==="array"){if(t.kind==="array"&&(t.N===0&&t.itemType.kind==="value"||!Xk(e.itemType,t.itemType))&&(typeof e.N!="number"||e.N===t.N))return null}else{if(e.kind===t.kind)return null;if(e.kind==="value"){for(let r of cxr)if(!Xk(r,t))return null}}return`Expected ${_c(e)} but found ${_c(t)} instead.`}function Bne(e,t){return t.some(r=>r.kind===e.kind)}function n3(e,t){return t.some(r=>r==="null"?e===null:r==="array"?Array.isArray(e):r==="object"?e&&!Array.isArray(e)&&typeof e=="object":r===typeof e)}function nx(e,t){return e.kind==="array"&&t.kind==="array"?e.itemType.kind===t.itemType.kind&&typeof e.N=="number":e.kind===t.kind}function eit(e){return e%=360,e<0&&(e+=360),e}function tit([e,t,r,i]){e=$re(e),t=$re(t),r=$re(r);let n,a,o=Yre((.2225045*e+.7168786*t+.0606169*r)/1);e===t&&t===r?n=a=o:(n=Yre((.4360747*e+.3850649*t+.1430804*r)/Zrt),a=Yre((.0139322*e+.0971045*t+.7141733*r)/Krt));let s=116*o-16;return[s<0?0:s,500*(n-o),200*(o-a),i]}function $re(e){return e<=.04045?e/12.92:((e+.055)/1.055)**2.4}function Yre(e){return e>.008856451679035631?e**(1/3):e/Qrt+Jrt}function rit([e,t,r,i]){let n=(e+16)/116,a=isNaN(t)?n:n+t/500,o=isNaN(r)?n:n-r/200;return n=1*Zre(n),a=Zrt*Zre(a),o=Krt*Zre(o),[Xre(3.1338561*a-1.6168667*n-.4906146*o),Xre(-.9787684*a+1.9161415*n+.033454*o),Xre(.0719453*a-.2289914*n+1.4052427*o),i]}function Xre(e){return e=e<=.00304?12.92*e:1.055*e**(1/2.4)-.055,e<0?0:e>1?1:e}function Zre(e){return e>fie?e*e*e:Qrt*(e-Jrt)}function pxr(e){let[t,r,i,n]=tit(e),a=Math.sqrt(r*r+i*i);return[Math.round(a*1e4)?eit(Math.atan2(i,r)*dxr):NaN,a,t,n]}function vxr([e,t,r,i]){return e=isNaN(e)?0:e*hxr,rit([r,Math.cos(e)*t,Math.sin(e)*t,i])}function mxr([e,t,r,i]){e=eit(e),t/=100,r/=100;function n(a){let o=(a+e/30)%12,s=t*Math.min(r,1-r);return r-s*Math.max(-1,Math.min(o-3,9-o,1))}return[n(0),n(8),n(4),i]}function Vk(e,t){return yxr(e,t)?e[t]:void 0}function gxr(e){if(e=e.toLowerCase().trim(),e==="transparent")return[0,0,0,0];let t=Vk(xxr,e);if(t){let[i,n,a]=t;return[i/255,n/255,a/255,1]}if(e.startsWith("#")&&/^#(?:[0-9a-f]{3,4}|[0-9a-f]{6}|[0-9a-f]{8})$/.test(e)){let i=e.length<6?1:2,n=1;return[h7(e.slice(n,n+=i)),h7(e.slice(n,n+=i)),h7(e.slice(n,n+=i)),h7(e.slice(n,n+i)||"ff")]}if(e.startsWith("rgb")){let i=e.match(/^rgba?\(\s*([\de.+-]+)(%)?(?:\s+|\s*(,)\s*)([\de.+-]+)(%)?(?:\s+|\s*(,)\s*)([\de.+-]+)(%)?(?:\s*([,\/])\s*([\de.+-]+)(%)?)?\s*\)$/);if(i){let[n,a,o,s,l,u,f,c,h,d,p,v]=i,y=[s||" ",f||" ",d].join("");if(y===" "||y===" /"||y===",,"||y===",,,"){let m=[o,u,h].join(""),w=m==="%%%"?100:m===""?255:0;if(w){let _=[A5(+a/w,0,1),A5(+l/w,0,1),A5(+c/w,0,1),p?Cet(+p,v):1];if(Det(_))return _}}return}}let r=e.match(/^hsla?\(\s*([\de.+-]+)(?:deg)?(?:\s+|\s*(,)\s*)([\de.+-]+)%(?:\s+|\s*(,)\s*)([\de.+-]+)%(?:\s*([,\/])\s*([\de.+-]+)(%)?)?\s*\)$/);if(r){let[i,n,a,o,s,l,u,f,c]=r,h=[a||" ",s||" ",u].join("");if(h===" "||h===" /"||h===",,"||h===",,,"){let d=[+n,A5(+o,0,100),A5(+l,0,100),f?Cet(+f,c):1];if(Det(d))return mxr(d)}}}function h7(e){return parseInt(e.padEnd(2,e),16)/255}function Cet(e,t){return A5(t?e/100:e,0,1)}function A5(e,t,r){return Math.min(Math.max(t,e),r)}function Det(e){return!e.some(Number.isNaN)}function cx(e,t,r){return e+r*(t-e)}function q5(e,t,r){return e.map((i,n)=>cx(i,t[n],r))}function bxr(e){return e==="rgb"||e==="hcl"||e==="lab"}function nit(e,t,r,i){return typeof e=="number"&&e>=0&&e<=255&&typeof t=="number"&&t>=0&&t<=255&&typeof r=="number"&&r>=0&&r<=255?i===void 0||typeof i=="number"&&i>=0&&i<=1?null:`Invalid rgba value [${[e,t,r,i].join(", ")}]: 'a' must be between 0 and 1.`:`Invalid rgba value [${(typeof i=="number"?[e,t,r,i]:[e,t,r]).join(", ")}]: 'r', 'g', and 'b' must be between 0 and 255.`}function O5(e){if(e===null||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||e instanceof ag||e instanceof Ol||e instanceof qne||e instanceof Qy||e instanceof Gm||e instanceof Hm||e instanceof Mv||e instanceof Nm||e instanceof Vm)return!0;if(Array.isArray(e)){for(let t of e)if(!O5(t))return!1;return!0}if(typeof e=="object"){for(let t in e)if(!O5(e[t]))return!1;return!0}return!1}function rh(e){if(e===null)return xC;if(typeof e=="string")return Yl;if(typeof e=="boolean")return hu;if(typeof e=="number")return ss;if(e instanceof Ol)return k1;if(e instanceof ag)return hq;if(e instanceof qne)return dq;if(e instanceof Qy)return bC;if(e instanceof Gm)return pq;if(e instanceof Hm)return vq;if(e instanceof Mv)return Yk;if(e instanceof Nm)return mq;if(e instanceof Vm)return _C;if(Array.isArray(e)){let t=e.length,r;for(let i of e){let n=rh(i);if(!r)r=n;else{if(r===n)continue;r=Kl;break}}return ed(r||Kl,t)}return i3}function Uk(e){let t=typeof e;return e===null?"":t==="string"||t==="number"||t==="boolean"?String(e):e instanceof Ol||e instanceof ag||e instanceof Qy||e instanceof Gm||e instanceof Hm||e instanceof Mv||e instanceof Nm||e instanceof Vm?e.toString():JSON.stringify(e)}function yq(e,t,r){let i=e.length-1,n=0,a=i,o=0,s,l;for(;n<=a;)if(o=Math.floor((n+a)/2),s=e[o],l=e[o+1],s<=t){if(o===i||tt)a=o-1;else throw new hc("Input is not a number.",r);return 0}function Txr(e,t,r,i){let n=3*e,a=3*(r-e)-n,o=1-n-a,s=3*t,l=3*(i-t)-s,u=1-s-l;return function(f,c=1e-6){if(f<=0)return 0;if(f>=1)return 1;let h=f;for(let v=0;v<8;v++){let y=((o*h+a)*h+n)*h-f;if(Math.abs(y)y?d=h:p=h,h=(d+p)*.5}return((u*h+l)*h+s)*h}}function Kre(e,t,r,i){let n=i-r,a=e-r;return n===0?0:t===1?a/n:(t**+a-1)/(t**+n-1)}function fit(e,t,r=0,i=e.length-1,n=Mxr){for(;i>r;){if(i-r>600){let l=i-r+1,u=t-r+1,f=Math.log(l),c=.5*Math.exp(2*f/3),h=.5*Math.sqrt(f*c*(l-c)/l)*(u-l/2<0?-1:1);fit(e,t,Math.max(r,Math.floor(t-u*c/l+h)),Math.min(i,Math.floor(t+(l-u)*c/l+h)),n)}let a=e[t],o=r,s=i;for(Mk(e,r,t),n(e[i],a)>0&&Mk(e,r,i);o0;)s--}n(e[r],a)===0?Mk(e,r,s):(s++,Mk(e,s,i)),s<=t&&(r=s+1),t<=s&&(i=s-1)}}function Mk(e,t,r){let i=e[t];e[t]=e[r],e[r]=i}function Mxr(e,t){return et)}function gq(e,t){if(e.length<=1)return[e];let r=[],i,n;for(let a of e){let o=Exr(a);o!==0&&(a.area=Math.abs(o),n===void 0&&(n=o<0),n===o<0?(i&&r.push(i),i=[a]):i.push(a))}if(i&&r.push(i),t>1)for(let a=0;ar}function qxr(e,t,r){return t<=r}function Oxr(e,t,r){return t>=r}function wit(e,t,r,i){return i.compare(t,r)===0}function Nxr(e,t,r,i){return!wit(e,t,r,i)}function Vxr(e,t,r,i){return i.compare(t,r)<0}function Uxr(e,t,r,i){return i.compare(t,r)>0}function Gxr(e,t,r,i){return i.compare(t,r)<=0}function Hxr(e,t,r,i){return i.compare(t,r)>=0}function Z5(e,t,r){let i=e!=="=="&&e!=="!=";return class Ait{constructor(a,o,s,l){this.lhs=a,this.rhs=o,this.key=s,this.collator=l,this.type=hu,this.hasUntypedArgument=a.type.kind==="value"||o.type.kind==="value"}static parse(a,o){if(a.length!==3&&a.length!==4)return o.error("Expected two or three arguments.");let s=a[0],l=o.parse(a[1],1,Kl);if(!l)return null;if(!Let(s,l.type))return o.concat(1).error(`"${s}" comparisons are not supported for type '${_c(l.type)}'.`);let u=o.parse(a[2],2,Kl);if(!u)return null;if(!Let(s,u.type))return o.concat(2).error(`"${s}" comparisons are not supported for type '${_c(u.type)}'.`);if(l.type.kind!==u.type.kind&&l.type.kind!=="value"&&u.type.kind!=="value")return o.error(`Cannot compare types '${_c(l.type)}' and '${_c(u.type)}'.`);i&&(l.type.kind==="value"&&u.type.kind!=="value"?l=new Zy(u.type,[l],o.key):l.type.kind!=="value"&&u.type.kind==="value"&&(u=new Zy(l.type,[u],o.key)));let f=null;if(a.length===4){if(l.type.kind!=="string"&&u.type.kind!=="string"&&l.type.kind!=="value"&&u.type.kind!=="value")return o.error("Cannot use collator to compare non-string types.");if(f=o.parse(a[3],3,dq),!f)return null}return new Ait(l,u,o.key,f)}evaluate(a){let o=this.lhs.evaluate(a),s=this.rhs.evaluate(a);if(i&&this.hasUntypedArgument){let l=rh(o),u=rh(s);if(l.kind!==u.kind||l.kind!=="string"&&l.kind!=="number")throw new hc(`Expected arguments for "${e}" to be (string, string) or (number, number), but found (${l.kind}, ${u.kind}) instead.`,this.key)}if(this.collator&&!i&&this.hasUntypedArgument){let l=rh(o),u=rh(s);if(l.kind!=="string"||u.kind!=="string")return t(a,o,s)}return this.collator?r(a,o,s,this.collator.evaluate(a)):t(a,o,s)}eachChild(a){a(this.lhs),a(this.rhs),this.collator&&a(this.collator)}outputDefined(){return!0}}}function ebr(e,t){let r=tbr(e[0]),i=ibr(e[1]),n=2**t.z;return[Math.round(r*n*Om),Math.round(i*n*Om)]}function Nne(e,t){let r=2**t.z,i=(e[0]/Om+t.x)/r,n=(e[1]/Om+t.y)/r;return[rbr(i),nbr(n)]}function tbr(e){return(180+e)/360}function rbr(e){return e*360-180}function ibr(e){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+e*Math.PI/360)))/360}function nbr(e){return 360/Math.PI*Math.atan(Math.exp((180-e*360)*Math.PI/180))-90}function wC(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.max(e[2],t[0]),e[3]=Math.max(e[3],t[1])}function Zk(e,t){return!(e[0]<=t[0]||e[2]>=t[2]||e[1]<=t[1]||e[3]>=t[3])}function abr(e,t,r){return t[1]>e[1]!=r[1]>e[1]&&e[0]<(r[0]-t[0])*(e[1]-t[1])/(r[1]-t[1])+t[0]}function obr(e,t,r){let i=e[0]-t[0],n=e[1]-t[1],a=e[0]-r[0],o=e[1]-r[1];return i*o-a*n===0&&i*a<=0&&n*o<=0}function xq(e,t,r,i){let n=[t[0]-e[0],t[1]-e[1]];return fbr([i[0]-r[0],i[1]-r[1]],n)!==0&&!!(Pet(e,t,r,i)&&Pet(r,i,e,t))}function sbr(e,t,r){for(let i of r)for(let n=0;n0&&c<0||f<0&&c>0}function Vne(e,t,r){let i=[];for(let n=0;nr[2]){let n=i*.5,a=e[0]-r[0]>n?-i:r[0]-e[0]>n?i:0;a===0&&(a=e[0]-r[2]>n?-i:r[2]-e[0]>n?i:0),e[0]+=a}wC(t,e)}function cbr(e){e[0]=e[1]=1/0,e[2]=e[3]=-1/0}function zet(e,t,r,i){let n=2**i.z*Om,a=[i.x*Om,i.y*Om],o=[];for(let s of e)for(let l of s){let u=[l.x+a[0],l.y+a[1]];Fit(u,t,r,n),o.push(u)}return o}function Iet(e,t,r,i){let n=2**i.z*Om,a=[i.x*Om,i.y*Om],o=[];for(let s of e){let l=[];for(let u of s){let f=[u.x+a[0],u.y+a[1]];wC(t,f),l.push(f)}o.push(l)}if(t[2]-t[0]<=n/2){cbr(t);for(let s of o)for(let l of s)Fit(l,t,r,n)}return o}function hbr(e,t){let r=[1/0,1/0,-1/0,-1/0],i=[1/0,1/0,-1/0,-1/0],n=e.canonicalID();if(t.type==="Polygon"){let a=Vne(t.coordinates,i,n),o=zet(e.geometry(),r,i,n);if(!Zk(r,i))return!1;for(let s of o)if(!K5(s,a))return!1}if(t.type==="MultiPolygon"){let a=Dit(t.coordinates,i,n),o=zet(e.geometry(),r,i,n);if(!Zk(r,i))return!1;for(let s of o)if(!lbr(s,a))return!1}return!0}function dbr(e,t){let r=[1/0,1/0,-1/0,-1/0],i=[1/0,1/0,-1/0,-1/0],n=e.canonicalID();if(t.type==="Polygon"){let a=Vne(t.coordinates,i,n),o=Iet(e.geometry(),r,i,n);if(!Zk(r,i))return!1;for(let s of o)if(!Cit(s,a))return!1}if(t.type==="MultiPolygon"){let a=Dit(t.coordinates,i,n),o=Iet(e.geometry(),r,i,n);if(!Zk(r,i))return!1;for(let s of o)if(!ubr(s,a))return!1}return!0}function Pit(e,t){return t[0]-e[0]}function z7(e){return e[1]-e[0]+1}function eg(e,t){return e[1]>=e[0]&&e[1]e[1])return[null,null];let r=z7(e);if(t){if(r===2)return[e,null];let n=Math.floor(r/2);return[[e[0],e[0]+n],[e[0]+n,e[1]]]}if(r===1)return[e,null];let i=Math.floor(r/2)-1;return[[e[0],e[0]+i],[e[0]+i+1,e[1]]]}function yie(e,t){if(!eg(t,e.length))return[1/0,1/0,-1/0,-1/0];let r=[1/0,1/0,-1/0,-1/0];for(let i=t[0];i<=t[1];++i)wC(r,e[i]);return r}function gie(e){let t=[1/0,1/0,-1/0,-1/0];for(let r of e)for(let i of r)wC(t,i);return t}function Bet(e){return e[0]!==-1/0&&e[1]!==-1/0&&e[2]!==1/0&&e[3]!==1/0}function Hne(e,t,r){if(!Bet(e)||!Bet(t))return NaN;let i=0,n=0;return e[2]t[2]&&(i=e[0]-t[2]),e[1]>t[3]&&(n=e[1]-t[3]),e[3]=i)return i;if(Zk(n,a)){if(qet(e,t))return 0}else if(qet(t,e))return 0;let o=1/0;for(let s of e)for(let l=0,u=s.length,f=u-1;l0;){let l=o.pop();if(l[0]>=a)continue;let u=l[1],f=t?50:100;if(z7(u)<=f){if(!eg(u,e.length))return NaN;if(t){let c=ybr(e,u,r,i);if(isNaN(c)||c===0)return c;a=Math.min(a,c)}else for(let c=u[0];c<=u[1];++c){let h=mbr(e[c],r,i);if(a=Math.min(a,h),a===0)return 0}}else{let c=mie(u,t);Oet(o,a,i,e,s,c[0]),Oet(o,a,i,e,s,c[1])}}return a}function R7(e,t,r,i,n,a=1/0){let o=Math.min(a,n.distance(e[0],r[0]));if(o===0)return o;let s=new Lit([[0,[0,e.length-1],[0,r.length-1]]],Pit);for(;s.length>0;){let l=s.pop();if(l[0]>=o)continue;let u=l[1],f=l[2],c=t?50:100,h=i?50:100;if(z7(u)<=c&&z7(f)<=h){if(!eg(u,e.length)&&eg(f,r.length))return NaN;let d;if(t&&i)d=pbr(e,u,r,f,n),o=Math.min(o,d);else if(t&&!i){let p=e.slice(u[0],u[1]+1);for(let v=f[0];v<=f[1];++v)if(d=t3(r[v],p,n),o=Math.min(o,d),o===0)return o}else if(!t&&i){let p=r.slice(f[0],f[1]+1);for(let v=u[0];v<=u[1];++v)if(d=t3(e[v],p,n),o=Math.min(o,d),o===0)return o}else d=vbr(e,u,r,f,n),o=Math.min(o,d)}else{let d=mie(u,t),p=mie(f,i);p7(s,o,n,e,r,d[0],p[0]),p7(s,o,n,e,r,d[0],p[1]),p7(s,o,n,e,r,d[1],p[0]),p7(s,o,n,e,r,d[1],p[1])}}return o}function xbr(e,t){let r=e.geometry(),i=r.flat().map(o=>Nne([o.x,o.y],e.canonical));if(r.length===0)return NaN;let n=new Gne(i[0][1]),a=1/0;for(let o of t){switch(o.type){case"Point":a=Math.min(a,R7(i,!1,[o.coordinates],!1,n,a));break;case"LineString":a=Math.min(a,R7(i,!1,o.coordinates,!0,n,a));break;case"Polygon":a=Math.min(a,I7(i,!1,o.coordinates,n,a))}if(a===0)return a}return a}function bbr(e,t){let r=e.geometry(),i=r.flat().map(o=>Nne([o.x,o.y],e.canonical));if(r.length===0)return NaN;let n=new Gne(i[0][1]),a=1/0;for(let o of t){switch(o.type){case"Point":a=Math.min(a,R7(i,!0,[o.coordinates],!1,n,a));break;case"LineString":a=Math.min(a,R7(i,!0,o.coordinates,!0,n,a));break;case"Polygon":a=Math.min(a,I7(i,!0,o.coordinates,n,a))}if(a===0)return a}return a}function _br(e,t){let r=e.geometry();if(r.length===0||r[0].length===0)return NaN;let i=gq(r,0).map(o=>o.map(s=>s.map(l=>Nne([l.x,l.y],e.canonical)))),n=new Gne(i[0][0][0][1]),a=1/0;for(let o of t)for(let s of i){switch(o.type){case"Point":a=Math.min(a,I7([o.coordinates],!1,s,n,a));break;case"LineString":a=Math.min(a,I7(o.coordinates,!0,s,n,a));break;case"Polygon":a=Math.min(a,gbr(s,o.coordinates,n,a))}if(a===0)return a}return a}function Jre(e){return e.type==="MultiPolygon"?e.coordinates.map(t=>({type:"Polygon",coordinates:t})):e.type==="MultiLineString"?e.coordinates.map(t=>({type:"LineString",coordinates:t})):e.type==="MultiPoint"?e.coordinates.map(t=>({type:"Point",coordinates:t})):[e]}function Net(e,[t,r,i,n],a){t=t.evaluate(e),r=r.evaluate(e),i=i.evaluate(e);let o=n?n.evaluate(e):1,s=nit(t,r,i,o);if(s)throw new hc(s,a);return new Ol(t/255,r/255,i/255,o,!1)}function Vet(e,t){return e in t&&t[e]!==void 0}function Qre(e,t){let r=t[e];return r===void 0?null:r}function Tbr(e,t,r,i){for(;r<=i;){let n=r+i>>1;if(t[n]===e)return!0;t[n]>e?i=n-1:r=n+1}return!1}function K_(e){return{type:e}}function Mbr(e){return Array.isArray(e)?`(${e.map(_c).join(", ")})`:`(${_c(e.type)}...)`}function B7(e){if(e instanceof vit)return B7(e.boundExpression);if(e instanceof v3&&e.name==="error"||e instanceof Tit||e instanceof Une||e instanceof Wne||e instanceof $ne)return!1;let t=e instanceof k5||e instanceof Zy,r=!0;return e.eachChild(i=>{r&&(r=t?B7(i):i instanceof N5)}),r?bq(e)&&_q(e,["zoom","heatmap-density","elevation","line-progress","accumulated","is-supported-script"]):!1}function bq(e){if(e instanceof v3&&(e.name==="get"&&e.args.length===1||e.name==="feature-state"||e.name==="has"&&e.args.length===1||e.name==="properties"||e.name==="geometry-type"||e.name==="id"||/^filter-/.test(e.name))||e instanceof Une||e instanceof Wne)return!1;let t=!0;return e.eachChild(r=>{t&&!bq(r)&&(t=!1)}),t}function Kk(e){if(e instanceof v3&&e.name==="feature-state")return!1;let t=!0;return e.eachChild(r=>{t&&!Kk(r)&&(t=!1)}),t}function _q(e,t){if(e instanceof v3&&t.indexOf(e.name)>=0)return!1;let r=!0;return e.eachChild(i=>{r&&!_q(i,t)&&(r=!1)}),r}function V5(e){return e["property-type"]==="data-driven"||e["property-type"]==="cross-faded-data-driven"}function Oit(e){return!!e.expression&&e.expression.parameters.indexOf("zoom")>-1}function Yne(e){return!!e.expression&&e.expression.interpolated}function Jk(e,...t){for(let r of t)for(let i in r)e[i]=r[i];return e}function au(e){return e instanceof Number?"number":e instanceof String?"string":e instanceof Boolean?"boolean":Array.isArray(e)?"array":e===null?"null":typeof e}function wq(e){return typeof e=="object"&&!!e&&!Array.isArray(e)&&rh(e)===i3}function Sbr(e){return e}function Ebr(e){switch(e.type){case"color":return Ol.parse;case"padding":return Gm.parse;case"numberArray":return Hm.parse;case"colorArray":return Mv.parse;default:return null}}function kbr(e){switch(e){case"exponential":return Vit;case"interval":return Dbr;case"categorical":return Cbr;case"identity":return Fbr;default:throw Error(`Unknown function type "${e}"`)}}function Nit(e,t){let r=e.stops&&typeof e.stops[0][0]=="object",i=r||e.property!==void 0,n=r||!i,a=e.type||(Yne(t)?"exponential":"interval"),o=Ebr(t);if(o&&(e=Jk({},e),e.stops&&(e.stops=e.stops.map(f=>[f[0],o(f[1])])),e.default?e.default=o(e.default):e.default=o(t.default)),e.colorSpace&&!bxr(e.colorSpace))throw Error(`Unknown color space: "${e.colorSpace}"`);let s=kbr(a),l,u;if(a==="categorical"){l=Object.create(null);for(let f of e.stops)l[f[0]]=f[1];u=typeof e.stops[0][0]}if(r){let f={},c=[];for(let p=0;pp[0]),evaluate({zoom:p},v){return Vit({stops:h,base:e.base},t,p).evaluate(p,v)}}}if(n){let f=a==="exponential"?{name:"exponential",base:e.base===void 0?1:e.base}:null;return{kind:"camera",interpolationType:f,interpolationFactor:Sv.interpolationFactor.bind(void 0,f),zoomStops:e.stops.map(c=>c[0]),evaluate:({zoom:c})=>s(e,t,c,l,u)}}return{kind:"source",evaluate(f,c){let h=c&&c.properties?c.properties[e.property]:void 0;return h===void 0?AC(e.default,t.default):s(e,t,h,l,u)}}}function AC(e,t,r){if(e!==void 0)return e;if(t!==void 0)return t;if(r!==void 0)return r}function Cbr(e,t,r,i,n){return AC(typeof r===n?i[r]:void 0,e.default,t.default)}function Dbr(e,t,r){if(au(r)!=="number")return AC(e.default,t.default);let i=e.stops.length;if(i===1||r<=e.stops[0][0])return e.stops[0][1];if(r>=e.stops[i-1][0])return e.stops[i-1][1];let n=yq(e.stops.map(a=>a[0]),r,"");return e.stops[n][1]}function Vit(e,t,r){let i=e.base===void 0?1:e.base;if(au(r)!=="number")return AC(e.default,t.default);let n=e.stops.length;if(n===1||r<=e.stops[0][0])return e.stops[0][1];if(r>=e.stops[n-1][0])return e.stops[n-1][1];let a=yq(e.stops.map(f=>f[0]),r,""),o=Lbr(r,i,e.stops[a][0],e.stops[a+1][0]),s=e.stops[a][1],l=e.stops[a+1][1],u=ic[t.type]||Sbr;return typeof s.evaluate=="function"?{evaluate(...f){let c=s.evaluate.apply(void 0,f),h=l.evaluate.apply(void 0,f);if(c!==void 0&&h!==void 0)return u(c,h,o,e.colorSpace)}}:u(s,l,o,e.colorSpace)}function Fbr(e,t,r){switch(t.type){case"color":r=Ol.parse(r);break;case"formatted":r=Qy.fromString(r.toString());break;case"resolvedImage":r=Vm.fromString(r.toString());break;case"padding":r=Gm.parse(r);break;case"colorArray":r=Mv.parse(r);break;case"numberArray":r=Hm.parse(r);break;default:au(r)!==t.type&&(t.type!=="enum"||!t.values[r])&&(r=void 0)}return AC(r,e.default,t.default)}function Lbr(e,t,r,i){let n=i-r,a=e-r;return n===0?0:t===1?a/n:(t**+a-1)/(t**+n-1)}function xie(e){return{result:"success",value:e}}function M5(e){return{result:"error",value:e}}function Uit(e,t,r,i){return`${e}${t}: ${r}${i==null?"":` Falling back to ${String(i)}.`}`}function Git(e){if(!e)throw Error('rootKey must identify the location of the expression in the style JSON, e.g. "layers[3].paint.line-width".')}function Aq(e){return Array.isArray(e)&&e.length>0&&typeof e[0]=="string"&&e[0]in F5}function Tq(e,t,r,i){Git(t);let n=new Bit(F5,B7,[],r?Ibr(r):void 0),a=n.parse(e,void 0,void 0,void 0,r&&r.type==="string"?{typeAnnotation:"coerce"}:void 0);return a?xie(new Zne(a,t,r,i)):M5(n.errors)}function Pbr(e){return e._styleExpression!==void 0}function Hit(e,t,r,i){let n=Tq(e,t,r,i);if(n.result==="error")return n;let a=n.value.expression,o=bq(a);if(!o&&!V5(r))return M5([new Im("","data expressions not supported")]);let s=_q(a,["zoom"]);if(!s&&!Oit(r))return M5([new Im("","zoom expressions not supported")]);let l=F7(a);if(!l&&!s)return M5([new Im("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.')]);if(l instanceof Im)return M5([l]);if(l instanceof Sv&&!Yne(r))return M5([new Im("",'"interpolate" expressions cannot be used with this property')]);if(!l)return xie(o?new Qk("constant",n.value,i):new Qk("source",n.value,i));let u=l instanceof Sv?l.interpolation:void 0;return xie(o?new q7("camera",n.value,l.labels,u,i):new q7("composite",n.value,l.labels,u,i))}function zbr(e,t,r,i){if(wq(e))return new jit(e,t,r);if(Aq(e)){let n=Hit(e,t,r,i);if(n.result==="error")throw Error(n.value.map(a=>`${a.key}: ${a.message}`).join(", "));return n.value}{let n=e;return r.type==="color"&&typeof e=="string"?n=Ol.parse(e):r.type==="padding"&&(typeof e=="number"||Array.isArray(e))?n=Gm.parse(e):r.type==="numberArray"&&(typeof e=="number"||Array.isArray(e))?n=Hm.parse(e):r.type==="colorArray"&&(typeof e=="string"||Array.isArray(e))?n=Mv.parse(e):r.type==="variableAnchorOffsetCollection"&&Array.isArray(e)?n=Nm.parse(e):r.type==="projectionDefinition"&&typeof e=="string"&&(n=ag.parse(e)),{globalStateRefs:new Set,_globalState:null,kind:"constant",evaluate:()=>n}}}function F7(e){let t=null;if(e instanceof dit)t=F7(e.result);else if(e instanceof _it){for(let r of e.args)if(t=F7(r),t)break}else(e instanceof One||e instanceof Sv)&&e.input instanceof v3&&e.input.name==="zoom"&&(t=e);return t instanceof Im||e.eachChild(r=>{let i=F7(r);i instanceof Im?t=i:!t&&i?t=new Im("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.'):t&&i&&t!==i&&(t=new Im("",'Only one zoom-based "step" or "interpolate" subexpression may be used in an expression.'))}),t}function TC(e,t=new Set){return e instanceof $ne&&t.add(e.key),e.eachChild(r=>{TC(r,t)}),t}function Ibr(e){let t={color:k1,string:Yl,number:ss,enum:Yl,boolean:hu,formatted:bC,padding:pq,numberArray:vq,colorArray:Yk,projectionDefinition:hq,resolvedImage:_C,variableAnchorOffsetCollection:mq};return e.type==="array"?ed(t[e.value]||Kl,e.length):t[e.type]}function $it(e){if(e.type==="color"&&wq(e.default))return new Ol(0,0,0,0);switch(e.type){case"color":return Ol.parse(e.default)||null;case"padding":return Gm.parse(e.default)||null;case"numberArray":return Hm.parse(e.default)||null;case"colorArray":return Mv.parse(e.default)||null;case"variableAnchorOffsetCollection":return Nm.parse(e.default)||null;case"projectionDefinition":return ag.parse(e.default)||null;default:return e.default===void 0?null:e.default}}function U5(e,t){let{zoom:r,heatmapDensity:i,elevation:n,lineProgress:a,isSupportedScript:o,accumulated:s}=e!=null?e:{};return{zoom:r,heatmapDensity:i,elevation:n,lineProgress:a,isSupportedScript:o,accumulated:s,globalState:t}}function Rbr(e){let t=!1;for(let r of e){let i=Yit(r);if(i==="expression")return"expression";i==="legacy"&&(t=!0)}return t?"legacy":"neutral"}function Yit(e){if(typeof e=="boolean")return"neutral";if(!Array.isArray(e)||e.length===0)return"legacy";switch(e[0]){case"has":return e.length<2||e[1]==="$id"||e[1]==="$type"?"legacy":e.length===2?"neutral":"expression";case"in":return e.length>=3&&(typeof e[1]!="string"||Array.isArray(e[2]))?"expression":"legacy";case"!in":case"!has":return"legacy";case"==":case"!=":case">":case">=":case"<":case"<=":return e.length!==3||Array.isArray(e[1])||Array.isArray(e[2])?"expression":"legacy";case"none":return"legacy";case"any":case"all":return Rbr(e.slice(1));default:return"expression"}}function Kne(e){return Yit(e)!=="legacy"}function Uet(e){return e==="$type"?["geometry-type"]:e==="$id"?["id"]:["get",e]}function Bbr(e){switch(e[0]){case"==":case"!=":case"<":case"<=":case">":case">=":return e.length!==3||typeof e[1]!="string"?null:[e[0],Uet(e[1]),e[2]];case"in":case"!in":{if(e.length<2||typeof e[1]!="string")return null;let t=["in",Uet(e[1]),["literal",e.slice(2)]];return e[0]==="!in"?["!",t]:t}case"has":case"!has":{if(e.length!==2||typeof e[1]!="string"||e[1]==="$type"||e[1]==="$id")return null;let t=["has",e[1]];return e[0]==="!has"?["!",t]:t}default:return null}}function Xit(e){if((e[0]==="<"||e[0]==="<="||e[0]===">"||e[0]===">=")&&e[1]==="$type")return`"$type" cannot be use with operator "${e[0]}"`;let t=Bbr(e);return t?`Mixing deprecated filter syntax with expression syntax is not supported. Replace ${JSON.stringify(e)} with ${JSON.stringify(t)}.`:`Mixing deprecated filter syntax with expression syntax is not supported. Convert ${JSON.stringify(e)} to expression syntax.`}function eie(e,t,r){let i=r[e];return Array.isArray(i)?Kne(i)?Jne(i,t.concat(e)):{path:t.concat(e),legacyFilter:i}:null}function Jne(e,t=[]){if(!Array.isArray(e)||e.length<1)return null;switch(e[0]){case"all":case"any":case"none":for(let r=1;r"u")return;let i=r.path.map(n=>`[${n}]`).join("");console.warn(`${t}${i}: ${Xit(r.legacyFilter)}`)}function G5(e,t,r){if(e==null)return{filter:()=>!0,needGeometry:!1,getGlobalStateRefs:()=>new Set};Kne(e)?qbr(e,t):e=O7(e);let i=Tq(e,t,Obr,r);if(i.result==="error")throw Error(i.value.map(n=>`${n.key}: ${n.message}`).join(", "));return{filter:(n,a,o)=>i.value.evaluate(n,a,{},o),needGeometry:Zit(e),getGlobalStateRefs:()=>TC(i.value.expression)}}function Nbr(e,t){return et)}function Zit(e){if(!Array.isArray(e))return!1;if(e[0]==="within"||e[0]==="distance")return!0;for(let t=1;t"||t==="<="||t===">="?tie(e[1],e[2],t):t==="any"?Vbr(e.slice(1)):t==="all"?["all"].concat(e.slice(1).map(O7)):t==="none"?["all"].concat(e.slice(1).map(O7).map(v7)):t==="in"?Get(e[1],e.slice(2)):t==="!in"?v7(Get(e[1],e.slice(2))):t==="has"?Het(e[1]):t!=="!has"||v7(Het(e[1]))}function tie(e,t,r){switch(e){case"$type":return[`filter-type-${r}`,t];case"$id":return[`filter-id-${r}`,t];default:return[`filter-${r}`,e,t]}}function Vbr(e){return["any"].concat(e.map(O7))}function Get(e,t){if(t.length===0)return!1;switch(e){case"$type":return["filter-type-in",["literal",t]];case"$id":return["filter-id-in",["literal",t]];default:return t.length>200&&!t.some(r=>typeof r!=typeof t[0])?["filter-in-large",e,["literal",t.sort(Nbr)]]:["filter-in-small",e,["literal",t]]}}function Het(e){switch(e){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",e]}}function v7(e){return["!",e]}function Kit(e){let t=e.key,r=e.value;return r?[new Ao(t,r,"constants have been deprecated as of v8")]:[]}function eh(e){return e instanceof Number||e instanceof String||e instanceof Boolean?e.valueOf():e}function l3(e){if(Array.isArray(e))return e.map(l3);if(e instanceof Object&&!(e instanceof Number||e instanceof String||e instanceof Boolean)){let t={};for(let r in e)t[r]=l3(e[r]);return t}return eh(e)}function bp(e){let t=e.key,r=e.value,i=e.valueSpec||{},n=e.objectElementValidators||{},a=e.style,o=e.styleSpec,s=e.validateSpec,l=[],u=au(r);if(u!=="object")return[new Ao(t,r,`object expected, ${u} found`)];for(let f in r){let c=f.split(".")[0],h=Vk(i,c)||i["*"],d;if(Vk(n,c))d=n[c];else if(Vk(i,c)){if(r[f]===void 0)continue;d=s}else if(n["*"])d=n["*"];else if(i["*"])d=s;else{l.push(new Ao(t,r[f],`unknown property "${f}"`));continue}l=l.concat(d({key:(t&&`${t}.`)+f,value:r[f],valueSpec:h,style:a,styleSpec:o,object:r,objectKey:f,validateSpec:s},r))}for(let f in i)n[f]||i[f].required&&i[f].default===void 0&&r[f]===void 0&&l.push(new Ao(t,r,`missing required property "${f}"`));return l}function Qne(e){let t=e.value,r=e.valueSpec,i=e.validateSpec,n=e.style,a=e.styleSpec,o=e.key,s=e.arrayElementValidator||i;if(au(t)!=="array")return[new Ao(o,t,`array expected, ${au(t)} found`)];if(r.length&&t.length!==r.length)return[new Ao(o,t,`array length ${r.length} expected, length ${t.length} found`)];let l={type:r.value,values:r.values};a.$version<7&&(l.function=r.function),au(r.value)==="object"&&(l=r.value);let u=[];for(let f=0;fi.maximum?[new Ao(t,r,`${r} is greater than the maximum value ${i.maximum}`)]:[]:[new Ao(t,r,`number expected, ${n} found`)]}function Jit(e){let t=e.valueSpec,r=eh(e.value.type),i,n={},a,o,s=r!=="categorical"&&e.value.property===void 0,l=!s,u=au(e.value.stops)==="array"&&au(e.value.stops[0])==="array"&&au(e.value.stops[0][0])==="object",f=bp({key:e.key,value:e.value,valueSpec:e.styleSpec.function,validateSpec:e.validateSpec,style:e.style,styleSpec:e.styleSpec,objectElementValidators:{stops:c,default:p}});return r==="identity"&&s&&f.push(new Ao(e.key,e.value,'missing required property "property"')),r!=="identity"&&!e.value.stops&&f.push(new Ao(e.key,e.value,'missing required property "stops"')),r==="exponential"&&e.valueSpec.expression&&!Yne(e.valueSpec)&&f.push(new Ao(e.key,e.value,"exponential functions not supported")),e.styleSpec.$version>=8&&(l&&!V5(e.valueSpec)?f.push(new Ao(e.key,e.value,"property functions not supported")):s&&!Oit(e.valueSpec)&&f.push(new Ao(e.key,e.value,"zoom functions not supported"))),(r==="categorical"||u)&&e.value.property===void 0&&f.push(new Ao(e.key,e.value,'"property" property is required')),f;function c(v){if(r==="identity")return[new Ao(v.key,v.value,'identity function may not have a "stops" property')];let y=[],m=v.value;return y=y.concat(Qne({key:v.key,value:m,valueSpec:v.valueSpec,validateSpec:v.validateSpec,style:v.style,styleSpec:v.styleSpec,arrayElementValidator:h})),au(m)==="array"&&m.length===0&&y.push(new Ao(v.key,m,"array must have at least one stop")),y}function h(v){let y=[],m=v.value,w=v.key;if(au(m)!=="array")return[new Ao(w,m,`array expected, ${au(m)} found`)];if(m.length!==2)return[new Ao(w,m,`array length 2 expected, length ${m.length} found`)];if(u){if(au(m[0])!=="object")return[new Ao(w,m,`object expected, ${au(m[0])} found`)];if(m[0].zoom===void 0)return[new Ao(w,m,"object stop key must have zoom")];if(m[0].value===void 0)return[new Ao(w,m,"object stop key must have value")];if(o&&o>eh(m[0].zoom))return[new Ao(w,m[0].zoom,"stop zoom values must appear in ascending order")];eh(m[0].zoom)!==o&&(o=eh(m[0].zoom),a=void 0,n={}),y=y.concat(bp({key:`${w}[0]`,value:m[0],valueSpec:{zoom:{}},validateSpec:v.validateSpec,style:v.style,styleSpec:v.styleSpec,objectElementValidators:{zoom:Mq,value:d}}))}else y=y.concat(d({key:`${w}[0]`,value:m[0],valueSpec:{},validateSpec:v.validateSpec,style:v.style,styleSpec:v.styleSpec},m));return Aq(l3(m[1]))?y.concat([new Ao(`${w}[1]`,m[1],"expressions are not allowed in function stops.")]):y.concat(v.validateSpec({key:`${w}[1]`,value:m[1],valueSpec:t,validateSpec:v.validateSpec,style:v.style,styleSpec:v.styleSpec}))}function d(v,y){let m=au(v.value),w=eh(v.value),_=v.value===null?y:v.value;if(!i)i=m;else if(m!==i)return[new Ao(v.key,_,`${m} stop domain type must match previous stop domain type ${i}`)];if(m!=="number"&&m!=="string"&&m!=="boolean")return[new Ao(v.key,_,"stop domain value must be a number, string, or boolean")];if(m!=="number"&&r!=="categorical"){let b=`number expected, ${m} found`;return V5(t)&&r===void 0&&(b+='\nIf you intended to use a categorical function, specify `"type": "categorical"`.'),[new Ao(v.key,_,b)]}return r==="categorical"&&m==="number"&&(!isFinite(w)||Math.floor(w)!==w)?[new Ao(v.key,_,`integer expected, found ${w}`)]:r!=="categorical"&&m==="number"&&a!==void 0&&wnew Ao(`${e.key}${i.key}`,e.value,i.message));let r=t.value.expression||t.value._styleExpression.expression;if(e.expressionContext==="property"&&e.propertyKey==="text-font"&&!r.outputDefined())return[new Ao(e.key,e.value,`Invalid data expression for "${e.propertyKey}". Output values must be contained as literals within the expression.`)];if(e.expressionContext==="property"&&e.propertyType==="layout"&&!Kk(r))return[new Ao(e.key,e.value,'"feature-state" data expressions are not supported with layout properties.')];if(e.expressionContext==="filter"&&!Kk(r))return[new Ao(e.key,e.value,'"feature-state" data expressions are not supported with filters.')];if(e.expressionContext&&e.expressionContext.indexOf("cluster")===0){if(!_q(r,["zoom","feature-state"]))return[new Ao(e.key,e.value,'"zoom" and "feature-state" expressions are not supported with cluster properties.')];if(e.expressionContext==="cluster-initial"&&!bq(r))return[new Ao(e.key,e.value,"Feature data expressions are not supported with initial expression part of cluster properties.")]}return[]}function Ubr(e){let t=e.value,r=e.key,i=au(t);return i==="boolean"?[]:[new Ao(r,t,`boolean expected, ${i} found`)]}function bie(e){let t=e.key,r=e.value,i=au(r);return i==="string"?Ol.parse(String(r))?[]:[new Ao(t,r,`color expected, "${r}" found`)]:[new Ao(t,r,`color expected, ${i} found`)]}function eC(e){let t=e.key,r=e.value,i=e.valueSpec,n=[];return Array.isArray(i.values)?i.values.indexOf(eh(r))===-1&&n.push(new Ao(t,r,`expected one of [${i.values.join(", ")}], ${JSON.stringify(r)} found`)):Object.keys(i.values).indexOf(eh(r))===-1&&n.push(new Ao(t,r,`expected one of [${Object.keys(i.values).join(", ")}], ${JSON.stringify(r)} found`)),n}function Gbr(e,t){let r=e;for(let i of t)r=r[i];return r}function Hbr(e,t){let r=Jne(t);return r?[new Ao(`${e.key}${r.path.map(i=>`[${i}]`).join("")}`,Gbr(e.value,r.path),Xit(r.legacyFilter),null,"warning")]:[]}function eae(e){let t=l3(e.value);return Kne(t)?[...Hbr(e,t),...H5(Jk({},e,{expressionContext:"filter",valueSpec:{value:"boolean"}}))]:Qit(e)}function Qit(e){let t=e.value,r=e.key;if(au(t)!=="array")return[new Ao(r,t,`array expected, ${au(t)} found`)];let i=e.styleSpec,n,a=[];if(t.length<1)return[new Ao(r,t,"filter array must have at least 1 element")];switch(a=a.concat(eC({key:`${r}[0]`,value:t[0],valueSpec:i.filter_operator,style:e.style,styleSpec:e.styleSpec})),eh(t[0])){case"<":case"<=":case">":case">=":t.length>=2&&eh(t[1])==="$type"&&a.push(new Ao(r,t,`"$type" cannot be use with operator "${t[0]}"`));case"==":case"!=":t.length!==3&&a.push(new Ao(r,t,`filter array for operator "${t[0]}" must have 3 elements`));case"in":case"!in":t.length>=2&&(n=au(t[1]),n!=="string"&&a.push(new Ao(`${r}[1]`,t[1],`string expected, ${n} found`)));for(let o=2;o{c in r&&t.push(new Ao(i,r[c],`"${c}" is prohibited for ref layers`))});let f;n.layers.forEach(c=>{eh(c.id)===s&&(f=c)}),f?f.ref?t.push(new Ao(i,r.ref,"ref cannot reference another ref layer")):o=eh(f.type):t.push(new Ao(i,r.ref,`ref layer "${s}" not found`))}else if(o!=="background")if(!r.source)t.push(new Ao(i,r,'missing required property "source"'));else{let f=n.sources&&n.sources[r.source],c=f&&eh(f.type);f?c==="vector"&&o==="raster"?t.push(new Ao(i,r.source,`layer "${r.id}" requires a raster source`)):c!=="raster-dem"&&o==="hillshade"||c!=="raster-dem"&&o==="color-relief"?t.push(new Ao(i,r.source,`layer "${r.id}" requires a raster-dem source`)):c==="raster"&&o!=="raster"?t.push(new Ao(i,r.source,`layer "${r.id}" requires a vector source`)):c==="vector"&&!r["source-layer"]?t.push(new Ao(i,r,`layer "${r.id}" must specify a "source-layer"`)):c==="raster-dem"&&o!=="hillshade"&&o!=="color-relief"?t.push(new Ao(i,r.source,"raster-dem source can only be used with layer type 'hillshade' or 'color-relief'.")):o==="line"&&r.paint&&r.paint["line-gradient"]&&(c!=="geojson"||!f.lineMetrics)&&t.push(new Ao(i,r,`layer "${r.id}" specifies a line-gradient, which requires a GeoJSON source with \`lineMetrics\` enabled.`)):t.push(new Ao(i,r.source,`source "${r.source}" not found`))}return o==="raster"&&((l=r.paint)!=null&&l.resampling)&&((u=r.paint)!=null&&u["raster-resampling"])&&t.push(new Ao(i,r.paint,`layer "${r.id}" redundantly specifies "resampling" and "raster-resampling" paint properties, but only one is allowed. It is advised to use "resampling".`)),t=t.concat(bp({key:i,value:r,valueSpec:a.layer,style:e.style,styleSpec:e.styleSpec,validateSpec:e.validateSpec,objectElementValidators:{"*"(){return[]},type(){return e.validateSpec({key:`${i}.type`,value:r.type,valueSpec:a.layer.type,style:e.style,styleSpec:e.styleSpec,validateSpec:e.validateSpec,object:r,objectKey:"type"})},filter:eae,layout(f){return bp({layer:r,key:f.key,value:f.value,style:f.style,styleSpec:f.styleSpec,validateSpec:f.validateSpec,objectElementValidators:{"*"(c){return rnt(Jk({layerType:o},c))}}})},paint(f){return bp({layer:r,key:f.key,value:f.value,style:f.style,styleSpec:f.styleSpec,validateSpec:f.validateSpec,objectElementValidators:{"*"(c){return tnt(Jk({layerType:o},c))}}})}}})),t}function px(e){let t=e.value,r=e.key,i=au(t);return i==="string"?[]:[new Ao(r,t,`string expected, ${i} found`)]}function jbr(e){var c;let t=(c=e.sourceName)!=null?c:"",r=e.value,i=e.styleSpec,n=i.source_raster_dem,a=e.style,o=[],s=au(r);if(r===void 0)return o;if(s!=="object")return o.push(new Ao("source_raster_dem",r,`object expected, ${s} found`)),o;let l=eh(r.encoding)==="custom",u=["redFactor","greenFactor","blueFactor","baseShift"],f=e.value.encoding?`"${e.value.encoding}"`:"Default";for(let h in r)!l&&u.includes(h)?o.push(new Ao(h,r[h],`In "${t}": "${h}" is only valid when "encoding" is set to "custom". ${f} encoding found`)):n[h]?o=o.concat(e.validateSpec({key:h,value:r[h],valueSpec:n[h],validateSpec:e.validateSpec,style:a,styleSpec:i})):o.push(new Ao(h,r[h],`unknown property "${h}"`));return o}function nnt(e){let t=e.value,r=e.key,i=e.styleSpec,n=e.style,a=e.validateSpec;if(!t.type)return[new Ao(r,t,'"type" is required')];let o=eh(t.type),s;switch(o){case"vector":case"raster":return s=bp({key:r,value:t,valueSpec:i[`source_${o.replace("-","_")}`],style:e.style,styleSpec:i,objectElementValidators:jet,validateSpec:a}),s;case"raster-dem":return s=jbr({sourceName:r,value:t,style:e.style,styleSpec:i,validateSpec:a}),s;case"geojson":if(s=bp({key:r,value:t,valueSpec:i.source_geojson,style:n,styleSpec:i,validateSpec:a,objectElementValidators:jet}),t.cluster)for(let l in t.clusterProperties){let[u,f]=t.clusterProperties[l],c=typeof u=="string"?[u,["accumulated"],["get",l]]:u;s.push(...H5({key:`${r}.${l}.map`,value:f,validateSpec:a,expressionContext:"cluster-map"})),s.push(...H5({key:`${r}.${l}.reduce`,value:c,validateSpec:a,expressionContext:"cluster-reduce"}))}return s;case"video":return bp({key:r,value:t,valueSpec:i.source_video,style:n,validateSpec:a,styleSpec:i});case"image":return bp({key:r,value:t,valueSpec:i.source_image,style:n,validateSpec:a,styleSpec:i});case"canvas":return[new Ao(r,null,"Please use runtime APIs to add canvas sources, rather than including them in stylesheets.","source.canvas")];default:return eC({key:`${r}.type`,value:t.type,valueSpec:{values:["vector","raster","raster-dem","geojson","video","image"]},style:n,validateSpec:a,styleSpec:i})}}function Wbr({key:e,value:t}){if(au(t)==="string")return px({key:e,value:t});{let r=[];for(let i in t)r.push(...px({key:`${e}.${i}`,value:t[i]}));return r}}function ant(e){let t=e.value,r=e.styleSpec,i=r.light,n=e.style,a=[],o=au(t);if(t===void 0)return a;if(o!=="object")return a=a.concat([new Ao("light",t,`object expected, ${o} found`)]),a;for(let s in t){let l=s.match(Xne);a=l&&i[l[1]]&&i[l[1]].transition?a.concat(e.validateSpec({key:s,value:t[s],valueSpec:r.transition,validateSpec:e.validateSpec,style:n,styleSpec:r})):i[s]?a.concat(e.validateSpec({key:s,value:t[s],valueSpec:i[s],validateSpec:e.validateSpec,style:n,styleSpec:r})):a.concat([new Ao(s,t[s],`unknown property "${s}"`)])}return a}function ont(e){let t=e.value,r=e.styleSpec,i=r.sky,n=e.style,a=au(t);if(t===void 0)return[];if(a!=="object")return[new Ao("sky",t,`object expected, ${a} found`)];let o=[];for(let s in t){let l=s.match(Xne);o=l&&i[l[1]]&&i[l[1]].transition?o.concat(e.validateSpec({key:s,value:t[s],valueSpec:r.transition,style:n,styleSpec:r})):i[s]?o.concat(e.validateSpec({key:s,value:t[s],valueSpec:i[s],style:n,styleSpec:r})):o.concat([new Ao(s,t[s],`unknown property "${s}"`)])}return o}function snt(e){let t=e.value,r=e.styleSpec,i=r.terrain,n=e.style,a=[],o=au(t);if(t===void 0)return a;if(o!=="object")return a=a.concat([new Ao("terrain",t,`object expected, ${o} found`)]),a;for(let s in t)a=i[s]?a.concat(e.validateSpec({key:s,value:t[s],valueSpec:i[s],validateSpec:e.validateSpec,style:n,styleSpec:r})):a.concat([new Ao(s,t[s],`unknown property "${s}"`)]);return a}function $br(e){return px(e).length===0?[]:H5(e)}function Ybr(e){return px(e).length===0?[]:H5(e)}function Xbr(e){let t=e.key,r=e.value;if(au(r)==="array"){if(r.length<1||r.length>4)return[new Ao(t,r,`padding requires 1 to 4 values; ${r.length} values found`)];let i={type:"number"},n=[];for(let a=0;a[new Ao(e,t,'invalid unicode range, expected a value such as "U+26", "U+0-10FFFF" or "U+4??"')],n=r.match(i_r);if(!n)return i();let[,a,o,s]=n;if(s!==void 0)return s.length>6?i():[];let l=parseInt(a,16),u=o===void 0?l:parseInt(o,16);return l>Wet||u>Wet?[new Ao(e,t,"unicode range is out of bounds, the maximum code point is U+10FFFF")]:l>u?[new Ao(e,t,`unicode range start must not be greater than its end, but ${r} is`)]:[]}function fnt(e){var s,l;let t=(s=e.key)!=null?s:"font-faces",r=e.value,i=e.validateSpec,n=(l=e.styleSpec)!=null?l:Yrt,a=e.style;if(!_ie(r))return[new Ao(t,r,`object expected, ${au(r)} found`)];let o=[];for(let u in r){let f=r[u],c=au(f);if(c==="string")o.push(...px({key:`${t}.${u}`,value:f}));else if(c==="array"){let h={url:{type:"string",required:!0},"unicode-range":{type:"array",value:"string"}};for(let[d,p]of f.entries()){let v=`${t}.${u}[${d}]`;o.push(...bp({key:v,value:p,valueSpec:h,styleSpec:n,style:a,validateSpec:i}));let y=_ie(p)?p["unicode-range"]:void 0;if(au(y)==="array")for(let[m,w]of y.entries())o.push(...n_r(`${v}.unicode-range[${m}]`,w))}}else o.push(new Ao(`${t}.${u}`,f,`string or array expected, ${c} found`))}return o}function Gk(e){let t=e.value,r=e.valueSpec,i=e.styleSpec;return e.validateSpec=Gk,r.expression&&wq(eh(t))?Jit(e):r.expression&&Aq(l3(t))?H5(e):r.type&&$et[r.type]?$et[r.type](e):bp(Jk({},e,{valueSpec:r.type?i[r.type]:r}))}function cnt(e){let t=e.value,r=e.key,i=px(e);return i.length||(t.indexOf("{fontstack}")===-1&&i.push(new Ao(r,t,'"glyphs" url must include a "{fontstack}" token')),t.indexOf("{range}")===-1&&i.push(new Ao(r,t,'"glyphs" url must include a "{range}" token'))),i}function xp(e,t=hn){let r=[];return r=r.concat(Gk({key:"",value:e,valueSpec:t.$root,styleSpec:t,style:e,validateSpec:Gk,objectElementValidators:{glyphs:cnt,"*"(){return[]}}})),e.constants&&(r=r.concat(Kit({key:"constants",value:e.constants,style:e,styleSpec:t,validateSpec:Gk}))),hnt(r)}function bv(e){return function(t){return e(Object.assign({},t,{validateSpec:Gk}))}}function hnt(e){return[].concat(e).sort((t,r)=>t.line-r.line)}function _v(e){return function(...t){return hnt(e.apply(this,t))}}function s_r(e,t,r){return new o_r(e,t,r)}function l_r(e){var t;return Object.entries((t=e.sources)!=null?t:{}).filter(([,r])=>!tae.has(r.type)).map(([r])=>`sources.${r}`)}function rae(e,t){let r=l_r(t);return Sq(e,_d(t).filter(({message:i})=>!r.some(n=>i.startsWith(`${n}:`)||i.startsWith(`${n}.`))))}function Sq(e,t){let r=!1;for(let i of t){if(i.severity==="warning"){uu(i.message);continue}e.fire(new tl(Error(i.message))),r=!0}return r}function J5(e,t,r,i){return(i==null?void 0:i.validate)!==!1&&Sq(e,t(Gs({styleSpec:hn},r)))}function As(e,t,r={}){if(Ky[e])throw Error(`${e} is already registered.`);Object.defineProperty(t,"_classRegistryKey",{value:e,writeable:!1}),Ky[e]={klass:t,omit:r.omit||[],shallow:r.shallow||[]}}function pnt(e){var t;return e&&typeof ArrayBuffer<"u"&&(e instanceof ArrayBuffer||((t=e.constructor)==null?void 0:t.name)==="ArrayBuffer")}function iae(e){let t=e.constructor;return e.$name||t._classRegistryKey}function u_r(e){if(typeof e!="object"||!e)return!1;let t=iae(e);return t&&t!=="Object"}function vnt(e){return!u_r(e)&&(e==null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||e instanceof Boolean||e instanceof Number||e instanceof String||e instanceof Date||e instanceof RegExp||e instanceof Blob||e instanceof Error||pnt(e)||gx(e)||ArrayBuffer.isView(e)||e instanceof ImageData)}function Hk(e,t){if(vnt(e))return(pnt(e)||gx(e))&&t&&t.push(e),ArrayBuffer.isView(e)&&t&&t.push(e.buffer),e instanceof ImageData&&t&&t.push(e.data.buffer),e;if(Array.isArray(e)){let a=[];for(let o of e)a.push(Hk(o,t));return a}if(typeof e!="object")throw Error(`can't serialize object of type ${typeof e}`);let r=iae(e);if(!r)throw Error(`can't serialize object of unregistered class ${e.constructor.name}`);if(!Ky[r])throw Error(`${r} is not registered.`);let{klass:i}=Ky[r],n=i.serialize?i.serialize(e,t):{};if(i.serialize){if(n===(t==null?void 0:t[t.length-1]))throw Error("statically serialized object won't survive transfer of $name property")}else{for(let a in e){if(!e.hasOwnProperty(a)||Ky[r].omit.includes(a))continue;let o=e[a];o!==void 0&&(n[a]=Ky[r].shallow.includes(a)?o:Hk(o,t))}e instanceof Error&&(n.message=e.message)}if(n.$name)throw Error("$name property is reserved for worker serialization logic.");return r!=="Object"&&(n.$name=r),n}function jk(e){if(vnt(e))return e;if(Array.isArray(e))return e.map(jk);if(typeof e!="object")throw Error(`can't deserialize object of type ${typeof e}`);let t=iae(e)||"Object";if(!Ky[t])throw Error(`can't deserialize unregistered class ${t}`);let{klass:r}=Ky[t];if(!r)throw Error(`can't deserialize unregistered class ${t}`);if(r.deserialize)return r.deserialize(e);let i=Object.create(r.prototype);for(let n of Object.keys(e)){if(n==="$name")continue;let a=e[n];i[n]=Ky[t].shallow.includes(n)?a:jk(a)}return i}function Zet(e){if(Array.isArray(e))return e.length;let t=e==null?void 0:e.values;return Array.isArray(t)?t.length:void 0}function mnt(e,t){let r=Zet(e),i=Zet(t);return r!==void 0&&i!==void 0&&r!==i}function dc(e,t=1){let r=0,i=0;return{members:e.map(n=>{let a=v_r(n.type),o=r=Qet(r,Math.max(t,a)),s=n.components||1;return i=Math.max(i,a),r+=a*s,{name:n.name,type:n.type,components:s,offset:o}}),size:Qet(r,Math.max(i,t)),alignment:t}}function v_r(e){return p_r[e].BYTES_PER_ELEMENT}function Qet(e,t){return Math.ceil(e/t)*t}function rtt(e,t){return e=Pl(Math.floor(e),0,255),t=Pl(Math.floor(t),0,255),256*e+t}function itt(e){let t=+e;return!isNaN(t)&&t<=2**53-1?t:(0,H7.default)(String(e))}function jie(e,t,r,i){for(;r>1],a=r-1,o=i+1;for(;;){do a++;while(e[a]n);if(a>=o)break;m7(e,a,o),m7(t,3*a,3*o),m7(t,3*a+1,3*o+1),m7(t,3*a+2,3*o+2)}o-rn.x+1||on.y+1)&&uu("Geometry exceeds allowed extent, reduce your vector tile buffer size")}return r}function xx(e,t){return{type:e.type,id:e.id,properties:e.properties,geometry:t?m3(e):[]}}function P_r(e,t,r,i,n){e.emplaceBack(ott+t*8+i,ott+r*8+n)}function lae(e,t){for(let r of e)if(j5(t,r))return!0;for(let r of t)if(j5(e,r))return!0;return uae(e,t)}function Dq(e,t,r){return j5(e,t)?!0:Yie(t,e,r)}function Ont(e,t){if(e.length===1)return stt(t,e[0]);for(let r of t)for(let i of r)if(j5(e,i))return!0;for(let r of e)if(stt(t,r))return!0;for(let r of t)if(uae(e,r))return!0;return!1}function z_r(e,t,r){for(let i of t){if(e.length>=3){for(let n of i)if(j5(e,n))return!0}if(I_r(e,i,r))return!0}return!1}function I_r(e,t,r){if(e.length>1){if(uae(e,t))return!0;for(let i of t)if(Yie(i,e,r))return!0}for(let i of e)if(Yie(i,t,r))return!0;return!1}function uae(e,t){if(e.length===0||t.length===0)return!1;for(let r=0;r1?e.distSqr(r):e.distSqr(r.sub(t)._mult(n)._add(t))}function stt(e,t){let r=!1,i,n,a;for(let o of e){i=o;for(let s=0,l=i.length-1;st.y!=a.y>t.y&&t.x<(a.x-n.x)*(t.y-n.y)/(a.y-n.y)+n.x&&(r=!r)}return r}function j5(e,t){let r=!1;for(let i=0,n=e.length-1;it.y!=o.y>t.y&&t.x<(o.x-a.x)*(t.y-a.y)/(o.y-a.y)+a.x&&(r=!r)}return r}function B_r(e,t,r,i,n){for(let o of e)if(t<=o.x&&r<=o.y&&i>=o.x&&n>=o.y)return!0;let a=[new Jr(t,r),new Jr(t,n),new Jr(i,n),new Jr(i,r)];if(e.length>2){for(let o of a)if(j5(e,o))return!0}for(let o=0;on.x&&t.x>n.x||e.yn.y&&t.y>n.y)return!1;let a=ux(e,t,r[0]);return a!==ux(e,t,r[1])||a!==ux(e,t,r[2])||a!==ux(e,t,r[3])}function L5(e,t,r){let i=t.paint.get(e).value;return i.kind==="constant"?i.value:r.programConfigurations.get(t.id).getMaxValue(e)}function Fq(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function Lq(e,t,r,i,n){if(!t[0]&&!t[1])return e;let a=Jr.convert(t)._mult(n);r==="viewport"&&a._rotate(-i);let o=[];for(let s of e)o.push(s.sub(a));return o}function O_r(e){let t=[];for(let r=0;rfae(n,t,r,i))}function cae(e,{width:t,height:r},i,n){if(!n)n=new Uint8Array(t*r*i);else if(n instanceof Uint8ClampedArray)n=new Uint8Array(n.buffer);else if(n.length!==t*r*i)throw RangeError(`mismatched image size. expected: ${n.length} but got: ${t*r*i}`);return e.width=t,e.height=r,e.data=n,e}function Hnt(e,{width:t,height:r},i){if(t===e.width&&r===e.height)return;let n=cae({},{width:t,height:r},i);hae(e,n,{x:0,y:0},{x:0,y:0},{width:Math.min(e.width,t),height:Math.min(e.height,r)},i),e.width=t,e.height=r,e.data=n.data}function hae(e,t,r,i,n,a){if(n.width===0||n.height===0)return t;if(n.width>e.width||n.height>e.height||r.x>e.width-n.width||r.y>e.height-n.height)throw RangeError("out of range source coordinates for image copy");if(n.width>t.width||n.height>t.height||i.x>t.width-n.width||i.y>t.height-n.height)throw RangeError("out of range destination coordinates for image copy");let o=e.data,s=t.data;if(o===s)throw Error("srcData equals dstData, so image is already copied");for(let l=0;l{t[e.evaluationKey]=l;let u=e.expression.evaluate(t);n.setPixel(o/4/r,s/4,u)};if(e.clips)for(let o=0,s=0;o80*r){s=e[0],l=e[1];let f=s,c=l;for(let h=r;hf&&(f=d),p>c&&(c=p)}u=Math.max(f-s,c-l),u=u===0?0:32767/u}return Kie(a,o,s,l,u),o}function Knt(e,t,r,i,n){let a=null;if(n===M3r(e,t,r,i)>0)for(let o=t;o=t;o-=i)a=vtt(o/i|0,e[o],e[o+1],a);return a&&oC(a,a.next)&&(lC(a),a=a.next),a}function f3(e,t=e){let r=t===e,i=e,n;do n=!1,i!==i.next&&(aC.size===0||!aC.has(i))&&(oC(i,i.next)||kh(i.prev,i,i.next)===0)?((r||i===t)&&(t=i.prev),Zie=!0,lC(i),i=i.prev,n=!0):(r||i!==t)&&(i=i.next,n=!r);while(n||i!==t);return t}function Kie(e,t,r,i,n){n&&x3r(e,r,i,n);let a=e,o=!1;for(;e.prev!==e.next;){let s=e.prev,l=e.next;if(kh(s,e,l)<0&&(n?u3r(e,r,i,n):l3r(e))){t.push(s.i,e.i,l.i),lC(e),e=l,a=l;continue}if(e=l,e===a){if(Zie=!1,e=f3(e),Zie){a=e;continue}if(!o){e=f3r(e,t),a=e,o=!0;continue}c3r(e,t,r,i,n);break}}}function l3r(e){let t=e.prev,r=e,i=e.next,n=t.x,a=r.x,o=i.x,s=t.y,l=r.y,u=i.y,f=Math.min(n,a,o),c=Math.min(s,l,u),h=Math.max(n,a,o),d=Math.max(s,l,u),p=i.next;for(;p!==t;){if(p.x>=f&&p.x<=h&&p.y>=c&&p.y<=d&&(n!==p.x||s!==p.y)&&$7(n,s,a,l,o,u,p.x,p.y)&&kh(p.prev,p,p.next)>=0)return!1;p=p.next}return!0}function u3r(e,t,r,i){let n=e.prev,a=e,o=e.next,s=n.x,l=a.x,u=o.x,f=n.y,c=a.y,h=o.y,d=Math.min(s,l,u),p=Math.min(f,c,h),v=Math.max(s,l,u),y=Math.max(f,c,h),m=tne(d,p,t,r,i),w=tne(v,y,t,r,i),_=e.prevZ;for(;_&&_.z>=m;){if(_.x>=d&&_.x<=v&&_.y>=p&&_.y<=y&&_!==o&&(s!==_.x||f!==_.y)&&$7(s,f,l,c,u,h,_.x,_.y)&&kh(_.prev,_,_.next)>=0)return!1;_=_.prevZ}let b=e.nextZ;for(;b&&b.z<=w;){if(b.x>=d&&b.x<=v&&b.y>=p&&b.y<=y&&b!==o&&(s!==b.x||f!==b.y)&&$7(s,f,l,c,u,h,b.x,b.y)&&kh(b.prev,b,b.next)>=0)return!1;b=b.nextZ}return!0}function f3r(e,t){let r=e,i=!1;do{let n=r.prev,a=r.next.next;Qnt(n,r,r.next,a,!1)&&sC(n,a)&&sC(a,n)&&(t.push(n.i,r.i,a.i),lC(r),lC(r.next),r=e=a,i=!0),r=r.next}while(r!==e);return i?f3(r):r}function c3r(e,t,r,i,n){let a=e;do{let o=a.next.next;for(;o!==a.prev;){if(a.i!==o.i&&w3r(a,o)){let s=eat(a,o);a=f3(a,a.next),s=f3(s,s.next),Kie(a,t,r,i,n),Kie(s,t,r,i,n);return}o=o.next}a=a.next}while(a!==e)}function h3r(e,t,r,i){let n=[];for(let a=0,o=t.length;ao&&(o=r.x),r.ys&&(s=r.y),f.xo&&(o=f.x),f.ys&&(s=f.y),r=f}while(++l<16&&r!==t);ene[i]=r;let u=i*4;Qc[u]=n,Qc[u+1]=a,Qc[u+2]=o,Qc[u+3]=s}while(r!==t)}function m3r(e,t){let r=e.z*4;t.xQc[r+2]&&(Qc[r+2]=t.x),t.y>Qc[r+3]&&(Qc[r+3]=t.y)}function dtt(e){let t=ene[e];for(;t.prev.next!==t;)t=t.next;return ene[e]=t,t}function ptt(e){let t=Qie[e];for(;t.prev.next!==t;)t=t.next;return Qie[e]=t,t}function y3r(e,t){let r=t,i=e.x,n=e.y,a=-1/0,o;if(oC(e,r))return r;for(let h=0,d=0;hQc[d+3]||Qc[d]>i||Qc[d+2]<=a)continue;let p=dtt(h);r=ptt(h);do{if(r.prev.next===r){if(oC(e,r.next))return r.next;if(n<=r.y&&n>=r.next.y&&r.next.y!==r.y){let v=r.x+(n-r.y)*(r.next.x-r.x)/(r.next.y-r.y);if(v<=i&&v>a&&(a=v,o=r.xi||Qc[d+3]f)continue;let p=dtt(h);r=ptt(h);do{if(r.prev.next===r&&i>=r.x&&r.x>=s&&i!==r.x&&$7(ni)&&(vo.x||r.x===o.x&&g3r(o,r)))&&(o=r,c=v)}r=r.next}while(r!==p)}return o}function g3r(e,t){return kh(e.prev,e,t.prev)<0&&kh(t.next,e,e.next)<0}function x3r(e,t,r,i){let n=e,a=0;do n.z=tne(n.x,n.y,t,r,i),Av[a++]=n,n=n.next;while(n!==e);b3r(a);let o=null;for(let s=0;s=0&&Av[n].z>i;)Av[n+1]=Av[n],n--;Av[n+1]=r}return}J_.length>>a&255]++;let o=0;for(let s=0;s<256;s++){let l=kk[s];kk[s]=o,o+=l}for(let s=0;s>>a&255]++;i[u]=t[s],n[u]=l}}function tne(e,t,r,i,n){return e=(e-r)*n|0,t=(t-i)*n|0,e=(e|e<<8)&16711935,e=(e|e<<4)&252645135,e=(e|e<<2)&858993459,e=(e|e<<1)&1431655765,t=(t|t<<8)&16711935,t=(t|t<<4)&252645135,t=(t|t<<2)&858993459,t=(t|t<<1)&1431655765,e|t<<1}function _3r(e){let t=e,r=e;do(t.x=(e-o)*(a-s)&&(e-o)*(i-s)>=(r-o)*(t-s)&&(r-o)*(a-s)>=(n-o)*(i-s)}function w3r(e,t){let r=oC(e,t)&&kh(e.prev,e,e.next)>0&&kh(t.prev,t,t.next)>0;return e.next.i!==t.i&&(r||sC(e,t)&&sC(t,e)&&(kh(e.prev,e,t.prev)!==0||kh(e,t.prev,t)!==0))&&!A3r(e,t)&&(r||T3r(e,t))}function kh(e,t,r){return(t.y-e.y)*(r.x-t.x)-(t.x-e.x)*(r.y-t.y)}function oC(e,t){return e.x===t.x&&e.y===t.y}function Qnt(e,t,r,i,n=!0){let a=kh(e,t,r),o=kh(e,t,i),s=kh(r,i,e),l=kh(r,i,t);return(a>0&&o<0||a<0&&o>0)&&(s>0&&l<0||s<0&&l>0)?!0:n?!!(a===0&&x7(e,r,t)||o===0&&x7(e,i,t)||s===0&&x7(r,e,i)||l===0&&x7(r,t,i)):!1}function x7(e,t,r){return t.x<=Math.max(e.x,r.x)&&t.x>=Math.min(e.x,r.x)&&t.y<=Math.max(e.y,r.y)&&t.y>=Math.min(e.y,r.y)}function A3r(e,t){let r=Math.min(e.x,t.x),i=Math.max(e.x,t.x),n=Math.min(e.y,t.y),a=Math.max(e.y,t.y),o=e;do{let s=o.next;if(o.x>i&&s.x>i||o.xa&&s.y>a||o.y=0&&kh(e,e.prev,t)>=0:kh(e,t,e.prev)<0||kh(e,e.next,t)<0}function T3r(e,t){let r=e,i=!1,n=(e.x+t.x)/2,a=(e.y+t.y)/2;do{let o=r.next;r.y>a!=o.y>a&&n<(o.x-r.x)*(a-r.y)/(o.y-r.y)+r.x&&(i=!i),r=o}while(r!==e);return i}function eat(e,t){let r=rne(e.i,e.x,e.y),i=rne(t.i,t.x,t.y),n=e.next,a=t.prev;return e.next=t,t.prev=e,r.next=n,n.prev=r,i.next=r,r.prev=i,a.next=i,i.prev=a,i}function vtt(e,t,r,i){let n=rne(e,t,r);return i?(n.next=i.next,n.prev=i,i.next.prev=n,i.next=n):(n.prev=n,n.next=n),n}function lC(e){e.next.prev=e.prev,e.prev.next=e.next,e.prevZ&&(e.prevZ.nextZ=e.nextZ),e.nextZ&&(e.nextZ.prevZ=e.prevZ),Jie&&m3r(e.prev,e.next)}function rne(e,t,r){return{i:e,x:t,y:r,prev:null,next:null,z:0,prevZ:null,nextZ:null}}function M3r(e,t,r,i){let n=0;for(let a=t,o=r-i;a0?(Math.floor(M/n)+1)*n:(Math.ceil(M/n)-1)*n,g=w>0?(Math.floor(x/n)+1)*n:(Math.ceil(x/n)-1)*n,E=Math.abs(M-A),S=Math.abs(x-g),C=Math.abs(M-d),k=Math.abs(x-p),D=v?E/_:1/0,F=y?S/b:1/0;if((C<=E||!v)&&(k<=S||!y))break;if(D0?(r.push(n),r.push(o),r.push(a)):(r.push(n),r.push(a),r.push(o))}return r}function D3r(e,t,r){if(t.length===0)throw Error("Subdivision vertex ring is empty.");let i=0,n=e[t[0]*2];for(let l=1;l=0?o-1:a-1,u=(s+1)%a,f=e[t[l]*2],c=e[t[l]*2+1],h=e[t[u]*2],d=e[t[u]*2+1],p=e[t[o]*2],v=e[t[o]*2+1],y=e[t[s]*2],m=e[t[s]*2+1],w=!1;if(fh)w=!1;else{let _=m-v,b=-(y-p),M=v((h-p)*_+(d-v)*b)*M&&(w=!0)}if(w){let _=t[l],b=t[o],M=t[s];_!==b&&_!==M&&b!==M&&r.push(M,b,_),o--,o<0&&(o=a-1)}else{let _=t[u],b=t[o],M=t[s];_!==b&&_!==M&&b!==M&&r.push(M,b,_),s++,s>=a&&(s=0)}if(l===u)break}}function iat(e,t,r,i,n,a,o,s,l){let u=n.length/2,f=o&&s&&l;if(unc.MAX_VERTEX_ARRAY_LENGTH&&(u=e.createNewSegment(t,r),l=s.count,v=!0,y=!0,m=!0,f=0);let _=Wk(o,i,a,s,h,v,u),b=Wk(o,i,a,s,d,y,u),M=Wk(o,i,a,s,p,m,u);r.emplaceBack(f+_-l,f+b-l,f+M-l),u.primitiveLength++}}function L3r(e,t,r,i,n,a){let o=[];for(let c=0;cnc.MAX_VERTEX_ARRAY_LENGTH&&(u=e.createNewSegment(t,r),l=s.count,v=!0,y=!0,f=0);let w=Wk(o,i,a,s,d,v,u),_=Wk(o,i,a,s,p,y,u);r.emplaceBack(f+w-l,f+_-l),u.primitiveLength++}}function ane(e,t){return e.x===t.x&&(e.x<0||e.x>8192)||e.y===t.y&&(e.y<0||e.y>8192)}function gtt(e){return e.every(t=>t.x<0)||e.every(t=>t.x>8192)||e.every(t=>t.y<0)||e.every(t=>t.y>8192)}function sat(e){let t=e.length;if(t<=1)return[e];let r=[],i,n;for(let a=0;a$3r(r,t))}function W3r(e,t){let r=H3r(Aa/2,Aa/2,t),i=Uu.fromLngLat(r).meterInMercatorCoordinateUnits(),n=(1<1&&t[0].x===t[t.length-1].x&&t[0].y===t[t.length-1].y;)t.pop();return t}function X3r(e,t,r,i,n){let a=t.sub(r),o=i.sub(r),s=a.mag(),l=o.mag();if(s<1e-6||l<1e-6){e.push(r.clone());return}a._div(s),o._div(l);let u=a.x*o.x+a.y*o.y;if(Math.abs(u)>Math.cos(5*Math.PI/180)){e.push(r.clone());return}let f=.2,c=Math.min(n,s*f,l*f),h=r.add(a.mult(c)),d=r.add(o.mult(c)),p=Math.sqrt((1+u)/2),v=r.add(a.add(o)._unit()._mult(c/p)),y=h.sub(v).angleWith(d.sub(v)),m=Math.max(2,Math.ceil(Math.abs(y)/(Math.PI/6)-1e-6));for(let w=0;w<=m;w++)e.push(h.rotateAround(w/m*y,v))}function Ck(e,t,r,i,n,a,o,s){e.emplaceBack(t,r,Math.floor(i*nie)*2+o,n*nie*2,a*nie*2,Math.round(s))}function Z3r(e,t){for(let r=0;r0?t+2*e:e}function mwr(e){return/[\u0600-\u0604\u0606-\u060B\u060D-\u061A\u061C-\u061E\u0620-\u063F\u0641-\u064A\u0656-\u066F\u0671-\u06DC\u06DE-\u070D\u070F-\u074A\u074D-\u077F\u07C0-\u07FA\u07FD-\u07FF\u0840-\u085B\u085E\u0860-\u086A\u0870-\u0891\u0897-\u08E1\u08E3-\u08FF\u1800\u1801\u1804\u1806-\u1819\u1820-\u1878\u1880-\u18AA\uA840-\uA877\uFB50-\uFD3D\uFD40-\uFDCF\uFDF0-\uFDFF\uFE70-\uFE74\uFE76-\uFEFC]|\uD802[\uDEC0-\uDEE6\uDEEB-\uDEF6\uDF80-\uDF91\uDF99-\uDF9C\uDFA9-\uDFAF]|\uD803[\uDD00-\uDD27\uDD30-\uDD39\uDE60-\uDE7E\uDEC2-\uDEC7\uDED0-\uDED8\uDEFA-\uDEFF\uDF30-\uDF59\uDF70-\uDF89\uDFB0-\uDFCB]|\uD805[\uDE60-\uDE6C]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9C-\uDC9F]|\uD83A[\uDD00-\uDD4B\uDD50-\uDD59\uDD5E\uDD5F]|\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\uDEF0\uDEF1]/gim.test(String.fromCodePoint(e))}function ywr(e){return/[\u0591-\u05C7\u05D0-\u05EA\u05EF-\u05F4\u0600-\u0604\u0606-\u060B\u060D-\u061A\u061C-\u061E\u0620-\u063F\u0641-\u064A\u0656-\u066F\u0671-\u06DC\u06DE-\u070D\u070F-\u074A\u074D-\u07B1\u07C0-\u07FA\u07FD-\u082D\u0830-\u083E\u0840-\u085B\u085E\u0860-\u086A\u0870-\u0891\u0897-\u08E1\u08E3-\u08FF\uFB1D-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFD3D\uFD40-\uFDCF\uFDF0-\uFDFF\uFE70-\uFE74\uFE76-\uFEFC]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC57-\uDC9E\uDCA7-\uDCAF\uDCE0-\uDCF2\uDCF4\uDCF5\uDCFB-\uDD1B\uDD1F-\uDD39\uDD3F-\uDD59\uDD80-\uDDB7\uDDBC-\uDDCF\uDDD2-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE38-\uDE3A\uDE3F-\uDE48\uDE50-\uDE58\uDE60-\uDE9F\uDEC0-\uDEE6\uDEEB-\uDEF6\uDF00-\uDF35\uDF39-\uDF55\uDF58-\uDF72\uDF78-\uDF91\uDF99-\uDF9C\uDFA9-\uDFAF]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDCFA-\uDD27\uDD30-\uDD39\uDD40-\uDD65\uDD69-\uDD85\uDD8E\uDD8F\uDE60-\uDE7E\uDE80-\uDEA9\uDEAB-\uDEAD\uDEB0\uDEB1\uDEC2-\uDEC7\uDED0-\uDED8\uDEFA-\uDF27\uDF30-\uDF59\uDF70-\uDF89\uDFB0-\uDFCB\uDFE0-\uDFF6]|\uD83A[\uDC00-\uDCC4\uDCC7-\uDCD6\uDD00-\uDD4B\uDD50-\uDD59\uDD5E\uDD5F]|\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\uDEF0\uDEF1]/gim.test(String.fromCodePoint(e))}function gat(e){return/[\u02EA\u02EB\u1100-\u11FF\u2E80-\u2FDF\u3000-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u4DBF\u4E00-\uA48C\uA490-\uA4C6\uA960-\uA97C\uAC00-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFE10-\uFE1F\uFE30-\uFE4F\uFF00-\uFFEF]|\uD81B[\uDFE0-\uDFFF]|[\uD81C-\uD822\uD840-\uD868\uD86A-\uD86D\uD86F-\uD872\uD874-\uD879\uD880-\uD883\uD885-\uD88C][\uDC00-\uDFFF]|\uD823[\uDC00-\uDCD5\uDCFF-\uDD1E\uDD80-\uDDF2]|\uD82B[\uDFF0-\uDFFF]|\uD82C[\uDC00-\uDEFB]|\uD83C[\uDE00-\uDEFF]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEAD\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0\uDFF0-\uDFFF]|\uD87B[\uDC00-\uDE5D]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A\uDF50-\uDFFF]|\uD88D[\uDC00-\uDC79]/gim.test(String.fromCodePoint(e))}function gwr(e){return/[\u02EA\u02EB\u2E80-\u2FDF\u2FF0-\u303F\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FD-\u30FF\u3105-\u312F\u31A0-\u4DBF\u4E00-\uA48C\uA490-\uA4C6\uF900-\uFA6D\uFA70-\uFAD9\uFE10-\uFE1F\uFE30-\uFE4F\uFF00-\uFFEF]|\uD81B[\uDFE0-\uDFFF]|[\uD81C-\uD822\uD840-\uD868\uD86A-\uD86D\uD86F-\uD872\uD874-\uD879\uD880-\uD883\uD885-\uD88C][\uDC00-\uDFFF]|\uD823[\uDC00-\uDCD5\uDCFF-\uDD1E\uDD80-\uDDF2]|\uD82B[\uDFF0-\uDFFF]|\uD82C[\uDC00-\uDEFB]|\uD83C[\uDE00-\uDEFF]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEAD\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0\uDFF0-\uDFFF]|\uD87B[\uDC00-\uDE5D]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A\uDF50-\uDFFF]|\uD88D[\uDC00-\uDC79]/gim.test(String.fromCodePoint(e))}function qq(e){return/[\u02EA\u02EB\u1100-\u11FF\u1401-\u167F\u18B0-\u18FF\u2065\u20DD-\u20E0\u20E2-\u20E4\u2B97\u2BF0-\u2BFF\u2E50\u2E51\u2E80-\u3007\u3012\u3013\u3020-\u302F\u3031-\u30FB\u30FD-\uA4CF\uA960-\uA97F\uAC00-\uD7FF\uF900-\uFAFF\uFE10-\uFE1F\uFE30-\uFE48\uFE50-\uFE57\uFE5F-\uFE62\uFE67-\uFE6F\uFF00-\uFF07\uFF0A-\uFF0C\uFF0E-\uFF19\uFF1F-\uFF3A\uFF3C\uFF3E\uFF40-\uFF5A\uFFE0-\uFFE2\uFFE4-\uFFE7\uFFF0-\uFFF8]|\uD802[\uDD80-\uDD9F]|\uD805[\uDD80-\uDDFF]|\uD806[\uDE00-\uDEBF]|[\uD80C-\uD810\uD81C-\uD822\uD83C\uD83D\uD840-\uD87E\uD880-\uD8BE][\uDC00-\uDFFF]|\uD811[\uDC00-\uDE7F]|\uD81B[\uDFE0-\uDFFF]|\uD823[\uDC00-\uDDFF]|\uD82B[\uDFF0-\uDFFF]|\uD82C[\uDC00-\uDEFF]|\uD833[\uDEC0-\uDFCF]|\uD834[\uDC00-\uDDFF\uDEE0-\uDF7F]|\uD836[\uDC00-\uDEAF]|\uD83E[\uDD00-\uDEFF]|[\uD87F\uD8BF][\uDC00-\uDFFD]/gim.test(String.fromCodePoint(e))}function xwr(e){return/[\xA7\xA9\xAE\xB1\xBC-\xBE\xD7\xF7\u2016\u2020\u2021\u2030\u2031\u203B\u203C\u2042\u2047-\u2049\u2051\u2100-\u218F\u221E\u2234\u2235\u2300-\u2307\u230C-\u231F\u2324-\u2328\u232B\u237D-\u239A\u23BE-\u23CD\u23CF\u23D1-\u23DB\u23E2-\u2422\u2424-\u24FF\u25A0-\u2619\u2620-\u2767\u2776-\u2793\u2B12-\u2B2F\u2B50-\u2B59\u2BB8-\u2BEB\u3000-\u303F\u30A0-\u30FF\uE000-\uF8FF\uFE30-\uFE6F\uFF00-\uFFEF\uFFFC\uFFFD]|[\uDB80-\uDBFF][\uDC00-\uDFFF]/gim.test(String.fromCodePoint(e))}function bwr(e){return/[\r\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0600-\u0605\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DD\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u070F\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0890\u0891\u0897-\u089F\u08CA-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D57\u0D62\u0D63\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E33-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB3-\u0EBC\u0EC8-\u0ECE\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1037\u1039-\u103E\u1056-\u1059\u105E-\u1060\u1071-\u1074\u1082\u1084-\u1086\u108D\u109D\u1100-\u11FF\u135D-\u135F\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u180F\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60\u1A62\u1A65-\u1A7C\u1A7F\u1AB0-\u1ADD\u1AE0-\u1AEB\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA953\uA960-\uA97C\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFF9E\uFF9F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDD69-\uDD6D\uDEAB\uDEAC\uDEFA-\uDEFF\uDF46-\uDF50\uDF82-\uDF85]|\uD804[\uDC00-\uDC02\uDC38-\uDC46\uDC70\uDC73\uDC74\uDC7F-\uDC82\uDCB0-\uDCBA\uDCBD\uDCC2\uDCCD\uDD00-\uDD02\uDD27-\uDD34\uDD45\uDD46\uDD73\uDD80-\uDD82\uDDB3-\uDDC0\uDDC2\uDDC3\uDDC9-\uDDCC\uDDCE\uDDCF\uDE2C-\uDE37\uDE3E\uDE41\uDEDF-\uDEEA\uDF00-\uDF03\uDF3B\uDF3C\uDF3E-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF57\uDF62\uDF63\uDF66-\uDF6C\uDF70-\uDF74\uDFB8-\uDFC0\uDFC2\uDFC5\uDFC7-\uDFCA\uDFCC-\uDFD2\uDFE1\uDFE2]|\uD805[\uDC35-\uDC46\uDC5E\uDCB0-\uDCC3\uDDAF-\uDDB5\uDDB8-\uDDC0\uDDDC\uDDDD\uDE30-\uDE40\uDEAB-\uDEB7\uDF1D-\uDF1F\uDF22-\uDF2B]|\uD806[\uDC2C-\uDC3A\uDD30-\uDD35\uDD37\uDD38\uDD3B-\uDD43\uDDD1-\uDDD7\uDDDA-\uDDE0\uDDE4\uDE01-\uDE0A\uDE33-\uDE39\uDE3B-\uDE3E\uDE47\uDE51-\uDE5B\uDE84-\uDE99\uDF60-\uDF67]|\uD807[\uDC2F-\uDC36\uDC38-\uDC3F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD8A-\uDD8E\uDD90\uDD91\uDD93-\uDD97\uDEF3-\uDEF6\uDF00-\uDF03\uDF34-\uDF3A\uDF3E-\uDF42\uDF5A]|\uD80D[\uDC40\uDC47-\uDC55]|\uD818[\uDD1E-\uDD2F]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDD63\uDD67-\uDD6A\uDF4F\uDF51-\uDF87\uDF8F-\uDF92\uDFE4\uDFF0\uDFF1]|\uD82F[\uDC9D\uDC9E]|\uD833[\uDF00-\uDF2D\uDF30-\uDF46]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDC8F\uDD30-\uDD36\uDEAE\uDEEC-\uDEEF]|\uD839[\uDCEC-\uDCEF\uDDEE\uDDEF\uDEE3\uDEE6\uDEEE\uDEEF\uDEF5]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uD83C[\uDDE6-\uDDFF\uDFFB-\uDFFF]|\uDB40[\uDC20-\uDC7F\uDD00-\uDDEF]/.test(e)}function ktt(e){return/[\u0E01-\u0E3A\u0E40-\u0E4E\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECE\u0EDC-\u0EDF\u0F00-\u0F47\u0F49-\u0F6C\u0F71-\u0F97\u0F99-\u0FBC\u0FBE-\u0FCC\u0FCE-\u0FD4\u0FD9\u0FDA\u1000-\u103F\u1050-\u108F\u109A-\u109F\u1780-\u17D3\u17D7\u17DC\u17DD\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19DE\u19DF\u1A20-\u1A5E\u1A60-\u1A7C\u1AA0-\u1AAD\u1B00-\u1B4C\u1B4E-\u1B7F\uA980-\uA9CD\uA9D0-\uA9D9\uA9DE-\uA9EF\uA9FA-\uA9FE\uAA60-\uAAC2\uAADB-\uAADF]|\uD805[\uDF00-\uDF1A\uDF1D-\uDF2B\uDF3A\uDF3B\uDF3F-\uDF46]/gim.test(String.fromCodePoint(e))}function _wr(e,t){return/(?:[\u1039\u17D2\u1A60\u1BAB\u200D\uAAF6]|\uD802\uDE3F|\uD804[\uDD33\uDFD0]|\uD806[\uDD3E\uDE47\uDE99]|\uD807[\uDD45\uDD97\uDF42])$/.test(e)||new RegExp("^\\p{gc=Mc}","u").test(t)}function Swr(e,t,r){let i=0;for(let n of e.split(";")){let[a,o]=n.split(",").map(l=>parseInt(l,36)),s=i+a;for(let l=s;l{let r=t.codePointAt(0);return{codePoint:r,type:Ewr(r),form:null}})}function Lwr(e){let t=e.filter(r=>r.type!=="T");for(let r=0;r0&&kwr(t[r-1].type),a=r+1String.fromCodePoint(Iwr(r))).join("")}function Bwr(e,t,r){var n;let i=t.layout.get("text-transform").evaluate(r,{});return i==="uppercase"?e=e.toLocaleUpperCase():i==="lowercase"&&(e=e.toLocaleLowerCase()),((n=Y7.applyArabicShaping)!=null?n:Rwr)(e)}function qwr(e,t,r){for(let i of e.sections)i.text=Bwr(i.text,t,r);return e}function aie(e,t,r){let i=r?t.last.points:t.first.points,n=r?i[i.length-1]:i[0];return`${e}:${n.x}:${n.y}`}function Owr(e){let t=e.first.points,r=t.length;for(let a=e.first.next;a;a=a.next)r+=a.points.length-1;let i=Array(r);for(let a=0;a=0&&_wr(t[i],r)?t[i]+=r:t.push(r)}return t}function Vwr(e){let t=new Set;if(bat){Lk!=null||(Lk=new Intl.Segmenter(void 0,{granularity:"word"}));for(let{index:i}of Lk.segment(e))t.add(i);return t}let r=0;for(let i of e.split(new RegExp("\\b|(?=\\p{Ideo})","u")))t.add(r),r+=i.length;return t}function CC(e){let t=e.codePointAt(0);return e.length>(t>65535?2:1)}function gae(e){return/\s/u.test(String.fromCodePoint(e))}function une(e){for(let t of e)if(qq(t.codePointAt(0)))return!0;return!1}function Uwr(e){for(let t of e)if(!Gwr(t.codePointAt(0)))return!1;return!0}function Gwr(e){return!mwr(e)}function Ltt(e){return!(qq(e)||xwr(e))}function _at(e){return new RegExp("\\p{sc=Arab}","u").test(String.fromCodePoint(e))}function wat(e){return ywr(e)}function Aat(e){for(let t of e)if(wat(t.codePointAt(0)))return!0;return!1}function Hwr(e){let t="",r={premature:!0,value:void 0},i=e[Symbol.iterator](),n=i.next(),a=e[Symbol.iterator]();a.next();let o=a.next();for(;!n.done;)(o.done||!Ltt(o.value.codePointAt(0))||C5[o.value])&&(r.premature||!Ltt(r.value.codePointAt(0))||C5[r.value])&&C5[n.value]?t+=C5[n.value]:t+=n.value,r={value:n.value,premature:!1},n=i.next(),o=a.next();return t}function Ptt(e,t,r,i,n,a){var o;if("fontStack"in t){let s=(o=r[t.fontStack])==null?void 0:o.default,l=s==null?void 0:s[e];if(l)return l.metrics.advance*t.scale+n;let u=0;for(let f of e){let c=s==null?void 0:s[f];c&&(u+=c.metrics.advance*t.scale+n)}return u}{let s=i[t.imageName];return s?s.displaySize[0]*t.scale*24/a+n:0}}function ztt(e,t,r,i){let n=(e-t)**2;return i?e1,1e>2,u>2,2wt>1,1>1,1ge>1,1wp>1,1j>1,f>1,hm>1,1>1,u>1,u6>1,1>1,+5,28>1,w>1,1>1,+3,b8>1,1>1,+3,1>3,-1>-1,3>1,1>1,+2,1s>1,1>1,x>1,th>1,1>1,+2,db>1,1>1,+3,3>1,1>1,+2,14qm>1,1>1,+1,4q>1,1e>2,u>2,2>1,+1",canonical:"6f1>-6dx,6dy>-6dx,6ec>-6ed,6ee>-6ed,6ww>2jj,-2ji>2jj,14r4>-1e7l,1e7m>-1e7l,1e7m>-1e5c,1e5d>-1e5b,1e5c>-14qx,14qy>-14qx,14vn>-1ecg,1ech>-1ecg,1edu>-1ecg,1eci>-1ecg,1eda>-1ecg,1eci>-1ecg,1eci>-168q,168r>-168q,168s>-14ye,14yf>-14ye"};function p(ze,ke){var le=0,te=new Map,Ee=ke&&new Map,we;return ze.split(",").forEach(function oe(Y){if(Y.indexOf("+")!==-1)for(var ne=+Y;ne--;)oe(we);else{we=Y;var ye=Y.split(">"),V=ye[0],ue=ye[1];V=String.fromCodePoint(le+=parseInt(V,36)),ue=String.fromCodePoint(le+=parseInt(ue,36)),te.set(V,ue),ke&&Ee.set(ue,V)}}),{map:te,reverseMap:Ee}}var v,y,m;function w(){if(!v){var ze=p(d.pairs,!0),ke=ze.map,le=ze.reverseMap;v=ke,y=le,m=p(d.canonical,!1).map}}function _(ze){return w(),v.get(ze)||null}function b(ze){return w(),y.get(ze)||null}function M(ze){return w(),m.get(ze)||null}var x=r.L,T=r.R,A=r.EN,g=r.ES,E=r.ET,S=r.AN,C=r.CS,k=r.B,D=r.S,F=r.ON,P=r.BN,I=r.NSM,L=r.AL,z=r.LRO,B=r.RLO,O=r.LRE,W=r.RLE,X=r.PDF,Z=r.LRI,H=r.RLI,q=r.FSI,Q=r.PDI;function N(ze,ke){for(var le=125,te=new Uint32Array(ze.length),Ee=0;Ee0)Re--;else if(Ke>0){for(We=0;!pe[pe.length-1]._isolate;)pe.pop();var Ze=pe[pe.length-1]._isolInitIndex;Ze!=null&&(ne.set(Ze,tt),ne.set(tt,Ze)),pe.pop(),Ke--}fe=pe[pe.length-1],Y[tt]=fe._level,fe._override&&oe(tt,fe._override)}else at&X?(Re===0&&(We>0?We--:!fe._isolate&&pe.length>1&&(pe.pop(),fe=pe[pe.length-1])),Y[tt]=fe._level):at&k&&(Y[tt]=V.level);else Y[tt]=fe._level,fe._override&&at!==P&&oe(tt,fe._override)}for(var Le=[],De=null,Ue=V.start;Ue<=V.end;Ue++){var Pe=te[Ue];if(!(Pe&s)){var Se=Y[Ue],Ie=Pe&n,ot=Pe===Q;De&&Se===De._level?(De._end=Ue,De._endsWithIsolInit=Ie):Le.push(De={_start:Ue,_end:Ue,_level:Se,_startsWithPDI:ot,_endsWithIsolInit:Ie})}}for(var ut=[],_t=0;_t=0;rt--)if(!(te[rt]&s)){dt=Y[rt];break}var ft=Mt[Mt.length-1],Ft=Y[ft],Et=V.level;if(!(te[ft]&n)){for(var er=ft+1;er<=V.end;er++)if(!(te[er]&s)){Et=Y[er];break}}ut.push({_seqIndices:Mt,_sosType:Math.max(dt,st)%2?T:x,_eosType:Math.max(Et,Ft)%2?T:x})}}for(var xr=0;xr=0;_i--)if(!(te[fr[_i]]&s)){Gr=te[fr[_i]];break}oe(Mr,Gr&(n|Q)?F:Gr)}}if(we.get(A))for(var Fi=0;Fi=-1;Cr--){var Ut=Cr===-1?Yr:te[fr[Cr]];if(Ut&a){Ut===L&&oe(wr,S);break}}}if(we.get(L))for(var Wt=0;Wt=0&&(Fr=te[fr[Li]],Fr&s);Li--);for(var nr=Hr+1;nr=0&&te[fr[Me]]&(E|s);Me--)oe(fr[Me],A);for(Kt++;Kt=0&&te[fr[Qe]]&s;Qe--)oe(fr[Qe],F);for(var gt=Xe+1;gt=0;un--){var Tt=gi[un].char;if(Tt===Gi||Tt===b(M(ei))||_(M(Tt))===ei){Vr.push([gi[un].seqIndex,ui]),gi.length=un;break}}}Vr.sort(function(pr,oi){return pr[0]-oi[0]});for(var wi=0;wi=0;en--){var _r=fr[en];if(te[_r]&Br){var Zr=te[_r]&Rr?T:x;na=Zr===ri?ri:Zr;break}}}if(na){if(te[fr[ii]]=te[fr[Pr]]=na,na!==ri){for(var fi=ii+1;fi=0;Ta--)if(te[fr[Ta]]&s)ca=Ta;else{dn=te[fr[Ta]]&Rr?T:x;break}for(var rn=Or,Ai=ln+1;Ai=0&&c(ze[pi])&l;pi--)Y[pi]=V.level}}return{levels:Y,paragraphs:ye};function Fn(pr,oi){for(var Ki=pr;Ki=Y&&c(ze[V])&l;V--)ye[V]=oe.level;for(var ue=oe.level,_e=1/0,xe=0;xeue&&(ue=Ae),Ae<_e&&(_e=Ae|1)}for(var se=ue;se>=_e;se--)for(var pe=0;pe=se){for(var fe=pe;pe+1=se;)pe++;pe>fe&&we.push([fe+Y,pe+Y])}}}),we}function de(ze,ke,le,te){var Ee=me(ze,ke,le,te),we=[].concat(ze);return Ee.forEach(function(oe,Y){we[Y]=(ke.levels[oe]&1?$(ze[oe]):null)||ze[oe]}),we.join("")}function me(ze,ke,le,te){for(var Ee=re(ze,ke,le,te),we=[],oe=0;oe=0;i--){let n=bae.getBidiCharTypeName(e[i].text[0]);Kwr.has(n)?(e[i].level=t,r=!0):r&&Zwr.has(n)?e[i].level=t:r=!1}}function eAr(e,t){let r=t,i=1/0;for(let{level:a}of e)a>r&&(r=a),(a|1)=i;a--)for(let o=0;o=a;)s++;for(let l=o,u=s;lt>=n.start&&t<=n.end))==null?void 0:r.level)!=null?i:0}function iAr(e,t,r,i,n){let a=Jwr(e,t,i,n);Qwr(a,r);let o="",s=[];for(let l of eAr(a,r)){if(Xwr.test(l.text))continue;let u=tAr(l);o+=u,s.push(...Array(u.length).fill(l.index))}return{text:o,sourceIndices:s}}function nAr(e,t){let r=t.filter(a=>a>0&&aa-o),n=[];for(let a=0;a+1n.start))).map(([n,a])=>iAr(e,r,rAr(i,n),n,a))}function aAr(e,t){return Mat(e,t).map(r=>r.text)}function oAr(e,t,r){return Mat(e,r).map(i=>[i.text,i.sourceIndices.map(n=>{var a;return(a=t[n])!=null?a:0})])}function sAr(e,t,r){let i=r.buf,n,a;if(a=i[r.pos++],n=(a&112)>>4,a<128||(a=i[r.pos++],n|=(a&127)<<3,a<128)||(a=i[r.pos++],n|=(a&127)<<10,a<128)||(a=i[r.pos++],n|=(a&127)<<17,a<128)||(a=i[r.pos++],n|=(a&127)<<24,a<128)||(a=i[r.pos++],n|=(a&1)<<31,a<128))return lAr(e,n,t);throw Error("Expected varint not more than 10 bytes")}function lAr(e,t,r){return r?t*4294967296+(e>>>0):(t>>>0)*4294967296+(e>>>0)}function uAr(e,t,r){let i="",n=t;for(;n239?4:a>223?3:a>191?2:1;if(n+s>r)break;let l,u,f;s===1?a<128&&(o=a):s===2?(l=e[n+1],(l&192)==128&&(o=(a&31)<<6|l&63,o<=127&&(o=null))):s===3?(l=e[n+1],u=e[n+2],(l&192)==128&&(u&192)==128&&(o=(a&15)<<12|(l&63)<<6|u&63,(o<=2047||o>=55296&&o<=57343)&&(o=null))):s===4&&(l=e[n+1],u=e[n+2],f=e[n+3],(l&192)==128&&(u&192)==128&&(f&192)==128&&(o=(a&15)<<18|(l&63)<<12|(u&63)<<6|f&63,(o<=65535||o>=1114112)&&(o=null))),o===null?(o=65533,s=1):o>65535&&(o-=65536,i+=String.fromCharCode(o>>>10&1023|55296),o=56320|o&1023),i+=String.fromCharCode(o),n+=s}return i}function fAr(e,t,r){e===1&&r.readMessage(cAr,t)}function cAr(e,t,r){if(e===3){let{id:i,bitmap:n,width:a,height:o,left:s,top:l,advance:u}=r.readMessage(hAr,{});t.push({id:i,bitmap:new Pq({width:a+6,height:o+6},n),metrics:{width:a,height:o,left:s,top:l,advance:u}})}}function hAr(e,t,r){e===1?t.id=r.readVarint():e===2?t.bitmap=r.readBytes():e===3?t.width=r.readVarint():e===4?t.height=r.readVarint():e===5?t.left=r.readSVarint():e===6?t.top=r.readSVarint():e===7&&(t.advance=r.readVarint())}function Eat(e){return new Sat(e).readFields(fAr,[])}function DC(e){return typeof(e==null?void 0:e.renderWithWebGL)=="function"}function kat(e){let{userImage:t}=e;return!(t!=null&&t.render)||!t.render()?!1:(DC(t.data)||e.data.replace(new Uint8Array(t.data.buffer)),!0)}function _ae(e){let t=0,r=0;for(let o of e)t+=o.w*o.h,r=Math.max(r,o.w);e.sort((o,s)=>s.h-o.h);let i=[{x:0,y:0,w:Math.max(Math.ceil(Math.sqrt(t/.95)),r),h:1/0}],n=0,a=0;for(let o of e)for(let s=i.length-1;s>=0;s--){let l=i[s];if(!(o.w>l.w||o.h>l.h)){if(o.x=l.x,o.y=l.y,a=Math.max(a,o.y+o.h),n=Math.max(n,o.x+o.w),o.w===l.w&&o.h===l.h){let u=i.pop();u&&s=r;a--)t.push(a);r=i+1}else{for(let a=r;ae.toCodeUnitIndex(a)),i=Y7.isParsed()?Y7:null;if(e.sections.length===1)return i?i.processBidirectionalText(e.toString(),r).map(a=>Ott(a,e.sections,[...a].map(()=>0))):aAr(e.toString(),r).map(a=>hne([...a],e.sections,[...a].map(()=>0)));let n=yAr(e);return i?i.processStyledBidirectionalText(e.text,n,r).map(([a,o])=>Ott(a,e.sections,o)):oAr(e.text,n,r).map(([a,o])=>{let s=[...a];return hne(s,e.sections,Dat(s).map(l=>{var u;return(u=o[l])!=null?u:0}))})}function hne(e,t,r){var a;let i=new xae(e.join(""),t,[]),n=0;for(let o of i.graphemes())i.sectionIndex.push((a=r[n])!=null?a:0),n+=[...o].length;return i}function Dat(e){let t=[],r=0;for(let i of e)t.push(r),r+=i.length;return t}function Ott(e,t,r){let i=[...e],n=Dat(i),a=mAr(i);return hne(a.map(o=>i[o]),t,a.map(o=>{var s;return(s=r[n[o]])!=null?s:0}))}function _7(e,t,r,i,n,a,o,s,l,u,f,c,h,d,p){let v=xae.fromFeature(e,n);c===2&&v.verticalizePunctuation();let y=v.determineLineBreaks(u,a,t,i,d),m=Aat(v.text)?gAr(v,y):vAr(v,y),w=[],_={positionedLines:w,text:v.toString(),top:f[1],bottom:f[1],left:f[0],right:f[0],writingMode:c,iconsInText:!1,verticalizable:!1};return EAr(_,t,r,i,m,o,s,l,c,u,h,p),!pAr(w)&&_}function FC(e){let t=.5,r=.5;switch(e){case"right":case"top-right":case"bottom-right":t=1;break;case"left":case"top-left":case"bottom-left":t=0}switch(e){case"bottom":case"bottom-right":case"bottom-left":r=1;break;case"top":case"top-right":case"top-left":r=0}return{horizontalAlign:t,verticalAlign:r}}function xAr(e,t,r){let i=t.getMaxScale()*24,{maxImageWidth:n,maxImageHeight:a}=t.getMaxImageSize(e),o=Math.max(i,a*r);return{verticalLineContentWidth:Math.max(i,n*r),horizontalLineContentHeight:o}}function Fat(e){switch(e){case"top":return 0;case"center":return .5;default:return 1}}function bAr(e,t,r,i){var a,o;if(e!=null&&e.rect)return e;let n=(o=(a=t[r.fontStack])==null?void 0:a.default)==null?void 0:o[i];return n?{rect:null,metrics:n.metrics}:null}function _Ar(e,t,r){return!(e===1||!t&&!qq(r)||t&&(gae(r)||_at(r)))}function L7(e){return new RegExp("\\p{Nd}","u").test(String.fromCodePoint(e))}function Lat(e){return new RegExp("\\p{Lu}","u").test(String.fromCodePoint(e))}function wAr(e){return/[\p{P}\p{S}]/u.test(String.fromCodePoint(e))}function AAr(e){let t=e.some(L7)&&e.every(i=>L7(i)||wAr(i)),r=e.length<=3&&e.every(i=>Lat(i)||L7(i));return t||r}function TAr(e){return(L7(e)||Lat(e))&&!_at(e)}function MAr(e,t){let r=!1;for(let i=0;ia.codePointAt(0)),i=r.map(qq),n=a=>!i[a]&&!gae(r[a])&&!("imageName"in e.getSection(a));for(let a=0;au){let h=Math.ceil(i/u);r*=h/n,n=h}return{x1:t,y1:r,x2:t+i,y2:r+n}}function Ntt(e,t,r,i,n,a){let o=e.image,s;if(o.content){let y=o.content,m=o.pixelRatio||1;s=[y[0]/m,y[1]/m,o.displaySize[0]-y[2]/m,o.displaySize[1]-y[3]/m]}let l=t.left*a,u=t.right*a,f,c,h,d;r==="width"||r==="both"?(d=n[0]+l-i[3],c=n[0]+u+i[1]):(d=n[0]+(l+u-o.displaySize[0])/2,c=d+o.displaySize[0]);let p=t.top*a,v=t.bottom*a;return r==="height"||r==="both"?(f=n[1]+p-i[0],h=n[1]+v+i[2]):(f=n[1]+(p+v-o.displaySize[1])/2,h=f+o.displaySize[1]),{image:o,top:f,right:c,bottom:h,left:d,collisionPadding:s}}function Utt(e,t){let{expression:r}=t;if(r.kind==="constant")return{kind:"constant",layoutSize:r.evaluate(new Xu(e+1))};if(r.kind==="source")return{kind:"source"};if(r.kind==="composite"){let{minZoom:i,maxZoom:n}=PAr(r.zoomStops,e);return{kind:"composite",minZoom:i,maxZoom:n,interpolationType:r.interpolationType}}{let i=zAr(r),n=r.evaluate(new Xu(e+1));return{kind:"camera",zoomStops:r.zoomStops,sizes:i,layoutSize:n,interpolationType:r.interpolationType}}}function PAr(e,t){let r=0;for(;re.evaluate(new Xu(t===-1/0?e.zoomStops[1]-1:t)))}function Nq(e,{uSize:t,uSizeT:r},{lowerSize:i,upperSize:n}){return e.kind==="source"?i/128:e.kind==="composite"?ic.number(i/128,n/128,r):t}function LC(e,t){let r=0,i=0;return e.kind==="constant"?i=e.layoutSize:e.kind==="camera"?i=IAr(e,t):e.kind==="composite"&&(r=RAr(e,t)),{uSizeT:r,uSize:i}}function IAr({zoomStops:e,sizes:t,layoutSize:r,interpolationType:i},n){let a=e.length-1;for(;a>0&&e[a]>n;)a--;let o=Math.min(a+1,e.length-1),s=i?Pl(Sv.interpolationFactor(i,n,e[a],e[o]),0,1):0;return Math.min(ic.number(t[a],t[o],s),r)}function RAr({interpolationType:e,minZoom:t,maxZoom:r},i){return e?Pl(Sv.interpolationFactor(e,i,t,r),0,1):0}function Iat(e,t,r,i,n){if(t.segment===void 0||r===0)return!0;let a=t,o=t.segment+1,s=0;for(;s>-r/2;){if(o--,o<0)return!1;s-=e[o].dist(a),a=e[o]}s+=e[o].dist(e[o+1]),o++;let l=[],u=0;for(;si;)u-=l.shift().angleDelta;if(u>n)return!1;o++,s+=c.dist(h)}return!0}function Rat(e){let t=0;for(let r=0;ru){let p=(u-l)/d,v=new I5(ic.number(c.x,h.x,p),ic.number(c.y,h.y,p),h.angleTo(c),f);return v._round(),!o||Iat(e,v,s,o,t)?v:void 0}l+=d}}function qAr(e,t,r,i,n,a,o,s,l){let u=Bat(i,a,o),f=qat(i,n),c=f*o,h=e[0].x===0||e[0].x===l||e[0].y===0||e[0].y===l;t-c=0&&b=0&&M=0&&h+u<=f){let x=new I5(b,M,w,p);x._round(),(!i||Iat(e,x,a,i,n))&&d.push(x)}}c+=m}return!s&&!d.length&&!o&&(d=Oat(e,c/2,r,i,n,a,o,!0,l)),d}function wae(e,t,r,i,n){let a=[];for(let o of e){let s;for(let l=0;l=i&&f.x>=i)&&(u.x>=i?u=new Jr(i,u.y+(f.y-u.y)*((i-u.x)/(f.x-u.x)))._round():f.x>=i&&(f=new Jr(i,u.y+(f.y-u.y)*((i-u.x)/(f.x-u.x)))._round()),!(u.y>=n&&f.y>=n)&&(u.y>=n?u=new Jr(u.x+(f.x-u.x)*((n-u.y)/(f.y-u.y)),n)._round():f.y>=n&&(f=new Jr(u.x+(f.x-u.x)*((n-u.y)/(f.y-u.y)),n)._round()),(!s||!u.equals(s[s.length-1]))&&(s=[u],a.push(s)),s.push(f)))))}}return a}function Gtt(e,t,r,i){let n=[],a=e.image,o=a.pixelRatio,s=a.paddedRect.w-2,l=a.paddedRect.h-2,u={x1:e.left,y1:e.top,x2:e.right,y2:e.bottom},f=a.stretchX||[[0,s]],c=a.stretchY||[[0,l]],h=(D,F)=>D+F[1]-F[0],d=f.reduce(h,0),p=c.reduce(h,0),v=s-d,y=l-p,m=0,w=d,_=0,b=p,M=0,x=v,T=0,A=y;if(a.content&&i){let D=a.content,F=D[2]-D[0],P=D[3]-D[1];(a.textFitWidth||a.textFitHeight)&&(u=Pat(e)),m=w7(f,0,D[0]),_=w7(c,0,D[1]),w=w7(f,D[0],D[2]),b=w7(c,D[1],D[3]),M=D[0]-m,T=D[1]-_,x=F-w,A=P-b}let g=u.x1,E=u.y1,S=u.x2-g,C=u.y2-E,k=(D,F,P,I)=>{let L=A7(D.stretch-m,w,S,g),z=T7(D.fixed-M,x,D.stretch,d),B=A7(F.stretch-_,b,C,E),O=T7(F.fixed-T,A,F.stretch,p),W=A7(P.stretch-m,w,S,g),X=T7(P.fixed-M,x,P.stretch,d),Z=A7(I.stretch-_,b,C,E),H=T7(I.fixed-T,A,I.stretch,p),q=new Jr(L,B),Q=new Jr(W,B),N=new Jr(W,Z),U=new Jr(L,Z),J=new Jr(z/o,O/o),j=new Jr(X/o,H/o),$=t*Math.PI/180;if($){let ze=Math.sin($),ke=Math.cos($),le=[ke,-ze,ze,ke];q._matMult(le),Q._matMult(le),U._matMult(le),N._matMult(le)}let ie=D.stretch+D.fixed,re=P.stretch+P.fixed,de=F.stretch+F.fixed,me=I.stretch+I.fixed;return{tl:q,tr:Q,bl:U,br:N,tex:{x:a.paddedRect.x+1+ie,y:a.paddedRect.y+1+de,w:re-ie,h:me-de},writingMode:void 0,glyphOffset:[0,0],sectionIndex:0,pixelOffsetTL:J,pixelOffsetBR:j,minFontScaleX:x/o/S,minFontScaleY:A/o/C,isSDF:r}};if(!i||!a.stretchX&&!a.stretchY)n.push(k({fixed:0,stretch:-1},{fixed:0,stretch:-1},{fixed:0,stretch:s+1},{fixed:0,stretch:l+1}));else{let D=Htt(f,v,d),F=Htt(c,y,p);for(let P=0;Pc.d||!c.d)&&(c=h),!(h.max-c.d<=t)&&(n=h.h/2,a.push(new E5(h.p.x-n,h.p.y-n,n,e)),a.push(new E5(h.p.x+n,h.p.y-n,n,e)),a.push(new E5(h.p.x-n,h.p.y+n,n,e)),a.push(new E5(h.p.x+n,h.p.y+n,n,e)))}return f.d>0&&c.d-f.d<=t?f.p:c.p}function UAr(e,t){return t.max-e.max}function GAr(e,t){let r=!1,i=1/0;for(let n of t)for(let a=0,o=n.length,s=o-1;ae.y!=u.y>e.y&&e.x<(u.x-l.x)*(e.y-l.y)/(u.y-l.y)+l.x&&(r=!r),i=Math.min(i,Nnt(e,l,u))}return(r?1:-1)*Math.sqrt(i)}function HAr(e){let t=0,r=0,i=0,n=e[0];for(let a=0,o=n.length,s=o-1;ah*24);f.startsWith("top")?c[1]-=7:f.startsWith("bottom")&&(c[1]+=7),l[u+1]=c}return new Nm(l)}let a=i.get("text-variable-anchor");if(a){let s;s=e._unevaluatedLayout.getValue("text-radial-offset")===void 0?i.get("text-offset").evaluate(t,{},r).map(u=>u*24):[i.get("text-radial-offset").evaluate(t,{},r)*24,Aae];let l=[];for(let u of a)l.push(u,Nat(u,s));return new Nm(l)}return null}function jAr(e){var f,c;e.bucket.createArrays();let t=512*e.bucket.overscaling;e.bucket.tilePixelRatio=Aa/t,e.bucket.compareText={},e.bucket.iconsNeedLinear=!1;let r=e.bucket.layers[0],i=r.layout,n=r._unevaluatedLayout._values,a={layoutIconSize:n["icon-size"].possiblyEvaluate(new Xu(e.bucket.zoom+1),e.canonical),layoutTextSize:n["text-size"].possiblyEvaluate(new Xu(e.bucket.zoom+1),e.canonical),textMaxSize:n["text-size"].possiblyEvaluate(new Xu(18))};if(e.bucket.textSizeData.kind==="composite"){let{minZoom:h,maxZoom:d}=e.bucket.textSizeData;a.compositeTextSizes=[n["text-size"].possiblyEvaluate(new Xu(h),e.canonical),n["text-size"].possiblyEvaluate(new Xu(d),e.canonical)]}if(e.bucket.iconSizeData.kind==="composite"){let{minZoom:h,maxZoom:d}=e.bucket.iconSizeData;a.compositeIconSizes=[n["icon-size"].possiblyEvaluate(new Xu(h),e.canonical),n["icon-size"].possiblyEvaluate(new Xu(d),e.canonical)]}let o=i.get("text-line-height")*24,s=i.get("text-rotation-alignment")!=="viewport"&&i.get("symbol-placement")!=="point",l=i.get("text-keep-upright"),u=i.get("text-size");for(let h of e.bucket.features){let d=i.get("text-font").evaluate(h,{},e.canonical).join(","),p=u.evaluate(h,{},e.canonical),v=a.layoutTextSize.evaluate(h,{},e.canonical),y=a.layoutIconSize.evaluate(h,{},e.canonical),m={horizontal:{},vertical:void 0},w=h.text,_=[0,0];if(w){let T=w.toString(),A=i.get("text-letter-spacing").evaluate(h,{},e.canonical)*24,g=Uwr(T)?A:0,E=i.get("text-anchor").evaluate(h,{},e.canonical),S=Vat(r,h,e.canonical);if(!S){let F=i.get("text-radial-offset").evaluate(h,{},e.canonical);_=F?Nat(E,[F*24,Aae]):i.get("text-offset").evaluate(h,{},e.canonical).map(P=>P*24)}let C=s?"center":i.get("text-justify").evaluate(h,{},e.canonical),k=i.get("symbol-placement")==="point"?i.get("text-max-width").evaluate(h,{},e.canonical)*24:1/0,D=()=>{e.bucket.allowVerticalPlacement&&une(T)&&(m.vertical=_7(w,e.glyphMap,e.glyphPositions,e.imagePositions,d,k,o,E,"left",g,_,2,!0,v,p))};if(!s&&S){let F=new Set;if(C==="auto")for(let I=0;I{L.x<0||L.x>=8192||L.y<0||L.y>=8192||YAr(e,L,I,r,i,n,D,e.layers[0],e.collisionBoxArray,t.index,t.sourceLayerIndex,e.index,w,[x,x,x,x],g,l,b,T,E,v,t,a,u,f,o,h)};if(S==="line")for(let I of wae(t.geometry,0,0,Aa,Aa)){let L=r3(I,F),z=qAr(L,M,A,r.vertical||y,i,24,_,e.overscaling,Aa);for(let B of z){let O=y;(!O||!XAr(e,O.text,C,B))&&P(L,B)}}else if(S==="line-center"){for(let I of t.geometry)if(I.length>1){let L=r3(I,F),z=BAr(L,A,r.vertical||y,i,24,_);z&&P(L,z)}}else if(t.type==="Polygon")for(let I of gq(t.geometry,0)){let L=VAr(I,16);P(r3(I[0],F,!0),new I5(L.x,L.y,0))}else if(t.type==="LineString")for(let I of t.geometry){let L=r3(I,F);P(L,new I5(L[0].x,L[0].y,0))}else if(t.type==="Point")for(let I of t.geometry)for(let L of I)P([L],new I5(L.x,L.y,0))}function $Ar(e,t){let r=e.length,i=t==null?void 0:t.values;if((i==null?void 0:i.length)>0)for(let n=0;n32640&&uu(`${e.layerIds[0]}: Value for "text-size" is >= 255. Reduce your "text-size".`)):m.kind==="composite"&&(w=[128*p.compositeTextSizes[0].evaluate(o,{},v),128*p.compositeTextSizes[1].evaluate(o,{},v)],(w[0]>32640||w[1]>32640)&&uu(`${e.layerIds[0]}: Value for "text-size" is >= 255. Reduce your "text-size".`)),e.addSymbols(e.text,y,w,s,a,o,f,t,u.lineStartIndex,u.lineLength,d,v,l);for(let _ of c)h[_]=e.text.placedSymbolArray.length-1;return y.length*4}function Uat(e){for(let t in e)return e[t];return null}function YAr(e,t,r,i,n,a,o,s,l,u,f,c,h,d,p,v,y,m,w,_,b,M,x,T,A,g){let E=e.addToLineVertexArray(t,r),S=s.layout.get("symbol-height-offset").evaluate(b,{},T);S>e.maxHeightOffset&&(e.maxHeightOffset=S);let C,k,D,F,P=0,I=0,L=0,z=0,B=-1,O=-1,W={},X=(0,H7.default)("");if(e.allowVerticalPlacement&&i.vertical){let le=s.layout.get("text-rotate").evaluate(b,{},T)+90,te=i.vertical;D=new M7(l,t,u,f,c,te,h,d,p,le),o&&(F=new M7(l,t,u,f,c,o,y,m,p,le))}if(n){let le=s.layout.get("icon-rotate").evaluate(b,{}),te=s.layout.get("icon-text-fit")!=="none",Ee=Gtt(n,le,x,te),we=o?Gtt(o,le,x,te):void 0;k=new M7(l,t,u,f,c,n,y,m,!1,le),P=Ee.length*4;let oe=e.iconSizeData,Y=null;oe.kind==="source"?(Y=[128*s.layout.get("icon-size").evaluate(b,{})],Y[0]>32640&&uu(`${e.layerIds[0]}: Value for "icon-size" is >= 255. Reduce your "icon-size".`)):oe.kind==="composite"&&(Y=[128*M.compositeIconSizes[0].evaluate(b,{},T),128*M.compositeIconSizes[1].evaluate(b,{},T)],(Y[0]>32640||Y[1]>32640)&&uu(`${e.layerIds[0]}: Value for "icon-size" is >= 255. Reduce your "icon-size".`)),e.addSymbols(e.icon,Ee,Y,_,w,b,0,t,E.lineStartIndex,E.lineLength,-1,T,S),B=e.icon.placedSymbolArray.length-1,we&&(I=we.length*4,e.addSymbols(e.icon,we,Y,_,w,b,2,t,E.lineStartIndex,E.lineLength,-1,T,S),O=e.icon.placedSymbolArray.length-1)}let Z=Object.keys(i.horizontal);for(let le of Z){let te=i.horizontal[le];C||(C=(X=(0,H7.default)(te.text),new M7(l,t,u,f,c,te,h,d,p,s.layout.get("text-rotate").evaluate(b,{},T))));let Ee=te.positionedLines.length===1;if(L+=jtt(e,t,te,a,s,p,b,v,S,E,i.vertical?1:3,Ee?Z:[le],W,B,M,T),Ee)break}i.vertical&&(z+=jtt(e,t,i.vertical,a,s,p,b,v,S,E,2,["vertical"],W,O,M,T));let H=C?C.boxStartIndex:e.collisionBoxArray.length,q=C?C.boxEndIndex:e.collisionBoxArray.length,Q=D?D.boxStartIndex:e.collisionBoxArray.length,N=D?D.boxEndIndex:e.collisionBoxArray.length,U=k?k.boxStartIndex:e.collisionBoxArray.length,J=k?k.boxEndIndex:e.collisionBoxArray.length,j=F?F.boxStartIndex:e.collisionBoxArray.length,$=F?F.boxEndIndex:e.collisionBoxArray.length,ie=-1,re=(le,te)=>le!=null&&le.circleDiameter?Math.max(le.circleDiameter,te):te;ie=re(C,ie),ie=re(D,ie),ie=re(k,ie),ie=re(F,ie);let de=+(ie>-1);de&&(ie*=A/24),e.glyphOffsetArray.length>=e.maxGlyphs&&uu("Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907"),b.sortKey!==void 0&&e.addToSortKeyRanges(e.symbolInstances.length,b.sortKey);let me=Vat(s,b,T),[ze,ke]=$Ar(e.textAnchorOffsets,me);g&&(X=ZAr(X,b)),e.symbolInstances.emplaceBack(t.x,t.y,W.right>=0?W.right:-1,W.center>=0?W.center:-1,W.left>=0?W.left:-1,W.vertical||-1,B,O,X,H,q,Q,N,U,J,j,$,u,L,z,P,I,de,0,h,ie,ze,ke,S)}function XAr(e,t,r,i){let n=e.compareText;if(!(t in n))n[t]=[];else{let a=n[t];for(let o=a.length-1;o>=0;o--)if(i.dist(a[o])e&&i in e?String(e[i]):"")}function i4r(e,t,r,i=1){var a;let n=(a=e.get("icon-padding").evaluate(t,{},r))==null?void 0:a.values;return[n[0]*i,n[1]*i,n[2]*i,n[3]*i]}function jat(e){let t=[],r=e.id;return r===void 0&&t.push(new Ao(`layers.${r}`,null,'missing required property "id"')),e.render===void 0&&t.push(new Ao(`layers.${r}`,null,'missing required method "render"')),e.renderingMode&&e.renderingMode!=="2d"&&e.renderingMode!=="3d"&&t.push(new Ao(`layers.${r}`,null,'property "renderingMode" must be either "2d" or "3d"')),t}function Uq(e,t){if(e.type==="custom")return new s4r(e,t);switch(e.type){case"background":return new o4r(e,t);case"circle":return new X_r(e,t);case"color-relief":return new a3r(e,t);case"fill":return new R3r(e,t);case"fill-extrusion":return new ewr(e,t);case"heatmap":return new J_r(e,t);case"hillshade":return new t3r(e,t);case"line":return new hwr(e,t);case"raster":return new d_r(e,t);case"symbol":return new r4r(e,t)}}function f4r(e,t,r){return!(e<0||e>25||r<0||r>=2**e||t<0||t>=2**e)}function Mae(e,t){let{x:r,y:i}=Uu.fromLngLat(t);return!(e<0||e>25||i<0||i>=1||r<0||r>=1)}function a3(e,t,r,i,n){e*=2,e<0&&(e=e*-1-1);let a=1<0;n--){let a=1<>>0;return((t&255)<<24|(t&65280)<<8|t>>>8&65280|t>>>24&255)>>>0}function y4r(e,t,r,i){let n=i,a=e[t]>>>0,o=e[t+1]>>>0;r[n++]=a>>>0&3,r[n++]=a>>>2&3,r[n++]=a>>>4&3,r[n++]=a>>>6&3,r[n++]=a>>>8&3,r[n++]=a>>>10&3,r[n++]=a>>>12&3,r[n++]=a>>>14&3,r[n++]=a>>>16&3,r[n++]=a>>>18&3,r[n++]=a>>>20&3,r[n++]=a>>>22&3,r[n++]=a>>>24&3,r[n++]=a>>>26&3,r[n++]=a>>>28&3,r[n++]=a>>>30&3,r[n++]=o>>>0&3,r[n++]=o>>>2&3,r[n++]=o>>>4&3,r[n++]=o>>>6&3,r[n++]=o>>>8&3,r[n++]=o>>>10&3,r[n++]=o>>>12&3,r[n++]=o>>>14&3,r[n++]=o>>>16&3,r[n++]=o>>>18&3,r[n++]=o>>>20&3,r[n++]=o>>>22&3,r[n++]=o>>>24&3,r[n++]=o>>>26&3,r[n++]=o>>>28&3,r[n]=o>>>30&3}function g4r(e,t,r,i){let n=i,a=e[t]>>>0,o=e[t+1]>>>0,s=e[t+2]>>>0;r[n++]=a>>>0&7,r[n++]=a>>>3&7,r[n++]=a>>>6&7,r[n++]=a>>>9&7,r[n++]=a>>>12&7,r[n++]=a>>>15&7,r[n++]=a>>>18&7,r[n++]=a>>>21&7,r[n++]=a>>>24&7,r[n++]=a>>>27&7,r[n++]=(a>>>30|(o&1)<<2)&7,r[n++]=o>>>1&7,r[n++]=o>>>4&7,r[n++]=o>>>7&7,r[n++]=o>>>10&7,r[n++]=o>>>13&7,r[n++]=o>>>16&7,r[n++]=o>>>19&7,r[n++]=o>>>22&7,r[n++]=o>>>25&7,r[n++]=o>>>28&7,r[n++]=(o>>>31|(s&3)<<1)&7,r[n++]=s>>>2&7,r[n++]=s>>>5&7,r[n++]=s>>>8&7,r[n++]=s>>>11&7,r[n++]=s>>>14&7,r[n++]=s>>>17&7,r[n++]=s>>>20&7,r[n++]=s>>>23&7,r[n++]=s>>>26&7,r[n]=s>>>29&7}function x4r(e,t,r,i){let n=i,a=e[t]>>>0,o=e[t+1]>>>0,s=e[t+2]>>>0,l=e[t+3]>>>0;r[n++]=a>>>0&15,r[n++]=a>>>4&15,r[n++]=a>>>8&15,r[n++]=a>>>12&15,r[n++]=a>>>16&15,r[n++]=a>>>20&15,r[n++]=a>>>24&15,r[n++]=a>>>28&15,r[n++]=o>>>0&15,r[n++]=o>>>4&15,r[n++]=o>>>8&15,r[n++]=o>>>12&15,r[n++]=o>>>16&15,r[n++]=o>>>20&15,r[n++]=o>>>24&15,r[n++]=o>>>28&15,r[n++]=s>>>0&15,r[n++]=s>>>4&15,r[n++]=s>>>8&15,r[n++]=s>>>12&15,r[n++]=s>>>16&15,r[n++]=s>>>20&15,r[n++]=s>>>24&15,r[n++]=s>>>28&15,r[n++]=l>>>0&15,r[n++]=l>>>4&15,r[n++]=l>>>8&15,r[n++]=l>>>12&15,r[n++]=l>>>16&15,r[n++]=l>>>20&15,r[n++]=l>>>24&15,r[n]=l>>>28&15}function b4r(e,t,r,i){let n=i,a=e[t]>>>0,o=e[t+1]>>>0,s=e[t+2]>>>0,l=e[t+3]>>>0,u=e[t+4]>>>0;r[n++]=a>>>0&31,r[n++]=a>>>5&31,r[n++]=a>>>10&31,r[n++]=a>>>15&31,r[n++]=a>>>20&31,r[n++]=a>>>25&31,r[n++]=(a>>>30|(o&7)<<2)&31,r[n++]=o>>>3&31,r[n++]=o>>>8&31,r[n++]=o>>>13&31,r[n++]=o>>>18&31,r[n++]=o>>>23&31,r[n++]=(o>>>28|(s&1)<<4)&31,r[n++]=s>>>1&31,r[n++]=s>>>6&31,r[n++]=s>>>11&31,r[n++]=s>>>16&31,r[n++]=s>>>21&31,r[n++]=s>>>26&31,r[n++]=(s>>>31|(l&15)<<1)&31,r[n++]=l>>>4&31,r[n++]=l>>>9&31,r[n++]=l>>>14&31,r[n++]=l>>>19&31,r[n++]=l>>>24&31,r[n++]=(l>>>29|(u&3)<<3)&31,r[n++]=u>>>2&31,r[n++]=u>>>7&31,r[n++]=u>>>12&31,r[n++]=u>>>17&31,r[n++]=u>>>22&31,r[n]=u>>>27&31}function _4r(e,t,r,i){let n=i,a=e[t]>>>0,o=e[t+1]>>>0,s=e[t+2]>>>0,l=e[t+3]>>>0,u=e[t+4]>>>0,f=e[t+5]>>>0;r[n++]=a>>>0&63,r[n++]=a>>>6&63,r[n++]=a>>>12&63,r[n++]=a>>>18&63,r[n++]=a>>>24&63,r[n++]=(a>>>30|(o&15)<<2)&63,r[n++]=o>>>4&63,r[n++]=o>>>10&63,r[n++]=o>>>16&63,r[n++]=o>>>22&63,r[n++]=(o>>>28|(s&3)<<4)&63,r[n++]=s>>>2&63,r[n++]=s>>>8&63,r[n++]=s>>>14&63,r[n++]=s>>>20&63,r[n++]=s>>>26&63,r[n++]=l>>>0&63,r[n++]=l>>>6&63,r[n++]=l>>>12&63,r[n++]=l>>>18&63,r[n++]=l>>>24&63,r[n++]=(l>>>30|(u&15)<<2)&63,r[n++]=u>>>4&63,r[n++]=u>>>10&63,r[n++]=u>>>16&63,r[n++]=u>>>22&63,r[n++]=(u>>>28|(f&3)<<4)&63,r[n++]=f>>>2&63,r[n++]=f>>>8&63,r[n++]=f>>>14&63,r[n++]=f>>>20&63,r[n]=f>>>26&63}function w4r(e,t,r,i){let n=i,a=e[t]>>>0,o=e[t+1]>>>0,s=e[t+2]>>>0,l=e[t+3]>>>0,u=e[t+4]>>>0,f=e[t+5]>>>0,c=e[t+6]>>>0;r[n++]=a>>>0&127,r[n++]=a>>>7&127,r[n++]=a>>>14&127,r[n++]=a>>>21&127,r[n++]=(a>>>28|(o&7)<<4)&127,r[n++]=o>>>3&127,r[n++]=o>>>10&127,r[n++]=o>>>17&127,r[n++]=o>>>24&127,r[n++]=(o>>>31|(s&63)<<1)&127,r[n++]=s>>>6&127,r[n++]=s>>>13&127,r[n++]=s>>>20&127,r[n++]=(s>>>27|(l&3)<<5)&127,r[n++]=l>>>2&127,r[n++]=l>>>9&127,r[n++]=l>>>16&127,r[n++]=l>>>23&127,r[n++]=(l>>>30|(u&31)<<2)&127,r[n++]=u>>>5&127,r[n++]=u>>>12&127,r[n++]=u>>>19&127,r[n++]=(u>>>26|(f&1)<<6)&127,r[n++]=f>>>1&127,r[n++]=f>>>8&127,r[n++]=f>>>15&127,r[n++]=f>>>22&127,r[n++]=(f>>>29|(c&15)<<3)&127,r[n++]=c>>>4&127,r[n++]=c>>>11&127,r[n++]=c>>>18&127,r[n]=c>>>25&127}function A4r(e,t,r,i){let n=i,a=e[t]>>>0,o=e[t+1]>>>0,s=e[t+2]>>>0,l=e[t+3]>>>0,u=e[t+4]>>>0,f=e[t+5]>>>0,c=e[t+6]>>>0,h=e[t+7]>>>0;r[n++]=a>>>0&255,r[n++]=a>>>8&255,r[n++]=a>>>16&255,r[n++]=a>>>24&255,r[n++]=o>>>0&255,r[n++]=o>>>8&255,r[n++]=o>>>16&255,r[n++]=o>>>24&255,r[n++]=s>>>0&255,r[n++]=s>>>8&255,r[n++]=s>>>16&255,r[n++]=s>>>24&255,r[n++]=l>>>0&255,r[n++]=l>>>8&255,r[n++]=l>>>16&255,r[n++]=l>>>24&255,r[n++]=u>>>0&255,r[n++]=u>>>8&255,r[n++]=u>>>16&255,r[n++]=u>>>24&255,r[n++]=f>>>0&255,r[n++]=f>>>8&255,r[n++]=f>>>16&255,r[n++]=f>>>24&255,r[n++]=c>>>0&255,r[n++]=c>>>8&255,r[n++]=c>>>16&255,r[n++]=c>>>24&255,r[n++]=h>>>0&255,r[n++]=h>>>8&255,r[n++]=h>>>16&255,r[n]=h>>>24&255}function T4r(e,t,r,i){let n=i,a=e[t]>>>0,o=e[t+1]>>>0,s=e[t+2]>>>0,l=e[t+3]>>>0,u=e[t+4]>>>0,f=e[t+5]>>>0,c=e[t+6]>>>0,h=e[t+7]>>>0,d=e[t+8]>>>0;r[n++]=a>>>0&511,r[n++]=a>>>9&511,r[n++]=a>>>18&511,r[n++]=(a>>>27|(o&15)<<5)&511,r[n++]=o>>>4&511,r[n++]=o>>>13&511,r[n++]=o>>>22&511,r[n++]=(o>>>31|(s&255)<<1)&511,r[n++]=s>>>8&511,r[n++]=s>>>17&511,r[n++]=(s>>>26|(l&7)<<6)&511,r[n++]=l>>>3&511,r[n++]=l>>>12&511,r[n++]=l>>>21&511,r[n++]=(l>>>30|(u&127)<<2)&511,r[n++]=u>>>7&511,r[n++]=u>>>16&511,r[n++]=(u>>>25|(f&3)<<7)&511,r[n++]=f>>>2&511,r[n++]=f>>>11&511,r[n++]=f>>>20&511,r[n++]=(f>>>29|(c&63)<<3)&511,r[n++]=c>>>6&511,r[n++]=c>>>15&511,r[n++]=(c>>>24|(h&1)<<8)&511,r[n++]=h>>>1&511,r[n++]=h>>>10&511,r[n++]=h>>>19&511,r[n++]=(h>>>28|(d&31)<<4)&511,r[n++]=d>>>5&511,r[n++]=d>>>14&511,r[n]=d>>>23&511}function M4r(e,t,r,i){let n=i,a=e[t]>>>0,o=e[t+1]>>>0,s=e[t+2]>>>0,l=e[t+3]>>>0,u=e[t+4]>>>0,f=e[t+5]>>>0,c=e[t+6]>>>0,h=e[t+7]>>>0,d=e[t+8]>>>0,p=e[t+9]>>>0;r[n++]=a>>>0&1023,r[n++]=a>>>10&1023,r[n++]=a>>>20&1023,r[n++]=(a>>>30|(o&255)<<2)&1023,r[n++]=o>>>8&1023,r[n++]=o>>>18&1023,r[n++]=(o>>>28|(s&63)<<4)&1023,r[n++]=s>>>6&1023,r[n++]=s>>>16&1023,r[n++]=(s>>>26|(l&15)<<6)&1023,r[n++]=l>>>4&1023,r[n++]=l>>>14&1023,r[n++]=(l>>>24|(u&3)<<8)&1023,r[n++]=u>>>2&1023,r[n++]=u>>>12&1023,r[n++]=u>>>22&1023,r[n++]=f>>>0&1023,r[n++]=f>>>10&1023,r[n++]=f>>>20&1023,r[n++]=(f>>>30|(c&255)<<2)&1023,r[n++]=c>>>8&1023,r[n++]=c>>>18&1023,r[n++]=(c>>>28|(h&63)<<4)&1023,r[n++]=h>>>6&1023,r[n++]=h>>>16&1023,r[n++]=(h>>>26|(d&15)<<6)&1023,r[n++]=d>>>4&1023,r[n++]=d>>>14&1023,r[n++]=(d>>>24|(p&3)<<8)&1023,r[n++]=p>>>2&1023,r[n++]=p>>>12&1023,r[n]=p>>>22&1023}function S4r(e,t,r,i){let n=i,a=e[t]>>>0,o=e[t+1]>>>0,s=e[t+2]>>>0,l=e[t+3]>>>0,u=e[t+4]>>>0,f=e[t+5]>>>0,c=e[t+6]>>>0,h=e[t+7]>>>0,d=e[t+8]>>>0,p=e[t+9]>>>0,v=e[t+10]>>>0;r[n++]=a>>>0&2047,r[n++]=a>>>11&2047,r[n++]=(a>>>22|(o&1)<<10)&2047,r[n++]=o>>>1&2047,r[n++]=o>>>12&2047,r[n++]=(o>>>23|(s&3)<<9)&2047,r[n++]=s>>>2&2047,r[n++]=s>>>13&2047,r[n++]=(s>>>24|(l&7)<<8)&2047,r[n++]=l>>>3&2047,r[n++]=l>>>14&2047,r[n++]=(l>>>25|(u&15)<<7)&2047,r[n++]=u>>>4&2047,r[n++]=u>>>15&2047,r[n++]=(u>>>26|(f&31)<<6)&2047,r[n++]=f>>>5&2047,r[n++]=f>>>16&2047,r[n++]=(f>>>27|(c&63)<<5)&2047,r[n++]=c>>>6&2047,r[n++]=c>>>17&2047,r[n++]=(c>>>28|(h&127)<<4)&2047,r[n++]=h>>>7&2047,r[n++]=h>>>18&2047,r[n++]=(h>>>29|(d&255)<<3)&2047,r[n++]=d>>>8&2047,r[n++]=d>>>19&2047,r[n++]=(d>>>30|(p&511)<<2)&2047,r[n++]=p>>>9&2047,r[n++]=p>>>20&2047,r[n++]=(p>>>31|(v&1023)<<1)&2047,r[n++]=v>>>10&2047,r[n]=v>>>21&2047}function E4r(e,t,r,i){let n=i,a=e[t]>>>0,o=e[t+1]>>>0,s=e[t+2]>>>0,l=e[t+3]>>>0,u=e[t+4]>>>0,f=e[t+5]>>>0,c=e[t+6]>>>0,h=e[t+7]>>>0,d=e[t+8]>>>0,p=e[t+9]>>>0,v=e[t+10]>>>0,y=e[t+11]>>>0;r[n++]=a>>>0&4095,r[n++]=a>>>12&4095,r[n++]=(a>>>24|(o&15)<<8)&4095,r[n++]=o>>>4&4095,r[n++]=o>>>16&4095,r[n++]=(o>>>28|(s&255)<<4)&4095,r[n++]=s>>>8&4095,r[n++]=s>>>20&4095,r[n++]=l>>>0&4095,r[n++]=l>>>12&4095,r[n++]=(l>>>24|(u&15)<<8)&4095,r[n++]=u>>>4&4095,r[n++]=u>>>16&4095,r[n++]=(u>>>28|(f&255)<<4)&4095,r[n++]=f>>>8&4095,r[n++]=f>>>20&4095,r[n++]=c>>>0&4095,r[n++]=c>>>12&4095,r[n++]=(c>>>24|(h&15)<<8)&4095,r[n++]=h>>>4&4095,r[n++]=h>>>16&4095,r[n++]=(h>>>28|(d&255)<<4)&4095,r[n++]=d>>>8&4095,r[n++]=d>>>20&4095,r[n++]=p>>>0&4095,r[n++]=p>>>12&4095,r[n++]=(p>>>24|(v&15)<<8)&4095,r[n++]=v>>>4&4095,r[n++]=v>>>16&4095,r[n++]=(v>>>28|(y&255)<<4)&4095,r[n++]=y>>>8&4095,r[n]=y>>>20&4095}function k4r(e,t,r,i){let n=i,a=e[t]>>>0,o=e[t+1]>>>0,s=e[t+2]>>>0,l=e[t+3]>>>0,u=e[t+4]>>>0,f=e[t+5]>>>0,c=e[t+6]>>>0,h=e[t+7]>>>0,d=e[t+8]>>>0,p=e[t+9]>>>0,v=e[t+10]>>>0,y=e[t+11]>>>0,m=e[t+12]>>>0,w=e[t+13]>>>0,_=e[t+14]>>>0,b=e[t+15]>>>0;r[n++]=a>>>0&65535,r[n++]=a>>>16&65535,r[n++]=o>>>0&65535,r[n++]=o>>>16&65535,r[n++]=s>>>0&65535,r[n++]=s>>>16&65535,r[n++]=l>>>0&65535,r[n++]=l>>>16&65535,r[n++]=u>>>0&65535,r[n++]=u>>>16&65535,r[n++]=f>>>0&65535,r[n++]=f>>>16&65535,r[n++]=c>>>0&65535,r[n++]=c>>>16&65535,r[n++]=h>>>0&65535,r[n++]=h>>>16&65535,r[n++]=d>>>0&65535,r[n++]=d>>>16&65535,r[n++]=p>>>0&65535,r[n++]=p>>>16&65535,r[n++]=v>>>0&65535,r[n++]=v>>>16&65535,r[n++]=y>>>0&65535,r[n++]=y>>>16&65535,r[n++]=m>>>0&65535,r[n++]=m>>>16&65535,r[n++]=w>>>0&65535,r[n++]=w>>>16&65535,r[n++]=_>>>0&65535,r[n++]=_>>>16&65535,r[n++]=b>>>0&65535,r[n]=b>>>16&65535}function C4r(e,t,r,i){let n=i,a=t;for(let o=0;o<8;o++){let s=e[a++]>>>0;r[n++]=s>>>0&1,r[n++]=s>>>1&1,r[n++]=s>>>2&1,r[n++]=s>>>3&1,r[n++]=s>>>4&1,r[n++]=s>>>5&1,r[n++]=s>>>6&1,r[n++]=s>>>7&1,r[n++]=s>>>8&1,r[n++]=s>>>9&1,r[n++]=s>>>10&1,r[n++]=s>>>11&1,r[n++]=s>>>12&1,r[n++]=s>>>13&1,r[n++]=s>>>14&1,r[n++]=s>>>15&1,r[n++]=s>>>16&1,r[n++]=s>>>17&1,r[n++]=s>>>18&1,r[n++]=s>>>19&1,r[n++]=s>>>20&1,r[n++]=s>>>21&1,r[n++]=s>>>22&1,r[n++]=s>>>23&1,r[n++]=s>>>24&1,r[n++]=s>>>25&1,r[n++]=s>>>26&1,r[n++]=s>>>27&1,r[n++]=s>>>28&1,r[n++]=s>>>29&1,r[n++]=s>>>30&1,r[n++]=s>>>31&1}}function D4r(e,t,r,i){let n=i,a=t;for(let o=0;o<8;o++){let s=e[a++]>>>0,l=e[a++]>>>0;r[n++]=s>>>0&3,r[n++]=s>>>2&3,r[n++]=s>>>4&3,r[n++]=s>>>6&3,r[n++]=s>>>8&3,r[n++]=s>>>10&3,r[n++]=s>>>12&3,r[n++]=s>>>14&3,r[n++]=s>>>16&3,r[n++]=s>>>18&3,r[n++]=s>>>20&3,r[n++]=s>>>22&3,r[n++]=s>>>24&3,r[n++]=s>>>26&3,r[n++]=s>>>28&3,r[n++]=s>>>30&3,r[n++]=l>>>0&3,r[n++]=l>>>2&3,r[n++]=l>>>4&3,r[n++]=l>>>6&3,r[n++]=l>>>8&3,r[n++]=l>>>10&3,r[n++]=l>>>12&3,r[n++]=l>>>14&3,r[n++]=l>>>16&3,r[n++]=l>>>18&3,r[n++]=l>>>20&3,r[n++]=l>>>22&3,r[n++]=l>>>24&3,r[n++]=l>>>26&3,r[n++]=l>>>28&3,r[n++]=l>>>30&3}}function F4r(e,t,r,i){let n=i,a=t;for(let o=0;o<8;o++){let s=e[a++]>>>0,l=e[a++]>>>0,u=e[a++]>>>0;r[n++]=s>>>0&7,r[n++]=s>>>3&7,r[n++]=s>>>6&7,r[n++]=s>>>9&7,r[n++]=s>>>12&7,r[n++]=s>>>15&7,r[n++]=s>>>18&7,r[n++]=s>>>21&7,r[n++]=s>>>24&7,r[n++]=s>>>27&7,r[n++]=(s>>>30|(l&1)<<2)&7,r[n++]=l>>>1&7,r[n++]=l>>>4&7,r[n++]=l>>>7&7,r[n++]=l>>>10&7,r[n++]=l>>>13&7,r[n++]=l>>>16&7,r[n++]=l>>>19&7,r[n++]=l>>>22&7,r[n++]=l>>>25&7,r[n++]=l>>>28&7,r[n++]=(l>>>31|(u&3)<<1)&7,r[n++]=u>>>2&7,r[n++]=u>>>5&7,r[n++]=u>>>8&7,r[n++]=u>>>11&7,r[n++]=u>>>14&7,r[n++]=u>>>17&7,r[n++]=u>>>20&7,r[n++]=u>>>23&7,r[n++]=u>>>26&7,r[n++]=u>>>29&7}}function L4r(e,t,r,i){let n=i,a=t;for(let o=0;o<8;o++){let s=e[a++]>>>0,l=e[a++]>>>0,u=e[a++]>>>0,f=e[a++]>>>0;r[n++]=s>>>0&15,r[n++]=s>>>4&15,r[n++]=s>>>8&15,r[n++]=s>>>12&15,r[n++]=s>>>16&15,r[n++]=s>>>20&15,r[n++]=s>>>24&15,r[n++]=s>>>28&15,r[n++]=l>>>0&15,r[n++]=l>>>4&15,r[n++]=l>>>8&15,r[n++]=l>>>12&15,r[n++]=l>>>16&15,r[n++]=l>>>20&15,r[n++]=l>>>24&15,r[n++]=l>>>28&15,r[n++]=u>>>0&15,r[n++]=u>>>4&15,r[n++]=u>>>8&15,r[n++]=u>>>12&15,r[n++]=u>>>16&15,r[n++]=u>>>20&15,r[n++]=u>>>24&15,r[n++]=u>>>28&15,r[n++]=f>>>0&15,r[n++]=f>>>4&15,r[n++]=f>>>8&15,r[n++]=f>>>12&15,r[n++]=f>>>16&15,r[n++]=f>>>20&15,r[n++]=f>>>24&15,r[n++]=f>>>28&15}}function P4r(e,t,r,i){let n=i,a=t;for(let o=0;o<8;o++){let s=e[a++]>>>0,l=e[a++]>>>0,u=e[a++]>>>0,f=e[a++]>>>0,c=e[a++]>>>0;r[n++]=s>>>0&31,r[n++]=s>>>5&31,r[n++]=s>>>10&31,r[n++]=s>>>15&31,r[n++]=s>>>20&31,r[n++]=s>>>25&31,r[n++]=(s>>>30|(l&7)<<2)&31,r[n++]=l>>>3&31,r[n++]=l>>>8&31,r[n++]=l>>>13&31,r[n++]=l>>>18&31,r[n++]=l>>>23&31,r[n++]=(l>>>28|(u&1)<<4)&31,r[n++]=u>>>1&31,r[n++]=u>>>6&31,r[n++]=u>>>11&31,r[n++]=u>>>16&31,r[n++]=u>>>21&31,r[n++]=u>>>26&31,r[n++]=(u>>>31|(f&15)<<1)&31,r[n++]=f>>>4&31,r[n++]=f>>>9&31,r[n++]=f>>>14&31,r[n++]=f>>>19&31,r[n++]=f>>>24&31,r[n++]=(f>>>29|(c&3)<<3)&31,r[n++]=c>>>2&31,r[n++]=c>>>7&31,r[n++]=c>>>12&31,r[n++]=c>>>17&31,r[n++]=c>>>22&31,r[n++]=c>>>27&31}}function z4r(e,t,r,i){let n=i,a=t;for(let o=0;o<8;o++){let s=e[a++]>>>0,l=e[a++]>>>0,u=e[a++]>>>0,f=e[a++]>>>0,c=e[a++]>>>0,h=e[a++]>>>0;r[n++]=s>>>0&63,r[n++]=s>>>6&63,r[n++]=s>>>12&63,r[n++]=s>>>18&63,r[n++]=s>>>24&63,r[n++]=(s>>>30|(l&15)<<2)&63,r[n++]=l>>>4&63,r[n++]=l>>>10&63,r[n++]=l>>>16&63,r[n++]=l>>>22&63,r[n++]=(l>>>28|(u&3)<<4)&63,r[n++]=u>>>2&63,r[n++]=u>>>8&63,r[n++]=u>>>14&63,r[n++]=u>>>20&63,r[n++]=u>>>26&63,r[n++]=f>>>0&63,r[n++]=f>>>6&63,r[n++]=f>>>12&63,r[n++]=f>>>18&63,r[n++]=f>>>24&63,r[n++]=(f>>>30|(c&15)<<2)&63,r[n++]=c>>>4&63,r[n++]=c>>>10&63,r[n++]=c>>>16&63,r[n++]=c>>>22&63,r[n++]=(c>>>28|(h&3)<<4)&63,r[n++]=h>>>2&63,r[n++]=h>>>8&63,r[n++]=h>>>14&63,r[n++]=h>>>20&63,r[n++]=h>>>26&63}}function I4r(e,t,r,i){let n=i,a=t;for(let o=0;o<8;o++){let s=e[a++]>>>0,l=e[a++]>>>0,u=e[a++]>>>0,f=e[a++]>>>0,c=e[a++]>>>0,h=e[a++]>>>0,d=e[a++]>>>0;r[n++]=s>>>0&127,r[n++]=s>>>7&127,r[n++]=s>>>14&127,r[n++]=s>>>21&127,r[n++]=(s>>>28|(l&7)<<4)&127,r[n++]=l>>>3&127,r[n++]=l>>>10&127,r[n++]=l>>>17&127,r[n++]=l>>>24&127,r[n++]=(l>>>31|(u&63)<<1)&127,r[n++]=u>>>6&127,r[n++]=u>>>13&127,r[n++]=u>>>20&127,r[n++]=(u>>>27|(f&3)<<5)&127,r[n++]=f>>>2&127,r[n++]=f>>>9&127,r[n++]=f>>>16&127,r[n++]=f>>>23&127,r[n++]=(f>>>30|(c&31)<<2)&127,r[n++]=c>>>5&127,r[n++]=c>>>12&127,r[n++]=c>>>19&127,r[n++]=(c>>>26|(h&1)<<6)&127,r[n++]=h>>>1&127,r[n++]=h>>>8&127,r[n++]=h>>>15&127,r[n++]=h>>>22&127,r[n++]=(h>>>29|(d&15)<<3)&127,r[n++]=d>>>4&127,r[n++]=d>>>11&127,r[n++]=d>>>18&127,r[n++]=d>>>25&127}}function R4r(e,t,r,i){let n=i,a=t;for(let o=0;o<8;o++){let s=e[a++]>>>0,l=e[a++]>>>0,u=e[a++]>>>0,f=e[a++]>>>0,c=e[a++]>>>0,h=e[a++]>>>0,d=e[a++]>>>0,p=e[a++]>>>0;r[n++]=s>>>0&255,r[n++]=s>>>8&255,r[n++]=s>>>16&255,r[n++]=s>>>24&255,r[n++]=l>>>0&255,r[n++]=l>>>8&255,r[n++]=l>>>16&255,r[n++]=l>>>24&255,r[n++]=u>>>0&255,r[n++]=u>>>8&255,r[n++]=u>>>16&255,r[n++]=u>>>24&255,r[n++]=f>>>0&255,r[n++]=f>>>8&255,r[n++]=f>>>16&255,r[n++]=f>>>24&255,r[n++]=c>>>0&255,r[n++]=c>>>8&255,r[n++]=c>>>16&255,r[n++]=c>>>24&255,r[n++]=h>>>0&255,r[n++]=h>>>8&255,r[n++]=h>>>16&255,r[n++]=h>>>24&255,r[n++]=d>>>0&255,r[n++]=d>>>8&255,r[n++]=d>>>16&255,r[n++]=d>>>24&255,r[n++]=p>>>0&255,r[n++]=p>>>8&255,r[n++]=p>>>16&255,r[n++]=p>>>24&255}}function B4r(e,t,r,i){let n=i,a=t;for(let o=0;o<128;o++){let s=e[a++]>>>0;r[n++]=s&65535,r[n++]=s>>>16&65535}}function q4r(e,t,r,i,n){let a=mne[n]>>>0,o=t,s=0,l=e[o]>>>0,u=i;for(let f=0;f<8;f++){for(let c=0;c<32;c++)if(s+n<=32){let h=l>>>s&a;r[u+c]=h|0,s+=n,s===32&&(s=0,o++,c!==31&&(l=e[o]>>>0))}else{let h=32-s,d=l>>>s;o++,l=e[o]>>>0;let p=n-h,v=-1>>>32-p>>>0,y=(d|(l&v)<>>0)}}function Jat(){let e=new Uint8Array(O4r);return{dataToBePacked:Array(33),dataPointers:new Int32Array(33),byteContainer:e,byteContainerI32:new Int32Array(e.buffer,e.byteOffset,e.byteLength>>>2),exceptionSizes:new Int32Array(33)}}function N4r(e=16){if(e<0)throw RangeError(`initialEncodedWordCapacity must be >= 0, got ${e}`);let t=Math.max(16,e|0);return{encodedWords:new Uint32Array(t),decoderWorkspace:Jat()}}function V4r(e,t){if(t<=e.encodedWords.length)return e.encodedWords;let r=new Uint32Array(Math.max(16,t*2));return e.encodedWords=r,r}function U4r(e,t,r,i){i.byteContainer.length>>2;if(n.byteOffset&3)for(let s=0;s>>8&255,n[u+2|0]=l>>>16&255,n[u+3|0]=l>>>24&255}else{let s=i.byteContainerI32;(!s||s.buffer!==n.buffer||s.byteOffset!==n.byteOffset||s.length>>2)),s.set(e.subarray(t,t+a))}let o=r&3;if(o>0){let s=e[t+a|0]|0,l=a<<2;for(let u=0;u>>(u<<3)&255}return n}function G4r(e,t,r){let i=e[t++]|0,n=r.dataToBePacked;for(let a=2;a<=32;a=a+1|0){if(!(i>>>a-1&1))continue;if(t>=e.length)throw Error(`FastPFOR decode: truncated exception stream header (bitWidth=${a}, streamWordIndex=${t}, needWords=1, availableWords=${e.length-t}, encodedWords=${e.length})`);let o=e[t++]>>>0,s=v4r(o),l=o*a+31>>>5;if(t+l>e.length)throw Error(`FastPFOR decode: truncated exception stream (bitWidth=${a}, size=${o}, streamWordIndex=${t}, needWords=${l}, availableWords=${e.length-t}, encodedWords=${e.length})`);let u=n[a];(!u||u.length>>5)|0,r.exceptionSizes[a]=o}return t}function H4r(e,t,r,i,n){switch(n){case 1:C4r(e,t,r,i);break;case 2:D4r(e,t,r,i);break;case 3:F4r(e,t,r,i);break;case 4:L4r(e,t,r,i);break;case 5:P4r(e,t,r,i);break;case 6:z4r(e,t,r,i);break;case 7:I4r(e,t,r,i);break;case 8:R4r(e,t,r,i);break;case 16:B4r(e,t,r,i);break;default:q4r(e,t,r,i,n)}return t+(n<<3)|0}function j4r(e,t,r,i){if(r+2>t)throw Error(`FastPFOR decode: byteContainer underflow at block=${i} (need 2 bytes for [bitWidth, exceptionCount], bytePos=${r}, byteSize=${t})`);let n=e[r++],a=e[r++];if(n>32)throw Error(`FastPFOR decode: invalid bitWidth=${n} at block=${i} (expected 0..32). This likely indicates corrupted or truncated input.`);return{bitWidth:n,exceptionCount:a,bytePosIn:r}}function W4r(e,t,r,i,n,a){if(r+1>t)throw Error(`FastPFOR decode: exception header underflow at block=${a} (need 1 byte for maxBits, bytePos=${r}, byteSize=${t})`);let o=e[r++];if(o32)throw Error(`FastPFOR decode: invalid maxBits=${o} at block=${a} (bitWidth=${i}, expected ${i}..32)`);let s=o-i|0;if(s<1||s>32)throw Error(`FastPFOR decode: invalid exceptionBitWidth=${s} at block=${a} (bitWidth=${i}, maxBits=${o})`);if(r+n>t)throw Error(`FastPFOR decode: exception positions underflow at block=${a} (need=${n}, have=${t-r})`);return{maxBits:o,exceptionBitWidth:s,bytePosIn:r}}function $4r(e,t,r,i,n,a,o,s,l){let{maxBits:u,exceptionBitWidth:f,bytePosIn:c}=W4r(n,a,o,r,i,l);if(o=c,f===1){let y=1<v)throw Error(`FastPFOR decode: exception stream overflow for exceptionBitWidth=${f} (ptr=${p}, need ${i}, size=${v}) at block ${l}`);for(let y=0;y0&&(c=$4r(n,y,p,v,s,l,c,u,h))}if(f!==i)throw Error(`FastPFOR decode: packed region mismatch (pageStart=${t}, packedStart=${r}, consumedPackedEnd=${f}, expectedPackedEnd=${i}, packedWords=${i-r}, encoded.length=${e.length})`)}function X4r(e,t,r,i,n,a){let o=r|0,s=e[o]|0;if(s<=0||o+s>e.length-1)throw Error(`FastPFOR decode: invalid whereMeta=${s} at pageStart=${o} (expected > 0 and pageStart+whereMeta < encoded.length=${e.length})`);let l=o+1|0,u=o+s|0,f=e[u]>>>0,c=f+3>>>2,h=u+1,d=h+c;if(d>=e.length)throw Error(`FastPFOR decode: invalid byteSize=${f} (metaInts=${c}, pageStart=${o}, packedEnd=${u}, byteContainerStart=${h}) causes bitmapPos=${d} out of bounds (encoded.length=${e.length})`);let p=U4r(e,h,f,a),v=f,y=G4r(e,d,a);return a.dataPointers.fill(0),Y4r(e,o,l,u,t,i|0,n/256|0,p,v,a),y}function Z4r(e,t,r,i,n,a){let o=i+zae(n,256),s=i,l=r;for(;s!==o;){let u=Math.min(yne,o-s);l=X4r(e,t,l,s,u,a),s=s+u|0}return l}function K4r(e,t,r,i,n,a){if(a===0)return t;let o=0,s=t,l=t+r,u=n,f=n,c=n+a,h=0,d=0;for(;s>>o&255;if(o+=8,s+=o>>>5,o&=31,h|=(p&127)<28)throw Error(`FastPFOR VByte: unterminated value (expected MSB=1 terminator within 5 bytes; shift=${d}, partial=${h}, decoded=${f-u}/${a}, inPos=${s}, inEnd=${l})`)}if(f!==c)throw Error(`FastPFOR VByte: truncated stream (decoded=${f-u}, expected=${a}, consumedWords=${s-t}/${r}, vbyteStart=${t}, vbyteEnd=${l})`);return s}function J4r(e,t,r){let i=0,n=0,a=new Uint32Array(t),o=r!=null?r:Jat();if(e.length>0){let u=e[i]|0;if(i=i+1|0,u&255)throw Error(`FastPFOR decode: invalid alignedLength=${u} (expected multiple of 256)`);if(n+u>a.length)throw Error(`FastPFOR decode: output buffer too small (outPos=${n}, alignedLength=${u}, out.length=${a.length})`);i=Z4r(e,a,i,n,u,o),n=n+u|0}let s=e.length-i|0,l=t-n|0;return K4r(e,i,s,a,n,l),a}function Q4r(e,t,r,i,n){switch(n){case 2:y4r(e,t,r,i);return;case 3:g4r(e,t,r,i);return;case 4:x4r(e,t,r,i);return;case 5:b4r(e,t,r,i);return;case 6:_4r(e,t,r,i);return;case 7:w4r(e,t,r,i);return;case 8:A4r(e,t,r,i);return;case 9:T4r(e,t,r,i);return;case 10:M4r(e,t,r,i);return;case 11:S4r(e,t,r,i);return;case 12:E4r(e,t,r,i);return;case 16:k4r(e,t,r,i);return;case 32:for(let u=0;u<32;u=u+1|0)r[i+u|0]=e[t+u|0]|0;return}let a=mne[n]>>>0,o=t,s=0,l=e[o]>>>0;for(let u=0;u<32;u++)if(s+n<=32){let f=l>>>s&a;r[i+u]=f|0,s+=n,s===32&&(s=0,o++,u!==31&&(l=e[o]>>>0))}else{let f=32-s,c=l>>>s;o++,l=e[o]>>>0;let h=mne[n-f]>>>0,d=(c|(l&h)<e.length)throw RangeError(`decodeBigEndianInt32sInto: out of bounds (offset=${t}, byteLength=${r}, bytes.length=${e.length})`);let n=Math.floor(r/4),a=r%4!=0,o=a?n+1:n;if(i.length0){let s=e.byteOffset+t;if(s&3)for(let l=0;l=64)throw Error("Varint too long")}return t.set(n),r}function r5r(e,t,r){let i=new Float64Array(r);for(let n=0;n>4,n<128||(n=t[r.get()],r.increment(),i|=(n&127)<<3,n<128)||(n=t[r.get()],r.increment(),i|=(n&127)<<10,n<128)||(n=t[r.get()],r.increment(),i|=(n&127)<<17,n<128)||(n=t[r.get()],r.increment(),i|=(n&127)<<24,n<128)||(n=t[r.get()],r.increment(),i|=(n&1)<<31,n<128))return i*4294967296+(e>>>0);throw Error("Expected varint not more than 10 bytes")}function a5r(e,t,r,i){return o5r(e,t,r,i,N4r(r>>>2))}function o5r(e,t,r,i,n){let a=i.get();if(r&3)throw Error(`FastPFOR: invalid encodedByteLength=${r} at offset=${a} (encodedBytes.length=${e.length}; expected a multiple of 4 bytes for an int32 big-endian word stream)`);let o=r>>>2,s=V4r(n,o);e5r(e,a,r,s);let l=J4r(s.subarray(0,o),t,n.decoderWorkspace);return i.add(r),l}function yu(e){return e>>>1^-(e&1)}function z0(e){return e>>BigInt(1)^-(e&BigInt(1))}function sx(e){return e%2==1?(e+1)/-2:e/2}function s5r(e){let t=new Int32Array(e.length);for(let r=0;r=4)for(;i=4)for(;i=4)for(;r=4)for(let i=e[0];r=4)for(;i=4)for(;l>>0;for(let r=1;r>>0;return t}function Qtt(e){let t=new BigUint64Array(e.length);t[0]=BigInt.asUintN(64,z0(e[0]));for(let r=1;r>>0,t[1]=yu(e[1])>>>0;for(let r=2;r>>0,t[r+1]=t[r-1]+yu(e[r+1])>>>0;return t}function w5r(e,t,r,i){let n=eot(e,t,r,i);return new Uint32Array(n)}function A5r(e){return e[1]}function T5r(e){return yu(e[1])}function M5r(e){if(e.length===2){let t=yu(e[1]);return[t,t]}return[yu(e[2]),yu(e[3])]}function S5r(e){return e[1]}function E5r(e){return z0(e[1])}function k5r(e){if(e.length===2){let t=z0(e[1]);return[t,t]}return[z0(e[2]),z0(e[3])]}function rc(e,t){let r=R5r(e,t);return r.logicalLevelTechnique1===Xl.MORTON?z5r(r,e,t):(Xl.RLE===r.logicalLevelTechnique1||Xl.RLE===r.logicalLevelTechnique2)&&_p.NONE!==r.physicalLevelTechnique?I5r(r,e,t):r}function z5r(e,t,r){let i=I0(t,r,2);return{physicalStreamType:e.physicalStreamType,logicalStreamType:e.logicalStreamType,logicalLevelTechnique1:e.logicalLevelTechnique1,logicalLevelTechnique2:e.logicalLevelTechnique2,physicalLevelTechnique:e.physicalLevelTechnique,numValues:e.numValues,byteLength:e.byteLength,decompressedCount:e.decompressedCount,numBits:i[0],coordinateShift:i[1]}}function I5r(e,t,r){let i=I0(t,r,2);return{physicalStreamType:e.physicalStreamType,logicalStreamType:e.logicalStreamType,logicalLevelTechnique1:e.logicalLevelTechnique1,logicalLevelTechnique2:e.logicalLevelTechnique2,physicalLevelTechnique:e.physicalLevelTechnique,numValues:e.numValues,byteLength:e.byteLength,decompressedCount:i[1],runs:i[0],numRleValues:i[1]}}function R5r(e,t){let r=e[t.get()],i=C5r[r>>4],n={};switch(i){case th.DATA:n={dictionaryType:F5r[r&15]};break;case th.OFFSET:n={offsetType:L5r[r&15]};break;case th.LENGTH:n={lengthType:P5r[r&15]}}t.increment();let a=e[t.get()],o=ert[a>>5],s=ert[a>>2&7],l=D5r[a&3];t.increment();let u=I0(e,t,2),f=u[0],c=u[1];return{physicalStreamType:i,logicalStreamType:n,logicalLevelTechnique1:o,logicalLevelTechnique2:s,physicalLevelTechnique:l,numValues:f,byteLength:c,decompressedCount:f}}function b3(e,t,r){if(!t)return e;let i=t.size(),n=e.constructor,a=new n(i),o=0;for(let s=0;s=o);){let s=e[i.increment()];if(s<=127){let l=s+3,u=e[i.increment()],f=Math.min(a+l,t);n.fill(u,a,f),a=f}else{let l=256-s;for(let u=0;u=12?V5r.decode(e.subarray(t,r)):U5r(e,t,r)}function U5r(e,t,r){let i="",n=t;for(;n239?4:a>223?3:a>191?2:1;if(n+s>r)break;let l,u,f;s===1?a<128&&(o=a):s===2?(l=e[n+1],(l&192)==128&&(o=(a&31)<<6|l&63,o<=127&&(o=null))):s===3?(l=e[n+1],u=e[n+2],(l&192)==128&&(u&192)==128&&(o=(a&15)<<12|(l&63)<<6|u&63,(o<=2047||o>=55296&&o<=57343)&&(o=null))):s===4&&(l=e[n+1],u=e[n+2],f=e[n+3],(l&192)==128&&(u&192)==128&&(f&192)==128&&(o=(a&15)<<18|(l&63)<<12|(u&63)<<6|f&63,(o<=65535||o>=1114112)&&(o=null))),o===null?(o=65533,s=1):o>65535&&(o-=65536,i+=String.fromCharCode(o>>>10&1023|55296),o=56320|o&1023),i+=String.fromCharCode(o),n+=s}return i}function Z7(e,t,r,i,n){return $5r(iT(e,t,r),r,i,n)}function P0(e,t,r,i,n){return Y5r(iT(e,t,r),r,i,n)}function lx(e,t,r){return Z5r(iT(e,t,r),r)}function iT(e,t,r){let i=r.physicalLevelTechnique;switch(i){case _p.FAST_PFOR:return a5r(e,r.numValues,r.byteLength,t);case _p.VARINT:return I0(e,t,r.numValues);case _p.NONE:return O5r(e,t,r.numValues);default:throw Error(`Specified physicalLevelTechnique ${i} is not supported (yet).`)}}function qC(e,t,r){let i=r.physicalLevelTechnique;switch(i){case _p.VARINT:return Iae(e,t,r.numValues);case _p.NONE:return N5r(e,t,r.numValues);default:throw Error(`Specified physicalLevelTechnique ${i} is not supported (yet).`)}}function G5r(e,t,r){let i=iT(e,t,r);return i.length===1?yu(i[0]):T5r(i)}function qae(e,t,r){let i=iT(e,t,r);return i.length===1?r.logicalLevelTechnique1===Xl.DELTA?yu(i[0]):i[0]:A5r(i)}function not(e,t,r){return M5r(iT(e,t,r))}function aot(e,t,r){return k5r(Iae(e,t,r.numValues))}function oot(e,t,r,i){return lot(qC(e,t,r),r,i)}function Oae(e,t,r,i){return uot(qC(e,t,r),r,i)}function H5r(e,t,r,i){let n=j5r(e,t,r,!1);return i?b3(n,i,0):n}function j5r(e,t,r,i){if(r.physicalLevelTechnique===_p.VARINT)return X5r(r5r(e,t,r.numValues),r,i);let n=qC(e,t,r),a=i?lot(n,r):uot(n,r);return Float64Array.from(a,Number)}function W5r(e,t,r){let i=qC(e,t,r);return i.length===1?z0(i[0]):E5r(i)}function sot(e,t,r){let i=qC(e,t,r);return i.length===1?r.logicalLevelTechnique1===Xl.DELTA?z0(i[0]):i[0]:S5r(i)}function $5r(e,t,r,i){let n;switch(t.logicalLevelTechnique1){case Xl.DELTA:if(t.logicalLevelTechnique2===Xl.RLE){let a=t;if(!i)return x5r(e,a.runs,a.numRleValues);e=gne(e,a.runs,a.numRleValues),n=Ztt(e)}else n=Ztt(e);break;case Xl.RLE:n=c5r(e,t.runs,t.numRleValues);break;case Xl.MORTON:Rae(e),n=new Int32Array(e);break;case Xl.COMPONENTWISE_DELTA:if(r&&!i)return eot(e,r.scale,r.min,r.max);n=v5r(e);break;case Xl.NONE:n=s5r(e);break;default:throw Error(`The specified Logical level technique is not supported: ${t.logicalLevelTechnique1}`)}return i?b3(n,i,0):n}function Y5r(e,t,r,i){let n;switch(t.logicalLevelTechnique1){case Xl.DELTA:if(t.logicalLevelTechnique2===Xl.RLE){let a=t;n=Jtt(gne(e,a.runs,a.numRleValues))}else n=Jtt(e);break;case Xl.RLE:n=gne(e,t.runs,t.numRleValues);break;case Xl.MORTON:Rae(e),n=e;break;case Xl.COMPONENTWISE_DELTA:n=r&&!i?w5r(e,r.scale,r.min,r.max):_5r(e);break;case Xl.NONE:n=e;break;default:throw Error(`The specified Logical level technique is not supported: ${t.logicalLevelTechnique1}`)}return i?b3(n,i,0):n}function lot(e,t,r){let i;switch(t.logicalLevelTechnique1){case Xl.DELTA:if(t.logicalLevelTechnique2===Xl.RLE){let n=t;if(!r)return b5r(e,n.runs,n.numRleValues);e=xne(e,n.runs,n.numRleValues),i=Ktt(e)}else i=Ktt(e);break;case Xl.RLE:i=h5r(e,t.runs,t.numRleValues);break;case Xl.NONE:i=l5r(e);break;default:throw Error(`The specified Logical level technique is not supported: ${t.logicalLevelTechnique1}`)}return r?b3(i,r,BigInt(0)):i}function uot(e,t,r){let i;switch(t.logicalLevelTechnique1){case Xl.DELTA:if(t.logicalLevelTechnique2===Xl.RLE){let n=t;i=Qtt(xne(e,n.runs,n.numRleValues))}else i=Qtt(e);break;case Xl.RLE:i=xne(e,t.runs,t.numRleValues);break;case Xl.NONE:i=e;break;default:throw Error(`The specified Logical level technique is not supported: ${t.logicalLevelTechnique1}`)}return r?b3(i,r,BigInt(0)):i}function X5r(e,t,r){switch(t.logicalLevelTechnique1){case Xl.DELTA:if(t.logicalLevelTechnique2===Xl.RLE){let i=t;e=Qat(e,i.runs,i.numRleValues)}return f5r(e),e;case Xl.RLE:return J5r(e,t,r);case Xl.NONE:return r&&u5r(e),e;default:throw Error(`The specified Logical level technique is not supported: ${t.logicalLevelTechnique1}`)}}function Z5r(e,t){if(t.logicalLevelTechnique1===Xl.DELTA&&t.logicalLevelTechnique2===Xl.NONE)return m5r(e);if(t.logicalLevelTechnique1===Xl.RLE&&t.logicalLevelTechnique2===Xl.NONE){let r=t;return g5r(e,r.runs,r.numRleValues)}if(t.logicalLevelTechnique1===Xl.NONE&&t.logicalLevelTechnique2===Xl.NONE){p5r(e);let r=new Uint32Array(t.numValues+1);return r[0]=0,r.set(e,1),r}if(t.logicalLevelTechnique1===Xl.DELTA&&t.logicalLevelTechnique2===Xl.RLE){let r=t,i=y5r(e,r.runs,r.numRleValues);return Rae(i),new Uint32Array(i)}throw Error("Only delta encoding is supported for transforming length to offset streams yet.")}function Hq(e,t,r,i,n="int32"){let a=e.logicalLevelTechnique1;if(a===Xl.RLE)return e.runs===1?Wf.CONST:Wf.FLAT;if(a!==Xl.DELTA||e.logicalLevelTechnique2!==Xl.RLE)return e.numValues===1?Wf.CONST:Wf.FLAT;let o=t instanceof D1?t.size():t,s=e;if(s.numRleValues!==o)return Wf.FLAT;if(s.runs===1)return Wf.SEQUENCE;if(s.runs!==2)return e.numValues===1?Wf.CONST:Wf.FLAT;let l=i.get();if(e.physicalLevelTechnique===_p.VARINT)return K5r(r,i,n)?Wf.SEQUENCE:e.numValues===1?Wf.CONST:Wf.FLAT;let u=i.get(),f=new Int32Array(r.buffer,r.byteOffset+u,4);return i.set(l),f[2]===2&&f[3]===2?Wf.SEQUENCE:e.numValues===1?Wf.CONST:Wf.FLAT}function K5r(e,t,r){let i=new Zat(t.get());if(r==="int64"){let a=Iae(e,i,4);return a[2]===BigInt(2)&&a[3]===BigInt(2)}let n=I0(e,i,4);return n[2]===2&&n[3]===2}function J5r(e,t,r){return r?d5r(e,t.runs,t.numRleValues):Qat(e,t.runs,t.numRleValues)}function Nae(e,t,r){return{x:trt(e,t)-r,y:trt(e>>1,t)-r}}function trt(e,t){let r=0;for(let i=0;i>i;return r}function Q5r(e){let t=Array(e.numGeometries),r=1,i=1,n=1,a=0,o=0,s=0,l=e.mortonSettings,u=e.topologyVector,f=u.geometryOffsets,c=u.partOffsets,h=u.ringOffsets,d=e.vertexOffsets,p=!d||d.length===0,v=e.containsPolygonGeometry(),y=e.vertexBuffer;for(let m=0;m[M]),r+=_,i+=_}break;case u0.LINESTRING:{let _;v?(_=h[i]-h[i-1],i++):_=c[r]-c[r-1],r++;let b;p?(b=w5(y,o,_,!1),o+=_*2):(b=Q_(e.vertexBufferType,y,d,s,_,!1,l),s+=_),t[a++]=[b],f&&n++}break;case u0.POLYGON:{let _=c[r]-c[r-1];r++;let b=Array(_-1),M,x=h[i]-h[i-1];if(i++,p){M=w5(y,o,x,!0),o+=x*2;for(let T=0;Tr?t[a++]:1);return i}function art(e,t,r,i){let n=new Uint32Array(t[t.length-1]+1),a=0;n[0]=a;let o=1,s=0;for(let l=0;l0;)n[a++]=e[u++]}}return n}function xot(e,t,r,i,n){var d,p;let a,o,s,l,u,f=n,c,h;for(let v=0;v1&&!d.nullable||p===1&&d.nullable)throw Error(`The number of streams for the child field ${d.name} does not match its nullability. nullibilty: ${d.nullable}, numStreams: ${p}`);let y;if(d.nullable){let w=rc(e,t);y=new D1(rT(e,w.numValues,w.byteLength,t),w.numValues)}let m=P0(e,t,rc(e,t),void 0,y);if(s){if(!o)throw Error(`Incomplete shared FSST dictionary for column "${v}"`);f[h++]=new got(v,m,n,a,o,s,y,c)}else f[h++]=new R5(v,m,n,a,y)}return f}function gTr(e,t,r,i){let n=xTr(r);if(i===0)return n.map(f=>new srt(f,[]));let a=bTr(e,t,i),o=(a.presentStream?a.presentCount:a.lengthStream.length)/n.length,s=[],l=0,u=0;for(let f=0;f{var i;return e.name+((i=r.name)!=null?i:"")})}function bTr(e,t,r){let i=e[t.get()];t.add(1);let n=P0(e,t,rc(e,t)),a=r-1,o=[];i&qm.STRING&&(a-=_Tr(e,t,o)),a-=wTr(e,t,i,o),a-=ATr(e,t,i,o);let s,l=0;if(i&qm.PRESENCE){let f=TTr(e,t);s=f.value,l=f.count,a--}let u=new Uint32Array;if(a>0&&(u=P0(e,t,rc(e,t)),a--),a!==0)throw Error(`Unexpected number of remaining streams while decoding map column: ${a}`);return{lengthStream:n,dictionary:o,presentStream:s,presentCount:l,flattenedValues:u}}function _Tr(e,t,r){let i=e[t.get()];t.add(1);let n=xot("",e,t,i);if(n)for(let a=0;aa.length)throw Error("Merged map counts underflow while decoding child streams");let d=Array(r),p=i,v=n;for(let w=0;wo.length)throw Error("Map value stream underflow while decoding feature payload");let b=STr(o,v,_,l);d[w]=b.value,v=b.nextIndex}let y=0;for(let w=i;w=r)throw Error("Unexpected end of map value stream");let n=e[t];if(n===fx.FALSE)return{value:!1,nextIndex:t+1};if(n===fx.TRUE)return{value:!0,nextIndex:t+1};if(n===fx.START_MAP){let a=lrt(e,t,r);return{value:bot(e,t+2,a,i).value,nextIndex:a}}if(n===fx.START_LIST){let a=lrt(e,t,r),o=[],s=t+2;for(;s=r)throw Error("Missing length for nested map/list payload");let i=e[t+1];if(i<2)throw Error(`Invalid nested payload length: ${i}`);let n=t+i;if(n>r)throw Error("Nested payload exceeds containing payload bounds");return n}function _ot(e,t){let r=e-fx.COUNT;if(r<0||r>=t.length)throw Error(`Scalar dictionary index out of range: ${e}`);return t[r]}function D5(e,t){for(let r of t)e.push(r)}function ETr(e,t,r,i,n,a){var o;return r.type==="scalarType"?a&&!a.has(r.name)?(tot(i,e,t),null):kTr(i,e,t,n,r.scalarType,r):((o=r.complexType)==null?void 0:o.physicalType)===hx.MAP?gTr(e,t,r,i):i===0?null:yTr(e,t,r,a)}function kTr(e,t,r,i,n,a){var l;let o;if(e===0)return null;if(a.nullable){let u=rc(t,r),f=u.numValues,c=r.get(),h=rT(t,f,u.byteLength,r);r.set(c+u.byteLength),o=new D1(h,u.numValues)}let s=o!=null?o:i;switch(n.physicalType){case Bu.UINT_32:case Bu.INT_32:return PTr(t,r,a,n,s);case Bu.STRING:{let u=a.nullable?e-1:e;return(l=xot(a.name,t,r,u,o))!=null?l:null}case Bu.BOOLEAN:return CTr(t,r,a,i,s);case Bu.UINT_64:case Bu.INT_64:return LTr(t,r,a,s,n);case Bu.FLOAT:return DTr(t,r,a,s);case Bu.DOUBLE:return FTr(t,r,a,s);default:throw Error(`The specified data type for the field is currently not supported: ${n}`)}}function CTr(e,t,r,i,n){let a=rc(e,t),o=a.numValues,s=t.get(),l=OC(n)?n:void 0,u=rT(e,o,a.byteLength,t,l);t.set(s+a.byteLength);let f=new D1(u,o);return new fTr(r.name,f,n)}function DTr(e,t,r,i){let n=rc(e,t),a=OC(i)?i:void 0,o=rot(e,t,n.numValues,a);return new cTr(r.name,o,i)}function FTr(e,t,r,i){let n=rc(e,t),a=OC(i)?i:void 0,o=iot(e,t,n.numValues,a);return new Cae(r.name,o,i)}function LTr(e,t,r,i,n){let a=rc(e,t),o=Hq(a,i,e,t,"int64"),s=n.physicalType===Bu.INT_64;if(o===Wf.FLAT){let u=OC(i)?i:void 0,f=s?oot(e,t,a,u):Oae(e,t,a,u);return new fot(r.name,f,i)}if(o===Wf.SEQUENCE){let u=aot(e,t,a);return new cot(r.name,u[0],u[1],a.numRleValues,s)}let l=s?W5r(e,t,a):sot(e,t,a);return new yot(r.name,l,i,s)}function PTr(e,t,r,i,n){let a=rc(e,t),o=Hq(a,n,e,t),s=i.physicalType===Bu.INT_32;if(o===Wf.FLAT){let u=OC(n)?n:void 0,f=s?Z7(e,t,a,void 0,u):P0(e,t,a,void 0,u);return new kae(r.name,f,n)}if(o===Wf.SEQUENCE){let u=not(e,t,a);return new Dae(r.name,u[0],u[1],a.numRleValues,s)}let l=s?G5r(e,t,a):qae(e,t,a);return new Fae(r.name,l,n,s)}function OC(e){return e instanceof D1}function wot(e){switch(e){case Nh.ID:case Nh.ID|Nh.ID_NULLABLE:case Nh.ID|Nh.ID_LONG:case Nh.ID|Nh.ID_LONG|Nh.ID_NULLABLE:return{nullable:(e&Nh.ID_NULLABLE)!==0,columnScope:Ok.FEATURE,type:"scalarType",scalarType:{longID:(e&Nh.ID_LONG)!==0,type:"logicalType",logicalType:Xat.ID}};case Nh.GEOMETRY:return{nullable:!1,columnScope:Ok.FEATURE,type:"complexType",complexType:{type:"physicalType",physicalType:hx.GEOMETRY,children:[]}};case Nh.STRUCT:return{nullable:!1,columnScope:Ok.FEATURE,type:"complexType",complexType:{type:"physicalType",physicalType:hx.STRUCT,children:[]}};case Nh.MAP:return{nullable:!0,columnScope:Ok.FEATURE,type:"complexType",complexType:{type:"physicalType",physicalType:hx.MAP,children:[]}};default:return qTr(e)}}function zTr(e){return e>=Nh.SCALAR_BASE}function Aot(e){return e===Nh.STRUCT||e===Nh.MAP}function ITr(e){if(e.type==="scalarType"){let t=e.scalarType;if(t.type==="physicalType")switch(t.physicalType){case Bu.BOOLEAN:case Bu.INT_8:case Bu.UINT_8:case Bu.INT_32:case Bu.UINT_32:case Bu.INT_64:case Bu.UINT_64:case Bu.FLOAT:case Bu.DOUBLE:return!1;case Bu.STRING:return!0;default:return!1}if(t.type==="logicalType")return!1}else if(e.type==="complexType"){let t=e.complexType;if(t.type==="physicalType")switch(t.physicalType){case hx.GEOMETRY:case hx.STRUCT:case hx.MAP:return!0;default:return!1}}return console.warn("Unexpected column type in hasStreamCount",e),!1}function RTr(e){var t;return e.type==="scalarType"&&((t=e.scalarType)==null?void 0:t.type)==="logicalType"&&e.scalarType.logicalType===Xat.ID}function BTr(e){var t;return e.type==="complexType"&&((t=e.complexType)==null?void 0:t.type)==="physicalType"&&e.complexType.physicalType===hx.GEOMETRY}function qTr(e){let t;switch(e){case 10:case 11:t=Bu.BOOLEAN;break;case 12:case 13:t=Bu.INT_8;break;case 14:case 15:t=Bu.UINT_8;break;case 16:case 17:t=Bu.INT_32;break;case 18:case 19:t=Bu.UINT_32;break;case 20:case 21:t=Bu.INT_64;break;case 22:case 23:t=Bu.UINT_64;break;case 24:case 25:t=Bu.FLOAT;break;case 26:case 27:t=Bu.DOUBLE;break;case 28:case 29:t=Bu.STRING;break;default:return null}return{nullable:!!(e&1),columnScope:Ok.FEATURE,type:"scalarType",scalarType:{longID:!1,type:"physicalType",physicalType:t}}}function Gae(e,t){let r=I0(e,t,1)[0];if(r===0)return"";let i=t.get(),n=i+r,a=e.subarray(i,n);return t.add(r),OTr.decode(a)}function NTr(e){let t=e.name,r=e.nullable;return e.type==="scalarType"?{type:"scalarField",scalarField:e.scalarType,name:t,nullable:r}:{type:"complexField",complexField:e.complexType,name:t,nullable:r}}function Tot(e,t){let r=I0(e,t,1)[0]>>>0,i=r>=Nh.SCALAR_BASE?wot(r):null;if(!i)throw Error(`Unsupported field type code ${r}. Supported: 10-29(scalars), 30(STRUCT), 31(MAP)`);let n=$l(Gs({},i),{name:Gae(e,t)});if(n.type==="complexType"&&Aot(r)){let a=n.complexType,o=I0(e,t,1)[0]>>>0;a.children=Array(o);for(let s=0;s>>0,i=wot(r);if(!i)throw Error(`Unsupported column type code ${r}. Supported: ${urt}`);let n;if(zTr(r))n=Gae(e,t);else if(r>>0,s=a.complexType;s.children=Array(o);for(let l=0;l>>0,a=I0(e,t,1)[0]>>>0;i.columns=Array(a);for(let o=0;o>>0,o=i.get()+a;if(o>e.length)throw Error(`Block overruns tile: ${o} > ${e.length}`);let s=I0(e,i,1)[0]>>>0;if(s!==1&&s!==2){i.set(o);continue}let[l,u]=UTr(e,i),f=l.featureTables[0],c=null,h=null,d=[],p=0;for(let y of f.columns){let m=y.name;if(RTr(y)){let w=null;if(y.nullable){let b=rc(e,i),M=i.get(),x=rT(e,b.numValues,b.byteLength,i);i.set(M+b.byteLength),w=new D1(x,b.numValues)}let _=rc(e,i);p=w?w.size():_.decompressedCount,c=HTr(e,y,i,m,_,w!=null?w:p,r)}else if(BTr(y)){let w=I0(e,i,1)[0];if(p===0){let _=i.get();p=rc(e,i).decompressedCount,i.set(_)}t&&(t.scale=t.extent/u),h=sTr(e,w,i,p,t)}else{let w=ITr(y)?I0(e,i,1)[0]:1;if(w===0)continue;let _=ETr(e,i,y,w,p,void 0);if(_)if(Array.isArray(_))for(let b of _)d.push(b);else d.push(_)}}let v=new p4r(f.name,h,c,d,u);n.push(v),i.set(o)}return n}function HTr(e,t,r,i,n,a,o=!1){var f;let s=(f=t.scalarType)!=null&&f.longID?Bu.UINT_64:Bu.UINT_32,l=typeof a=="number"?void 0:a,u=Hq(n,a,e,r,s===Bu.UINT_64?"int64":"int32");if(s===Bu.UINT_32)switch(u){case Wf.FLAT:return new kae(i,P0(e,r,n,void 0,l),a);case Wf.SEQUENCE:{let c=not(e,r,n);return new Dae(i,c[0],c[1],n.numRleValues,!1)}case Wf.CONST:return new Fae(i,qae(e,r,n),a,!1)}switch(u){case Wf.FLAT:return o?new Cae(i,H5r(e,r,n,l),a):new fot(i,Oae(e,r,n,l),a);case Wf.SEQUENCE:{let c=aot(e,r,n);return new cot(i,c[0],c[1],n.numRleValues,!1)}case Wf.CONST:return new yot(i,sot(e,r,n),a,!1)}throw Error("Vector type not supported for id column.")}function XTr(e){return typeof e=="object"&&!!e&&"evaluate"in e}function frt(e,t,r,i,n){return uq(e,(a,o)=>{let s=t instanceof Eq?t.get(o):null;return XTr(s)?s.evaluate(r,i,void 0,n):s})}function ZTr(e,t){return t-e}var q2r,crt,O2r,N2r,V2r,hrt,bne,U2r,G2r,Tk,c7,Ch,Q7,F1,Um,hC,Mrt,Tne,Aet,Ert,Aa,lq,nxr,Met,jre,Rrt,Brt,L1,Nrt,Vrt,Eet,X5,jd,P7,B5,sxr,yC,gC,Ine,$rt,Wd,tl,ah,Yrt,hn,Xrt,Ao,xC,ss,Yl,hu,k1,hq,i3,Kl,fxr,dq,bC,pq,Yk,vq,_C,mq,cxr,Zrt,Krt,Jrt,fie,Qrt,hxr,dxr,yxr,xxr,l0,Ol,_xr,cie,Qy,Gm,Hm,Mv,hc,wxr,Nm,Vm,ag,qne,N5,Axr,oit,One,Sv,ic,lit,d7,Zy,Fet,k5,dit,vit,kxr,Cxr,Dxr,Fxr,Lxr,Pxr,_it,jxr,Wxr,$xr,Yxr,Xxr,Zxr,Tit,Kxr,Jxr,Qxr,Om,Une,Lit,Ret,Gne,Wne,wbr,$ne,F5,Im,Abr,Bit,v3,Xne,Zne,Qk,q7,jit,Obr,jet,Wet,i_r,$et,a_r,o_r,_d,tae,wie,Ky,N7,Xu,tC,Aie,MC,Yet,Xet,f_r,Tv,Eq,ms,al,rC,ynt,kq,Vh,Ket,rie,P1,Jet,c_r,h_r,Cq,d_r,p_r,SC,wc,iC,V7,Tie,Mie,Sie,nC,Eie,kie,Cie,Die,Fie,Lie,Pie,zie,Iie,U7,Rie,Bie,G7,qie,Oie,Nie,Vie,Uie,gnt,nae,xnt,bnt,_nt,wnt,Ant,Tnt,Mnt,Snt,Ent,knt,og,Cnt,Dnt,m_r,y_r,g_r,x_r,b_r,_5,ett,__r,w_r,A_r,ttt,Fnt,T_r,Lnt,z1,Gie,Pnt,Hie,M_r,nc,S_r,E_r,k_r,C_r,H7,znt,sg,rl,gs,Jl,nd,Q5,lg,aae,oae,D_r,Dv,Bk,e3,Xy,S1,ox,Rnt,Bnt,qnt,u3,$ie,att,ott,sae,ltt,W_r,utt,$_r,Y_r,Unt,X_r,Gnt,ftt,Z_r,K_r,Pq,qf,EC,$nt,J_r,ctt,Q_r,e3r,Ynt,t3r,htt,r3r,i3r,ph,Jy,n3r,Znt,a3r,Xie,o3r,aC,Zie,Jie,Qc,W7,Qie,ene,Av,Sk,J_,Ek,kk,Rm,o3,zq,P5,z5,S3r,nat,mtt,P3r,ytt,z3r,I3r,aat,R3r,ine,B3r,q3r,Ev,oat,kC,N3r,U3r,ad,Js,lat,Uu,_x,nie,hat,xtt,K3r,btt,J3r,Q3r,dat,ewr,nwr,awr,one,owr,sne,swr,lwr,pat,wtt,vat,Att,uwr,Ttt,fwr,Mtt,cwr,b7,mat,hwr,dwr,pwr,vwr,Ett,yat,Y7,wwr,Awr,Twr,Ctt,Mwr,xat,bat,Fk,Lk,C5,jwr,Wwr,xae,bae,Xwr,Zwr,Kwr,cne,sni,Btt,Sat,Oq,dAr,Cat,qtt,Vtt,I5,M7,NAr,E5,Vq,Aae,KAr,dne,pne,zC,Wtt,e4r,$tt,t4r,oie,Gat,Tae,r4r,Ytt,n4r,a4r,Hat,o4r,Wat,s4r,l4r,u4r,$at,IC,RC,p0,sie,BC,d4r,Eae,x3,Gq,kae,Cae,Yat,Dae,Fae,p4r,Ok,Bu,hx,Xat,Zat,Xl,_p,Lae,mne,Pae,yne,O4r,th,td,Bm,Eh,C5r,ert,D5r,F5r,L5r,P5r,Wf,D1,V5r,fot,cot,u0,rrt,vx,hot,dot,vot,mot,aTr,oTr,fTr,cTr,yot,Vae,ort,R5,got,srt,qm,fx,Nh,OTr,urt,uie,jTr,WTr,$Tr,YTr,Mot,Sot=ps(()=>{q2r=Object.create,crt=Object.defineProperty,O2r=Object.getOwnPropertyDescriptor,N2r=Object.getOwnPropertyNames,V2r=Object.getPrototypeOf,hrt=Object.prototype.hasOwnProperty,bne=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),U2r=(e,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(var n=N2r(t),a=0,o=n.length,s;at[l]).bind(null,s),enumerable:!(i=O2r(t,s))||i.enumerable});return e},G2r=(e,t,r)=>(r=e==null?{}:q2r(V2r(e)),U2r(t||!e||!e.__esModule||!hrt.call(e,"default")?crt(r,"default",{value:e,enumerable:!0}):r,e));Jr.prototype={clone(){return new Jr(this.x,this.y)},add(e){return this.clone()._add(e)},sub(e){return this.clone()._sub(e)},multByPoint(e){return this.clone()._multByPoint(e)},divByPoint(e){return this.clone()._divByPoint(e)},mult(e){return this.clone()._mult(e)},div(e){return this.clone()._div(e)},rotate(e){return this.clone()._rotate(e)},rotateAround(e,t){return this.clone()._rotateAround(e,t)},matMult(e){return this.clone()._matMult(e)},unit(){return this.clone()._unit()},perp(){return this.clone()._perp()},round(){return this.clone()._round()},mag(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals(e){return this.x===e.x&&this.y===e.y},dist(e){return Math.sqrt(this.distSqr(e))},distSqr(e){let t=e.x-this.x,r=e.y-this.y;return t*t+r*r},angle(){return Math.atan2(this.y,this.x)},angleTo(e){return Math.atan2(this.y-e.y,this.x-e.x)},angleWith(e){return this.angleWithSep(e.x,e.y)},angleWithSep(e,t){return Math.atan2(this.x*t-this.y*e,this.x*e+this.y*t)},_matMult(e){let t=e[0]*this.x+e[1]*this.y,r=e[2]*this.x+e[3]*this.y;return this.x=t,this.y=r,this},_add(e){return this.x+=e.x,this.y+=e.y,this},_sub(e){return this.x-=e.x,this.y-=e.y,this},_mult(e){return this.x*=e,this.y*=e,this},_div(e){return this.x/=e,this.y/=e,this},_multByPoint(e){return this.x*=e.x,this.y*=e.y,this},_divByPoint(e){return this.x/=e.x,this.y/=e.y,this},_unit(){return this._div(this.mag()),this},_perp(){let e=this.y;return this.y=this.x,this.x=-e,this},_rotate(e){let t=Math.cos(e),r=Math.sin(e),i=t*this.x-r*this.y,n=r*this.x+t*this.y;return this.x=i,this.y=n,this},_rotateAround(e,t){let r=Math.cos(e),i=Math.sin(e),n=t.x+r*(this.x-t.x)-i*(this.y-t.y),a=t.y+i*(this.x-t.x)+r*(this.y-t.y);return this.x=n,this.y=a,this},_round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},constructor:Jr},Jr.convert=function(e){if(e instanceof Jr)return e;if(Array.isArray(e))return new Jr(+e[0],+e[1]);if(e.x!==void 0&&e.y!==void 0)return new Jr(+e.x,+e.y);throw Error("Expected [x, y] or {x, y} point format")};Ch=typeof Float32Array<"u"?Float32Array:Array;Q7=$2r;F1=Y2r;Um=tq,hC=Cv;(function(){var e=grt();return function(t,r,i,n,a,o){var s,l;for(r||(r=3),i||(i=0),l=n?Math.min(n*r+i,t.length):t.length,s=i;s.999999?(i[0]=0,i[1]=0,i[2]=0,i[3]=1,i):(bd(e,n,a),i[0]=e[0],i[1]=e[1],i[2]=e[2],i[3]=1+o,Aet(i,i))}})(),(function(){var e=wet(),t=wet();return function(r,i,n,a,o,s){return Nk(e,i,o,s),Nk(t,n,a,s),Nk(r,e,t,2*s*(1-s)),r}})(),(function(){var e=wne();return function(t,r,i,n){return e[0]=i[0],e[3]=i[1],e[6]=i[2],e[1]=n[0],e[4]=n[1],e[7]=n[2],e[2]=-r[0],e[5]=-r[1],e[8]=-r[2],Aet(t,exr(t,e))}})();Ert=txr;(function(){var e=aq();return function(t,r,i,n,a,o){var s,l;for(r||(r=2),i||(i=0),l=n?Math.min(n*r+i,t.length):t.length,s=i;sLs(null,null,function*(){let r=new Blob([new Uint8Array(e)],{type:"image/png"});try{return createImageBitmap(r,t)}catch(i){throw Error(`Could not load image because of ${f0(i).message}. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported.`)}}),Brt=e=>new Promise((t,r)=>{let i=new Image;i.onload=()=>{t(i),URL.revokeObjectURL(i.src),i.onload=null,window.requestAnimationFrame(()=>i.src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=")},i.onerror=()=>r(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."));let n=new Blob([new Uint8Array(e)],{type:"image/png"});i.src=URL.createObjectURL(n)});L1=85.051129,Nrt={touchstart:!0,touchmove:!0,touchmoveWindow:!0,touchend:!0,touchcancel:!0},Vrt={dblclick:!0,click:!0,mouseover:!0,mouseout:!0,mousedown:!0,mousemove:!0,mousemoveWindow:!0,mouseup:!0,mouseupWindow:!0,contextmenu:!0,wheel:!0};Eet="AbortError",X5=class extends Error{constructor(e=Eet){super(e instanceof Error?e.message:e),this.name=Eet,e instanceof Error&&e.stack&&(this.stack=e.stack)}};jd={MAX_PARALLEL_IMAGE_REQUESTS:16,MAX_PARALLEL_IMAGE_REQUESTS_PER_FRAME:8,MAX_TILE_CACHE_ZOOM_LEVELS:5,REGISTERED_PROTOCOLS:{},WORKER_URL:""};P7="global-dispatcher",B5=class extends Error{constructor(e,t,r,i){super(`AJAXError: ${t} (${e}): ${r}`),this.status=e,this.statusText=t,this.url=r,this.body=i}};sxr=e=>{var t;return e.startsWith("file:")||((t=cq())==null?void 0:t.startsWith("file:"))&&!/^\w+:/.test(e)};yC=function(e,t){return Ls(this,null,function*(){var r,i;if(e.url.includes("://")&&!/^https?:|^file:/.test(e.url)){let n=zne(e.url);if(n){let a=yield n(e,t);return!a.data&&e.type==="arrayBuffer"?js(a,{data:new ArrayBuffer(0)}):a}if(s3(self)&&((r=self.worker)!=null&&r.actor))return self.worker.actor.sendAsync({type:"GR",data:e,targetMapId:P7},t)}if(!sxr(e.url)){if(fetch&&Request&&AbortController&&Object.hasOwn(Request.prototype,"signal"))return lxr(e,t);if(s3(self)&&((i=self.worker)!=null&&i.actor))return self.worker.actor.sendAsync({type:"GR",data:e,mustQueue:!0,targetMapId:P7},t)}return uxr(e,t)})},gC=(e,t)=>yC(js(e,{type:"json"}),t),Ine=(e,t)=>yC(js(e,{type:"arrayBuffer"}),t);$rt=e=>{let t=window.document.createElement("video");return t.muted=!0,new Promise(r=>{t.onloadstart=()=>{r(t)};for(let i of e){let n=window.document.createElement("source");Rne(i)||(t.crossOrigin="Anonymous"),n.src=i,t.appendChild(n)}})};Wd=class{constructor(e,t={}){js(this,t),this.type=e}},tl=class extends Wd{constructor(e,t={}){super("error",js({error:e},t))}},ah=class{on(e,t){return this._listeners||(this._listeners={}),ket(e,t,this._listeners),{unsubscribe:()=>{this.off(e,t)}}}off(e,t){return Wre(e,t,this._listeners),Wre(e,t,this._oneTimeListeners),this}once(e,t){return t?(this._oneTimeListeners||(this._oneTimeListeners={}),ket(e,t,this._oneTimeListeners),this):new Promise(r=>this.once(e,r))}fire(e,t){var n,a,o,s,l,u;let r=typeof e=="string"?new Wd(e,t||{}):e,i=r.type;if(this.listens(i)){r.target=this;let f=(o=(a=(n=this._listeners)==null?void 0:n[i])==null?void 0:a.slice())!=null?o:[];for(let d of f)d.call(this,r);let c=(u=(l=(s=this._oneTimeListeners)==null?void 0:s[i])==null?void 0:l.slice())!=null?u:[];for(let d of c)Wre(i,d,this._oneTimeListeners),d.call(this,r);let h=this._eventedParent;h&&(js(r,typeof this._eventedParentData=="function"?this._eventedParentData():this._eventedParentData),h.fire(r))}else r instanceof tl&&console.error(r.error);return this}listens(e){var t,r,i,n,a;return!!((r=(t=this._listeners)==null?void 0:t[e])!=null&&r.length||(n=(i=this._oneTimeListeners)==null?void 0:i[e])!=null&&n.length||(a=this._eventedParent)!=null&&a.listens(e))}setEventedParent(e,t){return this._eventedParent=e,this._eventedParentData=t,this}},Yrt={$version:8,$root:{version:{required:!0,type:"enum",values:[8]},name:{type:"string"},metadata:{type:"*"},center:{type:"array",value:"number",length:2},centerAltitude:{type:"number"},zoom:{type:"number"},bearing:{type:"number",default:0,period:360,units:"degrees"},pitch:{type:"number",default:0,units:"degrees"},roll:{type:"number",default:0,units:"degrees"},state:{type:"state",default:{}},light:{type:"light"},sky:{type:"sky"},projection:{type:"projection"},terrain:{type:"terrain"},sources:{required:!0,type:"sources"},sprite:{type:"sprite"},glyphs:{type:"string"},"font-faces":{type:"fontFaces"},transition:{type:"transition"},layers:{required:!0,type:"array",value:"layer"}},sources:{"*":{type:"source"}},source:["source_vector","source_raster","source_raster_dem","source_geojson","source_video","source_image"],source_vector:{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},encoding:{type:"enum",values:{mvt:{},mlt:{}},default:"mvt"},"*":{type:"*"}},source_raster:{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:"*"}},source_raster_dem:{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:{},custom:{}},default:"mapbox"},redFactor:{type:"number",default:1},blueFactor:{type:"number",default:1},greenFactor:{type:"number",default:1},baseShift:{type:"number",default:0},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_geojson:{type:{required:!0,type:"enum",values:{geojson:{}}},data:{required:!0,type:"*"},maxzoom:{type:"number",default:18},attribution:{type:"string"},buffer:{type:"number",default:128,maximum:512,minimum:0},filter:{type:"filter"},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"}},source_video:{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"}}},source_image:{type:{required:!0,type:"enum",values:{image:{}}},url:{type:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},layer:{id:{type:"string",required:!0},type:{type:"enum",values:{fill:{},line:{},symbol:{},circle:{},heatmap:{},"fill-extrusion":{},raster:{},hillshade:{},"color-relief":{},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"}},layout:["layout_fill","layout_line","layout_circle","layout_heatmap","layout_fill-extrusion","layout_symbol","layout_raster","layout_hillshade","layout_color-relief","layout_background"],layout_background:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible",expression:{interpolated:!1,parameters:["global-state"]},"property-type":"data-constant"}},layout_fill:{"fill-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible",expression:{interpolated:!1,parameters:["global-state"]},"property-type":"data-constant"}},layout_circle:{"circle-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible",expression:{interpolated:!1,parameters:["global-state"]},"property-type":"data-constant"}},layout_heatmap:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible",expression:{interpolated:!1,parameters:["global-state"]},"property-type":"data-constant"}},"layout_fill-extrusion":{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible",expression:{interpolated:!1,parameters:["global-state"]},"property-type":"data-constant"},"fill-extrusion-rounded-corner-distance":{type:"number",default:0,minimum:0,units:"meters","property-type":"constant"}},layout_line:{"line-cap":{type:"enum",values:{butt:{},round:{},square:{}},default:"butt",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"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","feature"]},"property-type":"data-driven"},"line-round-limit":{type:"number",default:1.05,requires:[{"line-join":"round"}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible",expression:{interpolated:!1,parameters:["global-state"]},"property-type":"data-constant"}},layout_symbol:{"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",{"!":"icon-overlap"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-overlap":{type:"enum",values:{never:{},always:{},cooperative:{}},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","feature"]},"property-type":"data-driven"},"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:"padding",default:[2],units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"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:{},"viewport-glyph":{},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-variable-anchor-offset":{type:"variableAnchorOffsetCollection",requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"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",{"!":"text-overlap"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-overlap":{type:"enum",values:{never:{},always:{},cooperative:{}},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"},"symbol-height-offset":{type:"number",default:0,units:"meters",requires:[{"symbol-placement":["point"]}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"symbol-height-anchor":{type:"enum",values:{ground:{},absolute:{}},default:"ground",requires:["symbol-height-offset"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible",expression:{interpolated:!1,parameters:["global-state"]},"property-type":"data-constant"}},layout_raster:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible",expression:{interpolated:!1,parameters:["global-state"]},"property-type":"data-constant"}},layout_hillshade:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible",expression:{interpolated:!1,parameters:["global-state"]},"property-type":"data-constant"}},"layout_color-relief":{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible",expression:{interpolated:!1,parameters:["global-state"]},"property-type":"data-constant"}},filter:{type:"boolean",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},filter_operator:{type:"enum",values:{"==":{},"!=":{},">":{},">=":{},"<":{},"<=":{},in:{},"!in":{},all:{},any:{},none:{},has:{},"!has":{}}},geometry_type:{type:"enum",values:{Point:{},LineString:{},Polygon:{}}},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:{type:"array",minimum:0,maximum:24,value:["number","color"],length:2},expression:{type:"array",value:"expression_name",minimum:1},light:{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}},sky:{"sky-color":{type:"color","property-type":"data-constant",default:"#88C6FC",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"horizon-color":{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"fog-color":{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"fog-ground-blend":{type:"number","property-type":"data-constant",default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"horizon-fog-blend":{type:"number","property-type":"data-constant",default:.8,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"sky-horizon-blend":{type:"number","property-type":"data-constant",default:.8,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"atmosphere-blend":{type:"number","property-type":"data-constant",default:.8,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0}},terrain:{source:{type:"string",required:!0},exaggeration:{type:"number",minimum:0,default:1}},projection:{type:{type:"projectionDefinition",default:"mercator","property-type":"data-constant",transition:!1,expression:{interpolated:!0,parameters:["zoom"]}}},paint:["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_symbol","paint_raster","paint_hillshade","paint_color-relief","paint_background"],paint_fill:{"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-layer-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","global-state"]},"property-type":"data-constant"},"fill-color":{type:"color",default:"#000000",transition:!0,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"}},"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,units:"meters",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{type:"number",default: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:{"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-layer-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","global-state"]},"property-type":"data-constant"},"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","feature"]},"property-type":"cross-faded-data-driven"},"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"}},paint_circle:{"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"}},paint_heatmap:{"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"}},paint_symbol:{"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"}},paint_raster:{"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"},resampling:{type:"enum",values:{linear:{},nearest:{}},default:"linear",expression:{interpolated:!1,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"}},paint_hillshade:{"hillshade-illumination-direction":{type:"numberArray",default:335,minimum:0,maximum:359,transition:!1,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-illumination-altitude":{type:"numberArray",default:45,minimum:0,maximum:90,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:"colorArray",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-highlight-color":{type:"colorArray",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"},"hillshade-method":{type:"enum",values:{standard:{},basic:{},combined:{},igor:{},multidirectional:{}},default:"standard",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},resampling:{type:"enum",values:{linear:{},nearest:{}},default:"linear",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},"paint_color-relief":{"color-relief-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"color-relief-color":{type:"color",transition:!1,expression:{interpolated:!0,parameters:["elevation"]},"property-type":"color-ramp"},resampling:{type:"enum",values:{linear:{},nearest:{}},default:"linear",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_background:{"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"}},transition:{duration:{type:"number",default:300,minimum:0,units:"milliseconds"},delay:{type:"number",default:0,minimum:0,units:"milliseconds"}},"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:{"*":{type:"string"}},interpolation:{type:"array",value:"interpolation_name",minimum:1},interpolation_name:{type:"enum",values:{linear:{syntax:{overloads:[{parameters:[],"output-type":"interpolation"}],parameters:[]}},exponential:{syntax:{overloads:[{parameters:["base"],"output-type":"interpolation"}],parameters:[{name:"base",type:"number literal"}]}},"cubic-bezier":{syntax:{overloads:[{parameters:["x1","y1","x2","y2"],"output-type":"interpolation"}],parameters:[{name:"x1",type:"number literal"},{name:"y1",type:"number literal"},{name:"x2",type:"number literal"},{name:"y2",type:"number literal"}]}}}}},hn=Yrt,Xrt=["type","source","source-layer","minzoom","maxzoom","filter","layout"],Ao=class{constructor(e,t,r,i,n="error"){this.message=(e?`${e}: `:"")+r,i&&(this.identifier=i),this.severity=n,t!=null&&t.__line__&&(this.line=t.__line__)}},xC={kind:"null"},ss={kind:"number"},Yl={kind:"string"},hu={kind:"boolean"},k1={kind:"color"},hq={kind:"projectionDefinition"},i3={kind:"object"},Kl={kind:"value"},fxr={kind:"error"},dq={kind:"collator"},bC={kind:"formatted"},pq={kind:"padding"},Yk={kind:"colorArray"},vq={kind:"numberArray"},_C={kind:"resolvedImage"},mq={kind:"variableAnchorOffsetCollection"};cxr=[xC,ss,Yl,hu,k1,hq,bC,i3,ed(Kl),pq,vq,Yk,_C,mq];Zrt=.96422,Krt=.82521,Jrt=4/29,fie=6/29,Qrt=3*fie*fie,hxr=Math.PI/180,dxr=180/Math.PI;yxr=Object.hasOwn||function(e,t){return Object.prototype.hasOwnProperty.call(e,t)};xxr={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]};Ol=(l0=class{constructor(t,r,i,n=1,a=!0){this.r=t,this.g=r,this.b=i,this.a=n,a||(this.r*=n,this.g*=n,this.b*=n,n||this.overwriteGetter("rgb",[t,r,i,n]))}static parse(t){if(t instanceof l0)return t;if(typeof t!="string")return;let r=gxr(t);if(r)return new l0(...r,!1)}get rgb(){let{r:t,g:r,b:i,a:n}=this,a=n||1/0;return this.overwriteGetter("rgb",[t/a,r/a,i/a,n])}get hcl(){return this.overwriteGetter("hcl",pxr(this.rgb))}get lab(){return this.overwriteGetter("lab",tit(this.rgb))}overwriteGetter(t,r){return Object.defineProperty(this,t,{value:r}),r}toString(){let[t,r,i,n]=this.rgb;return`rgba(${[t,r,i].map(a=>Math.round(a*255)).join(",")},${n})`}static interpolate(t,r,i,n="rgb"){switch(n){case"rgb":{let[a,o,s,l]=q5(t.rgb,r.rgb,i);return new l0(a,o,s,l,!1)}case"hcl":{let[a,o,s,l]=t.hcl,[u,f,c,h]=r.hcl,d,p;if(!isNaN(a)&&!isNaN(u)){let _=u-a;u>a&&_>180?_-=360:u180&&(_+=360),d=a+i*_}else isNaN(a)?isNaN(u)?d=NaN:(d=u,(s===1||s===0)&&(p=f)):(d=a,(c===1||c===0)&&(p=o));let[v,y,m,w]=vxr([d,p!=null?p:cx(o,f,i),cx(s,c,i),cx(l,h,i)]);return new l0(v,y,m,w,!1)}case"lab":{let[a,o,s,l]=rit(q5(t.lab,r.lab,i));return new l0(a,o,s,l,!1)}}}},l0.black=new l0(0,0,0,1),l0.white=new l0(1,1,1,1),l0.transparent=new l0(0,0,0,0),l0.red=new l0(1,0,0,1),l0),_xr=["bottom","center","top"],cie=class{constructor(e,t,r,i,n,a){this.text=e,this.image=t,this.scale=r,this.fontStack=i,this.textColor=n,this.verticalAlign=a}},Qy=class E7{constructor(t){this.sections=t}static fromString(t){return new E7([new cie(t,null,null,null,null,null)])}isEmpty(){return this.sections.length===0||!this.sections.some(t=>t.text.length!==0||t.image&&t.image.name.length!==0)}static factory(t){return t instanceof E7?t:E7.fromString(t)}toString(){return this.sections.length===0?"":this.sections.map(t=>t.text).join("")}},Gm=class Pk{constructor(t){this.values=t.slice()}static parse(t){if(t instanceof Pk)return t;if(typeof t=="number")return new Pk([t,t,t,t]);if(Array.isArray(t)&&!(t.length<1||t.length>4)){for(let r of t)if(typeof r!="number")return;switch(t.length){case 1:t=[t[0],t[0],t[0],t[0]];break;case 2:t=[t[0],t[1],t[0],t[1]];break;case 3:t=[t[0],t[1],t[2],t[1]]}return new Pk(t)}}toString(){return JSON.stringify(this.values)}static interpolate(t,r,i){return new Pk(q5(t.values,r.values,i))}},Hm=class zk{constructor(t){this.values=t.slice()}static parse(t){if(t instanceof zk)return t;if(typeof t=="number")return new zk([t]);if(Array.isArray(t)){for(let r of t)if(typeof r!="number")return;return new zk(t)}}toString(){return JSON.stringify(this.values)}static interpolate(t,r,i){return new zk(q5(t.values,r.values,i))}},Mv=class Ik{constructor(t){this.values=t.slice()}static parse(t){if(t instanceof Ik)return t;if(typeof t=="string"){let i=Ol.parse(t);return i?new Ik([i]):void 0}if(!Array.isArray(t))return;let r=[];for(let i of t){if(typeof i!="string")return;let n=Ol.parse(i);if(!n)return;r.push(n)}return new Ik(r)}toString(){return JSON.stringify(this.values)}static interpolate(t,r,i,n="rgb"){let a=[];if(t.values.length!=r.values.length)throw Error(`colorArray: Arrays have mismatched length (${t.values.length} vs. ${r.values.length}), cannot interpolate.`);for(let o=0;o=s)return r.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',u);let c=r.parse(l,f,a);if(!c)return null;a||(a=c.type),n.push([s,c])}return new sit(a,i,n,r.key)}evaluate(t){let r=this.labels,i=this.outputs;if(r.length===1)return i[0].evaluate(t);let n=this.input.evaluate(t);if(n<=r[0])return i[0].evaluate(t);let a=r.length;return n>=r[a-1]?i[a-1].evaluate(t):i[yq(r,n,this.key)].evaluate(t)}eachChild(t){t(this.input);for(let r of this.outputs)t(r)}outputDefined(){return this.outputs.every(t=>t.outputDefined())}};Sv=class hie{constructor(t,r,i,n,a,o){this.type=t,this.operator=r,this.interpolation=i,this.input=n,this.key=o,this.labels=[],this.outputs=[];for(let[s,l]of a)this.labels.push(s),this.outputs.push(l)}static interpolationFactor(t,r,i,n){let a=0;if(t.name==="exponential")a=Kre(r,t.base,i,n);else if(t.name==="linear")a=Kre(r,1,i,n);else if(t.name==="cubic-bezier"){let o=t.controlPoints;a=Txr(o[0],o[1],o[2],o[3])(Kre(r,1,i,n))}return a}static parse(t,r){let[i,n,a,...o]=t;if(!Array.isArray(n)||n.length===0)return r.error("Expected an interpolation type expression.",1);if(n[0]==="linear")n={name:"linear"};else if(n[0]==="exponential"){let u=n[1];if(typeof u!="number")return r.error("Exponential interpolation requires a numeric base.",1,1);n={name:"exponential",base:u}}else if(n[0]==="cubic-bezier"){let u=n.slice(1);if(u.length!==4||u.some(f=>typeof f!="number"||f<0||f>1))return r.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);n={name:"cubic-bezier",controlPoints:u}}else return r.error(`Unknown interpolation type ${String(n[0])}`,1,0);if(t.length-1<4)return r.error(`Expected at least 4 arguments, but found only ${t.length-1}.`);if((t.length-1)%2!=0)return r.error("Expected an even number of arguments.");if(a=r.parse(a,2,ss),!a)return null;let s=[],l=null;(i==="interpolate-hcl"||i==="interpolate-lab")&&r.expectedType!=Yk?l=k1:r.expectedType&&r.expectedType.kind!=="value"&&(l=r.expectedType);for(let u=0;u=f)return r.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',h);let p=r.parse(c,d,l);if(!p)return null;l||(l=p.type),s.push([f,p])}return!nx(l,ss)&&!nx(l,hq)&&!nx(l,k1)&&!nx(l,pq)&&!nx(l,vq)&&!nx(l,Yk)&&!nx(l,mq)&&!nx(l,ed(ss))?r.error(`Type ${_c(l)} is not interpolatable.`):new hie(l,i,n,a,s,r.key)}evaluate(t){let r=this.labels,i=this.outputs;if(r.length===1)return i[0].evaluate(t);let n=this.input.evaluate(t);if(n<=r[0])return i[0].evaluate(t);let a=r.length;if(n>=r[a-1])return i[a-1].evaluate(t);let o=yq(r,n,this.key),s=r[o],l=r[o+1],u=hie.interpolationFactor(this.interpolation,n,s,l),f=i[o].evaluate(t),c=i[o+1].evaluate(t);switch(this.operator){case"interpolate":switch(this.type.kind){case"number":return cx(f,c,u);case"color":return Ol.interpolate(f,c,u);case"padding":return Gm.interpolate(f,c,u);case"colorArray":return Mv.interpolate(f,c,u);case"numberArray":return Hm.interpolate(f,c,u);case"variableAnchorOffsetCollection":return Nm.interpolate(f,c,u,this.key);case"array":return q5(f,c,u);case"projectionDefinition":return ag.interpolate(f,c,u)}case"interpolate-hcl":switch(this.type.kind){case"color":return Ol.interpolate(f,c,u,"hcl");case"colorArray":return Mv.interpolate(f,c,u,"hcl")}case"interpolate-lab":switch(this.type.kind){case"color":return Ol.interpolate(f,c,u,"lab");case"colorArray":return Mv.interpolate(f,c,u,"lab")}}}eachChild(t){t(this.input);for(let r of this.outputs)t(r)}outputDefined(){return this.outputs.every(t=>t.outputDefined())}};ic={color:Ol.interpolate,number:cx,padding:Gm.interpolate,numberArray:Hm.interpolate,colorArray:Mv.interpolate,variableAnchorOffsetCollection:Nm.interpolate,array:q5},lit=class uit{constructor(t){this.type=bC,this.sections=t}static parse(t,r){if(t.length<2)return r.error("Expected at least one argument.");let i=t[1];if(!Array.isArray(i)&&typeof i=="object")return r.error("First argument must be an image or text section.");let n=[],a=!1;for(let o=1;o<=t.length-1;++o){let s=t[o];if(a&&typeof s=="object"&&!Array.isArray(s)){a=!1;let l=null;if(s["font-scale"]&&(l=r.parse(s["font-scale"],1,ss),!l))return null;let u=null;if(s["text-font"]&&(u=r.parse(s["text-font"],1,ed(Yl)),!u))return null;let f=null;if(s["text-color"]&&(f=r.parse(s["text-color"],1,k1),!f))return null;let c=null;if(s["vertical-align"]){if(typeof s["vertical-align"]=="string"&&!_xr.includes(s["vertical-align"]))return r.error(`'vertical-align' must be one of: 'bottom', 'center', 'top' but found '${s["vertical-align"]}' instead.`);if(c=r.parse(s["vertical-align"],1,Yl),!c)return null}let h=n[n.length-1];h.scale=l,h.font=u,h.textColor=f,h.verticalAlign=c}else{let l=r.parse(t[o],1,Kl);if(!l)return null;let u=l.type.kind;if(u!=="string"&&u!=="value"&&u!=="null"&&u!=="resolvedImage")return r.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");a=!0,n.push({content:l,scale:null,font:null,textColor:null,verticalAlign:null})}}return new uit(n)}evaluate(t){return new Qy(this.sections.map(r=>{let i=r.content.evaluate(t);return rh(i)===_C?new cie("",i,null,null,null,r.verticalAlign?r.verticalAlign.evaluate(t):null):new cie(Uk(i),null,r.scale?r.scale.evaluate(t):null,r.font?r.font.evaluate(t).join(","):null,r.textColor?r.textColor.evaluate(t):null,r.verticalAlign?r.verticalAlign.evaluate(t):null)}))}eachChild(t){for(let r of this.sections)t(r.content),r.scale&&t(r.scale),r.font&&t(r.font),r.textColor&&t(r.textColor),r.verticalAlign&&t(r.verticalAlign)}outputDefined(){return!1}};d7={string:Yl,number:ss,boolean:hu,object:i3},Zy=class cit{constructor(t,r,i){this.type=t,this.args=r,this.key=i}static parse(t,r){if(t.length<2)return r.error("Expected at least one argument.");let i=1,n,a=t[0];if(a==="array"){let s;if(t.length>2){let u=t[1];if(typeof u!="string"||!(u in d7)||u==="object")return r.error('The item type argument of "array" must be one of string, number, boolean',1);s=d7[u],i++}else s=Kl;let l;if(t.length>3){if(t[2]!==null&&(typeof t[2]!="number"||t[2]<0||t[2]!==Math.floor(t[2])))return r.error('The length argument to "array" must be a positive integer literal',2);l=t[2],i++}n=ed(s,l)}else{if(!d7[a])throw Error(`Types doesn't contain name = ${a}`);n=d7[a]}let o=[];for(;it.outputDefined())}},Fet={"to-boolean":hu,"to-color":k1,"to-number":ss,"to-string":Yl},k5=class hit{constructor(t,r,i){this.type=t,this.args=r,this.key=i}static parse(t,r){if(t.length<2)return r.error("Expected at least one argument.");let i=t[0];if(!Fet[i])throw Error(`Can't parse ${i} as it is not part of the known types`);if((i==="to-boolean"||i==="to-string")&&t.length!==2)return r.error("Expected one argument.");let n=Fet[i],a=[];for(let o=1;o4?`Invalid rgba value ${JSON.stringify(r)}: expected an array containing either three or four numeric values.`:nit(r[0],r[1],r[2],r[3]),!i))return new Ol(r[0]/255,r[1]/255,r[2]/255,r[3])}throw new hc(i||`Could not parse color from value '${typeof r=="string"?r:JSON.stringify(r)}'`,this.key)}case"padding":{let r;for(let i of this.args){r=i.evaluate(t);let n=Gm.parse(r);if(n)return n}throw new hc(`Could not parse padding from value '${typeof r=="string"?r:JSON.stringify(r)}'`,this.key)}case"numberArray":{let r;for(let i of this.args){r=i.evaluate(t);let n=Hm.parse(r);if(n)return n}throw new hc(`Could not parse numberArray from value '${typeof r=="string"?r:JSON.stringify(r)}'`,this.key)}case"colorArray":{let r;for(let i of this.args){r=i.evaluate(t);let n=Mv.parse(r);if(n)return n}throw new hc(`Could not parse colorArray from value '${typeof r=="string"?r:JSON.stringify(r)}'`,this.key)}case"variableAnchorOffsetCollection":{let r;for(let i of this.args){r=i.evaluate(t);let n=Nm.parse(r);if(n)return n}throw new hc(`Could not parse variableAnchorOffsetCollection from value '${typeof r=="string"?r:JSON.stringify(r)}'`,this.key)}case"number":{let r=null;for(let i of this.args){if(r=i.evaluate(t),r===null)return 0;let n=Number(r);if(!isNaN(n))return n}throw new hc(`Could not convert ${JSON.stringify(r)} to number.`,this.key)}case"formatted":return Qy.fromString(Uk(this.args[0].evaluate(t)));case"resolvedImage":return Vm.fromString(Uk(this.args[0].evaluate(t)));case"projectionDefinition":{let r=this.args[0].evaluate(t);if(ag.parse(r))return r;throw new hc(`Could not parse projectionDefinition from value '${typeof r=="string"?r:JSON.stringify(r)}'`,this.key)}default:return Uk(this.args[0].evaluate(t))}}eachChild(t){this.args.forEach(t)}outputDefined(){return this.args.every(t=>t.outputDefined())}},dit=class pit{constructor(t,r){this.type=r.type,this.bindings=[].concat(t),this.result=r}evaluate(t){return this.result.evaluate(t)}eachChild(t){for(let r of this.bindings)t(r[1]);t(this.result)}static parse(t,r){if(t.length<4)return r.error(`Expected at least 3 arguments, but found ${t.length-1} instead.`);let i=[];for(let a=1;a=i.length)throw new hc(`Array index out of bounds: ${r} > ${i.length-1}.`,this.key);if(r!==Math.floor(r))throw new hc(`Array index must be an integer, but found ${r} instead.`,this.key);return i[r]}eachChild(t){t(this.index),t(this.input)}outputDefined(){return!1}},Cxr=class git{constructor(t,r,i){this.needle=t,this.haystack=r,this.key=i,this.type=hu}static parse(t,r){if(t.length!==3)return r.error(`Expected 2 arguments, but found ${t.length-1} instead.`);let i=r.parse(t[1],1,Kl),n=r.parse(t[2],2,Kl);return!i||!n?null:Bne(i.type,[hu,Yl,ss,xC,Kl])?new git(i,n,r.key):r.error(`Expected first argument to be of type boolean, string, number or null, but found ${_c(i.type)} instead`)}evaluate(t){let r=this.needle.evaluate(t),i=this.haystack.evaluate(t);if(!i)return!1;if(!n3(r,["boolean","string","number","null"]))throw new hc(`Expected first argument to be of type boolean, string, number or null, but found ${_c(rh(r))} instead.`,this.key);if(!n3(i,["string","array"]))throw new hc(`Expected second argument to be of type array or string, but found ${_c(rh(i))} instead.`,this.key);return i.indexOf(r)>=0}eachChild(t){t(this.needle),t(this.haystack)}outputDefined(){return!0}},Dxr=class die{constructor(t,r,i,n){this.needle=t,this.haystack=r,this.key=i,this.fromIndex=n,this.type=ss}static parse(t,r){if(t.length<=2||t.length>=5)return r.error(`Expected 2 or 3 arguments, but found ${t.length-1} instead.`);let i=r.parse(t[1],1,Kl),n=r.parse(t[2],2,Kl);if(!i||!n)return null;if(!Bne(i.type,[hu,Yl,ss,xC,Kl]))return r.error(`Expected first argument to be of type boolean, string, number or null, but found ${_c(i.type)} instead`);if(t.length===4){let a=r.parse(t[3],3,ss);return a?new die(i,n,r.key,a):null}return new die(i,n,r.key)}evaluate(t){let r=this.needle.evaluate(t),i=this.haystack.evaluate(t);if(!n3(r,["boolean","string","number","null"]))throw new hc(`Expected first argument to be of type boolean, string, number or null, but found ${_c(rh(r))} instead.`,this.key);let n;if(this.fromIndex&&(n=this.fromIndex.evaluate(t)),n3(i,["string"])){let a=i.indexOf(r,n);return a===-1?-1:[...i.slice(0,a)].length}if(n3(i,["array"]))return i.indexOf(r,n);throw new hc(`Expected second argument to be of type array or string, but found ${_c(rh(i))} instead.`,this.key)}eachChild(t){t(this.needle),t(this.haystack),this.fromIndex&&t(this.fromIndex)}outputDefined(){return!1}},Fxr=class xit{constructor(t,r,i,n,a,o){this.inputType=t,this.type=r,this.input=i,this.cases=n,this.outputs=a,this.otherwise=o}static parse(t,r){if(t.length<5)return r.error(`Expected at least 4 arguments, but found only ${t.length-1}.`);if(t.length%2!=1)return r.error("Expected an even number of arguments.");let i,n;r.expectedType&&r.expectedType.kind!=="value"&&(n=r.expectedType);let a={},o=[];for(let u=2;u2**53-1)return h.error(`Branch labels must be integers no larger than ${2**53-1}.`);if(typeof p=="number"&&Math.floor(p)!==p)return h.error("Numeric branch labels must be integer values.");if(!i)i=rh(p);else if(h.checkSubtype(i,rh(p)))return null;if(a[String(p)]!==void 0)return h.error("Branch labels must be unique.");a[String(p)]=o.length}let d=r.parse(c,u,n);if(!d)return null;n||(n=d.type),o.push(d)}let s=r.parse(t[1],1,Kl);if(!s)return null;let l=r.parse(t[t.length-1],t.length-1,n);return!l||s.type.kind!=="value"&&r.concat(1).checkSubtype(i,s.type)?null:new xit(i,n,s,a,o,l)}evaluate(t){let r=this.input.evaluate(t);return(rh(r)===this.inputType&&this.outputs[this.cases[r]]||this.otherwise).evaluate(t)}eachChild(t){t(this.input),this.outputs.forEach(t),t(this.otherwise)}outputDefined(){return this.outputs.every(t=>t.outputDefined())&&this.otherwise.outputDefined()}},Lxr=class bit{constructor(t,r,i){this.type=t,this.branches=r,this.otherwise=i}static parse(t,r){if(t.length<4)return r.error(`Expected at least 3 arguments, but found only ${t.length-1}.`);if(t.length%2!=0)return r.error("Expected an odd number of arguments.");let i;r.expectedType&&r.expectedType.kind!=="value"&&(i=r.expectedType);let n=[];for(let o=1;or.outputDefined())&&this.otherwise.outputDefined()}},Pxr=class pie{constructor(t,r,i,n,a){this.type=t,this.input=r,this.beginIndex=i,this.key=n,this.endIndex=a}static parse(t,r){if(t.length<=2||t.length>=5)return r.error(`Expected 2 or 3 arguments, but found ${t.length-1} instead.`);let i=r.parse(t[1],1,Kl),n=r.parse(t[2],2,ss);if(!i||!n)return null;if(!Bne(i.type,[ed(Kl),Yl,Kl]))return r.error(`Expected first argument to be of type array or string, but found ${_c(i.type)} instead`);if(t.length===4){let a=r.parse(t[3],3,ss);return a?new pie(i.type,i,n,r.key,a):null}return new pie(i.type,i,n,r.key)}evaluate(t){let r=this.input.evaluate(t),i=this.beginIndex.evaluate(t),n;if(this.endIndex&&(n=this.endIndex.evaluate(t)),n3(r,["string"]))return[...r].slice(i,n).join("");if(n3(r,["array"]))return r.slice(i,n);throw new hc(`Expected first argument to be of type array or string, but found ${_c(rh(r))} instead.`,this.key)}eachChild(t){t(this.input),t(this.beginIndex),this.endIndex&&t(this.endIndex)}outputDefined(){return!1}},_it=class vie{constructor(t,r){this.type=t,this.args=r}static parse(t,r){if(t.length<2)return r.error("Expected at least one argument.");let i=null,n=r.expectedType;n&&n.kind!=="value"&&(i=n);let a=[];for(let o of t.slice(1)){let s=r.parse(o,1+a.length,i,void 0,{typeAnnotation:"omit"});if(!s)return null;i||(i=s.type),a.push(s)}if(!i)throw Error("No output type");return n&&a.some(o=>Xk(n,o.type))?new vie(Kl,a):new vie(i,a)}evaluate(t){let r=null,i=0,n;for(let a of this.args)if(i++,r=a.evaluate(t),r&&r instanceof Vm&&!r.available&&(n||(n=r.name),r=null,i===this.args.length&&(r=n)),r!==null)break;return r}eachChild(t){this.args.forEach(t)}outputDefined(){return this.args.every(t=>t.outputDefined())}};jxr=Z5("==",zxr,wit),Wxr=Z5("!=",Ixr,Nxr),$xr=Z5("<",Rxr,Vxr),Yxr=Z5(">",Bxr,Uxr),Xxr=Z5("<=",qxr,Gxr),Zxr=Z5(">=",Oxr,Hxr),Tit=class Mit{constructor(t,r,i){this.type=dq,this.locale=i,this.caseSensitive=t,this.diacriticSensitive=r}static parse(t,r){if(t.length!==2)return r.error("Expected one argument.");let i=t[1];if(typeof i!="object"||Array.isArray(i))return r.error("Collator options argument must be an object.");let n=r.parse(i["case-sensitive"]!==void 0&&i["case-sensitive"],1,hu);if(!n)return null;let a=r.parse(i["diacritic-sensitive"]!==void 0&&i["diacritic-sensitive"],1,hu);if(!a)return null;let o=null;return i.locale&&(o=r.parse(i.locale,1,Yl),!o)?null:new Mit(n,a,o)}evaluate(t){return new qne(this.caseSensitive.evaluate(t),this.diacriticSensitive.evaluate(t),this.locale?this.locale.evaluate(t):null)}eachChild(t){t(this.caseSensitive),t(this.diacriticSensitive),this.locale&&t(this.locale)}outputDefined(){return!1}},Kxr=class Sit{constructor(t,r,i,n,a,o){this.type=Yl,this.number=t,this.locale=r,this.currency=i,this.unit=n,this.minFractionDigits=a,this.maxFractionDigits=o}static parse(t,r){if(t.length!==3)return r.error("Expected two arguments.");let i=r.parse(t[1],1,ss);if(!i)return null;let n=t[2];if(typeof n!="object"||Array.isArray(n))return r.error("NumberFormat options argument must be an object.");let a=null;if(n.locale&&(a=r.parse(n.locale,1,Yl),!a))return null;let o=null;if(n.currency&&(o=r.parse(n.currency,1,Yl),!o))return null;let s=null;if(n.unit&&(s=r.parse(n.unit,1,Yl),!s))return null;if(o&&s)return r.error("NumberFormat options `currency` and `unit` are mutually exclusive");let l=null;if(n["min-fraction-digits"]&&(l=r.parse(n["min-fraction-digits"],1,ss),!l))return null;let u=null;return n["max-fraction-digits"]&&(u=r.parse(n["max-fraction-digits"],1,ss),!u)?null:new Sit(i,a,o,s,l,u)}evaluate(t){return new Intl.NumberFormat(this.locale?this.locale.evaluate(t):[],{style:this.currency?"currency":this.unit?"unit":"decimal",currency:this.currency?this.currency.evaluate(t):void 0,unit:this.unit?this.unit.evaluate(t):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(t):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(t):void 0}).format(this.number.evaluate(t))}eachChild(t){t(this.number),this.locale&&t(this.locale),this.currency&&t(this.currency),this.unit&&t(this.unit),this.minFractionDigits&&t(this.minFractionDigits),this.maxFractionDigits&&t(this.maxFractionDigits)}outputDefined(){return!1}},Jxr=class Eit{constructor(t){this.type=_C,this.input=t}static parse(t,r){if(t.length!==2)return r.error("Expected two arguments.");let i=r.parse(t[1],1,Yl);return i?new Eit(i):r.error("No image name provided.")}evaluate(t){let r=this.input.evaluate(t),i=Vm.fromString(r);return i&&t.availableImages&&(i.available=t.availableImages.indexOf(r)>-1),i}eachChild(t){t(this.input)}outputDefined(){return!1}},Qxr=class kit{constructor(t,r){this.input=t,this.key=r,this.type=ss}static parse(t,r){if(t.length!==2)return r.error(`Expected 1 argument, but found ${t.length-1} instead.`);let i=r.parse(t[1],1);return i?i.type.kind!=="array"&&i.type.kind!=="string"&&i.type.kind!=="value"?r.error(`Expected argument of type string or array, but found ${_c(i.type)} instead.`):new kit(i,r.key):null}evaluate(t){let r=this.input.evaluate(t);if(typeof r=="string")return[...r].length;if(Array.isArray(r))return r.length;throw new hc(`Expected value to be of type string or array, but found ${_c(rh(r))} instead.`,this.key)}eachChild(t){t(this.input)}outputDefined(){return!1}},Om=8192;Une=class C7{constructor(t,r){this.type=hu,this.geojson=t,this.geometries=r}static parse(t,r){if(t.length!==2)return r.error(`'within' expression requires exactly one argument, but found ${t.length-1} instead.`);if(O5(t[1])){let i=t[1];if(i.type==="FeatureCollection"){let n=[];for(let a of i.features){let{type:o,coordinates:s}=a.geometry;o==="Polygon"&&n.push(s),o==="MultiPolygon"&&n.push(...s)}if(n.length)return new C7(i,{type:"MultiPolygon",coordinates:n})}else if(i.type==="Feature"){let n=i.geometry.type;if(n==="Polygon"||n==="MultiPolygon")return new C7(i,i.geometry)}else if(i.type==="Polygon"||i.type==="MultiPolygon")return new C7(i,i)}return r.error("'within' expression requires valid geojson object that contains polygon geometry type.")}evaluate(t){if(t.geometry()!=null&&t.canonicalID()!=null){if(t.geometryType()==="Point")return hbr(t,this.geometries);if(t.geometryType()==="LineString")return dbr(t,this.geometries)}return!1}eachChild(){}outputDefined(){return!0}},Lit=class{constructor(e=[],t=(r,i)=>ri)){if(this.data=e,this.length=this.data.length,this.compare=t,this.length>0)for(let r=(this.length>>1)-1;r>=0;r--)this._down(r)}push(e){this.data.push(e),this._up(this.length++)}pop(){if(this.length===0)return;let e=this.data[0],t=this.data.pop();return--this.length>0&&(this.data[0]=t,this._down(0)),e}peek(){return this.data[0]}_up(e){let{data:t,compare:r}=this,i=t[e];for(;e>0;){let n=e-1>>1,a=t[n];if(r(i,a)>=0)break;t[e]=a,e=n}t[e]=i}_down(e){let{data:t,compare:r}=this,i=this.length>>1,n=t[e];for(;e=0)break;t[e]=t[a],e=a}t[e]=n}},Ret=Math.PI/180,Gne=class{constructor(e){let t=Ret*6378.137*1e3,r=Math.cos(e*Ret),i=1/(1-.0066943799901413165*(1-r*r)),n=Math.sqrt(i);this.kx=t*n*r,this.ky=t*n*i*.9933056200098587}distance(e,t){let r=this.wrap(e[0]-t[0])*this.kx,i=(e[1]-t[1])*this.ky;return Math.sqrt(r*r+i*i)}pointOnLine(e,t){let r=1/0,i,n,a,o;for(let s=0;s1?(l=e[s+1][0],u=e[s+1][1]):h>0&&(l+=f/this.kx*h,u+=c/this.ky*h)),f=this.wrap(t[0]-l)*this.kx,c=(t[1]-u)*this.ky;let d=f*f+c*c;d180;)e-=360;return e}};Wne=class D7{constructor(t,r){this.type=ss,this.geojson=t,this.geometries=r}static parse(t,r){if(t.length!==2)return r.error(`'distance' expression requires exactly one argument, but found ${t.length-1} instead.`);if(O5(t[1])){let i=t[1];if(i.type==="FeatureCollection")return new D7(i,i.features.map(n=>Jre(n.geometry)).flat());if(i.type==="Feature")return new D7(i,Jre(i.geometry));if("type"in i&&"coordinates"in i)return new D7(i,Jre(i))}return r.error("'distance' expression requires valid geojson object that contains polygon geometry type.")}evaluate(t){if(t.geometry()!=null&&t.canonicalID()!=null){if(t.geometryType()==="Point")return xbr(t,this.geometries);if(t.geometryType()==="LineString")return bbr(t,this.geometries);if(t.geometryType()==="Polygon")return _br(t,this.geometries)}return NaN}eachChild(){}outputDefined(){return!0}},wbr=class zit{constructor(t){let r=null;for(let i of t)if(!r)r=i.type;else{if(r===i.type)continue;r=Kl;break}this.type=ed(r!=null?r:Kl,t.length),this.arr=t}static parse(t,r){if(t.length!==2)return r.error(`'semiliteral' expression requires exactly one argument, but found ${t.length-1} instead.`);if(!O5(t[1]))return r.error(`invalid value of type "${typeof t[1]}"`);let i=t[1],n=rh(i);if(n.kind==="array"){let a=i,o=r.concat(1),s=[];for(let l=0;lr.evaluate(t))}eachChild(t){this.arr.forEach(t)}outputDefined(){return this.arr.every(t=>t.outputDefined())}},$ne=class Iit{constructor(t){this.key=t,this.type=Kl}static parse(t,r){if(t.length!==2)return r.error(`Expected 1 argument, but found ${t.length-1} instead.`);let i=t[1];return i==null?r.error("Global state property must be defined."):typeof i=="string"?new Iit(i):r.error(`Global state property must be string, but found ${typeof t[1]} instead.`)}evaluate(t){var i,n;let r=(i=t.globals)==null?void 0:i.globalState;return!r||Object.keys(r).length===0?null:(n=Vk(r,this.key))!=null?n:null}eachChild(){}outputDefined(){return!1}},F5={"==":jxr,"!=":Wxr,">":Yxr,"<":$xr,">=":Zxr,"<=":Xxr,array:Zy,at:kxr,boolean:Zy,case:Lxr,coalesce:_it,collator:Tit,format:lit,image:Jxr,in:Cxr,"index-of":Dxr,interpolate:Sv,"interpolate-hcl":Sv,"interpolate-lab":Sv,length:Qxr,let:dit,literal:N5,match:Fxr,number:Zy,"number-format":Kxr,object:Zy,semiliteral:wbr,slice:Pxr,step:One,string:Zy,"to-boolean":k5,"to-color":k5,"to-number":k5,"to-string":k5,var:vit,within:Une,distance:Wne,"global-state":$ne},Im=class extends Error{constructor(e,t){super(t),this.message=t,this.key=e}},Abr=class Rit{constructor(t,r=[]){this.parent=t,this.bindings={};for(let[i,n]of r)this.bindings[i]=n}concat(t){return new Rit(this,t)}get(t){if(this.bindings[t])return this.bindings[t];if(this.parent)return this.parent.get(t);throw Error(`${t} not found in scope.`)}has(t){return this.bindings[t]?!0:this.parent?this.parent.has(t):!1}},Bit=class qit{constructor(t,r,i=[],n,a=new Abr,o=[]){this.registry=t,this.path=i,this.key=i.map(s=>`[${s}]`).join(""),this.scope=a,this.errors=o,this.expectedType=n,this._isConstant=r}parse(t,r,i,n,a={}){return r==null?this._parse(t,a):this.concat(r,i,n)._parse(t,a)}_parse(t,r){(t===null||typeof t=="string"||typeof t=="boolean"||typeof t=="number")&&(t=["literal",t]);let i=this.key;function n(a,o,s){return s==="assert"?new Zy(o,[a],i):s==="coerce"?new k5(o,[a],i):a}if(Array.isArray(t)){if(t.length===0)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');let a=t[0];if(typeof a!="string")return this.error(`Expression name must be a string, but found ${typeof a} instead. If you wanted a literal array, use ["literal", [...]].`,0),null;let o=this.registry[a];if(o){let s=o.parse(t,this);if(!s)return null;if(this.expectedType){let l=this.expectedType,u=s.type;if((l.kind==="string"||l.kind==="number"||l.kind==="boolean"||l.kind==="object"||l.kind==="array")&&u.kind==="value")s=n(s,l,r.typeAnnotation||"assert");else if(l.kind==="projectionDefinition"&&["string","array","value"].includes(u.kind)||["color","formatted","resolvedImage"].includes(l.kind)&&["value","string"].includes(u.kind)||["padding","numberArray"].includes(l.kind)&&["value","number","array"].includes(u.kind)||l.kind==="colorArray"&&["value","string","array"].includes(u.kind)||l.kind==="variableAnchorOffsetCollection"&&["value","array"].includes(u.kind))s=n(s,l,r.typeAnnotation||"coerce");else if(this.checkSubtype(l,u))return null}if(!(s instanceof N5)&&s.type.kind!=="resolvedImage"&&this._isConstant(s)){let l=new oit;try{s=new N5(s.type,s.evaluate(l))}catch(u){return this.error(u.message),null}}return s}return this.error(`Unknown expression "${a}". If you wanted a literal array, use ["literal", [...]].`,0)}return t===void 0?this.error("'undefined' value invalid. Use null instead."):typeof t=="object"?this.error('Bare objects invalid. Use ["literal", {...}] instead.'):this.error(`Expected an array, but found ${typeof t} instead.`)}concat(t,r,i){let n=typeof t=="number"?this.path.concat(t):this.path,a=i?this.scope.concat(i):this.scope;return new qit(this.registry,this._isConstant,n,r||null,a,this.errors)}error(t,...r){let i=`${this.key}${r.map(n=>`[${n}]`).join("")}`;this.errors.push(new Im(i,t))}checkSubtype(t,r){let i=Xk(t,r);return i&&this.error(i),i}},v3=class Rk{constructor(t,r,i,n,a){this.name=t,this.type=r,this._evaluate=i,this.args=n,this.key=a}evaluate(t){return this._evaluate(t,this.args,this.key)}eachChild(t){this.args.forEach(t)}outputDefined(){return!1}static parse(t,r){let i=t[0],n=Rk.definitions[i];if(!n)return r.error(`Unknown expression "${i}". If you wanted a literal array, use ["literal", [...]].`,0);let a=Array.isArray(n)?n[0]:n.type,o=Array.isArray(n)?[[n[1],n[2]]]:n.overloads,s=o.filter(([u])=>!Array.isArray(u)||u.length===t.length-1),l=null;for(let[u,f]of s){l=new Bit(r.registry,B7,r.path,null,r.scope);let c=[],h=!1;for(let d=1;dMbr(c)).join(" | "),f=[];for(let c=1;c{throw new hc(t.evaluate(e),r)}],typeof:[Yl,[Kl],(e,[t])=>_c(rh(t.evaluate(e)))],"to-rgba":[ed(ss,4),[k1],(e,[t])=>{let[r,i,n,a]=t.evaluate(e).rgb;return[r*255,i*255,n*255,a]}],rgb:[k1,[ss,ss,ss],Net],rgba:[k1,[ss,ss,ss,ss],Net],has:{type:hu,overloads:[[[Yl],(e,[t])=>Vet(t.evaluate(e),e.properties())],[[Yl,i3],(e,[t,r])=>Vet(t.evaluate(e),r.evaluate(e))]]},get:{type:Kl,overloads:[[[Yl],(e,[t])=>Qre(t.evaluate(e),e.properties())],[[Yl,i3],(e,[t,r])=>Qre(t.evaluate(e),r.evaluate(e))]]},"feature-state":[Kl,[Yl],(e,[t])=>Qre(t.evaluate(e),e.featureState||{})],properties:[i3,[],e=>e.properties()],"geometry-type":[Yl,[],e=>e.geometryType()],id:[Kl,[],e=>e.id()],zoom:[ss,[],e=>e.globals.zoom],"heatmap-density":[ss,[],e=>e.globals.heatmapDensity||0],elevation:[ss,[],e=>e.globals.elevation||0],"line-progress":[ss,[],e=>e.globals.lineProgress||0],accumulated:[Kl,[],e=>e.globals.accumulated===void 0?null:e.globals.accumulated],"+":[ss,K_(ss),(e,t)=>{let r=0;for(let i of t)r+=i.evaluate(e);return r}],"*":[ss,K_(ss),(e,t)=>{let r=1;for(let i of t)r*=i.evaluate(e);return r}],"-":{type:ss,overloads:[[[ss,ss],(e,[t,r])=>t.evaluate(e)-r.evaluate(e)],[[ss],(e,[t])=>-t.evaluate(e)]]},"/":[ss,[ss,ss],(e,[t,r])=>t.evaluate(e)/r.evaluate(e)],"%":[ss,[ss,ss],(e,[t,r])=>t.evaluate(e)%r.evaluate(e)],ln2:[ss,[],()=>Math.LN2],pi:[ss,[],()=>Math.PI],e:[ss,[],()=>Math.E],"^":[ss,[ss,ss],(e,[t,r])=>t.evaluate(e)**+r.evaluate(e)],sqrt:[ss,[ss],(e,[t])=>Math.sqrt(t.evaluate(e))],log10:[ss,[ss],(e,[t])=>Math.log(t.evaluate(e))/Math.LN10],ln:[ss,[ss],(e,[t])=>Math.log(t.evaluate(e))],log2:[ss,[ss],(e,[t])=>Math.log(t.evaluate(e))/Math.LN2],sin:[ss,[ss],(e,[t])=>Math.sin(t.evaluate(e))],cos:[ss,[ss],(e,[t])=>Math.cos(t.evaluate(e))],tan:[ss,[ss],(e,[t])=>Math.tan(t.evaluate(e))],asin:[ss,[ss],(e,[t])=>Math.asin(t.evaluate(e))],acos:[ss,[ss],(e,[t])=>Math.acos(t.evaluate(e))],atan:[ss,[ss],(e,[t])=>Math.atan(t.evaluate(e))],min:[ss,K_(ss),(e,t)=>Math.min(...t.map(r=>r.evaluate(e)))],max:[ss,K_(ss),(e,t)=>Math.max(...t.map(r=>r.evaluate(e)))],abs:[ss,[ss],(e,[t])=>Math.abs(t.evaluate(e))],round:[ss,[ss],(e,[t])=>{let r=t.evaluate(e);return r<0?-Math.round(-r):Math.round(r)}],floor:[ss,[ss],(e,[t])=>Math.floor(t.evaluate(e))],ceil:[ss,[ss],(e,[t])=>Math.ceil(t.evaluate(e))],"filter-==":[hu,[Yl,Kl],(e,[t,r])=>e.properties()[t.value]===r.value],"filter-id-==":[hu,[Kl],(e,[t])=>e.id()===t.value],"filter-type-==":[hu,[Yl],(e,[t])=>e.geometryType()===t.value],"filter-<":[hu,[Yl,Kl],(e,[t,r])=>{let i=e.properties()[t.value],n=r.value;return typeof i==typeof n&&i{let r=e.id(),i=t.value;return typeof r==typeof i&&r":[hu,[Yl,Kl],(e,[t,r])=>{let i=e.properties()[t.value],n=r.value;return typeof i==typeof n&&i>n}],"filter-id->":[hu,[Kl],(e,[t])=>{let r=e.id(),i=t.value;return typeof r==typeof i&&r>i}],"filter-<=":[hu,[Yl,Kl],(e,[t,r])=>{let i=e.properties()[t.value],n=r.value;return typeof i==typeof n&&i<=n}],"filter-id-<=":[hu,[Kl],(e,[t])=>{let r=e.id(),i=t.value;return typeof r==typeof i&&r<=i}],"filter->=":[hu,[Yl,Kl],(e,[t,r])=>{let i=e.properties()[t.value],n=r.value;return typeof i==typeof n&&i>=n}],"filter-id->=":[hu,[Kl],(e,[t])=>{let r=e.id(),i=t.value;return typeof r==typeof i&&r>=i}],"filter-has":[hu,[Kl],(e,[t])=>{let r=t.value,i=e.properties();return r in i&&i[r]!==void 0}],"filter-has-id":[hu,[],e=>e.id()!==null&&e.id()!==void 0],"filter-type-in":[hu,[ed(Yl)],(e,[t])=>t.value.indexOf(e.geometryType())>=0],"filter-id-in":[hu,[ed(Kl)],(e,[t])=>t.value.indexOf(e.id())>=0],"filter-in-small":[hu,[Yl,ed(Kl)],(e,[t,r])=>r.value.indexOf(e.properties()[t.value])>=0],"filter-in-large":[hu,[Yl,ed(Kl)],(e,[t,r])=>Tbr(e.properties()[t.value],r.value,0,r.value.length-1)],all:{type:hu,overloads:[[[hu,hu],(e,[t,r])=>t.evaluate(e)&&r.evaluate(e)],[K_(hu),(e,t)=>{for(let r of t)if(!r.evaluate(e))return!1;return!0}]]},any:{type:hu,overloads:[[[hu,hu],(e,[t,r])=>t.evaluate(e)||r.evaluate(e)],[K_(hu),(e,t)=>{for(let r of t)if(r.evaluate(e))return!0;return!1}]]},"!":[hu,[hu],(e,[t])=>!t.evaluate(e)],"is-supported-script":[hu,[Yl],(e,[t])=>{let r=e.globals&&e.globals.isSupportedScript;return!r||r(t.evaluate(e))}],upcase:[Yl,[Yl],(e,[t])=>t.evaluate(e).toUpperCase()],downcase:[Yl,[Yl],(e,[t])=>t.evaluate(e).toLowerCase()],concat:[Yl,K_(Kl),(e,t)=>t.map(r=>Uk(r.evaluate(e))).join("")],split:[ed(Yl),[Yl,Yl],(e,[t,r])=>t.evaluate(e).split(r.evaluate(e))],join:[Yl,[ed(Yl),Yl],(e,[t,r])=>t.evaluate(e).join(r.evaluate(e))],"resolved-locale":[Yl,[dq],(e,[t])=>t.evaluate(e).resolvedLocale()]});Xne=/^(.*)-transition$/;Zne=class{constructor(e,t,r,i){this.expression=e,this._warningHistory={},this._evaluator=new oit,this._defaultValue=r?$it(r):null,this._enumValues=r&&r.type==="enum"?r.values:null,this._globalState=i,this._rootKey=t}evaluateWithoutErrorHandling(e,t,r,i,n,a){return this._globalState&&(e=U5(e,this._globalState)),this._evaluator.globals=e,this._evaluator.feature=t,this._evaluator.featureState=r,this._evaluator.canonical=i,this._evaluator.availableImages=n||null,this._evaluator.formattedSection=a,this.expression.evaluate(this._evaluator)}evaluate(e,t,r,i,n,a){this._globalState&&(e=U5(e,this._globalState)),this._evaluator.globals=e,this._evaluator.feature=t||null,this._evaluator.featureState=r||null,this._evaluator.canonical=i,this._evaluator.availableImages=n||null,this._evaluator.formattedSection=a||null;try{let o=this.expression.evaluate(this._evaluator);if(o==null||typeof o=="number"&&o!==o)return this._defaultValue;if(this._enumValues&&!(o in this._enumValues))throw new hc(`Expected value to be one of ${Object.keys(this._enumValues).map(s=>JSON.stringify(s)).join(", ")}, but found ${JSON.stringify(o)} instead.`,"");return o}catch(o){let s=o instanceof hc?o.path:"",l=`${s}|${o.message}`;return this._warningHistory[l]||(this._warningHistory[l]=!0,typeof console<"u"&&console.warn(Uit(this._rootKey,s,o.message,this._defaultValue))),this._defaultValue}}};Qk=class{constructor(e,t,r){this.kind=e,this._styleExpression=t,this.isStateDependent=e!=="constant"&&!Kk(t.expression),this.globalStateRefs=TC(t.expression),this._globalState=r}evaluateWithoutErrorHandling(e,t,r,i,n,a){return this._globalState&&(e=U5(e,this._globalState)),this._styleExpression.evaluateWithoutErrorHandling(e,t,r,i,n,a)}evaluate(e,t,r,i,n,a){return this._globalState&&(e=U5(e,this._globalState)),this._styleExpression.evaluate(e,t,r,i,n,a)}},q7=class{constructor(e,t,r,i,n){this.kind=e,this.zoomStops=r,this._styleExpression=t,this.isStateDependent=e!=="camera"&&!Kk(t.expression),this.globalStateRefs=TC(t.expression),this.interpolationType=i,this._globalState=n}evaluateWithoutErrorHandling(e,t,r,i,n,a){return this._globalState&&(e=U5(e,this._globalState)),this._styleExpression.evaluateWithoutErrorHandling(e,t,r,i,n,a)}evaluate(e,t,r,i,n,a){return this._globalState&&(e=U5(e,this._globalState)),this._styleExpression.evaluate(e,t,r,i,n,a)}interpolationFactor(e,t,r){return this.interpolationType?Sv.interpolationFactor(this.interpolationType,e,t,r):0}};jit=class Wit{constructor(t,r,i){this.isStateDependent=!1,this.globalStateRefs=new Set,this._globalState=null,Git(r),this._parameters=t,this._specification=i,this._rootKey=r,this._defaultValue=$it(i),this._warningHistory={};let n=Nit(this._parameters,this._specification);this.kind=n.kind,this.interpolationFactor=n.interpolationFactor,this.zoomStops=n.zoomStops,this.interpolationType=n.interpolationType,this._innerEvaluate=n.evaluate}evaluate(t,r){try{return this._innerEvaluate(t,r)}catch(i){let n=i instanceof Error?i.message:String(i),a=`|${n}`;return this._warningHistory[a]||(this._warningHistory[a]=!0,typeof console<"u"&&console.warn(Uit(this._rootKey,"",n,this._defaultValue))),this._defaultValue}}static deserialize(t){return new Wit(t._parameters,t._rootKey,t._specification)}static serialize(t){return{_parameters:t._parameters,_specification:t._specification,_rootKey:t._rootKey}}};Obr={type:"boolean",default:!1,transition:!1,"property-type":"data-driven",expression:{interpolated:!1,parameters:["zoom","feature"]}};jet={promoteId:Wbr};Wet=1114111,i_r=/^u\+(?:([0-9a-f]{1,6})(?:-([0-9a-f]{1,6}))?|([0-9a-f]{0,5}\?{1,6}))$/i;$et={"*"(){return[]},array:Qne,boolean:Ubr,number:Mq,color:bie,constants:Kit,enum:eC,filter:eae,function:Jit,layer:int,object:bp,source:nnt,light:ant,sky:ont,terrain:snt,projection:Qbr,projectionDefinition:e_r,string:px,formatted:$br,resolvedImage:Ybr,padding:Xbr,numberArray:Zbr,colorArray:Kbr,variableAnchorOffsetCollection:Jbr,sprite:lnt,state:unt,fontFaces:fnt};xp.source=_v(bv(nnt)),xp.sprite=_v(bv(lnt)),xp.glyphs=_v(bv(cnt)),xp.fontFaces=_v(bv(fnt)),xp.light=_v(bv(ant)),xp.sky=_v(bv(ont)),xp.terrain=_v(bv(snt)),xp.state=_v(bv(unt)),xp.layer=_v(bv(int)),xp.filter=_v(bv(eae)),xp.paintProperty=_v(bv(tnt)),xp.layoutProperty=_v(bv(rnt));a_r={type:"enum","property-type":"data-constant",expression:{interpolated:!1,parameters:["global-state"]},values:{visible:{},none:{}},transition:!1,default:"visible"},o_r=class{constructor(e,t,r){this._rootKey=t,this._globalState=r,this.setValue(e)}evaluate(){var e;return(e=this._literalValue)!=null?e:this._compiledValue.evaluate({})}setValue(e){if(e==null||e==="visible"||e==="none"){this._literalValue=e==="none"?"none":"visible",this._compiledValue=void 0,this._globalStateRefs=new Set;return}let t=Tq(e,this._rootKey,a_r,this._globalState);if(t.result==="error")throw this._literalValue="visible",this._compiledValue=void 0,Error(t.value.map(r=>`${r.key}: ${r.message}`).join(", "));this._literalValue=void 0,this._compiledValue=t.value,this._globalStateRefs=TC(t.value.expression)}getGlobalStateRefs(){return this._globalStateRefs}};_d=xp,tae=new Set(Object.keys(hn).filter(e=>e.startsWith("source_")).map(e=>e.slice(7).replaceAll("_","-")));wie=class dnt{constructor(t,r,i){let n=this.cells=[];if(t instanceof ArrayBuffer){this.arrayBuffer=t;let o=new Int32Array(this.arrayBuffer);t=o[0],r=o[1],i=o[2],this.d=r+2*i;for(let u=0;u=c[d+0]&&n>=c[d+1])?(s[h]=!0,o.push(f[h])):s[h]=!1}}}_forEachCell(t,r,i,n,a,o,s,l){let u=this._convertToCellCoord(t),f=this._convertToCellCoord(r),c=this._convertToCellCoord(i),h=this._convertToCellCoord(n);for(let d=u;d<=c;d++)for(let p=f;p<=h;p++){let v=this.d*p+d;if((!l||l(this._convertFromCellCoord(d),this._convertFromCellCoord(p),this._convertFromCellCoord(d+1),this._convertFromCellCoord(p+1)))&&a.call(this,t,r,i,n,v,o,s,l))return}}_convertFromCellCoord(t){return(t-this.padding)/this.scale}_convertToCellCoord(t){return Math.max(0,Math.min(this.d-1,Math.floor(t*this.scale)+this.padding))}toArrayBuffer(){if(this.arrayBuffer)return this.arrayBuffer;let t=this.cells,r=3+this.cells.length+1+1,i=0;for(let o of this.cells)i+=o.length;let n=new Int32Array(r+i+this.keys.length+this.bboxes.length);n[0]=this.extent,n[1]=this.n,n[2]=this.padding;let a=r;for(let o=0;or?(this.lastIntegerZoom=r+1,this.lastIntegerZoomTime=t):this.lastFloorZoomthis.zoomHistory.lastIntegerZoom?{fromScale:2,toScale:1,t:t+(1-t)*r}:{fromScale:.5,toScale:1,t:1-(1-r)*t}}},tC=class{constructor(e,t,r,i){this.property=e,this.value=t,this.expression=zbr(t===void 0?e.specification.default:t,r,e.specification,i)}isDataDriven(){return this.expression.kind==="source"||this.expression.kind==="composite"}getGlobalStateRefs(){return this.expression.globalStateRefs||new Set}readsGlobalState(e){let t=this.getGlobalStateRefs();return e.some(r=>t.has(r))}possiblyEvaluate(e,t,r){return this.property.possiblyEvaluate(this,e,t,r)}},Aie=class{constructor(e,t,r){this.property=e,this.value=new tC(e,void 0,t,r)}transitioned(e,t){return t.value===this.value?t:new Yet(this.property,this.value,t,js({},e.transition,this.transition),e.now)}untransitioned(){return new Yet(this.property,this.value,null,{},0)}},MC=class{constructor(e,t,r){this._properties=e,this._values=Object.create(e.defaultTransitionablePropertyValues),this._globalState=r,this._rootKey=t}_propertyRootKey(e){return`${this._rootKey}.${String(e)}`}hasProperty(e){return e in this._properties.defaultTransitionablePropertyValues}getValue(e){return xd(this._values[e].value.value)}setValue(e,t){Object.hasOwn(this._values,e)||(this._values[e]=new Aie(this._values[e].property,this._propertyRootKey(e),this._globalState)),this._values[e].value=new tC(this._values[e].property,t===null?void 0:xd(t),this._propertyRootKey(e),this._globalState)}setValues(e){for(let t in e){let r=e[t];t.endsWith("-transition")?this.setTransition(t.slice(0,-11),r):C1(this._values[t].value.value,r)||this.setValue(t,r)}}getTransition(e){return xd(this._values[e].transition)}setTransition(e,t){Object.hasOwn(this._values,e)||(this._values[e]=new Aie(this._values[e].property,this._propertyRootKey(e),this._globalState)),this._values[e].transition=xd(t)||void 0}retainPriorGlobalState(e,t,r){for(let i of Object.keys(r._values))for(let n=r._values[i];n;n=n.prior){let{value:a}=n;a.property.specification.transition&&!a.isDataDriven()&&a.expression._globalState===this._globalState&&a.readsGlobalState(e)&&(n.value=new tC(a.property,a.value,this._propertyRootKey(i),t))}}applyGlobalStateChange(e,t,r,i){this.retainPriorGlobalState(e,t,r);let n=!1;for(let a of Object.keys(this._values)){let{value:o}=this._values[a];o.readsGlobalState(e)&&(this.setValue(a,o.value),n=!0)}return n?this.transitioned(i,r):r}serialize(){let e={};for(let t of Object.keys(this._values)){let r=this.getValue(t);r!==void 0&&(e[t]=r);let i=this.getTransition(t);i!==void 0&&(e[`${t}-transition`]=i)}return e}transitioned(e,t){let r=new Xet(this._properties);for(let i of Object.keys(this._values))r._values[i]=this._values[i].transitioned(e,t._values[i]);return r}untransitioned(){let e=new Xet(this._properties);for(let t of Object.keys(this._values))e._values[t]=this._values[t].untransitioned();return e}},Yet=class{constructor(e,t,r,i,n){this.property=e,this.value=t,this.begin=n+i.delay||0,this.end=this.begin+i.duration||0,e.specification.transition&&(i.delay||i.duration)&&(this.prior=r)}possiblyEvaluate(e,t,r){let i=e.now||0,n=this.value.possiblyEvaluate(e,t,r),a=this.prior;if(!a)return n;if(i>this.end||this.value.isDataDriven())return this.prior=null,n;if(ii.zoomHistory.lastIntegerZoom?{from:e,to:t}:{from:r,to:t}}interpolate(e){return e}},ynt=class{constructor(e,t){this.specification=e,this.name=t}possiblyEvaluate(e,t,r,i){if(e.value!==void 0){if(e.expression.kind==="constant"){let n=e.expression.evaluate(t,null,{},r,i);return this._calculate(n,n,n,t)}return this._calculate(e.expression.evaluate(new Xu(Math.floor(t.zoom-1),t)),e.expression.evaluate(new Xu(Math.floor(t.zoom),t)),e.expression.evaluate(new Xu(Math.floor(t.zoom+1),t)),t)}}_calculate(e,t,r,i){return i.zoom>i.zoomHistory.lastIntegerZoom?{from:e,to:t}:{from:r,to:t}}interpolate(e){return e}},kq=class{constructor(e,t){this.specification=e,this.name=t}possiblyEvaluate(e,t,r,i){return!!e.expression.evaluate(t,null,{},r,i)}interpolate(){return!1}},Vh=class{constructor(e){this.properties=e,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},this.overridableProperties=[];for(let t in e){let r=e[t];r.specification.overridable&&this.overridableProperties.push(t);let i=this.defaultPropertyValues[t]=new tC(r,void 0,r.name,void 0),n=this.defaultTransitionablePropertyValues[t]=new Aie(r,r.name,void 0);this.defaultTransitioningPropertyValues[t]=n.untransitioned(),this.defaultPossiblyEvaluatedValues[t]=i.possiblyEvaluate({})}}};As("DataDrivenProperty",al),As("DataConstantProperty",ms),As("CrossFadedDataDrivenProperty",rC),As("CrossFadedProperty",ynt),As("ColorRampProperty",kq);Ket=" is a PAINT property not a LAYOUT property. Use get/setPaintProperty instead?",rie=" is a LAYOUT property not a PAINT property. Use get/setLayoutProperty instead?",P1=class extends ah{constructor(e,t,r){if(super(),this.id=e.id,this.type=e.type,this._globalState=r,this._featureFilter={filter:()=>!0,needGeometry:!1,getGlobalStateRefs:()=>new Set},this._visibilityExpression=s_r(this.visibility,`layers[${this.id}].layout.visibility`,r),e.type!=="custom"&&(this.metadata=e.metadata,this.minzoom=e.minzoom,this.maxzoom=e.maxzoom,e.type!=="background"&&(this.source=e.source,this.sourceLayer=e["source-layer"],this.filter=e.filter,this._featureFilter=G5(e.filter,`layers[${this.id}].filter`,r)),t.layout&&(this._unevaluatedLayout=new f_r(t.layout,`layers[${this.id}].layout`,r)),t.paint)){this._transitionablePaint=new MC(t.paint,`layers[${this.id}].paint`,r);for(let i in e.paint)this.setPaintProperty(i,e.paint[i],{validate:!1});for(let i in e.layout)this.setLayoutProperty(i,e.layout[i],{validate:!1});this._transitioningPaint=this._transitionablePaint.untransitioned(),this.paint=new Eq(t.paint)}}setFilter(e){this.filter=e,this._featureFilter=G5(e,`layers[${this.id}].filter`,this._globalState)}getCrossfadeParameters(){return this._crossfadeParameters}getLayoutProperty(e){var t;if(e==="visibility")return this.visibility;if((t=this._transitionablePaint)!=null&&t.hasProperty(e))throw Error(e+Ket);if(!this._unevaluatedLayout)throw Error(`Cannot get layout property "${e}" on layer type "${this.type}" which has no layout properties.`);return this._unevaluatedLayout.getValue(e)}getLayoutAffectingGlobalStateRefs(){let e=new Set;for(let t of this._visibilityExpression.getGlobalStateRefs())e.add(t);if(this._unevaluatedLayout)for(let t in this._unevaluatedLayout._values){let r=this._unevaluatedLayout._values[t];for(let i of r.getGlobalStateRefs())e.add(i)}for(let t of this._featureFilter.getGlobalStateRefs())e.add(t);return e}getPaintAffectingGlobalStateRefs(){var t;let e=new globalThis.Map;if(this._transitionablePaint)for(let r in this._transitionablePaint._values){let i=this._transitionablePaint._values[r].value;for(let n of i.getGlobalStateRefs()){let a=(t=e.get(n))!=null?t:[];a.push({name:r,value:i.value}),e.set(n,a)}}return e}getVisibilityAffectingGlobalStateRefs(){return this._visibilityExpression.getGlobalStateRefs()}setLayoutProperty(e,t,r={}){var i;if(e==="visibility"){this.visibility=t,this._visibilityExpression.setValue(t),this.recalculateVisibility();return}if((i=this._transitionablePaint)!=null&&i.hasProperty(e)){this.fire(new tl(Error(e+Ket)));return}t!=null&&this._validate(_d.layoutProperty,`layers.${this.id}.layout.${e}`,e,t,r)||this._unevaluatedLayout.setValue(e,t)}getPaintProperty(e){var t,r;if(e.endsWith("-transition")){let i=e.slice(0,-11);if(i==="visibility"||(t=this._unevaluatedLayout)!=null&&t.hasProperty(i))throw Error(e+rie);return this._transitionablePaint.getTransition(i)}if(e==="visibility"||(r=this._unevaluatedLayout)!=null&&r.hasProperty(e))throw Error(e+rie);return this._transitionablePaint.getValue(e)}setPaintProperty(e,t,r={}){var i;if(e==="visibility"||(i=this._unevaluatedLayout)!=null&&i.hasProperty(e))return this.fire(new tl(Error(e+rie))),!1;if(t!=null&&this._validate(_d.paintProperty,`layers.${this.id}.paint.${e}`,e,t,r))return!1;if(e.endsWith("-transition"))return this._transitionablePaint.setTransition(e.slice(0,-11),t||void 0),!1;{let n=this._transitionablePaint._values[e],a=n.property.specification["property-type"]==="cross-faded-data-driven",o=n.value.isDataDriven(),s=n.value;this._transitionablePaint.setValue(e,t),this._handleSpecialPaintPropertyUpdate(e);let l=this._transitionablePaint._values[e].value;return l.isDataDriven()||o||a||this._handleOverridablePaintPropertyUpdate(e,s,l)}}_handleSpecialPaintPropertyUpdate(e){}_handleOverridablePaintPropertyUpdate(e,t,r){return!1}isHidden(e=this.minzoom,t=!1){return this.minzoom&&e<(t?Math.floor(this.minzoom):this.minzoom)||this.maxzoom&&e>=this.maxzoom?!0:this._evaluatedVisibility==="none"}updateTransitions(e){this._transitioningPaint=this._transitionablePaint.transitioned(e,this._transitioningPaint)}retainPriorGlobalState(e,t){var r;(r=this._transitionablePaint)==null||r.retainPriorGlobalState(e,t,this._transitioningPaint)}hasTransition(){return this._transitioningPaint.hasTransition()}recalculateVisibility(){this._evaluatedVisibility=this._visibilityExpression.evaluate()}recalculate(e,t){e.getCrossfadeParameters&&(this._crossfadeParameters=e.getCrossfadeParameters()),this._unevaluatedLayout&&(this.layout=this._unevaluatedLayout.possiblyEvaluate(e,void 0,t)),this.paint=this._transitioningPaint.possiblyEvaluate(e,void 0,t)}serialize(){var t,r;let e={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:(t=this._unevaluatedLayout)==null?void 0:t.serialize(),paint:(r=this._transitionablePaint)==null?void 0:r.serialize()};return this.visibility&&(e.layout||(e.layout={}),e.layout.visibility=this.visibility),Dne(e,(i,n)=>i!==void 0&&!(n==="layout"&&!Object.keys(i).length)&&!(n==="paint"&&!Object.keys(i).length))}_validate(e,t,r,i,n={}){return J5(this,e,{key:t,layerType:this.type,objectKey:r,value:i},n)}is3D(){return!1}isTileClipped(){return!1}hasOffscreenPass(){return!1}resize(){}isStateDependent(){for(let e in this.paint._values){let t=this.paint.get(e);if(t instanceof Tv&&V5(t.property.specification)&&(t.value.kind==="source"||t.value.kind==="composite")&&t.value.isStateDependent)return!0}return!1}},c_r=()=>Jet||(Jet=new Vh({"raster-opacity":new ms(hn.paint_raster["raster-opacity"],"raster-opacity"),"raster-hue-rotate":new ms(hn.paint_raster["raster-hue-rotate"],"raster-hue-rotate"),"raster-brightness-min":new ms(hn.paint_raster["raster-brightness-min"],"raster-brightness-min"),"raster-brightness-max":new ms(hn.paint_raster["raster-brightness-max"],"raster-brightness-max"),"raster-saturation":new ms(hn.paint_raster["raster-saturation"],"raster-saturation"),"raster-contrast":new ms(hn.paint_raster["raster-contrast"],"raster-contrast"),resampling:new ms(hn.paint_raster.resampling,"resampling"),"raster-resampling":new ms(hn.paint_raster["raster-resampling"],"raster-resampling"),"raster-fade-duration":new ms(hn.paint_raster["raster-fade-duration"],"raster-fade-duration")})),h_r={get paint(){return c_r()}},Cq=e=>e.type==="raster",d_r=class extends P1{constructor(e,t){super(e,h_r,t)}},p_r={Int8:Int8Array,Uint8:Uint8Array,Int16:Int16Array,Uint16:Uint16Array,Int32:Int32Array,Uint32:Uint32Array,Float32:Float32Array},SC=class{constructor(e,t){this._structArray=e,this._pos1=t*this.size,this._pos2=this._pos1/2,this._pos4=this._pos1/4,this._pos8=this._pos1/8}},wc=class{constructor(){this.isTransferred=!1,this.capacity=-1,this.resize(0)}static serialize(e,t){return e._trim(),t&&(e.isTransferred=!0,t.push(e.arrayBuffer)),{length:e.length,arrayBuffer:e.arrayBuffer}}static deserialize(e){let t=Object.create(this.prototype);return t.arrayBuffer=e.arrayBuffer,t.length=e.length,t.capacity=e.arrayBuffer.byteLength/t.bytesPerElement,t._refreshViews(),t}_trim(){this.length!==this.capacity&&(this.capacity=this.length,this.arrayBuffer=this.arrayBuffer.slice(0,this.length*this.bytesPerElement),this._refreshViews())}clear(){this.length=0}resize(e){this.reserve(e),this.length=e}reserve(e){if(e>this.capacity){this.capacity=Math.max(e,Math.floor(this.capacity*5),128),this.arrayBuffer=new ArrayBuffer(this.capacity*this.bytesPerElement);let t=this.uint8;this._refreshViews(),t&&this.uint8.set(t)}}_refreshViews(){throw Error("_refreshViews() must be implemented by each concrete StructArray layout")}freeBufferAfterUpload(){this.arrayBuffer=new ArrayBuffer(0),this._refreshViews()}};iC=class extends wc{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,t){let r=this.length;return this.resize(r+1),this.emplace(r,e,t)}emplace(e,t,r){let i=e*2;return this.int16[i+0]=t,this.int16[i+1]=r,e}};iC.prototype.bytesPerElement=4,As("StructArrayLayout2i4",iC);V7=class extends wc{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,t,r){let i=this.length;return this.resize(i+1),this.emplace(i,e,t,r)}emplace(e,t,r,i){let n=e*3;return this.int16[n+0]=t,this.int16[n+1]=r,this.int16[n+2]=i,e}};V7.prototype.bytesPerElement=6,As("StructArrayLayout3i6",V7);Tie=class extends wc{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,t,r,i){let n=this.length;return this.resize(n+1),this.emplace(n,e,t,r,i)}emplace(e,t,r,i,n){let a=e*4;return this.int16[a+0]=t,this.int16[a+1]=r,this.int16[a+2]=i,this.int16[a+3]=n,e}};Tie.prototype.bytesPerElement=8,As("StructArrayLayout4i8",Tie);Mie=class extends wc{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,t,r,i,n,a){let o=this.length;return this.resize(o+1),this.emplace(o,e,t,r,i,n,a)}emplace(e,t,r,i,n,a,o){let s=e*6;return this.int16[s+0]=t,this.int16[s+1]=r,this.int16[s+2]=i,this.int16[s+3]=n,this.int16[s+4]=a,this.int16[s+5]=o,e}};Mie.prototype.bytesPerElement=12,As("StructArrayLayout2i4i12",Mie);Sie=class extends wc{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,t,r,i,n,a){let o=this.length;return this.resize(o+1),this.emplace(o,e,t,r,i,n,a)}emplace(e,t,r,i,n,a,o){let s=e*4,l=e*8;return this.int16[s+0]=t,this.int16[s+1]=r,this.uint8[l+4]=i,this.uint8[l+5]=n,this.uint8[l+6]=a,this.uint8[l+7]=o,e}};Sie.prototype.bytesPerElement=8,As("StructArrayLayout2i4ub8",Sie);nC=class extends wc{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,t){let r=this.length;return this.resize(r+1),this.emplace(r,e,t)}emplace(e,t,r){let i=e*2;return this.float32[i+0]=t,this.float32[i+1]=r,e}};nC.prototype.bytesPerElement=8,As("StructArrayLayout2f8",nC);Eie=class extends wc{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,t,r,i,n,a,o,s,l,u){let f=this.length;return this.resize(f+1),this.emplace(f,e,t,r,i,n,a,o,s,l,u)}emplace(e,t,r,i,n,a,o,s,l,u,f){let c=e*10;return this.uint16[c+0]=t,this.uint16[c+1]=r,this.uint16[c+2]=i,this.uint16[c+3]=n,this.uint16[c+4]=a,this.uint16[c+5]=o,this.uint16[c+6]=s,this.uint16[c+7]=l,this.uint16[c+8]=u,this.uint16[c+9]=f,e}};Eie.prototype.bytesPerElement=20,As("StructArrayLayout10ui20",Eie);kie=class extends wc{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,t,r,i,n,a,o,s){let l=this.length;return this.resize(l+1),this.emplace(l,e,t,r,i,n,a,o,s)}emplace(e,t,r,i,n,a,o,s,l){let u=e*8;return this.uint16[u+0]=t,this.uint16[u+1]=r,this.uint16[u+2]=i,this.uint16[u+3]=n,this.uint16[u+4]=a,this.uint16[u+5]=o,this.uint16[u+6]=s,this.uint16[u+7]=l,e}};kie.prototype.bytesPerElement=16,As("StructArrayLayout8ui16",kie);Cie=class extends wc{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,t,r,i,n,a,o,s,l,u,f,c,h){let d=this.length;return this.resize(d+1),this.emplace(d,e,t,r,i,n,a,o,s,l,u,f,c,h)}emplace(e,t,r,i,n,a,o,s,l,u,f,c,h,d){let p=e*14,v=e*7;return this.int16[p+0]=t,this.int16[p+1]=r,this.int16[p+2]=i,this.int16[p+3]=n,this.uint16[p+4]=a,this.uint16[p+5]=o,this.uint16[p+6]=s,this.uint16[p+7]=l,this.int16[p+8]=u,this.int16[p+9]=f,this.int16[p+10]=c,this.int16[p+11]=h,this.float32[v+6]=d,e}};Cie.prototype.bytesPerElement=28,As("StructArrayLayout4i4ui4i1f28",Cie);Die=class extends wc{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,t,r){let i=this.length;return this.resize(i+1),this.emplace(i,e,t,r)}emplace(e,t,r,i){let n=e*3;return this.float32[n+0]=t,this.float32[n+1]=r,this.float32[n+2]=i,e}};Die.prototype.bytesPerElement=12,As("StructArrayLayout3f12",Die);Fie=class extends wc{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)}emplaceBack(e){let t=this.length;return this.resize(t+1),this.emplace(t,e)}emplace(e,t){let r=e*1;return this.uint32[r+0]=t,e}};Fie.prototype.bytesPerElement=4,As("StructArrayLayout1ul4",Fie);Lie=class extends wc{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,t,r,i,n,a,o,s,l){let u=this.length;return this.resize(u+1),this.emplace(u,e,t,r,i,n,a,o,s,l)}emplace(e,t,r,i,n,a,o,s,l,u){let f=e*10,c=e*5;return this.int16[f+0]=t,this.int16[f+1]=r,this.int16[f+2]=i,this.int16[f+3]=n,this.int16[f+4]=a,this.int16[f+5]=o,this.uint32[c+3]=s,this.uint16[f+8]=l,this.uint16[f+9]=u,e}};Lie.prototype.bytesPerElement=20,As("StructArrayLayout6i1ul2ui20",Lie);Pie=class extends wc{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,t,r,i,n,a){let o=this.length;return this.resize(o+1),this.emplace(o,e,t,r,i,n,a)}emplace(e,t,r,i,n,a,o){let s=e*6;return this.int16[s+0]=t,this.int16[s+1]=r,this.int16[s+2]=i,this.int16[s+3]=n,this.int16[s+4]=a,this.int16[s+5]=o,e}};Pie.prototype.bytesPerElement=12,As("StructArrayLayout2i2i2i12",Pie);zie=class extends wc{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,t,r,i,n){let a=this.length;return this.resize(a+1),this.emplace(a,e,t,r,i,n)}emplace(e,t,r,i,n,a){let o=e*4,s=e*8;return this.float32[o+0]=t,this.float32[o+1]=r,this.float32[o+2]=i,this.int16[s+6]=n,this.int16[s+7]=a,e}};zie.prototype.bytesPerElement=16,As("StructArrayLayout2f1f2i16",zie);Iie=class extends wc{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,t,r,i,n,a){let o=this.length;return this.resize(o+1),this.emplace(o,e,t,r,i,n,a)}emplace(e,t,r,i,n,a,o){let s=e*16,l=e*4,u=e*8;return this.uint8[s+0]=t,this.uint8[s+1]=r,this.float32[l+1]=i,this.float32[l+2]=n,this.int16[u+6]=a,this.int16[u+7]=o,e}};Iie.prototype.bytesPerElement=16,As("StructArrayLayout2ub2f2i16",Iie);U7=class extends wc{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,t,r){let i=this.length;return this.resize(i+1),this.emplace(i,e,t,r)}emplace(e,t,r,i){let n=e*3;return this.uint16[n+0]=t,this.uint16[n+1]=r,this.uint16[n+2]=i,e}};U7.prototype.bytesPerElement=6,As("StructArrayLayout3ui6",U7);Rie=class extends wc{_refreshViews(){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)}emplaceBack(e,t,r,i,n,a,o,s,l,u,f,c,h,d,p,v,y,m){let w=this.length;return this.resize(w+1),this.emplace(w,e,t,r,i,n,a,o,s,l,u,f,c,h,d,p,v,y,m)}emplace(e,t,r,i,n,a,o,s,l,u,f,c,h,d,p,v,y,m,w){let _=e*26,b=e*13,M=e*52;return this.int16[_+0]=t,this.int16[_+1]=r,this.uint16[_+2]=i,this.uint16[_+3]=n,this.uint32[b+2]=a,this.uint32[b+3]=o,this.uint32[b+4]=s,this.uint16[_+10]=l,this.uint16[_+11]=u,this.uint16[_+12]=f,this.float32[b+7]=c,this.float32[b+8]=h,this.uint8[M+36]=d,this.uint8[M+37]=p,this.uint8[M+38]=v,this.uint32[b+10]=y,this.int16[_+22]=m,this.float32[b+12]=w,e}};Rie.prototype.bytesPerElement=52,As("StructArrayLayout2i2ui3ul3ui2f3ub1ul1i1f52",Rie);Bie=class extends wc{_refreshViews(){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)}emplaceBack(e,t,r,i,n,a,o,s,l,u,f,c,h,d,p,v,y,m,w,_,b,M,x,T,A,g,E,S,C){let k=this.length;return this.resize(k+1),this.emplace(k,e,t,r,i,n,a,o,s,l,u,f,c,h,d,p,v,y,m,w,_,b,M,x,T,A,g,E,S,C)}emplace(e,t,r,i,n,a,o,s,l,u,f,c,h,d,p,v,y,m,w,_,b,M,x,T,A,g,E,S,C,k){let D=e*34,F=e*17;return this.int16[D+0]=t,this.int16[D+1]=r,this.int16[D+2]=i,this.int16[D+3]=n,this.int16[D+4]=a,this.int16[D+5]=o,this.int16[D+6]=s,this.int16[D+7]=l,this.uint16[D+8]=u,this.uint16[D+9]=f,this.uint16[D+10]=c,this.uint16[D+11]=h,this.uint16[D+12]=d,this.uint16[D+13]=p,this.uint16[D+14]=v,this.uint16[D+15]=y,this.uint16[D+16]=m,this.uint16[D+17]=w,this.uint16[D+18]=_,this.uint16[D+19]=b,this.uint16[D+20]=M,this.uint16[D+21]=x,this.uint16[D+22]=T,this.uint32[F+12]=A,this.float32[F+13]=g,this.float32[F+14]=E,this.uint16[D+30]=S,this.uint16[D+31]=C,this.float32[F+16]=k,e}};Bie.prototype.bytesPerElement=68,As("StructArrayLayout8i15ui1ul2f2ui1f68",Bie);G7=class extends wc{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e){let t=this.length;return this.resize(t+1),this.emplace(t,e)}emplace(e,t){let r=e*1;return this.float32[r+0]=t,e}};G7.prototype.bytesPerElement=4,As("StructArrayLayout1f4",G7);qie=class extends wc{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,t,r){let i=this.length;return this.resize(i+1),this.emplace(i,e,t,r)}emplace(e,t,r,i){let n=e*6,a=e*3;return this.uint16[n+0]=t,this.float32[a+1]=r,this.float32[a+2]=i,e}};qie.prototype.bytesPerElement=12,As("StructArrayLayout1ui2f12",qie);Oie=class extends wc{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,t,r){let i=this.length;return this.resize(i+1),this.emplace(i,e,t,r)}emplace(e,t,r,i){let n=e*2,a=e*4;return this.uint32[n+0]=t,this.uint16[a+2]=r,this.uint16[a+3]=i,e}};Oie.prototype.bytesPerElement=8,As("StructArrayLayout1ul2ui8",Oie);Nie=class extends wc{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,t){let r=this.length;return this.resize(r+1),this.emplace(r,e,t)}emplace(e,t,r){let i=e*2;return this.uint16[i+0]=t,this.uint16[i+1]=r,e}};Nie.prototype.bytesPerElement=4,As("StructArrayLayout2ui4",Nie);Vie=class extends wc{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e){let t=this.length;return this.resize(t+1),this.emplace(t,e)}emplace(e,t){let r=e*1;return this.uint16[r+0]=t,e}};Vie.prototype.bytesPerElement=2,As("StructArrayLayout1ui2",Vie);Uie=class extends wc{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,t,r,i){let n=this.length;return this.resize(n+1),this.emplace(n,e,t,r,i)}emplace(e,t,r,i,n){let a=e*4;return this.float32[a+0]=t,this.float32[a+1]=r,this.float32[a+2]=i,this.float32[a+3]=n,e}};Uie.prototype.bytesPerElement=16,As("StructArrayLayout4f16",Uie);gnt=class extends SC{get anchorPointX(){return this._structArray.int16[this._pos2+0]}get anchorPointY(){return this._structArray.int16[this._pos2+1]}get x1(){return this._structArray.int16[this._pos2+2]}get y1(){return this._structArray.int16[this._pos2+3]}get x2(){return this._structArray.int16[this._pos2+4]}get y2(){return this._structArray.int16[this._pos2+5]}get featureIndex(){return this._structArray.uint32[this._pos4+3]}get sourceLayerIndex(){return this._structArray.uint16[this._pos2+8]}get bucketIndex(){return this._structArray.uint16[this._pos2+9]}get anchorPoint(){return new Jr(this.anchorPointX,this.anchorPointY)}};gnt.prototype.size=20;nae=class extends Lie{get(e){return new gnt(this,e)}};As("CollisionBoxArray",nae);xnt=class extends SC{get anchorX(){return this._structArray.int16[this._pos2+0]}get anchorY(){return this._structArray.int16[this._pos2+1]}get glyphStartIndex(){return this._structArray.uint16[this._pos2+2]}get numGlyphs(){return this._structArray.uint16[this._pos2+3]}get vertexStartIndex(){return this._structArray.uint32[this._pos4+2]}get lineStartIndex(){return this._structArray.uint32[this._pos4+3]}get lineLength(){return this._structArray.uint32[this._pos4+4]}get segment(){return this._structArray.uint16[this._pos2+10]}get lowerSize(){return this._structArray.uint16[this._pos2+11]}get upperSize(){return this._structArray.uint16[this._pos2+12]}get lineOffsetX(){return this._structArray.float32[this._pos4+7]}get lineOffsetY(){return this._structArray.float32[this._pos4+8]}get writingMode(){return this._structArray.uint8[this._pos1+36]}get placedOrientation(){return this._structArray.uint8[this._pos1+37]}set placedOrientation(e){this._structArray.uint8[this._pos1+37]=e}get hidden(){return this._structArray.uint8[this._pos1+38]}set hidden(e){this._structArray.uint8[this._pos1+38]=e}get crossTileID(){return this._structArray.uint32[this._pos4+10]}set crossTileID(e){this._structArray.uint32[this._pos4+10]=e}get associatedIconIndex(){return this._structArray.int16[this._pos2+22]}get heightOffset(){return this._structArray.float32[this._pos4+12]}};xnt.prototype.size=52;bnt=class extends Rie{get(e){return new xnt(this,e)}};As("PlacedSymbolArray",bnt);_nt=class extends SC{get anchorX(){return this._structArray.int16[this._pos2+0]}get anchorY(){return this._structArray.int16[this._pos2+1]}get rightJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+2]}get centerJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+3]}get leftJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+4]}get verticalPlacedTextSymbolIndex(){return this._structArray.int16[this._pos2+5]}get placedIconSymbolIndex(){return this._structArray.int16[this._pos2+6]}get verticalPlacedIconSymbolIndex(){return this._structArray.int16[this._pos2+7]}get key(){return this._structArray.uint16[this._pos2+8]}get textBoxStartIndex(){return this._structArray.uint16[this._pos2+9]}get textBoxEndIndex(){return this._structArray.uint16[this._pos2+10]}get verticalTextBoxStartIndex(){return this._structArray.uint16[this._pos2+11]}get verticalTextBoxEndIndex(){return this._structArray.uint16[this._pos2+12]}get iconBoxStartIndex(){return this._structArray.uint16[this._pos2+13]}get iconBoxEndIndex(){return this._structArray.uint16[this._pos2+14]}get verticalIconBoxStartIndex(){return this._structArray.uint16[this._pos2+15]}get verticalIconBoxEndIndex(){return this._structArray.uint16[this._pos2+16]}get featureIndex(){return this._structArray.uint16[this._pos2+17]}get numHorizontalGlyphVertices(){return this._structArray.uint16[this._pos2+18]}get numVerticalGlyphVertices(){return this._structArray.uint16[this._pos2+19]}get numIconVertices(){return this._structArray.uint16[this._pos2+20]}get numVerticalIconVertices(){return this._structArray.uint16[this._pos2+21]}get useRuntimeCollisionCircles(){return this._structArray.uint16[this._pos2+22]}get crossTileID(){return this._structArray.uint32[this._pos4+12]}set crossTileID(e){this._structArray.uint32[this._pos4+12]=e}get textBoxScale(){return this._structArray.float32[this._pos4+13]}get collisionCircleDiameter(){return this._structArray.float32[this._pos4+14]}get textAnchorOffsetStartIndex(){return this._structArray.uint16[this._pos2+30]}get textAnchorOffsetEndIndex(){return this._structArray.uint16[this._pos2+31]}get heightOffset(){return this._structArray.float32[this._pos4+16]}};_nt.prototype.size=68;wnt=class extends Bie{get(e){return new _nt(this,e)}};As("SymbolInstanceArray",wnt);Ant=class extends G7{getoffsetX(e){return this.float32[e*1+0]}};As("GlyphOffsetArray",Ant);Tnt=class extends V7{getx(e){return this.int16[e*3+0]}gety(e){return this.int16[e*3+1]}gettileUnitDistanceFromAnchor(e){return this.int16[e*3+2]}};As("SymbolLineVertexArray",Tnt);Mnt=class extends SC{get textAnchor(){return this._structArray.uint16[this._pos2+0]}get textOffset0(){return this._structArray.float32[this._pos4+1]}get textOffset1(){return this._structArray.float32[this._pos4+2]}};Mnt.prototype.size=12;Snt=class extends qie{get(e){return new Mnt(this,e)}};As("TextAnchorOffsetArray",Snt);Ent=class extends SC{get featureIndex(){return this._structArray.uint32[this._pos4+0]}get sourceLayerIndex(){return this._structArray.uint16[this._pos2+2]}get bucketIndex(){return this._structArray.uint16[this._pos2+3]}};Ent.prototype.size=8;knt=class extends Oie{get(e){return new Ent(this,e)}};As("FeatureIndexArray",knt);og=class extends iC{},Cnt=class extends V7{},Dnt=class extends Tie{},m_r=class extends iC{},y_r=class extends iC{},g_r=class extends Mie{},x_r=class extends Sie{},b_r=class extends nC{},_5=class extends Eie{},ett=class extends kie{},__r=class extends Cie{},w_r=class extends Die{},A_r=class extends Fie{},ttt=class extends Pie{},Fnt=class extends zie{},T_r=class extends Iie{},Lnt=class extends U7{},z1=class extends U7{},Gie=class extends Nie{},Pnt=class extends Vie{},Hie=dc([{name:"a_pos",components:2,type:"Int16"}],4),M_r=Hie.members;Hie.size,Hie.alignment;nc=class S5{constructor(t=[]){this._forceNewSegmentOnNextPrepare=!1,this.segments=t}prepareSegment(t,r,i,n){let a=this.segments[this.segments.length-1];return t>S5.MAX_VERTEX_ARRAY_LENGTH&&uu(`Max vertices per segment is ${S5.MAX_VERTEX_ARRAY_LENGTH}: bucket requested ${t}. Consider using the \`fillLargeMeshArrays\` function if you require meshes with more than ${S5.MAX_VERTEX_ARRAY_LENGTH} vertices.`),this._forceNewSegmentOnNextPrepare||!a||a.vertexLength+t>S5.MAX_VERTEX_ARRAY_LENGTH||a.sortKey!==n?this.createNewSegment(r,i,n):a}createNewSegment(t,r,i){let n={vertexOffset:t.length,primitiveOffset:r.length,vertexLength:0,primitiveLength:0,vaos:{}};return i!==void 0&&(n.sortKey=i),this._forceNewSegmentOnNextPrepare=!1,this.segments.push(n),n}getOrCreateLatestSegment(t,r,i){return this.prepareSegment(0,t,r,i)}forceNewSegmentOnNextPrepare(){this._forceNewSegmentOnNextPrepare=!0}get(){return this.segments}destroy(){for(let t of this.segments)for(let r in t.vaos)t.vaos[r].destroy()}static simpleSegment(t,r,i,n){return new S5([{vertexOffset:t,primitiveOffset:r,vertexLength:i,primitiveLength:n,vaos:{},sortKey:0}])}};nc.MAX_VERTEX_ARRAY_LENGTH=2**16-1,As("SegmentVector",nc);S_r=dc([{name:"a_pattern_from",components:4,type:"Uint16"},{name:"a_pattern_to",components:4,type:"Uint16"},{name:"a_pixel_ratio_from",components:1,type:"Uint16"},{name:"a_pixel_ratio_to",components:1,type:"Uint16"}]),E_r=dc([{name:"a_dasharray_from",components:4,type:"Uint16"},{name:"a_dasharray_to",components:4,type:"Uint16"}]),k_r=bne(((e,t)=>{function r(i,n){for(var a=i.length&3,o=i.length-a,s=n,l,u=3432918353,f=461845907,c,h=0;h>>16)*u&65535)<<16)&4294967295,c=c<<15|c>>>17,c=(c&65535)*f+(((c>>>16)*f&65535)<<16)&4294967295,s^=c,s=s<<13|s>>>19,l=(s&65535)*5+(((s>>>16)*5&65535)<<16)&4294967295,s=(l&65535)+27492+(((l>>>16)+58964&65535)<<16);switch(c=0,a){case 3:c^=(i.charCodeAt(h+2)&255)<<16;case 2:c^=(i.charCodeAt(h+1)&255)<<8;case 1:c^=i.charCodeAt(h)&255,c=(c&65535)*u+(((c>>>16)*u&65535)<<16)&4294967295,c=c<<15|c>>>17,c=(c&65535)*f+(((c>>>16)*f&65535)<<16)&4294967295,s^=c}return s^=i.length,s^=s>>>16,s=(s&65535)*2246822507+(((s>>>16)*2246822507&65535)<<16)&4294967295,s^=s>>>13,s=(s&65535)*3266489909+(((s>>>16)*3266489909&65535)<<16)&4294967295,s^=s>>>16,s>>>0}t!==void 0&&(t.exports=r)})),C_r=bne(((e,t)=>{function r(i,n){for(var a=i.length,o=n^a,s=0,l;a>=4;)l=i.charCodeAt(s)&255|(i.charCodeAt(++s)&255)<<8|(i.charCodeAt(++s)&255)<<16|(i.charCodeAt(++s)&255)<<24,l=(l&65535)*1540483477+(((l>>>16)*1540483477&65535)<<16),l^=l>>>24,l=(l&65535)*1540483477+(((l>>>16)*1540483477&65535)<<16),o=(o&65535)*1540483477+(((o>>>16)*1540483477&65535)<<16)^l,a-=4,++s;switch(a){case 3:o^=(i.charCodeAt(s+2)&255)<<16;case 2:o^=(i.charCodeAt(s+1)&255)<<8;case 1:o^=i.charCodeAt(s)&255,o=(o&65535)*1540483477+(((o>>>16)*1540483477&65535)<<16)}return o^=o>>>13,o=(o&65535)*1540483477+(((o>>>16)*1540483477&65535)<<16),o^=o>>>15,o>>>0}t.exports=r})),H7=G2r(bne(((e,t)=>{var r=k_r(),i=C_r();t.exports=r,t.exports.murmur3=r,t.exports.murmur2=i}))(),1),znt=class Int{constructor(){this.ids=[],this.positions=[],this.indexed=!1}add(t,r,i,n){this.ids.push(itt(t)),this.positions.push(r,i,n)}getPositions(t){if(!this.indexed)throw Error("Trying to get index, but feature positions are not indexed");let r=itt(t),i=0,n=this.ids.length-1;for(;i>1;this.ids[o]>=r?n=o:i=o+1}let a=[];for(;this.ids[i]===r;){let o=this.positions[3*i],s=this.positions[3*i+1],l=this.positions[3*i+2];a.push({index:o,start:s,end:l}),i++}return a}static serialize(t,r){let i=new Float64Array(t.ids),n=new Uint32Array(t.positions);return jie(i,n,0,i.length-1),r&&r.push(i.buffer,n.buffer),{ids:i,positions:n}}static deserialize(t){let r=new Int;return r.ids=t.ids,r.positions=t.positions,r.indexed=!0,r}};As("FeaturePositionMap",znt);sg=class{constructor(e,t){this.gl=e.gl,this.location=t}},rl=class extends sg{constructor(e,t){super(e,t),this.current=0}set(e){this.current!==e&&(this.current=e,this.gl.uniform1i(this.location,e))}},gs=class extends sg{constructor(e,t){super(e,t),this.current=0}set(e){this.current!==e&&(this.current=e,this.gl.uniform1f(this.location,e))}},Jl=class extends sg{constructor(e,t){super(e,t),this.current=[0,0]}set(e){(e[0]!==this.current[0]||e[1]!==this.current[1])&&(this.current=e,this.gl.uniform2f(this.location,e[0],e[1]))}},nd=class extends sg{constructor(e,t){super(e,t),this.current=[0,0,0]}set(e){(e[0]!==this.current[0]||e[1]!==this.current[1]||e[2]!==this.current[2])&&(this.current=e,this.gl.uniform3f(this.location,e[0],e[1],e[2]))}},Q5=class extends sg{constructor(e,t){super(e,t),this.current=[0,0,0,0]}set(e){(e[0]!==this.current[0]||e[1]!==this.current[1]||e[2]!==this.current[2]||e[3]!==this.current[3])&&(this.current=e,this.gl.uniform4f(this.location,e[0],e[1],e[2],e[3]))}},lg=class extends sg{constructor(e,t){super(e,t),this.current=Ol.transparent}set(e){(e.r!==this.current.r||e.g!==this.current.g||e.b!==this.current.b||e.a!==this.current.a)&&(this.current=e,this.gl.uniform4f(this.location,e.r,e.g,e.b,e.a))}},aae=class extends sg{constructor(e,t){super(e,t),this.current=[]}set(e){if(e!=this.current){this.current=e;let t=new Float32Array(e.length*4);for(let r=0;r`u_${i}`),this.type=r}setUniform(e,t,r){e.set(r.constantOr(this.value))}getBinding(e,t,r){return this.type==="color"?new lg(e,t):new gs(e,t)}},e3=class{constructor(e,t){this.uniformNames=t.map(r=>`u_${r}`),this.patternFrom=null,this.patternTo=null,this.pixelRatioFrom=1,this.pixelRatioTo=1}setConstantPatternPositions(e,t){this.pixelRatioFrom=t.pixelRatio,this.pixelRatioTo=e.pixelRatio,this.patternFrom=t.tlbr,this.patternTo=e.tlbr}setConstantDashPositions(e,t){this.dashTo=[0,e.y,e.height,e.width],this.dashFrom=[0,t.y,t.height,t.width]}setUniform(e,t,r,i){let n=null;i==="u_pattern_to"?n=this.patternTo:i==="u_pattern_from"?n=this.patternFrom:i==="u_dasharray_to"?n=this.dashTo:i==="u_dasharray_from"?n=this.dashFrom:i==="u_pixel_ratio_to"?n=this.pixelRatioTo:i==="u_pixel_ratio_from"&&(n=this.pixelRatioFrom),n!==null&&e.set(n)}getBinding(e,t,r){return r.startsWith("u_pattern")||r.startsWith("u_dasharray_")?new Q5(e,t):new gs(e,t)}},Xy=class{constructor(e,t,r,i){this.expression=e,this.type=r,this.maxValue=0,this.paintVertexAttributes=t.map(n=>({name:`a_${n}`,type:"Float32",components:r==="color"?2:1,offset:0})),this.paintVertexArray=new i}populatePaintArray(e,t,r){let i=this.paintVertexArray.length,n=this.expression.evaluate(new Xu(0,r),t,{},r.canonical,[],r.formattedSection);this.paintVertexArray.resize(e),this._setPaintValue(i,e,n)}updatePaintArray(e,t,r,i,n){let a=this.expression.evaluate(new Xu(0,n),r,i);this._setPaintValue(e,t,a)}_setPaintValue(e,t,r){if(this.type==="color"){let i=Wie(r);for(let n=e;n`u_${o}_t`),this.type=r,this.useIntegerZoom=i,this.zoom=n,this.maxValue=0,this.paintVertexAttributes=t.map(o=>({name:`a_${o}`,type:"Float32",components:r==="color"?4:2,offset:0})),this.paintVertexArray=new a}populatePaintArray(e,t,r){let i=this.expression.evaluate(new Xu(this.zoom,r),t,{},r.canonical,[],r.formattedSection),n=this.expression.evaluate(new Xu(this.zoom+1,r),t,{},r.canonical,[],r.formattedSection),a=this.paintVertexArray.length;this.paintVertexArray.resize(e),this._setPaintValue(a,e,i,n)}updatePaintArray(e,t,r,i,n){let a=this.expression.evaluate(new Xu(this.zoom,n),r,i),o=this.expression.evaluate(new Xu(this.zoom+1,n),r,i);this._setPaintValue(e,t,a,o)}_setPaintValue(e,t,r,i){if(this.type==="color"){let n=Wie(r),a=Wie(i);for(let o=e;o`#define HAS_UNIFORM_${i}`))}return e}getBinderAttributes(){let e=[];for(let t in this.binders){let r=this.binders[t];if(r instanceof Xy||r instanceof S1)for(let i of r.paintVertexAttributes)e.push(i.name);else if(r instanceof ox){let i=r.getVertexAttributes();for(let n of i)e.push(n.name)}}return e}getBinderUniforms(){let e=[];for(let t in this.binders){let r=this.binders[t];if(r instanceof Bk||r instanceof e3||r instanceof S1)for(let i of r.uniformNames)e.push(i)}return e}getPaintVertexBuffers(){return this._buffers}getUniforms(e,t){let r=[];for(let i in this.binders){let n=this.binders[i];if(n instanceof Bk||n instanceof e3||n instanceof S1){for(let a of n.uniformNames)if(t[a]){let o=n.getBinding(e,t[a],a);r.push({name:a,property:i,binding:o})}}}return r}setUniforms(e,t,r,i){for(let{name:n,property:a,binding:o}of t)this.binders[a].setUniform(o,i,r.get(a),n)}updatePaintBuffers(e){this._buffers=[];for(let t in this.binders){let r=this.binders[t];if(e&&r instanceof ox){let i=e.fromScale===2?r.zoomInPaintVertexBuffer:r.zoomOutPaintVertexBuffer;i&&this._buffers.push(i)}else(r instanceof Xy||r instanceof S1)&&r.paintVertexBuffer&&this._buffers.push(r.paintVertexBuffer)}}upload(e){for(let t in this.binders){let r=this.binders[t];(r instanceof Xy||r instanceof S1||r instanceof ox)&&r.upload(e)}this.updatePaintBuffers()}destroy(){for(let e in this.binders){let t=this.binders[e];(t instanceof Xy||t instanceof S1||t instanceof ox)&&t.destroy()}}},u3=class{constructor(e,t,r=()=>!0){this.programConfigurations={};for(let i of e)this.programConfigurations[i.id]=new qnt(i,t,r);this.needsUpload=!1,this._featureMap=new znt,this._bufferOffset=0}populatePaintArrays(e,t,r,i){for(let n in this.programConfigurations)this.programConfigurations[n].populatePaintArrays(e,t,i);t.id!==void 0&&this._featureMap.add(t.id,r,this._bufferOffset,e),this._bufferOffset=e,this.needsUpload=!0}updatePaintArrays(e,t,r,i){for(let n of r)this.needsUpload=this.programConfigurations[n.id].updatePaintArrays(e,this._featureMap,t,n,i)||this.needsUpload}get(e){return this.programConfigurations[e]}upload(e){if(this.needsUpload){for(let t in this.programConfigurations)this.programConfigurations[t].upload(e);this.needsUpload=!1}}destroy(){for(let e in this.programConfigurations)this.programConfigurations[e].destroy()}};As("ConstantBinder",Bk),As("CrossFadedConstantBinder",e3),As("SourceExpressionBinder",Xy),As("CrossFadedPatternBinder",Rnt),As("CrossFadedDasharrayBinder",Bnt),As("CompositeExpressionBinder",S1),As("ProgramConfiguration",qnt,{omit:["_buffers"]}),As("ProgramConfigurationSet",u3);$ie=2**14-1,att=-$ie-1;ott=-32768;sae=class{constructor(e){this.zoom=e.zoom,this.overscaling=e.overscaling,this.layers=e.layers,this.layerIds=this.layers.map(t=>t.id),this.index=e.index,this.hasDependencies=!1,this.layoutVertexArray=new m_r,this.indexArray=new z1,this.segments=new nc,this.programConfigurations=new u3(e.layers,e.zoom),this.stateDependentLayerIds=this.layers.filter(t=>t.isStateDependent()).map(t=>t.id)}populate(e,t,r){let i=this.layers[0],n=[],a=null,o=!1,s=i.type==="heatmap";if(i.type==="circle"){let c=i;a=c.layout.get("circle-sort-key"),o=!a.isConstant(),s||(s=c.paint.get("circle-pitch-alignment")==="map")}let l=s?t.subdivisionGranularity.circle:1,u=new Xu(this.zoom),f=this.layers[0]._featureFilter.needGeometry;for(let{feature:c,id:h,index:d,sourceLayerIndex:p}of e){let v=xx(c,f);if(!this.layers[0]._featureFilter.filter(u,v,r))continue;let y=o?a.evaluate(v,{},r):void 0,m={id:h,properties:c.properties,type:c.type,sourceLayerIndex:p,index:d,geometry:f?v.geometry:m3(c),patterns:{},sortKey:y};n.push(m)}o&&n.sort((c,h)=>c.sortKey-h.sortKey);for(let c of n){let{geometry:h,index:d,sourceLayerIndex:p}=c,v=e[d].feature;this.addFeature(c,h,d,r,l),t.featureIndex.insert(v,h,d,p,this.index)}}update(e,t,r){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(e,t,this.stateDependentLayers,{imagePositions:r})}addFeatures(e){}isEmpty(){return this.layoutVertexArray.length===0}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(e){this.uploaded||(this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,M_r),this.indexBuffer=e.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(e),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())}addFeature(e,t,r,i,n=1){let a;switch(n){case 1:a=[0,7];break;case 3:a=[0,2,5,7];break;case 5:a=[0,1,3,4,6,7];break;case 7:a=[0,1,2,3,4,5,6,7];break;default:throw Error(`Invalid circle bucket granularity: ${n}; valid values are 1, 3, 5, 7.`)}let o=a.length;for(let s of t)for(let l of s){let u=l.x,f=l.y;if(u<0||u>=8192||f<0||f>=8192)continue;let c=this.segments.prepareSegment(o*o,this.layoutVertexArray,this.indexArray,e.sortKey),h=c.vertexLength;for(let d=0;dltt||(ltt=new Vh({"circle-sort-key":new al(hn.layout_circle["circle-sort-key"],"circle-sort-key")})),$_r=()=>utt||(utt=new Vh({"circle-radius":new al(hn.paint_circle["circle-radius"],"circle-radius"),"circle-color":new al(hn.paint_circle["circle-color"],"circle-color"),"circle-blur":new al(hn.paint_circle["circle-blur"],"circle-blur"),"circle-opacity":new al(hn.paint_circle["circle-opacity"],"circle-opacity"),"circle-translate":new ms(hn.paint_circle["circle-translate"],"circle-translate"),"circle-translate-anchor":new ms(hn.paint_circle["circle-translate-anchor"],"circle-translate-anchor"),"circle-pitch-scale":new ms(hn.paint_circle["circle-pitch-scale"],"circle-pitch-scale"),"circle-pitch-alignment":new ms(hn.paint_circle["circle-pitch-alignment"],"circle-pitch-alignment"),"circle-stroke-width":new al(hn.paint_circle["circle-stroke-width"],"circle-stroke-width"),"circle-stroke-color":new al(hn.paint_circle["circle-stroke-color"],"circle-stroke-color"),"circle-stroke-opacity":new al(hn.paint_circle["circle-stroke-opacity"],"circle-stroke-opacity")})),Y_r={get paint(){return $_r()},get layout(){return W_r()}},Unt=e=>e.type==="circle",X_r=class extends P1{constructor(e,t){super(e,Y_r,t)}createBucket(e){return new sae(e)}queryRadius(e){let t=e;return L5("circle-radius",this,t)+L5("circle-stroke-width",this,t)+Fq(this.paint.get("circle-translate"))}queryIntersectsFeature({queryGeometry:e,feature:t,featureState:r,geometry:i,transform:n,pixelsToTileUnits:a,unwrappedTileID:o,getElevation:s}){let l=Lq(e,this.paint.get("circle-translate"),this.paint.get("circle-translate-anchor"),-n.bearingInRadians,a),u=this.paint.get("circle-radius").evaluate(t,r)+this.paint.get("circle-stroke-width").evaluate(t,r),f=this.paint.get("circle-pitch-scale"),c=this.paint.get("circle-pitch-alignment"),h,d;return c==="map"?(h=l,d=u*a):(h=j_r(l,n,o,s),d=u),Vnt({queryGeometry:h,size:d,transform:n,unwrappedTileID:o,getElevation:s,pitchAlignment:c,pitchScale:f},i)}},Gnt=class extends sae{};As("HeatmapBucket",Gnt,{omit:["layers"]});Z_r=()=>ftt||(ftt=new Vh({"heatmap-radius":new al(hn.paint_heatmap["heatmap-radius"],"heatmap-radius"),"heatmap-weight":new al(hn.paint_heatmap["heatmap-weight"],"heatmap-weight"),"heatmap-intensity":new ms(hn.paint_heatmap["heatmap-intensity"],"heatmap-intensity"),"heatmap-color":new kq(hn.paint_heatmap["heatmap-color"],"heatmap-color"),"heatmap-opacity":new ms(hn.paint_heatmap["heatmap-opacity"],"heatmap-opacity")})),K_r={get paint(){return Z_r()}};Pq=class jnt{constructor(t,r){cae(this,t,1,r)}resize(t){Hnt(this,t,1)}clone(){return new jnt({width:this.width,height:this.height},new Uint8Array(this.data))}static copy(t,r,i,n,a){hae(t,r,i,n,a,1)}},qf=class Wnt{constructor(t,r){cae(this,t,4,r)}resize(t){Hnt(this,t,4)}replace(t,r){r?this.data.set(t):this.data=t instanceof Uint8ClampedArray?new Uint8Array(t.buffer):t}clone(){return new Wnt({width:this.width,height:this.height},new Uint8Array(this.data))}static copy(t,r,i,n,a){hae(t,r,i,n,a,4)}setPixel(t,r,i){let n=(t*this.width+r)*4;this.data[n+0]=Math.round(i.r*255/i.a),this.data[n+1]=Math.round(i.g*255/i.a),this.data[n+2]=Math.round(i.b*255/i.a),this.data[n+3]=Math.round(i.a*255)}};As("AlphaImage",Pq),As("RGBAImage",qf);EC="big-fb",$nt=e=>e.type==="heatmap",J_r=class extends P1{createBucket(e){return new Gnt(e)}constructor(e,t){super(e,K_r,t),this.heatmapFbos=new Map,this._updateColorRamp()}_handleSpecialPaintPropertyUpdate(e){e==="heatmap-color"&&this._updateColorRamp()}_updateColorRamp(){let e=this._transitionablePaint._values["heatmap-color"].value.expression;this.colorRamp=dae({expression:e,evaluationKey:"heatmapDensity",image:this.colorRamp}),this.colorRampTexture=null}resize(){this.heatmapFbos.has("big-fb")&&this.heatmapFbos.delete(EC)}queryRadius(e){return L5("heatmap-radius",this,e)}queryIntersectsFeature({queryGeometry:e,feature:t,featureState:r,geometry:i,transform:n,pixelsToTileUnits:a,unwrappedTileID:o,getElevation:s}){return Vnt({queryGeometry:e,size:this.paint.get("heatmap-radius").evaluate(t,r)*a,transform:n,unwrappedTileID:o,getElevation:s},i)}hasOffscreenPass(){return this.paint.get("heatmap-opacity")!==0&&!this.isHidden()}},Q_r=()=>ctt||(ctt=new Vh({"hillshade-illumination-direction":new ms(hn.paint_hillshade["hillshade-illumination-direction"],"hillshade-illumination-direction"),"hillshade-illumination-altitude":new ms(hn.paint_hillshade["hillshade-illumination-altitude"],"hillshade-illumination-altitude"),"hillshade-illumination-anchor":new ms(hn.paint_hillshade["hillshade-illumination-anchor"],"hillshade-illumination-anchor"),"hillshade-exaggeration":new ms(hn.paint_hillshade["hillshade-exaggeration"],"hillshade-exaggeration"),"hillshade-shadow-color":new ms(hn.paint_hillshade["hillshade-shadow-color"],"hillshade-shadow-color"),"hillshade-highlight-color":new ms(hn.paint_hillshade["hillshade-highlight-color"],"hillshade-highlight-color"),"hillshade-accent-color":new ms(hn.paint_hillshade["hillshade-accent-color"],"hillshade-accent-color"),"hillshade-method":new ms(hn.paint_hillshade["hillshade-method"],"hillshade-method"),resampling:new ms(hn.paint_hillshade.resampling,"resampling")})),e3r={get paint(){return Q_r()}},Ynt=e=>e.type==="hillshade",t3r=class extends P1{constructor(e,t){super(e,e3r,t),this.recalculate({zoom:0,zoomHistory:{}},void 0)}getIlluminationProperties(){let e=this.paint.get("hillshade-illumination-direction").values,t=this.paint.get("hillshade-illumination-altitude").values,r=this.paint.get("hillshade-highlight-color").values,i=this.paint.get("hillshade-shadow-color").values,n=Math.max(e.length,t.length,r.length,i.length);e=e.concat(Array(n-e.length).fill(e.at(-1))),t=t.concat(Array(n-t.length).fill(t.at(-1))),r=r.concat(Array(n-r.length).fill(r.at(-1))),i=i.concat(Array(n-i.length).fill(i.at(-1)));let a=t.map(Yf);return{directionRadians:e.map(Yf),altitudeRadians:a,shadowColor:i,highlightColor:r}}hasOffscreenPass(){return this.paint.get("hillshade-exaggeration")!==0&&!this.isHidden()}},r3r=()=>htt||(htt=new Vh({"color-relief-opacity":new ms(hn["paint_color-relief"]["color-relief-opacity"],"color-relief-opacity"),"color-relief-color":new kq(hn["paint_color-relief"]["color-relief-color"],"color-relief-color"),resampling:new ms(hn["paint_color-relief"].resampling,"resampling")})),i3r={get paint(){return r3r()}};ph=class{constructor(e,t,r,i){this.context=e,this.format=r,this.texture=e.gl.createTexture(),this._ownedHandle=this.texture,this.update(t,i)}update(e,t,r){var u;let{width:i,height:n}=e,a=(((u=this.size)==null?void 0:u[0])!==i||this.size[1]!==n)&&!r,{context:o}=this,{gl:s}=o;this.useMipmap=!!(t!=null&&t.useMipmap),a&&this.size&&this.format===s.RGBA&&(s.deleteTexture(this.texture),this.texture=s.createTexture(),this._ownedHandle=this.texture,this.magFilter=void 0,this.minFilter=void 0,this.wrap=void 0),s.bindTexture(s.TEXTURE_2D,this.texture),o.pixelStoreUnpackFlipY.set(!1),o.pixelStoreUnpack.set(1);let l=this.format===s.RGBA&&(t==null?void 0:t.premultiply)!==!1;if(a)if(this.size=[i,n],this.format===s.RGBA&&i>0&&n>0){let f=this.useMipmap?Math.floor(Math.log2(Math.max(i,n)))+1:1;if(s.texStorage2D(s.TEXTURE_2D,f,s.RGBA8,i,n),y7(e)){o.pixelStoreUnpackPremultiplyAlpha.set(!1);let{data:c}=e;l&&c&&(c=iie(c)),c&&s.texSubImage2D(s.TEXTURE_2D,0,0,0,i,n,s.RGBA,s.UNSIGNED_BYTE,c)}else o.pixelStoreUnpackPremultiplyAlpha.set(l),s.texSubImage2D(s.TEXTURE_2D,0,0,0,s.RGBA,s.UNSIGNED_BYTE,e)}else y7(e)?(o.pixelStoreUnpackPremultiplyAlpha.set(!1),this._uploadRawData(e,l,i,n,s)):(o.pixelStoreUnpackPremultiplyAlpha.set(l),this._uploadDomImage(e,s));else{let{x:f,y:c}=r||{x:0,y:0};y7(e)?(o.pixelStoreUnpackPremultiplyAlpha.set(!1),this._updateRawData(e,l,f,c,i,n,s)):(o.pixelStoreUnpackPremultiplyAlpha.set(l),this._updateDomImage(e,f,c,s))}this.useMipmap&&!(y7(e)&&e.data===null)&&s.generateMipmap(s.TEXTURE_2D),o.pixelStoreUnpackFlipY.setDefault(),o.pixelStoreUnpack.setDefault(),o.pixelStoreUnpackPremultiplyAlpha.setDefault()}_uploadDomImage(e,t){t.texImage2D(t.TEXTURE_2D,0,this.format,this.format,t.UNSIGNED_BYTE,e)}_uploadRawData(e,t,r,i,n){let{data:a}=e;t&&a&&(a=iie(a)),n.texImage2D(n.TEXTURE_2D,0,this.format,r,i,0,this.format,n.UNSIGNED_BYTE,a)}_updateDomImage(e,t,r,i){i.texSubImage2D(i.TEXTURE_2D,0,t,r,i.RGBA,i.UNSIGNED_BYTE,e)}_updateRawData(e,t,r,i,n,a,o){let{data:s}=e;t&&s&&(s=iie(s)),o.texSubImage2D(o.TEXTURE_2D,0,r,i,n,a,o.RGBA,o.UNSIGNED_BYTE,s)}bind(e,t,r){let{context:i}=this,{gl:n}=i;this.texture!==this._ownedHandle&&(this.texture=this._ownedHandle),n.bindTexture(n.TEXTURE_2D,this.texture),(r===n.LINEAR_MIPMAP_NEAREST||r===n.LINEAR_MIPMAP_LINEAR)&&!this.useMipmap&&(r=n.LINEAR);let a=r||e;e!==this.magFilter&&(n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MAG_FILTER,e),this.magFilter=e),a!==this.minFilter&&(n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MIN_FILTER,a),this.minFilter=a),t!==this.wrap&&(n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_S,t),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_T,t),this.wrap=t)}generateMipmap(){if(!this.useMipmap)return;let{gl:e}=this.context;e.bindTexture(e.TEXTURE_2D,this.texture),e.generateMipmap(e.TEXTURE_2D)}destroy(){let{gl:e}=this.context;e.deleteTexture(this.texture),this.texture=null,this._ownedHandle=null}},n3r=(Jy=class{constructor(t,r,i,n=1,a=1,o=1,s=0){if(this.uid=t,r.height!==r.width)throw RangeError("DEM tiles must be square");if(i&&!["mapbox","terrarium","custom"].includes(i)){uu(`"${i}" is not a valid encoding type. Valid types include "mapbox", "terrarium" and "custom".`);return}this.stride=r.height;let l=this.dim=r.height-4;switch(this.data=new Uint32Array(r.data.buffer),Jy.byteViewCache.set(this,new Uint8Array(this.data.buffer)),i){case"terrarium":this.redFactor=256,this.greenFactor=1,this.blueFactor=1/256,this.baseShift=32768;break;case"custom":this.redFactor=n,this.greenFactor=a,this.blueFactor=o,this.baseShift=s;break;default:this.redFactor=6553.6,this.greenFactor=25.6,this.blueFactor=.1,this.baseShift=1e4}for(let f=-2;f=l)&&this.data.copyWithin(this._idx(0,f),c,c+l),this.data.fill(this.data[c],this._idx(-2,f),this._idx(0,f)),this.data.fill(this.data[c+l-1],this._idx(l,f),this._idx(l+1,f)+1)}let u=this._getByteView();this.min=2**53-1,this.max=-(2**53-1);for(let f=0;fthis.max&&(this.max=d),d=this.dim||n<-1||n>=this.dim)throw RangeError(`Out of range source coordinates for DEM data. x: ${t}, y: ${r}, dim: ${this.dim}`);let a=this._getByteView(),o=((n+2)*this.stride+i+2)*4,s=this.stride*4,l=t-i,u=r-n,f=this._unpackAtIndex(a,o),c=this._unpackAtIndex(a,o+4),h=this._unpackAtIndex(a,o+s),d=this._unpackAtIndex(a,o+s+4);return f*(1-l)*(1-u)+c*l*(1-u)+h*(1-l)*u+d*l*u}getUnpackVector(){return[this.redFactor,this.greenFactor,this.blueFactor,this.baseShift]}_idx(t,r){if(t<-2||t>=this.dim+2||r<-2||r>=this.dim+2)throw RangeError(`Out of range source coordinates for DEM data. x: ${t}, y: ${r}, dim: ${this.dim}`);return(r+2)*this.stride+(t+2)}unpack(t,r,i){return t*this.redFactor+r*this.greenFactor+i*this.blueFactor-this.baseShift}pack(t){return Xnt(t,this.getUnpackVector())}getPixels(){return new qf({width:this.stride,height:this.stride},this._getByteView())}backfillBorder(t,r,i){if(this.dim!==t.dim)throw Error("dem dimension mismatch");let n=r*this.dim,a=r*this.dim+this.dim,o=i*this.dim,s=i*this.dim+this.dim;switch(r){case-1:n=a-2;break;case 1:a=n+2}switch(i){case-1:o=s-2;break;case 1:s=o+2}let l=-r*this.dim,u=-i*this.dim;for(let f=o;fe.type==="color-relief",a3r=class extends P1{constructor(e,t){super(e,i3r,t)}_createColorRamp(e){let t={elevationStops:[],colorStops:[]},r=this._transitionablePaint._values["color-relief-color"].value.expression;if(r instanceof Qk&&r._styleExpression.expression instanceof Sv){this.colorRampExpression=r;let a=r._styleExpression.expression;t.elevationStops=a.labels,t.colorStops=[];for(let o of t.elevationStops)t.colorStops.push(a.evaluate({globals:{elevation:o}}))}if(t.elevationStops.length<1&&(t.elevationStops=[0],t.colorStops=[Ol.transparent]),t.elevationStops.length<2&&(t.elevationStops.push(t.elevationStops[0]+1),t.colorStops.push(t.colorStops[0])),t.elevationStops.length<=e)return t;let i={elevationStops:[],colorStops:[]},n=(t.elevationStops.length-1)/(e-1);for(let a=0;ae)throw Error("Min granularity must not be greater than base granularity.");this._baseZoomGranularity=e,this._minGranularity=t}getGranularityForZoomLevel(e){let t=1<32767||t>32767)throw Error("Vertex coordinates are out of signed 16 bit integer range.");let r=Math.round(e)|0,i=Math.round(t)|0,n=this._getKey(r,i),a=this._vertexDictionary.get(n);if(a!==void 0)return a;let o=this._vertexBuffer.length/2;return this._vertexDictionary.set(n,o),this._vertexBuffer.push(r,i),o}_subdivideTrianglesScanline(e,t){if(this._granularity<2)return C3r(this._vertexBuffer,k3r(e,t));let r=[],i=e.length;for(let n=0;n=1||b<=0)||y&&(ln)){f>=i&&f<=n&&a.push(r[(o+1)%3]);continue}if(!y&&_>0){let T=s+d*_,A=l+p*_;a.push(this._vertexToIndex(T,A))}let M=s+d*Math.max(_,0),x=s+d*Math.min(b,1);if(v||this._generateIntraEdgeVertices(a,s,l,u,f,M,x),!y&&b<1){let T=s+d*b,A=l+p*b;a.push(this._vertexToIndex(T,A))}(y||f>=i&&f<=n)&&a.push(r[(o+1)%3]),!y&&(f<=i||f>=n)&&this._generateInterEdgeVertices(a,s,l,u,f,c,h,x,i,n)}return a}_generateIntraEdgeVertices(e,t,r,i,n,a,o){let s=i-t,l=n-r,u=l===0,f=u?Math.min(t,i):Math.min(a,o),c=u?Math.max(t,i):Math.max(a,o),h=Math.floor(f/this._granularityCellSize)+1,d=Math.ceil(c/this._granularityCellSize)-1;if(u?t=h;p--){let v=p*this._granularityCellSize,y=r+l*(v-t)/s;e.push(this._vertexToIndex(v,y))}}_generateInterEdgeVertices(e,t,r,i,n,a,o,s,l,u){let f=n-r,c=a-i,h=o-n,d=(l-n)/h,p=(u-n)/h,v=Math.min(d,p),y=Math.max(d,p),m=i+c*v,w=Math.floor(Math.min(m,s)/this._granularityCellSize)+1,_=Math.ceil(Math.max(m,s)/this._granularityCellSize)-1,b=s=1||y<=0){let T=t-a,A=r-o,g=(l-o)/A,E=(u-o)/A,S=a+T*Math.min(g,E);w=Math.floor(Math.min(S,s)/this._granularityCellSize)+1,_=Math.ceil(Math.max(S,s)/this._granularityCellSize)-1,b=s0?u:l;if(b)for(let T=w;T<=_;T++){let A=T*this._granularityCellSize;e.push(this._vertexToIndex(A,x))}else for(let T=_;T>=w;T--){let A=T*this._granularityCellSize;e.push(this._vertexToIndex(A,x))}}_generateOutline(e,t){let r=[],i=0;for(let n of e){let a=this._granularity<2?this._ringPathIndices(n,i,t):this._pointArrayToIndices(r3(n,this._granularity,!0));i+=n.length;let o=[];for(let s=1;s=2&&rat(e)&&i.push(i[0]),i}_handlePoles(e){let t=!1,r=!1;this._canonical&&(this._canonical.y===0&&(t=!0),this._canonical.y===(1<n==(a===-32768)?(e.push(r),e.push(t),e.push(this._vertexToIndex(i,a)),e.push(this._vertexToIndex(n,a)),e.push(r),e.push(this._vertexToIndex(i,a))):(e.push(t),e.push(r),e.push(this._vertexToIndex(i,a)),e.push(r),e.push(this._vertexToIndex(n,a)),e.push(this._vertexToIndex(i,a)))}_fillPoles(e,t,r){let i=this._vertexBuffer,n=Aa,a=e.length;for(let o=2;o=2&&((s=this._canonical)==null?void 0:s.z)===0&&(a=this._removeTrianglesOutsideTileX(a),o=o.map(l=>this._removeLinesOutsideTileX(l))),{verticesFlattened:this._vertexBuffer,indicesTriangles:a,indicesLineList:o}}_vertexOutsideTileX(e){let t=this._vertexBuffer[e*2];return t<0||t>8192}_removeTrianglesOutsideTileX(e){let t=[];for(let r=0;rt.id),this.index=e.index,this.hasDependencies=!1,this.sdfPatterns={},this.patternFeatures=[],this.layoutVertexArray=new y_r,this.indexArray=new z1,this.indexArray2=new Gie,this.programConfigurations=new u3(e.layers,e.zoom),this.segments=new nc,this.segments2=new nc,this.stateDependentLayerIds=this.layers.filter(t=>t.isStateDependent()).map(t=>t.id)}populate(e,t,r){this.hasDependencies=j7("fill",this.layers,t);let i=this.layers[0].layout.get("fill-sort-key"),n=!i.isConstant(),a=[],o=new Xu(this.zoom),s=this.layers[0]._featureFilter.needGeometry;for(let{feature:l,id:u,index:f,sourceLayerIndex:c}of e){let h=xx(l,s);if(!this.layers[0]._featureFilter.filter(o,h,r))continue;let d=n?i.evaluate(h,{},r,t.availableImages):void 0,p={id:u,properties:l.properties,type:l.type,sourceLayerIndex:c,index:f,geometry:s?h.geometry:m3(l),patterns:{},sortKey:d};a.push(p)}n&&a.sort((l,u)=>l.sortKey-u.sortKey);for(let l of a){let{geometry:u,index:f,sourceLayerIndex:c}=l;if(this.hasDependencies){let d=pae("fill",this.layers,l,{zoom:this.zoom},t);this.patternFeatures.push(d)}else this.addFeature(l,u,f,r,{},t.subdivisionGranularity);let h=e[f].feature;t.featureIndex.insert(h,u,f,c,this.index)}}update(e,t,r){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(e,t,this.stateDependentLayers,{imagePositions:r})}addFeatures({options:e,canonical:t,patternPositions:r,patternMap:i}){this.detectSdfPatterns(i);for(let n of this.patternFeatures)this.addFeature(n,n.geometry,n.index,t,r,e.subdivisionGranularity)}detectSdfPatterns(e){for(let t of this.patternFeatures)for(let r in t.patterns){let i=t.patterns[r];this.recordSdfPattern(r,e[i.min]),this.recordSdfPattern(r,e[i.mid]),this.recordSdfPattern(r,e[i.max])}for(let t of this.layers){let r=t.paint.get("fill-pattern").constantOr(null);r&&(this.recordSdfPattern(t.id,e[r.from.toString()]),this.recordSdfPattern(t.id,e[r.to.toString()]))}}recordSdfPattern(e,t){if(!t)return;let r=t.sdf===!0,i=this.sdfPatterns[e];i===void 0?this.sdfPatterns[e]=r:i!==r&&uu(`Style sheet warning: Cannot mix SDF and non-SDF fill patterns in layer "${e}"`)}isEmpty(){return this.layoutVertexArray.length===0}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(e){this.uploaded||(this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,o3r),this.indexBuffer=e.createIndexBuffer(this.indexArray),this.indexBuffer2=e.createIndexBuffer(this.indexArray2)),this.programConfigurations.upload(e),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.indexBuffer2.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.segments2.destroy())}addFeature(e,t,r,i,n,a){for(let o of gq(t,500)){let s=tat(o,i,a.fill.getGranularityForZoomLevel(i.z)),l=this.layoutVertexArray;iat((u,f)=>{l.emplaceBack(u,f)},this.segments,this.layoutVertexArray,this.indexArray,s.verticesFlattened,s.indicesTriangles,this.segments2,this.indexArray2,s.indicesLineList)}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,e,r,{imagePositions:n,canonical:i})}};As("FillBucket",nat,{omit:["layers","patternFeatures"]});P3r=()=>mtt||(mtt=new Vh({"fill-sort-key":new al(hn.layout_fill["fill-sort-key"],"fill-sort-key")})),z3r=()=>ytt||(ytt=new Vh({"fill-antialias":new ms(hn.paint_fill["fill-antialias"],"fill-antialias"),"fill-opacity":new al(hn.paint_fill["fill-opacity"],"fill-opacity"),"fill-layer-opacity":new ms(hn.paint_fill["fill-layer-opacity"],"fill-layer-opacity"),"fill-color":new al(hn.paint_fill["fill-color"],"fill-color"),"fill-outline-color":new al(hn.paint_fill["fill-outline-color"],"fill-outline-color"),"fill-translate":new ms(hn.paint_fill["fill-translate"],"fill-translate"),"fill-translate-anchor":new ms(hn.paint_fill["fill-translate-anchor"],"fill-translate-anchor"),"fill-pattern":new rC(hn.paint_fill["fill-pattern"],"fill-pattern")})),I3r={get paint(){return z3r()},get layout(){return P3r()}},aat=e=>e.type==="fill",R3r=class extends P1{constructor(e,t){super(e,I3r,t)}recalculate(e,t){super.recalculate(e,t);let r=this.paint._values["fill-outline-color"];r.value.kind==="constant"&&r.value.value===void 0&&(this.paint._values["fill-outline-color"]=this.paint._values["fill-color"])}createBucket(e){return new nat(e)}queryRadius(){return Fq(this.paint.get("fill-translate"))}queryIntersectsFeature({queryGeometry:e,geometry:t,transform:r,pixelsToTileUnits:i}){return Ont(Lq(e,this.paint.get("fill-translate"),this.paint.get("fill-translate-anchor"),-r.bearingInRadians,i),t)}isTileClipped(){return!0}},ine=dc([{name:"a_pos",components:2,type:"Int16"},{name:"a_normal_ed",components:4,type:"Int16"}],4),B3r=dc([{name:"a_centroid",components:2,type:"Int16"}],4),q3r=ine.members;ine.size,ine.alignment;Ev=class nne{constructor(){this.minX=1/0,this.maxX=-1/0,this.minY=1/0,this.maxY=-1/0}extend(t){return this.minX=Math.min(this.minX,t.x),this.minY=Math.min(this.minY,t.y),this.maxX=Math.max(this.maxX,t.x),this.maxY=Math.max(this.maxY,t.y),this}expandBy(t){return this.minX-=t,this.minY-=t,this.maxX+=t,this.maxY+=t,(this.minX>this.maxX||this.minY>this.maxY)&&(this.minX=1/0,this.maxX=-1/0,this.minY=1/0,this.maxY=-1/0),this}shrinkBy(t){return this.expandBy(-t)}map(t){let r=new nne;return r.extend(t(new Jr(this.minX,this.minY))),r.extend(t(new Jr(this.maxX,this.minY))),r.extend(t(new Jr(this.minX,this.maxY))),r.extend(t(new Jr(this.maxX,this.maxY))),r}static fromPoints(t){let r=new nne;for(let i of t)r.extend(i);return r}contains(t){return t.x>=this.minX&&t.x<=this.maxX&&t.y>=this.minY&&t.y<=this.maxY}empty(){return this.minX>this.maxX}width(){return this.maxX-this.minX}height(){return this.maxY-this.minY}covers(t){return!this.empty()&&!t.empty()&&t.minX>=this.minX&&t.maxX<=this.maxX&&t.minY>=this.minY&&t.maxY<=this.maxY}intersects(t){return!this.empty()&&!t.empty()&&t.minX<=this.maxX&&t.maxX>=this.minX&&t.minY<=this.maxY&&t.maxY>=this.minY}},oat=Ev.fromPoints([new Jr(0,0),new Jr(Aa,Aa)]);kC=class{constructor(e,t,r,i,n){for(this.properties=Object.create(null),this.extent=r,this.type=0,this.id=void 0,this._pbf=e,this._geometry=-1,this._keys=i,this._values=n;e.pos>3,a===0)continue}if(a--,n===1)o+=e.readSVarint(),s+=e.readSVarint(),i&&r.push(i),i=[new Jr(o,s)];else if(n===2)o+=e.readSVarint(),s+=e.readSVarint(),i&&i.push(new Jr(o,s));else if(n===7)i&&i.push(i[0].clone());else throw Error(`unknown command ${n}`)}return i&&r.push(i),r}bbox(){if(this._geometry<0)throw Error("feature has no geometry");let e=this._pbf;e.pos=this._geometry;let t=e.readVarint()+e.pos,r=1,i=0,n=0,a=0,o=1/0,s=-1/0,l=1/0,u=-1/0;for(;e.pos>3,i===0)continue}if(i--,r===1||r===2)n+=e.readSVarint(),a+=e.readSVarint(),ns&&(s=n),au&&(u=a);else if(r!==7)throw Error(`unknown command ${r}`)}return[o,l,s,u]}toGeoJSON(e,t,r){let i=this.extent*2**r,n=this.extent*e,a=this.extent*t,o=this.loadGeometry();function s(c){return[(c.x+n)*360/i-180,360/Math.PI*Math.atan(Math.exp((1-(c.y+a)*2/i)*Math.PI))-90]}function l(c){return c.map(s)}let u;if(this.type===1){let c=[];for(let d of o)c.push(d[0]);let h=l(c);u=c.length===1?{type:"Point",coordinates:h[0]}:{type:"MultiPoint",coordinates:h}}else if(this.type===2){let c=o.map(l);u=c.length===1?{type:"LineString",coordinates:c[0]}:{type:"MultiLineString",coordinates:c}}else if(this.type===3){let c=sat(o),h=[];for(let d of c)h.push(d.map(l));u=h.length===1?{type:"Polygon",coordinates:h[0]}:{type:"MultiPolygon",coordinates:h}}else throw Error("unknown feature type");let f={type:"Feature",geometry:u,properties:this.properties};return this.id!=null&&(f.id=this.id),f}};kC.types=["Unknown","Point","LineString","Polygon"];N3r=class{constructor(e,t){for(this.version=1,this.name="",this.extent=4096,this.length=0,this._pbf=e,this._keys=[],this._values=[],this._features=[],t===void 0&&(t=e.length);e.pos=this._features.length)throw Error("feature index out of bounds");this._pbf.pos=this._features[e];let t=this._pbf.readVarint()+this._pbf.pos;return new kC(this._pbf,t,this.extent,this._keys,this._values)}};U3r=class{constructor(e,t=e.length){let r=Object.create(null);for(;e.pos90||this.lat<-90)throw Error("Invalid LngLat latitude value: must be between -90 and 90")}wrap(){return new qk(Tp(this.lng,-180,180),this.lat)}toArray(){return[this.lng,this.lat]}toString(){return`LngLat(${this.lng}, ${this.lat})`}distanceTo(t){let r=Math.PI/180,i=this.lat*r,n=t.lat*r,a=Math.sin(i)*Math.sin(n)+Math.cos(i)*Math.cos(n)*Math.cos((t.lng-this.lng)*r);return ad*Math.acos(Math.min(a,1))}static convert(t){if(t instanceof qk)return t;if(Array.isArray(t)&&(t.length===2||t.length===3))return new qk(Number(t[0]),Number(t[1]));if(!Array.isArray(t)&&typeof t=="object"&&t)return new qk(Number("lng"in t?t.lng:t.lon),Number(t.lat));throw Error("`LngLatLike` argument must be specified as a LngLat instance, an object {lng: , lat: }, an object {lon: , lat: }, or an array of [, ]")}},lat=2*Math.PI*ad;Uu=class fat{constructor(t,r,i=0){this.x=+t,this.y=+r,this.z=+i}static fromLngLat(t,r=0){let i=Js.convert(t);return new fat(y3(i.lng),g3(i.lat),bx(r,i.lat))}toLngLat(){return new Js(Iq(this.x),W5(this.y))}toAltitude(){return vae(this.z,this.y)}meterInMercatorCoordinateUnits(){return 1/lat*G3r(W5(this.y))}},_x=89.25;nie=8192;hat=class{constructor(e){this.zoom=e.zoom,this.overscaling=e.overscaling,this.layers=e.layers,this.layerIds=this.layers.map(t=>t.id),this.index=e.index,this.hasDependencies=!1,this.layoutVertexArray=new g_r,this.centroidVertexArray=new og,this.indexArray=new z1,this.programConfigurations=new u3(e.layers,e.zoom),this.segments=new nc,this.stateDependentLayerIds=this.layers.filter(t=>t.isStateDependent()).map(t=>t.id)}populate(e,t,r){this.features=[],this.hasDependencies=j7("fill-extrusion",this.layers,t);let i=new Xu(this.zoom),n=this.layers[0],a=n.layout.get("fill-extrusion-rounded-corner-distance"),o=a>0?W3r(a,r):0,s=n._featureFilter.needGeometry;for(let{feature:l,id:u,index:f,sourceLayerIndex:c}of e){let h=xx(l,s);if(!n._featureFilter.filter(i,h,r))continue;let d={id:u,sourceLayerIndex:c,index:f,geometry:j3r(s?h.geometry:m3(l),o),properties:l.properties,type:l.type,patterns:{}};this.hasDependencies?this.features.push(pae("fill-extrusion",this.layers,d,{zoom:this.zoom},t)):this.addFeature(d,d.geometry,f,r,{},t.subdivisionGranularity),t.featureIndex.insert(l,d.geometry,f,c,this.index,!0)}}addFeatures({options:e,canonical:t,patternPositions:r}){for(let i of this.features){let{geometry:n}=i;this.addFeature(i,n,i.index,t,r,e.subdivisionGranularity)}}update(e,t,r){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(e,t,this.stateDependentLayers,{imagePositions:r})}isEmpty(){return this.layoutVertexArray.length===0&&this.centroidVertexArray.length===0}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(e){this.uploaded||(this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,q3r),this.centroidVertexBuffer=e.createVertexBuffer(this.centroidVertexArray,B3r.members,!0),this.indexBuffer=e.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(e),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.centroidVertexBuffer.destroy())}addFeature(e,t,r,i,n,a){for(let o of gq(t,500)){let s={x:0,y:0,sampleCount:0},l=this.layoutVertexArray.length;this.processPolygon(s,i,e,o,a);let u=this.layoutVertexArray.length-l,f=Math.floor(s.x/s.sampleCount),c=Math.floor(s.y/s.sampleCount);for(let h=0;h{Ck(u,f,c,0,0,1,1,0)},this.segments,this.layoutVertexArray,this.indexArray,l.verticesFlattened,l.indicesTriangles)}_generateSideFaces(e,t){let r=0;for(let i=1;inc.MAX_VERTEX_ARRAY_LENGTH&&(t.segment=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray));let o=n.sub(a)._perp()._unit(),s=a.dist(n);r+s>32768&&(r=0),Ck(this.layoutVertexArray,n.x,n.y,o.x,o.y,0,0,r),Ck(this.layoutVertexArray,n.x,n.y,o.x,o.y,0,1,r),r+=s,Ck(this.layoutVertexArray,a.x,a.y,o.x,o.y,0,0,r),Ck(this.layoutVertexArray,a.x,a.y,o.x,o.y,0,1,r);let l=t.segment.vertexLength;this.indexArray.emplaceBack(l,l+2,l+1),this.indexArray.emplaceBack(l+1,l+2,l+3),t.segment.vertexLength+=4,t.segment.primitiveLength+=2}}};As("FillExtrusionBucket",hat,{omit:["layers","features"]});K3r=()=>xtt||(xtt=new Vh({"fill-extrusion-rounded-corner-distance":new ms(hn["layout_fill-extrusion"]["fill-extrusion-rounded-corner-distance"],"fill-extrusion-rounded-corner-distance")})),J3r=()=>btt||(btt=new Vh({"fill-extrusion-opacity":new ms(hn["paint_fill-extrusion"]["fill-extrusion-opacity"],"fill-extrusion-opacity"),"fill-extrusion-color":new al(hn["paint_fill-extrusion"]["fill-extrusion-color"],"fill-extrusion-color"),"fill-extrusion-translate":new ms(hn["paint_fill-extrusion"]["fill-extrusion-translate"],"fill-extrusion-translate"),"fill-extrusion-translate-anchor":new ms(hn["paint_fill-extrusion"]["fill-extrusion-translate-anchor"],"fill-extrusion-translate-anchor"),"fill-extrusion-pattern":new rC(hn["paint_fill-extrusion"]["fill-extrusion-pattern"],"fill-extrusion-pattern"),"fill-extrusion-height":new al(hn["paint_fill-extrusion"]["fill-extrusion-height"],"fill-extrusion-height"),"fill-extrusion-base":new al(hn["paint_fill-extrusion"]["fill-extrusion-base"],"fill-extrusion-base"),"fill-extrusion-vertical-gradient":new ms(hn["paint_fill-extrusion"]["fill-extrusion-vertical-gradient"],"fill-extrusion-vertical-gradient")})),Q3r={get paint(){return J3r()},get layout(){return K3r()}},dat=e=>e.type==="fill-extrusion",ewr=class extends P1{constructor(e,t){super(e,Q3r,t)}createBucket(e){return new hat(e)}queryRadius(){return Fq(this.paint.get("fill-extrusion-translate"))}is3D(){return!0}queryIntersectsFeature({queryGeometry:e,feature:t,featureState:r,geometry:i,transform:n,pixelsToTileUnits:a,pixelPosMatrix:o}){let s=Lq(e,this.paint.get("fill-extrusion-translate"),this.paint.get("fill-extrusion-translate-anchor"),-n.bearingInRadians,a),l=this.paint.get("fill-extrusion-height").evaluate(t,r),u=this.paint.get("fill-extrusion-base").evaluate(t,r),f=iwr(s,o,0),c=rwr(i,u,l,o),h=c[0],d=c[1];return twr(h,d,f)}};nwr="geojsonvt_clip_start",awr="geojsonvt_clip_end",one=dc([{name:"a_pos_normal",components:2,type:"Int16"},{name:"a_data",components:4,type:"Uint8"}],4),owr=one.members;one.size,one.alignment;sne=dc([{name:"a_uv_x",components:1,type:"Float32"},{name:"a_split_index",components:1,type:"Float32"}]),swr=sne.members;sne.size,sne.alignment;lwr=Math.cos(75/2*(Math.PI/180)),pat=1/2,wtt=2**14/pat,vat=class{constructor(e){this.zoom=e.zoom,this.overscaling=e.overscaling,this.layers=e.layers,this.layerIds=this.layers.map(t=>t.id),this.index=e.index,this.hasDependencies=!1,this.patternFeatures=[],this.lineClipsArray=[],this.gradients={};for(let t of this.layers)this.gradients[t.id]={};this.layoutVertexArray=new x_r,this.layoutVertexArray2=new b_r,this.indexArray=new z1,this.programConfigurations=new u3(e.layers,e.zoom),this.segments=new nc,this.maxLineLength=0,this.stateDependentLayerIds=this.layers.filter(t=>t.isStateDependent()).map(t=>t.id)}populate(e,t,r){this.hasDependencies=j7("line",this.layers,t)||this.hasLineDasharray(this.layers);let i=this.layers[0].layout.get("line-sort-key"),n=!i.isConstant(),a=[],o=new Xu(this.zoom),s=this.layers[0]._featureFilter.needGeometry;for(let{feature:l,id:u,index:f,sourceLayerIndex:c}of e){let h=xx(l,s);if(!this.layers[0]._featureFilter.filter(o,h,r))continue;let d=n?i.evaluate(h,{},r):void 0,p={id:u,properties:l.properties,type:l.type,sourceLayerIndex:c,index:f,geometry:s?h.geometry:m3(l),patterns:{},dashes:{},sortKey:d};a.push(p)}n&&a.sort((l,u)=>l.sortKey-u.sortKey);for(let l of a){let{geometry:u,index:f,sourceLayerIndex:c}=l;this.hasDependencies?(j7("line",this.layers,t)?pae("line",this.layers,l,{zoom:this.zoom},t):this.hasLineDasharray(this.layers)&&this.addLineDashDependencies(this.layers,l,this.zoom,t),this.patternFeatures.push(l)):this.addFeature(l,u,f,r,{},{},t.subdivisionGranularity);let h=e[f].feature;t.featureIndex.insert(h,u,f,c,this.index)}}update(e,t,r,i){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(e,t,this.stateDependentLayers,{imagePositions:r,dashPositions:i})}addFeatures({options:e,canonical:t,patternPositions:r,dashPositions:i}){for(let n of this.patternFeatures)this.addFeature(n,n.geometry,n.index,t,r,i,e.subdivisionGranularity)}isEmpty(){return this.layoutVertexArray.length===0}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(e){this.uploaded||(this.layoutVertexArray2.length!==0&&(this.layoutVertexBuffer2=e.createVertexBuffer(this.layoutVertexArray2,swr)),this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,owr),this.indexBuffer=e.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(e),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())}lineFeatureClips(e){if(e.properties&&Object.hasOwn(e.properties,"geojsonvt_clip_start")&&Object.hasOwn(e.properties,"geojsonvt_clip_end"))return{start:+e.properties[nwr],end:+e.properties[awr]}}addFeature(e,t,r,i,n,a,o){let s=this.layers[0].layout,l=s.get("line-join").evaluate(e,{}),u=s.get("line-cap").evaluate(e,{}),f=s.get("line-miter-limit").evaluate(e,{}),c=s.get("line-round-limit").evaluate(e,{});this.lineClips=this.lineFeatureClips(e);for(let h of t)this.addLine(h,e,l,u,f,c,i,o);this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,e,r,{imagePositions:n,dashPositions:a,canonical:i})}addLine(e,t,r,i,n,a,o,s){this.distance=0,this.scaledDistance=0,this.totalDistance=0;let l=o?s.line.getGranularityForZoomLevel(o.z):1;if(e=r3(e,l),this.lineClips){this.lineClipsArray.push(this.lineClips);for(let _=0;_=2&&e[f-1].equals(e[f-2]);)f--;let c=0;for(;c0;if(g&&_>c){let k=p.dist(v);if(k>2*h){let D=p.sub(p.sub(v)._mult(h/k)._round());this.updateDistance(v,D),this.addCurrentVertex(D,m,0,0,d),v=D}}let S=v&&y,C=S?r:u?"butt":i;if(S&&C==="round"&&(Tn&&(C="bevel"),C==="bevel"&&(T>2&&(C="flipbevel"),T100)b=w.mult(-1);else{let k=T*m.add(w).mag()/m.sub(w).mag();b._perp()._mult(k*(E?-1:1))}this.addCurrentVertex(p,b,0,0,d),this.addCurrentVertex(p,b.mult(-1),0,0,d)}else if(C==="bevel"||C==="fakeround"){let k=-Math.sqrt(T*T-1),D=E?k:0,F=E?0:k;if(v&&this.addCurrentVertex(p,m,D,F,d),C==="fakeround"){let P=Math.round(A*180/Math.PI/20);for(let I=1;I2*h){let D=p.add(y.sub(p)._mult(h/k)._round());this.updateDistance(p,D),this.addCurrentVertex(D,w,0,0,d),p=D}}}}addCurrentVertex(e,t,r,i,n,a=!1){let o=t.x+t.y*r,s=t.y-t.x*r,l=-t.x+t.y*i,u=-t.y-t.x*i;this.addHalfVertex(e,o,s,a,!1,r,n),this.addHalfVertex(e,l,u,a,!0,-i,n),this.distance>wtt/2&&this.totalDistance===0&&(this.distance=0,this.updateScaledDistance(),this.addCurrentVertex(e,t,r,i,n,a))}addHalfVertex({x:e,y:t},r,i,n,a,o,s){let l=(this.lineClips?this.scaledDistance*(wtt-1):this.scaledDistance)*pat;if(this.layoutVertexArray.emplaceBack((e<<1)+ +!!n,(t<<1)+ +!!a,Math.round(63*r)+128,Math.round(63*i)+128,(o===0?0:o<0?-1:1)+1|(l&63)<<2,l>>6),this.lineClips){let f=(this.scaledDistance-this.lineClips.start)/(this.lineClips.end-this.lineClips.start);this.layoutVertexArray2.emplaceBack(f,this.lineClipsArray.length)}let u=s.vertexLength++;this.e1>=0&&this.e2>=0&&(this.indexArray.emplaceBack(this.e1,u,this.e2),s.primitiveLength++),a?this.e2=u:this.e1=u}updateScaledDistance(){this.scaledDistance=this.lineClips?this.lineClips.start+(this.lineClips.end-this.lineClips.start)*this.distance/this.totalDistance:this.distance}updateDistance(e,t){this.distance+=e.dist(t),this.updateScaledDistance()}hasLineDasharray(e){for(let t of e){let r=t.paint.get("line-dasharray");if(r&&!r.isConstant())return!0}return!1}addLineDashDependencies(e,t,r,i){for(let n of e){let a=n.paint.get("line-dasharray");if(!a||a.value.kind==="constant")continue;let o=n.layout.get("line-cap").evaluate(t,{})==="round",s={dasharray:a.value.evaluate({zoom:r-1},t,{}),round:o},l={dasharray:a.value.evaluate({zoom:r},t,{}),round:o},u={dasharray:a.value.evaluate({zoom:r+1},t,{}),round:o},f=`${s.dasharray.join(",")},${s.round}`,c=`${l.dasharray.join(",")},${l.round}`,h=`${u.dasharray.join(",")},${u.round}`;i.dashDependencies[f]=s,i.dashDependencies[c]=l,i.dashDependencies[h]=u,t.dashes[n.id]={min:f,mid:c,max:h}}}};As("LineBucket",vat,{omit:["layers","patternFeatures"]});uwr=()=>Att||(Att=new Vh({"line-cap":new al(hn.layout_line["line-cap"],"line-cap"),"line-join":new al(hn.layout_line["line-join"],"line-join"),"line-miter-limit":new al(hn.layout_line["line-miter-limit"],"line-miter-limit"),"line-round-limit":new al(hn.layout_line["line-round-limit"],"line-round-limit"),"line-sort-key":new al(hn.layout_line["line-sort-key"],"line-sort-key")})),fwr=()=>Ttt||(Ttt=new Vh({"line-opacity":new al(hn.paint_line["line-opacity"],"line-opacity"),"line-layer-opacity":new ms(hn.paint_line["line-layer-opacity"],"line-layer-opacity"),"line-color":new al(hn.paint_line["line-color"],"line-color"),"line-translate":new ms(hn.paint_line["line-translate"],"line-translate"),"line-translate-anchor":new ms(hn.paint_line["line-translate-anchor"],"line-translate-anchor"),"line-width":new al(hn.paint_line["line-width"],"line-width"),"line-gap-width":new al(hn.paint_line["line-gap-width"],"line-gap-width"),"line-offset":new al(hn.paint_line["line-offset"],"line-offset"),"line-blur":new al(hn.paint_line["line-blur"],"line-blur"),"line-dasharray":new rC(hn.paint_line["line-dasharray"],"line-dasharray"),"line-pattern":new rC(hn.paint_line["line-pattern"],"line-pattern"),"line-gradient":new kq(hn.paint_line["line-gradient"],"line-gradient")})),Mtt={get paint(){return fwr()},get layout(){return uwr()}},cwr=class extends al{possiblyEvaluate(e,t){return t=new Xu(Math.floor(t.zoom),{now:t.now,fadeDuration:t.fadeDuration,zoomHistory:t.zoomHistory,transition:t.transition}),super.possiblyEvaluate(e,t)}evaluate(e,t,r,i){return t=js({},t,{zoom:Math.floor(t.zoom)}),super.evaluate(e,t,r,i)}},mat=e=>e.type==="line",hwr=class extends P1{constructor(e,t){super(e,Mtt,t),this.gradientVersion=0,b7||(b7=new cwr(Mtt.paint.properties["line-width"].specification,"line-floorwidth"),b7.useIntegerZoom=!0)}_handleSpecialPaintPropertyUpdate(e){if(e==="line-gradient"){let t=this.gradientExpression();this.stepInterpolant=Pbr(t)?t._styleExpression.expression instanceof One:!1,this.gradientVersion=(this.gradientVersion+1)%(2**53-1)}}gradientExpression(){return this._transitionablePaint._values["line-gradient"].value.expression}recalculate(e,t){super.recalculate(e,t),this.paint._values["line-floorwidth"]=b7.possiblyEvaluate(this._transitioningPaint._values["line-width"].value,e)}createBucket(e){return new vat(e)}queryRadius(e){let t=e,r=Stt(L5("line-width",this,t),L5("line-gap-width",this,t)),i=L5("line-offset",this,t);return r/2+Math.abs(i)+Fq(this.paint.get("line-translate"))}queryIntersectsFeature({queryGeometry:e,feature:t,featureState:r,geometry:i,transform:n,pixelsToTileUnits:a}){let o=Lq(e,this.paint.get("line-translate"),this.paint.get("line-translate-anchor"),-n.bearingInRadians,a),s=a/2*Stt(this.paint.get("line-width").evaluate(t,r),this.paint.get("line-gap-width").evaluate(t,r)),l=this.paint.get("line-offset").evaluate(t,r);return l&&(i=N_r(i,l*a)),z_r(o,i,s)}isTileClipped(){return!0}};dwr=dc([{name:"a_pos_offset",components:4,type:"Int16"},{name:"a_data",components:4,type:"Uint16"},{name:"a_pixeloffset",components:4,type:"Int16"},{name:"a_height_offset",components:1,type:"Float32"}],4),pwr=dc([{name:"a_projected_pos",components:3,type:"Float32"}],4);dc([{name:"a_fade_opacity",components:1,type:"Uint32"}],4);vwr=dc([{name:"a_placed",components:2,type:"Uint8"},{name:"a_shift",components:2,type:"Float32"},{name:"a_box_real",components:2,type:"Int16"}]);dc([{type:"Int16",name:"anchorPointX"},{type:"Int16",name:"anchorPointY"},{type:"Int16",name:"x1"},{type:"Int16",name:"y1"},{type:"Int16",name:"x2"},{type:"Int16",name:"y2"},{type:"Uint32",name:"featureIndex"},{type:"Uint16",name:"sourceLayerIndex"},{type:"Uint16",name:"bucketIndex"}]);Ett=dc([{name:"a_pos",components:2,type:"Int16"},{name:"a_anchor_pos",components:2,type:"Int16"},{name:"a_extrude",components:2,type:"Int16"}],4),yat=dc([{name:"a_pos",components:2,type:"Float32"},{name:"a_radius",components:1,type:"Float32"},{name:"a_flags",components:2,type:"Int16"}],4);dc([{name:"triangle",components:3,type:"Uint16"}]),dc([{type:"Int16",name:"anchorX"},{type:"Int16",name:"anchorY"},{type:"Uint16",name:"glyphStartIndex"},{type:"Uint16",name:"numGlyphs"},{type:"Uint32",name:"vertexStartIndex"},{type:"Uint32",name:"lineStartIndex"},{type:"Uint32",name:"lineLength"},{type:"Uint16",name:"segment"},{type:"Uint16",name:"lowerSize"},{type:"Uint16",name:"upperSize"},{type:"Float32",name:"lineOffsetX"},{type:"Float32",name:"lineOffsetY"},{type:"Uint8",name:"writingMode"},{type:"Uint8",name:"placedOrientation"},{type:"Uint8",name:"hidden"},{type:"Uint32",name:"crossTileID"},{type:"Int16",name:"associatedIconIndex"},{type:"Float32",name:"heightOffset"}]),dc([{type:"Int16",name:"anchorX"},{type:"Int16",name:"anchorY"},{type:"Int16",name:"rightJustifiedTextSymbolIndex"},{type:"Int16",name:"centerJustifiedTextSymbolIndex"},{type:"Int16",name:"leftJustifiedTextSymbolIndex"},{type:"Int16",name:"verticalPlacedTextSymbolIndex"},{type:"Int16",name:"placedIconSymbolIndex"},{type:"Int16",name:"verticalPlacedIconSymbolIndex"},{type:"Uint16",name:"key"},{type:"Uint16",name:"textBoxStartIndex"},{type:"Uint16",name:"textBoxEndIndex"},{type:"Uint16",name:"verticalTextBoxStartIndex"},{type:"Uint16",name:"verticalTextBoxEndIndex"},{type:"Uint16",name:"iconBoxStartIndex"},{type:"Uint16",name:"iconBoxEndIndex"},{type:"Uint16",name:"verticalIconBoxStartIndex"},{type:"Uint16",name:"verticalIconBoxEndIndex"},{type:"Uint16",name:"featureIndex"},{type:"Uint16",name:"numHorizontalGlyphVertices"},{type:"Uint16",name:"numVerticalGlyphVertices"},{type:"Uint16",name:"numIconVertices"},{type:"Uint16",name:"numVerticalIconVertices"},{type:"Uint16",name:"useRuntimeCollisionCircles"},{type:"Uint32",name:"crossTileID"},{type:"Float32",name:"textBoxScale"},{type:"Float32",name:"collisionCircleDiameter"},{type:"Uint16",name:"textAnchorOffsetStartIndex"},{type:"Uint16",name:"textAnchorOffsetEndIndex"},{type:"Float32",name:"heightOffset"}]),dc([{type:"Float32",name:"offsetX"}]),dc([{type:"Int16",name:"x"},{type:"Int16",name:"y"},{type:"Int16",name:"tileUnitDistanceFromAnchor"}]),dc([{type:"Uint16",name:"textAnchor"},{type:"Float32",components:2,name:"textOffset"}]);Y7=new class{constructor(){this.TIMEOUT=5e3,this.applyArabicShaping=null,this.processBidirectionalText=null,this.processStyledBidirectionalText=null,this.pluginStatus="unavailable",this.pluginURL=null,this.loadScriptResolve=()=>{}}setState(e){this.pluginStatus=e.pluginStatus,this.pluginURL=e.pluginURL}getState(){return{pluginStatus:this.pluginStatus,pluginURL:this.pluginURL}}setMethods(e){if(Y7.isParsed())throw Error("RTL text plugin already registered.");this.applyArabicShaping=e.applyArabicShaping,this.processBidirectionalText=e.processBidirectionalText,this.processStyledBidirectionalText=e.processStyledBidirectionalText,this.loadScriptResolve()}isParsed(){return this.applyArabicShaping!=null&&this.processBidirectionalText!=null&&this.processStyledBidirectionalText!=null}getRTLTextPluginStatus(){return this.pluginStatus}syncState(e,t){return Ls(this,null,function*(){if(this.isParsed())return this.getState();if(e.pluginStatus!=="loading")return this.setState(e),e;let r=e.pluginURL,i=new Promise(a=>{this.loadScriptResolve=a}),n=new Promise(a=>setTimeout(()=>a(),this.TIMEOUT));if(yield t(r),yield Promise.race([i,n]),this.isParsed()){let a={pluginStatus:"loaded",pluginURL:r};return this.setState(a),a}throw this.setState({pluginStatus:"error",pluginURL:""}),Error(`RTL Text Plugin failed to import scripts from ${r}`)})}};wwr={C:"18g,1;g2,3;4nb,1",D:"17k,1;5,1;1,1;1,5;4,d;1,7;1,2;z,2;8,g;i,12;1,2;9,1;1,1;1,2;14,3;2,1;28,9;3,f;2,4;1,1;2,3;2,6;7a,1;2,5;1,1;g,a;5,2;2,6;1,f",R:"17m,4;1,1;1,1;5,4;l,1;14,3;1,3;g,i;12,1;2,9;1,1;1,1;2,2;1,1;o,2;2x,3;f,2;4,1;1,2;3,2;6u,j;b,1;r,3;1,1;2,2;6,1",T:"174,b;1,1;1a,l;g,1;2t,7;2,6;2,2;1,4;bt,9;16,o;1,t;1clb,1"},Awr={1569:[65152,0,0,0],1570:[65153,65154,0,0],1571:[65155,65156,0,0],1572:[65157,65158,0,0],1573:[65159,65160,0,0],1574:[65161,65162,65163,65164],1575:[65165,65166,0,0],1576:[65167,65168,65169,65170],1577:[65171,65172,0,0],1578:[65173,65174,65175,65176],1579:[65177,65178,65179,65180],1580:[65181,65182,65183,65184],1581:[65185,65186,65187,65188],1582:[65189,65190,65191,65192],1583:[65193,65194,0,0],1584:[65195,65196,0,0],1585:[65197,65198,0,0],1586:[65199,65200,0,0],1587:[65201,65202,65203,65204],1588:[65205,65206,65207,65208],1589:[65209,65210,65211,65212],1590:[65213,65214,65215,65216],1591:[65217,65218,65219,65220],1592:[65221,65222,65223,65224],1593:[65225,65226,65227,65228],1594:[65229,65230,65231,65232],1601:[65233,65234,65235,65236],1602:[65237,65238,65239,65240],1603:[65241,65242,65243,65244],1604:[65245,65246,65247,65248],1605:[65249,65250,65251,65252],1606:[65253,65254,65255,65256],1607:[65257,65258,65259,65260],1608:[65261,65262,0,0],1609:[65263,65264,64488,64489],1610:[65265,65266,65267,65268],1611:[65136,0,0,65137],1612:[65138,0,0,0],1613:[65140,0,0,0],1614:[65142,0,0,65143],1615:[65144,0,0,65145],1616:[65146,0,0,65147],1617:[65148,0,0,65149],1618:[65150,0,0,65151],1649:[64336,64337,0,0],1655:[64477,0,0,0],1657:[64358,64359,64360,64361],1658:[64350,64351,64352,64353],1659:[64338,64339,64340,64341],1662:[64342,64343,64344,64345],1663:[64354,64355,64356,64357],1664:[64346,64347,64348,64349],1667:[64374,64375,64376,64377],1668:[64370,64371,64372,64373],1670:[64378,64379,64380,64381],1671:[64382,64383,64384,64385],1672:[64392,64393,0,0],1676:[64388,64389,0,0],1677:[64386,64387,0,0],1678:[64390,64391,0,0],1681:[64396,64397,0,0],1688:[64394,64395,0,0],1700:[64362,64363,64364,64365],1702:[64366,64367,64368,64369],1705:[64398,64399,64400,64401],1709:[64467,64468,64469,64470],1711:[64402,64403,64404,64405],1713:[64410,64411,64412,64413],1715:[64406,64407,64408,64409],1722:[64414,64415,0,0],1723:[64416,64417,64418,64419],1726:[64426,64427,64428,64429],1728:[64420,64421,0,0],1729:[64422,64423,64424,64425],1733:[64480,64481,0,0],1734:[64473,64474,0,0],1735:[64471,64472,0,0],1736:[64475,64476,0,0],1737:[64482,64483,0,0],1739:[64478,64479,0,0],1740:[64508,64509,64510,64511],1744:[64484,64485,64486,64487],1746:[64430,64431,0,0],1747:[64432,64433,0,0]},Twr={\u0644\u0622:[65269,65270],\u0644\u0623:[65271,65272],\u0644\u0625:[65273,65274],\u0644\u0627:[65275,65276]},Ctt=1604,Mwr=/[\u0600-\u06ff\u0750-\u077f\u0870-\u089f\u08a0-\u08ff\ufb50-\ufdff\ufe70-\ufeff]/;xat=new Map;for(let[e,t]of Object.entries(wwr))Swr(t,e,xat);bat=typeof Intl<"u"&&"Segmenter"in Intl;C5={"!":"\uFE15","#":"\uFF03",$:"\uFF04","%":"\uFF05","&":"\uFF06","(":"\uFE35",")":"\uFE36","*":"\uFF0A","+":"\uFF0B",",":"\uFE10","-":"\uFE32",".":"\u30FB","/":"\uFF0F",":":"\uFE13",";":"\uFE14","<":"\uFE3F","=":"\uFF1D",">":"\uFE40","?":"\uFE16","@":"\uFF20","[":"\uFE47","\\":"\uFF3C","]":"\uFE48","^":"\uFF3E",_:"\uFE33","`":"\uFF40","{":"\uFE37","|":"\u2015","}":"\uFE38","~":"\uFF5E","\xA2":"\uFFE0","\xA3":"\uFFE1","\xA5":"\uFFE5","\xA6":"\uFFE4","\xAC":"\uFFE2","\xAF":"\uFFE3","\u2013":"\uFE32","\u2014":"\uFE31","\u2018":"\uFE43","\u2019":"\uFE44","\u201C":"\uFE41","\u201D":"\uFE42","\u2026":"\uFE19","\u22EF":"\uFE19","\u2027":"\u30FB","\u20A9":"\uFFE6","\u3001":"\uFE11","\u3002":"\uFE12","\u3008":"\uFE3F","\u3009":"\uFE40","\u300A":"\uFE3D","\u300B":"\uFE3E","\u300C":"\uFE41","\u300D":"\uFE42","\u300E":"\uFE43","\u300F":"\uFE44","\u3010":"\uFE3B","\u3011":"\uFE3C","\u3014":"\uFE39","\u3015":"\uFE3A","\u3016":"\uFE17","\u3017":"\uFE18","\uFF01":"\uFE15","\uFF08":"\uFE35","\uFF09":"\uFE36","\uFF0C":"\uFE10","\uFF0D":"\uFE32","\uFF0E":"\u30FB","\uFF1A":"\uFE13","\uFF1B":"\uFE14","\uFF1C":"\uFE3F","\uFF1E":"\uFE40","\uFF1F":"\uFE16","\uFF3B":"\uFE47","\uFF3D":"\uFE48","\uFF3F":"\uFE33","\uFF5B":"\uFE37","\uFF5C":"\u2015","\uFF5D":"\uFE38","\uFF5F":"\uFE35","\uFF60":"\uFE36","\uFF61":"\uFE12","\uFF62":"\uFE41","\uFF63":"\uFE42"};jwr={10:!0,13:!0,32:!0,38:!0,41:!0,43:!0,45:!0,47:!0,173:!0,183:!0,8203:!0,8208:!0,8211:!0,8231:!0},Wwr={40:!0};xae=class fne{constructor(t="",r=[],i=[]){this.text=t,this.sections=r,this.sectionIndex=i,this.imageSectionID=null,this._graphemes=null}graphemes(){var t;return(t=this._graphemes)!=null||(this._graphemes=lne(this.text)),this._graphemes}static fromFeature(t,r){let i=new fne;for(let n of t.sections)n.image?i.addImageSection(n):i.addTextSection(n,r);return i}length(){return this.graphemes().length}getSection(t){return this.sections[this.sectionIndex[t]]}getSectionIndex(t){return this.sectionIndex[t]}verticalizePunctuation(){this.text=Hwr(this.text),this._graphemes=null}hasZeroWidthSpaces(){return this.text.includes("\u200B")}trim(){let t=this.graphemes(),r=0;for(;rr&&Itt(t[i-1]);)i--;this.text=t.slice(r,i).join(""),this.sectionIndex=this.sectionIndex.slice(r,i),this._graphemes=null}substring(t,r){let i=this.graphemes().slice(t,r).join(""),n=this.sectionIndex.slice(t,r);return new fne(i,this.sections,n)}toCodeUnitIndex(t){return this.graphemes().slice(0,t).join("").length}toString(){return this.text}getMaxScale(){return this.sectionIndex.reduce((t,r)=>Math.max(t,this.sections[r].scale),0)}getMaxImageSize(t){let r=0,i=0;for(let n=0;n0?i[i.length-1]:"",a=lne(n+t);this.text+=t,this._graphemes=i.slice(0,n?-1:void 0).concat(a);let o=a.length-+!!n;for(let s=0;s=63743?null:++this.imageSectionID:(this.imageSectionID=57344,this.imageSectionID)}determineLineBreaks(t,r,i,n,a){let o=[],s=this.determineAverageLineWidth(t,r,i,n,a),l=this.hasZeroWidthSpaces(),u=this.graphemes(),f=null,c=0,h=0;for(let d=0;d0){let v=u[d-1].codePointAt(0),y=p.codePointAt(0),m=gwr(v),w=ktt(v)&&ktt(y);(jwr[v]||m||"imageName"in this.getSection(d-1)||u[d+1]!==void 0&&Wwr[y]||w&&(f!=null?f:f=Vwr(this.text)).has(h))&&o.push(Rtt(d,c,s,o,$wr(v,y,m&&l),!1))}gae(p.codePointAt(0))||(c+=Ptt(p,this.getSection(d),i,n,t,a)),h+=p.length}return Tat(Rtt(this.length(),c,s,o,0,!0))}determineAverageLineWidth(t,r,i,n,a){let o=0,s=0;for(let u of this.graphemes()){let f=this.getSection(s);o+=Ptt(u,f,i,n,t,a),s++}let l=Math.max(1,Math.ceil(o/r));return o/l}};bae=Ywr(),Xwr=/[\u061c\u200e\u200f\u202a-\u202e\u2066-\u2069]/,Zwr=new Set(["WS","FSI","LRI","RLI","PDI"]),Kwr=new Set(["S","B"]);cne=4294967296,sni=1/cne,Btt=typeof TextDecoder>"u"?null:new TextDecoder("utf-8"),Sat=class{constructor(e){this.buf=ArrayBuffer.isView(e)?e:new Uint8Array(e),this.dataView=new DataView(this.buf.buffer,this.buf.byteOffset,this.buf.byteLength),this.pos=0,this.type=0,this._valueStart=-1,this.length=this.buf.length}readFields(e,t,r=this.length){let i;for(;i=this.nextField(r);)e(i,t,this);return t}readMessage(e,t){return this.readFields(e,t,this.readVarint()+this.pos)}readFixed32(){let e=this.dataView.getUint32(this.pos,!0);return this.pos+=4,e}readSFixed32(){let e=this.dataView.getInt32(this.pos,!0);return this.pos+=4,e}readFixed64(){let e=this.dataView.getUint32(this.pos,!0)+this.dataView.getUint32(this.pos+4,!0)*cne;return this.pos+=8,e}readSFixed64(){let e=this.dataView.getUint32(this.pos,!0)+this.dataView.getInt32(this.pos+4,!0)*cne;return this.pos+=8,e}readFloat(){let e=this.dataView.getFloat32(this.pos,!0);return this.pos+=4,e}readDouble(){let e=this.dataView.getFloat64(this.pos,!0);return this.pos+=8,e}readVarint(e){let t=this.buf,r=t[this.pos++];if(r<128)return r;let i=r&127,n;return n=t[this.pos++],i|=(n&127)<<7,n<128||(n=t[this.pos++],i|=(n&127)<<14,n<128)||(n=t[this.pos++],i|=(n&127)<<21,n<128)?i:(n=t[this.pos],i|=(n&15)<<28,sAr(i,e,this))}readSVarint(){let e=this.readVarint();return e%2==1?(e+1)/-2:e/2}readBoolean(){return!!this.readVarint()}readString(){let e=this.readVarint()+this.pos,t=this.pos;return this.pos=e,e-t>=12&&Btt?Btt.decode(this.buf.subarray(t,e)):uAr(this.buf,t,e)}readBytes(){let e=this.readVarint()+this.pos,t=this.buf.subarray(this.pos,e);return this.pos=e,t}readPackedVarint(e=[],t){let r=this.readPackedEnd();for(;this.pos=e)return 0;let t=this.readVarint();return this.type=t&7,this._valueStart=this.pos,t>>>3}skip(e){let t=e&7;if(t===0)for(;this.buf[this.pos++]>127;);else if(t===2)this.pos=this.readVarint()+this.pos;else if(t===5)this.pos+=4;else if(t===1)this.pos+=8;else throw Error(`Unimplemented type: ${t}`)}};Oq=class{constructor(e,{pixelRatio:t,version:r,isWebGLImage:i=!1,stretchX:n,stretchY:a,content:o,textFitWidth:s,textFitHeight:l}){this.paddedRect=e,this.pixelRatio=t,this.stretchX=n,this.stretchY=a,this.content=o,this.version=r,this.needsFirstWebGLRender=i,this.textFitWidth=s,this.textFitHeight=l}get tl(){return[this.paddedRect.x+1,this.paddedRect.y+1]}get br(){return[this.paddedRect.x+this.paddedRect.w-1,this.paddedRect.y+this.paddedRect.h-1]}get tlbr(){return this.tl.concat(this.br)}get displaySize(){return[(this.paddedRect.w-2)/this.pixelRatio,(this.paddedRect.h-2)/this.pixelRatio]}},dAr=class{constructor(e,t){let r={},i={};this.haveRenderCallbacks=[],this.patchedUpdateVersion=-1;let n=[];this.addImages(e,r,n),this.addImages(t,i,n);let{w:a,h:o}=_ae(n),s=new qf({width:a||1,height:o||1});for(let l in e){let u=e[l];if(u.isWebGLImage)continue;let f=r[l].paddedRect;qf.copy(u.data,s,{x:0,y:0},{x:f.x+1,y:f.y+1},u.data)}for(let l in t){let u=t[l],f=i[l].paddedRect,c=f.x+1,h=f.y+1,d=u.data.width,p=u.data.height;qf.copy(u.data,s,{x:0,y:0},{x:c,y:h},u.data),qf.copy(u.data,s,{x:0,y:p-1},{x:c,y:h-1},{width:d,height:1}),qf.copy(u.data,s,{x:0,y:0},{x:c,y:h+p},{width:d,height:1}),qf.copy(u.data,s,{x:d-1,y:0},{x:c-1,y:h},{width:1,height:p}),qf.copy(u.data,s,{x:0,y:0},{x:c+d,y:h},{width:1,height:p})}this.image=s,this.iconPositions=r,this.patternPositions=i}addImages(e,t,r){for(let i in e){let n=e[i],a={x:0,y:0,w:n.data.width+2,h:n.data.height+2};r.push(a),t[i]=new Oq(a,n),n.hasRenderCallback&&this.haveRenderCallbacks.push(i)}}patchUpdatedImages(e,t){if(e.dispatchRenderCallbacks(this.haveRenderCallbacks),this.patchedUpdateVersion!==e.updateVersion){this.patchedUpdateVersion=e.updateVersion;for(let r in this.iconPositions)this.patchUpdatedImage(this.iconPositions[r],e.getImage(r),t);for(let r in this.patternPositions)this.patchUpdatedImage(this.patternPositions[r],e.getImage(r),t)}}patchUpdatedImage(e,t,r){var l;if(!e||!t||!e.needsFirstWebGLRender&&e.version===t.version)return;e.needsFirstWebGLRender=!1,e.version=t.version;let[i,n]=e.tl,a=(l=t.userImage)==null?void 0:l.data;if(!DC(a)){r.update(t.data,void 0,{x:i,y:n});return}let{width:o,height:s}=t.data;r.context.setCustomLayerDefaults(),a.renderWithWebGL({gl:r.context.gl,texture:r.texture,x:i,y:n,width:o,height:s}),r.context.setDirty()}};As("ImagePosition",Oq),As("ImageAtlas",dAr);Cat=(function(e){return e[e.none=0]="none",e[e.horizontal=1]="horizontal",e[e.vertical=2]="vertical",e[e.horizontalOnly=3]="horizontalOnly",e})(Cat||{});qtt=new RegExp("^\\p{gc=M}$","u");Vtt=32640;I5=class zat extends Jr{constructor(t,r,i,n){super(t,r),this.angle=i,n!==void 0&&(this.segment=n)}clone(){return new zat(this.x,this.y,this.angle,this.segment)}};As("Anchor",I5);M7=class{constructor(e,t,r,i,n,a,o,s,l,u){var f;if(this.boxStartIndex=e.length,l){let c=a.top,h=a.bottom,d=a.collisionPadding;d&&(c-=d[1],h+=d[3]);let p=h-c;p>0&&(p=Math.max(10,p),this.circleDiameter=p)}else{let c=(f=a.image)!=null&&f.content&&(a.image.textFitWidth||a.image.textFitHeight)?Pat(a):{x1:a.left,y1:a.top,x2:a.right,y2:a.bottom};c.y1=c.y1*o-s[0],c.y2=c.y2*o+s[2],c.x1=c.x1*o-s[3],c.x2=c.x2*o+s[1];let h=a.collisionPadding;if(h&&(c.x1-=h[0]*o,c.y1-=h[1]*o,c.x2+=h[2]*o,c.y2+=h[3]*o),u){let d=new Jr(c.x1,c.y1),p=new Jr(c.x2,c.y1),v=new Jr(c.x1,c.y2),y=new Jr(c.x2,c.y2),m=u*Math.PI/180;d._rotate(m),p._rotate(m),v._rotate(m),y._rotate(m),c.x1=Math.min(d.x,p.x,v.x,y.x),c.x2=Math.max(d.x,p.x,v.x,y.x),c.y1=Math.min(d.y,p.y,v.y,y.y),c.y2=Math.max(d.y,p.y,v.y,y.y)}e.emplaceBack(t.x,t.y,c.x1,c.y1,c.x2,c.y2,r,i,n)}this.boxEndIndex=e.length}},NAr=class{constructor(e=[],t=(r,i)=>ri)){if(this.data=e,this.length=this.data.length,this.compare=t,this.length>0)for(let r=(this.length>>1)-1;r>=0;r--)this._down(r)}push(e){this.data.push(e),this._up(this.length++)}pop(){if(this.length===0)return;let e=this.data[0],t=this.data.pop();return--this.length>0&&(this.data[0]=t,this._down(0)),e}peek(){return this.data[0]}_up(e){let{data:t,compare:r}=this,i=t[e];for(;e>0;){let n=e-1>>1,a=t[n];if(r(i,a)>=0)break;t[e]=a,e=n}t[e]=i}_down(e){let{data:t,compare:r}=this,i=this.length>>1,n=t[e];for(;e=0)break;t[e]=t[a],e=a}t[e]=n}};E5=class{constructor(e,t,r,i){this.p=new Jr(e,t),this.h=r,this.d=GAr(this.p,i),this.max=this.d+this.h*Math.SQRT2}};Vq=(function(e){return e[e.center=1]="center",e[e.left=2]="left",e[e.right=3]="right",e[e.top=4]="top",e[e.bottom=5]="bottom",e[e["top-left"]=6]="top-left",e[e["top-right"]=7]="top-right",e[e["bottom-left"]=8]="bottom-left",e[e["bottom-right"]=9]="bottom-right",e})({}),Aae=1/0;KAr=[{name:"a_fade_opacity",components:1,type:"Uint8",offset:0}];dne=class{constructor(e){this.layoutVertexArray=new __r,this.indexArray=new z1,this.programConfigurations=e,this.segments=new nc,this.dynamicLayoutVertexArray=new w_r,this.opacityVertexArray=new A_r,this.hasVisibleVertices=!1,this.placedSymbolArray=new bnt}isEmpty(){return this.layoutVertexArray.length===0&&this.indexArray.length===0&&this.dynamicLayoutVertexArray.length===0&&this.opacityVertexArray.length===0}upload(e,t,r,i){this.isEmpty()||(r&&(this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,dwr.members),this.indexBuffer=e.createIndexBuffer(this.indexArray,t),this.dynamicLayoutVertexBuffer=e.createVertexBuffer(this.dynamicLayoutVertexArray,pwr.members,!0),this.opacityVertexBuffer=e.createVertexBuffer(this.opacityVertexArray,KAr,!0),this.opacityVertexBuffer.itemSize=1),(r||i)&&this.programConfigurations.upload(e))}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.dynamicLayoutVertexBuffer.destroy(),this.opacityVertexBuffer.destroy())}};As("SymbolBuffers",dne);pne=class{constructor(e,t,r){this.layoutVertexArray=new e,this.layoutAttributes=t,this.indexArray=new r,this.segments=new nc,this.collisionVertexArray=new T_r}upload(e){this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,this.layoutAttributes),this.indexBuffer=e.createIndexBuffer(this.indexArray),this.collisionVertexBuffer=e.createVertexBuffer(this.collisionVertexArray,vwr.members,!0)}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.segments.destroy(),this.collisionVertexBuffer.destroy())}};As("CollisionBuffers",pne);zC=class{constructor(e){this.collisionBoxArray=e.collisionBoxArray,this.zoom=e.zoom,this.overscaling=e.overscaling,this.layers=e.layers,this.layerIds=this.layers.map(o=>o.id),this.index=e.index,this.pixelRatio=e.pixelRatio,this.sourceLayerIndex=e.sourceLayerIndex,this.hasDependencies=!0,this.hasRTLText=!1,this.maxHeightOffset=0,this.sortKeyRanges=[],this.collisionCircleArray=[],this.maxGlyphs=65535;let t=this.layers[0]._unevaluatedLayout._values;this.textSizeData=Utt(this.zoom,t["text-size"]),this.iconSizeData=Utt(this.zoom,t["icon-size"]);let r=this.layers[0].layout,i=r.get("symbol-sort-key"),n=r.get("symbol-z-order");this.canOverlap=uC(r,"text-overlap","text-allow-overlap")!=="never"||uC(r,"icon-overlap","icon-allow-overlap")!=="never"||r.get("text-ignore-placement")||r.get("icon-ignore-placement"),this.sortFeaturesByKey=n!=="viewport-y"&&!i.isConstant();let a=n==="viewport-y"||n==="auto"&&!this.sortFeaturesByKey;this.sortFeaturesByY=a&&this.canOverlap,r.get("symbol-placement")==="point"&&(this.writingModes=r.get("text-writing-mode").map(o=>Cat[o])),this.stateDependentLayerIds=this.layers.filter(o=>o.isStateDependent()).map(o=>o.id),this.sourceID=e.sourceID}createArrays(){this.text=new dne(new u3(this.layers,this.zoom,e=>e.startsWith("text"))),this.icon=new dne(new u3(this.layers,this.zoom,e=>e.startsWith("icon"))),this.glyphOffsetArray=new Ant,this.lineVertexArray=new Tnt,this.symbolInstances=new wnt,this.textAnchorOffsets=new Snt}calculateGlyphDependencies(e,t,r,i,n){var l;let a=(i||this.allowVerticalPlacement)&&n,o=xae.fromFeature(e,r),s=o.graphemes();for(let u=0;u0)&&(a.value.kind!=="constant"||a.value.value.length>0),u=s.value.kind!=="constant"||!!s.value.value||Object.keys(s.parameters).length>0,f=n.get("symbol-sort-key");if(this.features=[],!l&&!u)return;let c=t.iconDependencies,h=t.glyphDependencies,d=t.availableImages,p=new Xu(this.zoom);for(let{feature:y,id:m,index:w,sourceLayerIndex:_}of e){let b=i._featureFilter.needGeometry,M=xx(y,b);if(!i._featureFilter.filter(p,M,r))continue;b||(M.geometry=m3(y));let x;if(l){let E=i.getValueAndResolveTokens("text-field",M,r,d),S=Qy.factory(E);this.hasRTLText||(this.hasRTLText=JAr(S)),x=qwr(S,i,M)}let T;if(u){let E=i.getValueAndResolveTokens("icon-image",M,r,d);T=E instanceof Vm?E:Vm.fromString(E)}if(!x&&!T)continue;let A=this.sortFeaturesByKey?f.evaluate(M,{},r):void 0,g={id:m,text:x,icon:T,index:w,sourceLayerIndex:_,geometry:M.geometry,properties:y.properties,type:kC.types[y.type],sortKey:A};if(this.features.push(g),T&&(c[T.name]=!0),x){let E=a.evaluate(M,{},r).join(","),S=n.get("text-rotation-alignment")!=="viewport"&&n.get("symbol-placement")!=="point";this.allowVerticalPlacement=(v=this.writingModes)==null?void 0:v.includes(2);let C=une(x.toString());this.calculateGlyphDependencies(x,h,E,S,C);for(let k of x.sections)k.image&&(c[k.image.name]=!0)}}n.get("symbol-placement")==="line"&&(this.features=Nwr(this.features)),this.sortFeaturesByKey&&this.features.sort((y,m)=>y.sortKey-m.sortKey)}update(e,t,r){this.stateDependentLayers.length&&(this.text.programConfigurations.updatePaintArrays(e,t,this.layers,{imagePositions:r}),this.icon.programConfigurations.updatePaintArrays(e,t,this.layers,{imagePositions:r}))}addFeatures({options:e,canonical:t,glyphMap:r,glyphPositions:i,iconMap:n,iconPositions:a,showCollisionBoxes:o}){jAr({bucket:this,glyphMap:r,glyphPositions:i,imageMap:n,imagePositions:a,showCollisionBoxes:o,canonical:t,subdivisionGranularity:e.subdivisionGranularity,hasPromoteId:e.featureIndex.promoteId!=null})}isEmpty(){return this.symbolInstances.length===0}uploadPending(){return!this.uploaded||this.text.programConfigurations.needsUpload||this.icon.programConfigurations.needsUpload}upload(e){!this.uploaded&&this.hasDebugData()&&(this.textCollisionBox.upload(e),this.iconCollisionBox.upload(e)),this.text.upload(e,this.sortFeaturesByY,!this.uploaded,this.text.programConfigurations.needsUpload),this.icon.upload(e,this.sortFeaturesByY,!this.uploaded,this.icon.programConfigurations.needsUpload),this.uploaded=!0}destroyDebugData(){this.textCollisionBox.destroy(),this.iconCollisionBox.destroy()}destroy(){this.text.destroy(),this.icon.destroy(),this.hasDebugData()&&this.destroyDebugData()}addToLineVertexArray(e,t){let r=this.lineVertexArray.length;if(e.segment!==void 0){let i=e.dist(t[e.segment+1]),n=e.dist(t[e.segment]),a={};for(let o=e.segment+1;o=0;o--)a[o]={x:t[o].x,y:t[o].y,tileUnitDistanceFromAnchor:n},o>0&&(n+=t[o-1].dist(t[o]));for(let o=0;o0}hasIconData(){return this.icon.segments.get().length>0}hasDebugData(){return this.textCollisionBox&&this.iconCollisionBox}hasTextCollisionBoxData(){return this.hasDebugData()&&this.textCollisionBox.segments.get().length>0}hasIconCollisionBoxData(){return this.hasDebugData()&&this.iconCollisionBox.segments.get().length>0}addIndicesForPlacedSymbol(e,t){let r=e.placedSymbolArray.get(t),i=r.vertexStartIndex+r.numGlyphs*4;for(let n=r.vertexStartIndex;ni[o]-i[s]||n[s]-n[o]),a}addToSortKeyRanges(e,t){let r=this.sortKeyRanges[this.sortKeyRanges.length-1];(r==null?void 0:r.sortKey)===t?r.symbolInstanceEnd=e+1:this.sortKeyRanges.push({sortKey:t,symbolInstanceStart:e,symbolInstanceEnd:e+1})}sortFeatures(e){if(this.sortFeaturesByY&&this.sortedAngle!==e&&!(this.text.segments.get().length>1||this.icon.segments.get().length>1)){this.symbolInstanceIndexes=this.getSortedSymbolIndexes(e),this.sortedAngle=e,this.text.indexArray.clear(),this.icon.indexArray.clear(),this.featureSortOrder=[];for(let t of this.symbolInstanceIndexes){let r=this.symbolInstances.get(t);this.featureSortOrder.push(r.featureIndex);let i=[r.rightJustifiedTextSymbolIndex,r.centerJustifiedTextSymbolIndex,r.leftJustifiedTextSymbolIndex];for(let n=0;n=0&&i.indexOf(a)===n&&this.addIndicesForPlacedSymbol(this.text,a)}r.verticalPlacedTextSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.text,r.verticalPlacedTextSymbolIndex),r.placedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,r.placedIconSymbolIndex),r.verticalPlacedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,r.verticalPlacedIconSymbolIndex)}this.text.indexBuffer&&this.text.indexBuffer.updateData(this.text.indexArray),this.icon.indexBuffer&&this.icon.indexBuffer.updateData(this.icon.indexArray)}}};As("SymbolBucket",zC,{omit:["layers","collisionBoxArray","features","compareText"]});e4r=()=>Wtt||(Wtt=new Vh({"symbol-placement":new ms(hn.layout_symbol["symbol-placement"],"symbol-placement"),"symbol-spacing":new ms(hn.layout_symbol["symbol-spacing"],"symbol-spacing"),"symbol-avoid-edges":new ms(hn.layout_symbol["symbol-avoid-edges"],"symbol-avoid-edges"),"symbol-sort-key":new al(hn.layout_symbol["symbol-sort-key"],"symbol-sort-key"),"symbol-z-order":new ms(hn.layout_symbol["symbol-z-order"],"symbol-z-order"),"icon-allow-overlap":new ms(hn.layout_symbol["icon-allow-overlap"],"icon-allow-overlap"),"icon-overlap":new ms(hn.layout_symbol["icon-overlap"],"icon-overlap"),"icon-ignore-placement":new ms(hn.layout_symbol["icon-ignore-placement"],"icon-ignore-placement"),"icon-optional":new ms(hn.layout_symbol["icon-optional"],"icon-optional"),"icon-rotation-alignment":new al(hn.layout_symbol["icon-rotation-alignment"],"icon-rotation-alignment"),"icon-size":new al(hn.layout_symbol["icon-size"],"icon-size"),"icon-text-fit":new ms(hn.layout_symbol["icon-text-fit"],"icon-text-fit"),"icon-text-fit-padding":new ms(hn.layout_symbol["icon-text-fit-padding"],"icon-text-fit-padding"),"icon-image":new al(hn.layout_symbol["icon-image"],"icon-image"),"icon-rotate":new al(hn.layout_symbol["icon-rotate"],"icon-rotate"),"icon-padding":new al(hn.layout_symbol["icon-padding"],"icon-padding"),"icon-keep-upright":new ms(hn.layout_symbol["icon-keep-upright"],"icon-keep-upright"),"icon-offset":new al(hn.layout_symbol["icon-offset"],"icon-offset"),"icon-anchor":new al(hn.layout_symbol["icon-anchor"],"icon-anchor"),"icon-pitch-alignment":new ms(hn.layout_symbol["icon-pitch-alignment"],"icon-pitch-alignment"),"text-pitch-alignment":new ms(hn.layout_symbol["text-pitch-alignment"],"text-pitch-alignment"),"text-rotation-alignment":new ms(hn.layout_symbol["text-rotation-alignment"],"text-rotation-alignment"),"text-field":new al(hn.layout_symbol["text-field"],"text-field"),"text-font":new al(hn.layout_symbol["text-font"],"text-font"),"text-size":new al(hn.layout_symbol["text-size"],"text-size"),"text-max-width":new al(hn.layout_symbol["text-max-width"],"text-max-width"),"text-line-height":new ms(hn.layout_symbol["text-line-height"],"text-line-height"),"text-letter-spacing":new al(hn.layout_symbol["text-letter-spacing"],"text-letter-spacing"),"text-justify":new al(hn.layout_symbol["text-justify"],"text-justify"),"text-radial-offset":new al(hn.layout_symbol["text-radial-offset"],"text-radial-offset"),"text-variable-anchor":new ms(hn.layout_symbol["text-variable-anchor"],"text-variable-anchor"),"text-variable-anchor-offset":new al(hn.layout_symbol["text-variable-anchor-offset"],"text-variable-anchor-offset"),"text-anchor":new al(hn.layout_symbol["text-anchor"],"text-anchor"),"text-max-angle":new ms(hn.layout_symbol["text-max-angle"],"text-max-angle"),"text-writing-mode":new ms(hn.layout_symbol["text-writing-mode"],"text-writing-mode"),"text-rotate":new al(hn.layout_symbol["text-rotate"],"text-rotate"),"text-padding":new ms(hn.layout_symbol["text-padding"],"text-padding"),"text-keep-upright":new ms(hn.layout_symbol["text-keep-upright"],"text-keep-upright"),"text-transform":new al(hn.layout_symbol["text-transform"],"text-transform"),"text-offset":new al(hn.layout_symbol["text-offset"],"text-offset"),"text-allow-overlap":new ms(hn.layout_symbol["text-allow-overlap"],"text-allow-overlap"),"text-overlap":new ms(hn.layout_symbol["text-overlap"],"text-overlap"),"text-ignore-placement":new ms(hn.layout_symbol["text-ignore-placement"],"text-ignore-placement"),"text-optional":new ms(hn.layout_symbol["text-optional"],"text-optional"),"symbol-height-offset":new al(hn.layout_symbol["symbol-height-offset"],"symbol-height-offset"),"symbol-height-anchor":new ms(hn.layout_symbol["symbol-height-anchor"],"symbol-height-anchor")})),t4r=()=>$tt||($tt=new Vh({"icon-opacity":new al(hn.paint_symbol["icon-opacity"],"icon-opacity"),"icon-color":new al(hn.paint_symbol["icon-color"],"icon-color"),"icon-halo-color":new al(hn.paint_symbol["icon-halo-color"],"icon-halo-color"),"icon-halo-width":new al(hn.paint_symbol["icon-halo-width"],"icon-halo-width"),"icon-halo-blur":new al(hn.paint_symbol["icon-halo-blur"],"icon-halo-blur"),"icon-translate":new ms(hn.paint_symbol["icon-translate"],"icon-translate"),"icon-translate-anchor":new ms(hn.paint_symbol["icon-translate-anchor"],"icon-translate-anchor"),"text-opacity":new al(hn.paint_symbol["text-opacity"],"text-opacity"),"text-color":new al(hn.paint_symbol["text-color"],"text-color",{runtimeType:k1,getOverride:e=>e.textColor,hasOverride:e=>!!e.textColor}),"text-halo-color":new al(hn.paint_symbol["text-halo-color"],"text-halo-color"),"text-halo-width":new al(hn.paint_symbol["text-halo-width"],"text-halo-width"),"text-halo-blur":new al(hn.paint_symbol["text-halo-blur"],"text-halo-blur"),"text-translate":new ms(hn.paint_symbol["text-translate"],"text-translate"),"text-translate-anchor":new ms(hn.paint_symbol["text-translate-anchor"],"text-translate-anchor")})),oie={get paint(){return t4r()},get layout(){return e4r()}},Gat=class{constructor(e){if(e.property.overrides===void 0)throw Error("overrides must be provided to instantiate FormatSectionOverride class");this.type=e.property.overrides?e.property.overrides.runtimeType:xC,this.defaultValue=e}evaluate(e){if(e.formattedSection){let t=this.defaultValue.property.overrides;if(t!=null&&t.hasOverride(e.formattedSection))return t.getOverride(e.formattedSection)}return e.feature&&e.featureState?this.defaultValue.evaluate(e.feature,e.featureState):this.defaultValue.property.specification.default}eachChild(e){if(!this.defaultValue.isConstant()){let t=this.defaultValue.value;e(t._styleExpression.expression)}}outputDefined(){return!1}serialize(){return null}};As("FormatSectionOverride",Gat,{omit:["defaultValue"]});Tae=e=>e.type==="symbol",r4r=class vne extends P1{constructor(t,r){super(t,oie,r)}recalculate(t,r){super.recalculate(t,r);let i=this.layout.get("icon-rotation-alignment");if((i.value.kind!=="constant"||i.value.value==="auto")&&(this.layout._values["icon-rotation-alignment"]=new Tv(i.property,{kind:"constant",value:this.layout.get("symbol-placement")==="point"?"viewport":"map"},i.parameters)),this.layout.get("text-rotation-alignment")==="auto"&&(this.layout.get("symbol-placement")==="point"?this.layout._values["text-rotation-alignment"]="viewport":this.layout._values["text-rotation-alignment"]="map"),this.layout.get("text-pitch-alignment")==="auto"&&(this.layout._values["text-pitch-alignment"]=this.layout.get("text-rotation-alignment")==="map"?"map":"viewport"),this.layout.get("icon-pitch-alignment")==="auto"&&(this.layout._values["icon-pitch-alignment"]=this.layout.get("icon-rotation-alignment").constantOr("viewport")),this.layout.get("symbol-placement")==="point"){let n=this.layout.get("text-writing-mode");if(n){let a=[];for(let o of n)a.includes(o)||a.push(o);this.layout._values["text-writing-mode"]=a}else this.layout._values["text-writing-mode"]=["horizontal"]}this._setPaintOverrides()}getValueAndResolveTokens(t,r,i,n){let a=this.layout.get(t).evaluate(r,{},i,n),o=this._unevaluatedLayout._values[t];return!o.isDataDriven()&&!Aq(o.value)&&a?QAr(r.properties,a):a}createBucket(t){return new zC(t)}queryRadius(){return 0}queryIntersectsFeature(){throw Error("Should take a different path in FeatureIndex")}_setPaintOverrides(){for(let t of oie.paint.overridableProperties){if(!vne.hasPaintOverride(this.layout,t))continue;let r=this.paint.get(t),i=new Zne(new Gat(r),`layers[${this.id}].paint.${r.property.name}`,r.property.specification),n=null;n=r.value.kind==="constant"||r.value.kind==="source"?new Qk("source",i):new q7("composite",i,r.value.zoomStops),this.paint._values[t]=new Tv(r.property,n,r.parameters)}}_handleOverridablePaintPropertyUpdate(t,r,i){return!this.layout||r.isDataDriven()||i.isDataDriven()?!1:vne.hasPaintOverride(this.layout,t)}static hasPaintOverride(t,r){let i=t.get("text-field"),n=oie.paint.properties[r],a=!1,o=s=>{var l;for(let u of s)if((l=n.overrides)!=null&&l.hasOverride(u)){a=!0;return}};if(i.value.kind==="constant"&&i.value.value instanceof Qy)o(i.value.value.sections);else if(i.value.kind==="source"||i.value.kind==="composite"){let s=u=>{if(!a)if(u instanceof N5&&rh(u.value)===bC){let f=u.value;o(f.sections)}else u instanceof lit?o(u.sections):u.eachChild(s)},l=i.value;l._styleExpression&&s(l._styleExpression.expression)}return a}};n4r=()=>Ytt||(Ytt=new Vh({"background-color":new ms(hn.paint_background["background-color"],"background-color"),"background-pattern":new ynt(hn.paint_background["background-pattern"],"background-pattern"),"background-opacity":new ms(hn.paint_background["background-opacity"],"background-opacity")})),a4r={get paint(){return n4r()}},Hat=e=>e.type==="background",o4r=class extends P1{constructor(e,t){super(e,a4r,t)}};Wat=e=>e.type==="custom",s4r=class extends P1{constructor(e,t){super(e,{},t),this.onAdd=r=>{this.implementation.onAdd&&this.implementation.onAdd(r,r.painter.context.gl)},this.onRemove=r=>{this.implementation.onRemove&&this.implementation.onRemove(r,r.painter.context.gl)},this.implementation=e}is3D(){return this.implementation.renderingMode==="3d"}hasOffscreenPass(){return this.implementation.prerender!==void 0}recalculate(){}updateTransitions(){}hasTransition(){return!1}serialize(){throw Error("Custom layers cannot be serialized")}};l4r=class{constructor(e){this._methodToThrottle=e,this._triggered=!1,this._channel=new MessageChannel,this._channel.port2.onmessage=()=>{this._triggered=!1,this._methodToThrottle()}}trigger(){var e;this._triggered||(this._triggered=!0,(e=this._channel)==null||e.port1.postMessage(!0))}remove(){delete this._channel,this._methodToThrottle=()=>{}}},u4r={once:!0},$at=class{constructor(e,t){this.target=e,this.mapId=t,this.resolveRejects={},this.tasks={},this.taskQueue=[],this.abortControllers={},this.messageHandlers={},this.invoker=new l4r(()=>this.process()),this.subscription=$k(this.target,"message",r=>this.receive(r),!1),this.globalScope=s3(self)?e:window}registerMessageHandler(e,t){this.messageHandlers[e]=t}unregisterMessageHandler(e){delete this.messageHandlers[e]}sendAsync(e,t){return new Promise((r,i)=>{let n=Math.round(Math.random()*1e18).toString(36).substring(0,10),a=t?$k(t.signal,"abort",()=>{a==null||a.unsubscribe(),delete this.resolveRejects[n];let l={id:n,type:"",origin:location.origin,targetMapId:e.targetMapId,sourceMapId:this.mapId};this.target.postMessage(l),i(new X5(t.signal.reason))},u4r):null;this.resolveRejects[n]={resolve:l=>{a==null||a.unsubscribe(),r(l)},reject:l=>{a==null||a.unsubscribe(),i(l)}};let o=[],s=$l(Gs({},e),{id:n,sourceMapId:this.mapId,origin:location.origin,data:Hk(e.data,o)});this.target.postMessage(s,{transfer:o})})}receive(e){let t=e.data,r=t.id,i=["file://","resource://android","null"],n=[t.origin,location.origin],a=t.origin===location.origin,o=n.some(s=>i.includes(s));if((a||o)&&!(t.targetMapId&&this.mapId!==t.targetMapId)){if(t.type===""){delete this.tasks[r];let s=this.abortControllers[r];delete this.abortControllers[r],s&&s.abort();return}if(s3(self)||t.mustQueue){this.tasks[r]=t,this.taskQueue.push(r),this.invoker.trigger();return}this.processTask(r,t)}}process(){if(this.taskQueue.length===0)return;let e=this.taskQueue.shift(),t=this.tasks[e];delete this.tasks[e],this.taskQueue.length>0&&this.invoker.trigger(),t&&this.processTask(e,t)}processTask(e,t){return Ls(this,null,function*(){if(t.type===""){let n=this.resolveRejects[e];if(delete this.resolveRejects[e],!n)return;t.error?n.reject(f0(jk(t.error))):n.resolve(jk(t.data));return}if(!this.messageHandlers[t.type]){this.completeTask(e,null,null);return}let r=jk(t.data),i=new AbortController;this.abortControllers[e]=i;try{let n=yield this.messageHandlers[t.type](t.sourceMapId,r,i);this.completeTask(e,null,n)}catch(n){this.completeTask(e,f0(n))}})}completeTask(e,t,r){let i=[];delete this.abortControllers[e];let n={id:e,type:"",sourceMapId:this.mapId,origin:location.origin,error:t?Hk(t):null,data:Hk(r,i)};this.target.postMessage(n,{transfer:i})}remove(){this.invoker.remove(),this.subscription.unsubscribe()}};IC=class{constructor(e,t,r){if(!f4r(e,t,r))throw Error(`x=${t}, y=${r}, z=${e} outside of bounds. 0<=x<${2**e}, 0<=y<${2**e} 0<=z<=25 `);this.z=e,this.x=t,this.y=r,this.key=a3(0,e,e,t,r)}equals(e){return this.z===e.z&&this.x===e.x&&this.y===e.y}url(e,t,r){let i=c4r(this.x,this.y,this.z),n=h4r(this.z,this.x,this.y);return e[(this.x+this.y)%e.length].replace(/{prefix}/g,(this.x%16).toString(16)+(this.y%16).toString(16)).replace(/{z}/g,String(this.z)).replace(/{x}/g,String(this.x)).replace(/{y}/g,String(r==="tms"?2**this.z-this.y-1:this.y)).replace(/{ratio}/g,t>1?"@2x":"").replace(/{quadkey}/g,n).replace(/{bbox-epsg-3857}/g,i)}isChildOf(e){let t=this.z-e.z;return t>0&&e.x===this.x>>t&&e.y===this.y>>t}getTilePoint(e){let t=2**this.z;return new Jr((e.x*t-this.x)*Aa,(e.y*t-this.y)*Aa)}toString(){return`${this.z}/${this.x}/${this.y}`}},RC=class{constructor(e,t){this.wrap=e,this.canonical=t,this.key=a3(e,t.z,t.z,t.x,t.y)}},p0=class wv{constructor(t,r,i,n,a){if(this.terrainRttPosMatrix32f=null,t= z; overscaledZ = ${t}; z = ${i}`);this.overscaledZ=t,this.wrap=r,this.canonical=new IC(i,+n,+a),this.key=a3(r,t,i,n,a)}clone(){return new wv(this.overscaledZ,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)}equals(t){return this.overscaledZ===t.overscaledZ&&this.wrap===t.wrap&&this.canonical.equals(t.canonical)}scaledTo(t){if(t>this.overscaledZ)throw Error(`targetZ > this.overscaledZ; targetZ = ${t}; overscaledZ = ${this.overscaledZ}`);let r=this.canonical.z-t;return t>this.canonical.z?new wv(t,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y):new wv(t,this.wrap,t,this.canonical.x>>r,this.canonical.y>>r)}isOverscaled(){return this.overscaledZ>this.canonical.z}calculateScaledKey(t,r){if(t>this.overscaledZ)throw Error(`targetZ > this.overscaledZ; targetZ = ${t}; overscaledZ = ${this.overscaledZ}`);let i=this.canonical.z-t;return t>this.canonical.z?a3(this.wrap*+r,t,this.canonical.z,this.canonical.x,this.canonical.y):a3(this.wrap*+r,t,t,this.canonical.x>>i,this.canonical.y>>i)}isChildOf(t){if(t.wrap!==this.wrap||this.overscaledZ-t.overscaledZ<=0)return!1;if(t.overscaledZ===0)return this.overscaledZ>0;let r=this.canonical.z-t.canonical.z;return r<0?!1:t.canonical.x===this.canonical.x>>r&&t.canonical.y===this.canonical.y>>r}children(t){if(this.overscaledZ>=t)return[new wv(this.overscaledZ+1,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)];let r=this.canonical.z+1,i=this.canonical.x*2,n=this.canonical.y*2;return[new wv(r,this.wrap,r,i,n),new wv(r,this.wrap,r,i+1,n),new wv(r,this.wrap,r,i,n+1),new wv(r,this.wrap,r,i+1,n+1)]}isLessThan(t){return this.wrapt.wrap?!1:this.overscaledZt.overscaledZ?!1:this.canonical.xt.canonical.x?!1:this.canonical.y=0&&t=0&&r=u)return null;let c=this.canonical.x+n,h=this.wrap;return c<0?(h-=Math.ceil(-c/u),c=(c%u+u)%u):c>=u&&(h+=Math.floor(c/u),c%=u),{tileID:new wv(this.overscaledZ,h,l,c,f),x:o,y:s}}};sie=Math.PI*6378137;As("CanonicalTileID",IC),As("OverscaledTileID",p0,{omit:["terrainRttPosMatrix32f"]});BC="_geojsonTileLayer",d4r=class{constructor(e){this._stringToNumber={},this._numberToString=[];for(let t=0;t=this._numberToString.length)throw Error(`Out of bounds. Index requested n=${e} can't be >= this._numberToString.length ${this._numberToString.length}`);return this._numberToString[e]}},Eae=class{constructor(e,t,r,i,n){this.type="Feature",this._vectorTileFeature=e,this._x=r,this._y=i,this._z=t;for(let a in e.properties)typeof e.properties[a]=="string"&&e.properties[a].startsWith("__$json__:")&&(e.properties[a]=JSON.parse(e.properties[a].slice(10)));this.properties=e.properties,this.id=n}projectPoint(e,t,r,i){return[(e.x+t)*360/i-180,360/Math.PI*Math.atan(Math.exp((1-(e.y+r)*2/i)*Math.PI))-90]}projectLine(e,t,r,i){return e.map(n=>this.projectPoint(n,t,r,i))}get geometry(){if(this._geometry)return this._geometry;let e=this._vectorTileFeature,t=e.extent*2**this._z,r=e.extent*this._x,i=e.extent*this._y,n=e.loadGeometry();switch(e.type){case 1:{let a=[];for(let s of n)a.push(s[0]);let o=this.projectLine(a,r,i,t);this._geometry=a.length===1?{type:"Point",coordinates:o[0]}:{type:"MultiPoint",coordinates:o};break}case 2:{let a=n.map(o=>this.projectLine(o,r,i,t));this._geometry=a.length===1?{type:"LineString",coordinates:a[0]}:{type:"MultiLineString",coordinates:a};break}case 3:{let a=sat(n),o=[];for(let s of a)o.push(s.map(l=>this.projectLine(l,r,i,t)));this._geometry=o.length===1?{type:"Polygon",coordinates:o[0]}:{type:"MultiPolygon",coordinates:o};break}default:throw Error(`unknown feature type: ${e.type}`)}return this._geometry}set geometry(e){this._geometry=e}toJSON(){let e={geometry:this.geometry};for(let t in this)t!=="_geometry"&&t!=="_vectorTileFeature"&&t!=="_x"&&t!=="_y"&&t!=="_z"&&(e[t]=this[t]);return e}},x3=class{constructor(e,t,r){this._name=e,this.dataBuffer=t,typeof r=="number"?this._size=r:(this.nullabilityBuffer=r,this._size=r.size())}getValue(e){return this.nullabilityBuffer&&!this.nullabilityBuffer.get(e)?null:this.getValueFromBuffer(e)}has(e){var t;return((t=this.nullabilityBuffer)==null?void 0:t.get(e))||!this.nullabilityBuffer}get name(){return this._name}get size(){return this._size}},Gq=class extends x3{},kae=class extends Gq{getValueFromBuffer(e){return this.dataBuffer[e]}},Cae=class extends Gq{getValueFromBuffer(e){return this.dataBuffer[e]}},Yat=class extends x3{constructor(e,t,r,i){super(e,t,i),this.delta=r}},Dae=class extends Yat{constructor(e,t,r,i,n){super(e,n?Int32Array.of(t):Uint32Array.of(t),r,i)}getValueFromBuffer(e){return this.dataBuffer[0]+e*this.delta}},Fae=class extends x3{constructor(e,t,r,i){super(e,i?Int32Array.of(t):Uint32Array.of(t),r)}getValueFromBuffer(e){return this.dataBuffer[0]}},p4r=class{constructor(e,t,r,i,n=4096){if(this._name=e,this._geometryVector=t,this._idVector=r,this._propertyVectors=i,this._extent=n,e.length===0)throw Error("Missing layer name")}get name(){return this._name}get idVector(){return this._idVector}get geometryVector(){return this._geometryVector}get propertyVectors(){var e;return(e=this._propertyVectors)!=null?e:[]}getPropertyVector(e){return this.propertyVectorsMap||(this.propertyVectorsMap=new Map(this.propertyVectors.map(t=>[t.name,t]))),this.propertyVectorsMap.get(e)}get numFeatures(){return this.geometryVector.numGeometries}get extent(){return this._extent}getFeatures(){let e=[],t=this.geometryVector.getGeometries();for(let r=0;r>>32-e;mne=Lae,Pae=65536;yne=Kat(Pae),O4r=3*yne/256+yne|0;(function(e){e.PRESENT="PRESENT",e.DATA="DATA",e.OFFSET="OFFSET",e.LENGTH="LENGTH"})(th||(th={}));(function(e){e.NONE="NONE",e.SINGLE="SINGLE",e.SHARED="SHARED",e.VERTEX="VERTEX",e.MORTON="MORTON",e.FSST="FSST"})(td||(td={}));(function(e){e.VERTEX="VERTEX",e.INDEX="INDEX",e.STRING="STRING",e.KEY="KEY"})(Bm||(Bm={}));(function(e){e.VAR_BINARY="VAR_BINARY",e.GEOMETRIES="GEOMETRIES",e.PARTS="PARTS",e.RINGS="RINGS",e.TRIANGLES="TRIANGLES",e.SYMBOL="SYMBOL",e.DICTIONARY="DICTIONARY"})(Eh||(Eh={}));C5r=[th.PRESENT,th.DATA,th.OFFSET,th.LENGTH],ert=[Xl.NONE,Xl.DELTA,Xl.COMPONENTWISE_DELTA,Xl.RLE,Xl.MORTON],D5r=[_p.NONE,_p.FAST_PFOR,_p.VARINT],F5r=[td.NONE,td.SINGLE,td.SHARED,td.VERTEX,td.MORTON,td.FSST],L5r=[Bm.VERTEX,Bm.INDEX,Bm.STRING,Bm.KEY],P5r=[Eh.VAR_BINARY,Eh.GEOMETRIES,Eh.PARTS,Eh.RINGS,Eh.TRIANGLES,Eh.SYMBOL,Eh.DICTIONARY];(function(e){e[e.FLAT=0]="FLAT",e[e.CONST=1]="CONST",e[e.SEQUENCE=2]="SEQUENCE",e[e.DICTIONARY=3]="DICTIONARY",e[e.FSST_DICTIONARY=4]="FSST_DICTIONARY"})(Wf||(Wf={}));D1=class{constructor(e,t){this.values=e,this._size=t}get(e){let t=Math.floor(e/8),r=e%8;return(this.values[t]>>r&1)==1}set(e,t){let r=Math.floor(e/8),i=e%8;this.values[r]=this.values[r]|+!!t<>r&1}size(){return this._size}getBuffer(){return this.values}};V5r=new TextDecoder;fot=class extends Gq{getValueFromBuffer(e){return this.dataBuffer[e]}},cot=class extends Yat{constructor(e,t,r,i,n){super(e,n?BigInt64Array.of(t):BigUint64Array.of(t),r,i)}getValueFromBuffer(e){return this.dataBuffer[0]+BigInt(e)*this.delta}};(function(e){e[e.POINT=0]="POINT",e[e.LINESTRING=1]="LINESTRING",e[e.POLYGON=2]="POLYGON",e[e.MULTIPOINT=3]="MULTIPOINT",e[e.MULTILINESTRING=4]="MULTILINESTRING",e[e.MULTIPOLYGON=5]="MULTIPOLYGON"})(u0||(u0={}));(function(e){e[e.POINT=0]="POINT",e[e.LINESTRING=1]="LINESTRING",e[e.POLYGON=2]="POLYGON"})(rrt||(rrt={}));(function(e){e[e.MORTON=0]="MORTON",e[e.VEC_2=1]="VEC_2",e[e.VEC_3=2]="VEC_3"})(vx||(vx={}));hot=class{constructor(e,t,r,i,n){this._vertexBufferType=e,this._topologyVector=t,this._vertexOffsets=r,this._vertexBuffer=i,this._mortonSettings=n}get vertexBufferType(){return this._vertexBufferType}get topologyVector(){return this._topologyVector}get vertexOffsets(){return this._vertexOffsets}get vertexBuffer(){return this._vertexBuffer}getSimpleEncodedVertex(e){let t=this.vertexOffsets?this.vertexOffsets[e]*2:e*2;return[this.vertexBuffer[t],this.vertexBuffer[t+1]]}getVertex(e){if(this.vertexOffsets&&this.mortonSettings){let r=this.vertexOffsets[e],i=this.vertexBuffer[r],n=Nae(i,this.mortonSettings.numBits,this.mortonSettings.coordinateShift);return[n.x,n.y]}let t=this.vertexOffsets?this.vertexOffsets[e]*2:e*2;return[this.vertexBuffer[t],this.vertexBuffer[t+1]]}getGeometries(){return Q5r(this)}get mortonSettings(){return this._mortonSettings}};dot=class extends hot{constructor(e,t,r,i,n,a,o){super(r,i,n,a,o),this._numGeometries=e,this._geometryType=t}geometryType(e){return this._geometryType}get numGeometries(){return this._numGeometries}containsPolygonGeometry(){return this._geometryType===u0.POLYGON||this._geometryType===u0.MULTIPOLYGON}containsSingleGeometryType(){return!0}};vot=class extends hot{constructor(e,t,r,i,n,a){super(e,r,i,n,a),this._geometryTypes=t}geometryType(e){return this._geometryTypes[e]}get numGeometries(){return this._geometryTypes.length}containsPolygonGeometry(){for(let e=0;e$l(Gs({},r),{[i.name]:new WTr(i)}),{})}},YTr=class{constructor(e,t){this.tileID=e,this.x=e.canonical.x,this.y=e.canonical.y,this.z=e.canonical.z,this.grid=new wie(Aa,16,0),this.grid3D=new wie(Aa,16,0),this.featureIndexArray=new knt,this.promoteId=t}insert(e,t,r,i,n,a){let o=this.featureIndexArray.length;this.featureIndexArray.emplaceBack(r,i,n);let s=a?this.grid3D:this.grid;for(let l of t){let u=[1/0,1/0,-1/0,-1/0];for(let f of l)u[0]=Math.min(u[0],f.x),u[1]=Math.min(u[1],f.y),u[2]=Math.max(u[2],f.x),u[3]=Math.max(u[3],f.y);u[0]<8192&&u[1]<8192&&u[2]>=0&&u[3]>=0&&s.insert(o,u[0],u[1],u[2],u[3])}}loadVTLayers(){return this.vtLayers||(this.encoding==="mlt"?this.vtLayers=new $Tr(this.rawTileData).layers:this.vtLayers=new U3r(new Sat(this.rawTileData)).layers,this.sourceLayerCoder=new d4r(this.vtLayers?Object.keys(this.vtLayers).sort():[BC])),this.vtLayers}query(e,t,r,i){this.loadVTLayers();let n=e.params,a=Aa/e.tileSize/e.scale,o=G5(n.filter,"queryRenderedFeatures filter",n.globalState),s=e.queryGeometry,l=e.queryPadding*a,u=Ev.fromPoints(s),f=this.grid.query(u.minX-l,u.minY-l,u.maxX+l,u.maxY+l),c=Ev.fromPoints(e.cameraQueryGeometry).expandBy(l),h=this.grid3D.query(c.minX,c.minY,c.maxX,c.maxY,(v,y,m,w)=>B_r(e.cameraQueryGeometry,v-l,y-l,m+l,w+l));for(let v of h)f.push(v);f.sort(ZTr);let d={},p;for(let v of f){if(v===p)continue;p=v;let y=this.featureIndexArray.get(v),m=null;this.loadMatchingFeature(d,y.bucketIndex,y.sourceLayerIndex,y.featureIndex,o,n.layers,n.availableImages,t,r,i,(w,_,b)=>(m||(m=m3(w)),_.queryIntersectsFeature({queryGeometry:s,feature:w,featureState:b,geometry:m,zoom:this.z,transform:e.transform,pixelsToTileUnits:a,pixelPosMatrix:e.pixelPosMatrix,unwrappedTileID:this.tileID.toUnwrapped(),getElevation:e.getElevation})))}return d}loadMatchingFeature(e,t,r,i,n,a,o,s,l,u,f){let c=this.bucketLayerIDs[t];if(a&&!c.some(v=>a.has(v)))return;let h=this.sourceLayerCoder.decode(r),d=this.vtLayers[h].feature(i);if(n.needGeometry){let v=xx(d,!0);if(!n.filter(new Xu(this.tileID.overscaledZ),v,this.tileID.canonical))return}else if(!n.filter(new Xu(this.tileID.overscaledZ),d))return;let p=this.getId(d,h);for(let v of c){if(a&&!a.has(v))continue;let y=s[v];if(!y)continue;let m={};p&&u&&(m=u.getState(y.sourceLayer||"_geojsonTileLayer",p));let w=js({},l[v]);w.paint=frt(w.paint,y.paint,d,m,o),w.layout=frt(w.layout,y.layout,d,m,o);let _=!f||f(d,y,m);if(!_)continue;let b=new Eae(d,this.z,this.x,this.y,p);b.layer=w;let M=e[v];M===void 0&&(M=e[v]=[]),M.push({featureIndex:i,feature:b,intersectionZ:_})}}lookupSymbolFeatures(e,t,r,i,n,a,o,s){let l={};this.loadVTLayers();let u=G5(n.filterSpec,"queryRenderedFeatures symbol filter",n.globalState);for(let f of e)this.loadMatchingFeature(l,r,i,f,u,a,o,s,t);return l}hasLayer(e){for(let t of this.bucketLayerIDs)for(let r of t)if(e===r)return!0;return!1}getId(e,t){var i;let r=e.id;if(this.promoteId){let n=typeof this.promoteId=="string"?this.promoteId:this.promoteId[t];r=e.properties[n],typeof r=="boolean"&&(r=Number(r)),r===void 0&&((i=e.properties)!=null&&i.cluster)&&this.promoteId&&(r=Number(e.properties.cluster_id))}return r}};As("FeatureIndex",YTr,{omit:["rawTileData","sourceLayerCoder"]});Mot=class{constructor(e,t){this.max=e,this.onRemove=t,this.reset()}reset(){for(let e in this.data)for(let t of this.data[e])t.timeout&&clearTimeout(t.timeout),this.onRemove(t.value);return this.data={},this.order=[],this}add(e,t,r){let i=e.wrapped().key;this.data[i]===void 0&&(this.data[i]=[]);let n={value:t,timeout:void 0};if(r!==void 0&&(n.timeout=setTimeout(()=>{this.remove(e,n)},r)),this.data[i].push(n),this.order.push(i),this.order.length>this.max){let a=this._getAndRemoveByKey(this.order[0]);a&&this.onRemove(a)}return this}has(e){return e.wrapped().key in this.data}getAndRemove(e){return this.has(e)?this._getAndRemoveByKey(e.wrapped().key):null}_getAndRemoveByKey(e){let t=this.data[e].shift();return t.timeout&&clearTimeout(t.timeout),this.data[e].length===0&&delete this.data[e],this.order.splice(this.order.indexOf(e),1),t.value}getByKey(e){let t=this.data[e];return t?t[0].value:null}get(e){return this.has(e)?this.data[e.wrapped().key][0].value:null}remove(e,t){if(!this.has(e))return this;let r=e.wrapped().key,i=t===void 0?0:this.data[r].indexOf(t),n=this.data[r][i];return this.data[r].splice(i,1),n.timeout&&clearTimeout(n.timeout),this.data[r].length===0&&delete this.data[r],this.onRemove(n.value),this.order.splice(this.order.indexOf(r),1),this}setMaxSize(e){for(this.max=e;this.order.length>this.max;){let t=this._getAndRemoveByKey(this.order[0]);t&&this.onRemove(t)}return this}filter(e){let t=[];for(let r in this.data)for(let i of this.data[r])e(i.value)||t.push(i);for(let r of t)this.remove(r.value.tileID,r)}}});var Tut={};Fl(Tut,{AJAXError:()=>B5,AttributionControl:()=>mut,BoxZoomHandler:()=>nut,CanvasSource:()=>alt,CooperativeGesturesHandler:()=>put,DoubleClickZoomHandler:()=>fut,DragPanHandler:()=>cut,DragRotateHandler:()=>hut,EXTENT:()=>Aa,EdgeInsets:()=>woe,ErrorEvent:()=>tl,Event:()=>Wd,Evented:()=>ah,FullscreenControl:()=>mDr,FullscreenEvent:()=>Coe,GPUInitializationError:()=>rut,GeoJSONSource:()=>elt,GeolocateControl:()=>cDr,GeolocateErrorEvent:()=>wut,GeolocateEvent:()=>A3,GeolocatePositionEvent:()=>koe,GlobeControl:()=>gDr,Hash:()=>iut,ImageSource:()=>uT,KeyboardHandler:()=>lut,LngLat:()=>Js,LngLatBounds:()=>B1,LogoControl:()=>yut,Map:()=>iDr,MapBoxZoomEvent:()=>hoe,MapContextEvent:()=>oO,MapLibreEvent:()=>Gh,MapLibreMap:()=>iDr,MapMouseEvent:()=>$d,MapMovementEvent:()=>ol,MapProjectionEvent:()=>Vst,MapSourceDataEvent:()=>Xf,MapStyleDataEvent:()=>Lv,MapStyleImageMissingEvent:()=>Ust,MapStyleLoadEvent:()=>coe,MapTerrainEvent:()=>Nst,MapTouchEvent:()=>ZC,MapWheelEvent:()=>Ost,Marker:()=>Eoe,MarkerClickEvent:()=>_ut,MarkerDragEvent:()=>w3,MercatorCoordinate:()=>Uu,NavigationControl:()=>aDr,Point:()=>Jr,Popup:()=>_Dr,PopupEvent:()=>Doe,RasterDEMTileSource:()=>Jst,RasterTileSource:()=>Ioe,ScaleControl:()=>dDr,ScrollZoomHandler:()=>uut,Style:()=>Toe,TerrainControl:()=>yDr,TwoFingersTouchPitchHandler:()=>sut,TwoFingersTouchRotateHandler:()=>out,TwoFingersTouchZoomHandler:()=>aut,TwoFingersTouchZoomRotateHandler:()=>dut,VectorTileSource:()=>Kst,VideoSource:()=>nlt,addProtocol:()=>jrt,addSourceType:()=>dMr,clearPrewarmedResources:()=>N6r,config:()=>jd,createTileMesh:()=>rlt,getGlobalDispatcher:()=>zoe,getMaxParallelImageRequests:()=>CDr,getRTLTextPluginStatus:()=>MDr,getVersion:()=>SDr,getWorkerCount:()=>EDr,getWorkerUrl:()=>FDr,importScriptInWorkers:()=>PDr,isTimeFrozen:()=>r6r,now:()=>Ku,prewarm:()=>O6r,removeProtocol:()=>Wrt,restoreNow:()=>t6r,setMaxParallelImageRequests:()=>DDr,setNow:()=>e6r,setRTLTextPlugin:()=>TDr,setWorkerCount:()=>kDr,setWorkerUrl:()=>LDr});function qst(){var e=new Ch(4);return Ch!=Float32Array&&(e[1]=0,e[2]=0),e[0]=1,e[3]=1,e}function KTr(e,t){var r=t[0],i=t[1],n=t[2],a=t[3],o=r*a-n*i;return o?(o=1/o,e[0]=a*o,e[1]=-i*o,e[2]=-n*o,e[3]=r*o,e):null}function JTr(e){return e[0]*e[3]-e[2]*e[1]}function QTr(e,t,r){var i=t[0],n=t[1],a=t[2],o=t[3],s=Math.sin(r),l=Math.cos(r);return e[0]=i*l+a*s,e[1]=n*l+o*s,e[2]=i*-s+a*l,e[3]=n*-s+o*l,e}function Ku(){return xO.getCurrentTime()}function e6r(e){xO.setNow(e)}function t6r(){xO.restoreNow()}function r6r(){return xO.isFrozen()}function jae(){return VC!=null||(VC={getAttribute:Element.prototype.getAttribute,getAttributeNames:Element.prototype.getAttributeNames,querySelectorAll:Element.prototype.querySelectorAll,remove:Element.prototype.remove,removeAttribute:Element.prototype.removeAttribute,localName:Object.getOwnPropertyDescriptor(Element.prototype,"localName").get,namespaceURI:Object.getOwnPropertyDescriptor(Element.prototype,"namespaceURI").get}),VC}function l6r(e,t){let r={};for(let i in e)i!=="ref"&&(r[i]=e[i]);return Xrt.forEach(i=>{i in t&&(r[i]=t[i])}),r}function Eot(e){e=e.slice();let t=Object.create(null);for(let r=0;r{"source"in s&&n[s.source]?r.push({command:"removeLayer",args:[s.id]}):o.push(s)}),r=r.concat(a),h6r(o,t.layers,r),i&&t.terrain&&r.push({command:"setTerrain",args:[t.terrain]})}catch(i){console.warn("Unable to compute style diff:",i),r=[{command:"setStyle",args:[t]}]}return r}function p6r(){let e={},t=hn.$version;for(let r in hn.$root){let i=hn.$root[r];if(i.required){let n=null;n=r==="version"?t:i.type==="array"?[]:{},n!=null&&(e[r]=n)}}return e}function sO(e){let t=[];if(typeof e=="string")t.push({id:"default",url:e});else if(e&&e.length>0){let r=[];for(let{id:i,url:n}of e){let a=`${i}${n}`;r.includes(a)||(r.push(a),t.push({id:i,url:n}))}}return t}function Fot(e,t,r){try{let i=new URL(e);return i.pathname+=`${t}${r}`,i.toString()}catch(i){throw Error(`Invalid sprite URL "${e}", must be absolute. Modify style specification directly or use TransformStyleFunction to correct the issue dynamically`)}}function v6r(e,t,r,i){return Ls(this,null,function*(){let n=sO(e),a=r>1?"@2x":"",o={},s={};for(let{id:l,url:u}of n){let f=yield t.transformRequest(Fot(u,a,".json"),"SpriteJSON");o[l]=gC(f,i);let c=yield t.transformRequest(Fot(u,a,".png"),"SpriteImage");s[l]=R1.getImage(c,i)}return yield Promise.all([...Object.values(o),...Object.values(s)]),m6r(o,s)})}function m6r(e,t){return Ls(this,null,function*(){let r={};for(let i in e){r[i]={};let n=(yield t[i]).data;if(!n)throw Error(`Could not load sprite image for ${i}: the response is empty`);let a=Yd.getImageCanvasContext(n),o=(yield e[i]).data;for(let s in o){let{width:l,height:u,x:f,y:c,sdf:h,pixelRatio:d,stretchX:p,stretchY:v,content:y,textFitWidth:m,textFitHeight:w}=o[s],_={width:l,height:u,x:f,y:c,context:a};r[i][s]={data:null,pixelRatio:d,sdf:h,stretchX:p,stretchY:v,content:y,textFitWidth:m,textFitHeight:w,spriteData:_}}}return r})}function _6r(e){let t=/^u\+([0-9a-f]*)(\?+)$/i.exec(e);if(t){let[,n,a]=t;return n.length+a.length>6?null:Lot(parseInt(`${n}${"0".repeat(a.length)}`,16),parseInt(`${n}${"f".repeat(a.length)}`,16))}let r=/^u\+([0-9a-f]{1,6})(?:-([0-9a-f]{1,6}))?$/i.exec(e);if(!r)return null;let i=parseInt(r[1],16);return Lot(i,r[2]===void 0?i:parseInt(r[2],16))}function Lot(e,t){return e>t||e>doe?null:{start:e,end:Math.min(t,doe)}}function w6r(e,t){return e.ranges.some(({start:r,end:i})=>t>=r&&t<=i)}function Pot(e,t,r,i,n,a,o,s,l){for(let u=t;u-1);l++,a[l]=s,o[l]=u,o[l+1]=poe}for(let s=0,l=0;syC(t,r))),$q}function V6r(e,t){let r=tg();return ih(r,r,[1,1,0]),c0(r,r,[e.width*.5,e.height*.5,1]),e.calculatePosMatrix?c3(r,r,e.calculatePosMatrix(t.toUnwrapped())):r}function U6r(e,t,r){if(e)for(let i of e){let n=t[i];if((n==null?void 0:n.source)===r&&n.type==="fill-extrusion")return!0}else for(let i in t){let n=t[i];if(n.source===r&&n.type==="fill-extrusion")return!0}return!1}function G6r(e,t,r,i,n,a,o){var c;let s=U6r((c=n==null?void 0:n.layers)!=null?c:null,t,e.id),l=a.maxPitchScaleFactor(),u=e.tilesIn(i,l,s);u.sort($st);let f=[];for(let h of u)f.push({wrappedTileID:h.tileID.wrapped().key,queryResults:h.tile.queryRenderedFeatures(t,r,e.getState(),h.queryGeometry,h.cameraQueryGeometry,h.scale,n,a,l,V6r(a,h.tileID),o?(d,p)=>o(h.tileID,d,p):void 0)});return $6r(W6r(f),e)}function H6r(e,t,r,i,n,a,o){let s={},l=a.queryRenderedSymbols(i),u=[];for(let f of Object.keys(l).map(Number))u.push(o[f]);u.sort($st);for(let f of u){let c=f.featureIndex.lookupSymbolFeatures(l[f.bucketInstanceId],t,f.bucketIndex,f.sourceLayerIndex,{filterSpec:n.filter,globalState:n.globalState},n.layers,n.availableImages,e);for(let h in c){s[h]||(s[h]=[]);let d=c[h];d.sort((p,v)=>{let y=f.featureSortOrder;if(y){let m=y.indexOf(p.featureIndex);return y.indexOf(v.featureIndex)-m}return v.featureIndex-p.featureIndex});for(let p of d)s[h].push(p)}}return Y6r(s,e,r)}function j6r(e,t){let r=e.getRenderableIds().map(a=>e.getTileByID(a)),i=[],n={};for(let a of r){let o=a.tileID.canonical.key;n[o]||(n[o]=!0,a.querySourceFeatures(i,t))}return i}function $st(e,t){let r=e.tileID,i=t.tileID;return r.overscaledZ-i.overscaledZ||r.canonical.y-i.canonical.y||r.wrap-i.wrap||r.canonical.x-i.canonical.x}function W6r(e){let t={},r={};for(let{queryResults:i,wrappedTileID:n}of e){r[n]||(r[n]={});let a=r[n];for(let o in i){let s=i[o];a[o]||(a[o]={});let l=a[o];t[o]||(t[o]=[]);for(let u of s)l[u.featureIndex]||(l[u.featureIndex]=!0,t[o].push(u))}}return t}function $6r(e,t){for(let r in e)for(let i of e[r])Yst(i,t);return e}function Y6r(e,t,r){for(let i in e)for(let n of e[i]){let a=r[t[i].source];Yst(n,a)}return e}function Yst(e,t){let r=e.feature,i=t.getFeatureState(r.layer["source-layer"],r.id);r.source=r.layer.source,r.layer["source-layer"]&&(r.sourceLayer=r.layer["source-layer"]),r.state=i}function Xst(e,t,r,i){return Ls(this,null,function*(){let n=e;if(e.url?n=(yield gC(yield t.transformRequest(e.url,"Source"),r)).data:yield Yd.frameAsync(r,i),!n)return null;let a=Y5(js(n,e),["tiles","minzoom","maxzoom","attribution","bounds","scheme","tileSize","encoding"]);return"vector_layers"in n&&n.vector_layers&&(a.vectorLayerIds=n.vector_layers.map(o=>o.id)),a})}function hO(e,t){return t?e.properties[t]:e.id}function X6r(e,t){let r=new Map;if(e==null||e.type==null)return r;if(e.type==="Feature"){let i=hO(e,t);return i==null?void 0:(r.set(i,e),r)}if(e.type==="FeatureCollection"){let i=new Set;for(let n of e.features){let a=hO(n,t);if(a==null||i.has(a))return;i.add(a),r.set(a,n)}return r}}function Z6r(e,t,r){var n,a;let i=[];if(t.removeAll)e.clear();else if(t.remove)for(let o of t.remove){let s=e.get(o);s&&(i.push(s.geometry),e.delete(o))}if(t.add)for(let o of t.add){let s=hO(o,r);if(s==null)continue;let l=e.get(s);l&&i.push(l.geometry),i.push(o.geometry),e.set(s,o)}if(t.update)for(let o of t.update){let s=e.get(o.id);if(!s)continue;let l=!!o.newGeometry,u=o.removeAllProperties||((n=o.removeProperties)==null?void 0:n.length)>0||((a=o.addOrUpdateProperties)==null?void 0:a.length)>0;if(!l&&!u)continue;i.push(s.geometry);let f=Gs({},s);if(e.set(o.id,f),l&&(i.push(o.newGeometry),f.geometry=o.newGeometry),u){if(f.properties=o.removeAllProperties?{}:Gs({},f.properties||{}),o.removeProperties)for(let c of o.removeProperties)delete f.properties[c];if(o.addOrUpdateProperties)for(let{key:c,value:h}of o.addOrUpdateProperties)f.properties[c]=h}}return i}function K6r(e,t,r){if(!e)return t||{};if(!t)return e||{};let i=Bot(e,r),n=Bot(t,r);J6r(i,n);let a={};if((i.removeAll||n.removeAll)&&(a.removeAll=!0),a.remove=new Set([...i.remove,...n.remove]),a.add=new Map([...i.add,...n.add]),a.update=new Map([...i.update,...n.update]),a.remove.size&&a.add.size)for(let o of a.add.keys())a.remove.delete(o);return eMr(a)}function J6r(e,t){t.removeAll&&(e.add.clear(),e.update.clear(),e.remove.clear(),t.remove.clear());for(let r of t.remove)e.add.delete(r),e.update.delete(r);for(let[r,i]of t.update){let n=e.update.get(r);n&&(t.update.set(r,Q6r(n,i)),e.update.delete(r))}}function Q6r(e,t){let r={id:e.id};if(t.removeAllProperties&&(delete e.removeProperties,delete e.addOrUpdateProperties,delete t.removeProperties),t.removeProperties&&e.addOrUpdateProperties){let i=new Set(t.removeProperties);e.addOrUpdateProperties=e.addOrUpdateProperties.filter(n=>!i.has(n.key))}return(e.removeAllProperties||t.removeAllProperties)&&(r.removeAllProperties=!0),(e.removeProperties||t.removeProperties)&&(r.removeProperties=[...e.removeProperties||[],...t.removeProperties||[]]),(e.addOrUpdateProperties||t.addOrUpdateProperties)&&(r.addOrUpdateProperties=[...e.addOrUpdateProperties||[],...t.addOrUpdateProperties||[]]),(e.newGeometry||t.newGeometry)&&(r.newGeometry=t.newGeometry||e.newGeometry),r}function Bot(e,t){var i,n;if(!e)return{};let r={};return r.removeAll=e.removeAll,r.remove=new Set(e.remove||[]),r.add=new Map((i=e.add)==null?void 0:i.map(a=>[hO(a,t),a])),r.update=new Map((n=e.update)==null?void 0:n.map(a=>[a.id,a])),r}function eMr(e){let t={};return e.removeAll&&(t.removeAll=e.removeAll),e.remove&&(t.remove=Array.from(e.remove)),e.add&&(t.add=Array.from(e.add.values())),e.update&&(t.update=Array.from(e.update.values())),t}function Qst(e){return!e||e.length===0?[]:typeof e[0]=="number"?[e]:e.flatMap(t=>Qst(t))}function lO(e){return e.type==="GeometryCollection"?e.geometries.flatMap(t=>lO(t)):Qst(e.coordinates)}function qot(e){let t=new B1,r;switch(e.type){case"FeatureCollection":r=e.features.flatMap(i=>lO(i.geometry));break;case"Feature":r=lO(e.geometry);break;default:r=lO(e)}if(r.length===0)return t;for(let i of r){let[n,a]=i;t.extend([n,a])}return t}function tMr({x:e,y:t,z:r},i=0){let n=Iq((e-i)/2**r),a=W5((t+1+i)/2**r),o=Iq((e+1+i)/2**r),s=W5((t-i)/2**r);return new B1([n,a],[o,s])}function nMr(e){e*=Math.PI/180;let t=Math.sin(e),r=Math.cos(e);return[(2*r+1)/3,(-Math.sqrt(3)*t-r+1)/3,(Math.sqrt(3)*t-r+1)/3]}function aMr(e){return e>0?1/(1-e):1+e}function oMr(e){return e>0?1-1/(1.001-e):-e}function tlt(e,t){let r=rlt(t,"16bit"),i=og.deserialize({arrayBuffer:r.vertices,length:r.vertices.byteLength/2/2}),n=z1.deserialize({arrayBuffer:r.indices,length:r.indices.byteLength/2/3});return new eD(e.createVertexBuffer(i,T3.members),e.createIndexBuffer(n),nc.simpleSegment(0,0,i.length,n.length))}function rlt(e,t){let r=e.granularity===void 0?1:Math.max(e.granularity,1),i=r+(e.generateBorders?2:0),n=r+(e.extendToNorthPole||e.generateBorders?1:0)+(e.extendToSouthPole||e.generateBorders?1:0),a=i+1,o=n+1,s=e.generateBorders?-1:0,l=e.generateBorders||e.extendToNorthPole?-1:0,u=r+ +!!e.generateBorders,f=r+(e.generateBorders||e.extendToSouthPole?1:0),c=a*o,h=i*n*6,d=a*o>65536;if(d&&t==="16bit")throw Error("Granularity is too large and meshes would not fit inside 16 bit vertex indices.");let p=d||t==="32bit",v=new Int16Array(c*2),y=0;for(let _=l;_<=f;_++)for(let b=s;b<=u;b++){let M=b/r*Aa;b===-1&&(M=-Yq),b===r+1&&(M=Aa+Yq);let x=_/r*Aa;_===-1&&(x=e.extendToNorthPole?P5:-Yq),_===r+1&&(x=e.extendToSouthPole?z5:Aa+Yq),v[y++]=M,v[y++]=x}let m=p?new Uint32Array(h):new Uint16Array(h),w=0;for(let _=0;_=1&&m<=512)||w>=1?oT:[p,v,w]}function fMr(e){let t=(1-4/e)/.9921875;return Math.max(0,t)}function ilt(e){let[t,r,i,n]=e;return t.x+i.x===r.x+n.x&&t.y+i.y===r.y+n.y}function pMr(e,t){let r={};if(!t)return r;for(let i of e){let n=i.layerIds.map(a=>t.getLayer(a)).filter(Boolean);if(n.length!==0){i.layers=n,i.stateDependentLayerIds&&(i.stateDependentLayers=i.stateDependentLayerIds.map(a=>n.filter(o=>o.id===a)[0]));for(let a of n)r[a.id]=i}}return r}function QC(){return $ae||($ae=new vMr),$ae}function Oot(e){let t=[];for(let r in e)t.push({id:r,state:e[r]});return t}function yMr(e,t,r,i){let n=h0([],e,t),a=1/n[3]/r*i;return Mrt(n,n,[a,a,1/n[3],a])}function gMr(e,t,r,i){let n=i?4:0,a=i?0:4,o=0,s=[],l=[];for(let c=0;c<4;c++){let h=Um([],e[c+a],e[c+n]),d=Cv(h);$f(h,h,1/d),s.push(d),l.push(h)}for(let c=0;c<4;c++){let h=krt(e[c+n],l[c],r);o=h!==null&&h>=0?Math.max(o,h):Math.max(o,s[c])}let u=xMr(e,t),f=bMr(r,u);if(f!==null){let c=f/nh(l[0],u);o=Math.min(o,c)}for(let c=0;c<4;c++){let h=Math.min(o,s[c]);e[c+a]=[e[c+n][0]+l[c][0]*h,e[c+n][1]+l[c][1]*h,e[c+n][2]+l[c][2]*h,1]}}function xMr(e,t){let r=Um([],e[t[0]],e[t[1]]),i=Um([],e[t[2]],e[t[1]]),n=[0,0,0,0];return rd(n,bd([],r,i)),n[3]=-nh(n,e[t[0]]),n}function bMr(e,t){let r=hC(e),i=Trt([],e,1/r),n=Um([],t,$f([],i,nh(t,i))),a=hC(n);if(a>0){let o=Math.sqrt(1-i[3]*i[3]),s=$f([],i,-i[3]),l=wp([],s,$f([],n,o/a));return oq(t,l)}return null}function _Mr(e,t,r){let i=t.intersectsFrustum(e);if(!r||i===0)return i;let n=t.intersectsPlane(r);return n===0?0:i===2&&n===2?2:1}function Not(e,t,r){let i=0,n=(r-t)/10;for(let a=0;a<10;a++){let o=t+(a+.5)/10*(r-t);i+=n*Math.cos(o)**+e}return i}function moe(e,t){return function(r,i,n,a,o){let s=2*((e-1)/d0(Math.cos(Yf(_x-o))/Math.cos(Yf(_x)))-1),l=Math.acos(n/a),u=2*Not(s-1,0,Yf(o/2)),f=Math.min(Yf(_x),l+Yf(o/2)),c=Math.min(f,l-Yf(o/2)),h=Not(s-1,c,f),d=Math.atan(i/n),p=Math.hypot(i,n),v=r;return v+=d0(a/p/Math.max(.5,Math.cos(Yf(o/2)))),v+=s*d0(Math.cos(d))/2,v-=d0(Math.max(1,h/u/t))/2,v}}function qoe(e,t){let r=(t.roundZoom?Math.round:Math.floor)(e.zoom+d0(e.tileSize/t.tileSize));return Math.max(0,r)}function AMr(e,t){let r=_x-e.pitch-e.fov/2,i=Pl((15-r)/15,0,1),n=Math.max(500,t!=null?t:0);return e.elevation+i*n}function TMr(e,t,r){let i=e.planes[1],n=e.points.map(l=>{let u=i[0]*l[0]+i[1]*l[1]+i[2]*l[2]+i[3];if(Math.abs(u)>1e-6)return l;let f=[l[0]-r[0],l[1]-r[1],l[2]-r[2]],c=i[0]*f[0]+i[1]*f[1]+i[2]*f[2];if(c>=-1e-9)return l;let h=t/-c;return[l[0]+f[0]*h,l[1]+f[1]*h,l[2]+f[2]*h,l[3]]}),a=e.planes.map((l,u)=>u===1?[l[0],l[1],l[2],l[3]+t]:l),o=[1/0,1/0,1/0],s=[-1/0,-1/0,-1/0];for(let l of n)for(let u=0;u<3;u++)o[u]=Math.min(o[u],l[u]),s[u]=Math.max(s[u],l[u]);return new Boe(n,a,new Roe(o,s))}function MMr(e,t,r,i){let n=Math.hypot(t[0],t[1],t[2]);if(n===0)return{frustum:e,plane:t};let a=1+i/ad,o=Pl(-t[3]/n,-1,1),s=Math.cos(Math.acos(o)+Math.acos(1/a));return{frustum:TMr(e,Math.sqrt(a*a-1),r),plane:[t[0],t[1],t[2],-s*n]}}function fT(e,t){let r=e.getCameraFrustum(),i=e.getClippingPlane();i&&t.maxContentElevation>0&&({frustum:r,plane:i}=MMr(r,i,e.cameraPosition,t.maxContentElevation));let n=cat(e),a=Uu.fromLngLat(e.center,e.elevation),o=AMr(e,t.maxContentElevation),s=e.getCoveringTilesDetailsProvider(),l=s.allowVariableZoom(e,t),u=qoe(e,t),f=t.minzoom||0,c=t.maxzoom===void 0?e.maxZoom:t.maxzoom,h=Math.min(Math.max(0,u),c),d=2**h,p=[d*n.x,d*n.y,0],v=[d*a.x,d*a.y,0],y=Math.hypot(a.x-n.x,a.y-n.y),m=Math.abs(a.z-n.z),w=Math.hypot(y,m),_=x=>({zoom:0,x:0,y:0,wrap:x,fullyVisible:!1}),b=[],M=[];if(e.renderWorldCopies&&s.allowWorldCopies())for(let x=1;x<=3;x++)b.push(_(-x)),b.push(_(x));for(b.push(_(0));b.length>0;){let x=b.pop(),T=x.x,A=x.y,g=x.fullyVisible,E={x:T,y:A,z:x.zoom},S=s.getTileBoundingVolume(E,x.wrap,o,t);if(!g){let F=_Mr(r,S,i);if(F===0)continue;g=F===2}let C=s.distanceToTile2d(n.x,n.y,E,S),k=u;l&&(k=(t.calculateTileZoom||wMr)(e.zoom+d0(e.tileSize/t.tileSize),C,m,w,e.fov)),k=(t.roundZoom?Math.round:Math.floor)(k),k=Math.max(0,k);let D=Math.min(k,c);if(x.wrap=s.getWrap(a,E,x.wrap),x.zoom>=D){if(x.zoom>1),L=x.zoom+1;b.push({zoom:L,x:P,y:I,wrap:x.wrap,fullyVisible:g})}}return M.sort((x,T)=>x.distanceSq-T.distanceSq).map(x=>x.tileID)}function Vot(e){return e==="raster"||e==="image"||e==="video"}function SMr(e,t,r,i,n,a,o){let s=Ku(),l=Drt(t);for(let u of t){let f=e.getTileById(u.key);(f.fadingDirection===0||f.fadeOpacity===0)&&f.resetFadeLogic(),!EMr(e,f,r,s,i,n,o)&&(kMr(e,f,r,s,a,o)||CMr(f,l,s,o)||f.resetFadeLogic())}}function EMr(e,t,r,i,n,a,o){if(!t.hasData())return!1;let{tileID:s,fadingRole:l,fadingDirection:u,fadingParentID:f}=t;if(l===0&&u===1&&f)return r[f.key]=f,!0;let c=Math.max(s.overscaledZ-n,a);for(let h=s.overscaledZ-1;h>=c;h--){let d=s.scaledTo(h),p=e.getLoadedTile(d);if(p)return t.setCrossFadeLogic({fadingRole:0,fadingDirection:1,fadingParentID:p.tileID,fadeEndTime:i+o}),p.setCrossFadeLogic({fadingRole:1,fadingDirection:0,fadeEndTime:i+o}),r[d.key]=d,!0}return!1}function kMr(e,t,r,i,n,a){if(!t.hasData())return!1;let o=t.tileID.children(n),s=Uot(e,t,o,r,i,n,a);if(s)return!0;for(let l of o)Uot(e,t,l.children(n),r,i,n,a)&&(s=!0);return s}function Uot(e,t,r,i,n,a,o){if(r[0].overscaledZ>=a)return!1;let s=!1;for(let l of r){let u=e.getLoadedTile(l);if(!u)continue;let{fadingRole:f,fadingDirection:c,fadingParentID:h}=u;(f!==0||c!==0||!h)&&(u.setCrossFadeLogic({fadingRole:0,fadingDirection:0,fadingParentID:t.tileID,fadeEndTime:n+o}),t.setCrossFadeLogic({fadingRole:1,fadingDirection:1,fadeEndTime:n+o})),i[l.key]=l,s=!0}return s}function CMr(e,t,r,i){let n=e.tileID;if(e.selfFading)return!0;if(e.hasData())return!1;if(t.has(n)){let a=r+i;return e.setSelfFadeLogic(a),!0}return!1}function DMr(e,t){if(t<=0)return!1;let r=Ku();for(let i of e.getAllTiles())if(i.fadeEndTime>=r)return!0;return!1}function FMr(e,t){var i,n,a;let r=t.getRenderableIds();for(let o of r){if(!((i=e.neighboringTiles)!=null&&i[o]))continue;let s=t.getTileById(o);e.neighboringTiles[o].backfilled||Got(e,s),!((a=(n=s.neighboringTiles)==null?void 0:n[e.tileID.key])!=null&&a.backfilled)&&Got(s,e)}}function Got(e,t){var o;e.needsHillshadePrepare=!0,e.needsTerrainPrepare=!0,e.needsColorReliefPrepare=!0;let r=t.tileID.canonical.x-e.tileID.canonical.x,i=t.tileID.canonical.y-e.tileID.canonical.y,n=2**e.tileID.canonical.z,a=t.tileID.key;(r!==0||i!==0)&&(Math.abs(i)>1||(Math.abs(r)>1&&(Math.abs(r+n)===1?r+=n:Math.abs(r-n)===1&&(r-=n)),t.dem&&e.dem&&(e.dem.backfillBorder(t.dem,r,i),(o=e.neighboringTiles)!=null&&o[a]&&(e.neighboringTiles[a].backfilled=!0))))}function uO(e,t,r,i,n){return n?e?e(t,r)+i:i===0?void 0:i:i}function Xq(e,t){let r=!0;return e==="always"||(e==="never"||t==="never")&&(r=!1),r}function PMr(e,t){let r=1/(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]),i=1/(t[8]*t[8]+t[9]*t[9]+t[10]*t[10]),n=t[0]*r,a=t[4]*r,o=t[8]*i,s=t[1]*r,l=t[5]*r,u=t[9]*i,f=t[2]*r,c=t[6]*r,h=t[10]*i;e[0]=n,e[1]=a,e[2]=o,e[4]=s,e[5]=l,e[6]=u,e[8]=f,e[9]=c,e[10]=h;let d=t[12],p=t[13],v=t[14];return e[12]=-n*d-s*p-f*v,e[13]=-a*d-l*p-c*v,e[14]=-o*d-u*p-h*v,e[3]=0,e[7]=0,e[11]=0,e[15]=1,e}function zMr(e,t){return e[0]=1/t[0],e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1/t[5],e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=0,e[11]=1/t[14],e[12]=0,e[13]=0,e[14]=-1,e[15]=t[10]/t[14],e}function IMr(e,t){let r=1/(t[0]*t[5]-t[1]*t[4]);return e[0]=t[5]*r,e[1]=-t[1]*r,e[2]=0,e[3]=0,e[4]=-t[4]*r,e[5]=t[0]*r,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1/t[10],e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1/t[15],e}function Ooe(e,t,r){let i=tg();if(!e){let{vecSouth:n,vecEast:a}=Noe(t),o=qst();o[0]=a[0],o[1]=a[1],o[2]=n[0],o[3]=n[1],KTr(o,o),i[0]=o[0],i[1]=o[1],i[4]=o[2],i[5]=o[3]}return c0(i,i,[1/r,1/r,1]),i}function BMr(e,t,r,i){if(e){let n=tg();if(!t){let{vecSouth:a,vecEast:o}=Noe(r);n[0]=o[0],n[1]=o[1],n[4]=a[0],n[5]=a[1]}return c0(n,n,[i,i,1]),n}return r.pixelsToClipSpaceMatrix}function Noe(e){let t=Math.cos(e.rollInRadians),r=Math.sin(e.rollInRadians),i=Math.cos(e.pitchInRadians),n=Math.cos(e.bearingInRadians),a=Math.sin(e.bearingInRadians),o=aq();o[0]=-n*i*r-a*t,o[1]=-a*i*r+n*t;let s=Sne(o);s<1e-9?Ene(o):Mne(o,o,1/s);let l=aq();l[0]=n*i*t-a*r,l[1]=a*i*t+n*r;let u=Sne(l);return u<1e-9?Ene(l):Mne(l,l,1/u),{vecEast:l,vecSouth:o}}function S3(e,t,r){var i,n;return uO(e.getElevation,t,r,(i=e.heightOffset)!=null?i:0,(n=e.heightAnchorGround)!=null?n:!0)}function Voe(e,t,r,i){let n;i==null?(n=[e,t,0,1],Uoe(n,n,r)):(n=[e,t,i,1],h0(n,n,r));let a=n[3];return{point:new Jr(n[0]/a,n[1]/a),signedDistanceFromCamera:a,isOccluded:!1}}function clt(e,t){return .5+e/t*.5}function qMr(e,t){return e.x>=-t[0]&&e.x<=t[0]&&e.y>=-t[1]&&e.y<=t[1]}function OMr(e,t,r,i,n,a,o,s,l,u,f,c,h){let d=r?e.textSizeData:e.iconSizeData,p=LC(d,t.transform.zoom),v=[256/t.width*2+1,256/t.height*2+1],y=r?e.text.dynamicLayoutVertexArray:e.icon.dynamicLayoutVertexArray;y.clear();let m=e.lineVertexArray,w=r?e.text.placedSymbolArray:e.icon.placedSymbolArray,_=t.transform.width/t.transform.height,b=!1;for(let M=0;MMath.abs(r.x-t.x)*i?{useVertical:!0}:(e===2?t.yr.x)?{needsFlipping:!0}:null}function $ot(e){let{projectionContext:t,pitchedLabelPlaneMatrixInverse:r,symbol:i,fontSize:n,flip:a,keepUpright:o,glyphOffsetArray:s,dynamicLayoutVertexArray:l,aspectRatio:u,rotateToLine:f}=e,c=n/24,h=i.lineOffsetX*c,d=i.lineOffsetY*c,p;if(i.numGlyphs>1){let v=i.glyphStartIndex+i.numGlyphs,y=i.lineStartIndex,m=i.lineStartIndex+i.lineLength,w=hlt(c,s,h,d,a,i,f,t);if(!w)return{notEnoughRoom:!0};let _=Zq(w.first.point.x,w.first.point.y,t,r),b=Zq(w.last.point.x,w.last.point.y,t,r);if(o&&!a){let M=Wot(i.writingMode,_,b,u);if(M)return M}p=[w.first];for(let M=i.glyphStartIndex+1;M0?_.point:dlt(t.tileAnchorPoint,w,y,1,t),M=Zq(y.x,y.y,t,r),x=Zq(b.x,b.y,t,r),T=Wot(i.writingMode,M,x,u);if(T)return T}let v=dO(c*s.getoffsetX(i.glyphStartIndex),h,d,a,i.segment,i.lineStartIndex,i.lineStartIndex+i.lineLength,t,f);if(!v||t.projectionCache.anyProjectionOccluded)return{notEnoughRoom:!0};p=[v]}for(let v of p)PC(l,v.point,v.angle);return{}}function dlt(e,t,r,i,n){let a=e.add(e.sub(t)._unit()),o=E3(a.x,a.y,n).point,s=r.sub(o);return r.add(s._mult(i/s.mag()))}function goe(e,t,r){let i=t.projectionCache;if(i.projections[e])return i.projections[e];let n=new Jr(t.lineVertexArray.getx(e),t.lineVertexArray.gety(e)),a=E3(n.x,n.y,t);if(a.signedDistanceFromCamera>0)return i.projections[e]=a.point,i.anyProjectionOccluded||(i.anyProjectionOccluded=a.isOccluded),a.point;let o=e-r.direction,s=r.distanceFromAnchor===0?t.tileAnchorPoint:new Jr(t.lineVertexArray.getx(o),t.lineVertexArray.gety(o)),l=r.absOffsetX-r.distanceFromAnchor+1;return dlt(s,n,r.previousVertex,l,t)}function E3(e,t,r){let i=e+r.translation[0],n=t+r.translation[1],a;return r.pitchWithMap?(a=Voe(i,n,r.pitchedLabelPlaneMatrix,S3(r,i,n)),a.isOccluded=!1):(a=r.transform.projectTileCoordinates(i,n,r.unwrappedTileID,S3(r,i,n)),a.point.x=(a.point.x*.5+.5)*r.width,a.point.y=(-a.point.y*.5+.5)*r.height),a}function Zq(e,t,r,i){if(r.pitchWithMap){let n=[e,t,0,1];h0(n,n,i);let a=n[0]/n[3],o=n[1]/n[3];return r.transform.projectTileCoordinates(a,o,r.unwrappedTileID,S3(r,a,o)).point}return{x:e/r.width*2-1,y:1-t/r.height*2}}function plt(e,t,r){return r.transform.projectTileCoordinates(e,t,r.unwrappedTileID,S3(r,e,t))}function xoe(e,t,r){return e._unit()._perp()._mult(t*r)}function NMr(e,t,r,i,n,a,o,s,l){if(s.projectionCache.offsets[e])return s.projectionCache.offsets[e];let u=r.add(t);if(e+l.direction=n)return s.projectionCache.offsets[e]=u,u;let f=goe(e+l.direction,s,l),c=xoe(f.sub(r),o,l.direction),h=r.add(c),d=f.add(c);return s.projectionCache.offsets[e]=Lrt(a,u,h,d)||u,s.projectionCache.offsets[e]}function dO(e,t,r,i,n,a,o,s,l){let u=i?e-t:e+t,f=u>0?1:-1,c=0;i&&(f*=-1,c=Math.PI),f<0&&(c+=Math.PI);let h=f>0?a+n:a+n+1,d;s.projectionCache.cachedAnchorPoint?d=s.projectionCache.cachedAnchorPoint:(d=E3(s.tileAnchorPoint.x,s.tileAnchorPoint.y,s).point,s.projectionCache.cachedAnchorPoint=d);let p=d,v=d,y,m,w=0,_=0,b=Math.abs(u),M=[],x;for(;w+_<=b;){if(h+=f,h=o)return null;w+=_,v=p,m=y;let E={absOffsetX:b,direction:f,distanceFromAnchor:w,previousVertex:v};if(p=goe(h,s,E),r===0)M.push(v),x=p.sub(v);else{let S,C=p.sub(v);S=C.mag()===0?xoe(goe(h+f,s,E).sub(p),r,f):xoe(C,r,f),m||(m=v.add(S)),y=NMr(h,S,p,a,o,m,r,s,E),M.push(m),x=y.sub(m)}_=x.mag()}let T=(b-w)/_,A=x._mult(T)._add(m||v),g=c+Math.atan2(p.y-v.y,p.x-v.x);return M.push(A),{point:A,angle:l?g:0,path:M}}function sT(e,t){for(let r=0;r{let n=Voe(i.x,i.y,r,S3(t,i.x,i.y)),a=t.transform.projectTileCoordinates(n.point.x,n.point.y,t.unwrappedTileID,S3(t,n.point.x,n.point.y));return a.point.x=(a.point.x*.5+.5)*t.width,a.point.y=(-a.point.y*.5+.5)*t.height,a})}function GMr(e){let t=0,r=0,i=0,n=0;for(let a=0;ar&&(r=n,t=i));return e.slice(t,t+r)}function Zot(e,t,r,i,n){let{horizontalAlign:a,verticalAlign:o}=FC(e),s=-(a-.5)*t,l=-(o-.5)*r;return new Jr(s+i[0]*n,l+i[1]*n)}function Kot(e,t,r,i,n,a){(!i||i.length===0)&&(i=[0,0,0,0]);let o=i[0]-100,s=i[1]-100,l=i[2]-100,u=i[3]-100;e.emplaceBack(+!!t,+!!r,n||0,a||0,o,s),e.emplaceBack(+!!t,+!!r,n||0,a||0,l,s),e.emplaceBack(+!!t,+!!r,n||0,a||0,l,u),e.emplaceBack(+!!t,+!!r,n||0,a||0,o,u)}function Jot(e){if(e.opacity===0&&!e.placed)return 0;if(e.opacity===1&&e.placed)return 4294967295;let t=+!!e.placed,r=Math.floor(e.opacity*127);return r*YMr+t*XMr+r*ZMr+t*KMr+r*512+t*256+r*2+t}function boe(e,t,r,i,n,a){if(n-i<=r)return;let o=i+n>>1;mlt(e,t,o,i,n,a),boe(e,t,r,i,o-1,1-a),boe(e,t,r,o+1,n,1-a)}function mlt(e,t,r,i,n,a){for(;n>i;){if(n-i>600){let u=n-i+1,f=r-i+1,c=Math.log(u),h=.5*Math.exp(2*c/3),d=.5*Math.sqrt(c*h*(u-h)/u)*(f-u/2<0?-1:1);mlt(e,t,r,Math.max(i,Math.floor(r-f*h/u+d)),Math.min(n,Math.floor(r+(u-f)*h/u+d)),a)}let o=t[2*r+a],s=i,l=n;for(HC(e,t,i,r),t[2*n+a]>o&&HC(e,t,i,n);so;)l--}t[2*i+a]===o?HC(e,t,i,l):(l++,HC(e,t,l,n)),l<=r&&(i=l+1),r<=l&&(n=l-1)}}function HC(e,t,r,i){Yae(e,r,i),Yae(t,2*r,2*i),Yae(t,2*r+1,2*i+1)}function Yae(e,t,r){let i=e[t];e[t]=e[r],e[r]=i}function est(e,t,r,i){let n=e-r,a=t-i;return n*n+a*a}function Ru(e,t){let r=/#pragma maplibre: ([\w]+) ([\w]+) ([\w]+) ([\w]+)/g,i=t.match(/in ([\w]+) ([\w]+)/g),n=e.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),a=t.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),o=a?a.concat(n):n,s=i?i.length:0,l={};return e=e.replace(r,(u,f,c,h,d)=>(l[d]=!0,f==="define"?` #ifndef HAS_UNIFORM_u_${d} in ${c} ${h} ${d}; #else @@ -2771,9 +2771,9 @@ uniform ${c} ${h} u_${d}; #else ${c} ${h} ${d} = u_${d}; #endif -`}),{fragmentSource:e,vertexSource:t,staticAttributes:i,staticUniforms:o}}function lO(e,t){if(!e.renderWorldCopies||e.lngRange)return;let r=t.lng-e.center.lng;t.lng+=r>180?-360:r<-180?360:0}function Yot(e){return Math.max(0,Math.floor(e))}function Roe(e,t,r,i){if(i<0||i>=1)return Kot;let n=Math.floor(r),a=r-n;for(let o of e.zooms){let s=1<n;a++){let o=(r+i)/2;t(e,o)?i=o:r=o}return{lo:r,hi:i}}function nO(e,t){return Roe(e.index,e.exaggeration,(e.near[0]+t*e.dx)/e.worldSize,(e.near[1]+t*e.dy)/e.worldSize)}function jq(e,t){return dlt(nO(e,t),e.near[2]+t*e.dz)}function Jot({near:e,far:t},r,i,n){let a=t[0]-e[0],o=t[1]-e[1],s=t[2]-e[2];return((r-e[0])*a+(i-e[1])*o+(n-e[2])*s)/(a*a+o*o+s*s)}function mlt(){lu("Map cannot fit within canvas with the given bounds, padding, and/or offset.")}function ylt(e){if(e.useSlerp)if(e.k<1){let t=Mne(e.startEulerAngles.roll,e.startEulerAngles.pitch,e.startEulerAngles.bearing),r=Mne(e.endEulerAngles.roll,e.endEulerAngles.pitch,e.endEulerAngles.bearing),i=new Float64Array(4);qk(i,t,r,e.k);let n=Frt(i);e.tr.setRoll(n.roll),e.tr.setPitch(n.pitch),e.tr.setBearing(n.bearing)}else e.tr.setRoll(e.endEulerAngles.roll),e.tr.setPitch(e.endEulerAngles.pitch),e.tr.setBearing(e.endEulerAngles.bearing);else e.tr.setRoll(ec.number(e.startEulerAngles.roll,e.endEulerAngles.roll,e.k)),e.tr.setPitch(ec.number(e.startEulerAngles.pitch,e.endEulerAngles.pitch,e.k)),e.tr.setBearing(ec.number(e.startEulerAngles.bearing,e.endEulerAngles.bearing,e.k))}function glt(e,t,r,i,n){let a=n.padding,o=F1(n.worldSize,r.getNorthWest()),s=F1(n.worldSize,r.getNorthEast()),l=F1(n.worldSize,r.getSouthEast()),u=F1(n.worldSize,r.getSouthWest()),f=$f(-i),c=o.rotate(f),h=s.rotate(f),d=l.rotate(f),p=u.rotate(f),v=new Zr(Math.max(c.x,h.x,p.x,d.x),Math.max(c.y,h.y,p.y,d.y)),y=new Zr(Math.min(c.x,h.x,p.x,d.x),Math.min(c.y,h.y,p.y,d.y)),m=v.sub(y),w=n.width-(a.left+a.right+t.left+t.right),_=n.height-(a.top+a.bottom+t.top+t.bottom),b=w/m.x,M=_/m.y;if(M<0||b<0){mlt();return}let x=Math.min(h0(n.scale*Math.min(b,M)),e.maxZoom),A=Zr.convert(e.offset),T=(t.left-t.right)/2,g=(t.top-t.bottom)/2,E=new Zr(T,g).rotate($f(i)),S=A.add(E).mult(n.scale/ed(x));return{center:Q5(n.worldSize,o.add(l).div(2).sub(S)),zoom:x,bearing:i}}function blt(e){let t=sT(e.worldSize,e.center.lat);return 2*Math.PI*t}function aSr(e,t,r){let i=Vh(t),n=Vh(r),a=rh(i,n),o=Math.acos(a),s=blt(e);return o/(2*Math.PI)*s}function oSr(e,t){return[hx(e*Math.PI*2+Math.PI,Math.PI*2),2*Math.atan(Math.exp(Math.PI-t*Math.PI*2))-Math.PI*.5]}function sSr(e,t){let r=Math.cos(t),i=new Float64Array(3);return i[0]=Math.sin(e)*r,i[1]=Math.sin(t),i[2]=Math.cos(e)*r,i}function _x(e,t,r,i,n){let a=1/(1<1e-6){let i=e[0]/r,n=e[2]/r,a=Math.acos(n),o=(i>0?a:-a)/Math.PI*180;return new Js(wp(o,-180,180),t)}return new Js(0,t)}function lSr(e,t){return J7(vx(),-e.lng,-e.lat,t)}function uSr(e){let t=e[0],r=e[1],i=e[2],n=e[3];return{lng:-Math.atan2(2*(n*t+r*i),1-2*(t*t+r*r))*180/Math.PI,lat:-Math.asin(Pl(2*(n*r-i*t),-1,1))*180/Math.PI,bearing:Math.atan2(2*(n*i+t*r),1-2*(r*r+i*i))*180/Math.PI}}function tst(e,t){let r=e.cameraPosition,i=Sv(r);if(i<=1)return e.screenPointToLocation(t);let n=Gu();Q0(n,r);let a=e.getRayDirectionFromPixel(t),o=-rh(a,n),s=Gu();uC(s,a,n,o);let l=Sv(s);if(l<1e-9)return e.screenPointToLocation(t);let u=Math.atan2(l,o),f=Math.asin(1/i)*.9;if(u=0?90:-90,s=e.locationToScreenPoint(new Js(0,o)),l=t.x-s.x,u=t.y-s.y,f=l*l+u*u,c=Pl(1-(k1-Math.abs(a))/12,0,1),h=c*c*(3-2*c),d=hx(i-n+180,360)-180,p=0;if(h>0&&r){let v=(l*r.y-u*r.x)/Math.max(f,400);p=(o>0?1:-1)*v*180/Math.PI}return n+(1-h)*d+h*p}function hSr(e){let t=Gu();return t[0]=e[0]*-e[3],t[1]=e[1]*-e[3],t[2]=e[2]*-e[3],{center:t,radius:Math.sqrt(1-e[3]*e[3])}}function dSr(e,t,r){let i=Gu();Nm(i,r,e);let n=Gu();return uC(n,e,i,t/fC(i)),n}function cO(e){return Math.cos(e*Math.PI/180)}function p0(e,t){let r=cO(e),i=cO(t);return h0(i/r)}function pSr(e,t){return 360/blt({worldSize:e,center:{lat:t}})}function vSr(e,t){let r=e.rotate(t.bearingInRadians),i=t.zoom+p0(t.center.lat,0),n=c3(1/cO(t.center.lat),1/cO(Math.min(Math.abs(t.center.lat),60)),pC(i,7,3,0,1)),a=pSr(t.worldSize,t.center.lat);return new Js(t.center.lng-r.x*a*n,Pl(t.center.lat+r.y*a,-k1,k1))}function Gae(e){let t=.5*e,r=Math.sin(t),i=Math.cos(t);return Math.log(r+i)-Math.log(i-r)}function rst(e,t,r,i){let n=e.lat+r*i;if(Math.abs(r)>1){let a=e.lat+r,o=(Math.sign(a)===Math.sign(e.lat)?Math.abs(e.lat):-Math.abs(e.lat))*Math.PI/180,s=Math.abs(e.lat+r)*Math.PI/180,l=Gae(o+i*(s-o)),u=Gae(o),f=Gae(s),c=(l-u)/(f-u),h=e.lng+t*c;return new Js(h,n)}{let a=e.lng+t*i;return new Js(a,n)}}function Wq(e,t,r=1){let i=rh(e,t),n=r*r,a=Gu(),o=Gu();Wf(o,t,i),Nm(a,e,o);let s=n-rh(a,a);if(s<0)return null;let l=rh(e,e)-n,u=-i+(i<0?1:-1)*Math.sqrt(s),f=l/u,c=u,h=Math.max(f,c);return h<0?null:{tMin:Math.min(f,c),tMax:h}}function wlt(e,t){let r=t*.01569612305760477,i=Pl((e-r)/(9*r),0,1);return i*i*(3-2*i)}function aO(e,t,r){let i=e-t;return i<0?-i:Math.max(0,i-r)}function jae(e,t,r,i,n){let a=e-r,o;return o=a<0?Math.min(-a,1+a-n):a>n?Math.min(Math.max(a-n,0),1-a):0,Math.max(o,aO(t,i,n))}function ist(e,t){let r=1/0,i=-1/0;for(let n of t){let a=rh(e,n);r=Math.min(r,a),i=Math.max(i,a)}return{min:r,max:i}}function Mlt(e,t){let r=Gu();uC(r,e.origin,e.direction,t);let i=Sv(r),n=Gu();Wf(n,r,1/i);let a=ZC(n),o=Uu.fromLngLat(a),s=new Uu(o.x,Pl(o.y,0,.999999999)),l=Roe(e.index,e.exaggeration,s.x,s.y),u=Math.abs(a.lat)>85.051129?0:l.elevation;return{sample:Ql(Zs({},l),{elevation:u}),radius:i,mercator:s}}function ast(e,t){let{sample:r,radius:i}=Mlt(e,t);return dlt(r,(i-1)*rd)}function ost(e,t){let r=Vh(e);return Wf(r,r,1+t/rd)}function sst(e,t,r){let i=X7(Gu(),r,e);return rh(i,t)}function gSr(e,t,r){let i={constrainOverride:t};if(Array.isArray(e)){let n=new est({type:e},r);return{projection:n,transform:new lst(i),cameraHelper:new ust(n)}}switch(e){case"mercator":return{projection:new doe,transform:new uO(i),cameraHelper:new fO};case"globe":{let n=new est({type:["interpolate",["linear"],["zoom"],11,"vertical-perspective",12,"mercator"]},{});return{projection:n,transform:new lst(i),cameraHelper:new ust(n)}}case"vertical-perspective":return{projection:new xlt,transform:new Alt(i),cameraHelper:new Elt};default:return lu(`Unknown projection name: ${e}. Falling back to mercator projection.`),{projection:new doe,transform:new uO(i),cameraHelper:new fO}}}function ESr(e,t){for(let[r,i]of Object.entries(vO)){let n=e.getUniformBlockIndex(t,r);n!==e.INVALID_INDEX&&e.uniformBlockBinding(t,n,i)}}function Boe(e){let t={},r=0;for(let{name:i,type:n}of e){let[a,o]=kSr[n];r=Math.ceil(r/o)*o,t[i]=r,r+=a}return{offsets:t,contentWords:r,sizeWords:Math.ceil(r/4)*4}}function Clt(e){return new qoe(e,vO.ProjectionUBO,klt)}function fst(e,t){let r=e.pending;r.set(t.mainMatrix,iT.u_projection_matrix),r.set(t.fallbackMatrix,iT.u_projection_fallback_matrix),r.set(t.tileMercatorCoords,iT.u_projection_tile_mercator_coords),r.set(t.clippingPlane,iT.u_projection_clipping_plane),r[iT.u_projection_transition]=t.projectionTransition,e.pendingWords[iT.u_projection_clip_antimeridian]=+!!t.clipAntimeridian,e.upload()}function CSr(e,t){var a;if(!t){e.projectionUniformBuffer.bind();return}let r=t.uniformBufferKey;if(r===void 0){fst(e.projectionUniformBuffer,t);return}let i=e.keyedProjectionUniformBuffers.get(r);if(i){i.bind();return}let n=(a=e.freeProjectionUniformBuffers.pop())!=null?a:Clt(e);e.keyedProjectionUniformBuffers.set(r,n),fst(n,t)}function DSr(e){e.freeProjectionUniformBuffers.push(...e.keyedProjectionUniformBuffers.values()),e.keyedProjectionUniformBuffers.clear()}function FSr(e){e.projectionUniformBuffer.destroy();for(let t of e.keyedProjectionUniformBuffers.values())t.destroy();for(let t of e.freeProjectionUniformBuffers)t.destroy()}function LSr(e){return new qoe(e,vO.TerrainUBO,Dlt)}function PSr(e,t){let r=e.pending;r.set(t.u_terrain_matrix,$q.u_terrain_matrix),r.set(t.u_terrain_unpack,$q.u_terrain_unpack),r[$q.u_terrain_dim]=t.u_terrain_dim,r[$q.u_terrain_exaggeration]=t.u_terrain_exaggeration,e.upload()}function Wae(e){let t=[];for(let r of e){if(r===null)continue;let i=r.split(" ");t.push(i.pop())}return t}function zSr(e,t){let r=new Set([e.INT,e.INT_VEC2,e.INT_VEC3,e.INT_VEC4,e.UNSIGNED_INT,e.UNSIGNED_INT_VEC2,e.UNSIGNED_INT_VEC3,e.UNSIGNED_INT_VEC4]),i=new Set,n=e.getProgramParameter(t,e.ACTIVE_ATTRIBUTES);for(let a=0;a>16,s>>16],u_pixel_coord_lower:[o&65535,s&65535]}}function RSr(e,t,r,i){let n=r.patternAtlas.getPattern(e.from.toString()),a=r.patternAtlas.getPattern(e.to.toString()),{width:o,height:s}=r.patternAtlas.getPixelSize(),l=2**i.tileID.overscaledZ,u=i.tileSize*2**r.transform.tileZoom/l,f=u*(i.tileID.canonical.x+i.tileID.wrap*l),c=u*i.tileID.canonical.y;return{u_image:0,u_pattern_tl_a:n.tl,u_pattern_br_a:n.br,u_pattern_tl_b:a.tl,u_pattern_br_b:a.br,u_texsize:[o,s],u_mix:t.t,u_pattern_size_a:n.displaySize,u_pattern_size_b:a.displaySize,u_scale_a:t.fromScale,u_scale_b:t.toScale,u_tile_units_to_pixels:1/Od(i,1,r.transform.tileZoom),u_pixel_coord_upper:[f>>16,c>>16],u_pixel_coord_lower:[f&65535,c&65535]}}function rEr(e,t){let r=2**t.canonical.z,i=t.canonical.y;return[new Uu(0,i/r).toLngLat().lat,new Uu(0,(i+1)/r).toLngLat().lat]}function Ooe(e,t){return 1/Od(e,1,t.tileZoom)}function Rlt(e,t,r){return Qy(e.transform,t,r.paint.get("line-translate"),r.paint.get("line-translate-anchor"))}function hkr(e){return new qoe(e,vO.FrameUBO,Olt)}function dkr(e,t){let r=e.pending,{transform:i}=t,n=t.context.gl;r[Ap.u_units_to_pixels]=1/i.pixelsToGLUnits[0],r[Ap.u_units_to_pixels+1]=1/i.pixelsToGLUnits[1],r[Ap.u_world_size]=n.drawingBufferWidth,r[Ap.u_world_size+1]=n.drawingBufferHeight,r[Ap.u_camera_to_center_distance]=i.cameraToCenterDistance,r[Ap.u_symbol_fade_change]=t.options.fadeDuration?t.symbolFadeChange:1,r[Ap.u_aspect_ratio]=i.width/i.height,r[Ap.u_device_pixel_ratio]=t.pixelRatio,r[Ap.u_viewport_size]=i.width,r[Ap.u_viewport_size+1]=i.height,r[Ap.u_pixel_extrude_scale]=1/i.width,r[Ap.u_pixel_extrude_scale+1]=1/i.height,r[Ap.u_pitch]=i.pitch/360*2*Math.PI,e.upload()}function vkr(e,t,r){var n;let i=(n=t==null?void 0:t.transitionState)!=null?n:0;return{currentPass:"offscreen",currentLayer:0,opaquePassCutoff:1/0,depthRangeFor3D:[0,1],isRenderingToTexture:!1,transform:e,terrain:r,projectionTransition:i,isRenderingGlobe:i>0}}function I0(e,t,r={}){var n;let i=e.transform.getProjectionData({overscaledTileID:t,aligned:r.aligned,applyGlobeMatrix:!e.isRenderingToTexture,applyTerrainMatrix:(n=r.applyTerrainMatrix)!=null?n:!0});return e.isRenderingToTexture||(i.uniformBufferKey=r.aligned?`${t.key}/aligned`:t.key),i}function xd(e,t){var r,i;return e.isRenderingToTexture?null:(i=(r=e.terrain)==null?void 0:r.getTerrainData(t))!=null?i:null}function pst(e,t,r,i,n,a){let o=e.context,s=o.gl,l=e.useProgram("collisionBox"),u=[],f=0,c=0;for(let m of i){let w=t.getTile(m).getBucket(r);if(!w)continue;let _=n?w.textCollisionBox:w.iconCollisionBox,b=w.collisionCircleArray;b.length>0&&(u.push({circleArray:b,circleOffset:c,coord:m}),f+=b.length/4,c=f),_&&l.draw(o,s.LINES,vu.disabled,Zu.disabled,e.colorModeForRenderPass(),Hu.disabled,null,xd(a,m),I0(a,m),r.id,_.layoutVertexBuffer,_.indexBuffer,_.segments,null,e.transform.zoom,null,null,_.collisionVertexBuffer)}if(!n||!u.length)return;let h=e.useProgram("collisionCircle"),d=new Ant;d.resize(f*4),d._trim();let p=0;for(let m of u)for(let w=0;wf.getElevation(p,T,g):void 0;wkr(y,c,h,l,u,b,x,w,M,Qy(u,v,o,s),p.toUnwrapped(),A,r.layout.get("symbol-height-anchor")==="ground")}}}function _kr(e,t,r,i,n,a){let o=t.tileAnchorPoint.add(new Zr(t.translation[0],t.translation[1]));if(t.pitchWithMap){let s=i.mult(a);r||(s=s.rotate(-n));let l=o.add(s);return Poe(l.x,l.y,t.pitchedLabelPlaneMatrix,A3(t,l.x,l.y)).point}if(r){let s=T3(t.tileAnchorPoint.x+1,t.tileAnchorPoint.y,t).point.sub(e),l=Math.atan(s.y/s.x)+(s.x<0?Math.PI:0);return e.add(i.rotate(l))}return e.add(i)}function wkr(e,t,r,i,n,a,o,s,l,u,f,c,h){let d=e.text.placedSymbolArray,p=e.text.dynamicLayoutVertexArray,v=e.icon.dynamicLayoutVertexArray,y={};p.clear();for(let m=0;m=0&&(y[w.associatedIconIndex]={shiftedAnchor:I,angle:F})}}if(l){v.clear();let m=e.icon.placedSymbolArray;for(let w=0;we.style.map.terrain.getElevation(k,U,se):void 0;EMr(L,e,n,H,ne,m,u,r.layout.get("text-rotation-alignment")==="map",k.toUnwrapped(),v.width,v.height,te,ye)}let le=n&&A||ge,re=m?H:e.transform.clipSpaceToPixelsMatrix,Ee=w||le?ykr:re,we=F&&r.paint.get(n?"text-halo-width":"icon-halo-width").constantOr(1)!==0,oe;oe=F?L.iconsInText?xEr(z.kind,W,_,m,w,le,e,Ee,$,te,Z,j,g,Ie,Ce):qlt(z.kind,W,_,m,w,le,e,Ee,$,te,n,Z,we,g,Ie,Ce):Blt(z.kind,W,_,m,w,le,e,Ee,$,te,n,Z,g,Ie,Ce);let Y={program:O,buffers:P,uniformValues:oe,projectionData:ie,atlasTexture:q,atlasTextureIcon:N,atlasInterpolation:Q,atlasInterpolationIcon:V,isSDF:F,hasHalo:we};if(b&&L.canOverlap){M=!0;let ne=P.segments.get();for(let ye of ne)T.push({segments:new tc([ye]),sortKey:ye.sortKey,state:Y,terrainData:X})}else T.push({segments:P.segments,sortKey:0,state:Y,terrainData:X})}M&&T.sort((k,D)=>k.sortKey-D.sortKey);let E=(C=r.paint.get(n?"text-halo-width":"icon-halo-width").constantOr(null))!=null?C:1/0,S=r.layout.get("text-letter-spacing").constantOr(0)*24<0||E>1;for(let k of T){let D=k.state;d.activeTexture.set(p.TEXTURE0),D.atlasTexture.bind(D.atlasInterpolation,p.CLAMP_TO_EDGE),D.atlasTextureIcon&&(d.activeTexture.set(p.TEXTURE1),D.atlasTextureIcon&&D.atlasTextureIcon.bind(D.atlasInterpolationIcon,p.CLAMP_TO_EDGE));let L=D.isSDF&&D.hasHalo;if(L){let P=D.uniformValues;P.u_is_halo=1,S&&(P.u_is_plain=0,mst(D.buffers,k.segments,r,e,D.program,x,f,c,P,D.projectionData,k.terrainData),P.u_is_halo=0,P.u_is_plain=1)}mst(D.buffers,k.segments,r,e,D.program,x,f,c,D.uniformValues,D.projectionData,k.terrainData),L&&!S&&(D.uniformValues.u_is_halo=0)}}function mst(e,t,r,i,n,a,o,s,l,u,f){let c=i.context,h=c.gl;n.draw(c,h.TRIANGLES,a,o,s,Hu.backCCW,l,f,u,r.id,e.layoutVertexBuffer,e.indexBuffer,t,r.paint,i.transform.zoom,e.programConfigurations.get(r.id),e.dynamicLayoutVertexBuffer,e.opacityVertexBuffer)}function Tkr(e,t,r,i,n){if(n.currentPass!=="translucent")return;let a=r.paint.get("circle-opacity"),o=r.paint.get("circle-stroke-width"),s=r.paint.get("circle-stroke-opacity"),l=!r.layout.get("circle-sort-key").isConstant();if(a.constantOr(1)===0&&(o.constantOr(1)===0||s.constantOr(1)===0))return;let u=e.context,f=u.gl,c=e.transform,h=e.getDepthModeForSublayer(0,vu.ReadOnly),d=Zu.disabled,p=e.colorModeForRenderPass(),v=[],y=c.getCircleRadiusCorrection();for(let m of i){let w=t.getTile(m),_=w.getBucket(r);if(!_)continue;let b=r.paint.get("circle-translate"),M=r.paint.get("circle-translate-anchor"),x=Qy(c,w,b,M),A=_.programConfigurations.get(r.id),T=e.useProgram("circle",A),g=_.layoutVertexBuffer,E=_.indexBuffer,S=xd(n,m),C={programConfiguration:A,program:T,layoutVertexBuffer:g,indexBuffer:E,uniformValues:YSr(e,w,r,x,y),terrainData:S,projectionData:I0(n,m)};if(l){let k=_.segments.get();for(let D of k)v.push({segments:new tc([D]),sortKey:D.sortKey,state:C})}else v.push({segments:_.segments,sortKey:0,state:C})}l&&v.sort((m,w)=>m.sortKey-w.sortKey);for(let m of v){let{programConfiguration:w,program:_,layoutVertexBuffer:b,indexBuffer:M,uniformValues:x,terrainData:A,projectionData:T}=m.state,g=m.segments;_.draw(u,f.TRIANGLES,h,d,p,Hu.backCCW,x,A,T,r.id,b,M,g,r.paint,e.transform.zoom,w)}}function Mkr(e,t,r,i,n){if(r.paint.get("heatmap-opacity")===0)return;let a=e.context;if(e.style.map.terrain){for(let o of i){let s=t.getTile(o);t.hasRenderableParent(o)||(n.currentPass==="offscreen"?kkr(e,s,r,o,n):n.currentPass==="translucent"&&Ckr(e,r,o,n))}a.viewport.set([0,0,e.width,e.height])}else n.currentPass==="offscreen"?Skr(e,t,r,i,n):n.currentPass==="translucent"&&Ekr(e,r)}function Skr(e,t,r,i,n){let a=e.context,o=a.gl,s=e.transform,l=Zu.disabled,u=new Bc([o.ONE,o.ONE],Ol.transparent,[!0,!0,!0,!0]);Dkr(a,e,r),a.clear({color:Ol.transparent});for(let f of i){if(t.hasRenderableParent(f))continue;let c=t.getTile(f),h=c.getBucket(r);if(!h)continue;let d=h.programConfigurations.get(r.id),p=e.useProgram("heatmap",d),v=I0(n,f,{applyTerrainMatrix:!1}),y=s.getCircleRadiusCorrection();p.draw(a,o.TRIANGLES,vu.disabled,l,u,Hu.backCCW,zlt(c,s.zoom,r.paint.get("heatmap-intensity"),y),null,v,r.id,h.layoutVertexBuffer,h.indexBuffer,h.segments,r.paint,s.zoom,d)}a.viewport.set([0,0,e.width,e.height])}function Ekr(e,t){let r=e.context,i=r.gl;r.setColorMode(e.colorModeForRenderPass());let n=t.heatmapFbos.get(MC);n&&(r.activeTexture.set(i.TEXTURE0),i.bindTexture(i.TEXTURE_2D,n.colorAttachment.get()),r.activeTexture.set(i.TEXTURE1),Vlt(r,t).bind(i.LINEAR,i.CLAMP_TO_EDGE),e.useProgram("heatmapTexture").draw(r,i.TRIANGLES,vu.disabled,Zu.disabled,e.colorModeForRenderPass(),Hu.disabled,Ilt(e,t,0,1),null,null,t.id,e.viewportBuffer,e.quadTriangleIndexBuffer,e.viewportSegments,t.paint,e.transform.zoom))}function kkr(e,t,r,i,n){let a=e.context,o=a.gl,s=Zu.disabled,l=new Bc([o.ONE,o.ONE],Ol.transparent,[!0,!0,!0,!0]),u=t.getBucket(r);if(!u)return;let f=i.key,c=r.heatmapFbos.get(f);c||(c=Nlt(a,t.tileSize,t.tileSize),r.heatmapFbos.set(f,c)),a.bindFramebuffer.set(c.framebuffer),a.viewport.set([0,0,t.tileSize,t.tileSize]),a.clear({color:Ol.transparent});let h=u.programConfigurations.get(r.id),d=e.useProgram("heatmap",h,!n.isRenderingGlobe),p=I0(n,t.tileID),v=xd(n,i);d.draw(a,o.TRIANGLES,vu.disabled,s,l,Hu.disabled,zlt(t,e.transform.zoom,r.paint.get("heatmap-intensity"),1),v,p,r.id,u.layoutVertexBuffer,u.indexBuffer,u.segments,r.paint,e.transform.zoom,h)}function Ckr(e,t,r,i){let n=e.context,a=n.gl,o=e.transform;n.setColorMode(e.colorModeForRenderPass());let s=Vlt(n,t),l=r.key,u=t.heatmapFbos.get(l);if(!u)return;n.activeTexture.set(a.TEXTURE0),a.bindTexture(a.TEXTURE_2D,u.colorAttachment.get()),n.activeTexture.set(a.TEXTURE1),s.bind(a.LINEAR,a.CLAMP_TO_EDGE);let f=I0(i,r,{applyTerrainMatrix:i.isRenderingGlobe});e.useProgram("heatmapTexture").draw(n,a.TRIANGLES,vu.disabled,Zu.disabled,e.colorModeForRenderPass(),Hu.disabled,Ilt(e,t,0,1),null,f,t.id,e.rasterBoundsBuffer,e.quadTriangleIndexBuffer,e.rasterBoundsSegments,t.paint,o.zoom),u.destroy(),t.heatmapFbos.delete(l)}function Dkr(e,t,r){let i=e.gl;e.activeTexture.set(i.TEXTURE1),e.viewport.set([0,0,t.width/4,t.height/4]);let n=r.heatmapFbos.get(MC);n?(i.bindTexture(i.TEXTURE_2D,n.colorAttachment.get()),e.bindFramebuffer.set(n.framebuffer)):(n=Nlt(e,t.width/4,t.height/4),r.heatmapFbos.set(MC,n))}function Nlt(e,t,r){let i=e.gl,n=i.createTexture();i.bindTexture(i.TEXTURE_2D,n),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_WRAP_S,i.CLAMP_TO_EDGE),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_WRAP_T,i.CLAMP_TO_EDGE),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_MIN_FILTER,i.LINEAR),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_MAG_FILTER,i.LINEAR),i.texStorage2D(i.TEXTURE_2D,1,i.RGBA16F,t,r);let a=e.createFramebuffer(t,r,!1,!1);return a.colorAttachment.set(n),a}function Vlt(e,t){return t.colorRampTexture||(t.colorRampTexture=new dh(e,t.colorRamp,e.gl.RGBA)),t.colorRampTexture}function Ult(e,t,r){let i=e.context,n=i.bindFramebuffer.get(),a=i.viewport.get(),[,,o,s]=a;return Fkr(e,o,s),i.viewport.set([0,0,o,s]),i.clear({color:Ol.transparent,depth:1,stencil:0}),e.currentStencilSource=void 0,e.renderTileClippingMasks(t,r),{compositeTarget:n,compositeViewport:a}}function Fkr(e,t,r){let i=e.context.gl;if(!e.layerOpacityFbo){let a=e.context.createFramebuffer(t,r,!0,!0),o=i.createTexture();i.bindTexture(i.TEXTURE_2D,o),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_WRAP_S,i.CLAMP_TO_EDGE),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_WRAP_T,i.CLAMP_TO_EDGE),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_MIN_FILTER,i.LINEAR),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_MAG_FILTER,i.LINEAR),i.texImage2D(i.TEXTURE_2D,0,i.RGBA,t,r,0,i.RGBA,i.UNSIGNED_BYTE,null),a.colorAttachment.set(o),a.depthAttachment.set(e.context.createRenderbuffer(i.DEPTH_STENCIL,t,r)),e.layerOpacityFbo=a,e.context.bindFramebuffer.set(e.layerOpacityFbo.framebuffer);return}if(e.layerOpacityFbo.width===t&&e.layerOpacityFbo.height===r){e.context.bindFramebuffer.set(e.layerOpacityFbo.framebuffer);return}let n=e.layerOpacityFbo;i.bindTexture(i.TEXTURE_2D,n.colorAttachment.get()),i.texImage2D(i.TEXTURE_2D,0,i.RGBA,t,r,0,i.RGBA,i.UNSIGNED_BYTE,null),e.context.bindRenderbuffer.set(n.depthAttachment.get()),i.renderbufferStorage(i.RENDERBUFFER,i.DEPTH_STENCIL,t,r),e.context.bindRenderbuffer.set(null),n.width=t,n.height=r,e.context.bindFramebuffer.set(n.framebuffer)}function Glt(e,t,r,i){let n=e.context,a=n.gl;n.bindFramebuffer.set(r.compositeTarget),n.viewport.set(r.compositeViewport),n.activeTexture.set(a.TEXTURE0),a.bindTexture(a.TEXTURE_2D,e.layerOpacityFbo.colorAttachment.get()),e.useProgram("layerOpacity").draw(n,a.TRIANGLES,vu.disabled,Zu.disabled,e.colorModeForRenderPass(),Hu.disabled,vEr(t,0),null,null,i.id,e.viewportBuffer,e.quadTriangleIndexBuffer,e.viewportSegments,i.paint,e.transform.zoom),e.currentStencilSource=void 0}function Hlt(e,t,r,i,n,a,o,s){let l=256;if(n.stepInterpolant){let u=t.getSource().maxzoom,f=o.canonical.z===u?Math.ceil(1<e.options.anisotropicFilterPitch&&p.texParameterf(p.TEXTURE_2D,d.extTextureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT,d.extTextureFilterAnisotropicMax);let D=xd(f,A),L=I0(f,A,{aligned:w}),P=j6r(C,S,k.fadeMix,r,s,l),I=c!=null?c:y.getMeshFromTileID(d,A.canonical,a,o,"raster"),F=n?n[A.overscaledZ]:Zu.disabled;v.draw(d,p.TRIANGLES,T,F,m,u?Hu.frontCCW:Hu.backCCW,P,D,L,r.id,I.vertexBuffer,I.indexBuffer,I.segments)}}function Gkr(e,t,r,i){let n={parentTile:null,parentScaleBy:1,parentTopLeft:[0,0],fadeValues:{tileOpacity:1,parentTileOpacity:1,fadeMix:{opacity:1,mix:0}}};if(r===0||i)return n;if(e.fadingParentID){let a=t.getLoadedTile(e.fadingParentID);if(!a)return n;let o=2**(a.tileID.overscaledZ-e.tileID.overscaledZ);return{parentTile:a,parentScaleBy:o,parentTopLeft:[e.tileID.canonical.x*o%1,e.tileID.canonical.y*o%1],fadeValues:Hkr(e,a,r)}}return e.selfFading?{parentTile:null,parentScaleBy:1,parentTopLeft:[0,0],fadeValues:jkr(e,r)}:n}function Hkr(e,t,r){let i=Ku(),n=(i-e.timeAdded)/r,a=(i-t.timeAdded)/r,o=e.fadingDirection===1,s=Pl(n,0,1),l=Pl(1-a,0,1),u=o?s:l;return{tileOpacity:u,parentTileOpacity:o?l:s,fadeMix:{opacity:1,mix:1-u}}}function jkr(e,t){let r=(Ku()-e.timeAdded)/t,i=Pl(r,0,1);return{tileOpacity:i,fadeMix:{opacity:i,mix:0}}}function Wkr(e,t,r,i,n){let a=r.paint.get("background-color"),o=r.paint.get("background-opacity");if(o===0)return;let s=e.context,l=s.gl,u=e.style.projection,f=e.transform,c=f.tileSize,h=r.paint.get("background-pattern");if(e.isPatternMissing(h))return;let d=!h&&a.a===1&&o===1&&e.opaquePassEnabledForLayer()?"opaque":"translucent";if(n.currentPass!==d)return;let p=Zu.disabled,v=e.getDepthModeForSublayer(0,d==="opaque"?vu.ReadWrite:vu.ReadOnly),y=e.colorModeForRenderPass(),m=e.useProgram(h?"backgroundPattern":"background"),w=i||uT(f,{tileSize:c,terrain:e.style.map.terrain});h&&(s.activeTexture.set(l.TEXTURE0),e.patternAtlas.bind(e.context));let _=r.getCrossfadeParameters();for(let b of w){let M=I0(n,b),x=h?AEr(o,e,h,{tileID:b,tileSize:c},_):wEr(o,a),A=xd(n,b),T=u.getMeshFromTileID(s,b.canonical,!1,!0,"raster");m.draw(s,l.TRIANGLES,v,p,y,Hu.backCCW,x,A,M,r.id,T.vertexBuffer,T.indexBuffer,T.segments)}}function Jkr(e){let t=e.transform.padding;xst(e,e.transform.height-(t.top||0),3,$kr),xst(e,t.bottom||0,3,Ykr),bst(e,t.left||0,3,Xkr),bst(e,e.transform.width-(t.right||0),3,Zkr);let r=e.transform.centerPoint;Qkr(e,r.x,e.transform.height-r.y,Kkr)}function Qkr(e,t,r,i){hO(e,t-1,r-10,2,20,i),hO(e,t-10,r-1,20,2,i)}function xst(e,t,r,i){hO(e,0,t+r/2,e.transform.width,r,i)}function bst(e,t,r,i){hO(e,t-r/2,0,r,e.transform.height,i)}function hO(e,t,r,i,n,a){let o=e.context,s=o.gl;s.enable(s.SCISSOR_TEST),s.scissor(t*e.pixelRatio,r*e.pixelRatio,i*e.pixelRatio,n*e.pixelRatio),o.clear({color:a}),s.disable(s.SCISSOR_TEST)}function eCr(e,t,r,i){for(let n of r)tCr(e,t,n,i)}function tCr(e,t,r,i){var w;let n=e.context,a=n.gl,o=e.useProgram("debug"),s=vu.disabled,l=Zu.disabled,u=e.colorModeForRenderPass(),f="$debug",c=xd(i,r);n.activeTexture.set(a.TEXTURE0);let h=((w=t.getTileByID(r.key).latestRawTileData)==null?void 0:w.byteLength)||0,d=Math.floor(h/1024),p=t.getTile(r).tileSize,v=512/Math.min(p,512)*(r.overscaledZ/e.transform.zoom)*.5,y=r.canonical.toString();r.overscaledZ!==r.canonical.z&&(y+=` => ${r.overscaledZ}`),rCr(e,`${y} ${d}kB`);let m=I0(i,r);o.draw(n,a.TRIANGLES,s,l,Bc.alphaBlended,Hu.disabled,cst(Ol.transparent,v),null,m,f,e.debugBuffer,e.quadTriangleIndexBuffer,e.debugSegments),o.draw(n,a.LINE_STRIP,s,l,u,Hu.disabled,cst(Ol.red),c,m,f,e.debugBuffer,e.tileBorderIndexBuffer,e.debugSegments)}function rCr(e,t){e.initDebugOverlayCanvas();let r=e.debugOverlayCanvas,i=e.context.gl,n=e.debugOverlayCanvas.getContext("2d");n.clearRect(0,0,r.width,r.height),n.shadowColor="white",n.shadowBlur=2,n.lineWidth=1.5,n.strokeStyle="white",n.textBaseline="top",n.font="bold 36px Open Sans, sans-serif",n.fillText(t,5,5),n.strokeText(t,5,5),e.debugOverlayTexture.update(r),e.debugOverlayTexture.bind(i.LINEAR,i.CLAMP_TO_EDGE)}function iCr(e,t){let r=null,i=Object.values(e._layers).flatMap(s=>s.source&&!s.isHidden(t)?[e.tileManagers[s.source]]:[]),n=i.filter(s=>s.getSource().type==="vector"),a=i.filter(s=>s.getSource().type!=="vector"),o=s=>{(!r||r.getSource().maxzoom180?-360:r<-180?360:0}function rst(e){return Math.max(0,Math.floor(e))}function Hoe(e,t,r,i){if(i<0||i>=1)return ast;let n=Math.floor(r),a=r-n;for(let o of e.zooms){let s=1<n;a++){let o=(r+i)/2;t(e,o)?i=o:r=o}return{lo:r,hi:i}}function fO(e,t){return Hoe(e.index,e.exaggeration,(e.near[0]+t*e.dx)/e.worldSize,(e.near[1]+t*e.dy)/e.worldSize)}function Kq(e,t){return _lt(fO(e,t),e.near[2]+t*e.dz)}function ost({near:e,far:t},r,i,n){let a=t[0]-e[0],o=t[1]-e[1],s=t[2]-e[2];return((r-e[0])*a+(i-e[1])*o+(n-e[2])*s)/(a*a+o*o+s*s)}function Tlt(){uu("Map cannot fit within canvas with the given bounds, padding, and/or offset.")}function Mlt(e){if(e.useSlerp)if(e.k<1){let t=Pne(e.startEulerAngles.roll,e.startEulerAngles.pitch,e.startEulerAngles.bearing),r=Pne(e.endEulerAngles.roll,e.endEulerAngles.pitch,e.endEulerAngles.bearing),i=new Float64Array(4);Nk(i,t,r,e.k);let n=Ort(i);e.tr.setRoll(n.roll),e.tr.setPitch(n.pitch),e.tr.setBearing(n.bearing)}else e.tr.setRoll(e.endEulerAngles.roll),e.tr.setPitch(e.endEulerAngles.pitch),e.tr.setBearing(e.endEulerAngles.bearing);else e.tr.setRoll(ic.number(e.startEulerAngles.roll,e.endEulerAngles.roll,e.k)),e.tr.setPitch(ic.number(e.startEulerAngles.pitch,e.endEulerAngles.pitch,e.k)),e.tr.setBearing(ic.number(e.startEulerAngles.bearing,e.endEulerAngles.bearing,e.k))}function Slt(e,t,r,i,n){let a=n.padding,o=I1(n.worldSize,r.getNorthWest()),s=I1(n.worldSize,r.getNorthEast()),l=I1(n.worldSize,r.getSouthEast()),u=I1(n.worldSize,r.getSouthWest()),f=Yf(-i),c=o.rotate(f),h=s.rotate(f),d=l.rotate(f),p=u.rotate(f),v=new Jr(Math.max(c.x,h.x,p.x,d.x),Math.max(c.y,h.y,p.y,d.y)),y=new Jr(Math.min(c.x,h.x,p.x,d.x),Math.min(c.y,h.y,p.y,d.y)),m=v.sub(y),w=n.width-(a.left+a.right+t.left+t.right),_=n.height-(a.top+a.bottom+t.top+t.bottom),b=w/m.x,M=_/m.y;if(M<0||b<0){Tlt();return}let x=Math.min(d0(n.scale*Math.min(b,M)),e.maxZoom),T=Jr.convert(e.offset),A=(t.left-t.right)/2,g=(t.top-t.bottom)/2,E=new Jr(A,g).rotate(Yf(i)),S=T.add(E).mult(n.scale/id(x));return{center:eT(n.worldSize,o.add(l).div(2).sub(S)),zoom:x,bearing:i}}function klt(e){let t=lT(e.worldSize,e.center.lat);return 2*Math.PI*t}function ySr(e,t,r){let i=Uh(t),n=Uh(r),a=nh(i,n),o=Math.acos(a),s=klt(e);return o/(2*Math.PI)*s}function gSr(e,t){return[dx(e*Math.PI*2+Math.PI,Math.PI*2),2*Math.atan(Math.exp(Math.PI-t*Math.PI*2))-Math.PI*.5]}function xSr(e,t){let r=Math.cos(t),i=new Float64Array(3);return i[0]=Math.sin(e)*r,i[1]=Math.sin(t),i[2]=Math.cos(e)*r,i}function wx(e,t,r,i,n){let a=1/(1<1e-6){let i=e[0]/r,n=e[2]/r,a=Math.acos(n),o=(i>0?a:-a)/Math.PI*180;return new Js(Tp(o,-180,180),t)}return new Js(0,t)}function bSr(e,t){return nq(mx(),-e.lng,-e.lat,t)}function _Sr(e){let t=e[0],r=e[1],i=e[2],n=e[3];return{lng:-Math.atan2(2*(n*t+r*i),1-2*(t*t+r*r))*180/Math.PI,lat:-Math.asin(Pl(2*(n*r-i*t),-1,1))*180/Math.PI,bearing:Math.atan2(2*(n*i+t*r),1-2*(r*r+i*i))*180/Math.PI}}function ust(e,t){let r=e.cameraPosition,i=Cv(r);if(i<=1)return e.screenPointToLocation(t);let n=Gu();rd(n,r);let a=e.getRayDirectionFromPixel(t),o=-nh(a,n),s=Gu();cC(s,a,n,o);let l=Cv(s);if(l<1e-9)return e.screenPointToLocation(t);let u=Math.atan2(l,o),f=Math.asin(1/i)*.9;if(u=0?90:-90,s=e.locationToScreenPoint(new Js(0,o)),l=t.x-s.x,u=t.y-s.y,f=l*l+u*u,c=Pl(1-(L1-Math.abs(a))/12,0,1),h=c*c*(3-2*c),d=dx(i-n+180,360)-180,p=0;if(h>0&&r){let v=(l*r.y-u*r.x)/Math.max(f,400);p=(o>0?1:-1)*v*180/Math.PI}return n+(1-h)*d+h*p}function TSr(e){let t=Gu();return t[0]=e[0]*-e[3],t[1]=e[1]*-e[3],t[2]=e[2]*-e[3],{center:t,radius:Math.sqrt(1-e[3]*e[3])}}function MSr(e,t,r){let i=Gu();Um(i,r,e);let n=Gu();return cC(n,e,i,t/hC(i)),n}function yO(e){return Math.cos(e*Math.PI/180)}function v0(e,t){let r=yO(e),i=yO(t);return d0(i/r)}function SSr(e,t){return 360/klt({worldSize:e,center:{lat:t}})}function ESr(e,t){let r=e.rotate(t.bearingInRadians),i=t.zoom+v0(t.center.lat,0),n=p3(1/yO(t.center.lat),1/yO(Math.min(Math.abs(t.center.lat),60)),mC(i,7,3,0,1)),a=SSr(t.worldSize,t.center.lat);return new Js(t.center.lng-r.x*a*n,Pl(t.center.lat+r.y*a,-L1,L1))}function Kae(e){let t=.5*e,r=Math.sin(t),i=Math.cos(t);return Math.log(r+i)-Math.log(i-r)}function fst(e,t,r,i){let n=e.lat+r*i;if(Math.abs(r)>1){let a=e.lat+r,o=(Math.sign(a)===Math.sign(e.lat)?Math.abs(e.lat):-Math.abs(e.lat))*Math.PI/180,s=Math.abs(e.lat+r)*Math.PI/180,l=Kae(o+i*(s-o)),u=Kae(o),f=Kae(s),c=(l-u)/(f-u),h=e.lng+t*c;return new Js(h,n)}{let a=e.lng+t*i;return new Js(a,n)}}function Jq(e,t,r=1){let i=nh(e,t),n=r*r,a=Gu(),o=Gu();$f(o,t,i),Um(a,e,o);let s=n-nh(a,a);if(s<0)return null;let l=nh(e,e)-n,u=-i+(i<0?1:-1)*Math.sqrt(s),f=l/u,c=u,h=Math.max(f,c);return h<0?null:{tMin:Math.min(f,c),tMax:h}}function Dlt(e,t){let r=t*.01569612305760477,i=Pl((e-r)/(9*r),0,1);return i*i*(3-2*i)}function cO(e,t,r){let i=e-t;return i<0?-i:Math.max(0,i-r)}function Qae(e,t,r,i,n){let a=e-r,o;return o=a<0?Math.min(-a,1+a-n):a>n?Math.min(Math.max(a-n,0),1-a):0,Math.max(o,cO(t,i,n))}function cst(e,t){let r=1/0,i=-1/0;for(let n of t){let a=nh(e,n);r=Math.min(r,a),i=Math.max(i,a)}return{min:r,max:i}}function Plt(e,t){let r=Gu();cC(r,e.origin,e.direction,t);let i=Cv(r),n=Gu();$f(n,r,1/i);let a=JC(n),o=Uu.fromLngLat(a),s=new Uu(o.x,Pl(o.y,0,.999999999)),l=Hoe(e.index,e.exaggeration,s.x,s.y),u=Math.abs(a.lat)>85.051129?0:l.elevation;return{sample:$l(Gs({},l),{elevation:u}),radius:i,mercator:s}}function dst(e,t){let{sample:r,radius:i}=Plt(e,t);return _lt(r,(i-1)*ad)}function pst(e,t){let r=Uh(e);return $f(r,r,1+t/ad)}function vst(e,t,r){let i=tq(Gu(),r,e);return nh(i,t)}function DSr(e,t,r){let i={constrainOverride:t};if(Array.isArray(e)){let n=new lst({type:e},r);return{projection:n,transform:new mst(i),cameraHelper:new yst(n)}}switch(e){case"mercator":return{projection:new _oe,transform:new vO(i),cameraHelper:new mO};case"globe":{let n=new lst({type:["interpolate",["linear"],["zoom"],11,"vertical-perspective",12,"mercator"]},{});return{projection:n,transform:new mst(i),cameraHelper:new yst(n)}}case"vertical-perspective":return{projection:new Elt,transform:new Flt(i),cameraHelper:new Ilt};default:return uu(`Unknown projection name: ${e}. Falling back to mercator projection.`),{projection:new _oe,transform:new vO(i),cameraHelper:new mO}}}function OSr(e,t){for(let[r,i]of Object.entries(_O)){let n=e.getUniformBlockIndex(t,r);n!==e.INVALID_INDEX&&e.uniformBlockBinding(t,n,i)}}function joe(e){let t={},r=0;for(let{name:i,type:n}of e){let[a,o]=NSr[n];r=Math.ceil(r/o)*o,t[i]=r,r+=a}return{offsets:t,contentWords:r,sizeWords:Math.ceil(r/4)*4}}function Blt(e){return new Woe(e,_O.ProjectionUBO,Rlt)}function gst(e,t){let r=e.pending;r.set(t.mainMatrix,nT.u_projection_matrix),r.set(t.fallbackMatrix,nT.u_projection_fallback_matrix),r.set(t.tileMercatorCoords,nT.u_projection_tile_mercator_coords),r.set(t.clippingPlane,nT.u_projection_clipping_plane),r[nT.u_projection_transition]=t.projectionTransition,e.pendingWords[nT.u_projection_clip_antimeridian]=+!!t.clipAntimeridian,e.upload()}function VSr(e,t){var a;if(!t){e.projectionUniformBuffer.bind();return}let r=t.uniformBufferKey;if(r===void 0){gst(e.projectionUniformBuffer,t);return}let i=e.keyedProjectionUniformBuffers.get(r);if(i){i.bind();return}let n=(a=e.freeProjectionUniformBuffers.pop())!=null?a:Blt(e);e.keyedProjectionUniformBuffers.set(r,n),gst(n,t)}function USr(e){e.freeProjectionUniformBuffers.push(...e.keyedProjectionUniformBuffers.values()),e.keyedProjectionUniformBuffers.clear()}function GSr(e){e.projectionUniformBuffer.destroy();for(let t of e.keyedProjectionUniformBuffers.values())t.destroy();for(let t of e.freeProjectionUniformBuffers)t.destroy()}function HSr(e){return new Woe(e,_O.TerrainUBO,qlt)}function jSr(e,t){let r=e.pending;r.set(t.u_terrain_matrix,Qq.u_terrain_matrix),r.set(t.u_terrain_unpack,Qq.u_terrain_unpack),r[Qq.u_terrain_dim]=t.u_terrain_dim,r[Qq.u_terrain_exaggeration]=t.u_terrain_exaggeration,e.upload()}function eoe(e){let t=[];for(let r of e){if(r===null)continue;let i=r.split(" ");t.push(i.pop())}return t}function WSr(e,t){let r=new Set([e.INT,e.INT_VEC2,e.INT_VEC3,e.INT_VEC4,e.UNSIGNED_INT,e.UNSIGNED_INT_VEC2,e.UNSIGNED_INT_VEC3,e.UNSIGNED_INT_VEC4]),i=new Set,n=e.getProgramParameter(t,e.ACTIVE_ATTRIBUTES);for(let a=0;a>16,s>>16],u_pixel_coord_lower:[o&65535,s&65535]}}function YSr(e,t,r,i){let n=r.patternAtlas.getPattern(e.from.toString()),a=r.patternAtlas.getPattern(e.to.toString()),{width:o,height:s}=r.patternAtlas.getPixelSize(),l=2**i.tileID.overscaledZ,u=i.tileSize*2**r.transform.tileZoom/l,f=u*(i.tileID.canonical.x+i.tileID.wrap*l),c=u*i.tileID.canonical.y;return{u_image:0,u_pattern_tl_a:n.tl,u_pattern_br_a:n.br,u_pattern_tl_b:a.tl,u_pattern_br_b:a.br,u_texsize:[o,s],u_mix:t.t,u_pattern_size_a:n.displaySize,u_pattern_size_b:a.displaySize,u_scale_a:t.fromScale,u_scale_b:t.toScale,u_tile_units_to_pixels:1/Ud(i,1,r.transform.tileZoom),u_pixel_coord_upper:[f>>16,c>>16],u_pixel_coord_lower:[f&65535,c&65535]}}function pEr(e,t){let r=2**t.canonical.z,i=t.canonical.y;return[new Uu(0,i/r).toLngLat().lat,new Uu(0,(i+1)/r).toLngLat().lat]}function $oe(e,t){return 1/Ud(e,1,t.tileZoom)}function Hlt(e,t,r){return ig(e.transform,t,r.paint.get("line-translate"),r.paint.get("line-translate-anchor"))}function Tkr(e){return new Woe(e,_O.FrameUBO,$lt)}function Mkr(e,t){let r=e.pending,{transform:i}=t,n=t.context.gl;r[Mp.u_units_to_pixels]=1/i.pixelsToGLUnits[0],r[Mp.u_units_to_pixels+1]=1/i.pixelsToGLUnits[1],r[Mp.u_world_size]=n.drawingBufferWidth,r[Mp.u_world_size+1]=n.drawingBufferHeight,r[Mp.u_camera_to_center_distance]=i.cameraToCenterDistance,r[Mp.u_symbol_fade_change]=t.options.fadeDuration?t.symbolFadeChange:1,r[Mp.u_aspect_ratio]=i.width/i.height,r[Mp.u_device_pixel_ratio]=t.pixelRatio,r[Mp.u_viewport_size]=i.width,r[Mp.u_viewport_size+1]=i.height,r[Mp.u_pixel_extrude_scale]=1/i.width,r[Mp.u_pixel_extrude_scale+1]=1/i.height,r[Mp.u_pitch]=i.pitch/360*2*Math.PI,e.upload()}function Ekr(e,t,r){var n;let i=(n=t==null?void 0:t.transitionState)!=null?n:0;return{currentPass:"offscreen",currentLayer:0,opaquePassCutoff:1/0,depthRangeFor3D:[0,1],isRenderingToTexture:!1,transform:e,terrain:r,projectionTransition:i,isRenderingGlobe:i>0}}function R0(e,t,r={}){var n;let i=e.transform.getProjectionData({overscaledTileID:t,aligned:r.aligned,applyGlobeMatrix:!e.isRenderingToTexture,applyTerrainMatrix:(n=r.applyTerrainMatrix)!=null?n:!0});return e.isRenderingToTexture||(i.uniformBufferKey=r.aligned?`${t.key}/aligned`:t.key),i}function wd(e,t){var r,i;return e.isRenderingToTexture?null:(i=(r=e.terrain)==null?void 0:r.getTerrainData(t))!=null?i:null}function wst(e,t,r,i,n,a){let o=e.context,s=o.gl,l=e.useProgram("collisionBox"),u=[],f=0,c=0;for(let m of i){let w=t.getTile(m).getBucket(r);if(!w)continue;let _=n?w.textCollisionBox:w.iconCollisionBox,b=w.collisionCircleArray;b.length>0&&(u.push({circleArray:b,circleOffset:c,coord:m}),f+=b.length/4,c=f),_&&l.draw(o,s.LINES,mu.disabled,Zu.disabled,e.colorModeForRenderPass(),Hu.disabled,null,wd(a,m),R0(a,m),r.id,_.layoutVertexBuffer,_.indexBuffer,_.segments,null,e.transform.zoom,null,null,_.collisionVertexBuffer)}if(!n||!u.length)return;let h=e.useProgram("collisionCircle"),d=new Fnt;d.resize(f*4),d._trim();let p=0;for(let m of u)for(let w=0;wf.getElevation(p,A,g):void 0;zkr(y,c,h,l,u,b,x,w,M,ig(u,v,o,s),p.toUnwrapped(),T,r.layout.get("symbol-height-anchor")==="ground")}}}function Pkr(e,t,r,i,n,a){let o=t.tileAnchorPoint.add(new Jr(t.translation[0],t.translation[1]));if(t.pitchWithMap){let s=i.mult(a);r||(s=s.rotate(-n));let l=o.add(s);return Voe(l.x,l.y,t.pitchedLabelPlaneMatrix,S3(t,l.x,l.y)).point}if(r){let s=E3(t.tileAnchorPoint.x+1,t.tileAnchorPoint.y,t).point.sub(e),l=Math.atan(s.y/s.x)+(s.x<0?Math.PI:0);return e.add(i.rotate(l))}return e.add(i)}function zkr(e,t,r,i,n,a,o,s,l,u,f,c,h){let d=e.text.placedSymbolArray,p=e.text.dynamicLayoutVertexArray,v=e.icon.dynamicLayoutVertexArray,y={};p.clear();for(let m=0;m=0&&(y[w.associatedIconIndex]={shiftedAnchor:I,angle:L})}}if(l){v.clear();let m=e.icon.placedSymbolArray;for(let w=0;we.style.map.terrain.getElevation(k,V,ue):void 0;OMr(F,e,n,j,ne,m,u,r.layout.get("text-rotation-alignment")==="map",k.toUnwrapped(),v.width,v.height,ie,ye)}let le=n&&T||me,te=m?j:e.transform.clipSpaceToPixelsMatrix,Ee=w||le?Ckr:te,we=L&&r.paint.get(n?"text-halo-width":"icon-halo-width").constantOr(1)!==0,oe;oe=L?F.iconsInText?FEr(z.kind,W,_,m,w,le,e,Ee,$,ie,Z,H,g,ze,ke):Wlt(z.kind,W,_,m,w,le,e,Ee,$,ie,n,Z,we,g,ze,ke):jlt(z.kind,W,_,m,w,le,e,Ee,$,ie,n,Z,g,ze,ke);let Y={program:O,buffers:P,uniformValues:oe,projectionData:re,atlasTexture:q,atlasTextureIcon:N,atlasInterpolation:Q,atlasInterpolationIcon:U,isSDF:L,hasHalo:we};if(b&&F.canOverlap){M=!0;let ne=P.segments.get();for(let ye of ne)A.push({segments:new nc([ye]),sortKey:ye.sortKey,state:Y,terrainData:X})}else A.push({segments:P.segments,sortKey:0,state:Y,terrainData:X})}M&&A.sort((k,D)=>k.sortKey-D.sortKey);let E=(C=r.paint.get(n?"text-halo-width":"icon-halo-width").constantOr(null))!=null?C:1/0,S=r.layout.get("text-letter-spacing").constantOr(0)*24<0||E>1;for(let k of A){let D=k.state;d.activeTexture.set(p.TEXTURE0),D.atlasTexture.bind(D.atlasInterpolation,p.CLAMP_TO_EDGE),D.atlasTextureIcon&&(d.activeTexture.set(p.TEXTURE1),D.atlasTextureIcon&&D.atlasTextureIcon.bind(D.atlasInterpolationIcon,p.CLAMP_TO_EDGE));let F=D.isSDF&&D.hasHalo;if(F){let P=D.uniformValues;P.u_is_halo=1,S&&(P.u_is_plain=0,Tst(D.buffers,k.segments,r,e,D.program,x,f,c,P,D.projectionData,k.terrainData),P.u_is_halo=0,P.u_is_plain=1)}Tst(D.buffers,k.segments,r,e,D.program,x,f,c,D.uniformValues,D.projectionData,k.terrainData),F&&!S&&(D.uniformValues.u_is_halo=0)}}function Tst(e,t,r,i,n,a,o,s,l,u,f){let c=i.context,h=c.gl;n.draw(c,h.TRIANGLES,a,o,s,Hu.backCCW,l,f,u,r.id,e.layoutVertexBuffer,e.indexBuffer,t,r.paint,i.transform.zoom,e.programConfigurations.get(r.id),e.dynamicLayoutVertexBuffer,e.opacityVertexBuffer)}function Rkr(e,t,r,i,n){if(n.currentPass!=="translucent")return;let a=r.paint.get("circle-opacity"),o=r.paint.get("circle-stroke-width"),s=r.paint.get("circle-stroke-opacity"),l=!r.layout.get("circle-sort-key").isConstant();if(a.constantOr(1)===0&&(o.constantOr(1)===0||s.constantOr(1)===0))return;let u=e.context,f=u.gl,c=e.transform,h=e.getDepthModeForSublayer(0,mu.ReadOnly),d=Zu.disabled,p=e.colorModeForRenderPass(),v=[],y=c.getCircleRadiusCorrection();for(let m of i){let w=t.getTile(m),_=w.getBucket(r);if(!_)continue;let b=r.paint.get("circle-translate"),M=r.paint.get("circle-translate-anchor"),x=ig(c,w,b,M),T=_.programConfigurations.get(r.id),A=e.useProgram("circle",T),g=_.layoutVertexBuffer,E=_.indexBuffer,S=wd(n,m),C={programConfiguration:T,program:A,layoutVertexBuffer:g,indexBuffer:E,uniformValues:oEr(e,w,r,x,y),terrainData:S,projectionData:R0(n,m)};if(l){let k=_.segments.get();for(let D of k)v.push({segments:new nc([D]),sortKey:D.sortKey,state:C})}else v.push({segments:_.segments,sortKey:0,state:C})}l&&v.sort((m,w)=>m.sortKey-w.sortKey);for(let m of v){let{programConfiguration:w,program:_,layoutVertexBuffer:b,indexBuffer:M,uniformValues:x,terrainData:T,projectionData:A}=m.state,g=m.segments;_.draw(u,f.TRIANGLES,h,d,p,Hu.backCCW,x,T,A,r.id,b,M,g,r.paint,e.transform.zoom,w)}}function Bkr(e,t,r,i,n){if(r.paint.get("heatmap-opacity")===0)return;let a=e.context;if(e.style.map.terrain){for(let o of i){let s=t.getTile(o);t.hasRenderableParent(o)||(n.currentPass==="offscreen"?Nkr(e,s,r,o,n):n.currentPass==="translucent"&&Vkr(e,r,o,n))}a.viewport.set([0,0,e.width,e.height])}else n.currentPass==="offscreen"?qkr(e,t,r,i,n):n.currentPass==="translucent"&&Okr(e,r)}function qkr(e,t,r,i,n){let a=e.context,o=a.gl,s=e.transform,l=Zu.disabled,u=new Nc([o.ONE,o.ONE],Ol.transparent,[!0,!0,!0,!0]);Ukr(a,e,r),a.clear({color:Ol.transparent});for(let f of i){if(t.hasRenderableParent(f))continue;let c=t.getTile(f),h=c.getBucket(r);if(!h)continue;let d=h.programConfigurations.get(r.id),p=e.useProgram("heatmap",d),v=R0(n,f,{applyTerrainMatrix:!1}),y=s.getCircleRadiusCorrection();p.draw(a,o.TRIANGLES,mu.disabled,l,u,Hu.backCCW,Ult(c,s.zoom,r.paint.get("heatmap-intensity"),y),null,v,r.id,h.layoutVertexBuffer,h.indexBuffer,h.segments,r.paint,s.zoom,d)}a.viewport.set([0,0,e.width,e.height])}function Okr(e,t){let r=e.context,i=r.gl;r.setColorMode(e.colorModeForRenderPass());let n=t.heatmapFbos.get(EC);n&&(r.activeTexture.set(i.TEXTURE0),i.bindTexture(i.TEXTURE_2D,n.colorAttachment.get()),r.activeTexture.set(i.TEXTURE1),Xlt(r,t).bind(i.LINEAR,i.CLAMP_TO_EDGE),e.useProgram("heatmapTexture").draw(r,i.TRIANGLES,mu.disabled,Zu.disabled,e.colorModeForRenderPass(),Hu.disabled,Glt(e,t,0,1),null,null,t.id,e.viewportBuffer,e.quadTriangleIndexBuffer,e.viewportSegments,t.paint,e.transform.zoom))}function Nkr(e,t,r,i,n){let a=e.context,o=a.gl,s=Zu.disabled,l=new Nc([o.ONE,o.ONE],Ol.transparent,[!0,!0,!0,!0]),u=t.getBucket(r);if(!u)return;let f=i.key,c=r.heatmapFbos.get(f);c||(c=Ylt(a,t.tileSize,t.tileSize),r.heatmapFbos.set(f,c)),a.bindFramebuffer.set(c.framebuffer),a.viewport.set([0,0,t.tileSize,t.tileSize]),a.clear({color:Ol.transparent});let h=u.programConfigurations.get(r.id),d=e.useProgram("heatmap",h,!n.isRenderingGlobe),p=R0(n,t.tileID),v=wd(n,i);d.draw(a,o.TRIANGLES,mu.disabled,s,l,Hu.disabled,Ult(t,e.transform.zoom,r.paint.get("heatmap-intensity"),1),v,p,r.id,u.layoutVertexBuffer,u.indexBuffer,u.segments,r.paint,e.transform.zoom,h)}function Vkr(e,t,r,i){let n=e.context,a=n.gl,o=e.transform;n.setColorMode(e.colorModeForRenderPass());let s=Xlt(n,t),l=r.key,u=t.heatmapFbos.get(l);if(!u)return;n.activeTexture.set(a.TEXTURE0),a.bindTexture(a.TEXTURE_2D,u.colorAttachment.get()),n.activeTexture.set(a.TEXTURE1),s.bind(a.LINEAR,a.CLAMP_TO_EDGE);let f=R0(i,r,{applyTerrainMatrix:i.isRenderingGlobe});e.useProgram("heatmapTexture").draw(n,a.TRIANGLES,mu.disabled,Zu.disabled,e.colorModeForRenderPass(),Hu.disabled,Glt(e,t,0,1),null,f,t.id,e.rasterBoundsBuffer,e.quadTriangleIndexBuffer,e.rasterBoundsSegments,t.paint,o.zoom),u.destroy(),t.heatmapFbos.delete(l)}function Ukr(e,t,r){let i=e.gl;e.activeTexture.set(i.TEXTURE1),e.viewport.set([0,0,t.width/4,t.height/4]);let n=r.heatmapFbos.get(EC);n?(i.bindTexture(i.TEXTURE_2D,n.colorAttachment.get()),e.bindFramebuffer.set(n.framebuffer)):(n=Ylt(e,t.width/4,t.height/4),r.heatmapFbos.set(EC,n))}function Ylt(e,t,r){let i=e.gl,n=i.createTexture();i.bindTexture(i.TEXTURE_2D,n),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_WRAP_S,i.CLAMP_TO_EDGE),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_WRAP_T,i.CLAMP_TO_EDGE),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_MIN_FILTER,i.LINEAR),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_MAG_FILTER,i.LINEAR),i.texStorage2D(i.TEXTURE_2D,1,i.RGBA16F,t,r);let a=e.createFramebuffer(t,r,!1,!1);return a.colorAttachment.set(n),a}function Xlt(e,t){return t.colorRampTexture||(t.colorRampTexture=new ph(e,t.colorRamp,e.gl.RGBA)),t.colorRampTexture}function Zlt(e,t,r){let i=e.context,n=i.bindFramebuffer.get(),a=i.viewport.get(),[,,o,s]=a;return Gkr(e,o,s),i.viewport.set([0,0,o,s]),i.clear({color:Ol.transparent,depth:1,stencil:0}),e.currentStencilSource=void 0,e.renderTileClippingMasks(t,r),{compositeTarget:n,compositeViewport:a}}function Gkr(e,t,r){let i=e.context.gl;if(!e.layerOpacityFbo){let a=e.context.createFramebuffer(t,r,!0,!0),o=i.createTexture();i.bindTexture(i.TEXTURE_2D,o),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_WRAP_S,i.CLAMP_TO_EDGE),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_WRAP_T,i.CLAMP_TO_EDGE),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_MIN_FILTER,i.LINEAR),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_MAG_FILTER,i.LINEAR),i.texImage2D(i.TEXTURE_2D,0,i.RGBA,t,r,0,i.RGBA,i.UNSIGNED_BYTE,null),a.colorAttachment.set(o),a.depthAttachment.set(e.context.createRenderbuffer(i.DEPTH_STENCIL,t,r)),e.layerOpacityFbo=a,e.context.bindFramebuffer.set(e.layerOpacityFbo.framebuffer);return}if(e.layerOpacityFbo.width===t&&e.layerOpacityFbo.height===r){e.context.bindFramebuffer.set(e.layerOpacityFbo.framebuffer);return}let n=e.layerOpacityFbo;i.bindTexture(i.TEXTURE_2D,n.colorAttachment.get()),i.texImage2D(i.TEXTURE_2D,0,i.RGBA,t,r,0,i.RGBA,i.UNSIGNED_BYTE,null),e.context.bindRenderbuffer.set(n.depthAttachment.get()),i.renderbufferStorage(i.RENDERBUFFER,i.DEPTH_STENCIL,t,r),e.context.bindRenderbuffer.set(null),n.width=t,n.height=r,e.context.bindFramebuffer.set(n.framebuffer)}function Klt(e,t,r,i){let n=e.context,a=n.gl;n.bindFramebuffer.set(r.compositeTarget),n.viewport.set(r.compositeViewport),n.activeTexture.set(a.TEXTURE0),a.bindTexture(a.TEXTURE_2D,e.layerOpacityFbo.colorAttachment.get()),e.useProgram("layerOpacity").draw(n,a.TRIANGLES,mu.disabled,Zu.disabled,e.colorModeForRenderPass(),Hu.disabled,EEr(t,0),null,null,i.id,e.viewportBuffer,e.quadTriangleIndexBuffer,e.viewportSegments,i.paint,e.transform.zoom),e.currentStencilSource=void 0}function Jlt(e,t,r,i,n,a,o,s){let l=256;if(n.stepInterpolant){let u=t.getSource().maxzoom,f=o.canonical.z===u?Math.ceil(1<e.options.anisotropicFilterPitch&&p.texParameterf(p.TEXTURE_2D,d.extTextureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT,d.extTextureFilterAnisotropicMax);let D=wd(f,T),F=R0(f,T,{aligned:w}),P=iMr(C,S,k.fadeMix,r,s,l),I=c!=null?c:y.getMeshFromTileID(d,T.canonical,a,o,"raster"),L=n?n[T.overscaledZ]:Zu.disabled;v.draw(d,p.TRIANGLES,A,L,m,u?Hu.frontCCW:Hu.backCCW,P,D,F,r.id,I.vertexBuffer,I.indexBuffer,I.segments)}}function tCr(e,t,r,i){let n={parentTile:null,parentScaleBy:1,parentTopLeft:[0,0],fadeValues:{tileOpacity:1,parentTileOpacity:1,fadeMix:{opacity:1,mix:0}}};if(r===0||i)return n;if(e.fadingParentID){let a=t.getLoadedTile(e.fadingParentID);if(!a)return n;let o=2**(a.tileID.overscaledZ-e.tileID.overscaledZ);return{parentTile:a,parentScaleBy:o,parentTopLeft:[e.tileID.canonical.x*o%1,e.tileID.canonical.y*o%1],fadeValues:rCr(e,a,r)}}return e.selfFading?{parentTile:null,parentScaleBy:1,parentTopLeft:[0,0],fadeValues:iCr(e,r)}:n}function rCr(e,t,r){let i=Ku(),n=(i-e.timeAdded)/r,a=(i-t.timeAdded)/r,o=e.fadingDirection===1,s=Pl(n,0,1),l=Pl(1-a,0,1),u=o?s:l;return{tileOpacity:u,parentTileOpacity:o?l:s,fadeMix:{opacity:1,mix:1-u}}}function iCr(e,t){let r=(Ku()-e.timeAdded)/t,i=Pl(r,0,1);return{tileOpacity:i,fadeMix:{opacity:i,mix:0}}}function nCr(e,t,r,i,n){let a=r.paint.get("background-color"),o=r.paint.get("background-opacity");if(o===0)return;let s=e.context,l=s.gl,u=e.style.projection,f=e.transform,c=f.tileSize,h=r.paint.get("background-pattern");if(e.isPatternMissing(h))return;let d=!h&&a.a===1&&o===1&&e.opaquePassEnabledForLayer()?"opaque":"translucent";if(n.currentPass!==d)return;let p=Zu.disabled,v=e.getDepthModeForSublayer(0,d==="opaque"?mu.ReadWrite:mu.ReadOnly),y=e.colorModeForRenderPass(),m=e.useProgram(h?"backgroundPattern":"background"),w=i||fT(f,{tileSize:c,terrain:e.style.map.terrain});h&&(s.activeTexture.set(l.TEXTURE0),e.patternAtlas.bind(e.context));let _=r.getCrossfadeParameters();for(let b of w){let M=R0(n,b),x=h?IEr(o,e,h,{tileID:b,tileSize:c},_):zEr(o,a),T=wd(n,b),A=u.getMeshFromTileID(s,b.canonical,!1,!0,"raster");m.draw(s,l.TRIANGLES,v,p,y,Hu.backCCW,x,T,M,r.id,A.vertexBuffer,A.indexBuffer,A.segments)}}function fCr(e){let t=e.transform.padding;Est(e,e.transform.height-(t.top||0),3,aCr),Est(e,t.bottom||0,3,oCr),kst(e,t.left||0,3,sCr),kst(e,e.transform.width-(t.right||0),3,lCr);let r=e.transform.centerPoint;cCr(e,r.x,e.transform.height-r.y,uCr)}function cCr(e,t,r,i){gO(e,t-1,r-10,2,20,i),gO(e,t-10,r-1,20,2,i)}function Est(e,t,r,i){gO(e,0,t+r/2,e.transform.width,r,i)}function kst(e,t,r,i){gO(e,t-r/2,0,r,e.transform.height,i)}function gO(e,t,r,i,n,a){let o=e.context,s=o.gl;s.enable(s.SCISSOR_TEST),s.scissor(t*e.pixelRatio,r*e.pixelRatio,i*e.pixelRatio,n*e.pixelRatio),o.clear({color:a}),s.disable(s.SCISSOR_TEST)}function hCr(e,t,r,i){for(let n of r)dCr(e,t,n,i)}function dCr(e,t,r,i){var w;let n=e.context,a=n.gl,o=e.useProgram("debug"),s=mu.disabled,l=Zu.disabled,u=e.colorModeForRenderPass(),f="$debug",c=wd(i,r);n.activeTexture.set(a.TEXTURE0);let h=((w=t.getTileByID(r.key).latestRawTileData)==null?void 0:w.byteLength)||0,d=Math.floor(h/1024),p=t.getTile(r).tileSize,v=512/Math.min(p,512)*(r.overscaledZ/e.transform.zoom)*.5,y=r.canonical.toString();r.overscaledZ!==r.canonical.z&&(y+=` => ${r.overscaledZ}`),pCr(e,`${y} ${d}kB`);let m=R0(i,r);o.draw(n,a.TRIANGLES,s,l,Nc.alphaBlended,Hu.disabled,xst(Ol.transparent,v),null,m,f,e.debugBuffer,e.quadTriangleIndexBuffer,e.debugSegments),o.draw(n,a.LINE_STRIP,s,l,u,Hu.disabled,xst(Ol.red),c,m,f,e.debugBuffer,e.tileBorderIndexBuffer,e.debugSegments)}function pCr(e,t){e.initDebugOverlayCanvas();let r=e.debugOverlayCanvas,i=e.context.gl,n=e.debugOverlayCanvas.getContext("2d");n.clearRect(0,0,r.width,r.height),n.shadowColor="white",n.shadowBlur=2,n.lineWidth=1.5,n.strokeStyle="white",n.textBaseline="top",n.font="bold 36px Open Sans, sans-serif",n.fillText(t,5,5),n.strokeText(t,5,5),e.debugOverlayTexture.update(r),e.debugOverlayTexture.bind(i.LINEAR,i.CLAMP_TO_EDGE)}function vCr(e,t){let r=null,i=Object.values(e._layers).flatMap(s=>s.source&&!s.isHidden(t)?[e.tileManagers[s.source]]:[]),n=i.filter(s=>s.getSource().type==="vector"),a=i.filter(s=>s.getSource().type!=="vector"),o=s=>{(!r||r.getSource().maxzoom{var d;return l.getProjectionData({overscaledTileID:new d0(h.tileID.canonical.z,(d=h.tileID.wrap)!=null?d:0,h.tileID.canonical.z,h.tileID.canonical.x,h.tileID.canonical.y),aligned:h.aligned,applyGlobeMatrix:h.applyGlobeMatrix,applyTerrainMatrix:h.applyTerrainMatrix})}},c=o.renderingMode?o.renderingMode:"2d";if(i.currentPass==="offscreen"){let h=o.prerender;h&&(e.setCustomLayerDefaults(),a.setColorMode(e.colorModeForRenderPass()),h.call(o,a.gl,f),a.setDirty(),e.setBaseState())}else if(i.currentPass==="translucent"){e.setCustomLayerDefaults(),a.setColorMode(e.colorModeForRenderPass()),a.setStencilMode(Zu.disabled);let h=c==="3d"?e.getDepthModeFor3D():e.getDepthModeForSublayer(0,vu.ReadOnly);a.setDepthMode(h),o.render(a.gl,f),a.setDirty(),e.setBaseState(),a.bindFramebuffer.set(null)}}function aCr(e,t){let r=e.context,i=r.gl,n=e.transform,a=Bc.unblended,o=new vu(i.LEQUAL,vu.ReadWrite,[0,1]),s=t.tileManager.getRenderableTiles(),l=e.useProgram("terrainDepth");r.bindFramebuffer.set(t.getFramebuffer().framebuffer),r.viewport.set([0,0,e.width/devicePixelRatio,e.height/devicePixelRatio]),r.clear({color:Ol.white,depth:1});for(let u of s){let f=t.getTerrainMesh(u.tileID),c=t.getTerrainData(u.tileID),h=n.getProjectionData({overscaledTileID:u.tileID,applyTerrainMatrix:!1,applyGlobeMatrix:!0}),d=SSr(t.getSkirtLength(n.zoom));l.draw(r,i.TRIANGLES,o,Zu.disabled,a,Hu.backCCW,d,c,h,"terrain",f.vertexBuffer,f.indexBuffer,f.segments)}r.bindFramebuffer.set(null),r.viewport.set([0,0,e.width,e.height])}function oCr(e,t,r,i){let{isRenderingGlobe:n}=i,a=e.context,o=a.gl,s=e.transform,l=e.colorModeForRenderPass(),u=e.getDepthModeFor3D(),f=e.useProgram("terrain");a.bindFramebuffer.set(null),a.viewport.set([0,0,e.width,e.height]);for(let c of r){let h=t.getTerrainMesh(c.tileID),d=e.renderToTexture.getTexture(c),p=t.getTerrainData(c.tileID);a.activeTexture.set(o.TEXTURE0),d.bind(o.LINEAR,o.CLAMP_TO_EDGE,o.LINEAR_MIPMAP_LINEAR);let v=t.getSkirtLength(s.zoom),y=s.calculateFogMatrix(c.tileID.toUnwrapped()),m=MSr(v,y,e.style.sky,s.pitch,n),w=I0(i,c.tileID,{applyTerrainMatrix:!1});f.draw(a,o.TRIANGLES,u,Zu.disabled,l,Hu.backCCW,m,p,w,"terrain",h.vertexBuffer,h.indexBuffer,h.segments)}}function $lt(e,t){if(!t.mesh){let r=new rg;r.emplaceBack(-1,-1),r.emplaceBack(1,-1),r.emplaceBack(1,1),r.emplaceBack(-1,1);let i=new D1;i.emplaceBack(0,1,2),i.emplaceBack(0,2,3),t.mesh=new JC(e.createVertexBuffer(r,_3.members),e.createIndexBuffer(i),tc.simpleSegment(0,0,r.length,i.length))}return t.mesh}function sCr(e,t){let r=e.context,i=r.gl,n=EEr(t,e.transform,e.pixelRatio),a=new vu(i.LEQUAL,vu.ReadWrite,[0,1]),o=Zu.disabled,s=e.colorModeForRenderPass(),l=e.useProgram("sky"),u=$lt(r,t);l.draw(r,i.TRIANGLES,a,o,s,Hu.disabled,n,null,void 0,"sky",u.vertexBuffer,u.indexBuffer,u.segments)}function lCr(e,t){let r=e.getCartesianPosition();hrt(r,r);let i=Mv(new Float64Array(16));return e.properties.get("anchor")==="map"&&(Jy(i,i,t.rollInRadians),u3(i,i,-t.pitchInRadians),Jy(i,i,t.bearingInRadians),u3(i,i,t.center.lat*Math.PI/180),vne(i,i,-t.center.lng*Math.PI/180)),drt(r,r,i),r}function uCr(e,t,r){let i=e.context,n=i.gl,a=e.useProgram("atmosphere"),o=new vu(n.LEQUAL,vu.ReadOnly,[0,1]),s=e.transform,l=lCr(r,e.transform),u=s.getProjectionData({overscaledTileID:null,applyGlobeMatrix:!0,applyTerrainMatrix:!0}),f=sT(s.worldSize,s.center.lat),c=_lt(s),h=wlt(Sv(c)-f,f),d=t.properties.get("atmosphere-blend")*u.projectionTransition*h;if(d===0)return;let p=MEr(l,d,c,f,s.inverseProjectionMatrix),v=$lt(i,t);a.draw(i,n.TRIANGLES,o,Zu.disabled,Bc.alphaBlended,Hu.disabled,p,null,null,"atmosphere",v.vertexBuffer,v.indexBuffer,v.segments)}function Uoe(e,t){let r=!1,i=null,n,a=()=>{i=null,r&&(r=(e(...n),i=setTimeout(a,t),!1))};return(...o)=>(r=!0,n=o,i||a(),i)}function HC(e,t){(!e.duration||e.duration({around:i,panDelta:i.sub(r)}),activateOnStart:!0,moveStateManager:new tD({checkCorrectEvent:r=>r.button===0&&!r.ctrlKey}),enable:e,assignEvents:yO})}function kCr({enable:e,clickTolerance:t,aroundCenter:r=!0,minPixelCenterThreshold:i=100,rotateSpeed:n=.8},a){return new eD({clickTolerance:t,move:(o,s)=>{let l=a();if(r&&Math.abs(l.y-o.y)>i)return{bearingDelta:Tne(new Zr(o.x,s.y),s,l)};let u=(s.x-o.x)*n;return r&&s.yo.button===0&&o.ctrlKey||o.button===2&&!o.ctrlKey}),enable:e,assignEvents:yO})}function CCr({enable:e,clickTolerance:t,pitchSpeed:r=-.5}){return new eD({clickTolerance:t,move:(i,n)=>({pitchDelta:(n.y-i.y)*r}),moveStateManager:new tD({checkCorrectEvent:i=>i.button===0&&i.ctrlKey||i.button===2}),enable:e,assignEvents:yO})}function DCr({enable:e,clickTolerance:t,rollDegreesPerPixelMoved:r=.3},i){return new eD({clickTolerance:t,move:(n,a)=>{let o=i(),s=(a.x-n.x)*r;return a.yn.button===2&&n.ctrlKey}),enable:e,assignEvents:yO})}function Kq(e,t,r){for(let i=0;iMath.abs(e.x)}function PCr(e){return e*(2-e)}function toe(e){var t;return((t=e.panDelta)==null?void 0:t.mag())||e.zoomDelta||e.bearingDelta||e.pitchDelta||e.rollDelta}function XCr(e=!1){return Ls(this,null,function*(){if(g3!==void 0&&!e)return g3;if(window.navigator.permissions===void 0)return g3=!!window.navigator.geolocation,g3;try{g3=(yield window.navigator.permissions.query({name:"geolocation"})).state!=="denied"}catch(t){g3=!!window.navigator.geolocation}return g3})}function fut(e,t,r,i=!1){if(i||!r.getCoveringTilesDetailsProvider().allowWorldCopies())return e==null?void 0:e.wrap();let n=new Js(e.lng,e.lat);if(e=new Js(e.lng,e.lat),t){let a=new Js(e.lng-360,e.lat),o=new Js(e.lng+360,e.lat),s=r.locationToScreenPoint(e).distSqr(t);r.locationToScreenPoint(a).distSqr(t)180;){let a=r.locationToScreenPoint(e);if(a.x>=0&&a.y>=0&&a.x<=r.width&&a.y<=r.height)break;e.lng>r.center.lng?e.lng-=360:e.lng+=360}return e.lng!==n.lng&&r.isPointOnMapSurface(r.locationToScreenPoint(e))?e:n}function cut(e,t,r){let i=e.classList;for(let n in Hoe)i.remove(`maplibregl-${r}-anchor-${n}`);i.add(`maplibregl-${r}-anchor-${t}`)}function kv(e,t,r=[]){let i=Cl.createNS("http://www.w3.org/2000/svg",e);for(let n in t)i.setAttributeNS(null,n,t[n]);for(let n of r)i.appendChild(n);return i}function ZCr(){return roe||(roe=kv("svg",{display:"block",height:"41px",width:"27px",viewBox:"0 0 27 41"},[kv("g",{"fill-rule":"nonzero"},[kv("g",{transform:"translate(3.0, 29.0)",fill:"#000000"},[["10.5","5.25002273"],["10.5","5.25002273"],["9.5","4.77275007"],["8.5","4.29549936"],["7.5","3.81822308"],["6.5","3.34094679"],["5.5","2.86367051"],["4.5","2.38636864"]].map(([e,t])=>kv("ellipse",{opacity:"0.04",cx:"10.5",cy:"5.80029008",rx:e,ry:t}))),kv("g",{fill:hut},[kv("path",{d:"M27,13.5 C27,19.074644 20.250001,27.000002 14.75,34.500002 C14.016665,35.500004 12.983335,35.500004 12.25,34.500002 C6.7499993,27.000002 0,19.222562 0,13.5 C0,6.0441559 6.0441559,0 13.5,0 C20.955844,0 27,6.0441559 27,13.5 Z"})]),kv("g",{opacity:"0.25",fill:"#000000"},[kv("path",{d:"M13.5,0 C6.0441559,0 0,6.0441559 0,13.5 C0,19.222562 6.7499993,27 12.25,34.5 C13,35.522727 14.016664,35.500004 14.75,34.5 C20.250001,27 27,19.074644 27,13.5 C27,6.0441559 20.955844,0 13.5,0 Z M13.5,1 C20.415404,1 26,6.584596 26,13.5 C26,15.898657 24.495584,19.181431 22.220703,22.738281 C19.945823,26.295132 16.705119,30.142167 13.943359,33.908203 C13.743445,34.180814 13.612715,34.322738 13.5,34.441406 C13.387285,34.322738 13.256555,34.180814 13.056641,33.908203 C10.284481,30.127985 7.4148684,26.314159 5.015625,22.773438 C2.6163816,19.232715 1,15.953538 1,13.5 C1,6.584596 6.584596,1 13.5,1 Z"})]),kv("g",{transform:"translate(6.0, 7.0)",fill:"#FFFFFF"}),kv("g",{transform:"translate(8.0, 8.0)"},[kv("circle",{fill:"#000000",opacity:"0.25",cx:"5.5",cy:"5.5",r:"5.4999962"}),kv("circle",{fill:"#FFFFFF",cx:"5.5",cy:"5.5",r:"5.4999962"})])])]),roe)}function KCr(e){return e.firstElementChild.children[1]}function kst(e,t,r){let i=(r==null?void 0:r.maxWidth)||100,{width:n,height:a}=e._camera.transform,o=a/2,s=n/2,l=e.unproject([s-i/2,o]),u=e.unproject([s+i/2,o]),f=Math.round(e.project(u).x-e.project(l).x),c=Math.min(i,f,n),h=l.distanceTo(u);if((r==null?void 0:r.unit)==="imperial"){let d=3.2808*h;d>5280?$C(t,c,d/5280,e._getUIString("ScaleControl.Miles")):$C(t,c,d,e._getUIString("ScaleControl.Feet"))}else(r==null?void 0:r.unit)==="nautical"?$C(t,c,h/1852,e._getUIString("ScaleControl.NauticalMiles")):h>=1e3?$C(t,c,h/1e3,e._getUIString("ScaleControl.Kilometers")):$C(t,c,h,e._getUIString("ScaleControl.Meters"))}function $C(e,t,r,i){let n=iDr(r),a=n/r;e.style.width=`${t*a}px`;let o=`${n}\xA0${i}`;e.textContent!==o&&(e.textContent=o)}function rDr(e){let t=10**Math.ceil(-Math.log(e)/Math.LN10);return Math.round(e*t)/t}function iDr(e){let t=10**(`${Math.floor(e)}`.length-1),r=e/t;return r=r>=10?10:r>=5?5:r>=3?3:r>=2?2:r>=1?1:rDr(r),t*r}function vut(e){if(!e)return vut(new Zr(0,0));if(typeof e=="number"){let t=Math.round(Math.abs(e)/Math.SQRT2);return{center:new Zr(0,0),top:new Zr(0,e),"top-left":new Zr(t,t),"top-right":new Zr(-t,t),bottom:new Zr(0,-e),"bottom-left":new Zr(t,-t),"bottom-right":new Zr(-t,-t),left:new Zr(e,0),right:new Zr(-e,0)}}if(e instanceof Zr||Array.isArray(e)){let t=Zr.convert(e);return{center:t,top:t,"top-left":t,"top-right":t,bottom:t,"bottom-left":t,"bottom-right":t,left:t,right:t}}return{center:Zr.convert(e.center||[0,0]),top:Zr.convert(e.top||[0,0]),"top-left":Zr.convert(e["top-left"]||[0,0]),"top-right":Zr.convert(e["top-right"]||[0,0]),bottom:Zr.convert(e.bottom||[0,0]),"bottom-left":Zr.convert(e["bottom-left"]||[0,0]),"bottom-right":Zr.convert(e["bottom-right"]||[0,0]),left:Zr.convert(e.left||[0,0]),right:Zr.convert(e.right||[0,0])}}function fDr(e){var t,r,i,n;return e?{top:(t=e.top)!=null?t:0,right:(r=e.right)!=null?r:0,bottom:(i=e.bottom)!=null?i:0,left:(n=e.left)!=null?n:0}:{top:0,right:0,bottom:0,left:0}}function hDr(e,t){return KC().setRTLTextPlugin(e,t)}function dDr(){return KC().getRTLTextPluginStatus()}function pDr(){return cDr}function vDr(){return pO.workerCount}function mDr(e){pO.workerCount=e}function yDr(){return Ud.MAX_PARALLEL_IMAGE_REQUESTS}function gDr(e){Ud.MAX_PARALLEL_IMAGE_REQUESTS=e}function xDr(){return Ud.WORKER_URL}function bDr(e){Ud.WORKER_URL=e}function _Dr(e){return Ls(this,null,function*(){yield Soe().broadcast("IS",e)})}var yut,Cst,Oq,qC,Rae,jd,dO,jTr,WTr,$Tr,YTr,OC,t,pf,Cl,L1,XTr,Uh,ol,ioe,Cv,Yf,Hd,YC,Fst,noe,Lst,Pst,eO,zst,a6r,o6r,aoe,s6r,l6r,c6r,ooe,Aoe,h6r,d6r,p6r,v6r,Eot,m6r,y6r,kot,g6r,x6r,b6r,Toe,pO,S6r,XC,qst,Vq,P1,Ust,Gst,Eoe,Hst,Wst,aT,H6r,j6r,JC,_3,Uq,lT,Zst,Kst,Jst,Q6r,Qst,eMr,tMr,soe,iMr,Oae,elt,nMr,koe,Coe,fMr,Rot,sg,uoe,bMr,Bot,TMr,CMr,LMr,Not,NC,Vot,PMr,zMr,IMr,RMr,BMr,qMr,OMr,VC,NMr,VMr,jot,bc,UMr,GC,GMr,HMr,jMr,ult,WMr,$Mr,YMr,XMr,ZMr,KMr,JMr,QMr,$ot,Gm,flt,clt,doe,poe,Ioe,eSr,tSr,rSr,Xot,Zot,iSr,Kot,uO,fO,Qot,nSr,Vae,xlt,est,Uae,mSr,Hae,ySr,nst,Alt,lst,Elt,ust,xSr,moe,bSr,_Sr,wSr,ASr,TSr,MSr,SSr,vO,kSr,qoe,klt,iT,Dlt,$q,ISr,BSr,qSr,Llt,OSr,NSr,VSr,USr,GSr,Plt,HSr,jSr,WSr,$Sr,YSr,XSr,cst,ZSr,KSr,zlt,Ilt,JSr,QSr,eEr,tEr,iEr,nEr,aEr,oEr,sEr,lEr,uEr,mO,fEr,cEr,hEr,dEr,pEr,vEr,mEr,yEr,gEr,Blt,qlt,xEr,bEr,_Er,wEr,AEr,TEr,MEr,SEr,EEr,Yq,kEr,CEr,hst,DEr,of,FEr,LEr,PEr,zEr,IEr,REr,BEr,qEr,OEr,NEr,VEr,UEr,GEr,HEr,jEr,WEr,$Er,YEr,XEr,ZEr,KEr,JEr,QEr,ekr,tkr,rkr,ikr,nkr,akr,okr,skr,Noe,lkr,ukr,fkr,ckr,Olt,Ap,Bc,pkr,vu,$ae,Zu,dst,Yae,Hu,Xq,ykr,Kae,Qae,$kr,Ykr,Xkr,Zkr,Kkr,fCr,w3,cCr,Ylt,Xlt,QC,hCr,dCr,pCr,vCr,mCr,yCr,gCr,xCr,Zlt,_Cr,goe,wCr,eD,ACr,tD,MCr,SCr,yO,FCr,Goe,_st,Klt,Jlt,Qlt,LCr,eut,Tst,tut,rut,zCr,ICr,iut,nut,aut,out,RCr,Jq,BCr,qCr,OCr,sut,lut,uut,NCr,Mst,VCr,nT,UCr,GCr,HCr,Sst,jCr,WCr,$Cr,YCr,g3,Hoe,Est,hut,roe,x3,dut,xoe,JCr,Qq,WC,b3,boe,put,QCr,eDr,tDr,_oe,nDr,aDr,oDr,sDr,lDr,woe,uDr,cDr,gut=ps(()=>{got();yut={};Cst="6.11.2";jd={frame(e,t,r,i){let n=i||window,a=n.requestAnimationFrame(s=>{o(),t(s)}),{unsubscribe:o}=jk(e.signal,"abort",()=>{o(),n.cancelAnimationFrame(a),r(new Y5(e.signal.reason))},!1)},frameAsync(e,t){return new Promise((r,i)=>{this.frame(e,r,i,t)})},getImageData(e,t=0){return this.getImageCanvasContext(e).getImageData(-t,-t,e.width+2*t,e.height+2*t)},getImageCanvasContext(e){let t;if(j7()&&!dne())t=new OffscreenCanvas(e.width,e.height).getContext("2d",{willReadFrequently:!0});else{let r=window.document.createElement("canvas");r.width=e.width,r.height=e.height,t=r.getContext("2d",{willReadFrequently:!0})}if(!t)throw Error("failed to create canvas 2d context");return t.drawImage(e,0,0,e.width,e.height),t},resolveURL(e){return Oq||(Oq=document.createElement("a")),Oq.href=e,Oq.href},get hardwareConcurrency(){return typeof navigator<"u"&&navigator.hardwareConcurrency||4},get prefersReducedMotion(){return Rae===void 0?matchMedia?(qC!=null||(qC=matchMedia("(prefers-reduced-motion: reduce)")),qC.matches):!1:Rae},set prefersReducedMotion(e){Rae=e}},dO=new class{constructor(){this._frozenAt=null}getCurrentTime(){return this._frozenAt===null?performance.now():this._frozenAt}setNow(e){this._frozenAt=e}restoreNow(){this._frozenAt=null}isFrozen(){return this._frozenAt!==null}};jTr=new Set("a.abbr.b.bdi.bdo.br.cite.code.del.div.em.i.img.ins.kbd.li.mark.ol.p.q.s.samp.small.span.strong.sub.sup.time.u.ul.var.wbr".split(".")),WTr=new Set(["alt","class","datetime","dir","height","href","hreflang","lang","referrerpolicy","rel","role","src","target","title","translate","type","width"]),$Tr=new Set(["href","src"]),YTr=new Set(["http:","https:","mailto:"]);Cl=(pf=class{static create(t,r,i){let n=window.document.createElement(t);return r!==void 0&&(n.className=r),i&&i.appendChild(n),n}static createNS(t,r){return window.document.createElementNS(t,r)}static disableDrag(){pf.docStyle&&pf.selectProp&&(pf.userSelect=pf.docStyle[pf.selectProp],pf.docStyle[pf.selectProp]="none")}static enableDrag(){pf.docStyle&&pf.selectProp&&(pf.docStyle[pf.selectProp]=pf.userSelect)}static suppressClickInternal(t){t.preventDefault(),t.stopPropagation(),window.removeEventListener("click",pf.suppressClickInternal,!0)}static suppressClick(){window.addEventListener("click",pf.suppressClickInternal,!0),window.setTimeout(()=>{window.removeEventListener("click",pf.suppressClickInternal,!0)},0)}static getScale(t){let r=t.getBoundingClientRect();return{x:r.width/t.offsetWidth||1,y:r.height/t.offsetHeight||1,boundingClientRect:r}}static getPoint(t,r,i){let n=r.boundingClientRect;return new Zr((i.clientX-n.left)/r.x-t.clientLeft,(i.clientY-n.top)/r.y-t.clientTop)}static mousePos(t,r){let i=pf.getScale(t);return pf.getPoint(t,i,r)}static touchPos(t,r){let i=[],n=pf.getScale(t);for(let a of r)i.push(pf.getPoint(t,n,a));return i}static sanitize(t){let r=new DOMParser().parseFromString(t,"text/html").body,{querySelectorAll:i,remove:n}=Bae();for(let o of Array.from(i.call(r,"*")))pf.isAllowedElement(o)?pf.removeDisallowedAttributes(o):n.call(o);let a=document.createDocumentFragment();return a.append(...r.childNodes),a}static isAllowedElement(t){let{namespaceURI:r,localName:i}=Bae();return r.call(t)==="http://www.w3.org/1999/xhtml"&&jTr.has(i.call(t))}static removeDisallowedAttributes(t){let{getAttributeNames:r,getAttribute:i,removeAttribute:n}=Bae();for(let a of r.call(t))pf.isAllowedAttribute(a,i.call(t,a))||n.call(t,a)}static isAllowedAttribute(t,r){if(!WTr.has(t)&&!t.startsWith("aria-"))return!1;if(!$Tr.has(t))return!0;try{return YTr.has(new URL(r,"https://maplibre.invalid/").protocol)}catch(i){return!1}}},pf.docStyle=typeof window<"u"&&((t=window.document)==null?void 0:t.documentElement.style),pf.selectProp=!pf.docStyle||"userSelect"in pf.docStyle?"userSelect":"webkitUserSelect",pf);(function(e){let t,r,i,n;e.resetRequestQueue=()=>{t=[],r=0,i=0,n={}},e.addThrottleControl=c=>{let h=i++;return n[h]=c,h},e.removeThrottleControl=c=>{delete n[c],u()};let a=()=>{for(let c of Object.keys(n))if(n[c]())return!0;return!1};function o(c,h,d,p,v=!0,y){return Ls(this,null,function*(){let m=yield c.transformRequest(h,d);return nq(p.signal),L1.getImage(m,p,v,y)})}e.transformAndGetImage=o,e.getImage=(c,h,d=!0,p)=>new Promise((v,y)=>{c.headers||(c.headers={}),c.headers.accept="image/webp,*/*",Hs(c,{type:"image"});let m={abortController:h,requestParameters:c,supportImageRefresh:d,imageBitmapOptions:p,state:"queued",onError:w=>{y(w)},onSuccess:w=>{v(w)}};t.push(m),u()});let s=(c,h)=>typeof createImageBitmap=="function"?krt(c,h):Crt(c),l=c=>Ls(null,null,function*(){c.state="running";let{requestParameters:h,supportImageRefresh:d,imageBitmapOptions:p,onError:v,onSuccess:y,abortController:m}=c,w=d===!1&&!p&&!n3(self)&&!Sne(h.url)&&(!h.headers||Object.keys(h.headers).reduce((b,M)=>b&&M==="accept",!0));r++;let _=w?f(h,m):vC(h,m);try{let b=yield _;delete c.abortController,c.state="completed",b.data instanceof HTMLImageElement||yx(b.data)?y(b):!b.data||b.data.byteLength===0?y({data:null,cacheControl:b.cacheControl,expires:b.expires}):y({data:yield s(b.data,p),cacheControl:b.cacheControl,expires:b.expires})}catch(b){delete c.abortController,v(u0(b))}finally{r--,u()}}),u=()=>{let c=a()?Ud.MAX_PARALLEL_IMAGE_REQUESTS_PER_FRAME:Ud.MAX_PARALLEL_IMAGE_REQUESTS;for(let h=r;h0;h++){let d=t.shift();if(d.abortController.signal.aborted){h--;continue}l(d)}},f=(c,h)=>new Promise((d,p)=>{let v=new Image,y=c.url,m=c.credentials;m&&m==="include"?v.crossOrigin="use-credentials":(m&&m==="same-origin"||!kne(y))&&(v.crossOrigin="anonymous"),h.signal.addEventListener("abort",()=>{v.src="",p(new Y5(h.signal.reason))}),v.fetchPriority="high",v.onload=()=>{v.onerror=v.onload=null,d({data:v})},v.onerror=()=>{v.onerror=v.onload=null,!h.signal.aborted&&p(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."))},v.src=y})})(L1||(L1={})),L1.resetRequestQueue();XTr=class{constructor(e){this._transformRequestFn=e!=null?e:null}transformRequest(e,t){return this._transformRequestFn&&this._transformRequestFn(e,t)||{url:e}}setTransformRequest(e){this._transformRequestFn=e}},Uh=class extends Gd{},ol=class extends Uh{},ioe=class extends Uh{constructor(e={}){super("style.load",e)}},Cv=class extends Uh{constructor(e,t={}){super(e,t),this.dataType="style"}},Yf=class extends Uh{constructor(e,t={}){super(e,t),this.dataType="source"}},Hd=class extends Uh{preventDefault(){this._defaultPrevented=!0}get defaultPrevented(){return this._defaultPrevented}constructor(e,t,r,i={}){r=r instanceof MouseEvent?r:new MouseEvent(e,r);let n=Cl.mousePos(t.getCanvas(),r),a=t.unproject(n);super(e,Hs({point:n,lngLat:a,originalEvent:r},i)),this._defaultPrevented=!1,this.target=t}},YC=class extends Uh{preventDefault(){this._defaultPrevented=!0}get defaultPrevented(){return this._defaultPrevented}constructor(e,t,r){let i=e==="touchend"?r.changedTouches:r.touches,n=Cl.touchPos(t.getCanvasContainer(),i),a=n.map(l=>t.unproject(l)),o=n.reduce((l,u,f,c)=>l.add(u.div(c.length)),new Zr(0,0)),s=t.unproject(o);super(e,{points:n,point:o,lngLats:a,lngLat:s,originalEvent:r}),this._defaultPrevented=!1}},Fst=class extends Uh{preventDefault(){this._defaultPrevented=!0}get defaultPrevented(){return this._defaultPrevented}constructor(e,t){super("wheel",{originalEvent:t}),this._defaultPrevented=!1}},noe=class extends Uh{},Lst=class extends Uh{constructor(e={}){super("terrain",e)}},Pst=class extends Uh{constructor(e={}){super("projectiontransition",e)}},eO=class extends Uh{},zst=class extends Uh{constructor(e={}){super("styleimagemissing",e)}};a6r=class extends ih{constructor(){super(),this.images={},this.updateVersion=0,this.loaded=!1,this.requestors=[],this.missingImageResolver=null,this._spriteImagesIds={},this._imagesIds=null,this._renderCallbacksDispatchedThisFrame={}}destroy(){for(let e of Object.keys(this.images))this.removeImage(e);this._spriteImagesIds={}}isLoaded(){return this.loaded}setLoaded(e){if(this.loaded!==e&&(this.loaded=e,e)){for(let{ids:t,promiseResolve:r}of this.requestors)r(this._getImagesForIds(t));this.requestors=[]}}getImage(e){let t=this.images[e];if(t&&!t.data&&t.spriteData){let r=t.spriteData;t.data=new qf({width:r.width,height:r.height},r.context.getImageData(r.x,r.y,r.width,r.height).data),t.spriteData=null}return t}addImage(e,t){if(this.images[e])throw Error(`Image id ${e} already exist, use updateImage instead`);this._validate(e,t)&&(this.images[e]=t,this._imagesIds=null,t.isWebGLImage&&this.updateImage(e,t,!1))}_validate(e,t){let r=!0,i=t.data||t.spriteData;return this._validateStretch(t.stretchX,i==null?void 0:i.width)||(this.fire(new rl(Error(`Image "${e}" has invalid "stretchX" value`))),r=!1),this._validateStretch(t.stretchY,i==null?void 0:i.height)||(this.fire(new rl(Error(`Image "${e}" has invalid "stretchY" value`))),r=!1),this._validateContent(t.content,t)||(this.fire(new rl(Error(`Image "${e}" has invalid "content" value`))),r=!1),r}_validateStretch(e,t){if(!e)return!0;let r=0;for(let i of e){if(i[0]=e[1]}updateImage(e,t,r=!0){var n;let i=this.images[e];if(r){let a=i.data||i.spriteData;if(a.width!==t.data.width||a.height!==t.data.height)throw Error(`size mismatch between old image (${a.width}x${a.height}) and new image (${t.data.width}x${t.data.height}).`)}t.version=((n=i.version)!=null?n:0)+1,this.images[e]=t,this.updateVersion++}removeImage(e){var r;let t=this.images[e];t&&(delete this.images[e],this._imagesIds=null,(r=t.userImage)!=null&&r.onRemove&&t.userImage.onRemove())}listImages(){var e;return(e=this._imagesIds)!=null||(this._imagesIds=Object.keys(this.images)),this._imagesIds}_getSpriteImageId(e,t){return e==="default"?t:`${e}:${t}`}setSpriteImages(e,t){var o;let r=(o=this._spriteImagesIds[e])!=null?o:[],i=[];for(let s in t){let l=this._getSpriteImageId(e,s);i.push(l),l in this.images?this.updateImage(l,t[s],!1):this.addImage(l,t[s])}let n=new Set(i),a=r.filter(s=>!n.has(s));for(let s of a)this.removeImage(s);return this._spriteImagesIds[e]=i,{loaded:i,removed:a}}removeSpriteImages(e){var r;let t=(r=this._spriteImagesIds[e])!=null?r:[];for(let i of t)this.removeImage(i);return delete this._spriteImagesIds[e],t}removeAllSpriteImages(){let e=Object.values(this._spriteImagesIds).flat();for(let t of e)this.removeImage(t);return this._spriteImagesIds={},e}setMissingImageResolver(e){this.missingImageResolver=e}getImages(e){return new Promise((t,r)=>{let i=!0;if(!this.isLoaded())for(let n of e)this.images[n]||(i=!1);this.isLoaded()||i?t(this._getImagesForIds(e)):this.requestors.push({ids:e,promiseResolve:t})})}_getImagesForIds(e){return Ls(this,null,function*(){var n;let t=new Set(e.filter(a=>!this.getImage(a))),r=this.missingImageResolver;r&&(yield Promise.allSettled(Array.from(t,a=>r(a))));let i={};for(let a of e){let o=this.getImage(a);o&&(t.delete(a),i[a]={data:o.data.clone(),pixelRatio:o.pixelRatio,sdf:o.sdf,version:o.version,stretchX:o.stretchX,stretchY:o.stretchY,content:o.content,textFitWidth:o.textFitWidth,textFitHeight:o.textFitHeight,hasRenderCallback:!!((n=o.userImage)!=null&&n.render),isWebGLImage:o.isWebGLImage})}for(let a of t)this.fire(new zst({id:a})),lu(`Image "${a}" could not be loaded. Please make sure you have added the image before it is needed with map.addImage(), resolved it with map.setMissingStyleImageResolver(), or included it in a "sprite" property in your style.`);return i})}beginFrame(){this._renderCallbacksDispatchedThisFrame={}}dispatchRenderCallbacks(e){for(let t of e){if(this._renderCallbacksDispatchedThisFrame[t])continue;this._renderCallbacksDispatchedThisFrame[t]=!0;let r=this.getImage(t);r||lu(`Image with ID: "${t}" was not found`),bat(r)&&this.updateImage(t,r)}}cloneImages(){let e={};for(let t in this.images){let r=this.images[t];e[t]=Ql(Zs({},r),{data:r.data?r.data.clone():null})}return e}},o6r=class{constructor(e){this._imageManager=e,this._entries={},this._image=new qf({width:1,height:1}),this._dirty=!0}destroy(){this._texture&&(this._texture=(this._texture.destroy(),null)),this._entries={},this._image=new qf({width:1,height:1}),this._dirty=!0}getPixelSize(){let{width:e,height:t}=this._image;return{width:e,height:t}}getPattern(e){let t=this._imageManager.getImage(e);if(!t)return null;let r=this._entries[e];if((r==null?void 0:r.image)!==t){let i={w:t.data.width+2,h:t.data.height+2,x:0,y:0};this._entries[e]={bin:i,position:new Pq(i,t),image:t}}else if(r.position.version!==t.version)r.position.version=t.version;else return r.position;return this._update(),this._entries[e].position}bind(e){let t=e.gl;this._texture?this._dirty&&(this._dirty=(this._texture.update(this._image),!1)):(this._texture=new dh(e,this._image,t.RGBA),this._dirty=!1),this._texture.bind(t.LINEAR,t.CLAMP_TO_EDGE)}_update(){for(let n in this._entries)this._imageManager.getImage(n)||delete this._entries[n];let e=[];for(let n in this._entries)e.push(this._entries[n].bin);let{w:t,h:r}=dae(e),i=this._image;i.resize({width:t||1,height:r||1});for(let n in this._entries){let{bin:a}=this._entries[n],o=a.x+1,s=a.y+1,l=this._entries[n].image.data,u=l.width,f=l.height;qf.copy(l,i,{x:0,y:0},{x:o,y:s},{width:u,height:f}),qf.copy(l,i,{x:0,y:f-1},{x:o,y:s-1},{width:u,height:1}),qf.copy(l,i,{x:0,y:0},{x:o,y:s+f},{width:u,height:1}),qf.copy(l,i,{x:u-1,y:0},{x:o-1,y:s},{width:1,height:f}),qf.copy(l,i,{x:0,y:0},{x:o+u,y:s},{width:1,height:f})}this._dirty=!0}},aoe=1114111,s6r={start:0,end:aoe},l6r=0;c6r=class{constructor(e){this.requestManager=e,this._faces={},this._registered=new Set}setFontFaces(e){this._unregisterAll(),this._faces={};for(let[t,r]of Object.entries(e!=null?e:{})){let i=Array.isArray(r)?r:[r];this._faces[t]=i.map(n=>this._declareFontFace(t,n)).filter(n=>n!==null)}}hasFontFaces(){return Object.keys(this._faces).length>0}getFontFamily(e,t){return Ls(this,null,function*(){var r,i;for(let n of e.split(","))for(let a of(r=this._faces[n.trim()])!=null?r:[])if(f6r(a,t)&&((i=a.loaded)!=null||(a.loaded=this._loadFontFace(a)),yield a.loaded))return a.family;return null})}_declareFontFace(e,t){let r=typeof t=="string"?{url:t}:t;if(typeof(r==null?void 0:r.url)!="string")return lu(`Ignoring the font face declared for "${e}": it has no URL.`),null;let i=`maplibre-gl-font-face-${l6r++}`,n=r["unicode-range"];if(!(n!=null&&n.length))return{url:r.url,ranges:[s6r],family:i};let a=[];for(let o of n){let s=u6r(o);if(!s){lu(`Ignoring the unicode range "${o}" of the font face at ${r.url}: it is not a valid range.`);continue}a.push(s)}return a.length?{url:r.url,ranges:a,family:i}:null}_loadFontFace(e){return Ls(this,null,function*(){if(typeof FontFace>"u"||typeof document>"u"||!document.fonts)return lu(`Ignoring the font face at ${e.url}: this environment has no CSS Font Loading API.`),!1;let t;try{return t=new FontFace(e.family,yield this._downloadFontFile(e.url)),Object.values(this._faces).some(r=>r.includes(e))?(document.fonts.add(t),this._registered.add(t),yield t.load(),!0):!1}catch(r){return t&&this._unregister(t),lu(`Ignoring the font face at ${e.url}: ${u0(r).message}`),!1}})}_downloadFontFile(e){return Ls(this,null,function*(){let t=yield this.requestManager.transformRequest(e,"Glyphs"),r=yield Ene(t,new AbortController);if(!(r!=null&&r.data))throw Error(`the response was empty for the font file at ${e}`);return r.data})}_unregister(e){var t;(t=document.fonts)==null||t.delete(e),this._registered.delete(e)}_unregisterAll(){var e;for(let t of this._registered)(e=document.fonts)==null||e.delete(t);this._registered.clear()}destroy(){this._unregisterAll(),this._faces={}}},ooe=1e20,Aoe=new Float64Array(256);for(let e=0;e<256;e++){let t=.5-(e/255)**.45454545454545453;Aoe[e]=t*Math.abs(t)}Aoe[255]=-1e20;h6r=class{constructor({fontSize:e=24,buffer:t=3,radius:r=8,cutoff:i=.25,fontFamily:n="sans-serif",fontWeight:a="normal",fontStyle:o="normal",lang:s=null}={}){this.buffer=t,this.radius=r,this.cutoff=i,this.lang=s;let l=this.size=e+t*4,u=this._createCanvas(l),f=this.ctx=u.getContext("2d",{willReadFrequently:!0});f.font=`${o} ${a} ${e}px ${n}`,f.textBaseline="alphabetic",f.textAlign="left",f.fillStyle="black",this.gridOuter=new Float64Array(l*l),this.gridInner=new Float64Array(l*l),this.f=new Float64Array(l),this.z=new Float64Array(l+1),this.v=new Uint16Array(l)}_createCanvas(e){if(typeof OffscreenCanvas<"u")return new OffscreenCanvas(e,e);let t=document.createElement("canvas");return t.width=t.height=e,t}draw(e){let{width:t,actualBoundingBoxAscent:r,actualBoundingBoxDescent:i,actualBoundingBoxLeft:n,actualBoundingBoxRight:a}=this.ctx.measureText(e),o=Math.ceil(r),s=Math.floor(-n),l=Math.max(0,Math.min(this.size-this.buffer,Math.ceil(a)-s)),u=Math.max(0,Math.min(this.size-this.buffer,o+Math.ceil(i))),f=l+2*this.buffer,c=u+2*this.buffer,h=Math.max(f*c,0),d=new Uint8ClampedArray(h),p={data:d,width:f,height:c,glyphWidth:l,glyphHeight:u,glyphTop:o,glyphLeft:s,glyphAdvance:t};if(l===0||u===0)return p;let{ctx:v,buffer:y,gridInner:m,gridOuter:w}=this;this.lang&&(v.lang=this.lang),v.clearRect(y,y,l,u),v.fillText(e,y-s,y+o);let _=v.getImageData(y,y,l,u);w.fill(ooe,0,h),m.fill(0,0,h);let b=3;for(let T=0;T{let r=new h6r(e);return r.buffer=t,r},v6r=class{constructor(e,t,r,i=p6r){this.requestManager=e,this.localIdeographFontFamily=t,this.entries={},this.lang=r,this.fontFaceManager=new c6r(e),this.createRasterizer=i}setURL(e){this.url=e}setFontFaces(e){this.fontFaceManager.setFontFaces(e),this.entries={}}getGlyphs(e){return Ls(this,null,function*(){var n;let t=[];for(let a in e)for(let o in e[a])for(let s of e[a][o])t.push(this._getAndCacheGlyphsPromise(a,s,o));let r=yield Promise.all(t),i={};for(let{stack:a,id:o,variant:s,glyph:l}of r)i[a]||(i[a]={}),(n=i[a])[s]||(n[s]={}),i[a][s][o]=l&&{id:l.id,bitmap:l.bitmap.clone(),metrics:l.metrics};return i})}_getAndCacheGlyphsPromise(e,t,r){return Ls(this,null,function*(){var l,u,f;(u=(l=this.entries)[e])!=null||(l[e]={glyphs:{default:{}},requests:{},ranges:{}});let i=this.entries[e],n=(f=i.glyphs)[r]||(f[r]={}),a=n[t];if(a!==void 0)return{stack:e,id:t,variant:r,glyph:a};if(r!=="default")return n[t]=null,{stack:e,id:t,variant:r,glyph:null};let o=t.codePointAt(0),s=this.fontFaceManager.hasFontFaces()?yield this.fontFaceManager.getFontFamily(e,o):null;return s?(a=n[t]=yield this._drawGlyph(i,e,t,s),{stack:e,id:t,variant:r,glyph:a}):!this.url||EC(t)||this._charUsesLocalIdeographFontFamily(o)?(a=n[t]=yield this._drawGlyph(i,e,t),{stack:e,id:t,variant:r,glyph:a}):Ql(Zs({},yield this._downloadAndCacheRangePromise(e,t)),{variant:r})})}_downloadAndCacheRangePromise(e,t){return Ls(this,null,function*(){var a;let r=t.codePointAt(0),i=this.entries[e],n=Math.floor(r/256);if(i.ranges[n])return{stack:e,id:t,glyph:null};(a=i.requests)[n]||(a[n]=this._loadGlyphRange(e,n));try{let o=yield i.requests[n];for(let s in o)i.glyphs.default[String.fromCodePoint(+s)]=o[+s];return i.ranges[n]=!0,{stack:e,id:t,glyph:o[r]||null}}catch(o){let s=i.glyphs.default[t]=yield this._drawGlyph(i,e,t);return this._warnOnMissingGlyphRange(s,n,r,u0(o)),{stack:e,id:t,glyph:s}}})}_loadGlyphRange(e,t){return Ls(this,null,function*(){let r=t*256,i=r+255,n=yield this.requestManager.transformRequest(this.url.replace("{fontstack}",e).replace("{range}",`${r}-${i}`),"Glyphs"),a=yield Ene(n,new AbortController);if(!(a!=null&&a.data))throw Error(`Could not load glyph range. range: ${t}, ${r}-${i}`);let o={};for(let s of xat(a.data))o[s.id]=s;return o})}_warnOnMissingGlyphRange(e,t,r,i){let n=t*256,a=n+255,o=r.toString(16).padStart(4,"0").toUpperCase();lu(`Unable to load glyph range ${t}, ${n}-${a}. Rendering codepoint U+${o} locally instead. ${i}`)}_charUsesLocalIdeographFontFamily(e){return!!this.localIdeographFontFamily&&fat(e)}_drawGlyph(e,t,r,i){return Ls(this,null,function*(){let n=(yield this._getTinySDF(e,t,r,i)).draw(r),a=new RegExp("^\\p{gc=Cf}+$","u").test(r);return{id:r.codePointAt(0),bitmap:new Eq({width:n.width||60,height:n.height||60},n.data),metrics:{width:a?0:n.glyphWidth/2||24,height:n.glyphHeight/2||24,left:n.glyphLeft/2+.5||0,top:n.glyphTop/2-27.5||-8,advance:a?0:n.glyphAdvance/2||24,isDoubleResolution:!0}}})}_getTinySDF(e,t,r,i){var l,u,f,c;let n=EC(r);if(i){let h=n?"clusterTinySDFs":"fontFaceTinySDFs";return(l=e[h])!=null||(e[h]={}),(u=e[h])[i]||(u[i]=this._createTinySDF(i,!1,n?3:1)),e[h][i]}let a=t===d6r&&this.localIdeographFontFamily!==""&&this._charUsesLocalIdeographFontFamily(r.codePointAt(0)),o=a?this.localIdeographFontFamily:t;if(n)return(f=e.clusterTinySDFs)!=null||(e.clusterTinySDFs={}),(c=e.clusterTinySDFs)[o]||(c[o]=this._createTinySDF(o,!0,3)),e.clusterTinySDFs[o];let s=a?"ideographTinySDF":"tinySDF";return e[s]||(e[s]=this._createTinySDF(o)),e[s]}_createTinySDF(e,t=!0,r=1){return Ls(this,null,function*(){var s;let i=e?e.split(","):[];i.push("sans-serif");let n=i.map(l=>/[-\w]+/.test(l)?l:`'${CSS.escape(l)}'`).join(","),a=t?this._fontWeight(i[0]):void 0,o=t?this._fontStyle(i[0]):"normal";if(typeof document<"u"&&((s=document.fonts)!=null&&s.load))try{yield document.fonts.load(`${o} ${a||"normal"} 48px ${n}`)}catch(l){lu(`Failed to load font "${n}": ${u0(l).message}`)}return this.createRasterizer({fontSize:48,buffer:Math.max(6,Math.ceil(48*(r-1)/4)),radius:16,cutoff:.25,fontFamily:n,fontWeight:a,fontStyle:o,lang:this.lang},6)})}_fontStyle(e){return/italic/i.test(e)?"italic":/oblique/i.test(e)?"oblique":"normal"}_fontWeight(e){let t={thin:100,hairline:100,"extra light":200,"ultra light":200,light:300,normal:400,regular:400,medium:500,semibold:600,demibold:600,bold:700,"extra bold":800,"ultra bold":800,black:900,heavy:900,"extra black":950,"ultra black":950},r;for(let[i,n]of Object.entries(t))RegExp(`\\b${i}\\b`,"i").test(e)&&(r=`${n}`);return r}destroy(){for(let e in this.entries){let t=this.entries[e];t.tinySDF=null,t.ideographTinySDF=null,t.fontFaceTinySDFs={},t.glyphs={default:{}},t.requests={},t.ranges={}}this.entries={},this.fontFaceManager.destroy()}},m6r=()=>Eot||(Eot=new Nh({anchor:new ms(cn.light.anchor,"anchor"),position:new ms(cn.light.position,"position"),color:new ms(cn.light.color,"color"),intensity:new ms(cn.light.intensity,"intensity")})),y6r=class extends ih{constructor(e,t){super(),this._transitionable=new AC(m6r(),"light",t),this.setLight(e),this._transitioning=this._transitionable.untransitioned()}getLight(){return this._transitionable.serialize()}getCartesianPosition(){return Mrt(this.properties.get("position"))}setLight(e,t={}){this._validate(gd.light,e,t)||this._transitionable.setValues(e)}updateTransitions(e){this._transitioning=this._transitionable.transitioned(e,this._transitioning)}hasTransition(){return this._transitioning.hasTransition()}applyGlobalStateChange(e,t,r){this._transitioning=this._transitionable.applyGlobalStateChange(e,t,this._transitioning,r)}recalculate(e){this.properties=this._transitioning.possiblyEvaluate(e)}_validate(e,t,r){return K5(this,e,{value:t},r)}},g6r=()=>kot||(kot=new Nh({"sky-color":new ms(cn.sky["sky-color"],"sky-color"),"horizon-color":new ms(cn.sky["horizon-color"],"horizon-color"),"fog-color":new ms(cn.sky["fog-color"],"fog-color"),"fog-ground-blend":new ms(cn.sky["fog-ground-blend"],"fog-ground-blend"),"horizon-fog-blend":new ms(cn.sky["horizon-fog-blend"],"horizon-fog-blend"),"sky-horizon-blend":new ms(cn.sky["sky-horizon-blend"],"sky-horizon-blend"),"atmosphere-blend":new ms(cn.sky["atmosphere-blend"],"atmosphere-blend")})),x6r=class extends ih{constructor(e,t){super(),this._transitionable=new AC(g6r(),"sky",t),this.setSky(e),this._transitioning=this._transitionable.untransitioned(),this.recalculate(new Xu(0))}setSky(e,t={}){return!this._validate(gd.sky,e,t)&&(e||(e={"sky-color":"transparent","horizon-color":"transparent","fog-color":"transparent","fog-ground-blend":1,"atmosphere-blend":0}),this._transitionable.setValues(e),!0)}getSky(){return this._transitionable.serialize()}updateTransitions(e){this._transitioning=this._transitionable.transitioned(e,this._transitioning)}hasTransition(){return this._transitioning.hasTransition()}applyGlobalStateChange(e,t,r){this._transitioning=this._transitionable.applyGlobalStateChange(e,t,this._transitioning,r)}recalculate(e){this.properties=this._transitioning.possiblyEvaluate(e)}_validate(e,t,r={}){return K5(this,e,{value:t},r)}calculateFogBlendOpacity(e){return e<60?0:e<70?(e-60)/10:1}},b6r=class{constructor(e,t){this.width=e,this.height=t,this.nextRow=0,this.data=new Uint8Array(this.width*this.height),this.dashEntry={}}getDash(e,t){var i;let r=e.join(",")+String(t);return(i=this.dashEntry)[r]||(i[r]=this.addDash(e,t)),this.dashEntry[r]}getDashRanges(e,t,r){let i=e.length%2==1,n=[],a=i?-e[e.length-1]*r:0,o=e[0]*r,s=!0;n.push({left:a,right:o,isDash:s,zeroLength:e[0]===0});let l=e[0];for(let u=1;u1&&(l=e[++s]);let f=Math.abs(u-l.left),c=Math.abs(u-l.right),h=Math.min(f,c),d,p=n/r*(i+1);if(l.isDash){let v=i-Math.abs(p);d=Math.sqrt(h*h+v*v)}else d=i-Math.sqrt(h*h+p*p);this.data[o+u]=Math.max(0,Math.min(255,d+128))}}}addRegularDash(e){for(let o=e.length-1;o>=0;--o){let s=e[o],l=e[o+1];s.zeroLength?e.splice(o,1):(l==null?void 0:l.isDash)===s.isDash&&(l.left=s.left,e.splice(o,1))}let t=e[0],r=e[e.length-1];t.isDash===r.isDash&&(t.left=r.left-this.width,r.right=t.right+this.width);let i=this.width*this.nextRow,n=0,a=e[n];for(let o=0;o1&&(a=e[++n]);let s=Math.abs(o-a.left),l=Math.abs(o-a.right),u=Math.min(s,l),f=a.isDash?u:-u;this.data[i+o]=Math.max(0,Math.min(255,f+128))}}addDash(e,t){let r=t?7:0,i=2*r+1;if(this.nextRow+i>this.height)return lu("LineAtlas out of space"),null;let n=0;for(let o of e)n+=o;if(n!==0){let o=this.width/n,s=this.getDashRanges(e,this.width,o);t?this.addRoundDash(s,o,r):this.addRegularDash(s)}let a={y:this.nextRow+r,height:2*r,width:n};return this.nextRow+=i,this.dirty=!0,a}bind(e){let t=e.gl;this.texture?(t.bindTexture(t.TEXTURE_2D,this.texture),this.dirty&&(this.dirty=!1,t.texSubImage2D(t.TEXTURE_2D,0,0,0,this.width,this.height,t.ALPHA,t.UNSIGNED_BYTE,this.data))):(this.texture=t.createTexture(),t.bindTexture(t.TEXTURE_2D,this.texture),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_S,t.REPEAT),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_T,t.REPEAT),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,t.LINEAR),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,t.LINEAR),t.texImage2D(t.TEXTURE_2D,0,t.ALPHA,this.width,this.height,0,t.ALPHA,t.UNSIGNED_BYTE,this.data))}};Toe="maplibre_preloaded_worker_pool",pO=class Bst{constructor(){this.active={},this.workersPromise=null}acquire(t){return Ls(this,null,function*(){if(this.active[t]=!0,!this.workersPromise){let r=[];for(;r.length{for(let n of i)n.terminate()})}}isPreloaded(){return!!this.active[Toe]}numActive(){return Object.keys(this.active).length}},S6r=Math.floor(jd.hardwareConcurrency/2);pO.workerCount=Ert(globalThis)?Math.max(Math.min(S6r,3),1):1;qst=class extends ih{constructor(e,t){super(),this.workerPool=e,this.actors=[],this.currentActor=0,this.id=t,this.removed=!1,this.workerErrorSubscriptions=[],this.actorsPromise=this.initActors(t)}initActors(e){return Ls(this,null,function*(){let t=yield this.workerPool.acquire(e);if(this.removed)return[];if(this.actors=t.map((r,i)=>{this.workerErrorSubscriptions.push(jk(r,"error",()=>{this.fire(new rl(Error("Worker failed to load. Check that the worker URL is correct.")))},!1));let n=new Oat(r,e);return n.name=`Worker ${i}`,n}),!this.actors.length)throw Error("No actors found");return this.actors})}broadcast(e,t){return Ls(this,null,function*(){let r=yield this.actorsPromise;return Promise.all(r.map(i=>i.sendAsync({type:e,data:t})))})}getActor(){return Ls(this,null,function*(){let e=yield this.actorsPromise;return this.currentActor=(this.currentActor+1)%e.length,e[this.currentActor]})}waitForInitComplete(){return Ls(this,null,function*(){this.actors.length===0&&(yield this.actorsPromise)})}getReadyActor(){return this.currentActor=(this.currentActor+1)%this.actors.length,this.actors[this.currentActor]}remove(e=!0){this.removed=!0;for(let t of this.actors)t.remove();for(let t of this.workerErrorSubscriptions)t.unsubscribe();this.actors=[],this.workerErrorSubscriptions=[],this.setEventedParent(null),e&&this.workerPool.release(this.id)}registerMessageHandler(e,t){return Ls(this,null,function*(){let r=yield this.actorsPromise;for(let i of r)i.registerMessageHandler(e,t)})}unregisterMessageHandler(e){return Ls(this,null,function*(){let t=yield this.actorsPromise;for(let r of t)r.unregisterMessageHandler(e)})}};P1=class ag{constructor(t,r){t&&(r?this.setSouthWest(t).setNorthEast(r):Array.isArray(t)&&(t.length===4?this.setSouthWest([t[0],t[1]]).setNorthEast([t[2],t[3]]):this.setSouthWest(t[0]).setNorthEast(t[1])))}setNorthEast(t){return this._ne=t instanceof Js?new Js(t.lng,t.lat):Js.convert(t),this}setSouthWest(t){return this._sw=t instanceof Js?new Js(t.lng,t.lat):Js.convert(t),this}extend(t){let r=this._sw,i=this._ne,n,a;if(t instanceof Js)n=t,a=t;else if(t instanceof ag){if(n=t._sw,a=t._ne,!n||!a)return this}else{if(Array.isArray(t)){if(t.length===4||t.every(Array.isArray)){let o=t;return this.extend(ag.convert(o))}{let o=t;return this.extend(Js.convert(o))}}return t&&("lng"in t||"lon"in t)&&"lat"in t?this.extend(Js.convert(t)):this}return!r&&!i?(this._sw=new Js(n.lng,n.lat),this._ne=new Js(a.lng,a.lat)):(r.lng=Math.min(n.lng,r.lng),r.lat=Math.min(n.lat,r.lat),i.lng=Math.max(a.lng,i.lng),i.lat=Math.max(a.lat,i.lat)),this}getCenter(){return new Js((this._sw.lng+this._ne.lng)/2,(this._sw.lat+this._ne.lat)/2)}getSouthWest(){return this._sw}getNorthEast(){return this._ne}getNorthWest(){return new Js(this.getWest(),this.getNorth())}getSouthEast(){return new Js(this.getEast(),this.getSouth())}getWest(){return this._sw.lng}getSouth(){return this._sw.lat}getEast(){return this._ne.lng}getNorth(){return this._ne.lat}toArray(){return[this._sw.toArray(),this._ne.toArray()]}toString(){return`LngLatBounds(${this._sw.toString()}, ${this._ne.toString()})`}isEmpty(){return!(this._sw&&this._ne)}contains(t){let{lng:r,lat:i}=Js.convert(t),n=this._sw.lat<=i&&i<=this._ne.lat,a=this._sw.lng<=r&&r<=this._ne.lng;return this._sw.lng>this._ne.lng&&(a=this._sw.lng>=r&&r>=this._ne.lng),n&&a}intersects(t){if(t=ag.convert(t),!(t.getNorth()>=this.getSouth()&&t.getSouth()<=this.getNorth()))return!1;let r=Math.abs(this.getEast()-this.getWest()),i=Math.abs(t.getEast()-t.getWest());if(r>=360||i>=360)return!0;let n=wp(this.getWest(),-180,180),a=wp(this.getEast(),-180,180),o=wp(t.getWest(),-180,180),s=wp(t.getEast(),-180,180),l=n>a,u=o>s;return l&&u?!0:l?s>=n||o<=a:u?a>=o||n<=s:o<=a&&s>=n}static convert(t){return t instanceof ag||!t?t:new ag(t)}static fromLngLat(t,r=0){let i=360*r/40075017,n=i/Math.cos(Math.PI/180*t.lat);return new ag(new Js(t.lng-n,t.lat-i),new Js(t.lng+n,t.lat+i))}adjustAntiMeridian(){let t=new Js(this._sw.lng,this._sw.lat),r=new Js(this._ne.lng,this._ne.lat);return t.lng>r.lng?new ag(t,new Js(r.lng+360,r.lat)):new ag(t,r)}},Ust=class{constructor(e,t,r){this.bounds=P1.convert(this.validateBounds(e)),this.minzoom=t||0,this.maxzoom=r||24}validateBounds(e){return!Array.isArray(e)||e.length!==4?[-180,-90,180,90]:[Math.max(-180,e[0]),Math.max(-90,e[1]),Math.min(180,e[2]),Math.min(90,e[3])]}contains(e){let t=2**e.z,r={minX:Math.floor(p3(this.bounds.getWest())*t),minY:Math.floor(v3(this.bounds.getNorth())*t),maxX:Math.ceil(p3(this.bounds.getEast())*t),maxY:Math.ceil(v3(this.bounds.getSouth())*t)};return e.x>=r.minX&&e.x=r.minY&&e.y{this.tiles=e,this._options.tiles=e}),this}setUrl(e){return this.setSourceProperty(()=>{this.url=e,this._options.url=e}),this}onRemove(){this._tileJSONRequest&&(this._tileJSONRequest=(this._tileJSONRequest.abort(),null))}serialize(){return Hs({},this._options)}loadTile(e){return Ls(this,null,function*(){let t=e.tileID.canonical.url(this.tiles,this.map.getPixelRatio(),this.scheme),r={request:yield this.map._requestManager.transformRequest(t,"Tile"),uid:e.uid,tileID:e.tileID,zoom:e.tileID.overscaledZ,tileSize:this.tileSize*e.tileID.overscaleFactor(),type:this.type,source:this.id,pixelRatio:this.map.getPixelRatio(),showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId,subdivisionGranularity:this.map.style.projection.subdivisionGranularity,encoding:this.encoding,overzoomParameters:yield this._getOverzoomParameters(e),etag:e.etag};if(r.request.collectResourceTiming=this._collectResourceTiming,yield this.dispatcher.waitForInitComplete(),e.aborted)return;let i="RT";if(!e.actor||e.state==="expired")e.actor=this.dispatcher.getReadyActor(),i="LT";else if(e.state==="loading")return new Promise((n,a)=>{e.reloadPromise={resolve:n,reject:a}});e.abortController=new AbortController;try{let n=yield e.actor.sendAsync({type:i,data:r},e.abortController);if(delete e.abortController,e.aborted)return;this._afterTileLoadWorkerResponse(e,n);let a={};return n!=null&&n.etagUnmodified&&(a.unmodified=!0),a}catch(n){if(delete e.abortController,e.aborted||eg(n))return;if(n&&n.status!==404)throw n;this._afterTileLoadWorkerResponse(e,null)}})}_getOverzoomParameters(e){return Ls(this,null,function*(){if(e.tileID.canonical.z<=this.maxzoom||this.map._zoomLevelsToOverscale===void 0)return;let t=e.tileID.scaledTo(this.maxzoom).canonical,r=t.url(this.tiles,this.map.getPixelRatio(),this.scheme);return{maxZoomTileID:t,overzoomRequest:yield this.map._requestManager.transformRequest(r,"Tile")}})}_afterTileLoadWorkerResponse(e,t){if(t!=null&&t.resourceTiming&&(e.resourceTiming=t.resourceTiming),t&&this.map._refreshExpiredTiles&&e.setExpiryData(t),e.etag=t==null?void 0:t.etag,e.loadVectorData(t,this.map.painter),e.reloadPromise){let r=e.reloadPromise;e.reloadPromise=null,this.loadTile(e).then(r.resolve).catch(r.reject)}}abortTile(e){return Ls(this,null,function*(){e.abortController&&(e.abortController.abort(),delete e.abortController),e.actor&&(yield e.actor.sendAsync({type:"AT",data:{uid:e.uid,type:this.type,source:this.id}}))})}unloadTile(e){return Ls(this,null,function*(){e.unloadVectorData(),e.actor&&(yield e.actor.sendAsync({type:"RMT",data:{uid:e.uid,type:this.type,source:this.id}}))})}hasTransition(){return!1}},Eoe=class extends ih{constructor(e,t,r,i){super(),this.id=e,this.dispatcher=r,this.setEventedParent(i),this.type="raster",this.minzoom=0,this.maxzoom=22,this.roundZoom=!0,this.scheme="xyz",this.tileSize=512,this._loaded=!1,this._premultiplyAlpha=!0,this._options=Hs({type:"raster"},t),Hs(this,$5(t,["url","scheme","tileSize"]))}load(e=!1){return Ls(this,null,function*(){this._loaded=!1,this.fire(new Yf("dataloading")),this._tileJSONRequest=new AbortController;try{let t=yield Vst(this._options,this.map._requestManager,this._tileJSONRequest,this.map._ownerWindow);this._tileJSONRequest=null,this._loaded=!0,t&&(Hs(this,t),t.bounds&&(this.tileBounds=new Ust(t.bounds,this.minzoom,this.maxzoom)),this.fire(new Yf("data",{sourceDataType:"metadata"})),this.fire(new Yf("data",{sourceDataType:"content",sourceDataChanged:e})))}catch(t){this._tileJSONRequest=null,this._loaded=!0,eg(t)||this.fire(new rl(u0(t)))}})}loaded(){return this._loaded}onAdd(e){this.map=e,this.load()}onRemove(){this._tileJSONRequest&&(this._tileJSONRequest=(this._tileJSONRequest.abort(),null))}setSourceProperty(e){this._tileJSONRequest&&(this._tileJSONRequest=(this._tileJSONRequest.abort(),null)),e(),this.load(!0)}setTiles(e){return this.setSourceProperty(()=>{this.tiles=e,this._options.tiles=e}),this}setUrl(e){return this.setSourceProperty(()=>{this.url=e,this._options.url=e}),this}serialize(){return Hs({},this._options)}setPremultiplyAlpha(e){return this._premultiplyAlpha===e||this.setSourceProperty(()=>{this._premultiplyAlpha=e}),this}hasTile(e){return!this.tileBounds||this.tileBounds.contains(e.canonical)}loadTile(e){return Ls(this,null,function*(){var n;let t=e.tileID.canonical.url(this.tiles,this.map.getPixelRatio(),this.scheme),r=this._premultiplyAlpha,i=r?void 0:{premultiplyAlpha:"none"};e.abortController=new AbortController;try{let a=yield L1.transformAndGetImage(this.map._requestManager,t,"Tile",e.abortController,this.map._refreshExpiredTiles,i);if(delete e.abortController,e.aborted){e.state="unloaded";return}if(a){this.map._refreshExpiredTiles&&(a.cacheControl||a.expires)&&e.setExpiryData({cacheControl:a.cacheControl,expires:a.expires});let o=this.map.painter.context,s=o.gl,l=(n=a.data)!=null?n:new qf({width:1,height:1},new Uint8Array(4));e.texture=this.map.painter.getTileTexture(l.width),e.texture?e.texture.update(l,{useMipmap:!0,premultiply:r}):(e.texture=new dh(o,l,s.RGBA,{useMipmap:!0,premultiply:r}),e.texture.bind(s.LINEAR,s.CLAMP_TO_EDGE,s.LINEAR_MIPMAP_NEAREST)),e.state="loaded"}}catch(a){if(delete e.abortController,e.aborted)e.state="unloaded";else if(a)throw e.state="errored",a}})}abortTile(e){return Ls(this,null,function*(){e.abortController&&(e.abortController.abort(),delete e.abortController)})}unloadTile(e){return Ls(this,null,function*(){e.texture&&this.map.painter.saveTileTexture(e.texture)})}hasTransition(){return!1}},Hst=class extends Eoe{constructor(e,t,r,i){super(e,t,r,i),this.type="raster-dem",this.maxzoom=22,this._options=Hs({type:"raster-dem"},t),this.encoding=t.encoding||"mapbox",this.redFactor=t.redFactor,this.greenFactor=t.greenFactor,this.blueFactor=t.blueFactor,this.baseShift=t.baseShift}loadTile(e){return Ls(this,null,function*(){let t=e.tileID.canonical.url(this.tiles,this.map.getPixelRatio(),this.scheme);e.neighboringTiles=this._getNeighboringTiles(e.tileID),e.abortController=new AbortController;try{let r=yield L1.transformAndGetImage(this.map._requestManager,t,"Tile",e.abortController,this.map._refreshExpiredTiles,{colorSpaceConversion:"none"});if(delete e.abortController,e.aborted){e.state="unloaded";return}if(r){if(this.map._refreshExpiredTiles&&(r.cacheControl||r.expires)&&e.setExpiryData({cacheControl:r.cacheControl,expires:r.expires}),!r.data){e.state="loaded";return}let i=r.data,n=yx(i)&&j7()?i:yield this.readImageNow(i),a={type:this.type,uid:e.uid,source:this.id,rawImageData:n,encoding:this.encoding,redFactor:this.redFactor,greenFactor:this.greenFactor,blueFactor:this.blueFactor,baseShift:this.baseShift};if(e.actor&&e.state!=="expired"&&e.state!=="reloading")return;yield this.dispatcher.waitForInitComplete(),(!e.actor||e.state==="expired")&&(e.actor=this.dispatcher.getReadyActor()),e.dem=yield e.actor.sendAsync({type:"LDT",data:a}),e.needsHillshadePrepare=!0,e.needsTerrainPrepare=!0,e.needsColorReliefPrepare=!0,e.state="loaded"}}catch(r){if(delete e.abortController,e.aborted)e.state="unloaded";else if(r)throw e.state="errored",r}})}readImageNow(e){return Ls(this,null,function*(){if(typeof VideoFrame<"u"&&dne()){let t=e.width+4,r=e.height+4;try{return new qf({width:t,height:r},yield Drt(e,-2,-2,t,r))}catch(i){}}return jd.getImageData(e,2)})}_getNeighboringTiles(e){let t=e.canonical,r=2**t.z,i=(t.x-1+r)%r,n=t.x===0?e.wrap-1:e.wrap,a=(t.x+1+r)%r,o=t.x+1===r?e.wrap+1:e.wrap,s={};return s[new d0(e.overscaledZ,n,t.z,i,t.y).key]={backfilled:!1},s[new d0(e.overscaledZ,o,t.z,a,t.y).key]={backfilled:!1},t.y>0&&(s[new d0(e.overscaledZ,n,t.z,i,t.y-1).key]={backfilled:!1},s[new d0(e.overscaledZ,e.wrap,t.z,t.x,t.y-1).key]={backfilled:!1},s[new d0(e.overscaledZ,o,t.z,a,t.y-1).key]={backfilled:!1}),t.y+1Dot(t))}}shouldReloadTile(e,{affectedBounds:t}){if(e.state==="loading")return!0;if(e.state==="unloaded")return!1;let{buffer:r,extent:i}=this.workerOptions.geojsonVtOptions,n=G6r(e.tileID.canonical,r/i);for(let a of t)if(n.intersects(a))return!0;return!1}loaded(){return!this._isUpdatingWorker&&!this._hasPendingWorkerUpdate()}loadTile(e){return Ls(this,null,function*(){let t=e.actor?"RT":"LT";e.actor=yield this.actorPromise;let r={type:this.type,uid:e.uid,tileID:e.tileID,zoom:e.tileID.overscaledZ,maxZoom:this.maxzoom,tileSize:this.tileSize,source:this.id,pixelRatio:this.map.getPixelRatio(),showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId,subdivisionGranularity:this.map.style.projection.subdivisionGranularity};e.abortController=new AbortController;try{let i=yield(yield this.actorPromise).sendAsync({type:t,data:r},e.abortController);delete e.abortController,e.unloadVectorData(),e.aborted||e.loadVectorData(i,this.map.painter,t==="RT")}catch(i){if(delete e.abortController,e.aborted||eg(i))return;throw i}})}abortTile(e){return Ls(this,null,function*(){e.abortController&&(e.abortController.abort(),delete e.abortController),e.aborted=!0})}unloadTile(e){return Ls(this,null,function*(){e.unloadVectorData(),yield(yield this.actorPromise).sendAsync({type:"RMT",data:{uid:e.uid,type:this.type,source:this.id}})})}onRemove(){this._removed=!0,this.actorPromise.then(e=>e.sendAsync({type:"RS",data:{type:this.type,source:this.id}}))}serialize(){return Hs({},this._options,{type:this.type,data:this._data.updateable?{type:"FeatureCollection",features:Array.from(this._data.updateable.values())}:this._data.url||this._data.geojson})}hasTransition(){return!1}},aT=[0,0,1],H6r=(e,t)=>({u_tl_parent:new Kl(e,t.u_tl_parent),u_scale_parent:new gs(e,t.u_scale_parent),u_buffer_scale:new gs(e,t.u_buffer_scale),u_image_warp:new td(e,t.u_image_warp),u_fade_t:new gs(e,t.u_fade_t),u_opacity:new gs(e,t.u_opacity),u_image0:new il(e,t.u_image0),u_image1:new il(e,t.u_image1),u_brightness_low:new gs(e,t.u_brightness_low),u_brightness_high:new gs(e,t.u_brightness_high),u_saturation_factor:new gs(e,t.u_saturation_factor),u_contrast_factor:new gs(e,t.u_contrast_factor),u_spin_weights:new td(e,t.u_spin_weights),u_coords_top:new J5(e,t.u_coords_top),u_coords_bottom:new J5(e,t.u_coords_bottom)}),j6r=(e,t,r,i,n,a)=>({u_tl_parent:e,u_scale_parent:t,u_buffer_scale:1,u_image_warp:a,u_fade_t:r.mix,u_opacity:r.opacity*i.paint.get("raster-opacity"),u_image0:0,u_image1:1,u_brightness_low:i.paint.get("raster-brightness-min"),u_brightness_high:i.paint.get("raster-brightness-max"),u_saturation_factor:Y6r(i.paint.get("raster-saturation")),u_contrast_factor:$6r(i.paint.get("raster-contrast")),u_spin_weights:W6r(i.paint.get("raster-hue-rotate")),u_coords_top:[n[0].x,n[0].y,n[1].x,n[1].y],u_coords_bottom:[n[3].x,n[3].y,n[2].x,n[2].y]});JC=class{constructor(e,t,r){this.vertexBuffer=e,this.indexBuffer=t,this.segments=r}destroy(){this.vertexBuffer.destroy(),this.indexBuffer.destroy(),this.segments.destroy(),this.vertexBuffer=null,this.indexBuffer=null,this.segments=null}},_3=cc([{name:"a_pos",type:"Int16",components:2}]),Uq=Aa/128;lT=class extends ih{constructor(e,t,r,i){super(),this.imageWarp=aT,this.flippedWindingOrder=!1,this._warp="auto",this._imageDirty=!1,this._subdividedQuad=!1,this._subdividedMesh=null,this.id=e,this.dispatcher=r,this.coordinates=t.coordinates,this.type="image",this.minzoom=0,this.maxzoom=22,this.tileSize=512,this.tiles={},this._loaded=!1,this.setEventedParent(i),this.options=t}load(e){return Ls(this,null,function*(){if(this.options.url===void 0){this._loaded=!0,this._finishLoading();return}this._loaded=!1,this.fire(new Yf("dataloading")),this.url=this.options.url,this._abortController=new AbortController;try{let t=yield L1.transformAndGetImage(this.map._requestManager,this.url,"Image",this._abortController);this._abortController=null,this._loaded=!0,t!=null&&t.data?(this._setImage(t.data),e&&(this.coordinates=e),this._finishLoading()):this.fire(new rl(Error(`Could not load image ${this.url}: the response is empty`)))}catch(t){if(eg(t))return;this._abortController=null,this._loaded=!0,this.fire(new rl(u0(t)))}})}loaded(){return this._loaded}updateImage(e){return this._abortController&&(this._abortController=(this._abortController.abort(),null)),"image"in e?(this._loaded=!0,this._setImage(e.image),e.coordinates&&(this.coordinates=e.coordinates),this._finishLoading(),this):e.url?(this.options.url=e.url,this.load(e.coordinates),this):this}_setImage(e){this.image=e,this._imageDirty=!0}getMesh(e,t){var r;return!this._subdividedQuad||t?null:((r=this._subdividedMesh)!=null||(this._subdividedMesh=$st(e,{granularity:16})),this._subdividedMesh)}_disposeTexture(){var e;(e=this.texture)==null||e.destroy(),this.texture=null}_finishLoading(){this.map&&(this.setCoordinates(this.coordinates),this.fire(new Yf("data",{sourceDataType:"metadata"})))}onAdd(e){this.map=e,this.load()}onRemove(){var e;this._abortController&&(this._abortController=(this._abortController.abort(),null)),this._disposeTexture(),(e=this._subdividedMesh)==null||e.destroy(),this._subdividedMesh=null,this.image=null,this.tiles={}}setWarp(e){return this._warp===e?this:(this._warp=e,this.tileCoords&&this.setCoordinates(this.coordinates),this)}getWarp(){return this._warp}setCoordinates(e){this.coordinates=e;let t=e.map(Uu.fromLngLat);return this.tileID=X6r(t),this.terrainTileRanges=this._getOverlappingTileRanges(t),this.minzoom=this.maxzoom=this.tileID.z,this.tileCoords=t.map(r=>this.tileID.getTilePoint(r)._round()),this.imageWarp=K6r(this.tileCoords,this._warp),this._subdividedQuad=this.imageWarp[2]>0&&!Xst(this.tileCoords),this.flippedWindingOrder=Z6r(this.tileCoords),this.fire(new Yf("data",{sourceDataType:"content"})),this}prepare(){if(Object.keys(this.tiles).length===0||!this.image)return;let e=this.map.painter.context,t=e.gl;this.texture?this._imageDirty&&(this.texture.update(this.image),this.texture.bind(t.LINEAR,t.CLAMP_TO_EDGE)):(this.texture=new dh(e,this.image,t.RGBA),this.texture.bind(t.LINEAR,t.CLAMP_TO_EDGE)),this._imageDirty=!1;let r=!1;for(let i in this.tiles){let n=this.tiles[i];n.state!=="loaded"&&(n.state="loaded",n.texture=this.texture,r=!0)}r&&this.fire(new Yf("data",{sourceDataType:"idle",sourceId:this.id}))}loadTile(e){return Ls(this,null,function*(){var t;(t=this.tileID)!=null&&t.equals(e.tileID.canonical)?(this.tiles[String(e.tileID.wrap)]=e,e.buckets={}):e.state="errored"})}serialize(){let e={type:"image",coordinates:this.coordinates};return this.options.url!==void 0&&(e.url=this.options.url),e}hasTransition(){return!1}_getOverlappingTileRanges(e){let{minX:t,minY:r,maxX:i,maxY:n}=Tv.fromPoints(e),a={};for(let o=0;o<=25;o++){let s=2**o,l=Math.floor(t*s),u=Math.floor(r*s),f=Math.floor(i*s),c=Math.floor(n*s),h=(l%s+s)%s,d=f%s,p=Math.floor(l/s),v=Math.floor(f/s);a[o]={minWrap:p,maxWrap:v,minTileXWrapped:h,maxTileXWrapped:d,minTileY:u,maxTileY:c}}return a}};Zst=class extends lT{constructor(e,t,r,i){super(e,t,r,i),this._onPlayingHandler=()=>{var n;(n=this.map)==null||n.triggerRepaint()},this.roundZoom=!0,this.type="video",this.options=t}load(){return Ls(this,null,function*(){this._loaded=!1;let e=this.options;this.urls=[];for(let t of e.urls)this.urls.push((yield this.map._requestManager.transformRequest(t,"Source")).url);try{let t=yield Ort(this.urls);if(this._loaded=!0,!t)return;this.video=t,this.video.loop=!0,this.video.addEventListener("playing",this._onPlayingHandler),this.map&&this.video.play(),this._finishLoading()}catch(t){this.fire(new rl(u0(t)))}})}pause(){this.video&&this.video.pause()}play(){this.video&&this.video.play()}seek(e){if(this.video){let t=this.video.seekable;et.end(0)?this.fire(new rl(new wo(`sources.${this.id}`,null,`Playback for this video can be set only between the ${t.start(0)} and ${t.end(0)}-second mark.`))):this.video.currentTime=e}}getVideo(){return this.video}onAdd(e){this.map||(this.map=e,this.load(),this.video&&(this.video.play(),this.setCoordinates(this.coordinates)))}onRemove(){super.onRemove(),this.video&&(this.video.removeEventListener("playing",this._onPlayingHandler),this.video.pause())}prepare(){if(Object.keys(this.tiles).length===0||this.video.readyState<2)return;let e=this.map.painter.context,t=e.gl;this.texture?this.video.paused||(this.texture.bind(t.LINEAR,t.CLAMP_TO_EDGE),t.texSubImage2D(t.TEXTURE_2D,0,0,0,t.RGBA,t.UNSIGNED_BYTE,this.video)):(this.texture=new dh(e,this.video,t.RGBA),this.texture.bind(t.LINEAR,t.CLAMP_TO_EDGE));let r=!1;for(let i in this.tiles){let n=this.tiles[i];n.state!=="loaded"&&(n.state="loaded",n.texture=this.texture,r=!0)}r&&this.fire(new Yf("data",{sourceDataType:"idle",sourceId:this.id}))}serialize(){return{type:"video",urls:this.urls,coordinates:this.coordinates}}hasTransition(){return this.video&&!this.video.paused}},Kst=class extends lT{constructor(e,t,r,i){super(e,t,r,i),t.coordinates?(!Array.isArray(t.coordinates)||t.coordinates.length!==4||t.coordinates.some(n=>!Array.isArray(n)||n.length!==2||n.some(a=>typeof a!="number")))&&this.fire(new rl(new wo(`sources.${e}`,null,'"coordinates" property must be an array of 4 longitude/latitude array pairs'))):this.fire(new rl(new wo(`sources.${e}`,null,'missing required property "coordinates"'))),t.animate&&typeof t.animate!="boolean"&&this.fire(new rl(new wo(`sources.${e}`,null,'optional "animate" property must be a boolean value'))),t.canvas?typeof t.canvas!="string"&&!(t.canvas instanceof HTMLCanvasElement)&&this.fire(new rl(new wo(`sources.${e}`,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 rl(new wo(`sources.${e}`,null,'missing required property "canvas"'))),this.options=t,this.animate=t.animate===void 0||t.animate}load(){return Ls(this,null,function*(){if(this._loaded=!0,this.canvas||(this.canvas=this.options.canvas instanceof HTMLCanvasElement?this.options.canvas:document.getElementById(this.options.canvas)),this.width=this.canvas.width,this.height=this.canvas.height,this._hasInvalidDimensions()){this.fire(new rl(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._playing=(this.prepare(),!1))},this._finishLoading()})}getCanvas(){return this.canvas}onAdd(e){this.map=e,this.load(),this.canvas&&this.animate&&this.play()}onRemove(){this._playing=!1,super.onRemove()}prepare(){let e=!1;if(this.canvas.width!==this.width&&(this.width=this.canvas.width,e=!0),this.canvas.height!==this.height&&(this.height=this.canvas.height,e=!0),this._hasInvalidDimensions()||Object.keys(this.tiles).length===0)return;let t=this.map.painter.context,r=t.gl;this.texture?(e||this._playing)&&this.texture.update(this.canvas,{premultiply:!0}):(this.texture=new dh(t,this.canvas,r.RGBA,{premultiply:!0}),this.texture.bind(r.LINEAR,r.CLAMP_TO_EDGE));let i=!1;for(let n in this.tiles){let a=this.tiles[n];a.state!=="loaded"&&(a.state="loaded",a.texture=this.texture,i=!0)}i&&this.fire(new Yf("data",{sourceDataType:"idle",sourceId:this.id}))}serialize(){return{type:"canvas",animate:this.animate,canvas:this.options.canvas,coordinates:this.coordinates}}hasTransition(){return this._playing}_hasInvalidDimensions(){for(let e of[this.canvas.width,this.canvas.height])if(isNaN(e)||e<=0)return!0;return!1}},Jst={},Q6r=(e,t,r,i)=>{let n=new(Qst(t.type))(e,t,r,i);if(n.id!==e)throw Error(`Expected Source id to be ${e} instead of ${n.id}`);return n},Qst=e=>{switch(e){case"geojson":return Wst;case"image":return lT;case"raster":return Eoe;case"raster-dem":return Hst;case"vector":return Gst;case"video":return Zst;case"canvas":return Kst}return Jst[e]},eMr=(e,t)=>{Jst[e]=t},tMr=(e,t)=>Ls(null,null,function*(){if(Qst(e))throw Error(`A source type called "${e}" already exists.`);eMr(e,t)});soe="RTLPluginLoaded",iMr=class extends ih{constructor(...e){super(...e),this.status="unavailable",this.url=null,this.dispatcher=Soe()}_syncState(e){return this.status=e,this.dispatcher.broadcast("SRPS",{pluginStatus:e,pluginURL:this.url}).catch(t=>{throw this.status="error",t})}getRTLTextPluginStatus(){return this.status}clearRTLTextPlugin(){this.status="unavailable",this.url=null}setRTLTextPlugin(e,t=!1){return Ls(this,null,function*(){if(this.url)throw Error("setRTLTextPlugin cannot be called multiple times.");if(this.url=jd.resolveURL(e),!this.url)throw Error(`requested url ${e} is invalid`);if(this.status==="unavailable")if(t)this.status="deferred",this._syncState(this.status);else return this._requestImport();else if(this.status==="requested")return this._requestImport()})}_requestImport(){return Ls(this,null,function*(){yield this._syncState("loading"),this.status="loaded",this.fire(new Gd(soe))})}lazyLoad(){this.status==="unavailable"?this.status="requested":this.status==="deferred"&&this._requestImport()}},Oae=null;elt=class{constructor(e,t){this.timeAdded=0,this.fadeEndTime=0,this.fadeOpacity=1,this.tileID=e,this.uid=_ne(),this.uses=0,this.tileSize=t,this.buckets={},this.expirationTime=null,this.queryPadding=0,this.hasSymbolBuckets=!1,this.hasRTLText=!1,this.dependencies={},this.rttObjects=[],this.rttFingerprint={},this.expiredRequestCount=0,this.state="loading",this.featureStateRevision=-1}isRenderable(e){return this.hasData()&&(!this.fadeEndTime||this.fadingDirection!==0||this.fadeOpacity>0)&&(e||!this.holdingForSymbolFade())}setCrossFadeLogic({fadingRole:e,fadingDirection:t,fadingParentID:r,fadeEndTime:i}){this.resetFadeLogic(),this.fadingRole=e,this.fadingDirection=t,this.fadingParentID=r,this.fadeEndTime=i}setSelfFadeLogic(e){this.resetFadeLogic(),this.selfFading=!0,this.fadeEndTime=e}resetFadeLogic(){this.fadingRole=null,this.fadingDirection=null,this.fadingParentID=null,this.selfFading=!1,this.timeAdded=Ku(),this.fadeEndTime=0,this.fadeOpacity=1}wasRequested(){return this.state==="errored"||this.state==="loaded"||this.state==="reloading"}clearTextures(e){this.demTexture&&e.saveTileTexture(this.demTexture),this.demTexture=null}getRTT(e){return this.rttObjects[e]}acquireRTT(e,t,r){return this.rttObjects[t]=e.acquireRTT(r)}releaseRTT(e){if(this.rttObjects.length!==0){for(let t of this.rttObjects)t&&e.releaseRTT(t);this.rttObjects.length=0}}loadVectorData(e,t,r){if((e==null?void 0:e.etagUnmodified)===!0){this.state="loaded";return}if(this.hasData()&&this.unloadVectorData(),this.state="loaded",!e){this.collisionBoxArray=new Zne;return}e.featureIndex&&(this.latestFeatureIndex=e.featureIndex,e.rawTileData?(this.latestRawTileData=e.rawTileData,this.latestEncoding=e.encoding,this.latestFeatureIndex.rawTileData=e.rawTileData,this.latestFeatureIndex.encoding=e.encoding):this.latestRawTileData&&(this.latestFeatureIndex.rawTileData=this.latestRawTileData,this.latestFeatureIndex.encoding=this.latestEncoding)),this.collisionBoxArray=e.collisionBoxArray,this.buckets=rMr(e.buckets,t==null?void 0:t.style),this.hasSymbolBuckets=!1;for(let i in this.buckets){let n=this.buckets[i];if(n instanceof LC)if(this.hasSymbolBuckets=!0,r)n.justReloaded=!0;else break}if(this.hasRTLText=!1,this.hasSymbolBuckets)for(let i in this.buckets){let n=this.buckets[i];if(n instanceof LC&&n.hasRTLText){this.hasRTLText=!0,KC().lazyLoad();break}}this.queryPadding=0;for(let i in this.buckets){let n=this.buckets[i];this.queryPadding=Math.max(this.queryPadding,t.style.getLayer(i).queryRadius(n))}e.imageAtlas&&(this.imageAtlas=e.imageAtlas),e.glyphAtlasImage&&(this.glyphAtlasImage=e.glyphAtlasImage),this.dashPositions=e.dashPositions}unloadVectorData(){for(let e in this.buckets)this.buckets[e].destroy();this.buckets={},this.imageAtlasTexture&&this.imageAtlasTexture.destroy(),this.glyphAtlasTexture&&this.glyphAtlasTexture.destroy(),this.imageAtlas=null,this.dashPositions=null,this.latestFeatureIndex=null,this.state="unloaded"}getBucket(e){return this.buckets[e.id]}upload(e){for(let r in this.buckets){let i=this.buckets[r];i.uploadPending()&&i.upload(e)}let t=e.gl;this.imageAtlas&&!this.imageAtlas.uploaded&&(this.imageAtlasTexture=new dh(e,this.imageAtlas.image,t.RGBA),this.imageAtlas.uploaded=!0),this.glyphAtlasImage&&(this.glyphAtlasImage=(this.glyphAtlasTexture=new dh(e,this.glyphAtlasImage,t.ALPHA),null))}prepare(e){this.imageAtlas&&this.imageAtlas.patchUpdatedImages(e,this.imageAtlasTexture)}queryRenderedFeatures(e,t,r,i,n,a,o,s,l,u,f){var c;return(c=this.latestFeatureIndex)!=null&&c.rawTileData?this.latestFeatureIndex.query({queryGeometry:i,cameraQueryGeometry:n,scale:a,tileSize:this.tileSize,pixelPosMatrix:u,transform:s,params:o,queryPadding:this.queryPadding*l,getElevation:f},e,t,r):{}}querySourceFeatures(e,t){let r=this.latestFeatureIndex;if(!(r!=null&&r.rawTileData))return;let i=r.loadVTLayers(),n=t!=null&&t.sourceLayer?t.sourceLayer:"",a=i._geojsonTileLayer||i[n];if(!a)return;let o=U5(t==null?void 0:t.filter,`querySourceFeatures[${n}].filter`,t==null?void 0:t.globalState),{z:s,x:l,y:u}=this.tileID.canonical,f={z:s,x:l,y:u};for(let c=0;cr)i=!1;else if(!t)i=!0;else if(this.expirationTimethis.max[0]||t.aabb.min[1]>this.max[1]||t.aabb.min[2]>this.max[2]||t.aabb.max[0]0?(r+=t[n]*this.min[n],i+=t[n]*this.max[n]):(i+=t[n]*this.min[n],r+=t[n]*this.max[n]);return r>=0?2:i<0?0:1}},Coe=class rlt{constructor(t,r,i){this.points=t,this.planes=r,this.aabb=i}static fromInvProjectionMatrix(t,r=1,i=0,n,a){let o=[[-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]],s=a?[[6,5,4],[0,1,2],[0,3,7],[2,1,5],[3,2,6],[0,4,5]]:[[0,1,2],[6,5,4],[0,3,7],[2,1,5],[3,2,6],[0,4,5]],l=2**i,u=o.map(d=>aMr(d,t,r,l));n&&oMr(u,s[0],n,a);let f=s.map(d=>{let p=Nm([],u[d[0]],u[d[1]]),v=Nm([],u[d[2]],u[d[1]]),y=Q0([],yd([],p,v)),m=-rh(y,u[d[1]]);return y.concat(m)}),c=[1/0,1/0,1/0],h=[-1/0,-1/0,-1/0];for(let d of u)for(let p=0;p<3;p++)c[p]=Math.min(c[p],d[p]),h[p]=Math.max(h[p],d[p]);return new rlt(u,f,new koe(c,h))}};fMr=loe(9.314,3);Rot=class{constructor(){this._tiles={}}handleWrapJump(e){let t={};for(let r in this._tiles){let i=this._tiles[r];i.tileID=i.tileID.unwrapTo(i.tileID.wrap+e),t[i.tileID.key]=i}this._tiles=t}setFeatureState(e,t,r){for(let i in this._tiles)this._tiles[i].setFeatureState(e,t,r)}getAllTiles(){return Object.values(this._tiles)}getAllIds(e=!1){return e?Object.values(this._tiles).map(t=>t.tileID).sort(gae).map(t=>t.key):Object.keys(this._tiles)}getTileById(e){return this._tiles[e]}setTile(e,t){this._tiles[e]=t}deleteTileById(e){delete this._tiles[e]}getLoadedTile(e){let t=this.getTileById(e.key);return t!=null&&t.hasData()?t:null}isIdRenderable(e,t=!1){var r;return(r=this.getTileById(e))==null?void 0:r.isRenderable(t)}getRenderableIds(e=0,t){let r=[];for(let i of this.getAllIds())this.isIdRenderable(i,t)&&r.push(this.getTileById(i));return t?r.sort((i,n)=>{let a=i.tileID,o=n.tileID,s=new Zr(a.canonical.x,a.canonical.y)._rotate(-e),l=new Zr(o.canonical.x,o.canonical.y)._rotate(-e);return a.overscaledZ-o.overscaledZ||l.y-s.y||l.x-s.x}).map(i=>i.tileID.key):r.map(i=>i.tileID).sort(gae).map(i=>i.key)}},uoe=(sg=class extends ih{constructor(t,r,i){super(),this._maxContentElevationSeen=0,this.id=t,this.dispatcher=i,this.on("data",n=>{this._dataHandler(n)}),this.on("dataloading",()=>{this._sourceErrored=!1}),this.on("error",()=>{this._sourceErrored=this._source.loaded()}),this._source=Q6r(t,r,i,this),this._inViewTiles=new Rot,this._outOfViewCache=new yot(0,n=>this._unloadTile(n)),this._timers={},this._maxTileCacheSize=null,this._maxTileCacheZoomLevels=null,this._rasterFadeDuration=0,this._maxFadingAncestorLevels=5,this._state=new nMr,this._didEmitContent=!1,this._updated=!1}onAdd(t){var r;this.map=t,this._maxTileCacheSize=t?t._maxTileCacheSize:null,this._maxTileCacheZoomLevels=t?t._maxTileCacheZoomLevels:null,(r=this._source)!=null&&r.onAdd&&this._source.onAdd(t)}onRemove(t){var r;for(let i of this._inViewTiles.getAllTiles())i.unloadVectorData();this.clearTiles(),(r=this._source)!=null&&r.onRemove&&this._source.onRemove(t),this._inViewTiles=new Rot}loaded(){if(this._sourceErrored)return!0;if(!this._sourceLoaded||!this._source.loaded())return!1;if((this.used!==void 0||this.usedForTerrain!==void 0)&&!this.used&&!this.usedForTerrain)return!0;if(!this._updated)return!1;for(let t of this._inViewTiles.getAllTiles())if(t.state!=="loaded"&&t.state!=="errored")return!1;return!0}getSource(){return this._source}getState(){return this._state}pause(){this._paused=!0}resume(){if(!this._paused)return;let t=this._shouldReloadOnResume;this._paused=!1,this._shouldReloadOnResume=!1,t&&this.reload(),this.transform&&this.update(this.transform,this.terrain)}_loadTile(t,r,i,n){return Ls(this,null,function*(){try{let a=yield this._source.loadTile(t);this._tileLoaded(t,r,i,n,a)}catch(a){t.state="errored",a.status===404?this.update(this.transform,this.terrain):this._source.fire(new rl(u0(a),{tile:t}))}})}_unloadTile(t){this._source.unloadTile&&this._source.unloadTile(t)}_abortTile(t){this._source.abortTile&&this._source.abortTile(t),this._source.fire(new Yf("dataabort",{tile:t,coord:t.tileID}))}serialize(){return this._source.serialize()}prepare(t){this._source.prepare&&this._source.prepare(),this._state.coalesceChanges(this._inViewTiles,this.map?this.map.painter:null);for(let r of this._inViewTiles.getAllTiles())r.upload(t),r.prepare(this.map.style.imageManager)}getIds(){return this._inViewTiles.getAllIds(!0)}getRenderableIds(t){var r;return this._inViewTiles.getRenderableIds((r=this.transform)==null?void 0:r.bearingInRadians,t)}hasRenderableParent(t){let r=t.overscaledZ-1;if(r>=this._source.minzoom){let i=this.getLoadedTile(t.scaledTo(r));if(i)return this._inViewTiles.isIdRenderable(i.tileID.key)}return!1}reload(t,r=void 0){if(this._paused){this._shouldReloadOnResume=!0;return}this._outOfViewCache.reset();for(let i of this._inViewTiles.getAllIds()){let n=this._inViewTiles.getTileById(i);(!r||this._source.shouldReloadTile(n,r))&&(t?this._reloadTile(i,n.state==="errored"?"loading":"expired"):n.state!=="errored"&&this._reloadTile(i,"reloading"))}}_reloadTile(t,r){return Ls(this,null,function*(){let i=this._inViewTiles.getTileById(t);if(!i)return;let n=i.hasData();i.state!=="loading"&&(i.state=r),yield this._loadTile(i,t,r,n)})}_tileLoaded(t,r,i,n,a){n||(t.timeAdded=Ku(),t.selfFading&&(t.fadeEndTime=t.timeAdded+this._rasterFadeDuration)),i==="expired"&&(t.refreshedUponExpiration=!0),this._setTileReloadTimer(r,t),!(a!=null&&a.unmodified)&&(this.getSource().type==="raster-dem"&&t.dem&&xMr(t,this._inViewTiles),t.featureStateRevision=-1,this._state.initializeTileState(t,this.map?this.map.painter:null),t.aborted||this._source.fire(new Yf("data",{tile:t,coord:t.tileID})))}getTile(t){return this.getTileByID(t.key)}getTileByID(t){return this._inViewTiles.getTileById(t)}_retainLoadedChildren(t,r){let i=this._getLoadedDescendents(r),n=new Set;for(let a of r){let o=i[a.key];if(!(o!=null&&o.length)){n.add(a);continue}let s=a.overscaledZ+sg.maxOverzooming,l=o.filter(c=>c.tileID.overscaledZ<=s);if(!l.length){n.add(a);continue}let u=Math.min(...l.map(c=>c.tileID.overscaledZ)),f=l.filter(c=>c.tileID.overscaledZ===u).map(c=>c.tileID);for(let c of f)t[c.key]=c;this._areDescendentsComplete(f,u,a.overscaledZ)||n.add(a)}return n}_getLoadedDescendents(t){var i;let r={};for(let n of this._inViewTiles.getAllTiles().filter(a=>a.hasData()))for(let a of t)n.tileID.isChildOf(a)&&(r[i=a.key]||(r[i]=[]),r[a.key].push(n));return r}_areDescendentsComplete(t,r,i){return t.length===1&&t[0].isOverscaled()?t[0].overscaledZ===r:4**(r-i)===t.length}getLoadedTile(t){return this._inViewTiles.getLoadedTile(t)}updateCacheSize(t){let r=(Math.ceil(t.width/this._source.tileSize)+1)*(Math.ceil(t.height/this._source.tileSize)+1),i=this._maxTileCacheZoomLevels===null?Ud.MAX_TILE_CACHE_ZOOM_LEVELS:this._maxTileCacheZoomLevels,n=Math.floor(r*i),a=typeof this._maxTileCacheSize=="number"?Math.min(this._maxTileCacheSize,n):n;this._outOfViewCache.setMaxSize(a)}handleWrapJump(t){let r=(t-(this._prevLng===void 0?t:this._prevLng))/360,i=Math.round(r);this._prevLng=t,i&&(this._inViewTiles.handleWrapJump(i),this._resetTileReloadTimers())}_updateMaxContentElevation(){var n,a;let t=this._maxContentElevationSeen,r=(a=(n=this.map)==null?void 0:n.style)==null?void 0:a._layers;if(!r)return t;let i=this._inViewTiles.getAllTiles();for(let o in r){let s=r[o];if(s.type!=="symbol"||s.source!==this.id||s.isHidden(this.transform.zoom))continue;let l=s;if(!l.layout)continue;let u=l.layout.get("symbol-height-offset");if(t=Math.max(t,u.constantOr(0)),!u.isConstant())for(let f of i){let c=f.getBucket(s);c&&c.maxHeightOffset>t&&(t=c.maxHeightOffset)}}return this._maxContentElevationSeen=t,t}update(t,r){if(!this._sourceLoaded||this._paused)return;this.transform=t,this.terrain=r,this.updateCacheSize(t),this.handleWrapJump(this.transform.center.lng);let i;!this.used&&!this.usedForTerrain?i=[]:this._source.tileID?i=t.getVisibleUnwrappedCoordinates(this._source.tileID).map(l=>new d0(l.canonical.z,l.wrap,l.canonical.z,l.canonical.x,l.canonical.y)):(i=uT(t,{tileSize:this.usedForTerrain?this.tileSize:this._source.tileSize,minzoom:this._source.minzoom,maxzoom:this._source.type==="vector"&&this.map._zoomLevelsToOverscale!==void 0?Math.max(this._source.maxzoom,t.maxZoom-this.map._zoomLevelsToOverscale):this._source.maxzoom,roundZoom:!this.usedForTerrain&&this._source.roundZoom,reparseOverscaled:this._source.reparseOverscaled,terrain:r,calculateTileZoom:this._source.calculateTileZoom,maxContentElevation:this._updateMaxContentElevation()}),this._source.hasTile&&(i=i.filter(l=>this._source.hasTile(l)))),this.usedForTerrain&&(i=this._addTerrainIdealTiles(i));let n=i.length===0&&!this._updated&&this._didEmitContent;this._updated=!0,n&&this.fire(new Yf("data",{sourceDataType:"idle",sourceId:this.id}));let a=Doe(t,this._source),o=this._updateRetainedTiles(i,a),s=Pot(this._source.type);s&&this._rasterFadeDuration>0&&!r&&pMr(this._inViewTiles,i,o,this._maxFadingAncestorLevels,this._source.minzoom,this._source.maxzoom,this._rasterFadeDuration),s?this._cleanUpRasterTiles(o):this._cleanUpVectorTiles(o)}_cleanUpRasterTiles(t){for(let r of this._inViewTiles.getAllIds())t[r]||this._removeTile(r)}_cleanUpVectorTiles(t){for(let r of this._inViewTiles.getAllIds()){let i=this._inViewTiles.getTileById(r);if(t[r]){i.clearSymbolFadeHold();continue}if(!i.hasSymbolBuckets){this._removeTile(r);continue}i.holdingForSymbolFade()?i.symbolFadeFinished()&&this._removeTile(r):i.setSymbolHoldDuration(this.map._fadeDuration)}}_addTerrainIdealTiles(t){let r=[];for(let i of t)if(i.canonical.z>this._source.minzoom){let n=i.scaledTo(i.canonical.z-1);r.push(n);let a=i.scaledTo(Math.max(this._source.minzoom,Math.min(i.canonical.z,5)));r.push(a)}return t.concat(r)}releaseSymbolFadeTiles(){for(let t of this._inViewTiles.getAllIds())this._inViewTiles.getTileById(t).holdingForSymbolFade()&&this._removeTile(t)}_updateRetainedTiles(t,r){var l;let i=new Set;for(let u of t)this._addTile(u).hasData()||i.add(u);let n=t.reduce((u,f)=>(u[f.key]=f,u),{}),a=this._retainLoadedChildren(n,i),o={},s=Math.max(r-sg.maxUnderzooming,this._source.minzoom);for(let u of a){let f=this._inViewTiles.getTileById(u.key),c=f==null?void 0:f.wasRequested();for(let h=u.overscaledZ-1;h>=s;--h){let d=u.scaledTo(h);if(o[d.key])break;if(o[d.key]=!0,f=this.getTile(d),!f&&c&&(f=this._addTile(d)),f){let p=f.hasData();if((p||!((l=this.map)!=null&&l.cancelPendingTileRequestsWhileZooming)||c)&&(n[d.key]=d),c=f.wasRequested(),p)break}}}return n}_addTile(t){let r=this._inViewTiles.getTileById(t.key);if(r)return r;r=this._outOfViewCache.getAndRemove(t),r&&(r.resetFadeLogic(),this._setTileReloadTimer(t.key,r),r.tileID=t,this._state.initializeTileState(r,this.map?this.map.painter:null));let i=r;return r||(r=new elt(t,this._source.tileSize*t.overscaleFactor()),this._loadTile(r,t.key,r.state,!1)),r.uses++,this._inViewTiles.setTile(t.key,r),i||this._source.fire(new Yf("dataloading",{tile:r,coord:r.tileID})),r}_setTileReloadTimer(t,r){this._clearTileReloadTimer(t);let i=r.getExpiryTimeout();if(i){let n=()=>{this._reloadTile(t,"expired"),delete this._timers[t]};this._timers[t]=setTimeout(n,i)}}_clearTileReloadTimer(t){let r=this._timers[t];r&&(clearTimeout(r),delete this._timers[t])}_resetTileReloadTimers(){for(let t in this._timers)clearTimeout(this._timers[t]),delete this._timers[t];for(let t of this._inViewTiles.getAllIds()){let r=this._inViewTiles.getTileById(t);this._setTileReloadTimer(t,r)}}refreshTiles(t){for(let r of this._inViewTiles.getAllIds()){let i=this._inViewTiles.getTileById(r);(this._inViewTiles.isIdRenderable(r)||i.state=="errored")&&t.some(n=>n.equals(i.tileID.canonical))&&this._reloadTile(r,"expired")}}_removeTile(t){let r=this._inViewTiles.getTileById(t);r&&(r.uses--,this._inViewTiles.deleteTileById(t),this._clearTileReloadTimer(t),!(r.uses>0)&&(r.hasData()&&r.state!=="reloading"?this._outOfViewCache.add(r.tileID,r,r.getExpiryTimeout()):(r.aborted=!0,this._abortTile(r),this._unloadTile(r))))}_dataHandler(t){if(t.dataType==="source"){if(t.sourceDataType==="metadata"){this._sourceLoaded=!0;return}t.sourceDataType==="content"&&this._sourceLoaded&&!this._paused&&(this.reload(t.sourceDataChanged,t.shouldReloadTileOptions),this.transform&&this.update(this.transform,this.terrain),this._didEmitContent=!0)}}resetMaxContentElevation(){this._maxContentElevationSeen=0}clearTiles(){this._shouldReloadOnResume=!1,this._paused=!1,this.resetMaxContentElevation();for(let t of this._inViewTiles.getAllIds())this._removeTile(t);this._outOfViewCache.reset()}tilesIn(t,r,i){let n=[],a=this.transform;if(!a)return n;let o=a.getCoveringTilesDetailsProvider().allowWorldCopies(),s=i?a.getCameraQueryGeometry(t):t,l=d=>a.screenPointToMercatorCoordinate(d,this.terrain),u=this.transformBbox(t,l,!o),f=this.transformBbox(s,l,!o),c=this.getIds(),h=Tv.fromPoints(f);for(let d of c){let p=this._inViewTiles.getTileById(d);if(p.holdingForSymbolFade())continue;let v=o?[p.tileID]:[p.tileID.unwrapTo(-1),p.tileID.unwrapTo(0)],y=2**(a.zoom-p.tileID.overscaledZ),m=r*p.queryPadding*Aa/p.tileSize/y;for(let w of v){let _=h.map(b=>w.getTilePoint(new Uu(b.x,b.y)));if(_.expandBy(m),_.intersects(Jnt)){let b=u.map(x=>w.getTilePoint(x)),M=f.map(x=>w.getTilePoint(x));n.push({tile:p,tileID:o?w:w.unwrapTo(0),queryGeometry:b,cameraQueryGeometry:M,scale:y})}}}return n}transformBbox(t,r,i){let n=t.map(r);if(i){let a=Tv.fromPoints(t);a.shrinkBy(Math.min(a.width(),a.height())*.001);let o=a.map(r);Tv.fromPoints(n).covers(o)||(n=n.map(s=>s.x>.5?new Uu(s.x-1,s.y,s.z):s))}return n}getVisibleCoordinates(t){let r=this.getRenderableIds(t).map(i=>this._inViewTiles.getTileById(i).tileID);return this.transform&&this.transform.populateCache(r),r}hasTransition(){return this._source.hasTransition()?!0:Pot(this._source.type)&&gMr(this._inViewTiles,this._rasterFadeDuration)}setRasterFadeDuration(t){this._rasterFadeDuration=t}setFeatureState(t,r,i){t||(t=IC),this._state.updateState(t,r,i)}removeFeatureState(t,r,i){t||(t=IC),this._state.removeFeatureState(t,r,i)}getFeatureState(t,r){return t||(t=IC),this._state.getState(t,r)}setDependencies(t,r,i){let n=this._inViewTiles.getTileById(t);n&&n.setDependencies(r,i)}reloadTilesForDependencies(t,r){for(let i of this._inViewTiles.getAllIds())this._inViewTiles.getTileById(i).hasDependency(t,r)&&this._reloadTile(i,"reloading");this._outOfViewCache.filter(i=>!i.hasDependency(t,r))}areTilesLoaded(){for(let t of this._inViewTiles.getAllTiles())if(t.state!=="loaded"&&t.state!=="errored")return!1;return!0}},sg.maxUnderzooming=10,sg.maxOverzooming=3,sg),bMr=class{constructor(e,t){this.reset(e,t)}reset(e,t){this.points=e||[],this._distances=[0];for(let r=1;r0?(i-a)/o:0;return this.points[n].mult(1-s).add(this.points[t].mult(s))}};Bot=class{constructor(e,t,r){let i=this.boxCells=[],n=this.circleCells=[];this.xCellCount=Math.ceil(e/r),this.yCellCount=Math.ceil(t/r);for(let a=0;athis.width||i<0||t>this.height)return[];let s=[];if(e<=0&&t<=0&&this.width<=r&&this.height<=i){if(n)return[{key:null,x1:e,y1:t,x2:r,y2:i}];for(let l=0;l0}hitTestCircle(e,t,r,i,n){let a=e-r,o=e+r,s=t-r,l=t+r;if(o<0||a>this.width||l<0||s>this.height)return!1;let u=[],f={hitTest:!0,overlapMode:i,circle:{x:e,y:t,radius:r},seenUids:{box:{},circle:{}}};return this._forEachCell(a,s,o,l,this._queryCellCircle,u,f,n),u.length>0}_queryCell(e,t,r,i,n,a,o,s){let{seenUids:l,hitTest:u,overlapMode:f}=o,c=this.boxCells[n],h=1e-6;if(c!==null){let p=this.bboxes;for(let v of c)if(!l.box[v]){l.box[v]=!0;let y=v*4,m=this.boxKeys[v];if(e<=p[y+2]+h&&t<=p[y+3]+h&&r>=p[y+0]-h&&i>=p[y+1]-h&&(!s||s(m))&&(!u||!Gq(f,m.overlapMode))&&(a.push({key:m,x1:p[y],y1:p[y+1],x2:p[y+2],y2:p[y+3]}),u))return!0}}let d=this.circleCells[n];if(d!==null){let p=this.circles;for(let v of d)if(!l.circle[v]){l.circle[v]=!0;let y=v*3,m=this.circleKeys[v];if(this._circleAndRectCollide(p[y],p[y+1],p[y+2],e,t,r,i)&&(!s||s(m))&&(!u||!Gq(f,m.overlapMode))){let w=p[y],_=p[y+1],b=p[y+2];if(a.push({key:m,x1:w-b,y1:_-b,x2:w+b,y2:_+b}),u)return!0}}}return!1}_queryCellCircle(e,t,r,i,n,a,o,s){let{circle:l,seenUids:u,overlapMode:f}=o,c=this.boxCells[n];if(c!==null){let d=this.bboxes;for(let p of c)if(!u.box[p]){u.box[p]=!0;let v=p*4,y=this.boxKeys[p];if(this._circleAndRectCollide(l.x,l.y,l.radius,d[v+0],d[v+1],d[v+2],d[v+3])&&(!s||s(y))&&!Gq(f,y.overlapMode))return a.push(!0),!0}}let h=this.circleCells[n];if(h!==null){let d=this.circles;for(let p of h)if(!u.circle[p]){u.circle[p]=!0;let v=p*3,y=this.circleKeys[p];if(this._circlesCollide(d[v],d[v+1],d[v+2],l.x,l.y,l.radius)&&(!s||s(y))&&!Gq(f,y.overlapMode))return a.push(!0),!0}}}_forEachCell(e,t,r,i,n,a,o,s){let l=this._convertToXCellCoord(e),u=this._convertToYCellCoord(t),f=this._convertToXCellCoord(r),c=this._convertToYCellCoord(i);for(let h=l;h<=f;h++)for(let d=u;d<=c;d++){let p=this.xCellCount*d+h;if(n.call(this,e,t,r,i,p,a,o,s))return}}_convertToXCellCoord(e){return Math.max(0,Math.min(this.xCellCount-1,Math.floor(e*this.xScale)))}_convertToYCellCoord(e){return Math.max(0,Math.min(this.yCellCount-1,Math.floor(e*this.yScale)))}_circlesCollide(e,t,r,i,n,a){let o=i-e,s=n-t,l=r+a;return l*l>o*o+s*s}_circleAndRectCollide(e,t,r,i,n,a,o){let s=(a-i)/2,l=Math.abs(e-(i+s));if(l>s+r)return!1;let u=(o-n)/2,f=Math.abs(t-(n+u));if(f>u+r)return!1;if(l<=s||f<=u)return!0;let c=l-s,h=f-u;return c*c+h*h<=r*r}};TMr=Ky();CMr=new Float32Array([-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0]);LMr=class{constructor(e,t=new Bot(e.width+200,e.height+200,25),r=new Bot(e.width+200,e.height+200,25)){this.transform=e,this.grid=t,this.ignoredGrid=r,this.pitchFactor=Math.cos(e.pitch*Math.PI/180)*e.cameraToCenterDistance,this.screenRightBoundary=e.width+100,this.screenBottomBoundary=e.height+100,this.gridRightBoundary=e.width+200,this.gridBottomBoundary=e.height+200,this.perspectiveRatioCutoff=.6}placeCollisionBox(e,t,r,i,n,a,o,s,l,u,f,c,h=0,d=!0){let p=e.anchorPointX+s[0],v=e.anchorPointY+s[1],y=this.projectAndGetPerspectiveRatio(p,v,n,iO(u,p,v,h,d),c),m=r*y.perspectiveRatio,w;if(!a&&!o){let g=y.x+(f?f.x*m:0),E=y.y+(f?f.y*m:0);w={allPointsOccluded:!1,box:[g+e.x1*m,E+e.y1*m,g+e.x2*m,E+e.y2*m]}}else w=this._projectCollisionBox(e,m,i,n,a,o,s,y,u,f,c,h,d);let[_,b,M,x]=w.box,A=a?w.allPointsOccluded:y.isOccluded,T=A;return T||(T=y.perspectiveRatio=1;z--)P.push(D.path[z]);for(let z=1;zB.signedDistanceFromCamera<=0)?[]:z.map(B=>B.point)}let F=[];if(P.length>0){let z=P[0].clone(),B=P[0].clone();for(let O=1;O=S.x&&B.x<=C.x&&z.y>=S.y&&B.y<=C.y?[P]:B.xC.x||B.yC.y?[]:pae([P],S.x,S.y,C.x,C.y)}for(let z of F){k.reset(z,E*.25);let B=0;B=k.length<=.5*E?1:Math.ceil(k.paddedLength/I)+1;for(let O=0;O=this.screenRightBoundary||i<100||t>this.screenBottomBoundary}isInsideGrid(e,t,r,i){return r>=0&&e=0&&tthis.projectAndGetPerspectiveRatio(P.x,P.y,i,iO(l,P.x,P.y,c,h),f));D=L.some(P=>!P.isOccluded),k=L.map(P=>new Zr(P.x,P.y))}else D=!0;return{box:_rt(k),allPointsOccluded:!D}}},Not=class{constructor(e,t,r,i){this.opacity=e?Math.max(0,Math.min(1,e.opacity+(e.placed?t:-t))):i&&r?1:0,this.placed=r}isHidden(){return this.opacity===0&&!this.placed}},NC=class{constructor(e,t,r,i,n){this.text=new Not(e?e.text:null,t,r,n),this.icon=new Not(e?e.icon:null,t,i,n)}isHidden(){return this.text.isHidden()&&this.icon.isHidden()}},Vot=class{constructor(e,t,r){this.text=e,this.icon=t,this.skipFade=r}},PMr=class{constructor(e,t,r,i,n){this.bucketInstanceId=e,this.featureIndex=t,this.sourceLayerIndex=r,this.bucketIndex=i,this.tileID=n}},zMr=class{constructor(e){this.crossSourceCollisions=e,this.maxGroupID=0,this.collisionGroups={}}get(e){if(this.crossSourceCollisions)return{ID:0,predicate:null};if(!this.collisionGroups[e]){let t=++this.maxGroupID;this.collisionGroups[e]={ID:t,predicate:r=>r.collisionGroupID===t}}return this.collisionGroups[e]}};IMr=class{constructor(e,t,r,i,n){this.transform=e.clone(),this.terrain=t,this.collisionIndex=new LMr(this.transform),this.placements={},this.opacities={},this.variableOffsets={},this.stale=!1,this.commitTime=0,this.fadeDuration=r,this.retainedQueryData={},this.collisionGroups=new zMr(i),this.collisionCircleArrays={},this.collisionBoxArrays=new Map,this.prevPlacement=n,n&&(n.prevPlacement=void 0),this.placedOrientations={}}_getTerrainElevationFunc(e){let t=this.terrain;if(t)return(r,i)=>t.getElevation(e,r,i)}getBucketParts(e,t,r,i){let n=r.getBucket(t),a=r.latestFeatureIndex;if(!n||!a||t.id!==n.layerIds[0])return;let o=r.collisionBoxArray,s=n.layers[0].layout,l=n.layers[0].paint,u=2**(this.transform.zoom-r.tileID.overscaledZ),f=r.tileSize/Aa,c=r.tileID.toUnwrapped(),h=s.get("text-rotation-alignment")==="map",d=Od(r,1,this.transform.zoom),p=Qy(this.collisionIndex.transform,r,l.get("text-translate"),l.get("text-translate-anchor")),v=Qy(this.collisionIndex.transform,r,l.get("icon-translate"),l.get("icon-translate-anchor")),y=Foe(h,this.transform,d);this.retainedQueryData[n.bucketInstanceId]=new PMr(n.bucketInstanceId,a,n.sourceLayerIndex,n.index,r.tileID);let m={bucket:n,layout:s,translationText:p,translationIcon:v,unwrappedTileID:c,pitchedLabelPlaneMatrix:y,scale:u,textPixelRatio:f,holdingForFade:r.holdingForSymbolFade(),collisionBoxArray:o,partiallyEvaluatedTextSize:DC(n.textSizeData,this.transform.zoom),collisionGroup:this.collisionGroups.get(n.sourceID)};if(i)for(let w of n.sortKeyRanges){let{sortKey:_,symbolInstanceStart:b,symbolInstanceEnd:M}=w;e.push({sortKey:_,symbolInstanceStart:b,symbolInstanceEnd:M,parameters:m})}else e.push({symbolInstanceStart:0,symbolInstanceEnd:n.symbolInstances.length,parameters:m})}attemptAnchorPlacement(e,t,r,i,n,a,o,s,l,u,f,c,h,d,p,v,y,m,w,_,b,M){var E,S,C;let x=Iq[e.textAnchor],A=[e.textOffset0,e.textOffset1],T=Uot(x,r,i,A,n),g=this.collisionIndex.placeCollisionBox(t,c,s,l,u,o,a,v,f.predicate,w,T,_,b,M);if((!m||this.collisionIndex.placeCollisionBox(m,c,s,l,u,o,a,y,f.predicate,w,T,_,b,M).placeable)&&g.placeable){let k;if((E=this.prevPlacement)!=null&&E.variableOffsets[h.crossTileID]&&((C=(S=this.prevPlacement)==null?void 0:S.placements[h.crossTileID])!=null&&C.text)&&(k=this.prevPlacement.variableOffsets[h.crossTileID].anchor),h.crossTileID===0)throw Error("symbolInstance.crossTileID can't be 0");return this.variableOffsets[h.crossTileID]={textOffset:A,width:r,height:i,anchor:x,textBoxScale:n,prevAnchor:k},this.markUsedJustification(d,x,h,p),d.allowVerticalPlacement&&(this.markUsedOrientation(d,p,h),this.placedOrientations[h.crossTileID]=p),{shift:T,placedGlyphBoxes:g}}}placeLayerBucketPart(e,t,r){let{bucket:i,layout:n,translationText:a,translationIcon:o,unwrappedTileID:s,pitchedLabelPlaneMatrix:l,textPixelRatio:u,holdingForFade:f,collisionBoxArray:c,partiallyEvaluatedTextSize:h,collisionGroup:d}=e.parameters,p=n.get("text-optional"),v=n.get("icon-optional"),y=sC(n,"text-overlap","text-allow-overlap"),m=y==="always",w=sC(n,"icon-overlap","icon-allow-overlap"),_=w==="always",b=n.get("text-rotation-alignment")==="map",M=n.get("text-pitch-alignment")==="map",x=n.get("icon-text-fit")!=="none",A=n.get("symbol-z-order")==="viewport-y",T=n.get("symbol-height-anchor")==="ground",g=m&&(_||!i.hasIconData()||v),E=_&&(m||!i.hasTextData()||p);!i.collisionArrays&&c&&i.deserializeCollisionBoxes(c);let S=this.retainedQueryData[i.bucketInstanceId].tileID,C=this._getTerrainElevationFunc(S),k=this.transform.getFastPathSimpleProjectionMatrix(S),D=(L,P,I)=>{var Ce,le;if(t[L.crossTileID])return;if(f){this.placements[L.crossTileID]=new Vot(!1,!1,!1);return}let F=L.heightOffset,z=!1,B=!1,O=!0,W=null,X={box:null,placeable:!1,offscreen:null,occluded:!1},Z={box:null,placeable:!1,offscreen:null},j=null,q=null,Q=null,N=0,V=0,J=0;P.textFeatureIndex?N=P.textFeatureIndex:L.useRuntimeCollisionCircles&&(N=L.featureIndex),P.verticalTextFeatureIndex&&(V=P.verticalTextFeatureIndex);let H=P.textBox;if(H){let re=Y=>{let ne=1;if(i.allowVerticalPlacement&&!Y&&this.prevPlacement){let ye=this.prevPlacement.placedOrientations[L.crossTileID];ye&&(this.placedOrientations[L.crossTileID]=ye,ne=ye,this.markUsedOrientation(i,ne,L))}return ne},Ee=(Y,ne)=>{if(i.allowVerticalPlacement&&L.numVerticalGlyphVertices>0&&P.verticalTextBox){for(let ye of i.writingModes)if(ye===2?(X=ne(),Z=X):X=Y(),X==null?void 0:X.placeable)break}else X=Y()},we=L.textAnchorOffsetStartIndex,oe=L.textAnchorOffsetEndIndex;if(oe===we){let Y=(ne,ye)=>{let U=this.collisionIndex.placeCollisionBox(ne,y,u,S,s,M,b,a,d.predicate,C,void 0,k,F,T);return U!=null&&U.placeable&&(this.markUsedOrientation(i,ye,L),this.placedOrientations[L.crossTileID]=ye),U};Ee(()=>Y(H,1),()=>{let ne=P.verticalTextBox;return i.allowVerticalPlacement&&L.numVerticalGlyphVertices>0&&ne?Y(ne,2):{box:null,offscreen:null}}),re(X==null?void 0:X.placeable)}else{let Y=Iq[(le=(Ce=this.prevPlacement)==null?void 0:Ce.variableOffsets[L.crossTileID])==null?void 0:le.anchor],ne=(U,se,Ae)=>{let be=U.x2-U.x1,me=U.y2-U.y1,ue=L.textBoxScale,pe=x&&w==="never"?se:null,ce=null,Be=y==="never"?1:2,$e="never";Y&&Be++;for(let Ze=0;Zene(H,P.iconBox,1),()=>{let U=P.verticalTextBox,se=X==null?void 0:X.placeable;return i.allowVerticalPlacement&&!se&&L.numVerticalGlyphVertices>0&&U?ne(U,P.verticalIconBox,2):{box:null,occluded:!0,offscreen:null}}),X&&(z=X.placeable,O=X.offscreen);let ye=re(X==null?void 0:X.placeable);if(!z&&this.prevPlacement){let U=this.prevPlacement.variableOffsets[L.crossTileID];U&&(this.variableOffsets[L.crossTileID]=U,this.markUsedJustification(i,U.anchor,L,ye))}}}if(j=X,z=j==null?void 0:j.placeable,O=j==null?void 0:j.offscreen,L.useRuntimeCollisionCircles&&L.centerJustifiedTextSymbolIndex>=0){let re=i.text.placedSymbolArray.get(L.centerJustifiedTextSymbolIndex),Ee=zq(i.textSizeData,h,re),we=n.get("text-padding"),oe=L.collisionCircleDiameter;q=this.collisionIndex.placeCollisionCircles(y,re,i.lineVertexArray,i.glyphOffsetArray,Ee,s,l,r,M,d.predicate,oe,we,a,C),q.circles.length&&q.collisionDetected&&!r&&lu("Collisions detected, but collision boxes are not shown"),z=m||q.circles.length>0&&!q.collisionDetected,O&&(O=q.offscreen)}if(P.iconFeatureIndex&&(J=P.iconFeatureIndex),P.iconBox){let re=Ee=>this.collisionIndex.placeCollisionBox(Ee,w,u,S,s,M,b,o,d.predicate,C,x&&W?W:void 0,k,F,T);Z&&Z.placeable&&P.verticalIconBox?(Q=re(P.verticalIconBox),B=Q.placeable):(Q=re(P.iconBox),B=Q.placeable),O&&(O=Q.offscreen)}let $=p||L.numHorizontalGlyphVertices===0&&L.numVerticalGlyphVertices===0,te=v||L.numIconVertices===0;!$&&!te?B=z=B&&z:te?$||B&&(B=z):z=B&&z;let ie=z&&j.placeable,de=B&&Q.placeable;if(ie&&(Z&&Z.placeable&&V?this.collisionIndex.insertCollisionBox(j.box,y,n.get("text-ignore-placement"),i.bucketInstanceId,V,d.ID):this.collisionIndex.insertCollisionBox(j.box,y,n.get("text-ignore-placement"),i.bucketInstanceId,N,d.ID)),de&&this.collisionIndex.insertCollisionBox(Q.box,w,n.get("icon-ignore-placement"),i.bucketInstanceId,J,d.ID),q&&z&&this.collisionIndex.insertCollisionCircles(q.circles,y,n.get("text-ignore-placement"),i.bucketInstanceId,N,d.ID),r&&this.storeCollisionData(i.bucketInstanceId,I,P,j,Q,q),L.crossTileID===0)throw Error("symbolInstance.crossTileID can't be 0");if(i.bucketInstanceId===0)throw Error("bucket.bucketInstanceId can't be 0");let ge=(z||g)&&!(j!=null&&j.occluded),Ie=(B||E)&&!(Q!=null&&Q.occluded);this.placements[L.crossTileID]=new Vot(ge,Ie,O||i.justReloaded),t[L.crossTileID]=!0};if(A){if(e.symbolInstanceStart!==0)throw Error("bucket.bucketInstanceId should be 0");let L=i.getSortedSymbolIndexes(-this.transform.bearingInRadians);for(let P=L.length-1;P>=0;--P){let I=L[P];D(i.symbolInstances.get(I),i.collisionArrays[I],I)}}else for(let L=e.symbolInstanceStart;L=0&&(a>=0&&s!==a?e.text.placedSymbolArray.get(s).crossTileID=0:e.text.placedSymbolArray.get(s).crossTileID=r.crossTileID)}markUsedOrientation(e,t,r){let i=t===1||t===3?t:0,n=t===2?t:0,a=[r.leftJustifiedTextSymbolIndex,r.centerJustifiedTextSymbolIndex,r.rightJustifiedTextSymbolIndex];for(let o of a)e.text.placedSymbolArray.get(o).placedOrientation=i;r.verticalPlacedTextSymbolIndex&&(e.text.placedSymbolArray.get(r.verticalPlacedTextSymbolIndex).placedOrientation=n)}commit(e){this.commitTime=e,this.zoomAtLastRecencyCheck=this.transform.zoom;let t=this.prevPlacement,r=!1;this.prevZoomAdjustment=t?t.zoomAdjustment(this.transform.zoom):0;let i=t?t.symbolFadeChange(e):1,n=t?t.opacities:{},a=t?t.variableOffsets:{},o=t?t.placedOrientations:{};for(let s in this.placements){let l=this.placements[s],u=n[s];u?(this.opacities[s]=new NC(u,i,l.text,l.icon),r||(r=l.text!==u.text.placed),r||(r=l.icon!==u.icon.placed)):(this.opacities[s]=new NC(null,i,l.text,l.icon,l.skipFade),r||(r=l.text||l.icon))}for(let s in n){let l=n[s];if(!this.opacities[s]){let u=new NC(l,i,!1,!1);u.isHidden()||(this.opacities[s]=u,r||(r=l.text.placed),r||(r=l.icon.placed))}}for(let s in a)!this.variableOffsets[s]&&this.opacities[s]&&!this.opacities[s].isHidden()&&(this.variableOffsets[s]=a[s]);for(let s in o)!this.placedOrientations[s]&&this.opacities[s]&&!this.opacities[s].isHidden()&&(this.placedOrientations[s]=o[s]);if(t&&t.lastPlacementChangeTime===void 0)throw Error("Last placement time for previous placement is not defined");r?this.lastPlacementChangeTime=e:typeof this.lastPlacementChangeTime!="number"&&(this.lastPlacementChangeTime=t?t.lastPlacementChangeTime:e)}updateLayerOpacities(e,t){let r={};for(let i of t){let n=i.getBucket(e);n&&i.latestFeatureIndex&&e.id===n.layerIds[0]&&this.updateBucketOpacities(n,i.tileID,r,i.collisionBoxArray)}}updateBucketOpacities(e,t,r,i){e.hasTextData()&&(e.text.opacityVertexArray.clear(),e.text.hasVisibleVertices=!1),e.hasIconData()&&(e.icon.opacityVertexArray.clear(),e.icon.hasVisibleVertices=!1),e.hasIconCollisionBoxData()&&e.iconCollisionBox.collisionVertexArray.clear(),e.hasTextCollisionBoxData()&&e.textCollisionBox.collisionVertexArray.clear();let n=e.layers[0],a=n.layout,o=new NC(null,0,!1,!1,!0),s=a.get("text-allow-overlap"),l=a.get("icon-allow-overlap"),u=n._unevaluatedLayout.hasValue("text-variable-anchor")||n._unevaluatedLayout.hasValue("text-variable-anchor-offset"),f=a.get("text-rotation-alignment")==="map",c=a.get("text-pitch-alignment")==="map",h=a.get("icon-text-fit")!=="none",d=new NC(null,0,s&&(l||!e.hasIconData()||a.get("icon-optional")),l&&(s||!e.hasTextData()||a.get("text-optional")),!0);!e.collisionArrays&&i&&(e.hasIconCollisionBoxData()||e.hasTextCollisionBoxData())&&e.deserializeCollisionBoxes(i);let p=(y,m,w)=>{for(let _=0;_0||_>0,T=m.numIconVertices>0,g=this.placedOrientations[m.crossTileID],E=g===2,S=g===1||g===3;if(A){let k=Hot(x.text),D=E?VC:k;p(e.text,w,D);let L=S?VC:k;p(e.text,_,L);let P=x.text.isHidden(),I=[m.rightJustifiedTextSymbolIndex,m.centerJustifiedTextSymbolIndex,m.leftJustifiedTextSymbolIndex];for(let B of I)B>=0&&(e.text.placedSymbolArray.get(B).hidden=P||E?1:0);m.verticalPlacedTextSymbolIndex>=0&&(e.text.placedSymbolArray.get(m.verticalPlacedTextSymbolIndex).hidden=P||S?1:0);let F=this.variableOffsets[m.crossTileID];F&&this.markUsedJustification(e,F.anchor,m,g);let z=this.placedOrientations[m.crossTileID];z&&(this.markUsedJustification(e,"left",m,z),this.markUsedOrientation(e,z,m))}if(T){let k=Hot(x.icon),D=!(h&&m.verticalPlacedIconSymbolIndex&&E);if(m.placedIconSymbolIndex>=0){let L=D?k:VC;p(e.icon,m.numIconVertices,L),e.icon.placedSymbolArray.get(m.placedIconSymbolIndex).hidden=x.icon.isHidden()}if(m.verticalPlacedIconSymbolIndex>=0){let L=D?VC:k;p(e.icon,m.numVerticalIconVertices,L),e.icon.placedSymbolArray.get(m.verticalPlacedIconSymbolIndex).hidden=x.icon.isHidden()}}let C=v!=null&&v.has(y)?v.get(y):{text:null,icon:null};if(e.hasIconCollisionBoxData()||e.hasTextCollisionBoxData()){let k=e.collisionArrays[y];if(k){let D=new Zr(0,0);if(k.textBox||k.verticalTextBox){let L=!0;if(u){let P=this.variableOffsets[b];P?(D=Uot(P.anchor,P.width,P.height,P.textOffset,P.textBoxScale),f&&D._rotate(c?-this.transform.bearingInRadians:this.transform.bearingInRadians)):L=!1}if(k.textBox||k.verticalTextBox){let P;k.textBox&&(P=E),k.verticalTextBox&&(P=S),Got(e.textCollisionBox.collisionVertexArray,x.text.placed,!L||P,C.text,D.x,D.y)}}if(k.iconBox||k.verticalIconBox){let L=!(S||!k.verticalIconBox),P;k.iconBox&&(P=L),k.verticalIconBox&&(P=!L),Got(e.iconCollisionBox.collisionVertexArray,x.icon.placed,P,C.icon,h?D.x:0,h?D.y:0)}}}}if(e.sortFeatures(-this.transform.bearingInRadians),this.retainedQueryData[e.bucketInstanceId]&&(this.retainedQueryData[e.bucketInstanceId].featureSortOrder=e.featureSortOrder),e.hasTextData()&&e.text.opacityVertexBuffer&&e.text.opacityVertexBuffer.updateData(e.text.opacityVertexArray),e.hasIconData()&&e.icon.opacityVertexBuffer&&e.icon.opacityVertexBuffer.updateData(e.icon.opacityVertexArray),e.hasIconCollisionBoxData()&&e.iconCollisionBox.collisionVertexBuffer&&e.iconCollisionBox.collisionVertexBuffer.updateData(e.iconCollisionBox.collisionVertexArray),e.hasTextCollisionBoxData()&&e.textCollisionBox.collisionVertexBuffer&&e.textCollisionBox.collisionVertexBuffer.updateData(e.textCollisionBox.collisionVertexArray),e.text.opacityVertexArray.length!==e.text.layoutVertexArray.length/4)throw Error(`bucket.text.opacityVertexArray.length (= ${e.text.opacityVertexArray.length}) !== bucket.text.layoutVertexArray.length (= ${e.text.layoutVertexArray.length}) / 4`);if(e.icon.opacityVertexArray.length!==e.icon.layoutVertexArray.length/4)throw Error(`bucket.icon.opacityVertexArray.length (= ${e.icon.opacityVertexArray.length}) !== bucket.icon.layoutVertexArray.length (= ${e.icon.layoutVertexArray.length}) / 4`);e.bucketInstanceId in this.collisionCircleArrays&&(e.collisionCircleArray=this.collisionCircleArrays[e.bucketInstanceId],delete this.collisionCircleArrays[e.bucketInstanceId])}symbolFadeChange(e){return this.fadeDuration===0?1:(e-this.commitTime)/this.fadeDuration+this.prevZoomAdjustment}zoomAdjustment(e){return Math.max(0,(this.transform.zoom-e)/1.5)}hasTransitions(e){return this.stale||e-this.lastPlacementChangeTimee}setStale(){this.stale=!0}};RMr=2**25,BMr=2**24,qMr=2**17,OMr=2**16;VC=0,NMr=class{constructor(e){this._sortAcrossTiles=e.layout.get("symbol-z-order")!=="viewport-y"&&!e.layout.get("symbol-sort-key").isConstant(),this._currentTileIndex=0,this._currentPartIndex=0,this._seenCrossTileIDs={},this._bucketParts=[]}continuePlacement(e,t,r,i,n){let a=this._bucketParts;for(;this._currentTileIndexo.sortKey-s.sortKey));this._currentPartIndex!this._forceFullPlacement&&Ku()-i>2;for(;this._currentPlacementIndex>=0;){let a=t[e[this._currentPlacementIndex]],o=this.placement.collisionIndex.transform.zoom;if(mae(a)&&a.layout&&(!a.minzoom||a.minzoom<=o)&&(!a.maxzoom||a.maxzoom>o)){if(this._inProgressLayer||(this._inProgressLayer=new NMr(a)),this._inProgressLayer.continuePlacement(r[a.source],this.placement,this._showCollisionBoxes,a,n))return;delete this._inProgressLayer}this._currentPlacementIndex--}this._done=!0}commit(e){return this.placement.commit(e),this.placement}},jot=[Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array],bc=new Uint32Array(96),UMr=class slt{static from(t){if(!t||t.byteLength===void 0||t.buffer)throw Error("Data must be an instance of ArrayBuffer or SharedArrayBuffer.");let[r,i]=new Uint8Array(t,0,2);if(r!==219)throw Error("Data does not appear to be in a KDBush format.");let n=i>>4;if(n!==1)throw Error(`Got v${n} data when expected v1.`);let a=jot[i&15];if(!a)throw Error("Unrecognized array type.");let[o]=new Uint16Array(t,2,1),[s]=new Uint32Array(t,4,1);return new slt(s,o,a,void 0,t)}constructor(t,r=64,i=Float64Array,n=ArrayBuffer,a){if(isNaN(t)||t<0)throw Error(`Unexpected numItems value: ${t}.`);this.numItems=+t,this.nodeSize=Math.min(Math.max(+r,2),65535),this.ArrayType=i,this.IndexArrayType=t<65536?Uint16Array:Uint32Array;let o=jot.indexOf(this.ArrayType),s=t*2*this.ArrayType.BYTES_PER_ELEMENT,l=t*this.IndexArrayType.BYTES_PER_ELEMENT,u=(8-l%8)%8;if(o<0)throw Error(`Unexpected typed array class: ${i}.`);if(a)this.data=a,this.ids=new this.IndexArrayType(a,8,t),this.coords=new i(a,8+l+u,t*2),this._pos=t*2,this._finished=!0;else{let f=this.data=new n(8+s+l+u);this.ids=new this.IndexArrayType(f,8,t),this.coords=new i(f,8+l+u,t*2),this._pos=0,this._finished=!1,new Uint8Array(f,0,2).set([219,16+o]),new Uint16Array(f,2,1)[0]=r,new Uint32Array(f,4,1)[0]=t}}add(t,r){let i=this._pos>>1;return this.ids[i]=i,this.coords[this._pos++]=t,this.coords[this._pos++]=r,i}finish(){let t=this._pos>>1;if(t!==this.numItems)throw Error(`Added ${t} items when expected ${this.numItems}.`);return hoe(this.ids,this.coords,this.nodeSize,0,this.numItems-1,0),this._finished=!0,this}range(t,r,i,n){if(!this._finished)throw Error("Data not yet indexed - call index.finish().");let{ids:a,coords:o,nodeSize:s}=this;bc[0]=0,bc[1]=a.length-1,bc[2]=0;let l=3,u=[];for(;l>0;){let f=bc[--l],c=bc[--l],h=bc[--l];if(c-h<=s){for(let y=h;y<=c;y++){let m=o[2*y],w=o[2*y+1];m>=t&&m<=i&&w>=r&&w<=n&&u.push(a[y])}continue}let d=h+c>>1,p=o[2*d],v=o[2*d+1];p>=t&&p<=i&&v>=r&&v<=n&&u.push(a[d]),(f===0?t<=p:r<=v)&&(bc[l++]=h,bc[l++]=d-1,bc[l++]=1-f),(f===0?i>=p:n>=v)&&(bc[l++]=d+1,bc[l++]=c,bc[l++]=1-f)}return u}within(t,r,i){let n=[];return this.withinInto(t,r,i,n),n}withinInto(t,r,i,n){if(!this._finished)throw Error("Data not yet indexed - call index.finish().");let{ids:a,coords:o,nodeSize:s}=this;bc[0]=0,bc[1]=a.length-1,bc[2]=0;let l=3,u=0,f=i*i;for(;l>0;){let c=bc[--l],h=bc[--l],d=bc[--l];if(h-d<=s){for(let m=d;m<=h;m++)Wot(o[2*m],o[2*m+1],t,r)<=f&&(n[u++]=a[m]);continue}let p=d+h>>1,v=o[2*p],y=o[2*p+1];Wot(v,y,t,r)<=f&&(n[u++]=a[p]),(c===0?t-i<=v:r-i<=y)&&(bc[l++]=d,bc[l++]=p-1,bc[l++]=1-c),(c===0?t+i>=v:r+i>=y)&&(bc[l++]=p+1,bc[l++]=h,bc[l++]=1-c)}return u}};GC=512/Aa/2,GMr=class{constructor(e,t,r){this.tileID=e,this.bucketInstanceId=r,this._symbolsByKey={};let i=new Map;for(let n=0;n({x:Math.floor(s.anchorX*GC),y:Math.floor(s.anchorY*GC)})),crossTileIDs:a.map(s=>s.crossTileID)};if(o.positions.length>128){let s=new UMr(o.positions.length,16,Uint16Array);for(let{x:l,y:u}of o.positions)s.add(l,u);s.finish(),delete o.positions,o.index=s}this._symbolsByKey[n]=o}}getScaledCoordinates(e,t){let{x:r,y:i,z:n}=this.tileID.canonical,{x:a,y:o,z:s}=t.canonical,l=s-n,u=GC/2**l,f=(a*Aa+e.anchorX)*u,c=(o*Aa+e.anchorY)*u,h=r*Aa*GC,d=i*Aa*GC;return{x:Math.floor(f-h),y:Math.floor(c-d)}}findMatches(e,t,r){let i=this.tileID.canonical.ze)}},HMr=class{constructor(){this.maxCrossTileID=0}generate(){return++this.maxCrossTileID}},jMr=class{constructor(){this.indexes={},this.usedCrossTileIDs={},this.lng=0}handleWrapJump(e){let t=Math.round((e-this.lng)/360);if(t!==0)for(let r in this.indexes){let i=this.indexes[r],n={};for(let a in i){let o=i[a];o.tileID=o.tileID.unwrapTo(o.tileID.wrap+t),n[o.tileID.key]=o}this.indexes[r]=n}this.lng=e}addBucket(e,t,r){var n,a,o;if((n=this.indexes[e.overscaledZ])!=null&&n[e.key]){if(this.indexes[e.overscaledZ][e.key].bucketInstanceId===t.bucketInstanceId)return!1;this.removeBucketCrossTileIDs(e.overscaledZ,this.indexes[e.overscaledZ][e.key])}for(let s=0;se.overscaledZ)for(let u in l){let f=l[u];f.tileID.isChildOf(e)&&f.findMatches(t.symbolInstances,e,i)}else{let u=l[e.scaledTo(Number(s)).key];u&&u.findMatches(t.symbolInstances,e,i)}}for(let s=0;s{var d;return l.getProjectionData({overscaledTileID:new p0(h.tileID.canonical.z,(d=h.tileID.wrap)!=null?d:0,h.tileID.canonical.z,h.tileID.canonical.x,h.tileID.canonical.y),aligned:h.aligned,applyGlobeMatrix:h.applyGlobeMatrix,applyTerrainMatrix:h.applyTerrainMatrix})}},c=o.renderingMode?o.renderingMode:"2d";if(i.currentPass==="offscreen"){let h=o.prerender;h&&(e.setCustomLayerDefaults(),a.setColorMode(e.colorModeForRenderPass()),h.call(o,a.gl,f),a.setDirty(),e.setBaseState())}else if(i.currentPass==="translucent"){e.setCustomLayerDefaults(),a.setColorMode(e.colorModeForRenderPass()),a.setStencilMode(Zu.disabled);let h=c==="3d"?e.getDepthModeFor3D():e.getDepthModeForSublayer(0,mu.ReadOnly);a.setDepthMode(h),o.render(a.gl,f),a.setDirty(),e.setBaseState(),a.bindFramebuffer.set(null)}}function yCr(e,t){let r=e.context,i=r.gl,n=e.transform,a=Nc.unblended,o=new mu(i.LEQUAL,mu.ReadWrite,[0,1]),s=t.tileManager.getRenderableTiles(),l=e.useProgram("terrainDepth");r.bindFramebuffer.set(t.getFramebuffer().framebuffer),r.viewport.set([0,0,e.width/devicePixelRatio,e.height/devicePixelRatio]),r.clear({color:Ol.white,depth:1});for(let u of s){let f=t.getTerrainMesh(u.tileID),c=t.getTerrainData(u.tileID),h=n.getProjectionData({overscaledTileID:u.tileID,applyTerrainMatrix:!1,applyGlobeMatrix:!0}),d=qSr(t.getSkirtLength(n.zoom));l.draw(r,i.TRIANGLES,o,Zu.disabled,a,Hu.backCCW,d,c,h,"terrain",f.vertexBuffer,f.indexBuffer,f.segments)}r.bindFramebuffer.set(null),r.viewport.set([0,0,e.width,e.height])}function gCr(e,t,r,i){let{isRenderingGlobe:n}=i,a=e.context,o=a.gl,s=e.transform,l=e.colorModeForRenderPass(),u=e.getDepthModeFor3D(),f=e.useProgram("terrain");a.bindFramebuffer.set(null),a.viewport.set([0,0,e.width,e.height]);for(let c of r){let h=t.getTerrainMesh(c.tileID),d=e.renderToTexture.getTexture(c),p=t.getTerrainData(c.tileID);a.activeTexture.set(o.TEXTURE0),d.bind(o.LINEAR,o.CLAMP_TO_EDGE,o.LINEAR_MIPMAP_LINEAR);let v=t.getSkirtLength(s.zoom),y=s.calculateFogMatrix(c.tileID.toUnwrapped()),m=BSr(v,y,e.style.sky,s.pitch,n),w=R0(i,c.tileID,{applyTerrainMatrix:!1});f.draw(a,o.TRIANGLES,u,Zu.disabled,l,Hu.backCCW,m,p,w,"terrain",h.vertexBuffer,h.indexBuffer,h.segments)}}function tut(e,t){if(!t.mesh){let r=new og;r.emplaceBack(-1,-1),r.emplaceBack(1,-1),r.emplaceBack(1,1),r.emplaceBack(-1,1);let i=new z1;i.emplaceBack(0,1,2),i.emplaceBack(0,2,3),t.mesh=new eD(e.createVertexBuffer(r,T3.members),e.createIndexBuffer(i),nc.simpleSegment(0,0,r.length,i.length))}return t.mesh}function xCr(e,t){let r=e.context,i=r.gl,n=OEr(t,e.transform,e.pixelRatio),a=new mu(i.LEQUAL,mu.ReadWrite,[0,1]),o=Zu.disabled,s=e.colorModeForRenderPass(),l=e.useProgram("sky"),u=tut(r,t);l.draw(r,i.TRIANGLES,a,o,s,Hu.disabled,n,null,void 0,"sky",u.vertexBuffer,u.indexBuffer,u.segments)}function bCr(e,t){let r=e.getCartesianPosition();brt(r,r);let i=kv(new Float64Array(16));return e.properties.get("anchor")==="map"&&(rg(i,i,t.rollInRadians),h3(i,i,-t.pitchInRadians),rg(i,i,t.bearingInRadians),h3(i,i,t.center.lat*Math.PI/180),Ane(i,i,-t.center.lng*Math.PI/180)),_rt(r,r,i),r}function _Cr(e,t,r){let i=e.context,n=i.gl,a=e.useProgram("atmosphere"),o=new mu(n.LEQUAL,mu.ReadOnly,[0,1]),s=e.transform,l=bCr(r,e.transform),u=s.getProjectionData({overscaledTileID:null,applyGlobeMatrix:!0,applyTerrainMatrix:!0}),f=lT(s.worldSize,s.center.lat),c=Clt(s),h=Dlt(Cv(c)-f,f),d=t.properties.get("atmosphere-blend")*u.projectionTransition*h;if(d===0)return;let p=BEr(l,d,c,f,s.inverseProjectionMatrix),v=tut(i,t);a.draw(i,n.TRIANGLES,o,Zu.disabled,Nc.alphaBlended,Hu.disabled,p,null,null,"atmosphere",v.vertexBuffer,v.indexBuffer,v.segments)}function Zoe(e,t){let r=!1,i=null,n,a=()=>{i=null,r&&(r=(e(...n),i=setTimeout(a,t),!1))};return(...o)=>(r=!0,n=o,i||a(),i)}function WC(e,t){(!e.duration||e.duration({around:i,panDelta:i.sub(r)}),activateOnStart:!0,moveStateManager:new iD({checkCorrectEvent:r=>r.button===0&&!r.ctrlKey}),enable:e,assignEvents:AO})}function NCr({enable:e,clickTolerance:t,aroundCenter:r=!0,minPixelCenterThreshold:i=100,rotateSpeed:n=.8},a){return new rD({clickTolerance:t,move:(o,s)=>{let l=a();if(r&&Math.abs(l.y-o.y)>i)return{bearingDelta:Lne(new Jr(o.x,s.y),s,l)};let u=(s.x-o.x)*n;return r&&s.yo.button===0&&o.ctrlKey||o.button===2&&!o.ctrlKey}),enable:e,assignEvents:AO})}function VCr({enable:e,clickTolerance:t,pitchSpeed:r=-.5}){return new rD({clickTolerance:t,move:(i,n)=>({pitchDelta:(n.y-i.y)*r}),moveStateManager:new iD({checkCorrectEvent:i=>i.button===0&&i.ctrlKey||i.button===2}),enable:e,assignEvents:AO})}function UCr({enable:e,clickTolerance:t,rollDegreesPerPixelMoved:r=.3},i){return new rD({clickTolerance:t,move:(n,a)=>{let o=i(),s=(a.x-n.x)*r;return a.yn.button===2&&n.ctrlKey}),enable:e,assignEvents:AO})}function iO(e,t,r){for(let i=0;iMath.abs(e.x)}function jCr(e){return e*(2-e)}function uoe(e){var t;return((t=e.panDelta)==null?void 0:t.mag())||e.zoomDelta||e.bearingDelta||e.pitchDelta||e.rollDelta}function sDr(e=!1){return Ls(this,null,function*(){if(_3!==void 0&&!e)return _3;if(window.navigator.permissions===void 0)return _3=!!window.navigator.geolocation,_3;try{_3=(yield window.navigator.permissions.query({name:"geolocation"})).state!=="denied"}catch(t){_3=!!window.navigator.geolocation}return _3})}function gut(e,t,r,i=!1){if(i||!r.getCoveringTilesDetailsProvider().allowWorldCopies())return e==null?void 0:e.wrap();let n=new Js(e.lng,e.lat);if(e=new Js(e.lng,e.lat),t){let a=new Js(e.lng-360,e.lat),o=new Js(e.lng+360,e.lat),s=r.locationToScreenPoint(e).distSqr(t);r.locationToScreenPoint(a).distSqr(t)180;){let a=r.locationToScreenPoint(e);if(a.x>=0&&a.y>=0&&a.x<=r.width&&a.y<=r.height)break;e.lng>r.center.lng?e.lng-=360:e.lng+=360}return e.lng!==n.lng&&r.isPointOnMapSurface(r.locationToScreenPoint(e))?e:n}function xut(e,t,r){let i=e.classList;for(let n in Joe)i.remove(`maplibregl-${r}-anchor-${n}`);i.add(`maplibregl-${r}-anchor-${t}`)}function Fv(e,t,r=[]){let i=Cl.createNS("http://www.w3.org/2000/svg",e);for(let n in t)i.setAttributeNS(null,n,t[n]);for(let n of r)i.appendChild(n);return i}function lDr(){return foe||(foe=Fv("svg",{display:"block",height:"41px",width:"27px",viewBox:"0 0 27 41"},[Fv("g",{"fill-rule":"nonzero"},[Fv("g",{transform:"translate(3.0, 29.0)",fill:"#000000"},[["10.5","5.25002273"],["10.5","5.25002273"],["9.5","4.77275007"],["8.5","4.29549936"],["7.5","3.81822308"],["6.5","3.34094679"],["5.5","2.86367051"],["4.5","2.38636864"]].map(([e,t])=>Fv("ellipse",{opacity:"0.04",cx:"10.5",cy:"5.80029008",rx:e,ry:t}))),Fv("g",{fill:but},[Fv("path",{d:"M27,13.5 C27,19.074644 20.250001,27.000002 14.75,34.500002 C14.016665,35.500004 12.983335,35.500004 12.25,34.500002 C6.7499993,27.000002 0,19.222562 0,13.5 C0,6.0441559 6.0441559,0 13.5,0 C20.955844,0 27,6.0441559 27,13.5 Z"})]),Fv("g",{opacity:"0.25",fill:"#000000"},[Fv("path",{d:"M13.5,0 C6.0441559,0 0,6.0441559 0,13.5 C0,19.222562 6.7499993,27 12.25,34.5 C13,35.522727 14.016664,35.500004 14.75,34.5 C20.250001,27 27,19.074644 27,13.5 C27,6.0441559 20.955844,0 13.5,0 Z M13.5,1 C20.415404,1 26,6.584596 26,13.5 C26,15.898657 24.495584,19.181431 22.220703,22.738281 C19.945823,26.295132 16.705119,30.142167 13.943359,33.908203 C13.743445,34.180814 13.612715,34.322738 13.5,34.441406 C13.387285,34.322738 13.256555,34.180814 13.056641,33.908203 C10.284481,30.127985 7.4148684,26.314159 5.015625,22.773438 C2.6163816,19.232715 1,15.953538 1,13.5 C1,6.584596 6.584596,1 13.5,1 Z"})]),Fv("g",{transform:"translate(6.0, 7.0)",fill:"#FFFFFF"}),Fv("g",{transform:"translate(8.0, 8.0)"},[Fv("circle",{fill:"#000000",opacity:"0.25",cx:"5.5",cy:"5.5",r:"5.4999962"}),Fv("circle",{fill:"#FFFFFF",cx:"5.5",cy:"5.5",r:"5.4999962"})])])]),foe)}function uDr(e){return e.firstElementChild.children[1]}function Rst(e,t,r){let i=(r==null?void 0:r.maxWidth)||100,{width:n,height:a}=e._camera.transform,o=a/2,s=n/2,l=e.unproject([s-i/2,o]),u=e.unproject([s+i/2,o]),f=Math.round(e.project(u).x-e.project(l).x),c=Math.min(i,f,n),h=l.distanceTo(u);if((r==null?void 0:r.unit)==="imperial"){let d=3.2808*h;d>5280?XC(t,c,d/5280,e._getUIString("ScaleControl.Miles")):XC(t,c,d,e._getUIString("ScaleControl.Feet"))}else(r==null?void 0:r.unit)==="nautical"?XC(t,c,h/1852,e._getUIString("ScaleControl.NauticalMiles")):h>=1e3?XC(t,c,h/1e3,e._getUIString("ScaleControl.Kilometers")):XC(t,c,h,e._getUIString("ScaleControl.Meters"))}function XC(e,t,r,i){let n=vDr(r),a=n/r;e.style.width=`${t*a}px`;let o=`${n}\xA0${i}`;e.textContent!==o&&(e.textContent=o)}function pDr(e){let t=10**Math.ceil(-Math.log(e)/Math.LN10);return Math.round(e*t)/t}function vDr(e){let t=10**(`${Math.floor(e)}`.length-1),r=e/t;return r=r>=10?10:r>=5?5:r>=3?3:r>=2?2:r>=1?1:pDr(r),t*r}function Aut(e){if(!e)return Aut(new Jr(0,0));if(typeof e=="number"){let t=Math.round(Math.abs(e)/Math.SQRT2);return{center:new Jr(0,0),top:new Jr(0,e),"top-left":new Jr(t,t),"top-right":new Jr(-t,t),bottom:new Jr(0,-e),"bottom-left":new Jr(t,-t),"bottom-right":new Jr(-t,-t),left:new Jr(e,0),right:new Jr(-e,0)}}if(e instanceof Jr||Array.isArray(e)){let t=Jr.convert(e);return{center:t,top:t,"top-left":t,"top-right":t,bottom:t,"bottom-left":t,"bottom-right":t,left:t,right:t}}return{center:Jr.convert(e.center||[0,0]),top:Jr.convert(e.top||[0,0]),"top-left":Jr.convert(e["top-left"]||[0,0]),"top-right":Jr.convert(e["top-right"]||[0,0]),bottom:Jr.convert(e.bottom||[0,0]),"bottom-left":Jr.convert(e["bottom-left"]||[0,0]),"bottom-right":Jr.convert(e["bottom-right"]||[0,0]),left:Jr.convert(e.left||[0,0]),right:Jr.convert(e.right||[0,0])}}function wDr(e){var t,r,i,n;return e?{top:(t=e.top)!=null?t:0,right:(r=e.right)!=null?r:0,bottom:(i=e.bottom)!=null?i:0,left:(n=e.left)!=null?n:0}:{top:0,right:0,bottom:0,left:0}}function TDr(e,t){return QC().setRTLTextPlugin(e,t)}function MDr(){return QC().getRTLTextPluginStatus()}function SDr(){return ADr}function EDr(){return bO.workerCount}function kDr(e){bO.workerCount=e}function CDr(){return jd.MAX_PARALLEL_IMAGE_REQUESTS}function DDr(e){jd.MAX_PARALLEL_IMAGE_REQUESTS=e}function FDr(){return jd.WORKER_URL}function LDr(e){jd.WORKER_URL=e}function PDr(e){return Ls(this,null,function*(){yield zoe().broadcast("IS",e)})}var Mut,Bst,jq,NC,Hae,Yd,xO,i6r,n6r,a6r,o6r,VC,t,pf,Cl,R1,s6r,Gh,ol,coe,Lv,Xf,$d,ZC,Ost,hoe,Nst,Vst,oO,Ust,y6r,g6r,doe,x6r,b6r,A6r,poe,Foe,T6r,M6r,S6r,E6r,Iot,k6r,C6r,Rot,D6r,F6r,L6r,Loe,bO,q6r,KC,Wst,$q,B1,Zst,Kst,Ioe,Jst,elt,oT,rMr,iMr,eD,T3,Yq,uT,nlt,alt,olt,cMr,slt,hMr,dMr,voe,vMr,$ae,llt,mMr,Roe,Boe,wMr,Hot,cg,yoe,LMr,jot,RMr,VMr,HMr,Yot,UC,Xot,jMr,WMr,$Mr,YMr,XMr,ZMr,KMr,GC,JMr,QMr,Qot,Ac,eSr,jC,tSr,rSr,iSr,ylt,nSr,aSr,oSr,sSr,lSr,uSr,fSr,cSr,tst,jm,glt,xlt,_oe,woe,Goe,hSr,dSr,pSr,ist,nst,vSr,ast,vO,mO,sst,mSr,Xae,Elt,lst,Zae,kSr,Jae,CSr,hst,Flt,mst,Ilt,yst,FSr,Toe,LSr,PSr,zSr,ISr,RSr,BSr,qSr,_O,NSr,Woe,Rlt,nT,qlt,Qq,$Sr,XSr,ZSr,Nlt,KSr,JSr,QSr,eEr,tEr,Vlt,rEr,iEr,nEr,aEr,oEr,sEr,xst,lEr,uEr,Ult,Glt,fEr,cEr,hEr,dEr,vEr,mEr,yEr,gEr,xEr,bEr,_Er,wO,wEr,AEr,TEr,MEr,SEr,EEr,kEr,CEr,DEr,jlt,Wlt,FEr,LEr,PEr,zEr,IEr,REr,BEr,qEr,OEr,eO,NEr,VEr,bst,UEr,of,GEr,HEr,jEr,WEr,$Er,YEr,XEr,ZEr,KEr,JEr,QEr,ekr,tkr,rkr,ikr,nkr,akr,okr,skr,lkr,ukr,fkr,ckr,hkr,dkr,pkr,vkr,mkr,ykr,gkr,xkr,Yoe,bkr,_kr,wkr,Akr,$lt,Mp,Nc,Skr,mu,toe,Zu,_st,roe,Hu,tO,Ckr,aoe,soe,aCr,oCr,sCr,lCr,uCr,wCr,M3,ACr,rut,iut,tD,TCr,MCr,SCr,ECr,kCr,CCr,DCr,FCr,nut,PCr,Soe,zCr,rD,ICr,iD,BCr,qCr,AO,GCr,Koe,Cst,aut,out,sut,HCr,lut,Lst,uut,fut,WCr,$Cr,cut,hut,dut,put,YCr,nO,XCr,ZCr,KCr,vut,mut,yut,JCr,Pst,QCr,aT,eDr,tDr,rDr,zst,iDr,nDr,aDr,oDr,_3,Joe,Ist,but,foe,w3,_ut,Eoe,fDr,aO,YC,A3,koe,wut,cDr,hDr,dDr,Coe,mDr,yDr,gDr,xDr,bDr,Doe,_Dr,ADr,Sut=ps(()=>{Sot();Mut={};Bst="6.11.2";Yd={frame(e,t,r,i){let n=i||window,a=n.requestAnimationFrame(s=>{o(),t(s)}),{unsubscribe:o}=$k(e.signal,"abort",()=>{o(),n.cancelAnimationFrame(a),r(new X5(e.signal.reason))},!1)},frameAsync(e,t){return new Promise((r,i)=>{this.frame(e,r,i,t)})},getImageData(e,t=0){return this.getImageCanvasContext(e).getImageData(-t,-t,e.width+2*t,e.height+2*t)},getImageCanvasContext(e){let t;if(K7()&&!_ne())t=new OffscreenCanvas(e.width,e.height).getContext("2d",{willReadFrequently:!0});else{let r=window.document.createElement("canvas");r.width=e.width,r.height=e.height,t=r.getContext("2d",{willReadFrequently:!0})}if(!t)throw Error("failed to create canvas 2d context");return t.drawImage(e,0,0,e.width,e.height),t},resolveURL(e){return jq||(jq=document.createElement("a")),jq.href=e,jq.href},get hardwareConcurrency(){return typeof navigator<"u"&&navigator.hardwareConcurrency||4},get prefersReducedMotion(){return Hae===void 0?matchMedia?(NC!=null||(NC=matchMedia("(prefers-reduced-motion: reduce)")),NC.matches):!1:Hae},set prefersReducedMotion(e){Hae=e}},xO=new class{constructor(){this._frozenAt=null}getCurrentTime(){return this._frozenAt===null?performance.now():this._frozenAt}setNow(e){this._frozenAt=e}restoreNow(){this._frozenAt=null}isFrozen(){return this._frozenAt!==null}};i6r=new Set("a.abbr.b.bdi.bdo.br.cite.code.del.div.em.i.img.ins.kbd.li.mark.ol.p.q.s.samp.small.span.strong.sub.sup.time.u.ul.var.wbr".split(".")),n6r=new Set(["alt","class","datetime","dir","height","href","hreflang","lang","referrerpolicy","rel","role","src","target","title","translate","type","width"]),a6r=new Set(["href","src"]),o6r=new Set(["http:","https:","mailto:"]);Cl=(pf=class{static create(t,r,i){let n=window.document.createElement(t);return r!==void 0&&(n.className=r),i&&i.appendChild(n),n}static createNS(t,r){return window.document.createElementNS(t,r)}static disableDrag(){pf.docStyle&&pf.selectProp&&(pf.userSelect=pf.docStyle[pf.selectProp],pf.docStyle[pf.selectProp]="none")}static enableDrag(){pf.docStyle&&pf.selectProp&&(pf.docStyle[pf.selectProp]=pf.userSelect)}static suppressClickInternal(t){t.preventDefault(),t.stopPropagation(),window.removeEventListener("click",pf.suppressClickInternal,!0)}static suppressClick(){window.addEventListener("click",pf.suppressClickInternal,!0),window.setTimeout(()=>{window.removeEventListener("click",pf.suppressClickInternal,!0)},0)}static getScale(t){let r=t.getBoundingClientRect();return{x:r.width/t.offsetWidth||1,y:r.height/t.offsetHeight||1,boundingClientRect:r}}static getPoint(t,r,i){let n=r.boundingClientRect;return new Jr((i.clientX-n.left)/r.x-t.clientLeft,(i.clientY-n.top)/r.y-t.clientTop)}static mousePos(t,r){let i=pf.getScale(t);return pf.getPoint(t,i,r)}static touchPos(t,r){let i=[],n=pf.getScale(t);for(let a of r)i.push(pf.getPoint(t,n,a));return i}static sanitize(t){let r=new DOMParser().parseFromString(t,"text/html").body,{querySelectorAll:i,remove:n}=jae();for(let o of Array.from(i.call(r,"*")))pf.isAllowedElement(o)?pf.removeDisallowedAttributes(o):n.call(o);let a=document.createDocumentFragment();return a.append(...r.childNodes),a}static isAllowedElement(t){let{namespaceURI:r,localName:i}=jae();return r.call(t)==="http://www.w3.org/1999/xhtml"&&i6r.has(i.call(t))}static removeDisallowedAttributes(t){let{getAttributeNames:r,getAttribute:i,removeAttribute:n}=jae();for(let a of r.call(t))pf.isAllowedAttribute(a,i.call(t,a))||n.call(t,a)}static isAllowedAttribute(t,r){if(!n6r.has(t)&&!t.startsWith("aria-"))return!1;if(!a6r.has(t))return!0;try{return o6r.has(new URL(r,"https://maplibre.invalid/").protocol)}catch(i){return!1}}},pf.docStyle=typeof window<"u"&&((t=window.document)==null?void 0:t.documentElement.style),pf.selectProp=!pf.docStyle||"userSelect"in pf.docStyle?"userSelect":"webkitUserSelect",pf);(function(e){let t,r,i,n;e.resetRequestQueue=()=>{t=[],r=0,i=0,n={}},e.addThrottleControl=c=>{let h=i++;return n[h]=c,h},e.removeThrottleControl=c=>{delete n[c],u()};let a=()=>{for(let c of Object.keys(n))if(n[c]())return!0;return!1};function o(c,h,d,p,v=!0,y){return Ls(this,null,function*(){let m=yield c.transformRequest(h,d);return fq(p.signal),R1.getImage(m,p,v,y)})}e.transformAndGetImage=o,e.getImage=(c,h,d=!0,p)=>new Promise((v,y)=>{c.headers||(c.headers={}),c.headers.accept="image/webp,*/*",js(c,{type:"image"});let m={abortController:h,requestParameters:c,supportImageRefresh:d,imageBitmapOptions:p,state:"queued",onError:w=>{y(w)},onSuccess:w=>{v(w)}};t.push(m),u()});let s=(c,h)=>typeof createImageBitmap=="function"?Rrt(c,h):Brt(c),l=c=>Ls(null,null,function*(){c.state="running";let{requestParameters:h,supportImageRefresh:d,imageBitmapOptions:p,onError:v,onSuccess:y,abortController:m}=c,w=d===!1&&!p&&!s3(self)&&!zne(h.url)&&(!h.headers||Object.keys(h.headers).reduce((b,M)=>b&&M==="accept",!0));r++;let _=w?f(h,m):yC(h,m);try{let b=yield _;delete c.abortController,c.state="completed",b.data instanceof HTMLImageElement||gx(b.data)?y(b):!b.data||b.data.byteLength===0?y({data:null,cacheControl:b.cacheControl,expires:b.expires}):y({data:yield s(b.data,p),cacheControl:b.cacheControl,expires:b.expires})}catch(b){delete c.abortController,v(f0(b))}finally{r--,u()}}),u=()=>{let c=a()?jd.MAX_PARALLEL_IMAGE_REQUESTS_PER_FRAME:jd.MAX_PARALLEL_IMAGE_REQUESTS;for(let h=r;h0;h++){let d=t.shift();if(d.abortController.signal.aborted){h--;continue}l(d)}},f=(c,h)=>new Promise((d,p)=>{let v=new Image,y=c.url,m=c.credentials;m&&m==="include"?v.crossOrigin="use-credentials":(m&&m==="same-origin"||!Rne(y))&&(v.crossOrigin="anonymous"),h.signal.addEventListener("abort",()=>{v.src="",p(new X5(h.signal.reason))}),v.fetchPriority="high",v.onload=()=>{v.onerror=v.onload=null,d({data:v})},v.onerror=()=>{v.onerror=v.onload=null,!h.signal.aborted&&p(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."))},v.src=y})})(R1||(R1={})),R1.resetRequestQueue();s6r=class{constructor(e){this._transformRequestFn=e!=null?e:null}transformRequest(e,t){return this._transformRequestFn&&this._transformRequestFn(e,t)||{url:e}}setTransformRequest(e){this._transformRequestFn=e}},Gh=class extends Wd{},ol=class extends Gh{},coe=class extends Gh{constructor(e={}){super("style.load",e)}},Lv=class extends Gh{constructor(e,t={}){super(e,t),this.dataType="style"}},Xf=class extends Gh{constructor(e,t={}){super(e,t),this.dataType="source"}},$d=class extends Gh{preventDefault(){this._defaultPrevented=!0}get defaultPrevented(){return this._defaultPrevented}constructor(e,t,r,i={}){r=r instanceof MouseEvent?r:new MouseEvent(e,r);let n=Cl.mousePos(t.getCanvas(),r),a=t.unproject(n);super(e,js({point:n,lngLat:a,originalEvent:r},i)),this._defaultPrevented=!1,this.target=t}},ZC=class extends Gh{preventDefault(){this._defaultPrevented=!0}get defaultPrevented(){return this._defaultPrevented}constructor(e,t,r){let i=e==="touchend"?r.changedTouches:r.touches,n=Cl.touchPos(t.getCanvasContainer(),i),a=n.map(l=>t.unproject(l)),o=n.reduce((l,u,f,c)=>l.add(u.div(c.length)),new Jr(0,0)),s=t.unproject(o);super(e,{points:n,point:o,lngLats:a,lngLat:s,originalEvent:r}),this._defaultPrevented=!1}},Ost=class extends Gh{preventDefault(){this._defaultPrevented=!0}get defaultPrevented(){return this._defaultPrevented}constructor(e,t){super("wheel",{originalEvent:t}),this._defaultPrevented=!1}},hoe=class extends Gh{},Nst=class extends Gh{constructor(e={}){super("terrain",e)}},Vst=class extends Gh{constructor(e={}){super("projectiontransition",e)}},oO=class extends Gh{},Ust=class extends Gh{constructor(e={}){super("styleimagemissing",e)}};y6r=class extends ah{constructor(){super(),this.images={},this.updateVersion=0,this.loaded=!1,this.requestors=[],this.missingImageResolver=null,this._spriteImagesIds={},this._imagesIds=null,this._renderCallbacksDispatchedThisFrame={}}destroy(){for(let e of Object.keys(this.images))this.removeImage(e);this._spriteImagesIds={}}isLoaded(){return this.loaded}setLoaded(e){if(this.loaded!==e&&(this.loaded=e,e)){for(let{ids:t,promiseResolve:r}of this.requestors)r(this._getImagesForIds(t));this.requestors=[]}}getImage(e){let t=this.images[e];if(t&&!t.data&&t.spriteData){let r=t.spriteData;t.data=new qf({width:r.width,height:r.height},r.context.getImageData(r.x,r.y,r.width,r.height).data),t.spriteData=null}return t}addImage(e,t){if(this.images[e])throw Error(`Image id ${e} already exist, use updateImage instead`);this._validate(e,t)&&(this.images[e]=t,this._imagesIds=null,t.isWebGLImage&&this.updateImage(e,t,!1))}_validate(e,t){let r=!0,i=t.data||t.spriteData;return this._validateStretch(t.stretchX,i==null?void 0:i.width)||(this.fire(new tl(Error(`Image "${e}" has invalid "stretchX" value`))),r=!1),this._validateStretch(t.stretchY,i==null?void 0:i.height)||(this.fire(new tl(Error(`Image "${e}" has invalid "stretchY" value`))),r=!1),this._validateContent(t.content,t)||(this.fire(new tl(Error(`Image "${e}" has invalid "content" value`))),r=!1),r}_validateStretch(e,t){if(!e)return!0;let r=0;for(let i of e){if(i[0]=e[1]}updateImage(e,t,r=!0){var n;let i=this.images[e];if(r){let a=i.data||i.spriteData;if(a.width!==t.data.width||a.height!==t.data.height)throw Error(`size mismatch between old image (${a.width}x${a.height}) and new image (${t.data.width}x${t.data.height}).`)}t.version=((n=i.version)!=null?n:0)+1,this.images[e]=t,this.updateVersion++}removeImage(e){var r;let t=this.images[e];t&&(delete this.images[e],this._imagesIds=null,(r=t.userImage)!=null&&r.onRemove&&t.userImage.onRemove())}listImages(){var e;return(e=this._imagesIds)!=null||(this._imagesIds=Object.keys(this.images)),this._imagesIds}_getSpriteImageId(e,t){return e==="default"?t:`${e}:${t}`}setSpriteImages(e,t){var o;let r=(o=this._spriteImagesIds[e])!=null?o:[],i=[];for(let s in t){let l=this._getSpriteImageId(e,s);i.push(l),l in this.images?this.updateImage(l,t[s],!1):this.addImage(l,t[s])}let n=new Set(i),a=r.filter(s=>!n.has(s));for(let s of a)this.removeImage(s);return this._spriteImagesIds[e]=i,{loaded:i,removed:a}}removeSpriteImages(e){var r;let t=(r=this._spriteImagesIds[e])!=null?r:[];for(let i of t)this.removeImage(i);return delete this._spriteImagesIds[e],t}removeAllSpriteImages(){let e=Object.values(this._spriteImagesIds).flat();for(let t of e)this.removeImage(t);return this._spriteImagesIds={},e}setMissingImageResolver(e){this.missingImageResolver=e}getImages(e){return new Promise((t,r)=>{let i=!0;if(!this.isLoaded())for(let n of e)this.images[n]||(i=!1);this.isLoaded()||i?t(this._getImagesForIds(e)):this.requestors.push({ids:e,promiseResolve:t})})}_getImagesForIds(e){return Ls(this,null,function*(){var n;let t=new Set(e.filter(a=>!this.getImage(a))),r=this.missingImageResolver;r&&(yield Promise.allSettled(Array.from(t,a=>r(a))));let i={};for(let a of e){let o=this.getImage(a);o&&(t.delete(a),i[a]={data:o.data.clone(),pixelRatio:o.pixelRatio,sdf:o.sdf,version:o.version,stretchX:o.stretchX,stretchY:o.stretchY,content:o.content,textFitWidth:o.textFitWidth,textFitHeight:o.textFitHeight,hasRenderCallback:!!((n=o.userImage)!=null&&n.render),isWebGLImage:o.isWebGLImage})}for(let a of t)this.fire(new Ust({id:a})),uu(`Image "${a}" could not be loaded. Please make sure you have added the image before it is needed with map.addImage(), resolved it with map.setMissingStyleImageResolver(), or included it in a "sprite" property in your style.`);return i})}beginFrame(){this._renderCallbacksDispatchedThisFrame={}}dispatchRenderCallbacks(e){for(let t of e){if(this._renderCallbacksDispatchedThisFrame[t])continue;this._renderCallbacksDispatchedThisFrame[t]=!0;let r=this.getImage(t);r||uu(`Image with ID: "${t}" was not found`),kat(r)&&this.updateImage(t,r)}}cloneImages(){let e={};for(let t in this.images){let r=this.images[t];e[t]=$l(Gs({},r),{data:r.data?r.data.clone():null})}return e}},g6r=class{constructor(e){this._imageManager=e,this._entries={},this._image=new qf({width:1,height:1}),this._dirty=!0}destroy(){this._texture&&(this._texture=(this._texture.destroy(),null)),this._entries={},this._image=new qf({width:1,height:1}),this._dirty=!0}getPixelSize(){let{width:e,height:t}=this._image;return{width:e,height:t}}getPattern(e){let t=this._imageManager.getImage(e);if(!t)return null;let r=this._entries[e];if((r==null?void 0:r.image)!==t){let i={w:t.data.width+2,h:t.data.height+2,x:0,y:0};this._entries[e]={bin:i,position:new Oq(i,t),image:t}}else if(r.position.version!==t.version)r.position.version=t.version;else return r.position;return this._update(),this._entries[e].position}bind(e){let t=e.gl;this._texture?this._dirty&&(this._dirty=(this._texture.update(this._image),!1)):(this._texture=new ph(e,this._image,t.RGBA),this._dirty=!1),this._texture.bind(t.LINEAR,t.CLAMP_TO_EDGE)}_update(){for(let n in this._entries)this._imageManager.getImage(n)||delete this._entries[n];let e=[];for(let n in this._entries)e.push(this._entries[n].bin);let{w:t,h:r}=_ae(e),i=this._image;i.resize({width:t||1,height:r||1});for(let n in this._entries){let{bin:a}=this._entries[n],o=a.x+1,s=a.y+1,l=this._entries[n].image.data,u=l.width,f=l.height;qf.copy(l,i,{x:0,y:0},{x:o,y:s},{width:u,height:f}),qf.copy(l,i,{x:0,y:f-1},{x:o,y:s-1},{width:u,height:1}),qf.copy(l,i,{x:0,y:0},{x:o,y:s+f},{width:u,height:1}),qf.copy(l,i,{x:u-1,y:0},{x:o-1,y:s},{width:1,height:f}),qf.copy(l,i,{x:0,y:0},{x:o+u,y:s},{width:1,height:f})}this._dirty=!0}},doe=1114111,x6r={start:0,end:doe},b6r=0;A6r=class{constructor(e){this.requestManager=e,this._faces={},this._registered=new Set}setFontFaces(e){this._unregisterAll(),this._faces={};for(let[t,r]of Object.entries(e!=null?e:{})){let i=Array.isArray(r)?r:[r];this._faces[t]=i.map(n=>this._declareFontFace(t,n)).filter(n=>n!==null)}}hasFontFaces(){return Object.keys(this._faces).length>0}getFontFamily(e,t){return Ls(this,null,function*(){var r,i;for(let n of e.split(","))for(let a of(r=this._faces[n.trim()])!=null?r:[])if(w6r(a,t)&&((i=a.loaded)!=null||(a.loaded=this._loadFontFace(a)),yield a.loaded))return a.family;return null})}_declareFontFace(e,t){let r=typeof t=="string"?{url:t}:t;if(typeof(r==null?void 0:r.url)!="string")return uu(`Ignoring the font face declared for "${e}": it has no URL.`),null;let i=`maplibre-gl-font-face-${b6r++}`,n=r["unicode-range"];if(!(n!=null&&n.length))return{url:r.url,ranges:[x6r],family:i};let a=[];for(let o of n){let s=_6r(o);if(!s){uu(`Ignoring the unicode range "${o}" of the font face at ${r.url}: it is not a valid range.`);continue}a.push(s)}return a.length?{url:r.url,ranges:a,family:i}:null}_loadFontFace(e){return Ls(this,null,function*(){if(typeof FontFace>"u"||typeof document>"u"||!document.fonts)return uu(`Ignoring the font face at ${e.url}: this environment has no CSS Font Loading API.`),!1;let t;try{return t=new FontFace(e.family,yield this._downloadFontFile(e.url)),Object.values(this._faces).some(r=>r.includes(e))?(document.fonts.add(t),this._registered.add(t),yield t.load(),!0):!1}catch(r){return t&&this._unregister(t),uu(`Ignoring the font face at ${e.url}: ${f0(r).message}`),!1}})}_downloadFontFile(e){return Ls(this,null,function*(){let t=yield this.requestManager.transformRequest(e,"Glyphs"),r=yield Ine(t,new AbortController);if(!(r!=null&&r.data))throw Error(`the response was empty for the font file at ${e}`);return r.data})}_unregister(e){var t;(t=document.fonts)==null||t.delete(e),this._registered.delete(e)}_unregisterAll(){var e;for(let t of this._registered)(e=document.fonts)==null||e.delete(t);this._registered.clear()}destroy(){this._unregisterAll(),this._faces={}}},poe=1e20,Foe=new Float64Array(256);for(let e=0;e<256;e++){let t=.5-(e/255)**.45454545454545453;Foe[e]=t*Math.abs(t)}Foe[255]=-1e20;T6r=class{constructor({fontSize:e=24,buffer:t=3,radius:r=8,cutoff:i=.25,fontFamily:n="sans-serif",fontWeight:a="normal",fontStyle:o="normal",lang:s=null}={}){this.buffer=t,this.radius=r,this.cutoff=i,this.lang=s;let l=this.size=e+t*4,u=this._createCanvas(l),f=this.ctx=u.getContext("2d",{willReadFrequently:!0});f.font=`${o} ${a} ${e}px ${n}`,f.textBaseline="alphabetic",f.textAlign="left",f.fillStyle="black",this.gridOuter=new Float64Array(l*l),this.gridInner=new Float64Array(l*l),this.f=new Float64Array(l),this.z=new Float64Array(l+1),this.v=new Uint16Array(l)}_createCanvas(e){if(typeof OffscreenCanvas<"u")return new OffscreenCanvas(e,e);let t=document.createElement("canvas");return t.width=t.height=e,t}draw(e){let{width:t,actualBoundingBoxAscent:r,actualBoundingBoxDescent:i,actualBoundingBoxLeft:n,actualBoundingBoxRight:a}=this.ctx.measureText(e),o=Math.ceil(r),s=Math.floor(-n),l=Math.max(0,Math.min(this.size-this.buffer,Math.ceil(a)-s)),u=Math.max(0,Math.min(this.size-this.buffer,o+Math.ceil(i))),f=l+2*this.buffer,c=u+2*this.buffer,h=Math.max(f*c,0),d=new Uint8ClampedArray(h),p={data:d,width:f,height:c,glyphWidth:l,glyphHeight:u,glyphTop:o,glyphLeft:s,glyphAdvance:t};if(l===0||u===0)return p;let{ctx:v,buffer:y,gridInner:m,gridOuter:w}=this;this.lang&&(v.lang=this.lang),v.clearRect(y,y,l,u),v.fillText(e,y-s,y+o);let _=v.getImageData(y,y,l,u);w.fill(poe,0,h),m.fill(0,0,h);let b=3;for(let A=0;A{let r=new T6r(e);return r.buffer=t,r},E6r=class{constructor(e,t,r,i=S6r){this.requestManager=e,this.localIdeographFontFamily=t,this.entries={},this.lang=r,this.fontFaceManager=new A6r(e),this.createRasterizer=i}setURL(e){this.url=e}setFontFaces(e){this.fontFaceManager.setFontFaces(e),this.entries={}}getGlyphs(e){return Ls(this,null,function*(){var n;let t=[];for(let a in e)for(let o in e[a])for(let s of e[a][o])t.push(this._getAndCacheGlyphsPromise(a,s,o));let r=yield Promise.all(t),i={};for(let{stack:a,id:o,variant:s,glyph:l}of r)i[a]||(i[a]={}),(n=i[a])[s]||(n[s]={}),i[a][s][o]=l&&{id:l.id,bitmap:l.bitmap.clone(),metrics:l.metrics};return i})}_getAndCacheGlyphsPromise(e,t,r){return Ls(this,null,function*(){var l,u,f;(u=(l=this.entries)[e])!=null||(l[e]={glyphs:{default:{}},requests:{},ranges:{}});let i=this.entries[e],n=(f=i.glyphs)[r]||(f[r]={}),a=n[t];if(a!==void 0)return{stack:e,id:t,variant:r,glyph:a};if(r!=="default")return n[t]=null,{stack:e,id:t,variant:r,glyph:null};let o=t.codePointAt(0),s=this.fontFaceManager.hasFontFaces()?yield this.fontFaceManager.getFontFamily(e,o):null;return s?(a=n[t]=yield this._drawGlyph(i,e,t,s),{stack:e,id:t,variant:r,glyph:a}):!this.url||CC(t)||this._charUsesLocalIdeographFontFamily(o)?(a=n[t]=yield this._drawGlyph(i,e,t),{stack:e,id:t,variant:r,glyph:a}):$l(Gs({},yield this._downloadAndCacheRangePromise(e,t)),{variant:r})})}_downloadAndCacheRangePromise(e,t){return Ls(this,null,function*(){var a;let r=t.codePointAt(0),i=this.entries[e],n=Math.floor(r/256);if(i.ranges[n])return{stack:e,id:t,glyph:null};(a=i.requests)[n]||(a[n]=this._loadGlyphRange(e,n));try{let o=yield i.requests[n];for(let s in o)i.glyphs.default[String.fromCodePoint(+s)]=o[+s];return i.ranges[n]=!0,{stack:e,id:t,glyph:o[r]||null}}catch(o){let s=i.glyphs.default[t]=yield this._drawGlyph(i,e,t);return this._warnOnMissingGlyphRange(s,n,r,f0(o)),{stack:e,id:t,glyph:s}}})}_loadGlyphRange(e,t){return Ls(this,null,function*(){let r=t*256,i=r+255,n=yield this.requestManager.transformRequest(this.url.replace("{fontstack}",e).replace("{range}",`${r}-${i}`),"Glyphs"),a=yield Ine(n,new AbortController);if(!(a!=null&&a.data))throw Error(`Could not load glyph range. range: ${t}, ${r}-${i}`);let o={};for(let s of Eat(a.data))o[s.id]=s;return o})}_warnOnMissingGlyphRange(e,t,r,i){let n=t*256,a=n+255,o=r.toString(16).padStart(4,"0").toUpperCase();uu(`Unable to load glyph range ${t}, ${n}-${a}. Rendering codepoint U+${o} locally instead. ${i}`)}_charUsesLocalIdeographFontFamily(e){return!!this.localIdeographFontFamily&&gat(e)}_drawGlyph(e,t,r,i){return Ls(this,null,function*(){let n=(yield this._getTinySDF(e,t,r,i)).draw(r),a=new RegExp("^\\p{gc=Cf}+$","u").test(r);return{id:r.codePointAt(0),bitmap:new Pq({width:n.width||60,height:n.height||60},n.data),metrics:{width:a?0:n.glyphWidth/2||24,height:n.glyphHeight/2||24,left:n.glyphLeft/2+.5||0,top:n.glyphTop/2-27.5||-8,advance:a?0:n.glyphAdvance/2||24,isDoubleResolution:!0}}})}_getTinySDF(e,t,r,i){var l,u,f,c;let n=CC(r);if(i){let h=n?"clusterTinySDFs":"fontFaceTinySDFs";return(l=e[h])!=null||(e[h]={}),(u=e[h])[i]||(u[i]=this._createTinySDF(i,!1,n?3:1)),e[h][i]}let a=t===M6r&&this.localIdeographFontFamily!==""&&this._charUsesLocalIdeographFontFamily(r.codePointAt(0)),o=a?this.localIdeographFontFamily:t;if(n)return(f=e.clusterTinySDFs)!=null||(e.clusterTinySDFs={}),(c=e.clusterTinySDFs)[o]||(c[o]=this._createTinySDF(o,!0,3)),e.clusterTinySDFs[o];let s=a?"ideographTinySDF":"tinySDF";return e[s]||(e[s]=this._createTinySDF(o)),e[s]}_createTinySDF(e,t=!0,r=1){return Ls(this,null,function*(){var s;let i=e?e.split(","):[];i.push("sans-serif");let n=i.map(l=>/[-\w]+/.test(l)?l:`'${CSS.escape(l)}'`).join(","),a=t?this._fontWeight(i[0]):void 0,o=t?this._fontStyle(i[0]):"normal";if(typeof document<"u"&&((s=document.fonts)!=null&&s.load))try{yield document.fonts.load(`${o} ${a||"normal"} 48px ${n}`)}catch(l){uu(`Failed to load font "${n}": ${f0(l).message}`)}return this.createRasterizer({fontSize:48,buffer:Math.max(6,Math.ceil(48*(r-1)/4)),radius:16,cutoff:.25,fontFamily:n,fontWeight:a,fontStyle:o,lang:this.lang},6)})}_fontStyle(e){return/italic/i.test(e)?"italic":/oblique/i.test(e)?"oblique":"normal"}_fontWeight(e){let t={thin:100,hairline:100,"extra light":200,"ultra light":200,light:300,normal:400,regular:400,medium:500,semibold:600,demibold:600,bold:700,"extra bold":800,"ultra bold":800,black:900,heavy:900,"extra black":950,"ultra black":950},r;for(let[i,n]of Object.entries(t))RegExp(`\\b${i}\\b`,"i").test(e)&&(r=`${n}`);return r}destroy(){for(let e in this.entries){let t=this.entries[e];t.tinySDF=null,t.ideographTinySDF=null,t.fontFaceTinySDFs={},t.glyphs={default:{}},t.requests={},t.ranges={}}this.entries={},this.fontFaceManager.destroy()}},k6r=()=>Iot||(Iot=new Vh({anchor:new ms(hn.light.anchor,"anchor"),position:new ms(hn.light.position,"position"),color:new ms(hn.light.color,"color"),intensity:new ms(hn.light.intensity,"intensity")})),C6r=class extends ah{constructor(e,t){super(),this._transitionable=new MC(k6r(),"light",t),this.setLight(e),this._transitioning=this._transitionable.untransitioned()}getLight(){return this._transitionable.serialize()}getCartesianPosition(){return Prt(this.properties.get("position"))}setLight(e,t={}){this._validate(_d.light,e,t)||this._transitionable.setValues(e)}updateTransitions(e){this._transitioning=this._transitionable.transitioned(e,this._transitioning)}hasTransition(){return this._transitioning.hasTransition()}applyGlobalStateChange(e,t,r){this._transitioning=this._transitionable.applyGlobalStateChange(e,t,this._transitioning,r)}recalculate(e){this.properties=this._transitioning.possiblyEvaluate(e)}_validate(e,t,r){return J5(this,e,{value:t},r)}},D6r=()=>Rot||(Rot=new Vh({"sky-color":new ms(hn.sky["sky-color"],"sky-color"),"horizon-color":new ms(hn.sky["horizon-color"],"horizon-color"),"fog-color":new ms(hn.sky["fog-color"],"fog-color"),"fog-ground-blend":new ms(hn.sky["fog-ground-blend"],"fog-ground-blend"),"horizon-fog-blend":new ms(hn.sky["horizon-fog-blend"],"horizon-fog-blend"),"sky-horizon-blend":new ms(hn.sky["sky-horizon-blend"],"sky-horizon-blend"),"atmosphere-blend":new ms(hn.sky["atmosphere-blend"],"atmosphere-blend")})),F6r=class extends ah{constructor(e,t){super(),this._transitionable=new MC(D6r(),"sky",t),this.setSky(e),this._transitioning=this._transitionable.untransitioned(),this.recalculate(new Xu(0))}setSky(e,t={}){return!this._validate(_d.sky,e,t)&&(e||(e={"sky-color":"transparent","horizon-color":"transparent","fog-color":"transparent","fog-ground-blend":1,"atmosphere-blend":0}),this._transitionable.setValues(e),!0)}getSky(){return this._transitionable.serialize()}updateTransitions(e){this._transitioning=this._transitionable.transitioned(e,this._transitioning)}hasTransition(){return this._transitioning.hasTransition()}applyGlobalStateChange(e,t,r){this._transitioning=this._transitionable.applyGlobalStateChange(e,t,this._transitioning,r)}recalculate(e){this.properties=this._transitioning.possiblyEvaluate(e)}_validate(e,t,r={}){return J5(this,e,{value:t},r)}calculateFogBlendOpacity(e){return e<60?0:e<70?(e-60)/10:1}},L6r=class{constructor(e,t){this.width=e,this.height=t,this.nextRow=0,this.data=new Uint8Array(this.width*this.height),this.dashEntry={}}getDash(e,t){var i;let r=e.join(",")+String(t);return(i=this.dashEntry)[r]||(i[r]=this.addDash(e,t)),this.dashEntry[r]}getDashRanges(e,t,r){let i=e.length%2==1,n=[],a=i?-e[e.length-1]*r:0,o=e[0]*r,s=!0;n.push({left:a,right:o,isDash:s,zeroLength:e[0]===0});let l=e[0];for(let u=1;u1&&(l=e[++s]);let f=Math.abs(u-l.left),c=Math.abs(u-l.right),h=Math.min(f,c),d,p=n/r*(i+1);if(l.isDash){let v=i-Math.abs(p);d=Math.sqrt(h*h+v*v)}else d=i-Math.sqrt(h*h+p*p);this.data[o+u]=Math.max(0,Math.min(255,d+128))}}}addRegularDash(e){for(let o=e.length-1;o>=0;--o){let s=e[o],l=e[o+1];s.zeroLength?e.splice(o,1):(l==null?void 0:l.isDash)===s.isDash&&(l.left=s.left,e.splice(o,1))}let t=e[0],r=e[e.length-1];t.isDash===r.isDash&&(t.left=r.left-this.width,r.right=t.right+this.width);let i=this.width*this.nextRow,n=0,a=e[n];for(let o=0;o1&&(a=e[++n]);let s=Math.abs(o-a.left),l=Math.abs(o-a.right),u=Math.min(s,l),f=a.isDash?u:-u;this.data[i+o]=Math.max(0,Math.min(255,f+128))}}addDash(e,t){let r=t?7:0,i=2*r+1;if(this.nextRow+i>this.height)return uu("LineAtlas out of space"),null;let n=0;for(let o of e)n+=o;if(n!==0){let o=this.width/n,s=this.getDashRanges(e,this.width,o);t?this.addRoundDash(s,o,r):this.addRegularDash(s)}let a={y:this.nextRow+r,height:2*r,width:n};return this.nextRow+=i,this.dirty=!0,a}bind(e){let t=e.gl;this.texture?(t.bindTexture(t.TEXTURE_2D,this.texture),this.dirty&&(this.dirty=!1,t.texSubImage2D(t.TEXTURE_2D,0,0,0,this.width,this.height,t.ALPHA,t.UNSIGNED_BYTE,this.data))):(this.texture=t.createTexture(),t.bindTexture(t.TEXTURE_2D,this.texture),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_S,t.REPEAT),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_T,t.REPEAT),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,t.LINEAR),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,t.LINEAR),t.texImage2D(t.TEXTURE_2D,0,t.ALPHA,this.width,this.height,0,t.ALPHA,t.UNSIGNED_BYTE,this.data))}};Loe="maplibre_preloaded_worker_pool",bO=class jst{constructor(){this.active={},this.workersPromise=null}acquire(t){return Ls(this,null,function*(){if(this.active[t]=!0,!this.workersPromise){let r=[];for(;r.length{for(let n of i)n.terminate()})}}isPreloaded(){return!!this.active[Loe]}numActive(){return Object.keys(this.active).length}},q6r=Math.floor(Yd.hardwareConcurrency/2);bO.workerCount=Irt(globalThis)?Math.max(Math.min(q6r,3),1):1;Wst=class extends ah{constructor(e,t){super(),this.workerPool=e,this.actors=[],this.currentActor=0,this.id=t,this.removed=!1,this.workerErrorSubscriptions=[],this.actorsPromise=this.initActors(t)}initActors(e){return Ls(this,null,function*(){let t=yield this.workerPool.acquire(e);if(this.removed)return[];if(this.actors=t.map((r,i)=>{this.workerErrorSubscriptions.push($k(r,"error",()=>{this.fire(new tl(Error("Worker failed to load. Check that the worker URL is correct.")))},!1));let n=new $at(r,e);return n.name=`Worker ${i}`,n}),!this.actors.length)throw Error("No actors found");return this.actors})}broadcast(e,t){return Ls(this,null,function*(){let r=yield this.actorsPromise;return Promise.all(r.map(i=>i.sendAsync({type:e,data:t})))})}getActor(){return Ls(this,null,function*(){let e=yield this.actorsPromise;return this.currentActor=(this.currentActor+1)%e.length,e[this.currentActor]})}waitForInitComplete(){return Ls(this,null,function*(){this.actors.length===0&&(yield this.actorsPromise)})}getReadyActor(){return this.currentActor=(this.currentActor+1)%this.actors.length,this.actors[this.currentActor]}remove(e=!0){this.removed=!0;for(let t of this.actors)t.remove();for(let t of this.workerErrorSubscriptions)t.unsubscribe();this.actors=[],this.workerErrorSubscriptions=[],this.setEventedParent(null),e&&this.workerPool.release(this.id)}registerMessageHandler(e,t){return Ls(this,null,function*(){let r=yield this.actorsPromise;for(let i of r)i.registerMessageHandler(e,t)})}unregisterMessageHandler(e){return Ls(this,null,function*(){let t=yield this.actorsPromise;for(let r of t)r.unregisterMessageHandler(e)})}};B1=class ug{constructor(t,r){t&&(r?this.setSouthWest(t).setNorthEast(r):Array.isArray(t)&&(t.length===4?this.setSouthWest([t[0],t[1]]).setNorthEast([t[2],t[3]]):this.setSouthWest(t[0]).setNorthEast(t[1])))}setNorthEast(t){return this._ne=t instanceof Js?new Js(t.lng,t.lat):Js.convert(t),this}setSouthWest(t){return this._sw=t instanceof Js?new Js(t.lng,t.lat):Js.convert(t),this}extend(t){let r=this._sw,i=this._ne,n,a;if(t instanceof Js)n=t,a=t;else if(t instanceof ug){if(n=t._sw,a=t._ne,!n||!a)return this}else{if(Array.isArray(t)){if(t.length===4||t.every(Array.isArray)){let o=t;return this.extend(ug.convert(o))}{let o=t;return this.extend(Js.convert(o))}}return t&&("lng"in t||"lon"in t)&&"lat"in t?this.extend(Js.convert(t)):this}return!r&&!i?(this._sw=new Js(n.lng,n.lat),this._ne=new Js(a.lng,a.lat)):(r.lng=Math.min(n.lng,r.lng),r.lat=Math.min(n.lat,r.lat),i.lng=Math.max(a.lng,i.lng),i.lat=Math.max(a.lat,i.lat)),this}getCenter(){return new Js((this._sw.lng+this._ne.lng)/2,(this._sw.lat+this._ne.lat)/2)}getSouthWest(){return this._sw}getNorthEast(){return this._ne}getNorthWest(){return new Js(this.getWest(),this.getNorth())}getSouthEast(){return new Js(this.getEast(),this.getSouth())}getWest(){return this._sw.lng}getSouth(){return this._sw.lat}getEast(){return this._ne.lng}getNorth(){return this._ne.lat}toArray(){return[this._sw.toArray(),this._ne.toArray()]}toString(){return`LngLatBounds(${this._sw.toString()}, ${this._ne.toString()})`}isEmpty(){return!(this._sw&&this._ne)}contains(t){let{lng:r,lat:i}=Js.convert(t),n=this._sw.lat<=i&&i<=this._ne.lat,a=this._sw.lng<=r&&r<=this._ne.lng;return this._sw.lng>this._ne.lng&&(a=this._sw.lng>=r&&r>=this._ne.lng),n&&a}intersects(t){if(t=ug.convert(t),!(t.getNorth()>=this.getSouth()&&t.getSouth()<=this.getNorth()))return!1;let r=Math.abs(this.getEast()-this.getWest()),i=Math.abs(t.getEast()-t.getWest());if(r>=360||i>=360)return!0;let n=Tp(this.getWest(),-180,180),a=Tp(this.getEast(),-180,180),o=Tp(t.getWest(),-180,180),s=Tp(t.getEast(),-180,180),l=n>a,u=o>s;return l&&u?!0:l?s>=n||o<=a:u?a>=o||n<=s:o<=a&&s>=n}static convert(t){return t instanceof ug||!t?t:new ug(t)}static fromLngLat(t,r=0){let i=360*r/40075017,n=i/Math.cos(Math.PI/180*t.lat);return new ug(new Js(t.lng-n,t.lat-i),new Js(t.lng+n,t.lat+i))}adjustAntiMeridian(){let t=new Js(this._sw.lng,this._sw.lat),r=new Js(this._ne.lng,this._ne.lat);return t.lng>r.lng?new ug(t,new Js(r.lng+360,r.lat)):new ug(t,r)}},Zst=class{constructor(e,t,r){this.bounds=B1.convert(this.validateBounds(e)),this.minzoom=t||0,this.maxzoom=r||24}validateBounds(e){return!Array.isArray(e)||e.length!==4?[-180,-90,180,90]:[Math.max(-180,e[0]),Math.max(-90,e[1]),Math.min(180,e[2]),Math.min(90,e[3])]}contains(e){let t=2**e.z,r={minX:Math.floor(y3(this.bounds.getWest())*t),minY:Math.floor(g3(this.bounds.getNorth())*t),maxX:Math.ceil(y3(this.bounds.getEast())*t),maxY:Math.ceil(g3(this.bounds.getSouth())*t)};return e.x>=r.minX&&e.x=r.minY&&e.y{this.tiles=e,this._options.tiles=e}),this}setUrl(e){return this.setSourceProperty(()=>{this.url=e,this._options.url=e}),this}onRemove(){this._tileJSONRequest&&(this._tileJSONRequest=(this._tileJSONRequest.abort(),null))}serialize(){return js({},this._options)}loadTile(e){return Ls(this,null,function*(){let t=e.tileID.canonical.url(this.tiles,this.map.getPixelRatio(),this.scheme),r={request:yield this.map._requestManager.transformRequest(t,"Tile"),uid:e.uid,tileID:e.tileID,zoom:e.tileID.overscaledZ,tileSize:this.tileSize*e.tileID.overscaleFactor(),type:this.type,source:this.id,pixelRatio:this.map.getPixelRatio(),showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId,subdivisionGranularity:this.map.style.projection.subdivisionGranularity,encoding:this.encoding,overzoomParameters:yield this._getOverzoomParameters(e),etag:e.etag};if(r.request.collectResourceTiming=this._collectResourceTiming,yield this.dispatcher.waitForInitComplete(),e.aborted)return;let i="RT";if(!e.actor||e.state==="expired")e.actor=this.dispatcher.getReadyActor(),i="LT";else if(e.state==="loading")return new Promise((n,a)=>{e.reloadPromise={resolve:n,reject:a}});e.abortController=new AbortController;try{let n=yield e.actor.sendAsync({type:i,data:r},e.abortController);if(delete e.abortController,e.aborted)return;this._afterTileLoadWorkerResponse(e,n);let a={};return n!=null&&n.etagUnmodified&&(a.unmodified=!0),a}catch(n){if(delete e.abortController,e.aborted||ng(n))return;if(n&&n.status!==404)throw n;this._afterTileLoadWorkerResponse(e,null)}})}_getOverzoomParameters(e){return Ls(this,null,function*(){if(e.tileID.canonical.z<=this.maxzoom||this.map._zoomLevelsToOverscale===void 0)return;let t=e.tileID.scaledTo(this.maxzoom).canonical,r=t.url(this.tiles,this.map.getPixelRatio(),this.scheme);return{maxZoomTileID:t,overzoomRequest:yield this.map._requestManager.transformRequest(r,"Tile")}})}_afterTileLoadWorkerResponse(e,t){if(t!=null&&t.resourceTiming&&(e.resourceTiming=t.resourceTiming),t&&this.map._refreshExpiredTiles&&e.setExpiryData(t),e.etag=t==null?void 0:t.etag,e.loadVectorData(t,this.map.painter),e.reloadPromise){let r=e.reloadPromise;e.reloadPromise=null,this.loadTile(e).then(r.resolve).catch(r.reject)}}abortTile(e){return Ls(this,null,function*(){e.abortController&&(e.abortController.abort(),delete e.abortController),e.actor&&(yield e.actor.sendAsync({type:"AT",data:{uid:e.uid,type:this.type,source:this.id}}))})}unloadTile(e){return Ls(this,null,function*(){e.unloadVectorData(),e.actor&&(yield e.actor.sendAsync({type:"RMT",data:{uid:e.uid,type:this.type,source:this.id}}))})}hasTransition(){return!1}},Ioe=class extends ah{constructor(e,t,r,i){super(),this.id=e,this.dispatcher=r,this.setEventedParent(i),this.type="raster",this.minzoom=0,this.maxzoom=22,this.roundZoom=!0,this.scheme="xyz",this.tileSize=512,this._loaded=!1,this._premultiplyAlpha=!0,this._options=js({type:"raster"},t),js(this,Y5(t,["url","scheme","tileSize"]))}load(e=!1){return Ls(this,null,function*(){this._loaded=!1,this.fire(new Xf("dataloading")),this._tileJSONRequest=new AbortController;try{let t=yield Xst(this._options,this.map._requestManager,this._tileJSONRequest,this.map._ownerWindow);this._tileJSONRequest=null,this._loaded=!0,t&&(js(this,t),t.bounds&&(this.tileBounds=new Zst(t.bounds,this.minzoom,this.maxzoom)),this.fire(new Xf("data",{sourceDataType:"metadata"})),this.fire(new Xf("data",{sourceDataType:"content",sourceDataChanged:e})))}catch(t){this._tileJSONRequest=null,this._loaded=!0,ng(t)||this.fire(new tl(f0(t)))}})}loaded(){return this._loaded}onAdd(e){this.map=e,this.load()}onRemove(){this._tileJSONRequest&&(this._tileJSONRequest=(this._tileJSONRequest.abort(),null))}setSourceProperty(e){this._tileJSONRequest&&(this._tileJSONRequest=(this._tileJSONRequest.abort(),null)),e(),this.load(!0)}setTiles(e){return this.setSourceProperty(()=>{this.tiles=e,this._options.tiles=e}),this}setUrl(e){return this.setSourceProperty(()=>{this.url=e,this._options.url=e}),this}serialize(){return js({},this._options)}setPremultiplyAlpha(e){return this._premultiplyAlpha===e||this.setSourceProperty(()=>{this._premultiplyAlpha=e}),this}hasTile(e){return!this.tileBounds||this.tileBounds.contains(e.canonical)}loadTile(e){return Ls(this,null,function*(){var n;let t=e.tileID.canonical.url(this.tiles,this.map.getPixelRatio(),this.scheme),r=this._premultiplyAlpha,i=r?void 0:{premultiplyAlpha:"none"};e.abortController=new AbortController;try{let a=yield R1.transformAndGetImage(this.map._requestManager,t,"Tile",e.abortController,this.map._refreshExpiredTiles,i);if(delete e.abortController,e.aborted){e.state="unloaded";return}if(a){this.map._refreshExpiredTiles&&(a.cacheControl||a.expires)&&e.setExpiryData({cacheControl:a.cacheControl,expires:a.expires});let o=this.map.painter.context,s=o.gl,l=(n=a.data)!=null?n:new qf({width:1,height:1},new Uint8Array(4));e.texture=this.map.painter.getTileTexture(l.width),e.texture?e.texture.update(l,{useMipmap:!0,premultiply:r}):(e.texture=new ph(o,l,s.RGBA,{useMipmap:!0,premultiply:r}),e.texture.bind(s.LINEAR,s.CLAMP_TO_EDGE,s.LINEAR_MIPMAP_NEAREST)),e.state="loaded"}}catch(a){if(delete e.abortController,e.aborted)e.state="unloaded";else if(a)throw e.state="errored",a}})}abortTile(e){return Ls(this,null,function*(){e.abortController&&(e.abortController.abort(),delete e.abortController)})}unloadTile(e){return Ls(this,null,function*(){e.texture&&this.map.painter.saveTileTexture(e.texture)})}hasTransition(){return!1}},Jst=class extends Ioe{constructor(e,t,r,i){super(e,t,r,i),this.type="raster-dem",this.maxzoom=22,this._options=js({type:"raster-dem"},t),this.encoding=t.encoding||"mapbox",this.redFactor=t.redFactor,this.greenFactor=t.greenFactor,this.blueFactor=t.blueFactor,this.baseShift=t.baseShift}loadTile(e){return Ls(this,null,function*(){let t=e.tileID.canonical.url(this.tiles,this.map.getPixelRatio(),this.scheme);e.neighboringTiles=this._getNeighboringTiles(e.tileID),e.abortController=new AbortController;try{let r=yield R1.transformAndGetImage(this.map._requestManager,t,"Tile",e.abortController,this.map._refreshExpiredTiles,{colorSpaceConversion:"none"});if(delete e.abortController,e.aborted){e.state="unloaded";return}if(r){if(this.map._refreshExpiredTiles&&(r.cacheControl||r.expires)&&e.setExpiryData({cacheControl:r.cacheControl,expires:r.expires}),!r.data){e.state="loaded";return}let i=r.data,n=gx(i)&&K7()?i:yield this.readImageNow(i),a={type:this.type,uid:e.uid,source:this.id,rawImageData:n,encoding:this.encoding,redFactor:this.redFactor,greenFactor:this.greenFactor,blueFactor:this.blueFactor,baseShift:this.baseShift};if(e.actor&&e.state!=="expired"&&e.state!=="reloading")return;yield this.dispatcher.waitForInitComplete(),(!e.actor||e.state==="expired")&&(e.actor=this.dispatcher.getReadyActor()),e.dem=yield e.actor.sendAsync({type:"LDT",data:a}),e.needsHillshadePrepare=!0,e.needsTerrainPrepare=!0,e.needsColorReliefPrepare=!0,e.state="loaded"}}catch(r){if(delete e.abortController,e.aborted)e.state="unloaded";else if(r)throw e.state="errored",r}})}readImageNow(e){return Ls(this,null,function*(){if(typeof VideoFrame<"u"&&_ne()){let t=e.width+4,r=e.height+4;try{return new qf({width:t,height:r},yield qrt(e,-2,-2,t,r))}catch(i){}}return Yd.getImageData(e,2)})}_getNeighboringTiles(e){let t=e.canonical,r=2**t.z,i=(t.x-1+r)%r,n=t.x===0?e.wrap-1:e.wrap,a=(t.x+1+r)%r,o=t.x+1===r?e.wrap+1:e.wrap,s={};return s[new p0(e.overscaledZ,n,t.z,i,t.y).key]={backfilled:!1},s[new p0(e.overscaledZ,o,t.z,a,t.y).key]={backfilled:!1},t.y>0&&(s[new p0(e.overscaledZ,n,t.z,i,t.y-1).key]={backfilled:!1},s[new p0(e.overscaledZ,e.wrap,t.z,t.x,t.y-1).key]={backfilled:!1},s[new p0(e.overscaledZ,o,t.z,a,t.y-1).key]={backfilled:!1}),t.y+1qot(t))}}shouldReloadTile(e,{affectedBounds:t}){if(e.state==="loading")return!0;if(e.state==="unloaded")return!1;let{buffer:r,extent:i}=this.workerOptions.geojsonVtOptions,n=tMr(e.tileID.canonical,r/i);for(let a of t)if(n.intersects(a))return!0;return!1}loaded(){return!this._isUpdatingWorker&&!this._hasPendingWorkerUpdate()}loadTile(e){return Ls(this,null,function*(){let t=e.actor?"RT":"LT";e.actor=yield this.actorPromise;let r={type:this.type,uid:e.uid,tileID:e.tileID,zoom:e.tileID.overscaledZ,maxZoom:this.maxzoom,tileSize:this.tileSize,source:this.id,pixelRatio:this.map.getPixelRatio(),showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId,subdivisionGranularity:this.map.style.projection.subdivisionGranularity};e.abortController=new AbortController;try{let i=yield(yield this.actorPromise).sendAsync({type:t,data:r},e.abortController);delete e.abortController,e.unloadVectorData(),e.aborted||e.loadVectorData(i,this.map.painter,t==="RT")}catch(i){if(delete e.abortController,e.aborted||ng(i))return;throw i}})}abortTile(e){return Ls(this,null,function*(){e.abortController&&(e.abortController.abort(),delete e.abortController),e.aborted=!0})}unloadTile(e){return Ls(this,null,function*(){e.unloadVectorData(),yield(yield this.actorPromise).sendAsync({type:"RMT",data:{uid:e.uid,type:this.type,source:this.id}})})}onRemove(){this._removed=!0,this.actorPromise.then(e=>e.sendAsync({type:"RS",data:{type:this.type,source:this.id}}))}serialize(){return js({},this._options,{type:this.type,data:this._data.updateable?{type:"FeatureCollection",features:Array.from(this._data.updateable.values())}:this._data.url||this._data.geojson})}hasTransition(){return!1}},oT=[0,0,1],rMr=(e,t)=>({u_tl_parent:new Jl(e,t.u_tl_parent),u_scale_parent:new gs(e,t.u_scale_parent),u_buffer_scale:new gs(e,t.u_buffer_scale),u_image_warp:new nd(e,t.u_image_warp),u_fade_t:new gs(e,t.u_fade_t),u_opacity:new gs(e,t.u_opacity),u_image0:new rl(e,t.u_image0),u_image1:new rl(e,t.u_image1),u_brightness_low:new gs(e,t.u_brightness_low),u_brightness_high:new gs(e,t.u_brightness_high),u_saturation_factor:new gs(e,t.u_saturation_factor),u_contrast_factor:new gs(e,t.u_contrast_factor),u_spin_weights:new nd(e,t.u_spin_weights),u_coords_top:new Q5(e,t.u_coords_top),u_coords_bottom:new Q5(e,t.u_coords_bottom)}),iMr=(e,t,r,i,n,a)=>({u_tl_parent:e,u_scale_parent:t,u_buffer_scale:1,u_image_warp:a,u_fade_t:r.mix,u_opacity:r.opacity*i.paint.get("raster-opacity"),u_image0:0,u_image1:1,u_brightness_low:i.paint.get("raster-brightness-min"),u_brightness_high:i.paint.get("raster-brightness-max"),u_saturation_factor:oMr(i.paint.get("raster-saturation")),u_contrast_factor:aMr(i.paint.get("raster-contrast")),u_spin_weights:nMr(i.paint.get("raster-hue-rotate")),u_coords_top:[n[0].x,n[0].y,n[1].x,n[1].y],u_coords_bottom:[n[3].x,n[3].y,n[2].x,n[2].y]});eD=class{constructor(e,t,r){this.vertexBuffer=e,this.indexBuffer=t,this.segments=r}destroy(){this.vertexBuffer.destroy(),this.indexBuffer.destroy(),this.segments.destroy(),this.vertexBuffer=null,this.indexBuffer=null,this.segments=null}},T3=dc([{name:"a_pos",type:"Int16",components:2}]),Yq=Aa/128;uT=class extends ah{constructor(e,t,r,i){super(),this.imageWarp=oT,this.flippedWindingOrder=!1,this._warp="auto",this._imageDirty=!1,this._subdividedQuad=!1,this._subdividedMesh=null,this.id=e,this.dispatcher=r,this.coordinates=t.coordinates,this.type="image",this.minzoom=0,this.maxzoom=22,this.tileSize=512,this.tiles={},this._loaded=!1,this.setEventedParent(i),this.options=t}load(e){return Ls(this,null,function*(){if(this.options.url===void 0){this._loaded=!0,this._finishLoading();return}this._loaded=!1,this.fire(new Xf("dataloading")),this.url=this.options.url,this._abortController=new AbortController;try{let t=yield R1.transformAndGetImage(this.map._requestManager,this.url,"Image",this._abortController);this._abortController=null,this._loaded=!0,t!=null&&t.data?(this._setImage(t.data),e&&(this.coordinates=e),this._finishLoading()):this.fire(new tl(Error(`Could not load image ${this.url}: the response is empty`)))}catch(t){if(ng(t))return;this._abortController=null,this._loaded=!0,this.fire(new tl(f0(t)))}})}loaded(){return this._loaded}updateImage(e){return this._abortController&&(this._abortController=(this._abortController.abort(),null)),"image"in e?(this._loaded=!0,this._setImage(e.image),e.coordinates&&(this.coordinates=e.coordinates),this._finishLoading(),this):e.url?(this.options.url=e.url,this.load(e.coordinates),this):this}_setImage(e){this.image=e,this._imageDirty=!0}getMesh(e,t){var r;return!this._subdividedQuad||t?null:((r=this._subdividedMesh)!=null||(this._subdividedMesh=tlt(e,{granularity:16})),this._subdividedMesh)}_disposeTexture(){var e;(e=this.texture)==null||e.destroy(),this.texture=null}_finishLoading(){this.map&&(this.setCoordinates(this.coordinates),this.fire(new Xf("data",{sourceDataType:"metadata"})))}onAdd(e){this.map=e,this.load()}onRemove(){var e;this._abortController&&(this._abortController=(this._abortController.abort(),null)),this._disposeTexture(),(e=this._subdividedMesh)==null||e.destroy(),this._subdividedMesh=null,this.image=null,this.tiles={}}setWarp(e){return this._warp===e?this:(this._warp=e,this.tileCoords&&this.setCoordinates(this.coordinates),this)}getWarp(){return this._warp}setCoordinates(e){this.coordinates=e;let t=e.map(Uu.fromLngLat);return this.tileID=sMr(t),this.terrainTileRanges=this._getOverlappingTileRanges(t),this.minzoom=this.maxzoom=this.tileID.z,this.tileCoords=t.map(r=>this.tileID.getTilePoint(r)._round()),this.imageWarp=uMr(this.tileCoords,this._warp),this._subdividedQuad=this.imageWarp[2]>0&&!ilt(this.tileCoords),this.flippedWindingOrder=lMr(this.tileCoords),this.fire(new Xf("data",{sourceDataType:"content"})),this}prepare(){if(Object.keys(this.tiles).length===0||!this.image)return;let e=this.map.painter.context,t=e.gl;this.texture?this._imageDirty&&(this.texture.update(this.image),this.texture.bind(t.LINEAR,t.CLAMP_TO_EDGE)):(this.texture=new ph(e,this.image,t.RGBA),this.texture.bind(t.LINEAR,t.CLAMP_TO_EDGE)),this._imageDirty=!1;let r=!1;for(let i in this.tiles){let n=this.tiles[i];n.state!=="loaded"&&(n.state="loaded",n.texture=this.texture,r=!0)}r&&this.fire(new Xf("data",{sourceDataType:"idle",sourceId:this.id}))}loadTile(e){return Ls(this,null,function*(){var t;(t=this.tileID)!=null&&t.equals(e.tileID.canonical)?(this.tiles[String(e.tileID.wrap)]=e,e.buckets={}):e.state="errored"})}serialize(){let e={type:"image",coordinates:this.coordinates};return this.options.url!==void 0&&(e.url=this.options.url),e}hasTransition(){return!1}_getOverlappingTileRanges(e){let{minX:t,minY:r,maxX:i,maxY:n}=Ev.fromPoints(e),a={};for(let o=0;o<=25;o++){let s=2**o,l=Math.floor(t*s),u=Math.floor(r*s),f=Math.floor(i*s),c=Math.floor(n*s),h=(l%s+s)%s,d=f%s,p=Math.floor(l/s),v=Math.floor(f/s);a[o]={minWrap:p,maxWrap:v,minTileXWrapped:h,maxTileXWrapped:d,minTileY:u,maxTileY:c}}return a}};nlt=class extends uT{constructor(e,t,r,i){super(e,t,r,i),this._onPlayingHandler=()=>{var n;(n=this.map)==null||n.triggerRepaint()},this.roundZoom=!0,this.type="video",this.options=t}load(){return Ls(this,null,function*(){this._loaded=!1;let e=this.options;this.urls=[];for(let t of e.urls)this.urls.push((yield this.map._requestManager.transformRequest(t,"Source")).url);try{let t=yield $rt(this.urls);if(this._loaded=!0,!t)return;this.video=t,this.video.loop=!0,this.video.addEventListener("playing",this._onPlayingHandler),this.map&&this.video.play(),this._finishLoading()}catch(t){this.fire(new tl(f0(t)))}})}pause(){this.video&&this.video.pause()}play(){this.video&&this.video.play()}seek(e){if(this.video){let t=this.video.seekable;et.end(0)?this.fire(new tl(new Ao(`sources.${this.id}`,null,`Playback for this video can be set only between the ${t.start(0)} and ${t.end(0)}-second mark.`))):this.video.currentTime=e}}getVideo(){return this.video}onAdd(e){this.map||(this.map=e,this.load(),this.video&&(this.video.play(),this.setCoordinates(this.coordinates)))}onRemove(){super.onRemove(),this.video&&(this.video.removeEventListener("playing",this._onPlayingHandler),this.video.pause())}prepare(){if(Object.keys(this.tiles).length===0||this.video.readyState<2)return;let e=this.map.painter.context,t=e.gl;this.texture?this.video.paused||(this.texture.bind(t.LINEAR,t.CLAMP_TO_EDGE),t.texSubImage2D(t.TEXTURE_2D,0,0,0,t.RGBA,t.UNSIGNED_BYTE,this.video)):(this.texture=new ph(e,this.video,t.RGBA),this.texture.bind(t.LINEAR,t.CLAMP_TO_EDGE));let r=!1;for(let i in this.tiles){let n=this.tiles[i];n.state!=="loaded"&&(n.state="loaded",n.texture=this.texture,r=!0)}r&&this.fire(new Xf("data",{sourceDataType:"idle",sourceId:this.id}))}serialize(){return{type:"video",urls:this.urls,coordinates:this.coordinates}}hasTransition(){return this.video&&!this.video.paused}},alt=class extends uT{constructor(e,t,r,i){super(e,t,r,i),t.coordinates?(!Array.isArray(t.coordinates)||t.coordinates.length!==4||t.coordinates.some(n=>!Array.isArray(n)||n.length!==2||n.some(a=>typeof a!="number")))&&this.fire(new tl(new Ao(`sources.${e}`,null,'"coordinates" property must be an array of 4 longitude/latitude array pairs'))):this.fire(new tl(new Ao(`sources.${e}`,null,'missing required property "coordinates"'))),t.animate&&typeof t.animate!="boolean"&&this.fire(new tl(new Ao(`sources.${e}`,null,'optional "animate" property must be a boolean value'))),t.canvas?typeof t.canvas!="string"&&!(t.canvas instanceof HTMLCanvasElement)&&this.fire(new tl(new Ao(`sources.${e}`,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 tl(new Ao(`sources.${e}`,null,'missing required property "canvas"'))),this.options=t,this.animate=t.animate===void 0||t.animate}load(){return Ls(this,null,function*(){if(this._loaded=!0,this.canvas||(this.canvas=this.options.canvas instanceof HTMLCanvasElement?this.options.canvas:document.getElementById(this.options.canvas)),this.width=this.canvas.width,this.height=this.canvas.height,this._hasInvalidDimensions()){this.fire(new tl(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._playing=(this.prepare(),!1))},this._finishLoading()})}getCanvas(){return this.canvas}onAdd(e){this.map=e,this.load(),this.canvas&&this.animate&&this.play()}onRemove(){this._playing=!1,super.onRemove()}prepare(){let e=!1;if(this.canvas.width!==this.width&&(this.width=this.canvas.width,e=!0),this.canvas.height!==this.height&&(this.height=this.canvas.height,e=!0),this._hasInvalidDimensions()||Object.keys(this.tiles).length===0)return;let t=this.map.painter.context,r=t.gl;this.texture?(e||this._playing)&&this.texture.update(this.canvas,{premultiply:!0}):(this.texture=new ph(t,this.canvas,r.RGBA,{premultiply:!0}),this.texture.bind(r.LINEAR,r.CLAMP_TO_EDGE));let i=!1;for(let n in this.tiles){let a=this.tiles[n];a.state!=="loaded"&&(a.state="loaded",a.texture=this.texture,i=!0)}i&&this.fire(new Xf("data",{sourceDataType:"idle",sourceId:this.id}))}serialize(){return{type:"canvas",animate:this.animate,canvas:this.options.canvas,coordinates:this.coordinates}}hasTransition(){return this._playing}_hasInvalidDimensions(){for(let e of[this.canvas.width,this.canvas.height])if(isNaN(e)||e<=0)return!0;return!1}},olt={},cMr=(e,t,r,i)=>{let n=new(slt(t.type))(e,t,r,i);if(n.id!==e)throw Error(`Expected Source id to be ${e} instead of ${n.id}`);return n},slt=e=>{switch(e){case"geojson":return elt;case"image":return uT;case"raster":return Ioe;case"raster-dem":return Jst;case"vector":return Kst;case"video":return nlt;case"canvas":return alt}return olt[e]},hMr=(e,t)=>{olt[e]=t},dMr=(e,t)=>Ls(null,null,function*(){if(slt(e))throw Error(`A source type called "${e}" already exists.`);hMr(e,t)});voe="RTLPluginLoaded",vMr=class extends ah{constructor(...e){super(...e),this.status="unavailable",this.url=null,this.dispatcher=zoe()}_syncState(e){return this.status=e,this.dispatcher.broadcast("SRPS",{pluginStatus:e,pluginURL:this.url}).catch(t=>{throw this.status="error",t})}getRTLTextPluginStatus(){return this.status}clearRTLTextPlugin(){this.status="unavailable",this.url=null}setRTLTextPlugin(e,t=!1){return Ls(this,null,function*(){if(this.url)throw Error("setRTLTextPlugin cannot be called multiple times.");if(this.url=Yd.resolveURL(e),!this.url)throw Error(`requested url ${e} is invalid`);if(this.status==="unavailable")if(t)this.status="deferred",this._syncState(this.status);else return this._requestImport();else if(this.status==="requested")return this._requestImport()})}_requestImport(){return Ls(this,null,function*(){yield this._syncState("loading"),this.status="loaded",this.fire(new Wd(voe))})}lazyLoad(){this.status==="unavailable"?this.status="requested":this.status==="deferred"&&this._requestImport()}},$ae=null;llt=class{constructor(e,t){this.timeAdded=0,this.fadeEndTime=0,this.fadeOpacity=1,this.tileID=e,this.uid=Cne(),this.uses=0,this.tileSize=t,this.buckets={},this.expirationTime=null,this.queryPadding=0,this.hasSymbolBuckets=!1,this.hasRTLText=!1,this.dependencies={},this.rttObjects=[],this.rttFingerprint={},this.expiredRequestCount=0,this.state="loading",this.featureStateRevision=-1}isRenderable(e){return this.hasData()&&(!this.fadeEndTime||this.fadingDirection!==0||this.fadeOpacity>0)&&(e||!this.holdingForSymbolFade())}setCrossFadeLogic({fadingRole:e,fadingDirection:t,fadingParentID:r,fadeEndTime:i}){this.resetFadeLogic(),this.fadingRole=e,this.fadingDirection=t,this.fadingParentID=r,this.fadeEndTime=i}setSelfFadeLogic(e){this.resetFadeLogic(),this.selfFading=!0,this.fadeEndTime=e}resetFadeLogic(){this.fadingRole=null,this.fadingDirection=null,this.fadingParentID=null,this.selfFading=!1,this.timeAdded=Ku(),this.fadeEndTime=0,this.fadeOpacity=1}wasRequested(){return this.state==="errored"||this.state==="loaded"||this.state==="reloading"}clearTextures(e){this.demTexture&&e.saveTileTexture(this.demTexture),this.demTexture=null}getRTT(e){return this.rttObjects[e]}acquireRTT(e,t,r){return this.rttObjects[t]=e.acquireRTT(r)}releaseRTT(e){if(this.rttObjects.length!==0){for(let t of this.rttObjects)t&&e.releaseRTT(t);this.rttObjects.length=0}}loadVectorData(e,t,r){if((e==null?void 0:e.etagUnmodified)===!0){this.state="loaded";return}if(this.hasData()&&this.unloadVectorData(),this.state="loaded",!e){this.collisionBoxArray=new nae;return}e.featureIndex&&(this.latestFeatureIndex=e.featureIndex,e.rawTileData?(this.latestRawTileData=e.rawTileData,this.latestEncoding=e.encoding,this.latestFeatureIndex.rawTileData=e.rawTileData,this.latestFeatureIndex.encoding=e.encoding):this.latestRawTileData&&(this.latestFeatureIndex.rawTileData=this.latestRawTileData,this.latestFeatureIndex.encoding=this.latestEncoding)),this.collisionBoxArray=e.collisionBoxArray,this.buckets=pMr(e.buckets,t==null?void 0:t.style),this.hasSymbolBuckets=!1;for(let i in this.buckets){let n=this.buckets[i];if(n instanceof zC)if(this.hasSymbolBuckets=!0,r)n.justReloaded=!0;else break}if(this.hasRTLText=!1,this.hasSymbolBuckets)for(let i in this.buckets){let n=this.buckets[i];if(n instanceof zC&&n.hasRTLText){this.hasRTLText=!0,QC().lazyLoad();break}}this.queryPadding=0;for(let i in this.buckets){let n=this.buckets[i];this.queryPadding=Math.max(this.queryPadding,t.style.getLayer(i).queryRadius(n))}e.imageAtlas&&(this.imageAtlas=e.imageAtlas),e.glyphAtlasImage&&(this.glyphAtlasImage=e.glyphAtlasImage),this.dashPositions=e.dashPositions}unloadVectorData(){for(let e in this.buckets)this.buckets[e].destroy();this.buckets={},this.imageAtlasTexture&&this.imageAtlasTexture.destroy(),this.glyphAtlasTexture&&this.glyphAtlasTexture.destroy(),this.imageAtlas=null,this.dashPositions=null,this.latestFeatureIndex=null,this.state="unloaded"}getBucket(e){return this.buckets[e.id]}upload(e){for(let r in this.buckets){let i=this.buckets[r];i.uploadPending()&&i.upload(e)}let t=e.gl;this.imageAtlas&&!this.imageAtlas.uploaded&&(this.imageAtlasTexture=new ph(e,this.imageAtlas.image,t.RGBA),this.imageAtlas.uploaded=!0),this.glyphAtlasImage&&(this.glyphAtlasImage=(this.glyphAtlasTexture=new ph(e,this.glyphAtlasImage,t.ALPHA),null))}prepare(e){this.imageAtlas&&this.imageAtlas.patchUpdatedImages(e,this.imageAtlasTexture)}queryRenderedFeatures(e,t,r,i,n,a,o,s,l,u,f){var c;return(c=this.latestFeatureIndex)!=null&&c.rawTileData?this.latestFeatureIndex.query({queryGeometry:i,cameraQueryGeometry:n,scale:a,tileSize:this.tileSize,pixelPosMatrix:u,transform:s,params:o,queryPadding:this.queryPadding*l,getElevation:f},e,t,r):{}}querySourceFeatures(e,t){let r=this.latestFeatureIndex;if(!(r!=null&&r.rawTileData))return;let i=r.loadVTLayers(),n=t!=null&&t.sourceLayer?t.sourceLayer:"",a=i._geojsonTileLayer||i[n];if(!a)return;let o=G5(t==null?void 0:t.filter,`querySourceFeatures[${n}].filter`,t==null?void 0:t.globalState),{z:s,x:l,y:u}=this.tileID.canonical,f={z:s,x:l,y:u};for(let c=0;cr)i=!1;else if(!t)i=!0;else if(this.expirationTimethis.max[0]||t.aabb.min[1]>this.max[1]||t.aabb.min[2]>this.max[2]||t.aabb.max[0]0?(r+=t[n]*this.min[n],i+=t[n]*this.max[n]):(i+=t[n]*this.min[n],r+=t[n]*this.max[n]);return r>=0?2:i<0?0:1}},Boe=class flt{constructor(t,r,i){this.points=t,this.planes=r,this.aabb=i}static fromInvProjectionMatrix(t,r=1,i=0,n,a){let o=[[-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]],s=a?[[6,5,4],[0,1,2],[0,3,7],[2,1,5],[3,2,6],[0,4,5]]:[[0,1,2],[6,5,4],[0,3,7],[2,1,5],[3,2,6],[0,4,5]],l=2**i,u=o.map(d=>yMr(d,t,r,l));n&&gMr(u,s[0],n,a);let f=s.map(d=>{let p=Um([],u[d[0]],u[d[1]]),v=Um([],u[d[2]],u[d[1]]),y=rd([],bd([],p,v)),m=-nh(y,u[d[1]]);return y.concat(m)}),c=[1/0,1/0,1/0],h=[-1/0,-1/0,-1/0];for(let d of u)for(let p=0;p<3;p++)c[p]=Math.min(c[p],d[p]),h[p]=Math.max(h[p],d[p]);return new flt(u,f,new Roe(c,h))}};wMr=moe(9.314,3);Hot=class{constructor(){this._tiles={}}handleWrapJump(e){let t={};for(let r in this._tiles){let i=this._tiles[r];i.tileID=i.tileID.unwrapTo(i.tileID.wrap+e),t[i.tileID.key]=i}this._tiles=t}setFeatureState(e,t,r){for(let i in this._tiles)this._tiles[i].setFeatureState(e,t,r)}getAllTiles(){return Object.values(this._tiles)}getAllIds(e=!1){return e?Object.values(this._tiles).map(t=>t.tileID).sort(Sae).map(t=>t.key):Object.keys(this._tiles)}getTileById(e){return this._tiles[e]}setTile(e,t){this._tiles[e]=t}deleteTileById(e){delete this._tiles[e]}getLoadedTile(e){let t=this.getTileById(e.key);return t!=null&&t.hasData()?t:null}isIdRenderable(e,t=!1){var r;return(r=this.getTileById(e))==null?void 0:r.isRenderable(t)}getRenderableIds(e=0,t){let r=[];for(let i of this.getAllIds())this.isIdRenderable(i,t)&&r.push(this.getTileById(i));return t?r.sort((i,n)=>{let a=i.tileID,o=n.tileID,s=new Jr(a.canonical.x,a.canonical.y)._rotate(-e),l=new Jr(o.canonical.x,o.canonical.y)._rotate(-e);return a.overscaledZ-o.overscaledZ||l.y-s.y||l.x-s.x}).map(i=>i.tileID.key):r.map(i=>i.tileID).sort(Sae).map(i=>i.key)}},yoe=(cg=class extends ah{constructor(t,r,i){super(),this._maxContentElevationSeen=0,this.id=t,this.dispatcher=i,this.on("data",n=>{this._dataHandler(n)}),this.on("dataloading",()=>{this._sourceErrored=!1}),this.on("error",()=>{this._sourceErrored=this._source.loaded()}),this._source=cMr(t,r,i,this),this._inViewTiles=new Hot,this._outOfViewCache=new Mot(0,n=>this._unloadTile(n)),this._timers={},this._maxTileCacheSize=null,this._maxTileCacheZoomLevels=null,this._rasterFadeDuration=0,this._maxFadingAncestorLevels=5,this._state=new mMr,this._didEmitContent=!1,this._updated=!1}onAdd(t){var r;this.map=t,this._maxTileCacheSize=t?t._maxTileCacheSize:null,this._maxTileCacheZoomLevels=t?t._maxTileCacheZoomLevels:null,(r=this._source)!=null&&r.onAdd&&this._source.onAdd(t)}onRemove(t){var r;for(let i of this._inViewTiles.getAllTiles())i.unloadVectorData();this.clearTiles(),(r=this._source)!=null&&r.onRemove&&this._source.onRemove(t),this._inViewTiles=new Hot}loaded(){if(this._sourceErrored)return!0;if(!this._sourceLoaded||!this._source.loaded())return!1;if((this.used!==void 0||this.usedForTerrain!==void 0)&&!this.used&&!this.usedForTerrain)return!0;if(!this._updated)return!1;for(let t of this._inViewTiles.getAllTiles())if(t.state!=="loaded"&&t.state!=="errored")return!1;return!0}getSource(){return this._source}getState(){return this._state}pause(){this._paused=!0}resume(){if(!this._paused)return;let t=this._shouldReloadOnResume;this._paused=!1,this._shouldReloadOnResume=!1,t&&this.reload(),this.transform&&this.update(this.transform,this.terrain)}_loadTile(t,r,i,n){return Ls(this,null,function*(){try{let a=yield this._source.loadTile(t);this._tileLoaded(t,r,i,n,a)}catch(a){t.state="errored",a.status===404?this.update(this.transform,this.terrain):this._source.fire(new tl(f0(a),{tile:t}))}})}_unloadTile(t){this._source.unloadTile&&this._source.unloadTile(t)}_abortTile(t){this._source.abortTile&&this._source.abortTile(t),this._source.fire(new Xf("dataabort",{tile:t,coord:t.tileID}))}serialize(){return this._source.serialize()}prepare(t){this._source.prepare&&this._source.prepare(),this._state.coalesceChanges(this._inViewTiles,this.map?this.map.painter:null);for(let r of this._inViewTiles.getAllTiles())r.upload(t),r.prepare(this.map.style.imageManager)}getIds(){return this._inViewTiles.getAllIds(!0)}getRenderableIds(t){var r;return this._inViewTiles.getRenderableIds((r=this.transform)==null?void 0:r.bearingInRadians,t)}hasRenderableParent(t){let r=t.overscaledZ-1;if(r>=this._source.minzoom){let i=this.getLoadedTile(t.scaledTo(r));if(i)return this._inViewTiles.isIdRenderable(i.tileID.key)}return!1}reload(t,r=void 0){if(this._paused){this._shouldReloadOnResume=!0;return}this._outOfViewCache.reset();for(let i of this._inViewTiles.getAllIds()){let n=this._inViewTiles.getTileById(i);(!r||this._source.shouldReloadTile(n,r))&&(t?this._reloadTile(i,n.state==="errored"?"loading":"expired"):n.state!=="errored"&&this._reloadTile(i,"reloading"))}}_reloadTile(t,r){return Ls(this,null,function*(){let i=this._inViewTiles.getTileById(t);if(!i)return;let n=i.hasData();i.state!=="loading"&&(i.state=r),yield this._loadTile(i,t,r,n)})}_tileLoaded(t,r,i,n,a){n||(t.timeAdded=Ku(),t.selfFading&&(t.fadeEndTime=t.timeAdded+this._rasterFadeDuration)),i==="expired"&&(t.refreshedUponExpiration=!0),this._setTileReloadTimer(r,t),!(a!=null&&a.unmodified)&&(this.getSource().type==="raster-dem"&&t.dem&&FMr(t,this._inViewTiles),t.featureStateRevision=-1,this._state.initializeTileState(t,this.map?this.map.painter:null),t.aborted||this._source.fire(new Xf("data",{tile:t,coord:t.tileID})))}getTile(t){return this.getTileByID(t.key)}getTileByID(t){return this._inViewTiles.getTileById(t)}_retainLoadedChildren(t,r){let i=this._getLoadedDescendents(r),n=new Set;for(let a of r){let o=i[a.key];if(!(o!=null&&o.length)){n.add(a);continue}let s=a.overscaledZ+cg.maxOverzooming,l=o.filter(c=>c.tileID.overscaledZ<=s);if(!l.length){n.add(a);continue}let u=Math.min(...l.map(c=>c.tileID.overscaledZ)),f=l.filter(c=>c.tileID.overscaledZ===u).map(c=>c.tileID);for(let c of f)t[c.key]=c;this._areDescendentsComplete(f,u,a.overscaledZ)||n.add(a)}return n}_getLoadedDescendents(t){var i;let r={};for(let n of this._inViewTiles.getAllTiles().filter(a=>a.hasData()))for(let a of t)n.tileID.isChildOf(a)&&(r[i=a.key]||(r[i]=[]),r[a.key].push(n));return r}_areDescendentsComplete(t,r,i){return t.length===1&&t[0].isOverscaled()?t[0].overscaledZ===r:4**(r-i)===t.length}getLoadedTile(t){return this._inViewTiles.getLoadedTile(t)}updateCacheSize(t){let r=(Math.ceil(t.width/this._source.tileSize)+1)*(Math.ceil(t.height/this._source.tileSize)+1),i=this._maxTileCacheZoomLevels===null?jd.MAX_TILE_CACHE_ZOOM_LEVELS:this._maxTileCacheZoomLevels,n=Math.floor(r*i),a=typeof this._maxTileCacheSize=="number"?Math.min(this._maxTileCacheSize,n):n;this._outOfViewCache.setMaxSize(a)}handleWrapJump(t){let r=(t-(this._prevLng===void 0?t:this._prevLng))/360,i=Math.round(r);this._prevLng=t,i&&(this._inViewTiles.handleWrapJump(i),this._resetTileReloadTimers())}_updateMaxContentElevation(){var n,a;let t=this._maxContentElevationSeen,r=(a=(n=this.map)==null?void 0:n.style)==null?void 0:a._layers;if(!r)return t;let i=this._inViewTiles.getAllTiles();for(let o in r){let s=r[o];if(s.type!=="symbol"||s.source!==this.id||s.isHidden(this.transform.zoom))continue;let l=s;if(!l.layout)continue;let u=l.layout.get("symbol-height-offset");if(t=Math.max(t,u.constantOr(0)),!u.isConstant())for(let f of i){let c=f.getBucket(s);c&&c.maxHeightOffset>t&&(t=c.maxHeightOffset)}}return this._maxContentElevationSeen=t,t}update(t,r){if(!this._sourceLoaded||this._paused)return;this.transform=t,this.terrain=r,this.updateCacheSize(t),this.handleWrapJump(this.transform.center.lng);let i;!this.used&&!this.usedForTerrain?i=[]:this._source.tileID?i=t.getVisibleUnwrappedCoordinates(this._source.tileID).map(l=>new p0(l.canonical.z,l.wrap,l.canonical.z,l.canonical.x,l.canonical.y)):(i=fT(t,{tileSize:this.usedForTerrain?this.tileSize:this._source.tileSize,minzoom:this._source.minzoom,maxzoom:this._source.type==="vector"&&this.map._zoomLevelsToOverscale!==void 0?Math.max(this._source.maxzoom,t.maxZoom-this.map._zoomLevelsToOverscale):this._source.maxzoom,roundZoom:!this.usedForTerrain&&this._source.roundZoom,reparseOverscaled:this._source.reparseOverscaled,terrain:r,calculateTileZoom:this._source.calculateTileZoom,maxContentElevation:this._updateMaxContentElevation()}),this._source.hasTile&&(i=i.filter(l=>this._source.hasTile(l)))),this.usedForTerrain&&(i=this._addTerrainIdealTiles(i));let n=i.length===0&&!this._updated&&this._didEmitContent;this._updated=!0,n&&this.fire(new Xf("data",{sourceDataType:"idle",sourceId:this.id}));let a=qoe(t,this._source),o=this._updateRetainedTiles(i,a),s=Vot(this._source.type);s&&this._rasterFadeDuration>0&&!r&&SMr(this._inViewTiles,i,o,this._maxFadingAncestorLevels,this._source.minzoom,this._source.maxzoom,this._rasterFadeDuration),s?this._cleanUpRasterTiles(o):this._cleanUpVectorTiles(o)}_cleanUpRasterTiles(t){for(let r of this._inViewTiles.getAllIds())t[r]||this._removeTile(r)}_cleanUpVectorTiles(t){for(let r of this._inViewTiles.getAllIds()){let i=this._inViewTiles.getTileById(r);if(t[r]){i.clearSymbolFadeHold();continue}if(!i.hasSymbolBuckets){this._removeTile(r);continue}i.holdingForSymbolFade()?i.symbolFadeFinished()&&this._removeTile(r):i.setSymbolHoldDuration(this.map._fadeDuration)}}_addTerrainIdealTiles(t){let r=[];for(let i of t)if(i.canonical.z>this._source.minzoom){let n=i.scaledTo(i.canonical.z-1);r.push(n);let a=i.scaledTo(Math.max(this._source.minzoom,Math.min(i.canonical.z,5)));r.push(a)}return t.concat(r)}releaseSymbolFadeTiles(){for(let t of this._inViewTiles.getAllIds())this._inViewTiles.getTileById(t).holdingForSymbolFade()&&this._removeTile(t)}_updateRetainedTiles(t,r){var l;let i=new Set;for(let u of t)this._addTile(u).hasData()||i.add(u);let n=t.reduce((u,f)=>(u[f.key]=f,u),{}),a=this._retainLoadedChildren(n,i),o={},s=Math.max(r-cg.maxUnderzooming,this._source.minzoom);for(let u of a){let f=this._inViewTiles.getTileById(u.key),c=f==null?void 0:f.wasRequested();for(let h=u.overscaledZ-1;h>=s;--h){let d=u.scaledTo(h);if(o[d.key])break;if(o[d.key]=!0,f=this.getTile(d),!f&&c&&(f=this._addTile(d)),f){let p=f.hasData();if((p||!((l=this.map)!=null&&l.cancelPendingTileRequestsWhileZooming)||c)&&(n[d.key]=d),c=f.wasRequested(),p)break}}}return n}_addTile(t){let r=this._inViewTiles.getTileById(t.key);if(r)return r;r=this._outOfViewCache.getAndRemove(t),r&&(r.resetFadeLogic(),this._setTileReloadTimer(t.key,r),r.tileID=t,this._state.initializeTileState(r,this.map?this.map.painter:null));let i=r;return r||(r=new llt(t,this._source.tileSize*t.overscaleFactor()),this._loadTile(r,t.key,r.state,!1)),r.uses++,this._inViewTiles.setTile(t.key,r),i||this._source.fire(new Xf("dataloading",{tile:r,coord:r.tileID})),r}_setTileReloadTimer(t,r){this._clearTileReloadTimer(t);let i=r.getExpiryTimeout();if(i){let n=()=>{this._reloadTile(t,"expired"),delete this._timers[t]};this._timers[t]=setTimeout(n,i)}}_clearTileReloadTimer(t){let r=this._timers[t];r&&(clearTimeout(r),delete this._timers[t])}_resetTileReloadTimers(){for(let t in this._timers)clearTimeout(this._timers[t]),delete this._timers[t];for(let t of this._inViewTiles.getAllIds()){let r=this._inViewTiles.getTileById(t);this._setTileReloadTimer(t,r)}}refreshTiles(t){for(let r of this._inViewTiles.getAllIds()){let i=this._inViewTiles.getTileById(r);(this._inViewTiles.isIdRenderable(r)||i.state=="errored")&&t.some(n=>n.equals(i.tileID.canonical))&&this._reloadTile(r,"expired")}}_removeTile(t){let r=this._inViewTiles.getTileById(t);r&&(r.uses--,this._inViewTiles.deleteTileById(t),this._clearTileReloadTimer(t),!(r.uses>0)&&(r.hasData()&&r.state!=="reloading"?this._outOfViewCache.add(r.tileID,r,r.getExpiryTimeout()):(r.aborted=!0,this._abortTile(r),this._unloadTile(r))))}_dataHandler(t){if(t.dataType==="source"){if(t.sourceDataType==="metadata"){this._sourceLoaded=!0;return}t.sourceDataType==="content"&&this._sourceLoaded&&!this._paused&&(this.reload(t.sourceDataChanged,t.shouldReloadTileOptions),this.transform&&this.update(this.transform,this.terrain),this._didEmitContent=!0)}}resetMaxContentElevation(){this._maxContentElevationSeen=0}clearTiles(){this._shouldReloadOnResume=!1,this._paused=!1,this.resetMaxContentElevation();for(let t of this._inViewTiles.getAllIds())this._removeTile(t);this._outOfViewCache.reset()}tilesIn(t,r,i){let n=[],a=this.transform;if(!a)return n;let o=a.getCoveringTilesDetailsProvider().allowWorldCopies(),s=i?a.getCameraQueryGeometry(t):t,l=d=>a.screenPointToMercatorCoordinate(d,this.terrain),u=this.transformBbox(t,l,!o),f=this.transformBbox(s,l,!o),c=this.getIds(),h=Ev.fromPoints(f);for(let d of c){let p=this._inViewTiles.getTileById(d);if(p.holdingForSymbolFade())continue;let v=o?[p.tileID]:[p.tileID.unwrapTo(-1),p.tileID.unwrapTo(0)],y=2**(a.zoom-p.tileID.overscaledZ),m=r*p.queryPadding*Aa/p.tileSize/y;for(let w of v){let _=h.map(b=>w.getTilePoint(new Uu(b.x,b.y)));if(_.expandBy(m),_.intersects(oat)){let b=u.map(x=>w.getTilePoint(x)),M=f.map(x=>w.getTilePoint(x));n.push({tile:p,tileID:o?w:w.unwrapTo(0),queryGeometry:b,cameraQueryGeometry:M,scale:y})}}}return n}transformBbox(t,r,i){let n=t.map(r);if(i){let a=Ev.fromPoints(t);a.shrinkBy(Math.min(a.width(),a.height())*.001);let o=a.map(r);Ev.fromPoints(n).covers(o)||(n=n.map(s=>s.x>.5?new Uu(s.x-1,s.y,s.z):s))}return n}getVisibleCoordinates(t){let r=this.getRenderableIds(t).map(i=>this._inViewTiles.getTileById(i).tileID);return this.transform&&this.transform.populateCache(r),r}hasTransition(){return this._source.hasTransition()?!0:Vot(this._source.type)&&DMr(this._inViewTiles,this._rasterFadeDuration)}setRasterFadeDuration(t){this._rasterFadeDuration=t}setFeatureState(t,r,i){t||(t=BC),this._state.updateState(t,r,i)}removeFeatureState(t,r,i){t||(t=BC),this._state.removeFeatureState(t,r,i)}getFeatureState(t,r){return t||(t=BC),this._state.getState(t,r)}setDependencies(t,r,i){let n=this._inViewTiles.getTileById(t);n&&n.setDependencies(r,i)}reloadTilesForDependencies(t,r){for(let i of this._inViewTiles.getAllIds())this._inViewTiles.getTileById(i).hasDependency(t,r)&&this._reloadTile(i,"reloading");this._outOfViewCache.filter(i=>!i.hasDependency(t,r))}areTilesLoaded(){for(let t of this._inViewTiles.getAllTiles())if(t.state!=="loaded"&&t.state!=="errored")return!1;return!0}},cg.maxUnderzooming=10,cg.maxOverzooming=3,cg),LMr=class{constructor(e,t){this.reset(e,t)}reset(e,t){this.points=e||[],this._distances=[0];for(let r=1;r0?(i-a)/o:0;return this.points[n].mult(1-s).add(this.points[t].mult(s))}};jot=class{constructor(e,t,r){let i=this.boxCells=[],n=this.circleCells=[];this.xCellCount=Math.ceil(e/r),this.yCellCount=Math.ceil(t/r);for(let a=0;athis.width||i<0||t>this.height)return[];let s=[];if(e<=0&&t<=0&&this.width<=r&&this.height<=i){if(n)return[{key:null,x1:e,y1:t,x2:r,y2:i}];for(let l=0;l0}hitTestCircle(e,t,r,i,n){let a=e-r,o=e+r,s=t-r,l=t+r;if(o<0||a>this.width||l<0||s>this.height)return!1;let u=[],f={hitTest:!0,overlapMode:i,circle:{x:e,y:t,radius:r},seenUids:{box:{},circle:{}}};return this._forEachCell(a,s,o,l,this._queryCellCircle,u,f,n),u.length>0}_queryCell(e,t,r,i,n,a,o,s){let{seenUids:l,hitTest:u,overlapMode:f}=o,c=this.boxCells[n],h=1e-6;if(c!==null){let p=this.bboxes;for(let v of c)if(!l.box[v]){l.box[v]=!0;let y=v*4,m=this.boxKeys[v];if(e<=p[y+2]+h&&t<=p[y+3]+h&&r>=p[y+0]-h&&i>=p[y+1]-h&&(!s||s(m))&&(!u||!Xq(f,m.overlapMode))&&(a.push({key:m,x1:p[y],y1:p[y+1],x2:p[y+2],y2:p[y+3]}),u))return!0}}let d=this.circleCells[n];if(d!==null){let p=this.circles;for(let v of d)if(!l.circle[v]){l.circle[v]=!0;let y=v*3,m=this.circleKeys[v];if(this._circleAndRectCollide(p[y],p[y+1],p[y+2],e,t,r,i)&&(!s||s(m))&&(!u||!Xq(f,m.overlapMode))){let w=p[y],_=p[y+1],b=p[y+2];if(a.push({key:m,x1:w-b,y1:_-b,x2:w+b,y2:_+b}),u)return!0}}}return!1}_queryCellCircle(e,t,r,i,n,a,o,s){let{circle:l,seenUids:u,overlapMode:f}=o,c=this.boxCells[n];if(c!==null){let d=this.bboxes;for(let p of c)if(!u.box[p]){u.box[p]=!0;let v=p*4,y=this.boxKeys[p];if(this._circleAndRectCollide(l.x,l.y,l.radius,d[v+0],d[v+1],d[v+2],d[v+3])&&(!s||s(y))&&!Xq(f,y.overlapMode))return a.push(!0),!0}}let h=this.circleCells[n];if(h!==null){let d=this.circles;for(let p of h)if(!u.circle[p]){u.circle[p]=!0;let v=p*3,y=this.circleKeys[p];if(this._circlesCollide(d[v],d[v+1],d[v+2],l.x,l.y,l.radius)&&(!s||s(y))&&!Xq(f,y.overlapMode))return a.push(!0),!0}}}_forEachCell(e,t,r,i,n,a,o,s){let l=this._convertToXCellCoord(e),u=this._convertToYCellCoord(t),f=this._convertToXCellCoord(r),c=this._convertToYCellCoord(i);for(let h=l;h<=f;h++)for(let d=u;d<=c;d++){let p=this.xCellCount*d+h;if(n.call(this,e,t,r,i,p,a,o,s))return}}_convertToXCellCoord(e){return Math.max(0,Math.min(this.xCellCount-1,Math.floor(e*this.xScale)))}_convertToYCellCoord(e){return Math.max(0,Math.min(this.yCellCount-1,Math.floor(e*this.yScale)))}_circlesCollide(e,t,r,i,n,a){let o=i-e,s=n-t,l=r+a;return l*l>o*o+s*s}_circleAndRectCollide(e,t,r,i,n,a,o){let s=(a-i)/2,l=Math.abs(e-(i+s));if(l>s+r)return!1;let u=(o-n)/2,f=Math.abs(t-(n+u));if(f>u+r)return!1;if(l<=s||f<=u)return!0;let c=l-s,h=f-u;return c*c+h*h<=r*r}};RMr=tg();VMr=new Float32Array([-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0]);HMr=class{constructor(e,t=new jot(e.width+200,e.height+200,25),r=new jot(e.width+200,e.height+200,25)){this.transform=e,this.grid=t,this.ignoredGrid=r,this.pitchFactor=Math.cos(e.pitch*Math.PI/180)*e.cameraToCenterDistance,this.screenRightBoundary=e.width+100,this.screenBottomBoundary=e.height+100,this.gridRightBoundary=e.width+200,this.gridBottomBoundary=e.height+200,this.perspectiveRatioCutoff=.6}placeCollisionBox(e,t,r,i,n,a,o,s,l,u,f,c,h=0,d=!0){let p=e.anchorPointX+s[0],v=e.anchorPointY+s[1],y=this.projectAndGetPerspectiveRatio(p,v,n,uO(u,p,v,h,d),c),m=r*y.perspectiveRatio,w;if(!a&&!o){let g=y.x+(f?f.x*m:0),E=y.y+(f?f.y*m:0);w={allPointsOccluded:!1,box:[g+e.x1*m,E+e.y1*m,g+e.x2*m,E+e.y2*m]}}else w=this._projectCollisionBox(e,m,i,n,a,o,s,y,u,f,c,h,d);let[_,b,M,x]=w.box,T=a?w.allPointsOccluded:y.isOccluded,A=T;return A||(A=y.perspectiveRatio=1;z--)P.push(D.path[z]);for(let z=1;zB.signedDistanceFromCamera<=0)?[]:z.map(B=>B.point)}let L=[];if(P.length>0){let z=P[0].clone(),B=P[0].clone();for(let O=1;O=S.x&&B.x<=C.x&&z.y>=S.y&&B.y<=C.y?[P]:B.xC.x||B.yC.y?[]:wae([P],S.x,S.y,C.x,C.y)}for(let z of L){k.reset(z,E*.25);let B=0;B=k.length<=.5*E?1:Math.ceil(k.paddedLength/I)+1;for(let O=0;O=this.screenRightBoundary||i<100||t>this.screenBottomBoundary}isInsideGrid(e,t,r,i){return r>=0&&e=0&&tthis.projectAndGetPerspectiveRatio(P.x,P.y,i,uO(l,P.x,P.y,c,h),f));D=F.some(P=>!P.isOccluded),k=F.map(P=>new Jr(P.x,P.y))}else D=!0;return{box:Crt(k),allPointsOccluded:!D}}},Yot=class{constructor(e,t,r,i){this.opacity=e?Math.max(0,Math.min(1,e.opacity+(e.placed?t:-t))):i&&r?1:0,this.placed=r}isHidden(){return this.opacity===0&&!this.placed}},UC=class{constructor(e,t,r,i,n){this.text=new Yot(e?e.text:null,t,r,n),this.icon=new Yot(e?e.icon:null,t,i,n)}isHidden(){return this.text.isHidden()&&this.icon.isHidden()}},Xot=class{constructor(e,t,r){this.text=e,this.icon=t,this.skipFade=r}},jMr=class{constructor(e,t,r,i,n){this.bucketInstanceId=e,this.featureIndex=t,this.sourceLayerIndex=r,this.bucketIndex=i,this.tileID=n}},WMr=class{constructor(e){this.crossSourceCollisions=e,this.maxGroupID=0,this.collisionGroups={}}get(e){if(this.crossSourceCollisions)return{ID:0,predicate:null};if(!this.collisionGroups[e]){let t=++this.maxGroupID;this.collisionGroups[e]={ID:t,predicate:r=>r.collisionGroupID===t}}return this.collisionGroups[e]}};$Mr=class{constructor(e,t,r,i,n){this.transform=e.clone(),this.terrain=t,this.collisionIndex=new HMr(this.transform),this.placements={},this.opacities={},this.variableOffsets={},this.stale=!1,this.commitTime=0,this.fadeDuration=r,this.retainedQueryData={},this.collisionGroups=new WMr(i),this.collisionCircleArrays={},this.collisionBoxArrays=new Map,this.prevPlacement=n,n&&(n.prevPlacement=void 0),this.placedOrientations={}}_getTerrainElevationFunc(e){let t=this.terrain;if(t)return(r,i)=>t.getElevation(e,r,i)}getBucketParts(e,t,r,i){let n=r.getBucket(t),a=r.latestFeatureIndex;if(!n||!a||t.id!==n.layerIds[0])return;let o=r.collisionBoxArray,s=n.layers[0].layout,l=n.layers[0].paint,u=2**(this.transform.zoom-r.tileID.overscaledZ),f=r.tileSize/Aa,c=r.tileID.toUnwrapped(),h=s.get("text-rotation-alignment")==="map",d=Ud(r,1,this.transform.zoom),p=ig(this.collisionIndex.transform,r,l.get("text-translate"),l.get("text-translate-anchor")),v=ig(this.collisionIndex.transform,r,l.get("icon-translate"),l.get("icon-translate-anchor")),y=Ooe(h,this.transform,d);this.retainedQueryData[n.bucketInstanceId]=new jMr(n.bucketInstanceId,a,n.sourceLayerIndex,n.index,r.tileID);let m={bucket:n,layout:s,translationText:p,translationIcon:v,unwrappedTileID:c,pitchedLabelPlaneMatrix:y,scale:u,textPixelRatio:f,holdingForFade:r.holdingForSymbolFade(),collisionBoxArray:o,partiallyEvaluatedTextSize:LC(n.textSizeData,this.transform.zoom),collisionGroup:this.collisionGroups.get(n.sourceID)};if(i)for(let w of n.sortKeyRanges){let{sortKey:_,symbolInstanceStart:b,symbolInstanceEnd:M}=w;e.push({sortKey:_,symbolInstanceStart:b,symbolInstanceEnd:M,parameters:m})}else e.push({symbolInstanceStart:0,symbolInstanceEnd:n.symbolInstances.length,parameters:m})}attemptAnchorPlacement(e,t,r,i,n,a,o,s,l,u,f,c,h,d,p,v,y,m,w,_,b,M){var E,S,C;let x=Vq[e.textAnchor],T=[e.textOffset0,e.textOffset1],A=Zot(x,r,i,T,n),g=this.collisionIndex.placeCollisionBox(t,c,s,l,u,o,a,v,f.predicate,w,A,_,b,M);if((!m||this.collisionIndex.placeCollisionBox(m,c,s,l,u,o,a,y,f.predicate,w,A,_,b,M).placeable)&&g.placeable){let k;if((E=this.prevPlacement)!=null&&E.variableOffsets[h.crossTileID]&&((C=(S=this.prevPlacement)==null?void 0:S.placements[h.crossTileID])!=null&&C.text)&&(k=this.prevPlacement.variableOffsets[h.crossTileID].anchor),h.crossTileID===0)throw Error("symbolInstance.crossTileID can't be 0");return this.variableOffsets[h.crossTileID]={textOffset:T,width:r,height:i,anchor:x,textBoxScale:n,prevAnchor:k},this.markUsedJustification(d,x,h,p),d.allowVerticalPlacement&&(this.markUsedOrientation(d,p,h),this.placedOrientations[h.crossTileID]=p),{shift:A,placedGlyphBoxes:g}}}placeLayerBucketPart(e,t,r){let{bucket:i,layout:n,translationText:a,translationIcon:o,unwrappedTileID:s,pitchedLabelPlaneMatrix:l,textPixelRatio:u,holdingForFade:f,collisionBoxArray:c,partiallyEvaluatedTextSize:h,collisionGroup:d}=e.parameters,p=n.get("text-optional"),v=n.get("icon-optional"),y=uC(n,"text-overlap","text-allow-overlap"),m=y==="always",w=uC(n,"icon-overlap","icon-allow-overlap"),_=w==="always",b=n.get("text-rotation-alignment")==="map",M=n.get("text-pitch-alignment")==="map",x=n.get("icon-text-fit")!=="none",T=n.get("symbol-z-order")==="viewport-y",A=n.get("symbol-height-anchor")==="ground",g=m&&(_||!i.hasIconData()||v),E=_&&(m||!i.hasTextData()||p);!i.collisionArrays&&c&&i.deserializeCollisionBoxes(c);let S=this.retainedQueryData[i.bucketInstanceId].tileID,C=this._getTerrainElevationFunc(S),k=this.transform.getFastPathSimpleProjectionMatrix(S),D=(F,P,I)=>{var ke,le;if(t[F.crossTileID])return;if(f){this.placements[F.crossTileID]=new Xot(!1,!1,!1);return}let L=F.heightOffset,z=!1,B=!1,O=!0,W=null,X={box:null,placeable:!1,offscreen:null,occluded:!1},Z={box:null,placeable:!1,offscreen:null},H=null,q=null,Q=null,N=0,U=0,J=0;P.textFeatureIndex?N=P.textFeatureIndex:F.useRuntimeCollisionCircles&&(N=F.featureIndex),P.verticalTextFeatureIndex&&(U=P.verticalTextFeatureIndex);let j=P.textBox;if(j){let te=Y=>{let ne=1;if(i.allowVerticalPlacement&&!Y&&this.prevPlacement){let ye=this.prevPlacement.placedOrientations[F.crossTileID];ye&&(this.placedOrientations[F.crossTileID]=ye,ne=ye,this.markUsedOrientation(i,ne,F))}return ne},Ee=(Y,ne)=>{if(i.allowVerticalPlacement&&F.numVerticalGlyphVertices>0&&P.verticalTextBox){for(let ye of i.writingModes)if(ye===2?(X=ne(),Z=X):X=Y(),X==null?void 0:X.placeable)break}else X=Y()},we=F.textAnchorOffsetStartIndex,oe=F.textAnchorOffsetEndIndex;if(oe===we){let Y=(ne,ye)=>{let V=this.collisionIndex.placeCollisionBox(ne,y,u,S,s,M,b,a,d.predicate,C,void 0,k,L,A);return V!=null&&V.placeable&&(this.markUsedOrientation(i,ye,F),this.placedOrientations[F.crossTileID]=ye),V};Ee(()=>Y(j,1),()=>{let ne=P.verticalTextBox;return i.allowVerticalPlacement&&F.numVerticalGlyphVertices>0&&ne?Y(ne,2):{box:null,offscreen:null}}),te(X==null?void 0:X.placeable)}else{let Y=Vq[(le=(ke=this.prevPlacement)==null?void 0:ke.variableOffsets[F.crossTileID])==null?void 0:le.anchor],ne=(V,ue,_e)=>{let xe=V.x2-V.x1,Ae=V.y2-V.y1,se=F.textBoxScale,pe=x&&w==="never"?ue:null,fe=null,Re=y==="never"?1:2,We="never";Y&&Re++;for(let Ke=0;Kene(j,P.iconBox,1),()=>{let V=P.verticalTextBox,ue=X==null?void 0:X.placeable;return i.allowVerticalPlacement&&!ue&&F.numVerticalGlyphVertices>0&&V?ne(V,P.verticalIconBox,2):{box:null,occluded:!0,offscreen:null}}),X&&(z=X.placeable,O=X.offscreen);let ye=te(X==null?void 0:X.placeable);if(!z&&this.prevPlacement){let V=this.prevPlacement.variableOffsets[F.crossTileID];V&&(this.variableOffsets[F.crossTileID]=V,this.markUsedJustification(i,V.anchor,F,ye))}}}if(H=X,z=H==null?void 0:H.placeable,O=H==null?void 0:H.offscreen,F.useRuntimeCollisionCircles&&F.centerJustifiedTextSymbolIndex>=0){let te=i.text.placedSymbolArray.get(F.centerJustifiedTextSymbolIndex),Ee=Nq(i.textSizeData,h,te),we=n.get("text-padding"),oe=F.collisionCircleDiameter;q=this.collisionIndex.placeCollisionCircles(y,te,i.lineVertexArray,i.glyphOffsetArray,Ee,s,l,r,M,d.predicate,oe,we,a,C),q.circles.length&&q.collisionDetected&&!r&&uu("Collisions detected, but collision boxes are not shown"),z=m||q.circles.length>0&&!q.collisionDetected,O&&(O=q.offscreen)}if(P.iconFeatureIndex&&(J=P.iconFeatureIndex),P.iconBox){let te=Ee=>this.collisionIndex.placeCollisionBox(Ee,w,u,S,s,M,b,o,d.predicate,C,x&&W?W:void 0,k,L,A);Z&&Z.placeable&&P.verticalIconBox?(Q=te(P.verticalIconBox),B=Q.placeable):(Q=te(P.iconBox),B=Q.placeable),O&&(O=Q.offscreen)}let $=p||F.numHorizontalGlyphVertices===0&&F.numVerticalGlyphVertices===0,ie=v||F.numIconVertices===0;!$&&!ie?B=z=B&&z:ie?$||B&&(B=z):z=B&&z;let re=z&&H.placeable,de=B&&Q.placeable;if(re&&(Z&&Z.placeable&&U?this.collisionIndex.insertCollisionBox(H.box,y,n.get("text-ignore-placement"),i.bucketInstanceId,U,d.ID):this.collisionIndex.insertCollisionBox(H.box,y,n.get("text-ignore-placement"),i.bucketInstanceId,N,d.ID)),de&&this.collisionIndex.insertCollisionBox(Q.box,w,n.get("icon-ignore-placement"),i.bucketInstanceId,J,d.ID),q&&z&&this.collisionIndex.insertCollisionCircles(q.circles,y,n.get("text-ignore-placement"),i.bucketInstanceId,N,d.ID),r&&this.storeCollisionData(i.bucketInstanceId,I,P,H,Q,q),F.crossTileID===0)throw Error("symbolInstance.crossTileID can't be 0");if(i.bucketInstanceId===0)throw Error("bucket.bucketInstanceId can't be 0");let me=(z||g)&&!(H!=null&&H.occluded),ze=(B||E)&&!(Q!=null&&Q.occluded);this.placements[F.crossTileID]=new Xot(me,ze,O||i.justReloaded),t[F.crossTileID]=!0};if(T){if(e.symbolInstanceStart!==0)throw Error("bucket.bucketInstanceId should be 0");let F=i.getSortedSymbolIndexes(-this.transform.bearingInRadians);for(let P=F.length-1;P>=0;--P){let I=F[P];D(i.symbolInstances.get(I),i.collisionArrays[I],I)}}else for(let F=e.symbolInstanceStart;F=0&&(a>=0&&s!==a?e.text.placedSymbolArray.get(s).crossTileID=0:e.text.placedSymbolArray.get(s).crossTileID=r.crossTileID)}markUsedOrientation(e,t,r){let i=t===1||t===3?t:0,n=t===2?t:0,a=[r.leftJustifiedTextSymbolIndex,r.centerJustifiedTextSymbolIndex,r.rightJustifiedTextSymbolIndex];for(let o of a)e.text.placedSymbolArray.get(o).placedOrientation=i;r.verticalPlacedTextSymbolIndex&&(e.text.placedSymbolArray.get(r.verticalPlacedTextSymbolIndex).placedOrientation=n)}commit(e){this.commitTime=e,this.zoomAtLastRecencyCheck=this.transform.zoom;let t=this.prevPlacement,r=!1;this.prevZoomAdjustment=t?t.zoomAdjustment(this.transform.zoom):0;let i=t?t.symbolFadeChange(e):1,n=t?t.opacities:{},a=t?t.variableOffsets:{},o=t?t.placedOrientations:{};for(let s in this.placements){let l=this.placements[s],u=n[s];u?(this.opacities[s]=new UC(u,i,l.text,l.icon),r||(r=l.text!==u.text.placed),r||(r=l.icon!==u.icon.placed)):(this.opacities[s]=new UC(null,i,l.text,l.icon,l.skipFade),r||(r=l.text||l.icon))}for(let s in n){let l=n[s];if(!this.opacities[s]){let u=new UC(l,i,!1,!1);u.isHidden()||(this.opacities[s]=u,r||(r=l.text.placed),r||(r=l.icon.placed))}}for(let s in a)!this.variableOffsets[s]&&this.opacities[s]&&!this.opacities[s].isHidden()&&(this.variableOffsets[s]=a[s]);for(let s in o)!this.placedOrientations[s]&&this.opacities[s]&&!this.opacities[s].isHidden()&&(this.placedOrientations[s]=o[s]);if(t&&t.lastPlacementChangeTime===void 0)throw Error("Last placement time for previous placement is not defined");r?this.lastPlacementChangeTime=e:typeof this.lastPlacementChangeTime!="number"&&(this.lastPlacementChangeTime=t?t.lastPlacementChangeTime:e)}updateLayerOpacities(e,t){let r={};for(let i of t){let n=i.getBucket(e);n&&i.latestFeatureIndex&&e.id===n.layerIds[0]&&this.updateBucketOpacities(n,i.tileID,r,i.collisionBoxArray)}}updateBucketOpacities(e,t,r,i){e.hasTextData()&&(e.text.opacityVertexArray.clear(),e.text.hasVisibleVertices=!1),e.hasIconData()&&(e.icon.opacityVertexArray.clear(),e.icon.hasVisibleVertices=!1),e.hasIconCollisionBoxData()&&e.iconCollisionBox.collisionVertexArray.clear(),e.hasTextCollisionBoxData()&&e.textCollisionBox.collisionVertexArray.clear();let n=e.layers[0],a=n.layout,o=new UC(null,0,!1,!1,!0),s=a.get("text-allow-overlap"),l=a.get("icon-allow-overlap"),u=n._unevaluatedLayout.hasValue("text-variable-anchor")||n._unevaluatedLayout.hasValue("text-variable-anchor-offset"),f=a.get("text-rotation-alignment")==="map",c=a.get("text-pitch-alignment")==="map",h=a.get("icon-text-fit")!=="none",d=new UC(null,0,s&&(l||!e.hasIconData()||a.get("icon-optional")),l&&(s||!e.hasTextData()||a.get("text-optional")),!0);!e.collisionArrays&&i&&(e.hasIconCollisionBoxData()||e.hasTextCollisionBoxData())&&e.deserializeCollisionBoxes(i);let p=(y,m,w)=>{for(let _=0;_0||_>0,A=m.numIconVertices>0,g=this.placedOrientations[m.crossTileID],E=g===2,S=g===1||g===3;if(T){let k=Jot(x.text),D=E?GC:k;p(e.text,w,D);let F=S?GC:k;p(e.text,_,F);let P=x.text.isHidden(),I=[m.rightJustifiedTextSymbolIndex,m.centerJustifiedTextSymbolIndex,m.leftJustifiedTextSymbolIndex];for(let B of I)B>=0&&(e.text.placedSymbolArray.get(B).hidden=P||E?1:0);m.verticalPlacedTextSymbolIndex>=0&&(e.text.placedSymbolArray.get(m.verticalPlacedTextSymbolIndex).hidden=P||S?1:0);let L=this.variableOffsets[m.crossTileID];L&&this.markUsedJustification(e,L.anchor,m,g);let z=this.placedOrientations[m.crossTileID];z&&(this.markUsedJustification(e,"left",m,z),this.markUsedOrientation(e,z,m))}if(A){let k=Jot(x.icon),D=!(h&&m.verticalPlacedIconSymbolIndex&&E);if(m.placedIconSymbolIndex>=0){let F=D?k:GC;p(e.icon,m.numIconVertices,F),e.icon.placedSymbolArray.get(m.placedIconSymbolIndex).hidden=x.icon.isHidden()}if(m.verticalPlacedIconSymbolIndex>=0){let F=D?GC:k;p(e.icon,m.numVerticalIconVertices,F),e.icon.placedSymbolArray.get(m.verticalPlacedIconSymbolIndex).hidden=x.icon.isHidden()}}let C=v!=null&&v.has(y)?v.get(y):{text:null,icon:null};if(e.hasIconCollisionBoxData()||e.hasTextCollisionBoxData()){let k=e.collisionArrays[y];if(k){let D=new Jr(0,0);if(k.textBox||k.verticalTextBox){let F=!0;if(u){let P=this.variableOffsets[b];P?(D=Zot(P.anchor,P.width,P.height,P.textOffset,P.textBoxScale),f&&D._rotate(c?-this.transform.bearingInRadians:this.transform.bearingInRadians)):F=!1}if(k.textBox||k.verticalTextBox){let P;k.textBox&&(P=E),k.verticalTextBox&&(P=S),Kot(e.textCollisionBox.collisionVertexArray,x.text.placed,!F||P,C.text,D.x,D.y)}}if(k.iconBox||k.verticalIconBox){let F=!(S||!k.verticalIconBox),P;k.iconBox&&(P=F),k.verticalIconBox&&(P=!F),Kot(e.iconCollisionBox.collisionVertexArray,x.icon.placed,P,C.icon,h?D.x:0,h?D.y:0)}}}}if(e.sortFeatures(-this.transform.bearingInRadians),this.retainedQueryData[e.bucketInstanceId]&&(this.retainedQueryData[e.bucketInstanceId].featureSortOrder=e.featureSortOrder),e.hasTextData()&&e.text.opacityVertexBuffer&&e.text.opacityVertexBuffer.updateData(e.text.opacityVertexArray),e.hasIconData()&&e.icon.opacityVertexBuffer&&e.icon.opacityVertexBuffer.updateData(e.icon.opacityVertexArray),e.hasIconCollisionBoxData()&&e.iconCollisionBox.collisionVertexBuffer&&e.iconCollisionBox.collisionVertexBuffer.updateData(e.iconCollisionBox.collisionVertexArray),e.hasTextCollisionBoxData()&&e.textCollisionBox.collisionVertexBuffer&&e.textCollisionBox.collisionVertexBuffer.updateData(e.textCollisionBox.collisionVertexArray),e.text.opacityVertexArray.length!==e.text.layoutVertexArray.length/4)throw Error(`bucket.text.opacityVertexArray.length (= ${e.text.opacityVertexArray.length}) !== bucket.text.layoutVertexArray.length (= ${e.text.layoutVertexArray.length}) / 4`);if(e.icon.opacityVertexArray.length!==e.icon.layoutVertexArray.length/4)throw Error(`bucket.icon.opacityVertexArray.length (= ${e.icon.opacityVertexArray.length}) !== bucket.icon.layoutVertexArray.length (= ${e.icon.layoutVertexArray.length}) / 4`);e.bucketInstanceId in this.collisionCircleArrays&&(e.collisionCircleArray=this.collisionCircleArrays[e.bucketInstanceId],delete this.collisionCircleArrays[e.bucketInstanceId])}symbolFadeChange(e){return this.fadeDuration===0?1:(e-this.commitTime)/this.fadeDuration+this.prevZoomAdjustment}zoomAdjustment(e){return Math.max(0,(this.transform.zoom-e)/1.5)}hasTransitions(e){return this.stale||e-this.lastPlacementChangeTimee}setStale(){this.stale=!0}};YMr=2**25,XMr=2**24,ZMr=2**17,KMr=2**16;GC=0,JMr=class{constructor(e){this._sortAcrossTiles=e.layout.get("symbol-z-order")!=="viewport-y"&&!e.layout.get("symbol-sort-key").isConstant(),this._currentTileIndex=0,this._currentPartIndex=0,this._seenCrossTileIDs={},this._bucketParts=[]}continuePlacement(e,t,r,i,n){let a=this._bucketParts;for(;this._currentTileIndexo.sortKey-s.sortKey));this._currentPartIndex!this._forceFullPlacement&&Ku()-i>2;for(;this._currentPlacementIndex>=0;){let a=t[e[this._currentPlacementIndex]],o=this.placement.collisionIndex.transform.zoom;if(Tae(a)&&a.layout&&(!a.minzoom||a.minzoom<=o)&&(!a.maxzoom||a.maxzoom>o)){if(this._inProgressLayer||(this._inProgressLayer=new JMr(a)),this._inProgressLayer.continuePlacement(r[a.source],this.placement,this._showCollisionBoxes,a,n))return;delete this._inProgressLayer}this._currentPlacementIndex--}this._done=!0}commit(e){return this.placement.commit(e),this.placement}},Qot=[Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array],Ac=new Uint32Array(96),eSr=class vlt{static from(t){if(!t||t.byteLength===void 0||t.buffer)throw Error("Data must be an instance of ArrayBuffer or SharedArrayBuffer.");let[r,i]=new Uint8Array(t,0,2);if(r!==219)throw Error("Data does not appear to be in a KDBush format.");let n=i>>4;if(n!==1)throw Error(`Got v${n} data when expected v1.`);let a=Qot[i&15];if(!a)throw Error("Unrecognized array type.");let[o]=new Uint16Array(t,2,1),[s]=new Uint32Array(t,4,1);return new vlt(s,o,a,void 0,t)}constructor(t,r=64,i=Float64Array,n=ArrayBuffer,a){if(isNaN(t)||t<0)throw Error(`Unexpected numItems value: ${t}.`);this.numItems=+t,this.nodeSize=Math.min(Math.max(+r,2),65535),this.ArrayType=i,this.IndexArrayType=t<65536?Uint16Array:Uint32Array;let o=Qot.indexOf(this.ArrayType),s=t*2*this.ArrayType.BYTES_PER_ELEMENT,l=t*this.IndexArrayType.BYTES_PER_ELEMENT,u=(8-l%8)%8;if(o<0)throw Error(`Unexpected typed array class: ${i}.`);if(a)this.data=a,this.ids=new this.IndexArrayType(a,8,t),this.coords=new i(a,8+l+u,t*2),this._pos=t*2,this._finished=!0;else{let f=this.data=new n(8+s+l+u);this.ids=new this.IndexArrayType(f,8,t),this.coords=new i(f,8+l+u,t*2),this._pos=0,this._finished=!1,new Uint8Array(f,0,2).set([219,16+o]),new Uint16Array(f,2,1)[0]=r,new Uint32Array(f,4,1)[0]=t}}add(t,r){let i=this._pos>>1;return this.ids[i]=i,this.coords[this._pos++]=t,this.coords[this._pos++]=r,i}finish(){let t=this._pos>>1;if(t!==this.numItems)throw Error(`Added ${t} items when expected ${this.numItems}.`);return boe(this.ids,this.coords,this.nodeSize,0,this.numItems-1,0),this._finished=!0,this}range(t,r,i,n){if(!this._finished)throw Error("Data not yet indexed - call index.finish().");let{ids:a,coords:o,nodeSize:s}=this;Ac[0]=0,Ac[1]=a.length-1,Ac[2]=0;let l=3,u=[];for(;l>0;){let f=Ac[--l],c=Ac[--l],h=Ac[--l];if(c-h<=s){for(let y=h;y<=c;y++){let m=o[2*y],w=o[2*y+1];m>=t&&m<=i&&w>=r&&w<=n&&u.push(a[y])}continue}let d=h+c>>1,p=o[2*d],v=o[2*d+1];p>=t&&p<=i&&v>=r&&v<=n&&u.push(a[d]),(f===0?t<=p:r<=v)&&(Ac[l++]=h,Ac[l++]=d-1,Ac[l++]=1-f),(f===0?i>=p:n>=v)&&(Ac[l++]=d+1,Ac[l++]=c,Ac[l++]=1-f)}return u}within(t,r,i){let n=[];return this.withinInto(t,r,i,n),n}withinInto(t,r,i,n){if(!this._finished)throw Error("Data not yet indexed - call index.finish().");let{ids:a,coords:o,nodeSize:s}=this;Ac[0]=0,Ac[1]=a.length-1,Ac[2]=0;let l=3,u=0,f=i*i;for(;l>0;){let c=Ac[--l],h=Ac[--l],d=Ac[--l];if(h-d<=s){for(let m=d;m<=h;m++)est(o[2*m],o[2*m+1],t,r)<=f&&(n[u++]=a[m]);continue}let p=d+h>>1,v=o[2*p],y=o[2*p+1];est(v,y,t,r)<=f&&(n[u++]=a[p]),(c===0?t-i<=v:r-i<=y)&&(Ac[l++]=d,Ac[l++]=p-1,Ac[l++]=1-c),(c===0?t+i>=v:r+i>=y)&&(Ac[l++]=p+1,Ac[l++]=h,Ac[l++]=1-c)}return u}};jC=512/Aa/2,tSr=class{constructor(e,t,r){this.tileID=e,this.bucketInstanceId=r,this._symbolsByKey={};let i=new Map;for(let n=0;n({x:Math.floor(s.anchorX*jC),y:Math.floor(s.anchorY*jC)})),crossTileIDs:a.map(s=>s.crossTileID)};if(o.positions.length>128){let s=new eSr(o.positions.length,16,Uint16Array);for(let{x:l,y:u}of o.positions)s.add(l,u);s.finish(),delete o.positions,o.index=s}this._symbolsByKey[n]=o}}getScaledCoordinates(e,t){let{x:r,y:i,z:n}=this.tileID.canonical,{x:a,y:o,z:s}=t.canonical,l=s-n,u=jC/2**l,f=(a*Aa+e.anchorX)*u,c=(o*Aa+e.anchorY)*u,h=r*Aa*jC,d=i*Aa*jC;return{x:Math.floor(f-h),y:Math.floor(c-d)}}findMatches(e,t,r){let i=this.tileID.canonical.ze)}},rSr=class{constructor(){this.maxCrossTileID=0}generate(){return++this.maxCrossTileID}},iSr=class{constructor(){this.indexes={},this.usedCrossTileIDs={},this.lng=0}handleWrapJump(e){let t=Math.round((e-this.lng)/360);if(t!==0)for(let r in this.indexes){let i=this.indexes[r],n={};for(let a in i){let o=i[a];o.tileID=o.tileID.unwrapTo(o.tileID.wrap+t),n[o.tileID.key]=o}this.indexes[r]=n}this.lng=e}addBucket(e,t,r){var n,a,o;if((n=this.indexes[e.overscaledZ])!=null&&n[e.key]){if(this.indexes[e.overscaledZ][e.key].bucketInstanceId===t.bucketInstanceId)return!1;this.removeBucketCrossTileIDs(e.overscaledZ,this.indexes[e.overscaledZ][e.key])}for(let s=0;se.overscaledZ)for(let u in l){let f=l[u];f.tileID.isChildOf(e)&&f.findMatches(t.symbolInstances,e,i)}else{let u=l[e.scaledTo(Number(s)).key];u&&u.findMatches(t.symbolInstances,e,i)}}for(let s=0;s 1.0) {gl_Position.xy=vec2(10000.0);}if (u_scale_with_map) {gl_Position.xy+=extrude*(radius+stroke_width)*u_extrude_scale*u_camera_to_center_distance;} else {gl_Position.xy+=extrude*(radius+stroke_width)*u_extrude_scale*gl_Position.w;}}float antialiasblur=-max(1.0/u_device_pixel_ratio/(radius+stroke_width),blur);v_data=vec3(extrude.x,extrude.y,antialiasblur);}`,$ot="void main() {fragColor=vec4(1.0);}",Gm={prelude:Ru(WMr,$Mr),projectionMercator:Ru(` +} else {gl_Position=projectTileWithElevation(circle_center,ele);if (gl_Position.z/gl_Position.w > 1.0) {gl_Position.xy=vec2(10000.0);}if (u_scale_with_map) {gl_Position.xy+=extrude*(radius+stroke_width)*u_extrude_scale*u_camera_to_center_distance;} else {gl_Position.xy+=extrude*(radius+stroke_width)*u_extrude_scale*gl_Position.w;}}float antialiasblur=-max(1.0/u_device_pixel_ratio/(radius+stroke_width),blur);v_data=vec3(extrude.x,extrude.y,antialiasblur);}`,tst="void main() {fragColor=vec4(1.0);}",jm={prelude:Ru(nSr,aSr),projectionMercator:Ru(` void clipAntimeridian() {}`,"float projectLineThickness(float tileY) {return 1.0;}float projectCircleRadius(float tileY) {return 1.0;}vec4 projectTile(vec2 p) {vec4 result=u_projection_matrix*vec4(p,0.0,1.0);return result;}vec4 projectTile(vec2 p,vec2 rawPos) {vec4 result=u_projection_matrix*vec4(p,0.0,1.0);if (rawPos.y <-32767.5 || rawPos.y > 32766.5) {result.z=-10000000.0;}return result;}vec4 projectTileWithElevation(vec2 posInTile,float elevation) {return u_projection_matrix*vec4(posInTile,elevation,1.0);}vec4 projectTileFor3D(vec2 posInTile,float elevation) {return projectTileWithElevation(posInTile,elevation);}"),projectionGlobe:Ru("in highp float v_projection_tile_x;void clipAntimeridian() {if (u_projection_clip_antimeridian !=0 && (v_projection_tile_x < 0.0 || v_projection_tile_x >=8192.0)) {discard;}}",`#define GLOBE_RADIUS 6371008.8 #ifndef PROJECTION_UBO uniform highp vec4 u_projection_tile_mercator_coords;uniform highp vec4 u_projection_clipping_plane;uniform highp float u_projection_transition;uniform mat4 u_projection_fallback_matrix; #endif out highp float v_projection_tile_x;vec3 globeRotateVector(vec3 vec,vec2 angles) {vec3 axisRight=vec3(vec.z,0.0,-vec.x);vec3 axisUp=cross(axisRight,vec);axisRight=normalize(axisRight);axisUp=normalize(axisUp);vec2 t=tan(angles);return normalize(vec+axisRight*t.x+axisUp*t.y);}mat3 globeGetRotationMatrix(vec3 spherePos) {vec3 axisRight=vec3(spherePos.z,0.0,-spherePos.x);vec3 axisDown=cross(axisRight,spherePos);axisRight=normalize(axisRight);axisDown=normalize(axisDown);return mat3(axisRight,axisDown,spherePos );}float circumferenceRatioAtTileY(float tileY) {float mercator_pos_y=u_projection_tile_mercator_coords.y+u_projection_tile_mercator_coords.w*tileY;float t=exp(PI-(mercator_pos_y*PI*2.0));return (2.0*t)/(t*t+1.0);}float projectLineThickness(float tileY) {float thickness=1.0/circumferenceRatioAtTileY(tileY);if (u_projection_transition < 0.999) {return mix(1.0,thickness,u_projection_transition);} else {return thickness;}}vec3 projectToSphere(vec2 translatedPos,vec2 rawPos) {vec2 mercator_pos=u_projection_tile_mercator_coords.xy+u_projection_tile_mercator_coords.zw*translatedPos;float spherical_x=mercator_pos.x*PI*2.0+PI;float t=exp(PI-(mercator_pos.y*PI*2.0));float t2=t*t;float denom=t2+1.0;float sin_sy=(t2-1.0)/denom;float cos_sy=(2.0*t)/denom;vec3 pos=vec3(sin(spherical_x)*cos_sy,sin_sy,cos(spherical_x)*cos_sy -);if (rawPos.y <-32767.5) {pos=vec3(0.0,1.0,0.0);}if (rawPos.y > 32766.5) {pos=vec3(0.0,-1.0,0.0);}return pos;}vec3 projectToSphere(vec2 posInTile) {return projectToSphere(posInTile,vec2(0.0,0.0));}float globeComputeClippingZ(vec3 spherePos) {return (1.0-(dot(spherePos,u_projection_clipping_plane.xyz)+u_projection_clipping_plane.w));}vec4 interpolateProjection(vec2 posInTile,vec3 spherePos,float elevation) {v_projection_tile_x=posInTile.x;vec3 elevatedPos=spherePos*(1.0+elevation/GLOBE_RADIUS);vec4 globePosition=u_projection_matrix*vec4(elevatedPos,1.0);globePosition.z=globeComputeClippingZ(elevatedPos)*globePosition.w;if (u_projection_transition > 0.999) {return globePosition;}vec4 flatPosition=u_projection_fallback_matrix*vec4(posInTile,elevation,1.0);const float z_globeness_threshold=0.2;vec4 result=globePosition;result.z=mix(0.0,globePosition.z,clamp((u_projection_transition-z_globeness_threshold)/(1.0-z_globeness_threshold),0.0,1.0));result.xyw=mix(flatPosition.xyw,globePosition.xyw,u_projection_transition);if ((posInTile.y <-32767.5) || (posInTile.y > 32766.5)) {result=globePosition;const float poles_hidden_anim_percentage=0.02;result.z=mix(globePosition.z,100.0,pow(max((1.0-u_projection_transition)/poles_hidden_anim_percentage,0.0),8.0));}return result;}vec4 interpolateProjectionFor3D(vec2 posInTile,vec3 spherePos,float elevation) {v_projection_tile_x=posInTile.x;vec3 elevatedPos=spherePos*(1.0+elevation/GLOBE_RADIUS);vec4 globePosition=u_projection_matrix*vec4(elevatedPos,1.0);if (u_projection_transition > 0.999) {return globePosition;}vec4 fallbackPosition=u_projection_fallback_matrix*vec4(posInTile,elevation,1.0);return mix(fallbackPosition,globePosition,u_projection_transition);}vec4 projectTile(vec2 posInTile) {return interpolateProjection(posInTile,projectToSphere(posInTile),0.0);}vec4 projectTile(vec2 posInTile,vec2 rawPos) {return interpolateProjection(posInTile,projectToSphere(posInTile,rawPos),0.0);}vec4 projectTileWithElevation(vec2 posInTile,float elevation) {return interpolateProjection(posInTile,projectToSphere(posInTile),elevation);}vec4 projectTileFor3D(vec2 posInTile,float elevation) {vec3 spherePos=projectToSphere(posInTile,posInTile);return interpolateProjectionFor3D(posInTile,spherePos,elevation);}`),background:Ru(YMr,XMr),backgroundPattern:Ru(ZMr,KMr),circle:Ru(JMr,QMr),clippingMask:Ru($ot,"layout(location=0) in vec2 a_pos;void main() {gl_Position=projectTile(a_pos);}"),heatmap:Ru(`uniform highp float u_intensity;in vec2 v_extrude; +);if (rawPos.y <-32767.5) {pos=vec3(0.0,1.0,0.0);}if (rawPos.y > 32766.5) {pos=vec3(0.0,-1.0,0.0);}return pos;}vec3 projectToSphere(vec2 posInTile) {return projectToSphere(posInTile,vec2(0.0,0.0));}float globeComputeClippingZ(vec3 spherePos) {return (1.0-(dot(spherePos,u_projection_clipping_plane.xyz)+u_projection_clipping_plane.w));}vec4 interpolateProjection(vec2 posInTile,vec3 spherePos,float elevation) {v_projection_tile_x=posInTile.x;vec3 elevatedPos=spherePos*(1.0+elevation/GLOBE_RADIUS);vec4 globePosition=u_projection_matrix*vec4(elevatedPos,1.0);globePosition.z=globeComputeClippingZ(elevatedPos)*globePosition.w;if (u_projection_transition > 0.999) {return globePosition;}vec4 flatPosition=u_projection_fallback_matrix*vec4(posInTile,elevation,1.0);const float z_globeness_threshold=0.2;vec4 result=globePosition;result.z=mix(0.0,globePosition.z,clamp((u_projection_transition-z_globeness_threshold)/(1.0-z_globeness_threshold),0.0,1.0));result.xyw=mix(flatPosition.xyw,globePosition.xyw,u_projection_transition);if ((posInTile.y <-32767.5) || (posInTile.y > 32766.5)) {result=globePosition;const float poles_hidden_anim_percentage=0.02;result.z=mix(globePosition.z,100.0,pow(max((1.0-u_projection_transition)/poles_hidden_anim_percentage,0.0),8.0));}return result;}vec4 interpolateProjectionFor3D(vec2 posInTile,vec3 spherePos,float elevation) {v_projection_tile_x=posInTile.x;vec3 elevatedPos=spherePos*(1.0+elevation/GLOBE_RADIUS);vec4 globePosition=u_projection_matrix*vec4(elevatedPos,1.0);if (u_projection_transition > 0.999) {return globePosition;}vec4 fallbackPosition=u_projection_fallback_matrix*vec4(posInTile,elevation,1.0);return mix(fallbackPosition,globePosition,u_projection_transition);}vec4 projectTile(vec2 posInTile) {return interpolateProjection(posInTile,projectToSphere(posInTile),0.0);}vec4 projectTile(vec2 posInTile,vec2 rawPos) {return interpolateProjection(posInTile,projectToSphere(posInTile,rawPos),0.0);}vec4 projectTileWithElevation(vec2 posInTile,float elevation) {return interpolateProjection(posInTile,projectToSphere(posInTile),elevation);}vec4 projectTileFor3D(vec2 posInTile,float elevation) {vec3 spherePos=projectToSphere(posInTile,posInTile);return interpolateProjectionFor3D(posInTile,spherePos,elevation);}`),background:Ru(oSr,sSr),backgroundPattern:Ru(lSr,uSr),circle:Ru(fSr,cSr),clippingMask:Ru(tst,"layout(location=0) in vec2 a_pos;void main() {gl_Position=projectTile(a_pos);}"),heatmap:Ru(`uniform highp float u_intensity;in vec2 v_extrude; #pragma maplibre: define highp float weight #define GAUSS_COEF 0.3989422804014327 void main() { @@ -2936,7 +2936,7 @@ uniform sampler2D u_image;uniform vec4 u_unpack;uniform sampler2D u_elevation_st #ifdef OVERDRAW_INSPECTOR fragColor=vec4(1.0); #endif -}`,"uniform vec2 u_dimension;layout(location=0) in vec2 a_pos;out vec2 v_pos;void main() {gl_Position=projectTile(a_pos,a_pos);highp vec2 epsilon=2.0/u_dimension;float scale=(u_dimension.x-4.0)/u_dimension.x;v_pos=(a_pos/8192.0)*scale+epsilon;if (a_pos.y <-32767.5) {v_pos.y=0.0;}if (a_pos.y > 32766.5) {v_pos.y=1.0;}}"),debug:Ru("uniform highp vec4 u_color;uniform sampler2D u_overlay;in vec2 v_uv;void main() {vec4 overlay_color=texture(u_overlay,v_uv);fragColor=mix(u_color,overlay_color,overlay_color.a);}","layout(location=0) in vec2 a_pos;out vec2 v_uv;uniform float u_overlay_scale;void main() {v_uv=a_pos/8192.0;gl_Position=projectTileWithElevation(a_pos*u_overlay_scale,get_elevation(a_pos));}"),depth:Ru($ot,`layout(location=0) in vec2 a_pos;void main() { +}`,"uniform vec2 u_dimension;layout(location=0) in vec2 a_pos;out vec2 v_pos;void main() {gl_Position=projectTile(a_pos,a_pos);highp vec2 epsilon=2.0/u_dimension;float scale=(u_dimension.x-4.0)/u_dimension.x;v_pos=(a_pos/8192.0)*scale+epsilon;if (a_pos.y <-32767.5) {v_pos.y=0.0;}if (a_pos.y > 32766.5) {v_pos.y=1.0;}}"),debug:Ru("uniform highp vec4 u_color;uniform sampler2D u_overlay;in vec2 v_uv;void main() {vec4 overlay_color=texture(u_overlay,v_uv);fragColor=mix(u_color,overlay_color,overlay_color.a);}","layout(location=0) in vec2 a_pos;out vec2 v_uv;uniform float u_overlay_scale;void main() {v_uv=a_pos/8192.0;gl_Position=projectTileWithElevation(a_pos*u_overlay_scale,get_elevation(a_pos));}"),depth:Ru(tst,`layout(location=0) in vec2 a_pos;void main() { #ifdef GLOBE gl_Position=projectTileFor3D(a_pos,0.0); #else @@ -3535,9 +3535,9 @@ vec4 finalPos=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matr precision highp float; #endif in vec3 view_direction;uniform vec3 u_sun_pos;uniform vec3 u_globe_position;uniform float u_globe_radius;uniform float u_atmosphere_blend;/**Shader use from https:*Made some change to adapt to MapLibre Globe geometry*/const float PI=3.141592653589793;const int iSteps=5;const int jSteps=3;/*radius of the planet*/const float EARTH_RADIUS=6371e3;/*radius of the atmosphere*/const float ATMOS_RADIUS=6471e3;vec2 rsi(vec3 r0,vec3 rd,float sr) {float a=dot(rd,rd);float b=2.0*dot(rd,r0);float c=dot(r0,r0)-(sr*sr);float d=(b*b)-4.0*a*c;if (d < 0.0) return vec2(1e5,-1e5);return vec2((-b-sqrt(d))/(2.0*a),(-b+sqrt(d))/(2.0*a));}vec4 atmosphere(vec3 r,vec3 r0,vec3 pSun,float iSun,float rPlanet,float rAtmos,vec3 kRlh,float kMie,float shRlh,float shMie,float g) {pSun=normalize(pSun);r=normalize(r);vec2 p=rsi(r0,r,rAtmos);if (p.x > p.y) {return vec4(0.0,0.0,0.0,1.0);}if (p.x < 0.0) {p.x=0.0;}vec3 pos=r0+r*p.x;vec2 p2=rsi(r0,r,rPlanet);if (p2.x <=p2.y && p2.x > 0.0) {p.y=min(p.y,p2.x);}float iStepSize=(p.y-p.x)/float(iSteps);float iTime=p.x+iStepSize*0.5;vec3 totalRlh=vec3(0,0,0);vec3 totalMie=vec3(0,0,0);float iOdRlh=0.0;float iOdMie=0.0;float mu=dot(r,pSun);float mumu=mu*mu;float gg=g*g;float pRlh=3.0/(16.0*PI)*(1.0+mumu);float pMie=3.0/(8.0*PI)*((1.0-gg)*(mumu+1.0))/(pow(1.0+gg-2.0*mu*g,1.5)*(2.0+gg));for (int i=0; i < iSteps; i++) {vec3 iPos=r0+r*iTime;float iHeight=length(iPos)-rPlanet;float odStepRlh=exp(-iHeight/shRlh)*iStepSize;float odStepMie=exp(-iHeight/shMie)*iStepSize;iOdRlh+=odStepRlh;iOdMie+=odStepMie;float jStepSize=rsi(iPos,pSun,rAtmos).y/float(jSteps);float jTime=jStepSize*0.5;float jOdRlh=0.0;float jOdMie=0.0;for (int j=0; j < jSteps; j++) {vec3 jPos=iPos+pSun*jTime;float jHeight=length(jPos)-rPlanet;jOdRlh+=exp(-jHeight/shRlh)*jStepSize;jOdMie+=exp(-jHeight/shMie)*jStepSize;jTime+=jStepSize;}vec3 attn=exp(-(kMie*(iOdMie+jOdMie)+kRlh*(iOdRlh+jOdRlh)));totalRlh+=odStepRlh*attn;totalMie+=odStepMie*attn;iTime+=iStepSize;}float opacity=exp(-(length(kRlh)*length(totalRlh)+kMie*length(totalMie)));vec3 color=iSun*(pRlh*kRlh*totalRlh+pMie*kMie*totalMie);return vec4(color,opacity);}void main() {vec3 scale_camera_pos=-u_globe_position*EARTH_RADIUS/u_globe_radius;vec4 color=atmosphere(normalize(view_direction),scale_camera_pos,u_sun_pos,22.0,EARTH_RADIUS,ATMOS_RADIUS,vec3(5.5e-6,13.0e-6,22.4e-6),21e-6,8e3,1.2e3,0.758 -);color.rgb=1.0-exp(-1.0*color.rgb);color=pow(color,vec4(1.0/2.2));fragColor=vec4(color.rgb,1.0-color.a)*u_atmosphere_blend;}`,"layout(location=0) in vec2 a_pos;uniform mat4 u_inv_proj_matrix;out vec3 view_direction;void main() {view_direction=(u_inv_proj_matrix*vec4(a_pos,0.0,1.0)).xyz;gl_Position=vec4(a_pos,0.0,1.0);}"),sky:Ru("uniform vec4 u_sky_color;uniform vec4 u_horizon_color;uniform vec2 u_horizon;uniform vec2 u_horizon_normal;uniform float u_sky_horizon_blend;uniform float u_sky_blend;uniform vec3 u_globe_position;uniform float u_globe_radius;uniform float u_atmosphere_blend;in vec3 v_view_direction;const float ATMOSPHERE_HEIGHT_TO_GLOBE_RADIUS=100000.0/6371000.0;void main() {float x=gl_FragCoord.x;float y=gl_FragCoord.y;float blend=(y-u_horizon.y)*u_horizon_normal.y+(x-u_horizon.x)*u_horizon_normal.x;float opacity=1.0;if (u_sky_blend > 0.0) {vec3 ray=normalize(v_view_direction);float globe_distance=length(u_globe_position);float angle_to_globe_center=acos(clamp(dot(ray,u_globe_position)/globe_distance,-1.0,1.0));float horizon_angle=asin(min(u_globe_radius/globe_distance,1.0));blend=mix(blend,((angle_to_globe_center-horizon_angle)*u_camera_to_center_distance+1.0)*u_device_pixel_ratio,u_sky_blend);float closest_approach=max(dot(ray,u_globe_position),0.0);float lowest_altitude=sqrt(max(globe_distance*globe_distance-closest_approach*closest_approach,0.0))-u_globe_radius;float atmosphere_height=u_globe_radius*ATMOSPHERE_HEIGHT_TO_GLOBE_RADIUS;float inside_atmosphere=1.0-smoothstep(atmosphere_height,10.0*atmosphere_height,globe_distance-u_globe_radius);float through_atmosphere=1.0-smoothstep(0.0,atmosphere_height,lowest_altitude);opacity=inside_atmosphere*through_atmosphere*(1.0-u_atmosphere_blend);}if (blend > 0.0) {if (blend < u_sky_horizon_blend) {fragColor=mix(u_sky_color,u_horizon_color,pow(1.0-blend/u_sky_horizon_blend,2.0));} else {fragColor=u_sky_color;}}fragColor*=mix(1.0,opacity,u_sky_blend);}","layout(location=0) in vec2 a_pos;uniform mat4 u_inv_proj_matrix;out vec3 v_view_direction;void main() {v_view_direction=(u_inv_proj_matrix*vec4(a_pos,0.0,1.0)).xyz;gl_Position=vec4(a_pos,1.0,1.0);}")};flt="#define PROJECTION_MERCATOR",clt="mercator",doe=class{constructor(){this._cachedMesh=null}get name(){return"mercator"}get useSubdivision(){return!1}get shaderVariantName(){return clt}get shaderDefine(){return flt}get shaderPreludeCode(){return Gm.projectionMercator}get vertexShaderPreludeCode(){return Gm.projectionMercator.vertexSource}get subdivisionGranularity(){return kq.noSubdivision}get useGlobeControls(){return!1}get transitionState(){return 0}destroy(){}getMeshFromTileID(e,t,r,i,n){if(this._cachedMesh)return this._cachedMesh;let a=new rg;a.emplaceBack(0,0),a.emplaceBack(Aa,0),a.emplaceBack(0,Aa),a.emplaceBack(Aa,Aa);let o=e.createVertexBuffer(a,_3.members),s=tc.simpleSegment(0,0,4,2),l=new D1;l.emplaceBack(1,0,2),l.emplaceBack(1,2,3);let u=e.createIndexBuffer(l);return this._cachedMesh=new JC(o,u,s),this._cachedMesh}recalculate(){}hasTransition(){return!1}},poe=class hlt{constructor(t=0,r=0,i=0,n=0){if(isNaN(t)||t<0||isNaN(r)||r<0||isNaN(i)||i<0||isNaN(n)||n<0)throw Error("Invalid value for edge-insets, top, bottom, left and right must all be numbers");this.top=t,this.bottom=r,this.left=i,this.right=n}interpolate(t,r,i){return r.top!=null&&t.top!=null&&(this.top=ec.number(t.top,r.top,i)),r.bottom!=null&&t.bottom!=null&&(this.bottom=ec.number(t.bottom,r.bottom,i)),r.left!=null&&t.left!=null&&(this.left=ec.number(t.left,r.left,i)),r.right!=null&&t.right!=null&&(this.right=ec.number(t.right,r.right,i)),this}getCenter(t,r){let i=Pl((this.left+t-this.right)/2,0,t),n=Pl((this.top+r-this.bottom)/2,0,r);return new Zr(i,n)}equals(t){return this.top===t.top&&this.bottom===t.bottom&&this.left===t.left&&this.right===t.right}clone(){return new hlt(this.top,this.bottom,this.left,this.right)}toJSON(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}}};Ioe=class{constructor(e,t){var r;this.applyConstrain=(i,n)=>this._constrainOverride===null?this._callbacks.defaultConstrain(i,n):this._constrainOverride(i,n),this._callbacks=e,this._tileSize=512,this._renderWorldCopies=(t==null?void 0:t.renderWorldCopies)===void 0||!!(t!=null&&t.renderWorldCopies),this._minZoom=(t==null?void 0:t.minZoom)||0,this._maxZoom=(t==null?void 0:t.maxZoom)||22,this._minPitch=(t==null?void 0:t.minPitch)===void 0||(t==null?void 0:t.minPitch)===null?0:t==null?void 0:t.minPitch,this._maxPitch=(t==null?void 0:t.maxPitch)===void 0||(t==null?void 0:t.maxPitch)===null?60:t==null?void 0:t.maxPitch,this._constrainOverride=(r=t==null?void 0:t.constrainOverride)!=null?r:null,this.setMaxBounds(),this._width=0,this._height=0,this._center=new Js(0,0),this._elevation=0,this._zoom=0,this._tileZoom=Yot(this._zoom),this._scale=ed(this._zoom),this._bearingInRadians=0,this._fovInRadians=.6435011087932844,this._pitchInRadians=0,this._rollInRadians=0,this._unmodified=!0,this._edgeInsets=new poe,this._minElevationForCurrentTile=0,this._autoCalculateNearFarZ=!0}apply(e,t){this._constrainOverride=e.constrainOverride,this._latRange=e.latRange,this._lngRange=e.lngRange,this._width=e.width,this._height=e.height,this._center=e.center,this._elevation=e.elevation,this._minElevationForCurrentTile=e.minElevationForCurrentTile,this._zoom=e.zoom,this._tileZoom=Yot(this._zoom),this._scale=ed(this._zoom),this._bearingInRadians=e.bearingInRadians,this._fovInRadians=e.fovInRadians,this._pitchInRadians=e.pitchInRadians,this._rollInRadians=e.rollInRadians,this._unmodified=e.unmodified,this._edgeInsets=new poe(e.padding.top,e.padding.bottom,e.padding.left,e.padding.right),this._minZoom=e.minZoom,this._maxZoom=e.maxZoom,this._minPitch=e.minPitch,this._maxPitch=e.maxPitch,this._renderWorldCopies=e.renderWorldCopies,this._cameraToCenterDistance=e.cameraToCenterDistance,this._nearZ=e.nearZ,this._farZ=e.farZ,this._autoCalculateNearFarZ=e.autoCalculateNearFarZ,t&&this.constrainInternal(),this._calcMatrices()}get pixelsToClipSpaceMatrix(){return this._pixelsToClipSpaceMatrix}get clipSpaceToPixelsMatrix(){return this._clipSpaceToPixelsMatrix}get minElevationForCurrentTile(){return this._minElevationForCurrentTile}setMinElevationForCurrentTile(e){this._minElevationForCurrentTile=e}get tileSize(){return this._tileSize}get tileZoom(){return this._tileZoom}get scale(){return this._scale}get width(){return this._width}get height(){return this._height}get bearingInRadians(){return this._bearingInRadians}get lngRange(){return this._lngRange}get latRange(){return this._latRange}get pixelsToGLUnits(){return this._pixelsToGLUnits}get minZoom(){return this._minZoom}setMinZoom(e){if(this._minZoom===e)return;this._minZoom=e;let t=this._unmodified;this.setZoom(this.applyConstrain(this._center,this.zoom).zoom),this._unmodified=t}get maxZoom(){return this._maxZoom}setMaxZoom(e){if(this._maxZoom===e)return;this._maxZoom=e;let t=this._unmodified;this.setZoom(this.applyConstrain(this._center,this.zoom).zoom),this._unmodified=t}get minPitch(){return this._minPitch}setMinPitch(e){if(this._minPitch===e)return;this._minPitch=e;let t=this._unmodified;this.setPitch(Math.max(this.pitch,e)),this._unmodified=t}get maxPitch(){return this._maxPitch}setMaxPitch(e){if(this._maxPitch===e)return;this._maxPitch=e;let t=this._unmodified;this.setPitch(Math.min(this.pitch,e)),this._unmodified=t}get renderWorldCopies(){return this._renderWorldCopies}setRenderWorldCopies(e){e===void 0?e=!0:e===null&&(e=!1),this._renderWorldCopies=e}get constrainOverride(){return this._constrainOverride}setConstrainOverride(e){e===void 0&&(e=null),this._constrainOverride!==e&&(this._constrainOverride=e,this.constrainInternal(),this._calcMatrices())}get worldSize(){return this._tileSize*this._scale}get centerOffset(){return this.centerPoint._sub(this.size._div(2))}get size(){return new Zr(this._width,this._height)}get bearing(){return this._bearingInRadians/Math.PI*180}setBearing(e){let t=wp(e,-180,180)*Math.PI/180;this._bearingInRadians!==t&&(this._unmodified=!1,this._bearingInRadians=t,this._calcMatrices(),this._rotationMatrix=Dst(),VTr(this._rotationMatrix,this._rotationMatrix,-this._bearingInRadians))}get rotationMatrix(){return this._rotationMatrix}get pitchInRadians(){return this._pitchInRadians}get pitch(){return this._pitchInRadians/Math.PI*180}setPitch(e){let t=Pl(e,this.minPitch,this.maxPitch)/180*Math.PI;this._pitchInRadians!==t&&(this._unmodified=!1,this._pitchInRadians=t,this._calcMatrices())}get rollInRadians(){return this._rollInRadians}get roll(){return this._rollInRadians/Math.PI*180}setRoll(e){let t=e/180*Math.PI;this._rollInRadians!==t&&(this._unmodified=!1,this._rollInRadians=t,this._calcMatrices())}get fovInRadians(){return this._fovInRadians}get fov(){return A1(this._fovInRadians)}setFov(e){e=Pl(e,.1,150),this.fov!==e&&(this._unmodified=!1,this._fovInRadians=$f(e),this._calcMatrices())}get zoom(){return this._zoom}setZoom(e){let t=this.applyConstrain(this._center,e).zoom;this._zoom!==t&&(this._unmodified=!1,this._zoom=t,this._tileZoom=Math.max(0,Math.floor(t)),this._scale=ed(t),this.constrainInternal(),this._calcMatrices())}get center(){return this._center}setCenter(e){(e.lat!==this._center.lat||e.lng!==this._center.lng)&&(this._unmodified=!1,this._center=e,this.constrainInternal(),this._calcMatrices())}get elevation(){return this._elevation}setElevation(e){e!==this._elevation&&(this._elevation=e,this.constrainInternal(),this._calcMatrices())}get padding(){return this._edgeInsets.toJSON()}setPadding(e){this._edgeInsets.equals(e)||(this._unmodified=!1,this._edgeInsets.interpolate(this._edgeInsets,e,1),this._calcMatrices())}get centerPoint(){return this._edgeInsets.getCenter(this._width,this._height)}get pixelsPerMeter(){return this._pixelPerMeter}get unmodified(){return this._unmodified}get cameraToCenterDistance(){return this._cameraToCenterDistance}get nearZ(){return this._nearZ}get farZ(){return this._farZ}get autoCalculateNearFarZ(){return this._autoCalculateNearFarZ}overrideNearFarZ(e,t){this._autoCalculateNearFarZ=!1,this._nearZ=e,this._farZ=t,this._calcMatrices()}clearNearFarZOverride(){this._autoCalculateNearFarZ=!0,this._calcMatrices()}isPaddingEqual(e){return this._edgeInsets.equals(e)}interpolatePadding(e,t,r){this._unmodified=!1,this._edgeInsets.interpolate(e,t,r),this.constrainInternal(),this._calcMatrices()}resize(e,t,r=!0){this._width=e,this._height=t,r&&this.constrainInternal(),this._calcMatrices()}getMaxBounds(){var e,t;return((e=this._latRange)==null?void 0:e.length)!==2||((t=this._lngRange)==null?void 0:t.length)!==2?null:new P1([this._lngRange[0],this._latRange[0]],[this._lngRange[1],this._latRange[1]])}setMaxBounds(e){e?(this._lngRange=[e.getWest(),e.getEast()],this._latRange=[e.getSouth(),e.getNorth()],this.constrainInternal()):(this._lngRange=null,this._latRange=[-k1,k1])}getCameraQueryGeometry(e,t){if(t.length===1)return[t[0],e];{let{minX:r,minY:i,maxX:n,maxY:a}=Tv.fromPoints(t).extend(e);return[new Zr(r,i),new Zr(n,i),new Zr(n,a),new Zr(r,a),new Zr(r,i)]}}constrainInternal(){if(!this.center||!this._width||!this._height||this._constraining)return;this._constraining=!0;let e=this._unmodified,{center:t,zoom:r}=this.applyConstrain(this.center,this.zoom);this.setCenter(t),this.setZoom(r),this._unmodified=e,this._constraining=!1}_calcMatrices(){if(this._pixelPerMeter=xx(1,this.center.lat)*this.worldSize,!this._width||!this._height)return;this._pixelsToGLUnits=[2/this._width,-2/this._height];let e=Mv(new Float64Array(16));f0(e,e,[this._width/2,-this._height/2,1]),th(e,e,[1,-1,0]),this._clipSpaceToPixelsMatrix=e,e=Mv(new Float64Array(16)),f0(e,e,[1,-1,1]),th(e,e,[-1,-1,0]),f0(e,e,[2/this._width,2/this._height,1]),this._pixelsToClipSpaceMatrix=e;let t=this.fovInRadians/2;this._cameraToCenterDistance=.5/Math.tan(t)*this._height,this._callbacks.calcMatrices()}calculateCenterFromCameraLngLatAlt(e,t,r,i){let n=r===void 0?this.bearing:r,a=i=i===void 0?this.pitch:i,{distanceToCenter:o,clampedElevation:s}=this._distanceToCenterFromAltElevationPitch(t,this.elevation,a),{x:l,y:u}=Fq(a,n),f=Uu.fromLngLat(e,t),c=sae(1,f.y),h,d,p=0;do{if(p+=1,p>10)break;d=o/c;let v=l*d,y=u*d;h=new Uu(f.x+v,f.y+y),c=1/h.meterInMercatorCoordinateUnits()}while(Math.abs(o-d*c)>1e-12);return{center:h.toLngLat(),elevation:s,zoom:h0(this.height/2/Math.tan(this.fovInRadians/2)/d/this.tileSize)}}recalculateZoomAndCenter(e){if(this.elevation-e===0)return;let t=1/this.worldSize,r=xx(1,this.center.lat)*this.worldSize,i=Uu.fromLngLat(this.center,this.elevation),n=i.x/t,a=i.y/t,o=i.z/t,s=this.pitch,l=this.bearing,{x:u,y:f,z:c}=Fq(s,l),h=this.cameraToCenterDistance,d=n+h*-u,p=a+h*-f,v=o+h*c,{distanceToCenter:y,clampedElevation:m}=this._distanceToCenterFromAltElevationPitch(v/r,e,s),w=y*r,_=d+u*w,b=p+f*w,M=new Uu(_*t,b*t,0).toLngLat(),x=xx(1,M.lat),A=h0(this.height/2/Math.tan(this.fovInRadians/2)/y/x/this.tileSize);this._elevation=m,this._center=M,this.setZoom(A)}_distanceToCenterFromAltElevationPitch(e,t,r){let i=-Math.cos($f(r)),n=e-t,a,o=t;return i*n>=0||Math.abs(i)=0?1<i}allowWorldCopies(){return!0}prepareNextFrame(){}},tSr=cc([{name:"a_pos3d",type:"Int16",components:3}]),rSr=class extends ih{constructor(e){super(),this._lastTilesetChange=Ku(),this.tileManager=e,this._tiles={},this._renderableTilesKeys=[],this._sourceTileCache={},this.minzoom=0,this.maxzoom=22,this.deltaZoom=1,this.tileSize=e._source.tileSize*2**this.deltaZoom,e.usedForTerrain=!0,e.tileSize=this.tileSize}destruct(){this.tileManager.usedForTerrain=!1,this.tileManager.tileSize=null,this.releaseAllRTT()}getSource(){return this.tileManager._source}update(e,t){this.tileManager.update(e,t),this._renderableTilesKeys=[];let r={},i=!1;for(let n of uT(e,{tileSize:this.tileSize,minzoom:this.minzoom,maxzoom:this.maxzoom,reparseOverscaled:!1,terrain:t}))r[n.key]=!0,this._renderableTilesKeys.push(n.key),this._tiles[n.key]||(n.terrainRttPosMatrix32f=new Float32Array(16),E1(n.terrainRttPosMatrix32f,0,Aa,Aa,0,0,1),this._tiles[n.key]=new elt(n,this.tileSize),this._lastTilesetChange=Ku(),i=!0);for(let n in this._tiles)r[n]||(this._tiles[n].releaseRTT(this.tileManager.map.painter),delete this._tiles[n],i=!0);return i}releaseRTT(e){for(let t in this._tiles){let r=this._tiles[t];(r.tileID.equals(e)||r.tileID.isChildOf(e)||e.isChildOf(r.tileID))&&r.releaseRTT(this.tileManager.map.painter)}}releaseAllRTT(){for(let e in this._tiles)this._tiles[e].releaseRTT(this.tileManager.map.painter)}getRenderableTiles(){return this._renderableTilesKeys.map(e=>this.getTileByID(e))}getTileByID(e){return this._tiles[e]}getTerrainCoords(e,t){return t?this._getTerrainCoordsForTileRanges(e,t):this._getTerrainCoordsForRegularTile(e)}_getTerrainCoordsForRegularTile(e){let t={};for(let r of this._renderableTilesKeys){let i=this._tiles[r].tileID,n=e.clone(),a=mx();if(i.canonical.equals(e.canonical))E1(a,0,Aa,Aa,0,0,1);else if(i.canonical.isChildOf(e.canonical)){let o=i.canonical.z-e.canonical.z,s=i.canonical.x-(i.canonical.x>>o<>o<>o;E1(a,0,u,u,0,0,1),th(a,a,[-s*u,-l*u,0])}else if(e.canonical.isChildOf(i.canonical)){let o=e.canonical.z-i.canonical.z,s=e.canonical.x-(e.canonical.x>>o<>o<>o;E1(a,0,Aa,Aa,0,0,1),th(a,a,[s*u,l*u,0]),f0(a,a,[1/2**o,1/2**o,0])}else continue;n.terrainRttPosMatrix32f=new Float32Array(a),t[r]=n}return t}_getTerrainCoordsForTileRanges(e,t){let r={};for(let i of this._renderableTilesKeys){let n=this._tiles[i].tileID;if(!this._isWithinTileRanges(n,t))continue;let a=e.clone(),o=mx();if(n.canonical.z===e.canonical.z){let s=e.canonical.x-n.canonical.x+e.wrap*(1<e.canonical.z){let s=n.canonical.z-e.canonical.z,l=n.canonical.x-(n.canonical.x>>s<>s<>s),c=e.canonical.y-(n.canonical.y>>s),h=Aa>>s;E1(o,0,h,h,0,0,1),th(o,o,[-l*h+f*Aa,-u*h+c*Aa,0])}else{let s=e.canonical.z-n.canonical.z,l=e.canonical.x-(e.canonical.x>>s<>s<>s)-n.canonical.x,c=(e.canonical.y>>s)-n.canonical.y,h=Aa<r.maxzoom&&(i=r.maxzoom),i=r.minzoom&&!(n!=null&&n.dem);)n=this.findTileInCaches(e.scaledTo(i--).key);return n}findTileInCaches(e){let t=this.tileManager.getTileByID(e);return t||(t=this.tileManager._outOfViewCache.getByKey(e),t)}anyTilesAfterTime(e=Ku()){return this._lastTilesetChange>=e}_isWithinTileRanges(e,t){let r=t[e.canonical.z];return!!r&&(e.wrap>r.minWrap||e.wrap=r.minTileXWrapped&&e.canonical.x<=r.maxTileXWrapped&&e.canonical.y>=r.minTileY&&e.canonical.y<=r.maxTileY)}},Xot=Aa*(1-1e-12),Zot=-.5,iSr=class{constructor(e,t,r,i="auto"){this._meshCache={},this.painter=e,this.tileManager=new rSr(t),this.options=r,this.exaggeration=typeof r.exaggeration=="number"?r.exaggeration:1,this._terrainSkirtLength=i,this.qualityFactor=2,this.meshSize=128,this._demMatrixCache=new Map,this._elevationSamplerCache=new Map}destroy(){this._fbo&&(this._fbo=(this._fbo.destroy(),null)),this._fboDepthTexture&&(this._fboDepthTexture=(this._fboDepthTexture.destroy(),null)),this._emptyDemTexture&&(this._emptyDemTexture=(this._emptyDemTexture.destroy(),null)),this._emptyDepthTexture&&(this._emptyDepthTexture=(this._emptyDepthTexture.destroy(),null));for(let e in this._meshCache)this._meshCache[e].destroy();this._meshCache={},this.tileManager.destruct()}getDEMElevation(e,t,r,i=Aa){let n=e.normalizeCoordinates(t,r,i);if(!n)return 0;let a=this.getElevationSampler(n.tileID);return a?a(n.x,n.y,i):0}getElevationForLngLatZoom(e,t){if(!yae(t,e.wrap()))return 0;let{tileID:r,mercatorX:i,mercatorY:n}=this._getOverscaledTileIDFromLngLatZoom(e,t);return this.getElevation(r,i%Aa,n%Aa,Aa)}getElevationForLngLat(e,t){let r=this.getCoverageIndex();if(r){let a=Uu.fromLngLat(e),o=Roe(r,this.exaggeration,a.x,a.y);if(o.demLoaded)return o.elevation}let i=uT(t,{maxzoom:this.tileManager.maxzoom,minzoom:this.tileManager.minzoom,tileSize:512,terrain:this}),n=0;for(let a of i)a.canonical.z>n&&(n=Math.min(a.canonical.z,this.tileManager.maxzoom));return this.getElevationForLngLatZoom(e,n)}getElevation(e,t,r,i=Aa){return this.getDEMElevation(e,t,r,i)*this.exaggeration}resetElevationCache(){this._elevationSamplerCache.clear(),this._coverageIndex=void 0}getCoverageIndex(){return this._coverageIndex===void 0&&(this._coverageIndex=this._buildCoverageIndex()),this._coverageIndex}_buildCoverageIndex(){let e=[],t=new Map,r=0,i=0;for(let n of this.tileManager.getRenderableTiles()){if(!n)continue;let{canonical:a,wrap:o}=n.tileID;e.includes(a.z)||e.push(a.z);let s=this.getElevationSampler(n.tileID);t.set(`${o}/${a.z}/${a.x}/${a.y}`,s);let{minElevation:l,maxElevation:u}=this.getMinMaxElevation(n.tileID);r=Math.min(r,l!=null?l:0),i=Math.max(i,u!=null?u:0)}return t.size===0?null:(e.sort((n,a)=>a-n),{zooms:e,samplerPerTile:t,minElevation:r-10,maxElevation:i+10})}getElevationSampler(e){let t=e.key,r=this._elevationSamplerCache.get(t);if(r)return r;let i=this.tileManager.getSourceTile(e,!0),n=i==null?void 0:i.dem;if(!i||!n)return null;let a=this._getDEMTileMatrix(e,i),o=a[0]*n.dim,s=a[5]*n.dim,l=a[12]*n.dim+Zot,u=a[13]*n.dim+Zot,f=(c,h,d)=>{let p=d===8192?1:Aa/d;return n.sampleBilinear(c*p*o+l,h*p*s+u)};return this._elevationSamplerCache.set(t,f),f}_getDEMTileMatrix(e,t){let r=`${t.tileID.key}/${e.key}`,i=this._demMatrixCache.get(r);if(i)return i;let n=e.canonical.z-t.tileID.canonical.z,a=e.canonical.x-(e.canonical.x>>n<>n<0,r=t&&e.canonical.y===0,i=t&&e.canonical.y===(1<{n=Pl(+n,this.minZoom,this.maxZoom);let a={center:new Js(i.lng,i.lat),zoom:n},o=this._helper._lngRange;!this._helper._renderWorldCopies&&o===null&&(o=[-179.9999999999,180-1e-10]);let s=this.tileSize*ed(a.zoom),l=0,u=s,f=0,c=s,h=0,d=0,{x:p,y:v}=this.size;if(this._helper._latRange){let M=this._helper._latRange;l=v3(M[1])*s,u=v3(M[0])*s,u-lu&&(_=u-M)}if(o){let M=(f+c)/2,x=y;this._helper._renderWorldCopies&&(x=wp(y,M-s/2,M+s/2));let A=p/2;x-Ac&&(w=c-A)}if(w!==void 0||_!==void 0){let M=new Zr(w!=null?w:y,_!=null?_:m);a.center=Q5(s,M).wrap()}return a},this.applyConstrain=(i,n)=>this._helper.applyConstrain(i,n),this._helper=r!=null?r:new Ioe({calcMatrices:()=>this._calcMatrices(),defaultConstrain:(i,n)=>this.defaultConstrain(i,n)},t),this._coveringTilesDetailsProvider=new eSr}clone(){let t=new vlt;return t.apply(this,!1),t}apply(t,r){this._helper.apply(t,r)}get cameraPosition(){return this._cameraPosition}get projectionMatrix(){return this._projectionMatrix}get modelViewProjectionMatrix(){return this._viewProjMatrix}get inverseProjectionMatrix(){return this._invProjMatrix}get mercatorMatrix(){return this._mercatorMatrix}getVisibleUnwrappedCoordinates(t){let r=[new zC(0,t)];if(this._helper._renderWorldCopies){let i=this.screenPointToMercatorCoordinate(new Zr(0,0)),n=this.screenPointToMercatorCoordinate(new Zr(this._helper._width,0)),a=this.screenPointToMercatorCoordinate(new Zr(this._helper._width,this._helper._height)),o=this.screenPointToMercatorCoordinate(new Zr(0,this._helper._height)),s=Math.floor(Math.min(i.x,n.x,a.x,o.x)),l=Math.floor(Math.max(i.x,n.x,a.x,o.x));for(let u=s-1;u<=l+1;u++)u!==0&&r.push(new zC(u,t))}return r}getCameraFrustum(){return Coe.fromInvProjectionMatrix(this._invViewProjMatrix,this.worldSize)}getClippingPlane(){return null}getCoveringTilesDetailsProvider(){return this._coveringTilesDetailsProvider}recalculateZoomAndCenter(t){let r=this.screenPointToLocation(this.centerPoint,t),i=t?t.getElevationForLngLat(r,this):0;this._helper.recalculateZoomAndCenter(i)}setLocationAtPoint(t,r,i=this.elevation){let n=i-this.elevation,a=this.screenPointToMercatorCoordinateAtZ(r,n),o=this.screenPointToMercatorCoordinateAtZ(this.centerPoint,0),s=Uu.fromLngLat(t),l=new Uu(s.x-(a.x-o.x),s.y-(a.y-o.y));this.setCenter(l==null?void 0:l.toLngLat()),this._helper._renderWorldCopies&&this.setCenter(this.center.wrap())}locationToScreenPoint(t,r){return r?this.coordinatePoint(Uu.fromLngLat(t),r.getElevationForLngLat(t,this),this._pixelMatrix3D):this.coordinatePoint(Uu.fromLngLat(t))}screenPointToLocation(t,r){var i;return(i=this.screenPointToMercatorCoordinate(t,r))==null?void 0:i.toLngLat()}screenPointToLocationAtElevation(t,r){var i;return(i=this.screenPointToMercatorCoordinateAtZ(t,r-this.elevation))==null?void 0:i.toLngLat()}screenPointToMercatorCoordinate(t,r){if(r){let i=this.screenTerrainPointToMercatorCoordinate(t,r);if(i!=null)return i}return this.screenPointToMercatorCoordinateAtZ(t)}screenTerrainPointToMercatorCoordinate(t,r){let i=r.getCoverageIndex();if(!i)return null;let{near:n,far:a}=this.getRaySegmentFromPixel(t),o=this.worldSize,s=a[0]-n[0],l=a[1]-n[1],u=a[2]-n[2],f={index:i,exaggeration:r.exaggeration,near:n,dx:s,dy:l,dz:u,worldSize:o},c=0,h=1;if(u===0){if(n[2]>i.maxElevation||n[2]h)return null}let d=Math.hypot(s,l),p=Pl(Math.ceil(d*(h-c)/4),1,512),v=0,y=!jq(f,0);for(let m=0;m<=p;m++){let w=c+(h-c)*m/p;if(!y)y=!jq(f,w);else if(jq(f,w)){let{lo:_,hi:b}=plt(f,jq,v,w,.001/d),M=nO(f,_),x=nO(f,b),A=n[2]+_*u-M.elevation,T=n[2]+b*u-x.elevation,g=M.covered&&A>T?Pl(_+A*(b-_)/(A-T),_,b):b;return new Uu((n[0]+g*s)/o,(n[1]+g*l)/o,nO(f,g).elevation)}v=w}return null}getRaySegmentFromPixel(t){let r=[t.x,t.y,0,1],i=[t.x,t.y,1,1];c0(r,r,this._pixelMatrixInverse),c0(i,i,this._pixelMatrixInverse);let n=r[3],a=i[3],o=this.elevation;return{near:[r[0]/n,r[1]/n,r[2]/n+o],far:[i[0]/a,i[1]/a,i[2]/a+o]}}screenPointToMercatorCoordinateAtZ(t,r){let i=r||0,{near:n,far:a}=this.getRaySegmentFromPixel(t),o=n[2]===a[2]?0:(i+this.elevation-n[2])/(a[2]-n[2]);return new Uu(ec.number(n[0],a[0],o)/this.worldSize,ec.number(n[1],a[1],o)/this.worldSize,i)}coordinatePoint(t,r=0,i=this._pixelMatrix){let n=this._coordinateClipPoint(t,r,i),a=n[3];return a>0?new Zr(n[0]/a,n[1]/a):this._offScreenPointBehindCamera(n[0],n[1],a)}_coordinateClipPoint(t,r,i){let n=[t.x*this.worldSize,t.y*this.worldSize,r,1];return c0(n,n,i)}_offScreenPointBehindCamera(t,r,i){let n=this.width/2,a=this.height/2,o=t-n*i,s=r-a*i;o===0&&s===0&&(s=1);let l=n+this.width,u=a+this.height,f=Math.min(o===0?1/0:l/Math.abs(o),s===0?1/0:u/Math.abs(s));return new Zr(n+o*f,a+s*f)}getBounds(){let t=Math.max(0,this._helper._height/2-eT(this));return new P1().extend(this.screenPointToLocation(new Zr(0,t))).extend(this.screenPointToLocation(new Zr(this._helper._width,t))).extend(this.screenPointToLocation(new Zr(this._helper._width,this._helper._height))).extend(this.screenPointToLocation(new Zr(0,this._helper._height)))}isPointOnMapSurface(t,r){return r?this.screenTerrainPointToMercatorCoordinate(t,r)!=null:t.y>this.centerPoint.y-eT(this)}calculatePosMatrix(t,r=!1,i=!1){var l;let n=(l=t.key)!=null?l:r3(t.wrap,t.canonical.z,t.canonical.z,t.canonical.x,t.canonical.y),a=r?this._alignedPosMatrixCache:this._posMatrixCache;if(a.has(n)){let u=a.get(n);return i?u.f32:u.f64}let o=Dq(t,this.worldSize);l3(o,r?this._alignedProjMatrix:this._viewProjMatrix,o);let s={f64:o,f32:new Float32Array(o)};return a.set(n,s),i?s.f32:s.f64}calculateFogMatrix(t){let r=t.key,i=this._fogMatrixCacheF32;if(i.has(r))return i.get(r);let n=Dq(t,this.worldSize);return l3(n,this._fogMatrix,n),i.set(r,new Float32Array(n)),i.get(r)}calculateCenterFromCameraLngLatAlt(t,r,i,n){return this._helper.calculateCenterFromCameraLngLatAlt(t,r,i,n)}calculateCameraOptionsFromTo(t,r,i,n){let a=Uu.fromLngLat(t,r),o=Uu.fromLngLat(i,n),s=o.x-a.x,l=o.y-a.y,u=o.z-a.z,f=Math.hypot(s,l,u);if(f===0)throw Error("Can't calculate camera options with same From and To");let c=Math.hypot(s,l),h=h0(this.cameraToCenterDistance/f/this.tileSize),d=A1(Math.atan2(s,-l)),p=A1(Math.acos(c/f));return p=u<0?90-p:90+p,{center:o.toLngLat(),elevation:n,zoom:h,pitch:p,bearing:d}}_calculateNearFarZ(t,r,i){let n=Math.min(this.elevation,this.minElevationForCurrentTile,this.getCameraAltitude()-100),a=t-n*this._helper._pixelPerMeter/Math.cos(r),o=n<0?a:t,s=Math.PI/2+this.pitchInRadians,l=$f(this.fov)*(Math.abs(Math.cos($f(this.roll)))*this.height+Math.abs(Math.sin($f(this.roll)))*this.width)/this.height*(.5+i.y/this.height),u=Math.sin(l)*o/Math.sin(Pl(Math.PI-s-l,.01,Math.PI-.01)),f=eT(this),c=Math.atan(f/this._helper.cameraToCenterDistance),h=$f(90-bx),d=c>h?2*c*(.5+i.y/(f*2)):h,p=Math.sin(d)*o/Math.sin(Pl(Math.PI-s-d,.01,Math.PI-.01)),v=Math.min(u,p);this._helper._farZ=(Math.cos(Math.PI/2-r)*v+o)*1.01,this._helper._nearZ=this._helper._height/50}_calcMatrices(t=this._helper.autoCalculateNearFarZ){let r=this.centerOffset,i=F1(this.worldSize,this.center),n=i.x,a=i.y,o=$f(Math.min(this.pitch,bx)),s=Math.max(this._helper.cameraToCenterDistance/2,this._helper.cameraToCenterDistance+this._helper._elevation*this._helper._pixelPerMeter/Math.cos(o));t&&this._calculateNearFarZ(s,o,r);let l;l=new Float64Array(16),$7(l,this.fovInRadians,this._helper._width/this._helper._height,this._helper._nearZ,this._helper._farZ),this._invProjMatrix=new Float64Array(16),wMr(this._invProjMatrix,l),l[8]=-r.x*2/this._helper._width,l[9]=r.y*2/this._helper._height,this._projectionMatrix=W7(l),f0(l,l,[1,-1,1]),th(l,l,[0,0,-this._helper.cameraToCenterDistance]),Jy(l,l,-this.rollInRadians),u3(l,l,this.pitchInRadians),Jy(l,l,-this.bearingInRadians),th(l,l,[-n,-a,0]),this._mercatorMatrix=f0([],l,[this.worldSize,this.worldSize,this.worldSize]),f0(l,l,[1,1,this._helper._pixelPerMeter]),this._pixelMatrix=l3(new Float64Array(16),this.clipSpaceToPixelsMatrix,l),th(l,l,[0,0,-this.elevation]),this._viewProjMatrix=l,this._invViewProjMatrix=lC([],l);let u=[0,0,-1,1];c0(u,u,this._invViewProjMatrix),this._cameraPosition=[u[0]/u[3],u[1]/u[3],u[2]/u[3]],this._fogMatrix=new Float64Array(16),$7(this._fogMatrix,this.fovInRadians,this.width/this.height,s,this._helper._farZ),this._fogMatrix[8]=-r.x*2/this.width,this._fogMatrix[9]=r.y*2/this.height,f0(this._fogMatrix,this._fogMatrix,[1,-1,1]),th(this._fogMatrix,this._fogMatrix,[0,0,-this.cameraToCenterDistance]),Jy(this._fogMatrix,this._fogMatrix,-this.rollInRadians),u3(this._fogMatrix,this._fogMatrix,this.pitchInRadians),Jy(this._fogMatrix,this._fogMatrix,-this.bearingInRadians),th(this._fogMatrix,this._fogMatrix,[-n,-a,0]),f0(this._fogMatrix,this._fogMatrix,[1,1,this._helper._pixelPerMeter]),th(this._fogMatrix,this._fogMatrix,[0,0,-this.elevation]),this._pixelMatrix3D=l3(new Float64Array(16),this.clipSpaceToPixelsMatrix,l);let f=this._helper._width%2/2,c=this._helper._height%2/2,h=Math.cos(this.bearingInRadians),d=Math.sin(-this.bearingInRadians),p=n-Math.round(n)+h*f+d*c,v=a-Math.round(a)+h*c+d*f,y=new Float64Array(l);if(th(y,y,[p>.5?p-1:p,v>.5?v-1:v,0]),this._alignedProjMatrix=y,l=lC(new Float64Array(16),this._pixelMatrix),!l)throw Error("failed to invert matrix");this._pixelMatrixInverse=l,this._clearMatrixCaches()}_clearMatrixCaches(){this._posMatrixCache.clear(),this._alignedPosMatrixCache.clear(),this._fogMatrixCacheF32.clear()}maxPitchScaleFactor(){if(!this._pixelMatrixInverse)return 1;let t=this.screenPointToMercatorCoordinate(new Zr(0,0)),r=[t.x*this.worldSize,t.y*this.worldSize,0,1];return c0(r,r,this._pixelMatrix)[3]/this._helper.cameraToCenterDistance}getCameraPoint(){return this._helper.getCameraPoint()}getCameraAltitude(){return Math.cos(this.pitchInRadians)*this.cameraToCenterDistance/this.pixelsPerMeter+this.elevation}getCameraLngLat(){let t=xx(1,this.center.lat)*this.worldSize,r=this._helper.cameraToCenterDistance/t;return uae(this.center,this.elevation,this.pitch,this.bearing,r).toLngLat()}getProjectionData(t){let{overscaledTileID:r,aligned:i,applyTerrainMatrix:n}=t,a=this._helper.getMercatorTileCoordinates(r),o=r?this.calculatePosMatrix(r,i,!0):null,s;return s=r!=null&&r.terrainRttPosMatrix32f&&n?r.terrainRttPosMatrix32f:o||bne(),{mainMatrix:s,tileMercatorCoords:a,clippingPlane:[0,0,0,0],projectionTransition:0,fallbackMatrix:s,clipAntimeridian:!1}}isLocationOccluded(t,r,i){if(!(r!=null&&r.getCoverageIndex()))return!1;let n=Uu.fromLngLat(t);i!=null||(i=r.getElevationForLngLat(t,this));let a=this._coordinateClipPoint(n,i,this._pixelMatrix3D),o=a[3];if(o<=0||a[2]>o)return!0;let s=new Zr(a[0]/o,a[1]/o),l=this.screenTerrainPointToMercatorCoordinate(s,r);if(l==null)return!1;let u=this.getRaySegmentFromPixel(s),f=Jot(u,n.x*this.worldSize,n.y*this.worldSize,i);return Jot(u,l.x*this.worldSize,l.y*this.worldSize,l.z){if(l&&e.setZoom(ec.number(r,d,_)),Ane(n,a)||ylt({startEulerAngles:n,endEulerAngles:a,tr:e,k:_,useSlerp:n.roll!=a.roll}),s&&(e.interpolatePadding(i,t.padding,_),f=e.centerPoint.add(t.offsetAsPoint)),t.around)e.setLocationAtPoint(t.around,t.aroundPoint);else{let b=ed(e.zoom-r),M=(d>r?Math.min(2,y):Math.max(.5,y))**(1-_),x=Q5(e.worldSize,p.add(v.mult(_*M)).mult(b));e.setLocationAtPoint(e.renderWorldCopies?x.wrap():x,f)}},w=this._transformAtAnimationEnd(e,d,a,t.padding);return t.around?w.setLocationAtPoint(t.around,t.aroundPoint):w.setLocationAtPoint(h,w.centerPoint.add(t.offsetAsPoint)),{easeFunc:m,isZooming:l,elevationCenter:w.center}}handleFlyTo(e,t){let r=t.zoom!==void 0,i=e.zoom,n=e.applyConstrain(Js.convert(t.center||t.locationAtOffset),r?+t.zoom:i),a=n.center,o=n.zoom;lO(e,a);let s=e.worldSize,l=F1(s,t.locationAtOffset),u=F1(s,a).sub(l),f=u.mag(),c=ed(o-i),h=t.minZoom===void 0?e.minZoom:+t.minZoom,d=Math.max(h,e.minZoom),p=Math.min(d,i,o),v=e.applyConstrain(a,p).zoom,y=ed(v-i),m=(_,b,M,x)=>{e.setZoom(_===1?o:i+h0(b));let A=_===1?a:Q5(s,l.add(u.mult(M)));e.setLocationAtPoint(e.renderWorldCopies?A.wrap():A,x)},w=this._transformAtAnimationEnd(e,o,{roll:t.roll,pitch:t.pitch,bearing:t.bearing},t.padding);return w.setLocationAtPoint(a,w.centerPoint.add(t.offsetAsPoint)),{easeFunc:m,scaleOfZoom:c,targetCenter:w.center,scaleOfMinZoom:y,pixelPathLength:f}}_transformAtAnimationEnd(e,t,r,i){let n=e.clone();return n.setZoom(t),n.setRoll(r.roll),n.setPitch(r.pitch),n.setBearing(r.bearing),n.setPadding(i),n}},nSr=()=>Qot||(Qot=new Nh({type:new ms(cn.projection.type,"type")})),Vae=new kq({fill:new zm(128,2),line:new zm(512,0),tile:new zm(128,32),stencil:new zm(128,1),circle:3}),xlt=class{constructor(){this._tileMeshCache={}}get name(){return"vertical-perspective"}get transitionState(){return 1}get useSubdivision(){return!0}get shaderVariantName(){return"globe"}get shaderDefine(){return"#define GLOBE"}get shaderPreludeCode(){return Gm.projectionGlobe}get vertexShaderPreludeCode(){return Gm.projectionMercator.vertexSource}get subdivisionGranularity(){return Vae}get useGlobeControls(){return!0}destroy(){}_getMeshKey(e){return`${e.granularity.toString(36)}_${e.generateBorders?"b":""}${e.extendToNorthPole?"n":""}${e.extendToSouthPole?"s":""}`}getMeshFromTileID(e,t,r,i,n){let a=(n==="stencil"?Vae.stencil:Vae.tile).getGranularityForZoomLevel(t.z),o=t.y===0&&i,s=t.y===(1<0}get currentProjection(){return this.useGlobeRendering?this._verticalPerspectiveProjection:this._mercatorProjection}get name(){return"globe"}get useSubdivision(){return this.currentProjection.useSubdivision}get shaderVariantName(){return this.currentProjection.shaderVariantName}get shaderDefine(){return this.currentProjection.shaderDefine}get shaderPreludeCode(){return this.currentProjection.shaderPreludeCode}get vertexShaderPreludeCode(){return this.currentProjection.vertexShaderPreludeCode}get subdivisionGranularity(){return this.currentProjection.subdivisionGranularity}get useGlobeControls(){return this.transitionState>0}destroy(){this._mercatorProjection.destroy(),this._verticalPerspectiveProjection.destroy()}getMeshFromTileID(e,t,r,i,n){return this.currentProjection.getMeshFromTileID(e,t,r,i,n)}setProjection(e){this._transitionable.setValue("type",(e==null?void 0:e.type)||"mercator")}updateTransitions(e){this._transitioning=this._transitionable.transitioned(e,this._transitioning)}hasTransition(){return this._transitioning.hasTransition()||this.currentProjection.hasTransition()}recalculate(e){this.properties=this._transitioning.possiblyEvaluate(e)}};Uae=Math.PI*.98;mSr=class{constructor(e){this._cachePrevious=new Map,this._cache=new Map,this._hadAnyChanges=!1,this._boundingVolumeFactory=e}swapBuffers(){if(!this._hadAnyChanges)return;let e=this._cachePrevious;this._cachePrevious=this._cache,this._cache=e,this._cache.clear(),this._hadAnyChanges=!1}getTileBoundingVolume(e,t,r,i){let n=`${e.z}_${e.x}_${e.y}_${i!=null&&i.terrain?"t":""}_${Math.round(r)}`,a=this._cache.get(n);if(a)return a;let o=this._cachePrevious.get(n);if(o)return this._cache.set(n,o),o;let s=this._boundingVolumeFactory(e,t,r,i);return this._cache.set(n,s),this._hadAnyChanges=!0,s}},Hae=class voe{constructor(t,r,i,n){this.min=i,this.max=n,this.points=t,this.planes=r}static fromAabb(t,r){let i=[];for(let n=0;n<8;n++)i.push([(n>>0&1)==1?r[0]:t[0],(n>>1&1)==1?r[1]:t[1],(n>>2&1)==1?r[2]:t[2]]);return new voe(i,[[-1,0,0,r[0]],[1,0,0,-t[0]],[0,-1,0,r[1]],[0,1,0,-t[1]],[0,0,-1,r[2]],[0,0,1,-t[2]]],t,r)}static fromCenterSizeAngles(t,r,i){let n=J7([],i[0],i[1],i[2]),a=Z7([],[r[0],0,0],n),o=Z7([],[0,r[1],0],n),s=Z7([],[0,0,r[2]],n),l=[...t],u=[...t];for(let c=0;c<8;c++)for(let h=0;h<3;h++){let d=t[h]+a[h]*((c>>0&1)==1?1:-1)+o[h]*((c>>1&1)==1?1:-1)+s[h]*((c>>2&1)==1?1:-1);l[h]=Math.min(l[h],d),u[h]=Math.max(u[h],d)}let f=[];for(let c=0;c<8;c++){let h=[...t];bp(h,h,Wf([],a,(c>>0&1)==1?1:-1)),bp(h,h,Wf([],o,(c>>1&1)==1?1:-1)),bp(h,h,Wf([],s,(c>>2&1)==1?1:-1)),f.push(h)}return new voe(f,[[...a,-rh(a,f[0])],[...o,-rh(o,f[0])],[...s,-rh(s,f[0])],[-a[0],-a[1],-a[2],-rh(a,f[7])],[-o[0],-o[1],-o[2],-rh(o,f[7])],[-s[0],-s[1],-s[2],-rh(s,f[7])]],l,u)}intersectsFrustum(t){let r=!0,i=this.points.length,n=this.planes.length,a=t.planes.length,o=t.points.length;for(let s=0;s=0&&u++}if(u===0)return 0;u=0&&u++}if(u===0)return 0}return 1}intersectsPlane(t){let r=this.points.length,i=0;for(let n=0;n=0&&i++}return i===r?2:i===0?0:1}};ySr=class{constructor(){this._boundingVolumeCache=new mSr(this._computeTileBoundingVolume)}prepareNextFrame(){this._boundingVolumeCache.swapBuffers()}distanceToTile2d(e,t,r,i){let n=1<4}allowWorldCopies(){return!1}getTileBoundingVolume(e,t,r,i){return this._boundingVolumeCache.getTileBoundingVolume(e,t,r,i)}_computeTileBoundingVolume(e,t,r,i){var o,s;let n=Math.min(0,r),a=Math.max(0,r);if(i!=null&&i.terrain){let l=new d0(e.z,t,e.z,e.x,e.y),u=i.terrain.getMinMaxElevation(l);n=(o=u.minElevation)!=null?o:n,a=Math.max((s=u.maxElevation)!=null?s:a,a)}if(n/=rd,a/=rd,n+=1,a+=1,e.z<=0)return Hae.fromAabb([-a,-a,-a],[a,a,a]);if(e.z===1)return Hae.fromAabb([e.x===0?-a:0,e.y===0?0:-a,-a],[e.x===0?0:a,e.y===0?a:0,a]);{let l=[_x(0,0,e.x,e.y,e.z),_x(Aa,0,e.x,e.y,e.z),_x(Aa,Aa,e.x,e.y,e.z),_x(0,Aa,e.x,e.y,e.z)],u=[];for(let E of l)u.push(Wf([],E,a));if(a!==n)for(let E of l)u.push(Wf([],E,n));e.y===0&&u.push([0,1,0]),e.y===(1<=(1<{let a=Pl(i.lat,-k1,k1),o=Pl(+n,this.minZoom+p0(0,a),this.maxZoom);return{center:new Js(i.lng,a),zoom:o}},this.applyConstrain=(i,n)=>this._helper.applyConstrain(i,n),this._helper=r!=null?r:new Ioe({calcMatrices:()=>this._calcMatrices(),defaultConstrain:(i,n)=>this.defaultConstrain(i,n)},t),this._coveringTilesDetailsProvider=new ySr}clone(){let t=new Tlt;return t.apply(this,!1),t}apply(t,r){this._helper.apply(t,r)}get projectionMatrix(){return this._projectionMatrix}get modelViewProjectionMatrix(){return this._globeViewProjMatrixF64}get inverseProjectionMatrix(){return this._globeProjMatrixInverted}get cameraPosition(){let t=Gu();return t[0]=this._cameraPosition[0],t[1]=this._cameraPosition[1],t[2]=this._cameraPosition[2],t}get cameraToCenterDistance(){return this._helper.cameraToCenterDistance}getProjectionData(t){let{overscaledTileID:r,applyGlobeMatrix:i}=t,n=this._helper.getMercatorTileCoordinates(r);return{mainMatrix:this._globeViewProjMatrix32f,tileMercatorCoords:n,clippingPlane:this._cachedClippingPlane,projectionTransition:+!!i,fallbackMatrix:this._globeViewProjMatrix32f,clipAntimeridian:(r==null?void 0:r.canonical.z)===0}}_computeClippingPlane(t){let r=this.pitchInRadians,i=this.cameraToCenterDistance/t,n=Math.sin(r)*i,a=Math.cos(r)*i+1,o=1/Math.sqrt(n*n+a*a)*1,s=-n,l=a,u=Math.sqrt(s*s+l*l);s/=u,l/=u;let f=[0,s,l];K7(f,f,[0,0,0],-this.bearingInRadians),W5(f,f,[0,0,0],-1*this.center.lat*Math.PI/180),f3(f,f,[0,0,0],this.center.lng*Math.PI/180);let c=1/Sv(f);return Wf(f,f,c),[...f,-o*c]}isLocationOccluded(t,r,i){let n=r==null?void 0:r.getCoverageIndex();i!=null||(i=n?r.getElevationForLngLat(t,this):0);let a=ost(t,i);if(!this.isSurfacePointVisible(a))return!0;if(!n)return!1;let o=this._projectSurfacePointToScreen(a),s=this.cameraPosition,l=this.getRayDirectionFromPixel(o),u=sst(s,l,a);if(u<=0)return!0;let f=this.screenTerrainPointToMercatorCoordinate(o,r);return f!=null&&sst(s,l,ost(f.toLngLat(),f.z))a&&(a=h),ds&&(s=d)}let f=[u.lng+o,u.lat+l,u.lng+a,u.lat+s];return this.isSurfacePointOnScreen([0,1,0])&&(f[3]=90,f[0]=-180,f[2]=180),this.isSurfacePointOnScreen([0,-1,0])&&(f[1]=-90,f[0]=-180,f[2]=180),new P1(f)}calculateCenterFromCameraLngLatAlt(t,r,i,n){return this._helper.calculateCenterFromCameraLngLatAlt(t,r,i,n)}calculateCameraOptionsFromTo(t,r,i,n){let a=Js.convert(i),o=Vh(Js.convert(t));Wf(o,o,1+r/rd);let s=Vh(a),l=Wf(Gu(),s,1+n/rd),u=X7(Gu(),o,s),f=Sv(u);if(f=-w&&v<=w,b=m>=-w&&m<=w,M,x;if(_&&b){let E=this.center.lng*Math.PI/180,S=this.center.lat*Math.PI/180,C=dC(h,E),k=dC(v,S),D=dC(d,E),L=dC(m,S);C+k=0}isSurfacePointOnScreen(t){if(!this.isSurfacePointVisible(t))return!1;let r=vx();return c0(r,[...t,1],this._globeViewProjMatrixF64),r[0]/=r[3],r[1]/=r[3],r[2]/=r[3],r[0]>-1&&r[0]<1&&r[1]>-1&&r[1]<1&&r[2]>-1&&r[2]<1}unprojectScreenPoint(t){let r=this._cameraPosition,i=this.getRayDirectionFromPixel(t),n=Wq(r,i);if(n){let f=Gu();bp(f,r,[i[0]*n.tMin,i[1]*n.tMin,i[2]*n.tMin]);let c=Gu();return Q0(c,f),ZC(c)}let a=this._cachedClippingPlane,o=a[0]*i[0]+a[1]*i[1]+a[2]*i[2],s=-eq(a,r)/o,l=Gu();if(s>0)bp(l,r,[i[0]*s,i[1]*s,i[2]*s]);else{let f=Gu();bp(f,r,[i[0]*2,i[1]*2,i[2]*2]);let c=eq(this._cachedClippingPlane,f);Nm(l,f,[this._cachedClippingPlane[0]*c,this._cachedClippingPlane[1]*c,this._cachedClippingPlane[2]*c])}let u=hSr(a);return ZC(dSr(u.center,u.radius,l))}getProjectionDataForCustomLayer(t=!0){let r=this.getProjectionData({overscaledTileID:new d0(0,0,0,0,0),applyGlobeMatrix:t});return r.tileMercatorCoords=[0,0,1,1],r}getFastPathSimpleProjectionMatrix(t){}};lst=class Slt{get pixelsToClipSpaceMatrix(){return this._helper.pixelsToClipSpaceMatrix}get clipSpaceToPixelsMatrix(){return this._helper.clipSpaceToPixelsMatrix}get pixelsToGLUnits(){return this._helper.pixelsToGLUnits}get centerOffset(){return this._helper.centerOffset}get size(){return this._helper.size}get rotationMatrix(){return this._helper.rotationMatrix}get centerPoint(){return this._helper.centerPoint}get pixelsPerMeter(){return this._helper.pixelsPerMeter}setMinZoom(t){this._helper.setMinZoom(t)}setMaxZoom(t){this._helper.setMaxZoom(t)}setMinPitch(t){this._helper.setMinPitch(t)}setMaxPitch(t){this._helper.setMaxPitch(t)}setRenderWorldCopies(t){this._helper.setRenderWorldCopies(t)}setBearing(t){this._helper.setBearing(t)}setPitch(t){this._helper.setPitch(t)}setRoll(t){this._helper.setRoll(t)}setFov(t){this._helper.setFov(t)}setZoom(t){this._helper.setZoom(t)}setCenter(t){this._helper.setCenter(t)}setElevation(t){this._helper.setElevation(t)}setMinElevationForCurrentTile(t){this._helper.setMinElevationForCurrentTile(t)}setPadding(t){this._helper.setPadding(t)}interpolatePadding(t,r,i){this._helper.interpolatePadding(t,r,i)}isPaddingEqual(t){return this._helper.isPaddingEqual(t)}resize(t,r,i=!0){this._helper.resize(t,r,i)}getMaxBounds(){return this._helper.getMaxBounds()}setMaxBounds(t){this._helper.setMaxBounds(t)}setConstrainOverride(t){this._helper.setConstrainOverride(t)}overrideNearFarZ(t,r){this._helper.overrideNearFarZ(t,r)}clearNearFarZOverride(){this._helper.clearNearFarZOverride()}getCameraQueryGeometry(t){return this._helper.getCameraQueryGeometry(this.getCameraPoint(),t)}get tileSize(){return this._helper.tileSize}get tileZoom(){return this._helper.tileZoom}get scale(){return this._helper.scale}get worldSize(){return this._helper.worldSize}get width(){return this._helper.width}get height(){return this._helper.height}get lngRange(){return this._helper.lngRange}get latRange(){return this._helper.latRange}get minZoom(){return this._helper.minZoom}get maxZoom(){return this._helper.maxZoom}get zoom(){return this._helper.zoom}get center(){return this._helper.center}get minPitch(){return this._helper.minPitch}get maxPitch(){return this._helper.maxPitch}get pitch(){return this._helper.pitch}get pitchInRadians(){return this._helper.pitchInRadians}get roll(){return this._helper.roll}get rollInRadians(){return this._helper.rollInRadians}get bearing(){return this._helper.bearing}get bearingInRadians(){return this._helper.bearingInRadians}get fov(){return this._helper.fov}get fovInRadians(){return this._helper.fovInRadians}get elevation(){return this._helper.elevation}get minElevationForCurrentTile(){return this._helper.minElevationForCurrentTile}get padding(){return this._helper.padding}get unmodified(){return this._helper.unmodified}get renderWorldCopies(){return this._helper.renderWorldCopies}get cameraToCenterDistance(){return this._helper.cameraToCenterDistance}get constrainOverride(){return this._helper.constrainOverride}get nearZ(){return this._helper.nearZ}get farZ(){return this._helper.farZ}get autoCalculateNearFarZ(){return this._helper.autoCalculateNearFarZ}get isGlobeRendering(){return this._globeness>0}setTransitionState(t){this._globeness=t,this._calcMatrices(),this._verticalPerspectiveTransform.getCoveringTilesDetailsProvider().prepareNextFrame(),this._mercatorTransform.getCoveringTilesDetailsProvider().prepareNextFrame()}get currentTransform(){return this.isGlobeRendering?this._verticalPerspectiveTransform:this._mercatorTransform}constructor(t){this._globeness=1,this.defaultConstrain=(r,i)=>this.currentTransform.defaultConstrain(r,i),this.applyConstrain=(r,i)=>this._helper.applyConstrain(r,i),this._helper=new Ioe({calcMatrices:()=>this._calcMatrices(),defaultConstrain:(r,i)=>this.defaultConstrain(r,i)},t),this._globeness=1,this._mercatorTransform=new uO(void 0,this._helper),this._verticalPerspectiveTransform=new Alt(void 0,this._helper)}clone(){let t=new Slt;return t._globeness=this._globeness,t.apply(this,!1),t}apply(t,r){this._helper.apply(t,r)}get projectionMatrix(){return this.currentTransform.projectionMatrix}get modelViewProjectionMatrix(){return this.currentTransform.modelViewProjectionMatrix}get inverseProjectionMatrix(){return this.currentTransform.inverseProjectionMatrix}get cameraPosition(){return this.currentTransform.cameraPosition}getProjectionData(t){let r=this._mercatorTransform.getProjectionData(t),i=this._verticalPerspectiveTransform.getProjectionData(t);return{mainMatrix:this.isGlobeRendering?i.mainMatrix:r.mainMatrix,clippingPlane:i.clippingPlane,tileMercatorCoords:i.tileMercatorCoords,projectionTransition:t.applyGlobeMatrix?this._globeness:0,fallbackMatrix:r.fallbackMatrix,clipAntimeridian:i.clipAntimeridian}}isLocationOccluded(t,r,i){return this.currentTransform.isLocationOccluded(t,r,i)}transformLightDirection(t){return this.currentTransform.transformLightDirection(t)}getPixelScale(){return c3(this._mercatorTransform.getPixelScale(),this._verticalPerspectiveTransform.getPixelScale(),this._globeness)}getCircleRadiusCorrection(){return c3(this._mercatorTransform.getCircleRadiusCorrection(),this._verticalPerspectiveTransform.getCircleRadiusCorrection(),this._globeness)}getPitchedTextCorrection(t,r,i){let n=this._mercatorTransform.getPitchedTextCorrection(t,r,i),a=this._verticalPerspectiveTransform.getPitchedTextCorrection(t,r,i);return c3(n,a,this._globeness)}projectTileCoordinates(t,r,i,n){return this.currentTransform.projectTileCoordinates(t,r,i,n)}_calcMatrices(){this._helper._width&&this._helper._height&&(this._verticalPerspectiveTransform._calcMatrices(),this._mercatorTransform._calcMatrices(this.autoCalculateNearFarZ&&!this.isGlobeRendering))}calculateFogMatrix(t){return this.currentTransform.calculateFogMatrix(t)}getVisibleUnwrappedCoordinates(t){return this.currentTransform.getVisibleUnwrappedCoordinates(t)}getCameraFrustum(){return this.currentTransform.getCameraFrustum()}getClippingPlane(){return this.currentTransform.getClippingPlane()}getCoveringTilesDetailsProvider(){return this.currentTransform.getCoveringTilesDetailsProvider()}recalculateZoomAndCenter(t){this.currentTransform.recalculateZoomAndCenter(t)}maxPitchScaleFactor(){return this._mercatorTransform.maxPitchScaleFactor()}getCameraPoint(){return this._helper.getCameraPoint()}getCameraAltitude(){return this.currentTransform.getCameraAltitude()}getCameraLngLat(){return this.currentTransform.getCameraLngLat()}populateCache(t){this._mercatorTransform.populateCache(t),this._verticalPerspectiveTransform.populateCache(t)}getBounds(){return this.currentTransform.getBounds()}calculateCenterFromCameraLngLatAlt(t,r,i,n){return this._helper.calculateCenterFromCameraLngLatAlt(t,r,i,n)}calculateCameraOptionsFromTo(t,r,i,n){return this.currentTransform.calculateCameraOptionsFromTo(t,r,i,n)}setLocationAtPoint(t,r,i){this.currentTransform.setLocationAtPoint(t,r,i)}locationToScreenPoint(t,r){return this.currentTransform.locationToScreenPoint(t,r)}screenPointToMercatorCoordinate(t,r){return this.currentTransform.screenPointToMercatorCoordinate(t,r)}screenTerrainPointToMercatorCoordinate(t,r){return this.currentTransform.screenTerrainPointToMercatorCoordinate(t,r)}screenPointToLocation(t,r){return this.currentTransform.screenPointToLocation(t,r)}screenPointToLocationAtElevation(t,r){return this.currentTransform.screenPointToLocationAtElevation(t,r)}isPointOnMapSurface(t,r){return this.currentTransform.isPointOnMapSurface(t,r)}getRayDirectionFromPixel(t){return this._verticalPerspectiveTransform.getRayDirectionFromPixel(t)}getProjectionDataForCustomLayer(t=!0){let r=this._mercatorTransform.getProjectionDataForCustomLayer(t);if(!this.isGlobeRendering)return r;let i=this._verticalPerspectiveTransform.getProjectionDataForCustomLayer(t);return i.fallbackMatrix=r.mainMatrix,i.projectionTransition=this._globeness,i}getFastPathSimpleProjectionMatrix(t){return this.currentTransform.getFastPathSimpleProjectionMatrix(t)}},Elt=class og{get useGlobeControls(){return!0}handlePanInertia(t,r){let i=vSr(t,r);return Math.abs(i.lng-r.center.lng)>180&&(i.lng=r.center.lng+179.5*Math.sign(i.lng-r.center.lng)),{easingCenter:i,easingOffset:new Zr(0,0)}}handleMapControlsRollPitchBearingZoom(t,r){let i=t.around,n=r.screenPointToLocation(i);t.bearingDelta&&r.setBearing(r.bearing+t.bearingDelta),t.pitchDelta&&r.setPitch(r.pitch+t.pitchDelta),t.rollDelta&&r.setRoll(r.roll+t.rollDelta);let a=r.zoom;t.zoomDelta&&r.setZoom(r.zoom+t.zoomDelta);let o=r.zoom-a;if(o===0)return;let s=Nd(r.center.lng,n.lng),l=s/(Math.abs(s/180)+1),u=Nd(r.center.lat,n.lat),f=r.getRayDirectionFromPixel(i),c=r.cameraPosition,h=rh(c,f)*-1,d=Gu();bp(d,c,[f[0]*h,f[1]*h,f[2]*h]);let p=Sv(d),v=p-1,y=Math.exp(-Math.max(v-.3,0)*.5),m=pC(p,.95,.999,0,1),w=sT(r.worldSize,r.center.lat)/Math.min(r.width,r.height),_=pC(w,.9,.5,1,.25),b=Math.min(y,c3(1,_,m)),M=(1-ed(-o))*b,x=r.center.lat,A=r.zoom,T=new Js(r.center.lng+l*M,Pl(r.center.lat+u*M,-k1,k1));r.setLocationAtPoint(n,i);let g=r.center,E=pC(Math.abs(s),45,85,0,1),S=Math.max(E,m)**.25,C=Nd(g.lng,T.lng),k=Nd(g.lat,T.lat);r.setCenter(new Js(g.lng+C*S,g.lat+k*S).wrap()),r.setZoom(A+p0(x,r.center.lat))}handleMapControlsPan(t,r,i){t.panDelta&&fSr(r,i,r.isPointOnMapSurface(t.around)?t.around:r.centerPoint,t.panDelta)}cameraForBoxAndBearing(t,r,i,n,a){let o=glt(t,r,i,n,a);if(!o)return;let s=r.left/a.width*2-1,l=(a.width-r.right)/a.width*2-1,u=r.top/a.height*-2+1,f=(a.height-r.bottom)/a.height*-2+1,c=Nd(i.getWest(),i.getEast())<0,h=c?i.getEast():i.getWest(),d=c?i.getWest():i.getEast(),p=Math.max(i.getNorth(),i.getSouth()),v=Math.min(i.getNorth(),i.getSouth()),y=h+Nd(h,d)*.5,m=p+Nd(p,v)*.5,w=a.clone();w.setCenter(o.center),w.setBearing(o.bearing),w.setPitch(0),w.setRoll(0),w.setZoom(o.zoom);let _=w.modelViewProjectionMatrix,b=[Vh(i.getNorthWest()),Vh(i.getNorthEast()),Vh(i.getSouthWest()),Vh(i.getSouthEast()),Vh(new Js(d,m)),Vh(new Js(h,m)),Vh(new Js(y,p)),Vh(new Js(y,v))],M=Vh(o.center),x=1/0;for(let A of b)s<0&&(x=og.getLesserNonNegativeNonNull(x,og.solveVectorScale(A,M,_,"x",s))),l>0&&(x=og.getLesserNonNegativeNonNull(x,og.solveVectorScale(A,M,_,"x",l))),u>0&&(x=og.getLesserNonNegativeNonNull(x,og.solveVectorScale(A,M,_,"y",u))),f<0&&(x=og.getLesserNonNegativeNonNull(x,og.solveVectorScale(A,M,_,"y",f)));if(!Number.isFinite(x)||x===0){mlt();return}return o.zoom=Math.min(w.zoom+h0(x),t.maxZoom),o}handleJumpToCenterZoom(t,r){let i=t.center.lat,n=t.applyConstrain(r.center?Js.convert(r.center):t.center,t.zoom).center;t.setCenter(n.wrap());let a=r.zoom===void 0?t.zoom+p0(i,n.lat):+r.zoom;t.zoom!==a&&t.setZoom(a)}handleEaseTo(t,r){let i=t.zoom,n=t.center,a=t.padding,o={roll:t.roll,pitch:t.pitch,bearing:t.bearing},s={roll:r.roll===void 0?t.roll:r.roll,pitch:r.pitch===void 0?t.pitch:r.pitch,bearing:r.bearing===void 0?t.bearing:r.bearing},l=r.zoom!==void 0,u=!t.isPaddingEqual(r.padding),f=!1,c=r.center?Js.convert(r.center):n,h=t.applyConstrain(c,i).center;lO(t,h);let d=t.clone();d.setCenter(h),d.setZoom(l?+r.zoom:i+p0(n.lat,c.lat)),d.setBearing(r.bearing);let p=new Zr(Pl(t.centerPoint.x+r.offsetAsPoint.x,0,t.width),Pl(t.centerPoint.y+r.offsetAsPoint.y,0,t.height));d.setLocationAtPoint(h,p);let v=(r.offset&&r.offsetAsPoint.mag())>0?d.center:h,y=l?+r.zoom:i+p0(n.lat,v.lat),m=i+p0(n.lat,0),w=y+p0(v.lat,0),_=Nd(n.lng,v.lng),b=Nd(n.lat,v.lat),M=ed(w-m);return f=y!==i,{easeFunc:x=>{if(Ane(o,s)||ylt({startEulerAngles:o,endEulerAngles:s,tr:t,k:x,useSlerp:o.roll!=s.roll}),u&&t.interpolatePadding(a,r.padding,x),r.around)lu("Easing around a point is not supported under globe projection."),t.setLocationAtPoint(r.around,r.aroundPoint);else{let A=x*(w>m?Math.min(2,M):Math.max(.5,M))**(1-x),T=rst(n,_,b,A);t.setCenter(T.wrap())}if(f){let A=ec.number(m,w,x)+p0(0,t.center.lat);t.setZoom(A)}},isZooming:f,elevationCenter:v}}handleFlyTo(t,r){let i=r.zoom!==void 0,n=t.center,a=t.zoom,o=t.padding,s=!t.isPaddingEqual(r.padding),l=t.applyConstrain(Js.convert(r.center||r.locationAtOffset),a).center,u=i?+r.zoom:t.zoom+p0(t.center.lat,l.lat),f=t.clone();f.setCenter(l),f.setZoom(u),f.setBearing(r.bearing);let c=new Zr(Pl(t.centerPoint.x+r.offsetAsPoint.x,0,t.width),Pl(t.centerPoint.y+r.offsetAsPoint.y,0,t.height));f.setLocationAtPoint(l,c);let h=f.center;lO(t,h);let d=aSr(t,n,h),p=a+p0(n.lat,0),v=u+p0(h.lat,0),y=ed(v-p),m=typeof r.minZoom=="number"?+r.minZoom:t.minZoom,w=Math.max(m,t.minZoom)+p0(h.lat,0),_=Math.min(w,p,v)+p0(0,h.lat),b=t.applyConstrain(h,_).zoom+p0(h.lat,0),M=ed(b-p),x=Nd(n.lng,h.lng),A=Nd(n.lat,h.lat);return{easeFunc:(T,g,E,S)=>{let C=rst(n,x,A,E);s&&t.interpolatePadding(o,r.padding,T);let k=T===1?h:C;t.setCenter(k.wrap());let D=p+h0(g);t.setZoom(T===1?u:D+p0(0,k.lat))},scaleOfZoom:y,targetCenter:h,scaleOfMinZoom:M,pixelPathLength:d}}static solveVectorScale(t,r,i,n,a){let o=a,s=n==="x"?[i[0],i[4],i[8],i[12]]:[i[1],i[5],i[9],i[13]],l=[i[3],i[7],i[11],i[15]],u=t[0]*s[0]+t[1]*s[1]+t[2]*s[2],f=t[0]*l[0]+t[1]*l[1]+t[2]*l[2],c=r[0]*s[0]+r[1]*s[1]+r[2]*s[2],h=r[0]*l[0]+r[1]*l[1]+r[2]*l[2],d=(c+s[3]-o*h-o*l[3])/(c-u-o*h+o*f);return c+o*f===u+o*h||l[3]*(u-c)+s[3]*(h-f)+u*h===c*f?null:d}static getLesserNonNegativeNonNull(t,r){return r!==null&&r>=0&&r{for(let a in this.tileManagers){let o=this.tileManagers[a].getSource().type;(o==="vector"||o==="geojson")&&this.tileManagers[a].reload()}},this.map=e,this.dispatcher=new qst(Moe(),e._getMapId()).setEventedParent(this),this.dispatcher.registerMessageHandler("GG",(a,o)=>this.getGlyphs(a,o)),this.dispatcher.registerMessageHandler("GI",(a,o)=>this.getImages(a,o)),this.dispatcher.registerMessageHandler("GDA",(a,o)=>this.getDashes(a,o)),this.imageManager=new a6r,this.imageManager.setEventedParent(this),this.imageManager.setMissingImageResolver(e._missingStyleImageResolver),this.patternAtlas=new o6r(this.imageManager);let r=((i=e._container)==null?void 0:i.lang)||typeof document<"u"&&((n=document.documentElement)==null?void 0:n.lang)||void 0;this.glyphManager=new v6r(e._requestManager,t.localIdeographFontFamily,r),this.lineAtlas=new b6r(256,512),this.crossTileSymbolIndex=new ult,this._setInitialValues(),this._resetUpdates(),this.dispatcher.broadcast("SR",aq()),KC().on(soe,this._rtlPluginLoaded),this.on("data",a=>{if(a.dataType!=="source"||a.sourceDataType!=="metadata")return;let o=this.tileManagers[a.sourceId];if(!o)return;let s=o.getSource();if(s!=null&&s.vectorLayerIds)for(let l in this._layers){let u=this._layers[l];u.source===s.id&&this._validateLayer(u)}})}_setInitialValues(){var e;this._layers={},this._order=[],this.tileManagers={},this.zoomHistory=new z7,this._imagesListDirty=!1,this._globalState={},this._serializedLayers={},this.stylesheet=null,this.light=null,this.sky=null,this.projection&&(this.projection.destroy(),delete this.projection),this._loaded=!1,this._changed=!1,this._updatedLayers={},this._updatedSources={},this._changedImages={},this._glyphsDidChange=!1,this._updatedPaintProps={},this._layerOrderChanged=!1,this._symbolPlacementTriggered=!1,this._placedProjectionTransition=void 0,this.crossTileSymbolIndex=new(((e=this.crossTileSymbolIndex)==null?void 0:e.constructor)||Object),this.pauseablePlacement=void 0,this.placement=void 0,this.z=0}setGlobalStateProperty(e,t){var i,n,a;this._checkLoaded();let r=t===null?(a=(n=(i=this.stylesheet.state)==null?void 0:i[e])==null?void 0:n.default)!=null?a:null:t;return this._setGlobalStateValues({[e]:r}),this}getGlobalState(){return this._globalState}setGlobalState(e){this._checkLoaded();let t={};for(let r in e)t[r]=e[r].default;this._setGlobalStateValues(t)}_setGlobalStateValues(e){let t=[];for(let i in e)M1(e[i],this._globalState[i])||t.push(i);if(t.length===0)return;let r=Zs({},this._globalState);for(let i of t)this._globalState[i]=e[i];this._applyGlobalStateChanges(t,r)}_applyGlobalStateChanges(e,t){var a,o;let r=new Set,i={};for(let s of e)i[s]=this._globalState[s];for(let s in this._layers){let l=this._layers[s];l.retainPriorGlobalState(e,t);let u=l.getLayoutAffectingGlobalStateRefs(),f=l.getPaintAffectingGlobalStateRefs(),c=l.getVisibilityAffectingGlobalStateRefs();for(let h of e){if(u.has(h)&&r.add(l.source),f.has(h))for(let{name:d,value:p}of f.get(h))this._updatePaintProperty(l,d,p,{validate:!1});c!=null&&c.has(h)&&(l.recalculateVisibility(),this._updateLayer(l))}}let n={now:Ku(),transition:this.getTransition()};(a=this.light)==null||a.applyGlobalStateChange(e,t,n),(o=this.sky)==null||o.applyGlobalStateChange(e,t,n),this.dispatcher.broadcast("UGS",i);for(let s in this.tileManagers)r.has(s)&&(this._reloadSource(s),this._changed=!0)}loadURL(i){return Ls(this,arguments,function*(e,t={},r){this.fire(new Cv("dataloading")),t.validate=typeof t.validate!="boolean"||t.validate,this._loadStyleRequest=new AbortController;let n=this._loadStyleRequest;try{let a=yield this.map._requestManager.transformRequest(e,"Style");nq(n.signal);let o=yield mC(a,n);this._loadStyleRequest===n&&(this._loadStyleRequest=null),this._load(o.data,t,r)}catch(a){this._loadStyleRequest===n&&(this._loadStyleRequest=null),a&&!n.signal.aborted&&this.fire(new rl(u0(a)))}})}loadJSON(e,t={},r){this.fire(new Cv("dataloading")),this._frameRequest=new AbortController,jd.frameAsync(this._frameRequest,this.map._ownerWindow).then(()=>{this._frameRequest=null,t.validate=t.validate!==!1,this._load(e,t,r)}).catch(()=>{})}loadEmpty(){this.fire(new Cv("dataloading")),this._load(xSr,{validate:!1})}_load(e,t,r){var n,a,o;let i=t.transformStyle?t.transformStyle(r,e):e;if(!(t.validate&&Yne(this,i))){i=Zs({},i),this._loaded=!0,this.stylesheet=i;for(let s in i.sources)this.addSource(s,i.sources[s],{validate:!1});i.sprite?this._loadSprite(i.sprite):this.imageManager.setLoaded(!0),this.glyphManager.setURL(i.glyphs),this.glyphManager.setFontFaces(i["font-faces"]),this._createLayers(),this.light=new y6r((n=this.stylesheet.light)!=null?n:{},this._globalState),this._setProjectionInternal(((a=this.stylesheet.projection)==null?void 0:a.type)||"mercator"),this.sky=new x6r(this.stylesheet.sky,this._globalState),this.sky.setEventedParent(this),this.map.setTerrain((o=this.stylesheet.terrain)!=null?o:null,{validate:!1}),this.fire(new Cv("data")),this.fire(new ioe)}}_createLayers(){var t,r,i;let e=xot(this.stylesheet.layers);this.setGlobalState((t=this.stylesheet.state)!=null?t:null),this.dispatcher.broadcast("SL",e),this._order=e.map(n=>n.id),this._layers={},this._serializedLayers=null;for(let n of e){let a=Rq(n,this._globalState);if(a.setEventedParent(this,{layer:{id:n.id}}),this._layers[n.id]=a,Aq(a)&&this.tileManagers[a.source]){let o=(i=(r=n.paint)==null?void 0:r["raster-fade-duration"])!=null?i:a.paint.get("raster-fade-duration");this.tileManagers[a.source].setRasterFadeDuration(o)}}}_loadSprite(e,t=!1,r=void 0){return Ls(this,null,function*(){this.imageManager.setLoaded(!1);let i=new AbortController;this._spriteRequest=i;let n;try{let a=yield i6r(e,this.map._requestManager,this.map.getPixelRatio(),i);if(!a)return;for(let o in a){let{loaded:s,removed:l}=this.imageManager.setSpriteImages(o,a[o]);this._markImagesChanged(l),t&&this._markImagesChanged(s)}}catch(a){n=a,i.signal.aborted||this.fire(new rl(n))}finally{this._spriteRequest=null,this.imageManager.setLoaded(!0),t&&(this._changed=!0),this.dispatcher.broadcast("SI",this.imageManager.listImages()),this.fire(new Cv("data")),r==null||r(n)}})}_unloadSprite(){this._markImagesChanged(this.imageManager.removeAllSpriteImages()),this._imagesListDirty=!0,this._changed=!0,this.fire(new Cv("data"))}_validateLayer(e){let t=this.tileManagers[e.source];if(!t)return;let r=e.sourceLayer;if(!r)return;let i=t.getSource();(i.type==="geojson"||i.vectorLayerIds&&!i.vectorLayerIds.includes(r))&&this.fire(new rl(Error(`Source layer "${r}" does not exist on source "${i.id}" as specified by style layer "${e.id}".`)))}loaded(){if(!this._loaded||Object.keys(this._updatedSources).length)return!1;for(let e in this.tileManagers)if(!this.tileManagers[e].loaded())return!1;return this.imageManager.isLoaded()}_serializeByIds(e,t=!1){let r=this._serializedAllLayers();if(!e||e.length===0)return Object.values(t?md(r):r);let i=[];for(let n of e)if(r[n]){let a=t?md(r[n]):r[n];i.push(a)}return i}_serializedAllLayers(){let e=this._serializedLayers;if(e)return e;e=this._serializedLayers={};let t=Object.keys(this._layers);for(let r of t){let i=this._layers[r];i.type!=="custom"&&(e[r]=i.serialize())}return e}hasTransitions(){var e,t,r;if((e=this.light)!=null&&e.hasTransition()||(t=this.sky)!=null&&t.hasTransition()||(r=this.projection)!=null&&r.hasTransition())return!0;for(let i in this.tileManagers)if(this.tileManagers[i].hasTransition())return!0;for(let i in this._layers)if(this._layers[i].hasTransition())return!0;return!1}_checkLoaded(){if(!this._loaded)throw Error("Style is not done loading.")}update(e){if(!this._loaded)return;let t=this._changed;if(t){this._imagesListDirty&&(this._imagesListDirty=(this.dispatcher.broadcast("SI",this.imageManager.listImages()),!1));let n=Object.keys(this._updatedLayers),a=Object.keys(this._removedLayers);(n.length||a.length)&&this._updateWorkerLayers(n,a);for(let o in this._updatedSources){let s=this._updatedSources[o];if(s==="reload")this._reloadSource(o);else if(s==="clear")this._clearSource(o);else throw Error(`Invalid action ${s}`)}this._updateTilesForChangedImages(),this._updateTilesForChangedGlyphs();for(let o in this._updatedPaintProps)this._layers[o].updateTransitions(e);this._resetUpdates()}let r={};for(let n in this.tileManagers){let a=this.tileManagers[n];r[n]=a.used,a.used=!1}let i=this.imageManager.listImages();for(let n of this._order){let a=this._layers[n];a.recalculate(e,i),!a.isHidden(e.zoom)&&a.source&&(this.tileManagers[a.source].used=!0)}for(let n in r){let a=this.tileManagers[n];!!r[n]!=!!a.used&&a.fire(new Yf("data",{sourceDataType:"visibility",sourceId:n}))}this.light.recalculate(e),this.sky.recalculate(e),this.projection.recalculate(e),this.z=e.zoom,t&&this.fire(new Cv("data"))}_updateTilesForChangedImages(){let e=Object.keys(this._changedImages);if(e.length){for(let t in this.tileManagers)this.tileManagers[t].reloadTilesForDependencies(["icons","patterns"],e);this._changedImages={}}}_updateTilesForChangedGlyphs(){if(this._glyphsDidChange){for(let e in this.tileManagers)this.tileManagers[e].reloadTilesForDependencies(["glyphs"],[""]);this._glyphsDidChange=!1}}_updateWorkerLayers(e,t){this.dispatcher.broadcast("UL",{layers:this._serializeByIds(e,!1),removedIds:t})}_resetUpdates(){this._changed=!1,this._updatedLayers={},this._removedLayers={},this._updatedSources={},this._updatedPaintProps={},this._changedImages={},this._glyphsDidChange=!1}setState(e,t={}){var a;this._checkLoaded();let r=this.serialize();if(e=t.transformStyle?t.transformStyle(r,e):e,((a=t.validate)!=null?a:!0)&&Yne(this,e))return!1;e=md(e),e.layers=xot(e.layers);let i=t6r(r,e),n=this._getOperationsToPerform(i);if(n.unimplemented.length>0)throw Error(`Unimplemented: ${n.unimplemented.join(", ")}.`);if(n.operations.length===0)return!1;for(let o of n.operations)o();return this.stylesheet=e,this._serializedLayers=null,this.fire(new ioe({style:this})),!0}_getOperationsToPerform(e){let t=[],r=[];for(let i of e)switch(i.command){case"setCenter":case"setZoom":case"setBearing":case"setPitch":case"setRoll":continue;case"addLayer":{let[n,a]=i.args;t.push(()=>this.addLayer(n,a));break}case"removeLayer":{let[n]=i.args;t.push(()=>this.removeLayer(n));break}case"setPaintProperty":{let[n,a,o]=i.args;t.push(()=>this.setPaintProperty(n,a,o));break}case"setLayoutProperty":{let[n,a,o]=i.args;t.push(()=>this.setLayoutProperty(n,a,o));break}case"setFilter":{let[n,a]=i.args;t.push(()=>this.setFilter(n,a));break}case"addSource":{let[n,a]=i.args;t.push(()=>this.addSource(n,a));break}case"removeSource":{let[n]=i.args;t.push(()=>this.removeSource(n));break}case"setLayerZoomRange":{let[n,a,o]=i.args;t.push(()=>this.setLayerZoomRange(n,a,o));break}case"setLight":{let[n]=i.args;t.push(()=>this.setLight(n));break}case"setGeoJSONSourceData":{let[n,a]=i.args;t.push(()=>this.setGeoJSONSourceData(n,a));break}case"setGlyphs":{let[n]=i.args;t.push(()=>this.setGlyphs(n));break}case"setFontFaces":{let[n]=i.args;t.push(()=>this.setFontFaces(n));break}case"setSprite":{let[n]=i.args;t.push(()=>this.setSprite(n));break}case"setTerrain":{let[n]=i.args;t.push(()=>this.map.setTerrain(n));break}case"setSky":{let[n]=i.args;t.push(()=>this.setSky(n));break}case"setProjection":{let[n]=i.args;t.push(()=>this.setProjection(n));break}case"setGlobalState":{let[n]=i.args;t.push(()=>this.setGlobalState(n));break}case"setTransition":t.push(()=>{});break;default:r.push(i.command)}return{operations:t,unimplemented:r}}addImage(e,t){if(this.getImage(e)){this.fire(new rl(Error(`An image named "${e}" already exists.`)));return}this.imageManager.addImage(e,t),this._afterImageUpdated(e)}updateImage(e,t){this.imageManager.updateImage(e,t)}getImage(e){return this.imageManager.getImage(e)}setMissingImageResolver(e){this.imageManager.setMissingImageResolver(e)}removeImage(e){if(!this.getImage(e)){this.fire(new rl(Error(`An image named "${e}" does not exist.`)));return}this.imageManager.removeImage(e),this._afterImageUpdated(e)}_markImagesChanged(e){for(let t of e)this._changedImages[t]=!0}_afterImageUpdated(e){this._changedImages[e]=!0,this._imagesListDirty=!0,this._changed=!0,this.fire(new Cv("data"))}listImages(){return this._checkLoaded(),this.imageManager.listImages()}addSource(e,t,r={}){var n;if(this._checkLoaded(),this.tileManagers[e]!==void 0)throw Error(`Source "${e}" already exists.`);if(!t.type)throw Error(`The type property must be defined, but only the following properties were given: ${Object.keys(t).join(", ")}.`);if($ne.has(t.type)&&this._validate(gd.source,`sources.${e}`,t,null,r))return;(n=this.map)!=null&&n._collectResourceTiming&&(t.collectResourceTiming=!0);let i=this.tileManagers[e]=new uoe(e,t,this.dispatcher);i.style=this,i.setEventedParent(this,()=>({isSourceLoaded:i.loaded(),source:i.serialize(),sourceId:e})),i.onAdd(this.map),this._changed=!0}removeSource(e){if(this._checkLoaded(),this.tileManagers[e]===void 0)throw Error(`There is no source with this ID=${e}`);for(let r in this._layers)if(this._layers[r].source===e)return this.fire(new rl(Error(`Source "${e}" cannot be removed while layer "${r}" is using it.`)));let t=this.tileManagers[e];delete this.tileManagers[e],delete this._updatedSources[e],t.fire(new Yf("data",{sourceDataType:"metadata",sourceId:e})),t.setEventedParent(null),t.onRemove(this.map),this._changed=!0}setGeoJSONSourceData(e,t){if(this._checkLoaded(),this.tileManagers[e]===void 0)throw Error(`There is no source with this ID=${e}`);let r=this.tileManagers[e].getSource();if(r.type!=="geojson")throw Error(`geojsonSource.type is ${r.type}, which is !== 'geojson`);r.setData(t),this._changed=!0}getSource(e){var t;return(t=this.tileManagers[e])==null?void 0:t.getSource()}addLayer(e,t,r={}){this._checkLoaded();let i=e.id;if(this.getLayer(i)){this.fire(new rl(Error(`Layer "${i}" already exists on this map.`)));return}let n;if(e.type==="custom"){if(bq(this,Bat(e)))return;n=Rq(e,this._globalState)}else{if("source"in e&&typeof e.source=="object"&&(this.addSource(i,e.source),e=md(e),e=Hs(e,{source:i})),this._validate(gd.layer,`layers.${i}`,e,{arrayIndex:-1},r))return;n=Rq(e,this._globalState),this._validateLayer(n),n.setEventedParent(this,{layer:{id:i}})}let a=t?this._order.indexOf(t):this._order.length;if(t&&a===-1){this.fire(new rl(Error(`Cannot add layer "${i}" before non-existing layer "${t}".`)));return}if(this._order.splice(a,0,i),this._layerOrderChanged=!0,this._layers[i]=n,this._removedLayers[i]&&n.source&&n.type!=="custom"){let o=this._removedLayers[i];delete this._removedLayers[i],o.type===n.type?(this._updatedSources[n.source]="reload",this.tileManagers[n.source].pause()):this._updatedSources[n.source]="clear"}this._updateLayer(n),n.onAdd&&n.onAdd(this.map)}moveLayer(e,t){if(this._checkLoaded(),this._changed=!0,!this._layers[e]){this.fire(new rl(Error(`The layer '${e}' does not exist in the map's style and cannot be moved.`)));return}if(e===t)return;if(t&&!this._order.includes(t)){this.fire(new rl(Error(`Cannot move layer "${e}" before non-existing layer "${t}".`)));return}let r=this._order.indexOf(e);this._order.splice(r,1);let i=t?this._order.indexOf(t):this._order.length;this._order.splice(i,0,e),this._layerOrderChanged=!0}removeLayer(e){var i;this._checkLoaded();let t=this._layers[e];if(!t){this.fire(new rl(Error(`Cannot remove non-existing layer "${e}".`)));return}t.setEventedParent(null);let r=this._order.indexOf(e);this._order.splice(r,1),this._layerOrderChanged=!0,this._changed=!0,this._removedLayers[e]=t,delete this._layers[e],this._serializedLayers&&delete this._serializedLayers[e],delete this._updatedLayers[e],delete this._updatedPaintProps[e],t.type==="symbol"&&t.source&&((i=this.tileManagers[t.source])==null||i.resetMaxContentElevation()),t.onRemove&&t.onRemove(this.map)}getLayer(e){return this._layers[e]}getLayersOrder(){return[...this._order]}hasLayer(e){return e in this._layers}setLayerZoomRange(e,t,r){this._checkLoaded();let i=this.getLayer(e);if(!i){this.fire(new rl(Error(`Cannot set the zoom range of non-existing layer "${e}".`)));return}(i.minzoom!==t||i.maxzoom!==r)&&(t!=null&&(i.minzoom=t),r!=null&&(i.maxzoom=r),this._updateLayer(i))}setFilter(e,t,r={}){this._checkLoaded();let i=this.getLayer(e);if(!i){this.fire(new rl(Error(`Cannot filter non-existing layer "${e}".`)));return}if(!M1(i.filter,t)){if(t==null){i.setFilter(void 0),this._updateLayer(i);return}this._validate(gd.filter,`layers.${i.id}.filter`,t,null,r)||(i.setFilter(md(t)),this._updateLayer(i))}}getFilter(e){return md(this.getLayer(e).filter)}setLayoutProperty(e,t,r,i={}){this._checkLoaded();let n=this.getLayer(e);if(!n){this.fire(new rl(Error(`Cannot style non-existing layer "${e}".`)));return}M1(n.getLayoutProperty(t),r)||(n.setLayoutProperty(t,r,i),this._updateLayer(n))}getLayoutProperty(e,t){let r=this.getLayer(e);if(!r){this.fire(new rl(Error(`Cannot get style of non-existing layer "${e}".`)));return}return r.getLayoutProperty(t)}setPaintProperty(e,t,r,i={}){this._checkLoaded();let n=this.getLayer(e);if(!n){this.fire(new rl(Error(`Cannot style non-existing layer "${e}".`)));return}M1(n.getPaintProperty(t),r)||this._updatePaintProperty(n,t,r,i)}_updatePaintProperty(e,t,r,i={}){e.setPaintProperty(t,r,i)&&this._updateLayer(e),Aq(e)&&t==="raster-fade-duration"&&this.tileManagers[e.source].setRasterFadeDuration(r),this._changed=!0,this._updatedPaintProps[e.id]=!0,e.type==="symbol"&&this.triggerSymbolPlacement(),this._serializedLayers=null}getPaintProperty(e,t){return this.getLayer(e).getPaintProperty(t)}setFeatureState(e,t){this._checkLoaded();let r=e.source,i=e.sourceLayer,n=this.tileManagers[r];if(n===void 0){this.fire(new rl(Error(`The source '${r}' does not exist in the map's style.`)));return}let a=n.getSource().type;if(a==="geojson"&&i){this.fire(new rl(Error("GeoJSON sources cannot have a sourceLayer parameter.")));return}if(a==="vector"&&!i){this.fire(new rl(Error("The sourceLayer parameter must be provided for vector source types.")));return}if(e.id===void 0){this.fire(new rl(Error("The feature id parameter must be provided.")));return}let o=["__proto__","constructor","prototype"];if(t&&Object.keys(t).some(s=>o.includes(s))){this.fire(new rl(Error(`The feature state should not include one of the following keys: ${o}`)));return}n.setFeatureState(i,e.id,t)}removeFeatureState(e,t){this._checkLoaded();let r=e.source,i=this.tileManagers[r];if(i===void 0){this.fire(new rl(Error(`The source '${r}' does not exist in the map's style.`)));return}let n=i.getSource().type,a=n==="vector"?e.sourceLayer:void 0;if(n==="vector"&&!a){this.fire(new rl(Error("The sourceLayer parameter must be provided for vector source types.")));return}if(t&&typeof e.id!="string"&&typeof e.id!="number"){this.fire(new rl(Error("A feature id is required to remove its specific state property.")));return}i.removeFeatureState(a,e.id,t)}getFeatureState(e){this._checkLoaded();let t=e.source,r=e.sourceLayer,i=this.tileManagers[t];if(i===void 0){this.fire(new rl(Error(`The source '${t}' does not exist in the map's style.`)));return}if(i.getSource().type==="vector"&&!r){this.fire(new rl(Error("The sourceLayer parameter must be provided for vector source types.")));return}return e.id===void 0&&this.fire(new rl(Error("The feature id parameter must be provided."))),i.getFeatureState(r,e.id)}getTransition(){var e;return Hs({duration:300,delay:0},(e=this.stylesheet)==null?void 0:e.transition)}serialize(){if(!this._loaded)return;let e=iq(this.tileManagers,n=>n.serialize()),t=this._serializeByIds(this._order,!0),r=this.map.getTerrain()||void 0,i=this.stylesheet;return wne({version:i.version,name:i.name,metadata:i.metadata,light:i.light,sky:i.sky,center:i.center,zoom:i.zoom,bearing:i.bearing,pitch:i.pitch,sprite:i.sprite,glyphs:i.glyphs,"font-faces":i["font-faces"],transition:i.transition,projection:i.projection,state:i.state,sources:e,layers:t,terrain:r},n=>n!==void 0)}_updateLayer(e){this._updatedLayers[e.id]=!0,e.source&&!this._updatedSources[e.source]&&this.tileManagers[e.source].getSource().type!=="raster"&&(this._updatedSources[e.source]="reload",this.tileManagers[e.source].pause()),this._serializedLayers=null,this._changed=!0}_flattenAndSortRenderedFeatures(e){let t=a=>this._layers[a].type==="fill-extrusion",r={},i=[];for(let a=this._order.length-1;a>=0;a--){let o=this._order[a];if(t(o)){r[o]=a;for(let s of e){let l=s[o];if(l)for(let u of l)i.push(u)}}}i.sort((a,o)=>o.intersectionZ-a.intersectionZ);let n=[];for(let a=this._order.length-1;a>=0;a--){let o=this._order[a];if(t(o))for(let s=i.length-1;s>=0;s--){let l=i[s].feature;if(r[l.layer.id]this.map.terrain.getElevation(u,f,c):void 0));return this.placement&&n.push(L6r(this._layers,a,this.tileManagers,e,s,this.placement.collisionIndex,this.placement.retainedQueryData)),this._flattenAndSortRenderedFeatures(n)}querySourceFeatures(e,t){t!=null&&t.filter&&this._validate(gd.filter,"querySourceFeatures.filter",t.filter,null,t);let r=this.tileManagers[e];return r?P6r(r,t?Ql(Zs({},t),{globalState:this._globalState}):{globalState:this._globalState}):[]}getLight(){return this.light.getLight()}setLight(e,t={}){this._checkLoaded();let r=this.light.getLight(),i=!1;for(let a in e)if(!M1(e[a],r[a])){i=!0;break}if(!i)return;let n={now:Ku(),transition:Hs({duration:300,delay:0},this.stylesheet.transition)};this.light.setLight(e,t),this.light.updateTransitions(n)}getProjection(){var e;return(e=this.stylesheet)==null?void 0:e.projection}setProjection(e){this._checkLoaded();let t=e!=null?e:{type:"mercator"};if(this.stylesheet.projection=e,this.projection){if(this.projection.name===t.type)return;this.projection.destroy(),delete this.projection}this._setProjectionInternal(t.type)}getSky(){var e;return(e=this.stylesheet)==null?void 0:e.sky}setSky(e,t={}){this._checkLoaded();let r=this.getSky(),i=!1;if(!e&&!r)return;if(e&&!r)i=!0;else if(!e&&r)i=!0;else for(let a in e)if(!M1(e[a],r[a])){i=!0;break}if(!i)return;let n={now:Ku(),transition:Hs({duration:300,delay:0},this.stylesheet.transition)};this.sky.setSky(e,t)&&(this.stylesheet.sky=e,this.sky.updateTransitions(n))}_setProjectionInternal(e){var r;let t=gSr(e,(r=this.map._camera)==null?void 0:r.transform.constrainOverride,this._globalState);this.projection=t.projection,this.map.migrateProjection(t.transform,t.cameraHelper);for(let i in this.tileManagers)this.tileManagers[i].reload()}_validate(e,t,r,i,n={}){return n.validate!==!1&&K5(this,e,Zs({key:t,style:this.serialize(),value:r},i),n)}_remove(e=!0){this._frameRequest&&(this._frameRequest=(this._frameRequest.abort(),null)),this._loadStyleRequest&&(this._loadStyleRequest=(this._loadStyleRequest.abort(),null)),this._spriteRequest&&(this._spriteRequest=(this._spriteRequest.abort(),null)),KC().off(soe,this._rtlPluginLoaded);for(let t in this._layers)this._layers[t].setEventedParent(null);for(let t in this.tileManagers){let r=this.tileManagers[t];r.setEventedParent(null),r.onRemove(this.map)}this.imageManager.setEventedParent(null),this.setEventedParent(null),e&&this.dispatcher.broadcast("RM",void 0),this.dispatcher.remove(e)}_clearSource(e){this.tileManagers[e].clearTiles()}_reloadSource(e){this.tileManagers[e].resume(),this.tileManagers[e].reload()}_updateSources(e){for(let t in this.tileManagers)this.tileManagers[t].update(e,this.map.terrain)}_generateCollisionBoxes(){for(let e in this.tileManagers)this._reloadSource(e)}triggerSymbolPlacement(){this._symbolPlacementTriggered=!0}_placementInputsChanged(e,t,r){var n;let i=this.pauseablePlacement;return!i||this._symbolPlacementTriggered||this._placedProjectionTransition!==((n=this.projection)==null?void 0:n.transitionState)||i._showCollisionBoxes!==t||i.placement.collisionGroups.crossSourceCollisions!==r||i.placement.transform.renderWorldCopies!==e.renderWorldCopies||!lrt(i.placement.transform.modelViewProjectionMatrix,e.modelViewProjectionMatrix)}_updatePlacement(e,t,r,i,n=!1){var f,c;let a=!1,o=!1,s={};for(let h of this._order){let d=this._layers[h];if(d.type!=="symbol")continue;if(!s[d.source]){let v=this.tileManagers[d.source];s[d.source]=v.getRenderableIds(!0).map(y=>v.getTileByID(y)).sort((y,m)=>m.tileID.overscaledZ-y.tileID.overscaledZ||(y.tileID.isLessThan(m.tileID)?-1:1))}let p=this.crossTileSymbolIndex.addLayer(d,s[d.source],e.center.lng);a||(a=p)}this.crossTileSymbolIndex.pruneUnusedLayers(this._order),n||(n=this._layerOrderChanged||r===0);let l=a||this._placementInputsChanged(e,t,i),u=((f=this.pauseablePlacement)==null?void 0:f.isDone())&&!this.placement.stillRecent(Ku(),e.zoom);if((n||!this.pauseablePlacement||u&&(l||this.placement.stale))&&(this._symbolPlacementTriggered=!1,this._placedProjectionTransition=(c=this.projection)==null?void 0:c.transitionState,this.pauseablePlacement=new VMr(e,this.map.terrain,this._order,n,t,r,i,this.placement),this._layerOrderChanged=!1),this.pauseablePlacement.isDone()?l&&this.placement.setStale():(this.pauseablePlacement.continuePlacement(this._order,this._layers,s),this.pauseablePlacement.isDone()&&(this.placement=this.pauseablePlacement.commit(Ku()),o=!0),a&&this.pauseablePlacement.placement.setStale()),o||a)for(let h of this._order){let d=this._layers[h];d.type==="symbol"&&this.placement.updateLayerOpacities(d,s[d.source])}return!this.pauseablePlacement.isDone()||this.placement.hasTransitions(Ku())}_releaseSymbolFadeTiles(){for(let e in this.tileManagers)this.tileManagers[e].releaseSymbolFadeTiles()}getImages(e,t){return Ls(this,null,function*(){let r=yield this.imageManager.getImages(t.icons);this._updateTilesForChangedImages();let i=this.tileManagers[t.source];return i&&i.setDependencies(t.tileID.key,t.type,t.icons),r})}getGlyphs(e,t){return Ls(this,null,function*(){let r=yield this.glyphManager.getGlyphs(t.stacks),i=this.tileManagers[t.source];return i&&i.setDependencies(t.tileID.key,t.type,[""]),r})}getGlyphsUrl(){return this.stylesheet.glyphs||null}setGlyphs(e,t={}){this._checkLoaded(),!(e&&this._validate(gd.glyphs,"glyphs",e,null,t))&&(this._changed=!0,this._glyphsDidChange=!0,this.stylesheet.glyphs=e,this.glyphManager.entries={},this.glyphManager.setURL(e))}getFontFaces(){return this.stylesheet["font-faces"]||null}setFontFaces(e){this._checkLoaded(),this._changed=!0,this._glyphsDidChange=!0,this.stylesheet["font-faces"]=e,this.glyphManager.setFontFaces(e)}getDashes(e,t){return Ls(this,null,function*(){let r={};for(let[i,n]of Object.entries(t.dashes))r[i]=this.lineAtlas.getDash(n.dasharray,n.round);return r})}addSprite(e,t,r={},i){this._checkLoaded();let n=[{id:e,url:t}],a=[...tO(this.stylesheet.sprite),...n];this._validate(gd.sprite,"sprite",a,null,r)||(this.stylesheet.sprite=a,this._loadSprite(n,!0,i))}removeSprite(e){this._checkLoaded();let t=tO(this.stylesheet.sprite);if(!t.find(i=>i.id===e)){this.fire(new rl(Error(`Sprite "${e}" doesn't exists on this map.`)));return}let r=this.imageManager.removeSpriteImages(e);this._markImagesChanged(r),t.splice(t.findIndex(i=>i.id===e),1),this.stylesheet.sprite=t.length>0?t:void 0,this._imagesListDirty=!0,this._changed=!0,this.fire(new Cv("data"))}getSprite(){return tO(this.stylesheet.sprite)}setSprite(e,t={},r){this._checkLoaded(),!(e&&this._validate(gd.sprite,"sprite",e,null,t))&&(this.stylesheet.sprite=e,e?this._loadSprite(e,!0,r):(this._unloadSprite(),r&&r(null)))}destroy(){this._frameRequest&&(this._frameRequest=(this._frameRequest.abort(),null)),this._loadStyleRequest&&(this._loadStyleRequest=(this._loadStyleRequest.abort(),null)),this._spriteRequest&&(this._spriteRequest=(this._spriteRequest.abort(),null));for(let e in this.tileManagers){let t=this.tileManagers[e];t.setEventedParent(null),t.onRemove(this.map)}this.tileManagers={},this.imageManager&&(this.imageManager.setEventedParent(null),this.imageManager.destroy(),this.patternAtlas.destroy()),this.glyphManager&&this.glyphManager.destroy();for(let e in this._layers){let t=this._layers[e];t.setEventedParent(null),t.onRemove&&t.onRemove(this.map)}this._setInitialValues(),this.setEventedParent(null),this.dispatcher.unregisterMessageHandler("GG"),this.dispatcher.unregisterMessageHandler("GI"),this.dispatcher.unregisterMessageHandler("GDA"),this.dispatcher.remove(!0),this._listeners={},this._oneTimeListeners={}}},bSr=cc([{name:"a_pos",type:"Int16",components:2},{name:"a_texture_pos",type:"Int16",components:2}]),_Sr=class{constructor(){this.boundProgram=null,this.boundLayoutVertexBuffer=null,this.boundPaintVertexBuffers=[],this.boundIndexBuffer=null,this.boundVertexOffset=null,this.boundDynamicVertexBuffer=null,this.vao=null}bind(e,t,r,i,n,a,o,s,l){this.context=e;let u=this.boundPaintVertexBuffers.length!==i.length;for(let f=0;!u&&f({u_depth:new il(e,t.u_depth),u_terrain:new il(e,t.u_terrain)}),ASr=(e,t)=>({u_texture:new il(e,t.u_texture),u_ele_delta:new gs(e,t.u_ele_delta),u_fog_matrix:new Ev(e,t.u_fog_matrix),u_fog_color:new ng(e,t.u_fog_color),u_fog_ground_blend:new gs(e,t.u_fog_ground_blend),u_fog_ground_blend_opacity:new gs(e,t.u_fog_ground_blend_opacity),u_horizon_color:new ng(e,t.u_horizon_color),u_horizon_fog_blend:new gs(e,t.u_horizon_fog_blend),u_is_globe_mode:new gs(e,t.u_is_globe_mode)}),TSr=(e,t)=>({u_ele_delta:new gs(e,t.u_ele_delta)}),MSr=(e,t,r,i,n)=>({u_texture:0,u_ele_delta:e,u_fog_matrix:t,u_fog_color:r?r.properties.get("fog-color"):Ol.white,u_fog_ground_blend:r?r.properties.get("fog-ground-blend"):1,u_fog_ground_blend_opacity:n?0:r?r.calculateFogBlendOpacity(i):0,u_horizon_color:r?r.properties.get("horizon-color"):Ol.white,u_horizon_fog_blend:r?r.properties.get("horizon-fog-blend"):1,u_is_globe_mode:+!!n}),SSr=e=>({u_ele_delta:e}),vO={ProjectionUBO:0,TerrainUBO:1,FrameUBO:2};kSr={float:[1,1],int:[1,1],vec2:[2,2],vec4:[4,4],mat4:[16,4]};qoe=class{constructor(e,t,r){this.context=e,this.binding=t,this.contentWords=r.contentWords;let i=e.gl;this.buffer=i.createBuffer(),i.bindBuffer(i.UNIFORM_BUFFER,this.buffer),i.bufferData(i.UNIFORM_BUFFER,r.sizeWords*4,i.DYNAMIC_DRAW),this.uploaded=new Float32Array(r.sizeWords),this.pending=new Float32Array(r.sizeWords),this.uploadedWords=new Uint32Array(this.uploaded.buffer),this.pendingWords=new Uint32Array(this.pending.buffer),this.hasData=!1}upload(){let e=this.context.gl,t=!this.hasData;if(!t){let r=this.pendingWords,i=this.uploadedWords;for(let n=0;n=0&&(this.attributes[g]={location:E,isInteger:T.has(g)})}u.deleteShader(x),u.deleteShader(M);for(let g of m)if(g&&!A[g]){let E=u.getUniformLocation(this.program,g);E&&(A[g]=E)}this.fixedUniforms=i(e,A),this.terrainUniforms=wSr(e,A),this.binderUniforms=r?r.getUniforms(e,A):[]}draw(e,t,r,i,n,a,o,s,l,u,f,c,h,d,p,v,y,m,w){var M;let _=e.gl;if(this.failedToCreate)return;if(e.program.set(this.program),e.terrainUniformBuffer.bind(),e.frameUniformBuffer.bind(),e.setDepthMode(r),e.setStencilMode(i),e.setColorMode(n),e.setCullFace(a),s){e.activeTexture.set(_.TEXTURE2),_.bindTexture(_.TEXTURE_2D,s.depthTexture),e.activeTexture.set(_.TEXTURE3),_.bindTexture(_.TEXTURE_2D,s.texture);for(let x in this.terrainUniforms)this.terrainUniforms[x].set(s[x]);PSr(e.terrainUniformBuffer,s)}if(CSr(e,l),o)for(let x in this.fixedUniforms)this.fixedUniforms[x].set(o[x]);v&&v.setUniforms(e,this.binderUniforms,d,{zoom:p});let b=0;switch(t){case _.LINES:b=2;break;case _.TRIANGLES:b=3;break;case _.LINE_STRIP:b=1}for(let x of h.get())x.vaos||(x.vaos={}),(M=x.vaos)[u]||(M[u]=new _Sr),x.vaos[u].bind(e,this,f,v?v.getPaintVertexBuffers():[],c,x.vertexOffset,y,m,w),_.drawElements(t,x.primitiveLength*b,_.UNSIGNED_SHORT,x.primitiveOffset*b*2)}};BSr=(e,t)=>({u_lightpos:new td(e,t.u_lightpos),u_lightpos_globe:new td(e,t.u_lightpos_globe),u_lightintensity:new gs(e,t.u_lightintensity),u_lightcolor:new td(e,t.u_lightcolor),u_vertical_gradient:new gs(e,t.u_vertical_gradient),u_opacity:new gs(e,t.u_opacity),u_fill_translate:new Kl(e,t.u_fill_translate)}),qSr=(e,t)=>({u_lightpos:new td(e,t.u_lightpos),u_lightpos_globe:new td(e,t.u_lightpos_globe),u_lightintensity:new gs(e,t.u_lightintensity),u_lightcolor:new td(e,t.u_lightcolor),u_vertical_gradient:new gs(e,t.u_vertical_gradient),u_height_factor:new gs(e,t.u_height_factor),u_opacity:new gs(e,t.u_opacity),u_fill_translate:new Kl(e,t.u_fill_translate),u_image:new il(e,t.u_image),u_texsize:new Kl(e,t.u_texsize),u_pixel_coord_upper:new Kl(e,t.u_pixel_coord_upper),u_pixel_coord_lower:new Kl(e,t.u_pixel_coord_lower),u_scale:new td(e,t.u_scale),u_fade:new gs(e,t.u_fade)}),Llt=(e,t,r,i)=>{let n=e.style.light,a=n.getCartesianPosition(),o=pne();n.properties.get("anchor")==="viewport"&&art(o,e.transform.bearingInRadians),prt(a,a,o);let s=e.transform.transformLightDirection(a),l=n.properties.get("color");return{u_lightpos:a,u_lightpos_globe:s,u_lightintensity:n.properties.get("intensity"),u_lightcolor:[l.r,l.g,l.b],u_vertical_gradient:+t,u_opacity:r,u_fill_translate:i}},OSr=(e,t,r,i,n,a,o)=>Hs(Llt(e,t,r,i),Flt(a,e,o),{u_height_factor:-(2**n.overscaledZ)/o.tileSize/8}),NSr=(e,t)=>({u_fill_translate:new Kl(e,t.u_fill_translate)}),VSr=(e,t)=>({u_image:new il(e,t.u_image),u_texsize:new Kl(e,t.u_texsize),u_pixel_coord_upper:new Kl(e,t.u_pixel_coord_upper),u_pixel_coord_lower:new Kl(e,t.u_pixel_coord_lower),u_scale:new td(e,t.u_scale),u_fade:new gs(e,t.u_fade),u_sdf_pattern:new il(e,t.u_sdf_pattern),u_fill_translate:new Kl(e,t.u_fill_translate)}),USr=(e,t)=>({u_fill_translate:new Kl(e,t.u_fill_translate)}),GSr=(e,t)=>({u_image:new il(e,t.u_image),u_texsize:new Kl(e,t.u_texsize),u_pixel_coord_upper:new Kl(e,t.u_pixel_coord_upper),u_pixel_coord_lower:new Kl(e,t.u_pixel_coord_lower),u_scale:new td(e,t.u_scale),u_fade:new gs(e,t.u_fade),u_sdf_pattern:new il(e,t.u_sdf_pattern),u_fill_translate:new Kl(e,t.u_fill_translate)}),Plt=(e,t,r,i,n)=>Hs(Flt(t,e,r),{u_fill_translate:i,u_sdf_pattern:+!!n}),HSr=e=>({u_fill_translate:e}),jSr=e=>({u_fill_translate:e}),WSr=(e,t,r,i,n)=>Plt(e,t,r,i,n),$Sr=(e,t)=>({u_scale_with_map:new il(e,t.u_scale_with_map),u_pitch_with_map:new il(e,t.u_pitch_with_map),u_extrude_scale:new Kl(e,t.u_extrude_scale),u_globe_extrude_scale:new gs(e,t.u_globe_extrude_scale),u_translate:new Kl(e,t.u_translate)}),YSr=(e,t,r,i,n)=>{let a=e.transform,o,s,l=0;if(r.paint.get("circle-pitch-alignment")==="map"){let u=Od(t,1,a.zoom);o=!0,s=[u,u],l=u/(Aa*2**t.tileID.overscaledZ)*2*Math.PI*n}else o=!1,s=a.pixelsToGLUnits;return{u_scale_with_map:+(r.paint.get("circle-pitch-scale")==="map"),u_pitch_with_map:+o,u_extrude_scale:s,u_globe_extrude_scale:l,u_translate:i}},XSr=(e,t)=>({u_color:new ng(e,t.u_color),u_overlay:new il(e,t.u_overlay),u_overlay_scale:new gs(e,t.u_overlay_scale)}),cst=(e,t=1)=>({u_color:e,u_overlay:0,u_overlay_scale:t}),ZSr=(e,t)=>({u_extrude_scale:new gs(e,t.u_extrude_scale),u_intensity:new gs(e,t.u_intensity),u_globe_extrude_scale:new gs(e,t.u_globe_extrude_scale)}),KSr=(e,t)=>({u_matrix:new Ev(e,t.u_matrix),u_image:new il(e,t.u_image),u_color_ramp:new il(e,t.u_color_ramp),u_opacity:new gs(e,t.u_opacity)}),zlt=(e,t,r,i)=>{let n=Od(e,1,t)/(Aa*2**e.tileID.overscaledZ)*2*Math.PI*i;return{u_extrude_scale:Od(e,1,t),u_intensity:r,u_globe_extrude_scale:n}},Ilt=(e,t,r,i)=>{let n=Ky();return E1(n,0,e.width,e.height,0,0,1),{u_matrix:n,u_image:r,u_color_ramp:i,u_opacity:t.paint.get("heatmap-opacity")}},JSr=(e,t)=>({u_image:new il(e,t.u_image),u_latrange:new Kl(e,t.u_latrange),u_exaggeration:new gs(e,t.u_exaggeration),u_altitudes:new Jne(e,t.u_altitudes),u_azimuths:new Jne(e,t.u_azimuths),u_accent:new ng(e,t.u_accent),u_method:new il(e,t.u_method),u_shadows:new Kne(e,t.u_shadows),u_highlights:new Kne(e,t.u_highlights)}),QSr=(e,t)=>({u_matrix:new Ev(e,t.u_matrix),u_image:new il(e,t.u_image),u_dimension:new Kl(e,t.u_dimension),u_zoom:new gs(e,t.u_zoom),u_unpack:new J5(e,t.u_unpack)}),eEr=(e,t,r)=>{let i=r.paint.get("hillshade-accent-color"),n;switch(r.paint.get("hillshade-method")){case"basic":n=4;break;case"combined":n=1;break;case"igor":n=2;break;case"multidirectional":n=3;break;default:n=0}let a=r.getIlluminationProperties();for(let o=0;o{let r=t.stride,i=Ky();return E1(i,0,Aa,-Aa,0,0,1),th(i,i,[0,-Aa,0]),{u_matrix:i,u_image:1,u_dimension:[r,r],u_zoom:e.overscaledZ,u_unpack:t.getUnpackVector()}};iEr=(e,t)=>({u_image:new il(e,t.u_image),u_unpack:new J5(e,t.u_unpack),u_dimension:new Kl(e,t.u_dimension),u_elevation_stops:new il(e,t.u_elevation_stops),u_color_stops:new il(e,t.u_color_stops),u_color_ramp_size:new il(e,t.u_color_ramp_size),u_opacity:new gs(e,t.u_opacity)}),nEr=(e,t,r=0)=>({u_image:0,u_unpack:t.getUnpackVector(),u_dimension:[t.stride,t.stride],u_elevation_stops:1,u_color_stops:4,u_color_ramp_size:r,u_opacity:e.paint.get("color-relief-opacity")}),aEr=(e,t)=>({u_translation:new Kl(e,t.u_translation),u_ratio:new gs(e,t.u_ratio)}),oEr=(e,t)=>({u_translation:new Kl(e,t.u_translation),u_ratio:new gs(e,t.u_ratio),u_image:new il(e,t.u_image),u_image_height:new gs(e,t.u_image_height)}),sEr=(e,t)=>({u_translation:new Kl(e,t.u_translation),u_texsize:new Kl(e,t.u_texsize),u_ratio:new gs(e,t.u_ratio),u_image:new il(e,t.u_image),u_scale:new td(e,t.u_scale),u_fade:new gs(e,t.u_fade)}),lEr=(e,t)=>({u_translation:new Kl(e,t.u_translation),u_ratio:new gs(e,t.u_ratio),u_image:new il(e,t.u_image),u_mix:new gs(e,t.u_mix),u_tileratio:new gs(e,t.u_tileratio),u_crossfade_from:new gs(e,t.u_crossfade_from),u_crossfade_to:new gs(e,t.u_crossfade_to),u_lineatlas_width:new gs(e,t.u_lineatlas_width),u_lineatlas_height:new gs(e,t.u_lineatlas_height)}),uEr=(e,t)=>({u_translation:new Kl(e,t.u_translation),u_ratio:new gs(e,t.u_ratio),u_image:new il(e,t.u_image),u_image_height:new gs(e,t.u_image_height),u_tileratio:new gs(e,t.u_tileratio),u_crossfade_from:new gs(e,t.u_crossfade_from),u_crossfade_to:new gs(e,t.u_crossfade_to),u_image_dash:new il(e,t.u_image_dash),u_mix:new gs(e,t.u_mix),u_lineatlas_width:new gs(e,t.u_lineatlas_width),u_lineatlas_height:new gs(e,t.u_lineatlas_height)}),mO=(e,t,r,i)=>{let n=e.transform;return{u_translation:Rlt(e,t,r),u_ratio:i/Od(t,1,n.zoom)}},fEr=(e,t,r,i,n)=>Hs(mO(e,t,r,i),{u_image:0,u_image_height:n}),cEr=(e,t,r,i,n)=>{let a=e.transform,o=Ooe(t,a);return{u_translation:Rlt(e,t,r),u_texsize:t.imageAtlasTexture.size,u_ratio:i/Od(t,1,a.zoom),u_image:0,u_scale:[o,n.fromScale,n.toScale],u_fade:n.t}},hEr=(e,t,r,i,n)=>{let a=e.transform,o=Ooe(t,a);return Hs(mO(e,t,r,i),{u_tileratio:o,u_crossfade_from:n.fromScale,u_crossfade_to:n.toScale,u_image:0,u_mix:n.t,u_lineatlas_width:e.lineAtlas.width,u_lineatlas_height:e.lineAtlas.height})},dEr=(e,t,r,i,n,a)=>{let o=e.transform,s=Ooe(t,o);return Hs(mO(e,t,r,i),{u_image:0,u_image_height:a,u_tileratio:s,u_crossfade_from:n.fromScale,u_crossfade_to:n.toScale,u_image_dash:1,u_mix:n.t,u_lineatlas_width:e.lineAtlas.width,u_lineatlas_height:e.lineAtlas.height})};pEr=(e,t)=>({u_image:new il(e,t.u_image),u_opacity:new gs(e,t.u_opacity)}),vEr=(e,t)=>({u_image:t,u_opacity:e}),mEr=(e,t)=>({u_is_size_zoom_constant:new il(e,t.u_is_size_zoom_constant),u_is_size_feature_constant:new il(e,t.u_is_size_feature_constant),u_size_t:new gs(e,t.u_size_t),u_size:new gs(e,t.u_size),u_rotate_symbol:new il(e,t.u_rotate_symbol),u_label_plane_matrix:new Ev(e,t.u_label_plane_matrix),u_coord_matrix:new Ev(e,t.u_coord_matrix),u_is_text:new il(e,t.u_is_text),u_pitch_with_map:new il(e,t.u_pitch_with_map),u_is_along_line:new il(e,t.u_is_along_line),u_is_variable_anchor:new il(e,t.u_is_variable_anchor),u_texsize:new Kl(e,t.u_texsize),u_texture:new il(e,t.u_texture),u_translation:new Kl(e,t.u_translation),u_pitched_scale:new gs(e,t.u_pitched_scale),u_is_offset:new il(e,t.u_is_offset),u_height_anchor_ground:new il(e,t.u_height_anchor_ground)}),yEr=(e,t)=>({u_is_size_zoom_constant:new il(e,t.u_is_size_zoom_constant),u_is_size_feature_constant:new il(e,t.u_is_size_feature_constant),u_size_t:new gs(e,t.u_size_t),u_size:new gs(e,t.u_size),u_rotate_symbol:new il(e,t.u_rotate_symbol),u_label_plane_matrix:new Ev(e,t.u_label_plane_matrix),u_coord_matrix:new Ev(e,t.u_coord_matrix),u_is_text:new il(e,t.u_is_text),u_pitch_with_map:new il(e,t.u_pitch_with_map),u_is_along_line:new il(e,t.u_is_along_line),u_is_variable_anchor:new il(e,t.u_is_variable_anchor),u_texsize:new Kl(e,t.u_texsize),u_texture:new il(e,t.u_texture),u_gamma_scale:new gs(e,t.u_gamma_scale),u_is_halo:new il(e,t.u_is_halo),u_is_plain:new il(e,t.u_is_plain),u_translation:new Kl(e,t.u_translation),u_pitched_scale:new gs(e,t.u_pitched_scale),u_is_offset:new il(e,t.u_is_offset),u_height_anchor_ground:new il(e,t.u_height_anchor_ground)}),gEr=(e,t)=>({u_is_size_zoom_constant:new il(e,t.u_is_size_zoom_constant),u_is_size_feature_constant:new il(e,t.u_is_size_feature_constant),u_size_t:new gs(e,t.u_size_t),u_size:new gs(e,t.u_size),u_rotate_symbol:new il(e,t.u_rotate_symbol),u_label_plane_matrix:new Ev(e,t.u_label_plane_matrix),u_coord_matrix:new Ev(e,t.u_coord_matrix),u_is_text:new il(e,t.u_is_text),u_pitch_with_map:new il(e,t.u_pitch_with_map),u_is_along_line:new il(e,t.u_is_along_line),u_is_variable_anchor:new il(e,t.u_is_variable_anchor),u_texsize:new Kl(e,t.u_texsize),u_texsize_icon:new Kl(e,t.u_texsize_icon),u_texture:new il(e,t.u_texture),u_texture_icon:new il(e,t.u_texture_icon),u_gamma_scale:new gs(e,t.u_gamma_scale),u_is_halo:new il(e,t.u_is_halo),u_translation:new Kl(e,t.u_translation),u_pitched_scale:new gs(e,t.u_pitched_scale),u_is_offset:new il(e,t.u_is_offset),u_height_anchor_ground:new il(e,t.u_height_anchor_ground)}),Blt=(e,t,r,i,n,a,o,s,l,u,f,c,h,d,p)=>({u_is_size_zoom_constant:+(e==="constant"||e==="source"),u_is_size_feature_constant:+(e==="constant"||e==="camera"),u_size_t:t?t.uSizeT:0,u_size:t?t.uSize:0,u_rotate_symbol:+r,u_label_plane_matrix:s,u_coord_matrix:l,u_is_text:+f,u_pitch_with_map:+i,u_is_along_line:n,u_is_variable_anchor:a,u_texsize:c,u_texture:0,u_translation:u,u_pitched_scale:h,u_is_offset:d,u_height_anchor_ground:+p}),qlt=(e,t,r,i,n,a,o,s,l,u,f,c,h,d,p,v)=>{let y=o.transform;return Hs(Blt(e,t,r,i,n,a,o,s,l,u,f,c,d,p,v),{u_gamma_scale:i?Math.cos(y.pitch*Math.PI/180)*y.cameraToCenterDistance:1,u_is_halo:+!!h,u_is_plain:1})},xEr=(e,t,r,i,n,a,o,s,l,u,f,c,h,d,p)=>Hs(qlt(e,t,r,i,n,a,o,s,l,u,!0,f,!0,h,d,p),{u_texsize_icon:c,u_texture_icon:1}),bEr=(e,t)=>({u_opacity:new gs(e,t.u_opacity),u_color:new ng(e,t.u_color)}),_Er=(e,t)=>({u_opacity:new gs(e,t.u_opacity),u_image:new il(e,t.u_image),u_pattern_tl_a:new Kl(e,t.u_pattern_tl_a),u_pattern_br_a:new Kl(e,t.u_pattern_br_a),u_pattern_tl_b:new Kl(e,t.u_pattern_tl_b),u_pattern_br_b:new Kl(e,t.u_pattern_br_b),u_texsize:new Kl(e,t.u_texsize),u_mix:new gs(e,t.u_mix),u_pattern_size_a:new Kl(e,t.u_pattern_size_a),u_pattern_size_b:new Kl(e,t.u_pattern_size_b),u_scale_a:new gs(e,t.u_scale_a),u_scale_b:new gs(e,t.u_scale_b),u_pixel_coord_upper:new Kl(e,t.u_pixel_coord_upper),u_pixel_coord_lower:new Kl(e,t.u_pixel_coord_lower),u_tile_units_to_pixels:new gs(e,t.u_tile_units_to_pixels)}),wEr=(e,t)=>({u_opacity:e,u_color:t}),AEr=(e,t,r,i,n)=>Hs(RSr(r,n,t,i),{u_opacity:e}),TEr=(e,t)=>({u_sun_pos:new td(e,t.u_sun_pos),u_atmosphere_blend:new gs(e,t.u_atmosphere_blend),u_globe_position:new td(e,t.u_globe_position),u_globe_radius:new gs(e,t.u_globe_radius),u_inv_proj_matrix:new Ev(e,t.u_inv_proj_matrix)}),MEr=(e,t,r,i,n)=>({u_sun_pos:e,u_atmosphere_blend:t,u_globe_position:r,u_globe_radius:i,u_inv_proj_matrix:n}),SEr=(e,t)=>({u_sky_color:new ng(e,t.u_sky_color),u_horizon_color:new ng(e,t.u_horizon_color),u_horizon:new Kl(e,t.u_horizon),u_horizon_normal:new Kl(e,t.u_horizon_normal),u_sky_horizon_blend:new gs(e,t.u_sky_horizon_blend),u_sky_blend:new gs(e,t.u_sky_blend),u_inv_proj_matrix:new Ev(e,t.u_inv_proj_matrix),u_globe_position:new td(e,t.u_globe_position),u_globe_radius:new gs(e,t.u_globe_radius),u_atmosphere_blend:new gs(e,t.u_atmosphere_blend)}),EEr=(e,t,r)=>{let i=Math.cos(t.rollInRadians),n=Math.sin(t.rollInRadians),a=eT(t),o=t.getProjectionData({overscaledTileID:null,applyGlobeMatrix:!0,applyTerrainMatrix:!0}).projectionTransition,s=_lt(t),l=sT(t.worldSize,t.center.lat);return{u_sky_color:e.properties.get("sky-color"),u_horizon_color:e.properties.get("horizon-color"),u_horizon:[(t.width/2-a*n)*r,(t.height/2+a*i)*r],u_horizon_normal:[-n,i],u_sky_horizon_blend:e.properties.get("sky-horizon-blend")*t.height/2*r,u_sky_blend:o,u_inv_proj_matrix:t.inverseProjectionMatrix,u_globe_position:s,u_globe_radius:l,u_atmosphere_blend:e.properties.get("atmosphere-blend")*wlt(Sv(s)-l,l)}},Yq=(e,t)=>({}),kEr={fillExtrusion:BSr,fillExtrusionPattern:qSr,fill:NSr,fillPattern:VSr,fillOutline:USr,fillOutlinePattern:GSr,circle:$Sr,collisionBox:Yq,collisionCircle:Yq,debug:XSr,depth:Yq,clippingMask:Yq,heatmap:ZSr,heatmapTexture:KSr,hillshade:JSr,hillshadePrepare:QSr,colorRelief:iEr,line:aEr,lineGradient:oEr,linePattern:sEr,lineSDF:lEr,lineGradientSDF:uEr,layerOpacity:pEr,raster:H6r,symbolIcon:mEr,symbolSDF:yEr,symbolTextAndIcon:gEr,background:bEr,backgroundPattern:_Er,terrain:ASr,terrainDepth:TSr,atmosphere:TEr,sky:SEr},CEr=class{constructor(e,t,r){this.context=e;let i=e.gl;this.buffer=i.createBuffer(),this.dynamicDraw=!!r,this.context.unbindVAO(),e.bindElementBuffer.set(this.buffer),i.bufferData(i.ELEMENT_ARRAY_BUFFER,t.arrayBuffer,this.dynamicDraw?i.DYNAMIC_DRAW:i.STATIC_DRAW),this.dynamicDraw||t.freeBufferAfterUpload()}bind(){this.context.bindElementBuffer.set(this.buffer)}updateData(e){let t=this.context.gl;if(!this.dynamicDraw)throw Error("Attempted to update data while not in dynamic mode.");this.context.unbindVAO(),this.bind(),t.bufferSubData(t.ELEMENT_ARRAY_BUFFER,0,e.arrayBuffer)}destroy(){let e=this.context.gl;this.buffer&&(e.deleteBuffer(this.buffer),delete this.buffer)}},hst={Int8:"BYTE",Uint8:"UNSIGNED_BYTE",Int16:"SHORT",Uint16:"UNSIGNED_SHORT",Int32:"INT",Uint32:"UNSIGNED_INT",Float32:"FLOAT"},DEr=class{constructor(e,t,r,i){this.length=t.length,this.attributes=r,this.itemSize=t.bytesPerElement,this.dynamicDraw=i,this.context=e;let n=e.gl;this.buffer=n.createBuffer(),e.bindVertexBuffer.set(this.buffer),n.bufferData(n.ARRAY_BUFFER,t.arrayBuffer,this.dynamicDraw?n.DYNAMIC_DRAW:n.STATIC_DRAW),this.dynamicDraw||t.freeBufferAfterUpload()}bind(){this.context.bindVertexBuffer.set(this.buffer)}updateData(e){if(e.length!==this.length)throw Error(`Length of new data is ${e.length}, which doesn't match current length of ${this.length}`);let t=this.context.gl;this.bind(),t.bufferSubData(t.ARRAY_BUFFER,0,e.arrayBuffer)}enableAttributes(e,t){for(let r of this.attributes){let i=t.attributes[r.name];i!==void 0&&e.enableVertexAttribArray(i.location)}}setVertexAttribPointers(e,t,r){for(let i of this.attributes){let n=t.attributes[i.name];if(n!==void 0){let a=i.offset+this.itemSize*(r||0);n.isInteger?e.vertexAttribIPointer(n.location,i.components,e[hst[i.type]],this.itemSize,a):e.vertexAttribPointer(n.location,i.components,e[hst[i.type]],!1,this.itemSize,a)}}}destroy(){let e=this.context.gl;this.buffer&&(e.deleteBuffer(this.buffer),delete this.buffer)}},of=class{constructor(e){this.gl=e.gl,this.default=this.getDefault(),this.current=this.default,this.dirty=!1}get(){return this.current}set(e){}getDefault(){return this.default}setDefault(){this.set(this.default)}},FEr=class extends of{getDefault(){return Ol.transparent}set(e){let t=this.current;(e.r!==t.r||e.g!==t.g||e.b!==t.b||e.a!==t.a||this.dirty)&&(this.gl.clearColor(e.r,e.g,e.b,e.a),this.current=e,this.dirty=!1)}},LEr=class extends of{getDefault(){return 1}set(e){(e!==this.current||this.dirty)&&(this.gl.clearDepth(e),this.current=e,this.dirty=!1)}},PEr=class extends of{getDefault(){return 0}set(e){(e!==this.current||this.dirty)&&(this.gl.clearStencil(e),this.current=e,this.dirty=!1)}},zEr=class extends of{getDefault(){return[!0,!0,!0,!0]}set(e){let t=this.current;(e[0]!==t[0]||e[1]!==t[1]||e[2]!==t[2]||e[3]!==t[3]||this.dirty)&&(this.gl.colorMask(e[0],e[1],e[2],e[3]),this.current=e,this.dirty=!1)}},IEr=class extends of{getDefault(){return!0}set(e){(e!==this.current||this.dirty)&&(this.gl.depthMask(e),this.current=e,this.dirty=!1)}},REr=class extends of{getDefault(){return 255}set(e){(e!==this.current||this.dirty)&&(this.gl.stencilMask(e),this.current=e,this.dirty=!1)}},BEr=class extends of{getDefault(){return{func:this.gl.ALWAYS,ref:0,mask:255}}set(e){let t=this.current;(e.func!==t.func||e.ref!==t.ref||e.mask!==t.mask||this.dirty)&&(this.gl.stencilFunc(e.func,e.ref,e.mask),this.current=e,this.dirty=!1)}},qEr=class extends of{getDefault(){let e=this.gl;return[e.KEEP,e.KEEP,e.KEEP]}set(e){let t=this.current;(e[0]!==t[0]||e[1]!==t[1]||e[2]!==t[2]||this.dirty)&&(this.gl.stencilOp(e[0],e[1],e[2]),this.current=e,this.dirty=!1)}},OEr=class extends of{getDefault(){return!1}set(e){if(e===this.current&&!this.dirty)return;let t=this.gl;e?t.enable(t.STENCIL_TEST):t.disable(t.STENCIL_TEST),this.current=e,this.dirty=!1}},NEr=class extends of{getDefault(){return[0,1]}set(e){let t=this.current;(e[0]!==t[0]||e[1]!==t[1]||this.dirty)&&(this.gl.depthRange(e[0],e[1]),this.current=e,this.dirty=!1)}},VEr=class extends of{getDefault(){return!1}set(e){if(e===this.current&&!this.dirty)return;let t=this.gl;e?t.enable(t.DEPTH_TEST):t.disable(t.DEPTH_TEST),this.current=e,this.dirty=!1}},UEr=class extends of{getDefault(){return this.gl.LESS}set(e){(e!==this.current||this.dirty)&&(this.gl.depthFunc(e),this.current=e,this.dirty=!1)}},GEr=class extends of{getDefault(){return!1}set(e){if(e===this.current&&!this.dirty)return;let t=this.gl;e?t.enable(t.BLEND):t.disable(t.BLEND),this.current=e,this.dirty=!1}},HEr=class extends of{getDefault(){let e=this.gl;return[e.ONE,e.ZERO]}set(e){let t=this.current;(e[0]!==t[0]||e[1]!==t[1]||this.dirty)&&(this.gl.blendFunc(e[0],e[1]),this.current=e,this.dirty=!1)}},jEr=class extends of{getDefault(){return Ol.transparent}set(e){let t=this.current;(e.r!==t.r||e.g!==t.g||e.b!==t.b||e.a!==t.a||this.dirty)&&(this.gl.blendColor(e.r,e.g,e.b,e.a),this.current=e,this.dirty=!1)}},WEr=class extends of{getDefault(){return this.gl.FUNC_ADD}set(e){(e!==this.current||this.dirty)&&(this.gl.blendEquation(e),this.current=e,this.dirty=!1)}},$Er=class extends of{getDefault(){return!1}set(e){if(e===this.current&&!this.dirty)return;let t=this.gl;e?t.enable(t.CULL_FACE):t.disable(t.CULL_FACE),this.current=e,this.dirty=!1}},YEr=class extends of{getDefault(){return this.gl.BACK}set(e){(e!==this.current||this.dirty)&&(this.gl.cullFace(e),this.current=e,this.dirty=!1)}},XEr=class extends of{getDefault(){return this.gl.CCW}set(e){(e!==this.current||this.dirty)&&(this.gl.frontFace(e),this.current=e,this.dirty=!1)}},ZEr=class extends of{getDefault(){return null}set(e){(e!==this.current||this.dirty)&&(this.gl.useProgram(e),this.current=e,this.dirty=!1)}},KEr=class extends of{getDefault(){return this.gl.TEXTURE0}set(e){(e!==this.current||this.dirty)&&(this.gl.activeTexture(e),this.current=e,this.dirty=!1)}},JEr=class extends of{getDefault(){let e=this.gl;return[0,0,e.drawingBufferWidth,e.drawingBufferHeight]}set(e){let t=this.current;(e[0]!==t[0]||e[1]!==t[1]||e[2]!==t[2]||e[3]!==t[3]||this.dirty)&&(this.gl.viewport(e[0],e[1],e[2],e[3]),this.current=e,this.dirty=!1)}},QEr=class extends of{getDefault(){return null}set(e){if(e===this.current&&!this.dirty)return;let t=this.gl;t.bindFramebuffer(t.FRAMEBUFFER,e),this.current=e,this.dirty=!1}},ekr=class extends of{getDefault(){return null}set(e){if(e===this.current&&!this.dirty)return;let t=this.gl;t.bindRenderbuffer(t.RENDERBUFFER,e),this.current=e,this.dirty=!1}},tkr=class extends of{getDefault(){return null}set(e){if(e===this.current&&!this.dirty)return;let t=this.gl;t.bindTexture(t.TEXTURE_2D,e),this.current=e,this.dirty=!1}},rkr=class extends of{getDefault(){return null}set(e){if(e===this.current&&!this.dirty)return;let t=this.gl;t.bindBuffer(t.ARRAY_BUFFER,e),this.current=e,this.dirty=!1}},ikr=class extends of{getDefault(){return null}set(e){let t=this.gl;t.bindBuffer(t.ELEMENT_ARRAY_BUFFER,e),this.current=e,this.dirty=!1}},nkr=class extends of{getDefault(){return null}set(e){(e!==this.current||this.dirty)&&(this.gl.bindVertexArray(e),this.current=e,this.dirty=!1)}},akr=class extends of{getDefault(){return 4}set(e){if(e===this.current&&!this.dirty)return;let t=this.gl;t.pixelStorei(t.UNPACK_ALIGNMENT,e),this.current=e,this.dirty=!1}},okr=class extends of{getDefault(){return!1}set(e){if(e===this.current&&!this.dirty)return;let t=this.gl;t.pixelStorei(t.UNPACK_PREMULTIPLY_ALPHA_WEBGL,e),this.current=e,this.dirty=!1}},skr=class extends of{getDefault(){return!1}set(e){if(e===this.current&&!this.dirty)return;let t=this.gl;t.pixelStorei(t.UNPACK_FLIP_Y_WEBGL,e),this.current=e,this.dirty=!1}},Noe=class extends of{constructor(e,t){super(e),this.context=e,this.parent=t}getDefault(){return null}},lkr=class extends Noe{setDirty(){this.dirty=!0}set(e){if(e===this.current&&!this.dirty)return;this.context.bindFramebuffer.set(this.parent);let t=this.gl;t.framebufferTexture2D(t.FRAMEBUFFER,t.COLOR_ATTACHMENT0,t.TEXTURE_2D,e,0),this.current=e,this.dirty=!1}},ukr=class extends Noe{set(e){if(e===this.current&&!this.dirty)return;this.context.bindFramebuffer.set(this.parent);let t=this.gl;t.framebufferRenderbuffer(t.FRAMEBUFFER,t.DEPTH_ATTACHMENT,t.RENDERBUFFER,e),this.current=e,this.dirty=!1}},fkr=class extends Noe{set(e){if(e===this.current&&!this.dirty)return;this.context.bindFramebuffer.set(this.parent);let t=this.gl;t.framebufferRenderbuffer(t.FRAMEBUFFER,t.DEPTH_STENCIL_ATTACHMENT,t.RENDERBUFFER,e),this.current=e,this.dirty=!1}},ckr=class{constructor(e,t,r,i,n){this.context=e,this.width=t,this.height=r;let a=e.gl,o=this.framebuffer=a.createFramebuffer();if(this.colorAttachment=new lkr(e,o),i)this.depthAttachment=n?new fkr(e,o):new ukr(e,o);else if(n)throw Error("Stencil cannot be set without depth")}destroy(){let e=this.context.gl,t=this.colorAttachment.get();if(t&&e.deleteTexture(t),this.depthAttachment){let r=this.depthAttachment.get();r&&e.deleteRenderbuffer(r)}e.deleteFramebuffer(this.framebuffer)}},Olt=Boe([{name:"u_units_to_pixels",type:"vec2"},{name:"u_world_size",type:"vec2"},{name:"u_camera_to_center_distance",type:"float"},{name:"u_symbol_fade_change",type:"float"},{name:"u_aspect_ratio",type:"float"},{name:"u_device_pixel_ratio",type:"float"},{name:"u_viewport_size",type:"vec2"},{name:"u_pixel_extrude_scale",type:"vec2"},{name:"u_pitch",type:"float"}]),Ap=Olt.offsets;Bc=class{constructor(e,t,r){this.blendFunction=e,this.blendColor=t,this.mask=r}};Bc.Replace=[1,0],Bc.disabled=new Bc(Bc.Replace,Ol.transparent,[!1,!1,!1,!1]),Bc.unblended=new Bc(Bc.Replace,Ol.transparent,[!0,!0,!0,!0]),Bc.alphaBlended=new Bc([1,771],Ol.transparent,[!0,!0,!0,!0]);pkr=class{constructor(e){this.gl=e,this.clearColor=new FEr(this),this.clearDepth=new LEr(this),this.clearStencil=new PEr(this),this.colorMask=new zEr(this),this.depthMask=new IEr(this),this.stencilMask=new REr(this),this.stencilFunc=new BEr(this),this.stencilOp=new qEr(this),this.stencilTest=new OEr(this),this.depthRange=new NEr(this),this.depthTest=new VEr(this),this.depthFunc=new UEr(this),this.blend=new GEr(this),this.blendFunc=new HEr(this),this.blendColor=new jEr(this),this.blendEquation=new WEr(this),this.cullFace=new $Er(this),this.cullFaceSide=new YEr(this),this.frontFace=new XEr(this),this.program=new ZEr(this),this.activeTexture=new KEr(this),this.viewport=new JEr(this),this.bindFramebuffer=new QEr(this),this.bindRenderbuffer=new ekr(this),this.bindTexture=new tkr(this),this.bindVertexBuffer=new rkr(this),this.bindElementBuffer=new ikr(this),this.bindVertexArray=new nkr(this),this.pixelStoreUnpack=new akr(this),this.pixelStoreUnpackPremultiplyAlpha=new okr(this),this.pixelStoreUnpackFlipY=new skr(this),this.extTextureFilterAnisotropic=e.getExtension("EXT_texture_filter_anisotropic"),this.extTextureFilterAnisotropic&&(this.extTextureFilterAnisotropicMax=e.getParameter(this.extTextureFilterAnisotropic.MAX_TEXTURE_MAX_ANISOTROPY_EXT)),this.maxTextureSize=e.getParameter(e.MAX_TEXTURE_SIZE),e.getExtension("EXT_color_buffer_half_float"),e.getExtension("EXT_color_buffer_float"),this.boundUniformBuffers=[],this.projectionUniformBuffer=Clt(this),this.keyedProjectionUniformBuffers=new Map,this.freeProjectionUniformBuffers=[],this.terrainUniformBuffer=LSr(this),this.frameUniformBuffer=hkr(this)}setDefault(){this.unbindVAO(),this.clearColor.setDefault(),this.clearDepth.setDefault(),this.clearStencil.setDefault(),this.colorMask.setDefault(),this.depthMask.setDefault(),this.stencilMask.setDefault(),this.stencilFunc.setDefault(),this.stencilOp.setDefault(),this.stencilTest.setDefault(),this.depthRange.setDefault(),this.depthTest.setDefault(),this.depthFunc.setDefault(),this.blend.setDefault(),this.blendFunc.setDefault(),this.blendColor.setDefault(),this.blendEquation.setDefault(),this.cullFace.setDefault(),this.cullFaceSide.setDefault(),this.frontFace.setDefault(),this.program.setDefault(),this.activeTexture.setDefault(),this.bindFramebuffer.setDefault(),this.pixelStoreUnpack.setDefault(),this.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.pixelStoreUnpackFlipY.setDefault()}setDirty(){this.clearColor.dirty=!0,this.clearDepth.dirty=!0,this.clearStencil.dirty=!0,this.colorMask.dirty=!0,this.depthMask.dirty=!0,this.stencilMask.dirty=!0,this.stencilFunc.dirty=!0,this.stencilOp.dirty=!0,this.stencilTest.dirty=!0,this.depthRange.dirty=!0,this.depthTest.dirty=!0,this.depthFunc.dirty=!0,this.blend.dirty=!0,this.blendFunc.dirty=!0,this.blendColor.dirty=!0,this.blendEquation.dirty=!0,this.cullFace.dirty=!0,this.cullFaceSide.dirty=!0,this.frontFace.dirty=!0,this.program.dirty=!0,this.activeTexture.dirty=!0,this.viewport.dirty=!0,this.bindFramebuffer.dirty=!0,this.bindRenderbuffer.dirty=!0,this.bindTexture.dirty=!0,this.bindVertexBuffer.dirty=!0,this.bindElementBuffer.dirty=!0,this.bindVertexArray.dirty=!0,this.pixelStoreUnpack.dirty=!0,this.pixelStoreUnpackPremultiplyAlpha.dirty=!0,this.pixelStoreUnpackFlipY.dirty=!0,this.boundUniformBuffers=[]}setCustomLayerDefaults(){this.unbindVAO(),this.cullFace.setDefault(),this.activeTexture.setDefault(),this.pixelStoreUnpack.setDefault(),this.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.pixelStoreUnpackFlipY.setDefault()}createIndexBuffer(e,t){return new CEr(this,e,t)}createVertexBuffer(e,t,r){return new DEr(this,e,t,r)}createRenderbuffer(e,t,r){let i=this.gl,n=i.createRenderbuffer();return this.bindRenderbuffer.set(n),i.renderbufferStorage(i.RENDERBUFFER,e,t,r),this.bindRenderbuffer.set(null),n}createFramebuffer(e,t,r,i){return new ckr(this,e,t,r,i)}clear({color:e,depth:t,stencil:r}){let i=this.gl,n=0;e&&(n|=i.COLOR_BUFFER_BIT,this.clearColor.set(e),this.colorMask.set([!0,!0,!0,!0])),t!==void 0&&(n|=i.DEPTH_BUFFER_BIT,this.depthRange.set([0,1]),this.clearDepth.set(t),this.depthMask.set(!0)),r!==void 0&&(n|=i.STENCIL_BUFFER_BIT,this.clearStencil.set(r),this.stencilMask.set(255)),i.clear(n)}setCullFace(e){e.enable===!1?this.cullFace.set(!1):(this.cullFace.set(!0),this.cullFaceSide.set(e.mode),this.frontFace.set(e.frontFace))}setDepthMode(e){e.func===this.gl.ALWAYS&&!e.mask?this.depthTest.set(!1):(this.depthTest.set(!0),this.depthFunc.set(e.func),this.depthMask.set(e.mask),this.depthRange.set(e.range))}setStencilMode(e){e.test.func===this.gl.ALWAYS&&!e.mask?this.stencilTest.set(!1):(this.stencilTest.set(!0),this.stencilMask.set(e.mask),this.stencilOp.set([e.fail,e.depthFail,e.pass]),this.stencilFunc.set({func:e.test.func,ref:e.ref,mask:e.test.mask}))}setColorMode(e){M1(e.blendFunction,Bc.Replace)?this.blend.set(!1):(this.blend.set(!0),this.blendFunc.set(e.blendFunction),this.blendColor.set(e.blendColor)),this.colorMask.set(e.mask)}createVertexArray(){return this.gl.createVertexArray()}deleteVertexArray(e){this.gl.deleteVertexArray(e)}unbindVAO(){this.bindVertexArray.set(null)}},vu=class{constructor(e,t,r){this.func=e,this.mask=t,this.range=r}};vu.ReadOnly=!1,vu.ReadWrite=!0,vu.disabled=new vu(519,vu.ReadOnly,[0,1]);$ae=7680,Zu=class{constructor(e,t,r,i,n,a){this.test=e,this.ref=t,this.mask=r,this.fail=i,this.depthFail=n,this.pass=a}};Zu.disabled=new Zu({func:519,mask:0},0,0,$ae,$ae,$ae);dst=1029,Yae=2305,Hu=class{constructor(e,t,r){this.enable=e,this.mode=t,this.frontFace=r}};Hu.disabled=new Hu(!1,dst,Yae),Hu.backCCW=new Hu(!0,dst,Yae),Hu.frontCCW=new Hu(!0,1028,Yae);ykr=Mv(new Float32Array(16));Kae=0;Qae=[new Zr(0,0),new Zr(Aa,0),new Zr(Aa,Aa),new Zr(0,Aa)];$kr=new Ol(1,0,0,1),Ykr=new Ol(0,1,0,1),Xkr=new Ol(0,0,1,1),Zkr=new Ol(1,0,1,1),Kkr=new Ol(0,1,1,1);fCr={symbol:gkr,circle:Tkr,heatmap:Mkr,line:Rkr,fill:Bkr,fillExtrusion:qkr,hillshade:Okr,colorRelief:Vkr,raster:Ukr,background:Wkr,sky:sCr,atmosphere:uCr,custom:nCr,debug:eCr,debugPadding:Jkr,terrainDepth:aCr},cCr=(w3=class{constructor(t,r){this.drawFunctions=fCr,this.context=new pkr(t),this.transform=r,this.layerOpacityFbo=null,this._tileTextures={},this._rttObjectRecyclePool=[],this._rttSharedFbo=null,this.terrainFacilitator={depthDirty:!0,matrix:Mv(new Float64Array(16)),renderTime:0},this.setup(),this.numSublayers=uoe.maxOverzooming+uoe.maxUnderzooming+1,this.depthEpsilon=1/2**16,this.crossTileSymbolIndex=new ult}resize(t,r,i){if(this.width=Math.round(t*i),this.height=Math.round(r*i),this.pixelRatio=i,this.context.viewport.set([0,0,this.width,this.height]),this.style)for(let n of this.style._order)this.style._layers[n].resize()}setup(){let t=this.context,r=new rg;r.emplaceBack(0,0),r.emplaceBack(Aa,0),r.emplaceBack(0,Aa),r.emplaceBack(Aa,Aa),this.tileExtentBuffer=t.createVertexBuffer(r,_3.members),this.tileExtentSegments=tc.simpleSegment(0,0,4,2);let i=new rg;i.emplaceBack(0,0),i.emplaceBack(Aa,0),i.emplaceBack(0,Aa),i.emplaceBack(Aa,Aa),this.debugBuffer=t.createVertexBuffer(i,_3.members),this.debugSegments=tc.simpleSegment(0,0,4,5);let n=new wnt;n.emplaceBack(0,0,0,0),n.emplaceBack(Aa,0,Aa,0),n.emplaceBack(0,Aa,0,Aa),n.emplaceBack(Aa,Aa,Aa,Aa),this.rasterBoundsBuffer=t.createVertexBuffer(n,bSr.members),this.rasterBoundsSegments=tc.simpleSegment(0,0,4,2);let a=new rg;a.emplaceBack(0,0),a.emplaceBack(Aa,0),a.emplaceBack(0,Aa),a.emplaceBack(Aa,Aa),this.rasterBoundsBufferPosOnly=t.createVertexBuffer(a,_3.members),this.rasterBoundsSegmentsPosOnly=tc.simpleSegment(0,0,4,5);let o=new rg;o.emplaceBack(0,0),o.emplaceBack(1,0),o.emplaceBack(0,1),o.emplaceBack(1,1),this.viewportBuffer=t.createVertexBuffer(o,_3.members),this.viewportSegments=tc.simpleSegment(0,0,4,2);let s=new Mnt;s.emplaceBack(0),s.emplaceBack(1),s.emplaceBack(3),s.emplaceBack(2),s.emplaceBack(0),this.tileBorderIndexBuffer=t.createIndexBuffer(s);let l=new D1;l.emplaceBack(1,0,2),l.emplaceBack(1,2,3),this.quadTriangleIndexBuffer=t.createIndexBuffer(l);let u=this.context.gl;this.stencilClearMode=new Zu({func:u.ALWAYS,mask:0},0,255,u.ZERO,u.ZERO,u.ZERO),this.tileExtentMesh=new JC(this.tileExtentBuffer,this.quadTriangleIndexBuffer,this.tileExtentSegments)}clearStencil(){let t=this.context,r=t.gl;this.nextStencilID=1,this.currentStencilSource=void 0;let i=Ky();E1(i,0,this.width,this.height,0,0,1),f0(i,i,[r.drawingBufferWidth,r.drawingBufferHeight,0]);let n={mainMatrix:i,tileMercatorCoords:[0,0,1,1],clippingPlane:[0,0,0,0],projectionTransition:0,fallbackMatrix:i,clipAntimeridian:!1};this.useProgram("clippingMask",null,!0).draw(t,r.TRIANGLES,vu.disabled,this.stencilClearMode,Bc.disabled,Hu.disabled,null,null,n,"$clipping",this.viewportBuffer,this.quadTriangleIndexBuffer,this.viewportSegments)}renderTileClippingMasks(t,r){if(this.currentStencilSource===t.source||!t.isTileClipped()||!(r!=null&&r.length))return;this.currentStencilSource=t.source,this.nextStencilID+r.length>256&&this.clearStencil();let i=this.context;i.setColorMode(Bc.disabled),i.setDepthMode(vu.disabled);let n={};for(let a of r)n[a.key]=this.nextStencilID++;this.style.projection.useSubdivision&&this._renderTileMasks(n,r,!0),this._renderTileMasks(n,r,!1),this._tileClippingMaskIDs=n}_renderTileMasks(t,r,i){let n=this.context,a=n.gl,o=this.style.projection,s=this.renderContext,l=this.useProgram("clippingMask");for(let u of r){let f=t[u.key],c=xd(s,u),h=o.getMeshFromTileID(this.context,u.canonical,i,!0,"stencil"),d=I0(s,u);l.draw(n,a.TRIANGLES,vu.disabled,new Zu({func:a.ALWAYS,mask:0},f,255,a.KEEP,a.KEEP,a.REPLACE),Bc.disabled,s.isRenderingToTexture?Hu.disabled:Hu.backCCW,null,c,d,"$clipping",h.vertexBuffer,h.indexBuffer,h.segments)}}_renderTilesDepthBuffer(){let t=this.context,r=t.gl,i=this.style.projection,n=this.transform,a=this.useProgram("depth"),o=this.getDepthModeFor3D(),s=uT(n,{tileSize:n.tileSize});for(let l of s){let u=xd(this.renderContext,l),f=i.getMeshFromTileID(this.context,l.canonical,!0,!0,"raster"),c=I0(this.renderContext,l);a.draw(t,r.TRIANGLES,o,Zu.disabled,Bc.disabled,Hu.backCCW,null,u,c,"$clipping",f.vertexBuffer,f.indexBuffer,f.segments)}}stencilModeFor3D(){this.currentStencilSource=void 0,this.nextStencilID+1>256&&this.clearStencil();let t=this.nextStencilID++,r=this.context.gl;return new Zu({func:r.NOTEQUAL,mask:255},t,255,r.KEEP,r.KEEP,r.REPLACE)}stencilModeForClipping(t){let r=this.context.gl;return new Zu({func:r.EQUAL,mask:255},this._tileClippingMaskIDs[t.key],0,r.KEEP,r.KEEP,r.REPLACE)}getStencilConfigForOverlapAndUpdateStencilID(t){let r=this.context.gl,i=t.sort((o,s)=>s.overscaledZ-o.overscaledZ),n=i[i.length-1].overscaledZ,a=i[0].overscaledZ-n+1;if(a>1){this.currentStencilSource=void 0,this.nextStencilID+a>256&&this.clearStencil();let o={};for(let s=0;ss.overscaledZ-o.overscaledZ),n=i[i.length-1].overscaledZ,a=i[0].overscaledZ-n+1;if(this.clearStencil(),a>1){let o={},s={};for(let l=0;l=0;i.currentLayer--){let h=this.style._layers[n[i.currentLayer]];if(h.isHidden(this.transform.zoom))continue;let d=a[h.source],p=o[h.source];this.renderTileClippingMasks(h,p),this.renderLayer(this,d,h,p,i)}i.currentPass="translucent";let u=!1;for(i.currentLayer=0;i.currentLayer0?r.pop():null}acquireRTT(t){let r=this.context.gl,i=this._rttObjectRecyclePool.pop();if(i)return i.size!==t&&(i.texture.update({width:t,height:t,data:null},{premultiply:!1,useMipmap:!0}),i.texture.bind(r.LINEAR,r.CLAMP_TO_EDGE,r.LINEAR_MIPMAP_LINEAR),this.context.extTextureFilterAnisotropic&&r.texParameterf(r.TEXTURE_2D,this.context.extTextureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT,this.context.extTextureFilterAnisotropicMax),i.size=t),i;let n=new dh(this.context,{width:t,height:t,data:null},r.RGBA,{premultiply:!1,useMipmap:!0});return n.bind(r.LINEAR,r.CLAMP_TO_EDGE,r.LINEAR_MIPMAP_LINEAR),this.context.extTextureFilterAnisotropic&&r.texParameterf(r.TEXTURE_2D,this.context.extTextureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT,this.context.extTextureFilterAnisotropicMax),{texture:n,size:t}}bindRTT(t){let r=this.context.gl,i=t.size;if(!this._rttSharedFbo){let n=this.context.createFramebuffer(i,i,!0,!0),a=this.context.createRenderbuffer(r.DEPTH_STENCIL,i,i);n.depthAttachment.set(a),this._rttSharedFbo={fbo:n,depthRenderbuffer:a,size:i}}this._rttSharedFbo.size!==i&&(this.context.bindRenderbuffer.set(this._rttSharedFbo.depthRenderbuffer),r.renderbufferStorage(r.RENDERBUFFER,r.DEPTH_STENCIL,i,i),this.context.bindRenderbuffer.set(null),this._rttSharedFbo.fbo.width=i,this._rttSharedFbo.fbo.height=i,this._rttSharedFbo.size=i),this._rttSharedFbo.fbo.colorAttachment.set(t.texture.texture),this.context.bindFramebuffer.set(this._rttSharedFbo.fbo.framebuffer)}releaseRTT(t){this._rttObjectRecyclePool.push(t)}clearRTTPool(){for(let t of this._rttObjectRecyclePool)t.texture.destroy();this._rttObjectRecyclePool.length=0}destroyRTTResources(){if(this.clearRTTPool(),!this._rttSharedFbo)return;this._rttSharedFbo.fbo.colorAttachment.set(null),this._rttSharedFbo.fbo.depthAttachment.set(null);let t=this.context.gl;t.deleteRenderbuffer(this._rttSharedFbo.depthRenderbuffer),t.deleteFramebuffer(this._rttSharedFbo.fbo.framebuffer),this._rttSharedFbo=null}isPatternMissing(t){if(!t)return!1;if(!t.from||!t.to)return!0;let r=this.patternAtlas.getPattern(t.from.toString()),i=this.patternAtlas.getPattern(t.to.toString());return!r||!i}useProgram(t,r,i=!1,n=[]){var v;this.cache||(this.cache={});let a=!!this.style.map.terrain,o=this.style.projection,s=i?Gm.projectionMercator:o.shaderPreludeCode,l=i?flt:o.shaderDefine,u=`/${i?clt:o.shaderVariantName}`,f=r?r.cacheKey:"",c=this._showOverdrawInspector?"/overdraw":"",h=a?"/terrain":"",d=n?`/${n.join("/")}`:"",p=t+f+u+c+h+d;return(v=this.cache)[p]||(v[p]=new ISr(this.context,Gm[t],r,kEr[t],this._showOverdrawInspector,a,s,l,n)),this.cache[p]}setCustomLayerDefaults(){this.context.setCustomLayerDefaults()}setBaseState(){let t=this.context.gl;this.context.cullFace.set(!1),this.context.viewport.set([0,0,this.width,this.height]),this.context.blendEquation.set(t.FUNC_ADD)}initDebugOverlayCanvas(){if(this.debugOverlayCanvas==null){this.debugOverlayCanvas=document.createElement("canvas"),this.debugOverlayCanvas.width=512,this.debugOverlayCanvas.height=512;let t=this.context.gl;this.debugOverlayTexture=new dh(this.context,this.debugOverlayCanvas,t.RGBA)}}destroy(){var t,r,i;if(this._tileTextures){for(let n in this._tileTextures){let a=this._tileTextures[n];if(a)for(let o of a)o.destroy()}this._tileTextures={}}if(this.destroyRTTResources(),(t=this.layerOpacityFbo)==null||t.destroy(),this.layerOpacityFbo=null,this.tileExtentBuffer&&this.tileExtentBuffer.destroy(),this.debugBuffer&&this.debugBuffer.destroy(),this.rasterBoundsBuffer&&this.rasterBoundsBuffer.destroy(),this.rasterBoundsBufferPosOnly&&this.rasterBoundsBufferPosOnly.destroy(),this.viewportBuffer&&this.viewportBuffer.destroy(),this.tileBorderIndexBuffer&&this.tileBorderIndexBuffer.destroy(),this.quadTriangleIndexBuffer&&this.quadTriangleIndexBuffer.destroy(),this.tileExtentMesh&&((r=this.tileExtentMesh.vertexBuffer)==null||r.destroy()),this.tileExtentMesh&&((i=this.tileExtentMesh.indexBuffer)==null||i.destroy()),this.debugOverlayTexture&&this.debugOverlayTexture.destroy(),FSr(this.context),this.context.terrainUniformBuffer.destroy(),this.context.frameUniformBuffer.destroy(),this.cache){for(let n in this.cache){let a=this.cache[n];a!=null&&a.program&&this.context.gl.deleteProgram(a.program)}this.cache={}}this.context&&this.context.setDefault()}overLimit(){let{drawingBufferWidth:t,drawingBufferHeight:r}=this.context.gl;return this.width!==t||this.height!==r}},w3.MAX_TEXTURE_POOL_SIZE_PER_BUCKET=50,w3),Ylt=class extends Error{constructor(e,t){var r;super("WebGL2 is required to display this map. We are sorry, but it seems that your browser does not support WebGL2, a technology for rendering 3D graphics on the web. Read more on https://wiki.openstreetmap.org/wiki/This_map_requires_WebGL"),this.name="GPUInitializationError",this.requestedAttributes=e,this.statusMessage=(r=t==null?void 0:t.statusMessage)!=null?r:null}};Xlt=class{constructor(e){this._getHashParams=()=>new URLSearchParams(window.location.hash.replace("#","")),this._getCurrentHash=()=>{var r;let t=this._getHashParams();return this._hashName?(t.get(this._hashName)||"").split("/"):((r=[...t.keys()][0])!=null?r:"").split("/")},this._onHashChange=()=>{let t=this._getCurrentHash();if(!this._isValidHash(t))return!1;let r=this._map.dragRotate.isEnabled()&&this._map.touchZoomRotate.isEnabled()?+(t[3]||0):this._map.getBearing();return this._map.jumpTo({center:[+t[2],+t[1]],zoom:+t[0],bearing:r,pitch:+(t[4]||0)}),!0},this._updateHashUnthrottled=()=>{let t=window.location.href.replace(/(#.*)?$/,this.getHashString());window.history.replaceState(window.history.state,null,t)},this._removeHash=()=>{let t=this._getHashParams();if(this._hashName)t.delete(this._hashName);else{let a=Array.from(t.keys());a.length>0&&t.delete(a[0])}let r=decodeURIComponent(t.toString()).replace(/=&/g,"&").replace(/=$/g,""),i=r?`#${r}`:"",n=window.location.href.replace(/(#.+)?$/,i);n=n.replace("&&","&"),window.history.replaceState(window.history.state,null,n)},this._updateHash=Uoe(this._updateHashUnthrottled,300),this._hashName=e&&encodeURIComponent(e)}addTo(e){return this._map=e,addEventListener("hashchange",this._onHashChange,!1),this._map.on("moveend",this._updateHash),this}remove(){return removeEventListener("hashchange",this._onHashChange,!1),this._map.off("moveend",this._updateHash),clearTimeout(this._updateHash()),this._removeHash(),delete this._map,this}getHashString(e){let t=this._map.getCenter(),r=Math.round(this._map.getZoom()*100)/100,i=10**Math.ceil((r*Math.LN2+Math.log(512/360/.5))/Math.LN10),n=Math.round(t.lng*i)/i,a=Math.round(t.lat*i)/i,o=this._map.getBearing(),s=this._map.getPitch(),l="";if(l+=e?`/${n}/${a}/${r}`:`${r}/${a}/${n}`,(o||s)&&(l+=`/${Math.round(o*10)/10}`),s&&(l+=`/${Math.round(s)}`),this._hashName){let u=this._getHashParams();return u.set(this._hashName,l),`#${decodeURIComponent(u.toString()).replace(/=&/g,"&").replace(/=$/g,"")}`}return`#${l}`}_isValidHash(e){if(e.length<3||e.some(n=>isNaN(+n)))return!1;try{new Js(+e[2],+e[1])}catch(n){return!1}let t=+e[0],r=+(e[3]||0),i=+(e[4]||0);return t>=this._map.getMinZoom()&&t<=this._map.getMaxZoom()&&r>=-180&&r<=180&&i>=this._map.getMinPitch()&&i<=this._map.getMaxPitch()}},QC={linearity:.3,easing:tq(0,0,.3,1)},hCr=Hs({deceleration:2500,maxSpeed:1400},QC),dCr=Hs({deceleration:20,maxSpeed:1400},QC),pCr=Hs({deceleration:1e3,maxSpeed:360},QC),vCr=Hs({deceleration:1e3,maxSpeed:90},QC),mCr=Hs({deceleration:1e3,maxSpeed:360},QC),yCr=class{constructor(e){this._map=e,this.clear()}clear(){this._inertiaBuffer=[]}record(e){this._drainInertiaBuffer(),this._inertiaBuffer.push({time:Ku(),settings:e})}_drainInertiaBuffer(){let e=this._inertiaBuffer,t=Ku();for(;e.length>0&&t-e[0].time>160;)e.shift()}_getVelocityEntries(){let e=this._inertiaBuffer,t=Ku()-60,r=Math.max(0,e.length-2);for(;r>0&&e[r-1].time>=t;)r--;return e.slice(r)}_onMoveEnd(e){this._drainInertiaBuffer();let t=this._getVelocityEntries();if(t.length<2){this.clear();return}let r={zoom:0,bearing:0,pitch:0,roll:0,pan:new Zr(0,0),pinchAround:void 0,around:void 0};for(let{settings:a}of t)a.around&&(r.around=a.around),a.pinchAround&&(r.pinchAround=a.pinchAround);for(let{settings:a}of t.slice(1))r.zoom+=a.zoomDelta||0,r.bearing+=a.bearingDelta||0,r.pitch+=a.pitchDelta||0,r.roll+=a.rollDelta||0,a.panDelta&&r.pan._add(a.panDelta);if(!r.pan.mag()&&!r.zoom&&!r.bearing&&!r.pitch&&!r.roll){this.clear();return}let i=Ku()-t[0].time,n={};if(r.pan.mag()){let a=jC(r.pan.mag(),i,Hs({},hCr,e||{})),o=r.pan.mult(a.amount/r.pan.mag()),s=this._map._camera.cameraHelper.handlePanInertia(o,this._map._camera.transform);n.center=s.easingCenter,n.offset=s.easingOffset,HC(n,a)}if(r.zoom){let a=jC(r.zoom,i,dCr);n.zoom=Vd(this._map.getZoom()+a.amount,this._map.getZoomSnap(),a.amount),HC(n,a)}if(r.bearing){let a=jC(r.bearing,i,pCr);n.bearing=this._map.getBearing()+Pl(a.amount,-179,179),HC(n,a)}if(r.pitch){let a=jC(r.pitch,i,vCr);n.pitch=this._map.getPitch()+a.amount,HC(n,a)}if(r.roll){let a=jC(r.roll,i,mCr);n.roll=this._map.getRoll()+Pl(a.amount,-179,179),HC(n,a)}if(n.zoom||n.bearing){let a=r.pinchAround===void 0?r.around:r.pinchAround;n.around=a?this._map.unproject(a):this._map.getCenter()}return this.clear(),Hs(n,{noMoveStart:!0})}};gCr=class{constructor(e,t){this._map=e,this._clickTolerance=t.clickTolerance}reset(){delete this._mousedownPos}wheel(e){return this._firePreventable(new Fst(this._map,e))}mousedown(e,t){return this._mousedownPos=t,this._firePreventable(new Hd(e.type,this._map,e))}mouseup(e){this._map.fire(new Hd(e.type,this._map,e))}click(e,t){this._mousedownPos&&this._mousedownPos.dist(t)>=this._clickTolerance||this._map.fire(new Hd(e.type,this._map,e))}dblclick(e){return this._firePreventable(new Hd(e.type,this._map,e))}mouseover(e){this._map.fire(new Hd(e.type,this._map,e))}mouseout(e){this._map.fire(new Hd(e.type,this._map,e))}touchstart(e){return this._firePreventable(new YC(e.type,this._map,e))}touchmove(e){this._map.fire(new YC(e.type,this._map,e))}touchend(e){this._map.fire(new YC(e.type,this._map,e))}touchcancel(e){this._map.fire(new YC(e.type,this._map,e))}_firePreventable(e){if(this._map.fire(e),e.defaultPrevented)return{}}isEnabled(){return!0}isActive(){return!1}enable(){}disable(){}},xCr=class{constructor(e,t){this._map=e,this._clickTolerance=t.clickTolerance}reset(){this._delayContextMenu=!1,this._ignoreContextMenu=!0,delete this._contextMenuEvent,this._clearLongPress(),this._touchActive=!1}mousemove(e){this._map.fire(new Hd(e.type,this._map,e))}mousedown(){this._delayContextMenu=!0,this._ignoreContextMenu=!1}mouseup(){this._delayContextMenu=!1,this._contextMenuEvent&&(this._map.fire(new Hd("contextmenu",this._map,this._contextMenuEvent)),delete this._contextMenuEvent)}touchstart(e,t,r){if(this._clearLongPress(),this._touchActive=r.length>0,r.length!==1)return;this._longPressStart=t[0];let i=r[0];this._longPressTimer=setTimeout(()=>{this._longPressTimer=void 0;let n=new MouseEvent("contextmenu",{clientX:i.clientX,clientY:i.clientY,button:2,bubbles:!0,cancelable:!0});this._map.fire(new Hd("contextmenu",this._map,n))},500)}touchmove(e,t,r){this._longPressTimer&&(r.length!==1||!this._longPressStart||t[0].dist(this._longPressStart)>this._clickTolerance)&&this._clearLongPress()}touchend(){this._touchActive=!1,this._clearLongPress()}touchcancel(){this._touchActive=!1,this._clearLongPress()}_clearLongPress(){this._longPressTimer&&(this._longPressTimer=(clearTimeout(this._longPressTimer),void 0)),this._longPressStart=void 0}contextmenu(e){if(this._touchActive){e.preventDefault();return}this._delayContextMenu?this._contextMenuEvent=e:this._ignoreContextMenu||this._map.fire(new Hd(e.type,this._map,e)),this._map.listens("contextmenu")&&e.preventDefault()}isEnabled(){return!0}isActive(){return!1}enable(){}disable(){}},Zlt=class{constructor(e,t,r){this._map=e,this._tr=r,this._el=e.getCanvasContainer(),this._container=e.getContainer(),this._clickTolerance=t.clickTolerance||1,t.boxZoom&&typeof t.boxZoom=="object"&&(this._boxZoomEnd=t.boxZoom.boxZoomEnd)}isEnabled(){return!!this._enabled}isActive(){return!!this._active}enable(){this.isEnabled()||(this._enabled=!0)}disable(){this.isEnabled()&&(this._enabled=!1)}mousedown(e,t){this.isEnabled()&&e.shiftKey&&e.button===0&&(Cl.disableDrag(),this._startPos=this._lastPos=t,this._active=!0)}mousemoveWindow(e,t){if(!this._active)return;let r=t;if(this._lastPos.equals(r)||!this._box&&r.dist(this._startPos)n.fitScreenCoordinates(r,i,this._tr.bearing,{linear:!0})}}}keydown(e){this._active&&e.keyCode===27&&(this.reset(),this._fireEvent("boxzoomcancel",e))}reset(){this._active=!1,this._container.classList.remove("maplibregl-crosshair"),this._box&&(this._box=(this._box.remove(),null)),Cl.enableDrag(),delete this._startPos,delete this._lastPos}_fireEvent(e,t){return this._map.fire(new noe(e,{originalEvent:t}))}};_Cr=class{constructor(e){this.reset(),this.numTouches=e.numTouches}reset(){delete this.centroid,delete this.startTime,delete this.touches,this.aborted=!1}touchstart(e,t,r){(this.centroid||r.length>this.numTouches)&&(this.aborted=!0),!this.aborted&&(this.startTime===void 0&&(this.startTime=e.timeStamp),r.length===this.numTouches&&(this.centroid=bCr(t),this.touches=yoe(r,t)))}touchmove(e,t,r){if(this.aborted||!this.centroid)return;let i=yoe(r,t);for(let n in this.touches){let a=this.touches[n],o=i[n];(!o||o.dist(a)>30)&&(this.aborted=!0)}}touchend(e,t,r){if((!this.centroid||e.timeStamp-this.startTime>500)&&(this.aborted=!0),r.length===0){let i=!this.aborted&&this.centroid;if(this.reset(),i)return i}}},goe=class{constructor(e){this.singleTap=new _Cr(e),this.numTaps=e.numTaps,this.reset()}reset(){this.lastTime=1/0,delete this.lastTap,this.count=0,this.singleTap.reset()}touchstart(e,t,r){this.singleTap.touchstart(e,t,r)}touchmove(e,t,r){this.singleTap.touchmove(e,t,r)}touchend(e,t,r){let i=this.singleTap.touchend(e,t,r);if(i){let n=e.timeStamp-this.lastTime<500,a=!this.lastTap||this.lastTap.dist(i)<30;if((!n||!a)&&this.reset(),this.count++,this.lastTime=e.timeStamp,this.lastTap=i,this.count===this.numTaps)return this.reset(),i}}},wCr=class{constructor(e,t){this._tr=t,this._zoomIn=new goe({numTouches:1,numTaps:2}),this._zoomOut=new goe({numTouches:2,numTaps:1}),this.reset()}reset(){this._active=!1,this._zoomIn.reset(),this._zoomOut.reset()}touchstart(e,t,r){this._zoomIn.touchstart(e,t,r),this._zoomOut.touchstart(e,t,r)}touchmove(e,t,r){this._zoomIn.touchmove(e,t,r),this._zoomOut.touchmove(e,t,r)}touchend(e,t,r){let i=this._zoomIn.touchend(e,t,r),n=this._zoomOut.touchend(e,t,r),a=this._tr;if(i)return this._active=!0,e.preventDefault(),setTimeout(()=>this.reset(),0),{cameraAnimation:o=>o.easeTo({duration:300,zoom:Vd(a.zoom+1,o.getZoomSnap()),around:a.transform.isPointOnMapSurface(i)?a.unproject(i):void 0},{originalEvent:e})};if(n)return this._active=!0,e.preventDefault(),setTimeout(()=>this.reset(),0),{cameraAnimation:o=>o.easeTo({duration:300,zoom:Vd(a.zoom-1,o.getZoomSnap()),around:a.transform.isPointOnMapSurface(n)?a.unproject(n):void 0},{originalEvent:e})}}touchcancel(){this.reset()}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}},eD=class{constructor(e){this._enabled=!!e.enable,this._moveStateManager=e.moveStateManager,this._clickTolerance=e.clickTolerance||1,this._moveFunction=e.move,this._activateOnStart=!!e.activateOnStart,e.assignEvents(this),this.reset()}reset(e){this._active=!1,this._moved=!1,delete this._lastPoint,this._moveStateManager.endMove(e)}_move(...e){let t=this._moveFunction(...e);if(t.bearingDelta||t.pitchDelta||t.rollDelta||t.around||t.panDelta)return this._active=!0,t}dragStart(e,t){this.isEnabled()&&!this._lastPoint&&this._moveStateManager.isValidStartEvent(e)&&(this._moveStateManager.startMove(e),this._lastPoint=Array.isArray(t)?t[0]:t,this._activateOnStart&&this._lastPoint&&(this._active=!0))}dragMove(e,t){if(!this.isEnabled())return;let r=this._lastPoint;if(!r)return;if(e.preventDefault(),!this._moveStateManager.isValidMoveEvent(e)){this.reset(e);return}let i=Array.isArray(t)?t[0]:t;if(!(!this._moved&&i.dist(r)!0}),t=new MCr){this.mouseMoveStateManager=e,this.oneFingerTouchMoveStateManager=t}_executeRelevantHandler(e,t,r){if(e instanceof MouseEvent)return t(e);if(typeof TouchEvent<"u"&&e instanceof TouchEvent)return r(e)}startMove(e){this._executeRelevantHandler(e,t=>{this.mouseMoveStateManager.startMove(t)},t=>{this.oneFingerTouchMoveStateManager.startMove(t)})}endMove(e){this._executeRelevantHandler(e,t=>{this.mouseMoveStateManager.endMove(t)},t=>{this.oneFingerTouchMoveStateManager.endMove(t)})}isValidStartEvent(e){return!!this._executeRelevantHandler(e,t=>this.mouseMoveStateManager.isValidStartEvent(t),t=>this.oneFingerTouchMoveStateManager.isValidStartEvent(t))}isValidMoveEvent(e){return!!this._executeRelevantHandler(e,t=>this.mouseMoveStateManager.isValidMoveEvent(t),t=>this.oneFingerTouchMoveStateManager.isValidMoveEvent(t))}isValidEndEvent(e){return!!this._executeRelevantHandler(e,t=>this.mouseMoveStateManager.isValidEndEvent(t),t=>this.oneFingerTouchMoveStateManager.isValidEndEvent(t))}},yO=e=>{e.mousedown=e.dragStart,e.mousemoveWindow=e.dragMove,e.mouseup=e.dragEnd,e.contextmenu=t=>{t.preventDefault()}};FCr=class{constructor(e,t){this._clickTolerance=e.clickTolerance||1,this._map=t,this.reset()}reset(){this._active=!1,this._touches={},this._sum=new Zr(0,0)}_shouldBePrevented(e){return e<(this._map.cooperativeGestures.isEnabled()?2:1)}touchstart(e,t,r){return this._calculateTransform(e,t,r)}touchmove(e,t,r){if(this._active){if(this._shouldBePrevented(r.length)){this._map.cooperativeGestures.notifyGestureBlocked("touch_pan",e);return}return e.preventDefault(),this._calculateTransform(e,t,r)}}touchend(e,t,r){this._calculateTransform(e,t,r),this._active&&this._shouldBePrevented(r.length)&&this.reset()}touchcancel(){this.reset()}_calculateTransform(e,t,r){r.length>0&&(this._active=!0);let i=yoe(r,t),n=new Zr(0,0),a=new Zr(0,0),o=0;for(let l in i){let u=i[l],f=this._touches[l];f&&(n._add(u),a._add(u.sub(f)),o++,i[l]=u)}if(this._touches=i,this._shouldBePrevented(o)||!a.mag())return;let s=a.div(o);if(this._sum._add(s),!(this._sum.mag()=2,n=t.mag()>=2;if(!i&&!n)return;if(!i||!n)return this._firstMove===void 0&&(this._firstMove=r),r-this._firstMove<100&&void 0;let a=e.y>0==t.y>0;return eoe(e)&&eoe(t)&&a}},LCr={panStep:100,bearingStep:15,pitchStep:10},eut=class{constructor(e,t){this._tr=t;let r=LCr;this._panStep=r.panStep,this._bearingStep=r.bearingStep,this._pitchStep=r.pitchStep,this._rotationDisabled=!1}reset(){this._active=!1}keydown(e){if(e.altKey||e.ctrlKey||e.metaKey)return;let t=0,r=0,i=0,n=0,a=0;switch(e.keyCode){case 61:case 107:case 171:case 187:t=1;break;case 189:case 109:case 173:t=-1;break;case 37:e.shiftKey?r=-1:(e.preventDefault(),n=-1);break;case 39:e.shiftKey?r=1:(e.preventDefault(),n=1);break;case 38:e.shiftKey?i=1:(e.preventDefault(),a=-1);break;case 40:e.shiftKey?i=-1:(e.preventDefault(),a=1);break;default:return}return this._rotationDisabled&&(r=0,i=0),{cameraAnimation:o=>{let s=this._tr;o.easeTo({duration:300,easeId:"keyboardHandler",easing:PCr,zoom:t?Vd(s.zoom+t*(e.shiftKey?2:1),o.getZoomSnap()):s.zoom,bearing:s.bearing+r*this._bearingStep,pitch:s.pitch+i*this._pitchStep,offset:[-n*this._panStep,-a*this._panStep],center:s.center},{originalEvent:e})}}}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}disableRotation(){this._rotationDisabled=!0}enableRotation(){this._rotationDisabled=!1}};Tst=4.000244140625,tut=class{constructor(e,t,r){this._onTimeout=i=>{this._type="wheel",this._delta-=this._lastValue,this._active||this._start(i)},this._map=e,this._tr=r,this._triggerRenderFrame=t,this._delta=0,this._defaultZoomRate=.01,this._wheelZoomRate=.0022222222222222222}setZoomRate(e){this._defaultZoomRate=e}setWheelZoomRate(e){this._wheelZoomRate=e}isEnabled(){return!!this._enabled}isActive(){return!!this._active||this._finishTimeout!==void 0}isZooming(){return!!this._zooming}enable(e){this.isEnabled()||(this._enabled=!0,this._aroundCenter=!!e&&e.around==="center")}disable(){this.isEnabled()&&(this._enabled=!1)}_shouldBePrevented(e){return this._map.cooperativeGestures.isEnabled()?!(e.ctrlKey||this._map.cooperativeGestures.isBypassed(e)):!1}wheel(e){if(!this.isEnabled())return;if(this._shouldBePrevented(e)){this._map.cooperativeGestures.notifyGestureBlocked("wheel_zoom",e);return}let t=e.deltaMode===WheelEvent.DOM_DELTA_LINE?e.deltaY*40:e.deltaY,r=Ku(),i=r-(this._lastWheelEventTime||0);this._lastWheelEventTime=r,t!==0&&t%Tst==0?this._type="wheel":t!==0&&Math.abs(t)<4?this._type="trackpad":i>400?(this._type=null,this._lastValue=t,this._timeout=setTimeout(this._onTimeout,40,e)):this._type||(this._type=Math.abs(i*t)<200?"trackpad":"wheel",this._timeout&&(clearTimeout(this._timeout),this._timeout=null,t+=this._lastValue)),e.shiftKey&&t&&(t/=4),this._type&&(this._lastWheelEvent=e,this._delta-=t,this._active||this._start(e)),e.preventDefault()}_start(e){if(!this._delta)return;this._needsRerender=!1,this._active=!0,this.isZooming()||(this._zooming=!0),this._finishTimeout&&(clearTimeout(this._finishTimeout),delete this._finishTimeout);let t=Cl.mousePos(this._map.getCanvas(),e),r=this._tr;this._aroundPoint=this._aroundCenter?r.transform.locationToScreenPoint(Js.convert(r.center)):t,this._needsRerender||(this._needsRerender=!0,this._triggerRenderFrame())}renderFrame(){if(!this._needsRerender||(this._needsRerender=!1,!this.isActive()))return;let e=this._tr.transform;if(typeof this._lastExpectedZoom=="number"){let o=e.zoom-this._lastExpectedZoom;typeof this._startZoom=="number"&&(this._startZoom+=o),typeof this._targetZoom=="number"&&(this._targetZoom+=o)}if(this._delta!==0){let o=this._type==="wheel"&&Math.abs(this._delta)>Tst?this._wheelZoomRate:this._defaultZoomRate,s=2/(1+Math.exp(-Math.abs(this._delta*o)));this._delta<0&&s!==0&&(s=1/s);let l=typeof this._targetZoom=="number"?ed(this._targetZoom):e.scale,u=e.applyConstrain(e.getCameraLngLat(),h0(l*s)).zoom,f=this._map.getZoomSnap();if(this._type==="wheel"&&f>0){let c=Vd(e.zoom,f);this._targetZoom=Vd(u,f,u-c)}else this._targetZoom=u;this._type==="wheel"&&(this._startZoom=e.zoom,this._easing=this._smoothOutEasing(200)),this._delta=0}let t=typeof this._targetZoom=="number"?this._targetZoom:e.zoom,r=this._startZoom,i=this._easing,n=!1,a;if(this._type==="wheel"&&r&&i){let o=Ku()-this._lastWheelEventTime,s=Math.min((o+5)/200,1),l=i(s);a=ec.number(r,t,l),s<1?this._needsRerender=!0:n=!0}else a=t,n=!0;return this._active=!0,n&&(this._active=!1,this._finishTimeout=setTimeout(()=>{this._zooming=!1,this._triggerRenderFrame(),delete this._targetZoom,delete this._lastExpectedZoom,delete this._finishTimeout},200)),this._lastExpectedZoom=a,{noInertia:!0,needsRenderFrame:!n,zoomDelta:a-e.zoom,around:this._aroundPoint,originalEvent:this._lastWheelEvent}}_smoothOutEasing(e){let t=rq;if(this._prevEase){let r=this._prevEase,i=(Ku()-r.start)/r.duration,n=r.easing(i+.01)-r.easing(i),a=.27/Math.sqrt(n*n+1e-4)*.01,o=Math.sqrt(.0729-a*a);t=tq(a,o,.25,1)}return this._prevEase={start:Ku(),duration:e,easing:t},t}reset(){this._active=!1,this._zooming=!1,delete this._targetZoom,delete this._lastExpectedZoom,this._finishTimeout&&(clearTimeout(this._finishTimeout),delete this._finishTimeout)}},rut=class{constructor(e,t){this._clickZoom=e,this._tapZoom=t}enable(){this._clickZoom.enable(),this._tapZoom.enable()}disable(){this._clickZoom.disable(),this._tapZoom.disable()}isEnabled(){return this._clickZoom.isEnabled()&&this._tapZoom.isEnabled()}isActive(){return this._clickZoom.isActive()||this._tapZoom.isActive()}},zCr=class{constructor(e,t){this._tr=t,this.reset()}reset(){this._active=!1}dblclick(e,t){return e.preventDefault(),{cameraAnimation:r=>{r.easeTo({duration:300,zoom:Vd(this._tr.zoom+(e.shiftKey?-1:1),r.getZoomSnap()),around:this._tr.transform.isPointOnMapSurface(t)?this._tr.unproject(t):void 0},{originalEvent:e})}}}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}},ICr=class{constructor(){this._tap=new goe({numTouches:1,numTaps:1}),this._zoomRate=1,this.reset()}setZoomRate(e){this._zoomRate=e!=null?e:1}reset(){this._active=!1,delete this._swipePoint,delete this._swipeTouch,delete this._tapTime,delete this._tapPoint,this._tap.reset()}touchstart(e,t,r){if(!this._swipePoint)if(!this._tapTime)this._tap.touchstart(e,t,r);else{let i=t[0],n=e.timeStamp-this._tapTime<500,a=this._tapPoint.dist(i)<30;!n||!a?this.reset():r.length>0&&(this._swipePoint=i,this._swipeTouch=r[0].identifier)}}touchmove(e,t,r){if(!this._tapTime)this._tap.touchmove(e,t,r);else if(this._swipePoint){if(r[0].identifier!==this._swipeTouch)return;let i=t[0],n=i.y-this._swipePoint.y;return this._swipePoint=i,e.preventDefault(),this._active=!0,{zoomDelta:n/128*this._zoomRate}}}touchend(e,t,r){if(this._tapTime)this._swipePoint&&r.length===0&&this.reset();else{let i=this._tap.touchend(e,t,r);i&&(this._tapTime=e.timeStamp,this._tapPoint=i)}}touchcancel(){this.reset()}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}},iut=class{constructor(e,t,r){this._el=e,this._mousePan=t,this._touchPan=r}enable(e){this._inertiaOptions=e||{},this._mousePan.enable(),this._touchPan.enable(),this._el.classList.add("maplibregl-touch-drag-pan")}disable(){this._mousePan.disable(),this._touchPan.disable(),this._el.classList.remove("maplibregl-touch-drag-pan")}isEnabled(){return this._mousePan.isEnabled()&&this._touchPan.isEnabled()}isActive(){return this._mousePan.isActive()||this._touchPan.isActive()}},nut=class{constructor(e,t,r,i){this._pitchWithRotate=e.pitchWithRotate,this._rollEnabled=e.rollEnabled,this._mouseRotate=t,this._mousePitch=r,this._mouseRoll=i}enable(){this._mouseRotate.enable(),this._pitchWithRotate&&this._mousePitch.enable(),this._rollEnabled&&this._mouseRoll.enable()}disable(){this._mouseRotate.disable(),this._mousePitch.disable(),this._mouseRoll.disable()}isEnabled(){return this._mouseRotate.isEnabled()&&(!this._pitchWithRotate||this._mousePitch.isEnabled())&&(!this._rollEnabled||this._mouseRoll.isEnabled())}isActive(){return this._mouseRotate.isActive()||this._mousePitch.isActive()||this._mouseRoll.isActive()}},aut=class{constructor(e,t,r,i){this._el=e,this._touchZoom=t,this._touchRotate=r,this._tapDragZoom=i,this._rotationDisabled=!1,this._enabled=!0}enable(e){this._touchZoom.enable(e),this._rotationDisabled||this._touchRotate.enable(e),this._tapDragZoom.enable(),this._el.classList.add("maplibregl-touch-zoom-rotate")}disable(){this._touchZoom.disable(),this._touchRotate.disable(),this._tapDragZoom.disable(),this._el.classList.remove("maplibregl-touch-zoom-rotate")}isEnabled(){return this._touchZoom.isEnabled()&&(this._rotationDisabled||this._touchRotate.isEnabled())&&this._tapDragZoom.isEnabled()}isActive(){return this._touchZoom.isActive()||this._touchRotate.isActive()||this._tapDragZoom.isActive()}setZoomRate(e){this._touchZoom.setZoomRate(e),this._tapDragZoom.setZoomRate(e)}setZoomThreshold(e){this._touchZoom.setZoomThreshold(e)}disableRotation(){this._rotationDisabled=!0,this._touchRotate.disable()}enableRotation(){this._rotationDisabled=!1,this._touchZoom.isEnabled()&&this._touchRotate.enable()}},out=class{constructor(e,t){this._bypassKey=navigator.userAgent.includes("Mac")?"metaKey":"ctrlKey",this._map=e,this._options=t,this._enabled=!1}isActive(){return!1}reset(){}_setupUI(){if(this._container)return;let e=this._map.getCanvasContainer();e.classList.add("maplibregl-cooperative-gestures"),this._container=Cl.create("div","maplibregl-cooperative-gesture-screen",e);let t=this._map._getUIString("CooperativeGesturesHandler.WindowsHelpText");this._bypassKey==="metaKey"&&(t=this._map._getUIString("CooperativeGesturesHandler.MacHelpText"));let r=this._map._getUIString("CooperativeGesturesHandler.MobileHelpText"),i=document.createElement("div");i.className="maplibregl-desktop-message",i.textContent=t,this._container.appendChild(i);let n=document.createElement("div");n.className="maplibregl-mobile-message",n.textContent=r,this._container.appendChild(n),this._container.setAttribute("aria-hidden","true")}_destroyUI(){this._container&&(this._container.remove(),this._map.getCanvasContainer().classList.remove("maplibregl-cooperative-gestures")),delete this._container}enable(){this._setupUI(),this._enabled=!0}disable(){this._enabled=!1,this._destroyUI()}isEnabled(){return this._enabled}isBypassed(e){return e[this._bypassKey]}notifyGestureBlocked(e,t){this._enabled&&(this._map.fire(new Uh("cooperativegestureprevented",{gestureType:e,originalEvent:t})),this._container.classList.add("maplibregl-show"),setTimeout(()=>{this._container.classList.remove("maplibregl-show")},100))}},RCr=class{constructor(e){this._camera=e}get transform(){return this._camera._requestedCameraState||this._camera.transform}get center(){return{lng:this.transform.center.lng,lat:this.transform.center.lat}}get zoom(){return this.transform.zoom}get pitch(){return this.transform.pitch}get bearing(){return this.transform.bearing}unproject(e){return this.transform.screenPointToLocation(Zr.convert(e),this._camera.terrain)}},Jq=e=>e.zoom||e.drag||e.roll||e.pitch||e.rotate,BCr=class extends Gd{};qCr=class{get _ownerDocument(){var e;return((e=this._el)==null?void 0:e.ownerDocument)||document}get _ownerWindow(){var e,t;return((t=(e=this._el)==null?void 0:e.ownerDocument)==null?void 0:t.defaultView)||window}constructor(e,t,r){this._terrainGesture={inFlight:!1,anchorElevation:null},this.handleWindowEvent=n=>{this.handleEvent(n,`${n.type}Window`)},this.handleEvent=(n,a)=>{if(n.type==="blur"){this.stop(!0);return}this._updatingCamera=!0;let o=n.type==="renderFrame"?void 0:n,s={needsRenderFrame:!1},l={},u={};for(let{handlerName:h,handler:d,allowed:p}of this._handlers){if(!d.isEnabled())continue;let v;if(this._blockedByActive(u,p,h))d.reset();else if(d[a||n.type]){if(Irt(n,a||n.type)){let y=Cl.mousePos(this._map.getCanvas(),n);v=d[a||n.type](n,y)}else if(zrt(n,a||n.type)){let y=n.touches,m=this._getMapTouches(y),w=Cl.touchPos(this._map.getCanvas(),m);v=d[a||n.type](n,w,m)}else Rrt(a||n.type)||(v=d[a||n.type](n));this.mergeHandlerResult(s,l,v,h,o),v!=null&&v.needsRenderFrame&&this._triggerRenderFrame()}(v||d.isActive())&&(u[h]=d)}let f={};for(let h in this._previousActiveHandlers)u[h]||(f[h]=o);this._previousActiveHandlers=u,(Object.keys(f).length||toe(s))&&(this._changes.push([s,l,f]),this._triggerRenderFrame()),(Object.keys(u).length||toe(s))&&this._camera.stop(!0),this._updatingCamera=!1;let{cameraAnimation:c}=s;c&&(this._inertia.clear(),this._fireEvents({},{},!0),this._changes=[],c(this._map))},this._map=e,this._camera=t,this._transformProvider=new RCr(this._camera),this._el=this._map.getCanvasContainer(),this._handlers=[],this._handlersById={},this._changes=[],this._inertia=new yCr(e),this._bearingSnap=r.bearingSnap,this._previousActiveHandlers={},this._eventsInProgress={},this._addDefaultHandlers(r);let i=this._el;this._listeners=[[i,"touchstart",{passive:!0}],[i,"touchmove",{passive:!1}],[i,"touchend",void 0],[i,"touchcancel",void 0],[i,"mousedown",void 0],[i,"mousemove",void 0],[i,"mouseup",void 0],[this._ownerDocument,"mousemove",{capture:!0}],[this._ownerDocument,"mouseup",void 0],[i,"mouseover",void 0],[i,"mouseout",void 0],[i,"dblclick",void 0],[i,"click",void 0],[i,"keydown",{capture:!1}],[i,"keyup",void 0],[i,"wheel",{passive:!1}],[i,"contextmenu",void 0],[this._ownerWindow,"blur",void 0]];for(let[n,a,o]of this._listeners)n.addEventListener(a,n===this._ownerDocument?this.handleWindowEvent:this.handleEvent,o)}destroy(){for(let[e,t,r]of this._listeners)e.removeEventListener(t,e===this._ownerDocument?this.handleWindowEvent:this.handleEvent,r)}_addDefaultHandlers(e){let t=this._map,r=t.getCanvasContainer();this._add("mapEvent",new gCr(t,e));let i=t.boxZoom=new Zlt(t,e,this._transformProvider);this._add("boxZoom",i),e.interactive&&e.boxZoom&&i.enable();let n=t.cooperativeGestures=new out(t,e.cooperativeGestures);this._add("cooperativeGestures",n),e.cooperativeGestures&&n.enable();let a=new wCr(t,this._transformProvider),o=new zCr(t,this._transformProvider);t.doubleClickZoom=new rut(o,a),this._add("tapZoom",a),this._add("clickZoom",o),e.interactive&&e.doubleClickZoom&&t.doubleClickZoom.enable();let s=new ICr;this._add("tapDragZoom",s);let l=t.touchPitch=new Qlt(t);this._add("touchPitch",l),e.interactive&&e.touchPitch&&t.touchPitch.enable(e.touchPitch);let u=()=>this._camera.transform.centerPoint,f=kCr(e,u),c=CCr(e),h=DCr(e,u);t.dragRotate=new nut(e,f,c,h),this._add("mouseRotate",f,["mousePitch"]),this._add("mousePitch",c,["mouseRotate","mouseRoll"]),this._add("mouseRoll",h,["mousePitch"]),e.interactive&&e.dragRotate&&t.dragRotate.enable();let d=ECr(e),p=new FCr(e,t);t.dragPan=new iut(r,d,p),this._add("mousePan",d),this._add("touchPan",p,["touchZoom","touchRotate"]),e.interactive&&e.dragPan&&t.dragPan.enable(e.dragPan);let v=new Jlt,y=new Klt;t.touchZoomRotate=new aut(r,y,v,s),this._add("touchRotate",v,["touchPan","touchZoom"]),this._add("touchZoom",y,["touchPan","touchRotate"]),e.interactive&&e.touchZoomRotate&&t.touchZoomRotate.enable(e.touchZoomRotate),this._add("blockableMapEvent",new xCr(t,e),["touchPan"]);let m=t.scrollZoom=new tut(t,()=>this._triggerRenderFrame(),this._transformProvider);this._add("scrollZoom",m,["mousePan"]),e.interactive&&e.scrollZoom&&t.scrollZoom.enable(e.scrollZoom);let w=t.keyboard=new eut(t,this._transformProvider);this._add("keyboard",w),e.interactive&&e.keyboard&&t.keyboard.enable()}_add(e,t,r){this._handlers.push({handlerName:e,handler:t,allowed:r}),this._handlersById[e]=t}stop(e){if(!this._updatingCamera){for(let{handler:t}of this._handlers)t.reset();this._inertia.clear(),this._fireEvents({},{},e),this._changes=[]}}isActive(){for(let{handler:e}of this._handlers)if(e.isActive())return!0;return!1}isZooming(){return!!this._eventsInProgress.zoom||this._map.scrollZoom.isZooming()}isRotating(){return!!this._eventsInProgress.rotate}isMoving(){return!!Jq(this._eventsInProgress)||this.isZooming()}_blockedByActive(e,t,r){for(let i in e)if(i!==r&&!(t!=null&&t.includes(i)))return!0;return!1}_getMapTouches(e){let t=[];for(let r of e){let i=r.target;this._el.contains(i)&&t.push(r)}return t}mergeHandlerResult(e,t,r,i,n){if(!r)return;Hs(e,r);let a={handlerName:i,originalEvent:r.originalEvent||n};r.zoomDelta!==void 0&&(t.zoom=a),r.panDelta!==void 0&&(t.drag=a),r.rollDelta!==void 0&&(t.roll=a),r.pitchDelta!==void 0&&(t.pitch=a),r.bearingDelta!==void 0&&(t.rotate=a)}_applyChanges(){let e={},t={},r={};for(let[i,n,a]of this._changes)i.panDelta&&(e.panDelta=(e.panDelta||new Zr(0,0))._add(i.panDelta)),i.zoomDelta&&(e.zoomDelta=(e.zoomDelta||0)+i.zoomDelta),i.bearingDelta&&(e.bearingDelta=(e.bearingDelta||0)+i.bearingDelta),i.pitchDelta&&(e.pitchDelta=(e.pitchDelta||0)+i.pitchDelta),i.rollDelta&&(e.rollDelta=(e.rollDelta||0)+i.rollDelta),i.around!==void 0&&(e.around=i.around),i.pinchAround!==void 0&&(e.pinchAround=i.pinchAround),i.noInertia&&(e.noInertia=i.noInertia),Hs(t,n),Hs(r,a);this._updateMapTransform(e,t,r),this._changes=[]}_updateMapTransform(e,t,r){let i=this._map.terrain;if(!toe(e)){this._fireEvents(t,r,!0);return}let n=this._camera.getTransformForUpdate();this._camera.stop(!0);let{panDelta:a,zoomDelta:o,bearingDelta:s,pitchDelta:l,rollDelta:u}=e,{around:f,aroundOnSurface:c}=this._resolveAround(e,i,n),h=i?this._terrainGestureElevation(i,f,c,n,t):void 0,d={panDelta:a,zoomDelta:o,rollDelta:u,pitchDelta:l,bearingDelta:s,around:f,aroundElevation:h};this._camera.cameraHelper.useGlobeControls&&!n.isPointOnMapSurface(f)&&(f=n.centerPoint);let p=this._computePreZoomAroundLoc(n,f,a,h);this._handleMapControls({terrain:i,tr:n,deltasForHelper:d,preZoomAroundLoc:p,combinedEventsInProgress:t,panDelta:a}),this._camera.applyUpdatedTransform(n),this._map._update(),e.noInertia||this._inertia.record(e),this._fireEvents(t,r,!0)}_resolveAround(e,t,r){let i=e.pinchAround===void 0?e.around:e.pinchAround;return i||(i=this._camera.transform.centerPoint),t&&!r.isPointOnMapSurface(i)?{around:r.centerPoint,aroundOnSurface:!1}:{around:i,aroundOnSurface:!0}}_terrainGestureElevation(e,t,r,i,n){if(!r)return;if(this._terrainGesture.anchorElevation===null&&(n.drag||n.zoom)){let o=i.screenTerrainPointToMercatorCoordinate(t,e);this._terrainGesture.anchorElevation=o?o.z:void 0}let a=this._terrainGesture.anchorElevation;if(a!=null&&!(t.distSqr(i.centerPoint)<.01)&&!(a-i.elevation>=.9*(i.getCameraAltitude()-i.elevation)))return a}_computePreZoomAroundLoc(e,t,r,i){if(t.distSqr(e.centerPoint)<.01)return e.center;let n=r?t.sub(r):t;return i===void 0?e.screenPointToLocation(n):e.screenPointToLocationAtElevation(n,i)}_handleMapControls({terrain:e,tr:t,deltasForHelper:r,preZoomAroundLoc:i,combinedEventsInProgress:n,panDelta:a}){let o=this._camera.cameraHelper;if(o.handleMapControlsRollPitchBearingZoom(r,t),!e&&!o.useGlobeControls&&!t.isPointOnMapSurface(r.around)){a&&t.setCenter(t.screenPointToLocation(t.centerPoint.sub(a)));return}if(!e){o.handleMapControlsPan(r,t,i);return}if(!this._terrainGesture.inFlight){this._terrainGesture.inFlight=!0,this._camera.elevationFreeze=!0,o.handleMapControlsPan(r,t,i);return}if(!o.useGlobeControls&&r.aroundElevation===void 0&&n.drag&&a){t.setCenter(t.screenPointToLocation(t.centerPoint.sub(a)));return}o.handleMapControlsPan(r,t,i)}_fireEvents(e,t,r){let i=Jq(this._eventsInProgress),n=Jq(e),a={};for(let f in e){let{originalEvent:c}=e[f];this._eventsInProgress[f]||(a[`${f}start`]=c),this._eventsInProgress[f]=e[f]}!i&&n&&this._fireEvent("movestart",n.originalEvent);for(let f in a)this._fireEvent(f,a[f]);n&&this._fireEvent("move",n.originalEvent);for(let f in e){let{originalEvent:c}=e[f];this._fireEvent(f,c)}let o={},s;for(let f in this._eventsInProgress){let{handlerName:c,originalEvent:h}=this._eventsInProgress[f];this._handlersById[c].isActive()||(delete this._eventsInProgress[f],s=t[c]||h,o[`${f}end`]=s)}for(let f in o)this._fireEvent(f,o[f]);let l=Jq(this._eventsInProgress),u=(i||n)&&!l;if(u&&this._terrainGesture.inFlight){this._camera.elevationFreeze=!1,this._terrainGesture={inFlight:!1,anchorElevation:null};let f=this._camera.getTransformForUpdate();this._map.getCenterClampedToGround()&&f.recalculateZoomAndCenter(this._map.terrain),this._camera.applyUpdatedTransform(f)}if(r&&u){this._updatingCamera=!0;let f=this._inertia._onMoveEnd(this._map.dragPan._inertiaOptions),c=h=>h!==0&&-this._bearingSnap{delete this._frameId,this.handleEvent(new BCr("renderFrame",{timeStamp:e})),this._applyChanges()})}_triggerRenderFrame(){this._frameId===void 0&&(this._frameId=this._requestFrame())}},OCr=class extends ih{constructor(e){var t,r,i;super(),this._renderFrameCallback=()=>{let n=Math.min((Ku()-this._easeStart)/this._easeOptions.duration,1);this._onEaseFrame(this._easeOptions.easing(n)),n<1&&this._easeFrameId?this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback):this.stop()},this.transform=new uO,this.cameraHelper=new fO,e.minZoom!==void 0&&this.transform.setMinZoom(e.minZoom),e.maxZoom!==void 0&&this.transform.setMaxZoom(e.maxZoom),e.minPitch!==void 0&&this.transform.setMinPitch(e.minPitch),e.maxPitch!==void 0&&this.transform.setMaxPitch(e.maxPitch),e.renderWorldCopies!==void 0&&this.transform.setRenderWorldCopies(e.renderWorldCopies),e.transformConstrain!==null&&this.transform.setConstrainOverride(e.transformConstrain),this._moving=!1,this._zooming=!1,this._bearingSnap=e.bearingSnap,this._zoomSnap=e.zoomSnap,this._requestRenderFrame=e.requestRenderFrame,this._cancelRenderFrame=e.cancelRenderFrame,this.terrain=e.terrain,this._centerClampedToGround=(t=e.centerClampedToGround)!=null?t:!0,this.transformCameraUpdate=(r=e.transformCameraUpdate)!=null?r:null,this._stopHandlers=(i=e.stopHandlers)!=null?i:(()=>{}),this.on("moveend",()=>{delete this._requestedCameraState})}setTerrain(e){this.terrain=e,this.applyTerrainChange()}migrateProjection(e,t){if(e.apply(this.transform,!0),this.transform=e,this.cameraHelper=t,this._requestedCameraState){let r=e.clone();r.apply(this._requestedCameraState,!0),this._requestedCameraState=r}}getCenter(){return new Js(this.transform.center.lng,this.transform.center.lat)}setCenter(e,t){return this.jumpTo({center:e},t)}getCenterElevation(){return this.transform.elevation}setCenterElevation(e,t){return this.jumpTo({elevation:e},t),this}getCenterClampedToGround(){return this._centerClampedToGround}setCenterClampedToGround(e){this._centerClampedToGround=e}panBy(e,t,r){return e=Zr.convert(e).mult(-1),this.panTo(this.transform.center,Hs({offset:e},t),r)}panTo(e,t,r){return this.easeTo(Hs({center:e},t),r)}getZoom(){return this.transform.zoom}setZoom(e,t){return this.jumpTo({zoom:e},t),this}zoomTo(e,t,r){return this.easeTo(Hs({zoom:e},t),r)}zoomIn(e,t){return this.zoomTo(Vd(this.getZoom()+1,this._zoomSnap),e,t),this}zoomOut(e,t){return this.zoomTo(Vd(this.getZoom()-1,this._zoomSnap),e,t),this}getVerticalFieldOfView(){return this.transform.fov}setVerticalFieldOfView(e,t){return e!=this.transform.fov&&(this.applyTransformChange(r=>r.setFov(e)),this.fire(new ol("movestart",t)).fire(new ol("move",t)).fire(new ol("moveend",t))),this}getBearing(){return this.transform.bearing}setZoomSnap(e){return this._zoomSnap=e,this}getZoomSnap(){return this._zoomSnap}setBearing(e,t){return this.jumpTo({bearing:e},t),this}getPadding(){return this.transform.padding}setPadding(e,t){return this.jumpTo({padding:e},t),this}rotateTo(e,t,r){return this.easeTo(Hs({bearing:e},t),r)}resetNorth(e,t){return this.rotateTo(0,Hs({duration:1e3},e),t),this}resetNorthPitch(e,t){return this.easeTo(Hs({bearing:0,pitch:0,roll:0,duration:1e3},e),t),this}snapToNorth(e,t){return Math.abs(this.getBearing()){p.easeFunc(v),this.terrain&&!e.freezeElevation&&this._updateElevation(v,r),this.applyUpdatedTransform(r),this._fireMoveEvents(t)},v=>{this.terrain&&e.freezeElevation?this._finalizeElevation():this.elevationFreeze=!1,this._afterEase(t,v)},e),this}_prepareEase(e,t,r={}){this._moving=!0,!t&&!r.moving&&this.fire(new ol("movestart",e)),this._zooming&&!r.zooming&&this.fire(new ol("zoomstart",e)),this._rotating&&!r.rotating&&this.fire(new ol("rotatestart",e)),this._pitching&&!r.pitching&&this.fire(new ol("pitchstart",e)),this._rolling&&!r.rolling&&this.fire(new ol("rollstart",e))}_prepareElevation(e,t){this._elevationCenter=e,this._elevationStart=t.elevation,this._elevationTarget=this.terrain.getElevationForLngLat(e,t),this.elevationFreeze=!0}_updateElevation(e,t){(this._elevationStart===void 0||this._elevationCenter===void 0)&&this._prepareElevation(t.center,t),t.setMinElevationForCurrentTile(this.terrain.getMinTileElevationForLngLatZoom(this._elevationCenter,t.tileZoom));let r=this.terrain.getElevationForLngLat(this._elevationCenter,t);if(e<1&&r!==this._elevationTarget){let i=this._elevationTarget-this._elevationStart,n=(r-(i*e+this._elevationStart))/(1-e);this._elevationStart+=e*(i-n),this._elevationTarget=r}t.setElevation(ec.number(this._elevationStart,this._elevationTarget,e))}_finalizeElevation(){this.elevationFreeze=!1,this.getCenterClampedToGround()&&this.transform.recalculateZoomAndCenter(this.terrain)}applyTerrainChange(){if(this.elevationFreeze)return;let e=this.transform;e.setMinElevationForCurrentTile(this.terrain?this.terrain.getMinTileElevationForLngLatZoom(e.center,e.tileZoom):0),this.getCenterClampedToGround()&&e.setElevation(this.terrain?this.terrain.getElevationForLngLat(e.center,e):0)}getTransformForUpdate(){return!this.transformCameraUpdate&&!this.terrain?this.transform:(this._requestedCameraState||(this._requestedCameraState=this.transform.clone()),this._requestedCameraState)}_elevateCameraIfInsideTerrain(e){if(!this.terrain&&e.elevation>=0&&e.pitch<=90)return{};let t=e.getCameraLngLat(),r=e.getCameraAltitude(),i=this.terrain?this.terrain.getElevationForLngLatZoom(t,e.zoom):0;if(rthis._elevateCameraIfInsideTerrain(i)),this.transformCameraUpdate&&t.push(i=>this.transformCameraUpdate(i)),!t.length)return;let r=e.clone();for(let i of t){let n=r.clone(),{center:a,zoom:o,roll:s,pitch:l,bearing:u,elevation:f}=i(n);a&&n.setCenter(a),f!==void 0&&n.setElevation(f),o!==void 0&&n.setZoom(o),s!==void 0&&n.setRoll(s),l!==void 0&&n.setPitch(l),u!==void 0&&n.setBearing(u),r.apply(n,!1)}this.transform.apply(r,!1)}applyTransformChange(e){let t=this._requestedCameraState!==void 0,r=this.getTransformForUpdate();e(r),this.applyUpdatedTransform(r),t||delete this._requestedCameraState}_fireMoveEvents(e){this.fire(new ol("move",e)),this._zooming&&this.fire(new ol("zoom",e)),this._rotating&&this.fire(new ol("rotate",e)),this._pitching&&this.fire(new ol("pitch",e)),this._rolling&&this.fire(new ol("roll",e))}_afterEase(e,t){if(this._easeId&&t&&this._easeId===t)return;delete this._easeId;let r=this._zooming,i=this._rotating,n=this._pitching,a=this._rolling;this._moving=!1,this._zooming=!1,this._rotating=!1,this._pitching=!1,this._rolling=!1,this._padding=!1,r&&this.fire(new ol("zoomend",e)),i&&this.fire(new ol("rotateend",e)),n&&this.fire(new ol("pitchend",e)),a&&this.fire(new ol("rollend",e)),this.fire(new ol("moveend",e))}flyTo(e,t){if(!e.essential&&jd.prefersReducedMotion){let k=$5(e,["center","zoom","bearing","pitch","roll","elevation","padding"]);return this.jumpTo(k,t)}this.stop(),e=Hs({offset:[0,0],speed:1.2,curve:1.42,easing:rq},e),e.zoom!==void 0&&this._zoomSnap&&(e.zoom=Vd(e.zoom,this._zoomSnap));let r=this.getTransformForUpdate(),i=r.bearing,n=r.pitch,a=r.roll,o=r.padding,s=e.bearing===void 0?i:this._normalizeBearing(e.bearing,i),l=e.pitch===void 0?n:+e.pitch,u=e.roll===void 0?a:this._normalizeBearing(e.roll,a),f=e.padding===void 0?r.padding:e.padding,c=Zr.convert(e.offset),h=r.centerPoint.add(c),d=r.screenPointToLocation(h),p=this.cameraHelper.handleFlyTo(r,{bearing:s,pitch:l,roll:u,padding:f,locationAtOffset:d,offsetAsPoint:c,center:e.center,minZoom:e.minZoom,zoom:e.zoom}),v=e.curve,y=Math.max(r.width,r.height),m=y/p.scaleOfZoom,w=p.pixelPathLength,_=y/p.scaleOfMinZoom;v=Math.min(v,Math.sqrt(_/w*2));let b=v*v;function M(k){let D=(m*m-y*y+(k?-1:1)*b*b*w*w)/(2*(k?m:y)*b*w);return Math.log(Math.sqrt(D*D+1)-D)}function x(k){return(Math.exp(k)-Math.exp(-k))/2}function A(k){return(Math.exp(k)+Math.exp(-k))/2}function T(k){return x(k)/A(k)}let g=M(!1),E=function(k){return A(g)/A(g+v*k)},S=function(k){return y*((A(g)*T(g+v*k)-x(g))/b)/w},C=(M(!0)-g)/v;if(Math.abs(w)<2e-6||!isFinite(C)){if(Math.abs(y-m)<1e-6)return this.easeTo(e,t);let k=m0,E=D=>Math.exp(k*v*D)}if(e.duration!==void 0)e.duration=+e.duration;else{let k=e.screenSpeed===void 0?+e.speed:+e.screenSpeed/v;e.duration=1e3*C/k}return e.maxDuration&&e.duration>e.maxDuration&&(e.duration=0),this._zooming=!0,this._rotating=i!==s,this._pitching=l!==n,this._rolling=u!==a,this._padding=!r.isPaddingEqual(f),this._prepareEase(t,!1),this.terrain&&this._prepareElevation(p.targetCenter,r),this._ease(k=>{let D=k*C,L=1/E(D),P=S(D);this._rotating&&r.setBearing(ec.number(i,s,k)),this._pitching&&r.setPitch(ec.number(n,l,k)),this._rolling&&r.setRoll(ec.number(a,u,k)),this._padding&&(r.interpolatePadding(o,f,k),h=r.centerPoint.add(c)),p.easeFunc(k,L,P,h),this.terrain&&!e.freezeElevation&&this._updateElevation(k,r),this.applyUpdatedTransform(r),this._fireMoveEvents(t)},()=>{this.terrain&&e.freezeElevation?this._finalizeElevation():this.elevationFreeze=!1,this._afterEase(t)},e),this}isEasing(){return!!this._easeFrameId}stop(e){return this._stop(e)}_stop(e,t){if(this._easeFrameId&&(this._cancelRenderFrame(this._easeFrameId),delete this._easeFrameId,delete this._onEaseFrame),this._onEaseEnd){let r=this._onEaseEnd;delete this._onEaseEnd,r.call(this,t)}return e||this._stopHandlers(),this}_ease(e,t,r){r.animate===!1||r.duration===0?(e(1),t()):(this._easeStart=Ku(),this._easeOptions=r,this._onEaseFrame=e,this._onEaseEnd=t,this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback))}_normalizeBearing(e,t){e=wp(e,-180,180);let r=Math.abs(e-t);return Math.abs(e-360-t)MapLibre'},lut=class{constructor(e=sut){this._toggleAttribution=()=>{this._container.classList.contains("maplibregl-compact")&&(this._container.classList.contains("maplibregl-compact-show")?(this._container.setAttribute("open",""),this._container.classList.remove("maplibregl-compact-show")):(this._container.classList.add("maplibregl-compact-show"),this._container.removeAttribute("open")))},this._updateData=t=>{t&&(t.type==="terrain"||t.dataType==="style"||t.dataType==="source"&&(t.sourceDataType==="metadata"||t.sourceDataType==="visibility"))&&this._updateAttributions()},this._updateCompact=()=>{this._map.getCanvasContainer().offsetWidth<=640||this._compact?this._compact===!1?this._container.setAttribute("open",""):!this._container.classList.contains("maplibregl-compact")&&!this._container.classList.contains("maplibregl-attrib-empty")&&(this._container.setAttribute("open",""),this._container.classList.add("maplibregl-compact","maplibregl-compact-show")):(this._container.setAttribute("open",""),this._container.classList.contains("maplibregl-compact")&&this._container.classList.remove("maplibregl-compact","maplibregl-compact-show"))},this._updateCompactMinimize=()=>{this._container.classList.contains("maplibregl-compact")&&this._container.classList.contains("maplibregl-compact-show")&&this._container.classList.remove("maplibregl-compact-show")},this.options=e}getDefaultPosition(){return"bottom-right"}onAdd(e){return this._map=e,this._compact=this.options.compact,this._container=Cl.create("details","maplibregl-ctrl maplibregl-ctrl-attrib"),this._compactButton=Cl.create("summary","maplibregl-ctrl-attrib-button",this._container),this._compactButton.addEventListener("click",this._toggleAttribution),this._setElementTitle(this._compactButton,"ToggleAttribution"),this._innerContainer=Cl.create("div","maplibregl-ctrl-attrib-inner",this._container),this._updateAttributions(),this._updateCompact(),this._map.on("styledata",this._updateData),this._map.on("sourcedata",this._updateData),this._map.on("terrain",this._updateData),this._map.on("resize",this._updateCompact),this._map.on("drag",this._updateCompactMinimize),this._container}onRemove(){this._container.remove(),this._map.off("styledata",this._updateData),this._map.off("sourcedata",this._updateData),this._map.off("terrain",this._updateData),this._map.off("resize",this._updateCompact),this._map.off("drag",this._updateCompactMinimize),this._map=void 0,this._compact=void 0,this._attribHTML=void 0}_setElementTitle(e,t){let r=this._map._getUIString(`AttributionControl.${t}`);e.title=r,e.setAttribute("aria-label",r)}_updateAttributions(){if(!this._map.style)return;let e=[];if(this.options.customAttribution&&(Array.isArray(this.options.customAttribution)?e=e.concat(this.options.customAttribution.map(i=>typeof i=="string"?i:"")):typeof this.options.customAttribution=="string"&&e.push(this.options.customAttribution)),this._map.style.stylesheet){let i=this._map.style.stylesheet;this.styleOwner=i.owner,this.styleId=i.id}let t=this._map.style.tileManagers;for(let i in t){let n=t[i];if(n.used||n.usedForTerrain){let a=n.getSource();a.attribution&&!e.includes(a.attribution)&&e.push(a.attribution)}}e=e.filter(i=>String(i).trim()),e.sort((i,n)=>i.length-n.length),e=e.filter((i,n)=>{for(let a=n+1;a{let t=this._container.children;if(t.length){let r=t[0];this._map.getCanvasContainer().offsetWidth<=640||this._compact?this._compact!==!1&&r.classList.add("maplibregl-compact"):r.classList.remove("maplibregl-compact")}},this.options=e}getDefaultPosition(){return"bottom-left"}onAdd(e){var r;this._map=e,this._compact=(r=this.options)==null?void 0:r.compact,this._container=Cl.create("div","maplibregl-ctrl");let t=Cl.create("a","maplibregl-ctrl-logo");return t.target="_blank",t.rel="noopener nofollow",t.href="https://maplibre.org/",t.setAttribute("aria-label",this._map._getUIString("LogoControl.Title")),t.setAttribute("rel","noopener nofollow"),this._container.appendChild(t),this._container.style.display="block",this._map.on("resize",this._updateCompact),this._updateCompact(),this._container}onRemove(){this._container.remove(),this._map.off("resize",this._updateCompact),this._map=void 0,this._compact=void 0}},NCr=class{constructor(){this._queue=[],this._id=0,this._cleared=!1,this._currentlyRunning=!1}add(e){let t=++this._id;return this._queue.push({callback:e,id:t,cancelled:!1}),t}remove(e){let t=this._currentlyRunning,r=t?this._queue.concat(t):this._queue;for(let i of r)if(i.id===e){i.cancelled=!0;return}}run(e=0){if(this._currentlyRunning)throw Error("Attempting to run(), but is already running.");let t=this._currentlyRunning=this._queue;this._queue=[];let r=!1,i;for(let n of t)if(!n.cancelled){try{n.callback(e)}catch(a){r||(r=!0,i=a)}if(this._cleared)break}if(this._cleared=!1,this._currentlyRunning=!1,r)throw i}clear(){this._currentlyRunning&&(this._cleared=!0),this._queue=[]}},Mst=["none","zoom","sourceTiles","visibleLayers","revision"],VCr=class{constructor(e,t,r,i){this._tileKeys=e.map(n=>n.key).sort().join(),this._revision=t,this._zoom=r,this._visibleLayerIds=i}difference(e){return this._revision===(e==null?void 0:e._revision)?this._visibleLayerIds===e._visibleLayerIds?this._tileKeys===e._tileKeys?this._zoom===e._zoom?"none":"zoom":"sourceTiles":"visibleLayers":"revision"}},nT={background:!0,fill:!0,line:!0,raster:!0,hillshade:!0,"color-relief":!0},UCr=class{constructor(e,t){this.needsFollowUpFrame=!1,this.painter=e,this.terrain=t,this.rttSize=t.tileManager.tileSize*t.qualityFactor}getTexture(e){return e.getRTT(this._stacks.length-1).texture}prepareForRender(e,t){let r=t!==this._lastPrepareZoom;this._lastPrepareZoom=t,this._stacks=[],this._prevType=null,this._rttTiles=[],this._renderableTiles=this.terrain.tileManager.getRenderableTiles(),this._renderableLayerIds=e._order.filter(s=>!e._layers[s].isHidden(t));let i=this._renderableLayerIds.join(),n=new Set;for(let s of this._renderableLayerIds){let l=e._layers[s],u=l.source;u&&nT[l.type]&&n.add(u)}this._coordsAscending={},this._rttFingerprints={};for(let s of n){let l=e.tileManagers[s];if(!l)continue;this._coordsAscending[s]={};let u=this._coordsAscending[s],f=l.getSource(),c=f instanceof lT?f.terrainTileRanges:null;for(let p of l.getVisibleCoordinates()){let v=this.terrain.tileManager.getTerrainCoords(p,c);for(let y in v)u[y]||(u[y]=[]),u[y].push(v[y])}this._rttFingerprints[s]={};let h=this._rttFingerprints[s],d=l.getState().revision;for(let p in u)h[p]=new VCr(u[p],d,t,i)}this.needsFollowUpFrame=!1;let a=r||this.painter.options.moving,o=!1;for(let s of this._renderableTiles){let l=this._textureDifference(s);l!=="none"&&(l==="zoom"&&a||l==="visibleLayers"&&r?this.needsFollowUpFrame=!0:l==="zoom"||l==="sourceTiles"?(o?this.needsFollowUpFrame=!0:s.releaseRTT(this.painter),o=!0):s.releaseRTT(this.painter))}}_textureDifference(e){let t="none";for(let r in this._rttFingerprints){let i=this._rttFingerprints[r][e.tileID.key];if(!i)continue;let n=i.difference(e.rttFingerprint[r]);Mst.indexOf(n)>Mst.indexOf(t)&&(t=n)}return t}renderLayer(e,t){if(e.isHidden(this.painter.transform.zoom))return!1;let r=e.type,i=this.painter,n=this._renderableLayerIds[this._renderableLayerIds.length-1]===e.id;if(nT[r]&&((!this._prevType||!nT[this._prevType])&&this._stacks.push([]),this._prevType=r,this._stacks[this._stacks.length-1].push(e.id),!n))return!0;if(nT[this._prevType]||nT[r]&&n){this._prevType=r;let a=this._stacks.length-1,o=this._stacks[a]||[];t.isRenderingToTexture=!0;for(let s of this._renderableTiles){if(this._rttTiles.push(s),s.getRTT(a))continue;let l=s.acquireRTT(i,a,this.rttSize);i.bindRTT(l),i.context.clear({color:Ol.transparent,stencil:0}),i.currentStencilSource=void 0;for(let u of o){let f=i.style._layers[u],c=f.source?this._coordsAscending[f.source][s.tileID.key]:[s.tileID];i.context.viewport.set([0,0,this.rttSize,this.rttSize]),i.renderTileClippingMasks(f,c),i.renderLayer(i,i.style.tileManagers[f.source],f,c,t),f.source&&(s.rttFingerprint[f.source]=this._rttFingerprints[f.source][s.tileID.key])}l.texture.generateMipmap()}return t.isRenderingToTexture=!1,oCr(this.painter,this.terrain,this._rttTiles,t),this._rttTiles=[],nT[r]}return!1}},GCr={"AttributionControl.ToggleAttribution":"Toggle attribution","AttributionControl.MapFeedback":"Map feedback","FullscreenControl.Enter":"Enter fullscreen","FullscreenControl.Exit":"Exit fullscreen","GeolocateControl.FindMyLocation":"Find my location","GeolocateControl.LocationNotAvailable":"Location not available","LogoControl.Title":"MapLibre logo","Map.Title":"Map","Marker.Title":"Map marker","NavigationControl.ResetBearing":"Drag to rotate map, click to reset north","NavigationControl.ZoomIn":"Zoom in","NavigationControl.ZoomOut":"Zoom out","Popup.Close":"Close popup","ScaleControl.Feet":"ft","ScaleControl.Meters":"m","ScaleControl.Kilometers":"km","ScaleControl.Miles":"mi","ScaleControl.NauticalMiles":"nm","GlobeControl.Enable":"Enable globe","GlobeControl.Disable":"Disable globe","TerrainControl.Enable":"Enable terrain","TerrainControl.Disable":"Disable terrain","CooperativeGesturesHandler.WindowsHelpText":"Use Ctrl + scroll to zoom the map","CooperativeGesturesHandler.MacHelpText":"Use \u2318 + scroll to zoom the map","CooperativeGesturesHandler.MobileHelpText":"Use two fingers to move the map"},HCr=Cst,Sst={hash:!1,interactive:!0,bearingSnap:7,zoomSnap:0,attributionControl:sut,maplibreLogo:!1,refreshExpiredTiles:!0,canvasContextAttributes:{antialias:!1,preserveDrawingBuffer:!1,powerPreference:"high-performance",failIfMajorPerformanceCaveat:!1,desynchronized:!1,contextType:void 0},scrollZoom:!0,minZoom:-2,maxZoom:22,minPitch:0,maxPitch:60,boxZoom:!0,dragRotate:!0,dragPan:!0,keyboard:!0,doubleClickZoom:!0,touchZoomRotate:!0,touchPitch:!0,cooperativeGestures:!1,trackResize:!0,center:[0,0],elevation:0,zoom:0,bearing:0,pitch:0,roll:0,renderWorldCopies:!0,maxTileCacheSize:null,maxTileCacheZoomLevels:Ud.MAX_TILE_CACHE_ZOOM_LEVELS,transformRequest:null,transformCameraUpdate:null,transformConstrain:null,fadeDuration:300,crossSourceCollisions:!0,clickTolerance:3,localIdeographFontFamily:"sans-serif",pitchWithRotate:!0,rollEnabled:!1,rotateSpeed:.8,pitchSpeed:-.5,reduceMotion:void 0,validateStyle:!0,maxCanvasSize:[4096,4096],cancelPendingTileRequestsWhileZooming:!0,centerClampedToGround:!0,terrainSkirtLength:"auto",zoomLevelsToOverscale:4,anisotropicFilterPitch:20},jCr=class extends ih{get _ownerWindow(){var e,t;return((t=(e=this._container)==null?void 0:e.ownerDocument)==null?void 0:t.defaultView)||window}constructor(e){var n,a,o;super(),this._idleTriggered=!1,this._crossFadingFactor=1,this._renderTaskQueue=new NCr,this._controls=[],this._mapId=_ne(),this._styleUrl=null,this._missingStyleImageResolver=null,this._lostContextStyle={style:null,images:null},this._contextLost=s=>{if(s.preventDefault(),this._frameRequest&&(this._frameRequest=(this._frameRequest.abort(),null)),this.painter.destroy(),this._lostContextStyle=this._getStyleAndImages(),!this.style){this.fire(new eO("webglcontextlost",{originalEvent:s}));return}for(let l of Object.values(this.style._layers))if(l.type==="custom"&&console.warn(`Custom layer with id '${l.id}' cannot be restored after WebGL context loss. You will need to re-add it manually after context restoration.`),l._listeners)for(let[u]of Object.entries(l._listeners))console.warn(`Custom layer with id '${l.id}' had event listeners for event '${u}' which cannot be restored after WebGL context loss. You will need to re-add them manually after context restoration.`);this.style.destroy(),this.style=null,this.fire(new eO("webglcontextlost",{originalEvent:s}))},this._contextRestored=s=>{if(this._lostContextStyle.style&&this.setStyle(this._lostContextStyle.style,{diff:!1}),this._lostContextStyle.images&&this.style){this.style.imageManager.images=this._lostContextStyle.images;for(let l in this._lostContextStyle.images){let u=this._lostContextStyle.images[l];u.isWebGLImage&&this.style.imageManager.updateImage(l,u,!1)}}this._lostContextStyle={style:null,images:null};try{this._setupPainter()}catch(l){this.fire(new rl(l));return}this.resize(),this._update(),this._resizeInternal(),this.fire(new eO("webglcontextrestored",{originalEvent:s}))},this._onMapScroll=s=>{if(s.target===this._container)return this._container.scrollTop=0,this._container.scrollLeft=0,!1},this._onWindowOnline=()=>{this._update()};let t=Ql(Zs(Zs({},Sst),e),{canvasContextAttributes:Zs(Zs({},Sst.canvasContextAttributes),e.canvasContextAttributes)});if(t.minZoom!=null&&t.maxZoom!=null&&t.minZoom>t.maxZoom)throw Error("maxZoom must be greater than or equal to minZoom");if(t.minPitch!=null&&t.maxPitch!=null&&t.minPitch>t.maxPitch)throw Error("maxPitch must be greater than or equal to minPitch");if(t.minPitch!=null&&t.minPitch<0)throw Error("minPitch must be greater than or equal to 0");if(t.maxPitch!=null&&t.maxPitch>180)throw Error("maxPitch must be less than or equal to 180");this._camera=new OCr({minZoom:t.minZoom,maxZoom:t.maxZoom,minPitch:t.minPitch,maxPitch:t.maxPitch,bearingSnap:t.bearingSnap,zoomSnap:t.zoomSnap,renderWorldCopies:t.renderWorldCopies,centerClampedToGround:t.centerClampedToGround,terrain:this.terrain,transformConstrain:t.transformConstrain,requestRenderFrame:s=>this._requestRenderFrame(s),cancelRenderFrame:s=>this._cancelRenderFrame(s),transformCameraUpdate:t.transformCameraUpdate,stopHandlers:()=>{var s;return(s=this._handlers)==null?void 0:s.stop(!1)}}),this._camera.setEventedParent(this),this._interactive=t.interactive,this._maxTileCacheSize=t.maxTileCacheSize,this._maxTileCacheZoomLevels=t.maxTileCacheZoomLevels,this._canvasContextAttributes=Zs({},t.canvasContextAttributes),this._trackResize=t.trackResize===!0,this._terrainSkirtLength=t.terrainSkirtLength,this._refreshExpiredTiles=t.refreshExpiredTiles===!0,this._fadeDuration=t.fadeDuration,this._crossSourceCollisions=t.crossSourceCollisions===!0,this._collectResourceTiming=t.collectResourceTiming===!0,this._locale=Zs(Zs({},GCr),t.locale),this._clickTolerance=t.clickTolerance,this._overridePixelRatio=t.pixelRatio,this._maxCanvasSize=t.maxCanvasSize,this._zoomLevelsToOverscale=t.zoomLevelsToOverscale,this.cancelPendingTileRequestsWhileZooming=t.cancelPendingTileRequestsWhileZooming===!0,this.setAnisotropicFilterPitch(t.anisotropicFilterPitch),t.reduceMotion!==void 0&&(jd.prefersReducedMotion=t.reduceMotion),this._requestManager=new XTr(t.transformRequest),this._container=this._resolveContainer(t.container),t.maxBounds&&this.setMaxBounds(t.maxBounds),this._setupContainer();try{this._setupPainter()}catch(s){throw this._cleanupContainer(),s}this._imageQueueHandle=L1.addThrottleControl(()=>this.isMoving()),this.on("move",()=>this._update(!1)),this.on("moveend",()=>this._update(!1)),this.on("zoom",()=>this._update(!0)),this.on("terrain",()=>{this.painter.markTerrainDepthDirty(),this._update(!0)}),this.once("idle",()=>this._idleTriggered=!0),this._handlers=new qCr(this,this._camera,t),typeof window<"u"&&(this._ownerWindow.addEventListener("online",this._onWindowOnline,!1),this._setupResizeObserver());let r=typeof t.hash=="string"&&t.hash||void 0;this._hash=t.hash?new Xlt(r).addTo(this):void 0,(n=this._hash)!=null&&n._onHashChange()||(this.jumpTo({center:t.center,elevation:t.elevation,zoom:t.zoom,bearing:t.bearing,pitch:t.pitch,roll:t.roll}),t.bounds&&(this.resize(),this.fitBounds(t.bounds,Hs({},t.fitBoundsOptions,{duration:0}))));let i=typeof t.style=="string"||((o=(a=t.style)==null?void 0:a.projection)==null?void 0:o.type)!=="globe";this.resize(null,i),this._localIdeographFontFamily=t.localIdeographFontFamily,this._validateStyle=t.validateStyle,t.style&&this.setStyle(t.style,{localIdeographFontFamily:t.localIdeographFontFamily}),t.attributionControl&&this.addControl(new lut(typeof t.attributionControl=="boolean"?void 0:t.attributionControl)),t.maplibreLogo&&this.addControl(new uut,t.logoPosition),this.on("style.load",()=>{if(i||this._resizeTransform(),this._camera.transform.unmodified){let s=$5(this.style.stylesheet,["center","zoom","bearing","pitch","roll"]);this.jumpTo(s)}}),this.on("data",s=>{this._update(s.dataType==="style"),this.fire(s.dataType==="style"?new Cv("styledata",s):new Yf("sourcedata",s))}),this.on("dataloading",s=>{this.fire(s.dataType==="style"?new Cv("styledataloading",s):new Yf("sourcedataloading",s))}),this.on("dataabort",s=>{this.fire(new Yf("sourcedataabort",s))})}_getMapId(){return this._mapId}setGlobalStateProperty(e,t){return this.style.setGlobalStateProperty(e,t),this._update(!0)}getGlobalState(){return this.style.getGlobalState()}addControl(e,t){if(t===void 0&&(t=e.getDefaultPosition?e.getDefaultPosition():"top-right"),!(e!=null&&e.onAdd))return this.fire(new rl(Error("Invalid argument to map.addControl(). Argument must be a control with onAdd and onRemove methods.")));let r=e.onAdd(this);this._controls.push(e);let i=this._controlPositions[t];return t.includes("bottom")?i.insertBefore(r,i.firstChild):i.appendChild(r),this}removeControl(e){if(!(e!=null&&e.onRemove))return this.fire(new rl(Error("Invalid argument to map.removeControl(). Argument must be a control with onAdd and onRemove methods.")));let t=this._controls.indexOf(e);return t>-1&&this._controls.splice(t,1),e.onRemove(this),this}hasControl(e){return this._controls.includes(e)}coveringTiles(e){return uT(this._camera.transform,e)}setTransformCameraUpdate(e){this._camera.transformCameraUpdate=e}getCenter(){return new Js(this._camera.transform.center.lng,this._camera.transform.center.lat)}setCenter(e,t){return this._camera.setCenter(e,t),this}getCenterElevation(){return this._camera.transform.elevation}setCenterElevation(e,t){return this._camera.setCenterElevation(e,t),this}setCenterClampedToGround(e){this._camera.setCenterClampedToGround(e)}panBy(e,t,r){return this._camera.panBy(e,t,r),this}panTo(e,t,r){return this._camera.panTo(e,t,r),this}getZoom(){return this._camera.transform.zoom}setZoom(e,t){return this._camera.setZoom(e,t),this}zoomTo(e,t,r){return this._camera.zoomTo(e,t,r),this}zoomIn(e,t){return this._camera.zoomIn(e,t),this}zoomOut(e,t){return this._camera.zoomOut(e,t),this}getVerticalFieldOfView(){return this._camera.transform.fov}setVerticalFieldOfView(e,t){return this._camera.setVerticalFieldOfView(e,t),this}getBearing(){return this._camera.transform.bearing}setBearing(e,t){return this._camera.setBearing(e,t),this}getZoomSnap(){return this._camera.getZoomSnap()}setZoomSnap(e){return this._camera.setZoomSnap(e),this}getPadding(){return this._camera.transform.padding}setPadding(e,t){return this._camera.setPadding(e,t),this}rotateTo(e,t,r){return this._camera.rotateTo(e,t,r),this}resetNorth(e,t){return this._camera.resetNorth(e,t),this}resetNorthPitch(e,t){return this._camera.resetNorthPitch(e,t),this}snapToNorth(e,t){return this._camera.snapToNorth(e,t),this}getPitch(){return this._camera.transform.pitch}setPitch(e,t){return this._camera.setPitch(e,t),this}getRoll(){return this._camera.transform.roll}setRoll(e,t){return this._camera.setRoll(e,t),this}cameraForBounds(e,t){return this._camera.cameraForBounds(e,t)}fitBounds(e,t,r){return this._camera.fitBounds(e,t,r),this}fitScreenCoordinates(e,t,r,i,n){return this._camera.fitScreenCoordinates(e,t,r,i,n),this}jumpTo(e,t){return this._camera.jumpTo(e,t),this}calculateAnchoredCameraOptions(e){return this._camera.calculateAnchoredCameraOptions(e)}calculateCameraOptionsFromCameraLngLatAltRotation(e,t,r,i,n){return this._camera.calculateCameraOptionsFromCameraLngLatAltRotation(e,t,r,i,n)}easeTo(e,t){return this._camera.easeTo(e,t),this}flyTo(e,t){return this._camera.flyTo(e,t),this}stop(){return this._camera.stop(),this}queryTerrainElevation(e){return this.terrain?this.terrain.getElevationForLngLat(Js.convert(e),this._camera.transform):null}getCenterClampedToGround(){return this._camera.getCenterClampedToGround()}calculateCameraOptionsFromTo(e,t,r,i){return i==null&&this.terrain&&(i=this.terrain.getElevationForLngLat(r,this._camera.transform)),this._camera.transform.calculateCameraOptionsFromTo(e,t,r,i!=null?i:0)}resize(e,t=!0){if(this._lostContextStyle.style!==null)return this;this._resizeInternal(t);let r=!this._camera._moving;return r&&(this.stop(),this.fire(new ol("movestart",e)).fire(new ol("move",e))),this.fire(new Uh("resize",e)),r&&this.fire(new ol("moveend",e)),this}_resizeInternal(e=!0){let[t,r]=this._containerDimensions(),i=this._getClampedPixelRatio(t,r);if(this._resizeCanvas(t,r,i),this.painter.resize(t,r,i),this.painter.overLimit()){let n=this.painter.context.gl;this._maxCanvasSize=[n.drawingBufferWidth,n.drawingBufferHeight];let a=this._getClampedPixelRatio(t,r);this._resizeCanvas(t,r,a),this.painter.resize(t,r,a)}this._resizeTransform(e)}_resizeTransform(e=!0){var i;let[t,r]=this._containerDimensions();this._camera.transform.resize(t,r,e),(i=this._camera._requestedCameraState)==null||i.resize(t,r,e)}_getClampedPixelRatio(e,t){let{0:r,1:i}=this._maxCanvasSize,n=this.getPixelRatio(),a=e*n,o=t*n,s=a>r?r/a:1,l=o>i?i/o:1,u=Math.min(s,l);return u<1&&lu("The canvas is larger than maxCanvasSize and is rendered at a lower pixel ratio to fit. Increase maxCanvasSize, within MAX_TEXTURE_SIZE, to render at full resolution."),u*n}getPixelRatio(){var e;return(e=this._overridePixelRatio)!=null?e:devicePixelRatio}setPixelRatio(e){this._overridePixelRatio=e,this.resize()}getBounds(){return this._camera.transform.getBounds()}getMaxBounds(){return this._camera.transform.getMaxBounds()}setMaxBounds(e){return this._camera.applyTransformChange(t=>t.setMaxBounds(P1.convert(e))),this._update()}setMinZoom(e){if(e!=null||(e=-2),e>=-2&&e<=this._camera.transform.maxZoom){let t=this._camera.transform.zoom;return this._camera.applyTransformChange(r=>r.setMinZoom(e)),this._update(),t!==this._camera.transform.zoom&&this.fire(new ol("zoomstart")).fire(new ol("zoom")).fire(new ol("zoomend")).fire(new ol("movestart")).fire(new ol("move")).fire(new ol("moveend")),this}throw Error("minZoom must be between -2 and the current maxZoom, inclusive")}getMinZoom(e=!1){let t=this._camera.transform;return e?t.applyConstrain(t.center,t.minZoom).zoom:t.minZoom}setMaxZoom(e){if(e!=null||(e=22),e>=this._camera.transform.minZoom){let t=this._camera.transform.zoom;return this._camera.applyTransformChange(r=>r.setMaxZoom(e)),this._update(),t!==this._camera.transform.zoom&&this.fire(new ol("zoomstart")).fire(new ol("zoom")).fire(new ol("zoomend")).fire(new ol("movestart")).fire(new ol("move")).fire(new ol("moveend")),this}throw Error("maxZoom must be greater than the current minZoom")}getMaxZoom(){return this._camera.transform.maxZoom}setMinPitch(e){if(e!=null||(e=0),e<0)throw Error("minPitch must be greater than or equal to 0");if(e>=0&&e<=this._camera.transform.maxPitch){let t=this._camera.transform.pitch;return this._camera.applyTransformChange(r=>r.setMinPitch(e)),this._update(),t!==this._camera.transform.pitch&&this.fire(new ol("pitchstart")).fire(new ol("pitch")).fire(new ol("pitchend")).fire(new ol("movestart")).fire(new ol("move")).fire(new ol("moveend")),this}throw Error("minPitch must be between 0 and the current maxPitch, inclusive")}getMinPitch(){return this._camera.transform.minPitch}setMaxPitch(e){if(e!=null||(e=60),e>180)throw Error("maxPitch must be less than or equal to 180");if(e>=this._camera.transform.minPitch){let t=this._camera.transform.pitch;return this._camera.applyTransformChange(r=>r.setMaxPitch(e)),this._update(),t!==this._camera.transform.pitch&&this.fire(new ol("pitchstart")).fire(new ol("pitch")).fire(new ol("pitchend")).fire(new ol("movestart")).fire(new ol("move")).fire(new ol("moveend")),this}throw Error("maxPitch must be greater than the current minPitch")}getMaxPitch(){return this._camera.transform.maxPitch}getAnisotropicFilterPitch(){return this._anisotropicFilterPitch}setAnisotropicFilterPitch(e){if(e!=null||(e=20),e>180)throw Error("anisotropicFilterPitch must be less than or equal to 180");if(e<0)throw Error("anisotropicFilterPitch must be greater than or equal to 0");return this._anisotropicFilterPitch=e,this._update()}getRenderWorldCopies(){return this._camera.transform.renderWorldCopies}setRenderWorldCopies(e){return this._camera.applyTransformChange(t=>t.setRenderWorldCopies(e)),this._update()}setTransformConstrain(e){return this._camera.applyTransformChange(t=>t.setConstrainOverride(e)),this._update()}project(e){return this._camera.transform.locationToScreenPoint(Js.convert(e),this.style&&this.terrain)}unproject(e){return this._camera.transform.screenPointToLocation(Zr.convert(e),this.terrain)}isMoving(){var e;return this._camera.isMoving()||((e=this._handlers)==null?void 0:e.isMoving())||!1}isZooming(){var e;return this._camera.isZooming()||((e=this._handlers)==null?void 0:e.isZooming())||!1}isRotating(){var e;return this._camera.isRotating()||((e=this._handlers)==null?void 0:e.isRotating())||!1}_createDelegates(e,t,r){if(e==="mouseenter"||e==="mouseover"){let i=!1;return{mousemove:n=>{let a=t.filter(s=>this.getLayer(s)),o=a.length===0?[]:this.queryRenderedFeatures(n.point,{layers:a});o.length?i||(i=!0,r.call(this,new Hd(e,this,n.originalEvent,{features:o}))):i=!1},mouseout:()=>{i=!1}}}if(e==="mouseleave"||e==="mouseout"){let i=!1;return{mousemove:n=>{let a=t.filter(o=>this.getLayer(o));(a.length===0?[]:this.queryRenderedFeatures(n.point,{layers:a})).length?i=!0:i&&(i=!1,r.call(this,new Hd(e,this,n.originalEvent)))},mouseout:n=>{i&&(i=!1,r.call(this,new Hd(e,this,n.originalEvent)))}}}{let i=n=>{let a=t.filter(s=>this.getLayer(s)),o=a.length===0?[]:this.queryRenderedFeatures(n.point,{layers:a});o.length&&(n.features=o,r.call(this,n),delete n.features)};return{[e]:i}}}_addDelegatedListener(e,t){var r;this._delegatedListeners||(this._delegatedListeners={}),(r=this._delegatedListeners)[e]||(r[e]=[]),this._delegatedListeners[e].push(t);for(let i in t.delegates)this.on(i,t.delegates[i])}_removeDelegatedListener(e,t,r){var n;if(!((n=this._delegatedListeners)!=null&&n[e]))return;let i=this._delegatedListeners[e];for(let a=0;at.includes(s))){for(let s in o.delegates)this.off(s,o.delegates[s]);i.splice(a,1);return}}}on(e,t,r){if(r===void 0)return super.on(e,t);let i=typeof t=="string"?[t]:t,n={layers:i,listener:r,delegates:this._createDelegates(e,i,r)};return this._addDelegatedListener(e,n),{unsubscribe:()=>{this._removeDelegatedListener(e,i,r)}}}once(e,t,r){if(r===void 0)return super.once(e,t);let i=typeof t=="string"?[t]:t,n={layers:i,listener:r,delegates:this._createDelegates(e,i,a=>{this._removeDelegatedListener(e,i,r),r.call(this,a)})};return this._addDelegatedListener(e,n),this}off(e,t,r){if(r===void 0)return super.off(e,t);let i=typeof t=="string"?[t]:t;return this._removeDelegatedListener(e,i,r),this}queryRenderedFeatures(e,t){if(!this.style)return[];let r,i=e instanceof Zr||Array.isArray(e),n=i?e:[[0,0],[this._camera.transform.width,this._camera.transform.height]];if(t||(t=(i?{}:e)||{}),n instanceof Zr||typeof n[0]=="number")r=[Zr.convert(n)];else{let a=Zr.convert(n[0]),o=Zr.convert(n[1]);r=[a,new Zr(o.x,a.y),o,new Zr(a.x,o.y),a]}return this.style.queryRenderedFeatures(r,t,this._camera.transform)}querySourceFeatures(e,t){return this.style.querySourceFeatures(e,t)}setStyle(e,t){return t=Hs({},{localIdeographFontFamily:this._localIdeographFontFamily,validate:this._validateStyle},t),this._styleUrl=typeof e=="string"?e:null,t.diff!==!1&&t.localIdeographFontFamily===this._localIdeographFontFamily&&this.style&&e?(this._diffStyle(e,t),this):(this._localIdeographFontFamily=t.localIdeographFontFamily,this._updateStyle(e,t))}setTransformRequest(e){return this._requestManager.setTransformRequest(e),this}_getUIString(e){let t=this._locale[e];if(t==null)throw Error(`Missing UI string '${e}'`);return t}_updateStyle(e,t){var i,n,a;if((i=this._diffStyleRequest)==null||i.abort(),this._diffStyleRequest=null,t.transformStyle&&this.style&&!this.style._loaded){this.style.once("style.load",()=>this._updateStyle(e,t));return}let r=this.style&&t.transformStyle?this.style.serialize():void 0;if(this.style&&(this.style.setEventedParent(null),this.style._remove(!e)),e)this.style=new moe(this,t||{});else return this._frameRequest&&(this._frameRequest=(this._frameRequest.abort(),null)),(a=(n=this.style)==null?void 0:n.projection)==null||a.destroy(),delete this.style,this;return this.style.setEventedParent(this,{style:this.style}),typeof e=="string"?this.style.loadURL(e,t,r):this.style.loadJSON(e,t,r),this}_lazyInitEmptyStyle(){this.style||(this.style=new moe(this,{}),this.style.setEventedParent(this,{style:this.style}),this.style.loadEmpty())}_diffStyle(e,t){return Ls(this,null,function*(){var r;if((r=this._diffStyleRequest)==null||r.abort(),typeof e=="string"){let i=e;this._diffStyleRequest=new AbortController;let n=this._diffStyleRequest;try{let a=yield this._requestManager.transformRequest(i,"Style");if(n.signal.aborted){this._diffStyleRequest=null;return}let o=yield mC(a,n);this._diffStyleRequest=null,this._updateDiff(o.data,t)}catch(a){this._diffStyleRequest=null,eg(a)||this.fire(new rl(u0(a)))}}else typeof e=="object"&&(this._diffStyleRequest=null,this._updateDiff(e,t))})}_updateDiff(e,t){try{this.style.setState(e,t)&&this._update(!0)}catch(r){lu(`Unable to perform style diff: ${u0(r).message}. Rebuilding the style from scratch.`),this._updateStyle(e,t)}}getStyle(){if(this.style)return this.style.serialize()}getStyleUrl(){return this._styleUrl}_getStyleAndImages(){return this.style?{style:this.style.serialize(),images:this.style.imageManager.cloneImages()}:{style:null,images:{}}}isStyleLoaded(){if(!this.style){lu("There is no style added to the map.");return}return this.style.loaded()}addSource(e,t){return this._lazyInitEmptyStyle(),this.style.addSource(e,t),this._update(!0)}isSourceLoaded(e){var r;let t=(r=this.style)==null?void 0:r.tileManagers[e];if(t===void 0){this.fire(new rl(Error(`There is no tile manager with ID '${e}'`)));return}return t.loaded()}setTerrain(e,t={}){if(this.style._checkLoaded(),e&&K5(this,gd.terrain,{value:e},t))return this;if(this._terrainDataCallback&&this.style.off("data",this._terrainDataCallback),!e)this.terrain&&this.terrain.destroy(),this.terrain=null,this.painter.renderToTexture=null,this.painter.destroyRTTResources(),this._camera.setTerrain(null);else{let r=this.style.tileManagers[e.source];if(!r)throw Error(`cannot load terrain, because there exists no source with ID: ${e.source}`);this.terrain===null&&r.reload();for(let i in this.style._layers){let n=this.style._layers[i];n.type==="hillshade"&&n.source===e.source&&lu("You are using the same source for a hillshade layer and for 3D terrain. Please consider using two separate sources to improve rendering quality."),n.type==="color-relief"&&n.source===e.source&&lu("You are using the same source for a color-relief layer and for 3D terrain. Please consider using two separate sources to improve rendering quality.")}this.terrain&&this.terrain.destroy(),this.terrain=new iSr(this.painter,r,e,this._terrainSkirtLength),this.painter.renderToTexture=new UCr(this.painter,this.terrain),this._camera.setTerrain(this.terrain),this._terrainDataCallback=i=>this._handleTerrainDataEvent(i,e.source),this.style.on("data",this._terrainDataCallback)}return this.style.triggerSymbolPlacement(),this.fire(new Lst({terrain:e})),this}_handleTerrainDataEvent(e,t){var i;if(e.dataType==="style"){this.terrain.tileManager.releaseAllRTT();return}let r=e.sourceId===t;if(r&&(this.terrain.resetElevationCache(),this.style.triggerSymbolPlacement()),r&&e.tile&&(this.painter.markTerrainDepthDirty(),this._camera.applyTerrainChange()),e.tile){if(((i=e.source)==null?void 0:i.type)==="image"){this.terrain.tileManager.releaseAllRTT();return}this.terrain.tileManager.releaseRTT(e.tile.tileID)}}getTerrain(){var e,t;return(t=(e=this.terrain)==null?void 0:e.options)!=null?t:null}areTilesLoaded(){var t;let e=(t=this.style)==null?void 0:t.tileManagers;for(let r of Object.values(e))if(!r.areTilesLoaded())return!1;return!0}removeSource(e){return this.style.removeSource(e),this._update(!0)}getSource(e){var t;return(t=this.style)==null?void 0:t.getSource(e)}setSourceTileLodParams(e,t,r){if(r){let i=this.getSource(r);if(!i)throw Error(`There is no source with ID "${r}", cannot set LOD parameters`);i.calculateTileZoom=loe(Math.max(1,e),Math.max(1,t))}else for(let i in this.style.tileManagers)this.style.tileManagers[i].getSource().calculateTileZoom=loe(Math.max(1,e),Math.max(1,t));return this._update(!0),this}refreshTiles(e,t){let r=this.style.tileManagers[e];if(!r)throw Error(`There is no tile manager with ID "${e}", cannot refresh tile`);t===void 0?r.reload(!0):r.refreshTiles(t.map(i=>new PC(i.z,i.x,i.y)))}addImage(e,t,r={}){var n;this._lazyInitEmptyStyle();let i=this._createStyleImage(t,r);return i?(this.style.addImage(e,i),(n=i.userImage)!=null&&n.onAdd&&i.userImage.onAdd(this,e),this):this}setMissingStyleImageResolver(e){var t;return this._missingStyleImageResolver=e,(t=this.style)==null||t.setMissingImageResolver(e),this}_createStyleImage(e,t={}){let{pixelRatio:r=1,sdf:i=!1,stretchX:n,stretchY:a,content:o,textFitWidth:s,textFitHeight:l}=t;if(e instanceof HTMLImageElement||yx(e)){let{width:u,height:f,data:c}=jd.getImageData(e);return{data:new qf({width:u,height:f},c),pixelRatio:r,stretchX:n,stretchY:a,content:o,textFitWidth:s,textFitHeight:l,sdf:i,version:0}}if(e.width===void 0||e.height===void 0)return this.fire(new rl(Error("Invalid arguments to map.addImage(). The second argument must be an `HTMLImageElement`, `ImageData`, `ImageBitmap`, or object with `width`, `height`, and `data` properties with the same format as `ImageData`"))),null;{let{width:u,height:f,data:c}=e,h=e,d=kC(h.data);return{data:d?new qf({width:u,height:f}):new qf({width:u,height:f},new Uint8Array(c)),pixelRatio:r,stretchX:n,stretchY:a,content:o,textFitWidth:s,textFitHeight:l,sdf:i,version:0,isWebGLImage:d,userImage:h}}}updateImage(e,t){let r=this.style.getImage(e);if(!r)return this.fire(new rl(Error("The map has no image with that id. If you are adding a new image use `map.addImage(...)` instead.")));let{width:i,height:n,data:a}=t instanceof HTMLImageElement||yx(t)?jd.getImageData(t):t;if(i===void 0||n===void 0)return this.fire(new rl(Error("Invalid arguments to map.updateImage(). The second argument must be an `HTMLImageElement`, `ImageData`, `ImageBitmap`, or object with `width`, `height`, and `data` properties with the same format as `ImageData`")));if(i!==r.data.width||n!==r.data.height)return this.fire(new rl(Error("The width and height of the updated image must be that same as the previous version of the image")));if(r.isWebGLImage=kC(a),r.isWebGLImage)r.userImage=t;else{let o=!(t instanceof HTMLImageElement||yx(t));r.data.replace(a,o)}return this.style.updateImage(e,r),this}getImage(e){return this.style.getImage(e)}hasImage(e){return e?!!this.style.getImage(e):(this.fire(new rl(Error("Missing required image id"))),!1)}removeImage(e){this.style.removeImage(e)}loadImage(e){return Ls(this,null,function*(){let t=yield L1.getImage(yield this._requestManager.transformRequest(e,"Image"),new AbortController);if(!t.data)throw Error(`Could not load image ${e}: the response is empty`);return t})}listImages(){var e,t;return(t=(e=this.style)==null?void 0:e.listImages())!=null?t:[]}addLayer(e,t){return this._lazyInitEmptyStyle(),this.style.addLayer(e,t),this._update(!0)}moveLayer(e,t){return this.style.moveLayer(e,t),this._update(!0)}removeLayer(e){return this.style.removeLayer(e),this._update(!0)}getLayer(e){var t;return(t=this.style)==null?void 0:t.getLayer(e)}getLayersOrder(){var e,t;return(t=(e=this.style)==null?void 0:e.getLayersOrder())!=null?t:[]}setLayerZoomRange(e,t,r){return this.style.setLayerZoomRange(e,t,r),this._update(!0)}setFilter(e,t,r={}){var i;return(i=this.style)==null||i.setFilter(e,t,r),this._update(!0)}getFilter(e){return this.style.getFilter(e)}setPaintProperty(e,t,r,i={}){var n;return(n=this.style)==null||n.setPaintProperty(e,t,r,i),this._update(!0)}getPaintProperty(e,t){return this.style.getPaintProperty(e,t)}setLayoutProperty(e,t,r,i={}){return this.style.setLayoutProperty(e,t,r,i),this._update(!0)}getLayoutProperty(e,t){return this.style.getLayoutProperty(e,t)}setGlyphs(e,t={}){return this._lazyInitEmptyStyle(),this.style.setGlyphs(e,t),this._update(!0)}getGlyphs(){return this.style.getGlyphsUrl()}setFontFaces(e){return this._lazyInitEmptyStyle(),this.style.setFontFaces(e),this._update(!0)}getFontFaces(){return this.style.getFontFaces()}addSprite(e,t,r={}){return this._lazyInitEmptyStyle(),this.style.addSprite(e,t,r,i=>{i||this._update(!0)}),this}removeSprite(e){return this._lazyInitEmptyStyle(),this.style.removeSprite(e),this._update(!0)}getSprite(){return this.style.getSprite()}setSprite(e,t={}){return this._lazyInitEmptyStyle(),this.style.setSprite(e,t,r=>{r||this._update(!0)}),this}setLight(e,t={}){return this._lazyInitEmptyStyle(),this.style.setLight(e,t),this._update(!0)}getLight(){return this.style.getLight()}setSky(e,t={}){return this._lazyInitEmptyStyle(),this.style.setSky(e,t),this._update(!0)}getSky(){return this.style.getSky()}setFeatureState(e,t){return this.style.setFeatureState(e,t),this._update()}removeFeatureState(e,t){return this.style.removeFeatureState(e,t),this._update()}getFeatureState(e){return this.style.getFeatureState(e)}getContainer(){return this._container}getCanvasContainer(){return this._canvasContainer}getCanvas(){return this._canvas}_containerDimensions(){let e=0,t=0;return this._container&&(e=Math.floor(this._container.clientWidth)||400,t=Math.floor(this._container.clientHeight)||300),[e,t]}_shouldHandleInitialResize(){var r;if(!((r=this._container)!=null&&r.clientWidth)||!this._container.clientHeight)return!1;let[e,t]=this._containerDimensions();return e!==this._camera.transform.width||t!==this._camera.transform.height}_setupResizeObserver(){var i;let e=!1,t=Uoe(n=>{this._trackResize&&!this._removed&&(this.resize(n),this.redraw())},50),r=(i=this._ownerWindow.ResizeObserver)!=null?i:ResizeObserver;this._resizeObserver=new r(n=>{!e&&(e=!0,!this._shouldHandleInitialResize())||t(n)}),this._resizeObserver.observe(this._container)}_resolveContainer(e){if(typeof e=="string"){let t=document.getElementById(e);if(!t)throw Error(`Container '${e}' not found.`);return t}if(e instanceof HTMLElement||e&&typeof e=="object"&&e.nodeType===1)return e;throw Error("Invalid type: 'container' must be a String or HTMLElement.")}_setupContainer(){let e=this._containerDimensions(),t=this._getClampedPixelRatio(e[0],e[1]),r=this._container;r.classList.add("maplibregl-map");let i=this._canvasContainer=Cl.create("div","maplibregl-canvas-container",r);this._interactive&&i.classList.add("maplibregl-interactive"),this._canvas=Cl.create("canvas","maplibregl-canvas",i),this._canvas.addEventListener("webglcontextlost",this._contextLost,!1),this._canvas.addEventListener("webglcontextrestored",this._contextRestored,!1),this._canvas.setAttribute("tabindex",this._interactive?"0":"-1"),this._canvas.setAttribute("aria-label",this._getUIString("Map.Title")),this._canvas.setAttribute("role","region"),this._resizeCanvas(e[0],e[1],t);let n=this._controlContainer=Cl.create("div","maplibregl-control-container",r),a=this._controlPositions={};for(let o of["top-left","top-right","bottom-left","bottom-right"])a[o]=Cl.create("div",`maplibregl-ctrl-${o} `,n);this._container.addEventListener("scroll",this._onMapScroll,!1)}_cleanupContainer(){this._canvas.removeEventListener("webglcontextrestored",this._contextRestored,!1),this._canvas.removeEventListener("webglcontextlost",this._contextLost,!1),this._canvasContainer.remove(),this._controlContainer.remove(),this._container.removeEventListener("scroll",this._onMapScroll,!1),this._container.classList.remove("maplibregl-map")}_resizeCanvas(e,t,r){let i=Math.round(r*e),n=Math.round(r*t);this._canvas.width=i,this._canvas.height=n,this._canvas.style.width=`${i/r}px`,this._canvas.style.height=`${n/r}px`}_setupPainter(){let e=Ql(Zs({},this._canvasContextAttributes),{alpha:!0,depth:!0,stencil:!0,premultipliedAlpha:!0}),t=null;this._canvas.addEventListener("webglcontextcreationerror",i=>{t=i},{once:!0});let r=this._canvas.getContext("webgl2",e);if(!r)throw new Ylt(e,t);this.painter=new cCr(r,this._camera.transform)}migrateProjection(e,t){this._camera.migrateProjection(e,t),this.painter.transform=e,this.fire(new Pst({newProjection:this.style.projection.name}))}loaded(){return!this._styleDirty&&!this._sourcesDirty&&!!this.style&&this.style.loaded()}_update(e){var t;return(t=this.style)!=null&&t._loaded?(this._styleDirty||(this._styleDirty=e),this._sourcesDirty=!0,this.triggerRepaint(),this):this}_requestRenderFrame(e){return this._update(),this._renderTaskQueue.add(e)}_cancelRenderFrame(e){this._renderTaskQueue.remove(e)}_render(e){var o,s,l,u,f;let t=this._idleTriggered?this._fadeDuration:0,r=((o=this.style.projection)==null?void 0:o.transitionState)>0;if(this.painter.context.setDirty(),this.painter.setBaseState(),this._renderTaskQueue.run(e),this._removed)return;let i=!1;if(this.style&&this._styleDirty){this._styleDirty=!1;let c=this._camera.transform.zoom,h=Ku();this.style.zoomHistory.update(c,h);let d=new Xu(c,{now:h,fadeDuration:t,zoomHistory:this.style.zoomHistory,transition:this.style.getTransition()}),p=d.crossFadingFactor();(p!==1||p!==this._crossFadingFactor)&&(i=!0,this._crossFadingFactor=p),this.style.update(d)}let n=((s=this.style.projection)==null?void 0:s.transitionState)>0!==r;this._camera.transform.setTransitionState((l=this.style.projection)==null?void 0:l.transitionState),this.style&&(this._sourcesDirty||n)&&(this._sourcesDirty=!1,this.style._updateSources(this._camera.transform)),this.terrain?(this.terrain.tileManager.update(this._camera.transform,this.terrain)&&this.terrain.resetElevationCache(),this._camera.transform.setMinElevationForCurrentTile(this.terrain.getMinTileElevationForLngLatZoom(this._camera.transform.center,this._camera.transform.tileZoom)),!this._camera.elevationFreeze&&this.getCenterClampedToGround()&&this._camera.transform.setElevation(this.terrain.getElevationForLngLat(this._camera.transform.center,this._camera.transform))):(this._camera.transform.setMinElevationForCurrentTile(0),this.getCenterClampedToGround()&&this._camera.transform.setElevation(0)),this._placementDirty=(u=this.style)==null?void 0:u._updatePlacement(this._camera.transform,this.showCollisionBoxes,t,this._crossSourceCollisions,n),this.painter.render(this.style,{showTileBoundaries:this.showTileBoundaries,showOverdrawInspector:this._showOverdrawInspector,rotating:this.isRotating(),zooming:this.isZooming(),moving:this.isMoving(),fadeDuration:t,showPadding:this.showPadding,anisotropicFilterPitch:this.getAnisotropicFilterPitch()}),this.fire(new Uh("render")),this.loaded()&&!this._loaded&&(this._loaded=!0,this.fire(new Uh("load"))),this.style&&(this.style.hasTransitions()||i)&&(this._styleDirty=!0),this.style&&!this._placementDirty&&this.style._releaseSymbolFadeTiles();let a=this._sourcesDirty||this._styleDirty||this._placementDirty||((f=this.painter.renderToTexture)==null?void 0:f.needsFollowUpFrame);return a||this._repaint?this.triggerRepaint():!this.isMoving()&&this.loaded()&&this.fire(new Uh("idle")),this._loaded&&!this._fullyLoaded&&!a&&(this._fullyLoaded=!0),this}redraw(){return this.style&&(this._frameRequest&&(this._frameRequest=(this._frameRequest.abort(),null)),this._render(0)),this}remove(){var t,r;this._hash&&this._hash.remove();for(let i of this._controls)i.onRemove(this);this._controls=[],this._frameRequest&&(this._frameRequest=(this._frameRequest.abort(),null)),this._renderTaskQueue.clear(),(t=this._diffStyleRequest)==null||t.abort(),this.painter.destroy(),this._handlers.destroy(),this.setStyle(null),typeof window<"u"&&this._ownerWindow.removeEventListener("online",this._onWindowOnline,!1),L1.removeThrottleControl(this._imageQueueHandle),(r=this._resizeObserver)==null||r.disconnect();let e=this.painter.context.gl.getExtension("WEBGL_lose_context");e!=null&&e.loseContext&&e.loseContext(),this._cleanupContainer(),this._removed=!0,this.fire(new Uh("remove"))}triggerRepaint(){this.style&&!this._frameRequest&&(this._frameRequest=new AbortController,jd.frame(this._frameRequest,e=>{this._frameRequest=null;try{this._render(e)}catch(t){if(!eg(t))throw t}},()=>{},this._ownerWindow))}get showTileBoundaries(){return!!this._showTileBoundaries}set showTileBoundaries(e){this._showTileBoundaries!==e&&(this._showTileBoundaries=e,this._update())}get showPadding(){return!!this._showPadding}set showPadding(e){this._showPadding!==e&&(this._showPadding=e,this._update())}get showCollisionBoxes(){return!!this._showCollisionBoxes}set showCollisionBoxes(e){this._showCollisionBoxes!==e&&(this._showCollisionBoxes=e,e?this.style._generateCollisionBoxes():this._update())}get showOverdrawInspector(){return!!this._showOverdrawInspector}set showOverdrawInspector(e){this._showOverdrawInspector!==e&&(this._showOverdrawInspector=e,this._update())}get repaint(){return!!this._repaint}set repaint(e){this._repaint!==e&&(this._repaint=e,this.triggerRepaint())}get vertices(){return!!this._vertices}set vertices(e){this._vertices=e,this._update()}get version(){return HCr}getCameraTargetElevation(){return this._camera.transform.elevation}getProjection(){return this.style.getProjection()}setProjection(e){return this._lazyInitEmptyStyle(),this.style.setProjection(e),this._update(!0)}},WCr={showCompass:!0,showZoom:!0,visualizePitch:!1,visualizeRoll:!0},$Cr=class{constructor(e){this._updateZoomButtons=()=>{let t=this._map.getZoom(),r=t===this._map.getMaxZoom(),i=t===this._map.getMinZoom(!0);this._zoomInButton.disabled=r,this._zoomOutButton.disabled=i,this._zoomInButton.setAttribute("aria-disabled",r.toString()),this._zoomOutButton.setAttribute("aria-disabled",i.toString())},this._rotateCompassArrow=()=>{let t=this._map.getPitch(),r=this._map.getRoll(),i=this._map.getBearing(),n=1/Math.cos($f(t))**.5;if(this.options.visualizePitch&&this.options.visualizeRoll){this._compassIcon.style.transform=`scale(${n}) rotateZ(${-r}deg) rotateX(${t}deg) rotateZ(${-i}deg)`;return}if(this.options.visualizePitch){this._compassIcon.style.transform=`scale(${n}) rotateX(${t}deg) rotateZ(${-i}deg)`;return}if(this.options.visualizeRoll){this._compassIcon.style.transform=`rotate(${-i-r}deg)`;return}this._compassIcon.style.transform=`rotate(${-i}deg)`},this._setButtonTitle=(t,r)=>{let i=this._map._getUIString(`NavigationControl.${r}`);t.title=i,t.setAttribute("aria-label",i)},this.options=Hs({},WCr,e),this._container=Cl.create("div","maplibregl-ctrl maplibregl-ctrl-group"),this._container.addEventListener("contextmenu",t=>t.preventDefault()),this.options.showZoom&&(this._zoomInButton=this._createButton("maplibregl-ctrl-zoom-in",t=>this._map.zoomIn({},{originalEvent:t})),Cl.create("span","maplibregl-ctrl-icon",this._zoomInButton).setAttribute("aria-hidden","true"),this._zoomOutButton=this._createButton("maplibregl-ctrl-zoom-out",t=>this._map.zoomOut({},{originalEvent:t})),Cl.create("span","maplibregl-ctrl-icon",this._zoomOutButton).setAttribute("aria-hidden","true")),this.options.showCompass&&(this._compass=this._createButton("maplibregl-ctrl-compass",t=>{this.options.visualizePitch?this._map.resetNorthPitch({},{originalEvent:t}):this._map.resetNorth({},{originalEvent:t})}),this._compassIcon=Cl.create("span","maplibregl-ctrl-icon",this._compass),this._compassIcon.setAttribute("aria-hidden","true"))}onAdd(e){return this._map=e,this.options.showZoom&&(this._setButtonTitle(this._zoomInButton,"ZoomIn"),this._setButtonTitle(this._zoomOutButton,"ZoomOut"),this._map.on("move",this._updateZoomButtons),this._updateZoomButtons()),this.options.showCompass&&(this._setButtonTitle(this._compass,"ResetBearing"),this.options.visualizePitch&&this._map.on("pitch",this._rotateCompassArrow),this.options.visualizeRoll&&this._map.on("roll",this._rotateCompassArrow),this._map.on("rotate",this._rotateCompassArrow),this._rotateCompassArrow(),this._handler=new YCr(this._map,this._compass,this.options.visualizePitch)),this._container}onRemove(){this._container.remove(),this.options.showZoom&&this._map.off("move",this._updateZoomButtons),this.options.showCompass&&(this.options.visualizePitch&&this._map.off("pitch",this._rotateCompassArrow),this.options.visualizeRoll&&this._map.off("roll",this._rotateCompassArrow),this._map.off("rotate",this._rotateCompassArrow),this._handler.off(),delete this._handler),delete this._map}_createButton(e,t){let r=Cl.create("button",e,this._container);return r.type="button",r.addEventListener("click",t),r}},YCr=class{constructor(e,t,r=!1){this.mousedown=n=>{this.startMove(n,Cl.mousePos(this.element,n)),window.addEventListener("mousemove",this.mousemove),window.addEventListener("mouseup",this.mouseup)},this.mousemove=n=>{this.move(n,Cl.mousePos(this.element,n))},this.mouseup=n=>{this._rotatePitchHandler.dragEnd(n),this.offTemp()},this.touchstart=n=>{n.targetTouches.length===1?(this._startPos=this._lastPos=Cl.touchPos(this.element,n.targetTouches)[0],this.startMove(n,this._startPos),window.addEventListener("touchmove",this.touchmove,{passive:!1}),window.addEventListener("touchend",this.touchend)):this.reset()},this.touchmove=n=>{n.targetTouches.length===1?(this._lastPos=Cl.touchPos(this.element,n.targetTouches)[0],this.move(n,this._lastPos)):this.reset()},this.touchend=n=>{n.targetTouches.length===0&&this._startPos&&this._lastPos&&this._startPos.dist(this._lastPos){this._rotatePitchHandler.reset(),delete this._startPos,delete this._lastPos,this.offTemp()},this._clickTolerance=10,this.element=t;let i=new SCr;this._rotatePitchHandler=new eD({clickTolerance:3,move:(n,a)=>{let o=t.getBoundingClientRect(),s=new Zr((o.bottom-o.top)/2,(o.right-o.left)/2);return{bearingDelta:Tne(new Zr(n.x,a.y),a,s),pitchDelta:r?(a.y-n.y)*-.5:void 0}},moveStateManager:i,enable:!0,assignEvents:()=>{}}),this.map=e,t.addEventListener("mousedown",this.mousedown),t.addEventListener("touchstart",this.touchstart,{passive:!1}),t.addEventListener("touchcancel",this.reset)}startMove(e,t){this._rotatePitchHandler.dragStart(e,t),Cl.disableDrag()}move(e,t){let r=this.map,{bearingDelta:i,pitchDelta:n}=this._rotatePitchHandler.dragMove(e,t)||{};i&&r.setBearing(r.getBearing()+i),n&&r.setPitch(r.getPitch()+n)}off(){let e=this.element;e.removeEventListener("mousedown",this.mousedown),e.removeEventListener("touchstart",this.touchstart),window.removeEventListener("touchmove",this.touchmove),window.removeEventListener("touchend",this.touchend),e.removeEventListener("touchcancel",this.reset),this.offTemp()}offTemp(){Cl.enableDrag(),window.removeEventListener("mousemove",this.mousemove),window.removeEventListener("mouseup",this.mouseup),window.removeEventListener("touchmove",this.touchmove),window.removeEventListener("touchend",this.touchend)}};Hoe={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%)"};Est={ArrowLeft:[-1,0],ArrowRight:[1,0],ArrowUp:[0,-1],ArrowDown:[0,1]},hut="#3FB1CE";x3=class extends Gd{},dut=class extends Gd{},xoe=class extends ih{constructor(e){if(super(),this._onClick=t=>{this.fire(new dut("click",{originalEvent:t}))},this._onKeyPress=t=>{(t.code==="Space"||t.code==="Enter")&&this.togglePopup()},this._onKeyDown=t=>{if(!this._defaultMarker||!this._draggable||!this._map||!this._lngLat||t.composedPath()[0]!==this._element||t.altKey||t.ctrlKey||t.metaKey)return;let r=Est[t.key];if(!r)return;t.preventDefault(),t.stopPropagation();let i=t.shiftKey?10:1,n=this._map.project(this._lngLat);this.setLngLat(this._map.unproject(new Zr(n.x+r[0]*i,n.y+r[1]*i))),this._keyboardDragActive||(this._keyboardDragActive=!0,this.fire(new x3("dragstart"))),this.fire(new x3("drag"))},this._onKeyUp=t=>{Est[t.key]&&this._endKeyboardDrag()},this._onBlur=()=>{this._endKeyboardDrag()},this._onMapClick=t=>{let r=t.originalEvent.target,i=this._element;this._popup&&(r===i||i.contains(r))&&this.togglePopup()},this._updateCoveredUnthrottled=()=>{var i,n;let t=(i=this._map)==null?void 0:i.terrain;if(!t||!this._isInViewport())return;let r=this._isCovered(t);r&&((n=this._popup)!=null&&n.isOpen())&&this._popup.remove(),this._element.style.opacity=r?this._opacityWhenCovered:this._opacity,this._element.classList.toggle("maplibregl-marker-covered",r)},this._updateCovered=Uoe(this._updateCoveredUnthrottled,100),this._update=t=>{if(!this._map)return;this._lngLat=fut(this._lngLat,this._flatPos,this._map._camera.transform),this._flatPos=this._pos=this._map.project(this._lngLat)._add(this._offset),this._map.terrain&&(this._flatPos=this._map._camera.transform.locationToScreenPoint(this._lngLat)._add(this._offset));let r="";this._rotationAlignment==="viewport"||this._rotationAlignment==="auto"?r=`rotateZ(${this._rotation}deg)`:this._rotationAlignment==="map"&&(r=`rotateZ(${this._rotation-this._map.getBearing()}deg)`);let i="";this._pitchAlignment==="viewport"||this._pitchAlignment==="auto"?i="rotateX(0deg)":this._pitchAlignment==="map"&&(i=`rotateX(${this._map.getPitch()}deg)`),!this._subpixelPositioning&&(t==null?void 0:t.type)!=="move"&&(this._pos=this._pos.round()),this._element.style.transform=`${Hoe[this._anchor]} translate(${this._pos.x}px, ${this._pos.y}px) ${i} ${r}`,this._updateOpacity()},this._onMove=t=>{if(!this._isDragging){let r=this._clickTolerance||this._map._clickTolerance;this._isDragging=t.point.dist(this._pointerdownPos)>=r}this._isDragging&&(this._pos=t.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 x3("dragstart"))),this.fire(new x3("drag")))},this._onUp=()=>{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 x3("dragend")),this._state="inactive"},this._addDragHandler=t=>{this._element.contains(t.originalEvent.target)&&(t.preventDefault(),this._positionDelta=t.point.sub(this._pos).add(this._offset),this._pointerdownPos=t.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))},this._anchor=(e==null?void 0:e.anchor)||"center",this._color=(e==null?void 0:e.color)||hut,this._scale=(e==null?void 0:e.scale)||1,this._draggable=(e==null?void 0:e.draggable)||!1,this._clickTolerance=(e==null?void 0:e.clickTolerance)||0,this._subpixelPositioning=(e==null?void 0:e.subpixelPositioning)||!1,this._isDragging=!1,this._roleManaged=!1,this._tabIndexManaged=!1,this._keyboardDragActive=!1,this._state="inactive",this._rotation=(e==null?void 0:e.rotation)||0,this._rotationAlignment=(e==null?void 0:e.rotationAlignment)||"auto",this._pitchAlignment=e!=null&&e.pitchAlignment&&e.pitchAlignment!=="auto"?e.pitchAlignment:this._rotationAlignment,this.setOpacity(e==null?void 0:e.opacity,e==null?void 0:e.opacityWhenCovered),e==null?void 0:e.element)this._element=e.element,this._offset=Zr.convert((e==null?void 0:e.offset)||[0,0]);else{this._defaultMarker=!0,this._element=Cl.create("div");let t=ZCr().cloneNode(!0);t.setAttributeNS(null,"height",`${41*this._scale}px`),t.setAttributeNS(null,"width",`${27*this._scale}px`),KCr(t).setAttributeNS(null,"fill",this._color),this._element.appendChild(t),this._offset=Zr.convert((e==null?void 0:e.offset)||[0,-14])}if(this._element.classList.add("maplibregl-marker"),this._element.addEventListener("dragstart",t=>{t.preventDefault()}),this._element.addEventListener("mousedown",t=>{t.preventDefault()}),cut(this._element,this._anchor,"marker"),e==null?void 0:e.className)for(let t of e.className.split(" "))this._element.classList.add(t);this._popup=null}addTo(e){return this.remove(),this._map=e,this._defaultMarker&&!this._element.hasAttribute("aria-label")&&this._element.setAttribute("aria-label",e._getUIString("Marker.Title")),this._updateAccessibilityRole(),e.getCanvasContainer().appendChild(this._element),e.on("move",this._update),e.on("moveend",this._update),e.on("terrain",this._update),e.on("projectiontransition",this._update),e.on("idle",this._update),this._element.addEventListener("click",this._onClick),this.setDraggable(this._draggable),this._update(),this._map.on("click",this._onMapClick),this}remove(){return this._map&&(this._map.off("click",this._onMapClick),this._map.off("move",this._update),this._map.off("moveend",this._update),this._map.off("terrain",this._update),this._map.off("projectiontransition",this._update),this._map.off("idle",this._update),this._map.off("mousedown",this._addDragHandler),this._map.off("touchstart",this._addDragHandler),this._map.off("mouseup",this._onUp),this._map.off("touchend",this._onUp),this._map.off("mousemove",this._onMove),this._map.off("touchmove",this._onMove),delete this._map),this._element.removeEventListener("click",this._onClick),this._element.removeEventListener("keydown",this._onKeyDown),this._element.removeEventListener("keyup",this._onKeyUp),this._element.removeEventListener("blur",this._onBlur),this._element.removeEventListener("keypress",this._onKeyPress),this._keyboardDragActive=!1,this._element.remove(),this._popup&&this._popup.remove(),this}getLngLat(){return this._lngLat}setLngLat(e){return this._lngLat=Js.convert(e),this._pos=null,this._update(),this._popup&&this._popup.setLngLat(this._lngLat),this}getElement(){return this._element}setPopup(e){if(this._popup&&(this._popup.remove(),this._popup=null,this._element.removeEventListener("keypress",this._onKeyPress)),e){if(!("offset"in e.options)){let t=13.5/Math.SQRT2;e.options.offset=this._defaultMarker?{top:[0,0],"top-left":[0,0],"top-right":[0,0],bottom:[0,-38.1],"bottom-left":[t,(24.6+t)*-1],"bottom-right":[-t,(24.6+t)*-1],left:[13.5,-24.6],right:[-13.5,-24.6]}:this._offset}this._popup=e,this._element.addEventListener("keypress",this._onKeyPress)}return this._updateTabIndex(),this._updateAccessibilityRole(),this}setSubpixelPositioning(e){return this._subpixelPositioning=e,this}_endKeyboardDrag(){this._keyboardDragActive&&(this._keyboardDragActive=!1,this.fire(new x3("dragend")))}getPopup(){return this._popup}togglePopup(){let e=this._popup;if(this._element.style.opacity===this._opacityWhenCovered)return this;if(e)e.isOpen()?e.remove():(e.setLngLat(this._lngLat),e.addTo(this._map));else return this;return this}_updateOpacity(){var r;if(!this._isInViewport())return;let e=(r=this._map)==null?void 0:r.terrain,t=this._map._camera.transform.isLocationOccluded(this._lngLat);if(!e||t){let i=t?this._opacityWhenCovered:this._opacity;this._element.style.opacity!==i&&(this._element.style.opacity=i,this._element.classList.toggle("maplibregl-marker-covered",t));return}this._updateCovered()}_isInViewport(){let{width:e,height:t}=this._map._camera.transform;return!!this._pos&&this._pos.x>=0&&this._pos.y>=0&&this._pos.x<=e&&this._pos.y<=t}_isCovered(e){let t=this._map._camera.transform,r=e.getElevationForLngLat(this._lngLat,t),i=Math.max(0,-this._offset.y)/t.pixelsPerMeter,n=Math.sin(this._map.getPitch()*Math.PI/180)*i;return t.isLocationOccluded(this._lngLat,e,r+n)}getOffset(){return this._offset}setOffset(e){return this._offset=Zr.convert(e),this._update(),this}addClassName(e){this._element.classList.add(e)}removeClassName(e){this._element.classList.remove(e)}toggleClassName(e){return this._element.classList.toggle(e)}setDraggable(e){return this._draggable=!!e,this._element.classList.toggle("maplibregl-marker-draggable",this._draggable),this._map&&(e?(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._defaultMarker&&(this._draggable?(this._element.addEventListener("keydown",this._onKeyDown),this._element.addEventListener("keyup",this._onKeyUp),this._element.addEventListener("blur",this._onBlur)):(this._element.removeEventListener("keydown",this._onKeyDown),this._element.removeEventListener("keyup",this._onKeyUp),this._element.removeEventListener("blur",this._onBlur),this._endKeyboardDrag())),this._updateTabIndex(),this._updateAccessibilityRole(),this}isDraggable(){return this._draggable}_updateTabIndex(){this._popup||this._defaultMarker&&this._draggable?this._element.hasAttribute("tabindex")||(this._element.setAttribute("tabindex","0"),this._tabIndexManaged=!0):this._tabIndexManaged&&(this._tabIndexManaged=(this._element.getAttribute("tabindex")==="0"&&this._element.removeAttribute("tabindex"),!1))}_updateAccessibilityRole(){if(!this._defaultMarker||this._element.hasAttribute("role")&&!this._roleManaged)return;let e=this._draggable||this._popup?"button":"img";this._element.setAttribute("role",e),this._roleManaged=!0}setRotation(e){return this._rotation=e||0,this._update(),this}getRotation(){return this._rotation}setRotationAlignment(e){return this._rotationAlignment=e||"auto",this._update(),this}getRotationAlignment(){return this._rotationAlignment}setPitchAlignment(e){return this._pitchAlignment=e&&e!=="auto"?e:this._rotationAlignment,this._update(),this}getPitchAlignment(){return this._pitchAlignment}setOpacity(e,t){return(this._opacity===void 0||e===void 0&&t===void 0)&&(this._opacity="1",this._opacityWhenCovered="0.2"),e!==void 0&&(this._opacity=String(e)),t!==void 0&&(this._opacityWhenCovered=String(t)),this._map&&this._updateOpacity(),this}},JCr={positionOptions:{enableHighAccuracy:!1,maximumAge:0,timeout:6e3},fitBoundsOptions:{maxZoom:15},trackUserLocation:!1,showAccuracyCircle:!0,showUserLocation:!0},Qq=0,WC=!1,b3=class extends Gd{},boe=class extends Gd{},put=class extends Gd{},QCr=class extends ih{constructor(e){super(),this._onSuccess=t=>{if(this._map){if(this._isOutOfMapMaxBounds(t)){this._setErrorState(),this.fire(new boe("outofmaxbounds",t)),this._updateMarker(),this._finish();return}if(this.options.trackUserLocation)switch(this._lastKnownPosition=t,this._watchState){case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active");break;case"BACKGROUND":case"BACKGROUND_ERROR":this._watchState="BACKGROUND",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-background");break;default:throw Error(`Unexpected watchState ${this._watchState}`)}this.options.showUserLocation&&this._watchState!=="OFF"&&this._updateMarker(t),(!this.options.trackUserLocation||this._watchState==="ACTIVE_LOCK")&&this._updateCamera(t),this.options.showUserLocation&&this._dotElement.classList.remove("maplibregl-user-location-dot-stale"),this.fire(new boe("geolocate",t)),this._finish()}},this._updateCamera=t=>{let r=new Js(t.coords.longitude,t.coords.latitude),i=t.coords.accuracy,n=this._map.getBearing(),a=Hs({bearing:n},this.options.fitBoundsOptions),o=P1.fromLngLat(r,i);this._map.fitBounds(o,a,{geolocateSource:!0})},this._updateMarker=t=>{if(t){let r=new Js(t.coords.longitude,t.coords.latitude);this._accuracyCircleMarker.setLngLat(r).addTo(this._map),this._userLocationDotMarker.setLngLat(r).addTo(this._map),this._accuracy=t.coords.accuracy,this._updateCircleRadiusIfNeeded()}else this._userLocationDotMarker.remove(),this._accuracyCircleMarker.remove()},this._onUpdate=()=>{this._updateCircleRadiusIfNeeded()},this._onError=t=>{if(this._map){if(t.code===1){this._watchState="OFF",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background-error"),this._geolocateButton.disabled=!0;let r=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.title=r,this._geolocateButton.setAttribute("aria-label",r),this._geolocationWatchID!==void 0&&this._clearWatch()}else{if(t.code===3&&WC)return;this._setErrorState()}this._watchState!=="OFF"&&this.options.showUserLocation&&this._dotElement.classList.add("maplibregl-user-location-dot-stale"),this.fire(new put("error",t)),this._finish()}},this._finish=()=>{this._timeoutId&&clearTimeout(this._timeoutId),this._timeoutId=void 0},this._onMoveStart=t=>{if(!this._map)return;let r=(t==null?void 0:t[0])instanceof ResizeObserverEntry;!t.geolocateSource&&this._watchState==="ACTIVE_LOCK"&&!r&&!this._map.isZooming()&&(this._watchState="BACKGROUND",this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active"),this.fire(new b3("trackuserlocationend")),this.fire(new b3("userlocationlostfocus")))},this._setupUI=()=>{this._map&&(this._container.addEventListener("contextmenu",t=>{t.preventDefault()}),this._geolocateButton=Cl.create("button","maplibregl-ctrl-geolocate",this._container),Cl.create("span","maplibregl-ctrl-icon",this._geolocateButton).setAttribute("aria-hidden","true"),this._geolocateButton.type="button",this._geolocateButton.disabled=!0)},this._finishSetupUI=t=>{if(this._map){if(t===!1){lu("Geolocation support is not available so the GeolocateControl will be disabled.");let r=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.disabled=!0,this._geolocateButton.title=r,this._geolocateButton.setAttribute("aria-label",r)}else{let r=this._map._getUIString("GeolocateControl.FindMyLocation");this._geolocateButton.disabled=!1,this._geolocateButton.title=r,this._geolocateButton.setAttribute("aria-label",r)}this.options.trackUserLocation&&(this._geolocateButton.setAttribute("aria-pressed","false"),this._watchState="OFF"),this.options.showUserLocation&&(this._dotElement=Cl.create("div","maplibregl-user-location-dot"),this._userLocationDotMarker=new xoe({element:this._dotElement}),this._circleElement=Cl.create("div","maplibregl-user-location-accuracy-circle"),this._accuracyCircleMarker=new xoe({element:this._circleElement,pitchAlignment:"map"}),this.options.trackUserLocation&&(this._watchState="OFF"),this._map.on("zoom",this._onUpdate),this._map.on("move",this._onUpdate),this._map.on("rotate",this._onUpdate),this._map.on("pitch",this._onUpdate)),this._geolocateButton.addEventListener("click",()=>this.trigger()),this._setup=!0,this.options.trackUserLocation&&this._map.on("movestart",this._onMoveStart)}},this.options=Hs({},JCr,e)}onAdd(e){return this._map=e,this._container=Cl.create("div","maplibregl-ctrl maplibregl-ctrl-group"),this._setupUI(),XCr().then(t=>this._finishSetupUI(t)),this._container}onRemove(){this._geolocationWatchID!==void 0&&(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(),this._container.remove(),this._map.off("movestart",this._onMoveStart),this._map.off("zoom",this._onUpdate),this._map.off("move",this._onUpdate),this._map.off("rotate",this._onUpdate),this._map.off("pitch",this._onUpdate),this._map=void 0,Qq=0,WC=!1}_isOutOfMapMaxBounds(e){let t=this._map.getMaxBounds(),r=e.coords;return t&&(r.longitudet.getEast()||r.latitudet.getNorth())}_setErrorState(){switch(this._watchState){case"WAITING_ACTIVE":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active-error");break;case"ACTIVE_LOCK":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-waiting");break;case"BACKGROUND":this._watchState="BACKGROUND_ERROR",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-waiting");break;case"ACTIVE_ERROR":case"BACKGROUND_ERROR":break;case"OFF":case void 0:break;default:throw Error(`Unexpected watchState ${this._watchState}`)}}_updateCircleRadiusIfNeeded(){let e=this._userLocationDotMarker.getLngLat();if(!this.options.showUserLocation||!this.options.showAccuracyCircle||!this._accuracy||!e)return;let t=this._map.project(e),r=this._map.unproject([t.x+100,t.y]),i=e.distanceTo(r)/100,n=2*this._accuracy/i;this._circleElement.style.width=`${n.toFixed(2)}px`,this._circleElement.style.height=`${n.toFixed(2)}px`}trigger(){if(!this._setup)return lu("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 b3("trackuserlocationstart"));break;case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":case"BACKGROUND_ERROR":Qq--,WC=!1,this._watchState="OFF",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background-error"),this.fire(new b3("trackuserlocationend"));break;case"BACKGROUND":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background"),this._lastKnownPosition&&this._updateCamera(this._lastKnownPosition),this.fire(new b3("trackuserlocationstart")),this.fire(new b3("userlocationfocus"));break;default:throw Error(`Unexpected watchState ${this._watchState}`)}switch(this._watchState){case"WAITING_ACTIVE":this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active");break;case"ACTIVE_LOCK":this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active");break;case"OFF":break;default:throw Error(`Unexpected watchState ${this._watchState}`)}if(this._watchState==="OFF"&&this._geolocationWatchID!==void 0)this._clearWatch();else if(this._geolocationWatchID===void 0){this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","true"),Qq++;let e;Qq>1?(e={maximumAge:6e5,timeout:0},WC=!0):(e=this.options.positionOptions,WC=!1),this._geolocationWatchID=window.navigator.geolocation.watchPosition(this._onSuccess,this._onError,e)}}else window.navigator.geolocation.getCurrentPosition(this._onSuccess,this._onError,this.options.positionOptions),this._timeoutId=setTimeout(this._finish,1e4);return!0}_clearWatch(){window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0,this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","false"),this.options.showUserLocation&&this._updateMarker(null)}},eDr={maxWidth:100,unit:"metric"},tDr=class{constructor(e){this._onMove=()=>{kst(this._map,this._container,this.options)},this.setUnit=t=>{this.options.unit=t,kst(this._map,this._container,this.options)},this.options=Zs(Zs({},eDr),e)}getDefaultPosition(){return"bottom-left"}onAdd(e){return this._map=e,this._container=Cl.create("div","maplibregl-ctrl maplibregl-ctrl-scale",e.getContainer()),this._map.on("move",this._onMove),this._onMove(),this._container}onRemove(){this._container.remove(),this._map.off("move",this._onMove),this._map=void 0}};_oe=class extends Gd{},nDr=class extends ih{constructor(e={}){var t;super(),this._onFullscreenChange=()=>{var i;let r=window.document.fullscreenElement||window.document.webkitFullscreenElement;for(;(i=r==null?void 0:r.shadowRoot)!=null&&i.fullscreenElement;)r=r.shadowRoot.fullscreenElement;r===this._container!==this._fullscreen&&this._handleFullscreenChange()},this._onClickFullscreen=()=>{this._isFullscreen()?this._exitFullscreen():this._requestFullscreen()},this._fullscreen=!1,this._pseudo=(t=e.pseudo)!=null?t:!1,e!=null&&e.container&&(e.container instanceof HTMLElement?this._container=e.container:lu("Full screen control 'container' must be a DOM element.")),"onfullscreenchange"in document?this._fullscreenchange="fullscreenchange":"onmozfullscreenchange"in document?this._fullscreenchange="mozfullscreenchange":"onwebkitfullscreenchange"in document?this._fullscreenchange="webkitfullscreenchange":"onmsfullscreenchange"in document&&(this._fullscreenchange="MSFullscreenChange")}onAdd(e){return this._map=e,this._container||(this._container=this._map.getContainer()),this._controlContainer=Cl.create("div","maplibregl-ctrl maplibregl-ctrl-group"),this._setupUI(),this._controlContainer}onRemove(){this._controlContainer.remove(),this._map=null,window.document.removeEventListener(this._fullscreenchange,this._onFullscreenChange)}_setupUI(){let e=this._fullscreenButton=Cl.create("button","maplibregl-ctrl-fullscreen",this._controlContainer);Cl.create("span","maplibregl-ctrl-icon",e).setAttribute("aria-hidden","true"),e.type="button",this._updateTitle(),this._fullscreenButton.addEventListener("click",this._onClickFullscreen),window.document.addEventListener(this._fullscreenchange,this._onFullscreenChange)}_updateTitle(){let e=this._getTitle();this._fullscreenButton.setAttribute("aria-label",e),this._fullscreenButton.title=e}_getTitle(){return this._map._getUIString(this._isFullscreen()?"FullscreenControl.Exit":"FullscreenControl.Enter")}_isFullscreen(){return this._fullscreen}_handleFullscreenChange(){this._fullscreen=!this._fullscreen,this._fullscreenButton.classList.toggle("maplibregl-ctrl-shrink"),this._fullscreenButton.classList.toggle("maplibregl-ctrl-fullscreen"),this._updateTitle(),this._fullscreen?(this.fire(new _oe("fullscreenstart")),this._prevCooperativeGesturesEnabled=this._map.cooperativeGestures.isEnabled(),this._map.cooperativeGestures.disable()):(this.fire(new _oe("fullscreenend")),this._prevCooperativeGesturesEnabled&&this._map.cooperativeGestures.enable())}_exitFullscreen(){this._pseudo?this._togglePseudoFullScreen():window.document.exitFullscreen?window.document.exitFullscreen():window.document.webkitCancelFullScreen?window.document.webkitCancelFullScreen():this._togglePseudoFullScreen()}_requestFullscreen(){this._pseudo?this._togglePseudoFullScreen():this._container.requestFullscreen?this._container.requestFullscreen():this._container.webkitRequestFullscreen?this._container.webkitRequestFullscreen():this._togglePseudoFullScreen()}_togglePseudoFullScreen(){this._container.classList.toggle("maplibregl-pseudo-fullscreen"),this._handleFullscreenChange(),this._map.resize()}},aDr=class{constructor(e){this._toggleTerrain=()=>{this._map.getTerrain()?this._map.setTerrain(null):this._map.setTerrain(this.options),this._updateTerrainIcon()},this._updateTerrainIcon=()=>{this._terrainButton.classList.remove("maplibregl-ctrl-terrain"),this._terrainButton.classList.remove("maplibregl-ctrl-terrain-enabled"),this._map.terrain?(this._terrainButton.classList.add("maplibregl-ctrl-terrain-enabled"),this._terrainButton.title=this._map._getUIString("TerrainControl.Disable")):(this._terrainButton.classList.add("maplibregl-ctrl-terrain"),this._terrainButton.title=this._map._getUIString("TerrainControl.Enable"))},this.options=e}onAdd(e){return this._map=e,this._container=Cl.create("div","maplibregl-ctrl maplibregl-ctrl-group"),this._terrainButton=Cl.create("button","maplibregl-ctrl-terrain",this._container),Cl.create("span","maplibregl-ctrl-icon",this._terrainButton).setAttribute("aria-hidden","true"),this._terrainButton.type="button",this._terrainButton.addEventListener("click",this._toggleTerrain),this._updateTerrainIcon(),this._map.on("terrain",this._updateTerrainIcon),this._container}onRemove(){this._container.remove(),this._map.off("terrain",this._updateTerrainIcon),this._map=void 0}},oDr=class{constructor(){this._toggleProjection=()=>{var t;let e=(t=this._map.getProjection())==null?void 0:t.type;e==="mercator"||!e?this._map.setProjection({type:"globe"}):this._map.setProjection({type:"mercator"}),this._updateGlobeIcon()},this._updateGlobeIcon=()=>{var e;this._globeButton.classList.remove("maplibregl-ctrl-globe"),this._globeButton.classList.remove("maplibregl-ctrl-globe-enabled"),((e=this._map.getProjection())==null?void 0:e.type)==="globe"?(this._globeButton.classList.add("maplibregl-ctrl-globe-enabled"),this._globeButton.title=this._map._getUIString("GlobeControl.Disable")):(this._globeButton.classList.add("maplibregl-ctrl-globe"),this._globeButton.title=this._map._getUIString("GlobeControl.Enable"))}}onAdd(e){return this._map=e,this._container=Cl.create("div","maplibregl-ctrl maplibregl-ctrl-group"),this._globeButton=Cl.create("button","maplibregl-ctrl-globe",this._container),Cl.create("span","maplibregl-ctrl-icon",this._globeButton).setAttribute("aria-hidden","true"),this._globeButton.type="button",this._globeButton.addEventListener("click",this._toggleProjection),this._updateGlobeIcon(),this._map.on("styledata",this._updateGlobeIcon),this._map.on("projectiontransition",this._updateGlobeIcon),this._container}onRemove(){this._container.remove(),this._map.off("styledata",this._updateGlobeIcon),this._map.off("projectiontransition",this._updateGlobeIcon),this._globeButton.removeEventListener("click",this._toggleProjection),this._map=void 0}},sDr={closeButton:!0,closeOnClick:!0,focusAfterOpen:!0,className:"",maxWidth:"240px",subpixelPositioning:!1,locationOccludedOpacity:void 0,padding:void 0},lDr=["a[href]","[tabindex]:not([tabindex='-1'])","[contenteditable]:not([contenteditable='false'])","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].join(", "),woe=class extends Gd{},uDr=class extends ih{constructor(e){super(),this._updateOpacity=()=>{this.options.locationOccludedOpacity!==void 0&&(this._map._camera.transform.isLocationOccluded(this.getLngLat())?this._container.style.opacity=`${this.options.locationOccludedOpacity}`:this._container.style.opacity="")},this.remove=()=>(this._content&&this._content.remove(),this._container&&(this._container.remove(),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("terrain",this._update),this._map.off("projectiontransition",this._update),this._map.off("idle",this._update),this._map.off("mousemove",this._update),this._map.off("mouseup",this._update),this._map.off("drag",this._update),this._map._canvasContainer.classList.remove("maplibregl-track-pointer"),delete this._map,this.fire(new woe("close"))),this),this._update=t=>{let r=this._lngLat||this._trackPointer;if(!this._map||!r||!this._content)return;if(!this._container){if(this._container=Cl.create("div","maplibregl-popup",this._map.getContainer()),this._tip=Cl.create("div","maplibregl-popup-tip",this._container),this._container.appendChild(this._content),this.options.className)for(let l of this.options.className.split(" "))this._container.classList.add(l);this._closeButton&&this._closeButton.setAttribute("aria-label",this._map._getUIString("Popup.Close")),this._trackPointer&&this._container.classList.add("maplibregl-popup-track-pointer")}this.options.maxWidth&&this._container.style.maxWidth!==this.options.maxWidth&&(this._container.style.maxWidth=this.options.maxWidth),this._lngLat=fut(this._lngLat,this._flatPos,this._map._camera.transform,this._trackPointer);let i;if(t&&"point"in t&&t.point&&(i=t.point),this._trackPointer&&!i)return;let n=this._flatPos=this._pos=this._trackPointer&&i?i:this._map.project(this._lngLat);this._map.terrain&&(this._flatPos=this._trackPointer&&i?i:this._map._camera.transform.locationToScreenPoint(this._lngLat));let a=this.options.anchor,o=vut(this.options.offset);if(!a){let l=this._container.offsetWidth,u=this._container.offsetHeight,f=fDr(this.options.padding),c;c=n.y+o.bottom.ythis._map._camera.transform.height-u-f.bottom?["bottom"]:[],n.xthis._map._camera.transform.width-l/2-f.right&&c.push("right"),a=c.length===0?"bottom":c.join("-")}let s=n.add(o[a]);this.options.subpixelPositioning||(s=s.round()),this._container.style.transform=`${Hoe[a]} translate(${s.x}px,${s.y}px)`,cut(this._container,a,"popup"),this._updateOpacity()},this._onClose=()=>{this.remove()},this.options=Hs(Object.create(sDr),e)}addTo(e){return this._map&&this.remove(),this._map=e,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._map.on("terrain",this._update),this._map.on("projectiontransition",this._update),this._map.on("idle",this._update),this._update(),this._focusFirstElement(),this._trackPointer?(this._map.on("mousemove",this._update),this._map.on("mouseup",this._update),this._container&&this._container.classList.add("maplibregl-popup-track-pointer"),this._map._canvasContainer.classList.add("maplibregl-track-pointer")):this._map.on("move",this._update),this.fire(new woe("open")),this}isOpen(){return!!this._map}getLngLat(){return this._lngLat}setLngLat(e){return this._lngLat=Js.convert(e),this._pos=null,this._flatPos=null,this._trackPointer=!1,this._update(),this._map&&(this._map.on("move",this._update),this._map.off("mousemove",this._update),this._container&&this._container.classList.remove("maplibregl-popup-track-pointer"),this._map._canvasContainer.classList.remove("maplibregl-track-pointer")),this}trackPointer(){return this._trackPointer=!0,this._pos=null,this._flatPos=null,this._update(),this._map&&(this._map.off("move",this._update),this._map.on("mousemove",this._update),this._map.on("drag",this._update),this._container&&this._container.classList.add("maplibregl-popup-track-pointer"),this._map._canvasContainer.classList.add("maplibregl-track-pointer")),this}getElement(){return this._container}setText(e){return this.setDOMContent(document.createTextNode(e))}setHTML(e){let t=document.createDocumentFragment(),r=document.createElement("body"),i;for(r.innerHTML=e;i=r.firstChild,i;)t.appendChild(i);return this.setDOMContent(t)}getMaxWidth(){var e;return(e=this._container)==null?void 0:e.style.maxWidth}setMaxWidth(e){return this.options.maxWidth=e,this._update(),this}setDOMContent(e){if(this._content)for(;this._content.hasChildNodes();)this._content.firstChild&&this._content.removeChild(this._content.firstChild);else this._content=Cl.create("div","maplibregl-popup-content",this._container);return this._content.appendChild(e),this._createCloseButton(),this._update(),this._focusFirstElement(),this}addClassName(e){return this._container&&this._container.classList.add(e),this}removeClassName(e){return this._container&&this._container.classList.remove(e),this}setOffset(e){return this.options.offset=e,this._update(),this}toggleClassName(e){if(this._container)return this._container.classList.toggle(e)}setSubpixelPositioning(e){this.options.subpixelPositioning=e}setPadding(e){this.options.padding=e,this._update()}_createCloseButton(){this.options.closeButton&&(this._closeButton=Cl.create("button","maplibregl-popup-close-button",this._content),this._closeButton.type="button",this._closeButton.innerHTML="×",this._closeButton.addEventListener("click",this._onClose))}_focusFirstElement(){if(!this.options.focusAfterOpen||!this._container)return;let e=this._container.querySelector(lDr);e&&e.focus()}};cDr=Cst});var but=K((xfi,xut)=>{"use strict";xut.exports='var D1=Object.defineProperty,_1=Object.defineProperties;var A1=Object.getOwnPropertyDescriptors;var lh=Object.getOwnPropertySymbols;var S1=Object.prototype.hasOwnProperty,E1=Object.prototype.propertyIsEnumerable;var uh=(t,e,r)=>e in t?D1(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Xe=(t,e)=>{for(var r in e||(e={}))S1.call(e,r)&&uh(t,r,e[r]);if(lh)for(var r of lh(e))E1.call(e,r)&&uh(t,r,e[r]);return t},Si=(t,e)=>_1(t,A1(e));var et=(t,e,r)=>new Promise((i,n)=>{var a=l=>{try{o(r.next(l))}catch(u){n(u)}},s=l=>{try{o(r.throw(l))}catch(u){n(u)}},o=l=>l.done?i(l.value):Promise.resolve(l.value).then(a,s);o((r=r.apply(t,e)).next())});var F1=Object.create,Dp=Object.defineProperty,T1=Object.getOwnPropertyDescriptor,k1=Object.getOwnPropertyNames,I1=Object.getPrototypeOf,_p=Object.prototype.hasOwnProperty,ml=(t,e)=>()=>(e||(t((e={exports:{}}).exports,e),t=null),e.exports),C1=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(var n=k1(e),a=0,s=n.length,o;ae[l]).bind(null,o),enumerable:!(i=T1(e,o))||i.enumerable});return t},M1=(t,e,r)=>(r=t==null?{}:F1(I1(t)),C1(e||!t||!t.__esModule||!_p.call(t,"default")?Dp(r,"default",{value:t,enumerable:!0}):r,t));function M(t,e){this.x=t,this.y=e}M.prototype={clone(){return new M(this.x,this.y)},add(t){return this.clone()._add(t)},sub(t){return this.clone()._sub(t)},multByPoint(t){return this.clone()._multByPoint(t)},divByPoint(t){return this.clone()._divByPoint(t)},mult(t){return this.clone()._mult(t)},div(t){return this.clone()._div(t)},rotate(t){return this.clone()._rotate(t)},rotateAround(t,e){return this.clone()._rotateAround(t,e)},matMult(t){return this.clone()._matMult(t)},unit(){return this.clone()._unit()},perp(){return this.clone()._perp()},round(){return this.clone()._round()},mag(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals(t){return this.x===t.x&&this.y===t.y},dist(t){return Math.sqrt(this.distSqr(t))},distSqr(t){let e=t.x-this.x,r=t.y-this.y;return e*e+r*r},angle(){return Math.atan2(this.y,this.x)},angleTo(t){return Math.atan2(this.y-t.y,this.x-t.x)},angleWith(t){return this.angleWithSep(t.x,t.y)},angleWithSep(t,e){return Math.atan2(this.x*e-this.y*t,this.x*t+this.y*e)},_matMult(t){let e=t[0]*this.x+t[1]*this.y,r=t[2]*this.x+t[3]*this.y;return this.x=e,this.y=r,this},_add(t){return this.x+=t.x,this.y+=t.y,this},_sub(t){return this.x-=t.x,this.y-=t.y,this},_mult(t){return this.x*=t,this.y*=t,this},_div(t){return this.x/=t,this.y/=t,this},_multByPoint(t){return this.x*=t.x,this.y*=t.y,this},_divByPoint(t){return this.x/=t.x,this.y/=t.y,this},_unit(){return this._div(this.mag()),this},_perp(){let t=this.y;return this.y=this.x,this.x=-t,this},_rotate(t){let e=Math.cos(t),r=Math.sin(t),i=e*this.x-r*this.y,n=r*this.x+e*this.y;return this.x=i,this.y=n,this},_rotateAround(t,e){let r=Math.cos(t),i=Math.sin(t),n=e.x+r*(this.x-e.x)-i*(this.y-e.y),a=e.y+i*(this.x-e.x)+r*(this.y-e.y);return this.x=n,this.y=a,this},_round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},constructor:M},M.convert=function(t){if(t instanceof M)return t;if(Array.isArray(t))return new M(+t[0],+t[1]);if(t.x!==void 0&&t.y!==void 0)return new M(+t.x,+t.y);throw Error("Expected [x, y] or {x, y} point format")};function B1(t,e,r,i){let n=3*t,a=3*(r-t)-n,s=1-n-a,o=3*e,l=3*(i-e)-o,u=1-o-l;return function(h,c=1e-6){if(h<=0)return 0;if(h>=1)return 1;let p=h;for(let y=0;y<8;y++){let m=((s*p+a)*p+n)*p-h;if(Math.abs(m)m?f=p:d=p,p=(f+d)*.5}return((u*p+l)*p+o)*p}}var Ei;function P1(){return Ei!=null||(Ei=typeof OffscreenCanvas<"u"&&!!new OffscreenCanvas(1,1).getContext("2d")&&typeof createImageBitmap=="function"),Ei}var Xn;function z1(){if(Xn==null&&(Xn=!1,P1())){let t=new OffscreenCanvas(5,5).getContext("2d",{willReadFrequently:!0});if(t){for(let r=0;r<25;r++){let i=r*4;t.fillStyle=`rgb(${i},${i+1},${i+2})`,t.fillRect(r%5,Math.floor(r/5),1,1)}let e=t.getImageData(0,0,5,5).data;for(let r=0;r<100;r++)if(r%4!=3&&e[r]!==r){Xn=!0;break}}}return Xn||!1}var fe=typeof Float32Array<"u"?Float32Array:Array;function L1(){var t=new fe(9);return fe!=Float32Array&&(t[1]=0,t[2]=0,t[3]=0,t[5]=0,t[6]=0,t[7]=0),t[0]=1,t[4]=1,t[8]=1,t}function Ap(){var t=new fe(3);return fe!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0),t}function V1(t){var e=t[0],r=t[1],i=t[2];return Math.sqrt(e*e+r*r+i*i)}function hh(t,e,r){var i=new fe(3);return i[0]=t,i[1]=e,i[2]=r,i}function O1(t,e){var r=e[0],i=e[1],n=e[2],a=r*r+i*i+n*n;return a>0&&(a=1/Math.sqrt(a)),t[0]=e[0]*a,t[1]=e[1]*a,t[2]=e[2]*a,t}function R1(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function ks(t,e,r){var i=e[0],n=e[1],a=e[2],s=r[0],o=r[1],l=r[2];return t[0]=n*l-a*o,t[1]=a*s-i*l,t[2]=i*o-n*s,t}var $1=V1;(function(){var t=Ap();return function(e,r,i,n,a,s){var o,l;for(r||(r=3),i||(i=0),l=n?Math.min(n*r+i,e.length):e.length,o=i;o0&&(s=1/Math.sqrt(s)),t[0]=r*s,t[1]=i*s,t[2]=n*s,t[3]=a*s,t}function q1(t,e,r){var i=e[0],n=e[1],a=e[2],s=e[3];return t[0]=r[0]*i+r[4]*n+r[8]*a+r[12]*s,t[1]=r[1]*i+r[5]*n+r[9]*a+r[13]*s,t[2]=r[2]*i+r[6]*n+r[10]*a+r[14]*s,t[3]=r[3]*i+r[7]*n+r[11]*a+r[15]*s,t}(function(){var t=N1();return function(e,r,i,n,a,s){var o,l;for(r||(r=4),i||(i=0),l=n?Math.min(n*r+i,e.length):e.length,o=i;o1e-6?(p=Math.acos(f),d=Math.sin(p),y=Math.sin((1-i)*p)/d,m=Math.sin(i*p)/d):(y=1-i,m=i),t[0]=y*n+m*l,t[1]=y*a+m*u,t[2]=y*s+m*h,t[3]=y*o+m*c,t}function G1(t,e){var r=e[0]+e[4]+e[8],i;if(r>0)i=Math.sqrt(r+1),t[3]=.5*i,i=.5/i,t[0]=(e[5]-e[7])*i,t[1]=(e[6]-e[2])*i,t[2]=(e[1]-e[3])*i;else{var n=0;e[4]>e[0]&&(n=1),e[8]>e[n*3+n]&&(n=2);var a=(n+1)%3,s=(n+2)%3;i=Math.sqrt(e[n*3+n]-e[a*3+a]-e[s*3+s]+1),t[n]=.5*i,i=.5/i,t[3]=(e[a*3+s]-e[s*3+a])*i,t[a]=(e[a*3+n]+e[n*3+a])*i,t[s]=(e[s*3+n]+e[n*3+s])*i}return t}var ph=U1;(function(){var t=Ap(),e=hh(1,0,0),r=hh(0,1,0);return function(i,n,a){var s=R1(n,a);return s<-.999999?(ks(t,e,n),$1(t)<1e-6&&ks(t,r,n),O1(t,t),j1(i,t,Math.PI),i):s>.999999?(i[0]=0,i[1]=0,i[2]=0,i[3]=1,i):(ks(t,n,a),i[0]=t[0],i[1]=t[1],i[2]=t[2],i[3]=1+s,ph(i,i))}})(),(function(){var t=ch(),e=ch();return function(r,i,n,a,s,o){return Is(t,i,s,o),Is(e,n,a,o),Is(r,t,e,2*o*(1-o)),r}})(),(function(){var t=L1();return function(e,r,i,n){return t[0]=i[0],t[3]=i[1],t[6]=i[2],t[1]=n[0],t[4]=n[1],t[7]=n[2],t[2]=-r[0],t[5]=-r[1],t[8]=-r[2],ph(e,G1(e,t))}})();function X1(){var t=new fe(2);return fe!=Float32Array&&(t[0]=0,t[1]=0),t}(function(){var t=X1();return function(e,r,i,n,a,s){var o,l;for(r||(r=2),i||(i=0),l=n?Math.min(n*r+i,e.length):e.length,o=i;o=1)return 1;let e=t*t,r=e*t;return 4*(t<.5?r:3*(t-e)+r-.75)}function W1(t,e,r,i){return B1(t,e,r,i)}var D5=W1(.25,.1,.25,1);function en(t,e,r){return Math.min(r,Math.max(e,t))}function Z1(t,e,r){let i=r-e,n=((t-e)%i+i)%i+e;return n===e?r:n}function Xt(t,...e){for(let r of e)for(let i in r)t[i]=r[i];return t}function H1(t){return Math.log(t)/Math.LN2%1==0}function xn(t,e,r){let i={};for(let n in t)i[n]=e.call(r||this,t[n],n,t);return i}function K1(t,e,r){let i={};for(let n in t)e.call(r||this,t[n],n,t)&&(i[n]=t[n]);return i}function to(t,e){if(Array.isArray(t)){if(!Array.isArray(e)||t.length!==e.length)return!1;for(let r=0;r(e.y-t.y)*(r.x-t.x)}function vr(t){return typeof WorkerGlobalScope<"u"&&t!==void 0&&t instanceof WorkerGlobalScope}function Ba(t){return typeof ImageBitmap<"u"&&t instanceof ImageBitmap}function J1(t,e,r,i,n){let a=Math.max(-e,0)*4,s=(Math.max(0,r)-r)*i*4+a,o=i*4,l=Math.max(0,e),u=Math.max(0,r),h=Math.min(t.width,e+i),c=Math.min(t.height,r+n);return{rect:{x:l,y:u,width:h-l,height:c-u},layout:[{offset:s,stride:o}]}}function Q1(t,e,r,i,n){return et(this,null,function*(){if(typeof VideoFrame>"u")throw Error("VideoFrame not supported");let a=new VideoFrame(t,{timestamp:0});try{let s=a==null?void 0:a.format;if(!s||!(s.startsWith("BGR")||s.startsWith("RGB")))throw Error(`Unrecognized format ${s}`);let o=s.startsWith("BGR"),l=new Uint8ClampedArray(i*n*4);if(yield a.copyTo(l,J1(t,e,r,i,n)),o)for(let u=0;u{t.removeEventListener(e,r,i)}}}function yh(t){return t*Math.PI/180}var mh="AbortError",gl=class extends Error{constructor(t=mh){super(t instanceof Error?t.message:t),this.name=mh,t instanceof Error&&t.stack&&(this.stack=t.stack)}};function xl(t){return t instanceof Error&&t.name==="AbortError"}function e0(t){if(t.aborted)throw new gl(t.reason)}var vl={MAX_PARALLEL_IMAGE_REQUESTS:16,MAX_PARALLEL_IMAGE_REQUESTS_PER_FRAME:8,MAX_TILE_CACHE_ZOOM_LEVELS:5,REGISTERED_PROTOCOLS:{},WORKER_URL:""};function r0(t){return vl.REGISTERED_PROTOCOLS[t.substring(0,t.indexOf("://"))]}function Fp(t,e){vl.REGISTERED_PROTOCOLS[t]=e}function Tp(t){delete vl.REGISTERED_PROTOCOLS[t]}var gh="global-dispatcher",ga=class extends Error{constructor(t,e,r,i){super(`AJAXError: ${e} (${t}): ${r}`),this.status=t,this.statusText=e,this.url=r,this.body=i}};function kp(){var t;if(vr(self))return(t=self.worker)==null?void 0:t.referrer;if(window.location.protocol==="blob:")try{return window.parent.location.href}catch(e){}return window.location.href}var i0=t=>{var e;return t.startsWith("file:")||((e=kp())==null?void 0:e.startsWith("file:"))&&!/^\\w+:/.test(t)};function n0(t,e){return et(this,null,function*(){let r=new Request(t.url,{method:t.method||"GET",body:t.body,credentials:t.credentials,headers:t.headers,cache:t.cache,referrer:kp(),referrerPolicy:t.referrerPolicy,signal:e.signal});t.type==="json"&&!r.headers.has("Accept")&&r.headers.set("Accept","application/json");let i;try{i=yield fetch(r)}catch(s){throw xl(s)?s:new ga(0,tn(s).message,t.url,new Blob)}if(!i.ok){let s=yield i.blob();throw new ga(i.status,i.statusText,t.url,s)}let n;n=t.type==="arrayBuffer"||t.type==="image"?i.arrayBuffer():t.type==="json"?i.json():i.text();let a=yield n;return e0(e.signal),{data:a,cacheControl:i.headers.get("Cache-Control"),expires:i.headers.get("Expires"),etag:i.headers.get("ETag")}})}function a0(t,e){return new Promise((r,i)=>{var a;let n=new XMLHttpRequest;n.open(t.method||"GET",t.url,!0),(t.type==="arrayBuffer"||t.type==="image")&&(n.responseType="arraybuffer");for(let s in t.headers)n.setRequestHeader(s,t.headers[s]);t.type==="json"&&(n.responseType="text",(a=t.headers)!=null&&a.Accept||n.setRequestHeader("Accept","application/json")),n.withCredentials=t.credentials==="include",n.onerror=()=>{i(Error(n.statusText))},n.onload=()=>{if(!e.signal.aborted)if((n.status>=200&&n.status<300||n.status===0)&&n.response!==null){let s=n.response;if(t.type==="json")try{s=JSON.parse(n.response)}catch(o){i(o);return}r({data:s,cacheControl:n.getResponseHeader("Cache-Control"),expires:n.getResponseHeader("Expires"),etag:n.getResponseHeader("ETag")})}else{let s=new Blob([n.response],{type:n.getResponseHeader("Content-Type")});i(new ga(n.status,n.statusText,t.url,s))}},e.signal.addEventListener("abort",()=>{n.abort(),i(new gl(e.signal.reason))}),n.send(t.body)})}var Pa=function(t,e){return et(this,null,function*(){var r,i;if(t.url.includes("://")&&!/^https?:|^file:/.test(t.url)){let n=r0(t.url);if(n){let a=yield n(t,e);return!a.data&&t.type==="arrayBuffer"?Xt(a,{data:new ArrayBuffer(0)}):a}if(vr(self)&&((r=self.worker)!=null&&r.actor))return self.worker.actor.sendAsync({type:"GR",data:t,targetMapId:gh},e)}if(!i0(t.url)){if(fetch&&Request&&AbortController&&Object.hasOwn(Request.prototype,"signal"))return n0(t,e);if(vr(self)&&((i=self.worker)!=null&&i.actor))return self.worker.actor.sendAsync({type:"GR",data:t,mustQueue:!0,targetMapId:gh},e)}return a0(t,e)})},Ip=(t,e)=>Pa(Xt(t,{type:"json"}),e),Cp=(t,e)=>Pa(Xt(t,{type:"arrayBuffer"}),e);function xh(t,e,r){var i;(i=r[t])!=null&&i.includes(e)||(r[t]||(r[t]=[]),r[t].push(e))}function Cs(t,e,r){if(r!=null&&r[t]){let i=r[t].indexOf(e);i!==-1&&r[t].splice(i,1)}}var Mp=class{constructor(t,e={}){Xt(this,e),this.type=t}},xa=class extends Mp{constructor(t,e={}){super("error",Xt({error:t},e))}},s0=class{on(t,e){return this._listeners||(this._listeners={}),xh(t,e,this._listeners),{unsubscribe:()=>{this.off(t,e)}}}off(t,e){return Cs(t,e,this._listeners),Cs(t,e,this._oneTimeListeners),this}once(t,e){return e?(this._oneTimeListeners||(this._oneTimeListeners={}),xh(t,e,this._oneTimeListeners),this):new Promise(r=>this.once(t,r))}fire(t,e){var n,a,s,o,l,u;let r=typeof t=="string"?new Mp(t,e||{}):t,i=r.type;if(this.listens(i)){r.target=this;let h=(s=(a=(n=this._listeners)==null?void 0:n[i])==null?void 0:a.slice())!=null?s:[];for(let f of h)f.call(this,r);let c=(u=(l=(o=this._oneTimeListeners)==null?void 0:o[i])==null?void 0:l.slice())!=null?u:[];for(let f of c)Cs(i,f,this._oneTimeListeners),f.call(this,r);let p=this._eventedParent;p&&(Xt(r,typeof this._eventedParentData=="function"?this._eventedParentData():this._eventedParentData),p.fire(r))}else r instanceof xa&&console.error(r.error);return this}listens(t){var e,r,i,n,a;return!!((r=(e=this._listeners)==null?void 0:e[t])!=null&&r.length||(n=(i=this._oneTimeListeners)==null?void 0:i[t])!=null&&n.length||(a=this._eventedParent)!=null&&a.listens(t))}setEventedParent(t,e){return this._eventedParent=t,this._eventedParentData=e,this}},Bp={$version:8,$root:{version:{required:!0,type:"enum",values:[8]},name:{type:"string"},metadata:{type:"*"},center:{type:"array",value:"number",length:2},centerAltitude:{type:"number"},zoom:{type:"number"},bearing:{type:"number",default:0,period:360,units:"degrees"},pitch:{type:"number",default:0,units:"degrees"},roll:{type:"number",default:0,units:"degrees"},state:{type:"state",default:{}},light:{type:"light"},sky:{type:"sky"},projection:{type:"projection"},terrain:{type:"terrain"},sources:{required:!0,type:"sources"},sprite:{type:"sprite"},glyphs:{type:"string"},"font-faces":{type:"fontFaces"},transition:{type:"transition"},layers:{required:!0,type:"array",value:"layer"}},sources:{"*":{type:"source"}},source:["source_vector","source_raster","source_raster_dem","source_geojson","source_video","source_image"],source_vector:{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},encoding:{type:"enum",values:{mvt:{},mlt:{}},default:"mvt"},"*":{type:"*"}},source_raster:{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:"*"}},source_raster_dem:{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:{},custom:{}},default:"mapbox"},redFactor:{type:"number",default:1},blueFactor:{type:"number",default:1},greenFactor:{type:"number",default:1},baseShift:{type:"number",default:0},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_geojson:{type:{required:!0,type:"enum",values:{geojson:{}}},data:{required:!0,type:"*"},maxzoom:{type:"number",default:18},attribution:{type:"string"},buffer:{type:"number",default:128,maximum:512,minimum:0},filter:{type:"filter"},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"}},source_video:{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"}}},source_image:{type:{required:!0,type:"enum",values:{image:{}}},url:{type:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},layer:{id:{type:"string",required:!0},type:{type:"enum",values:{fill:{},line:{},symbol:{},circle:{},heatmap:{},"fill-extrusion":{},raster:{},hillshade:{},"color-relief":{},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"}},layout:["layout_fill","layout_line","layout_circle","layout_heatmap","layout_fill-extrusion","layout_symbol","layout_raster","layout_hillshade","layout_color-relief","layout_background"],layout_background:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible",expression:{interpolated:!1,parameters:["global-state"]},"property-type":"data-constant"}},layout_fill:{"fill-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible",expression:{interpolated:!1,parameters:["global-state"]},"property-type":"data-constant"}},layout_circle:{"circle-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible",expression:{interpolated:!1,parameters:["global-state"]},"property-type":"data-constant"}},layout_heatmap:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible",expression:{interpolated:!1,parameters:["global-state"]},"property-type":"data-constant"}},"layout_fill-extrusion":{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible",expression:{interpolated:!1,parameters:["global-state"]},"property-type":"data-constant"},"fill-extrusion-rounded-corner-distance":{type:"number",default:0,minimum:0,units:"meters","property-type":"constant"}},layout_line:{"line-cap":{type:"enum",values:{butt:{},round:{},square:{}},default:"butt",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"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","feature"]},"property-type":"data-driven"},"line-round-limit":{type:"number",default:1.05,requires:[{"line-join":"round"}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible",expression:{interpolated:!1,parameters:["global-state"]},"property-type":"data-constant"}},layout_symbol:{"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",{"!":"icon-overlap"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-overlap":{type:"enum",values:{never:{},always:{},cooperative:{}},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","feature"]},"property-type":"data-driven"},"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:"padding",default:[2],units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"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:{},"viewport-glyph":{},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-variable-anchor-offset":{type:"variableAnchorOffsetCollection",requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"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",{"!":"text-overlap"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-overlap":{type:"enum",values:{never:{},always:{},cooperative:{}},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"},"symbol-height-offset":{type:"number",default:0,units:"meters",requires:[{"symbol-placement":["point"]}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"symbol-height-anchor":{type:"enum",values:{ground:{},absolute:{}},default:"ground",requires:["symbol-height-offset"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible",expression:{interpolated:!1,parameters:["global-state"]},"property-type":"data-constant"}},layout_raster:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible",expression:{interpolated:!1,parameters:["global-state"]},"property-type":"data-constant"}},layout_hillshade:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible",expression:{interpolated:!1,parameters:["global-state"]},"property-type":"data-constant"}},"layout_color-relief":{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible",expression:{interpolated:!1,parameters:["global-state"]},"property-type":"data-constant"}},filter:{type:"boolean",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},filter_operator:{type:"enum",values:{"==":{},"!=":{},">":{},">=":{},"<":{},"<=":{},in:{},"!in":{},all:{},any:{},none:{},has:{},"!has":{}}},geometry_type:{type:"enum",values:{Point:{},LineString:{},Polygon:{}}},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:{type:"array",minimum:0,maximum:24,value:["number","color"],length:2},expression:{type:"array",value:"expression_name",minimum:1},light:{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}},sky:{"sky-color":{type:"color","property-type":"data-constant",default:"#88C6FC",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"horizon-color":{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"fog-color":{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"fog-ground-blend":{type:"number","property-type":"data-constant",default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"horizon-fog-blend":{type:"number","property-type":"data-constant",default:.8,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"sky-horizon-blend":{type:"number","property-type":"data-constant",default:.8,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"atmosphere-blend":{type:"number","property-type":"data-constant",default:.8,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0}},terrain:{source:{type:"string",required:!0},exaggeration:{type:"number",minimum:0,default:1}},projection:{type:{type:"projectionDefinition",default:"mercator","property-type":"data-constant",transition:!1,expression:{interpolated:!0,parameters:["zoom"]}}},paint:["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_symbol","paint_raster","paint_hillshade","paint_color-relief","paint_background"],paint_fill:{"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-layer-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","global-state"]},"property-type":"data-constant"},"fill-color":{type:"color",default:"#000000",transition:!0,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"}},"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,units:"meters",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{type:"number",default: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:{"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-layer-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","global-state"]},"property-type":"data-constant"},"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","feature"]},"property-type":"cross-faded-data-driven"},"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"}},paint_circle:{"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"}},paint_heatmap:{"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"}},paint_symbol:{"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"}},paint_raster:{"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"},resampling:{type:"enum",values:{linear:{},nearest:{}},default:"linear",expression:{interpolated:!1,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"}},paint_hillshade:{"hillshade-illumination-direction":{type:"numberArray",default:335,minimum:0,maximum:359,transition:!1,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-illumination-altitude":{type:"numberArray",default:45,minimum:0,maximum:90,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:"colorArray",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-highlight-color":{type:"colorArray",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"},"hillshade-method":{type:"enum",values:{standard:{},basic:{},combined:{},igor:{},multidirectional:{}},default:"standard",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},resampling:{type:"enum",values:{linear:{},nearest:{}},default:"linear",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},"paint_color-relief":{"color-relief-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"color-relief-color":{type:"color",transition:!1,expression:{interpolated:!0,parameters:["elevation"]},"property-type":"color-ramp"},resampling:{type:"enum",values:{linear:{},nearest:{}},default:"linear",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_background:{"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"}},transition:{duration:{type:"number",default:300,minimum:0,units:"milliseconds"},delay:{type:"number",default:0,minimum:0,units:"milliseconds"}},"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:{"*":{type:"string"}},interpolation:{type:"array",value:"interpolation_name",minimum:1},interpolation_name:{type:"enum",values:{linear:{syntax:{overloads:[{parameters:[],"output-type":"interpolation"}],parameters:[]}},exponential:{syntax:{overloads:[{parameters:["base"],"output-type":"interpolation"}],parameters:[{name:"base",type:"number literal"}]}},"cubic-bezier":{syntax:{overloads:[{parameters:["x1","y1","x2","y2"],"output-type":"interpolation"}],parameters:[{name:"x1",type:"number literal"},{name:"y1",type:"number literal"},{name:"x2",type:"number literal"},{name:"y2",type:"number literal"}]}}}}},D=Bp,Pp=["type","source","source-layer","minzoom","maxzoom","filter","layout"],E=class{constructor(t,e,r,i,n="error"){this.message=(t?`${t}: `:"")+r,i&&(this.identifier=i),this.severity=n,e!=null&&e.__line__&&(this.line=e.__line__)}},vn={kind:"null"},I={kind:"number"},W={kind:"string"},Q={kind:"boolean"},pe={kind:"color"},za={kind:"projectionDefinition"},mr={kind:"object"},H={kind:"value"},o0={kind:"error"},La={kind:"collator"},bn={kind:"formatted"},Va={kind:"padding"},rn={kind:"colorArray"},Oa={kind:"numberArray"},wn={kind:"resolvedImage"},Ra={kind:"variableAnchorOffsetCollection"};function Ut(t,e){return{kind:"array",itemType:t,N:e}}function mt(t){if(t.kind==="array"){let e=mt(t.itemType);return typeof t.N=="number"?`array<${e}, ${t.N}>`:t.itemType.kind==="value"?"array":`array<${e}>`}return t.kind}var l0=[vn,I,W,Q,pe,za,bn,mr,Ut(H),Va,Oa,rn,wn,Ra];function nn(t,e){if(e.kind==="error")return null;if(t.kind==="array"){if(e.kind==="array"&&(e.N===0&&e.itemType.kind==="value"||!nn(t.itemType,e.itemType))&&(typeof t.N!="number"||t.N===e.N))return null}else{if(t.kind===e.kind)return null;if(t.kind==="value"){for(let r of l0)if(!nn(r,e))return null}}return`Expected ${mt(t)} but found ${mt(e)} instead.`}function bl(t,e){return e.some(r=>r.kind===t.kind)}function gr(t,e){return e.some(r=>r==="null"?t===null:r==="array"?Array.isArray(t):r==="object"?t&&!Array.isArray(t)&&typeof t=="object":r===typeof t)}function Ye(t,e){return t.kind==="array"&&e.kind==="array"?t.itemType.kind===e.itemType.kind&&typeof t.N=="number":t.kind===e.kind}var zp=.96422,Lp=.82521,Vp=4/29,eo=6/29,Op=3*eo*eo,u0=Math.PI/180,h0=180/Math.PI;function Rp(t){return t%=360,t<0&&(t+=360),t}function $p([t,e,r,i]){t=Ms(t),e=Ms(e),r=Ms(r);let n,a,s=Bs((.2225045*t+.7168786*e+.0606169*r)/1);t===e&&e===r?n=a=s:(n=Bs((.4360747*t+.3850649*e+.1430804*r)/zp),a=Bs((.0139322*t+.0971045*e+.7141733*r)/Lp));let o=116*s-16;return[o<0?0:o,500*(n-s),200*(s-a),i]}function Ms(t){return t<=.04045?t/12.92:((t+.055)/1.055)**2.4}function Bs(t){return t>.008856451679035631?t**(1/3):t/Op+Vp}function Np([t,e,r,i]){let n=(t+16)/116,a=isNaN(e)?n:n+e/500,s=isNaN(r)?n:n-r/200;return n=1*zs(n),a=zp*zs(a),s=Lp*zs(s),[Ps(3.1338561*a-1.6168667*n-.4906146*s),Ps(-.9787684*a+1.9161415*n+.033454*s),Ps(.0719453*a-.2289914*n+1.4052427*s),i]}function Ps(t){return t=t<=.00304?12.92*t:1.055*t**(1/2.4)-.055,t<0?0:t>1?1:t}function zs(t){return t>eo?t*t*t:Op*(t-Vp)}function c0(t){let[e,r,i,n]=$p(t),a=Math.sqrt(r*r+i*i);return[Math.round(a*1e4)?Rp(Math.atan2(i,r)*h0):NaN,a,e,n]}function p0([t,e,r,i]){return t=isNaN(t)?0:t*u0,Np([r,Math.cos(t)*e,Math.sin(t)*e,i])}function f0([t,e,r,i]){t=Rp(t),e/=100,r/=100;function n(a){let s=(a+t/30)%12,o=e*Math.min(r,1-r);return r-o*Math.max(-1,Math.min(s-3,9-s,1))}return[n(0),n(8),n(4),i]}var d0=Object.hasOwn||function(t,e){return Object.prototype.hasOwnProperty.call(t,e)};function Yi(t,e){return d0(t,e)?t[e]:void 0}function y0(t){if(t=t.toLowerCase().trim(),t==="transparent")return[0,0,0,0];let e=Yi(m0,t);if(e){let[i,n,a]=e;return[i/255,n/255,a/255,1]}if(t.startsWith("#")&&/^#(?:[0-9a-f]{3,4}|[0-9a-f]{6}|[0-9a-f]{8})$/.test(t)){let i=t.length<6?1:2,n=1;return[Yn(t.slice(n,n+=i)),Yn(t.slice(n,n+=i)),Yn(t.slice(n,n+=i)),Yn(t.slice(n,n+i)||"ff")]}if(t.startsWith("rgb")){let i=t.match(/^rgba?\\(\\s*([\\de.+-]+)(%)?(?:\\s+|\\s*(,)\\s*)([\\de.+-]+)(%)?(?:\\s+|\\s*(,)\\s*)([\\de.+-]+)(%)?(?:\\s*([,\\/])\\s*([\\de.+-]+)(%)?)?\\s*\\)$/);if(i){let[n,a,s,o,l,u,h,c,p,f,d,y]=i,m=[o||" ",h||" ",f].join("");if(m===" "||m===" /"||m===",,"||m===",,,"){let g=[s,u,p].join(""),x=g==="%%%"?100:g===""?255:0;if(x){let v=[Rr(+a/x,0,1),Rr(+l/x,0,1),Rr(+c/x,0,1),d?vh(+d,y):1];if(bh(v))return v}}return}}let r=t.match(/^hsla?\\(\\s*([\\de.+-]+)(?:deg)?(?:\\s+|\\s*(,)\\s*)([\\de.+-]+)%(?:\\s+|\\s*(,)\\s*)([\\de.+-]+)%(?:\\s*([,\\/])\\s*([\\de.+-]+)(%)?)?\\s*\\)$/);if(r){let[i,n,a,s,o,l,u,h,c]=r,p=[a||" ",o||" ",u].join("");if(p===" "||p===" /"||p===",,"||p===",,,"){let f=[+n,Rr(+s,0,100),Rr(+l,0,100),h?vh(+h,c):1];if(bh(f))return f0(f)}}}function Yn(t){return parseInt(t.padEnd(2,t),16)/255}function vh(t,e){return Rr(e?t/100:t,0,1)}function Rr(t,e,r){return Math.min(Math.max(e,t),r)}function bh(t){return!t.some(Number.isNaN)}var m0={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]};function er(t,e,r){return t+r*(e-t)}function ti(t,e,r){return t.map((i,n)=>er(i,e[n],r))}function g0(t){return t==="rgb"||t==="hcl"||t==="lab"}var Bt,xt=(Bt=class{constructor(e,r,i,n=1,a=!0){this.r=e,this.g=r,this.b=i,this.a=n,a||(this.r*=n,this.g*=n,this.b*=n,n||this.overwriteGetter("rgb",[e,r,i,n]))}static parse(e){if(e instanceof Bt)return e;if(typeof e!="string")return;let r=y0(e);if(r)return new Bt(...r,!1)}get rgb(){let{r:e,g:r,b:i,a:n}=this,a=n||1/0;return this.overwriteGetter("rgb",[e/a,r/a,i/a,n])}get hcl(){return this.overwriteGetter("hcl",c0(this.rgb))}get lab(){return this.overwriteGetter("lab",$p(this.rgb))}overwriteGetter(e,r){return Object.defineProperty(this,e,{value:r}),r}toString(){let[e,r,i,n]=this.rgb;return`rgba(${[e,r,i].map(a=>Math.round(a*255)).join(",")},${n})`}static interpolate(e,r,i,n="rgb"){switch(n){case"rgb":{let[a,s,o,l]=ti(e.rgb,r.rgb,i);return new Bt(a,s,o,l,!1)}case"hcl":{let[a,s,o,l]=e.hcl,[u,h,c,p]=r.hcl,f,d;if(!isNaN(a)&&!isNaN(u)){let v=u-a;u>a&&v>180?v-=360:u180&&(v+=360),f=a+i*v}else isNaN(a)?isNaN(u)?f=NaN:(f=u,(o===1||o===0)&&(d=h)):(f=a,(c===1||c===0)&&(d=s));let[y,m,g,x]=p0([f,d!=null?d:er(s,h,i),er(o,c,i),er(l,p,i)]);return new Bt(y,m,g,x,!1)}case"lab":{let[a,s,o,l]=Np(ti(e.lab,r.lab,i));return new Bt(a,s,o,l,!1)}}}},Bt.black=new Bt(0,0,0,1),Bt.white=new Bt(1,1,1,1),Bt.transparent=new Bt(0,0,0,0),Bt.red=new Bt(1,0,0,1),Bt),x0=["bottom","center","top"],ro=class{constructor(t,e,r,i,n,a){this.text=t,this.image=e,this.scale=r,this.fontStack=i,this.textColor=n,this.verticalAlign=a}},Le=class ha{constructor(e){this.sections=e}static fromString(e){return new ha([new ro(e,null,null,null,null,null)])}isEmpty(){return this.sections.length===0||!this.sections.some(e=>e.text.length!==0||e.image&&e.image.name.length!==0)}static factory(e){return e instanceof ha?e:ha.fromString(e)}toString(){return this.sections.length===0?"":this.sections.map(e=>e.text).join("")}},Ee=class Ri{constructor(e){this.values=e.slice()}static parse(e){if(e instanceof Ri)return e;if(typeof e=="number")return new Ri([e,e,e,e]);if(Array.isArray(e)&&!(e.length<1||e.length>4)){for(let r of e)if(typeof r!="number")return;switch(e.length){case 1:e=[e[0],e[0],e[0],e[0]];break;case 2:e=[e[0],e[1],e[0],e[1]];break;case 3:e=[e[0],e[1],e[2],e[1]]}return new Ri(e)}}toString(){return JSON.stringify(this.values)}static interpolate(e,r,i){return new Ri(ti(e.values,r.values,i))}},Fe=class $i{constructor(e){this.values=e.slice()}static parse(e){if(e instanceof $i)return e;if(typeof e=="number")return new $i([e]);if(Array.isArray(e)){for(let r of e)if(typeof r!="number")return;return new $i(e)}}toString(){return JSON.stringify(this.values)}static interpolate(e,r,i){return new $i(ti(e.values,r.values,i))}},ue=class Ni{constructor(e){this.values=e.slice()}static parse(e){if(e instanceof Ni)return e;if(typeof e=="string"){let i=xt.parse(e);return i?new Ni([i]):void 0}if(!Array.isArray(e))return;let r=[];for(let i of e){if(typeof i!="string")return;let n=xt.parse(i);if(!n)return;r.push(n)}return new Ni(r)}toString(){return JSON.stringify(this.values)}static interpolate(e,r,i,n="rgb"){let a=[];if(e.values.length!=r.values.length)throw Error(`colorArray: Arrays have mismatched length (${e.values.length} vs. ${r.values.length}), cannot interpolate.`);for(let s=0;s=0&&t<=255&&typeof e=="number"&&e>=0&&e<=255&&typeof r=="number"&&r>=0&&r<=255?i===void 0||typeof i=="number"&&i>=0&&i<=1?null:`Invalid rgba value [${[t,e,r,i].join(", ")}]: \'a\' must be between 0 and 1.`:`Invalid rgba value [${(typeof i=="number"?[t,e,r,i]:[t,e,r]).join(", ")}]: \'r\', \'g\', and \'b\' must be between 0 and 255.`}function ei(t){if(t===null||typeof t=="string"||typeof t=="boolean"||typeof t=="number"||t instanceof Sr||t instanceof xt||t instanceof wl||t instanceof Le||t instanceof Ee||t instanceof Fe||t instanceof ue||t instanceof Ae||t instanceof Se)return!0;if(Array.isArray(t)){for(let e of t)if(!ei(e))return!1;return!0}if(typeof t=="object"){for(let e in t)if(!ei(t[e]))return!1;return!0}return!1}function St(t){if(t===null)return vn;if(typeof t=="string")return W;if(typeof t=="boolean")return Q;if(typeof t=="number")return I;if(t instanceof xt)return pe;if(t instanceof Sr)return za;if(t instanceof wl)return La;if(t instanceof Le)return bn;if(t instanceof Ee)return Va;if(t instanceof Fe)return Oa;if(t instanceof ue)return rn;if(t instanceof Ae)return Ra;if(t instanceof Se)return wn;if(Array.isArray(t)){let e=t.length,r;for(let i of t){let n=St(i);if(!r)r=n;else{if(r===n)continue;r=H;break}}return Ut(r||H,e)}return mr}function Wi(t){let e=typeof t;return t===null?"":e==="string"||e==="number"||e==="boolean"?String(t):t instanceof xt||t instanceof Sr||t instanceof Le||t instanceof Ee||t instanceof Fe||t instanceof ue||t instanceof Ae||t instanceof Se?t.toString():JSON.stringify(t)}var ri=class jp{constructor(e,r){this.type=e,this.value=r}static parse(e,r){if(e.length!==2)return r.error(`\'literal\' expression requires exactly one argument, but found ${e.length-1} instead.`);if(!ei(e[1]))return r.error(`invalid value of type "${typeof e[1]}"`);let i=e[1],n=St(i),a=r.expectedType;return n.kind==="array"&&n.N===0&&a&&a.kind==="array"&&(typeof a.N!="number"||a.N===0)&&(n=a),new jp(n,i)}evaluate(){return this.value}eachChild(){}outputDefined(){return!0}},b0=["Unknown","Point","LineString","Polygon"],Gp=class{constructor(){this.globals=null,this.feature=null,this.featureState=null,this.formattedSection=null,this._parseColorCache=new Map,this.availableImages=null,this.canonical=null}id(){return this.feature&&"id"in this.feature?this.feature.id:null}geometryType(){return this.feature?typeof this.feature.type=="number"?b0[this.feature.type]:this.feature.type:null}geometry(){return this.feature&&"geometry"in this.feature?this.feature.geometry:null}canonicalID(){return this.canonical}properties(){return this.feature&&this.feature.properties||{}}parseColor(t){let e=this._parseColorCache.get(t);return e||(e=xt.parse(t),this._parseColorCache.set(t,e)),e}};function $a(t,e,r){let i=t.length-1,n=0,a=i,s=0,o,l;for(;n<=a;)if(s=Math.floor((n+a)/2),o=t[s],l=t[s+1],o<=e){if(s===i||ee)a=s-1;else throw new ft("Input is not a number.",r);return 0}var Dl=class Xp{constructor(e,r,i,n){this.type=e,this.input=r,this.key=n,this.labels=[],this.outputs=[];for(let[a,s]of i)this.labels.push(a),this.outputs.push(s)}static parse(e,r){if(e.length-1<4)return r.error(`Expected at least 4 arguments, but found only ${e.length-1}.`);if((e.length-1)%2!=0)return r.error("Expected an even number of arguments.");let i=r.parse(e[1],1,I);if(!i)return null;let n=[],a=null;r.expectedType&&r.expectedType.kind!=="value"&&(a=r.expectedType);for(let s=1;s=o)return r.error(\'Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.\',u);let c=r.parse(l,h,a);if(!c)return null;a||(a=c.type),n.push([o,c])}return new Xp(a,i,n,r.key)}evaluate(e){let r=this.labels,i=this.outputs;if(r.length===1)return i[0].evaluate(e);let n=this.input.evaluate(e);if(n<=r[0])return i[0].evaluate(e);let a=r.length;return n>=r[a-1]?i[a-1].evaluate(e):i[$a(r,n,this.key)].evaluate(e)}eachChild(e){e(this.input);for(let r of this.outputs)e(r)}outputDefined(){return this.outputs.every(e=>e.outputDefined())}};function w0(t,e,r,i){let n=3*t,a=3*(r-t)-n,s=1-n-a,o=3*e,l=3*(i-e)-o,u=1-o-l;return function(h,c=1e-6){if(h<=0)return 0;if(h>=1)return 1;let p=h;for(let y=0;y<8;y++){let m=((s*p+a)*p+n)*p-h;if(Math.abs(m)m?f=p:d=p,p=(f+d)*.5}return((u*p+l)*p+o)*p}}var De=class io{constructor(e,r,i,n,a,s){this.type=e,this.operator=r,this.interpolation=i,this.input=n,this.key=s,this.labels=[],this.outputs=[];for(let[o,l]of a)this.labels.push(o),this.outputs.push(l)}static interpolationFactor(e,r,i,n){let a=0;if(e.name==="exponential")a=Ls(r,e.base,i,n);else if(e.name==="linear")a=Ls(r,1,i,n);else if(e.name==="cubic-bezier"){let s=e.controlPoints;a=w0(s[0],s[1],s[2],s[3])(Ls(r,1,i,n))}return a}static parse(e,r){let[i,n,a,...s]=e;if(!Array.isArray(n)||n.length===0)return r.error("Expected an interpolation type expression.",1);if(n[0]==="linear")n={name:"linear"};else if(n[0]==="exponential"){let u=n[1];if(typeof u!="number")return r.error("Exponential interpolation requires a numeric base.",1,1);n={name:"exponential",base:u}}else if(n[0]==="cubic-bezier"){let u=n.slice(1);if(u.length!==4||u.some(h=>typeof h!="number"||h<0||h>1))return r.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);n={name:"cubic-bezier",controlPoints:u}}else return r.error(`Unknown interpolation type ${String(n[0])}`,1,0);if(e.length-1<4)return r.error(`Expected at least 4 arguments, but found only ${e.length-1}.`);if((e.length-1)%2!=0)return r.error("Expected an even number of arguments.");if(a=r.parse(a,2,I),!a)return null;let o=[],l=null;(i==="interpolate-hcl"||i==="interpolate-lab")&&r.expectedType!=rn?l=pe:r.expectedType&&r.expectedType.kind!=="value"&&(l=r.expectedType);for(let u=0;u=h)return r.error(\'Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.\',p);let d=r.parse(c,f,l);if(!d)return null;l||(l=d.type),o.push([h,d])}return!Ye(l,I)&&!Ye(l,za)&&!Ye(l,pe)&&!Ye(l,Va)&&!Ye(l,Oa)&&!Ye(l,rn)&&!Ye(l,Ra)&&!Ye(l,Ut(I))?r.error(`Type ${mt(l)} is not interpolatable.`):new io(l,i,n,a,o,r.key)}evaluate(e){let r=this.labels,i=this.outputs;if(r.length===1)return i[0].evaluate(e);let n=this.input.evaluate(e);if(n<=r[0])return i[0].evaluate(e);let a=r.length;if(n>=r[a-1])return i[a-1].evaluate(e);let s=$a(r,n,this.key),o=r[s],l=r[s+1],u=io.interpolationFactor(this.interpolation,n,o,l),h=i[s].evaluate(e),c=i[s+1].evaluate(e);switch(this.operator){case"interpolate":switch(this.type.kind){case"number":return er(h,c,u);case"color":return xt.interpolate(h,c,u);case"padding":return Ee.interpolate(h,c,u);case"colorArray":return ue.interpolate(h,c,u);case"numberArray":return Fe.interpolate(h,c,u);case"variableAnchorOffsetCollection":return Ae.interpolate(h,c,u,this.key);case"array":return ti(h,c,u);case"projectionDefinition":return Sr.interpolate(h,c,u)}case"interpolate-hcl":switch(this.type.kind){case"color":return xt.interpolate(h,c,u,"hcl");case"colorArray":return ue.interpolate(h,c,u,"hcl")}case"interpolate-lab":switch(this.type.kind){case"color":return xt.interpolate(h,c,u,"lab");case"colorArray":return ue.interpolate(h,c,u,"lab")}}}eachChild(e){e(this.input);for(let r of this.outputs)e(r)}outputDefined(){return this.outputs.every(e=>e.outputDefined())}};function Ls(t,e,r,i){let n=i-r,a=t-r;return n===0?0:e===1?a/n:(e**+a-1)/(e**+n-1)}var br={color:xt.interpolate,number:er,padding:Ee.interpolate,numberArray:Fe.interpolate,colorArray:ue.interpolate,variableAnchorOffsetCollection:Ae.interpolate,array:ti},Yp=class Wp{constructor(e){this.type=bn,this.sections=e}static parse(e,r){if(e.length<2)return r.error("Expected at least one argument.");let i=e[1];if(!Array.isArray(i)&&typeof i=="object")return r.error("First argument must be an image or text section.");let n=[],a=!1;for(let s=1;s<=e.length-1;++s){let o=e[s];if(a&&typeof o=="object"&&!Array.isArray(o)){a=!1;let l=null;if(o["font-scale"]&&(l=r.parse(o["font-scale"],1,I),!l))return null;let u=null;if(o["text-font"]&&(u=r.parse(o["text-font"],1,Ut(W)),!u))return null;let h=null;if(o["text-color"]&&(h=r.parse(o["text-color"],1,pe),!h))return null;let c=null;if(o["vertical-align"]){if(typeof o["vertical-align"]=="string"&&!x0.includes(o["vertical-align"]))return r.error(`\'vertical-align\' must be one of: \'bottom\', \'center\', \'top\' but found \'${o["vertical-align"]}\' instead.`);if(c=r.parse(o["vertical-align"],1,W),!c)return null}let p=n[n.length-1];p.scale=l,p.font=u,p.textColor=h,p.verticalAlign=c}else{let l=r.parse(e[s],1,H);if(!l)return null;let u=l.type.kind;if(u!=="string"&&u!=="value"&&u!=="null"&&u!=="resolvedImage")return r.error("Formatted text type must be \'string\', \'value\', \'image\' or \'null\'.");a=!0,n.push({content:l,scale:null,font:null,textColor:null,verticalAlign:null})}}return new Wp(n)}evaluate(e){return new Le(this.sections.map(r=>{let i=r.content.evaluate(e);return St(i)===wn?new ro("",i,null,null,null,r.verticalAlign?r.verticalAlign.evaluate(e):null):new ro(Wi(i),null,r.scale?r.scale.evaluate(e):null,r.font?r.font.evaluate(e).join(","):null,r.textColor?r.textColor.evaluate(e):null,r.verticalAlign?r.verticalAlign.evaluate(e):null)}))}eachChild(e){for(let r of this.sections)e(r.content),r.scale&&e(r.scale),r.font&&e(r.font),r.textColor&&e(r.textColor),r.verticalAlign&&e(r.verticalAlign)}outputDefined(){return!1}};function Zp(t,e,r=0,i=t.length-1,n=D0){for(;i>r;){if(i-r>600){let l=i-r+1,u=e-r+1,h=Math.log(l),c=.5*Math.exp(2*h/3),p=.5*Math.sqrt(h*c*(l-c)/l)*(u-l/2<0?-1:1);Zp(t,e,Math.max(r,Math.floor(e-u*c/l+p)),Math.min(i,Math.floor(e+(l-u)*c/l+p)),n)}let a=t[e],s=r,o=i;for(ki(t,r,e),n(t[i],a)>0&&ki(t,r,i);s0;)o--}n(t[r],a)===0?ki(t,r,o):(o++,ki(t,o,i)),o<=e&&(r=o+1),e<=o&&(i=o-1)}}function ki(t,e,r){let i=t[e];t[e]=t[r],t[r]=i}function D0(t,e){return te)}function Na(t,e){if(t.length<=1)return[t];let r=[],i,n;for(let a of t){let s=A0(a);s!==0&&(a.area=Math.abs(s),n===void 0&&(n=s<0),n===s<0?(i&&r.push(i),i=[a]):i.push(a))}if(i&&r.push(i),e>1)for(let a=0;a2){let u=e[1];if(typeof u!="string"||!(u in Wn)||u==="object")return r.error(\'The item type argument of "array" must be one of string, number, boolean\',1);o=Wn[u],i++}else o=H;let l;if(e.length>3){if(e[2]!==null&&(typeof e[2]!="number"||e[2]<0||e[2]!==Math.floor(e[2])))return r.error(\'The length argument to "array" must be a positive integer literal\',2);l=e[2],i++}n=Ut(o,l)}else{if(!Wn[a])throw Error(`Types doesn\'t contain name = ${a}`);n=Wn[a]}let s=[];for(;ie.outputDefined())}},wh={"to-boolean":Q,"to-color":pe,"to-number":I,"to-string":W},jr=class Kp{constructor(e,r,i){this.type=e,this.args=r,this.key=i}static parse(e,r){if(e.length<2)return r.error("Expected at least one argument.");let i=e[0];if(!wh[i])throw Error(`Can\'t parse ${i} as it is not part of the known types`);if((i==="to-boolean"||i==="to-string")&&e.length!==2)return r.error("Expected one argument.");let n=wh[i],a=[];for(let s=1;s4?`Invalid rgba value ${JSON.stringify(r)}: expected an array containing either three or four numeric values.`:qp(r[0],r[1],r[2],r[3]),!i))return new xt(r[0]/255,r[1]/255,r[2]/255,r[3])}throw new ft(i||`Could not parse color from value \'${typeof r=="string"?r:JSON.stringify(r)}\'`,this.key)}case"padding":{let r;for(let i of this.args){r=i.evaluate(e);let n=Ee.parse(r);if(n)return n}throw new ft(`Could not parse padding from value \'${typeof r=="string"?r:JSON.stringify(r)}\'`,this.key)}case"numberArray":{let r;for(let i of this.args){r=i.evaluate(e);let n=Fe.parse(r);if(n)return n}throw new ft(`Could not parse numberArray from value \'${typeof r=="string"?r:JSON.stringify(r)}\'`,this.key)}case"colorArray":{let r;for(let i of this.args){r=i.evaluate(e);let n=ue.parse(r);if(n)return n}throw new ft(`Could not parse colorArray from value \'${typeof r=="string"?r:JSON.stringify(r)}\'`,this.key)}case"variableAnchorOffsetCollection":{let r;for(let i of this.args){r=i.evaluate(e);let n=Ae.parse(r);if(n)return n}throw new ft(`Could not parse variableAnchorOffsetCollection from value \'${typeof r=="string"?r:JSON.stringify(r)}\'`,this.key)}case"number":{let r=null;for(let i of this.args){if(r=i.evaluate(e),r===null)return 0;let n=Number(r);if(!isNaN(n))return n}throw new ft(`Could not convert ${JSON.stringify(r)} to number.`,this.key)}case"formatted":return Le.fromString(Wi(this.args[0].evaluate(e)));case"resolvedImage":return Se.fromString(Wi(this.args[0].evaluate(e)));case"projectionDefinition":{let r=this.args[0].evaluate(e);if(Sr.parse(r))return r;throw new ft(`Could not parse projectionDefinition from value \'${typeof r=="string"?r:JSON.stringify(r)}\'`,this.key)}default:return Wi(this.args[0].evaluate(e))}}eachChild(e){this.args.forEach(e)}outputDefined(){return this.args.every(e=>e.outputDefined())}},Jp=class Qp{constructor(e,r){this.type=r.type,this.bindings=[].concat(e),this.result=r}evaluate(e){return this.result.evaluate(e)}eachChild(e){for(let r of this.bindings)e(r[1]);e(this.result)}static parse(e,r){if(e.length<4)return r.error(`Expected at least 3 arguments, but found ${e.length-1} instead.`);let i=[];for(let a=1;a=i.length)throw new ft(`Array index out of bounds: ${r} > ${i.length-1}.`,this.key);if(r!==Math.floor(r))throw new ft(`Array index must be an integer, but found ${r} instead.`,this.key);return i[r]}eachChild(e){e(this.index),e(this.input)}outputDefined(){return!1}},E0=class nf{constructor(e,r,i){this.needle=e,this.haystack=r,this.key=i,this.type=Q}static parse(e,r){if(e.length!==3)return r.error(`Expected 2 arguments, but found ${e.length-1} instead.`);let i=r.parse(e[1],1,H),n=r.parse(e[2],2,H);return!i||!n?null:bl(i.type,[Q,W,I,vn,H])?new nf(i,n,r.key):r.error(`Expected first argument to be of type boolean, string, number or null, but found ${mt(i.type)} instead`)}evaluate(e){let r=this.needle.evaluate(e),i=this.haystack.evaluate(e);if(!i)return!1;if(!gr(r,["boolean","string","number","null"]))throw new ft(`Expected first argument to be of type boolean, string, number or null, but found ${mt(St(r))} instead.`,this.key);if(!gr(i,["string","array"]))throw new ft(`Expected second argument to be of type array or string, but found ${mt(St(i))} instead.`,this.key);return i.indexOf(r)>=0}eachChild(e){e(this.needle),e(this.haystack)}outputDefined(){return!0}},F0=class no{constructor(e,r,i,n){this.needle=e,this.haystack=r,this.key=i,this.fromIndex=n,this.type=I}static parse(e,r){if(e.length<=2||e.length>=5)return r.error(`Expected 2 or 3 arguments, but found ${e.length-1} instead.`);let i=r.parse(e[1],1,H),n=r.parse(e[2],2,H);if(!i||!n)return null;if(!bl(i.type,[Q,W,I,vn,H]))return r.error(`Expected first argument to be of type boolean, string, number or null, but found ${mt(i.type)} instead`);if(e.length===4){let a=r.parse(e[3],3,I);return a?new no(i,n,r.key,a):null}return new no(i,n,r.key)}evaluate(e){let r=this.needle.evaluate(e),i=this.haystack.evaluate(e);if(!gr(r,["boolean","string","number","null"]))throw new ft(`Expected first argument to be of type boolean, string, number or null, but found ${mt(St(r))} instead.`,this.key);let n;if(this.fromIndex&&(n=this.fromIndex.evaluate(e)),gr(i,["string"])){let a=i.indexOf(r,n);return a===-1?-1:[...i.slice(0,a)].length}if(gr(i,["array"]))return i.indexOf(r,n);throw new ft(`Expected second argument to be of type array or string, but found ${mt(St(i))} instead.`,this.key)}eachChild(e){e(this.needle),e(this.haystack),this.fromIndex&&e(this.fromIndex)}outputDefined(){return!1}},T0=class af{constructor(e,r,i,n,a,s){this.inputType=e,this.type=r,this.input=i,this.cases=n,this.outputs=a,this.otherwise=s}static parse(e,r){if(e.length<5)return r.error(`Expected at least 4 arguments, but found only ${e.length-1}.`);if(e.length%2!=1)return r.error("Expected an even number of arguments.");let i,n;r.expectedType&&r.expectedType.kind!=="value"&&(n=r.expectedType);let a={},s=[];for(let u=2;u2**53-1)return p.error(`Branch labels must be integers no larger than ${2**53-1}.`);if(typeof d=="number"&&Math.floor(d)!==d)return p.error("Numeric branch labels must be integer values.");if(!i)i=St(d);else if(p.checkSubtype(i,St(d)))return null;if(a[String(d)]!==void 0)return p.error("Branch labels must be unique.");a[String(d)]=s.length}let f=r.parse(c,u,n);if(!f)return null;n||(n=f.type),s.push(f)}let o=r.parse(e[1],1,H);if(!o)return null;let l=r.parse(e[e.length-1],e.length-1,n);return!l||o.type.kind!=="value"&&r.concat(1).checkSubtype(i,o.type)?null:new af(i,n,o,a,s,l)}evaluate(e){let r=this.input.evaluate(e);return(St(r)===this.inputType&&this.outputs[this.cases[r]]||this.otherwise).evaluate(e)}eachChild(e){e(this.input),this.outputs.forEach(e),e(this.otherwise)}outputDefined(){return this.outputs.every(e=>e.outputDefined())&&this.otherwise.outputDefined()}},k0=class sf{constructor(e,r,i){this.type=e,this.branches=r,this.otherwise=i}static parse(e,r){if(e.length<4)return r.error(`Expected at least 3 arguments, but found only ${e.length-1}.`);if(e.length%2!=0)return r.error("Expected an odd number of arguments.");let i;r.expectedType&&r.expectedType.kind!=="value"&&(i=r.expectedType);let n=[];for(let s=1;sr.outputDefined())&&this.otherwise.outputDefined()}},I0=class ao{constructor(e,r,i,n,a){this.type=e,this.input=r,this.beginIndex=i,this.key=n,this.endIndex=a}static parse(e,r){if(e.length<=2||e.length>=5)return r.error(`Expected 2 or 3 arguments, but found ${e.length-1} instead.`);let i=r.parse(e[1],1,H),n=r.parse(e[2],2,I);if(!i||!n)return null;if(!bl(i.type,[Ut(H),W,H]))return r.error(`Expected first argument to be of type array or string, but found ${mt(i.type)} instead`);if(e.length===4){let a=r.parse(e[3],3,I);return a?new ao(i.type,i,n,r.key,a):null}return new ao(i.type,i,n,r.key)}evaluate(e){let r=this.input.evaluate(e),i=this.beginIndex.evaluate(e),n;if(this.endIndex&&(n=this.endIndex.evaluate(e)),gr(r,["string"]))return[...r].slice(i,n).join("");if(gr(r,["array"]))return r.slice(i,n);throw new ft(`Expected first argument to be of type array or string, but found ${mt(St(r))} instead.`,this.key)}eachChild(e){e(this.input),e(this.beginIndex),this.endIndex&&e(this.endIndex)}outputDefined(){return!1}},of=class so{constructor(e,r){this.type=e,this.args=r}static parse(e,r){if(e.length<2)return r.error("Expected at least one argument.");let i=null,n=r.expectedType;n&&n.kind!=="value"&&(i=n);let a=[];for(let s of e.slice(1)){let o=r.parse(s,1+a.length,i,void 0,{typeAnnotation:"omit"});if(!o)return null;i||(i=o.type),a.push(o)}if(!i)throw Error("No output type");return n&&a.some(s=>nn(n,s.type))?new so(H,a):new so(i,a)}evaluate(e){let r=null,i=0,n;for(let a of this.args)if(i++,r=a.evaluate(e),r&&r instanceof Se&&!r.available&&(n||(n=r.name),r=null,i===this.args.length&&(r=n)),r!==null)break;return r}eachChild(e){this.args.forEach(e)}outputDefined(){return this.args.every(e=>e.outputDefined())}};function Dh(t,e){return t==="=="||t==="!="?e.kind==="boolean"||e.kind==="string"||e.kind==="number"||e.kind==="null"||e.kind==="value":e.kind==="string"||e.kind==="number"||e.kind==="value"}function C0(t,e,r){return e===r}function M0(t,e,r){return e!==r}function B0(t,e,r){return er}function z0(t,e,r){return e<=r}function L0(t,e,r){return e>=r}function lf(t,e,r,i){return i.compare(e,r)===0}function V0(t,e,r,i){return!lf(t,e,r,i)}function O0(t,e,r,i){return i.compare(e,r)<0}function R0(t,e,r,i){return i.compare(e,r)>0}function $0(t,e,r,i){return i.compare(e,r)<=0}function N0(t,e,r,i){return i.compare(e,r)>=0}function li(t,e,r){let i=t!=="=="&&t!=="!=";return class uf{constructor(a,s,o,l){this.lhs=a,this.rhs=s,this.key=o,this.collator=l,this.type=Q,this.hasUntypedArgument=a.type.kind==="value"||s.type.kind==="value"}static parse(a,s){if(a.length!==3&&a.length!==4)return s.error("Expected two or three arguments.");let o=a[0],l=s.parse(a[1],1,H);if(!l)return null;if(!Dh(o,l.type))return s.concat(1).error(`"${o}" comparisons are not supported for type \'${mt(l.type)}\'.`);let u=s.parse(a[2],2,H);if(!u)return null;if(!Dh(o,u.type))return s.concat(2).error(`"${o}" comparisons are not supported for type \'${mt(u.type)}\'.`);if(l.type.kind!==u.type.kind&&l.type.kind!=="value"&&u.type.kind!=="value")return s.error(`Cannot compare types \'${mt(l.type)}\' and \'${mt(u.type)}\'.`);i&&(l.type.kind==="value"&&u.type.kind!=="value"?l=new Be(u.type,[l],s.key):l.type.kind!=="value"&&u.type.kind==="value"&&(u=new Be(l.type,[u],s.key)));let h=null;if(a.length===4){if(l.type.kind!=="string"&&u.type.kind!=="string"&&l.type.kind!=="value"&&u.type.kind!=="value")return s.error("Cannot use collator to compare non-string types.");if(h=s.parse(a[3],3,La),!h)return null}return new uf(l,u,s.key,h)}evaluate(a){let s=this.lhs.evaluate(a),o=this.rhs.evaluate(a);if(i&&this.hasUntypedArgument){let l=St(s),u=St(o);if(l.kind!==u.kind||l.kind!=="string"&&l.kind!=="number")throw new ft(`Expected arguments for "${t}" to be (string, string) or (number, number), but found (${l.kind}, ${u.kind}) instead.`,this.key)}if(this.collator&&!i&&this.hasUntypedArgument){let l=St(s),u=St(o);if(l.kind!=="string"||u.kind!=="string")return e(a,s,o)}return this.collator?r(a,s,o,this.collator.evaluate(a)):e(a,s,o)}eachChild(a){a(this.lhs),a(this.rhs),this.collator&&a(this.collator)}outputDefined(){return!0}}}var U0=li("==",C0,lf),q0=li("!=",M0,V0),j0=li("<",B0,O0),G0=li(">",P0,R0),X0=li("<=",z0,$0),Y0=li(">=",L0,N0),hf=class cf{constructor(e,r,i){this.type=La,this.locale=i,this.caseSensitive=e,this.diacriticSensitive=r}static parse(e,r){if(e.length!==2)return r.error("Expected one argument.");let i=e[1];if(typeof i!="object"||Array.isArray(i))return r.error("Collator options argument must be an object.");let n=r.parse(i["case-sensitive"]!==void 0&&i["case-sensitive"],1,Q);if(!n)return null;let a=r.parse(i["diacritic-sensitive"]!==void 0&&i["diacritic-sensitive"],1,Q);if(!a)return null;let s=null;return i.locale&&(s=r.parse(i.locale,1,W),!s)?null:new cf(n,a,s)}evaluate(e){return new wl(this.caseSensitive.evaluate(e),this.diacriticSensitive.evaluate(e),this.locale?this.locale.evaluate(e):null)}eachChild(e){e(this.caseSensitive),e(this.diacriticSensitive),this.locale&&e(this.locale)}outputDefined(){return!1}},W0=class pf{constructor(e,r,i,n,a,s){this.type=W,this.number=e,this.locale=r,this.currency=i,this.unit=n,this.minFractionDigits=a,this.maxFractionDigits=s}static parse(e,r){if(e.length!==3)return r.error("Expected two arguments.");let i=r.parse(e[1],1,I);if(!i)return null;let n=e[2];if(typeof n!="object"||Array.isArray(n))return r.error("NumberFormat options argument must be an object.");let a=null;if(n.locale&&(a=r.parse(n.locale,1,W),!a))return null;let s=null;if(n.currency&&(s=r.parse(n.currency,1,W),!s))return null;let o=null;if(n.unit&&(o=r.parse(n.unit,1,W),!o))return null;if(s&&o)return r.error("NumberFormat options `currency` and `unit` are mutually exclusive");let l=null;if(n["min-fraction-digits"]&&(l=r.parse(n["min-fraction-digits"],1,I),!l))return null;let u=null;return n["max-fraction-digits"]&&(u=r.parse(n["max-fraction-digits"],1,I),!u)?null:new pf(i,a,s,o,l,u)}evaluate(e){return new Intl.NumberFormat(this.locale?this.locale.evaluate(e):[],{style:this.currency?"currency":this.unit?"unit":"decimal",currency:this.currency?this.currency.evaluate(e):void 0,unit:this.unit?this.unit.evaluate(e):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(e):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(e):void 0}).format(this.number.evaluate(e))}eachChild(e){e(this.number),this.locale&&e(this.locale),this.currency&&e(this.currency),this.unit&&e(this.unit),this.minFractionDigits&&e(this.minFractionDigits),this.maxFractionDigits&&e(this.maxFractionDigits)}outputDefined(){return!1}},Z0=class ff{constructor(e){this.type=wn,this.input=e}static parse(e,r){if(e.length!==2)return r.error("Expected two arguments.");let i=r.parse(e[1],1,W);return i?new ff(i):r.error("No image name provided.")}evaluate(e){let r=this.input.evaluate(e),i=Se.fromString(r);return i&&e.availableImages&&(i.available=e.availableImages.indexOf(r)>-1),i}eachChild(e){e(this.input)}outputDefined(){return!1}},H0=class df{constructor(e,r){this.input=e,this.key=r,this.type=I}static parse(e,r){if(e.length!==2)return r.error(`Expected 1 argument, but found ${e.length-1} instead.`);let i=r.parse(e[1],1);return i?i.type.kind!=="array"&&i.type.kind!=="string"&&i.type.kind!=="value"?r.error(`Expected argument of type string or array, but found ${mt(i.type)} instead.`):new df(i,r.key):null}evaluate(e){let r=this.input.evaluate(e);if(typeof r=="string")return[...r].length;if(Array.isArray(r))return r.length;throw new ft(`Expected value to be of type string or array, but found ${mt(St(r))} instead.`,this.key)}eachChild(e){e(this.input)}outputDefined(){return!1}},_e=8192;function K0(t,e){let r=J0(t[0]),i=tm(t[1]),n=2**e.z;return[Math.round(r*n*_e),Math.round(i*n*_e)]}function _l(t,e){let r=2**e.z,i=(t[0]/_e+e.x)/r,n=(t[1]/_e+e.y)/r;return[Q0(i),em(n)]}function J0(t){return(180+t)/360}function Q0(t){return t*360-180}function tm(t){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+t*Math.PI/360)))/360}function em(t){return 360/Math.PI*Math.atan(Math.exp((180-t*360)*Math.PI/180))-90}function Dn(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[2]=Math.max(t[2],e[0]),t[3]=Math.max(t[3],e[1])}function an(t,e){return!(t[0]<=e[0]||t[2]>=e[2]||t[1]<=e[1]||t[3]>=e[3])}function rm(t,e,r){return e[1]>t[1]!=r[1]>t[1]&&t[0]<(r[0]-e[0])*(t[1]-e[1])/(r[1]-e[1])+e[0]}function im(t,e,r){let i=t[0]-e[0],n=t[1]-e[1],a=t[0]-r[0],s=t[1]-r[1];return i*s-a*n===0&&i*a<=0&&n*s<=0}function Ua(t,e,r,i){let n=[e[0]-t[0],e[1]-t[1]];return om([i[0]-r[0],i[1]-r[1]],n)!==0&&!!(_h(t,e,r,i)&&_h(r,i,t,e))}function nm(t,e,r){for(let i of r)for(let n=0;n0&&c<0||h<0&&c>0}function Al(t,e,r){let i=[];for(let n=0;nr[2]){let n=i*.5,a=t[0]-r[0]>n?-i:r[0]-t[0]>n?i:0;a===0&&(a=t[0]-r[2]>n?-i:r[2]-t[0]>n?i:0),t[0]+=a}Dn(e,t)}function lm(t){t[0]=t[1]=1/0,t[2]=t[3]=-1/0}function Ah(t,e,r,i){let n=2**i.z*_e,a=[i.x*_e,i.y*_e],s=[];for(let o of t)for(let l of o){let u=[l.x+a[0],l.y+a[1]];gf(u,e,r,n),s.push(u)}return s}function Sh(t,e,r,i){let n=2**i.z*_e,a=[i.x*_e,i.y*_e],s=[];for(let o of t){let l=[];for(let u of o){let h=[u.x+a[0],u.y+a[1]];Dn(e,h),l.push(h)}s.push(l)}if(e[2]-e[0]<=n/2){lm(e);for(let o of s)for(let l of o)gf(l,e,r,n)}return s}function um(t,e){let r=[1/0,1/0,-1/0,-1/0],i=[1/0,1/0,-1/0,-1/0],n=t.canonicalID();if(e.type==="Polygon"){let a=Al(e.coordinates,i,n),s=Ah(t.geometry(),r,i,n);if(!an(r,i))return!1;for(let o of s)if(!ui(o,a))return!1}if(e.type==="MultiPolygon"){let a=mf(e.coordinates,i,n),s=Ah(t.geometry(),r,i,n);if(!an(r,i))return!1;for(let o of s)if(!am(o,a))return!1}return!0}function hm(t,e){let r=[1/0,1/0,-1/0,-1/0],i=[1/0,1/0,-1/0,-1/0],n=t.canonicalID();if(e.type==="Polygon"){let a=Al(e.coordinates,i,n),s=Sh(t.geometry(),r,i,n);if(!an(r,i))return!1;for(let o of s)if(!yf(o,a))return!1}if(e.type==="MultiPolygon"){let a=mf(e.coordinates,i,n),s=Sh(t.geometry(),r,i,n);if(!an(r,i))return!1;for(let o of s)if(!sm(o,a))return!1}return!0}var Sl=class pa{constructor(e,r){this.type=Q,this.geojson=e,this.geometries=r}static parse(e,r){if(e.length!==2)return r.error(`\'within\' expression requires exactly one argument, but found ${e.length-1} instead.`);if(ei(e[1])){let i=e[1];if(i.type==="FeatureCollection"){let n=[];for(let a of i.features){let{type:s,coordinates:o}=a.geometry;s==="Polygon"&&n.push(o),s==="MultiPolygon"&&n.push(...o)}if(n.length)return new pa(i,{type:"MultiPolygon",coordinates:n})}else if(i.type==="Feature"){let n=i.geometry.type;if(n==="Polygon"||n==="MultiPolygon")return new pa(i,i.geometry)}else if(i.type==="Polygon"||i.type==="MultiPolygon")return new pa(i,i)}return r.error("\'within\' expression requires valid geojson object that contains polygon geometry type.")}evaluate(e){if(e.geometry()!=null&&e.canonicalID()!=null){if(e.geometryType()==="Point")return um(e,this.geometries);if(e.geometryType()==="LineString")return hm(e,this.geometries)}return!1}eachChild(){}outputDefined(){return!0}},xf=class{constructor(t=[],e=(r,i)=>ri)){if(this.data=t,this.length=this.data.length,this.compare=e,this.length>0)for(let r=(this.length>>1)-1;r>=0;r--)this._down(r)}push(t){this.data.push(t),this._up(this.length++)}pop(){if(this.length===0)return;let t=this.data[0],e=this.data.pop();return--this.length>0&&(this.data[0]=e,this._down(0)),t}peek(){return this.data[0]}_up(t){let{data:e,compare:r}=this,i=e[t];for(;t>0;){let n=t-1>>1,a=e[n];if(r(i,a)>=0)break;e[t]=a,t=n}e[t]=i}_down(t){let{data:e,compare:r}=this,i=this.length>>1,n=e[t];for(;t=0)break;e[t]=e[a],t=a}e[t]=n}},Eh=Math.PI/180,El=class{constructor(t){let e=Eh*6378.137*1e3,r=Math.cos(t*Eh),i=1/(1-.0066943799901413165*(1-r*r)),n=Math.sqrt(i);this.kx=e*n*r,this.ky=e*n*i*.9933056200098587}distance(t,e){let r=this.wrap(t[0]-e[0])*this.kx,i=(t[1]-e[1])*this.ky;return Math.sqrt(r*r+i*i)}pointOnLine(t,e){let r=1/0,i,n,a,s;for(let o=0;o1?(l=t[o+1][0],u=t[o+1][1]):p>0&&(l+=h/this.kx*p,u+=c/this.ky*p)),h=this.wrap(e[0]-l)*this.kx,c=(e[1]-u)*this.ky;let f=h*h+c*c;f180;)t-=360;return t}};function vf(t,e){return e[0]-t[0]}function va(t){return t[1]-t[0]+1}function Ve(t,e){return t[1]>=t[0]&&t[1]t[1])return[null,null];let r=va(t);if(e){if(r===2)return[t,null];let n=Math.floor(r/2);return[[t[0],t[0]+n],[t[0]+n,t[1]]]}if(r===1)return[t,null];let i=Math.floor(r/2)-1;return[[t[0],t[0]+i],[t[0]+i+1,t[1]]]}function lo(t,e){if(!Ve(e,t.length))return[1/0,1/0,-1/0,-1/0];let r=[1/0,1/0,-1/0,-1/0];for(let i=e[0];i<=e[1];++i)Dn(r,t[i]);return r}function uo(t){let e=[1/0,1/0,-1/0,-1/0];for(let r of t)for(let i of r)Dn(e,i);return e}function Fh(t){return t[0]!==-1/0&&t[1]!==-1/0&&t[2]!==1/0&&t[3]!==1/0}function Fl(t,e,r){if(!Fh(t)||!Fh(e))return NaN;let i=0,n=0;return t[2]e[2]&&(i=t[0]-e[2]),t[1]>e[3]&&(n=t[1]-e[3]),t[3]=i)return i;if(an(n,a)){if(Th(t,e))return 0}else if(Th(e,t))return 0;let s=1/0;for(let o of t)for(let l=0,u=o.length,h=u-1;l0;){let l=s.pop();if(l[0]>=a)continue;let u=l[1],h=e?50:100;if(va(u)<=h){if(!Ve(u,t.length))return NaN;if(e){let c=dm(t,u,r,i);if(isNaN(c)||c===0)return c;a=Math.min(a,c)}else for(let c=u[0];c<=u[1];++c){let p=fm(t[c],r,i);if(a=Math.min(a,p),a===0)return 0}}else{let c=oo(u,e);kh(s,a,i,t,o,c[0]),kh(s,a,i,t,o,c[1])}}return a}function wa(t,e,r,i,n,a=1/0){let s=Math.min(a,n.distance(t[0],r[0]));if(s===0)return s;let o=new xf([[0,[0,t.length-1],[0,r.length-1]]],vf);for(;o.length>0;){let l=o.pop();if(l[0]>=s)continue;let u=l[1],h=l[2],c=e?50:100,p=i?50:100;if(va(u)<=c&&va(h)<=p){if(!Ve(u,t.length)&&Ve(h,r.length))return NaN;let f;if(e&&i)f=cm(t,u,r,h,n),s=Math.min(s,f);else if(e&&!i){let d=t.slice(u[0],u[1]+1);for(let y=h[0];y<=h[1];++y)if(f=dr(r[y],d,n),s=Math.min(s,f),s===0)return s}else if(!e&&i){let d=r.slice(h[0],h[1]+1);for(let y=u[0];y<=u[1];++y)if(f=dr(t[y],d,n),s=Math.min(s,f),s===0)return s}else f=pm(t,u,r,h,n),s=Math.min(s,f)}else{let f=oo(u,e),d=oo(h,i);Zn(o,s,n,t,r,f[0],d[0]),Zn(o,s,n,t,r,f[0],d[1]),Zn(o,s,n,t,r,f[1],d[0]),Zn(o,s,n,t,r,f[1],d[1])}}return s}function mm(t,e){let r=t.geometry(),i=r.flat().map(s=>_l([s.x,s.y],t.canonical));if(r.length===0)return NaN;let n=new El(i[0][1]),a=1/0;for(let s of e){switch(s.type){case"Point":a=Math.min(a,wa(i,!1,[s.coordinates],!1,n,a));break;case"LineString":a=Math.min(a,wa(i,!1,s.coordinates,!0,n,a));break;case"Polygon":a=Math.min(a,ba(i,!1,s.coordinates,n,a))}if(a===0)return a}return a}function gm(t,e){let r=t.geometry(),i=r.flat().map(s=>_l([s.x,s.y],t.canonical));if(r.length===0)return NaN;let n=new El(i[0][1]),a=1/0;for(let s of e){switch(s.type){case"Point":a=Math.min(a,wa(i,!0,[s.coordinates],!1,n,a));break;case"LineString":a=Math.min(a,wa(i,!0,s.coordinates,!0,n,a));break;case"Polygon":a=Math.min(a,ba(i,!0,s.coordinates,n,a))}if(a===0)return a}return a}function xm(t,e){let r=t.geometry();if(r.length===0||r[0].length===0)return NaN;let i=Na(r,0).map(s=>s.map(o=>o.map(l=>_l([l.x,l.y],t.canonical)))),n=new El(i[0][0][0][1]),a=1/0;for(let s of e)for(let o of i){switch(s.type){case"Point":a=Math.min(a,ba([s.coordinates],!1,o,n,a));break;case"LineString":a=Math.min(a,ba(s.coordinates,!0,o,n,a));break;case"Polygon":a=Math.min(a,ym(o,s.coordinates,n,a))}if(a===0)return a}return a}function Vs(t){return t.type==="MultiPolygon"?t.coordinates.map(e=>({type:"Polygon",coordinates:e})):t.type==="MultiLineString"?t.coordinates.map(e=>({type:"LineString",coordinates:e})):t.type==="MultiPoint"?t.coordinates.map(e=>({type:"Point",coordinates:e})):[t]}var kl=class fa{constructor(e,r){this.type=I,this.geojson=e,this.geometries=r}static parse(e,r){if(e.length!==2)return r.error(`\'distance\' expression requires exactly one argument, but found ${e.length-1} instead.`);if(ei(e[1])){let i=e[1];if(i.type==="FeatureCollection")return new fa(i,i.features.map(n=>Vs(n.geometry)).flat());if(i.type==="Feature")return new fa(i,Vs(i.geometry));if("type"in i&&"coordinates"in i)return new fa(i,Vs(i))}return r.error("\'distance\' expression requires valid geojson object that contains polygon geometry type.")}evaluate(e){if(e.geometry()!=null&&e.canonicalID()!=null){if(e.geometryType()==="Point")return mm(e,this.geometries);if(e.geometryType()==="LineString")return gm(e,this.geometries);if(e.geometryType()==="Polygon")return xm(e,this.geometries)}return NaN}eachChild(){}outputDefined(){return!0}},vm=class bf{constructor(e){let r=null;for(let i of e)if(!r)r=i.type;else{if(r===i.type)continue;r=H;break}this.type=Ut(r!=null?r:H,e.length),this.arr=e}static parse(e,r){if(e.length!==2)return r.error(`\'semiliteral\' expression requires exactly one argument, but found ${e.length-1} instead.`);if(!ei(e[1]))return r.error(`invalid value of type "${typeof e[1]}"`);let i=e[1],n=St(i);if(n.kind==="array"){let a=i,s=r.concat(1),o=[];for(let l=0;lr.evaluate(e))}eachChild(e){this.arr.forEach(e)}outputDefined(){return this.arr.every(e=>e.outputDefined())}},Il=class wf{constructor(e){this.key=e,this.type=H}static parse(e,r){if(e.length!==2)return r.error(`Expected 1 argument, but found ${e.length-1} instead.`);let i=e[1];return i==null?r.error("Global state property must be defined."):typeof i=="string"?new wf(i):r.error(`Global state property must be string, but found ${typeof e[1]} instead.`)}evaluate(e){var i,n;let r=(i=e.globals)==null?void 0:i.globalState;return!r||Object.keys(r).length===0?null:(n=Yi(r,this.key))!=null?n:null}eachChild(){}outputDefined(){return!1}},Yr={"==":U0,"!=":q0,">":G0,"<":j0,">=":Y0,"<=":X0,array:Be,at:S0,boolean:Be,case:k0,coalesce:of,collator:hf,format:Yp,image:Z0,in:E0,"index-of":F0,interpolate:De,"interpolate-hcl":De,"interpolate-lab":De,length:H0,let:Jp,literal:ri,match:T0,number:Be,"number-format":W0,object:Be,semiliteral:vm,slice:I0,step:Dl,string:Be,"to-boolean":jr,"to-color":jr,"to-number":jr,"to-string":jr,var:tf,within:Sl,distance:kl,"global-state":Il},ve=class extends Error{constructor(t,e){super(e),this.message=e,this.key=t}},bm=class Df{constructor(e,r=[]){this.parent=e,this.bindings={};for(let[i,n]of r)this.bindings[i]=n}concat(e){return new Df(this,e)}get(e){if(this.bindings[e])return this.bindings[e];if(this.parent)return this.parent.get(e);throw Error(`${e} not found in scope.`)}has(e){return this.bindings[e]?!0:this.parent?this.parent.has(e):!1}},_f=class Af{constructor(e,r,i=[],n,a=new bm,s=[]){this.registry=e,this.path=i,this.key=i.map(o=>`[${o}]`).join(""),this.scope=a,this.errors=s,this.expectedType=n,this._isConstant=r}parse(e,r,i,n,a={}){return r==null?this._parse(e,a):this.concat(r,i,n)._parse(e,a)}_parse(e,r){(e===null||typeof e=="string"||typeof e=="boolean"||typeof e=="number")&&(e=["literal",e]);let i=this.key;function n(a,s,o){return o==="assert"?new Be(s,[a],i):o==="coerce"?new jr(s,[a],i):a}if(Array.isArray(e)){if(e.length===0)return this.error(\'Expected an array with at least one element. If you wanted a literal array, use ["literal", []].\');let a=e[0];if(typeof a!="string")return this.error(`Expression name must be a string, but found ${typeof a} instead. If you wanted a literal array, use ["literal", [...]].`,0),null;let s=this.registry[a];if(s){let o=s.parse(e,this);if(!o)return null;if(this.expectedType){let l=this.expectedType,u=o.type;if((l.kind==="string"||l.kind==="number"||l.kind==="boolean"||l.kind==="object"||l.kind==="array")&&u.kind==="value")o=n(o,l,r.typeAnnotation||"assert");else if(l.kind==="projectionDefinition"&&["string","array","value"].includes(u.kind)||["color","formatted","resolvedImage"].includes(l.kind)&&["value","string"].includes(u.kind)||["padding","numberArray"].includes(l.kind)&&["value","number","array"].includes(u.kind)||l.kind==="colorArray"&&["value","string","array"].includes(u.kind)||l.kind==="variableAnchorOffsetCollection"&&["value","array"].includes(u.kind))o=n(o,l,r.typeAnnotation||"coerce");else if(this.checkSubtype(l,u))return null}if(!(o instanceof ri)&&o.type.kind!=="resolvedImage"&&this._isConstant(o)){let l=new Gp;try{o=new ri(o.type,o.evaluate(l))}catch(u){return this.error(u.message),null}}return o}return this.error(`Unknown expression "${a}". If you wanted a literal array, use ["literal", [...]].`,0)}return e===void 0?this.error("\'undefined\' value invalid. Use null instead."):typeof e=="object"?this.error(\'Bare objects invalid. Use ["literal", {...}] instead.\'):this.error(`Expected an array, but found ${typeof e} instead.`)}concat(e,r,i){let n=typeof e=="number"?this.path.concat(e):this.path,a=i?this.scope.concat(i):this.scope;return new Af(this.registry,this._isConstant,n,r||null,a,this.errors)}error(e,...r){let i=`${this.key}${r.map(n=>`[${n}]`).join("")}`;this.errors.push(new ve(i,e))}checkSubtype(e,r){let i=nn(e,r);return i&&this.error(i),i}},Er=class Ui{constructor(e,r,i,n,a){this.name=e,this.type=r,this._evaluate=i,this.args=n,this.key=a}evaluate(e){return this._evaluate(e,this.args,this.key)}eachChild(e){this.args.forEach(e)}outputDefined(){return!1}static parse(e,r){let i=e[0],n=Ui.definitions[i];if(!n)return r.error(`Unknown expression "${i}". If you wanted a literal array, use ["literal", [...]].`,0);let a=Array.isArray(n)?n[0]:n.type,s=Array.isArray(n)?[[n[1],n[2]]]:n.overloads,o=s.filter(([u])=>!Array.isArray(u)||u.length===e.length-1),l=null;for(let[u,h]of o){l=new _f(r.registry,Da,r.path,null,r.scope);let c=[],p=!1;for(let f=1;fDm(c)).join(" | "),h=[];for(let c=1;c>1;if(e[n]===t)return!0;e[n]>t?i=n-1:r=n+1}return!1}function hr(t){return{type:t}}Er.register(Yr,{error:[o0,[W],(t,[e],r)=>{throw new ft(e.evaluate(t),r)}],typeof:[W,[H],(t,[e])=>mt(St(e.evaluate(t)))],"to-rgba":[Ut(I,4),[pe],(t,[e])=>{let[r,i,n,a]=e.evaluate(t).rgb;return[r*255,i*255,n*255,a]}],rgb:[pe,[I,I,I],Ih],rgba:[pe,[I,I,I,I],Ih],has:{type:Q,overloads:[[[W],(t,[e])=>Ch(e.evaluate(t),t.properties())],[[W,mr],(t,[e,r])=>Ch(e.evaluate(t),r.evaluate(t))]]},get:{type:H,overloads:[[[W],(t,[e])=>Os(e.evaluate(t),t.properties())],[[W,mr],(t,[e,r])=>Os(e.evaluate(t),r.evaluate(t))]]},"feature-state":[H,[W],(t,[e])=>Os(e.evaluate(t),t.featureState||{})],properties:[mr,[],t=>t.properties()],"geometry-type":[W,[],t=>t.geometryType()],id:[H,[],t=>t.id()],zoom:[I,[],t=>t.globals.zoom],"heatmap-density":[I,[],t=>t.globals.heatmapDensity||0],elevation:[I,[],t=>t.globals.elevation||0],"line-progress":[I,[],t=>t.globals.lineProgress||0],accumulated:[H,[],t=>t.globals.accumulated===void 0?null:t.globals.accumulated],"+":[I,hr(I),(t,e)=>{let r=0;for(let i of e)r+=i.evaluate(t);return r}],"*":[I,hr(I),(t,e)=>{let r=1;for(let i of e)r*=i.evaluate(t);return r}],"-":{type:I,overloads:[[[I,I],(t,[e,r])=>e.evaluate(t)-r.evaluate(t)],[[I],(t,[e])=>-e.evaluate(t)]]},"/":[I,[I,I],(t,[e,r])=>e.evaluate(t)/r.evaluate(t)],"%":[I,[I,I],(t,[e,r])=>e.evaluate(t)%r.evaluate(t)],ln2:[I,[],()=>Math.LN2],pi:[I,[],()=>Math.PI],e:[I,[],()=>Math.E],"^":[I,[I,I],(t,[e,r])=>e.evaluate(t)**+r.evaluate(t)],sqrt:[I,[I],(t,[e])=>Math.sqrt(e.evaluate(t))],log10:[I,[I],(t,[e])=>Math.log(e.evaluate(t))/Math.LN10],ln:[I,[I],(t,[e])=>Math.log(e.evaluate(t))],log2:[I,[I],(t,[e])=>Math.log(e.evaluate(t))/Math.LN2],sin:[I,[I],(t,[e])=>Math.sin(e.evaluate(t))],cos:[I,[I],(t,[e])=>Math.cos(e.evaluate(t))],tan:[I,[I],(t,[e])=>Math.tan(e.evaluate(t))],asin:[I,[I],(t,[e])=>Math.asin(e.evaluate(t))],acos:[I,[I],(t,[e])=>Math.acos(e.evaluate(t))],atan:[I,[I],(t,[e])=>Math.atan(e.evaluate(t))],min:[I,hr(I),(t,e)=>Math.min(...e.map(r=>r.evaluate(t)))],max:[I,hr(I),(t,e)=>Math.max(...e.map(r=>r.evaluate(t)))],abs:[I,[I],(t,[e])=>Math.abs(e.evaluate(t))],round:[I,[I],(t,[e])=>{let r=e.evaluate(t);return r<0?-Math.round(-r):Math.round(r)}],floor:[I,[I],(t,[e])=>Math.floor(e.evaluate(t))],ceil:[I,[I],(t,[e])=>Math.ceil(e.evaluate(t))],"filter-==":[Q,[W,H],(t,[e,r])=>t.properties()[e.value]===r.value],"filter-id-==":[Q,[H],(t,[e])=>t.id()===e.value],"filter-type-==":[Q,[W],(t,[e])=>t.geometryType()===e.value],"filter-<":[Q,[W,H],(t,[e,r])=>{let i=t.properties()[e.value],n=r.value;return typeof i==typeof n&&i{let r=t.id(),i=e.value;return typeof r==typeof i&&r":[Q,[W,H],(t,[e,r])=>{let i=t.properties()[e.value],n=r.value;return typeof i==typeof n&&i>n}],"filter-id->":[Q,[H],(t,[e])=>{let r=t.id(),i=e.value;return typeof r==typeof i&&r>i}],"filter-<=":[Q,[W,H],(t,[e,r])=>{let i=t.properties()[e.value],n=r.value;return typeof i==typeof n&&i<=n}],"filter-id-<=":[Q,[H],(t,[e])=>{let r=t.id(),i=e.value;return typeof r==typeof i&&r<=i}],"filter->=":[Q,[W,H],(t,[e,r])=>{let i=t.properties()[e.value],n=r.value;return typeof i==typeof n&&i>=n}],"filter-id->=":[Q,[H],(t,[e])=>{let r=t.id(),i=e.value;return typeof r==typeof i&&r>=i}],"filter-has":[Q,[H],(t,[e])=>{let r=e.value,i=t.properties();return r in i&&i[r]!==void 0}],"filter-has-id":[Q,[],t=>t.id()!==null&&t.id()!==void 0],"filter-type-in":[Q,[Ut(W)],(t,[e])=>e.value.indexOf(t.geometryType())>=0],"filter-id-in":[Q,[Ut(H)],(t,[e])=>e.value.indexOf(t.id())>=0],"filter-in-small":[Q,[W,Ut(H)],(t,[e,r])=>r.value.indexOf(t.properties()[e.value])>=0],"filter-in-large":[Q,[W,Ut(H)],(t,[e,r])=>wm(t.properties()[e.value],r.value,0,r.value.length-1)],all:{type:Q,overloads:[[[Q,Q],(t,[e,r])=>e.evaluate(t)&&r.evaluate(t)],[hr(Q),(t,e)=>{for(let r of e)if(!r.evaluate(t))return!1;return!0}]]},any:{type:Q,overloads:[[[Q,Q],(t,[e,r])=>e.evaluate(t)||r.evaluate(t)],[hr(Q),(t,e)=>{for(let r of e)if(r.evaluate(t))return!0;return!1}]]},"!":[Q,[Q],(t,[e])=>!e.evaluate(t)],"is-supported-script":[Q,[W],(t,[e])=>{let r=t.globals&&t.globals.isSupportedScript;return!r||r(e.evaluate(t))}],upcase:[W,[W],(t,[e])=>e.evaluate(t).toUpperCase()],downcase:[W,[W],(t,[e])=>e.evaluate(t).toLowerCase()],concat:[W,hr(H),(t,e)=>e.map(r=>Wi(r.evaluate(t))).join("")],split:[Ut(W),[W,W],(t,[e,r])=>e.evaluate(t).split(r.evaluate(t))],join:[W,[Ut(W),W],(t,[e,r])=>e.evaluate(t).join(r.evaluate(t))],"resolved-locale":[W,[La],(t,[e])=>e.evaluate(t).resolvedLocale()]});function Dm(t){return Array.isArray(t)?`(${t.map(mt).join(", ")})`:`(${mt(t.type)}...)`}function Da(t){if(t instanceof tf)return Da(t.boundExpression);if(t instanceof Er&&t.name==="error"||t instanceof hf||t instanceof Sl||t instanceof kl||t instanceof Il)return!1;let e=t instanceof jr||t instanceof Be,r=!0;return t.eachChild(i=>{r&&(r=e?Da(i):i instanceof ri)}),r?qa(t)&&ja(t,["zoom","heatmap-density","elevation","line-progress","accumulated","is-supported-script"]):!1}function qa(t){if(t instanceof Er&&(t.name==="get"&&t.args.length===1||t.name==="feature-state"||t.name==="has"&&t.args.length===1||t.name==="properties"||t.name==="geometry-type"||t.name==="id"||/^filter-/.test(t.name))||t instanceof Sl||t instanceof kl)return!1;let e=!0;return t.eachChild(r=>{e&&!qa(r)&&(e=!1)}),e}function sn(t){if(t instanceof Er&&t.name==="feature-state")return!1;let e=!0;return t.eachChild(r=>{e&&!sn(r)&&(e=!1)}),e}function ja(t,e){if(t instanceof Er&&e.indexOf(t.name)>=0)return!1;let r=!0;return t.eachChild(i=>{r&&!ja(i,e)&&(r=!1)}),r}function ii(t){return t["property-type"]==="data-driven"||t["property-type"]==="cross-faded-data-driven"}function Sf(t){return!!t.expression&&t.expression.parameters.indexOf("zoom")>-1}function Cl(t){return!!t.expression&&t.expression.interpolated}var Ml=/^(.*)-transition$/;function on(t,...e){for(let r of e)for(let i in r)t[i]=r[i];return t}function J(t){return t instanceof Number?"number":t instanceof String?"string":t instanceof Boolean?"boolean":Array.isArray(t)?"array":t===null?"null":typeof t}function Ga(t){return typeof t=="object"&&!!t&&!Array.isArray(t)&&St(t)===mr}function _m(t){return t}function Am(t){switch(t.type){case"color":return xt.parse;case"padding":return Ee.parse;case"numberArray":return Fe.parse;case"colorArray":return ue.parse;default:return null}}function Sm(t){switch(t){case"exponential":return Ff;case"interval":return Fm;case"categorical":return Em;case"identity":return Tm;default:throw Error(`Unknown function type "${t}"`)}}function Ef(t,e){let r=t.stops&&typeof t.stops[0][0]=="object",i=r||t.property!==void 0,n=r||!i,a=t.type||(Cl(e)?"exponential":"interval"),s=Am(e);if(s&&(t=on({},t),t.stops&&(t.stops=t.stops.map(h=>[h[0],s(h[1])])),t.default?t.default=s(t.default):t.default=s(e.default)),t.colorSpace&&!g0(t.colorSpace))throw Error(`Unknown color space: "${t.colorSpace}"`);let o=Sm(a),l,u;if(a==="categorical"){l=Object.create(null);for(let h of t.stops)l[h[0]]=h[1];u=typeof t.stops[0][0]}if(r){let h={},c=[];for(let d=0;dd[0]),evaluate({zoom:d},y){return Ff({stops:p,base:t.base},e,d).evaluate(d,y)}}}if(n){let h=a==="exponential"?{name:"exponential",base:t.base===void 0?1:t.base}:null;return{kind:"camera",interpolationType:h,interpolationFactor:De.interpolationFactor.bind(void 0,h),zoomStops:t.stops.map(c=>c[0]),evaluate:({zoom:c})=>o(t,e,c,l,u)}}return{kind:"source",evaluate(h,c){let p=c&&c.properties?c.properties[t.property]:void 0;return p===void 0?_n(t.default,e.default):o(t,e,p,l,u)}}}function _n(t,e,r){if(t!==void 0)return t;if(e!==void 0)return e;if(r!==void 0)return r}function Em(t,e,r,i,n){return _n(typeof r===n?i[r]:void 0,t.default,e.default)}function Fm(t,e,r){if(J(r)!=="number")return _n(t.default,e.default);let i=t.stops.length;if(i===1||r<=t.stops[0][0])return t.stops[0][1];if(r>=t.stops[i-1][0])return t.stops[i-1][1];let n=$a(t.stops.map(a=>a[0]),r,"");return t.stops[n][1]}function Ff(t,e,r){let i=t.base===void 0?1:t.base;if(J(r)!=="number")return _n(t.default,e.default);let n=t.stops.length;if(n===1||r<=t.stops[0][0])return t.stops[0][1];if(r>=t.stops[n-1][0])return t.stops[n-1][1];let a=$a(t.stops.map(h=>h[0]),r,""),s=km(r,i,t.stops[a][0],t.stops[a+1][0]),o=t.stops[a][1],l=t.stops[a+1][1],u=br[e.type]||_m;return typeof o.evaluate=="function"?{evaluate(...h){let c=o.evaluate.apply(void 0,h),p=l.evaluate.apply(void 0,h);if(c!==void 0&&p!==void 0)return u(c,p,s,t.colorSpace)}}:u(o,l,s,t.colorSpace)}function Tm(t,e,r){switch(e.type){case"color":r=xt.parse(r);break;case"formatted":r=Le.fromString(r.toString());break;case"resolvedImage":r=Se.fromString(r.toString());break;case"padding":r=Ee.parse(r);break;case"colorArray":r=ue.parse(r);break;case"numberArray":r=Fe.parse(r);break;default:J(r)!==e.type&&(e.type!=="enum"||!e.values[r])&&(r=void 0)}return _n(r,t.default,e.default)}function km(t,e,r,i){let n=i-r,a=t-r;return n===0?0:e===1?a/n:(e**+a-1)/(e**+n-1)}function ho(t){return{result:"success",value:t}}function Nr(t){return{result:"error",value:t}}var Bl=class{constructor(t,e,r,i){this.expression=t,this._warningHistory={},this._evaluator=new Gp,this._defaultValue=r?Bf(r):null,this._enumValues=r&&r.type==="enum"?r.values:null,this._globalState=i,this._rootKey=e}evaluateWithoutErrorHandling(t,e,r,i,n,a){return this._globalState&&(t=ni(t,this._globalState)),this._evaluator.globals=t,this._evaluator.feature=e,this._evaluator.featureState=r,this._evaluator.canonical=i,this._evaluator.availableImages=n||null,this._evaluator.formattedSection=a,this.expression.evaluate(this._evaluator)}evaluate(t,e,r,i,n,a){this._globalState&&(t=ni(t,this._globalState)),this._evaluator.globals=t,this._evaluator.feature=e||null,this._evaluator.featureState=r||null,this._evaluator.canonical=i,this._evaluator.availableImages=n||null,this._evaluator.formattedSection=a||null;try{let s=this.expression.evaluate(this._evaluator);if(s==null||typeof s=="number"&&s!==s)return this._defaultValue;if(this._enumValues&&!(s in this._enumValues))throw new ft(`Expected value to be one of ${Object.keys(this._enumValues).map(o=>JSON.stringify(o)).join(", ")}, but found ${JSON.stringify(s)} instead.`,"");return s}catch(s){let o=s instanceof ft?s.path:"",l=`${o}|${s.message}`;return this._warningHistory[l]||(this._warningHistory[l]=!0,typeof console<"u"&&console.warn(Tf(this._rootKey,o,s.message,this._defaultValue))),this._defaultValue}}};function Tf(t,e,r,i){return`${t}${e}: ${r}${i==null?"":` Falling back to ${String(i)}.`}`}function kf(t){if(!t)throw Error(\'rootKey must identify the location of the expression in the style JSON, e.g. "layers[3].paint.line-width".\')}function Xa(t){return Array.isArray(t)&&t.length>0&&typeof t[0]=="string"&&t[0]in Yr}function ar(t,e,r,i){kf(e);let n=new _f(Yr,Da,[],r?Mm(r):void 0),a=n.parse(t,void 0,void 0,void 0,r&&r.type==="string"?{typeAnnotation:"coerce"}:void 0);return a?ho(new Bl(a,e,r,i)):Nr(n.errors)}var ln=class{constructor(t,e,r){this.kind=t,this._styleExpression=e,this.isStateDependent=t!=="constant"&&!sn(e.expression),this.globalStateRefs=An(e.expression),this._globalState=r}evaluateWithoutErrorHandling(t,e,r,i,n,a){return this._globalState&&(t=ni(t,this._globalState)),this._styleExpression.evaluateWithoutErrorHandling(t,e,r,i,n,a)}evaluate(t,e,r,i,n,a){return this._globalState&&(t=ni(t,this._globalState)),this._styleExpression.evaluate(t,e,r,i,n,a)}},_a=class{constructor(t,e,r,i,n){this.kind=t,this.zoomStops=r,this._styleExpression=e,this.isStateDependent=t!=="camera"&&!sn(e.expression),this.globalStateRefs=An(e.expression),this.interpolationType=i,this._globalState=n}evaluateWithoutErrorHandling(t,e,r,i,n,a){return this._globalState&&(t=ni(t,this._globalState)),this._styleExpression.evaluateWithoutErrorHandling(t,e,r,i,n,a)}evaluate(t,e,r,i,n,a){return this._globalState&&(t=ni(t,this._globalState)),this._styleExpression.evaluate(t,e,r,i,n,a)}interpolationFactor(t,e,r){return this.interpolationType?De.interpolationFactor(this.interpolationType,t,e,r):0}};function Im(t){return t._styleExpression!==void 0}function If(t,e,r,i){let n=ar(t,e,r,i);if(n.result==="error")return n;let a=n.value.expression,s=qa(a);if(!s&&!ii(r))return Nr([new ve("","data expressions not supported")]);let o=ja(a,["zoom"]);if(!o&&!Sf(r))return Nr([new ve("","zoom expressions not supported")]);let l=da(a);if(!l&&!o)return Nr([new ve("",\'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.\')]);if(l instanceof ve)return Nr([l]);if(l instanceof De&&!Cl(r))return Nr([new ve("",\'"interpolate" expressions cannot be used with this property\')]);if(!l)return ho(s?new ln("constant",n.value,i):new ln("source",n.value,i));let u=l instanceof De?l.interpolation:void 0;return ho(s?new _a("camera",n.value,l.labels,u,i):new _a("composite",n.value,l.labels,u,i))}var Cf=class Mf{constructor(e,r,i){this.isStateDependent=!1,this.globalStateRefs=new Set,this._globalState=null,kf(r),this._parameters=e,this._specification=i,this._rootKey=r,this._defaultValue=Bf(i),this._warningHistory={};let n=Ef(this._parameters,this._specification);this.kind=n.kind,this.interpolationFactor=n.interpolationFactor,this.zoomStops=n.zoomStops,this.interpolationType=n.interpolationType,this._innerEvaluate=n.evaluate}evaluate(e,r){try{return this._innerEvaluate(e,r)}catch(i){let n=i instanceof Error?i.message:String(i),a=`|${n}`;return this._warningHistory[a]||(this._warningHistory[a]=!0,typeof console<"u"&&console.warn(Tf(this._rootKey,"",n,this._defaultValue))),this._defaultValue}}static deserialize(e){return new Mf(e._parameters,e._rootKey,e._specification)}static serialize(e){return{_parameters:e._parameters,_specification:e._specification,_rootKey:e._rootKey}}};function Cm(t,e,r,i){if(Ga(t))return new Cf(t,e,r);if(Xa(t)){let n=If(t,e,r,i);if(n.result==="error")throw Error(n.value.map(a=>`${a.key}: ${a.message}`).join(", "));return n.value}{let n=t;return r.type==="color"&&typeof t=="string"?n=xt.parse(t):r.type==="padding"&&(typeof t=="number"||Array.isArray(t))?n=Ee.parse(t):r.type==="numberArray"&&(typeof t=="number"||Array.isArray(t))?n=Fe.parse(t):r.type==="colorArray"&&(typeof t=="string"||Array.isArray(t))?n=ue.parse(t):r.type==="variableAnchorOffsetCollection"&&Array.isArray(t)?n=Ae.parse(t):r.type==="projectionDefinition"&&typeof t=="string"&&(n=Sr.parse(t)),{globalStateRefs:new Set,_globalState:null,kind:"constant",evaluate:()=>n}}}function da(t){let e=null;if(t instanceof Jp)e=da(t.result);else if(t instanceof of){for(let r of t.args)if(e=da(r),e)break}else(t instanceof Dl||t instanceof De)&&t.input instanceof Er&&t.input.name==="zoom"&&(e=t);return e instanceof ve||t.eachChild(r=>{let i=da(r);i instanceof ve?e=i:!e&&i?e=new ve("",\'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.\'):e&&i&&e!==i&&(e=new ve("",\'Only one zoom-based "step" or "interpolate" subexpression may be used in an expression.\'))}),e}function An(t,e=new Set){return t instanceof Il&&e.add(t.key),t.eachChild(r=>{An(r,e)}),e}function Mm(t){let e={color:pe,string:W,number:I,enum:W,boolean:Q,formatted:bn,padding:Va,numberArray:Oa,colorArray:rn,projectionDefinition:za,resolvedImage:wn,variableAnchorOffsetCollection:Ra};return t.type==="array"?Ut(e[t.value]||H,t.length):e[t.type]}function Bf(t){if(t.type==="color"&&Ga(t.default))return new xt(0,0,0,0);switch(t.type){case"color":return xt.parse(t.default)||null;case"padding":return Ee.parse(t.default)||null;case"numberArray":return Fe.parse(t.default)||null;case"colorArray":return ue.parse(t.default)||null;case"variableAnchorOffsetCollection":return Ae.parse(t.default)||null;case"projectionDefinition":return Sr.parse(t.default)||null;default:return t.default===void 0?null:t.default}}function ni(t,e){let{zoom:r,heatmapDensity:i,elevation:n,lineProgress:a,isSupportedScript:s,accumulated:o}=t!=null?t:{};return{zoom:r,heatmapDensity:i,elevation:n,lineProgress:a,isSupportedScript:s,accumulated:o,globalState:e}}function Bm(t){let e=!1;for(let r of t){let i=Pf(r);if(i==="expression")return"expression";i==="legacy"&&(e=!0)}return e?"legacy":"neutral"}function Pf(t){if(typeof t=="boolean")return"neutral";if(!Array.isArray(t)||t.length===0)return"legacy";switch(t[0]){case"has":return t.length<2||t[1]==="$id"||t[1]==="$type"?"legacy":t.length===2?"neutral":"expression";case"in":return t.length>=3&&(typeof t[1]!="string"||Array.isArray(t[2]))?"expression":"legacy";case"!in":case"!has":return"legacy";case"==":case"!=":case">":case">=":case"<":case"<=":return t.length!==3||Array.isArray(t[1])||Array.isArray(t[2])?"expression":"legacy";case"none":return"legacy";case"any":case"all":return Bm(t.slice(1));default:return"expression"}}function Pl(t){return Pf(t)!=="legacy"}function Mh(t){return t==="$type"?["geometry-type"]:t==="$id"?["id"]:["get",t]}function Pm(t){switch(t[0]){case"==":case"!=":case"<":case"<=":case">":case">=":return t.length!==3||typeof t[1]!="string"?null:[t[0],Mh(t[1]),t[2]];case"in":case"!in":{if(t.length<2||typeof t[1]!="string")return null;let e=["in",Mh(t[1]),["literal",t.slice(2)]];return t[0]==="!in"?["!",e]:e}case"has":case"!has":{if(t.length!==2||typeof t[1]!="string"||t[1]==="$type"||t[1]==="$id")return null;let e=["has",t[1]];return t[0]==="!has"?["!",e]:e}default:return null}}function zf(t){if((t[0]==="<"||t[0]==="<="||t[0]===">"||t[0]===">=")&&t[1]==="$type")return`"$type" cannot be use with operator "${t[0]}"`;let e=Pm(t);return e?`Mixing deprecated filter syntax with expression syntax is not supported. Replace ${JSON.stringify(t)} with ${JSON.stringify(e)}.`:`Mixing deprecated filter syntax with expression syntax is not supported. Convert ${JSON.stringify(t)} to expression syntax.`}function Rs(t,e,r){let i=r[t];return Array.isArray(i)?Pl(i)?zl(i,e.concat(t)):{path:e.concat(t),legacyFilter:i}:null}function zl(t,e=[]){if(!Array.isArray(t)||t.length<1)return null;switch(t[0]){case"all":case"any":case"none":for(let r=1;r"u")return;let i=r.path.map(n=>`[${n}]`).join("");console.warn(`${e}${i}: ${zf(r.legacyFilter)}`)}var Lm={type:"boolean",default:!1,transition:!1,"property-type":"data-driven",expression:{interpolated:!1,parameters:["zoom","feature"]}};function ai(t,e,r){if(t==null)return{filter:()=>!0,needGeometry:!1,getGlobalStateRefs:()=>new Set};Pl(t)?zm(t,e):t=Aa(t);let i=ar(t,e,Lm,r);if(i.result==="error")throw Error(i.value.map(n=>`${n.key}: ${n.message}`).join(", "));return{filter:(n,a,s)=>i.value.evaluate(n,a,{},s),needGeometry:Lf(t),getGlobalStateRefs:()=>An(i.value.expression)}}function Vm(t,e){return te)}function Lf(t){if(!Array.isArray(t))return!1;if(t[0]==="within"||t[0]==="distance")return!0;for(let e=1;e"||e==="<="||e===">="?$s(t[1],t[2],e):e==="any"?Om(t.slice(1)):e==="all"?["all"].concat(t.slice(1).map(Aa)):e==="none"?["all"].concat(t.slice(1).map(Aa).map(Hn)):e==="in"?Bh(t[1],t.slice(2)):e==="!in"?Hn(Bh(t[1],t.slice(2))):e==="has"?Ph(t[1]):e!=="!has"||Hn(Ph(t[1]))}function $s(t,e,r){switch(t){case"$type":return[`filter-type-${r}`,e];case"$id":return[`filter-id-${r}`,e];default:return[`filter-${r}`,t,e]}}function Om(t){return["any"].concat(t.map(Aa))}function Bh(t,e){if(e.length===0)return!1;switch(t){case"$type":return["filter-type-in",["literal",e]];case"$id":return["filter-id-in",["literal",e]];default:return e.length>200&&!e.some(r=>typeof r!=typeof e[0])?["filter-in-large",t,["literal",e.sort(Vm)]]:["filter-in-small",t,["literal",e]]}}function Ph(t){switch(t){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",t]}}function Hn(t){return["!",t]}function Vf(t){let e=t.key,r=t.value;return r?[new E(e,r,"constants have been deprecated as of v8")]:[]}function _t(t){return t instanceof Number||t instanceof String||t instanceof Boolean?t.valueOf():t}function wr(t){if(Array.isArray(t))return t.map(wr);if(t instanceof Object&&!(t instanceof Number||t instanceof String||t instanceof Boolean)){let e={};for(let r in t)e[r]=wr(t[r]);return e}return _t(t)}function ee(t){let e=t.key,r=t.value,i=t.valueSpec||{},n=t.objectElementValidators||{},a=t.style,s=t.styleSpec,o=t.validateSpec,l=[],u=J(r);if(u!=="object")return[new E(e,r,`object expected, ${u} found`)];for(let h in r){let c=h.split(".")[0],p=Yi(i,c)||i["*"],f;if(Yi(n,c))f=n[c];else if(Yi(i,c)){if(r[h]===void 0)continue;f=o}else if(n["*"])f=n["*"];else if(i["*"])f=o;else{l.push(new E(e,r[h],`unknown property "${h}"`));continue}l=l.concat(f({key:(e&&`${e}.`)+h,value:r[h],valueSpec:p,style:a,styleSpec:s,object:r,objectKey:h,validateSpec:o},r))}for(let h in i)n[h]||i[h].required&&i[h].default===void 0&&r[h]===void 0&&l.push(new E(e,r,`missing required property "${h}"`));return l}function Ll(t){let e=t.value,r=t.valueSpec,i=t.validateSpec,n=t.style,a=t.styleSpec,s=t.key,o=t.arrayElementValidator||i;if(J(e)!=="array")return[new E(s,e,`array expected, ${J(e)} found`)];if(r.length&&e.length!==r.length)return[new E(s,e,`array length ${r.length} expected, length ${e.length} found`)];let l={type:r.value,values:r.values};a.$version<7&&(l.function=r.function),J(r.value)==="object"&&(l=r.value);let u=[];for(let h=0;hi.maximum?[new E(e,r,`${r} is greater than the maximum value ${i.maximum}`)]:[]:[new E(e,r,`number expected, ${n} found`)]}function Of(t){let e=t.valueSpec,r=_t(t.value.type),i,n={},a,s,o=r!=="categorical"&&t.value.property===void 0,l=!o,u=J(t.value.stops)==="array"&&J(t.value.stops[0])==="array"&&J(t.value.stops[0][0])==="object",h=ee({key:t.key,value:t.value,valueSpec:t.styleSpec.function,validateSpec:t.validateSpec,style:t.style,styleSpec:t.styleSpec,objectElementValidators:{stops:c,default:d}});return r==="identity"&&o&&h.push(new E(t.key,t.value,\'missing required property "property"\')),r!=="identity"&&!t.value.stops&&h.push(new E(t.key,t.value,\'missing required property "stops"\')),r==="exponential"&&t.valueSpec.expression&&!Cl(t.valueSpec)&&h.push(new E(t.key,t.value,"exponential functions not supported")),t.styleSpec.$version>=8&&(l&&!ii(t.valueSpec)?h.push(new E(t.key,t.value,"property functions not supported")):o&&!Sf(t.valueSpec)&&h.push(new E(t.key,t.value,"zoom functions not supported"))),(r==="categorical"||u)&&t.value.property===void 0&&h.push(new E(t.key,t.value,\'"property" property is required\')),h;function c(y){if(r==="identity")return[new E(y.key,y.value,\'identity function may not have a "stops" property\')];let m=[],g=y.value;return m=m.concat(Ll({key:y.key,value:g,valueSpec:y.valueSpec,validateSpec:y.validateSpec,style:y.style,styleSpec:y.styleSpec,arrayElementValidator:p})),J(g)==="array"&&g.length===0&&m.push(new E(y.key,g,"array must have at least one stop")),m}function p(y){let m=[],g=y.value,x=y.key;if(J(g)!=="array")return[new E(x,g,`array expected, ${J(g)} found`)];if(g.length!==2)return[new E(x,g,`array length 2 expected, length ${g.length} found`)];if(u){if(J(g[0])!=="object")return[new E(x,g,`object expected, ${J(g[0])} found`)];if(g[0].zoom===void 0)return[new E(x,g,"object stop key must have zoom")];if(g[0].value===void 0)return[new E(x,g,"object stop key must have value")];if(s&&s>_t(g[0].zoom))return[new E(x,g[0].zoom,"stop zoom values must appear in ascending order")];_t(g[0].zoom)!==s&&(s=_t(g[0].zoom),a=void 0,n={}),m=m.concat(ee({key:`${x}[0]`,value:g[0],valueSpec:{zoom:{}},validateSpec:y.validateSpec,style:y.style,styleSpec:y.styleSpec,objectElementValidators:{zoom:Ya,value:f}}))}else m=m.concat(f({key:`${x}[0]`,value:g[0],valueSpec:{},validateSpec:y.validateSpec,style:y.style,styleSpec:y.styleSpec},g));return Xa(wr(g[1]))?m.concat([new E(`${x}[1]`,g[1],"expressions are not allowed in function stops.")]):m.concat(y.validateSpec({key:`${x}[1]`,value:g[1],valueSpec:e,validateSpec:y.validateSpec,style:y.style,styleSpec:y.styleSpec}))}function f(y,m){let g=J(y.value),x=_t(y.value),v=y.value===null?m:y.value;if(!i)i=g;else if(g!==i)return[new E(y.key,v,`${g} stop domain type must match previous stop domain type ${i}`)];if(g!=="number"&&g!=="string"&&g!=="boolean")return[new E(y.key,v,"stop domain value must be a number, string, or boolean")];if(g!=="number"&&r!=="categorical"){let b=`number expected, ${g} found`;return ii(e)&&r===void 0&&(b+=\'\\nIf you intended to use a categorical function, specify `"type": "categorical"`.\'),[new E(y.key,v,b)]}return r==="categorical"&&g==="number"&&(!isFinite(x)||Math.floor(x)!==x)?[new E(y.key,v,`integer expected, found ${x}`)]:r!=="categorical"&&g==="number"&&a!==void 0&&xnew E(`${t.key}${i.key}`,t.value,i.message));let r=e.value.expression||e.value._styleExpression.expression;if(t.expressionContext==="property"&&t.propertyKey==="text-font"&&!r.outputDefined())return[new E(t.key,t.value,`Invalid data expression for "${t.propertyKey}". Output values must be contained as literals within the expression.`)];if(t.expressionContext==="property"&&t.propertyType==="layout"&&!sn(r))return[new E(t.key,t.value,\'"feature-state" data expressions are not supported with layout properties.\')];if(t.expressionContext==="filter"&&!sn(r))return[new E(t.key,t.value,\'"feature-state" data expressions are not supported with filters.\')];if(t.expressionContext&&t.expressionContext.indexOf("cluster")===0){if(!ja(r,["zoom","feature-state"]))return[new E(t.key,t.value,\'"zoom" and "feature-state" expressions are not supported with cluster properties.\')];if(t.expressionContext==="cluster-initial"&&!qa(r))return[new E(t.key,t.value,"Feature data expressions are not supported with initial expression part of cluster properties.")]}return[]}function Rm(t){let e=t.value,r=t.key,i=J(e);return i==="boolean"?[]:[new E(r,e,`boolean expected, ${i} found`)]}function co(t){let e=t.key,r=t.value,i=J(r);return i==="string"?xt.parse(String(r))?[]:[new E(e,r,`color expected, "${r}" found`)]:[new E(e,r,`color expected, ${i} found`)]}function un(t){let e=t.key,r=t.value,i=t.valueSpec,n=[];return Array.isArray(i.values)?i.values.indexOf(_t(r))===-1&&n.push(new E(e,r,`expected one of [${i.values.join(", ")}], ${JSON.stringify(r)} found`)):Object.keys(i.values).indexOf(_t(r))===-1&&n.push(new E(e,r,`expected one of [${Object.keys(i.values).join(", ")}], ${JSON.stringify(r)} found`)),n}function $m(t,e){let r=t;for(let i of e)r=r[i];return r}function Nm(t,e){let r=zl(e);return r?[new E(`${t.key}${r.path.map(i=>`[${i}]`).join("")}`,$m(t.value,r.path),zf(r.legacyFilter),null,"warning")]:[]}function Vl(t){let e=wr(t.value);return Pl(e)?[...Nm(t,e),...si(on({},t,{expressionContext:"filter",valueSpec:{value:"boolean"}}))]:Rf(t)}function Rf(t){let e=t.value,r=t.key;if(J(e)!=="array")return[new E(r,e,`array expected, ${J(e)} found`)];let i=t.styleSpec,n,a=[];if(e.length<1)return[new E(r,e,"filter array must have at least 1 element")];switch(a=a.concat(un({key:`${r}[0]`,value:e[0],valueSpec:i.filter_operator,style:t.style,styleSpec:t.styleSpec})),_t(e[0])){case"<":case"<=":case">":case">=":e.length>=2&&_t(e[1])==="$type"&&a.push(new E(r,e,`"$type" cannot be use with operator "${e[0]}"`));case"==":case"!=":e.length!==3&&a.push(new E(r,e,`filter array for operator "${e[0]}" must have 3 elements`));case"in":case"!in":e.length>=2&&(n=J(e[1]),n!=="string"&&a.push(new E(`${r}[1]`,e[1],`string expected, ${n} found`)));for(let s=2;s{c in r&&e.push(new E(i,r[c],`"${c}" is prohibited for ref layers`))});let h;n.layers.forEach(c=>{_t(c.id)===o&&(h=c)}),h?h.ref?e.push(new E(i,r.ref,"ref cannot reference another ref layer")):s=_t(h.type):e.push(new E(i,r.ref,`ref layer "${o}" not found`))}else if(s!=="background")if(!r.source)e.push(new E(i,r,\'missing required property "source"\'));else{let h=n.sources&&n.sources[r.source],c=h&&_t(h.type);h?c==="vector"&&s==="raster"?e.push(new E(i,r.source,`layer "${r.id}" requires a raster source`)):c!=="raster-dem"&&s==="hillshade"||c!=="raster-dem"&&s==="color-relief"?e.push(new E(i,r.source,`layer "${r.id}" requires a raster-dem source`)):c==="raster"&&s!=="raster"?e.push(new E(i,r.source,`layer "${r.id}" requires a vector source`)):c==="vector"&&!r["source-layer"]?e.push(new E(i,r,`layer "${r.id}" must specify a "source-layer"`)):c==="raster-dem"&&s!=="hillshade"&&s!=="color-relief"?e.push(new E(i,r.source,"raster-dem source can only be used with layer type \'hillshade\' or \'color-relief\'.")):s==="line"&&r.paint&&r.paint["line-gradient"]&&(c!=="geojson"||!h.lineMetrics)&&e.push(new E(i,r,`layer "${r.id}" specifies a line-gradient, which requires a GeoJSON source with \\`lineMetrics\\` enabled.`)):e.push(new E(i,r.source,`source "${r.source}" not found`))}return s==="raster"&&((l=r.paint)!=null&&l.resampling)&&((u=r.paint)!=null&&u["raster-resampling"])&&e.push(new E(i,r.paint,`layer "${r.id}" redundantly specifies "resampling" and "raster-resampling" paint properties, but only one is allowed. It is advised to use "resampling".`)),e=e.concat(ee({key:i,value:r,valueSpec:a.layer,style:t.style,styleSpec:t.styleSpec,validateSpec:t.validateSpec,objectElementValidators:{"*"(){return[]},type(){return t.validateSpec({key:`${i}.type`,value:r.type,valueSpec:a.layer.type,style:t.style,styleSpec:t.styleSpec,validateSpec:t.validateSpec,object:r,objectKey:"type"})},filter:Vl,layout(h){return ee({layer:r,key:h.key,value:h.value,style:h.style,styleSpec:h.styleSpec,validateSpec:h.validateSpec,objectElementValidators:{"*"(c){return Uf(on({layerType:s},c))}}})},paint(h){return ee({layer:r,key:h.key,value:h.value,style:h.style,styleSpec:h.styleSpec,validateSpec:h.validateSpec,objectElementValidators:{"*"(c){return Nf(on({layerType:s},c))}}})}}})),e}function ir(t){let e=t.value,r=t.key,i=J(e);return i==="string"?[]:[new E(r,e,`string expected, ${i} found`)]}function Um(t){var c;let e=(c=t.sourceName)!=null?c:"",r=t.value,i=t.styleSpec,n=i.source_raster_dem,a=t.style,s=[],o=J(r);if(r===void 0)return s;if(o!=="object")return s.push(new E("source_raster_dem",r,`object expected, ${o} found`)),s;let l=_t(r.encoding)==="custom",u=["redFactor","greenFactor","blueFactor","baseShift"],h=t.value.encoding?`"${t.value.encoding}"`:"Default";for(let p in r)!l&&u.includes(p)?s.push(new E(p,r[p],`In "${e}": "${p}" is only valid when "encoding" is set to "custom". ${h} encoding found`)):n[p]?s=s.concat(t.validateSpec({key:p,value:r[p],valueSpec:n[p],validateSpec:t.validateSpec,style:a,styleSpec:i})):s.push(new E(p,r[p],`unknown property "${p}"`));return s}var zh={promoteId:qm};function jf(t){let e=t.value,r=t.key,i=t.styleSpec,n=t.style,a=t.validateSpec;if(!e.type)return[new E(r,e,\'"type" is required\')];let s=_t(e.type),o;switch(s){case"vector":case"raster":return o=ee({key:r,value:e,valueSpec:i[`source_${s.replace("-","_")}`],style:t.style,styleSpec:i,objectElementValidators:zh,validateSpec:a}),o;case"raster-dem":return o=Um({sourceName:r,value:e,style:t.style,styleSpec:i,validateSpec:a}),o;case"geojson":if(o=ee({key:r,value:e,valueSpec:i.source_geojson,style:n,styleSpec:i,validateSpec:a,objectElementValidators:zh}),e.cluster)for(let l in e.clusterProperties){let[u,h]=e.clusterProperties[l],c=typeof u=="string"?[u,["accumulated"],["get",l]]:u;o.push(...si({key:`${r}.${l}.map`,value:h,validateSpec:a,expressionContext:"cluster-map"})),o.push(...si({key:`${r}.${l}.reduce`,value:c,validateSpec:a,expressionContext:"cluster-reduce"}))}return o;case"video":return ee({key:r,value:e,valueSpec:i.source_video,style:n,validateSpec:a,styleSpec:i});case"image":return ee({key:r,value:e,valueSpec:i.source_image,style:n,validateSpec:a,styleSpec:i});case"canvas":return[new E(r,null,"Please use runtime APIs to add canvas sources, rather than including them in stylesheets.","source.canvas")];default:return un({key:`${r}.type`,value:e.type,valueSpec:{values:["vector","raster","raster-dem","geojson","video","image"]},style:n,validateSpec:a,styleSpec:i})}}function qm({key:t,value:e}){if(J(e)==="string")return ir({key:t,value:e});{let r=[];for(let i in e)r.push(...ir({key:`${t}.${i}`,value:e[i]}));return r}}function Gf(t){let e=t.value,r=t.styleSpec,i=r.light,n=t.style,a=[],s=J(e);if(e===void 0)return a;if(s!=="object")return a=a.concat([new E("light",e,`object expected, ${s} found`)]),a;for(let o in e){let l=o.match(Ml);a=l&&i[l[1]]&&i[l[1]].transition?a.concat(t.validateSpec({key:o,value:e[o],valueSpec:r.transition,validateSpec:t.validateSpec,style:n,styleSpec:r})):i[o]?a.concat(t.validateSpec({key:o,value:e[o],valueSpec:i[o],validateSpec:t.validateSpec,style:n,styleSpec:r})):a.concat([new E(o,e[o],`unknown property "${o}"`)])}return a}function Xf(t){let e=t.value,r=t.styleSpec,i=r.sky,n=t.style,a=J(e);if(e===void 0)return[];if(a!=="object")return[new E("sky",e,`object expected, ${a} found`)];let s=[];for(let o in e){let l=o.match(Ml);s=l&&i[l[1]]&&i[l[1]].transition?s.concat(t.validateSpec({key:o,value:e[o],valueSpec:r.transition,style:n,styleSpec:r})):i[o]?s.concat(t.validateSpec({key:o,value:e[o],valueSpec:i[o],style:n,styleSpec:r})):s.concat([new E(o,e[o],`unknown property "${o}"`)])}return s}function Yf(t){let e=t.value,r=t.styleSpec,i=r.terrain,n=t.style,a=[],s=J(e);if(e===void 0)return a;if(s!=="object")return a=a.concat([new E("terrain",e,`object expected, ${s} found`)]),a;for(let o in e)a=i[o]?a.concat(t.validateSpec({key:o,value:e[o],valueSpec:i[o],validateSpec:t.validateSpec,style:n,styleSpec:r})):a.concat([new E(o,e[o],`unknown property "${o}"`)]);return a}function jm(t){return ir(t).length===0?[]:si(t)}function Gm(t){return ir(t).length===0?[]:si(t)}function Xm(t){let e=t.key,r=t.value;if(J(r)==="array"){if(r.length<1||r.length>4)return[new E(e,r,`padding requires 1 to 4 values; ${r.length} values found`)];let i={type:"number"},n=[];for(let a=0;a[new E(t,e,\'invalid unicode range, expected a value such as "U+26", "U+0-10FFFF" or "U+4??"\')],n=r.match(tg);if(!n)return i();let[,a,s,o]=n;if(o!==void 0)return o.length>6?i():[];let l=parseInt(a,16),u=s===void 0?l:parseInt(s,16);return l>Lh||u>Lh?[new E(t,e,"unicode range is out of bounds, the maximum code point is U+10FFFF")]:l>u?[new E(t,e,`unicode range start must not be greater than its end, but ${r} is`)]:[]}function Hf(t){var o,l;let e=(o=t.key)!=null?o:"font-faces",r=t.value,i=t.validateSpec,n=(l=t.styleSpec)!=null?l:Bp,a=t.style;if(!po(r))return[new E(e,r,`object expected, ${J(r)} found`)];let s=[];for(let u in r){let h=r[u],c=J(h);if(c==="string")s.push(...ir({key:`${e}.${u}`,value:h}));else if(c==="array"){let p={url:{type:"string",required:!0},"unicode-range":{type:"array",value:"string"}};for(let[f,d]of h.entries()){let y=`${e}.${u}[${f}]`;s.push(...ee({key:y,value:d,valueSpec:p,styleSpec:n,style:a,validateSpec:i}));let m=po(d)?d["unicode-range"]:void 0;if(J(m)==="array")for(let[g,x]of m.entries())s.push(...eg(`${y}.unicode-range[${g}]`,x))}}else s.push(new E(`${e}.${u}`,h,`string or array expected, ${c} found`))}return s}var Vh={"*"(){return[]},array:Ll,boolean:Rm,number:Ya,color:co,constants:Vf,enum:un,filter:Vl,function:Of,layer:qf,object:ee,source:jf,light:Gf,sky:Xf,terrain:Yf,projection:Hm,projectionDefinition:Km,string:ir,formatted:jm,resolvedImage:Gm,padding:Xm,numberArray:Ym,colorArray:Wm,variableAnchorOffsetCollection:Zm,sprite:Wf,state:Zf,fontFaces:Hf};function Zi(t){let e=t.value,r=t.valueSpec,i=t.styleSpec;return t.validateSpec=Zi,r.expression&&Ga(_t(e))?Of(t):r.expression&&Xa(wr(e))?si(t):r.type&&Vh[r.type]?Vh[r.type](t):ee(on({},t,{valueSpec:r.type?i[r.type]:r}))}function Kf(t){let e=t.value,r=t.key,i=ir(t);return i.length||(e.indexOf("{fontstack}")===-1&&i.push(new E(r,e,\'"glyphs" url must include a "{fontstack}" token\')),e.indexOf("{range}")===-1&&i.push(new E(r,e,\'"glyphs" url must include a "{range}" token\'))),i}function te(t,e=D){let r=[];return r=r.concat(Zi({key:"",value:t,valueSpec:e.$root,styleSpec:e,style:t,validateSpec:Zi,objectElementValidators:{glyphs:Kf,"*"(){return[]}}})),t.constants&&(r=r.concat(Vf({key:"constants",value:t.constants,style:t,styleSpec:e,validateSpec:Zi}))),Jf(r)}te.source=ae(ne(jf)),te.sprite=ae(ne(Wf)),te.glyphs=ae(ne(Kf)),te.fontFaces=ae(ne(Hf)),te.light=ae(ne(Gf)),te.sky=ae(ne(Xf)),te.terrain=ae(ne(Yf)),te.state=ae(ne(Zf)),te.layer=ae(ne(qf)),te.filter=ae(ne(Vl)),te.paintProperty=ae(ne(Nf)),te.layoutProperty=ae(ne(Uf));function ne(t){return function(e){return t(Object.assign({},e,{validateSpec:Zi}))}}function Jf(t){return[].concat(t).sort((e,r)=>e.line-r.line)}function ae(t){return function(...e){return Jf(t.apply(this,e))}}var rg={type:"enum","property-type":"data-constant",expression:{interpolated:!1,parameters:["global-state"]},values:{visible:{},none:{}},transition:!1,default:"visible"},ig=class{constructor(t,e,r){this._rootKey=e,this._globalState=r,this.setValue(t)}evaluate(){var t;return(t=this._literalValue)!=null?t:this._compiledValue.evaluate({})}setValue(t){if(t==null||t==="visible"||t==="none"){this._literalValue=t==="none"?"none":"visible",this._compiledValue=void 0,this._globalStateRefs=new Set;return}let e=ar(t,this._rootKey,rg,this._globalState);if(e.result==="error")throw this._literalValue="visible",this._compiledValue=void 0,Error(e.value.map(r=>`${r.key}: ${r.message}`).join(", "));this._literalValue=void 0,this._compiledValue=e.value,this._globalStateRefs=An(e.value.expression)}getGlobalStateRefs(){return this._globalStateRefs}};function ng(t,e,r){return new ig(t,e,r)}var Oh=te,_5=new Set(Object.keys(D).filter(t=>t.startsWith("source_")).map(t=>t.slice(7).replaceAll("_","-")));function ag(t,e){let r=!1;for(let i of e){if(i.severity==="warning"){Mt(i.message);continue}t.fire(new xa(Error(i.message))),r=!0}return r}function sg(t,e,r,i){return(i==null?void 0:i.validate)!==!1&&ag(t,e(Xe({styleSpec:D},r)))}var fo=class Qf{constructor(e,r,i){let n=this.cells=[];if(e instanceof ArrayBuffer){this.arrayBuffer=e;let s=new Int32Array(this.arrayBuffer);e=s[0],r=s[1],i=s[2],this.d=r+2*i;for(let u=0;u=c[f+0]&&n>=c[f+1])?(o[p]=!0,s.push(h[p])):o[p]=!1}}}_forEachCell(e,r,i,n,a,s,o,l){let u=this._convertToCellCoord(e),h=this._convertToCellCoord(r),c=this._convertToCellCoord(i),p=this._convertToCellCoord(n);for(let f=u;f<=c;f++)for(let d=h;d<=p;d++){let y=this.d*d+f;if((!l||l(this._convertFromCellCoord(f),this._convertFromCellCoord(d),this._convertFromCellCoord(f+1),this._convertFromCellCoord(d+1)))&&a.call(this,e,r,i,n,y,s,o,l))return}}_convertFromCellCoord(e){return(e-this.padding)/this.scale}_convertToCellCoord(e){return Math.max(0,Math.min(this.d-1,Math.floor(e*this.scale)+this.padding))}toArrayBuffer(){if(this.arrayBuffer)return this.arrayBuffer;let e=this.cells,r=3+this.cells.length+1+1,i=0;for(let s of this.cells)i+=s.length;let n=new Int32Array(r+i+this.keys.length+this.bboxes.length);n[0]=this.extent,n[1]=this.n,n[2]=this.padding;let a=r;for(let s=0;sr?(this.lastIntegerZoom=r+1,this.lastIntegerZoomTime=e):this.lastFloorZoomthis.zoomHistory.lastIntegerZoom?{fromScale:2,toScale:1,t:e+(1-e)*r}:{fromScale:.5,toScale:1,t:1-(1-r)*e}}},hn=class{constructor(t,e,r,i){this.property=t,this.value=e,this.expression=Cm(e===void 0?t.specification.default:e,r,t.specification,i)}isDataDriven(){return this.expression.kind==="source"||this.expression.kind==="composite"}getGlobalStateRefs(){return this.expression.globalStateRefs||new Set}readsGlobalState(t){let e=this.getGlobalStateRefs();return t.some(r=>e.has(r))}possiblyEvaluate(t,e,r){return this.property.possiblyEvaluate(this,t,e,r)}},yo=class{constructor(t,e,r){this.property=t,this.value=new hn(t,void 0,e,r)}transitioned(t,e){return e.value===this.value?e:new $h(this.property,this.value,e,Xt({},t.transition,this.transition),t.now)}untransitioned(){return new $h(this.property,this.value,null,{},0)}},lg=class{constructor(t,e,r){this._properties=t,this._values=Object.create(t.defaultTransitionablePropertyValues),this._globalState=r,this._rootKey=e}_propertyRootKey(t){return`${this._rootKey}.${String(t)}`}hasProperty(t){return t in this._properties.defaultTransitionablePropertyValues}getValue(t){return Je(this._values[t].value.value)}setValue(t,e){Object.hasOwn(this._values,t)||(this._values[t]=new yo(this._values[t].property,this._propertyRootKey(t),this._globalState)),this._values[t].value=new hn(this._values[t].property,e===null?void 0:Je(e),this._propertyRootKey(t),this._globalState)}setValues(t){for(let e in t){let r=t[e];e.endsWith("-transition")?this.setTransition(e.slice(0,-11),r):to(this._values[e].value.value,r)||this.setValue(e,r)}}getTransition(t){return Je(this._values[t].transition)}setTransition(t,e){Object.hasOwn(this._values,t)||(this._values[t]=new yo(this._values[t].property,this._propertyRootKey(t),this._globalState)),this._values[t].transition=Je(e)||void 0}retainPriorGlobalState(t,e,r){for(let i of Object.keys(r._values))for(let n=r._values[i];n;n=n.prior){let{value:a}=n;a.property.specification.transition&&!a.isDataDriven()&&a.expression._globalState===this._globalState&&a.readsGlobalState(t)&&(n.value=new hn(a.property,a.value,this._propertyRootKey(i),e))}}applyGlobalStateChange(t,e,r,i){this.retainPriorGlobalState(t,e,r);let n=!1;for(let a of Object.keys(this._values)){let{value:s}=this._values[a];s.readsGlobalState(t)&&(this.setValue(a,s.value),n=!0)}return n?this.transitioned(i,r):r}serialize(){let t={};for(let e of Object.keys(this._values)){let r=this.getValue(e);r!==void 0&&(t[e]=r);let i=this.getTransition(e);i!==void 0&&(t[`${e}-transition`]=i)}return t}transitioned(t,e){let r=new Nh(this._properties);for(let i of Object.keys(this._values))r._values[i]=this._values[i].transitioned(t,e._values[i]);return r}untransitioned(){let t=new Nh(this._properties);for(let e of Object.keys(this._values))t._values[e]=this._values[e].untransitioned();return t}},$h=class{constructor(t,e,r,i,n){this.property=t,this.value=e,this.begin=n+i.delay||0,this.end=this.begin+i.duration||0,t.specification.transition&&(i.delay||i.duration)&&(this.prior=r)}possiblyEvaluate(t,e,r){let i=t.now||0,n=this.value.possiblyEvaluate(t,e,r),a=this.prior;if(!a)return n;if(i>this.end||this.value.isDataDriven())return this.prior=null,n;if(ii.zoomHistory.lastIntegerZoom?{from:t,to:e}:{from:r,to:e}}interpolate(t){return t}},id=class{constructor(t,e){this.specification=t,this.name=e}possiblyEvaluate(t,e,r,i){if(t.value!==void 0){if(t.expression.kind==="constant"){let n=t.expression.evaluate(e,null,{},r,i);return this._calculate(n,n,n,e)}return this._calculate(t.expression.evaluate(new st(Math.floor(e.zoom-1),e)),t.expression.evaluate(new st(Math.floor(e.zoom),e)),t.expression.evaluate(new st(Math.floor(e.zoom+1),e)),e)}}_calculate(t,e,r,i){return i.zoom>i.zoomHistory.lastIntegerZoom?{from:t,to:e}:{from:r,to:e}}interpolate(t){return t}},Za=class{constructor(t,e){this.specification=t,this.name=e}possiblyEvaluate(t,e,r,i){return!!t.expression.evaluate(e,null,{},r,i)}interpolate(){return!1}},Yt=class{constructor(t){this.properties=t,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},this.overridableProperties=[];for(let e in t){let r=t[e];r.specification.overridable&&this.overridableProperties.push(e);let i=this.defaultPropertyValues[e]=new hn(r,void 0,r.name,void 0),n=this.defaultTransitionablePropertyValues[e]=new yo(r,r.name,void 0);this.defaultTransitioningPropertyValues[e]=n.untransitioned(),this.defaultPossiblyEvaluatedValues[e]=i.possiblyEvaluate({})}}};C("DataDrivenProperty",U),C("DataConstantProperty",R),C("CrossFadedDataDrivenProperty",cn),C("CrossFadedProperty",id),C("ColorRampProperty",Za);var qh=" is a PAINT property not a LAYOUT property. Use get/setPaintProperty instead?",Ns=" is a LAYOUT property not a PAINT property. Use get/setLayoutProperty instead?",ye=class extends s0{constructor(t,e,r){if(super(),this.id=t.id,this.type=t.type,this._globalState=r,this._featureFilter={filter:()=>!0,needGeometry:!1,getGlobalStateRefs:()=>new Set},this._visibilityExpression=ng(this.visibility,`layers[${this.id}].layout.visibility`,r),t.type!=="custom"&&(this.metadata=t.metadata,this.minzoom=t.minzoom,this.maxzoom=t.maxzoom,t.type!=="background"&&(this.source=t.source,this.sourceLayer=t["source-layer"],this.filter=t.filter,this._featureFilter=ai(t.filter,`layers[${this.id}].filter`,r)),e.layout&&(this._unevaluatedLayout=new ug(e.layout,`layers[${this.id}].layout`,r)),e.paint)){this._transitionablePaint=new lg(e.paint,`layers[${this.id}].paint`,r);for(let i in t.paint)this.setPaintProperty(i,t.paint[i],{validate:!1});for(let i in t.layout)this.setLayoutProperty(i,t.layout[i],{validate:!1});this._transitioningPaint=this._transitionablePaint.untransitioned(),this.paint=new Wa(e.paint)}}setFilter(t){this.filter=t,this._featureFilter=ai(t,`layers[${this.id}].filter`,this._globalState)}getCrossfadeParameters(){return this._crossfadeParameters}getLayoutProperty(t){var e;if(t==="visibility")return this.visibility;if((e=this._transitionablePaint)!=null&&e.hasProperty(t))throw Error(t+qh);if(!this._unevaluatedLayout)throw Error(`Cannot get layout property "${t}" on layer type "${this.type}" which has no layout properties.`);return this._unevaluatedLayout.getValue(t)}getLayoutAffectingGlobalStateRefs(){let t=new Set;for(let e of this._visibilityExpression.getGlobalStateRefs())t.add(e);if(this._unevaluatedLayout)for(let e in this._unevaluatedLayout._values){let r=this._unevaluatedLayout._values[e];for(let i of r.getGlobalStateRefs())t.add(i)}for(let e of this._featureFilter.getGlobalStateRefs())t.add(e);return t}getPaintAffectingGlobalStateRefs(){var e;let t=new globalThis.Map;if(this._transitionablePaint)for(let r in this._transitionablePaint._values){let i=this._transitionablePaint._values[r].value;for(let n of i.getGlobalStateRefs()){let a=(e=t.get(n))!=null?e:[];a.push({name:r,value:i.value}),t.set(n,a)}}return t}getVisibilityAffectingGlobalStateRefs(){return this._visibilityExpression.getGlobalStateRefs()}setLayoutProperty(t,e,r={}){var i;if(t==="visibility"){this.visibility=e,this._visibilityExpression.setValue(e),this.recalculateVisibility();return}if((i=this._transitionablePaint)!=null&&i.hasProperty(t)){this.fire(new xa(Error(t+qh)));return}e!=null&&this._validate(Oh.layoutProperty,`layers.${this.id}.layout.${t}`,t,e,r)||this._unevaluatedLayout.setValue(t,e)}getPaintProperty(t){var e,r;if(t.endsWith("-transition")){let i=t.slice(0,-11);if(i==="visibility"||(e=this._unevaluatedLayout)!=null&&e.hasProperty(i))throw Error(t+Ns);return this._transitionablePaint.getTransition(i)}if(t==="visibility"||(r=this._unevaluatedLayout)!=null&&r.hasProperty(t))throw Error(t+Ns);return this._transitionablePaint.getValue(t)}setPaintProperty(t,e,r={}){var i;if(t==="visibility"||(i=this._unevaluatedLayout)!=null&&i.hasProperty(t))return this.fire(new xa(Error(t+Ns))),!1;if(e!=null&&this._validate(Oh.paintProperty,`layers.${this.id}.paint.${t}`,t,e,r))return!1;if(t.endsWith("-transition"))return this._transitionablePaint.setTransition(t.slice(0,-11),e||void 0),!1;{let n=this._transitionablePaint._values[t],a=n.property.specification["property-type"]==="cross-faded-data-driven",s=n.value.isDataDriven(),o=n.value;this._transitionablePaint.setValue(t,e),this._handleSpecialPaintPropertyUpdate(t);let l=this._transitionablePaint._values[t].value;return l.isDataDriven()||s||a||this._handleOverridablePaintPropertyUpdate(t,o,l)}}_handleSpecialPaintPropertyUpdate(t){}_handleOverridablePaintPropertyUpdate(t,e,r){return!1}isHidden(t=this.minzoom,e=!1){return this.minzoom&&t<(e?Math.floor(this.minzoom):this.minzoom)||this.maxzoom&&t>=this.maxzoom?!0:this._evaluatedVisibility==="none"}updateTransitions(t){this._transitioningPaint=this._transitionablePaint.transitioned(t,this._transitioningPaint)}retainPriorGlobalState(t,e){var r;(r=this._transitionablePaint)==null||r.retainPriorGlobalState(t,e,this._transitioningPaint)}hasTransition(){return this._transitioningPaint.hasTransition()}recalculateVisibility(){this._evaluatedVisibility=this._visibilityExpression.evaluate()}recalculate(t,e){t.getCrossfadeParameters&&(this._crossfadeParameters=t.getCrossfadeParameters()),this._unevaluatedLayout&&(this.layout=this._unevaluatedLayout.possiblyEvaluate(t,void 0,e)),this.paint=this._transitioningPaint.possiblyEvaluate(t,void 0,e)}serialize(){var e,r;let t={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:(e=this._unevaluatedLayout)==null?void 0:e.serialize(),paint:(r=this._transitionablePaint)==null?void 0:r.serialize()};return this.visibility&&(t.layout||(t.layout={}),t.layout.visibility=this.visibility),K1(t,(i,n)=>i!==void 0&&!(n==="layout"&&!Object.keys(i).length)&&!(n==="paint"&&!Object.keys(i).length))}_validate(t,e,r,i,n={}){return sg(this,t,{key:e,layerType:this.type,objectKey:r,value:i},n)}is3D(){return!1}isTileClipped(){return!1}hasOffscreenPass(){return!1}resize(){}isStateDependent(){for(let t in this.paint._values){let e=this.paint.get(t);if(e instanceof le&&ii(e.property.specification)&&(e.value.kind==="source"||e.value.kind==="composite")&&e.value.isStateDependent)return!0}return!1}},jh,hg=()=>jh||(jh=new Yt({"raster-opacity":new R(D.paint_raster["raster-opacity"],"raster-opacity"),"raster-hue-rotate":new R(D.paint_raster["raster-hue-rotate"],"raster-hue-rotate"),"raster-brightness-min":new R(D.paint_raster["raster-brightness-min"],"raster-brightness-min"),"raster-brightness-max":new R(D.paint_raster["raster-brightness-max"],"raster-brightness-max"),"raster-saturation":new R(D.paint_raster["raster-saturation"],"raster-saturation"),"raster-contrast":new R(D.paint_raster["raster-contrast"],"raster-contrast"),resampling:new R(D.paint_raster.resampling,"resampling"),"raster-resampling":new R(D.paint_raster["raster-resampling"],"raster-resampling"),"raster-fade-duration":new R(D.paint_raster["raster-fade-duration"],"raster-fade-duration")})),cg={get paint(){return hg()}};var pg=class extends ye{constructor(t,e){super(t,cg,e)}},fg={Int8:Int8Array,Uint8:Uint8Array,Int16:Int16Array,Uint16:Uint16Array,Int32:Int32Array,Uint32:Uint32Array,Float32:Float32Array},Sn=class{constructor(t,e){this._structArray=t,this._pos1=e*this.size,this._pos2=this._pos1/2,this._pos4=this._pos1/4,this._pos8=this._pos1/8}},vt=class{constructor(){this.isTransferred=!1,this.capacity=-1,this.resize(0)}static serialize(t,e){return t._trim(),e&&(t.isTransferred=!0,e.push(t.arrayBuffer)),{length:t.length,arrayBuffer:t.arrayBuffer}}static deserialize(t){let e=Object.create(this.prototype);return e.arrayBuffer=t.arrayBuffer,e.length=t.length,e.capacity=t.arrayBuffer.byteLength/e.bytesPerElement,e._refreshViews(),e}_trim(){this.length!==this.capacity&&(this.capacity=this.length,this.arrayBuffer=this.arrayBuffer.slice(0,this.length*this.bytesPerElement),this._refreshViews())}clear(){this.length=0}resize(t){this.reserve(t),this.length=t}reserve(t){if(t>this.capacity){this.capacity=Math.max(t,Math.floor(this.capacity*5),128),this.arrayBuffer=new ArrayBuffer(this.capacity*this.bytesPerElement);let e=this.uint8;this._refreshViews(),e&&this.uint8.set(e)}}_refreshViews(){throw Error("_refreshViews() must be implemented by each concrete StructArray layout")}freeBufferAfterUpload(){this.arrayBuffer=new ArrayBuffer(0),this._refreshViews()}};function Et(t,e=1){let r=0,i=0;return{members:t.map(n=>{let a=dg(n.type),s=r=Gh(r,Math.max(e,a)),o=n.components||1;return i=Math.max(i,a),r+=a*o,{name:n.name,type:n.type,components:o,offset:s}}),size:Gh(r,Math.max(i,e)),alignment:e}}function dg(t){return fg[t].BYTES_PER_ELEMENT}function Gh(t,e){return Math.ceil(t/e)*e}var pn=class extends vt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(t,e){let r=this.length;return this.resize(r+1),this.emplace(r,t,e)}emplace(t,e,r){let i=t*2;return this.int16[i+0]=e,this.int16[i+1]=r,t}};pn.prototype.bytesPerElement=4,C("StructArrayLayout2i4",pn);var mo=class extends vt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(t,e,r){let i=this.length;return this.resize(i+1),this.emplace(i,t,e,r)}emplace(t,e,r,i){let n=t*3;return this.int16[n+0]=e,this.int16[n+1]=r,this.int16[n+2]=i,t}};mo.prototype.bytesPerElement=6,C("StructArrayLayout3i6",mo);var Xh=class extends vt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(t,e,r,i){let n=this.length;return this.resize(n+1),this.emplace(n,t,e,r,i)}emplace(t,e,r,i,n){let a=t*4;return this.int16[a+0]=e,this.int16[a+1]=r,this.int16[a+2]=i,this.int16[a+3]=n,t}};Xh.prototype.bytesPerElement=8,C("StructArrayLayout4i8",Xh);var go=class extends vt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(t,e,r,i,n,a){let s=this.length;return this.resize(s+1),this.emplace(s,t,e,r,i,n,a)}emplace(t,e,r,i,n,a,s){let o=t*6;return this.int16[o+0]=e,this.int16[o+1]=r,this.int16[o+2]=i,this.int16[o+3]=n,this.int16[o+4]=a,this.int16[o+5]=s,t}};go.prototype.bytesPerElement=12,C("StructArrayLayout2i4i12",go);var xo=class extends vt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(t,e,r,i,n,a){let s=this.length;return this.resize(s+1),this.emplace(s,t,e,r,i,n,a)}emplace(t,e,r,i,n,a,s){let o=t*4,l=t*8;return this.int16[o+0]=e,this.int16[o+1]=r,this.uint8[l+4]=i,this.uint8[l+5]=n,this.uint8[l+6]=a,this.uint8[l+7]=s,t}};xo.prototype.bytesPerElement=8,C("StructArrayLayout2i4ub8",xo);var fn=class extends vt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(t,e){let r=this.length;return this.resize(r+1),this.emplace(r,t,e)}emplace(t,e,r){let i=t*2;return this.float32[i+0]=e,this.float32[i+1]=r,t}};fn.prototype.bytesPerElement=8,C("StructArrayLayout2f8",fn);var vo=class extends vt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(t,e,r,i,n,a,s,o,l,u){let h=this.length;return this.resize(h+1),this.emplace(h,t,e,r,i,n,a,s,o,l,u)}emplace(t,e,r,i,n,a,s,o,l,u,h){let c=t*10;return this.uint16[c+0]=e,this.uint16[c+1]=r,this.uint16[c+2]=i,this.uint16[c+3]=n,this.uint16[c+4]=a,this.uint16[c+5]=s,this.uint16[c+6]=o,this.uint16[c+7]=l,this.uint16[c+8]=u,this.uint16[c+9]=h,t}};vo.prototype.bytesPerElement=20,C("StructArrayLayout10ui20",vo);var bo=class extends vt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(t,e,r,i,n,a,s,o){let l=this.length;return this.resize(l+1),this.emplace(l,t,e,r,i,n,a,s,o)}emplace(t,e,r,i,n,a,s,o,l){let u=t*8;return this.uint16[u+0]=e,this.uint16[u+1]=r,this.uint16[u+2]=i,this.uint16[u+3]=n,this.uint16[u+4]=a,this.uint16[u+5]=s,this.uint16[u+6]=o,this.uint16[u+7]=l,t}};bo.prototype.bytesPerElement=16,C("StructArrayLayout8ui16",bo);var wo=class extends vt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(t,e,r,i,n,a,s,o,l,u,h,c,p){let f=this.length;return this.resize(f+1),this.emplace(f,t,e,r,i,n,a,s,o,l,u,h,c,p)}emplace(t,e,r,i,n,a,s,o,l,u,h,c,p,f){let d=t*14,y=t*7;return this.int16[d+0]=e,this.int16[d+1]=r,this.int16[d+2]=i,this.int16[d+3]=n,this.uint16[d+4]=a,this.uint16[d+5]=s,this.uint16[d+6]=o,this.uint16[d+7]=l,this.int16[d+8]=u,this.int16[d+9]=h,this.int16[d+10]=c,this.int16[d+11]=p,this.float32[y+6]=f,t}};wo.prototype.bytesPerElement=28,C("StructArrayLayout4i4ui4i1f28",wo);var Do=class extends vt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(t,e,r){let i=this.length;return this.resize(i+1),this.emplace(i,t,e,r)}emplace(t,e,r,i){let n=t*3;return this.float32[n+0]=e,this.float32[n+1]=r,this.float32[n+2]=i,t}};Do.prototype.bytesPerElement=12,C("StructArrayLayout3f12",Do);var _o=class extends vt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)}emplaceBack(t){let e=this.length;return this.resize(e+1),this.emplace(e,t)}emplace(t,e){let r=t*1;return this.uint32[r+0]=e,t}};_o.prototype.bytesPerElement=4,C("StructArrayLayout1ul4",_o);var Ao=class extends vt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(t,e,r,i,n,a,s,o,l){let u=this.length;return this.resize(u+1),this.emplace(u,t,e,r,i,n,a,s,o,l)}emplace(t,e,r,i,n,a,s,o,l,u){let h=t*10,c=t*5;return this.int16[h+0]=e,this.int16[h+1]=r,this.int16[h+2]=i,this.int16[h+3]=n,this.int16[h+4]=a,this.int16[h+5]=s,this.uint32[c+3]=o,this.uint16[h+8]=l,this.uint16[h+9]=u,t}};Ao.prototype.bytesPerElement=20,C("StructArrayLayout6i1ul2ui20",Ao);var So=class extends vt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(t,e,r,i,n,a){let s=this.length;return this.resize(s+1),this.emplace(s,t,e,r,i,n,a)}emplace(t,e,r,i,n,a,s){let o=t*6;return this.int16[o+0]=e,this.int16[o+1]=r,this.int16[o+2]=i,this.int16[o+3]=n,this.int16[o+4]=a,this.int16[o+5]=s,t}};So.prototype.bytesPerElement=12,C("StructArrayLayout2i2i2i12",So);var Yh=class extends vt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(t,e,r,i,n){let a=this.length;return this.resize(a+1),this.emplace(a,t,e,r,i,n)}emplace(t,e,r,i,n,a){let s=t*4,o=t*8;return this.float32[s+0]=e,this.float32[s+1]=r,this.float32[s+2]=i,this.int16[o+6]=n,this.int16[o+7]=a,t}};Yh.prototype.bytesPerElement=16,C("StructArrayLayout2f1f2i16",Yh);var Eo=class extends vt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(t,e,r,i,n,a){let s=this.length;return this.resize(s+1),this.emplace(s,t,e,r,i,n,a)}emplace(t,e,r,i,n,a,s){let o=t*16,l=t*4,u=t*8;return this.uint8[o+0]=e,this.uint8[o+1]=r,this.float32[l+1]=i,this.float32[l+2]=n,this.int16[u+6]=a,this.int16[u+7]=s,t}};Eo.prototype.bytesPerElement=16,C("StructArrayLayout2ub2f2i16",Eo);var Fo=class extends vt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(t,e,r){let i=this.length;return this.resize(i+1),this.emplace(i,t,e,r)}emplace(t,e,r,i){let n=t*3;return this.uint16[n+0]=e,this.uint16[n+1]=r,this.uint16[n+2]=i,t}};Fo.prototype.bytesPerElement=6,C("StructArrayLayout3ui6",Fo);var To=class extends vt{_refreshViews(){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)}emplaceBack(t,e,r,i,n,a,s,o,l,u,h,c,p,f,d,y,m,g){let x=this.length;return this.resize(x+1),this.emplace(x,t,e,r,i,n,a,s,o,l,u,h,c,p,f,d,y,m,g)}emplace(t,e,r,i,n,a,s,o,l,u,h,c,p,f,d,y,m,g,x){let v=t*26,b=t*13,w=t*52;return this.int16[v+0]=e,this.int16[v+1]=r,this.uint16[v+2]=i,this.uint16[v+3]=n,this.uint32[b+2]=a,this.uint32[b+3]=s,this.uint32[b+4]=o,this.uint16[v+10]=l,this.uint16[v+11]=u,this.uint16[v+12]=h,this.float32[b+7]=c,this.float32[b+8]=p,this.uint8[w+36]=f,this.uint8[w+37]=d,this.uint8[w+38]=y,this.uint32[b+10]=m,this.int16[v+22]=g,this.float32[b+12]=x,t}};To.prototype.bytesPerElement=52,C("StructArrayLayout2i2ui3ul3ui2f3ub1ul1i1f52",To);var ko=class extends vt{_refreshViews(){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)}emplaceBack(t,e,r,i,n,a,s,o,l,u,h,c,p,f,d,y,m,g,x,v,b,w,_,A,S,T,L,O,B){let V=this.length;return this.resize(V+1),this.emplace(V,t,e,r,i,n,a,s,o,l,u,h,c,p,f,d,y,m,g,x,v,b,w,_,A,S,T,L,O,B)}emplace(t,e,r,i,n,a,s,o,l,u,h,c,p,f,d,y,m,g,x,v,b,w,_,A,S,T,L,O,B,V){let F=t*34,$=t*17;return this.int16[F+0]=e,this.int16[F+1]=r,this.int16[F+2]=i,this.int16[F+3]=n,this.int16[F+4]=a,this.int16[F+5]=s,this.int16[F+6]=o,this.int16[F+7]=l,this.uint16[F+8]=u,this.uint16[F+9]=h,this.uint16[F+10]=c,this.uint16[F+11]=p,this.uint16[F+12]=f,this.uint16[F+13]=d,this.uint16[F+14]=y,this.uint16[F+15]=m,this.uint16[F+16]=g,this.uint16[F+17]=x,this.uint16[F+18]=v,this.uint16[F+19]=b,this.uint16[F+20]=w,this.uint16[F+21]=_,this.uint16[F+22]=A,this.uint32[$+12]=S,this.float32[$+13]=T,this.float32[$+14]=L,this.uint16[F+30]=O,this.uint16[F+31]=B,this.float32[$+16]=V,t}};ko.prototype.bytesPerElement=68,C("StructArrayLayout8i15ui1ul2f2ui1f68",ko);var Sa=class extends vt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(t){let e=this.length;return this.resize(e+1),this.emplace(e,t)}emplace(t,e){let r=t*1;return this.float32[r+0]=e,t}};Sa.prototype.bytesPerElement=4,C("StructArrayLayout1f4",Sa);var Io=class extends vt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(t,e,r){let i=this.length;return this.resize(i+1),this.emplace(i,t,e,r)}emplace(t,e,r,i){let n=t*6,a=t*3;return this.uint16[n+0]=e,this.float32[a+1]=r,this.float32[a+2]=i,t}};Io.prototype.bytesPerElement=12,C("StructArrayLayout1ui2f12",Io);var Co=class extends vt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(t,e,r){let i=this.length;return this.resize(i+1),this.emplace(i,t,e,r)}emplace(t,e,r,i){let n=t*2,a=t*4;return this.uint32[n+0]=e,this.uint16[a+2]=r,this.uint16[a+3]=i,t}};Co.prototype.bytesPerElement=8,C("StructArrayLayout1ul2ui8",Co);var Mo=class extends vt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(t,e){let r=this.length;return this.resize(r+1),this.emplace(r,t,e)}emplace(t,e,r){let i=t*2;return this.uint16[i+0]=e,this.uint16[i+1]=r,t}};Mo.prototype.bytesPerElement=4,C("StructArrayLayout2ui4",Mo);var Wh=class extends vt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(t){let e=this.length;return this.resize(e+1),this.emplace(e,t)}emplace(t,e){let r=t*1;return this.uint16[r+0]=e,t}};Wh.prototype.bytesPerElement=2,C("StructArrayLayout1ui2",Wh);var Bo=class extends vt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(t,e,r,i){let n=this.length;return this.resize(n+1),this.emplace(n,t,e,r,i)}emplace(t,e,r,i,n){let a=t*4;return this.float32[a+0]=e,this.float32[a+1]=r,this.float32[a+2]=i,this.float32[a+3]=n,t}};Bo.prototype.bytesPerElement=16,C("StructArrayLayout4f16",Bo);var nd=class extends Sn{get anchorPointX(){return this._structArray.int16[this._pos2+0]}get anchorPointY(){return this._structArray.int16[this._pos2+1]}get x1(){return this._structArray.int16[this._pos2+2]}get y1(){return this._structArray.int16[this._pos2+3]}get x2(){return this._structArray.int16[this._pos2+4]}get y2(){return this._structArray.int16[this._pos2+5]}get featureIndex(){return this._structArray.uint32[this._pos4+3]}get sourceLayerIndex(){return this._structArray.uint16[this._pos2+8]}get bucketIndex(){return this._structArray.uint16[this._pos2+9]}get anchorPoint(){return new M(this.anchorPointX,this.anchorPointY)}};nd.prototype.size=20;var Rl=class extends Ao{get(t){return new nd(this,t)}};C("CollisionBoxArray",Rl);var ad=class extends Sn{get anchorX(){return this._structArray.int16[this._pos2+0]}get anchorY(){return this._structArray.int16[this._pos2+1]}get glyphStartIndex(){return this._structArray.uint16[this._pos2+2]}get numGlyphs(){return this._structArray.uint16[this._pos2+3]}get vertexStartIndex(){return this._structArray.uint32[this._pos4+2]}get lineStartIndex(){return this._structArray.uint32[this._pos4+3]}get lineLength(){return this._structArray.uint32[this._pos4+4]}get segment(){return this._structArray.uint16[this._pos2+10]}get lowerSize(){return this._structArray.uint16[this._pos2+11]}get upperSize(){return this._structArray.uint16[this._pos2+12]}get lineOffsetX(){return this._structArray.float32[this._pos4+7]}get lineOffsetY(){return this._structArray.float32[this._pos4+8]}get writingMode(){return this._structArray.uint8[this._pos1+36]}get placedOrientation(){return this._structArray.uint8[this._pos1+37]}set placedOrientation(t){this._structArray.uint8[this._pos1+37]=t}get hidden(){return this._structArray.uint8[this._pos1+38]}set hidden(t){this._structArray.uint8[this._pos1+38]=t}get crossTileID(){return this._structArray.uint32[this._pos4+10]}set crossTileID(t){this._structArray.uint32[this._pos4+10]=t}get associatedIconIndex(){return this._structArray.int16[this._pos2+22]}get heightOffset(){return this._structArray.float32[this._pos4+12]}};ad.prototype.size=52;var sd=class extends To{get(t){return new ad(this,t)}};C("PlacedSymbolArray",sd);var od=class extends Sn{get anchorX(){return this._structArray.int16[this._pos2+0]}get anchorY(){return this._structArray.int16[this._pos2+1]}get rightJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+2]}get centerJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+3]}get leftJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+4]}get verticalPlacedTextSymbolIndex(){return this._structArray.int16[this._pos2+5]}get placedIconSymbolIndex(){return this._structArray.int16[this._pos2+6]}get verticalPlacedIconSymbolIndex(){return this._structArray.int16[this._pos2+7]}get key(){return this._structArray.uint16[this._pos2+8]}get textBoxStartIndex(){return this._structArray.uint16[this._pos2+9]}get textBoxEndIndex(){return this._structArray.uint16[this._pos2+10]}get verticalTextBoxStartIndex(){return this._structArray.uint16[this._pos2+11]}get verticalTextBoxEndIndex(){return this._structArray.uint16[this._pos2+12]}get iconBoxStartIndex(){return this._structArray.uint16[this._pos2+13]}get iconBoxEndIndex(){return this._structArray.uint16[this._pos2+14]}get verticalIconBoxStartIndex(){return this._structArray.uint16[this._pos2+15]}get verticalIconBoxEndIndex(){return this._structArray.uint16[this._pos2+16]}get featureIndex(){return this._structArray.uint16[this._pos2+17]}get numHorizontalGlyphVertices(){return this._structArray.uint16[this._pos2+18]}get numVerticalGlyphVertices(){return this._structArray.uint16[this._pos2+19]}get numIconVertices(){return this._structArray.uint16[this._pos2+20]}get numVerticalIconVertices(){return this._structArray.uint16[this._pos2+21]}get useRuntimeCollisionCircles(){return this._structArray.uint16[this._pos2+22]}get crossTileID(){return this._structArray.uint32[this._pos4+12]}set crossTileID(t){this._structArray.uint32[this._pos4+12]=t}get textBoxScale(){return this._structArray.float32[this._pos4+13]}get collisionCircleDiameter(){return this._structArray.float32[this._pos4+14]}get textAnchorOffsetStartIndex(){return this._structArray.uint16[this._pos2+30]}get textAnchorOffsetEndIndex(){return this._structArray.uint16[this._pos2+31]}get heightOffset(){return this._structArray.float32[this._pos4+16]}};od.prototype.size=68;var ld=class extends ko{get(t){return new od(this,t)}};C("SymbolInstanceArray",ld);var ud=class extends Sa{getoffsetX(t){return this.float32[t*1+0]}};C("GlyphOffsetArray",ud);var hd=class extends mo{getx(t){return this.int16[t*3+0]}gety(t){return this.int16[t*3+1]}gettileUnitDistanceFromAnchor(t){return this.int16[t*3+2]}};C("SymbolLineVertexArray",hd);var cd=class extends Sn{get textAnchor(){return this._structArray.uint16[this._pos2+0]}get textOffset0(){return this._structArray.float32[this._pos4+1]}get textOffset1(){return this._structArray.float32[this._pos4+2]}};cd.prototype.size=12;var pd=class extends Io{get(t){return new cd(this,t)}};C("TextAnchorOffsetArray",pd);var fd=class extends Sn{get featureIndex(){return this._structArray.uint32[this._pos4+0]}get sourceLayerIndex(){return this._structArray.uint16[this._pos2+2]}get bucketIndex(){return this._structArray.uint16[this._pos2+3]}};fd.prototype.size=8;var dd=class extends Co{get(t){return new fd(this,t)}};C("FeatureIndexArray",dd);var yg=class extends pn{};var mg=class extends pn{},gg=class extends pn{},xg=class extends go{},vg=class extends xo{},bg=class extends fn{},Vr=class extends vo{},Zh=class extends bo{},wg=class extends wo{},Dg=class extends Do{},_g=class extends _o{},Hh=class extends So{};var Ag=class extends Eo{};var En=class extends Fo{},Po=class extends Mo{};var zo=Et([{name:"a_pos",components:2,type:"Int16"}],4),Sg=zo.members;zo.size,zo.alignment;var ie=class Ur{constructor(e=[]){this._forceNewSegmentOnNextPrepare=!1,this.segments=e}prepareSegment(e,r,i,n){let a=this.segments[this.segments.length-1];return e>Ur.MAX_VERTEX_ARRAY_LENGTH&&Mt(`Max vertices per segment is ${Ur.MAX_VERTEX_ARRAY_LENGTH}: bucket requested ${e}. Consider using the \\`fillLargeMeshArrays\\` function if you require meshes with more than ${Ur.MAX_VERTEX_ARRAY_LENGTH} vertices.`),this._forceNewSegmentOnNextPrepare||!a||a.vertexLength+e>Ur.MAX_VERTEX_ARRAY_LENGTH||a.sortKey!==n?this.createNewSegment(r,i,n):a}createNewSegment(e,r,i){let n={vertexOffset:e.length,primitiveOffset:r.length,vertexLength:0,primitiveLength:0,vaos:{}};return i!==void 0&&(n.sortKey=i),this._forceNewSegmentOnNextPrepare=!1,this.segments.push(n),n}getOrCreateLatestSegment(e,r,i){return this.prepareSegment(0,e,r,i)}forceNewSegmentOnNextPrepare(){this._forceNewSegmentOnNextPrepare=!0}get(){return this.segments}destroy(){for(let e of this.segments)for(let r in e.vaos)e.vaos[r].destroy()}static simpleSegment(e,r,i,n){return new Ur([{vertexOffset:e,primitiveOffset:r,vertexLength:i,primitiveLength:n,vaos:{},sortKey:0}])}};ie.MAX_VERTEX_ARRAY_LENGTH=2**16-1,C("SegmentVector",ie);function Kh(t,e){return t=en(Math.floor(t),0,255),e=en(Math.floor(e),0,255),256*t+e}var Eg=Et([{name:"a_pattern_from",components:4,type:"Uint16"},{name:"a_pattern_to",components:4,type:"Uint16"},{name:"a_pixel_ratio_from",components:1,type:"Uint16"},{name:"a_pixel_ratio_to",components:1,type:"Uint16"}]),Fg=Et([{name:"a_dasharray_from",components:4,type:"Uint16"},{name:"a_dasharray_to",components:4,type:"Uint16"}]),Tg=ml(((t,e)=>{function r(i,n){for(var a=i.length&3,s=i.length-a,o=n,l,u=3432918353,h=461845907,c,p=0;p>>16)*u&65535)<<16)&4294967295,c=c<<15|c>>>17,c=(c&65535)*h+(((c>>>16)*h&65535)<<16)&4294967295,o^=c,o=o<<13|o>>>19,l=(o&65535)*5+(((o>>>16)*5&65535)<<16)&4294967295,o=(l&65535)+27492+(((l>>>16)+58964&65535)<<16);switch(c=0,a){case 3:c^=(i.charCodeAt(p+2)&255)<<16;case 2:c^=(i.charCodeAt(p+1)&255)<<8;case 1:c^=i.charCodeAt(p)&255,c=(c&65535)*u+(((c>>>16)*u&65535)<<16)&4294967295,c=c<<15|c>>>17,c=(c&65535)*h+(((c>>>16)*h&65535)<<16)&4294967295,o^=c}return o^=i.length,o^=o>>>16,o=(o&65535)*2246822507+(((o>>>16)*2246822507&65535)<<16)&4294967295,o^=o>>>13,o=(o&65535)*3266489909+(((o>>>16)*3266489909&65535)<<16)&4294967295,o^=o>>>16,o>>>0}e!==void 0&&(e.exports=r)})),kg=ml(((t,e)=>{function r(i,n){for(var a=i.length,s=n^a,o=0,l;a>=4;)l=i.charCodeAt(o)&255|(i.charCodeAt(++o)&255)<<8|(i.charCodeAt(++o)&255)<<16|(i.charCodeAt(++o)&255)<<24,l=(l&65535)*1540483477+(((l>>>16)*1540483477&65535)<<16),l^=l>>>24,l=(l&65535)*1540483477+(((l>>>16)*1540483477&65535)<<16),s=(s&65535)*1540483477+(((s>>>16)*1540483477&65535)<<16)^l,a-=4,++o;switch(a){case 3:s^=(i.charCodeAt(o+2)&255)<<16;case 2:s^=(i.charCodeAt(o+1)&255)<<8;case 1:s^=i.charCodeAt(o)&255,s=(s&65535)*1540483477+(((s>>>16)*1540483477&65535)<<16)}return s^=s>>>13,s=(s&65535)*1540483477+(((s>>>16)*1540483477&65535)<<16),s^=s>>>15,s>>>0}e.exports=r})),Ea=M1(ml(((t,e)=>{var r=Tg(),i=kg();e.exports=r,e.exports.murmur3=r,e.exports.murmur2=i}))(),1),yd=class md{constructor(){this.ids=[],this.positions=[],this.indexed=!1}add(e,r,i,n){this.ids.push(Jh(e)),this.positions.push(r,i,n)}getPositions(e){if(!this.indexed)throw Error("Trying to get index, but feature positions are not indexed");let r=Jh(e),i=0,n=this.ids.length-1;for(;i>1;this.ids[s]>=r?n=s:i=s+1}let a=[];for(;this.ids[i]===r;){let s=this.positions[3*i],o=this.positions[3*i+1],l=this.positions[3*i+2];a.push({index:s,start:o,end:l}),i++}return a}static serialize(e,r){let i=new Float64Array(e.ids),n=new Uint32Array(e.positions);return Lo(i,n,0,i.length-1),r&&r.push(i.buffer,n.buffer),{ids:i,positions:n}}static deserialize(e){let r=new md;return r.ids=e.ids,r.positions=e.positions,r.indexed=!0,r}};function Jh(t){let e=+t;return!isNaN(e)&&e<=2**53-1?e:(0,Ea.default)(String(t))}function Lo(t,e,r,i){for(;r>1],a=r-1,s=i+1;for(;;){do a++;while(t[a]n);if(a>=s)break;Kn(t,a,s),Kn(e,3*a,3*s),Kn(e,3*a+1,3*s+1),Kn(e,3*a+2,3*s+2)}s-r`u_${i}`),this.type=r}setUniform(t,e,r){t.set(r.constantOr(this.value))}getBinding(t,e,r){return this.type==="color"?new Cg(t,e):new Nl(t,e)}},fr=class{constructor(t,e){this.uniformNames=e.map(r=>`u_${r}`),this.patternFrom=null,this.patternTo=null,this.pixelRatioFrom=1,this.pixelRatioTo=1}setConstantPatternPositions(t,e){this.pixelRatioFrom=e.pixelRatio,this.pixelRatioTo=t.pixelRatio,this.patternFrom=e.tlbr,this.patternTo=t.tlbr}setConstantDashPositions(t,e){this.dashTo=[0,t.y,t.height,t.width],this.dashFrom=[0,e.y,e.height,e.width]}setUniform(t,e,r,i){let n=null;i==="u_pattern_to"?n=this.patternTo:i==="u_pattern_from"?n=this.patternFrom:i==="u_dasharray_to"?n=this.dashTo:i==="u_dasharray_from"?n=this.dashFrom:i==="u_pixel_ratio_to"?n=this.pixelRatioTo:i==="u_pixel_ratio_from"&&(n=this.pixelRatioFrom),n!==null&&t.set(n)}getBinding(t,e,r){return r.startsWith("u_pattern")||r.startsWith("u_dasharray_")?new Ig(t,e):new Nl(t,e)}},Ce=class{constructor(t,e,r,i){this.expression=t,this.type=r,this.maxValue=0,this.paintVertexAttributes=e.map(n=>({name:`a_${n}`,type:"Float32",components:r==="color"?2:1,offset:0})),this.paintVertexArray=new i}populatePaintArray(t,e,r){let i=this.paintVertexArray.length,n=this.expression.evaluate(new st(0,r),e,{},r.canonical,[],r.formattedSection);this.paintVertexArray.resize(t),this._setPaintValue(i,t,n)}updatePaintArray(t,e,r,i,n){let a=this.expression.evaluate(new st(0,n),r,i);this._setPaintValue(t,e,a)}_setPaintValue(t,e,r){if(this.type==="color"){let i=Vo(r);for(let n=t;n`u_${s}_t`),this.type=r,this.useIntegerZoom=i,this.zoom=n,this.maxValue=0,this.paintVertexAttributes=e.map(s=>({name:`a_${s}`,type:"Float32",components:r==="color"?4:2,offset:0})),this.paintVertexArray=new a}populatePaintArray(t,e,r){let i=this.expression.evaluate(new st(this.zoom,r),e,{},r.canonical,[],r.formattedSection),n=this.expression.evaluate(new st(this.zoom+1,r),e,{},r.canonical,[],r.formattedSection),a=this.paintVertexArray.length;this.paintVertexArray.resize(t),this._setPaintValue(a,t,i,n)}updatePaintArray(t,e,r,i,n){let a=this.expression.evaluate(new st(this.zoom,n),r,i),s=this.expression.evaluate(new st(this.zoom+1,n),r,i);this._setPaintValue(t,e,a,s)}_setPaintValue(t,e,r,i){if(this.type==="color"){let n=Vo(r),a=Vo(i);for(let s=t;s`#define HAS_UNIFORM_${i}`))}return t}getBinderAttributes(){let t=[];for(let e in this.binders){let r=this.binders[e];if(r instanceof Ce||r instanceof ce)for(let i of r.paintVertexAttributes)t.push(i.name);else if(r instanceof Ze){let i=r.getVertexAttributes();for(let n of i)t.push(n.name)}}return t}getBinderUniforms(){let t=[];for(let e in this.binders){let r=this.binders[e];if(r instanceof qi||r instanceof fr||r instanceof ce)for(let i of r.uniformNames)t.push(i)}return t}getPaintVertexBuffers(){return this._buffers}getUniforms(t,e){let r=[];for(let i in this.binders){let n=this.binders[i];if(n instanceof qi||n instanceof fr||n instanceof ce){for(let a of n.uniformNames)if(e[a]){let s=n.getBinding(t,e[a],a);r.push({name:a,property:i,binding:s})}}}return r}setUniforms(t,e,r,i){for(let{name:n,property:a,binding:s}of e)this.binders[a].setUniform(s,i,r.get(a),n)}updatePaintBuffers(t){this._buffers=[];for(let e in this.binders){let r=this.binders[e];if(t&&r instanceof Ze){let i=t.fromScale===2?r.zoomInPaintVertexBuffer:r.zoomOutPaintVertexBuffer;i&&this._buffers.push(i)}else(r instanceof Ce||r instanceof ce)&&r.paintVertexBuffer&&this._buffers.push(r.paintVertexBuffer)}}upload(t){for(let e in this.binders){let r=this.binders[e];(r instanceof Ce||r instanceof ce||r instanceof Ze)&&r.upload(t)}this.updatePaintBuffers()}destroy(){for(let t in this.binders){let e=this.binders[t];(e instanceof Ce||e instanceof ce||e instanceof Ze)&&e.destroy()}}},Dr=class{constructor(t,e,r=()=>!0){this.programConfigurations={};for(let i of t)this.programConfigurations[i.id]=new vd(i,e,r);this.needsUpload=!1,this._featureMap=new yd,this._bufferOffset=0}populatePaintArrays(t,e,r,i){for(let n in this.programConfigurations)this.programConfigurations[n].populatePaintArrays(t,e,i);e.id!==void 0&&this._featureMap.add(e.id,r,this._bufferOffset,t),this._bufferOffset=t,this.needsUpload=!0}updatePaintArrays(t,e,r,i){for(let n of r)this.needsUpload=this.programConfigurations[n.id].updatePaintArrays(t,this._featureMap,e,n,i)||this.needsUpload}get(t){return this.programConfigurations[t]}upload(t){if(this.needsUpload){for(let e in this.programConfigurations)this.programConfigurations[e].upload(t);this.needsUpload=!1}}destroy(){for(let t in this.programConfigurations)this.programConfigurations[t].destroy()}};function Mg(t,e){return{"text-opacity":["opacity"],"icon-opacity":["opacity"],"text-color":["fill_color"],"icon-color":["fill_color"],"text-halo-color":["halo_color"],"icon-halo-color":["halo_color"],"text-halo-blur":["halo_blur"],"icon-halo-blur":["halo_blur"],"text-halo-width":["halo_width"],"icon-halo-width":["halo_width"],"line-gap-width":["gapwidth"],"line-dasharray":["dasharray_to","dasharray_from"],"line-pattern":["pattern_to","pattern_from","pixel_ratio_to","pixel_ratio_from"],"fill-pattern":["pattern_to","pattern_from","pixel_ratio_to","pixel_ratio_from"],"fill-extrusion-pattern":["pattern_to","pattern_from","pixel_ratio_to","pixel_ratio_from"]}[t]||[t.replace(`${e}-`,"").replace(/-/g,"_")]}function Bg(t){return{"line-pattern":{source:Vr,composite:Vr},"fill-pattern":{source:Vr,composite:Vr},"fill-extrusion-pattern":{source:Vr,composite:Vr},"line-dasharray":{source:Zh,composite:Zh}}[t]}function Qh(t,e,r){var n;let i={color:{source:fn,composite:Bo},number:{source:Sa,composite:fn}};return((n=Bg(t))==null?void 0:n[r])||i[e][r]}C("ConstantBinder",qi),C("CrossFadedConstantBinder",fr),C("SourceExpressionBinder",Ce),C("CrossFadedPatternBinder",gd),C("CrossFadedDasharrayBinder",xd),C("CompositeExpressionBinder",ce),C("ProgramConfiguration",vd,{omit:["_buffers"]}),C("ProgramConfigurationSet",Dr);var Oo=2**14-1,tc=-Oo-1;function Fr(t){let e=gt/t.extent,r=t.loadGeometry();for(let i of r)for(let n of i){let a=Math.round(n.x*e),s=Math.round(n.y*e);n.x=en(a,tc,Oo),n.y=en(s,tc,Oo),(an.x+1||sn.y+1)&&Mt("Geometry exceeds allowed extent, reduce your vector tile buffer size")}return r}function hi(t,e){return{type:t.type,id:t.id,properties:t.properties,geometry:e?Fr(t):[]}}var ec=-32768;function Pg(t,e,r,i,n){t.emplaceBack(ec+e*8+i,ec+r*8+n)}var Ul=class{constructor(t){this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map(e=>e.id),this.index=t.index,this.hasDependencies=!1,this.layoutVertexArray=new mg,this.indexArray=new En,this.segments=new ie,this.programConfigurations=new Dr(t.layers,t.zoom),this.stateDependentLayerIds=this.layers.filter(e=>e.isStateDependent()).map(e=>e.id)}populate(t,e,r){let i=this.layers[0],n=[],a=null,s=!1,o=i.type==="heatmap";if(i.type==="circle"){let c=i;a=c.layout.get("circle-sort-key"),s=!a.isConstant(),o||(o=c.paint.get("circle-pitch-alignment")==="map")}let l=o?e.subdivisionGranularity.circle:1,u=new st(this.zoom),h=this.layers[0]._featureFilter.needGeometry;for(let{feature:c,id:p,index:f,sourceLayerIndex:d}of t){let y=hi(c,h);if(!this.layers[0]._featureFilter.filter(u,y,r))continue;let m=s?a.evaluate(y,{},r):void 0,g={id:p,properties:c.properties,type:c.type,sourceLayerIndex:d,index:f,geometry:h?y.geometry:Fr(c),patterns:{},sortKey:m};n.push(g)}s&&n.sort((c,p)=>c.sortKey-p.sortKey);for(let c of n){let{geometry:p,index:f,sourceLayerIndex:d}=c,y=t[f].feature;this.addFeature(c,p,f,r,l),e.featureIndex.insert(y,p,f,d,this.index)}}update(t,e,r){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(t,e,this.stateDependentLayers,{imagePositions:r})}addFeatures(t){}isEmpty(){return this.layoutVertexArray.length===0}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(t){this.uploaded||(this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,Sg),this.indexBuffer=t.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(t),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())}addFeature(t,e,r,i,n=1){let a;switch(n){case 1:a=[0,7];break;case 3:a=[0,2,5,7];break;case 5:a=[0,1,3,4,6,7];break;case 7:a=[0,1,2,3,4,5,6,7];break;default:throw Error(`Invalid circle bucket granularity: ${n}; valid values are 1, 3, 5, 7.`)}let s=a.length;for(let o of e)for(let l of o){let u=l.x,h=l.y;if(u<0||u>=8192||h<0||h>=8192)continue;let c=this.segments.prepareSegment(s*s,this.layoutVertexArray,this.indexArray,t.sortKey),p=c.vertexLength;for(let f=0;f=3){for(let n of i)if(oi(t,n))return!0}if(Vg(t,i,r))return!0}return!1}function Vg(t,e,r){if(t.length>1){if(ql(t,e))return!0;for(let i of e)if(Ro(i,t,r))return!0}for(let i of t)if(Ro(i,e,r))return!0;return!1}function ql(t,e){if(t.length===0||e.length===0)return!1;for(let r=0;r1?t.distSqr(r):t.distSqr(r.sub(e)._mult(n)._add(e))}function rc(t,e){let r=!1,i,n,a;for(let s of t){i=s;for(let o=0,l=i.length-1;oe.y!=a.y>e.y&&e.x<(a.x-n.x)*(e.y-n.y)/(a.y-n.y)+n.x&&(r=!r)}return r}function oi(t,e){let r=!1;for(let i=0,n=t.length-1;ie.y!=s.y>e.y&&e.x<(s.x-a.x)*(e.y-a.y)/(s.y-a.y)+a.x&&(r=!r)}return r}function Rg(t,e,r,i,n){for(let s of t)if(e<=s.x&&r<=s.y&&i>=s.x&&n>=s.y)return!0;let a=[new M(e,r),new M(e,n),new M(i,n),new M(i,r)];if(t.length>2){for(let s of a)if(oi(t,s))return!0}for(let s=0;sn.x&&e.x>n.x||t.yn.y&&e.y>n.y)return!1;let a=Qe(t,e,r[0]);return a!==Qe(t,e,r[1])||a!==Qe(t,e,r[2])||a!==Qe(t,e,r[3])}function Wr(t,e,r){let i=e.paint.get(t).value;return i.kind==="constant"?i.value:r.programConfigurations.get(e.id).getMaxValue(t)}function Ka(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function Ja(t,e,r,i,n){if(!e[0]&&!e[1])return t;let a=M.convert(e)._mult(n);r==="viewport"&&a._rotate(-i);let s=[];for(let o of t)s.push(o.sub(a));return s}function Ng(t){let e=[];for(let r=0;rjl(n,e,r,i))}var ic,Wg=()=>ic||(ic=new Yt({"circle-sort-key":new U(D.layout_circle["circle-sort-key"],"circle-sort-key")})),nc,Zg=()=>nc||(nc=new Yt({"circle-radius":new U(D.paint_circle["circle-radius"],"circle-radius"),"circle-color":new U(D.paint_circle["circle-color"],"circle-color"),"circle-blur":new U(D.paint_circle["circle-blur"],"circle-blur"),"circle-opacity":new U(D.paint_circle["circle-opacity"],"circle-opacity"),"circle-translate":new R(D.paint_circle["circle-translate"],"circle-translate"),"circle-translate-anchor":new R(D.paint_circle["circle-translate-anchor"],"circle-translate-anchor"),"circle-pitch-scale":new R(D.paint_circle["circle-pitch-scale"],"circle-pitch-scale"),"circle-pitch-alignment":new R(D.paint_circle["circle-pitch-alignment"],"circle-pitch-alignment"),"circle-stroke-width":new U(D.paint_circle["circle-stroke-width"],"circle-stroke-width"),"circle-stroke-color":new U(D.paint_circle["circle-stroke-color"],"circle-stroke-color"),"circle-stroke-opacity":new U(D.paint_circle["circle-stroke-opacity"],"circle-stroke-opacity")})),Hg={get paint(){return Zg()},get layout(){return Wg()}};var Kg=class extends ye{constructor(t,e){super(t,Hg,e)}createBucket(t){return new Ul(t)}queryRadius(t){let e=t;return Wr("circle-radius",this,e)+Wr("circle-stroke-width",this,e)+Ka(this.paint.get("circle-translate"))}queryIntersectsFeature({queryGeometry:t,feature:e,featureState:r,geometry:i,transform:n,pixelsToTileUnits:a,unwrappedTileID:s,getElevation:o}){let l=Ja(t,this.paint.get("circle-translate"),this.paint.get("circle-translate-anchor"),-n.bearingInRadians,a),u=this.paint.get("circle-radius").evaluate(e,r)+this.paint.get("circle-stroke-width").evaluate(e,r),h=this.paint.get("circle-pitch-scale"),c=this.paint.get("circle-pitch-alignment"),p,f;return c==="map"?(p=l,f=u*a):(p=Yg(l,n,s,o),f=u),Dd({queryGeometry:p,size:f,transform:n,unwrappedTileID:s,getElevation:o,pitchAlignment:c,pitchScale:h},i)}},_d=class extends Ul{};C("HeatmapBucket",_d,{omit:["layers"]});var ac,Jg=()=>ac||(ac=new Yt({"heatmap-radius":new U(D.paint_heatmap["heatmap-radius"],"heatmap-radius"),"heatmap-weight":new U(D.paint_heatmap["heatmap-weight"],"heatmap-weight"),"heatmap-intensity":new R(D.paint_heatmap["heatmap-intensity"],"heatmap-intensity"),"heatmap-color":new Za(D.paint_heatmap["heatmap-color"],"heatmap-color"),"heatmap-opacity":new R(D.paint_heatmap["heatmap-opacity"],"heatmap-opacity")})),Qg={get paint(){return Jg()}};function Gl(t,{width:e,height:r},i,n){if(!n)n=new Uint8Array(e*r*i);else if(n instanceof Uint8ClampedArray)n=new Uint8Array(n.buffer);else if(n.length!==e*r*i)throw RangeError(`mismatched image size. expected: ${n.length} but got: ${e*r*i}`);return t.width=e,t.height=r,t.data=n,t}function Ad(t,{width:e,height:r},i){if(e===t.width&&r===t.height)return;let n=Gl({},{width:e,height:r},i);Xl(t,n,{x:0,y:0},{x:0,y:0},{width:Math.min(t.width,e),height:Math.min(t.height,r)},i),t.width=e,t.height=r,t.data=n.data}function Xl(t,e,r,i,n,a){if(n.width===0||n.height===0)return e;if(n.width>t.width||n.height>t.height||r.x>t.width-n.width||r.y>t.height-n.height)throw RangeError("out of range source coordinates for image copy");if(n.width>e.width||n.height>e.height||i.x>e.width-n.width||i.y>e.height-n.height)throw RangeError("out of range destination coordinates for image copy");let s=t.data,o=e.data;if(s===o)throw Error("srcData equals dstData, so image is already copied");for(let l=0;l{e[t.evaluationKey]=l;let u=t.expression.evaluate(e);n.setPixel(s/4/r,o/4,u)};if(t.clips)for(let s=0,o=0;ssc||(sc=new Yt({"hillshade-illumination-direction":new R(D.paint_hillshade["hillshade-illumination-direction"],"hillshade-illumination-direction"),"hillshade-illumination-altitude":new R(D.paint_hillshade["hillshade-illumination-altitude"],"hillshade-illumination-altitude"),"hillshade-illumination-anchor":new R(D.paint_hillshade["hillshade-illumination-anchor"],"hillshade-illumination-anchor"),"hillshade-exaggeration":new R(D.paint_hillshade["hillshade-exaggeration"],"hillshade-exaggeration"),"hillshade-shadow-color":new R(D.paint_hillshade["hillshade-shadow-color"],"hillshade-shadow-color"),"hillshade-highlight-color":new R(D.paint_hillshade["hillshade-highlight-color"],"hillshade-highlight-color"),"hillshade-accent-color":new R(D.paint_hillshade["hillshade-accent-color"],"hillshade-accent-color"),"hillshade-method":new R(D.paint_hillshade["hillshade-method"],"hillshade-method"),resampling:new R(D.paint_hillshade.resampling,"resampling")})),nx={get paint(){return ix()}};var ax=class extends ye{constructor(t,e){super(t,nx,e),this.recalculate({zoom:0,zoomHistory:{}},void 0)}getIlluminationProperties(){let t=this.paint.get("hillshade-illumination-direction").values,e=this.paint.get("hillshade-illumination-altitude").values,r=this.paint.get("hillshade-highlight-color").values,i=this.paint.get("hillshade-shadow-color").values,n=Math.max(t.length,e.length,r.length,i.length);t=t.concat(Array(n-t.length).fill(t.at(-1))),e=e.concat(Array(n-e.length).fill(e.at(-1))),r=r.concat(Array(n-r.length).fill(r.at(-1))),i=i.concat(Array(n-i.length).fill(i.at(-1)));let a=e.map(yh);return{directionRadians:t.map(yh),altitudeRadians:a,shadowColor:i,highlightColor:r}}hasOffscreenPass(){return this.paint.get("hillshade-exaggeration")!==0&&!this.isHidden()}},oc,sx=()=>oc||(oc=new Yt({"color-relief-opacity":new R(D["paint_color-relief"]["color-relief-opacity"],"color-relief-opacity"),"color-relief-color":new Za(D["paint_color-relief"]["color-relief-color"],"color-relief-color"),resampling:new R(D["paint_color-relief"].resampling,"resampling")})),ox={get paint(){return sx()}};function Jn(t){return"data"in t}var lc=class{constructor(t,e,r,i){this.context=t,this.format=r,this.texture=t.gl.createTexture(),this._ownedHandle=this.texture,this.update(e,i)}update(t,e,r){var u;let{width:i,height:n}=t,a=(((u=this.size)==null?void 0:u[0])!==i||this.size[1]!==n)&&!r,{context:s}=this,{gl:o}=s;this.useMipmap=!!(e!=null&&e.useMipmap),a&&this.size&&this.format===o.RGBA&&(o.deleteTexture(this.texture),this.texture=o.createTexture(),this._ownedHandle=this.texture,this.magFilter=void 0,this.minFilter=void 0,this.wrap=void 0),o.bindTexture(o.TEXTURE_2D,this.texture),s.pixelStoreUnpackFlipY.set(!1),s.pixelStoreUnpack.set(1);let l=this.format===o.RGBA&&(e==null?void 0:e.premultiply)!==!1;if(a)if(this.size=[i,n],this.format===o.RGBA&&i>0&&n>0){let h=this.useMipmap?Math.floor(Math.log2(Math.max(i,n)))+1:1;if(o.texStorage2D(o.TEXTURE_2D,h,o.RGBA8,i,n),Jn(t)){s.pixelStoreUnpackPremultiplyAlpha.set(!1);let{data:c}=t;l&&c&&(c=Us(c)),c&&o.texSubImage2D(o.TEXTURE_2D,0,0,0,i,n,o.RGBA,o.UNSIGNED_BYTE,c)}else s.pixelStoreUnpackPremultiplyAlpha.set(l),o.texSubImage2D(o.TEXTURE_2D,0,0,0,o.RGBA,o.UNSIGNED_BYTE,t)}else Jn(t)?(s.pixelStoreUnpackPremultiplyAlpha.set(!1),this._uploadRawData(t,l,i,n,o)):(s.pixelStoreUnpackPremultiplyAlpha.set(l),this._uploadDomImage(t,o));else{let{x:h,y:c}=r||{x:0,y:0};Jn(t)?(s.pixelStoreUnpackPremultiplyAlpha.set(!1),this._updateRawData(t,l,h,c,i,n,o)):(s.pixelStoreUnpackPremultiplyAlpha.set(l),this._updateDomImage(t,h,c,o))}this.useMipmap&&!(Jn(t)&&t.data===null)&&o.generateMipmap(o.TEXTURE_2D),s.pixelStoreUnpackFlipY.setDefault(),s.pixelStoreUnpack.setDefault(),s.pixelStoreUnpackPremultiplyAlpha.setDefault()}_uploadDomImage(t,e){e.texImage2D(e.TEXTURE_2D,0,this.format,this.format,e.UNSIGNED_BYTE,t)}_uploadRawData(t,e,r,i,n){let{data:a}=t;e&&a&&(a=Us(a)),n.texImage2D(n.TEXTURE_2D,0,this.format,r,i,0,this.format,n.UNSIGNED_BYTE,a)}_updateDomImage(t,e,r,i){i.texSubImage2D(i.TEXTURE_2D,0,e,r,i.RGBA,i.UNSIGNED_BYTE,t)}_updateRawData(t,e,r,i,n,a,s){let{data:o}=t;e&&o&&(o=Us(o)),s.texSubImage2D(s.TEXTURE_2D,0,r,i,n,a,s.RGBA,s.UNSIGNED_BYTE,o)}bind(t,e,r){let{context:i}=this,{gl:n}=i;this.texture!==this._ownedHandle&&(this.texture=this._ownedHandle),n.bindTexture(n.TEXTURE_2D,this.texture),(r===n.LINEAR_MIPMAP_NEAREST||r===n.LINEAR_MIPMAP_LINEAR)&&!this.useMipmap&&(r=n.LINEAR);let a=r||t;t!==this.magFilter&&(n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MAG_FILTER,t),this.magFilter=t),a!==this.minFilter&&(n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MIN_FILTER,a),this.minFilter=a),e!==this.wrap&&(n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_S,e),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_T,e),this.wrap=e)}generateMipmap(){if(!this.useMipmap)return;let{gl:t}=this.context;t.bindTexture(t.TEXTURE_2D,this.texture),t.generateMipmap(t.TEXTURE_2D)}destroy(){let{gl:t}=this.context;t.deleteTexture(this.texture),this.texture=null,this._ownedHandle=null}},ze,Yl=(ze=class{constructor(e,r,i,n=1,a=1,s=1,o=0){if(this.uid=e,r.height!==r.width)throw RangeError("DEM tiles must be square");if(i&&!["mapbox","terrarium","custom"].includes(i)){Mt(`"${i}" is not a valid encoding type. Valid types include "mapbox", "terrarium" and "custom".`);return}this.stride=r.height;let l=this.dim=r.height-4;switch(this.data=new Uint32Array(r.data.buffer),ze.byteViewCache.set(this,new Uint8Array(this.data.buffer)),i){case"terrarium":this.redFactor=256,this.greenFactor=1,this.blueFactor=1/256,this.baseShift=32768;break;case"custom":this.redFactor=n,this.greenFactor=a,this.blueFactor=s,this.baseShift=o;break;default:this.redFactor=6553.6,this.greenFactor=25.6,this.blueFactor=.1,this.baseShift=1e4}for(let h=-2;h=l)&&this.data.copyWithin(this._idx(0,h),c,c+l),this.data.fill(this.data[c],this._idx(-2,h),this._idx(0,h)),this.data.fill(this.data[c+l-1],this._idx(l,h),this._idx(l+1,h)+1)}let u=this._getByteView();this.min=2**53-1,this.max=-(2**53-1);for(let h=0;hthis.max&&(this.max=f),f=this.dim||n<-1||n>=this.dim)throw RangeError(`Out of range source coordinates for DEM data. x: ${e}, y: ${r}, dim: ${this.dim}`);let a=this._getByteView(),s=((n+2)*this.stride+i+2)*4,o=this.stride*4,l=e-i,u=r-n,h=this._unpackAtIndex(a,s),c=this._unpackAtIndex(a,s+4),p=this._unpackAtIndex(a,s+o),f=this._unpackAtIndex(a,s+o+4);return h*(1-l)*(1-u)+c*l*(1-u)+p*(1-l)*u+f*l*u}getUnpackVector(){return[this.redFactor,this.greenFactor,this.blueFactor,this.baseShift]}_idx(e,r){if(e<-2||e>=this.dim+2||r<-2||r>=this.dim+2)throw RangeError(`Out of range source coordinates for DEM data. x: ${e}, y: ${r}, dim: ${this.dim}`);return(r+2)*this.stride+(e+2)}unpack(e,r,i){return e*this.redFactor+r*this.greenFactor+i*this.blueFactor-this.baseShift}pack(e){return Fd(e,this.getUnpackVector())}getPixels(){return new Ht({width:this.stride,height:this.stride},this._getByteView())}backfillBorder(e,r,i){if(this.dim!==e.dim)throw Error("dem dimension mismatch");let n=r*this.dim,a=r*this.dim+this.dim,s=i*this.dim,o=i*this.dim+this.dim;switch(r){case-1:n=a-2;break;case 1:a=n+2}switch(i){case-1:s=o-2;break;case 1:o=s+2}let l=-r*this.dim,u=-i*this.dim;for(let h=s;h80*r){o=t[0],l=t[1];let h=o,c=l;for(let p=r;ph&&(h=f),d>c&&(c=d)}u=Math.max(h-o,c-l),u=u===0?0:32767/u}return Uo(a,s,o,l,u),s}function Td(t,e,r,i,n){let a=null;if(n===Tx(t,e,r,i)>0)for(let s=e;s=e;s-=i)a=cc(s/i|0,t[s],t[s+1],a);return a&&yn(a,a.next)&&(gn(a),a=a.next),a}function _r(t,e=t){let r=e===t,i=t,n;do n=!1,i!==i.next&&(dn.size===0||!dn.has(i))&&(yn(i,i.next)||Tt(i.prev,i,i.next)===0)?((r||i===e)&&(e=i.prev),No=!0,gn(i),i=i.prev,n=!0):(r||i!==e)&&(i=i.next,n=!r);while(n||i!==e);return e}function Uo(t,e,r,i,n){n&&Dx(t,r,i,n);let a=t,s=!1;for(;t.prev!==t.next;){let o=t.prev,l=t.next;if(Tt(o,t,l)<0&&(n?px(t,r,i,n):cx(t))){e.push(o.i,t.i,l.i),gn(t),t=l,a=l;continue}if(t=l,t===a){if(No=!1,t=_r(t),No){a=t;continue}if(!s){t=fx(t,e),a=t,s=!0;continue}dx(t,e,r,i,n);break}}}function cx(t){let e=t.prev,r=t,i=t.next,n=e.x,a=r.x,s=i.x,o=e.y,l=r.y,u=i.y,h=Math.min(n,a,s),c=Math.min(o,l,u),p=Math.max(n,a,s),f=Math.max(o,l,u),d=i.next;for(;d!==e;){if(d.x>=h&&d.x<=p&&d.y>=c&&d.y<=f&&(n!==d.x||o!==d.y)&&ka(n,o,a,l,s,u,d.x,d.y)&&Tt(d.prev,d,d.next)>=0)return!1;d=d.next}return!0}function px(t,e,r,i){let n=t.prev,a=t,s=t.next,o=n.x,l=a.x,u=s.x,h=n.y,c=a.y,p=s.y,f=Math.min(o,l,u),d=Math.min(h,c,p),y=Math.max(o,l,u),m=Math.max(h,c,p),g=Xo(f,d,e,r,i),x=Xo(y,m,e,r,i),v=t.prevZ;for(;v&&v.z>=g;){if(v.x>=f&&v.x<=y&&v.y>=d&&v.y<=m&&v!==s&&(o!==v.x||h!==v.y)&&ka(o,h,l,c,u,p,v.x,v.y)&&Tt(v.prev,v,v.next)>=0)return!1;v=v.prevZ}let b=t.nextZ;for(;b&&b.z<=x;){if(b.x>=f&&b.x<=y&&b.y>=d&&b.y<=m&&b!==s&&(o!==b.x||h!==b.y)&&ka(o,h,l,c,u,p,b.x,b.y)&&Tt(b.prev,b,b.next)>=0)return!1;b=b.nextZ}return!0}function fx(t,e){let r=t,i=!1;do{let n=r.prev,a=r.next.next;Id(n,r,r.next,a,!1)&&mn(n,a)&&mn(a,n)&&(e.push(n.i,r.i,a.i),gn(r),gn(r.next),r=t=a,i=!0),r=r.next}while(r!==t);return i?_r(r):r}function dx(t,e,r,i,n){let a=t;do{let s=a.next.next;for(;s!==a.prev;){if(a.i!==s.i&&Sx(a,s)){let o=Cd(a,s);a=_r(a,a.next),o=_r(o,o.next),Uo(a,e,r,i,n),Uo(o,e,r,i,n);return}s=s.next}a=a.next}while(a!==t)}var qo=!1;function yx(t,e,r,i){let n=[];for(let a=0,s=e.length;as&&(s=r.x),r.yo&&(o=r.y),h.xs&&(s=h.x),h.yo&&(o=h.y),r=h}while(++l<16&&r!==e);Go[i]=r;let u=i*4;Dt[u]=n,Dt[u+1]=a,Dt[u+2]=s,Dt[u+3]=o}while(r!==e)}function vx(t,e){let r=t.z*4;e.xDt[r+2]&&(Dt[r+2]=e.x),e.y>Dt[r+3]&&(Dt[r+3]=e.y)}function uc(t){let e=Go[t];for(;e.prev.next!==e;)e=e.next;return Go[t]=e,e}function hc(t){let e=jo[t];for(;e.prev.next!==e;)e=e.next;return jo[t]=e,e}function bx(t,e){let r=e,i=t.x,n=t.y,a=-1/0,s;if(yn(t,r))return r;for(let p=0,f=0;pDt[f+3]||Dt[f]>i||Dt[f+2]<=a)continue;let d=uc(p);r=hc(p);do{if(r.prev.next===r){if(yn(t,r.next))return r.next;if(n<=r.y&&n>=r.next.y&&r.next.y!==r.y){let y=r.x+(n-r.y)*(r.next.x-r.x)/(r.next.y-r.y);if(y<=i&&y>a&&(a=y,s=r.xi||Dt[f+3]h)continue;let d=uc(p);r=hc(p);do{if(r.prev.next===r&&i>=r.x&&r.x>=o&&i!==r.x&&ka(ni)&&(ys.x||r.x===s.x&&wx(s,r)))&&(s=r,c=y)}r=r.next}while(r!==d)}return s}function wx(t,e){return Tt(t.prev,t,e.prev)<0&&Tt(e.next,t,t.next)<0}var oe=[],Ii=[],cr=new Uint32Array,Ci=new Uint32Array,Mi=new Uint32Array(256);function Dx(t,e,r,i){let n=t,a=0;do n.z=Xo(n.x,n.y,e,r,i),oe[a++]=n,n=n.next;while(n!==t);_x(a);let s=null;for(let o=0;o=0&&oe[n].z>i;)oe[n+1]=oe[n],n--;oe[n+1]=r}return}cr.length>>a&255]++;let s=0;for(let o=0;o<256;o++){let l=Mi[o];Mi[o]=s,s+=l}for(let o=0;o>>a&255]++;i[u]=e[o],n[u]=l}}function Xo(t,e,r,i,n){return t=(t-r)*n|0,e=(e-i)*n|0,t=(t|t<<8)&16711935,t=(t|t<<4)&252645135,t=(t|t<<2)&858993459,t=(t|t<<1)&1431655765,e=(e|e<<8)&16711935,e=(e|e<<4)&252645135,e=(e|e<<2)&858993459,e=(e|e<<1)&1431655765,t|e<<1}function Ax(t){let e=t,r=t;do(e.x=(t-s)*(a-o)&&(t-s)*(i-o)>=(r-s)*(e-o)&&(r-s)*(a-o)>=(n-s)*(i-o)}function Sx(t,e){let r=yn(t,e)&&Tt(t.prev,t,t.next)>0&&Tt(e.prev,e,e.next)>0;return t.next.i!==e.i&&(r||mn(t,e)&&mn(e,t)&&(Tt(t.prev,t,e.prev)!==0||Tt(t,e.prev,e)!==0))&&!Ex(t,e)&&(r||Fx(t,e))}function Tt(t,e,r){return(e.y-t.y)*(r.x-e.x)-(e.x-t.x)*(r.y-e.y)}function yn(t,e){return t.x===e.x&&t.y===e.y}function Id(t,e,r,i,n=!0){let a=Tt(t,e,r),s=Tt(t,e,i),o=Tt(r,i,t),l=Tt(r,i,e);return(a>0&&s<0||a<0&&s>0)&&(o>0&&l<0||o<0&&l>0)?!0:n?!!(a===0&&ta(t,r,e)||s===0&&ta(t,i,e)||o===0&&ta(r,t,i)||l===0&&ta(r,e,i)):!1}function ta(t,e,r){return e.x<=Math.max(t.x,r.x)&&e.x>=Math.min(t.x,r.x)&&e.y<=Math.max(t.y,r.y)&&e.y>=Math.min(t.y,r.y)}function Ex(t,e){let r=Math.min(t.x,e.x),i=Math.max(t.x,e.x),n=Math.min(t.y,e.y),a=Math.max(t.y,e.y),s=t;do{let o=s.next;if(s.x>i&&o.x>i||s.xa&&o.y>a||s.y=0&&Tt(t,t.prev,e)>=0:Tt(t,e,t.prev)<0||Tt(t,t.next,e)<0}function Fx(t,e){let r=t,i=!1,n=(t.x+e.x)/2,a=(t.y+e.y)/2;do{let s=r.next;r.y>a!=s.y>a&&n<(s.x-r.x)*(a-r.y)/(s.y-r.y)+r.x&&(i=!i),r=s}while(r!==t);return i}function Cd(t,e){let r=Yo(t.i,t.x,t.y),i=Yo(e.i,e.x,e.y),n=t.next,a=e.prev;return t.next=e,e.prev=t,r.next=n,n.prev=r,i.next=r,r.prev=i,a.next=i,i.prev=a,i}function cc(t,e,r,i){let n=Yo(t,e,r);return i?(n.next=i.next,n.prev=i,i.next.prev=n,i.next=n):(n.prev=n,n.next=n),n}function gn(t){t.next.prev=t.prev,t.prev.next=t.next,t.prevZ&&(t.prevZ.nextZ=t.nextZ),t.nextZ&&(t.nextZ.prevZ=t.prevZ),qo&&vx(t.prev,t.next)}function Yo(t,e,r){return{i:t,x:e,y:r,prev:null,next:null,z:0,prevZ:null,nextZ:null}}function Tx(t,e,r,i){let n=0;for(let a=e,s=r-i;at)throw Error("Min granularity must not be greater than base granularity.");this._baseZoomGranularity=t,this._minGranularity=e}getGranularityForZoomLevel(t){let e=1<32767||e>32767)throw Error("Vertex coordinates are out of signed 16 bit integer range.");let r=Math.round(t)|0,i=Math.round(e)|0,n=this._getKey(r,i),a=this._vertexDictionary.get(n);if(a!==void 0)return a;let s=this._vertexBuffer.length/2;return this._vertexDictionary.set(n,s),this._vertexBuffer.push(r,i),s}_subdivideTrianglesScanline(t,e){if(this._granularity<2)return Bx(this._vertexBuffer,Mx(t,e));let r=[],i=t.length;for(let n=0;n=1||b<=0)||m&&(ln)){h>=i&&h<=n&&a.push(r[(s+1)%3]);continue}if(!m&&v>0){let A=o+f*v,S=l+d*v;a.push(this._vertexToIndex(A,S))}let w=o+f*Math.max(v,0),_=o+f*Math.min(b,1);if(y||this._generateIntraEdgeVertices(a,o,l,u,h,w,_),!m&&b<1){let A=o+f*b,S=l+d*b;a.push(this._vertexToIndex(A,S))}(m||h>=i&&h<=n)&&a.push(r[(s+1)%3]),!m&&(h<=i||h>=n)&&this._generateInterEdgeVertices(a,o,l,u,h,c,p,_,i,n)}return a}_generateIntraEdgeVertices(t,e,r,i,n,a,s){let o=i-e,l=n-r,u=l===0,h=u?Math.min(e,i):Math.min(a,s),c=u?Math.max(e,i):Math.max(a,s),p=Math.floor(h/this._granularityCellSize)+1,f=Math.ceil(c/this._granularityCellSize)-1;if(u?e=p;d--){let y=d*this._granularityCellSize,m=r+l*(y-e)/o;t.push(this._vertexToIndex(y,m))}}_generateInterEdgeVertices(t,e,r,i,n,a,s,o,l,u){let h=n-r,c=a-i,p=s-n,f=(l-n)/p,d=(u-n)/p,y=Math.min(f,d),m=Math.max(f,d),g=i+c*y,x=Math.floor(Math.min(g,o)/this._granularityCellSize)+1,v=Math.ceil(Math.max(g,o)/this._granularityCellSize)-1,b=o=1||m<=0){let A=e-a,S=r-s,T=(l-s)/S,L=(u-s)/S,O=a+A*Math.min(T,L);x=Math.floor(Math.min(O,o)/this._granularityCellSize)+1,v=Math.ceil(Math.max(O,o)/this._granularityCellSize)-1,b=o0?u:l;if(b)for(let A=x;A<=v;A++){let S=A*this._granularityCellSize;t.push(this._vertexToIndex(S,_))}else for(let A=v;A>=x;A--){let S=A*this._granularityCellSize;t.push(this._vertexToIndex(S,_))}}_generateOutline(t,e){let r=[],i=0;for(let n of t){let a=this._granularity<2?this._ringPathIndices(n,i,e):this._pointArrayToIndices(yr(n,this._granularity,!0));i+=n.length;let s=[];for(let o=1;o=2&&Bd(t)&&i.push(i[0]),i}_handlePoles(t){let e=!1,r=!1;this._canonical&&(this._canonical.y===0&&(e=!0),this._canonical.y===(1<n==(a===-32768)?(t.push(r),t.push(e),t.push(this._vertexToIndex(i,a)),t.push(this._vertexToIndex(n,a)),t.push(r),t.push(this._vertexToIndex(i,a))):(t.push(e),t.push(r),t.push(this._vertexToIndex(i,a)),t.push(r),t.push(this._vertexToIndex(n,a)),t.push(this._vertexToIndex(i,a)))}_fillPoles(t,e,r){let i=this._vertexBuffer,n=gt,a=t.length;for(let s=2;s=2&&((o=this._canonical)==null?void 0:o.z)===0&&(a=this._removeTrianglesOutsideTileX(a),s=s.map(l=>this._removeLinesOutsideTileX(l))),{verticesFlattened:this._vertexBuffer,indicesTriangles:a,indicesLineList:s}}_vertexOutsideTileX(t){let e=this._vertexBuffer[t*2];return e<0||e>8192}_removeTrianglesOutsideTileX(t){let e=[];for(let r=0;r0?(Math.floor(w/n)+1)*n:(Math.ceil(w/n)-1)*n,T=x>0?(Math.floor(_/n)+1)*n:(Math.ceil(_/n)-1)*n,L=Math.abs(w-S),O=Math.abs(_-T),B=Math.abs(w-f),V=Math.abs(_-d),F=y?L/v:1/0,$=m?O/b:1/0;if((B<=L||!y)&&(V<=O||!m))break;if(F<$&&y||!m){w=S,_+=x*F;let G=new M(w,Math.round(_));(a[a.length-1].x!==G.x||a[a.length-1].y!==G.y)&&a.push(G)}else{w+=g*$,_=T;let G=new M(Math.round(w),_);(a[a.length-1].x!==G.x||a[a.length-1].y!==G.y)&&a.push(G)}}let A=new M(f,d);(a[a.length-1].x!==A.x||a[a.length-1].y!==A.y)&&a.push(A)}return a}function Bd(t){return!t[0].equals(t[t.length-1])}function Cx(t){let e=[],r=[];for(let i of t)if(i.length!==0){i!==t[0]&&e.push(r.length/2);for(let n of i)r.push(n.x),r.push(n.y)}return{flattened:r,holeIndices:e}}function Mx(t,e){let r=Array(t.length);for(let i=0;i0?(r.push(n),r.push(s),r.push(a)):(r.push(n),r.push(a),r.push(s))}return r}function Px(t,e,r){if(e.length===0)throw Error("Subdivision vertex ring is empty.");let i=0,n=t[e[0]*2];for(let l=1;l=0?s-1:a-1,u=(o+1)%a,h=t[e[l]*2],c=t[e[l]*2+1],p=t[e[u]*2],f=t[e[u]*2+1],d=t[e[s]*2],y=t[e[s]*2+1],m=t[e[o]*2],g=t[e[o]*2+1],x=!1;if(hp)x=!1;else{let v=g-y,b=-(m-d),w=y((p-d)*v+(f-y)*b)*w&&(x=!0)}if(x){let v=e[l],b=e[s],w=e[o];v!==b&&v!==w&&b!==w&&r.push(w,b,v),s--,s<0&&(s=a-1)}else{let v=e[u],b=e[s],w=e[o];v!==b&&v!==w&&b!==w&&r.push(w,b,v),o++,o>=a&&(o=0)}if(l===u)break}}function Pd(t,e,r,i,n,a,s,o,l){let u=n.length/2,h=s&&o&&l;if(uie.MAX_VERTEX_ARRAY_LENGTH&&(u=t.createNewSegment(e,r),l=o.count,y=!0,m=!0,g=!0,h=0);let v=Ji(s,i,a,o,p,y,u),b=Ji(s,i,a,o,f,m,u),w=Ji(s,i,a,o,d,g,u);r.emplaceBack(h+v-l,h+b-l,h+w-l),u.primitiveLength++}}function Lx(t,e,r,i,n,a){let s=[];for(let c=0;cie.MAX_VERTEX_ARRAY_LENGTH&&(u=t.createNewSegment(e,r),l=o.count,y=!0,m=!0,h=0);let x=Ji(s,i,a,o,f,y,u),v=Ji(s,i,a,o,d,m,u);r.emplaceBack(h+x-l,h+v-l),u.primitiveLength++}}var zd=class{constructor(t){this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map(e=>e.id),this.index=t.index,this.hasDependencies=!1,this.sdfPatterns={},this.patternFeatures=[],this.layoutVertexArray=new gg,this.indexArray=new En,this.indexArray2=new Po,this.programConfigurations=new Dr(t.layers,t.zoom),this.segments=new ie,this.segments2=new ie,this.stateDependentLayerIds=this.layers.filter(e=>e.isStateDependent()).map(e=>e.id)}populate(t,e,r){this.hasDependencies=Fa("fill",this.layers,e);let i=this.layers[0].layout.get("fill-sort-key"),n=!i.isConstant(),a=[],s=new st(this.zoom),o=this.layers[0]._featureFilter.needGeometry;for(let{feature:l,id:u,index:h,sourceLayerIndex:c}of t){let p=hi(l,o);if(!this.layers[0]._featureFilter.filter(s,p,r))continue;let f=n?i.evaluate(p,{},r,e.availableImages):void 0,d={id:u,properties:l.properties,type:l.type,sourceLayerIndex:c,index:h,geometry:o?p.geometry:Fr(l),patterns:{},sortKey:f};a.push(d)}n&&a.sort((l,u)=>l.sortKey-u.sortKey);for(let l of a){let{geometry:u,index:h,sourceLayerIndex:c}=l;if(this.hasDependencies){let f=Wl("fill",this.layers,l,{zoom:this.zoom},e);this.patternFeatures.push(f)}else this.addFeature(l,u,h,r,{},e.subdivisionGranularity);let p=t[h].feature;e.featureIndex.insert(p,u,h,c,this.index)}}update(t,e,r){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(t,e,this.stateDependentLayers,{imagePositions:r})}addFeatures({options:t,canonical:e,patternPositions:r,patternMap:i}){this.detectSdfPatterns(i);for(let n of this.patternFeatures)this.addFeature(n,n.geometry,n.index,e,r,t.subdivisionGranularity)}detectSdfPatterns(t){for(let e of this.patternFeatures)for(let r in e.patterns){let i=e.patterns[r];this.recordSdfPattern(r,t[i.min]),this.recordSdfPattern(r,t[i.mid]),this.recordSdfPattern(r,t[i.max])}for(let e of this.layers){let r=e.paint.get("fill-pattern").constantOr(null);r&&(this.recordSdfPattern(e.id,t[r.from.toString()]),this.recordSdfPattern(e.id,t[r.to.toString()]))}}recordSdfPattern(t,e){if(!e)return;let r=e.sdf===!0,i=this.sdfPatterns[t];i===void 0?this.sdfPatterns[t]=r:i!==r&&Mt(`Style sheet warning: Cannot mix SDF and non-SDF fill patterns in layer "${t}"`)}isEmpty(){return this.layoutVertexArray.length===0}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(t){this.uploaded||(this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,ux),this.indexBuffer=t.createIndexBuffer(this.indexArray),this.indexBuffer2=t.createIndexBuffer(this.indexArray2)),this.programConfigurations.upload(t),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.indexBuffer2.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.segments2.destroy())}addFeature(t,e,r,i,n,a){for(let s of Na(e,500)){let o=Md(s,i,a.fill.getGranularityForZoomLevel(i.z)),l=this.layoutVertexArray;Pd((u,h)=>{l.emplaceBack(u,h)},this.segments,this.layoutVertexArray,this.indexArray,o.verticesFlattened,o.indicesTriangles,this.segments2,this.indexArray2,o.indicesLineList)}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,t,r,{imagePositions:n,canonical:i})}};C("FillBucket",zd,{omit:["layers","patternFeatures"]});var pc,Vx=()=>pc||(pc=new Yt({"fill-sort-key":new U(D.layout_fill["fill-sort-key"],"fill-sort-key")})),fc,Ox=()=>fc||(fc=new Yt({"fill-antialias":new R(D.paint_fill["fill-antialias"],"fill-antialias"),"fill-opacity":new U(D.paint_fill["fill-opacity"],"fill-opacity"),"fill-layer-opacity":new R(D.paint_fill["fill-layer-opacity"],"fill-layer-opacity"),"fill-color":new U(D.paint_fill["fill-color"],"fill-color"),"fill-outline-color":new U(D.paint_fill["fill-outline-color"],"fill-outline-color"),"fill-translate":new R(D.paint_fill["fill-translate"],"fill-translate"),"fill-translate-anchor":new R(D.paint_fill["fill-translate-anchor"],"fill-translate-anchor"),"fill-pattern":new cn(D.paint_fill["fill-pattern"],"fill-pattern")})),Rx={get paint(){return Ox()},get layout(){return Vx()}};var $x=class extends ye{constructor(t,e){super(t,Rx,e)}recalculate(t,e){super.recalculate(t,e);let r=this.paint._values["fill-outline-color"];r.value.kind==="constant"&&r.value.value===void 0&&(this.paint._values["fill-outline-color"]=this.paint._values["fill-color"])}createBucket(t){return new zd(t)}queryRadius(){return Ka(this.paint.get("fill-translate"))}queryIntersectsFeature({queryGeometry:t,geometry:e,transform:r,pixelsToTileUnits:i}){return bd(Ja(t,this.paint.get("fill-translate"),this.paint.get("fill-translate-anchor"),-r.bearingInRadians,i),e)}isTileClipped(){return!0}},Wo=Et([{name:"a_pos",components:2,type:"Int16"},{name:"a_normal_ed",components:4,type:"Int16"}],4),Nx=Et([{name:"a_centroid",components:2,type:"Int16"}],4),Ux=Wo.members;Wo.size,Wo.alignment;var Ia=class Zo{constructor(){this.minX=1/0,this.maxX=-1/0,this.minY=1/0,this.maxY=-1/0}extend(e){return this.minX=Math.min(this.minX,e.x),this.minY=Math.min(this.minY,e.y),this.maxX=Math.max(this.maxX,e.x),this.maxY=Math.max(this.maxY,e.y),this}expandBy(e){return this.minX-=e,this.minY-=e,this.maxX+=e,this.maxY+=e,(this.minX>this.maxX||this.minY>this.maxY)&&(this.minX=1/0,this.maxX=-1/0,this.minY=1/0,this.maxY=-1/0),this}shrinkBy(e){return this.expandBy(-e)}map(e){let r=new Zo;return r.extend(e(new M(this.minX,this.minY))),r.extend(e(new M(this.maxX,this.minY))),r.extend(e(new M(this.minX,this.maxY))),r.extend(e(new M(this.maxX,this.maxY))),r}static fromPoints(e){let r=new Zo;for(let i of e)r.extend(i);return r}contains(e){return e.x>=this.minX&&e.x<=this.maxX&&e.y>=this.minY&&e.y<=this.maxY}empty(){return this.minX>this.maxX}width(){return this.maxX-this.minX}height(){return this.maxY-this.minY}covers(e){return!this.empty()&&!e.empty()&&e.minX>=this.minX&&e.maxX<=this.maxX&&e.minY>=this.minY&&e.maxY<=this.maxY}intersects(e){return!this.empty()&&!e.empty()&&e.minX<=this.maxX&&e.maxX>=this.minX&&e.minY<=this.maxY&&e.maxY>=this.minY}},A5=Ia.fromPoints([new M(0,0),new M(gt,gt)]);function Ho(t,e){return t.x===e.x&&(t.x<0||t.x>8192)||t.y===e.y&&(t.y<0||t.y>8192)}function dc(t){return t.every(e=>e.x<0)||t.every(e=>e.x>8192)||t.every(e=>e.y<0)||t.every(e=>e.y>8192)}var Fn=class{constructor(t,e,r,i,n){for(this.properties=Object.create(null),this.extent=r,this.type=0,this.id=void 0,this._pbf=t,this._geometry=-1,this._keys=i,this._values=n;t.pos>3,a===0)continue}if(a--,n===1)s+=t.readSVarint(),o+=t.readSVarint(),i&&r.push(i),i=[new M(s,o)];else if(n===2)s+=t.readSVarint(),o+=t.readSVarint(),i&&i.push(new M(s,o));else if(n===7)i&&i.push(i[0].clone());else throw Error(`unknown command ${n}`)}return i&&r.push(i),r}bbox(){if(this._geometry<0)throw Error("feature has no geometry");let t=this._pbf;t.pos=this._geometry;let e=t.readVarint()+t.pos,r=1,i=0,n=0,a=0,s=1/0,o=-1/0,l=1/0,u=-1/0;for(;t.pos>3,i===0)continue}if(i--,r===1||r===2)n+=t.readSVarint(),a+=t.readSVarint(),no&&(o=n),au&&(u=a);else if(r!==7)throw Error(`unknown command ${r}`)}return[s,l,o,u]}toGeoJSON(t,e,r){let i=this.extent*2**r,n=this.extent*t,a=this.extent*e,s=this.loadGeometry();function o(c){return[(c.x+n)*360/i-180,360/Math.PI*Math.atan(Math.exp((1-(c.y+a)*2/i)*Math.PI))-90]}function l(c){return c.map(o)}let u;if(this.type===1){let c=[];for(let f of s)c.push(f[0]);let p=l(c);u=c.length===1?{type:"Point",coordinates:p[0]}:{type:"MultiPoint",coordinates:p}}else if(this.type===2){let c=s.map(l);u=c.length===1?{type:"LineString",coordinates:c[0]}:{type:"MultiLineString",coordinates:c}}else if(this.type===3){let c=Ld(s),p=[];for(let f of c)p.push(f.map(l));u=p.length===1?{type:"Polygon",coordinates:p[0]}:{type:"MultiPolygon",coordinates:p}}else throw Error("unknown feature type");let h={type:"Feature",geometry:u,properties:this.properties};return this.id!=null&&(h.id=this.id),h}};Fn.types=["Unknown","Point","LineString","Polygon"];function Ld(t){let e=t.length;if(e<=1)return[t];let r=[],i,n;for(let a=0;a=this._features.length)throw Error("feature index out of bounds");this._pbf.pos=this._features[t];let e=this._pbf.readVarint()+this._pbf.pos;return new Fn(this._pbf,e,this.extent,this._keys,this._values)}};function Gx(t){let e=null,r=t.readVarint()+t.pos;for(;t.pos90||this.lat<-90)throw Error("Invalid LngLat latitude value: must be between -90 and 90")}wrap(){return new Gi(Z1(this.lng,-180,180),this.lat)}toArray(){return[this.lng,this.lat]}toString(){return`LngLat(${this.lng}, ${this.lat})`}distanceTo(e){let r=Math.PI/180,i=this.lat*r,n=e.lat*r,a=Math.sin(i)*Math.sin(n)+Math.cos(i)*Math.cos(n)*Math.cos((e.lng-this.lng)*r);return Vd*Math.acos(Math.min(a,1))}static convert(e){if(e instanceof Gi)return e;if(Array.isArray(e)&&(e.length===2||e.length===3))return new Gi(Number(e[0]),Number(e[1]));if(!Array.isArray(e)&&typeof e=="object"&&e)return new Gi(Number("lng"in e?e.lng:e.lon),Number(e.lat));throw Error("`LngLatLike` argument must be specified as a LngLat instance, an object {lng: , lat: }, an object {lon: , lat: }, or an array of [, ]")}},Od=2*Math.PI*Vd;function Rd(t){return Od*Math.cos(t*Math.PI/180)}function Xx(t){return(180+t)/360}function Yx(t){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+t*Math.PI/360)))/360}function Wx(t,e){return t/Rd(e)}function Zx(t){return t*360-180}function Ko(t){let e=180-t*360;return 360/Math.PI*Math.atan(Math.exp(e*Math.PI/180))-90}function Hx(t,e){return t*Rd(Ko(e))}function Kx(t){return 1/Math.cos(t*Math.PI/180)}var Hl=class $d{constructor(e,r,i=0){this.x=+e,this.y=+r,this.z=+i}static fromLngLat(e,r=0){let i=yc.convert(e);return new $d(Xx(i.lng),Yx(i.lat),Wx(r,i.lat))}toLngLat(){return new yc(Zx(this.x),Ko(this.y))}toAltitude(){return Hx(this.z,this.y)}meterInMercatorCoordinateUnits(){return 1/Od*Kx(Ko(this.y))}};function Jx(t,e,r){let i=1/(1<r2(r,e))}function e2(t,e){let r=Qx(gt/2,gt/2,e),i=Hl.fromLngLat(r).meterInMercatorCoordinateUnits(),n=(1<1&&e[0].x===e[e.length-1].x&&e[0].y===e[e.length-1].y;)e.pop();return e}function n2(t,e,r,i,n){let a=e.sub(r),s=i.sub(r),o=a.mag(),l=s.mag();if(o<1e-6||l<1e-6){t.push(r.clone());return}a._div(o),s._div(l);let u=a.x*s.x+a.y*s.y;if(Math.abs(u)>Math.cos(5*Math.PI/180)){t.push(r.clone());return}let h=.2,c=Math.min(n,o*h,l*h),p=r.add(a.mult(c)),f=r.add(s.mult(c)),d=Math.sqrt((1+u)/2),y=r.add(a.add(s)._unit()._mult(c/d)),m=p.sub(y).angleWith(f.sub(y)),g=Math.max(2,Math.ceil(Math.abs(m)/(Math.PI/6)-1e-6));for(let x=0;x<=g;x++)t.push(p.rotateAround(x/g*m,y))}var Gs=8192;function Bi(t,e,r,i,n,a,s,o){t.emplaceBack(e,r,Math.floor(i*Gs)*2+s,n*Gs*2,a*Gs*2,Math.round(o))}var Nd=class{constructor(t){this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map(e=>e.id),this.index=t.index,this.hasDependencies=!1,this.layoutVertexArray=new xg,this.centroidVertexArray=new yg,this.indexArray=new En,this.programConfigurations=new Dr(t.layers,t.zoom),this.segments=new ie,this.stateDependentLayerIds=this.layers.filter(e=>e.isStateDependent()).map(e=>e.id)}populate(t,e,r){this.features=[],this.hasDependencies=Fa("fill-extrusion",this.layers,e);let i=new st(this.zoom),n=this.layers[0],a=n.layout.get("fill-extrusion-rounded-corner-distance"),s=a>0?e2(a,r):0,o=n._featureFilter.needGeometry;for(let{feature:l,id:u,index:h,sourceLayerIndex:c}of t){let p=hi(l,o);if(!n._featureFilter.filter(i,p,r))continue;let f={id:u,sourceLayerIndex:c,index:h,geometry:t2(o?p.geometry:Fr(l),s),properties:l.properties,type:l.type,patterns:{}};this.hasDependencies?this.features.push(Wl("fill-extrusion",this.layers,f,{zoom:this.zoom},e)):this.addFeature(f,f.geometry,h,r,{},e.subdivisionGranularity),e.featureIndex.insert(l,f.geometry,h,c,this.index,!0)}}addFeatures({options:t,canonical:e,patternPositions:r}){for(let i of this.features){let{geometry:n}=i;this.addFeature(i,n,i.index,e,r,t.subdivisionGranularity)}}update(t,e,r){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(t,e,this.stateDependentLayers,{imagePositions:r})}isEmpty(){return this.layoutVertexArray.length===0&&this.centroidVertexArray.length===0}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(t){this.uploaded||(this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,Ux),this.centroidVertexBuffer=t.createVertexBuffer(this.centroidVertexArray,Nx.members,!0),this.indexBuffer=t.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(t),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.centroidVertexBuffer.destroy())}addFeature(t,e,r,i,n,a){for(let s of Na(e,500)){let o={x:0,y:0,sampleCount:0},l=this.layoutVertexArray.length;this.processPolygon(o,i,t,s,a);let u=this.layoutVertexArray.length-l,h=Math.floor(o.x/o.sampleCount),c=Math.floor(o.y/o.sampleCount);for(let p=0;p{Bi(u,h,c,0,0,1,1,0)},this.segments,this.layoutVertexArray,this.indexArray,l.verticesFlattened,l.indicesTriangles)}_generateSideFaces(t,e){let r=0;for(let i=1;iie.MAX_VERTEX_ARRAY_LENGTH&&(e.segment=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray));let s=n.sub(a)._perp()._unit(),o=a.dist(n);r+o>32768&&(r=0),Bi(this.layoutVertexArray,n.x,n.y,s.x,s.y,0,0,r),Bi(this.layoutVertexArray,n.x,n.y,s.x,s.y,0,1,r),r+=o,Bi(this.layoutVertexArray,a.x,a.y,s.x,s.y,0,0,r),Bi(this.layoutVertexArray,a.x,a.y,s.x,s.y,0,1,r);let l=e.segment.vertexLength;this.indexArray.emplaceBack(l,l+2,l+1),this.indexArray.emplaceBack(l+1,l+2,l+3),e.segment.vertexLength+=4,e.segment.primitiveLength+=2}}};function a2(t,e){for(let r=0;rmc||(mc=new Yt({"fill-extrusion-rounded-corner-distance":new R(D["layout_fill-extrusion"]["fill-extrusion-rounded-corner-distance"],"fill-extrusion-rounded-corner-distance")})),gc,o2=()=>gc||(gc=new Yt({"fill-extrusion-opacity":new R(D["paint_fill-extrusion"]["fill-extrusion-opacity"],"fill-extrusion-opacity"),"fill-extrusion-color":new U(D["paint_fill-extrusion"]["fill-extrusion-color"],"fill-extrusion-color"),"fill-extrusion-translate":new R(D["paint_fill-extrusion"]["fill-extrusion-translate"],"fill-extrusion-translate"),"fill-extrusion-translate-anchor":new R(D["paint_fill-extrusion"]["fill-extrusion-translate-anchor"],"fill-extrusion-translate-anchor"),"fill-extrusion-pattern":new cn(D["paint_fill-extrusion"]["fill-extrusion-pattern"],"fill-extrusion-pattern"),"fill-extrusion-height":new U(D["paint_fill-extrusion"]["fill-extrusion-height"],"fill-extrusion-height"),"fill-extrusion-base":new U(D["paint_fill-extrusion"]["fill-extrusion-base"],"fill-extrusion-base"),"fill-extrusion-vertical-gradient":new R(D["paint_fill-extrusion"]["fill-extrusion-vertical-gradient"],"fill-extrusion-vertical-gradient")})),l2={get paint(){return o2()},get layout(){return s2()}};var u2=class extends ye{constructor(t,e){super(t,l2,e)}createBucket(t){return new Nd(t)}queryRadius(){return Ka(this.paint.get("fill-extrusion-translate"))}is3D(){return!0}queryIntersectsFeature({queryGeometry:t,feature:e,featureState:r,geometry:i,transform:n,pixelsToTileUnits:a,pixelPosMatrix:s}){let o=Ja(t,this.paint.get("fill-extrusion-translate"),this.paint.get("fill-extrusion-translate-anchor"),-n.bearingInRadians,a),l=this.paint.get("fill-extrusion-height").evaluate(e,r),u=this.paint.get("fill-extrusion-base").evaluate(e,r),h=p2(o,s,0),c=c2(i,u,l,s),p=c[0],f=c[1];return h2(p,f,h)}};function Pi(t,e){return t.x*e.x+t.y*e.y}function xc(t,e){if(t.length===1){let r=0,i=e[r++],n;for(;!n||i.equals(n);)if(n=e[r++],!n)return 1/0;for(;r>1),s=r-e,o,l=t[e],u=t[e+1],h=t[r],c=t[r+1];for(let p=e+3;pn){o=p,n=f;continue}if(f===n){let d=Math.abs(p-a);di&&(o-e>3&&Jo(t,e,o,i),t[o+2]=n,r-o>3&&Jo(t,o,r,i))}function f2(t,e,r,i,n,a){let s=n-r,o=a-i;if(s!==0||o!==0){let l=((t-r)*s+(e-i)*o)/(s*s+o*o);l>1?(r=n,i=a):l>0&&(r+=s*l,i+=o*l)}return s=t-r,o=e-i,s*s+o*o}function Ct(t,e,r,i){let n={type:e,geom:r},a={id:t!=null?t:null,type:n.type,geometry:n.geom,tags:i,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};switch(n.type){case"Point":case"MultiPoint":zi(a,n.geom);break;case"LineString":zi(a,n.geom.points);break;case"Polygon":zi(a,n.geom[0].points);break;case"MultiLineString":for(let s of n.geom)zi(a,s.points);break;case"MultiPolygon":for(let s of n.geom)zi(a,s[0].points)}return a}function Kl(t){let e=t;t.points.length>64&&(e.points=new Float64Array(t.points))}function zi(t,e){for(let r=0;r1024)throw Error("GeometryCollection nesting exceeds supported depth: 1024");if(e.geometry.type==="GeometryCollection"){y2(t,e,e.geometry,r,i,n+1);return}if(!((o=e.geometry.coordinates)!=null&&o.length))return;let a=d2(e,r,i),s=(r.tolerance/((1<0&&(s+=i?(n*h-u*a)/2:Math.sqrt((u-n)**2+(h-a)**2)),n=u,a=h}let o=e.points.length-3;e.points[2]=1,r>0&&Jo(e.points,0,o,r),e.points[o+2]=1,Kl(e),e.size=Math.abs(s),e.start=0,e.end=e.size}function tu(t,e,r,i){for(let n=0;n1?1:r}function D2(t){return{type:"FeatureCollection",features:t.map(e=>Ca(e))}}function Ca(t){let e={type:"Feature",geometry:_2(t),properties:t.tags};return t.id!=null&&(e.id=t.id),e}function _2(t){let{type:e,geometry:r}=t;switch(e){case"Point":return{type:e,coordinates:Ud(r[0],r[1])};case"MultiPoint":return{type:e,coordinates:ea(r)};case"LineString":return{type:e,coordinates:ea(r.points)};case"MultiLineString":case"Polygon":return{type:e,coordinates:r.map(i=>ea(i.points))};case"MultiPolygon":return{type:e,coordinates:r.map(i=>i.map(n=>ea(n.points)))}}}function ea(t){let e=[];for(let r=0;r=r&&s=i)return null;let l=[];for(let u of t){let h=n===0?u.minX:u.minY,c=n===0?u.maxX:u.maxY;if(h>=r&&c=i))switch(u.type){case"Point":case"MultiPoint":A2(u,l,r,i,n);continue;case"LineString":S2(u,l,r,i,n,o);continue;case"MultiLineString":E2(u,l,r,i,n);continue;case"Polygon":F2(u,l,r,i,n);continue;case"MultiPolygon":T2(u,l,r,i,n);continue}}return l.length?l:null}function A2(t,e,r,i,n){let a=[];if(k2(t.geometry,a,r,i,n),!a.length)return;let s=a.length===3?"Point":"MultiPoint";e.push(Ct(t.id,s,a,t.tags))}function S2(t,e,r,i,n,a){let s=[];if(Gd(t.geometry,s,r,i,n,!1,a.lineMetrics),s.length){if(a.lineMetrics){for(let o of s)e.push(Ct(t.id,"LineString",o,t.tags));return}if(s.length>1){e.push(Ct(t.id,"MultiLineString",s,t.tags));return}e.push(Ct(t.id,"LineString",s[0],t.tags))}}function E2(t,e,r,i,n){let a=[];if(eu(t.geometry,a,r,i,n,!1),a.length){if(a.length===1){e.push(Ct(t.id,"LineString",a[0],t.tags));return}e.push(Ct(t.id,"MultiLineString",a,t.tags))}}function F2(t,e,r,i,n){let a=[];eu(t.geometry,a,r,i,n,!0),a.length&&e.push(Ct(t.id,"Polygon",a,t.tags))}function T2(t,e,r,i,n){let a=[];for(let s of t.geometry){let o=[];eu(s,o,r,i,n,!0),o.length&&a.push(o)}a.length&&e.push(Ct(t.id,"MultiPolygon",a,t.tags))}function k2(t,e,r,i,n){for(let a=0;a=r&&s<=i&&Kr(e,t[a],t[a+1],t[a+2])}}function Gd(t,e,r,i,n,a,s){let o=vc(t),l=n===0?I2:C2,u=t.start,h,c;for(let g=0;gr&&(c=l(o,x,v,w,_,r),s&&(o.start=u+h*c)):A>i?S=r&&(c=l(o,x,v,w,_,r),T=!0),S>i&&A<=i&&(c=l(o,x,v,w,_,i),T=!0),!a&&T&&(s&&(o.end=u+h*c),e.push(o),o=vc(t)),s&&(u+=h)}let p=t.points.length-3,f=t.points[p],d=t.points[p+1],y=t.points[p+2],m=n===0?f:d;m>=r&&m<=i&&Kr(o.points,f,d,y),p=o.points.length-3,a&&p>=3&&(o.points[p]!==o.points[0]||o.points[p+1]!==o.points[1])&&Kr(o.points,o.points[0],o.points[1],o.points[2]),o.points.length&&(Kl(o),e.push(o))}function vc(t){return{points:[],size:t.size,start:t.start,end:t.end}}function eu(t,e,r,i,n,a){for(let s of t)Gd(s,e,r,i,n,a,!1)}function Kr(t,e,r,i){t.push(e,r,i)}function I2(t,e,r,i,n,a){let s=(a-e)/(i-e);return Kr(t.points,a,r+(n-r)*s,1),s}function C2(t,e,r,i,n,a){let s=(a-r)/(n-r);return Kr(t.points,e+(i-e)*s,a,1),s}function ru(t,e){let r=e.buffer/e.extent,i=t,n=Me(t,1,-1-r,r,0,-1,2,e),a=Me(t,1,1-r,2+r,0,-1,2,e);return!n&&!a||(i=Me(t,1,-r,1+r,0,-1,2,e)||[],n&&(i=bc(n,1).concat(i)),a&&(i=i.concat(bc(a,-1)))),i}function bc(t,e){let r=[];for(let i of t)switch(i.type){case"Point":case"MultiPoint":{let n=M2(i.geometry,e);r.push(Ct(i.id,i.type,n,i.tags));continue}case"LineString":{let n=Xs(i.geometry,e);r.push(Ct(i.id,i.type,n,i.tags));continue}case"MultiLineString":case"Polygon":{let n=[];for(let a of i.geometry)n.push(Xs(a,e));r.push(Ct(i.id,i.type,n,i.tags));continue}case"MultiPolygon":{let n=[];for(let a of i.geometry){let s=[];for(let o of a)s.push(Xs(o,e));n.push(s)}r.push(Ct(i.id,i.type,n,i.tags));continue}}return r}function M2(t,e){let r=[];for(let i=0;io.id));t=t.filter(o=>!s.has(o.id))}if(i.add.size){let s=Jl({type:"FeatureCollection",features:Array.from(i.add.values())},r);s=ru(s,r),n=n.concat(s),t=t.concat(s)}}if(i.update.size){let a=new Map,s=[];for(let o of t)i.update.has(o.id)?a.set(o.id,[...a.get(o.id)||[],o]):s.push(o);for(let[o,l]of i.update){let u=a.get(o);if(!u||u.length===0)continue;let h=P2(u,l,r);n=n.concat(u,h),s=s.concat(h)}t=s}return{affected:n,source:t}}function P2(t,e,r){var a,s;let i=!!e.newGeometry,n=e.removeAllProperties||((a=e.removeProperties)==null?void 0:a.length)>0||((s=e.addOrUpdateProperties)==null?void 0:s.length)>0;if(i){let o=t[0],l=Jl({type:"FeatureCollection",features:[{type:"Feature",id:o.id,geometry:e.newGeometry,properties:n?wc(o.tags,e):o.tags}]},r);return l=ru(l,r),l}if(n){let o=[];for(let l of t){let u=Xe({},l);u.tags=wc(u.tags,e),o.push(u)}return o}return t}function wc(t,e){if(e.removeAllProperties)return{};let r=Xe({},t||{});if(e.removeProperties)for(let i of e.removeProperties)delete r[i];if(e.addOrUpdateProperties)for(let{key:i,value:n}of e.addOrUpdateProperties)r[i]=n;return r}function z2(t,e){var r,i;return t?{removeAll:t.removeAll,remove:new Set(t.remove||[]),add:new Map((r=t.add)==null?void 0:r.map(n=>[e.promoteId?n.properties[e.promoteId]:n.id,n])),update:new Map((i=t.update)==null?void 0:i.map(n=>[n.id,n]))}:{remove:new Set,add:new Map,update:new Map}}var Dc=[Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array],yt=new Uint32Array(96),L2=class Xd{static from(e){if(!e||e.byteLength===void 0||e.buffer)throw Error("Data must be an instance of ArrayBuffer or SharedArrayBuffer.");let[r,i]=new Uint8Array(e,0,2);if(r!==219)throw Error("Data does not appear to be in a KDBush format.");let n=i>>4;if(n!==1)throw Error(`Got v${n} data when expected v1.`);let a=Dc[i&15];if(!a)throw Error("Unrecognized array type.");let[s]=new Uint16Array(e,2,1),[o]=new Uint32Array(e,4,1);return new Xd(o,s,a,void 0,e)}constructor(e,r=64,i=Float64Array,n=ArrayBuffer,a){if(isNaN(e)||e<0)throw Error(`Unexpected numItems value: ${e}.`);this.numItems=+e,this.nodeSize=Math.min(Math.max(+r,2),65535),this.ArrayType=i,this.IndexArrayType=e<65536?Uint16Array:Uint32Array;let s=Dc.indexOf(this.ArrayType),o=e*2*this.ArrayType.BYTES_PER_ELEMENT,l=e*this.IndexArrayType.BYTES_PER_ELEMENT,u=(8-l%8)%8;if(s<0)throw Error(`Unexpected typed array class: ${i}.`);if(a)this.data=a,this.ids=new this.IndexArrayType(a,8,e),this.coords=new i(a,8+l+u,e*2),this._pos=e*2,this._finished=!0;else{let h=this.data=new n(8+o+l+u);this.ids=new this.IndexArrayType(h,8,e),this.coords=new i(h,8+l+u,e*2),this._pos=0,this._finished=!1,new Uint8Array(h,0,2).set([219,16+s]),new Uint16Array(h,2,1)[0]=r,new Uint32Array(h,4,1)[0]=e}}add(e,r){let i=this._pos>>1;return this.ids[i]=i,this.coords[this._pos++]=e,this.coords[this._pos++]=r,i}finish(){let e=this._pos>>1;if(e!==this.numItems)throw Error(`Added ${e} items when expected ${this.numItems}.`);return Qo(this.ids,this.coords,this.nodeSize,0,this.numItems-1,0),this._finished=!0,this}range(e,r,i,n){if(!this._finished)throw Error("Data not yet indexed - call index.finish().");let{ids:a,coords:s,nodeSize:o}=this;yt[0]=0,yt[1]=a.length-1,yt[2]=0;let l=3,u=[];for(;l>0;){let h=yt[--l],c=yt[--l],p=yt[--l];if(c-p<=o){for(let m=p;m<=c;m++){let g=s[2*m],x=s[2*m+1];g>=e&&g<=i&&x>=r&&x<=n&&u.push(a[m])}continue}let f=p+c>>1,d=s[2*f],y=s[2*f+1];d>=e&&d<=i&&y>=r&&y<=n&&u.push(a[f]),(h===0?e<=d:r<=y)&&(yt[l++]=p,yt[l++]=f-1,yt[l++]=1-h),(h===0?i>=d:n>=y)&&(yt[l++]=f+1,yt[l++]=c,yt[l++]=1-h)}return u}within(e,r,i){let n=[];return this.withinInto(e,r,i,n),n}withinInto(e,r,i,n){if(!this._finished)throw Error("Data not yet indexed - call index.finish().");let{ids:a,coords:s,nodeSize:o}=this;yt[0]=0,yt[1]=a.length-1,yt[2]=0;let l=3,u=0,h=i*i;for(;l>0;){let c=yt[--l],p=yt[--l],f=yt[--l];if(p-f<=o){for(let g=f;g<=p;g++)_c(s[2*g],s[2*g+1],e,r)<=h&&(n[u++]=a[g]);continue}let d=f+p>>1,y=s[2*d],m=s[2*d+1];_c(y,m,e,r)<=h&&(n[u++]=a[d]),(c===0?e-i<=y:r-i<=m)&&(yt[l++]=f,yt[l++]=d-1,yt[l++]=1-c),(c===0?e+i>=y:r+i>=m)&&(yt[l++]=d+1,yt[l++]=p,yt[l++]=1-c)}return u}};function Qo(t,e,r,i,n,a){if(n-i<=r)return;let s=i+n>>1;Yd(t,e,s,i,n,a),Qo(t,e,r,i,s-1,1-a),Qo(t,e,r,s+1,n,1-a)}function Yd(t,e,r,i,n,a){for(;n>i;){if(n-i>600){let u=n-i+1,h=r-i+1,c=Math.log(u),p=.5*Math.exp(2*c/3),f=.5*Math.sqrt(c*p*(u-p)/u)*(h-u/2<0?-1:1);Yd(t,e,r,Math.max(i,Math.floor(r-h*p/u+f)),Math.min(n,Math.floor(r+(u-h)*p/u+f)),a)}let s=e[2*r+a],o=i,l=n;for(Li(t,e,i,r),e[2*n+a]>s&&Li(t,e,i,n);os;)l--}e[2*i+a]===s?Li(t,e,i,l):(l++,Li(t,e,l,n)),l<=r&&(i=l+1),r<=l&&(n=l-1)}}function Li(t,e,r,i){Ys(t,r,i),Ys(e,2*r,2*i),Ys(e,2*r+1,2*i+1)}function Ys(t,e,r){let i=t[e];t[e]=t[r],t[r]=i}function _c(t,e,r,i){let n=t-r,a=e-i;return n*n+a*a}var tl={minZoom:0,maxZoom:16,minPoints:2,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:t=>t},V2=class{constructor(t){this.options=Object.assign(Object.create(tl),t),this.trees=Array(this.options.maxZoom+1),this.stride=this.options.reduce?7:6,this.clusterProps=[],this.points=[]}load(t){let e=[];for(let r of t){if(!r.geometry)continue;let[i,n]=r.geometry.coordinates,[a,s]=[Zr(i),Hr(n)],o={id:r.id,type:"Point",geometry:[a,s],tags:r.properties};e.push(o)}this.createIndex(e)}initialize(t){let e=[];for(let r of t)r.type==="Point"&&e.push(r);this.createIndex(e)}updateIndex(t,e,r){this.options=Object.assign(Object.create(tl),r.clusterOptions),this.initialize(t)}createIndex(t){let{log:e,minZoom:r,maxZoom:i}=this.options;e&&console.time("total time");let n=`prepare ${t.length} points`;e&&console.time(n),this.points=t;let a=[];for(let o=0;o=r;o--){let l=Date.now();s=this.trees[o]=this.createTree(this.cluster(s,o)),e&&console.log("z%d: %d clusters in %dms",o,s.numItems,Date.now()-l)}e&&console.timeEnd("total time")}getClusters(t,e){return this.getClustersInternal(t,e).map(r=>Ca(r))}getClustersInternal(t,e){let r=((t[0]+180)%360+360)%360-180,i=Math.max(-90,Math.min(90,t[1])),n=t[2]===180?180:((t[2]+180)%360+360)%360-180,a=Math.max(-90,Math.min(90,t[3]));if(t[2]-t[0]>=360)r=-180,n=180;else if(r>n){let h=this.getClustersInternal([r,i,180,a],e),c=this.getClustersInternal([-180,i,n,a],e);return h.concat(c)}let s=this.trees[this.limitZoom(e)],o=s.range(Zr(r),Hr(a),Zr(n),Hr(i)),l=s.flatData,u=[];for(let h of o){let c=this.stride*h;u.push(l[c+5]>1?O2(l,c,this.clusterProps):this.points[l[c+3]])}return u}getChildren(t){let e=this.getOriginId(t),r=this.getOriginZoom(t),i=Error("No cluster with the specified id: "+t),n=this.trees[r];if(!n)throw i;let a=n.flatData;if(e*this.stride>=a.length)throw i;let s=this.options.radius/(this.options.extent*2**(r-1)),o=a[e*this.stride],l=a[e*this.stride+1],u=n.within(o,l,s),h=[];for(let c of u){let p=c*this.stride;a[p+4]===t&&h.push(a[p+5]>1?R2(a,p,this.clusterProps):Ca(this.points[a[p+3]]))}if(h.length===0)throw i;return h}getLeaves(t,e,r){e||(e=10),r||(r=0);let i=[];return this.appendLeaves(i,t,e,r,0),i}getTile(t,e,r){let i=this.trees[this.limitZoom(t)];if(!i)return null;let n=2**t,{extent:a,radius:s}=this.options,o=s/a,l=(r-o)/n,u=(r+1+o)/n,h={transformed:!0,features:[],source:null,x:e,y:r,z:t};return this.addTileFeatures(i.range((e-o)/n,l,(e+1+o)/n,u),i.flatData,e,r,n,h),e===0&&this.addTileFeatures(i.range(1-o/n,l,1,u),i.flatData,n,r,n,h),e===n-1&&this.addTileFeatures(i.range(0,l,o/n,u),i.flatData,-1,r,n,h),h}getClusterExpansionZoom(t){return this.getOriginZoom(t)}appendLeaves(t,e,r,i,n){let a=this.getChildren(e);for(let s of a){let o=s.properties;if(o!=null&&o.cluster?n+o.point_count<=i?n+=o.point_count:n=this.appendLeaves(t,o.cluster_id,r,i,n):n1,u,h,c;if(l)u=iu(e,o,this.clusterProps),h=e[o],c=e[o+1];else{let d=this.points[e[o+3]];u=d.tags,[h,c]=d.geometry}let p={type:1,geometry:[[Math.round(this.options.extent*(h*n-r)),Math.round(this.options.extent*(c*n-i))]],tags:u},f;f=l||this.options.generateId?e[o+3]:this.points[e[o+3]].id,f!==void 0&&(p.id=f),a.features.push(p)}}limitZoom(t){return Math.max(this.options.minZoom,Math.min(Math.floor(+t),this.options.maxZoom+1))}cluster(t,e){let{radius:r,extent:i,reduce:n,minPoints:a}=this.options,s=r/(i*2**e),o=t.flatData,l=[],u=this.stride;for(let h=0;he&&(y+=o[g+5])}if(y>d&&y>=a){let m=c*d,g=p*d,x,v=-1,b=((h/u|0)<<5)+(e+1)+this.points.length;for(let w of f){let _=w*u;if(o[_+2]<=e)continue;o[_+2]=e;let A=o[_+5];m+=o[_]*A,g+=o[_+1]*A,o[_+4]=b,n&&(x||(x=this.map(o,h,!0),v=this.clusterProps.length,this.clusterProps.push(x)),n(x,this.map(o,_)))}o[h+4]=b,l.push(m/y,g/y,1/0,b,-1,y),n&&l.push(v)}else{for(let m=0;m1)for(let m of f){let g=m*u;if(!(o[g+2]<=e)){o[g+2]=e;for(let x=0;x>5}getOriginZoom(t){return(t-this.points.length)%32}map(t,e,r){if(t[e+5]>1){let a=this.clusterProps[t[e+6]];return r?Object.assign({},a):a}let i=this.points[t[e+3]].tags,n=this.options.map(i);return r&&n===i?Object.assign({},n):n}};function O2(t,e,r){return{id:t[e+3],type:"Point",tags:iu(t,e,r),geometry:[t[e],t[e+1]]}}function R2(t,e,r){return{type:"Feature",id:t[e+3],properties:iu(t,e,r),geometry:{type:"Point",coordinates:[qd(t[e]),jd(t[e+1])]}}}function iu(t,e,r){let i=t[e+5],n=i>=1e4?`${Math.round(i/1e3)}k`:i>=1e3?`${Math.round(i/100)/10}k`:i,a=t[e+6],s=a===-1?{}:Object.assign({},r[a]);return Object.assign(s,{cluster:!0,cluster_id:t[e+3],point_count:i,point_count_abbreviated:n})}var Wd="geojsonvt_clip_start",Zd="geojsonvt_clip_end";function Ac(t,e,r,i,n){let a=e===n.maxZoom?0:n.tolerance/((1<0&&e.size<(n?s:i)){r.numPoints+=e.points.length/3;return}let o=[];for(let l=0;ls)&&(r.numSimplified++,o.push(e.points[l],e.points[l+1])),r.numPoints++;n&&G2(o,a),t.push(o)}function G2(t,e){let r=0;for(let i=0,n=t.length,a=n-2;i0===e)for(let i=0,n=t.length;i1&&(console.log("invalidating tiles"),console.time("invalidating")),this.invalidateTiles(e),r.debug>1&&console.timeEnd("invalidating");let[i,n,a]=[0,0,0],s=Ac(t,i,n,a,r);s.source=t;let o=ra(i,n,a);if(this.tiles[o]=s,this.tileCoords.push({z:i,x:n,y:a,id:o}),r.debug){let l=`z${i}`;this.stats[l]=(this.stats[l]||0)+1,this.total++}}getClusterExpansionZoom(t){return null}getChildren(t){return null}getLeaves(t,e,r){return null}getTile(t,e,r){let{extent:i,debug:n}=this.options,a=1<1&&console.log("drilling down to z%d-%d-%d",t,e,r);let o=t,l=e,u=r,h;for(;!h&&o>0;)o--,l>>=1,u>>=1,h=this.tiles[ra(o,l,u)];return!(h!=null&&h.source)||(n>1&&(console.log("found parent tile z%d-%d-%d",o,l,u),console.time("drilling down")),this.splitTile(h.source,o,l,u,t,e,r),n>1&&console.timeEnd("drilling down"),!this.tiles[s])?null:Sc(this.tiles[s],i)}splitTile(t,e,r,i,n,a,s){let o=[t,e,r,i],l=this.options,u=l.debug;for(;o.length;){i=o.pop(),r=o.pop(),e=o.pop(),t=o.pop();let h=1<1&&console.time("creation"),p=this.tiles[c]=Ac(t,e,r,i,l),this.tileCoords.push({z:e,x:r,y:i,id:c}),u)){u>1&&(console.log("tile z%d-%d-%d (features: %d, points: %d, simplified: %d)",e,r,i,p.numFeatures,p.numPoints,p.numSimplified),console.timeEnd("creation"));let A=`z${e}`;this.stats[A]=(this.stats[A]||0)+1,this.total++}if(p.source=t,n==null){if(e===l.indexMaxZoom||p.numPoints<=l.indexMaxPoints)continue}else{if(e===l.maxZoom||e===n)continue;if(n!=null){let A=n-e;if(r!==a>>A||i!==s>>A)continue}}if(p.source=null,!t.length)continue;u>1&&console.time("clipping");let f=.5*l.buffer/l.extent,d=.5-f,y=.5+f,m=1+f,g=null,x=null,v=null,b=null,w=Me(t,h,r-f,r+y,0,p.minX,p.maxX,l),_=Me(t,h,r+d,r+m,0,p.minX,p.maxX,l);w&&(g=Me(w,h,i-f,i+y,1,p.minY,p.maxY,l),x=Me(w,h,i+d,i+m,1,p.minY,p.maxY,l)),_&&(v=Me(_,h,i-f,i+y,1,p.minY,p.maxY,l),b=Me(_,h,i+d,i+m,1,p.minY,p.maxY,l)),u>1&&console.timeEnd("clipping"),o.push(g||[],e+1,r*2,i*2),o.push(x||[],e+1,r*2,i*2+1),o.push(v||[],e+1,r*2+1,i*2),o.push(b||[],e+1,r*2+1,i*2+1)}}invalidateTiles(t){if(!t.length)return;let e=this.options,{debug:r}=e,i=1/0,n=-1/0,a=1/0,s=-1/0;for(let u of t)i=Math.min(i,u.minX),n=Math.max(n,u.maxX),a=Math.min(a,u.minY),s=Math.max(s,u.maxY);let o=e.buffer/e.extent,l=new Set;for(let u in this.tiles){let h=this.tiles[u],c=1<=f||s=y)continue;let m=!1;for(let g of t)if(g.maxX>=p&&g.minX=d&&g.minY1&&console.log("invalidate tile z%d-%d-%d (features: %d, points: %d, simplified: %d)",h.z,h.x,h.y,h.numFeatures,h.numPoints,h.numSimplified);let g=`z${h.z}`;this.stats[g]=(this.stats[g]||0)-1,this.total--}delete this.tiles[u],l.add(u)}}l.size&&(this.tileCoords=this.tileCoords.filter(u=>!l.has(u.id)))}};function ra(t,e,r){return((1<24)throw Error("maxZoom should be in the 0-24 range");if(e.promoteId&&e.generateId)throw Error("promoteId and generateId cannot be used together.");let i=Jl(t,e);r&&(console.timeEnd("preprocess data"),console.log("index: maxZoom: %d, maxPoints: %d",e.indexMaxZoom,e.indexMaxPoints),console.time("generate tiles")),i=ru(i,e),e.updateable&&(this.source=i),this.initializeIndex(i,e)}initializeIndex(t,e){this.tileIndex=e.cluster?new V2(e.clusterOptions):new W2(e),t.length&&this.tileIndex.initialize(t)}getTile(t,e,r){return t=+t,e=+e,r=+r,t<0||t>24?null:this.tileIndex.getTile(t,e,r)}updateData(t,e){let r=this.options;if(!r.updateable)throw Error("to update tile geojson `updateable` option must be set to true");let{affected:i,source:n}=B2(this.source,t,r);e&&({affected:i,source:n}=this.filterUpdate(n,i,e)),i.length&&(this.source=n,this.tileIndex.updateIndex(n,i,r))}filterUpdate(t,e,r){let i=new Set;for(let n of t)n.id!=null&&(r(Ca(n))||(e.push(n),i.add(n.id)));return t=t.filter(n=>!i.has(n.id)),{affected:e,source:t}}getData(){if(!this.options.updateable)throw Error("to retrieve data the `updateable` option must be set to true");return D2(this.source)}updateClusterOptions(t,e){let r=this.options.cluster;if(this.options.cluster=t,this.options.clusterOptions=e,r==t){this.tileIndex.updateIndex(this.source,[],this.options);return}this.initializeIndex(this.source,this.options)}getClusterExpansionZoom(t){return this.tileIndex.getClusterExpansionZoom(t)}getClusterChildren(t){return this.tileIndex.getChildren(t)}getClusterLeaves(t,e,r){return this.tileIndex.getLeaves(t,e,r)}},el=Et([{name:"a_pos_normal",components:2,type:"Int16"},{name:"a_data",components:4,type:"Uint8"}],4),H2=el.members;el.size,el.alignment;var rl=Et([{name:"a_uv_x",components:1,type:"Float32"},{name:"a_split_index",components:1,type:"Float32"}]),K2=rl.members;rl.size,rl.alignment;var J2=Math.cos(75/2*(Math.PI/180)),Jd=1/2,Ec=2**14/Jd,Qd=class{constructor(t){this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map(e=>e.id),this.index=t.index,this.hasDependencies=!1,this.patternFeatures=[],this.lineClipsArray=[],this.gradients={};for(let e of this.layers)this.gradients[e.id]={};this.layoutVertexArray=new vg,this.layoutVertexArray2=new bg,this.indexArray=new En,this.programConfigurations=new Dr(t.layers,t.zoom),this.segments=new ie,this.maxLineLength=0,this.stateDependentLayerIds=this.layers.filter(e=>e.isStateDependent()).map(e=>e.id)}populate(t,e,r){this.hasDependencies=Fa("line",this.layers,e)||this.hasLineDasharray(this.layers);let i=this.layers[0].layout.get("line-sort-key"),n=!i.isConstant(),a=[],s=new st(this.zoom),o=this.layers[0]._featureFilter.needGeometry;for(let{feature:l,id:u,index:h,sourceLayerIndex:c}of t){let p=hi(l,o);if(!this.layers[0]._featureFilter.filter(s,p,r))continue;let f=n?i.evaluate(p,{},r):void 0,d={id:u,properties:l.properties,type:l.type,sourceLayerIndex:c,index:h,geometry:o?p.geometry:Fr(l),patterns:{},dashes:{},sortKey:f};a.push(d)}n&&a.sort((l,u)=>l.sortKey-u.sortKey);for(let l of a){let{geometry:u,index:h,sourceLayerIndex:c}=l;this.hasDependencies?(Fa("line",this.layers,e)?Wl("line",this.layers,l,{zoom:this.zoom},e):this.hasLineDasharray(this.layers)&&this.addLineDashDependencies(this.layers,l,this.zoom,e),this.patternFeatures.push(l)):this.addFeature(l,u,h,r,{},{},e.subdivisionGranularity);let p=t[h].feature;e.featureIndex.insert(p,u,h,c,this.index)}}update(t,e,r,i){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(t,e,this.stateDependentLayers,{imagePositions:r,dashPositions:i})}addFeatures({options:t,canonical:e,patternPositions:r,dashPositions:i}){for(let n of this.patternFeatures)this.addFeature(n,n.geometry,n.index,e,r,i,t.subdivisionGranularity)}isEmpty(){return this.layoutVertexArray.length===0}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(t){this.uploaded||(this.layoutVertexArray2.length!==0&&(this.layoutVertexBuffer2=t.createVertexBuffer(this.layoutVertexArray2,K2)),this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,H2),this.indexBuffer=t.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(t),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())}lineFeatureClips(t){if(t.properties&&Object.hasOwn(t.properties,"geojsonvt_clip_start")&&Object.hasOwn(t.properties,"geojsonvt_clip_end"))return{start:+t.properties[Wd],end:+t.properties[Zd]}}addFeature(t,e,r,i,n,a,s){let o=this.layers[0].layout,l=o.get("line-join").evaluate(t,{}),u=o.get("line-cap").evaluate(t,{}),h=o.get("line-miter-limit").evaluate(t,{}),c=o.get("line-round-limit").evaluate(t,{});this.lineClips=this.lineFeatureClips(t);for(let p of e)this.addLine(p,t,l,u,h,c,i,s);this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,t,r,{imagePositions:n,dashPositions:a,canonical:i})}addLine(t,e,r,i,n,a,s,o){this.distance=0,this.scaledDistance=0,this.totalDistance=0;let l=s?o.line.getGranularityForZoomLevel(s.z):1;if(t=yr(t,l),this.lineClips){this.lineClipsArray.push(this.lineClips);for(let v=0;v=2&&t[h-1].equals(t[h-2]);)h--;let c=0;for(;c0;if(T&&v>c){let V=d.dist(y);if(V>2*p){let F=d.sub(d.sub(y)._mult(p/V)._round());this.updateDistance(y,F),this.addCurrentVertex(F,g,0,0,f),y=F}}let O=y&&m,B=O?r:u?"butt":i;if(O&&B==="round"&&(An&&(B="bevel"),B==="bevel"&&(A>2&&(B="flipbevel"),A100)b=x.mult(-1);else{let V=A*g.add(x).mag()/g.sub(x).mag();b._perp()._mult(V*(L?-1:1))}this.addCurrentVertex(d,b,0,0,f),this.addCurrentVertex(d,b.mult(-1),0,0,f)}else if(B==="bevel"||B==="fakeround"){let V=-Math.sqrt(A*A-1),F=L?V:0,$=L?0:V;if(y&&this.addCurrentVertex(d,g,F,$,f),B==="fakeround"){let G=Math.round(S*180/Math.PI/20);for(let P=1;P2*p){let F=d.add(m.sub(d)._mult(p/V)._round());this.updateDistance(d,F),this.addCurrentVertex(F,x,0,0,f),d=F}}}}addCurrentVertex(t,e,r,i,n,a=!1){let s=e.x+e.y*r,o=e.y-e.x*r,l=-e.x+e.y*i,u=-e.y-e.x*i;this.addHalfVertex(t,s,o,a,!1,r,n),this.addHalfVertex(t,l,u,a,!0,-i,n),this.distance>Ec/2&&this.totalDistance===0&&(this.distance=0,this.updateScaledDistance(),this.addCurrentVertex(t,e,r,i,n,a))}addHalfVertex({x:t,y:e},r,i,n,a,s,o){let l=(this.lineClips?this.scaledDistance*(Ec-1):this.scaledDistance)*Jd;if(this.layoutVertexArray.emplaceBack((t<<1)+ +!!n,(e<<1)+ +!!a,Math.round(63*r)+128,Math.round(63*i)+128,(s===0?0:s<0?-1:1)+1|(l&63)<<2,l>>6),this.lineClips){let h=(this.scaledDistance-this.lineClips.start)/(this.lineClips.end-this.lineClips.start);this.layoutVertexArray2.emplaceBack(h,this.lineClipsArray.length)}let u=o.vertexLength++;this.e1>=0&&this.e2>=0&&(this.indexArray.emplaceBack(this.e1,u,this.e2),o.primitiveLength++),a?this.e2=u:this.e1=u}updateScaledDistance(){this.scaledDistance=this.lineClips?this.lineClips.start+(this.lineClips.end-this.lineClips.start)*this.distance/this.totalDistance:this.distance}updateDistance(t,e){this.distance+=t.dist(e),this.updateScaledDistance()}hasLineDasharray(t){for(let e of t){let r=e.paint.get("line-dasharray");if(r&&!r.isConstant())return!0}return!1}addLineDashDependencies(t,e,r,i){for(let n of t){let a=n.paint.get("line-dasharray");if(!a||a.value.kind==="constant")continue;let s=n.layout.get("line-cap").evaluate(e,{})==="round",o={dasharray:a.value.evaluate({zoom:r-1},e,{}),round:s},l={dasharray:a.value.evaluate({zoom:r},e,{}),round:s},u={dasharray:a.value.evaluate({zoom:r+1},e,{}),round:s},h=`${o.dasharray.join(",")},${o.round}`,c=`${l.dasharray.join(",")},${l.round}`,p=`${u.dasharray.join(",")},${u.round}`;i.dashDependencies[h]=o,i.dashDependencies[c]=l,i.dashDependencies[p]=u,e.dashes[n.id]={min:h,mid:c,max:p}}}};C("LineBucket",Qd,{omit:["layers","patternFeatures"]});var Fc,Q2=()=>Fc||(Fc=new Yt({"line-cap":new U(D.layout_line["line-cap"],"line-cap"),"line-join":new U(D.layout_line["line-join"],"line-join"),"line-miter-limit":new U(D.layout_line["line-miter-limit"],"line-miter-limit"),"line-round-limit":new U(D.layout_line["line-round-limit"],"line-round-limit"),"line-sort-key":new U(D.layout_line["line-sort-key"],"line-sort-key")})),Tc,tv=()=>Tc||(Tc=new Yt({"line-opacity":new U(D.paint_line["line-opacity"],"line-opacity"),"line-layer-opacity":new R(D.paint_line["line-layer-opacity"],"line-layer-opacity"),"line-color":new U(D.paint_line["line-color"],"line-color"),"line-translate":new R(D.paint_line["line-translate"],"line-translate"),"line-translate-anchor":new R(D.paint_line["line-translate-anchor"],"line-translate-anchor"),"line-width":new U(D.paint_line["line-width"],"line-width"),"line-gap-width":new U(D.paint_line["line-gap-width"],"line-gap-width"),"line-offset":new U(D.paint_line["line-offset"],"line-offset"),"line-blur":new U(D.paint_line["line-blur"],"line-blur"),"line-dasharray":new cn(D.paint_line["line-dasharray"],"line-dasharray"),"line-pattern":new cn(D.paint_line["line-pattern"],"line-pattern"),"line-gradient":new Za(D.paint_line["line-gradient"],"line-gradient")})),kc={get paint(){return tv()},get layout(){return Q2()}},ev=class extends U{possiblyEvaluate(t,e){return e=new st(Math.floor(e.zoom),{now:e.now,fadeDuration:e.fadeDuration,zoomHistory:e.zoomHistory,transition:e.transition}),super.possiblyEvaluate(t,e)}evaluate(t,e,r,i){return e=Xt({},e,{zoom:Math.floor(e.zoom)}),super.evaluate(t,e,r,i)}},ia;var rv=class extends ye{constructor(t,e){super(t,kc,e),this.gradientVersion=0,ia||(ia=new ev(kc.paint.properties["line-width"].specification,"line-floorwidth"),ia.useIntegerZoom=!0)}_handleSpecialPaintPropertyUpdate(t){if(t==="line-gradient"){let e=this.gradientExpression();this.stepInterpolant=Im(e)?e._styleExpression.expression instanceof Dl:!1,this.gradientVersion=(this.gradientVersion+1)%(2**53-1)}}gradientExpression(){return this._transitionablePaint._values["line-gradient"].value.expression}recalculate(t,e){super.recalculate(t,e),this.paint._values["line-floorwidth"]=ia.possiblyEvaluate(this._transitioningPaint._values["line-width"].value,t)}createBucket(t){return new Qd(t)}queryRadius(t){let e=t,r=Ic(Wr("line-width",this,e),Wr("line-gap-width",this,e)),i=Wr("line-offset",this,e);return r/2+Math.abs(i)+Ka(this.paint.get("line-translate"))}queryIntersectsFeature({queryGeometry:t,feature:e,featureState:r,geometry:i,transform:n,pixelsToTileUnits:a}){let s=Ja(t,this.paint.get("line-translate"),this.paint.get("line-translate-anchor"),-n.bearingInRadians,a),o=a/2*Ic(this.paint.get("line-width").evaluate(e,r),this.paint.get("line-gap-width").evaluate(e,r)),l=this.paint.get("line-offset").evaluate(e,r);return l&&(i=Ug(i,l*a)),Lg(s,i,o)}isTileClipped(){return!0}};function Ic(t,e){return e>0?e+2*t:t}var iv=Et([{name:"a_pos_offset",components:4,type:"Int16"},{name:"a_data",components:4,type:"Uint16"},{name:"a_pixeloffset",components:4,type:"Int16"},{name:"a_height_offset",components:1,type:"Float32"}],4),nv=Et([{name:"a_projected_pos",components:3,type:"Float32"}],4);Et([{name:"a_fade_opacity",components:1,type:"Uint32"}],4);var av=Et([{name:"a_placed",components:2,type:"Uint8"},{name:"a_shift",components:2,type:"Float32"},{name:"a_box_real",components:2,type:"Int16"}]);Et([{type:"Int16",name:"anchorPointX"},{type:"Int16",name:"anchorPointY"},{type:"Int16",name:"x1"},{type:"Int16",name:"y1"},{type:"Int16",name:"x2"},{type:"Int16",name:"y2"},{type:"Uint32",name:"featureIndex"},{type:"Uint16",name:"sourceLayerIndex"},{type:"Uint16",name:"bucketIndex"}]);var Cc=Et([{name:"a_pos",components:2,type:"Int16"},{name:"a_anchor_pos",components:2,type:"Int16"},{name:"a_extrude",components:2,type:"Int16"}],4),S5=Et([{name:"a_pos",components:2,type:"Float32"},{name:"a_radius",components:1,type:"Float32"},{name:"a_flags",components:2,type:"Int16"}],4);Et([{name:"triangle",components:3,type:"Uint16"}]),Et([{type:"Int16",name:"anchorX"},{type:"Int16",name:"anchorY"},{type:"Uint16",name:"glyphStartIndex"},{type:"Uint16",name:"numGlyphs"},{type:"Uint32",name:"vertexStartIndex"},{type:"Uint32",name:"lineStartIndex"},{type:"Uint32",name:"lineLength"},{type:"Uint16",name:"segment"},{type:"Uint16",name:"lowerSize"},{type:"Uint16",name:"upperSize"},{type:"Float32",name:"lineOffsetX"},{type:"Float32",name:"lineOffsetY"},{type:"Uint8",name:"writingMode"},{type:"Uint8",name:"placedOrientation"},{type:"Uint8",name:"hidden"},{type:"Uint32",name:"crossTileID"},{type:"Int16",name:"associatedIconIndex"},{type:"Float32",name:"heightOffset"}]),Et([{type:"Int16",name:"anchorX"},{type:"Int16",name:"anchorY"},{type:"Int16",name:"rightJustifiedTextSymbolIndex"},{type:"Int16",name:"centerJustifiedTextSymbolIndex"},{type:"Int16",name:"leftJustifiedTextSymbolIndex"},{type:"Int16",name:"verticalPlacedTextSymbolIndex"},{type:"Int16",name:"placedIconSymbolIndex"},{type:"Int16",name:"verticalPlacedIconSymbolIndex"},{type:"Uint16",name:"key"},{type:"Uint16",name:"textBoxStartIndex"},{type:"Uint16",name:"textBoxEndIndex"},{type:"Uint16",name:"verticalTextBoxStartIndex"},{type:"Uint16",name:"verticalTextBoxEndIndex"},{type:"Uint16",name:"iconBoxStartIndex"},{type:"Uint16",name:"iconBoxEndIndex"},{type:"Uint16",name:"verticalIconBoxStartIndex"},{type:"Uint16",name:"verticalIconBoxEndIndex"},{type:"Uint16",name:"featureIndex"},{type:"Uint16",name:"numHorizontalGlyphVertices"},{type:"Uint16",name:"numVerticalGlyphVertices"},{type:"Uint16",name:"numIconVertices"},{type:"Uint16",name:"numVerticalIconVertices"},{type:"Uint16",name:"useRuntimeCollisionCircles"},{type:"Uint32",name:"crossTileID"},{type:"Float32",name:"textBoxScale"},{type:"Float32",name:"collisionCircleDiameter"},{type:"Uint16",name:"textAnchorOffsetStartIndex"},{type:"Uint16",name:"textAnchorOffsetEndIndex"},{type:"Float32",name:"heightOffset"}]),Et([{type:"Float32",name:"offsetX"}]),Et([{type:"Int16",name:"x"},{type:"Int16",name:"y"},{type:"Int16",name:"tileUnitDistanceFromAnchor"}]),Et([{type:"Uint16",name:"textAnchor"},{type:"Float32",components:2,name:"textOffset"}]);var Ar=new class{constructor(){this.TIMEOUT=5e3,this.applyArabicShaping=null,this.processBidirectionalText=null,this.processStyledBidirectionalText=null,this.pluginStatus="unavailable",this.pluginURL=null,this.loadScriptResolve=()=>{}}setState(t){this.pluginStatus=t.pluginStatus,this.pluginURL=t.pluginURL}getState(){return{pluginStatus:this.pluginStatus,pluginURL:this.pluginURL}}setMethods(t){if(Ar.isParsed())throw Error("RTL text plugin already registered.");this.applyArabicShaping=t.applyArabicShaping,this.processBidirectionalText=t.processBidirectionalText,this.processStyledBidirectionalText=t.processStyledBidirectionalText,this.loadScriptResolve()}isParsed(){return this.applyArabicShaping!=null&&this.processBidirectionalText!=null&&this.processStyledBidirectionalText!=null}getRTLTextPluginStatus(){return this.pluginStatus}syncState(t,e){return et(this,null,function*(){if(this.isParsed())return this.getState();if(t.pluginStatus!=="loading")return this.setState(t),t;let r=t.pluginURL,i=new Promise(a=>{this.loadScriptResolve=a}),n=new Promise(a=>setTimeout(()=>a(),this.TIMEOUT));if(yield e(r),yield Promise.race([i,n]),this.isParsed()){let a={pluginStatus:"loaded",pluginURL:r};return this.setState(a),a}throw this.setState({pluginStatus:"error",pluginURL:""}),Error(`RTL Text Plugin failed to import scripts from ${r}`)})}};function sv(t){return/[\\u0600-\\u0604\\u0606-\\u060B\\u060D-\\u061A\\u061C-\\u061E\\u0620-\\u063F\\u0641-\\u064A\\u0656-\\u066F\\u0671-\\u06DC\\u06DE-\\u070D\\u070F-\\u074A\\u074D-\\u077F\\u07C0-\\u07FA\\u07FD-\\u07FF\\u0840-\\u085B\\u085E\\u0860-\\u086A\\u0870-\\u0891\\u0897-\\u08E1\\u08E3-\\u08FF\\u1800\\u1801\\u1804\\u1806-\\u1819\\u1820-\\u1878\\u1880-\\u18AA\\uA840-\\uA877\\uFB50-\\uFD3D\\uFD40-\\uFDCF\\uFDF0-\\uFDFF\\uFE70-\\uFE74\\uFE76-\\uFEFC]|\\uD802[\\uDEC0-\\uDEE6\\uDEEB-\\uDEF6\\uDF80-\\uDF91\\uDF99-\\uDF9C\\uDFA9-\\uDFAF]|\\uD803[\\uDD00-\\uDD27\\uDD30-\\uDD39\\uDE60-\\uDE7E\\uDEC2-\\uDEC7\\uDED0-\\uDED8\\uDEFA-\\uDEFF\\uDF30-\\uDF59\\uDF70-\\uDF89\\uDFB0-\\uDFCB]|\\uD805[\\uDE60-\\uDE6C]|\\uD82F[\\uDC00-\\uDC6A\\uDC70-\\uDC7C\\uDC80-\\uDC88\\uDC90-\\uDC99\\uDC9C-\\uDC9F]|\\uD83A[\\uDD00-\\uDD4B\\uDD50-\\uDD59\\uDD5E\\uDD5F]|\\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\\uDEF0\\uDEF1]/gim.test(String.fromCodePoint(t))}function ov(t){return/[\\u0591-\\u05C7\\u05D0-\\u05EA\\u05EF-\\u05F4\\u0600-\\u0604\\u0606-\\u060B\\u060D-\\u061A\\u061C-\\u061E\\u0620-\\u063F\\u0641-\\u064A\\u0656-\\u066F\\u0671-\\u06DC\\u06DE-\\u070D\\u070F-\\u074A\\u074D-\\u07B1\\u07C0-\\u07FA\\u07FD-\\u082D\\u0830-\\u083E\\u0840-\\u085B\\u085E\\u0860-\\u086A\\u0870-\\u0891\\u0897-\\u08E1\\u08E3-\\u08FF\\uFB1D-\\uFB36\\uFB38-\\uFB3C\\uFB3E\\uFB40\\uFB41\\uFB43\\uFB44\\uFB46-\\uFD3D\\uFD40-\\uFDCF\\uFDF0-\\uFDFF\\uFE70-\\uFE74\\uFE76-\\uFEFC]|\\uD802[\\uDC00-\\uDC05\\uDC08\\uDC0A-\\uDC35\\uDC37\\uDC38\\uDC3C\\uDC3F-\\uDC55\\uDC57-\\uDC9E\\uDCA7-\\uDCAF\\uDCE0-\\uDCF2\\uDCF4\\uDCF5\\uDCFB-\\uDD1B\\uDD1F-\\uDD39\\uDD3F-\\uDD59\\uDD80-\\uDDB7\\uDDBC-\\uDDCF\\uDDD2-\\uDE03\\uDE05\\uDE06\\uDE0C-\\uDE13\\uDE15-\\uDE17\\uDE19-\\uDE35\\uDE38-\\uDE3A\\uDE3F-\\uDE48\\uDE50-\\uDE58\\uDE60-\\uDE9F\\uDEC0-\\uDEE6\\uDEEB-\\uDEF6\\uDF00-\\uDF35\\uDF39-\\uDF55\\uDF58-\\uDF72\\uDF78-\\uDF91\\uDF99-\\uDF9C\\uDFA9-\\uDFAF]|\\uD803[\\uDC00-\\uDC48\\uDC80-\\uDCB2\\uDCC0-\\uDCF2\\uDCFA-\\uDD27\\uDD30-\\uDD39\\uDD40-\\uDD65\\uDD69-\\uDD85\\uDD8E\\uDD8F\\uDE60-\\uDE7E\\uDE80-\\uDEA9\\uDEAB-\\uDEAD\\uDEB0\\uDEB1\\uDEC2-\\uDEC7\\uDED0-\\uDED8\\uDEFA-\\uDF27\\uDF30-\\uDF59\\uDF70-\\uDF89\\uDFB0-\\uDFCB\\uDFE0-\\uDFF6]|\\uD83A[\\uDC00-\\uDCC4\\uDCC7-\\uDCD6\\uDD00-\\uDD4B\\uDD50-\\uDD59\\uDD5E\\uDD5F]|\\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\\uDEF0\\uDEF1]/gim.test(String.fromCodePoint(t))}function lv(t){return/[\\u02EA\\u02EB\\u2E80-\\u2FDF\\u2FF0-\\u303F\\u3041-\\u3096\\u309D-\\u309F\\u30A1-\\u30FA\\u30FD-\\u30FF\\u3105-\\u312F\\u31A0-\\u4DBF\\u4E00-\\uA48C\\uA490-\\uA4C6\\uF900-\\uFA6D\\uFA70-\\uFAD9\\uFE10-\\uFE1F\\uFE30-\\uFE4F\\uFF00-\\uFFEF]|\\uD81B[\\uDFE0-\\uDFFF]|[\\uD81C-\\uD822\\uD840-\\uD868\\uD86A-\\uD86D\\uD86F-\\uD872\\uD874-\\uD879\\uD880-\\uD883\\uD885-\\uD88C][\\uDC00-\\uDFFF]|\\uD823[\\uDC00-\\uDCD5\\uDCFF-\\uDD1E\\uDD80-\\uDDF2]|\\uD82B[\\uDFF0-\\uDFFF]|\\uD82C[\\uDC00-\\uDEFB]|\\uD83C[\\uDE00-\\uDEFF]|\\uD869[\\uDC00-\\uDEDF\\uDF00-\\uDFFF]|\\uD86E[\\uDC00-\\uDC1D\\uDC20-\\uDFFF]|\\uD873[\\uDC00-\\uDEAD\\uDEB0-\\uDFFF]|\\uD87A[\\uDC00-\\uDFE0\\uDFF0-\\uDFFF]|\\uD87B[\\uDC00-\\uDE5D]|\\uD87E[\\uDC00-\\uDE1D]|\\uD884[\\uDC00-\\uDF4A\\uDF50-\\uDFFF]|\\uD88D[\\uDC00-\\uDC79]/gim.test(String.fromCodePoint(t))}function ts(t){return/[\\u02EA\\u02EB\\u1100-\\u11FF\\u1401-\\u167F\\u18B0-\\u18FF\\u2065\\u20DD-\\u20E0\\u20E2-\\u20E4\\u2B97\\u2BF0-\\u2BFF\\u2E50\\u2E51\\u2E80-\\u3007\\u3012\\u3013\\u3020-\\u302F\\u3031-\\u30FB\\u30FD-\\uA4CF\\uA960-\\uA97F\\uAC00-\\uD7FF\\uF900-\\uFAFF\\uFE10-\\uFE1F\\uFE30-\\uFE48\\uFE50-\\uFE57\\uFE5F-\\uFE62\\uFE67-\\uFE6F\\uFF00-\\uFF07\\uFF0A-\\uFF0C\\uFF0E-\\uFF19\\uFF1F-\\uFF3A\\uFF3C\\uFF3E\\uFF40-\\uFF5A\\uFFE0-\\uFFE2\\uFFE4-\\uFFE7\\uFFF0-\\uFFF8]|\\uD802[\\uDD80-\\uDD9F]|\\uD805[\\uDD80-\\uDDFF]|\\uD806[\\uDE00-\\uDEBF]|[\\uD80C-\\uD810\\uD81C-\\uD822\\uD83C\\uD83D\\uD840-\\uD87E\\uD880-\\uD8BE][\\uDC00-\\uDFFF]|\\uD811[\\uDC00-\\uDE7F]|\\uD81B[\\uDFE0-\\uDFFF]|\\uD823[\\uDC00-\\uDDFF]|\\uD82B[\\uDFF0-\\uDFFF]|\\uD82C[\\uDC00-\\uDEFF]|\\uD833[\\uDEC0-\\uDFCF]|\\uD834[\\uDC00-\\uDDFF\\uDEE0-\\uDF7F]|\\uD836[\\uDC00-\\uDEAF]|\\uD83E[\\uDD00-\\uDEFF]|[\\uD87F\\uD8BF][\\uDC00-\\uDFFD]/gim.test(String.fromCodePoint(t))}function uv(t){return/[\\xA7\\xA9\\xAE\\xB1\\xBC-\\xBE\\xD7\\xF7\\u2016\\u2020\\u2021\\u2030\\u2031\\u203B\\u203C\\u2042\\u2047-\\u2049\\u2051\\u2100-\\u218F\\u221E\\u2234\\u2235\\u2300-\\u2307\\u230C-\\u231F\\u2324-\\u2328\\u232B\\u237D-\\u239A\\u23BE-\\u23CD\\u23CF\\u23D1-\\u23DB\\u23E2-\\u2422\\u2424-\\u24FF\\u25A0-\\u2619\\u2620-\\u2767\\u2776-\\u2793\\u2B12-\\u2B2F\\u2B50-\\u2B59\\u2BB8-\\u2BEB\\u3000-\\u303F\\u30A0-\\u30FF\\uE000-\\uF8FF\\uFE30-\\uFE6F\\uFF00-\\uFFEF\\uFFFC\\uFFFD]|[\\uDB80-\\uDBFF][\\uDC00-\\uDFFF]/gim.test(String.fromCodePoint(t))}function hv(t){return/[\\r\\u0300-\\u036F\\u0483-\\u0489\\u0591-\\u05BD\\u05BF\\u05C1\\u05C2\\u05C4\\u05C5\\u05C7\\u0600-\\u0605\\u0610-\\u061A\\u064B-\\u065F\\u0670\\u06D6-\\u06DD\\u06DF-\\u06E4\\u06E7\\u06E8\\u06EA-\\u06ED\\u070F\\u0711\\u0730-\\u074A\\u07A6-\\u07B0\\u07EB-\\u07F3\\u07FD\\u0816-\\u0819\\u081B-\\u0823\\u0825-\\u0827\\u0829-\\u082D\\u0859-\\u085B\\u0890\\u0891\\u0897-\\u089F\\u08CA-\\u0903\\u093A-\\u093C\\u093E-\\u094F\\u0951-\\u0957\\u0962\\u0963\\u0981-\\u0983\\u09BC\\u09BE-\\u09C4\\u09C7\\u09C8\\u09CB-\\u09CD\\u09D7\\u09E2\\u09E3\\u09FE\\u0A01-\\u0A03\\u0A3C\\u0A3E-\\u0A42\\u0A47\\u0A48\\u0A4B-\\u0A4D\\u0A51\\u0A70\\u0A71\\u0A75\\u0A81-\\u0A83\\u0ABC\\u0ABE-\\u0AC5\\u0AC7-\\u0AC9\\u0ACB-\\u0ACD\\u0AE2\\u0AE3\\u0AFA-\\u0AFF\\u0B01-\\u0B03\\u0B3C\\u0B3E-\\u0B44\\u0B47\\u0B48\\u0B4B-\\u0B4D\\u0B55-\\u0B57\\u0B62\\u0B63\\u0B82\\u0BBE-\\u0BC2\\u0BC6-\\u0BC8\\u0BCA-\\u0BCD\\u0BD7\\u0C00-\\u0C04\\u0C3C\\u0C3E-\\u0C44\\u0C46-\\u0C48\\u0C4A-\\u0C4D\\u0C55\\u0C56\\u0C62\\u0C63\\u0C81-\\u0C83\\u0CBC\\u0CBE-\\u0CC4\\u0CC6-\\u0CC8\\u0CCA-\\u0CCD\\u0CD5\\u0CD6\\u0CE2\\u0CE3\\u0CF3\\u0D00-\\u0D03\\u0D3B\\u0D3C\\u0D3E-\\u0D44\\u0D46-\\u0D48\\u0D4A-\\u0D4E\\u0D57\\u0D62\\u0D63\\u0D81-\\u0D83\\u0DCA\\u0DCF-\\u0DD4\\u0DD6\\u0DD8-\\u0DDF\\u0DF2\\u0DF3\\u0E31\\u0E33-\\u0E3A\\u0E47-\\u0E4E\\u0EB1\\u0EB3-\\u0EBC\\u0EC8-\\u0ECE\\u0F18\\u0F19\\u0F35\\u0F37\\u0F39\\u0F3E\\u0F3F\\u0F71-\\u0F84\\u0F86\\u0F87\\u0F8D-\\u0F97\\u0F99-\\u0FBC\\u0FC6\\u102D-\\u1037\\u1039-\\u103E\\u1056-\\u1059\\u105E-\\u1060\\u1071-\\u1074\\u1082\\u1084-\\u1086\\u108D\\u109D\\u1100-\\u11FF\\u135D-\\u135F\\u1712-\\u1715\\u1732-\\u1734\\u1752\\u1753\\u1772\\u1773\\u17B4-\\u17D3\\u17DD\\u180B-\\u180D\\u180F\\u1885\\u1886\\u18A9\\u1920-\\u192B\\u1930-\\u193B\\u1A17-\\u1A1B\\u1A55-\\u1A5E\\u1A60\\u1A62\\u1A65-\\u1A7C\\u1A7F\\u1AB0-\\u1ADD\\u1AE0-\\u1AEB\\u1B00-\\u1B04\\u1B34-\\u1B44\\u1B6B-\\u1B73\\u1B80-\\u1B82\\u1BA1-\\u1BAD\\u1BE6-\\u1BF3\\u1C24-\\u1C37\\u1CD0-\\u1CD2\\u1CD4-\\u1CE8\\u1CED\\u1CF4\\u1CF7-\\u1CF9\\u1DC0-\\u1DFF\\u200C\\u200D\\u20D0-\\u20F0\\u2CEF-\\u2CF1\\u2D7F\\u2DE0-\\u2DFF\\u302A-\\u302F\\u3099\\u309A\\uA66F-\\uA672\\uA674-\\uA67D\\uA69E\\uA69F\\uA6F0\\uA6F1\\uA802\\uA806\\uA80B\\uA823-\\uA827\\uA82C\\uA880\\uA881\\uA8B4-\\uA8C5\\uA8E0-\\uA8F1\\uA8FF\\uA926-\\uA92D\\uA947-\\uA953\\uA960-\\uA97C\\uA980-\\uA983\\uA9B3-\\uA9C0\\uA9E5\\uAA29-\\uAA36\\uAA43\\uAA4C\\uAA4D\\uAA7C\\uAAB0\\uAAB2-\\uAAB4\\uAAB7\\uAAB8\\uAABE\\uAABF\\uAAC1\\uAAEB-\\uAAEF\\uAAF5\\uAAF6\\uABE3-\\uABEA\\uABEC\\uABED\\uAC00-\\uD7A3\\uD7B0-\\uD7C6\\uD7CB-\\uD7FB\\uFB1E\\uFE00-\\uFE0F\\uFE20-\\uFE2F\\uFF9E\\uFF9F]|\\uD800[\\uDDFD\\uDEE0\\uDF76-\\uDF7A]|\\uD802[\\uDE01-\\uDE03\\uDE05\\uDE06\\uDE0C-\\uDE0F\\uDE38-\\uDE3A\\uDE3F\\uDEE5\\uDEE6]|\\uD803[\\uDD24-\\uDD27\\uDD69-\\uDD6D\\uDEAB\\uDEAC\\uDEFA-\\uDEFF\\uDF46-\\uDF50\\uDF82-\\uDF85]|\\uD804[\\uDC00-\\uDC02\\uDC38-\\uDC46\\uDC70\\uDC73\\uDC74\\uDC7F-\\uDC82\\uDCB0-\\uDCBA\\uDCBD\\uDCC2\\uDCCD\\uDD00-\\uDD02\\uDD27-\\uDD34\\uDD45\\uDD46\\uDD73\\uDD80-\\uDD82\\uDDB3-\\uDDC0\\uDDC2\\uDDC3\\uDDC9-\\uDDCC\\uDDCE\\uDDCF\\uDE2C-\\uDE37\\uDE3E\\uDE41\\uDEDF-\\uDEEA\\uDF00-\\uDF03\\uDF3B\\uDF3C\\uDF3E-\\uDF44\\uDF47\\uDF48\\uDF4B-\\uDF4D\\uDF57\\uDF62\\uDF63\\uDF66-\\uDF6C\\uDF70-\\uDF74\\uDFB8-\\uDFC0\\uDFC2\\uDFC5\\uDFC7-\\uDFCA\\uDFCC-\\uDFD2\\uDFE1\\uDFE2]|\\uD805[\\uDC35-\\uDC46\\uDC5E\\uDCB0-\\uDCC3\\uDDAF-\\uDDB5\\uDDB8-\\uDDC0\\uDDDC\\uDDDD\\uDE30-\\uDE40\\uDEAB-\\uDEB7\\uDF1D-\\uDF1F\\uDF22-\\uDF2B]|\\uD806[\\uDC2C-\\uDC3A\\uDD30-\\uDD35\\uDD37\\uDD38\\uDD3B-\\uDD43\\uDDD1-\\uDDD7\\uDDDA-\\uDDE0\\uDDE4\\uDE01-\\uDE0A\\uDE33-\\uDE39\\uDE3B-\\uDE3E\\uDE47\\uDE51-\\uDE5B\\uDE84-\\uDE99\\uDF60-\\uDF67]|\\uD807[\\uDC2F-\\uDC36\\uDC38-\\uDC3F\\uDC92-\\uDCA7\\uDCA9-\\uDCB6\\uDD31-\\uDD36\\uDD3A\\uDD3C\\uDD3D\\uDD3F-\\uDD47\\uDD8A-\\uDD8E\\uDD90\\uDD91\\uDD93-\\uDD97\\uDEF3-\\uDEF6\\uDF00-\\uDF03\\uDF34-\\uDF3A\\uDF3E-\\uDF42\\uDF5A]|\\uD80D[\\uDC40\\uDC47-\\uDC55]|\\uD818[\\uDD1E-\\uDD2F]|\\uD81A[\\uDEF0-\\uDEF4\\uDF30-\\uDF36]|\\uD81B[\\uDD63\\uDD67-\\uDD6A\\uDF4F\\uDF51-\\uDF87\\uDF8F-\\uDF92\\uDFE4\\uDFF0\\uDFF1]|\\uD82F[\\uDC9D\\uDC9E]|\\uD833[\\uDF00-\\uDF2D\\uDF30-\\uDF46]|\\uD834[\\uDD65-\\uDD69\\uDD6D-\\uDD72\\uDD7B-\\uDD82\\uDD85-\\uDD8B\\uDDAA-\\uDDAD\\uDE42-\\uDE44]|\\uD836[\\uDE00-\\uDE36\\uDE3B-\\uDE6C\\uDE75\\uDE84\\uDE9B-\\uDE9F\\uDEA1-\\uDEAF]|\\uD838[\\uDC00-\\uDC06\\uDC08-\\uDC18\\uDC1B-\\uDC21\\uDC23\\uDC24\\uDC26-\\uDC2A\\uDC8F\\uDD30-\\uDD36\\uDEAE\\uDEEC-\\uDEEF]|\\uD839[\\uDCEC-\\uDCEF\\uDDEE\\uDDEF\\uDEE3\\uDEE6\\uDEEE\\uDEEF\\uDEF5]|\\uD83A[\\uDCD0-\\uDCD6\\uDD44-\\uDD4A]|\\uD83C[\\uDDE6-\\uDDFF\\uDFFB-\\uDFFF]|\\uDB40[\\uDC20-\\uDC7F\\uDD00-\\uDDEF]/.test(t)}function Mc(t){return/[\\u0E01-\\u0E3A\\u0E40-\\u0E4E\\u0E81\\u0E82\\u0E84\\u0E86-\\u0E8A\\u0E8C-\\u0EA3\\u0EA5\\u0EA7-\\u0EBD\\u0EC0-\\u0EC4\\u0EC6\\u0EC8-\\u0ECE\\u0EDC-\\u0EDF\\u0F00-\\u0F47\\u0F49-\\u0F6C\\u0F71-\\u0F97\\u0F99-\\u0FBC\\u0FBE-\\u0FCC\\u0FCE-\\u0FD4\\u0FD9\\u0FDA\\u1000-\\u103F\\u1050-\\u108F\\u109A-\\u109F\\u1780-\\u17D3\\u17D7\\u17DC\\u17DD\\u1950-\\u196D\\u1970-\\u1974\\u1980-\\u19AB\\u19B0-\\u19C9\\u19DE\\u19DF\\u1A20-\\u1A5E\\u1A60-\\u1A7C\\u1AA0-\\u1AAD\\u1B00-\\u1B4C\\u1B4E-\\u1B7F\\uA980-\\uA9CD\\uA9D0-\\uA9D9\\uA9DE-\\uA9EF\\uA9FA-\\uA9FE\\uAA60-\\uAAC2\\uAADB-\\uAADF]|\\uD805[\\uDF00-\\uDF1A\\uDF1D-\\uDF2B\\uDF3A\\uDF3B\\uDF3F-\\uDF46]/gim.test(String.fromCodePoint(t))}function cv(t,e){return/(?:[\\u1039\\u17D2\\u1A60\\u1BAB\\u200D\\uAAF6]|\\uD802\\uDE3F|\\uD804[\\uDD33\\uDFD0]|\\uD806[\\uDD3E\\uDE47\\uDE99]|\\uD807[\\uDD45\\uDD97\\uDF42])$/.test(t)||new RegExp("^\\\\p{gc=Mc}","u").test(e)}var pv={C:"18g,1;g2,3;4nb,1",D:"17k,1;5,1;1,1;1,5;4,d;1,7;1,2;z,2;8,g;i,12;1,2;9,1;1,1;1,2;14,3;2,1;28,9;3,f;2,4;1,1;2,3;2,6;7a,1;2,5;1,1;g,a;5,2;2,6;1,f",R:"17m,4;1,1;1,1;5,4;l,1;14,3;1,3;g,i;12,1;2,9;1,1;1,1;2,2;1,1;o,2;2x,3;f,2;4,1;1,2;3,2;6u,j;b,1;r,3;1,1;2,2;6,1",T:"174,b;1,1;1a,l;g,1;2t,7;2,6;2,2;1,4;bt,9;16,o;1,t;1clb,1"},fv={1569:[65152,0,0,0],1570:[65153,65154,0,0],1571:[65155,65156,0,0],1572:[65157,65158,0,0],1573:[65159,65160,0,0],1574:[65161,65162,65163,65164],1575:[65165,65166,0,0],1576:[65167,65168,65169,65170],1577:[65171,65172,0,0],1578:[65173,65174,65175,65176],1579:[65177,65178,65179,65180],1580:[65181,65182,65183,65184],1581:[65185,65186,65187,65188],1582:[65189,65190,65191,65192],1583:[65193,65194,0,0],1584:[65195,65196,0,0],1585:[65197,65198,0,0],1586:[65199,65200,0,0],1587:[65201,65202,65203,65204],1588:[65205,65206,65207,65208],1589:[65209,65210,65211,65212],1590:[65213,65214,65215,65216],1591:[65217,65218,65219,65220],1592:[65221,65222,65223,65224],1593:[65225,65226,65227,65228],1594:[65229,65230,65231,65232],1601:[65233,65234,65235,65236],1602:[65237,65238,65239,65240],1603:[65241,65242,65243,65244],1604:[65245,65246,65247,65248],1605:[65249,65250,65251,65252],1606:[65253,65254,65255,65256],1607:[65257,65258,65259,65260],1608:[65261,65262,0,0],1609:[65263,65264,64488,64489],1610:[65265,65266,65267,65268],1611:[65136,0,0,65137],1612:[65138,0,0,0],1613:[65140,0,0,0],1614:[65142,0,0,65143],1615:[65144,0,0,65145],1616:[65146,0,0,65147],1617:[65148,0,0,65149],1618:[65150,0,0,65151],1649:[64336,64337,0,0],1655:[64477,0,0,0],1657:[64358,64359,64360,64361],1658:[64350,64351,64352,64353],1659:[64338,64339,64340,64341],1662:[64342,64343,64344,64345],1663:[64354,64355,64356,64357],1664:[64346,64347,64348,64349],1667:[64374,64375,64376,64377],1668:[64370,64371,64372,64373],1670:[64378,64379,64380,64381],1671:[64382,64383,64384,64385],1672:[64392,64393,0,0],1676:[64388,64389,0,0],1677:[64386,64387,0,0],1678:[64390,64391,0,0],1681:[64396,64397,0,0],1688:[64394,64395,0,0],1700:[64362,64363,64364,64365],1702:[64366,64367,64368,64369],1705:[64398,64399,64400,64401],1709:[64467,64468,64469,64470],1711:[64402,64403,64404,64405],1713:[64410,64411,64412,64413],1715:[64406,64407,64408,64409],1722:[64414,64415,0,0],1723:[64416,64417,64418,64419],1726:[64426,64427,64428,64429],1728:[64420,64421,0,0],1729:[64422,64423,64424,64425],1733:[64480,64481,0,0],1734:[64473,64474,0,0],1735:[64471,64472,0,0],1736:[64475,64476,0,0],1737:[64482,64483,0,0],1739:[64478,64479,0,0],1740:[64508,64509,64510,64511],1744:[64484,64485,64486,64487],1746:[64430,64431,0,0],1747:[64432,64433,0,0]},dv={\\u0644\\u0622:[65269,65270],\\u0644\\u0623:[65271,65272],\\u0644\\u0625:[65273,65274],\\u0644\\u0627:[65275,65276]},Bc=1604,yv=/[\\u0600-\\u06ff\\u0750-\\u077f\\u0870-\\u089f\\u08a0-\\u08ff\\ufb50-\\ufdff\\ufe70-\\ufeff]/;function mv(t,e,r){let i=0;for(let n of t.split(";")){let[a,s]=n.split(",").map(l=>parseInt(l,36)),o=i+a;for(let l=o;l{let r=e.codePointAt(0);return{codePoint:r,type:gv(r),form:null}})}function Dv(t){let e=t.filter(r=>r.type!=="T");for(let r=0;r0&&xv(e[r-1].type),a=r+1String.fromCodePoint(Sv(r))).join("")}function Fv(t,e,r){var n;let i=e.layout.get("text-transform").evaluate(r,{});return i==="uppercase"?t=t.toLocaleUpperCase():i==="lowercase"&&(t=t.toLocaleLowerCase()),((n=Ar.applyArabicShaping)!=null?n:Ev)(t)}function Tv(t,e,r){for(let i of t.sections)i.text=Fv(i.text,e,r);return t}function Ws(t,e,r){let i=r?e.last.points:e.first.points,n=r?i[i.length-1]:i[0];return`${t}:${n.x}:${n.y}`}function kv(t){let e=t.first.points,r=e.length;for(let a=t.first.next;a;a=a.next)r+=a.points.length-1;let i=Array(r);for(let a=0;a=0&&cv(e[i],r)?e[i]+=r:e.push(r)}return e}function Cv(t){let e=new Set;if(ey){Oi!=null||(Oi=new Intl.Segmenter(void 0,{granularity:"word"}));for(let{index:i}of Oi.segment(t))e.add(i);return e}let r=0;for(let i of t.split(new RegExp("\\\\b|(?=\\\\p{Ideo})","u")))e.add(r),r+=i.length;return e}function ry(t){let e=t.codePointAt(0);return t.length>(e>65535?2:1)}function au(t){return/\\s/u.test(String.fromCodePoint(t))}function nl(t){for(let e of t)if(ts(e.codePointAt(0)))return!0;return!1}function Mv(t){for(let e of t)if(!Bv(e.codePointAt(0)))return!1;return!0}function Bv(t){return!sv(t)}function Lc(t){return!(ts(t)||uv(t))}function iy(t){return new RegExp("\\\\p{sc=Arab}","u").test(String.fromCodePoint(t))}function ny(t){return ov(t)}function ay(t){for(let e of t)if(ny(e.codePointAt(0)))return!0;return!1}var Gr={"!":"\\uFE15","#":"\\uFF03",$:"\\uFF04","%":"\\uFF05","&":"\\uFF06","(":"\\uFE35",")":"\\uFE36","*":"\\uFF0A","+":"\\uFF0B",",":"\\uFE10","-":"\\uFE32",".":"\\u30FB","/":"\\uFF0F",":":"\\uFE13",";":"\\uFE14","<":"\\uFE3F","=":"\\uFF1D",">":"\\uFE40","?":"\\uFE16","@":"\\uFF20","[":"\\uFE47","\\\\":"\\uFF3C","]":"\\uFE48","^":"\\uFF3E",_:"\\uFE33","`":"\\uFF40","{":"\\uFE37","|":"\\u2015","}":"\\uFE38","~":"\\uFF5E","\\xA2":"\\uFFE0","\\xA3":"\\uFFE1","\\xA5":"\\uFFE5","\\xA6":"\\uFFE4","\\xAC":"\\uFFE2","\\xAF":"\\uFFE3","\\u2013":"\\uFE32","\\u2014":"\\uFE31","\\u2018":"\\uFE43","\\u2019":"\\uFE44","\\u201C":"\\uFE41","\\u201D":"\\uFE42","\\u2026":"\\uFE19","\\u22EF":"\\uFE19","\\u2027":"\\u30FB","\\u20A9":"\\uFFE6","\\u3001":"\\uFE11","\\u3002":"\\uFE12","\\u3008":"\\uFE3F","\\u3009":"\\uFE40","\\u300A":"\\uFE3D","\\u300B":"\\uFE3E","\\u300C":"\\uFE41","\\u300D":"\\uFE42","\\u300E":"\\uFE43","\\u300F":"\\uFE44","\\u3010":"\\uFE3B","\\u3011":"\\uFE3C","\\u3014":"\\uFE39","\\u3015":"\\uFE3A","\\u3016":"\\uFE17","\\u3017":"\\uFE18","\\uFF01":"\\uFE15","\\uFF08":"\\uFE35","\\uFF09":"\\uFE36","\\uFF0C":"\\uFE10","\\uFF0D":"\\uFE32","\\uFF0E":"\\u30FB","\\uFF1A":"\\uFE13","\\uFF1B":"\\uFE14","\\uFF1C":"\\uFE3F","\\uFF1E":"\\uFE40","\\uFF1F":"\\uFE16","\\uFF3B":"\\uFE47","\\uFF3D":"\\uFE48","\\uFF3F":"\\uFE33","\\uFF5B":"\\uFE37","\\uFF5C":"\\u2015","\\uFF5D":"\\uFE38","\\uFF5F":"\\uFE35","\\uFF60":"\\uFE36","\\uFF61":"\\uFE12","\\uFF62":"\\uFE41","\\uFF63":"\\uFE42"};function Pv(t){let e="",r={premature:!0,value:void 0},i=t[Symbol.iterator](),n=i.next(),a=t[Symbol.iterator]();a.next();let s=a.next();for(;!n.done;)(s.done||!Lc(s.value.codePointAt(0))||Gr[s.value])&&(r.premature||!Lc(r.value.codePointAt(0))||Gr[r.value])&&Gr[n.value]?e+=Gr[n.value]:e+=n.value,r={value:n.value,premature:!1},n=i.next(),s=a.next();return e}var zv={10:!0,13:!0,32:!0,38:!0,41:!0,43:!0,45:!0,47:!0,173:!0,183:!0,8203:!0,8208:!0,8211:!0,8231:!0},Lv={40:!0};function Vc(t,e,r,i,n,a){var s;if("fontStack"in e){let o=(s=r[e.fontStack])==null?void 0:s.default,l=o==null?void 0:o[t];if(l)return l.metrics.advance*e.scale+n;let u=0;for(let h of t){let c=o==null?void 0:o[h];c&&(u+=c.metrics.advance*e.scale+n)}return u}{let o=i[e.imageName];return o?o.displaySize[0]*e.scale*24/a+n:0}}function Oc(t,e,r,i){let n=(t-e)**2;return i?tr&&Rc(e[i-1]);)i--;this.text=e.slice(r,i).join(""),this.sectionIndex=this.sectionIndex.slice(r,i),this._graphemes=null}substring(e,r){let i=this.graphemes().slice(e,r).join(""),n=this.sectionIndex.slice(e,r);return new al(i,this.sections,n)}toCodeUnitIndex(e){return this.graphemes().slice(0,e).join("").length}toString(){return this.text}getMaxScale(){return this.sectionIndex.reduce((e,r)=>Math.max(e,this.sections[r].scale),0)}getMaxImageSize(e){let r=0,i=0;for(let n=0;n0?i[i.length-1]:"",a=il(n+e);this.text+=e,this._graphemes=i.slice(0,n?-1:void 0).concat(a);let s=a.length-+!!n;for(let o=0;o=63743?null:++this.imageSectionID:(this.imageSectionID=57344,this.imageSectionID)}determineLineBreaks(e,r,i,n,a){let s=[],o=this.determineAverageLineWidth(e,r,i,n,a),l=this.hasZeroWidthSpaces(),u=this.graphemes(),h=null,c=0,p=0;for(let f=0;f0){let y=u[f-1].codePointAt(0),m=d.codePointAt(0),g=lv(y),x=Mc(y)&&Mc(m);(zv[y]||g||"imageName"in this.getSection(f-1)||u[f+1]!==void 0&&Lv[m]||x&&(h!=null?h:h=Cv(this.text)).has(p))&&s.push($c(f,c,o,s,Vv(y,m,g&&l),!1))}au(d.codePointAt(0))||(c+=Vc(d,this.getSection(f),i,n,e,a)),p+=d.length}return sy($c(this.length(),c,o,s,0,!0))}determineAverageLineWidth(e,r,i,n,a){let s=0,o=0;for(let u of this.graphemes()){let h=this.getSection(o);s+=Vc(u,h,i,n,e,a),o++}let l=Math.max(1,Math.ceil(s/r));return s/l}};function Ov(){return(function(t){var e={R:"13k,1a,2,3,3,2+1j,ch+16,a+1,5+2,2+n,5,a,4,6+16,4+3,h+1b,4mo,179q,2+9,2+11,2i9+7y,2+68,4,3+4,5+13,4+3,2+4k,3+29,8+cf,1t+7z,w+17,3+3m,1t+3z,16o1+5r,8+30,8+mc,29+1r,29+4v,75+73",EN:"1c+9,3d+1,6,187+9,513,4+5,7+9,sf+j,175h+9,qw+q,161f+1d,4xt+a,25i+9",ES:"17,2,6dp+1,f+1,av,16vr,mx+1,4o,2",ET:"z+2,3h+3,b+1,ym,3e+1,2o,p4+1,8,6u,7c,g6,1wc,1n9+4,30+1b,2n,6d,qhx+1,h0m,a+1,49+2,63+1,4+1,6bb+3,12jj",AN:"16o+5,2j+9,2+1,35,ed,1ff2+9,87+u",CS:"18,2+1,b,2u,12k,55v,l,17v0,2,3,53,2+1,b",B:"a,3,f+2,2v,690",S:"9,2,k",WS:"c,k,4f4,1vk+a,u,1j,335",ON:"x+1,4+4,h+5,r+5,r+3,z,5+3,2+1,2+1,5,2+2,3+4,o,w,ci+1,8+d,3+d,6+8,2+g,39+1,9,6+1,2,33,b8,3+1,3c+1,7+1,5r,b,7h+3,sa+5,2,3i+6,jg+3,ur+9,2v,ij+1,9g+9,7+a,8m,4+1,49+x,14u,2+2,c+2,e+2,e+2,e+1,i+n,e+e,2+p,u+2,e+2,36+1,2+3,2+1,b,2+2,6+5,2,2,2,h+1,5+4,6+3,3+f,16+2,5+3l,3+81,1y+p,2+40,q+a,m+13,2r+ch,2+9e,75+hf,3+v,2+2w,6e+5,f+6,75+2a,1a+p,2+2g,d+5x,r+b,6+3,4+o,g,6+1,6+2,2k+1,4,2j,5h+z,1m+1,1e+f,t+2,1f+e,d+3,4o+3,2s+1,w,535+1r,h3l+1i,93+2,2s,b+1,3l+x,2v,4g+3,21+3,kz+1,g5v+1,5a,j+9,n+v,2,3,2+8,2+1,3+2,2,3,46+1,4+4,h+5,r+5,r+a,3h+2,4+6,b+4,78,1r+24,4+c,4,1hb,ey+6,103+j,16j+c,1ux+7,5+g,fsh,jdq+1t,4,57+2e,p1,1m,1m,1m,1m,4kt+1,7j+17,5+2r,d+e,3+e,2+e,2+10,m+4,w,1n+5,1q,4z+5,4b+rb,9+c,4+c,4+37,d+2g,8+b,l+b,5+1j,9+9,7+13,9+t,3+1,27+3c,2+29,2+3q,d+d,3+4,4+2,6+6,a+o,8+6,a+2,e+6,16+42,2+1i",BN:"0+8,6+d,2s+5,2+p,e,4m9,1kt+2,2b+5,5+5,17q9+v,7k,6p+8,6+1,119d+3,440+7,96s+1,1ekf+1,1ekf+1,1ekf+1,1ekf+1,1ekf+1,1ekf+1,1ekf+1,1ekf+1,1ekf+1,1ekf+1,1ekf+1,1ekf+75,6p+2rz,1ben+1,1ekf+1,1ekf+1",NSM:"lc+33,7o+6,7c+18,2,2+1,2+1,2,21+a,1d+k,h,2u+6,3+5,3+1,2+3,10,v+q,2k+a,1n+8,a,p+3,2+8,2+2,2+4,18+2,3c+e,2+v,1k,2,5+7,5,4+6,b+1,u,1n,5+3,9,l+1,r,3+1,1m,5+1,5+1,3+2,4,v+1,4,c+1,1m,5+4,2+1,5,l+1,n+5,2,1n,3,2+3,9,8+1,c+1,v,1q,d,1f,4,1m+2,6+2,2+3,8+1,c+1,u,1n,g+1,l+1,t+1,1m+1,5+3,9,l+1,u,21,8+2,2,2j,3+6,d+7,2r,3+8,c+5,23+1,s,2,2,1k+d,2+4,2+1,6+a,2+z,a,2v+3,2+5,2+1,3+1,q+1,5+2,h+3,e,3+1,7,g,jk+2,qb+2,u+2,u+1,v+1,1t+1,2+6,9,3+a,a,1a+2,3c+1,z,3b+2,5+1,a,7+2,64+1,3,1n,2+6,2,2,3+7,7+9,3,1d+g,1s+3,1d,2+4,2,6,15+8,d+1,x+3,3+1,2+2,1l,2+1,4,2+2,1n+7,3+1,49+2,2+c,2+6,5,7,4+1,5j+1l,2+4,k1+w,2db+2,3y,2p+v,ff+3,30+1,n9x+3,2+9,x+1,29+1,7l,4,5,q+1,6,48+1,r+h,e,13+7,q+a,1b+2,1d,3+3,3+1,14,1w+5,3+1,3+1,d,9,1c,1g,2+2,3+1,6+1,2,17+1,9,6n,3,5,fn5,ki+f,h+f,r2,6b,46+4,1af+2,2+1,6+3,15+2,5,4m+1,fy+3,as+1,4a+a,4x,1j+e,1l+2,1e+3,3+1,1y+2,11+4,2+7,1r,d+1,1h+8,b+3,3,2o+2,3,2+1,7,4h,4+7,m+1,1m+1,4,12+6,4+4,5g+7,3+2,2,o,2d+5,2,5+1,2+1,6n+3,7+1,2+1,s+1,2e+7,3,2+1,2z,2,3+5,2,2u+2,3+3,2+4,78+8,2+1,75+1,2,5,41+3,3+1,5,x+5,3+1,15+5,3+3,9,a+5,3+2,1b+c,2+1,bb+6,2+5,2d+l,3+6,2+1,2+1,3f+5,4,2+1,2+6,2,21+1,4,2,9o+1,f0c+4,1o+6,t5,1s+3,2a,f5l+1,43t+2,i+7,3+6,v+3,45+2,1j0+1i,5+1d,9,f,n+4,2+e,11t+6,2+g,3+6,2+1,2+4,7a+6,c6+3,15t+6,32+6,gzhy+6n",AL:"16w,3,2,e+1b,z+2,2+2s,g+1,8+1,b+m,2+t,s+2i,c+e,4h+f,1d+1e,1bwe+dp,3+3z,x+c,2+1,35+3y,2rm+z,5+7,b+5,dt+l,c+u,17nl+27,1t+27,4x+6n,3+d",LRO:"6ct",RLO:"6cu",LRE:"6cq",RLE:"6cr",PDF:"6cs",LRI:"6ee",RLI:"6ef",FSI:"6eg",PDI:"6eh"},r={},i={};r.L=1,i[1]="L",Object.keys(e).forEach(function(N,at){r[N]=1<1,1e>2,u>2,2wt>1,1>1,1ge>1,1wp>1,1j>1,f>1,hm>1,1>1,u>1,u6>1,1>1,+5,28>1,w>1,1>1,+3,b8>1,1>1,+3,1>3,-1>-1,3>1,1>1,+2,1s>1,1>1,x>1,th>1,1>1,+2,db>1,1>1,+3,3>1,1>1,+2,14qm>1,1>1,+1,4q>1,1e>2,u>2,2>1,+1",canonical:"6f1>-6dx,6dy>-6dx,6ec>-6ed,6ee>-6ed,6ww>2jj,-2ji>2jj,14r4>-1e7l,1e7m>-1e7l,1e7m>-1e5c,1e5d>-1e5b,1e5c>-14qx,14qy>-14qx,14vn>-1ecg,1ech>-1ecg,1edu>-1ecg,1eci>-1ecg,1eda>-1ecg,1eci>-1ecg,1eci>-168q,168r>-168q,168s>-14ye,14yf>-14ye"};function d(N,at){var Y=0,k=new Map,ot=at&&new Map,X;return N.split(",").forEach(function K(j){if(j.indexOf("+")!==-1)for(var Nt=+j;Nt--;)K(X);else{X=j;var bt=j.split(">"),nt=bt[0],kt=bt[1];nt=String.fromCodePoint(Y+=parseInt(nt,36)),kt=String.fromCodePoint(Y+=parseInt(kt,36)),k.set(nt,kt),at&&ot.set(kt,nt)}}),{map:k,reverseMap:ot}}var y,m,g;function x(){if(!y){var N=d(f.pairs,!0),at=N.map,Y=N.reverseMap;y=at,m=Y,g=d(f.canonical,!1).map}}function v(N){return x(),y.get(N)||null}function b(N){return x(),m.get(N)||null}function w(N){return x(),g.get(N)||null}var _=r.L,A=r.R,S=r.EN,T=r.ES,L=r.ET,O=r.AN,B=r.CS,V=r.B,F=r.S,$=r.ON,G=r.BN,P=r.NSM,z=r.AL,it=r.LRO,dt=r.RLO,ct=r.LRE,pt=r.RLE,Kt=r.PDF,jt=r.LRI,Jt=r.RLI,Oe=r.FSI,Gt=r.PDI;function Re(N,at){for(var Y=125,k=new Uint32Array(N.length),ot=0;ot0)Ie--;else if(is>0){for(qe=0;!lt[lt.length-1]._isolate;)lt.pop();var ns=lt[lt.length-1]._isolInitIndex;ns!=null&&(Nt.set(ns,zt),Nt.set(zt,ns)),lt.pop(),is--}wt=lt[lt.length-1],j[zt]=wt._level,wt._override&&K(zt,wt._override)}else Lt&Kt?(Ie===0&&(qe>0?qe--:!wt._isolate&<.length>1&&(lt.pop(),wt=lt[lt.length-1])),j[zt]=wt._level):Lt&V&&(j[zt]=nt.level);else j[zt]=wt._level,wt._override&&Lt!==G&&K(zt,wt._override)}for(var Cr=[],me=null,ur=nt.start;ur<=nt.end;ur++){var as=k[ur];if(!(as&o)){var Vu=j[ur],Ou=as&n,m1=as===Gt;me&&Vu===me._level?(me._end=ur,me._endsWithIsolInit=Ou):Cr.push(me={_start:ur,_end:ur,_level:Vu,_startsWithPDI:m1,_endsWithIsolInit:Ou})}}for(var ss=[],In=0;In=0;Bn--)if(!(k[Bn]&o)){Nu=j[Bn];break}var hs=Mr[Mr.length-1],x1=j[hs],Uu=nt.level;if(!(k[hs]&n)){for(var Pn=hs+1;Pn<=nt.end;Pn++)if(!(k[Pn]&o)){Uu=j[Pn];break}}ss.push({_seqIndices:Mr,_sosType:Math.max(Nu,g1)%2?A:_,_eosType:Math.max(Uu,x1)%2?A:_})}}for(var cs=0;cs=0;Ln--)if(!(k[q[Ln]]&o)){fs=k[q[Ln]];break}K(qu,fs&(n|Gt)?$:fs)}}if(X.get(S))for(var Vn=0;Vn=-1;On--){var Gu=On===-1?yi:k[q[On]];if(Gu&a){Gu===z&&K(ju,O);break}}}if(X.get(z))for(var ds=0;ds=0&&(Pr=k[q[gs]],Pr&o);gs--);for(var xs=mi+1;xs=0&&k[q[Rn]]&(L|o);Rn--)K(q[Rn],S);for(ge++;ge=0&&k[q[$n]]&o;$n--)K(q[$n],$);for(var Nn=gi+1;Nn=0;bi--){var ws=zr[bi].char;if(ws===Ku||ws===b(w(vi))||v(w(ws))===vi){Un.push([zr[bi].seqIndex,Lr]),zr.length=bi;break}}}Un.sort(function(Wt,he){return Wt[0]-he[0]});for(var Ds=0;Ds=0;Ss--){var rh=q[Ss];if(k[rh]&Hu){var ih=k[rh]&xi?A:_;xe=ih===Br?Br:ih;break}}}if(xe){if(k[q[qn]]=k[q[_s]]=xe,xe!==Br){for(var wi=qn+1;wi=0;_i--)if(k[q[_i]]&o)nh=_i;else{Fs=k[q[_i]]&xi?A:_;break}for(var ah=v1,Ai=je+1;Ai=0&&c(N[Gn])&l;Gn--)j[Gn]=nt.level}}return{levels:j,paragraphs:bt};function sh(Wt,he){for(var Zt=Wt;Zt=j&&c(N[nt])&l;nt--)bt[nt]=K.level;for(var kt=K.level,di=1/0,lr=0;lrkt&&(kt=Ne),Ne=di;Ue--)for(var lt=0;lt=Ue){for(var wt=lt;lt+1=Ue;)lt++;lt>wt&&X.push([wt+j,lt+j])}}}),X}function or(N,at,Y,k){var ot=Ir(N,at,Y,k),X=[].concat(N);return ot.forEach(function(K,j){X[j]=(at.levels[K]&1?Te(N[K]):null)||N[K]}),X.join("")}function Ir(N,at,Y,k){for(var ot=ke(N,at,Y,k),X=[],K=0;K=0;i--){let n=ou.getBidiCharTypeName(t[i].text[0]);Nv.has(n)?(t[i].level=e,r=!0):r&&$v.has(n)?t[i].level=e:r=!1}}function jv(t,e){let r=e,i=1/0;for(let{level:a}of t)a>r&&(r=a),(a|1)=i;a--)for(let s=0;s=a;)o++;for(let l=s,u=o;le>=n.start&&e<=n.end))==null?void 0:r.level)!=null?i:0}function Yv(t,e,r,i,n){let a=Uv(t,e,i,n);qv(a,r);let s="",o=[];for(let l of jv(a,r)){if(Rv.test(l.text))continue;let u=Gv(l);s+=u,o.push(...Array(u.length).fill(l.index))}return{text:s,sourceIndices:o}}function Wv(t,e){let r=e.filter(a=>a>0&&aa-s),n=[];for(let a=0;a+1n.start))).map(([n,a])=>Yv(t,r,Xv(i,n),n,a))}function Zv(t,e){return oy(t,e).map(r=>r.text)}function Hv(t,e,r){return oy(t,r).map(i=>[i.text,i.sourceIndices.map(n=>{var a;return(a=e[n])!=null?a:0})])}var sl=4294967296,Nc=1/sl,Uc=typeof TextDecoder>"u"?null:new TextDecoder("utf-8"),lu=class{constructor(t){this.buf=ArrayBuffer.isView(t)?t:new Uint8Array(t),this.dataView=new DataView(this.buf.buffer,this.buf.byteOffset,this.buf.byteLength),this.pos=0,this.type=0,this._valueStart=-1,this.length=this.buf.length}readFields(t,e,r=this.length){let i;for(;i=this.nextField(r);)t(i,e,this);return e}readMessage(t,e){return this.readFields(t,e,this.readVarint()+this.pos)}readFixed32(){let t=this.dataView.getUint32(this.pos,!0);return this.pos+=4,t}readSFixed32(){let t=this.dataView.getInt32(this.pos,!0);return this.pos+=4,t}readFixed64(){let t=this.dataView.getUint32(this.pos,!0)+this.dataView.getUint32(this.pos+4,!0)*sl;return this.pos+=8,t}readSFixed64(){let t=this.dataView.getUint32(this.pos,!0)+this.dataView.getInt32(this.pos+4,!0)*sl;return this.pos+=8,t}readFloat(){let t=this.dataView.getFloat32(this.pos,!0);return this.pos+=4,t}readDouble(){let t=this.dataView.getFloat64(this.pos,!0);return this.pos+=8,t}readVarint(t){let e=this.buf,r=e[this.pos++];if(r<128)return r;let i=r&127,n;return n=e[this.pos++],i|=(n&127)<<7,n<128||(n=e[this.pos++],i|=(n&127)<<14,n<128)||(n=e[this.pos++],i|=(n&127)<<21,n<128)?i:(n=e[this.pos],i|=(n&15)<<28,Jv(i,t,this))}readSVarint(){let t=this.readVarint();return t%2==1?(t+1)/-2:t/2}readBoolean(){return!!this.readVarint()}readString(){let t=this.readVarint()+this.pos,e=this.pos;return this.pos=t,t-e>=12&&Uc?Uc.decode(this.buf.subarray(e,t)):pb(this.buf,e,t)}readBytes(){let t=this.readVarint()+this.pos,e=this.buf.subarray(this.pos,t);return this.pos=t,e}readPackedVarint(t=[],e){let r=this.readPackedEnd();for(;this.pos=t)return 0;let e=this.readVarint();return this.type=e&7,this._valueStart=this.pos,e>>>3}skip(t){let e=t&7;if(e===0)for(;this.buf[this.pos++]>127;);else if(e===2)this.pos=this.readVarint()+this.pos;else if(e===5)this.pos+=4;else if(e===1)this.pos+=8;else throw Error(`Unimplemented type: ${e}`)}},Kv=class{constructor(t=new Uint8Array(16)){this.buf=ArrayBuffer.isView(t)?t:new Uint8Array(t),this.dataView=new DataView(this.buf.buffer,this.buf.byteOffset,this.buf.byteLength),this.pos=0,this.length=this.buf.length}writeTag(t,e){this.writeVarint(t<<3|e)}realloc(t){let e=this.length||16;for(;e=0&&t<128){this.pos>=this.length&&this.realloc(1),this.buf[this.pos++]=t;return}if(t>268435455||t<0){tb(t,this);return}this.realloc(4),this.buf[this.pos++]=t&127|(t>127?128:0),!(t<=127)&&(this.buf[this.pos++]=(t>>>=7)&127|(t>127?128:0),!(t<=127)&&(this.buf[this.pos++]=(t>>>=7)&127|(t>127?128:0),!(t<=127)&&(this.buf[this.pos++]=t>>>7&127)))}writeSVarint(t){this.writeVarint(t<0?-t*2-1:t*2)}writeBoolean(t){this.writeVarint(+t)}writeString(t){t=String(t),this.realloc(t.length*4),this.pos++;let e=this.pos;this.pos=fb(this.buf,t,this.pos);let r=this.pos-e;r>=128&&qc(e,r,this),this.pos=e-1,this.writeVarint(r),this.pos+=r}writeFloat(t){this.realloc(4),this.dataView.setFloat32(this.pos,t,!0),this.pos+=4}writeDouble(t){this.realloc(8),this.dataView.setFloat64(this.pos,t,!0),this.pos+=8}writeBytes(t){let e=t.length;this.writeVarint(e),this.realloc(e),this.buf.set(t,this.pos),this.pos+=e}writeRawMessage(t,e){this.pos++;let r=this.pos;t(e,this);let i=this.pos-r;i>=128&&qc(r,i,this),this.pos=r-1,this.writeVarint(i),this.pos+=i}writeMessage(t,e,r){this.writeTag(t,2),this.writeRawMessage(e,r)}writePackedVarint(t,e){e.length&&this.writeMessage(t,ib,e)}writePackedSVarint(t,e){e.length&&this.writeMessage(t,nb,e)}writePackedBoolean(t,e){e.length&&this.writeMessage(t,ob,e)}writePackedFloat(t,e){e.length&&this.writeMessage(t,ab,e)}writePackedDouble(t,e){e.length&&this.writeMessage(t,sb,e)}writePackedFixed32(t,e){e.length&&this.writeMessage(t,lb,e)}writePackedSFixed32(t,e){e.length&&this.writeMessage(t,ub,e)}writePackedFixed64(t,e){e.length&&this.writeMessage(t,hb,e)}writePackedSFixed64(t,e){e.length&&this.writeMessage(t,cb,e)}writeBytesField(t,e){this.writeTag(t,2),this.writeBytes(e)}writeFixed32Field(t,e){this.writeTag(t,5),this.writeFixed32(e)}writeSFixed32Field(t,e){this.writeTag(t,5),this.writeSFixed32(e)}writeFixed64Field(t,e){this.writeTag(t,1),this.writeFixed64(e)}writeSFixed64Field(t,e){this.writeTag(t,1),this.writeSFixed64(e)}writeVarintField(t,e){this.writeTag(t,0),this.writeVarint(e)}writeSVarintField(t,e){this.writeTag(t,0),this.writeSVarint(e)}writeStringField(t,e){this.writeTag(t,2),this.writeString(e)}writeFloatField(t,e){this.writeTag(t,5),this.writeFloat(e)}writeDoubleField(t,e){this.writeTag(t,1),this.writeDouble(e)}writeBooleanField(t,e){this.writeVarintField(t,+e)}};function Jv(t,e,r){let i=r.buf,n,a;if(a=i[r.pos++],n=(a&112)>>4,a<128||(a=i[r.pos++],n|=(a&127)<<3,a<128)||(a=i[r.pos++],n|=(a&127)<<10,a<128)||(a=i[r.pos++],n|=(a&127)<<17,a<128)||(a=i[r.pos++],n|=(a&127)<<24,a<128)||(a=i[r.pos++],n|=(a&1)<<31,a<128))return Qv(t,n,e);throw Error("Expected varint not more than 10 bytes")}function Qv(t,e,r){return r?e*4294967296+(t>>>0):(e>>>0)*4294967296+(t>>>0)}function tb(t,e){let r,i;if(t>=0?(r=t%4294967296|0,i=t/4294967296|0):(r=~(-t%4294967296),i=~(-t/4294967296),r^4294967295?r=r+1|0:(r=0,i=i+1|0)),t>=18446744073709552e3||t<-18446744073709552e3)throw Error("Given varint doesn\'t fit into 10 bytes");e.realloc(10),eb(r,i,e),rb(i,e)}function eb(t,e,r){r.buf[r.pos++]=t&127|128,t>>>=7,r.buf[r.pos++]=t&127|128,t>>>=7,r.buf[r.pos++]=t&127|128,t>>>=7,r.buf[r.pos++]=t&127|128,t>>>=7,r.buf[r.pos]=t&127}function rb(t,e){let r=(t&7)<<4;e.buf[e.pos++]|=r|((t>>>=3)?128:0),t&&(e.buf[e.pos++]=t&127|((t>>>=7)?128:0),t&&(e.buf[e.pos++]=t&127|((t>>>=7)?128:0),t&&(e.buf[e.pos++]=t&127|((t>>>=7)?128:0),t&&(e.buf[e.pos++]=t&127|((t>>>=7)?128:0),t&&(e.buf[e.pos++]=t&127)))))}function qc(t,e,r){let i=e<=16383?1:e<=2097151?2:e<=268435455?3:Math.floor(Math.log(e)/(Math.LN2*7));r.realloc(i),r.buf.copyWithin(t+i,t,r.pos)}function ib(t,e){let r=t.length,i=e.buf,n=e.pos,a=e.length;for(let s=0;sa){e.pos=n,e.writeVarint(o),i=e.buf,n=e.pos,a=e.length;continue}for(;o>127;)i[n++]=o%128|128,o=Math.floor(o/128);i[n++]=o}e.pos=n}function nb(t,e){for(let r=0;r239?4:a>223?3:a>191?2:1;if(n+o>r)break;let l,u,h;o===1?a<128&&(s=a):o===2?(l=t[n+1],(l&192)==128&&(s=(a&31)<<6|l&63,s<=127&&(s=null))):o===3?(l=t[n+1],u=t[n+2],(l&192)==128&&(u&192)==128&&(s=(a&15)<<12|(l&63)<<6|u&63,(s<=2047||s>=55296&&s<=57343)&&(s=null))):o===4&&(l=t[n+1],u=t[n+2],h=t[n+3],(l&192)==128&&(u&192)==128&&(h&192)==128&&(s=(a&15)<<18|(l&63)<<12|(u&63)<<6|h&63,(s<=65535||s>=1114112)&&(s=null))),s===null?(s=65533,o=1):s>65535&&(s-=65536,i+=String.fromCharCode(s>>>10&1023|55296),s=56320|s&1023),i+=String.fromCharCode(s),n+=o}return i}function fb(t,e,r){for(let i=0,n,a;i55295&&n<57344)if(a){if(n<56320){t[r++]=239,t[r++]=191,t[r++]=189,a=n;continue}n=a-55296<<10|n-56320|65536,a=null}else{n>56319||i+1===e.length?(t[r++]=239,t[r++]=191,t[r++]=189):a=n;continue}else a&&(a=(t[r++]=239,t[r++]=191,t[r++]=189,null));n<128?t[r++]=n:(n<2048?t[r++]=n>>6|192:(n<65536?t[r++]=n>>12|224:(t[r++]=n>>18|240,t[r++]=n>>12&63|128),t[r++]=n>>6&63|128),t[r++]=n&63|128)}return r}function db(t){return typeof(t==null?void 0:t.renderWithWebGL)=="function"}function uu(t){let e=0,r=0;for(let s of t)e+=s.w*s.h,r=Math.max(r,s.w);t.sort((s,o)=>o.h-s.h);let i=[{x:0,y:0,w:Math.max(Math.ceil(Math.sqrt(e/.95)),r),h:1/0}],n=0,a=0;for(let s of t)for(let o=i.length-1;o>=0;o--){let l=i[o];if(!(s.w>l.w||s.h>l.h)){if(s.x=l.x,s.y=l.y,a=Math.max(a,s.y+s.h),n=Math.max(n,s.x+s.w),s.w===l.w&&s.h===l.h){let u=i.pop();u&&o=r;a--)e.push(a);r=i+1}else{for(let a=r;at.toCodeUnitIndex(a)),i=Ar.isParsed()?Ar:null;if(t.sections.length===1)return i?i.processBidirectionalText(t.toString(),r).map(a=>Gc(a,t.sections,[...a].map(()=>0))):Zv(t.toString(),r).map(a=>ol([...a],t.sections,[...a].map(()=>0)));let n=xb(t);return i?i.processStyledBidirectionalText(t.text,n,r).map(([a,s])=>Gc(a,t.sections,s)):Hv(t.text,n,r).map(([a,s])=>{let o=[...a];return ol(o,t.sections,hy(o).map(l=>{var u;return(u=s[l])!=null?u:0}))})}function ol(t,e,r){var a;let i=new su(t.join(""),e,[]),n=0;for(let s of i.graphemes())i.sectionIndex.push((a=r[n])!=null?a:0),n+=[...s].length;return i}function hy(t){let e=[],r=0;for(let i of t)e.push(r),r+=i.length;return e}function Gc(t,e,r){let i=[...t],n=hy(i),a=gb(i);return ol(a.map(s=>i[s]),e,a.map(s=>{var o;return(o=r[n[s]])!=null?o:0}))}function na(t,e,r,i,n,a,s,o,l,u,h,c,p,f,d){let y=su.fromFeature(t,n);c===2&&y.verticalizePunctuation();let m=y.determineLineBreaks(u,a,e,i,f),g=ay(y.text)?vb(y,m):mb(y,m),x=[],v={positionedLines:x,text:y.toString(),top:h[1],bottom:h[1],left:h[0],right:h[0],writingMode:c,iconsInText:!1,verticalizable:!1};return Tb(v,e,r,i,g,s,o,l,c,u,p,d),!yb(x)&&v}function cy(t){let e=.5,r=.5;switch(t){case"right":case"top-right":case"bottom-right":e=1;break;case"left":case"top-left":case"bottom-left":e=0}switch(t){case"bottom":case"bottom-right":case"bottom-left":r=1;break;case"top":case"top-right":case"top-left":r=0}return{horizontalAlign:e,verticalAlign:r}}function bb(t,e,r){let i=e.getMaxScale()*24,{maxImageWidth:n,maxImageHeight:a}=e.getMaxImageSize(t),s=Math.max(i,a*r);return{verticalLineContentWidth:Math.max(i,n*r),horizontalLineContentHeight:s}}function py(t){switch(t){case"top":return 0;case"center":return .5;default:return 1}}function wb(t,e,r,i){var a,s;if(t!=null&&t.rect)return t;let n=(s=(a=e[r.fontStack])==null?void 0:a.default)==null?void 0:s[i];return n?{rect:null,metrics:n.metrics}:null}function Db(t,e,r){return!(t===1||!e&&!ts(r)||e&&(au(r)||iy(r)))}function ma(t){return new RegExp("\\\\p{Nd}","u").test(String.fromCodePoint(t))}function fy(t){return new RegExp("\\\\p{Lu}","u").test(String.fromCodePoint(t))}function _b(t){return/[\\p{P}\\p{S}]/u.test(String.fromCodePoint(t))}function Ab(t){let e=t.some(ma)&&t.every(i=>ma(i)||_b(i)),r=t.length<=3&&t.every(i=>fy(i)||ma(i));return e||r}function Sb(t){return(ma(t)||fy(t))&&!iy(t)}function Eb(t,e){let r=!1;for(let i=0;ia.codePointAt(0)),i=r.map(ts),n=a=>!i[a]&&!au(r[a])&&!("imageName"in t.getSection(a));for(let a=0;au){let p=Math.ceil(i/u);r*=p/n,n=p}return{x1:e,y1:r,x2:e+i,y2:r+n}}function Xc(t,e,r,i,n,a){let s=t.image,o;if(s.content){let m=s.content,g=s.pixelRatio||1;o=[m[0]/g,m[1]/g,s.displaySize[0]-m[2]/g,s.displaySize[1]-m[3]/g]}let l=e.left*a,u=e.right*a,h,c,p,f;r==="width"||r==="both"?(f=n[0]+l-i[3],c=n[0]+u+i[1]):(f=n[0]+(l+u-s.displaySize[0])/2,c=f+s.displaySize[0]);let d=e.top*a,y=e.bottom*a;return r==="height"||r==="both"?(h=n[1]+d-i[0],p=n[1]+y+i[2]):(h=n[1]+(d+y-s.displaySize[1])/2,p=h+s.displaySize[1]),{image:s,top:h,right:c,bottom:p,left:f,collisionPadding:o}}var Yc=32640;function Wc(t,e){let{expression:r}=e;if(r.kind==="constant")return{kind:"constant",layoutSize:r.evaluate(new st(t+1))};if(r.kind==="source")return{kind:"source"};if(r.kind==="composite"){let{minZoom:i,maxZoom:n}=Pb(r.zoomStops,t);return{kind:"composite",minZoom:i,maxZoom:n,interpolationType:r.interpolationType}}{let i=zb(r),n=r.evaluate(new st(t+1));return{kind:"camera",zoomStops:r.zoomStops,sizes:i,layoutSize:n,interpolationType:r.interpolationType}}}function Pb(t,e){let r=0;for(;rt.evaluate(new st(e===-1/0?t.zoomStops[1]-1:e)))}var Jr=class yy extends M{constructor(e,r,i,n){super(e,r),this.angle=i,n!==void 0&&(this.segment=n)}clone(){return new yy(this.x,this.y,this.angle,this.segment)}};C("Anchor",Jr);function my(t,e,r,i,n){if(e.segment===void 0||r===0)return!0;let a=e,s=e.segment+1,o=0;for(;o>-r/2;){if(s--,s<0)return!1;o-=t[s].dist(a),a=t[s]}o+=t[s].dist(t[s+1]),s++;let l=[],u=0;for(;oi;)u-=l.shift().angleDelta;if(u>n)return!1;s++,o+=c.dist(p)}return!0}function gy(t){let e=0;for(let r=0;ru){let d=(u-l)/f,y=new Jr(br.number(c.x,p.x,d),br.number(c.y,p.y,d),p.angleTo(c),h);return y._round(),!s||my(t,y,o,s,e)?y:void 0}l+=f}}function Vb(t,e,r,i,n,a,s,o,l){let u=xy(i,a,s),h=vy(i,n),c=h*s,p=t[0].x===0||t[0].x===l||t[0].y===0||t[0].y===l;e-c=0&&b=0&&w=0&&p+u<=h){let _=new Jr(b,w,x,d);_._round(),(!i||my(t,_,a,i,n))&&f.push(_)}}c+=g}return!o&&!f.length&&!s&&(f=by(t,c/2,r,i,n,a,s,!0,l)),f}function Ob(t,e,r,i,n){let a=[];for(let s of t){let o;for(let l=0;l=i&&h.x>=i)&&(u.x>=i?u=new M(i,u.y+(h.y-u.y)*((i-u.x)/(h.x-u.x)))._round():h.x>=i&&(h=new M(i,u.y+(h.y-u.y)*((i-u.x)/(h.x-u.x)))._round()),!(u.y>=n&&h.y>=n)&&(u.y>=n?u=new M(u.x+(h.x-u.x)*((n-u.y)/(h.y-u.y)),n)._round():h.y>=n&&(h=new M(u.x+(h.x-u.x)*((n-u.y)/(h.y-u.y)),n)._round()),(!o||!u.equals(o[o.length-1]))&&(o=[u],a.push(o)),o.push(h)))))}}return a}function wy(t,e,r,i,n,a){let s=Zc(t,e,r,n,0);return s=Zc(s,e,i,a,1),s}function Zc(t,e,r,i,n){switch(e){case 1:return Rb(t,r,i,n);case 2:return Hc(t,r,i,n,!1);case 3:return Hc(t,r,i,n,!0)}return[]}function Rb(t,e,r,i){let n=[];for(let a of t)for(let s of a){let o=i===0?s.x:s.y;o>=e&&o<=r&&n.push([s])}return n}function $b(t,e,r,i,n){let a=i===0?Nb:Ub,s=[],o=[];for(let h=0;he&&s.push(a(c,p,e)):f>r?d=e&&(s.push(a(c,p,e)),y=!0),d>r&&f<=r&&(s.push(a(c,p,r)),y=!0),!n&&y&&(o.push(s),s=[])}let l=t.length-1,u=i===0?t[l].x:t[l].y;return u>=e&&u<=r&&s.push(t[l]),n&&s.length>0&&!s[0].equals(s[s.length-1])&&s.push(new M(s[0].x,s[0].y)),s.length>0&&o.push(s),o}function Hc(t,e,r,i,n){let a=[];for(let s of t){let o=$b(s,e,r,i,n);o.length>0&&a.push(...o)}return a}function Nb(t,e,r){let i=(r-t.x)/(e.x-t.x);return new M(r,t.y+(e.y-t.y)*i)}function Ub(t,e,r){let i=(r-t.y)/(e.y-t.y);return new M(t.x+(e.x-t.x)*i,r)}function Kc(t,e,r,i){let n=[],a=t.image,s=a.pixelRatio,o=a.paddedRect.w-2,l=a.paddedRect.h-2,u={x1:t.left,y1:t.top,x2:t.right,y2:t.bottom},h=a.stretchX||[[0,o]],c=a.stretchY||[[0,l]],p=(F,$)=>F+$[1]-$[0],f=h.reduce(p,0),d=c.reduce(p,0),y=o-f,m=l-d,g=0,x=f,v=0,b=d,w=0,_=y,A=0,S=m;if(a.content&&i){let F=a.content,$=F[2]-F[0],G=F[3]-F[1];(a.textFitWidth||a.textFitHeight)&&(u=dy(t)),g=aa(h,0,F[0]),v=aa(c,0,F[1]),x=aa(h,F[0],F[2]),b=aa(c,F[1],F[3]),w=F[0]-g,A=F[1]-v,_=$-x,S=G-b}let T=u.x1,L=u.y1,O=u.x2-T,B=u.y2-L,V=(F,$,G,P)=>{let z=sa(F.stretch-g,x,O,T),it=oa(F.fixed-w,_,F.stretch,f),dt=sa($.stretch-v,b,B,L),ct=oa($.fixed-A,S,$.stretch,d),pt=sa(G.stretch-g,x,O,T),Kt=oa(G.fixed-w,_,G.stretch,f),jt=sa(P.stretch-v,b,B,L),Jt=oa(P.fixed-A,S,P.stretch,d),Oe=new M(z,dt),Gt=new M(pt,dt),Re=new M(pt,jt),$e=new M(z,jt),sr=new M(it/s,ct/s),fi=new M(Kt/s,Jt/s),Te=e*Math.PI/180;if(Te){let N=Math.sin(Te),at=Math.cos(Te),Y=[at,-N,N,at];Oe._matMult(Y),Gt._matMult(Y),$e._matMult(Y),Re._matMult(Y)}let $t=F.stretch+F.fixed,ke=G.stretch+G.fixed,or=$.stretch+$.fixed,Ir=P.stretch+P.fixed;return{tl:Oe,tr:Gt,bl:$e,br:Re,tex:{x:a.paddedRect.x+1+$t,y:a.paddedRect.y+1+or,w:ke-$t,h:Ir-or},writingMode:void 0,glyphOffset:[0,0],sectionIndex:0,pixelOffsetTL:sr,pixelOffsetBR:fi,minFontScaleX:_/s/O,minFontScaleY:S/s/B,isSDF:r}};if(!i||!a.stretchX&&!a.stretchY)n.push(V({fixed:0,stretch:-1},{fixed:0,stretch:-1},{fixed:0,stretch:o+1},{fixed:0,stretch:l+1}));else{let F=Jc(h,y,f),$=Jc(c,m,d);for(let G=0;G0&&(d=Math.max(10,d),this.circleDiameter=d)}else{let c=(h=a.image)!=null&&h.content&&(a.image.textFitWidth||a.image.textFitHeight)?dy(a):{x1:a.left,y1:a.top,x2:a.right,y2:a.bottom};c.y1=c.y1*s-o[0],c.y2=c.y2*s+o[2],c.x1=c.x1*s-o[3],c.x2=c.x2*s+o[1];let p=a.collisionPadding;if(p&&(c.x1-=p[0]*s,c.y1-=p[1]*s,c.x2+=p[2]*s,c.y2+=p[3]*s),u){let f=new M(c.x1,c.y1),d=new M(c.x2,c.y1),y=new M(c.x1,c.y2),m=new M(c.x2,c.y2),g=u*Math.PI/180;f._rotate(g),d._rotate(g),y._rotate(g),m._rotate(g),c.x1=Math.min(f.x,d.x,y.x,m.x),c.x2=Math.max(f.x,d.x,y.x,m.x),c.y1=Math.min(f.y,d.y,y.y,m.y),c.y2=Math.max(f.y,d.y,y.y,m.y)}t.emplaceBack(e.x,e.y,c.x1,c.y1,c.x2,c.y2,r,i,n)}this.boxEndIndex=t.length}},jb=class{constructor(t=[],e=(r,i)=>ri)){if(this.data=t,this.length=this.data.length,this.compare=e,this.length>0)for(let r=(this.length>>1)-1;r>=0;r--)this._down(r)}push(t){this.data.push(t),this._up(this.length++)}pop(){if(this.length===0)return;let t=this.data[0],e=this.data.pop();return--this.length>0&&(this.data[0]=e,this._down(0)),t}peek(){return this.data[0]}_up(t){let{data:e,compare:r}=this,i=e[t];for(;t>0;){let n=t-1>>1,a=e[n];if(r(i,a)>=0)break;e[t]=a,t=n}e[t]=i}_down(t){let{data:e,compare:r}=this,i=this.length>>1,n=e[t];for(;t=0)break;e[t]=e[a],t=a}e[t]=n}};function Gb(t,e=1){let r=Ia.fromPoints(t[0]),i=Math.min(r.width(),r.height()),n=i/2,a=new jb([],Xb),{minX:s,minY:o,maxX:l,maxY:u}=r;if(i===0)return new M(s,o);for(let p=s;pc.d||!c.d)&&(c=p),!(p.max-c.d<=e)&&(n=p.h/2,a.push(new qr(p.p.x-n,p.p.y-n,n,t)),a.push(new qr(p.p.x+n,p.p.y-n,n,t)),a.push(new qr(p.p.x-n,p.p.y+n,n,t)),a.push(new qr(p.p.x+n,p.p.y+n,n,t)))}return h.d>0&&c.d-h.d<=e?h.p:c.p}function Xb(t,e){return e.max-t.max}var qr=class{constructor(t,e,r,i){this.p=new M(t,e),this.h=r,this.d=Yb(this.p,i),this.max=this.d+this.h*Math.SQRT2}};function Yb(t,e){let r=!1,i=1/0;for(let n of e)for(let a=0,s=n.length,o=s-1;at.y!=u.y>t.y&&t.x<(u.x-l.x)*(t.y-l.y)/(u.y-l.y)+l.x&&(r=!r),i=Math.min(i,wd(t,l,u))}return(r?1:-1)*Math.sqrt(i)}function Wb(t){let e=0,r=0,i=0,n=t[0];for(let a=0,s=n.length,o=s-1;ap*24);h.startsWith("top")?c[1]-=7:h.startsWith("bottom")&&(c[1]+=7),l[u+1]=c}return new Ae(l)}let a=i.get("text-variable-anchor");if(a){let o;o=t._unevaluatedLayout.getValue("text-radial-offset")===void 0?i.get("text-offset").evaluate(e,{},r).map(u=>u*24):[i.get("text-radial-offset").evaluate(e,{},r)*24,cu];let l=[];for(let u of a)l.push(u,Dy(u,o));return new Ae(l)}return null}function Hb(t){var h,c;t.bucket.createArrays();let e=512*t.bucket.overscaling;t.bucket.tilePixelRatio=gt/e,t.bucket.compareText={},t.bucket.iconsNeedLinear=!1;let r=t.bucket.layers[0],i=r.layout,n=r._unevaluatedLayout._values,a={layoutIconSize:n["icon-size"].possiblyEvaluate(new st(t.bucket.zoom+1),t.canonical),layoutTextSize:n["text-size"].possiblyEvaluate(new st(t.bucket.zoom+1),t.canonical),textMaxSize:n["text-size"].possiblyEvaluate(new st(18))};if(t.bucket.textSizeData.kind==="composite"){let{minZoom:p,maxZoom:f}=t.bucket.textSizeData;a.compositeTextSizes=[n["text-size"].possiblyEvaluate(new st(p),t.canonical),n["text-size"].possiblyEvaluate(new st(f),t.canonical)]}if(t.bucket.iconSizeData.kind==="composite"){let{minZoom:p,maxZoom:f}=t.bucket.iconSizeData;a.compositeIconSizes=[n["icon-size"].possiblyEvaluate(new st(p),t.canonical),n["icon-size"].possiblyEvaluate(new st(f),t.canonical)]}let s=i.get("text-line-height")*24,o=i.get("text-rotation-alignment")!=="viewport"&&i.get("symbol-placement")!=="point",l=i.get("text-keep-upright"),u=i.get("text-size");for(let p of t.bucket.features){let f=i.get("text-font").evaluate(p,{},t.canonical).join(","),d=u.evaluate(p,{},t.canonical),y=a.layoutTextSize.evaluate(p,{},t.canonical),m=a.layoutIconSize.evaluate(p,{},t.canonical),g={horizontal:{},vertical:void 0},x=p.text,v=[0,0];if(x){let A=x.toString(),S=i.get("text-letter-spacing").evaluate(p,{},t.canonical)*24,T=Mv(A)?S:0,L=i.get("text-anchor").evaluate(p,{},t.canonical),O=_y(r,p,t.canonical);if(!O){let $=i.get("text-radial-offset").evaluate(p,{},t.canonical);v=$?Dy(L,[$*24,cu]):i.get("text-offset").evaluate(p,{},t.canonical).map(G=>G*24)}let B=o?"center":i.get("text-justify").evaluate(p,{},t.canonical),V=i.get("symbol-placement")==="point"?i.get("text-max-width").evaluate(p,{},t.canonical)*24:1/0,F=()=>{t.bucket.allowVerticalPlacement&&nl(A)&&(g.vertical=na(x,t.glyphMap,t.glyphPositions,t.imagePositions,f,V,s,L,"left",T,v,2,!0,y,d))};if(!o&&O){let $=new Set;if(B==="auto")for(let P=0;P{z.x<0||z.x>=8192||z.y<0||z.y>=8192||Qb(t,z,P,r,i,n,F,t.layers[0],t.collisionBoxArray,e.index,e.sourceLayerIndex,t.index,x,[_,_,_,_],T,l,b,A,L,y,e,a,u,h,s,p)};if(O==="line")for(let P of Ob(e.geometry,0,0,gt,gt)){let z=yr(P,$),it=Vb(z,w,S,r.vertical||m,i,24,v,t.overscaling,gt);for(let dt of it){let ct=m;(!ct||!tw(t,ct.text,B,dt))&&G(z,dt)}}else if(O==="line-center"){for(let P of e.geometry)if(P.length>1){let z=yr(P,$),it=Lb(z,S,r.vertical||m,i,24,v);it&&G(z,it)}}else if(e.type==="Polygon")for(let P of Na(e.geometry,0)){let z=Gb(P,16);G(yr(P[0],$,!0),new Jr(z.x,z.y,0))}else if(e.type==="LineString")for(let P of e.geometry){let z=yr(P,$);G(z,new Jr(z[0].x,z[0].y,0))}else if(e.type==="Point")for(let P of e.geometry)for(let z of P)G([z],new Jr(z.x,z.y,0))}function Jb(t,e){let r=t.length,i=e==null?void 0:e.values;if((i==null?void 0:i.length)>0)for(let n=0;n32640&&Mt(`${t.layerIds[0]}: Value for "text-size" is >= 255. Reduce your "text-size".`)):g.kind==="composite"&&(x=[128*d.compositeTextSizes[0].evaluate(s,{},y),128*d.compositeTextSizes[1].evaluate(s,{},y)],(x[0]>32640||x[1]>32640)&&Mt(`${t.layerIds[0]}: Value for "text-size" is >= 255. Reduce your "text-size".`)),t.addSymbols(t.text,m,x,o,a,s,h,e,u.lineStartIndex,u.lineLength,f,y,l);for(let v of c)p[v]=t.text.placedSymbolArray.length-1;return m.length*4}function Ay(t){for(let e in t)return t[e];return null}function Qb(t,e,r,i,n,a,s,o,l,u,h,c,p,f,d,y,m,g,x,v,b,w,_,A,S,T){let L=t.addToLineVertexArray(e,r),O=o.layout.get("symbol-height-offset").evaluate(b,{},A);O>t.maxHeightOffset&&(t.maxHeightOffset=O);let B,V,F,$,G=0,P=0,z=0,it=0,dt=-1,ct=-1,pt={},Kt=(0,Ea.default)("");if(t.allowVerticalPlacement&&i.vertical){let Y=o.layout.get("text-rotate").evaluate(b,{},A)+90,k=i.vertical;F=new la(l,e,u,h,c,k,p,f,d,Y),s&&($=new la(l,e,u,h,c,s,m,g,d,Y))}if(n){let Y=o.layout.get("icon-rotate").evaluate(b,{}),k=o.layout.get("icon-text-fit")!=="none",ot=Kc(n,Y,_,k),X=s?Kc(s,Y,_,k):void 0;V=new la(l,e,u,h,c,n,m,g,!1,Y),G=ot.length*4;let K=t.iconSizeData,j=null;K.kind==="source"?(j=[128*o.layout.get("icon-size").evaluate(b,{})],j[0]>32640&&Mt(`${t.layerIds[0]}: Value for "icon-size" is >= 255. Reduce your "icon-size".`)):K.kind==="composite"&&(j=[128*w.compositeIconSizes[0].evaluate(b,{},A),128*w.compositeIconSizes[1].evaluate(b,{},A)],(j[0]>32640||j[1]>32640)&&Mt(`${t.layerIds[0]}: Value for "icon-size" is >= 255. Reduce your "icon-size".`)),t.addSymbols(t.icon,ot,j,v,x,b,0,e,L.lineStartIndex,L.lineLength,-1,A,O),dt=t.icon.placedSymbolArray.length-1,X&&(P=X.length*4,t.addSymbols(t.icon,X,j,v,x,b,2,e,L.lineStartIndex,L.lineLength,-1,A,O),ct=t.icon.placedSymbolArray.length-1)}let jt=Object.keys(i.horizontal);for(let Y of jt){let k=i.horizontal[Y];B||(B=(Kt=(0,Ea.default)(k.text),new la(l,e,u,h,c,k,p,f,d,o.layout.get("text-rotate").evaluate(b,{},A))));let ot=k.positionedLines.length===1;if(z+=tp(t,e,k,a,o,d,b,y,O,L,i.vertical?1:3,ot?jt:[Y],pt,dt,w,A),ot)break}i.vertical&&(it+=tp(t,e,i.vertical,a,o,d,b,y,O,L,2,["vertical"],pt,ct,w,A));let Jt=B?B.boxStartIndex:t.collisionBoxArray.length,Oe=B?B.boxEndIndex:t.collisionBoxArray.length,Gt=F?F.boxStartIndex:t.collisionBoxArray.length,Re=F?F.boxEndIndex:t.collisionBoxArray.length,$e=V?V.boxStartIndex:t.collisionBoxArray.length,sr=V?V.boxEndIndex:t.collisionBoxArray.length,fi=$?$.boxStartIndex:t.collisionBoxArray.length,Te=$?$.boxEndIndex:t.collisionBoxArray.length,$t=-1,ke=(Y,k)=>Y!=null&&Y.circleDiameter?Math.max(Y.circleDiameter,k):k;$t=ke(B,$t),$t=ke(F,$t),$t=ke(V,$t),$t=ke($,$t);let or=+($t>-1);or&&($t*=S/24),t.glyphOffsetArray.length>=t.maxGlyphs&&Mt("Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907"),b.sortKey!==void 0&&t.addToSortKeyRanges(t.symbolInstances.length,b.sortKey);let Ir=_y(o,b,A),[N,at]=Jb(t.textAnchorOffsets,Ir);T&&(Kt=ew(Kt,b)),t.symbolInstances.emplaceBack(e.x,e.y,pt.right>=0?pt.right:-1,pt.center>=0?pt.center:-1,pt.left>=0?pt.left:-1,pt.vertical||-1,dt,ct,Kt,Jt,Oe,Gt,Re,$e,sr,fi,Te,u,z,it,G,P,or,0,p,$t,N,at,O)}function tw(t,e,r,i){let n=t.compareText;if(!(e in n))n[e]=[];else{let a=n[e];for(let s=a.length-1;s>=0;s--)if(i.dist(a[s])s.id),this.index=t.index,this.pixelRatio=t.pixelRatio,this.sourceLayerIndex=t.sourceLayerIndex,this.hasDependencies=!0,this.hasRTLText=!1,this.maxHeightOffset=0,this.sortKeyRanges=[],this.collisionCircleArray=[],this.maxGlyphs=65535;let e=this.layers[0]._unevaluatedLayout._values;this.textSizeData=Wc(this.zoom,e["text-size"]),this.iconSizeData=Wc(this.zoom,e["icon-size"]);let r=this.layers[0].layout,i=r.get("symbol-sort-key"),n=r.get("symbol-z-order");this.canOverlap=ep(r,"text-overlap","text-allow-overlap")!=="never"||ep(r,"icon-overlap","icon-allow-overlap")!=="never"||r.get("text-ignore-placement")||r.get("icon-ignore-placement"),this.sortFeaturesByKey=n!=="viewport-y"&&!i.isConstant();let a=n==="viewport-y"||n==="auto"&&!this.sortFeaturesByKey;this.sortFeaturesByY=a&&this.canOverlap,r.get("symbol-placement")==="point"&&(this.writingModes=r.get("text-writing-mode").map(s=>uy[s])),this.stateDependentLayerIds=this.layers.filter(s=>s.isStateDependent()).map(s=>s.id),this.sourceID=t.sourceID}createArrays(){this.text=new ll(new Dr(this.layers,this.zoom,t=>t.startsWith("text"))),this.icon=new ll(new Dr(this.layers,this.zoom,t=>t.startsWith("icon"))),this.glyphOffsetArray=new ud,this.lineVertexArray=new hd,this.symbolInstances=new ld,this.textAnchorOffsets=new pd}calculateGlyphDependencies(t,e,r,i,n){var l;let a=(i||this.allowVerticalPlacement)&&n,s=su.fromFeature(t,r),o=s.graphemes();for(let u=0;u0)&&(a.value.kind!=="constant"||a.value.value.length>0),u=o.value.kind!=="constant"||!!o.value.value||Object.keys(o.parameters).length>0,h=n.get("symbol-sort-key");if(this.features=[],!l&&!u)return;let c=e.iconDependencies,p=e.glyphDependencies,f=e.availableImages,d=new st(this.zoom);for(let{feature:m,id:g,index:x,sourceLayerIndex:v}of t){let b=i._featureFilter.needGeometry,w=hi(m,b);if(!i._featureFilter.filter(d,w,r))continue;b||(w.geometry=Fr(m));let _;if(l){let L=i.getValueAndResolveTokens("text-field",w,r,f),O=Le.factory(L);this.hasRTLText||(this.hasRTLText=nw(O)),_=Tv(O,i,w)}let A;if(u){let L=i.getValueAndResolveTokens("icon-image",w,r,f);A=L instanceof Se?L:Se.fromString(L)}if(!_&&!A)continue;let S=this.sortFeaturesByKey?h.evaluate(w,{},r):void 0,T={id:g,text:_,icon:A,index:x,sourceLayerIndex:v,geometry:w.geometry,properties:m.properties,type:Fn.types[m.type],sortKey:S};if(this.features.push(T),A&&(c[A.name]=!0),_){let L=a.evaluate(w,{},r).join(","),O=n.get("text-rotation-alignment")!=="viewport"&&n.get("symbol-placement")!=="point";this.allowVerticalPlacement=(y=this.writingModes)==null?void 0:y.includes(2);let B=nl(_.toString());this.calculateGlyphDependencies(_,p,L,O,B);for(let V of _.sections)V.image&&(c[V.image.name]=!0)}}n.get("symbol-placement")==="line"&&(this.features=Iv(this.features)),this.sortFeaturesByKey&&this.features.sort((m,g)=>m.sortKey-g.sortKey)}update(t,e,r){this.stateDependentLayers.length&&(this.text.programConfigurations.updatePaintArrays(t,e,this.layers,{imagePositions:r}),this.icon.programConfigurations.updatePaintArrays(t,e,this.layers,{imagePositions:r}))}addFeatures({options:t,canonical:e,glyphMap:r,glyphPositions:i,iconMap:n,iconPositions:a,showCollisionBoxes:s}){Hb({bucket:this,glyphMap:r,glyphPositions:i,imageMap:n,imagePositions:a,showCollisionBoxes:s,canonical:e,subdivisionGranularity:t.subdivisionGranularity,hasPromoteId:t.featureIndex.promoteId!=null})}isEmpty(){return this.symbolInstances.length===0}uploadPending(){return!this.uploaded||this.text.programConfigurations.needsUpload||this.icon.programConfigurations.needsUpload}upload(t){!this.uploaded&&this.hasDebugData()&&(this.textCollisionBox.upload(t),this.iconCollisionBox.upload(t)),this.text.upload(t,this.sortFeaturesByY,!this.uploaded,this.text.programConfigurations.needsUpload),this.icon.upload(t,this.sortFeaturesByY,!this.uploaded,this.icon.programConfigurations.needsUpload),this.uploaded=!0}destroyDebugData(){this.textCollisionBox.destroy(),this.iconCollisionBox.destroy()}destroy(){this.text.destroy(),this.icon.destroy(),this.hasDebugData()&&this.destroyDebugData()}addToLineVertexArray(t,e){let r=this.lineVertexArray.length;if(t.segment!==void 0){let i=t.dist(e[t.segment+1]),n=t.dist(e[t.segment]),a={};for(let s=t.segment+1;s=0;s--)a[s]={x:e[s].x,y:e[s].y,tileUnitDistanceFromAnchor:n},s>0&&(n+=e[s-1].dist(e[s]));for(let s=0;s0}hasIconData(){return this.icon.segments.get().length>0}hasDebugData(){return this.textCollisionBox&&this.iconCollisionBox}hasTextCollisionBoxData(){return this.hasDebugData()&&this.textCollisionBox.segments.get().length>0}hasIconCollisionBoxData(){return this.hasDebugData()&&this.iconCollisionBox.segments.get().length>0}addIndicesForPlacedSymbol(t,e){let r=t.placedSymbolArray.get(e),i=r.vertexStartIndex+r.numGlyphs*4;for(let n=r.vertexStartIndex;ni[s]-i[o]||n[o]-n[s]),a}addToSortKeyRanges(t,e){let r=this.sortKeyRanges[this.sortKeyRanges.length-1];(r==null?void 0:r.sortKey)===e?r.symbolInstanceEnd=t+1:this.sortKeyRanges.push({sortKey:e,symbolInstanceStart:t,symbolInstanceEnd:t+1})}sortFeatures(t){if(this.sortFeaturesByY&&this.sortedAngle!==t&&!(this.text.segments.get().length>1||this.icon.segments.get().length>1)){this.symbolInstanceIndexes=this.getSortedSymbolIndexes(t),this.sortedAngle=t,this.text.indexArray.clear(),this.icon.indexArray.clear(),this.featureSortOrder=[];for(let e of this.symbolInstanceIndexes){let r=this.symbolInstances.get(e);this.featureSortOrder.push(r.featureIndex);let i=[r.rightJustifiedTextSymbolIndex,r.centerJustifiedTextSymbolIndex,r.leftJustifiedTextSymbolIndex];for(let n=0;n=0&&i.indexOf(a)===n&&this.addIndicesForPlacedSymbol(this.text,a)}r.verticalPlacedTextSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.text,r.verticalPlacedTextSymbolIndex),r.placedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,r.placedIconSymbolIndex),r.verticalPlacedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,r.verticalPlacedIconSymbolIndex)}this.text.indexBuffer&&this.text.indexBuffer.updateData(this.text.indexArray),this.icon.indexBuffer&&this.icon.indexBuffer.updateData(this.icon.indexArray)}}};C("SymbolBucket",Sy,{omit:["layers","collisionBoxArray","features","compareText"]});function aw(t,e){return e.replace(/{([^{}]+)}/g,(r,i)=>t&&i in t?String(t[i]):"")}var rp,sw=()=>rp||(rp=new Yt({"symbol-placement":new R(D.layout_symbol["symbol-placement"],"symbol-placement"),"symbol-spacing":new R(D.layout_symbol["symbol-spacing"],"symbol-spacing"),"symbol-avoid-edges":new R(D.layout_symbol["symbol-avoid-edges"],"symbol-avoid-edges"),"symbol-sort-key":new U(D.layout_symbol["symbol-sort-key"],"symbol-sort-key"),"symbol-z-order":new R(D.layout_symbol["symbol-z-order"],"symbol-z-order"),"icon-allow-overlap":new R(D.layout_symbol["icon-allow-overlap"],"icon-allow-overlap"),"icon-overlap":new R(D.layout_symbol["icon-overlap"],"icon-overlap"),"icon-ignore-placement":new R(D.layout_symbol["icon-ignore-placement"],"icon-ignore-placement"),"icon-optional":new R(D.layout_symbol["icon-optional"],"icon-optional"),"icon-rotation-alignment":new U(D.layout_symbol["icon-rotation-alignment"],"icon-rotation-alignment"),"icon-size":new U(D.layout_symbol["icon-size"],"icon-size"),"icon-text-fit":new R(D.layout_symbol["icon-text-fit"],"icon-text-fit"),"icon-text-fit-padding":new R(D.layout_symbol["icon-text-fit-padding"],"icon-text-fit-padding"),"icon-image":new U(D.layout_symbol["icon-image"],"icon-image"),"icon-rotate":new U(D.layout_symbol["icon-rotate"],"icon-rotate"),"icon-padding":new U(D.layout_symbol["icon-padding"],"icon-padding"),"icon-keep-upright":new R(D.layout_symbol["icon-keep-upright"],"icon-keep-upright"),"icon-offset":new U(D.layout_symbol["icon-offset"],"icon-offset"),"icon-anchor":new U(D.layout_symbol["icon-anchor"],"icon-anchor"),"icon-pitch-alignment":new R(D.layout_symbol["icon-pitch-alignment"],"icon-pitch-alignment"),"text-pitch-alignment":new R(D.layout_symbol["text-pitch-alignment"],"text-pitch-alignment"),"text-rotation-alignment":new R(D.layout_symbol["text-rotation-alignment"],"text-rotation-alignment"),"text-field":new U(D.layout_symbol["text-field"],"text-field"),"text-font":new U(D.layout_symbol["text-font"],"text-font"),"text-size":new U(D.layout_symbol["text-size"],"text-size"),"text-max-width":new U(D.layout_symbol["text-max-width"],"text-max-width"),"text-line-height":new R(D.layout_symbol["text-line-height"],"text-line-height"),"text-letter-spacing":new U(D.layout_symbol["text-letter-spacing"],"text-letter-spacing"),"text-justify":new U(D.layout_symbol["text-justify"],"text-justify"),"text-radial-offset":new U(D.layout_symbol["text-radial-offset"],"text-radial-offset"),"text-variable-anchor":new R(D.layout_symbol["text-variable-anchor"],"text-variable-anchor"),"text-variable-anchor-offset":new U(D.layout_symbol["text-variable-anchor-offset"],"text-variable-anchor-offset"),"text-anchor":new U(D.layout_symbol["text-anchor"],"text-anchor"),"text-max-angle":new R(D.layout_symbol["text-max-angle"],"text-max-angle"),"text-writing-mode":new R(D.layout_symbol["text-writing-mode"],"text-writing-mode"),"text-rotate":new U(D.layout_symbol["text-rotate"],"text-rotate"),"text-padding":new R(D.layout_symbol["text-padding"],"text-padding"),"text-keep-upright":new R(D.layout_symbol["text-keep-upright"],"text-keep-upright"),"text-transform":new U(D.layout_symbol["text-transform"],"text-transform"),"text-offset":new U(D.layout_symbol["text-offset"],"text-offset"),"text-allow-overlap":new R(D.layout_symbol["text-allow-overlap"],"text-allow-overlap"),"text-overlap":new R(D.layout_symbol["text-overlap"],"text-overlap"),"text-ignore-placement":new R(D.layout_symbol["text-ignore-placement"],"text-ignore-placement"),"text-optional":new R(D.layout_symbol["text-optional"],"text-optional"),"symbol-height-offset":new U(D.layout_symbol["symbol-height-offset"],"symbol-height-offset"),"symbol-height-anchor":new R(D.layout_symbol["symbol-height-anchor"],"symbol-height-anchor")})),ip,ow=()=>ip||(ip=new Yt({"icon-opacity":new U(D.paint_symbol["icon-opacity"],"icon-opacity"),"icon-color":new U(D.paint_symbol["icon-color"],"icon-color"),"icon-halo-color":new U(D.paint_symbol["icon-halo-color"],"icon-halo-color"),"icon-halo-width":new U(D.paint_symbol["icon-halo-width"],"icon-halo-width"),"icon-halo-blur":new U(D.paint_symbol["icon-halo-blur"],"icon-halo-blur"),"icon-translate":new R(D.paint_symbol["icon-translate"],"icon-translate"),"icon-translate-anchor":new R(D.paint_symbol["icon-translate-anchor"],"icon-translate-anchor"),"text-opacity":new U(D.paint_symbol["text-opacity"],"text-opacity"),"text-color":new U(D.paint_symbol["text-color"],"text-color",{runtimeType:pe,getOverride:t=>t.textColor,hasOverride:t=>!!t.textColor}),"text-halo-color":new U(D.paint_symbol["text-halo-color"],"text-halo-color"),"text-halo-width":new U(D.paint_symbol["text-halo-width"],"text-halo-width"),"text-halo-blur":new U(D.paint_symbol["text-halo-blur"],"text-halo-blur"),"text-translate":new R(D.paint_symbol["text-translate"],"text-translate"),"text-translate-anchor":new R(D.paint_symbol["text-translate-anchor"],"text-translate-anchor")})),Zs={get paint(){return ow()},get layout(){return sw()}},Ey=class{constructor(t){if(t.property.overrides===void 0)throw Error("overrides must be provided to instantiate FormatSectionOverride class");this.type=t.property.overrides?t.property.overrides.runtimeType:vn,this.defaultValue=t}evaluate(t){if(t.formattedSection){let e=this.defaultValue.property.overrides;if(e!=null&&e.hasOverride(t.formattedSection))return e.getOverride(t.formattedSection)}return t.feature&&t.featureState?this.defaultValue.evaluate(t.feature,t.featureState):this.defaultValue.property.specification.default}eachChild(t){if(!this.defaultValue.isConstant()){let e=this.defaultValue.value;t(e._styleExpression.expression)}}outputDefined(){return!1}serialize(){return null}};C("FormatSectionOverride",Ey,{omit:["defaultValue"]});var lw=class hl extends ye{constructor(e,r){super(e,Zs,r)}recalculate(e,r){super.recalculate(e,r);let i=this.layout.get("icon-rotation-alignment");if((i.value.kind!=="constant"||i.value.value==="auto")&&(this.layout._values["icon-rotation-alignment"]=new le(i.property,{kind:"constant",value:this.layout.get("symbol-placement")==="point"?"viewport":"map"},i.parameters)),this.layout.get("text-rotation-alignment")==="auto"&&(this.layout.get("symbol-placement")==="point"?this.layout._values["text-rotation-alignment"]="viewport":this.layout._values["text-rotation-alignment"]="map"),this.layout.get("text-pitch-alignment")==="auto"&&(this.layout._values["text-pitch-alignment"]=this.layout.get("text-rotation-alignment")==="map"?"map":"viewport"),this.layout.get("icon-pitch-alignment")==="auto"&&(this.layout._values["icon-pitch-alignment"]=this.layout.get("icon-rotation-alignment").constantOr("viewport")),this.layout.get("symbol-placement")==="point"){let n=this.layout.get("text-writing-mode");if(n){let a=[];for(let s of n)a.includes(s)||a.push(s);this.layout._values["text-writing-mode"]=a}else this.layout._values["text-writing-mode"]=["horizontal"]}this._setPaintOverrides()}getValueAndResolveTokens(e,r,i,n){let a=this.layout.get(e).evaluate(r,{},i,n),s=this._unevaluatedLayout._values[e];return!s.isDataDriven()&&!Xa(s.value)&&a?aw(r.properties,a):a}createBucket(e){return new Sy(e)}queryRadius(){return 0}queryIntersectsFeature(){throw Error("Should take a different path in FeatureIndex")}_setPaintOverrides(){for(let e of Zs.paint.overridableProperties){if(!hl.hasPaintOverride(this.layout,e))continue;let r=this.paint.get(e),i=new Bl(new Ey(r),`layers[${this.id}].paint.${r.property.name}`,r.property.specification),n=null;n=r.value.kind==="constant"||r.value.kind==="source"?new ln("source",i):new _a("composite",i,r.value.zoomStops),this.paint._values[e]=new le(r.property,n,r.parameters)}}_handleOverridablePaintPropertyUpdate(e,r,i){return!this.layout||r.isDataDriven()||i.isDataDriven()?!1:hl.hasPaintOverride(this.layout,e)}static hasPaintOverride(e,r){let i=e.get("text-field"),n=Zs.paint.properties[r],a=!1,s=o=>{var l;for(let u of o)if((l=n.overrides)!=null&&l.hasOverride(u)){a=!0;return}};if(i.value.kind==="constant"&&i.value.value instanceof Le)s(i.value.value.sections);else if(i.value.kind==="source"||i.value.kind==="composite"){let o=u=>{if(!a)if(u instanceof ri&&St(u.value)===bn){let h=u.value;s(h.sections)}else u instanceof Yp?s(u.sections):u.eachChild(o)},l=i.value;l._styleExpression&&o(l._styleExpression.expression)}return a}};function uw(t,e,r,i=1){var a;let n=(a=t.get("icon-padding").evaluate(e,{},r))==null?void 0:a.values;return[n[0]*i,n[1]*i,n[2]*i,n[3]*i]}var np,hw=()=>np||(np=new Yt({"background-color":new R(D.paint_background["background-color"],"background-color"),"background-pattern":new id(D.paint_background["background-pattern"],"background-pattern"),"background-opacity":new R(D.paint_background["background-opacity"],"background-opacity")})),cw={get paint(){return hw()}};var pw=class extends ye{constructor(t,e){super(t,cw,e)}};var fw=class extends ye{constructor(t,e){super(t,{},e),this.onAdd=r=>{this.implementation.onAdd&&this.implementation.onAdd(r,r.painter.context.gl)},this.onRemove=r=>{this.implementation.onRemove&&this.implementation.onRemove(r,r.painter.context.gl)},this.implementation=t}is3D(){return this.implementation.renderingMode==="3d"}hasOffscreenPass(){return this.implementation.prerender!==void 0}recalculate(){}updateTransitions(){}hasTransition(){return!1}serialize(){throw Error("Custom layers cannot be serialized")}};function Fy(t,e){if(t.type==="custom")return new fw(t,e);switch(t.type){case"background":return new pw(t,e);case"circle":return new Kg(t,e);case"color-relief":return new lx(t,e);case"fill":return new $x(t,e);case"fill-extrusion":return new u2(t,e);case"heatmap":return new rx(t,e);case"hillshade":return new ax(t,e);case"line":return new rv(t,e);case"raster":return new pg(t,e);case"symbol":return new lw(t,e)}}var dw=class{constructor(t){this._methodToThrottle=t,this._triggered=!1,this._channel=new MessageChannel,this._channel.port2.onmessage=()=>{this._triggered=!1,this._methodToThrottle()}}trigger(){var t;this._triggered||(this._triggered=!0,(t=this._channel)==null||t.port1.postMessage(!0))}remove(){delete this._channel,this._methodToThrottle=()=>{}}},yw={once:!0},Ty=class{constructor(t,e){this.target=t,this.mapId=e,this.resolveRejects={},this.tasks={},this.taskQueue=[],this.abortControllers={},this.messageHandlers={},this.invoker=new dw(()=>this.process()),this.subscription=dh(this.target,"message",r=>this.receive(r),!1),this.globalScope=vr(self)?t:window}registerMessageHandler(t,e){this.messageHandlers[t]=e}unregisterMessageHandler(t){delete this.messageHandlers[t]}sendAsync(t,e){return new Promise((r,i)=>{let n=Math.round(Math.random()*1e18).toString(36).substring(0,10),a=e?dh(e.signal,"abort",()=>{a==null||a.unsubscribe(),delete this.resolveRejects[n];let l={id:n,type:"",origin:location.origin,targetMapId:t.targetMapId,sourceMapId:this.mapId};this.target.postMessage(l),i(new gl(e.signal.reason))},yw):null;this.resolveRejects[n]={resolve:l=>{a==null||a.unsubscribe(),r(l)},reject:l=>{a==null||a.unsubscribe(),i(l)}};let s=[],o=Si(Xe({},t),{id:n,sourceMapId:this.mapId,origin:location.origin,data:Hi(t.data,s)});this.target.postMessage(o,{transfer:s})})}receive(t){let e=t.data,r=e.id,i=["file://","resource://android","null"],n=[e.origin,location.origin],a=e.origin===location.origin,s=n.some(o=>i.includes(o));if((a||s)&&!(e.targetMapId&&this.mapId!==e.targetMapId)){if(e.type===""){delete this.tasks[r];let o=this.abortControllers[r];delete this.abortControllers[r],o&&o.abort();return}if(vr(self)||e.mustQueue){this.tasks[r]=e,this.taskQueue.push(r),this.invoker.trigger();return}this.processTask(r,e)}}process(){if(this.taskQueue.length===0)return;let t=this.taskQueue.shift(),e=this.tasks[t];delete this.tasks[t],this.taskQueue.length>0&&this.invoker.trigger(),e&&this.processTask(t,e)}processTask(t,e){return et(this,null,function*(){if(e.type===""){let n=this.resolveRejects[t];if(delete this.resolveRejects[t],!n)return;e.error?n.reject(tn(Ki(e.error))):n.resolve(Ki(e.data));return}if(!this.messageHandlers[e.type]){this.completeTask(t,null,null);return}let r=Ki(e.data),i=new AbortController;this.abortControllers[t]=i;try{let n=yield this.messageHandlers[e.type](e.sourceMapId,r,i);this.completeTask(t,null,n)}catch(n){this.completeTask(t,tn(n))}})}completeTask(t,e,r){let i=[];delete this.abortControllers[t];let n={id:t,type:"",sourceMapId:this.mapId,origin:location.origin,error:e?Hi(e):null,data:Hi(r,i)};this.target.postMessage(n,{transfer:i})}remove(){this.invoker.remove(),this.subscription.unsubscribe()}};function mw(t,e,r){return!(t<0||t>25||r<0||r>=2**t||e<0||e>=2**t)}var ky=class{constructor(t,e,r){if(!mw(t,e,r))throw Error(`x=${e}, y=${r}, z=${t} outside of bounds. 0<=x<${2**t}, 0<=y<${2**t} 0<=z<=25 `);this.z=t,this.x=e,this.y=r,this.key=Qi(0,t,t,e,r)}equals(t){return this.z===t.z&&this.x===t.x&&this.y===t.y}url(t,e,r){let i=xw(this.x,this.y,this.z),n=vw(this.z,this.x,this.y);return t[(this.x+this.y)%t.length].replace(/{prefix}/g,(this.x%16).toString(16)+(this.y%16).toString(16)).replace(/{z}/g,String(this.z)).replace(/{x}/g,String(this.x)).replace(/{y}/g,String(r==="tms"?2**this.z-this.y-1:this.y)).replace(/{ratio}/g,e>1?"@2x":"").replace(/{quadkey}/g,n).replace(/{bbox-epsg-3857}/g,i)}isChildOf(t){let e=this.z-t.z;return e>0&&t.x===this.x>>e&&t.y===this.y>>e}getTilePoint(t){let e=2**this.z;return new M((t.x*e-this.x)*gt,(t.y*e-this.y)*gt)}toString(){return`${this.z}/${this.x}/${this.y}`}},gw=class{constructor(t,e){this.wrap=t,this.canonical=e,this.key=Qi(t,e.z,e.z,e.x,e.y)}},pu=class se{constructor(e,r,i,n,a){if(this.terrainRttPosMatrix32f=null,e= z; overscaledZ = ${e}; z = ${i}`);this.overscaledZ=e,this.wrap=r,this.canonical=new ky(i,+n,+a),this.key=Qi(r,e,i,n,a)}clone(){return new se(this.overscaledZ,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)}equals(e){return this.overscaledZ===e.overscaledZ&&this.wrap===e.wrap&&this.canonical.equals(e.canonical)}scaledTo(e){if(e>this.overscaledZ)throw Error(`targetZ > this.overscaledZ; targetZ = ${e}; overscaledZ = ${this.overscaledZ}`);let r=this.canonical.z-e;return e>this.canonical.z?new se(e,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y):new se(e,this.wrap,e,this.canonical.x>>r,this.canonical.y>>r)}isOverscaled(){return this.overscaledZ>this.canonical.z}calculateScaledKey(e,r){if(e>this.overscaledZ)throw Error(`targetZ > this.overscaledZ; targetZ = ${e}; overscaledZ = ${this.overscaledZ}`);let i=this.canonical.z-e;return e>this.canonical.z?Qi(this.wrap*+r,e,this.canonical.z,this.canonical.x,this.canonical.y):Qi(this.wrap*+r,e,e,this.canonical.x>>i,this.canonical.y>>i)}isChildOf(e){if(e.wrap!==this.wrap||this.overscaledZ-e.overscaledZ<=0)return!1;if(e.overscaledZ===0)return this.overscaledZ>0;let r=this.canonical.z-e.canonical.z;return r<0?!1:e.canonical.x===this.canonical.x>>r&&e.canonical.y===this.canonical.y>>r}children(e){if(this.overscaledZ>=e)return[new se(this.overscaledZ+1,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)];let r=this.canonical.z+1,i=this.canonical.x*2,n=this.canonical.y*2;return[new se(r,this.wrap,r,i,n),new se(r,this.wrap,r,i+1,n),new se(r,this.wrap,r,i,n+1),new se(r,this.wrap,r,i+1,n+1)]}isLessThan(e){return this.wrape.wrap?!1:this.overscaledZe.overscaledZ?!1:this.canonical.xe.canonical.x?!1:this.canonical.y=0&&e=0&&r=u)return null;let c=this.canonical.x+n,p=this.wrap;return c<0?(p-=Math.ceil(-c/u),c=(c%u+u)%u):c>=u&&(p+=Math.floor(c/u),c%=u),{tileID:new se(this.overscaledZ,p,l,c,h),x:s,y:o}}};function Qi(t,e,r,i,n){t*=2,t<0&&(t=t*-1-1);let a=1<0;n--){let a=1<Dw(n,a,r),t.layers[i])}function Dw(t,e,r=""){e.writeVarintField(15,t.version||1),e.writeStringField(1,t.name||""),e.writeVarintField(5,t.extent||4096);let i={jsonPrefix:r,keys:[],values:[],keycache:{},valuecache:{}};for(let s=0;s>31}function Sw(t,e){let r=t.loadGeometry(),i=t.type,n=0,a=0;for(let s of r){let o=1;i===1&&(o=s.length),e.writeVarint(Ks(1,o));let l=i===3?s.length-1:s.length;for(let u=0;u=this._numberToString.length)throw Error(`Out of bounds. Index requested n=${t} can\'t be >= this._numberToString.length ${this._numberToString.length}`);return this._numberToString[t]}},Fw=class{constructor(t,e,r,i,n){this.type="Feature",this._vectorTileFeature=t,this._x=r,this._y=i,this._z=e;for(let a in t.properties)typeof t.properties[a]=="string"&&t.properties[a].startsWith("__$json__:")&&(t.properties[a]=JSON.parse(t.properties[a].slice(10)));this.properties=t.properties,this.id=n}projectPoint(t,e,r,i){return[(t.x+e)*360/i-180,360/Math.PI*Math.atan(Math.exp((1-(t.y+r)*2/i)*Math.PI))-90]}projectLine(t,e,r,i){return t.map(n=>this.projectPoint(n,e,r,i))}get geometry(){if(this._geometry)return this._geometry;let t=this._vectorTileFeature,e=t.extent*2**this._z,r=t.extent*this._x,i=t.extent*this._y,n=t.loadGeometry();switch(t.type){case 1:{let a=[];for(let o of n)a.push(o[0]);let s=this.projectLine(a,r,i,e);this._geometry=a.length===1?{type:"Point",coordinates:s[0]}:{type:"MultiPoint",coordinates:s};break}case 2:{let a=n.map(s=>this.projectLine(s,r,i,e));this._geometry=a.length===1?{type:"LineString",coordinates:a[0]}:{type:"MultiLineString",coordinates:a};break}case 3:{let a=Ld(n),s=[];for(let o of a)s.push(o.map(l=>this.projectLine(l,r,i,e)));this._geometry=s.length===1?{type:"Polygon",coordinates:s[0]}:{type:"MultiPolygon",coordinates:s};break}default:throw Error(`unknown feature type: ${t.type}`)}return this._geometry}set geometry(t){this._geometry=t}toJSON(){let t={geometry:this.geometry};for(let e in this)e!=="_geometry"&&e!=="_vectorTileFeature"&&e!=="_x"&&e!=="_y"&&e!=="_z"&&(t[e]=this[e]);return t}},Tr=class{constructor(t,e,r){this._name=t,this.dataBuffer=e,typeof r=="number"?this._size=r:(this.nullabilityBuffer=r,this._size=r.size())}getValue(t){return this.nullabilityBuffer&&!this.nullabilityBuffer.get(t)?null:this.getValueFromBuffer(t)}has(t){var e;return((e=this.nullabilityBuffer)==null?void 0:e.get(t))||!this.nullabilityBuffer}get name(){return this._name}get size(){return this._size}},es=class extends Tr{},yu=class extends es{getValueFromBuffer(t){return this.dataBuffer[t]}},mu=class extends es{getValueFromBuffer(t){return this.dataBuffer[t]}},Cy=class extends Tr{constructor(t,e,r,i){super(t,e,i),this.delta=r}},gu=class extends Cy{constructor(t,e,r,i,n){super(t,n?Int32Array.of(e):Uint32Array.of(e),r,i)}getValueFromBuffer(t){return this.dataBuffer[0]+t*this.delta}},xu=class extends Tr{constructor(t,e,r,i){super(t,i?Int32Array.of(e):Uint32Array.of(e),r)}getValueFromBuffer(t){return this.dataBuffer[0]}},Tw=class{constructor(t,e,r,i,n=4096){if(this._name=t,this._geometryVector=e,this._idVector=r,this._propertyVectors=i,this._extent=n,t.length===0)throw Error("Missing layer name")}get name(){return this._name}get idVector(){return this._idVector}get geometryVector(){return this._geometryVector}get propertyVectors(){var t;return(t=this._propertyVectors)!=null?t:[]}getPropertyVector(t){return this.propertyVectorsMap||(this.propertyVectorsMap=new Map(this.propertyVectors.map(e=>[e.name,e]))),this.propertyVectorsMap.get(t)}get numFeatures(){return this.geometryVector.numGeometries}get extent(){return this._extent}getFeatures(){let t=[],e=this.geometryVector.getGeometries();for(let r=0;r>>32-t;var pl=vu,bu=65536;function wu(t,e){return t-t%e}function kw(t){return wu(t+31,32)}function Py(t){if(!Number.isFinite(t)||t<=0)return bu;let e=wu(Math.floor(t),256);return e===0?256:e}function Iw(t){let e=t>>>0;return((e&255)<<24|(e&65280)<<8|e>>>8&65280|e>>>24&255)>>>0}function Cw(t,e,r,i){let n=i,a=t[e]>>>0,s=t[e+1]>>>0;r[n++]=a>>>0&3,r[n++]=a>>>2&3,r[n++]=a>>>4&3,r[n++]=a>>>6&3,r[n++]=a>>>8&3,r[n++]=a>>>10&3,r[n++]=a>>>12&3,r[n++]=a>>>14&3,r[n++]=a>>>16&3,r[n++]=a>>>18&3,r[n++]=a>>>20&3,r[n++]=a>>>22&3,r[n++]=a>>>24&3,r[n++]=a>>>26&3,r[n++]=a>>>28&3,r[n++]=a>>>30&3,r[n++]=s>>>0&3,r[n++]=s>>>2&3,r[n++]=s>>>4&3,r[n++]=s>>>6&3,r[n++]=s>>>8&3,r[n++]=s>>>10&3,r[n++]=s>>>12&3,r[n++]=s>>>14&3,r[n++]=s>>>16&3,r[n++]=s>>>18&3,r[n++]=s>>>20&3,r[n++]=s>>>22&3,r[n++]=s>>>24&3,r[n++]=s>>>26&3,r[n++]=s>>>28&3,r[n]=s>>>30&3}function Mw(t,e,r,i){let n=i,a=t[e]>>>0,s=t[e+1]>>>0,o=t[e+2]>>>0;r[n++]=a>>>0&7,r[n++]=a>>>3&7,r[n++]=a>>>6&7,r[n++]=a>>>9&7,r[n++]=a>>>12&7,r[n++]=a>>>15&7,r[n++]=a>>>18&7,r[n++]=a>>>21&7,r[n++]=a>>>24&7,r[n++]=a>>>27&7,r[n++]=(a>>>30|(s&1)<<2)&7,r[n++]=s>>>1&7,r[n++]=s>>>4&7,r[n++]=s>>>7&7,r[n++]=s>>>10&7,r[n++]=s>>>13&7,r[n++]=s>>>16&7,r[n++]=s>>>19&7,r[n++]=s>>>22&7,r[n++]=s>>>25&7,r[n++]=s>>>28&7,r[n++]=(s>>>31|(o&3)<<1)&7,r[n++]=o>>>2&7,r[n++]=o>>>5&7,r[n++]=o>>>8&7,r[n++]=o>>>11&7,r[n++]=o>>>14&7,r[n++]=o>>>17&7,r[n++]=o>>>20&7,r[n++]=o>>>23&7,r[n++]=o>>>26&7,r[n]=o>>>29&7}function Bw(t,e,r,i){let n=i,a=t[e]>>>0,s=t[e+1]>>>0,o=t[e+2]>>>0,l=t[e+3]>>>0;r[n++]=a>>>0&15,r[n++]=a>>>4&15,r[n++]=a>>>8&15,r[n++]=a>>>12&15,r[n++]=a>>>16&15,r[n++]=a>>>20&15,r[n++]=a>>>24&15,r[n++]=a>>>28&15,r[n++]=s>>>0&15,r[n++]=s>>>4&15,r[n++]=s>>>8&15,r[n++]=s>>>12&15,r[n++]=s>>>16&15,r[n++]=s>>>20&15,r[n++]=s>>>24&15,r[n++]=s>>>28&15,r[n++]=o>>>0&15,r[n++]=o>>>4&15,r[n++]=o>>>8&15,r[n++]=o>>>12&15,r[n++]=o>>>16&15,r[n++]=o>>>20&15,r[n++]=o>>>24&15,r[n++]=o>>>28&15,r[n++]=l>>>0&15,r[n++]=l>>>4&15,r[n++]=l>>>8&15,r[n++]=l>>>12&15,r[n++]=l>>>16&15,r[n++]=l>>>20&15,r[n++]=l>>>24&15,r[n]=l>>>28&15}function Pw(t,e,r,i){let n=i,a=t[e]>>>0,s=t[e+1]>>>0,o=t[e+2]>>>0,l=t[e+3]>>>0,u=t[e+4]>>>0;r[n++]=a>>>0&31,r[n++]=a>>>5&31,r[n++]=a>>>10&31,r[n++]=a>>>15&31,r[n++]=a>>>20&31,r[n++]=a>>>25&31,r[n++]=(a>>>30|(s&7)<<2)&31,r[n++]=s>>>3&31,r[n++]=s>>>8&31,r[n++]=s>>>13&31,r[n++]=s>>>18&31,r[n++]=s>>>23&31,r[n++]=(s>>>28|(o&1)<<4)&31,r[n++]=o>>>1&31,r[n++]=o>>>6&31,r[n++]=o>>>11&31,r[n++]=o>>>16&31,r[n++]=o>>>21&31,r[n++]=o>>>26&31,r[n++]=(o>>>31|(l&15)<<1)&31,r[n++]=l>>>4&31,r[n++]=l>>>9&31,r[n++]=l>>>14&31,r[n++]=l>>>19&31,r[n++]=l>>>24&31,r[n++]=(l>>>29|(u&3)<<3)&31,r[n++]=u>>>2&31,r[n++]=u>>>7&31,r[n++]=u>>>12&31,r[n++]=u>>>17&31,r[n++]=u>>>22&31,r[n]=u>>>27&31}function zw(t,e,r,i){let n=i,a=t[e]>>>0,s=t[e+1]>>>0,o=t[e+2]>>>0,l=t[e+3]>>>0,u=t[e+4]>>>0,h=t[e+5]>>>0;r[n++]=a>>>0&63,r[n++]=a>>>6&63,r[n++]=a>>>12&63,r[n++]=a>>>18&63,r[n++]=a>>>24&63,r[n++]=(a>>>30|(s&15)<<2)&63,r[n++]=s>>>4&63,r[n++]=s>>>10&63,r[n++]=s>>>16&63,r[n++]=s>>>22&63,r[n++]=(s>>>28|(o&3)<<4)&63,r[n++]=o>>>2&63,r[n++]=o>>>8&63,r[n++]=o>>>14&63,r[n++]=o>>>20&63,r[n++]=o>>>26&63,r[n++]=l>>>0&63,r[n++]=l>>>6&63,r[n++]=l>>>12&63,r[n++]=l>>>18&63,r[n++]=l>>>24&63,r[n++]=(l>>>30|(u&15)<<2)&63,r[n++]=u>>>4&63,r[n++]=u>>>10&63,r[n++]=u>>>16&63,r[n++]=u>>>22&63,r[n++]=(u>>>28|(h&3)<<4)&63,r[n++]=h>>>2&63,r[n++]=h>>>8&63,r[n++]=h>>>14&63,r[n++]=h>>>20&63,r[n]=h>>>26&63}function Lw(t,e,r,i){let n=i,a=t[e]>>>0,s=t[e+1]>>>0,o=t[e+2]>>>0,l=t[e+3]>>>0,u=t[e+4]>>>0,h=t[e+5]>>>0,c=t[e+6]>>>0;r[n++]=a>>>0&127,r[n++]=a>>>7&127,r[n++]=a>>>14&127,r[n++]=a>>>21&127,r[n++]=(a>>>28|(s&7)<<4)&127,r[n++]=s>>>3&127,r[n++]=s>>>10&127,r[n++]=s>>>17&127,r[n++]=s>>>24&127,r[n++]=(s>>>31|(o&63)<<1)&127,r[n++]=o>>>6&127,r[n++]=o>>>13&127,r[n++]=o>>>20&127,r[n++]=(o>>>27|(l&3)<<5)&127,r[n++]=l>>>2&127,r[n++]=l>>>9&127,r[n++]=l>>>16&127,r[n++]=l>>>23&127,r[n++]=(l>>>30|(u&31)<<2)&127,r[n++]=u>>>5&127,r[n++]=u>>>12&127,r[n++]=u>>>19&127,r[n++]=(u>>>26|(h&1)<<6)&127,r[n++]=h>>>1&127,r[n++]=h>>>8&127,r[n++]=h>>>15&127,r[n++]=h>>>22&127,r[n++]=(h>>>29|(c&15)<<3)&127,r[n++]=c>>>4&127,r[n++]=c>>>11&127,r[n++]=c>>>18&127,r[n]=c>>>25&127}function Vw(t,e,r,i){let n=i,a=t[e]>>>0,s=t[e+1]>>>0,o=t[e+2]>>>0,l=t[e+3]>>>0,u=t[e+4]>>>0,h=t[e+5]>>>0,c=t[e+6]>>>0,p=t[e+7]>>>0;r[n++]=a>>>0&255,r[n++]=a>>>8&255,r[n++]=a>>>16&255,r[n++]=a>>>24&255,r[n++]=s>>>0&255,r[n++]=s>>>8&255,r[n++]=s>>>16&255,r[n++]=s>>>24&255,r[n++]=o>>>0&255,r[n++]=o>>>8&255,r[n++]=o>>>16&255,r[n++]=o>>>24&255,r[n++]=l>>>0&255,r[n++]=l>>>8&255,r[n++]=l>>>16&255,r[n++]=l>>>24&255,r[n++]=u>>>0&255,r[n++]=u>>>8&255,r[n++]=u>>>16&255,r[n++]=u>>>24&255,r[n++]=h>>>0&255,r[n++]=h>>>8&255,r[n++]=h>>>16&255,r[n++]=h>>>24&255,r[n++]=c>>>0&255,r[n++]=c>>>8&255,r[n++]=c>>>16&255,r[n++]=c>>>24&255,r[n++]=p>>>0&255,r[n++]=p>>>8&255,r[n++]=p>>>16&255,r[n]=p>>>24&255}function Ow(t,e,r,i){let n=i,a=t[e]>>>0,s=t[e+1]>>>0,o=t[e+2]>>>0,l=t[e+3]>>>0,u=t[e+4]>>>0,h=t[e+5]>>>0,c=t[e+6]>>>0,p=t[e+7]>>>0,f=t[e+8]>>>0;r[n++]=a>>>0&511,r[n++]=a>>>9&511,r[n++]=a>>>18&511,r[n++]=(a>>>27|(s&15)<<5)&511,r[n++]=s>>>4&511,r[n++]=s>>>13&511,r[n++]=s>>>22&511,r[n++]=(s>>>31|(o&255)<<1)&511,r[n++]=o>>>8&511,r[n++]=o>>>17&511,r[n++]=(o>>>26|(l&7)<<6)&511,r[n++]=l>>>3&511,r[n++]=l>>>12&511,r[n++]=l>>>21&511,r[n++]=(l>>>30|(u&127)<<2)&511,r[n++]=u>>>7&511,r[n++]=u>>>16&511,r[n++]=(u>>>25|(h&3)<<7)&511,r[n++]=h>>>2&511,r[n++]=h>>>11&511,r[n++]=h>>>20&511,r[n++]=(h>>>29|(c&63)<<3)&511,r[n++]=c>>>6&511,r[n++]=c>>>15&511,r[n++]=(c>>>24|(p&1)<<8)&511,r[n++]=p>>>1&511,r[n++]=p>>>10&511,r[n++]=p>>>19&511,r[n++]=(p>>>28|(f&31)<<4)&511,r[n++]=f>>>5&511,r[n++]=f>>>14&511,r[n]=f>>>23&511}function Rw(t,e,r,i){let n=i,a=t[e]>>>0,s=t[e+1]>>>0,o=t[e+2]>>>0,l=t[e+3]>>>0,u=t[e+4]>>>0,h=t[e+5]>>>0,c=t[e+6]>>>0,p=t[e+7]>>>0,f=t[e+8]>>>0,d=t[e+9]>>>0;r[n++]=a>>>0&1023,r[n++]=a>>>10&1023,r[n++]=a>>>20&1023,r[n++]=(a>>>30|(s&255)<<2)&1023,r[n++]=s>>>8&1023,r[n++]=s>>>18&1023,r[n++]=(s>>>28|(o&63)<<4)&1023,r[n++]=o>>>6&1023,r[n++]=o>>>16&1023,r[n++]=(o>>>26|(l&15)<<6)&1023,r[n++]=l>>>4&1023,r[n++]=l>>>14&1023,r[n++]=(l>>>24|(u&3)<<8)&1023,r[n++]=u>>>2&1023,r[n++]=u>>>12&1023,r[n++]=u>>>22&1023,r[n++]=h>>>0&1023,r[n++]=h>>>10&1023,r[n++]=h>>>20&1023,r[n++]=(h>>>30|(c&255)<<2)&1023,r[n++]=c>>>8&1023,r[n++]=c>>>18&1023,r[n++]=(c>>>28|(p&63)<<4)&1023,r[n++]=p>>>6&1023,r[n++]=p>>>16&1023,r[n++]=(p>>>26|(f&15)<<6)&1023,r[n++]=f>>>4&1023,r[n++]=f>>>14&1023,r[n++]=(f>>>24|(d&3)<<8)&1023,r[n++]=d>>>2&1023,r[n++]=d>>>12&1023,r[n]=d>>>22&1023}function $w(t,e,r,i){let n=i,a=t[e]>>>0,s=t[e+1]>>>0,o=t[e+2]>>>0,l=t[e+3]>>>0,u=t[e+4]>>>0,h=t[e+5]>>>0,c=t[e+6]>>>0,p=t[e+7]>>>0,f=t[e+8]>>>0,d=t[e+9]>>>0,y=t[e+10]>>>0;r[n++]=a>>>0&2047,r[n++]=a>>>11&2047,r[n++]=(a>>>22|(s&1)<<10)&2047,r[n++]=s>>>1&2047,r[n++]=s>>>12&2047,r[n++]=(s>>>23|(o&3)<<9)&2047,r[n++]=o>>>2&2047,r[n++]=o>>>13&2047,r[n++]=(o>>>24|(l&7)<<8)&2047,r[n++]=l>>>3&2047,r[n++]=l>>>14&2047,r[n++]=(l>>>25|(u&15)<<7)&2047,r[n++]=u>>>4&2047,r[n++]=u>>>15&2047,r[n++]=(u>>>26|(h&31)<<6)&2047,r[n++]=h>>>5&2047,r[n++]=h>>>16&2047,r[n++]=(h>>>27|(c&63)<<5)&2047,r[n++]=c>>>6&2047,r[n++]=c>>>17&2047,r[n++]=(c>>>28|(p&127)<<4)&2047,r[n++]=p>>>7&2047,r[n++]=p>>>18&2047,r[n++]=(p>>>29|(f&255)<<3)&2047,r[n++]=f>>>8&2047,r[n++]=f>>>19&2047,r[n++]=(f>>>30|(d&511)<<2)&2047,r[n++]=d>>>9&2047,r[n++]=d>>>20&2047,r[n++]=(d>>>31|(y&1023)<<1)&2047,r[n++]=y>>>10&2047,r[n]=y>>>21&2047}function Nw(t,e,r,i){let n=i,a=t[e]>>>0,s=t[e+1]>>>0,o=t[e+2]>>>0,l=t[e+3]>>>0,u=t[e+4]>>>0,h=t[e+5]>>>0,c=t[e+6]>>>0,p=t[e+7]>>>0,f=t[e+8]>>>0,d=t[e+9]>>>0,y=t[e+10]>>>0,m=t[e+11]>>>0;r[n++]=a>>>0&4095,r[n++]=a>>>12&4095,r[n++]=(a>>>24|(s&15)<<8)&4095,r[n++]=s>>>4&4095,r[n++]=s>>>16&4095,r[n++]=(s>>>28|(o&255)<<4)&4095,r[n++]=o>>>8&4095,r[n++]=o>>>20&4095,r[n++]=l>>>0&4095,r[n++]=l>>>12&4095,r[n++]=(l>>>24|(u&15)<<8)&4095,r[n++]=u>>>4&4095,r[n++]=u>>>16&4095,r[n++]=(u>>>28|(h&255)<<4)&4095,r[n++]=h>>>8&4095,r[n++]=h>>>20&4095,r[n++]=c>>>0&4095,r[n++]=c>>>12&4095,r[n++]=(c>>>24|(p&15)<<8)&4095,r[n++]=p>>>4&4095,r[n++]=p>>>16&4095,r[n++]=(p>>>28|(f&255)<<4)&4095,r[n++]=f>>>8&4095,r[n++]=f>>>20&4095,r[n++]=d>>>0&4095,r[n++]=d>>>12&4095,r[n++]=(d>>>24|(y&15)<<8)&4095,r[n++]=y>>>4&4095,r[n++]=y>>>16&4095,r[n++]=(y>>>28|(m&255)<<4)&4095,r[n++]=m>>>8&4095,r[n]=m>>>20&4095}function Uw(t,e,r,i){let n=i,a=t[e]>>>0,s=t[e+1]>>>0,o=t[e+2]>>>0,l=t[e+3]>>>0,u=t[e+4]>>>0,h=t[e+5]>>>0,c=t[e+6]>>>0,p=t[e+7]>>>0,f=t[e+8]>>>0,d=t[e+9]>>>0,y=t[e+10]>>>0,m=t[e+11]>>>0,g=t[e+12]>>>0,x=t[e+13]>>>0,v=t[e+14]>>>0,b=t[e+15]>>>0;r[n++]=a>>>0&65535,r[n++]=a>>>16&65535,r[n++]=s>>>0&65535,r[n++]=s>>>16&65535,r[n++]=o>>>0&65535,r[n++]=o>>>16&65535,r[n++]=l>>>0&65535,r[n++]=l>>>16&65535,r[n++]=u>>>0&65535,r[n++]=u>>>16&65535,r[n++]=h>>>0&65535,r[n++]=h>>>16&65535,r[n++]=c>>>0&65535,r[n++]=c>>>16&65535,r[n++]=p>>>0&65535,r[n++]=p>>>16&65535,r[n++]=f>>>0&65535,r[n++]=f>>>16&65535,r[n++]=d>>>0&65535,r[n++]=d>>>16&65535,r[n++]=y>>>0&65535,r[n++]=y>>>16&65535,r[n++]=m>>>0&65535,r[n++]=m>>>16&65535,r[n++]=g>>>0&65535,r[n++]=g>>>16&65535,r[n++]=x>>>0&65535,r[n++]=x>>>16&65535,r[n++]=v>>>0&65535,r[n++]=v>>>16&65535,r[n++]=b>>>0&65535,r[n]=b>>>16&65535}function qw(t,e,r,i){let n=i,a=e;for(let s=0;s<8;s++){let o=t[a++]>>>0;r[n++]=o>>>0&1,r[n++]=o>>>1&1,r[n++]=o>>>2&1,r[n++]=o>>>3&1,r[n++]=o>>>4&1,r[n++]=o>>>5&1,r[n++]=o>>>6&1,r[n++]=o>>>7&1,r[n++]=o>>>8&1,r[n++]=o>>>9&1,r[n++]=o>>>10&1,r[n++]=o>>>11&1,r[n++]=o>>>12&1,r[n++]=o>>>13&1,r[n++]=o>>>14&1,r[n++]=o>>>15&1,r[n++]=o>>>16&1,r[n++]=o>>>17&1,r[n++]=o>>>18&1,r[n++]=o>>>19&1,r[n++]=o>>>20&1,r[n++]=o>>>21&1,r[n++]=o>>>22&1,r[n++]=o>>>23&1,r[n++]=o>>>24&1,r[n++]=o>>>25&1,r[n++]=o>>>26&1,r[n++]=o>>>27&1,r[n++]=o>>>28&1,r[n++]=o>>>29&1,r[n++]=o>>>30&1,r[n++]=o>>>31&1}}function jw(t,e,r,i){let n=i,a=e;for(let s=0;s<8;s++){let o=t[a++]>>>0,l=t[a++]>>>0;r[n++]=o>>>0&3,r[n++]=o>>>2&3,r[n++]=o>>>4&3,r[n++]=o>>>6&3,r[n++]=o>>>8&3,r[n++]=o>>>10&3,r[n++]=o>>>12&3,r[n++]=o>>>14&3,r[n++]=o>>>16&3,r[n++]=o>>>18&3,r[n++]=o>>>20&3,r[n++]=o>>>22&3,r[n++]=o>>>24&3,r[n++]=o>>>26&3,r[n++]=o>>>28&3,r[n++]=o>>>30&3,r[n++]=l>>>0&3,r[n++]=l>>>2&3,r[n++]=l>>>4&3,r[n++]=l>>>6&3,r[n++]=l>>>8&3,r[n++]=l>>>10&3,r[n++]=l>>>12&3,r[n++]=l>>>14&3,r[n++]=l>>>16&3,r[n++]=l>>>18&3,r[n++]=l>>>20&3,r[n++]=l>>>22&3,r[n++]=l>>>24&3,r[n++]=l>>>26&3,r[n++]=l>>>28&3,r[n++]=l>>>30&3}}function Gw(t,e,r,i){let n=i,a=e;for(let s=0;s<8;s++){let o=t[a++]>>>0,l=t[a++]>>>0,u=t[a++]>>>0;r[n++]=o>>>0&7,r[n++]=o>>>3&7,r[n++]=o>>>6&7,r[n++]=o>>>9&7,r[n++]=o>>>12&7,r[n++]=o>>>15&7,r[n++]=o>>>18&7,r[n++]=o>>>21&7,r[n++]=o>>>24&7,r[n++]=o>>>27&7,r[n++]=(o>>>30|(l&1)<<2)&7,r[n++]=l>>>1&7,r[n++]=l>>>4&7,r[n++]=l>>>7&7,r[n++]=l>>>10&7,r[n++]=l>>>13&7,r[n++]=l>>>16&7,r[n++]=l>>>19&7,r[n++]=l>>>22&7,r[n++]=l>>>25&7,r[n++]=l>>>28&7,r[n++]=(l>>>31|(u&3)<<1)&7,r[n++]=u>>>2&7,r[n++]=u>>>5&7,r[n++]=u>>>8&7,r[n++]=u>>>11&7,r[n++]=u>>>14&7,r[n++]=u>>>17&7,r[n++]=u>>>20&7,r[n++]=u>>>23&7,r[n++]=u>>>26&7,r[n++]=u>>>29&7}}function Xw(t,e,r,i){let n=i,a=e;for(let s=0;s<8;s++){let o=t[a++]>>>0,l=t[a++]>>>0,u=t[a++]>>>0,h=t[a++]>>>0;r[n++]=o>>>0&15,r[n++]=o>>>4&15,r[n++]=o>>>8&15,r[n++]=o>>>12&15,r[n++]=o>>>16&15,r[n++]=o>>>20&15,r[n++]=o>>>24&15,r[n++]=o>>>28&15,r[n++]=l>>>0&15,r[n++]=l>>>4&15,r[n++]=l>>>8&15,r[n++]=l>>>12&15,r[n++]=l>>>16&15,r[n++]=l>>>20&15,r[n++]=l>>>24&15,r[n++]=l>>>28&15,r[n++]=u>>>0&15,r[n++]=u>>>4&15,r[n++]=u>>>8&15,r[n++]=u>>>12&15,r[n++]=u>>>16&15,r[n++]=u>>>20&15,r[n++]=u>>>24&15,r[n++]=u>>>28&15,r[n++]=h>>>0&15,r[n++]=h>>>4&15,r[n++]=h>>>8&15,r[n++]=h>>>12&15,r[n++]=h>>>16&15,r[n++]=h>>>20&15,r[n++]=h>>>24&15,r[n++]=h>>>28&15}}function Yw(t,e,r,i){let n=i,a=e;for(let s=0;s<8;s++){let o=t[a++]>>>0,l=t[a++]>>>0,u=t[a++]>>>0,h=t[a++]>>>0,c=t[a++]>>>0;r[n++]=o>>>0&31,r[n++]=o>>>5&31,r[n++]=o>>>10&31,r[n++]=o>>>15&31,r[n++]=o>>>20&31,r[n++]=o>>>25&31,r[n++]=(o>>>30|(l&7)<<2)&31,r[n++]=l>>>3&31,r[n++]=l>>>8&31,r[n++]=l>>>13&31,r[n++]=l>>>18&31,r[n++]=l>>>23&31,r[n++]=(l>>>28|(u&1)<<4)&31,r[n++]=u>>>1&31,r[n++]=u>>>6&31,r[n++]=u>>>11&31,r[n++]=u>>>16&31,r[n++]=u>>>21&31,r[n++]=u>>>26&31,r[n++]=(u>>>31|(h&15)<<1)&31,r[n++]=h>>>4&31,r[n++]=h>>>9&31,r[n++]=h>>>14&31,r[n++]=h>>>19&31,r[n++]=h>>>24&31,r[n++]=(h>>>29|(c&3)<<3)&31,r[n++]=c>>>2&31,r[n++]=c>>>7&31,r[n++]=c>>>12&31,r[n++]=c>>>17&31,r[n++]=c>>>22&31,r[n++]=c>>>27&31}}function Ww(t,e,r,i){let n=i,a=e;for(let s=0;s<8;s++){let o=t[a++]>>>0,l=t[a++]>>>0,u=t[a++]>>>0,h=t[a++]>>>0,c=t[a++]>>>0,p=t[a++]>>>0;r[n++]=o>>>0&63,r[n++]=o>>>6&63,r[n++]=o>>>12&63,r[n++]=o>>>18&63,r[n++]=o>>>24&63,r[n++]=(o>>>30|(l&15)<<2)&63,r[n++]=l>>>4&63,r[n++]=l>>>10&63,r[n++]=l>>>16&63,r[n++]=l>>>22&63,r[n++]=(l>>>28|(u&3)<<4)&63,r[n++]=u>>>2&63,r[n++]=u>>>8&63,r[n++]=u>>>14&63,r[n++]=u>>>20&63,r[n++]=u>>>26&63,r[n++]=h>>>0&63,r[n++]=h>>>6&63,r[n++]=h>>>12&63,r[n++]=h>>>18&63,r[n++]=h>>>24&63,r[n++]=(h>>>30|(c&15)<<2)&63,r[n++]=c>>>4&63,r[n++]=c>>>10&63,r[n++]=c>>>16&63,r[n++]=c>>>22&63,r[n++]=(c>>>28|(p&3)<<4)&63,r[n++]=p>>>2&63,r[n++]=p>>>8&63,r[n++]=p>>>14&63,r[n++]=p>>>20&63,r[n++]=p>>>26&63}}function Zw(t,e,r,i){let n=i,a=e;for(let s=0;s<8;s++){let o=t[a++]>>>0,l=t[a++]>>>0,u=t[a++]>>>0,h=t[a++]>>>0,c=t[a++]>>>0,p=t[a++]>>>0,f=t[a++]>>>0;r[n++]=o>>>0&127,r[n++]=o>>>7&127,r[n++]=o>>>14&127,r[n++]=o>>>21&127,r[n++]=(o>>>28|(l&7)<<4)&127,r[n++]=l>>>3&127,r[n++]=l>>>10&127,r[n++]=l>>>17&127,r[n++]=l>>>24&127,r[n++]=(l>>>31|(u&63)<<1)&127,r[n++]=u>>>6&127,r[n++]=u>>>13&127,r[n++]=u>>>20&127,r[n++]=(u>>>27|(h&3)<<5)&127,r[n++]=h>>>2&127,r[n++]=h>>>9&127,r[n++]=h>>>16&127,r[n++]=h>>>23&127,r[n++]=(h>>>30|(c&31)<<2)&127,r[n++]=c>>>5&127,r[n++]=c>>>12&127,r[n++]=c>>>19&127,r[n++]=(c>>>26|(p&1)<<6)&127,r[n++]=p>>>1&127,r[n++]=p>>>8&127,r[n++]=p>>>15&127,r[n++]=p>>>22&127,r[n++]=(p>>>29|(f&15)<<3)&127,r[n++]=f>>>4&127,r[n++]=f>>>11&127,r[n++]=f>>>18&127,r[n++]=f>>>25&127}}function Hw(t,e,r,i){let n=i,a=e;for(let s=0;s<8;s++){let o=t[a++]>>>0,l=t[a++]>>>0,u=t[a++]>>>0,h=t[a++]>>>0,c=t[a++]>>>0,p=t[a++]>>>0,f=t[a++]>>>0,d=t[a++]>>>0;r[n++]=o>>>0&255,r[n++]=o>>>8&255,r[n++]=o>>>16&255,r[n++]=o>>>24&255,r[n++]=l>>>0&255,r[n++]=l>>>8&255,r[n++]=l>>>16&255,r[n++]=l>>>24&255,r[n++]=u>>>0&255,r[n++]=u>>>8&255,r[n++]=u>>>16&255,r[n++]=u>>>24&255,r[n++]=h>>>0&255,r[n++]=h>>>8&255,r[n++]=h>>>16&255,r[n++]=h>>>24&255,r[n++]=c>>>0&255,r[n++]=c>>>8&255,r[n++]=c>>>16&255,r[n++]=c>>>24&255,r[n++]=p>>>0&255,r[n++]=p>>>8&255,r[n++]=p>>>16&255,r[n++]=p>>>24&255,r[n++]=f>>>0&255,r[n++]=f>>>8&255,r[n++]=f>>>16&255,r[n++]=f>>>24&255,r[n++]=d>>>0&255,r[n++]=d>>>8&255,r[n++]=d>>>16&255,r[n++]=d>>>24&255}}function Kw(t,e,r,i){let n=i,a=e;for(let s=0;s<128;s++){let o=t[a++]>>>0;r[n++]=o&65535,r[n++]=o>>>16&65535}}function Jw(t,e,r,i,n){let a=pl[n]>>>0,s=e,o=0,l=t[s]>>>0,u=i;for(let h=0;h<8;h++){for(let c=0;c<32;c++)if(o+n<=32){let p=l>>>o&a;r[u+c]=p|0,o+=n,o===32&&(o=0,s++,c!==31&&(l=t[s]>>>0))}else{let p=32-o,f=l>>>o;s++,l=t[s]>>>0;let d=n-p,y=-1>>>32-d>>>0,m=(f|(l&y)<>>0)}}var fl=Py(bu),Qw=3*fl/256+fl|0;function zy(){let t=new Uint8Array(Qw);return{dataToBePacked:Array(33),dataPointers:new Int32Array(33),byteContainer:t,byteContainerI32:new Int32Array(t.buffer,t.byteOffset,t.byteLength>>>2),exceptionSizes:new Int32Array(33)}}function t3(t=16){if(t<0)throw RangeError(`initialEncodedWordCapacity must be >= 0, got ${t}`);let e=Math.max(16,t|0);return{encodedWords:new Uint32Array(e),decoderWorkspace:zy()}}function e3(t,e){if(e<=t.encodedWords.length)return t.encodedWords;let r=new Uint32Array(Math.max(16,e*2));return t.encodedWords=r,r}function r3(t,e,r,i){i.byteContainer.length>>2;if(n.byteOffset&3)for(let o=0;o>>8&255,n[u+2|0]=l>>>16&255,n[u+3|0]=l>>>24&255}else{let o=i.byteContainerI32;(!o||o.buffer!==n.buffer||o.byteOffset!==n.byteOffset||o.length>>2)),o.set(t.subarray(e,e+a))}let s=r&3;if(s>0){let o=t[e+a|0]|0,l=a<<2;for(let u=0;u>>(u<<3)&255}return n}function i3(t,e,r){let i=t[e++]|0,n=r.dataToBePacked;for(let a=2;a<=32;a=a+1|0){if(!(i>>>a-1&1))continue;if(e>=t.length)throw Error(`FastPFOR decode: truncated exception stream header (bitWidth=${a}, streamWordIndex=${e}, needWords=1, availableWords=${t.length-e}, encodedWords=${t.length})`);let s=t[e++]>>>0,o=kw(s),l=s*a+31>>>5;if(e+l>t.length)throw Error(`FastPFOR decode: truncated exception stream (bitWidth=${a}, size=${s}, streamWordIndex=${e}, needWords=${l}, availableWords=${t.length-e}, encodedWords=${t.length})`);let u=n[a];(!u||u.length>>5)|0,r.exceptionSizes[a]=s}return e}function n3(t,e,r,i,n){switch(n){case 1:qw(t,e,r,i);break;case 2:jw(t,e,r,i);break;case 3:Gw(t,e,r,i);break;case 4:Xw(t,e,r,i);break;case 5:Yw(t,e,r,i);break;case 6:Ww(t,e,r,i);break;case 7:Zw(t,e,r,i);break;case 8:Hw(t,e,r,i);break;case 16:Kw(t,e,r,i);break;default:Jw(t,e,r,i,n)}return e+(n<<3)|0}function a3(t,e,r,i){if(r+2>e)throw Error(`FastPFOR decode: byteContainer underflow at block=${i} (need 2 bytes for [bitWidth, exceptionCount], bytePos=${r}, byteSize=${e})`);let n=t[r++],a=t[r++];if(n>32)throw Error(`FastPFOR decode: invalid bitWidth=${n} at block=${i} (expected 0..32). This likely indicates corrupted or truncated input.`);return{bitWidth:n,exceptionCount:a,bytePosIn:r}}function s3(t,e,r,i,n,a){if(r+1>e)throw Error(`FastPFOR decode: exception header underflow at block=${a} (need 1 byte for maxBits, bytePos=${r}, byteSize=${e})`);let s=t[r++];if(s32)throw Error(`FastPFOR decode: invalid maxBits=${s} at block=${a} (bitWidth=${i}, expected ${i}..32)`);let o=s-i|0;if(o<1||o>32)throw Error(`FastPFOR decode: invalid exceptionBitWidth=${o} at block=${a} (bitWidth=${i}, maxBits=${s})`);if(r+n>e)throw Error(`FastPFOR decode: exception positions underflow at block=${a} (need=${n}, have=${e-r})`);return{maxBits:s,exceptionBitWidth:o,bytePosIn:r}}function o3(t,e,r,i,n,a,s,o,l){let{maxBits:u,exceptionBitWidth:h,bytePosIn:c}=s3(n,a,s,r,i,l);if(s=c,h===1){let m=1<y)throw Error(`FastPFOR decode: exception stream overflow for exceptionBitWidth=${h} (ptr=${d}, need ${i}, size=${y}) at block ${l}`);for(let m=0;m0&&(c=o3(n,m,d,y,o,l,c,u,p))}if(h!==i)throw Error(`FastPFOR decode: packed region mismatch (pageStart=${e}, packedStart=${r}, consumedPackedEnd=${h}, expectedPackedEnd=${i}, packedWords=${i-r}, encoded.length=${t.length})`)}function u3(t,e,r,i,n,a){let s=r|0,o=t[s]|0;if(o<=0||s+o>t.length-1)throw Error(`FastPFOR decode: invalid whereMeta=${o} at pageStart=${s} (expected > 0 and pageStart+whereMeta < encoded.length=${t.length})`);let l=s+1|0,u=s+o|0,h=t[u]>>>0,c=h+3>>>2,p=u+1,f=p+c;if(f>=t.length)throw Error(`FastPFOR decode: invalid byteSize=${h} (metaInts=${c}, pageStart=${s}, packedEnd=${u}, byteContainerStart=${p}) causes bitmapPos=${f} out of bounds (encoded.length=${t.length})`);let d=r3(t,p,h,a),y=h,m=i3(t,f,a);return a.dataPointers.fill(0),l3(t,s,l,u,e,i|0,n/256|0,d,y,a),m}function h3(t,e,r,i,n,a){let s=i+wu(n,256),o=i,l=r;for(;o!==s;){let u=Math.min(fl,s-o);l=u3(t,e,l,o,u,a),o=o+u|0}return l}function c3(t,e,r,i,n,a){if(a===0)return e;let s=0,o=e,l=e+r,u=n,h=n,c=n+a,p=0,f=0;for(;o>>s&255;if(s+=8,o+=s>>>5,s&=31,p|=(d&127)<28)throw Error(`FastPFOR VByte: unterminated value (expected MSB=1 terminator within 5 bytes; shift=${f}, partial=${p}, decoded=${h-u}/${a}, inPos=${o}, inEnd=${l})`)}if(h!==c)throw Error(`FastPFOR VByte: truncated stream (decoded=${h-u}, expected=${a}, consumedWords=${o-e}/${r}, vbyteStart=${e}, vbyteEnd=${l})`);return o}function p3(t,e,r){let i=0,n=0,a=new Uint32Array(e),s=r!=null?r:zy();if(t.length>0){let u=t[i]|0;if(i=i+1|0,u&255)throw Error(`FastPFOR decode: invalid alignedLength=${u} (expected multiple of 256)`);if(n+u>a.length)throw Error(`FastPFOR decode: output buffer too small (outPos=${n}, alignedLength=${u}, out.length=${a.length})`);i=h3(t,a,i,n,u,s),n=n+u|0}let o=t.length-i|0,l=e-n|0;return c3(t,i,o,a,n,l),a}function f3(t,e,r,i,n){switch(n){case 2:Cw(t,e,r,i);return;case 3:Mw(t,e,r,i);return;case 4:Bw(t,e,r,i);return;case 5:Pw(t,e,r,i);return;case 6:zw(t,e,r,i);return;case 7:Lw(t,e,r,i);return;case 8:Vw(t,e,r,i);return;case 9:Ow(t,e,r,i);return;case 10:Rw(t,e,r,i);return;case 11:$w(t,e,r,i);return;case 12:Nw(t,e,r,i);return;case 16:Uw(t,e,r,i);return;case 32:for(let u=0;u<32;u=u+1|0)r[i+u|0]=t[e+u|0]|0;return}let a=pl[n]>>>0,s=e,o=0,l=t[s]>>>0;for(let u=0;u<32;u++)if(o+n<=32){let h=l>>>o&a;r[i+u]=h|0,o+=n,o===32&&(o=0,s++,u!==31&&(l=t[s]>>>0))}else{let h=32-o,c=l>>>o;s++,l=t[s]>>>0;let p=pl[n-h]>>>0,f=(c|(l&p)<t.length)throw RangeError(`decodeBigEndianInt32sInto: out of bounds (offset=${e}, byteLength=${r}, bytes.length=${t.length})`);let n=Math.floor(r/4),a=r%4!=0,s=a?n+1:n;if(i.length0){let o=t.byteOffset+e;if(o&3)for(let l=0;l=64)throw Error("Varint too long")}return e.set(n),r}function m3(t,e,r){let i=new Float64Array(r);for(let n=0;n>4,n<128||(n=e[r.get()],r.increment(),i|=(n&127)<<3,n<128)||(n=e[r.get()],r.increment(),i|=(n&127)<<10,n<128)||(n=e[r.get()],r.increment(),i|=(n&127)<<17,n<128)||(n=e[r.get()],r.increment(),i|=(n&127)<<24,n<128)||(n=e[r.get()],r.increment(),i|=(n&1)<<31,n<128))return i*4294967296+(t>>>0);throw Error("Expected varint not more than 10 bytes")}function v3(t,e,r,i){return b3(t,e,r,i,t3(r>>>2))}function b3(t,e,r,i,n){let a=i.get();if(r&3)throw Error(`FastPFOR: invalid encodedByteLength=${r} at offset=${a} (encodedBytes.length=${t.length}; expected a multiple of 4 bytes for an int32 big-endian word stream)`);let s=r>>>2,o=e3(n,s);d3(t,a,r,o);let l=p3(o.subarray(0,s),e,n.decoderWorkspace);return i.add(r),l}function tt(t){return t>>>1^-(t&1)}function Ot(t){return t>>BigInt(1)^-(t&BigInt(1))}function He(t){return t%2==1?(t+1)/-2:t/2}function w3(t){let e=new Int32Array(t.length);for(let r=0;r=4)for(;i=4)for(;i=4)for(;r=4)for(let i=t[0];r=4)for(;i=4)for(;l>>0;for(let r=1;r>>0;return e}function hp(t){let e=new BigUint64Array(t.length);e[0]=BigInt.asUintN(64,Ot(t[0]));for(let r=1;r>>0,e[1]=tt(t[1])>>>0;for(let r=2;r>>0,e[r+1]=e[r-1]+tt(t[r+1])>>>0;return e}function L3(t,e,r,i){let n=Vy(t,e,r,i);return new Uint32Array(n)}function V3(t){return t[1]}function O3(t){return tt(t[1])}function R3(t){if(t.length===2){let e=tt(t[1]);return[e,e]}return[tt(t[2]),tt(t[3])]}function $3(t){return t[1]}function N3(t){return Ot(t[1])}function U3(t){if(t.length===2){let e=Ot(t[1]);return[e,e]}return[Ot(t[2]),Ot(t[3])]}var At;(function(t){t.PRESENT="PRESENT",t.DATA="DATA",t.OFFSET="OFFSET",t.LENGTH="LENGTH"})(At||(At={}));var qt;(function(t){t.NONE="NONE",t.SINGLE="SINGLE",t.SHARED="SHARED",t.VERTEX="VERTEX",t.MORTON="MORTON",t.FSST="FSST"})(qt||(qt={}));var be;(function(t){t.VERTEX="VERTEX",t.INDEX="INDEX",t.STRING="STRING",t.KEY="KEY"})(be||(be={}));var Ft;(function(t){t.VAR_BINARY="VAR_BINARY",t.GEOMETRIES="GEOMETRIES",t.PARTS="PARTS",t.RINGS="RINGS",t.TRIANGLES="TRIANGLES",t.SYMBOL="SYMBOL",t.DICTIONARY="DICTIONARY"})(Ft||(Ft={}));var q3=[At.PRESENT,At.DATA,At.OFFSET,At.LENGTH],cp=[Z.NONE,Z.DELTA,Z.COMPONENTWISE_DELTA,Z.RLE,Z.MORTON],j3=[re.NONE,re.FAST_PFOR,re.VARINT],G3=[qt.NONE,qt.SINGLE,qt.SHARED,qt.VERTEX,qt.MORTON,qt.FSST],X3=[be.VERTEX,be.INDEX,be.STRING,be.KEY],Y3=[Ft.VAR_BINARY,Ft.GEOMETRIES,Ft.PARTS,Ft.RINGS,Ft.TRIANGLES,Ft.SYMBOL,Ft.DICTIONARY];function ht(t,e){let r=H3(t,e);return r.logicalLevelTechnique1===Z.MORTON?W3(r,t,e):(Z.RLE===r.logicalLevelTechnique1||Z.RLE===r.logicalLevelTechnique2)&&re.NONE!==r.physicalLevelTechnique?Z3(r,t,e):r}function W3(t,e,r){let i=Rt(e,r,2);return{physicalStreamType:t.physicalStreamType,logicalStreamType:t.logicalStreamType,logicalLevelTechnique1:t.logicalLevelTechnique1,logicalLevelTechnique2:t.logicalLevelTechnique2,physicalLevelTechnique:t.physicalLevelTechnique,numValues:t.numValues,byteLength:t.byteLength,decompressedCount:t.decompressedCount,numBits:i[0],coordinateShift:i[1]}}function Z3(t,e,r){let i=Rt(e,r,2);return{physicalStreamType:t.physicalStreamType,logicalStreamType:t.logicalStreamType,logicalLevelTechnique1:t.logicalLevelTechnique1,logicalLevelTechnique2:t.logicalLevelTechnique2,physicalLevelTechnique:t.physicalLevelTechnique,numValues:t.numValues,byteLength:t.byteLength,decompressedCount:i[1],runs:i[0],numRleValues:i[1]}}function H3(t,e){let r=t[e.get()],i=q3[r>>4],n={};switch(i){case At.DATA:n={dictionaryType:G3[r&15]};break;case At.OFFSET:n={offsetType:X3[r&15]};break;case At.LENGTH:n={lengthType:Y3[r&15]}}e.increment();let a=t[e.get()],s=cp[a>>5],o=cp[a>>2&7],l=j3[a&3];e.increment();let u=Rt(t,e,2),h=u[0],c=u[1];return{physicalStreamType:i,logicalStreamType:n,logicalLevelTechnique1:s,logicalLevelTechnique2:o,physicalLevelTechnique:l,numValues:h,byteLength:c,decompressedCount:h}}var ut;(function(t){t[t.FLAT=0]="FLAT",t[t.CONST=1]="CONST",t[t.SEQUENCE=2]="SEQUENCE",t[t.DICTIONARY=3]="DICTIONARY",t[t.FSST_DICTIONARY=4]="FSST_DICTIONARY"})(ut||(ut={}));var de=class{constructor(t,e){this.values=t,this._size=e}get(t){let e=Math.floor(t/8),r=t%8;return(this.values[e]>>r&1)==1}set(t,e){let r=Math.floor(t/8),i=t%8;this.values[r]=this.values[r]|+!!e<>r&1}size(){return this._size}getBuffer(){return this.values}};function kr(t,e,r){if(!e)return t;let i=e.size(),n=t.constructor,a=new n(i),s=0;for(let o=0;o=s);){let o=t[i.increment()];if(o<=127){let l=o+3,u=t[i.increment()],h=Math.min(a+l,e);n.fill(u,a,h),a=h}else{let l=256-o;for(let u=0;u=12?e6.decode(t.subarray(e,r)):r6(t,e,r)}function r6(t,e,r){let i="",n=e;for(;n239?4:a>223?3:a>191?2:1;if(n+o>r)break;let l,u,h;o===1?a<128&&(s=a):o===2?(l=t[n+1],(l&192)==128&&(s=(a&31)<<6|l&63,s<=127&&(s=null))):o===3?(l=t[n+1],u=t[n+2],(l&192)==128&&(u&192)==128&&(s=(a&15)<<12|(l&63)<<6|u&63,(s<=2047||s>=55296&&s<=57343)&&(s=null))):o===4&&(l=t[n+1],u=t[n+2],h=t[n+3],(l&192)==128&&(u&192)==128&&(h&192)==128&&(s=(a&15)<<18|(l&63)<<12|(u&63)<<6|h&63,(s<=65535||s>=1114112)&&(s=null))),s===null?(s=65533,o=1):s>65535&&(s-=65536,i+=String.fromCharCode(s>>>10&1023|55296),s=56320|s&1023),i+=String.fromCharCode(s),n+=o}return i}function Ma(t,e,r,i,n){return o6(pi(t,e,r),r,i,n)}function Vt(t,e,r,i,n){return l6(pi(t,e,r),r,i,n)}function Ke(t,e,r){return h6(pi(t,e,r),r)}function pi(t,e,r){let i=r.physicalLevelTechnique;switch(i){case re.FAST_PFOR:return v3(t,r.numValues,r.byteLength,e);case re.VARINT:return Rt(t,e,r.numValues);case re.NONE:return Q3(t,e,r.numValues);default:throw Error(`Specified physicalLevelTechnique ${i} is not supported (yet).`)}}function Tn(t,e,r){let i=r.physicalLevelTechnique;switch(i){case re.VARINT:return Du(t,e,r.numValues);case re.NONE:return t6(t,e,r.numValues);default:throw Error(`Specified physicalLevelTechnique ${i} is not supported (yet).`)}}function i6(t,e,r){let i=pi(t,e,r);return i.length===1?tt(i[0]):O3(i)}function Su(t,e,r){let i=pi(t,e,r);return i.length===1?r.logicalLevelTechnique1===Z.DELTA?tt(i[0]):i[0]:V3(i)}function Ny(t,e,r){return R3(pi(t,e,r))}function Uy(t,e,r){return U3(Du(t,e,r.numValues))}function qy(t,e,r,i){return Gy(Tn(t,e,r),r,i)}function Eu(t,e,r,i){return Xy(Tn(t,e,r),r,i)}function n6(t,e,r,i){let n=a6(t,e,r,!1);return i?kr(n,i,0):n}function a6(t,e,r,i){if(r.physicalLevelTechnique===re.VARINT)return u6(m3(t,e,r.numValues),r,i);let n=Tn(t,e,r),a=i?Gy(n,r):Xy(n,r);return Float64Array.from(a,Number)}function s6(t,e,r){let i=Tn(t,e,r);return i.length===1?Ot(i[0]):N3(i)}function jy(t,e,r){let i=Tn(t,e,r);return i.length===1?r.logicalLevelTechnique1===Z.DELTA?Ot(i[0]):i[0]:$3(i)}function o6(t,e,r,i){let n;switch(e.logicalLevelTechnique1){case Z.DELTA:if(e.logicalLevelTechnique2===Z.RLE){let a=e;if(!i)return B3(t,a.runs,a.numRleValues);t=dl(t,a.runs,a.numRleValues),n=op(t)}else n=op(t);break;case Z.RLE:n=S3(t,e.runs,e.numRleValues);break;case Z.MORTON:_u(t),n=new Int32Array(t);break;case Z.COMPONENTWISE_DELTA:if(r&&!i)return Vy(t,r.scale,r.min,r.max);n=k3(t);break;case Z.NONE:n=w3(t);break;default:throw Error(`The specified Logical level technique is not supported: ${e.logicalLevelTechnique1}`)}return i?kr(n,i,0):n}function l6(t,e,r,i){let n;switch(e.logicalLevelTechnique1){case Z.DELTA:if(e.logicalLevelTechnique2===Z.RLE){let a=e;n=up(dl(t,a.runs,a.numRleValues))}else n=up(t);break;case Z.RLE:n=dl(t,e.runs,e.numRleValues);break;case Z.MORTON:_u(t),n=t;break;case Z.COMPONENTWISE_DELTA:n=r&&!i?L3(t,r.scale,r.min,r.max):z3(t);break;case Z.NONE:n=t;break;default:throw Error(`The specified Logical level technique is not supported: ${e.logicalLevelTechnique1}`)}return i?kr(n,i,0):n}function Gy(t,e,r){let i;switch(e.logicalLevelTechnique1){case Z.DELTA:if(e.logicalLevelTechnique2===Z.RLE){let n=e;if(!r)return P3(t,n.runs,n.numRleValues);t=yl(t,n.runs,n.numRleValues),i=lp(t)}else i=lp(t);break;case Z.RLE:i=E3(t,e.runs,e.numRleValues);break;case Z.NONE:i=D3(t);break;default:throw Error(`The specified Logical level technique is not supported: ${e.logicalLevelTechnique1}`)}return r?kr(i,r,BigInt(0)):i}function Xy(t,e,r){let i;switch(e.logicalLevelTechnique1){case Z.DELTA:if(e.logicalLevelTechnique2===Z.RLE){let n=e;i=hp(yl(t,n.runs,n.numRleValues))}else i=hp(t);break;case Z.RLE:i=yl(t,e.runs,e.numRleValues);break;case Z.NONE:i=t;break;default:throw Error(`The specified Logical level technique is not supported: ${e.logicalLevelTechnique1}`)}return r?kr(i,r,BigInt(0)):i}function u6(t,e,r){switch(e.logicalLevelTechnique1){case Z.DELTA:if(e.logicalLevelTechnique2===Z.RLE){let i=e;t=Ly(t,i.runs,i.numRleValues)}return A3(t),t;case Z.RLE:return p6(t,e,r);case Z.NONE:return r&&_3(t),t;default:throw Error(`The specified Logical level technique is not supported: ${e.logicalLevelTechnique1}`)}}function h6(t,e){if(e.logicalLevelTechnique1===Z.DELTA&&e.logicalLevelTechnique2===Z.NONE)return I3(t);if(e.logicalLevelTechnique1===Z.RLE&&e.logicalLevelTechnique2===Z.NONE){let r=e;return M3(t,r.runs,r.numRleValues)}if(e.logicalLevelTechnique1===Z.NONE&&e.logicalLevelTechnique2===Z.NONE){T3(t);let r=new Uint32Array(e.numValues+1);return r[0]=0,r.set(t,1),r}if(e.logicalLevelTechnique1===Z.DELTA&&e.logicalLevelTechnique2===Z.RLE){let r=e,i=C3(t,r.runs,r.numRleValues);return _u(i),new Uint32Array(i)}throw Error("Only delta encoding is supported for transforming length to offset streams yet.")}function rs(t,e,r,i,n="int32"){let a=t.logicalLevelTechnique1;if(a===Z.RLE)return t.runs===1?ut.CONST:ut.FLAT;if(a!==Z.DELTA||t.logicalLevelTechnique2!==Z.RLE)return t.numValues===1?ut.CONST:ut.FLAT;let s=e instanceof de?e.size():e,o=t;if(o.numRleValues!==s)return ut.FLAT;if(o.runs===1)return ut.SEQUENCE;if(o.runs!==2)return t.numValues===1?ut.CONST:ut.FLAT;let l=i.get();if(t.physicalLevelTechnique===re.VARINT)return c6(r,i,n)?ut.SEQUENCE:t.numValues===1?ut.CONST:ut.FLAT;let u=i.get(),h=new Int32Array(r.buffer,r.byteOffset+u,4);return i.set(l),h[2]===2&&h[3]===2?ut.SEQUENCE:t.numValues===1?ut.CONST:ut.FLAT}function c6(t,e,r){let i=new By(e.get());if(r==="int64"){let a=Du(t,i,4);return a[2]===BigInt(2)&&a[3]===BigInt(2)}let n=Rt(t,i,4);return n[2]===2&&n[3]===2}function p6(t,e,r){return r?F3(t,e.runs,e.numRleValues):Ly(t,e.runs,e.numRleValues)}var Yy=class extends es{getValueFromBuffer(t){return this.dataBuffer[t]}},Wy=class extends Cy{constructor(t,e,r,i,n){super(t,n?BigInt64Array.of(e):BigUint64Array.of(e),r,i)}getValueFromBuffer(t){return this.dataBuffer[0]+BigInt(t)*this.delta}};function Fu(t,e,r){return{x:pp(t,e)-r,y:pp(t>>1,e)-r}}function pp(t,e){let r=0;for(let i=0;i>i;return r}var Pt;(function(t){t[t.POINT=0]="POINT",t[t.LINESTRING=1]="LINESTRING",t[t.POLYGON=2]="POLYGON",t[t.MULTIPOINT=3]="MULTIPOINT",t[t.MULTILINESTRING=4]="MULTILINESTRING",t[t.MULTIPOLYGON=5]="MULTIPOLYGON"})(Pt||(Pt={}));var fp;(function(t){t[t.POINT=0]="POINT",t[t.LINESTRING=1]="LINESTRING",t[t.POLYGON=2]="POLYGON"})(fp||(fp={}));var nr;(function(t){t[t.MORTON=0]="MORTON",t[t.VEC_2=1]="VEC_2",t[t.VEC_3=2]="VEC_3"})(nr||(nr={}));function f6(t){let e=Array(t.numGeometries),r=1,i=1,n=1,a=0,s=0,o=0,l=t.mortonSettings,u=t.topologyVector,h=u.geometryOffsets,c=u.partOffsets,p=u.ringOffsets,f=t.vertexOffsets,d=!f||f.length===0,y=t.containsPolygonGeometry(),m=t.vertexBuffer;for(let g=0;g[w]),r+=v,i+=v}break;case Pt.LINESTRING:{let v;y?(v=p[i]-p[i-1],i++):v=c[r]-c[r-1],r++;let b;d?(b=Or(m,s,v,!1),s+=v*2):(b=pr(t.vertexBufferType,m,f,o,v,!1,l),o+=v),e[a++]=[b],h&&n++}break;case Pt.POLYGON:{let v=c[r]-c[r-1];r++;let b=Array(v-1),w,_=p[i]-p[i-1];if(i++,d){w=Or(m,s,_,!0),s+=_*2;for(let A=0;Ar?e[a++]:1);return i}function mp(t,e,r,i){let n=new Uint32Array(e[e.length-1]+1),a=0;n[0]=a;let s=1,o=0;for(let l=0;l0;)n[a++]=t[u++]}}return n}var e1=class extends Tu{constructor(t,e,r,i,n,a,s,o){super(t,r,i,s!=null?s:e.length),this.indexBuffer=e,this.symbolOffsetBuffer=n,this.symbolTableBuffer=a,this.sharedDictionaryCache=o}getValueFromBuffer(t){var n,a,s;(s=this.decodedDictionary)!=null||(this.decodedDictionary=(n=this.sharedDictionaryCache)==null?void 0:n.decodedDictionary,(a=this.decodedDictionary)!=null||(this.decodedDictionary=this.decodeDictionary(),this.sharedDictionaryCache&&(this.sharedDictionaryCache.decodedDictionary=this.decodedDictionary)));let e=this.indexBuffer[t],r=this.offsetBuffer[e],i=this.offsetBuffer[e+1];return Au(this.decodedDictionary,r,i)}decodeDictionary(){var t;return(t=this.symbolLengthBuffer)!=null||(this.symbolLengthBuffer=this.offsetToLengthBuffer(this.symbolOffsetBuffer)),F6(this.symbolTableBuffer,this.symbolLengthBuffer,this.dataBuffer)}offsetToLengthBuffer(t){let e=new Uint32Array(t.length-1),r=t[0];for(let i=1;i1&&!f.nullable||d===1&&f.nullable)throw Error(`The number of streams for the child field ${f.name} does not match its nullability. nullibilty: ${f.nullable}, numStreams: ${d}`);let m;if(f.nullable){let x=ht(t,e);m=new de(ci(t,x.numValues,x.byteLength,e),x.numValues)}let g=Vt(t,e,ht(t,e),void 0,m);if(o){if(!s)throw Error(`Incomplete shared FSST dictionary for column "${y}"`);h[p++]=new e1(y,g,n,a,s,o,m,c)}else h[p++]=new Qr(y,g,n,a,m)}return h}var xp=class extends Tr{constructor(t,e,r){super(t,new Uint8Array,r!=null?r:e.length),this.values=e}getValueFromBuffer(t){return this.values[t]}},we;(function(t){t[t.STRING=1]="STRING",t[t.INT32=2]="INT32",t[t.UINT32=4]="UINT32",t[t.INT64=8]="INT64",t[t.UINT64=16]="UINT64",t[t.FLOAT=32]="FLOAT",t[t.DOUBLE=64]="DOUBLE",t[t.PRESENCE=128]="PRESENCE"})(we||(we={}));var tr;(function(t){t[t.FALSE=0]="FALSE",t[t.TRUE=1]="TRUE",t[t.START_MAP=2]="START_MAP",t[t.START_LIST=3]="START_LIST",t[t.COUNT=4]="COUNT"})(tr||(tr={}));function M6(t,e,r,i){let n=B6(r);if(i===0)return n.map(h=>new xp(h,[]));let a=P6(t,e,i),s=(a.presentStream?a.presentCount:a.lengthStream.length)/n.length,o=[],l=0,u=0;for(let h=0;h{var i;return t.name+((i=r.name)!=null?i:"")})}function P6(t,e,r){let i=t[e.get()];e.add(1);let n=Vt(t,e,ht(t,e)),a=r-1,s=[];i&we.STRING&&(a-=z6(t,e,s)),a-=L6(t,e,i,s),a-=V6(t,e,i,s);let o,l=0;if(i&we.PRESENCE){let h=O6(t,e);o=h.value,l=h.count,a--}let u=new Uint32Array;if(a>0&&(u=Vt(t,e,ht(t,e)),a--),a!==0)throw Error(`Unexpected number of remaining streams while decoding map column: ${a}`);return{lengthStream:n,dictionary:s,presentStream:o,presentCount:l,flattenedValues:u}}function z6(t,e,r){let i=t[e.get()];e.add(1);let n=r1("",t,e,i);if(n)for(let a=0;aa.length)throw Error("Merged map counts underflow while decoding child streams");let f=Array(r),d=i,y=n;for(let x=0;xs.length)throw Error("Map value stream underflow while decoding feature payload");let b=$6(s,y,v,l);f[x]=b.value,y=b.nextIndex}let m=0;for(let x=i;x=r)throw Error("Unexpected end of map value stream");let n=t[e];if(n===tr.FALSE)return{value:!1,nextIndex:e+1};if(n===tr.TRUE)return{value:!0,nextIndex:e+1};if(n===tr.START_MAP){let a=vp(t,e,r);return{value:i1(t,e+2,a,i).value,nextIndex:a}}if(n===tr.START_LIST){let a=vp(t,e,r),s=[],o=e+2;for(;o=r)throw Error("Missing length for nested map/list payload");let i=t[e+1];if(i<2)throw Error(`Invalid nested payload length: ${i}`);let n=e+i;if(n>r)throw Error("Nested payload exceeds containing payload bounds");return n}function n1(t,e){let r=t-tr.COUNT;if(r<0||r>=e.length)throw Error(`Scalar dictionary index out of range: ${t}`);return e[r]}function Xr(t,e){for(let r of e)t.push(r)}function N6(t,e,r,i,n,a){var s;return r.type==="scalarType"?a&&!a.has(r.name)?(Oy(i,t,e),null):U6(i,t,e,n,r.scalarType,r):((s=r.complexType)==null?void 0:s.physicalType)===rr.MAP?M6(t,e,r,i):i===0?null:C6(t,e,r,a)}function U6(t,e,r,i,n,a){var l;let s;if(t===0)return null;if(a.nullable){let u=ht(e,r),h=u.numValues,c=r.get(),p=ci(e,h,u.byteLength,r);r.set(c+u.byteLength),s=new de(p,u.numValues)}let o=s!=null?s:i;switch(n.physicalType){case rt.UINT_32:case rt.INT_32:return Y6(e,r,a,n,o);case rt.STRING:{let u=a.nullable?t-1:t;return(l=r1(a.name,e,r,u,s))!=null?l:null}case rt.BOOLEAN:return q6(e,r,a,i,o);case rt.UINT_64:case rt.INT_64:return X6(e,r,a,o,n);case rt.FLOAT:return j6(e,r,a,o);case rt.DOUBLE:return G6(e,r,a,o);default:throw Error(`The specified data type for the field is currently not supported: ${n}`)}}function q6(t,e,r,i,n){let a=ht(t,e),s=a.numValues,o=e.get(),l=kn(n)?n:void 0,u=ci(t,s,a.byteLength,e,l);e.set(o+a.byteLength);let h=new de(u,s);return new A6(r.name,h,n)}function j6(t,e,r,i){let n=ht(t,e),a=kn(i)?i:void 0,s=Ry(t,e,n.numValues,a);return new S6(r.name,s,i)}function G6(t,e,r,i){let n=ht(t,e),a=kn(i)?i:void 0,s=$y(t,e,n.numValues,a);return new mu(r.name,s,i)}function X6(t,e,r,i,n){let a=ht(t,e),s=rs(a,i,t,e,"int64"),o=n.physicalType===rt.INT_64;if(s===ut.FLAT){let u=kn(i)?i:void 0,h=o?qy(t,e,a,u):Eu(t,e,a,u);return new Yy(r.name,h,i)}if(s===ut.SEQUENCE){let u=Uy(t,e,a);return new Wy(r.name,u[0],u[1],a.numRleValues,o)}let l=o?s6(t,e,a):jy(t,e,a);return new t1(r.name,l,i,o)}function Y6(t,e,r,i,n){let a=ht(t,e),s=rs(a,n,t,e),o=i.physicalType===rt.INT_32;if(s===ut.FLAT){let u=kn(n)?n:void 0,h=o?Ma(t,e,a,void 0,u):Vt(t,e,a,void 0,u);return new yu(r.name,h,n)}if(s===ut.SEQUENCE){let u=Ny(t,e,a);return new gu(r.name,u[0],u[1],a.numRleValues,o)}let l=o?i6(t,e,a):Su(t,e,a);return new xu(r.name,l,n,o)}function kn(t){return t instanceof de}var It={ID:0,ID_NULLABLE:1,ID_LONG:2,GEOMETRY:4,SCALAR_BASE:10,STRUCT:30,MAP:31};function a1(t){switch(t){case It.ID:case It.ID|It.ID_NULLABLE:case It.ID|It.ID_LONG:case It.ID|It.ID_LONG|It.ID_NULLABLE:return{nullable:(t&It.ID_NULLABLE)!==0,columnScope:Xi.FEATURE,type:"scalarType",scalarType:{longID:(t&It.ID_LONG)!==0,type:"logicalType",logicalType:My.ID}};case It.GEOMETRY:return{nullable:!1,columnScope:Xi.FEATURE,type:"complexType",complexType:{type:"physicalType",physicalType:rr.GEOMETRY,children:[]}};case It.STRUCT:return{nullable:!1,columnScope:Xi.FEATURE,type:"complexType",complexType:{type:"physicalType",physicalType:rr.STRUCT,children:[]}};case It.MAP:return{nullable:!0,columnScope:Xi.FEATURE,type:"complexType",complexType:{type:"physicalType",physicalType:rr.MAP,children:[]}};default:return J6(t)}}function W6(t){return t>=It.SCALAR_BASE}function s1(t){return t===It.STRUCT||t===It.MAP}function Z6(t){if(t.type==="scalarType"){let e=t.scalarType;if(e.type==="physicalType")switch(e.physicalType){case rt.BOOLEAN:case rt.INT_8:case rt.UINT_8:case rt.INT_32:case rt.UINT_32:case rt.INT_64:case rt.UINT_64:case rt.FLOAT:case rt.DOUBLE:return!1;case rt.STRING:return!0;default:return!1}if(e.type==="logicalType")return!1}else if(t.type==="complexType"){let e=t.complexType;if(e.type==="physicalType")switch(e.physicalType){case rr.GEOMETRY:case rr.STRUCT:case rr.MAP:return!0;default:return!1}}return console.warn("Unexpected column type in hasStreamCount",t),!1}function H6(t){var e;return t.type==="scalarType"&&((e=t.scalarType)==null?void 0:e.type)==="logicalType"&&t.scalarType.logicalType===My.ID}function K6(t){var e;return t.type==="complexType"&&((e=t.complexType)==null?void 0:e.type)==="physicalType"&&t.complexType.physicalType===rr.GEOMETRY}function J6(t){let e;switch(t){case 10:case 11:e=rt.BOOLEAN;break;case 12:case 13:e=rt.INT_8;break;case 14:case 15:e=rt.UINT_8;break;case 16:case 17:e=rt.INT_32;break;case 18:case 19:e=rt.UINT_32;break;case 20:case 21:e=rt.INT_64;break;case 22:case 23:e=rt.UINT_64;break;case 24:case 25:e=rt.FLOAT;break;case 26:case 27:e=rt.DOUBLE;break;case 28:case 29:e=rt.STRING;break;default:return null}return{nullable:!!(t&1),columnScope:Xi.FEATURE,type:"scalarType",scalarType:{longID:!1,type:"physicalType",physicalType:e}}}var Q6=new TextDecoder,bp="0-3(ID), 4(GEOMETRY), 10-29(scalars), 30(STRUCT), 31(MAP)";function Iu(t,e){let r=Rt(t,e,1)[0];if(r===0)return"";let i=e.get(),n=i+r,a=t.subarray(i,n);return e.add(r),Q6.decode(a)}function t5(t){let e=t.name,r=t.nullable;return t.type==="scalarType"?{type:"scalarField",scalarField:t.scalarType,name:e,nullable:r}:{type:"complexField",complexField:t.complexType,name:e,nullable:r}}function o1(t,e){let r=Rt(t,e,1)[0]>>>0,i=r>=It.SCALAR_BASE?a1(r):null;if(!i)throw Error(`Unsupported field type code ${r}. Supported: 10-29(scalars), 30(STRUCT), 31(MAP)`);let n=Si(Xe({},i),{name:Iu(t,e)});if(n.type==="complexType"&&s1(r)){let a=n.complexType,s=Rt(t,e,1)[0]>>>0;a.children=Array(s);for(let o=0;o>>0,i=a1(r);if(!i)throw Error(`Unsupported column type code ${r}. Supported: ${bp}`);let n;if(W6(r))n=Iu(t,e);else if(r>>0,o=a.complexType;o.children=Array(s);for(let l=0;l>>0,a=Rt(t,e,1)[0]>>>0;i.columns=Array(a);for(let s=0;s>>0,s=i.get()+a;if(s>t.length)throw Error(`Block overruns tile: ${s} > ${t.length}`);let o=Rt(t,i,1)[0]>>>0;if(o!==1&&o!==2){i.set(s);continue}let[l,u]=r5(t,i),h=l.featureTables[0],c=null,p=null,f=[],d=0;for(let m of h.columns){let g=m.name;if(H6(m)){let x=null;if(m.nullable){let b=ht(t,i),w=i.get(),_=ci(t,b.numValues,b.byteLength,i);i.set(w+b.byteLength),x=new de(_,b.numValues)}let v=ht(t,i);d=x?x.size():v.decompressedCount,c=n5(t,m,i,g,v,x!=null?x:d,r)}else if(K6(m)){let x=Rt(t,i,1)[0];if(d===0){let v=i.get();d=ht(t,i).decompressedCount,i.set(v)}e&&(e.scale=e.extent/u),p=w6(t,x,i,d,e)}else{let x=Z6(m)?Rt(t,i,1)[0]:1;if(x===0)continue;let v=N6(t,i,m,x,d,void 0);if(v)if(Array.isArray(v))for(let b of v)f.push(b);else f.push(v)}}let y=new Tw(h.name,p,c,f,u);n.push(y),i.set(s)}return n}function n5(t,e,r,i,n,a,s=!1){var h;let o=(h=e.scalarType)!=null&&h.longID?rt.UINT_64:rt.UINT_32,l=typeof a=="number"?void 0:a,u=rs(n,a,t,r,o===rt.UINT_64?"int64":"int32");if(o===rt.UINT_32)switch(u){case ut.FLAT:return new yu(i,Vt(t,r,n,void 0,l),a);case ut.SEQUENCE:{let c=Ny(t,r,n);return new gu(i,c[0],c[1],n.numRleValues,!1)}case ut.CONST:return new xu(i,Su(t,r,n),a,!1)}switch(u){case ut.FLAT:return s?new mu(i,n6(t,r,n,l),a):new Yy(i,Eu(t,r,n,l),a);case ut.SEQUENCE:{let c=Uy(t,r,n);return new Wy(i,c[0],c[1],n.numRleValues,!1)}case ut.CONST:return new t1(i,jy(t,r,n),a,!1)}throw Error("Vector type not supported for id column.")}var Qs=Py(bu);Qs/32*4,3*Qs/256+Qs|0;var a5=class{constructor(t,e){var r;switch(this._featureData=t,this.properties=this._featureData.properties||{},(r=this._featureData.geometry)==null?void 0:r.type){case Pt.POINT:case Pt.MULTIPOINT:this.type=1;break;case Pt.LINESTRING:case Pt.MULTILINESTRING:this.type=2;break;case Pt.POLYGON:case Pt.MULTIPOLYGON:this.type=3;break;default:this.type=0}this.extent=e,this.id=Number(this._featureData.id)}loadGeometry(){let t=[];for(let e of this._featureData.geometry.coordinates){let r=[];for(let i of e)r.push(new M(i.x,i.y));t.push(r)}return t}},s5=class{constructor(t){this.features=[],this.featureTable=t,this.name=t.name,this.extent=t.extent,this.version=2,this.features=t.getFeatures(),this.length=this.features.length}feature(t){return new a5(this.features[t],this.extent)}},Cu=class{constructor(t){this.layers={};let e=i5(new Uint8Array(t));this.layers=e.reduce((r,i)=>Si(Xe({},r),{[i.name]:new s5(i)}),{})}},Mu=class{constructor(t,e){this.tileID=t,this.x=t.canonical.x,this.y=t.canonical.y,this.z=t.canonical.z,this.grid=new fo(gt,16,0),this.grid3D=new fo(gt,16,0),this.featureIndexArray=new dd,this.promoteId=e}insert(t,e,r,i,n,a){let s=this.featureIndexArray.length;this.featureIndexArray.emplaceBack(r,i,n);let o=a?this.grid3D:this.grid;for(let l of e){let u=[1/0,1/0,-1/0,-1/0];for(let h of l)u[0]=Math.min(u[0],h.x),u[1]=Math.min(u[1],h.y),u[2]=Math.max(u[2],h.x),u[3]=Math.max(u[3],h.y);u[0]<8192&&u[1]<8192&&u[2]>=0&&u[3]>=0&&o.insert(s,u[0],u[1],u[2],u[3])}}loadVTLayers(){return this.vtLayers||(this.encoding==="mlt"?this.vtLayers=new Cu(this.rawTileData).layers:this.vtLayers=new Zl(new lu(this.rawTileData)).layers,this.sourceLayerCoder=new du(this.vtLayers?Object.keys(this.vtLayers).sort():[cl])),this.vtLayers}query(t,e,r,i){this.loadVTLayers();let n=t.params,a=gt/t.tileSize/t.scale,s=ai(n.filter,"queryRenderedFeatures filter",n.globalState),o=t.queryGeometry,l=t.queryPadding*a,u=Ia.fromPoints(o),h=this.grid.query(u.minX-l,u.minY-l,u.maxX+l,u.maxY+l),c=Ia.fromPoints(t.cameraQueryGeometry).expandBy(l),p=this.grid3D.query(c.minX,c.minY,c.maxX,c.maxY,(y,m,g,x)=>Rg(t.cameraQueryGeometry,y-l,m-l,g+l,x+l));for(let y of p)h.push(y);h.sort(l5);let f={},d;for(let y of h){if(y===d)continue;d=y;let m=this.featureIndexArray.get(y),g=null;this.loadMatchingFeature(f,m.bucketIndex,m.sourceLayerIndex,m.featureIndex,s,n.layers,n.availableImages,e,r,i,(x,v,b)=>(g||(g=Fr(x)),v.queryIntersectsFeature({queryGeometry:o,feature:x,featureState:b,geometry:g,zoom:this.z,transform:t.transform,pixelsToTileUnits:a,pixelPosMatrix:t.pixelPosMatrix,unwrappedTileID:this.tileID.toUnwrapped(),getElevation:t.getElevation})))}return f}loadMatchingFeature(t,e,r,i,n,a,s,o,l,u,h){let c=this.bucketLayerIDs[e];if(a&&!c.some(y=>a.has(y)))return;let p=this.sourceLayerCoder.decode(r),f=this.vtLayers[p].feature(i);if(n.needGeometry){let y=hi(f,!0);if(!n.filter(new st(this.tileID.overscaledZ),y,this.tileID.canonical))return}else if(!n.filter(new st(this.tileID.overscaledZ),f))return;let d=this.getId(f,p);for(let y of c){if(a&&!a.has(y))continue;let m=o[y];if(!m)continue;let g={};d&&u&&(g=u.getState(m.sourceLayer||"_geojsonTileLayer",d));let x=Xt({},l[y]);x.paint=wp(x.paint,m.paint,f,g,s),x.layout=wp(x.layout,m.layout,f,g,s);let v=!h||h(f,m,g);if(!v)continue;let b=new Fw(f,this.z,this.x,this.y,d);b.layer=x;let w=t[y];w===void 0&&(w=t[y]=[]),w.push({featureIndex:i,feature:b,intersectionZ:v})}}lookupSymbolFeatures(t,e,r,i,n,a,s,o){let l={};this.loadVTLayers();let u=ai(n.filterSpec,"queryRenderedFeatures symbol filter",n.globalState);for(let h of t)this.loadMatchingFeature(l,r,i,h,u,a,s,o,e);return l}hasLayer(t){for(let e of this.bucketLayerIDs)for(let r of e)if(t===r)return!0;return!1}getId(t,e){var i;let r=t.id;if(this.promoteId){let n=typeof this.promoteId=="string"?this.promoteId:this.promoteId[e];r=t.properties[n],typeof r=="boolean"&&(r=Number(r)),r===void 0&&((i=t.properties)!=null&&i.cluster)&&this.promoteId&&(r=Number(t.properties.cluster_id))}return r}};C("FeatureIndex",Mu,{omit:["rawTileData","sourceLayerCoder"]});function o5(t){return typeof t=="object"&&!!t&&"evaluate"in t}function wp(t,e,r,i,n){return xn(t,(a,s)=>{let o=e instanceof Wa?e.get(s):null;return o5(o)?o.evaluate(r,i,void 0,n):o})}function l5(t,e){return e-t}var l1=class{constructor(t){this.maxEntries=t,this.map=new Map}get(t){let e=this.map.get(t);return e!==void 0&&(this.map.delete(t),this.map.set(t,e)),e}set(t,e){if(this.map.has(t))this.map.delete(t);else if(this.map.size>=this.maxEntries){let r=this.map.keys().next().value;this.map.delete(r)}this.map.set(t,e)}clear(){this.map.clear()}};function Bu(t){let e=typeof t;if(e==="number"||e==="boolean"||e==="string"||t==null)return JSON.stringify(t);if(Array.isArray(t)){let n="[";for(let a of t)n+=`${Bu(a)},`;return`${n}]`}let r=Object.keys(t).sort(),i="{";for(let n=0;nthis._layers[c.id]),s=a[0];if(s.isHidden())continue;let o=s.source||"",l=this.familiesBySource[o];l||(l=this.familiesBySource[o]={});let u=s.sourceLayer||"_geojsonTileLayer",h=l[u];h||(h=l[u]=[]),h.push(a)}}},c1=class{constructor(t){let e={},r=[];for(let s in t){let o=e[s]={};for(let l in t[s]){let u=t[s][l];o[l]={};for(let h in u){let c=u[h];if(!c||c.bitmap.width===0||c.bitmap.height===0)continue;let p={x:0,y:0,w:c.bitmap.width+2,h:c.bitmap.height+2};r.push(p),o[l][h]={rect:p,metrics:c.metrics}}}}let{w:i,h:n}=uu(r),a=new Qa({width:i||1,height:n||1});for(let s in t)for(let o in t[s]){let l=t[s][o];for(let u in l){let h=l[u];if(!h||h.bitmap.width===0||h.bitmap.height===0)continue;let c=e[s][o][u].rect;Qa.copy(h.bitmap,a,{x:0,y:0},{x:c.x+1,y:c.y+1},h.bitmap)}}this.image=a,this.positions=e}};C("GlyphAtlas",c1);var p1=class{constructor(t){this.tileID=new pu(t.tileID.overscaledZ,t.tileID.wrap,t.tileID.canonical.z,t.tileID.canonical.x,t.tileID.canonical.y),this.uid=t.uid,this.zoom=t.zoom,this.pixelRatio=t.pixelRatio,this.tileSize=t.tileSize,this.source=t.source,this.overscaling=this.tileID.overscaleFactor(),this.showCollisionBoxes=t.showCollisionBoxes,this.collectResourceTiming=!!t.collectResourceTiming,this.returnDependencies=!!t.returnDependencies,this.promoteId=t.promoteId,this.inFlightDependencies=[]}parse(t,e,r,i,n){return et(this,null,function*(){this.data=t,this.collisionBoxArray=new Rl;let a=new du(Object.keys(t.layers).sort()),s=new Mu(this.tileID,this.promoteId);s.bucketLayerIDs=[];let o={},l={featureIndex:s,iconDependencies:{},patternDependencies:{},glyphDependencies:{},dashDependencies:{},availableImages:r,subdivisionGranularity:n},u=e.familiesBySource[this.source];for(let S in u){let T=t.layers[S];if(!T)continue;T.version===1&&Mt(`Vector tile source "${this.source}" layer "${S}" does not use vector tile spec v2 and therefore may have some rendering errors.`);let L=a.encode(S),O=[];for(let B=0;BF.id)))}}let h=xn(l.glyphDependencies,S=>xn(S,T=>Object.keys(T)));for(let S of this.inFlightDependencies)S==null||S.abort();this.inFlightDependencies=[];let c=Promise.resolve({});if(Object.keys(h).length){let S=new AbortController;this.inFlightDependencies.push(S),c=i.sendAsync({type:"GG",data:{stacks:h,source:this.source,tileID:this.tileID,type:"glyphs"}},S)}let p=Object.keys(l.iconDependencies),f=Promise.resolve({});if(p.length){let S=new AbortController;this.inFlightDependencies.push(S),f=i.sendAsync({type:"GI",data:{icons:p,source:this.source,tileID:this.tileID,type:"icons"}},S)}let d=Object.keys(l.patternDependencies),y=Promise.resolve({});if(d.length){let S=new AbortController;this.inFlightDependencies.push(S),y=i.sendAsync({type:"GI",data:{icons:d,source:this.source,tileID:this.tileID,type:"patterns"}},S)}let m=l.dashDependencies,g=Promise.resolve({});if(Object.keys(m).length){let S=new AbortController;this.inFlightDependencies.push(S),g=i.sendAsync({type:"GDA",data:{dashes:m}},S)}let[x,v,b,w]=yield Promise.all([c,f,y,g]),_=new c1(x),A=new hu(v,b);for(let S in o){let T=o[S];T.hasDependencies&&(u1(T.layers,this.zoom,r),T.addFeatures({options:l,canonical:this.tileID.canonical,glyphMap:x,glyphPositions:_.positions,iconMap:v,iconPositions:A.iconPositions,patternMap:b,patternPositions:A.patternPositions,dashPositions:w,showCollisionBoxes:this.showCollisionBoxes}))}return{buckets:Object.values(o).filter(S=>!S.isEmpty()),featureIndex:s,collisionBoxArray:this.collisionBoxArray,glyphAtlasImage:_.image,imageAtlas:A,dashPositions:w,glyphMap:this.returnDependencies?x:null,iconMap:this.returnDependencies?v:null,glyphPositions:this.returnDependencies?_.positions:null}})}};function u1(t,e,r){let i=new st(e);for(let n of t)n.recalculate(i,r)}var f1=class{constructor(){this.loading={},this.loaded={},this.parsing={}}startLoading(t,e){this.loading[t]=e}finishLoading(t){delete this.loading[t]}abort(t){let e=this.loading[t];e!=null&&e.abort&&(e.abort.abort(),delete this.loading[t])}getParsing(t){return this.parsing[t]}setParsing(t,e){this.parsing[t]=e}removeParsing(t){delete this.parsing[t]}markLoaded(t,e){this.loaded[t]=e}getLoaded(t){let e=this.loaded[t];if(e)return e}removeLoaded(t){delete this.loaded[t]}clearLoaded(){this.loaded={}}},d1=class{constructor(t){this.start=`${t}#start`,this.end=`${t}#end`,this.measure=t,performance.mark(this.start)}finish(){performance.mark(this.end);let t=performance.getEntriesByName(this.measure);return t.length===0&&(performance.measure(this.measure,this.start,this.end),t=performance.getEntriesByName(this.measure),performance.clearMarks(this.start),performance.clearMarks(this.end),performance.clearMeasures(this.measure)),t}},p5=class{constructor(t,e,r,i,n){this.type=t,this.properties=r||{},this.extent=n,this.pointsArray=e,this.id=i}loadGeometry(){return this.pointsArray.map(t=>t.map(e=>new M(e.x,e.y)))}},f5=class{constructor(t,e,r){this.version=2,this._myFeatures=t,this.name=e,this.length=t.length,this.extent=r}feature(t){return this._myFeatures[t]}},d5=class{constructor(){this.layers={}}addLayer(t){this.layers[t.name]=t}};function y5(t,e,r){let{extent:i}=t,n=2**(r.z-e.z),a=(r.x-e.x*n)*i,s=(r.y-e.y*n)*i,o=[];for(let l=0;l0&&l.addLayer(d)}let h={vectorTile:l,rawData:fu(l).buffer};return this.overzoomedTileResultCache.set(s,h),h}reloadTile(t){return et(this,null,function*(){let e=t.uid,r=this.tileState.getLoaded(e);if(!r)throw Error("Should not be trying to reload a tile that was never loaded or has been removed");if(r.vectorTile)return r.showCollisionBoxes=t.showCollisionBoxes,yield this._parseWorkerTile(r,t)})}abortTile(t){return et(this,null,function*(){this.tileState.abort(t.uid)})}removeTile(t){return et(this,null,function*(){this.tileState.removeLoaded(t.uid)})}},g5=class{constructor(){this.loaded={}}loadTile(t){return et(this,null,function*(){let{uid:e,encoding:r,rawImageData:i,redFactor:n,greenFactor:a,blueFactor:s,baseShift:o}=t,l=i.width+4,u=i.height+4,h=Ba(i)?new Ht({width:l,height:u},yield Ep(i,-2,-2,l,u)):i,c=new Yl(e,h,r,n,a,s,o);return this.loaded||(this.loaded={}),this.loaded[e]=c,c})}removeTile(t){let e=this.loaded,r=t.uid;e!=null&&e[r]&&delete e[r]}},x5=class{constructor(t,e,r,i=v5){this.actor=t,this.layerIndex=e,this.availableImages=r,this.tileState=new f1,this._createGeoJSONIndex=i}loadVectorTile(t){if(!this._geoJSONIndex)throw Error("Unable to parse the data into a cluster or geojson");let{z:e,x:r,y:i}=t.tileID.canonical,n=this._geoJSONIndex.getTile(e,r,i);if(!n)return null;let a=new Iy(n.features,{version:2,extent:gt});return{vectorTile:a,rawData:fu(a,Sp).buffer}}loadTile(t){return et(this,null,function*(){let{uid:e}=t,r=new p1(t);r.abort=new AbortController;try{let i=this.loadVectorTile(t);if(!i)return null;let{vectorTile:n,rawData:a}=i;r.vectorTile=n,this.tileState.markLoaded(e,r);let s={rawData:a};return this.tileState.setParsing(e,s),yield this._parseWorkerTile(r,t)}catch(i){throw this.tileState.markLoaded(e,r),i}})}_parseWorkerTile(t,e){return et(this,null,function*(){let r=this.tileState.getParsing(t.uid),i=yield t.parse(t.vectorTile,this.layerIndex,this.availableImages,this.actor,e.subdivisionGranularity);if(r){let{rawData:n}=r;i=Xt({rawTileData:n.slice(0),encoding:"mvt"},i),this.tileState.removeParsing(t.uid)}return i})}abortTile(t){return et(this,null,function*(){this.tileState.abort(t.uid)})}removeTile(t){return et(this,null,function*(){this.tileState.removeLoaded(t.uid)})}loadData(t){return et(this,null,function*(){var r;(r=this._pendingRequest)==null||r.abort();let e=this._startRequestTiming(t);this._pendingRequest=new AbortController;try{yield this.loadAndProcessGeoJSON(t,this._pendingRequest),delete this._pendingRequest,this.tileState.clearLoaded();let i={};return t.request&&(i.data=t.data),this._finishRequestTiming(e,t,i),i}catch(i){if(delete this._pendingRequest,!xl(i))throw i;return{abandoned:!0}}})}_startRequestTiming(t){var e;if((e=t.request)!=null&&e.collectResourceTiming)return new d1(t.request.url)}_finishRequestTiming(t,e,r){let i=t==null?void 0:t.finish();i&&(r.resourceTiming={[e.source]:JSON.parse(JSON.stringify(i))})}reloadTile(t){return et(this,null,function*(){let e=t.uid,r=this.tileState.getLoaded(e);if(!r)return yield this.loadTile(t);if(r.vectorTile)return r.showCollisionBoxes=t.showCollisionBoxes,yield this._parseWorkerTile(r,t)})}loadAndProcessGeoJSON(t,e){return et(this,null,function*(){var r;if(t.request&&(t.data=(yield Ip(t.request,e)).data),t.data){t.data=this._filterGeoJSON(t.data,t.filter,t.source),this._geoJSONIndex=this._createGeoJSONIndex(t.data,t);return}if(t.dataDiff){(r=this._geoJSONIndex)!=null||(this._geoJSONIndex=this._createGeoJSONIndex({type:"FeatureCollection",features:[]},t)),this._geoJSONIndex.updateData(t.dataDiff,this._getFilterPredicate(t.filter,t.source));return}if(t.updateCluster&&this._geoJSONIndex.updateClusterOptions(t.geojsonVtOptions.cluster,y1(t)),this._geoJSONIndex==null)throw Error(`Input data given to \'${t.source}\' is not a valid GeoJSON object.`)})}_filterGeoJSON(t,e,r){if(t.type!=="FeatureCollection")return t;let i=this._getFilterPredicate(e,r);return i?{type:"FeatureCollection",features:t.features.filter(n=>i(n))}:t}_getFilterPredicate(t,e){if(typeof t!="boolean"&&!(t!=null&&t.length))return;let r=ar(t,`sources.${e}.filter`,{type:"boolean","property-type":"data-driven",overridable:!1,transition:!1});if(r.result==="error")throw Error(r.value.map(i=>`${i.key}: ${i.message}`).join(", "));return i=>r.value.evaluate({zoom:0},i)}removeSource(t){return et(this,null,function*(){var e;(e=this._pendingRequest)==null||e.abort()})}getClusterExpansionZoom(t){return this._geoJSONIndex.getClusterExpansionZoom(t.clusterId)}getClusterChildren(t){return this._geoJSONIndex.getClusterChildren(t.clusterId)}getClusterLeaves(t){return this._geoJSONIndex.getClusterLeaves(t.clusterId,t.limit,t.offset)}};function v5(t,e){let r=Xt(e.geojsonVtOptions||{},{updateable:!0,clusterOptions:y1(e)});return new Kd(t,r)}function y1({geojsonVtOptions:t,clusterProperties:e,source:r}){if(!e||!t.clusterOptions)return t.clusterOptions;let i={},n={},a={accumulated:null,zoom:0},s={properties:null},o=Object.keys(e);for(let l of o){let[u,h]=e[l],c=ar(h,`sources.${r}.clusterProperties.${l}[1]`),p=ar(typeof u=="string"?[u,["accumulated"],["get",l]]:u,`sources.${r}.clusterProperties.${l}[0]`);i[l]=c.value,n[l]=p.value}return t.clusterOptions.map=l=>{s.properties=l;let u={};for(let h of o)u[h]=i[h].evaluate(a,s);return u},t.clusterOptions.reduce=(l,u)=>{s.properties=u;for(let h of o)a.accumulated=l[h],l[h]=n[h].evaluate(a,s)},t.clusterOptions}function h1(t){return et(this,null,function*(){if(t.endsWith(".mjs")){yield import(t);return}let e=yield fetch(t,{credentials:"same-origin"});if(!e.ok)throw Error(`Failed to load ${t}: ${e.status}`);let r=yield e.text();if(/^[ \\t]*(import|export)\\s/m.test(r)){let i=URL.createObjectURL(new Blob([r],{type:"text/javascript"}));try{yield import(i)}finally{URL.revokeObjectURL(i)}return}globalThis.eval(r)})}var b5=class{constructor(t){this.self=t,this.actor=new Ty(t),this.layerIndexes={},this.availableImages={},this.workerSources={},this.demWorkerSources={},this.externalWorkerSourceTypes={},this.globalStates=new Map,this.self.registerWorkerSource=(e,r)=>{if(this.externalWorkerSourceTypes[e])throw Error(`Worker source with name "${e}" already registered.`);this.externalWorkerSourceTypes[e]=r},this.self.addProtocol=Fp,this.self.removeProtocol=Tp,this.self.registerRTLTextPlugin=e=>{Ar.setMethods(e)},this.self.makeRequest=Pa,this.actor.registerMessageHandler("LDT",(e,r)=>this._getDEMWorkerSource(e,r.source).loadTile(r)),this.actor.registerMessageHandler("RDT",(e,r)=>et(this,null,function*(){this._getDEMWorkerSource(e,r.source).removeTile(r)})),this.actor.registerMessageHandler("GCEZ",(e,r)=>et(this,null,function*(){return this._getWorkerSource(e,r.type,r.source).getClusterExpansionZoom(r)})),this.actor.registerMessageHandler("GCC",(e,r)=>et(this,null,function*(){return this._getWorkerSource(e,r.type,r.source).getClusterChildren(r)})),this.actor.registerMessageHandler("GCL",(e,r)=>et(this,null,function*(){return this._getWorkerSource(e,r.type,r.source).getClusterLeaves(r)})),this.actor.registerMessageHandler("LD",(e,r)=>this._getWorkerSource(e,r.type,r.source).loadData(r)),this.actor.registerMessageHandler("LT",(e,r)=>this._getWorkerSource(e,r.type,r.source).loadTile(r)),this.actor.registerMessageHandler("RT",(e,r)=>this._getWorkerSource(e,r.type,r.source).reloadTile(r)),this.actor.registerMessageHandler("AT",(e,r)=>this._getWorkerSource(e,r.type,r.source).abortTile(r)),this.actor.registerMessageHandler("RMT",(e,r)=>this._getWorkerSource(e,r.type,r.source).removeTile(r)),this.actor.registerMessageHandler("RS",(e,r)=>et(this,null,function*(){var n,a;if(!((a=(n=this.workerSources[e])==null?void 0:n[r.type])!=null&&a[r.source]))return;let i=this.workerSources[e][r.type][r.source];delete this.workerSources[e][r.type][r.source],i.removeSource!==void 0&&i.removeSource(r)})),this.actor.registerMessageHandler("RM",e=>et(this,null,function*(){delete this.layerIndexes[e],delete this.availableImages[e],delete this.workerSources[e],delete this.demWorkerSources[e],this.globalStates.delete(e)})),this.actor.registerMessageHandler("SR",(e,r)=>et(this,null,function*(){this.referrer=r})),this.actor.registerMessageHandler("SRPS",(e,r)=>this._syncRTLPluginState(e,r)),this.actor.registerMessageHandler("IS",(e,r)=>et(this,null,function*(){yield h1(r)})),this.actor.registerMessageHandler("SI",(e,r)=>this._setImages(e,r)),this.actor.registerMessageHandler("UL",(e,r)=>et(this,null,function*(){this._getLayerIndex(e).update(r.layers,r.removedIds,this._getGlobalState(e))})),this.actor.registerMessageHandler("UGS",(e,r)=>et(this,null,function*(){let i=this._getGlobalState(e);for(let n in r)i[n]=r[n]})),this.actor.registerMessageHandler("SL",(e,r)=>et(this,null,function*(){this._getLayerIndex(e).replace(r,this._getGlobalState(e))}))}_getGlobalState(t){let e=this.globalStates.get(t);return e||(e={},this.globalStates.set(t,e)),e}_setImages(t,e){return et(this,null,function*(){this.availableImages[t]=e;for(let r in this.workerSources[t]){let i=this.workerSources[t][r];for(let n in i)i[n].availableImages=e}})}_syncRTLPluginState(t,e){return et(this,null,function*(){return yield Ar.syncState(e,h1)})}_getAvailableImages(t){let e=this.availableImages[t];return e||(e=[]),e}_getLayerIndex(t){let e=this.layerIndexes[t];return e||(e=this.layerIndexes[t]=new c5),e}_getWorkerSource(t,e,r){var i,n;if((i=this.workerSources)[t]||(i[t]={}),(n=this.workerSources[t])[e]||(n[e]={}),!this.workerSources[t][e][r]){let a={sendAsync:(s,o)=>(s.targetMapId=t,this.actor.sendAsync(s,o))};switch(e){case"vector":this.workerSources[t][e][r]=new m5(a,this._getLayerIndex(t),this._getAvailableImages(t));break;case"geojson":this.workerSources[t][e][r]=new x5(a,this._getLayerIndex(t),this._getAvailableImages(t));break;default:this.workerSources[t][e][r]=new this.externalWorkerSourceTypes[e](a,this._getLayerIndex(t),this._getAvailableImages(t))}}return this.workerSources[t][e][r]}_getDEMWorkerSource(t,e){var r,i;return(r=this.demWorkerSources)[t]||(r[t]={}),(i=this.demWorkerSources[t])[e]||(i[e]=new g5),this.demWorkerSources[t][e]}};vr(self)&&(self.worker=new b5(self));export{b5 as default};\n/*! Bundled license information:\n\nmaplibre-gl/dist/maplibre-gl-shared.mjs:\nmaplibre-gl/dist/maplibre-gl-worker.mjs:\n (**\n * MapLibre GL JS\n * @license 3-Clause BSD. Full text of license: https://github.com/maplibre/maplibre-gl-js/blob/v6.11.2/LICENSE.txt\n *)\n*/\n'});var Mut=K((bfi,Tut)=>{"use strict";var M3=Mt(),wDr=zu().sanitizeHTML,ADr=Lre(),_ut=rx();function wut(e,t){this.subplot=e,this.uid=e.uid+"-"+t,this.index=t,this.idSource="source-"+this.uid,this.idLayer=_ut.layoutLayerPrefix+this.uid,this.sourceType=null,this.source=null,this.layerType=null,this.below=null,this.visible=!1}var Dv=wut.prototype;Dv.update=function(t){this.visible?this.needsNewImage(t)?this.updateImage(t):this.needsNewSource(t)?(this.removeLayer(),this.updateSource(t),this.updateLayer(t)):this.needsNewLayer(t)?this.updateLayer(t):this.updateStyle(t):(this.updateSource(t),this.updateLayer(t)),this.visible=gO(t)};Dv.needsNewImage=function(e){var t=this.subplot.map;return t.getSource(this.idSource)&&this.sourceType==="image"&&e.sourcetype==="image"&&(this.source!==e.source||JSON.stringify(this.coordinates)!==JSON.stringify(e.coordinates))};Dv.needsNewSource=function(e){return this.sourceType!==e.sourcetype||JSON.stringify(this.source)!==JSON.stringify(e.source)||this.layerType!==e.type};Dv.needsNewLayer=function(e){return this.layerType!==e.type||this.below!==this.subplot.belowLookup["layout-"+this.index]};Dv.lookupBelow=function(){return this.subplot.belowLookup["layout-"+this.index]};Dv.updateImage=function(e){var t=this.subplot.map;t.getSource(this.idSource).updateImage({url:e.source,coordinates:e.coordinates});var r=this.findFollowingMapLayerId(this.lookupBelow());r!==null&&this.subplot.map.moveLayer(this.idLayer,r)};Dv.updateSource=function(e){var t=this.subplot.map;if(t.getSource(this.idSource)&&t.removeSource(this.idSource),this.sourceType=e.sourcetype,this.source=e.source,!!gO(e)){var r=TDr(e);t.addSource(this.idSource,r)}};Dv.findFollowingMapLayerId=function(e){if(e==="traces")for(var t=this.subplot.getMapLayers(),r=0;r0){for(var r=0;r0}function Aut(e){var t={},r={};switch(e.type){case"circle":M3.extendFlat(r,{"circle-radius":e.circle.radius,"circle-color":e.color,"circle-opacity":e.opacity});break;case"line":M3.extendFlat(r,{"line-width":e.line.width,"line-color":e.color,"line-opacity":e.opacity,"line-dasharray":e.line.dash});break;case"fill":M3.extendFlat(r,{"fill-color":e.color,"fill-outline-color":e.fill.outlinecolor,"fill-opacity":e.opacity});break;case"symbol":var i=e.symbol,n=ADr(i.textposition,i.iconsize);M3.extendFlat(t,{"icon-image":i.icon,"icon-size":i.iconsize/10,"text-field":i.text,"text-size":i.textfont.size,"text-anchor":n.anchor,"text-offset":n.offset,"symbol-placement":i.placement}),M3.extendFlat(r,{"icon-color":e.color,"text-color":i.textfont.color,"text-opacity":e.opacity});break;case"raster":M3.extendFlat(r,{"raster-fade-duration":0,"raster-opacity":e.opacity});break}return{layout:t,paint:r}}function TDr(e){var t=e.sourcetype,r=e.source,i={type:t},n;return t==="geojson"?n="data":t==="vector"?n=typeof r=="string"?"url":"tiles":t==="raster"?(n="tiles",i.tileSize=256):t==="image"&&(n="url",i.coordinates=e.coordinates),i[n]=r,e.sourceattribution&&(i.attribution=wDr(e.sourceattribution)),i}Tut.exports=function(t,r,i){var n=new wut(t,r);return n.update(i),n}});var Rut=K((_fi,Iut)=>{"use strict";var bO=(gut(),ar(mut)),MDr=but(),Sut=!1,SDr=()=>{Sut||(Sut=!0,bO.setWorkerUrl(URL.createObjectURL(new Blob([MDr],{type:"text/javascript"}))))},_O=Mt(),Cut=Ry(),Eut=Ho(),EDr=Cs(),kDr=N0(),xO=Uf(),Dut=X1(),CDr=Dut.drawMode,DDr=Dut.selectMode,FDr=uh().prepSelect,LDr=uh().clearOutline,PDr=uh().clearSelectionsCache,zDr=uh().selectOnClick,wx=rx(),IDr=Mut();function Fut(e,t){this.id=t,this.gd=e;var r=e._fullLayout,i=e._context;this.container=r._glcontainer.node(),this.isStatic=i.staticPlot,this.uid=r._uid+"-"+this.id,this.div=null,this.xaxis=null,this.yaxis=null,this.createFramework(r),this.map=null,this.styleObj=null,this.traceHash={},this.layerList=[],this.belowLookup={},this.dragging=!1,this.wheeling=!1}var nh=Fut.prototype;nh.plot=function(e,t,r){var i=this,n;i.map?n=new Promise(function(a,o){i.updateMap(e,t,a,o)}):n=new Promise(function(a,o){i.createMap(e,t,a,o)}),r.push(n)};nh.createMap=function(e,t,r,i){var n=this,a=t[n.id],o=n.styleObj=zut(a.style),s=a.bounds,l=s?[[s.west,s.south],[s.east,s.north]]:null;let u={container:n.div,style:o.style,center:joe(a.center),zoom:a.zoom,bearing:a.bearing,pitch:a.pitch,maxBounds:l,interactive:!n.isStatic,canvasContextAttributes:{preserveDrawingBuffer:n.isStatic},doubleClickZoom:!1,boxZoom:!1,attributionControl:!1},f=a._fitBounds;f&&(u.bounds=[[f.west,f.south],[f.east,f.north]],u.fitBoundsOptions={padding:wx.fitBoundsPadding}),SDr();let c=n.map=new bO.Map(u).addControl(new bO.AttributionControl({compact:!0})),h={};c.setMissingStyleImageResolver(p=>(!h[p]&&/^[a-zA-Z0-9-]+$/.test(p)&&(h[p]=new Promise(v=>{let y=new Image(15,15);y.onload=()=>{c.addImage(p,y,{sdf:!0}),v()},y.onerror=()=>v(),y.crossOrigin="Anonymous",y.src=`https://cdn.jsdelivr.net/npm/@mapbox/maki@8.2.0/icons/${p}.svg`})),h[p])),c.setTransformRequest(function(p){return p=p.replace("https://fonts.openmaptiles.org/Open Sans Extrabold","https://fonts.openmaptiles.org/Open Sans Extra Bold"),p=p.replace("https://tiles.basemaps.cartocdn.com/fonts/Open Sans Extrabold","https://fonts.openmaptiles.org/Open Sans Extra Bold"),p=p.replace("https://fonts.openmaptiles.org/Open Sans Regular,Arial Unicode MS Regular","https://fonts.openmaptiles.org/Klokantech Noto Sans Regular"),{url:p}}),c._canvas.style.left="0px",c._canvas.style.top="0px",n.rejectOnError(i),n.isStatic||n.initFx(e,t);var d=[];d.push(new Promise(function(p){c.once("load",p)})),d=d.concat(Cut.fetchTraceGeoData(e)),Promise.all(d).then(function(){f&&Lut(n,a),Put(n,a),n.fillBelowLookup(e,t),n.updateData(e),n.updateLayout(t),n.resolveOnRender(r)}).catch(i)};nh.updateMap=function(e,t,r,i){var n=this,a=n.map,o=t[this.id];n.rejectOnError(i);var s=[],l=zut(o.style);JSON.stringify(n.styleObj)!==JSON.stringify(l)&&(n.styleObj=l,a.setStyle(l.style),n.traceHash={},s.push(new Promise(function(u){a.once("styledata",u)}))),s=s.concat(Cut.fetchTraceGeoData(e)),Promise.all(s).then(function(){n.fillBelowLookup(e,t),n.updateData(e);let u=o._fitBounds;u&&(a.fitBounds([[u.west,u.south],[u.east,u.north]],{padding:wx.fitBoundsPadding,animate:!1}),Lut(n,o),Put(n,o)),n.updateLayout(t),n.resolveOnRender(r)}).catch(i)};function Lut(e,t){let{center:r,zoom:i}=e.getView();t._input.center=t.center=r,t._input.zoom=t.zoom=i,t._input._fitView={center:Zs({},r),zoom:i}}function Put(e,t){let r=e.getView();e.viewInitial={center:_O.extendFlat({},r.center),bearing:t.bearing,pitch:t.pitch,zoom:r.zoom}}nh.fillBelowLookup=function(e,t){var r=t[this.id],i=r.layers,n,a,o=this.belowLookup={},s=!1;for(n=0;n1)for(n=0;nt.project(i).x,_subplot:t},t.yaxis={_id:"y",c2p:i=>t.project(i).y,_subplot:t},t.updateFramework(e),t.mockAxis={type:"linear",showexponent:"all",exponentformat:"B"},EDr.setConvert(t.mockAxis,e)};nh.initFx=function(e,t){var r=this,i=r.gd,n=r.map;n.on("moveend",function(s){if(r.map){var l=i._fullLayout;if(s.originalEvent||r.wheeling){var u=l[r.id];Eut.call("_storeDirectGUIEdit",i.layout,l._preGUI,r.getViewEdits(u));var f=r.getView();u._input.center=u.center=f.center,u._input.zoom=u.zoom=f.zoom,u._input.bearing=u.bearing=f.bearing,u._input.pitch=u.pitch=f.pitch,i.emit("plotly_relayout",r.getViewEditsWithDerived(f))}s.originalEvent&&s.originalEvent.type==="mouseup"?r.dragging=!1:r.wheeling&&(r.wheeling=!1),l&&l._rehover&&l._rehover()}}),n.on("wheel",function(){r.wheeling=!0}),n.on("mousemove",function(s){var l=r.div.getBoundingClientRect(),u=[s.originalEvent.offsetX,s.originalEvent.offsetY];s.target.getBoundingClientRect=function(){return l},r.xaxis.p2c=function(){return n.unproject(u).lng},r.yaxis.p2c=function(){return n.unproject(u).lat},i._fullLayout._rehover=function(){i._fullLayout._hoversubplot===r.id&&i._fullLayout[r.id]&&xO.hover(i,s,r.id)},xO.hover(i,s,r.id),i._fullLayout._hoversubplot=r.id});function a(){xO.loneUnhover(t._hoverlayer)}n.on("dragstart",function(){r.dragging=!0,a()}),n.on("zoomstart",a),n.on("mouseout",function(){i._fullLayout._hoversubplot=null});function o(){var s=r.getView();i.emit("plotly_relayouting",r.getViewEditsWithDerived(s))}n.on("drag",o),n.on("zoom",o),n.on("dblclick",function(){var s=i._fullLayout[r.id];Eut.call("_storeDirectGUIEdit",i.layout,i._fullLayout._preGUI,r.getViewEdits(s));var l=r.viewInitial;n.setCenter(joe(l.center)),n.setZoom(l.zoom),n.setBearing(l.bearing),n.setPitch(l.pitch);var u=r.getView();s._input.center=s.center=u.center,s._input.zoom=s.zoom=u.zoom,s._input.bearing=s.bearing=u.bearing,s._input.pitch=s.pitch=u.pitch,i.emit("plotly_doubleclick",null),i.emit("plotly_relayout",r.getViewEditsWithDerived(u))}),r.clearOutline=function(){PDr(r.dragOptions),LDr(r.dragOptions.gd)},r.onClickInPanFn=function(s){return function(l){var u=i._fullLayout.clickmode;u.indexOf("select")>-1&&zDr(l.originalEvent,i,[r.xaxis],[r.yaxis],r.id,s),u.indexOf("event")>-1&&xO.click(i,l.originalEvent)}}};nh.updateFx=function(e){var t=this,r=t.map,i=t.gd;if(t.isStatic)return;function n(l){var u=t.map.unproject(l);return[u.lng,u.lat]}var a=e.dragmode,o;o=function(l,u){if(u.isRect){var f=l.range={};f[t.id]=[n([u.xmin,u.ymin]),n([u.xmax,u.ymax])]}else{var c=l.lassoPoints={};c[t.id]=u.map(n)}};var s=t.dragOptions;t.dragOptions=_O.extendDeep(s||{},{dragmode:e.dragmode,element:t.div,gd:i,plotinfo:{id:t.id,domain:e[t.id].domain,xaxis:t.xaxis,yaxis:t.yaxis,fillRangeItems:o},xaxes:[t.xaxis],yaxes:[t.yaxis],subplot:t.id}),r.off("click",t.onClickInPanHandler),DDr(a)||CDr(a)?(r.dragPan.disable(),r.on("zoomstart",t.clearOutline),t.dragOptions.prepFn=function(l,u,f){FDr(l,u,f,t.dragOptions,a)},kDr.init(t.dragOptions)):(r.dragPan.enable(),r.off("zoomstart",t.clearOutline),t.div.onmousedown=null,t.div.ontouchstart=null,t.div.removeEventListener("touchstart",t.div._ontouchstart),t.onClickInPanHandler=t.onClickInPanFn(t.dragOptions),r.on("click",t.onClickInPanHandler))};nh.updateFramework=function(e){var t=e[this.id].domain,r=e._size,i=this.div.style;i.width=r.w*(t.x[1]-t.x[0])+"px",i.height=r.h*(t.y[1]-t.y[0])+"px",i.left=r.l+t.x[0]*r.w+"px",i.top=r.t+(1-t.y[1])*r.h+"px",this.xaxis._offset=r.l+t.x[0]*r.w,this.xaxis._length=r.w*(t.x[1]-t.x[0]),this.yaxis._offset=r.t+(1-t.y[1])*r.h,this.yaxis._length=r.h*(t.y[1]-t.y[0])};nh.updateLayers=function(e){var t=e[this.id],r=t.layers,i=this.layerList,n;if(r.length!==i.length){for(n=0;nRDr});function RDr(e,t){let r=[];for(let l of e){if(l.subplot!==t||l.visible!==!0)continue;if(l.type==="choroplethmap")return null;let{lat:u,lon:f}=l;if(!f||!u)continue;let c=Math.min(f.length,u.length);for(let h=0;h{"use strict";But=I1(Ry())});var Uut=K((Afi,Vut)=>{"use strict";var Woe=Mt(),BDr=Jb(),qDr=w0(),Nut=gk(),{getMapFitBounds:ODr}=(Out(),ar(qut));Vut.exports=function(t,r,i){BDr(t,r,i,{type:"map",attributes:Nut,handleDefaults:NDr,partition:"y",fullData:i})};function NDr(e,t,r,i){r("style"),r("center.lon"),r("center.lat"),r("zoom"),r("bearing"),r("pitch");let n=r("fitbounds");var a=r("bounds.west"),o=r("bounds.east"),s=r("bounds.south"),l=r("bounds.north");(a===void 0||o===void 0||s===void 0||l===void 0)&&delete t.bounds,qDr(e,t,{name:"layers",handleItemDefaults:VDr}),t._fitBounds=null;let{_fitView:{center:u,zoom:f}={},center:c,zoom:h}=e,d=(c==null?void 0:c.lon)===(u==null?void 0:u.lon)&&(c==null?void 0:c.lat)===(u==null?void 0:u.lat)&&h===f;if(n&&d){let p=ODr(i.fullData,i.id);p&&(t._fitBounds=p)}t._input=e}function VDr(e,t){function r(l,u){return Woe.coerce(e,t,Nut.layers,l,u)}var i=r("visible");if(i){var n=r("sourcetype"),a=n==="raster"||n==="image";r("source"),r("sourceattribution"),n==="vector"&&r("sourcelayer"),n==="image"&&r("coordinates");var o;a&&(o="raster");var s=r("type",o);a&&s!=="raster"&&(s=t.type="raster",Woe.log("Source types *raster* and *image* must drawn *raster* layer type.")),r("below"),r("color"),r("opacity"),r("minzoom"),r("maxzoom"),s==="circle"&&r("circle.radius"),s==="line"&&(r("line.width"),r("line.dash")),s==="fill"&&r("fill.outlinecolor"),s==="symbol"&&(r("symbol.icon"),r("symbol.iconsize"),r("symbol.text"),Woe.coerceFont(r,"symbol.textfont",void 0,{noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0}),r("symbol.textposition"),r("symbol.placement"))}}});var wO=K(Mp=>{"use strict";var $oe=Mt(),Gut=$oe.strTranslate,UDr=$oe.strScale,GDr=Xh().getSubplotCalcData,HDr=(zp(),ar(Pp)),jDr=No(),Hut=Bs(),WDr=zu(),$Dr=Rut(),Ax="map";Mp.name=Ax;Mp.attr="subplot";Mp.idRoot=Ax;Mp.idRegex=Mp.attrRegex=$oe.counterRegex(Ax);Mp.attributes={subplot:{valType:"subplotid",dflt:"map",editType:"calc"}};Mp.layoutAttributes=gk();Mp.supplyLayoutDefaults=Uut();Mp.plot=function(t){for(var r=t._fullLayout,i=t.calcdata,n=r._subplots[Ax],a=0;av/2){var y=c.split("|").join("
");d.text(y).attr("data-unformatted",y).call(WDr.convertToTspans,e),p=Hut.bBox(d.node())}d.attr("transform",Gut(-3,-p.height+8)),h.insert("rect",".static-attribution").attr({x:-p.width-6,y:-p.height-3,width:p.width+6,height:p.height+3,fill:"rgba(255, 255, 255, 0.75)"});var m=1;p.width+6>v&&(m=v/(p.width+6));var w=[i.l+i.w*o.x[1],i.t+i.h*(1-o.y[0])];h.attr("transform",Gut(w[0],w[1])+UDr(m))}};Mp.updateFx=function(e){for(var t=e._fullLayout,r=t._subplots[Ax],i=0;i{"use strict";jut.exports={attributes:KB(),supplyDefaults:jQe(),colorbar:Qh(),formatLabels:Fre(),calc:VQ(),plot:aet(),hoverPoints:r7().hoverPoints,eventData:fet(),selectPoints:het(),styleOnSelect:function(e,t){if(t){var r=t[0].trace;r._glTrace.update(t)}},moduleType:"trace",name:"scattermap",basePlotModule:wO(),categories:["map","gl","symbols","showLegend","scatter-like"],meta:{}}});var Yut=K((Sfi,$ut)=>{"use strict";$ut.exports=Wut()});var Yoe=K((Efi,Xut)=>{"use strict";var lg=qE(),YDr=Wu(),{hovertemplateAttrs:XDr,templatefallbackAttrs:ZDr}=yu(),KDr=Au(),Tx=Os().extendFlat;Xut.exports=Tx({locations:{valType:"data_array",editType:"calc"},z:{valType:"data_array",editType:"calc"},geojson:{valType:"any",editType:"calc"},featureidkey:Tx({},lg.featureidkey,{}),below:{valType:"string",editType:"plot"},text:lg.text,hovertext:lg.hovertext,marker:{line:{color:Tx({},lg.marker.line.color,{editType:"plot"}),width:Tx({},lg.marker.line.width,{editType:"plot"}),editType:"calc"},opacity:Tx({},lg.marker.opacity,{editType:"plot"}),editType:"calc"},selected:{marker:{opacity:Tx({},lg.selected.marker.opacity,{editType:"plot"}),editType:"plot"},editType:"plot"},unselected:{marker:{opacity:Tx({},lg.unselected.marker.opacity,{editType:"plot"}),editType:"plot"},editType:"plot"},hoverinfo:lg.hoverinfo,hovertemplate:XDr({},{keys:["properties"]}),hovertemplatefallback:ZDr(),showlegend:Tx({},KDr.showlegend,{dflt:!1})},YDr("",{cLetter:"z",editTypeOverride:"calc"}))});var Kut=K((kfi,Zut)=>{"use strict";var rD=Mt(),JDr=gh(),QDr=Yoe();Zut.exports=function(t,r,i,n){function a(f,c){return rD.coerce(t,r,QDr,f,c)}var o=a("locations"),s=a("z"),l=a("geojson");if(!rD.isArrayOrTypedArray(o)||!o.length||!rD.isArrayOrTypedArray(s)||!s.length||!(typeof l=="string"&&l!==""||rD.isPlainObject(l))){r.visible=!1;return}a("featureidkey"),r._length=Math.min(o.length,s.length),a("below"),a("text"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback");var u=a("marker.line.width");u&&a("marker.line.color"),a("marker.opacity"),JDr(t,r,n,a,{prefix:"",cLetter:"z"}),rD.coerceSelectionMarkerOpacity(r,a)}});var Xoe=K((Cfi,eft)=>{"use strict";var eFr=Gs(),ug=Mt(),tFr=gf(),rFr=Bs(),iFr=LE().makeBlank,Jut=Ry();function nFr(e){var t=e[0].trace,r=t.visible===!0&&t._length!==0,i={layout:{visibility:"none"},paint:{}},n={layout:{visibility:"none"},paint:{}},a=t._opts={fill:i,line:n,geojson:iFr()};if(!r)return a;var o=Jut.extractTraceFeature(e);if(!o)return a;var s=tFr.makeColorScaleFuncFromTrace(t),l=t.marker,u=l.line||{},f;ug.isArrayOrTypedArray(l.opacity)&&(f=function(w){var _=w.mo;return eFr(_)?+ug.constrain(_,0,1):0});var c;ug.isArrayOrTypedArray(u.color)&&(c=function(w){return w.mlc});var h;ug.isArrayOrTypedArray(u.width)&&(h=function(w){return w.mlw});for(var d=0;d{"use strict";var rft=Xoe().convert,aFr=Xoe().convertOnSelect,tft=rx().traceLayerPrefix;function ift(e,t){this.type="choroplethmap",this.subplot=e,this.uid=t,this.sourceId="source-"+t,this.layerList=[["fill",tft+t+"-fill"],["line",tft+t+"-line"]],this.below=null}var fT=ift.prototype;fT.update=function(e){this._update(rft(e)),e[0].trace._glTrace=this};fT.updateOnSelect=function(e){this._update(aFr(e))};fT._update=function(e){var t=this.subplot,r=this.layerList,i=t.belowLookup["trace-"+this.uid];t.map.getSource(this.sourceId).setData(e.geojson),i!==this.below&&(this._removeLayers(),this._addLayers(e,i),this.below=i);for(var n=0;n=0;r--)e.removeLayer(t[r][1])};fT.dispose=function(){var e=this.subplot.map;this._removeLayers(),e.removeSource(this.sourceId)};nft.exports=function(t,r){var i=r[0].trace,n=new ift(t,i.uid),a=n.sourceId,o=rft(r),s=n.below=t.belowLookup["trace-"+i.uid];return t.map.addSource(a,{type:"geojson",data:o.geojson}),n._addLayers(o,s),r[0].trace._glTrace=n,n}});var sft=K((Ffi,oft)=>{"use strict";oft.exports={attributes:Yoe(),supplyDefaults:Kut(),colorbar:FA(),calc:bee(),plot:aft(),hoverPoints:wee(),eventData:Aee(),selectPoints:Tee(),styleOnSelect:function(e,t){if(t){var r=t[0].trace;r._glTrace.updateOnSelect(t)}},getBelow:function(e,t){for(var r=t.getMapLayers(),i=r.length-2;i>=0;i--){var n=r[i].id;if(typeof n=="string"&&n.indexOf("water")===0){for(var a=i+1;a{"use strict";lft.exports=sft()});var Koe=K((Pfi,cft)=>{"use strict";var oFr=Wu(),{hovertemplateAttrs:sFr,templatefallbackAttrs:lFr}=yu(),fft=Au(),AO=KB(),Zoe=Os().extendFlat;cft.exports=Zoe({lon:AO.lon,lat:AO.lat,z:{valType:"data_array",editType:"calc"},radius:{valType:"number",editType:"plot",arrayOk:!0,min:1,dflt:30},below:{valType:"string",editType:"plot"},text:AO.text,hovertext:AO.hovertext,hoverinfo:Zoe({},fft.hoverinfo,{flags:["lon","lat","z","text","name"]}),hovertemplate:sFr(),hovertemplatefallback:lFr(),showlegend:Zoe({},fft.showlegend,{dflt:!1})},oFr("",{cLetter:"z",editTypeOverride:"calc"}))});var dft=K((zfi,hft)=>{"use strict";var uFr=Mt(),fFr=gh(),cFr=Koe();hft.exports=function(t,r,i,n){function a(u,f){return uFr.coerce(t,r,cFr,u,f)}var o=a("lon")||[],s=a("lat")||[],l=Math.min(o.length,s.length);if(!l){r.visible=!1;return}r._length=l,a("z"),a("radius"),a("below"),a("text"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback"),fFr(t,r,n,a,{prefix:"",cLetter:"z"})}});var mft=K((Ifi,vft)=>{"use strict";var Joe=Gs(),hFr=Mt().isArrayOrTypedArray,Qoe=(Il(),ar(Bl)).BADNUM,dFr=A0(),pft=Mt()._;vft.exports=function(t,r){for(var i=r._length,n=new Array(i),a=r.z,o=hFr(a)&&a.length,s=0;s{"use strict";var pFr=Gs(),ese=Mt(),yft=ko(),gft=gf(),xft=(Il(),ar(Bl)).BADNUM,vFr=LE().makeBlank;bft.exports=function(t){var r=t[0].trace,i=r.visible===!0&&r._length!==0,n={layout:{visibility:"none"},paint:{}},a=r._opts={heatmap:n,geojson:vFr()};if(!i)return a;var o=[],s,l=r.z,u=r.radius,f=ese.isArrayOrTypedArray(l)&&l.length,c=ese.isArrayOrTypedArray(u);for(s=0;s0?+u[s]:0),o.push({type:"Feature",geometry:{type:"Point",coordinates:d},properties:p})}}var y=gft.extractOpts(r),m=y.reversescale?gft.flipScale(y.colorscale):y.colorscale,w=m[0][1],_=yft.opacity(w)<1?w:yft.addOpacity(w,0),b=["interpolate",["linear"],["heatmap-density"],0,_];for(s=1;s{"use strict";var wft=_ft(),mFr=rx().traceLayerPrefix;function Aft(e,t){this.type="densitymap",this.subplot=e,this.uid=t,this.sourceId="source-"+t,this.layerList=[["heatmap",mFr+t+"-heatmap"]],this.below=null}var TO=Aft.prototype;TO.update=function(e){var t=this.subplot,r=this.layerList,i=wft(e),n=t.belowLookup["trace-"+this.uid];t.map.getSource(this.sourceId).setData(i.geojson),n!==this.below&&(this._removeLayers(),this._addLayers(i,n),this.below=n);for(var a=0;a=0;r--)e.removeLayer(t[r][1])};TO.dispose=function(){var e=this.subplot.map;this._removeLayers(),e.removeSource(this.sourceId)};Tft.exports=function(t,r){var i=r[0].trace,n=new Aft(t,i.uid),a=n.sourceId,o=wft(r),s=n.below=t.belowLookup["trace-"+i.uid];return t.map.addSource(a,{type:"geojson",data:o.geojson}),n._addLayers(o,s),n}});var Eft=K((qfi,Sft)=>{"use strict";var yFr=Cs(),gFr=r7().hoverPoints,xFr=r7().getExtraText;Sft.exports=function(t,r,i){var n=gFr(t,r,i);if(n){var a=n[0],o=a.cd,s=o[0].trace,l=o[a.index];if(delete a.color,"z"in l){var u=a.subplot.mockAxis;a.z=l.z,a.zLabel=yFr.tickText(u,u.c2l(l.z),"hover").text}return a.extraText=xFr(s,l,o[0].t.labels),[a]}}});var Cft=K((Ofi,kft)=>{"use strict";kft.exports=function(t,r){return t.lon=r.lon,t.lat=r.lat,t.z=r.z,t}});var Fft=K((Nfi,Dft)=>{"use strict";Dft.exports={attributes:Koe(),supplyDefaults:dft(),colorbar:FA(),formatLabels:Fre(),calc:mft(),plot:Mft(),hoverPoints:Eft(),eventData:Cft(),getBelow:function(e,t){for(var r=t.getMapLayers(),i=0;i{"use strict";Lft.exports=Fft()});var rse=K((Gfi,qft)=>{"use strict";var bFr=lf(),_Fr=Au(),zft=Nc(),tse=Q3(),wFr=kf().attributes,{hovertemplateAttrs:Ift,templatefallbackAttrs:Rft}=yu(),AFr=Wu(),TFr=fu().templatedArray,MFr=zf().descriptionOnlyNumbers,Bft=Os().extendFlat,SFr=Ef().overrideAll,Ufi=qft.exports=SFr({hoverinfo:Bft({},_Fr.hoverinfo,{flags:[],arrayOk:!1}),hoverlabel:tse.hoverlabel,domain:wFr({name:"sankey",trace:!0}),orientation:{valType:"enumerated",values:["v","h"],dflt:"h"},direction:{valType:"enumerated",values:["forward","reversed"],dflt:"forward"},valueformat:{valType:"string",dflt:".3s",description:MFr("value")},valuesuffix:{valType:"string",dflt:""},arrangement:{valType:"enumerated",values:["snap","perpendicular","freeform","fixed"],dflt:"snap"},textfont:bFr({autoShadowDflt:!0}),customdata:void 0,node:{label:{valType:"data_array",dflt:[]},groups:{valType:"info_array",impliedEdits:{x:[],y:[]},dimensions:2,freeLength:!0,dflt:[],items:{valType:"number",editType:"calc"}},x:{valType:"data_array",dflt:[]},y:{valType:"data_array",dflt:[]},color:{valType:"color",arrayOk:!0},customdata:{valType:"data_array",editType:"calc"},line:{color:{valType:"color",dflt:zft.defaultLine,arrayOk:!0},width:{valType:"number",min:0,dflt:.5,arrayOk:!0}},pad:{valType:"number",arrayOk:!1,min:0,dflt:20},thickness:{valType:"number",arrayOk:!1,min:1,dflt:20},hoverinfo:{valType:"enumerated",values:["all","none","skip"],dflt:"all"},hoverlabel:tse.hoverlabel,hovertemplate:Ift({},{keys:["value","label"]}),hovertemplatefallback:Rft(),align:{valType:"enumerated",values:["justify","left","right","center"],dflt:"justify"},sort:{valType:"enumerated",values:["auto","input"],dflt:"auto"}},link:{arrowlen:{valType:"number",min:0,dflt:0},label:{valType:"data_array",dflt:[]},color:{valType:"color",arrayOk:!0},hovercolor:{valType:"color",arrayOk:!0},customdata:{valType:"data_array",editType:"calc"},line:{color:{valType:"color",dflt:zft.defaultLine,arrayOk:!0},width:{valType:"number",min:0,dflt:0,arrayOk:!0}},source:{valType:"data_array",dflt:[]},target:{valType:"data_array",dflt:[]},value:{valType:"data_array",dflt:[]},hoverinfo:{valType:"enumerated",values:["all","none","skip"],dflt:"all"},hoverlabel:tse.hoverlabel,hovertemplate:Ift({},{keys:["value","label"]}),hovertemplatefallback:Rft(),colorscales:TFr("concentrationscales",{editType:"calc",label:{valType:"string",editType:"calc",dflt:""},cmax:{valType:"number",editType:"calc",dflt:1},cmin:{valType:"number",editType:"calc",dflt:0},colorscale:Bft(AFr().colorscale,{dflt:[[0,"white"],[1,"black"]]})}),sort:{valType:"enumerated",values:["auto","input"],dflt:"auto"}}},"calc","nested")});var Uft=K((Hfi,Vft)=>{"use strict";var cT=Mt(),MO=rse(),S3=ko(),EFr=kf().defaults,Oft=N6(),Nft=fu(),kFr=w0();Vft.exports=function(t,r,i,n){function a(b,M){return cT.coerce(t,r,MO,b,M)}var o=cT.extendDeep(n.hoverlabel,t.hoverlabel),s=t.node,l=Nft.newContainer(r,"node");function u(b,M){return cT.coerce(s,l,MO.node,b,M)}u("label"),u("groups"),u("x"),u("y"),u("pad"),u("thickness"),u("line.color"),u("line.width"),u("hoverinfo",t.hoverinfo),Oft(s,l,u,o),u("hovertemplate"),u("align"),u("sort");var f=n.colorway;let c=b=>f[b%f.length];u("color",l.label.map((b,M)=>S3.addOpacity(c(M),.8))),u("customdata");var h=t.link||{},d=Nft.newContainer(r,"link");function p(b,M){return cT.coerce(h,d,MO.link,b,M)}p("label"),p("arrowlen"),p("source"),p("target"),p("value"),p("line.color"),p("line.width"),p("hoverinfo",t.hoverinfo),Oft(h,d,p,o),p("hovertemplate"),p("sort");var v=S3.luminosity(n.paper_bgcolor)<.333,y=v?"rgba(255, 255, 255, 0.6)":"rgba(0, 0, 0, 0.2)",m=p("color",y);function w(b){if(!S3.isValid(b))return b;let M=S3.opacity(b);return M<=.8?S3.addOpacity(b,M+.2):v?S3.brighten(b,10):S3.adjustLightness(b,-10)}p("hovercolor",Array.isArray(m)?m.map(w):w(m)),p("customdata"),kFr(h,d,{name:"colorscales",handleItemDefaults:CFr}),EFr(r,n,a),a("orientation"),a("direction"),a("valueformat"),a("valuesuffix");let _=l.x.length&&l.y.length?"freeform":void 0;a("arrangement",_),cT.coerceFont(a,"textfont",n.font,{autoShadowDflt:!0}),r._length=null};function CFr(e,t){function r(i,n){return cT.coerce(e,t,MO.link.colorscales,i,n)}r("label"),r("cmin"),r("cmax"),r("colorscale")}});var ise=K((jfi,Gft)=>{"use strict";Gft.exports=DFr;function DFr(e){for(var t=e.length,r=new Array(t),i=new Array(t),n=new Array(t),a=new Array(t),o=new Array(t),s=new Array(t),l=0;l0;){y=w[w.length-1];var _=e[y];if(a[y]<_.length){for(var b=a[y];b<_.length;++b){var M=_[b];if(r[M]<0){r[M]=i[M]=u,n[M]=!0,u+=1,m.push(M),w.push(M);break}else n[M]&&(i[y]=Math.min(i[y],i[M])|0);o[M]>=0&&s[y].push(o[M])}a[y]=b}else{if(i[y]===r[y]){for(var x=[],A=[],T=0,b=m.length-1;b>=0;--b){var g=m[b];if(n[g]=!1,x.push(g),A.push(s[g]),T+=s[g].length,o[g]=f.length,g===y){m.length=b;break}}f.push(x);for(var E=new Array(T),b=0;b{"use strict";var FFr=ise(),hT=Mt(),LFr=Dm().wrap,iD=hT.isArrayOrTypedArray,Hft=hT.isIndex,jft=gf();function PFr(e){var t=e.node,r=e.link,i=[],n=iD(r.color),a=iD(r.hovercolor),o=iD(r.customdata),s={},l={},u=r.colorscales.length,f;for(f=0;fp&&(p=r.source[f]),r.target[f]>p&&(p=r.target[f]);var v=p+1;e.node._count=v;var y,m=e.node.groups,w={};for(f=0;f0&&Hft(T,v)&&Hft(g,v)&&!(w.hasOwnProperty(T)&&w.hasOwnProperty(g)&&w[T]===w[g])){w.hasOwnProperty(g)&&(g=w[g]),w.hasOwnProperty(T)&&(T=w[T]),T=+T,g=+g,s[T]=s[g]=!0;var E="";r.label&&r.label[f]&&(E=r.label[f]);var S=null;E&&l.hasOwnProperty(E)&&(S=l[E]),i.push({pointNumber:f,label:E,color:n?r.color[f]:r.color,hovercolor:a?r.hovercolor[f]:r.hovercolor,customdata:o?r.customdata[f]:r.customdata,concentrationscale:S,source:T,target:g,value:+A}),x.source.push(T),x.target.push(g)}}var C=v+m.length,k=iD(t.color),D=iD(t.customdata),L=[];for(f=0;fv-1,childrenNodes:[],pointNumber:f,label:P,color:k?t.color[f]:t.color,customdata:D?t.customdata[f]:t.customdata})}var I=!1;return zFr(C,x.source,x.target)&&(I=!0),{circular:I,links:i,nodes:L,groups:m,groupLookup:w}}function zFr(e,t,r){for(var i=hT.init2dArray(e,0),n=0;n1})}Wft.exports=function(t,r){var i=PFr(r);return LFr({circular:i.circular,_nodes:i.nodes,_links:i.links,_groups:i.groups,_groupLookup:i.groupLookup})}});var Xft=K((SO,Yft)=>{(function(e,t){typeof SO=="object"&&typeof Yft!="undefined"?t(SO):(e=e||self,t(e.d3=e.d3||{}))})(SO,function(e){"use strict";function t(A){var T=+this._x.call(null,A),g=+this._y.call(null,A);return r(this.cover(T,g),T,g,A)}function r(A,T,g,E){if(isNaN(T)||isNaN(g))return A;var S,C=A._root,k={data:E},D=A._x0,L=A._y0,P=A._x1,I=A._y1,F,z,B,O,W,X,Z,j;if(!C)return A._root=k,A;for(;C.length;)if((W=T>=(F=(D+P)/2))?D=F:P=F,(X=g>=(z=(L+I)/2))?L=z:I=z,S=C,!(C=C[Z=X<<1|W]))return S[Z]=k,A;if(B=+A._x.call(null,C.data),O=+A._y.call(null,C.data),T===B&&g===O)return k.next=C,S?S[Z]=k:A._root=k,A;do S=S?S[Z]=new Array(4):A._root=new Array(4),(W=T>=(F=(D+P)/2))?D=F:P=F,(X=g>=(z=(L+I)/2))?L=z:I=z;while((Z=X<<1|W)===(j=(O>=z)<<1|B>=F));return S[j]=C,S[Z]=k,A}function i(A){var T,g,E=A.length,S,C,k=new Array(E),D=new Array(E),L=1/0,P=1/0,I=-1/0,F=-1/0;for(g=0;gI&&(I=S),CF&&(F=C));if(L>I||P>F)return this;for(this.cover(L,P).cover(I,F),g=0;gA||A>=S||E>T||T>=C;)switch(P=(TI||(D=O.y0)>F||(L=O.x1)=Z)<<1|A>=X)&&(O=z[z.length-1],z[z.length-1]=z[z.length-1-W],z[z.length-1-W]=O)}else{var j=A-+this._x.call(null,B.data),q=T-+this._y.call(null,B.data),Q=j*j+q*q;if(Q=(z=(k+L)/2))?k=z:L=z,(W=F>=(B=(D+P)/2))?D=B:P=B,T=g,!(g=g[X=W<<1|O]))return this;if(!g.length)break;(T[X+1&3]||T[X+2&3]||T[X+3&3])&&(E=T,Z=X)}for(;g.data!==A;)if(S=g,!(g=g.next))return this;return(C=g.next)&&delete g.next,S?(C?S.next=C:delete S.next,this):T?(C?T[X]=C:delete T[X],(g=T[0]||T[1]||T[2]||T[3])&&g===(T[3]||T[2]||T[1]||T[0])&&!g.length&&(E?E[Z]=g:this._root=g),this):(this._root=C,this)}function f(A){for(var T=0,g=A.length;T{(function(e,t){t(typeof EO=="object"&&typeof Zft!="undefined"?EO:e.d3=e.d3||{})})(EO,(function(e){"use strict";var t="$";function r(){}r.prototype=i.prototype={constructor:r,has:function(v){return t+v in this},get:function(v){return this[t+v]},set:function(v,y){return this[t+v]=y,this},remove:function(v){var y=t+v;return y in this&&delete this[y]},clear:function(){for(var v in this)v[0]===t&&delete this[v]},keys:function(){var v=[];for(var y in this)y[0]===t&&v.push(y.slice(1));return v},values:function(){var v=[];for(var y in this)y[0]===t&&v.push(this[y]);return v},entries:function(){var v=[];for(var y in this)y[0]===t&&v.push({key:y.slice(1),value:this[y]});return v},size:function(){var v=0;for(var y in this)y[0]===t&&++v;return v},empty:function(){for(var v in this)if(v[0]===t)return!1;return!0},each:function(v){for(var y in this)y[0]===t&&v(this[y],y.slice(1),this)}};function i(v,y){var m=new r;if(v instanceof r)v.each(function(x,A){m.set(A,x)});else if(Array.isArray(v)){var w=-1,_=v.length,b;if(y==null)for(;++w<_;)m.set(w,v[w]);else for(;++w<_;)m.set(y(b=v[w],w,v),b)}else if(v)for(var M in v)m.set(M,v[M]);return m}function n(){var v=[],y=[],m,w,_;function b(x,A,T,g){if(A>=v.length)return m!=null&&x.sort(m),w!=null?w(x):x;for(var E=-1,S=x.length,C=v[A++],k,D,L=i(),P,I=T();++Ev.length)return x;var T,g=y[A-1];return w!=null&&A>=v.length?T=x.entries():(T=[],x.each(function(E,S){T.push({key:S,values:M(E,A)})})),g!=null?T.sort(function(E,S){return g(E.key,S.key)}):T}return _={object:function(x){return b(x,0,a,o)},map:function(x){return b(x,0,s,l)},entries:function(x){return M(b(x,0,s,l),0)},key:function(x){return v.push(x),_},sortKeys:function(x){return y[v.length-1]=x,_},sortValues:function(x){return m=x,_},rollup:function(x){return w=x,_}}}function a(){return{}}function o(v,y,m){v[y]=m}function s(){return i()}function l(v,y,m){v.set(y,m)}function u(){}var f=i.prototype;u.prototype=c.prototype={constructor:u,has:f.has,add:function(v){return v+="",this[t+v]=v,this},remove:f.remove,clear:f.clear,values:f.keys,size:f.size,empty:f.empty,each:f.each};function c(v,y){var m=new u;if(v instanceof u)v.each(function(b){m.add(b)});else if(v){var w=-1,_=v.length;if(y==null)for(;++w<_;)m.add(v[w]);else for(;++w<_;)m.add(y(v[w],w,v))}return m}function h(v){var y=[];for(var m in v)y.push(m);return y}function d(v){var y=[];for(var m in v)y.push(v[m]);return y}function p(v){var y=[];for(var m in v)y.push({key:m,value:v[m]});return y}e.nest=n,e.set=c,e.map=i,e.keys=h,e.values=d,e.entries=p,Object.defineProperty(e,"__esModule",{value:!0})}))});var Jft=K((kO,Kft)=>{(function(e,t){typeof kO=="object"&&typeof Kft!="undefined"?t(kO):(e=e||self,t(e.d3=e.d3||{}))})(kO,function(e){"use strict";var t={value:function(){}};function r(){for(var s=0,l=arguments.length,u={},f;s=0&&(f=u.slice(c+1),u=u.slice(0,c)),u&&!l.hasOwnProperty(u))throw new Error("unknown type: "+u);return{type:u,name:f}})}i.prototype=r.prototype={constructor:i,on:function(s,l){var u=this._,f=n(s+"",u),c,h=-1,d=f.length;if(arguments.length<2){for(;++h0)for(var u=new Array(c),f=0,c,h;f{(function(e,t){typeof CO=="object"&&typeof Qft!="undefined"?t(CO):(e=e||self,t(e.d3=e.d3||{}))})(CO,function(e){"use strict";var t=0,r=0,i=0,n=1e3,a,o,s=0,l=0,u=0,f=typeof performance=="object"&&performance.now?performance:Date,c=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(A){setTimeout(A,17)};function h(){return l||(c(d),l=f.now()+u)}function d(){l=0}function p(){this._call=this._time=this._next=null}p.prototype=v.prototype={constructor:p,restart:function(A,T,g){if(typeof A!="function")throw new TypeError("callback is not a function");g=(g==null?h():+g)+(T==null?0:+T),!this._next&&o!==this&&(o?o._next=this:a=this,o=this),this._call=A,this._time=g,b()},stop:function(){this._call&&(this._call=null,this._time=1/0,b())}};function v(A,T,g){var E=new p;return E.restart(A,T,g),E}function y(){h(),++t;for(var A=a,T;A;)(T=l-A._time)>=0&&A._call.call(null,T),A=A._next;--t}function m(){l=(s=f.now())+u,t=r=0;try{y()}finally{t=0,_(),l=0}}function w(){var A=f.now(),T=A-s;T>n&&(u-=T,s=A)}function _(){for(var A,T=a,g,E=1/0;T;)T._call?(E>T._time&&(E=T._time),A=T,T=T._next):(g=T._next,T._next=null,T=A?A._next=g:a=g);o=A,b(E)}function b(A){if(!t){r&&(r=clearTimeout(r));var T=A-l;T>24?(A<1/0&&(r=setTimeout(m,A-f.now()-u)),i&&(i=clearInterval(i))):(i||(s=f.now(),i=setInterval(w,n)),t=1,c(m))}}function M(A,T,g){var E=new p;return T=T==null?0:+T,E.restart(function(S){E.stop(),A(S+T)},T,g),E}function x(A,T,g){var E=new p,S=T;return T==null?(E.restart(A,T,g),E):(T=+T,g=g==null?h():+g,E.restart(function C(k){k+=S,E.restart(C,S+=T,g),A(k)},T,g),E)}e.interval=x,e.now=h,e.timeout=M,e.timer=v,e.timerFlush=y,Object.defineProperty(e,"__esModule",{value:!0})})});var rct=K((DO,tct)=>{(function(e,t){typeof DO=="object"&&typeof tct!="undefined"?t(DO,Xft(),nse(),Jft(),ect()):t(e.d3=e.d3||{},e.d3,e.d3,e.d3,e.d3)})(DO,(function(e,t,r,i,n){"use strict";function a(A,T){var g;A==null&&(A=0),T==null&&(T=0);function E(){var S,C=g.length,k,D=0,L=0;for(S=0;SF.index){var te=z-J.x-J.vx,ie=B-J.y-J.vy,de=te*te+ie*ie;de<$*$&&(te===0&&(te=s(),de+=te*te),ie===0&&(ie=s(),de+=ie*ie),de=($-(de=Math.sqrt(de)))/de*E,F.vx+=(te*=de)*($=(H*=H)/(W+H)),F.vy+=(ie*=de)*$,J.vx-=te*($=1-$),J.vy-=ie*$)}return}return q>z+$||NB+$||VL.r&&(L.r=L[P].r)}function D(){if(T){var L,P=T.length,I;for(g=new Array(P),L=0;L1?(W==null?D.remove(O):D.set(O,B(W)),T):D.get(O)},find:function(O,W,X){var Z=0,j=A.length,q,Q,N,V,J;for(X==null?X=1/0:X*=X,Z=0;Z1?(P.on(O,W),T):P.on(O)}}}function _(){var A,T,g,E=o(-30),S,C=1,k=1/0,D=.81;function L(z){var B,O=A.length,W=t.quadtree(A,p,v).visitAfter(I);for(g=z,B=0;B=k)return;(z.data!==T||z.next)&&(X===0&&(X=s(),q+=X*X),Z===0&&(Z=s(),q+=Z*Z),q{(function(e,t){typeof FO=="object"&&typeof ict!="undefined"?t(FO):(e=typeof globalThis!="undefined"?globalThis:e||self,t(e.d3=e.d3||{}))})(FO,(function(e){"use strict";function t(Ke,at){return Keat?1:Ke>=at?0:NaN}function r(Ke){let at=Ke,lt=Ke;Ke.length===1&&(at=(kt,$t)=>Ke(kt)-$t,lt=i(Ke));function vt(kt,$t,or,Lr){for(or==null&&(or=0),Lr==null&&(Lr=kt.length);or>>1;lt(kt[Er],$t)<0?or=Er+1:Lr=Er}return or}function We(kt,$t,or,Lr){for(or==null&&(or=0),Lr==null&&(Lr=kt.length);or>>1;lt(kt[Er],$t)>0?Lr=Er:or=Er+1}return or}function ut(kt,$t,or,Lr){or==null&&(or=0),Lr==null&&(Lr=kt.length);let Er=vt(kt,$t,or,Lr-1);return Er>or&&at(kt[Er-1],$t)>-at(kt[Er],$t)?Er-1:Er}return{left:vt,center:ut,right:We}}function i(Ke){return(at,lt)=>t(Ke(at),lt)}function n(Ke){return Ke===null?NaN:+Ke}function*a(Ke,at){if(at===void 0)for(let lt of Ke)lt!=null&&(lt=+lt)>=lt&&(yield lt);else{let lt=-1;for(let vt of Ke)(vt=at(vt,++lt,Ke))!=null&&(vt=+vt)>=vt&&(yield vt)}}let o=r(t),s=o.right,l=o.left,u=r(n).center;function f(Ke,at){let lt=0;if(at===void 0)for(let vt of Ke)vt!=null&&(vt=+vt)>=vt&&++lt;else{let vt=-1;for(let We of Ke)(We=at(We,++vt,Ke))!=null&&(We=+We)>=We&&++lt}return lt}function c(Ke){return Ke.length|0}function h(Ke){return!(Ke>0)}function d(Ke){return typeof Ke!="object"||"length"in Ke?Ke:Array.from(Ke)}function p(Ke){return at=>Ke(...at)}function v(...Ke){let at=typeof Ke[Ke.length-1]=="function"&&p(Ke.pop());Ke=Ke.map(d);let lt=Ke.map(c),vt=Ke.length-1,We=new Array(vt+1).fill(0),ut=[];if(vt<0||lt.some(h))return ut;for(;;){ut.push(We.map(($t,or)=>Ke[or][$t]));let kt=vt;for(;++We[kt]===lt[kt];){if(kt===0)return at?ut.map(at):ut;We[kt--]=0}}}function y(Ke,at){var lt=0,vt=0;return Float64Array.from(Ke,at===void 0?We=>lt+=+We||0:We=>lt+=+at(We,vt++,Ke)||0)}function m(Ke,at){return atKe?1:at>=Ke?0:NaN}function w(Ke,at){let lt=0,vt,We=0,ut=0;if(at===void 0)for(let kt of Ke)kt!=null&&(kt=+kt)>=kt&&(vt=kt-We,We+=vt/++lt,ut+=vt*(kt-We));else{let kt=-1;for(let $t of Ke)($t=at($t,++kt,Ke))!=null&&($t=+$t)>=$t&&(vt=$t-We,We+=vt/++lt,ut+=vt*($t-We))}if(lt>1)return ut/(lt-1)}function _(Ke,at){let lt=w(Ke,at);return lt&&Math.sqrt(lt)}function b(Ke,at){let lt,vt;if(at===void 0)for(let We of Ke)We!=null&&(lt===void 0?We>=We&&(lt=vt=We):(lt>We&&(lt=We),vt=ut&&(lt=vt=ut):(lt>ut&&(lt=ut),vt0){for(kt=at[--lt];lt>0&&(vt=kt,We=at[--lt],kt=vt+We,ut=We-(kt-vt),!ut););lt>0&&(ut<0&&at[lt-1]<0||ut>0&&at[lt-1]>0)&&(We=ut*2,vt=kt+We,We==vt-kt&&(kt=vt))}return kt}}function x(Ke,at){let lt=new M;if(at===void 0)for(let vt of Ke)(vt=+vt)&<.add(vt);else{let vt=-1;for(let We of Ke)(We=+at(We,++vt,Ke))&<.add(We)}return+lt}function A(Ke,at){let lt=new M,vt=-1;return Float64Array.from(Ke,at===void 0?We=>lt.add(+We||0):We=>lt.add(+at(We,++vt,Ke)||0))}class T extends Map{constructor(at,lt=k){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:lt}}),at!=null)for(let[vt,We]of at)this.set(vt,We)}get(at){return super.get(E(this,at))}has(at){return super.has(E(this,at))}set(at,lt){return super.set(S(this,at),lt)}delete(at){return super.delete(C(this,at))}}class g extends Set{constructor(at,lt=k){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:lt}}),at!=null)for(let vt of at)this.add(vt)}has(at){return super.has(E(this,at))}add(at){return super.add(S(this,at))}delete(at){return super.delete(C(this,at))}}function E({_intern:Ke,_key:at},lt){let vt=at(lt);return Ke.has(vt)?Ke.get(vt):lt}function S({_intern:Ke,_key:at},lt){let vt=at(lt);return Ke.has(vt)?Ke.get(vt):(Ke.set(vt,lt),lt)}function C({_intern:Ke,_key:at},lt){let vt=at(lt);return Ke.has(vt)&&(lt=Ke.get(lt),Ke.delete(vt)),lt}function k(Ke){return Ke!==null&&typeof Ke=="object"?Ke.valueOf():Ke}function D(Ke){return Ke}function L(Ke,...at){return W(Ke,D,D,at)}function P(Ke,...at){return W(Ke,Array.from,D,at)}function I(Ke,at,...lt){return W(Ke,D,at,lt)}function F(Ke,at,...lt){return W(Ke,Array.from,at,lt)}function z(Ke,...at){return W(Ke,D,O,at)}function B(Ke,...at){return W(Ke,Array.from,O,at)}function O(Ke){if(Ke.length!==1)throw new Error("duplicate key");return Ke[0]}function W(Ke,at,lt,vt){return(function We(ut,kt){if(kt>=vt.length)return lt(ut);let $t=new T,or=vt[kt++],Lr=-1;for(let Er of ut){let hr=or(Er,++Lr,ut),ni=$t.get(hr);ni?ni.push(Er):$t.set(hr,[Er])}for(let[Er,hr]of $t)$t.set(Er,We(hr,kt));return at($t)})(Ke,0)}function X(Ke,at){return Array.from(at,lt=>Ke[lt])}function Z(Ke,...at){if(typeof Ke[Symbol.iterator]!="function")throw new TypeError("values is not iterable");Ke=Array.from(Ke);let[lt=t]=at;if(lt.length===1||at.length>1){let vt=Uint32Array.from(Ke,(We,ut)=>ut);return at.length>1?(at=at.map(We=>Ke.map(We)),vt.sort((We,ut)=>{for(let kt of at){let $t=t(kt[We],kt[ut]);if($t)return $t}})):(lt=Ke.map(lt),vt.sort((We,ut)=>t(lt[We],lt[ut]))),X(Ke,vt)}return Ke.sort(lt)}function j(Ke,at,lt){return(at.length===1?Z(I(Ke,at,lt),(([vt,We],[ut,kt])=>t(We,kt)||t(vt,ut))):Z(L(Ke,lt),(([vt,We],[ut,kt])=>at(We,kt)||t(vt,ut)))).map(([vt])=>vt)}var q=Array.prototype,Q=q.slice;function N(Ke){return function(){return Ke}}var V=Math.sqrt(50),J=Math.sqrt(10),H=Math.sqrt(2);function $(Ke,at,lt){var vt,We=-1,ut,kt,$t;if(at=+at,Ke=+Ke,lt=+lt,Ke===at&<>0)return[Ke];if((vt=at0){let or=Math.round(Ke/$t),Lr=Math.round(at/$t);for(or*$tat&&--Lr,kt=new Array(ut=Lr-or+1);++Weat&&--Lr,kt=new Array(ut=Lr-or+1);++We=0?(ut>=V?10:ut>=J?5:ut>=H?2:1)*Math.pow(10,We):-Math.pow(10,-We)/(ut>=V?10:ut>=J?5:ut>=H?2:1)}function ie(Ke,at,lt){var vt=Math.abs(at-Ke)/Math.max(0,lt),We=Math.pow(10,Math.floor(Math.log(vt)/Math.LN10)),ut=vt/We;return ut>=V?We*=10:ut>=J?We*=5:ut>=H&&(We*=2),at0?(Ke=Math.floor(Ke/We)*We,at=Math.ceil(at/We)*We):We<0&&(Ke=Math.ceil(Ke*We)/We,at=Math.floor(at*We)/We),vt=We}}function ge(Ke){return Math.ceil(Math.log(f(Ke))/Math.LN2)+1}function Ie(){var Ke=D,at=b,lt=ge;function vt(We){Array.isArray(We)||(We=Array.from(We));var ut,kt=We.length,$t,or=new Array(kt);for(ut=0;ut=hr)if(vr>=hr&&at===b){let Di=te(Er,hr,Hr);isFinite(Di)&&(Di>0?hr=(Math.floor(hr/Di)+1)*Di:Di<0&&(hr=(Math.ceil(hr*-Di)+1)/-Di))}else ni.pop()}for(var Kr=ni.length;ni[0]<=Er;)ni.shift(),--Kr;for(;ni[Kr-1]>hr;)ni.pop(),--Kr;var si=new Array(Kr+1),Tr;for(ut=0;ut<=Kr;++ut)Tr=si[ut]=[],Tr.x0=ut>0?ni[ut-1]:Er,Tr.x1=ut=vt)&&(lt=vt);else{let vt=-1;for(let We of Ke)(We=at(We,++vt,Ke))!=null&&(lt=We)&&(lt=We)}return lt}function le(Ke,at){let lt;if(at===void 0)for(let vt of Ke)vt!=null&&(lt>vt||lt===void 0&&vt>=vt)&&(lt=vt);else{let vt=-1;for(let We of Ke)(We=at(We,++vt,Ke))!=null&&(lt>We||lt===void 0&&We>=We)&&(lt=We)}return lt}function re(Ke,at,lt=0,vt=Ke.length-1,We=t){for(;vt>lt;){if(vt-lt>600){let or=vt-lt+1,Lr=at-lt+1,Er=Math.log(or),hr=.5*Math.exp(2*Er/3),ni=.5*Math.sqrt(Er*hr*(or-hr)/or)*(Lr-or/2<0?-1:1),Kr=Math.max(lt,Math.floor(at-Lr*hr/or+ni)),si=Math.min(vt,Math.floor(at+(or-Lr)*hr/or+ni));re(Ke,at,Kr,si,We)}let ut=Ke[at],kt=lt,$t=vt;for(Ee(Ke,lt,at),We(Ke[vt],ut)>0&&Ee(Ke,lt,vt);kt<$t;){for(Ee(Ke,kt,$t),++kt,--$t;We(Ke[kt],ut)<0;)++kt;for(;We(Ke[$t],ut)>0;)--$t}We(Ke[lt],ut)===0?Ee(Ke,lt,$t):(++$t,Ee(Ke,$t,vt)),$t<=at&&(lt=$t+1),at<=$t&&(vt=$t-1)}return Ke}function Ee(Ke,at,lt){let vt=Ke[at];Ke[at]=Ke[lt],Ke[lt]=vt}function we(Ke,at,lt){if(Ke=Float64Array.from(a(Ke,lt)),!!(vt=Ke.length)){if((at=+at)<=0||vt<2)return le(Ke);if(at>=1)return Ce(Ke);var vt,We=(vt-1)*at,ut=Math.floor(We),kt=Ce(re(Ke,ut).subarray(0,ut+1)),$t=le(Ke.subarray(ut+1));return kt+($t-kt)*(We-ut)}}function oe(Ke,at,lt=n){if(vt=Ke.length){if((at=+at)<=0||vt<2)return+lt(Ke[0],0,Ke);if(at>=1)return+lt(Ke[vt-1],vt-1,Ke);var vt,We=(vt-1)*at,ut=Math.floor(We),kt=+lt(Ke[ut],ut,Ke),$t=+lt(Ke[ut+1],ut+1,Ke);return kt+($t-kt)*(We-ut)}}function Y(Ke,at,lt){return Math.ceil((lt-at)/(2*(we(Ke,.75)-we(Ke,.25))*Math.pow(f(Ke),-1/3)))}function ne(Ke,at,lt){return Math.ceil((lt-at)/(3.5*_(Ke)*Math.pow(f(Ke),-1/3)))}function ye(Ke,at){let lt,vt=-1,We=-1;if(at===void 0)for(let ut of Ke)++We,ut!=null&&(lt=ut)&&(lt=ut,vt=We);else for(let ut of Ke)(ut=at(ut,++We,Ke))!=null&&(lt=ut)&&(lt=ut,vt=We);return vt}function U(Ke,at){let lt=0,vt=0;if(at===void 0)for(let We of Ke)We!=null&&(We=+We)>=We&&(++lt,vt+=We);else{let We=-1;for(let ut of Ke)(ut=at(ut,++We,Ke))!=null&&(ut=+ut)>=ut&&(++lt,vt+=ut)}if(lt)return vt/lt}function se(Ke,at){return we(Ke,.5,at)}function*Ae(Ke){for(let at of Ke)yield*rue(at)}function be(Ke){return Array.from(Ae(Ke))}function me(Ke,at){let lt,vt=-1,We=-1;if(at===void 0)for(let ut of Ke)++We,ut!=null&&(lt>ut||lt===void 0&&ut>=ut)&&(lt=ut,vt=We);else for(let ut of Ke)(ut=at(ut,++We,Ke))!=null&&(lt>ut||lt===void 0&&ut>=ut)&&(lt=ut,vt=We);return vt}function ue(Ke,at=pe){let lt=[],vt,We=!1;for(let ut of Ke)We&<.push(at(vt,ut)),vt=ut,We=!0;return lt}function pe(Ke,at){return[Ke,at]}function ce(Ke,at,lt){Ke=+Ke,at=+at,lt=(We=arguments.length)<2?(at=Ke,Ke=0,1):We<3?1:+lt;for(var vt=-1,We=Math.max(0,Math.ceil((at-Ke)/lt))|0,ut=new Array(We);++vt0:t(kt,kt)===0)&&(lt=ut,We=kt,vt=!0)}}else for(let We of Ke)(vt?at(We,lt)>0:at(We,We)===0)&&(lt=We,vt=!0);return lt}function it(Ke,at=t){if(at.length===1)return ye(Ke,at);let lt,vt=-1,We=-1;for(let ut of Ke)++We,(vt<0?at(ut,ut)===0:at(ut,lt)>0)&&(lt=ut,vt=We);return vt}function nt(Ke,at){let lt=$e(Ke,at);return lt<0?void 0:lt}var Ue=xe(Math.random);function xe(Ke){return function(lt,vt=0,We=lt.length){let ut=We-(vt=+vt);for(;ut;){let kt=Ke()*ut--|0,$t=lt[ut+vt];lt[ut+vt]=lt[kt+vt],lt[kt+vt]=$t}return lt}}function Re(Ke,at){let lt=0;if(at===void 0)for(let vt of Ke)(vt=+vt)&&(lt+=vt);else{let vt=-1;for(let We of Ke)(We=+at(We,++vt,Ke))&&(lt+=We)}return lt}function Qe(Ke){if(!(ut=Ke.length))return[];for(var at=-1,lt=le(Ke,Pe),vt=new Array(lt);++atat(lt,vt,Ke))}function st(Ke,at,lt){if(typeof at!="function")throw new TypeError("reducer is not a function");let vt=Ke[Symbol.iterator](),We,ut,kt=-1;if(arguments.length<3){if({done:We,value:lt}=vt.next(),We)return;++kt}for(;{done:We,value:ut}=vt.next(),!We;)lt=at(lt,ut,++kt,Ke);return lt}function ft(Ke){if(typeof Ke[Symbol.iterator]!="function")throw new TypeError("values is not iterable");return Array.from(Ke).reverse()}function wt(Ke,...at){Ke=new Set(Ke);for(let lt of at)for(let vt of lt)Ke.delete(vt);return Ke}function At(Ke,at){let lt=at[Symbol.iterator](),vt=new Set;for(let We of Ke){if(vt.has(We))return!1;let ut,kt;for(;({value:ut,done:kt}=lt.next())&&!kt;){if(Object.is(We,ut))return!1;vt.add(ut)}}return!0}function Vt(Ke){return Ke instanceof Set?Ke:new Set(Ke)}function Dt(Ke,...at){Ke=new Set(Ke),at=at.map(Vt);e:for(let lt of Ke)for(let vt of at)if(!vt.has(lt)){Ke.delete(lt);continue e}return Ke}function yt(Ke,at){let lt=Ke[Symbol.iterator](),vt=new Set;for(let We of at){if(vt.has(We))continue;let ut,kt;for(;{value:ut,done:kt}=lt.next();){if(kt)return!1;if(vt.add(ut),Object.is(We,ut))break}}return!0}function St(Ke,at){return yt(at,Ke)}function rr(...Ke){let at=new Set;for(let lt of Ke)for(let vt of lt)at.add(vt);return at}e.Adder=M,e.InternMap=T,e.InternSet=g,e.ascending=t,e.bin=Ie,e.bisect=s,e.bisectCenter=u,e.bisectLeft=l,e.bisectRight=s,e.bisector=r,e.count=f,e.cross=v,e.cumsum=y,e.descending=m,e.deviation=_,e.difference=wt,e.disjoint=At,e.every=Ve,e.extent=b,e.fcumsum=A,e.filter=Se,e.fsum=x,e.greatest=Ze,e.greatestIndex=it,e.group=L,e.groupSort=j,e.groups=P,e.histogram=Ie,e.index=z,e.indexes=B,e.intersection=Dt,e.least=Be,e.leastIndex=$e,e.map=ze,e.max=Ce,e.maxIndex=ye,e.mean=U,e.median=se,e.merge=be,e.min=le,e.minIndex=me,e.nice=de,e.pairs=ue,e.permute=X,e.quantile=we,e.quantileSorted=oe,e.quickselect=re,e.range=ce,e.reduce=st,e.reverse=ft,e.rollup=I,e.rollups=F,e.scan=nt,e.shuffle=Ue,e.shuffler=xe,e.some=Le,e.sort=Z,e.subset=St,e.sum=Re,e.superset=yt,e.thresholdFreedmanDiaconis=Y,e.thresholdScott=ne,e.thresholdSturges=ge,e.tickIncrement=te,e.tickStep=ie,e.ticks=$,e.transpose=Qe,e.union=rr,e.variance=w,e.zip=De,Object.defineProperty(e,"__esModule",{value:!0})}))});var oct=K((LO,act)=>{(function(e,t){typeof LO=="object"&&typeof act!="undefined"?t(LO):(e=e||self,t(e.d3=e.d3||{}))})(LO,function(e){"use strict";var t=Math.PI,r=2*t,i=1e-6,n=r-i;function a(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function o(){return new a}a.prototype=o.prototype={constructor:a,moveTo:function(s,l){this._+="M"+(this._x0=this._x1=+s)+","+(this._y0=this._y1=+l)},closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(s,l){this._+="L"+(this._x1=+s)+","+(this._y1=+l)},quadraticCurveTo:function(s,l,u,f){this._+="Q"+ +s+","+ +l+","+(this._x1=+u)+","+(this._y1=+f)},bezierCurveTo:function(s,l,u,f,c,h){this._+="C"+ +s+","+ +l+","+ +u+","+ +f+","+(this._x1=+c)+","+(this._y1=+h)},arcTo:function(s,l,u,f,c){s=+s,l=+l,u=+u,f=+f,c=+c;var h=this._x1,d=this._y1,p=u-s,v=f-l,y=h-s,m=d-l,w=y*y+m*m;if(c<0)throw new Error("negative radius: "+c);if(this._x1===null)this._+="M"+(this._x1=s)+","+(this._y1=l);else if(w>i)if(!(Math.abs(m*p-v*y)>i)||!c)this._+="L"+(this._x1=s)+","+(this._y1=l);else{var _=u-h,b=f-d,M=p*p+v*v,x=_*_+b*b,A=Math.sqrt(M),T=Math.sqrt(w),g=c*Math.tan((t-Math.acos((M+w-x)/(2*A*T)))/2),E=g/T,S=g/A;Math.abs(E-1)>i&&(this._+="L"+(s+E*y)+","+(l+E*m)),this._+="A"+c+","+c+",0,0,"+ +(m*_>y*b)+","+(this._x1=s+S*p)+","+(this._y1=l+S*v)}},arc:function(s,l,u,f,c,h){s=+s,l=+l,u=+u,h=!!h;var d=u*Math.cos(f),p=u*Math.sin(f),v=s+d,y=l+p,m=1^h,w=h?f-c:c-f;if(u<0)throw new Error("negative radius: "+u);this._x1===null?this._+="M"+v+","+y:(Math.abs(this._x1-v)>i||Math.abs(this._y1-y)>i)&&(this._+="L"+v+","+y),u&&(w<0&&(w=w%r+r),w>n?this._+="A"+u+","+u+",0,1,"+m+","+(s-d)+","+(l-p)+"A"+u+","+u+",0,1,"+m+","+(this._x1=v)+","+(this._y1=y):w>i&&(this._+="A"+u+","+u+",0,"+ +(w>=t)+","+m+","+(this._x1=s+u*Math.cos(c))+","+(this._y1=l+u*Math.sin(c))))},rect:function(s,l,u,f){this._+="M"+(this._x0=this._x1=+s)+","+(this._y0=this._y1=+l)+"h"+ +u+"v"+ +f+"h"+-u+"Z"},toString:function(){return this._}},e.path=o,Object.defineProperty(e,"__esModule",{value:!0})})});var ase=K((PO,sct)=>{(function(e,t){typeof PO=="object"&&typeof sct!="undefined"?t(PO,oct()):(e=e||self,t(e.d3=e.d3||{},e.d3))})(PO,function(e,t){"use strict";function r(Me){return function(){return Me}}var i=Math.abs,n=Math.atan2,a=Math.cos,o=Math.max,s=Math.min,l=Math.sin,u=Math.sqrt,f=1e-12,c=Math.PI,h=c/2,d=2*c;function p(Me){return Me>1?0:Me<-1?c:Math.acos(Me)}function v(Me){return Me>=1?h:Me<=-1?-h:Math.asin(Me)}function y(Me){return Me.innerRadius}function m(Me){return Me.outerRadius}function w(Me){return Me.startAngle}function _(Me){return Me.endAngle}function b(Me){return Me&&Me.padAngle}function M(Me,Xe,Ye,et,gt,bt,lr,Ct){var ur=Ye-Me,Ir=et-Xe,Rr=lr-gt,Nr=Ct-bt,gi=Nr*ur-Rr*Ir;if(!(gi*gifi*fi+aa*aa&&(mn=Wi,$n=Qi),{cx:mn,cy:$n,x01:-Rr,y01:-Nr,x11:mn*(gt/Fr-1),y11:$n*(gt/Fr-1)}}function A(){var Me=y,Xe=m,Ye=r(0),et=null,gt=w,bt=_,lr=b,Ct=null;function ur(){var Ir,Rr,Nr=+Me.apply(this,arguments),gi=+Xe.apply(this,arguments),ui=gt.apply(this,arguments)-h,Qr=bt.apply(this,arguments)-h,Ui=i(Qr-ui),ln=Qr>ui;if(Ct||(Ct=Ir=t.path()),gif))Ct.moveTo(0,0);else if(Ui>d-f)Ct.moveTo(gi*a(ui),gi*l(ui)),Ct.arc(0,0,gi,ui,Qr,!ln),Nr>f&&(Ct.moveTo(Nr*a(Qr),Nr*l(Qr)),Ct.arc(0,0,Nr,Qr,ui,ln));else{var Tt=ui,_i=Qr,kn=ui,ti=Qr,Fr=Ui,ji=Ui,na=lr.apply(this,arguments)/2,mn=na>f&&(et?+et.apply(this,arguments):u(Nr*Nr+gi*gi)),$n=s(i(gi-Nr)/2,+Ye.apply(this,arguments)),Wi=$n,Qi=$n,_r,Yr;if(mn>f){var fi=v(mn/Nr*l(na)),aa=v(mn/gi*l(na));(Fr-=fi*2)>f?(fi*=ln?1:-1,kn+=fi,ti-=fi):(Fr=0,kn=ti=(ui+Qr)/2),(ji-=aa*2)>f?(aa*=ln?1:-1,Tt+=aa,_i-=aa):(ji=0,Tt=_i=(ui+Qr)/2)}var sn=gi*a(Tt),ca=gi*l(Tt),Kn=Nr*a(ti),hn=Nr*l(ti);if($n>f){var Ta=gi*a(_i),tn=gi*l(_i),wi=Nr*a(kn),rn=Nr*l(kn),Ai;if(Uif?Qi>f?(_r=x(wi,rn,sn,ca,gi,Qi,ln),Yr=x(Ta,tn,Kn,hn,gi,Qi,ln),Ct.moveTo(_r.cx+_r.x01,_r.cy+_r.y01),Qi<$n?Ct.arc(_r.cx,_r.cy,Qi,n(_r.y01,_r.x01),n(Yr.y01,Yr.x01),!ln):(Ct.arc(_r.cx,_r.cy,Qi,n(_r.y01,_r.x01),n(_r.y11,_r.x11),!ln),Ct.arc(0,0,gi,n(_r.cy+_r.y11,_r.cx+_r.x11),n(Yr.cy+Yr.y11,Yr.cx+Yr.x11),!ln),Ct.arc(Yr.cx,Yr.cy,Qi,n(Yr.y11,Yr.x11),n(Yr.y01,Yr.x01),!ln))):(Ct.moveTo(sn,ca),Ct.arc(0,0,gi,Tt,_i,!ln)):Ct.moveTo(sn,ca),!(Nr>f)||!(Fr>f)?Ct.lineTo(Kn,hn):Wi>f?(_r=x(Kn,hn,Ta,tn,Nr,-Wi,ln),Yr=x(sn,ca,wi,rn,Nr,-Wi,ln),Ct.lineTo(_r.cx+_r.x01,_r.cy+_r.y01),Wi<$n?Ct.arc(_r.cx,_r.cy,Wi,n(_r.y01,_r.x01),n(Yr.y01,Yr.x01),!ln):(Ct.arc(_r.cx,_r.cy,Wi,n(_r.y01,_r.x01),n(_r.y11,_r.x11),!ln),Ct.arc(0,0,Nr,n(_r.cy+_r.y11,_r.cx+_r.x11),n(Yr.cy+Yr.y11,Yr.cx+Yr.x11),ln),Ct.arc(Yr.cx,Yr.cy,Wi,n(Yr.y11,Yr.x11),n(Yr.y01,Yr.x01),!ln))):Ct.arc(0,0,Nr,ti,kn,ln)}if(Ct.closePath(),Ir)return Ct=null,Ir+""||null}return ur.centroid=function(){var Ir=(+Me.apply(this,arguments)+ +Xe.apply(this,arguments))/2,Rr=(+gt.apply(this,arguments)+ +bt.apply(this,arguments))/2-c/2;return[a(Rr)*Ir,l(Rr)*Ir]},ur.innerRadius=function(Ir){return arguments.length?(Me=typeof Ir=="function"?Ir:r(+Ir),ur):Me},ur.outerRadius=function(Ir){return arguments.length?(Xe=typeof Ir=="function"?Ir:r(+Ir),ur):Xe},ur.cornerRadius=function(Ir){return arguments.length?(Ye=typeof Ir=="function"?Ir:r(+Ir),ur):Ye},ur.padRadius=function(Ir){return arguments.length?(et=Ir==null?null:typeof Ir=="function"?Ir:r(+Ir),ur):et},ur.startAngle=function(Ir){return arguments.length?(gt=typeof Ir=="function"?Ir:r(+Ir),ur):gt},ur.endAngle=function(Ir){return arguments.length?(bt=typeof Ir=="function"?Ir:r(+Ir),ur):bt},ur.padAngle=function(Ir){return arguments.length?(lr=typeof Ir=="function"?Ir:r(+Ir),ur):lr},ur.context=function(Ir){return arguments.length?(Ct=Ir==null?null:Ir,ur):Ct},ur}function T(Me){this._context=Me}T.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(Me,Xe){switch(Me=+Me,Xe=+Xe,this._point){case 0:this._point=1,this._line?this._context.lineTo(Me,Xe):this._context.moveTo(Me,Xe);break;case 1:this._point=2;default:this._context.lineTo(Me,Xe);break}}};function g(Me){return new T(Me)}function E(Me){return Me[0]}function S(Me){return Me[1]}function C(){var Me=E,Xe=S,Ye=r(!0),et=null,gt=g,bt=null;function lr(Ct){var ur,Ir=Ct.length,Rr,Nr=!1,gi;for(et==null&&(bt=gt(gi=t.path())),ur=0;ur<=Ir;++ur)!(ur=gi;--ui)Ct.point(_i[ui],kn[ui]);Ct.lineEnd(),Ct.areaEnd()}ln&&(_i[Nr]=+Me(Ui,Nr,Rr),kn[Nr]=+Ye(Ui,Nr,Rr),Ct.point(Xe?+Xe(Ui,Nr,Rr):_i[Nr],et?+et(Ui,Nr,Rr):kn[Nr]))}if(Tt)return Ct=null,Tt+""||null}function Ir(){return C().defined(gt).curve(lr).context(bt)}return ur.x=function(Rr){return arguments.length?(Me=typeof Rr=="function"?Rr:r(+Rr),Xe=null,ur):Me},ur.x0=function(Rr){return arguments.length?(Me=typeof Rr=="function"?Rr:r(+Rr),ur):Me},ur.x1=function(Rr){return arguments.length?(Xe=Rr==null?null:typeof Rr=="function"?Rr:r(+Rr),ur):Xe},ur.y=function(Rr){return arguments.length?(Ye=typeof Rr=="function"?Rr:r(+Rr),et=null,ur):Ye},ur.y0=function(Rr){return arguments.length?(Ye=typeof Rr=="function"?Rr:r(+Rr),ur):Ye},ur.y1=function(Rr){return arguments.length?(et=Rr==null?null:typeof Rr=="function"?Rr:r(+Rr),ur):et},ur.lineX0=ur.lineY0=function(){return Ir().x(Me).y(Ye)},ur.lineY1=function(){return Ir().x(Me).y(et)},ur.lineX1=function(){return Ir().x(Xe).y(Ye)},ur.defined=function(Rr){return arguments.length?(gt=typeof Rr=="function"?Rr:r(!!Rr),ur):gt},ur.curve=function(Rr){return arguments.length?(lr=Rr,bt!=null&&(Ct=lr(bt)),ur):lr},ur.context=function(Rr){return arguments.length?(Rr==null?bt=Ct=null:Ct=lr(bt=Rr),ur):bt},ur}function D(Me,Xe){return XeMe?1:Xe>=Me?0:NaN}function L(Me){return Me}function P(){var Me=L,Xe=D,Ye=null,et=r(0),gt=r(d),bt=r(0);function lr(Ct){var ur,Ir=Ct.length,Rr,Nr,gi=0,ui=new Array(Ir),Qr=new Array(Ir),Ui=+et.apply(this,arguments),ln=Math.min(d,Math.max(-d,gt.apply(this,arguments)-Ui)),Tt,_i=Math.min(Math.abs(ln)/Ir,bt.apply(this,arguments)),kn=_i*(ln<0?-1:1),ti;for(ur=0;ur0&&(gi+=ti);for(Xe!=null?ui.sort(function(Fr,ji){return Xe(Qr[Fr],Qr[ji])}):Ye!=null&&ui.sort(function(Fr,ji){return Ye(Ct[Fr],Ct[ji])}),ur=0,Nr=gi?(ln-Ir*kn)/gi:0;ur0?ti*Nr:0)+kn,Qr[Rr]={data:Ct[Rr],index:ur,value:ti,startAngle:Ui,endAngle:Tt,padAngle:_i};return Qr}return lr.value=function(Ct){return arguments.length?(Me=typeof Ct=="function"?Ct:r(+Ct),lr):Me},lr.sortValues=function(Ct){return arguments.length?(Xe=Ct,Ye=null,lr):Xe},lr.sort=function(Ct){return arguments.length?(Ye=Ct,Xe=null,lr):Ye},lr.startAngle=function(Ct){return arguments.length?(et=typeof Ct=="function"?Ct:r(+Ct),lr):et},lr.endAngle=function(Ct){return arguments.length?(gt=typeof Ct=="function"?Ct:r(+Ct),lr):gt},lr.padAngle=function(Ct){return arguments.length?(bt=typeof Ct=="function"?Ct:r(+Ct),lr):bt},lr}var I=z(g);function F(Me){this._curve=Me}F.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(Me,Xe){this._curve.point(Xe*Math.sin(Me),Xe*-Math.cos(Me))}};function z(Me){function Xe(Ye){return new F(Me(Ye))}return Xe._curve=Me,Xe}function B(Me){var Xe=Me.curve;return Me.angle=Me.x,delete Me.x,Me.radius=Me.y,delete Me.y,Me.curve=function(Ye){return arguments.length?Xe(z(Ye)):Xe()._curve},Me}function O(){return B(C().curve(I))}function W(){var Me=k().curve(I),Xe=Me.curve,Ye=Me.lineX0,et=Me.lineX1,gt=Me.lineY0,bt=Me.lineY1;return Me.angle=Me.x,delete Me.x,Me.startAngle=Me.x0,delete Me.x0,Me.endAngle=Me.x1,delete Me.x1,Me.radius=Me.y,delete Me.y,Me.innerRadius=Me.y0,delete Me.y0,Me.outerRadius=Me.y1,delete Me.y1,Me.lineStartAngle=function(){return B(Ye())},delete Me.lineX0,Me.lineEndAngle=function(){return B(et())},delete Me.lineX1,Me.lineInnerRadius=function(){return B(gt())},delete Me.lineY0,Me.lineOuterRadius=function(){return B(bt())},delete Me.lineY1,Me.curve=function(lr){return arguments.length?Xe(z(lr)):Xe()._curve},Me}function X(Me,Xe){return[(Xe=+Xe)*Math.cos(Me-=Math.PI/2),Xe*Math.sin(Me)]}var Z=Array.prototype.slice;function j(Me){return Me.source}function q(Me){return Me.target}function Q(Me){var Xe=j,Ye=q,et=E,gt=S,bt=null;function lr(){var Ct,ur=Z.call(arguments),Ir=Xe.apply(this,ur),Rr=Ye.apply(this,ur);if(bt||(bt=Ct=t.path()),Me(bt,+et.apply(this,(ur[0]=Ir,ur)),+gt.apply(this,ur),+et.apply(this,(ur[0]=Rr,ur)),+gt.apply(this,ur)),Ct)return bt=null,Ct+""||null}return lr.source=function(Ct){return arguments.length?(Xe=Ct,lr):Xe},lr.target=function(Ct){return arguments.length?(Ye=Ct,lr):Ye},lr.x=function(Ct){return arguments.length?(et=typeof Ct=="function"?Ct:r(+Ct),lr):et},lr.y=function(Ct){return arguments.length?(gt=typeof Ct=="function"?Ct:r(+Ct),lr):gt},lr.context=function(Ct){return arguments.length?(bt=Ct==null?null:Ct,lr):bt},lr}function N(Me,Xe,Ye,et,gt){Me.moveTo(Xe,Ye),Me.bezierCurveTo(Xe=(Xe+et)/2,Ye,Xe,gt,et,gt)}function V(Me,Xe,Ye,et,gt){Me.moveTo(Xe,Ye),Me.bezierCurveTo(Xe,Ye=(Ye+gt)/2,et,Ye,et,gt)}function J(Me,Xe,Ye,et,gt){var bt=X(Xe,Ye),lr=X(Xe,Ye=(Ye+gt)/2),Ct=X(et,Ye),ur=X(et,gt);Me.moveTo(bt[0],bt[1]),Me.bezierCurveTo(lr[0],lr[1],Ct[0],Ct[1],ur[0],ur[1])}function H(){return Q(N)}function $(){return Q(V)}function te(){var Me=Q(J);return Me.angle=Me.x,delete Me.x,Me.radius=Me.y,delete Me.y,Me}var ie={draw:function(Me,Xe){var Ye=Math.sqrt(Xe/c);Me.moveTo(Ye,0),Me.arc(0,0,Ye,0,d)}},de={draw:function(Me,Xe){var Ye=Math.sqrt(Xe/5)/2;Me.moveTo(-3*Ye,-Ye),Me.lineTo(-Ye,-Ye),Me.lineTo(-Ye,-3*Ye),Me.lineTo(Ye,-3*Ye),Me.lineTo(Ye,-Ye),Me.lineTo(3*Ye,-Ye),Me.lineTo(3*Ye,Ye),Me.lineTo(Ye,Ye),Me.lineTo(Ye,3*Ye),Me.lineTo(-Ye,3*Ye),Me.lineTo(-Ye,Ye),Me.lineTo(-3*Ye,Ye),Me.closePath()}},ge=Math.sqrt(1/3),Ie=ge*2,Ce={draw:function(Me,Xe){var Ye=Math.sqrt(Xe/Ie),et=Ye*ge;Me.moveTo(0,-Ye),Me.lineTo(et,0),Me.lineTo(0,Ye),Me.lineTo(-et,0),Me.closePath()}},le=.8908130915292852,re=Math.sin(c/10)/Math.sin(7*c/10),Ee=Math.sin(d/10)*re,we=-Math.cos(d/10)*re,oe={draw:function(Me,Xe){var Ye=Math.sqrt(Xe*le),et=Ee*Ye,gt=we*Ye;Me.moveTo(0,-Ye),Me.lineTo(et,gt);for(var bt=1;bt<5;++bt){var lr=d*bt/5,Ct=Math.cos(lr),ur=Math.sin(lr);Me.lineTo(ur*Ye,-Ct*Ye),Me.lineTo(Ct*et-ur*gt,ur*et+Ct*gt)}Me.closePath()}},Y={draw:function(Me,Xe){var Ye=Math.sqrt(Xe),et=-Ye/2;Me.rect(et,et,Ye,Ye)}},ne=Math.sqrt(3),ye={draw:function(Me,Xe){var Ye=-Math.sqrt(Xe/(ne*3));Me.moveTo(0,Ye*2),Me.lineTo(-ne*Ye,-Ye),Me.lineTo(ne*Ye,-Ye),Me.closePath()}},U=-.5,se=Math.sqrt(3)/2,Ae=1/Math.sqrt(12),be=(Ae/2+1)*3,me={draw:function(Me,Xe){var Ye=Math.sqrt(Xe/be),et=Ye/2,gt=Ye*Ae,bt=et,lr=Ye*Ae+Ye,Ct=-bt,ur=lr;Me.moveTo(et,gt),Me.lineTo(bt,lr),Me.lineTo(Ct,ur),Me.lineTo(U*et-se*gt,se*et+U*gt),Me.lineTo(U*bt-se*lr,se*bt+U*lr),Me.lineTo(U*Ct-se*ur,se*Ct+U*ur),Me.lineTo(U*et+se*gt,U*gt-se*et),Me.lineTo(U*bt+se*lr,U*lr-se*bt),Me.lineTo(U*Ct+se*ur,U*ur-se*Ct),Me.closePath()}},ue=[ie,de,Ce,Y,oe,ye,me];function pe(){var Me=r(ie),Xe=r(64),Ye=null;function et(){var gt;if(Ye||(Ye=gt=t.path()),Me.apply(this,arguments).draw(Ye,+Xe.apply(this,arguments)),gt)return Ye=null,gt+""||null}return et.type=function(gt){return arguments.length?(Me=typeof gt=="function"?gt:r(gt),et):Me},et.size=function(gt){return arguments.length?(Xe=typeof gt=="function"?gt:r(+gt),et):Xe},et.context=function(gt){return arguments.length?(Ye=gt==null?null:gt,et):Ye},et}function ce(){}function Be(Me,Xe,Ye){Me._context.bezierCurveTo((2*Me._x0+Me._x1)/3,(2*Me._y0+Me._y1)/3,(Me._x0+2*Me._x1)/3,(Me._y0+2*Me._y1)/3,(Me._x0+4*Me._x1+Xe)/6,(Me._y0+4*Me._y1+Ye)/6)}function $e(Me){this._context=Me}$e.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Be(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(Me,Xe){switch(Me=+Me,Xe=+Xe,this._point){case 0:this._point=1,this._line?this._context.lineTo(Me,Xe):this._context.moveTo(Me,Xe);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Be(this,Me,Xe);break}this._x0=this._x1,this._x1=Me,this._y0=this._y1,this._y1=Xe}};function Ze(Me){return new $e(Me)}function it(Me){this._context=Me}it.prototype={areaStart:ce,areaEnd:ce,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(Me,Xe){switch(Me=+Me,Xe=+Xe,this._point){case 0:this._point=1,this._x2=Me,this._y2=Xe;break;case 1:this._point=2,this._x3=Me,this._y3=Xe;break;case 2:this._point=3,this._x4=Me,this._y4=Xe,this._context.moveTo((this._x0+4*this._x1+Me)/6,(this._y0+4*this._y1+Xe)/6);break;default:Be(this,Me,Xe);break}this._x0=this._x1,this._x1=Me,this._y0=this._y1,this._y1=Xe}};function nt(Me){return new it(Me)}function Ue(Me){this._context=Me}Ue.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(Me,Xe){switch(Me=+Me,Xe=+Xe,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var Ye=(this._x0+4*this._x1+Me)/6,et=(this._y0+4*this._y1+Xe)/6;this._line?this._context.lineTo(Ye,et):this._context.moveTo(Ye,et);break;case 3:this._point=4;default:Be(this,Me,Xe);break}this._x0=this._x1,this._x1=Me,this._y0=this._y1,this._y1=Xe}};function xe(Me){return new Ue(Me)}function Re(Me,Xe){this._basis=new $e(Me),this._beta=Xe}Re.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var Me=this._x,Xe=this._y,Ye=Me.length-1;if(Ye>0)for(var et=Me[0],gt=Xe[0],bt=Me[Ye]-et,lr=Xe[Ye]-gt,Ct=-1,ur;++Ct<=Ye;)ur=Ct/Ye,this._basis.point(this._beta*Me[Ct]+(1-this._beta)*(et+ur*bt),this._beta*Xe[Ct]+(1-this._beta)*(gt+ur*lr));this._x=this._y=null,this._basis.lineEnd()},point:function(Me,Xe){this._x.push(+Me),this._y.push(+Xe)}};var Qe=(function Me(Xe){function Ye(et){return Xe===1?new $e(et):new Re(et,Xe)}return Ye.beta=function(et){return Me(+et)},Ye})(.85);function Pe(Me,Xe,Ye){Me._context.bezierCurveTo(Me._x1+Me._k*(Me._x2-Me._x0),Me._y1+Me._k*(Me._y2-Me._y0),Me._x2+Me._k*(Me._x1-Xe),Me._y2+Me._k*(Me._y1-Ye),Me._x2,Me._y2)}function De(Me,Xe){this._context=Me,this._k=(1-Xe)/6}De.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:Pe(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(Me,Xe){switch(Me=+Me,Xe=+Xe,this._point){case 0:this._point=1,this._line?this._context.lineTo(Me,Xe):this._context.moveTo(Me,Xe);break;case 1:this._point=2,this._x1=Me,this._y1=Xe;break;case 2:this._point=3;default:Pe(this,Me,Xe);break}this._x0=this._x1,this._x1=this._x2,this._x2=Me,this._y0=this._y1,this._y1=this._y2,this._y2=Xe}};var Ve=(function Me(Xe){function Ye(et){return new De(et,Xe)}return Ye.tension=function(et){return Me(+et)},Ye})(0);function Le(Me,Xe){this._context=Me,this._k=(1-Xe)/6}Le.prototype={areaStart:ce,areaEnd:ce,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(Me,Xe){switch(Me=+Me,Xe=+Xe,this._point){case 0:this._point=1,this._x3=Me,this._y3=Xe;break;case 1:this._point=2,this._context.moveTo(this._x4=Me,this._y4=Xe);break;case 2:this._point=3,this._x5=Me,this._y5=Xe;break;default:Pe(this,Me,Xe);break}this._x0=this._x1,this._x1=this._x2,this._x2=Me,this._y0=this._y1,this._y1=this._y2,this._y2=Xe}};var Se=(function Me(Xe){function Ye(et){return new Le(et,Xe)}return Ye.tension=function(et){return Me(+et)},Ye})(0);function ze(Me,Xe){this._context=Me,this._k=(1-Xe)/6}ze.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(Me,Xe){switch(Me=+Me,Xe=+Xe,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Pe(this,Me,Xe);break}this._x0=this._x1,this._x1=this._x2,this._x2=Me,this._y0=this._y1,this._y1=this._y2,this._y2=Xe}};var st=(function Me(Xe){function Ye(et){return new ze(et,Xe)}return Ye.tension=function(et){return Me(+et)},Ye})(0);function ft(Me,Xe,Ye){var et=Me._x1,gt=Me._y1,bt=Me._x2,lr=Me._y2;if(Me._l01_a>f){var Ct=2*Me._l01_2a+3*Me._l01_a*Me._l12_a+Me._l12_2a,ur=3*Me._l01_a*(Me._l01_a+Me._l12_a);et=(et*Ct-Me._x0*Me._l12_2a+Me._x2*Me._l01_2a)/ur,gt=(gt*Ct-Me._y0*Me._l12_2a+Me._y2*Me._l01_2a)/ur}if(Me._l23_a>f){var Ir=2*Me._l23_2a+3*Me._l23_a*Me._l12_a+Me._l12_2a,Rr=3*Me._l23_a*(Me._l23_a+Me._l12_a);bt=(bt*Ir+Me._x1*Me._l23_2a-Xe*Me._l12_2a)/Rr,lr=(lr*Ir+Me._y1*Me._l23_2a-Ye*Me._l12_2a)/Rr}Me._context.bezierCurveTo(et,gt,bt,lr,Me._x2,Me._y2)}function wt(Me,Xe){this._context=Me,this._alpha=Xe}wt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(Me,Xe){if(Me=+Me,Xe=+Xe,this._point){var Ye=this._x2-Me,et=this._y2-Xe;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(Ye*Ye+et*et,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(Me,Xe):this._context.moveTo(Me,Xe);break;case 1:this._point=2;break;case 2:this._point=3;default:ft(this,Me,Xe);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=Me,this._y0=this._y1,this._y1=this._y2,this._y2=Xe}};var At=(function Me(Xe){function Ye(et){return Xe?new wt(et,Xe):new De(et,0)}return Ye.alpha=function(et){return Me(+et)},Ye})(.5);function Vt(Me,Xe){this._context=Me,this._alpha=Xe}Vt.prototype={areaStart:ce,areaEnd:ce,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(Me,Xe){if(Me=+Me,Xe=+Xe,this._point){var Ye=this._x2-Me,et=this._y2-Xe;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(Ye*Ye+et*et,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=Me,this._y3=Xe;break;case 1:this._point=2,this._context.moveTo(this._x4=Me,this._y4=Xe);break;case 2:this._point=3,this._x5=Me,this._y5=Xe;break;default:ft(this,Me,Xe);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=Me,this._y0=this._y1,this._y1=this._y2,this._y2=Xe}};var Dt=(function Me(Xe){function Ye(et){return Xe?new Vt(et,Xe):new Le(et,0)}return Ye.alpha=function(et){return Me(+et)},Ye})(.5);function yt(Me,Xe){this._context=Me,this._alpha=Xe}yt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(Me,Xe){if(Me=+Me,Xe=+Xe,this._point){var Ye=this._x2-Me,et=this._y2-Xe;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(Ye*Ye+et*et,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:ft(this,Me,Xe);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=Me,this._y0=this._y1,this._y1=this._y2,this._y2=Xe}};var St=(function Me(Xe){function Ye(et){return Xe?new yt(et,Xe):new ze(et,0)}return Ye.alpha=function(et){return Me(+et)},Ye})(.5);function rr(Me){this._context=Me}rr.prototype={areaStart:ce,areaEnd:ce,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(Me,Xe){Me=+Me,Xe=+Xe,this._point?this._context.lineTo(Me,Xe):(this._point=1,this._context.moveTo(Me,Xe))}};function Ke(Me){return new rr(Me)}function at(Me){return Me<0?-1:1}function lt(Me,Xe,Ye){var et=Me._x1-Me._x0,gt=Xe-Me._x1,bt=(Me._y1-Me._y0)/(et||gt<0&&-0),lr=(Ye-Me._y1)/(gt||et<0&&-0),Ct=(bt*gt+lr*et)/(et+gt);return(at(bt)+at(lr))*Math.min(Math.abs(bt),Math.abs(lr),.5*Math.abs(Ct))||0}function vt(Me,Xe){var Ye=Me._x1-Me._x0;return Ye?(3*(Me._y1-Me._y0)/Ye-Xe)/2:Xe}function We(Me,Xe,Ye){var et=Me._x0,gt=Me._y0,bt=Me._x1,lr=Me._y1,Ct=(bt-et)/3;Me._context.bezierCurveTo(et+Ct,gt+Ct*Xe,bt-Ct,lr-Ct*Ye,bt,lr)}function ut(Me){this._context=Me}ut.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:We(this,this._t0,vt(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(Me,Xe){var Ye=NaN;if(Me=+Me,Xe=+Xe,!(Me===this._x1&&Xe===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(Me,Xe):this._context.moveTo(Me,Xe);break;case 1:this._point=2;break;case 2:this._point=3,We(this,vt(this,Ye=lt(this,Me,Xe)),Ye);break;default:We(this,this._t0,Ye=lt(this,Me,Xe));break}this._x0=this._x1,this._x1=Me,this._y0=this._y1,this._y1=Xe,this._t0=Ye}}};function kt(Me){this._context=new $t(Me)}(kt.prototype=Object.create(ut.prototype)).point=function(Me,Xe){ut.prototype.point.call(this,Xe,Me)};function $t(Me){this._context=Me}$t.prototype={moveTo:function(Me,Xe){this._context.moveTo(Xe,Me)},closePath:function(){this._context.closePath()},lineTo:function(Me,Xe){this._context.lineTo(Xe,Me)},bezierCurveTo:function(Me,Xe,Ye,et,gt,bt){this._context.bezierCurveTo(Xe,Me,et,Ye,bt,gt)}};function or(Me){return new ut(Me)}function Lr(Me){return new kt(Me)}function Er(Me){this._context=Me}Er.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var Me=this._x,Xe=this._y,Ye=Me.length;if(Ye)if(this._line?this._context.lineTo(Me[0],Xe[0]):this._context.moveTo(Me[0],Xe[0]),Ye===2)this._context.lineTo(Me[1],Xe[1]);else for(var et=hr(Me),gt=hr(Xe),bt=0,lr=1;lr=0;--Xe)gt[Xe]=(lr[Xe]-gt[Xe+1])/bt[Xe];for(bt[Ye-1]=(Me[Ye]+gt[Ye-1])/2,Xe=0;Xe=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(Me,Xe){switch(Me=+Me,Xe=+Xe,this._point){case 0:this._point=1,this._line?this._context.lineTo(Me,Xe):this._context.moveTo(Me,Xe);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,Xe),this._context.lineTo(Me,Xe);else{var Ye=this._x*(1-this._t)+Me*this._t;this._context.lineTo(Ye,this._y),this._context.lineTo(Ye,Xe)}break}}this._x=Me,this._y=Xe}};function si(Me){return new Kr(Me,.5)}function Tr(Me){return new Kr(Me,0)}function vr(Me){return new Kr(Me,1)}function Hr(Me,Xe){if((lr=Me.length)>1)for(var Ye=1,et,gt,bt=Me[Xe[0]],lr,Ct=bt.length;Ye=0;)Ye[Xe]=Xe;return Ye}function gn(Me,Xe){return Me[Xe]}function wr(){var Me=r([]),Xe=Di,Ye=Hr,et=gn;function gt(bt){var lr=Me.apply(this,arguments),Ct,ur=bt.length,Ir=lr.length,Rr=new Array(Ir),Nr;for(Ct=0;Ct0){for(var Ye,et,gt=0,bt=Me[0].length,lr;gt0)for(var Ye,et=0,gt,bt,lr,Ct,ur,Ir=Me[Xe[0]].length;et0?(gt[0]=lr,gt[1]=lr+=bt):bt<0?(gt[1]=Ct,gt[0]=Ct+=bt):(gt[0]=0,gt[1]=bt)}function jt(Me,Xe){if((gt=Me.length)>0){for(var Ye=0,et=Me[Xe[0]],gt,bt=et.length;Ye0)||!((bt=(gt=Me[Xe[0]]).length)>0))){for(var Ye=0,et=1,gt,bt,lr;etbt&&(bt=gt,Ye=Xe);return Ye}function Cr(Me){var Xe=Me.map(di);return Di(Me).sort(function(Ye,et){return Xe[Ye]-Xe[et]})}function di(Me){for(var Xe=0,Ye=-1,et=Me.length,gt;++Ye{(function(e,t){typeof zO=="object"&&typeof lct!="undefined"?t(zO,nct(),ase()):(e=e||self,t(e.d3=e.d3||{},e.d3,e.d3))})(zO,function(e,t,r){"use strict";function i(x){return x.target.depth}function n(x){return x.depth}function a(x,A){return A-1-x.height}function o(x,A){return x.sourceLinks.length?x.depth:A-1}function s(x){return x.targetLinks.length?x.depth:x.sourceLinks.length?t.min(x.sourceLinks,i)-1:0}function l(x){return function(){return x}}function u(x,A){return c(x.source,A.source)||x.index-A.index}function f(x,A){return c(x.target,A.target)||x.index-A.index}function c(x,A){return x.y0-A.y0}function h(x){return x.value}function d(x){return x.index}function p(x){return x.nodes}function v(x){return x.links}function y(x,A){let T=x.get(A);if(!T)throw new Error("missing: "+A);return T}function m({nodes:x}){for(let A of x){let T=A.y0,g=T;for(let E of A.sourceLinks)E.y0=T+E.width/2,T+=E.width;for(let E of A.targetLinks)E.y1=g+E.width/2,g+=E.width}}function w(){let x=0,A=0,T=1,g=1,E=24,S=8,C,k=d,D=o,L,P,I=p,F=v,z=6,B=2/3;function O(){let Ce={nodes:I.apply(null,arguments),links:F.apply(null,arguments)};return W(Ce),X(Ce),Z(Ce),j(Ce),N(Ce),m(Ce),Ce}O.update=function(Ce){return m(Ce),Ce},O.nodeId=function(Ce){return arguments.length?(k=typeof Ce=="function"?Ce:l(Ce),O):k},O.nodeAlign=function(Ce){return arguments.length?(D=typeof Ce=="function"?Ce:l(Ce),O):D},O.nodeSort=function(Ce){return arguments.length?(L=Ce,O):L},O.nodeWidth=function(Ce){return arguments.length?(E=+Ce,O):E},O.nodePadding=function(Ce){return arguments.length?(S=C=+Ce,O):S},O.nodes=function(Ce){return arguments.length?(I=typeof Ce=="function"?Ce:l(Ce),O):I},O.links=function(Ce){return arguments.length?(F=typeof Ce=="function"?Ce:l(Ce),O):F},O.linkSort=function(Ce){return arguments.length?(P=Ce,O):P},O.size=function(Ce){return arguments.length?(x=A=0,T=+Ce[0],g=+Ce[1],O):[T-x,g-A]},O.extent=function(Ce){return arguments.length?(x=+Ce[0][0],T=+Ce[1][0],A=+Ce[0][1],g=+Ce[1][1],O):[[x,A],[T,g]]},O.iterations=function(Ce){return arguments.length?(z=+Ce,O):z};function W({nodes:Ce,links:le}){for(let[Ee,we]of Ce.entries())we.index=Ee,we.sourceLinks=[],we.targetLinks=[];let re=new Map(Ce.map((Ee,we)=>[k(Ee,we,Ce),Ee]));for(let[Ee,we]of le.entries()){we.index=Ee;let{source:oe,target:Y}=we;typeof oe!="object"&&(oe=we.source=y(re,oe)),typeof Y!="object"&&(Y=we.target=y(re,Y)),oe.sourceLinks.push(we),Y.targetLinks.push(we)}if(P!=null)for(let{sourceLinks:Ee,targetLinks:we}of Ce)Ee.sort(P),we.sort(P)}function X({nodes:Ce}){for(let le of Ce)le.value=le.fixedValue===void 0?Math.max(t.sum(le.sourceLinks,h),t.sum(le.targetLinks,h)):le.fixedValue}function Z({nodes:Ce}){let le=Ce.length,re=new Set(Ce),Ee=new Set,we=0;for(;re.size;){for(let oe of re){oe.depth=we;for(let{target:Y}of oe.sourceLinks)Ee.add(Y)}if(++we>le)throw new Error("circular link");re=Ee,Ee=new Set}}function j({nodes:Ce}){let le=Ce.length,re=new Set(Ce),Ee=new Set,we=0;for(;re.size;){for(let oe of re){oe.height=we;for(let{source:Y}of oe.targetLinks)Ee.add(Y)}if(++we>le)throw new Error("circular link");re=Ee,Ee=new Set}}function q({nodes:Ce}){let le=t.max(Ce,we=>we.depth)+1,re=(T-x-E)/(le-1),Ee=new Array(le);for(let we of Ce){let oe=Math.max(0,Math.min(le-1,Math.floor(D.call(null,we,le))));we.layer=oe,we.x0=x+oe*re,we.x1=we.x0+E,Ee[oe]?Ee[oe].push(we):Ee[oe]=[we]}if(L)for(let we of Ee)we.sort(L);return Ee}function Q(Ce){let le=t.min(Ce,re=>(g-A-(re.length-1)*C)/t.sum(re,h));for(let re of Ce){let Ee=A;for(let we of re){we.y0=Ee,we.y1=Ee+we.value*le,Ee=we.y1+C;for(let oe of we.sourceLinks)oe.width=oe.value*le}Ee=(g-Ee+C)/(re.length+1);for(let we=0;were.length)-1)),Q(le);for(let re=0;re0))continue;let U=(ne/ye-Y.y0)*le;Y.y0+=U,Y.y1+=U,ie(Y)}L===void 0&&oe.sort(c),H(oe,re)}}function J(Ce,le,re){for(let Ee=Ce.length,we=Ee-2;we>=0;--we){let oe=Ce[we];for(let Y of oe){let ne=0,ye=0;for(let{target:se,value:Ae}of Y.sourceLinks){let be=Ae*(se.layer-Y.layer);ne+=Ie(Y,se)*be,ye+=be}if(!(ye>0))continue;let U=(ne/ye-Y.y0)*le;Y.y0+=U,Y.y1+=U,ie(Y)}L===void 0&&oe.sort(c),H(oe,re)}}function H(Ce,le){let re=Ce.length>>1,Ee=Ce[re];te(Ce,Ee.y0-C,re-1,le),$(Ce,Ee.y1+C,re+1,le),te(Ce,g,Ce.length-1,le),$(Ce,A,0,le)}function $(Ce,le,re,Ee){for(;re1e-6&&(we.y0+=oe,we.y1+=oe),le=we.y1+C}}function te(Ce,le,re,Ee){for(;re>=0;--re){let we=Ce[re],oe=(we.y1-le)*Ee;oe>1e-6&&(we.y0-=oe,we.y1-=oe),le=we.y0-C}}function ie({sourceLinks:Ce,targetLinks:le}){if(P===void 0){for(let{source:{sourceLinks:re}}of le)re.sort(f);for(let{target:{targetLinks:re}}of Ce)re.sort(u)}}function de(Ce){if(P===void 0)for(let{sourceLinks:le,targetLinks:re}of Ce)le.sort(f),re.sort(u)}function ge(Ce,le){let re=Ce.y0-(Ce.sourceLinks.length-1)*C/2;for(let{target:Ee,width:we}of Ce.sourceLinks){if(Ee===le)break;re+=we+C}for(let{source:Ee,width:we}of le.targetLinks){if(Ee===Ce)break;re-=we}return re}function Ie(Ce,le){let re=le.y0-(le.targetLinks.length-1)*C/2;for(let{source:Ee,width:we}of le.targetLinks){if(Ee===Ce)break;re+=we+C}for(let{target:Ee,width:we}of Ce.sourceLinks){if(Ee===le)break;re-=we}return re}return O}function _(x){return[x.source.x1,x.y0]}function b(x){return[x.target.x0,x.y1]}function M(){return r.linkHorizontal().source(_).target(b)}e.sankey=w,e.sankeyCenter=s,e.sankeyJustify=o,e.sankeyLeft=n,e.sankeyLinkHorizontal=M,e.sankeyRight=a,Object.defineProperty(e,"__esModule",{value:!0})})});var cct=K((IO,fct)=>{(function(e,t){t(typeof IO=="object"&&typeof fct!="undefined"?IO:e.d3=e.d3||{})})(IO,(function(e){"use strict";function t(N,V){return NV?1:N>=V?0:NaN}function r(N){return N.length===1&&(N=i(N)),{left:function(V,J,H,$){for(H==null&&(H=0),$==null&&($=V.length);H<$;){var te=H+$>>>1;N(V[te],J)<0?H=te+1:$=te}return H},right:function(V,J,H,$){for(H==null&&(H=0),$==null&&($=V.length);H<$;){var te=H+$>>>1;N(V[te],J)>0?$=te:H=te+1}return H}}}function i(N){return function(V,J){return t(N(V),J)}}var n=r(t),a=n.right,o=n.left;function s(N,V){V==null&&(V=l);for(var J=0,H=N.length-1,$=N[0],te=new Array(H<0?0:H);JN?1:V>=N?0:NaN}function c(N){return N===null?NaN:+N}function h(N,V){var J=N.length,H=0,$=-1,te=0,ie,de,ge=0;if(V==null)for(;++$1)return ge/(H-1)}function d(N,V){var J=h(N,V);return J&&Math.sqrt(J)}function p(N,V){var J=N.length,H=-1,$,te,ie;if(V==null){for(;++H=$)for(te=ie=$;++H$&&(te=$),ie<$&&(ie=$))}else for(;++H=$)for(te=ie=$;++H$&&(te=$),ie<$&&(ie=$));return[te,ie]}var v=Array.prototype,y=v.slice,m=v.map;function w(N){return function(){return N}}function _(N){return N}function b(N,V,J){N=+N,V=+V,J=($=arguments.length)<2?(V=N,N=0,1):$<3?1:+J;for(var H=-1,$=Math.max(0,Math.ceil((V-N)/J))|0,te=new Array($);++H<$;)te[H]=N+H*J;return te}var M=Math.sqrt(50),x=Math.sqrt(10),A=Math.sqrt(2);function T(N,V,J){var H,$=-1,te,ie,de;if(V=+V,N=+N,J=+J,N===V&&J>0)return[N];if((H=V0)for(N=Math.ceil(N/de),V=Math.floor(V/de),ie=new Array(te=Math.ceil(V-N+1));++$=0?(te>=M?10:te>=x?5:te>=A?2:1)*Math.pow(10,$):-Math.pow(10,-$)/(te>=M?10:te>=x?5:te>=A?2:1)}function E(N,V,J){var H=Math.abs(V-N)/Math.max(0,J),$=Math.pow(10,Math.floor(Math.log(H)/Math.LN10)),te=H/$;return te>=M?$*=10:te>=x?$*=5:te>=A&&($*=2),Vle;)re.pop(),--Ee;var we=new Array(Ee+1),oe;for(te=0;te<=Ee;++te)oe=we[te]=[],oe.x0=te>0?re[te-1]:Ce,oe.x1=te=1)return+J(N[H-1],H-1,N);var H,$=(H-1)*V,te=Math.floor($),ie=+J(N[te],te,N),de=+J(N[te+1],te+1,N);return ie+(de-ie)*($-te)}}function D(N,V,J){return N=m.call(N,c).sort(t),Math.ceil((J-V)/(2*(k(N,.75)-k(N,.25))*Math.pow(N.length,-1/3)))}function L(N,V,J){return Math.ceil((J-V)/(3.5*d(N)*Math.pow(N.length,-1/3)))}function P(N,V){var J=N.length,H=-1,$,te;if(V==null){for(;++H=$)for(te=$;++Hte&&(te=$)}else for(;++H=$)for(te=$;++Hte&&(te=$);return te}function I(N,V){var J=N.length,H=J,$=-1,te,ie=0;if(V==null)for(;++$=0;)for(ie=N[V],J=ie.length;--J>=0;)te[--$]=ie[J];return te}function B(N,V){var J=N.length,H=-1,$,te;if(V==null){for(;++H=$)for(te=$;++H$&&(te=$)}else for(;++H=$)for(te=$;++H$&&(te=$);return te}function O(N,V){for(var J=V.length,H=new Array(J);J--;)H[J]=N[V[J]];return H}function W(N,V){if(J=N.length){var J,H=0,$=0,te,ie=N[$];for(V==null&&(V=t);++H{var IFr=ise();hct.exports=function(t,r){var i=[],n=[],a=[],o={},s=[],l;function u(_){a[_]=!1,o.hasOwnProperty(_)&&Object.keys(o[_]).forEach(function(b){delete o[_][b],a[b]&&u(b)})}function f(_){var b=!1;n.push(_),a[_]=!0;var M,x;for(M=0;M=_})}function d(_){h(_);for(var b=t,M=IFr(b),x=M.components.filter(function(k){return k.length>1}),A=1/0,T,g=0;g{(function(e,t){typeof RO=="object"&&typeof pct!="undefined"?t(RO,cct(),nse(),ase(),dct()):t(e.d3=e.d3||{},e.d3,e.d3,e.d3,null)})(RO,(function(e,t,r,i,n){"use strict";n=n&&n.hasOwnProperty("default")?n.default:n;function a(le){return le.target.depth}function o(le){return le.depth}function s(le,re){return re-1-le.height}function l(le,re){return le.sourceLinks.length?le.depth:re-1}function u(le){return le.targetLinks.length?le.depth:le.sourceLinks.length?t.min(le.sourceLinks,a)-1:0}function f(le){return function(){return le}}var c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(le){return typeof le}:function(le){return le&&typeof Symbol=="function"&&le.constructor===Symbol&&le!==Symbol.prototype?"symbol":typeof le};function h(le,re){return p(le.source,re.source)||le.index-re.index}function d(le,re){return p(le.target,re.target)||le.index-re.index}function p(le,re){return le.partOfCycle===re.partOfCycle?le.y0-re.y0:le.circularLinkType==="top"||re.circularLinkType==="bottom"?-1:1}function v(le){return le.value}function y(le){return(le.y0+le.y1)/2}function m(le){return y(le.source)}function w(le){return y(le.target)}function _(le){return le.index}function b(le){return le.nodes}function M(le){return le.links}function x(le,re){var Ee=le.get(re);if(!Ee)throw new Error("missing: "+re);return Ee}function A(le,re){return re(le)}var T=25,g=10,E=.3;function S(){var le=0,re=0,Ee=1,we=1,oe=24,Y,ne=_,ye=l,U=b,se=M,Ae=32,be=2,me,ue=null;function pe(){var xe={nodes:U.apply(null,arguments),links:se.apply(null,arguments)};ce(xe),C(xe,ne,ue),Be(xe),it(xe),k(xe,ne),nt(xe,Ae,ne),Ue(xe);for(var Re=4,Qe=0;Qe0?Re+T+g:Re,Qe=Qe>0?Qe+T+g:Qe,Pe=Pe>0?Pe+T+g:Pe,De=De>0?De+T+g:De,{top:Re,bottom:Qe,left:De,right:Pe}}function Ze(xe,Re){var Qe=t.max(xe.nodes,function(st){return st.column}),Pe=Ee-le,De=we-re,Ve=Pe+Re.right+Re.left,Le=De+Re.top+Re.bottom,Se=Pe/Ve,ze=De/Le;return le=le*Se+Re.left,Ee=Re.right==0?Ee:Ee*Se,re=re*ze+Re.top,we=we*ze,xe.nodes.forEach(function(st){st.x0=le+st.column*((Ee-le-oe)/Qe),st.x1=st.x0+oe}),ze}function it(xe){var Re,Qe,Pe;for(Re=xe.nodes,Qe=[],Pe=0;Re.length;++Pe,Re=Qe,Qe=[])Re.forEach(function(De){De.depth=Pe,De.sourceLinks.forEach(function(Ve){Qe.indexOf(Ve.target)<0&&!Ve.circular&&Qe.push(Ve.target)})});for(Re=xe.nodes,Qe=[],Pe=0;Re.length;++Pe,Re=Qe,Qe=[])Re.forEach(function(De){De.height=Pe,De.targetLinks.forEach(function(Ve){Qe.indexOf(Ve.source)<0&&!Ve.circular&&Qe.push(Ve.source)})});xe.nodes.forEach(function(De){De.column=Math.floor(ye.call(null,De,Pe))})}function nt(xe,Re,Qe){var Pe=r.nest().key(function(st){return st.column}).sortKeys(t.ascending).entries(xe.nodes).map(function(st){return st.values});Le(Qe),ze();for(var De=1,Ve=Re;Ve>0;--Ve)Se(De*=.99,Qe),ze();function Le(st){if(me){var ft=1/0;Pe.forEach(function(Dt){var yt=we*me/(Dt.length+1);ft=yt0))if(Dt==0&&Vt==1)St=yt.y1-yt.y0,yt.y0=we/2-St/2,yt.y1=we/2+St/2;else if(Dt==wt-1&&Vt==1)St=yt.y1-yt.y0,yt.y0=we/2-St/2,yt.y1=we/2+St/2;else{var rr=0,Ke=t.mean(yt.sourceLinks,w),at=t.mean(yt.targetLinks,m);Ke&&at?rr=(Ke+at)/2:rr=Ke||at;var lt=(rr-y(yt))*st;yt.y0+=lt,yt.y1+=lt}})})}function ze(){Pe.forEach(function(st){var ft,wt,At=re,Vt=st.length,Dt;for(st.sort(p),Dt=0;Dt0&&(ft.y0+=wt,ft.y1+=wt),At=ft.y1+Y;if(wt=At-Y-we,wt>0)for(At=ft.y0-=wt,ft.y1-=wt,Dt=Vt-2;Dt>=0;--Dt)ft=st[Dt],wt=ft.y1+Y-At,wt>0&&(ft.y0-=wt,ft.y1-=wt),At=ft.y0})}}function Ue(xe){xe.nodes.forEach(function(Re){Re.sourceLinks.sort(d),Re.targetLinks.sort(h)}),xe.nodes.forEach(function(Re){var Qe=Re.y0,Pe=Qe,De=Re.y1,Ve=De;Re.sourceLinks.forEach(function(Le){Le.circular?(Le.y0=De-Le.width/2,De=De-Le.width):(Le.y0=Qe+Le.width/2,Qe+=Le.width)}),Re.targetLinks.forEach(function(Le){Le.circular?(Le.y1=Ve-Le.width/2,Ve=Ve-Le.width):(Le.y1=Pe+Le.width/2,Pe+=Le.width)})})}return pe}function C(le,re,Ee){var we=0;if(Ee===null){for(var oe=[],Y=0;Yre.source.column)}function P(le,re){var Ee=0;le.sourceLinks.forEach(function(oe){Ee=oe.circular&&!Ie(oe,re)?Ee+1:Ee});var we=0;return le.targetLinks.forEach(function(oe){we=oe.circular&&!Ie(oe,re)?we+1:we}),Ee+we}function I(le){var re=le.source.sourceLinks,Ee=0;re.forEach(function(Y){Ee=Y.circular?Ee+1:Ee});var we=le.target.targetLinks,oe=0;return we.forEach(function(Y){oe=Y.circular?oe+1:oe}),!(Ee>1||oe>1)}function F(le,re,Ee){return le.sort(O),le.forEach(function(we,oe){var Y=0;if(Ie(we,Ee)&&I(we))we.circularPathData.verticalBuffer=Y+we.width/2;else{var ne=0;for(ne;neY?ye:Y}we.circularPathData.verticalBuffer=Y+we.width/2}}),le}function z(le,re,Ee,we){var oe=5,Y=t.min(le.links,function(U){return U.source.y0});le.links.forEach(function(U){U.circular&&(U.circularPathData={})});var ne=le.links.filter(function(U){return U.circularLinkType=="top"});F(ne,re,we);var ye=le.links.filter(function(U){return U.circularLinkType=="bottom"});F(ye,re,we),le.links.forEach(function(U){if(U.circular){if(U.circularPathData.arcRadius=U.width+g,U.circularPathData.leftNodeBuffer=oe,U.circularPathData.rightNodeBuffer=oe,U.circularPathData.sourceWidth=U.source.x1-U.source.x0,U.circularPathData.sourceX=U.source.x0+U.circularPathData.sourceWidth,U.circularPathData.targetX=U.target.x0,U.circularPathData.sourceY=U.y0,U.circularPathData.targetY=U.y1,Ie(U,we)&&I(U))U.circularPathData.leftSmallArcRadius=g+U.width/2,U.circularPathData.leftLargeArcRadius=g+U.width/2,U.circularPathData.rightSmallArcRadius=g+U.width/2,U.circularPathData.rightLargeArcRadius=g+U.width/2,U.circularLinkType=="bottom"?(U.circularPathData.verticalFullExtent=U.source.y1+T+U.circularPathData.verticalBuffer,U.circularPathData.verticalLeftInnerExtent=U.circularPathData.verticalFullExtent-U.circularPathData.leftLargeArcRadius,U.circularPathData.verticalRightInnerExtent=U.circularPathData.verticalFullExtent-U.circularPathData.rightLargeArcRadius):(U.circularPathData.verticalFullExtent=U.source.y0-T-U.circularPathData.verticalBuffer,U.circularPathData.verticalLeftInnerExtent=U.circularPathData.verticalFullExtent+U.circularPathData.leftLargeArcRadius,U.circularPathData.verticalRightInnerExtent=U.circularPathData.verticalFullExtent+U.circularPathData.rightLargeArcRadius);else{var se=U.source.column,Ae=U.circularLinkType,be=le.links.filter(function(pe){return pe.source.column==se&&pe.circularLinkType==Ae});U.circularLinkType=="bottom"?be.sort(X):be.sort(W);var me=0;be.forEach(function(pe,ce){pe.circularLinkID==U.circularLinkID&&(U.circularPathData.leftSmallArcRadius=g+U.width/2+me,U.circularPathData.leftLargeArcRadius=g+U.width/2+ce*re+me),me=me+pe.width}),se=U.target.column,be=le.links.filter(function(pe){return pe.target.column==se&&pe.circularLinkType==Ae}),U.circularLinkType=="bottom"?be.sort(j):be.sort(Z),me=0,be.forEach(function(pe,ce){pe.circularLinkID==U.circularLinkID&&(U.circularPathData.rightSmallArcRadius=g+U.width/2+me,U.circularPathData.rightLargeArcRadius=g+U.width/2+ce*re+me),me=me+pe.width}),U.circularLinkType=="bottom"?(U.circularPathData.verticalFullExtent=Math.max(Ee,U.source.y1,U.target.y1)+T+U.circularPathData.verticalBuffer,U.circularPathData.verticalLeftInnerExtent=U.circularPathData.verticalFullExtent-U.circularPathData.leftLargeArcRadius,U.circularPathData.verticalRightInnerExtent=U.circularPathData.verticalFullExtent-U.circularPathData.rightLargeArcRadius):(U.circularPathData.verticalFullExtent=Y-T-U.circularPathData.verticalBuffer,U.circularPathData.verticalLeftInnerExtent=U.circularPathData.verticalFullExtent+U.circularPathData.leftLargeArcRadius,U.circularPathData.verticalRightInnerExtent=U.circularPathData.verticalFullExtent+U.circularPathData.rightLargeArcRadius)}U.circularPathData.leftInnerExtent=U.circularPathData.sourceX+U.circularPathData.leftNodeBuffer,U.circularPathData.rightInnerExtent=U.circularPathData.targetX-U.circularPathData.rightNodeBuffer,U.circularPathData.leftFullExtent=U.circularPathData.sourceX+U.circularPathData.leftLargeArcRadius+U.circularPathData.leftNodeBuffer,U.circularPathData.rightFullExtent=U.circularPathData.targetX-U.circularPathData.rightLargeArcRadius-U.circularPathData.rightNodeBuffer}if(U.circular)U.path=B(U);else{var ue=i.linkHorizontal().source(function(pe){var ce=pe.source.x0+(pe.source.x1-pe.source.x0),Be=pe.y0;return[ce,Be]}).target(function(pe){var ce=pe.target.x0,Be=pe.y1;return[ce,Be]});U.path=ue(U)}})}function B(le){var re="";return le.circularLinkType=="top"?re="M"+le.circularPathData.sourceX+" "+le.circularPathData.sourceY+" L"+le.circularPathData.leftInnerExtent+" "+le.circularPathData.sourceY+" A"+le.circularPathData.leftLargeArcRadius+" "+le.circularPathData.leftSmallArcRadius+" 0 0 0 "+le.circularPathData.leftFullExtent+" "+(le.circularPathData.sourceY-le.circularPathData.leftSmallArcRadius)+" L"+le.circularPathData.leftFullExtent+" "+le.circularPathData.verticalLeftInnerExtent+" A"+le.circularPathData.leftLargeArcRadius+" "+le.circularPathData.leftLargeArcRadius+" 0 0 0 "+le.circularPathData.leftInnerExtent+" "+le.circularPathData.verticalFullExtent+" L"+le.circularPathData.rightInnerExtent+" "+le.circularPathData.verticalFullExtent+" A"+le.circularPathData.rightLargeArcRadius+" "+le.circularPathData.rightLargeArcRadius+" 0 0 0 "+le.circularPathData.rightFullExtent+" "+le.circularPathData.verticalRightInnerExtent+" L"+le.circularPathData.rightFullExtent+" "+(le.circularPathData.targetY-le.circularPathData.rightSmallArcRadius)+" A"+le.circularPathData.rightLargeArcRadius+" "+le.circularPathData.rightSmallArcRadius+" 0 0 0 "+le.circularPathData.rightInnerExtent+" "+le.circularPathData.targetY+" L"+le.circularPathData.targetX+" "+le.circularPathData.targetY:re="M"+le.circularPathData.sourceX+" "+le.circularPathData.sourceY+" L"+le.circularPathData.leftInnerExtent+" "+le.circularPathData.sourceY+" A"+le.circularPathData.leftLargeArcRadius+" "+le.circularPathData.leftSmallArcRadius+" 0 0 1 "+le.circularPathData.leftFullExtent+" "+(le.circularPathData.sourceY+le.circularPathData.leftSmallArcRadius)+" L"+le.circularPathData.leftFullExtent+" "+le.circularPathData.verticalLeftInnerExtent+" A"+le.circularPathData.leftLargeArcRadius+" "+le.circularPathData.leftLargeArcRadius+" 0 0 1 "+le.circularPathData.leftInnerExtent+" "+le.circularPathData.verticalFullExtent+" L"+le.circularPathData.rightInnerExtent+" "+le.circularPathData.verticalFullExtent+" A"+le.circularPathData.rightLargeArcRadius+" "+le.circularPathData.rightLargeArcRadius+" 0 0 1 "+le.circularPathData.rightFullExtent+" "+le.circularPathData.verticalRightInnerExtent+" L"+le.circularPathData.rightFullExtent+" "+(le.circularPathData.targetY+le.circularPathData.rightSmallArcRadius)+" A"+le.circularPathData.rightLargeArcRadius+" "+le.circularPathData.rightSmallArcRadius+" 0 0 1 "+le.circularPathData.rightInnerExtent+" "+le.circularPathData.targetY+" L"+le.circularPathData.targetX+" "+le.circularPathData.targetY,re}function O(le,re){return q(le)==q(re)?le.circularLinkType=="bottom"?X(le,re):W(le,re):q(re)-q(le)}function W(le,re){return le.y0-re.y0}function X(le,re){return re.y0-le.y0}function Z(le,re){return le.y1-re.y1}function j(le,re){return re.y1-le.y1}function q(le){return le.target.column-le.source.column}function Q(le){return le.target.x0-le.source.x1}function N(le,re){var Ee=D(le),we=Q(re)/Math.tan(Ee),oe=ge(le)=="up"?le.y1+we:le.y1-we;return oe}function V(le,re){var Ee=D(le),we=Q(re)/Math.tan(Ee),oe=ge(le)=="up"?le.y1-we:le.y1+we;return oe}function J(le,re,Ee,we){le.links.forEach(function(oe){if(!oe.circular&&oe.target.column-oe.source.column>1){var Y=oe.source.column+1,ne=oe.target.column-1,ye=1,U=ne-Y+1;for(ye=1;Y<=ne;Y++,ye++)le.nodes.forEach(function(se){if(se.column==Y){var Ae=ye/(U+1),be=Math.pow(1-Ae,3),me=3*Ae*Math.pow(1-Ae,2),ue=3*Math.pow(Ae,2)*(1-Ae),pe=Math.pow(Ae,3),ce=be*oe.y0+me*oe.y0+ue*oe.y1+pe*oe.y1,Be=ce-oe.width/2,$e=ce+oe.width/2,Ze;Be>se.y0&&Bese.y0&&$ese.y1&&$(it,Ze,re,Ee)})):Bese.y1&&(Ze=$e-se.y0+10,se=$(se,Ze,re,Ee),le.nodes.forEach(function(it){A(it,we)==A(se,we)||it.column!=se.column||it.y0se.y1&&$(it,Ze,re,Ee)}))}})}})}function H(le,re){return le.y0>re.y0&&le.y0re.y0&&le.y1re.y1}function $(le,re,Ee,we){return le.y0+re>=Ee&&le.y1+re<=we&&(le.y0=le.y0+re,le.y1=le.y1+re,le.targetLinks.forEach(function(oe){oe.y1=oe.y1+re}),le.sourceLinks.forEach(function(oe){oe.y0=oe.y0+re})),le}function te(le,re,Ee,we){le.nodes.forEach(function(oe){we&&oe.y+(oe.y1-oe.y0)>re&&(oe.y=oe.y-(oe.y+(oe.y1-oe.y0)-re));var Y=le.links.filter(function(U){return A(U.source,Ee)==A(oe,Ee)}),ne=Y.length;ne>1&&Y.sort(function(U,se){if(!U.circular&&!se.circular){if(U.target.column==se.target.column)return U.y1-se.y1;if(de(U,se)){if(U.target.column>se.target.column){var Ae=V(se,U);return U.y1-Ae}if(se.target.column>U.target.column){var be=V(U,se);return be-se.y1}}else return U.y1-se.y1}if(U.circular&&!se.circular)return U.circularLinkType=="top"?-1:1;if(se.circular&&!U.circular)return se.circularLinkType=="top"?1:-1;if(U.circular&&se.circular)return U.circularLinkType===se.circularLinkType&&U.circularLinkType=="top"?U.target.column===se.target.column?U.target.y1-se.target.y1:se.target.column-U.target.column:U.circularLinkType===se.circularLinkType&&U.circularLinkType=="bottom"?U.target.column===se.target.column?se.target.y1-U.target.y1:U.target.column-se.target.column:U.circularLinkType=="top"?-1:1});var ye=oe.y0;Y.forEach(function(U){U.y0=ye+U.width/2,ye=ye+U.width}),Y.forEach(function(U,se){if(U.circularLinkType=="bottom"){var Ae=se+1,be=0;for(Ae;Ae1&&oe.sort(function(ye,U){if(!ye.circular&&!U.circular){if(ye.source.column==U.source.column)return ye.y0-U.y0;if(de(ye,U)){if(U.source.column0?"up":"down"}function Ie(le,re){return A(le.source,re)==A(le.target,re)}function Ce(le,re,Ee){var we=le.nodes,oe=le.links,Y=!1,ne=!1;if(oe.forEach(function(me){me.circularLinkType=="top"?Y=!0:me.circularLinkType=="bottom"&&(ne=!0)}),Y==!1||ne==!1){var ye=t.min(we,function(me){return me.y0}),U=t.max(we,function(me){return me.y1}),se=U-ye,Ae=Ee-re,be=Ae/se;we.forEach(function(me){var ue=(me.y1-me.y0)*be;me.y0=(me.y0-ye)*be,me.y1=me.y0+ue}),oe.forEach(function(me){me.y0=(me.y0-ye)*be,me.y1=(me.y1-ye)*be,me.width=me.width*be})}}e.sankeyCircular=S,e.sankeyCenter=u,e.sankeyLeft=o,e.sankeyRight=s,e.sankeyJustify=l,Object.defineProperty(e,"__esModule",{value:!0})}))});var ose={};Fl(ose,{cn:()=>HFr,duration:()=>UFr,ease:()=>GFr,forceIterations:()=>NFr,forceTicksPerFrame:()=>VFr,nodePadAcross:()=>qFr,nodeTextOffsetHorizontal:()=>RFr,nodeTextOffsetVertical:()=>BFr,sankeyIterations:()=>OFr});var RFr,BFr,qFr,OFr,NFr,VFr,UFr,GFr,HFr,sse=ps(()=>{"use strict";RFr=4,BFr=3,qFr=10,OFr=50,NFr=5,VFr=10,UFr=500,GFr="linear",HFr={sankey:"sankey",sankeyLinks:"sankey-links",sankeyLink:"sankey-link",sankeyNodeSet:"sankey-node-set",sankeyNode:"sankey-node",nodeRect:"node-rect",nodeLabel:"node-label"}});var Cct=K((Xfi,kct)=>{"use strict";var mct=rct(),jFr=(E_(),ar(S_)).interpolateNumber,dT=No(),nD=uct(),WFr=vct(),Ju=(sse(),ar(ose)),Hm=ko(),$Fr=Bs(),jm=Mt(),E3=jm.strTranslate,yct=jm.strRotate,fse=Dm(),aD=fse.keyFun,BO=fse.repeat,Act=fse.unwrap,gct=zu(),YFr=Ho(),Tct=(Hc(),ar(Gc)),XFr=Tct.CAP_SHIFT,ZFr=Tct.LINE_SPACING,KFr=3;function JFr(e,t,r){var i=Act(t),n=i.trace,a=n.domain,o=n.orientation==="h",s=n.direction==="reversed",l=n.node.pad,u=n.node.thickness,f={justify:nD.sankeyJustify,left:nD.sankeyLeft,right:nD.sankeyRight,center:nD.sankeyCenter}[n.node.align],c=e.width*(a.x[1]-a.x[0]),h=e.height*(a.y[1]-a.y[0]),d=i._nodes,p=i._links,v=i.circular,y;v?y=WFr.sankeyCircular().circularLinkGap(0):y=nD.sankey(),y.iterations(Ju.sankeyIterations).size(o?[c,h]:[h,c]).nodeWidth(u).nodePadding(l).nodeId(function(P){return P.pointNumber}).nodeAlign(f).nodes(d).links(p);function m(P){n[P].sort==="input"&&(v?jm.warn(`Circular Sankey diagrams do not support the "input" ${P}.sort mode; falling back to the default sort.`):y[`${P}Sort`](null))}m("link"),m("node");var w=y();y.nodePadding()=B||(z=B-F.y0,z>1e-6&&(F.y0+=z,F.y1+=z)),B=F.y1+l})}function C(P){var I=P.map(function(Z,j){return{x0:Z.x0,index:j}}).sort(function(Z,j){return Z.x0-j.x0}),F=[],z=-1,B,O=-1/0,W;for(_=0;_O+u&&(z+=1,B=X.x0),O=X.x0,F[z]||(F[z]=[]),F[z].push(X),W=B-X.x0,X.x0+=W,X.x1+=W}return F}if(n.node.x.length&&n.node.y.length){for(_=0;_0?" L "+n.targetX+" "+n.targetY:"")+"Z"):(r="M "+(n.targetX-t)+" "+(n.targetY-i)+" L "+(n.rightInnerExtent-t)+" "+(n.targetY-i)+" A "+(n.rightLargeArcRadius+i)+" "+(n.rightSmallArcRadius+i)+" 0 0 0 "+(n.rightFullExtent-i-t)+" "+(n.targetY+n.rightSmallArcRadius)+" L "+(n.rightFullExtent-i-t)+" "+n.verticalRightInnerExtent,a&&o?r+=" A "+(n.rightLargeArcRadius+i)+" "+(n.rightLargeArcRadius+i)+" 0 0 0 "+(n.rightInnerExtent-i-t)+" "+(n.verticalFullExtent+i)+" L "+(n.rightFullExtent+i-t-(n.rightLargeArcRadius-i))+" "+(n.verticalFullExtent+i)+" A "+(n.rightLargeArcRadius+i)+" "+(n.rightLargeArcRadius+i)+" 0 0 0 "+(n.leftFullExtent+i)+" "+n.verticalLeftInnerExtent:a?r+=" A "+(n.rightLargeArcRadius-i)+" "+(n.rightSmallArcRadius-i)+" 0 0 1 "+(n.rightFullExtent-t-i-(n.rightLargeArcRadius-i))+" "+(n.verticalFullExtent-i)+" L "+(n.leftFullExtent+i+(n.rightLargeArcRadius-i))+" "+(n.verticalFullExtent-i)+" A "+(n.rightLargeArcRadius-i)+" "+(n.rightSmallArcRadius-i)+" 0 0 1 "+(n.leftFullExtent+i)+" "+n.verticalLeftInnerExtent:r+=" A "+(n.rightLargeArcRadius+i)+" "+(n.rightLargeArcRadius+i)+" 0 0 0 "+(n.rightInnerExtent-t)+" "+(n.verticalFullExtent+i)+" L "+n.leftInnerExtent+" "+(n.verticalFullExtent+i)+" A "+(n.leftLargeArcRadius+i)+" "+(n.leftLargeArcRadius+i)+" 0 0 0 "+(n.leftFullExtent+i)+" "+n.verticalLeftInnerExtent,r+=" L "+(n.leftFullExtent+i)+" "+(n.sourceY+n.leftSmallArcRadius)+" A "+(n.leftLargeArcRadius+i)+" "+(n.leftSmallArcRadius+i)+" 0 0 0 "+n.leftInnerExtent+" "+(n.sourceY-i)+" L "+n.sourceX+" "+(n.sourceY-i)+" L "+n.sourceX+" "+(n.sourceY+i)+" L "+n.leftInnerExtent+" "+(n.sourceY+i)+" A "+(n.leftLargeArcRadius-i)+" "+(n.leftSmallArcRadius-i)+" 0 0 1 "+(n.leftFullExtent-i)+" "+(n.sourceY+n.leftSmallArcRadius)+" L "+(n.leftFullExtent-i)+" "+n.verticalLeftInnerExtent,a&&o?r+=" A "+(n.rightLargeArcRadius-i)+" "+(n.rightSmallArcRadius-i)+" 0 0 1 "+(n.leftFullExtent-i-(n.rightLargeArcRadius-i))+" "+(n.verticalFullExtent-i)+" L "+(n.rightFullExtent+i-t+(n.rightLargeArcRadius-i))+" "+(n.verticalFullExtent-i)+" A "+(n.rightLargeArcRadius-i)+" "+(n.rightSmallArcRadius-i)+" 0 0 1 "+(n.rightFullExtent+i-t)+" "+n.verticalRightInnerExtent:a?r+=" A "+(n.rightLargeArcRadius+i)+" "+(n.rightLargeArcRadius+i)+" 0 0 0 "+(n.leftFullExtent+i)+" "+(n.verticalFullExtent+i)+" L "+(n.rightFullExtent-t-i)+" "+(n.verticalFullExtent+i)+" A "+(n.rightLargeArcRadius+i)+" "+(n.rightLargeArcRadius+i)+" 0 0 0 "+(n.rightFullExtent+i-t)+" "+n.verticalRightInnerExtent:r+=" A "+(n.leftLargeArcRadius-i)+" "+(n.leftLargeArcRadius-i)+" 0 0 1 "+n.leftInnerExtent+" "+(n.verticalFullExtent-i)+" L "+(n.rightInnerExtent-t)+" "+(n.verticalFullExtent-i)+" A "+(n.rightLargeArcRadius-i)+" "+(n.rightLargeArcRadius-i)+" 0 0 1 "+(n.rightFullExtent+i-t)+" "+n.verticalRightInnerExtent,r+=" L "+(n.rightFullExtent+i-t)+" "+(n.targetY+n.rightSmallArcRadius)+" A "+(n.rightLargeArcRadius-i)+" "+(n.rightSmallArcRadius-i)+" 0 0 1 "+(n.rightInnerExtent-t)+" "+(n.targetY+i)+" L "+(n.targetX-t)+" "+(n.targetY+i)+(t>0?" L "+n.targetX+" "+n.targetY:"")+"Z"),r}function cse(){var e=.5;function t(r){var i=r.linkArrowLength;if(r.link.circular)return eLr(r.link,i);var n=Math.abs((r.link.target.x0-r.link.source.x1)/2);i>n&&(i=n);var a=r.link.source.x1,o=r.link.target.x0-i,s=jFr(a,o),l=s(e),u=s(1-e),f=r.link.y0-r.link.width/2,c=r.link.y0+r.link.width/2,h=r.link.y1-r.link.width/2,d=r.link.y1+r.link.width/2,p="M"+a+","+f,v="C"+l+","+f+" "+u+","+h+" "+o+","+h,y="C"+u+","+d+" "+l+","+c+" "+a+","+c,m=i>0?"L"+(o+i)+","+(h+r.link.width/2):"";return m+="L"+o+","+d,p+v+m+y+"Z"}return t}function tLr(e,t){var r=Ju.nodePadAcross,i=e.nodePad/2;t.dx=t.x1-t.x0,t.dy=t.y1-t.y0;var n=t.dx,a=Math.max(.5,t.dy),o="node_"+t.pointNumber;return t.group&&(o=jm.randstr()),t.trace=e.trace,t.curveNumber=e.trace.index,{index:t.pointNumber,key:o,partOfGroup:t.partOfGroup||!1,group:t.group,traceId:e.key,trace:e.trace,node:t,nodePad:e.nodePad,nodeLineColor:e.nodeLineColor,nodeLineWidth:e.nodeLineWidth,textFont:e.textFont,size:e.horizontal?e.height:e.width,visibleWidth:Math.ceil(n),visibleHeight:a,zoneX:-r,zoneY:-i,zoneWidth:n+2*r,zoneHeight:a+2*i,labelY:e.horizontal?t.dy/2+1:t.dx/2+1,left:t.originalLayer===1,sizeAcross:e.width,forceLayouts:e.forceLayouts,horizontal:e.horizontal,reversed:e.reversed,rgb:Hm.rgb(t.color),alpha:Hm.parse(t.color).alpha,valueFormat:e.valueFormat,valueSuffix:e.valueSuffix,sankey:e.sankey,graph:e.graph,arrangement:e.arrangement,uniqueNodeLabelPathId:[e.guid,e.key,o].join("_"),interactionState:e.interactionState,figure:e}}function use(e){e.attr("transform",function(t){return E3(t.node.x0.toFixed(3),t.node.y0.toFixed(3))})}function rLr(e){e.call(use)}function Mct(e,t){e.call(rLr),t.attr("d",cse())}function xct(e){e.attr("width",function(t){return t.node.x1-t.node.x0}).attr("height",function(t){return t.visibleHeight})}function lse(e){return e.link.width>1||e.linkLineWidth>0}function bct(e){return e.horizontal?e.reversed?E3(e.translateX+e.width,e.translateY)+"matrix(-1 0 0 1 0 0)":E3(e.translateX,e.translateY)+"matrix(1 0 0 1 0 0)":e.reversed?E3(e.translateX,e.translateY+e.height)+"matrix(0 -1 1 0 0 0)":E3(e.translateX,e.translateY)+"matrix(0 1 1 0 0 0)"}function _ct(e,t,r){e.on(".basic",null).on("mouseover.basic",function(i){!i.interactionState.dragInProgress&&!i.partOfGroup&&(r.hover(this,i,t),i.interactionState.hovered=[this,i])}).on("mousemove.basic",function(i){!i.interactionState.dragInProgress&&!i.partOfGroup&&(r.follow(this,i),i.interactionState.hovered=[this,i])}).on("mouseout.basic",function(i){!i.interactionState.dragInProgress&&!i.partOfGroup&&(r.unhover(this,i,t),i.interactionState.hovered=!1)}).on("click.basic",function(i){i.interactionState.hovered&&(r.unhover(this,i,t),i.interactionState.hovered=!1),!i.interactionState.dragInProgress&&!i.partOfGroup&&r.select(this,i,t)})}function iLr(e,t,r,i){var n=dT.behavior.drag().origin(function(a){return{x:a.node.x0+a.visibleWidth/2,y:a.node.y0+a.visibleHeight/2}}).on("dragstart",function(a){if(a.arrangement!=="fixed"&&(jm.ensureSingle(i._fullLayout._infolayer,"g","dragcover",function(s){i._fullLayout._dragCover=s}),jm.raiseToTop(this),a.interactionState.dragInProgress=a.node,wct(a.node),a.interactionState.hovered&&(r.nodeEvents.unhover.apply(0,a.interactionState.hovered),a.interactionState.hovered=!1),a.arrangement==="snap")){var o=a.traceId+"|"+a.key;a.forceLayouts[o]?a.forceLayouts[o].alpha(1):nLr(e,o,a,i),aLr(e,t,a,o,i)}}).on("drag",function(a){if(a.arrangement!=="fixed"){var o=dT.event.x,s=dT.event.y;a.arrangement==="snap"?(a.node.x0=o-a.visibleWidth/2,a.node.x1=o+a.visibleWidth/2,a.node.y0=s-a.visibleHeight/2,a.node.y1=s+a.visibleHeight/2):(a.arrangement==="freeform"&&(a.node.x0=o-a.visibleWidth/2,a.node.x1=o+a.visibleWidth/2),s=Math.max(0,Math.min(a.size-a.visibleHeight/2,s)),a.node.y0=s-a.visibleHeight/2,a.node.y1=s+a.visibleHeight/2),wct(a.node),a.arrangement!=="snap"&&(a.sankey.update(a.graph),Mct(e.filter(Ect(a)),t))}}).on("dragend",function(a){if(a.arrangement!=="fixed"){a.interactionState.dragInProgress=!1;for(var o=0;o0)window.requestAnimationFrame(a);else{var l=r.node.originalX;r.node.x0=l-r.visibleWidth/2,r.node.x1=l+r.visibleWidth/2,Sct(r,n)}})}function oLr(e,t,r,i){return function(){for(var a=0,o=0;o0&&i.forceLayouts[t].alpha(0)}}function Sct(e,t){for(var r=[],i=[],n=0;nlse(y)?Hm.rgb(y.linkLineColor):y.rgb).style("stroke-opacity",y=>lse(y)?Hm.opacity(y.linkLineColor):y.alpha).style("fill",y=>y.rgb).style("fill-opacity",y=>y.alpha).style("stroke-width",y=>lse(y)?y.linkLineWidth:1).attr("d",cse()),c.style("opacity",function(){return e._context.staticPlot||o||s?1:0}).transition().ease(Ju.ease).duration(Ju.duration).style("opacity",1),c.exit().transition().ease(Ju.ease).duration(Ju.duration).style("opacity",0).remove();var h=u.selectAll("."+Ju.cn.sankeyNodeSet).data(BO,aD);h.enter().append("g").classed(Ju.cn.sankeyNodeSet,!0),h.style("cursor",function(y){switch(y.arrangement){case"fixed":return"default";case"perpendicular":return"ns-resize";default:return"move"}});var d=h.selectAll("."+Ju.cn.sankeyNode).data(function(y){var m=y.graph.nodes;return sLr(m),m.map(tLr.bind(null,y))},aD);d.enter().append("g").classed(Ju.cn.sankeyNode,!0).call(use).style("opacity",function(y){return(e._context.staticPlot||o)&&!y.partOfGroup?1:0}),d.call(_ct,u,n.nodeEvents).call(iLr,c,n,e),d.transition().ease(Ju.ease).duration(Ju.duration).call(use).style("opacity",function(y){return y.partOfGroup?0:1}),d.exit().transition().ease(Ju.ease).duration(Ju.duration).style("opacity",0).remove();var p=d.selectAll("."+Ju.cn.nodeRect).data(BO);p.enter().append("rect").classed(Ju.cn.nodeRect,!0).call(xct),p.style("stroke-width",function(y){return y.nodeLineWidth}).style("stroke",function(y){return Hm.rgb(y.nodeLineColor)}).style("stroke-opacity",function(y){return Hm.opacity(y.nodeLineColor)}).style("fill",y=>y.rgb).style("fill-opacity",y=>y.alpha),p.transition().ease(Ju.ease).duration(Ju.duration).call(xct);var v=d.selectAll("."+Ju.cn.nodeLabel).data(BO);v.enter().append("text").classed(Ju.cn.nodeLabel,!0).style("cursor","default"),v.attr("data-notex",1).text(function(y){return y.node.label}).each(function(y){var m=dT.select(this);$Fr.font(m,y.textFont),gct.convertToTspans(m,e)}).attr("text-anchor",function(y){return y.horizontal&&y.left!==y.reversed?"end":"start"}).attr("transform",function(y){var m=dT.select(this),w=gct.lineCount(m),_=y.textFont.size*((w-1)*ZFr-XFr),b=y.nodeLineWidth/2+KFr;if(!y.horizontal){var A=y.reversed?(y.visibleWidth+_)/2:(y.visibleWidth-_)/2,M=y.reversed?yct(90):"scale(-1,1)"+yct(90);return E3(A,b)+M}var x=b,A=(y.visibleHeight-_)/2;return y.left?x=-x:x+=y.visibleWidth,E3(x,A)+(y.reversed?"scale(-1,1)":"")}),v.transition().ease(Ju.ease).duration(Ju.duration)}});var pse=K((Zfi,qct)=>{"use strict";var id=No(),dse=Mt(),qO=dse.numberFormat,fLr=Cct(),pT=Uf(),cLr=ko(),Mx=(sse(),ar(ose)).cn,oD=dse._;function Dct(e){return e!==""}function vT(e,t){return e.filter(function(r){return r.key===t.traceId})}function Fct(e,t){id.select(e).select("path").style("fill-opacity",t),id.select(e).select("rect").style("fill-opacity",t)}function Lct(e){id.select(e).select("text.name").style("fill","black")}function Pct(e){return function(t){return e.node.sourceLinks.indexOf(t.link)!==-1||e.node.targetLinks.indexOf(t.link)!==-1}}function zct(e){return function(t){return t.node.sourceLinks.indexOf(e.link)!==-1||t.node.targetLinks.indexOf(e.link)!==-1}}function Ict(e,t,r){t&&r&&vT(r,t).selectAll("."+Mx.sankeyLink).filter(Pct(t)).call(Rct.bind(0,t,r,!1))}function hse(e,t,r){t&&r&&vT(r,t).selectAll("."+Mx.sankeyLink).filter(Pct(t)).call(Bct.bind(0,t,r,!1))}function Rct(e,t,r,i){i.style("fill",function(n){if(!n.link.concentrationscale)return n.hoverRgb}).style("fill-opacity",function(n){if(!n.link.concentrationscale)return n.hoverAlpha}),i.each(function(n){var a=n.link.label;a!==""&&vT(t,e).selectAll("."+Mx.sankeyLink).filter(function(o){return o.link.label===a}).style("fill",function(o){if(!o.link.concentrationscale)return o.hoverRgb}).style("fill-opacity",function(o){if(!o.link.concentrationscale)return o.hoverAlpha})}),r&&vT(t,e).selectAll("."+Mx.sankeyNode).filter(zct(e)).call(Ict)}function Bct(e,t,r,i){i.style("fill",function(n){return n.rgb}).style("fill-opacity",function(n){return n.alpha}),i.each(function(n){var a=n.link.label;a!==""&&vT(t,e).selectAll("."+Mx.sankeyLink).filter(function(o){return o.link.label===a}).style("fill",o=>o.rgb).style("fill-opacity",o=>o.alpha)}),r&&vT(t,e).selectAll(Mx.sankeyNode).filter(zct(e)).call(hse)}function rc(e,t){var r=e.hoverlabel||{},i=dse.nestedProperty(r,t).get();return Array.isArray(i)?!1:i}qct.exports=function(t,r){for(var i=t._fullLayout,n=i._paper,a=i._size,o=0;o"),color:rc(A,"bgcolor")||cLr.addOpacity(C.color,1),borderColor:rc(A,"bordercolor"),fontFamily:rc(A,"font.family"),fontSize:rc(A,"font.size"),fontColor:rc(A,"font.color"),fontWeight:rc(A,"font.weight"),fontStyle:rc(A,"font.style"),fontVariant:rc(A,"font.variant"),fontTextcase:rc(A,"font.textcase"),fontLineposition:rc(A,"font.lineposition"),fontShadow:rc(A,"font.shadow"),nameLength:rc(A,"namelength"),textAlign:rc(A,"align"),idealAlign:id.event.x"),color:rc(A,"bgcolor")||x.rgb,borderColor:rc(A,"bordercolor"),fontFamily:rc(A,"font.family"),fontSize:rc(A,"font.size"),fontColor:rc(A,"font.color"),fontWeight:rc(A,"font.weight"),fontStyle:rc(A,"font.style"),fontVariant:rc(A,"font.variant"),fontTextcase:rc(A,"font.textcase"),fontLineposition:rc(A,"font.lineposition"),fontShadow:rc(A,"font.shadow"),nameLength:rc(A,"namelength"),textAlign:rc(A,"align"),idealAlign:"left",hovertemplate:A.hovertemplate,hovertemplateLabels:D,eventData:[x.node]},{container:i._hoverlayer.node(),outerContainer:i._paper.node(),gd:t});Fct(I,.85),Lct(I)}}},b=function(M,x,A){t._fullLayout.hovermode!==!1&&(id.select(M).call(hse,x,A),x.node.trace.node.hoverinfo!=="skip"&&(x.node.fullData=x.node.trace,t.emit("plotly_unhover",{event:id.event,points:[x.node]})),pT.loneUnhover(i._hoverlayer.node()))};fLr(t,n,r,{width:a.w,height:a.h,margin:{t:a.t,r:a.r,b:a.b,l:a.l}},{linkEvents:{hover:u,follow:v,unhover:y,select:l},nodeEvents:{hover:w,follow:_,unhover:b,select:m}})}});var Oct=K(k3=>{"use strict";var hLr=Ef().overrideAll,dLr=Xh().getModuleCalcData,pLr=pse(),vLr=gg(),mLr=jv(),yLr=N0(),gLr=uh().prepSelect,vse=Mt(),xLr=Ho(),OO="sankey";k3.name=OO;k3.baseLayoutAttrOverrides=hLr({hoverlabel:vLr.hoverlabel},"plot","nested");k3.plot=function(e){var t=dLr(e.calcdata,OO)[0];pLr(e,t),k3.updateFx(e)};k3.clean=function(e,t,r,i){var n=i._has&&i._has(OO),a=t._has&&t._has(OO);n&&!a&&(i._paperdiv.selectAll(".sankey").remove(),i._paperdiv.selectAll(".bgsankey").remove())};k3.updateFx=function(e){for(var t=0;t{"use strict";Nct.exports=function(t,r){for(var i=t.cd,n=[],a=i[0].trace,o=a._sankey,s=o.graph.nodes,l=a.orientation==="v",u=a.direction==="reversed",f=0;f{"use strict";Uct.exports={attributes:rse(),supplyDefaults:Uft(),calc:$ft(),plot:pse(),moduleType:"trace",name:"sankey",basePlotModule:Oct(),selectPoints:Vct(),categories:["noOpacity"],meta:{}}});var jct=K((eci,Hct)=>{"use strict";Hct.exports=Gct()});var $ct=K(mT=>{"use strict";var Wct=yf();mT.name="indicator";mT.plot=function(e,t,r,i){Wct.plotBasePlot(mT.name,e,t,r,i)};mT.clean=function(e,t,r,i){Wct.cleanBasePlot(mT.name,e,t,r,i)}});var yse=K((rci,Qct)=>{"use strict";var Sx=Os().extendFlat,Xct=Os().extendDeep,_Lr=Ef().overrideAll,Zct=lf(),Kct=Nc(),wLr=kf().attributes,hc=Lh(),ALr=fu().templatedArray,NO=(GA(),ar(UA)),Yct=zf().descriptionOnlyNumbers,mse=Zct({editType:"plot",colorEditType:"plot"}),sD={color:{valType:"color",editType:"plot"},line:{color:{valType:"color",dflt:Kct.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"},Jct={valType:"info_array",items:[{valType:"number",editType:"plot"},{valType:"number",editType:"plot"}],editType:"plot"},TLr=ALr("step",Xct({},sD,{range:Jct}));Qct.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:wLr({name:"indicator",trace:!0,editType:"calc"}),title:{text:{valType:"string",editType:"plot"},align:{valType:"enumerated",values:["left","center","right"],editType:"plot"},font:Sx({},mse,{}),editType:"plot"},number:{valueformat:{valType:"string",dflt:"",editType:"plot",description:Yct("value")},font:Sx({},mse,{}),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:Yct("value")},increasing:{symbol:{valType:"string",dflt:NO.INCREASING.SYMBOL,editType:"plot"},color:{valType:"color",dflt:NO.INCREASING.COLOR,editType:"plot"},editType:"plot"},decreasing:{symbol:{valType:"string",dflt:NO.DECREASING.SYMBOL,editType:"plot"},color:{valType:"color",dflt:NO.DECREASING.COLOR,editType:"plot"},editType:"plot"},font:Sx({},mse,{}),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:Xct({},sD,{color:{dflt:"green"}}),bgcolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:Kct.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:1,editType:"plot"},axis:_Lr({range:Jct,visible:Sx({},hc.visible,{dflt:!0}),tickmode:hc.minor.tickmode,nticks:hc.nticks,tick0:hc.tick0,dtick:hc.dtick,tickvals:hc.tickvals,ticktext:hc.ticktext,ticks:Sx({},hc.ticks,{dflt:"outside"}),ticklen:hc.ticklen,tickwidth:hc.tickwidth,tickcolor:hc.tickcolor,ticklabelstep:hc.ticklabelstep,showticklabels:hc.showticklabels,labelalias:hc.labelalias,tickfont:Zct({}),tickangle:hc.tickangle,tickformat:hc.tickformat,tickformatstops:hc.tickformatstops,tickprefix:hc.tickprefix,showtickprefix:hc.showtickprefix,ticksuffix:hc.ticksuffix,showticksuffix:hc.showticksuffix,separatethousands:hc.separatethousands,exponentformat:hc.exponentformat,minexponent:hc.minexponent,showexponent:hc.showexponent,editType:"plot"},"plot"),steps:TLr,threshold:{line:{color:Sx({},sD.line.color,{}),width:Sx({},sD.line.width,{dflt:1}),editType:"plot"},thickness:Sx({},sD.thickness,{dflt:.85}),value:{valType:"number",editType:"calc",dflt:!1},editType:"plot"},editType:"plot"}}});var gse={};Fl(gse,{bulletNumberDomainSize:()=>SLr,bulletPadding:()=>ELr,defaultNumberFontSize:()=>MLr,horizontalPadding:()=>FLr,innerRadius:()=>kLr,titlePadding:()=>DLr,valueThickness:()=>CLr});var MLr,SLr,ELr,kLr,CLr,DLr,FLr,xse=ps(()=>{"use strict";MLr=80,SLr=.25,ELr=.025,kLr=.75,CLr=.5,DLr=5,FLr=10});var rht=K((ici,tht)=>{"use strict";var Wm=Mt(),UO=yse(),LLr=kf().defaults,eht=fu(),PLr=w0(),VO=(xse(),ar(gse)),zLr=ub(),ILr=Ew(),RLr=Pg(),BLr=zg();function qLr(e,t,r,i){function n(x,A){return Wm.coerce(e,t,UO,x,A)}LLr(t,i,n),n("mode"),t._hasNumber=t.mode.indexOf("number")!==-1,t._hasDelta=t.mode.indexOf("delta")!==-1,t._hasGauge=t.mode.indexOf("gauge")!==-1;var a=n("value");t._range=[0,typeof a=="number"?1.5*a:1];var o=new Array(2),s;if(t._hasNumber){n("number.valueformat");var l=Wm.extendFlat({},i.font);l.size=void 0,Wm.coerceFont(n,"number.font",l),t.number.font.size===void 0&&(t.number.font.size=VO.defaultNumberFontSize,o[0]=!0),n("number.prefix"),n("number.suffix"),s=t.number.font.size}var u;if(t._hasDelta){var f=Wm.extendFlat({},i.font);f.size=void 0,Wm.coerceFont(n,"delta.font",f),t.delta.font.size===void 0&&(t.delta.font.size=(t._hasNumber?.5:1)*(s||VO.defaultNumberFontSize),o[1]=!0),n("delta.reference",t.value),n("delta.relative"),n("delta.valueformat",t.delta.relative?"2%":""),n("delta.increasing.symbol"),n("delta.increasing.color"),n("delta.decreasing.symbol"),n("delta.decreasing.color"),n("delta.position"),n("delta.prefix"),n("delta.suffix"),u=t.delta.font.size}t._scaleNumbers=(!t._hasNumber||o[0])&&(!t._hasDelta||o[1])||!1;var c=Wm.extendFlat({},i.font);c.size=.25*(s||u||VO.defaultNumberFontSize),Wm.coerceFont(n,"title.font",c),n("title.text");var h,d,p,v;function y(x,A){return Wm.coerce(h,d,UO.gauge,x,A)}function m(x,A){return Wm.coerce(p,v,UO.gauge.axis,x,A)}if(t._hasGauge){h=e.gauge,h||(h={}),d=eht.newContainer(t,"gauge"),y("shape");var w=t._isBullet=t.gauge.shape==="bullet";w||n("title.align","center");var _=t._isAngular=t.gauge.shape==="angular";_||n("align","center"),y("bgcolor",i.paper_bgcolor),y("borderwidth"),y("bordercolor"),y("bar.color"),y("bar.line.color"),y("bar.line.width");var b=VO.valueThickness*(t.gauge.shape==="bullet"?.5:1);y("bar.thickness",b),PLr(h,d,{name:"steps",handleItemDefaults:OLr}),y("threshold.value"),y("threshold.thickness"),y("threshold.line.width"),y("threshold.line.color"),p={},h&&(p=h.axis||{}),v=eht.newContainer(d,"axis"),m("visible"),t._range=m("range",t._range);var M={font:i.font,noAutotickangles:!0,outerTicks:!0,noTicklabelshift:!0,noTicklabelstandoff:!0};zLr(p,v,m,"linear"),BLr(p,v,m,"linear",M),RLr(p,v,m,"linear",M),ILr(p,v,m,M)}else n("title.align","center"),n("align","center"),t._isAngular=t._isBullet=!1;t._length=null}function OLr(e,t){function r(i,n){return Wm.coerce(e,t,UO.gauge.steps,i,n)}r("color"),r("line.color"),r("line.width"),r("range"),r("thickness")}tht.exports={supplyDefaults:qLr}});var nht=K((nci,iht)=>{"use strict";function NLr(e,t){var r=[],i=t.value;typeof t._lastValue!="number"&&(t._lastValue=t.value);var n=t._lastValue,a=n;return t._hasDelta&&typeof t.delta.reference=="number"&&(a=t.delta.reference),r[0]={y:i,lastY:n,delta:i-a,relativeDelta:(i-a)/a},r}iht.exports={calc:NLr}});var fht=K((aci,uht)=>{"use strict";var P3=No(),VLr=(E_(),ar(S_)).interpolate,aht=(E_(),ar(S_)).interpolateNumber,Ex=Mt(),ULr=Ex.strScale,uD=Ex.strTranslate,GLr=Ex.rad2deg,HLr=(Hc(),ar(Gc)).MID_SHIFT,L3=Bs(),C3=(xse(),ar(gse)),HO=zu(),v0=Cs(),jLr=LM(),WLr=JP(),$Lr=Lh(),yT=ko(),bse={left:"start",center:"middle",right:"end"},D3={left:0,center:.5,right:1},oht=/[yzafpnµmkMGTPEZY]/;function fD(e){return e&&e.duration>0}uht.exports=function(t,r,i,n){var a=t._fullLayout,o;fD(i)&&n&&(o=n()),Ex.makeTraceGroups(a._indicatorlayer,r,"trace").each(function(s){var l=s[0],u=l.trace,f=P3.select(this),c=u._hasGauge,h=u._isAngular,d=u._isBullet,p=u.domain,v={w:a._size.w*(p.x[1]-p.x[0]),h:a._size.h*(p.y[1]-p.y[0]),l:a._size.l+a._size.w*p.x[0],r:a._size.r+a._size.w*(1-p.x[1]),t:a._size.t+a._size.h*(1-p.y[1]),b:a._size.b+a._size.h*p.y[0]},y=v.l+v.w/2,m=v.t+v.h/2,w=Math.min(v.w/2,v.h),_=C3.innerRadius*w,b,M,x,A=u.align||"center";if(M=m,!c)b=v.l+D3[A]*v.w,x=function(I){return sht(I,v.w,v.h)};else if(h&&(b=y,M=m+w/2,x=function(I){return JLr(I,.9*_)}),d){var T=C3.bulletPadding,g=1-C3.bulletNumberDomainSize+T;b=v.l+(g+(1-g)*D3[A])*v.w,x=function(I){return sht(I,(C3.bulletNumberDomainSize-T)*v.w,v.h)}}ZLr(t,f,s,{numbersX:b,numbersY:M,numbersScaler:x,transitionOpts:i,onComplete:o});var E,S;c&&(E={range:u.gauge.axis.range,color:u.gauge.bgcolor,line:{color:u.gauge.bordercolor,width:0},thickness:1},S={range:u.gauge.axis.range,color:"rgba(0, 0, 0, 0)",line:{color:u.gauge.bordercolor,width:u.gauge.borderwidth},thickness:1});var C=f.selectAll("g.angular").data(h?s:[]);C.exit().remove();var k=f.selectAll("g.angularaxis").data(h?s:[]);k.exit().remove(),h&&XLr(t,f,s,{radius:w,innerRadius:_,gauge:C,layer:k,size:v,gaugeBg:E,gaugeOutline:S,transitionOpts:i,onComplete:o});var D=f.selectAll("g.bullet").data(d?s:[]);D.exit().remove();var L=f.selectAll("g.bulletaxis").data(d?s:[]);L.exit().remove(),d&&YLr(t,f,s,{gauge:D,layer:L,size:v,gaugeBg:E,gaugeOutline:S,transitionOpts:i,onComplete:o});var P=f.selectAll("text.title").data(s);P.exit().remove(),P.enter().append("text").classed("title",!0),P.attr("text-anchor",function(){return d?bse.right:bse[u.title.align]}).text(u.title.text).call(L3.font,u.title.font).call(HO.convertToTspans,t),P.attr("transform",function(){var I=v.l+v.w*D3[u.title.align],F,z=C3.titlePadding,B=L3.bBox(P.node());if(c){if(h)if(u.gauge.axis.visible){var O=L3.bBox(k.node());F=O.top-z-B.bottom}else F=v.t+v.h/2-w/2-B.bottom-z;d&&(F=M-(B.top+B.bottom)/2,I=v.l-C3.bulletPadding*v.w)}else F=u._numbersTop-z-B.bottom;return uD(I,F)})})};function YLr(e,t,r,i){var n=r[0].trace,a=i.gauge,o=i.layer,s=i.gaugeBg,l=i.gaugeOutline,u=i.size,f=n.domain,c=i.transitionOpts,h=i.onComplete,d,p,v,y,m;a.enter().append("g").classed("bullet",!0),a.attr("transform",uD(u.l,u.t)),o.enter().append("g").classed("bulletaxis",!0).classed("crisp",!0),o.selectAll("g.xbulletaxistick,path,text").remove();var w=u.h,_=n.gauge.bar.thickness*w,b=f.x[0],M=f.x[0]+(f.x[1]-f.x[0])*(n._hasNumber||n._hasDelta?1-C3.bulletNumberDomainSize:1);d=lD(e,n.gauge.axis),d._id="xbulletaxis",d.domain=[b,M],d.setScale(),p=v0.calcTicks(d),v=v0.makeTransTickFn(d),y=v0.getTickSigns(d)[2],m=u.t+u.h,d.visible&&(v0.drawTicks(e,d,{vals:d.ticks==="inside"?v0.clipEnds(d,p):p,layer:o,path:v0.makeTickPath(d,m,y),transFn:v}),v0.drawLabels(e,d,{vals:p,layer:o,transFn:v,labelFns:v0.makeLabelFns(d,m)}));function x(k){k.attr("width",function(D){return Math.max(0,d.c2p(D.range[1])-d.c2p(D.range[0]))}).attr("x",function(D){return d.c2p(D.range[0])}).attr("y",function(D){return .5*(1-D.thickness)*w}).attr("height",function(D){return D.thickness*w})}var A=[s].concat(n.gauge.steps),T=a.selectAll("g.bg-bullet").data(A);T.enter().append("g").classed("bg-bullet",!0).append("rect"),T.select("rect").call(x).call(F3),T.exit().remove();var g=a.selectAll("g.value-bullet").data([n.gauge.bar]);g.enter().append("g").classed("value-bullet",!0).append("rect"),g.select("rect").attr("height",_).attr("y",(w-_)/2).call(F3),fD(c)?g.select("rect").transition().duration(c.duration).ease(c.easing).each("end",function(){h&&h()}).each("interrupt",function(){h&&h()}).attr("width",Math.max(0,d.c2p(Math.min(n.gauge.axis.range[1],r[0].y)))):g.select("rect").attr("width",typeof r[0].y=="number"?Math.max(0,d.c2p(Math.min(n.gauge.axis.range[1],r[0].y))):0),g.exit().remove();var E=r.filter(function(){return n.gauge.threshold.value||n.gauge.threshold.value===0}),S=a.selectAll("g.threshold-bullet").data(E);S.enter().append("g").classed("threshold-bullet",!0).append("line"),S.select("line").attr("x1",d.c2p(n.gauge.threshold.value)).attr("x2",d.c2p(n.gauge.threshold.value)).attr("y1",(1-n.gauge.threshold.thickness)/2*w).attr("y2",(1-(1-n.gauge.threshold.thickness)/2)*w).call(yT.stroke,n.gauge.threshold.line.color).style("stroke-width",n.gauge.threshold.line.width),S.exit().remove();var C=a.selectAll("g.gauge-outline").data([l]);C.enter().append("g").classed("gauge-outline",!0).append("rect"),C.select("rect").call(x).call(F3),C.exit().remove()}function XLr(e,t,r,i){var n=r[0].trace,a=i.size,o=i.radius,s=i.innerRadius,l=i.gaugeBg,u=i.gaugeOutline,f=[a.l+a.w/2,a.t+a.h/2+o/2],c=i.gauge,h=i.layer,d=i.transitionOpts,p=i.onComplete,v=Math.PI/2;function y(W){var X=n.gauge.axis.range[0],Z=n.gauge.axis.range[1],j=(W-X)/(Z-X)*Math.PI-v;return j<-v?-v:j>v?v:j}function m(W){return P3.svg.arc().innerRadius((s+o)/2-W/2*(o-s)).outerRadius((s+o)/2+W/2*(o-s)).startAngle(-v)}function w(W){W.attr("d",function(X){return m(X.thickness).startAngle(y(X.range[0])).endAngle(y(X.range[1]))()})}var _,b,M,x;c.enter().append("g").classed("angular",!0),c.attr("transform",uD(f[0],f[1])),h.enter().append("g").classed("angularaxis",!0).classed("crisp",!0),h.selectAll("g.xangularaxistick,path,text").remove(),_=lD(e,n.gauge.axis),_.type="linear",_.range=n.gauge.axis.range,_._id="xangularaxis",_.ticklabeloverflow="allow",_.setScale();var A=function(W){return(_.range[0]-W.x)/(_.range[1]-_.range[0])*Math.PI+Math.PI},T={},g=v0.makeLabelFns(_,0),E=g.labelStandoff;T.xFn=function(W){var X=A(W);return Math.cos(X)*E},T.yFn=function(W){var X=A(W),Z=Math.sin(X)>0?.2:1;return-Math.sin(X)*(E+W.fontSize*Z)+Math.abs(Math.cos(X))*(W.fontSize*HLr)},T.anchorFn=function(W){var X=A(W),Z=Math.cos(X);return Math.abs(Z)<.1?"middle":Z>0?"start":"end"},T.heightFn=function(W,X,Z){var j=A(W);return-.5*(1+Math.sin(j))*Z};var S=function(W){return uD(f[0]+o*Math.cos(W),f[1]-o*Math.sin(W))};M=function(W){return S(A(W))};var C=function(W){var X=A(W);return S(X)+"rotate("+-GLr(X)+")"};if(b=v0.calcTicks(_),x=v0.getTickSigns(_)[2],_.visible){x=_.ticks==="inside"?-1:1;var k=(_.linewidth||1)/2;v0.drawTicks(e,_,{vals:b,layer:h,path:"M"+x*k+",0h"+x*_.ticklen,transFn:C}),v0.drawLabels(e,_,{vals:b,layer:h,transFn:M,labelFns:T})}var D=[l].concat(n.gauge.steps),L=c.selectAll("g.bg-arc").data(D);L.enter().append("g").classed("bg-arc",!0).append("path"),L.select("path").call(w).call(F3),L.exit().remove();var P=m(n.gauge.bar.thickness),I=c.selectAll("g.value-arc").data([n.gauge.bar]);I.enter().append("g").classed("value-arc",!0).append("path");var F=I.select("path");fD(d)?(F.transition().duration(d.duration).ease(d.easing).each("end",function(){p&&p()}).each("interrupt",function(){p&&p()}).attrTween("d",KLr(P,y(r[0].lastY),y(r[0].y))),n._lastValue=r[0].y):F.attr("d",typeof r[0].y=="number"?P.endAngle(y(r[0].y)):"M0,0Z"),F.call(F3),I.exit().remove(),D=[];var z=n.gauge.threshold.value;(z||z===0)&&D.push({range:[z,z],color:n.gauge.threshold.color,line:{color:n.gauge.threshold.line.color,width:n.gauge.threshold.line.width},thickness:n.gauge.threshold.thickness});var B=c.selectAll("g.threshold-arc").data(D);B.enter().append("g").classed("threshold-arc",!0).append("path"),B.select("path").call(w).call(F3),B.exit().remove();var O=c.selectAll("g.gauge-outline").data([u]);O.enter().append("g").classed("gauge-outline",!0).append("path"),O.select("path").call(w).call(F3),O.exit().remove()}function ZLr(e,t,r,i){var n=r[0].trace,a=i.numbersX,o=i.numbersY,s=n.align||"center",l=bse[s],u=i.transitionOpts,f=i.onComplete,c=Ex.ensureSingle(t,"g","numbers"),h,d,p,v=[];n._hasNumber&&v.push("number"),n._hasDelta&&(v.push("delta"),n.delta.position==="left"&&v.reverse());var y=c.selectAll("text").data(v);y.enter().append("text"),y.attr("text-anchor",function(){return l}).attr("class",function(S){return S}).attr("x",null).attr("y",null).attr("dx",null).attr("dy",null),y.exit().remove();function m(S,C,k,D){if(S.match("s")&&k>=0!=D>=0&&!C(k).slice(-1).match(oht)&&!C(D).slice(-1).match(oht)){var L=S.slice().replace("s","f").replace(/\d+/,function(I){return parseInt(I)-1}),P=lD(e,{tickformat:L});return function(I){return Math.abs(I)<1?v0.tickText(P,I).text:C(I)}}else return C}function w(){var S=lD(e,{tickformat:n.number.valueformat},n._range);S.setScale(),v0.prepTicks(S);var C=function(I){return v0.tickText(S,I).text},k=n.number.suffix,D=n.number.prefix,L=c.select("text.number");function P(){var I=typeof r[0].y=="number"?D+C(r[0].y)+k:"-";L.text(I).call(L3.font,n.number.font).call(HO.convertToTspans,e)}return fD(u)?L.transition().duration(u.duration).ease(u.easing).each("end",function(){P(),f&&f()}).each("interrupt",function(){P(),f&&f()}).attrTween("text",function(){var I=P3.select(this),F=aht(r[0].lastY,r[0].y);n._lastValue=r[0].y;var z=m(n.number.valueformat,C,r[0].lastY,r[0].y);return function(B){I.text(D+z(F(B))+k)}}):P(),h=lht(D+C(r[0].y)+k,n.number.font,l,e),L}function _(){var S=lD(e,{tickformat:n.delta.valueformat},n._range);S.setScale(),v0.prepTicks(S);var C=function(B){return v0.tickText(S,B).text},k=n.delta.suffix,D=n.delta.prefix,L=function(B){var O=n.delta.relative?B.relativeDelta:B.delta;return O},P=function(B,O){return B===0||typeof B!="number"||isNaN(B)?"-":(B>0?n.delta.increasing.symbol:n.delta.decreasing.symbol)+D+O(B)+k},I=function(B){return B.delta>=0?n.delta.increasing.color:n.delta.decreasing.color};n._deltaLastValue===void 0&&(n._deltaLastValue=L(r[0]));var F=c.select("text.delta");F.call(L3.font,n.delta.font).call(yT.fill,I({delta:n._deltaLastValue}));function z(){F.text(P(L(r[0]),C)).call(yT.fill,I(r[0])).call(HO.convertToTspans,e)}return fD(u)?F.transition().duration(u.duration).ease(u.easing).tween("text",function(){var B=P3.select(this),O=L(r[0]),W=n._deltaLastValue,X=m(n.delta.valueformat,C,W,O),Z=aht(W,O);return n._deltaLastValue=O,function(j){B.text(P(Z(j),X)),B.call(yT.fill,I({delta:Z(j)}))}}).each("end",function(){z(),f&&f()}).each("interrupt",function(){z(),f&&f()}):z(),d=lht(P(L(r[0]),C),n.delta.font,l,e),F}var b=n.mode+n.align,M;if(n._hasDelta&&(M=_(),b+=n.delta.position+n.delta.font.size+n.delta.font.family+n.delta.valueformat,b+=n.delta.increasing.symbol+n.delta.decreasing.symbol,p=d),n._hasNumber&&(w(),b+=n.number.font.size+n.number.font.family+n.number.valueformat+n.number.suffix+n.number.prefix,p=h),n._hasDelta&&n._hasNumber){var x=[(h.left+h.right)/2,(h.top+h.bottom)/2],A=[(d.left+d.right)/2,(d.top+d.bottom)/2],T,g,E=.75*n.delta.font.size;n.delta.position==="left"&&(T=GO(n,"deltaPos",0,-1*(h.width*D3[n.align]+d.width*(1-D3[n.align])+E),b,Math.min),g=x[1]-A[1],p={width:h.width+d.width+E,height:Math.max(h.height,d.height),left:d.left+T,right:h.right,top:Math.min(h.top,d.top+g),bottom:Math.max(h.bottom,d.bottom+g)}),n.delta.position==="right"&&(T=GO(n,"deltaPos",0,h.width*(1-D3[n.align])+d.width*D3[n.align]+E,b,Math.max),g=x[1]-A[1],p={width:h.width+d.width+E,height:Math.max(h.height,d.height),left:h.left,right:d.right+T,top:Math.min(h.top,d.top+g),bottom:Math.max(h.bottom,d.bottom+g)}),n.delta.position==="bottom"&&(T=null,g=d.height,p={width:Math.max(h.width,d.width),height:h.height+d.height,left:Math.min(h.left,d.left),right:Math.max(h.right,d.right),top:h.bottom-h.height,bottom:h.bottom+d.height}),n.delta.position==="top"&&(T=null,g=h.top,p={width:Math.max(h.width,d.width),height:h.height+d.height,left:Math.min(h.left,d.left),right:Math.max(h.right,d.right),top:h.bottom-h.height-d.height,bottom:h.bottom}),M.attr({dx:T,dy:g})}(n._hasNumber||n._hasDelta)&&c.attr("transform",function(){var S=i.numbersScaler(p);b+=S[2];var C=GO(n,"numbersScale",1,S[0],b,Math.min),k;n._scaleNumbers||(C=1),n._isAngular?k=o-C*p.bottom:k=o-C*(p.top+p.bottom)/2,n._numbersTop=C*p.top+k;var D=p[s];s==="center"&&(D=(p.left+p.right)/2);var L=a-C*D;return L=GO(n,"numbersTranslate",0,L,b,Math.max),uD(L,k)+ULr(C)})}function F3(e){e.each(function(t){yT.stroke(P3.select(this),t.line.color)}).each(function(t){yT.fill(P3.select(this),t.color)}).style("stroke-width",function(t){return t.line.width})}function KLr(e,t,r){return function(){var i=VLr(t,r);return function(n){return e.endAngle(i(n))()}}}function lD(e,t,r){var i=e._fullLayout,n=Ex.extendFlat({type:"linear",ticks:"outside",range:r,showline:!0},t),a={type:"linear",_id:"x"+t._id},o={letter:"x",font:i.font,noAutotickangles:!0,noHover:!0,noTickson:!0};function s(l,u){return Ex.coerce(n,a,$Lr,l,u)}return jLr(n,a,s,o,i),WLr(n,a,s,o),a}function sht(e,t,r){var i=Math.min(t/e.width,r/e.height);return[i,e,t+"x"+r]}function JLr(e,t){var r=Math.sqrt(e.width/2*(e.width/2)+e.height*e.height),i=t/r;return[i,e,t]}function lht(e,t,r,i){var n=document.createElementNS("http://www.w3.org/2000/svg","text"),a=P3.select(n);return a.text(e).attr("x",0).attr("y",0).attr("text-anchor",r).attr("data-unformatted",e).call(HO.convertToTspans,i).call(L3.font,t),L3.bBox(a.node())}function GO(e,t,r,i,n,a){var o="_cache"+t;e[o]&&e[o].key===n||(e[o]={key:n,value:r});var s=Ex.aggNums(a,null,[e[o].value,i],2);return e[o].value=s,s}});var hht=K((oci,cht)=>{"use strict";cht.exports={moduleType:"trace",name:"indicator",basePlotModule:$ct(),categories:["svg","noOpacity","noHover"],animatable:!0,attributes:yse(),supplyDefaults:rht().supplyDefaults,calc:nht().calc,plot:fht(),meta:{}}});var pht=K((sci,dht)=>{"use strict";dht.exports=hht()});var _se=K((uci,ght)=>{"use strict";var vht=Xg(),jO=Os().extendFlat,QLr=Ef().overrideAll,mht=lf(),ePr=kf().attributes,yht=zf().descriptionOnlyNumbers,lci=ght.exports=QLr({domain:ePr({name:"table",trace:!0}),columnwidth:{valType:"number",arrayOk:!0,dflt:null},columnorder:{valType:"data_array"},header:{values:{valType:"data_array",dflt:[]},format:{valType:"data_array",dflt:[],description:yht("cell value")},prefix:{valType:"string",arrayOk:!0,dflt:null},suffix:{valType:"string",arrayOk:!0,dflt:null},height:{valType:"number",dflt:28},align:jO({},vht.align,{arrayOk:!0}),line:{width:{valType:"number",arrayOk:!0,dflt:1},color:{valType:"color",arrayOk:!0,dflt:"grey"}},fill:{color:{valType:"color",arrayOk:!0,dflt:"white"}},font:jO({},mht({arrayOk:!0}))},cells:{values:{valType:"data_array",dflt:[]},format:{valType:"data_array",dflt:[],description:yht("cell value")},prefix:{valType:"string",arrayOk:!0,dflt:null},suffix:{valType:"string",arrayOk:!0,dflt:null},height:{valType:"number",dflt:20},align:jO({},vht.align,{arrayOk:!0}),line:{width:{valType:"number",arrayOk:!0,dflt:1},color:{valType:"color",arrayOk:!0,dflt:"grey"}},fill:{color:{valType:"color",arrayOk:!0,dflt:"white"}},font:jO({},mht({arrayOk:!0}))}},"calc","from-root")});var bht=K((fci,xht)=>{"use strict";var wse=Mt(),tPr=_se(),rPr=kf().defaults;function iPr(e,t){for(var r=e.columnorder||[],i=e.header.values.length,n=r.slice(0,i),a=n.slice().sort(function(l,u){return l-u}),o=n.map(function(l){return a.indexOf(l)}),s=o.length;s{"use strict";var nPr=Dm().wrap;_ht.exports=function(){return nPr({})}});var Ase={};Fl(Ase,{cellPad:()=>aPr,cn:()=>SPr,columnExtentOffset:()=>oPr,columnTitleOffset:()=>sPr,emptyHeaderHeight:()=>lPr,goldenRatio:()=>fPr,latexCheck:()=>uPr,lineBreaker:()=>cPr,maxDimensionCount:()=>hPr,overdrag:()=>dPr,releaseTransitionDuration:()=>pPr,releaseTransitionEase:()=>vPr,scrollbarCaptureWidth:()=>mPr,scrollbarHideDelay:()=>yPr,scrollbarHideDuration:()=>gPr,scrollbarOffset:()=>xPr,scrollbarWidth:()=>bPr,transitionDuration:()=>_Pr,transitionEase:()=>wPr,uplift:()=>APr,wrapSpacer:()=>TPr,wrapSplitCharacter:()=>MPr});var aPr,oPr,sPr,lPr,uPr,fPr,cPr,hPr,dPr,pPr,vPr,mPr,yPr,gPr,xPr,bPr,_Pr,wPr,APr,TPr,MPr,SPr,Tse=ps(()=>{"use strict";aPr=8,oPr=10,sPr=28,lPr=16,uPr=/^\$.*\$$/,fPr=1.618,cPr="
",hPr=60,dPr=45,pPr=120,vPr="cubic-out",mPr=18,yPr=1e3,gPr=1e3,xPr=5,bPr=8,_Pr=100,wPr="cubic-out",APr=5,TPr=" ",MPr=" ",SPr={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"}});var Fht=K((hci,Dht)=>{"use strict";var Aht=(Tse(),ar(Ase)),Sse=Os().extendFlat,EPr=Gs(),kPr=$h().isTypedArray,WO=$h().isArrayOrTypedArray;Dht.exports=function(t,r){var i=Mse(r.cells.values),n=function(g){return g.slice(r.header.values.length,g.length)},a=Mse(r.header.values);a.length&&!a[0].length&&(a[0]=[""],a=Mse(a));var o=a.concat(n(i).map(function(){return Cht((a[0]||[""]).length)})),s=r.domain,l=Math.floor(t._fullLayout._size.w*(s.x[1]-s.x[0])),u=Math.floor(t._fullLayout._size.h*(s.y[1]-s.y[0])),f=r.header.values.length?o[0].map(function(){return r.header.height}):[Aht.emptyHeaderHeight],c=i.length?i[0].map(function(){return r.cells.height}):[],h=f.reduce(Tht,0),d=u-h,p=d+Aht.uplift,v=Eht(c,p),y=Eht(f,h),m=Sht(y,[]),w=Sht(v,m),_={},b=r.columnorder;WO(b)&&(b=Array.from(b)),b=b.concat(n(i.map(function(g,E){return E})));var M=o.map(function(g,E){var S=WO(r.columnwidth)?r.columnwidth[Math.min(E,r.columnwidth.length-1)]:r.columnwidth;return EPr(S)?Number(S):1}),x=M.reduce(Tht,0);M=M.map(function(g){return g/x*l});var A=Math.max(Ese(r.header.line.width),Ese(r.cells.line.width)),T={key:r.uid+t._context.staticPlot,translateX:s.x[0]*t._fullLayout._size.w,translateY:t._fullLayout._size.h*(1-s.y[1]),size:t._fullLayout._size,width:l,maxLineWidth:A,height:u,columnOrder:b,groupHeight:u,rowBlocks:w,headerRowBlocks:m,scrollY:0,cells:Sse({},r.cells,{values:i}),headerCells:Sse({},r.header,{values:o}),gdColumns:o.map(function(g){return g[0]}),gdColumnsOriginalOrder:o.map(function(g){return g[0]}),prevPages:[0,0],scrollbarState:{scrollbarScrollInProgress:!1},columns:o.map(function(g,E){var S=_[g];_[g]=(S||0)+1;var C=g+"__"+_[g];return{key:C,label:g,specIndex:E,xIndex:b[E],xScale:Mht,x:void 0,calcdata:void 0,columnWidth:M[E]}})};return T.columns.forEach(function(g){g.calcdata=T,g.x=Mht(g)}),T};function Ese(e){if(WO(e)){for(var t=0,r=0;r=t||u===e.length-1)&&(r[n]=o,o.key=l++,o.firstRowIndex=s,o.lastRowIndex=u,o=kht(),n+=a,s=u+1,a=0);return r}function kht(){return{firstRowIndex:null,lastRowIndex:null,rows:[]}}});var Lht=K(kse=>{"use strict";var $O=Os().extendFlat;kse.splitToPanels=function(e){var t=[0,0],r=$O({},e,{key:"header",type:"header",page:0,prevPages:t,currentRepaint:[null,null],dragHandle:!0,values:e.calcdata.headerCells.values[e.specIndex],rowBlocks:e.calcdata.headerRowBlocks,calcdata:$O({},e.calcdata,{cells:e.calcdata.headerCells})}),i=$O({},e,{key:"cells1",type:"cells",page:0,prevPages:t,currentRepaint:[null,null],dragHandle:!1,values:e.calcdata.cells.values[e.specIndex],rowBlocks:e.calcdata.rowBlocks}),n=$O({},e,{key:"cells2",type:"cells",page:1,prevPages:t,currentRepaint:[null,null],dragHandle:!1,values:e.calcdata.cells.values[e.specIndex],rowBlocks:e.calcdata.rowBlocks});return[i,n,r]};kse.splitToCells=function(e){var t=CPr(e);return(e.values||[]).slice(t[0],t[1]).map(function(r,i){var n=typeof r=="string"&&r.match(/[<$&> ]/)?"_keybuster_"+Math.random():"";return{keyWithinBlock:i+n,key:t[0]+i,column:e,calcdata:e.calcdata,page:e.page,rowBlocks:e.rowBlocks,value:r}})};function CPr(e){var t=e.rowBlocks[e.page],r=t?t.rows[0].rowIndex:0,i=t?r+t.rows.length:0;return[r,i]}});var qse=K((pci,Ght)=>{"use strict";var ts=(Tse(),ar(Ase)),Of=No(),Cse=Mt(),DPr=Cse.numberFormat,Qu=Dm(),Dse=Bs(),FPr=zu(),LPr=Mt().raiseToTop,Fv=Mt().strTranslate,PPr=Mt().cancelTransition,zPr=Fht(),Oht=Lht(),Pht=ko();Ght.exports=function(t,r){var i=!t._context.staticPlot,n=t._fullLayout._paper.selectAll("."+ts.cn.table).data(r.map(function(w){var _=Qu.unwrap(w),b=_.trace;return zPr(t,b)}),Qu.keyFun);n.exit().remove(),n.enter().append("g").classed(ts.cn.table,!0).attr("overflow","visible").style("box-sizing","content-box").style("position","absolute").style("left",0).style("overflow","visible").style("shape-rendering","crispEdges").style("pointer-events","all"),n.attr("width",function(w){return w.width+w.size.l+w.size.r}).attr("height",function(w){return w.height+w.size.t+w.size.b}).attr("transform",function(w){return Fv(w.translateX,w.translateY)});var a=n.selectAll("."+ts.cn.tableControlView).data(Qu.repeat,Qu.keyFun),o=a.enter().append("g").classed(ts.cn.tableControlView,!0).style("box-sizing","content-box");if(i){var s="onwheel"in document?"wheel":"mousewheel";o.on("mousemove",function(w){a.filter(function(_){return w===_}).call(cD,t)}).on(s,function(w){if(!w.scrollbarState.wheeling){w.scrollbarState.wheeling=!0;var _=w.scrollY+Of.event.deltaY,b=XO(t,a,null,_)(w);b||(Of.event.stopPropagation(),Of.event.preventDefault()),w.scrollbarState.wheeling=!1}}).call(cD,t,!0)}a.attr("transform",function(w){return Fv(w.size.l,w.size.t)});var l=a.selectAll("."+ts.cn.scrollBackground).data(Qu.repeat,Qu.keyFun);l.enter().append("rect").classed(ts.cn.scrollBackground,!0).attr("fill","none"),l.attr("width",function(w){return w.width}).attr("height",function(w){return w.height}),a.each(function(w){Dse.setClipUrl(Of.select(this),zht(t,w),t)});var u=a.selectAll("."+ts.cn.yColumn).data(function(w){return w.columns},Qu.keyFun);u.enter().append("g").classed(ts.cn.yColumn,!0),u.exit().remove(),u.attr("transform",function(w){return Fv(w.x,0)}),i&&u.call(Of.behavior.drag().origin(function(w){var _=Of.select(this);return Bht(_,w,-ts.uplift),LPr(this),w.calcdata.columnDragInProgress=!0,cD(a.filter(function(b){return w.calcdata.key===b.key}),t),w}).on("drag",function(w){var _=Of.select(this),b=function(A){return(w===A?Of.event.x:A.x)+A.columnWidth/2};w.x=Math.max(-ts.overdrag,Math.min(w.calcdata.width+ts.overdrag-w.columnWidth,Of.event.x));var M=Nht(u).filter(function(A){return A.calcdata.key===w.calcdata.key}),x=M.sort(function(A,T){return b(A)-b(T)});x.forEach(function(A,T){A.xIndex=T,A.x=w===A?A.x:A.xScale(A)}),u.filter(function(A){return w!==A}).transition().ease(ts.transitionEase).duration(ts.transitionDuration).attr("transform",function(A){return Fv(A.x,0)}),_.call(PPr).attr("transform",Fv(w.x,-ts.uplift))}).on("dragend",function(w){var _=Of.select(this),b=w.calcdata;w.x=w.xScale(w),w.calcdata.columnDragInProgress=!1,Bht(_,w,0),HPr(t,b,b.columns.map(function(M){return M.xIndex}))})),u.each(function(w){Dse.setClipUrl(Of.select(this),Iht(t,w),t)});var f=u.selectAll("."+ts.cn.columnBlock).data(Oht.splitToPanels,Qu.keyFun);f.enter().append("g").classed(ts.cn.columnBlock,!0).attr("id",function(w){return w.key}),f.style("cursor",function(w){return w.dragHandle?"ew-resize":w.calcdata.scrollbarState.barWiggleRoom?"ns-resize":"default"});var c=f.filter(jPr),h=f.filter(Ise);i&&h.call(Of.behavior.drag().origin(function(w){return Of.event.stopPropagation(),w}).on("drag",XO(t,a,-1)).on("dragend",function(){})),Fse(t,a,c,f),Fse(t,a,h,f);var d=a.selectAll("."+ts.cn.scrollAreaClip).data(Qu.repeat,Qu.keyFun);d.enter().append("clipPath").classed(ts.cn.scrollAreaClip,!0).attr("id",function(w){return zht(t,w)});var p=d.selectAll("."+ts.cn.scrollAreaClipRect).data(Qu.repeat,Qu.keyFun);p.enter().append("rect").classed(ts.cn.scrollAreaClipRect,!0).attr("x",-ts.overdrag).attr("y",-ts.uplift).attr("fill","none"),p.attr("width",function(w){return w.width+2*ts.overdrag}).attr("height",function(w){return w.height+ts.uplift});var v=u.selectAll("."+ts.cn.columnBoundary).data(Qu.repeat,Qu.keyFun);v.enter().append("g").classed(ts.cn.columnBoundary,!0);var y=u.selectAll("."+ts.cn.columnBoundaryClippath).data(Qu.repeat,Qu.keyFun);y.enter().append("clipPath").classed(ts.cn.columnBoundaryClippath,!0),y.attr("id",function(w){return Iht(t,w)});var m=y.selectAll("."+ts.cn.columnBoundaryRect).data(Qu.repeat,Qu.keyFun);m.enter().append("rect").classed(ts.cn.columnBoundaryRect,!0).attr("fill","none"),m.attr("width",function(w){return w.columnWidth+2*YO(w)}).attr("height",function(w){return w.calcdata.height+2*YO(w)+ts.uplift}).attr("x",function(w){return-YO(w)}).attr("y",function(w){return-YO(w)}),Rse(null,h,a)};function YO(e){return Math.ceil(e.calcdata.maxLineWidth/2)}function zht(e,t){return"clip"+e._fullLayout._uid+"_scrollAreaBottomClip_"+t.key}function Iht(e,t){return"clip"+e._fullLayout._uid+"_columnBoundaryClippath_"+t.calcdata.key+"_"+t.specIndex}function Nht(e){return[].concat.apply([],e.map(function(t){return t})).map(function(t){return t.__data__})}function cD(e,t,r){function i(u){var f=u.rowBlocks;return Pse(f,f.length-1)+(f.length?ZO(f[f.length-1],1/0):1)}var n=e.selectAll("."+ts.cn.scrollbarKit).data(Qu.repeat,Qu.keyFun);n.enter().append("g").classed(ts.cn.scrollbarKit,!0).style("shape-rendering","geometricPrecision"),n.each(function(u){var f=u.scrollbarState;f.totalHeight=i(u),f.scrollableAreaHeight=u.groupHeight-Lse(u),f.currentlyVisibleHeight=Math.min(f.totalHeight,f.scrollableAreaHeight),f.ratio=f.currentlyVisibleHeight/f.totalHeight,f.barLength=Math.max(f.ratio*f.currentlyVisibleHeight,ts.goldenRatio*ts.scrollbarWidth),f.barWiggleRoom=f.currentlyVisibleHeight-f.barLength,f.wiggleRoom=Math.max(0,f.totalHeight-f.scrollableAreaHeight),f.topY=f.barWiggleRoom===0?0:u.scrollY/f.wiggleRoom*f.barWiggleRoom,f.bottomY=f.topY+f.barLength,f.dragMultiplier=f.wiggleRoom/f.barWiggleRoom}).attr("transform",function(u){var f=u.width+ts.scrollbarWidth/2+ts.scrollbarOffset;return Fv(f,Lse(u))});var a=n.selectAll("."+ts.cn.scrollbar).data(Qu.repeat,Qu.keyFun);a.enter().append("g").classed(ts.cn.scrollbar,!0);var o=a.selectAll("."+ts.cn.scrollbarSlider).data(Qu.repeat,Qu.keyFun);o.enter().append("g").classed(ts.cn.scrollbarSlider,!0),o.attr("transform",function(u){return Fv(0,u.scrollbarState.topY||0)});var s=o.selectAll("."+ts.cn.scrollbarGlyph).data(Qu.repeat,Qu.keyFun);s.enter().append("line").classed(ts.cn.scrollbarGlyph,!0).attr("stroke","black").attr("stroke-width",ts.scrollbarWidth).attr("stroke-linecap","round").attr("y1",ts.scrollbarWidth/2),s.attr("y2",function(u){return u.scrollbarState.barLength-ts.scrollbarWidth/2}).attr("stroke-opacity",function(u){return u.columnDragInProgress||!u.scrollbarState.barWiggleRoom||r?0:.4}),s.transition().delay(0).duration(0),s.transition().delay(ts.scrollbarHideDelay).duration(ts.scrollbarHideDuration).attr("stroke-opacity",0);var l=a.selectAll("."+ts.cn.scrollbarCaptureZone).data(Qu.repeat,Qu.keyFun);l.enter().append("line").classed(ts.cn.scrollbarCaptureZone,!0).attr("stroke","white").attr("stroke-opacity",.01).attr("stroke-width",ts.scrollbarCaptureWidth).attr("stroke-linecap","butt").attr("y1",0).on("mousedown",function(u){var f=Of.event.y,c=this.getBoundingClientRect(),h=u.scrollbarState,d=f-c.top,p=Of.scale.linear().domain([0,h.scrollableAreaHeight]).range([0,h.totalHeight]).clamp(!0);h.topY<=d&&d<=h.bottomY||XO(t,e,null,p(d-h.barLength/2))(u)}).call(Of.behavior.drag().origin(function(u){return Of.event.stopPropagation(),u.scrollbarState.scrollbarScrollInProgress=!0,u}).on("drag",XO(t,e)).on("dragend",function(){})),l.attr("y2",function(u){return u.scrollbarState.scrollableAreaHeight}),t._context.staticPlot&&(s.remove(),l.remove())}function Fse(e,t,r,i){var n=IPr(r),a=RPr(n);NPr(a);var o=BPr(a);UPr(o);var s=OPr(a),l=qPr(s);VPr(l),Vht(l,t,i,e),Bse(a)}function IPr(e){var t=e.selectAll("."+ts.cn.columnCells).data(Qu.repeat,Qu.keyFun);return t.enter().append("g").classed(ts.cn.columnCells,!0),t.exit().remove(),t}function RPr(e){var t=e.selectAll("."+ts.cn.columnCell).data(Oht.splitToCells,function(r){return r.keyWithinBlock});return t.enter().append("g").classed(ts.cn.columnCell,!0),t.exit().remove(),t}function BPr(e){var t=e.selectAll("."+ts.cn.cellRect).data(Qu.repeat,function(r){return r.keyWithinBlock});return t.enter().append("rect").classed(ts.cn.cellRect,!0),t}function qPr(e){var t=e.selectAll("."+ts.cn.cellText).data(Qu.repeat,function(r){return r.keyWithinBlock});return t.enter().append("text").classed(ts.cn.cellText,!0).style("cursor",function(){return"auto"}).on("mousedown",function(){Of.event.stopPropagation()}),t}function OPr(e){var t=e.selectAll("."+ts.cn.cellTextHolder).data(Qu.repeat,function(r){return r.keyWithinBlock});return t.enter().append("g").classed(ts.cn.cellTextHolder,!0).style("shape-rendering","geometricPrecision"),t}function NPr(e){e.each(function(t,r){var i=t.calcdata.cells.font,n=t.column.specIndex,a={size:nd(i.size,n,r),color:nd(i.color,n,r),family:nd(i.family,n,r),weight:nd(i.weight,n,r),style:nd(i.style,n,r),variant:nd(i.variant,n,r),textcase:nd(i.textcase,n,r),lineposition:nd(i.lineposition,n,r),shadow:nd(i.shadow,n,r)};t.rowNumber=t.key,t.align=nd(t.calcdata.cells.align,n,r),t.cellBorderWidth=nd(t.calcdata.cells.line.width,n,r),t.font=a})}function VPr(e){e.each(function(t){Dse.font(Of.select(this),t.font)})}function UPr(e){e.attr("width",function(t){return t.column.columnWidth}).attr("stroke-width",function(t){return t.cellBorderWidth}).each(function(t){var r=Of.select(this);Pht.stroke(r,nd(t.calcdata.cells.line.color,t.column.specIndex,t.rowNumber)),Pht.fill(r,nd(t.calcdata.cells.fill.color,t.column.specIndex,t.rowNumber))})}function Vht(e,t,r,i){e.text(function(n){var a=n.column.specIndex,o=n.rowNumber,s=n.value,l=typeof s=="string",u=l&&s.match(/
/i),f=!l||u;n.mayHaveMarkup=l&&s.match(/[<&>]/);var c=GPr(s);n.latex=c;var h=c?"":nd(n.calcdata.cells.prefix,a,o)||"",d=c?"":nd(n.calcdata.cells.suffix,a,o)||"",p=c?null:nd(n.calcdata.cells.format,a,o)||null,v=h+(p?DPr(p)(n.value):n.value)+d,y;n.wrappingNeeded=!n.wrapped&&!f&&!c&&(y=Rht(v)),n.cellHeightMayIncrease=u||c||n.mayHaveMarkup||(y===void 0?Rht(v):y),n.needsConvertToTspans=n.mayHaveMarkup||n.wrappingNeeded||n.latex;var m;if(n.wrappingNeeded){var w=ts.wrapSplitCharacter===" "?v.replace(/n&&i.push(a),n+=l}return i}function Rse(e,t,r){var i=Nht(t)[0];if(i!==void 0){var n=i.rowBlocks,a=i.calcdata,o=Pse(n,n.length),s=i.calcdata.groupHeight-Lse(i),l=a.scrollY=Math.max(0,Math.min(o-s,a.scrollY)),u=WPr(n,l,s);u.length===1&&(u[0]===n.length-1?u.unshift(u[0]-1):u.push(u[0]+1)),u[0]%2&&u.reverse(),t.each(function(f,c){f.page=u[c],f.scrollY=l}),t.attr("transform",function(f){var c=Pse(f.rowBlocks,f.page)-f.scrollY;return Fv(0,c)}),e&&(qht(e,r,t,u,i.prevPages,i,0),qht(e,r,t,u,i.prevPages,i,1),cD(r,e))}}function XO(e,t,r,i){return function(a){var o=a.calcdata?a.calcdata:a,s=t.filter(function(c){return o.key===c.key}),l=r||o.scrollbarState.dragMultiplier,u=o.scrollY;o.scrollY=i===void 0?o.scrollY+l*Of.event.dy:i;var f=s.selectAll("."+ts.cn.yColumn).selectAll("."+ts.cn.columnBlock).filter(Ise);return Rse(e,f,s),o.scrollY===u}}function qht(e,t,r,i,n,a,o){var s=i[o]!==n[o];s&&(clearTimeout(a.currentRepaint[o]),a.currentRepaint[o]=setTimeout(function(){var l=r.filter(function(u,f){return f===o&&i[f]!==n[f]});Fse(e,t,l,r),n[o]=i[o]}))}function $Pr(e,t,r,i){return function(){var a=Of.select(t.parentNode);a.each(function(o){var s=o.fragments;a.selectAll("tspan.line").each(function(v,y){s[y].width=this.getComputedTextLength()});var l=s[s.length-1].width,u=s.slice(0,-1),f=[],c,h,d=0,p=o.column.columnWidth-2*ts.cellPad;for(o.value="";u.length;)c=u.shift(),h=c.width+l,d+h>p&&(o.value+=f.join(ts.wrapSpacer)+ts.lineBreaker,f=[],d=0),f.push(c.text),d+=h;d&&(o.value+=f.join(ts.wrapSpacer)),o.wrapped=!0}),a.selectAll("tspan.line").remove(),Vht(a.select("."+ts.cn.cellText),r,e,i),Of.select(t.parentNode.parentNode).call(Bse)}}function YPr(e,t,r,i,n){return function(){if(!n.settledY){var o=Of.select(t.parentNode),s=zse(n),l=n.key-s.firstRowIndex,u=s.rows[l].rowHeight,f=n.cellHeightMayIncrease?t.parentNode.getBoundingClientRect().height+2*ts.cellPad:u,c=Math.max(f,u),h=c-s.rows[l].rowHeight;h&&(s.rows[l].rowHeight=c,e.selectAll("."+ts.cn.columnCell).call(Bse),Rse(null,e.filter(Ise),0),cD(r,i,!0)),o.attr("transform",function(){var d=this,p=d.parentNode,v=p.getBoundingClientRect(),y=Of.select(d.parentNode).select("."+ts.cn.cellRect).node().getBoundingClientRect(),m=d.transform.baseVal.consolidate(),w=y.top-v.top+(m?m.matrix.f:ts.cellPad);return Fv(Uht(n,Of.select(d.parentNode).select("."+ts.cn.cellTextHolder).node().getBoundingClientRect().width),w)}),n.settledY=!0}}}function Uht(e,t){switch(e.align){case"left":return ts.cellPad;case"right":return e.column.columnWidth-(t||0)-ts.cellPad;case"center":return(e.column.columnWidth-(t||0))/2;default:return ts.cellPad}}function Bse(e){e.attr("transform",function(t){var r=t.rowBlocks[0].auxiliaryBlocks.reduce(function(o,s){return o+ZO(s,1/0)},0),i=zse(t),n=ZO(i,t.key),a=n+r;return Fv(0,a)}).selectAll("."+ts.cn.cellRect).attr("height",function(t){return ZPr(zse(t),t.key).rowHeight})}function Pse(e,t){for(var r=0,i=t-1;i>=0;i--)r+=XPr(e[i]);return r}function ZO(e,t){for(var r=0,i=0;i{"use strict";var KPr=Xh().getModuleCalcData,JPr=qse(),KO="table";JO.name=KO;JO.plot=function(e){var t=KPr(e.calcdata,KO)[0];t.length&&JPr(e,t)};JO.clean=function(e,t,r,i){var n=i._has&&i._has(KO),a=t._has&&t._has(KO);n&&!a&&i._paperdiv.selectAll(".table").remove()}});var Wht=K((mci,jht)=>{"use strict";jht.exports={attributes:_se(),supplyDefaults:bht(),calc:wht(),plot:qse(),moduleType:"trace",name:"table",basePlotModule:Hht(),categories:["noOpacity"],meta:{}}});var Yht=K((yci,$ht)=>{"use strict";$ht.exports=Wht()});var Qht=K((gci,Jht)=>{"use strict";var Xht=lf(),Zht=Nc(),Ose=Lh(),QPr=zf().descriptionWithDates,e8r=Ef().overrideAll,Kht=yh().dash,Nse=Os().extendFlat;Jht.exports={color:{valType:"color",editType:"calc"},smoothing:{valType:"number",dflt:1,min:0,max:1.3,editType:"calc"},title:{text:{valType:"string",dflt:"",editType:"calc"},font:Xht({editType:"calc"}),offset:{valType:"number",dflt:10,editType:"calc"},editType:"calc"},type:{valType:"enumerated",values:["-","linear","date","category"],dflt:"-",editType:"calc"},autotypenumbers:Ose.autotypenumbers,autorange:{valType:"enumerated",values:[!0,!1,"reversed"],dflt:!0,editType:"calc"},rangemode:{valType:"enumerated",values:["normal","tozero","nonnegative"],dflt:"normal",editType:"calc"},range:{valType:"info_array",editType:"calc",items:[{valType:"any",editType:"calc"},{valType:"any",editType:"calc"}]},fixedrange:{valType:"boolean",dflt:!1,editType:"calc"},cheatertype:{valType:"enumerated",values:["index","value"],dflt:"value",editType:"calc"},tickmode:{valType:"enumerated",values:["linear","array"],dflt:"array",editType:"calc"},nticks:{valType:"integer",min:0,dflt:0,editType:"calc"},tickvals:{valType:"data_array",editType:"calc"},ticktext:{valType:"data_array",editType:"calc"},showticklabels:{valType:"enumerated",values:["start","end","both","none"],dflt:"start",editType:"calc"},labelalias:Nse({},Ose.labelalias,{editType:"calc"}),tickfont:Xht({editType:"calc"}),tickangle:{valType:"angle",dflt:"auto",editType:"calc"},tickprefix:{valType:"string",dflt:"",editType:"calc"},showtickprefix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"calc"},ticksuffix:{valType:"string",dflt:"",editType:"calc"},showticksuffix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"calc"},showexponent:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"calc"},exponentformat:{valType:"enumerated",values:["none","e","E","power","SI","B","SI extended"],dflt:"B",editType:"calc"},minexponent:{valType:"number",dflt:3,min:0,editType:"calc"},separatethousands:{valType:"boolean",dflt:!1,editType:"calc"},tickformat:{valType:"string",dflt:"",editType:"calc",description:QPr("tick label")},tickformatstops:e8r(Ose.tickformatstops,"calc","from-root"),categoryorder:{valType:"enumerated",values:["trace","category ascending","category descending","array"],dflt:"trace",editType:"calc"},categoryarray:{valType:"data_array",editType:"calc"},labelpadding:{valType:"integer",dflt:10,editType:"calc"},labelprefix:{valType:"string",editType:"calc"},labelsuffix:{valType:"string",dflt:"",editType:"calc"},showline:{valType:"boolean",dflt:!1,editType:"calc"},linecolor:{valType:"color",dflt:Zht.defaultLine,editType:"calc"},linewidth:{valType:"number",min:0,dflt:1,editType:"calc"},gridcolor:{valType:"color",editType:"calc"},gridwidth:{valType:"number",min:0,dflt:1,editType:"calc"},griddash:Nse({},Kht,{editType:"calc"}),showgrid:{valType:"boolean",dflt:!0,editType:"calc"},minorgridcount:{valType:"integer",min:0,dflt:0,editType:"calc"},minorgridwidth:{valType:"number",min:0,dflt:1,editType:"calc"},minorgriddash:Nse({},Kht,{editType:"calc"}),minorgridcolor:{valType:"color",dflt:Zht.lightLine,editType:"calc"},startline:{valType:"boolean",editType:"calc"},startlinecolor:{valType:"color",editType:"calc"},startlinewidth:{valType:"number",dflt:1,editType:"calc"},endline:{valType:"boolean",editType:"calc"},endlinewidth:{valType:"number",dflt:1,editType:"calc"},endlinecolor:{valType:"color",editType:"calc"},tick0:{valType:"number",min:0,dflt:0,editType:"calc"},dtick:{valType:"number",min:0,dflt:1,editType:"calc"},arraytick0:{valType:"integer",min:0,dflt:0,editType:"calc"},arraydtick:{valType:"integer",min:1,dflt:1,editType:"calc"},editType:"calc"}});var eN=K((xci,r0t)=>{"use strict";var t8r=lf(),e0t=Qht(),t0t=Nc(),QO=t8r({editType:"calc"}),r8r=Zf().zorder;QO.family.dflt='"Open Sans", verdana, arial, sans-serif';QO.size.dflt=12;QO.color.dflt=t0t.defaultLine;r0t.exports={carpet:{valType:"string",editType:"calc"},x:{valType:"data_array",editType:"calc+clearAxisTypes"},y:{valType:"data_array",editType:"calc+clearAxisTypes"},a:{valType:"data_array",editType:"calc"},a0:{valType:"number",dflt:0,editType:"calc"},da:{valType:"number",dflt:1,editType:"calc"},b:{valType:"data_array",editType:"calc"},b0:{valType:"number",dflt:0,editType:"calc"},db:{valType:"number",dflt:1,editType:"calc"},cheaterslope:{valType:"number",dflt:1,editType:"calc"},aaxis:e0t,baxis:e0t,font:QO,color:{valType:"color",dflt:t0t.defaultLine,editType:"plot"},zorder:r8r}});var a0t=K((bci,n0t)=>{"use strict";var i0t=Mt().isArray1D;n0t.exports=function(t,r,i){var n=i("x"),a=n&&n.length,o=i("y"),s=o&&o.length;if(!a&&!s)return!1;if(r._cheater=!n,(!a||i0t(n))&&(!s||i0t(o))){var l=a?n.length:1/0;s&&(l=Math.min(l,o.length)),r.a&&r.a.length&&(l=Math.min(l,r.a.length)),r.b&&r.b.length&&(l=Math.min(l,r.b.length)),r._length=l}else r._length=null;return!0}});var l0t=K((_ci,s0t)=>{"use strict";var i8r=eN(),o0t=ko().addOpacity,n8r=Ho(),hD=Mt(),a8r=ub(),o8r=Pg(),s8r=zg(),l8r=XP(),u8r=G1(),f8r=Pw();s0t.exports=function(t,r,i){var n=i.letter,a=i.font||{},o=i8r[n+"axis"];function s(g,E){return hD.coerce(t,r,o,g,E)}function l(g,E){return hD.coerce2(t,r,o,g,E)}i.name&&(r._name=i.name,r._id=i.name),s("autotypenumbers",i.autotypenumbersDflt);var u=s("type");if(u==="-"&&(i.data&&c8r(r,i.data),r.type==="-"?r.type="linear":u=t.type=r.type),s("smoothing"),s("cheatertype"),s("showticklabels"),s("labelprefix",n+" = "),s("labelsuffix"),s("showtickprefix"),s("showticksuffix"),s("separatethousands"),s("tickformat"),s("exponentformat"),s("minexponent"),s("showexponent"),s("categoryorder"),s("tickmode"),s("tickvals"),s("ticktext"),s("tick0"),s("dtick"),r.tickmode==="array"&&(s("arraytick0"),s("arraydtick")),s("labelpadding"),r._hovertitle=n,u==="date"){var f=n8r.getComponentMethod("calendars","handleDefaults");f(t,r,"calendar",i.calendar)}u8r(r,i.fullLayout),r.c2p=hD.identity;var c=s("color",i.dfltColor),h=c===t.color?c:a.color,d=s("title.text");d&&(hD.coerceFont(s,"title.font",a,{overrideDflt:{size:hD.bigFont(a.size),color:h}}),s("title.offset")),s("tickangle");var p=s("autorange",!r.isValidRange(t.range));p&&s("rangemode"),s("range"),r.cleanRange(),s("fixedrange"),a8r(t,r,s,u),s8r(t,r,s,u,i),o8r(t,r,s,u,i),l8r(t,r,s,{data:i.data,dataAttr:n});var v=s("gridcolor",o0t(c,.3)),y=l("gridwidth"),m=l("griddash"),w=s("showgrid");w||(delete r.gridcolor,delete r.gridwidth,delete r.griddash);var _=l("startlinecolor",c),b=l("startlinewidth",y),M=s("startline",r.showgrid||!!_||!!b);M||(delete r.startlinecolor,delete r.startlinewidth);var x=l("endlinecolor",c),A=l("endlinewidth",y),T=s("endline",r.showgrid||!!x||!!A);return T||(delete r.endlinecolor,delete r.endlinewidth),w?(s("minorgridcount"),s("minorgridwidth",y),s("minorgriddash",m),s("minorgridcolor",o0t(v,.06)),r.minorgridcount||(delete r.minorgridwidth,delete r.minorgriddash,delete r.minorgridcolor)):(delete r.gridcolor,delete r.gridwidth,delete r.griddash),r.showticklabels==="none"&&(delete r.tickfont,delete r.tickangle,delete r.showexponent,delete r.exponentformat,delete r.minexponent,delete r.tickformat,delete r.showticksuffix,delete r.showtickprefix),r.showticksuffix||delete r.ticksuffix,r.showtickprefix||delete r.tickprefix,s("tickmode"),r};function c8r(e,t){if(e.type==="-"){var r=e._id,i=r.charAt(0),n=i+"calendar",a=e[n];e.type=f8r(t,a,{autotypenumbers:e.autotypenumbers})}}});var f0t=K((wci,u0t)=>{"use strict";var h8r=l0t(),d8r=fu();u0t.exports=function(t,r,i,n,a){var o=n("a");o||(n("da"),n("a0"));var s=n("b");s||(n("db"),n("b0")),p8r(t,r,i,a)};function p8r(e,t,r,i){var n=["aaxis","baxis"];n.forEach(function(a){var o=a.charAt(0),s=e[a]||{},l=d8r.newContainer(t,a),u={noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0,noTicklabelstep:!0,tickfont:"x",id:o+"axis",letter:o,font:t.font,name:a,data:e[o],calendar:t.calendar,dfltColor:i,bgColor:r.paper_bgcolor,autotypenumbersDflt:r.autotypenumbers,fullLayout:r};h8r(s,l,u),l._categories=l._categories||[],!e[a]&&s.type!=="-"&&(e[a]={type:s.type})})}});var d0t=K((Aci,h0t)=>{"use strict";var c0t=Mt(),v8r=a0t(),m8r=f0t(),y8r=eN(),g8r=Nc();h0t.exports=function(t,r,i,n){function a(l,u){return c0t.coerce(t,r,y8r,l,u)}r._clipPathId="clip"+r.uid+"carpet";var o=a("color",g8r.defaultLine);if(c0t.coerceFont(a,"font",n.font),a("carpet"),m8r(t,r,n,a,o),!r.a||!r.b){r.visible=!1;return}r.a.length<3&&(r.aaxis.smoothing=0),r.b.length<3&&(r.baxis.smoothing=0);var s=v8r(t,r,a);s||(r.visible=!1),r._cheater&&a("cheaterslope"),a("zorder")}});var Vse=K((Tci,p0t)=>{"use strict";var x8r=Mt().isArrayOrTypedArray;p0t.exports=function(t,r,i){var n;for(x8r(t)?t.length>r.length&&(t=t.slice(0,r.length)):t=[],n=0;n{"use strict";v0t.exports=function(t,r,i){if(t.length===0)return"";var n,a=[],o=i?3:1;for(n=0;n{"use strict";m0t.exports=function(t,r,i,n,a,o){var s=a[0]*t.dpdx(r),l=a[1]*t.dpdy(i),u=1,f=1;if(o){var c=Math.sqrt(a[0]*a[0]+a[1]*a[1]),h=Math.sqrt(o[0]*o[0]+o[1]*o[1]),d=(a[0]*o[0]+a[1]*o[1])/c/h;f=Math.max(0,d)}var p=Math.atan2(l,s)*180/Math.PI;return p<-90?(p+=180,u=-u):p>90&&(p-=180,u=-u),{angle:p,flip:u,p:t.c2p(n,r,i),offsetMultplier:f}}});var M0t=K((Eci,T0t)=>{"use strict";var nN=No(),tN=Bs(),rN=Vse(),b0t=Use(),dD=y0t(),Gse=zu(),Wd=Mt(),_0t=Wd.strRotate,iN=Wd.strTranslate,w0t=(Hc(),ar(Gc));T0t.exports=function(t,r,i,n){var a=t._context.staticPlot,o=r.xaxis,s=r.yaxis,l=t._fullLayout,u=l._clips;Wd.makeTraceGroups(n,i,"trace").each(function(f){var c=nN.select(this),h=f[0],d=h.trace,p=d.aaxis,v=d.baxis,y=Wd.ensureSingle(c,"g","minorlayer"),m=Wd.ensureSingle(c,"g","majorlayer"),w=Wd.ensureSingle(c,"g","boundarylayer"),_=Wd.ensureSingle(c,"g","labellayer");c.style("opacity",d.opacity),gT(o,s,m,p,"a",p._gridlines,!0,a),gT(o,s,m,v,"b",v._gridlines,!0,a),gT(o,s,y,p,"a",p._minorgridlines,!0,a),gT(o,s,y,v,"b",v._minorgridlines,!0,a),gT(o,s,w,p,"a-boundary",p._boundarylines,a),gT(o,s,w,v,"b-boundary",v._boundarylines,a);var b=g0t(t,o,s,d,h,_,p._labels,"a-label"),M=g0t(t,o,s,d,h,_,v._labels,"b-label");_8r(t,_,d,h,o,s,b,M),b8r(d,h,u,o,s)})};function b8r(e,t,r,i,n){var a,o,s,l,u=r.select("#"+e._clipPathId);u.size()||(u=r.append("clipPath").classed("carpetclip",!0));var f=Wd.ensureSingle(u,"path","carpetboundary"),c=t.clipsegments,h=[];for(l=0;l0?"start":"end","data-notex":1}).call(tN.font,c.font).text(c.text).call(Gse.convertToTspans,e),m=tN.bBox(this);y.attr("transform",iN(d.p[0],d.p[1])+_0t(d.angle)+iN(c.axis.labelpadding*v,m.height*.3)),u=Math.max(u,m.width+c.axis.labelpadding)}),l.exit().remove(),f.maxExtent=u,f}function _8r(e,t,r,i,n,a,o,s){var l,u,f,c,h=Wd.aggNums(Math.min,null,r.a),d=Wd.aggNums(Math.max,null,r.a),p=Wd.aggNums(Math.min,null,r.b),v=Wd.aggNums(Math.max,null,r.b);l=.5*(h+d),u=p,f=r.ab2xy(l,u,!0),c=r.dxyda_rough(l,u),o.angle===void 0&&Wd.extendFlat(o,dD(r,n,a,f,r.dxydb_rough(l,u))),x0t(e,t,r,i,f,c,r.aaxis,n,a,o,"a-title"),l=h,u=.5*(p+v),f=r.ab2xy(l,u,!0),c=r.dxydb_rough(l,u),s.angle===void 0&&Wd.extendFlat(s,dD(r,n,a,f,r.dxyda_rough(l,u))),x0t(e,t,r,i,f,c,r.baxis,n,a,s,"b-title")}var A0t=w0t.LINE_SPACING,w8r=(1-w0t.MID_SHIFT)/A0t+1;function x0t(e,t,r,i,n,a,o,s,l,u,f){var c=[];o.title.text&&c.push(o.title.text);var h=t.selectAll("text."+f).data(c),d=u.maxExtent;h.enter().append("text").classed(f,!0),h.each(function(){var p=dD(r,s,l,n,a);["start","both"].indexOf(o.showticklabels)===-1&&(d=0);var v=o.title.font.size;d+=v+o.title.offset;var y=u.angle+(u.flip<0?180:0),m=(y-p.angle+450)%360,w=m>90&&m<270,_=nN.select(this);_.text(o.title.text).call(Gse.convertToTspans,e),w&&(d=(-Gse.lineCount(_)+w8r)*A0t*v-d),_.attr("transform",iN(p.p[0],p.p[1])+_0t(p.angle)+iN(0,d)).attr("text-anchor","middle").call(tN.font,o.title.font)}),h.exit().remove()}});var E0t=K((kci,S0t)=>{"use strict";var aN=Mt().isArrayOrTypedArray;S0t.exports=function(e,t,r){var i,n,a,o,s,l,u=[],f=aN(e)?e.length:e,c=aN(t)?t.length:t,h=aN(e)?e:null,d=aN(t)?t:null;h&&(a=(h.length-1)/(h[h.length-1]-h[0])/(f-1)),d&&(o=(d.length-1)/(d[d.length-1]-d[0])/(c-1));var p,v=1/0,y=-1/0;for(n=0;n{"use strict";var k0t=Mt().isArrayOrTypedArray;D0t.exports=function(e){return C0t(e,0)};function C0t(e,t){if(!k0t(e)||t>=10)return null;for(var r=1/0,i=-1/0,n=e.length,a=0;a{"use strict";var A8r=Cs(),kx=Os().extendFlat;L0t.exports=function(t,r,i){var n,a,o,s,l,u,f,c,h,d,p,v,y,m,w=t["_"+r],_=t[r+"axis"],b=_._gridlines=[],M=_._minorgridlines=[],x=_._boundarylines=[],A=t["_"+i],T=t[i+"axis"];_.tickmode==="array"&&(_.tickvals=w.slice());var g=t._xctrl,E=t._yctrl,S=g[0].length,C=g.length,k=t._a.length,D=t._b.length;A8r.prepTicks(_),_.tickmode==="array"&&delete _.tickvals;var L=_.smoothing?3:1;function P(F){var z,B,O,W,X,Z,j,q,Q,N,V,J,H=[],$=[],te={};if(r==="b")for(B=t.b2j(F),O=Math.floor(Math.max(0,Math.min(D-2,B))),W=B-O,te.length=D,te.crossLength=k,te.xy=function(ie){return t.evalxy([],ie,B)},te.dxy=function(ie,de){return t.dxydi([],ie,O,de,W)},z=0;z0&&(Q=t.dxydi([],z-1,O,0,W),H.push(X[0]+Q[0]/3),$.push(X[1]+Q[1]/3),N=t.dxydi([],z-1,O,1,W),H.push(q[0]-N[0]/3),$.push(q[1]-N[1]/3)),H.push(q[0]),$.push(q[1]),X=q;else for(z=t.a2i(F),Z=Math.floor(Math.max(0,Math.min(k-2,z))),j=z-Z,te.length=k,te.crossLength=D,te.xy=function(ie){return t.evalxy([],z,ie)},te.dxy=function(ie,de){return t.dxydj([],Z,ie,j,de)},B=0;B0&&(V=t.dxydj([],Z,B-1,j,0),H.push(X[0]+V[0]/3),$.push(X[1]+V[1]/3),J=t.dxydj([],Z,B-1,j,1),H.push(q[0]-J[0]/3),$.push(q[1]-J[1]/3)),H.push(q[0]),$.push(q[1]),X=q;return te.axisLetter=r,te.axis=_,te.crossAxis=T,te.value=F,te.constvar=i,te.index=c,te.x=H,te.y=$,te.smoothing=T.smoothing,te}function I(F){var z,B,O,W,X,Z=[],j=[],q={};if(q.length=w.length,q.crossLength=A.length,r==="b")for(O=Math.max(0,Math.min(D-2,F)),X=Math.min(1,Math.max(0,F-O)),q.xy=function(Q){return t.evalxy([],Q,F)},q.dxy=function(Q,N){return t.dxydi([],Q,O,N,X)},z=0;zw.length-1)&&b.push(kx(I(a),{color:_.gridcolor,width:_.gridwidth,dash:_.griddash}));for(c=u;cw.length-1)&&!(p<0||p>w.length-1))for(v=w[o],y=w[p],n=0;n<_.minorgridcount;n++)m=p-o,!(m<=0)&&(d=v+(y-v)*(n+1)/(_.minorgridcount+1)*(_.arraydtick/m),!(dw[w.length-1])&&M.push(kx(P(d),{color:_.minorgridcolor,width:_.minorgridwidth,dash:_.minorgriddash})));_.startline&&x.push(kx(I(0),{color:_.startlinecolor,width:_.startlinewidth})),_.endline&&x.push(kx(I(w.length-1),{color:_.endlinecolor,width:_.endlinewidth}))}else{for(s=5e-15,l=[Math.floor((w[w.length-1]-_.tick0)/_.dtick*(1+s)),Math.ceil((w[0]-_.tick0)/_.dtick/(1+s))].sort(function(F,z){return F-z}),u=l[0],f=l[1],c=u;c<=f;c++)h=_.tick0+_.dtick*c,b.push(kx(P(h),{color:_.gridcolor,width:_.gridwidth,dash:_.griddash}));for(c=u-1;cw[w.length-1])&&M.push(kx(P(d),{color:_.minorgridcolor,width:_.minorgridwidth,dash:_.minorgriddash}));_.startline&&x.push(kx(P(w[0]),{color:_.startlinecolor,width:_.startlinewidth})),_.endline&&x.push(kx(P(w[w.length-1]),{color:_.endlinecolor,width:_.endlinewidth}))}}});var B0t=K((Fci,R0t)=>{"use strict";var z0t=Cs(),I0t=Os().extendFlat;R0t.exports=function(t,r){var i,n,a,o,s,l=r._labels=[],u=r._gridlines;for(i=0;i{"use strict";q0t.exports=function(t,r,i,n){var a,o,s,l=[],u=!!i.smoothing,f=!!n.smoothing,c=t[0].length-1,h=t.length-1;for(a=0,o=[],s=[];a<=c;a++)o[a]=t[0][a],s[a]=r[0][a];for(l.push({x:o,y:s,bicubic:u}),a=0,o=[],s=[];a<=h;a++)o[a]=t[a][c],s[a]=r[a][c];for(l.push({x:o,y:s,bicubic:f}),a=c,o=[],s=[];a>=0;a--)o[c-a]=t[h][a],s[c-a]=r[h][a];for(l.push({x:o,y:s,bicubic:u}),a=h,o=[],s=[];a>=0;a--)o[h-a]=t[a][0],s[h-a]=r[a][0];return l.push({x:o,y:s,bicubic:f}),l}});var V0t=K((Pci,N0t)=>{"use strict";var T8r=Mt();N0t.exports=function(t,r,i){var n,a,o,s=[],l=[],u=t[0].length,f=t.length;function c(O,W){var X=0,Z,j=0;return O>0&&(Z=t[W][O-1])!==void 0&&(j++,X+=Z),O0&&(Z=t[W-1][O])!==void 0&&(j++,X+=Z),W0&&a0&&nT);return T8r.log("Smoother converged to",g,"after",S,"iterations"),t}});var U0t={};Fl(U0t,{RELATIVE_CULL_TOLERANCE:()=>M8r});var M8r,G0t=ps(()=>{"use strict";M8r=1e-6});var W0t=K((zci,j0t)=>{"use strict";var H0t=.5;j0t.exports=function(t,r,i,n){var a=t[0]-r[0],o=t[1]-r[1],s=i[0]-r[0],l=i[1]-r[1],u=Math.pow(a*a+o*o,H0t/2),f=Math.pow(s*s+l*l,H0t/2),c=(f*f*a-u*u*s)*n,h=(f*f*o-u*u*l)*n,d=f*(u+f)*3,p=u*(u+f)*3;return[[r[0]+(d&&c/d),r[1]+(d&&h/d)],[r[0]-(p&&c/p),r[1]-(p&&h/p)]]}});var Y0t=K((Ici,$0t)=>{"use strict";var Hse=W0t(),oN=Mt().ensureArray;function xT(e,t,r){var i=-.5*r[0]+1.5*t[0],n=-.5*r[1]+1.5*t[1];return[(2*i+e[0])/3,(2*n+e[1])/3]}$0t.exports=function(t,r,i,n,a,o){var s,l,u,f,c,h,d,p,v,y,m=i[0].length,w=i.length,_=a?3*m-2:m,b=o?3*w-2:w;for(t=oN(t,b),r=oN(r,b),u=0;u{"use strict";X0t.exports=function(e,t,r,i,n){var a=t-2,o=r-2;return i&&n?function(s,l,u){s||(s=[]);var f,c,h,d,p,v,y=Math.max(0,Math.min(Math.floor(l),a)),m=Math.max(0,Math.min(Math.floor(u),o)),w=Math.max(0,Math.min(1,l-y)),_=Math.max(0,Math.min(1,u-m));y*=3,m*=3;var b=w*w,M=b*w,x=1-w,A=x*x,T=A*x,g=_*_,E=g*_,S=1-_,C=S*S,k=C*S;for(v=0;v{"use strict";K0t.exports=function(e,t,r){return t&&r?function(i,n,a,o,s){i||(i=[]);var l,u,f,c,h,d;n*=3,a*=3;var p=o*o,v=1-o,y=v*v,m=v*o*2,w=-3*y,_=3*(y-m),b=3*(m-p),M=3*p,x=s*s,A=x*s,T=1-s,g=T*T,E=g*T;for(d=0;d{"use strict";Q0t.exports=function(e,t,r){return t&&r?function(i,n,a,o,s){i||(i=[]);var l,u,f,c,h,d;n*=3,a*=3;var p=o*o,v=p*o,y=1-o,m=y*y,w=m*y,_=s*s,b=1-s,M=b*b,x=b*s*2,A=-3*M,T=3*(M-x),g=3*(x-_),E=3*_;for(d=0;d{"use strict";var tdt=(G0t(),ar(U0t)),rdt=TF().findBin,S8r=Y0t(),E8r=Z0t(),k8r=J0t(),C8r=edt();idt.exports=function(t){var r=t._a,i=t._b,n=r.length,a=i.length,o=t.aaxis,s=t.baxis,l=r[0],u=r[n-1],f=i[0],c=i[a-1],h=r[r.length-1]-r[0],d=i[i.length-1]-i[0],p=h*tdt.RELATIVE_CULL_TOLERANCE,v=d*tdt.RELATIVE_CULL_TOLERANCE;l-=p,u+=p,f-=v,c+=v,t.isVisible=function(y,m){return y>l&&yf&&mu||mc},t.setScale=function(){var y=t._x,m=t._y,w=S8r(t._xctrl,t._yctrl,y,m,o.smoothing,s.smoothing);t._xctrl=w[0],t._yctrl=w[1],t.evalxy=E8r([t._xctrl,t._yctrl],n,a,o.smoothing,s.smoothing),t.dxydi=k8r([t._xctrl,t._yctrl],o.smoothing,s.smoothing),t.dxydj=C8r([t._xctrl,t._yctrl],o.smoothing,s.smoothing)},t.i2a=function(y){var m=Math.max(0,Math.floor(y[0]),n-2),w=y[0]-m;return(1-w)*r[m]+w*r[m+1]},t.j2b=function(y){var m=Math.max(0,Math.floor(y[1]),n-2),w=y[1]-m;return(1-w)*i[m]+w*i[m+1]},t.ij2ab=function(y){return[t.i2a(y[0]),t.j2b(y[1])]},t.a2i=function(y){var m=Math.max(0,Math.min(rdt(y,r),n-2)),w=r[m],_=r[m+1];return Math.max(0,Math.min(n-1,m+(y-w)/(_-w)))},t.b2j=function(y){var m=Math.max(0,Math.min(rdt(y,i),a-2)),w=i[m],_=i[m+1];return Math.max(0,Math.min(a-1,m+(y-w)/(_-w)))},t.ab2ij=function(y){return[t.a2i(y[0]),t.b2j(y[1])]},t.i2c=function(y,m){return t.evalxy([],y,m)},t.ab2xy=function(y,m,w){if(!w&&(yr[n-1]|mi[a-1]))return[!1,!1];var _=t.a2i(y),b=t.b2j(m),M=t.evalxy([],_,b);if(w){var x=0,A=0,T=[],g,E,S,C;yr[n-1]?(g=n-2,E=1,x=(y-r[n-1])/(r[n-1]-r[n-2])):(g=Math.max(0,Math.min(n-2,Math.floor(_))),E=_-g),mi[a-1]?(S=a-2,C=1,A=(m-i[a-1])/(i[a-1]-i[a-2])):(S=Math.max(0,Math.min(a-2,Math.floor(b))),C=b-S),x&&(t.dxydi(T,g,S,E,C),M[0]+=T[0]*x,M[1]+=T[1]*x),A&&(t.dxydj(T,g,S,E,C),M[0]+=T[0]*A,M[1]+=T[1]*A)}return M},t.c2p=function(y,m,w){return[m.c2p(y[0]),w.c2p(y[1])]},t.p2x=function(y,m,w){return[m.p2c(y[0]),w.p2c(y[1])]},t.dadi=function(y){var m=Math.max(0,Math.min(r.length-2,y));return r[m+1]-r[m]},t.dbdj=function(y){var m=Math.max(0,Math.min(i.length-2,y));return i[m+1]-i[m]},t.dxyda=function(y,m,w,_){var b=t.dxydi(null,y,m,w,_),M=t.dadi(y,w);return[b[0]/M,b[1]/M]},t.dxydb=function(y,m,w,_){var b=t.dxydj(null,y,m,w,_),M=t.dbdj(m,_);return[b[0]/M,b[1]/M]},t.dxyda_rough=function(y,m,w){var _=h*(w||.1),b=t.ab2xy(y+_,m,!0),M=t.ab2xy(y-_,m,!0);return[(b[0]-M[0])*.5/_,(b[1]-M[1])*.5/_]},t.dxydb_rough=function(y,m,w){var _=d*(w||.1),b=t.ab2xy(y,m+_,!0),M=t.ab2xy(y,m-_,!0);return[(b[0]-M[0])*.5/_,(b[1]-M[1])*.5/_]},t.dpdx=function(y){return y._m},t.dpdy=function(y){return y._m}}});var hdt=K((Nci,cdt)=>{"use strict";var sN=Cs(),adt=Mt().isArray1D,D8r=E0t(),odt=F0t(),sdt=P0t(),ldt=B0t(),F8r=O0t(),udt=Z8(),fdt=V0t(),L8r=Y8(),P8r=ndt();cdt.exports=function(t,r){var i=sN.getFromId(t,r.xaxis),n=sN.getFromId(t,r.yaxis),a=r.aaxis,o=r.baxis,s=r.x,l=r.y,u=[];s&&adt(s)&&u.push("x"),l&&adt(l)&&u.push("y"),u.length&&L8r(r,a,o,"a","b",u);var f=r._a=r._a||r.a,c=r._b=r._b||r.b;s=r._x||r.x,l=r._y||r.y;var h={};if(r._cheater){var d=a.cheatertype==="index"?f.length:f,p=o.cheatertype==="index"?c.length:c;s=D8r(d,p,r.cheaterslope)}r._x=s=udt(s),r._y=l=udt(l),fdt(s,f,c),fdt(l,f,c),P8r(r),r.setScale();var v=odt(s),y=odt(l),m=.5*(v[1]-v[0]),w=.5*(v[1]+v[0]),_=.5*(y[1]-y[0]),b=.5*(y[1]+y[0]),M=1.3;return v=[w-m*M,w+m*M],y=[b-_*M,b+_*M],r._extremes[i._id]=sN.findExtremes(i,v,{padded:!0}),r._extremes[n._id]=sN.findExtremes(n,y,{padded:!0}),sdt(r,"a","b"),sdt(r,"b","a"),ldt(r,a),ldt(r,o),h.clipsegments=F8r(r._xctrl,r._yctrl,a,o),h.x=s,h.y=l,h.a=f,h.b=c,[h]}});var pdt=K((Vci,ddt)=>{"use strict";ddt.exports={attributes:eN(),supplyDefaults:d0t(),plot:M0t(),calc:hdt(),animatable:!0,isContainer:!0,moduleType:"trace",name:"carpet",basePlotModule:vc(),categories:["cartesian","svg","carpet","carpetAxis","notLegendIsolatable","noMultiCategory","noHover","noSortingByValue"],meta:{}}});var mdt=K((Uci,vdt)=>{"use strict";vdt.exports=pdt()});var jse=K((Gci,bdt)=>{"use strict";var z8r=im(),Sp=Zf(),I8r=Au(),{hovertemplateAttrs:R8r,texttemplateAttrs:B8r,templatefallbackAttrs:ydt}=yu(),gdt=Wu(),Cx=Os().extendFlat,Lv=Sp.marker,bT=Sp.line,xdt=Lv.line;bdt.exports={carpet:{valType:"string",editType:"calc"},a:{valType:"data_array",editType:"calc"},b:{valType:"data_array",editType:"calc"},mode:Cx({},Sp.mode,{dflt:"markers"}),text:Cx({},Sp.text,{}),texttemplate:B8r({editType:"plot"},{keys:["a","b","text"]}),texttemplatefallback:ydt({editType:"plot"}),hovertext:Cx({},Sp.hovertext,{}),line:{color:bT.color,width:bT.width,dash:bT.dash,backoff:bT.backoff,shape:Cx({},bT.shape,{values:["linear","spline"]}),smoothing:bT.smoothing,editType:"calc"},connectgaps:Sp.connectgaps,fill:Cx({},Sp.fill,{values:["none","toself","tonext"],dflt:"none"}),fillcolor:z8r(),marker:Cx({symbol:Lv.symbol,opacity:Lv.opacity,maxdisplayed:Lv.maxdisplayed,angle:Lv.angle,angleref:Lv.angleref,standoff:Lv.standoff,size:Lv.size,sizeref:Lv.sizeref,sizemin:Lv.sizemin,sizemode:Lv.sizemode,line:Cx({width:xdt.width,dash:xdt.dash,editType:"calc"},gdt("marker.line")),gradient:Lv.gradient,editType:"calc"},gdt("marker")),textfont:Sp.textfont,textposition:Sp.textposition,selected:Sp.selected,unselected:Sp.unselected,hoverinfo:Cx({},I8r.hoverinfo,{flags:["a","b","text","name"]}),hoveron:Sp.hoveron,hovertemplate:R8r(),hovertemplatefallback:ydt(),zorder:Sp.zorder}});var Tdt=K((Hci,Adt)=>{"use strict";var _dt=Mt(),q8r=(rm(),ar(tm)),_T=ff(),O8r=Yp(),N8r=Zv(),wdt=Jw(),V8r=Kv(),U8r=am(),G8r=jse();Adt.exports=function(t,r,i,n){function a(h,d){return _dt.coerce(t,r,G8r,h,d)}a("carpet"),r.xaxis="x",r.yaxis="y";var o=a("a"),s=a("b"),l=Math.min(o.length,s.length);if(!l){r.visible=!1;return}r._length=l,a("text"),a("texttemplate"),a("texttemplatefallback"),a("hovertext");var u=l{"use strict";Mdt.exports=function(t,r){var i={},n=r._carpet,a=n.ab2ij([t.a,t.b]),o=Math.floor(a[0]),s=a[0]-o,l=Math.floor(a[1]),u=a[1]-l,f=n.evalxy([],o,l,s,u);return i.yLabel=f[1].toFixed(3),i}});var lN=K((Wci,Edt)=>{"use strict";Edt.exports=function(e,t){for(var r=e._fullData.length,i,n=0;n{"use strict";var kdt=Gs(),H8r=Xp(),j8r=om(),W8r=np(),$8r=Zp().calcMarkerSize,Y8r=lN();Cdt.exports=function(t,r){var i=r._carpetTrace=Y8r(t,r);if(!(!i||!i.visible||i.visible==="legendonly")){var n;r.xaxis=i.xaxis,r.yaxis=i.yaxis;var a=r._length,o=new Array(a),s,l,u=!1;for(n=0;n{"use strict";var X8r=nA(),Fdt=Cs(),Z8r=Bs();Ldt.exports=function(t,r,i,n){var a,o,s,l=i[0][0].carpet,u=Fdt.getFromId(t,l.xaxis||"x"),f=Fdt.getFromId(t,l.yaxis||"y"),c={xaxis:u,yaxis:f,plot:r.plot};for(a=0;a{"use strict";var K8r=lA(),J8r=Mt().fillText;zdt.exports=function(t,r,i,n){var a=K8r(t,r,i,n);if(!a||a[0].index===!1)return;var o=a[0];if(o.index===void 0){var s=1-o.y0/t.ya._length,l=t.xa._length,u=l*s/2,f=l-u;return o.x0=Math.max(Math.min(o.x0,f),u),o.x1=Math.max(Math.min(o.x1,f),u),a}var c=o.cd[o.index];o.a=c.a,o.b=c.b,o.xLabelVal=void 0,o.yLabelVal=void 0;var h=o.trace,d=h._carpet,p=h._module.formatLabels(c,h);o.yLabel=p.yLabel,delete o.text;var v=[];function y(_,b){var M;_.labelprefix&&_.labelprefix.length>0?M=_.labelprefix.replace(/ = $/,""):M=_._hovertitle,v.push(M+": "+b.toFixed(3)+_.labelsuffix)}if(!h.hovertemplate){var m=c.hi||h.hoverinfo,w=m.split("+");w.indexOf("all")!==-1&&(w=["a","b","text"]),w.indexOf("a")!==-1&&y(d.aaxis,c.a),w.indexOf("b")!==-1&&y(d.baxis,c.b),v.push("y: "+o.yLabel),w.indexOf("text")!==-1&&J8r(c,h,v),o.extraText=v.join("
")}return a}});var Bdt=K((Zci,Rdt)=>{"use strict";Rdt.exports=function(t,r,i,n,a){var o=n[a];return t.a=o.a,t.b=o.b,t.y=o.y,t}});var Odt=K((Kci,qdt)=>{"use strict";qdt.exports={attributes:jse(),supplyDefaults:Tdt(),colorbar:Qh(),formatLabels:Sdt(),calc:Ddt(),plot:Pdt(),style:fd().style,styleOnSelect:fd().styleOnSelect,hoverPoints:Idt(),selectPoints:Rb(),eventData:Bdt(),moduleType:"trace",name:"scattercarpet",basePlotModule:vc(),categories:["svg","carpet","symbols","showLegend","carpetDependent","zoomScale"],meta:{}}});var Vdt=K((Jci,Ndt)=>{"use strict";Ndt.exports=Odt()});var Wse=K((Qci,Udt)=>{"use strict";var Pv=SA(),fg=aS(),Q8r=Wu(),e9r=Os().extendFlat,$m=fg.contours;Udt.exports=e9r({carpet:{valType:"string",editType:"calc"},z:Pv.z,a:Pv.x,a0:Pv.x0,da:Pv.dx,b:Pv.y,b0:Pv.y0,db:Pv.dy,text:Pv.text,hovertext:Pv.hovertext,transpose:Pv.transpose,atype:Pv.xtype,btype:Pv.ytype,fillcolor:fg.fillcolor,autocontour:fg.autocontour,ncontours:fg.ncontours,contours:{type:$m.type,start:$m.start,end:$m.end,size:$m.size,coloring:{valType:"enumerated",values:["fill","lines","none"],dflt:"fill",editType:"calc"},showlines:$m.showlines,showlabels:$m.showlabels,labelfont:$m.labelfont,labelformat:$m.labelformat,operation:$m.operation,value:$m.value,editType:"calc",impliedEdits:{autocontour:!1}},line:{color:fg.line.color,width:fg.line.width,dash:fg.line.dash,smoothing:fg.line.smoothing,editType:"plot"},zorder:fg.zorder},Q8r("",{cLetter:"z",autoColorDflt:!1}))});var $se=K((ehi,jdt)=>{"use strict";var Gdt=Mt(),t9r=j8(),Hdt=Wse(),r9r=jY(),i9r=m9(),n9r=y9();jdt.exports=function(t,r,i,n){function a(u,f){return Gdt.coerce(t,r,Hdt,u,f)}function o(u){return Gdt.coerce2(t,r,Hdt,u)}if(a("carpet"),t.a&&t.b){var s=t9r(t,r,a,n,"a","b");if(!s){r.visible=!1;return}a("text");var l=a("contours.type")==="constraint";l?r9r(t,r,a,n,i,{hasHover:!1}):(i9r(t,r,a,o),n9r(t,r,a,n,{hasHover:!1}))}else r._defaultColor=i,r._length=null;a("zorder")}});var Xdt=K((thi,Ydt)=>{"use strict";var a9r=A0(),Wdt=Mt(),o9r=Y8(),s9r=Z8(),l9r=K8(),u9r=J8(),$dt=pY(),f9r=$se(),c9r=lN(),h9r=PY();Ydt.exports=function(t,r){var i=r._carpetTrace=c9r(t,r);if(!(!i||!i.visible||i.visible==="legendonly")){if(!r.a||!r.b){var n=t.data[i.index],a=t.data[r.index];a.a||(a.a=n.a),a.b||(a.b=n.b),f9r(a,r,r._defaultColor,t._fullLayout)}var o=d9r(t,r);return h9r(r,r._z),o}};function d9r(e,t){var r=t._carpetTrace,i=r.aaxis,n=r.baxis,a,o,s,l,u,f,c;i._minDtick=0,n._minDtick=0,Wdt.isArray1D(t.z)&&o9r(t,i,n,"a","b",["z"]),a=t._a=t._a||t.a,l=t._b=t._b||t.b,a=a?i.makeCalcdata(t,"_a"):[],l=l?n.makeCalcdata(t,"_b"):[],o=t.a0||0,s=t.da||1,u=t.b0||0,f=t.db||1,c=t._z=s9r(t._z||t.z,t.transpose),t._emptypoints=u9r(c),l9r(c,t._emptypoints);var h=Wdt.maxRowLength(c),d=t.xtype==="scaled"?"":a,p=$dt(t,d,o,s,h,i),v=t.ytype==="scaled"?"":l,y=$dt(t,v,u,f,c.length,n),m={a:p,b:y,z:c};return t.contours.type==="levels"&&t.contours.coloring!=="none"&&a9r(e,t,{vals:c,containerStr:"",cLetter:"z"}),[m]}});var Kdt=K((rhi,Zdt)=>{"use strict";var p9r=Mt().isArrayOrTypedArray;Zdt.exports=function(e,t,r,i){var n,a,o,s,l,u,f,c,h,d,p,v,y,m=p9r(r)?"a":"b",w=m==="a"?e.aaxis:e.baxis,_=w.smoothing,b=m==="a"?e.a2i:e.b2j,M=m==="a"?r:i,x=m==="a"?i:r,A=m==="a"?t.a.length:t.b.length,T=m==="a"?t.b.length:t.a.length,g=Math.floor(m==="a"?e.b2j(x):e.a2i(x)),E=m==="a"?function(W){return e.evalxy([],W,g)}:function(W){return e.evalxy([],g,W)};_&&(o=Math.max(0,Math.min(T-2,g)),s=g-o,a=m==="a"?function(W,X){return e.dxydi([],W,o,X,s)}:function(W,X){return e.dxydj([],o,W,s,X)});var S=b(M[0]),C=b(M[1]),k=S0?Math.floor:Math.ceil,P=k>0?Math.ceil:Math.floor,I=k>0?Math.min:Math.max,F=k>0?Math.max:Math.min,z=L(S+D),B=P(C-D);f=E(S);var O=[[f]];for(n=z;n*k{"use strict";var fN=No(),cN=Vse(),rpt=Use(),pD=Bs(),cg=Mt(),v9r=IY(),m9r=RY(),z3=b9(),uN=(lS(),ar(sS)),y9r=NY(),g9r=OY(),x9r=VY(),b9r=lN(),Jdt=Kdt();ipt.exports=function(t,r,i,n){var a=r.xaxis,o=r.yaxis;cg.makeTraceGroups(n,i,"contour").each(function(s){var l=fN.select(this),u=s[0],f=u.trace,c=f._carpetTrace=b9r(t,f),h=t.calcdata[c.index][0];if(!c.visible||c.visible==="legendonly")return;var d=u.a,p=u.b,v=f.contours,y=g9r(v,r,u),m=v.type==="constraint",w=v._operation,_=m?w==="="?"lines":"fill":v.coloring;function b(L){var P=c.ab2xy(L[0],L[1],!0);return[a.c2p(P[0]),o.c2p(P[1])]}var M=[[d[0],p[p.length-1]],[d[d.length-1],p[p.length-1]],[d[d.length-1],p[0]],[d[0],p[0]]];v9r(y);var x=(d[d.length-1]-d[0])*1e-8,A=(p[p.length-1]-p[0])*1e-8;m9r(y,x,A);var T=y;v.type==="constraint"&&(T=y9r(y,w)),_9r(y,b);var g,E,S,C,k=[];for(C=h.clipsegments.length-1;C>=0;C--)g=h.clipsegments[C],E=cN([],g.x,a.c2p),S=cN([],g.y,o.c2p),E.reverse(),S.reverse(),k.push(rpt(E,S,g.bicubic));var D="M"+k.join("L")+"Z";T9r(l,h.clipsegments,a,o,m,_),M9r(f,l,a,o,T,M,b,c,h,_,D),w9r(l,y,t,u,v,r,c),pD.setClipUrl(l,c._clipPathId,t)})};function _9r(e,t){var r,i,n,a,o,s,l,u,f;for(r=0;ry&&(i.max=y),i.len=i.max-i.min}function Qdt(e,t,r){var i=e.getPointAtLength(t),n=e.getPointAtLength(r),a=n.x-i.x,o=n.y-i.y,s=Math.sqrt(a*a+o*o);return[a/s,o/s]}function ept(e){var t=Math.sqrt(e[0]*e[0]+e[1]*e[1]);return[e[0]/t,e[1]/t]}function tpt(e,t){var r=Math.abs(e[0]*t[0]+e[1]*t[1]),i=Math.sqrt(1-r*r);return i/r}function T9r(e,t,r,i,n,a){var o,s,l,u,f=cg.ensureSingle(e,"g","contourbg"),c=f.selectAll("path").data(a==="fill"&&!n?[0]:[]);c.enter().append("path"),c.exit().remove();var h=[];for(u=0;u=0&&(d=E,v=y):Math.abs(h[1]-d[1])<_?Math.abs(h[1]-E[1])<_&&(E[0]-h[0])*(d[0]-E[0])>=0&&(d=E,v=y):cg.log("endpt to newendpt is not vert. or horz.",h,d,E)}if(v>=0)break;u+=T(h,d),h=d}if(v===t.edgepaths.length){cg.log("unclosed perimeter path");break}l=v,c=f.indexOf(l)===-1,c&&(l=f[0],u+=T(h,d)+"Z",h=null)}for(l=0;l{"use strict";apt.exports={attributes:Wse(),supplyDefaults:$se(),colorbar:A9(),calc:Xdt(),plot:npt(),style:w9(),moduleType:"trace",name:"contourcarpet",basePlotModule:vc(),categories:["cartesian","svg","carpet","contour","symbols","showLegend","hasLines","carpetDependent","noHover","noSortingByValue"],meta:{}}});var lpt=K((ahi,spt)=>{"use strict";spt.exports=opt()});var dN=K((ohi,dpt)=>{"use strict";var hN=Mt().extendFlat,vD=Zf(),upt=zf().axisHoverFormat,{hovertemplateAttrs:E9r,templatefallbackAttrs:k9r}=yu(),cpt=yh().dash,C9r=Q3(),hpt=(GA(),ar(UA)),D9r=hpt.INCREASING.COLOR,F9r=hpt.DECREASING.COLOR,Yse=vD.line;function fpt(e){return{line:{color:hN({},Yse.color,{dflt:e}),width:Yse.width,dash:cpt,editType:"style"},editType:"style"}}dpt.exports={xperiod:vD.xperiod,xperiod0:vD.xperiod0,xperiodalignment:vD.xperiodalignment,xhoverformat:upt("x"),yhoverformat:upt("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:hN({},Yse.width,{}),dash:hN({},cpt,{}),editType:"style"},increasing:fpt(D9r),decreasing:fpt(F9r),text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertemplate:E9r({},{keys:["open","high","low","close"]}),hovertemplatefallback:k9r(),tickwidth:{valType:"number",min:0,max:.5,dflt:.3,editType:"calc"},hoverlabel:hN({},C9r.hoverlabel,{split:{valType:"boolean",dflt:!1,editType:"style"}}),zorder:vD.zorder}});var Xse=K((shi,ppt)=>{"use strict";var L9r=Ho(),P9r=Mt();ppt.exports=function(t,r,i,n){var a=i("x"),o=i("open"),s=i("high"),l=i("low"),u=i("close");i("hoverlabel.split");var f=L9r.getComponentMethod("calendars","handleTraceDefaults");if(f(t,r,["x"],n),!!(o&&s&&l&&u)){var c=Math.min(o.length,s.length,l.length,u.length);return a&&(c=Math.min(c,P9r.minRowLength(a))),r._length=c,c}}});var ypt=K((lhi,mpt)=>{"use strict";var z9r=Mt(),I9r=Xse(),R9r=Xv(),B9r=dN();mpt.exports=function(t,r,i,n){function a(s,l){return z9r.coerce(t,r,B9r,s,l)}var o=I9r(t,r,a,n);if(!o){r.visible=!1;return}R9r(t,r,n,a,{x:!0}),a("xhoverformat"),a("yhoverformat"),a("line.width"),a("line.dash"),vpt(t,r,a,"increasing"),vpt(t,r,a,"decreasing"),a("text"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback"),a("tickwidth"),n._requestRangeslider[r.xaxis]=!0,a("zorder")};function vpt(e,t,r,i){r(i+".line.color"),r(i+".line.width",t.line.width),r(i+".line.dash",t.line.dash)}});var Zse=K((uhi,xpt)=>{"use strict";var wT=Mt(),pN=wT._,vN=Cs(),q9r=Jv(),mD=(Il(),ar(Bl)).BADNUM;function O9r(e,t){var r=vN.getFromId(e,t.xaxis),i=vN.getFromId(e,t.yaxis),n=V9r(e,r,t),a=t._minDiff;t._minDiff=null;var o=t._origX;t._origX=null;var s=t._xcalc;t._xcalc=null;var l=gpt(e,t,o,s,i,N9r);return t._extremes[r._id]=vN.findExtremes(r,s,{vpad:a/2}),l.length?(wT.extendFlat(l[0].t,{wHover:a/2,tickLen:n}),l):[{t:{empty:!0}}]}function N9r(e,t,r,i){return{o:e,h:t,l:r,c:i}}function gpt(e,t,r,i,n,a){for(var o=n.makeCalcdata(t,"open"),s=n.makeCalcdata(t,"high"),l=n.makeCalcdata(t,"low"),u=n.makeCalcdata(t,"close"),f=wT.isArrayOrTypedArray(t.text),c=wT.isArrayOrTypedArray(t.hovertext),h=!0,d=null,p=!!t.xperiodalignment,v=[],y=0;yd):h=M>w,d=M;var x=a(w,_,b,M);x.pos=m,x.yc=(w+M)/2,x.i=y,x.dir=h?"increasing":"decreasing",x.x=x.pos,x.y=[b,_],p&&(x.orig_p=r[y]),f&&(x.tx=t.text[y]),c&&(x.htx=t.hovertext[y]),v.push(x)}else v.push({pos:m,empty:!0})}return t._extremes[n._id]=vN.findExtremes(n,wT.concat(l,s),{padded:!0}),v.length&&(v[0].t={labels:{open:pN(e,"open:")+" ",high:pN(e,"high:")+" ",low:pN(e,"low:")+" ",close:pN(e,"close:")+" "}}),v}function V9r(e,t,r){var i=r._minDiff;if(!i){var n=e._fullData,a=[];i=1/0;var o;for(o=0;o{"use strict";var U9r=No(),bpt=Mt();_pt.exports=function(t,r,i,n){var a=r.yaxis,o=r.xaxis,s=!!o.rangebreaks;bpt.makeTraceGroups(n,i,"trace ohlc").each(function(l){var u=U9r.select(this),f=l[0],c=f.t,h=f.trace;if(h.visible!==!0||c.empty){u.remove();return}var d=c.tickLen,p=u.selectAll("path").data(bpt.identity);p.enter().append("path"),p.exit().remove(),p.attr("d",function(v){if(v.empty)return"M0,0Z";var y=o.c2p(v.pos-d,!0),m=o.c2p(v.pos+d,!0),w=s?(y+m)/2:o.c2p(v.pos,!0),_=a.c2p(v.o,!0),b=a.c2p(v.h,!0),M=a.c2p(v.l,!0),x=a.c2p(v.c,!0);return"M"+y+","+_+"H"+w+"M"+w+","+b+"V"+M+"M"+m+","+x+"H"+w})})}});var Tpt=K((chi,Apt)=>{"use strict";var Kse=No(),G9r=Bs(),H9r=ko();Apt.exports=function(t,r,i){var n=i||Kse.select(t).selectAll("g.ohlclayer").selectAll("g.trace");n.style("opacity",function(a){return a[0].trace.opacity}),n.each(function(a){var o=a[0].trace;Kse.select(this).selectAll("path").each(function(s){if(!s.empty){var l=o[s.dir].line;Kse.select(this).style("fill","none").call(H9r.stroke,l.color).call(G9r.dashLine,l.dash,l.width).style("opacity",o.selectedpoints&&!s.selected?.3:1)}})})}});var Qse=K((hhi,Cpt)=>{"use strict";var Jse=Cs(),j9r=Mt(),mN=Uf(),W9r=ko(),$9r=Mt().fillText,Mpt=(GA(),ar(UA)),Y9r={increasing:Mpt.INCREASING.SYMBOL,decreasing:Mpt.DECREASING.SYMBOL};function X9r(e,t,r,i){var n=e.cd,a=n[0].trace;return a.hoverlabel.split?Ept(e,t,r,i):kpt(e,t,r,i)}function Spt(e,t,r,i){var n=e.cd,a=e.xa,o=n[0].trace,s=n[0].t,l=o.type,u=l==="ohlc"?"l":"min",f=l==="ohlc"?"h":"max",c,h,d=s.bPos||0,p=function(E){return E.pos+d-t},v=s.bdPos||s.tickLen,y=s.wHover,m=Math.min(1,v/Math.abs(a.r2c(a.range[1])-a.r2c(a.range[0])));c=e.maxHoverDistance-m,h=e.maxSpikeDistance-m;function w(E){var S=p(E);return mN.inbox(S-y,S+y,c)}function _(E){var S=E[u],C=E[f];return S===C||mN.inbox(S-r,C-r,c)}function b(E){return(w(E)+_(E))/2}var M=mN.getDistanceFunction(i,w,_,b);if(mN.getClosest(n,M,e),e.index===!1)return null;var x=n[e.index];if(x.empty)return null;var A=x.dir,T=o[A],g=T.line.color;return W9r.opacity(g)&&T.line.width?e.color=g:e.color=T.fillcolor,e.x0=a.c2p(x.pos+d-v,!0),e.x1=a.c2p(x.pos+d+v,!0),e.xLabelVal=x.orig_p!==void 0?x.orig_p:x.pos,e.spikeDistance=b(x)*h/c,e.xSpike=a.c2p(x.pos,!0),e}function Ept(e,t,r,i){var n=e.cd,a=e.ya,o=n[0].trace,s=n[0].t,l=[],u=Spt(e,t,r,i);if(!u)return[];var f=n[u.index],c=f.hi||o.hoverinfo||"";if(c==="none"||c==="skip")return[];for(var h=["high","open","close","low"],d={},p=0;p"+s.labels[v]+Jse.hoverLabelText(a,y,o.yhoverformat)):(w=j9r.extendFlat({},u),w.y0=w.y1=m,w.yLabelVal=y,w.yLabel=s.labels[v]+Jse.hoverLabelText(a,y,o.yhoverformat),w.name="",l.push(w),d[y]=w)}return l}function kpt(e,t,r,i){var n=e.cd,a=e.ya,o=n[0].trace,s=n[0].t,l=Spt(e,t,r,i);if(!l)return[];var u=l.index,f=n[u],c=l.index=f.i,h=f.dir;function d(b){return s.labels[b]+Jse.hoverLabelText(a,o[b][c],o.yhoverformat)}var p=f.hi||o.hoverinfo||"",v=p.split("+"),y=p==="all",m=y||v.indexOf("y")!==-1,w=y||v.indexOf("text")!==-1,_=m?[d("open"),d("high"),d("low"),d("close")+" "+Y9r[h]]:[];return w&&$9r(f,o,_),l.extraText=_.join("
"),l.y0=l.y1=a.c2p(f.yc,!0),[l]}Cpt.exports={hoverPoints:X9r,hoverSplit:Ept,hoverOnPoints:kpt}});var ele=K((dhi,Dpt)=>{"use strict";Dpt.exports=function(t,r){var i=t.cd,n=t.xaxis,a=t.yaxis,o=[],s,l=i[0].t.bPos||0;if(r===!1)for(s=0;s{"use strict";Fpt.exports={moduleType:"trace",name:"ohlc",basePlotModule:vc(),categories:["cartesian","svg","showLegend"],meta:{},attributes:dN(),supplyDefaults:ypt(),calc:Zse().calc,plot:wpt(),style:Tpt(),hoverPoints:Qse().hoverPoints,selectPoints:ele()}});var zpt=K((vhi,Ppt)=>{"use strict";Ppt.exports=Lpt()});var rle=K((mhi,Bpt)=>{"use strict";var tle=Mt().extendFlat,Ipt=zf().axisHoverFormat,bd=dN(),AT=ZM();function Rpt(e){return{line:{color:tle({},AT.line.color,{dflt:e}),width:AT.line.width,editType:"style"},fillcolor:AT.fillcolor,editType:"style"}}Bpt.exports={xperiod:bd.xperiod,xperiod0:bd.xperiod0,xperiodalignment:bd.xperiodalignment,xhoverformat:Ipt("x"),yhoverformat:Ipt("y"),x:bd.x,open:bd.open,high:bd.high,low:bd.low,close:bd.close,line:{width:tle({},AT.line.width,{}),editType:"style"},increasing:Rpt(bd.increasing.line.color.dflt),decreasing:Rpt(bd.decreasing.line.color.dflt),text:bd.text,hovertext:bd.hovertext,hovertemplate:bd.hovertemplate,hovertemplatefallback:bd.hovertemplatefallback,whiskerwidth:tle({},AT.whiskerwidth,{dflt:0}),hoverlabel:bd.hoverlabel,zorder:AT.zorder}});var Npt=K((yhi,Opt)=>{"use strict";var Z9r=Mt(),K9r=ko(),J9r=Xse(),Q9r=Xv(),ezr=rle();Opt.exports=function(t,r,i,n){function a(s,l){return Z9r.coerce(t,r,ezr,s,l)}var o=J9r(t,r,a,n);if(!o){r.visible=!1;return}Q9r(t,r,n,a,{x:!0}),a("xhoverformat"),a("yhoverformat"),a("line.width"),qpt(t,r,a,"increasing"),qpt(t,r,a,"decreasing"),a("text"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback"),a("whiskerwidth"),n._requestRangeslider[r.xaxis]=!0,a("zorder")};function qpt(e,t,r,i){var n=r(i+".line.color");r(i+".line.width",t.line.width),r(i+".fillcolor",K9r.addOpacity(n,.5))}});var Hpt=K((ghi,Gpt)=>{"use strict";var Vpt=Mt(),Upt=Cs(),tzr=Jv(),rzr=Zse().calcCommon;Gpt.exports=function(e,t){var r=e._fullLayout,i=Upt.getFromId(e,t.xaxis),n=Upt.getFromId(e,t.yaxis),a=i.makeCalcdata(t,"x"),o=tzr(t,i,"x",a).vals,s=rzr(e,t,a,o,n,izr);return s.length?(Vpt.extendFlat(s[0].t,{num:r._numBoxes,dPos:Vpt.distinctVals(o).minDiff/2,posLetter:"x",valLetter:"y"}),r._numBoxes++,s):[{t:{empty:!0}}]};function izr(e,t,r,i){return{min:r,q1:Math.min(e,i),med:i,q3:Math.max(e,i),max:t}}});var Wpt=K((xhi,jpt)=>{"use strict";jpt.exports={moduleType:"trace",name:"candlestick",basePlotModule:vc(),categories:["cartesian","svg","showLegend","candlestick","boxLayout"],meta:{},attributes:rle(),layoutAttributes:KM(),supplyLayoutDefaults:O8().supplyLayoutDefaults,crossTraceCalc:V8().crossTraceCalc,supplyDefaults:Npt(),calc:Hpt(),plot:U8().plot,layerName:"boxlayer",style:G8().style,hoverPoints:Qse().hoverPoints,selectPoints:ele()}});var Ypt=K((bhi,$pt)=>{"use strict";$pt.exports=Wpt()});var nle=K((_hi,Xpt)=>{"use strict";var gN=Mt(),nzr=G1(),yN=gN.deg2rad,ile=gN.rad2deg;Xpt.exports=function(t,r,i){switch(nzr(t,i),t._id){case"x":case"radialaxis":azr(t,r);break;case"angularaxis":lzr(t,r);break}};function azr(e,t){var r=t._subplot;e.setGeometry=function(){var i=e._rl[0],n=e._rl[1],a=r.innerRadius,o=(r.radius-a)/(n-i),s=a/o,l=i>n?function(u){return u<=0}:function(u){return u>=0};e.c2g=function(u){var f=e.c2l(u)-i;return(l(f)?f:0)+s},e.g2c=function(u){return e.l2c(u+i-s)},e.g2p=function(u){return u*o},e.c2p=function(u){return e.g2p(e.c2g(u))}}}function ozr(e,t){return t==="degrees"?yN(e):e}function szr(e,t){return t==="degrees"?ile(e):e}function lzr(e,t){var r=e.type;if(r==="linear"){var i=e.d2c,n=e.c2d;e.d2c=function(a,o){return ozr(i(a),o)},e.c2d=function(a,o){return n(szr(a,o))}}e.makeCalcdata=function(a,o){var s=a[o],l=a._length,u,f,c=function(y){return e.d2c(y,a.thetaunit)};if(s)for(u=new Array(l),f=0;fgzr,MINZOOM:()=>xzr,OFFEDGE:()=>bzr,angularDragBoxSize:()=>vzr,attr:()=>uzr,axisName2dataArray:()=>hzr,axisNames:()=>czr,cornerHalfWidth:()=>yzr,cornerLen:()=>mzr,layerNames:()=>dzr,name:()=>fzr,radialDragBoxSize:()=>pzr});var uzr,fzr,czr,hzr,dzr,pzr,vzr,mzr,yzr,gzr,xzr,bzr,bN=ps(()=>{"use strict";uzr="subplot",fzr="polar",czr=["angularaxis","radialaxis"],hzr={angularaxis:"theta",radialaxis:"r"},dzr=["draglayer","plotbg","backplot","angular-grid","radial-grid","frontplot","angular-line","radial-line","angular-axis","radial-axis"],pzr=50,vzr=30,mzr=25,yzr=2,gzr=8,xzr=20,bzr=20});var wN=K((whi,evt)=>{"use strict";var I3=Mt(),Zpt=iM().tester,ale=I3.findIndexOfMin,Jpt=I3.isAngleInsideSector,_zr=I3.angleDelta,Kpt=I3.angleDist;function wzr(e,t,r,i,n){if(!Jpt(t,i))return!1;var a,o;r[0]0?o:1/0},i=ale(t,r),n=I3.mod(i+1,t.length);return[t[i],t[n]]}function _N(e){return Math.abs(e)>1e-10?e:0}function ole(e,t,r){t=t||0,r=r||0;for(var i=e.length,n=new Array(i),a=0;a{"use strict";function tvt(e){return e<0?-1:e>0?1:0}function MT(e){var t=e[0],r=e[1];if(!isFinite(t)||!isFinite(r))return[1,0];var i=(t+1)*(t+1)+r*r;return[(t*t+r*r-1)/i,2*r/i]}function ST(e,t){var r=t[0],i=t[1];return[r*e.radius+e.cx,-i*e.radius+e.cy]}function rvt(e,t){return t*e.radius}function Dzr(e,t,r,i){var n=ST(e,MT([r,t])),a=n[0],o=n[1],s=ST(e,MT([i,t])),l=s[0],u=s[1];if(t===0)return["M"+a+","+o,"L"+l+","+u].join(" ");var f=rvt(e,1/Math.abs(t));return["M"+a+","+o,"A"+f+","+f+" 0 0,"+(t<0?1:0)+" "+l+","+u].join(" ")}function Fzr(e,t,r,i){var n=rvt(e,1/(t+1)),a=ST(e,MT([t,r])),o=a[0],s=a[1],l=ST(e,MT([t,i])),u=l[0],f=l[1];if(tvt(r)!==tvt(i)){var c=ST(e,MT([t,0])),h=c[0],d=c[1];return["M"+o+","+s,"A"+n+","+n+" 0 0,"+(0{"use strict";var R3=No(),q3=Ho(),Ff=Mt(),Ym=Ff.strRotate,Ch=Ff.strTranslate,SN=ko(),yD=Bs(),Lzr=yf(),_d=Cs(),Pzr=G1(),zzr=nle(),Izr=Hv().doAutoRange,hg=nW(),MN=N0(),nvt=Uf(),Rzr=pb(),Bzr=uh().prepSelect,qzr=uh().selectOnClick,lle=uh().clearOutline,avt=jv(),ovt=U6(),svt=K6().redrawReglTraces,Ozr=(Hc(),ar(Gc)).MID_SHIFT,Dx=(bN(),ar(xN)),dg=wN(),EN=sle(),AN=EN.smith,Nzr=EN.reactanceArc,Vzr=EN.resistanceArc,TN=EN.smithTransform,Uzr=Ff._,lvt=Ff.mod,Fx=Ff.deg2rad,B3=Ff.rad2deg;function uvt(e,t,r){this.isSmith=r||!1,this.id=t,this.gd=e,this._hasClipOnAxisFalse=null,this.vangles=null,this.radialAxisAngle=null,this.traceHash={},this.layers={},this.clipPaths={},this.clipIds={},this.viewInitial={};var i=e._fullLayout,n="clip"+i._uid+t;this.clipIds.forTraces=n+"-for-traces",this.clipPaths.forTraces=i._clips.append("clipPath").attr("id",this.clipIds.forTraces),this.clipPaths.forTraces.append("path"),this.framework=i["_"+(r?"smith":"polar")+"layer"].append("g").attr("class",t),this.getHole=function(a){return this.isSmith?0:a.hole},this.getSector=function(a){return this.isSmith?[0,360]:a.sector},this.getRadial=function(a){return this.isSmith?a.realaxis:a.radialaxis},this.getAngular=function(a){return this.isSmith?a.imaginaryaxis:a.angularaxis},r||(this.radialTickLayout=null,this.angularTickLayout=null)}var Gh=uvt.prototype;hvt.exports=function(t,r,i){return new uvt(t,r,i)};Gh.plot=function(e,t){for(var r=this,i=t[r.id],n=!1,a=0;ay?(m=u,w=u*y,M=(f-w)/n.h/2,_=[s[0],s[1]],b=[l[0]+M,l[1]-M]):(m=f/y,w=f,M=(u-m)/n.w/2,_=[s[0]+M,s[1]-M],b=[l[0],l[1]]),r.xLength2=m,r.yLength2=w,r.xDomain2=_,r.yDomain2=b;var x=r.xOffset2=n.l+n.w*_[0],A=r.yOffset2=n.t+n.h*(1-b[1]),T=r.radius=m/d,g=r.innerRadius=r.getHole(t)*T,E=r.cx=x-T*h[0],S=r.cy=A+T*h[3],C=r.cxx=E-x,k=r.cyy=S-A,D=a.side,L;D==="counterclockwise"?(L=D,D="top"):D==="clockwise"&&(L=D,D="bottom"),r.radialAxis=r.mockAxis(e,t,a,{_id:"x",side:D,_trueSide:L,domain:[g/n.w,T/n.w]}),r.angularAxis=r.mockAxis(e,t,o,{side:"right",domain:[0,Math.PI],autorange:!1}),r.doAutoRange(e,t),r.updateAngularAxis(e,t),r.updateRadialAxis(e,t),r.updateRadialAxisTitle(e,t),r.xaxis=r.mockCartesianAxis(e,t,{_id:"x",domain:_}),r.yaxis=r.mockCartesianAxis(e,t,{_id:"y",domain:b});var P=r.pathSubplot();r.clipPaths.forTraces.select("path").attr("d",P).attr("transform",Ch(C,k)),i.frontplot.attr("transform",Ch(x,A)).call(yD.setClipUrl,r._hasClipOnAxisFalse?null:r.clipIds.forTraces,r.gd),i.bg.attr("d",P).attr("transform",Ch(E,S)).call(SN.fill,t.bgcolor)};Gh.mockAxis=function(e,t,r,i){var n=Ff.extendFlat({},r,i);return zzr(n,t,e),n};Gh.mockCartesianAxis=function(e,t,r){var i=this,n=i.isSmith,a=r._id,o=Ff.extendFlat({type:"linear"},r);Pzr(o,e);var s={x:[0,2],y:[1,3]};return o.setRange=function(){var l=i.sectorBBox,u=s[a],f=i.radialAxis._rl,c=(f[1]-f[0])/(1-i.getHole(t));o.range=[l[u[0]]*c,l[u[1]]*c]},o.isPtWithinRange=a==="x"&&!n?function(l){return i.isPtInside(l)}:function(){return!0},o.setRange(),o.setScale(),o};Gh.doAutoRange=function(e,t){var r=this,i=r.gd,n=r.radialAxis,a=r.getRadial(t);Izr(i,n);var o=n.range;if(a.range=o.slice(),a._input.range=o.slice(),n._rl=[n.r2l(o[0],null,"gregorian"),n.r2l(o[1],null,"gregorian")],n.minallowed!==void 0){var s=n.r2l(n.minallowed);n._rl[0]>n._rl[1]?n._rl[1]=Math.max(n._rl[1],s):n._rl[0]=Math.max(n._rl[0],s)}if(n.maxallowed!==void 0){var l=n.r2l(n.maxallowed);n._rl[0]90&&f<=270&&(c.tickangle=180);var p=d?function(T){var g=TN(r,AN([T.x,0]));return Ch(g[0]-s,g[1]-l)}:function(T){return Ch(c.l2p(T.x)+o,0)},v=d?function(T){return Vzr(r,T.x,-1/0,1/0)}:function(T){return r.pathArc(c.r2p(T.x)+o)},y=fvt(u);if(r.radialTickLayout!==y&&(n["radial-axis"].selectAll(".xtick").remove(),r.radialTickLayout=y),h){c.setScale();var m=0,w=d?(c.tickvals||[]).filter(function(T){return T>=0}).map(function(T){return _d.tickText(c,T,!0,!1)}):_d.calcTicks(c),_=d?w:_d.clipEnds(c,w),b=_d.getTickSigns(c)[2];d&&((c.ticks==="top"&&c.side==="bottom"||c.ticks==="bottom"&&c.side==="top")&&(b=-b),c.ticks==="top"&&c.side==="top"&&(m=-c.ticklen),c.ticks==="bottom"&&c.side==="bottom"&&(m=c.ticklen)),_d.drawTicks(i,c,{vals:w,layer:n["radial-axis"],path:_d.makeTickPath(c,0,b),transFn:p,crisp:!1}),_d.drawGrid(i,c,{vals:_,layer:n["radial-grid"],path:v,transFn:Ff.noop,crisp:!1}),_d.drawLabels(i,c,{vals:w,layer:n["radial-axis"],transFn:p,labelFns:_d.makeLabelFns(c,m)})}var M=r.radialAxisAngle=r.vangles?B3(cvt(Fx(u.angle),r.vangles)):u.angle,x=Ch(s,l),A=x+Ym(-M);gD(n["radial-axis"],h&&(u.showticklabels||u.ticks),{transform:A}),gD(n["radial-grid"],h&&u.showgrid,{transform:d?"":x}),gD(n["radial-line"].select("line"),h&&u.showline,{x1:d?-a:o,y1:0,x2:a,y2:0,transform:A}).attr("stroke-width",u.linewidth).call(SN.stroke,u.linecolor)};Gh.updateRadialAxisTitle=function(e,t,r){if(!this.isSmith){var i=this,n=i.gd,a=i.radius,o=i.cx,s=i.cy,l=i.getRadial(t),u=i.id+"title",f=0;if(l.title){var c=yD.bBox(i.layers["radial-axis"].node()).height,h=l.title.font.size,d=l.side;f=d==="top"?h:d==="counterclockwise"?-(c+h*.4):c+h*.8}var p=r!==void 0?r:i.radialAxisAngle,v=Fx(p),y=Math.cos(v),m=Math.sin(v),w=o+a/2*y+f*m,_=s-a/2*m+f*y;i.layers["radial-axis-title"]=Rzr.draw(n,u,{propContainer:l,propName:i.id+".radialaxis.title.text",placeholder:Uzr(n,"Click to enter radial axis title"),attributes:{x:w,y:_,"text-anchor":"middle"},transform:{rotate:-p}})}};Gh.updateAngularAxis=function(e,t){var r=this,i=r.gd,n=r.layers,a=r.radius,o=r.innerRadius,s=r.cx,l=r.cy,u=r.getAngular(t),f=r.angularAxis,c=r.isSmith;c||(r.fillViewInitialKey("angularaxis.rotation",u.rotation),f.setGeometry(),f.setScale());var h=c?function(g){var E=TN(r,AN([0,g.x]));return Math.atan2(E[0]-s,E[1]-l)-Math.PI/2}:function(g){return f.t2g(g.x)};f.type==="linear"&&f.thetaunit==="radians"&&(f.tick0=B3(f.tick0),f.dtick=B3(f.dtick));var d=function(g){return Ch(s+a*Math.cos(g),l-a*Math.sin(g))},p=c?function(g){var E=TN(r,AN([0,g.x]));return Ch(E[0],E[1])}:function(g){return d(h(g))},v=c?function(g){var E=TN(r,AN([0,g.x])),S=Math.atan2(E[0]-s,E[1]-l)-Math.PI/2;return Ch(E[0],E[1])+Ym(-B3(S))}:function(g){var E=h(g);return d(E)+Ym(-B3(E))},y=c?function(g){return Nzr(r,g.x,0,1/0)}:function(g){var E=h(g),S=Math.cos(E),C=Math.sin(E);return"M"+[s+o*S,l-o*C]+"L"+[s+a*S,l-a*C]},m=_d.makeLabelFns(f,0),w=m.labelStandoff,_={};_.xFn=function(g){var E=h(g);return Math.cos(E)*w},_.yFn=function(g){var E=h(g),S=Math.sin(E)>0?.2:1;return-Math.sin(E)*(w+g.fontSize*S)+Math.abs(Math.cos(E))*(g.fontSize*Ozr)},_.anchorFn=function(g){var E=h(g),S=Math.cos(E);return Math.abs(S)<.1?"middle":S>0?"start":"end"},_.heightFn=function(g,E,S){var C=h(g);return-.5*(1+Math.sin(C))*S};var b=fvt(u);r.angularTickLayout!==b&&(n["angular-axis"].selectAll("."+f._id+"tick").remove(),r.angularTickLayout=b);var M=c?[1/0].concat(f.tickvals||[]).map(function(g){return _d.tickText(f,g,!0,!1)}):_d.calcTicks(f);c&&(M[0].text="\u221E",M[0].fontSize*=1.75);var x;if(t.gridshape==="linear"?(x=M.map(h),Ff.angleDelta(x[0],x[1])<0&&(x=x.slice().reverse())):x=null,r.vangles=x,f.type==="category"&&(M=M.filter(function(g){return Ff.isAngleInsideSector(h(g),r.sectorInRad)})),f.visible){var A=f.ticks==="inside"?-1:1,T=(f.linewidth||1)/2;_d.drawTicks(i,f,{vals:M,layer:n["angular-axis"],path:"M"+A*T+",0h"+A*f.ticklen,transFn:v,crisp:!1}),_d.drawGrid(i,f,{vals:M,layer:n["angular-grid"],path:y,transFn:Ff.noop,crisp:!1}),_d.drawLabels(i,f,{vals:M,layer:n["angular-axis"],repositionOnUpdate:!0,transFn:p,labelFns:_})}gD(n["angular-line"].select("path"),u.showline,{d:r.pathSubplot(),transform:Ch(s,l)}).attr("stroke-width",u.linewidth).call(SN.stroke,u.linecolor)};Gh.updateFx=function(e,t){if(!this.gd._context.staticPlot){var r=!this.isSmith;r&&(this.updateAngularDrag(e),this.updateRadialDrag(e,t,0),this.updateRadialDrag(e,t,1)),this.updateHoverAndMainDrag(e)}};Gh.updateHoverAndMainDrag=function(e){var t=this,r=t.isSmith,i=t.gd,n=t.layers,a=e._zoomlayer,o=Dx.MINZOOM,s=Dx.OFFEDGE,l=t.radius,u=t.innerRadius,f=t.cx,c=t.cy,h=t.cxx,d=t.cyy,p=t.sectorInRad,v=t.vangles,y=t.radialAxis,m=dg.clampTiny,w=dg.findXYatLength,_=dg.findEnclosingVertexAngles,b=Dx.cornerHalfWidth,M=Dx.cornerLen/2,x,A,T=hg.makeDragger(n,"path","maindrag",e.dragmode===!1?"none":"crosshair");R3.select(T).attr("d",t.pathSubplot()).attr("transform",Ch(f,c)),T.onmousemove=function(ie){nvt.hover(i,ie,t.id),i._fullLayout._lasthover=T,i._fullLayout._hoversubplot=t.id},T.onmouseout=function(ie){i._dragging||MN.unhover(i,ie)};var g={element:T,gd:i,subplot:t.id,plotinfo:{id:t.id,xaxis:t.xaxis,yaxis:t.yaxis},xaxes:[t.xaxis],yaxes:[t.yaxis]},E,S,C,k,D,L,P,I,F;function z(ie,de){return Math.sqrt(ie*ie+de*de)}function B(ie,de){return z(ie-h,de-d)}function O(ie,de){return Math.atan2(d-de,ie-h)}function W(ie,de){return[ie*Math.cos(de),ie*Math.sin(-de)]}function X(ie,de){if(ie===0)return t.pathSector(2*b);var ge=M/ie,Ie=de-ge,Ce=de+ge,le=Math.max(0,Math.min(ie,l)),re=le-b,Ee=le+b;return"M"+W(re,Ie)+"A"+[re,re]+" 0,0,0 "+W(re,Ce)+"L"+W(Ee,Ce)+"A"+[Ee,Ee]+" 0,0,1 "+W(Ee,Ie)+"Z"}function Z(ie,de,ge){if(ie===0)return t.pathSector(2*b);var Ie=W(ie,de),Ce=W(ie,ge),le=m((Ie[0]+Ce[0])/2),re=m((Ie[1]+Ce[1])/2),Ee,we;if(le&&re){var oe=re/le,Y=-1/oe,ne=w(b,oe,le,re);Ee=w(M,Y,ne[0][0],ne[0][1]),we=w(M,Y,ne[1][0],ne[1][1])}else{var ye,U;re?(ye=M,U=b):(ye=b,U=M),Ee=[[le-ye,re-U],[le+ye,re-U]],we=[[le-ye,re+U],[le+ye,re+U]]}return"M"+Ee.join("L")+"L"+we.reverse().join("L")+"Z"}function j(){C=null,k=null,D=t.pathSubplot(),L=!1;var ie=i._fullLayout[t.id];P=SN.luminosity(ie.bgcolor),I=hg.makeZoombox(a,P,f,c,D),I.attr("fill-rule","evenodd"),F=hg.makeCorners(a,f,c),lle(i)}function q(ie,de){return de=Math.max(Math.min(de,l),u),ieo?(ie-1&&ie===1&&qzr(de,i,[t.xaxis],[t.yaxis],t.id,g),ge.indexOf("event")>-1&&nvt.click(i,de,t.id)}g.prepFn=function(ie,de,ge){var Ie=i._fullLayout.dragmode,Ce=T.getBoundingClientRect();i._fullLayout._calcInverseTransform(i);var le=i._fullLayout._invTransform;x=i._fullLayout._invScaleX,A=i._fullLayout._invScaleY;var re=Ff.apply3DTransform(le)(de-Ce.left,ge-Ce.top);if(E=re[0],S=re[1],v){var Ee=dg.findPolygonOffset(l,p[0],p[1],v);E+=h+Ee[0],S+=d+Ee[1]}switch(Ie){case"zoom":g.clickFn=te,r||(v?g.moveFn=J:g.moveFn=N,g.doneFn=H,j(ie,de,ge));break;case"select":case"lasso":Bzr(ie,de,ge,g,Ie);break}},MN.init(g)};Gh.updateRadialDrag=function(e,t,r){var i=this,n=i.gd,a=i.layers,o=i.radius,s=i.innerRadius,l=i.cx,u=i.cy,f=i.radialAxis,c=Dx.radialDragBoxSize,h=c/2;if(!f.visible)return;var d=Fx(i.radialAxisAngle),p=f._rl,v=p[0],y=p[1],m=p[r],w=.75*(p[1]-p[0])/(1-i.getHole(t))/o,_,b,M;r?(_=l+(o+h)*Math.cos(d),b=u-(o+h)*Math.sin(d),M="radialdrag"):(_=l+(s-h)*Math.cos(d),b=u-(s-h)*Math.sin(d),M="radialdrag-inner");var x=hg.makeRectDragger(a,M,"crosshair",-h,-h,c,c),A={element:x,gd:n};e.dragmode===!1&&(A.dragmode=!1),gD(R3.select(x),f.visible&&s0!=(r?E>v:E=90||n>90&&a>=450?d=1:s<=0&&u<=0?d=0:d=Math.max(s,u),n<=180&&a>=180||n>180&&a>=540?f=-1:o>=0&&l>=0?f=0:f=Math.min(o,l),n<=270&&a>=270||n>270&&a>=630?c=-1:s>=0&&u>=0?c=0:c=Math.min(s,u),a>=360?h=1:o<=0&&l<=0?h=0:h=Math.max(o,l),[f,c,h,d]}function cvt(e,t){var r=function(n){return Ff.angleDist(e,n)},i=Ff.findIndexOfMin(t,r);return t[i]}function gD(e,t,r){return t?(e.attr("display",null),e.attr(r)):e&&e.attr("display","none"),e}});var fle=K((Mhi,gvt)=>{"use strict";var Hzr=Nc(),pl=Lh(),jzr=kf().attributes,Ep=Mt().extendFlat,dvt=Ef().overrideAll,pvt=dvt({color:pl.color,showline:Ep({},pl.showline,{dflt:!0}),linecolor:pl.linecolor,linewidth:pl.linewidth,showgrid:Ep({},pl.showgrid,{dflt:!0}),gridcolor:pl.gridcolor,gridwidth:pl.gridwidth,griddash:pl.griddash},"plot","from-root"),vvt=dvt({tickmode:pl.minor.tickmode,nticks:pl.nticks,tick0:pl.tick0,dtick:pl.dtick,tickvals:pl.tickvals,ticktext:pl.ticktext,ticks:pl.ticks,ticklen:pl.ticklen,tickwidth:pl.tickwidth,tickcolor:pl.tickcolor,ticklabelstep:pl.ticklabelstep,showticklabels:pl.showticklabels,labelalias:pl.labelalias,minorloglabels:pl.minorloglabels,showtickprefix:pl.showtickprefix,tickprefix:pl.tickprefix,showticksuffix:pl.showticksuffix,ticksuffix:pl.ticksuffix,showexponent:pl.showexponent,exponentformat:pl.exponentformat,minexponent:pl.minexponent,separatethousands:pl.separatethousands,tickfont:pl.tickfont,tickangle:pl.tickangle,tickformat:pl.tickformat,tickformatstops:pl.tickformatstops,layer:pl.layer},"plot","from-root"),mvt={visible:Ep({},pl.visible,{dflt:!0}),type:Ep({},pl.type,{values:["-","linear","log","date","category"]}),autotypenumbers:pl.autotypenumbers,autorangeoptions:{minallowed:pl.autorangeoptions.minallowed,maxallowed:pl.autorangeoptions.maxallowed,clipmin:pl.autorangeoptions.clipmin,clipmax:pl.autorangeoptions.clipmax,include:pl.autorangeoptions.include,editType:"plot"},autorange:Ep({},pl.autorange,{editType:"plot"}),rangemode:{valType:"enumerated",values:["tozero","nonnegative","normal"],dflt:"tozero",editType:"calc"},minallowed:Ep({},pl.minallowed,{editType:"plot"}),maxallowed:Ep({},pl.maxallowed,{editType:"plot"}),range:Ep({},pl.range,{items:[{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}}],editType:"plot"}),categoryorder:pl.categoryorder,categoryarray:pl.categoryarray,angle:{valType:"angle",editType:"plot"},autotickangles:pl.autotickangles,side:{valType:"enumerated",values:["clockwise","counterclockwise"],dflt:"clockwise",editType:"plot"},title:{text:Ep({},pl.title.text,{editType:"plot",dflt:""}),font:Ep({},pl.title.font,{editType:"plot"}),editType:"plot"},hoverformat:pl.hoverformat,uirevision:{valType:"any",editType:"none"},editType:"calc"};Ep(mvt,pvt,vvt);var yvt={visible:Ep({},pl.visible,{dflt:!0}),type:{valType:"enumerated",values:["-","linear","category"],dflt:"-",editType:"calc",_noTemplating:!0},autotypenumbers:pl.autotypenumbers,categoryorder:pl.categoryorder,categoryarray:pl.categoryarray,thetaunit:{valType:"enumerated",values:["radians","degrees"],dflt:"degrees",editType:"calc"},period:{valType:"number",editType:"calc",min:0},direction:{valType:"enumerated",values:["counterclockwise","clockwise"],dflt:"counterclockwise",editType:"calc"},rotation:{valType:"angle",editType:"calc"},hoverformat:pl.hoverformat,uirevision:{valType:"any",editType:"none"},editType:"calc"};Ep(yvt,pvt,vvt);gvt.exports={domain:jzr({name:"polar",editType:"plot"}),sector:{valType:"info_array",items:[{valType:"number",editType:"plot"},{valType:"number",editType:"plot"}],dflt:[0,360],editType:"plot"},hole:{valType:"number",min:0,max:1,dflt:0,editType:"plot"},bgcolor:{valType:"color",editType:"plot",dflt:Hzr.background},radialaxis:mvt,angularaxis:yvt,gridshape:{valType:"enumerated",values:["circular","linear"],dflt:"circular",editType:"plot"},uirevision:{valType:"any",editType:"none"},editType:"calc"}});var wvt=K((Shi,_vt)=>{"use strict";var kN=Mt(),Wzr=ko(),$zr=fu(),Yzr=Jb(),Xzr=Xh().getSubplotData,Zzr=ub(),Kzr=Ew(),Jzr=Pg(),Qzr=zg(),eIr=XP(),tIr=DM(),rIr=LH(),iIr=Pw(),bvt=fle(),nIr=nle(),CN=(bN(),ar(xN)),xvt=CN.axisNames;function aIr(e,t,r,i){var n=r("bgcolor");i.bgColor=Wzr.combine(n,i.paper_bgcolor);var a=r("sector");r("hole");var o=Xzr(i.fullData,CN.name,i.id),s=i.layoutOut,l;function u(I,F){return r(l+"."+I,F)}for(var f=0;f{"use strict";var sIr=Xh().getSubplotCalcData,lIr=Mt().counterRegex,uIr=ule(),Tvt=(bN(),ar(xN)),Mvt=Tvt.attr,O3=Tvt.name,Avt=lIr(O3),Svt={};Svt[Mvt]={valType:"subplotid",dflt:O3,editType:"calc"};function fIr(e){for(var t=e._fullLayout,r=e.calcdata,i=t._subplots[O3],n=0;n{"use strict";var{hovertemplateAttrs:hIr,texttemplateAttrs:dIr,templatefallbackAttrs:kvt}=yu(),FN=Os().extendFlat,pIr=im(),kp=Zf(),vIr=Au(),ET=kp.line;Cvt.exports={mode:kp.mode,r:{valType:"data_array",editType:"calc+clearAxisTypes"},theta:{valType:"data_array",editType:"calc+clearAxisTypes"},r0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes"},dr:{valType:"number",dflt:1,editType:"calc"},theta0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes"},dtheta:{valType:"number",editType:"calc"},thetaunit:{valType:"enumerated",values:["radians","degrees","gradians"],dflt:"degrees",editType:"calc+clearAxisTypes"},text:kp.text,texttemplate:dIr({editType:"plot"},{keys:["r","theta","text"]}),texttemplatefallback:kvt({editType:"plot"}),hovertext:kp.hovertext,line:{color:ET.color,width:ET.width,dash:ET.dash,backoff:ET.backoff,shape:FN({},ET.shape,{values:["linear","spline"]}),smoothing:ET.smoothing,editType:"calc"},connectgaps:kp.connectgaps,marker:kp.marker,cliponaxis:FN({},kp.cliponaxis,{dflt:!1}),textposition:kp.textposition,textfont:kp.textfont,fill:FN({},kp.fill,{values:["none","toself","tonext"],dflt:"none"}),fillcolor:pIr(),hoverinfo:FN({},vIr.hoverinfo,{flags:["r","theta","text","name"]}),hoveron:kp.hoveron,hovertemplate:hIr(),hovertemplatefallback:kvt(),selected:kp.selected,unselected:kp.unselected}});var PN=K((Chi,Lvt)=>{"use strict";var LN=Mt(),kT=ff(),mIr=Yp(),yIr=Zv(),Dvt=Jw(),gIr=Kv(),xIr=am(),bIr=(rm(),ar(tm)).PTS_LINESONLY,_Ir=xD();function wIr(e,t,r,i){function n(s,l){return LN.coerce(e,t,_Ir,s,l)}var a=Fvt(e,t,i,n);if(!a){t.visible=!1;return}n("thetaunit"),n("mode",a{"use strict";var AIr=Mt(),Pvt=Cs();zvt.exports=function(t,r,i){var n={},a=i[r.subplot]._subplot,o,s;a?(o=a.radialAxis,s=a.angularAxis):(a=i[r.subplot],o=a.radialaxis,s=a.angularaxis);var l=o.c2l(t.r);n.rLabel=Pvt.tickText(o,l,!0).text;var u=s.thetaunit==="degrees"?AIr.rad2deg(t.theta):t.theta;return n.thetaLabel=Pvt.tickText(s,u,!0).text,n}});var Bvt=K((Fhi,Rvt)=>{"use strict";var Ivt=Gs(),TIr=(Il(),ar(Bl)).BADNUM,MIr=Cs(),SIr=Xp(),EIr=om(),kIr=np(),CIr=Zp().calcMarkerSize;Rvt.exports=function(t,r){for(var i=t._fullLayout,n=r.subplot,a=i[n].radialaxis,o=i[n].angularaxis,s=a.makeCalcdata(r,"r"),l=o.makeCalcdata(r,"theta"),u=r._length,f=new Array(u),c=0;c{"use strict";var DIr=nA(),qvt=(Il(),ar(Bl)).BADNUM;Ovt.exports=function(t,r,i){for(var n=r.layers.frontplot.select("g.scatterlayer"),a=r.xaxis,o=r.yaxis,s={xaxis:a,yaxis:o,plot:r.framework,layerClipId:r._hasClipOnAxisFalse?r.clipIds.forTraces:null},l=r.radialAxis,u=r.angularAxis,f=0;f{"use strict";var FIr=lA();function LIr(e,t,r,i){var n=FIr(e,t,r,i);if(!(!n||n[0].index===!1)){var a=n[0];if(a.index===void 0)return n;var o=e.subplot,s=a.cd[a.index],l=a.trace;if(o.isPtInside(s))return a.xLabelVal=void 0,a.yLabelVal=void 0,Vvt(s,l,o,a),a.hovertemplate=l.hovertemplate,n}}function Vvt(e,t,r,i){var n=r.radialAxis,a=r.angularAxis;n._hovertitle="r",a._hovertitle="\u03B8";var o={};o[t.subplot]={_subplot:r};var s=t._module.formatLabels(e,t,o);i.rLabel=s.rLabel,i.thetaLabel=s.thetaLabel;var l=e.hi||t.hoverinfo,u=[];function f(h,d){u.push(h._hovertitle+": "+d)}if(!t.hovertemplate){var c=l.split("+");c.indexOf("all")!==-1&&(c=["r","theta","text"]),c.indexOf("r")!==-1&&f(n,i.rLabel),c.indexOf("theta")!==-1&&f(a,i.thetaLabel),c.indexOf("text")!==-1&&i.text&&(u.push(i.text),delete i.text),i.extraText=u.join("
")}}Uvt.exports={hoverPoints:LIr,makeHoverPointText:Vvt}});var Hvt=K((zhi,Gvt)=>{"use strict";Gvt.exports={moduleType:"trace",name:"scatterpolar",basePlotModule:DN(),categories:["polar","symbols","showLegend","scatter-like"],attributes:xD(),supplyDefaults:PN().supplyDefaults,colorbar:Qh(),formatLabels:zN(),calc:Bvt(),plot:Nvt(),style:fd().style,styleOnSelect:fd().styleOnSelect,hoverPoints:IN().hoverPoints,selectPoints:Rb(),meta:{}}});var Wvt=K((Ihi,jvt)=>{"use strict";jvt.exports=Hvt()});var cle=K((qhi,Yvt)=>{"use strict";var $vt=xD(),{cliponaxis:Rhi,hoveron:Bhi}=$vt,PIr=CD($vt,["cliponaxis","hoveron"]),{connectgaps:zIr,line:{color:IIr,dash:RIr,width:BIr},fill:qIr,fillcolor:OIr,marker:NIr,textfont:VIr,textposition:UIr}=OE();Yvt.exports=Ql(Zs({},PIr),{connectgaps:zIr,fill:qIr,fillcolor:OIr,line:{color:IIr,dash:RIr,editType:"calc",width:BIr},marker:NIr,textfont:VIr,textposition:UIr})});var Kvt=K((Nhi,Zvt)=>{"use strict";var Xvt=Mt(),hle=ff(),GIr=PN().handleRThetaDefaults,HIr=Yp(),jIr=Zv(),WIr=Kv(),$Ir=am(),YIr=(rm(),ar(tm)).PTS_LINESONLY,XIr=cle();Zvt.exports=function(t,r,i,n){function a(s,l){return Xvt.coerce(t,r,XIr,s,l)}var o=GIr(t,r,n,a);if(!o){r.visible=!1;return}a("thetaunit"),a("mode",o{"use strict";var ZIr=zN();Jvt.exports=function(t,r,i){var n=t.i;return"r"in t||(t.r=r._r[n]),"theta"in t||(t.theta=r._theta[n]),ZIr(t,r,i)}});var t1t=K((Uhi,e1t)=>{"use strict";var KIr=Xp(),JIr=Zp().calcMarkerSize,QIr=G_(),eRr=Cs(),tRr=(G2(),ar(U2)).TOO_MANY_POINTS;e1t.exports=function(t,r){var i=t._fullLayout,n=r.subplot,a=i[n].radialaxis,o=i[n].angularaxis,s=r._r=a.makeCalcdata(r,"r"),l=r._theta=o.makeCalcdata(r,"theta"),u=r._length,f={};u{"use strict";var rRr=qR(),iRr=IN().makeHoverPointText;function nRr(e,t,r,i){var n=e.cd,a=n[0].t,o=a.r,s=a.theta,l=rRr.hoverPoints(e,t,r,i);if(!(!l||l[0].index===!1)){var u=l[0];if(u.index===void 0)return l;var f=e.subplot,c=u.cd[u.index],h=u.trace;if(c.r=o[u.index],c.theta=s[u.index],!!f.isPtInside(c))return u.xLabelVal=void 0,u.yLabelVal=void 0,iRr(c,h,f,u),l}}r1t.exports={hoverPoints:nRr}});var a1t=K((Hhi,n1t)=>{"use strict";n1t.exports={moduleType:"trace",name:"scatterpolargl",basePlotModule:DN(),categories:["gl","regl","polar","symbols","showLegend","scatter-like"],attributes:cle(),supplyDefaults:Kvt(),colorbar:Qh(),formatLabels:Qvt(),calc:t1t(),hoverPoints:i1t().hoverPoints,selectPoints:Vee(),meta:{}}});var o1t=K((jhi,dle)=>{"use strict";var aRr=UR(),oRr=Gs(),sRr=Gte(),lRr=qee(),RN=G_(),BN=Mt(),uRr=(G2(),ar(U2)).TOO_MANY_POINTS,fRr={};dle.exports=function(t,r,i){if(i.length){var n=r.radialAxis,a=r.angularAxis,o=lRr(t,r);return i.forEach(function(s){if(!(!s||!s[0]||!s[0].trace)){var l=s[0],u=l.trace,f=l.t,c=u._length,h=f.r,d=f.theta,p=f.opts,v,y=h.slice(),m=d.slice();for(v=0;v=uRr&&(p.marker.cluster=f.tree),p.marker&&(p.markerSel.positions=p.markerUnsel.positions=p.marker.positions=w),p.line&&w.length>1&&BN.extendFlat(p.line,RN.linePositions(t,u,w)),p.text&&(BN.extendFlat(p.text,{positions:w},RN.textPosition(t,u,p.text,p.marker)),BN.extendFlat(p.textSel,{positions:w},RN.textPosition(t,u,p.text,p.markerSel)),BN.extendFlat(p.textUnsel,{positions:w},RN.textPosition(t,u,p.text,p.markerUnsel))),p.fill&&!o.fill2d&&(o.fill2d=!0),p.marker&&!o.scatter2d&&(o.scatter2d=!0),p.line&&!o.line2d&&(o.line2d=!0),p.text&&!o.glText&&(o.glText=!0),o.lineOptions.push(p.line),o.fillOptions.push(p.fill),o.markerOptions.push(p.marker),o.markerSelectedOptions.push(p.markerSel),o.markerUnselectedOptions.push(p.markerUnsel),o.textOptions.push(p.text),o.textSelectedOptions.push(p.textSel),o.textUnselectedOptions.push(p.textUnsel),o.selectBatch.push([]),o.unselectBatch.push([]),f.x=_,f.y=b,f.rawx=_,f.rawy=b,f.r=h,f.theta=d,f.positions=w,f._scene=o,f.index=o.count,o.count++}}),sRr(t,r,i)}};dle.exports.reglPrecompiled=fRr});var l1t=K((Whi,s1t)=>{"use strict";var cRr=wB(),hRr=AB(),dRr=TB(),pRr=MB(),vRr=SB(),mRr=EB(),yRr=kB(),gRr=CB(),xRr=DB(),bRr=FB();s1t.exports={"3e771157d23b4793771f65d83e6387262ed73d488209157f19a7fa027bddd71b":cRr,"49e82bba439f1d9d441c17ba252d05640bc63fefdf22d1219993633af7730210":hRr,"6a5d6bd29c15cf7614221b94c3f384df47c2c46fbe4456e8c57b5cd14c84d923":dRr,"8902aff2b23b600f8103bcc84a8af2999d28795208aedadc2db06f921f9c7034":pRr,"8fad2284703471df7c0e0d0a7b96d983e8c53f6d707dd55d5921c1eab71f6623":vRr,bfc540da96a87fcc039073cb37b45e6b81ef5ee6ef3529d726ceed8336354019:mRr,cbf700f001fff25b649fba9c37fa0dc6631c1cdee318ad49473d28ec10dcee81:yRr,db1b82c68771e7f5012fad1fbdae7ff23b526e58d2995bf6dd2cf30024e0f41d:gRr,dbd1cc9126a137a605df67dc0706e55116f04e33b4545a80042031752de5aef5:xRr,fe5b6844077cde1bdd7273f4495969fad93500c26a69b62e74ec2664c447bcc7:bRr}});var f1t=K(($hi,u1t)=>{"use strict";var ple=o1t(),_Rr=l1t(),wRr=Hte();Object.assign(ple.reglPrecompiled,_Rr);Object.assign(ple.reglPrecompiled,wRr);u1t.exports=ple});var d1t=K((Yhi,h1t)=>{"use strict";var c1t=a1t();c1t.plot=f1t();h1t.exports=c1t});var vle=K((Xhi,p1t)=>{"use strict";var{hovertemplateAttrs:ARr,templatefallbackAttrs:TRr}=yu(),CT=Os().extendFlat,Lx=xD(),Px=um();p1t.exports={r:Lx.r,theta:Lx.theta,r0:Lx.r0,dr:Lx.dr,theta0:Lx.theta0,dtheta:Lx.dtheta,thetaunit:Lx.thetaunit,base:CT({},Px.base,{}),offset:CT({},Px.offset,{}),width:CT({},Px.width,{}),text:CT({},Px.text,{}),hovertext:CT({},Px.hovertext,{}),marker:MRr(),hoverinfo:Lx.hoverinfo,hovertemplate:ARr(),hovertemplatefallback:TRr(),selected:Px.selected,unselected:Px.unselected};function MRr(){var e=CT({},Px.marker);return delete e.cornerradius,e}});var mle=K((Zhi,v1t)=>{"use strict";v1t.exports={barmode:{valType:"enumerated",values:["stack","overlay"],dflt:"stack",editType:"calc"},bargap:{valType:"number",dflt:.1,min:0,max:1,editType:"calc"}}});var g1t=K((Khi,y1t)=>{"use strict";var m1t=Mt(),SRr=PN().handleRThetaDefaults,ERr=P8(),kRr=vle();y1t.exports=function(t,r,i,n){function a(s,l){return m1t.coerce(t,r,kRr,s,l)}var o=SRr(t,r,n,a);if(!o){r.visible=!1;return}a("thetaunit"),a("base"),a("offset"),a("width"),a("text"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback"),ERr(t,r,a,i,n),m1t.coerceSelectionMarkerOpacity(r,a)}});var b1t=K((Jhi,x1t)=>{"use strict";var CRr=Mt(),DRr=mle();x1t.exports=function(e,t,r){var i={},n;function a(l,u){return CRr.coerce(e[n]||{},t[n],DRr,l,u)}for(var o=0;o{"use strict";var _1t=Zh().hasColorscale,w1t=A0(),FRr=Mt().isArrayOrTypedArray,LRr=WM(),PRr=Ib().setGroupPositions,zRr=np(),IRr=Ho().traceIs,RRr=Mt().extendFlat;function BRr(e,t){for(var r=e._fullLayout,i=t.subplot,n=r[i].radialaxis,a=r[i].angularaxis,o=n.makeCalcdata(t,"r"),s=a.makeCalcdata(t,"theta"),l=t._length,u=new Array(l),f=o,c=s,h=0;h{"use strict";var T1t=No(),qN=Gs(),DT=Mt(),ORr=Bs(),gle=wN();M1t.exports=function(t,r,i){var n=t._context.staticPlot,a=r.xaxis,o=r.yaxis,s=r.radialAxis,l=r.angularAxis,u=NRr(r),f=r.layers.frontplot.select("g.barlayer");DT.makeTraceGroups(f,i,"trace bars").each(function(){var c=T1t.select(this),h=DT.ensureSingle(c,"g","points"),d=h.selectAll("g.point").data(DT.identity);d.enter().append("g").style("vector-effect",n?"none":"non-scaling-stroke").style("stroke-miterlimit",2).classed("point",!0),d.exit().remove(),d.each(function(p){var v=T1t.select(this),y=p.rp0=s.c2p(p.s0),m=p.rp1=s.c2p(p.s1),w=p.thetag0=l.c2g(p.p0),_=p.thetag1=l.c2g(p.p1),b;if(!qN(y)||!qN(m)||!qN(w)||!qN(_)||y===m||w===_)b="M0,0Z";else{var M=s.c2g(p.s1),x=(w+_)/2;p.ct=[a.c2p(M*Math.cos(x)),o.c2p(M*Math.sin(x))],b=u(y,m,w,_)}DT.ensureSingle(v,"path").attr("d",b)}),ORr.setClipUrl(c,r._hasClipOnAxisFalse?r.clipIds.forTraces:null,t)})};function NRr(e){var t=e.cxx,r=e.cyy;return e.vangles?function(i,n,a,o){var s,l;DT.angleDelta(a,o)>0?(s=a,l=o):(s=o,l=a);var u=gle.findEnclosingVertexAngles(s,e.vangles)[0],f=gle.findEnclosingVertexAngles(l,e.vangles)[1],c=[u,(s+l)/2,f];return gle.pathPolygonAnnulus(i,n,s,l,c,t,r)}:function(i,n,a,o){return DT.pathAnnulus(i,n,a,o,t,r)}}});var k1t=K((t0i,E1t)=>{"use strict";var VRr=Uf(),xle=Mt(),URr=wA().getTraceColor,GRr=xle.fillText,HRr=IN().makeHoverPointText,jRr=wN().isPtInsidePolygon;E1t.exports=function(t,r,i){var n=t.cd,a=n[0].trace,o=t.subplot,s=o.radialAxis,l=o.angularAxis,u=o.vangles,f=u?jRr:xle.isPtInsideSector,c=t.maxHoverDistance,h=l._period||2*Math.PI,d=Math.abs(s.g2p(Math.sqrt(r*r+i*i))),p=Math.atan2(i,r);s.range[0]>s.range[1]&&(p+=Math.PI);var v=function(_){return f(d,p,[_.rp0,_.rp1],[_.thetag0,_.thetag1],u)?c+Math.min(1,Math.abs(_.thetag1-_.thetag0)/h)-1+(_.rp1-d)/(_.rp1-_.rp0)-1:1/0};if(VRr.getClosest(n,v,t),t.index!==!1){var y=t.index,m=n[y];t.x0=t.x1=m.ct[0],t.y0=t.y1=m.ct[1];var w=xle.extendFlat({},m,{r:m.s,theta:m.p});return GRr(m,a,t),HRr(w,a,o,t),t.hovertemplate=a.hovertemplate,t.color=URr(a,m),t.xLabelVal=t.yLabelVal=void 0,m.s<0&&(t.idealAlign="left"),[t]}}});var D1t=K((r0i,C1t)=>{"use strict";C1t.exports={moduleType:"trace",name:"barpolar",basePlotModule:DN(),categories:["polar","bar","showLegend"],attributes:vle(),layoutAttributes:mle(),supplyDefaults:g1t(),supplyLayoutDefaults:b1t(),calc:yle().calc,crossTraceCalc:yle().crossTraceCalc,plot:S1t(),colorbar:Qh(),formatLabels:zN(),style:ev().style,styleOnSelect:ev().styleOnSelect,hoverPoints:k1t(),selectPoints:AA(),meta:{}}});var L1t=K((i0i,F1t)=>{"use strict";F1t.exports=D1t()});var ble={};Fl(ble,{attr:()=>WRr,axisName2dataArray:()=>XRr,axisNames:()=>YRr,name:()=>$Rr});var WRr,$Rr,YRr,XRr,_le=ps(()=>{"use strict";WRr="subplot",$Rr="smith",YRr=["realaxis","imaginaryaxis"],XRr={imaginaryaxis:"imag",realaxis:"real"}});var wle=K((n0i,R1t)=>{"use strict";var ZRr=Nc(),dc=Lh(),KRr=kf().attributes,zx=Mt().extendFlat,P1t=Ef().overrideAll,z1t=P1t({color:dc.color,showline:zx({},dc.showline,{dflt:!0}),linecolor:dc.linecolor,linewidth:dc.linewidth,showgrid:zx({},dc.showgrid,{dflt:!0}),gridcolor:dc.gridcolor,gridwidth:dc.gridwidth,griddash:dc.griddash},"plot","from-root"),I1t=P1t({ticklen:dc.ticklen,tickwidth:zx({},dc.tickwidth,{dflt:2}),tickcolor:dc.tickcolor,showticklabels:dc.showticklabels,labelalias:dc.labelalias,showtickprefix:dc.showtickprefix,tickprefix:dc.tickprefix,showticksuffix:dc.showticksuffix,ticksuffix:dc.ticksuffix,tickfont:dc.tickfont,tickformat:dc.tickformat,hoverformat:dc.hoverformat,layer:dc.layer},"plot","from-root"),JRr=zx({visible:zx({},dc.visible,{dflt:!0}),tickvals:{dflt:[.2,.5,1,2,5],valType:"data_array",editType:"plot"},tickangle:zx({},dc.tickangle,{dflt:90}),ticks:{valType:"enumerated",values:["top","bottom",""],editType:"ticks"},side:{valType:"enumerated",values:["top","bottom"],dflt:"top",editType:"plot"},editType:"calc"},z1t,I1t),QRr=zx({visible:zx({},dc.visible,{dflt:!0}),tickvals:{valType:"data_array",editType:"plot"},ticks:dc.ticks,editType:"calc"},z1t,I1t);R1t.exports={domain:KRr({name:"smith",editType:"plot"}),bgcolor:{valType:"color",editType:"plot",dflt:ZRr.background},realaxis:JRr,imaginaryaxis:QRr,editType:"calc"}});var O1t=K((a0i,q1t)=>{"use strict";var FT=Mt(),eBr=ko(),tBr=fu(),rBr=Jb(),iBr=Xh().getSubplotData,nBr=zg(),aBr=Pg(),oBr=DM(),sBr=G1(),LT=wle(),Ale=(_le(),ar(ble)),B1t=Ale.axisNames,lBr=fBr(function(e){return FT.isTypedArray(e)&&(e=Array.from(e)),e.slice().reverse().map(function(t){return-t}).concat([0]).concat(e)},String);function uBr(e,t,r,i){var n=r("bgcolor");i.bgColor=eBr.combine(n,i.paper_bgcolor);var a=iBr(i.fullData,Ale.name,i.id),o=i.layoutOut,s;function l(M,x){return r(s+"."+M,x)}for(var u=0;u{"use strict";var cBr=Xh().getSubplotCalcData,hBr=Mt().counterRegex,dBr=ule(),V1t=(_le(),ar(ble)),U1t=V1t.attr,N3=V1t.name,N1t=hBr(N3),G1t={};G1t[U1t]={valType:"subplotid",dflt:N3,editType:"calc"};function pBr(e){for(var t=e._fullLayout,r=e.calcdata,i=t._subplots[N3],n=0;n{"use strict";var{hovertemplateAttrs:mBr,texttemplateAttrs:yBr,templatefallbackAttrs:W1t}=yu(),ON=Os().extendFlat,gBr=im(),Cp=Zf(),xBr=Au(),PT=Cp.line;$1t.exports={mode:Cp.mode,real:{valType:"data_array",editType:"calc+clearAxisTypes"},imag:{valType:"data_array",editType:"calc+clearAxisTypes"},text:Cp.text,texttemplate:yBr({editType:"plot"},{keys:["real","imag","text"]}),texttemplatefallback:W1t({editType:"plot"}),hovertext:Cp.hovertext,line:{color:PT.color,width:PT.width,dash:PT.dash,backoff:PT.backoff,shape:ON({},PT.shape,{values:["linear","spline"]}),smoothing:PT.smoothing,editType:"calc"},connectgaps:Cp.connectgaps,marker:Cp.marker,cliponaxis:ON({},Cp.cliponaxis,{dflt:!1}),textposition:Cp.textposition,textfont:Cp.textfont,fill:ON({},Cp.fill,{values:["none","toself","tonext"],dflt:"none"}),fillcolor:gBr(),hoverinfo:ON({},xBr.hoverinfo,{flags:["real","imag","text","name"]}),hoveron:Cp.hoveron,hovertemplate:mBr(),hovertemplatefallback:W1t(),selected:Cp.selected,unselected:Cp.unselected}});var Z1t=K((l0i,X1t)=>{"use strict";var NN=Mt(),zT=ff(),bBr=Yp(),_Br=Zv(),Y1t=Jw(),wBr=Kv(),ABr=am(),TBr=(rm(),ar(tm)).PTS_LINESONLY,MBr=Tle();X1t.exports=function(t,r,i,n){function a(l,u){return NN.coerce(t,r,MBr,l,u)}var o=SBr(t,r,n,a);if(!o){r.visible=!1;return}a("mode",o{"use strict";var K1t=Cs();J1t.exports=function(t,r,i){var n={},a=i[r.subplot]._subplot;return n.realLabel=K1t.tickText(a.radialAxis,t.real,!0).text,n.imagLabel=K1t.tickText(a.angularAxis,t.imag,!0).text,n}});var rmt=K((f0i,tmt)=>{"use strict";var emt=Gs(),EBr=(Il(),ar(Bl)).BADNUM,kBr=Xp(),CBr=om(),DBr=np(),FBr=Zp().calcMarkerSize;tmt.exports=function(t,r){for(var i=t._fullLayout,n=r.subplot,a=i[n].realaxis,o=i[n].imaginaryaxis,s=a.makeCalcdata(r,"real"),l=o.makeCalcdata(r,"imag"),u=r._length,f=new Array(u),c=0;c{"use strict";var LBr=nA(),imt=(Il(),ar(Bl)).BADNUM,PBr=sle(),zBr=PBr.smith;nmt.exports=function(t,r,i){for(var n=r.layers.frontplot.select("g.scatterlayer"),a=r.xaxis,o=r.yaxis,s={xaxis:a,yaxis:o,plot:r.framework,layerClipId:r._hasClipOnAxisFalse?r.clipIds.forTraces:null},l=0;l{"use strict";var IBr=lA();function RBr(e,t,r,i){var n=IBr(e,t,r,i);if(!(!n||n[0].index===!1)){var a=n[0];if(a.index===void 0)return n;var o=e.subplot,s=a.cd[a.index],l=a.trace;if(o.isPtInside(s))return a.xLabelVal=void 0,a.yLabelVal=void 0,omt(s,l,o,a),a.hovertemplate=l.hovertemplate,n}}function omt(e,t,r,i){var n=r.radialAxis,a=r.angularAxis;n._hovertitle="real",a._hovertitle="imag";var o={};o[t.subplot]={_subplot:r};var s=t._module.formatLabels(e,t,o);i.realLabel=s.realLabel,i.imagLabel=s.imagLabel;var l=e.hi||t.hoverinfo,u=[];function f(h,d){u.push(h._hovertitle+": "+d)}if(!t.hovertemplate){var c=l.split("+");c.indexOf("all")!==-1&&(c=["real","imag","text"]),c.indexOf("real")!==-1&&f(n,i.realLabel),c.indexOf("imag")!==-1&&f(a,i.imagLabel),c.indexOf("text")!==-1&&i.text&&(u.push(i.text),delete i.text),i.extraText=u.join("
")}}smt.exports={hoverPoints:RBr,makeHoverPointText:omt}});var fmt=K((d0i,umt)=>{"use strict";umt.exports={moduleType:"trace",name:"scattersmith",basePlotModule:j1t(),categories:["smith","symbols","showLegend","scatter-like"],attributes:Tle(),supplyDefaults:Z1t(),colorbar:Qh(),formatLabels:Q1t(),calc:rmt(),plot:amt(),style:fd().style,styleOnSelect:fd().styleOnSelect,hoverPoints:lmt().hoverPoints,selectPoints:Rb(),meta:{}}});var hmt=K((p0i,cmt)=>{"use strict";cmt.exports=fmt()});var Sle=K((v0i,dmt)=>{"use strict";var BBr=Au(),qBr=yu().hovertemplateAttrs,VN=zf().axisHoverFormat,Mle=Os().extendFlat,OBr=Wu(),NBr=yh().dash,VBr=Xg(),V3=Zf(),UBr={x:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0},x0:V3.x0,dx:V3.dx,y:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0},y0:V3.y0,dy:V3.dy,u:{valType:"data_array",editType:"calc",anim:!0},v:{valType:"data_array",editType:"calc",anim:!0},arrowref:{valType:"enumerated",values:["paper","data"],dflt:"data",editType:"calc"},lengthmode:{valType:"enumerated",values:["scaled","raw"],editType:"calc",dflt:"scaled"},lengthfactor:{valType:"number",min:0,editType:"calc",dflt:1},anchor:{valType:"enumerated",values:["tip","tail","center"],dflt:"tail",editType:"calc"},xhoverformat:VN("x"),yhoverformat:VN("y"),uhoverformat:VN("u","noDate"),vhoverformat:VN("v","noDate"),hoverinfo:Mle({},BBr.hoverinfo,{flags:["x","y","u","v","text","name"],dflt:"all"}),hovertemplate:qBr({},{keys:["x","y","u","v","text","name"]}),text:V3.text,textposition:V3.textposition,textfont:V3.textfont,marker:Mle({arrowsize:Mle({},VBr.arrowsize,{editType:"calc"}),line:{width:{valType:"number",min:0,dflt:2,editType:"style"},dash:NBr,editType:"style"},editType:"calc"},OBr("marker",{showScaleDflt:!0,editTypeOverride:"calc"})),selected:{marker:{color:{valType:"color",editType:"style"},line:{width:{valType:"number",min:0,editType:"style"},editType:"style"},editType:"style"},textfont:{color:{valType:"color",editType:"style"},editType:"style"},editType:"style"},unselected:{marker:{color:{valType:"color",editType:"style"},line:{width:{valType:"number",min:0,editType:"style"},editType:"style"},editType:"style"},textfont:{color:{valType:"color",editType:"style"},editType:"style"},editType:"style"}};dmt.exports=UBr});var vmt=K((m0i,pmt)=>{"use strict";var bD=Mt(),GBr=Sle(),HBr=Pb(),jBr=Zh().hasColorscale,WBr=gh();pmt.exports=function(t,r,i,n){function a(p,v){return bD.coerce(t,r,GBr,p,v)}var o=HBr(t,r,n,a);if(!o){r.visible=!1;return}var s=a("u"),l=a("v");if(!bD.isArrayOrTypedArray(s)||s.length===0){r.u=new Array(o);for(var u=0;u{"use strict";var pg=Mt(),IT=Cs(),_D=Gs(),mmt=(Il(),ar(Bl)).BADNUM,$Br=A0(),YBr=np(),XBr=.97;ymt.exports=function(t,r){let i=r._xA=IT.getFromId(t,r.xaxis||"x","x"),n=r._yA=IT.getFromId(t,r.yaxis||"y","y"),a=i.makeCalcdata(r,"x"),o=n.makeCalcdata(r,"y"),s=Math.min(a.length,o.length);r._length=s;let l=new Array(s);var u=1/0,f=-1/0,c=1/0,h=-1/0;let d=r.marker.color,p=pg.isArrayOrTypedArray(d),v=r.u||[],y=r.v||[],{anchor:m,lengthmode:w,arrowref:_}=r,b=m==="tip",M=m==="center";for(var x=1/0,A=-1/0,T=1/0,g=-1/0,E=1/0,S=-1/0,C=1/0,k=-1/0,D=0,L=0;LA&&(A=a[L]),o[L]g&&(g=o[L]),zS&&(S=z),Bk&&(k=B);var O=Math.sqrt(z*z+B*B);if(O>f&&(f=O),Oh&&(h=W))}}else P.x=mmt,P.y=mmt}if(r._maxNorm=f,w==="scaled"||_==="paper"){let H=A-x,$=g-T;var X;H===0&&$===0?X=1:X=(H+$+Math.sqrt((H-$)*(H-$)+4*D*H*$))/(2*(D-1)),X*=XBr,r._scaleFactor=X/r._maxNorm}else r._scaleFactor=1;r._scaleFactor*=r.lengthfactor;let Z=new Array(s),j=new Array(s),q=new Array(s),Q=new Array(s);for(var N,V,L=0;L{"use strict";xmt.exports=function(t,r){}});var UN=K((x0i,Amt)=>{"use strict";var Ele=No(),_mt=Mt(),wD=Bs(),ZBr=gf(),KBr=(ey(),ar(Qm)).DESELECTDIM;function kle(e,t){var r=t.marker||{},i=ZBr.makeColorScaleFuncFromTrace(r);e.style("stroke",function(n){var a=r.color,o;if(_mt.isArrayOrTypedArray(a)&&a.length>n.i&&isFinite(a[n.i]))o=a[n.i];else{var s=t.u&&t.u[n.i]||0,l=t.v&&t.v[n.i]||0;o=Math.sqrt(s*s+l*l)}return n.mcc=i(o),n.mcc})}function JBr(e){var t=Ele.select(e).selectAll("g.trace.quiver");t.each(function(r){wmt(e,r,Ele.select(this))})}function QBr(e,t,r){wmt(e,t,r)}function wmt(e,t,r){var i=t[0].trace,n=i.marker||{},a=n.line||{},o=_mt.isArrayOrTypedArray(n.color)?void 0:n.color,s=i._hasColorscale;if(r)if(i.selectedpoints){var l=(i.selected||{}).marker||{},u=(i.unselected||{}).marker||{},f=l.line||{},c=u.line||{};r.selectAll("path.js-line").each(function(d){var p=Ele.select(this),v=!d.selected,y=v?u.color:l.color,m=v?c.width!==void 0?c.width:a.width:f.width!==void 0?f.width:a.width;y?(wD.lineGroupStyle(p,m,y,a.dash),p.style("stroke-opacity",1)):(wD.lineGroupStyle(p,m,o,a.dash),s&&kle(p,i),p.style("stroke-opacity",v?KBr:1))}),wD.selectedTextStyle(r.selectAll("text"),i)}else{var h=r.selectAll("path.js-line");h.call(wD.lineGroupStyle,a.width,o,a.dash),s&&kle(h,i),h.style("stroke-opacity",1),wD.textPointStyle(r.selectAll("text"),i,e)}}Amt.exports={style:JBr,styleOnSelect:QBr,colorscaleStroke:kle}});var Smt=K((b0i,Mmt)=>{"use strict";var z1=No(),e7r=Mt(),AD=Bs(),t7r=UN().colorscaleStroke,GN=Math.PI/12,r7r=5.8,i7r=1.5,n7r=.7;Mmt.exports=function(t,r,i,n,a,o){var s,l,u=!a,f=!!a&&a.duration>0;if(s=n.selectAll("g.trace").data(i,function(h){return h[0].trace.uid}),s.enter().append("g").attr("class",function(h){return"trace quiver trace"+h[0].trace.uid}).style("stroke-miterlimit",2),s.order(),f){o&&(l=o());var c=z1.transition().duration(a.duration).ease(a.easing).each("end",function(){l&&l()}).each("interrupt",function(){l&&l()});c.each(function(){n.selectAll("g.trace").each(function(h,d){Tmt(t,d,r,h,i,this,a)})})}else s.each(function(h,d){Tmt(t,d,r,h,i,this,a)});u&&s.exit().remove()};function Tmt(e,t,r,i,n,a,o){var s=i[0].trace,l=r.xaxis,u=r.yaxis;i[0][r.isRangePlot?"nodeRangePlot3":"node3"]=z1.select(a);var f=z1.select(a).selectAll("g.lines").data([i]);f.enter().append("g").classed("lines",!0),AD.setClipUrl(f,r.layerClipId,e);var c=f.selectAll("path.js-line").data(i);c.enter().append("path").classed("js-line",!0).style("vector-effect","non-scaling-stroke"),c.exit().remove();let{anchor:h,maxNorm:d=0,arrowref:p}=s,v=p==="paper"?s._scaleFactor*Math.sqrt(Math.abs(l._m*u._m)):s._scaleFactor,y=s.marker.arrowsize;c.each(function(A){let T=z1.select(this);if(A.x===void 0||A.y===void 0){T.attr("d",null);return}let g=(p==="paper"?A._u*Math.sign(l._m):z1.round(l._m*A._u))*v,E=(p==="paper"?A._v*Math.sign(u._m):z1.round(u._m*A._v))*v,S=(s._input.marker||{}).arrowsize!==void 0;var C,k,D,L;h==="tip"?(C=l.c2p(A.x)-g,D=u.c2p(A.y)-E,k=l.c2p(A.x),L=u.c2p(A.y)):h==="center"?(C=l.c2p(A.x)-g/2,D=u.c2p(A.y)-E/2,k=l.c2p(A.x)+g/2,L=u.c2p(A.y)+E/2):(C=l.c2p(A.x),D=u.c2p(A.y),k=l.c2p(A.x)+g,L=u.c2p(A.y)+E),A._px0=C,A._py0=D,A._px1=k,A._py1=L;var P=s.marker.line.width;S||(P=Math.max(P,i7r));let I=Math.sqrt((k-C)*(k-C)+(L-D)*(L-D)),F=n7r*I,z=Math.min(r7r*y*P,F),B=Math.atan2(L-D,k-C),O=k-z*Math.cos(B-GN),W=L-z*Math.sin(B-GN),X=k-z*Math.cos(B+GN),Z=L-z*Math.sin(B+GN),j="M"+C+","+D+"L"+k+","+L+"L"+O+","+W+"L"+k+","+L+"L"+X+","+Z;T.attr("d",j)});var m=s.marker||{},w=m.line||{},_=e7r.isArrayOrTypedArray(m.color)?void 0:m.color;AD.lineGroupStyle(c,w.width,_,w.dash),s._hasColorscale&&t7r(c,s);var b=z1.select(a).selectAll("g.text").data([i]);b.enter().append("g").classed("text",!0),AD.setClipUrl(b,r.layerClipId,e);var M=b.selectAll("g.textpoint").data(i);if(M.enter().append("g").classed("textpoint",!0).append("text"),M.exit().remove(),M.each(function(A){var T=z1.select(this),g=AD.translatePoint(A,T.select("text"),l,u);g||T.remove()}),M.selectAll("text").call(AD.textPointStyle,s,e).each(function(A){var T=l.c2p(A.x),g=u.c2p(A.y);z1.select(this).selectAll("tspan.line").each(function(){z1.select(this).attr({x:T,y:g})})}),o&&o.duration>0){var x=z1.transition().duration(o.duration).ease(o.easing);c.transition(x).style("opacity",1)}}});var Cmt=K((_0i,kmt)=>{"use strict";var Emt=Mt(),a7r=Uf(),o7r=sA();function s7r(e,t,r,i,n,a){let o=n-r,s=a-i,l=o*o+s*s;if(!l)return Math.sqrt((e-r)*(e-r)+(t-i)*(t-i));var u=((e-r)*o+(t-i)*s)/l;u=Math.max(0,Math.min(1,u));let f=r+u*o,c=i+u*s;return Math.sqrt((e-f)*(e-f)+(t-c)*(t-c))}kmt.exports=function(t,r,i,n){var a=t.cd,o=a[0].trace,s=t.xa,l=t.ya,u=s.c2p(r),f=l.c2p(i),c=function(_){return _._px0===void 0?1/0:s7r(u,f,_._px0,_._py0,_._px1,_._py1)};if(a7r.getClosest(a,c,t),t.index!==!1){var h=a[t.index],d=s.c2p(h.x,!0),p=l.c2p(h.y,!0),v=Math.sqrt((u-d)*(u-d)+(f-p)*(f-p));t.index=h.i;var y=o.u?o.u[h.i]:0,m=o.v?o.v[h.i]:0,w="u: "+y+", v: "+m;return Emt.extendFlat(t,{color:o7r(o,h),x0:d-3,x1:d+3,xLabelVal:h.x,y0:p-3,y1:p+3,yLabelVal:h.y,uLabelVal:y,vLabelVal:m,extraText:w,spikeDistance:v,hovertemplate:o.hovertemplate}),Emt.fillText(h,o,t),[t]}}});var Lmt=K((w0i,Fmt)=>{"use strict";var HN=Cs(),Dmt=Mt();Fmt.exports=function(t,r,i){var n={},a={_fullLayout:i},o=HN.getFromTrace(a,r,"x"),s=HN.getFromTrace(a,r,"y"),l=t.x,u=t.y;n.xLabel=HN.tickText(o,o.c2l(l),!0).text,n.yLabel=HN.tickText(s,s.c2l(u),!0).text;var f=r.u?r.u[t.i]:0,c=r.v?r.v[t.i]:0,h=r.uhoverformat,d=r.vhoverformat;return n.uLabel=h?Dmt.numberFormat(h)(f):String(f),n.vLabel=d?Dmt.numberFormat(d)(c):String(c),n}});var zmt=K((A0i,Pmt)=>{"use strict";Pmt.exports=function(t,r,i,n,a){return t.x=r.x,t.y=r.y,t.u=i.u?i.u[a]:void 0,t.v=i.v?i.v[a]:void 0,t}});var Rmt=K((T0i,Imt)=>{"use strict";Imt.exports={moduleType:"trace",name:"quiver",basePlotModule:vc(),categories:["cartesian","svg","showLegend","scatter-like","zoomScale"],attributes:Sle(),supplyDefaults:vmt(),calc:gmt(),crossTraceCalc:bmt(),plot:Smt(),style:UN().style,styleOnSelect:UN().styleOnSelect,hoverPoints:Cmt(),formatLabels:Lmt(),eventData:zmt(),selectPoints:Rb(),colorbar:Qh(),animatable:!0,meta:{}}});var qmt=K((M0i,Bmt)=>{"use strict";Bmt.exports=Rmt()});var R0=K((S0i,Nmt)=>{var WN=Mh();function Omt(){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={}}WN(Omt.prototype,{instance:function(e,t){e=(e||"gregorian").toLowerCase(),t=t||"";var r=this._localCals[e+"-"+t];if(!r&&this.calendars[e]&&(r=new this.calendars[e](t),this._localCals[e+"-"+t]=r),!r)throw(this.local.invalidCalendar||this.regionalOptions[""].invalidCalendar).replace(/\{0\}/,e);return r},newDate:function(e,t,r,i,n){return i=(e!=null&&e.year?e.calendar():typeof i=="string"?this.instance(i,n):i)||this.instance(),i.newDate(e,t,r)},substituteDigits:function(e){return function(t){return(t+"").replace(/[0-9]/g,function(r){return e[r]})}},substituteChineseDigits:function(e,t){return function(r){for(var i="",n=0;r>0;){var a=r%10;i=(a===0?"":e[a]+t[n])+i,n++,r=Math.floor(r/10)}return i.indexOf(e[1]+t[1])===0&&(i=i.substr(1)),i||e[0]}}});function Cle(e,t,r,i){if(this._calendar=e,this._year=t,this._month=r,this._day=i,this._calendar._validateLevel===0&&!this._calendar.isValid(this._year,this._month,this._day))throw(Xl.local.invalidDate||Xl.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name)}function jN(e,t){return e=""+e,"000000".substring(0,t-e.length)+e}WN(Cle.prototype,{newDate:function(e,t,r){return this._calendar.newDate(e==null?this:e,t,r)},year:function(e){return arguments.length===0?this._year:this.set(e,"y")},month:function(e){return arguments.length===0?this._month:this.set(e,"m")},day:function(e){return arguments.length===0?this._day:this.set(e,"d")},date:function(e,t,r){if(!this._calendar.isValid(e,t,r))throw(Xl.local.invalidDate||Xl.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name);return this._year=e,this._month=t,this._day=r,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(e,t){return this._calendar.add(this,e,t)},set:function(e,t){return this._calendar.set(this,e,t)},compareTo:function(e){if(this._calendar.name!==e._calendar.name)throw(Xl.local.differentCalendars||Xl.regionalOptions[""].differentCalendars).replace(/\{0\}/,this._calendar.local.name).replace(/\{1\}/,e._calendar.local.name);var t=this._year!==e._year?this._year-e._year:this._month!==e._month?this.monthOfYear()-e.monthOfYear():this._day-e._day;return t===0?0:t<0?-1:1},calendar:function(){return this._calendar},toJD:function(){return this._calendar.toJD(this)},fromJD:function(e){return this._calendar.fromJD(e)},toJSDate:function(){return this._calendar.toJSDate(this)},fromJSDate:function(e){return this._calendar.fromJSDate(e)},toString:function(){return(this.year()<0?"-":"")+jN(Math.abs(this.year()),4)+"-"+jN(this.month(),2)+"-"+jN(this.day(),2)}});function Dle(){this.shortYearCutoff="+10"}WN(Dle.prototype,{_validateLevel:0,newDate:function(e,t,r){return e==null?this.today():(e.year&&(this._validate(e,t,r,Xl.local.invalidDate||Xl.regionalOptions[""].invalidDate),r=e.day(),t=e.month(),e=e.year()),new Cle(this,e,t,r))},today:function(){return this.fromJSDate(new Date)},epoch:function(e){var t=this._validate(e,this.minMonth,this.minDay,Xl.local.invalidYear||Xl.regionalOptions[""].invalidYear);return t.year()<0?this.local.epochs[0]:this.local.epochs[1]},formatYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,Xl.local.invalidYear||Xl.regionalOptions[""].invalidYear);return(t.year()<0?"-":"")+jN(Math.abs(t.year()),4)},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Xl.local.invalidYear||Xl.regionalOptions[""].invalidYear),12},monthOfYear:function(e,t){var r=this._validate(e,t,this.minDay,Xl.local.invalidMonth||Xl.regionalOptions[""].invalidMonth);return(r.month()+this.monthsInYear(r)-this.firstMonth)%this.monthsInYear(r)+this.minMonth},fromMonthOfYear:function(e,t){var r=(t+this.firstMonth-2*this.minMonth)%this.monthsInYear(e)+this.minMonth;return this._validate(e,r,this.minDay,Xl.local.invalidMonth||Xl.regionalOptions[""].invalidMonth),r},daysInYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,Xl.local.invalidYear||Xl.regionalOptions[""].invalidYear);return this.leapYear(t)?366:365},dayOfYear:function(e,t,r){var i=this._validate(e,t,r,Xl.local.invalidDate||Xl.regionalOptions[""].invalidDate);return i.toJD()-this.newDate(i.year(),this.fromMonthOfYear(i.year(),this.minMonth),this.minDay).toJD()+1},daysInWeek:function(){return 7},dayOfWeek:function(e,t,r){var i=this._validate(e,t,r,Xl.local.invalidDate||Xl.regionalOptions[""].invalidDate);return(Math.floor(this.toJD(i))+2)%this.daysInWeek()},extraInfo:function(e,t,r){return this._validate(e,t,r,Xl.local.invalidDate||Xl.regionalOptions[""].invalidDate),{}},add:function(e,t,r){return this._validate(e,this.minMonth,this.minDay,Xl.local.invalidDate||Xl.regionalOptions[""].invalidDate),this._correctAdd(e,this._add(e,t,r),t,r)},_add:function(e,t,r){if(this._validateLevel++,r==="d"||r==="w"){var i=e.toJD()+t*(r==="w"?this.daysInWeek():1),n=e.calendar().fromJD(i);return this._validateLevel--,[n.year(),n.month(),n.day()]}try{var a=e.year()+(r==="y"?t:0),o=e.monthOfYear()+(r==="m"?t:0),n=e.day(),s=function(f){for(;oc-1+f.minMonth;)a++,o-=c,c=f.monthsInYear(a)};r==="y"?(e.month()!==this.fromMonthOfYear(a,o)&&(o=this.newDate(a,e.month(),this.minDay).monthOfYear()),o=Math.min(o,this.monthsInYear(a)),n=Math.min(n,this.daysInMonth(a,this.fromMonthOfYear(a,o)))):r==="m"&&(s(this),n=Math.min(n,this.daysInMonth(a,this.fromMonthOfYear(a,o))));var l=[a,this.fromMonthOfYear(a,o),n];return this._validateLevel--,l}catch(u){throw this._validateLevel--,u}},_correctAdd:function(e,t,r,i){if(!this.hasYearZero&&(i==="y"||i==="m")&&(t[0]===0||e.year()>0!=t[0]>0)){var n={y:[1,1,"y"],m:[1,this.monthsInYear(-1),"m"],w:[this.daysInWeek(),this.daysInYear(-1),"d"],d:[1,this.daysInYear(-1),"d"]}[i],a=r<0?-1:1;t=this._add(e,r*n[0]+a*n[1],n[2])}return e.date(t[0],t[1],t[2])},set:function(e,t,r){this._validate(e,this.minMonth,this.minDay,Xl.local.invalidDate||Xl.regionalOptions[""].invalidDate);var i=r==="y"?t:e.year(),n=r==="m"?t:e.month(),a=r==="d"?t:e.day();return(r==="y"||r==="m")&&(a=Math.min(a,this.daysInMonth(i,n))),e.date(i,n,a)},isValid:function(e,t,r){this._validateLevel++;var i=this.hasYearZero||e!==0;if(i){var n=this.newDate(e,t,this.minDay);i=t>=this.minMonth&&t-this.minMonth=this.minDay&&r-this.minDay13.5?13:1),u=n-(l>2.5?4716:4715);return u<=0&&u--,this.newDate(u,l,s)},toJSDate:function(e,t,r){var i=this._validate(e,t,r,Xl.local.invalidDate||Xl.regionalOptions[""].invalidDate),n=new Date(i.year(),i.month()-1,i.day());return n.setHours(0),n.setMinutes(0),n.setSeconds(0),n.setMilliseconds(0),n.setHours(n.getHours()>12?n.getHours()+2:0),n},fromJSDate:function(e){return this.newDate(e.getFullYear(),e.getMonth()+1,e.getDate())}});var Xl=Nmt.exports=new Omt;Xl.cdate=Cle;Xl.baseCalendar=Dle;Xl.calendars.gregorian=Fle});var Vmt=K(()=>{var Lle=Mh(),Hh=R0();Lle(Hh.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"});Hh.local=Hh.regionalOptions[""];Lle(Hh.cdate.prototype,{formatDate:function(e,t){return typeof e!="string"&&(t=e,e=""),this._calendar.formatDate(e||"",this,t)}});Lle(Hh.baseCalendar.prototype,{UNIX_EPOCH:Hh.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:1440*60,TICKS_EPOCH:Hh.instance().jdEpoch,TICKS_PER_DAY:1440*60*1e7,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(e,t,r){if(typeof e!="string"&&(r=t,t=e,e=""),!t)return"";if(t.calendar()!==this)throw Hh.local.invalidFormat||Hh.regionalOptions[""].invalidFormat;e=e||this.local.dateFormat,r=r||{};for(var i=r.dayNamesShort||this.local.dayNamesShort,n=r.dayNames||this.local.dayNames,a=r.monthNumbers||this.local.monthNumbers,o=r.monthNamesShort||this.local.monthNamesShort,s=r.monthNames||this.local.monthNames,l=r.calculateWeek||this.local.calculateWeek,u=function(b,M){for(var x=1;_+x1},f=function(b,M,x,A){var T=""+M;if(u(b,A))for(;T.length1},w=function(C,k){var D=m(C,k),L=[2,3,D?4:2,D?4:2,10,11,20]["oyYJ@!".indexOf(C)+1],P=new RegExp("^-?\\d{1,"+L+"}"),I=t.substring(T).match(P);if(!I)throw(Hh.local.missingNumberAt||Hh.regionalOptions[""].missingNumberAt).replace(/\{0\}/,T);return T+=I[0].length,parseInt(I[0],10)},_=this,b=function(){if(typeof s=="function"){m("m");var C=s.call(_,t.substring(T));return T+=C.length,C}return w("m")},M=function(C,k,D,L){for(var P=m(C,L)?D:k,I=0;I-1){h=1,d=p;for(var S=this.daysInMonth(c,h);d>S;S=this.daysInMonth(c,h))h++,d-=S}return f>-1?this.fromJD(f):this.newDate(c,h,d)},determineDate:function(e,t,r,i,n){r&&typeof r!="object"&&(n=i,i=r,r=null),typeof i!="string"&&(n=i,i="");var a=this,o=function(s){try{return a.parseDate(i,s,n)}catch(c){}s=s.toLowerCase();for(var l=(s.match(/^c/)&&r?r.newDate():null)||a.today(),u=/([+-]?[0-9]+)\s*(d|w|m|y)?/g,f=u.exec(s);f;)l.add(parseInt(f[1],10),f[2]||"d"),f=u.exec(s);return l};return t=t?t.newDate():null,e=e==null?t:typeof e=="string"?o(e):typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?t:a.today().add(e,"d"):a.newDate(e),e}})});var Umt=K(()=>{var Ix=R0(),l7r=Mh(),Ple=Ix.instance();function $N(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}$N.prototype=new Ix.baseCalendar;l7r($N.prototype,{name:"Chinese",jdEpoch:17214255e-1,hasYearZero:!1,minMonth:0,firstMonth:0,minDay:1,regionalOptions:{"":{name:"Chinese",epochs:["BEC","EC"],monthNumbers:function(e,t){if(typeof e=="string"){var r=e.match(f7r);return r?r[0]:""}var i=this._validateYear(e),n=e.month(),a=""+this.toChineseMonth(i,n);return t&&a.length<2&&(a="0"+a),this.isIntercalaryMonth(i,n)&&(a+="i"),a},monthNames:function(e){if(typeof e=="string"){var t=e.match(c7r);return t?t[0]:""}var r=this._validateYear(e),i=e.month(),n=this.toChineseMonth(r,i),a=["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"][n-1];return this.isIntercalaryMonth(r,i)&&(a="\u95F0"+a),a},monthNamesShort:function(e){if(typeof e=="string"){var t=e.match(h7r);return t?t[0]:""}var r=this._validateYear(e),i=e.month(),n=this.toChineseMonth(r,i),a=["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"][n-1];return this.isIntercalaryMonth(r,i)&&(a="\u95F0"+a),a},parseMonth:function(e,t){e=this._validateYear(e);var r=parseInt(t),i;if(isNaN(r))t[0]==="\u95F0"&&(i=!0,t=t.substring(1)),t[t.length-1]==="\u6708"&&(t=t.substring(0,t.length-1)),r=1+["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"].indexOf(t);else{var n=t[t.length-1];i=n==="i"||n==="I"}var a=this.toMonthIndex(e,r,i);return a},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(e,t){if(e.year&&(e=e.year()),typeof e!="number"||e<1888||e>2111)throw t.replace(/\{0\}/,this.local.name);return e},toMonthIndex:function(e,t,r){var i=this.intercalaryMonth(e),n=r&&t!==i;if(n||t<1||t>12)throw Ix.local.invalidMonth.replace(/\{0\}/,this.local.name);var a;return i?!r&&t<=i?a=t-1:a=t:a=t-1,a},toChineseMonth:function(e,t){e.year&&(e=e.year(),t=e.month());var r=this.intercalaryMonth(e),i=r?12:11;if(t<0||t>i)throw Ix.local.invalidMonth.replace(/\{0\}/,this.local.name);var n;return r?t>13;return r},isIntercalaryMonth:function(e,t){e.year&&(e=e.year(),t=e.month());var r=this.intercalaryMonth(e);return!!r&&r===t},leapYear:function(e){return this.intercalaryMonth(e)!==0},weekOfYear:function(e,t,r){var i=this._validateYear(e,Ix.local.invalidyear),n=Bx[i-Bx[0]],a=n>>9&4095,o=n>>5&15,s=n&31,l;l=Ple.newDate(a,o,s),l.add(4-(l.dayOfWeek()||7),"d");var u=this.toJD(e,t,r)-l.toJD();return 1+Math.floor(u/7)},monthsInYear:function(e){return this.leapYear(e)?13:12},daysInMonth:function(e,t){e.year&&(t=e.month(),e=e.year()),e=this._validateYear(e);var r=Rx[e-Rx[0]],i=r>>13,n=i?12:11;if(t>n)throw Ix.local.invalidMonth.replace(/\{0\}/,this.local.name);var a=r&1<<12-t?30:29;return a},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(e,t,r){var i=this._validate(e,a,r,Ix.local.invalidDate);e=this._validateYear(i.year()),t=i.month(),r=i.day();var n=this.isIntercalaryMonth(e,t),a=this.toChineseMonth(e,t),o=p7r(e,a,r,n);return Ple.toJD(o.year,o.month,o.day)},fromJD:function(e){var t=Ple.fromJD(e),r=d7r(t.year(),t.month(),t.day()),i=this.toMonthIndex(r.year,r.month,r.isIntercalary);return this.newDate(r.year,i,r.day)},fromString:function(e){var t=e.match(u7r),r=this._validateYear(+t[1]),i=+t[2],n=!!t[3],a=this.toMonthIndex(r,i,n),o=+t[4];return this.newDate(r,a,o)},add:function(e,t,r){var i=e.year(),n=e.month(),a=this.isIntercalaryMonth(i,n),o=this.toChineseMonth(i,n),s=Object.getPrototypeOf($N.prototype).add.call(this,e,t,r);if(r==="y"){var l=s.year(),u=s.month(),f=this.isIntercalaryMonth(l,o),c=a&&f?this.toMonthIndex(l,o,!0):this.toMonthIndex(l,o,!1);c!==u&&s.month(c)}return s}});var u7r=/^\s*(-?\d\d\d\d|\d\d)[-/](\d?\d)([iI]?)[-/](\d?\d)/m,f7r=/^\d?\d[iI]?/m,c7r=/^闰?十?[一二三四五六七八九]?月/m,h7r=/^闰?十?[一二三四五六七八九]?/m;Ix.calendars.chinese=$N;var Rx=[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],Bx=[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 d7r(e,t,r,i){var n,a;if(typeof e=="object")n=e,a=t||{};else{var o=typeof e=="number"&&e>=1888&&e<=2111;if(!o)throw new Error("Solar year outside range 1888-2111");var s=typeof t=="number"&&t>=1&&t<=12;if(!s)throw new Error("Solar month outside range 1 - 12");var l=typeof r=="number"&&r>=1&&r<=31;if(!l)throw new Error("Solar day outside range 1 - 31");n={year:e,month:t,day:r},a=i||{}}var u=Bx[n.year-Bx[0]],f=n.year<<9|n.month<<5|n.day;a.year=f>=u?n.year:n.year-1,u=Bx[a.year-Bx[0]];var c=u>>9&4095,h=u>>5&15,d=u&31,p,v=new Date(c,h-1,d),y=new Date(n.year,n.month-1,n.day);p=Math.round((y-v)/(24*3600*1e3));var m=Rx[a.year-Rx[0]],w;for(w=0;w<13;w++){var _=m&1<<12-w?30:29;if(p<_)break;p-=_}var b=m>>13;return!b||w=1888&&e<=2111;if(!s)throw new Error("Lunar year outside range 1888-2111");var l=typeof t=="number"&&t>=1&&t<=12;if(!l)throw new Error("Lunar month outside range 1 - 12");var u=typeof r=="number"&&r>=1&&r<=30;if(!u)throw new Error("Lunar day outside range 1 - 30");var f;typeof i=="object"?(f=!1,a=i):(f=!!i,a=n||{}),o={year:e,month:t,day:r,isIntercalary:f}}var c;c=o.day-1;var h=Rx[o.year-Rx[0]],d=h>>13,p;d&&(o.month>d||o.isIntercalary)?p=o.month:p=o.month-1;for(var v=0;v>9&4095,_=m>>5&15,b=m&31,M=new Date(w,_-1,b+c);return a.year=M.getFullYear(),a.month=1+M.getMonth(),a.day=M.getDate(),a}});var Gmt=K(()=>{var U3=R0(),v7r=Mh();function zle(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}zle.prototype=new U3.baseCalendar;v7r(zle.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(r){var t=this._validate(r,this.minMonth,this.minDay,U3.local.invalidYear),r=t.year()+(t.year()<0?1:0);return r%4===3||r%4===-1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,U3.local.invalidYear||U3.regionalOptions[""].invalidYear),13},weekOfYear:function(e,t,r){var i=this.newDate(e,t,r);return i.add(-i.dayOfWeek(),"d"),Math.floor((i.dayOfYear()-1)/7)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,U3.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===13&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(e,t,r){var i=this._validate(e,t,r,U3.local.invalidDate);return e=i.year(),e<0&&e++,i.day()+(i.month()-1)*30+(e-1)*365+Math.floor(e/4)+this.jdEpoch-1},fromJD:function(e){var t=Math.floor(e)+.5-this.jdEpoch,r=Math.floor((t-Math.floor((t+366)/1461))/365)+1;r<=0&&r--,t=Math.floor(e)+.5-this.newDate(r,1,1).toJD();var i=Math.floor(t/30)+1,n=t-(i-1)*30+1;return this.newDate(r,i,n)}});U3.calendars.coptic=zle});var Hmt=K(()=>{var vg=R0(),m7r=Mh();function Ile(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}Ile.prototype=new vg.baseCalendar;m7r(Ile.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(e){return this._validate(e,this.minMonth,this.minDay,vg.local.invalidYear),!1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,vg.local.invalidYear),13},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,vg.local.invalidYear),400},weekOfYear:function(e,t,r){var i=this.newDate(e,t,r);return i.add(-i.dayOfWeek(),"d"),Math.floor((i.dayOfYear()-1)/8)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,vg.local.invalidMonth);return this.daysPerMonth[r.month()-1]},daysInWeek:function(){return 8},dayOfWeek:function(e,t,r){var i=this._validate(e,t,r,vg.local.invalidDate);return(i.day()+1)%8},weekDay:function(e,t,r){var i=this.dayOfWeek(e,t,r);return i>=2&&i<=6},extraInfo:function(e,t,r){var i=this._validate(e,t,r,vg.local.invalidDate);return{century:y7r[Math.floor((i.year()-1)/100)+1]||""}},toJD:function(e,t,r){var i=this._validate(e,t,r,vg.local.invalidDate);return e=i.year()+(i.year()<0?1:0),t=i.month(),r=i.day(),r+(t>1?16:0)+(t>2?(t-2)*32:0)+(e-1)*400+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e+.5)-Math.floor(this.jdEpoch)-1;var t=Math.floor(e/400)+1;e-=(t-1)*400,e+=e>15?16:0;var r=Math.floor(e/32)+1,i=e-(r-1)*32+1;return this.newDate(t<=0?t-1:t,r,i)}});var y7r={20:"Fruitbat",21:"Anchovy"};vg.calendars.discworld=Ile});var jmt=K(()=>{var G3=R0(),g7r=Mh();function Rle(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}Rle.prototype=new G3.baseCalendar;g7r(Rle.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(r){var t=this._validate(r,this.minMonth,this.minDay,G3.local.invalidYear),r=t.year()+(t.year()<0?1:0);return r%4===3||r%4===-1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,G3.local.invalidYear||G3.regionalOptions[""].invalidYear),13},weekOfYear:function(e,t,r){var i=this.newDate(e,t,r);return i.add(-i.dayOfWeek(),"d"),Math.floor((i.dayOfYear()-1)/7)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,G3.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===13&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(e,t,r){var i=this._validate(e,t,r,G3.local.invalidDate);return e=i.year(),e<0&&e++,i.day()+(i.month()-1)*30+(e-1)*365+Math.floor(e/4)+this.jdEpoch-1},fromJD:function(e){var t=Math.floor(e)+.5-this.jdEpoch,r=Math.floor((t-Math.floor((t+366)/1461))/365)+1;r<=0&&r--,t=Math.floor(e)+.5-this.newDate(r,1,1).toJD();var i=Math.floor(t/30)+1,n=t-(i-1)*30+1;return this.newDate(r,i,n)}});G3.calendars.ethiopian=Rle});var Wmt=K(()=>{var qx=R0(),x7r=Mh();function Ble(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}Ble.prototype=new qx.baseCalendar;x7r(Ble.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(e){var t=this._validate(e,this.minMonth,this.minDay,qx.local.invalidYear);return this._leapYear(t.year())},_leapYear:function(e){return e=e<0?e+1:e,YN(e*7+1,19)<7},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,qx.local.invalidYear),this._leapYear(e.year?e.year():e)?13:12},weekOfYear:function(e,t,r){var i=this.newDate(e,t,r);return i.add(-i.dayOfWeek(),"d"),Math.floor((i.dayOfYear()-1)/7)+1},daysInYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,qx.local.invalidYear);return e=t.year(),this.toJD(e===-1?1:e+1,7,1)-this.toJD(e,7,1)},daysInMonth:function(e,t){return e.year&&(t=e.month(),e=e.year()),this._validate(e,t,this.minDay,qx.local.invalidMonth),t===12&&this.leapYear(e)||t===8&&YN(this.daysInYear(e),10)===5?30:t===9&&YN(this.daysInYear(e),10)===3?29:this.daysPerMonth[t-1]},weekDay:function(e,t,r){return this.dayOfWeek(e,t,r)!==6},extraInfo:function(e,t,r){var i=this._validate(e,t,r,qx.local.invalidDate);return{yearType:(this.leapYear(i)?"embolismic":"common")+" "+["deficient","regular","complete"][this.daysInYear(i)%10-3]}},toJD:function(e,t,r){var i=this._validate(e,t,r,qx.local.invalidDate);e=i.year(),t=i.month(),r=i.day();var n=e<=0?e+1:e,a=this.jdEpoch+this._delay1(n)+this._delay2(n)+r+1;if(t<7){for(var o=7;o<=this.monthsInYear(e);o++)a+=this.daysInMonth(e,o);for(var o=1;o=this.toJD(t===-1?1:t+1,7,1);)t++;for(var r=ethis.toJD(t,r,this.daysInMonth(t,r));)r++;var i=e-this.toJD(t,r,1)+1;return this.newDate(t,r,i)}});function YN(e,t){return e-t*Math.floor(e/t)}qx.calendars.hebrew=Ble});var $mt=K(()=>{var TD=R0(),b7r=Mh();function qle(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}qle.prototype=new TD.baseCalendar;b7r(qle.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\u012Bs","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(e){var t=this._validate(e,this.minMonth,this.minDay,TD.local.invalidYear);return(t.year()*11+14)%30<11},weekOfYear:function(e,t,r){var i=this.newDate(e,t,r);return i.add(-i.dayOfWeek(),"d"),Math.floor((i.dayOfYear()-1)/7)+1},daysInYear:function(e){return this.leapYear(e)?355:354},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,TD.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===12&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return this.dayOfWeek(e,t,r)!==5},toJD:function(e,t,r){var i=this._validate(e,t,r,TD.local.invalidDate);return e=i.year(),t=i.month(),r=i.day(),e=e<=0?e+1:e,r+Math.ceil(29.5*(t-1))+(e-1)*354+Math.floor((3+11*e)/30)+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e)+.5;var t=Math.floor((30*(e-this.jdEpoch)+10646)/10631);t=t<=0?t-1:t;var r=Math.min(12,Math.ceil((e-29-this.toJD(t,1,1))/29.5)+1),i=e-this.toJD(t,r,1)+1;return this.newDate(t,r,i)}});TD.calendars.islamic=qle});var Ymt=K(()=>{var MD=R0(),_7r=Mh();function Ole(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}Ole.prototype=new MD.baseCalendar;_7r(Ole.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(r){var t=this._validate(r,this.minMonth,this.minDay,MD.local.invalidYear),r=t.year()<0?t.year()+1:t.year();return r%4===0},weekOfYear:function(e,t,r){var i=this.newDate(e,t,r);return i.add(4-(i.dayOfWeek()||7),"d"),Math.floor((i.dayOfYear()-1)/7)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,MD.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===2&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(e,t,r){var i=this._validate(e,t,r,MD.local.invalidDate);return e=i.year(),t=i.month(),r=i.day(),e<0&&e++,t<=2&&(e--,t+=12),Math.floor(365.25*(e+4716))+Math.floor(30.6001*(t+1))+r-1524.5},fromJD:function(e){var t=Math.floor(e+.5),r=t+1524,i=Math.floor((r-122.1)/365.25),n=Math.floor(365.25*i),a=Math.floor((r-n)/30.6001),o=a-Math.floor(a<14?1:13),s=i-Math.floor(o>2?4716:4715),l=r-n-Math.floor(30.6001*a);return s<=0&&s--,this.newDate(s,o,l)}});MD.calendars.julian=Ole});var Zmt=K(()=>{var zv=R0(),w7r=Mh();function Vle(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}Vle.prototype=new zv.baseCalendar;w7r(Vle.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(e){return this._validate(e,this.minMonth,this.minDay,zv.local.invalidYear),!1},formatYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,zv.local.invalidYear);e=t.year();var r=Math.floor(e/400);e=e%400,e+=e<0?400:0;var i=Math.floor(e/20);return r+"."+i+"."+e%20},forYear:function(e){if(e=e.split("."),e.length<3)throw"Invalid Mayan year";for(var t=0,r=0;r19||r>0&&i<0)throw"Invalid Mayan year";t=t*20+i}return t},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,zv.local.invalidYear),18},weekOfYear:function(e,t,r){return this._validate(e,t,r,zv.local.invalidDate),0},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,zv.local.invalidYear),360},daysInMonth:function(e,t){return this._validate(e,t,this.minDay,zv.local.invalidMonth),20},daysInWeek:function(){return 5},dayOfWeek:function(e,t,r){var i=this._validate(e,t,r,zv.local.invalidDate);return i.day()},weekDay:function(e,t,r){return this._validate(e,t,r,zv.local.invalidDate),!0},extraInfo:function(e,t,r){var i=this._validate(e,t,r,zv.local.invalidDate),n=i.toJD(),a=this._toHaab(n),o=this._toTzolkin(n);return{haabMonthName:this.local.haabMonths[a[0]-1],haabMonth:a[0],haabDay:a[1],tzolkinDayName:this.local.tzolkinMonths[o[0]-1],tzolkinDay:o[0],tzolkinTrecena:o[1]}},_toHaab:function(e){e-=this.jdEpoch;var t=Nle(e+8+340,365);return[Math.floor(t/20)+1,Nle(t,20)]},_toTzolkin:function(e){return e-=this.jdEpoch,[Xmt(e+20,20),Xmt(e+4,13)]},toJD:function(e,t,r){var i=this._validate(e,t,r,zv.local.invalidDate);return i.day()+i.month()*20+i.year()*360+this.jdEpoch},fromJD:function(e){e=Math.floor(e)+.5-this.jdEpoch;var t=Math.floor(e/360);e=e%360,e+=e<0?360:0;var r=Math.floor(e/20),i=e%20;return this.newDate(t,r,i)}});function Nle(e,t){return e-t*Math.floor(e/t)}function Xmt(e,t){return Nle(e-1,t)+1}zv.calendars.mayan=Vle});var Jmt=K(()=>{var H3=R0(),A7r=Mh();function Ule(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}Ule.prototype=new H3.baseCalendar;var Kmt=H3.instance("gregorian");A7r(Ule.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(e){var t=this._validate(e,this.minMonth,this.minDay,H3.local.invalidYear||H3.regionalOptions[""].invalidYear);return Kmt.leapYear(t.year()+(t.year()<1?1:0)+1469)},weekOfYear:function(e,t,r){var i=this.newDate(e,t,r);return i.add(1-(i.dayOfWeek()||7),"d"),Math.floor((i.dayOfYear()-1)/7)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,H3.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===12&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(n,t,r){var i=this._validate(n,t,r,H3.local.invalidMonth),n=i.year();n<0&&n++;for(var a=i.day(),o=1;o=this.toJD(t+1,1,1);)t++;for(var r=e-Math.floor(this.toJD(t,1,1)+.5)+1,i=1;r>this.daysInMonth(t,i);)r-=this.daysInMonth(t,i),i++;return this.newDate(t,i,r)}});H3.calendars.nanakshahi=Ule});var Qmt=K(()=>{var j3=R0(),T7r=Mh();function Gle(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}Gle.prototype=new j3.baseCalendar;T7r(Gle.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(e){return this.daysInYear(e)!==this.daysPerYear},weekOfYear:function(e,t,r){var i=this.newDate(e,t,r);return i.add(-i.dayOfWeek(),"d"),Math.floor((i.dayOfYear()-1)/7)+1},daysInYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,j3.local.invalidYear);if(e=t.year(),typeof this.NEPALI_CALENDAR_DATA[e]=="undefined")return this.daysPerYear;for(var r=0,i=this.minMonth;i<=12;i++)r+=this.NEPALI_CALENDAR_DATA[e][i];return r},daysInMonth:function(e,t){return e.year&&(t=e.month(),e=e.year()),this._validate(e,t,this.minDay,j3.local.invalidMonth),typeof this.NEPALI_CALENDAR_DATA[e]=="undefined"?this.daysPerMonth[t-1]:this.NEPALI_CALENDAR_DATA[e][t]},weekDay:function(e,t,r){return this.dayOfWeek(e,t,r)!==6},toJD:function(e,t,r){var i=this._validate(e,t,r,j3.local.invalidDate);e=i.year(),t=i.month(),r=i.day();var n=j3.instance(),a=0,o=t,s=e;this._createMissingCalendarData(e);var l=e-(o>9||o===9&&r>=this.NEPALI_CALENDAR_DATA[s][0]?56:57);for(t!==9&&(a=r,o--);o!==9;)o<=0&&(o=12,s--),a+=this.NEPALI_CALENDAR_DATA[s][o],o--;return t===9?(a+=r-this.NEPALI_CALENDAR_DATA[s][0],a<0&&(a+=n.daysInYear(l))):a+=this.NEPALI_CALENDAR_DATA[s][9]-this.NEPALI_CALENDAR_DATA[s][0],n.newDate(l,1,1).add(a,"d").toJD()},fromJD:function(e){var t=j3.instance(),r=t.fromJD(e),i=r.year(),n=r.dayOfYear(),a=i+56;this._createMissingCalendarData(a);for(var o=9,s=this.NEPALI_CALENDAR_DATA[a][0],l=this.NEPALI_CALENDAR_DATA[a][o]-s+1;n>l;)o++,o>12&&(o=1,a++),l+=this.NEPALI_CALENDAR_DATA[a][o];var u=this.NEPALI_CALENDAR_DATA[a][o]-(l-n);return this.newDate(a,o,u)},_createMissingCalendarData:function(e){var t=this.daysPerMonth.slice(0);t.unshift(17);for(var r=e-1;r{var RT=R0(),M7r=Mh();function ZN(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}function XN(e){var t=e-475;e<0&&t++;var r=.242197,i=r*t,n=r*(t+1),a=i-Math.floor(i),o=n-Math.floor(n);return a>o}ZN.prototype=new RT.baseCalendar;M7r(ZN.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","Dey","Bahman","Esfand"],monthNamesShort:["Far","Ord","Kho","Tir","Mor","Sha","Meh","Aba","Aza","Dey","Bah","Esf"],dayNames:["Yekshanbeh","Doshanbeh","Seshanbeh","Chah\u0101rshanbeh","Panjshanbeh","Jom'eh","Shanbeh"],dayNamesShort:["Yek","Do","Se","Cha","Panj","Jom","Sha"],dayNamesMin:["Ye","Do","Se","Ch","Pa","Jo","Sh"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,RT.local.invalidYear);return XN(t.year())},weekOfYear:function(e,t,r){var i=this.newDate(e,t,r);return i.add(-((i.dayOfWeek()+1)%7),"d"),Math.floor((i.dayOfYear()-1)/7)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,RT.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===12&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return this.dayOfWeek(e,t,r)!==5},toJD:function(e,t,r){var i=this._validate(e,t,r,RT.local.invalidDate);e=i.year(),t=i.month(),r=i.day();var n=0;if(e>0)for(var a=1;a0?e-1:e)*365+n+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e)+.5;var t=475+(e-this.toJD(475,1,1))/365.242197,r=Math.floor(t);r<=0&&r--,e>this.toJD(r,12,XN(r)?30:29)&&(r++,r===0&&r++);var i=e-this.toJD(r,1,1)+1,n=i<=186?Math.ceil(i/31):Math.ceil((i-6)/30),a=e-this.toJD(r,n,1)+1;return this.newDate(r,n,a)}});RT.calendars.persian=ZN;RT.calendars.jalali=ZN});var tyt=K(()=>{var W3=R0(),S7r=Mh(),KN=W3.instance();function Hle(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}Hle.prototype=new W3.baseCalendar;S7r(Hle.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(r){var t=this._validate(r,this.minMonth,this.minDay,W3.local.invalidYear),r=this._t2gYear(t.year());return KN.leapYear(r)},weekOfYear:function(n,t,r){var i=this._validate(n,this.minMonth,this.minDay,W3.local.invalidYear),n=this._t2gYear(i.year());return KN.weekOfYear(n,i.month(),i.day())},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,W3.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===2&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(n,t,r){var i=this._validate(n,t,r,W3.local.invalidDate),n=this._t2gYear(i.year());return KN.toJD(n,i.month(),i.day())},fromJD:function(e){var t=KN.fromJD(e),r=this._g2tYear(t.year());return this.newDate(r,t.month(),t.day())},_t2gYear:function(e){return e+this.yearsOffset+(e>=-this.yearsOffset&&e<=-1?1:0)},_g2tYear:function(e){return e-this.yearsOffset-(e>=1&&e<=this.yearsOffset?1:0)}});W3.calendars.taiwan=Hle});var ryt=K(()=>{var $3=R0(),E7r=Mh(),JN=$3.instance();function jle(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}jle.prototype=new $3.baseCalendar;E7r(jle.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(r){var t=this._validate(r,this.minMonth,this.minDay,$3.local.invalidYear),r=this._t2gYear(t.year());return JN.leapYear(r)},weekOfYear:function(n,t,r){var i=this._validate(n,this.minMonth,this.minDay,$3.local.invalidYear),n=this._t2gYear(i.year());return JN.weekOfYear(n,i.month(),i.day())},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,$3.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===2&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(n,t,r){var i=this._validate(n,t,r,$3.local.invalidDate),n=this._t2gYear(i.year());return JN.toJD(n,i.month(),i.day())},fromJD:function(e){var t=JN.fromJD(e),r=this._g2tYear(t.year());return this.newDate(r,t.month(),t.day())},_t2gYear:function(e){return e-this.yearsOffset-(e>=1&&e<=this.yearsOffset?1:0)},_g2tYear:function(e){return e+this.yearsOffset+(e>=-this.yearsOffset&&e<=-1?1:0)}});$3.calendars.thai=jle});var iyt=K(()=>{var Y3=R0(),k7r=Mh();function Wle(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}Wle.prototype=new Y3.baseCalendar;k7r(Wle.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\u0101th\u0101\u2019","Yawm al-Arba\u2018\u0101\u2019","Yawm al-Kham\u012Bs","Yawm al-Jum\u2018a","Yawm al-Sabt"],dayNamesMin:["Ah","Ith","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!0}},leapYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,Y3.local.invalidYear);return this.daysInYear(t.year())===355},weekOfYear:function(e,t,r){var i=this.newDate(e,t,r);return i.add(-i.dayOfWeek(),"d"),Math.floor((i.dayOfYear()-1)/7)+1},daysInYear:function(e){for(var t=0,r=1;r<=12;r++)t+=this.daysInMonth(e,r);return t},daysInMonth:function(e,t){for(var r=this._validate(e,t,this.minDay,Y3.local.invalidMonth),i=r.toJD()-24e5+.5,n=0,a=0;ai)return Ox[n]-Ox[n-1];n++}return 30},weekDay:function(e,t,r){return this.dayOfWeek(e,t,r)!==5},toJD:function(e,t,r){var i=this._validate(e,t,r,Y3.local.invalidDate),n=12*(i.year()-1)+i.month()-15292,a=i.day()+Ox[n-1]-1;return a+24e5-.5},fromJD:function(e){for(var t=e-24e5+.5,r=0,i=0;it);i++)r++;var n=r+15292,a=Math.floor((n-1)/12),o=a+1,s=n-12*a,l=t-Ox[r-1]+1;return this.newDate(o,s,l)},isValid:function(e,t,r){var i=Y3.baseCalendar.prototype.isValid.apply(this,arguments);return i&&(e=e.year!=null?e.year:e,i=e>=1276&&e<=1500),i},_validate:function(e,t,r,i){var n=Y3.baseCalendar.prototype._validate.apply(this,arguments);if(n.year<1276||n.year>1500)throw i.replace(/\{0\}/,this.local.name);return n}});Y3.calendars.ummalqura=Wle;var Ox=[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]});var ayt=K((idi,nyt)=>{"use strict";nyt.exports=R0();Vmt();Umt();Gmt();Hmt();jmt();Wmt();$mt();Ymt();Zmt();Jmt();Qmt();eyt();tyt();ryt();iyt()});var hyt=K((ndi,cyt)=>{"use strict";var syt=ayt(),SD=Mt(),lyt=(Il(),ar(Bl)),C7r=lyt.EPOCHJD,D7r=lyt.ONEDAY,Xle={valType:"enumerated",values:SD.sortObjectKeys(syt.calendars),editType:"calc",dflt:"gregorian"},uyt=function(e,t,r,i){var n={};return n[r]=Xle,SD.coerce(e,t,n,r,i)},F7r=function(e,t,r,i){for(var n=0;n{"use strict";dyt.exports=hyt()});var B7r=K((odi,myt)=>{var vyt=P5e();vyt.register([ITe(),w6e(),qMe(),aSe(),xSe(),dEe(),SEe(),pke(),Gke(),MCe(),cDe(),BIe(),SRe(),m7e(),iqe(),zqe(),nOe(),mNe(),INe(),QNe(),cVe(),MVe(),NVe(),rUe(),OGe(),aHe(),RZe(),OKe(),JJe(),TQe(),Yut(),uft(),Pft(),jct(),pht(),Yht(),mdt(),Vdt(),lpt(),zpt(),Ypt(),Wvt(),d1t(),L1t(),hmt(),qmt(),pyt()]);myt.exports=vyt});return B7r();})(); +);color.rgb=1.0-exp(-1.0*color.rgb);color=pow(color,vec4(1.0/2.2));fragColor=vec4(color.rgb,1.0-color.a)*u_atmosphere_blend;}`,"layout(location=0) in vec2 a_pos;uniform mat4 u_inv_proj_matrix;out vec3 view_direction;void main() {view_direction=(u_inv_proj_matrix*vec4(a_pos,0.0,1.0)).xyz;gl_Position=vec4(a_pos,0.0,1.0);}"),sky:Ru("uniform vec4 u_sky_color;uniform vec4 u_horizon_color;uniform vec2 u_horizon;uniform vec2 u_horizon_normal;uniform float u_sky_horizon_blend;uniform float u_sky_blend;uniform vec3 u_globe_position;uniform float u_globe_radius;uniform float u_atmosphere_blend;in vec3 v_view_direction;const float ATMOSPHERE_HEIGHT_TO_GLOBE_RADIUS=100000.0/6371000.0;void main() {float x=gl_FragCoord.x;float y=gl_FragCoord.y;float blend=(y-u_horizon.y)*u_horizon_normal.y+(x-u_horizon.x)*u_horizon_normal.x;float opacity=1.0;if (u_sky_blend > 0.0) {vec3 ray=normalize(v_view_direction);float globe_distance=length(u_globe_position);float angle_to_globe_center=acos(clamp(dot(ray,u_globe_position)/globe_distance,-1.0,1.0));float horizon_angle=asin(min(u_globe_radius/globe_distance,1.0));blend=mix(blend,((angle_to_globe_center-horizon_angle)*u_camera_to_center_distance+1.0)*u_device_pixel_ratio,u_sky_blend);float closest_approach=max(dot(ray,u_globe_position),0.0);float lowest_altitude=sqrt(max(globe_distance*globe_distance-closest_approach*closest_approach,0.0))-u_globe_radius;float atmosphere_height=u_globe_radius*ATMOSPHERE_HEIGHT_TO_GLOBE_RADIUS;float inside_atmosphere=1.0-smoothstep(atmosphere_height,10.0*atmosphere_height,globe_distance-u_globe_radius);float through_atmosphere=1.0-smoothstep(0.0,atmosphere_height,lowest_altitude);opacity=inside_atmosphere*through_atmosphere*(1.0-u_atmosphere_blend);}if (blend > 0.0) {if (blend < u_sky_horizon_blend) {fragColor=mix(u_sky_color,u_horizon_color,pow(1.0-blend/u_sky_horizon_blend,2.0));} else {fragColor=u_sky_color;}}fragColor*=mix(1.0,opacity,u_sky_blend);}","layout(location=0) in vec2 a_pos;uniform mat4 u_inv_proj_matrix;out vec3 v_view_direction;void main() {v_view_direction=(u_inv_proj_matrix*vec4(a_pos,0.0,1.0)).xyz;gl_Position=vec4(a_pos,1.0,1.0);}")};glt="#define PROJECTION_MERCATOR",xlt="mercator",_oe=class{constructor(){this._cachedMesh=null}get name(){return"mercator"}get useSubdivision(){return!1}get shaderVariantName(){return xlt}get shaderDefine(){return glt}get shaderPreludeCode(){return jm.projectionMercator}get vertexShaderPreludeCode(){return jm.projectionMercator.vertexSource}get subdivisionGranularity(){return zq.noSubdivision}get useGlobeControls(){return!1}get transitionState(){return 0}destroy(){}getMeshFromTileID(e,t,r,i,n){if(this._cachedMesh)return this._cachedMesh;let a=new og;a.emplaceBack(0,0),a.emplaceBack(Aa,0),a.emplaceBack(0,Aa),a.emplaceBack(Aa,Aa);let o=e.createVertexBuffer(a,T3.members),s=nc.simpleSegment(0,0,4,2),l=new z1;l.emplaceBack(1,0,2),l.emplaceBack(1,2,3);let u=e.createIndexBuffer(l);return this._cachedMesh=new eD(o,u,s),this._cachedMesh}recalculate(){}hasTransition(){return!1}},woe=class blt{constructor(t=0,r=0,i=0,n=0){if(isNaN(t)||t<0||isNaN(r)||r<0||isNaN(i)||i<0||isNaN(n)||n<0)throw Error("Invalid value for edge-insets, top, bottom, left and right must all be numbers");this.top=t,this.bottom=r,this.left=i,this.right=n}interpolate(t,r,i){return r.top!=null&&t.top!=null&&(this.top=ic.number(t.top,r.top,i)),r.bottom!=null&&t.bottom!=null&&(this.bottom=ic.number(t.bottom,r.bottom,i)),r.left!=null&&t.left!=null&&(this.left=ic.number(t.left,r.left,i)),r.right!=null&&t.right!=null&&(this.right=ic.number(t.right,r.right,i)),this}getCenter(t,r){let i=Pl((this.left+t-this.right)/2,0,t),n=Pl((this.top+r-this.bottom)/2,0,r);return new Jr(i,n)}equals(t){return this.top===t.top&&this.bottom===t.bottom&&this.left===t.left&&this.right===t.right}clone(){return new blt(this.top,this.bottom,this.left,this.right)}toJSON(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}}};Goe=class{constructor(e,t){var r;this.applyConstrain=(i,n)=>this._constrainOverride===null?this._callbacks.defaultConstrain(i,n):this._constrainOverride(i,n),this._callbacks=e,this._tileSize=512,this._renderWorldCopies=(t==null?void 0:t.renderWorldCopies)===void 0||!!(t!=null&&t.renderWorldCopies),this._minZoom=(t==null?void 0:t.minZoom)||0,this._maxZoom=(t==null?void 0:t.maxZoom)||22,this._minPitch=(t==null?void 0:t.minPitch)===void 0||(t==null?void 0:t.minPitch)===null?0:t==null?void 0:t.minPitch,this._maxPitch=(t==null?void 0:t.maxPitch)===void 0||(t==null?void 0:t.maxPitch)===null?60:t==null?void 0:t.maxPitch,this._constrainOverride=(r=t==null?void 0:t.constrainOverride)!=null?r:null,this.setMaxBounds(),this._width=0,this._height=0,this._center=new Js(0,0),this._elevation=0,this._zoom=0,this._tileZoom=rst(this._zoom),this._scale=id(this._zoom),this._bearingInRadians=0,this._fovInRadians=.6435011087932844,this._pitchInRadians=0,this._rollInRadians=0,this._unmodified=!0,this._edgeInsets=new woe,this._minElevationForCurrentTile=0,this._autoCalculateNearFarZ=!0}apply(e,t){this._constrainOverride=e.constrainOverride,this._latRange=e.latRange,this._lngRange=e.lngRange,this._width=e.width,this._height=e.height,this._center=e.center,this._elevation=e.elevation,this._minElevationForCurrentTile=e.minElevationForCurrentTile,this._zoom=e.zoom,this._tileZoom=rst(this._zoom),this._scale=id(this._zoom),this._bearingInRadians=e.bearingInRadians,this._fovInRadians=e.fovInRadians,this._pitchInRadians=e.pitchInRadians,this._rollInRadians=e.rollInRadians,this._unmodified=e.unmodified,this._edgeInsets=new woe(e.padding.top,e.padding.bottom,e.padding.left,e.padding.right),this._minZoom=e.minZoom,this._maxZoom=e.maxZoom,this._minPitch=e.minPitch,this._maxPitch=e.maxPitch,this._renderWorldCopies=e.renderWorldCopies,this._cameraToCenterDistance=e.cameraToCenterDistance,this._nearZ=e.nearZ,this._farZ=e.farZ,this._autoCalculateNearFarZ=e.autoCalculateNearFarZ,t&&this.constrainInternal(),this._calcMatrices()}get pixelsToClipSpaceMatrix(){return this._pixelsToClipSpaceMatrix}get clipSpaceToPixelsMatrix(){return this._clipSpaceToPixelsMatrix}get minElevationForCurrentTile(){return this._minElevationForCurrentTile}setMinElevationForCurrentTile(e){this._minElevationForCurrentTile=e}get tileSize(){return this._tileSize}get tileZoom(){return this._tileZoom}get scale(){return this._scale}get width(){return this._width}get height(){return this._height}get bearingInRadians(){return this._bearingInRadians}get lngRange(){return this._lngRange}get latRange(){return this._latRange}get pixelsToGLUnits(){return this._pixelsToGLUnits}get minZoom(){return this._minZoom}setMinZoom(e){if(this._minZoom===e)return;this._minZoom=e;let t=this._unmodified;this.setZoom(this.applyConstrain(this._center,this.zoom).zoom),this._unmodified=t}get maxZoom(){return this._maxZoom}setMaxZoom(e){if(this._maxZoom===e)return;this._maxZoom=e;let t=this._unmodified;this.setZoom(this.applyConstrain(this._center,this.zoom).zoom),this._unmodified=t}get minPitch(){return this._minPitch}setMinPitch(e){if(this._minPitch===e)return;this._minPitch=e;let t=this._unmodified;this.setPitch(Math.max(this.pitch,e)),this._unmodified=t}get maxPitch(){return this._maxPitch}setMaxPitch(e){if(this._maxPitch===e)return;this._maxPitch=e;let t=this._unmodified;this.setPitch(Math.min(this.pitch,e)),this._unmodified=t}get renderWorldCopies(){return this._renderWorldCopies}setRenderWorldCopies(e){e===void 0?e=!0:e===null&&(e=!1),this._renderWorldCopies=e}get constrainOverride(){return this._constrainOverride}setConstrainOverride(e){e===void 0&&(e=null),this._constrainOverride!==e&&(this._constrainOverride=e,this.constrainInternal(),this._calcMatrices())}get worldSize(){return this._tileSize*this._scale}get centerOffset(){return this.centerPoint._sub(this.size._div(2))}get size(){return new Jr(this._width,this._height)}get bearing(){return this._bearingInRadians/Math.PI*180}setBearing(e){let t=Tp(e,-180,180)*Math.PI/180;this._bearingInRadians!==t&&(this._unmodified=!1,this._bearingInRadians=t,this._calcMatrices(),this._rotationMatrix=qst(),QTr(this._rotationMatrix,this._rotationMatrix,-this._bearingInRadians))}get rotationMatrix(){return this._rotationMatrix}get pitchInRadians(){return this._pitchInRadians}get pitch(){return this._pitchInRadians/Math.PI*180}setPitch(e){let t=Pl(e,this.minPitch,this.maxPitch)/180*Math.PI;this._pitchInRadians!==t&&(this._unmodified=!1,this._pitchInRadians=t,this._calcMatrices())}get rollInRadians(){return this._rollInRadians}get roll(){return this._rollInRadians/Math.PI*180}setRoll(e){let t=e/180*Math.PI;this._rollInRadians!==t&&(this._unmodified=!1,this._rollInRadians=t,this._calcMatrices())}get fovInRadians(){return this._fovInRadians}get fov(){return E1(this._fovInRadians)}setFov(e){e=Pl(e,.1,150),this.fov!==e&&(this._unmodified=!1,this._fovInRadians=Yf(e),this._calcMatrices())}get zoom(){return this._zoom}setZoom(e){let t=this.applyConstrain(this._center,e).zoom;this._zoom!==t&&(this._unmodified=!1,this._zoom=t,this._tileZoom=Math.max(0,Math.floor(t)),this._scale=id(t),this.constrainInternal(),this._calcMatrices())}get center(){return this._center}setCenter(e){(e.lat!==this._center.lat||e.lng!==this._center.lng)&&(this._unmodified=!1,this._center=e,this.constrainInternal(),this._calcMatrices())}get elevation(){return this._elevation}setElevation(e){e!==this._elevation&&(this._elevation=e,this.constrainInternal(),this._calcMatrices())}get padding(){return this._edgeInsets.toJSON()}setPadding(e){this._edgeInsets.equals(e)||(this._unmodified=!1,this._edgeInsets.interpolate(this._edgeInsets,e,1),this._calcMatrices())}get centerPoint(){return this._edgeInsets.getCenter(this._width,this._height)}get pixelsPerMeter(){return this._pixelPerMeter}get unmodified(){return this._unmodified}get cameraToCenterDistance(){return this._cameraToCenterDistance}get nearZ(){return this._nearZ}get farZ(){return this._farZ}get autoCalculateNearFarZ(){return this._autoCalculateNearFarZ}overrideNearFarZ(e,t){this._autoCalculateNearFarZ=!1,this._nearZ=e,this._farZ=t,this._calcMatrices()}clearNearFarZOverride(){this._autoCalculateNearFarZ=!0,this._calcMatrices()}isPaddingEqual(e){return this._edgeInsets.equals(e)}interpolatePadding(e,t,r){this._unmodified=!1,this._edgeInsets.interpolate(e,t,r),this.constrainInternal(),this._calcMatrices()}resize(e,t,r=!0){this._width=e,this._height=t,r&&this.constrainInternal(),this._calcMatrices()}getMaxBounds(){var e,t;return((e=this._latRange)==null?void 0:e.length)!==2||((t=this._lngRange)==null?void 0:t.length)!==2?null:new B1([this._lngRange[0],this._latRange[0]],[this._lngRange[1],this._latRange[1]])}setMaxBounds(e){e?(this._lngRange=[e.getWest(),e.getEast()],this._latRange=[e.getSouth(),e.getNorth()],this.constrainInternal()):(this._lngRange=null,this._latRange=[-L1,L1])}getCameraQueryGeometry(e,t){if(t.length===1)return[t[0],e];{let{minX:r,minY:i,maxX:n,maxY:a}=Ev.fromPoints(t).extend(e);return[new Jr(r,i),new Jr(n,i),new Jr(n,a),new Jr(r,a),new Jr(r,i)]}}constrainInternal(){if(!this.center||!this._width||!this._height||this._constraining)return;this._constraining=!0;let e=this._unmodified,{center:t,zoom:r}=this.applyConstrain(this.center,this.zoom);this.setCenter(t),this.setZoom(r),this._unmodified=e,this._constraining=!1}_calcMatrices(){if(this._pixelPerMeter=bx(1,this.center.lat)*this.worldSize,!this._width||!this._height)return;this._pixelsToGLUnits=[2/this._width,-2/this._height];let e=kv(new Float64Array(16));c0(e,e,[this._width/2,-this._height/2,1]),ih(e,e,[1,-1,0]),this._clipSpaceToPixelsMatrix=e,e=kv(new Float64Array(16)),c0(e,e,[1,-1,1]),ih(e,e,[-1,-1,0]),c0(e,e,[2/this._width,2/this._height,1]),this._pixelsToClipSpaceMatrix=e;let t=this.fovInRadians/2;this._cameraToCenterDistance=.5/Math.tan(t)*this._height,this._callbacks.calcMatrices()}calculateCenterFromCameraLngLatAlt(e,t,r,i){let n=r===void 0?this.bearing:r,a=i=i===void 0?this.pitch:i,{distanceToCenter:o,clampedElevation:s}=this._distanceToCenterFromAltElevationPitch(t,this.elevation,a),{x:l,y:u}=Bq(a,n),f=Uu.fromLngLat(e,t),c=vae(1,f.y),h,d,p=0;do{if(p+=1,p>10)break;d=o/c;let v=l*d,y=u*d;h=new Uu(f.x+v,f.y+y),c=1/h.meterInMercatorCoordinateUnits()}while(Math.abs(o-d*c)>1e-12);return{center:h.toLngLat(),elevation:s,zoom:d0(this.height/2/Math.tan(this.fovInRadians/2)/d/this.tileSize)}}recalculateZoomAndCenter(e){if(this.elevation-e===0)return;let t=1/this.worldSize,r=bx(1,this.center.lat)*this.worldSize,i=Uu.fromLngLat(this.center,this.elevation),n=i.x/t,a=i.y/t,o=i.z/t,s=this.pitch,l=this.bearing,{x:u,y:f,z:c}=Bq(s,l),h=this.cameraToCenterDistance,d=n+h*-u,p=a+h*-f,v=o+h*c,{distanceToCenter:y,clampedElevation:m}=this._distanceToCenterFromAltElevationPitch(v/r,e,s),w=y*r,_=d+u*w,b=p+f*w,M=new Uu(_*t,b*t,0).toLngLat(),x=bx(1,M.lat),T=d0(this.height/2/Math.tan(this.fovInRadians/2)/y/x/this.tileSize);this._elevation=m,this._center=M,this.setZoom(T)}_distanceToCenterFromAltElevationPitch(e,t,r){let i=-Math.cos(Yf(r)),n=e-t,a,o=t;return i*n>=0||Math.abs(i)=0?1<i}allowWorldCopies(){return!0}prepareNextFrame(){}},dSr=dc([{name:"a_pos3d",type:"Int16",components:3}]),pSr=class extends ah{constructor(e){super(),this._lastTilesetChange=Ku(),this.tileManager=e,this._tiles={},this._renderableTilesKeys=[],this._sourceTileCache={},this.minzoom=0,this.maxzoom=22,this.deltaZoom=1,this.tileSize=e._source.tileSize*2**this.deltaZoom,e.usedForTerrain=!0,e.tileSize=this.tileSize}destruct(){this.tileManager.usedForTerrain=!1,this.tileManager.tileSize=null,this.releaseAllRTT()}getSource(){return this.tileManager._source}update(e,t){this.tileManager.update(e,t),this._renderableTilesKeys=[];let r={},i=!1;for(let n of fT(e,{tileSize:this.tileSize,minzoom:this.minzoom,maxzoom:this.maxzoom,reparseOverscaled:!1,terrain:t}))r[n.key]=!0,this._renderableTilesKeys.push(n.key),this._tiles[n.key]||(n.terrainRttPosMatrix32f=new Float32Array(16),F1(n.terrainRttPosMatrix32f,0,Aa,Aa,0,0,1),this._tiles[n.key]=new llt(n,this.tileSize),this._lastTilesetChange=Ku(),i=!0);for(let n in this._tiles)r[n]||(this._tiles[n].releaseRTT(this.tileManager.map.painter),delete this._tiles[n],i=!0);return i}releaseRTT(e){for(let t in this._tiles){let r=this._tiles[t];(r.tileID.equals(e)||r.tileID.isChildOf(e)||e.isChildOf(r.tileID))&&r.releaseRTT(this.tileManager.map.painter)}}releaseAllRTT(){for(let e in this._tiles)this._tiles[e].releaseRTT(this.tileManager.map.painter)}getRenderableTiles(){return this._renderableTilesKeys.map(e=>this.getTileByID(e))}getTileByID(e){return this._tiles[e]}getTerrainCoords(e,t){return t?this._getTerrainCoordsForTileRanges(e,t):this._getTerrainCoordsForRegularTile(e)}_getTerrainCoordsForRegularTile(e){let t={};for(let r of this._renderableTilesKeys){let i=this._tiles[r].tileID,n=e.clone(),a=yx();if(i.canonical.equals(e.canonical))F1(a,0,Aa,Aa,0,0,1);else if(i.canonical.isChildOf(e.canonical)){let o=i.canonical.z-e.canonical.z,s=i.canonical.x-(i.canonical.x>>o<>o<>o;F1(a,0,u,u,0,0,1),ih(a,a,[-s*u,-l*u,0])}else if(e.canonical.isChildOf(i.canonical)){let o=e.canonical.z-i.canonical.z,s=e.canonical.x-(e.canonical.x>>o<>o<>o;F1(a,0,Aa,Aa,0,0,1),ih(a,a,[s*u,l*u,0]),c0(a,a,[1/2**o,1/2**o,0])}else continue;n.terrainRttPosMatrix32f=new Float32Array(a),t[r]=n}return t}_getTerrainCoordsForTileRanges(e,t){let r={};for(let i of this._renderableTilesKeys){let n=this._tiles[i].tileID;if(!this._isWithinTileRanges(n,t))continue;let a=e.clone(),o=yx();if(n.canonical.z===e.canonical.z){let s=e.canonical.x-n.canonical.x+e.wrap*(1<e.canonical.z){let s=n.canonical.z-e.canonical.z,l=n.canonical.x-(n.canonical.x>>s<>s<>s),c=e.canonical.y-(n.canonical.y>>s),h=Aa>>s;F1(o,0,h,h,0,0,1),ih(o,o,[-l*h+f*Aa,-u*h+c*Aa,0])}else{let s=e.canonical.z-n.canonical.z,l=e.canonical.x-(e.canonical.x>>s<>s<>s)-n.canonical.x,c=(e.canonical.y>>s)-n.canonical.y,h=Aa<r.maxzoom&&(i=r.maxzoom),i=r.minzoom&&!(n!=null&&n.dem);)n=this.findTileInCaches(e.scaledTo(i--).key);return n}findTileInCaches(e){let t=this.tileManager.getTileByID(e);return t||(t=this.tileManager._outOfViewCache.getByKey(e),t)}anyTilesAfterTime(e=Ku()){return this._lastTilesetChange>=e}_isWithinTileRanges(e,t){let r=t[e.canonical.z];return!!r&&(e.wrap>r.minWrap||e.wrap=r.minTileXWrapped&&e.canonical.x<=r.maxTileXWrapped&&e.canonical.y>=r.minTileY&&e.canonical.y<=r.maxTileY)}},ist=Aa*(1-1e-12),nst=-.5,vSr=class{constructor(e,t,r,i="auto"){this._meshCache={},this.painter=e,this.tileManager=new pSr(t),this.options=r,this.exaggeration=typeof r.exaggeration=="number"?r.exaggeration:1,this._terrainSkirtLength=i,this.qualityFactor=2,this.meshSize=128,this._demMatrixCache=new Map,this._elevationSamplerCache=new Map}destroy(){this._fbo&&(this._fbo=(this._fbo.destroy(),null)),this._fboDepthTexture&&(this._fboDepthTexture=(this._fboDepthTexture.destroy(),null)),this._emptyDemTexture&&(this._emptyDemTexture=(this._emptyDemTexture.destroy(),null)),this._emptyDepthTexture&&(this._emptyDepthTexture=(this._emptyDepthTexture.destroy(),null));for(let e in this._meshCache)this._meshCache[e].destroy();this._meshCache={},this.tileManager.destruct()}getDEMElevation(e,t,r,i=Aa){let n=e.normalizeCoordinates(t,r,i);if(!n)return 0;let a=this.getElevationSampler(n.tileID);return a?a(n.x,n.y,i):0}getElevationForLngLatZoom(e,t){if(!Mae(t,e.wrap()))return 0;let{tileID:r,mercatorX:i,mercatorY:n}=this._getOverscaledTileIDFromLngLatZoom(e,t);return this.getElevation(r,i%Aa,n%Aa,Aa)}getElevationForLngLat(e,t){let r=this.getCoverageIndex();if(r){let a=Uu.fromLngLat(e),o=Hoe(r,this.exaggeration,a.x,a.y);if(o.demLoaded)return o.elevation}let i=fT(t,{maxzoom:this.tileManager.maxzoom,minzoom:this.tileManager.minzoom,tileSize:512,terrain:this}),n=0;for(let a of i)a.canonical.z>n&&(n=Math.min(a.canonical.z,this.tileManager.maxzoom));return this.getElevationForLngLatZoom(e,n)}getElevation(e,t,r,i=Aa){return this.getDEMElevation(e,t,r,i)*this.exaggeration}resetElevationCache(){this._elevationSamplerCache.clear(),this._coverageIndex=void 0}getCoverageIndex(){return this._coverageIndex===void 0&&(this._coverageIndex=this._buildCoverageIndex()),this._coverageIndex}_buildCoverageIndex(){let e=[],t=new Map,r=0,i=0;for(let n of this.tileManager.getRenderableTiles()){if(!n)continue;let{canonical:a,wrap:o}=n.tileID;e.includes(a.z)||e.push(a.z);let s=this.getElevationSampler(n.tileID);t.set(`${o}/${a.z}/${a.x}/${a.y}`,s);let{minElevation:l,maxElevation:u}=this.getMinMaxElevation(n.tileID);r=Math.min(r,l!=null?l:0),i=Math.max(i,u!=null?u:0)}return t.size===0?null:(e.sort((n,a)=>a-n),{zooms:e,samplerPerTile:t,minElevation:r-10,maxElevation:i+10})}getElevationSampler(e){let t=e.key,r=this._elevationSamplerCache.get(t);if(r)return r;let i=this.tileManager.getSourceTile(e,!0),n=i==null?void 0:i.dem;if(!i||!n)return null;let a=this._getDEMTileMatrix(e,i),o=a[0]*n.dim,s=a[5]*n.dim,l=a[12]*n.dim+nst,u=a[13]*n.dim+nst,f=(c,h,d)=>{let p=d===8192?1:Aa/d;return n.sampleBilinear(c*p*o+l,h*p*s+u)};return this._elevationSamplerCache.set(t,f),f}_getDEMTileMatrix(e,t){let r=`${t.tileID.key}/${e.key}`,i=this._demMatrixCache.get(r);if(i)return i;let n=e.canonical.z-t.tileID.canonical.z,a=e.canonical.x-(e.canonical.x>>n<>n<0,r=t&&e.canonical.y===0,i=t&&e.canonical.y===(1<{n=Pl(+n,this.minZoom,this.maxZoom);let a={center:new Js(i.lng,i.lat),zoom:n},o=this._helper._lngRange;!this._helper._renderWorldCopies&&o===null&&(o=[-179.9999999999,180-1e-10]);let s=this.tileSize*id(a.zoom),l=0,u=s,f=0,c=s,h=0,d=0,{x:p,y:v}=this.size;if(this._helper._latRange){let M=this._helper._latRange;l=g3(M[1])*s,u=g3(M[0])*s,u-lu&&(_=u-M)}if(o){let M=(f+c)/2,x=y;this._helper._renderWorldCopies&&(x=Tp(y,M-s/2,M+s/2));let T=p/2;x-Tc&&(w=c-T)}if(w!==void 0||_!==void 0){let M=new Jr(w!=null?w:y,_!=null?_:m);a.center=eT(s,M).wrap()}return a},this.applyConstrain=(i,n)=>this._helper.applyConstrain(i,n),this._helper=r!=null?r:new Goe({calcMatrices:()=>this._calcMatrices(),defaultConstrain:(i,n)=>this.defaultConstrain(i,n)},t),this._coveringTilesDetailsProvider=new hSr}clone(){let t=new Alt;return t.apply(this,!1),t}apply(t,r){this._helper.apply(t,r)}get cameraPosition(){return this._cameraPosition}get projectionMatrix(){return this._projectionMatrix}get modelViewProjectionMatrix(){return this._viewProjMatrix}get inverseProjectionMatrix(){return this._invProjMatrix}get mercatorMatrix(){return this._mercatorMatrix}getVisibleUnwrappedCoordinates(t){let r=[new RC(0,t)];if(this._helper._renderWorldCopies){let i=this.screenPointToMercatorCoordinate(new Jr(0,0)),n=this.screenPointToMercatorCoordinate(new Jr(this._helper._width,0)),a=this.screenPointToMercatorCoordinate(new Jr(this._helper._width,this._helper._height)),o=this.screenPointToMercatorCoordinate(new Jr(0,this._helper._height)),s=Math.floor(Math.min(i.x,n.x,a.x,o.x)),l=Math.floor(Math.max(i.x,n.x,a.x,o.x));for(let u=s-1;u<=l+1;u++)u!==0&&r.push(new RC(u,t))}return r}getCameraFrustum(){return Boe.fromInvProjectionMatrix(this._invViewProjMatrix,this.worldSize)}getClippingPlane(){return null}getCoveringTilesDetailsProvider(){return this._coveringTilesDetailsProvider}recalculateZoomAndCenter(t){let r=this.screenPointToLocation(this.centerPoint,t),i=t?t.getElevationForLngLat(r,this):0;this._helper.recalculateZoomAndCenter(i)}setLocationAtPoint(t,r,i=this.elevation){let n=i-this.elevation,a=this.screenPointToMercatorCoordinateAtZ(r,n),o=this.screenPointToMercatorCoordinateAtZ(this.centerPoint,0),s=Uu.fromLngLat(t),l=new Uu(s.x-(a.x-o.x),s.y-(a.y-o.y));this.setCenter(l==null?void 0:l.toLngLat()),this._helper._renderWorldCopies&&this.setCenter(this.center.wrap())}locationToScreenPoint(t,r){return r?this.coordinatePoint(Uu.fromLngLat(t),r.getElevationForLngLat(t,this),this._pixelMatrix3D):this.coordinatePoint(Uu.fromLngLat(t))}screenPointToLocation(t,r){var i;return(i=this.screenPointToMercatorCoordinate(t,r))==null?void 0:i.toLngLat()}screenPointToLocationAtElevation(t,r){var i;return(i=this.screenPointToMercatorCoordinateAtZ(t,r-this.elevation))==null?void 0:i.toLngLat()}screenPointToMercatorCoordinate(t,r){if(r){let i=this.screenTerrainPointToMercatorCoordinate(t,r);if(i!=null)return i}return this.screenPointToMercatorCoordinateAtZ(t)}screenTerrainPointToMercatorCoordinate(t,r){let i=r.getCoverageIndex();if(!i)return null;let{near:n,far:a}=this.getRaySegmentFromPixel(t),o=this.worldSize,s=a[0]-n[0],l=a[1]-n[1],u=a[2]-n[2],f={index:i,exaggeration:r.exaggeration,near:n,dx:s,dy:l,dz:u,worldSize:o},c=0,h=1;if(u===0){if(n[2]>i.maxElevation||n[2]h)return null}let d=Math.hypot(s,l),p=Pl(Math.ceil(d*(h-c)/4),1,512),v=0,y=!Kq(f,0);for(let m=0;m<=p;m++){let w=c+(h-c)*m/p;if(!y)y=!Kq(f,w);else if(Kq(f,w)){let{lo:_,hi:b}=wlt(f,Kq,v,w,.001/d),M=fO(f,_),x=fO(f,b),T=n[2]+_*u-M.elevation,A=n[2]+b*u-x.elevation,g=M.covered&&T>A?Pl(_+T*(b-_)/(T-A),_,b):b;return new Uu((n[0]+g*s)/o,(n[1]+g*l)/o,fO(f,g).elevation)}v=w}return null}getRaySegmentFromPixel(t){let r=[t.x,t.y,0,1],i=[t.x,t.y,1,1];h0(r,r,this._pixelMatrixInverse),h0(i,i,this._pixelMatrixInverse);let n=r[3],a=i[3],o=this.elevation;return{near:[r[0]/n,r[1]/n,r[2]/n+o],far:[i[0]/a,i[1]/a,i[2]/a+o]}}screenPointToMercatorCoordinateAtZ(t,r){let i=r||0,{near:n,far:a}=this.getRaySegmentFromPixel(t),o=n[2]===a[2]?0:(i+this.elevation-n[2])/(a[2]-n[2]);return new Uu(ic.number(n[0],a[0],o)/this.worldSize,ic.number(n[1],a[1],o)/this.worldSize,i)}coordinatePoint(t,r=0,i=this._pixelMatrix){let n=this._coordinateClipPoint(t,r,i),a=n[3];return a>0?new Jr(n[0]/a,n[1]/a):this._offScreenPointBehindCamera(n[0],n[1],a)}_coordinateClipPoint(t,r,i){let n=[t.x*this.worldSize,t.y*this.worldSize,r,1];return h0(n,n,i)}_offScreenPointBehindCamera(t,r,i){let n=this.width/2,a=this.height/2,o=t-n*i,s=r-a*i;o===0&&s===0&&(s=1);let l=n+this.width,u=a+this.height,f=Math.min(o===0?1/0:l/Math.abs(o),s===0?1/0:u/Math.abs(s));return new Jr(n+o*f,a+s*f)}getBounds(){let t=Math.max(0,this._helper._height/2-tT(this));return new B1().extend(this.screenPointToLocation(new Jr(0,t))).extend(this.screenPointToLocation(new Jr(this._helper._width,t))).extend(this.screenPointToLocation(new Jr(this._helper._width,this._helper._height))).extend(this.screenPointToLocation(new Jr(0,this._helper._height)))}isPointOnMapSurface(t,r){return r?this.screenTerrainPointToMercatorCoordinate(t,r)!=null:t.y>this.centerPoint.y-tT(this)}calculatePosMatrix(t,r=!1,i=!1){var l;let n=(l=t.key)!=null?l:a3(t.wrap,t.canonical.z,t.canonical.z,t.canonical.x,t.canonical.y),a=r?this._alignedPosMatrixCache:this._posMatrixCache;if(a.has(n)){let u=a.get(n);return i?u.f32:u.f64}let o=Rq(t,this.worldSize);c3(o,r?this._alignedProjMatrix:this._viewProjMatrix,o);let s={f64:o,f32:new Float32Array(o)};return a.set(n,s),i?s.f32:s.f64}calculateFogMatrix(t){let r=t.key,i=this._fogMatrixCacheF32;if(i.has(r))return i.get(r);let n=Rq(t,this.worldSize);return c3(n,this._fogMatrix,n),i.set(r,new Float32Array(n)),i.get(r)}calculateCenterFromCameraLngLatAlt(t,r,i,n){return this._helper.calculateCenterFromCameraLngLatAlt(t,r,i,n)}calculateCameraOptionsFromTo(t,r,i,n){let a=Uu.fromLngLat(t,r),o=Uu.fromLngLat(i,n),s=o.x-a.x,l=o.y-a.y,u=o.z-a.z,f=Math.hypot(s,l,u);if(f===0)throw Error("Can't calculate camera options with same From and To");let c=Math.hypot(s,l),h=d0(this.cameraToCenterDistance/f/this.tileSize),d=E1(Math.atan2(s,-l)),p=E1(Math.acos(c/f));return p=u<0?90-p:90+p,{center:o.toLngLat(),elevation:n,zoom:h,pitch:p,bearing:d}}_calculateNearFarZ(t,r,i){let n=Math.min(this.elevation,this.minElevationForCurrentTile,this.getCameraAltitude()-100),a=t-n*this._helper._pixelPerMeter/Math.cos(r),o=n<0?a:t,s=Math.PI/2+this.pitchInRadians,l=Yf(this.fov)*(Math.abs(Math.cos(Yf(this.roll)))*this.height+Math.abs(Math.sin(Yf(this.roll)))*this.width)/this.height*(.5+i.y/this.height),u=Math.sin(l)*o/Math.sin(Pl(Math.PI-s-l,.01,Math.PI-.01)),f=tT(this),c=Math.atan(f/this._helper.cameraToCenterDistance),h=Yf(90-_x),d=c>h?2*c*(.5+i.y/(f*2)):h,p=Math.sin(d)*o/Math.sin(Pl(Math.PI-s-d,.01,Math.PI-.01)),v=Math.min(u,p);this._helper._farZ=(Math.cos(Math.PI/2-r)*v+o)*1.01,this._helper._nearZ=this._helper._height/50}_calcMatrices(t=this._helper.autoCalculateNearFarZ){let r=this.centerOffset,i=I1(this.worldSize,this.center),n=i.x,a=i.y,o=Yf(Math.min(this.pitch,_x)),s=Math.max(this._helper.cameraToCenterDistance/2,this._helper.cameraToCenterDistance+this._helper._elevation*this._helper._pixelPerMeter/Math.cos(o));t&&this._calculateNearFarZ(s,o,r);let l;l=new Float64Array(16),Q7(l,this.fovInRadians,this._helper._width/this._helper._height,this._helper._nearZ,this._helper._farZ),this._invProjMatrix=new Float64Array(16),zMr(this._invProjMatrix,l),l[8]=-r.x*2/this._helper._width,l[9]=r.y*2/this._helper._height,this._projectionMatrix=J7(l),c0(l,l,[1,-1,1]),ih(l,l,[0,0,-this._helper.cameraToCenterDistance]),rg(l,l,-this.rollInRadians),h3(l,l,this.pitchInRadians),rg(l,l,-this.bearingInRadians),ih(l,l,[-n,-a,0]),this._mercatorMatrix=c0([],l,[this.worldSize,this.worldSize,this.worldSize]),c0(l,l,[1,1,this._helper._pixelPerMeter]),this._pixelMatrix=c3(new Float64Array(16),this.clipSpaceToPixelsMatrix,l),ih(l,l,[0,0,-this.elevation]),this._viewProjMatrix=l,this._invViewProjMatrix=fC([],l);let u=[0,0,-1,1];h0(u,u,this._invViewProjMatrix),this._cameraPosition=[u[0]/u[3],u[1]/u[3],u[2]/u[3]],this._fogMatrix=new Float64Array(16),Q7(this._fogMatrix,this.fovInRadians,this.width/this.height,s,this._helper._farZ),this._fogMatrix[8]=-r.x*2/this.width,this._fogMatrix[9]=r.y*2/this.height,c0(this._fogMatrix,this._fogMatrix,[1,-1,1]),ih(this._fogMatrix,this._fogMatrix,[0,0,-this.cameraToCenterDistance]),rg(this._fogMatrix,this._fogMatrix,-this.rollInRadians),h3(this._fogMatrix,this._fogMatrix,this.pitchInRadians),rg(this._fogMatrix,this._fogMatrix,-this.bearingInRadians),ih(this._fogMatrix,this._fogMatrix,[-n,-a,0]),c0(this._fogMatrix,this._fogMatrix,[1,1,this._helper._pixelPerMeter]),ih(this._fogMatrix,this._fogMatrix,[0,0,-this.elevation]),this._pixelMatrix3D=c3(new Float64Array(16),this.clipSpaceToPixelsMatrix,l);let f=this._helper._width%2/2,c=this._helper._height%2/2,h=Math.cos(this.bearingInRadians),d=Math.sin(-this.bearingInRadians),p=n-Math.round(n)+h*f+d*c,v=a-Math.round(a)+h*c+d*f,y=new Float64Array(l);if(ih(y,y,[p>.5?p-1:p,v>.5?v-1:v,0]),this._alignedProjMatrix=y,l=fC(new Float64Array(16),this._pixelMatrix),!l)throw Error("failed to invert matrix");this._pixelMatrixInverse=l,this._clearMatrixCaches()}_clearMatrixCaches(){this._posMatrixCache.clear(),this._alignedPosMatrixCache.clear(),this._fogMatrixCacheF32.clear()}maxPitchScaleFactor(){if(!this._pixelMatrixInverse)return 1;let t=this.screenPointToMercatorCoordinate(new Jr(0,0)),r=[t.x*this.worldSize,t.y*this.worldSize,0,1];return h0(r,r,this._pixelMatrix)[3]/this._helper.cameraToCenterDistance}getCameraPoint(){return this._helper.getCameraPoint()}getCameraAltitude(){return Math.cos(this.pitchInRadians)*this.cameraToCenterDistance/this.pixelsPerMeter+this.elevation}getCameraLngLat(){let t=bx(1,this.center.lat)*this.worldSize,r=this._helper.cameraToCenterDistance/t;return yae(this.center,this.elevation,this.pitch,this.bearing,r).toLngLat()}getProjectionData(t){let{overscaledTileID:r,aligned:i,applyTerrainMatrix:n}=t,a=this._helper.getMercatorTileCoordinates(r),o=r?this.calculatePosMatrix(r,i,!0):null,s;return s=r!=null&&r.terrainRttPosMatrix32f&&n?r.terrainRttPosMatrix32f:o||kne(),{mainMatrix:s,tileMercatorCoords:a,clippingPlane:[0,0,0,0],projectionTransition:0,fallbackMatrix:s,clipAntimeridian:!1}}isLocationOccluded(t,r,i){if(!(r!=null&&r.getCoverageIndex()))return!1;let n=Uu.fromLngLat(t);i!=null||(i=r.getElevationForLngLat(t,this));let a=this._coordinateClipPoint(n,i,this._pixelMatrix3D),o=a[3];if(o<=0||a[2]>o)return!0;let s=new Jr(a[0]/o,a[1]/o),l=this.screenTerrainPointToMercatorCoordinate(s,r);if(l==null)return!1;let u=this.getRaySegmentFromPixel(s),f=ost(u,n.x*this.worldSize,n.y*this.worldSize,i);return ost(u,l.x*this.worldSize,l.y*this.worldSize,l.z){if(l&&e.setZoom(ic.number(r,d,_)),Fne(n,a)||Mlt({startEulerAngles:n,endEulerAngles:a,tr:e,k:_,useSlerp:n.roll!=a.roll}),s&&(e.interpolatePadding(i,t.padding,_),f=e.centerPoint.add(t.offsetAsPoint)),t.around)e.setLocationAtPoint(t.around,t.aroundPoint);else{let b=id(e.zoom-r),M=(d>r?Math.min(2,y):Math.max(.5,y))**(1-_),x=eT(e.worldSize,p.add(v.mult(_*M)).mult(b));e.setLocationAtPoint(e.renderWorldCopies?x.wrap():x,f)}},w=this._transformAtAnimationEnd(e,d,a,t.padding);return t.around?w.setLocationAtPoint(t.around,t.aroundPoint):w.setLocationAtPoint(h,w.centerPoint.add(t.offsetAsPoint)),{easeFunc:m,isZooming:l,elevationCenter:w.center}}handleFlyTo(e,t){let r=t.zoom!==void 0,i=e.zoom,n=e.applyConstrain(Js.convert(t.center||t.locationAtOffset),r?+t.zoom:i),a=n.center,o=n.zoom;pO(e,a);let s=e.worldSize,l=I1(s,t.locationAtOffset),u=I1(s,a).sub(l),f=u.mag(),c=id(o-i),h=t.minZoom===void 0?e.minZoom:+t.minZoom,d=Math.max(h,e.minZoom),p=Math.min(d,i,o),v=e.applyConstrain(a,p).zoom,y=id(v-i),m=(_,b,M,x)=>{e.setZoom(_===1?o:i+d0(b));let T=_===1?a:eT(s,l.add(u.mult(M)));e.setLocationAtPoint(e.renderWorldCopies?T.wrap():T,x)},w=this._transformAtAnimationEnd(e,o,{roll:t.roll,pitch:t.pitch,bearing:t.bearing},t.padding);return w.setLocationAtPoint(a,w.centerPoint.add(t.offsetAsPoint)),{easeFunc:m,scaleOfZoom:c,targetCenter:w.center,scaleOfMinZoom:y,pixelPathLength:f}}_transformAtAnimationEnd(e,t,r,i){let n=e.clone();return n.setZoom(t),n.setRoll(r.roll),n.setPitch(r.pitch),n.setBearing(r.bearing),n.setPadding(i),n}},mSr=()=>sst||(sst=new Vh({type:new ms(hn.projection.type,"type")})),Xae=new zq({fill:new Rm(128,2),line:new Rm(512,0),tile:new Rm(128,32),stencil:new Rm(128,1),circle:3}),Elt=class{constructor(){this._tileMeshCache={}}get name(){return"vertical-perspective"}get transitionState(){return 1}get useSubdivision(){return!0}get shaderVariantName(){return"globe"}get shaderDefine(){return"#define GLOBE"}get shaderPreludeCode(){return jm.projectionGlobe}get vertexShaderPreludeCode(){return jm.projectionMercator.vertexSource}get subdivisionGranularity(){return Xae}get useGlobeControls(){return!0}destroy(){}_getMeshKey(e){return`${e.granularity.toString(36)}_${e.generateBorders?"b":""}${e.extendToNorthPole?"n":""}${e.extendToSouthPole?"s":""}`}getMeshFromTileID(e,t,r,i,n){let a=(n==="stencil"?Xae.stencil:Xae.tile).getGranularityForZoomLevel(t.z),o=t.y===0&&i,s=t.y===(1<0}get currentProjection(){return this.useGlobeRendering?this._verticalPerspectiveProjection:this._mercatorProjection}get name(){return"globe"}get useSubdivision(){return this.currentProjection.useSubdivision}get shaderVariantName(){return this.currentProjection.shaderVariantName}get shaderDefine(){return this.currentProjection.shaderDefine}get shaderPreludeCode(){return this.currentProjection.shaderPreludeCode}get vertexShaderPreludeCode(){return this.currentProjection.vertexShaderPreludeCode}get subdivisionGranularity(){return this.currentProjection.subdivisionGranularity}get useGlobeControls(){return this.transitionState>0}destroy(){this._mercatorProjection.destroy(),this._verticalPerspectiveProjection.destroy()}getMeshFromTileID(e,t,r,i,n){return this.currentProjection.getMeshFromTileID(e,t,r,i,n)}setProjection(e){this._transitionable.setValue("type",(e==null?void 0:e.type)||"mercator")}updateTransitions(e){this._transitioning=this._transitionable.transitioned(e,this._transitioning)}hasTransition(){return this._transitioning.hasTransition()||this.currentProjection.hasTransition()}recalculate(e){this.properties=this._transitioning.possiblyEvaluate(e)}};Zae=Math.PI*.98;kSr=class{constructor(e){this._cachePrevious=new Map,this._cache=new Map,this._hadAnyChanges=!1,this._boundingVolumeFactory=e}swapBuffers(){if(!this._hadAnyChanges)return;let e=this._cachePrevious;this._cachePrevious=this._cache,this._cache=e,this._cache.clear(),this._hadAnyChanges=!1}getTileBoundingVolume(e,t,r,i){let n=`${e.z}_${e.x}_${e.y}_${i!=null&&i.terrain?"t":""}_${Math.round(r)}`,a=this._cache.get(n);if(a)return a;let o=this._cachePrevious.get(n);if(o)return this._cache.set(n,o),o;let s=this._boundingVolumeFactory(e,t,r,i);return this._cache.set(n,s),this._hadAnyChanges=!0,s}},Jae=class Aoe{constructor(t,r,i,n){this.min=i,this.max=n,this.points=t,this.planes=r}static fromAabb(t,r){let i=[];for(let n=0;n<8;n++)i.push([(n>>0&1)==1?r[0]:t[0],(n>>1&1)==1?r[1]:t[1],(n>>2&1)==1?r[2]:t[2]]);return new Aoe(i,[[-1,0,0,r[0]],[1,0,0,-t[0]],[0,-1,0,r[1]],[0,1,0,-t[1]],[0,0,-1,r[2]],[0,0,1,-t[2]]],t,r)}static fromCenterSizeAngles(t,r,i){let n=nq([],i[0],i[1],i[2]),a=rq([],[r[0],0,0],n),o=rq([],[0,r[1],0],n),s=rq([],[0,0,r[2]],n),l=[...t],u=[...t];for(let c=0;c<8;c++)for(let h=0;h<3;h++){let d=t[h]+a[h]*((c>>0&1)==1?1:-1)+o[h]*((c>>1&1)==1?1:-1)+s[h]*((c>>2&1)==1?1:-1);l[h]=Math.min(l[h],d),u[h]=Math.max(u[h],d)}let f=[];for(let c=0;c<8;c++){let h=[...t];wp(h,h,$f([],a,(c>>0&1)==1?1:-1)),wp(h,h,$f([],o,(c>>1&1)==1?1:-1)),wp(h,h,$f([],s,(c>>2&1)==1?1:-1)),f.push(h)}return new Aoe(f,[[...a,-nh(a,f[0])],[...o,-nh(o,f[0])],[...s,-nh(s,f[0])],[-a[0],-a[1],-a[2],-nh(a,f[7])],[-o[0],-o[1],-o[2],-nh(o,f[7])],[-s[0],-s[1],-s[2],-nh(s,f[7])]],l,u)}intersectsFrustum(t){let r=!0,i=this.points.length,n=this.planes.length,a=t.planes.length,o=t.points.length;for(let s=0;s=0&&u++}if(u===0)return 0;u=0&&u++}if(u===0)return 0}return 1}intersectsPlane(t){let r=this.points.length,i=0;for(let n=0;n=0&&i++}return i===r?2:i===0?0:1}};CSr=class{constructor(){this._boundingVolumeCache=new kSr(this._computeTileBoundingVolume)}prepareNextFrame(){this._boundingVolumeCache.swapBuffers()}distanceToTile2d(e,t,r,i){let n=1<4}allowWorldCopies(){return!1}getTileBoundingVolume(e,t,r,i){return this._boundingVolumeCache.getTileBoundingVolume(e,t,r,i)}_computeTileBoundingVolume(e,t,r,i){var o,s;let n=Math.min(0,r),a=Math.max(0,r);if(i!=null&&i.terrain){let l=new p0(e.z,t,e.z,e.x,e.y),u=i.terrain.getMinMaxElevation(l);n=(o=u.minElevation)!=null?o:n,a=Math.max((s=u.maxElevation)!=null?s:a,a)}if(n/=ad,a/=ad,n+=1,a+=1,e.z<=0)return Jae.fromAabb([-a,-a,-a],[a,a,a]);if(e.z===1)return Jae.fromAabb([e.x===0?-a:0,e.y===0?0:-a,-a],[e.x===0?0:a,e.y===0?a:0,a]);{let l=[wx(0,0,e.x,e.y,e.z),wx(Aa,0,e.x,e.y,e.z),wx(Aa,Aa,e.x,e.y,e.z),wx(0,Aa,e.x,e.y,e.z)],u=[];for(let E of l)u.push($f([],E,a));if(a!==n)for(let E of l)u.push($f([],E,n));e.y===0&&u.push([0,1,0]),e.y===(1<=(1<{let a=Pl(i.lat,-L1,L1),o=Pl(+n,this.minZoom+v0(0,a),this.maxZoom);return{center:new Js(i.lng,a),zoom:o}},this.applyConstrain=(i,n)=>this._helper.applyConstrain(i,n),this._helper=r!=null?r:new Goe({calcMatrices:()=>this._calcMatrices(),defaultConstrain:(i,n)=>this.defaultConstrain(i,n)},t),this._coveringTilesDetailsProvider=new CSr}clone(){let t=new Llt;return t.apply(this,!1),t}apply(t,r){this._helper.apply(t,r)}get projectionMatrix(){return this._projectionMatrix}get modelViewProjectionMatrix(){return this._globeViewProjMatrixF64}get inverseProjectionMatrix(){return this._globeProjMatrixInverted}get cameraPosition(){let t=Gu();return t[0]=this._cameraPosition[0],t[1]=this._cameraPosition[1],t[2]=this._cameraPosition[2],t}get cameraToCenterDistance(){return this._helper.cameraToCenterDistance}getProjectionData(t){let{overscaledTileID:r,applyGlobeMatrix:i}=t,n=this._helper.getMercatorTileCoordinates(r);return{mainMatrix:this._globeViewProjMatrix32f,tileMercatorCoords:n,clippingPlane:this._cachedClippingPlane,projectionTransition:+!!i,fallbackMatrix:this._globeViewProjMatrix32f,clipAntimeridian:(r==null?void 0:r.canonical.z)===0}}_computeClippingPlane(t){let r=this.pitchInRadians,i=this.cameraToCenterDistance/t,n=Math.sin(r)*i,a=Math.cos(r)*i+1,o=1/Math.sqrt(n*n+a*a)*1,s=-n,l=a,u=Math.sqrt(s*s+l*l);s/=u,l/=u;let f=[0,s,l];iq(f,f,[0,0,0],-this.bearingInRadians),$5(f,f,[0,0,0],-1*this.center.lat*Math.PI/180),d3(f,f,[0,0,0],this.center.lng*Math.PI/180);let c=1/Cv(f);return $f(f,f,c),[...f,-o*c]}isLocationOccluded(t,r,i){let n=r==null?void 0:r.getCoverageIndex();i!=null||(i=n?r.getElevationForLngLat(t,this):0);let a=pst(t,i);if(!this.isSurfacePointVisible(a))return!0;if(!n)return!1;let o=this._projectSurfacePointToScreen(a),s=this.cameraPosition,l=this.getRayDirectionFromPixel(o),u=vst(s,l,a);if(u<=0)return!0;let f=this.screenTerrainPointToMercatorCoordinate(o,r);return f!=null&&vst(s,l,pst(f.toLngLat(),f.z))a&&(a=h),ds&&(s=d)}let f=[u.lng+o,u.lat+l,u.lng+a,u.lat+s];return this.isSurfacePointOnScreen([0,1,0])&&(f[3]=90,f[0]=-180,f[2]=180),this.isSurfacePointOnScreen([0,-1,0])&&(f[1]=-90,f[0]=-180,f[2]=180),new B1(f)}calculateCenterFromCameraLngLatAlt(t,r,i,n){return this._helper.calculateCenterFromCameraLngLatAlt(t,r,i,n)}calculateCameraOptionsFromTo(t,r,i,n){let a=Js.convert(i),o=Uh(Js.convert(t));$f(o,o,1+r/ad);let s=Uh(a),l=$f(Gu(),s,1+n/ad),u=tq(Gu(),o,s),f=Cv(u);if(f=-w&&v<=w,b=m>=-w&&m<=w,M,x;if(_&&b){let E=this.center.lng*Math.PI/180,S=this.center.lat*Math.PI/180,C=vC(h,E),k=vC(v,S),D=vC(d,E),F=vC(m,S);C+k=0}isSurfacePointOnScreen(t){if(!this.isSurfacePointVisible(t))return!1;let r=mx();return h0(r,[...t,1],this._globeViewProjMatrixF64),r[0]/=r[3],r[1]/=r[3],r[2]/=r[3],r[0]>-1&&r[0]<1&&r[1]>-1&&r[1]<1&&r[2]>-1&&r[2]<1}unprojectScreenPoint(t){let r=this._cameraPosition,i=this.getRayDirectionFromPixel(t),n=Jq(r,i);if(n){let f=Gu();wp(f,r,[i[0]*n.tMin,i[1]*n.tMin,i[2]*n.tMin]);let c=Gu();return rd(c,f),JC(c)}let a=this._cachedClippingPlane,o=a[0]*i[0]+a[1]*i[1]+a[2]*i[2],s=-oq(a,r)/o,l=Gu();if(s>0)wp(l,r,[i[0]*s,i[1]*s,i[2]*s]);else{let f=Gu();wp(f,r,[i[0]*2,i[1]*2,i[2]*2]);let c=oq(this._cachedClippingPlane,f);Um(l,f,[this._cachedClippingPlane[0]*c,this._cachedClippingPlane[1]*c,this._cachedClippingPlane[2]*c])}let u=TSr(a);return JC(MSr(u.center,u.radius,l))}getProjectionDataForCustomLayer(t=!0){let r=this.getProjectionData({overscaledTileID:new p0(0,0,0,0,0),applyGlobeMatrix:t});return r.tileMercatorCoords=[0,0,1,1],r}getFastPathSimpleProjectionMatrix(t){}};mst=class zlt{get pixelsToClipSpaceMatrix(){return this._helper.pixelsToClipSpaceMatrix}get clipSpaceToPixelsMatrix(){return this._helper.clipSpaceToPixelsMatrix}get pixelsToGLUnits(){return this._helper.pixelsToGLUnits}get centerOffset(){return this._helper.centerOffset}get size(){return this._helper.size}get rotationMatrix(){return this._helper.rotationMatrix}get centerPoint(){return this._helper.centerPoint}get pixelsPerMeter(){return this._helper.pixelsPerMeter}setMinZoom(t){this._helper.setMinZoom(t)}setMaxZoom(t){this._helper.setMaxZoom(t)}setMinPitch(t){this._helper.setMinPitch(t)}setMaxPitch(t){this._helper.setMaxPitch(t)}setRenderWorldCopies(t){this._helper.setRenderWorldCopies(t)}setBearing(t){this._helper.setBearing(t)}setPitch(t){this._helper.setPitch(t)}setRoll(t){this._helper.setRoll(t)}setFov(t){this._helper.setFov(t)}setZoom(t){this._helper.setZoom(t)}setCenter(t){this._helper.setCenter(t)}setElevation(t){this._helper.setElevation(t)}setMinElevationForCurrentTile(t){this._helper.setMinElevationForCurrentTile(t)}setPadding(t){this._helper.setPadding(t)}interpolatePadding(t,r,i){this._helper.interpolatePadding(t,r,i)}isPaddingEqual(t){return this._helper.isPaddingEqual(t)}resize(t,r,i=!0){this._helper.resize(t,r,i)}getMaxBounds(){return this._helper.getMaxBounds()}setMaxBounds(t){this._helper.setMaxBounds(t)}setConstrainOverride(t){this._helper.setConstrainOverride(t)}overrideNearFarZ(t,r){this._helper.overrideNearFarZ(t,r)}clearNearFarZOverride(){this._helper.clearNearFarZOverride()}getCameraQueryGeometry(t){return this._helper.getCameraQueryGeometry(this.getCameraPoint(),t)}get tileSize(){return this._helper.tileSize}get tileZoom(){return this._helper.tileZoom}get scale(){return this._helper.scale}get worldSize(){return this._helper.worldSize}get width(){return this._helper.width}get height(){return this._helper.height}get lngRange(){return this._helper.lngRange}get latRange(){return this._helper.latRange}get minZoom(){return this._helper.minZoom}get maxZoom(){return this._helper.maxZoom}get zoom(){return this._helper.zoom}get center(){return this._helper.center}get minPitch(){return this._helper.minPitch}get maxPitch(){return this._helper.maxPitch}get pitch(){return this._helper.pitch}get pitchInRadians(){return this._helper.pitchInRadians}get roll(){return this._helper.roll}get rollInRadians(){return this._helper.rollInRadians}get bearing(){return this._helper.bearing}get bearingInRadians(){return this._helper.bearingInRadians}get fov(){return this._helper.fov}get fovInRadians(){return this._helper.fovInRadians}get elevation(){return this._helper.elevation}get minElevationForCurrentTile(){return this._helper.minElevationForCurrentTile}get padding(){return this._helper.padding}get unmodified(){return this._helper.unmodified}get renderWorldCopies(){return this._helper.renderWorldCopies}get cameraToCenterDistance(){return this._helper.cameraToCenterDistance}get constrainOverride(){return this._helper.constrainOverride}get nearZ(){return this._helper.nearZ}get farZ(){return this._helper.farZ}get autoCalculateNearFarZ(){return this._helper.autoCalculateNearFarZ}get isGlobeRendering(){return this._globeness>0}setTransitionState(t){this._globeness=t,this._calcMatrices(),this._verticalPerspectiveTransform.getCoveringTilesDetailsProvider().prepareNextFrame(),this._mercatorTransform.getCoveringTilesDetailsProvider().prepareNextFrame()}get currentTransform(){return this.isGlobeRendering?this._verticalPerspectiveTransform:this._mercatorTransform}constructor(t){this._globeness=1,this.defaultConstrain=(r,i)=>this.currentTransform.defaultConstrain(r,i),this.applyConstrain=(r,i)=>this._helper.applyConstrain(r,i),this._helper=new Goe({calcMatrices:()=>this._calcMatrices(),defaultConstrain:(r,i)=>this.defaultConstrain(r,i)},t),this._globeness=1,this._mercatorTransform=new vO(void 0,this._helper),this._verticalPerspectiveTransform=new Flt(void 0,this._helper)}clone(){let t=new zlt;return t._globeness=this._globeness,t.apply(this,!1),t}apply(t,r){this._helper.apply(t,r)}get projectionMatrix(){return this.currentTransform.projectionMatrix}get modelViewProjectionMatrix(){return this.currentTransform.modelViewProjectionMatrix}get inverseProjectionMatrix(){return this.currentTransform.inverseProjectionMatrix}get cameraPosition(){return this.currentTransform.cameraPosition}getProjectionData(t){let r=this._mercatorTransform.getProjectionData(t),i=this._verticalPerspectiveTransform.getProjectionData(t);return{mainMatrix:this.isGlobeRendering?i.mainMatrix:r.mainMatrix,clippingPlane:i.clippingPlane,tileMercatorCoords:i.tileMercatorCoords,projectionTransition:t.applyGlobeMatrix?this._globeness:0,fallbackMatrix:r.fallbackMatrix,clipAntimeridian:i.clipAntimeridian}}isLocationOccluded(t,r,i){return this.currentTransform.isLocationOccluded(t,r,i)}transformLightDirection(t){return this.currentTransform.transformLightDirection(t)}getPixelScale(){return p3(this._mercatorTransform.getPixelScale(),this._verticalPerspectiveTransform.getPixelScale(),this._globeness)}getCircleRadiusCorrection(){return p3(this._mercatorTransform.getCircleRadiusCorrection(),this._verticalPerspectiveTransform.getCircleRadiusCorrection(),this._globeness)}getPitchedTextCorrection(t,r,i){let n=this._mercatorTransform.getPitchedTextCorrection(t,r,i),a=this._verticalPerspectiveTransform.getPitchedTextCorrection(t,r,i);return p3(n,a,this._globeness)}projectTileCoordinates(t,r,i,n){return this.currentTransform.projectTileCoordinates(t,r,i,n)}_calcMatrices(){this._helper._width&&this._helper._height&&(this._verticalPerspectiveTransform._calcMatrices(),this._mercatorTransform._calcMatrices(this.autoCalculateNearFarZ&&!this.isGlobeRendering))}calculateFogMatrix(t){return this.currentTransform.calculateFogMatrix(t)}getVisibleUnwrappedCoordinates(t){return this.currentTransform.getVisibleUnwrappedCoordinates(t)}getCameraFrustum(){return this.currentTransform.getCameraFrustum()}getClippingPlane(){return this.currentTransform.getClippingPlane()}getCoveringTilesDetailsProvider(){return this.currentTransform.getCoveringTilesDetailsProvider()}recalculateZoomAndCenter(t){this.currentTransform.recalculateZoomAndCenter(t)}maxPitchScaleFactor(){return this._mercatorTransform.maxPitchScaleFactor()}getCameraPoint(){return this._helper.getCameraPoint()}getCameraAltitude(){return this.currentTransform.getCameraAltitude()}getCameraLngLat(){return this.currentTransform.getCameraLngLat()}populateCache(t){this._mercatorTransform.populateCache(t),this._verticalPerspectiveTransform.populateCache(t)}getBounds(){return this.currentTransform.getBounds()}calculateCenterFromCameraLngLatAlt(t,r,i,n){return this._helper.calculateCenterFromCameraLngLatAlt(t,r,i,n)}calculateCameraOptionsFromTo(t,r,i,n){return this.currentTransform.calculateCameraOptionsFromTo(t,r,i,n)}setLocationAtPoint(t,r,i){this.currentTransform.setLocationAtPoint(t,r,i)}locationToScreenPoint(t,r){return this.currentTransform.locationToScreenPoint(t,r)}screenPointToMercatorCoordinate(t,r){return this.currentTransform.screenPointToMercatorCoordinate(t,r)}screenTerrainPointToMercatorCoordinate(t,r){return this.currentTransform.screenTerrainPointToMercatorCoordinate(t,r)}screenPointToLocation(t,r){return this.currentTransform.screenPointToLocation(t,r)}screenPointToLocationAtElevation(t,r){return this.currentTransform.screenPointToLocationAtElevation(t,r)}isPointOnMapSurface(t,r){return this.currentTransform.isPointOnMapSurface(t,r)}getRayDirectionFromPixel(t){return this._verticalPerspectiveTransform.getRayDirectionFromPixel(t)}getProjectionDataForCustomLayer(t=!0){let r=this._mercatorTransform.getProjectionDataForCustomLayer(t);if(!this.isGlobeRendering)return r;let i=this._verticalPerspectiveTransform.getProjectionDataForCustomLayer(t);return i.fallbackMatrix=r.mainMatrix,i.projectionTransition=this._globeness,i}getFastPathSimpleProjectionMatrix(t){return this.currentTransform.getFastPathSimpleProjectionMatrix(t)}},Ilt=class fg{get useGlobeControls(){return!0}handlePanInertia(t,r){let i=ESr(t,r);return Math.abs(i.lng-r.center.lng)>180&&(i.lng=r.center.lng+179.5*Math.sign(i.lng-r.center.lng)),{easingCenter:i,easingOffset:new Jr(0,0)}}handleMapControlsRollPitchBearingZoom(t,r){let i=t.around,n=r.screenPointToLocation(i);t.bearingDelta&&r.setBearing(r.bearing+t.bearingDelta),t.pitchDelta&&r.setPitch(r.pitch+t.pitchDelta),t.rollDelta&&r.setRoll(r.roll+t.rollDelta);let a=r.zoom;t.zoomDelta&&r.setZoom(r.zoom+t.zoomDelta);let o=r.zoom-a;if(o===0)return;let s=Gd(r.center.lng,n.lng),l=s/(Math.abs(s/180)+1),u=Gd(r.center.lat,n.lat),f=r.getRayDirectionFromPixel(i),c=r.cameraPosition,h=nh(c,f)*-1,d=Gu();wp(d,c,[f[0]*h,f[1]*h,f[2]*h]);let p=Cv(d),v=p-1,y=Math.exp(-Math.max(v-.3,0)*.5),m=mC(p,.95,.999,0,1),w=lT(r.worldSize,r.center.lat)/Math.min(r.width,r.height),_=mC(w,.9,.5,1,.25),b=Math.min(y,p3(1,_,m)),M=(1-id(-o))*b,x=r.center.lat,T=r.zoom,A=new Js(r.center.lng+l*M,Pl(r.center.lat+u*M,-L1,L1));r.setLocationAtPoint(n,i);let g=r.center,E=mC(Math.abs(s),45,85,0,1),S=Math.max(E,m)**.25,C=Gd(g.lng,A.lng),k=Gd(g.lat,A.lat);r.setCenter(new Js(g.lng+C*S,g.lat+k*S).wrap()),r.setZoom(T+v0(x,r.center.lat))}handleMapControlsPan(t,r,i){t.panDelta&&wSr(r,i,r.isPointOnMapSurface(t.around)?t.around:r.centerPoint,t.panDelta)}cameraForBoxAndBearing(t,r,i,n,a){let o=Slt(t,r,i,n,a);if(!o)return;let s=r.left/a.width*2-1,l=(a.width-r.right)/a.width*2-1,u=r.top/a.height*-2+1,f=(a.height-r.bottom)/a.height*-2+1,c=Gd(i.getWest(),i.getEast())<0,h=c?i.getEast():i.getWest(),d=c?i.getWest():i.getEast(),p=Math.max(i.getNorth(),i.getSouth()),v=Math.min(i.getNorth(),i.getSouth()),y=h+Gd(h,d)*.5,m=p+Gd(p,v)*.5,w=a.clone();w.setCenter(o.center),w.setBearing(o.bearing),w.setPitch(0),w.setRoll(0),w.setZoom(o.zoom);let _=w.modelViewProjectionMatrix,b=[Uh(i.getNorthWest()),Uh(i.getNorthEast()),Uh(i.getSouthWest()),Uh(i.getSouthEast()),Uh(new Js(d,m)),Uh(new Js(h,m)),Uh(new Js(y,p)),Uh(new Js(y,v))],M=Uh(o.center),x=1/0;for(let T of b)s<0&&(x=fg.getLesserNonNegativeNonNull(x,fg.solveVectorScale(T,M,_,"x",s))),l>0&&(x=fg.getLesserNonNegativeNonNull(x,fg.solveVectorScale(T,M,_,"x",l))),u>0&&(x=fg.getLesserNonNegativeNonNull(x,fg.solveVectorScale(T,M,_,"y",u))),f<0&&(x=fg.getLesserNonNegativeNonNull(x,fg.solveVectorScale(T,M,_,"y",f)));if(!Number.isFinite(x)||x===0){Tlt();return}return o.zoom=Math.min(w.zoom+d0(x),t.maxZoom),o}handleJumpToCenterZoom(t,r){let i=t.center.lat,n=t.applyConstrain(r.center?Js.convert(r.center):t.center,t.zoom).center;t.setCenter(n.wrap());let a=r.zoom===void 0?t.zoom+v0(i,n.lat):+r.zoom;t.zoom!==a&&t.setZoom(a)}handleEaseTo(t,r){let i=t.zoom,n=t.center,a=t.padding,o={roll:t.roll,pitch:t.pitch,bearing:t.bearing},s={roll:r.roll===void 0?t.roll:r.roll,pitch:r.pitch===void 0?t.pitch:r.pitch,bearing:r.bearing===void 0?t.bearing:r.bearing},l=r.zoom!==void 0,u=!t.isPaddingEqual(r.padding),f=!1,c=r.center?Js.convert(r.center):n,h=t.applyConstrain(c,i).center;pO(t,h);let d=t.clone();d.setCenter(h),d.setZoom(l?+r.zoom:i+v0(n.lat,c.lat)),d.setBearing(r.bearing);let p=new Jr(Pl(t.centerPoint.x+r.offsetAsPoint.x,0,t.width),Pl(t.centerPoint.y+r.offsetAsPoint.y,0,t.height));d.setLocationAtPoint(h,p);let v=(r.offset&&r.offsetAsPoint.mag())>0?d.center:h,y=l?+r.zoom:i+v0(n.lat,v.lat),m=i+v0(n.lat,0),w=y+v0(v.lat,0),_=Gd(n.lng,v.lng),b=Gd(n.lat,v.lat),M=id(w-m);return f=y!==i,{easeFunc:x=>{if(Fne(o,s)||Mlt({startEulerAngles:o,endEulerAngles:s,tr:t,k:x,useSlerp:o.roll!=s.roll}),u&&t.interpolatePadding(a,r.padding,x),r.around)uu("Easing around a point is not supported under globe projection."),t.setLocationAtPoint(r.around,r.aroundPoint);else{let T=x*(w>m?Math.min(2,M):Math.max(.5,M))**(1-x),A=fst(n,_,b,T);t.setCenter(A.wrap())}if(f){let T=ic.number(m,w,x)+v0(0,t.center.lat);t.setZoom(T)}},isZooming:f,elevationCenter:v}}handleFlyTo(t,r){let i=r.zoom!==void 0,n=t.center,a=t.zoom,o=t.padding,s=!t.isPaddingEqual(r.padding),l=t.applyConstrain(Js.convert(r.center||r.locationAtOffset),a).center,u=i?+r.zoom:t.zoom+v0(t.center.lat,l.lat),f=t.clone();f.setCenter(l),f.setZoom(u),f.setBearing(r.bearing);let c=new Jr(Pl(t.centerPoint.x+r.offsetAsPoint.x,0,t.width),Pl(t.centerPoint.y+r.offsetAsPoint.y,0,t.height));f.setLocationAtPoint(l,c);let h=f.center;pO(t,h);let d=ySr(t,n,h),p=a+v0(n.lat,0),v=u+v0(h.lat,0),y=id(v-p),m=typeof r.minZoom=="number"?+r.minZoom:t.minZoom,w=Math.max(m,t.minZoom)+v0(h.lat,0),_=Math.min(w,p,v)+v0(0,h.lat),b=t.applyConstrain(h,_).zoom+v0(h.lat,0),M=id(b-p),x=Gd(n.lng,h.lng),T=Gd(n.lat,h.lat);return{easeFunc:(A,g,E,S)=>{let C=fst(n,x,T,E);s&&t.interpolatePadding(o,r.padding,A);let k=A===1?h:C;t.setCenter(k.wrap());let D=p+d0(g);t.setZoom(A===1?u:D+v0(0,k.lat))},scaleOfZoom:y,targetCenter:h,scaleOfMinZoom:M,pixelPathLength:d}}static solveVectorScale(t,r,i,n,a){let o=a,s=n==="x"?[i[0],i[4],i[8],i[12]]:[i[1],i[5],i[9],i[13]],l=[i[3],i[7],i[11],i[15]],u=t[0]*s[0]+t[1]*s[1]+t[2]*s[2],f=t[0]*l[0]+t[1]*l[1]+t[2]*l[2],c=r[0]*s[0]+r[1]*s[1]+r[2]*s[2],h=r[0]*l[0]+r[1]*l[1]+r[2]*l[2],d=(c+s[3]-o*h-o*l[3])/(c-u-o*h+o*f);return c+o*f===u+o*h||l[3]*(u-c)+s[3]*(h-f)+u*h===c*f?null:d}static getLesserNonNegativeNonNull(t,r){return r!==null&&r>=0&&r{for(let a in this.tileManagers){let o=this.tileManagers[a].getSource().type;(o==="vector"||o==="geojson")&&this.tileManagers[a].reload()}},this.map=e,this.dispatcher=new Wst(Poe(),e._getMapId()).setEventedParent(this),this.dispatcher.registerMessageHandler("GG",(a,o)=>this.getGlyphs(a,o)),this.dispatcher.registerMessageHandler("GI",(a,o)=>this.getImages(a,o)),this.dispatcher.registerMessageHandler("GDA",(a,o)=>this.getDashes(a,o)),this.imageManager=new y6r,this.imageManager.setEventedParent(this),this.imageManager.setMissingImageResolver(e._missingStyleImageResolver),this.patternAtlas=new g6r(this.imageManager);let r=((i=e._container)==null?void 0:i.lang)||typeof document<"u"&&((n=document.documentElement)==null?void 0:n.lang)||void 0;this.glyphManager=new E6r(e._requestManager,t.localIdeographFontFamily,r),this.lineAtlas=new L6r(256,512),this.crossTileSymbolIndex=new ylt,this._setInitialValues(),this._resetUpdates(),this.dispatcher.broadcast("SR",cq()),QC().on(voe,this._rtlPluginLoaded),this.on("data",a=>{if(a.dataType!=="source"||a.sourceDataType!=="metadata")return;let o=this.tileManagers[a.sourceId];if(!o)return;let s=o.getSource();if(s!=null&&s.vectorLayerIds)for(let l in this._layers){let u=this._layers[l];u.source===s.id&&this._validateLayer(u)}})}_setInitialValues(){var e;this._layers={},this._order=[],this.tileManagers={},this.zoomHistory=new N7,this._imagesListDirty=!1,this._globalState={},this._serializedLayers={},this.stylesheet=null,this.light=null,this.sky=null,this.projection&&(this.projection.destroy(),delete this.projection),this._loaded=!1,this._changed=!1,this._updatedLayers={},this._updatedSources={},this._changedImages={},this._glyphsDidChange=!1,this._updatedPaintProps={},this._layerOrderChanged=!1,this._symbolPlacementTriggered=!1,this._placedProjectionTransition=void 0,this.crossTileSymbolIndex=new(((e=this.crossTileSymbolIndex)==null?void 0:e.constructor)||Object),this.pauseablePlacement=void 0,this.placement=void 0,this.z=0}setGlobalStateProperty(e,t){var i,n,a;this._checkLoaded();let r=t===null?(a=(n=(i=this.stylesheet.state)==null?void 0:i[e])==null?void 0:n.default)!=null?a:null:t;return this._setGlobalStateValues({[e]:r}),this}getGlobalState(){return this._globalState}setGlobalState(e){this._checkLoaded();let t={};for(let r in e)t[r]=e[r].default;this._setGlobalStateValues(t)}_setGlobalStateValues(e){let t=[];for(let i in e)C1(e[i],this._globalState[i])||t.push(i);if(t.length===0)return;let r=Gs({},this._globalState);for(let i of t)this._globalState[i]=e[i];this._applyGlobalStateChanges(t,r)}_applyGlobalStateChanges(e,t){var a,o;let r=new Set,i={};for(let s of e)i[s]=this._globalState[s];for(let s in this._layers){let l=this._layers[s];l.retainPriorGlobalState(e,t);let u=l.getLayoutAffectingGlobalStateRefs(),f=l.getPaintAffectingGlobalStateRefs(),c=l.getVisibilityAffectingGlobalStateRefs();for(let h of e){if(u.has(h)&&r.add(l.source),f.has(h))for(let{name:d,value:p}of f.get(h))this._updatePaintProperty(l,d,p,{validate:!1});c!=null&&c.has(h)&&(l.recalculateVisibility(),this._updateLayer(l))}}let n={now:Ku(),transition:this.getTransition()};(a=this.light)==null||a.applyGlobalStateChange(e,t,n),(o=this.sky)==null||o.applyGlobalStateChange(e,t,n),this.dispatcher.broadcast("UGS",i);for(let s in this.tileManagers)r.has(s)&&(this._reloadSource(s),this._changed=!0)}loadURL(i){return Ls(this,arguments,function*(e,t={},r){this.fire(new Lv("dataloading")),t.validate=typeof t.validate!="boolean"||t.validate,this._loadStyleRequest=new AbortController;let n=this._loadStyleRequest;try{let a=yield this.map._requestManager.transformRequest(e,"Style");fq(n.signal);let o=yield gC(a,n);this._loadStyleRequest===n&&(this._loadStyleRequest=null),this._load(o.data,t,r)}catch(a){this._loadStyleRequest===n&&(this._loadStyleRequest=null),a&&!n.signal.aborted&&this.fire(new tl(f0(a)))}})}loadJSON(e,t={},r){this.fire(new Lv("dataloading")),this._frameRequest=new AbortController,Yd.frameAsync(this._frameRequest,this.map._ownerWindow).then(()=>{this._frameRequest=null,t.validate=t.validate!==!1,this._load(e,t,r)}).catch(()=>{})}loadEmpty(){this.fire(new Lv("dataloading")),this._load(FSr,{validate:!1})}_load(e,t,r){var n,a,o;let i=t.transformStyle?t.transformStyle(r,e):e;if(!(t.validate&&rae(this,i))){i=Gs({},i),this._loaded=!0,this.stylesheet=i;for(let s in i.sources)this.addSource(s,i.sources[s],{validate:!1});i.sprite?this._loadSprite(i.sprite):this.imageManager.setLoaded(!0),this.glyphManager.setURL(i.glyphs),this.glyphManager.setFontFaces(i["font-faces"]),this._createLayers(),this.light=new C6r((n=this.stylesheet.light)!=null?n:{},this._globalState),this._setProjectionInternal(((a=this.stylesheet.projection)==null?void 0:a.type)||"mercator"),this.sky=new F6r(this.stylesheet.sky,this._globalState),this.sky.setEventedParent(this),this.map.setTerrain((o=this.stylesheet.terrain)!=null?o:null,{validate:!1}),this.fire(new Lv("data")),this.fire(new coe)}}_createLayers(){var t,r,i;let e=Eot(this.stylesheet.layers);this.setGlobalState((t=this.stylesheet.state)!=null?t:null),this.dispatcher.broadcast("SL",e),this._order=e.map(n=>n.id),this._layers={},this._serializedLayers=null;for(let n of e){let a=Uq(n,this._globalState);if(a.setEventedParent(this,{layer:{id:n.id}}),this._layers[n.id]=a,Cq(a)&&this.tileManagers[a.source]){let o=(i=(r=n.paint)==null?void 0:r["raster-fade-duration"])!=null?i:a.paint.get("raster-fade-duration");this.tileManagers[a.source].setRasterFadeDuration(o)}}}_loadSprite(e,t=!1,r=void 0){return Ls(this,null,function*(){this.imageManager.setLoaded(!1);let i=new AbortController;this._spriteRequest=i;let n;try{let a=yield v6r(e,this.map._requestManager,this.map.getPixelRatio(),i);if(!a)return;for(let o in a){let{loaded:s,removed:l}=this.imageManager.setSpriteImages(o,a[o]);this._markImagesChanged(l),t&&this._markImagesChanged(s)}}catch(a){n=a,i.signal.aborted||this.fire(new tl(n))}finally{this._spriteRequest=null,this.imageManager.setLoaded(!0),t&&(this._changed=!0),this.dispatcher.broadcast("SI",this.imageManager.listImages()),this.fire(new Lv("data")),r==null||r(n)}})}_unloadSprite(){this._markImagesChanged(this.imageManager.removeAllSpriteImages()),this._imagesListDirty=!0,this._changed=!0,this.fire(new Lv("data"))}_validateLayer(e){let t=this.tileManagers[e.source];if(!t)return;let r=e.sourceLayer;if(!r)return;let i=t.getSource();(i.type==="geojson"||i.vectorLayerIds&&!i.vectorLayerIds.includes(r))&&this.fire(new tl(Error(`Source layer "${r}" does not exist on source "${i.id}" as specified by style layer "${e.id}".`)))}loaded(){if(!this._loaded||Object.keys(this._updatedSources).length)return!1;for(let e in this.tileManagers)if(!this.tileManagers[e].loaded())return!1;return this.imageManager.isLoaded()}_serializeByIds(e,t=!1){let r=this._serializedAllLayers();if(!e||e.length===0)return Object.values(t?xd(r):r);let i=[];for(let n of e)if(r[n]){let a=t?xd(r[n]):r[n];i.push(a)}return i}_serializedAllLayers(){let e=this._serializedLayers;if(e)return e;e=this._serializedLayers={};let t=Object.keys(this._layers);for(let r of t){let i=this._layers[r];i.type!=="custom"&&(e[r]=i.serialize())}return e}hasTransitions(){var e,t,r;if((e=this.light)!=null&&e.hasTransition()||(t=this.sky)!=null&&t.hasTransition()||(r=this.projection)!=null&&r.hasTransition())return!0;for(let i in this.tileManagers)if(this.tileManagers[i].hasTransition())return!0;for(let i in this._layers)if(this._layers[i].hasTransition())return!0;return!1}_checkLoaded(){if(!this._loaded)throw Error("Style is not done loading.")}update(e){if(!this._loaded)return;let t=this._changed;if(t){this._imagesListDirty&&(this._imagesListDirty=(this.dispatcher.broadcast("SI",this.imageManager.listImages()),!1));let n=Object.keys(this._updatedLayers),a=Object.keys(this._removedLayers);(n.length||a.length)&&this._updateWorkerLayers(n,a);for(let o in this._updatedSources){let s=this._updatedSources[o];if(s==="reload")this._reloadSource(o);else if(s==="clear")this._clearSource(o);else throw Error(`Invalid action ${s}`)}this._updateTilesForChangedImages(),this._updateTilesForChangedGlyphs();for(let o in this._updatedPaintProps)this._layers[o].updateTransitions(e);this._resetUpdates()}let r={};for(let n in this.tileManagers){let a=this.tileManagers[n];r[n]=a.used,a.used=!1}let i=this.imageManager.listImages();for(let n of this._order){let a=this._layers[n];a.recalculate(e,i),!a.isHidden(e.zoom)&&a.source&&(this.tileManagers[a.source].used=!0)}for(let n in r){let a=this.tileManagers[n];!!r[n]!=!!a.used&&a.fire(new Xf("data",{sourceDataType:"visibility",sourceId:n}))}this.light.recalculate(e),this.sky.recalculate(e),this.projection.recalculate(e),this.z=e.zoom,t&&this.fire(new Lv("data"))}_updateTilesForChangedImages(){let e=Object.keys(this._changedImages);if(e.length){for(let t in this.tileManagers)this.tileManagers[t].reloadTilesForDependencies(["icons","patterns"],e);this._changedImages={}}}_updateTilesForChangedGlyphs(){if(this._glyphsDidChange){for(let e in this.tileManagers)this.tileManagers[e].reloadTilesForDependencies(["glyphs"],[""]);this._glyphsDidChange=!1}}_updateWorkerLayers(e,t){this.dispatcher.broadcast("UL",{layers:this._serializeByIds(e,!1),removedIds:t})}_resetUpdates(){this._changed=!1,this._updatedLayers={},this._removedLayers={},this._updatedSources={},this._updatedPaintProps={},this._changedImages={},this._glyphsDidChange=!1}setState(e,t={}){var a;this._checkLoaded();let r=this.serialize();if(e=t.transformStyle?t.transformStyle(r,e):e,((a=t.validate)!=null?a:!0)&&rae(this,e))return!1;e=xd(e),e.layers=Eot(e.layers);let i=d6r(r,e),n=this._getOperationsToPerform(i);if(n.unimplemented.length>0)throw Error(`Unimplemented: ${n.unimplemented.join(", ")}.`);if(n.operations.length===0)return!1;for(let o of n.operations)o();return this.stylesheet=e,this._serializedLayers=null,this.fire(new coe({style:this})),!0}_getOperationsToPerform(e){let t=[],r=[];for(let i of e)switch(i.command){case"setCenter":case"setZoom":case"setBearing":case"setPitch":case"setRoll":continue;case"addLayer":{let[n,a]=i.args;t.push(()=>this.addLayer(n,a));break}case"removeLayer":{let[n]=i.args;t.push(()=>this.removeLayer(n));break}case"setPaintProperty":{let[n,a,o]=i.args;t.push(()=>this.setPaintProperty(n,a,o));break}case"setLayoutProperty":{let[n,a,o]=i.args;t.push(()=>this.setLayoutProperty(n,a,o));break}case"setFilter":{let[n,a]=i.args;t.push(()=>this.setFilter(n,a));break}case"addSource":{let[n,a]=i.args;t.push(()=>this.addSource(n,a));break}case"removeSource":{let[n]=i.args;t.push(()=>this.removeSource(n));break}case"setLayerZoomRange":{let[n,a,o]=i.args;t.push(()=>this.setLayerZoomRange(n,a,o));break}case"setLight":{let[n]=i.args;t.push(()=>this.setLight(n));break}case"setGeoJSONSourceData":{let[n,a]=i.args;t.push(()=>this.setGeoJSONSourceData(n,a));break}case"setGlyphs":{let[n]=i.args;t.push(()=>this.setGlyphs(n));break}case"setFontFaces":{let[n]=i.args;t.push(()=>this.setFontFaces(n));break}case"setSprite":{let[n]=i.args;t.push(()=>this.setSprite(n));break}case"setTerrain":{let[n]=i.args;t.push(()=>this.map.setTerrain(n));break}case"setSky":{let[n]=i.args;t.push(()=>this.setSky(n));break}case"setProjection":{let[n]=i.args;t.push(()=>this.setProjection(n));break}case"setGlobalState":{let[n]=i.args;t.push(()=>this.setGlobalState(n));break}case"setTransition":t.push(()=>{});break;default:r.push(i.command)}return{operations:t,unimplemented:r}}addImage(e,t){if(this.getImage(e)){this.fire(new tl(Error(`An image named "${e}" already exists.`)));return}this.imageManager.addImage(e,t),this._afterImageUpdated(e)}updateImage(e,t){this.imageManager.updateImage(e,t)}getImage(e){return this.imageManager.getImage(e)}setMissingImageResolver(e){this.imageManager.setMissingImageResolver(e)}removeImage(e){if(!this.getImage(e)){this.fire(new tl(Error(`An image named "${e}" does not exist.`)));return}this.imageManager.removeImage(e),this._afterImageUpdated(e)}_markImagesChanged(e){for(let t of e)this._changedImages[t]=!0}_afterImageUpdated(e){this._changedImages[e]=!0,this._imagesListDirty=!0,this._changed=!0,this.fire(new Lv("data"))}listImages(){return this._checkLoaded(),this.imageManager.listImages()}addSource(e,t,r={}){var n;if(this._checkLoaded(),this.tileManagers[e]!==void 0)throw Error(`Source "${e}" already exists.`);if(!t.type)throw Error(`The type property must be defined, but only the following properties were given: ${Object.keys(t).join(", ")}.`);if(tae.has(t.type)&&this._validate(_d.source,`sources.${e}`,t,null,r))return;(n=this.map)!=null&&n._collectResourceTiming&&(t.collectResourceTiming=!0);let i=this.tileManagers[e]=new yoe(e,t,this.dispatcher);i.style=this,i.setEventedParent(this,()=>({isSourceLoaded:i.loaded(),source:i.serialize(),sourceId:e})),i.onAdd(this.map),this._changed=!0}removeSource(e){if(this._checkLoaded(),this.tileManagers[e]===void 0)throw Error(`There is no source with this ID=${e}`);for(let r in this._layers)if(this._layers[r].source===e)return this.fire(new tl(Error(`Source "${e}" cannot be removed while layer "${r}" is using it.`)));let t=this.tileManagers[e];delete this.tileManagers[e],delete this._updatedSources[e],t.fire(new Xf("data",{sourceDataType:"metadata",sourceId:e})),t.setEventedParent(null),t.onRemove(this.map),this._changed=!0}setGeoJSONSourceData(e,t){if(this._checkLoaded(),this.tileManagers[e]===void 0)throw Error(`There is no source with this ID=${e}`);let r=this.tileManagers[e].getSource();if(r.type!=="geojson")throw Error(`geojsonSource.type is ${r.type}, which is !== 'geojson`);r.setData(t),this._changed=!0}getSource(e){var t;return(t=this.tileManagers[e])==null?void 0:t.getSource()}addLayer(e,t,r={}){this._checkLoaded();let i=e.id;if(this.getLayer(i)){this.fire(new tl(Error(`Layer "${i}" already exists on this map.`)));return}let n;if(e.type==="custom"){if(Sq(this,jat(e)))return;n=Uq(e,this._globalState)}else{if("source"in e&&typeof e.source=="object"&&(this.addSource(i,e.source),e=xd(e),e=js(e,{source:i})),this._validate(_d.layer,`layers.${i}`,e,{arrayIndex:-1},r))return;n=Uq(e,this._globalState),this._validateLayer(n),n.setEventedParent(this,{layer:{id:i}})}let a=t?this._order.indexOf(t):this._order.length;if(t&&a===-1){this.fire(new tl(Error(`Cannot add layer "${i}" before non-existing layer "${t}".`)));return}if(this._order.splice(a,0,i),this._layerOrderChanged=!0,this._layers[i]=n,this._removedLayers[i]&&n.source&&n.type!=="custom"){let o=this._removedLayers[i];delete this._removedLayers[i],o.type===n.type?(this._updatedSources[n.source]="reload",this.tileManagers[n.source].pause()):this._updatedSources[n.source]="clear"}this._updateLayer(n),n.onAdd&&n.onAdd(this.map)}moveLayer(e,t){if(this._checkLoaded(),this._changed=!0,!this._layers[e]){this.fire(new tl(Error(`The layer '${e}' does not exist in the map's style and cannot be moved.`)));return}if(e===t)return;if(t&&!this._order.includes(t)){this.fire(new tl(Error(`Cannot move layer "${e}" before non-existing layer "${t}".`)));return}let r=this._order.indexOf(e);this._order.splice(r,1);let i=t?this._order.indexOf(t):this._order.length;this._order.splice(i,0,e),this._layerOrderChanged=!0}removeLayer(e){var i;this._checkLoaded();let t=this._layers[e];if(!t){this.fire(new tl(Error(`Cannot remove non-existing layer "${e}".`)));return}t.setEventedParent(null);let r=this._order.indexOf(e);this._order.splice(r,1),this._layerOrderChanged=!0,this._changed=!0,this._removedLayers[e]=t,delete this._layers[e],this._serializedLayers&&delete this._serializedLayers[e],delete this._updatedLayers[e],delete this._updatedPaintProps[e],t.type==="symbol"&&t.source&&((i=this.tileManagers[t.source])==null||i.resetMaxContentElevation()),t.onRemove&&t.onRemove(this.map)}getLayer(e){return this._layers[e]}getLayersOrder(){return[...this._order]}hasLayer(e){return e in this._layers}setLayerZoomRange(e,t,r){this._checkLoaded();let i=this.getLayer(e);if(!i){this.fire(new tl(Error(`Cannot set the zoom range of non-existing layer "${e}".`)));return}(i.minzoom!==t||i.maxzoom!==r)&&(t!=null&&(i.minzoom=t),r!=null&&(i.maxzoom=r),this._updateLayer(i))}setFilter(e,t,r={}){this._checkLoaded();let i=this.getLayer(e);if(!i){this.fire(new tl(Error(`Cannot filter non-existing layer "${e}".`)));return}if(!C1(i.filter,t)){if(t==null){i.setFilter(void 0),this._updateLayer(i);return}this._validate(_d.filter,`layers.${i.id}.filter`,t,null,r)||(i.setFilter(xd(t)),this._updateLayer(i))}}getFilter(e){return xd(this.getLayer(e).filter)}setLayoutProperty(e,t,r,i={}){this._checkLoaded();let n=this.getLayer(e);if(!n){this.fire(new tl(Error(`Cannot style non-existing layer "${e}".`)));return}C1(n.getLayoutProperty(t),r)||(n.setLayoutProperty(t,r,i),this._updateLayer(n))}getLayoutProperty(e,t){let r=this.getLayer(e);if(!r){this.fire(new tl(Error(`Cannot get style of non-existing layer "${e}".`)));return}return r.getLayoutProperty(t)}setPaintProperty(e,t,r,i={}){this._checkLoaded();let n=this.getLayer(e);if(!n){this.fire(new tl(Error(`Cannot style non-existing layer "${e}".`)));return}C1(n.getPaintProperty(t),r)||this._updatePaintProperty(n,t,r,i)}_updatePaintProperty(e,t,r,i={}){e.setPaintProperty(t,r,i)&&this._updateLayer(e),Cq(e)&&t==="raster-fade-duration"&&this.tileManagers[e.source].setRasterFadeDuration(r),this._changed=!0,this._updatedPaintProps[e.id]=!0,e.type==="symbol"&&this.triggerSymbolPlacement(),this._serializedLayers=null}getPaintProperty(e,t){return this.getLayer(e).getPaintProperty(t)}setFeatureState(e,t){this._checkLoaded();let r=e.source,i=e.sourceLayer,n=this.tileManagers[r];if(n===void 0){this.fire(new tl(Error(`The source '${r}' does not exist in the map's style.`)));return}let a=n.getSource().type;if(a==="geojson"&&i){this.fire(new tl(Error("GeoJSON sources cannot have a sourceLayer parameter.")));return}if(a==="vector"&&!i){this.fire(new tl(Error("The sourceLayer parameter must be provided for vector source types.")));return}if(e.id===void 0){this.fire(new tl(Error("The feature id parameter must be provided.")));return}let o=["__proto__","constructor","prototype"];if(t&&Object.keys(t).some(s=>o.includes(s))){this.fire(new tl(Error(`The feature state should not include one of the following keys: ${o}`)));return}n.setFeatureState(i,e.id,t)}removeFeatureState(e,t){this._checkLoaded();let r=e.source,i=this.tileManagers[r];if(i===void 0){this.fire(new tl(Error(`The source '${r}' does not exist in the map's style.`)));return}let n=i.getSource().type,a=n==="vector"?e.sourceLayer:void 0;if(n==="vector"&&!a){this.fire(new tl(Error("The sourceLayer parameter must be provided for vector source types.")));return}if(t&&typeof e.id!="string"&&typeof e.id!="number"){this.fire(new tl(Error("A feature id is required to remove its specific state property.")));return}i.removeFeatureState(a,e.id,t)}getFeatureState(e){this._checkLoaded();let t=e.source,r=e.sourceLayer,i=this.tileManagers[t];if(i===void 0){this.fire(new tl(Error(`The source '${t}' does not exist in the map's style.`)));return}if(i.getSource().type==="vector"&&!r){this.fire(new tl(Error("The sourceLayer parameter must be provided for vector source types.")));return}return e.id===void 0&&this.fire(new tl(Error("The feature id parameter must be provided."))),i.getFeatureState(r,e.id)}getTransition(){var e;return js({duration:300,delay:0},(e=this.stylesheet)==null?void 0:e.transition)}serialize(){if(!this._loaded)return;let e=uq(this.tileManagers,n=>n.serialize()),t=this._serializeByIds(this._order,!0),r=this.map.getTerrain()||void 0,i=this.stylesheet;return Dne({version:i.version,name:i.name,metadata:i.metadata,light:i.light,sky:i.sky,center:i.center,zoom:i.zoom,bearing:i.bearing,pitch:i.pitch,sprite:i.sprite,glyphs:i.glyphs,"font-faces":i["font-faces"],transition:i.transition,projection:i.projection,state:i.state,sources:e,layers:t,terrain:r},n=>n!==void 0)}_updateLayer(e){this._updatedLayers[e.id]=!0,e.source&&!this._updatedSources[e.source]&&this.tileManagers[e.source].getSource().type!=="raster"&&(this._updatedSources[e.source]="reload",this.tileManagers[e.source].pause()),this._serializedLayers=null,this._changed=!0}_flattenAndSortRenderedFeatures(e){let t=a=>this._layers[a].type==="fill-extrusion",r={},i=[];for(let a=this._order.length-1;a>=0;a--){let o=this._order[a];if(t(o)){r[o]=a;for(let s of e){let l=s[o];if(l)for(let u of l)i.push(u)}}}i.sort((a,o)=>o.intersectionZ-a.intersectionZ);let n=[];for(let a=this._order.length-1;a>=0;a--){let o=this._order[a];if(t(o))for(let s=i.length-1;s>=0;s--){let l=i[s].feature;if(r[l.layer.id]this.map.terrain.getElevation(u,f,c):void 0));return this.placement&&n.push(H6r(this._layers,a,this.tileManagers,e,s,this.placement.collisionIndex,this.placement.retainedQueryData)),this._flattenAndSortRenderedFeatures(n)}querySourceFeatures(e,t){t!=null&&t.filter&&this._validate(_d.filter,"querySourceFeatures.filter",t.filter,null,t);let r=this.tileManagers[e];return r?j6r(r,t?$l(Gs({},t),{globalState:this._globalState}):{globalState:this._globalState}):[]}getLight(){return this.light.getLight()}setLight(e,t={}){this._checkLoaded();let r=this.light.getLight(),i=!1;for(let a in e)if(!C1(e[a],r[a])){i=!0;break}if(!i)return;let n={now:Ku(),transition:js({duration:300,delay:0},this.stylesheet.transition)};this.light.setLight(e,t),this.light.updateTransitions(n)}getProjection(){var e;return(e=this.stylesheet)==null?void 0:e.projection}setProjection(e){this._checkLoaded();let t=e!=null?e:{type:"mercator"};if(this.stylesheet.projection=e,this.projection){if(this.projection.name===t.type)return;this.projection.destroy(),delete this.projection}this._setProjectionInternal(t.type)}getSky(){var e;return(e=this.stylesheet)==null?void 0:e.sky}setSky(e,t={}){this._checkLoaded();let r=this.getSky(),i=!1;if(!e&&!r)return;if(e&&!r)i=!0;else if(!e&&r)i=!0;else for(let a in e)if(!C1(e[a],r[a])){i=!0;break}if(!i)return;let n={now:Ku(),transition:js({duration:300,delay:0},this.stylesheet.transition)};this.sky.setSky(e,t)&&(this.stylesheet.sky=e,this.sky.updateTransitions(n))}_setProjectionInternal(e){var r;let t=DSr(e,(r=this.map._camera)==null?void 0:r.transform.constrainOverride,this._globalState);this.projection=t.projection,this.map.migrateProjection(t.transform,t.cameraHelper);for(let i in this.tileManagers)this.tileManagers[i].reload()}_validate(e,t,r,i,n={}){return n.validate!==!1&&J5(this,e,Gs({key:t,style:this.serialize(),value:r},i),n)}_remove(e=!0){this._frameRequest&&(this._frameRequest=(this._frameRequest.abort(),null)),this._loadStyleRequest&&(this._loadStyleRequest=(this._loadStyleRequest.abort(),null)),this._spriteRequest&&(this._spriteRequest=(this._spriteRequest.abort(),null)),QC().off(voe,this._rtlPluginLoaded);for(let t in this._layers)this._layers[t].setEventedParent(null);for(let t in this.tileManagers){let r=this.tileManagers[t];r.setEventedParent(null),r.onRemove(this.map)}this.imageManager.setEventedParent(null),this.setEventedParent(null),e&&this.dispatcher.broadcast("RM",void 0),this.dispatcher.remove(e)}_clearSource(e){this.tileManagers[e].clearTiles()}_reloadSource(e){this.tileManagers[e].resume(),this.tileManagers[e].reload()}_updateSources(e){for(let t in this.tileManagers)this.tileManagers[t].update(e,this.map.terrain)}_generateCollisionBoxes(){for(let e in this.tileManagers)this._reloadSource(e)}triggerSymbolPlacement(){this._symbolPlacementTriggered=!0}_placementInputsChanged(e,t,r){var n;let i=this.pauseablePlacement;return!i||this._symbolPlacementTriggered||this._placedProjectionTransition!==((n=this.projection)==null?void 0:n.transitionState)||i._showCollisionBoxes!==t||i.placement.collisionGroups.crossSourceCollisions!==r||i.placement.transform.renderWorldCopies!==e.renderWorldCopies||!mrt(i.placement.transform.modelViewProjectionMatrix,e.modelViewProjectionMatrix)}_updatePlacement(e,t,r,i,n=!1){var f,c;let a=!1,o=!1,s={};for(let h of this._order){let d=this._layers[h];if(d.type!=="symbol")continue;if(!s[d.source]){let v=this.tileManagers[d.source];s[d.source]=v.getRenderableIds(!0).map(y=>v.getTileByID(y)).sort((y,m)=>m.tileID.overscaledZ-y.tileID.overscaledZ||(y.tileID.isLessThan(m.tileID)?-1:1))}let p=this.crossTileSymbolIndex.addLayer(d,s[d.source],e.center.lng);a||(a=p)}this.crossTileSymbolIndex.pruneUnusedLayers(this._order),n||(n=this._layerOrderChanged||r===0);let l=a||this._placementInputsChanged(e,t,i),u=((f=this.pauseablePlacement)==null?void 0:f.isDone())&&!this.placement.stillRecent(Ku(),e.zoom);if((n||!this.pauseablePlacement||u&&(l||this.placement.stale))&&(this._symbolPlacementTriggered=!1,this._placedProjectionTransition=(c=this.projection)==null?void 0:c.transitionState,this.pauseablePlacement=new QMr(e,this.map.terrain,this._order,n,t,r,i,this.placement),this._layerOrderChanged=!1),this.pauseablePlacement.isDone()?l&&this.placement.setStale():(this.pauseablePlacement.continuePlacement(this._order,this._layers,s),this.pauseablePlacement.isDone()&&(this.placement=this.pauseablePlacement.commit(Ku()),o=!0),a&&this.pauseablePlacement.placement.setStale()),o||a)for(let h of this._order){let d=this._layers[h];d.type==="symbol"&&this.placement.updateLayerOpacities(d,s[d.source])}return!this.pauseablePlacement.isDone()||this.placement.hasTransitions(Ku())}_releaseSymbolFadeTiles(){for(let e in this.tileManagers)this.tileManagers[e].releaseSymbolFadeTiles()}getImages(e,t){return Ls(this,null,function*(){let r=yield this.imageManager.getImages(t.icons);this._updateTilesForChangedImages();let i=this.tileManagers[t.source];return i&&i.setDependencies(t.tileID.key,t.type,t.icons),r})}getGlyphs(e,t){return Ls(this,null,function*(){let r=yield this.glyphManager.getGlyphs(t.stacks),i=this.tileManagers[t.source];return i&&i.setDependencies(t.tileID.key,t.type,[""]),r})}getGlyphsUrl(){return this.stylesheet.glyphs||null}setGlyphs(e,t={}){this._checkLoaded(),!(e&&this._validate(_d.glyphs,"glyphs",e,null,t))&&(this._changed=!0,this._glyphsDidChange=!0,this.stylesheet.glyphs=e,this.glyphManager.entries={},this.glyphManager.setURL(e))}getFontFaces(){return this.stylesheet["font-faces"]||null}setFontFaces(e){this._checkLoaded(),this._changed=!0,this._glyphsDidChange=!0,this.stylesheet["font-faces"]=e,this.glyphManager.setFontFaces(e)}getDashes(e,t){return Ls(this,null,function*(){let r={};for(let[i,n]of Object.entries(t.dashes))r[i]=this.lineAtlas.getDash(n.dasharray,n.round);return r})}addSprite(e,t,r={},i){this._checkLoaded();let n=[{id:e,url:t}],a=[...sO(this.stylesheet.sprite),...n];this._validate(_d.sprite,"sprite",a,null,r)||(this.stylesheet.sprite=a,this._loadSprite(n,!0,i))}removeSprite(e){this._checkLoaded();let t=sO(this.stylesheet.sprite);if(!t.find(i=>i.id===e)){this.fire(new tl(Error(`Sprite "${e}" doesn't exists on this map.`)));return}let r=this.imageManager.removeSpriteImages(e);this._markImagesChanged(r),t.splice(t.findIndex(i=>i.id===e),1),this.stylesheet.sprite=t.length>0?t:void 0,this._imagesListDirty=!0,this._changed=!0,this.fire(new Lv("data"))}getSprite(){return sO(this.stylesheet.sprite)}setSprite(e,t={},r){this._checkLoaded(),!(e&&this._validate(_d.sprite,"sprite",e,null,t))&&(this.stylesheet.sprite=e,e?this._loadSprite(e,!0,r):(this._unloadSprite(),r&&r(null)))}destroy(){this._frameRequest&&(this._frameRequest=(this._frameRequest.abort(),null)),this._loadStyleRequest&&(this._loadStyleRequest=(this._loadStyleRequest.abort(),null)),this._spriteRequest&&(this._spriteRequest=(this._spriteRequest.abort(),null));for(let e in this.tileManagers){let t=this.tileManagers[e];t.setEventedParent(null),t.onRemove(this.map)}this.tileManagers={},this.imageManager&&(this.imageManager.setEventedParent(null),this.imageManager.destroy(),this.patternAtlas.destroy()),this.glyphManager&&this.glyphManager.destroy();for(let e in this._layers){let t=this._layers[e];t.setEventedParent(null),t.onRemove&&t.onRemove(this.map)}this._setInitialValues(),this.setEventedParent(null),this.dispatcher.unregisterMessageHandler("GG"),this.dispatcher.unregisterMessageHandler("GI"),this.dispatcher.unregisterMessageHandler("GDA"),this.dispatcher.remove(!0),this._listeners={},this._oneTimeListeners={}}},LSr=dc([{name:"a_pos",type:"Int16",components:2},{name:"a_texture_pos",type:"Int16",components:2}]),PSr=class{constructor(){this.boundProgram=null,this.boundLayoutVertexBuffer=null,this.boundPaintVertexBuffers=[],this.boundIndexBuffer=null,this.boundVertexOffset=null,this.boundDynamicVertexBuffer=null,this.vao=null}bind(e,t,r,i,n,a,o,s,l){this.context=e;let u=this.boundPaintVertexBuffers.length!==i.length;for(let f=0;!u&&f({u_depth:new rl(e,t.u_depth),u_terrain:new rl(e,t.u_terrain)}),ISr=(e,t)=>({u_texture:new rl(e,t.u_texture),u_ele_delta:new gs(e,t.u_ele_delta),u_fog_matrix:new Dv(e,t.u_fog_matrix),u_fog_color:new lg(e,t.u_fog_color),u_fog_ground_blend:new gs(e,t.u_fog_ground_blend),u_fog_ground_blend_opacity:new gs(e,t.u_fog_ground_blend_opacity),u_horizon_color:new lg(e,t.u_horizon_color),u_horizon_fog_blend:new gs(e,t.u_horizon_fog_blend),u_is_globe_mode:new gs(e,t.u_is_globe_mode)}),RSr=(e,t)=>({u_ele_delta:new gs(e,t.u_ele_delta)}),BSr=(e,t,r,i,n)=>({u_texture:0,u_ele_delta:e,u_fog_matrix:t,u_fog_color:r?r.properties.get("fog-color"):Ol.white,u_fog_ground_blend:r?r.properties.get("fog-ground-blend"):1,u_fog_ground_blend_opacity:n?0:r?r.calculateFogBlendOpacity(i):0,u_horizon_color:r?r.properties.get("horizon-color"):Ol.white,u_horizon_fog_blend:r?r.properties.get("horizon-fog-blend"):1,u_is_globe_mode:+!!n}),qSr=e=>({u_ele_delta:e}),_O={ProjectionUBO:0,TerrainUBO:1,FrameUBO:2};NSr={float:[1,1],int:[1,1],vec2:[2,2],vec4:[4,4],mat4:[16,4]};Woe=class{constructor(e,t,r){this.context=e,this.binding=t,this.contentWords=r.contentWords;let i=e.gl;this.buffer=i.createBuffer(),i.bindBuffer(i.UNIFORM_BUFFER,this.buffer),i.bufferData(i.UNIFORM_BUFFER,r.sizeWords*4,i.DYNAMIC_DRAW),this.uploaded=new Float32Array(r.sizeWords),this.pending=new Float32Array(r.sizeWords),this.uploadedWords=new Uint32Array(this.uploaded.buffer),this.pendingWords=new Uint32Array(this.pending.buffer),this.hasData=!1}upload(){let e=this.context.gl,t=!this.hasData;if(!t){let r=this.pendingWords,i=this.uploadedWords;for(let n=0;n=0&&(this.attributes[g]={location:E,isInteger:A.has(g)})}u.deleteShader(x),u.deleteShader(M);for(let g of m)if(g&&!T[g]){let E=u.getUniformLocation(this.program,g);E&&(T[g]=E)}this.fixedUniforms=i(e,T),this.terrainUniforms=zSr(e,T),this.binderUniforms=r?r.getUniforms(e,T):[]}draw(e,t,r,i,n,a,o,s,l,u,f,c,h,d,p,v,y,m,w){var M;let _=e.gl;if(this.failedToCreate)return;if(e.program.set(this.program),e.terrainUniformBuffer.bind(),e.frameUniformBuffer.bind(),e.setDepthMode(r),e.setStencilMode(i),e.setColorMode(n),e.setCullFace(a),s){e.activeTexture.set(_.TEXTURE2),_.bindTexture(_.TEXTURE_2D,s.depthTexture),e.activeTexture.set(_.TEXTURE3),_.bindTexture(_.TEXTURE_2D,s.texture);for(let x in this.terrainUniforms)this.terrainUniforms[x].set(s[x]);jSr(e.terrainUniformBuffer,s)}if(VSr(e,l),o)for(let x in this.fixedUniforms)this.fixedUniforms[x].set(o[x]);v&&v.setUniforms(e,this.binderUniforms,d,{zoom:p});let b=0;switch(t){case _.LINES:b=2;break;case _.TRIANGLES:b=3;break;case _.LINE_STRIP:b=1}for(let x of h.get())x.vaos||(x.vaos={}),(M=x.vaos)[u]||(M[u]=new PSr),x.vaos[u].bind(e,this,f,v?v.getPaintVertexBuffers():[],c,x.vertexOffset,y,m,w),_.drawElements(t,x.primitiveLength*b,_.UNSIGNED_SHORT,x.primitiveOffset*b*2)}};XSr=(e,t)=>({u_lightpos:new nd(e,t.u_lightpos),u_lightpos_globe:new nd(e,t.u_lightpos_globe),u_lightintensity:new gs(e,t.u_lightintensity),u_lightcolor:new nd(e,t.u_lightcolor),u_vertical_gradient:new gs(e,t.u_vertical_gradient),u_opacity:new gs(e,t.u_opacity),u_fill_translate:new Jl(e,t.u_fill_translate)}),ZSr=(e,t)=>({u_lightpos:new nd(e,t.u_lightpos),u_lightpos_globe:new nd(e,t.u_lightpos_globe),u_lightintensity:new gs(e,t.u_lightintensity),u_lightcolor:new nd(e,t.u_lightcolor),u_vertical_gradient:new gs(e,t.u_vertical_gradient),u_height_factor:new gs(e,t.u_height_factor),u_opacity:new gs(e,t.u_opacity),u_fill_translate:new Jl(e,t.u_fill_translate),u_image:new rl(e,t.u_image),u_texsize:new Jl(e,t.u_texsize),u_pixel_coord_upper:new Jl(e,t.u_pixel_coord_upper),u_pixel_coord_lower:new Jl(e,t.u_pixel_coord_lower),u_scale:new nd(e,t.u_scale),u_fade:new gs(e,t.u_fade)}),Nlt=(e,t,r,i)=>{let n=e.style.light,a=n.getCartesianPosition(),o=wne();n.properties.get("anchor")==="viewport"&&drt(o,e.transform.bearingInRadians),wrt(a,a,o);let s=e.transform.transformLightDirection(a),l=n.properties.get("color");return{u_lightpos:a,u_lightpos_globe:s,u_lightintensity:n.properties.get("intensity"),u_lightcolor:[l.r,l.g,l.b],u_vertical_gradient:+t,u_opacity:r,u_fill_translate:i}},KSr=(e,t,r,i,n,a,o)=>js(Nlt(e,t,r,i),Olt(a,e,o),{u_height_factor:-(2**n.overscaledZ)/o.tileSize/8}),JSr=(e,t)=>({u_fill_translate:new Jl(e,t.u_fill_translate)}),QSr=(e,t)=>({u_image:new rl(e,t.u_image),u_texsize:new Jl(e,t.u_texsize),u_pixel_coord_upper:new Jl(e,t.u_pixel_coord_upper),u_pixel_coord_lower:new Jl(e,t.u_pixel_coord_lower),u_scale:new nd(e,t.u_scale),u_fade:new gs(e,t.u_fade),u_sdf_pattern:new rl(e,t.u_sdf_pattern),u_fill_translate:new Jl(e,t.u_fill_translate)}),eEr=(e,t)=>({u_fill_translate:new Jl(e,t.u_fill_translate)}),tEr=(e,t)=>({u_image:new rl(e,t.u_image),u_texsize:new Jl(e,t.u_texsize),u_pixel_coord_upper:new Jl(e,t.u_pixel_coord_upper),u_pixel_coord_lower:new Jl(e,t.u_pixel_coord_lower),u_scale:new nd(e,t.u_scale),u_fade:new gs(e,t.u_fade),u_sdf_pattern:new rl(e,t.u_sdf_pattern),u_fill_translate:new Jl(e,t.u_fill_translate)}),Vlt=(e,t,r,i,n)=>js(Olt(t,e,r),{u_fill_translate:i,u_sdf_pattern:+!!n}),rEr=e=>({u_fill_translate:e}),iEr=e=>({u_fill_translate:e}),nEr=(e,t,r,i,n)=>Vlt(e,t,r,i,n),aEr=(e,t)=>({u_scale_with_map:new rl(e,t.u_scale_with_map),u_pitch_with_map:new rl(e,t.u_pitch_with_map),u_extrude_scale:new Jl(e,t.u_extrude_scale),u_globe_extrude_scale:new gs(e,t.u_globe_extrude_scale),u_translate:new Jl(e,t.u_translate)}),oEr=(e,t,r,i,n)=>{let a=e.transform,o,s,l=0;if(r.paint.get("circle-pitch-alignment")==="map"){let u=Ud(t,1,a.zoom);o=!0,s=[u,u],l=u/(Aa*2**t.tileID.overscaledZ)*2*Math.PI*n}else o=!1,s=a.pixelsToGLUnits;return{u_scale_with_map:+(r.paint.get("circle-pitch-scale")==="map"),u_pitch_with_map:+o,u_extrude_scale:s,u_globe_extrude_scale:l,u_translate:i}},sEr=(e,t)=>({u_color:new lg(e,t.u_color),u_overlay:new rl(e,t.u_overlay),u_overlay_scale:new gs(e,t.u_overlay_scale)}),xst=(e,t=1)=>({u_color:e,u_overlay:0,u_overlay_scale:t}),lEr=(e,t)=>({u_extrude_scale:new gs(e,t.u_extrude_scale),u_intensity:new gs(e,t.u_intensity),u_globe_extrude_scale:new gs(e,t.u_globe_extrude_scale)}),uEr=(e,t)=>({u_matrix:new Dv(e,t.u_matrix),u_image:new rl(e,t.u_image),u_color_ramp:new rl(e,t.u_color_ramp),u_opacity:new gs(e,t.u_opacity)}),Ult=(e,t,r,i)=>{let n=Ud(e,1,t)/(Aa*2**e.tileID.overscaledZ)*2*Math.PI*i;return{u_extrude_scale:Ud(e,1,t),u_intensity:r,u_globe_extrude_scale:n}},Glt=(e,t,r,i)=>{let n=tg();return F1(n,0,e.width,e.height,0,0,1),{u_matrix:n,u_image:r,u_color_ramp:i,u_opacity:t.paint.get("heatmap-opacity")}},fEr=(e,t)=>({u_image:new rl(e,t.u_image),u_latrange:new Jl(e,t.u_latrange),u_exaggeration:new gs(e,t.u_exaggeration),u_altitudes:new oae(e,t.u_altitudes),u_azimuths:new oae(e,t.u_azimuths),u_accent:new lg(e,t.u_accent),u_method:new rl(e,t.u_method),u_shadows:new aae(e,t.u_shadows),u_highlights:new aae(e,t.u_highlights)}),cEr=(e,t)=>({u_matrix:new Dv(e,t.u_matrix),u_image:new rl(e,t.u_image),u_dimension:new Jl(e,t.u_dimension),u_zoom:new gs(e,t.u_zoom),u_unpack:new Q5(e,t.u_unpack)}),hEr=(e,t,r)=>{let i=r.paint.get("hillshade-accent-color"),n;switch(r.paint.get("hillshade-method")){case"basic":n=4;break;case"combined":n=1;break;case"igor":n=2;break;case"multidirectional":n=3;break;default:n=0}let a=r.getIlluminationProperties();for(let o=0;o{let r=t.stride,i=tg();return F1(i,0,Aa,-Aa,0,0,1),ih(i,i,[0,-Aa,0]),{u_matrix:i,u_image:1,u_dimension:[r,r],u_zoom:e.overscaledZ,u_unpack:t.getUnpackVector()}};vEr=(e,t)=>({u_image:new rl(e,t.u_image),u_unpack:new Q5(e,t.u_unpack),u_dimension:new Jl(e,t.u_dimension),u_elevation_stops:new rl(e,t.u_elevation_stops),u_color_stops:new rl(e,t.u_color_stops),u_color_ramp_size:new rl(e,t.u_color_ramp_size),u_opacity:new gs(e,t.u_opacity)}),mEr=(e,t,r=0)=>({u_image:0,u_unpack:t.getUnpackVector(),u_dimension:[t.stride,t.stride],u_elevation_stops:1,u_color_stops:4,u_color_ramp_size:r,u_opacity:e.paint.get("color-relief-opacity")}),yEr=(e,t)=>({u_translation:new Jl(e,t.u_translation),u_ratio:new gs(e,t.u_ratio)}),gEr=(e,t)=>({u_translation:new Jl(e,t.u_translation),u_ratio:new gs(e,t.u_ratio),u_image:new rl(e,t.u_image),u_image_height:new gs(e,t.u_image_height)}),xEr=(e,t)=>({u_translation:new Jl(e,t.u_translation),u_texsize:new Jl(e,t.u_texsize),u_ratio:new gs(e,t.u_ratio),u_image:new rl(e,t.u_image),u_scale:new nd(e,t.u_scale),u_fade:new gs(e,t.u_fade)}),bEr=(e,t)=>({u_translation:new Jl(e,t.u_translation),u_ratio:new gs(e,t.u_ratio),u_image:new rl(e,t.u_image),u_mix:new gs(e,t.u_mix),u_tileratio:new gs(e,t.u_tileratio),u_crossfade_from:new gs(e,t.u_crossfade_from),u_crossfade_to:new gs(e,t.u_crossfade_to),u_lineatlas_width:new gs(e,t.u_lineatlas_width),u_lineatlas_height:new gs(e,t.u_lineatlas_height)}),_Er=(e,t)=>({u_translation:new Jl(e,t.u_translation),u_ratio:new gs(e,t.u_ratio),u_image:new rl(e,t.u_image),u_image_height:new gs(e,t.u_image_height),u_tileratio:new gs(e,t.u_tileratio),u_crossfade_from:new gs(e,t.u_crossfade_from),u_crossfade_to:new gs(e,t.u_crossfade_to),u_image_dash:new rl(e,t.u_image_dash),u_mix:new gs(e,t.u_mix),u_lineatlas_width:new gs(e,t.u_lineatlas_width),u_lineatlas_height:new gs(e,t.u_lineatlas_height)}),wO=(e,t,r,i)=>{let n=e.transform;return{u_translation:Hlt(e,t,r),u_ratio:i/Ud(t,1,n.zoom)}},wEr=(e,t,r,i,n)=>js(wO(e,t,r,i),{u_image:0,u_image_height:n}),AEr=(e,t,r,i,n)=>{let a=e.transform,o=$oe(t,a);return{u_translation:Hlt(e,t,r),u_texsize:t.imageAtlasTexture.size,u_ratio:i/Ud(t,1,a.zoom),u_image:0,u_scale:[o,n.fromScale,n.toScale],u_fade:n.t}},TEr=(e,t,r,i,n)=>{let a=e.transform,o=$oe(t,a);return js(wO(e,t,r,i),{u_tileratio:o,u_crossfade_from:n.fromScale,u_crossfade_to:n.toScale,u_image:0,u_mix:n.t,u_lineatlas_width:e.lineAtlas.width,u_lineatlas_height:e.lineAtlas.height})},MEr=(e,t,r,i,n,a)=>{let o=e.transform,s=$oe(t,o);return js(wO(e,t,r,i),{u_image:0,u_image_height:a,u_tileratio:s,u_crossfade_from:n.fromScale,u_crossfade_to:n.toScale,u_image_dash:1,u_mix:n.t,u_lineatlas_width:e.lineAtlas.width,u_lineatlas_height:e.lineAtlas.height})};SEr=(e,t)=>({u_image:new rl(e,t.u_image),u_opacity:new gs(e,t.u_opacity)}),EEr=(e,t)=>({u_image:t,u_opacity:e}),kEr=(e,t)=>({u_is_size_zoom_constant:new rl(e,t.u_is_size_zoom_constant),u_is_size_feature_constant:new rl(e,t.u_is_size_feature_constant),u_size_t:new gs(e,t.u_size_t),u_size:new gs(e,t.u_size),u_rotate_symbol:new rl(e,t.u_rotate_symbol),u_label_plane_matrix:new Dv(e,t.u_label_plane_matrix),u_coord_matrix:new Dv(e,t.u_coord_matrix),u_is_text:new rl(e,t.u_is_text),u_pitch_with_map:new rl(e,t.u_pitch_with_map),u_is_along_line:new rl(e,t.u_is_along_line),u_is_variable_anchor:new rl(e,t.u_is_variable_anchor),u_texsize:new Jl(e,t.u_texsize),u_texture:new rl(e,t.u_texture),u_translation:new Jl(e,t.u_translation),u_pitched_scale:new gs(e,t.u_pitched_scale),u_is_offset:new rl(e,t.u_is_offset),u_height_anchor_ground:new rl(e,t.u_height_anchor_ground)}),CEr=(e,t)=>({u_is_size_zoom_constant:new rl(e,t.u_is_size_zoom_constant),u_is_size_feature_constant:new rl(e,t.u_is_size_feature_constant),u_size_t:new gs(e,t.u_size_t),u_size:new gs(e,t.u_size),u_rotate_symbol:new rl(e,t.u_rotate_symbol),u_label_plane_matrix:new Dv(e,t.u_label_plane_matrix),u_coord_matrix:new Dv(e,t.u_coord_matrix),u_is_text:new rl(e,t.u_is_text),u_pitch_with_map:new rl(e,t.u_pitch_with_map),u_is_along_line:new rl(e,t.u_is_along_line),u_is_variable_anchor:new rl(e,t.u_is_variable_anchor),u_texsize:new Jl(e,t.u_texsize),u_texture:new rl(e,t.u_texture),u_gamma_scale:new gs(e,t.u_gamma_scale),u_is_halo:new rl(e,t.u_is_halo),u_is_plain:new rl(e,t.u_is_plain),u_translation:new Jl(e,t.u_translation),u_pitched_scale:new gs(e,t.u_pitched_scale),u_is_offset:new rl(e,t.u_is_offset),u_height_anchor_ground:new rl(e,t.u_height_anchor_ground)}),DEr=(e,t)=>({u_is_size_zoom_constant:new rl(e,t.u_is_size_zoom_constant),u_is_size_feature_constant:new rl(e,t.u_is_size_feature_constant),u_size_t:new gs(e,t.u_size_t),u_size:new gs(e,t.u_size),u_rotate_symbol:new rl(e,t.u_rotate_symbol),u_label_plane_matrix:new Dv(e,t.u_label_plane_matrix),u_coord_matrix:new Dv(e,t.u_coord_matrix),u_is_text:new rl(e,t.u_is_text),u_pitch_with_map:new rl(e,t.u_pitch_with_map),u_is_along_line:new rl(e,t.u_is_along_line),u_is_variable_anchor:new rl(e,t.u_is_variable_anchor),u_texsize:new Jl(e,t.u_texsize),u_texsize_icon:new Jl(e,t.u_texsize_icon),u_texture:new rl(e,t.u_texture),u_texture_icon:new rl(e,t.u_texture_icon),u_gamma_scale:new gs(e,t.u_gamma_scale),u_is_halo:new rl(e,t.u_is_halo),u_translation:new Jl(e,t.u_translation),u_pitched_scale:new gs(e,t.u_pitched_scale),u_is_offset:new rl(e,t.u_is_offset),u_height_anchor_ground:new rl(e,t.u_height_anchor_ground)}),jlt=(e,t,r,i,n,a,o,s,l,u,f,c,h,d,p)=>({u_is_size_zoom_constant:+(e==="constant"||e==="source"),u_is_size_feature_constant:+(e==="constant"||e==="camera"),u_size_t:t?t.uSizeT:0,u_size:t?t.uSize:0,u_rotate_symbol:+r,u_label_plane_matrix:s,u_coord_matrix:l,u_is_text:+f,u_pitch_with_map:+i,u_is_along_line:n,u_is_variable_anchor:a,u_texsize:c,u_texture:0,u_translation:u,u_pitched_scale:h,u_is_offset:d,u_height_anchor_ground:+p}),Wlt=(e,t,r,i,n,a,o,s,l,u,f,c,h,d,p,v)=>{let y=o.transform;return js(jlt(e,t,r,i,n,a,o,s,l,u,f,c,d,p,v),{u_gamma_scale:i?Math.cos(y.pitch*Math.PI/180)*y.cameraToCenterDistance:1,u_is_halo:+!!h,u_is_plain:1})},FEr=(e,t,r,i,n,a,o,s,l,u,f,c,h,d,p)=>js(Wlt(e,t,r,i,n,a,o,s,l,u,!0,f,!0,h,d,p),{u_texsize_icon:c,u_texture_icon:1}),LEr=(e,t)=>({u_opacity:new gs(e,t.u_opacity),u_color:new lg(e,t.u_color)}),PEr=(e,t)=>({u_opacity:new gs(e,t.u_opacity),u_image:new rl(e,t.u_image),u_pattern_tl_a:new Jl(e,t.u_pattern_tl_a),u_pattern_br_a:new Jl(e,t.u_pattern_br_a),u_pattern_tl_b:new Jl(e,t.u_pattern_tl_b),u_pattern_br_b:new Jl(e,t.u_pattern_br_b),u_texsize:new Jl(e,t.u_texsize),u_mix:new gs(e,t.u_mix),u_pattern_size_a:new Jl(e,t.u_pattern_size_a),u_pattern_size_b:new Jl(e,t.u_pattern_size_b),u_scale_a:new gs(e,t.u_scale_a),u_scale_b:new gs(e,t.u_scale_b),u_pixel_coord_upper:new Jl(e,t.u_pixel_coord_upper),u_pixel_coord_lower:new Jl(e,t.u_pixel_coord_lower),u_tile_units_to_pixels:new gs(e,t.u_tile_units_to_pixels)}),zEr=(e,t)=>({u_opacity:e,u_color:t}),IEr=(e,t,r,i,n)=>js(YSr(r,n,t,i),{u_opacity:e}),REr=(e,t)=>({u_sun_pos:new nd(e,t.u_sun_pos),u_atmosphere_blend:new gs(e,t.u_atmosphere_blend),u_globe_position:new nd(e,t.u_globe_position),u_globe_radius:new gs(e,t.u_globe_radius),u_inv_proj_matrix:new Dv(e,t.u_inv_proj_matrix)}),BEr=(e,t,r,i,n)=>({u_sun_pos:e,u_atmosphere_blend:t,u_globe_position:r,u_globe_radius:i,u_inv_proj_matrix:n}),qEr=(e,t)=>({u_sky_color:new lg(e,t.u_sky_color),u_horizon_color:new lg(e,t.u_horizon_color),u_horizon:new Jl(e,t.u_horizon),u_horizon_normal:new Jl(e,t.u_horizon_normal),u_sky_horizon_blend:new gs(e,t.u_sky_horizon_blend),u_sky_blend:new gs(e,t.u_sky_blend),u_inv_proj_matrix:new Dv(e,t.u_inv_proj_matrix),u_globe_position:new nd(e,t.u_globe_position),u_globe_radius:new gs(e,t.u_globe_radius),u_atmosphere_blend:new gs(e,t.u_atmosphere_blend)}),OEr=(e,t,r)=>{let i=Math.cos(t.rollInRadians),n=Math.sin(t.rollInRadians),a=tT(t),o=t.getProjectionData({overscaledTileID:null,applyGlobeMatrix:!0,applyTerrainMatrix:!0}).projectionTransition,s=Clt(t),l=lT(t.worldSize,t.center.lat);return{u_sky_color:e.properties.get("sky-color"),u_horizon_color:e.properties.get("horizon-color"),u_horizon:[(t.width/2-a*n)*r,(t.height/2+a*i)*r],u_horizon_normal:[-n,i],u_sky_horizon_blend:e.properties.get("sky-horizon-blend")*t.height/2*r,u_sky_blend:o,u_inv_proj_matrix:t.inverseProjectionMatrix,u_globe_position:s,u_globe_radius:l,u_atmosphere_blend:e.properties.get("atmosphere-blend")*Dlt(Cv(s)-l,l)}},eO=(e,t)=>({}),NEr={fillExtrusion:XSr,fillExtrusionPattern:ZSr,fill:JSr,fillPattern:QSr,fillOutline:eEr,fillOutlinePattern:tEr,circle:aEr,collisionBox:eO,collisionCircle:eO,debug:sEr,depth:eO,clippingMask:eO,heatmap:lEr,heatmapTexture:uEr,hillshade:fEr,hillshadePrepare:cEr,colorRelief:vEr,line:yEr,lineGradient:gEr,linePattern:xEr,lineSDF:bEr,lineGradientSDF:_Er,layerOpacity:SEr,raster:rMr,symbolIcon:kEr,symbolSDF:CEr,symbolTextAndIcon:DEr,background:LEr,backgroundPattern:PEr,terrain:ISr,terrainDepth:RSr,atmosphere:REr,sky:qEr},VEr=class{constructor(e,t,r){this.context=e;let i=e.gl;this.buffer=i.createBuffer(),this.dynamicDraw=!!r,this.context.unbindVAO(),e.bindElementBuffer.set(this.buffer),i.bufferData(i.ELEMENT_ARRAY_BUFFER,t.arrayBuffer,this.dynamicDraw?i.DYNAMIC_DRAW:i.STATIC_DRAW),this.dynamicDraw||t.freeBufferAfterUpload()}bind(){this.context.bindElementBuffer.set(this.buffer)}updateData(e){let t=this.context.gl;if(!this.dynamicDraw)throw Error("Attempted to update data while not in dynamic mode.");this.context.unbindVAO(),this.bind(),t.bufferSubData(t.ELEMENT_ARRAY_BUFFER,0,e.arrayBuffer)}destroy(){let e=this.context.gl;this.buffer&&(e.deleteBuffer(this.buffer),delete this.buffer)}},bst={Int8:"BYTE",Uint8:"UNSIGNED_BYTE",Int16:"SHORT",Uint16:"UNSIGNED_SHORT",Int32:"INT",Uint32:"UNSIGNED_INT",Float32:"FLOAT"},UEr=class{constructor(e,t,r,i){this.length=t.length,this.attributes=r,this.itemSize=t.bytesPerElement,this.dynamicDraw=i,this.context=e;let n=e.gl;this.buffer=n.createBuffer(),e.bindVertexBuffer.set(this.buffer),n.bufferData(n.ARRAY_BUFFER,t.arrayBuffer,this.dynamicDraw?n.DYNAMIC_DRAW:n.STATIC_DRAW),this.dynamicDraw||t.freeBufferAfterUpload()}bind(){this.context.bindVertexBuffer.set(this.buffer)}updateData(e){if(e.length!==this.length)throw Error(`Length of new data is ${e.length}, which doesn't match current length of ${this.length}`);let t=this.context.gl;this.bind(),t.bufferSubData(t.ARRAY_BUFFER,0,e.arrayBuffer)}enableAttributes(e,t){for(let r of this.attributes){let i=t.attributes[r.name];i!==void 0&&e.enableVertexAttribArray(i.location)}}setVertexAttribPointers(e,t,r){for(let i of this.attributes){let n=t.attributes[i.name];if(n!==void 0){let a=i.offset+this.itemSize*(r||0);n.isInteger?e.vertexAttribIPointer(n.location,i.components,e[bst[i.type]],this.itemSize,a):e.vertexAttribPointer(n.location,i.components,e[bst[i.type]],!1,this.itemSize,a)}}}destroy(){let e=this.context.gl;this.buffer&&(e.deleteBuffer(this.buffer),delete this.buffer)}},of=class{constructor(e){this.gl=e.gl,this.default=this.getDefault(),this.current=this.default,this.dirty=!1}get(){return this.current}set(e){}getDefault(){return this.default}setDefault(){this.set(this.default)}},GEr=class extends of{getDefault(){return Ol.transparent}set(e){let t=this.current;(e.r!==t.r||e.g!==t.g||e.b!==t.b||e.a!==t.a||this.dirty)&&(this.gl.clearColor(e.r,e.g,e.b,e.a),this.current=e,this.dirty=!1)}},HEr=class extends of{getDefault(){return 1}set(e){(e!==this.current||this.dirty)&&(this.gl.clearDepth(e),this.current=e,this.dirty=!1)}},jEr=class extends of{getDefault(){return 0}set(e){(e!==this.current||this.dirty)&&(this.gl.clearStencil(e),this.current=e,this.dirty=!1)}},WEr=class extends of{getDefault(){return[!0,!0,!0,!0]}set(e){let t=this.current;(e[0]!==t[0]||e[1]!==t[1]||e[2]!==t[2]||e[3]!==t[3]||this.dirty)&&(this.gl.colorMask(e[0],e[1],e[2],e[3]),this.current=e,this.dirty=!1)}},$Er=class extends of{getDefault(){return!0}set(e){(e!==this.current||this.dirty)&&(this.gl.depthMask(e),this.current=e,this.dirty=!1)}},YEr=class extends of{getDefault(){return 255}set(e){(e!==this.current||this.dirty)&&(this.gl.stencilMask(e),this.current=e,this.dirty=!1)}},XEr=class extends of{getDefault(){return{func:this.gl.ALWAYS,ref:0,mask:255}}set(e){let t=this.current;(e.func!==t.func||e.ref!==t.ref||e.mask!==t.mask||this.dirty)&&(this.gl.stencilFunc(e.func,e.ref,e.mask),this.current=e,this.dirty=!1)}},ZEr=class extends of{getDefault(){let e=this.gl;return[e.KEEP,e.KEEP,e.KEEP]}set(e){let t=this.current;(e[0]!==t[0]||e[1]!==t[1]||e[2]!==t[2]||this.dirty)&&(this.gl.stencilOp(e[0],e[1],e[2]),this.current=e,this.dirty=!1)}},KEr=class extends of{getDefault(){return!1}set(e){if(e===this.current&&!this.dirty)return;let t=this.gl;e?t.enable(t.STENCIL_TEST):t.disable(t.STENCIL_TEST),this.current=e,this.dirty=!1}},JEr=class extends of{getDefault(){return[0,1]}set(e){let t=this.current;(e[0]!==t[0]||e[1]!==t[1]||this.dirty)&&(this.gl.depthRange(e[0],e[1]),this.current=e,this.dirty=!1)}},QEr=class extends of{getDefault(){return!1}set(e){if(e===this.current&&!this.dirty)return;let t=this.gl;e?t.enable(t.DEPTH_TEST):t.disable(t.DEPTH_TEST),this.current=e,this.dirty=!1}},ekr=class extends of{getDefault(){return this.gl.LESS}set(e){(e!==this.current||this.dirty)&&(this.gl.depthFunc(e),this.current=e,this.dirty=!1)}},tkr=class extends of{getDefault(){return!1}set(e){if(e===this.current&&!this.dirty)return;let t=this.gl;e?t.enable(t.BLEND):t.disable(t.BLEND),this.current=e,this.dirty=!1}},rkr=class extends of{getDefault(){let e=this.gl;return[e.ONE,e.ZERO]}set(e){let t=this.current;(e[0]!==t[0]||e[1]!==t[1]||this.dirty)&&(this.gl.blendFunc(e[0],e[1]),this.current=e,this.dirty=!1)}},ikr=class extends of{getDefault(){return Ol.transparent}set(e){let t=this.current;(e.r!==t.r||e.g!==t.g||e.b!==t.b||e.a!==t.a||this.dirty)&&(this.gl.blendColor(e.r,e.g,e.b,e.a),this.current=e,this.dirty=!1)}},nkr=class extends of{getDefault(){return this.gl.FUNC_ADD}set(e){(e!==this.current||this.dirty)&&(this.gl.blendEquation(e),this.current=e,this.dirty=!1)}},akr=class extends of{getDefault(){return!1}set(e){if(e===this.current&&!this.dirty)return;let t=this.gl;e?t.enable(t.CULL_FACE):t.disable(t.CULL_FACE),this.current=e,this.dirty=!1}},okr=class extends of{getDefault(){return this.gl.BACK}set(e){(e!==this.current||this.dirty)&&(this.gl.cullFace(e),this.current=e,this.dirty=!1)}},skr=class extends of{getDefault(){return this.gl.CCW}set(e){(e!==this.current||this.dirty)&&(this.gl.frontFace(e),this.current=e,this.dirty=!1)}},lkr=class extends of{getDefault(){return null}set(e){(e!==this.current||this.dirty)&&(this.gl.useProgram(e),this.current=e,this.dirty=!1)}},ukr=class extends of{getDefault(){return this.gl.TEXTURE0}set(e){(e!==this.current||this.dirty)&&(this.gl.activeTexture(e),this.current=e,this.dirty=!1)}},fkr=class extends of{getDefault(){let e=this.gl;return[0,0,e.drawingBufferWidth,e.drawingBufferHeight]}set(e){let t=this.current;(e[0]!==t[0]||e[1]!==t[1]||e[2]!==t[2]||e[3]!==t[3]||this.dirty)&&(this.gl.viewport(e[0],e[1],e[2],e[3]),this.current=e,this.dirty=!1)}},ckr=class extends of{getDefault(){return null}set(e){if(e===this.current&&!this.dirty)return;let t=this.gl;t.bindFramebuffer(t.FRAMEBUFFER,e),this.current=e,this.dirty=!1}},hkr=class extends of{getDefault(){return null}set(e){if(e===this.current&&!this.dirty)return;let t=this.gl;t.bindRenderbuffer(t.RENDERBUFFER,e),this.current=e,this.dirty=!1}},dkr=class extends of{getDefault(){return null}set(e){if(e===this.current&&!this.dirty)return;let t=this.gl;t.bindTexture(t.TEXTURE_2D,e),this.current=e,this.dirty=!1}},pkr=class extends of{getDefault(){return null}set(e){if(e===this.current&&!this.dirty)return;let t=this.gl;t.bindBuffer(t.ARRAY_BUFFER,e),this.current=e,this.dirty=!1}},vkr=class extends of{getDefault(){return null}set(e){let t=this.gl;t.bindBuffer(t.ELEMENT_ARRAY_BUFFER,e),this.current=e,this.dirty=!1}},mkr=class extends of{getDefault(){return null}set(e){(e!==this.current||this.dirty)&&(this.gl.bindVertexArray(e),this.current=e,this.dirty=!1)}},ykr=class extends of{getDefault(){return 4}set(e){if(e===this.current&&!this.dirty)return;let t=this.gl;t.pixelStorei(t.UNPACK_ALIGNMENT,e),this.current=e,this.dirty=!1}},gkr=class extends of{getDefault(){return!1}set(e){if(e===this.current&&!this.dirty)return;let t=this.gl;t.pixelStorei(t.UNPACK_PREMULTIPLY_ALPHA_WEBGL,e),this.current=e,this.dirty=!1}},xkr=class extends of{getDefault(){return!1}set(e){if(e===this.current&&!this.dirty)return;let t=this.gl;t.pixelStorei(t.UNPACK_FLIP_Y_WEBGL,e),this.current=e,this.dirty=!1}},Yoe=class extends of{constructor(e,t){super(e),this.context=e,this.parent=t}getDefault(){return null}},bkr=class extends Yoe{setDirty(){this.dirty=!0}set(e){if(e===this.current&&!this.dirty)return;this.context.bindFramebuffer.set(this.parent);let t=this.gl;t.framebufferTexture2D(t.FRAMEBUFFER,t.COLOR_ATTACHMENT0,t.TEXTURE_2D,e,0),this.current=e,this.dirty=!1}},_kr=class extends Yoe{set(e){if(e===this.current&&!this.dirty)return;this.context.bindFramebuffer.set(this.parent);let t=this.gl;t.framebufferRenderbuffer(t.FRAMEBUFFER,t.DEPTH_ATTACHMENT,t.RENDERBUFFER,e),this.current=e,this.dirty=!1}},wkr=class extends Yoe{set(e){if(e===this.current&&!this.dirty)return;this.context.bindFramebuffer.set(this.parent);let t=this.gl;t.framebufferRenderbuffer(t.FRAMEBUFFER,t.DEPTH_STENCIL_ATTACHMENT,t.RENDERBUFFER,e),this.current=e,this.dirty=!1}},Akr=class{constructor(e,t,r,i,n){this.context=e,this.width=t,this.height=r;let a=e.gl,o=this.framebuffer=a.createFramebuffer();if(this.colorAttachment=new bkr(e,o),i)this.depthAttachment=n?new wkr(e,o):new _kr(e,o);else if(n)throw Error("Stencil cannot be set without depth")}destroy(){let e=this.context.gl,t=this.colorAttachment.get();if(t&&e.deleteTexture(t),this.depthAttachment){let r=this.depthAttachment.get();r&&e.deleteRenderbuffer(r)}e.deleteFramebuffer(this.framebuffer)}},$lt=joe([{name:"u_units_to_pixels",type:"vec2"},{name:"u_world_size",type:"vec2"},{name:"u_camera_to_center_distance",type:"float"},{name:"u_symbol_fade_change",type:"float"},{name:"u_aspect_ratio",type:"float"},{name:"u_device_pixel_ratio",type:"float"},{name:"u_viewport_size",type:"vec2"},{name:"u_pixel_extrude_scale",type:"vec2"},{name:"u_pitch",type:"float"}]),Mp=$lt.offsets;Nc=class{constructor(e,t,r){this.blendFunction=e,this.blendColor=t,this.mask=r}};Nc.Replace=[1,0],Nc.disabled=new Nc(Nc.Replace,Ol.transparent,[!1,!1,!1,!1]),Nc.unblended=new Nc(Nc.Replace,Ol.transparent,[!0,!0,!0,!0]),Nc.alphaBlended=new Nc([1,771],Ol.transparent,[!0,!0,!0,!0]);Skr=class{constructor(e){this.gl=e,this.clearColor=new GEr(this),this.clearDepth=new HEr(this),this.clearStencil=new jEr(this),this.colorMask=new WEr(this),this.depthMask=new $Er(this),this.stencilMask=new YEr(this),this.stencilFunc=new XEr(this),this.stencilOp=new ZEr(this),this.stencilTest=new KEr(this),this.depthRange=new JEr(this),this.depthTest=new QEr(this),this.depthFunc=new ekr(this),this.blend=new tkr(this),this.blendFunc=new rkr(this),this.blendColor=new ikr(this),this.blendEquation=new nkr(this),this.cullFace=new akr(this),this.cullFaceSide=new okr(this),this.frontFace=new skr(this),this.program=new lkr(this),this.activeTexture=new ukr(this),this.viewport=new fkr(this),this.bindFramebuffer=new ckr(this),this.bindRenderbuffer=new hkr(this),this.bindTexture=new dkr(this),this.bindVertexBuffer=new pkr(this),this.bindElementBuffer=new vkr(this),this.bindVertexArray=new mkr(this),this.pixelStoreUnpack=new ykr(this),this.pixelStoreUnpackPremultiplyAlpha=new gkr(this),this.pixelStoreUnpackFlipY=new xkr(this),this.extTextureFilterAnisotropic=e.getExtension("EXT_texture_filter_anisotropic"),this.extTextureFilterAnisotropic&&(this.extTextureFilterAnisotropicMax=e.getParameter(this.extTextureFilterAnisotropic.MAX_TEXTURE_MAX_ANISOTROPY_EXT)),this.maxTextureSize=e.getParameter(e.MAX_TEXTURE_SIZE),e.getExtension("EXT_color_buffer_half_float"),e.getExtension("EXT_color_buffer_float"),this.boundUniformBuffers=[],this.projectionUniformBuffer=Blt(this),this.keyedProjectionUniformBuffers=new Map,this.freeProjectionUniformBuffers=[],this.terrainUniformBuffer=HSr(this),this.frameUniformBuffer=Tkr(this)}setDefault(){this.unbindVAO(),this.clearColor.setDefault(),this.clearDepth.setDefault(),this.clearStencil.setDefault(),this.colorMask.setDefault(),this.depthMask.setDefault(),this.stencilMask.setDefault(),this.stencilFunc.setDefault(),this.stencilOp.setDefault(),this.stencilTest.setDefault(),this.depthRange.setDefault(),this.depthTest.setDefault(),this.depthFunc.setDefault(),this.blend.setDefault(),this.blendFunc.setDefault(),this.blendColor.setDefault(),this.blendEquation.setDefault(),this.cullFace.setDefault(),this.cullFaceSide.setDefault(),this.frontFace.setDefault(),this.program.setDefault(),this.activeTexture.setDefault(),this.bindFramebuffer.setDefault(),this.pixelStoreUnpack.setDefault(),this.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.pixelStoreUnpackFlipY.setDefault()}setDirty(){this.clearColor.dirty=!0,this.clearDepth.dirty=!0,this.clearStencil.dirty=!0,this.colorMask.dirty=!0,this.depthMask.dirty=!0,this.stencilMask.dirty=!0,this.stencilFunc.dirty=!0,this.stencilOp.dirty=!0,this.stencilTest.dirty=!0,this.depthRange.dirty=!0,this.depthTest.dirty=!0,this.depthFunc.dirty=!0,this.blend.dirty=!0,this.blendFunc.dirty=!0,this.blendColor.dirty=!0,this.blendEquation.dirty=!0,this.cullFace.dirty=!0,this.cullFaceSide.dirty=!0,this.frontFace.dirty=!0,this.program.dirty=!0,this.activeTexture.dirty=!0,this.viewport.dirty=!0,this.bindFramebuffer.dirty=!0,this.bindRenderbuffer.dirty=!0,this.bindTexture.dirty=!0,this.bindVertexBuffer.dirty=!0,this.bindElementBuffer.dirty=!0,this.bindVertexArray.dirty=!0,this.pixelStoreUnpack.dirty=!0,this.pixelStoreUnpackPremultiplyAlpha.dirty=!0,this.pixelStoreUnpackFlipY.dirty=!0,this.boundUniformBuffers=[]}setCustomLayerDefaults(){this.unbindVAO(),this.cullFace.setDefault(),this.activeTexture.setDefault(),this.pixelStoreUnpack.setDefault(),this.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.pixelStoreUnpackFlipY.setDefault()}createIndexBuffer(e,t){return new VEr(this,e,t)}createVertexBuffer(e,t,r){return new UEr(this,e,t,r)}createRenderbuffer(e,t,r){let i=this.gl,n=i.createRenderbuffer();return this.bindRenderbuffer.set(n),i.renderbufferStorage(i.RENDERBUFFER,e,t,r),this.bindRenderbuffer.set(null),n}createFramebuffer(e,t,r,i){return new Akr(this,e,t,r,i)}clear({color:e,depth:t,stencil:r}){let i=this.gl,n=0;e&&(n|=i.COLOR_BUFFER_BIT,this.clearColor.set(e),this.colorMask.set([!0,!0,!0,!0])),t!==void 0&&(n|=i.DEPTH_BUFFER_BIT,this.depthRange.set([0,1]),this.clearDepth.set(t),this.depthMask.set(!0)),r!==void 0&&(n|=i.STENCIL_BUFFER_BIT,this.clearStencil.set(r),this.stencilMask.set(255)),i.clear(n)}setCullFace(e){e.enable===!1?this.cullFace.set(!1):(this.cullFace.set(!0),this.cullFaceSide.set(e.mode),this.frontFace.set(e.frontFace))}setDepthMode(e){e.func===this.gl.ALWAYS&&!e.mask?this.depthTest.set(!1):(this.depthTest.set(!0),this.depthFunc.set(e.func),this.depthMask.set(e.mask),this.depthRange.set(e.range))}setStencilMode(e){e.test.func===this.gl.ALWAYS&&!e.mask?this.stencilTest.set(!1):(this.stencilTest.set(!0),this.stencilMask.set(e.mask),this.stencilOp.set([e.fail,e.depthFail,e.pass]),this.stencilFunc.set({func:e.test.func,ref:e.ref,mask:e.test.mask}))}setColorMode(e){C1(e.blendFunction,Nc.Replace)?this.blend.set(!1):(this.blend.set(!0),this.blendFunc.set(e.blendFunction),this.blendColor.set(e.blendColor)),this.colorMask.set(e.mask)}createVertexArray(){return this.gl.createVertexArray()}deleteVertexArray(e){this.gl.deleteVertexArray(e)}unbindVAO(){this.bindVertexArray.set(null)}},mu=class{constructor(e,t,r){this.func=e,this.mask=t,this.range=r}};mu.ReadOnly=!1,mu.ReadWrite=!0,mu.disabled=new mu(519,mu.ReadOnly,[0,1]);toe=7680,Zu=class{constructor(e,t,r,i,n,a){this.test=e,this.ref=t,this.mask=r,this.fail=i,this.depthFail=n,this.pass=a}};Zu.disabled=new Zu({func:519,mask:0},0,0,toe,toe,toe);_st=1029,roe=2305,Hu=class{constructor(e,t,r){this.enable=e,this.mode=t,this.frontFace=r}};Hu.disabled=new Hu(!1,_st,roe),Hu.backCCW=new Hu(!0,_st,roe),Hu.frontCCW=new Hu(!0,1028,roe);Ckr=kv(new Float32Array(16));aoe=0;soe=[new Jr(0,0),new Jr(Aa,0),new Jr(Aa,Aa),new Jr(0,Aa)];aCr=new Ol(1,0,0,1),oCr=new Ol(0,1,0,1),sCr=new Ol(0,0,1,1),lCr=new Ol(1,0,1,1),uCr=new Ol(0,1,1,1);wCr={symbol:Dkr,circle:Rkr,heatmap:Bkr,line:Ykr,fill:Xkr,fillExtrusion:Zkr,hillshade:Kkr,colorRelief:Qkr,raster:eCr,background:nCr,sky:xCr,atmosphere:_Cr,custom:mCr,debug:hCr,debugPadding:fCr,terrainDepth:yCr},ACr=(M3=class{constructor(t,r){this.drawFunctions=wCr,this.context=new Skr(t),this.transform=r,this.layerOpacityFbo=null,this._tileTextures={},this._rttObjectRecyclePool=[],this._rttSharedFbo=null,this.terrainFacilitator={depthDirty:!0,matrix:kv(new Float64Array(16)),renderTime:0},this.setup(),this.numSublayers=yoe.maxOverzooming+yoe.maxUnderzooming+1,this.depthEpsilon=1/2**16,this.crossTileSymbolIndex=new ylt}resize(t,r,i){if(this.width=Math.round(t*i),this.height=Math.round(r*i),this.pixelRatio=i,this.context.viewport.set([0,0,this.width,this.height]),this.style)for(let n of this.style._order)this.style._layers[n].resize()}setup(){let t=this.context,r=new og;r.emplaceBack(0,0),r.emplaceBack(Aa,0),r.emplaceBack(0,Aa),r.emplaceBack(Aa,Aa),this.tileExtentBuffer=t.createVertexBuffer(r,T3.members),this.tileExtentSegments=nc.simpleSegment(0,0,4,2);let i=new og;i.emplaceBack(0,0),i.emplaceBack(Aa,0),i.emplaceBack(0,Aa),i.emplaceBack(Aa,Aa),this.debugBuffer=t.createVertexBuffer(i,T3.members),this.debugSegments=nc.simpleSegment(0,0,4,5);let n=new Dnt;n.emplaceBack(0,0,0,0),n.emplaceBack(Aa,0,Aa,0),n.emplaceBack(0,Aa,0,Aa),n.emplaceBack(Aa,Aa,Aa,Aa),this.rasterBoundsBuffer=t.createVertexBuffer(n,LSr.members),this.rasterBoundsSegments=nc.simpleSegment(0,0,4,2);let a=new og;a.emplaceBack(0,0),a.emplaceBack(Aa,0),a.emplaceBack(0,Aa),a.emplaceBack(Aa,Aa),this.rasterBoundsBufferPosOnly=t.createVertexBuffer(a,T3.members),this.rasterBoundsSegmentsPosOnly=nc.simpleSegment(0,0,4,5);let o=new og;o.emplaceBack(0,0),o.emplaceBack(1,0),o.emplaceBack(0,1),o.emplaceBack(1,1),this.viewportBuffer=t.createVertexBuffer(o,T3.members),this.viewportSegments=nc.simpleSegment(0,0,4,2);let s=new Pnt;s.emplaceBack(0),s.emplaceBack(1),s.emplaceBack(3),s.emplaceBack(2),s.emplaceBack(0),this.tileBorderIndexBuffer=t.createIndexBuffer(s);let l=new z1;l.emplaceBack(1,0,2),l.emplaceBack(1,2,3),this.quadTriangleIndexBuffer=t.createIndexBuffer(l);let u=this.context.gl;this.stencilClearMode=new Zu({func:u.ALWAYS,mask:0},0,255,u.ZERO,u.ZERO,u.ZERO),this.tileExtentMesh=new eD(this.tileExtentBuffer,this.quadTriangleIndexBuffer,this.tileExtentSegments)}clearStencil(){let t=this.context,r=t.gl;this.nextStencilID=1,this.currentStencilSource=void 0;let i=tg();F1(i,0,this.width,this.height,0,0,1),c0(i,i,[r.drawingBufferWidth,r.drawingBufferHeight,0]);let n={mainMatrix:i,tileMercatorCoords:[0,0,1,1],clippingPlane:[0,0,0,0],projectionTransition:0,fallbackMatrix:i,clipAntimeridian:!1};this.useProgram("clippingMask",null,!0).draw(t,r.TRIANGLES,mu.disabled,this.stencilClearMode,Nc.disabled,Hu.disabled,null,null,n,"$clipping",this.viewportBuffer,this.quadTriangleIndexBuffer,this.viewportSegments)}renderTileClippingMasks(t,r){if(this.currentStencilSource===t.source||!t.isTileClipped()||!(r!=null&&r.length))return;this.currentStencilSource=t.source,this.nextStencilID+r.length>256&&this.clearStencil();let i=this.context;i.setColorMode(Nc.disabled),i.setDepthMode(mu.disabled);let n={};for(let a of r)n[a.key]=this.nextStencilID++;this.style.projection.useSubdivision&&this._renderTileMasks(n,r,!0),this._renderTileMasks(n,r,!1),this._tileClippingMaskIDs=n}_renderTileMasks(t,r,i){let n=this.context,a=n.gl,o=this.style.projection,s=this.renderContext,l=this.useProgram("clippingMask");for(let u of r){let f=t[u.key],c=wd(s,u),h=o.getMeshFromTileID(this.context,u.canonical,i,!0,"stencil"),d=R0(s,u);l.draw(n,a.TRIANGLES,mu.disabled,new Zu({func:a.ALWAYS,mask:0},f,255,a.KEEP,a.KEEP,a.REPLACE),Nc.disabled,s.isRenderingToTexture?Hu.disabled:Hu.backCCW,null,c,d,"$clipping",h.vertexBuffer,h.indexBuffer,h.segments)}}_renderTilesDepthBuffer(){let t=this.context,r=t.gl,i=this.style.projection,n=this.transform,a=this.useProgram("depth"),o=this.getDepthModeFor3D(),s=fT(n,{tileSize:n.tileSize});for(let l of s){let u=wd(this.renderContext,l),f=i.getMeshFromTileID(this.context,l.canonical,!0,!0,"raster"),c=R0(this.renderContext,l);a.draw(t,r.TRIANGLES,o,Zu.disabled,Nc.disabled,Hu.backCCW,null,u,c,"$clipping",f.vertexBuffer,f.indexBuffer,f.segments)}}stencilModeFor3D(){this.currentStencilSource=void 0,this.nextStencilID+1>256&&this.clearStencil();let t=this.nextStencilID++,r=this.context.gl;return new Zu({func:r.NOTEQUAL,mask:255},t,255,r.KEEP,r.KEEP,r.REPLACE)}stencilModeForClipping(t){let r=this.context.gl;return new Zu({func:r.EQUAL,mask:255},this._tileClippingMaskIDs[t.key],0,r.KEEP,r.KEEP,r.REPLACE)}getStencilConfigForOverlapAndUpdateStencilID(t){let r=this.context.gl,i=t.sort((o,s)=>s.overscaledZ-o.overscaledZ),n=i[i.length-1].overscaledZ,a=i[0].overscaledZ-n+1;if(a>1){this.currentStencilSource=void 0,this.nextStencilID+a>256&&this.clearStencil();let o={};for(let s=0;ss.overscaledZ-o.overscaledZ),n=i[i.length-1].overscaledZ,a=i[0].overscaledZ-n+1;if(this.clearStencil(),a>1){let o={},s={};for(let l=0;l=0;i.currentLayer--){let h=this.style._layers[n[i.currentLayer]];if(h.isHidden(this.transform.zoom))continue;let d=a[h.source],p=o[h.source];this.renderTileClippingMasks(h,p),this.renderLayer(this,d,h,p,i)}i.currentPass="translucent";let u=!1;for(i.currentLayer=0;i.currentLayer0?r.pop():null}acquireRTT(t){let r=this.context.gl,i=this._rttObjectRecyclePool.pop();if(i)return i.size!==t&&(i.texture.update({width:t,height:t,data:null},{premultiply:!1,useMipmap:!0}),i.texture.bind(r.LINEAR,r.CLAMP_TO_EDGE,r.LINEAR_MIPMAP_LINEAR),this.context.extTextureFilterAnisotropic&&r.texParameterf(r.TEXTURE_2D,this.context.extTextureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT,this.context.extTextureFilterAnisotropicMax),i.size=t),i;let n=new ph(this.context,{width:t,height:t,data:null},r.RGBA,{premultiply:!1,useMipmap:!0});return n.bind(r.LINEAR,r.CLAMP_TO_EDGE,r.LINEAR_MIPMAP_LINEAR),this.context.extTextureFilterAnisotropic&&r.texParameterf(r.TEXTURE_2D,this.context.extTextureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT,this.context.extTextureFilterAnisotropicMax),{texture:n,size:t}}bindRTT(t){let r=this.context.gl,i=t.size;if(!this._rttSharedFbo){let n=this.context.createFramebuffer(i,i,!0,!0),a=this.context.createRenderbuffer(r.DEPTH_STENCIL,i,i);n.depthAttachment.set(a),this._rttSharedFbo={fbo:n,depthRenderbuffer:a,size:i}}this._rttSharedFbo.size!==i&&(this.context.bindRenderbuffer.set(this._rttSharedFbo.depthRenderbuffer),r.renderbufferStorage(r.RENDERBUFFER,r.DEPTH_STENCIL,i,i),this.context.bindRenderbuffer.set(null),this._rttSharedFbo.fbo.width=i,this._rttSharedFbo.fbo.height=i,this._rttSharedFbo.size=i),this._rttSharedFbo.fbo.colorAttachment.set(t.texture.texture),this.context.bindFramebuffer.set(this._rttSharedFbo.fbo.framebuffer)}releaseRTT(t){this._rttObjectRecyclePool.push(t)}clearRTTPool(){for(let t of this._rttObjectRecyclePool)t.texture.destroy();this._rttObjectRecyclePool.length=0}destroyRTTResources(){if(this.clearRTTPool(),!this._rttSharedFbo)return;this._rttSharedFbo.fbo.colorAttachment.set(null),this._rttSharedFbo.fbo.depthAttachment.set(null);let t=this.context.gl;t.deleteRenderbuffer(this._rttSharedFbo.depthRenderbuffer),t.deleteFramebuffer(this._rttSharedFbo.fbo.framebuffer),this._rttSharedFbo=null}isPatternMissing(t){if(!t)return!1;if(!t.from||!t.to)return!0;let r=this.patternAtlas.getPattern(t.from.toString()),i=this.patternAtlas.getPattern(t.to.toString());return!r||!i}useProgram(t,r,i=!1,n=[]){var v;this.cache||(this.cache={});let a=!!this.style.map.terrain,o=this.style.projection,s=i?jm.projectionMercator:o.shaderPreludeCode,l=i?glt:o.shaderDefine,u=`/${i?xlt:o.shaderVariantName}`,f=r?r.cacheKey:"",c=this._showOverdrawInspector?"/overdraw":"",h=a?"/terrain":"",d=n?`/${n.join("/")}`:"",p=t+f+u+c+h+d;return(v=this.cache)[p]||(v[p]=new $Sr(this.context,jm[t],r,NEr[t],this._showOverdrawInspector,a,s,l,n)),this.cache[p]}setCustomLayerDefaults(){this.context.setCustomLayerDefaults()}setBaseState(){let t=this.context.gl;this.context.cullFace.set(!1),this.context.viewport.set([0,0,this.width,this.height]),this.context.blendEquation.set(t.FUNC_ADD)}initDebugOverlayCanvas(){if(this.debugOverlayCanvas==null){this.debugOverlayCanvas=document.createElement("canvas"),this.debugOverlayCanvas.width=512,this.debugOverlayCanvas.height=512;let t=this.context.gl;this.debugOverlayTexture=new ph(this.context,this.debugOverlayCanvas,t.RGBA)}}destroy(){var t,r,i;if(this._tileTextures){for(let n in this._tileTextures){let a=this._tileTextures[n];if(a)for(let o of a)o.destroy()}this._tileTextures={}}if(this.destroyRTTResources(),(t=this.layerOpacityFbo)==null||t.destroy(),this.layerOpacityFbo=null,this.tileExtentBuffer&&this.tileExtentBuffer.destroy(),this.debugBuffer&&this.debugBuffer.destroy(),this.rasterBoundsBuffer&&this.rasterBoundsBuffer.destroy(),this.rasterBoundsBufferPosOnly&&this.rasterBoundsBufferPosOnly.destroy(),this.viewportBuffer&&this.viewportBuffer.destroy(),this.tileBorderIndexBuffer&&this.tileBorderIndexBuffer.destroy(),this.quadTriangleIndexBuffer&&this.quadTriangleIndexBuffer.destroy(),this.tileExtentMesh&&((r=this.tileExtentMesh.vertexBuffer)==null||r.destroy()),this.tileExtentMesh&&((i=this.tileExtentMesh.indexBuffer)==null||i.destroy()),this.debugOverlayTexture&&this.debugOverlayTexture.destroy(),GSr(this.context),this.context.terrainUniformBuffer.destroy(),this.context.frameUniformBuffer.destroy(),this.cache){for(let n in this.cache){let a=this.cache[n];a!=null&&a.program&&this.context.gl.deleteProgram(a.program)}this.cache={}}this.context&&this.context.setDefault()}overLimit(){let{drawingBufferWidth:t,drawingBufferHeight:r}=this.context.gl;return this.width!==t||this.height!==r}},M3.MAX_TEXTURE_POOL_SIZE_PER_BUCKET=50,M3),rut=class extends Error{constructor(e,t){var r;super("WebGL2 is required to display this map. We are sorry, but it seems that your browser does not support WebGL2, a technology for rendering 3D graphics on the web. Read more on https://wiki.openstreetmap.org/wiki/This_map_requires_WebGL"),this.name="GPUInitializationError",this.requestedAttributes=e,this.statusMessage=(r=t==null?void 0:t.statusMessage)!=null?r:null}};iut=class{constructor(e){this._getHashParams=()=>new URLSearchParams(window.location.hash.replace("#","")),this._getCurrentHash=()=>{var r;let t=this._getHashParams();return this._hashName?(t.get(this._hashName)||"").split("/"):((r=[...t.keys()][0])!=null?r:"").split("/")},this._onHashChange=()=>{let t=this._getCurrentHash();if(!this._isValidHash(t))return!1;let r=this._map.dragRotate.isEnabled()&&this._map.touchZoomRotate.isEnabled()?+(t[3]||0):this._map.getBearing();return this._map.jumpTo({center:[+t[2],+t[1]],zoom:+t[0],bearing:r,pitch:+(t[4]||0)}),!0},this._updateHashUnthrottled=()=>{let t=window.location.href.replace(/(#.*)?$/,this.getHashString());window.history.replaceState(window.history.state,null,t)},this._removeHash=()=>{let t=this._getHashParams();if(this._hashName)t.delete(this._hashName);else{let a=Array.from(t.keys());a.length>0&&t.delete(a[0])}let r=decodeURIComponent(t.toString()).replace(/=&/g,"&").replace(/=$/g,""),i=r?`#${r}`:"",n=window.location.href.replace(/(#.+)?$/,i);n=n.replace("&&","&"),window.history.replaceState(window.history.state,null,n)},this._updateHash=Zoe(this._updateHashUnthrottled,300),this._hashName=e&&encodeURIComponent(e)}addTo(e){return this._map=e,addEventListener("hashchange",this._onHashChange,!1),this._map.on("moveend",this._updateHash),this}remove(){return removeEventListener("hashchange",this._onHashChange,!1),this._map.off("moveend",this._updateHash),clearTimeout(this._updateHash()),this._removeHash(),delete this._map,this}getHashString(e){let t=this._map.getCenter(),r=Math.round(this._map.getZoom()*100)/100,i=10**Math.ceil((r*Math.LN2+Math.log(512/360/.5))/Math.LN10),n=Math.round(t.lng*i)/i,a=Math.round(t.lat*i)/i,o=this._map.getBearing(),s=this._map.getPitch(),l="";if(l+=e?`/${n}/${a}/${r}`:`${r}/${a}/${n}`,(o||s)&&(l+=`/${Math.round(o*10)/10}`),s&&(l+=`/${Math.round(s)}`),this._hashName){let u=this._getHashParams();return u.set(this._hashName,l),`#${decodeURIComponent(u.toString()).replace(/=&/g,"&").replace(/=$/g,"")}`}return`#${l}`}_isValidHash(e){if(e.length<3||e.some(n=>isNaN(+n)))return!1;try{new Js(+e[2],+e[1])}catch(n){return!1}let t=+e[0],r=+(e[3]||0),i=+(e[4]||0);return t>=this._map.getMinZoom()&&t<=this._map.getMaxZoom()&&r>=-180&&r<=180&&i>=this._map.getMinPitch()&&i<=this._map.getMaxPitch()}},tD={linearity:.3,easing:sq(0,0,.3,1)},TCr=js({deceleration:2500,maxSpeed:1400},tD),MCr=js({deceleration:20,maxSpeed:1400},tD),SCr=js({deceleration:1e3,maxSpeed:360},tD),ECr=js({deceleration:1e3,maxSpeed:90},tD),kCr=js({deceleration:1e3,maxSpeed:360},tD),CCr=class{constructor(e){this._map=e,this.clear()}clear(){this._inertiaBuffer=[]}record(e){this._drainInertiaBuffer(),this._inertiaBuffer.push({time:Ku(),settings:e})}_drainInertiaBuffer(){let e=this._inertiaBuffer,t=Ku();for(;e.length>0&&t-e[0].time>160;)e.shift()}_getVelocityEntries(){let e=this._inertiaBuffer,t=Ku()-60,r=Math.max(0,e.length-2);for(;r>0&&e[r-1].time>=t;)r--;return e.slice(r)}_onMoveEnd(e){this._drainInertiaBuffer();let t=this._getVelocityEntries();if(t.length<2){this.clear();return}let r={zoom:0,bearing:0,pitch:0,roll:0,pan:new Jr(0,0),pinchAround:void 0,around:void 0};for(let{settings:a}of t)a.around&&(r.around=a.around),a.pinchAround&&(r.pinchAround=a.pinchAround);for(let{settings:a}of t.slice(1))r.zoom+=a.zoomDelta||0,r.bearing+=a.bearingDelta||0,r.pitch+=a.pitchDelta||0,r.roll+=a.rollDelta||0,a.panDelta&&r.pan._add(a.panDelta);if(!r.pan.mag()&&!r.zoom&&!r.bearing&&!r.pitch&&!r.roll){this.clear();return}let i=Ku()-t[0].time,n={};if(r.pan.mag()){let a=$C(r.pan.mag(),i,js({},TCr,e||{})),o=r.pan.mult(a.amount/r.pan.mag()),s=this._map._camera.cameraHelper.handlePanInertia(o,this._map._camera.transform);n.center=s.easingCenter,n.offset=s.easingOffset,WC(n,a)}if(r.zoom){let a=$C(r.zoom,i,MCr);n.zoom=Hd(this._map.getZoom()+a.amount,this._map.getZoomSnap(),a.amount),WC(n,a)}if(r.bearing){let a=$C(r.bearing,i,SCr);n.bearing=this._map.getBearing()+Pl(a.amount,-179,179),WC(n,a)}if(r.pitch){let a=$C(r.pitch,i,ECr);n.pitch=this._map.getPitch()+a.amount,WC(n,a)}if(r.roll){let a=$C(r.roll,i,kCr);n.roll=this._map.getRoll()+Pl(a.amount,-179,179),WC(n,a)}if(n.zoom||n.bearing){let a=r.pinchAround===void 0?r.around:r.pinchAround;n.around=a?this._map.unproject(a):this._map.getCenter()}return this.clear(),js(n,{noMoveStart:!0})}};DCr=class{constructor(e,t){this._map=e,this._clickTolerance=t.clickTolerance}reset(){delete this._mousedownPos}wheel(e){return this._firePreventable(new Ost(this._map,e))}mousedown(e,t){return this._mousedownPos=t,this._firePreventable(new $d(e.type,this._map,e))}mouseup(e){this._map.fire(new $d(e.type,this._map,e))}click(e,t){this._mousedownPos&&this._mousedownPos.dist(t)>=this._clickTolerance||this._map.fire(new $d(e.type,this._map,e))}dblclick(e){return this._firePreventable(new $d(e.type,this._map,e))}mouseover(e){this._map.fire(new $d(e.type,this._map,e))}mouseout(e){this._map.fire(new $d(e.type,this._map,e))}touchstart(e){return this._firePreventable(new ZC(e.type,this._map,e))}touchmove(e){this._map.fire(new ZC(e.type,this._map,e))}touchend(e){this._map.fire(new ZC(e.type,this._map,e))}touchcancel(e){this._map.fire(new ZC(e.type,this._map,e))}_firePreventable(e){if(this._map.fire(e),e.defaultPrevented)return{}}isEnabled(){return!0}isActive(){return!1}enable(){}disable(){}},FCr=class{constructor(e,t){this._map=e,this._clickTolerance=t.clickTolerance}reset(){this._delayContextMenu=!1,this._ignoreContextMenu=!0,delete this._contextMenuEvent,this._clearLongPress(),this._touchActive=!1}mousemove(e){this._map.fire(new $d(e.type,this._map,e))}mousedown(){this._delayContextMenu=!0,this._ignoreContextMenu=!1}mouseup(){this._delayContextMenu=!1,this._contextMenuEvent&&(this._map.fire(new $d("contextmenu",this._map,this._contextMenuEvent)),delete this._contextMenuEvent)}touchstart(e,t,r){if(this._clearLongPress(),this._touchActive=r.length>0,r.length!==1)return;this._longPressStart=t[0];let i=r[0];this._longPressTimer=setTimeout(()=>{this._longPressTimer=void 0;let n=new MouseEvent("contextmenu",{clientX:i.clientX,clientY:i.clientY,button:2,bubbles:!0,cancelable:!0});this._map.fire(new $d("contextmenu",this._map,n))},500)}touchmove(e,t,r){this._longPressTimer&&(r.length!==1||!this._longPressStart||t[0].dist(this._longPressStart)>this._clickTolerance)&&this._clearLongPress()}touchend(){this._touchActive=!1,this._clearLongPress()}touchcancel(){this._touchActive=!1,this._clearLongPress()}_clearLongPress(){this._longPressTimer&&(this._longPressTimer=(clearTimeout(this._longPressTimer),void 0)),this._longPressStart=void 0}contextmenu(e){if(this._touchActive){e.preventDefault();return}this._delayContextMenu?this._contextMenuEvent=e:this._ignoreContextMenu||this._map.fire(new $d(e.type,this._map,e)),this._map.listens("contextmenu")&&e.preventDefault()}isEnabled(){return!0}isActive(){return!1}enable(){}disable(){}},nut=class{constructor(e,t,r){this._map=e,this._tr=r,this._el=e.getCanvasContainer(),this._container=e.getContainer(),this._clickTolerance=t.clickTolerance||1,t.boxZoom&&typeof t.boxZoom=="object"&&(this._boxZoomEnd=t.boxZoom.boxZoomEnd)}isEnabled(){return!!this._enabled}isActive(){return!!this._active}enable(){this.isEnabled()||(this._enabled=!0)}disable(){this.isEnabled()&&(this._enabled=!1)}mousedown(e,t){this.isEnabled()&&e.shiftKey&&e.button===0&&(Cl.disableDrag(),this._startPos=this._lastPos=t,this._active=!0)}mousemoveWindow(e,t){if(!this._active)return;let r=t;if(this._lastPos.equals(r)||!this._box&&r.dist(this._startPos)n.fitScreenCoordinates(r,i,this._tr.bearing,{linear:!0})}}}keydown(e){this._active&&e.keyCode===27&&(this.reset(),this._fireEvent("boxzoomcancel",e))}reset(){this._active=!1,this._container.classList.remove("maplibregl-crosshair"),this._box&&(this._box=(this._box.remove(),null)),Cl.enableDrag(),delete this._startPos,delete this._lastPos}_fireEvent(e,t){return this._map.fire(new hoe(e,{originalEvent:t}))}};PCr=class{constructor(e){this.reset(),this.numTouches=e.numTouches}reset(){delete this.centroid,delete this.startTime,delete this.touches,this.aborted=!1}touchstart(e,t,r){(this.centroid||r.length>this.numTouches)&&(this.aborted=!0),!this.aborted&&(this.startTime===void 0&&(this.startTime=e.timeStamp),r.length===this.numTouches&&(this.centroid=LCr(t),this.touches=Moe(r,t)))}touchmove(e,t,r){if(this.aborted||!this.centroid)return;let i=Moe(r,t);for(let n in this.touches){let a=this.touches[n],o=i[n];(!o||o.dist(a)>30)&&(this.aborted=!0)}}touchend(e,t,r){if((!this.centroid||e.timeStamp-this.startTime>500)&&(this.aborted=!0),r.length===0){let i=!this.aborted&&this.centroid;if(this.reset(),i)return i}}},Soe=class{constructor(e){this.singleTap=new PCr(e),this.numTaps=e.numTaps,this.reset()}reset(){this.lastTime=1/0,delete this.lastTap,this.count=0,this.singleTap.reset()}touchstart(e,t,r){this.singleTap.touchstart(e,t,r)}touchmove(e,t,r){this.singleTap.touchmove(e,t,r)}touchend(e,t,r){let i=this.singleTap.touchend(e,t,r);if(i){let n=e.timeStamp-this.lastTime<500,a=!this.lastTap||this.lastTap.dist(i)<30;if((!n||!a)&&this.reset(),this.count++,this.lastTime=e.timeStamp,this.lastTap=i,this.count===this.numTaps)return this.reset(),i}}},zCr=class{constructor(e,t){this._tr=t,this._zoomIn=new Soe({numTouches:1,numTaps:2}),this._zoomOut=new Soe({numTouches:2,numTaps:1}),this.reset()}reset(){this._active=!1,this._zoomIn.reset(),this._zoomOut.reset()}touchstart(e,t,r){this._zoomIn.touchstart(e,t,r),this._zoomOut.touchstart(e,t,r)}touchmove(e,t,r){this._zoomIn.touchmove(e,t,r),this._zoomOut.touchmove(e,t,r)}touchend(e,t,r){let i=this._zoomIn.touchend(e,t,r),n=this._zoomOut.touchend(e,t,r),a=this._tr;if(i)return this._active=!0,e.preventDefault(),setTimeout(()=>this.reset(),0),{cameraAnimation:o=>o.easeTo({duration:300,zoom:Hd(a.zoom+1,o.getZoomSnap()),around:a.transform.isPointOnMapSurface(i)?a.unproject(i):void 0},{originalEvent:e})};if(n)return this._active=!0,e.preventDefault(),setTimeout(()=>this.reset(),0),{cameraAnimation:o=>o.easeTo({duration:300,zoom:Hd(a.zoom-1,o.getZoomSnap()),around:a.transform.isPointOnMapSurface(n)?a.unproject(n):void 0},{originalEvent:e})}}touchcancel(){this.reset()}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}},rD=class{constructor(e){this._enabled=!!e.enable,this._moveStateManager=e.moveStateManager,this._clickTolerance=e.clickTolerance||1,this._moveFunction=e.move,this._activateOnStart=!!e.activateOnStart,e.assignEvents(this),this.reset()}reset(e){this._active=!1,this._moved=!1,delete this._lastPoint,this._moveStateManager.endMove(e)}_move(...e){let t=this._moveFunction(...e);if(t.bearingDelta||t.pitchDelta||t.rollDelta||t.around||t.panDelta)return this._active=!0,t}dragStart(e,t){this.isEnabled()&&!this._lastPoint&&this._moveStateManager.isValidStartEvent(e)&&(this._moveStateManager.startMove(e),this._lastPoint=Array.isArray(t)?t[0]:t,this._activateOnStart&&this._lastPoint&&(this._active=!0))}dragMove(e,t){if(!this.isEnabled())return;let r=this._lastPoint;if(!r)return;if(e.preventDefault(),!this._moveStateManager.isValidMoveEvent(e)){this.reset(e);return}let i=Array.isArray(t)?t[0]:t;if(!(!this._moved&&i.dist(r)!0}),t=new BCr){this.mouseMoveStateManager=e,this.oneFingerTouchMoveStateManager=t}_executeRelevantHandler(e,t,r){if(e instanceof MouseEvent)return t(e);if(typeof TouchEvent<"u"&&e instanceof TouchEvent)return r(e)}startMove(e){this._executeRelevantHandler(e,t=>{this.mouseMoveStateManager.startMove(t)},t=>{this.oneFingerTouchMoveStateManager.startMove(t)})}endMove(e){this._executeRelevantHandler(e,t=>{this.mouseMoveStateManager.endMove(t)},t=>{this.oneFingerTouchMoveStateManager.endMove(t)})}isValidStartEvent(e){return!!this._executeRelevantHandler(e,t=>this.mouseMoveStateManager.isValidStartEvent(t),t=>this.oneFingerTouchMoveStateManager.isValidStartEvent(t))}isValidMoveEvent(e){return!!this._executeRelevantHandler(e,t=>this.mouseMoveStateManager.isValidMoveEvent(t),t=>this.oneFingerTouchMoveStateManager.isValidMoveEvent(t))}isValidEndEvent(e){return!!this._executeRelevantHandler(e,t=>this.mouseMoveStateManager.isValidEndEvent(t),t=>this.oneFingerTouchMoveStateManager.isValidEndEvent(t))}},AO=e=>{e.mousedown=e.dragStart,e.mousemoveWindow=e.dragMove,e.mouseup=e.dragEnd,e.contextmenu=t=>{t.preventDefault()}};GCr=class{constructor(e,t){this._clickTolerance=e.clickTolerance||1,this._map=t,this.reset()}reset(){this._active=!1,this._touches={},this._sum=new Jr(0,0)}_shouldBePrevented(e){return e<(this._map.cooperativeGestures.isEnabled()?2:1)}touchstart(e,t,r){return this._calculateTransform(e,t,r)}touchmove(e,t,r){if(this._active){if(this._shouldBePrevented(r.length)){this._map.cooperativeGestures.notifyGestureBlocked("touch_pan",e);return}return e.preventDefault(),this._calculateTransform(e,t,r)}}touchend(e,t,r){this._calculateTransform(e,t,r),this._active&&this._shouldBePrevented(r.length)&&this.reset()}touchcancel(){this.reset()}_calculateTransform(e,t,r){r.length>0&&(this._active=!0);let i=Moe(r,t),n=new Jr(0,0),a=new Jr(0,0),o=0;for(let l in i){let u=i[l],f=this._touches[l];f&&(n._add(u),a._add(u.sub(f)),o++,i[l]=u)}if(this._touches=i,this._shouldBePrevented(o)||!a.mag())return;let s=a.div(o);if(this._sum._add(s),!(this._sum.mag()=2,n=t.mag()>=2;if(!i&&!n)return;if(!i||!n)return this._firstMove===void 0&&(this._firstMove=r),r-this._firstMove<100&&void 0;let a=e.y>0==t.y>0;return loe(e)&&loe(t)&&a}},HCr={panStep:100,bearingStep:15,pitchStep:10},lut=class{constructor(e,t){this._tr=t;let r=HCr;this._panStep=r.panStep,this._bearingStep=r.bearingStep,this._pitchStep=r.pitchStep,this._rotationDisabled=!1}reset(){this._active=!1}keydown(e){if(e.altKey||e.ctrlKey||e.metaKey)return;let t=0,r=0,i=0,n=0,a=0;switch(e.keyCode){case 61:case 107:case 171:case 187:t=1;break;case 189:case 109:case 173:t=-1;break;case 37:e.shiftKey?r=-1:(e.preventDefault(),n=-1);break;case 39:e.shiftKey?r=1:(e.preventDefault(),n=1);break;case 38:e.shiftKey?i=1:(e.preventDefault(),a=-1);break;case 40:e.shiftKey?i=-1:(e.preventDefault(),a=1);break;default:return}return this._rotationDisabled&&(r=0,i=0),{cameraAnimation:o=>{let s=this._tr;o.easeTo({duration:300,easeId:"keyboardHandler",easing:jCr,zoom:t?Hd(s.zoom+t*(e.shiftKey?2:1),o.getZoomSnap()):s.zoom,bearing:s.bearing+r*this._bearingStep,pitch:s.pitch+i*this._pitchStep,offset:[-n*this._panStep,-a*this._panStep],center:s.center},{originalEvent:e})}}}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}disableRotation(){this._rotationDisabled=!0}enableRotation(){this._rotationDisabled=!1}};Lst=4.000244140625,uut=class{constructor(e,t,r){this._onTimeout=i=>{this._type="wheel",this._delta-=this._lastValue,this._active||this._start(i)},this._map=e,this._tr=r,this._triggerRenderFrame=t,this._delta=0,this._defaultZoomRate=.01,this._wheelZoomRate=.0022222222222222222}setZoomRate(e){this._defaultZoomRate=e}setWheelZoomRate(e){this._wheelZoomRate=e}isEnabled(){return!!this._enabled}isActive(){return!!this._active||this._finishTimeout!==void 0}isZooming(){return!!this._zooming}enable(e){this.isEnabled()||(this._enabled=!0,this._aroundCenter=!!e&&e.around==="center")}disable(){this.isEnabled()&&(this._enabled=!1)}_shouldBePrevented(e){return this._map.cooperativeGestures.isEnabled()?!(e.ctrlKey||this._map.cooperativeGestures.isBypassed(e)):!1}wheel(e){if(!this.isEnabled())return;if(this._shouldBePrevented(e)){this._map.cooperativeGestures.notifyGestureBlocked("wheel_zoom",e);return}let t=e.deltaMode===WheelEvent.DOM_DELTA_LINE?e.deltaY*40:e.deltaY,r=Ku(),i=r-(this._lastWheelEventTime||0);this._lastWheelEventTime=r,t!==0&&t%Lst==0?this._type="wheel":t!==0&&Math.abs(t)<4?this._type="trackpad":i>400?(this._type=null,this._lastValue=t,this._timeout=setTimeout(this._onTimeout,40,e)):this._type||(this._type=Math.abs(i*t)<200?"trackpad":"wheel",this._timeout&&(clearTimeout(this._timeout),this._timeout=null,t+=this._lastValue)),e.shiftKey&&t&&(t/=4),this._type&&(this._lastWheelEvent=e,this._delta-=t,this._active||this._start(e)),e.preventDefault()}_start(e){if(!this._delta)return;this._needsRerender=!1,this._active=!0,this.isZooming()||(this._zooming=!0),this._finishTimeout&&(clearTimeout(this._finishTimeout),delete this._finishTimeout);let t=Cl.mousePos(this._map.getCanvas(),e),r=this._tr;this._aroundPoint=this._aroundCenter?r.transform.locationToScreenPoint(Js.convert(r.center)):t,this._needsRerender||(this._needsRerender=!0,this._triggerRenderFrame())}renderFrame(){if(!this._needsRerender||(this._needsRerender=!1,!this.isActive()))return;let e=this._tr.transform;if(typeof this._lastExpectedZoom=="number"){let o=e.zoom-this._lastExpectedZoom;typeof this._startZoom=="number"&&(this._startZoom+=o),typeof this._targetZoom=="number"&&(this._targetZoom+=o)}if(this._delta!==0){let o=this._type==="wheel"&&Math.abs(this._delta)>Lst?this._wheelZoomRate:this._defaultZoomRate,s=2/(1+Math.exp(-Math.abs(this._delta*o)));this._delta<0&&s!==0&&(s=1/s);let l=typeof this._targetZoom=="number"?id(this._targetZoom):e.scale,u=e.applyConstrain(e.getCameraLngLat(),d0(l*s)).zoom,f=this._map.getZoomSnap();if(this._type==="wheel"&&f>0){let c=Hd(e.zoom,f);this._targetZoom=Hd(u,f,u-c)}else this._targetZoom=u;this._type==="wheel"&&(this._startZoom=e.zoom,this._easing=this._smoothOutEasing(200)),this._delta=0}let t=typeof this._targetZoom=="number"?this._targetZoom:e.zoom,r=this._startZoom,i=this._easing,n=!1,a;if(this._type==="wheel"&&r&&i){let o=Ku()-this._lastWheelEventTime,s=Math.min((o+5)/200,1),l=i(s);a=ic.number(r,t,l),s<1?this._needsRerender=!0:n=!0}else a=t,n=!0;return this._active=!0,n&&(this._active=!1,this._finishTimeout=setTimeout(()=>{this._zooming=!1,this._triggerRenderFrame(),delete this._targetZoom,delete this._lastExpectedZoom,delete this._finishTimeout},200)),this._lastExpectedZoom=a,{noInertia:!0,needsRenderFrame:!n,zoomDelta:a-e.zoom,around:this._aroundPoint,originalEvent:this._lastWheelEvent}}_smoothOutEasing(e){let t=lq;if(this._prevEase){let r=this._prevEase,i=(Ku()-r.start)/r.duration,n=r.easing(i+.01)-r.easing(i),a=.27/Math.sqrt(n*n+1e-4)*.01,o=Math.sqrt(.0729-a*a);t=sq(a,o,.25,1)}return this._prevEase={start:Ku(),duration:e,easing:t},t}reset(){this._active=!1,this._zooming=!1,delete this._targetZoom,delete this._lastExpectedZoom,this._finishTimeout&&(clearTimeout(this._finishTimeout),delete this._finishTimeout)}},fut=class{constructor(e,t){this._clickZoom=e,this._tapZoom=t}enable(){this._clickZoom.enable(),this._tapZoom.enable()}disable(){this._clickZoom.disable(),this._tapZoom.disable()}isEnabled(){return this._clickZoom.isEnabled()&&this._tapZoom.isEnabled()}isActive(){return this._clickZoom.isActive()||this._tapZoom.isActive()}},WCr=class{constructor(e,t){this._tr=t,this.reset()}reset(){this._active=!1}dblclick(e,t){return e.preventDefault(),{cameraAnimation:r=>{r.easeTo({duration:300,zoom:Hd(this._tr.zoom+(e.shiftKey?-1:1),r.getZoomSnap()),around:this._tr.transform.isPointOnMapSurface(t)?this._tr.unproject(t):void 0},{originalEvent:e})}}}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}},$Cr=class{constructor(){this._tap=new Soe({numTouches:1,numTaps:1}),this._zoomRate=1,this.reset()}setZoomRate(e){this._zoomRate=e!=null?e:1}reset(){this._active=!1,delete this._swipePoint,delete this._swipeTouch,delete this._tapTime,delete this._tapPoint,this._tap.reset()}touchstart(e,t,r){if(!this._swipePoint)if(!this._tapTime)this._tap.touchstart(e,t,r);else{let i=t[0],n=e.timeStamp-this._tapTime<500,a=this._tapPoint.dist(i)<30;!n||!a?this.reset():r.length>0&&(this._swipePoint=i,this._swipeTouch=r[0].identifier)}}touchmove(e,t,r){if(!this._tapTime)this._tap.touchmove(e,t,r);else if(this._swipePoint){if(r[0].identifier!==this._swipeTouch)return;let i=t[0],n=i.y-this._swipePoint.y;return this._swipePoint=i,e.preventDefault(),this._active=!0,{zoomDelta:n/128*this._zoomRate}}}touchend(e,t,r){if(this._tapTime)this._swipePoint&&r.length===0&&this.reset();else{let i=this._tap.touchend(e,t,r);i&&(this._tapTime=e.timeStamp,this._tapPoint=i)}}touchcancel(){this.reset()}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}},cut=class{constructor(e,t,r){this._el=e,this._mousePan=t,this._touchPan=r}enable(e){this._inertiaOptions=e||{},this._mousePan.enable(),this._touchPan.enable(),this._el.classList.add("maplibregl-touch-drag-pan")}disable(){this._mousePan.disable(),this._touchPan.disable(),this._el.classList.remove("maplibregl-touch-drag-pan")}isEnabled(){return this._mousePan.isEnabled()&&this._touchPan.isEnabled()}isActive(){return this._mousePan.isActive()||this._touchPan.isActive()}},hut=class{constructor(e,t,r,i){this._pitchWithRotate=e.pitchWithRotate,this._rollEnabled=e.rollEnabled,this._mouseRotate=t,this._mousePitch=r,this._mouseRoll=i}enable(){this._mouseRotate.enable(),this._pitchWithRotate&&this._mousePitch.enable(),this._rollEnabled&&this._mouseRoll.enable()}disable(){this._mouseRotate.disable(),this._mousePitch.disable(),this._mouseRoll.disable()}isEnabled(){return this._mouseRotate.isEnabled()&&(!this._pitchWithRotate||this._mousePitch.isEnabled())&&(!this._rollEnabled||this._mouseRoll.isEnabled())}isActive(){return this._mouseRotate.isActive()||this._mousePitch.isActive()||this._mouseRoll.isActive()}},dut=class{constructor(e,t,r,i){this._el=e,this._touchZoom=t,this._touchRotate=r,this._tapDragZoom=i,this._rotationDisabled=!1,this._enabled=!0}enable(e){this._touchZoom.enable(e),this._rotationDisabled||this._touchRotate.enable(e),this._tapDragZoom.enable(),this._el.classList.add("maplibregl-touch-zoom-rotate")}disable(){this._touchZoom.disable(),this._touchRotate.disable(),this._tapDragZoom.disable(),this._el.classList.remove("maplibregl-touch-zoom-rotate")}isEnabled(){return this._touchZoom.isEnabled()&&(this._rotationDisabled||this._touchRotate.isEnabled())&&this._tapDragZoom.isEnabled()}isActive(){return this._touchZoom.isActive()||this._touchRotate.isActive()||this._tapDragZoom.isActive()}setZoomRate(e){this._touchZoom.setZoomRate(e),this._tapDragZoom.setZoomRate(e)}setZoomThreshold(e){this._touchZoom.setZoomThreshold(e)}disableRotation(){this._rotationDisabled=!0,this._touchRotate.disable()}enableRotation(){this._rotationDisabled=!1,this._touchZoom.isEnabled()&&this._touchRotate.enable()}},put=class{constructor(e,t){this._bypassKey=navigator.userAgent.includes("Mac")?"metaKey":"ctrlKey",this._map=e,this._options=t,this._enabled=!1}isActive(){return!1}reset(){}_setupUI(){if(this._container)return;let e=this._map.getCanvasContainer();e.classList.add("maplibregl-cooperative-gestures"),this._container=Cl.create("div","maplibregl-cooperative-gesture-screen",e);let t=this._map._getUIString("CooperativeGesturesHandler.WindowsHelpText");this._bypassKey==="metaKey"&&(t=this._map._getUIString("CooperativeGesturesHandler.MacHelpText"));let r=this._map._getUIString("CooperativeGesturesHandler.MobileHelpText"),i=document.createElement("div");i.className="maplibregl-desktop-message",i.textContent=t,this._container.appendChild(i);let n=document.createElement("div");n.className="maplibregl-mobile-message",n.textContent=r,this._container.appendChild(n),this._container.setAttribute("aria-hidden","true")}_destroyUI(){this._container&&(this._container.remove(),this._map.getCanvasContainer().classList.remove("maplibregl-cooperative-gestures")),delete this._container}enable(){this._setupUI(),this._enabled=!0}disable(){this._enabled=!1,this._destroyUI()}isEnabled(){return this._enabled}isBypassed(e){return e[this._bypassKey]}notifyGestureBlocked(e,t){this._enabled&&(this._map.fire(new Gh("cooperativegestureprevented",{gestureType:e,originalEvent:t})),this._container.classList.add("maplibregl-show"),setTimeout(()=>{this._container.classList.remove("maplibregl-show")},100))}},YCr=class{constructor(e){this._camera=e}get transform(){return this._camera._requestedCameraState||this._camera.transform}get center(){return{lng:this.transform.center.lng,lat:this.transform.center.lat}}get zoom(){return this.transform.zoom}get pitch(){return this.transform.pitch}get bearing(){return this.transform.bearing}unproject(e){return this.transform.screenPointToLocation(Jr.convert(e),this._camera.terrain)}},nO=e=>e.zoom||e.drag||e.roll||e.pitch||e.rotate,XCr=class extends Wd{};ZCr=class{get _ownerDocument(){var e;return((e=this._el)==null?void 0:e.ownerDocument)||document}get _ownerWindow(){var e,t;return((t=(e=this._el)==null?void 0:e.ownerDocument)==null?void 0:t.defaultView)||window}constructor(e,t,r){this._terrainGesture={inFlight:!1,anchorElevation:null},this.handleWindowEvent=n=>{this.handleEvent(n,`${n.type}Window`)},this.handleEvent=(n,a)=>{if(n.type==="blur"){this.stop(!0);return}this._updatingCamera=!0;let o=n.type==="renderFrame"?void 0:n,s={needsRenderFrame:!1},l={},u={};for(let{handlerName:h,handler:d,allowed:p}of this._handlers){if(!d.isEnabled())continue;let v;if(this._blockedByActive(u,p,h))d.reset();else if(d[a||n.type]){if(Grt(n,a||n.type)){let y=Cl.mousePos(this._map.getCanvas(),n);v=d[a||n.type](n,y)}else if(Urt(n,a||n.type)){let y=n.touches,m=this._getMapTouches(y),w=Cl.touchPos(this._map.getCanvas(),m);v=d[a||n.type](n,w,m)}else Hrt(a||n.type)||(v=d[a||n.type](n));this.mergeHandlerResult(s,l,v,h,o),v!=null&&v.needsRenderFrame&&this._triggerRenderFrame()}(v||d.isActive())&&(u[h]=d)}let f={};for(let h in this._previousActiveHandlers)u[h]||(f[h]=o);this._previousActiveHandlers=u,(Object.keys(f).length||uoe(s))&&(this._changes.push([s,l,f]),this._triggerRenderFrame()),(Object.keys(u).length||uoe(s))&&this._camera.stop(!0),this._updatingCamera=!1;let{cameraAnimation:c}=s;c&&(this._inertia.clear(),this._fireEvents({},{},!0),this._changes=[],c(this._map))},this._map=e,this._camera=t,this._transformProvider=new YCr(this._camera),this._el=this._map.getCanvasContainer(),this._handlers=[],this._handlersById={},this._changes=[],this._inertia=new CCr(e),this._bearingSnap=r.bearingSnap,this._previousActiveHandlers={},this._eventsInProgress={},this._addDefaultHandlers(r);let i=this._el;this._listeners=[[i,"touchstart",{passive:!0}],[i,"touchmove",{passive:!1}],[i,"touchend",void 0],[i,"touchcancel",void 0],[i,"mousedown",void 0],[i,"mousemove",void 0],[i,"mouseup",void 0],[this._ownerDocument,"mousemove",{capture:!0}],[this._ownerDocument,"mouseup",void 0],[i,"mouseover",void 0],[i,"mouseout",void 0],[i,"dblclick",void 0],[i,"click",void 0],[i,"keydown",{capture:!1}],[i,"keyup",void 0],[i,"wheel",{passive:!1}],[i,"contextmenu",void 0],[this._ownerWindow,"blur",void 0]];for(let[n,a,o]of this._listeners)n.addEventListener(a,n===this._ownerDocument?this.handleWindowEvent:this.handleEvent,o)}destroy(){for(let[e,t,r]of this._listeners)e.removeEventListener(t,e===this._ownerDocument?this.handleWindowEvent:this.handleEvent,r)}_addDefaultHandlers(e){let t=this._map,r=t.getCanvasContainer();this._add("mapEvent",new DCr(t,e));let i=t.boxZoom=new nut(t,e,this._transformProvider);this._add("boxZoom",i),e.interactive&&e.boxZoom&&i.enable();let n=t.cooperativeGestures=new put(t,e.cooperativeGestures);this._add("cooperativeGestures",n),e.cooperativeGestures&&n.enable();let a=new zCr(t,this._transformProvider),o=new WCr(t,this._transformProvider);t.doubleClickZoom=new fut(o,a),this._add("tapZoom",a),this._add("clickZoom",o),e.interactive&&e.doubleClickZoom&&t.doubleClickZoom.enable();let s=new $Cr;this._add("tapDragZoom",s);let l=t.touchPitch=new sut(t);this._add("touchPitch",l),e.interactive&&e.touchPitch&&t.touchPitch.enable(e.touchPitch);let u=()=>this._camera.transform.centerPoint,f=NCr(e,u),c=VCr(e),h=UCr(e,u);t.dragRotate=new hut(e,f,c,h),this._add("mouseRotate",f,["mousePitch"]),this._add("mousePitch",c,["mouseRotate","mouseRoll"]),this._add("mouseRoll",h,["mousePitch"]),e.interactive&&e.dragRotate&&t.dragRotate.enable();let d=OCr(e),p=new GCr(e,t);t.dragPan=new cut(r,d,p),this._add("mousePan",d),this._add("touchPan",p,["touchZoom","touchRotate"]),e.interactive&&e.dragPan&&t.dragPan.enable(e.dragPan);let v=new out,y=new aut;t.touchZoomRotate=new dut(r,y,v,s),this._add("touchRotate",v,["touchPan","touchZoom"]),this._add("touchZoom",y,["touchPan","touchRotate"]),e.interactive&&e.touchZoomRotate&&t.touchZoomRotate.enable(e.touchZoomRotate),this._add("blockableMapEvent",new FCr(t,e),["touchPan"]);let m=t.scrollZoom=new uut(t,()=>this._triggerRenderFrame(),this._transformProvider);this._add("scrollZoom",m,["mousePan"]),e.interactive&&e.scrollZoom&&t.scrollZoom.enable(e.scrollZoom);let w=t.keyboard=new lut(t,this._transformProvider);this._add("keyboard",w),e.interactive&&e.keyboard&&t.keyboard.enable()}_add(e,t,r){this._handlers.push({handlerName:e,handler:t,allowed:r}),this._handlersById[e]=t}stop(e){if(!this._updatingCamera){for(let{handler:t}of this._handlers)t.reset();this._inertia.clear(),this._fireEvents({},{},e),this._changes=[]}}isActive(){for(let{handler:e}of this._handlers)if(e.isActive())return!0;return!1}isZooming(){return!!this._eventsInProgress.zoom||this._map.scrollZoom.isZooming()}isRotating(){return!!this._eventsInProgress.rotate}isMoving(){return!!nO(this._eventsInProgress)||this.isZooming()}_blockedByActive(e,t,r){for(let i in e)if(i!==r&&!(t!=null&&t.includes(i)))return!0;return!1}_getMapTouches(e){let t=[];for(let r of e){let i=r.target;this._el.contains(i)&&t.push(r)}return t}mergeHandlerResult(e,t,r,i,n){if(!r)return;js(e,r);let a={handlerName:i,originalEvent:r.originalEvent||n};r.zoomDelta!==void 0&&(t.zoom=a),r.panDelta!==void 0&&(t.drag=a),r.rollDelta!==void 0&&(t.roll=a),r.pitchDelta!==void 0&&(t.pitch=a),r.bearingDelta!==void 0&&(t.rotate=a)}_applyChanges(){let e={},t={},r={};for(let[i,n,a]of this._changes)i.panDelta&&(e.panDelta=(e.panDelta||new Jr(0,0))._add(i.panDelta)),i.zoomDelta&&(e.zoomDelta=(e.zoomDelta||0)+i.zoomDelta),i.bearingDelta&&(e.bearingDelta=(e.bearingDelta||0)+i.bearingDelta),i.pitchDelta&&(e.pitchDelta=(e.pitchDelta||0)+i.pitchDelta),i.rollDelta&&(e.rollDelta=(e.rollDelta||0)+i.rollDelta),i.around!==void 0&&(e.around=i.around),i.pinchAround!==void 0&&(e.pinchAround=i.pinchAround),i.noInertia&&(e.noInertia=i.noInertia),js(t,n),js(r,a);this._updateMapTransform(e,t,r),this._changes=[]}_updateMapTransform(e,t,r){let i=this._map.terrain;if(!uoe(e)){this._fireEvents(t,r,!0);return}let n=this._camera.getTransformForUpdate();this._camera.stop(!0);let{panDelta:a,zoomDelta:o,bearingDelta:s,pitchDelta:l,rollDelta:u}=e,{around:f,aroundOnSurface:c}=this._resolveAround(e,i,n),h=i?this._terrainGestureElevation(i,f,c,n,t):void 0,d={panDelta:a,zoomDelta:o,rollDelta:u,pitchDelta:l,bearingDelta:s,around:f,aroundElevation:h};this._camera.cameraHelper.useGlobeControls&&!n.isPointOnMapSurface(f)&&(f=n.centerPoint);let p=this._computePreZoomAroundLoc(n,f,a,h);this._handleMapControls({terrain:i,tr:n,deltasForHelper:d,preZoomAroundLoc:p,combinedEventsInProgress:t,panDelta:a}),this._camera.applyUpdatedTransform(n),this._map._update(),e.noInertia||this._inertia.record(e),this._fireEvents(t,r,!0)}_resolveAround(e,t,r){let i=e.pinchAround===void 0?e.around:e.pinchAround;return i||(i=this._camera.transform.centerPoint),t&&!r.isPointOnMapSurface(i)?{around:r.centerPoint,aroundOnSurface:!1}:{around:i,aroundOnSurface:!0}}_terrainGestureElevation(e,t,r,i,n){if(!r)return;if(this._terrainGesture.anchorElevation===null&&(n.drag||n.zoom)){let o=i.screenTerrainPointToMercatorCoordinate(t,e);this._terrainGesture.anchorElevation=o?o.z:void 0}let a=this._terrainGesture.anchorElevation;if(a!=null&&!(t.distSqr(i.centerPoint)<.01)&&!(a-i.elevation>=.9*(i.getCameraAltitude()-i.elevation)))return a}_computePreZoomAroundLoc(e,t,r,i){if(t.distSqr(e.centerPoint)<.01)return e.center;let n=r?t.sub(r):t;return i===void 0?e.screenPointToLocation(n):e.screenPointToLocationAtElevation(n,i)}_handleMapControls({terrain:e,tr:t,deltasForHelper:r,preZoomAroundLoc:i,combinedEventsInProgress:n,panDelta:a}){let o=this._camera.cameraHelper;if(o.handleMapControlsRollPitchBearingZoom(r,t),!e&&!o.useGlobeControls&&!t.isPointOnMapSurface(r.around)){a&&t.setCenter(t.screenPointToLocation(t.centerPoint.sub(a)));return}if(!e){o.handleMapControlsPan(r,t,i);return}if(!this._terrainGesture.inFlight){this._terrainGesture.inFlight=!0,this._camera.elevationFreeze=!0,o.handleMapControlsPan(r,t,i);return}if(!o.useGlobeControls&&r.aroundElevation===void 0&&n.drag&&a){t.setCenter(t.screenPointToLocation(t.centerPoint.sub(a)));return}o.handleMapControlsPan(r,t,i)}_fireEvents(e,t,r){let i=nO(this._eventsInProgress),n=nO(e),a={};for(let f in e){let{originalEvent:c}=e[f];this._eventsInProgress[f]||(a[`${f}start`]=c),this._eventsInProgress[f]=e[f]}!i&&n&&this._fireEvent("movestart",n.originalEvent);for(let f in a)this._fireEvent(f,a[f]);n&&this._fireEvent("move",n.originalEvent);for(let f in e){let{originalEvent:c}=e[f];this._fireEvent(f,c)}let o={},s;for(let f in this._eventsInProgress){let{handlerName:c,originalEvent:h}=this._eventsInProgress[f];this._handlersById[c].isActive()||(delete this._eventsInProgress[f],s=t[c]||h,o[`${f}end`]=s)}for(let f in o)this._fireEvent(f,o[f]);let l=nO(this._eventsInProgress),u=(i||n)&&!l;if(u&&this._terrainGesture.inFlight){this._camera.elevationFreeze=!1,this._terrainGesture={inFlight:!1,anchorElevation:null};let f=this._camera.getTransformForUpdate();this._map.getCenterClampedToGround()&&f.recalculateZoomAndCenter(this._map.terrain),this._camera.applyUpdatedTransform(f)}if(r&&u){this._updatingCamera=!0;let f=this._inertia._onMoveEnd(this._map.dragPan._inertiaOptions),c=h=>h!==0&&-this._bearingSnap{delete this._frameId,this.handleEvent(new XCr("renderFrame",{timeStamp:e})),this._applyChanges()})}_triggerRenderFrame(){this._frameId===void 0&&(this._frameId=this._requestFrame())}},KCr=class extends ah{constructor(e){var t,r,i;super(),this._renderFrameCallback=()=>{let n=Math.min((Ku()-this._easeStart)/this._easeOptions.duration,1);this._onEaseFrame(this._easeOptions.easing(n)),n<1&&this._easeFrameId?this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback):this.stop()},this.transform=new vO,this.cameraHelper=new mO,e.minZoom!==void 0&&this.transform.setMinZoom(e.minZoom),e.maxZoom!==void 0&&this.transform.setMaxZoom(e.maxZoom),e.minPitch!==void 0&&this.transform.setMinPitch(e.minPitch),e.maxPitch!==void 0&&this.transform.setMaxPitch(e.maxPitch),e.renderWorldCopies!==void 0&&this.transform.setRenderWorldCopies(e.renderWorldCopies),e.transformConstrain!==null&&this.transform.setConstrainOverride(e.transformConstrain),this._moving=!1,this._zooming=!1,this._bearingSnap=e.bearingSnap,this._zoomSnap=e.zoomSnap,this._requestRenderFrame=e.requestRenderFrame,this._cancelRenderFrame=e.cancelRenderFrame,this.terrain=e.terrain,this._centerClampedToGround=(t=e.centerClampedToGround)!=null?t:!0,this.transformCameraUpdate=(r=e.transformCameraUpdate)!=null?r:null,this._stopHandlers=(i=e.stopHandlers)!=null?i:(()=>{}),this.on("moveend",()=>{delete this._requestedCameraState})}setTerrain(e){this.terrain=e,this.applyTerrainChange()}migrateProjection(e,t){if(e.apply(this.transform,!0),this.transform=e,this.cameraHelper=t,this._requestedCameraState){let r=e.clone();r.apply(this._requestedCameraState,!0),this._requestedCameraState=r}}getCenter(){return new Js(this.transform.center.lng,this.transform.center.lat)}setCenter(e,t){return this.jumpTo({center:e},t)}getCenterElevation(){return this.transform.elevation}setCenterElevation(e,t){return this.jumpTo({elevation:e},t),this}getCenterClampedToGround(){return this._centerClampedToGround}setCenterClampedToGround(e){this._centerClampedToGround=e}panBy(e,t,r){return e=Jr.convert(e).mult(-1),this.panTo(this.transform.center,js({offset:e},t),r)}panTo(e,t,r){return this.easeTo(js({center:e},t),r)}getZoom(){return this.transform.zoom}setZoom(e,t){return this.jumpTo({zoom:e},t),this}zoomTo(e,t,r){return this.easeTo(js({zoom:e},t),r)}zoomIn(e,t){return this.zoomTo(Hd(this.getZoom()+1,this._zoomSnap),e,t),this}zoomOut(e,t){return this.zoomTo(Hd(this.getZoom()-1,this._zoomSnap),e,t),this}getVerticalFieldOfView(){return this.transform.fov}setVerticalFieldOfView(e,t){return e!=this.transform.fov&&(this.applyTransformChange(r=>r.setFov(e)),this.fire(new ol("movestart",t)).fire(new ol("move",t)).fire(new ol("moveend",t))),this}getBearing(){return this.transform.bearing}setZoomSnap(e){return this._zoomSnap=e,this}getZoomSnap(){return this._zoomSnap}setBearing(e,t){return this.jumpTo({bearing:e},t),this}getPadding(){return this.transform.padding}setPadding(e,t){return this.jumpTo({padding:e},t),this}rotateTo(e,t,r){return this.easeTo(js({bearing:e},t),r)}resetNorth(e,t){return this.rotateTo(0,js({duration:1e3},e),t),this}resetNorthPitch(e,t){return this.easeTo(js({bearing:0,pitch:0,roll:0,duration:1e3},e),t),this}snapToNorth(e,t){return Math.abs(this.getBearing()){p.easeFunc(v),this.terrain&&!e.freezeElevation&&this._updateElevation(v,r),this.applyUpdatedTransform(r),this._fireMoveEvents(t)},v=>{this.terrain&&e.freezeElevation?this._finalizeElevation():this.elevationFreeze=!1,this._afterEase(t,v)},e),this}_prepareEase(e,t,r={}){this._moving=!0,!t&&!r.moving&&this.fire(new ol("movestart",e)),this._zooming&&!r.zooming&&this.fire(new ol("zoomstart",e)),this._rotating&&!r.rotating&&this.fire(new ol("rotatestart",e)),this._pitching&&!r.pitching&&this.fire(new ol("pitchstart",e)),this._rolling&&!r.rolling&&this.fire(new ol("rollstart",e))}_prepareElevation(e,t){this._elevationCenter=e,this._elevationStart=t.elevation,this._elevationTarget=this.terrain.getElevationForLngLat(e,t),this.elevationFreeze=!0}_updateElevation(e,t){(this._elevationStart===void 0||this._elevationCenter===void 0)&&this._prepareElevation(t.center,t),t.setMinElevationForCurrentTile(this.terrain.getMinTileElevationForLngLatZoom(this._elevationCenter,t.tileZoom));let r=this.terrain.getElevationForLngLat(this._elevationCenter,t);if(e<1&&r!==this._elevationTarget){let i=this._elevationTarget-this._elevationStart,n=(r-(i*e+this._elevationStart))/(1-e);this._elevationStart+=e*(i-n),this._elevationTarget=r}t.setElevation(ic.number(this._elevationStart,this._elevationTarget,e))}_finalizeElevation(){this.elevationFreeze=!1,this.getCenterClampedToGround()&&this.transform.recalculateZoomAndCenter(this.terrain)}applyTerrainChange(){if(this.elevationFreeze)return;let e=this.transform;e.setMinElevationForCurrentTile(this.terrain?this.terrain.getMinTileElevationForLngLatZoom(e.center,e.tileZoom):0),this.getCenterClampedToGround()&&e.setElevation(this.terrain?this.terrain.getElevationForLngLat(e.center,e):0)}getTransformForUpdate(){return!this.transformCameraUpdate&&!this.terrain?this.transform:(this._requestedCameraState||(this._requestedCameraState=this.transform.clone()),this._requestedCameraState)}_elevateCameraIfInsideTerrain(e){if(!this.terrain&&e.elevation>=0&&e.pitch<=90)return{};let t=e.getCameraLngLat(),r=e.getCameraAltitude(),i=this.terrain?this.terrain.getElevationForLngLatZoom(t,e.zoom):0;if(rthis._elevateCameraIfInsideTerrain(i)),this.transformCameraUpdate&&t.push(i=>this.transformCameraUpdate(i)),!t.length)return;let r=e.clone();for(let i of t){let n=r.clone(),{center:a,zoom:o,roll:s,pitch:l,bearing:u,elevation:f}=i(n);a&&n.setCenter(a),f!==void 0&&n.setElevation(f),o!==void 0&&n.setZoom(o),s!==void 0&&n.setRoll(s),l!==void 0&&n.setPitch(l),u!==void 0&&n.setBearing(u),r.apply(n,!1)}this.transform.apply(r,!1)}applyTransformChange(e){let t=this._requestedCameraState!==void 0,r=this.getTransformForUpdate();e(r),this.applyUpdatedTransform(r),t||delete this._requestedCameraState}_fireMoveEvents(e){this.fire(new ol("move",e)),this._zooming&&this.fire(new ol("zoom",e)),this._rotating&&this.fire(new ol("rotate",e)),this._pitching&&this.fire(new ol("pitch",e)),this._rolling&&this.fire(new ol("roll",e))}_afterEase(e,t){if(this._easeId&&t&&this._easeId===t)return;delete this._easeId;let r=this._zooming,i=this._rotating,n=this._pitching,a=this._rolling;this._moving=!1,this._zooming=!1,this._rotating=!1,this._pitching=!1,this._rolling=!1,this._padding=!1,r&&this.fire(new ol("zoomend",e)),i&&this.fire(new ol("rotateend",e)),n&&this.fire(new ol("pitchend",e)),a&&this.fire(new ol("rollend",e)),this.fire(new ol("moveend",e))}flyTo(e,t){if(!e.essential&&Yd.prefersReducedMotion){let k=Y5(e,["center","zoom","bearing","pitch","roll","elevation","padding"]);return this.jumpTo(k,t)}this.stop(),e=js({offset:[0,0],speed:1.2,curve:1.42,easing:lq},e),e.zoom!==void 0&&this._zoomSnap&&(e.zoom=Hd(e.zoom,this._zoomSnap));let r=this.getTransformForUpdate(),i=r.bearing,n=r.pitch,a=r.roll,o=r.padding,s=e.bearing===void 0?i:this._normalizeBearing(e.bearing,i),l=e.pitch===void 0?n:+e.pitch,u=e.roll===void 0?a:this._normalizeBearing(e.roll,a),f=e.padding===void 0?r.padding:e.padding,c=Jr.convert(e.offset),h=r.centerPoint.add(c),d=r.screenPointToLocation(h),p=this.cameraHelper.handleFlyTo(r,{bearing:s,pitch:l,roll:u,padding:f,locationAtOffset:d,offsetAsPoint:c,center:e.center,minZoom:e.minZoom,zoom:e.zoom}),v=e.curve,y=Math.max(r.width,r.height),m=y/p.scaleOfZoom,w=p.pixelPathLength,_=y/p.scaleOfMinZoom;v=Math.min(v,Math.sqrt(_/w*2));let b=v*v;function M(k){let D=(m*m-y*y+(k?-1:1)*b*b*w*w)/(2*(k?m:y)*b*w);return Math.log(Math.sqrt(D*D+1)-D)}function x(k){return(Math.exp(k)-Math.exp(-k))/2}function T(k){return(Math.exp(k)+Math.exp(-k))/2}function A(k){return x(k)/T(k)}let g=M(!1),E=function(k){return T(g)/T(g+v*k)},S=function(k){return y*((T(g)*A(g+v*k)-x(g))/b)/w},C=(M(!0)-g)/v;if(Math.abs(w)<2e-6||!isFinite(C)){if(Math.abs(y-m)<1e-6)return this.easeTo(e,t);let k=m0,E=D=>Math.exp(k*v*D)}if(e.duration!==void 0)e.duration=+e.duration;else{let k=e.screenSpeed===void 0?+e.speed:+e.screenSpeed/v;e.duration=1e3*C/k}return e.maxDuration&&e.duration>e.maxDuration&&(e.duration=0),this._zooming=!0,this._rotating=i!==s,this._pitching=l!==n,this._rolling=u!==a,this._padding=!r.isPaddingEqual(f),this._prepareEase(t,!1),this.terrain&&this._prepareElevation(p.targetCenter,r),this._ease(k=>{let D=k*C,F=1/E(D),P=S(D);this._rotating&&r.setBearing(ic.number(i,s,k)),this._pitching&&r.setPitch(ic.number(n,l,k)),this._rolling&&r.setRoll(ic.number(a,u,k)),this._padding&&(r.interpolatePadding(o,f,k),h=r.centerPoint.add(c)),p.easeFunc(k,F,P,h),this.terrain&&!e.freezeElevation&&this._updateElevation(k,r),this.applyUpdatedTransform(r),this._fireMoveEvents(t)},()=>{this.terrain&&e.freezeElevation?this._finalizeElevation():this.elevationFreeze=!1,this._afterEase(t)},e),this}isEasing(){return!!this._easeFrameId}stop(e){return this._stop(e)}_stop(e,t){if(this._easeFrameId&&(this._cancelRenderFrame(this._easeFrameId),delete this._easeFrameId,delete this._onEaseFrame),this._onEaseEnd){let r=this._onEaseEnd;delete this._onEaseEnd,r.call(this,t)}return e||this._stopHandlers(),this}_ease(e,t,r){r.animate===!1||r.duration===0?(e(1),t()):(this._easeStart=Ku(),this._easeOptions=r,this._onEaseFrame=e,this._onEaseEnd=t,this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback))}_normalizeBearing(e,t){e=Tp(e,-180,180);let r=Math.abs(e-t);return Math.abs(e-360-t)MapLibre
'},mut=class{constructor(e=vut){this._toggleAttribution=()=>{this._container.classList.contains("maplibregl-compact")&&(this._container.classList.contains("maplibregl-compact-show")?(this._container.setAttribute("open",""),this._container.classList.remove("maplibregl-compact-show")):(this._container.classList.add("maplibregl-compact-show"),this._container.removeAttribute("open")))},this._updateData=t=>{t&&(t.type==="terrain"||t.dataType==="style"||t.dataType==="source"&&(t.sourceDataType==="metadata"||t.sourceDataType==="visibility"))&&this._updateAttributions()},this._updateCompact=()=>{this._map.getCanvasContainer().offsetWidth<=640||this._compact?this._compact===!1?this._container.setAttribute("open",""):!this._container.classList.contains("maplibregl-compact")&&!this._container.classList.contains("maplibregl-attrib-empty")&&(this._container.setAttribute("open",""),this._container.classList.add("maplibregl-compact","maplibregl-compact-show")):(this._container.setAttribute("open",""),this._container.classList.contains("maplibregl-compact")&&this._container.classList.remove("maplibregl-compact","maplibregl-compact-show"))},this._updateCompactMinimize=()=>{this._container.classList.contains("maplibregl-compact")&&this._container.classList.contains("maplibregl-compact-show")&&this._container.classList.remove("maplibregl-compact-show")},this.options=e}getDefaultPosition(){return"bottom-right"}onAdd(e){return this._map=e,this._compact=this.options.compact,this._container=Cl.create("details","maplibregl-ctrl maplibregl-ctrl-attrib"),this._compactButton=Cl.create("summary","maplibregl-ctrl-attrib-button",this._container),this._compactButton.addEventListener("click",this._toggleAttribution),this._setElementTitle(this._compactButton,"ToggleAttribution"),this._innerContainer=Cl.create("div","maplibregl-ctrl-attrib-inner",this._container),this._updateAttributions(),this._updateCompact(),this._map.on("styledata",this._updateData),this._map.on("sourcedata",this._updateData),this._map.on("terrain",this._updateData),this._map.on("resize",this._updateCompact),this._map.on("drag",this._updateCompactMinimize),this._container}onRemove(){this._container.remove(),this._map.off("styledata",this._updateData),this._map.off("sourcedata",this._updateData),this._map.off("terrain",this._updateData),this._map.off("resize",this._updateCompact),this._map.off("drag",this._updateCompactMinimize),this._map=void 0,this._compact=void 0,this._attribHTML=void 0}_setElementTitle(e,t){let r=this._map._getUIString(`AttributionControl.${t}`);e.title=r,e.setAttribute("aria-label",r)}_updateAttributions(){if(!this._map.style)return;let e=[];if(this.options.customAttribution&&(Array.isArray(this.options.customAttribution)?e=e.concat(this.options.customAttribution.map(i=>typeof i=="string"?i:"")):typeof this.options.customAttribution=="string"&&e.push(this.options.customAttribution)),this._map.style.stylesheet){let i=this._map.style.stylesheet;this.styleOwner=i.owner,this.styleId=i.id}let t=this._map.style.tileManagers;for(let i in t){let n=t[i];if(n.used||n.usedForTerrain){let a=n.getSource();a.attribution&&!e.includes(a.attribution)&&e.push(a.attribution)}}e=e.filter(i=>String(i).trim()),e.sort((i,n)=>i.length-n.length),e=e.filter((i,n)=>{for(let a=n+1;a{let t=this._container.children;if(t.length){let r=t[0];this._map.getCanvasContainer().offsetWidth<=640||this._compact?this._compact!==!1&&r.classList.add("maplibregl-compact"):r.classList.remove("maplibregl-compact")}},this.options=e}getDefaultPosition(){return"bottom-left"}onAdd(e){var r;this._map=e,this._compact=(r=this.options)==null?void 0:r.compact,this._container=Cl.create("div","maplibregl-ctrl");let t=Cl.create("a","maplibregl-ctrl-logo");return t.target="_blank",t.rel="noopener nofollow",t.href="https://maplibre.org/",t.setAttribute("aria-label",this._map._getUIString("LogoControl.Title")),t.setAttribute("rel","noopener nofollow"),this._container.appendChild(t),this._container.style.display="block",this._map.on("resize",this._updateCompact),this._updateCompact(),this._container}onRemove(){this._container.remove(),this._map.off("resize",this._updateCompact),this._map=void 0,this._compact=void 0}},JCr=class{constructor(){this._queue=[],this._id=0,this._cleared=!1,this._currentlyRunning=!1}add(e){let t=++this._id;return this._queue.push({callback:e,id:t,cancelled:!1}),t}remove(e){let t=this._currentlyRunning,r=t?this._queue.concat(t):this._queue;for(let i of r)if(i.id===e){i.cancelled=!0;return}}run(e=0){if(this._currentlyRunning)throw Error("Attempting to run(), but is already running.");let t=this._currentlyRunning=this._queue;this._queue=[];let r=!1,i;for(let n of t)if(!n.cancelled){try{n.callback(e)}catch(a){r||(r=!0,i=a)}if(this._cleared)break}if(this._cleared=!1,this._currentlyRunning=!1,r)throw i}clear(){this._currentlyRunning&&(this._cleared=!0),this._queue=[]}},Pst=["none","zoom","sourceTiles","visibleLayers","revision"],QCr=class{constructor(e,t,r,i){this._tileKeys=e.map(n=>n.key).sort().join(),this._revision=t,this._zoom=r,this._visibleLayerIds=i}difference(e){return this._revision===(e==null?void 0:e._revision)?this._visibleLayerIds===e._visibleLayerIds?this._tileKeys===e._tileKeys?this._zoom===e._zoom?"none":"zoom":"sourceTiles":"visibleLayers":"revision"}},aT={background:!0,fill:!0,line:!0,raster:!0,hillshade:!0,"color-relief":!0},eDr=class{constructor(e,t){this.needsFollowUpFrame=!1,this.painter=e,this.terrain=t,this.rttSize=t.tileManager.tileSize*t.qualityFactor}getTexture(e){return e.getRTT(this._stacks.length-1).texture}prepareForRender(e,t){let r=t!==this._lastPrepareZoom;this._lastPrepareZoom=t,this._stacks=[],this._prevType=null,this._rttTiles=[],this._renderableTiles=this.terrain.tileManager.getRenderableTiles(),this._renderableLayerIds=e._order.filter(s=>!e._layers[s].isHidden(t));let i=this._renderableLayerIds.join(),n=new Set;for(let s of this._renderableLayerIds){let l=e._layers[s],u=l.source;u&&aT[l.type]&&n.add(u)}this._coordsAscending={},this._rttFingerprints={};for(let s of n){let l=e.tileManagers[s];if(!l)continue;this._coordsAscending[s]={};let u=this._coordsAscending[s],f=l.getSource(),c=f instanceof uT?f.terrainTileRanges:null;for(let p of l.getVisibleCoordinates()){let v=this.terrain.tileManager.getTerrainCoords(p,c);for(let y in v)u[y]||(u[y]=[]),u[y].push(v[y])}this._rttFingerprints[s]={};let h=this._rttFingerprints[s],d=l.getState().revision;for(let p in u)h[p]=new QCr(u[p],d,t,i)}this.needsFollowUpFrame=!1;let a=r||this.painter.options.moving,o=!1;for(let s of this._renderableTiles){let l=this._textureDifference(s);l!=="none"&&(l==="zoom"&&a||l==="visibleLayers"&&r?this.needsFollowUpFrame=!0:l==="zoom"||l==="sourceTiles"?(o?this.needsFollowUpFrame=!0:s.releaseRTT(this.painter),o=!0):s.releaseRTT(this.painter))}}_textureDifference(e){let t="none";for(let r in this._rttFingerprints){let i=this._rttFingerprints[r][e.tileID.key];if(!i)continue;let n=i.difference(e.rttFingerprint[r]);Pst.indexOf(n)>Pst.indexOf(t)&&(t=n)}return t}renderLayer(e,t){if(e.isHidden(this.painter.transform.zoom))return!1;let r=e.type,i=this.painter,n=this._renderableLayerIds[this._renderableLayerIds.length-1]===e.id;if(aT[r]&&((!this._prevType||!aT[this._prevType])&&this._stacks.push([]),this._prevType=r,this._stacks[this._stacks.length-1].push(e.id),!n))return!0;if(aT[this._prevType]||aT[r]&&n){this._prevType=r;let a=this._stacks.length-1,o=this._stacks[a]||[];t.isRenderingToTexture=!0;for(let s of this._renderableTiles){if(this._rttTiles.push(s),s.getRTT(a))continue;let l=s.acquireRTT(i,a,this.rttSize);i.bindRTT(l),i.context.clear({color:Ol.transparent,stencil:0}),i.currentStencilSource=void 0;for(let u of o){let f=i.style._layers[u],c=f.source?this._coordsAscending[f.source][s.tileID.key]:[s.tileID];i.context.viewport.set([0,0,this.rttSize,this.rttSize]),i.renderTileClippingMasks(f,c),i.renderLayer(i,i.style.tileManagers[f.source],f,c,t),f.source&&(s.rttFingerprint[f.source]=this._rttFingerprints[f.source][s.tileID.key])}l.texture.generateMipmap()}return t.isRenderingToTexture=!1,gCr(this.painter,this.terrain,this._rttTiles,t),this._rttTiles=[],aT[r]}return!1}},tDr={"AttributionControl.ToggleAttribution":"Toggle attribution","AttributionControl.MapFeedback":"Map feedback","FullscreenControl.Enter":"Enter fullscreen","FullscreenControl.Exit":"Exit fullscreen","GeolocateControl.FindMyLocation":"Find my location","GeolocateControl.LocationNotAvailable":"Location not available","LogoControl.Title":"MapLibre logo","Map.Title":"Map","Marker.Title":"Map marker","NavigationControl.ResetBearing":"Drag to rotate map, click to reset north","NavigationControl.ZoomIn":"Zoom in","NavigationControl.ZoomOut":"Zoom out","Popup.Close":"Close popup","ScaleControl.Feet":"ft","ScaleControl.Meters":"m","ScaleControl.Kilometers":"km","ScaleControl.Miles":"mi","ScaleControl.NauticalMiles":"nm","GlobeControl.Enable":"Enable globe","GlobeControl.Disable":"Disable globe","TerrainControl.Enable":"Enable terrain","TerrainControl.Disable":"Disable terrain","CooperativeGesturesHandler.WindowsHelpText":"Use Ctrl + scroll to zoom the map","CooperativeGesturesHandler.MacHelpText":"Use \u2318 + scroll to zoom the map","CooperativeGesturesHandler.MobileHelpText":"Use two fingers to move the map"},rDr=Bst,zst={hash:!1,interactive:!0,bearingSnap:7,zoomSnap:0,attributionControl:vut,maplibreLogo:!1,refreshExpiredTiles:!0,canvasContextAttributes:{antialias:!1,preserveDrawingBuffer:!1,powerPreference:"high-performance",failIfMajorPerformanceCaveat:!1,desynchronized:!1,contextType:void 0},scrollZoom:!0,minZoom:-2,maxZoom:22,minPitch:0,maxPitch:60,boxZoom:!0,dragRotate:!0,dragPan:!0,keyboard:!0,doubleClickZoom:!0,touchZoomRotate:!0,touchPitch:!0,cooperativeGestures:!1,trackResize:!0,center:[0,0],elevation:0,zoom:0,bearing:0,pitch:0,roll:0,renderWorldCopies:!0,maxTileCacheSize:null,maxTileCacheZoomLevels:jd.MAX_TILE_CACHE_ZOOM_LEVELS,transformRequest:null,transformCameraUpdate:null,transformConstrain:null,fadeDuration:300,crossSourceCollisions:!0,clickTolerance:3,localIdeographFontFamily:"sans-serif",pitchWithRotate:!0,rollEnabled:!1,rotateSpeed:.8,pitchSpeed:-.5,reduceMotion:void 0,validateStyle:!0,maxCanvasSize:[4096,4096],cancelPendingTileRequestsWhileZooming:!0,centerClampedToGround:!0,terrainSkirtLength:"auto",zoomLevelsToOverscale:4,anisotropicFilterPitch:20},iDr=class extends ah{get _ownerWindow(){var e,t;return((t=(e=this._container)==null?void 0:e.ownerDocument)==null?void 0:t.defaultView)||window}constructor(e){var n,a,o;super(),this._idleTriggered=!1,this._crossFadingFactor=1,this._renderTaskQueue=new JCr,this._controls=[],this._mapId=Cne(),this._styleUrl=null,this._missingStyleImageResolver=null,this._lostContextStyle={style:null,images:null},this._contextLost=s=>{if(s.preventDefault(),this._frameRequest&&(this._frameRequest=(this._frameRequest.abort(),null)),this.painter.destroy(),this._lostContextStyle=this._getStyleAndImages(),!this.style){this.fire(new oO("webglcontextlost",{originalEvent:s}));return}for(let l of Object.values(this.style._layers))if(l.type==="custom"&&console.warn(`Custom layer with id '${l.id}' cannot be restored after WebGL context loss. You will need to re-add it manually after context restoration.`),l._listeners)for(let[u]of Object.entries(l._listeners))console.warn(`Custom layer with id '${l.id}' had event listeners for event '${u}' which cannot be restored after WebGL context loss. You will need to re-add them manually after context restoration.`);this.style.destroy(),this.style=null,this.fire(new oO("webglcontextlost",{originalEvent:s}))},this._contextRestored=s=>{if(this._lostContextStyle.style&&this.setStyle(this._lostContextStyle.style,{diff:!1}),this._lostContextStyle.images&&this.style){this.style.imageManager.images=this._lostContextStyle.images;for(let l in this._lostContextStyle.images){let u=this._lostContextStyle.images[l];u.isWebGLImage&&this.style.imageManager.updateImage(l,u,!1)}}this._lostContextStyle={style:null,images:null};try{this._setupPainter()}catch(l){this.fire(new tl(l));return}this.resize(),this._update(),this._resizeInternal(),this.fire(new oO("webglcontextrestored",{originalEvent:s}))},this._onMapScroll=s=>{if(s.target===this._container)return this._container.scrollTop=0,this._container.scrollLeft=0,!1},this._onWindowOnline=()=>{this._update()};let t=$l(Gs(Gs({},zst),e),{canvasContextAttributes:Gs(Gs({},zst.canvasContextAttributes),e.canvasContextAttributes)});if(t.minZoom!=null&&t.maxZoom!=null&&t.minZoom>t.maxZoom)throw Error("maxZoom must be greater than or equal to minZoom");if(t.minPitch!=null&&t.maxPitch!=null&&t.minPitch>t.maxPitch)throw Error("maxPitch must be greater than or equal to minPitch");if(t.minPitch!=null&&t.minPitch<0)throw Error("minPitch must be greater than or equal to 0");if(t.maxPitch!=null&&t.maxPitch>180)throw Error("maxPitch must be less than or equal to 180");this._camera=new KCr({minZoom:t.minZoom,maxZoom:t.maxZoom,minPitch:t.minPitch,maxPitch:t.maxPitch,bearingSnap:t.bearingSnap,zoomSnap:t.zoomSnap,renderWorldCopies:t.renderWorldCopies,centerClampedToGround:t.centerClampedToGround,terrain:this.terrain,transformConstrain:t.transformConstrain,requestRenderFrame:s=>this._requestRenderFrame(s),cancelRenderFrame:s=>this._cancelRenderFrame(s),transformCameraUpdate:t.transformCameraUpdate,stopHandlers:()=>{var s;return(s=this._handlers)==null?void 0:s.stop(!1)}}),this._camera.setEventedParent(this),this._interactive=t.interactive,this._maxTileCacheSize=t.maxTileCacheSize,this._maxTileCacheZoomLevels=t.maxTileCacheZoomLevels,this._canvasContextAttributes=Gs({},t.canvasContextAttributes),this._trackResize=t.trackResize===!0,this._terrainSkirtLength=t.terrainSkirtLength,this._refreshExpiredTiles=t.refreshExpiredTiles===!0,this._fadeDuration=t.fadeDuration,this._crossSourceCollisions=t.crossSourceCollisions===!0,this._collectResourceTiming=t.collectResourceTiming===!0,this._locale=Gs(Gs({},tDr),t.locale),this._clickTolerance=t.clickTolerance,this._overridePixelRatio=t.pixelRatio,this._maxCanvasSize=t.maxCanvasSize,this._zoomLevelsToOverscale=t.zoomLevelsToOverscale,this.cancelPendingTileRequestsWhileZooming=t.cancelPendingTileRequestsWhileZooming===!0,this.setAnisotropicFilterPitch(t.anisotropicFilterPitch),t.reduceMotion!==void 0&&(Yd.prefersReducedMotion=t.reduceMotion),this._requestManager=new s6r(t.transformRequest),this._container=this._resolveContainer(t.container),t.maxBounds&&this.setMaxBounds(t.maxBounds),this._setupContainer();try{this._setupPainter()}catch(s){throw this._cleanupContainer(),s}this._imageQueueHandle=R1.addThrottleControl(()=>this.isMoving()),this.on("move",()=>this._update(!1)),this.on("moveend",()=>this._update(!1)),this.on("zoom",()=>this._update(!0)),this.on("terrain",()=>{this.painter.markTerrainDepthDirty(),this._update(!0)}),this.once("idle",()=>this._idleTriggered=!0),this._handlers=new ZCr(this,this._camera,t),typeof window<"u"&&(this._ownerWindow.addEventListener("online",this._onWindowOnline,!1),this._setupResizeObserver());let r=typeof t.hash=="string"&&t.hash||void 0;this._hash=t.hash?new iut(r).addTo(this):void 0,(n=this._hash)!=null&&n._onHashChange()||(this.jumpTo({center:t.center,elevation:t.elevation,zoom:t.zoom,bearing:t.bearing,pitch:t.pitch,roll:t.roll}),t.bounds&&(this.resize(),this.fitBounds(t.bounds,js({},t.fitBoundsOptions,{duration:0}))));let i=typeof t.style=="string"||((o=(a=t.style)==null?void 0:a.projection)==null?void 0:o.type)!=="globe";this.resize(null,i),this._localIdeographFontFamily=t.localIdeographFontFamily,this._validateStyle=t.validateStyle,t.style&&this.setStyle(t.style,{localIdeographFontFamily:t.localIdeographFontFamily}),t.attributionControl&&this.addControl(new mut(typeof t.attributionControl=="boolean"?void 0:t.attributionControl)),t.maplibreLogo&&this.addControl(new yut,t.logoPosition),this.on("style.load",()=>{if(i||this._resizeTransform(),this._camera.transform.unmodified){let s=Y5(this.style.stylesheet,["center","zoom","bearing","pitch","roll"]);this.jumpTo(s)}}),this.on("data",s=>{this._update(s.dataType==="style"),this.fire(s.dataType==="style"?new Lv("styledata",s):new Xf("sourcedata",s))}),this.on("dataloading",s=>{this.fire(s.dataType==="style"?new Lv("styledataloading",s):new Xf("sourcedataloading",s))}),this.on("dataabort",s=>{this.fire(new Xf("sourcedataabort",s))})}_getMapId(){return this._mapId}setGlobalStateProperty(e,t){return this.style.setGlobalStateProperty(e,t),this._update(!0)}getGlobalState(){return this.style.getGlobalState()}addControl(e,t){if(t===void 0&&(t=e.getDefaultPosition?e.getDefaultPosition():"top-right"),!(e!=null&&e.onAdd))return this.fire(new tl(Error("Invalid argument to map.addControl(). Argument must be a control with onAdd and onRemove methods.")));let r=e.onAdd(this);this._controls.push(e);let i=this._controlPositions[t];return t.includes("bottom")?i.insertBefore(r,i.firstChild):i.appendChild(r),this}removeControl(e){if(!(e!=null&&e.onRemove))return this.fire(new tl(Error("Invalid argument to map.removeControl(). Argument must be a control with onAdd and onRemove methods.")));let t=this._controls.indexOf(e);return t>-1&&this._controls.splice(t,1),e.onRemove(this),this}hasControl(e){return this._controls.includes(e)}coveringTiles(e){return fT(this._camera.transform,e)}setTransformCameraUpdate(e){this._camera.transformCameraUpdate=e}getCenter(){return new Js(this._camera.transform.center.lng,this._camera.transform.center.lat)}setCenter(e,t){return this._camera.setCenter(e,t),this}getCenterElevation(){return this._camera.transform.elevation}setCenterElevation(e,t){return this._camera.setCenterElevation(e,t),this}setCenterClampedToGround(e){this._camera.setCenterClampedToGround(e)}panBy(e,t,r){return this._camera.panBy(e,t,r),this}panTo(e,t,r){return this._camera.panTo(e,t,r),this}getZoom(){return this._camera.transform.zoom}setZoom(e,t){return this._camera.setZoom(e,t),this}zoomTo(e,t,r){return this._camera.zoomTo(e,t,r),this}zoomIn(e,t){return this._camera.zoomIn(e,t),this}zoomOut(e,t){return this._camera.zoomOut(e,t),this}getVerticalFieldOfView(){return this._camera.transform.fov}setVerticalFieldOfView(e,t){return this._camera.setVerticalFieldOfView(e,t),this}getBearing(){return this._camera.transform.bearing}setBearing(e,t){return this._camera.setBearing(e,t),this}getZoomSnap(){return this._camera.getZoomSnap()}setZoomSnap(e){return this._camera.setZoomSnap(e),this}getPadding(){return this._camera.transform.padding}setPadding(e,t){return this._camera.setPadding(e,t),this}rotateTo(e,t,r){return this._camera.rotateTo(e,t,r),this}resetNorth(e,t){return this._camera.resetNorth(e,t),this}resetNorthPitch(e,t){return this._camera.resetNorthPitch(e,t),this}snapToNorth(e,t){return this._camera.snapToNorth(e,t),this}getPitch(){return this._camera.transform.pitch}setPitch(e,t){return this._camera.setPitch(e,t),this}getRoll(){return this._camera.transform.roll}setRoll(e,t){return this._camera.setRoll(e,t),this}cameraForBounds(e,t){return this._camera.cameraForBounds(e,t)}fitBounds(e,t,r){return this._camera.fitBounds(e,t,r),this}fitScreenCoordinates(e,t,r,i,n){return this._camera.fitScreenCoordinates(e,t,r,i,n),this}jumpTo(e,t){return this._camera.jumpTo(e,t),this}calculateAnchoredCameraOptions(e){return this._camera.calculateAnchoredCameraOptions(e)}calculateCameraOptionsFromCameraLngLatAltRotation(e,t,r,i,n){return this._camera.calculateCameraOptionsFromCameraLngLatAltRotation(e,t,r,i,n)}easeTo(e,t){return this._camera.easeTo(e,t),this}flyTo(e,t){return this._camera.flyTo(e,t),this}stop(){return this._camera.stop(),this}queryTerrainElevation(e){return this.terrain?this.terrain.getElevationForLngLat(Js.convert(e),this._camera.transform):null}getCenterClampedToGround(){return this._camera.getCenterClampedToGround()}calculateCameraOptionsFromTo(e,t,r,i){return i==null&&this.terrain&&(i=this.terrain.getElevationForLngLat(r,this._camera.transform)),this._camera.transform.calculateCameraOptionsFromTo(e,t,r,i!=null?i:0)}resize(e,t=!0){if(this._lostContextStyle.style!==null)return this;this._resizeInternal(t);let r=!this._camera._moving;return r&&(this.stop(),this.fire(new ol("movestart",e)).fire(new ol("move",e))),this.fire(new Gh("resize",e)),r&&this.fire(new ol("moveend",e)),this}_resizeInternal(e=!0){let[t,r]=this._containerDimensions(),i=this._getClampedPixelRatio(t,r);if(this._resizeCanvas(t,r,i),this.painter.resize(t,r,i),this.painter.overLimit()){let n=this.painter.context.gl;this._maxCanvasSize=[n.drawingBufferWidth,n.drawingBufferHeight];let a=this._getClampedPixelRatio(t,r);this._resizeCanvas(t,r,a),this.painter.resize(t,r,a)}this._resizeTransform(e)}_resizeTransform(e=!0){var i;let[t,r]=this._containerDimensions();this._camera.transform.resize(t,r,e),(i=this._camera._requestedCameraState)==null||i.resize(t,r,e)}_getClampedPixelRatio(e,t){let{0:r,1:i}=this._maxCanvasSize,n=this.getPixelRatio(),a=e*n,o=t*n,s=a>r?r/a:1,l=o>i?i/o:1,u=Math.min(s,l);return u<1&&uu("The canvas is larger than maxCanvasSize and is rendered at a lower pixel ratio to fit. Increase maxCanvasSize, within MAX_TEXTURE_SIZE, to render at full resolution."),u*n}getPixelRatio(){var e;return(e=this._overridePixelRatio)!=null?e:devicePixelRatio}setPixelRatio(e){this._overridePixelRatio=e,this.resize()}getBounds(){return this._camera.transform.getBounds()}getMaxBounds(){return this._camera.transform.getMaxBounds()}setMaxBounds(e){return this._camera.applyTransformChange(t=>t.setMaxBounds(B1.convert(e))),this._update()}setMinZoom(e){if(e!=null||(e=-2),e>=-2&&e<=this._camera.transform.maxZoom){let t=this._camera.transform.zoom;return this._camera.applyTransformChange(r=>r.setMinZoom(e)),this._update(),t!==this._camera.transform.zoom&&this.fire(new ol("zoomstart")).fire(new ol("zoom")).fire(new ol("zoomend")).fire(new ol("movestart")).fire(new ol("move")).fire(new ol("moveend")),this}throw Error("minZoom must be between -2 and the current maxZoom, inclusive")}getMinZoom(e=!1){let t=this._camera.transform;return e?t.applyConstrain(t.center,t.minZoom).zoom:t.minZoom}setMaxZoom(e){if(e!=null||(e=22),e>=this._camera.transform.minZoom){let t=this._camera.transform.zoom;return this._camera.applyTransformChange(r=>r.setMaxZoom(e)),this._update(),t!==this._camera.transform.zoom&&this.fire(new ol("zoomstart")).fire(new ol("zoom")).fire(new ol("zoomend")).fire(new ol("movestart")).fire(new ol("move")).fire(new ol("moveend")),this}throw Error("maxZoom must be greater than the current minZoom")}getMaxZoom(){return this._camera.transform.maxZoom}setMinPitch(e){if(e!=null||(e=0),e<0)throw Error("minPitch must be greater than or equal to 0");if(e>=0&&e<=this._camera.transform.maxPitch){let t=this._camera.transform.pitch;return this._camera.applyTransformChange(r=>r.setMinPitch(e)),this._update(),t!==this._camera.transform.pitch&&this.fire(new ol("pitchstart")).fire(new ol("pitch")).fire(new ol("pitchend")).fire(new ol("movestart")).fire(new ol("move")).fire(new ol("moveend")),this}throw Error("minPitch must be between 0 and the current maxPitch, inclusive")}getMinPitch(){return this._camera.transform.minPitch}setMaxPitch(e){if(e!=null||(e=60),e>180)throw Error("maxPitch must be less than or equal to 180");if(e>=this._camera.transform.minPitch){let t=this._camera.transform.pitch;return this._camera.applyTransformChange(r=>r.setMaxPitch(e)),this._update(),t!==this._camera.transform.pitch&&this.fire(new ol("pitchstart")).fire(new ol("pitch")).fire(new ol("pitchend")).fire(new ol("movestart")).fire(new ol("move")).fire(new ol("moveend")),this}throw Error("maxPitch must be greater than the current minPitch")}getMaxPitch(){return this._camera.transform.maxPitch}getAnisotropicFilterPitch(){return this._anisotropicFilterPitch}setAnisotropicFilterPitch(e){if(e!=null||(e=20),e>180)throw Error("anisotropicFilterPitch must be less than or equal to 180");if(e<0)throw Error("anisotropicFilterPitch must be greater than or equal to 0");return this._anisotropicFilterPitch=e,this._update()}getRenderWorldCopies(){return this._camera.transform.renderWorldCopies}setRenderWorldCopies(e){return this._camera.applyTransformChange(t=>t.setRenderWorldCopies(e)),this._update()}setTransformConstrain(e){return this._camera.applyTransformChange(t=>t.setConstrainOverride(e)),this._update()}project(e){return this._camera.transform.locationToScreenPoint(Js.convert(e),this.style&&this.terrain)}unproject(e){return this._camera.transform.screenPointToLocation(Jr.convert(e),this.terrain)}isMoving(){var e;return this._camera.isMoving()||((e=this._handlers)==null?void 0:e.isMoving())||!1}isZooming(){var e;return this._camera.isZooming()||((e=this._handlers)==null?void 0:e.isZooming())||!1}isRotating(){var e;return this._camera.isRotating()||((e=this._handlers)==null?void 0:e.isRotating())||!1}_createDelegates(e,t,r){if(e==="mouseenter"||e==="mouseover"){let i=!1;return{mousemove:n=>{let a=t.filter(s=>this.getLayer(s)),o=a.length===0?[]:this.queryRenderedFeatures(n.point,{layers:a});o.length?i||(i=!0,r.call(this,new $d(e,this,n.originalEvent,{features:o}))):i=!1},mouseout:()=>{i=!1}}}if(e==="mouseleave"||e==="mouseout"){let i=!1;return{mousemove:n=>{let a=t.filter(o=>this.getLayer(o));(a.length===0?[]:this.queryRenderedFeatures(n.point,{layers:a})).length?i=!0:i&&(i=!1,r.call(this,new $d(e,this,n.originalEvent)))},mouseout:n=>{i&&(i=!1,r.call(this,new $d(e,this,n.originalEvent)))}}}{let i=n=>{let a=t.filter(s=>this.getLayer(s)),o=a.length===0?[]:this.queryRenderedFeatures(n.point,{layers:a});o.length&&(n.features=o,r.call(this,n),delete n.features)};return{[e]:i}}}_addDelegatedListener(e,t){var r;this._delegatedListeners||(this._delegatedListeners={}),(r=this._delegatedListeners)[e]||(r[e]=[]),this._delegatedListeners[e].push(t);for(let i in t.delegates)this.on(i,t.delegates[i])}_removeDelegatedListener(e,t,r){var n;if(!((n=this._delegatedListeners)!=null&&n[e]))return;let i=this._delegatedListeners[e];for(let a=0;at.includes(s))){for(let s in o.delegates)this.off(s,o.delegates[s]);i.splice(a,1);return}}}on(e,t,r){if(r===void 0)return super.on(e,t);let i=typeof t=="string"?[t]:t,n={layers:i,listener:r,delegates:this._createDelegates(e,i,r)};return this._addDelegatedListener(e,n),{unsubscribe:()=>{this._removeDelegatedListener(e,i,r)}}}once(e,t,r){if(r===void 0)return super.once(e,t);let i=typeof t=="string"?[t]:t,n={layers:i,listener:r,delegates:this._createDelegates(e,i,a=>{this._removeDelegatedListener(e,i,r),r.call(this,a)})};return this._addDelegatedListener(e,n),this}off(e,t,r){if(r===void 0)return super.off(e,t);let i=typeof t=="string"?[t]:t;return this._removeDelegatedListener(e,i,r),this}queryRenderedFeatures(e,t){if(!this.style)return[];let r,i=e instanceof Jr||Array.isArray(e),n=i?e:[[0,0],[this._camera.transform.width,this._camera.transform.height]];if(t||(t=(i?{}:e)||{}),n instanceof Jr||typeof n[0]=="number")r=[Jr.convert(n)];else{let a=Jr.convert(n[0]),o=Jr.convert(n[1]);r=[a,new Jr(o.x,a.y),o,new Jr(a.x,o.y),a]}return this.style.queryRenderedFeatures(r,t,this._camera.transform)}querySourceFeatures(e,t){return this.style.querySourceFeatures(e,t)}setStyle(e,t){return t=js({},{localIdeographFontFamily:this._localIdeographFontFamily,validate:this._validateStyle},t),this._styleUrl=typeof e=="string"?e:null,t.diff!==!1&&t.localIdeographFontFamily===this._localIdeographFontFamily&&this.style&&e?(this._diffStyle(e,t),this):(this._localIdeographFontFamily=t.localIdeographFontFamily,this._updateStyle(e,t))}setTransformRequest(e){return this._requestManager.setTransformRequest(e),this}_getUIString(e){let t=this._locale[e];if(t==null)throw Error(`Missing UI string '${e}'`);return t}_updateStyle(e,t){var i,n,a;if((i=this._diffStyleRequest)==null||i.abort(),this._diffStyleRequest=null,t.transformStyle&&this.style&&!this.style._loaded){this.style.once("style.load",()=>this._updateStyle(e,t));return}let r=this.style&&t.transformStyle?this.style.serialize():void 0;if(this.style&&(this.style.setEventedParent(null),this.style._remove(!e)),e)this.style=new Toe(this,t||{});else return this._frameRequest&&(this._frameRequest=(this._frameRequest.abort(),null)),(a=(n=this.style)==null?void 0:n.projection)==null||a.destroy(),delete this.style,this;return this.style.setEventedParent(this,{style:this.style}),typeof e=="string"?this.style.loadURL(e,t,r):this.style.loadJSON(e,t,r),this}_lazyInitEmptyStyle(){this.style||(this.style=new Toe(this,{}),this.style.setEventedParent(this,{style:this.style}),this.style.loadEmpty())}_diffStyle(e,t){return Ls(this,null,function*(){var r;if((r=this._diffStyleRequest)==null||r.abort(),typeof e=="string"){let i=e;this._diffStyleRequest=new AbortController;let n=this._diffStyleRequest;try{let a=yield this._requestManager.transformRequest(i,"Style");if(n.signal.aborted){this._diffStyleRequest=null;return}let o=yield gC(a,n);this._diffStyleRequest=null,this._updateDiff(o.data,t)}catch(a){this._diffStyleRequest=null,ng(a)||this.fire(new tl(f0(a)))}}else typeof e=="object"&&(this._diffStyleRequest=null,this._updateDiff(e,t))})}_updateDiff(e,t){try{this.style.setState(e,t)&&this._update(!0)}catch(r){uu(`Unable to perform style diff: ${f0(r).message}. Rebuilding the style from scratch.`),this._updateStyle(e,t)}}getStyle(){if(this.style)return this.style.serialize()}getStyleUrl(){return this._styleUrl}_getStyleAndImages(){return this.style?{style:this.style.serialize(),images:this.style.imageManager.cloneImages()}:{style:null,images:{}}}isStyleLoaded(){if(!this.style){uu("There is no style added to the map.");return}return this.style.loaded()}addSource(e,t){return this._lazyInitEmptyStyle(),this.style.addSource(e,t),this._update(!0)}isSourceLoaded(e){var r;let t=(r=this.style)==null?void 0:r.tileManagers[e];if(t===void 0){this.fire(new tl(Error(`There is no tile manager with ID '${e}'`)));return}return t.loaded()}setTerrain(e,t={}){if(this.style._checkLoaded(),e&&J5(this,_d.terrain,{value:e},t))return this;if(this._terrainDataCallback&&this.style.off("data",this._terrainDataCallback),!e)this.terrain&&this.terrain.destroy(),this.terrain=null,this.painter.renderToTexture=null,this.painter.destroyRTTResources(),this._camera.setTerrain(null);else{let r=this.style.tileManagers[e.source];if(!r)throw Error(`cannot load terrain, because there exists no source with ID: ${e.source}`);this.terrain===null&&r.reload();for(let i in this.style._layers){let n=this.style._layers[i];n.type==="hillshade"&&n.source===e.source&&uu("You are using the same source for a hillshade layer and for 3D terrain. Please consider using two separate sources to improve rendering quality."),n.type==="color-relief"&&n.source===e.source&&uu("You are using the same source for a color-relief layer and for 3D terrain. Please consider using two separate sources to improve rendering quality.")}this.terrain&&this.terrain.destroy(),this.terrain=new vSr(this.painter,r,e,this._terrainSkirtLength),this.painter.renderToTexture=new eDr(this.painter,this.terrain),this._camera.setTerrain(this.terrain),this._terrainDataCallback=i=>this._handleTerrainDataEvent(i,e.source),this.style.on("data",this._terrainDataCallback)}return this.style.triggerSymbolPlacement(),this.fire(new Nst({terrain:e})),this}_handleTerrainDataEvent(e,t){var i;if(e.dataType==="style"){this.terrain.tileManager.releaseAllRTT();return}let r=e.sourceId===t;if(r&&(this.terrain.resetElevationCache(),this.style.triggerSymbolPlacement()),r&&e.tile&&(this.painter.markTerrainDepthDirty(),this._camera.applyTerrainChange()),e.tile){if(((i=e.source)==null?void 0:i.type)==="image"){this.terrain.tileManager.releaseAllRTT();return}this.terrain.tileManager.releaseRTT(e.tile.tileID)}}getTerrain(){var e,t;return(t=(e=this.terrain)==null?void 0:e.options)!=null?t:null}areTilesLoaded(){var t;let e=(t=this.style)==null?void 0:t.tileManagers;for(let r of Object.values(e))if(!r.areTilesLoaded())return!1;return!0}removeSource(e){return this.style.removeSource(e),this._update(!0)}getSource(e){var t;return(t=this.style)==null?void 0:t.getSource(e)}setSourceTileLodParams(e,t,r){if(r){let i=this.getSource(r);if(!i)throw Error(`There is no source with ID "${r}", cannot set LOD parameters`);i.calculateTileZoom=moe(Math.max(1,e),Math.max(1,t))}else for(let i in this.style.tileManagers)this.style.tileManagers[i].getSource().calculateTileZoom=moe(Math.max(1,e),Math.max(1,t));return this._update(!0),this}refreshTiles(e,t){let r=this.style.tileManagers[e];if(!r)throw Error(`There is no tile manager with ID "${e}", cannot refresh tile`);t===void 0?r.reload(!0):r.refreshTiles(t.map(i=>new IC(i.z,i.x,i.y)))}addImage(e,t,r={}){var n;this._lazyInitEmptyStyle();let i=this._createStyleImage(t,r);return i?(this.style.addImage(e,i),(n=i.userImage)!=null&&n.onAdd&&i.userImage.onAdd(this,e),this):this}setMissingStyleImageResolver(e){var t;return this._missingStyleImageResolver=e,(t=this.style)==null||t.setMissingImageResolver(e),this}_createStyleImage(e,t={}){let{pixelRatio:r=1,sdf:i=!1,stretchX:n,stretchY:a,content:o,textFitWidth:s,textFitHeight:l}=t;if(e instanceof HTMLImageElement||gx(e)){let{width:u,height:f,data:c}=Yd.getImageData(e);return{data:new qf({width:u,height:f},c),pixelRatio:r,stretchX:n,stretchY:a,content:o,textFitWidth:s,textFitHeight:l,sdf:i,version:0}}if(e.width===void 0||e.height===void 0)return this.fire(new tl(Error("Invalid arguments to map.addImage(). The second argument must be an `HTMLImageElement`, `ImageData`, `ImageBitmap`, or object with `width`, `height`, and `data` properties with the same format as `ImageData`"))),null;{let{width:u,height:f,data:c}=e,h=e,d=DC(h.data);return{data:d?new qf({width:u,height:f}):new qf({width:u,height:f},new Uint8Array(c)),pixelRatio:r,stretchX:n,stretchY:a,content:o,textFitWidth:s,textFitHeight:l,sdf:i,version:0,isWebGLImage:d,userImage:h}}}updateImage(e,t){let r=this.style.getImage(e);if(!r)return this.fire(new tl(Error("The map has no image with that id. If you are adding a new image use `map.addImage(...)` instead.")));let{width:i,height:n,data:a}=t instanceof HTMLImageElement||gx(t)?Yd.getImageData(t):t;if(i===void 0||n===void 0)return this.fire(new tl(Error("Invalid arguments to map.updateImage(). The second argument must be an `HTMLImageElement`, `ImageData`, `ImageBitmap`, or object with `width`, `height`, and `data` properties with the same format as `ImageData`")));if(i!==r.data.width||n!==r.data.height)return this.fire(new tl(Error("The width and height of the updated image must be that same as the previous version of the image")));if(r.isWebGLImage=DC(a),r.isWebGLImage)r.userImage=t;else{let o=!(t instanceof HTMLImageElement||gx(t));r.data.replace(a,o)}return this.style.updateImage(e,r),this}getImage(e){return this.style.getImage(e)}hasImage(e){return e?!!this.style.getImage(e):(this.fire(new tl(Error("Missing required image id"))),!1)}removeImage(e){this.style.removeImage(e)}loadImage(e){return Ls(this,null,function*(){let t=yield R1.getImage(yield this._requestManager.transformRequest(e,"Image"),new AbortController);if(!t.data)throw Error(`Could not load image ${e}: the response is empty`);return t})}listImages(){var e,t;return(t=(e=this.style)==null?void 0:e.listImages())!=null?t:[]}addLayer(e,t){return this._lazyInitEmptyStyle(),this.style.addLayer(e,t),this._update(!0)}moveLayer(e,t){return this.style.moveLayer(e,t),this._update(!0)}removeLayer(e){return this.style.removeLayer(e),this._update(!0)}getLayer(e){var t;return(t=this.style)==null?void 0:t.getLayer(e)}getLayersOrder(){var e,t;return(t=(e=this.style)==null?void 0:e.getLayersOrder())!=null?t:[]}setLayerZoomRange(e,t,r){return this.style.setLayerZoomRange(e,t,r),this._update(!0)}setFilter(e,t,r={}){var i;return(i=this.style)==null||i.setFilter(e,t,r),this._update(!0)}getFilter(e){return this.style.getFilter(e)}setPaintProperty(e,t,r,i={}){var n;return(n=this.style)==null||n.setPaintProperty(e,t,r,i),this._update(!0)}getPaintProperty(e,t){return this.style.getPaintProperty(e,t)}setLayoutProperty(e,t,r,i={}){return this.style.setLayoutProperty(e,t,r,i),this._update(!0)}getLayoutProperty(e,t){return this.style.getLayoutProperty(e,t)}setGlyphs(e,t={}){return this._lazyInitEmptyStyle(),this.style.setGlyphs(e,t),this._update(!0)}getGlyphs(){return this.style.getGlyphsUrl()}setFontFaces(e){return this._lazyInitEmptyStyle(),this.style.setFontFaces(e),this._update(!0)}getFontFaces(){return this.style.getFontFaces()}addSprite(e,t,r={}){return this._lazyInitEmptyStyle(),this.style.addSprite(e,t,r,i=>{i||this._update(!0)}),this}removeSprite(e){return this._lazyInitEmptyStyle(),this.style.removeSprite(e),this._update(!0)}getSprite(){return this.style.getSprite()}setSprite(e,t={}){return this._lazyInitEmptyStyle(),this.style.setSprite(e,t,r=>{r||this._update(!0)}),this}setLight(e,t={}){return this._lazyInitEmptyStyle(),this.style.setLight(e,t),this._update(!0)}getLight(){return this.style.getLight()}setSky(e,t={}){return this._lazyInitEmptyStyle(),this.style.setSky(e,t),this._update(!0)}getSky(){return this.style.getSky()}setFeatureState(e,t){return this.style.setFeatureState(e,t),this._update()}removeFeatureState(e,t){return this.style.removeFeatureState(e,t),this._update()}getFeatureState(e){return this.style.getFeatureState(e)}getContainer(){return this._container}getCanvasContainer(){return this._canvasContainer}getCanvas(){return this._canvas}_containerDimensions(){let e=0,t=0;return this._container&&(e=Math.floor(this._container.clientWidth)||400,t=Math.floor(this._container.clientHeight)||300),[e,t]}_shouldHandleInitialResize(){var r;if(!((r=this._container)!=null&&r.clientWidth)||!this._container.clientHeight)return!1;let[e,t]=this._containerDimensions();return e!==this._camera.transform.width||t!==this._camera.transform.height}_setupResizeObserver(){var i;let e=!1,t=Zoe(n=>{this._trackResize&&!this._removed&&(this.resize(n),this.redraw())},50),r=(i=this._ownerWindow.ResizeObserver)!=null?i:ResizeObserver;this._resizeObserver=new r(n=>{!e&&(e=!0,!this._shouldHandleInitialResize())||t(n)}),this._resizeObserver.observe(this._container)}_resolveContainer(e){if(typeof e=="string"){let t=document.getElementById(e);if(!t)throw Error(`Container '${e}' not found.`);return t}if(e instanceof HTMLElement||e&&typeof e=="object"&&e.nodeType===1)return e;throw Error("Invalid type: 'container' must be a String or HTMLElement.")}_setupContainer(){let e=this._containerDimensions(),t=this._getClampedPixelRatio(e[0],e[1]),r=this._container;r.classList.add("maplibregl-map");let i=this._canvasContainer=Cl.create("div","maplibregl-canvas-container",r);this._interactive&&i.classList.add("maplibregl-interactive"),this._canvas=Cl.create("canvas","maplibregl-canvas",i),this._canvas.addEventListener("webglcontextlost",this._contextLost,!1),this._canvas.addEventListener("webglcontextrestored",this._contextRestored,!1),this._canvas.setAttribute("tabindex",this._interactive?"0":"-1"),this._canvas.setAttribute("aria-label",this._getUIString("Map.Title")),this._canvas.setAttribute("role","region"),this._resizeCanvas(e[0],e[1],t);let n=this._controlContainer=Cl.create("div","maplibregl-control-container",r),a=this._controlPositions={};for(let o of["top-left","top-right","bottom-left","bottom-right"])a[o]=Cl.create("div",`maplibregl-ctrl-${o} `,n);this._container.addEventListener("scroll",this._onMapScroll,!1)}_cleanupContainer(){this._canvas.removeEventListener("webglcontextrestored",this._contextRestored,!1),this._canvas.removeEventListener("webglcontextlost",this._contextLost,!1),this._canvasContainer.remove(),this._controlContainer.remove(),this._container.removeEventListener("scroll",this._onMapScroll,!1),this._container.classList.remove("maplibregl-map")}_resizeCanvas(e,t,r){let i=Math.round(r*e),n=Math.round(r*t);this._canvas.width=i,this._canvas.height=n,this._canvas.style.width=`${i/r}px`,this._canvas.style.height=`${n/r}px`}_setupPainter(){let e=$l(Gs({},this._canvasContextAttributes),{alpha:!0,depth:!0,stencil:!0,premultipliedAlpha:!0}),t=null;this._canvas.addEventListener("webglcontextcreationerror",i=>{t=i},{once:!0});let r=this._canvas.getContext("webgl2",e);if(!r)throw new rut(e,t);this.painter=new ACr(r,this._camera.transform)}migrateProjection(e,t){this._camera.migrateProjection(e,t),this.painter.transform=e,this.fire(new Vst({newProjection:this.style.projection.name}))}loaded(){return!this._styleDirty&&!this._sourcesDirty&&!!this.style&&this.style.loaded()}_update(e){var t;return(t=this.style)!=null&&t._loaded?(this._styleDirty||(this._styleDirty=e),this._sourcesDirty=!0,this.triggerRepaint(),this):this}_requestRenderFrame(e){return this._update(),this._renderTaskQueue.add(e)}_cancelRenderFrame(e){this._renderTaskQueue.remove(e)}_render(e){var o,s,l,u,f;let t=this._idleTriggered?this._fadeDuration:0,r=((o=this.style.projection)==null?void 0:o.transitionState)>0;if(this.painter.context.setDirty(),this.painter.setBaseState(),this._renderTaskQueue.run(e),this._removed)return;let i=!1;if(this.style&&this._styleDirty){this._styleDirty=!1;let c=this._camera.transform.zoom,h=Ku();this.style.zoomHistory.update(c,h);let d=new Xu(c,{now:h,fadeDuration:t,zoomHistory:this.style.zoomHistory,transition:this.style.getTransition()}),p=d.crossFadingFactor();(p!==1||p!==this._crossFadingFactor)&&(i=!0,this._crossFadingFactor=p),this.style.update(d)}let n=((s=this.style.projection)==null?void 0:s.transitionState)>0!==r;this._camera.transform.setTransitionState((l=this.style.projection)==null?void 0:l.transitionState),this.style&&(this._sourcesDirty||n)&&(this._sourcesDirty=!1,this.style._updateSources(this._camera.transform)),this.terrain?(this.terrain.tileManager.update(this._camera.transform,this.terrain)&&this.terrain.resetElevationCache(),this._camera.transform.setMinElevationForCurrentTile(this.terrain.getMinTileElevationForLngLatZoom(this._camera.transform.center,this._camera.transform.tileZoom)),!this._camera.elevationFreeze&&this.getCenterClampedToGround()&&this._camera.transform.setElevation(this.terrain.getElevationForLngLat(this._camera.transform.center,this._camera.transform))):(this._camera.transform.setMinElevationForCurrentTile(0),this.getCenterClampedToGround()&&this._camera.transform.setElevation(0)),this._placementDirty=(u=this.style)==null?void 0:u._updatePlacement(this._camera.transform,this.showCollisionBoxes,t,this._crossSourceCollisions,n),this.painter.render(this.style,{showTileBoundaries:this.showTileBoundaries,showOverdrawInspector:this._showOverdrawInspector,rotating:this.isRotating(),zooming:this.isZooming(),moving:this.isMoving(),fadeDuration:t,showPadding:this.showPadding,anisotropicFilterPitch:this.getAnisotropicFilterPitch()}),this.fire(new Gh("render")),this.loaded()&&!this._loaded&&(this._loaded=!0,this.fire(new Gh("load"))),this.style&&(this.style.hasTransitions()||i)&&(this._styleDirty=!0),this.style&&!this._placementDirty&&this.style._releaseSymbolFadeTiles();let a=this._sourcesDirty||this._styleDirty||this._placementDirty||((f=this.painter.renderToTexture)==null?void 0:f.needsFollowUpFrame);return a||this._repaint?this.triggerRepaint():!this.isMoving()&&this.loaded()&&this.fire(new Gh("idle")),this._loaded&&!this._fullyLoaded&&!a&&(this._fullyLoaded=!0),this}redraw(){return this.style&&(this._frameRequest&&(this._frameRequest=(this._frameRequest.abort(),null)),this._render(0)),this}remove(){var t,r;this._hash&&this._hash.remove();for(let i of this._controls)i.onRemove(this);this._controls=[],this._frameRequest&&(this._frameRequest=(this._frameRequest.abort(),null)),this._renderTaskQueue.clear(),(t=this._diffStyleRequest)==null||t.abort(),this.painter.destroy(),this._handlers.destroy(),this.setStyle(null),typeof window<"u"&&this._ownerWindow.removeEventListener("online",this._onWindowOnline,!1),R1.removeThrottleControl(this._imageQueueHandle),(r=this._resizeObserver)==null||r.disconnect();let e=this.painter.context.gl.getExtension("WEBGL_lose_context");e!=null&&e.loseContext&&e.loseContext(),this._cleanupContainer(),this._removed=!0,this.fire(new Gh("remove"))}triggerRepaint(){this.style&&!this._frameRequest&&(this._frameRequest=new AbortController,Yd.frame(this._frameRequest,e=>{this._frameRequest=null;try{this._render(e)}catch(t){if(!ng(t))throw t}},()=>{},this._ownerWindow))}get showTileBoundaries(){return!!this._showTileBoundaries}set showTileBoundaries(e){this._showTileBoundaries!==e&&(this._showTileBoundaries=e,this._update())}get showPadding(){return!!this._showPadding}set showPadding(e){this._showPadding!==e&&(this._showPadding=e,this._update())}get showCollisionBoxes(){return!!this._showCollisionBoxes}set showCollisionBoxes(e){this._showCollisionBoxes!==e&&(this._showCollisionBoxes=e,e?this.style._generateCollisionBoxes():this._update())}get showOverdrawInspector(){return!!this._showOverdrawInspector}set showOverdrawInspector(e){this._showOverdrawInspector!==e&&(this._showOverdrawInspector=e,this._update())}get repaint(){return!!this._repaint}set repaint(e){this._repaint!==e&&(this._repaint=e,this.triggerRepaint())}get vertices(){return!!this._vertices}set vertices(e){this._vertices=e,this._update()}get version(){return rDr}getCameraTargetElevation(){return this._camera.transform.elevation}getProjection(){return this.style.getProjection()}setProjection(e){return this._lazyInitEmptyStyle(),this.style.setProjection(e),this._update(!0)}},nDr={showCompass:!0,showZoom:!0,visualizePitch:!1,visualizeRoll:!0},aDr=class{constructor(e){this._updateZoomButtons=()=>{let t=this._map.getZoom(),r=t===this._map.getMaxZoom(),i=t===this._map.getMinZoom(!0);this._zoomInButton.disabled=r,this._zoomOutButton.disabled=i,this._zoomInButton.setAttribute("aria-disabled",r.toString()),this._zoomOutButton.setAttribute("aria-disabled",i.toString())},this._rotateCompassArrow=()=>{let t=this._map.getPitch(),r=this._map.getRoll(),i=this._map.getBearing(),n=1/Math.cos(Yf(t))**.5;if(this.options.visualizePitch&&this.options.visualizeRoll){this._compassIcon.style.transform=`scale(${n}) rotateZ(${-r}deg) rotateX(${t}deg) rotateZ(${-i}deg)`;return}if(this.options.visualizePitch){this._compassIcon.style.transform=`scale(${n}) rotateX(${t}deg) rotateZ(${-i}deg)`;return}if(this.options.visualizeRoll){this._compassIcon.style.transform=`rotate(${-i-r}deg)`;return}this._compassIcon.style.transform=`rotate(${-i}deg)`},this._setButtonTitle=(t,r)=>{let i=this._map._getUIString(`NavigationControl.${r}`);t.title=i,t.setAttribute("aria-label",i)},this.options=js({},nDr,e),this._container=Cl.create("div","maplibregl-ctrl maplibregl-ctrl-group"),this._container.addEventListener("contextmenu",t=>t.preventDefault()),this.options.showZoom&&(this._zoomInButton=this._createButton("maplibregl-ctrl-zoom-in",t=>this._map.zoomIn({},{originalEvent:t})),Cl.create("span","maplibregl-ctrl-icon",this._zoomInButton).setAttribute("aria-hidden","true"),this._zoomOutButton=this._createButton("maplibregl-ctrl-zoom-out",t=>this._map.zoomOut({},{originalEvent:t})),Cl.create("span","maplibregl-ctrl-icon",this._zoomOutButton).setAttribute("aria-hidden","true")),this.options.showCompass&&(this._compass=this._createButton("maplibregl-ctrl-compass",t=>{this.options.visualizePitch?this._map.resetNorthPitch({},{originalEvent:t}):this._map.resetNorth({},{originalEvent:t})}),this._compassIcon=Cl.create("span","maplibregl-ctrl-icon",this._compass),this._compassIcon.setAttribute("aria-hidden","true"))}onAdd(e){return this._map=e,this.options.showZoom&&(this._setButtonTitle(this._zoomInButton,"ZoomIn"),this._setButtonTitle(this._zoomOutButton,"ZoomOut"),this._map.on("move",this._updateZoomButtons),this._updateZoomButtons()),this.options.showCompass&&(this._setButtonTitle(this._compass,"ResetBearing"),this.options.visualizePitch&&this._map.on("pitch",this._rotateCompassArrow),this.options.visualizeRoll&&this._map.on("roll",this._rotateCompassArrow),this._map.on("rotate",this._rotateCompassArrow),this._rotateCompassArrow(),this._handler=new oDr(this._map,this._compass,this.options.visualizePitch)),this._container}onRemove(){this._container.remove(),this.options.showZoom&&this._map.off("move",this._updateZoomButtons),this.options.showCompass&&(this.options.visualizePitch&&this._map.off("pitch",this._rotateCompassArrow),this.options.visualizeRoll&&this._map.off("roll",this._rotateCompassArrow),this._map.off("rotate",this._rotateCompassArrow),this._handler.off(),delete this._handler),delete this._map}_createButton(e,t){let r=Cl.create("button",e,this._container);return r.type="button",r.addEventListener("click",t),r}},oDr=class{constructor(e,t,r=!1){this.mousedown=n=>{this.startMove(n,Cl.mousePos(this.element,n)),window.addEventListener("mousemove",this.mousemove),window.addEventListener("mouseup",this.mouseup)},this.mousemove=n=>{this.move(n,Cl.mousePos(this.element,n))},this.mouseup=n=>{this._rotatePitchHandler.dragEnd(n),this.offTemp()},this.touchstart=n=>{n.targetTouches.length===1?(this._startPos=this._lastPos=Cl.touchPos(this.element,n.targetTouches)[0],this.startMove(n,this._startPos),window.addEventListener("touchmove",this.touchmove,{passive:!1}),window.addEventListener("touchend",this.touchend)):this.reset()},this.touchmove=n=>{n.targetTouches.length===1?(this._lastPos=Cl.touchPos(this.element,n.targetTouches)[0],this.move(n,this._lastPos)):this.reset()},this.touchend=n=>{n.targetTouches.length===0&&this._startPos&&this._lastPos&&this._startPos.dist(this._lastPos){this._rotatePitchHandler.reset(),delete this._startPos,delete this._lastPos,this.offTemp()},this._clickTolerance=10,this.element=t;let i=new qCr;this._rotatePitchHandler=new rD({clickTolerance:3,move:(n,a)=>{let o=t.getBoundingClientRect(),s=new Jr((o.bottom-o.top)/2,(o.right-o.left)/2);return{bearingDelta:Lne(new Jr(n.x,a.y),a,s),pitchDelta:r?(a.y-n.y)*-.5:void 0}},moveStateManager:i,enable:!0,assignEvents:()=>{}}),this.map=e,t.addEventListener("mousedown",this.mousedown),t.addEventListener("touchstart",this.touchstart,{passive:!1}),t.addEventListener("touchcancel",this.reset)}startMove(e,t){this._rotatePitchHandler.dragStart(e,t),Cl.disableDrag()}move(e,t){let r=this.map,{bearingDelta:i,pitchDelta:n}=this._rotatePitchHandler.dragMove(e,t)||{};i&&r.setBearing(r.getBearing()+i),n&&r.setPitch(r.getPitch()+n)}off(){let e=this.element;e.removeEventListener("mousedown",this.mousedown),e.removeEventListener("touchstart",this.touchstart),window.removeEventListener("touchmove",this.touchmove),window.removeEventListener("touchend",this.touchend),e.removeEventListener("touchcancel",this.reset),this.offTemp()}offTemp(){Cl.enableDrag(),window.removeEventListener("mousemove",this.mousemove),window.removeEventListener("mouseup",this.mouseup),window.removeEventListener("touchmove",this.touchmove),window.removeEventListener("touchend",this.touchend)}};Joe={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%)"};Ist={ArrowLeft:[-1,0],ArrowRight:[1,0],ArrowUp:[0,-1],ArrowDown:[0,1]},but="#3FB1CE";w3=class extends Wd{},_ut=class extends Wd{},Eoe=class extends ah{constructor(e){if(super(),this._onClick=t=>{this.fire(new _ut("click",{originalEvent:t}))},this._onKeyPress=t=>{(t.code==="Space"||t.code==="Enter")&&this.togglePopup()},this._onKeyDown=t=>{if(!this._defaultMarker||!this._draggable||!this._map||!this._lngLat||t.composedPath()[0]!==this._element||t.altKey||t.ctrlKey||t.metaKey)return;let r=Ist[t.key];if(!r)return;t.preventDefault(),t.stopPropagation();let i=t.shiftKey?10:1,n=this._map.project(this._lngLat);this.setLngLat(this._map.unproject(new Jr(n.x+r[0]*i,n.y+r[1]*i))),this._keyboardDragActive||(this._keyboardDragActive=!0,this.fire(new w3("dragstart"))),this.fire(new w3("drag"))},this._onKeyUp=t=>{Ist[t.key]&&this._endKeyboardDrag()},this._onBlur=()=>{this._endKeyboardDrag()},this._onMapClick=t=>{let r=t.originalEvent.target,i=this._element;this._popup&&(r===i||i.contains(r))&&this.togglePopup()},this._updateCoveredUnthrottled=()=>{var i,n;let t=(i=this._map)==null?void 0:i.terrain;if(!t||!this._isInViewport())return;let r=this._isCovered(t);r&&((n=this._popup)!=null&&n.isOpen())&&this._popup.remove(),this._element.style.opacity=r?this._opacityWhenCovered:this._opacity,this._element.classList.toggle("maplibregl-marker-covered",r)},this._updateCovered=Zoe(this._updateCoveredUnthrottled,100),this._update=t=>{if(!this._map)return;this._lngLat=gut(this._lngLat,this._flatPos,this._map._camera.transform),this._flatPos=this._pos=this._map.project(this._lngLat)._add(this._offset),this._map.terrain&&(this._flatPos=this._map._camera.transform.locationToScreenPoint(this._lngLat)._add(this._offset));let r="";this._rotationAlignment==="viewport"||this._rotationAlignment==="auto"?r=`rotateZ(${this._rotation}deg)`:this._rotationAlignment==="map"&&(r=`rotateZ(${this._rotation-this._map.getBearing()}deg)`);let i="";this._pitchAlignment==="viewport"||this._pitchAlignment==="auto"?i="rotateX(0deg)":this._pitchAlignment==="map"&&(i=`rotateX(${this._map.getPitch()}deg)`),!this._subpixelPositioning&&(t==null?void 0:t.type)!=="move"&&(this._pos=this._pos.round()),this._element.style.transform=`${Joe[this._anchor]} translate(${this._pos.x}px, ${this._pos.y}px) ${i} ${r}`,this._updateOpacity()},this._onMove=t=>{if(!this._isDragging){let r=this._clickTolerance||this._map._clickTolerance;this._isDragging=t.point.dist(this._pointerdownPos)>=r}this._isDragging&&(this._pos=t.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 w3("dragstart"))),this.fire(new w3("drag")))},this._onUp=()=>{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 w3("dragend")),this._state="inactive"},this._addDragHandler=t=>{this._element.contains(t.originalEvent.target)&&(t.preventDefault(),this._positionDelta=t.point.sub(this._pos).add(this._offset),this._pointerdownPos=t.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))},this._anchor=(e==null?void 0:e.anchor)||"center",this._color=(e==null?void 0:e.color)||but,this._scale=(e==null?void 0:e.scale)||1,this._draggable=(e==null?void 0:e.draggable)||!1,this._clickTolerance=(e==null?void 0:e.clickTolerance)||0,this._subpixelPositioning=(e==null?void 0:e.subpixelPositioning)||!1,this._isDragging=!1,this._roleManaged=!1,this._tabIndexManaged=!1,this._keyboardDragActive=!1,this._state="inactive",this._rotation=(e==null?void 0:e.rotation)||0,this._rotationAlignment=(e==null?void 0:e.rotationAlignment)||"auto",this._pitchAlignment=e!=null&&e.pitchAlignment&&e.pitchAlignment!=="auto"?e.pitchAlignment:this._rotationAlignment,this.setOpacity(e==null?void 0:e.opacity,e==null?void 0:e.opacityWhenCovered),e==null?void 0:e.element)this._element=e.element,this._offset=Jr.convert((e==null?void 0:e.offset)||[0,0]);else{this._defaultMarker=!0,this._element=Cl.create("div");let t=lDr().cloneNode(!0);t.setAttributeNS(null,"height",`${41*this._scale}px`),t.setAttributeNS(null,"width",`${27*this._scale}px`),uDr(t).setAttributeNS(null,"fill",this._color),this._element.appendChild(t),this._offset=Jr.convert((e==null?void 0:e.offset)||[0,-14])}if(this._element.classList.add("maplibregl-marker"),this._element.addEventListener("dragstart",t=>{t.preventDefault()}),this._element.addEventListener("mousedown",t=>{t.preventDefault()}),xut(this._element,this._anchor,"marker"),e==null?void 0:e.className)for(let t of e.className.split(" "))this._element.classList.add(t);this._popup=null}addTo(e){return this.remove(),this._map=e,this._defaultMarker&&!this._element.hasAttribute("aria-label")&&this._element.setAttribute("aria-label",e._getUIString("Marker.Title")),this._updateAccessibilityRole(),e.getCanvasContainer().appendChild(this._element),e.on("move",this._update),e.on("moveend",this._update),e.on("terrain",this._update),e.on("projectiontransition",this._update),e.on("idle",this._update),this._element.addEventListener("click",this._onClick),this.setDraggable(this._draggable),this._update(),this._map.on("click",this._onMapClick),this}remove(){return this._map&&(this._map.off("click",this._onMapClick),this._map.off("move",this._update),this._map.off("moveend",this._update),this._map.off("terrain",this._update),this._map.off("projectiontransition",this._update),this._map.off("idle",this._update),this._map.off("mousedown",this._addDragHandler),this._map.off("touchstart",this._addDragHandler),this._map.off("mouseup",this._onUp),this._map.off("touchend",this._onUp),this._map.off("mousemove",this._onMove),this._map.off("touchmove",this._onMove),delete this._map),this._element.removeEventListener("click",this._onClick),this._element.removeEventListener("keydown",this._onKeyDown),this._element.removeEventListener("keyup",this._onKeyUp),this._element.removeEventListener("blur",this._onBlur),this._element.removeEventListener("keypress",this._onKeyPress),this._keyboardDragActive=!1,this._element.remove(),this._popup&&this._popup.remove(),this}getLngLat(){return this._lngLat}setLngLat(e){return this._lngLat=Js.convert(e),this._pos=null,this._update(),this._popup&&this._popup.setLngLat(this._lngLat),this}getElement(){return this._element}setPopup(e){if(this._popup&&(this._popup.remove(),this._popup=null,this._element.removeEventListener("keypress",this._onKeyPress)),e){if(!("offset"in e.options)){let t=13.5/Math.SQRT2;e.options.offset=this._defaultMarker?{top:[0,0],"top-left":[0,0],"top-right":[0,0],bottom:[0,-38.1],"bottom-left":[t,(24.6+t)*-1],"bottom-right":[-t,(24.6+t)*-1],left:[13.5,-24.6],right:[-13.5,-24.6]}:this._offset}this._popup=e,this._element.addEventListener("keypress",this._onKeyPress)}return this._updateTabIndex(),this._updateAccessibilityRole(),this}setSubpixelPositioning(e){return this._subpixelPositioning=e,this}_endKeyboardDrag(){this._keyboardDragActive&&(this._keyboardDragActive=!1,this.fire(new w3("dragend")))}getPopup(){return this._popup}togglePopup(){let e=this._popup;if(this._element.style.opacity===this._opacityWhenCovered)return this;if(e)e.isOpen()?e.remove():(e.setLngLat(this._lngLat),e.addTo(this._map));else return this;return this}_updateOpacity(){var r;if(!this._isInViewport())return;let e=(r=this._map)==null?void 0:r.terrain,t=this._map._camera.transform.isLocationOccluded(this._lngLat);if(!e||t){let i=t?this._opacityWhenCovered:this._opacity;this._element.style.opacity!==i&&(this._element.style.opacity=i,this._element.classList.toggle("maplibregl-marker-covered",t));return}this._updateCovered()}_isInViewport(){let{width:e,height:t}=this._map._camera.transform;return!!this._pos&&this._pos.x>=0&&this._pos.y>=0&&this._pos.x<=e&&this._pos.y<=t}_isCovered(e){let t=this._map._camera.transform,r=e.getElevationForLngLat(this._lngLat,t),i=Math.max(0,-this._offset.y)/t.pixelsPerMeter,n=Math.sin(this._map.getPitch()*Math.PI/180)*i;return t.isLocationOccluded(this._lngLat,e,r+n)}getOffset(){return this._offset}setOffset(e){return this._offset=Jr.convert(e),this._update(),this}addClassName(e){this._element.classList.add(e)}removeClassName(e){this._element.classList.remove(e)}toggleClassName(e){return this._element.classList.toggle(e)}setDraggable(e){return this._draggable=!!e,this._element.classList.toggle("maplibregl-marker-draggable",this._draggable),this._map&&(e?(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._defaultMarker&&(this._draggable?(this._element.addEventListener("keydown",this._onKeyDown),this._element.addEventListener("keyup",this._onKeyUp),this._element.addEventListener("blur",this._onBlur)):(this._element.removeEventListener("keydown",this._onKeyDown),this._element.removeEventListener("keyup",this._onKeyUp),this._element.removeEventListener("blur",this._onBlur),this._endKeyboardDrag())),this._updateTabIndex(),this._updateAccessibilityRole(),this}isDraggable(){return this._draggable}_updateTabIndex(){this._popup||this._defaultMarker&&this._draggable?this._element.hasAttribute("tabindex")||(this._element.setAttribute("tabindex","0"),this._tabIndexManaged=!0):this._tabIndexManaged&&(this._tabIndexManaged=(this._element.getAttribute("tabindex")==="0"&&this._element.removeAttribute("tabindex"),!1))}_updateAccessibilityRole(){if(!this._defaultMarker||this._element.hasAttribute("role")&&!this._roleManaged)return;let e=this._draggable||this._popup?"button":"img";this._element.setAttribute("role",e),this._roleManaged=!0}setRotation(e){return this._rotation=e||0,this._update(),this}getRotation(){return this._rotation}setRotationAlignment(e){return this._rotationAlignment=e||"auto",this._update(),this}getRotationAlignment(){return this._rotationAlignment}setPitchAlignment(e){return this._pitchAlignment=e&&e!=="auto"?e:this._rotationAlignment,this._update(),this}getPitchAlignment(){return this._pitchAlignment}setOpacity(e,t){return(this._opacity===void 0||e===void 0&&t===void 0)&&(this._opacity="1",this._opacityWhenCovered="0.2"),e!==void 0&&(this._opacity=String(e)),t!==void 0&&(this._opacityWhenCovered=String(t)),this._map&&this._updateOpacity(),this}},fDr={positionOptions:{enableHighAccuracy:!1,maximumAge:0,timeout:6e3},fitBoundsOptions:{maxZoom:15},trackUserLocation:!1,showAccuracyCircle:!0,showUserLocation:!0},aO=0,YC=!1,A3=class extends Wd{},koe=class extends Wd{},wut=class extends Wd{},cDr=class extends ah{constructor(e){super(),this._onSuccess=t=>{if(this._map){if(this._isOutOfMapMaxBounds(t)){this._setErrorState(),this.fire(new koe("outofmaxbounds",t)),this._updateMarker(),this._finish();return}if(this.options.trackUserLocation)switch(this._lastKnownPosition=t,this._watchState){case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active");break;case"BACKGROUND":case"BACKGROUND_ERROR":this._watchState="BACKGROUND",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-background");break;default:throw Error(`Unexpected watchState ${this._watchState}`)}this.options.showUserLocation&&this._watchState!=="OFF"&&this._updateMarker(t),(!this.options.trackUserLocation||this._watchState==="ACTIVE_LOCK")&&this._updateCamera(t),this.options.showUserLocation&&this._dotElement.classList.remove("maplibregl-user-location-dot-stale"),this.fire(new koe("geolocate",t)),this._finish()}},this._updateCamera=t=>{let r=new Js(t.coords.longitude,t.coords.latitude),i=t.coords.accuracy,n=this._map.getBearing(),a=js({bearing:n},this.options.fitBoundsOptions),o=B1.fromLngLat(r,i);this._map.fitBounds(o,a,{geolocateSource:!0})},this._updateMarker=t=>{if(t){let r=new Js(t.coords.longitude,t.coords.latitude);this._accuracyCircleMarker.setLngLat(r).addTo(this._map),this._userLocationDotMarker.setLngLat(r).addTo(this._map),this._accuracy=t.coords.accuracy,this._updateCircleRadiusIfNeeded()}else this._userLocationDotMarker.remove(),this._accuracyCircleMarker.remove()},this._onUpdate=()=>{this._updateCircleRadiusIfNeeded()},this._onError=t=>{if(this._map){if(t.code===1){this._watchState="OFF",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background-error"),this._geolocateButton.disabled=!0;let r=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.title=r,this._geolocateButton.setAttribute("aria-label",r),this._geolocationWatchID!==void 0&&this._clearWatch()}else{if(t.code===3&&YC)return;this._setErrorState()}this._watchState!=="OFF"&&this.options.showUserLocation&&this._dotElement.classList.add("maplibregl-user-location-dot-stale"),this.fire(new wut("error",t)),this._finish()}},this._finish=()=>{this._timeoutId&&clearTimeout(this._timeoutId),this._timeoutId=void 0},this._onMoveStart=t=>{if(!this._map)return;let r=(t==null?void 0:t[0])instanceof ResizeObserverEntry;!t.geolocateSource&&this._watchState==="ACTIVE_LOCK"&&!r&&!this._map.isZooming()&&(this._watchState="BACKGROUND",this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active"),this.fire(new A3("trackuserlocationend")),this.fire(new A3("userlocationlostfocus")))},this._setupUI=()=>{this._map&&(this._container.addEventListener("contextmenu",t=>{t.preventDefault()}),this._geolocateButton=Cl.create("button","maplibregl-ctrl-geolocate",this._container),Cl.create("span","maplibregl-ctrl-icon",this._geolocateButton).setAttribute("aria-hidden","true"),this._geolocateButton.type="button",this._geolocateButton.disabled=!0)},this._finishSetupUI=t=>{if(this._map){if(t===!1){uu("Geolocation support is not available so the GeolocateControl will be disabled.");let r=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.disabled=!0,this._geolocateButton.title=r,this._geolocateButton.setAttribute("aria-label",r)}else{let r=this._map._getUIString("GeolocateControl.FindMyLocation");this._geolocateButton.disabled=!1,this._geolocateButton.title=r,this._geolocateButton.setAttribute("aria-label",r)}this.options.trackUserLocation&&(this._geolocateButton.setAttribute("aria-pressed","false"),this._watchState="OFF"),this.options.showUserLocation&&(this._dotElement=Cl.create("div","maplibregl-user-location-dot"),this._userLocationDotMarker=new Eoe({element:this._dotElement}),this._circleElement=Cl.create("div","maplibregl-user-location-accuracy-circle"),this._accuracyCircleMarker=new Eoe({element:this._circleElement,pitchAlignment:"map"}),this.options.trackUserLocation&&(this._watchState="OFF"),this._map.on("zoom",this._onUpdate),this._map.on("move",this._onUpdate),this._map.on("rotate",this._onUpdate),this._map.on("pitch",this._onUpdate)),this._geolocateButton.addEventListener("click",()=>this.trigger()),this._setup=!0,this.options.trackUserLocation&&this._map.on("movestart",this._onMoveStart)}},this.options=js({},fDr,e)}onAdd(e){return this._map=e,this._container=Cl.create("div","maplibregl-ctrl maplibregl-ctrl-group"),this._setupUI(),sDr().then(t=>this._finishSetupUI(t)),this._container}onRemove(){this._geolocationWatchID!==void 0&&(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(),this._container.remove(),this._map.off("movestart",this._onMoveStart),this._map.off("zoom",this._onUpdate),this._map.off("move",this._onUpdate),this._map.off("rotate",this._onUpdate),this._map.off("pitch",this._onUpdate),this._map=void 0,aO=0,YC=!1}_isOutOfMapMaxBounds(e){let t=this._map.getMaxBounds(),r=e.coords;return t&&(r.longitudet.getEast()||r.latitudet.getNorth())}_setErrorState(){switch(this._watchState){case"WAITING_ACTIVE":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active-error");break;case"ACTIVE_LOCK":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-waiting");break;case"BACKGROUND":this._watchState="BACKGROUND_ERROR",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-waiting");break;case"ACTIVE_ERROR":case"BACKGROUND_ERROR":break;case"OFF":case void 0:break;default:throw Error(`Unexpected watchState ${this._watchState}`)}}_updateCircleRadiusIfNeeded(){let e=this._userLocationDotMarker.getLngLat();if(!this.options.showUserLocation||!this.options.showAccuracyCircle||!this._accuracy||!e)return;let t=this._map.project(e),r=this._map.unproject([t.x+100,t.y]),i=e.distanceTo(r)/100,n=2*this._accuracy/i;this._circleElement.style.width=`${n.toFixed(2)}px`,this._circleElement.style.height=`${n.toFixed(2)}px`}trigger(){if(!this._setup)return uu("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 A3("trackuserlocationstart"));break;case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":case"BACKGROUND_ERROR":aO--,YC=!1,this._watchState="OFF",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background-error"),this.fire(new A3("trackuserlocationend"));break;case"BACKGROUND":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background"),this._lastKnownPosition&&this._updateCamera(this._lastKnownPosition),this.fire(new A3("trackuserlocationstart")),this.fire(new A3("userlocationfocus"));break;default:throw Error(`Unexpected watchState ${this._watchState}`)}switch(this._watchState){case"WAITING_ACTIVE":this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active");break;case"ACTIVE_LOCK":this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active");break;case"OFF":break;default:throw Error(`Unexpected watchState ${this._watchState}`)}if(this._watchState==="OFF"&&this._geolocationWatchID!==void 0)this._clearWatch();else if(this._geolocationWatchID===void 0){this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","true"),aO++;let e;aO>1?(e={maximumAge:6e5,timeout:0},YC=!0):(e=this.options.positionOptions,YC=!1),this._geolocationWatchID=window.navigator.geolocation.watchPosition(this._onSuccess,this._onError,e)}}else window.navigator.geolocation.getCurrentPosition(this._onSuccess,this._onError,this.options.positionOptions),this._timeoutId=setTimeout(this._finish,1e4);return!0}_clearWatch(){window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0,this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","false"),this.options.showUserLocation&&this._updateMarker(null)}},hDr={maxWidth:100,unit:"metric"},dDr=class{constructor(e){this._onMove=()=>{Rst(this._map,this._container,this.options)},this.setUnit=t=>{this.options.unit=t,Rst(this._map,this._container,this.options)},this.options=Gs(Gs({},hDr),e)}getDefaultPosition(){return"bottom-left"}onAdd(e){return this._map=e,this._container=Cl.create("div","maplibregl-ctrl maplibregl-ctrl-scale",e.getContainer()),this._map.on("move",this._onMove),this._onMove(),this._container}onRemove(){this._container.remove(),this._map.off("move",this._onMove),this._map=void 0}};Coe=class extends Wd{},mDr=class extends ah{constructor(e={}){var t;super(),this._onFullscreenChange=()=>{var i;let r=window.document.fullscreenElement||window.document.webkitFullscreenElement;for(;(i=r==null?void 0:r.shadowRoot)!=null&&i.fullscreenElement;)r=r.shadowRoot.fullscreenElement;r===this._container!==this._fullscreen&&this._handleFullscreenChange()},this._onClickFullscreen=()=>{this._isFullscreen()?this._exitFullscreen():this._requestFullscreen()},this._fullscreen=!1,this._pseudo=(t=e.pseudo)!=null?t:!1,e!=null&&e.container&&(e.container instanceof HTMLElement?this._container=e.container:uu("Full screen control 'container' must be a DOM element.")),"onfullscreenchange"in document?this._fullscreenchange="fullscreenchange":"onmozfullscreenchange"in document?this._fullscreenchange="mozfullscreenchange":"onwebkitfullscreenchange"in document?this._fullscreenchange="webkitfullscreenchange":"onmsfullscreenchange"in document&&(this._fullscreenchange="MSFullscreenChange")}onAdd(e){return this._map=e,this._container||(this._container=this._map.getContainer()),this._controlContainer=Cl.create("div","maplibregl-ctrl maplibregl-ctrl-group"),this._setupUI(),this._controlContainer}onRemove(){this._controlContainer.remove(),this._map=null,window.document.removeEventListener(this._fullscreenchange,this._onFullscreenChange)}_setupUI(){let e=this._fullscreenButton=Cl.create("button","maplibregl-ctrl-fullscreen",this._controlContainer);Cl.create("span","maplibregl-ctrl-icon",e).setAttribute("aria-hidden","true"),e.type="button",this._updateTitle(),this._fullscreenButton.addEventListener("click",this._onClickFullscreen),window.document.addEventListener(this._fullscreenchange,this._onFullscreenChange)}_updateTitle(){let e=this._getTitle();this._fullscreenButton.setAttribute("aria-label",e),this._fullscreenButton.title=e}_getTitle(){return this._map._getUIString(this._isFullscreen()?"FullscreenControl.Exit":"FullscreenControl.Enter")}_isFullscreen(){return this._fullscreen}_handleFullscreenChange(){this._fullscreen=!this._fullscreen,this._fullscreenButton.classList.toggle("maplibregl-ctrl-shrink"),this._fullscreenButton.classList.toggle("maplibregl-ctrl-fullscreen"),this._updateTitle(),this._fullscreen?(this.fire(new Coe("fullscreenstart")),this._prevCooperativeGesturesEnabled=this._map.cooperativeGestures.isEnabled(),this._map.cooperativeGestures.disable()):(this.fire(new Coe("fullscreenend")),this._prevCooperativeGesturesEnabled&&this._map.cooperativeGestures.enable())}_exitFullscreen(){this._pseudo?this._togglePseudoFullScreen():window.document.exitFullscreen?window.document.exitFullscreen():window.document.webkitCancelFullScreen?window.document.webkitCancelFullScreen():this._togglePseudoFullScreen()}_requestFullscreen(){this._pseudo?this._togglePseudoFullScreen():this._container.requestFullscreen?this._container.requestFullscreen():this._container.webkitRequestFullscreen?this._container.webkitRequestFullscreen():this._togglePseudoFullScreen()}_togglePseudoFullScreen(){this._container.classList.toggle("maplibregl-pseudo-fullscreen"),this._handleFullscreenChange(),this._map.resize()}},yDr=class{constructor(e){this._toggleTerrain=()=>{this._map.getTerrain()?this._map.setTerrain(null):this._map.setTerrain(this.options),this._updateTerrainIcon()},this._updateTerrainIcon=()=>{this._terrainButton.classList.remove("maplibregl-ctrl-terrain"),this._terrainButton.classList.remove("maplibregl-ctrl-terrain-enabled"),this._map.terrain?(this._terrainButton.classList.add("maplibregl-ctrl-terrain-enabled"),this._terrainButton.title=this._map._getUIString("TerrainControl.Disable")):(this._terrainButton.classList.add("maplibregl-ctrl-terrain"),this._terrainButton.title=this._map._getUIString("TerrainControl.Enable"))},this.options=e}onAdd(e){return this._map=e,this._container=Cl.create("div","maplibregl-ctrl maplibregl-ctrl-group"),this._terrainButton=Cl.create("button","maplibregl-ctrl-terrain",this._container),Cl.create("span","maplibregl-ctrl-icon",this._terrainButton).setAttribute("aria-hidden","true"),this._terrainButton.type="button",this._terrainButton.addEventListener("click",this._toggleTerrain),this._updateTerrainIcon(),this._map.on("terrain",this._updateTerrainIcon),this._container}onRemove(){this._container.remove(),this._map.off("terrain",this._updateTerrainIcon),this._map=void 0}},gDr=class{constructor(){this._toggleProjection=()=>{var t;let e=(t=this._map.getProjection())==null?void 0:t.type;e==="mercator"||!e?this._map.setProjection({type:"globe"}):this._map.setProjection({type:"mercator"}),this._updateGlobeIcon()},this._updateGlobeIcon=()=>{var e;this._globeButton.classList.remove("maplibregl-ctrl-globe"),this._globeButton.classList.remove("maplibregl-ctrl-globe-enabled"),((e=this._map.getProjection())==null?void 0:e.type)==="globe"?(this._globeButton.classList.add("maplibregl-ctrl-globe-enabled"),this._globeButton.title=this._map._getUIString("GlobeControl.Disable")):(this._globeButton.classList.add("maplibregl-ctrl-globe"),this._globeButton.title=this._map._getUIString("GlobeControl.Enable"))}}onAdd(e){return this._map=e,this._container=Cl.create("div","maplibregl-ctrl maplibregl-ctrl-group"),this._globeButton=Cl.create("button","maplibregl-ctrl-globe",this._container),Cl.create("span","maplibregl-ctrl-icon",this._globeButton).setAttribute("aria-hidden","true"),this._globeButton.type="button",this._globeButton.addEventListener("click",this._toggleProjection),this._updateGlobeIcon(),this._map.on("styledata",this._updateGlobeIcon),this._map.on("projectiontransition",this._updateGlobeIcon),this._container}onRemove(){this._container.remove(),this._map.off("styledata",this._updateGlobeIcon),this._map.off("projectiontransition",this._updateGlobeIcon),this._globeButton.removeEventListener("click",this._toggleProjection),this._map=void 0}},xDr={closeButton:!0,closeOnClick:!0,focusAfterOpen:!0,className:"",maxWidth:"240px",subpixelPositioning:!1,locationOccludedOpacity:void 0,padding:void 0},bDr=["a[href]","[tabindex]:not([tabindex='-1'])","[contenteditable]:not([contenteditable='false'])","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].join(", "),Doe=class extends Wd{},_Dr=class extends ah{constructor(e){super(),this._updateOpacity=()=>{this.options.locationOccludedOpacity!==void 0&&(this._map._camera.transform.isLocationOccluded(this.getLngLat())?this._container.style.opacity=`${this.options.locationOccludedOpacity}`:this._container.style.opacity="")},this.remove=()=>(this._content&&this._content.remove(),this._container&&(this._container.remove(),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("terrain",this._update),this._map.off("projectiontransition",this._update),this._map.off("idle",this._update),this._map.off("mousemove",this._update),this._map.off("mouseup",this._update),this._map.off("drag",this._update),this._map._canvasContainer.classList.remove("maplibregl-track-pointer"),delete this._map,this.fire(new Doe("close"))),this),this._update=t=>{let r=this._lngLat||this._trackPointer;if(!this._map||!r||!this._content)return;if(!this._container){if(this._container=Cl.create("div","maplibregl-popup",this._map.getContainer()),this._tip=Cl.create("div","maplibregl-popup-tip",this._container),this._container.appendChild(this._content),this.options.className)for(let l of this.options.className.split(" "))this._container.classList.add(l);this._closeButton&&this._closeButton.setAttribute("aria-label",this._map._getUIString("Popup.Close")),this._trackPointer&&this._container.classList.add("maplibregl-popup-track-pointer")}this.options.maxWidth&&this._container.style.maxWidth!==this.options.maxWidth&&(this._container.style.maxWidth=this.options.maxWidth),this._lngLat=gut(this._lngLat,this._flatPos,this._map._camera.transform,this._trackPointer);let i;if(t&&"point"in t&&t.point&&(i=t.point),this._trackPointer&&!i)return;let n=this._flatPos=this._pos=this._trackPointer&&i?i:this._map.project(this._lngLat);this._map.terrain&&(this._flatPos=this._trackPointer&&i?i:this._map._camera.transform.locationToScreenPoint(this._lngLat));let a=this.options.anchor,o=Aut(this.options.offset);if(!a){let l=this._container.offsetWidth,u=this._container.offsetHeight,f=wDr(this.options.padding),c;c=n.y+o.bottom.ythis._map._camera.transform.height-u-f.bottom?["bottom"]:[],n.xthis._map._camera.transform.width-l/2-f.right&&c.push("right"),a=c.length===0?"bottom":c.join("-")}let s=n.add(o[a]);this.options.subpixelPositioning||(s=s.round()),this._container.style.transform=`${Joe[a]} translate(${s.x}px,${s.y}px)`,xut(this._container,a,"popup"),this._updateOpacity()},this._onClose=()=>{this.remove()},this.options=js(Object.create(xDr),e)}addTo(e){return this._map&&this.remove(),this._map=e,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._map.on("terrain",this._update),this._map.on("projectiontransition",this._update),this._map.on("idle",this._update),this._update(),this._focusFirstElement(),this._trackPointer?(this._map.on("mousemove",this._update),this._map.on("mouseup",this._update),this._container&&this._container.classList.add("maplibregl-popup-track-pointer"),this._map._canvasContainer.classList.add("maplibregl-track-pointer")):this._map.on("move",this._update),this.fire(new Doe("open")),this}isOpen(){return!!this._map}getLngLat(){return this._lngLat}setLngLat(e){return this._lngLat=Js.convert(e),this._pos=null,this._flatPos=null,this._trackPointer=!1,this._update(),this._map&&(this._map.on("move",this._update),this._map.off("mousemove",this._update),this._container&&this._container.classList.remove("maplibregl-popup-track-pointer"),this._map._canvasContainer.classList.remove("maplibregl-track-pointer")),this}trackPointer(){return this._trackPointer=!0,this._pos=null,this._flatPos=null,this._update(),this._map&&(this._map.off("move",this._update),this._map.on("mousemove",this._update),this._map.on("drag",this._update),this._container&&this._container.classList.add("maplibregl-popup-track-pointer"),this._map._canvasContainer.classList.add("maplibregl-track-pointer")),this}getElement(){return this._container}setText(e){return this.setDOMContent(document.createTextNode(e))}setHTML(e){let t=document.createDocumentFragment(),r=document.createElement("body"),i;for(r.innerHTML=e;i=r.firstChild,i;)t.appendChild(i);return this.setDOMContent(t)}getMaxWidth(){var e;return(e=this._container)==null?void 0:e.style.maxWidth}setMaxWidth(e){return this.options.maxWidth=e,this._update(),this}setDOMContent(e){if(this._content)for(;this._content.hasChildNodes();)this._content.firstChild&&this._content.removeChild(this._content.firstChild);else this._content=Cl.create("div","maplibregl-popup-content",this._container);return this._content.appendChild(e),this._createCloseButton(),this._update(),this._focusFirstElement(),this}addClassName(e){return this._container&&this._container.classList.add(e),this}removeClassName(e){return this._container&&this._container.classList.remove(e),this}setOffset(e){return this.options.offset=e,this._update(),this}toggleClassName(e){if(this._container)return this._container.classList.toggle(e)}setSubpixelPositioning(e){this.options.subpixelPositioning=e}setPadding(e){this.options.padding=e,this._update()}_createCloseButton(){this.options.closeButton&&(this._closeButton=Cl.create("button","maplibregl-popup-close-button",this._content),this._closeButton.type="button",this._closeButton.innerHTML="×",this._closeButton.addEventListener("click",this._onClose))}_focusFirstElement(){if(!this.options.focusAfterOpen||!this._container)return;let e=this._container.querySelector(bDr);e&&e.focus()}};ADr=Bst});var kut=K((Pfi,Eut)=>{"use strict";Eut.exports='var D1=Object.defineProperty,_1=Object.defineProperties;var A1=Object.getOwnPropertyDescriptors;var lh=Object.getOwnPropertySymbols;var S1=Object.prototype.hasOwnProperty,E1=Object.prototype.propertyIsEnumerable;var uh=(t,e,r)=>e in t?D1(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Xe=(t,e)=>{for(var r in e||(e={}))S1.call(e,r)&&uh(t,r,e[r]);if(lh)for(var r of lh(e))E1.call(e,r)&&uh(t,r,e[r]);return t},Si=(t,e)=>_1(t,A1(e));var et=(t,e,r)=>new Promise((i,n)=>{var a=l=>{try{o(r.next(l))}catch(u){n(u)}},s=l=>{try{o(r.throw(l))}catch(u){n(u)}},o=l=>l.done?i(l.value):Promise.resolve(l.value).then(a,s);o((r=r.apply(t,e)).next())});var F1=Object.create,Dp=Object.defineProperty,T1=Object.getOwnPropertyDescriptor,k1=Object.getOwnPropertyNames,I1=Object.getPrototypeOf,_p=Object.prototype.hasOwnProperty,ml=(t,e)=>()=>(e||(t((e={exports:{}}).exports,e),t=null),e.exports),C1=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(var n=k1(e),a=0,s=n.length,o;ae[l]).bind(null,o),enumerable:!(i=T1(e,o))||i.enumerable});return t},M1=(t,e,r)=>(r=t==null?{}:F1(I1(t)),C1(e||!t||!t.__esModule||!_p.call(t,"default")?Dp(r,"default",{value:t,enumerable:!0}):r,t));function M(t,e){this.x=t,this.y=e}M.prototype={clone(){return new M(this.x,this.y)},add(t){return this.clone()._add(t)},sub(t){return this.clone()._sub(t)},multByPoint(t){return this.clone()._multByPoint(t)},divByPoint(t){return this.clone()._divByPoint(t)},mult(t){return this.clone()._mult(t)},div(t){return this.clone()._div(t)},rotate(t){return this.clone()._rotate(t)},rotateAround(t,e){return this.clone()._rotateAround(t,e)},matMult(t){return this.clone()._matMult(t)},unit(){return this.clone()._unit()},perp(){return this.clone()._perp()},round(){return this.clone()._round()},mag(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals(t){return this.x===t.x&&this.y===t.y},dist(t){return Math.sqrt(this.distSqr(t))},distSqr(t){let e=t.x-this.x,r=t.y-this.y;return e*e+r*r},angle(){return Math.atan2(this.y,this.x)},angleTo(t){return Math.atan2(this.y-t.y,this.x-t.x)},angleWith(t){return this.angleWithSep(t.x,t.y)},angleWithSep(t,e){return Math.atan2(this.x*e-this.y*t,this.x*t+this.y*e)},_matMult(t){let e=t[0]*this.x+t[1]*this.y,r=t[2]*this.x+t[3]*this.y;return this.x=e,this.y=r,this},_add(t){return this.x+=t.x,this.y+=t.y,this},_sub(t){return this.x-=t.x,this.y-=t.y,this},_mult(t){return this.x*=t,this.y*=t,this},_div(t){return this.x/=t,this.y/=t,this},_multByPoint(t){return this.x*=t.x,this.y*=t.y,this},_divByPoint(t){return this.x/=t.x,this.y/=t.y,this},_unit(){return this._div(this.mag()),this},_perp(){let t=this.y;return this.y=this.x,this.x=-t,this},_rotate(t){let e=Math.cos(t),r=Math.sin(t),i=e*this.x-r*this.y,n=r*this.x+e*this.y;return this.x=i,this.y=n,this},_rotateAround(t,e){let r=Math.cos(t),i=Math.sin(t),n=e.x+r*(this.x-e.x)-i*(this.y-e.y),a=e.y+i*(this.x-e.x)+r*(this.y-e.y);return this.x=n,this.y=a,this},_round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},constructor:M},M.convert=function(t){if(t instanceof M)return t;if(Array.isArray(t))return new M(+t[0],+t[1]);if(t.x!==void 0&&t.y!==void 0)return new M(+t.x,+t.y);throw Error("Expected [x, y] or {x, y} point format")};function B1(t,e,r,i){let n=3*t,a=3*(r-t)-n,s=1-n-a,o=3*e,l=3*(i-e)-o,u=1-o-l;return function(h,c=1e-6){if(h<=0)return 0;if(h>=1)return 1;let p=h;for(let y=0;y<8;y++){let m=((s*p+a)*p+n)*p-h;if(Math.abs(m)m?f=p:d=p,p=(f+d)*.5}return((u*p+l)*p+o)*p}}var Ei;function P1(){return Ei!=null||(Ei=typeof OffscreenCanvas<"u"&&!!new OffscreenCanvas(1,1).getContext("2d")&&typeof createImageBitmap=="function"),Ei}var Xn;function z1(){if(Xn==null&&(Xn=!1,P1())){let t=new OffscreenCanvas(5,5).getContext("2d",{willReadFrequently:!0});if(t){for(let r=0;r<25;r++){let i=r*4;t.fillStyle=`rgb(${i},${i+1},${i+2})`,t.fillRect(r%5,Math.floor(r/5),1,1)}let e=t.getImageData(0,0,5,5).data;for(let r=0;r<100;r++)if(r%4!=3&&e[r]!==r){Xn=!0;break}}}return Xn||!1}var fe=typeof Float32Array<"u"?Float32Array:Array;function L1(){var t=new fe(9);return fe!=Float32Array&&(t[1]=0,t[2]=0,t[3]=0,t[5]=0,t[6]=0,t[7]=0),t[0]=1,t[4]=1,t[8]=1,t}function Ap(){var t=new fe(3);return fe!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0),t}function V1(t){var e=t[0],r=t[1],i=t[2];return Math.sqrt(e*e+r*r+i*i)}function hh(t,e,r){var i=new fe(3);return i[0]=t,i[1]=e,i[2]=r,i}function O1(t,e){var r=e[0],i=e[1],n=e[2],a=r*r+i*i+n*n;return a>0&&(a=1/Math.sqrt(a)),t[0]=e[0]*a,t[1]=e[1]*a,t[2]=e[2]*a,t}function R1(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function ks(t,e,r){var i=e[0],n=e[1],a=e[2],s=r[0],o=r[1],l=r[2];return t[0]=n*l-a*o,t[1]=a*s-i*l,t[2]=i*o-n*s,t}var $1=V1;(function(){var t=Ap();return function(e,r,i,n,a,s){var o,l;for(r||(r=3),i||(i=0),l=n?Math.min(n*r+i,e.length):e.length,o=i;o0&&(s=1/Math.sqrt(s)),t[0]=r*s,t[1]=i*s,t[2]=n*s,t[3]=a*s,t}function q1(t,e,r){var i=e[0],n=e[1],a=e[2],s=e[3];return t[0]=r[0]*i+r[4]*n+r[8]*a+r[12]*s,t[1]=r[1]*i+r[5]*n+r[9]*a+r[13]*s,t[2]=r[2]*i+r[6]*n+r[10]*a+r[14]*s,t[3]=r[3]*i+r[7]*n+r[11]*a+r[15]*s,t}(function(){var t=N1();return function(e,r,i,n,a,s){var o,l;for(r||(r=4),i||(i=0),l=n?Math.min(n*r+i,e.length):e.length,o=i;o1e-6?(p=Math.acos(f),d=Math.sin(p),y=Math.sin((1-i)*p)/d,m=Math.sin(i*p)/d):(y=1-i,m=i),t[0]=y*n+m*l,t[1]=y*a+m*u,t[2]=y*s+m*h,t[3]=y*o+m*c,t}function G1(t,e){var r=e[0]+e[4]+e[8],i;if(r>0)i=Math.sqrt(r+1),t[3]=.5*i,i=.5/i,t[0]=(e[5]-e[7])*i,t[1]=(e[6]-e[2])*i,t[2]=(e[1]-e[3])*i;else{var n=0;e[4]>e[0]&&(n=1),e[8]>e[n*3+n]&&(n=2);var a=(n+1)%3,s=(n+2)%3;i=Math.sqrt(e[n*3+n]-e[a*3+a]-e[s*3+s]+1),t[n]=.5*i,i=.5/i,t[3]=(e[a*3+s]-e[s*3+a])*i,t[a]=(e[a*3+n]+e[n*3+a])*i,t[s]=(e[s*3+n]+e[n*3+s])*i}return t}var ph=U1;(function(){var t=Ap(),e=hh(1,0,0),r=hh(0,1,0);return function(i,n,a){var s=R1(n,a);return s<-.999999?(ks(t,e,n),$1(t)<1e-6&&ks(t,r,n),O1(t,t),j1(i,t,Math.PI),i):s>.999999?(i[0]=0,i[1]=0,i[2]=0,i[3]=1,i):(ks(t,n,a),i[0]=t[0],i[1]=t[1],i[2]=t[2],i[3]=1+s,ph(i,i))}})(),(function(){var t=ch(),e=ch();return function(r,i,n,a,s,o){return Is(t,i,s,o),Is(e,n,a,o),Is(r,t,e,2*o*(1-o)),r}})(),(function(){var t=L1();return function(e,r,i,n){return t[0]=i[0],t[3]=i[1],t[6]=i[2],t[1]=n[0],t[4]=n[1],t[7]=n[2],t[2]=-r[0],t[5]=-r[1],t[8]=-r[2],ph(e,G1(e,t))}})();function X1(){var t=new fe(2);return fe!=Float32Array&&(t[0]=0,t[1]=0),t}(function(){var t=X1();return function(e,r,i,n,a,s){var o,l;for(r||(r=2),i||(i=0),l=n?Math.min(n*r+i,e.length):e.length,o=i;o=1)return 1;let e=t*t,r=e*t;return 4*(t<.5?r:3*(t-e)+r-.75)}function W1(t,e,r,i){return B1(t,e,r,i)}var D5=W1(.25,.1,.25,1);function en(t,e,r){return Math.min(r,Math.max(e,t))}function Z1(t,e,r){let i=r-e,n=((t-e)%i+i)%i+e;return n===e?r:n}function Xt(t,...e){for(let r of e)for(let i in r)t[i]=r[i];return t}function H1(t){return Math.log(t)/Math.LN2%1==0}function xn(t,e,r){let i={};for(let n in t)i[n]=e.call(r||this,t[n],n,t);return i}function K1(t,e,r){let i={};for(let n in t)e.call(r||this,t[n],n,t)&&(i[n]=t[n]);return i}function to(t,e){if(Array.isArray(t)){if(!Array.isArray(e)||t.length!==e.length)return!1;for(let r=0;r(e.y-t.y)*(r.x-t.x)}function vr(t){return typeof WorkerGlobalScope<"u"&&t!==void 0&&t instanceof WorkerGlobalScope}function Ba(t){return typeof ImageBitmap<"u"&&t instanceof ImageBitmap}function J1(t,e,r,i,n){let a=Math.max(-e,0)*4,s=(Math.max(0,r)-r)*i*4+a,o=i*4,l=Math.max(0,e),u=Math.max(0,r),h=Math.min(t.width,e+i),c=Math.min(t.height,r+n);return{rect:{x:l,y:u,width:h-l,height:c-u},layout:[{offset:s,stride:o}]}}function Q1(t,e,r,i,n){return et(this,null,function*(){if(typeof VideoFrame>"u")throw Error("VideoFrame not supported");let a=new VideoFrame(t,{timestamp:0});try{let s=a==null?void 0:a.format;if(!s||!(s.startsWith("BGR")||s.startsWith("RGB")))throw Error(`Unrecognized format ${s}`);let o=s.startsWith("BGR"),l=new Uint8ClampedArray(i*n*4);if(yield a.copyTo(l,J1(t,e,r,i,n)),o)for(let u=0;u{t.removeEventListener(e,r,i)}}}function yh(t){return t*Math.PI/180}var mh="AbortError",gl=class extends Error{constructor(t=mh){super(t instanceof Error?t.message:t),this.name=mh,t instanceof Error&&t.stack&&(this.stack=t.stack)}};function xl(t){return t instanceof Error&&t.name==="AbortError"}function e0(t){if(t.aborted)throw new gl(t.reason)}var vl={MAX_PARALLEL_IMAGE_REQUESTS:16,MAX_PARALLEL_IMAGE_REQUESTS_PER_FRAME:8,MAX_TILE_CACHE_ZOOM_LEVELS:5,REGISTERED_PROTOCOLS:{},WORKER_URL:""};function r0(t){return vl.REGISTERED_PROTOCOLS[t.substring(0,t.indexOf("://"))]}function Fp(t,e){vl.REGISTERED_PROTOCOLS[t]=e}function Tp(t){delete vl.REGISTERED_PROTOCOLS[t]}var gh="global-dispatcher",ga=class extends Error{constructor(t,e,r,i){super(`AJAXError: ${e} (${t}): ${r}`),this.status=t,this.statusText=e,this.url=r,this.body=i}};function kp(){var t;if(vr(self))return(t=self.worker)==null?void 0:t.referrer;if(window.location.protocol==="blob:")try{return window.parent.location.href}catch(e){}return window.location.href}var i0=t=>{var e;return t.startsWith("file:")||((e=kp())==null?void 0:e.startsWith("file:"))&&!/^\\w+:/.test(t)};function n0(t,e){return et(this,null,function*(){let r=new Request(t.url,{method:t.method||"GET",body:t.body,credentials:t.credentials,headers:t.headers,cache:t.cache,referrer:kp(),referrerPolicy:t.referrerPolicy,signal:e.signal});t.type==="json"&&!r.headers.has("Accept")&&r.headers.set("Accept","application/json");let i;try{i=yield fetch(r)}catch(s){throw xl(s)?s:new ga(0,tn(s).message,t.url,new Blob)}if(!i.ok){let s=yield i.blob();throw new ga(i.status,i.statusText,t.url,s)}let n;n=t.type==="arrayBuffer"||t.type==="image"?i.arrayBuffer():t.type==="json"?i.json():i.text();let a=yield n;return e0(e.signal),{data:a,cacheControl:i.headers.get("Cache-Control"),expires:i.headers.get("Expires"),etag:i.headers.get("ETag")}})}function a0(t,e){return new Promise((r,i)=>{var a;let n=new XMLHttpRequest;n.open(t.method||"GET",t.url,!0),(t.type==="arrayBuffer"||t.type==="image")&&(n.responseType="arraybuffer");for(let s in t.headers)n.setRequestHeader(s,t.headers[s]);t.type==="json"&&(n.responseType="text",(a=t.headers)!=null&&a.Accept||n.setRequestHeader("Accept","application/json")),n.withCredentials=t.credentials==="include",n.onerror=()=>{i(Error(n.statusText))},n.onload=()=>{if(!e.signal.aborted)if((n.status>=200&&n.status<300||n.status===0)&&n.response!==null){let s=n.response;if(t.type==="json")try{s=JSON.parse(n.response)}catch(o){i(o);return}r({data:s,cacheControl:n.getResponseHeader("Cache-Control"),expires:n.getResponseHeader("Expires"),etag:n.getResponseHeader("ETag")})}else{let s=new Blob([n.response],{type:n.getResponseHeader("Content-Type")});i(new ga(n.status,n.statusText,t.url,s))}},e.signal.addEventListener("abort",()=>{n.abort(),i(new gl(e.signal.reason))}),n.send(t.body)})}var Pa=function(t,e){return et(this,null,function*(){var r,i;if(t.url.includes("://")&&!/^https?:|^file:/.test(t.url)){let n=r0(t.url);if(n){let a=yield n(t,e);return!a.data&&t.type==="arrayBuffer"?Xt(a,{data:new ArrayBuffer(0)}):a}if(vr(self)&&((r=self.worker)!=null&&r.actor))return self.worker.actor.sendAsync({type:"GR",data:t,targetMapId:gh},e)}if(!i0(t.url)){if(fetch&&Request&&AbortController&&Object.hasOwn(Request.prototype,"signal"))return n0(t,e);if(vr(self)&&((i=self.worker)!=null&&i.actor))return self.worker.actor.sendAsync({type:"GR",data:t,mustQueue:!0,targetMapId:gh},e)}return a0(t,e)})},Ip=(t,e)=>Pa(Xt(t,{type:"json"}),e),Cp=(t,e)=>Pa(Xt(t,{type:"arrayBuffer"}),e);function xh(t,e,r){var i;(i=r[t])!=null&&i.includes(e)||(r[t]||(r[t]=[]),r[t].push(e))}function Cs(t,e,r){if(r!=null&&r[t]){let i=r[t].indexOf(e);i!==-1&&r[t].splice(i,1)}}var Mp=class{constructor(t,e={}){Xt(this,e),this.type=t}},xa=class extends Mp{constructor(t,e={}){super("error",Xt({error:t},e))}},s0=class{on(t,e){return this._listeners||(this._listeners={}),xh(t,e,this._listeners),{unsubscribe:()=>{this.off(t,e)}}}off(t,e){return Cs(t,e,this._listeners),Cs(t,e,this._oneTimeListeners),this}once(t,e){return e?(this._oneTimeListeners||(this._oneTimeListeners={}),xh(t,e,this._oneTimeListeners),this):new Promise(r=>this.once(t,r))}fire(t,e){var n,a,s,o,l,u;let r=typeof t=="string"?new Mp(t,e||{}):t,i=r.type;if(this.listens(i)){r.target=this;let h=(s=(a=(n=this._listeners)==null?void 0:n[i])==null?void 0:a.slice())!=null?s:[];for(let f of h)f.call(this,r);let c=(u=(l=(o=this._oneTimeListeners)==null?void 0:o[i])==null?void 0:l.slice())!=null?u:[];for(let f of c)Cs(i,f,this._oneTimeListeners),f.call(this,r);let p=this._eventedParent;p&&(Xt(r,typeof this._eventedParentData=="function"?this._eventedParentData():this._eventedParentData),p.fire(r))}else r instanceof xa&&console.error(r.error);return this}listens(t){var e,r,i,n,a;return!!((r=(e=this._listeners)==null?void 0:e[t])!=null&&r.length||(n=(i=this._oneTimeListeners)==null?void 0:i[t])!=null&&n.length||(a=this._eventedParent)!=null&&a.listens(t))}setEventedParent(t,e){return this._eventedParent=t,this._eventedParentData=e,this}},Bp={$version:8,$root:{version:{required:!0,type:"enum",values:[8]},name:{type:"string"},metadata:{type:"*"},center:{type:"array",value:"number",length:2},centerAltitude:{type:"number"},zoom:{type:"number"},bearing:{type:"number",default:0,period:360,units:"degrees"},pitch:{type:"number",default:0,units:"degrees"},roll:{type:"number",default:0,units:"degrees"},state:{type:"state",default:{}},light:{type:"light"},sky:{type:"sky"},projection:{type:"projection"},terrain:{type:"terrain"},sources:{required:!0,type:"sources"},sprite:{type:"sprite"},glyphs:{type:"string"},"font-faces":{type:"fontFaces"},transition:{type:"transition"},layers:{required:!0,type:"array",value:"layer"}},sources:{"*":{type:"source"}},source:["source_vector","source_raster","source_raster_dem","source_geojson","source_video","source_image"],source_vector:{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},encoding:{type:"enum",values:{mvt:{},mlt:{}},default:"mvt"},"*":{type:"*"}},source_raster:{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:"*"}},source_raster_dem:{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:{},custom:{}},default:"mapbox"},redFactor:{type:"number",default:1},blueFactor:{type:"number",default:1},greenFactor:{type:"number",default:1},baseShift:{type:"number",default:0},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_geojson:{type:{required:!0,type:"enum",values:{geojson:{}}},data:{required:!0,type:"*"},maxzoom:{type:"number",default:18},attribution:{type:"string"},buffer:{type:"number",default:128,maximum:512,minimum:0},filter:{type:"filter"},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"}},source_video:{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"}}},source_image:{type:{required:!0,type:"enum",values:{image:{}}},url:{type:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},layer:{id:{type:"string",required:!0},type:{type:"enum",values:{fill:{},line:{},symbol:{},circle:{},heatmap:{},"fill-extrusion":{},raster:{},hillshade:{},"color-relief":{},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"}},layout:["layout_fill","layout_line","layout_circle","layout_heatmap","layout_fill-extrusion","layout_symbol","layout_raster","layout_hillshade","layout_color-relief","layout_background"],layout_background:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible",expression:{interpolated:!1,parameters:["global-state"]},"property-type":"data-constant"}},layout_fill:{"fill-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible",expression:{interpolated:!1,parameters:["global-state"]},"property-type":"data-constant"}},layout_circle:{"circle-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible",expression:{interpolated:!1,parameters:["global-state"]},"property-type":"data-constant"}},layout_heatmap:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible",expression:{interpolated:!1,parameters:["global-state"]},"property-type":"data-constant"}},"layout_fill-extrusion":{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible",expression:{interpolated:!1,parameters:["global-state"]},"property-type":"data-constant"},"fill-extrusion-rounded-corner-distance":{type:"number",default:0,minimum:0,units:"meters","property-type":"constant"}},layout_line:{"line-cap":{type:"enum",values:{butt:{},round:{},square:{}},default:"butt",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"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","feature"]},"property-type":"data-driven"},"line-round-limit":{type:"number",default:1.05,requires:[{"line-join":"round"}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible",expression:{interpolated:!1,parameters:["global-state"]},"property-type":"data-constant"}},layout_symbol:{"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",{"!":"icon-overlap"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-overlap":{type:"enum",values:{never:{},always:{},cooperative:{}},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","feature"]},"property-type":"data-driven"},"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:"padding",default:[2],units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"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:{},"viewport-glyph":{},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-variable-anchor-offset":{type:"variableAnchorOffsetCollection",requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"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",{"!":"text-overlap"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-overlap":{type:"enum",values:{never:{},always:{},cooperative:{}},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"},"symbol-height-offset":{type:"number",default:0,units:"meters",requires:[{"symbol-placement":["point"]}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"symbol-height-anchor":{type:"enum",values:{ground:{},absolute:{}},default:"ground",requires:["symbol-height-offset"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible",expression:{interpolated:!1,parameters:["global-state"]},"property-type":"data-constant"}},layout_raster:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible",expression:{interpolated:!1,parameters:["global-state"]},"property-type":"data-constant"}},layout_hillshade:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible",expression:{interpolated:!1,parameters:["global-state"]},"property-type":"data-constant"}},"layout_color-relief":{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible",expression:{interpolated:!1,parameters:["global-state"]},"property-type":"data-constant"}},filter:{type:"boolean",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},filter_operator:{type:"enum",values:{"==":{},"!=":{},">":{},">=":{},"<":{},"<=":{},in:{},"!in":{},all:{},any:{},none:{},has:{},"!has":{}}},geometry_type:{type:"enum",values:{Point:{},LineString:{},Polygon:{}}},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:{type:"array",minimum:0,maximum:24,value:["number","color"],length:2},expression:{type:"array",value:"expression_name",minimum:1},light:{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}},sky:{"sky-color":{type:"color","property-type":"data-constant",default:"#88C6FC",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"horizon-color":{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"fog-color":{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"fog-ground-blend":{type:"number","property-type":"data-constant",default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"horizon-fog-blend":{type:"number","property-type":"data-constant",default:.8,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"sky-horizon-blend":{type:"number","property-type":"data-constant",default:.8,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"atmosphere-blend":{type:"number","property-type":"data-constant",default:.8,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0}},terrain:{source:{type:"string",required:!0},exaggeration:{type:"number",minimum:0,default:1}},projection:{type:{type:"projectionDefinition",default:"mercator","property-type":"data-constant",transition:!1,expression:{interpolated:!0,parameters:["zoom"]}}},paint:["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_symbol","paint_raster","paint_hillshade","paint_color-relief","paint_background"],paint_fill:{"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-layer-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","global-state"]},"property-type":"data-constant"},"fill-color":{type:"color",default:"#000000",transition:!0,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"}},"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,units:"meters",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{type:"number",default: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:{"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-layer-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","global-state"]},"property-type":"data-constant"},"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","feature"]},"property-type":"cross-faded-data-driven"},"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"}},paint_circle:{"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"}},paint_heatmap:{"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"}},paint_symbol:{"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"}},paint_raster:{"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"},resampling:{type:"enum",values:{linear:{},nearest:{}},default:"linear",expression:{interpolated:!1,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"}},paint_hillshade:{"hillshade-illumination-direction":{type:"numberArray",default:335,minimum:0,maximum:359,transition:!1,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-illumination-altitude":{type:"numberArray",default:45,minimum:0,maximum:90,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:"colorArray",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-highlight-color":{type:"colorArray",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"},"hillshade-method":{type:"enum",values:{standard:{},basic:{},combined:{},igor:{},multidirectional:{}},default:"standard",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},resampling:{type:"enum",values:{linear:{},nearest:{}},default:"linear",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},"paint_color-relief":{"color-relief-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"color-relief-color":{type:"color",transition:!1,expression:{interpolated:!0,parameters:["elevation"]},"property-type":"color-ramp"},resampling:{type:"enum",values:{linear:{},nearest:{}},default:"linear",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_background:{"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"}},transition:{duration:{type:"number",default:300,minimum:0,units:"milliseconds"},delay:{type:"number",default:0,minimum:0,units:"milliseconds"}},"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:{"*":{type:"string"}},interpolation:{type:"array",value:"interpolation_name",minimum:1},interpolation_name:{type:"enum",values:{linear:{syntax:{overloads:[{parameters:[],"output-type":"interpolation"}],parameters:[]}},exponential:{syntax:{overloads:[{parameters:["base"],"output-type":"interpolation"}],parameters:[{name:"base",type:"number literal"}]}},"cubic-bezier":{syntax:{overloads:[{parameters:["x1","y1","x2","y2"],"output-type":"interpolation"}],parameters:[{name:"x1",type:"number literal"},{name:"y1",type:"number literal"},{name:"x2",type:"number literal"},{name:"y2",type:"number literal"}]}}}}},D=Bp,Pp=["type","source","source-layer","minzoom","maxzoom","filter","layout"],E=class{constructor(t,e,r,i,n="error"){this.message=(t?`${t}: `:"")+r,i&&(this.identifier=i),this.severity=n,e!=null&&e.__line__&&(this.line=e.__line__)}},vn={kind:"null"},I={kind:"number"},W={kind:"string"},Q={kind:"boolean"},pe={kind:"color"},za={kind:"projectionDefinition"},mr={kind:"object"},H={kind:"value"},o0={kind:"error"},La={kind:"collator"},bn={kind:"formatted"},Va={kind:"padding"},rn={kind:"colorArray"},Oa={kind:"numberArray"},wn={kind:"resolvedImage"},Ra={kind:"variableAnchorOffsetCollection"};function Ut(t,e){return{kind:"array",itemType:t,N:e}}function mt(t){if(t.kind==="array"){let e=mt(t.itemType);return typeof t.N=="number"?`array<${e}, ${t.N}>`:t.itemType.kind==="value"?"array":`array<${e}>`}return t.kind}var l0=[vn,I,W,Q,pe,za,bn,mr,Ut(H),Va,Oa,rn,wn,Ra];function nn(t,e){if(e.kind==="error")return null;if(t.kind==="array"){if(e.kind==="array"&&(e.N===0&&e.itemType.kind==="value"||!nn(t.itemType,e.itemType))&&(typeof t.N!="number"||t.N===e.N))return null}else{if(t.kind===e.kind)return null;if(t.kind==="value"){for(let r of l0)if(!nn(r,e))return null}}return`Expected ${mt(t)} but found ${mt(e)} instead.`}function bl(t,e){return e.some(r=>r.kind===t.kind)}function gr(t,e){return e.some(r=>r==="null"?t===null:r==="array"?Array.isArray(t):r==="object"?t&&!Array.isArray(t)&&typeof t=="object":r===typeof t)}function Ye(t,e){return t.kind==="array"&&e.kind==="array"?t.itemType.kind===e.itemType.kind&&typeof t.N=="number":t.kind===e.kind}var zp=.96422,Lp=.82521,Vp=4/29,eo=6/29,Op=3*eo*eo,u0=Math.PI/180,h0=180/Math.PI;function Rp(t){return t%=360,t<0&&(t+=360),t}function $p([t,e,r,i]){t=Ms(t),e=Ms(e),r=Ms(r);let n,a,s=Bs((.2225045*t+.7168786*e+.0606169*r)/1);t===e&&e===r?n=a=s:(n=Bs((.4360747*t+.3850649*e+.1430804*r)/zp),a=Bs((.0139322*t+.0971045*e+.7141733*r)/Lp));let o=116*s-16;return[o<0?0:o,500*(n-s),200*(s-a),i]}function Ms(t){return t<=.04045?t/12.92:((t+.055)/1.055)**2.4}function Bs(t){return t>.008856451679035631?t**(1/3):t/Op+Vp}function Np([t,e,r,i]){let n=(t+16)/116,a=isNaN(e)?n:n+e/500,s=isNaN(r)?n:n-r/200;return n=1*zs(n),a=zp*zs(a),s=Lp*zs(s),[Ps(3.1338561*a-1.6168667*n-.4906146*s),Ps(-.9787684*a+1.9161415*n+.033454*s),Ps(.0719453*a-.2289914*n+1.4052427*s),i]}function Ps(t){return t=t<=.00304?12.92*t:1.055*t**(1/2.4)-.055,t<0?0:t>1?1:t}function zs(t){return t>eo?t*t*t:Op*(t-Vp)}function c0(t){let[e,r,i,n]=$p(t),a=Math.sqrt(r*r+i*i);return[Math.round(a*1e4)?Rp(Math.atan2(i,r)*h0):NaN,a,e,n]}function p0([t,e,r,i]){return t=isNaN(t)?0:t*u0,Np([r,Math.cos(t)*e,Math.sin(t)*e,i])}function f0([t,e,r,i]){t=Rp(t),e/=100,r/=100;function n(a){let s=(a+t/30)%12,o=e*Math.min(r,1-r);return r-o*Math.max(-1,Math.min(s-3,9-s,1))}return[n(0),n(8),n(4),i]}var d0=Object.hasOwn||function(t,e){return Object.prototype.hasOwnProperty.call(t,e)};function Yi(t,e){return d0(t,e)?t[e]:void 0}function y0(t){if(t=t.toLowerCase().trim(),t==="transparent")return[0,0,0,0];let e=Yi(m0,t);if(e){let[i,n,a]=e;return[i/255,n/255,a/255,1]}if(t.startsWith("#")&&/^#(?:[0-9a-f]{3,4}|[0-9a-f]{6}|[0-9a-f]{8})$/.test(t)){let i=t.length<6?1:2,n=1;return[Yn(t.slice(n,n+=i)),Yn(t.slice(n,n+=i)),Yn(t.slice(n,n+=i)),Yn(t.slice(n,n+i)||"ff")]}if(t.startsWith("rgb")){let i=t.match(/^rgba?\\(\\s*([\\de.+-]+)(%)?(?:\\s+|\\s*(,)\\s*)([\\de.+-]+)(%)?(?:\\s+|\\s*(,)\\s*)([\\de.+-]+)(%)?(?:\\s*([,\\/])\\s*([\\de.+-]+)(%)?)?\\s*\\)$/);if(i){let[n,a,s,o,l,u,h,c,p,f,d,y]=i,m=[o||" ",h||" ",f].join("");if(m===" "||m===" /"||m===",,"||m===",,,"){let g=[s,u,p].join(""),x=g==="%%%"?100:g===""?255:0;if(x){let v=[Rr(+a/x,0,1),Rr(+l/x,0,1),Rr(+c/x,0,1),d?vh(+d,y):1];if(bh(v))return v}}return}}let r=t.match(/^hsla?\\(\\s*([\\de.+-]+)(?:deg)?(?:\\s+|\\s*(,)\\s*)([\\de.+-]+)%(?:\\s+|\\s*(,)\\s*)([\\de.+-]+)%(?:\\s*([,\\/])\\s*([\\de.+-]+)(%)?)?\\s*\\)$/);if(r){let[i,n,a,s,o,l,u,h,c]=r,p=[a||" ",o||" ",u].join("");if(p===" "||p===" /"||p===",,"||p===",,,"){let f=[+n,Rr(+s,0,100),Rr(+l,0,100),h?vh(+h,c):1];if(bh(f))return f0(f)}}}function Yn(t){return parseInt(t.padEnd(2,t),16)/255}function vh(t,e){return Rr(e?t/100:t,0,1)}function Rr(t,e,r){return Math.min(Math.max(e,t),r)}function bh(t){return!t.some(Number.isNaN)}var m0={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]};function er(t,e,r){return t+r*(e-t)}function ti(t,e,r){return t.map((i,n)=>er(i,e[n],r))}function g0(t){return t==="rgb"||t==="hcl"||t==="lab"}var Bt,xt=(Bt=class{constructor(e,r,i,n=1,a=!0){this.r=e,this.g=r,this.b=i,this.a=n,a||(this.r*=n,this.g*=n,this.b*=n,n||this.overwriteGetter("rgb",[e,r,i,n]))}static parse(e){if(e instanceof Bt)return e;if(typeof e!="string")return;let r=y0(e);if(r)return new Bt(...r,!1)}get rgb(){let{r:e,g:r,b:i,a:n}=this,a=n||1/0;return this.overwriteGetter("rgb",[e/a,r/a,i/a,n])}get hcl(){return this.overwriteGetter("hcl",c0(this.rgb))}get lab(){return this.overwriteGetter("lab",$p(this.rgb))}overwriteGetter(e,r){return Object.defineProperty(this,e,{value:r}),r}toString(){let[e,r,i,n]=this.rgb;return`rgba(${[e,r,i].map(a=>Math.round(a*255)).join(",")},${n})`}static interpolate(e,r,i,n="rgb"){switch(n){case"rgb":{let[a,s,o,l]=ti(e.rgb,r.rgb,i);return new Bt(a,s,o,l,!1)}case"hcl":{let[a,s,o,l]=e.hcl,[u,h,c,p]=r.hcl,f,d;if(!isNaN(a)&&!isNaN(u)){let v=u-a;u>a&&v>180?v-=360:u180&&(v+=360),f=a+i*v}else isNaN(a)?isNaN(u)?f=NaN:(f=u,(o===1||o===0)&&(d=h)):(f=a,(c===1||c===0)&&(d=s));let[y,m,g,x]=p0([f,d!=null?d:er(s,h,i),er(o,c,i),er(l,p,i)]);return new Bt(y,m,g,x,!1)}case"lab":{let[a,s,o,l]=Np(ti(e.lab,r.lab,i));return new Bt(a,s,o,l,!1)}}}},Bt.black=new Bt(0,0,0,1),Bt.white=new Bt(1,1,1,1),Bt.transparent=new Bt(0,0,0,0),Bt.red=new Bt(1,0,0,1),Bt),x0=["bottom","center","top"],ro=class{constructor(t,e,r,i,n,a){this.text=t,this.image=e,this.scale=r,this.fontStack=i,this.textColor=n,this.verticalAlign=a}},Le=class ha{constructor(e){this.sections=e}static fromString(e){return new ha([new ro(e,null,null,null,null,null)])}isEmpty(){return this.sections.length===0||!this.sections.some(e=>e.text.length!==0||e.image&&e.image.name.length!==0)}static factory(e){return e instanceof ha?e:ha.fromString(e)}toString(){return this.sections.length===0?"":this.sections.map(e=>e.text).join("")}},Ee=class Ri{constructor(e){this.values=e.slice()}static parse(e){if(e instanceof Ri)return e;if(typeof e=="number")return new Ri([e,e,e,e]);if(Array.isArray(e)&&!(e.length<1||e.length>4)){for(let r of e)if(typeof r!="number")return;switch(e.length){case 1:e=[e[0],e[0],e[0],e[0]];break;case 2:e=[e[0],e[1],e[0],e[1]];break;case 3:e=[e[0],e[1],e[2],e[1]]}return new Ri(e)}}toString(){return JSON.stringify(this.values)}static interpolate(e,r,i){return new Ri(ti(e.values,r.values,i))}},Fe=class $i{constructor(e){this.values=e.slice()}static parse(e){if(e instanceof $i)return e;if(typeof e=="number")return new $i([e]);if(Array.isArray(e)){for(let r of e)if(typeof r!="number")return;return new $i(e)}}toString(){return JSON.stringify(this.values)}static interpolate(e,r,i){return new $i(ti(e.values,r.values,i))}},ue=class Ni{constructor(e){this.values=e.slice()}static parse(e){if(e instanceof Ni)return e;if(typeof e=="string"){let i=xt.parse(e);return i?new Ni([i]):void 0}if(!Array.isArray(e))return;let r=[];for(let i of e){if(typeof i!="string")return;let n=xt.parse(i);if(!n)return;r.push(n)}return new Ni(r)}toString(){return JSON.stringify(this.values)}static interpolate(e,r,i,n="rgb"){let a=[];if(e.values.length!=r.values.length)throw Error(`colorArray: Arrays have mismatched length (${e.values.length} vs. ${r.values.length}), cannot interpolate.`);for(let s=0;s=0&&t<=255&&typeof e=="number"&&e>=0&&e<=255&&typeof r=="number"&&r>=0&&r<=255?i===void 0||typeof i=="number"&&i>=0&&i<=1?null:`Invalid rgba value [${[t,e,r,i].join(", ")}]: \'a\' must be between 0 and 1.`:`Invalid rgba value [${(typeof i=="number"?[t,e,r,i]:[t,e,r]).join(", ")}]: \'r\', \'g\', and \'b\' must be between 0 and 255.`}function ei(t){if(t===null||typeof t=="string"||typeof t=="boolean"||typeof t=="number"||t instanceof Sr||t instanceof xt||t instanceof wl||t instanceof Le||t instanceof Ee||t instanceof Fe||t instanceof ue||t instanceof Ae||t instanceof Se)return!0;if(Array.isArray(t)){for(let e of t)if(!ei(e))return!1;return!0}if(typeof t=="object"){for(let e in t)if(!ei(t[e]))return!1;return!0}return!1}function St(t){if(t===null)return vn;if(typeof t=="string")return W;if(typeof t=="boolean")return Q;if(typeof t=="number")return I;if(t instanceof xt)return pe;if(t instanceof Sr)return za;if(t instanceof wl)return La;if(t instanceof Le)return bn;if(t instanceof Ee)return Va;if(t instanceof Fe)return Oa;if(t instanceof ue)return rn;if(t instanceof Ae)return Ra;if(t instanceof Se)return wn;if(Array.isArray(t)){let e=t.length,r;for(let i of t){let n=St(i);if(!r)r=n;else{if(r===n)continue;r=H;break}}return Ut(r||H,e)}return mr}function Wi(t){let e=typeof t;return t===null?"":e==="string"||e==="number"||e==="boolean"?String(t):t instanceof xt||t instanceof Sr||t instanceof Le||t instanceof Ee||t instanceof Fe||t instanceof ue||t instanceof Ae||t instanceof Se?t.toString():JSON.stringify(t)}var ri=class jp{constructor(e,r){this.type=e,this.value=r}static parse(e,r){if(e.length!==2)return r.error(`\'literal\' expression requires exactly one argument, but found ${e.length-1} instead.`);if(!ei(e[1]))return r.error(`invalid value of type "${typeof e[1]}"`);let i=e[1],n=St(i),a=r.expectedType;return n.kind==="array"&&n.N===0&&a&&a.kind==="array"&&(typeof a.N!="number"||a.N===0)&&(n=a),new jp(n,i)}evaluate(){return this.value}eachChild(){}outputDefined(){return!0}},b0=["Unknown","Point","LineString","Polygon"],Gp=class{constructor(){this.globals=null,this.feature=null,this.featureState=null,this.formattedSection=null,this._parseColorCache=new Map,this.availableImages=null,this.canonical=null}id(){return this.feature&&"id"in this.feature?this.feature.id:null}geometryType(){return this.feature?typeof this.feature.type=="number"?b0[this.feature.type]:this.feature.type:null}geometry(){return this.feature&&"geometry"in this.feature?this.feature.geometry:null}canonicalID(){return this.canonical}properties(){return this.feature&&this.feature.properties||{}}parseColor(t){let e=this._parseColorCache.get(t);return e||(e=xt.parse(t),this._parseColorCache.set(t,e)),e}};function $a(t,e,r){let i=t.length-1,n=0,a=i,s=0,o,l;for(;n<=a;)if(s=Math.floor((n+a)/2),o=t[s],l=t[s+1],o<=e){if(s===i||ee)a=s-1;else throw new ft("Input is not a number.",r);return 0}var Dl=class Xp{constructor(e,r,i,n){this.type=e,this.input=r,this.key=n,this.labels=[],this.outputs=[];for(let[a,s]of i)this.labels.push(a),this.outputs.push(s)}static parse(e,r){if(e.length-1<4)return r.error(`Expected at least 4 arguments, but found only ${e.length-1}.`);if((e.length-1)%2!=0)return r.error("Expected an even number of arguments.");let i=r.parse(e[1],1,I);if(!i)return null;let n=[],a=null;r.expectedType&&r.expectedType.kind!=="value"&&(a=r.expectedType);for(let s=1;s=o)return r.error(\'Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.\',u);let c=r.parse(l,h,a);if(!c)return null;a||(a=c.type),n.push([o,c])}return new Xp(a,i,n,r.key)}evaluate(e){let r=this.labels,i=this.outputs;if(r.length===1)return i[0].evaluate(e);let n=this.input.evaluate(e);if(n<=r[0])return i[0].evaluate(e);let a=r.length;return n>=r[a-1]?i[a-1].evaluate(e):i[$a(r,n,this.key)].evaluate(e)}eachChild(e){e(this.input);for(let r of this.outputs)e(r)}outputDefined(){return this.outputs.every(e=>e.outputDefined())}};function w0(t,e,r,i){let n=3*t,a=3*(r-t)-n,s=1-n-a,o=3*e,l=3*(i-e)-o,u=1-o-l;return function(h,c=1e-6){if(h<=0)return 0;if(h>=1)return 1;let p=h;for(let y=0;y<8;y++){let m=((s*p+a)*p+n)*p-h;if(Math.abs(m)m?f=p:d=p,p=(f+d)*.5}return((u*p+l)*p+o)*p}}var De=class io{constructor(e,r,i,n,a,s){this.type=e,this.operator=r,this.interpolation=i,this.input=n,this.key=s,this.labels=[],this.outputs=[];for(let[o,l]of a)this.labels.push(o),this.outputs.push(l)}static interpolationFactor(e,r,i,n){let a=0;if(e.name==="exponential")a=Ls(r,e.base,i,n);else if(e.name==="linear")a=Ls(r,1,i,n);else if(e.name==="cubic-bezier"){let s=e.controlPoints;a=w0(s[0],s[1],s[2],s[3])(Ls(r,1,i,n))}return a}static parse(e,r){let[i,n,a,...s]=e;if(!Array.isArray(n)||n.length===0)return r.error("Expected an interpolation type expression.",1);if(n[0]==="linear")n={name:"linear"};else if(n[0]==="exponential"){let u=n[1];if(typeof u!="number")return r.error("Exponential interpolation requires a numeric base.",1,1);n={name:"exponential",base:u}}else if(n[0]==="cubic-bezier"){let u=n.slice(1);if(u.length!==4||u.some(h=>typeof h!="number"||h<0||h>1))return r.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);n={name:"cubic-bezier",controlPoints:u}}else return r.error(`Unknown interpolation type ${String(n[0])}`,1,0);if(e.length-1<4)return r.error(`Expected at least 4 arguments, but found only ${e.length-1}.`);if((e.length-1)%2!=0)return r.error("Expected an even number of arguments.");if(a=r.parse(a,2,I),!a)return null;let o=[],l=null;(i==="interpolate-hcl"||i==="interpolate-lab")&&r.expectedType!=rn?l=pe:r.expectedType&&r.expectedType.kind!=="value"&&(l=r.expectedType);for(let u=0;u=h)return r.error(\'Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.\',p);let d=r.parse(c,f,l);if(!d)return null;l||(l=d.type),o.push([h,d])}return!Ye(l,I)&&!Ye(l,za)&&!Ye(l,pe)&&!Ye(l,Va)&&!Ye(l,Oa)&&!Ye(l,rn)&&!Ye(l,Ra)&&!Ye(l,Ut(I))?r.error(`Type ${mt(l)} is not interpolatable.`):new io(l,i,n,a,o,r.key)}evaluate(e){let r=this.labels,i=this.outputs;if(r.length===1)return i[0].evaluate(e);let n=this.input.evaluate(e);if(n<=r[0])return i[0].evaluate(e);let a=r.length;if(n>=r[a-1])return i[a-1].evaluate(e);let s=$a(r,n,this.key),o=r[s],l=r[s+1],u=io.interpolationFactor(this.interpolation,n,o,l),h=i[s].evaluate(e),c=i[s+1].evaluate(e);switch(this.operator){case"interpolate":switch(this.type.kind){case"number":return er(h,c,u);case"color":return xt.interpolate(h,c,u);case"padding":return Ee.interpolate(h,c,u);case"colorArray":return ue.interpolate(h,c,u);case"numberArray":return Fe.interpolate(h,c,u);case"variableAnchorOffsetCollection":return Ae.interpolate(h,c,u,this.key);case"array":return ti(h,c,u);case"projectionDefinition":return Sr.interpolate(h,c,u)}case"interpolate-hcl":switch(this.type.kind){case"color":return xt.interpolate(h,c,u,"hcl");case"colorArray":return ue.interpolate(h,c,u,"hcl")}case"interpolate-lab":switch(this.type.kind){case"color":return xt.interpolate(h,c,u,"lab");case"colorArray":return ue.interpolate(h,c,u,"lab")}}}eachChild(e){e(this.input);for(let r of this.outputs)e(r)}outputDefined(){return this.outputs.every(e=>e.outputDefined())}};function Ls(t,e,r,i){let n=i-r,a=t-r;return n===0?0:e===1?a/n:(e**+a-1)/(e**+n-1)}var br={color:xt.interpolate,number:er,padding:Ee.interpolate,numberArray:Fe.interpolate,colorArray:ue.interpolate,variableAnchorOffsetCollection:Ae.interpolate,array:ti},Yp=class Wp{constructor(e){this.type=bn,this.sections=e}static parse(e,r){if(e.length<2)return r.error("Expected at least one argument.");let i=e[1];if(!Array.isArray(i)&&typeof i=="object")return r.error("First argument must be an image or text section.");let n=[],a=!1;for(let s=1;s<=e.length-1;++s){let o=e[s];if(a&&typeof o=="object"&&!Array.isArray(o)){a=!1;let l=null;if(o["font-scale"]&&(l=r.parse(o["font-scale"],1,I),!l))return null;let u=null;if(o["text-font"]&&(u=r.parse(o["text-font"],1,Ut(W)),!u))return null;let h=null;if(o["text-color"]&&(h=r.parse(o["text-color"],1,pe),!h))return null;let c=null;if(o["vertical-align"]){if(typeof o["vertical-align"]=="string"&&!x0.includes(o["vertical-align"]))return r.error(`\'vertical-align\' must be one of: \'bottom\', \'center\', \'top\' but found \'${o["vertical-align"]}\' instead.`);if(c=r.parse(o["vertical-align"],1,W),!c)return null}let p=n[n.length-1];p.scale=l,p.font=u,p.textColor=h,p.verticalAlign=c}else{let l=r.parse(e[s],1,H);if(!l)return null;let u=l.type.kind;if(u!=="string"&&u!=="value"&&u!=="null"&&u!=="resolvedImage")return r.error("Formatted text type must be \'string\', \'value\', \'image\' or \'null\'.");a=!0,n.push({content:l,scale:null,font:null,textColor:null,verticalAlign:null})}}return new Wp(n)}evaluate(e){return new Le(this.sections.map(r=>{let i=r.content.evaluate(e);return St(i)===wn?new ro("",i,null,null,null,r.verticalAlign?r.verticalAlign.evaluate(e):null):new ro(Wi(i),null,r.scale?r.scale.evaluate(e):null,r.font?r.font.evaluate(e).join(","):null,r.textColor?r.textColor.evaluate(e):null,r.verticalAlign?r.verticalAlign.evaluate(e):null)}))}eachChild(e){for(let r of this.sections)e(r.content),r.scale&&e(r.scale),r.font&&e(r.font),r.textColor&&e(r.textColor),r.verticalAlign&&e(r.verticalAlign)}outputDefined(){return!1}};function Zp(t,e,r=0,i=t.length-1,n=D0){for(;i>r;){if(i-r>600){let l=i-r+1,u=e-r+1,h=Math.log(l),c=.5*Math.exp(2*h/3),p=.5*Math.sqrt(h*c*(l-c)/l)*(u-l/2<0?-1:1);Zp(t,e,Math.max(r,Math.floor(e-u*c/l+p)),Math.min(i,Math.floor(e+(l-u)*c/l+p)),n)}let a=t[e],s=r,o=i;for(ki(t,r,e),n(t[i],a)>0&&ki(t,r,i);s0;)o--}n(t[r],a)===0?ki(t,r,o):(o++,ki(t,o,i)),o<=e&&(r=o+1),e<=o&&(i=o-1)}}function ki(t,e,r){let i=t[e];t[e]=t[r],t[r]=i}function D0(t,e){return te)}function Na(t,e){if(t.length<=1)return[t];let r=[],i,n;for(let a of t){let s=A0(a);s!==0&&(a.area=Math.abs(s),n===void 0&&(n=s<0),n===s<0?(i&&r.push(i),i=[a]):i.push(a))}if(i&&r.push(i),e>1)for(let a=0;a2){let u=e[1];if(typeof u!="string"||!(u in Wn)||u==="object")return r.error(\'The item type argument of "array" must be one of string, number, boolean\',1);o=Wn[u],i++}else o=H;let l;if(e.length>3){if(e[2]!==null&&(typeof e[2]!="number"||e[2]<0||e[2]!==Math.floor(e[2])))return r.error(\'The length argument to "array" must be a positive integer literal\',2);l=e[2],i++}n=Ut(o,l)}else{if(!Wn[a])throw Error(`Types doesn\'t contain name = ${a}`);n=Wn[a]}let s=[];for(;ie.outputDefined())}},wh={"to-boolean":Q,"to-color":pe,"to-number":I,"to-string":W},jr=class Kp{constructor(e,r,i){this.type=e,this.args=r,this.key=i}static parse(e,r){if(e.length<2)return r.error("Expected at least one argument.");let i=e[0];if(!wh[i])throw Error(`Can\'t parse ${i} as it is not part of the known types`);if((i==="to-boolean"||i==="to-string")&&e.length!==2)return r.error("Expected one argument.");let n=wh[i],a=[];for(let s=1;s4?`Invalid rgba value ${JSON.stringify(r)}: expected an array containing either three or four numeric values.`:qp(r[0],r[1],r[2],r[3]),!i))return new xt(r[0]/255,r[1]/255,r[2]/255,r[3])}throw new ft(i||`Could not parse color from value \'${typeof r=="string"?r:JSON.stringify(r)}\'`,this.key)}case"padding":{let r;for(let i of this.args){r=i.evaluate(e);let n=Ee.parse(r);if(n)return n}throw new ft(`Could not parse padding from value \'${typeof r=="string"?r:JSON.stringify(r)}\'`,this.key)}case"numberArray":{let r;for(let i of this.args){r=i.evaluate(e);let n=Fe.parse(r);if(n)return n}throw new ft(`Could not parse numberArray from value \'${typeof r=="string"?r:JSON.stringify(r)}\'`,this.key)}case"colorArray":{let r;for(let i of this.args){r=i.evaluate(e);let n=ue.parse(r);if(n)return n}throw new ft(`Could not parse colorArray from value \'${typeof r=="string"?r:JSON.stringify(r)}\'`,this.key)}case"variableAnchorOffsetCollection":{let r;for(let i of this.args){r=i.evaluate(e);let n=Ae.parse(r);if(n)return n}throw new ft(`Could not parse variableAnchorOffsetCollection from value \'${typeof r=="string"?r:JSON.stringify(r)}\'`,this.key)}case"number":{let r=null;for(let i of this.args){if(r=i.evaluate(e),r===null)return 0;let n=Number(r);if(!isNaN(n))return n}throw new ft(`Could not convert ${JSON.stringify(r)} to number.`,this.key)}case"formatted":return Le.fromString(Wi(this.args[0].evaluate(e)));case"resolvedImage":return Se.fromString(Wi(this.args[0].evaluate(e)));case"projectionDefinition":{let r=this.args[0].evaluate(e);if(Sr.parse(r))return r;throw new ft(`Could not parse projectionDefinition from value \'${typeof r=="string"?r:JSON.stringify(r)}\'`,this.key)}default:return Wi(this.args[0].evaluate(e))}}eachChild(e){this.args.forEach(e)}outputDefined(){return this.args.every(e=>e.outputDefined())}},Jp=class Qp{constructor(e,r){this.type=r.type,this.bindings=[].concat(e),this.result=r}evaluate(e){return this.result.evaluate(e)}eachChild(e){for(let r of this.bindings)e(r[1]);e(this.result)}static parse(e,r){if(e.length<4)return r.error(`Expected at least 3 arguments, but found ${e.length-1} instead.`);let i=[];for(let a=1;a=i.length)throw new ft(`Array index out of bounds: ${r} > ${i.length-1}.`,this.key);if(r!==Math.floor(r))throw new ft(`Array index must be an integer, but found ${r} instead.`,this.key);return i[r]}eachChild(e){e(this.index),e(this.input)}outputDefined(){return!1}},E0=class nf{constructor(e,r,i){this.needle=e,this.haystack=r,this.key=i,this.type=Q}static parse(e,r){if(e.length!==3)return r.error(`Expected 2 arguments, but found ${e.length-1} instead.`);let i=r.parse(e[1],1,H),n=r.parse(e[2],2,H);return!i||!n?null:bl(i.type,[Q,W,I,vn,H])?new nf(i,n,r.key):r.error(`Expected first argument to be of type boolean, string, number or null, but found ${mt(i.type)} instead`)}evaluate(e){let r=this.needle.evaluate(e),i=this.haystack.evaluate(e);if(!i)return!1;if(!gr(r,["boolean","string","number","null"]))throw new ft(`Expected first argument to be of type boolean, string, number or null, but found ${mt(St(r))} instead.`,this.key);if(!gr(i,["string","array"]))throw new ft(`Expected second argument to be of type array or string, but found ${mt(St(i))} instead.`,this.key);return i.indexOf(r)>=0}eachChild(e){e(this.needle),e(this.haystack)}outputDefined(){return!0}},F0=class no{constructor(e,r,i,n){this.needle=e,this.haystack=r,this.key=i,this.fromIndex=n,this.type=I}static parse(e,r){if(e.length<=2||e.length>=5)return r.error(`Expected 2 or 3 arguments, but found ${e.length-1} instead.`);let i=r.parse(e[1],1,H),n=r.parse(e[2],2,H);if(!i||!n)return null;if(!bl(i.type,[Q,W,I,vn,H]))return r.error(`Expected first argument to be of type boolean, string, number or null, but found ${mt(i.type)} instead`);if(e.length===4){let a=r.parse(e[3],3,I);return a?new no(i,n,r.key,a):null}return new no(i,n,r.key)}evaluate(e){let r=this.needle.evaluate(e),i=this.haystack.evaluate(e);if(!gr(r,["boolean","string","number","null"]))throw new ft(`Expected first argument to be of type boolean, string, number or null, but found ${mt(St(r))} instead.`,this.key);let n;if(this.fromIndex&&(n=this.fromIndex.evaluate(e)),gr(i,["string"])){let a=i.indexOf(r,n);return a===-1?-1:[...i.slice(0,a)].length}if(gr(i,["array"]))return i.indexOf(r,n);throw new ft(`Expected second argument to be of type array or string, but found ${mt(St(i))} instead.`,this.key)}eachChild(e){e(this.needle),e(this.haystack),this.fromIndex&&e(this.fromIndex)}outputDefined(){return!1}},T0=class af{constructor(e,r,i,n,a,s){this.inputType=e,this.type=r,this.input=i,this.cases=n,this.outputs=a,this.otherwise=s}static parse(e,r){if(e.length<5)return r.error(`Expected at least 4 arguments, but found only ${e.length-1}.`);if(e.length%2!=1)return r.error("Expected an even number of arguments.");let i,n;r.expectedType&&r.expectedType.kind!=="value"&&(n=r.expectedType);let a={},s=[];for(let u=2;u2**53-1)return p.error(`Branch labels must be integers no larger than ${2**53-1}.`);if(typeof d=="number"&&Math.floor(d)!==d)return p.error("Numeric branch labels must be integer values.");if(!i)i=St(d);else if(p.checkSubtype(i,St(d)))return null;if(a[String(d)]!==void 0)return p.error("Branch labels must be unique.");a[String(d)]=s.length}let f=r.parse(c,u,n);if(!f)return null;n||(n=f.type),s.push(f)}let o=r.parse(e[1],1,H);if(!o)return null;let l=r.parse(e[e.length-1],e.length-1,n);return!l||o.type.kind!=="value"&&r.concat(1).checkSubtype(i,o.type)?null:new af(i,n,o,a,s,l)}evaluate(e){let r=this.input.evaluate(e);return(St(r)===this.inputType&&this.outputs[this.cases[r]]||this.otherwise).evaluate(e)}eachChild(e){e(this.input),this.outputs.forEach(e),e(this.otherwise)}outputDefined(){return this.outputs.every(e=>e.outputDefined())&&this.otherwise.outputDefined()}},k0=class sf{constructor(e,r,i){this.type=e,this.branches=r,this.otherwise=i}static parse(e,r){if(e.length<4)return r.error(`Expected at least 3 arguments, but found only ${e.length-1}.`);if(e.length%2!=0)return r.error("Expected an odd number of arguments.");let i;r.expectedType&&r.expectedType.kind!=="value"&&(i=r.expectedType);let n=[];for(let s=1;sr.outputDefined())&&this.otherwise.outputDefined()}},I0=class ao{constructor(e,r,i,n,a){this.type=e,this.input=r,this.beginIndex=i,this.key=n,this.endIndex=a}static parse(e,r){if(e.length<=2||e.length>=5)return r.error(`Expected 2 or 3 arguments, but found ${e.length-1} instead.`);let i=r.parse(e[1],1,H),n=r.parse(e[2],2,I);if(!i||!n)return null;if(!bl(i.type,[Ut(H),W,H]))return r.error(`Expected first argument to be of type array or string, but found ${mt(i.type)} instead`);if(e.length===4){let a=r.parse(e[3],3,I);return a?new ao(i.type,i,n,r.key,a):null}return new ao(i.type,i,n,r.key)}evaluate(e){let r=this.input.evaluate(e),i=this.beginIndex.evaluate(e),n;if(this.endIndex&&(n=this.endIndex.evaluate(e)),gr(r,["string"]))return[...r].slice(i,n).join("");if(gr(r,["array"]))return r.slice(i,n);throw new ft(`Expected first argument to be of type array or string, but found ${mt(St(r))} instead.`,this.key)}eachChild(e){e(this.input),e(this.beginIndex),this.endIndex&&e(this.endIndex)}outputDefined(){return!1}},of=class so{constructor(e,r){this.type=e,this.args=r}static parse(e,r){if(e.length<2)return r.error("Expected at least one argument.");let i=null,n=r.expectedType;n&&n.kind!=="value"&&(i=n);let a=[];for(let s of e.slice(1)){let o=r.parse(s,1+a.length,i,void 0,{typeAnnotation:"omit"});if(!o)return null;i||(i=o.type),a.push(o)}if(!i)throw Error("No output type");return n&&a.some(s=>nn(n,s.type))?new so(H,a):new so(i,a)}evaluate(e){let r=null,i=0,n;for(let a of this.args)if(i++,r=a.evaluate(e),r&&r instanceof Se&&!r.available&&(n||(n=r.name),r=null,i===this.args.length&&(r=n)),r!==null)break;return r}eachChild(e){this.args.forEach(e)}outputDefined(){return this.args.every(e=>e.outputDefined())}};function Dh(t,e){return t==="=="||t==="!="?e.kind==="boolean"||e.kind==="string"||e.kind==="number"||e.kind==="null"||e.kind==="value":e.kind==="string"||e.kind==="number"||e.kind==="value"}function C0(t,e,r){return e===r}function M0(t,e,r){return e!==r}function B0(t,e,r){return er}function z0(t,e,r){return e<=r}function L0(t,e,r){return e>=r}function lf(t,e,r,i){return i.compare(e,r)===0}function V0(t,e,r,i){return!lf(t,e,r,i)}function O0(t,e,r,i){return i.compare(e,r)<0}function R0(t,e,r,i){return i.compare(e,r)>0}function $0(t,e,r,i){return i.compare(e,r)<=0}function N0(t,e,r,i){return i.compare(e,r)>=0}function li(t,e,r){let i=t!=="=="&&t!=="!=";return class uf{constructor(a,s,o,l){this.lhs=a,this.rhs=s,this.key=o,this.collator=l,this.type=Q,this.hasUntypedArgument=a.type.kind==="value"||s.type.kind==="value"}static parse(a,s){if(a.length!==3&&a.length!==4)return s.error("Expected two or three arguments.");let o=a[0],l=s.parse(a[1],1,H);if(!l)return null;if(!Dh(o,l.type))return s.concat(1).error(`"${o}" comparisons are not supported for type \'${mt(l.type)}\'.`);let u=s.parse(a[2],2,H);if(!u)return null;if(!Dh(o,u.type))return s.concat(2).error(`"${o}" comparisons are not supported for type \'${mt(u.type)}\'.`);if(l.type.kind!==u.type.kind&&l.type.kind!=="value"&&u.type.kind!=="value")return s.error(`Cannot compare types \'${mt(l.type)}\' and \'${mt(u.type)}\'.`);i&&(l.type.kind==="value"&&u.type.kind!=="value"?l=new Be(u.type,[l],s.key):l.type.kind!=="value"&&u.type.kind==="value"&&(u=new Be(l.type,[u],s.key)));let h=null;if(a.length===4){if(l.type.kind!=="string"&&u.type.kind!=="string"&&l.type.kind!=="value"&&u.type.kind!=="value")return s.error("Cannot use collator to compare non-string types.");if(h=s.parse(a[3],3,La),!h)return null}return new uf(l,u,s.key,h)}evaluate(a){let s=this.lhs.evaluate(a),o=this.rhs.evaluate(a);if(i&&this.hasUntypedArgument){let l=St(s),u=St(o);if(l.kind!==u.kind||l.kind!=="string"&&l.kind!=="number")throw new ft(`Expected arguments for "${t}" to be (string, string) or (number, number), but found (${l.kind}, ${u.kind}) instead.`,this.key)}if(this.collator&&!i&&this.hasUntypedArgument){let l=St(s),u=St(o);if(l.kind!=="string"||u.kind!=="string")return e(a,s,o)}return this.collator?r(a,s,o,this.collator.evaluate(a)):e(a,s,o)}eachChild(a){a(this.lhs),a(this.rhs),this.collator&&a(this.collator)}outputDefined(){return!0}}}var U0=li("==",C0,lf),q0=li("!=",M0,V0),j0=li("<",B0,O0),G0=li(">",P0,R0),X0=li("<=",z0,$0),Y0=li(">=",L0,N0),hf=class cf{constructor(e,r,i){this.type=La,this.locale=i,this.caseSensitive=e,this.diacriticSensitive=r}static parse(e,r){if(e.length!==2)return r.error("Expected one argument.");let i=e[1];if(typeof i!="object"||Array.isArray(i))return r.error("Collator options argument must be an object.");let n=r.parse(i["case-sensitive"]!==void 0&&i["case-sensitive"],1,Q);if(!n)return null;let a=r.parse(i["diacritic-sensitive"]!==void 0&&i["diacritic-sensitive"],1,Q);if(!a)return null;let s=null;return i.locale&&(s=r.parse(i.locale,1,W),!s)?null:new cf(n,a,s)}evaluate(e){return new wl(this.caseSensitive.evaluate(e),this.diacriticSensitive.evaluate(e),this.locale?this.locale.evaluate(e):null)}eachChild(e){e(this.caseSensitive),e(this.diacriticSensitive),this.locale&&e(this.locale)}outputDefined(){return!1}},W0=class pf{constructor(e,r,i,n,a,s){this.type=W,this.number=e,this.locale=r,this.currency=i,this.unit=n,this.minFractionDigits=a,this.maxFractionDigits=s}static parse(e,r){if(e.length!==3)return r.error("Expected two arguments.");let i=r.parse(e[1],1,I);if(!i)return null;let n=e[2];if(typeof n!="object"||Array.isArray(n))return r.error("NumberFormat options argument must be an object.");let a=null;if(n.locale&&(a=r.parse(n.locale,1,W),!a))return null;let s=null;if(n.currency&&(s=r.parse(n.currency,1,W),!s))return null;let o=null;if(n.unit&&(o=r.parse(n.unit,1,W),!o))return null;if(s&&o)return r.error("NumberFormat options `currency` and `unit` are mutually exclusive");let l=null;if(n["min-fraction-digits"]&&(l=r.parse(n["min-fraction-digits"],1,I),!l))return null;let u=null;return n["max-fraction-digits"]&&(u=r.parse(n["max-fraction-digits"],1,I),!u)?null:new pf(i,a,s,o,l,u)}evaluate(e){return new Intl.NumberFormat(this.locale?this.locale.evaluate(e):[],{style:this.currency?"currency":this.unit?"unit":"decimal",currency:this.currency?this.currency.evaluate(e):void 0,unit:this.unit?this.unit.evaluate(e):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(e):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(e):void 0}).format(this.number.evaluate(e))}eachChild(e){e(this.number),this.locale&&e(this.locale),this.currency&&e(this.currency),this.unit&&e(this.unit),this.minFractionDigits&&e(this.minFractionDigits),this.maxFractionDigits&&e(this.maxFractionDigits)}outputDefined(){return!1}},Z0=class ff{constructor(e){this.type=wn,this.input=e}static parse(e,r){if(e.length!==2)return r.error("Expected two arguments.");let i=r.parse(e[1],1,W);return i?new ff(i):r.error("No image name provided.")}evaluate(e){let r=this.input.evaluate(e),i=Se.fromString(r);return i&&e.availableImages&&(i.available=e.availableImages.indexOf(r)>-1),i}eachChild(e){e(this.input)}outputDefined(){return!1}},H0=class df{constructor(e,r){this.input=e,this.key=r,this.type=I}static parse(e,r){if(e.length!==2)return r.error(`Expected 1 argument, but found ${e.length-1} instead.`);let i=r.parse(e[1],1);return i?i.type.kind!=="array"&&i.type.kind!=="string"&&i.type.kind!=="value"?r.error(`Expected argument of type string or array, but found ${mt(i.type)} instead.`):new df(i,r.key):null}evaluate(e){let r=this.input.evaluate(e);if(typeof r=="string")return[...r].length;if(Array.isArray(r))return r.length;throw new ft(`Expected value to be of type string or array, but found ${mt(St(r))} instead.`,this.key)}eachChild(e){e(this.input)}outputDefined(){return!1}},_e=8192;function K0(t,e){let r=J0(t[0]),i=tm(t[1]),n=2**e.z;return[Math.round(r*n*_e),Math.round(i*n*_e)]}function _l(t,e){let r=2**e.z,i=(t[0]/_e+e.x)/r,n=(t[1]/_e+e.y)/r;return[Q0(i),em(n)]}function J0(t){return(180+t)/360}function Q0(t){return t*360-180}function tm(t){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+t*Math.PI/360)))/360}function em(t){return 360/Math.PI*Math.atan(Math.exp((180-t*360)*Math.PI/180))-90}function Dn(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[2]=Math.max(t[2],e[0]),t[3]=Math.max(t[3],e[1])}function an(t,e){return!(t[0]<=e[0]||t[2]>=e[2]||t[1]<=e[1]||t[3]>=e[3])}function rm(t,e,r){return e[1]>t[1]!=r[1]>t[1]&&t[0]<(r[0]-e[0])*(t[1]-e[1])/(r[1]-e[1])+e[0]}function im(t,e,r){let i=t[0]-e[0],n=t[1]-e[1],a=t[0]-r[0],s=t[1]-r[1];return i*s-a*n===0&&i*a<=0&&n*s<=0}function Ua(t,e,r,i){let n=[e[0]-t[0],e[1]-t[1]];return om([i[0]-r[0],i[1]-r[1]],n)!==0&&!!(_h(t,e,r,i)&&_h(r,i,t,e))}function nm(t,e,r){for(let i of r)for(let n=0;n0&&c<0||h<0&&c>0}function Al(t,e,r){let i=[];for(let n=0;nr[2]){let n=i*.5,a=t[0]-r[0]>n?-i:r[0]-t[0]>n?i:0;a===0&&(a=t[0]-r[2]>n?-i:r[2]-t[0]>n?i:0),t[0]+=a}Dn(e,t)}function lm(t){t[0]=t[1]=1/0,t[2]=t[3]=-1/0}function Ah(t,e,r,i){let n=2**i.z*_e,a=[i.x*_e,i.y*_e],s=[];for(let o of t)for(let l of o){let u=[l.x+a[0],l.y+a[1]];gf(u,e,r,n),s.push(u)}return s}function Sh(t,e,r,i){let n=2**i.z*_e,a=[i.x*_e,i.y*_e],s=[];for(let o of t){let l=[];for(let u of o){let h=[u.x+a[0],u.y+a[1]];Dn(e,h),l.push(h)}s.push(l)}if(e[2]-e[0]<=n/2){lm(e);for(let o of s)for(let l of o)gf(l,e,r,n)}return s}function um(t,e){let r=[1/0,1/0,-1/0,-1/0],i=[1/0,1/0,-1/0,-1/0],n=t.canonicalID();if(e.type==="Polygon"){let a=Al(e.coordinates,i,n),s=Ah(t.geometry(),r,i,n);if(!an(r,i))return!1;for(let o of s)if(!ui(o,a))return!1}if(e.type==="MultiPolygon"){let a=mf(e.coordinates,i,n),s=Ah(t.geometry(),r,i,n);if(!an(r,i))return!1;for(let o of s)if(!am(o,a))return!1}return!0}function hm(t,e){let r=[1/0,1/0,-1/0,-1/0],i=[1/0,1/0,-1/0,-1/0],n=t.canonicalID();if(e.type==="Polygon"){let a=Al(e.coordinates,i,n),s=Sh(t.geometry(),r,i,n);if(!an(r,i))return!1;for(let o of s)if(!yf(o,a))return!1}if(e.type==="MultiPolygon"){let a=mf(e.coordinates,i,n),s=Sh(t.geometry(),r,i,n);if(!an(r,i))return!1;for(let o of s)if(!sm(o,a))return!1}return!0}var Sl=class pa{constructor(e,r){this.type=Q,this.geojson=e,this.geometries=r}static parse(e,r){if(e.length!==2)return r.error(`\'within\' expression requires exactly one argument, but found ${e.length-1} instead.`);if(ei(e[1])){let i=e[1];if(i.type==="FeatureCollection"){let n=[];for(let a of i.features){let{type:s,coordinates:o}=a.geometry;s==="Polygon"&&n.push(o),s==="MultiPolygon"&&n.push(...o)}if(n.length)return new pa(i,{type:"MultiPolygon",coordinates:n})}else if(i.type==="Feature"){let n=i.geometry.type;if(n==="Polygon"||n==="MultiPolygon")return new pa(i,i.geometry)}else if(i.type==="Polygon"||i.type==="MultiPolygon")return new pa(i,i)}return r.error("\'within\' expression requires valid geojson object that contains polygon geometry type.")}evaluate(e){if(e.geometry()!=null&&e.canonicalID()!=null){if(e.geometryType()==="Point")return um(e,this.geometries);if(e.geometryType()==="LineString")return hm(e,this.geometries)}return!1}eachChild(){}outputDefined(){return!0}},xf=class{constructor(t=[],e=(r,i)=>ri)){if(this.data=t,this.length=this.data.length,this.compare=e,this.length>0)for(let r=(this.length>>1)-1;r>=0;r--)this._down(r)}push(t){this.data.push(t),this._up(this.length++)}pop(){if(this.length===0)return;let t=this.data[0],e=this.data.pop();return--this.length>0&&(this.data[0]=e,this._down(0)),t}peek(){return this.data[0]}_up(t){let{data:e,compare:r}=this,i=e[t];for(;t>0;){let n=t-1>>1,a=e[n];if(r(i,a)>=0)break;e[t]=a,t=n}e[t]=i}_down(t){let{data:e,compare:r}=this,i=this.length>>1,n=e[t];for(;t=0)break;e[t]=e[a],t=a}e[t]=n}},Eh=Math.PI/180,El=class{constructor(t){let e=Eh*6378.137*1e3,r=Math.cos(t*Eh),i=1/(1-.0066943799901413165*(1-r*r)),n=Math.sqrt(i);this.kx=e*n*r,this.ky=e*n*i*.9933056200098587}distance(t,e){let r=this.wrap(t[0]-e[0])*this.kx,i=(t[1]-e[1])*this.ky;return Math.sqrt(r*r+i*i)}pointOnLine(t,e){let r=1/0,i,n,a,s;for(let o=0;o1?(l=t[o+1][0],u=t[o+1][1]):p>0&&(l+=h/this.kx*p,u+=c/this.ky*p)),h=this.wrap(e[0]-l)*this.kx,c=(e[1]-u)*this.ky;let f=h*h+c*c;f180;)t-=360;return t}};function vf(t,e){return e[0]-t[0]}function va(t){return t[1]-t[0]+1}function Ve(t,e){return t[1]>=t[0]&&t[1]t[1])return[null,null];let r=va(t);if(e){if(r===2)return[t,null];let n=Math.floor(r/2);return[[t[0],t[0]+n],[t[0]+n,t[1]]]}if(r===1)return[t,null];let i=Math.floor(r/2)-1;return[[t[0],t[0]+i],[t[0]+i+1,t[1]]]}function lo(t,e){if(!Ve(e,t.length))return[1/0,1/0,-1/0,-1/0];let r=[1/0,1/0,-1/0,-1/0];for(let i=e[0];i<=e[1];++i)Dn(r,t[i]);return r}function uo(t){let e=[1/0,1/0,-1/0,-1/0];for(let r of t)for(let i of r)Dn(e,i);return e}function Fh(t){return t[0]!==-1/0&&t[1]!==-1/0&&t[2]!==1/0&&t[3]!==1/0}function Fl(t,e,r){if(!Fh(t)||!Fh(e))return NaN;let i=0,n=0;return t[2]e[2]&&(i=t[0]-e[2]),t[1]>e[3]&&(n=t[1]-e[3]),t[3]=i)return i;if(an(n,a)){if(Th(t,e))return 0}else if(Th(e,t))return 0;let s=1/0;for(let o of t)for(let l=0,u=o.length,h=u-1;l0;){let l=s.pop();if(l[0]>=a)continue;let u=l[1],h=e?50:100;if(va(u)<=h){if(!Ve(u,t.length))return NaN;if(e){let c=dm(t,u,r,i);if(isNaN(c)||c===0)return c;a=Math.min(a,c)}else for(let c=u[0];c<=u[1];++c){let p=fm(t[c],r,i);if(a=Math.min(a,p),a===0)return 0}}else{let c=oo(u,e);kh(s,a,i,t,o,c[0]),kh(s,a,i,t,o,c[1])}}return a}function wa(t,e,r,i,n,a=1/0){let s=Math.min(a,n.distance(t[0],r[0]));if(s===0)return s;let o=new xf([[0,[0,t.length-1],[0,r.length-1]]],vf);for(;o.length>0;){let l=o.pop();if(l[0]>=s)continue;let u=l[1],h=l[2],c=e?50:100,p=i?50:100;if(va(u)<=c&&va(h)<=p){if(!Ve(u,t.length)&&Ve(h,r.length))return NaN;let f;if(e&&i)f=cm(t,u,r,h,n),s=Math.min(s,f);else if(e&&!i){let d=t.slice(u[0],u[1]+1);for(let y=h[0];y<=h[1];++y)if(f=dr(r[y],d,n),s=Math.min(s,f),s===0)return s}else if(!e&&i){let d=r.slice(h[0],h[1]+1);for(let y=u[0];y<=u[1];++y)if(f=dr(t[y],d,n),s=Math.min(s,f),s===0)return s}else f=pm(t,u,r,h,n),s=Math.min(s,f)}else{let f=oo(u,e),d=oo(h,i);Zn(o,s,n,t,r,f[0],d[0]),Zn(o,s,n,t,r,f[0],d[1]),Zn(o,s,n,t,r,f[1],d[0]),Zn(o,s,n,t,r,f[1],d[1])}}return s}function mm(t,e){let r=t.geometry(),i=r.flat().map(s=>_l([s.x,s.y],t.canonical));if(r.length===0)return NaN;let n=new El(i[0][1]),a=1/0;for(let s of e){switch(s.type){case"Point":a=Math.min(a,wa(i,!1,[s.coordinates],!1,n,a));break;case"LineString":a=Math.min(a,wa(i,!1,s.coordinates,!0,n,a));break;case"Polygon":a=Math.min(a,ba(i,!1,s.coordinates,n,a))}if(a===0)return a}return a}function gm(t,e){let r=t.geometry(),i=r.flat().map(s=>_l([s.x,s.y],t.canonical));if(r.length===0)return NaN;let n=new El(i[0][1]),a=1/0;for(let s of e){switch(s.type){case"Point":a=Math.min(a,wa(i,!0,[s.coordinates],!1,n,a));break;case"LineString":a=Math.min(a,wa(i,!0,s.coordinates,!0,n,a));break;case"Polygon":a=Math.min(a,ba(i,!0,s.coordinates,n,a))}if(a===0)return a}return a}function xm(t,e){let r=t.geometry();if(r.length===0||r[0].length===0)return NaN;let i=Na(r,0).map(s=>s.map(o=>o.map(l=>_l([l.x,l.y],t.canonical)))),n=new El(i[0][0][0][1]),a=1/0;for(let s of e)for(let o of i){switch(s.type){case"Point":a=Math.min(a,ba([s.coordinates],!1,o,n,a));break;case"LineString":a=Math.min(a,ba(s.coordinates,!0,o,n,a));break;case"Polygon":a=Math.min(a,ym(o,s.coordinates,n,a))}if(a===0)return a}return a}function Vs(t){return t.type==="MultiPolygon"?t.coordinates.map(e=>({type:"Polygon",coordinates:e})):t.type==="MultiLineString"?t.coordinates.map(e=>({type:"LineString",coordinates:e})):t.type==="MultiPoint"?t.coordinates.map(e=>({type:"Point",coordinates:e})):[t]}var kl=class fa{constructor(e,r){this.type=I,this.geojson=e,this.geometries=r}static parse(e,r){if(e.length!==2)return r.error(`\'distance\' expression requires exactly one argument, but found ${e.length-1} instead.`);if(ei(e[1])){let i=e[1];if(i.type==="FeatureCollection")return new fa(i,i.features.map(n=>Vs(n.geometry)).flat());if(i.type==="Feature")return new fa(i,Vs(i.geometry));if("type"in i&&"coordinates"in i)return new fa(i,Vs(i))}return r.error("\'distance\' expression requires valid geojson object that contains polygon geometry type.")}evaluate(e){if(e.geometry()!=null&&e.canonicalID()!=null){if(e.geometryType()==="Point")return mm(e,this.geometries);if(e.geometryType()==="LineString")return gm(e,this.geometries);if(e.geometryType()==="Polygon")return xm(e,this.geometries)}return NaN}eachChild(){}outputDefined(){return!0}},vm=class bf{constructor(e){let r=null;for(let i of e)if(!r)r=i.type;else{if(r===i.type)continue;r=H;break}this.type=Ut(r!=null?r:H,e.length),this.arr=e}static parse(e,r){if(e.length!==2)return r.error(`\'semiliteral\' expression requires exactly one argument, but found ${e.length-1} instead.`);if(!ei(e[1]))return r.error(`invalid value of type "${typeof e[1]}"`);let i=e[1],n=St(i);if(n.kind==="array"){let a=i,s=r.concat(1),o=[];for(let l=0;lr.evaluate(e))}eachChild(e){this.arr.forEach(e)}outputDefined(){return this.arr.every(e=>e.outputDefined())}},Il=class wf{constructor(e){this.key=e,this.type=H}static parse(e,r){if(e.length!==2)return r.error(`Expected 1 argument, but found ${e.length-1} instead.`);let i=e[1];return i==null?r.error("Global state property must be defined."):typeof i=="string"?new wf(i):r.error(`Global state property must be string, but found ${typeof e[1]} instead.`)}evaluate(e){var i,n;let r=(i=e.globals)==null?void 0:i.globalState;return!r||Object.keys(r).length===0?null:(n=Yi(r,this.key))!=null?n:null}eachChild(){}outputDefined(){return!1}},Yr={"==":U0,"!=":q0,">":G0,"<":j0,">=":Y0,"<=":X0,array:Be,at:S0,boolean:Be,case:k0,coalesce:of,collator:hf,format:Yp,image:Z0,in:E0,"index-of":F0,interpolate:De,"interpolate-hcl":De,"interpolate-lab":De,length:H0,let:Jp,literal:ri,match:T0,number:Be,"number-format":W0,object:Be,semiliteral:vm,slice:I0,step:Dl,string:Be,"to-boolean":jr,"to-color":jr,"to-number":jr,"to-string":jr,var:tf,within:Sl,distance:kl,"global-state":Il},ve=class extends Error{constructor(t,e){super(e),this.message=e,this.key=t}},bm=class Df{constructor(e,r=[]){this.parent=e,this.bindings={};for(let[i,n]of r)this.bindings[i]=n}concat(e){return new Df(this,e)}get(e){if(this.bindings[e])return this.bindings[e];if(this.parent)return this.parent.get(e);throw Error(`${e} not found in scope.`)}has(e){return this.bindings[e]?!0:this.parent?this.parent.has(e):!1}},_f=class Af{constructor(e,r,i=[],n,a=new bm,s=[]){this.registry=e,this.path=i,this.key=i.map(o=>`[${o}]`).join(""),this.scope=a,this.errors=s,this.expectedType=n,this._isConstant=r}parse(e,r,i,n,a={}){return r==null?this._parse(e,a):this.concat(r,i,n)._parse(e,a)}_parse(e,r){(e===null||typeof e=="string"||typeof e=="boolean"||typeof e=="number")&&(e=["literal",e]);let i=this.key;function n(a,s,o){return o==="assert"?new Be(s,[a],i):o==="coerce"?new jr(s,[a],i):a}if(Array.isArray(e)){if(e.length===0)return this.error(\'Expected an array with at least one element. If you wanted a literal array, use ["literal", []].\');let a=e[0];if(typeof a!="string")return this.error(`Expression name must be a string, but found ${typeof a} instead. If you wanted a literal array, use ["literal", [...]].`,0),null;let s=this.registry[a];if(s){let o=s.parse(e,this);if(!o)return null;if(this.expectedType){let l=this.expectedType,u=o.type;if((l.kind==="string"||l.kind==="number"||l.kind==="boolean"||l.kind==="object"||l.kind==="array")&&u.kind==="value")o=n(o,l,r.typeAnnotation||"assert");else if(l.kind==="projectionDefinition"&&["string","array","value"].includes(u.kind)||["color","formatted","resolvedImage"].includes(l.kind)&&["value","string"].includes(u.kind)||["padding","numberArray"].includes(l.kind)&&["value","number","array"].includes(u.kind)||l.kind==="colorArray"&&["value","string","array"].includes(u.kind)||l.kind==="variableAnchorOffsetCollection"&&["value","array"].includes(u.kind))o=n(o,l,r.typeAnnotation||"coerce");else if(this.checkSubtype(l,u))return null}if(!(o instanceof ri)&&o.type.kind!=="resolvedImage"&&this._isConstant(o)){let l=new Gp;try{o=new ri(o.type,o.evaluate(l))}catch(u){return this.error(u.message),null}}return o}return this.error(`Unknown expression "${a}". If you wanted a literal array, use ["literal", [...]].`,0)}return e===void 0?this.error("\'undefined\' value invalid. Use null instead."):typeof e=="object"?this.error(\'Bare objects invalid. Use ["literal", {...}] instead.\'):this.error(`Expected an array, but found ${typeof e} instead.`)}concat(e,r,i){let n=typeof e=="number"?this.path.concat(e):this.path,a=i?this.scope.concat(i):this.scope;return new Af(this.registry,this._isConstant,n,r||null,a,this.errors)}error(e,...r){let i=`${this.key}${r.map(n=>`[${n}]`).join("")}`;this.errors.push(new ve(i,e))}checkSubtype(e,r){let i=nn(e,r);return i&&this.error(i),i}},Er=class Ui{constructor(e,r,i,n,a){this.name=e,this.type=r,this._evaluate=i,this.args=n,this.key=a}evaluate(e){return this._evaluate(e,this.args,this.key)}eachChild(e){this.args.forEach(e)}outputDefined(){return!1}static parse(e,r){let i=e[0],n=Ui.definitions[i];if(!n)return r.error(`Unknown expression "${i}". If you wanted a literal array, use ["literal", [...]].`,0);let a=Array.isArray(n)?n[0]:n.type,s=Array.isArray(n)?[[n[1],n[2]]]:n.overloads,o=s.filter(([u])=>!Array.isArray(u)||u.length===e.length-1),l=null;for(let[u,h]of o){l=new _f(r.registry,Da,r.path,null,r.scope);let c=[],p=!1;for(let f=1;fDm(c)).join(" | "),h=[];for(let c=1;c>1;if(e[n]===t)return!0;e[n]>t?i=n-1:r=n+1}return!1}function hr(t){return{type:t}}Er.register(Yr,{error:[o0,[W],(t,[e],r)=>{throw new ft(e.evaluate(t),r)}],typeof:[W,[H],(t,[e])=>mt(St(e.evaluate(t)))],"to-rgba":[Ut(I,4),[pe],(t,[e])=>{let[r,i,n,a]=e.evaluate(t).rgb;return[r*255,i*255,n*255,a]}],rgb:[pe,[I,I,I],Ih],rgba:[pe,[I,I,I,I],Ih],has:{type:Q,overloads:[[[W],(t,[e])=>Ch(e.evaluate(t),t.properties())],[[W,mr],(t,[e,r])=>Ch(e.evaluate(t),r.evaluate(t))]]},get:{type:H,overloads:[[[W],(t,[e])=>Os(e.evaluate(t),t.properties())],[[W,mr],(t,[e,r])=>Os(e.evaluate(t),r.evaluate(t))]]},"feature-state":[H,[W],(t,[e])=>Os(e.evaluate(t),t.featureState||{})],properties:[mr,[],t=>t.properties()],"geometry-type":[W,[],t=>t.geometryType()],id:[H,[],t=>t.id()],zoom:[I,[],t=>t.globals.zoom],"heatmap-density":[I,[],t=>t.globals.heatmapDensity||0],elevation:[I,[],t=>t.globals.elevation||0],"line-progress":[I,[],t=>t.globals.lineProgress||0],accumulated:[H,[],t=>t.globals.accumulated===void 0?null:t.globals.accumulated],"+":[I,hr(I),(t,e)=>{let r=0;for(let i of e)r+=i.evaluate(t);return r}],"*":[I,hr(I),(t,e)=>{let r=1;for(let i of e)r*=i.evaluate(t);return r}],"-":{type:I,overloads:[[[I,I],(t,[e,r])=>e.evaluate(t)-r.evaluate(t)],[[I],(t,[e])=>-e.evaluate(t)]]},"/":[I,[I,I],(t,[e,r])=>e.evaluate(t)/r.evaluate(t)],"%":[I,[I,I],(t,[e,r])=>e.evaluate(t)%r.evaluate(t)],ln2:[I,[],()=>Math.LN2],pi:[I,[],()=>Math.PI],e:[I,[],()=>Math.E],"^":[I,[I,I],(t,[e,r])=>e.evaluate(t)**+r.evaluate(t)],sqrt:[I,[I],(t,[e])=>Math.sqrt(e.evaluate(t))],log10:[I,[I],(t,[e])=>Math.log(e.evaluate(t))/Math.LN10],ln:[I,[I],(t,[e])=>Math.log(e.evaluate(t))],log2:[I,[I],(t,[e])=>Math.log(e.evaluate(t))/Math.LN2],sin:[I,[I],(t,[e])=>Math.sin(e.evaluate(t))],cos:[I,[I],(t,[e])=>Math.cos(e.evaluate(t))],tan:[I,[I],(t,[e])=>Math.tan(e.evaluate(t))],asin:[I,[I],(t,[e])=>Math.asin(e.evaluate(t))],acos:[I,[I],(t,[e])=>Math.acos(e.evaluate(t))],atan:[I,[I],(t,[e])=>Math.atan(e.evaluate(t))],min:[I,hr(I),(t,e)=>Math.min(...e.map(r=>r.evaluate(t)))],max:[I,hr(I),(t,e)=>Math.max(...e.map(r=>r.evaluate(t)))],abs:[I,[I],(t,[e])=>Math.abs(e.evaluate(t))],round:[I,[I],(t,[e])=>{let r=e.evaluate(t);return r<0?-Math.round(-r):Math.round(r)}],floor:[I,[I],(t,[e])=>Math.floor(e.evaluate(t))],ceil:[I,[I],(t,[e])=>Math.ceil(e.evaluate(t))],"filter-==":[Q,[W,H],(t,[e,r])=>t.properties()[e.value]===r.value],"filter-id-==":[Q,[H],(t,[e])=>t.id()===e.value],"filter-type-==":[Q,[W],(t,[e])=>t.geometryType()===e.value],"filter-<":[Q,[W,H],(t,[e,r])=>{let i=t.properties()[e.value],n=r.value;return typeof i==typeof n&&i{let r=t.id(),i=e.value;return typeof r==typeof i&&r":[Q,[W,H],(t,[e,r])=>{let i=t.properties()[e.value],n=r.value;return typeof i==typeof n&&i>n}],"filter-id->":[Q,[H],(t,[e])=>{let r=t.id(),i=e.value;return typeof r==typeof i&&r>i}],"filter-<=":[Q,[W,H],(t,[e,r])=>{let i=t.properties()[e.value],n=r.value;return typeof i==typeof n&&i<=n}],"filter-id-<=":[Q,[H],(t,[e])=>{let r=t.id(),i=e.value;return typeof r==typeof i&&r<=i}],"filter->=":[Q,[W,H],(t,[e,r])=>{let i=t.properties()[e.value],n=r.value;return typeof i==typeof n&&i>=n}],"filter-id->=":[Q,[H],(t,[e])=>{let r=t.id(),i=e.value;return typeof r==typeof i&&r>=i}],"filter-has":[Q,[H],(t,[e])=>{let r=e.value,i=t.properties();return r in i&&i[r]!==void 0}],"filter-has-id":[Q,[],t=>t.id()!==null&&t.id()!==void 0],"filter-type-in":[Q,[Ut(W)],(t,[e])=>e.value.indexOf(t.geometryType())>=0],"filter-id-in":[Q,[Ut(H)],(t,[e])=>e.value.indexOf(t.id())>=0],"filter-in-small":[Q,[W,Ut(H)],(t,[e,r])=>r.value.indexOf(t.properties()[e.value])>=0],"filter-in-large":[Q,[W,Ut(H)],(t,[e,r])=>wm(t.properties()[e.value],r.value,0,r.value.length-1)],all:{type:Q,overloads:[[[Q,Q],(t,[e,r])=>e.evaluate(t)&&r.evaluate(t)],[hr(Q),(t,e)=>{for(let r of e)if(!r.evaluate(t))return!1;return!0}]]},any:{type:Q,overloads:[[[Q,Q],(t,[e,r])=>e.evaluate(t)||r.evaluate(t)],[hr(Q),(t,e)=>{for(let r of e)if(r.evaluate(t))return!0;return!1}]]},"!":[Q,[Q],(t,[e])=>!e.evaluate(t)],"is-supported-script":[Q,[W],(t,[e])=>{let r=t.globals&&t.globals.isSupportedScript;return!r||r(e.evaluate(t))}],upcase:[W,[W],(t,[e])=>e.evaluate(t).toUpperCase()],downcase:[W,[W],(t,[e])=>e.evaluate(t).toLowerCase()],concat:[W,hr(H),(t,e)=>e.map(r=>Wi(r.evaluate(t))).join("")],split:[Ut(W),[W,W],(t,[e,r])=>e.evaluate(t).split(r.evaluate(t))],join:[W,[Ut(W),W],(t,[e,r])=>e.evaluate(t).join(r.evaluate(t))],"resolved-locale":[W,[La],(t,[e])=>e.evaluate(t).resolvedLocale()]});function Dm(t){return Array.isArray(t)?`(${t.map(mt).join(", ")})`:`(${mt(t.type)}...)`}function Da(t){if(t instanceof tf)return Da(t.boundExpression);if(t instanceof Er&&t.name==="error"||t instanceof hf||t instanceof Sl||t instanceof kl||t instanceof Il)return!1;let e=t instanceof jr||t instanceof Be,r=!0;return t.eachChild(i=>{r&&(r=e?Da(i):i instanceof ri)}),r?qa(t)&&ja(t,["zoom","heatmap-density","elevation","line-progress","accumulated","is-supported-script"]):!1}function qa(t){if(t instanceof Er&&(t.name==="get"&&t.args.length===1||t.name==="feature-state"||t.name==="has"&&t.args.length===1||t.name==="properties"||t.name==="geometry-type"||t.name==="id"||/^filter-/.test(t.name))||t instanceof Sl||t instanceof kl)return!1;let e=!0;return t.eachChild(r=>{e&&!qa(r)&&(e=!1)}),e}function sn(t){if(t instanceof Er&&t.name==="feature-state")return!1;let e=!0;return t.eachChild(r=>{e&&!sn(r)&&(e=!1)}),e}function ja(t,e){if(t instanceof Er&&e.indexOf(t.name)>=0)return!1;let r=!0;return t.eachChild(i=>{r&&!ja(i,e)&&(r=!1)}),r}function ii(t){return t["property-type"]==="data-driven"||t["property-type"]==="cross-faded-data-driven"}function Sf(t){return!!t.expression&&t.expression.parameters.indexOf("zoom")>-1}function Cl(t){return!!t.expression&&t.expression.interpolated}var Ml=/^(.*)-transition$/;function on(t,...e){for(let r of e)for(let i in r)t[i]=r[i];return t}function J(t){return t instanceof Number?"number":t instanceof String?"string":t instanceof Boolean?"boolean":Array.isArray(t)?"array":t===null?"null":typeof t}function Ga(t){return typeof t=="object"&&!!t&&!Array.isArray(t)&&St(t)===mr}function _m(t){return t}function Am(t){switch(t.type){case"color":return xt.parse;case"padding":return Ee.parse;case"numberArray":return Fe.parse;case"colorArray":return ue.parse;default:return null}}function Sm(t){switch(t){case"exponential":return Ff;case"interval":return Fm;case"categorical":return Em;case"identity":return Tm;default:throw Error(`Unknown function type "${t}"`)}}function Ef(t,e){let r=t.stops&&typeof t.stops[0][0]=="object",i=r||t.property!==void 0,n=r||!i,a=t.type||(Cl(e)?"exponential":"interval"),s=Am(e);if(s&&(t=on({},t),t.stops&&(t.stops=t.stops.map(h=>[h[0],s(h[1])])),t.default?t.default=s(t.default):t.default=s(e.default)),t.colorSpace&&!g0(t.colorSpace))throw Error(`Unknown color space: "${t.colorSpace}"`);let o=Sm(a),l,u;if(a==="categorical"){l=Object.create(null);for(let h of t.stops)l[h[0]]=h[1];u=typeof t.stops[0][0]}if(r){let h={},c=[];for(let d=0;dd[0]),evaluate({zoom:d},y){return Ff({stops:p,base:t.base},e,d).evaluate(d,y)}}}if(n){let h=a==="exponential"?{name:"exponential",base:t.base===void 0?1:t.base}:null;return{kind:"camera",interpolationType:h,interpolationFactor:De.interpolationFactor.bind(void 0,h),zoomStops:t.stops.map(c=>c[0]),evaluate:({zoom:c})=>o(t,e,c,l,u)}}return{kind:"source",evaluate(h,c){let p=c&&c.properties?c.properties[t.property]:void 0;return p===void 0?_n(t.default,e.default):o(t,e,p,l,u)}}}function _n(t,e,r){if(t!==void 0)return t;if(e!==void 0)return e;if(r!==void 0)return r}function Em(t,e,r,i,n){return _n(typeof r===n?i[r]:void 0,t.default,e.default)}function Fm(t,e,r){if(J(r)!=="number")return _n(t.default,e.default);let i=t.stops.length;if(i===1||r<=t.stops[0][0])return t.stops[0][1];if(r>=t.stops[i-1][0])return t.stops[i-1][1];let n=$a(t.stops.map(a=>a[0]),r,"");return t.stops[n][1]}function Ff(t,e,r){let i=t.base===void 0?1:t.base;if(J(r)!=="number")return _n(t.default,e.default);let n=t.stops.length;if(n===1||r<=t.stops[0][0])return t.stops[0][1];if(r>=t.stops[n-1][0])return t.stops[n-1][1];let a=$a(t.stops.map(h=>h[0]),r,""),s=km(r,i,t.stops[a][0],t.stops[a+1][0]),o=t.stops[a][1],l=t.stops[a+1][1],u=br[e.type]||_m;return typeof o.evaluate=="function"?{evaluate(...h){let c=o.evaluate.apply(void 0,h),p=l.evaluate.apply(void 0,h);if(c!==void 0&&p!==void 0)return u(c,p,s,t.colorSpace)}}:u(o,l,s,t.colorSpace)}function Tm(t,e,r){switch(e.type){case"color":r=xt.parse(r);break;case"formatted":r=Le.fromString(r.toString());break;case"resolvedImage":r=Se.fromString(r.toString());break;case"padding":r=Ee.parse(r);break;case"colorArray":r=ue.parse(r);break;case"numberArray":r=Fe.parse(r);break;default:J(r)!==e.type&&(e.type!=="enum"||!e.values[r])&&(r=void 0)}return _n(r,t.default,e.default)}function km(t,e,r,i){let n=i-r,a=t-r;return n===0?0:e===1?a/n:(e**+a-1)/(e**+n-1)}function ho(t){return{result:"success",value:t}}function Nr(t){return{result:"error",value:t}}var Bl=class{constructor(t,e,r,i){this.expression=t,this._warningHistory={},this._evaluator=new Gp,this._defaultValue=r?Bf(r):null,this._enumValues=r&&r.type==="enum"?r.values:null,this._globalState=i,this._rootKey=e}evaluateWithoutErrorHandling(t,e,r,i,n,a){return this._globalState&&(t=ni(t,this._globalState)),this._evaluator.globals=t,this._evaluator.feature=e,this._evaluator.featureState=r,this._evaluator.canonical=i,this._evaluator.availableImages=n||null,this._evaluator.formattedSection=a,this.expression.evaluate(this._evaluator)}evaluate(t,e,r,i,n,a){this._globalState&&(t=ni(t,this._globalState)),this._evaluator.globals=t,this._evaluator.feature=e||null,this._evaluator.featureState=r||null,this._evaluator.canonical=i,this._evaluator.availableImages=n||null,this._evaluator.formattedSection=a||null;try{let s=this.expression.evaluate(this._evaluator);if(s==null||typeof s=="number"&&s!==s)return this._defaultValue;if(this._enumValues&&!(s in this._enumValues))throw new ft(`Expected value to be one of ${Object.keys(this._enumValues).map(o=>JSON.stringify(o)).join(", ")}, but found ${JSON.stringify(s)} instead.`,"");return s}catch(s){let o=s instanceof ft?s.path:"",l=`${o}|${s.message}`;return this._warningHistory[l]||(this._warningHistory[l]=!0,typeof console<"u"&&console.warn(Tf(this._rootKey,o,s.message,this._defaultValue))),this._defaultValue}}};function Tf(t,e,r,i){return`${t}${e}: ${r}${i==null?"":` Falling back to ${String(i)}.`}`}function kf(t){if(!t)throw Error(\'rootKey must identify the location of the expression in the style JSON, e.g. "layers[3].paint.line-width".\')}function Xa(t){return Array.isArray(t)&&t.length>0&&typeof t[0]=="string"&&t[0]in Yr}function ar(t,e,r,i){kf(e);let n=new _f(Yr,Da,[],r?Mm(r):void 0),a=n.parse(t,void 0,void 0,void 0,r&&r.type==="string"?{typeAnnotation:"coerce"}:void 0);return a?ho(new Bl(a,e,r,i)):Nr(n.errors)}var ln=class{constructor(t,e,r){this.kind=t,this._styleExpression=e,this.isStateDependent=t!=="constant"&&!sn(e.expression),this.globalStateRefs=An(e.expression),this._globalState=r}evaluateWithoutErrorHandling(t,e,r,i,n,a){return this._globalState&&(t=ni(t,this._globalState)),this._styleExpression.evaluateWithoutErrorHandling(t,e,r,i,n,a)}evaluate(t,e,r,i,n,a){return this._globalState&&(t=ni(t,this._globalState)),this._styleExpression.evaluate(t,e,r,i,n,a)}},_a=class{constructor(t,e,r,i,n){this.kind=t,this.zoomStops=r,this._styleExpression=e,this.isStateDependent=t!=="camera"&&!sn(e.expression),this.globalStateRefs=An(e.expression),this.interpolationType=i,this._globalState=n}evaluateWithoutErrorHandling(t,e,r,i,n,a){return this._globalState&&(t=ni(t,this._globalState)),this._styleExpression.evaluateWithoutErrorHandling(t,e,r,i,n,a)}evaluate(t,e,r,i,n,a){return this._globalState&&(t=ni(t,this._globalState)),this._styleExpression.evaluate(t,e,r,i,n,a)}interpolationFactor(t,e,r){return this.interpolationType?De.interpolationFactor(this.interpolationType,t,e,r):0}};function Im(t){return t._styleExpression!==void 0}function If(t,e,r,i){let n=ar(t,e,r,i);if(n.result==="error")return n;let a=n.value.expression,s=qa(a);if(!s&&!ii(r))return Nr([new ve("","data expressions not supported")]);let o=ja(a,["zoom"]);if(!o&&!Sf(r))return Nr([new ve("","zoom expressions not supported")]);let l=da(a);if(!l&&!o)return Nr([new ve("",\'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.\')]);if(l instanceof ve)return Nr([l]);if(l instanceof De&&!Cl(r))return Nr([new ve("",\'"interpolate" expressions cannot be used with this property\')]);if(!l)return ho(s?new ln("constant",n.value,i):new ln("source",n.value,i));let u=l instanceof De?l.interpolation:void 0;return ho(s?new _a("camera",n.value,l.labels,u,i):new _a("composite",n.value,l.labels,u,i))}var Cf=class Mf{constructor(e,r,i){this.isStateDependent=!1,this.globalStateRefs=new Set,this._globalState=null,kf(r),this._parameters=e,this._specification=i,this._rootKey=r,this._defaultValue=Bf(i),this._warningHistory={};let n=Ef(this._parameters,this._specification);this.kind=n.kind,this.interpolationFactor=n.interpolationFactor,this.zoomStops=n.zoomStops,this.interpolationType=n.interpolationType,this._innerEvaluate=n.evaluate}evaluate(e,r){try{return this._innerEvaluate(e,r)}catch(i){let n=i instanceof Error?i.message:String(i),a=`|${n}`;return this._warningHistory[a]||(this._warningHistory[a]=!0,typeof console<"u"&&console.warn(Tf(this._rootKey,"",n,this._defaultValue))),this._defaultValue}}static deserialize(e){return new Mf(e._parameters,e._rootKey,e._specification)}static serialize(e){return{_parameters:e._parameters,_specification:e._specification,_rootKey:e._rootKey}}};function Cm(t,e,r,i){if(Ga(t))return new Cf(t,e,r);if(Xa(t)){let n=If(t,e,r,i);if(n.result==="error")throw Error(n.value.map(a=>`${a.key}: ${a.message}`).join(", "));return n.value}{let n=t;return r.type==="color"&&typeof t=="string"?n=xt.parse(t):r.type==="padding"&&(typeof t=="number"||Array.isArray(t))?n=Ee.parse(t):r.type==="numberArray"&&(typeof t=="number"||Array.isArray(t))?n=Fe.parse(t):r.type==="colorArray"&&(typeof t=="string"||Array.isArray(t))?n=ue.parse(t):r.type==="variableAnchorOffsetCollection"&&Array.isArray(t)?n=Ae.parse(t):r.type==="projectionDefinition"&&typeof t=="string"&&(n=Sr.parse(t)),{globalStateRefs:new Set,_globalState:null,kind:"constant",evaluate:()=>n}}}function da(t){let e=null;if(t instanceof Jp)e=da(t.result);else if(t instanceof of){for(let r of t.args)if(e=da(r),e)break}else(t instanceof Dl||t instanceof De)&&t.input instanceof Er&&t.input.name==="zoom"&&(e=t);return e instanceof ve||t.eachChild(r=>{let i=da(r);i instanceof ve?e=i:!e&&i?e=new ve("",\'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.\'):e&&i&&e!==i&&(e=new ve("",\'Only one zoom-based "step" or "interpolate" subexpression may be used in an expression.\'))}),e}function An(t,e=new Set){return t instanceof Il&&e.add(t.key),t.eachChild(r=>{An(r,e)}),e}function Mm(t){let e={color:pe,string:W,number:I,enum:W,boolean:Q,formatted:bn,padding:Va,numberArray:Oa,colorArray:rn,projectionDefinition:za,resolvedImage:wn,variableAnchorOffsetCollection:Ra};return t.type==="array"?Ut(e[t.value]||H,t.length):e[t.type]}function Bf(t){if(t.type==="color"&&Ga(t.default))return new xt(0,0,0,0);switch(t.type){case"color":return xt.parse(t.default)||null;case"padding":return Ee.parse(t.default)||null;case"numberArray":return Fe.parse(t.default)||null;case"colorArray":return ue.parse(t.default)||null;case"variableAnchorOffsetCollection":return Ae.parse(t.default)||null;case"projectionDefinition":return Sr.parse(t.default)||null;default:return t.default===void 0?null:t.default}}function ni(t,e){let{zoom:r,heatmapDensity:i,elevation:n,lineProgress:a,isSupportedScript:s,accumulated:o}=t!=null?t:{};return{zoom:r,heatmapDensity:i,elevation:n,lineProgress:a,isSupportedScript:s,accumulated:o,globalState:e}}function Bm(t){let e=!1;for(let r of t){let i=Pf(r);if(i==="expression")return"expression";i==="legacy"&&(e=!0)}return e?"legacy":"neutral"}function Pf(t){if(typeof t=="boolean")return"neutral";if(!Array.isArray(t)||t.length===0)return"legacy";switch(t[0]){case"has":return t.length<2||t[1]==="$id"||t[1]==="$type"?"legacy":t.length===2?"neutral":"expression";case"in":return t.length>=3&&(typeof t[1]!="string"||Array.isArray(t[2]))?"expression":"legacy";case"!in":case"!has":return"legacy";case"==":case"!=":case">":case">=":case"<":case"<=":return t.length!==3||Array.isArray(t[1])||Array.isArray(t[2])?"expression":"legacy";case"none":return"legacy";case"any":case"all":return Bm(t.slice(1));default:return"expression"}}function Pl(t){return Pf(t)!=="legacy"}function Mh(t){return t==="$type"?["geometry-type"]:t==="$id"?["id"]:["get",t]}function Pm(t){switch(t[0]){case"==":case"!=":case"<":case"<=":case">":case">=":return t.length!==3||typeof t[1]!="string"?null:[t[0],Mh(t[1]),t[2]];case"in":case"!in":{if(t.length<2||typeof t[1]!="string")return null;let e=["in",Mh(t[1]),["literal",t.slice(2)]];return t[0]==="!in"?["!",e]:e}case"has":case"!has":{if(t.length!==2||typeof t[1]!="string"||t[1]==="$type"||t[1]==="$id")return null;let e=["has",t[1]];return t[0]==="!has"?["!",e]:e}default:return null}}function zf(t){if((t[0]==="<"||t[0]==="<="||t[0]===">"||t[0]===">=")&&t[1]==="$type")return`"$type" cannot be use with operator "${t[0]}"`;let e=Pm(t);return e?`Mixing deprecated filter syntax with expression syntax is not supported. Replace ${JSON.stringify(t)} with ${JSON.stringify(e)}.`:`Mixing deprecated filter syntax with expression syntax is not supported. Convert ${JSON.stringify(t)} to expression syntax.`}function Rs(t,e,r){let i=r[t];return Array.isArray(i)?Pl(i)?zl(i,e.concat(t)):{path:e.concat(t),legacyFilter:i}:null}function zl(t,e=[]){if(!Array.isArray(t)||t.length<1)return null;switch(t[0]){case"all":case"any":case"none":for(let r=1;r"u")return;let i=r.path.map(n=>`[${n}]`).join("");console.warn(`${e}${i}: ${zf(r.legacyFilter)}`)}var Lm={type:"boolean",default:!1,transition:!1,"property-type":"data-driven",expression:{interpolated:!1,parameters:["zoom","feature"]}};function ai(t,e,r){if(t==null)return{filter:()=>!0,needGeometry:!1,getGlobalStateRefs:()=>new Set};Pl(t)?zm(t,e):t=Aa(t);let i=ar(t,e,Lm,r);if(i.result==="error")throw Error(i.value.map(n=>`${n.key}: ${n.message}`).join(", "));return{filter:(n,a,s)=>i.value.evaluate(n,a,{},s),needGeometry:Lf(t),getGlobalStateRefs:()=>An(i.value.expression)}}function Vm(t,e){return te)}function Lf(t){if(!Array.isArray(t))return!1;if(t[0]==="within"||t[0]==="distance")return!0;for(let e=1;e"||e==="<="||e===">="?$s(t[1],t[2],e):e==="any"?Om(t.slice(1)):e==="all"?["all"].concat(t.slice(1).map(Aa)):e==="none"?["all"].concat(t.slice(1).map(Aa).map(Hn)):e==="in"?Bh(t[1],t.slice(2)):e==="!in"?Hn(Bh(t[1],t.slice(2))):e==="has"?Ph(t[1]):e!=="!has"||Hn(Ph(t[1]))}function $s(t,e,r){switch(t){case"$type":return[`filter-type-${r}`,e];case"$id":return[`filter-id-${r}`,e];default:return[`filter-${r}`,t,e]}}function Om(t){return["any"].concat(t.map(Aa))}function Bh(t,e){if(e.length===0)return!1;switch(t){case"$type":return["filter-type-in",["literal",e]];case"$id":return["filter-id-in",["literal",e]];default:return e.length>200&&!e.some(r=>typeof r!=typeof e[0])?["filter-in-large",t,["literal",e.sort(Vm)]]:["filter-in-small",t,["literal",e]]}}function Ph(t){switch(t){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",t]}}function Hn(t){return["!",t]}function Vf(t){let e=t.key,r=t.value;return r?[new E(e,r,"constants have been deprecated as of v8")]:[]}function _t(t){return t instanceof Number||t instanceof String||t instanceof Boolean?t.valueOf():t}function wr(t){if(Array.isArray(t))return t.map(wr);if(t instanceof Object&&!(t instanceof Number||t instanceof String||t instanceof Boolean)){let e={};for(let r in t)e[r]=wr(t[r]);return e}return _t(t)}function ee(t){let e=t.key,r=t.value,i=t.valueSpec||{},n=t.objectElementValidators||{},a=t.style,s=t.styleSpec,o=t.validateSpec,l=[],u=J(r);if(u!=="object")return[new E(e,r,`object expected, ${u} found`)];for(let h in r){let c=h.split(".")[0],p=Yi(i,c)||i["*"],f;if(Yi(n,c))f=n[c];else if(Yi(i,c)){if(r[h]===void 0)continue;f=o}else if(n["*"])f=n["*"];else if(i["*"])f=o;else{l.push(new E(e,r[h],`unknown property "${h}"`));continue}l=l.concat(f({key:(e&&`${e}.`)+h,value:r[h],valueSpec:p,style:a,styleSpec:s,object:r,objectKey:h,validateSpec:o},r))}for(let h in i)n[h]||i[h].required&&i[h].default===void 0&&r[h]===void 0&&l.push(new E(e,r,`missing required property "${h}"`));return l}function Ll(t){let e=t.value,r=t.valueSpec,i=t.validateSpec,n=t.style,a=t.styleSpec,s=t.key,o=t.arrayElementValidator||i;if(J(e)!=="array")return[new E(s,e,`array expected, ${J(e)} found`)];if(r.length&&e.length!==r.length)return[new E(s,e,`array length ${r.length} expected, length ${e.length} found`)];let l={type:r.value,values:r.values};a.$version<7&&(l.function=r.function),J(r.value)==="object"&&(l=r.value);let u=[];for(let h=0;hi.maximum?[new E(e,r,`${r} is greater than the maximum value ${i.maximum}`)]:[]:[new E(e,r,`number expected, ${n} found`)]}function Of(t){let e=t.valueSpec,r=_t(t.value.type),i,n={},a,s,o=r!=="categorical"&&t.value.property===void 0,l=!o,u=J(t.value.stops)==="array"&&J(t.value.stops[0])==="array"&&J(t.value.stops[0][0])==="object",h=ee({key:t.key,value:t.value,valueSpec:t.styleSpec.function,validateSpec:t.validateSpec,style:t.style,styleSpec:t.styleSpec,objectElementValidators:{stops:c,default:d}});return r==="identity"&&o&&h.push(new E(t.key,t.value,\'missing required property "property"\')),r!=="identity"&&!t.value.stops&&h.push(new E(t.key,t.value,\'missing required property "stops"\')),r==="exponential"&&t.valueSpec.expression&&!Cl(t.valueSpec)&&h.push(new E(t.key,t.value,"exponential functions not supported")),t.styleSpec.$version>=8&&(l&&!ii(t.valueSpec)?h.push(new E(t.key,t.value,"property functions not supported")):o&&!Sf(t.valueSpec)&&h.push(new E(t.key,t.value,"zoom functions not supported"))),(r==="categorical"||u)&&t.value.property===void 0&&h.push(new E(t.key,t.value,\'"property" property is required\')),h;function c(y){if(r==="identity")return[new E(y.key,y.value,\'identity function may not have a "stops" property\')];let m=[],g=y.value;return m=m.concat(Ll({key:y.key,value:g,valueSpec:y.valueSpec,validateSpec:y.validateSpec,style:y.style,styleSpec:y.styleSpec,arrayElementValidator:p})),J(g)==="array"&&g.length===0&&m.push(new E(y.key,g,"array must have at least one stop")),m}function p(y){let m=[],g=y.value,x=y.key;if(J(g)!=="array")return[new E(x,g,`array expected, ${J(g)} found`)];if(g.length!==2)return[new E(x,g,`array length 2 expected, length ${g.length} found`)];if(u){if(J(g[0])!=="object")return[new E(x,g,`object expected, ${J(g[0])} found`)];if(g[0].zoom===void 0)return[new E(x,g,"object stop key must have zoom")];if(g[0].value===void 0)return[new E(x,g,"object stop key must have value")];if(s&&s>_t(g[0].zoom))return[new E(x,g[0].zoom,"stop zoom values must appear in ascending order")];_t(g[0].zoom)!==s&&(s=_t(g[0].zoom),a=void 0,n={}),m=m.concat(ee({key:`${x}[0]`,value:g[0],valueSpec:{zoom:{}},validateSpec:y.validateSpec,style:y.style,styleSpec:y.styleSpec,objectElementValidators:{zoom:Ya,value:f}}))}else m=m.concat(f({key:`${x}[0]`,value:g[0],valueSpec:{},validateSpec:y.validateSpec,style:y.style,styleSpec:y.styleSpec},g));return Xa(wr(g[1]))?m.concat([new E(`${x}[1]`,g[1],"expressions are not allowed in function stops.")]):m.concat(y.validateSpec({key:`${x}[1]`,value:g[1],valueSpec:e,validateSpec:y.validateSpec,style:y.style,styleSpec:y.styleSpec}))}function f(y,m){let g=J(y.value),x=_t(y.value),v=y.value===null?m:y.value;if(!i)i=g;else if(g!==i)return[new E(y.key,v,`${g} stop domain type must match previous stop domain type ${i}`)];if(g!=="number"&&g!=="string"&&g!=="boolean")return[new E(y.key,v,"stop domain value must be a number, string, or boolean")];if(g!=="number"&&r!=="categorical"){let b=`number expected, ${g} found`;return ii(e)&&r===void 0&&(b+=\'\\nIf you intended to use a categorical function, specify `"type": "categorical"`.\'),[new E(y.key,v,b)]}return r==="categorical"&&g==="number"&&(!isFinite(x)||Math.floor(x)!==x)?[new E(y.key,v,`integer expected, found ${x}`)]:r!=="categorical"&&g==="number"&&a!==void 0&&xnew E(`${t.key}${i.key}`,t.value,i.message));let r=e.value.expression||e.value._styleExpression.expression;if(t.expressionContext==="property"&&t.propertyKey==="text-font"&&!r.outputDefined())return[new E(t.key,t.value,`Invalid data expression for "${t.propertyKey}". Output values must be contained as literals within the expression.`)];if(t.expressionContext==="property"&&t.propertyType==="layout"&&!sn(r))return[new E(t.key,t.value,\'"feature-state" data expressions are not supported with layout properties.\')];if(t.expressionContext==="filter"&&!sn(r))return[new E(t.key,t.value,\'"feature-state" data expressions are not supported with filters.\')];if(t.expressionContext&&t.expressionContext.indexOf("cluster")===0){if(!ja(r,["zoom","feature-state"]))return[new E(t.key,t.value,\'"zoom" and "feature-state" expressions are not supported with cluster properties.\')];if(t.expressionContext==="cluster-initial"&&!qa(r))return[new E(t.key,t.value,"Feature data expressions are not supported with initial expression part of cluster properties.")]}return[]}function Rm(t){let e=t.value,r=t.key,i=J(e);return i==="boolean"?[]:[new E(r,e,`boolean expected, ${i} found`)]}function co(t){let e=t.key,r=t.value,i=J(r);return i==="string"?xt.parse(String(r))?[]:[new E(e,r,`color expected, "${r}" found`)]:[new E(e,r,`color expected, ${i} found`)]}function un(t){let e=t.key,r=t.value,i=t.valueSpec,n=[];return Array.isArray(i.values)?i.values.indexOf(_t(r))===-1&&n.push(new E(e,r,`expected one of [${i.values.join(", ")}], ${JSON.stringify(r)} found`)):Object.keys(i.values).indexOf(_t(r))===-1&&n.push(new E(e,r,`expected one of [${Object.keys(i.values).join(", ")}], ${JSON.stringify(r)} found`)),n}function $m(t,e){let r=t;for(let i of e)r=r[i];return r}function Nm(t,e){let r=zl(e);return r?[new E(`${t.key}${r.path.map(i=>`[${i}]`).join("")}`,$m(t.value,r.path),zf(r.legacyFilter),null,"warning")]:[]}function Vl(t){let e=wr(t.value);return Pl(e)?[...Nm(t,e),...si(on({},t,{expressionContext:"filter",valueSpec:{value:"boolean"}}))]:Rf(t)}function Rf(t){let e=t.value,r=t.key;if(J(e)!=="array")return[new E(r,e,`array expected, ${J(e)} found`)];let i=t.styleSpec,n,a=[];if(e.length<1)return[new E(r,e,"filter array must have at least 1 element")];switch(a=a.concat(un({key:`${r}[0]`,value:e[0],valueSpec:i.filter_operator,style:t.style,styleSpec:t.styleSpec})),_t(e[0])){case"<":case"<=":case">":case">=":e.length>=2&&_t(e[1])==="$type"&&a.push(new E(r,e,`"$type" cannot be use with operator "${e[0]}"`));case"==":case"!=":e.length!==3&&a.push(new E(r,e,`filter array for operator "${e[0]}" must have 3 elements`));case"in":case"!in":e.length>=2&&(n=J(e[1]),n!=="string"&&a.push(new E(`${r}[1]`,e[1],`string expected, ${n} found`)));for(let s=2;s{c in r&&e.push(new E(i,r[c],`"${c}" is prohibited for ref layers`))});let h;n.layers.forEach(c=>{_t(c.id)===o&&(h=c)}),h?h.ref?e.push(new E(i,r.ref,"ref cannot reference another ref layer")):s=_t(h.type):e.push(new E(i,r.ref,`ref layer "${o}" not found`))}else if(s!=="background")if(!r.source)e.push(new E(i,r,\'missing required property "source"\'));else{let h=n.sources&&n.sources[r.source],c=h&&_t(h.type);h?c==="vector"&&s==="raster"?e.push(new E(i,r.source,`layer "${r.id}" requires a raster source`)):c!=="raster-dem"&&s==="hillshade"||c!=="raster-dem"&&s==="color-relief"?e.push(new E(i,r.source,`layer "${r.id}" requires a raster-dem source`)):c==="raster"&&s!=="raster"?e.push(new E(i,r.source,`layer "${r.id}" requires a vector source`)):c==="vector"&&!r["source-layer"]?e.push(new E(i,r,`layer "${r.id}" must specify a "source-layer"`)):c==="raster-dem"&&s!=="hillshade"&&s!=="color-relief"?e.push(new E(i,r.source,"raster-dem source can only be used with layer type \'hillshade\' or \'color-relief\'.")):s==="line"&&r.paint&&r.paint["line-gradient"]&&(c!=="geojson"||!h.lineMetrics)&&e.push(new E(i,r,`layer "${r.id}" specifies a line-gradient, which requires a GeoJSON source with \\`lineMetrics\\` enabled.`)):e.push(new E(i,r.source,`source "${r.source}" not found`))}return s==="raster"&&((l=r.paint)!=null&&l.resampling)&&((u=r.paint)!=null&&u["raster-resampling"])&&e.push(new E(i,r.paint,`layer "${r.id}" redundantly specifies "resampling" and "raster-resampling" paint properties, but only one is allowed. It is advised to use "resampling".`)),e=e.concat(ee({key:i,value:r,valueSpec:a.layer,style:t.style,styleSpec:t.styleSpec,validateSpec:t.validateSpec,objectElementValidators:{"*"(){return[]},type(){return t.validateSpec({key:`${i}.type`,value:r.type,valueSpec:a.layer.type,style:t.style,styleSpec:t.styleSpec,validateSpec:t.validateSpec,object:r,objectKey:"type"})},filter:Vl,layout(h){return ee({layer:r,key:h.key,value:h.value,style:h.style,styleSpec:h.styleSpec,validateSpec:h.validateSpec,objectElementValidators:{"*"(c){return Uf(on({layerType:s},c))}}})},paint(h){return ee({layer:r,key:h.key,value:h.value,style:h.style,styleSpec:h.styleSpec,validateSpec:h.validateSpec,objectElementValidators:{"*"(c){return Nf(on({layerType:s},c))}}})}}})),e}function ir(t){let e=t.value,r=t.key,i=J(e);return i==="string"?[]:[new E(r,e,`string expected, ${i} found`)]}function Um(t){var c;let e=(c=t.sourceName)!=null?c:"",r=t.value,i=t.styleSpec,n=i.source_raster_dem,a=t.style,s=[],o=J(r);if(r===void 0)return s;if(o!=="object")return s.push(new E("source_raster_dem",r,`object expected, ${o} found`)),s;let l=_t(r.encoding)==="custom",u=["redFactor","greenFactor","blueFactor","baseShift"],h=t.value.encoding?`"${t.value.encoding}"`:"Default";for(let p in r)!l&&u.includes(p)?s.push(new E(p,r[p],`In "${e}": "${p}" is only valid when "encoding" is set to "custom". ${h} encoding found`)):n[p]?s=s.concat(t.validateSpec({key:p,value:r[p],valueSpec:n[p],validateSpec:t.validateSpec,style:a,styleSpec:i})):s.push(new E(p,r[p],`unknown property "${p}"`));return s}var zh={promoteId:qm};function jf(t){let e=t.value,r=t.key,i=t.styleSpec,n=t.style,a=t.validateSpec;if(!e.type)return[new E(r,e,\'"type" is required\')];let s=_t(e.type),o;switch(s){case"vector":case"raster":return o=ee({key:r,value:e,valueSpec:i[`source_${s.replace("-","_")}`],style:t.style,styleSpec:i,objectElementValidators:zh,validateSpec:a}),o;case"raster-dem":return o=Um({sourceName:r,value:e,style:t.style,styleSpec:i,validateSpec:a}),o;case"geojson":if(o=ee({key:r,value:e,valueSpec:i.source_geojson,style:n,styleSpec:i,validateSpec:a,objectElementValidators:zh}),e.cluster)for(let l in e.clusterProperties){let[u,h]=e.clusterProperties[l],c=typeof u=="string"?[u,["accumulated"],["get",l]]:u;o.push(...si({key:`${r}.${l}.map`,value:h,validateSpec:a,expressionContext:"cluster-map"})),o.push(...si({key:`${r}.${l}.reduce`,value:c,validateSpec:a,expressionContext:"cluster-reduce"}))}return o;case"video":return ee({key:r,value:e,valueSpec:i.source_video,style:n,validateSpec:a,styleSpec:i});case"image":return ee({key:r,value:e,valueSpec:i.source_image,style:n,validateSpec:a,styleSpec:i});case"canvas":return[new E(r,null,"Please use runtime APIs to add canvas sources, rather than including them in stylesheets.","source.canvas")];default:return un({key:`${r}.type`,value:e.type,valueSpec:{values:["vector","raster","raster-dem","geojson","video","image"]},style:n,validateSpec:a,styleSpec:i})}}function qm({key:t,value:e}){if(J(e)==="string")return ir({key:t,value:e});{let r=[];for(let i in e)r.push(...ir({key:`${t}.${i}`,value:e[i]}));return r}}function Gf(t){let e=t.value,r=t.styleSpec,i=r.light,n=t.style,a=[],s=J(e);if(e===void 0)return a;if(s!=="object")return a=a.concat([new E("light",e,`object expected, ${s} found`)]),a;for(let o in e){let l=o.match(Ml);a=l&&i[l[1]]&&i[l[1]].transition?a.concat(t.validateSpec({key:o,value:e[o],valueSpec:r.transition,validateSpec:t.validateSpec,style:n,styleSpec:r})):i[o]?a.concat(t.validateSpec({key:o,value:e[o],valueSpec:i[o],validateSpec:t.validateSpec,style:n,styleSpec:r})):a.concat([new E(o,e[o],`unknown property "${o}"`)])}return a}function Xf(t){let e=t.value,r=t.styleSpec,i=r.sky,n=t.style,a=J(e);if(e===void 0)return[];if(a!=="object")return[new E("sky",e,`object expected, ${a} found`)];let s=[];for(let o in e){let l=o.match(Ml);s=l&&i[l[1]]&&i[l[1]].transition?s.concat(t.validateSpec({key:o,value:e[o],valueSpec:r.transition,style:n,styleSpec:r})):i[o]?s.concat(t.validateSpec({key:o,value:e[o],valueSpec:i[o],style:n,styleSpec:r})):s.concat([new E(o,e[o],`unknown property "${o}"`)])}return s}function Yf(t){let e=t.value,r=t.styleSpec,i=r.terrain,n=t.style,a=[],s=J(e);if(e===void 0)return a;if(s!=="object")return a=a.concat([new E("terrain",e,`object expected, ${s} found`)]),a;for(let o in e)a=i[o]?a.concat(t.validateSpec({key:o,value:e[o],valueSpec:i[o],validateSpec:t.validateSpec,style:n,styleSpec:r})):a.concat([new E(o,e[o],`unknown property "${o}"`)]);return a}function jm(t){return ir(t).length===0?[]:si(t)}function Gm(t){return ir(t).length===0?[]:si(t)}function Xm(t){let e=t.key,r=t.value;if(J(r)==="array"){if(r.length<1||r.length>4)return[new E(e,r,`padding requires 1 to 4 values; ${r.length} values found`)];let i={type:"number"},n=[];for(let a=0;a[new E(t,e,\'invalid unicode range, expected a value such as "U+26", "U+0-10FFFF" or "U+4??"\')],n=r.match(tg);if(!n)return i();let[,a,s,o]=n;if(o!==void 0)return o.length>6?i():[];let l=parseInt(a,16),u=s===void 0?l:parseInt(s,16);return l>Lh||u>Lh?[new E(t,e,"unicode range is out of bounds, the maximum code point is U+10FFFF")]:l>u?[new E(t,e,`unicode range start must not be greater than its end, but ${r} is`)]:[]}function Hf(t){var o,l;let e=(o=t.key)!=null?o:"font-faces",r=t.value,i=t.validateSpec,n=(l=t.styleSpec)!=null?l:Bp,a=t.style;if(!po(r))return[new E(e,r,`object expected, ${J(r)} found`)];let s=[];for(let u in r){let h=r[u],c=J(h);if(c==="string")s.push(...ir({key:`${e}.${u}`,value:h}));else if(c==="array"){let p={url:{type:"string",required:!0},"unicode-range":{type:"array",value:"string"}};for(let[f,d]of h.entries()){let y=`${e}.${u}[${f}]`;s.push(...ee({key:y,value:d,valueSpec:p,styleSpec:n,style:a,validateSpec:i}));let m=po(d)?d["unicode-range"]:void 0;if(J(m)==="array")for(let[g,x]of m.entries())s.push(...eg(`${y}.unicode-range[${g}]`,x))}}else s.push(new E(`${e}.${u}`,h,`string or array expected, ${c} found`))}return s}var Vh={"*"(){return[]},array:Ll,boolean:Rm,number:Ya,color:co,constants:Vf,enum:un,filter:Vl,function:Of,layer:qf,object:ee,source:jf,light:Gf,sky:Xf,terrain:Yf,projection:Hm,projectionDefinition:Km,string:ir,formatted:jm,resolvedImage:Gm,padding:Xm,numberArray:Ym,colorArray:Wm,variableAnchorOffsetCollection:Zm,sprite:Wf,state:Zf,fontFaces:Hf};function Zi(t){let e=t.value,r=t.valueSpec,i=t.styleSpec;return t.validateSpec=Zi,r.expression&&Ga(_t(e))?Of(t):r.expression&&Xa(wr(e))?si(t):r.type&&Vh[r.type]?Vh[r.type](t):ee(on({},t,{valueSpec:r.type?i[r.type]:r}))}function Kf(t){let e=t.value,r=t.key,i=ir(t);return i.length||(e.indexOf("{fontstack}")===-1&&i.push(new E(r,e,\'"glyphs" url must include a "{fontstack}" token\')),e.indexOf("{range}")===-1&&i.push(new E(r,e,\'"glyphs" url must include a "{range}" token\'))),i}function te(t,e=D){let r=[];return r=r.concat(Zi({key:"",value:t,valueSpec:e.$root,styleSpec:e,style:t,validateSpec:Zi,objectElementValidators:{glyphs:Kf,"*"(){return[]}}})),t.constants&&(r=r.concat(Vf({key:"constants",value:t.constants,style:t,styleSpec:e,validateSpec:Zi}))),Jf(r)}te.source=ae(ne(jf)),te.sprite=ae(ne(Wf)),te.glyphs=ae(ne(Kf)),te.fontFaces=ae(ne(Hf)),te.light=ae(ne(Gf)),te.sky=ae(ne(Xf)),te.terrain=ae(ne(Yf)),te.state=ae(ne(Zf)),te.layer=ae(ne(qf)),te.filter=ae(ne(Vl)),te.paintProperty=ae(ne(Nf)),te.layoutProperty=ae(ne(Uf));function ne(t){return function(e){return t(Object.assign({},e,{validateSpec:Zi}))}}function Jf(t){return[].concat(t).sort((e,r)=>e.line-r.line)}function ae(t){return function(...e){return Jf(t.apply(this,e))}}var rg={type:"enum","property-type":"data-constant",expression:{interpolated:!1,parameters:["global-state"]},values:{visible:{},none:{}},transition:!1,default:"visible"},ig=class{constructor(t,e,r){this._rootKey=e,this._globalState=r,this.setValue(t)}evaluate(){var t;return(t=this._literalValue)!=null?t:this._compiledValue.evaluate({})}setValue(t){if(t==null||t==="visible"||t==="none"){this._literalValue=t==="none"?"none":"visible",this._compiledValue=void 0,this._globalStateRefs=new Set;return}let e=ar(t,this._rootKey,rg,this._globalState);if(e.result==="error")throw this._literalValue="visible",this._compiledValue=void 0,Error(e.value.map(r=>`${r.key}: ${r.message}`).join(", "));this._literalValue=void 0,this._compiledValue=e.value,this._globalStateRefs=An(e.value.expression)}getGlobalStateRefs(){return this._globalStateRefs}};function ng(t,e,r){return new ig(t,e,r)}var Oh=te,_5=new Set(Object.keys(D).filter(t=>t.startsWith("source_")).map(t=>t.slice(7).replaceAll("_","-")));function ag(t,e){let r=!1;for(let i of e){if(i.severity==="warning"){Mt(i.message);continue}t.fire(new xa(Error(i.message))),r=!0}return r}function sg(t,e,r,i){return(i==null?void 0:i.validate)!==!1&&ag(t,e(Xe({styleSpec:D},r)))}var fo=class Qf{constructor(e,r,i){let n=this.cells=[];if(e instanceof ArrayBuffer){this.arrayBuffer=e;let s=new Int32Array(this.arrayBuffer);e=s[0],r=s[1],i=s[2],this.d=r+2*i;for(let u=0;u=c[f+0]&&n>=c[f+1])?(o[p]=!0,s.push(h[p])):o[p]=!1}}}_forEachCell(e,r,i,n,a,s,o,l){let u=this._convertToCellCoord(e),h=this._convertToCellCoord(r),c=this._convertToCellCoord(i),p=this._convertToCellCoord(n);for(let f=u;f<=c;f++)for(let d=h;d<=p;d++){let y=this.d*d+f;if((!l||l(this._convertFromCellCoord(f),this._convertFromCellCoord(d),this._convertFromCellCoord(f+1),this._convertFromCellCoord(d+1)))&&a.call(this,e,r,i,n,y,s,o,l))return}}_convertFromCellCoord(e){return(e-this.padding)/this.scale}_convertToCellCoord(e){return Math.max(0,Math.min(this.d-1,Math.floor(e*this.scale)+this.padding))}toArrayBuffer(){if(this.arrayBuffer)return this.arrayBuffer;let e=this.cells,r=3+this.cells.length+1+1,i=0;for(let s of this.cells)i+=s.length;let n=new Int32Array(r+i+this.keys.length+this.bboxes.length);n[0]=this.extent,n[1]=this.n,n[2]=this.padding;let a=r;for(let s=0;sr?(this.lastIntegerZoom=r+1,this.lastIntegerZoomTime=e):this.lastFloorZoomthis.zoomHistory.lastIntegerZoom?{fromScale:2,toScale:1,t:e+(1-e)*r}:{fromScale:.5,toScale:1,t:1-(1-r)*e}}},hn=class{constructor(t,e,r,i){this.property=t,this.value=e,this.expression=Cm(e===void 0?t.specification.default:e,r,t.specification,i)}isDataDriven(){return this.expression.kind==="source"||this.expression.kind==="composite"}getGlobalStateRefs(){return this.expression.globalStateRefs||new Set}readsGlobalState(t){let e=this.getGlobalStateRefs();return t.some(r=>e.has(r))}possiblyEvaluate(t,e,r){return this.property.possiblyEvaluate(this,t,e,r)}},yo=class{constructor(t,e,r){this.property=t,this.value=new hn(t,void 0,e,r)}transitioned(t,e){return e.value===this.value?e:new $h(this.property,this.value,e,Xt({},t.transition,this.transition),t.now)}untransitioned(){return new $h(this.property,this.value,null,{},0)}},lg=class{constructor(t,e,r){this._properties=t,this._values=Object.create(t.defaultTransitionablePropertyValues),this._globalState=r,this._rootKey=e}_propertyRootKey(t){return`${this._rootKey}.${String(t)}`}hasProperty(t){return t in this._properties.defaultTransitionablePropertyValues}getValue(t){return Je(this._values[t].value.value)}setValue(t,e){Object.hasOwn(this._values,t)||(this._values[t]=new yo(this._values[t].property,this._propertyRootKey(t),this._globalState)),this._values[t].value=new hn(this._values[t].property,e===null?void 0:Je(e),this._propertyRootKey(t),this._globalState)}setValues(t){for(let e in t){let r=t[e];e.endsWith("-transition")?this.setTransition(e.slice(0,-11),r):to(this._values[e].value.value,r)||this.setValue(e,r)}}getTransition(t){return Je(this._values[t].transition)}setTransition(t,e){Object.hasOwn(this._values,t)||(this._values[t]=new yo(this._values[t].property,this._propertyRootKey(t),this._globalState)),this._values[t].transition=Je(e)||void 0}retainPriorGlobalState(t,e,r){for(let i of Object.keys(r._values))for(let n=r._values[i];n;n=n.prior){let{value:a}=n;a.property.specification.transition&&!a.isDataDriven()&&a.expression._globalState===this._globalState&&a.readsGlobalState(t)&&(n.value=new hn(a.property,a.value,this._propertyRootKey(i),e))}}applyGlobalStateChange(t,e,r,i){this.retainPriorGlobalState(t,e,r);let n=!1;for(let a of Object.keys(this._values)){let{value:s}=this._values[a];s.readsGlobalState(t)&&(this.setValue(a,s.value),n=!0)}return n?this.transitioned(i,r):r}serialize(){let t={};for(let e of Object.keys(this._values)){let r=this.getValue(e);r!==void 0&&(t[e]=r);let i=this.getTransition(e);i!==void 0&&(t[`${e}-transition`]=i)}return t}transitioned(t,e){let r=new Nh(this._properties);for(let i of Object.keys(this._values))r._values[i]=this._values[i].transitioned(t,e._values[i]);return r}untransitioned(){let t=new Nh(this._properties);for(let e of Object.keys(this._values))t._values[e]=this._values[e].untransitioned();return t}},$h=class{constructor(t,e,r,i,n){this.property=t,this.value=e,this.begin=n+i.delay||0,this.end=this.begin+i.duration||0,t.specification.transition&&(i.delay||i.duration)&&(this.prior=r)}possiblyEvaluate(t,e,r){let i=t.now||0,n=this.value.possiblyEvaluate(t,e,r),a=this.prior;if(!a)return n;if(i>this.end||this.value.isDataDriven())return this.prior=null,n;if(ii.zoomHistory.lastIntegerZoom?{from:t,to:e}:{from:r,to:e}}interpolate(t){return t}},id=class{constructor(t,e){this.specification=t,this.name=e}possiblyEvaluate(t,e,r,i){if(t.value!==void 0){if(t.expression.kind==="constant"){let n=t.expression.evaluate(e,null,{},r,i);return this._calculate(n,n,n,e)}return this._calculate(t.expression.evaluate(new st(Math.floor(e.zoom-1),e)),t.expression.evaluate(new st(Math.floor(e.zoom),e)),t.expression.evaluate(new st(Math.floor(e.zoom+1),e)),e)}}_calculate(t,e,r,i){return i.zoom>i.zoomHistory.lastIntegerZoom?{from:t,to:e}:{from:r,to:e}}interpolate(t){return t}},Za=class{constructor(t,e){this.specification=t,this.name=e}possiblyEvaluate(t,e,r,i){return!!t.expression.evaluate(e,null,{},r,i)}interpolate(){return!1}},Yt=class{constructor(t){this.properties=t,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},this.overridableProperties=[];for(let e in t){let r=t[e];r.specification.overridable&&this.overridableProperties.push(e);let i=this.defaultPropertyValues[e]=new hn(r,void 0,r.name,void 0),n=this.defaultTransitionablePropertyValues[e]=new yo(r,r.name,void 0);this.defaultTransitioningPropertyValues[e]=n.untransitioned(),this.defaultPossiblyEvaluatedValues[e]=i.possiblyEvaluate({})}}};C("DataDrivenProperty",U),C("DataConstantProperty",R),C("CrossFadedDataDrivenProperty",cn),C("CrossFadedProperty",id),C("ColorRampProperty",Za);var qh=" is a PAINT property not a LAYOUT property. Use get/setPaintProperty instead?",Ns=" is a LAYOUT property not a PAINT property. Use get/setLayoutProperty instead?",ye=class extends s0{constructor(t,e,r){if(super(),this.id=t.id,this.type=t.type,this._globalState=r,this._featureFilter={filter:()=>!0,needGeometry:!1,getGlobalStateRefs:()=>new Set},this._visibilityExpression=ng(this.visibility,`layers[${this.id}].layout.visibility`,r),t.type!=="custom"&&(this.metadata=t.metadata,this.minzoom=t.minzoom,this.maxzoom=t.maxzoom,t.type!=="background"&&(this.source=t.source,this.sourceLayer=t["source-layer"],this.filter=t.filter,this._featureFilter=ai(t.filter,`layers[${this.id}].filter`,r)),e.layout&&(this._unevaluatedLayout=new ug(e.layout,`layers[${this.id}].layout`,r)),e.paint)){this._transitionablePaint=new lg(e.paint,`layers[${this.id}].paint`,r);for(let i in t.paint)this.setPaintProperty(i,t.paint[i],{validate:!1});for(let i in t.layout)this.setLayoutProperty(i,t.layout[i],{validate:!1});this._transitioningPaint=this._transitionablePaint.untransitioned(),this.paint=new Wa(e.paint)}}setFilter(t){this.filter=t,this._featureFilter=ai(t,`layers[${this.id}].filter`,this._globalState)}getCrossfadeParameters(){return this._crossfadeParameters}getLayoutProperty(t){var e;if(t==="visibility")return this.visibility;if((e=this._transitionablePaint)!=null&&e.hasProperty(t))throw Error(t+qh);if(!this._unevaluatedLayout)throw Error(`Cannot get layout property "${t}" on layer type "${this.type}" which has no layout properties.`);return this._unevaluatedLayout.getValue(t)}getLayoutAffectingGlobalStateRefs(){let t=new Set;for(let e of this._visibilityExpression.getGlobalStateRefs())t.add(e);if(this._unevaluatedLayout)for(let e in this._unevaluatedLayout._values){let r=this._unevaluatedLayout._values[e];for(let i of r.getGlobalStateRefs())t.add(i)}for(let e of this._featureFilter.getGlobalStateRefs())t.add(e);return t}getPaintAffectingGlobalStateRefs(){var e;let t=new globalThis.Map;if(this._transitionablePaint)for(let r in this._transitionablePaint._values){let i=this._transitionablePaint._values[r].value;for(let n of i.getGlobalStateRefs()){let a=(e=t.get(n))!=null?e:[];a.push({name:r,value:i.value}),t.set(n,a)}}return t}getVisibilityAffectingGlobalStateRefs(){return this._visibilityExpression.getGlobalStateRefs()}setLayoutProperty(t,e,r={}){var i;if(t==="visibility"){this.visibility=e,this._visibilityExpression.setValue(e),this.recalculateVisibility();return}if((i=this._transitionablePaint)!=null&&i.hasProperty(t)){this.fire(new xa(Error(t+qh)));return}e!=null&&this._validate(Oh.layoutProperty,`layers.${this.id}.layout.${t}`,t,e,r)||this._unevaluatedLayout.setValue(t,e)}getPaintProperty(t){var e,r;if(t.endsWith("-transition")){let i=t.slice(0,-11);if(i==="visibility"||(e=this._unevaluatedLayout)!=null&&e.hasProperty(i))throw Error(t+Ns);return this._transitionablePaint.getTransition(i)}if(t==="visibility"||(r=this._unevaluatedLayout)!=null&&r.hasProperty(t))throw Error(t+Ns);return this._transitionablePaint.getValue(t)}setPaintProperty(t,e,r={}){var i;if(t==="visibility"||(i=this._unevaluatedLayout)!=null&&i.hasProperty(t))return this.fire(new xa(Error(t+Ns))),!1;if(e!=null&&this._validate(Oh.paintProperty,`layers.${this.id}.paint.${t}`,t,e,r))return!1;if(t.endsWith("-transition"))return this._transitionablePaint.setTransition(t.slice(0,-11),e||void 0),!1;{let n=this._transitionablePaint._values[t],a=n.property.specification["property-type"]==="cross-faded-data-driven",s=n.value.isDataDriven(),o=n.value;this._transitionablePaint.setValue(t,e),this._handleSpecialPaintPropertyUpdate(t);let l=this._transitionablePaint._values[t].value;return l.isDataDriven()||s||a||this._handleOverridablePaintPropertyUpdate(t,o,l)}}_handleSpecialPaintPropertyUpdate(t){}_handleOverridablePaintPropertyUpdate(t,e,r){return!1}isHidden(t=this.minzoom,e=!1){return this.minzoom&&t<(e?Math.floor(this.minzoom):this.minzoom)||this.maxzoom&&t>=this.maxzoom?!0:this._evaluatedVisibility==="none"}updateTransitions(t){this._transitioningPaint=this._transitionablePaint.transitioned(t,this._transitioningPaint)}retainPriorGlobalState(t,e){var r;(r=this._transitionablePaint)==null||r.retainPriorGlobalState(t,e,this._transitioningPaint)}hasTransition(){return this._transitioningPaint.hasTransition()}recalculateVisibility(){this._evaluatedVisibility=this._visibilityExpression.evaluate()}recalculate(t,e){t.getCrossfadeParameters&&(this._crossfadeParameters=t.getCrossfadeParameters()),this._unevaluatedLayout&&(this.layout=this._unevaluatedLayout.possiblyEvaluate(t,void 0,e)),this.paint=this._transitioningPaint.possiblyEvaluate(t,void 0,e)}serialize(){var e,r;let t={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:(e=this._unevaluatedLayout)==null?void 0:e.serialize(),paint:(r=this._transitionablePaint)==null?void 0:r.serialize()};return this.visibility&&(t.layout||(t.layout={}),t.layout.visibility=this.visibility),K1(t,(i,n)=>i!==void 0&&!(n==="layout"&&!Object.keys(i).length)&&!(n==="paint"&&!Object.keys(i).length))}_validate(t,e,r,i,n={}){return sg(this,t,{key:e,layerType:this.type,objectKey:r,value:i},n)}is3D(){return!1}isTileClipped(){return!1}hasOffscreenPass(){return!1}resize(){}isStateDependent(){for(let t in this.paint._values){let e=this.paint.get(t);if(e instanceof le&&ii(e.property.specification)&&(e.value.kind==="source"||e.value.kind==="composite")&&e.value.isStateDependent)return!0}return!1}},jh,hg=()=>jh||(jh=new Yt({"raster-opacity":new R(D.paint_raster["raster-opacity"],"raster-opacity"),"raster-hue-rotate":new R(D.paint_raster["raster-hue-rotate"],"raster-hue-rotate"),"raster-brightness-min":new R(D.paint_raster["raster-brightness-min"],"raster-brightness-min"),"raster-brightness-max":new R(D.paint_raster["raster-brightness-max"],"raster-brightness-max"),"raster-saturation":new R(D.paint_raster["raster-saturation"],"raster-saturation"),"raster-contrast":new R(D.paint_raster["raster-contrast"],"raster-contrast"),resampling:new R(D.paint_raster.resampling,"resampling"),"raster-resampling":new R(D.paint_raster["raster-resampling"],"raster-resampling"),"raster-fade-duration":new R(D.paint_raster["raster-fade-duration"],"raster-fade-duration")})),cg={get paint(){return hg()}};var pg=class extends ye{constructor(t,e){super(t,cg,e)}},fg={Int8:Int8Array,Uint8:Uint8Array,Int16:Int16Array,Uint16:Uint16Array,Int32:Int32Array,Uint32:Uint32Array,Float32:Float32Array},Sn=class{constructor(t,e){this._structArray=t,this._pos1=e*this.size,this._pos2=this._pos1/2,this._pos4=this._pos1/4,this._pos8=this._pos1/8}},vt=class{constructor(){this.isTransferred=!1,this.capacity=-1,this.resize(0)}static serialize(t,e){return t._trim(),e&&(t.isTransferred=!0,e.push(t.arrayBuffer)),{length:t.length,arrayBuffer:t.arrayBuffer}}static deserialize(t){let e=Object.create(this.prototype);return e.arrayBuffer=t.arrayBuffer,e.length=t.length,e.capacity=t.arrayBuffer.byteLength/e.bytesPerElement,e._refreshViews(),e}_trim(){this.length!==this.capacity&&(this.capacity=this.length,this.arrayBuffer=this.arrayBuffer.slice(0,this.length*this.bytesPerElement),this._refreshViews())}clear(){this.length=0}resize(t){this.reserve(t),this.length=t}reserve(t){if(t>this.capacity){this.capacity=Math.max(t,Math.floor(this.capacity*5),128),this.arrayBuffer=new ArrayBuffer(this.capacity*this.bytesPerElement);let e=this.uint8;this._refreshViews(),e&&this.uint8.set(e)}}_refreshViews(){throw Error("_refreshViews() must be implemented by each concrete StructArray layout")}freeBufferAfterUpload(){this.arrayBuffer=new ArrayBuffer(0),this._refreshViews()}};function Et(t,e=1){let r=0,i=0;return{members:t.map(n=>{let a=dg(n.type),s=r=Gh(r,Math.max(e,a)),o=n.components||1;return i=Math.max(i,a),r+=a*o,{name:n.name,type:n.type,components:o,offset:s}}),size:Gh(r,Math.max(i,e)),alignment:e}}function dg(t){return fg[t].BYTES_PER_ELEMENT}function Gh(t,e){return Math.ceil(t/e)*e}var pn=class extends vt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(t,e){let r=this.length;return this.resize(r+1),this.emplace(r,t,e)}emplace(t,e,r){let i=t*2;return this.int16[i+0]=e,this.int16[i+1]=r,t}};pn.prototype.bytesPerElement=4,C("StructArrayLayout2i4",pn);var mo=class extends vt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(t,e,r){let i=this.length;return this.resize(i+1),this.emplace(i,t,e,r)}emplace(t,e,r,i){let n=t*3;return this.int16[n+0]=e,this.int16[n+1]=r,this.int16[n+2]=i,t}};mo.prototype.bytesPerElement=6,C("StructArrayLayout3i6",mo);var Xh=class extends vt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(t,e,r,i){let n=this.length;return this.resize(n+1),this.emplace(n,t,e,r,i)}emplace(t,e,r,i,n){let a=t*4;return this.int16[a+0]=e,this.int16[a+1]=r,this.int16[a+2]=i,this.int16[a+3]=n,t}};Xh.prototype.bytesPerElement=8,C("StructArrayLayout4i8",Xh);var go=class extends vt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(t,e,r,i,n,a){let s=this.length;return this.resize(s+1),this.emplace(s,t,e,r,i,n,a)}emplace(t,e,r,i,n,a,s){let o=t*6;return this.int16[o+0]=e,this.int16[o+1]=r,this.int16[o+2]=i,this.int16[o+3]=n,this.int16[o+4]=a,this.int16[o+5]=s,t}};go.prototype.bytesPerElement=12,C("StructArrayLayout2i4i12",go);var xo=class extends vt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(t,e,r,i,n,a){let s=this.length;return this.resize(s+1),this.emplace(s,t,e,r,i,n,a)}emplace(t,e,r,i,n,a,s){let o=t*4,l=t*8;return this.int16[o+0]=e,this.int16[o+1]=r,this.uint8[l+4]=i,this.uint8[l+5]=n,this.uint8[l+6]=a,this.uint8[l+7]=s,t}};xo.prototype.bytesPerElement=8,C("StructArrayLayout2i4ub8",xo);var fn=class extends vt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(t,e){let r=this.length;return this.resize(r+1),this.emplace(r,t,e)}emplace(t,e,r){let i=t*2;return this.float32[i+0]=e,this.float32[i+1]=r,t}};fn.prototype.bytesPerElement=8,C("StructArrayLayout2f8",fn);var vo=class extends vt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(t,e,r,i,n,a,s,o,l,u){let h=this.length;return this.resize(h+1),this.emplace(h,t,e,r,i,n,a,s,o,l,u)}emplace(t,e,r,i,n,a,s,o,l,u,h){let c=t*10;return this.uint16[c+0]=e,this.uint16[c+1]=r,this.uint16[c+2]=i,this.uint16[c+3]=n,this.uint16[c+4]=a,this.uint16[c+5]=s,this.uint16[c+6]=o,this.uint16[c+7]=l,this.uint16[c+8]=u,this.uint16[c+9]=h,t}};vo.prototype.bytesPerElement=20,C("StructArrayLayout10ui20",vo);var bo=class extends vt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(t,e,r,i,n,a,s,o){let l=this.length;return this.resize(l+1),this.emplace(l,t,e,r,i,n,a,s,o)}emplace(t,e,r,i,n,a,s,o,l){let u=t*8;return this.uint16[u+0]=e,this.uint16[u+1]=r,this.uint16[u+2]=i,this.uint16[u+3]=n,this.uint16[u+4]=a,this.uint16[u+5]=s,this.uint16[u+6]=o,this.uint16[u+7]=l,t}};bo.prototype.bytesPerElement=16,C("StructArrayLayout8ui16",bo);var wo=class extends vt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(t,e,r,i,n,a,s,o,l,u,h,c,p){let f=this.length;return this.resize(f+1),this.emplace(f,t,e,r,i,n,a,s,o,l,u,h,c,p)}emplace(t,e,r,i,n,a,s,o,l,u,h,c,p,f){let d=t*14,y=t*7;return this.int16[d+0]=e,this.int16[d+1]=r,this.int16[d+2]=i,this.int16[d+3]=n,this.uint16[d+4]=a,this.uint16[d+5]=s,this.uint16[d+6]=o,this.uint16[d+7]=l,this.int16[d+8]=u,this.int16[d+9]=h,this.int16[d+10]=c,this.int16[d+11]=p,this.float32[y+6]=f,t}};wo.prototype.bytesPerElement=28,C("StructArrayLayout4i4ui4i1f28",wo);var Do=class extends vt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(t,e,r){let i=this.length;return this.resize(i+1),this.emplace(i,t,e,r)}emplace(t,e,r,i){let n=t*3;return this.float32[n+0]=e,this.float32[n+1]=r,this.float32[n+2]=i,t}};Do.prototype.bytesPerElement=12,C("StructArrayLayout3f12",Do);var _o=class extends vt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)}emplaceBack(t){let e=this.length;return this.resize(e+1),this.emplace(e,t)}emplace(t,e){let r=t*1;return this.uint32[r+0]=e,t}};_o.prototype.bytesPerElement=4,C("StructArrayLayout1ul4",_o);var Ao=class extends vt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(t,e,r,i,n,a,s,o,l){let u=this.length;return this.resize(u+1),this.emplace(u,t,e,r,i,n,a,s,o,l)}emplace(t,e,r,i,n,a,s,o,l,u){let h=t*10,c=t*5;return this.int16[h+0]=e,this.int16[h+1]=r,this.int16[h+2]=i,this.int16[h+3]=n,this.int16[h+4]=a,this.int16[h+5]=s,this.uint32[c+3]=o,this.uint16[h+8]=l,this.uint16[h+9]=u,t}};Ao.prototype.bytesPerElement=20,C("StructArrayLayout6i1ul2ui20",Ao);var So=class extends vt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(t,e,r,i,n,a){let s=this.length;return this.resize(s+1),this.emplace(s,t,e,r,i,n,a)}emplace(t,e,r,i,n,a,s){let o=t*6;return this.int16[o+0]=e,this.int16[o+1]=r,this.int16[o+2]=i,this.int16[o+3]=n,this.int16[o+4]=a,this.int16[o+5]=s,t}};So.prototype.bytesPerElement=12,C("StructArrayLayout2i2i2i12",So);var Yh=class extends vt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(t,e,r,i,n){let a=this.length;return this.resize(a+1),this.emplace(a,t,e,r,i,n)}emplace(t,e,r,i,n,a){let s=t*4,o=t*8;return this.float32[s+0]=e,this.float32[s+1]=r,this.float32[s+2]=i,this.int16[o+6]=n,this.int16[o+7]=a,t}};Yh.prototype.bytesPerElement=16,C("StructArrayLayout2f1f2i16",Yh);var Eo=class extends vt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(t,e,r,i,n,a){let s=this.length;return this.resize(s+1),this.emplace(s,t,e,r,i,n,a)}emplace(t,e,r,i,n,a,s){let o=t*16,l=t*4,u=t*8;return this.uint8[o+0]=e,this.uint8[o+1]=r,this.float32[l+1]=i,this.float32[l+2]=n,this.int16[u+6]=a,this.int16[u+7]=s,t}};Eo.prototype.bytesPerElement=16,C("StructArrayLayout2ub2f2i16",Eo);var Fo=class extends vt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(t,e,r){let i=this.length;return this.resize(i+1),this.emplace(i,t,e,r)}emplace(t,e,r,i){let n=t*3;return this.uint16[n+0]=e,this.uint16[n+1]=r,this.uint16[n+2]=i,t}};Fo.prototype.bytesPerElement=6,C("StructArrayLayout3ui6",Fo);var To=class extends vt{_refreshViews(){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)}emplaceBack(t,e,r,i,n,a,s,o,l,u,h,c,p,f,d,y,m,g){let x=this.length;return this.resize(x+1),this.emplace(x,t,e,r,i,n,a,s,o,l,u,h,c,p,f,d,y,m,g)}emplace(t,e,r,i,n,a,s,o,l,u,h,c,p,f,d,y,m,g,x){let v=t*26,b=t*13,w=t*52;return this.int16[v+0]=e,this.int16[v+1]=r,this.uint16[v+2]=i,this.uint16[v+3]=n,this.uint32[b+2]=a,this.uint32[b+3]=s,this.uint32[b+4]=o,this.uint16[v+10]=l,this.uint16[v+11]=u,this.uint16[v+12]=h,this.float32[b+7]=c,this.float32[b+8]=p,this.uint8[w+36]=f,this.uint8[w+37]=d,this.uint8[w+38]=y,this.uint32[b+10]=m,this.int16[v+22]=g,this.float32[b+12]=x,t}};To.prototype.bytesPerElement=52,C("StructArrayLayout2i2ui3ul3ui2f3ub1ul1i1f52",To);var ko=class extends vt{_refreshViews(){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)}emplaceBack(t,e,r,i,n,a,s,o,l,u,h,c,p,f,d,y,m,g,x,v,b,w,_,A,S,T,L,O,B){let V=this.length;return this.resize(V+1),this.emplace(V,t,e,r,i,n,a,s,o,l,u,h,c,p,f,d,y,m,g,x,v,b,w,_,A,S,T,L,O,B)}emplace(t,e,r,i,n,a,s,o,l,u,h,c,p,f,d,y,m,g,x,v,b,w,_,A,S,T,L,O,B,V){let F=t*34,$=t*17;return this.int16[F+0]=e,this.int16[F+1]=r,this.int16[F+2]=i,this.int16[F+3]=n,this.int16[F+4]=a,this.int16[F+5]=s,this.int16[F+6]=o,this.int16[F+7]=l,this.uint16[F+8]=u,this.uint16[F+9]=h,this.uint16[F+10]=c,this.uint16[F+11]=p,this.uint16[F+12]=f,this.uint16[F+13]=d,this.uint16[F+14]=y,this.uint16[F+15]=m,this.uint16[F+16]=g,this.uint16[F+17]=x,this.uint16[F+18]=v,this.uint16[F+19]=b,this.uint16[F+20]=w,this.uint16[F+21]=_,this.uint16[F+22]=A,this.uint32[$+12]=S,this.float32[$+13]=T,this.float32[$+14]=L,this.uint16[F+30]=O,this.uint16[F+31]=B,this.float32[$+16]=V,t}};ko.prototype.bytesPerElement=68,C("StructArrayLayout8i15ui1ul2f2ui1f68",ko);var Sa=class extends vt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(t){let e=this.length;return this.resize(e+1),this.emplace(e,t)}emplace(t,e){let r=t*1;return this.float32[r+0]=e,t}};Sa.prototype.bytesPerElement=4,C("StructArrayLayout1f4",Sa);var Io=class extends vt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(t,e,r){let i=this.length;return this.resize(i+1),this.emplace(i,t,e,r)}emplace(t,e,r,i){let n=t*6,a=t*3;return this.uint16[n+0]=e,this.float32[a+1]=r,this.float32[a+2]=i,t}};Io.prototype.bytesPerElement=12,C("StructArrayLayout1ui2f12",Io);var Co=class extends vt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(t,e,r){let i=this.length;return this.resize(i+1),this.emplace(i,t,e,r)}emplace(t,e,r,i){let n=t*2,a=t*4;return this.uint32[n+0]=e,this.uint16[a+2]=r,this.uint16[a+3]=i,t}};Co.prototype.bytesPerElement=8,C("StructArrayLayout1ul2ui8",Co);var Mo=class extends vt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(t,e){let r=this.length;return this.resize(r+1),this.emplace(r,t,e)}emplace(t,e,r){let i=t*2;return this.uint16[i+0]=e,this.uint16[i+1]=r,t}};Mo.prototype.bytesPerElement=4,C("StructArrayLayout2ui4",Mo);var Wh=class extends vt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(t){let e=this.length;return this.resize(e+1),this.emplace(e,t)}emplace(t,e){let r=t*1;return this.uint16[r+0]=e,t}};Wh.prototype.bytesPerElement=2,C("StructArrayLayout1ui2",Wh);var Bo=class extends vt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(t,e,r,i){let n=this.length;return this.resize(n+1),this.emplace(n,t,e,r,i)}emplace(t,e,r,i,n){let a=t*4;return this.float32[a+0]=e,this.float32[a+1]=r,this.float32[a+2]=i,this.float32[a+3]=n,t}};Bo.prototype.bytesPerElement=16,C("StructArrayLayout4f16",Bo);var nd=class extends Sn{get anchorPointX(){return this._structArray.int16[this._pos2+0]}get anchorPointY(){return this._structArray.int16[this._pos2+1]}get x1(){return this._structArray.int16[this._pos2+2]}get y1(){return this._structArray.int16[this._pos2+3]}get x2(){return this._structArray.int16[this._pos2+4]}get y2(){return this._structArray.int16[this._pos2+5]}get featureIndex(){return this._structArray.uint32[this._pos4+3]}get sourceLayerIndex(){return this._structArray.uint16[this._pos2+8]}get bucketIndex(){return this._structArray.uint16[this._pos2+9]}get anchorPoint(){return new M(this.anchorPointX,this.anchorPointY)}};nd.prototype.size=20;var Rl=class extends Ao{get(t){return new nd(this,t)}};C("CollisionBoxArray",Rl);var ad=class extends Sn{get anchorX(){return this._structArray.int16[this._pos2+0]}get anchorY(){return this._structArray.int16[this._pos2+1]}get glyphStartIndex(){return this._structArray.uint16[this._pos2+2]}get numGlyphs(){return this._structArray.uint16[this._pos2+3]}get vertexStartIndex(){return this._structArray.uint32[this._pos4+2]}get lineStartIndex(){return this._structArray.uint32[this._pos4+3]}get lineLength(){return this._structArray.uint32[this._pos4+4]}get segment(){return this._structArray.uint16[this._pos2+10]}get lowerSize(){return this._structArray.uint16[this._pos2+11]}get upperSize(){return this._structArray.uint16[this._pos2+12]}get lineOffsetX(){return this._structArray.float32[this._pos4+7]}get lineOffsetY(){return this._structArray.float32[this._pos4+8]}get writingMode(){return this._structArray.uint8[this._pos1+36]}get placedOrientation(){return this._structArray.uint8[this._pos1+37]}set placedOrientation(t){this._structArray.uint8[this._pos1+37]=t}get hidden(){return this._structArray.uint8[this._pos1+38]}set hidden(t){this._structArray.uint8[this._pos1+38]=t}get crossTileID(){return this._structArray.uint32[this._pos4+10]}set crossTileID(t){this._structArray.uint32[this._pos4+10]=t}get associatedIconIndex(){return this._structArray.int16[this._pos2+22]}get heightOffset(){return this._structArray.float32[this._pos4+12]}};ad.prototype.size=52;var sd=class extends To{get(t){return new ad(this,t)}};C("PlacedSymbolArray",sd);var od=class extends Sn{get anchorX(){return this._structArray.int16[this._pos2+0]}get anchorY(){return this._structArray.int16[this._pos2+1]}get rightJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+2]}get centerJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+3]}get leftJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+4]}get verticalPlacedTextSymbolIndex(){return this._structArray.int16[this._pos2+5]}get placedIconSymbolIndex(){return this._structArray.int16[this._pos2+6]}get verticalPlacedIconSymbolIndex(){return this._structArray.int16[this._pos2+7]}get key(){return this._structArray.uint16[this._pos2+8]}get textBoxStartIndex(){return this._structArray.uint16[this._pos2+9]}get textBoxEndIndex(){return this._structArray.uint16[this._pos2+10]}get verticalTextBoxStartIndex(){return this._structArray.uint16[this._pos2+11]}get verticalTextBoxEndIndex(){return this._structArray.uint16[this._pos2+12]}get iconBoxStartIndex(){return this._structArray.uint16[this._pos2+13]}get iconBoxEndIndex(){return this._structArray.uint16[this._pos2+14]}get verticalIconBoxStartIndex(){return this._structArray.uint16[this._pos2+15]}get verticalIconBoxEndIndex(){return this._structArray.uint16[this._pos2+16]}get featureIndex(){return this._structArray.uint16[this._pos2+17]}get numHorizontalGlyphVertices(){return this._structArray.uint16[this._pos2+18]}get numVerticalGlyphVertices(){return this._structArray.uint16[this._pos2+19]}get numIconVertices(){return this._structArray.uint16[this._pos2+20]}get numVerticalIconVertices(){return this._structArray.uint16[this._pos2+21]}get useRuntimeCollisionCircles(){return this._structArray.uint16[this._pos2+22]}get crossTileID(){return this._structArray.uint32[this._pos4+12]}set crossTileID(t){this._structArray.uint32[this._pos4+12]=t}get textBoxScale(){return this._structArray.float32[this._pos4+13]}get collisionCircleDiameter(){return this._structArray.float32[this._pos4+14]}get textAnchorOffsetStartIndex(){return this._structArray.uint16[this._pos2+30]}get textAnchorOffsetEndIndex(){return this._structArray.uint16[this._pos2+31]}get heightOffset(){return this._structArray.float32[this._pos4+16]}};od.prototype.size=68;var ld=class extends ko{get(t){return new od(this,t)}};C("SymbolInstanceArray",ld);var ud=class extends Sa{getoffsetX(t){return this.float32[t*1+0]}};C("GlyphOffsetArray",ud);var hd=class extends mo{getx(t){return this.int16[t*3+0]}gety(t){return this.int16[t*3+1]}gettileUnitDistanceFromAnchor(t){return this.int16[t*3+2]}};C("SymbolLineVertexArray",hd);var cd=class extends Sn{get textAnchor(){return this._structArray.uint16[this._pos2+0]}get textOffset0(){return this._structArray.float32[this._pos4+1]}get textOffset1(){return this._structArray.float32[this._pos4+2]}};cd.prototype.size=12;var pd=class extends Io{get(t){return new cd(this,t)}};C("TextAnchorOffsetArray",pd);var fd=class extends Sn{get featureIndex(){return this._structArray.uint32[this._pos4+0]}get sourceLayerIndex(){return this._structArray.uint16[this._pos2+2]}get bucketIndex(){return this._structArray.uint16[this._pos2+3]}};fd.prototype.size=8;var dd=class extends Co{get(t){return new fd(this,t)}};C("FeatureIndexArray",dd);var yg=class extends pn{};var mg=class extends pn{},gg=class extends pn{},xg=class extends go{},vg=class extends xo{},bg=class extends fn{},Vr=class extends vo{},Zh=class extends bo{},wg=class extends wo{},Dg=class extends Do{},_g=class extends _o{},Hh=class extends So{};var Ag=class extends Eo{};var En=class extends Fo{},Po=class extends Mo{};var zo=Et([{name:"a_pos",components:2,type:"Int16"}],4),Sg=zo.members;zo.size,zo.alignment;var ie=class Ur{constructor(e=[]){this._forceNewSegmentOnNextPrepare=!1,this.segments=e}prepareSegment(e,r,i,n){let a=this.segments[this.segments.length-1];return e>Ur.MAX_VERTEX_ARRAY_LENGTH&&Mt(`Max vertices per segment is ${Ur.MAX_VERTEX_ARRAY_LENGTH}: bucket requested ${e}. Consider using the \\`fillLargeMeshArrays\\` function if you require meshes with more than ${Ur.MAX_VERTEX_ARRAY_LENGTH} vertices.`),this._forceNewSegmentOnNextPrepare||!a||a.vertexLength+e>Ur.MAX_VERTEX_ARRAY_LENGTH||a.sortKey!==n?this.createNewSegment(r,i,n):a}createNewSegment(e,r,i){let n={vertexOffset:e.length,primitiveOffset:r.length,vertexLength:0,primitiveLength:0,vaos:{}};return i!==void 0&&(n.sortKey=i),this._forceNewSegmentOnNextPrepare=!1,this.segments.push(n),n}getOrCreateLatestSegment(e,r,i){return this.prepareSegment(0,e,r,i)}forceNewSegmentOnNextPrepare(){this._forceNewSegmentOnNextPrepare=!0}get(){return this.segments}destroy(){for(let e of this.segments)for(let r in e.vaos)e.vaos[r].destroy()}static simpleSegment(e,r,i,n){return new Ur([{vertexOffset:e,primitiveOffset:r,vertexLength:i,primitiveLength:n,vaos:{},sortKey:0}])}};ie.MAX_VERTEX_ARRAY_LENGTH=2**16-1,C("SegmentVector",ie);function Kh(t,e){return t=en(Math.floor(t),0,255),e=en(Math.floor(e),0,255),256*t+e}var Eg=Et([{name:"a_pattern_from",components:4,type:"Uint16"},{name:"a_pattern_to",components:4,type:"Uint16"},{name:"a_pixel_ratio_from",components:1,type:"Uint16"},{name:"a_pixel_ratio_to",components:1,type:"Uint16"}]),Fg=Et([{name:"a_dasharray_from",components:4,type:"Uint16"},{name:"a_dasharray_to",components:4,type:"Uint16"}]),Tg=ml(((t,e)=>{function r(i,n){for(var a=i.length&3,s=i.length-a,o=n,l,u=3432918353,h=461845907,c,p=0;p>>16)*u&65535)<<16)&4294967295,c=c<<15|c>>>17,c=(c&65535)*h+(((c>>>16)*h&65535)<<16)&4294967295,o^=c,o=o<<13|o>>>19,l=(o&65535)*5+(((o>>>16)*5&65535)<<16)&4294967295,o=(l&65535)+27492+(((l>>>16)+58964&65535)<<16);switch(c=0,a){case 3:c^=(i.charCodeAt(p+2)&255)<<16;case 2:c^=(i.charCodeAt(p+1)&255)<<8;case 1:c^=i.charCodeAt(p)&255,c=(c&65535)*u+(((c>>>16)*u&65535)<<16)&4294967295,c=c<<15|c>>>17,c=(c&65535)*h+(((c>>>16)*h&65535)<<16)&4294967295,o^=c}return o^=i.length,o^=o>>>16,o=(o&65535)*2246822507+(((o>>>16)*2246822507&65535)<<16)&4294967295,o^=o>>>13,o=(o&65535)*3266489909+(((o>>>16)*3266489909&65535)<<16)&4294967295,o^=o>>>16,o>>>0}e!==void 0&&(e.exports=r)})),kg=ml(((t,e)=>{function r(i,n){for(var a=i.length,s=n^a,o=0,l;a>=4;)l=i.charCodeAt(o)&255|(i.charCodeAt(++o)&255)<<8|(i.charCodeAt(++o)&255)<<16|(i.charCodeAt(++o)&255)<<24,l=(l&65535)*1540483477+(((l>>>16)*1540483477&65535)<<16),l^=l>>>24,l=(l&65535)*1540483477+(((l>>>16)*1540483477&65535)<<16),s=(s&65535)*1540483477+(((s>>>16)*1540483477&65535)<<16)^l,a-=4,++o;switch(a){case 3:s^=(i.charCodeAt(o+2)&255)<<16;case 2:s^=(i.charCodeAt(o+1)&255)<<8;case 1:s^=i.charCodeAt(o)&255,s=(s&65535)*1540483477+(((s>>>16)*1540483477&65535)<<16)}return s^=s>>>13,s=(s&65535)*1540483477+(((s>>>16)*1540483477&65535)<<16),s^=s>>>15,s>>>0}e.exports=r})),Ea=M1(ml(((t,e)=>{var r=Tg(),i=kg();e.exports=r,e.exports.murmur3=r,e.exports.murmur2=i}))(),1),yd=class md{constructor(){this.ids=[],this.positions=[],this.indexed=!1}add(e,r,i,n){this.ids.push(Jh(e)),this.positions.push(r,i,n)}getPositions(e){if(!this.indexed)throw Error("Trying to get index, but feature positions are not indexed");let r=Jh(e),i=0,n=this.ids.length-1;for(;i>1;this.ids[s]>=r?n=s:i=s+1}let a=[];for(;this.ids[i]===r;){let s=this.positions[3*i],o=this.positions[3*i+1],l=this.positions[3*i+2];a.push({index:s,start:o,end:l}),i++}return a}static serialize(e,r){let i=new Float64Array(e.ids),n=new Uint32Array(e.positions);return Lo(i,n,0,i.length-1),r&&r.push(i.buffer,n.buffer),{ids:i,positions:n}}static deserialize(e){let r=new md;return r.ids=e.ids,r.positions=e.positions,r.indexed=!0,r}};function Jh(t){let e=+t;return!isNaN(e)&&e<=2**53-1?e:(0,Ea.default)(String(t))}function Lo(t,e,r,i){for(;r>1],a=r-1,s=i+1;for(;;){do a++;while(t[a]n);if(a>=s)break;Kn(t,a,s),Kn(e,3*a,3*s),Kn(e,3*a+1,3*s+1),Kn(e,3*a+2,3*s+2)}s-r`u_${i}`),this.type=r}setUniform(t,e,r){t.set(r.constantOr(this.value))}getBinding(t,e,r){return this.type==="color"?new Cg(t,e):new Nl(t,e)}},fr=class{constructor(t,e){this.uniformNames=e.map(r=>`u_${r}`),this.patternFrom=null,this.patternTo=null,this.pixelRatioFrom=1,this.pixelRatioTo=1}setConstantPatternPositions(t,e){this.pixelRatioFrom=e.pixelRatio,this.pixelRatioTo=t.pixelRatio,this.patternFrom=e.tlbr,this.patternTo=t.tlbr}setConstantDashPositions(t,e){this.dashTo=[0,t.y,t.height,t.width],this.dashFrom=[0,e.y,e.height,e.width]}setUniform(t,e,r,i){let n=null;i==="u_pattern_to"?n=this.patternTo:i==="u_pattern_from"?n=this.patternFrom:i==="u_dasharray_to"?n=this.dashTo:i==="u_dasharray_from"?n=this.dashFrom:i==="u_pixel_ratio_to"?n=this.pixelRatioTo:i==="u_pixel_ratio_from"&&(n=this.pixelRatioFrom),n!==null&&t.set(n)}getBinding(t,e,r){return r.startsWith("u_pattern")||r.startsWith("u_dasharray_")?new Ig(t,e):new Nl(t,e)}},Ce=class{constructor(t,e,r,i){this.expression=t,this.type=r,this.maxValue=0,this.paintVertexAttributes=e.map(n=>({name:`a_${n}`,type:"Float32",components:r==="color"?2:1,offset:0})),this.paintVertexArray=new i}populatePaintArray(t,e,r){let i=this.paintVertexArray.length,n=this.expression.evaluate(new st(0,r),e,{},r.canonical,[],r.formattedSection);this.paintVertexArray.resize(t),this._setPaintValue(i,t,n)}updatePaintArray(t,e,r,i,n){let a=this.expression.evaluate(new st(0,n),r,i);this._setPaintValue(t,e,a)}_setPaintValue(t,e,r){if(this.type==="color"){let i=Vo(r);for(let n=t;n`u_${s}_t`),this.type=r,this.useIntegerZoom=i,this.zoom=n,this.maxValue=0,this.paintVertexAttributes=e.map(s=>({name:`a_${s}`,type:"Float32",components:r==="color"?4:2,offset:0})),this.paintVertexArray=new a}populatePaintArray(t,e,r){let i=this.expression.evaluate(new st(this.zoom,r),e,{},r.canonical,[],r.formattedSection),n=this.expression.evaluate(new st(this.zoom+1,r),e,{},r.canonical,[],r.formattedSection),a=this.paintVertexArray.length;this.paintVertexArray.resize(t),this._setPaintValue(a,t,i,n)}updatePaintArray(t,e,r,i,n){let a=this.expression.evaluate(new st(this.zoom,n),r,i),s=this.expression.evaluate(new st(this.zoom+1,n),r,i);this._setPaintValue(t,e,a,s)}_setPaintValue(t,e,r,i){if(this.type==="color"){let n=Vo(r),a=Vo(i);for(let s=t;s`#define HAS_UNIFORM_${i}`))}return t}getBinderAttributes(){let t=[];for(let e in this.binders){let r=this.binders[e];if(r instanceof Ce||r instanceof ce)for(let i of r.paintVertexAttributes)t.push(i.name);else if(r instanceof Ze){let i=r.getVertexAttributes();for(let n of i)t.push(n.name)}}return t}getBinderUniforms(){let t=[];for(let e in this.binders){let r=this.binders[e];if(r instanceof qi||r instanceof fr||r instanceof ce)for(let i of r.uniformNames)t.push(i)}return t}getPaintVertexBuffers(){return this._buffers}getUniforms(t,e){let r=[];for(let i in this.binders){let n=this.binders[i];if(n instanceof qi||n instanceof fr||n instanceof ce){for(let a of n.uniformNames)if(e[a]){let s=n.getBinding(t,e[a],a);r.push({name:a,property:i,binding:s})}}}return r}setUniforms(t,e,r,i){for(let{name:n,property:a,binding:s}of e)this.binders[a].setUniform(s,i,r.get(a),n)}updatePaintBuffers(t){this._buffers=[];for(let e in this.binders){let r=this.binders[e];if(t&&r instanceof Ze){let i=t.fromScale===2?r.zoomInPaintVertexBuffer:r.zoomOutPaintVertexBuffer;i&&this._buffers.push(i)}else(r instanceof Ce||r instanceof ce)&&r.paintVertexBuffer&&this._buffers.push(r.paintVertexBuffer)}}upload(t){for(let e in this.binders){let r=this.binders[e];(r instanceof Ce||r instanceof ce||r instanceof Ze)&&r.upload(t)}this.updatePaintBuffers()}destroy(){for(let t in this.binders){let e=this.binders[t];(e instanceof Ce||e instanceof ce||e instanceof Ze)&&e.destroy()}}},Dr=class{constructor(t,e,r=()=>!0){this.programConfigurations={};for(let i of t)this.programConfigurations[i.id]=new vd(i,e,r);this.needsUpload=!1,this._featureMap=new yd,this._bufferOffset=0}populatePaintArrays(t,e,r,i){for(let n in this.programConfigurations)this.programConfigurations[n].populatePaintArrays(t,e,i);e.id!==void 0&&this._featureMap.add(e.id,r,this._bufferOffset,t),this._bufferOffset=t,this.needsUpload=!0}updatePaintArrays(t,e,r,i){for(let n of r)this.needsUpload=this.programConfigurations[n.id].updatePaintArrays(t,this._featureMap,e,n,i)||this.needsUpload}get(t){return this.programConfigurations[t]}upload(t){if(this.needsUpload){for(let e in this.programConfigurations)this.programConfigurations[e].upload(t);this.needsUpload=!1}}destroy(){for(let t in this.programConfigurations)this.programConfigurations[t].destroy()}};function Mg(t,e){return{"text-opacity":["opacity"],"icon-opacity":["opacity"],"text-color":["fill_color"],"icon-color":["fill_color"],"text-halo-color":["halo_color"],"icon-halo-color":["halo_color"],"text-halo-blur":["halo_blur"],"icon-halo-blur":["halo_blur"],"text-halo-width":["halo_width"],"icon-halo-width":["halo_width"],"line-gap-width":["gapwidth"],"line-dasharray":["dasharray_to","dasharray_from"],"line-pattern":["pattern_to","pattern_from","pixel_ratio_to","pixel_ratio_from"],"fill-pattern":["pattern_to","pattern_from","pixel_ratio_to","pixel_ratio_from"],"fill-extrusion-pattern":["pattern_to","pattern_from","pixel_ratio_to","pixel_ratio_from"]}[t]||[t.replace(`${e}-`,"").replace(/-/g,"_")]}function Bg(t){return{"line-pattern":{source:Vr,composite:Vr},"fill-pattern":{source:Vr,composite:Vr},"fill-extrusion-pattern":{source:Vr,composite:Vr},"line-dasharray":{source:Zh,composite:Zh}}[t]}function Qh(t,e,r){var n;let i={color:{source:fn,composite:Bo},number:{source:Sa,composite:fn}};return((n=Bg(t))==null?void 0:n[r])||i[e][r]}C("ConstantBinder",qi),C("CrossFadedConstantBinder",fr),C("SourceExpressionBinder",Ce),C("CrossFadedPatternBinder",gd),C("CrossFadedDasharrayBinder",xd),C("CompositeExpressionBinder",ce),C("ProgramConfiguration",vd,{omit:["_buffers"]}),C("ProgramConfigurationSet",Dr);var Oo=2**14-1,tc=-Oo-1;function Fr(t){let e=gt/t.extent,r=t.loadGeometry();for(let i of r)for(let n of i){let a=Math.round(n.x*e),s=Math.round(n.y*e);n.x=en(a,tc,Oo),n.y=en(s,tc,Oo),(an.x+1||sn.y+1)&&Mt("Geometry exceeds allowed extent, reduce your vector tile buffer size")}return r}function hi(t,e){return{type:t.type,id:t.id,properties:t.properties,geometry:e?Fr(t):[]}}var ec=-32768;function Pg(t,e,r,i,n){t.emplaceBack(ec+e*8+i,ec+r*8+n)}var Ul=class{constructor(t){this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map(e=>e.id),this.index=t.index,this.hasDependencies=!1,this.layoutVertexArray=new mg,this.indexArray=new En,this.segments=new ie,this.programConfigurations=new Dr(t.layers,t.zoom),this.stateDependentLayerIds=this.layers.filter(e=>e.isStateDependent()).map(e=>e.id)}populate(t,e,r){let i=this.layers[0],n=[],a=null,s=!1,o=i.type==="heatmap";if(i.type==="circle"){let c=i;a=c.layout.get("circle-sort-key"),s=!a.isConstant(),o||(o=c.paint.get("circle-pitch-alignment")==="map")}let l=o?e.subdivisionGranularity.circle:1,u=new st(this.zoom),h=this.layers[0]._featureFilter.needGeometry;for(let{feature:c,id:p,index:f,sourceLayerIndex:d}of t){let y=hi(c,h);if(!this.layers[0]._featureFilter.filter(u,y,r))continue;let m=s?a.evaluate(y,{},r):void 0,g={id:p,properties:c.properties,type:c.type,sourceLayerIndex:d,index:f,geometry:h?y.geometry:Fr(c),patterns:{},sortKey:m};n.push(g)}s&&n.sort((c,p)=>c.sortKey-p.sortKey);for(let c of n){let{geometry:p,index:f,sourceLayerIndex:d}=c,y=t[f].feature;this.addFeature(c,p,f,r,l),e.featureIndex.insert(y,p,f,d,this.index)}}update(t,e,r){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(t,e,this.stateDependentLayers,{imagePositions:r})}addFeatures(t){}isEmpty(){return this.layoutVertexArray.length===0}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(t){this.uploaded||(this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,Sg),this.indexBuffer=t.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(t),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())}addFeature(t,e,r,i,n=1){let a;switch(n){case 1:a=[0,7];break;case 3:a=[0,2,5,7];break;case 5:a=[0,1,3,4,6,7];break;case 7:a=[0,1,2,3,4,5,6,7];break;default:throw Error(`Invalid circle bucket granularity: ${n}; valid values are 1, 3, 5, 7.`)}let s=a.length;for(let o of e)for(let l of o){let u=l.x,h=l.y;if(u<0||u>=8192||h<0||h>=8192)continue;let c=this.segments.prepareSegment(s*s,this.layoutVertexArray,this.indexArray,t.sortKey),p=c.vertexLength;for(let f=0;f=3){for(let n of i)if(oi(t,n))return!0}if(Vg(t,i,r))return!0}return!1}function Vg(t,e,r){if(t.length>1){if(ql(t,e))return!0;for(let i of e)if(Ro(i,t,r))return!0}for(let i of t)if(Ro(i,e,r))return!0;return!1}function ql(t,e){if(t.length===0||e.length===0)return!1;for(let r=0;r1?t.distSqr(r):t.distSqr(r.sub(e)._mult(n)._add(e))}function rc(t,e){let r=!1,i,n,a;for(let s of t){i=s;for(let o=0,l=i.length-1;oe.y!=a.y>e.y&&e.x<(a.x-n.x)*(e.y-n.y)/(a.y-n.y)+n.x&&(r=!r)}return r}function oi(t,e){let r=!1;for(let i=0,n=t.length-1;ie.y!=s.y>e.y&&e.x<(s.x-a.x)*(e.y-a.y)/(s.y-a.y)+a.x&&(r=!r)}return r}function Rg(t,e,r,i,n){for(let s of t)if(e<=s.x&&r<=s.y&&i>=s.x&&n>=s.y)return!0;let a=[new M(e,r),new M(e,n),new M(i,n),new M(i,r)];if(t.length>2){for(let s of a)if(oi(t,s))return!0}for(let s=0;sn.x&&e.x>n.x||t.yn.y&&e.y>n.y)return!1;let a=Qe(t,e,r[0]);return a!==Qe(t,e,r[1])||a!==Qe(t,e,r[2])||a!==Qe(t,e,r[3])}function Wr(t,e,r){let i=e.paint.get(t).value;return i.kind==="constant"?i.value:r.programConfigurations.get(e.id).getMaxValue(t)}function Ka(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function Ja(t,e,r,i,n){if(!e[0]&&!e[1])return t;let a=M.convert(e)._mult(n);r==="viewport"&&a._rotate(-i);let s=[];for(let o of t)s.push(o.sub(a));return s}function Ng(t){let e=[];for(let r=0;rjl(n,e,r,i))}var ic,Wg=()=>ic||(ic=new Yt({"circle-sort-key":new U(D.layout_circle["circle-sort-key"],"circle-sort-key")})),nc,Zg=()=>nc||(nc=new Yt({"circle-radius":new U(D.paint_circle["circle-radius"],"circle-radius"),"circle-color":new U(D.paint_circle["circle-color"],"circle-color"),"circle-blur":new U(D.paint_circle["circle-blur"],"circle-blur"),"circle-opacity":new U(D.paint_circle["circle-opacity"],"circle-opacity"),"circle-translate":new R(D.paint_circle["circle-translate"],"circle-translate"),"circle-translate-anchor":new R(D.paint_circle["circle-translate-anchor"],"circle-translate-anchor"),"circle-pitch-scale":new R(D.paint_circle["circle-pitch-scale"],"circle-pitch-scale"),"circle-pitch-alignment":new R(D.paint_circle["circle-pitch-alignment"],"circle-pitch-alignment"),"circle-stroke-width":new U(D.paint_circle["circle-stroke-width"],"circle-stroke-width"),"circle-stroke-color":new U(D.paint_circle["circle-stroke-color"],"circle-stroke-color"),"circle-stroke-opacity":new U(D.paint_circle["circle-stroke-opacity"],"circle-stroke-opacity")})),Hg={get paint(){return Zg()},get layout(){return Wg()}};var Kg=class extends ye{constructor(t,e){super(t,Hg,e)}createBucket(t){return new Ul(t)}queryRadius(t){let e=t;return Wr("circle-radius",this,e)+Wr("circle-stroke-width",this,e)+Ka(this.paint.get("circle-translate"))}queryIntersectsFeature({queryGeometry:t,feature:e,featureState:r,geometry:i,transform:n,pixelsToTileUnits:a,unwrappedTileID:s,getElevation:o}){let l=Ja(t,this.paint.get("circle-translate"),this.paint.get("circle-translate-anchor"),-n.bearingInRadians,a),u=this.paint.get("circle-radius").evaluate(e,r)+this.paint.get("circle-stroke-width").evaluate(e,r),h=this.paint.get("circle-pitch-scale"),c=this.paint.get("circle-pitch-alignment"),p,f;return c==="map"?(p=l,f=u*a):(p=Yg(l,n,s,o),f=u),Dd({queryGeometry:p,size:f,transform:n,unwrappedTileID:s,getElevation:o,pitchAlignment:c,pitchScale:h},i)}},_d=class extends Ul{};C("HeatmapBucket",_d,{omit:["layers"]});var ac,Jg=()=>ac||(ac=new Yt({"heatmap-radius":new U(D.paint_heatmap["heatmap-radius"],"heatmap-radius"),"heatmap-weight":new U(D.paint_heatmap["heatmap-weight"],"heatmap-weight"),"heatmap-intensity":new R(D.paint_heatmap["heatmap-intensity"],"heatmap-intensity"),"heatmap-color":new Za(D.paint_heatmap["heatmap-color"],"heatmap-color"),"heatmap-opacity":new R(D.paint_heatmap["heatmap-opacity"],"heatmap-opacity")})),Qg={get paint(){return Jg()}};function Gl(t,{width:e,height:r},i,n){if(!n)n=new Uint8Array(e*r*i);else if(n instanceof Uint8ClampedArray)n=new Uint8Array(n.buffer);else if(n.length!==e*r*i)throw RangeError(`mismatched image size. expected: ${n.length} but got: ${e*r*i}`);return t.width=e,t.height=r,t.data=n,t}function Ad(t,{width:e,height:r},i){if(e===t.width&&r===t.height)return;let n=Gl({},{width:e,height:r},i);Xl(t,n,{x:0,y:0},{x:0,y:0},{width:Math.min(t.width,e),height:Math.min(t.height,r)},i),t.width=e,t.height=r,t.data=n.data}function Xl(t,e,r,i,n,a){if(n.width===0||n.height===0)return e;if(n.width>t.width||n.height>t.height||r.x>t.width-n.width||r.y>t.height-n.height)throw RangeError("out of range source coordinates for image copy");if(n.width>e.width||n.height>e.height||i.x>e.width-n.width||i.y>e.height-n.height)throw RangeError("out of range destination coordinates for image copy");let s=t.data,o=e.data;if(s===o)throw Error("srcData equals dstData, so image is already copied");for(let l=0;l{e[t.evaluationKey]=l;let u=t.expression.evaluate(e);n.setPixel(s/4/r,o/4,u)};if(t.clips)for(let s=0,o=0;ssc||(sc=new Yt({"hillshade-illumination-direction":new R(D.paint_hillshade["hillshade-illumination-direction"],"hillshade-illumination-direction"),"hillshade-illumination-altitude":new R(D.paint_hillshade["hillshade-illumination-altitude"],"hillshade-illumination-altitude"),"hillshade-illumination-anchor":new R(D.paint_hillshade["hillshade-illumination-anchor"],"hillshade-illumination-anchor"),"hillshade-exaggeration":new R(D.paint_hillshade["hillshade-exaggeration"],"hillshade-exaggeration"),"hillshade-shadow-color":new R(D.paint_hillshade["hillshade-shadow-color"],"hillshade-shadow-color"),"hillshade-highlight-color":new R(D.paint_hillshade["hillshade-highlight-color"],"hillshade-highlight-color"),"hillshade-accent-color":new R(D.paint_hillshade["hillshade-accent-color"],"hillshade-accent-color"),"hillshade-method":new R(D.paint_hillshade["hillshade-method"],"hillshade-method"),resampling:new R(D.paint_hillshade.resampling,"resampling")})),nx={get paint(){return ix()}};var ax=class extends ye{constructor(t,e){super(t,nx,e),this.recalculate({zoom:0,zoomHistory:{}},void 0)}getIlluminationProperties(){let t=this.paint.get("hillshade-illumination-direction").values,e=this.paint.get("hillshade-illumination-altitude").values,r=this.paint.get("hillshade-highlight-color").values,i=this.paint.get("hillshade-shadow-color").values,n=Math.max(t.length,e.length,r.length,i.length);t=t.concat(Array(n-t.length).fill(t.at(-1))),e=e.concat(Array(n-e.length).fill(e.at(-1))),r=r.concat(Array(n-r.length).fill(r.at(-1))),i=i.concat(Array(n-i.length).fill(i.at(-1)));let a=e.map(yh);return{directionRadians:t.map(yh),altitudeRadians:a,shadowColor:i,highlightColor:r}}hasOffscreenPass(){return this.paint.get("hillshade-exaggeration")!==0&&!this.isHidden()}},oc,sx=()=>oc||(oc=new Yt({"color-relief-opacity":new R(D["paint_color-relief"]["color-relief-opacity"],"color-relief-opacity"),"color-relief-color":new Za(D["paint_color-relief"]["color-relief-color"],"color-relief-color"),resampling:new R(D["paint_color-relief"].resampling,"resampling")})),ox={get paint(){return sx()}};function Jn(t){return"data"in t}var lc=class{constructor(t,e,r,i){this.context=t,this.format=r,this.texture=t.gl.createTexture(),this._ownedHandle=this.texture,this.update(e,i)}update(t,e,r){var u;let{width:i,height:n}=t,a=(((u=this.size)==null?void 0:u[0])!==i||this.size[1]!==n)&&!r,{context:s}=this,{gl:o}=s;this.useMipmap=!!(e!=null&&e.useMipmap),a&&this.size&&this.format===o.RGBA&&(o.deleteTexture(this.texture),this.texture=o.createTexture(),this._ownedHandle=this.texture,this.magFilter=void 0,this.minFilter=void 0,this.wrap=void 0),o.bindTexture(o.TEXTURE_2D,this.texture),s.pixelStoreUnpackFlipY.set(!1),s.pixelStoreUnpack.set(1);let l=this.format===o.RGBA&&(e==null?void 0:e.premultiply)!==!1;if(a)if(this.size=[i,n],this.format===o.RGBA&&i>0&&n>0){let h=this.useMipmap?Math.floor(Math.log2(Math.max(i,n)))+1:1;if(o.texStorage2D(o.TEXTURE_2D,h,o.RGBA8,i,n),Jn(t)){s.pixelStoreUnpackPremultiplyAlpha.set(!1);let{data:c}=t;l&&c&&(c=Us(c)),c&&o.texSubImage2D(o.TEXTURE_2D,0,0,0,i,n,o.RGBA,o.UNSIGNED_BYTE,c)}else s.pixelStoreUnpackPremultiplyAlpha.set(l),o.texSubImage2D(o.TEXTURE_2D,0,0,0,o.RGBA,o.UNSIGNED_BYTE,t)}else Jn(t)?(s.pixelStoreUnpackPremultiplyAlpha.set(!1),this._uploadRawData(t,l,i,n,o)):(s.pixelStoreUnpackPremultiplyAlpha.set(l),this._uploadDomImage(t,o));else{let{x:h,y:c}=r||{x:0,y:0};Jn(t)?(s.pixelStoreUnpackPremultiplyAlpha.set(!1),this._updateRawData(t,l,h,c,i,n,o)):(s.pixelStoreUnpackPremultiplyAlpha.set(l),this._updateDomImage(t,h,c,o))}this.useMipmap&&!(Jn(t)&&t.data===null)&&o.generateMipmap(o.TEXTURE_2D),s.pixelStoreUnpackFlipY.setDefault(),s.pixelStoreUnpack.setDefault(),s.pixelStoreUnpackPremultiplyAlpha.setDefault()}_uploadDomImage(t,e){e.texImage2D(e.TEXTURE_2D,0,this.format,this.format,e.UNSIGNED_BYTE,t)}_uploadRawData(t,e,r,i,n){let{data:a}=t;e&&a&&(a=Us(a)),n.texImage2D(n.TEXTURE_2D,0,this.format,r,i,0,this.format,n.UNSIGNED_BYTE,a)}_updateDomImage(t,e,r,i){i.texSubImage2D(i.TEXTURE_2D,0,e,r,i.RGBA,i.UNSIGNED_BYTE,t)}_updateRawData(t,e,r,i,n,a,s){let{data:o}=t;e&&o&&(o=Us(o)),s.texSubImage2D(s.TEXTURE_2D,0,r,i,n,a,s.RGBA,s.UNSIGNED_BYTE,o)}bind(t,e,r){let{context:i}=this,{gl:n}=i;this.texture!==this._ownedHandle&&(this.texture=this._ownedHandle),n.bindTexture(n.TEXTURE_2D,this.texture),(r===n.LINEAR_MIPMAP_NEAREST||r===n.LINEAR_MIPMAP_LINEAR)&&!this.useMipmap&&(r=n.LINEAR);let a=r||t;t!==this.magFilter&&(n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MAG_FILTER,t),this.magFilter=t),a!==this.minFilter&&(n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MIN_FILTER,a),this.minFilter=a),e!==this.wrap&&(n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_S,e),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_T,e),this.wrap=e)}generateMipmap(){if(!this.useMipmap)return;let{gl:t}=this.context;t.bindTexture(t.TEXTURE_2D,this.texture),t.generateMipmap(t.TEXTURE_2D)}destroy(){let{gl:t}=this.context;t.deleteTexture(this.texture),this.texture=null,this._ownedHandle=null}},ze,Yl=(ze=class{constructor(e,r,i,n=1,a=1,s=1,o=0){if(this.uid=e,r.height!==r.width)throw RangeError("DEM tiles must be square");if(i&&!["mapbox","terrarium","custom"].includes(i)){Mt(`"${i}" is not a valid encoding type. Valid types include "mapbox", "terrarium" and "custom".`);return}this.stride=r.height;let l=this.dim=r.height-4;switch(this.data=new Uint32Array(r.data.buffer),ze.byteViewCache.set(this,new Uint8Array(this.data.buffer)),i){case"terrarium":this.redFactor=256,this.greenFactor=1,this.blueFactor=1/256,this.baseShift=32768;break;case"custom":this.redFactor=n,this.greenFactor=a,this.blueFactor=s,this.baseShift=o;break;default:this.redFactor=6553.6,this.greenFactor=25.6,this.blueFactor=.1,this.baseShift=1e4}for(let h=-2;h=l)&&this.data.copyWithin(this._idx(0,h),c,c+l),this.data.fill(this.data[c],this._idx(-2,h),this._idx(0,h)),this.data.fill(this.data[c+l-1],this._idx(l,h),this._idx(l+1,h)+1)}let u=this._getByteView();this.min=2**53-1,this.max=-(2**53-1);for(let h=0;hthis.max&&(this.max=f),f=this.dim||n<-1||n>=this.dim)throw RangeError(`Out of range source coordinates for DEM data. x: ${e}, y: ${r}, dim: ${this.dim}`);let a=this._getByteView(),s=((n+2)*this.stride+i+2)*4,o=this.stride*4,l=e-i,u=r-n,h=this._unpackAtIndex(a,s),c=this._unpackAtIndex(a,s+4),p=this._unpackAtIndex(a,s+o),f=this._unpackAtIndex(a,s+o+4);return h*(1-l)*(1-u)+c*l*(1-u)+p*(1-l)*u+f*l*u}getUnpackVector(){return[this.redFactor,this.greenFactor,this.blueFactor,this.baseShift]}_idx(e,r){if(e<-2||e>=this.dim+2||r<-2||r>=this.dim+2)throw RangeError(`Out of range source coordinates for DEM data. x: ${e}, y: ${r}, dim: ${this.dim}`);return(r+2)*this.stride+(e+2)}unpack(e,r,i){return e*this.redFactor+r*this.greenFactor+i*this.blueFactor-this.baseShift}pack(e){return Fd(e,this.getUnpackVector())}getPixels(){return new Ht({width:this.stride,height:this.stride},this._getByteView())}backfillBorder(e,r,i){if(this.dim!==e.dim)throw Error("dem dimension mismatch");let n=r*this.dim,a=r*this.dim+this.dim,s=i*this.dim,o=i*this.dim+this.dim;switch(r){case-1:n=a-2;break;case 1:a=n+2}switch(i){case-1:s=o-2;break;case 1:o=s+2}let l=-r*this.dim,u=-i*this.dim;for(let h=s;h80*r){o=t[0],l=t[1];let h=o,c=l;for(let p=r;ph&&(h=f),d>c&&(c=d)}u=Math.max(h-o,c-l),u=u===0?0:32767/u}return Uo(a,s,o,l,u),s}function Td(t,e,r,i,n){let a=null;if(n===Tx(t,e,r,i)>0)for(let s=e;s=e;s-=i)a=cc(s/i|0,t[s],t[s+1],a);return a&&yn(a,a.next)&&(gn(a),a=a.next),a}function _r(t,e=t){let r=e===t,i=t,n;do n=!1,i!==i.next&&(dn.size===0||!dn.has(i))&&(yn(i,i.next)||Tt(i.prev,i,i.next)===0)?((r||i===e)&&(e=i.prev),No=!0,gn(i),i=i.prev,n=!0):(r||i!==e)&&(i=i.next,n=!r);while(n||i!==e);return e}function Uo(t,e,r,i,n){n&&Dx(t,r,i,n);let a=t,s=!1;for(;t.prev!==t.next;){let o=t.prev,l=t.next;if(Tt(o,t,l)<0&&(n?px(t,r,i,n):cx(t))){e.push(o.i,t.i,l.i),gn(t),t=l,a=l;continue}if(t=l,t===a){if(No=!1,t=_r(t),No){a=t;continue}if(!s){t=fx(t,e),a=t,s=!0;continue}dx(t,e,r,i,n);break}}}function cx(t){let e=t.prev,r=t,i=t.next,n=e.x,a=r.x,s=i.x,o=e.y,l=r.y,u=i.y,h=Math.min(n,a,s),c=Math.min(o,l,u),p=Math.max(n,a,s),f=Math.max(o,l,u),d=i.next;for(;d!==e;){if(d.x>=h&&d.x<=p&&d.y>=c&&d.y<=f&&(n!==d.x||o!==d.y)&&ka(n,o,a,l,s,u,d.x,d.y)&&Tt(d.prev,d,d.next)>=0)return!1;d=d.next}return!0}function px(t,e,r,i){let n=t.prev,a=t,s=t.next,o=n.x,l=a.x,u=s.x,h=n.y,c=a.y,p=s.y,f=Math.min(o,l,u),d=Math.min(h,c,p),y=Math.max(o,l,u),m=Math.max(h,c,p),g=Xo(f,d,e,r,i),x=Xo(y,m,e,r,i),v=t.prevZ;for(;v&&v.z>=g;){if(v.x>=f&&v.x<=y&&v.y>=d&&v.y<=m&&v!==s&&(o!==v.x||h!==v.y)&&ka(o,h,l,c,u,p,v.x,v.y)&&Tt(v.prev,v,v.next)>=0)return!1;v=v.prevZ}let b=t.nextZ;for(;b&&b.z<=x;){if(b.x>=f&&b.x<=y&&b.y>=d&&b.y<=m&&b!==s&&(o!==b.x||h!==b.y)&&ka(o,h,l,c,u,p,b.x,b.y)&&Tt(b.prev,b,b.next)>=0)return!1;b=b.nextZ}return!0}function fx(t,e){let r=t,i=!1;do{let n=r.prev,a=r.next.next;Id(n,r,r.next,a,!1)&&mn(n,a)&&mn(a,n)&&(e.push(n.i,r.i,a.i),gn(r),gn(r.next),r=t=a,i=!0),r=r.next}while(r!==t);return i?_r(r):r}function dx(t,e,r,i,n){let a=t;do{let s=a.next.next;for(;s!==a.prev;){if(a.i!==s.i&&Sx(a,s)){let o=Cd(a,s);a=_r(a,a.next),o=_r(o,o.next),Uo(a,e,r,i,n),Uo(o,e,r,i,n);return}s=s.next}a=a.next}while(a!==t)}var qo=!1;function yx(t,e,r,i){let n=[];for(let a=0,s=e.length;as&&(s=r.x),r.yo&&(o=r.y),h.xs&&(s=h.x),h.yo&&(o=h.y),r=h}while(++l<16&&r!==e);Go[i]=r;let u=i*4;Dt[u]=n,Dt[u+1]=a,Dt[u+2]=s,Dt[u+3]=o}while(r!==e)}function vx(t,e){let r=t.z*4;e.xDt[r+2]&&(Dt[r+2]=e.x),e.y>Dt[r+3]&&(Dt[r+3]=e.y)}function uc(t){let e=Go[t];for(;e.prev.next!==e;)e=e.next;return Go[t]=e,e}function hc(t){let e=jo[t];for(;e.prev.next!==e;)e=e.next;return jo[t]=e,e}function bx(t,e){let r=e,i=t.x,n=t.y,a=-1/0,s;if(yn(t,r))return r;for(let p=0,f=0;pDt[f+3]||Dt[f]>i||Dt[f+2]<=a)continue;let d=uc(p);r=hc(p);do{if(r.prev.next===r){if(yn(t,r.next))return r.next;if(n<=r.y&&n>=r.next.y&&r.next.y!==r.y){let y=r.x+(n-r.y)*(r.next.x-r.x)/(r.next.y-r.y);if(y<=i&&y>a&&(a=y,s=r.xi||Dt[f+3]h)continue;let d=uc(p);r=hc(p);do{if(r.prev.next===r&&i>=r.x&&r.x>=o&&i!==r.x&&ka(ni)&&(ys.x||r.x===s.x&&wx(s,r)))&&(s=r,c=y)}r=r.next}while(r!==d)}return s}function wx(t,e){return Tt(t.prev,t,e.prev)<0&&Tt(e.next,t,t.next)<0}var oe=[],Ii=[],cr=new Uint32Array,Ci=new Uint32Array,Mi=new Uint32Array(256);function Dx(t,e,r,i){let n=t,a=0;do n.z=Xo(n.x,n.y,e,r,i),oe[a++]=n,n=n.next;while(n!==t);_x(a);let s=null;for(let o=0;o=0&&oe[n].z>i;)oe[n+1]=oe[n],n--;oe[n+1]=r}return}cr.length>>a&255]++;let s=0;for(let o=0;o<256;o++){let l=Mi[o];Mi[o]=s,s+=l}for(let o=0;o>>a&255]++;i[u]=e[o],n[u]=l}}function Xo(t,e,r,i,n){return t=(t-r)*n|0,e=(e-i)*n|0,t=(t|t<<8)&16711935,t=(t|t<<4)&252645135,t=(t|t<<2)&858993459,t=(t|t<<1)&1431655765,e=(e|e<<8)&16711935,e=(e|e<<4)&252645135,e=(e|e<<2)&858993459,e=(e|e<<1)&1431655765,t|e<<1}function Ax(t){let e=t,r=t;do(e.x=(t-s)*(a-o)&&(t-s)*(i-o)>=(r-s)*(e-o)&&(r-s)*(a-o)>=(n-s)*(i-o)}function Sx(t,e){let r=yn(t,e)&&Tt(t.prev,t,t.next)>0&&Tt(e.prev,e,e.next)>0;return t.next.i!==e.i&&(r||mn(t,e)&&mn(e,t)&&(Tt(t.prev,t,e.prev)!==0||Tt(t,e.prev,e)!==0))&&!Ex(t,e)&&(r||Fx(t,e))}function Tt(t,e,r){return(e.y-t.y)*(r.x-e.x)-(e.x-t.x)*(r.y-e.y)}function yn(t,e){return t.x===e.x&&t.y===e.y}function Id(t,e,r,i,n=!0){let a=Tt(t,e,r),s=Tt(t,e,i),o=Tt(r,i,t),l=Tt(r,i,e);return(a>0&&s<0||a<0&&s>0)&&(o>0&&l<0||o<0&&l>0)?!0:n?!!(a===0&&ta(t,r,e)||s===0&&ta(t,i,e)||o===0&&ta(r,t,i)||l===0&&ta(r,e,i)):!1}function ta(t,e,r){return e.x<=Math.max(t.x,r.x)&&e.x>=Math.min(t.x,r.x)&&e.y<=Math.max(t.y,r.y)&&e.y>=Math.min(t.y,r.y)}function Ex(t,e){let r=Math.min(t.x,e.x),i=Math.max(t.x,e.x),n=Math.min(t.y,e.y),a=Math.max(t.y,e.y),s=t;do{let o=s.next;if(s.x>i&&o.x>i||s.xa&&o.y>a||s.y=0&&Tt(t,t.prev,e)>=0:Tt(t,e,t.prev)<0||Tt(t,t.next,e)<0}function Fx(t,e){let r=t,i=!1,n=(t.x+e.x)/2,a=(t.y+e.y)/2;do{let s=r.next;r.y>a!=s.y>a&&n<(s.x-r.x)*(a-r.y)/(s.y-r.y)+r.x&&(i=!i),r=s}while(r!==t);return i}function Cd(t,e){let r=Yo(t.i,t.x,t.y),i=Yo(e.i,e.x,e.y),n=t.next,a=e.prev;return t.next=e,e.prev=t,r.next=n,n.prev=r,i.next=r,r.prev=i,a.next=i,i.prev=a,i}function cc(t,e,r,i){let n=Yo(t,e,r);return i?(n.next=i.next,n.prev=i,i.next.prev=n,i.next=n):(n.prev=n,n.next=n),n}function gn(t){t.next.prev=t.prev,t.prev.next=t.next,t.prevZ&&(t.prevZ.nextZ=t.nextZ),t.nextZ&&(t.nextZ.prevZ=t.prevZ),qo&&vx(t.prev,t.next)}function Yo(t,e,r){return{i:t,x:e,y:r,prev:null,next:null,z:0,prevZ:null,nextZ:null}}function Tx(t,e,r,i){let n=0;for(let a=e,s=r-i;at)throw Error("Min granularity must not be greater than base granularity.");this._baseZoomGranularity=t,this._minGranularity=e}getGranularityForZoomLevel(t){let e=1<32767||e>32767)throw Error("Vertex coordinates are out of signed 16 bit integer range.");let r=Math.round(t)|0,i=Math.round(e)|0,n=this._getKey(r,i),a=this._vertexDictionary.get(n);if(a!==void 0)return a;let s=this._vertexBuffer.length/2;return this._vertexDictionary.set(n,s),this._vertexBuffer.push(r,i),s}_subdivideTrianglesScanline(t,e){if(this._granularity<2)return Bx(this._vertexBuffer,Mx(t,e));let r=[],i=t.length;for(let n=0;n=1||b<=0)||m&&(ln)){h>=i&&h<=n&&a.push(r[(s+1)%3]);continue}if(!m&&v>0){let A=o+f*v,S=l+d*v;a.push(this._vertexToIndex(A,S))}let w=o+f*Math.max(v,0),_=o+f*Math.min(b,1);if(y||this._generateIntraEdgeVertices(a,o,l,u,h,w,_),!m&&b<1){let A=o+f*b,S=l+d*b;a.push(this._vertexToIndex(A,S))}(m||h>=i&&h<=n)&&a.push(r[(s+1)%3]),!m&&(h<=i||h>=n)&&this._generateInterEdgeVertices(a,o,l,u,h,c,p,_,i,n)}return a}_generateIntraEdgeVertices(t,e,r,i,n,a,s){let o=i-e,l=n-r,u=l===0,h=u?Math.min(e,i):Math.min(a,s),c=u?Math.max(e,i):Math.max(a,s),p=Math.floor(h/this._granularityCellSize)+1,f=Math.ceil(c/this._granularityCellSize)-1;if(u?e=p;d--){let y=d*this._granularityCellSize,m=r+l*(y-e)/o;t.push(this._vertexToIndex(y,m))}}_generateInterEdgeVertices(t,e,r,i,n,a,s,o,l,u){let h=n-r,c=a-i,p=s-n,f=(l-n)/p,d=(u-n)/p,y=Math.min(f,d),m=Math.max(f,d),g=i+c*y,x=Math.floor(Math.min(g,o)/this._granularityCellSize)+1,v=Math.ceil(Math.max(g,o)/this._granularityCellSize)-1,b=o=1||m<=0){let A=e-a,S=r-s,T=(l-s)/S,L=(u-s)/S,O=a+A*Math.min(T,L);x=Math.floor(Math.min(O,o)/this._granularityCellSize)+1,v=Math.ceil(Math.max(O,o)/this._granularityCellSize)-1,b=o0?u:l;if(b)for(let A=x;A<=v;A++){let S=A*this._granularityCellSize;t.push(this._vertexToIndex(S,_))}else for(let A=v;A>=x;A--){let S=A*this._granularityCellSize;t.push(this._vertexToIndex(S,_))}}_generateOutline(t,e){let r=[],i=0;for(let n of t){let a=this._granularity<2?this._ringPathIndices(n,i,e):this._pointArrayToIndices(yr(n,this._granularity,!0));i+=n.length;let s=[];for(let o=1;o=2&&Bd(t)&&i.push(i[0]),i}_handlePoles(t){let e=!1,r=!1;this._canonical&&(this._canonical.y===0&&(e=!0),this._canonical.y===(1<n==(a===-32768)?(t.push(r),t.push(e),t.push(this._vertexToIndex(i,a)),t.push(this._vertexToIndex(n,a)),t.push(r),t.push(this._vertexToIndex(i,a))):(t.push(e),t.push(r),t.push(this._vertexToIndex(i,a)),t.push(r),t.push(this._vertexToIndex(n,a)),t.push(this._vertexToIndex(i,a)))}_fillPoles(t,e,r){let i=this._vertexBuffer,n=gt,a=t.length;for(let s=2;s=2&&((o=this._canonical)==null?void 0:o.z)===0&&(a=this._removeTrianglesOutsideTileX(a),s=s.map(l=>this._removeLinesOutsideTileX(l))),{verticesFlattened:this._vertexBuffer,indicesTriangles:a,indicesLineList:s}}_vertexOutsideTileX(t){let e=this._vertexBuffer[t*2];return e<0||e>8192}_removeTrianglesOutsideTileX(t){let e=[];for(let r=0;r0?(Math.floor(w/n)+1)*n:(Math.ceil(w/n)-1)*n,T=x>0?(Math.floor(_/n)+1)*n:(Math.ceil(_/n)-1)*n,L=Math.abs(w-S),O=Math.abs(_-T),B=Math.abs(w-f),V=Math.abs(_-d),F=y?L/v:1/0,$=m?O/b:1/0;if((B<=L||!y)&&(V<=O||!m))break;if(F<$&&y||!m){w=S,_+=x*F;let G=new M(w,Math.round(_));(a[a.length-1].x!==G.x||a[a.length-1].y!==G.y)&&a.push(G)}else{w+=g*$,_=T;let G=new M(Math.round(w),_);(a[a.length-1].x!==G.x||a[a.length-1].y!==G.y)&&a.push(G)}}let A=new M(f,d);(a[a.length-1].x!==A.x||a[a.length-1].y!==A.y)&&a.push(A)}return a}function Bd(t){return!t[0].equals(t[t.length-1])}function Cx(t){let e=[],r=[];for(let i of t)if(i.length!==0){i!==t[0]&&e.push(r.length/2);for(let n of i)r.push(n.x),r.push(n.y)}return{flattened:r,holeIndices:e}}function Mx(t,e){let r=Array(t.length);for(let i=0;i0?(r.push(n),r.push(s),r.push(a)):(r.push(n),r.push(a),r.push(s))}return r}function Px(t,e,r){if(e.length===0)throw Error("Subdivision vertex ring is empty.");let i=0,n=t[e[0]*2];for(let l=1;l=0?s-1:a-1,u=(o+1)%a,h=t[e[l]*2],c=t[e[l]*2+1],p=t[e[u]*2],f=t[e[u]*2+1],d=t[e[s]*2],y=t[e[s]*2+1],m=t[e[o]*2],g=t[e[o]*2+1],x=!1;if(hp)x=!1;else{let v=g-y,b=-(m-d),w=y((p-d)*v+(f-y)*b)*w&&(x=!0)}if(x){let v=e[l],b=e[s],w=e[o];v!==b&&v!==w&&b!==w&&r.push(w,b,v),s--,s<0&&(s=a-1)}else{let v=e[u],b=e[s],w=e[o];v!==b&&v!==w&&b!==w&&r.push(w,b,v),o++,o>=a&&(o=0)}if(l===u)break}}function Pd(t,e,r,i,n,a,s,o,l){let u=n.length/2,h=s&&o&&l;if(uie.MAX_VERTEX_ARRAY_LENGTH&&(u=t.createNewSegment(e,r),l=o.count,y=!0,m=!0,g=!0,h=0);let v=Ji(s,i,a,o,p,y,u),b=Ji(s,i,a,o,f,m,u),w=Ji(s,i,a,o,d,g,u);r.emplaceBack(h+v-l,h+b-l,h+w-l),u.primitiveLength++}}function Lx(t,e,r,i,n,a){let s=[];for(let c=0;cie.MAX_VERTEX_ARRAY_LENGTH&&(u=t.createNewSegment(e,r),l=o.count,y=!0,m=!0,h=0);let x=Ji(s,i,a,o,f,y,u),v=Ji(s,i,a,o,d,m,u);r.emplaceBack(h+x-l,h+v-l),u.primitiveLength++}}var zd=class{constructor(t){this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map(e=>e.id),this.index=t.index,this.hasDependencies=!1,this.sdfPatterns={},this.patternFeatures=[],this.layoutVertexArray=new gg,this.indexArray=new En,this.indexArray2=new Po,this.programConfigurations=new Dr(t.layers,t.zoom),this.segments=new ie,this.segments2=new ie,this.stateDependentLayerIds=this.layers.filter(e=>e.isStateDependent()).map(e=>e.id)}populate(t,e,r){this.hasDependencies=Fa("fill",this.layers,e);let i=this.layers[0].layout.get("fill-sort-key"),n=!i.isConstant(),a=[],s=new st(this.zoom),o=this.layers[0]._featureFilter.needGeometry;for(let{feature:l,id:u,index:h,sourceLayerIndex:c}of t){let p=hi(l,o);if(!this.layers[0]._featureFilter.filter(s,p,r))continue;let f=n?i.evaluate(p,{},r,e.availableImages):void 0,d={id:u,properties:l.properties,type:l.type,sourceLayerIndex:c,index:h,geometry:o?p.geometry:Fr(l),patterns:{},sortKey:f};a.push(d)}n&&a.sort((l,u)=>l.sortKey-u.sortKey);for(let l of a){let{geometry:u,index:h,sourceLayerIndex:c}=l;if(this.hasDependencies){let f=Wl("fill",this.layers,l,{zoom:this.zoom},e);this.patternFeatures.push(f)}else this.addFeature(l,u,h,r,{},e.subdivisionGranularity);let p=t[h].feature;e.featureIndex.insert(p,u,h,c,this.index)}}update(t,e,r){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(t,e,this.stateDependentLayers,{imagePositions:r})}addFeatures({options:t,canonical:e,patternPositions:r,patternMap:i}){this.detectSdfPatterns(i);for(let n of this.patternFeatures)this.addFeature(n,n.geometry,n.index,e,r,t.subdivisionGranularity)}detectSdfPatterns(t){for(let e of this.patternFeatures)for(let r in e.patterns){let i=e.patterns[r];this.recordSdfPattern(r,t[i.min]),this.recordSdfPattern(r,t[i.mid]),this.recordSdfPattern(r,t[i.max])}for(let e of this.layers){let r=e.paint.get("fill-pattern").constantOr(null);r&&(this.recordSdfPattern(e.id,t[r.from.toString()]),this.recordSdfPattern(e.id,t[r.to.toString()]))}}recordSdfPattern(t,e){if(!e)return;let r=e.sdf===!0,i=this.sdfPatterns[t];i===void 0?this.sdfPatterns[t]=r:i!==r&&Mt(`Style sheet warning: Cannot mix SDF and non-SDF fill patterns in layer "${t}"`)}isEmpty(){return this.layoutVertexArray.length===0}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(t){this.uploaded||(this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,ux),this.indexBuffer=t.createIndexBuffer(this.indexArray),this.indexBuffer2=t.createIndexBuffer(this.indexArray2)),this.programConfigurations.upload(t),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.indexBuffer2.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.segments2.destroy())}addFeature(t,e,r,i,n,a){for(let s of Na(e,500)){let o=Md(s,i,a.fill.getGranularityForZoomLevel(i.z)),l=this.layoutVertexArray;Pd((u,h)=>{l.emplaceBack(u,h)},this.segments,this.layoutVertexArray,this.indexArray,o.verticesFlattened,o.indicesTriangles,this.segments2,this.indexArray2,o.indicesLineList)}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,t,r,{imagePositions:n,canonical:i})}};C("FillBucket",zd,{omit:["layers","patternFeatures"]});var pc,Vx=()=>pc||(pc=new Yt({"fill-sort-key":new U(D.layout_fill["fill-sort-key"],"fill-sort-key")})),fc,Ox=()=>fc||(fc=new Yt({"fill-antialias":new R(D.paint_fill["fill-antialias"],"fill-antialias"),"fill-opacity":new U(D.paint_fill["fill-opacity"],"fill-opacity"),"fill-layer-opacity":new R(D.paint_fill["fill-layer-opacity"],"fill-layer-opacity"),"fill-color":new U(D.paint_fill["fill-color"],"fill-color"),"fill-outline-color":new U(D.paint_fill["fill-outline-color"],"fill-outline-color"),"fill-translate":new R(D.paint_fill["fill-translate"],"fill-translate"),"fill-translate-anchor":new R(D.paint_fill["fill-translate-anchor"],"fill-translate-anchor"),"fill-pattern":new cn(D.paint_fill["fill-pattern"],"fill-pattern")})),Rx={get paint(){return Ox()},get layout(){return Vx()}};var $x=class extends ye{constructor(t,e){super(t,Rx,e)}recalculate(t,e){super.recalculate(t,e);let r=this.paint._values["fill-outline-color"];r.value.kind==="constant"&&r.value.value===void 0&&(this.paint._values["fill-outline-color"]=this.paint._values["fill-color"])}createBucket(t){return new zd(t)}queryRadius(){return Ka(this.paint.get("fill-translate"))}queryIntersectsFeature({queryGeometry:t,geometry:e,transform:r,pixelsToTileUnits:i}){return bd(Ja(t,this.paint.get("fill-translate"),this.paint.get("fill-translate-anchor"),-r.bearingInRadians,i),e)}isTileClipped(){return!0}},Wo=Et([{name:"a_pos",components:2,type:"Int16"},{name:"a_normal_ed",components:4,type:"Int16"}],4),Nx=Et([{name:"a_centroid",components:2,type:"Int16"}],4),Ux=Wo.members;Wo.size,Wo.alignment;var Ia=class Zo{constructor(){this.minX=1/0,this.maxX=-1/0,this.minY=1/0,this.maxY=-1/0}extend(e){return this.minX=Math.min(this.minX,e.x),this.minY=Math.min(this.minY,e.y),this.maxX=Math.max(this.maxX,e.x),this.maxY=Math.max(this.maxY,e.y),this}expandBy(e){return this.minX-=e,this.minY-=e,this.maxX+=e,this.maxY+=e,(this.minX>this.maxX||this.minY>this.maxY)&&(this.minX=1/0,this.maxX=-1/0,this.minY=1/0,this.maxY=-1/0),this}shrinkBy(e){return this.expandBy(-e)}map(e){let r=new Zo;return r.extend(e(new M(this.minX,this.minY))),r.extend(e(new M(this.maxX,this.minY))),r.extend(e(new M(this.minX,this.maxY))),r.extend(e(new M(this.maxX,this.maxY))),r}static fromPoints(e){let r=new Zo;for(let i of e)r.extend(i);return r}contains(e){return e.x>=this.minX&&e.x<=this.maxX&&e.y>=this.minY&&e.y<=this.maxY}empty(){return this.minX>this.maxX}width(){return this.maxX-this.minX}height(){return this.maxY-this.minY}covers(e){return!this.empty()&&!e.empty()&&e.minX>=this.minX&&e.maxX<=this.maxX&&e.minY>=this.minY&&e.maxY<=this.maxY}intersects(e){return!this.empty()&&!e.empty()&&e.minX<=this.maxX&&e.maxX>=this.minX&&e.minY<=this.maxY&&e.maxY>=this.minY}},A5=Ia.fromPoints([new M(0,0),new M(gt,gt)]);function Ho(t,e){return t.x===e.x&&(t.x<0||t.x>8192)||t.y===e.y&&(t.y<0||t.y>8192)}function dc(t){return t.every(e=>e.x<0)||t.every(e=>e.x>8192)||t.every(e=>e.y<0)||t.every(e=>e.y>8192)}var Fn=class{constructor(t,e,r,i,n){for(this.properties=Object.create(null),this.extent=r,this.type=0,this.id=void 0,this._pbf=t,this._geometry=-1,this._keys=i,this._values=n;t.pos>3,a===0)continue}if(a--,n===1)s+=t.readSVarint(),o+=t.readSVarint(),i&&r.push(i),i=[new M(s,o)];else if(n===2)s+=t.readSVarint(),o+=t.readSVarint(),i&&i.push(new M(s,o));else if(n===7)i&&i.push(i[0].clone());else throw Error(`unknown command ${n}`)}return i&&r.push(i),r}bbox(){if(this._geometry<0)throw Error("feature has no geometry");let t=this._pbf;t.pos=this._geometry;let e=t.readVarint()+t.pos,r=1,i=0,n=0,a=0,s=1/0,o=-1/0,l=1/0,u=-1/0;for(;t.pos>3,i===0)continue}if(i--,r===1||r===2)n+=t.readSVarint(),a+=t.readSVarint(),no&&(o=n),au&&(u=a);else if(r!==7)throw Error(`unknown command ${r}`)}return[s,l,o,u]}toGeoJSON(t,e,r){let i=this.extent*2**r,n=this.extent*t,a=this.extent*e,s=this.loadGeometry();function o(c){return[(c.x+n)*360/i-180,360/Math.PI*Math.atan(Math.exp((1-(c.y+a)*2/i)*Math.PI))-90]}function l(c){return c.map(o)}let u;if(this.type===1){let c=[];for(let f of s)c.push(f[0]);let p=l(c);u=c.length===1?{type:"Point",coordinates:p[0]}:{type:"MultiPoint",coordinates:p}}else if(this.type===2){let c=s.map(l);u=c.length===1?{type:"LineString",coordinates:c[0]}:{type:"MultiLineString",coordinates:c}}else if(this.type===3){let c=Ld(s),p=[];for(let f of c)p.push(f.map(l));u=p.length===1?{type:"Polygon",coordinates:p[0]}:{type:"MultiPolygon",coordinates:p}}else throw Error("unknown feature type");let h={type:"Feature",geometry:u,properties:this.properties};return this.id!=null&&(h.id=this.id),h}};Fn.types=["Unknown","Point","LineString","Polygon"];function Ld(t){let e=t.length;if(e<=1)return[t];let r=[],i,n;for(let a=0;a=this._features.length)throw Error("feature index out of bounds");this._pbf.pos=this._features[t];let e=this._pbf.readVarint()+this._pbf.pos;return new Fn(this._pbf,e,this.extent,this._keys,this._values)}};function Gx(t){let e=null,r=t.readVarint()+t.pos;for(;t.pos90||this.lat<-90)throw Error("Invalid LngLat latitude value: must be between -90 and 90")}wrap(){return new Gi(Z1(this.lng,-180,180),this.lat)}toArray(){return[this.lng,this.lat]}toString(){return`LngLat(${this.lng}, ${this.lat})`}distanceTo(e){let r=Math.PI/180,i=this.lat*r,n=e.lat*r,a=Math.sin(i)*Math.sin(n)+Math.cos(i)*Math.cos(n)*Math.cos((e.lng-this.lng)*r);return Vd*Math.acos(Math.min(a,1))}static convert(e){if(e instanceof Gi)return e;if(Array.isArray(e)&&(e.length===2||e.length===3))return new Gi(Number(e[0]),Number(e[1]));if(!Array.isArray(e)&&typeof e=="object"&&e)return new Gi(Number("lng"in e?e.lng:e.lon),Number(e.lat));throw Error("`LngLatLike` argument must be specified as a LngLat instance, an object {lng: , lat: }, an object {lon: , lat: }, or an array of [, ]")}},Od=2*Math.PI*Vd;function Rd(t){return Od*Math.cos(t*Math.PI/180)}function Xx(t){return(180+t)/360}function Yx(t){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+t*Math.PI/360)))/360}function Wx(t,e){return t/Rd(e)}function Zx(t){return t*360-180}function Ko(t){let e=180-t*360;return 360/Math.PI*Math.atan(Math.exp(e*Math.PI/180))-90}function Hx(t,e){return t*Rd(Ko(e))}function Kx(t){return 1/Math.cos(t*Math.PI/180)}var Hl=class $d{constructor(e,r,i=0){this.x=+e,this.y=+r,this.z=+i}static fromLngLat(e,r=0){let i=yc.convert(e);return new $d(Xx(i.lng),Yx(i.lat),Wx(r,i.lat))}toLngLat(){return new yc(Zx(this.x),Ko(this.y))}toAltitude(){return Hx(this.z,this.y)}meterInMercatorCoordinateUnits(){return 1/Od*Kx(Ko(this.y))}};function Jx(t,e,r){let i=1/(1<r2(r,e))}function e2(t,e){let r=Qx(gt/2,gt/2,e),i=Hl.fromLngLat(r).meterInMercatorCoordinateUnits(),n=(1<1&&e[0].x===e[e.length-1].x&&e[0].y===e[e.length-1].y;)e.pop();return e}function n2(t,e,r,i,n){let a=e.sub(r),s=i.sub(r),o=a.mag(),l=s.mag();if(o<1e-6||l<1e-6){t.push(r.clone());return}a._div(o),s._div(l);let u=a.x*s.x+a.y*s.y;if(Math.abs(u)>Math.cos(5*Math.PI/180)){t.push(r.clone());return}let h=.2,c=Math.min(n,o*h,l*h),p=r.add(a.mult(c)),f=r.add(s.mult(c)),d=Math.sqrt((1+u)/2),y=r.add(a.add(s)._unit()._mult(c/d)),m=p.sub(y).angleWith(f.sub(y)),g=Math.max(2,Math.ceil(Math.abs(m)/(Math.PI/6)-1e-6));for(let x=0;x<=g;x++)t.push(p.rotateAround(x/g*m,y))}var Gs=8192;function Bi(t,e,r,i,n,a,s,o){t.emplaceBack(e,r,Math.floor(i*Gs)*2+s,n*Gs*2,a*Gs*2,Math.round(o))}var Nd=class{constructor(t){this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map(e=>e.id),this.index=t.index,this.hasDependencies=!1,this.layoutVertexArray=new xg,this.centroidVertexArray=new yg,this.indexArray=new En,this.programConfigurations=new Dr(t.layers,t.zoom),this.segments=new ie,this.stateDependentLayerIds=this.layers.filter(e=>e.isStateDependent()).map(e=>e.id)}populate(t,e,r){this.features=[],this.hasDependencies=Fa("fill-extrusion",this.layers,e);let i=new st(this.zoom),n=this.layers[0],a=n.layout.get("fill-extrusion-rounded-corner-distance"),s=a>0?e2(a,r):0,o=n._featureFilter.needGeometry;for(let{feature:l,id:u,index:h,sourceLayerIndex:c}of t){let p=hi(l,o);if(!n._featureFilter.filter(i,p,r))continue;let f={id:u,sourceLayerIndex:c,index:h,geometry:t2(o?p.geometry:Fr(l),s),properties:l.properties,type:l.type,patterns:{}};this.hasDependencies?this.features.push(Wl("fill-extrusion",this.layers,f,{zoom:this.zoom},e)):this.addFeature(f,f.geometry,h,r,{},e.subdivisionGranularity),e.featureIndex.insert(l,f.geometry,h,c,this.index,!0)}}addFeatures({options:t,canonical:e,patternPositions:r}){for(let i of this.features){let{geometry:n}=i;this.addFeature(i,n,i.index,e,r,t.subdivisionGranularity)}}update(t,e,r){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(t,e,this.stateDependentLayers,{imagePositions:r})}isEmpty(){return this.layoutVertexArray.length===0&&this.centroidVertexArray.length===0}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(t){this.uploaded||(this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,Ux),this.centroidVertexBuffer=t.createVertexBuffer(this.centroidVertexArray,Nx.members,!0),this.indexBuffer=t.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(t),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.centroidVertexBuffer.destroy())}addFeature(t,e,r,i,n,a){for(let s of Na(e,500)){let o={x:0,y:0,sampleCount:0},l=this.layoutVertexArray.length;this.processPolygon(o,i,t,s,a);let u=this.layoutVertexArray.length-l,h=Math.floor(o.x/o.sampleCount),c=Math.floor(o.y/o.sampleCount);for(let p=0;p{Bi(u,h,c,0,0,1,1,0)},this.segments,this.layoutVertexArray,this.indexArray,l.verticesFlattened,l.indicesTriangles)}_generateSideFaces(t,e){let r=0;for(let i=1;iie.MAX_VERTEX_ARRAY_LENGTH&&(e.segment=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray));let s=n.sub(a)._perp()._unit(),o=a.dist(n);r+o>32768&&(r=0),Bi(this.layoutVertexArray,n.x,n.y,s.x,s.y,0,0,r),Bi(this.layoutVertexArray,n.x,n.y,s.x,s.y,0,1,r),r+=o,Bi(this.layoutVertexArray,a.x,a.y,s.x,s.y,0,0,r),Bi(this.layoutVertexArray,a.x,a.y,s.x,s.y,0,1,r);let l=e.segment.vertexLength;this.indexArray.emplaceBack(l,l+2,l+1),this.indexArray.emplaceBack(l+1,l+2,l+3),e.segment.vertexLength+=4,e.segment.primitiveLength+=2}}};function a2(t,e){for(let r=0;rmc||(mc=new Yt({"fill-extrusion-rounded-corner-distance":new R(D["layout_fill-extrusion"]["fill-extrusion-rounded-corner-distance"],"fill-extrusion-rounded-corner-distance")})),gc,o2=()=>gc||(gc=new Yt({"fill-extrusion-opacity":new R(D["paint_fill-extrusion"]["fill-extrusion-opacity"],"fill-extrusion-opacity"),"fill-extrusion-color":new U(D["paint_fill-extrusion"]["fill-extrusion-color"],"fill-extrusion-color"),"fill-extrusion-translate":new R(D["paint_fill-extrusion"]["fill-extrusion-translate"],"fill-extrusion-translate"),"fill-extrusion-translate-anchor":new R(D["paint_fill-extrusion"]["fill-extrusion-translate-anchor"],"fill-extrusion-translate-anchor"),"fill-extrusion-pattern":new cn(D["paint_fill-extrusion"]["fill-extrusion-pattern"],"fill-extrusion-pattern"),"fill-extrusion-height":new U(D["paint_fill-extrusion"]["fill-extrusion-height"],"fill-extrusion-height"),"fill-extrusion-base":new U(D["paint_fill-extrusion"]["fill-extrusion-base"],"fill-extrusion-base"),"fill-extrusion-vertical-gradient":new R(D["paint_fill-extrusion"]["fill-extrusion-vertical-gradient"],"fill-extrusion-vertical-gradient")})),l2={get paint(){return o2()},get layout(){return s2()}};var u2=class extends ye{constructor(t,e){super(t,l2,e)}createBucket(t){return new Nd(t)}queryRadius(){return Ka(this.paint.get("fill-extrusion-translate"))}is3D(){return!0}queryIntersectsFeature({queryGeometry:t,feature:e,featureState:r,geometry:i,transform:n,pixelsToTileUnits:a,pixelPosMatrix:s}){let o=Ja(t,this.paint.get("fill-extrusion-translate"),this.paint.get("fill-extrusion-translate-anchor"),-n.bearingInRadians,a),l=this.paint.get("fill-extrusion-height").evaluate(e,r),u=this.paint.get("fill-extrusion-base").evaluate(e,r),h=p2(o,s,0),c=c2(i,u,l,s),p=c[0],f=c[1];return h2(p,f,h)}};function Pi(t,e){return t.x*e.x+t.y*e.y}function xc(t,e){if(t.length===1){let r=0,i=e[r++],n;for(;!n||i.equals(n);)if(n=e[r++],!n)return 1/0;for(;r>1),s=r-e,o,l=t[e],u=t[e+1],h=t[r],c=t[r+1];for(let p=e+3;pn){o=p,n=f;continue}if(f===n){let d=Math.abs(p-a);di&&(o-e>3&&Jo(t,e,o,i),t[o+2]=n,r-o>3&&Jo(t,o,r,i))}function f2(t,e,r,i,n,a){let s=n-r,o=a-i;if(s!==0||o!==0){let l=((t-r)*s+(e-i)*o)/(s*s+o*o);l>1?(r=n,i=a):l>0&&(r+=s*l,i+=o*l)}return s=t-r,o=e-i,s*s+o*o}function Ct(t,e,r,i){let n={type:e,geom:r},a={id:t!=null?t:null,type:n.type,geometry:n.geom,tags:i,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};switch(n.type){case"Point":case"MultiPoint":zi(a,n.geom);break;case"LineString":zi(a,n.geom.points);break;case"Polygon":zi(a,n.geom[0].points);break;case"MultiLineString":for(let s of n.geom)zi(a,s.points);break;case"MultiPolygon":for(let s of n.geom)zi(a,s[0].points)}return a}function Kl(t){let e=t;t.points.length>64&&(e.points=new Float64Array(t.points))}function zi(t,e){for(let r=0;r1024)throw Error("GeometryCollection nesting exceeds supported depth: 1024");if(e.geometry.type==="GeometryCollection"){y2(t,e,e.geometry,r,i,n+1);return}if(!((o=e.geometry.coordinates)!=null&&o.length))return;let a=d2(e,r,i),s=(r.tolerance/((1<0&&(s+=i?(n*h-u*a)/2:Math.sqrt((u-n)**2+(h-a)**2)),n=u,a=h}let o=e.points.length-3;e.points[2]=1,r>0&&Jo(e.points,0,o,r),e.points[o+2]=1,Kl(e),e.size=Math.abs(s),e.start=0,e.end=e.size}function tu(t,e,r,i){for(let n=0;n1?1:r}function D2(t){return{type:"FeatureCollection",features:t.map(e=>Ca(e))}}function Ca(t){let e={type:"Feature",geometry:_2(t),properties:t.tags};return t.id!=null&&(e.id=t.id),e}function _2(t){let{type:e,geometry:r}=t;switch(e){case"Point":return{type:e,coordinates:Ud(r[0],r[1])};case"MultiPoint":return{type:e,coordinates:ea(r)};case"LineString":return{type:e,coordinates:ea(r.points)};case"MultiLineString":case"Polygon":return{type:e,coordinates:r.map(i=>ea(i.points))};case"MultiPolygon":return{type:e,coordinates:r.map(i=>i.map(n=>ea(n.points)))}}}function ea(t){let e=[];for(let r=0;r=r&&s=i)return null;let l=[];for(let u of t){let h=n===0?u.minX:u.minY,c=n===0?u.maxX:u.maxY;if(h>=r&&c=i))switch(u.type){case"Point":case"MultiPoint":A2(u,l,r,i,n);continue;case"LineString":S2(u,l,r,i,n,o);continue;case"MultiLineString":E2(u,l,r,i,n);continue;case"Polygon":F2(u,l,r,i,n);continue;case"MultiPolygon":T2(u,l,r,i,n);continue}}return l.length?l:null}function A2(t,e,r,i,n){let a=[];if(k2(t.geometry,a,r,i,n),!a.length)return;let s=a.length===3?"Point":"MultiPoint";e.push(Ct(t.id,s,a,t.tags))}function S2(t,e,r,i,n,a){let s=[];if(Gd(t.geometry,s,r,i,n,!1,a.lineMetrics),s.length){if(a.lineMetrics){for(let o of s)e.push(Ct(t.id,"LineString",o,t.tags));return}if(s.length>1){e.push(Ct(t.id,"MultiLineString",s,t.tags));return}e.push(Ct(t.id,"LineString",s[0],t.tags))}}function E2(t,e,r,i,n){let a=[];if(eu(t.geometry,a,r,i,n,!1),a.length){if(a.length===1){e.push(Ct(t.id,"LineString",a[0],t.tags));return}e.push(Ct(t.id,"MultiLineString",a,t.tags))}}function F2(t,e,r,i,n){let a=[];eu(t.geometry,a,r,i,n,!0),a.length&&e.push(Ct(t.id,"Polygon",a,t.tags))}function T2(t,e,r,i,n){let a=[];for(let s of t.geometry){let o=[];eu(s,o,r,i,n,!0),o.length&&a.push(o)}a.length&&e.push(Ct(t.id,"MultiPolygon",a,t.tags))}function k2(t,e,r,i,n){for(let a=0;a=r&&s<=i&&Kr(e,t[a],t[a+1],t[a+2])}}function Gd(t,e,r,i,n,a,s){let o=vc(t),l=n===0?I2:C2,u=t.start,h,c;for(let g=0;gr&&(c=l(o,x,v,w,_,r),s&&(o.start=u+h*c)):A>i?S=r&&(c=l(o,x,v,w,_,r),T=!0),S>i&&A<=i&&(c=l(o,x,v,w,_,i),T=!0),!a&&T&&(s&&(o.end=u+h*c),e.push(o),o=vc(t)),s&&(u+=h)}let p=t.points.length-3,f=t.points[p],d=t.points[p+1],y=t.points[p+2],m=n===0?f:d;m>=r&&m<=i&&Kr(o.points,f,d,y),p=o.points.length-3,a&&p>=3&&(o.points[p]!==o.points[0]||o.points[p+1]!==o.points[1])&&Kr(o.points,o.points[0],o.points[1],o.points[2]),o.points.length&&(Kl(o),e.push(o))}function vc(t){return{points:[],size:t.size,start:t.start,end:t.end}}function eu(t,e,r,i,n,a){for(let s of t)Gd(s,e,r,i,n,a,!1)}function Kr(t,e,r,i){t.push(e,r,i)}function I2(t,e,r,i,n,a){let s=(a-e)/(i-e);return Kr(t.points,a,r+(n-r)*s,1),s}function C2(t,e,r,i,n,a){let s=(a-r)/(n-r);return Kr(t.points,e+(i-e)*s,a,1),s}function ru(t,e){let r=e.buffer/e.extent,i=t,n=Me(t,1,-1-r,r,0,-1,2,e),a=Me(t,1,1-r,2+r,0,-1,2,e);return!n&&!a||(i=Me(t,1,-r,1+r,0,-1,2,e)||[],n&&(i=bc(n,1).concat(i)),a&&(i=i.concat(bc(a,-1)))),i}function bc(t,e){let r=[];for(let i of t)switch(i.type){case"Point":case"MultiPoint":{let n=M2(i.geometry,e);r.push(Ct(i.id,i.type,n,i.tags));continue}case"LineString":{let n=Xs(i.geometry,e);r.push(Ct(i.id,i.type,n,i.tags));continue}case"MultiLineString":case"Polygon":{let n=[];for(let a of i.geometry)n.push(Xs(a,e));r.push(Ct(i.id,i.type,n,i.tags));continue}case"MultiPolygon":{let n=[];for(let a of i.geometry){let s=[];for(let o of a)s.push(Xs(o,e));n.push(s)}r.push(Ct(i.id,i.type,n,i.tags));continue}}return r}function M2(t,e){let r=[];for(let i=0;io.id));t=t.filter(o=>!s.has(o.id))}if(i.add.size){let s=Jl({type:"FeatureCollection",features:Array.from(i.add.values())},r);s=ru(s,r),n=n.concat(s),t=t.concat(s)}}if(i.update.size){let a=new Map,s=[];for(let o of t)i.update.has(o.id)?a.set(o.id,[...a.get(o.id)||[],o]):s.push(o);for(let[o,l]of i.update){let u=a.get(o);if(!u||u.length===0)continue;let h=P2(u,l,r);n=n.concat(u,h),s=s.concat(h)}t=s}return{affected:n,source:t}}function P2(t,e,r){var a,s;let i=!!e.newGeometry,n=e.removeAllProperties||((a=e.removeProperties)==null?void 0:a.length)>0||((s=e.addOrUpdateProperties)==null?void 0:s.length)>0;if(i){let o=t[0],l=Jl({type:"FeatureCollection",features:[{type:"Feature",id:o.id,geometry:e.newGeometry,properties:n?wc(o.tags,e):o.tags}]},r);return l=ru(l,r),l}if(n){let o=[];for(let l of t){let u=Xe({},l);u.tags=wc(u.tags,e),o.push(u)}return o}return t}function wc(t,e){if(e.removeAllProperties)return{};let r=Xe({},t||{});if(e.removeProperties)for(let i of e.removeProperties)delete r[i];if(e.addOrUpdateProperties)for(let{key:i,value:n}of e.addOrUpdateProperties)r[i]=n;return r}function z2(t,e){var r,i;return t?{removeAll:t.removeAll,remove:new Set(t.remove||[]),add:new Map((r=t.add)==null?void 0:r.map(n=>[e.promoteId?n.properties[e.promoteId]:n.id,n])),update:new Map((i=t.update)==null?void 0:i.map(n=>[n.id,n]))}:{remove:new Set,add:new Map,update:new Map}}var Dc=[Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array],yt=new Uint32Array(96),L2=class Xd{static from(e){if(!e||e.byteLength===void 0||e.buffer)throw Error("Data must be an instance of ArrayBuffer or SharedArrayBuffer.");let[r,i]=new Uint8Array(e,0,2);if(r!==219)throw Error("Data does not appear to be in a KDBush format.");let n=i>>4;if(n!==1)throw Error(`Got v${n} data when expected v1.`);let a=Dc[i&15];if(!a)throw Error("Unrecognized array type.");let[s]=new Uint16Array(e,2,1),[o]=new Uint32Array(e,4,1);return new Xd(o,s,a,void 0,e)}constructor(e,r=64,i=Float64Array,n=ArrayBuffer,a){if(isNaN(e)||e<0)throw Error(`Unexpected numItems value: ${e}.`);this.numItems=+e,this.nodeSize=Math.min(Math.max(+r,2),65535),this.ArrayType=i,this.IndexArrayType=e<65536?Uint16Array:Uint32Array;let s=Dc.indexOf(this.ArrayType),o=e*2*this.ArrayType.BYTES_PER_ELEMENT,l=e*this.IndexArrayType.BYTES_PER_ELEMENT,u=(8-l%8)%8;if(s<0)throw Error(`Unexpected typed array class: ${i}.`);if(a)this.data=a,this.ids=new this.IndexArrayType(a,8,e),this.coords=new i(a,8+l+u,e*2),this._pos=e*2,this._finished=!0;else{let h=this.data=new n(8+o+l+u);this.ids=new this.IndexArrayType(h,8,e),this.coords=new i(h,8+l+u,e*2),this._pos=0,this._finished=!1,new Uint8Array(h,0,2).set([219,16+s]),new Uint16Array(h,2,1)[0]=r,new Uint32Array(h,4,1)[0]=e}}add(e,r){let i=this._pos>>1;return this.ids[i]=i,this.coords[this._pos++]=e,this.coords[this._pos++]=r,i}finish(){let e=this._pos>>1;if(e!==this.numItems)throw Error(`Added ${e} items when expected ${this.numItems}.`);return Qo(this.ids,this.coords,this.nodeSize,0,this.numItems-1,0),this._finished=!0,this}range(e,r,i,n){if(!this._finished)throw Error("Data not yet indexed - call index.finish().");let{ids:a,coords:s,nodeSize:o}=this;yt[0]=0,yt[1]=a.length-1,yt[2]=0;let l=3,u=[];for(;l>0;){let h=yt[--l],c=yt[--l],p=yt[--l];if(c-p<=o){for(let m=p;m<=c;m++){let g=s[2*m],x=s[2*m+1];g>=e&&g<=i&&x>=r&&x<=n&&u.push(a[m])}continue}let f=p+c>>1,d=s[2*f],y=s[2*f+1];d>=e&&d<=i&&y>=r&&y<=n&&u.push(a[f]),(h===0?e<=d:r<=y)&&(yt[l++]=p,yt[l++]=f-1,yt[l++]=1-h),(h===0?i>=d:n>=y)&&(yt[l++]=f+1,yt[l++]=c,yt[l++]=1-h)}return u}within(e,r,i){let n=[];return this.withinInto(e,r,i,n),n}withinInto(e,r,i,n){if(!this._finished)throw Error("Data not yet indexed - call index.finish().");let{ids:a,coords:s,nodeSize:o}=this;yt[0]=0,yt[1]=a.length-1,yt[2]=0;let l=3,u=0,h=i*i;for(;l>0;){let c=yt[--l],p=yt[--l],f=yt[--l];if(p-f<=o){for(let g=f;g<=p;g++)_c(s[2*g],s[2*g+1],e,r)<=h&&(n[u++]=a[g]);continue}let d=f+p>>1,y=s[2*d],m=s[2*d+1];_c(y,m,e,r)<=h&&(n[u++]=a[d]),(c===0?e-i<=y:r-i<=m)&&(yt[l++]=f,yt[l++]=d-1,yt[l++]=1-c),(c===0?e+i>=y:r+i>=m)&&(yt[l++]=d+1,yt[l++]=p,yt[l++]=1-c)}return u}};function Qo(t,e,r,i,n,a){if(n-i<=r)return;let s=i+n>>1;Yd(t,e,s,i,n,a),Qo(t,e,r,i,s-1,1-a),Qo(t,e,r,s+1,n,1-a)}function Yd(t,e,r,i,n,a){for(;n>i;){if(n-i>600){let u=n-i+1,h=r-i+1,c=Math.log(u),p=.5*Math.exp(2*c/3),f=.5*Math.sqrt(c*p*(u-p)/u)*(h-u/2<0?-1:1);Yd(t,e,r,Math.max(i,Math.floor(r-h*p/u+f)),Math.min(n,Math.floor(r+(u-h)*p/u+f)),a)}let s=e[2*r+a],o=i,l=n;for(Li(t,e,i,r),e[2*n+a]>s&&Li(t,e,i,n);os;)l--}e[2*i+a]===s?Li(t,e,i,l):(l++,Li(t,e,l,n)),l<=r&&(i=l+1),r<=l&&(n=l-1)}}function Li(t,e,r,i){Ys(t,r,i),Ys(e,2*r,2*i),Ys(e,2*r+1,2*i+1)}function Ys(t,e,r){let i=t[e];t[e]=t[r],t[r]=i}function _c(t,e,r,i){let n=t-r,a=e-i;return n*n+a*a}var tl={minZoom:0,maxZoom:16,minPoints:2,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:t=>t},V2=class{constructor(t){this.options=Object.assign(Object.create(tl),t),this.trees=Array(this.options.maxZoom+1),this.stride=this.options.reduce?7:6,this.clusterProps=[],this.points=[]}load(t){let e=[];for(let r of t){if(!r.geometry)continue;let[i,n]=r.geometry.coordinates,[a,s]=[Zr(i),Hr(n)],o={id:r.id,type:"Point",geometry:[a,s],tags:r.properties};e.push(o)}this.createIndex(e)}initialize(t){let e=[];for(let r of t)r.type==="Point"&&e.push(r);this.createIndex(e)}updateIndex(t,e,r){this.options=Object.assign(Object.create(tl),r.clusterOptions),this.initialize(t)}createIndex(t){let{log:e,minZoom:r,maxZoom:i}=this.options;e&&console.time("total time");let n=`prepare ${t.length} points`;e&&console.time(n),this.points=t;let a=[];for(let o=0;o=r;o--){let l=Date.now();s=this.trees[o]=this.createTree(this.cluster(s,o)),e&&console.log("z%d: %d clusters in %dms",o,s.numItems,Date.now()-l)}e&&console.timeEnd("total time")}getClusters(t,e){return this.getClustersInternal(t,e).map(r=>Ca(r))}getClustersInternal(t,e){let r=((t[0]+180)%360+360)%360-180,i=Math.max(-90,Math.min(90,t[1])),n=t[2]===180?180:((t[2]+180)%360+360)%360-180,a=Math.max(-90,Math.min(90,t[3]));if(t[2]-t[0]>=360)r=-180,n=180;else if(r>n){let h=this.getClustersInternal([r,i,180,a],e),c=this.getClustersInternal([-180,i,n,a],e);return h.concat(c)}let s=this.trees[this.limitZoom(e)],o=s.range(Zr(r),Hr(a),Zr(n),Hr(i)),l=s.flatData,u=[];for(let h of o){let c=this.stride*h;u.push(l[c+5]>1?O2(l,c,this.clusterProps):this.points[l[c+3]])}return u}getChildren(t){let e=this.getOriginId(t),r=this.getOriginZoom(t),i=Error("No cluster with the specified id: "+t),n=this.trees[r];if(!n)throw i;let a=n.flatData;if(e*this.stride>=a.length)throw i;let s=this.options.radius/(this.options.extent*2**(r-1)),o=a[e*this.stride],l=a[e*this.stride+1],u=n.within(o,l,s),h=[];for(let c of u){let p=c*this.stride;a[p+4]===t&&h.push(a[p+5]>1?R2(a,p,this.clusterProps):Ca(this.points[a[p+3]]))}if(h.length===0)throw i;return h}getLeaves(t,e,r){e||(e=10),r||(r=0);let i=[];return this.appendLeaves(i,t,e,r,0),i}getTile(t,e,r){let i=this.trees[this.limitZoom(t)];if(!i)return null;let n=2**t,{extent:a,radius:s}=this.options,o=s/a,l=(r-o)/n,u=(r+1+o)/n,h={transformed:!0,features:[],source:null,x:e,y:r,z:t};return this.addTileFeatures(i.range((e-o)/n,l,(e+1+o)/n,u),i.flatData,e,r,n,h),e===0&&this.addTileFeatures(i.range(1-o/n,l,1,u),i.flatData,n,r,n,h),e===n-1&&this.addTileFeatures(i.range(0,l,o/n,u),i.flatData,-1,r,n,h),h}getClusterExpansionZoom(t){return this.getOriginZoom(t)}appendLeaves(t,e,r,i,n){let a=this.getChildren(e);for(let s of a){let o=s.properties;if(o!=null&&o.cluster?n+o.point_count<=i?n+=o.point_count:n=this.appendLeaves(t,o.cluster_id,r,i,n):n1,u,h,c;if(l)u=iu(e,o,this.clusterProps),h=e[o],c=e[o+1];else{let d=this.points[e[o+3]];u=d.tags,[h,c]=d.geometry}let p={type:1,geometry:[[Math.round(this.options.extent*(h*n-r)),Math.round(this.options.extent*(c*n-i))]],tags:u},f;f=l||this.options.generateId?e[o+3]:this.points[e[o+3]].id,f!==void 0&&(p.id=f),a.features.push(p)}}limitZoom(t){return Math.max(this.options.minZoom,Math.min(Math.floor(+t),this.options.maxZoom+1))}cluster(t,e){let{radius:r,extent:i,reduce:n,minPoints:a}=this.options,s=r/(i*2**e),o=t.flatData,l=[],u=this.stride;for(let h=0;he&&(y+=o[g+5])}if(y>d&&y>=a){let m=c*d,g=p*d,x,v=-1,b=((h/u|0)<<5)+(e+1)+this.points.length;for(let w of f){let _=w*u;if(o[_+2]<=e)continue;o[_+2]=e;let A=o[_+5];m+=o[_]*A,g+=o[_+1]*A,o[_+4]=b,n&&(x||(x=this.map(o,h,!0),v=this.clusterProps.length,this.clusterProps.push(x)),n(x,this.map(o,_)))}o[h+4]=b,l.push(m/y,g/y,1/0,b,-1,y),n&&l.push(v)}else{for(let m=0;m1)for(let m of f){let g=m*u;if(!(o[g+2]<=e)){o[g+2]=e;for(let x=0;x>5}getOriginZoom(t){return(t-this.points.length)%32}map(t,e,r){if(t[e+5]>1){let a=this.clusterProps[t[e+6]];return r?Object.assign({},a):a}let i=this.points[t[e+3]].tags,n=this.options.map(i);return r&&n===i?Object.assign({},n):n}};function O2(t,e,r){return{id:t[e+3],type:"Point",tags:iu(t,e,r),geometry:[t[e],t[e+1]]}}function R2(t,e,r){return{type:"Feature",id:t[e+3],properties:iu(t,e,r),geometry:{type:"Point",coordinates:[qd(t[e]),jd(t[e+1])]}}}function iu(t,e,r){let i=t[e+5],n=i>=1e4?`${Math.round(i/1e3)}k`:i>=1e3?`${Math.round(i/100)/10}k`:i,a=t[e+6],s=a===-1?{}:Object.assign({},r[a]);return Object.assign(s,{cluster:!0,cluster_id:t[e+3],point_count:i,point_count_abbreviated:n})}var Wd="geojsonvt_clip_start",Zd="geojsonvt_clip_end";function Ac(t,e,r,i,n){let a=e===n.maxZoom?0:n.tolerance/((1<0&&e.size<(n?s:i)){r.numPoints+=e.points.length/3;return}let o=[];for(let l=0;ls)&&(r.numSimplified++,o.push(e.points[l],e.points[l+1])),r.numPoints++;n&&G2(o,a),t.push(o)}function G2(t,e){let r=0;for(let i=0,n=t.length,a=n-2;i0===e)for(let i=0,n=t.length;i1&&(console.log("invalidating tiles"),console.time("invalidating")),this.invalidateTiles(e),r.debug>1&&console.timeEnd("invalidating");let[i,n,a]=[0,0,0],s=Ac(t,i,n,a,r);s.source=t;let o=ra(i,n,a);if(this.tiles[o]=s,this.tileCoords.push({z:i,x:n,y:a,id:o}),r.debug){let l=`z${i}`;this.stats[l]=(this.stats[l]||0)+1,this.total++}}getClusterExpansionZoom(t){return null}getChildren(t){return null}getLeaves(t,e,r){return null}getTile(t,e,r){let{extent:i,debug:n}=this.options,a=1<1&&console.log("drilling down to z%d-%d-%d",t,e,r);let o=t,l=e,u=r,h;for(;!h&&o>0;)o--,l>>=1,u>>=1,h=this.tiles[ra(o,l,u)];return!(h!=null&&h.source)||(n>1&&(console.log("found parent tile z%d-%d-%d",o,l,u),console.time("drilling down")),this.splitTile(h.source,o,l,u,t,e,r),n>1&&console.timeEnd("drilling down"),!this.tiles[s])?null:Sc(this.tiles[s],i)}splitTile(t,e,r,i,n,a,s){let o=[t,e,r,i],l=this.options,u=l.debug;for(;o.length;){i=o.pop(),r=o.pop(),e=o.pop(),t=o.pop();let h=1<1&&console.time("creation"),p=this.tiles[c]=Ac(t,e,r,i,l),this.tileCoords.push({z:e,x:r,y:i,id:c}),u)){u>1&&(console.log("tile z%d-%d-%d (features: %d, points: %d, simplified: %d)",e,r,i,p.numFeatures,p.numPoints,p.numSimplified),console.timeEnd("creation"));let A=`z${e}`;this.stats[A]=(this.stats[A]||0)+1,this.total++}if(p.source=t,n==null){if(e===l.indexMaxZoom||p.numPoints<=l.indexMaxPoints)continue}else{if(e===l.maxZoom||e===n)continue;if(n!=null){let A=n-e;if(r!==a>>A||i!==s>>A)continue}}if(p.source=null,!t.length)continue;u>1&&console.time("clipping");let f=.5*l.buffer/l.extent,d=.5-f,y=.5+f,m=1+f,g=null,x=null,v=null,b=null,w=Me(t,h,r-f,r+y,0,p.minX,p.maxX,l),_=Me(t,h,r+d,r+m,0,p.minX,p.maxX,l);w&&(g=Me(w,h,i-f,i+y,1,p.minY,p.maxY,l),x=Me(w,h,i+d,i+m,1,p.minY,p.maxY,l)),_&&(v=Me(_,h,i-f,i+y,1,p.minY,p.maxY,l),b=Me(_,h,i+d,i+m,1,p.minY,p.maxY,l)),u>1&&console.timeEnd("clipping"),o.push(g||[],e+1,r*2,i*2),o.push(x||[],e+1,r*2,i*2+1),o.push(v||[],e+1,r*2+1,i*2),o.push(b||[],e+1,r*2+1,i*2+1)}}invalidateTiles(t){if(!t.length)return;let e=this.options,{debug:r}=e,i=1/0,n=-1/0,a=1/0,s=-1/0;for(let u of t)i=Math.min(i,u.minX),n=Math.max(n,u.maxX),a=Math.min(a,u.minY),s=Math.max(s,u.maxY);let o=e.buffer/e.extent,l=new Set;for(let u in this.tiles){let h=this.tiles[u],c=1<=f||s=y)continue;let m=!1;for(let g of t)if(g.maxX>=p&&g.minX=d&&g.minY1&&console.log("invalidate tile z%d-%d-%d (features: %d, points: %d, simplified: %d)",h.z,h.x,h.y,h.numFeatures,h.numPoints,h.numSimplified);let g=`z${h.z}`;this.stats[g]=(this.stats[g]||0)-1,this.total--}delete this.tiles[u],l.add(u)}}l.size&&(this.tileCoords=this.tileCoords.filter(u=>!l.has(u.id)))}};function ra(t,e,r){return((1<24)throw Error("maxZoom should be in the 0-24 range");if(e.promoteId&&e.generateId)throw Error("promoteId and generateId cannot be used together.");let i=Jl(t,e);r&&(console.timeEnd("preprocess data"),console.log("index: maxZoom: %d, maxPoints: %d",e.indexMaxZoom,e.indexMaxPoints),console.time("generate tiles")),i=ru(i,e),e.updateable&&(this.source=i),this.initializeIndex(i,e)}initializeIndex(t,e){this.tileIndex=e.cluster?new V2(e.clusterOptions):new W2(e),t.length&&this.tileIndex.initialize(t)}getTile(t,e,r){return t=+t,e=+e,r=+r,t<0||t>24?null:this.tileIndex.getTile(t,e,r)}updateData(t,e){let r=this.options;if(!r.updateable)throw Error("to update tile geojson `updateable` option must be set to true");let{affected:i,source:n}=B2(this.source,t,r);e&&({affected:i,source:n}=this.filterUpdate(n,i,e)),i.length&&(this.source=n,this.tileIndex.updateIndex(n,i,r))}filterUpdate(t,e,r){let i=new Set;for(let n of t)n.id!=null&&(r(Ca(n))||(e.push(n),i.add(n.id)));return t=t.filter(n=>!i.has(n.id)),{affected:e,source:t}}getData(){if(!this.options.updateable)throw Error("to retrieve data the `updateable` option must be set to true");return D2(this.source)}updateClusterOptions(t,e){let r=this.options.cluster;if(this.options.cluster=t,this.options.clusterOptions=e,r==t){this.tileIndex.updateIndex(this.source,[],this.options);return}this.initializeIndex(this.source,this.options)}getClusterExpansionZoom(t){return this.tileIndex.getClusterExpansionZoom(t)}getClusterChildren(t){return this.tileIndex.getChildren(t)}getClusterLeaves(t,e,r){return this.tileIndex.getLeaves(t,e,r)}},el=Et([{name:"a_pos_normal",components:2,type:"Int16"},{name:"a_data",components:4,type:"Uint8"}],4),H2=el.members;el.size,el.alignment;var rl=Et([{name:"a_uv_x",components:1,type:"Float32"},{name:"a_split_index",components:1,type:"Float32"}]),K2=rl.members;rl.size,rl.alignment;var J2=Math.cos(75/2*(Math.PI/180)),Jd=1/2,Ec=2**14/Jd,Qd=class{constructor(t){this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map(e=>e.id),this.index=t.index,this.hasDependencies=!1,this.patternFeatures=[],this.lineClipsArray=[],this.gradients={};for(let e of this.layers)this.gradients[e.id]={};this.layoutVertexArray=new vg,this.layoutVertexArray2=new bg,this.indexArray=new En,this.programConfigurations=new Dr(t.layers,t.zoom),this.segments=new ie,this.maxLineLength=0,this.stateDependentLayerIds=this.layers.filter(e=>e.isStateDependent()).map(e=>e.id)}populate(t,e,r){this.hasDependencies=Fa("line",this.layers,e)||this.hasLineDasharray(this.layers);let i=this.layers[0].layout.get("line-sort-key"),n=!i.isConstant(),a=[],s=new st(this.zoom),o=this.layers[0]._featureFilter.needGeometry;for(let{feature:l,id:u,index:h,sourceLayerIndex:c}of t){let p=hi(l,o);if(!this.layers[0]._featureFilter.filter(s,p,r))continue;let f=n?i.evaluate(p,{},r):void 0,d={id:u,properties:l.properties,type:l.type,sourceLayerIndex:c,index:h,geometry:o?p.geometry:Fr(l),patterns:{},dashes:{},sortKey:f};a.push(d)}n&&a.sort((l,u)=>l.sortKey-u.sortKey);for(let l of a){let{geometry:u,index:h,sourceLayerIndex:c}=l;this.hasDependencies?(Fa("line",this.layers,e)?Wl("line",this.layers,l,{zoom:this.zoom},e):this.hasLineDasharray(this.layers)&&this.addLineDashDependencies(this.layers,l,this.zoom,e),this.patternFeatures.push(l)):this.addFeature(l,u,h,r,{},{},e.subdivisionGranularity);let p=t[h].feature;e.featureIndex.insert(p,u,h,c,this.index)}}update(t,e,r,i){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(t,e,this.stateDependentLayers,{imagePositions:r,dashPositions:i})}addFeatures({options:t,canonical:e,patternPositions:r,dashPositions:i}){for(let n of this.patternFeatures)this.addFeature(n,n.geometry,n.index,e,r,i,t.subdivisionGranularity)}isEmpty(){return this.layoutVertexArray.length===0}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(t){this.uploaded||(this.layoutVertexArray2.length!==0&&(this.layoutVertexBuffer2=t.createVertexBuffer(this.layoutVertexArray2,K2)),this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,H2),this.indexBuffer=t.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(t),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())}lineFeatureClips(t){if(t.properties&&Object.hasOwn(t.properties,"geojsonvt_clip_start")&&Object.hasOwn(t.properties,"geojsonvt_clip_end"))return{start:+t.properties[Wd],end:+t.properties[Zd]}}addFeature(t,e,r,i,n,a,s){let o=this.layers[0].layout,l=o.get("line-join").evaluate(t,{}),u=o.get("line-cap").evaluate(t,{}),h=o.get("line-miter-limit").evaluate(t,{}),c=o.get("line-round-limit").evaluate(t,{});this.lineClips=this.lineFeatureClips(t);for(let p of e)this.addLine(p,t,l,u,h,c,i,s);this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,t,r,{imagePositions:n,dashPositions:a,canonical:i})}addLine(t,e,r,i,n,a,s,o){this.distance=0,this.scaledDistance=0,this.totalDistance=0;let l=s?o.line.getGranularityForZoomLevel(s.z):1;if(t=yr(t,l),this.lineClips){this.lineClipsArray.push(this.lineClips);for(let v=0;v=2&&t[h-1].equals(t[h-2]);)h--;let c=0;for(;c0;if(T&&v>c){let V=d.dist(y);if(V>2*p){let F=d.sub(d.sub(y)._mult(p/V)._round());this.updateDistance(y,F),this.addCurrentVertex(F,g,0,0,f),y=F}}let O=y&&m,B=O?r:u?"butt":i;if(O&&B==="round"&&(An&&(B="bevel"),B==="bevel"&&(A>2&&(B="flipbevel"),A100)b=x.mult(-1);else{let V=A*g.add(x).mag()/g.sub(x).mag();b._perp()._mult(V*(L?-1:1))}this.addCurrentVertex(d,b,0,0,f),this.addCurrentVertex(d,b.mult(-1),0,0,f)}else if(B==="bevel"||B==="fakeround"){let V=-Math.sqrt(A*A-1),F=L?V:0,$=L?0:V;if(y&&this.addCurrentVertex(d,g,F,$,f),B==="fakeround"){let G=Math.round(S*180/Math.PI/20);for(let P=1;P2*p){let F=d.add(m.sub(d)._mult(p/V)._round());this.updateDistance(d,F),this.addCurrentVertex(F,x,0,0,f),d=F}}}}addCurrentVertex(t,e,r,i,n,a=!1){let s=e.x+e.y*r,o=e.y-e.x*r,l=-e.x+e.y*i,u=-e.y-e.x*i;this.addHalfVertex(t,s,o,a,!1,r,n),this.addHalfVertex(t,l,u,a,!0,-i,n),this.distance>Ec/2&&this.totalDistance===0&&(this.distance=0,this.updateScaledDistance(),this.addCurrentVertex(t,e,r,i,n,a))}addHalfVertex({x:t,y:e},r,i,n,a,s,o){let l=(this.lineClips?this.scaledDistance*(Ec-1):this.scaledDistance)*Jd;if(this.layoutVertexArray.emplaceBack((t<<1)+ +!!n,(e<<1)+ +!!a,Math.round(63*r)+128,Math.round(63*i)+128,(s===0?0:s<0?-1:1)+1|(l&63)<<2,l>>6),this.lineClips){let h=(this.scaledDistance-this.lineClips.start)/(this.lineClips.end-this.lineClips.start);this.layoutVertexArray2.emplaceBack(h,this.lineClipsArray.length)}let u=o.vertexLength++;this.e1>=0&&this.e2>=0&&(this.indexArray.emplaceBack(this.e1,u,this.e2),o.primitiveLength++),a?this.e2=u:this.e1=u}updateScaledDistance(){this.scaledDistance=this.lineClips?this.lineClips.start+(this.lineClips.end-this.lineClips.start)*this.distance/this.totalDistance:this.distance}updateDistance(t,e){this.distance+=t.dist(e),this.updateScaledDistance()}hasLineDasharray(t){for(let e of t){let r=e.paint.get("line-dasharray");if(r&&!r.isConstant())return!0}return!1}addLineDashDependencies(t,e,r,i){for(let n of t){let a=n.paint.get("line-dasharray");if(!a||a.value.kind==="constant")continue;let s=n.layout.get("line-cap").evaluate(e,{})==="round",o={dasharray:a.value.evaluate({zoom:r-1},e,{}),round:s},l={dasharray:a.value.evaluate({zoom:r},e,{}),round:s},u={dasharray:a.value.evaluate({zoom:r+1},e,{}),round:s},h=`${o.dasharray.join(",")},${o.round}`,c=`${l.dasharray.join(",")},${l.round}`,p=`${u.dasharray.join(",")},${u.round}`;i.dashDependencies[h]=o,i.dashDependencies[c]=l,i.dashDependencies[p]=u,e.dashes[n.id]={min:h,mid:c,max:p}}}};C("LineBucket",Qd,{omit:["layers","patternFeatures"]});var Fc,Q2=()=>Fc||(Fc=new Yt({"line-cap":new U(D.layout_line["line-cap"],"line-cap"),"line-join":new U(D.layout_line["line-join"],"line-join"),"line-miter-limit":new U(D.layout_line["line-miter-limit"],"line-miter-limit"),"line-round-limit":new U(D.layout_line["line-round-limit"],"line-round-limit"),"line-sort-key":new U(D.layout_line["line-sort-key"],"line-sort-key")})),Tc,tv=()=>Tc||(Tc=new Yt({"line-opacity":new U(D.paint_line["line-opacity"],"line-opacity"),"line-layer-opacity":new R(D.paint_line["line-layer-opacity"],"line-layer-opacity"),"line-color":new U(D.paint_line["line-color"],"line-color"),"line-translate":new R(D.paint_line["line-translate"],"line-translate"),"line-translate-anchor":new R(D.paint_line["line-translate-anchor"],"line-translate-anchor"),"line-width":new U(D.paint_line["line-width"],"line-width"),"line-gap-width":new U(D.paint_line["line-gap-width"],"line-gap-width"),"line-offset":new U(D.paint_line["line-offset"],"line-offset"),"line-blur":new U(D.paint_line["line-blur"],"line-blur"),"line-dasharray":new cn(D.paint_line["line-dasharray"],"line-dasharray"),"line-pattern":new cn(D.paint_line["line-pattern"],"line-pattern"),"line-gradient":new Za(D.paint_line["line-gradient"],"line-gradient")})),kc={get paint(){return tv()},get layout(){return Q2()}},ev=class extends U{possiblyEvaluate(t,e){return e=new st(Math.floor(e.zoom),{now:e.now,fadeDuration:e.fadeDuration,zoomHistory:e.zoomHistory,transition:e.transition}),super.possiblyEvaluate(t,e)}evaluate(t,e,r,i){return e=Xt({},e,{zoom:Math.floor(e.zoom)}),super.evaluate(t,e,r,i)}},ia;var rv=class extends ye{constructor(t,e){super(t,kc,e),this.gradientVersion=0,ia||(ia=new ev(kc.paint.properties["line-width"].specification,"line-floorwidth"),ia.useIntegerZoom=!0)}_handleSpecialPaintPropertyUpdate(t){if(t==="line-gradient"){let e=this.gradientExpression();this.stepInterpolant=Im(e)?e._styleExpression.expression instanceof Dl:!1,this.gradientVersion=(this.gradientVersion+1)%(2**53-1)}}gradientExpression(){return this._transitionablePaint._values["line-gradient"].value.expression}recalculate(t,e){super.recalculate(t,e),this.paint._values["line-floorwidth"]=ia.possiblyEvaluate(this._transitioningPaint._values["line-width"].value,t)}createBucket(t){return new Qd(t)}queryRadius(t){let e=t,r=Ic(Wr("line-width",this,e),Wr("line-gap-width",this,e)),i=Wr("line-offset",this,e);return r/2+Math.abs(i)+Ka(this.paint.get("line-translate"))}queryIntersectsFeature({queryGeometry:t,feature:e,featureState:r,geometry:i,transform:n,pixelsToTileUnits:a}){let s=Ja(t,this.paint.get("line-translate"),this.paint.get("line-translate-anchor"),-n.bearingInRadians,a),o=a/2*Ic(this.paint.get("line-width").evaluate(e,r),this.paint.get("line-gap-width").evaluate(e,r)),l=this.paint.get("line-offset").evaluate(e,r);return l&&(i=Ug(i,l*a)),Lg(s,i,o)}isTileClipped(){return!0}};function Ic(t,e){return e>0?e+2*t:t}var iv=Et([{name:"a_pos_offset",components:4,type:"Int16"},{name:"a_data",components:4,type:"Uint16"},{name:"a_pixeloffset",components:4,type:"Int16"},{name:"a_height_offset",components:1,type:"Float32"}],4),nv=Et([{name:"a_projected_pos",components:3,type:"Float32"}],4);Et([{name:"a_fade_opacity",components:1,type:"Uint32"}],4);var av=Et([{name:"a_placed",components:2,type:"Uint8"},{name:"a_shift",components:2,type:"Float32"},{name:"a_box_real",components:2,type:"Int16"}]);Et([{type:"Int16",name:"anchorPointX"},{type:"Int16",name:"anchorPointY"},{type:"Int16",name:"x1"},{type:"Int16",name:"y1"},{type:"Int16",name:"x2"},{type:"Int16",name:"y2"},{type:"Uint32",name:"featureIndex"},{type:"Uint16",name:"sourceLayerIndex"},{type:"Uint16",name:"bucketIndex"}]);var Cc=Et([{name:"a_pos",components:2,type:"Int16"},{name:"a_anchor_pos",components:2,type:"Int16"},{name:"a_extrude",components:2,type:"Int16"}],4),S5=Et([{name:"a_pos",components:2,type:"Float32"},{name:"a_radius",components:1,type:"Float32"},{name:"a_flags",components:2,type:"Int16"}],4);Et([{name:"triangle",components:3,type:"Uint16"}]),Et([{type:"Int16",name:"anchorX"},{type:"Int16",name:"anchorY"},{type:"Uint16",name:"glyphStartIndex"},{type:"Uint16",name:"numGlyphs"},{type:"Uint32",name:"vertexStartIndex"},{type:"Uint32",name:"lineStartIndex"},{type:"Uint32",name:"lineLength"},{type:"Uint16",name:"segment"},{type:"Uint16",name:"lowerSize"},{type:"Uint16",name:"upperSize"},{type:"Float32",name:"lineOffsetX"},{type:"Float32",name:"lineOffsetY"},{type:"Uint8",name:"writingMode"},{type:"Uint8",name:"placedOrientation"},{type:"Uint8",name:"hidden"},{type:"Uint32",name:"crossTileID"},{type:"Int16",name:"associatedIconIndex"},{type:"Float32",name:"heightOffset"}]),Et([{type:"Int16",name:"anchorX"},{type:"Int16",name:"anchorY"},{type:"Int16",name:"rightJustifiedTextSymbolIndex"},{type:"Int16",name:"centerJustifiedTextSymbolIndex"},{type:"Int16",name:"leftJustifiedTextSymbolIndex"},{type:"Int16",name:"verticalPlacedTextSymbolIndex"},{type:"Int16",name:"placedIconSymbolIndex"},{type:"Int16",name:"verticalPlacedIconSymbolIndex"},{type:"Uint16",name:"key"},{type:"Uint16",name:"textBoxStartIndex"},{type:"Uint16",name:"textBoxEndIndex"},{type:"Uint16",name:"verticalTextBoxStartIndex"},{type:"Uint16",name:"verticalTextBoxEndIndex"},{type:"Uint16",name:"iconBoxStartIndex"},{type:"Uint16",name:"iconBoxEndIndex"},{type:"Uint16",name:"verticalIconBoxStartIndex"},{type:"Uint16",name:"verticalIconBoxEndIndex"},{type:"Uint16",name:"featureIndex"},{type:"Uint16",name:"numHorizontalGlyphVertices"},{type:"Uint16",name:"numVerticalGlyphVertices"},{type:"Uint16",name:"numIconVertices"},{type:"Uint16",name:"numVerticalIconVertices"},{type:"Uint16",name:"useRuntimeCollisionCircles"},{type:"Uint32",name:"crossTileID"},{type:"Float32",name:"textBoxScale"},{type:"Float32",name:"collisionCircleDiameter"},{type:"Uint16",name:"textAnchorOffsetStartIndex"},{type:"Uint16",name:"textAnchorOffsetEndIndex"},{type:"Float32",name:"heightOffset"}]),Et([{type:"Float32",name:"offsetX"}]),Et([{type:"Int16",name:"x"},{type:"Int16",name:"y"},{type:"Int16",name:"tileUnitDistanceFromAnchor"}]),Et([{type:"Uint16",name:"textAnchor"},{type:"Float32",components:2,name:"textOffset"}]);var Ar=new class{constructor(){this.TIMEOUT=5e3,this.applyArabicShaping=null,this.processBidirectionalText=null,this.processStyledBidirectionalText=null,this.pluginStatus="unavailable",this.pluginURL=null,this.loadScriptResolve=()=>{}}setState(t){this.pluginStatus=t.pluginStatus,this.pluginURL=t.pluginURL}getState(){return{pluginStatus:this.pluginStatus,pluginURL:this.pluginURL}}setMethods(t){if(Ar.isParsed())throw Error("RTL text plugin already registered.");this.applyArabicShaping=t.applyArabicShaping,this.processBidirectionalText=t.processBidirectionalText,this.processStyledBidirectionalText=t.processStyledBidirectionalText,this.loadScriptResolve()}isParsed(){return this.applyArabicShaping!=null&&this.processBidirectionalText!=null&&this.processStyledBidirectionalText!=null}getRTLTextPluginStatus(){return this.pluginStatus}syncState(t,e){return et(this,null,function*(){if(this.isParsed())return this.getState();if(t.pluginStatus!=="loading")return this.setState(t),t;let r=t.pluginURL,i=new Promise(a=>{this.loadScriptResolve=a}),n=new Promise(a=>setTimeout(()=>a(),this.TIMEOUT));if(yield e(r),yield Promise.race([i,n]),this.isParsed()){let a={pluginStatus:"loaded",pluginURL:r};return this.setState(a),a}throw this.setState({pluginStatus:"error",pluginURL:""}),Error(`RTL Text Plugin failed to import scripts from ${r}`)})}};function sv(t){return/[\\u0600-\\u0604\\u0606-\\u060B\\u060D-\\u061A\\u061C-\\u061E\\u0620-\\u063F\\u0641-\\u064A\\u0656-\\u066F\\u0671-\\u06DC\\u06DE-\\u070D\\u070F-\\u074A\\u074D-\\u077F\\u07C0-\\u07FA\\u07FD-\\u07FF\\u0840-\\u085B\\u085E\\u0860-\\u086A\\u0870-\\u0891\\u0897-\\u08E1\\u08E3-\\u08FF\\u1800\\u1801\\u1804\\u1806-\\u1819\\u1820-\\u1878\\u1880-\\u18AA\\uA840-\\uA877\\uFB50-\\uFD3D\\uFD40-\\uFDCF\\uFDF0-\\uFDFF\\uFE70-\\uFE74\\uFE76-\\uFEFC]|\\uD802[\\uDEC0-\\uDEE6\\uDEEB-\\uDEF6\\uDF80-\\uDF91\\uDF99-\\uDF9C\\uDFA9-\\uDFAF]|\\uD803[\\uDD00-\\uDD27\\uDD30-\\uDD39\\uDE60-\\uDE7E\\uDEC2-\\uDEC7\\uDED0-\\uDED8\\uDEFA-\\uDEFF\\uDF30-\\uDF59\\uDF70-\\uDF89\\uDFB0-\\uDFCB]|\\uD805[\\uDE60-\\uDE6C]|\\uD82F[\\uDC00-\\uDC6A\\uDC70-\\uDC7C\\uDC80-\\uDC88\\uDC90-\\uDC99\\uDC9C-\\uDC9F]|\\uD83A[\\uDD00-\\uDD4B\\uDD50-\\uDD59\\uDD5E\\uDD5F]|\\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\\uDEF0\\uDEF1]/gim.test(String.fromCodePoint(t))}function ov(t){return/[\\u0591-\\u05C7\\u05D0-\\u05EA\\u05EF-\\u05F4\\u0600-\\u0604\\u0606-\\u060B\\u060D-\\u061A\\u061C-\\u061E\\u0620-\\u063F\\u0641-\\u064A\\u0656-\\u066F\\u0671-\\u06DC\\u06DE-\\u070D\\u070F-\\u074A\\u074D-\\u07B1\\u07C0-\\u07FA\\u07FD-\\u082D\\u0830-\\u083E\\u0840-\\u085B\\u085E\\u0860-\\u086A\\u0870-\\u0891\\u0897-\\u08E1\\u08E3-\\u08FF\\uFB1D-\\uFB36\\uFB38-\\uFB3C\\uFB3E\\uFB40\\uFB41\\uFB43\\uFB44\\uFB46-\\uFD3D\\uFD40-\\uFDCF\\uFDF0-\\uFDFF\\uFE70-\\uFE74\\uFE76-\\uFEFC]|\\uD802[\\uDC00-\\uDC05\\uDC08\\uDC0A-\\uDC35\\uDC37\\uDC38\\uDC3C\\uDC3F-\\uDC55\\uDC57-\\uDC9E\\uDCA7-\\uDCAF\\uDCE0-\\uDCF2\\uDCF4\\uDCF5\\uDCFB-\\uDD1B\\uDD1F-\\uDD39\\uDD3F-\\uDD59\\uDD80-\\uDDB7\\uDDBC-\\uDDCF\\uDDD2-\\uDE03\\uDE05\\uDE06\\uDE0C-\\uDE13\\uDE15-\\uDE17\\uDE19-\\uDE35\\uDE38-\\uDE3A\\uDE3F-\\uDE48\\uDE50-\\uDE58\\uDE60-\\uDE9F\\uDEC0-\\uDEE6\\uDEEB-\\uDEF6\\uDF00-\\uDF35\\uDF39-\\uDF55\\uDF58-\\uDF72\\uDF78-\\uDF91\\uDF99-\\uDF9C\\uDFA9-\\uDFAF]|\\uD803[\\uDC00-\\uDC48\\uDC80-\\uDCB2\\uDCC0-\\uDCF2\\uDCFA-\\uDD27\\uDD30-\\uDD39\\uDD40-\\uDD65\\uDD69-\\uDD85\\uDD8E\\uDD8F\\uDE60-\\uDE7E\\uDE80-\\uDEA9\\uDEAB-\\uDEAD\\uDEB0\\uDEB1\\uDEC2-\\uDEC7\\uDED0-\\uDED8\\uDEFA-\\uDF27\\uDF30-\\uDF59\\uDF70-\\uDF89\\uDFB0-\\uDFCB\\uDFE0-\\uDFF6]|\\uD83A[\\uDC00-\\uDCC4\\uDCC7-\\uDCD6\\uDD00-\\uDD4B\\uDD50-\\uDD59\\uDD5E\\uDD5F]|\\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\\uDEF0\\uDEF1]/gim.test(String.fromCodePoint(t))}function lv(t){return/[\\u02EA\\u02EB\\u2E80-\\u2FDF\\u2FF0-\\u303F\\u3041-\\u3096\\u309D-\\u309F\\u30A1-\\u30FA\\u30FD-\\u30FF\\u3105-\\u312F\\u31A0-\\u4DBF\\u4E00-\\uA48C\\uA490-\\uA4C6\\uF900-\\uFA6D\\uFA70-\\uFAD9\\uFE10-\\uFE1F\\uFE30-\\uFE4F\\uFF00-\\uFFEF]|\\uD81B[\\uDFE0-\\uDFFF]|[\\uD81C-\\uD822\\uD840-\\uD868\\uD86A-\\uD86D\\uD86F-\\uD872\\uD874-\\uD879\\uD880-\\uD883\\uD885-\\uD88C][\\uDC00-\\uDFFF]|\\uD823[\\uDC00-\\uDCD5\\uDCFF-\\uDD1E\\uDD80-\\uDDF2]|\\uD82B[\\uDFF0-\\uDFFF]|\\uD82C[\\uDC00-\\uDEFB]|\\uD83C[\\uDE00-\\uDEFF]|\\uD869[\\uDC00-\\uDEDF\\uDF00-\\uDFFF]|\\uD86E[\\uDC00-\\uDC1D\\uDC20-\\uDFFF]|\\uD873[\\uDC00-\\uDEAD\\uDEB0-\\uDFFF]|\\uD87A[\\uDC00-\\uDFE0\\uDFF0-\\uDFFF]|\\uD87B[\\uDC00-\\uDE5D]|\\uD87E[\\uDC00-\\uDE1D]|\\uD884[\\uDC00-\\uDF4A\\uDF50-\\uDFFF]|\\uD88D[\\uDC00-\\uDC79]/gim.test(String.fromCodePoint(t))}function ts(t){return/[\\u02EA\\u02EB\\u1100-\\u11FF\\u1401-\\u167F\\u18B0-\\u18FF\\u2065\\u20DD-\\u20E0\\u20E2-\\u20E4\\u2B97\\u2BF0-\\u2BFF\\u2E50\\u2E51\\u2E80-\\u3007\\u3012\\u3013\\u3020-\\u302F\\u3031-\\u30FB\\u30FD-\\uA4CF\\uA960-\\uA97F\\uAC00-\\uD7FF\\uF900-\\uFAFF\\uFE10-\\uFE1F\\uFE30-\\uFE48\\uFE50-\\uFE57\\uFE5F-\\uFE62\\uFE67-\\uFE6F\\uFF00-\\uFF07\\uFF0A-\\uFF0C\\uFF0E-\\uFF19\\uFF1F-\\uFF3A\\uFF3C\\uFF3E\\uFF40-\\uFF5A\\uFFE0-\\uFFE2\\uFFE4-\\uFFE7\\uFFF0-\\uFFF8]|\\uD802[\\uDD80-\\uDD9F]|\\uD805[\\uDD80-\\uDDFF]|\\uD806[\\uDE00-\\uDEBF]|[\\uD80C-\\uD810\\uD81C-\\uD822\\uD83C\\uD83D\\uD840-\\uD87E\\uD880-\\uD8BE][\\uDC00-\\uDFFF]|\\uD811[\\uDC00-\\uDE7F]|\\uD81B[\\uDFE0-\\uDFFF]|\\uD823[\\uDC00-\\uDDFF]|\\uD82B[\\uDFF0-\\uDFFF]|\\uD82C[\\uDC00-\\uDEFF]|\\uD833[\\uDEC0-\\uDFCF]|\\uD834[\\uDC00-\\uDDFF\\uDEE0-\\uDF7F]|\\uD836[\\uDC00-\\uDEAF]|\\uD83E[\\uDD00-\\uDEFF]|[\\uD87F\\uD8BF][\\uDC00-\\uDFFD]/gim.test(String.fromCodePoint(t))}function uv(t){return/[\\xA7\\xA9\\xAE\\xB1\\xBC-\\xBE\\xD7\\xF7\\u2016\\u2020\\u2021\\u2030\\u2031\\u203B\\u203C\\u2042\\u2047-\\u2049\\u2051\\u2100-\\u218F\\u221E\\u2234\\u2235\\u2300-\\u2307\\u230C-\\u231F\\u2324-\\u2328\\u232B\\u237D-\\u239A\\u23BE-\\u23CD\\u23CF\\u23D1-\\u23DB\\u23E2-\\u2422\\u2424-\\u24FF\\u25A0-\\u2619\\u2620-\\u2767\\u2776-\\u2793\\u2B12-\\u2B2F\\u2B50-\\u2B59\\u2BB8-\\u2BEB\\u3000-\\u303F\\u30A0-\\u30FF\\uE000-\\uF8FF\\uFE30-\\uFE6F\\uFF00-\\uFFEF\\uFFFC\\uFFFD]|[\\uDB80-\\uDBFF][\\uDC00-\\uDFFF]/gim.test(String.fromCodePoint(t))}function hv(t){return/[\\r\\u0300-\\u036F\\u0483-\\u0489\\u0591-\\u05BD\\u05BF\\u05C1\\u05C2\\u05C4\\u05C5\\u05C7\\u0600-\\u0605\\u0610-\\u061A\\u064B-\\u065F\\u0670\\u06D6-\\u06DD\\u06DF-\\u06E4\\u06E7\\u06E8\\u06EA-\\u06ED\\u070F\\u0711\\u0730-\\u074A\\u07A6-\\u07B0\\u07EB-\\u07F3\\u07FD\\u0816-\\u0819\\u081B-\\u0823\\u0825-\\u0827\\u0829-\\u082D\\u0859-\\u085B\\u0890\\u0891\\u0897-\\u089F\\u08CA-\\u0903\\u093A-\\u093C\\u093E-\\u094F\\u0951-\\u0957\\u0962\\u0963\\u0981-\\u0983\\u09BC\\u09BE-\\u09C4\\u09C7\\u09C8\\u09CB-\\u09CD\\u09D7\\u09E2\\u09E3\\u09FE\\u0A01-\\u0A03\\u0A3C\\u0A3E-\\u0A42\\u0A47\\u0A48\\u0A4B-\\u0A4D\\u0A51\\u0A70\\u0A71\\u0A75\\u0A81-\\u0A83\\u0ABC\\u0ABE-\\u0AC5\\u0AC7-\\u0AC9\\u0ACB-\\u0ACD\\u0AE2\\u0AE3\\u0AFA-\\u0AFF\\u0B01-\\u0B03\\u0B3C\\u0B3E-\\u0B44\\u0B47\\u0B48\\u0B4B-\\u0B4D\\u0B55-\\u0B57\\u0B62\\u0B63\\u0B82\\u0BBE-\\u0BC2\\u0BC6-\\u0BC8\\u0BCA-\\u0BCD\\u0BD7\\u0C00-\\u0C04\\u0C3C\\u0C3E-\\u0C44\\u0C46-\\u0C48\\u0C4A-\\u0C4D\\u0C55\\u0C56\\u0C62\\u0C63\\u0C81-\\u0C83\\u0CBC\\u0CBE-\\u0CC4\\u0CC6-\\u0CC8\\u0CCA-\\u0CCD\\u0CD5\\u0CD6\\u0CE2\\u0CE3\\u0CF3\\u0D00-\\u0D03\\u0D3B\\u0D3C\\u0D3E-\\u0D44\\u0D46-\\u0D48\\u0D4A-\\u0D4E\\u0D57\\u0D62\\u0D63\\u0D81-\\u0D83\\u0DCA\\u0DCF-\\u0DD4\\u0DD6\\u0DD8-\\u0DDF\\u0DF2\\u0DF3\\u0E31\\u0E33-\\u0E3A\\u0E47-\\u0E4E\\u0EB1\\u0EB3-\\u0EBC\\u0EC8-\\u0ECE\\u0F18\\u0F19\\u0F35\\u0F37\\u0F39\\u0F3E\\u0F3F\\u0F71-\\u0F84\\u0F86\\u0F87\\u0F8D-\\u0F97\\u0F99-\\u0FBC\\u0FC6\\u102D-\\u1037\\u1039-\\u103E\\u1056-\\u1059\\u105E-\\u1060\\u1071-\\u1074\\u1082\\u1084-\\u1086\\u108D\\u109D\\u1100-\\u11FF\\u135D-\\u135F\\u1712-\\u1715\\u1732-\\u1734\\u1752\\u1753\\u1772\\u1773\\u17B4-\\u17D3\\u17DD\\u180B-\\u180D\\u180F\\u1885\\u1886\\u18A9\\u1920-\\u192B\\u1930-\\u193B\\u1A17-\\u1A1B\\u1A55-\\u1A5E\\u1A60\\u1A62\\u1A65-\\u1A7C\\u1A7F\\u1AB0-\\u1ADD\\u1AE0-\\u1AEB\\u1B00-\\u1B04\\u1B34-\\u1B44\\u1B6B-\\u1B73\\u1B80-\\u1B82\\u1BA1-\\u1BAD\\u1BE6-\\u1BF3\\u1C24-\\u1C37\\u1CD0-\\u1CD2\\u1CD4-\\u1CE8\\u1CED\\u1CF4\\u1CF7-\\u1CF9\\u1DC0-\\u1DFF\\u200C\\u200D\\u20D0-\\u20F0\\u2CEF-\\u2CF1\\u2D7F\\u2DE0-\\u2DFF\\u302A-\\u302F\\u3099\\u309A\\uA66F-\\uA672\\uA674-\\uA67D\\uA69E\\uA69F\\uA6F0\\uA6F1\\uA802\\uA806\\uA80B\\uA823-\\uA827\\uA82C\\uA880\\uA881\\uA8B4-\\uA8C5\\uA8E0-\\uA8F1\\uA8FF\\uA926-\\uA92D\\uA947-\\uA953\\uA960-\\uA97C\\uA980-\\uA983\\uA9B3-\\uA9C0\\uA9E5\\uAA29-\\uAA36\\uAA43\\uAA4C\\uAA4D\\uAA7C\\uAAB0\\uAAB2-\\uAAB4\\uAAB7\\uAAB8\\uAABE\\uAABF\\uAAC1\\uAAEB-\\uAAEF\\uAAF5\\uAAF6\\uABE3-\\uABEA\\uABEC\\uABED\\uAC00-\\uD7A3\\uD7B0-\\uD7C6\\uD7CB-\\uD7FB\\uFB1E\\uFE00-\\uFE0F\\uFE20-\\uFE2F\\uFF9E\\uFF9F]|\\uD800[\\uDDFD\\uDEE0\\uDF76-\\uDF7A]|\\uD802[\\uDE01-\\uDE03\\uDE05\\uDE06\\uDE0C-\\uDE0F\\uDE38-\\uDE3A\\uDE3F\\uDEE5\\uDEE6]|\\uD803[\\uDD24-\\uDD27\\uDD69-\\uDD6D\\uDEAB\\uDEAC\\uDEFA-\\uDEFF\\uDF46-\\uDF50\\uDF82-\\uDF85]|\\uD804[\\uDC00-\\uDC02\\uDC38-\\uDC46\\uDC70\\uDC73\\uDC74\\uDC7F-\\uDC82\\uDCB0-\\uDCBA\\uDCBD\\uDCC2\\uDCCD\\uDD00-\\uDD02\\uDD27-\\uDD34\\uDD45\\uDD46\\uDD73\\uDD80-\\uDD82\\uDDB3-\\uDDC0\\uDDC2\\uDDC3\\uDDC9-\\uDDCC\\uDDCE\\uDDCF\\uDE2C-\\uDE37\\uDE3E\\uDE41\\uDEDF-\\uDEEA\\uDF00-\\uDF03\\uDF3B\\uDF3C\\uDF3E-\\uDF44\\uDF47\\uDF48\\uDF4B-\\uDF4D\\uDF57\\uDF62\\uDF63\\uDF66-\\uDF6C\\uDF70-\\uDF74\\uDFB8-\\uDFC0\\uDFC2\\uDFC5\\uDFC7-\\uDFCA\\uDFCC-\\uDFD2\\uDFE1\\uDFE2]|\\uD805[\\uDC35-\\uDC46\\uDC5E\\uDCB0-\\uDCC3\\uDDAF-\\uDDB5\\uDDB8-\\uDDC0\\uDDDC\\uDDDD\\uDE30-\\uDE40\\uDEAB-\\uDEB7\\uDF1D-\\uDF1F\\uDF22-\\uDF2B]|\\uD806[\\uDC2C-\\uDC3A\\uDD30-\\uDD35\\uDD37\\uDD38\\uDD3B-\\uDD43\\uDDD1-\\uDDD7\\uDDDA-\\uDDE0\\uDDE4\\uDE01-\\uDE0A\\uDE33-\\uDE39\\uDE3B-\\uDE3E\\uDE47\\uDE51-\\uDE5B\\uDE84-\\uDE99\\uDF60-\\uDF67]|\\uD807[\\uDC2F-\\uDC36\\uDC38-\\uDC3F\\uDC92-\\uDCA7\\uDCA9-\\uDCB6\\uDD31-\\uDD36\\uDD3A\\uDD3C\\uDD3D\\uDD3F-\\uDD47\\uDD8A-\\uDD8E\\uDD90\\uDD91\\uDD93-\\uDD97\\uDEF3-\\uDEF6\\uDF00-\\uDF03\\uDF34-\\uDF3A\\uDF3E-\\uDF42\\uDF5A]|\\uD80D[\\uDC40\\uDC47-\\uDC55]|\\uD818[\\uDD1E-\\uDD2F]|\\uD81A[\\uDEF0-\\uDEF4\\uDF30-\\uDF36]|\\uD81B[\\uDD63\\uDD67-\\uDD6A\\uDF4F\\uDF51-\\uDF87\\uDF8F-\\uDF92\\uDFE4\\uDFF0\\uDFF1]|\\uD82F[\\uDC9D\\uDC9E]|\\uD833[\\uDF00-\\uDF2D\\uDF30-\\uDF46]|\\uD834[\\uDD65-\\uDD69\\uDD6D-\\uDD72\\uDD7B-\\uDD82\\uDD85-\\uDD8B\\uDDAA-\\uDDAD\\uDE42-\\uDE44]|\\uD836[\\uDE00-\\uDE36\\uDE3B-\\uDE6C\\uDE75\\uDE84\\uDE9B-\\uDE9F\\uDEA1-\\uDEAF]|\\uD838[\\uDC00-\\uDC06\\uDC08-\\uDC18\\uDC1B-\\uDC21\\uDC23\\uDC24\\uDC26-\\uDC2A\\uDC8F\\uDD30-\\uDD36\\uDEAE\\uDEEC-\\uDEEF]|\\uD839[\\uDCEC-\\uDCEF\\uDDEE\\uDDEF\\uDEE3\\uDEE6\\uDEEE\\uDEEF\\uDEF5]|\\uD83A[\\uDCD0-\\uDCD6\\uDD44-\\uDD4A]|\\uD83C[\\uDDE6-\\uDDFF\\uDFFB-\\uDFFF]|\\uDB40[\\uDC20-\\uDC7F\\uDD00-\\uDDEF]/.test(t)}function Mc(t){return/[\\u0E01-\\u0E3A\\u0E40-\\u0E4E\\u0E81\\u0E82\\u0E84\\u0E86-\\u0E8A\\u0E8C-\\u0EA3\\u0EA5\\u0EA7-\\u0EBD\\u0EC0-\\u0EC4\\u0EC6\\u0EC8-\\u0ECE\\u0EDC-\\u0EDF\\u0F00-\\u0F47\\u0F49-\\u0F6C\\u0F71-\\u0F97\\u0F99-\\u0FBC\\u0FBE-\\u0FCC\\u0FCE-\\u0FD4\\u0FD9\\u0FDA\\u1000-\\u103F\\u1050-\\u108F\\u109A-\\u109F\\u1780-\\u17D3\\u17D7\\u17DC\\u17DD\\u1950-\\u196D\\u1970-\\u1974\\u1980-\\u19AB\\u19B0-\\u19C9\\u19DE\\u19DF\\u1A20-\\u1A5E\\u1A60-\\u1A7C\\u1AA0-\\u1AAD\\u1B00-\\u1B4C\\u1B4E-\\u1B7F\\uA980-\\uA9CD\\uA9D0-\\uA9D9\\uA9DE-\\uA9EF\\uA9FA-\\uA9FE\\uAA60-\\uAAC2\\uAADB-\\uAADF]|\\uD805[\\uDF00-\\uDF1A\\uDF1D-\\uDF2B\\uDF3A\\uDF3B\\uDF3F-\\uDF46]/gim.test(String.fromCodePoint(t))}function cv(t,e){return/(?:[\\u1039\\u17D2\\u1A60\\u1BAB\\u200D\\uAAF6]|\\uD802\\uDE3F|\\uD804[\\uDD33\\uDFD0]|\\uD806[\\uDD3E\\uDE47\\uDE99]|\\uD807[\\uDD45\\uDD97\\uDF42])$/.test(t)||new RegExp("^\\\\p{gc=Mc}","u").test(e)}var pv={C:"18g,1;g2,3;4nb,1",D:"17k,1;5,1;1,1;1,5;4,d;1,7;1,2;z,2;8,g;i,12;1,2;9,1;1,1;1,2;14,3;2,1;28,9;3,f;2,4;1,1;2,3;2,6;7a,1;2,5;1,1;g,a;5,2;2,6;1,f",R:"17m,4;1,1;1,1;5,4;l,1;14,3;1,3;g,i;12,1;2,9;1,1;1,1;2,2;1,1;o,2;2x,3;f,2;4,1;1,2;3,2;6u,j;b,1;r,3;1,1;2,2;6,1",T:"174,b;1,1;1a,l;g,1;2t,7;2,6;2,2;1,4;bt,9;16,o;1,t;1clb,1"},fv={1569:[65152,0,0,0],1570:[65153,65154,0,0],1571:[65155,65156,0,0],1572:[65157,65158,0,0],1573:[65159,65160,0,0],1574:[65161,65162,65163,65164],1575:[65165,65166,0,0],1576:[65167,65168,65169,65170],1577:[65171,65172,0,0],1578:[65173,65174,65175,65176],1579:[65177,65178,65179,65180],1580:[65181,65182,65183,65184],1581:[65185,65186,65187,65188],1582:[65189,65190,65191,65192],1583:[65193,65194,0,0],1584:[65195,65196,0,0],1585:[65197,65198,0,0],1586:[65199,65200,0,0],1587:[65201,65202,65203,65204],1588:[65205,65206,65207,65208],1589:[65209,65210,65211,65212],1590:[65213,65214,65215,65216],1591:[65217,65218,65219,65220],1592:[65221,65222,65223,65224],1593:[65225,65226,65227,65228],1594:[65229,65230,65231,65232],1601:[65233,65234,65235,65236],1602:[65237,65238,65239,65240],1603:[65241,65242,65243,65244],1604:[65245,65246,65247,65248],1605:[65249,65250,65251,65252],1606:[65253,65254,65255,65256],1607:[65257,65258,65259,65260],1608:[65261,65262,0,0],1609:[65263,65264,64488,64489],1610:[65265,65266,65267,65268],1611:[65136,0,0,65137],1612:[65138,0,0,0],1613:[65140,0,0,0],1614:[65142,0,0,65143],1615:[65144,0,0,65145],1616:[65146,0,0,65147],1617:[65148,0,0,65149],1618:[65150,0,0,65151],1649:[64336,64337,0,0],1655:[64477,0,0,0],1657:[64358,64359,64360,64361],1658:[64350,64351,64352,64353],1659:[64338,64339,64340,64341],1662:[64342,64343,64344,64345],1663:[64354,64355,64356,64357],1664:[64346,64347,64348,64349],1667:[64374,64375,64376,64377],1668:[64370,64371,64372,64373],1670:[64378,64379,64380,64381],1671:[64382,64383,64384,64385],1672:[64392,64393,0,0],1676:[64388,64389,0,0],1677:[64386,64387,0,0],1678:[64390,64391,0,0],1681:[64396,64397,0,0],1688:[64394,64395,0,0],1700:[64362,64363,64364,64365],1702:[64366,64367,64368,64369],1705:[64398,64399,64400,64401],1709:[64467,64468,64469,64470],1711:[64402,64403,64404,64405],1713:[64410,64411,64412,64413],1715:[64406,64407,64408,64409],1722:[64414,64415,0,0],1723:[64416,64417,64418,64419],1726:[64426,64427,64428,64429],1728:[64420,64421,0,0],1729:[64422,64423,64424,64425],1733:[64480,64481,0,0],1734:[64473,64474,0,0],1735:[64471,64472,0,0],1736:[64475,64476,0,0],1737:[64482,64483,0,0],1739:[64478,64479,0,0],1740:[64508,64509,64510,64511],1744:[64484,64485,64486,64487],1746:[64430,64431,0,0],1747:[64432,64433,0,0]},dv={\\u0644\\u0622:[65269,65270],\\u0644\\u0623:[65271,65272],\\u0644\\u0625:[65273,65274],\\u0644\\u0627:[65275,65276]},Bc=1604,yv=/[\\u0600-\\u06ff\\u0750-\\u077f\\u0870-\\u089f\\u08a0-\\u08ff\\ufb50-\\ufdff\\ufe70-\\ufeff]/;function mv(t,e,r){let i=0;for(let n of t.split(";")){let[a,s]=n.split(",").map(l=>parseInt(l,36)),o=i+a;for(let l=o;l{let r=e.codePointAt(0);return{codePoint:r,type:gv(r),form:null}})}function Dv(t){let e=t.filter(r=>r.type!=="T");for(let r=0;r0&&xv(e[r-1].type),a=r+1String.fromCodePoint(Sv(r))).join("")}function Fv(t,e,r){var n;let i=e.layout.get("text-transform").evaluate(r,{});return i==="uppercase"?t=t.toLocaleUpperCase():i==="lowercase"&&(t=t.toLocaleLowerCase()),((n=Ar.applyArabicShaping)!=null?n:Ev)(t)}function Tv(t,e,r){for(let i of t.sections)i.text=Fv(i.text,e,r);return t}function Ws(t,e,r){let i=r?e.last.points:e.first.points,n=r?i[i.length-1]:i[0];return`${t}:${n.x}:${n.y}`}function kv(t){let e=t.first.points,r=e.length;for(let a=t.first.next;a;a=a.next)r+=a.points.length-1;let i=Array(r);for(let a=0;a=0&&cv(e[i],r)?e[i]+=r:e.push(r)}return e}function Cv(t){let e=new Set;if(ey){Oi!=null||(Oi=new Intl.Segmenter(void 0,{granularity:"word"}));for(let{index:i}of Oi.segment(t))e.add(i);return e}let r=0;for(let i of t.split(new RegExp("\\\\b|(?=\\\\p{Ideo})","u")))e.add(r),r+=i.length;return e}function ry(t){let e=t.codePointAt(0);return t.length>(e>65535?2:1)}function au(t){return/\\s/u.test(String.fromCodePoint(t))}function nl(t){for(let e of t)if(ts(e.codePointAt(0)))return!0;return!1}function Mv(t){for(let e of t)if(!Bv(e.codePointAt(0)))return!1;return!0}function Bv(t){return!sv(t)}function Lc(t){return!(ts(t)||uv(t))}function iy(t){return new RegExp("\\\\p{sc=Arab}","u").test(String.fromCodePoint(t))}function ny(t){return ov(t)}function ay(t){for(let e of t)if(ny(e.codePointAt(0)))return!0;return!1}var Gr={"!":"\\uFE15","#":"\\uFF03",$:"\\uFF04","%":"\\uFF05","&":"\\uFF06","(":"\\uFE35",")":"\\uFE36","*":"\\uFF0A","+":"\\uFF0B",",":"\\uFE10","-":"\\uFE32",".":"\\u30FB","/":"\\uFF0F",":":"\\uFE13",";":"\\uFE14","<":"\\uFE3F","=":"\\uFF1D",">":"\\uFE40","?":"\\uFE16","@":"\\uFF20","[":"\\uFE47","\\\\":"\\uFF3C","]":"\\uFE48","^":"\\uFF3E",_:"\\uFE33","`":"\\uFF40","{":"\\uFE37","|":"\\u2015","}":"\\uFE38","~":"\\uFF5E","\\xA2":"\\uFFE0","\\xA3":"\\uFFE1","\\xA5":"\\uFFE5","\\xA6":"\\uFFE4","\\xAC":"\\uFFE2","\\xAF":"\\uFFE3","\\u2013":"\\uFE32","\\u2014":"\\uFE31","\\u2018":"\\uFE43","\\u2019":"\\uFE44","\\u201C":"\\uFE41","\\u201D":"\\uFE42","\\u2026":"\\uFE19","\\u22EF":"\\uFE19","\\u2027":"\\u30FB","\\u20A9":"\\uFFE6","\\u3001":"\\uFE11","\\u3002":"\\uFE12","\\u3008":"\\uFE3F","\\u3009":"\\uFE40","\\u300A":"\\uFE3D","\\u300B":"\\uFE3E","\\u300C":"\\uFE41","\\u300D":"\\uFE42","\\u300E":"\\uFE43","\\u300F":"\\uFE44","\\u3010":"\\uFE3B","\\u3011":"\\uFE3C","\\u3014":"\\uFE39","\\u3015":"\\uFE3A","\\u3016":"\\uFE17","\\u3017":"\\uFE18","\\uFF01":"\\uFE15","\\uFF08":"\\uFE35","\\uFF09":"\\uFE36","\\uFF0C":"\\uFE10","\\uFF0D":"\\uFE32","\\uFF0E":"\\u30FB","\\uFF1A":"\\uFE13","\\uFF1B":"\\uFE14","\\uFF1C":"\\uFE3F","\\uFF1E":"\\uFE40","\\uFF1F":"\\uFE16","\\uFF3B":"\\uFE47","\\uFF3D":"\\uFE48","\\uFF3F":"\\uFE33","\\uFF5B":"\\uFE37","\\uFF5C":"\\u2015","\\uFF5D":"\\uFE38","\\uFF5F":"\\uFE35","\\uFF60":"\\uFE36","\\uFF61":"\\uFE12","\\uFF62":"\\uFE41","\\uFF63":"\\uFE42"};function Pv(t){let e="",r={premature:!0,value:void 0},i=t[Symbol.iterator](),n=i.next(),a=t[Symbol.iterator]();a.next();let s=a.next();for(;!n.done;)(s.done||!Lc(s.value.codePointAt(0))||Gr[s.value])&&(r.premature||!Lc(r.value.codePointAt(0))||Gr[r.value])&&Gr[n.value]?e+=Gr[n.value]:e+=n.value,r={value:n.value,premature:!1},n=i.next(),s=a.next();return e}var zv={10:!0,13:!0,32:!0,38:!0,41:!0,43:!0,45:!0,47:!0,173:!0,183:!0,8203:!0,8208:!0,8211:!0,8231:!0},Lv={40:!0};function Vc(t,e,r,i,n,a){var s;if("fontStack"in e){let o=(s=r[e.fontStack])==null?void 0:s.default,l=o==null?void 0:o[t];if(l)return l.metrics.advance*e.scale+n;let u=0;for(let h of t){let c=o==null?void 0:o[h];c&&(u+=c.metrics.advance*e.scale+n)}return u}{let o=i[e.imageName];return o?o.displaySize[0]*e.scale*24/a+n:0}}function Oc(t,e,r,i){let n=(t-e)**2;return i?tr&&Rc(e[i-1]);)i--;this.text=e.slice(r,i).join(""),this.sectionIndex=this.sectionIndex.slice(r,i),this._graphemes=null}substring(e,r){let i=this.graphemes().slice(e,r).join(""),n=this.sectionIndex.slice(e,r);return new al(i,this.sections,n)}toCodeUnitIndex(e){return this.graphemes().slice(0,e).join("").length}toString(){return this.text}getMaxScale(){return this.sectionIndex.reduce((e,r)=>Math.max(e,this.sections[r].scale),0)}getMaxImageSize(e){let r=0,i=0;for(let n=0;n0?i[i.length-1]:"",a=il(n+e);this.text+=e,this._graphemes=i.slice(0,n?-1:void 0).concat(a);let s=a.length-+!!n;for(let o=0;o=63743?null:++this.imageSectionID:(this.imageSectionID=57344,this.imageSectionID)}determineLineBreaks(e,r,i,n,a){let s=[],o=this.determineAverageLineWidth(e,r,i,n,a),l=this.hasZeroWidthSpaces(),u=this.graphemes(),h=null,c=0,p=0;for(let f=0;f0){let y=u[f-1].codePointAt(0),m=d.codePointAt(0),g=lv(y),x=Mc(y)&&Mc(m);(zv[y]||g||"imageName"in this.getSection(f-1)||u[f+1]!==void 0&&Lv[m]||x&&(h!=null?h:h=Cv(this.text)).has(p))&&s.push($c(f,c,o,s,Vv(y,m,g&&l),!1))}au(d.codePointAt(0))||(c+=Vc(d,this.getSection(f),i,n,e,a)),p+=d.length}return sy($c(this.length(),c,o,s,0,!0))}determineAverageLineWidth(e,r,i,n,a){let s=0,o=0;for(let u of this.graphemes()){let h=this.getSection(o);s+=Vc(u,h,i,n,e,a),o++}let l=Math.max(1,Math.ceil(s/r));return s/l}};function Ov(){return(function(t){var e={R:"13k,1a,2,3,3,2+1j,ch+16,a+1,5+2,2+n,5,a,4,6+16,4+3,h+1b,4mo,179q,2+9,2+11,2i9+7y,2+68,4,3+4,5+13,4+3,2+4k,3+29,8+cf,1t+7z,w+17,3+3m,1t+3z,16o1+5r,8+30,8+mc,29+1r,29+4v,75+73",EN:"1c+9,3d+1,6,187+9,513,4+5,7+9,sf+j,175h+9,qw+q,161f+1d,4xt+a,25i+9",ES:"17,2,6dp+1,f+1,av,16vr,mx+1,4o,2",ET:"z+2,3h+3,b+1,ym,3e+1,2o,p4+1,8,6u,7c,g6,1wc,1n9+4,30+1b,2n,6d,qhx+1,h0m,a+1,49+2,63+1,4+1,6bb+3,12jj",AN:"16o+5,2j+9,2+1,35,ed,1ff2+9,87+u",CS:"18,2+1,b,2u,12k,55v,l,17v0,2,3,53,2+1,b",B:"a,3,f+2,2v,690",S:"9,2,k",WS:"c,k,4f4,1vk+a,u,1j,335",ON:"x+1,4+4,h+5,r+5,r+3,z,5+3,2+1,2+1,5,2+2,3+4,o,w,ci+1,8+d,3+d,6+8,2+g,39+1,9,6+1,2,33,b8,3+1,3c+1,7+1,5r,b,7h+3,sa+5,2,3i+6,jg+3,ur+9,2v,ij+1,9g+9,7+a,8m,4+1,49+x,14u,2+2,c+2,e+2,e+2,e+1,i+n,e+e,2+p,u+2,e+2,36+1,2+3,2+1,b,2+2,6+5,2,2,2,h+1,5+4,6+3,3+f,16+2,5+3l,3+81,1y+p,2+40,q+a,m+13,2r+ch,2+9e,75+hf,3+v,2+2w,6e+5,f+6,75+2a,1a+p,2+2g,d+5x,r+b,6+3,4+o,g,6+1,6+2,2k+1,4,2j,5h+z,1m+1,1e+f,t+2,1f+e,d+3,4o+3,2s+1,w,535+1r,h3l+1i,93+2,2s,b+1,3l+x,2v,4g+3,21+3,kz+1,g5v+1,5a,j+9,n+v,2,3,2+8,2+1,3+2,2,3,46+1,4+4,h+5,r+5,r+a,3h+2,4+6,b+4,78,1r+24,4+c,4,1hb,ey+6,103+j,16j+c,1ux+7,5+g,fsh,jdq+1t,4,57+2e,p1,1m,1m,1m,1m,4kt+1,7j+17,5+2r,d+e,3+e,2+e,2+10,m+4,w,1n+5,1q,4z+5,4b+rb,9+c,4+c,4+37,d+2g,8+b,l+b,5+1j,9+9,7+13,9+t,3+1,27+3c,2+29,2+3q,d+d,3+4,4+2,6+6,a+o,8+6,a+2,e+6,16+42,2+1i",BN:"0+8,6+d,2s+5,2+p,e,4m9,1kt+2,2b+5,5+5,17q9+v,7k,6p+8,6+1,119d+3,440+7,96s+1,1ekf+1,1ekf+1,1ekf+1,1ekf+1,1ekf+1,1ekf+1,1ekf+1,1ekf+1,1ekf+1,1ekf+1,1ekf+1,1ekf+75,6p+2rz,1ben+1,1ekf+1,1ekf+1",NSM:"lc+33,7o+6,7c+18,2,2+1,2+1,2,21+a,1d+k,h,2u+6,3+5,3+1,2+3,10,v+q,2k+a,1n+8,a,p+3,2+8,2+2,2+4,18+2,3c+e,2+v,1k,2,5+7,5,4+6,b+1,u,1n,5+3,9,l+1,r,3+1,1m,5+1,5+1,3+2,4,v+1,4,c+1,1m,5+4,2+1,5,l+1,n+5,2,1n,3,2+3,9,8+1,c+1,v,1q,d,1f,4,1m+2,6+2,2+3,8+1,c+1,u,1n,g+1,l+1,t+1,1m+1,5+3,9,l+1,u,21,8+2,2,2j,3+6,d+7,2r,3+8,c+5,23+1,s,2,2,1k+d,2+4,2+1,6+a,2+z,a,2v+3,2+5,2+1,3+1,q+1,5+2,h+3,e,3+1,7,g,jk+2,qb+2,u+2,u+1,v+1,1t+1,2+6,9,3+a,a,1a+2,3c+1,z,3b+2,5+1,a,7+2,64+1,3,1n,2+6,2,2,3+7,7+9,3,1d+g,1s+3,1d,2+4,2,6,15+8,d+1,x+3,3+1,2+2,1l,2+1,4,2+2,1n+7,3+1,49+2,2+c,2+6,5,7,4+1,5j+1l,2+4,k1+w,2db+2,3y,2p+v,ff+3,30+1,n9x+3,2+9,x+1,29+1,7l,4,5,q+1,6,48+1,r+h,e,13+7,q+a,1b+2,1d,3+3,3+1,14,1w+5,3+1,3+1,d,9,1c,1g,2+2,3+1,6+1,2,17+1,9,6n,3,5,fn5,ki+f,h+f,r2,6b,46+4,1af+2,2+1,6+3,15+2,5,4m+1,fy+3,as+1,4a+a,4x,1j+e,1l+2,1e+3,3+1,1y+2,11+4,2+7,1r,d+1,1h+8,b+3,3,2o+2,3,2+1,7,4h,4+7,m+1,1m+1,4,12+6,4+4,5g+7,3+2,2,o,2d+5,2,5+1,2+1,6n+3,7+1,2+1,s+1,2e+7,3,2+1,2z,2,3+5,2,2u+2,3+3,2+4,78+8,2+1,75+1,2,5,41+3,3+1,5,x+5,3+1,15+5,3+3,9,a+5,3+2,1b+c,2+1,bb+6,2+5,2d+l,3+6,2+1,2+1,3f+5,4,2+1,2+6,2,21+1,4,2,9o+1,f0c+4,1o+6,t5,1s+3,2a,f5l+1,43t+2,i+7,3+6,v+3,45+2,1j0+1i,5+1d,9,f,n+4,2+e,11t+6,2+g,3+6,2+1,2+4,7a+6,c6+3,15t+6,32+6,gzhy+6n",AL:"16w,3,2,e+1b,z+2,2+2s,g+1,8+1,b+m,2+t,s+2i,c+e,4h+f,1d+1e,1bwe+dp,3+3z,x+c,2+1,35+3y,2rm+z,5+7,b+5,dt+l,c+u,17nl+27,1t+27,4x+6n,3+d",LRO:"6ct",RLO:"6cu",LRE:"6cq",RLE:"6cr",PDF:"6cs",LRI:"6ee",RLI:"6ef",FSI:"6eg",PDI:"6eh"},r={},i={};r.L=1,i[1]="L",Object.keys(e).forEach(function(N,at){r[N]=1<1,1e>2,u>2,2wt>1,1>1,1ge>1,1wp>1,1j>1,f>1,hm>1,1>1,u>1,u6>1,1>1,+5,28>1,w>1,1>1,+3,b8>1,1>1,+3,1>3,-1>-1,3>1,1>1,+2,1s>1,1>1,x>1,th>1,1>1,+2,db>1,1>1,+3,3>1,1>1,+2,14qm>1,1>1,+1,4q>1,1e>2,u>2,2>1,+1",canonical:"6f1>-6dx,6dy>-6dx,6ec>-6ed,6ee>-6ed,6ww>2jj,-2ji>2jj,14r4>-1e7l,1e7m>-1e7l,1e7m>-1e5c,1e5d>-1e5b,1e5c>-14qx,14qy>-14qx,14vn>-1ecg,1ech>-1ecg,1edu>-1ecg,1eci>-1ecg,1eda>-1ecg,1eci>-1ecg,1eci>-168q,168r>-168q,168s>-14ye,14yf>-14ye"};function d(N,at){var Y=0,k=new Map,ot=at&&new Map,X;return N.split(",").forEach(function K(j){if(j.indexOf("+")!==-1)for(var Nt=+j;Nt--;)K(X);else{X=j;var bt=j.split(">"),nt=bt[0],kt=bt[1];nt=String.fromCodePoint(Y+=parseInt(nt,36)),kt=String.fromCodePoint(Y+=parseInt(kt,36)),k.set(nt,kt),at&&ot.set(kt,nt)}}),{map:k,reverseMap:ot}}var y,m,g;function x(){if(!y){var N=d(f.pairs,!0),at=N.map,Y=N.reverseMap;y=at,m=Y,g=d(f.canonical,!1).map}}function v(N){return x(),y.get(N)||null}function b(N){return x(),m.get(N)||null}function w(N){return x(),g.get(N)||null}var _=r.L,A=r.R,S=r.EN,T=r.ES,L=r.ET,O=r.AN,B=r.CS,V=r.B,F=r.S,$=r.ON,G=r.BN,P=r.NSM,z=r.AL,it=r.LRO,dt=r.RLO,ct=r.LRE,pt=r.RLE,Kt=r.PDF,jt=r.LRI,Jt=r.RLI,Oe=r.FSI,Gt=r.PDI;function Re(N,at){for(var Y=125,k=new Uint32Array(N.length),ot=0;ot0)Ie--;else if(is>0){for(qe=0;!lt[lt.length-1]._isolate;)lt.pop();var ns=lt[lt.length-1]._isolInitIndex;ns!=null&&(Nt.set(ns,zt),Nt.set(zt,ns)),lt.pop(),is--}wt=lt[lt.length-1],j[zt]=wt._level,wt._override&&K(zt,wt._override)}else Lt&Kt?(Ie===0&&(qe>0?qe--:!wt._isolate&<.length>1&&(lt.pop(),wt=lt[lt.length-1])),j[zt]=wt._level):Lt&V&&(j[zt]=nt.level);else j[zt]=wt._level,wt._override&&Lt!==G&&K(zt,wt._override)}for(var Cr=[],me=null,ur=nt.start;ur<=nt.end;ur++){var as=k[ur];if(!(as&o)){var Vu=j[ur],Ou=as&n,m1=as===Gt;me&&Vu===me._level?(me._end=ur,me._endsWithIsolInit=Ou):Cr.push(me={_start:ur,_end:ur,_level:Vu,_startsWithPDI:m1,_endsWithIsolInit:Ou})}}for(var ss=[],In=0;In=0;Bn--)if(!(k[Bn]&o)){Nu=j[Bn];break}var hs=Mr[Mr.length-1],x1=j[hs],Uu=nt.level;if(!(k[hs]&n)){for(var Pn=hs+1;Pn<=nt.end;Pn++)if(!(k[Pn]&o)){Uu=j[Pn];break}}ss.push({_seqIndices:Mr,_sosType:Math.max(Nu,g1)%2?A:_,_eosType:Math.max(Uu,x1)%2?A:_})}}for(var cs=0;cs=0;Ln--)if(!(k[q[Ln]]&o)){fs=k[q[Ln]];break}K(qu,fs&(n|Gt)?$:fs)}}if(X.get(S))for(var Vn=0;Vn=-1;On--){var Gu=On===-1?yi:k[q[On]];if(Gu&a){Gu===z&&K(ju,O);break}}}if(X.get(z))for(var ds=0;ds=0&&(Pr=k[q[gs]],Pr&o);gs--);for(var xs=mi+1;xs=0&&k[q[Rn]]&(L|o);Rn--)K(q[Rn],S);for(ge++;ge=0&&k[q[$n]]&o;$n--)K(q[$n],$);for(var Nn=gi+1;Nn=0;bi--){var ws=zr[bi].char;if(ws===Ku||ws===b(w(vi))||v(w(ws))===vi){Un.push([zr[bi].seqIndex,Lr]),zr.length=bi;break}}}Un.sort(function(Wt,he){return Wt[0]-he[0]});for(var Ds=0;Ds=0;Ss--){var rh=q[Ss];if(k[rh]&Hu){var ih=k[rh]&xi?A:_;xe=ih===Br?Br:ih;break}}}if(xe){if(k[q[qn]]=k[q[_s]]=xe,xe!==Br){for(var wi=qn+1;wi=0;_i--)if(k[q[_i]]&o)nh=_i;else{Fs=k[q[_i]]&xi?A:_;break}for(var ah=v1,Ai=je+1;Ai=0&&c(N[Gn])&l;Gn--)j[Gn]=nt.level}}return{levels:j,paragraphs:bt};function sh(Wt,he){for(var Zt=Wt;Zt=j&&c(N[nt])&l;nt--)bt[nt]=K.level;for(var kt=K.level,di=1/0,lr=0;lrkt&&(kt=Ne),Ne=di;Ue--)for(var lt=0;lt=Ue){for(var wt=lt;lt+1=Ue;)lt++;lt>wt&&X.push([wt+j,lt+j])}}}),X}function or(N,at,Y,k){var ot=Ir(N,at,Y,k),X=[].concat(N);return ot.forEach(function(K,j){X[j]=(at.levels[K]&1?Te(N[K]):null)||N[K]}),X.join("")}function Ir(N,at,Y,k){for(var ot=ke(N,at,Y,k),X=[],K=0;K=0;i--){let n=ou.getBidiCharTypeName(t[i].text[0]);Nv.has(n)?(t[i].level=e,r=!0):r&&$v.has(n)?t[i].level=e:r=!1}}function jv(t,e){let r=e,i=1/0;for(let{level:a}of t)a>r&&(r=a),(a|1)=i;a--)for(let s=0;s=a;)o++;for(let l=s,u=o;le>=n.start&&e<=n.end))==null?void 0:r.level)!=null?i:0}function Yv(t,e,r,i,n){let a=Uv(t,e,i,n);qv(a,r);let s="",o=[];for(let l of jv(a,r)){if(Rv.test(l.text))continue;let u=Gv(l);s+=u,o.push(...Array(u.length).fill(l.index))}return{text:s,sourceIndices:o}}function Wv(t,e){let r=e.filter(a=>a>0&&aa-s),n=[];for(let a=0;a+1n.start))).map(([n,a])=>Yv(t,r,Xv(i,n),n,a))}function Zv(t,e){return oy(t,e).map(r=>r.text)}function Hv(t,e,r){return oy(t,r).map(i=>[i.text,i.sourceIndices.map(n=>{var a;return(a=e[n])!=null?a:0})])}var sl=4294967296,Nc=1/sl,Uc=typeof TextDecoder>"u"?null:new TextDecoder("utf-8"),lu=class{constructor(t){this.buf=ArrayBuffer.isView(t)?t:new Uint8Array(t),this.dataView=new DataView(this.buf.buffer,this.buf.byteOffset,this.buf.byteLength),this.pos=0,this.type=0,this._valueStart=-1,this.length=this.buf.length}readFields(t,e,r=this.length){let i;for(;i=this.nextField(r);)t(i,e,this);return e}readMessage(t,e){return this.readFields(t,e,this.readVarint()+this.pos)}readFixed32(){let t=this.dataView.getUint32(this.pos,!0);return this.pos+=4,t}readSFixed32(){let t=this.dataView.getInt32(this.pos,!0);return this.pos+=4,t}readFixed64(){let t=this.dataView.getUint32(this.pos,!0)+this.dataView.getUint32(this.pos+4,!0)*sl;return this.pos+=8,t}readSFixed64(){let t=this.dataView.getUint32(this.pos,!0)+this.dataView.getInt32(this.pos+4,!0)*sl;return this.pos+=8,t}readFloat(){let t=this.dataView.getFloat32(this.pos,!0);return this.pos+=4,t}readDouble(){let t=this.dataView.getFloat64(this.pos,!0);return this.pos+=8,t}readVarint(t){let e=this.buf,r=e[this.pos++];if(r<128)return r;let i=r&127,n;return n=e[this.pos++],i|=(n&127)<<7,n<128||(n=e[this.pos++],i|=(n&127)<<14,n<128)||(n=e[this.pos++],i|=(n&127)<<21,n<128)?i:(n=e[this.pos],i|=(n&15)<<28,Jv(i,t,this))}readSVarint(){let t=this.readVarint();return t%2==1?(t+1)/-2:t/2}readBoolean(){return!!this.readVarint()}readString(){let t=this.readVarint()+this.pos,e=this.pos;return this.pos=t,t-e>=12&&Uc?Uc.decode(this.buf.subarray(e,t)):pb(this.buf,e,t)}readBytes(){let t=this.readVarint()+this.pos,e=this.buf.subarray(this.pos,t);return this.pos=t,e}readPackedVarint(t=[],e){let r=this.readPackedEnd();for(;this.pos=t)return 0;let e=this.readVarint();return this.type=e&7,this._valueStart=this.pos,e>>>3}skip(t){let e=t&7;if(e===0)for(;this.buf[this.pos++]>127;);else if(e===2)this.pos=this.readVarint()+this.pos;else if(e===5)this.pos+=4;else if(e===1)this.pos+=8;else throw Error(`Unimplemented type: ${e}`)}},Kv=class{constructor(t=new Uint8Array(16)){this.buf=ArrayBuffer.isView(t)?t:new Uint8Array(t),this.dataView=new DataView(this.buf.buffer,this.buf.byteOffset,this.buf.byteLength),this.pos=0,this.length=this.buf.length}writeTag(t,e){this.writeVarint(t<<3|e)}realloc(t){let e=this.length||16;for(;e=0&&t<128){this.pos>=this.length&&this.realloc(1),this.buf[this.pos++]=t;return}if(t>268435455||t<0){tb(t,this);return}this.realloc(4),this.buf[this.pos++]=t&127|(t>127?128:0),!(t<=127)&&(this.buf[this.pos++]=(t>>>=7)&127|(t>127?128:0),!(t<=127)&&(this.buf[this.pos++]=(t>>>=7)&127|(t>127?128:0),!(t<=127)&&(this.buf[this.pos++]=t>>>7&127)))}writeSVarint(t){this.writeVarint(t<0?-t*2-1:t*2)}writeBoolean(t){this.writeVarint(+t)}writeString(t){t=String(t),this.realloc(t.length*4),this.pos++;let e=this.pos;this.pos=fb(this.buf,t,this.pos);let r=this.pos-e;r>=128&&qc(e,r,this),this.pos=e-1,this.writeVarint(r),this.pos+=r}writeFloat(t){this.realloc(4),this.dataView.setFloat32(this.pos,t,!0),this.pos+=4}writeDouble(t){this.realloc(8),this.dataView.setFloat64(this.pos,t,!0),this.pos+=8}writeBytes(t){let e=t.length;this.writeVarint(e),this.realloc(e),this.buf.set(t,this.pos),this.pos+=e}writeRawMessage(t,e){this.pos++;let r=this.pos;t(e,this);let i=this.pos-r;i>=128&&qc(r,i,this),this.pos=r-1,this.writeVarint(i),this.pos+=i}writeMessage(t,e,r){this.writeTag(t,2),this.writeRawMessage(e,r)}writePackedVarint(t,e){e.length&&this.writeMessage(t,ib,e)}writePackedSVarint(t,e){e.length&&this.writeMessage(t,nb,e)}writePackedBoolean(t,e){e.length&&this.writeMessage(t,ob,e)}writePackedFloat(t,e){e.length&&this.writeMessage(t,ab,e)}writePackedDouble(t,e){e.length&&this.writeMessage(t,sb,e)}writePackedFixed32(t,e){e.length&&this.writeMessage(t,lb,e)}writePackedSFixed32(t,e){e.length&&this.writeMessage(t,ub,e)}writePackedFixed64(t,e){e.length&&this.writeMessage(t,hb,e)}writePackedSFixed64(t,e){e.length&&this.writeMessage(t,cb,e)}writeBytesField(t,e){this.writeTag(t,2),this.writeBytes(e)}writeFixed32Field(t,e){this.writeTag(t,5),this.writeFixed32(e)}writeSFixed32Field(t,e){this.writeTag(t,5),this.writeSFixed32(e)}writeFixed64Field(t,e){this.writeTag(t,1),this.writeFixed64(e)}writeSFixed64Field(t,e){this.writeTag(t,1),this.writeSFixed64(e)}writeVarintField(t,e){this.writeTag(t,0),this.writeVarint(e)}writeSVarintField(t,e){this.writeTag(t,0),this.writeSVarint(e)}writeStringField(t,e){this.writeTag(t,2),this.writeString(e)}writeFloatField(t,e){this.writeTag(t,5),this.writeFloat(e)}writeDoubleField(t,e){this.writeTag(t,1),this.writeDouble(e)}writeBooleanField(t,e){this.writeVarintField(t,+e)}};function Jv(t,e,r){let i=r.buf,n,a;if(a=i[r.pos++],n=(a&112)>>4,a<128||(a=i[r.pos++],n|=(a&127)<<3,a<128)||(a=i[r.pos++],n|=(a&127)<<10,a<128)||(a=i[r.pos++],n|=(a&127)<<17,a<128)||(a=i[r.pos++],n|=(a&127)<<24,a<128)||(a=i[r.pos++],n|=(a&1)<<31,a<128))return Qv(t,n,e);throw Error("Expected varint not more than 10 bytes")}function Qv(t,e,r){return r?e*4294967296+(t>>>0):(e>>>0)*4294967296+(t>>>0)}function tb(t,e){let r,i;if(t>=0?(r=t%4294967296|0,i=t/4294967296|0):(r=~(-t%4294967296),i=~(-t/4294967296),r^4294967295?r=r+1|0:(r=0,i=i+1|0)),t>=18446744073709552e3||t<-18446744073709552e3)throw Error("Given varint doesn\'t fit into 10 bytes");e.realloc(10),eb(r,i,e),rb(i,e)}function eb(t,e,r){r.buf[r.pos++]=t&127|128,t>>>=7,r.buf[r.pos++]=t&127|128,t>>>=7,r.buf[r.pos++]=t&127|128,t>>>=7,r.buf[r.pos++]=t&127|128,t>>>=7,r.buf[r.pos]=t&127}function rb(t,e){let r=(t&7)<<4;e.buf[e.pos++]|=r|((t>>>=3)?128:0),t&&(e.buf[e.pos++]=t&127|((t>>>=7)?128:0),t&&(e.buf[e.pos++]=t&127|((t>>>=7)?128:0),t&&(e.buf[e.pos++]=t&127|((t>>>=7)?128:0),t&&(e.buf[e.pos++]=t&127|((t>>>=7)?128:0),t&&(e.buf[e.pos++]=t&127)))))}function qc(t,e,r){let i=e<=16383?1:e<=2097151?2:e<=268435455?3:Math.floor(Math.log(e)/(Math.LN2*7));r.realloc(i),r.buf.copyWithin(t+i,t,r.pos)}function ib(t,e){let r=t.length,i=e.buf,n=e.pos,a=e.length;for(let s=0;sa){e.pos=n,e.writeVarint(o),i=e.buf,n=e.pos,a=e.length;continue}for(;o>127;)i[n++]=o%128|128,o=Math.floor(o/128);i[n++]=o}e.pos=n}function nb(t,e){for(let r=0;r239?4:a>223?3:a>191?2:1;if(n+o>r)break;let l,u,h;o===1?a<128&&(s=a):o===2?(l=t[n+1],(l&192)==128&&(s=(a&31)<<6|l&63,s<=127&&(s=null))):o===3?(l=t[n+1],u=t[n+2],(l&192)==128&&(u&192)==128&&(s=(a&15)<<12|(l&63)<<6|u&63,(s<=2047||s>=55296&&s<=57343)&&(s=null))):o===4&&(l=t[n+1],u=t[n+2],h=t[n+3],(l&192)==128&&(u&192)==128&&(h&192)==128&&(s=(a&15)<<18|(l&63)<<12|(u&63)<<6|h&63,(s<=65535||s>=1114112)&&(s=null))),s===null?(s=65533,o=1):s>65535&&(s-=65536,i+=String.fromCharCode(s>>>10&1023|55296),s=56320|s&1023),i+=String.fromCharCode(s),n+=o}return i}function fb(t,e,r){for(let i=0,n,a;i55295&&n<57344)if(a){if(n<56320){t[r++]=239,t[r++]=191,t[r++]=189,a=n;continue}n=a-55296<<10|n-56320|65536,a=null}else{n>56319||i+1===e.length?(t[r++]=239,t[r++]=191,t[r++]=189):a=n;continue}else a&&(a=(t[r++]=239,t[r++]=191,t[r++]=189,null));n<128?t[r++]=n:(n<2048?t[r++]=n>>6|192:(n<65536?t[r++]=n>>12|224:(t[r++]=n>>18|240,t[r++]=n>>12&63|128),t[r++]=n>>6&63|128),t[r++]=n&63|128)}return r}function db(t){return typeof(t==null?void 0:t.renderWithWebGL)=="function"}function uu(t){let e=0,r=0;for(let s of t)e+=s.w*s.h,r=Math.max(r,s.w);t.sort((s,o)=>o.h-s.h);let i=[{x:0,y:0,w:Math.max(Math.ceil(Math.sqrt(e/.95)),r),h:1/0}],n=0,a=0;for(let s of t)for(let o=i.length-1;o>=0;o--){let l=i[o];if(!(s.w>l.w||s.h>l.h)){if(s.x=l.x,s.y=l.y,a=Math.max(a,s.y+s.h),n=Math.max(n,s.x+s.w),s.w===l.w&&s.h===l.h){let u=i.pop();u&&o=r;a--)e.push(a);r=i+1}else{for(let a=r;at.toCodeUnitIndex(a)),i=Ar.isParsed()?Ar:null;if(t.sections.length===1)return i?i.processBidirectionalText(t.toString(),r).map(a=>Gc(a,t.sections,[...a].map(()=>0))):Zv(t.toString(),r).map(a=>ol([...a],t.sections,[...a].map(()=>0)));let n=xb(t);return i?i.processStyledBidirectionalText(t.text,n,r).map(([a,s])=>Gc(a,t.sections,s)):Hv(t.text,n,r).map(([a,s])=>{let o=[...a];return ol(o,t.sections,hy(o).map(l=>{var u;return(u=s[l])!=null?u:0}))})}function ol(t,e,r){var a;let i=new su(t.join(""),e,[]),n=0;for(let s of i.graphemes())i.sectionIndex.push((a=r[n])!=null?a:0),n+=[...s].length;return i}function hy(t){let e=[],r=0;for(let i of t)e.push(r),r+=i.length;return e}function Gc(t,e,r){let i=[...t],n=hy(i),a=gb(i);return ol(a.map(s=>i[s]),e,a.map(s=>{var o;return(o=r[n[s]])!=null?o:0}))}function na(t,e,r,i,n,a,s,o,l,u,h,c,p,f,d){let y=su.fromFeature(t,n);c===2&&y.verticalizePunctuation();let m=y.determineLineBreaks(u,a,e,i,f),g=ay(y.text)?vb(y,m):mb(y,m),x=[],v={positionedLines:x,text:y.toString(),top:h[1],bottom:h[1],left:h[0],right:h[0],writingMode:c,iconsInText:!1,verticalizable:!1};return Tb(v,e,r,i,g,s,o,l,c,u,p,d),!yb(x)&&v}function cy(t){let e=.5,r=.5;switch(t){case"right":case"top-right":case"bottom-right":e=1;break;case"left":case"top-left":case"bottom-left":e=0}switch(t){case"bottom":case"bottom-right":case"bottom-left":r=1;break;case"top":case"top-right":case"top-left":r=0}return{horizontalAlign:e,verticalAlign:r}}function bb(t,e,r){let i=e.getMaxScale()*24,{maxImageWidth:n,maxImageHeight:a}=e.getMaxImageSize(t),s=Math.max(i,a*r);return{verticalLineContentWidth:Math.max(i,n*r),horizontalLineContentHeight:s}}function py(t){switch(t){case"top":return 0;case"center":return .5;default:return 1}}function wb(t,e,r,i){var a,s;if(t!=null&&t.rect)return t;let n=(s=(a=e[r.fontStack])==null?void 0:a.default)==null?void 0:s[i];return n?{rect:null,metrics:n.metrics}:null}function Db(t,e,r){return!(t===1||!e&&!ts(r)||e&&(au(r)||iy(r)))}function ma(t){return new RegExp("\\\\p{Nd}","u").test(String.fromCodePoint(t))}function fy(t){return new RegExp("\\\\p{Lu}","u").test(String.fromCodePoint(t))}function _b(t){return/[\\p{P}\\p{S}]/u.test(String.fromCodePoint(t))}function Ab(t){let e=t.some(ma)&&t.every(i=>ma(i)||_b(i)),r=t.length<=3&&t.every(i=>fy(i)||ma(i));return e||r}function Sb(t){return(ma(t)||fy(t))&&!iy(t)}function Eb(t,e){let r=!1;for(let i=0;ia.codePointAt(0)),i=r.map(ts),n=a=>!i[a]&&!au(r[a])&&!("imageName"in t.getSection(a));for(let a=0;au){let p=Math.ceil(i/u);r*=p/n,n=p}return{x1:e,y1:r,x2:e+i,y2:r+n}}function Xc(t,e,r,i,n,a){let s=t.image,o;if(s.content){let m=s.content,g=s.pixelRatio||1;o=[m[0]/g,m[1]/g,s.displaySize[0]-m[2]/g,s.displaySize[1]-m[3]/g]}let l=e.left*a,u=e.right*a,h,c,p,f;r==="width"||r==="both"?(f=n[0]+l-i[3],c=n[0]+u+i[1]):(f=n[0]+(l+u-s.displaySize[0])/2,c=f+s.displaySize[0]);let d=e.top*a,y=e.bottom*a;return r==="height"||r==="both"?(h=n[1]+d-i[0],p=n[1]+y+i[2]):(h=n[1]+(d+y-s.displaySize[1])/2,p=h+s.displaySize[1]),{image:s,top:h,right:c,bottom:p,left:f,collisionPadding:o}}var Yc=32640;function Wc(t,e){let{expression:r}=e;if(r.kind==="constant")return{kind:"constant",layoutSize:r.evaluate(new st(t+1))};if(r.kind==="source")return{kind:"source"};if(r.kind==="composite"){let{minZoom:i,maxZoom:n}=Pb(r.zoomStops,t);return{kind:"composite",minZoom:i,maxZoom:n,interpolationType:r.interpolationType}}{let i=zb(r),n=r.evaluate(new st(t+1));return{kind:"camera",zoomStops:r.zoomStops,sizes:i,layoutSize:n,interpolationType:r.interpolationType}}}function Pb(t,e){let r=0;for(;rt.evaluate(new st(e===-1/0?t.zoomStops[1]-1:e)))}var Jr=class yy extends M{constructor(e,r,i,n){super(e,r),this.angle=i,n!==void 0&&(this.segment=n)}clone(){return new yy(this.x,this.y,this.angle,this.segment)}};C("Anchor",Jr);function my(t,e,r,i,n){if(e.segment===void 0||r===0)return!0;let a=e,s=e.segment+1,o=0;for(;o>-r/2;){if(s--,s<0)return!1;o-=t[s].dist(a),a=t[s]}o+=t[s].dist(t[s+1]),s++;let l=[],u=0;for(;oi;)u-=l.shift().angleDelta;if(u>n)return!1;s++,o+=c.dist(p)}return!0}function gy(t){let e=0;for(let r=0;ru){let d=(u-l)/f,y=new Jr(br.number(c.x,p.x,d),br.number(c.y,p.y,d),p.angleTo(c),h);return y._round(),!s||my(t,y,o,s,e)?y:void 0}l+=f}}function Vb(t,e,r,i,n,a,s,o,l){let u=xy(i,a,s),h=vy(i,n),c=h*s,p=t[0].x===0||t[0].x===l||t[0].y===0||t[0].y===l;e-c=0&&b=0&&w=0&&p+u<=h){let _=new Jr(b,w,x,d);_._round(),(!i||my(t,_,a,i,n))&&f.push(_)}}c+=g}return!o&&!f.length&&!s&&(f=by(t,c/2,r,i,n,a,s,!0,l)),f}function Ob(t,e,r,i,n){let a=[];for(let s of t){let o;for(let l=0;l=i&&h.x>=i)&&(u.x>=i?u=new M(i,u.y+(h.y-u.y)*((i-u.x)/(h.x-u.x)))._round():h.x>=i&&(h=new M(i,u.y+(h.y-u.y)*((i-u.x)/(h.x-u.x)))._round()),!(u.y>=n&&h.y>=n)&&(u.y>=n?u=new M(u.x+(h.x-u.x)*((n-u.y)/(h.y-u.y)),n)._round():h.y>=n&&(h=new M(u.x+(h.x-u.x)*((n-u.y)/(h.y-u.y)),n)._round()),(!o||!u.equals(o[o.length-1]))&&(o=[u],a.push(o)),o.push(h)))))}}return a}function wy(t,e,r,i,n,a){let s=Zc(t,e,r,n,0);return s=Zc(s,e,i,a,1),s}function Zc(t,e,r,i,n){switch(e){case 1:return Rb(t,r,i,n);case 2:return Hc(t,r,i,n,!1);case 3:return Hc(t,r,i,n,!0)}return[]}function Rb(t,e,r,i){let n=[];for(let a of t)for(let s of a){let o=i===0?s.x:s.y;o>=e&&o<=r&&n.push([s])}return n}function $b(t,e,r,i,n){let a=i===0?Nb:Ub,s=[],o=[];for(let h=0;he&&s.push(a(c,p,e)):f>r?d=e&&(s.push(a(c,p,e)),y=!0),d>r&&f<=r&&(s.push(a(c,p,r)),y=!0),!n&&y&&(o.push(s),s=[])}let l=t.length-1,u=i===0?t[l].x:t[l].y;return u>=e&&u<=r&&s.push(t[l]),n&&s.length>0&&!s[0].equals(s[s.length-1])&&s.push(new M(s[0].x,s[0].y)),s.length>0&&o.push(s),o}function Hc(t,e,r,i,n){let a=[];for(let s of t){let o=$b(s,e,r,i,n);o.length>0&&a.push(...o)}return a}function Nb(t,e,r){let i=(r-t.x)/(e.x-t.x);return new M(r,t.y+(e.y-t.y)*i)}function Ub(t,e,r){let i=(r-t.y)/(e.y-t.y);return new M(t.x+(e.x-t.x)*i,r)}function Kc(t,e,r,i){let n=[],a=t.image,s=a.pixelRatio,o=a.paddedRect.w-2,l=a.paddedRect.h-2,u={x1:t.left,y1:t.top,x2:t.right,y2:t.bottom},h=a.stretchX||[[0,o]],c=a.stretchY||[[0,l]],p=(F,$)=>F+$[1]-$[0],f=h.reduce(p,0),d=c.reduce(p,0),y=o-f,m=l-d,g=0,x=f,v=0,b=d,w=0,_=y,A=0,S=m;if(a.content&&i){let F=a.content,$=F[2]-F[0],G=F[3]-F[1];(a.textFitWidth||a.textFitHeight)&&(u=dy(t)),g=aa(h,0,F[0]),v=aa(c,0,F[1]),x=aa(h,F[0],F[2]),b=aa(c,F[1],F[3]),w=F[0]-g,A=F[1]-v,_=$-x,S=G-b}let T=u.x1,L=u.y1,O=u.x2-T,B=u.y2-L,V=(F,$,G,P)=>{let z=sa(F.stretch-g,x,O,T),it=oa(F.fixed-w,_,F.stretch,f),dt=sa($.stretch-v,b,B,L),ct=oa($.fixed-A,S,$.stretch,d),pt=sa(G.stretch-g,x,O,T),Kt=oa(G.fixed-w,_,G.stretch,f),jt=sa(P.stretch-v,b,B,L),Jt=oa(P.fixed-A,S,P.stretch,d),Oe=new M(z,dt),Gt=new M(pt,dt),Re=new M(pt,jt),$e=new M(z,jt),sr=new M(it/s,ct/s),fi=new M(Kt/s,Jt/s),Te=e*Math.PI/180;if(Te){let N=Math.sin(Te),at=Math.cos(Te),Y=[at,-N,N,at];Oe._matMult(Y),Gt._matMult(Y),$e._matMult(Y),Re._matMult(Y)}let $t=F.stretch+F.fixed,ke=G.stretch+G.fixed,or=$.stretch+$.fixed,Ir=P.stretch+P.fixed;return{tl:Oe,tr:Gt,bl:$e,br:Re,tex:{x:a.paddedRect.x+1+$t,y:a.paddedRect.y+1+or,w:ke-$t,h:Ir-or},writingMode:void 0,glyphOffset:[0,0],sectionIndex:0,pixelOffsetTL:sr,pixelOffsetBR:fi,minFontScaleX:_/s/O,minFontScaleY:S/s/B,isSDF:r}};if(!i||!a.stretchX&&!a.stretchY)n.push(V({fixed:0,stretch:-1},{fixed:0,stretch:-1},{fixed:0,stretch:o+1},{fixed:0,stretch:l+1}));else{let F=Jc(h,y,f),$=Jc(c,m,d);for(let G=0;G0&&(d=Math.max(10,d),this.circleDiameter=d)}else{let c=(h=a.image)!=null&&h.content&&(a.image.textFitWidth||a.image.textFitHeight)?dy(a):{x1:a.left,y1:a.top,x2:a.right,y2:a.bottom};c.y1=c.y1*s-o[0],c.y2=c.y2*s+o[2],c.x1=c.x1*s-o[3],c.x2=c.x2*s+o[1];let p=a.collisionPadding;if(p&&(c.x1-=p[0]*s,c.y1-=p[1]*s,c.x2+=p[2]*s,c.y2+=p[3]*s),u){let f=new M(c.x1,c.y1),d=new M(c.x2,c.y1),y=new M(c.x1,c.y2),m=new M(c.x2,c.y2),g=u*Math.PI/180;f._rotate(g),d._rotate(g),y._rotate(g),m._rotate(g),c.x1=Math.min(f.x,d.x,y.x,m.x),c.x2=Math.max(f.x,d.x,y.x,m.x),c.y1=Math.min(f.y,d.y,y.y,m.y),c.y2=Math.max(f.y,d.y,y.y,m.y)}t.emplaceBack(e.x,e.y,c.x1,c.y1,c.x2,c.y2,r,i,n)}this.boxEndIndex=t.length}},jb=class{constructor(t=[],e=(r,i)=>ri)){if(this.data=t,this.length=this.data.length,this.compare=e,this.length>0)for(let r=(this.length>>1)-1;r>=0;r--)this._down(r)}push(t){this.data.push(t),this._up(this.length++)}pop(){if(this.length===0)return;let t=this.data[0],e=this.data.pop();return--this.length>0&&(this.data[0]=e,this._down(0)),t}peek(){return this.data[0]}_up(t){let{data:e,compare:r}=this,i=e[t];for(;t>0;){let n=t-1>>1,a=e[n];if(r(i,a)>=0)break;e[t]=a,t=n}e[t]=i}_down(t){let{data:e,compare:r}=this,i=this.length>>1,n=e[t];for(;t=0)break;e[t]=e[a],t=a}e[t]=n}};function Gb(t,e=1){let r=Ia.fromPoints(t[0]),i=Math.min(r.width(),r.height()),n=i/2,a=new jb([],Xb),{minX:s,minY:o,maxX:l,maxY:u}=r;if(i===0)return new M(s,o);for(let p=s;pc.d||!c.d)&&(c=p),!(p.max-c.d<=e)&&(n=p.h/2,a.push(new qr(p.p.x-n,p.p.y-n,n,t)),a.push(new qr(p.p.x+n,p.p.y-n,n,t)),a.push(new qr(p.p.x-n,p.p.y+n,n,t)),a.push(new qr(p.p.x+n,p.p.y+n,n,t)))}return h.d>0&&c.d-h.d<=e?h.p:c.p}function Xb(t,e){return e.max-t.max}var qr=class{constructor(t,e,r,i){this.p=new M(t,e),this.h=r,this.d=Yb(this.p,i),this.max=this.d+this.h*Math.SQRT2}};function Yb(t,e){let r=!1,i=1/0;for(let n of e)for(let a=0,s=n.length,o=s-1;at.y!=u.y>t.y&&t.x<(u.x-l.x)*(t.y-l.y)/(u.y-l.y)+l.x&&(r=!r),i=Math.min(i,wd(t,l,u))}return(r?1:-1)*Math.sqrt(i)}function Wb(t){let e=0,r=0,i=0,n=t[0];for(let a=0,s=n.length,o=s-1;ap*24);h.startsWith("top")?c[1]-=7:h.startsWith("bottom")&&(c[1]+=7),l[u+1]=c}return new Ae(l)}let a=i.get("text-variable-anchor");if(a){let o;o=t._unevaluatedLayout.getValue("text-radial-offset")===void 0?i.get("text-offset").evaluate(e,{},r).map(u=>u*24):[i.get("text-radial-offset").evaluate(e,{},r)*24,cu];let l=[];for(let u of a)l.push(u,Dy(u,o));return new Ae(l)}return null}function Hb(t){var h,c;t.bucket.createArrays();let e=512*t.bucket.overscaling;t.bucket.tilePixelRatio=gt/e,t.bucket.compareText={},t.bucket.iconsNeedLinear=!1;let r=t.bucket.layers[0],i=r.layout,n=r._unevaluatedLayout._values,a={layoutIconSize:n["icon-size"].possiblyEvaluate(new st(t.bucket.zoom+1),t.canonical),layoutTextSize:n["text-size"].possiblyEvaluate(new st(t.bucket.zoom+1),t.canonical),textMaxSize:n["text-size"].possiblyEvaluate(new st(18))};if(t.bucket.textSizeData.kind==="composite"){let{minZoom:p,maxZoom:f}=t.bucket.textSizeData;a.compositeTextSizes=[n["text-size"].possiblyEvaluate(new st(p),t.canonical),n["text-size"].possiblyEvaluate(new st(f),t.canonical)]}if(t.bucket.iconSizeData.kind==="composite"){let{minZoom:p,maxZoom:f}=t.bucket.iconSizeData;a.compositeIconSizes=[n["icon-size"].possiblyEvaluate(new st(p),t.canonical),n["icon-size"].possiblyEvaluate(new st(f),t.canonical)]}let s=i.get("text-line-height")*24,o=i.get("text-rotation-alignment")!=="viewport"&&i.get("symbol-placement")!=="point",l=i.get("text-keep-upright"),u=i.get("text-size");for(let p of t.bucket.features){let f=i.get("text-font").evaluate(p,{},t.canonical).join(","),d=u.evaluate(p,{},t.canonical),y=a.layoutTextSize.evaluate(p,{},t.canonical),m=a.layoutIconSize.evaluate(p,{},t.canonical),g={horizontal:{},vertical:void 0},x=p.text,v=[0,0];if(x){let A=x.toString(),S=i.get("text-letter-spacing").evaluate(p,{},t.canonical)*24,T=Mv(A)?S:0,L=i.get("text-anchor").evaluate(p,{},t.canonical),O=_y(r,p,t.canonical);if(!O){let $=i.get("text-radial-offset").evaluate(p,{},t.canonical);v=$?Dy(L,[$*24,cu]):i.get("text-offset").evaluate(p,{},t.canonical).map(G=>G*24)}let B=o?"center":i.get("text-justify").evaluate(p,{},t.canonical),V=i.get("symbol-placement")==="point"?i.get("text-max-width").evaluate(p,{},t.canonical)*24:1/0,F=()=>{t.bucket.allowVerticalPlacement&&nl(A)&&(g.vertical=na(x,t.glyphMap,t.glyphPositions,t.imagePositions,f,V,s,L,"left",T,v,2,!0,y,d))};if(!o&&O){let $=new Set;if(B==="auto")for(let P=0;P{z.x<0||z.x>=8192||z.y<0||z.y>=8192||Qb(t,z,P,r,i,n,F,t.layers[0],t.collisionBoxArray,e.index,e.sourceLayerIndex,t.index,x,[_,_,_,_],T,l,b,A,L,y,e,a,u,h,s,p)};if(O==="line")for(let P of Ob(e.geometry,0,0,gt,gt)){let z=yr(P,$),it=Vb(z,w,S,r.vertical||m,i,24,v,t.overscaling,gt);for(let dt of it){let ct=m;(!ct||!tw(t,ct.text,B,dt))&&G(z,dt)}}else if(O==="line-center"){for(let P of e.geometry)if(P.length>1){let z=yr(P,$),it=Lb(z,S,r.vertical||m,i,24,v);it&&G(z,it)}}else if(e.type==="Polygon")for(let P of Na(e.geometry,0)){let z=Gb(P,16);G(yr(P[0],$,!0),new Jr(z.x,z.y,0))}else if(e.type==="LineString")for(let P of e.geometry){let z=yr(P,$);G(z,new Jr(z[0].x,z[0].y,0))}else if(e.type==="Point")for(let P of e.geometry)for(let z of P)G([z],new Jr(z.x,z.y,0))}function Jb(t,e){let r=t.length,i=e==null?void 0:e.values;if((i==null?void 0:i.length)>0)for(let n=0;n32640&&Mt(`${t.layerIds[0]}: Value for "text-size" is >= 255. Reduce your "text-size".`)):g.kind==="composite"&&(x=[128*d.compositeTextSizes[0].evaluate(s,{},y),128*d.compositeTextSizes[1].evaluate(s,{},y)],(x[0]>32640||x[1]>32640)&&Mt(`${t.layerIds[0]}: Value for "text-size" is >= 255. Reduce your "text-size".`)),t.addSymbols(t.text,m,x,o,a,s,h,e,u.lineStartIndex,u.lineLength,f,y,l);for(let v of c)p[v]=t.text.placedSymbolArray.length-1;return m.length*4}function Ay(t){for(let e in t)return t[e];return null}function Qb(t,e,r,i,n,a,s,o,l,u,h,c,p,f,d,y,m,g,x,v,b,w,_,A,S,T){let L=t.addToLineVertexArray(e,r),O=o.layout.get("symbol-height-offset").evaluate(b,{},A);O>t.maxHeightOffset&&(t.maxHeightOffset=O);let B,V,F,$,G=0,P=0,z=0,it=0,dt=-1,ct=-1,pt={},Kt=(0,Ea.default)("");if(t.allowVerticalPlacement&&i.vertical){let Y=o.layout.get("text-rotate").evaluate(b,{},A)+90,k=i.vertical;F=new la(l,e,u,h,c,k,p,f,d,Y),s&&($=new la(l,e,u,h,c,s,m,g,d,Y))}if(n){let Y=o.layout.get("icon-rotate").evaluate(b,{}),k=o.layout.get("icon-text-fit")!=="none",ot=Kc(n,Y,_,k),X=s?Kc(s,Y,_,k):void 0;V=new la(l,e,u,h,c,n,m,g,!1,Y),G=ot.length*4;let K=t.iconSizeData,j=null;K.kind==="source"?(j=[128*o.layout.get("icon-size").evaluate(b,{})],j[0]>32640&&Mt(`${t.layerIds[0]}: Value for "icon-size" is >= 255. Reduce your "icon-size".`)):K.kind==="composite"&&(j=[128*w.compositeIconSizes[0].evaluate(b,{},A),128*w.compositeIconSizes[1].evaluate(b,{},A)],(j[0]>32640||j[1]>32640)&&Mt(`${t.layerIds[0]}: Value for "icon-size" is >= 255. Reduce your "icon-size".`)),t.addSymbols(t.icon,ot,j,v,x,b,0,e,L.lineStartIndex,L.lineLength,-1,A,O),dt=t.icon.placedSymbolArray.length-1,X&&(P=X.length*4,t.addSymbols(t.icon,X,j,v,x,b,2,e,L.lineStartIndex,L.lineLength,-1,A,O),ct=t.icon.placedSymbolArray.length-1)}let jt=Object.keys(i.horizontal);for(let Y of jt){let k=i.horizontal[Y];B||(B=(Kt=(0,Ea.default)(k.text),new la(l,e,u,h,c,k,p,f,d,o.layout.get("text-rotate").evaluate(b,{},A))));let ot=k.positionedLines.length===1;if(z+=tp(t,e,k,a,o,d,b,y,O,L,i.vertical?1:3,ot?jt:[Y],pt,dt,w,A),ot)break}i.vertical&&(it+=tp(t,e,i.vertical,a,o,d,b,y,O,L,2,["vertical"],pt,ct,w,A));let Jt=B?B.boxStartIndex:t.collisionBoxArray.length,Oe=B?B.boxEndIndex:t.collisionBoxArray.length,Gt=F?F.boxStartIndex:t.collisionBoxArray.length,Re=F?F.boxEndIndex:t.collisionBoxArray.length,$e=V?V.boxStartIndex:t.collisionBoxArray.length,sr=V?V.boxEndIndex:t.collisionBoxArray.length,fi=$?$.boxStartIndex:t.collisionBoxArray.length,Te=$?$.boxEndIndex:t.collisionBoxArray.length,$t=-1,ke=(Y,k)=>Y!=null&&Y.circleDiameter?Math.max(Y.circleDiameter,k):k;$t=ke(B,$t),$t=ke(F,$t),$t=ke(V,$t),$t=ke($,$t);let or=+($t>-1);or&&($t*=S/24),t.glyphOffsetArray.length>=t.maxGlyphs&&Mt("Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907"),b.sortKey!==void 0&&t.addToSortKeyRanges(t.symbolInstances.length,b.sortKey);let Ir=_y(o,b,A),[N,at]=Jb(t.textAnchorOffsets,Ir);T&&(Kt=ew(Kt,b)),t.symbolInstances.emplaceBack(e.x,e.y,pt.right>=0?pt.right:-1,pt.center>=0?pt.center:-1,pt.left>=0?pt.left:-1,pt.vertical||-1,dt,ct,Kt,Jt,Oe,Gt,Re,$e,sr,fi,Te,u,z,it,G,P,or,0,p,$t,N,at,O)}function tw(t,e,r,i){let n=t.compareText;if(!(e in n))n[e]=[];else{let a=n[e];for(let s=a.length-1;s>=0;s--)if(i.dist(a[s])s.id),this.index=t.index,this.pixelRatio=t.pixelRatio,this.sourceLayerIndex=t.sourceLayerIndex,this.hasDependencies=!0,this.hasRTLText=!1,this.maxHeightOffset=0,this.sortKeyRanges=[],this.collisionCircleArray=[],this.maxGlyphs=65535;let e=this.layers[0]._unevaluatedLayout._values;this.textSizeData=Wc(this.zoom,e["text-size"]),this.iconSizeData=Wc(this.zoom,e["icon-size"]);let r=this.layers[0].layout,i=r.get("symbol-sort-key"),n=r.get("symbol-z-order");this.canOverlap=ep(r,"text-overlap","text-allow-overlap")!=="never"||ep(r,"icon-overlap","icon-allow-overlap")!=="never"||r.get("text-ignore-placement")||r.get("icon-ignore-placement"),this.sortFeaturesByKey=n!=="viewport-y"&&!i.isConstant();let a=n==="viewport-y"||n==="auto"&&!this.sortFeaturesByKey;this.sortFeaturesByY=a&&this.canOverlap,r.get("symbol-placement")==="point"&&(this.writingModes=r.get("text-writing-mode").map(s=>uy[s])),this.stateDependentLayerIds=this.layers.filter(s=>s.isStateDependent()).map(s=>s.id),this.sourceID=t.sourceID}createArrays(){this.text=new ll(new Dr(this.layers,this.zoom,t=>t.startsWith("text"))),this.icon=new ll(new Dr(this.layers,this.zoom,t=>t.startsWith("icon"))),this.glyphOffsetArray=new ud,this.lineVertexArray=new hd,this.symbolInstances=new ld,this.textAnchorOffsets=new pd}calculateGlyphDependencies(t,e,r,i,n){var l;let a=(i||this.allowVerticalPlacement)&&n,s=su.fromFeature(t,r),o=s.graphemes();for(let u=0;u0)&&(a.value.kind!=="constant"||a.value.value.length>0),u=o.value.kind!=="constant"||!!o.value.value||Object.keys(o.parameters).length>0,h=n.get("symbol-sort-key");if(this.features=[],!l&&!u)return;let c=e.iconDependencies,p=e.glyphDependencies,f=e.availableImages,d=new st(this.zoom);for(let{feature:m,id:g,index:x,sourceLayerIndex:v}of t){let b=i._featureFilter.needGeometry,w=hi(m,b);if(!i._featureFilter.filter(d,w,r))continue;b||(w.geometry=Fr(m));let _;if(l){let L=i.getValueAndResolveTokens("text-field",w,r,f),O=Le.factory(L);this.hasRTLText||(this.hasRTLText=nw(O)),_=Tv(O,i,w)}let A;if(u){let L=i.getValueAndResolveTokens("icon-image",w,r,f);A=L instanceof Se?L:Se.fromString(L)}if(!_&&!A)continue;let S=this.sortFeaturesByKey?h.evaluate(w,{},r):void 0,T={id:g,text:_,icon:A,index:x,sourceLayerIndex:v,geometry:w.geometry,properties:m.properties,type:Fn.types[m.type],sortKey:S};if(this.features.push(T),A&&(c[A.name]=!0),_){let L=a.evaluate(w,{},r).join(","),O=n.get("text-rotation-alignment")!=="viewport"&&n.get("symbol-placement")!=="point";this.allowVerticalPlacement=(y=this.writingModes)==null?void 0:y.includes(2);let B=nl(_.toString());this.calculateGlyphDependencies(_,p,L,O,B);for(let V of _.sections)V.image&&(c[V.image.name]=!0)}}n.get("symbol-placement")==="line"&&(this.features=Iv(this.features)),this.sortFeaturesByKey&&this.features.sort((m,g)=>m.sortKey-g.sortKey)}update(t,e,r){this.stateDependentLayers.length&&(this.text.programConfigurations.updatePaintArrays(t,e,this.layers,{imagePositions:r}),this.icon.programConfigurations.updatePaintArrays(t,e,this.layers,{imagePositions:r}))}addFeatures({options:t,canonical:e,glyphMap:r,glyphPositions:i,iconMap:n,iconPositions:a,showCollisionBoxes:s}){Hb({bucket:this,glyphMap:r,glyphPositions:i,imageMap:n,imagePositions:a,showCollisionBoxes:s,canonical:e,subdivisionGranularity:t.subdivisionGranularity,hasPromoteId:t.featureIndex.promoteId!=null})}isEmpty(){return this.symbolInstances.length===0}uploadPending(){return!this.uploaded||this.text.programConfigurations.needsUpload||this.icon.programConfigurations.needsUpload}upload(t){!this.uploaded&&this.hasDebugData()&&(this.textCollisionBox.upload(t),this.iconCollisionBox.upload(t)),this.text.upload(t,this.sortFeaturesByY,!this.uploaded,this.text.programConfigurations.needsUpload),this.icon.upload(t,this.sortFeaturesByY,!this.uploaded,this.icon.programConfigurations.needsUpload),this.uploaded=!0}destroyDebugData(){this.textCollisionBox.destroy(),this.iconCollisionBox.destroy()}destroy(){this.text.destroy(),this.icon.destroy(),this.hasDebugData()&&this.destroyDebugData()}addToLineVertexArray(t,e){let r=this.lineVertexArray.length;if(t.segment!==void 0){let i=t.dist(e[t.segment+1]),n=t.dist(e[t.segment]),a={};for(let s=t.segment+1;s=0;s--)a[s]={x:e[s].x,y:e[s].y,tileUnitDistanceFromAnchor:n},s>0&&(n+=e[s-1].dist(e[s]));for(let s=0;s0}hasIconData(){return this.icon.segments.get().length>0}hasDebugData(){return this.textCollisionBox&&this.iconCollisionBox}hasTextCollisionBoxData(){return this.hasDebugData()&&this.textCollisionBox.segments.get().length>0}hasIconCollisionBoxData(){return this.hasDebugData()&&this.iconCollisionBox.segments.get().length>0}addIndicesForPlacedSymbol(t,e){let r=t.placedSymbolArray.get(e),i=r.vertexStartIndex+r.numGlyphs*4;for(let n=r.vertexStartIndex;ni[s]-i[o]||n[o]-n[s]),a}addToSortKeyRanges(t,e){let r=this.sortKeyRanges[this.sortKeyRanges.length-1];(r==null?void 0:r.sortKey)===e?r.symbolInstanceEnd=t+1:this.sortKeyRanges.push({sortKey:e,symbolInstanceStart:t,symbolInstanceEnd:t+1})}sortFeatures(t){if(this.sortFeaturesByY&&this.sortedAngle!==t&&!(this.text.segments.get().length>1||this.icon.segments.get().length>1)){this.symbolInstanceIndexes=this.getSortedSymbolIndexes(t),this.sortedAngle=t,this.text.indexArray.clear(),this.icon.indexArray.clear(),this.featureSortOrder=[];for(let e of this.symbolInstanceIndexes){let r=this.symbolInstances.get(e);this.featureSortOrder.push(r.featureIndex);let i=[r.rightJustifiedTextSymbolIndex,r.centerJustifiedTextSymbolIndex,r.leftJustifiedTextSymbolIndex];for(let n=0;n=0&&i.indexOf(a)===n&&this.addIndicesForPlacedSymbol(this.text,a)}r.verticalPlacedTextSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.text,r.verticalPlacedTextSymbolIndex),r.placedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,r.placedIconSymbolIndex),r.verticalPlacedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,r.verticalPlacedIconSymbolIndex)}this.text.indexBuffer&&this.text.indexBuffer.updateData(this.text.indexArray),this.icon.indexBuffer&&this.icon.indexBuffer.updateData(this.icon.indexArray)}}};C("SymbolBucket",Sy,{omit:["layers","collisionBoxArray","features","compareText"]});function aw(t,e){return e.replace(/{([^{}]+)}/g,(r,i)=>t&&i in t?String(t[i]):"")}var rp,sw=()=>rp||(rp=new Yt({"symbol-placement":new R(D.layout_symbol["symbol-placement"],"symbol-placement"),"symbol-spacing":new R(D.layout_symbol["symbol-spacing"],"symbol-spacing"),"symbol-avoid-edges":new R(D.layout_symbol["symbol-avoid-edges"],"symbol-avoid-edges"),"symbol-sort-key":new U(D.layout_symbol["symbol-sort-key"],"symbol-sort-key"),"symbol-z-order":new R(D.layout_symbol["symbol-z-order"],"symbol-z-order"),"icon-allow-overlap":new R(D.layout_symbol["icon-allow-overlap"],"icon-allow-overlap"),"icon-overlap":new R(D.layout_symbol["icon-overlap"],"icon-overlap"),"icon-ignore-placement":new R(D.layout_symbol["icon-ignore-placement"],"icon-ignore-placement"),"icon-optional":new R(D.layout_symbol["icon-optional"],"icon-optional"),"icon-rotation-alignment":new U(D.layout_symbol["icon-rotation-alignment"],"icon-rotation-alignment"),"icon-size":new U(D.layout_symbol["icon-size"],"icon-size"),"icon-text-fit":new R(D.layout_symbol["icon-text-fit"],"icon-text-fit"),"icon-text-fit-padding":new R(D.layout_symbol["icon-text-fit-padding"],"icon-text-fit-padding"),"icon-image":new U(D.layout_symbol["icon-image"],"icon-image"),"icon-rotate":new U(D.layout_symbol["icon-rotate"],"icon-rotate"),"icon-padding":new U(D.layout_symbol["icon-padding"],"icon-padding"),"icon-keep-upright":new R(D.layout_symbol["icon-keep-upright"],"icon-keep-upright"),"icon-offset":new U(D.layout_symbol["icon-offset"],"icon-offset"),"icon-anchor":new U(D.layout_symbol["icon-anchor"],"icon-anchor"),"icon-pitch-alignment":new R(D.layout_symbol["icon-pitch-alignment"],"icon-pitch-alignment"),"text-pitch-alignment":new R(D.layout_symbol["text-pitch-alignment"],"text-pitch-alignment"),"text-rotation-alignment":new R(D.layout_symbol["text-rotation-alignment"],"text-rotation-alignment"),"text-field":new U(D.layout_symbol["text-field"],"text-field"),"text-font":new U(D.layout_symbol["text-font"],"text-font"),"text-size":new U(D.layout_symbol["text-size"],"text-size"),"text-max-width":new U(D.layout_symbol["text-max-width"],"text-max-width"),"text-line-height":new R(D.layout_symbol["text-line-height"],"text-line-height"),"text-letter-spacing":new U(D.layout_symbol["text-letter-spacing"],"text-letter-spacing"),"text-justify":new U(D.layout_symbol["text-justify"],"text-justify"),"text-radial-offset":new U(D.layout_symbol["text-radial-offset"],"text-radial-offset"),"text-variable-anchor":new R(D.layout_symbol["text-variable-anchor"],"text-variable-anchor"),"text-variable-anchor-offset":new U(D.layout_symbol["text-variable-anchor-offset"],"text-variable-anchor-offset"),"text-anchor":new U(D.layout_symbol["text-anchor"],"text-anchor"),"text-max-angle":new R(D.layout_symbol["text-max-angle"],"text-max-angle"),"text-writing-mode":new R(D.layout_symbol["text-writing-mode"],"text-writing-mode"),"text-rotate":new U(D.layout_symbol["text-rotate"],"text-rotate"),"text-padding":new R(D.layout_symbol["text-padding"],"text-padding"),"text-keep-upright":new R(D.layout_symbol["text-keep-upright"],"text-keep-upright"),"text-transform":new U(D.layout_symbol["text-transform"],"text-transform"),"text-offset":new U(D.layout_symbol["text-offset"],"text-offset"),"text-allow-overlap":new R(D.layout_symbol["text-allow-overlap"],"text-allow-overlap"),"text-overlap":new R(D.layout_symbol["text-overlap"],"text-overlap"),"text-ignore-placement":new R(D.layout_symbol["text-ignore-placement"],"text-ignore-placement"),"text-optional":new R(D.layout_symbol["text-optional"],"text-optional"),"symbol-height-offset":new U(D.layout_symbol["symbol-height-offset"],"symbol-height-offset"),"symbol-height-anchor":new R(D.layout_symbol["symbol-height-anchor"],"symbol-height-anchor")})),ip,ow=()=>ip||(ip=new Yt({"icon-opacity":new U(D.paint_symbol["icon-opacity"],"icon-opacity"),"icon-color":new U(D.paint_symbol["icon-color"],"icon-color"),"icon-halo-color":new U(D.paint_symbol["icon-halo-color"],"icon-halo-color"),"icon-halo-width":new U(D.paint_symbol["icon-halo-width"],"icon-halo-width"),"icon-halo-blur":new U(D.paint_symbol["icon-halo-blur"],"icon-halo-blur"),"icon-translate":new R(D.paint_symbol["icon-translate"],"icon-translate"),"icon-translate-anchor":new R(D.paint_symbol["icon-translate-anchor"],"icon-translate-anchor"),"text-opacity":new U(D.paint_symbol["text-opacity"],"text-opacity"),"text-color":new U(D.paint_symbol["text-color"],"text-color",{runtimeType:pe,getOverride:t=>t.textColor,hasOverride:t=>!!t.textColor}),"text-halo-color":new U(D.paint_symbol["text-halo-color"],"text-halo-color"),"text-halo-width":new U(D.paint_symbol["text-halo-width"],"text-halo-width"),"text-halo-blur":new U(D.paint_symbol["text-halo-blur"],"text-halo-blur"),"text-translate":new R(D.paint_symbol["text-translate"],"text-translate"),"text-translate-anchor":new R(D.paint_symbol["text-translate-anchor"],"text-translate-anchor")})),Zs={get paint(){return ow()},get layout(){return sw()}},Ey=class{constructor(t){if(t.property.overrides===void 0)throw Error("overrides must be provided to instantiate FormatSectionOverride class");this.type=t.property.overrides?t.property.overrides.runtimeType:vn,this.defaultValue=t}evaluate(t){if(t.formattedSection){let e=this.defaultValue.property.overrides;if(e!=null&&e.hasOverride(t.formattedSection))return e.getOverride(t.formattedSection)}return t.feature&&t.featureState?this.defaultValue.evaluate(t.feature,t.featureState):this.defaultValue.property.specification.default}eachChild(t){if(!this.defaultValue.isConstant()){let e=this.defaultValue.value;t(e._styleExpression.expression)}}outputDefined(){return!1}serialize(){return null}};C("FormatSectionOverride",Ey,{omit:["defaultValue"]});var lw=class hl extends ye{constructor(e,r){super(e,Zs,r)}recalculate(e,r){super.recalculate(e,r);let i=this.layout.get("icon-rotation-alignment");if((i.value.kind!=="constant"||i.value.value==="auto")&&(this.layout._values["icon-rotation-alignment"]=new le(i.property,{kind:"constant",value:this.layout.get("symbol-placement")==="point"?"viewport":"map"},i.parameters)),this.layout.get("text-rotation-alignment")==="auto"&&(this.layout.get("symbol-placement")==="point"?this.layout._values["text-rotation-alignment"]="viewport":this.layout._values["text-rotation-alignment"]="map"),this.layout.get("text-pitch-alignment")==="auto"&&(this.layout._values["text-pitch-alignment"]=this.layout.get("text-rotation-alignment")==="map"?"map":"viewport"),this.layout.get("icon-pitch-alignment")==="auto"&&(this.layout._values["icon-pitch-alignment"]=this.layout.get("icon-rotation-alignment").constantOr("viewport")),this.layout.get("symbol-placement")==="point"){let n=this.layout.get("text-writing-mode");if(n){let a=[];for(let s of n)a.includes(s)||a.push(s);this.layout._values["text-writing-mode"]=a}else this.layout._values["text-writing-mode"]=["horizontal"]}this._setPaintOverrides()}getValueAndResolveTokens(e,r,i,n){let a=this.layout.get(e).evaluate(r,{},i,n),s=this._unevaluatedLayout._values[e];return!s.isDataDriven()&&!Xa(s.value)&&a?aw(r.properties,a):a}createBucket(e){return new Sy(e)}queryRadius(){return 0}queryIntersectsFeature(){throw Error("Should take a different path in FeatureIndex")}_setPaintOverrides(){for(let e of Zs.paint.overridableProperties){if(!hl.hasPaintOverride(this.layout,e))continue;let r=this.paint.get(e),i=new Bl(new Ey(r),`layers[${this.id}].paint.${r.property.name}`,r.property.specification),n=null;n=r.value.kind==="constant"||r.value.kind==="source"?new ln("source",i):new _a("composite",i,r.value.zoomStops),this.paint._values[e]=new le(r.property,n,r.parameters)}}_handleOverridablePaintPropertyUpdate(e,r,i){return!this.layout||r.isDataDriven()||i.isDataDriven()?!1:hl.hasPaintOverride(this.layout,e)}static hasPaintOverride(e,r){let i=e.get("text-field"),n=Zs.paint.properties[r],a=!1,s=o=>{var l;for(let u of o)if((l=n.overrides)!=null&&l.hasOverride(u)){a=!0;return}};if(i.value.kind==="constant"&&i.value.value instanceof Le)s(i.value.value.sections);else if(i.value.kind==="source"||i.value.kind==="composite"){let o=u=>{if(!a)if(u instanceof ri&&St(u.value)===bn){let h=u.value;s(h.sections)}else u instanceof Yp?s(u.sections):u.eachChild(o)},l=i.value;l._styleExpression&&o(l._styleExpression.expression)}return a}};function uw(t,e,r,i=1){var a;let n=(a=t.get("icon-padding").evaluate(e,{},r))==null?void 0:a.values;return[n[0]*i,n[1]*i,n[2]*i,n[3]*i]}var np,hw=()=>np||(np=new Yt({"background-color":new R(D.paint_background["background-color"],"background-color"),"background-pattern":new id(D.paint_background["background-pattern"],"background-pattern"),"background-opacity":new R(D.paint_background["background-opacity"],"background-opacity")})),cw={get paint(){return hw()}};var pw=class extends ye{constructor(t,e){super(t,cw,e)}};var fw=class extends ye{constructor(t,e){super(t,{},e),this.onAdd=r=>{this.implementation.onAdd&&this.implementation.onAdd(r,r.painter.context.gl)},this.onRemove=r=>{this.implementation.onRemove&&this.implementation.onRemove(r,r.painter.context.gl)},this.implementation=t}is3D(){return this.implementation.renderingMode==="3d"}hasOffscreenPass(){return this.implementation.prerender!==void 0}recalculate(){}updateTransitions(){}hasTransition(){return!1}serialize(){throw Error("Custom layers cannot be serialized")}};function Fy(t,e){if(t.type==="custom")return new fw(t,e);switch(t.type){case"background":return new pw(t,e);case"circle":return new Kg(t,e);case"color-relief":return new lx(t,e);case"fill":return new $x(t,e);case"fill-extrusion":return new u2(t,e);case"heatmap":return new rx(t,e);case"hillshade":return new ax(t,e);case"line":return new rv(t,e);case"raster":return new pg(t,e);case"symbol":return new lw(t,e)}}var dw=class{constructor(t){this._methodToThrottle=t,this._triggered=!1,this._channel=new MessageChannel,this._channel.port2.onmessage=()=>{this._triggered=!1,this._methodToThrottle()}}trigger(){var t;this._triggered||(this._triggered=!0,(t=this._channel)==null||t.port1.postMessage(!0))}remove(){delete this._channel,this._methodToThrottle=()=>{}}},yw={once:!0},Ty=class{constructor(t,e){this.target=t,this.mapId=e,this.resolveRejects={},this.tasks={},this.taskQueue=[],this.abortControllers={},this.messageHandlers={},this.invoker=new dw(()=>this.process()),this.subscription=dh(this.target,"message",r=>this.receive(r),!1),this.globalScope=vr(self)?t:window}registerMessageHandler(t,e){this.messageHandlers[t]=e}unregisterMessageHandler(t){delete this.messageHandlers[t]}sendAsync(t,e){return new Promise((r,i)=>{let n=Math.round(Math.random()*1e18).toString(36).substring(0,10),a=e?dh(e.signal,"abort",()=>{a==null||a.unsubscribe(),delete this.resolveRejects[n];let l={id:n,type:"",origin:location.origin,targetMapId:t.targetMapId,sourceMapId:this.mapId};this.target.postMessage(l),i(new gl(e.signal.reason))},yw):null;this.resolveRejects[n]={resolve:l=>{a==null||a.unsubscribe(),r(l)},reject:l=>{a==null||a.unsubscribe(),i(l)}};let s=[],o=Si(Xe({},t),{id:n,sourceMapId:this.mapId,origin:location.origin,data:Hi(t.data,s)});this.target.postMessage(o,{transfer:s})})}receive(t){let e=t.data,r=e.id,i=["file://","resource://android","null"],n=[e.origin,location.origin],a=e.origin===location.origin,s=n.some(o=>i.includes(o));if((a||s)&&!(e.targetMapId&&this.mapId!==e.targetMapId)){if(e.type===""){delete this.tasks[r];let o=this.abortControllers[r];delete this.abortControllers[r],o&&o.abort();return}if(vr(self)||e.mustQueue){this.tasks[r]=e,this.taskQueue.push(r),this.invoker.trigger();return}this.processTask(r,e)}}process(){if(this.taskQueue.length===0)return;let t=this.taskQueue.shift(),e=this.tasks[t];delete this.tasks[t],this.taskQueue.length>0&&this.invoker.trigger(),e&&this.processTask(t,e)}processTask(t,e){return et(this,null,function*(){if(e.type===""){let n=this.resolveRejects[t];if(delete this.resolveRejects[t],!n)return;e.error?n.reject(tn(Ki(e.error))):n.resolve(Ki(e.data));return}if(!this.messageHandlers[e.type]){this.completeTask(t,null,null);return}let r=Ki(e.data),i=new AbortController;this.abortControllers[t]=i;try{let n=yield this.messageHandlers[e.type](e.sourceMapId,r,i);this.completeTask(t,null,n)}catch(n){this.completeTask(t,tn(n))}})}completeTask(t,e,r){let i=[];delete this.abortControllers[t];let n={id:t,type:"",sourceMapId:this.mapId,origin:location.origin,error:e?Hi(e):null,data:Hi(r,i)};this.target.postMessage(n,{transfer:i})}remove(){this.invoker.remove(),this.subscription.unsubscribe()}};function mw(t,e,r){return!(t<0||t>25||r<0||r>=2**t||e<0||e>=2**t)}var ky=class{constructor(t,e,r){if(!mw(t,e,r))throw Error(`x=${e}, y=${r}, z=${t} outside of bounds. 0<=x<${2**t}, 0<=y<${2**t} 0<=z<=25 `);this.z=t,this.x=e,this.y=r,this.key=Qi(0,t,t,e,r)}equals(t){return this.z===t.z&&this.x===t.x&&this.y===t.y}url(t,e,r){let i=xw(this.x,this.y,this.z),n=vw(this.z,this.x,this.y);return t[(this.x+this.y)%t.length].replace(/{prefix}/g,(this.x%16).toString(16)+(this.y%16).toString(16)).replace(/{z}/g,String(this.z)).replace(/{x}/g,String(this.x)).replace(/{y}/g,String(r==="tms"?2**this.z-this.y-1:this.y)).replace(/{ratio}/g,e>1?"@2x":"").replace(/{quadkey}/g,n).replace(/{bbox-epsg-3857}/g,i)}isChildOf(t){let e=this.z-t.z;return e>0&&t.x===this.x>>e&&t.y===this.y>>e}getTilePoint(t){let e=2**this.z;return new M((t.x*e-this.x)*gt,(t.y*e-this.y)*gt)}toString(){return`${this.z}/${this.x}/${this.y}`}},gw=class{constructor(t,e){this.wrap=t,this.canonical=e,this.key=Qi(t,e.z,e.z,e.x,e.y)}},pu=class se{constructor(e,r,i,n,a){if(this.terrainRttPosMatrix32f=null,e= z; overscaledZ = ${e}; z = ${i}`);this.overscaledZ=e,this.wrap=r,this.canonical=new ky(i,+n,+a),this.key=Qi(r,e,i,n,a)}clone(){return new se(this.overscaledZ,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)}equals(e){return this.overscaledZ===e.overscaledZ&&this.wrap===e.wrap&&this.canonical.equals(e.canonical)}scaledTo(e){if(e>this.overscaledZ)throw Error(`targetZ > this.overscaledZ; targetZ = ${e}; overscaledZ = ${this.overscaledZ}`);let r=this.canonical.z-e;return e>this.canonical.z?new se(e,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y):new se(e,this.wrap,e,this.canonical.x>>r,this.canonical.y>>r)}isOverscaled(){return this.overscaledZ>this.canonical.z}calculateScaledKey(e,r){if(e>this.overscaledZ)throw Error(`targetZ > this.overscaledZ; targetZ = ${e}; overscaledZ = ${this.overscaledZ}`);let i=this.canonical.z-e;return e>this.canonical.z?Qi(this.wrap*+r,e,this.canonical.z,this.canonical.x,this.canonical.y):Qi(this.wrap*+r,e,e,this.canonical.x>>i,this.canonical.y>>i)}isChildOf(e){if(e.wrap!==this.wrap||this.overscaledZ-e.overscaledZ<=0)return!1;if(e.overscaledZ===0)return this.overscaledZ>0;let r=this.canonical.z-e.canonical.z;return r<0?!1:e.canonical.x===this.canonical.x>>r&&e.canonical.y===this.canonical.y>>r}children(e){if(this.overscaledZ>=e)return[new se(this.overscaledZ+1,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)];let r=this.canonical.z+1,i=this.canonical.x*2,n=this.canonical.y*2;return[new se(r,this.wrap,r,i,n),new se(r,this.wrap,r,i+1,n),new se(r,this.wrap,r,i,n+1),new se(r,this.wrap,r,i+1,n+1)]}isLessThan(e){return this.wrape.wrap?!1:this.overscaledZe.overscaledZ?!1:this.canonical.xe.canonical.x?!1:this.canonical.y=0&&e=0&&r=u)return null;let c=this.canonical.x+n,p=this.wrap;return c<0?(p-=Math.ceil(-c/u),c=(c%u+u)%u):c>=u&&(p+=Math.floor(c/u),c%=u),{tileID:new se(this.overscaledZ,p,l,c,h),x:s,y:o}}};function Qi(t,e,r,i,n){t*=2,t<0&&(t=t*-1-1);let a=1<0;n--){let a=1<Dw(n,a,r),t.layers[i])}function Dw(t,e,r=""){e.writeVarintField(15,t.version||1),e.writeStringField(1,t.name||""),e.writeVarintField(5,t.extent||4096);let i={jsonPrefix:r,keys:[],values:[],keycache:{},valuecache:{}};for(let s=0;s>31}function Sw(t,e){let r=t.loadGeometry(),i=t.type,n=0,a=0;for(let s of r){let o=1;i===1&&(o=s.length),e.writeVarint(Ks(1,o));let l=i===3?s.length-1:s.length;for(let u=0;u=this._numberToString.length)throw Error(`Out of bounds. Index requested n=${t} can\'t be >= this._numberToString.length ${this._numberToString.length}`);return this._numberToString[t]}},Fw=class{constructor(t,e,r,i,n){this.type="Feature",this._vectorTileFeature=t,this._x=r,this._y=i,this._z=e;for(let a in t.properties)typeof t.properties[a]=="string"&&t.properties[a].startsWith("__$json__:")&&(t.properties[a]=JSON.parse(t.properties[a].slice(10)));this.properties=t.properties,this.id=n}projectPoint(t,e,r,i){return[(t.x+e)*360/i-180,360/Math.PI*Math.atan(Math.exp((1-(t.y+r)*2/i)*Math.PI))-90]}projectLine(t,e,r,i){return t.map(n=>this.projectPoint(n,e,r,i))}get geometry(){if(this._geometry)return this._geometry;let t=this._vectorTileFeature,e=t.extent*2**this._z,r=t.extent*this._x,i=t.extent*this._y,n=t.loadGeometry();switch(t.type){case 1:{let a=[];for(let o of n)a.push(o[0]);let s=this.projectLine(a,r,i,e);this._geometry=a.length===1?{type:"Point",coordinates:s[0]}:{type:"MultiPoint",coordinates:s};break}case 2:{let a=n.map(s=>this.projectLine(s,r,i,e));this._geometry=a.length===1?{type:"LineString",coordinates:a[0]}:{type:"MultiLineString",coordinates:a};break}case 3:{let a=Ld(n),s=[];for(let o of a)s.push(o.map(l=>this.projectLine(l,r,i,e)));this._geometry=s.length===1?{type:"Polygon",coordinates:s[0]}:{type:"MultiPolygon",coordinates:s};break}default:throw Error(`unknown feature type: ${t.type}`)}return this._geometry}set geometry(t){this._geometry=t}toJSON(){let t={geometry:this.geometry};for(let e in this)e!=="_geometry"&&e!=="_vectorTileFeature"&&e!=="_x"&&e!=="_y"&&e!=="_z"&&(t[e]=this[e]);return t}},Tr=class{constructor(t,e,r){this._name=t,this.dataBuffer=e,typeof r=="number"?this._size=r:(this.nullabilityBuffer=r,this._size=r.size())}getValue(t){return this.nullabilityBuffer&&!this.nullabilityBuffer.get(t)?null:this.getValueFromBuffer(t)}has(t){var e;return((e=this.nullabilityBuffer)==null?void 0:e.get(t))||!this.nullabilityBuffer}get name(){return this._name}get size(){return this._size}},es=class extends Tr{},yu=class extends es{getValueFromBuffer(t){return this.dataBuffer[t]}},mu=class extends es{getValueFromBuffer(t){return this.dataBuffer[t]}},Cy=class extends Tr{constructor(t,e,r,i){super(t,e,i),this.delta=r}},gu=class extends Cy{constructor(t,e,r,i,n){super(t,n?Int32Array.of(e):Uint32Array.of(e),r,i)}getValueFromBuffer(t){return this.dataBuffer[0]+t*this.delta}},xu=class extends Tr{constructor(t,e,r,i){super(t,i?Int32Array.of(e):Uint32Array.of(e),r)}getValueFromBuffer(t){return this.dataBuffer[0]}},Tw=class{constructor(t,e,r,i,n=4096){if(this._name=t,this._geometryVector=e,this._idVector=r,this._propertyVectors=i,this._extent=n,t.length===0)throw Error("Missing layer name")}get name(){return this._name}get idVector(){return this._idVector}get geometryVector(){return this._geometryVector}get propertyVectors(){var t;return(t=this._propertyVectors)!=null?t:[]}getPropertyVector(t){return this.propertyVectorsMap||(this.propertyVectorsMap=new Map(this.propertyVectors.map(e=>[e.name,e]))),this.propertyVectorsMap.get(t)}get numFeatures(){return this.geometryVector.numGeometries}get extent(){return this._extent}getFeatures(){let t=[],e=this.geometryVector.getGeometries();for(let r=0;r>>32-t;var pl=vu,bu=65536;function wu(t,e){return t-t%e}function kw(t){return wu(t+31,32)}function Py(t){if(!Number.isFinite(t)||t<=0)return bu;let e=wu(Math.floor(t),256);return e===0?256:e}function Iw(t){let e=t>>>0;return((e&255)<<24|(e&65280)<<8|e>>>8&65280|e>>>24&255)>>>0}function Cw(t,e,r,i){let n=i,a=t[e]>>>0,s=t[e+1]>>>0;r[n++]=a>>>0&3,r[n++]=a>>>2&3,r[n++]=a>>>4&3,r[n++]=a>>>6&3,r[n++]=a>>>8&3,r[n++]=a>>>10&3,r[n++]=a>>>12&3,r[n++]=a>>>14&3,r[n++]=a>>>16&3,r[n++]=a>>>18&3,r[n++]=a>>>20&3,r[n++]=a>>>22&3,r[n++]=a>>>24&3,r[n++]=a>>>26&3,r[n++]=a>>>28&3,r[n++]=a>>>30&3,r[n++]=s>>>0&3,r[n++]=s>>>2&3,r[n++]=s>>>4&3,r[n++]=s>>>6&3,r[n++]=s>>>8&3,r[n++]=s>>>10&3,r[n++]=s>>>12&3,r[n++]=s>>>14&3,r[n++]=s>>>16&3,r[n++]=s>>>18&3,r[n++]=s>>>20&3,r[n++]=s>>>22&3,r[n++]=s>>>24&3,r[n++]=s>>>26&3,r[n++]=s>>>28&3,r[n]=s>>>30&3}function Mw(t,e,r,i){let n=i,a=t[e]>>>0,s=t[e+1]>>>0,o=t[e+2]>>>0;r[n++]=a>>>0&7,r[n++]=a>>>3&7,r[n++]=a>>>6&7,r[n++]=a>>>9&7,r[n++]=a>>>12&7,r[n++]=a>>>15&7,r[n++]=a>>>18&7,r[n++]=a>>>21&7,r[n++]=a>>>24&7,r[n++]=a>>>27&7,r[n++]=(a>>>30|(s&1)<<2)&7,r[n++]=s>>>1&7,r[n++]=s>>>4&7,r[n++]=s>>>7&7,r[n++]=s>>>10&7,r[n++]=s>>>13&7,r[n++]=s>>>16&7,r[n++]=s>>>19&7,r[n++]=s>>>22&7,r[n++]=s>>>25&7,r[n++]=s>>>28&7,r[n++]=(s>>>31|(o&3)<<1)&7,r[n++]=o>>>2&7,r[n++]=o>>>5&7,r[n++]=o>>>8&7,r[n++]=o>>>11&7,r[n++]=o>>>14&7,r[n++]=o>>>17&7,r[n++]=o>>>20&7,r[n++]=o>>>23&7,r[n++]=o>>>26&7,r[n]=o>>>29&7}function Bw(t,e,r,i){let n=i,a=t[e]>>>0,s=t[e+1]>>>0,o=t[e+2]>>>0,l=t[e+3]>>>0;r[n++]=a>>>0&15,r[n++]=a>>>4&15,r[n++]=a>>>8&15,r[n++]=a>>>12&15,r[n++]=a>>>16&15,r[n++]=a>>>20&15,r[n++]=a>>>24&15,r[n++]=a>>>28&15,r[n++]=s>>>0&15,r[n++]=s>>>4&15,r[n++]=s>>>8&15,r[n++]=s>>>12&15,r[n++]=s>>>16&15,r[n++]=s>>>20&15,r[n++]=s>>>24&15,r[n++]=s>>>28&15,r[n++]=o>>>0&15,r[n++]=o>>>4&15,r[n++]=o>>>8&15,r[n++]=o>>>12&15,r[n++]=o>>>16&15,r[n++]=o>>>20&15,r[n++]=o>>>24&15,r[n++]=o>>>28&15,r[n++]=l>>>0&15,r[n++]=l>>>4&15,r[n++]=l>>>8&15,r[n++]=l>>>12&15,r[n++]=l>>>16&15,r[n++]=l>>>20&15,r[n++]=l>>>24&15,r[n]=l>>>28&15}function Pw(t,e,r,i){let n=i,a=t[e]>>>0,s=t[e+1]>>>0,o=t[e+2]>>>0,l=t[e+3]>>>0,u=t[e+4]>>>0;r[n++]=a>>>0&31,r[n++]=a>>>5&31,r[n++]=a>>>10&31,r[n++]=a>>>15&31,r[n++]=a>>>20&31,r[n++]=a>>>25&31,r[n++]=(a>>>30|(s&7)<<2)&31,r[n++]=s>>>3&31,r[n++]=s>>>8&31,r[n++]=s>>>13&31,r[n++]=s>>>18&31,r[n++]=s>>>23&31,r[n++]=(s>>>28|(o&1)<<4)&31,r[n++]=o>>>1&31,r[n++]=o>>>6&31,r[n++]=o>>>11&31,r[n++]=o>>>16&31,r[n++]=o>>>21&31,r[n++]=o>>>26&31,r[n++]=(o>>>31|(l&15)<<1)&31,r[n++]=l>>>4&31,r[n++]=l>>>9&31,r[n++]=l>>>14&31,r[n++]=l>>>19&31,r[n++]=l>>>24&31,r[n++]=(l>>>29|(u&3)<<3)&31,r[n++]=u>>>2&31,r[n++]=u>>>7&31,r[n++]=u>>>12&31,r[n++]=u>>>17&31,r[n++]=u>>>22&31,r[n]=u>>>27&31}function zw(t,e,r,i){let n=i,a=t[e]>>>0,s=t[e+1]>>>0,o=t[e+2]>>>0,l=t[e+3]>>>0,u=t[e+4]>>>0,h=t[e+5]>>>0;r[n++]=a>>>0&63,r[n++]=a>>>6&63,r[n++]=a>>>12&63,r[n++]=a>>>18&63,r[n++]=a>>>24&63,r[n++]=(a>>>30|(s&15)<<2)&63,r[n++]=s>>>4&63,r[n++]=s>>>10&63,r[n++]=s>>>16&63,r[n++]=s>>>22&63,r[n++]=(s>>>28|(o&3)<<4)&63,r[n++]=o>>>2&63,r[n++]=o>>>8&63,r[n++]=o>>>14&63,r[n++]=o>>>20&63,r[n++]=o>>>26&63,r[n++]=l>>>0&63,r[n++]=l>>>6&63,r[n++]=l>>>12&63,r[n++]=l>>>18&63,r[n++]=l>>>24&63,r[n++]=(l>>>30|(u&15)<<2)&63,r[n++]=u>>>4&63,r[n++]=u>>>10&63,r[n++]=u>>>16&63,r[n++]=u>>>22&63,r[n++]=(u>>>28|(h&3)<<4)&63,r[n++]=h>>>2&63,r[n++]=h>>>8&63,r[n++]=h>>>14&63,r[n++]=h>>>20&63,r[n]=h>>>26&63}function Lw(t,e,r,i){let n=i,a=t[e]>>>0,s=t[e+1]>>>0,o=t[e+2]>>>0,l=t[e+3]>>>0,u=t[e+4]>>>0,h=t[e+5]>>>0,c=t[e+6]>>>0;r[n++]=a>>>0&127,r[n++]=a>>>7&127,r[n++]=a>>>14&127,r[n++]=a>>>21&127,r[n++]=(a>>>28|(s&7)<<4)&127,r[n++]=s>>>3&127,r[n++]=s>>>10&127,r[n++]=s>>>17&127,r[n++]=s>>>24&127,r[n++]=(s>>>31|(o&63)<<1)&127,r[n++]=o>>>6&127,r[n++]=o>>>13&127,r[n++]=o>>>20&127,r[n++]=(o>>>27|(l&3)<<5)&127,r[n++]=l>>>2&127,r[n++]=l>>>9&127,r[n++]=l>>>16&127,r[n++]=l>>>23&127,r[n++]=(l>>>30|(u&31)<<2)&127,r[n++]=u>>>5&127,r[n++]=u>>>12&127,r[n++]=u>>>19&127,r[n++]=(u>>>26|(h&1)<<6)&127,r[n++]=h>>>1&127,r[n++]=h>>>8&127,r[n++]=h>>>15&127,r[n++]=h>>>22&127,r[n++]=(h>>>29|(c&15)<<3)&127,r[n++]=c>>>4&127,r[n++]=c>>>11&127,r[n++]=c>>>18&127,r[n]=c>>>25&127}function Vw(t,e,r,i){let n=i,a=t[e]>>>0,s=t[e+1]>>>0,o=t[e+2]>>>0,l=t[e+3]>>>0,u=t[e+4]>>>0,h=t[e+5]>>>0,c=t[e+6]>>>0,p=t[e+7]>>>0;r[n++]=a>>>0&255,r[n++]=a>>>8&255,r[n++]=a>>>16&255,r[n++]=a>>>24&255,r[n++]=s>>>0&255,r[n++]=s>>>8&255,r[n++]=s>>>16&255,r[n++]=s>>>24&255,r[n++]=o>>>0&255,r[n++]=o>>>8&255,r[n++]=o>>>16&255,r[n++]=o>>>24&255,r[n++]=l>>>0&255,r[n++]=l>>>8&255,r[n++]=l>>>16&255,r[n++]=l>>>24&255,r[n++]=u>>>0&255,r[n++]=u>>>8&255,r[n++]=u>>>16&255,r[n++]=u>>>24&255,r[n++]=h>>>0&255,r[n++]=h>>>8&255,r[n++]=h>>>16&255,r[n++]=h>>>24&255,r[n++]=c>>>0&255,r[n++]=c>>>8&255,r[n++]=c>>>16&255,r[n++]=c>>>24&255,r[n++]=p>>>0&255,r[n++]=p>>>8&255,r[n++]=p>>>16&255,r[n]=p>>>24&255}function Ow(t,e,r,i){let n=i,a=t[e]>>>0,s=t[e+1]>>>0,o=t[e+2]>>>0,l=t[e+3]>>>0,u=t[e+4]>>>0,h=t[e+5]>>>0,c=t[e+6]>>>0,p=t[e+7]>>>0,f=t[e+8]>>>0;r[n++]=a>>>0&511,r[n++]=a>>>9&511,r[n++]=a>>>18&511,r[n++]=(a>>>27|(s&15)<<5)&511,r[n++]=s>>>4&511,r[n++]=s>>>13&511,r[n++]=s>>>22&511,r[n++]=(s>>>31|(o&255)<<1)&511,r[n++]=o>>>8&511,r[n++]=o>>>17&511,r[n++]=(o>>>26|(l&7)<<6)&511,r[n++]=l>>>3&511,r[n++]=l>>>12&511,r[n++]=l>>>21&511,r[n++]=(l>>>30|(u&127)<<2)&511,r[n++]=u>>>7&511,r[n++]=u>>>16&511,r[n++]=(u>>>25|(h&3)<<7)&511,r[n++]=h>>>2&511,r[n++]=h>>>11&511,r[n++]=h>>>20&511,r[n++]=(h>>>29|(c&63)<<3)&511,r[n++]=c>>>6&511,r[n++]=c>>>15&511,r[n++]=(c>>>24|(p&1)<<8)&511,r[n++]=p>>>1&511,r[n++]=p>>>10&511,r[n++]=p>>>19&511,r[n++]=(p>>>28|(f&31)<<4)&511,r[n++]=f>>>5&511,r[n++]=f>>>14&511,r[n]=f>>>23&511}function Rw(t,e,r,i){let n=i,a=t[e]>>>0,s=t[e+1]>>>0,o=t[e+2]>>>0,l=t[e+3]>>>0,u=t[e+4]>>>0,h=t[e+5]>>>0,c=t[e+6]>>>0,p=t[e+7]>>>0,f=t[e+8]>>>0,d=t[e+9]>>>0;r[n++]=a>>>0&1023,r[n++]=a>>>10&1023,r[n++]=a>>>20&1023,r[n++]=(a>>>30|(s&255)<<2)&1023,r[n++]=s>>>8&1023,r[n++]=s>>>18&1023,r[n++]=(s>>>28|(o&63)<<4)&1023,r[n++]=o>>>6&1023,r[n++]=o>>>16&1023,r[n++]=(o>>>26|(l&15)<<6)&1023,r[n++]=l>>>4&1023,r[n++]=l>>>14&1023,r[n++]=(l>>>24|(u&3)<<8)&1023,r[n++]=u>>>2&1023,r[n++]=u>>>12&1023,r[n++]=u>>>22&1023,r[n++]=h>>>0&1023,r[n++]=h>>>10&1023,r[n++]=h>>>20&1023,r[n++]=(h>>>30|(c&255)<<2)&1023,r[n++]=c>>>8&1023,r[n++]=c>>>18&1023,r[n++]=(c>>>28|(p&63)<<4)&1023,r[n++]=p>>>6&1023,r[n++]=p>>>16&1023,r[n++]=(p>>>26|(f&15)<<6)&1023,r[n++]=f>>>4&1023,r[n++]=f>>>14&1023,r[n++]=(f>>>24|(d&3)<<8)&1023,r[n++]=d>>>2&1023,r[n++]=d>>>12&1023,r[n]=d>>>22&1023}function $w(t,e,r,i){let n=i,a=t[e]>>>0,s=t[e+1]>>>0,o=t[e+2]>>>0,l=t[e+3]>>>0,u=t[e+4]>>>0,h=t[e+5]>>>0,c=t[e+6]>>>0,p=t[e+7]>>>0,f=t[e+8]>>>0,d=t[e+9]>>>0,y=t[e+10]>>>0;r[n++]=a>>>0&2047,r[n++]=a>>>11&2047,r[n++]=(a>>>22|(s&1)<<10)&2047,r[n++]=s>>>1&2047,r[n++]=s>>>12&2047,r[n++]=(s>>>23|(o&3)<<9)&2047,r[n++]=o>>>2&2047,r[n++]=o>>>13&2047,r[n++]=(o>>>24|(l&7)<<8)&2047,r[n++]=l>>>3&2047,r[n++]=l>>>14&2047,r[n++]=(l>>>25|(u&15)<<7)&2047,r[n++]=u>>>4&2047,r[n++]=u>>>15&2047,r[n++]=(u>>>26|(h&31)<<6)&2047,r[n++]=h>>>5&2047,r[n++]=h>>>16&2047,r[n++]=(h>>>27|(c&63)<<5)&2047,r[n++]=c>>>6&2047,r[n++]=c>>>17&2047,r[n++]=(c>>>28|(p&127)<<4)&2047,r[n++]=p>>>7&2047,r[n++]=p>>>18&2047,r[n++]=(p>>>29|(f&255)<<3)&2047,r[n++]=f>>>8&2047,r[n++]=f>>>19&2047,r[n++]=(f>>>30|(d&511)<<2)&2047,r[n++]=d>>>9&2047,r[n++]=d>>>20&2047,r[n++]=(d>>>31|(y&1023)<<1)&2047,r[n++]=y>>>10&2047,r[n]=y>>>21&2047}function Nw(t,e,r,i){let n=i,a=t[e]>>>0,s=t[e+1]>>>0,o=t[e+2]>>>0,l=t[e+3]>>>0,u=t[e+4]>>>0,h=t[e+5]>>>0,c=t[e+6]>>>0,p=t[e+7]>>>0,f=t[e+8]>>>0,d=t[e+9]>>>0,y=t[e+10]>>>0,m=t[e+11]>>>0;r[n++]=a>>>0&4095,r[n++]=a>>>12&4095,r[n++]=(a>>>24|(s&15)<<8)&4095,r[n++]=s>>>4&4095,r[n++]=s>>>16&4095,r[n++]=(s>>>28|(o&255)<<4)&4095,r[n++]=o>>>8&4095,r[n++]=o>>>20&4095,r[n++]=l>>>0&4095,r[n++]=l>>>12&4095,r[n++]=(l>>>24|(u&15)<<8)&4095,r[n++]=u>>>4&4095,r[n++]=u>>>16&4095,r[n++]=(u>>>28|(h&255)<<4)&4095,r[n++]=h>>>8&4095,r[n++]=h>>>20&4095,r[n++]=c>>>0&4095,r[n++]=c>>>12&4095,r[n++]=(c>>>24|(p&15)<<8)&4095,r[n++]=p>>>4&4095,r[n++]=p>>>16&4095,r[n++]=(p>>>28|(f&255)<<4)&4095,r[n++]=f>>>8&4095,r[n++]=f>>>20&4095,r[n++]=d>>>0&4095,r[n++]=d>>>12&4095,r[n++]=(d>>>24|(y&15)<<8)&4095,r[n++]=y>>>4&4095,r[n++]=y>>>16&4095,r[n++]=(y>>>28|(m&255)<<4)&4095,r[n++]=m>>>8&4095,r[n]=m>>>20&4095}function Uw(t,e,r,i){let n=i,a=t[e]>>>0,s=t[e+1]>>>0,o=t[e+2]>>>0,l=t[e+3]>>>0,u=t[e+4]>>>0,h=t[e+5]>>>0,c=t[e+6]>>>0,p=t[e+7]>>>0,f=t[e+8]>>>0,d=t[e+9]>>>0,y=t[e+10]>>>0,m=t[e+11]>>>0,g=t[e+12]>>>0,x=t[e+13]>>>0,v=t[e+14]>>>0,b=t[e+15]>>>0;r[n++]=a>>>0&65535,r[n++]=a>>>16&65535,r[n++]=s>>>0&65535,r[n++]=s>>>16&65535,r[n++]=o>>>0&65535,r[n++]=o>>>16&65535,r[n++]=l>>>0&65535,r[n++]=l>>>16&65535,r[n++]=u>>>0&65535,r[n++]=u>>>16&65535,r[n++]=h>>>0&65535,r[n++]=h>>>16&65535,r[n++]=c>>>0&65535,r[n++]=c>>>16&65535,r[n++]=p>>>0&65535,r[n++]=p>>>16&65535,r[n++]=f>>>0&65535,r[n++]=f>>>16&65535,r[n++]=d>>>0&65535,r[n++]=d>>>16&65535,r[n++]=y>>>0&65535,r[n++]=y>>>16&65535,r[n++]=m>>>0&65535,r[n++]=m>>>16&65535,r[n++]=g>>>0&65535,r[n++]=g>>>16&65535,r[n++]=x>>>0&65535,r[n++]=x>>>16&65535,r[n++]=v>>>0&65535,r[n++]=v>>>16&65535,r[n++]=b>>>0&65535,r[n]=b>>>16&65535}function qw(t,e,r,i){let n=i,a=e;for(let s=0;s<8;s++){let o=t[a++]>>>0;r[n++]=o>>>0&1,r[n++]=o>>>1&1,r[n++]=o>>>2&1,r[n++]=o>>>3&1,r[n++]=o>>>4&1,r[n++]=o>>>5&1,r[n++]=o>>>6&1,r[n++]=o>>>7&1,r[n++]=o>>>8&1,r[n++]=o>>>9&1,r[n++]=o>>>10&1,r[n++]=o>>>11&1,r[n++]=o>>>12&1,r[n++]=o>>>13&1,r[n++]=o>>>14&1,r[n++]=o>>>15&1,r[n++]=o>>>16&1,r[n++]=o>>>17&1,r[n++]=o>>>18&1,r[n++]=o>>>19&1,r[n++]=o>>>20&1,r[n++]=o>>>21&1,r[n++]=o>>>22&1,r[n++]=o>>>23&1,r[n++]=o>>>24&1,r[n++]=o>>>25&1,r[n++]=o>>>26&1,r[n++]=o>>>27&1,r[n++]=o>>>28&1,r[n++]=o>>>29&1,r[n++]=o>>>30&1,r[n++]=o>>>31&1}}function jw(t,e,r,i){let n=i,a=e;for(let s=0;s<8;s++){let o=t[a++]>>>0,l=t[a++]>>>0;r[n++]=o>>>0&3,r[n++]=o>>>2&3,r[n++]=o>>>4&3,r[n++]=o>>>6&3,r[n++]=o>>>8&3,r[n++]=o>>>10&3,r[n++]=o>>>12&3,r[n++]=o>>>14&3,r[n++]=o>>>16&3,r[n++]=o>>>18&3,r[n++]=o>>>20&3,r[n++]=o>>>22&3,r[n++]=o>>>24&3,r[n++]=o>>>26&3,r[n++]=o>>>28&3,r[n++]=o>>>30&3,r[n++]=l>>>0&3,r[n++]=l>>>2&3,r[n++]=l>>>4&3,r[n++]=l>>>6&3,r[n++]=l>>>8&3,r[n++]=l>>>10&3,r[n++]=l>>>12&3,r[n++]=l>>>14&3,r[n++]=l>>>16&3,r[n++]=l>>>18&3,r[n++]=l>>>20&3,r[n++]=l>>>22&3,r[n++]=l>>>24&3,r[n++]=l>>>26&3,r[n++]=l>>>28&3,r[n++]=l>>>30&3}}function Gw(t,e,r,i){let n=i,a=e;for(let s=0;s<8;s++){let o=t[a++]>>>0,l=t[a++]>>>0,u=t[a++]>>>0;r[n++]=o>>>0&7,r[n++]=o>>>3&7,r[n++]=o>>>6&7,r[n++]=o>>>9&7,r[n++]=o>>>12&7,r[n++]=o>>>15&7,r[n++]=o>>>18&7,r[n++]=o>>>21&7,r[n++]=o>>>24&7,r[n++]=o>>>27&7,r[n++]=(o>>>30|(l&1)<<2)&7,r[n++]=l>>>1&7,r[n++]=l>>>4&7,r[n++]=l>>>7&7,r[n++]=l>>>10&7,r[n++]=l>>>13&7,r[n++]=l>>>16&7,r[n++]=l>>>19&7,r[n++]=l>>>22&7,r[n++]=l>>>25&7,r[n++]=l>>>28&7,r[n++]=(l>>>31|(u&3)<<1)&7,r[n++]=u>>>2&7,r[n++]=u>>>5&7,r[n++]=u>>>8&7,r[n++]=u>>>11&7,r[n++]=u>>>14&7,r[n++]=u>>>17&7,r[n++]=u>>>20&7,r[n++]=u>>>23&7,r[n++]=u>>>26&7,r[n++]=u>>>29&7}}function Xw(t,e,r,i){let n=i,a=e;for(let s=0;s<8;s++){let o=t[a++]>>>0,l=t[a++]>>>0,u=t[a++]>>>0,h=t[a++]>>>0;r[n++]=o>>>0&15,r[n++]=o>>>4&15,r[n++]=o>>>8&15,r[n++]=o>>>12&15,r[n++]=o>>>16&15,r[n++]=o>>>20&15,r[n++]=o>>>24&15,r[n++]=o>>>28&15,r[n++]=l>>>0&15,r[n++]=l>>>4&15,r[n++]=l>>>8&15,r[n++]=l>>>12&15,r[n++]=l>>>16&15,r[n++]=l>>>20&15,r[n++]=l>>>24&15,r[n++]=l>>>28&15,r[n++]=u>>>0&15,r[n++]=u>>>4&15,r[n++]=u>>>8&15,r[n++]=u>>>12&15,r[n++]=u>>>16&15,r[n++]=u>>>20&15,r[n++]=u>>>24&15,r[n++]=u>>>28&15,r[n++]=h>>>0&15,r[n++]=h>>>4&15,r[n++]=h>>>8&15,r[n++]=h>>>12&15,r[n++]=h>>>16&15,r[n++]=h>>>20&15,r[n++]=h>>>24&15,r[n++]=h>>>28&15}}function Yw(t,e,r,i){let n=i,a=e;for(let s=0;s<8;s++){let o=t[a++]>>>0,l=t[a++]>>>0,u=t[a++]>>>0,h=t[a++]>>>0,c=t[a++]>>>0;r[n++]=o>>>0&31,r[n++]=o>>>5&31,r[n++]=o>>>10&31,r[n++]=o>>>15&31,r[n++]=o>>>20&31,r[n++]=o>>>25&31,r[n++]=(o>>>30|(l&7)<<2)&31,r[n++]=l>>>3&31,r[n++]=l>>>8&31,r[n++]=l>>>13&31,r[n++]=l>>>18&31,r[n++]=l>>>23&31,r[n++]=(l>>>28|(u&1)<<4)&31,r[n++]=u>>>1&31,r[n++]=u>>>6&31,r[n++]=u>>>11&31,r[n++]=u>>>16&31,r[n++]=u>>>21&31,r[n++]=u>>>26&31,r[n++]=(u>>>31|(h&15)<<1)&31,r[n++]=h>>>4&31,r[n++]=h>>>9&31,r[n++]=h>>>14&31,r[n++]=h>>>19&31,r[n++]=h>>>24&31,r[n++]=(h>>>29|(c&3)<<3)&31,r[n++]=c>>>2&31,r[n++]=c>>>7&31,r[n++]=c>>>12&31,r[n++]=c>>>17&31,r[n++]=c>>>22&31,r[n++]=c>>>27&31}}function Ww(t,e,r,i){let n=i,a=e;for(let s=0;s<8;s++){let o=t[a++]>>>0,l=t[a++]>>>0,u=t[a++]>>>0,h=t[a++]>>>0,c=t[a++]>>>0,p=t[a++]>>>0;r[n++]=o>>>0&63,r[n++]=o>>>6&63,r[n++]=o>>>12&63,r[n++]=o>>>18&63,r[n++]=o>>>24&63,r[n++]=(o>>>30|(l&15)<<2)&63,r[n++]=l>>>4&63,r[n++]=l>>>10&63,r[n++]=l>>>16&63,r[n++]=l>>>22&63,r[n++]=(l>>>28|(u&3)<<4)&63,r[n++]=u>>>2&63,r[n++]=u>>>8&63,r[n++]=u>>>14&63,r[n++]=u>>>20&63,r[n++]=u>>>26&63,r[n++]=h>>>0&63,r[n++]=h>>>6&63,r[n++]=h>>>12&63,r[n++]=h>>>18&63,r[n++]=h>>>24&63,r[n++]=(h>>>30|(c&15)<<2)&63,r[n++]=c>>>4&63,r[n++]=c>>>10&63,r[n++]=c>>>16&63,r[n++]=c>>>22&63,r[n++]=(c>>>28|(p&3)<<4)&63,r[n++]=p>>>2&63,r[n++]=p>>>8&63,r[n++]=p>>>14&63,r[n++]=p>>>20&63,r[n++]=p>>>26&63}}function Zw(t,e,r,i){let n=i,a=e;for(let s=0;s<8;s++){let o=t[a++]>>>0,l=t[a++]>>>0,u=t[a++]>>>0,h=t[a++]>>>0,c=t[a++]>>>0,p=t[a++]>>>0,f=t[a++]>>>0;r[n++]=o>>>0&127,r[n++]=o>>>7&127,r[n++]=o>>>14&127,r[n++]=o>>>21&127,r[n++]=(o>>>28|(l&7)<<4)&127,r[n++]=l>>>3&127,r[n++]=l>>>10&127,r[n++]=l>>>17&127,r[n++]=l>>>24&127,r[n++]=(l>>>31|(u&63)<<1)&127,r[n++]=u>>>6&127,r[n++]=u>>>13&127,r[n++]=u>>>20&127,r[n++]=(u>>>27|(h&3)<<5)&127,r[n++]=h>>>2&127,r[n++]=h>>>9&127,r[n++]=h>>>16&127,r[n++]=h>>>23&127,r[n++]=(h>>>30|(c&31)<<2)&127,r[n++]=c>>>5&127,r[n++]=c>>>12&127,r[n++]=c>>>19&127,r[n++]=(c>>>26|(p&1)<<6)&127,r[n++]=p>>>1&127,r[n++]=p>>>8&127,r[n++]=p>>>15&127,r[n++]=p>>>22&127,r[n++]=(p>>>29|(f&15)<<3)&127,r[n++]=f>>>4&127,r[n++]=f>>>11&127,r[n++]=f>>>18&127,r[n++]=f>>>25&127}}function Hw(t,e,r,i){let n=i,a=e;for(let s=0;s<8;s++){let o=t[a++]>>>0,l=t[a++]>>>0,u=t[a++]>>>0,h=t[a++]>>>0,c=t[a++]>>>0,p=t[a++]>>>0,f=t[a++]>>>0,d=t[a++]>>>0;r[n++]=o>>>0&255,r[n++]=o>>>8&255,r[n++]=o>>>16&255,r[n++]=o>>>24&255,r[n++]=l>>>0&255,r[n++]=l>>>8&255,r[n++]=l>>>16&255,r[n++]=l>>>24&255,r[n++]=u>>>0&255,r[n++]=u>>>8&255,r[n++]=u>>>16&255,r[n++]=u>>>24&255,r[n++]=h>>>0&255,r[n++]=h>>>8&255,r[n++]=h>>>16&255,r[n++]=h>>>24&255,r[n++]=c>>>0&255,r[n++]=c>>>8&255,r[n++]=c>>>16&255,r[n++]=c>>>24&255,r[n++]=p>>>0&255,r[n++]=p>>>8&255,r[n++]=p>>>16&255,r[n++]=p>>>24&255,r[n++]=f>>>0&255,r[n++]=f>>>8&255,r[n++]=f>>>16&255,r[n++]=f>>>24&255,r[n++]=d>>>0&255,r[n++]=d>>>8&255,r[n++]=d>>>16&255,r[n++]=d>>>24&255}}function Kw(t,e,r,i){let n=i,a=e;for(let s=0;s<128;s++){let o=t[a++]>>>0;r[n++]=o&65535,r[n++]=o>>>16&65535}}function Jw(t,e,r,i,n){let a=pl[n]>>>0,s=e,o=0,l=t[s]>>>0,u=i;for(let h=0;h<8;h++){for(let c=0;c<32;c++)if(o+n<=32){let p=l>>>o&a;r[u+c]=p|0,o+=n,o===32&&(o=0,s++,c!==31&&(l=t[s]>>>0))}else{let p=32-o,f=l>>>o;s++,l=t[s]>>>0;let d=n-p,y=-1>>>32-d>>>0,m=(f|(l&y)<>>0)}}var fl=Py(bu),Qw=3*fl/256+fl|0;function zy(){let t=new Uint8Array(Qw);return{dataToBePacked:Array(33),dataPointers:new Int32Array(33),byteContainer:t,byteContainerI32:new Int32Array(t.buffer,t.byteOffset,t.byteLength>>>2),exceptionSizes:new Int32Array(33)}}function t3(t=16){if(t<0)throw RangeError(`initialEncodedWordCapacity must be >= 0, got ${t}`);let e=Math.max(16,t|0);return{encodedWords:new Uint32Array(e),decoderWorkspace:zy()}}function e3(t,e){if(e<=t.encodedWords.length)return t.encodedWords;let r=new Uint32Array(Math.max(16,e*2));return t.encodedWords=r,r}function r3(t,e,r,i){i.byteContainer.length>>2;if(n.byteOffset&3)for(let o=0;o>>8&255,n[u+2|0]=l>>>16&255,n[u+3|0]=l>>>24&255}else{let o=i.byteContainerI32;(!o||o.buffer!==n.buffer||o.byteOffset!==n.byteOffset||o.length>>2)),o.set(t.subarray(e,e+a))}let s=r&3;if(s>0){let o=t[e+a|0]|0,l=a<<2;for(let u=0;u>>(u<<3)&255}return n}function i3(t,e,r){let i=t[e++]|0,n=r.dataToBePacked;for(let a=2;a<=32;a=a+1|0){if(!(i>>>a-1&1))continue;if(e>=t.length)throw Error(`FastPFOR decode: truncated exception stream header (bitWidth=${a}, streamWordIndex=${e}, needWords=1, availableWords=${t.length-e}, encodedWords=${t.length})`);let s=t[e++]>>>0,o=kw(s),l=s*a+31>>>5;if(e+l>t.length)throw Error(`FastPFOR decode: truncated exception stream (bitWidth=${a}, size=${s}, streamWordIndex=${e}, needWords=${l}, availableWords=${t.length-e}, encodedWords=${t.length})`);let u=n[a];(!u||u.length>>5)|0,r.exceptionSizes[a]=s}return e}function n3(t,e,r,i,n){switch(n){case 1:qw(t,e,r,i);break;case 2:jw(t,e,r,i);break;case 3:Gw(t,e,r,i);break;case 4:Xw(t,e,r,i);break;case 5:Yw(t,e,r,i);break;case 6:Ww(t,e,r,i);break;case 7:Zw(t,e,r,i);break;case 8:Hw(t,e,r,i);break;case 16:Kw(t,e,r,i);break;default:Jw(t,e,r,i,n)}return e+(n<<3)|0}function a3(t,e,r,i){if(r+2>e)throw Error(`FastPFOR decode: byteContainer underflow at block=${i} (need 2 bytes for [bitWidth, exceptionCount], bytePos=${r}, byteSize=${e})`);let n=t[r++],a=t[r++];if(n>32)throw Error(`FastPFOR decode: invalid bitWidth=${n} at block=${i} (expected 0..32). This likely indicates corrupted or truncated input.`);return{bitWidth:n,exceptionCount:a,bytePosIn:r}}function s3(t,e,r,i,n,a){if(r+1>e)throw Error(`FastPFOR decode: exception header underflow at block=${a} (need 1 byte for maxBits, bytePos=${r}, byteSize=${e})`);let s=t[r++];if(s32)throw Error(`FastPFOR decode: invalid maxBits=${s} at block=${a} (bitWidth=${i}, expected ${i}..32)`);let o=s-i|0;if(o<1||o>32)throw Error(`FastPFOR decode: invalid exceptionBitWidth=${o} at block=${a} (bitWidth=${i}, maxBits=${s})`);if(r+n>e)throw Error(`FastPFOR decode: exception positions underflow at block=${a} (need=${n}, have=${e-r})`);return{maxBits:s,exceptionBitWidth:o,bytePosIn:r}}function o3(t,e,r,i,n,a,s,o,l){let{maxBits:u,exceptionBitWidth:h,bytePosIn:c}=s3(n,a,s,r,i,l);if(s=c,h===1){let m=1<y)throw Error(`FastPFOR decode: exception stream overflow for exceptionBitWidth=${h} (ptr=${d}, need ${i}, size=${y}) at block ${l}`);for(let m=0;m0&&(c=o3(n,m,d,y,o,l,c,u,p))}if(h!==i)throw Error(`FastPFOR decode: packed region mismatch (pageStart=${e}, packedStart=${r}, consumedPackedEnd=${h}, expectedPackedEnd=${i}, packedWords=${i-r}, encoded.length=${t.length})`)}function u3(t,e,r,i,n,a){let s=r|0,o=t[s]|0;if(o<=0||s+o>t.length-1)throw Error(`FastPFOR decode: invalid whereMeta=${o} at pageStart=${s} (expected > 0 and pageStart+whereMeta < encoded.length=${t.length})`);let l=s+1|0,u=s+o|0,h=t[u]>>>0,c=h+3>>>2,p=u+1,f=p+c;if(f>=t.length)throw Error(`FastPFOR decode: invalid byteSize=${h} (metaInts=${c}, pageStart=${s}, packedEnd=${u}, byteContainerStart=${p}) causes bitmapPos=${f} out of bounds (encoded.length=${t.length})`);let d=r3(t,p,h,a),y=h,m=i3(t,f,a);return a.dataPointers.fill(0),l3(t,s,l,u,e,i|0,n/256|0,d,y,a),m}function h3(t,e,r,i,n,a){let s=i+wu(n,256),o=i,l=r;for(;o!==s;){let u=Math.min(fl,s-o);l=u3(t,e,l,o,u,a),o=o+u|0}return l}function c3(t,e,r,i,n,a){if(a===0)return e;let s=0,o=e,l=e+r,u=n,h=n,c=n+a,p=0,f=0;for(;o>>s&255;if(s+=8,o+=s>>>5,s&=31,p|=(d&127)<28)throw Error(`FastPFOR VByte: unterminated value (expected MSB=1 terminator within 5 bytes; shift=${f}, partial=${p}, decoded=${h-u}/${a}, inPos=${o}, inEnd=${l})`)}if(h!==c)throw Error(`FastPFOR VByte: truncated stream (decoded=${h-u}, expected=${a}, consumedWords=${o-e}/${r}, vbyteStart=${e}, vbyteEnd=${l})`);return o}function p3(t,e,r){let i=0,n=0,a=new Uint32Array(e),s=r!=null?r:zy();if(t.length>0){let u=t[i]|0;if(i=i+1|0,u&255)throw Error(`FastPFOR decode: invalid alignedLength=${u} (expected multiple of 256)`);if(n+u>a.length)throw Error(`FastPFOR decode: output buffer too small (outPos=${n}, alignedLength=${u}, out.length=${a.length})`);i=h3(t,a,i,n,u,s),n=n+u|0}let o=t.length-i|0,l=e-n|0;return c3(t,i,o,a,n,l),a}function f3(t,e,r,i,n){switch(n){case 2:Cw(t,e,r,i);return;case 3:Mw(t,e,r,i);return;case 4:Bw(t,e,r,i);return;case 5:Pw(t,e,r,i);return;case 6:zw(t,e,r,i);return;case 7:Lw(t,e,r,i);return;case 8:Vw(t,e,r,i);return;case 9:Ow(t,e,r,i);return;case 10:Rw(t,e,r,i);return;case 11:$w(t,e,r,i);return;case 12:Nw(t,e,r,i);return;case 16:Uw(t,e,r,i);return;case 32:for(let u=0;u<32;u=u+1|0)r[i+u|0]=t[e+u|0]|0;return}let a=pl[n]>>>0,s=e,o=0,l=t[s]>>>0;for(let u=0;u<32;u++)if(o+n<=32){let h=l>>>o&a;r[i+u]=h|0,o+=n,o===32&&(o=0,s++,u!==31&&(l=t[s]>>>0))}else{let h=32-o,c=l>>>o;s++,l=t[s]>>>0;let p=pl[n-h]>>>0,f=(c|(l&p)<t.length)throw RangeError(`decodeBigEndianInt32sInto: out of bounds (offset=${e}, byteLength=${r}, bytes.length=${t.length})`);let n=Math.floor(r/4),a=r%4!=0,s=a?n+1:n;if(i.length0){let o=t.byteOffset+e;if(o&3)for(let l=0;l=64)throw Error("Varint too long")}return e.set(n),r}function m3(t,e,r){let i=new Float64Array(r);for(let n=0;n>4,n<128||(n=e[r.get()],r.increment(),i|=(n&127)<<3,n<128)||(n=e[r.get()],r.increment(),i|=(n&127)<<10,n<128)||(n=e[r.get()],r.increment(),i|=(n&127)<<17,n<128)||(n=e[r.get()],r.increment(),i|=(n&127)<<24,n<128)||(n=e[r.get()],r.increment(),i|=(n&1)<<31,n<128))return i*4294967296+(t>>>0);throw Error("Expected varint not more than 10 bytes")}function v3(t,e,r,i){return b3(t,e,r,i,t3(r>>>2))}function b3(t,e,r,i,n){let a=i.get();if(r&3)throw Error(`FastPFOR: invalid encodedByteLength=${r} at offset=${a} (encodedBytes.length=${t.length}; expected a multiple of 4 bytes for an int32 big-endian word stream)`);let s=r>>>2,o=e3(n,s);d3(t,a,r,o);let l=p3(o.subarray(0,s),e,n.decoderWorkspace);return i.add(r),l}function tt(t){return t>>>1^-(t&1)}function Ot(t){return t>>BigInt(1)^-(t&BigInt(1))}function He(t){return t%2==1?(t+1)/-2:t/2}function w3(t){let e=new Int32Array(t.length);for(let r=0;r=4)for(;i=4)for(;i=4)for(;r=4)for(let i=t[0];r=4)for(;i=4)for(;l>>0;for(let r=1;r>>0;return e}function hp(t){let e=new BigUint64Array(t.length);e[0]=BigInt.asUintN(64,Ot(t[0]));for(let r=1;r>>0,e[1]=tt(t[1])>>>0;for(let r=2;r>>0,e[r+1]=e[r-1]+tt(t[r+1])>>>0;return e}function L3(t,e,r,i){let n=Vy(t,e,r,i);return new Uint32Array(n)}function V3(t){return t[1]}function O3(t){return tt(t[1])}function R3(t){if(t.length===2){let e=tt(t[1]);return[e,e]}return[tt(t[2]),tt(t[3])]}function $3(t){return t[1]}function N3(t){return Ot(t[1])}function U3(t){if(t.length===2){let e=Ot(t[1]);return[e,e]}return[Ot(t[2]),Ot(t[3])]}var At;(function(t){t.PRESENT="PRESENT",t.DATA="DATA",t.OFFSET="OFFSET",t.LENGTH="LENGTH"})(At||(At={}));var qt;(function(t){t.NONE="NONE",t.SINGLE="SINGLE",t.SHARED="SHARED",t.VERTEX="VERTEX",t.MORTON="MORTON",t.FSST="FSST"})(qt||(qt={}));var be;(function(t){t.VERTEX="VERTEX",t.INDEX="INDEX",t.STRING="STRING",t.KEY="KEY"})(be||(be={}));var Ft;(function(t){t.VAR_BINARY="VAR_BINARY",t.GEOMETRIES="GEOMETRIES",t.PARTS="PARTS",t.RINGS="RINGS",t.TRIANGLES="TRIANGLES",t.SYMBOL="SYMBOL",t.DICTIONARY="DICTIONARY"})(Ft||(Ft={}));var q3=[At.PRESENT,At.DATA,At.OFFSET,At.LENGTH],cp=[Z.NONE,Z.DELTA,Z.COMPONENTWISE_DELTA,Z.RLE,Z.MORTON],j3=[re.NONE,re.FAST_PFOR,re.VARINT],G3=[qt.NONE,qt.SINGLE,qt.SHARED,qt.VERTEX,qt.MORTON,qt.FSST],X3=[be.VERTEX,be.INDEX,be.STRING,be.KEY],Y3=[Ft.VAR_BINARY,Ft.GEOMETRIES,Ft.PARTS,Ft.RINGS,Ft.TRIANGLES,Ft.SYMBOL,Ft.DICTIONARY];function ht(t,e){let r=H3(t,e);return r.logicalLevelTechnique1===Z.MORTON?W3(r,t,e):(Z.RLE===r.logicalLevelTechnique1||Z.RLE===r.logicalLevelTechnique2)&&re.NONE!==r.physicalLevelTechnique?Z3(r,t,e):r}function W3(t,e,r){let i=Rt(e,r,2);return{physicalStreamType:t.physicalStreamType,logicalStreamType:t.logicalStreamType,logicalLevelTechnique1:t.logicalLevelTechnique1,logicalLevelTechnique2:t.logicalLevelTechnique2,physicalLevelTechnique:t.physicalLevelTechnique,numValues:t.numValues,byteLength:t.byteLength,decompressedCount:t.decompressedCount,numBits:i[0],coordinateShift:i[1]}}function Z3(t,e,r){let i=Rt(e,r,2);return{physicalStreamType:t.physicalStreamType,logicalStreamType:t.logicalStreamType,logicalLevelTechnique1:t.logicalLevelTechnique1,logicalLevelTechnique2:t.logicalLevelTechnique2,physicalLevelTechnique:t.physicalLevelTechnique,numValues:t.numValues,byteLength:t.byteLength,decompressedCount:i[1],runs:i[0],numRleValues:i[1]}}function H3(t,e){let r=t[e.get()],i=q3[r>>4],n={};switch(i){case At.DATA:n={dictionaryType:G3[r&15]};break;case At.OFFSET:n={offsetType:X3[r&15]};break;case At.LENGTH:n={lengthType:Y3[r&15]}}e.increment();let a=t[e.get()],s=cp[a>>5],o=cp[a>>2&7],l=j3[a&3];e.increment();let u=Rt(t,e,2),h=u[0],c=u[1];return{physicalStreamType:i,logicalStreamType:n,logicalLevelTechnique1:s,logicalLevelTechnique2:o,physicalLevelTechnique:l,numValues:h,byteLength:c,decompressedCount:h}}var ut;(function(t){t[t.FLAT=0]="FLAT",t[t.CONST=1]="CONST",t[t.SEQUENCE=2]="SEQUENCE",t[t.DICTIONARY=3]="DICTIONARY",t[t.FSST_DICTIONARY=4]="FSST_DICTIONARY"})(ut||(ut={}));var de=class{constructor(t,e){this.values=t,this._size=e}get(t){let e=Math.floor(t/8),r=t%8;return(this.values[e]>>r&1)==1}set(t,e){let r=Math.floor(t/8),i=t%8;this.values[r]=this.values[r]|+!!e<>r&1}size(){return this._size}getBuffer(){return this.values}};function kr(t,e,r){if(!e)return t;let i=e.size(),n=t.constructor,a=new n(i),s=0;for(let o=0;o=s);){let o=t[i.increment()];if(o<=127){let l=o+3,u=t[i.increment()],h=Math.min(a+l,e);n.fill(u,a,h),a=h}else{let l=256-o;for(let u=0;u=12?e6.decode(t.subarray(e,r)):r6(t,e,r)}function r6(t,e,r){let i="",n=e;for(;n239?4:a>223?3:a>191?2:1;if(n+o>r)break;let l,u,h;o===1?a<128&&(s=a):o===2?(l=t[n+1],(l&192)==128&&(s=(a&31)<<6|l&63,s<=127&&(s=null))):o===3?(l=t[n+1],u=t[n+2],(l&192)==128&&(u&192)==128&&(s=(a&15)<<12|(l&63)<<6|u&63,(s<=2047||s>=55296&&s<=57343)&&(s=null))):o===4&&(l=t[n+1],u=t[n+2],h=t[n+3],(l&192)==128&&(u&192)==128&&(h&192)==128&&(s=(a&15)<<18|(l&63)<<12|(u&63)<<6|h&63,(s<=65535||s>=1114112)&&(s=null))),s===null?(s=65533,o=1):s>65535&&(s-=65536,i+=String.fromCharCode(s>>>10&1023|55296),s=56320|s&1023),i+=String.fromCharCode(s),n+=o}return i}function Ma(t,e,r,i,n){return o6(pi(t,e,r),r,i,n)}function Vt(t,e,r,i,n){return l6(pi(t,e,r),r,i,n)}function Ke(t,e,r){return h6(pi(t,e,r),r)}function pi(t,e,r){let i=r.physicalLevelTechnique;switch(i){case re.FAST_PFOR:return v3(t,r.numValues,r.byteLength,e);case re.VARINT:return Rt(t,e,r.numValues);case re.NONE:return Q3(t,e,r.numValues);default:throw Error(`Specified physicalLevelTechnique ${i} is not supported (yet).`)}}function Tn(t,e,r){let i=r.physicalLevelTechnique;switch(i){case re.VARINT:return Du(t,e,r.numValues);case re.NONE:return t6(t,e,r.numValues);default:throw Error(`Specified physicalLevelTechnique ${i} is not supported (yet).`)}}function i6(t,e,r){let i=pi(t,e,r);return i.length===1?tt(i[0]):O3(i)}function Su(t,e,r){let i=pi(t,e,r);return i.length===1?r.logicalLevelTechnique1===Z.DELTA?tt(i[0]):i[0]:V3(i)}function Ny(t,e,r){return R3(pi(t,e,r))}function Uy(t,e,r){return U3(Du(t,e,r.numValues))}function qy(t,e,r,i){return Gy(Tn(t,e,r),r,i)}function Eu(t,e,r,i){return Xy(Tn(t,e,r),r,i)}function n6(t,e,r,i){let n=a6(t,e,r,!1);return i?kr(n,i,0):n}function a6(t,e,r,i){if(r.physicalLevelTechnique===re.VARINT)return u6(m3(t,e,r.numValues),r,i);let n=Tn(t,e,r),a=i?Gy(n,r):Xy(n,r);return Float64Array.from(a,Number)}function s6(t,e,r){let i=Tn(t,e,r);return i.length===1?Ot(i[0]):N3(i)}function jy(t,e,r){let i=Tn(t,e,r);return i.length===1?r.logicalLevelTechnique1===Z.DELTA?Ot(i[0]):i[0]:$3(i)}function o6(t,e,r,i){let n;switch(e.logicalLevelTechnique1){case Z.DELTA:if(e.logicalLevelTechnique2===Z.RLE){let a=e;if(!i)return B3(t,a.runs,a.numRleValues);t=dl(t,a.runs,a.numRleValues),n=op(t)}else n=op(t);break;case Z.RLE:n=S3(t,e.runs,e.numRleValues);break;case Z.MORTON:_u(t),n=new Int32Array(t);break;case Z.COMPONENTWISE_DELTA:if(r&&!i)return Vy(t,r.scale,r.min,r.max);n=k3(t);break;case Z.NONE:n=w3(t);break;default:throw Error(`The specified Logical level technique is not supported: ${e.logicalLevelTechnique1}`)}return i?kr(n,i,0):n}function l6(t,e,r,i){let n;switch(e.logicalLevelTechnique1){case Z.DELTA:if(e.logicalLevelTechnique2===Z.RLE){let a=e;n=up(dl(t,a.runs,a.numRleValues))}else n=up(t);break;case Z.RLE:n=dl(t,e.runs,e.numRleValues);break;case Z.MORTON:_u(t),n=t;break;case Z.COMPONENTWISE_DELTA:n=r&&!i?L3(t,r.scale,r.min,r.max):z3(t);break;case Z.NONE:n=t;break;default:throw Error(`The specified Logical level technique is not supported: ${e.logicalLevelTechnique1}`)}return i?kr(n,i,0):n}function Gy(t,e,r){let i;switch(e.logicalLevelTechnique1){case Z.DELTA:if(e.logicalLevelTechnique2===Z.RLE){let n=e;if(!r)return P3(t,n.runs,n.numRleValues);t=yl(t,n.runs,n.numRleValues),i=lp(t)}else i=lp(t);break;case Z.RLE:i=E3(t,e.runs,e.numRleValues);break;case Z.NONE:i=D3(t);break;default:throw Error(`The specified Logical level technique is not supported: ${e.logicalLevelTechnique1}`)}return r?kr(i,r,BigInt(0)):i}function Xy(t,e,r){let i;switch(e.logicalLevelTechnique1){case Z.DELTA:if(e.logicalLevelTechnique2===Z.RLE){let n=e;i=hp(yl(t,n.runs,n.numRleValues))}else i=hp(t);break;case Z.RLE:i=yl(t,e.runs,e.numRleValues);break;case Z.NONE:i=t;break;default:throw Error(`The specified Logical level technique is not supported: ${e.logicalLevelTechnique1}`)}return r?kr(i,r,BigInt(0)):i}function u6(t,e,r){switch(e.logicalLevelTechnique1){case Z.DELTA:if(e.logicalLevelTechnique2===Z.RLE){let i=e;t=Ly(t,i.runs,i.numRleValues)}return A3(t),t;case Z.RLE:return p6(t,e,r);case Z.NONE:return r&&_3(t),t;default:throw Error(`The specified Logical level technique is not supported: ${e.logicalLevelTechnique1}`)}}function h6(t,e){if(e.logicalLevelTechnique1===Z.DELTA&&e.logicalLevelTechnique2===Z.NONE)return I3(t);if(e.logicalLevelTechnique1===Z.RLE&&e.logicalLevelTechnique2===Z.NONE){let r=e;return M3(t,r.runs,r.numRleValues)}if(e.logicalLevelTechnique1===Z.NONE&&e.logicalLevelTechnique2===Z.NONE){T3(t);let r=new Uint32Array(e.numValues+1);return r[0]=0,r.set(t,1),r}if(e.logicalLevelTechnique1===Z.DELTA&&e.logicalLevelTechnique2===Z.RLE){let r=e,i=C3(t,r.runs,r.numRleValues);return _u(i),new Uint32Array(i)}throw Error("Only delta encoding is supported for transforming length to offset streams yet.")}function rs(t,e,r,i,n="int32"){let a=t.logicalLevelTechnique1;if(a===Z.RLE)return t.runs===1?ut.CONST:ut.FLAT;if(a!==Z.DELTA||t.logicalLevelTechnique2!==Z.RLE)return t.numValues===1?ut.CONST:ut.FLAT;let s=e instanceof de?e.size():e,o=t;if(o.numRleValues!==s)return ut.FLAT;if(o.runs===1)return ut.SEQUENCE;if(o.runs!==2)return t.numValues===1?ut.CONST:ut.FLAT;let l=i.get();if(t.physicalLevelTechnique===re.VARINT)return c6(r,i,n)?ut.SEQUENCE:t.numValues===1?ut.CONST:ut.FLAT;let u=i.get(),h=new Int32Array(r.buffer,r.byteOffset+u,4);return i.set(l),h[2]===2&&h[3]===2?ut.SEQUENCE:t.numValues===1?ut.CONST:ut.FLAT}function c6(t,e,r){let i=new By(e.get());if(r==="int64"){let a=Du(t,i,4);return a[2]===BigInt(2)&&a[3]===BigInt(2)}let n=Rt(t,i,4);return n[2]===2&&n[3]===2}function p6(t,e,r){return r?F3(t,e.runs,e.numRleValues):Ly(t,e.runs,e.numRleValues)}var Yy=class extends es{getValueFromBuffer(t){return this.dataBuffer[t]}},Wy=class extends Cy{constructor(t,e,r,i,n){super(t,n?BigInt64Array.of(e):BigUint64Array.of(e),r,i)}getValueFromBuffer(t){return this.dataBuffer[0]+BigInt(t)*this.delta}};function Fu(t,e,r){return{x:pp(t,e)-r,y:pp(t>>1,e)-r}}function pp(t,e){let r=0;for(let i=0;i>i;return r}var Pt;(function(t){t[t.POINT=0]="POINT",t[t.LINESTRING=1]="LINESTRING",t[t.POLYGON=2]="POLYGON",t[t.MULTIPOINT=3]="MULTIPOINT",t[t.MULTILINESTRING=4]="MULTILINESTRING",t[t.MULTIPOLYGON=5]="MULTIPOLYGON"})(Pt||(Pt={}));var fp;(function(t){t[t.POINT=0]="POINT",t[t.LINESTRING=1]="LINESTRING",t[t.POLYGON=2]="POLYGON"})(fp||(fp={}));var nr;(function(t){t[t.MORTON=0]="MORTON",t[t.VEC_2=1]="VEC_2",t[t.VEC_3=2]="VEC_3"})(nr||(nr={}));function f6(t){let e=Array(t.numGeometries),r=1,i=1,n=1,a=0,s=0,o=0,l=t.mortonSettings,u=t.topologyVector,h=u.geometryOffsets,c=u.partOffsets,p=u.ringOffsets,f=t.vertexOffsets,d=!f||f.length===0,y=t.containsPolygonGeometry(),m=t.vertexBuffer;for(let g=0;g[w]),r+=v,i+=v}break;case Pt.LINESTRING:{let v;y?(v=p[i]-p[i-1],i++):v=c[r]-c[r-1],r++;let b;d?(b=Or(m,s,v,!1),s+=v*2):(b=pr(t.vertexBufferType,m,f,o,v,!1,l),o+=v),e[a++]=[b],h&&n++}break;case Pt.POLYGON:{let v=c[r]-c[r-1];r++;let b=Array(v-1),w,_=p[i]-p[i-1];if(i++,d){w=Or(m,s,_,!0),s+=_*2;for(let A=0;Ar?e[a++]:1);return i}function mp(t,e,r,i){let n=new Uint32Array(e[e.length-1]+1),a=0;n[0]=a;let s=1,o=0;for(let l=0;l0;)n[a++]=t[u++]}}return n}var e1=class extends Tu{constructor(t,e,r,i,n,a,s,o){super(t,r,i,s!=null?s:e.length),this.indexBuffer=e,this.symbolOffsetBuffer=n,this.symbolTableBuffer=a,this.sharedDictionaryCache=o}getValueFromBuffer(t){var n,a,s;(s=this.decodedDictionary)!=null||(this.decodedDictionary=(n=this.sharedDictionaryCache)==null?void 0:n.decodedDictionary,(a=this.decodedDictionary)!=null||(this.decodedDictionary=this.decodeDictionary(),this.sharedDictionaryCache&&(this.sharedDictionaryCache.decodedDictionary=this.decodedDictionary)));let e=this.indexBuffer[t],r=this.offsetBuffer[e],i=this.offsetBuffer[e+1];return Au(this.decodedDictionary,r,i)}decodeDictionary(){var t;return(t=this.symbolLengthBuffer)!=null||(this.symbolLengthBuffer=this.offsetToLengthBuffer(this.symbolOffsetBuffer)),F6(this.symbolTableBuffer,this.symbolLengthBuffer,this.dataBuffer)}offsetToLengthBuffer(t){let e=new Uint32Array(t.length-1),r=t[0];for(let i=1;i1&&!f.nullable||d===1&&f.nullable)throw Error(`The number of streams for the child field ${f.name} does not match its nullability. nullibilty: ${f.nullable}, numStreams: ${d}`);let m;if(f.nullable){let x=ht(t,e);m=new de(ci(t,x.numValues,x.byteLength,e),x.numValues)}let g=Vt(t,e,ht(t,e),void 0,m);if(o){if(!s)throw Error(`Incomplete shared FSST dictionary for column "${y}"`);h[p++]=new e1(y,g,n,a,s,o,m,c)}else h[p++]=new Qr(y,g,n,a,m)}return h}var xp=class extends Tr{constructor(t,e,r){super(t,new Uint8Array,r!=null?r:e.length),this.values=e}getValueFromBuffer(t){return this.values[t]}},we;(function(t){t[t.STRING=1]="STRING",t[t.INT32=2]="INT32",t[t.UINT32=4]="UINT32",t[t.INT64=8]="INT64",t[t.UINT64=16]="UINT64",t[t.FLOAT=32]="FLOAT",t[t.DOUBLE=64]="DOUBLE",t[t.PRESENCE=128]="PRESENCE"})(we||(we={}));var tr;(function(t){t[t.FALSE=0]="FALSE",t[t.TRUE=1]="TRUE",t[t.START_MAP=2]="START_MAP",t[t.START_LIST=3]="START_LIST",t[t.COUNT=4]="COUNT"})(tr||(tr={}));function M6(t,e,r,i){let n=B6(r);if(i===0)return n.map(h=>new xp(h,[]));let a=P6(t,e,i),s=(a.presentStream?a.presentCount:a.lengthStream.length)/n.length,o=[],l=0,u=0;for(let h=0;h{var i;return t.name+((i=r.name)!=null?i:"")})}function P6(t,e,r){let i=t[e.get()];e.add(1);let n=Vt(t,e,ht(t,e)),a=r-1,s=[];i&we.STRING&&(a-=z6(t,e,s)),a-=L6(t,e,i,s),a-=V6(t,e,i,s);let o,l=0;if(i&we.PRESENCE){let h=O6(t,e);o=h.value,l=h.count,a--}let u=new Uint32Array;if(a>0&&(u=Vt(t,e,ht(t,e)),a--),a!==0)throw Error(`Unexpected number of remaining streams while decoding map column: ${a}`);return{lengthStream:n,dictionary:s,presentStream:o,presentCount:l,flattenedValues:u}}function z6(t,e,r){let i=t[e.get()];e.add(1);let n=r1("",t,e,i);if(n)for(let a=0;aa.length)throw Error("Merged map counts underflow while decoding child streams");let f=Array(r),d=i,y=n;for(let x=0;xs.length)throw Error("Map value stream underflow while decoding feature payload");let b=$6(s,y,v,l);f[x]=b.value,y=b.nextIndex}let m=0;for(let x=i;x=r)throw Error("Unexpected end of map value stream");let n=t[e];if(n===tr.FALSE)return{value:!1,nextIndex:e+1};if(n===tr.TRUE)return{value:!0,nextIndex:e+1};if(n===tr.START_MAP){let a=vp(t,e,r);return{value:i1(t,e+2,a,i).value,nextIndex:a}}if(n===tr.START_LIST){let a=vp(t,e,r),s=[],o=e+2;for(;o=r)throw Error("Missing length for nested map/list payload");let i=t[e+1];if(i<2)throw Error(`Invalid nested payload length: ${i}`);let n=e+i;if(n>r)throw Error("Nested payload exceeds containing payload bounds");return n}function n1(t,e){let r=t-tr.COUNT;if(r<0||r>=e.length)throw Error(`Scalar dictionary index out of range: ${t}`);return e[r]}function Xr(t,e){for(let r of e)t.push(r)}function N6(t,e,r,i,n,a){var s;return r.type==="scalarType"?a&&!a.has(r.name)?(Oy(i,t,e),null):U6(i,t,e,n,r.scalarType,r):((s=r.complexType)==null?void 0:s.physicalType)===rr.MAP?M6(t,e,r,i):i===0?null:C6(t,e,r,a)}function U6(t,e,r,i,n,a){var l;let s;if(t===0)return null;if(a.nullable){let u=ht(e,r),h=u.numValues,c=r.get(),p=ci(e,h,u.byteLength,r);r.set(c+u.byteLength),s=new de(p,u.numValues)}let o=s!=null?s:i;switch(n.physicalType){case rt.UINT_32:case rt.INT_32:return Y6(e,r,a,n,o);case rt.STRING:{let u=a.nullable?t-1:t;return(l=r1(a.name,e,r,u,s))!=null?l:null}case rt.BOOLEAN:return q6(e,r,a,i,o);case rt.UINT_64:case rt.INT_64:return X6(e,r,a,o,n);case rt.FLOAT:return j6(e,r,a,o);case rt.DOUBLE:return G6(e,r,a,o);default:throw Error(`The specified data type for the field is currently not supported: ${n}`)}}function q6(t,e,r,i,n){let a=ht(t,e),s=a.numValues,o=e.get(),l=kn(n)?n:void 0,u=ci(t,s,a.byteLength,e,l);e.set(o+a.byteLength);let h=new de(u,s);return new A6(r.name,h,n)}function j6(t,e,r,i){let n=ht(t,e),a=kn(i)?i:void 0,s=Ry(t,e,n.numValues,a);return new S6(r.name,s,i)}function G6(t,e,r,i){let n=ht(t,e),a=kn(i)?i:void 0,s=$y(t,e,n.numValues,a);return new mu(r.name,s,i)}function X6(t,e,r,i,n){let a=ht(t,e),s=rs(a,i,t,e,"int64"),o=n.physicalType===rt.INT_64;if(s===ut.FLAT){let u=kn(i)?i:void 0,h=o?qy(t,e,a,u):Eu(t,e,a,u);return new Yy(r.name,h,i)}if(s===ut.SEQUENCE){let u=Uy(t,e,a);return new Wy(r.name,u[0],u[1],a.numRleValues,o)}let l=o?s6(t,e,a):jy(t,e,a);return new t1(r.name,l,i,o)}function Y6(t,e,r,i,n){let a=ht(t,e),s=rs(a,n,t,e),o=i.physicalType===rt.INT_32;if(s===ut.FLAT){let u=kn(n)?n:void 0,h=o?Ma(t,e,a,void 0,u):Vt(t,e,a,void 0,u);return new yu(r.name,h,n)}if(s===ut.SEQUENCE){let u=Ny(t,e,a);return new gu(r.name,u[0],u[1],a.numRleValues,o)}let l=o?i6(t,e,a):Su(t,e,a);return new xu(r.name,l,n,o)}function kn(t){return t instanceof de}var It={ID:0,ID_NULLABLE:1,ID_LONG:2,GEOMETRY:4,SCALAR_BASE:10,STRUCT:30,MAP:31};function a1(t){switch(t){case It.ID:case It.ID|It.ID_NULLABLE:case It.ID|It.ID_LONG:case It.ID|It.ID_LONG|It.ID_NULLABLE:return{nullable:(t&It.ID_NULLABLE)!==0,columnScope:Xi.FEATURE,type:"scalarType",scalarType:{longID:(t&It.ID_LONG)!==0,type:"logicalType",logicalType:My.ID}};case It.GEOMETRY:return{nullable:!1,columnScope:Xi.FEATURE,type:"complexType",complexType:{type:"physicalType",physicalType:rr.GEOMETRY,children:[]}};case It.STRUCT:return{nullable:!1,columnScope:Xi.FEATURE,type:"complexType",complexType:{type:"physicalType",physicalType:rr.STRUCT,children:[]}};case It.MAP:return{nullable:!0,columnScope:Xi.FEATURE,type:"complexType",complexType:{type:"physicalType",physicalType:rr.MAP,children:[]}};default:return J6(t)}}function W6(t){return t>=It.SCALAR_BASE}function s1(t){return t===It.STRUCT||t===It.MAP}function Z6(t){if(t.type==="scalarType"){let e=t.scalarType;if(e.type==="physicalType")switch(e.physicalType){case rt.BOOLEAN:case rt.INT_8:case rt.UINT_8:case rt.INT_32:case rt.UINT_32:case rt.INT_64:case rt.UINT_64:case rt.FLOAT:case rt.DOUBLE:return!1;case rt.STRING:return!0;default:return!1}if(e.type==="logicalType")return!1}else if(t.type==="complexType"){let e=t.complexType;if(e.type==="physicalType")switch(e.physicalType){case rr.GEOMETRY:case rr.STRUCT:case rr.MAP:return!0;default:return!1}}return console.warn("Unexpected column type in hasStreamCount",t),!1}function H6(t){var e;return t.type==="scalarType"&&((e=t.scalarType)==null?void 0:e.type)==="logicalType"&&t.scalarType.logicalType===My.ID}function K6(t){var e;return t.type==="complexType"&&((e=t.complexType)==null?void 0:e.type)==="physicalType"&&t.complexType.physicalType===rr.GEOMETRY}function J6(t){let e;switch(t){case 10:case 11:e=rt.BOOLEAN;break;case 12:case 13:e=rt.INT_8;break;case 14:case 15:e=rt.UINT_8;break;case 16:case 17:e=rt.INT_32;break;case 18:case 19:e=rt.UINT_32;break;case 20:case 21:e=rt.INT_64;break;case 22:case 23:e=rt.UINT_64;break;case 24:case 25:e=rt.FLOAT;break;case 26:case 27:e=rt.DOUBLE;break;case 28:case 29:e=rt.STRING;break;default:return null}return{nullable:!!(t&1),columnScope:Xi.FEATURE,type:"scalarType",scalarType:{longID:!1,type:"physicalType",physicalType:e}}}var Q6=new TextDecoder,bp="0-3(ID), 4(GEOMETRY), 10-29(scalars), 30(STRUCT), 31(MAP)";function Iu(t,e){let r=Rt(t,e,1)[0];if(r===0)return"";let i=e.get(),n=i+r,a=t.subarray(i,n);return e.add(r),Q6.decode(a)}function t5(t){let e=t.name,r=t.nullable;return t.type==="scalarType"?{type:"scalarField",scalarField:t.scalarType,name:e,nullable:r}:{type:"complexField",complexField:t.complexType,name:e,nullable:r}}function o1(t,e){let r=Rt(t,e,1)[0]>>>0,i=r>=It.SCALAR_BASE?a1(r):null;if(!i)throw Error(`Unsupported field type code ${r}. Supported: 10-29(scalars), 30(STRUCT), 31(MAP)`);let n=Si(Xe({},i),{name:Iu(t,e)});if(n.type==="complexType"&&s1(r)){let a=n.complexType,s=Rt(t,e,1)[0]>>>0;a.children=Array(s);for(let o=0;o>>0,i=a1(r);if(!i)throw Error(`Unsupported column type code ${r}. Supported: ${bp}`);let n;if(W6(r))n=Iu(t,e);else if(r>>0,o=a.complexType;o.children=Array(s);for(let l=0;l>>0,a=Rt(t,e,1)[0]>>>0;i.columns=Array(a);for(let s=0;s>>0,s=i.get()+a;if(s>t.length)throw Error(`Block overruns tile: ${s} > ${t.length}`);let o=Rt(t,i,1)[0]>>>0;if(o!==1&&o!==2){i.set(s);continue}let[l,u]=r5(t,i),h=l.featureTables[0],c=null,p=null,f=[],d=0;for(let m of h.columns){let g=m.name;if(H6(m)){let x=null;if(m.nullable){let b=ht(t,i),w=i.get(),_=ci(t,b.numValues,b.byteLength,i);i.set(w+b.byteLength),x=new de(_,b.numValues)}let v=ht(t,i);d=x?x.size():v.decompressedCount,c=n5(t,m,i,g,v,x!=null?x:d,r)}else if(K6(m)){let x=Rt(t,i,1)[0];if(d===0){let v=i.get();d=ht(t,i).decompressedCount,i.set(v)}e&&(e.scale=e.extent/u),p=w6(t,x,i,d,e)}else{let x=Z6(m)?Rt(t,i,1)[0]:1;if(x===0)continue;let v=N6(t,i,m,x,d,void 0);if(v)if(Array.isArray(v))for(let b of v)f.push(b);else f.push(v)}}let y=new Tw(h.name,p,c,f,u);n.push(y),i.set(s)}return n}function n5(t,e,r,i,n,a,s=!1){var h;let o=(h=e.scalarType)!=null&&h.longID?rt.UINT_64:rt.UINT_32,l=typeof a=="number"?void 0:a,u=rs(n,a,t,r,o===rt.UINT_64?"int64":"int32");if(o===rt.UINT_32)switch(u){case ut.FLAT:return new yu(i,Vt(t,r,n,void 0,l),a);case ut.SEQUENCE:{let c=Ny(t,r,n);return new gu(i,c[0],c[1],n.numRleValues,!1)}case ut.CONST:return new xu(i,Su(t,r,n),a,!1)}switch(u){case ut.FLAT:return s?new mu(i,n6(t,r,n,l),a):new Yy(i,Eu(t,r,n,l),a);case ut.SEQUENCE:{let c=Uy(t,r,n);return new Wy(i,c[0],c[1],n.numRleValues,!1)}case ut.CONST:return new t1(i,jy(t,r,n),a,!1)}throw Error("Vector type not supported for id column.")}var Qs=Py(bu);Qs/32*4,3*Qs/256+Qs|0;var a5=class{constructor(t,e){var r;switch(this._featureData=t,this.properties=this._featureData.properties||{},(r=this._featureData.geometry)==null?void 0:r.type){case Pt.POINT:case Pt.MULTIPOINT:this.type=1;break;case Pt.LINESTRING:case Pt.MULTILINESTRING:this.type=2;break;case Pt.POLYGON:case Pt.MULTIPOLYGON:this.type=3;break;default:this.type=0}this.extent=e,this.id=Number(this._featureData.id)}loadGeometry(){let t=[];for(let e of this._featureData.geometry.coordinates){let r=[];for(let i of e)r.push(new M(i.x,i.y));t.push(r)}return t}},s5=class{constructor(t){this.features=[],this.featureTable=t,this.name=t.name,this.extent=t.extent,this.version=2,this.features=t.getFeatures(),this.length=this.features.length}feature(t){return new a5(this.features[t],this.extent)}},Cu=class{constructor(t){this.layers={};let e=i5(new Uint8Array(t));this.layers=e.reduce((r,i)=>Si(Xe({},r),{[i.name]:new s5(i)}),{})}},Mu=class{constructor(t,e){this.tileID=t,this.x=t.canonical.x,this.y=t.canonical.y,this.z=t.canonical.z,this.grid=new fo(gt,16,0),this.grid3D=new fo(gt,16,0),this.featureIndexArray=new dd,this.promoteId=e}insert(t,e,r,i,n,a){let s=this.featureIndexArray.length;this.featureIndexArray.emplaceBack(r,i,n);let o=a?this.grid3D:this.grid;for(let l of e){let u=[1/0,1/0,-1/0,-1/0];for(let h of l)u[0]=Math.min(u[0],h.x),u[1]=Math.min(u[1],h.y),u[2]=Math.max(u[2],h.x),u[3]=Math.max(u[3],h.y);u[0]<8192&&u[1]<8192&&u[2]>=0&&u[3]>=0&&o.insert(s,u[0],u[1],u[2],u[3])}}loadVTLayers(){return this.vtLayers||(this.encoding==="mlt"?this.vtLayers=new Cu(this.rawTileData).layers:this.vtLayers=new Zl(new lu(this.rawTileData)).layers,this.sourceLayerCoder=new du(this.vtLayers?Object.keys(this.vtLayers).sort():[cl])),this.vtLayers}query(t,e,r,i){this.loadVTLayers();let n=t.params,a=gt/t.tileSize/t.scale,s=ai(n.filter,"queryRenderedFeatures filter",n.globalState),o=t.queryGeometry,l=t.queryPadding*a,u=Ia.fromPoints(o),h=this.grid.query(u.minX-l,u.minY-l,u.maxX+l,u.maxY+l),c=Ia.fromPoints(t.cameraQueryGeometry).expandBy(l),p=this.grid3D.query(c.minX,c.minY,c.maxX,c.maxY,(y,m,g,x)=>Rg(t.cameraQueryGeometry,y-l,m-l,g+l,x+l));for(let y of p)h.push(y);h.sort(l5);let f={},d;for(let y of h){if(y===d)continue;d=y;let m=this.featureIndexArray.get(y),g=null;this.loadMatchingFeature(f,m.bucketIndex,m.sourceLayerIndex,m.featureIndex,s,n.layers,n.availableImages,e,r,i,(x,v,b)=>(g||(g=Fr(x)),v.queryIntersectsFeature({queryGeometry:o,feature:x,featureState:b,geometry:g,zoom:this.z,transform:t.transform,pixelsToTileUnits:a,pixelPosMatrix:t.pixelPosMatrix,unwrappedTileID:this.tileID.toUnwrapped(),getElevation:t.getElevation})))}return f}loadMatchingFeature(t,e,r,i,n,a,s,o,l,u,h){let c=this.bucketLayerIDs[e];if(a&&!c.some(y=>a.has(y)))return;let p=this.sourceLayerCoder.decode(r),f=this.vtLayers[p].feature(i);if(n.needGeometry){let y=hi(f,!0);if(!n.filter(new st(this.tileID.overscaledZ),y,this.tileID.canonical))return}else if(!n.filter(new st(this.tileID.overscaledZ),f))return;let d=this.getId(f,p);for(let y of c){if(a&&!a.has(y))continue;let m=o[y];if(!m)continue;let g={};d&&u&&(g=u.getState(m.sourceLayer||"_geojsonTileLayer",d));let x=Xt({},l[y]);x.paint=wp(x.paint,m.paint,f,g,s),x.layout=wp(x.layout,m.layout,f,g,s);let v=!h||h(f,m,g);if(!v)continue;let b=new Fw(f,this.z,this.x,this.y,d);b.layer=x;let w=t[y];w===void 0&&(w=t[y]=[]),w.push({featureIndex:i,feature:b,intersectionZ:v})}}lookupSymbolFeatures(t,e,r,i,n,a,s,o){let l={};this.loadVTLayers();let u=ai(n.filterSpec,"queryRenderedFeatures symbol filter",n.globalState);for(let h of t)this.loadMatchingFeature(l,r,i,h,u,a,s,o,e);return l}hasLayer(t){for(let e of this.bucketLayerIDs)for(let r of e)if(t===r)return!0;return!1}getId(t,e){var i;let r=t.id;if(this.promoteId){let n=typeof this.promoteId=="string"?this.promoteId:this.promoteId[e];r=t.properties[n],typeof r=="boolean"&&(r=Number(r)),r===void 0&&((i=t.properties)!=null&&i.cluster)&&this.promoteId&&(r=Number(t.properties.cluster_id))}return r}};C("FeatureIndex",Mu,{omit:["rawTileData","sourceLayerCoder"]});function o5(t){return typeof t=="object"&&!!t&&"evaluate"in t}function wp(t,e,r,i,n){return xn(t,(a,s)=>{let o=e instanceof Wa?e.get(s):null;return o5(o)?o.evaluate(r,i,void 0,n):o})}function l5(t,e){return e-t}var l1=class{constructor(t){this.maxEntries=t,this.map=new Map}get(t){let e=this.map.get(t);return e!==void 0&&(this.map.delete(t),this.map.set(t,e)),e}set(t,e){if(this.map.has(t))this.map.delete(t);else if(this.map.size>=this.maxEntries){let r=this.map.keys().next().value;this.map.delete(r)}this.map.set(t,e)}clear(){this.map.clear()}};function Bu(t){let e=typeof t;if(e==="number"||e==="boolean"||e==="string"||t==null)return JSON.stringify(t);if(Array.isArray(t)){let n="[";for(let a of t)n+=`${Bu(a)},`;return`${n}]`}let r=Object.keys(t).sort(),i="{";for(let n=0;nthis._layers[c.id]),s=a[0];if(s.isHidden())continue;let o=s.source||"",l=this.familiesBySource[o];l||(l=this.familiesBySource[o]={});let u=s.sourceLayer||"_geojsonTileLayer",h=l[u];h||(h=l[u]=[]),h.push(a)}}},c1=class{constructor(t){let e={},r=[];for(let s in t){let o=e[s]={};for(let l in t[s]){let u=t[s][l];o[l]={};for(let h in u){let c=u[h];if(!c||c.bitmap.width===0||c.bitmap.height===0)continue;let p={x:0,y:0,w:c.bitmap.width+2,h:c.bitmap.height+2};r.push(p),o[l][h]={rect:p,metrics:c.metrics}}}}let{w:i,h:n}=uu(r),a=new Qa({width:i||1,height:n||1});for(let s in t)for(let o in t[s]){let l=t[s][o];for(let u in l){let h=l[u];if(!h||h.bitmap.width===0||h.bitmap.height===0)continue;let c=e[s][o][u].rect;Qa.copy(h.bitmap,a,{x:0,y:0},{x:c.x+1,y:c.y+1},h.bitmap)}}this.image=a,this.positions=e}};C("GlyphAtlas",c1);var p1=class{constructor(t){this.tileID=new pu(t.tileID.overscaledZ,t.tileID.wrap,t.tileID.canonical.z,t.tileID.canonical.x,t.tileID.canonical.y),this.uid=t.uid,this.zoom=t.zoom,this.pixelRatio=t.pixelRatio,this.tileSize=t.tileSize,this.source=t.source,this.overscaling=this.tileID.overscaleFactor(),this.showCollisionBoxes=t.showCollisionBoxes,this.collectResourceTiming=!!t.collectResourceTiming,this.returnDependencies=!!t.returnDependencies,this.promoteId=t.promoteId,this.inFlightDependencies=[]}parse(t,e,r,i,n){return et(this,null,function*(){this.data=t,this.collisionBoxArray=new Rl;let a=new du(Object.keys(t.layers).sort()),s=new Mu(this.tileID,this.promoteId);s.bucketLayerIDs=[];let o={},l={featureIndex:s,iconDependencies:{},patternDependencies:{},glyphDependencies:{},dashDependencies:{},availableImages:r,subdivisionGranularity:n},u=e.familiesBySource[this.source];for(let S in u){let T=t.layers[S];if(!T)continue;T.version===1&&Mt(`Vector tile source "${this.source}" layer "${S}" does not use vector tile spec v2 and therefore may have some rendering errors.`);let L=a.encode(S),O=[];for(let B=0;BF.id)))}}let h=xn(l.glyphDependencies,S=>xn(S,T=>Object.keys(T)));for(let S of this.inFlightDependencies)S==null||S.abort();this.inFlightDependencies=[];let c=Promise.resolve({});if(Object.keys(h).length){let S=new AbortController;this.inFlightDependencies.push(S),c=i.sendAsync({type:"GG",data:{stacks:h,source:this.source,tileID:this.tileID,type:"glyphs"}},S)}let p=Object.keys(l.iconDependencies),f=Promise.resolve({});if(p.length){let S=new AbortController;this.inFlightDependencies.push(S),f=i.sendAsync({type:"GI",data:{icons:p,source:this.source,tileID:this.tileID,type:"icons"}},S)}let d=Object.keys(l.patternDependencies),y=Promise.resolve({});if(d.length){let S=new AbortController;this.inFlightDependencies.push(S),y=i.sendAsync({type:"GI",data:{icons:d,source:this.source,tileID:this.tileID,type:"patterns"}},S)}let m=l.dashDependencies,g=Promise.resolve({});if(Object.keys(m).length){let S=new AbortController;this.inFlightDependencies.push(S),g=i.sendAsync({type:"GDA",data:{dashes:m}},S)}let[x,v,b,w]=yield Promise.all([c,f,y,g]),_=new c1(x),A=new hu(v,b);for(let S in o){let T=o[S];T.hasDependencies&&(u1(T.layers,this.zoom,r),T.addFeatures({options:l,canonical:this.tileID.canonical,glyphMap:x,glyphPositions:_.positions,iconMap:v,iconPositions:A.iconPositions,patternMap:b,patternPositions:A.patternPositions,dashPositions:w,showCollisionBoxes:this.showCollisionBoxes}))}return{buckets:Object.values(o).filter(S=>!S.isEmpty()),featureIndex:s,collisionBoxArray:this.collisionBoxArray,glyphAtlasImage:_.image,imageAtlas:A,dashPositions:w,glyphMap:this.returnDependencies?x:null,iconMap:this.returnDependencies?v:null,glyphPositions:this.returnDependencies?_.positions:null}})}};function u1(t,e,r){let i=new st(e);for(let n of t)n.recalculate(i,r)}var f1=class{constructor(){this.loading={},this.loaded={},this.parsing={}}startLoading(t,e){this.loading[t]=e}finishLoading(t){delete this.loading[t]}abort(t){let e=this.loading[t];e!=null&&e.abort&&(e.abort.abort(),delete this.loading[t])}getParsing(t){return this.parsing[t]}setParsing(t,e){this.parsing[t]=e}removeParsing(t){delete this.parsing[t]}markLoaded(t,e){this.loaded[t]=e}getLoaded(t){let e=this.loaded[t];if(e)return e}removeLoaded(t){delete this.loaded[t]}clearLoaded(){this.loaded={}}},d1=class{constructor(t){this.start=`${t}#start`,this.end=`${t}#end`,this.measure=t,performance.mark(this.start)}finish(){performance.mark(this.end);let t=performance.getEntriesByName(this.measure);return t.length===0&&(performance.measure(this.measure,this.start,this.end),t=performance.getEntriesByName(this.measure),performance.clearMarks(this.start),performance.clearMarks(this.end),performance.clearMeasures(this.measure)),t}},p5=class{constructor(t,e,r,i,n){this.type=t,this.properties=r||{},this.extent=n,this.pointsArray=e,this.id=i}loadGeometry(){return this.pointsArray.map(t=>t.map(e=>new M(e.x,e.y)))}},f5=class{constructor(t,e,r){this.version=2,this._myFeatures=t,this.name=e,this.length=t.length,this.extent=r}feature(t){return this._myFeatures[t]}},d5=class{constructor(){this.layers={}}addLayer(t){this.layers[t.name]=t}};function y5(t,e,r){let{extent:i}=t,n=2**(r.z-e.z),a=(r.x-e.x*n)*i,s=(r.y-e.y*n)*i,o=[];for(let l=0;l0&&l.addLayer(d)}let h={vectorTile:l,rawData:fu(l).buffer};return this.overzoomedTileResultCache.set(s,h),h}reloadTile(t){return et(this,null,function*(){let e=t.uid,r=this.tileState.getLoaded(e);if(!r)throw Error("Should not be trying to reload a tile that was never loaded or has been removed");if(r.vectorTile)return r.showCollisionBoxes=t.showCollisionBoxes,yield this._parseWorkerTile(r,t)})}abortTile(t){return et(this,null,function*(){this.tileState.abort(t.uid)})}removeTile(t){return et(this,null,function*(){this.tileState.removeLoaded(t.uid)})}},g5=class{constructor(){this.loaded={}}loadTile(t){return et(this,null,function*(){let{uid:e,encoding:r,rawImageData:i,redFactor:n,greenFactor:a,blueFactor:s,baseShift:o}=t,l=i.width+4,u=i.height+4,h=Ba(i)?new Ht({width:l,height:u},yield Ep(i,-2,-2,l,u)):i,c=new Yl(e,h,r,n,a,s,o);return this.loaded||(this.loaded={}),this.loaded[e]=c,c})}removeTile(t){let e=this.loaded,r=t.uid;e!=null&&e[r]&&delete e[r]}},x5=class{constructor(t,e,r,i=v5){this.actor=t,this.layerIndex=e,this.availableImages=r,this.tileState=new f1,this._createGeoJSONIndex=i}loadVectorTile(t){if(!this._geoJSONIndex)throw Error("Unable to parse the data into a cluster or geojson");let{z:e,x:r,y:i}=t.tileID.canonical,n=this._geoJSONIndex.getTile(e,r,i);if(!n)return null;let a=new Iy(n.features,{version:2,extent:gt});return{vectorTile:a,rawData:fu(a,Sp).buffer}}loadTile(t){return et(this,null,function*(){let{uid:e}=t,r=new p1(t);r.abort=new AbortController;try{let i=this.loadVectorTile(t);if(!i)return null;let{vectorTile:n,rawData:a}=i;r.vectorTile=n,this.tileState.markLoaded(e,r);let s={rawData:a};return this.tileState.setParsing(e,s),yield this._parseWorkerTile(r,t)}catch(i){throw this.tileState.markLoaded(e,r),i}})}_parseWorkerTile(t,e){return et(this,null,function*(){let r=this.tileState.getParsing(t.uid),i=yield t.parse(t.vectorTile,this.layerIndex,this.availableImages,this.actor,e.subdivisionGranularity);if(r){let{rawData:n}=r;i=Xt({rawTileData:n.slice(0),encoding:"mvt"},i),this.tileState.removeParsing(t.uid)}return i})}abortTile(t){return et(this,null,function*(){this.tileState.abort(t.uid)})}removeTile(t){return et(this,null,function*(){this.tileState.removeLoaded(t.uid)})}loadData(t){return et(this,null,function*(){var r;(r=this._pendingRequest)==null||r.abort();let e=this._startRequestTiming(t);this._pendingRequest=new AbortController;try{yield this.loadAndProcessGeoJSON(t,this._pendingRequest),delete this._pendingRequest,this.tileState.clearLoaded();let i={};return t.request&&(i.data=t.data),this._finishRequestTiming(e,t,i),i}catch(i){if(delete this._pendingRequest,!xl(i))throw i;return{abandoned:!0}}})}_startRequestTiming(t){var e;if((e=t.request)!=null&&e.collectResourceTiming)return new d1(t.request.url)}_finishRequestTiming(t,e,r){let i=t==null?void 0:t.finish();i&&(r.resourceTiming={[e.source]:JSON.parse(JSON.stringify(i))})}reloadTile(t){return et(this,null,function*(){let e=t.uid,r=this.tileState.getLoaded(e);if(!r)return yield this.loadTile(t);if(r.vectorTile)return r.showCollisionBoxes=t.showCollisionBoxes,yield this._parseWorkerTile(r,t)})}loadAndProcessGeoJSON(t,e){return et(this,null,function*(){var r;if(t.request&&(t.data=(yield Ip(t.request,e)).data),t.data){t.data=this._filterGeoJSON(t.data,t.filter,t.source),this._geoJSONIndex=this._createGeoJSONIndex(t.data,t);return}if(t.dataDiff){(r=this._geoJSONIndex)!=null||(this._geoJSONIndex=this._createGeoJSONIndex({type:"FeatureCollection",features:[]},t)),this._geoJSONIndex.updateData(t.dataDiff,this._getFilterPredicate(t.filter,t.source));return}if(t.updateCluster&&this._geoJSONIndex.updateClusterOptions(t.geojsonVtOptions.cluster,y1(t)),this._geoJSONIndex==null)throw Error(`Input data given to \'${t.source}\' is not a valid GeoJSON object.`)})}_filterGeoJSON(t,e,r){if(t.type!=="FeatureCollection")return t;let i=this._getFilterPredicate(e,r);return i?{type:"FeatureCollection",features:t.features.filter(n=>i(n))}:t}_getFilterPredicate(t,e){if(typeof t!="boolean"&&!(t!=null&&t.length))return;let r=ar(t,`sources.${e}.filter`,{type:"boolean","property-type":"data-driven",overridable:!1,transition:!1});if(r.result==="error")throw Error(r.value.map(i=>`${i.key}: ${i.message}`).join(", "));return i=>r.value.evaluate({zoom:0},i)}removeSource(t){return et(this,null,function*(){var e;(e=this._pendingRequest)==null||e.abort()})}getClusterExpansionZoom(t){return this._geoJSONIndex.getClusterExpansionZoom(t.clusterId)}getClusterChildren(t){return this._geoJSONIndex.getClusterChildren(t.clusterId)}getClusterLeaves(t){return this._geoJSONIndex.getClusterLeaves(t.clusterId,t.limit,t.offset)}};function v5(t,e){let r=Xt(e.geojsonVtOptions||{},{updateable:!0,clusterOptions:y1(e)});return new Kd(t,r)}function y1({geojsonVtOptions:t,clusterProperties:e,source:r}){if(!e||!t.clusterOptions)return t.clusterOptions;let i={},n={},a={accumulated:null,zoom:0},s={properties:null},o=Object.keys(e);for(let l of o){let[u,h]=e[l],c=ar(h,`sources.${r}.clusterProperties.${l}[1]`),p=ar(typeof u=="string"?[u,["accumulated"],["get",l]]:u,`sources.${r}.clusterProperties.${l}[0]`);i[l]=c.value,n[l]=p.value}return t.clusterOptions.map=l=>{s.properties=l;let u={};for(let h of o)u[h]=i[h].evaluate(a,s);return u},t.clusterOptions.reduce=(l,u)=>{s.properties=u;for(let h of o)a.accumulated=l[h],l[h]=n[h].evaluate(a,s)},t.clusterOptions}function h1(t){return et(this,null,function*(){if(t.endsWith(".mjs")){yield import(t);return}let e=yield fetch(t,{credentials:"same-origin"});if(!e.ok)throw Error(`Failed to load ${t}: ${e.status}`);let r=yield e.text();if(/^[ \\t]*(import|export)\\s/m.test(r)){let i=URL.createObjectURL(new Blob([r],{type:"text/javascript"}));try{yield import(i)}finally{URL.revokeObjectURL(i)}return}globalThis.eval(r)})}var b5=class{constructor(t){this.self=t,this.actor=new Ty(t),this.layerIndexes={},this.availableImages={},this.workerSources={},this.demWorkerSources={},this.externalWorkerSourceTypes={},this.globalStates=new Map,this.self.registerWorkerSource=(e,r)=>{if(this.externalWorkerSourceTypes[e])throw Error(`Worker source with name "${e}" already registered.`);this.externalWorkerSourceTypes[e]=r},this.self.addProtocol=Fp,this.self.removeProtocol=Tp,this.self.registerRTLTextPlugin=e=>{Ar.setMethods(e)},this.self.makeRequest=Pa,this.actor.registerMessageHandler("LDT",(e,r)=>this._getDEMWorkerSource(e,r.source).loadTile(r)),this.actor.registerMessageHandler("RDT",(e,r)=>et(this,null,function*(){this._getDEMWorkerSource(e,r.source).removeTile(r)})),this.actor.registerMessageHandler("GCEZ",(e,r)=>et(this,null,function*(){return this._getWorkerSource(e,r.type,r.source).getClusterExpansionZoom(r)})),this.actor.registerMessageHandler("GCC",(e,r)=>et(this,null,function*(){return this._getWorkerSource(e,r.type,r.source).getClusterChildren(r)})),this.actor.registerMessageHandler("GCL",(e,r)=>et(this,null,function*(){return this._getWorkerSource(e,r.type,r.source).getClusterLeaves(r)})),this.actor.registerMessageHandler("LD",(e,r)=>this._getWorkerSource(e,r.type,r.source).loadData(r)),this.actor.registerMessageHandler("LT",(e,r)=>this._getWorkerSource(e,r.type,r.source).loadTile(r)),this.actor.registerMessageHandler("RT",(e,r)=>this._getWorkerSource(e,r.type,r.source).reloadTile(r)),this.actor.registerMessageHandler("AT",(e,r)=>this._getWorkerSource(e,r.type,r.source).abortTile(r)),this.actor.registerMessageHandler("RMT",(e,r)=>this._getWorkerSource(e,r.type,r.source).removeTile(r)),this.actor.registerMessageHandler("RS",(e,r)=>et(this,null,function*(){var n,a;if(!((a=(n=this.workerSources[e])==null?void 0:n[r.type])!=null&&a[r.source]))return;let i=this.workerSources[e][r.type][r.source];delete this.workerSources[e][r.type][r.source],i.removeSource!==void 0&&i.removeSource(r)})),this.actor.registerMessageHandler("RM",e=>et(this,null,function*(){delete this.layerIndexes[e],delete this.availableImages[e],delete this.workerSources[e],delete this.demWorkerSources[e],this.globalStates.delete(e)})),this.actor.registerMessageHandler("SR",(e,r)=>et(this,null,function*(){this.referrer=r})),this.actor.registerMessageHandler("SRPS",(e,r)=>this._syncRTLPluginState(e,r)),this.actor.registerMessageHandler("IS",(e,r)=>et(this,null,function*(){yield h1(r)})),this.actor.registerMessageHandler("SI",(e,r)=>this._setImages(e,r)),this.actor.registerMessageHandler("UL",(e,r)=>et(this,null,function*(){this._getLayerIndex(e).update(r.layers,r.removedIds,this._getGlobalState(e))})),this.actor.registerMessageHandler("UGS",(e,r)=>et(this,null,function*(){let i=this._getGlobalState(e);for(let n in r)i[n]=r[n]})),this.actor.registerMessageHandler("SL",(e,r)=>et(this,null,function*(){this._getLayerIndex(e).replace(r,this._getGlobalState(e))}))}_getGlobalState(t){let e=this.globalStates.get(t);return e||(e={},this.globalStates.set(t,e)),e}_setImages(t,e){return et(this,null,function*(){this.availableImages[t]=e;for(let r in this.workerSources[t]){let i=this.workerSources[t][r];for(let n in i)i[n].availableImages=e}})}_syncRTLPluginState(t,e){return et(this,null,function*(){return yield Ar.syncState(e,h1)})}_getAvailableImages(t){let e=this.availableImages[t];return e||(e=[]),e}_getLayerIndex(t){let e=this.layerIndexes[t];return e||(e=this.layerIndexes[t]=new c5),e}_getWorkerSource(t,e,r){var i,n;if((i=this.workerSources)[t]||(i[t]={}),(n=this.workerSources[t])[e]||(n[e]={}),!this.workerSources[t][e][r]){let a={sendAsync:(s,o)=>(s.targetMapId=t,this.actor.sendAsync(s,o))};switch(e){case"vector":this.workerSources[t][e][r]=new m5(a,this._getLayerIndex(t),this._getAvailableImages(t));break;case"geojson":this.workerSources[t][e][r]=new x5(a,this._getLayerIndex(t),this._getAvailableImages(t));break;default:this.workerSources[t][e][r]=new this.externalWorkerSourceTypes[e](a,this._getLayerIndex(t),this._getAvailableImages(t))}}return this.workerSources[t][e][r]}_getDEMWorkerSource(t,e){var r,i;return(r=this.demWorkerSources)[t]||(r[t]={}),(i=this.demWorkerSources[t])[e]||(i[e]=new g5),this.demWorkerSources[t][e]}};vr(self)&&(self.worker=new b5(self));export{b5 as default};\n/*! Bundled license information:\n\nmaplibre-gl/dist/maplibre-gl-shared.mjs:\nmaplibre-gl/dist/maplibre-gl-worker.mjs:\n (**\n * MapLibre GL JS\n * @license 3-Clause BSD. Full text of license: https://github.com/maplibre/maplibre-gl-js/blob/v6.11.2/LICENSE.txt\n *)\n*/\n'});var Put=K((zfi,Lut)=>{"use strict";var k3=St(),zDr=Du().sanitizeHTML,IDr=Nre(),Cut=ix();function Dut(e,t){this.subplot=e,this.uid=e.uid+"-"+t,this.index=t,this.idSource="source-"+this.uid,this.idLayer=Cut.layoutLayerPrefix+this.uid,this.sourceType=null,this.source=null,this.layerType=null,this.below=null,this.visible=!1}var Pv=Dut.prototype;Pv.update=function(t){this.visible?this.needsNewImage(t)?this.updateImage(t):this.needsNewSource(t)?(this.removeLayer(),this.updateSource(t),this.updateLayer(t)):this.needsNewLayer(t)?this.updateLayer(t):this.updateStyle(t):(this.updateSource(t),this.updateLayer(t)),this.visible=TO(t)};Pv.needsNewImage=function(e){var t=this.subplot.map;return t.getSource(this.idSource)&&this.sourceType==="image"&&e.sourcetype==="image"&&(this.source!==e.source||JSON.stringify(this.coordinates)!==JSON.stringify(e.coordinates))};Pv.needsNewSource=function(e){return this.sourceType!==e.sourcetype||JSON.stringify(this.source)!==JSON.stringify(e.source)||this.layerType!==e.type};Pv.needsNewLayer=function(e){return this.layerType!==e.type||this.below!==this.subplot.belowLookup["layout-"+this.index]};Pv.lookupBelow=function(){return this.subplot.belowLookup["layout-"+this.index]};Pv.updateImage=function(e){var t=this.subplot.map;t.getSource(this.idSource).updateImage({url:e.source,coordinates:e.coordinates});var r=this.findFollowingMapLayerId(this.lookupBelow());r!==null&&this.subplot.map.moveLayer(this.idLayer,r)};Pv.updateSource=function(e){var t=this.subplot.map;if(t.getSource(this.idSource)&&t.removeSource(this.idSource),this.sourceType=e.sourcetype,this.source=e.source,!!TO(e)){var r=RDr(e);t.addSource(this.idSource,r)}};Pv.findFollowingMapLayerId=function(e){if(e==="traces")for(var t=this.subplot.getMapLayers(),r=0;r0){for(var r=0;r0}function Fut(e){var t={},r={};switch(e.type){case"circle":k3.extendFlat(r,{"circle-radius":e.circle.radius,"circle-color":e.color,"circle-opacity":e.opacity});break;case"line":k3.extendFlat(r,{"line-width":e.line.width,"line-color":e.color,"line-opacity":e.opacity,"line-dasharray":e.line.dash});break;case"fill":k3.extendFlat(r,{"fill-color":e.color,"fill-outline-color":e.fill.outlinecolor,"fill-opacity":e.opacity});break;case"symbol":var i=e.symbol,n=IDr(i.textposition,i.iconsize);k3.extendFlat(t,{"icon-image":i.icon,"icon-size":i.iconsize/10,"text-field":i.text,"text-size":i.textfont.size,"text-anchor":n.anchor,"text-offset":n.offset,"symbol-placement":i.placement}),k3.extendFlat(r,{"icon-color":e.color,"text-color":i.textfont.color,"text-opacity":e.opacity});break;case"raster":k3.extendFlat(r,{"raster-fade-duration":0,"raster-opacity":e.opacity});break}return{layout:t,paint:r}}function RDr(e){var t=e.sourcetype,r=e.source,i={type:t},n;return t==="geojson"?n="data":t==="vector"?n=typeof r=="string"?"url":"tiles":t==="raster"?(n="tiles",i.tileSize=256):t==="image"&&(n="url",i.coordinates=e.coordinates),i[n]=r,e.sourceattribution&&(i.attribution=zDr(e.sourceattribution)),i}Lut.exports=function(t,r,i){var n=new Dut(t,r);return n.update(i),n}});var Hut=K((Ifi,Gut)=>{"use strict";var SO=(Sut(),or(Tut)),BDr=kut(),zut=!1,qDr=()=>{zut||(zut=!0,SO.setWorkerUrl(URL.createObjectURL(new Blob([BDr],{type:"text/javascript"}))))},EO=St(),But=Ny(),Iut=Ho(),ODr=Cs(),NDr=U0(),MO=Gf(),qut=Q1(),VDr=qut.drawMode,UDr=qut.selectMode,GDr=fh().prepSelect,HDr=fh().clearOutline,jDr=fh().clearSelectionsCache,WDr=fh().selectOnClick,Ax=ix(),$Dr=Put();function Out(e,t){this.id=t,this.gd=e;var r=e._fullLayout,i=e._context;this.container=r._glcontainer.node(),this.isStatic=i.staticPlot,this.uid=r._uid+"-"+this.id,this.div=null,this.xaxis=null,this.yaxis=null,this.createFramework(r),this.map=null,this.styleObj=null,this.traceHash={},this.layerList=[],this.belowLookup={},this.dragging=!1,this.wheeling=!1}var oh=Out.prototype;oh.plot=function(e,t,r){var i=this,n;i.map?n=new Promise(function(a,o){i.updateMap(e,t,a,o)}):n=new Promise(function(a,o){i.createMap(e,t,a,o)}),r.push(n)};oh.createMap=function(e,t,r,i){var n=this,a=t[n.id],o=n.styleObj=Uut(a.style),s=a.bounds,l=s?[[s.west,s.south],[s.east,s.north]]:null;let u={container:n.div,style:o.style,center:Qoe(a.center),zoom:a.zoom,bearing:a.bearing,pitch:a.pitch,maxBounds:l,interactive:!n.isStatic,canvasContextAttributes:{preserveDrawingBuffer:n.isStatic},doubleClickZoom:!1,boxZoom:!1,attributionControl:!1},f=a._fitBounds;f&&(u.bounds=[[f.west,f.south],[f.east,f.north]],u.fitBoundsOptions={padding:Ax.fitBoundsPadding}),qDr();let c=n.map=new SO.Map(u).addControl(new SO.AttributionControl({compact:!0})),h={};c.setMissingStyleImageResolver(p=>(!h[p]&&/^[a-zA-Z0-9-]+$/.test(p)&&(h[p]=new Promise(v=>{let y=new Image(15,15);y.onload=()=>{c.addImage(p,y,{sdf:!0}),v()},y.onerror=()=>v(),y.crossOrigin="Anonymous",y.src=`https://cdn.jsdelivr.net/npm/@mapbox/maki@8.2.0/icons/${p}.svg`})),h[p])),c.setTransformRequest(function(p){return p=p.replace("https://fonts.openmaptiles.org/Open Sans Extrabold","https://fonts.openmaptiles.org/Open Sans Extra Bold"),p=p.replace("https://tiles.basemaps.cartocdn.com/fonts/Open Sans Extrabold","https://fonts.openmaptiles.org/Open Sans Extra Bold"),p=p.replace("https://fonts.openmaptiles.org/Open Sans Regular,Arial Unicode MS Regular","https://fonts.openmaptiles.org/Klokantech Noto Sans Regular"),{url:p}}),c._canvas.style.left="0px",c._canvas.style.top="0px",n.rejectOnError(i),n.isStatic||n.initFx(e,t);var d=[];d.push(new Promise(function(p){c.once("load",p)})),d=d.concat(But.fetchTraceGeoData(e)),Promise.all(d).then(function(){f&&Nut(n,a),Vut(n,a),n.fillBelowLookup(e,t),n.updateData(e),n.updateLayout(t),n.resolveOnRender(r)}).catch(i)};oh.updateMap=function(e,t,r,i){var n=this,a=n.map,o=t[this.id];n.rejectOnError(i);var s=[],l=Uut(o.style);JSON.stringify(n.styleObj)!==JSON.stringify(l)&&(n.styleObj=l,a.setStyle(l.style),n.traceHash={},s.push(new Promise(function(u){a.once("styledata",u)}))),s=s.concat(But.fetchTraceGeoData(e)),Promise.all(s).then(function(){n.fillBelowLookup(e,t),n.updateData(e);let u=o._fitBounds;u&&(a.fitBounds([[u.west,u.south],[u.east,u.north]],{padding:Ax.fitBoundsPadding,animate:!1}),Nut(n,o),Vut(n,o)),n.updateLayout(t),n.resolveOnRender(r)}).catch(i)};function Nut(e,t){let{center:r,zoom:i}=e.getView();t._input.center=t.center=r,t._input.zoom=t.zoom=i,t._input._fitView={center:Gs({},r),zoom:i}}function Vut(e,t){let r=e.getView();e.viewInitial={center:EO.extendFlat({},r.center),bearing:t.bearing,pitch:t.pitch,zoom:r.zoom}}oh.fillBelowLookup=function(e,t){var r=t[this.id],i=r.layers,n,a,o=this.belowLookup={},s=!1;for(n=0;n1)for(n=0;nt.project(i).x,_subplot:t},t.yaxis={_id:"y",c2p:i=>t.project(i).y,_subplot:t},t.updateFramework(e),t.mockAxis={type:"linear",showexponent:"all",exponentformat:"B"},ODr.setConvert(t.mockAxis,e)};oh.initFx=function(e,t){var r=this,i=r.gd,n=r.map;n.on("moveend",function(s){if(r.map){var l=i._fullLayout;if(s.originalEvent||r.wheeling){var u=l[r.id];Iut.call("_storeDirectGUIEdit",i.layout,l._preGUI,r.getViewEdits(u));var f=r.getView();u._input.center=u.center=f.center,u._input.zoom=u.zoom=f.zoom,u._input.bearing=u.bearing=f.bearing,u._input.pitch=u.pitch=f.pitch,i.emit("plotly_relayout",r.getViewEditsWithDerived(f))}s.originalEvent&&s.originalEvent.type==="mouseup"?r.dragging=!1:r.wheeling&&(r.wheeling=!1),l&&l._rehover&&l._rehover()}}),n.on("wheel",function(){r.wheeling=!0}),n.on("mousemove",function(s){var l=r.div.getBoundingClientRect(),u=[s.originalEvent.offsetX,s.originalEvent.offsetY];s.target.getBoundingClientRect=function(){return l},r.xaxis.p2c=function(){return n.unproject(u).lng},r.yaxis.p2c=function(){return n.unproject(u).lat},i._fullLayout._rehover=function(){i._fullLayout._hoversubplot===r.id&&i._fullLayout[r.id]&&MO.hover(i,s,r.id)},MO.hover(i,s,r.id),i._fullLayout._hoversubplot=r.id});function a(){MO.loneUnhover(t._hoverlayer)}n.on("dragstart",function(){r.dragging=!0,a()}),n.on("zoomstart",a),n.on("mouseout",function(){i._fullLayout._hoversubplot=null});function o(){var s=r.getView();i.emit("plotly_relayouting",r.getViewEditsWithDerived(s))}n.on("drag",o),n.on("zoom",o),n.on("dblclick",function(){var s=i._fullLayout[r.id];Iut.call("_storeDirectGUIEdit",i.layout,i._fullLayout._preGUI,r.getViewEdits(s));var l=r.viewInitial;n.setCenter(Qoe(l.center)),n.setZoom(l.zoom),n.setBearing(l.bearing),n.setPitch(l.pitch);var u=r.getView();s._input.center=s.center=u.center,s._input.zoom=s.zoom=u.zoom,s._input.bearing=s.bearing=u.bearing,s._input.pitch=s.pitch=u.pitch,i.emit("plotly_doubleclick",null),i.emit("plotly_relayout",r.getViewEditsWithDerived(u))}),r.clearOutline=function(){jDr(r.dragOptions),HDr(r.dragOptions.gd)},r.onClickInPanFn=function(s){return function(l){var u=i._fullLayout.clickmode;u.indexOf("select")>-1&&WDr(l.originalEvent,i,[r.xaxis],[r.yaxis],r.id,s),u.indexOf("event")>-1&&MO.click(i,l.originalEvent)}}};oh.updateFx=function(e){var t=this,r=t.map,i=t.gd;if(t.isStatic)return;function n(l){var u=t.map.unproject(l);return[u.lng,u.lat]}var a=e.dragmode,o;o=function(l,u){if(u.isRect){var f=l.range={};f[t.id]=[n([u.xmin,u.ymin]),n([u.xmax,u.ymax])]}else{var c=l.lassoPoints={};c[t.id]=u.map(n)}};var s=t.dragOptions;t.dragOptions=EO.extendDeep(s||{},{dragmode:e.dragmode,element:t.div,gd:i,plotinfo:{id:t.id,domain:e[t.id].domain,xaxis:t.xaxis,yaxis:t.yaxis,fillRangeItems:o},xaxes:[t.xaxis],yaxes:[t.yaxis],subplot:t.id}),r.off("click",t.onClickInPanHandler),UDr(a)||VDr(a)?(r.dragPan.disable(),r.on("zoomstart",t.clearOutline),t.dragOptions.prepFn=function(l,u,f){GDr(l,u,f,t.dragOptions,a)},NDr.init(t.dragOptions)):(r.dragPan.enable(),r.off("zoomstart",t.clearOutline),t.div.onmousedown=null,t.div.ontouchstart=null,t.div.removeEventListener("touchstart",t.div._ontouchstart),t.onClickInPanHandler=t.onClickInPanFn(t.dragOptions),r.on("click",t.onClickInPanHandler))};oh.updateFramework=function(e){var t=e[this.id].domain,r=e._size,i=this.div.style;i.width=r.w*(t.x[1]-t.x[0])+"px",i.height=r.h*(t.y[1]-t.y[0])+"px",i.left=r.l+t.x[0]*r.w+"px",i.top=r.t+(1-t.y[1])*r.h+"px",this.xaxis._offset=r.l+t.x[0]*r.w,this.xaxis._length=r.w*(t.x[1]-t.x[0]),this.yaxis._offset=r.t+(1-t.y[1])*r.h,this.yaxis._length=r.h*(t.y[1]-t.y[0])};oh.updateLayers=function(e){var t=e[this.id],r=t.layers,i=this.layerList,n;if(r.length!==i.length){for(n=0;nYDr});function YDr(e,t){let r=[];for(let l of e){if(l.subplot!==t||l.visible!==!0)continue;if(l.type==="choroplethmap")return null;let{lat:u,lon:f}=l;if(!f||!u)continue;let c=Math.min(f.length,u.length);for(let h=0;h{"use strict";jut=O1(Ny())});var Zut=K((Bfi,Xut)=>{"use strict";var ese=St(),XDr=Jb(),ZDr=A0(),Yut=bk(),{getMapFitBounds:KDr}=($ut(),or(Wut));Xut.exports=function(t,r,i){XDr(t,r,i,{type:"map",attributes:Yut,handleDefaults:JDr,partition:"y",fullData:i})};function JDr(e,t,r,i){r("style"),r("center.lon"),r("center.lat"),r("zoom"),r("bearing"),r("pitch");let n=r("fitbounds");var a=r("bounds.west"),o=r("bounds.east"),s=r("bounds.south"),l=r("bounds.north");(a===void 0||o===void 0||s===void 0||l===void 0)&&delete t.bounds,ZDr(e,t,{name:"layers",handleItemDefaults:QDr}),t._fitBounds=null;let{_fitView:{center:u,zoom:f}={},center:c,zoom:h}=e,d=(c==null?void 0:c.lon)===(u==null?void 0:u.lon)&&(c==null?void 0:c.lat)===(u==null?void 0:u.lat)&&h===f;if(n&&d){let p=KDr(i.fullData,i.id);p&&(t._fitBounds=p)}t._input=e}function QDr(e,t){function r(l,u){return ese.coerce(e,t,Yut.layers,l,u)}var i=r("visible");if(i){var n=r("sourcetype"),a=n==="raster"||n==="image";r("source"),r("sourceattribution"),n==="vector"&&r("sourcelayer"),n==="image"&&r("coordinates");var o;a&&(o="raster");var s=r("type",o);a&&s!=="raster"&&(s=t.type="raster",ese.log("Source types *raster* and *image* must drawn *raster* layer type.")),r("below"),r("color"),r("opacity"),r("minzoom"),r("maxzoom"),s==="circle"&&r("circle.radius"),s==="line"&&(r("line.width"),r("line.dash")),s==="fill"&&r("fill.outlinecolor"),s==="symbol"&&(r("symbol.icon"),r("symbol.iconsize"),r("symbol.text"),ese.coerceFont(r,"symbol.textfont",void 0,{noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0}),r("symbol.textposition"),r("symbol.placement"))}}});var kO=K(Ep=>{"use strict";var tse=St(),Kut=tse.strTranslate,eFr=tse.strScale,tFr=Zh().getSubplotCalcData,rFr=(Rp(),or(Ip)),iFr=No(),Jut=Is(),nFr=Du(),aFr=Hut(),Tx="map";Ep.name=Tx;Ep.attr="subplot";Ep.idRoot=Tx;Ep.idRegex=Ep.attrRegex=tse.counterRegex(Tx);Ep.attributes={subplot:{valType:"subplotid",dflt:"map",editType:"calc"}};Ep.layoutAttributes=bk();Ep.supplyLayoutDefaults=Zut();Ep.plot=function(t){for(var r=t._fullLayout,i=t.calcdata,n=r._subplots[Tx],a=0;av/2){var y=c.split("|").join("
");d.text(y).attr("data-unformatted",y).call(nFr.convertToTspans,e),p=Jut.bBox(d.node())}d.attr("transform",Kut(-3,-p.height+8)),h.insert("rect",".static-attribution").attr({x:-p.width-6,y:-p.height-3,width:p.width+6,height:p.height+3,fill:"rgba(255, 255, 255, 0.75)"});var m=1;p.width+6>v&&(m=v/(p.width+6));var w=[i.l+i.w*o.x[1],i.t+i.h*(1-o.y[0])];h.attr("transform",Kut(w[0],w[1])+eFr(m))}};Ep.updateFx=function(e){for(var t=e._fullLayout,r=t._subplots[Tx],i=0;i{"use strict";Qut.exports={attributes:i7(),supplyDefaults:QQe(),colorbar:e0(),formatLabels:Ore(),calc:XQ(),plot:pet(),hoverPoints:l7().hoverPoints,eventData:get(),selectPoints:bet(),styleOnSelect:function(e,t){if(t){var r=t[0].trace;r._glTrace.update(t)}},moduleType:"trace",name:"scattermap",basePlotModule:kO(),categories:["map","gl","symbols","showLegend","scatter-like"],meta:{}}});var rft=K((Nfi,tft)=>{"use strict";tft.exports=eft()});var rse=K((Vfi,ift)=>{"use strict";var hg=NE(),oFr=Wu(),{hovertemplateAttrs:sFr,templatefallbackAttrs:lFr}=gu(),uFr=Tu(),Mx=Os().extendFlat;ift.exports=Mx({locations:{valType:"data_array",editType:"calc"},z:{valType:"data_array",editType:"calc"},geojson:{valType:"any",editType:"calc"},featureidkey:Mx({},hg.featureidkey,{}),below:{valType:"string",editType:"plot"},text:hg.text,hovertext:hg.hovertext,marker:{line:{color:Mx({},hg.marker.line.color,{editType:"plot"}),width:Mx({},hg.marker.line.width,{editType:"plot"}),editType:"calc"},opacity:Mx({},hg.marker.opacity,{editType:"plot"}),editType:"calc"},selected:{marker:{opacity:Mx({},hg.selected.marker.opacity,{editType:"plot"}),editType:"plot"},editType:"plot"},unselected:{marker:{opacity:Mx({},hg.unselected.marker.opacity,{editType:"plot"}),editType:"plot"},editType:"plot"},hoverinfo:hg.hoverinfo,hovertemplate:sFr({},{keys:["properties"]}),hovertemplatefallback:lFr(),showlegend:Mx({},uFr.showlegend,{dflt:!1})},oFr("",{cLetter:"z",editTypeOverride:"calc"}))});var aft=K((Ufi,nft)=>{"use strict";var nD=St(),fFr=xh(),cFr=rse();nft.exports=function(t,r,i,n){function a(f,c){return nD.coerce(t,r,cFr,f,c)}var o=a("locations"),s=a("z"),l=a("geojson");if(!nD.isArrayOrTypedArray(o)||!o.length||!nD.isArrayOrTypedArray(s)||!s.length||!(typeof l=="string"&&l!==""||nD.isPlainObject(l))){r.visible=!1;return}a("featureidkey"),r._length=Math.min(o.length,s.length),a("below"),a("text"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback");var u=a("marker.line.width");u&&a("marker.line.color"),a("marker.opacity"),fFr(t,r,n,a,{prefix:"",cLetter:"z"}),nD.coerceSelectionMarkerOpacity(r,a)}});var ise=K((Gfi,lft)=>{"use strict";var hFr=Hs(),dg=St(),dFr=gf(),pFr=Is(),vFr=zE().makeBlank,oft=Ny();function mFr(e){var t=e[0].trace,r=t.visible===!0&&t._length!==0,i={layout:{visibility:"none"},paint:{}},n={layout:{visibility:"none"},paint:{}},a=t._opts={fill:i,line:n,geojson:vFr()};if(!r)return a;var o=oft.extractTraceFeature(e);if(!o)return a;var s=dFr.makeColorScaleFuncFromTrace(t),l=t.marker,u=l.line||{},f;dg.isArrayOrTypedArray(l.opacity)&&(f=function(w){var _=w.mo;return hFr(_)?+dg.constrain(_,0,1):0});var c;dg.isArrayOrTypedArray(u.color)&&(c=function(w){return w.mlc});var h;dg.isArrayOrTypedArray(u.width)&&(h=function(w){return w.mlw});for(var d=0;d{"use strict";var fft=ise().convert,yFr=ise().convertOnSelect,uft=ix().traceLayerPrefix;function cft(e,t){this.type="choroplethmap",this.subplot=e,this.uid=t,this.sourceId="source-"+t,this.layerList=[["fill",uft+t+"-fill"],["line",uft+t+"-line"]],this.below=null}var cT=cft.prototype;cT.update=function(e){this._update(fft(e)),e[0].trace._glTrace=this};cT.updateOnSelect=function(e){this._update(yFr(e))};cT._update=function(e){var t=this.subplot,r=this.layerList,i=t.belowLookup["trace-"+this.uid];t.map.getSource(this.sourceId).setData(e.geojson),i!==this.below&&(this._removeLayers(),this._addLayers(e,i),this.below=i);for(var n=0;n=0;r--)e.removeLayer(t[r][1])};cT.dispose=function(){var e=this.subplot.map;this._removeLayers(),e.removeSource(this.sourceId)};hft.exports=function(t,r){var i=r[0].trace,n=new cft(t,i.uid),a=n.sourceId,o=fft(r),s=n.below=t.belowLookup["trace-"+i.uid];return t.map.addSource(a,{type:"geojson",data:o.geojson}),n._addLayers(o,s),r[0].trace._glTrace=n,n}});var vft=K((jfi,pft)=>{"use strict";pft.exports={attributes:rse(),supplyDefaults:aft(),colorbar:LA(),calc:kee(),plot:dft(),hoverPoints:Dee(),eventData:Fee(),selectPoints:Lee(),styleOnSelect:function(e,t){if(t){var r=t[0].trace;r._glTrace.updateOnSelect(t)}},getBelow:function(e,t){for(var r=t.getMapLayers(),i=r.length-2;i>=0;i--){var n=r[i].id;if(typeof n=="string"&&n.indexOf("water")===0){for(var a=i+1;a{"use strict";mft.exports=vft()});var ase=K(($fi,xft)=>{"use strict";var gFr=Wu(),{hovertemplateAttrs:xFr,templatefallbackAttrs:bFr}=gu(),gft=Tu(),CO=i7(),nse=Os().extendFlat;xft.exports=nse({lon:CO.lon,lat:CO.lat,z:{valType:"data_array",editType:"calc"},radius:{valType:"number",editType:"plot",arrayOk:!0,min:1,dflt:30},below:{valType:"string",editType:"plot"},text:CO.text,hovertext:CO.hovertext,hoverinfo:nse({},gft.hoverinfo,{flags:["lon","lat","z","text","name"]}),hovertemplate:xFr(),hovertemplatefallback:bFr(),showlegend:nse({},gft.showlegend,{dflt:!1})},gFr("",{cLetter:"z",editTypeOverride:"calc"}))});var _ft=K((Yfi,bft)=>{"use strict";var _Fr=St(),wFr=xh(),AFr=ase();bft.exports=function(t,r,i,n){function a(u,f){return _Fr.coerce(t,r,AFr,u,f)}var o=a("lon")||[],s=a("lat")||[],l=Math.min(o.length,s.length);if(!l){r.visible=!1;return}r._length=l,a("z"),a("radius"),a("below"),a("text"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback"),wFr(t,r,n,a,{prefix:"",cLetter:"z"})}});var Tft=K((Xfi,Aft)=>{"use strict";var ose=Hs(),TFr=St().isArrayOrTypedArray,sse=(Il(),or(Bl)).BADNUM,MFr=T0(),wft=St()._;Aft.exports=function(t,r){for(var i=r._length,n=new Array(i),a=r.z,o=TFr(a)&&a.length,s=0;s{"use strict";var SFr=Hs(),lse=St(),Mft=wo(),Sft=gf(),Eft=(Il(),or(Bl)).BADNUM,EFr=zE().makeBlank;kft.exports=function(t){var r=t[0].trace,i=r.visible===!0&&r._length!==0,n={layout:{visibility:"none"},paint:{}},a=r._opts={heatmap:n,geojson:EFr()};if(!i)return a;var o=[],s,l=r.z,u=r.radius,f=lse.isArrayOrTypedArray(l)&&l.length,c=lse.isArrayOrTypedArray(u);for(s=0;s0?+u[s]:0),o.push({type:"Feature",geometry:{type:"Point",coordinates:d},properties:p})}}var y=Sft.extractOpts(r),m=y.reversescale?Sft.flipScale(y.colorscale):y.colorscale,w=m[0][1],_=Mft.opacity(w)<1?w:Mft.addOpacity(w,0),b=["interpolate",["linear"],["heatmap-density"],0,_];for(s=1;s{"use strict";var Dft=Cft(),kFr=ix().traceLayerPrefix;function Fft(e,t){this.type="densitymap",this.subplot=e,this.uid=t,this.sourceId="source-"+t,this.layerList=[["heatmap",kFr+t+"-heatmap"]],this.below=null}var DO=Fft.prototype;DO.update=function(e){var t=this.subplot,r=this.layerList,i=Dft(e),n=t.belowLookup["trace-"+this.uid];t.map.getSource(this.sourceId).setData(i.geojson),n!==this.below&&(this._removeLayers(),this._addLayers(i,n),this.below=n);for(var a=0;a=0;r--)e.removeLayer(t[r][1])};DO.dispose=function(){var e=this.subplot.map;this._removeLayers(),e.removeSource(this.sourceId)};Lft.exports=function(t,r){var i=r[0].trace,n=new Fft(t,i.uid),a=n.sourceId,o=Dft(r),s=n.below=t.belowLookup["trace-"+i.uid];return t.map.addSource(a,{type:"geojson",data:o.geojson}),n._addLayers(o,s),n}});var Ift=K((Jfi,zft)=>{"use strict";var CFr=Cs(),DFr=l7().hoverPoints,FFr=l7().getExtraText;zft.exports=function(t,r,i){var n=DFr(t,r,i);if(n){var a=n[0],o=a.cd,s=o[0].trace,l=o[a.index];if(delete a.color,"z"in l){var u=a.subplot.mockAxis;a.z=l.z,a.zLabel=CFr.tickText(u,u.c2l(l.z),"hover").text}return a.extraText=FFr(s,l,o[0].t.labels),[a]}}});var Bft=K((Qfi,Rft)=>{"use strict";Rft.exports=function(t,r){return t.lon=r.lon,t.lat=r.lat,t.z=r.z,t}});var Oft=K((eci,qft)=>{"use strict";qft.exports={attributes:ase(),supplyDefaults:_ft(),colorbar:LA(),formatLabels:Ore(),calc:Tft(),plot:Pft(),hoverPoints:Ift(),eventData:Bft(),getBelow:function(e,t){for(var r=t.getMapLayers(),i=0;i{"use strict";Nft.exports=Oft()});var fse=K((ici,Wft)=>{"use strict";var LFr=lf(),PFr=Tu(),Uft=Gc(),use=rw(),zFr=kf().attributes,{hovertemplateAttrs:Gft,templatefallbackAttrs:Hft}=gu(),IFr=Wu(),RFr=cu().templatedArray,BFr=zf().descriptionOnlyNumbers,jft=Os().extendFlat,qFr=Ef().overrideAll,rci=Wft.exports=qFr({hoverinfo:jft({},PFr.hoverinfo,{flags:[],arrayOk:!1}),hoverlabel:use.hoverlabel,domain:zFr({name:"sankey",trace:!0}),orientation:{valType:"enumerated",values:["v","h"],dflt:"h"},direction:{valType:"enumerated",values:["forward","reversed"],dflt:"forward"},valueformat:{valType:"string",dflt:".3s",description:BFr("value")},valuesuffix:{valType:"string",dflt:""},arrangement:{valType:"enumerated",values:["snap","perpendicular","freeform","fixed"],dflt:"snap"},textfont:LFr({autoShadowDflt:!0}),customdata:void 0,node:{label:{valType:"data_array",dflt:[]},groups:{valType:"info_array",impliedEdits:{x:[],y:[]},dimensions:2,freeLength:!0,dflt:[],items:{valType:"number",editType:"calc"}},x:{valType:"data_array",dflt:[]},y:{valType:"data_array",dflt:[]},color:{valType:"color",arrayOk:!0},customdata:{valType:"data_array",editType:"calc"},line:{color:{valType:"color",dflt:Uft.defaultLine,arrayOk:!0},width:{valType:"number",min:0,dflt:.5,arrayOk:!0}},pad:{valType:"number",arrayOk:!1,min:0,dflt:20},thickness:{valType:"number",arrayOk:!1,min:1,dflt:20},hoverinfo:{valType:"enumerated",values:["all","none","skip"],dflt:"all"},hoverlabel:use.hoverlabel,hovertemplate:Gft({},{keys:["value","label"]}),hovertemplatefallback:Hft(),align:{valType:"enumerated",values:["justify","left","right","center"],dflt:"justify"},sort:{valType:"enumerated",values:["auto","input"],dflt:"auto"}},link:{arrowlen:{valType:"number",min:0,dflt:0},label:{valType:"data_array",dflt:[]},color:{valType:"color",arrayOk:!0},hovercolor:{valType:"color",arrayOk:!0},customdata:{valType:"data_array",editType:"calc"},line:{color:{valType:"color",dflt:Uft.defaultLine,arrayOk:!0},width:{valType:"number",min:0,dflt:0,arrayOk:!0}},source:{valType:"data_array",dflt:[]},target:{valType:"data_array",dflt:[]},value:{valType:"data_array",dflt:[]},hoverinfo:{valType:"enumerated",values:["all","none","skip"],dflt:"all"},hoverlabel:use.hoverlabel,hovertemplate:Gft({},{keys:["value","label"]}),hovertemplatefallback:Hft(),colorscales:RFr("concentrationscales",{editType:"calc",label:{valType:"string",editType:"calc",dflt:""},cmax:{valType:"number",editType:"calc",dflt:1},cmin:{valType:"number",editType:"calc",dflt:0},colorscale:jft(IFr().colorscale,{dflt:[[0,"white"],[1,"black"]]})}),sort:{valType:"enumerated",values:["auto","input"],dflt:"auto"}}},"calc","nested")});var Zft=K((nci,Xft)=>{"use strict";var hT=St(),FO=fse(),C3=wo(),OFr=kf().defaults,$ft=V6(),Yft=cu(),NFr=A0();Xft.exports=function(t,r,i,n){function a(b,M){return hT.coerce(t,r,FO,b,M)}var o=hT.extendDeep(n.hoverlabel,t.hoverlabel),s=t.node,l=Yft.newContainer(r,"node");function u(b,M){return hT.coerce(s,l,FO.node,b,M)}u("label"),u("groups"),u("x"),u("y"),u("pad"),u("thickness"),u("line.color"),u("line.width"),u("hoverinfo",t.hoverinfo),$ft(s,l,u,o),u("hovertemplate"),u("align"),u("sort");var f=n.colorway;let c=b=>f[b%f.length];u("color",l.label.map((b,M)=>C3.addOpacity(c(M),.8))),u("customdata");var h=t.link||{},d=Yft.newContainer(r,"link");function p(b,M){return hT.coerce(h,d,FO.link,b,M)}p("label"),p("arrowlen"),p("source"),p("target"),p("value"),p("line.color"),p("line.width"),p("hoverinfo",t.hoverinfo),$ft(h,d,p,o),p("hovertemplate"),p("sort");var v=C3.luminosity(n.paper_bgcolor)<.333,y=v?"rgba(255, 255, 255, 0.6)":"rgba(0, 0, 0, 0.2)",m=p("color",y);function w(b){if(!C3.isValid(b))return b;let M=C3.opacity(b);return M<=.8?C3.addOpacity(b,M+.2):v?C3.brighten(b,10):C3.adjustLightness(b,-10)}p("hovercolor",Array.isArray(m)?m.map(w):w(m)),p("customdata"),NFr(h,d,{name:"colorscales",handleItemDefaults:VFr}),OFr(r,n,a),a("orientation"),a("direction"),a("valueformat"),a("valuesuffix");let _=l.x.length&&l.y.length?"freeform":void 0;a("arrangement",_),hT.coerceFont(a,"textfont",n.font,{autoShadowDflt:!0}),r._length=null};function VFr(e,t){function r(i,n){return hT.coerce(e,t,FO.link.colorscales,i,n)}r("label"),r("cmin"),r("cmax"),r("colorscale")}});var cse=K((aci,Kft)=>{"use strict";Kft.exports=UFr;function UFr(e){for(var t=e.length,r=new Array(t),i=new Array(t),n=new Array(t),a=new Array(t),o=new Array(t),s=new Array(t),l=0;l0;){y=w[w.length-1];var _=e[y];if(a[y]<_.length){for(var b=a[y];b<_.length;++b){var M=_[b];if(r[M]<0){r[M]=i[M]=u,n[M]=!0,u+=1,m.push(M),w.push(M);break}else n[M]&&(i[y]=Math.min(i[y],i[M])|0);o[M]>=0&&s[y].push(o[M])}a[y]=b}else{if(i[y]===r[y]){for(var x=[],T=[],A=0,b=m.length-1;b>=0;--b){var g=m[b];if(n[g]=!1,x.push(g),T.push(s[g]),A+=s[g].length,o[g]=f.length,g===y){m.length=b;break}}f.push(x);for(var E=new Array(A),b=0;b{"use strict";var GFr=cse(),dT=St(),HFr=Lm().wrap,aD=dT.isArrayOrTypedArray,Jft=dT.isIndex,Qft=gf();function jFr(e){var t=e.node,r=e.link,i=[],n=aD(r.color),a=aD(r.hovercolor),o=aD(r.customdata),s={},l={},u=r.colorscales.length,f;for(f=0;fp&&(p=r.source[f]),r.target[f]>p&&(p=r.target[f]);var v=p+1;e.node._count=v;var y,m=e.node.groups,w={};for(f=0;f0&&Jft(A,v)&&Jft(g,v)&&!(w.hasOwnProperty(A)&&w.hasOwnProperty(g)&&w[A]===w[g])){w.hasOwnProperty(g)&&(g=w[g]),w.hasOwnProperty(A)&&(A=w[A]),A=+A,g=+g,s[A]=s[g]=!0;var E="";r.label&&r.label[f]&&(E=r.label[f]);var S=null;E&&l.hasOwnProperty(E)&&(S=l[E]),i.push({pointNumber:f,label:E,color:n?r.color[f]:r.color,hovercolor:a?r.hovercolor[f]:r.hovercolor,customdata:o?r.customdata[f]:r.customdata,concentrationscale:S,source:A,target:g,value:+T}),x.source.push(A),x.target.push(g)}}var C=v+m.length,k=aD(t.color),D=aD(t.customdata),F=[];for(f=0;fv-1,childrenNodes:[],pointNumber:f,label:P,color:k?t.color[f]:t.color,customdata:D?t.customdata[f]:t.customdata})}var I=!1;return WFr(C,x.source,x.target)&&(I=!0),{circular:I,links:i,nodes:F,groups:m,groupLookup:w}}function WFr(e,t,r){for(var i=dT.init2dArray(e,0),n=0;n1})}ect.exports=function(t,r){var i=jFr(r);return HFr({circular:i.circular,_nodes:i.nodes,_links:i.links,_groups:i.groups,_groupLookup:i.groupLookup})}});var ict=K((LO,rct)=>{(function(e,t){typeof LO=="object"&&typeof rct!="undefined"?t(LO):(e=e||self,t(e.d3=e.d3||{}))})(LO,function(e){"use strict";function t(T){var A=+this._x.call(null,T),g=+this._y.call(null,T);return r(this.cover(A,g),A,g,T)}function r(T,A,g,E){if(isNaN(A)||isNaN(g))return T;var S,C=T._root,k={data:E},D=T._x0,F=T._y0,P=T._x1,I=T._y1,L,z,B,O,W,X,Z,H;if(!C)return T._root=k,T;for(;C.length;)if((W=A>=(L=(D+P)/2))?D=L:P=L,(X=g>=(z=(F+I)/2))?F=z:I=z,S=C,!(C=C[Z=X<<1|W]))return S[Z]=k,T;if(B=+T._x.call(null,C.data),O=+T._y.call(null,C.data),A===B&&g===O)return k.next=C,S?S[Z]=k:T._root=k,T;do S=S?S[Z]=new Array(4):T._root=new Array(4),(W=A>=(L=(D+P)/2))?D=L:P=L,(X=g>=(z=(F+I)/2))?F=z:I=z;while((Z=X<<1|W)===(H=(O>=z)<<1|B>=L));return S[H]=C,S[Z]=k,T}function i(T){var A,g,E=T.length,S,C,k=new Array(E),D=new Array(E),F=1/0,P=1/0,I=-1/0,L=-1/0;for(g=0;gI&&(I=S),CL&&(L=C));if(F>I||P>L)return this;for(this.cover(F,P).cover(I,L),g=0;gT||T>=S||E>A||A>=C;)switch(P=(AI||(D=O.y0)>L||(F=O.x1)=Z)<<1|T>=X)&&(O=z[z.length-1],z[z.length-1]=z[z.length-1-W],z[z.length-1-W]=O)}else{var H=T-+this._x.call(null,B.data),q=A-+this._y.call(null,B.data),Q=H*H+q*q;if(Q=(z=(k+F)/2))?k=z:F=z,(W=L>=(B=(D+P)/2))?D=B:P=B,A=g,!(g=g[X=W<<1|O]))return this;if(!g.length)break;(A[X+1&3]||A[X+2&3]||A[X+3&3])&&(E=A,Z=X)}for(;g.data!==T;)if(S=g,!(g=g.next))return this;return(C=g.next)&&delete g.next,S?(C?S.next=C:delete S.next,this):A?(C?A[X]=C:delete A[X],(g=A[0]||A[1]||A[2]||A[3])&&g===(A[3]||A[2]||A[1]||A[0])&&!g.length&&(E?E[Z]=g:this._root=g),this):(this._root=C,this)}function f(T){for(var A=0,g=T.length;A{(function(e,t){t(typeof PO=="object"&&typeof nct!="undefined"?PO:e.d3=e.d3||{})})(PO,(function(e){"use strict";var t="$";function r(){}r.prototype=i.prototype={constructor:r,has:function(v){return t+v in this},get:function(v){return this[t+v]},set:function(v,y){return this[t+v]=y,this},remove:function(v){var y=t+v;return y in this&&delete this[y]},clear:function(){for(var v in this)v[0]===t&&delete this[v]},keys:function(){var v=[];for(var y in this)y[0]===t&&v.push(y.slice(1));return v},values:function(){var v=[];for(var y in this)y[0]===t&&v.push(this[y]);return v},entries:function(){var v=[];for(var y in this)y[0]===t&&v.push({key:y.slice(1),value:this[y]});return v},size:function(){var v=0;for(var y in this)y[0]===t&&++v;return v},empty:function(){for(var v in this)if(v[0]===t)return!1;return!0},each:function(v){for(var y in this)y[0]===t&&v(this[y],y.slice(1),this)}};function i(v,y){var m=new r;if(v instanceof r)v.each(function(x,T){m.set(T,x)});else if(Array.isArray(v)){var w=-1,_=v.length,b;if(y==null)for(;++w<_;)m.set(w,v[w]);else for(;++w<_;)m.set(y(b=v[w],w,v),b)}else if(v)for(var M in v)m.set(M,v[M]);return m}function n(){var v=[],y=[],m,w,_;function b(x,T,A,g){if(T>=v.length)return m!=null&&x.sort(m),w!=null?w(x):x;for(var E=-1,S=x.length,C=v[T++],k,D,F=i(),P,I=A();++Ev.length)return x;var A,g=y[T-1];return w!=null&&T>=v.length?A=x.entries():(A=[],x.each(function(E,S){A.push({key:S,values:M(E,T)})})),g!=null?A.sort(function(E,S){return g(E.key,S.key)}):A}return _={object:function(x){return b(x,0,a,o)},map:function(x){return b(x,0,s,l)},entries:function(x){return M(b(x,0,s,l),0)},key:function(x){return v.push(x),_},sortKeys:function(x){return y[v.length-1]=x,_},sortValues:function(x){return m=x,_},rollup:function(x){return w=x,_}}}function a(){return{}}function o(v,y,m){v[y]=m}function s(){return i()}function l(v,y,m){v.set(y,m)}function u(){}var f=i.prototype;u.prototype=c.prototype={constructor:u,has:f.has,add:function(v){return v+="",this[t+v]=v,this},remove:f.remove,clear:f.clear,values:f.keys,size:f.size,empty:f.empty,each:f.each};function c(v,y){var m=new u;if(v instanceof u)v.each(function(b){m.add(b)});else if(v){var w=-1,_=v.length;if(y==null)for(;++w<_;)m.add(v[w]);else for(;++w<_;)m.add(y(v[w],w,v))}return m}function h(v){var y=[];for(var m in v)y.push(m);return y}function d(v){var y=[];for(var m in v)y.push(v[m]);return y}function p(v){var y=[];for(var m in v)y.push({key:m,value:v[m]});return y}e.nest=n,e.set=c,e.map=i,e.keys=h,e.values=d,e.entries=p,Object.defineProperty(e,"__esModule",{value:!0})}))});var oct=K((zO,act)=>{(function(e,t){typeof zO=="object"&&typeof act!="undefined"?t(zO):(e=e||self,t(e.d3=e.d3||{}))})(zO,function(e){"use strict";var t={value:function(){}};function r(){for(var s=0,l=arguments.length,u={},f;s=0&&(f=u.slice(c+1),u=u.slice(0,c)),u&&!l.hasOwnProperty(u))throw new Error("unknown type: "+u);return{type:u,name:f}})}i.prototype=r.prototype={constructor:i,on:function(s,l){var u=this._,f=n(s+"",u),c,h=-1,d=f.length;if(arguments.length<2){for(;++h0)for(var u=new Array(c),f=0,c,h;f{(function(e,t){typeof IO=="object"&&typeof sct!="undefined"?t(IO):(e=e||self,t(e.d3=e.d3||{}))})(IO,function(e){"use strict";var t=0,r=0,i=0,n=1e3,a,o,s=0,l=0,u=0,f=typeof performance=="object"&&performance.now?performance:Date,c=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(T){setTimeout(T,17)};function h(){return l||(c(d),l=f.now()+u)}function d(){l=0}function p(){this._call=this._time=this._next=null}p.prototype=v.prototype={constructor:p,restart:function(T,A,g){if(typeof T!="function")throw new TypeError("callback is not a function");g=(g==null?h():+g)+(A==null?0:+A),!this._next&&o!==this&&(o?o._next=this:a=this,o=this),this._call=T,this._time=g,b()},stop:function(){this._call&&(this._call=null,this._time=1/0,b())}};function v(T,A,g){var E=new p;return E.restart(T,A,g),E}function y(){h(),++t;for(var T=a,A;T;)(A=l-T._time)>=0&&T._call.call(null,A),T=T._next;--t}function m(){l=(s=f.now())+u,t=r=0;try{y()}finally{t=0,_(),l=0}}function w(){var T=f.now(),A=T-s;A>n&&(u-=A,s=T)}function _(){for(var T,A=a,g,E=1/0;A;)A._call?(E>A._time&&(E=A._time),T=A,A=A._next):(g=A._next,A._next=null,A=T?T._next=g:a=g);o=T,b(E)}function b(T){if(!t){r&&(r=clearTimeout(r));var A=T-l;A>24?(T<1/0&&(r=setTimeout(m,T-f.now()-u)),i&&(i=clearInterval(i))):(i||(s=f.now(),i=setInterval(w,n)),t=1,c(m))}}function M(T,A,g){var E=new p;return A=A==null?0:+A,E.restart(function(S){E.stop(),T(S+A)},A,g),E}function x(T,A,g){var E=new p,S=A;return A==null?(E.restart(T,A,g),E):(A=+A,g=g==null?h():+g,E.restart(function C(k){k+=S,E.restart(C,S+=A,g),T(k)},A,g),E)}e.interval=x,e.now=h,e.timeout=M,e.timer=v,e.timerFlush=y,Object.defineProperty(e,"__esModule",{value:!0})})});var fct=K((RO,uct)=>{(function(e,t){typeof RO=="object"&&typeof uct!="undefined"?t(RO,ict(),hse(),oct(),lct()):t(e.d3=e.d3||{},e.d3,e.d3,e.d3,e.d3)})(RO,(function(e,t,r,i,n){"use strict";function a(T,A){var g;T==null&&(T=0),A==null&&(A=0);function E(){var S,C=g.length,k,D=0,F=0;for(S=0;SL.index){var ie=z-J.x-J.vx,re=B-J.y-J.vy,de=ie*ie+re*re;de<$*$&&(ie===0&&(ie=s(),de+=ie*ie),re===0&&(re=s(),de+=re*re),de=($-(de=Math.sqrt(de)))/de*E,L.vx+=(ie*=de)*($=(j*=j)/(W+j)),L.vy+=(re*=de)*$,J.vx-=ie*($=1-$),J.vy-=re*$)}return}return q>z+$||NB+$||UF.r&&(F.r=F[P].r)}function D(){if(A){var F,P=A.length,I;for(g=new Array(P),F=0;F1?(W==null?D.remove(O):D.set(O,B(W)),A):D.get(O)},find:function(O,W,X){var Z=0,H=T.length,q,Q,N,U,J;for(X==null?X=1/0:X*=X,Z=0;Z1?(P.on(O,W),A):P.on(O)}}}function _(){var T,A,g,E=o(-30),S,C=1,k=1/0,D=.81;function F(z){var B,O=T.length,W=t.quadtree(T,p,v).visitAfter(I);for(g=z,B=0;B=k)return;(z.data!==A||z.next)&&(X===0&&(X=s(),q+=X*X),Z===0&&(Z=s(),q+=Z*Z),q{(function(e,t){typeof BO=="object"&&typeof cct!="undefined"?t(BO):(e=typeof globalThis!="undefined"?globalThis:e||self,t(e.d3=e.d3||{}))})(BO,(function(e){"use strict";function t(Ye,nt){return Yent?1:Ye>=nt?0:NaN}function r(Ye){let nt=Ye,st=Ye;Ye.length===1&&(nt=(Ft,Et)=>Ye(Ft)-Et,st=i(Ye));function dt(Ft,Et,er,xr){for(er==null&&(er=0),xr==null&&(xr=Ft.length);er>>1;st(Ft[kr],Et)<0?er=kr+1:xr=kr}return er}function rt(Ft,Et,er,xr){for(er==null&&(er=0),xr==null&&(xr=Ft.length);er>>1;st(Ft[kr],Et)>0?xr=kr:er=kr+1}return er}function ft(Ft,Et,er,xr){er==null&&(er=0),xr==null&&(xr=Ft.length);let kr=dt(Ft,Et,er,xr-1);return kr>er&&nt(Ft[kr-1],Et)>-nt(Ft[kr],Et)?kr-1:kr}return{left:dt,center:ft,right:rt}}function i(Ye){return(nt,st)=>t(Ye(nt),st)}function n(Ye){return Ye===null?NaN:+Ye}function*a(Ye,nt){if(nt===void 0)for(let st of Ye)st!=null&&(st=+st)>=st&&(yield st);else{let st=-1;for(let dt of Ye)(dt=nt(dt,++st,Ye))!=null&&(dt=+dt)>=dt&&(yield dt)}}let o=r(t),s=o.right,l=o.left,u=r(n).center;function f(Ye,nt){let st=0;if(nt===void 0)for(let dt of Ye)dt!=null&&(dt=+dt)>=dt&&++st;else{let dt=-1;for(let rt of Ye)(rt=nt(rt,++dt,Ye))!=null&&(rt=+rt)>=rt&&++st}return st}function c(Ye){return Ye.length|0}function h(Ye){return!(Ye>0)}function d(Ye){return typeof Ye!="object"||"length"in Ye?Ye:Array.from(Ye)}function p(Ye){return nt=>Ye(...nt)}function v(...Ye){let nt=typeof Ye[Ye.length-1]=="function"&&p(Ye.pop());Ye=Ye.map(d);let st=Ye.map(c),dt=Ye.length-1,rt=new Array(dt+1).fill(0),ft=[];if(dt<0||st.some(h))return ft;for(;;){ft.push(rt.map((Et,er)=>Ye[er][Et]));let Ft=dt;for(;++rt[Ft]===st[Ft];){if(Ft===0)return nt?ft.map(nt):ft;rt[Ft--]=0}}}function y(Ye,nt){var st=0,dt=0;return Float64Array.from(Ye,nt===void 0?rt=>st+=+rt||0:rt=>st+=+nt(rt,dt++,Ye)||0)}function m(Ye,nt){return ntYe?1:nt>=Ye?0:NaN}function w(Ye,nt){let st=0,dt,rt=0,ft=0;if(nt===void 0)for(let Ft of Ye)Ft!=null&&(Ft=+Ft)>=Ft&&(dt=Ft-rt,rt+=dt/++st,ft+=dt*(Ft-rt));else{let Ft=-1;for(let Et of Ye)(Et=nt(Et,++Ft,Ye))!=null&&(Et=+Et)>=Et&&(dt=Et-rt,rt+=dt/++st,ft+=dt*(Et-rt))}if(st>1)return ft/(st-1)}function _(Ye,nt){let st=w(Ye,nt);return st&&Math.sqrt(st)}function b(Ye,nt){let st,dt;if(nt===void 0)for(let rt of Ye)rt!=null&&(st===void 0?rt>=rt&&(st=dt=rt):(st>rt&&(st=rt),dt=ft&&(st=dt=ft):(st>ft&&(st=ft),dt0){for(Ft=nt[--st];st>0&&(dt=Ft,rt=nt[--st],Ft=dt+rt,ft=rt-(Ft-dt),!ft););st>0&&(ft<0&&nt[st-1]<0||ft>0&&nt[st-1]>0)&&(rt=ft*2,dt=Ft+rt,rt==dt-Ft&&(Ft=dt))}return Ft}}function x(Ye,nt){let st=new M;if(nt===void 0)for(let dt of Ye)(dt=+dt)&&st.add(dt);else{let dt=-1;for(let rt of Ye)(rt=+nt(rt,++dt,Ye))&&st.add(rt)}return+st}function T(Ye,nt){let st=new M,dt=-1;return Float64Array.from(Ye,nt===void 0?rt=>st.add(+rt||0):rt=>st.add(+nt(rt,++dt,Ye)||0))}class A extends Map{constructor(nt,st=k){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:st}}),nt!=null)for(let[dt,rt]of nt)this.set(dt,rt)}get(nt){return super.get(E(this,nt))}has(nt){return super.has(E(this,nt))}set(nt,st){return super.set(S(this,nt),st)}delete(nt){return super.delete(C(this,nt))}}class g extends Set{constructor(nt,st=k){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:st}}),nt!=null)for(let dt of nt)this.add(dt)}has(nt){return super.has(E(this,nt))}add(nt){return super.add(S(this,nt))}delete(nt){return super.delete(C(this,nt))}}function E({_intern:Ye,_key:nt},st){let dt=nt(st);return Ye.has(dt)?Ye.get(dt):st}function S({_intern:Ye,_key:nt},st){let dt=nt(st);return Ye.has(dt)?Ye.get(dt):(Ye.set(dt,st),st)}function C({_intern:Ye,_key:nt},st){let dt=nt(st);return Ye.has(dt)&&(st=Ye.get(st),Ye.delete(dt)),st}function k(Ye){return Ye!==null&&typeof Ye=="object"?Ye.valueOf():Ye}function D(Ye){return Ye}function F(Ye,...nt){return W(Ye,D,D,nt)}function P(Ye,...nt){return W(Ye,Array.from,D,nt)}function I(Ye,nt,...st){return W(Ye,D,nt,st)}function L(Ye,nt,...st){return W(Ye,Array.from,nt,st)}function z(Ye,...nt){return W(Ye,D,O,nt)}function B(Ye,...nt){return W(Ye,Array.from,O,nt)}function O(Ye){if(Ye.length!==1)throw new Error("duplicate key");return Ye[0]}function W(Ye,nt,st,dt){return(function rt(ft,Ft){if(Ft>=dt.length)return st(ft);let Et=new A,er=dt[Ft++],xr=-1;for(let kr of ft){let fr=er(kr,++xr,ft),Yr=Et.get(fr);Yr?Yr.push(kr):Et.set(fr,[kr])}for(let[kr,fr]of Et)Et.set(kr,rt(fr,Ft));return nt(Et)})(Ye,0)}function X(Ye,nt){return Array.from(nt,st=>Ye[st])}function Z(Ye,...nt){if(typeof Ye[Symbol.iterator]!="function")throw new TypeError("values is not iterable");Ye=Array.from(Ye);let[st=t]=nt;if(st.length===1||nt.length>1){let dt=Uint32Array.from(Ye,(rt,ft)=>ft);return nt.length>1?(nt=nt.map(rt=>Ye.map(rt)),dt.sort((rt,ft)=>{for(let Ft of nt){let Et=t(Ft[rt],Ft[ft]);if(Et)return Et}})):(st=Ye.map(st),dt.sort((rt,ft)=>t(st[rt],st[ft]))),X(Ye,dt)}return Ye.sort(st)}function H(Ye,nt,st){return(nt.length===1?Z(I(Ye,nt,st),(([dt,rt],[ft,Ft])=>t(rt,Ft)||t(dt,ft))):Z(F(Ye,st),(([dt,rt],[ft,Ft])=>nt(rt,Ft)||t(dt,ft)))).map(([dt])=>dt)}var q=Array.prototype,Q=q.slice;function N(Ye){return function(){return Ye}}var U=Math.sqrt(50),J=Math.sqrt(10),j=Math.sqrt(2);function $(Ye,nt,st){var dt,rt=-1,ft,Ft,Et;if(nt=+nt,Ye=+Ye,st=+st,Ye===nt&&st>0)return[Ye];if((dt=nt0){let er=Math.round(Ye/Et),xr=Math.round(nt/Et);for(er*Etnt&&--xr,Ft=new Array(ft=xr-er+1);++rtnt&&--xr,Ft=new Array(ft=xr-er+1);++rt=0?(ft>=U?10:ft>=J?5:ft>=j?2:1)*Math.pow(10,rt):-Math.pow(10,-rt)/(ft>=U?10:ft>=J?5:ft>=j?2:1)}function re(Ye,nt,st){var dt=Math.abs(nt-Ye)/Math.max(0,st),rt=Math.pow(10,Math.floor(Math.log(dt)/Math.LN10)),ft=dt/rt;return ft>=U?rt*=10:ft>=J?rt*=5:ft>=j&&(rt*=2),nt0?(Ye=Math.floor(Ye/rt)*rt,nt=Math.ceil(nt/rt)*rt):rt<0&&(Ye=Math.ceil(Ye*rt)/rt,nt=Math.floor(nt*rt)/rt),dt=rt}}function me(Ye){return Math.ceil(Math.log(f(Ye))/Math.LN2)+1}function ze(){var Ye=D,nt=b,st=me;function dt(rt){Array.isArray(rt)||(rt=Array.from(rt));var ft,Ft=rt.length,Et,er=new Array(Ft);for(ft=0;ft=fr)if(Mr>=fr&&nt===b){let _i=ie(kr,fr,Gr);isFinite(_i)&&(_i>0?fr=(Math.floor(fr/_i)+1)*_i:_i<0&&(fr=(Math.ceil(fr*-_i)+1)/-_i))}else Yr.pop()}for(var Or=Yr.length;Yr[0]<=kr;)Yr.shift(),--Or;for(;Yr[Or-1]>fr;)Yr.pop(),--Or;var ri=new Array(Or+1),Tr;for(ft=0;ft<=Or;++ft)Tr=ri[ft]=[],Tr.x0=ft>0?Yr[ft-1]:kr,Tr.x1=ft=dt)&&(st=dt);else{let dt=-1;for(let rt of Ye)(rt=nt(rt,++dt,Ye))!=null&&(st=rt)&&(st=rt)}return st}function le(Ye,nt){let st;if(nt===void 0)for(let dt of Ye)dt!=null&&(st>dt||st===void 0&&dt>=dt)&&(st=dt);else{let dt=-1;for(let rt of Ye)(rt=nt(rt,++dt,Ye))!=null&&(st>rt||st===void 0&&rt>=rt)&&(st=rt)}return st}function te(Ye,nt,st=0,dt=Ye.length-1,rt=t){for(;dt>st;){if(dt-st>600){let er=dt-st+1,xr=nt-st+1,kr=Math.log(er),fr=.5*Math.exp(2*kr/3),Yr=.5*Math.sqrt(kr*fr*(er-fr)/er)*(xr-er/2<0?-1:1),Or=Math.max(st,Math.floor(nt-xr*fr/er+Yr)),ri=Math.min(dt,Math.floor(nt+(er-xr)*fr/er+Yr));te(Ye,nt,Or,ri,rt)}let ft=Ye[nt],Ft=st,Et=dt;for(Ee(Ye,st,nt),rt(Ye[dt],ft)>0&&Ee(Ye,st,dt);Ft0;)--Et}rt(Ye[st],ft)===0?Ee(Ye,st,Et):(++Et,Ee(Ye,Et,dt)),Et<=nt&&(st=Et+1),nt<=Et&&(dt=Et-1)}return Ye}function Ee(Ye,nt,st){let dt=Ye[nt];Ye[nt]=Ye[st],Ye[st]=dt}function we(Ye,nt,st){if(Ye=Float64Array.from(a(Ye,st)),!!(dt=Ye.length)){if((nt=+nt)<=0||dt<2)return le(Ye);if(nt>=1)return ke(Ye);var dt,rt=(dt-1)*nt,ft=Math.floor(rt),Ft=ke(te(Ye,ft).subarray(0,ft+1)),Et=le(Ye.subarray(ft+1));return Ft+(Et-Ft)*(rt-ft)}}function oe(Ye,nt,st=n){if(dt=Ye.length){if((nt=+nt)<=0||dt<2)return+st(Ye[0],0,Ye);if(nt>=1)return+st(Ye[dt-1],dt-1,Ye);var dt,rt=(dt-1)*nt,ft=Math.floor(rt),Ft=+st(Ye[ft],ft,Ye),Et=+st(Ye[ft+1],ft+1,Ye);return Ft+(Et-Ft)*(rt-ft)}}function Y(Ye,nt,st){return Math.ceil((st-nt)/(2*(we(Ye,.75)-we(Ye,.25))*Math.pow(f(Ye),-1/3)))}function ne(Ye,nt,st){return Math.ceil((st-nt)/(3.5*_(Ye)*Math.pow(f(Ye),-1/3)))}function ye(Ye,nt){let st,dt=-1,rt=-1;if(nt===void 0)for(let ft of Ye)++rt,ft!=null&&(st=ft)&&(st=ft,dt=rt);else for(let ft of Ye)(ft=nt(ft,++rt,Ye))!=null&&(st=ft)&&(st=ft,dt=rt);return dt}function V(Ye,nt){let st=0,dt=0;if(nt===void 0)for(let rt of Ye)rt!=null&&(rt=+rt)>=rt&&(++st,dt+=rt);else{let rt=-1;for(let ft of Ye)(ft=nt(ft,++rt,Ye))!=null&&(ft=+ft)>=ft&&(++st,dt+=ft)}if(st)return dt/st}function ue(Ye,nt){return we(Ye,.5,nt)}function*_e(Ye){for(let nt of Ye)yield*cue(nt)}function xe(Ye){return Array.from(_e(Ye))}function Ae(Ye,nt){let st,dt=-1,rt=-1;if(nt===void 0)for(let ft of Ye)++rt,ft!=null&&(st>ft||st===void 0&&ft>=ft)&&(st=ft,dt=rt);else for(let ft of Ye)(ft=nt(ft,++rt,Ye))!=null&&(st>ft||st===void 0&&ft>=ft)&&(st=ft,dt=rt);return dt}function se(Ye,nt=pe){let st=[],dt,rt=!1;for(let ft of Ye)rt&&st.push(nt(dt,ft)),dt=ft,rt=!0;return st}function pe(Ye,nt){return[Ye,nt]}function fe(Ye,nt,st){Ye=+Ye,nt=+nt,st=(rt=arguments.length)<2?(nt=Ye,Ye=0,1):rt<3?1:+st;for(var dt=-1,rt=Math.max(0,Math.ceil((nt-Ye)/st))|0,ft=new Array(rt);++dt0:t(Ft,Ft)===0)&&(st=ft,rt=Ft,dt=!0)}}else for(let rt of Ye)(dt?nt(rt,st)>0:nt(rt,rt)===0)&&(st=rt,dt=!0);return st}function tt(Ye,nt=t){if(nt.length===1)return ye(Ye,nt);let st,dt=-1,rt=-1;for(let ft of Ye)++rt,(dt<0?nt(ft,ft)===0:nt(ft,st)>0)&&(st=ft,dt=rt);return dt}function at(Ye,nt){let st=We(Ye,nt);return st<0?void 0:st}var Ge=ge(Math.random);function ge(Ye){return function(st,dt=0,rt=st.length){let ft=rt-(dt=+dt);for(;ft;){let Ft=Ye()*ft--|0,Et=st[ft+dt];st[ft+dt]=st[Ft+dt],st[Ft+dt]=Et}return st}}function Be(Ye,nt){let st=0;if(nt===void 0)for(let dt of Ye)(dt=+dt)&&(st+=dt);else{let dt=-1;for(let rt of Ye)(rt=+nt(rt,++dt,Ye))&&(st+=rt)}return st}function Ze(Ye){if(!(ft=Ye.length))return[];for(var nt=-1,st=le(Ye,Le),dt=new Array(st);++ntnt(st,dt,Ye))}function ot(Ye,nt,st){if(typeof nt!="function")throw new TypeError("reducer is not a function");let dt=Ye[Symbol.iterator](),rt,ft,Ft=-1;if(arguments.length<3){if({done:rt,value:st}=dt.next(),rt)return;++Ft}for(;{done:rt,value:ft}=dt.next(),!rt;)st=nt(st,ft,++Ft,Ye);return st}function ut(Ye){if(typeof Ye[Symbol.iterator]!="function")throw new TypeError("values is not iterable");return Array.from(Ye).reverse()}function _t(Ye,...nt){Ye=new Set(Ye);for(let st of nt)for(let dt of st)Ye.delete(dt);return Ye}function At(Ye,nt){let st=nt[Symbol.iterator](),dt=new Set;for(let rt of Ye){if(dt.has(rt))return!1;let ft,Ft;for(;({value:ft,done:Ft}=st.next())&&!Ft;){if(Object.is(rt,ft))return!1;dt.add(ft)}}return!0}function Gt(Ye){return Ye instanceof Set?Ye:new Set(Ye)}function Dt(Ye,...nt){Ye=new Set(Ye),nt=nt.map(Gt);e:for(let st of Ye)for(let dt of nt)if(!dt.has(st)){Ye.delete(st);continue e}return Ye}function yt(Ye,nt){let st=Ye[Symbol.iterator](),dt=new Set;for(let rt of nt){if(dt.has(rt))continue;let ft,Ft;for(;{value:ft,done:Ft}=st.next();){if(Ft)return!1;if(dt.add(ft),Object.is(rt,ft))break}}return!0}function Mt(Ye,nt){return yt(nt,Ye)}function tr(...Ye){let nt=new Set;for(let st of Ye)for(let dt of st)nt.add(dt);return nt}e.Adder=M,e.InternMap=A,e.InternSet=g,e.ascending=t,e.bin=ze,e.bisect=s,e.bisectCenter=u,e.bisectLeft=l,e.bisectRight=s,e.bisector=r,e.count=f,e.cross=v,e.cumsum=y,e.descending=m,e.deviation=_,e.difference=_t,e.disjoint=At,e.every=Ue,e.extent=b,e.fcumsum=T,e.filter=Se,e.fsum=x,e.greatest=Ke,e.greatestIndex=tt,e.group=F,e.groupSort=H,e.groups=P,e.histogram=ze,e.index=z,e.indexes=B,e.intersection=Dt,e.least=Re,e.leastIndex=We,e.map=Ie,e.max=ke,e.maxIndex=ye,e.mean=V,e.median=ue,e.merge=xe,e.min=le,e.minIndex=Ae,e.nice=de,e.pairs=se,e.permute=X,e.quantile=we,e.quantileSorted=oe,e.quickselect=te,e.range=fe,e.reduce=ot,e.reverse=ut,e.rollup=I,e.rollups=L,e.scan=at,e.shuffle=Ge,e.shuffler=ge,e.some=Pe,e.sort=Z,e.subset=Mt,e.sum=Be,e.superset=yt,e.thresholdFreedmanDiaconis=Y,e.thresholdScott=ne,e.thresholdSturges=me,e.tickIncrement=ie,e.tickStep=re,e.ticks=$,e.transpose=Ze,e.union=tr,e.variance=w,e.zip=De,Object.defineProperty(e,"__esModule",{value:!0})}))});var pct=K((qO,dct)=>{(function(e,t){typeof qO=="object"&&typeof dct!="undefined"?t(qO):(e=e||self,t(e.d3=e.d3||{}))})(qO,function(e){"use strict";var t=Math.PI,r=2*t,i=1e-6,n=r-i;function a(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function o(){return new a}a.prototype=o.prototype={constructor:a,moveTo:function(s,l){this._+="M"+(this._x0=this._x1=+s)+","+(this._y0=this._y1=+l)},closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(s,l){this._+="L"+(this._x1=+s)+","+(this._y1=+l)},quadraticCurveTo:function(s,l,u,f){this._+="Q"+ +s+","+ +l+","+(this._x1=+u)+","+(this._y1=+f)},bezierCurveTo:function(s,l,u,f,c,h){this._+="C"+ +s+","+ +l+","+ +u+","+ +f+","+(this._x1=+c)+","+(this._y1=+h)},arcTo:function(s,l,u,f,c){s=+s,l=+l,u=+u,f=+f,c=+c;var h=this._x1,d=this._y1,p=u-s,v=f-l,y=h-s,m=d-l,w=y*y+m*m;if(c<0)throw new Error("negative radius: "+c);if(this._x1===null)this._+="M"+(this._x1=s)+","+(this._y1=l);else if(w>i)if(!(Math.abs(m*p-v*y)>i)||!c)this._+="L"+(this._x1=s)+","+(this._y1=l);else{var _=u-h,b=f-d,M=p*p+v*v,x=_*_+b*b,T=Math.sqrt(M),A=Math.sqrt(w),g=c*Math.tan((t-Math.acos((M+w-x)/(2*T*A)))/2),E=g/A,S=g/T;Math.abs(E-1)>i&&(this._+="L"+(s+E*y)+","+(l+E*m)),this._+="A"+c+","+c+",0,0,"+ +(m*_>y*b)+","+(this._x1=s+S*p)+","+(this._y1=l+S*v)}},arc:function(s,l,u,f,c,h){s=+s,l=+l,u=+u,h=!!h;var d=u*Math.cos(f),p=u*Math.sin(f),v=s+d,y=l+p,m=1^h,w=h?f-c:c-f;if(u<0)throw new Error("negative radius: "+u);this._x1===null?this._+="M"+v+","+y:(Math.abs(this._x1-v)>i||Math.abs(this._y1-y)>i)&&(this._+="L"+v+","+y),u&&(w<0&&(w=w%r+r),w>n?this._+="A"+u+","+u+",0,1,"+m+","+(s-d)+","+(l-p)+"A"+u+","+u+",0,1,"+m+","+(this._x1=v)+","+(this._y1=y):w>i&&(this._+="A"+u+","+u+",0,"+ +(w>=t)+","+m+","+(this._x1=s+u*Math.cos(c))+","+(this._y1=l+u*Math.sin(c))))},rect:function(s,l,u,f){this._+="M"+(this._x0=this._x1=+s)+","+(this._y0=this._y1=+l)+"h"+ +u+"v"+ +f+"h"+-u+"Z"},toString:function(){return this._}},e.path=o,Object.defineProperty(e,"__esModule",{value:!0})})});var dse=K((OO,vct)=>{(function(e,t){typeof OO=="object"&&typeof vct!="undefined"?t(OO,pct()):(e=e||self,t(e.d3=e.d3||{},e.d3))})(OO,function(e,t){"use strict";function r(Me){return function(){return Me}}var i=Math.abs,n=Math.atan2,a=Math.cos,o=Math.max,s=Math.min,l=Math.sin,u=Math.sqrt,f=1e-12,c=Math.PI,h=c/2,d=2*c;function p(Me){return Me>1?0:Me<-1?c:Math.acos(Me)}function v(Me){return Me>=1?h:Me<=-1?-h:Math.asin(Me)}function y(Me){return Me.innerRadius}function m(Me){return Me.outerRadius}function w(Me){return Me.startAngle}function _(Me){return Me.endAngle}function b(Me){return Me&&Me.padAngle}function M(Me,Xe,$e,Qe,gt,bt,lr,Ct){var ur=$e-Me,Rr=Qe-Xe,Br=lr-gt,Vr=Ct-bt,gi=Vr*ur-Br*Rr;if(!(gi*gifi*fi+aa*aa&&(yn=$i,$n=en),{cx:yn,cy:$n,x01:-Br,y01:-Vr,x11:yn*(gt/Pr-1),y11:$n*(gt/Pr-1)}}function T(){var Me=y,Xe=m,$e=r(0),Qe=null,gt=w,bt=_,lr=b,Ct=null;function ur(){var Rr,Br,Vr=+Me.apply(this,arguments),gi=+Xe.apply(this,arguments),ui=gt.apply(this,arguments)-h,ei=bt.apply(this,arguments)-h,Gi=i(ei-ui),un=ei>ui;if(Ct||(Ct=Rr=t.path()),gif))Ct.moveTo(0,0);else if(Gi>d-f)Ct.moveTo(gi*a(ui),gi*l(ui)),Ct.arc(0,0,gi,ui,ei,!un),Vr>f&&(Ct.moveTo(Vr*a(ei),Vr*l(ei)),Ct.arc(0,0,Vr,ei,ui,un));else{var Tt=ui,wi=ei,kn=ui,ii=ei,Pr=Gi,Wi=Gi,na=lr.apply(this,arguments)/2,yn=na>f&&(Qe?+Qe.apply(this,arguments):u(Vr*Vr+gi*gi)),$n=s(i(gi-Vr)/2,+$e.apply(this,arguments)),$i=$n,en=$n,_r,Zr;if(yn>f){var fi=v(yn/Vr*l(na)),aa=v(yn/gi*l(na));(Pr-=fi*2)>f?(fi*=un?1:-1,kn+=fi,ii-=fi):(Pr=0,kn=ii=(ui+ei)/2),(Wi-=aa*2)>f?(aa*=un?1:-1,Tt+=aa,wi-=aa):(Wi=0,Tt=wi=(ui+ei)/2)}var ln=gi*a(Tt),ca=gi*l(Tt),Kn=Vr*a(ii),dn=Vr*l(ii);if($n>f){var Ta=gi*a(wi),rn=gi*l(wi),Ai=Vr*a(kn),nn=Vr*l(kn),Ti;if(Gif?en>f?(_r=x(Ai,nn,ln,ca,gi,en,un),Zr=x(Ta,rn,Kn,dn,gi,en,un),Ct.moveTo(_r.cx+_r.x01,_r.cy+_r.y01),en<$n?Ct.arc(_r.cx,_r.cy,en,n(_r.y01,_r.x01),n(Zr.y01,Zr.x01),!un):(Ct.arc(_r.cx,_r.cy,en,n(_r.y01,_r.x01),n(_r.y11,_r.x11),!un),Ct.arc(0,0,gi,n(_r.cy+_r.y11,_r.cx+_r.x11),n(Zr.cy+Zr.y11,Zr.cx+Zr.x11),!un),Ct.arc(Zr.cx,Zr.cy,en,n(Zr.y11,Zr.x11),n(Zr.y01,Zr.x01),!un))):(Ct.moveTo(ln,ca),Ct.arc(0,0,gi,Tt,wi,!un)):Ct.moveTo(ln,ca),!(Vr>f)||!(Pr>f)?Ct.lineTo(Kn,dn):$i>f?(_r=x(Kn,dn,Ta,rn,Vr,-$i,un),Zr=x(ln,ca,Ai,nn,Vr,-$i,un),Ct.lineTo(_r.cx+_r.x01,_r.cy+_r.y01),$i<$n?Ct.arc(_r.cx,_r.cy,$i,n(_r.y01,_r.x01),n(Zr.y01,Zr.x01),!un):(Ct.arc(_r.cx,_r.cy,$i,n(_r.y01,_r.x01),n(_r.y11,_r.x11),!un),Ct.arc(0,0,Vr,n(_r.cy+_r.y11,_r.cx+_r.x11),n(Zr.cy+Zr.y11,Zr.cx+Zr.x11),un),Ct.arc(Zr.cx,Zr.cy,$i,n(Zr.y11,Zr.x11),n(Zr.y01,Zr.x01),!un))):Ct.arc(0,0,Vr,ii,kn,un)}if(Ct.closePath(),Rr)return Ct=null,Rr+""||null}return ur.centroid=function(){var Rr=(+Me.apply(this,arguments)+ +Xe.apply(this,arguments))/2,Br=(+gt.apply(this,arguments)+ +bt.apply(this,arguments))/2-c/2;return[a(Br)*Rr,l(Br)*Rr]},ur.innerRadius=function(Rr){return arguments.length?(Me=typeof Rr=="function"?Rr:r(+Rr),ur):Me},ur.outerRadius=function(Rr){return arguments.length?(Xe=typeof Rr=="function"?Rr:r(+Rr),ur):Xe},ur.cornerRadius=function(Rr){return arguments.length?($e=typeof Rr=="function"?Rr:r(+Rr),ur):$e},ur.padRadius=function(Rr){return arguments.length?(Qe=Rr==null?null:typeof Rr=="function"?Rr:r(+Rr),ur):Qe},ur.startAngle=function(Rr){return arguments.length?(gt=typeof Rr=="function"?Rr:r(+Rr),ur):gt},ur.endAngle=function(Rr){return arguments.length?(bt=typeof Rr=="function"?Rr:r(+Rr),ur):bt},ur.padAngle=function(Rr){return arguments.length?(lr=typeof Rr=="function"?Rr:r(+Rr),ur):lr},ur.context=function(Rr){return arguments.length?(Ct=Rr==null?null:Rr,ur):Ct},ur}function A(Me){this._context=Me}A.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(Me,Xe){switch(Me=+Me,Xe=+Xe,this._point){case 0:this._point=1,this._line?this._context.lineTo(Me,Xe):this._context.moveTo(Me,Xe);break;case 1:this._point=2;default:this._context.lineTo(Me,Xe);break}}};function g(Me){return new A(Me)}function E(Me){return Me[0]}function S(Me){return Me[1]}function C(){var Me=E,Xe=S,$e=r(!0),Qe=null,gt=g,bt=null;function lr(Ct){var ur,Rr=Ct.length,Br,Vr=!1,gi;for(Qe==null&&(bt=gt(gi=t.path())),ur=0;ur<=Rr;++ur)!(ur=gi;--ui)Ct.point(wi[ui],kn[ui]);Ct.lineEnd(),Ct.areaEnd()}un&&(wi[Vr]=+Me(Gi,Vr,Br),kn[Vr]=+$e(Gi,Vr,Br),Ct.point(Xe?+Xe(Gi,Vr,Br):wi[Vr],Qe?+Qe(Gi,Vr,Br):kn[Vr]))}if(Tt)return Ct=null,Tt+""||null}function Rr(){return C().defined(gt).curve(lr).context(bt)}return ur.x=function(Br){return arguments.length?(Me=typeof Br=="function"?Br:r(+Br),Xe=null,ur):Me},ur.x0=function(Br){return arguments.length?(Me=typeof Br=="function"?Br:r(+Br),ur):Me},ur.x1=function(Br){return arguments.length?(Xe=Br==null?null:typeof Br=="function"?Br:r(+Br),ur):Xe},ur.y=function(Br){return arguments.length?($e=typeof Br=="function"?Br:r(+Br),Qe=null,ur):$e},ur.y0=function(Br){return arguments.length?($e=typeof Br=="function"?Br:r(+Br),ur):$e},ur.y1=function(Br){return arguments.length?(Qe=Br==null?null:typeof Br=="function"?Br:r(+Br),ur):Qe},ur.lineX0=ur.lineY0=function(){return Rr().x(Me).y($e)},ur.lineY1=function(){return Rr().x(Me).y(Qe)},ur.lineX1=function(){return Rr().x(Xe).y($e)},ur.defined=function(Br){return arguments.length?(gt=typeof Br=="function"?Br:r(!!Br),ur):gt},ur.curve=function(Br){return arguments.length?(lr=Br,bt!=null&&(Ct=lr(bt)),ur):lr},ur.context=function(Br){return arguments.length?(Br==null?bt=Ct=null:Ct=lr(bt=Br),ur):bt},ur}function D(Me,Xe){return XeMe?1:Xe>=Me?0:NaN}function F(Me){return Me}function P(){var Me=F,Xe=D,$e=null,Qe=r(0),gt=r(d),bt=r(0);function lr(Ct){var ur,Rr=Ct.length,Br,Vr,gi=0,ui=new Array(Rr),ei=new Array(Rr),Gi=+Qe.apply(this,arguments),un=Math.min(d,Math.max(-d,gt.apply(this,arguments)-Gi)),Tt,wi=Math.min(Math.abs(un)/Rr,bt.apply(this,arguments)),kn=wi*(un<0?-1:1),ii;for(ur=0;ur0&&(gi+=ii);for(Xe!=null?ui.sort(function(Pr,Wi){return Xe(ei[Pr],ei[Wi])}):$e!=null&&ui.sort(function(Pr,Wi){return $e(Ct[Pr],Ct[Wi])}),ur=0,Vr=gi?(un-Rr*kn)/gi:0;ur0?ii*Vr:0)+kn,ei[Br]={data:Ct[Br],index:ur,value:ii,startAngle:Gi,endAngle:Tt,padAngle:wi};return ei}return lr.value=function(Ct){return arguments.length?(Me=typeof Ct=="function"?Ct:r(+Ct),lr):Me},lr.sortValues=function(Ct){return arguments.length?(Xe=Ct,$e=null,lr):Xe},lr.sort=function(Ct){return arguments.length?($e=Ct,Xe=null,lr):$e},lr.startAngle=function(Ct){return arguments.length?(Qe=typeof Ct=="function"?Ct:r(+Ct),lr):Qe},lr.endAngle=function(Ct){return arguments.length?(gt=typeof Ct=="function"?Ct:r(+Ct),lr):gt},lr.padAngle=function(Ct){return arguments.length?(bt=typeof Ct=="function"?Ct:r(+Ct),lr):bt},lr}var I=z(g);function L(Me){this._curve=Me}L.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(Me,Xe){this._curve.point(Xe*Math.sin(Me),Xe*-Math.cos(Me))}};function z(Me){function Xe($e){return new L(Me($e))}return Xe._curve=Me,Xe}function B(Me){var Xe=Me.curve;return Me.angle=Me.x,delete Me.x,Me.radius=Me.y,delete Me.y,Me.curve=function($e){return arguments.length?Xe(z($e)):Xe()._curve},Me}function O(){return B(C().curve(I))}function W(){var Me=k().curve(I),Xe=Me.curve,$e=Me.lineX0,Qe=Me.lineX1,gt=Me.lineY0,bt=Me.lineY1;return Me.angle=Me.x,delete Me.x,Me.startAngle=Me.x0,delete Me.x0,Me.endAngle=Me.x1,delete Me.x1,Me.radius=Me.y,delete Me.y,Me.innerRadius=Me.y0,delete Me.y0,Me.outerRadius=Me.y1,delete Me.y1,Me.lineStartAngle=function(){return B($e())},delete Me.lineX0,Me.lineEndAngle=function(){return B(Qe())},delete Me.lineX1,Me.lineInnerRadius=function(){return B(gt())},delete Me.lineY0,Me.lineOuterRadius=function(){return B(bt())},delete Me.lineY1,Me.curve=function(lr){return arguments.length?Xe(z(lr)):Xe()._curve},Me}function X(Me,Xe){return[(Xe=+Xe)*Math.cos(Me-=Math.PI/2),Xe*Math.sin(Me)]}var Z=Array.prototype.slice;function H(Me){return Me.source}function q(Me){return Me.target}function Q(Me){var Xe=H,$e=q,Qe=E,gt=S,bt=null;function lr(){var Ct,ur=Z.call(arguments),Rr=Xe.apply(this,ur),Br=$e.apply(this,ur);if(bt||(bt=Ct=t.path()),Me(bt,+Qe.apply(this,(ur[0]=Rr,ur)),+gt.apply(this,ur),+Qe.apply(this,(ur[0]=Br,ur)),+gt.apply(this,ur)),Ct)return bt=null,Ct+""||null}return lr.source=function(Ct){return arguments.length?(Xe=Ct,lr):Xe},lr.target=function(Ct){return arguments.length?($e=Ct,lr):$e},lr.x=function(Ct){return arguments.length?(Qe=typeof Ct=="function"?Ct:r(+Ct),lr):Qe},lr.y=function(Ct){return arguments.length?(gt=typeof Ct=="function"?Ct:r(+Ct),lr):gt},lr.context=function(Ct){return arguments.length?(bt=Ct==null?null:Ct,lr):bt},lr}function N(Me,Xe,$e,Qe,gt){Me.moveTo(Xe,$e),Me.bezierCurveTo(Xe=(Xe+Qe)/2,$e,Xe,gt,Qe,gt)}function U(Me,Xe,$e,Qe,gt){Me.moveTo(Xe,$e),Me.bezierCurveTo(Xe,$e=($e+gt)/2,Qe,$e,Qe,gt)}function J(Me,Xe,$e,Qe,gt){var bt=X(Xe,$e),lr=X(Xe,$e=($e+gt)/2),Ct=X(Qe,$e),ur=X(Qe,gt);Me.moveTo(bt[0],bt[1]),Me.bezierCurveTo(lr[0],lr[1],Ct[0],Ct[1],ur[0],ur[1])}function j(){return Q(N)}function $(){return Q(U)}function ie(){var Me=Q(J);return Me.angle=Me.x,delete Me.x,Me.radius=Me.y,delete Me.y,Me}var re={draw:function(Me,Xe){var $e=Math.sqrt(Xe/c);Me.moveTo($e,0),Me.arc(0,0,$e,0,d)}},de={draw:function(Me,Xe){var $e=Math.sqrt(Xe/5)/2;Me.moveTo(-3*$e,-$e),Me.lineTo(-$e,-$e),Me.lineTo(-$e,-3*$e),Me.lineTo($e,-3*$e),Me.lineTo($e,-$e),Me.lineTo(3*$e,-$e),Me.lineTo(3*$e,$e),Me.lineTo($e,$e),Me.lineTo($e,3*$e),Me.lineTo(-$e,3*$e),Me.lineTo(-$e,$e),Me.lineTo(-3*$e,$e),Me.closePath()}},me=Math.sqrt(1/3),ze=me*2,ke={draw:function(Me,Xe){var $e=Math.sqrt(Xe/ze),Qe=$e*me;Me.moveTo(0,-$e),Me.lineTo(Qe,0),Me.lineTo(0,$e),Me.lineTo(-Qe,0),Me.closePath()}},le=.8908130915292852,te=Math.sin(c/10)/Math.sin(7*c/10),Ee=Math.sin(d/10)*te,we=-Math.cos(d/10)*te,oe={draw:function(Me,Xe){var $e=Math.sqrt(Xe*le),Qe=Ee*$e,gt=we*$e;Me.moveTo(0,-$e),Me.lineTo(Qe,gt);for(var bt=1;bt<5;++bt){var lr=d*bt/5,Ct=Math.cos(lr),ur=Math.sin(lr);Me.lineTo(ur*$e,-Ct*$e),Me.lineTo(Ct*Qe-ur*gt,ur*Qe+Ct*gt)}Me.closePath()}},Y={draw:function(Me,Xe){var $e=Math.sqrt(Xe),Qe=-$e/2;Me.rect(Qe,Qe,$e,$e)}},ne=Math.sqrt(3),ye={draw:function(Me,Xe){var $e=-Math.sqrt(Xe/(ne*3));Me.moveTo(0,$e*2),Me.lineTo(-ne*$e,-$e),Me.lineTo(ne*$e,-$e),Me.closePath()}},V=-.5,ue=Math.sqrt(3)/2,_e=1/Math.sqrt(12),xe=(_e/2+1)*3,Ae={draw:function(Me,Xe){var $e=Math.sqrt(Xe/xe),Qe=$e/2,gt=$e*_e,bt=Qe,lr=$e*_e+$e,Ct=-bt,ur=lr;Me.moveTo(Qe,gt),Me.lineTo(bt,lr),Me.lineTo(Ct,ur),Me.lineTo(V*Qe-ue*gt,ue*Qe+V*gt),Me.lineTo(V*bt-ue*lr,ue*bt+V*lr),Me.lineTo(V*Ct-ue*ur,ue*Ct+V*ur),Me.lineTo(V*Qe+ue*gt,V*gt-ue*Qe),Me.lineTo(V*bt+ue*lr,V*lr-ue*bt),Me.lineTo(V*Ct+ue*ur,V*ur-ue*Ct),Me.closePath()}},se=[re,de,ke,Y,oe,ye,Ae];function pe(){var Me=r(re),Xe=r(64),$e=null;function Qe(){var gt;if($e||($e=gt=t.path()),Me.apply(this,arguments).draw($e,+Xe.apply(this,arguments)),gt)return $e=null,gt+""||null}return Qe.type=function(gt){return arguments.length?(Me=typeof gt=="function"?gt:r(gt),Qe):Me},Qe.size=function(gt){return arguments.length?(Xe=typeof gt=="function"?gt:r(+gt),Qe):Xe},Qe.context=function(gt){return arguments.length?($e=gt==null?null:gt,Qe):$e},Qe}function fe(){}function Re(Me,Xe,$e){Me._context.bezierCurveTo((2*Me._x0+Me._x1)/3,(2*Me._y0+Me._y1)/3,(Me._x0+2*Me._x1)/3,(Me._y0+2*Me._y1)/3,(Me._x0+4*Me._x1+Xe)/6,(Me._y0+4*Me._y1+$e)/6)}function We(Me){this._context=Me}We.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Re(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(Me,Xe){switch(Me=+Me,Xe=+Xe,this._point){case 0:this._point=1,this._line?this._context.lineTo(Me,Xe):this._context.moveTo(Me,Xe);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Re(this,Me,Xe);break}this._x0=this._x1,this._x1=Me,this._y0=this._y1,this._y1=Xe}};function Ke(Me){return new We(Me)}function tt(Me){this._context=Me}tt.prototype={areaStart:fe,areaEnd:fe,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(Me,Xe){switch(Me=+Me,Xe=+Xe,this._point){case 0:this._point=1,this._x2=Me,this._y2=Xe;break;case 1:this._point=2,this._x3=Me,this._y3=Xe;break;case 2:this._point=3,this._x4=Me,this._y4=Xe,this._context.moveTo((this._x0+4*this._x1+Me)/6,(this._y0+4*this._y1+Xe)/6);break;default:Re(this,Me,Xe);break}this._x0=this._x1,this._x1=Me,this._y0=this._y1,this._y1=Xe}};function at(Me){return new tt(Me)}function Ge(Me){this._context=Me}Ge.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(Me,Xe){switch(Me=+Me,Xe=+Xe,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var $e=(this._x0+4*this._x1+Me)/6,Qe=(this._y0+4*this._y1+Xe)/6;this._line?this._context.lineTo($e,Qe):this._context.moveTo($e,Qe);break;case 3:this._point=4;default:Re(this,Me,Xe);break}this._x0=this._x1,this._x1=Me,this._y0=this._y1,this._y1=Xe}};function ge(Me){return new Ge(Me)}function Be(Me,Xe){this._basis=new We(Me),this._beta=Xe}Be.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var Me=this._x,Xe=this._y,$e=Me.length-1;if($e>0)for(var Qe=Me[0],gt=Xe[0],bt=Me[$e]-Qe,lr=Xe[$e]-gt,Ct=-1,ur;++Ct<=$e;)ur=Ct/$e,this._basis.point(this._beta*Me[Ct]+(1-this._beta)*(Qe+ur*bt),this._beta*Xe[Ct]+(1-this._beta)*(gt+ur*lr));this._x=this._y=null,this._basis.lineEnd()},point:function(Me,Xe){this._x.push(+Me),this._y.push(+Xe)}};var Ze=(function Me(Xe){function $e(Qe){return Xe===1?new We(Qe):new Be(Qe,Xe)}return $e.beta=function(Qe){return Me(+Qe)},$e})(.85);function Le(Me,Xe,$e){Me._context.bezierCurveTo(Me._x1+Me._k*(Me._x2-Me._x0),Me._y1+Me._k*(Me._y2-Me._y0),Me._x2+Me._k*(Me._x1-Xe),Me._y2+Me._k*(Me._y1-$e),Me._x2,Me._y2)}function De(Me,Xe){this._context=Me,this._k=(1-Xe)/6}De.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:Le(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(Me,Xe){switch(Me=+Me,Xe=+Xe,this._point){case 0:this._point=1,this._line?this._context.lineTo(Me,Xe):this._context.moveTo(Me,Xe);break;case 1:this._point=2,this._x1=Me,this._y1=Xe;break;case 2:this._point=3;default:Le(this,Me,Xe);break}this._x0=this._x1,this._x1=this._x2,this._x2=Me,this._y0=this._y1,this._y1=this._y2,this._y2=Xe}};var Ue=(function Me(Xe){function $e(Qe){return new De(Qe,Xe)}return $e.tension=function(Qe){return Me(+Qe)},$e})(0);function Pe(Me,Xe){this._context=Me,this._k=(1-Xe)/6}Pe.prototype={areaStart:fe,areaEnd:fe,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(Me,Xe){switch(Me=+Me,Xe=+Xe,this._point){case 0:this._point=1,this._x3=Me,this._y3=Xe;break;case 1:this._point=2,this._context.moveTo(this._x4=Me,this._y4=Xe);break;case 2:this._point=3,this._x5=Me,this._y5=Xe;break;default:Le(this,Me,Xe);break}this._x0=this._x1,this._x1=this._x2,this._x2=Me,this._y0=this._y1,this._y1=this._y2,this._y2=Xe}};var Se=(function Me(Xe){function $e(Qe){return new Pe(Qe,Xe)}return $e.tension=function(Qe){return Me(+Qe)},$e})(0);function Ie(Me,Xe){this._context=Me,this._k=(1-Xe)/6}Ie.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(Me,Xe){switch(Me=+Me,Xe=+Xe,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Le(this,Me,Xe);break}this._x0=this._x1,this._x1=this._x2,this._x2=Me,this._y0=this._y1,this._y1=this._y2,this._y2=Xe}};var ot=(function Me(Xe){function $e(Qe){return new Ie(Qe,Xe)}return $e.tension=function(Qe){return Me(+Qe)},$e})(0);function ut(Me,Xe,$e){var Qe=Me._x1,gt=Me._y1,bt=Me._x2,lr=Me._y2;if(Me._l01_a>f){var Ct=2*Me._l01_2a+3*Me._l01_a*Me._l12_a+Me._l12_2a,ur=3*Me._l01_a*(Me._l01_a+Me._l12_a);Qe=(Qe*Ct-Me._x0*Me._l12_2a+Me._x2*Me._l01_2a)/ur,gt=(gt*Ct-Me._y0*Me._l12_2a+Me._y2*Me._l01_2a)/ur}if(Me._l23_a>f){var Rr=2*Me._l23_2a+3*Me._l23_a*Me._l12_a+Me._l12_2a,Br=3*Me._l23_a*(Me._l23_a+Me._l12_a);bt=(bt*Rr+Me._x1*Me._l23_2a-Xe*Me._l12_2a)/Br,lr=(lr*Rr+Me._y1*Me._l23_2a-$e*Me._l12_2a)/Br}Me._context.bezierCurveTo(Qe,gt,bt,lr,Me._x2,Me._y2)}function _t(Me,Xe){this._context=Me,this._alpha=Xe}_t.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(Me,Xe){if(Me=+Me,Xe=+Xe,this._point){var $e=this._x2-Me,Qe=this._y2-Xe;this._l23_a=Math.sqrt(this._l23_2a=Math.pow($e*$e+Qe*Qe,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(Me,Xe):this._context.moveTo(Me,Xe);break;case 1:this._point=2;break;case 2:this._point=3;default:ut(this,Me,Xe);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=Me,this._y0=this._y1,this._y1=this._y2,this._y2=Xe}};var At=(function Me(Xe){function $e(Qe){return Xe?new _t(Qe,Xe):new De(Qe,0)}return $e.alpha=function(Qe){return Me(+Qe)},$e})(.5);function Gt(Me,Xe){this._context=Me,this._alpha=Xe}Gt.prototype={areaStart:fe,areaEnd:fe,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(Me,Xe){if(Me=+Me,Xe=+Xe,this._point){var $e=this._x2-Me,Qe=this._y2-Xe;this._l23_a=Math.sqrt(this._l23_2a=Math.pow($e*$e+Qe*Qe,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=Me,this._y3=Xe;break;case 1:this._point=2,this._context.moveTo(this._x4=Me,this._y4=Xe);break;case 2:this._point=3,this._x5=Me,this._y5=Xe;break;default:ut(this,Me,Xe);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=Me,this._y0=this._y1,this._y1=this._y2,this._y2=Xe}};var Dt=(function Me(Xe){function $e(Qe){return Xe?new Gt(Qe,Xe):new Pe(Qe,0)}return $e.alpha=function(Qe){return Me(+Qe)},$e})(.5);function yt(Me,Xe){this._context=Me,this._alpha=Xe}yt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(Me,Xe){if(Me=+Me,Xe=+Xe,this._point){var $e=this._x2-Me,Qe=this._y2-Xe;this._l23_a=Math.sqrt(this._l23_2a=Math.pow($e*$e+Qe*Qe,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:ut(this,Me,Xe);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=Me,this._y0=this._y1,this._y1=this._y2,this._y2=Xe}};var Mt=(function Me(Xe){function $e(Qe){return Xe?new yt(Qe,Xe):new Ie(Qe,0)}return $e.alpha=function(Qe){return Me(+Qe)},$e})(.5);function tr(Me){this._context=Me}tr.prototype={areaStart:fe,areaEnd:fe,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(Me,Xe){Me=+Me,Xe=+Xe,this._point?this._context.lineTo(Me,Xe):(this._point=1,this._context.moveTo(Me,Xe))}};function Ye(Me){return new tr(Me)}function nt(Me){return Me<0?-1:1}function st(Me,Xe,$e){var Qe=Me._x1-Me._x0,gt=Xe-Me._x1,bt=(Me._y1-Me._y0)/(Qe||gt<0&&-0),lr=($e-Me._y1)/(gt||Qe<0&&-0),Ct=(bt*gt+lr*Qe)/(Qe+gt);return(nt(bt)+nt(lr))*Math.min(Math.abs(bt),Math.abs(lr),.5*Math.abs(Ct))||0}function dt(Me,Xe){var $e=Me._x1-Me._x0;return $e?(3*(Me._y1-Me._y0)/$e-Xe)/2:Xe}function rt(Me,Xe,$e){var Qe=Me._x0,gt=Me._y0,bt=Me._x1,lr=Me._y1,Ct=(bt-Qe)/3;Me._context.bezierCurveTo(Qe+Ct,gt+Ct*Xe,bt-Ct,lr-Ct*$e,bt,lr)}function ft(Me){this._context=Me}ft.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:rt(this,this._t0,dt(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(Me,Xe){var $e=NaN;if(Me=+Me,Xe=+Xe,!(Me===this._x1&&Xe===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(Me,Xe):this._context.moveTo(Me,Xe);break;case 1:this._point=2;break;case 2:this._point=3,rt(this,dt(this,$e=st(this,Me,Xe)),$e);break;default:rt(this,this._t0,$e=st(this,Me,Xe));break}this._x0=this._x1,this._x1=Me,this._y0=this._y1,this._y1=Xe,this._t0=$e}}};function Ft(Me){this._context=new Et(Me)}(Ft.prototype=Object.create(ft.prototype)).point=function(Me,Xe){ft.prototype.point.call(this,Xe,Me)};function Et(Me){this._context=Me}Et.prototype={moveTo:function(Me,Xe){this._context.moveTo(Xe,Me)},closePath:function(){this._context.closePath()},lineTo:function(Me,Xe){this._context.lineTo(Xe,Me)},bezierCurveTo:function(Me,Xe,$e,Qe,gt,bt){this._context.bezierCurveTo(Xe,Me,Qe,$e,bt,gt)}};function er(Me){return new ft(Me)}function xr(Me){return new Ft(Me)}function kr(Me){this._context=Me}kr.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var Me=this._x,Xe=this._y,$e=Me.length;if($e)if(this._line?this._context.lineTo(Me[0],Xe[0]):this._context.moveTo(Me[0],Xe[0]),$e===2)this._context.lineTo(Me[1],Xe[1]);else for(var Qe=fr(Me),gt=fr(Xe),bt=0,lr=1;lr<$e;++bt,++lr)this._context.bezierCurveTo(Qe[0][bt],gt[0][bt],Qe[1][bt],gt[1][bt],Me[lr],Xe[lr]);(this._line||this._line!==0&&$e===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(Me,Xe){this._x.push(+Me),this._y.push(+Xe)}};function fr(Me){var Xe,$e=Me.length-1,Qe,gt=new Array($e),bt=new Array($e),lr=new Array($e);for(gt[0]=0,bt[0]=2,lr[0]=Me[0]+2*Me[1],Xe=1;Xe<$e-1;++Xe)gt[Xe]=1,bt[Xe]=4,lr[Xe]=4*Me[Xe]+2*Me[Xe+1];for(gt[$e-1]=2,bt[$e-1]=7,lr[$e-1]=8*Me[$e-1]+Me[$e],Xe=1;Xe<$e;++Xe)Qe=gt[Xe]/bt[Xe-1],bt[Xe]-=Qe,lr[Xe]-=Qe*lr[Xe-1];for(gt[$e-1]=lr[$e-1]/bt[$e-1],Xe=$e-2;Xe>=0;--Xe)gt[Xe]=(lr[Xe]-gt[Xe+1])/bt[Xe];for(bt[$e-1]=(Me[$e]+gt[$e-1])/2,Xe=0;Xe<$e-1;++Xe)bt[Xe]=2*Me[Xe+1]-gt[Xe+1];return[gt,bt]}function Yr(Me){return new kr(Me)}function Or(Me,Xe){this._context=Me,this._t=Xe}Or.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(Me,Xe){switch(Me=+Me,Xe=+Xe,this._point){case 0:this._point=1,this._line?this._context.lineTo(Me,Xe):this._context.moveTo(Me,Xe);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,Xe),this._context.lineTo(Me,Xe);else{var $e=this._x*(1-this._t)+Me*this._t;this._context.lineTo($e,this._y),this._context.lineTo($e,Xe)}break}}this._x=Me,this._y=Xe}};function ri(Me){return new Or(Me,.5)}function Tr(Me){return new Or(Me,0)}function Mr(Me){return new Or(Me,1)}function Gr(Me,Xe){if((lr=Me.length)>1)for(var $e=1,Qe,gt,bt=Me[Xe[0]],lr,Ct=bt.length;$e=0;)$e[Xe]=Xe;return $e}function Fi(Me,Xe){return Me[Xe]}function wr(){var Me=r([]),Xe=_i,$e=Gr,Qe=Fi;function gt(bt){var lr=Me.apply(this,arguments),Ct,ur=bt.length,Rr=lr.length,Br=new Array(Rr),Vr;for(Ct=0;Ct0){for(var $e,Qe,gt=0,bt=Me[0].length,lr;gt0)for(var $e,Qe=0,gt,bt,lr,Ct,ur,Rr=Me[Xe[0]].length;Qe0?(gt[0]=lr,gt[1]=lr+=bt):bt<0?(gt[1]=Ct,gt[0]=Ct+=bt):(gt[0]=0,gt[1]=bt)}function Wt(Me,Xe){if((gt=Me.length)>0){for(var $e=0,Qe=Me[Xe[0]],gt,bt=Qe.length;$e0)||!((bt=(gt=Me[Xe[0]]).length)>0))){for(var $e=0,Qe=1,gt,bt,lr;Qebt&&(bt=gt,$e=Xe);return $e}function Fr(Me){var Xe=Me.map(di);return _i(Me).sort(function($e,Qe){return Xe[$e]-Xe[Qe]})}function di(Me){for(var Xe=0,$e=-1,Qe=Me.length,gt;++$e{(function(e,t){typeof NO=="object"&&typeof mct!="undefined"?t(NO,hct(),dse()):(e=e||self,t(e.d3=e.d3||{},e.d3,e.d3))})(NO,function(e,t,r){"use strict";function i(x){return x.target.depth}function n(x){return x.depth}function a(x,T){return T-1-x.height}function o(x,T){return x.sourceLinks.length?x.depth:T-1}function s(x){return x.targetLinks.length?x.depth:x.sourceLinks.length?t.min(x.sourceLinks,i)-1:0}function l(x){return function(){return x}}function u(x,T){return c(x.source,T.source)||x.index-T.index}function f(x,T){return c(x.target,T.target)||x.index-T.index}function c(x,T){return x.y0-T.y0}function h(x){return x.value}function d(x){return x.index}function p(x){return x.nodes}function v(x){return x.links}function y(x,T){let A=x.get(T);if(!A)throw new Error("missing: "+T);return A}function m({nodes:x}){for(let T of x){let A=T.y0,g=A;for(let E of T.sourceLinks)E.y0=A+E.width/2,A+=E.width;for(let E of T.targetLinks)E.y1=g+E.width/2,g+=E.width}}function w(){let x=0,T=0,A=1,g=1,E=24,S=8,C,k=d,D=o,F,P,I=p,L=v,z=6,B=2/3;function O(){let ke={nodes:I.apply(null,arguments),links:L.apply(null,arguments)};return W(ke),X(ke),Z(ke),H(ke),N(ke),m(ke),ke}O.update=function(ke){return m(ke),ke},O.nodeId=function(ke){return arguments.length?(k=typeof ke=="function"?ke:l(ke),O):k},O.nodeAlign=function(ke){return arguments.length?(D=typeof ke=="function"?ke:l(ke),O):D},O.nodeSort=function(ke){return arguments.length?(F=ke,O):F},O.nodeWidth=function(ke){return arguments.length?(E=+ke,O):E},O.nodePadding=function(ke){return arguments.length?(S=C=+ke,O):S},O.nodes=function(ke){return arguments.length?(I=typeof ke=="function"?ke:l(ke),O):I},O.links=function(ke){return arguments.length?(L=typeof ke=="function"?ke:l(ke),O):L},O.linkSort=function(ke){return arguments.length?(P=ke,O):P},O.size=function(ke){return arguments.length?(x=T=0,A=+ke[0],g=+ke[1],O):[A-x,g-T]},O.extent=function(ke){return arguments.length?(x=+ke[0][0],A=+ke[1][0],T=+ke[0][1],g=+ke[1][1],O):[[x,T],[A,g]]},O.iterations=function(ke){return arguments.length?(z=+ke,O):z};function W({nodes:ke,links:le}){for(let[Ee,we]of ke.entries())we.index=Ee,we.sourceLinks=[],we.targetLinks=[];let te=new Map(ke.map((Ee,we)=>[k(Ee,we,ke),Ee]));for(let[Ee,we]of le.entries()){we.index=Ee;let{source:oe,target:Y}=we;typeof oe!="object"&&(oe=we.source=y(te,oe)),typeof Y!="object"&&(Y=we.target=y(te,Y)),oe.sourceLinks.push(we),Y.targetLinks.push(we)}if(P!=null)for(let{sourceLinks:Ee,targetLinks:we}of ke)Ee.sort(P),we.sort(P)}function X({nodes:ke}){for(let le of ke)le.value=le.fixedValue===void 0?Math.max(t.sum(le.sourceLinks,h),t.sum(le.targetLinks,h)):le.fixedValue}function Z({nodes:ke}){let le=ke.length,te=new Set(ke),Ee=new Set,we=0;for(;te.size;){for(let oe of te){oe.depth=we;for(let{target:Y}of oe.sourceLinks)Ee.add(Y)}if(++we>le)throw new Error("circular link");te=Ee,Ee=new Set}}function H({nodes:ke}){let le=ke.length,te=new Set(ke),Ee=new Set,we=0;for(;te.size;){for(let oe of te){oe.height=we;for(let{source:Y}of oe.targetLinks)Ee.add(Y)}if(++we>le)throw new Error("circular link");te=Ee,Ee=new Set}}function q({nodes:ke}){let le=t.max(ke,we=>we.depth)+1,te=(A-x-E)/(le-1),Ee=new Array(le);for(let we of ke){let oe=Math.max(0,Math.min(le-1,Math.floor(D.call(null,we,le))));we.layer=oe,we.x0=x+oe*te,we.x1=we.x0+E,Ee[oe]?Ee[oe].push(we):Ee[oe]=[we]}if(F)for(let we of Ee)we.sort(F);return Ee}function Q(ke){let le=t.min(ke,te=>(g-T-(te.length-1)*C)/t.sum(te,h));for(let te of ke){let Ee=T;for(let we of te){we.y0=Ee,we.y1=Ee+we.value*le,Ee=we.y1+C;for(let oe of we.sourceLinks)oe.width=oe.value*le}Ee=(g-Ee+C)/(te.length+1);for(let we=0;wete.length)-1)),Q(le);for(let te=0;te0))continue;let V=(ne/ye-Y.y0)*le;Y.y0+=V,Y.y1+=V,re(Y)}F===void 0&&oe.sort(c),j(oe,te)}}function J(ke,le,te){for(let Ee=ke.length,we=Ee-2;we>=0;--we){let oe=ke[we];for(let Y of oe){let ne=0,ye=0;for(let{target:ue,value:_e}of Y.sourceLinks){let xe=_e*(ue.layer-Y.layer);ne+=ze(Y,ue)*xe,ye+=xe}if(!(ye>0))continue;let V=(ne/ye-Y.y0)*le;Y.y0+=V,Y.y1+=V,re(Y)}F===void 0&&oe.sort(c),j(oe,te)}}function j(ke,le){let te=ke.length>>1,Ee=ke[te];ie(ke,Ee.y0-C,te-1,le),$(ke,Ee.y1+C,te+1,le),ie(ke,g,ke.length-1,le),$(ke,T,0,le)}function $(ke,le,te,Ee){for(;te1e-6&&(we.y0+=oe,we.y1+=oe),le=we.y1+C}}function ie(ke,le,te,Ee){for(;te>=0;--te){let we=ke[te],oe=(we.y1-le)*Ee;oe>1e-6&&(we.y0-=oe,we.y1-=oe),le=we.y0-C}}function re({sourceLinks:ke,targetLinks:le}){if(P===void 0){for(let{source:{sourceLinks:te}}of le)te.sort(f);for(let{target:{targetLinks:te}}of ke)te.sort(u)}}function de(ke){if(P===void 0)for(let{sourceLinks:le,targetLinks:te}of ke)le.sort(f),te.sort(u)}function me(ke,le){let te=ke.y0-(ke.sourceLinks.length-1)*C/2;for(let{target:Ee,width:we}of ke.sourceLinks){if(Ee===le)break;te+=we+C}for(let{source:Ee,width:we}of le.targetLinks){if(Ee===ke)break;te-=we}return te}function ze(ke,le){let te=le.y0-(le.targetLinks.length-1)*C/2;for(let{source:Ee,width:we}of le.targetLinks){if(Ee===ke)break;te+=we+C}for(let{target:Ee,width:we}of ke.sourceLinks){if(Ee===le)break;te-=we}return te}return O}function _(x){return[x.source.x1,x.y0]}function b(x){return[x.target.x0,x.y1]}function M(){return r.linkHorizontal().source(_).target(b)}e.sankey=w,e.sankeyCenter=s,e.sankeyJustify=o,e.sankeyLeft=n,e.sankeyLinkHorizontal=M,e.sankeyRight=a,Object.defineProperty(e,"__esModule",{value:!0})})});var xct=K((VO,gct)=>{(function(e,t){t(typeof VO=="object"&&typeof gct!="undefined"?VO:e.d3=e.d3||{})})(VO,(function(e){"use strict";function t(N,U){return NU?1:N>=U?0:NaN}function r(N){return N.length===1&&(N=i(N)),{left:function(U,J,j,$){for(j==null&&(j=0),$==null&&($=U.length);j<$;){var ie=j+$>>>1;N(U[ie],J)<0?j=ie+1:$=ie}return j},right:function(U,J,j,$){for(j==null&&(j=0),$==null&&($=U.length);j<$;){var ie=j+$>>>1;N(U[ie],J)>0?$=ie:j=ie+1}return j}}}function i(N){return function(U,J){return t(N(U),J)}}var n=r(t),a=n.right,o=n.left;function s(N,U){U==null&&(U=l);for(var J=0,j=N.length-1,$=N[0],ie=new Array(j<0?0:j);JN?1:U>=N?0:NaN}function c(N){return N===null?NaN:+N}function h(N,U){var J=N.length,j=0,$=-1,ie=0,re,de,me=0;if(U==null)for(;++$1)return me/(j-1)}function d(N,U){var J=h(N,U);return J&&Math.sqrt(J)}function p(N,U){var J=N.length,j=-1,$,ie,re;if(U==null){for(;++j=$)for(ie=re=$;++j$&&(ie=$),re<$&&(re=$))}else for(;++j=$)for(ie=re=$;++j$&&(ie=$),re<$&&(re=$));return[ie,re]}var v=Array.prototype,y=v.slice,m=v.map;function w(N){return function(){return N}}function _(N){return N}function b(N,U,J){N=+N,U=+U,J=($=arguments.length)<2?(U=N,N=0,1):$<3?1:+J;for(var j=-1,$=Math.max(0,Math.ceil((U-N)/J))|0,ie=new Array($);++j<$;)ie[j]=N+j*J;return ie}var M=Math.sqrt(50),x=Math.sqrt(10),T=Math.sqrt(2);function A(N,U,J){var j,$=-1,ie,re,de;if(U=+U,N=+N,J=+J,N===U&&J>0)return[N];if((j=U0)for(N=Math.ceil(N/de),U=Math.floor(U/de),re=new Array(ie=Math.ceil(U-N+1));++$=0?(ie>=M?10:ie>=x?5:ie>=T?2:1)*Math.pow(10,$):-Math.pow(10,-$)/(ie>=M?10:ie>=x?5:ie>=T?2:1)}function E(N,U,J){var j=Math.abs(U-N)/Math.max(0,J),$=Math.pow(10,Math.floor(Math.log(j)/Math.LN10)),ie=j/$;return ie>=M?$*=10:ie>=x?$*=5:ie>=T&&($*=2),Ule;)te.pop(),--Ee;var we=new Array(Ee+1),oe;for(ie=0;ie<=Ee;++ie)oe=we[ie]=[],oe.x0=ie>0?te[ie-1]:ke,oe.x1=ie=1)return+J(N[j-1],j-1,N);var j,$=(j-1)*U,ie=Math.floor($),re=+J(N[ie],ie,N),de=+J(N[ie+1],ie+1,N);return re+(de-re)*($-ie)}}function D(N,U,J){return N=m.call(N,c).sort(t),Math.ceil((J-U)/(2*(k(N,.75)-k(N,.25))*Math.pow(N.length,-1/3)))}function F(N,U,J){return Math.ceil((J-U)/(3.5*d(N)*Math.pow(N.length,-1/3)))}function P(N,U){var J=N.length,j=-1,$,ie;if(U==null){for(;++j=$)for(ie=$;++jie&&(ie=$)}else for(;++j=$)for(ie=$;++jie&&(ie=$);return ie}function I(N,U){var J=N.length,j=J,$=-1,ie,re=0;if(U==null)for(;++$=0;)for(re=N[U],J=re.length;--J>=0;)ie[--$]=re[J];return ie}function B(N,U){var J=N.length,j=-1,$,ie;if(U==null){for(;++j=$)for(ie=$;++j$&&(ie=$)}else for(;++j=$)for(ie=$;++j$&&(ie=$);return ie}function O(N,U){for(var J=U.length,j=new Array(J);J--;)j[J]=N[U[J]];return j}function W(N,U){if(J=N.length){var J,j=0,$=0,ie,re=N[$];for(U==null&&(U=t);++j{var $Fr=cse();bct.exports=function(t,r){var i=[],n=[],a=[],o={},s=[],l;function u(_){a[_]=!1,o.hasOwnProperty(_)&&Object.keys(o[_]).forEach(function(b){delete o[_][b],a[b]&&u(b)})}function f(_){var b=!1;n.push(_),a[_]=!0;var M,x;for(M=0;M=_})}function d(_){h(_);for(var b=t,M=$Fr(b),x=M.components.filter(function(k){return k.length>1}),T=1/0,A,g=0;g{(function(e,t){typeof UO=="object"&&typeof wct!="undefined"?t(UO,xct(),hse(),dse(),_ct()):t(e.d3=e.d3||{},e.d3,e.d3,e.d3,null)})(UO,(function(e,t,r,i,n){"use strict";n=n&&n.hasOwnProperty("default")?n.default:n;function a(le){return le.target.depth}function o(le){return le.depth}function s(le,te){return te-1-le.height}function l(le,te){return le.sourceLinks.length?le.depth:te-1}function u(le){return le.targetLinks.length?le.depth:le.sourceLinks.length?t.min(le.sourceLinks,a)-1:0}function f(le){return function(){return le}}var c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(le){return typeof le}:function(le){return le&&typeof Symbol=="function"&&le.constructor===Symbol&&le!==Symbol.prototype?"symbol":typeof le};function h(le,te){return p(le.source,te.source)||le.index-te.index}function d(le,te){return p(le.target,te.target)||le.index-te.index}function p(le,te){return le.partOfCycle===te.partOfCycle?le.y0-te.y0:le.circularLinkType==="top"||te.circularLinkType==="bottom"?-1:1}function v(le){return le.value}function y(le){return(le.y0+le.y1)/2}function m(le){return y(le.source)}function w(le){return y(le.target)}function _(le){return le.index}function b(le){return le.nodes}function M(le){return le.links}function x(le,te){var Ee=le.get(te);if(!Ee)throw new Error("missing: "+te);return Ee}function T(le,te){return te(le)}var A=25,g=10,E=.3;function S(){var le=0,te=0,Ee=1,we=1,oe=24,Y,ne=_,ye=l,V=b,ue=M,_e=32,xe=2,Ae,se=null;function pe(){var ge={nodes:V.apply(null,arguments),links:ue.apply(null,arguments)};fe(ge),C(ge,ne,se),Re(ge),tt(ge),k(ge,ne),at(ge,_e,ne),Ge(ge);for(var Be=4,Ze=0;Ze0?Be+A+g:Be,Ze=Ze>0?Ze+A+g:Ze,Le=Le>0?Le+A+g:Le,De=De>0?De+A+g:De,{top:Be,bottom:Ze,left:De,right:Le}}function Ke(ge,Be){var Ze=t.max(ge.nodes,function(ot){return ot.column}),Le=Ee-le,De=we-te,Ue=Le+Be.right+Be.left,Pe=De+Be.top+Be.bottom,Se=Le/Ue,Ie=De/Pe;return le=le*Se+Be.left,Ee=Be.right==0?Ee:Ee*Se,te=te*Ie+Be.top,we=we*Ie,ge.nodes.forEach(function(ot){ot.x0=le+ot.column*((Ee-le-oe)/Ze),ot.x1=ot.x0+oe}),Ie}function tt(ge){var Be,Ze,Le;for(Be=ge.nodes,Ze=[],Le=0;Be.length;++Le,Be=Ze,Ze=[])Be.forEach(function(De){De.depth=Le,De.sourceLinks.forEach(function(Ue){Ze.indexOf(Ue.target)<0&&!Ue.circular&&Ze.push(Ue.target)})});for(Be=ge.nodes,Ze=[],Le=0;Be.length;++Le,Be=Ze,Ze=[])Be.forEach(function(De){De.height=Le,De.targetLinks.forEach(function(Ue){Ze.indexOf(Ue.source)<0&&!Ue.circular&&Ze.push(Ue.source)})});ge.nodes.forEach(function(De){De.column=Math.floor(ye.call(null,De,Le))})}function at(ge,Be,Ze){var Le=r.nest().key(function(ot){return ot.column}).sortKeys(t.ascending).entries(ge.nodes).map(function(ot){return ot.values});Pe(Ze),Ie();for(var De=1,Ue=Be;Ue>0;--Ue)Se(De*=.99,Ze),Ie();function Pe(ot){if(Ae){var ut=1/0;Le.forEach(function(Dt){var yt=we*Ae/(Dt.length+1);ut=yt0))if(Dt==0&&Gt==1)Mt=yt.y1-yt.y0,yt.y0=we/2-Mt/2,yt.y1=we/2+Mt/2;else if(Dt==_t-1&&Gt==1)Mt=yt.y1-yt.y0,yt.y0=we/2-Mt/2,yt.y1=we/2+Mt/2;else{var tr=0,Ye=t.mean(yt.sourceLinks,w),nt=t.mean(yt.targetLinks,m);Ye&&nt?tr=(Ye+nt)/2:tr=Ye||nt;var st=(tr-y(yt))*ot;yt.y0+=st,yt.y1+=st}})})}function Ie(){Le.forEach(function(ot){var ut,_t,At=te,Gt=ot.length,Dt;for(ot.sort(p),Dt=0;Dt0&&(ut.y0+=_t,ut.y1+=_t),At=ut.y1+Y;if(_t=At-Y-we,_t>0)for(At=ut.y0-=_t,ut.y1-=_t,Dt=Gt-2;Dt>=0;--Dt)ut=ot[Dt],_t=ut.y1+Y-At,_t>0&&(ut.y0-=_t,ut.y1-=_t),At=ut.y0})}}function Ge(ge){ge.nodes.forEach(function(Be){Be.sourceLinks.sort(d),Be.targetLinks.sort(h)}),ge.nodes.forEach(function(Be){var Ze=Be.y0,Le=Ze,De=Be.y1,Ue=De;Be.sourceLinks.forEach(function(Pe){Pe.circular?(Pe.y0=De-Pe.width/2,De=De-Pe.width):(Pe.y0=Ze+Pe.width/2,Ze+=Pe.width)}),Be.targetLinks.forEach(function(Pe){Pe.circular?(Pe.y1=Ue-Pe.width/2,Ue=Ue-Pe.width):(Pe.y1=Le+Pe.width/2,Le+=Pe.width)})})}return pe}function C(le,te,Ee){var we=0;if(Ee===null){for(var oe=[],Y=0;Yte.source.column)}function P(le,te){var Ee=0;le.sourceLinks.forEach(function(oe){Ee=oe.circular&&!ze(oe,te)?Ee+1:Ee});var we=0;return le.targetLinks.forEach(function(oe){we=oe.circular&&!ze(oe,te)?we+1:we}),Ee+we}function I(le){var te=le.source.sourceLinks,Ee=0;te.forEach(function(Y){Ee=Y.circular?Ee+1:Ee});var we=le.target.targetLinks,oe=0;return we.forEach(function(Y){oe=Y.circular?oe+1:oe}),!(Ee>1||oe>1)}function L(le,te,Ee){return le.sort(O),le.forEach(function(we,oe){var Y=0;if(ze(we,Ee)&&I(we))we.circularPathData.verticalBuffer=Y+we.width/2;else{var ne=0;for(ne;neY?ye:Y}we.circularPathData.verticalBuffer=Y+we.width/2}}),le}function z(le,te,Ee,we){var oe=5,Y=t.min(le.links,function(V){return V.source.y0});le.links.forEach(function(V){V.circular&&(V.circularPathData={})});var ne=le.links.filter(function(V){return V.circularLinkType=="top"});L(ne,te,we);var ye=le.links.filter(function(V){return V.circularLinkType=="bottom"});L(ye,te,we),le.links.forEach(function(V){if(V.circular){if(V.circularPathData.arcRadius=V.width+g,V.circularPathData.leftNodeBuffer=oe,V.circularPathData.rightNodeBuffer=oe,V.circularPathData.sourceWidth=V.source.x1-V.source.x0,V.circularPathData.sourceX=V.source.x0+V.circularPathData.sourceWidth,V.circularPathData.targetX=V.target.x0,V.circularPathData.sourceY=V.y0,V.circularPathData.targetY=V.y1,ze(V,we)&&I(V))V.circularPathData.leftSmallArcRadius=g+V.width/2,V.circularPathData.leftLargeArcRadius=g+V.width/2,V.circularPathData.rightSmallArcRadius=g+V.width/2,V.circularPathData.rightLargeArcRadius=g+V.width/2,V.circularLinkType=="bottom"?(V.circularPathData.verticalFullExtent=V.source.y1+A+V.circularPathData.verticalBuffer,V.circularPathData.verticalLeftInnerExtent=V.circularPathData.verticalFullExtent-V.circularPathData.leftLargeArcRadius,V.circularPathData.verticalRightInnerExtent=V.circularPathData.verticalFullExtent-V.circularPathData.rightLargeArcRadius):(V.circularPathData.verticalFullExtent=V.source.y0-A-V.circularPathData.verticalBuffer,V.circularPathData.verticalLeftInnerExtent=V.circularPathData.verticalFullExtent+V.circularPathData.leftLargeArcRadius,V.circularPathData.verticalRightInnerExtent=V.circularPathData.verticalFullExtent+V.circularPathData.rightLargeArcRadius);else{var ue=V.source.column,_e=V.circularLinkType,xe=le.links.filter(function(pe){return pe.source.column==ue&&pe.circularLinkType==_e});V.circularLinkType=="bottom"?xe.sort(X):xe.sort(W);var Ae=0;xe.forEach(function(pe,fe){pe.circularLinkID==V.circularLinkID&&(V.circularPathData.leftSmallArcRadius=g+V.width/2+Ae,V.circularPathData.leftLargeArcRadius=g+V.width/2+fe*te+Ae),Ae=Ae+pe.width}),ue=V.target.column,xe=le.links.filter(function(pe){return pe.target.column==ue&&pe.circularLinkType==_e}),V.circularLinkType=="bottom"?xe.sort(H):xe.sort(Z),Ae=0,xe.forEach(function(pe,fe){pe.circularLinkID==V.circularLinkID&&(V.circularPathData.rightSmallArcRadius=g+V.width/2+Ae,V.circularPathData.rightLargeArcRadius=g+V.width/2+fe*te+Ae),Ae=Ae+pe.width}),V.circularLinkType=="bottom"?(V.circularPathData.verticalFullExtent=Math.max(Ee,V.source.y1,V.target.y1)+A+V.circularPathData.verticalBuffer,V.circularPathData.verticalLeftInnerExtent=V.circularPathData.verticalFullExtent-V.circularPathData.leftLargeArcRadius,V.circularPathData.verticalRightInnerExtent=V.circularPathData.verticalFullExtent-V.circularPathData.rightLargeArcRadius):(V.circularPathData.verticalFullExtent=Y-A-V.circularPathData.verticalBuffer,V.circularPathData.verticalLeftInnerExtent=V.circularPathData.verticalFullExtent+V.circularPathData.leftLargeArcRadius,V.circularPathData.verticalRightInnerExtent=V.circularPathData.verticalFullExtent+V.circularPathData.rightLargeArcRadius)}V.circularPathData.leftInnerExtent=V.circularPathData.sourceX+V.circularPathData.leftNodeBuffer,V.circularPathData.rightInnerExtent=V.circularPathData.targetX-V.circularPathData.rightNodeBuffer,V.circularPathData.leftFullExtent=V.circularPathData.sourceX+V.circularPathData.leftLargeArcRadius+V.circularPathData.leftNodeBuffer,V.circularPathData.rightFullExtent=V.circularPathData.targetX-V.circularPathData.rightLargeArcRadius-V.circularPathData.rightNodeBuffer}if(V.circular)V.path=B(V);else{var se=i.linkHorizontal().source(function(pe){var fe=pe.source.x0+(pe.source.x1-pe.source.x0),Re=pe.y0;return[fe,Re]}).target(function(pe){var fe=pe.target.x0,Re=pe.y1;return[fe,Re]});V.path=se(V)}})}function B(le){var te="";return le.circularLinkType=="top"?te="M"+le.circularPathData.sourceX+" "+le.circularPathData.sourceY+" L"+le.circularPathData.leftInnerExtent+" "+le.circularPathData.sourceY+" A"+le.circularPathData.leftLargeArcRadius+" "+le.circularPathData.leftSmallArcRadius+" 0 0 0 "+le.circularPathData.leftFullExtent+" "+(le.circularPathData.sourceY-le.circularPathData.leftSmallArcRadius)+" L"+le.circularPathData.leftFullExtent+" "+le.circularPathData.verticalLeftInnerExtent+" A"+le.circularPathData.leftLargeArcRadius+" "+le.circularPathData.leftLargeArcRadius+" 0 0 0 "+le.circularPathData.leftInnerExtent+" "+le.circularPathData.verticalFullExtent+" L"+le.circularPathData.rightInnerExtent+" "+le.circularPathData.verticalFullExtent+" A"+le.circularPathData.rightLargeArcRadius+" "+le.circularPathData.rightLargeArcRadius+" 0 0 0 "+le.circularPathData.rightFullExtent+" "+le.circularPathData.verticalRightInnerExtent+" L"+le.circularPathData.rightFullExtent+" "+(le.circularPathData.targetY-le.circularPathData.rightSmallArcRadius)+" A"+le.circularPathData.rightLargeArcRadius+" "+le.circularPathData.rightSmallArcRadius+" 0 0 0 "+le.circularPathData.rightInnerExtent+" "+le.circularPathData.targetY+" L"+le.circularPathData.targetX+" "+le.circularPathData.targetY:te="M"+le.circularPathData.sourceX+" "+le.circularPathData.sourceY+" L"+le.circularPathData.leftInnerExtent+" "+le.circularPathData.sourceY+" A"+le.circularPathData.leftLargeArcRadius+" "+le.circularPathData.leftSmallArcRadius+" 0 0 1 "+le.circularPathData.leftFullExtent+" "+(le.circularPathData.sourceY+le.circularPathData.leftSmallArcRadius)+" L"+le.circularPathData.leftFullExtent+" "+le.circularPathData.verticalLeftInnerExtent+" A"+le.circularPathData.leftLargeArcRadius+" "+le.circularPathData.leftLargeArcRadius+" 0 0 1 "+le.circularPathData.leftInnerExtent+" "+le.circularPathData.verticalFullExtent+" L"+le.circularPathData.rightInnerExtent+" "+le.circularPathData.verticalFullExtent+" A"+le.circularPathData.rightLargeArcRadius+" "+le.circularPathData.rightLargeArcRadius+" 0 0 1 "+le.circularPathData.rightFullExtent+" "+le.circularPathData.verticalRightInnerExtent+" L"+le.circularPathData.rightFullExtent+" "+(le.circularPathData.targetY+le.circularPathData.rightSmallArcRadius)+" A"+le.circularPathData.rightLargeArcRadius+" "+le.circularPathData.rightSmallArcRadius+" 0 0 1 "+le.circularPathData.rightInnerExtent+" "+le.circularPathData.targetY+" L"+le.circularPathData.targetX+" "+le.circularPathData.targetY,te}function O(le,te){return q(le)==q(te)?le.circularLinkType=="bottom"?X(le,te):W(le,te):q(te)-q(le)}function W(le,te){return le.y0-te.y0}function X(le,te){return te.y0-le.y0}function Z(le,te){return le.y1-te.y1}function H(le,te){return te.y1-le.y1}function q(le){return le.target.column-le.source.column}function Q(le){return le.target.x0-le.source.x1}function N(le,te){var Ee=D(le),we=Q(te)/Math.tan(Ee),oe=me(le)=="up"?le.y1+we:le.y1-we;return oe}function U(le,te){var Ee=D(le),we=Q(te)/Math.tan(Ee),oe=me(le)=="up"?le.y1-we:le.y1+we;return oe}function J(le,te,Ee,we){le.links.forEach(function(oe){if(!oe.circular&&oe.target.column-oe.source.column>1){var Y=oe.source.column+1,ne=oe.target.column-1,ye=1,V=ne-Y+1;for(ye=1;Y<=ne;Y++,ye++)le.nodes.forEach(function(ue){if(ue.column==Y){var _e=ye/(V+1),xe=Math.pow(1-_e,3),Ae=3*_e*Math.pow(1-_e,2),se=3*Math.pow(_e,2)*(1-_e),pe=Math.pow(_e,3),fe=xe*oe.y0+Ae*oe.y0+se*oe.y1+pe*oe.y1,Re=fe-oe.width/2,We=fe+oe.width/2,Ke;Re>ue.y0&&Reue.y0&&Weue.y1&&$(tt,Ke,te,Ee)})):Reue.y1&&(Ke=We-ue.y0+10,ue=$(ue,Ke,te,Ee),le.nodes.forEach(function(tt){T(tt,we)==T(ue,we)||tt.column!=ue.column||tt.y0ue.y1&&$(tt,Ke,te,Ee)}))}})}})}function j(le,te){return le.y0>te.y0&&le.y0te.y0&&le.y1te.y1}function $(le,te,Ee,we){return le.y0+te>=Ee&&le.y1+te<=we&&(le.y0=le.y0+te,le.y1=le.y1+te,le.targetLinks.forEach(function(oe){oe.y1=oe.y1+te}),le.sourceLinks.forEach(function(oe){oe.y0=oe.y0+te})),le}function ie(le,te,Ee,we){le.nodes.forEach(function(oe){we&&oe.y+(oe.y1-oe.y0)>te&&(oe.y=oe.y-(oe.y+(oe.y1-oe.y0)-te));var Y=le.links.filter(function(V){return T(V.source,Ee)==T(oe,Ee)}),ne=Y.length;ne>1&&Y.sort(function(V,ue){if(!V.circular&&!ue.circular){if(V.target.column==ue.target.column)return V.y1-ue.y1;if(de(V,ue)){if(V.target.column>ue.target.column){var _e=U(ue,V);return V.y1-_e}if(ue.target.column>V.target.column){var xe=U(V,ue);return xe-ue.y1}}else return V.y1-ue.y1}if(V.circular&&!ue.circular)return V.circularLinkType=="top"?-1:1;if(ue.circular&&!V.circular)return ue.circularLinkType=="top"?1:-1;if(V.circular&&ue.circular)return V.circularLinkType===ue.circularLinkType&&V.circularLinkType=="top"?V.target.column===ue.target.column?V.target.y1-ue.target.y1:ue.target.column-V.target.column:V.circularLinkType===ue.circularLinkType&&V.circularLinkType=="bottom"?V.target.column===ue.target.column?ue.target.y1-V.target.y1:V.target.column-ue.target.column:V.circularLinkType=="top"?-1:1});var ye=oe.y0;Y.forEach(function(V){V.y0=ye+V.width/2,ye=ye+V.width}),Y.forEach(function(V,ue){if(V.circularLinkType=="bottom"){var _e=ue+1,xe=0;for(_e;_e1&&oe.sort(function(ye,V){if(!ye.circular&&!V.circular){if(ye.source.column==V.source.column)return ye.y0-V.y0;if(de(ye,V)){if(V.source.column0?"up":"down"}function ze(le,te){return T(le.source,te)==T(le.target,te)}function ke(le,te,Ee){var we=le.nodes,oe=le.links,Y=!1,ne=!1;if(oe.forEach(function(Ae){Ae.circularLinkType=="top"?Y=!0:Ae.circularLinkType=="bottom"&&(ne=!0)}),Y==!1||ne==!1){var ye=t.min(we,function(Ae){return Ae.y0}),V=t.max(we,function(Ae){return Ae.y1}),ue=V-ye,_e=Ee-te,xe=_e/ue;we.forEach(function(Ae){var se=(Ae.y1-Ae.y0)*xe;Ae.y0=(Ae.y0-ye)*xe,Ae.y1=Ae.y0+se}),oe.forEach(function(Ae){Ae.y0=(Ae.y0-ye)*xe,Ae.y1=(Ae.y1-ye)*xe,Ae.width=Ae.width*xe})}}e.sankeyCircular=S,e.sankeyCenter=u,e.sankeyLeft=o,e.sankeyRight=s,e.sankeyJustify=l,Object.defineProperty(e,"__esModule",{value:!0})}))});var pse={};Fl(pse,{cn:()=>rLr,duration:()=>eLr,ease:()=>tLr,forceIterations:()=>JFr,forceTicksPerFrame:()=>QFr,nodePadAcross:()=>ZFr,nodeTextOffsetHorizontal:()=>YFr,nodeTextOffsetVertical:()=>XFr,sankeyIterations:()=>KFr});var YFr,XFr,ZFr,KFr,JFr,QFr,eLr,tLr,rLr,vse=ps(()=>{"use strict";YFr=4,XFr=3,ZFr=10,KFr=50,JFr=5,QFr=10,eLr=500,tLr="linear",rLr={sankey:"sankey",sankeyLinks:"sankey-links",sankeyLink:"sankey-link",sankeyNodeSet:"sankey-node-set",sankeyNode:"sankey-node",nodeRect:"node-rect",nodeLabel:"node-label"}});var Bct=K((uci,Rct)=>{"use strict";var Tct=fct(),iLr=(E_(),or(S_)).interpolateNumber,pT=No(),oD=yct(),nLr=Act(),Ju=(vse(),or(pse)),Wm=wo(),aLr=Is(),$m=St(),D3=$m.strTranslate,Mct=$m.strRotate,gse=Lm(),sD=gse.keyFun,GO=gse.repeat,Fct=gse.unwrap,Sct=Du(),oLr=Ho(),Lct=($c(),or(Wc)),sLr=Lct.CAP_SHIFT,lLr=Lct.LINE_SPACING,uLr=3;function fLr(e,t,r){var i=Fct(t),n=i.trace,a=n.domain,o=n.orientation==="h",s=n.direction==="reversed",l=n.node.pad,u=n.node.thickness,f={justify:oD.sankeyJustify,left:oD.sankeyLeft,right:oD.sankeyRight,center:oD.sankeyCenter}[n.node.align],c=e.width*(a.x[1]-a.x[0]),h=e.height*(a.y[1]-a.y[0]),d=i._nodes,p=i._links,v=i.circular,y;v?y=nLr.sankeyCircular().circularLinkGap(0):y=oD.sankey(),y.iterations(Ju.sankeyIterations).size(o?[c,h]:[h,c]).nodeWidth(u).nodePadding(l).nodeId(function(L){return L.pointNumber}).nodeAlign(f).nodes(d).links(p);function m(L){n[L].sort==="input"&&(v?$m.warn(`Circular Sankey diagrams do not support the "input" ${L}.sort mode; falling back to the default sort.`):y[`${L}Sort`](null))}m("link"),m("node");var w=y();y.nodePadding()=W||(O=W-B.y0,O>1e-6&&(B.y0+=O,B.y1+=O)),W=B.y1+l})}function C(L){var z=L.map(function(q,Q){return{x0:q.x0,index:Q}}).sort(function(q,Q){return q.x0-Q.x0}),B=[],O=-1,W,X=-1/0,Z;for(_=0;_X+u&&(O+=1,W=H.x0),X=H.x0,B[O]||(B[O]=[]),B[O].push(H),Z=W-H.x0,H.x0+=Z,H.x1+=Z}return B}if(n.node.x.length&&n.node.y.length){for(_=0;_0?" L "+n.targetX+" "+n.targetY:"")+"Z"):(r="M "+(n.targetX-t)+" "+(n.targetY-i)+" L "+(n.rightInnerExtent-t)+" "+(n.targetY-i)+" A "+(n.rightLargeArcRadius+i)+" "+(n.rightSmallArcRadius+i)+" 0 0 0 "+(n.rightFullExtent-i-t)+" "+(n.targetY+n.rightSmallArcRadius)+" L "+(n.rightFullExtent-i-t)+" "+n.verticalRightInnerExtent,a&&o?r+=" A "+(n.rightLargeArcRadius+i)+" "+(n.rightLargeArcRadius+i)+" 0 0 0 "+(n.rightInnerExtent-i-t)+" "+(n.verticalFullExtent+i)+" L "+(n.rightFullExtent+i-t-(n.rightLargeArcRadius-i))+" "+(n.verticalFullExtent+i)+" A "+(n.rightLargeArcRadius+i)+" "+(n.rightLargeArcRadius+i)+" 0 0 0 "+(n.leftFullExtent+i)+" "+n.verticalLeftInnerExtent:a?r+=" A "+(n.rightLargeArcRadius-i)+" "+(n.rightSmallArcRadius-i)+" 0 0 1 "+(n.rightFullExtent-t-i-(n.rightLargeArcRadius-i))+" "+(n.verticalFullExtent-i)+" L "+(n.leftFullExtent+i+(n.rightLargeArcRadius-i))+" "+(n.verticalFullExtent-i)+" A "+(n.rightLargeArcRadius-i)+" "+(n.rightSmallArcRadius-i)+" 0 0 1 "+(n.leftFullExtent+i)+" "+n.verticalLeftInnerExtent:r+=" A "+(n.rightLargeArcRadius+i)+" "+(n.rightLargeArcRadius+i)+" 0 0 0 "+(n.rightInnerExtent-t)+" "+(n.verticalFullExtent+i)+" L "+n.leftInnerExtent+" "+(n.verticalFullExtent+i)+" A "+(n.leftLargeArcRadius+i)+" "+(n.leftLargeArcRadius+i)+" 0 0 0 "+(n.leftFullExtent+i)+" "+n.verticalLeftInnerExtent,r+=" L "+(n.leftFullExtent+i)+" "+(n.sourceY+n.leftSmallArcRadius)+" A "+(n.leftLargeArcRadius+i)+" "+(n.leftSmallArcRadius+i)+" 0 0 0 "+n.leftInnerExtent+" "+(n.sourceY-i)+" L "+n.sourceX+" "+(n.sourceY-i)+" L "+n.sourceX+" "+(n.sourceY+i)+" L "+n.leftInnerExtent+" "+(n.sourceY+i)+" A "+(n.leftLargeArcRadius-i)+" "+(n.leftSmallArcRadius-i)+" 0 0 1 "+(n.leftFullExtent-i)+" "+(n.sourceY+n.leftSmallArcRadius)+" L "+(n.leftFullExtent-i)+" "+n.verticalLeftInnerExtent,a&&o?r+=" A "+(n.rightLargeArcRadius-i)+" "+(n.rightSmallArcRadius-i)+" 0 0 1 "+(n.leftFullExtent-i-(n.rightLargeArcRadius-i))+" "+(n.verticalFullExtent-i)+" L "+(n.rightFullExtent+i-t+(n.rightLargeArcRadius-i))+" "+(n.verticalFullExtent-i)+" A "+(n.rightLargeArcRadius-i)+" "+(n.rightSmallArcRadius-i)+" 0 0 1 "+(n.rightFullExtent+i-t)+" "+n.verticalRightInnerExtent:a?r+=" A "+(n.rightLargeArcRadius+i)+" "+(n.rightLargeArcRadius+i)+" 0 0 0 "+(n.leftFullExtent+i)+" "+(n.verticalFullExtent+i)+" L "+(n.rightFullExtent-t-i)+" "+(n.verticalFullExtent+i)+" A "+(n.rightLargeArcRadius+i)+" "+(n.rightLargeArcRadius+i)+" 0 0 0 "+(n.rightFullExtent+i-t)+" "+n.verticalRightInnerExtent:r+=" A "+(n.leftLargeArcRadius-i)+" "+(n.leftLargeArcRadius-i)+" 0 0 1 "+n.leftInnerExtent+" "+(n.verticalFullExtent-i)+" L "+(n.rightInnerExtent-t)+" "+(n.verticalFullExtent-i)+" A "+(n.rightLargeArcRadius-i)+" "+(n.rightLargeArcRadius-i)+" 0 0 1 "+(n.rightFullExtent+i-t)+" "+n.verticalRightInnerExtent,r+=" L "+(n.rightFullExtent+i-t)+" "+(n.targetY+n.rightSmallArcRadius)+" A "+(n.rightLargeArcRadius-i)+" "+(n.rightSmallArcRadius-i)+" 0 0 1 "+(n.rightInnerExtent-t)+" "+(n.targetY+i)+" L "+(n.targetX-t)+" "+(n.targetY+i)+(t>0?" L "+n.targetX+" "+n.targetY:"")+"Z"),r}function xse(){var e=.5;function t(r){var i=r.linkArrowLength;if(r.link.circular)return hLr(r.link,i);var n=Math.abs((r.link.target.x0-r.link.source.x1)/2);i>n&&(i=n);var a=r.link.source.x1,o=r.link.target.x0-i,s=iLr(a,o),l=s(e),u=s(1-e),f=r.link.y0-r.link.width/2,c=r.link.y0+r.link.width/2,h=r.link.y1-r.link.width/2,d=r.link.y1+r.link.width/2,p="M"+a+","+f,v="C"+l+","+f+" "+u+","+h+" "+o+","+h,y="C"+u+","+d+" "+l+","+c+" "+a+","+c,m=i>0?"L"+(o+i)+","+(h+r.link.width/2):"";return m+="L"+o+","+d,p+v+m+y+"Z"}return t}function dLr(e,t){var r=Ju.nodePadAcross,i=e.nodePad/2;t.dx=t.x1-t.x0,t.dy=t.y1-t.y0;var n=t.dx,a=Math.max(.5,t.dy),o="node_"+t.pointNumber;return t.group&&(o=$m.randstr()),t.trace=e.trace,t.curveNumber=e.trace.index,{index:t.pointNumber,key:o,partOfGroup:t.partOfGroup||!1,group:t.group,traceId:e.key,trace:e.trace,node:t,nodePad:e.nodePad,nodeLineColor:e.nodeLineColor,nodeLineWidth:e.nodeLineWidth,textFont:e.textFont,size:e.horizontal?e.height:e.width,visibleWidth:Math.ceil(n),visibleHeight:a,zoneX:-r,zoneY:-i,zoneWidth:n+2*r,zoneHeight:a+2*i,labelY:e.horizontal?t.dy/2+1:t.dx/2+1,left:t.originalLayer===1,sizeAcross:e.width,forceLayouts:e.forceLayouts,horizontal:e.horizontal,reversed:e.reversed,rgb:Wm.rgb(t.color),alpha:Wm.parse(t.color).alpha,valueFormat:e.valueFormat,valueSuffix:e.valueSuffix,sankey:e.sankey,graph:e.graph,arrangement:e.arrangement,uniqueNodeLabelPathId:[e.guid,e.key,o].join("_"),interactionState:e.interactionState,figure:e}}function yse(e){e.attr("transform",function(t){return D3(t.node.x0.toFixed(3),t.node.y0.toFixed(3))})}function pLr(e){e.call(yse)}function Pct(e,t){e.call(pLr),t.attr("d",xse())}function Ect(e){e.attr("width",function(t){return t.node.x1-t.node.x0}).attr("height",function(t){return t.visibleHeight})}function mse(e){return e.link.width>1||e.linkLineWidth>0}function kct(e){return e.horizontal?e.reversed?D3(e.translateX+e.width,e.translateY)+"matrix(-1 0 0 1 0 0)":D3(e.translateX,e.translateY)+"matrix(1 0 0 1 0 0)":e.reversed?D3(e.translateX,e.translateY+e.height)+"matrix(0 -1 1 0 0 0)":D3(e.translateX,e.translateY)+"matrix(0 1 1 0 0 0)"}function Cct(e,t,r){e.on(".basic",null).on("mouseover.basic",function(i){!i.interactionState.dragInProgress&&!i.partOfGroup&&(r.hover(this,i,t),i.interactionState.hovered=[this,i])}).on("mousemove.basic",function(i){!i.interactionState.dragInProgress&&!i.partOfGroup&&(r.follow(this,i),i.interactionState.hovered=[this,i])}).on("mouseout.basic",function(i){!i.interactionState.dragInProgress&&!i.partOfGroup&&(r.unhover(this,i,t),i.interactionState.hovered=!1)}).on("click.basic",function(i){i.interactionState.hovered&&(r.unhover(this,i,t),i.interactionState.hovered=!1),!i.interactionState.dragInProgress&&!i.partOfGroup&&r.select(this,i,t)})}function vLr(e,t,r,i){var n=pT.behavior.drag().origin(function(a){return{x:a.node.x0+a.visibleWidth/2,y:a.node.y0+a.visibleHeight/2}}).on("dragstart",function(a){if(a.arrangement!=="fixed"&&($m.ensureSingle(i._fullLayout._infolayer,"g","dragcover",function(s){i._fullLayout._dragCover=s}),$m.raiseToTop(this),a.interactionState.dragInProgress=a.node,Dct(a.node),a.interactionState.hovered&&(r.nodeEvents.unhover.apply(0,a.interactionState.hovered),a.interactionState.hovered=!1),a.arrangement==="snap")){var o=a.traceId+"|"+a.key;a.forceLayouts[o]?a.forceLayouts[o].alpha(1):mLr(e,o,a,i),yLr(e,t,a,o,i)}}).on("drag",function(a){if(a.arrangement!=="fixed"){var o=pT.event.x,s=pT.event.y;a.arrangement==="snap"?(a.node.x0=o-a.visibleWidth/2,a.node.x1=o+a.visibleWidth/2,a.node.y0=s-a.visibleHeight/2,a.node.y1=s+a.visibleHeight/2):(a.arrangement==="freeform"&&(a.node.x0=o-a.visibleWidth/2,a.node.x1=o+a.visibleWidth/2),s=Math.max(0,Math.min(a.size-a.visibleHeight/2,s)),a.node.y0=s-a.visibleHeight/2,a.node.y1=s+a.visibleHeight/2),Dct(a.node),a.arrangement!=="snap"&&(a.sankey.update(a.graph),Pct(e.filter(Ict(a)),t))}}).on("dragend",function(a){if(a.arrangement!=="fixed"){a.interactionState.dragInProgress=!1;for(var o=0;o0)window.requestAnimationFrame(a);else{var l=r.node.originalX;r.node.x0=l-r.visibleWidth/2,r.node.x1=l+r.visibleWidth/2,zct(r,n)}})}function gLr(e,t,r,i){return function(){for(var a=0,o=0;o0&&i.forceLayouts[t].alpha(0)}}function zct(e,t){let r=[...e.trace.node.x],i=[...e.trace.node.y];for(let n of e.graph.nodes)n.partOfGroup||(r[n.pointNumber]=(n.x0+n.x1)/2/e.figure.width,i[n.pointNumber]=(n.y0+n.y1)/2/e.figure.height);oLr.call("_guiRestyle",t,{"node.x":[r],"node.y":[i]},e.trace.index).then(function(){t._fullLayout._dragCover&&t._fullLayout._dragCover.remove()})}function xLr(e){var t=[],r;for(r=0;rmse(y)?Wm.rgb(y.linkLineColor):y.rgb).style("stroke-opacity",y=>mse(y)?Wm.opacity(y.linkLineColor):y.alpha).style("fill",y=>y.rgb).style("fill-opacity",y=>y.alpha).style("stroke-width",y=>mse(y)?y.linkLineWidth:1).attr("d",xse()),c.style("opacity",function(){return e._context.staticPlot||o||s?1:0}).transition().ease(Ju.ease).duration(Ju.duration).style("opacity",1),c.exit().transition().ease(Ju.ease).duration(Ju.duration).style("opacity",0).remove();var h=u.selectAll("."+Ju.cn.sankeyNodeSet).data(GO,sD);h.enter().append("g").classed(Ju.cn.sankeyNodeSet,!0),h.style("cursor",function(y){switch(y.arrangement){case"fixed":return"default";case"perpendicular":return"ns-resize";default:return"move"}});var d=h.selectAll("."+Ju.cn.sankeyNode).data(function(y){var m=y.graph.nodes;return xLr(m),m.map(dLr.bind(null,y))},sD);d.enter().append("g").classed(Ju.cn.sankeyNode,!0).call(yse).style("opacity",function(y){return(e._context.staticPlot||o)&&!y.partOfGroup?1:0}),d.call(Cct,u,n.nodeEvents).call(vLr,c,n,e),d.transition().ease(Ju.ease).duration(Ju.duration).call(yse).style("opacity",function(y){return y.partOfGroup?0:1}),d.exit().transition().ease(Ju.ease).duration(Ju.duration).style("opacity",0).remove();var p=d.selectAll("."+Ju.cn.nodeRect).data(GO);p.enter().append("rect").classed(Ju.cn.nodeRect,!0).call(Ect),p.style("stroke-width",function(y){return y.nodeLineWidth}).style("stroke",function(y){return Wm.rgb(y.nodeLineColor)}).style("stroke-opacity",function(y){return Wm.opacity(y.nodeLineColor)}).style("fill",y=>y.rgb).style("fill-opacity",y=>y.alpha),p.transition().ease(Ju.ease).duration(Ju.duration).call(Ect);var v=d.selectAll("."+Ju.cn.nodeLabel).data(GO);v.enter().append("text").classed(Ju.cn.nodeLabel,!0).style("cursor","default"),v.attr("data-notex",1).text(function(y){return y.node.label}).each(function(y){var m=pT.select(this);aLr.font(m,y.textFont),Sct.convertToTspans(m,e)}).attr("text-anchor",function(y){return y.horizontal&&y.left!==y.reversed?"end":"start"}).attr("transform",function(y){var m=pT.select(this),w=Sct.lineCount(m),_=y.textFont.size*((w-1)*lLr-sLr),b=y.nodeLineWidth/2+uLr;if(!y.horizontal){var T=y.reversed?(y.visibleWidth+_)/2:(y.visibleWidth-_)/2,M=y.reversed?Mct(90):"scale(-1,1)"+Mct(90);return D3(T,b)+M}var x=b,T=(y.visibleHeight-_)/2;return y.left?x=-x:x+=y.visibleWidth,D3(x,T)+(y.reversed?"scale(-1,1)":"")}),v.transition().ease(Ju.ease).duration(Ju.duration)}});var wse=K((fci,Wct)=>{"use strict";var od=No(),_se=St(),HO=_se.numberFormat,wLr=Bct(),vT=Gf(),ALr=wo(),Sx=(vse(),or(pse)).cn,lD=_se._;function qct(e){return e!==""}function mT(e,t){return e.filter(function(r){return r.key===t.traceId})}function Oct(e,t){od.select(e).select("path").style("fill-opacity",t),od.select(e).select("rect").style("fill-opacity",t)}function Nct(e){od.select(e).select("text.name").style("fill","black")}function Vct(e){return function(t){return e.node.sourceLinks.indexOf(t.link)!==-1||e.node.targetLinks.indexOf(t.link)!==-1}}function Uct(e){return function(t){return t.node.sourceLinks.indexOf(e.link)!==-1||t.node.targetLinks.indexOf(e.link)!==-1}}function Gct(e,t,r){t&&r&&mT(r,t).selectAll("."+Sx.sankeyLink).filter(Vct(t)).call(Hct.bind(0,t,r,!1))}function bse(e,t,r){t&&r&&mT(r,t).selectAll("."+Sx.sankeyLink).filter(Vct(t)).call(jct.bind(0,t,r,!1))}function Hct(e,t,r,i){i.style("fill",function(n){if(!n.link.concentrationscale)return n.hoverRgb}).style("fill-opacity",function(n){if(!n.link.concentrationscale)return n.hoverAlpha}),i.each(function(n){var a=n.link.label;a!==""&&mT(t,e).selectAll("."+Sx.sankeyLink).filter(function(o){return o.link.label===a}).style("fill",function(o){if(!o.link.concentrationscale)return o.hoverRgb}).style("fill-opacity",function(o){if(!o.link.concentrationscale)return o.hoverAlpha})}),r&&mT(t,e).selectAll("."+Sx.sankeyNode).filter(Uct(e)).call(Gct)}function jct(e,t,r,i){i.style("fill",function(n){return n.rgb}).style("fill-opacity",function(n){return n.alpha}),i.each(function(n){var a=n.link.label;a!==""&&mT(t,e).selectAll("."+Sx.sankeyLink).filter(function(o){return o.link.label===a}).style("fill",o=>o.rgb).style("fill-opacity",o=>o.alpha)}),r&&mT(t,e).selectAll(Sx.sankeyNode).filter(Uct(e)).call(bse)}function ac(e,t){var r=e.hoverlabel||{},i=_se.nestedProperty(r,t).get();return Array.isArray(i)?!1:i}Wct.exports=function(t,r){for(var i=t._fullLayout,n=i._paper,a=i._size,o=0;o"),color:ac(T,"bgcolor")||ALr.addOpacity(C.color,1),borderColor:ac(T,"bordercolor"),fontFamily:ac(T,"font.family"),fontSize:ac(T,"font.size"),fontColor:ac(T,"font.color"),fontWeight:ac(T,"font.weight"),fontStyle:ac(T,"font.style"),fontVariant:ac(T,"font.variant"),fontTextcase:ac(T,"font.textcase"),fontLineposition:ac(T,"font.lineposition"),fontShadow:ac(T,"font.shadow"),nameLength:ac(T,"namelength"),textAlign:ac(T,"align"),idealAlign:od.event.x"),color:ac(T,"bgcolor")||x.rgb,borderColor:ac(T,"bordercolor"),fontFamily:ac(T,"font.family"),fontSize:ac(T,"font.size"),fontColor:ac(T,"font.color"),fontWeight:ac(T,"font.weight"),fontStyle:ac(T,"font.style"),fontVariant:ac(T,"font.variant"),fontTextcase:ac(T,"font.textcase"),fontLineposition:ac(T,"font.lineposition"),fontShadow:ac(T,"font.shadow"),nameLength:ac(T,"namelength"),textAlign:ac(T,"align"),idealAlign:"left",hovertemplate:T.hovertemplate,hovertemplateLabels:D,eventData:[x.node]},{container:i._hoverlayer.node(),outerContainer:i._paper.node(),gd:t});Oct(I,.85),Nct(I)}}},b=function(M,x,T){t._fullLayout.hovermode!==!1&&(od.select(M).call(bse,x,T),x.node.trace.node.hoverinfo!=="skip"&&(x.node.fullData=x.node.trace,t.emit("plotly_unhover",{event:od.event,points:[x.node]})),vT.loneUnhover(i._hoverlayer.node()))};wLr(t,n,r,{width:a.w,height:a.h,margin:{t:a.t,r:a.r,b:a.b,l:a.l}},{linkEvents:{hover:u,follow:v,unhover:y,select:l},nodeEvents:{hover:w,follow:_,unhover:b,select:m}})}});var $ct=K(F3=>{"use strict";var TLr=Ef().overrideAll,MLr=Zh().getModuleCalcData,SLr=wse(),ELr=wg(),kLr=Yv(),CLr=U0(),DLr=fh().prepSelect,Ase=St(),FLr=Ho(),jO="sankey";F3.name=jO;F3.baseLayoutAttrOverrides=TLr({hoverlabel:ELr.hoverlabel},"plot","nested");F3.plot=function(e){var t=MLr(e.calcdata,jO)[0];SLr(e,t),F3.updateFx(e)};F3.clean=function(e,t,r,i){var n=i._has&&i._has(jO),a=t._has&&t._has(jO);n&&!a&&(i._paperdiv.selectAll(".sankey").remove(),i._paperdiv.selectAll(".bgsankey").remove())};F3.updateFx=function(e){for(var t=0;t{"use strict";Yct.exports=function(t,r){for(var i=t.cd,n=[],a=i[0].trace,o=a._sankey,s=o.graph.nodes,l=a.orientation==="v",u=a.direction==="reversed",f=0;f{"use strict";Zct.exports={attributes:fse(),supplyDefaults:Zft(),calc:tct(),plot:wse(),moduleType:"trace",name:"sankey",basePlotModule:$ct(),selectPoints:Xct(),categories:["noOpacity"],meta:{}}});var Qct=K((pci,Jct)=>{"use strict";Jct.exports=Kct()});var tht=K(yT=>{"use strict";var eht=yf();yT.name="indicator";yT.plot=function(e,t,r,i){eht.plotBasePlot(yT.name,e,t,r,i)};yT.clean=function(e,t,r,i){eht.cleanBasePlot(yT.name,e,t,r,i)}});var Mse=K((mci,sht)=>{"use strict";var Ex=Os().extendFlat,iht=Os().extendDeep,PLr=Ef().overrideAll,nht=lf(),aht=Gc(),zLr=kf().attributes,pc=Ph(),ILr=cu().templatedArray,WO=(HA(),or(GA)),rht=zf().descriptionOnlyNumbers,Tse=nht({editType:"plot",colorEditType:"plot"}),uD={color:{valType:"color",editType:"plot"},line:{color:{valType:"color",dflt:aht.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"},oht={valType:"info_array",items:[{valType:"number",editType:"plot"},{valType:"number",editType:"plot"}],editType:"plot"},RLr=ILr("step",iht({},uD,{range:oht}));sht.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:zLr({name:"indicator",trace:!0,editType:"calc"}),title:{text:{valType:"string",editType:"plot"},align:{valType:"enumerated",values:["left","center","right"],editType:"plot"},font:Ex({},Tse,{}),editType:"plot"},number:{valueformat:{valType:"string",dflt:"",editType:"plot",description:rht("value")},font:Ex({},Tse,{}),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:rht("value")},increasing:{symbol:{valType:"string",dflt:WO.INCREASING.SYMBOL,editType:"plot"},color:{valType:"color",dflt:WO.INCREASING.COLOR,editType:"plot"},editType:"plot"},decreasing:{symbol:{valType:"string",dflt:WO.DECREASING.SYMBOL,editType:"plot"},color:{valType:"color",dflt:WO.DECREASING.COLOR,editType:"plot"},editType:"plot"},font:Ex({},Tse,{}),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:iht({},uD,{color:{dflt:"green"}}),bgcolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:aht.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:1,editType:"plot"},axis:PLr({range:oht,visible:Ex({},pc.visible,{dflt:!0}),tickmode:pc.minor.tickmode,nticks:pc.nticks,tick0:pc.tick0,dtick:pc.dtick,tickvals:pc.tickvals,ticktext:pc.ticktext,ticks:Ex({},pc.ticks,{dflt:"outside"}),ticklen:pc.ticklen,tickwidth:pc.tickwidth,tickcolor:pc.tickcolor,ticklabelstep:pc.ticklabelstep,showticklabels:pc.showticklabels,labelalias:pc.labelalias,tickfont:nht({}),tickangle:pc.tickangle,tickformat:pc.tickformat,tickformatstops:pc.tickformatstops,tickprefix:pc.tickprefix,showtickprefix:pc.showtickprefix,ticksuffix:pc.ticksuffix,showticksuffix:pc.showticksuffix,separatethousands:pc.separatethousands,exponentformat:pc.exponentformat,minexponent:pc.minexponent,showexponent:pc.showexponent,editType:"plot"},"plot"),steps:RLr,threshold:{line:{color:Ex({},uD.line.color,{}),width:Ex({},uD.line.width,{dflt:1}),editType:"plot"},thickness:Ex({},uD.thickness,{dflt:.85}),value:{valType:"number",editType:"calc",dflt:!1},editType:"plot"},editType:"plot"}}});var Sse={};Fl(Sse,{bulletNumberDomainSize:()=>qLr,bulletPadding:()=>OLr,defaultNumberFontSize:()=>BLr,horizontalPadding:()=>GLr,innerRadius:()=>NLr,titlePadding:()=>ULr,valueThickness:()=>VLr});var BLr,qLr,OLr,NLr,VLr,ULr,GLr,Ese=ps(()=>{"use strict";BLr=80,qLr=.25,OLr=.025,NLr=.75,VLr=.5,ULr=5,GLr=10});var fht=K((yci,uht)=>{"use strict";var Ym=St(),YO=Mse(),HLr=kf().defaults,lht=cu(),jLr=A0(),$O=(Ese(),or(Sse)),WLr=fb(),$Lr=Dw(),YLr=Bg(),XLr=qg();function ZLr(e,t,r,i){function n(x,T){return Ym.coerce(e,t,YO,x,T)}HLr(t,i,n),n("mode"),t._hasNumber=t.mode.indexOf("number")!==-1,t._hasDelta=t.mode.indexOf("delta")!==-1,t._hasGauge=t.mode.indexOf("gauge")!==-1;var a=n("value");t._range=[0,typeof a=="number"?1.5*a:1];var o=new Array(2),s;if(t._hasNumber){n("number.valueformat");var l=Ym.extendFlat({},i.font);l.size=void 0,Ym.coerceFont(n,"number.font",l),t.number.font.size===void 0&&(t.number.font.size=$O.defaultNumberFontSize,o[0]=!0),n("number.prefix"),n("number.suffix"),s=t.number.font.size}var u;if(t._hasDelta){var f=Ym.extendFlat({},i.font);f.size=void 0,Ym.coerceFont(n,"delta.font",f),t.delta.font.size===void 0&&(t.delta.font.size=(t._hasNumber?.5:1)*(s||$O.defaultNumberFontSize),o[1]=!0),n("delta.reference",t.value),n("delta.relative"),n("delta.valueformat",t.delta.relative?"2%":""),n("delta.increasing.symbol"),n("delta.increasing.color"),n("delta.decreasing.symbol"),n("delta.decreasing.color"),n("delta.position"),n("delta.prefix"),n("delta.suffix"),u=t.delta.font.size}t._scaleNumbers=(!t._hasNumber||o[0])&&(!t._hasDelta||o[1])||!1;var c=Ym.extendFlat({},i.font);c.size=.25*(s||u||$O.defaultNumberFontSize),Ym.coerceFont(n,"title.font",c),n("title.text");var h,d,p,v;function y(x,T){return Ym.coerce(h,d,YO.gauge,x,T)}function m(x,T){return Ym.coerce(p,v,YO.gauge.axis,x,T)}if(t._hasGauge){h=e.gauge,h||(h={}),d=lht.newContainer(t,"gauge"),y("shape");var w=t._isBullet=t.gauge.shape==="bullet";w||n("title.align","center");var _=t._isAngular=t.gauge.shape==="angular";_||n("align","center"),y("bgcolor",i.paper_bgcolor),y("borderwidth"),y("bordercolor"),y("bar.color"),y("bar.line.color"),y("bar.line.width");var b=$O.valueThickness*(t.gauge.shape==="bullet"?.5:1);y("bar.thickness",b),jLr(h,d,{name:"steps",handleItemDefaults:KLr}),y("threshold.value"),y("threshold.thickness"),y("threshold.line.width"),y("threshold.line.color"),p={},h&&(p=h.axis||{}),v=lht.newContainer(d,"axis"),m("visible"),t._range=m("range",t._range);var M={font:i.font,noAutotickangles:!0,outerTicks:!0,noTicklabelshift:!0,noTicklabelstandoff:!0};WLr(p,v,m,"linear"),XLr(p,v,m,"linear",M),YLr(p,v,m,"linear",M),$Lr(p,v,m,M)}else n("title.align","center"),n("align","center"),t._isAngular=t._isBullet=!1;t._length=null}function KLr(e,t){function r(i,n){return Ym.coerce(e,t,YO.gauge.steps,i,n)}r("color"),r("line.color"),r("line.width"),r("range"),r("thickness")}uht.exports={supplyDefaults:ZLr}});var hht=K((gci,cht)=>{"use strict";function JLr(e,t){var r=[],i=t.value;typeof t._lastValue!="number"&&(t._lastValue=t.value);var n=t._lastValue,a=n;return t._hasDelta&&typeof t.delta.reference=="number"&&(a=t.delta.reference),r[0]={y:i,lastY:n,delta:i-a,relativeDelta:(i-a)/a},r}cht.exports={calc:JLr}});var ght=K((xci,yht)=>{"use strict";var R3=No(),QLr=(E_(),or(S_)).interpolate,dht=(E_(),or(S_)).interpolateNumber,kx=St(),ePr=kx.strScale,cD=kx.strTranslate,tPr=kx.rad2deg,rPr=($c(),or(Wc)).MID_SHIFT,I3=Is(),L3=(Ese(),or(Sse)),ZO=Du(),m0=Cs(),iPr=PM(),nPr=a9(),aPr=Ph(),gT=wo(),kse={left:"start",center:"middle",right:"end"},P3={left:0,center:.5,right:1},pht=/[yzafpnµmkMGTPEZY]/;function hD(e){return e&&e.duration>0}yht.exports=function(t,r,i,n){var a=t._fullLayout,o;hD(i)&&n&&(o=n()),kx.makeTraceGroups(a._indicatorlayer,r,"trace").each(function(s){var l=s[0],u=l.trace,f=R3.select(this),c=u._hasGauge,h=u._isAngular,d=u._isBullet,p=u.domain,v={w:a._size.w*(p.x[1]-p.x[0]),h:a._size.h*(p.y[1]-p.y[0]),l:a._size.l+a._size.w*p.x[0],r:a._size.r+a._size.w*(1-p.x[1]),t:a._size.t+a._size.h*(1-p.y[1]),b:a._size.b+a._size.h*p.y[0]},y=v.l+v.w/2,m=v.t+v.h/2,w=Math.min(v.w/2,v.h),_=L3.innerRadius*w,b,M,x,T=u.align||"center";if(M=m,!c)b=v.l+P3[T]*v.w,x=function(I){return vht(I,v.w,v.h)};else if(h&&(b=y,M=m+w/2,x=function(I){return fPr(I,.9*_)}),d){var A=L3.bulletPadding,g=1-L3.bulletNumberDomainSize+A;b=v.l+(g+(1-g)*P3[T])*v.w,x=function(I){return vht(I,(L3.bulletNumberDomainSize-A)*v.w,v.h)}}lPr(t,f,s,{numbersX:b,numbersY:M,numbersScaler:x,transitionOpts:i,onComplete:o});var E,S;c&&(E={range:u.gauge.axis.range,color:u.gauge.bgcolor,line:{color:u.gauge.bordercolor,width:0},thickness:1},S={range:u.gauge.axis.range,color:"rgba(0, 0, 0, 0)",line:{color:u.gauge.bordercolor,width:u.gauge.borderwidth},thickness:1});var C=f.selectAll("g.angular").data(h?s:[]);C.exit().remove();var k=f.selectAll("g.angularaxis").data(h?s:[]);k.exit().remove(),h&&sPr(t,f,s,{radius:w,innerRadius:_,gauge:C,layer:k,size:v,gaugeBg:E,gaugeOutline:S,transitionOpts:i,onComplete:o});var D=f.selectAll("g.bullet").data(d?s:[]);D.exit().remove();var F=f.selectAll("g.bulletaxis").data(d?s:[]);F.exit().remove(),d&&oPr(t,f,s,{gauge:D,layer:F,size:v,gaugeBg:E,gaugeOutline:S,transitionOpts:i,onComplete:o});var P=f.selectAll("text.title").data(s);P.exit().remove(),P.enter().append("text").classed("title",!0),P.attr("text-anchor",function(){return d?kse.right:kse[u.title.align]}).text(u.title.text).call(I3.font,u.title.font).call(ZO.convertToTspans,t),P.attr("transform",function(){var I=v.l+v.w*P3[u.title.align],L,z=L3.titlePadding,B=I3.bBox(P.node());if(c){if(h)if(u.gauge.axis.visible){var O=I3.bBox(k.node());L=O.top-z-B.bottom}else L=v.t+v.h/2-w/2-B.bottom-z;d&&(L=M-(B.top+B.bottom)/2,I=v.l-L3.bulletPadding*v.w)}else L=u._numbersTop-z-B.bottom;return cD(I,L)})})};function oPr(e,t,r,i){var n=r[0].trace,a=i.gauge,o=i.layer,s=i.gaugeBg,l=i.gaugeOutline,u=i.size,f=n.domain,c=i.transitionOpts,h=i.onComplete,d,p,v,y,m;a.enter().append("g").classed("bullet",!0),a.attr("transform",cD(u.l,u.t)),o.enter().append("g").classed("bulletaxis",!0).classed("crisp",!0),o.selectAll("g.xbulletaxistick,path,text").remove();var w=u.h,_=n.gauge.bar.thickness*w,b=f.x[0],M=f.x[0]+(f.x[1]-f.x[0])*(n._hasNumber||n._hasDelta?1-L3.bulletNumberDomainSize:1);d=fD(e,n.gauge.axis),d._id="xbulletaxis",d.domain=[b,M],d.setScale(),p=m0.calcTicks(d),v=m0.makeTransTickFn(d),y=m0.getTickSigns(d)[2],m=u.t+u.h,d.visible&&(m0.drawTicks(e,d,{vals:d.ticks==="inside"?m0.clipEnds(d,p):p,layer:o,path:m0.makeTickPath(d,m,y),transFn:v}),m0.drawLabels(e,d,{vals:p,layer:o,transFn:v,labelFns:m0.makeLabelFns(d,m)}));function x(k){k.attr("width",function(D){return Math.max(0,d.c2p(D.range[1])-d.c2p(D.range[0]))}).attr("x",function(D){return d.c2p(D.range[0])}).attr("y",function(D){return .5*(1-D.thickness)*w}).attr("height",function(D){return D.thickness*w})}var T=[s].concat(n.gauge.steps),A=a.selectAll("g.bg-bullet").data(T);A.enter().append("g").classed("bg-bullet",!0).append("rect"),A.select("rect").call(x).call(z3),A.exit().remove();var g=a.selectAll("g.value-bullet").data([n.gauge.bar]);g.enter().append("g").classed("value-bullet",!0).append("rect"),g.select("rect").attr("height",_).attr("y",(w-_)/2).call(z3),hD(c)?g.select("rect").transition().duration(c.duration).ease(c.easing).each("end",function(){h&&h()}).each("interrupt",function(){h&&h()}).attr("width",Math.max(0,d.c2p(Math.min(n.gauge.axis.range[1],r[0].y)))):g.select("rect").attr("width",typeof r[0].y=="number"?Math.max(0,d.c2p(Math.min(n.gauge.axis.range[1],r[0].y))):0),g.exit().remove();var E=r.filter(function(){return n.gauge.threshold.value||n.gauge.threshold.value===0}),S=a.selectAll("g.threshold-bullet").data(E);S.enter().append("g").classed("threshold-bullet",!0).append("line"),S.select("line").attr("x1",d.c2p(n.gauge.threshold.value)).attr("x2",d.c2p(n.gauge.threshold.value)).attr("y1",(1-n.gauge.threshold.thickness)/2*w).attr("y2",(1-(1-n.gauge.threshold.thickness)/2)*w).call(gT.stroke,n.gauge.threshold.line.color).style("stroke-width",n.gauge.threshold.line.width),S.exit().remove();var C=a.selectAll("g.gauge-outline").data([l]);C.enter().append("g").classed("gauge-outline",!0).append("rect"),C.select("rect").call(x).call(z3),C.exit().remove()}function sPr(e,t,r,i){var n=r[0].trace,a=i.size,o=i.radius,s=i.innerRadius,l=i.gaugeBg,u=i.gaugeOutline,f=[a.l+a.w/2,a.t+a.h/2+o/2],c=i.gauge,h=i.layer,d=i.transitionOpts,p=i.onComplete,v=Math.PI/2;function y(W){var X=n.gauge.axis.range[0],Z=n.gauge.axis.range[1],H=(W-X)/(Z-X)*Math.PI-v;return H<-v?-v:H>v?v:H}function m(W){return R3.svg.arc().innerRadius((s+o)/2-W/2*(o-s)).outerRadius((s+o)/2+W/2*(o-s)).startAngle(-v)}function w(W){W.attr("d",function(X){return m(X.thickness).startAngle(y(X.range[0])).endAngle(y(X.range[1]))()})}var _,b,M,x;c.enter().append("g").classed("angular",!0),c.attr("transform",cD(f[0],f[1])),h.enter().append("g").classed("angularaxis",!0).classed("crisp",!0),h.selectAll("g.xangularaxistick,path,text").remove(),_=fD(e,n.gauge.axis),_.type="linear",_.range=n.gauge.axis.range,_._id="xangularaxis",_.ticklabeloverflow="allow",_.setScale();var T=function(W){return(_.range[0]-W.x)/(_.range[1]-_.range[0])*Math.PI+Math.PI},A={},g=m0.makeLabelFns(_,0),E=g.labelStandoff;A.xFn=function(W){var X=T(W);return Math.cos(X)*E},A.yFn=function(W){var X=T(W),Z=Math.sin(X)>0?.2:1;return-Math.sin(X)*(E+W.fontSize*Z)+Math.abs(Math.cos(X))*(W.fontSize*rPr)},A.anchorFn=function(W){var X=T(W),Z=Math.cos(X);return Math.abs(Z)<.1?"middle":Z>0?"start":"end"},A.heightFn=function(W,X,Z){var H=T(W);return-.5*(1+Math.sin(H))*Z};var S=function(W){return cD(f[0]+o*Math.cos(W),f[1]-o*Math.sin(W))};M=function(W){return S(T(W))};var C=function(W){var X=T(W);return S(X)+"rotate("+-tPr(X)+")"};if(b=m0.calcTicks(_),x=m0.getTickSigns(_)[2],_.visible){x=_.ticks==="inside"?-1:1;var k=(_.linewidth||1)/2;m0.drawTicks(e,_,{vals:b,layer:h,path:"M"+x*k+",0h"+x*_.ticklen,transFn:C}),m0.drawLabels(e,_,{vals:b,layer:h,transFn:M,labelFns:A})}var D=[l].concat(n.gauge.steps),F=c.selectAll("g.bg-arc").data(D);F.enter().append("g").classed("bg-arc",!0).append("path"),F.select("path").call(w).call(z3),F.exit().remove();var P=m(n.gauge.bar.thickness),I=c.selectAll("g.value-arc").data([n.gauge.bar]);I.enter().append("g").classed("value-arc",!0).append("path");var L=I.select("path");hD(d)?(L.transition().duration(d.duration).ease(d.easing).each("end",function(){p&&p()}).each("interrupt",function(){p&&p()}).attrTween("d",uPr(P,y(r[0].lastY),y(r[0].y))),n._lastValue=r[0].y):L.attr("d",typeof r[0].y=="number"?P.endAngle(y(r[0].y)):"M0,0Z"),L.call(z3),I.exit().remove(),D=[];var z=n.gauge.threshold.value;(z||z===0)&&D.push({range:[z,z],color:n.gauge.threshold.color,line:{color:n.gauge.threshold.line.color,width:n.gauge.threshold.line.width},thickness:n.gauge.threshold.thickness});var B=c.selectAll("g.threshold-arc").data(D);B.enter().append("g").classed("threshold-arc",!0).append("path"),B.select("path").call(w).call(z3),B.exit().remove();var O=c.selectAll("g.gauge-outline").data([u]);O.enter().append("g").classed("gauge-outline",!0).append("path"),O.select("path").call(w).call(z3),O.exit().remove()}function lPr(e,t,r,i){var n=r[0].trace,a=i.numbersX,o=i.numbersY,s=n.align||"center",l=kse[s],u=i.transitionOpts,f=i.onComplete,c=kx.ensureSingle(t,"g","numbers"),h,d,p,v=[];n._hasNumber&&v.push("number"),n._hasDelta&&(v.push("delta"),n.delta.position==="left"&&v.reverse());var y=c.selectAll("text").data(v);y.enter().append("text"),y.attr("text-anchor",function(){return l}).attr("class",function(S){return S}).attr("x",null).attr("y",null).attr("dx",null).attr("dy",null),y.exit().remove();function m(S,C,k,D){if(S.match("s")&&k>=0!=D>=0&&!C(k).slice(-1).match(pht)&&!C(D).slice(-1).match(pht)){var F=S.slice().replace("s","f").replace(/\d+/,function(I){return parseInt(I)-1}),P=fD(e,{tickformat:F});return function(I){return Math.abs(I)<1?m0.tickText(P,I).text:C(I)}}else return C}function w(){var S=fD(e,{tickformat:n.number.valueformat},n._range);S.setScale(),m0.prepTicks(S);var C=function(I){return m0.tickText(S,I).text},k=n.number.suffix,D=n.number.prefix,F=c.select("text.number");function P(){var I=typeof r[0].y=="number"?D+C(r[0].y)+k:"-";F.text(I).call(I3.font,n.number.font).call(ZO.convertToTspans,e)}return hD(u)?F.transition().duration(u.duration).ease(u.easing).each("end",function(){P(),f&&f()}).each("interrupt",function(){P(),f&&f()}).attrTween("text",function(){var I=R3.select(this),L=dht(r[0].lastY,r[0].y);n._lastValue=r[0].y;var z=m(n.number.valueformat,C,r[0].lastY,r[0].y);return function(B){I.text(D+z(L(B))+k)}}):P(),h=mht(D+C(r[0].y)+k,n.number.font,l,e),F}function _(){var S=fD(e,{tickformat:n.delta.valueformat},n._range);S.setScale(),m0.prepTicks(S);var C=function(B){return m0.tickText(S,B).text},k=n.delta.suffix,D=n.delta.prefix,F=function(B){var O=n.delta.relative?B.relativeDelta:B.delta;return O},P=function(B,O){return B===0||typeof B!="number"||isNaN(B)?"-":(B>0?n.delta.increasing.symbol:n.delta.decreasing.symbol)+D+O(B)+k},I=function(B){return B.delta>=0?n.delta.increasing.color:n.delta.decreasing.color};n._deltaLastValue===void 0&&(n._deltaLastValue=F(r[0]));var L=c.select("text.delta");L.call(I3.font,n.delta.font).call(gT.fill,I({delta:n._deltaLastValue}));function z(){L.text(P(F(r[0]),C)).call(gT.fill,I(r[0])).call(ZO.convertToTspans,e)}return hD(u)?L.transition().duration(u.duration).ease(u.easing).tween("text",function(){var B=R3.select(this),O=F(r[0]),W=n._deltaLastValue,X=m(n.delta.valueformat,C,W,O),Z=dht(W,O);return n._deltaLastValue=O,function(H){B.text(P(Z(H),X)),B.call(gT.fill,I({delta:Z(H)}))}}).each("end",function(){z(),f&&f()}).each("interrupt",function(){z(),f&&f()}):z(),d=mht(P(F(r[0]),C),n.delta.font,l,e),L}var b=n.mode+n.align,M;if(n._hasDelta&&(M=_(),b+=n.delta.position+n.delta.font.size+n.delta.font.family+n.delta.valueformat,b+=n.delta.increasing.symbol+n.delta.decreasing.symbol,p=d),n._hasNumber&&(w(),b+=n.number.font.size+n.number.font.family+n.number.valueformat+n.number.suffix+n.number.prefix,p=h),n._hasDelta&&n._hasNumber){var x=[(h.left+h.right)/2,(h.top+h.bottom)/2],T=[(d.left+d.right)/2,(d.top+d.bottom)/2],A,g,E=.75*n.delta.font.size;n.delta.position==="left"&&(A=XO(n,"deltaPos",0,-1*(h.width*P3[n.align]+d.width*(1-P3[n.align])+E),b,Math.min),g=x[1]-T[1],p={width:h.width+d.width+E,height:Math.max(h.height,d.height),left:d.left+A,right:h.right,top:Math.min(h.top,d.top+g),bottom:Math.max(h.bottom,d.bottom+g)}),n.delta.position==="right"&&(A=XO(n,"deltaPos",0,h.width*(1-P3[n.align])+d.width*P3[n.align]+E,b,Math.max),g=x[1]-T[1],p={width:h.width+d.width+E,height:Math.max(h.height,d.height),left:h.left,right:d.right+A,top:Math.min(h.top,d.top+g),bottom:Math.max(h.bottom,d.bottom+g)}),n.delta.position==="bottom"&&(A=null,g=d.height,p={width:Math.max(h.width,d.width),height:h.height+d.height,left:Math.min(h.left,d.left),right:Math.max(h.right,d.right),top:h.bottom-h.height,bottom:h.bottom+d.height}),n.delta.position==="top"&&(A=null,g=h.top,p={width:Math.max(h.width,d.width),height:h.height+d.height,left:Math.min(h.left,d.left),right:Math.max(h.right,d.right),top:h.bottom-h.height-d.height,bottom:h.bottom}),M.attr({dx:A,dy:g})}(n._hasNumber||n._hasDelta)&&c.attr("transform",function(){var S=i.numbersScaler(p);b+=S[2];var C=XO(n,"numbersScale",1,S[0],b,Math.min),k;n._scaleNumbers||(C=1),n._isAngular?k=o-C*p.bottom:k=o-C*(p.top+p.bottom)/2,n._numbersTop=C*p.top+k;var D=p[s];s==="center"&&(D=(p.left+p.right)/2);var F=a-C*D;return F=XO(n,"numbersTranslate",0,F,b,Math.max),cD(F,k)+ePr(C)})}function z3(e){e.each(function(t){gT.stroke(R3.select(this),t.line.color)}).each(function(t){gT.fill(R3.select(this),t.color)}).style("stroke-width",function(t){return t.line.width})}function uPr(e,t,r){return function(){var i=QLr(t,r);return function(n){return e.endAngle(i(n))()}}}function fD(e,t,r){var i=e._fullLayout,n=kx.extendFlat({type:"linear",ticks:"outside",range:r,showline:!0},t),a={type:"linear",_id:"x"+t._id},o={letter:"x",font:i.font,noAutotickangles:!0,noHover:!0,noTickson:!0};function s(l,u){return kx.coerce(n,a,aPr,l,u)}return iPr(n,a,s,o,i),nPr(n,a,s,o),a}function vht(e,t,r){var i=Math.min(t/e.width,r/e.height);return[i,e,t+"x"+r]}function fPr(e,t){var r=Math.sqrt(e.width/2*(e.width/2)+e.height*e.height),i=t/r;return[i,e,t]}function mht(e,t,r,i){var n=document.createElementNS("http://www.w3.org/2000/svg","text"),a=R3.select(n);return a.text(e).attr("x",0).attr("y",0).attr("text-anchor",r).attr("data-unformatted",e).call(ZO.convertToTspans,i).call(I3.font,t),I3.bBox(a.node())}function XO(e,t,r,i,n,a){var o="_cache"+t;e[o]&&e[o].key===n||(e[o]={key:n,value:r});var s=kx.aggNums(a,null,[e[o].value,i],2);return e[o].value=s,s}});var bht=K((bci,xht)=>{"use strict";xht.exports={moduleType:"trace",name:"indicator",basePlotModule:tht(),categories:["svg","noOpacity","noHover"],animatable:!0,attributes:Mse(),supplyDefaults:fht().supplyDefaults,calc:hht().calc,plot:ght(),meta:{}}});var wht=K((_ci,_ht)=>{"use strict";_ht.exports=bht()});var Cse=K((Aci,Sht)=>{"use strict";var Aht=Qg(),KO=Os().extendFlat,cPr=Ef().overrideAll,Tht=lf(),hPr=kf().attributes,Mht=zf().descriptionOnlyNumbers,wci=Sht.exports=cPr({domain:hPr({name:"table",trace:!0}),columnwidth:{valType:"number",arrayOk:!0,dflt:null},columnorder:{valType:"data_array"},header:{values:{valType:"data_array",dflt:[]},format:{valType:"data_array",dflt:[],description:Mht("cell value")},prefix:{valType:"string",arrayOk:!0,dflt:null},suffix:{valType:"string",arrayOk:!0,dflt:null},height:{valType:"number",dflt:28},align:KO({},Aht.align,{arrayOk:!0}),line:{width:{valType:"number",arrayOk:!0,dflt:1},color:{valType:"color",arrayOk:!0,dflt:"grey"}},fill:{color:{valType:"color",arrayOk:!0,dflt:"white"}},font:KO({},Tht({arrayOk:!0}))},cells:{values:{valType:"data_array",dflt:[]},format:{valType:"data_array",dflt:[],description:Mht("cell value")},prefix:{valType:"string",arrayOk:!0,dflt:null},suffix:{valType:"string",arrayOk:!0,dflt:null},height:{valType:"number",dflt:20},align:KO({},Aht.align,{arrayOk:!0}),line:{width:{valType:"number",arrayOk:!0,dflt:1},color:{valType:"color",arrayOk:!0,dflt:"grey"}},fill:{color:{valType:"color",arrayOk:!0,dflt:"white"}},font:KO({},Tht({arrayOk:!0}))}},"calc","from-root")});var kht=K((Tci,Eht)=>{"use strict";var Dse=St(),dPr=Cse(),pPr=kf().defaults;function vPr(e,t){for(var r=e.columnorder||[],i=e.header.values.length,n=r.slice(0,i),a=n.slice().sort(function(l,u){return l-u}),o=n.map(function(l){return a.indexOf(l)}),s=o.length;s{"use strict";var mPr=Lm().wrap;Cht.exports=function(){return mPr({})}});var Fse={};Fl(Fse,{cellPad:()=>yPr,cn:()=>qPr,columnExtentOffset:()=>gPr,columnTitleOffset:()=>xPr,emptyHeaderHeight:()=>bPr,goldenRatio:()=>wPr,latexCheck:()=>_Pr,lineBreaker:()=>APr,maxDimensionCount:()=>TPr,overdrag:()=>MPr,releaseTransitionDuration:()=>SPr,releaseTransitionEase:()=>EPr,scrollbarCaptureWidth:()=>kPr,scrollbarHideDelay:()=>CPr,scrollbarHideDuration:()=>DPr,scrollbarOffset:()=>FPr,scrollbarWidth:()=>LPr,transitionDuration:()=>PPr,transitionEase:()=>zPr,uplift:()=>IPr,wrapSpacer:()=>RPr,wrapSplitCharacter:()=>BPr});var yPr,gPr,xPr,bPr,_Pr,wPr,APr,TPr,MPr,SPr,EPr,kPr,CPr,DPr,FPr,LPr,PPr,zPr,IPr,RPr,BPr,qPr,Lse=ps(()=>{"use strict";yPr=8,gPr=10,xPr=28,bPr=16,_Pr=/^\$.*\$$/,wPr=1.618,APr="
",TPr=60,MPr=45,SPr=120,EPr="cubic-out",kPr=18,CPr=1e3,DPr=1e3,FPr=5,LPr=8,PPr=100,zPr="cubic-out",IPr=5,RPr=" ",BPr=" ",qPr={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"}});var Oht=K((Sci,qht)=>{"use strict";var Fht=(Lse(),or(Fse)),zse=Os().extendFlat,OPr=Hs(),NPr=Yh().isTypedArray,JO=Yh().isArrayOrTypedArray;qht.exports=function(t,r){var i=Pse(r.cells.values),n=function(g){return g.slice(r.header.values.length,g.length)},a=Pse(r.header.values);a.length&&!a[0].length&&(a[0]=[""],a=Pse(a));var o=a.concat(n(i).map(function(){return Bht((a[0]||[""]).length)})),s=r.domain,l=Math.floor(t._fullLayout._size.w*(s.x[1]-s.x[0])),u=Math.floor(t._fullLayout._size.h*(s.y[1]-s.y[0])),f=r.header.values.length?o[0].map(function(){return r.header.height}):[Fht.emptyHeaderHeight],c=i.length?i[0].map(function(){return r.cells.height}):[],h=f.reduce(Lht,0),d=u-h,p=d+Fht.uplift,v=Iht(c,p),y=Iht(f,h),m=zht(y,[]),w=zht(v,m),_={},b=r.columnorder;JO(b)&&(b=Array.from(b)),b=b.concat(n(i.map(function(g,E){return E})));var M=o.map(function(g,E){var S=JO(r.columnwidth)?r.columnwidth[Math.min(E,r.columnwidth.length-1)]:r.columnwidth;return OPr(S)?Number(S):1}),x=M.reduce(Lht,0);M=M.map(function(g){return g/x*l});var T=Math.max(Ise(r.header.line.width),Ise(r.cells.line.width)),A={key:r.uid+t._context.staticPlot,translateX:s.x[0]*t._fullLayout._size.w,translateY:t._fullLayout._size.h*(1-s.y[1]),size:t._fullLayout._size,width:l,maxLineWidth:T,height:u,columnOrder:b,groupHeight:u,rowBlocks:w,headerRowBlocks:m,scrollY:0,cells:zse({},r.cells,{values:i}),headerCells:zse({},r.header,{values:o}),gdColumns:o.map(function(g){return g[0]}),gdColumnsOriginalOrder:o.map(function(g){return g[0]}),prevPages:[0,0],scrollbarState:{scrollbarScrollInProgress:!1},columns:o.map(function(g,E){var S=_[g];_[g]=(S||0)+1;var C=g+"__"+_[g];return{key:C,label:g,specIndex:E,xIndex:b[E],xScale:Pht,x:void 0,calcdata:void 0,columnWidth:M[E]}})};return A.columns.forEach(function(g){g.calcdata=A,g.x=Pht(g)}),A};function Ise(e){if(JO(e)){for(var t=0,r=0;r=t||u===e.length-1)&&(r[n]=o,o.key=l++,o.firstRowIndex=s,o.lastRowIndex=u,o=Rht(),n+=a,s=u+1,a=0);return r}function Rht(){return{firstRowIndex:null,lastRowIndex:null,rows:[]}}});var Nht=K(Rse=>{"use strict";var QO=Os().extendFlat;Rse.splitToPanels=function(e){var t=[0,0],r=QO({},e,{key:"header",type:"header",page:0,prevPages:t,currentRepaint:[null,null],dragHandle:!0,values:e.calcdata.headerCells.values[e.specIndex],rowBlocks:e.calcdata.headerRowBlocks,calcdata:QO({},e.calcdata,{cells:e.calcdata.headerCells})}),i=QO({},e,{key:"cells1",type:"cells",page:0,prevPages:t,currentRepaint:[null,null],dragHandle:!1,values:e.calcdata.cells.values[e.specIndex],rowBlocks:e.calcdata.rowBlocks}),n=QO({},e,{key:"cells2",type:"cells",page:1,prevPages:t,currentRepaint:[null,null],dragHandle:!1,values:e.calcdata.cells.values[e.specIndex],rowBlocks:e.calcdata.rowBlocks});return[i,n,r]};Rse.splitToCells=function(e){var t=VPr(e);return(e.values||[]).slice(t[0],t[1]).map(function(r,i){var n=typeof r=="string"&&r.match(/[<$&> ]/)?"_keybuster_"+Math.random():"";return{keyWithinBlock:i+n,key:t[0]+i,column:e,calcdata:e.calcdata,page:e.page,rowBlocks:e.rowBlocks,value:r}})};function VPr(e){var t=e.rowBlocks[e.page],r=t?t.rows[0].rowIndex:0,i=t?r+t.rows.length:0;return[r,i]}});var Wse=K((kci,Kht)=>{"use strict";var ts=(Lse(),or(Fse)),Of=No(),Bse=St(),UPr=Bse.numberFormat,Qu=Lm(),qse=Is(),GPr=Du(),HPr=St().raiseToTop,zv=St().strTranslate,jPr=St().cancelTransition,WPr=Oht(),$ht=Nht(),Vht=wo();Kht.exports=function(t,r){var i=!t._context.staticPlot,n=t._fullLayout._paper.selectAll("."+ts.cn.table).data(r.map(function(w){var _=Qu.unwrap(w),b=_.trace;return WPr(t,b)}),Qu.keyFun);n.exit().remove(),n.enter().append("g").classed(ts.cn.table,!0).attr("overflow","visible").style("box-sizing","content-box").style("position","absolute").style("left",0).style("overflow","visible").style("shape-rendering","crispEdges").style("pointer-events","all"),n.attr("width",function(w){return w.width+w.size.l+w.size.r}).attr("height",function(w){return w.height+w.size.t+w.size.b}).attr("transform",function(w){return zv(w.translateX,w.translateY)});var a=n.selectAll("."+ts.cn.tableControlView).data(Qu.repeat,Qu.keyFun),o=a.enter().append("g").classed(ts.cn.tableControlView,!0).style("box-sizing","content-box");if(i){var s="onwheel"in document?"wheel":"mousewheel";o.on("mousemove",function(w){a.filter(function(_){return w===_}).call(dD,t)}).on(s,function(w){if(!w.scrollbarState.wheeling){w.scrollbarState.wheeling=!0;var _=w.scrollY+Of.event.deltaY,b=tN(t,a,null,_)(w);b||(Of.event.stopPropagation(),Of.event.preventDefault()),w.scrollbarState.wheeling=!1}}).call(dD,t,!0)}a.attr("transform",function(w){return zv(w.size.l,w.size.t)});var l=a.selectAll("."+ts.cn.scrollBackground).data(Qu.repeat,Qu.keyFun);l.enter().append("rect").classed(ts.cn.scrollBackground,!0).attr("fill","none"),l.attr("width",function(w){return w.width}).attr("height",function(w){return w.height}),a.each(function(w){qse.setClipUrl(Of.select(this),Uht(t,w),t)});var u=a.selectAll("."+ts.cn.yColumn).data(function(w){return w.columns},Qu.keyFun);u.enter().append("g").classed(ts.cn.yColumn,!0),u.exit().remove(),u.attr("transform",function(w){return zv(w.x,0)}),i&&u.call(Of.behavior.drag().origin(function(w){var _=Of.select(this);return jht(_,w,-ts.uplift),HPr(this),w.calcdata.columnDragInProgress=!0,dD(a.filter(function(b){return w.calcdata.key===b.key}),t),w}).on("drag",function(w){var _=Of.select(this),b=function(T){return(w===T?Of.event.x:T.x)+T.columnWidth/2};w.x=Math.max(-ts.overdrag,Math.min(w.calcdata.width+ts.overdrag-w.columnWidth,Of.event.x));var M=Yht(u).filter(function(T){return T.calcdata.key===w.calcdata.key}),x=M.sort(function(T,A){return b(T)-b(A)});x.forEach(function(T,A){T.xIndex=A,T.x=w===T?T.x:T.xScale(T)}),u.filter(function(T){return w!==T}).transition().ease(ts.transitionEase).duration(ts.transitionDuration).attr("transform",function(T){return zv(T.x,0)}),_.call(jPr).attr("transform",zv(w.x,-ts.uplift))}).on("dragend",function(w){var _=Of.select(this),b=w.calcdata;w.x=w.xScale(w),w.calcdata.columnDragInProgress=!1,jht(_,w,0),r9r(t,b,b.columns.map(function(M){return M.xIndex}))})),u.each(function(w){qse.setClipUrl(Of.select(this),Ght(t,w),t)});var f=u.selectAll("."+ts.cn.columnBlock).data($ht.splitToPanels,Qu.keyFun);f.enter().append("g").classed(ts.cn.columnBlock,!0).attr("id",function(w){return w.key}),f.style("cursor",function(w){return w.dragHandle?"ew-resize":w.calcdata.scrollbarState.barWiggleRoom?"ns-resize":"default"});var c=f.filter(i9r),h=f.filter(Gse);i&&h.call(Of.behavior.drag().origin(function(w){return Of.event.stopPropagation(),w}).on("drag",tN(t,a,-1)).on("dragend",function(){})),Ose(t,a,c,f),Ose(t,a,h,f);var d=a.selectAll("."+ts.cn.scrollAreaClip).data(Qu.repeat,Qu.keyFun);d.enter().append("clipPath").classed(ts.cn.scrollAreaClip,!0).attr("id",function(w){return Uht(t,w)});var p=d.selectAll("."+ts.cn.scrollAreaClipRect).data(Qu.repeat,Qu.keyFun);p.enter().append("rect").classed(ts.cn.scrollAreaClipRect,!0).attr("x",-ts.overdrag).attr("y",-ts.uplift).attr("fill","none"),p.attr("width",function(w){return w.width+2*ts.overdrag}).attr("height",function(w){return w.height+ts.uplift});var v=u.selectAll("."+ts.cn.columnBoundary).data(Qu.repeat,Qu.keyFun);v.enter().append("g").classed(ts.cn.columnBoundary,!0);var y=u.selectAll("."+ts.cn.columnBoundaryClippath).data(Qu.repeat,Qu.keyFun);y.enter().append("clipPath").classed(ts.cn.columnBoundaryClippath,!0),y.attr("id",function(w){return Ght(t,w)});var m=y.selectAll("."+ts.cn.columnBoundaryRect).data(Qu.repeat,Qu.keyFun);m.enter().append("rect").classed(ts.cn.columnBoundaryRect,!0).attr("fill","none"),m.attr("width",function(w){return w.columnWidth+2*eN(w)}).attr("height",function(w){return w.calcdata.height+2*eN(w)+ts.uplift}).attr("x",function(w){return-eN(w)}).attr("y",function(w){return-eN(w)}),Hse(null,h,a)};function eN(e){return Math.ceil(e.calcdata.maxLineWidth/2)}function Uht(e,t){return"clip"+e._fullLayout._uid+"_scrollAreaBottomClip_"+t.key}function Ght(e,t){return"clip"+e._fullLayout._uid+"_columnBoundaryClippath_"+t.calcdata.key+"_"+t.specIndex}function Yht(e){return[].concat.apply([],e.map(function(t){return t})).map(function(t){return t.__data__})}function dD(e,t,r){function i(u){var f=u.rowBlocks;return Vse(f,f.length-1)+(f.length?rN(f[f.length-1],1/0):1)}var n=e.selectAll("."+ts.cn.scrollbarKit).data(Qu.repeat,Qu.keyFun);n.enter().append("g").classed(ts.cn.scrollbarKit,!0).style("shape-rendering","geometricPrecision"),n.each(function(u){var f=u.scrollbarState;f.totalHeight=i(u),f.scrollableAreaHeight=u.groupHeight-Nse(u),f.currentlyVisibleHeight=Math.min(f.totalHeight,f.scrollableAreaHeight),f.ratio=f.currentlyVisibleHeight/f.totalHeight,f.barLength=Math.max(f.ratio*f.currentlyVisibleHeight,ts.goldenRatio*ts.scrollbarWidth),f.barWiggleRoom=f.currentlyVisibleHeight-f.barLength,f.wiggleRoom=Math.max(0,f.totalHeight-f.scrollableAreaHeight),f.topY=f.barWiggleRoom===0?0:u.scrollY/f.wiggleRoom*f.barWiggleRoom,f.bottomY=f.topY+f.barLength,f.dragMultiplier=f.wiggleRoom/f.barWiggleRoom}).attr("transform",function(u){var f=u.width+ts.scrollbarWidth/2+ts.scrollbarOffset;return zv(f,Nse(u))});var a=n.selectAll("."+ts.cn.scrollbar).data(Qu.repeat,Qu.keyFun);a.enter().append("g").classed(ts.cn.scrollbar,!0);var o=a.selectAll("."+ts.cn.scrollbarSlider).data(Qu.repeat,Qu.keyFun);o.enter().append("g").classed(ts.cn.scrollbarSlider,!0),o.attr("transform",function(u){return zv(0,u.scrollbarState.topY||0)});var s=o.selectAll("."+ts.cn.scrollbarGlyph).data(Qu.repeat,Qu.keyFun);s.enter().append("line").classed(ts.cn.scrollbarGlyph,!0).attr("stroke","black").attr("stroke-width",ts.scrollbarWidth).attr("stroke-linecap","round").attr("y1",ts.scrollbarWidth/2),s.attr("y2",function(u){return u.scrollbarState.barLength-ts.scrollbarWidth/2}).attr("stroke-opacity",function(u){return u.columnDragInProgress||!u.scrollbarState.barWiggleRoom||r?0:.4}),s.transition().delay(0).duration(0),s.transition().delay(ts.scrollbarHideDelay).duration(ts.scrollbarHideDuration).attr("stroke-opacity",0);var l=a.selectAll("."+ts.cn.scrollbarCaptureZone).data(Qu.repeat,Qu.keyFun);l.enter().append("line").classed(ts.cn.scrollbarCaptureZone,!0).attr("stroke","white").attr("stroke-opacity",.01).attr("stroke-width",ts.scrollbarCaptureWidth).attr("stroke-linecap","butt").attr("y1",0).on("mousedown",function(u){var f=Of.event.y,c=this.getBoundingClientRect(),h=u.scrollbarState,d=f-c.top,p=Of.scale.linear().domain([0,h.scrollableAreaHeight]).range([0,h.totalHeight]).clamp(!0);h.topY<=d&&d<=h.bottomY||tN(t,e,null,p(d-h.barLength/2))(u)}).call(Of.behavior.drag().origin(function(u){return Of.event.stopPropagation(),u.scrollbarState.scrollbarScrollInProgress=!0,u}).on("drag",tN(t,e)).on("dragend",function(){})),l.attr("y2",function(u){return u.scrollbarState.scrollableAreaHeight}),t._context.staticPlot&&(s.remove(),l.remove())}function Ose(e,t,r,i){var n=$Pr(r),a=YPr(n);JPr(a);var o=XPr(a);e9r(o);var s=KPr(a),l=ZPr(s);QPr(l),Xht(l,t,i,e),jse(a)}function $Pr(e){var t=e.selectAll("."+ts.cn.columnCells).data(Qu.repeat,Qu.keyFun);return t.enter().append("g").classed(ts.cn.columnCells,!0),t.exit().remove(),t}function YPr(e){var t=e.selectAll("."+ts.cn.columnCell).data($ht.splitToCells,function(r){return r.keyWithinBlock});return t.enter().append("g").classed(ts.cn.columnCell,!0),t.exit().remove(),t}function XPr(e){var t=e.selectAll("."+ts.cn.cellRect).data(Qu.repeat,function(r){return r.keyWithinBlock});return t.enter().append("rect").classed(ts.cn.cellRect,!0),t}function ZPr(e){var t=e.selectAll("."+ts.cn.cellText).data(Qu.repeat,function(r){return r.keyWithinBlock});return t.enter().append("text").classed(ts.cn.cellText,!0).style("cursor",function(){return"auto"}).on("mousedown",function(){Of.event.stopPropagation()}),t}function KPr(e){var t=e.selectAll("."+ts.cn.cellTextHolder).data(Qu.repeat,function(r){return r.keyWithinBlock});return t.enter().append("g").classed(ts.cn.cellTextHolder,!0).style("shape-rendering","geometricPrecision"),t}function JPr(e){e.each(function(t,r){var i=t.calcdata.cells.font,n=t.column.specIndex,a={size:sd(i.size,n,r),color:sd(i.color,n,r),family:sd(i.family,n,r),weight:sd(i.weight,n,r),style:sd(i.style,n,r),variant:sd(i.variant,n,r),textcase:sd(i.textcase,n,r),lineposition:sd(i.lineposition,n,r),shadow:sd(i.shadow,n,r)};t.rowNumber=t.key,t.align=sd(t.calcdata.cells.align,n,r),t.cellBorderWidth=sd(t.calcdata.cells.line.width,n,r),t.font=a})}function QPr(e){e.each(function(t){qse.font(Of.select(this),t.font)})}function e9r(e){e.attr("width",function(t){return t.column.columnWidth}).attr("stroke-width",function(t){return t.cellBorderWidth}).each(function(t){var r=Of.select(this);Vht.stroke(r,sd(t.calcdata.cells.line.color,t.column.specIndex,t.rowNumber)),Vht.fill(r,sd(t.calcdata.cells.fill.color,t.column.specIndex,t.rowNumber))})}function Xht(e,t,r,i){e.text(function(n){var a=n.column.specIndex,o=n.rowNumber,s=n.value,l=typeof s=="string",u=l&&s.match(/
/i),f=!l||u;n.mayHaveMarkup=l&&s.match(/[<&>]/);var c=t9r(s);n.latex=c;var h=c?"":sd(n.calcdata.cells.prefix,a,o)||"",d=c?"":sd(n.calcdata.cells.suffix,a,o)||"",p=c?null:sd(n.calcdata.cells.format,a,o)||null,v=h+(p?UPr(p)(n.value):n.value)+d,y;n.wrappingNeeded=!n.wrapped&&!f&&!c&&(y=Hht(v)),n.cellHeightMayIncrease=u||c||n.mayHaveMarkup||(y===void 0?Hht(v):y),n.needsConvertToTspans=n.mayHaveMarkup||n.wrappingNeeded||n.latex;var m;if(n.wrappingNeeded){var w=ts.wrapSplitCharacter===" "?v.replace(/n&&i.push(a),n+=l}return i}function Hse(e,t,r){var i=Yht(t)[0];if(i!==void 0){var n=i.rowBlocks,a=i.calcdata,o=Vse(n,n.length),s=i.calcdata.groupHeight-Nse(i),l=a.scrollY=Math.max(0,Math.min(o-s,a.scrollY)),u=n9r(n,l,s);u.length===1&&(u[0]===n.length-1?u.unshift(u[0]-1):u.push(u[0]+1)),u[0]%2&&u.reverse(),t.each(function(f,c){f.page=u[c],f.scrollY=l}),t.attr("transform",function(f){var c=Vse(f.rowBlocks,f.page)-f.scrollY;return zv(0,c)}),e&&(Wht(e,r,t,u,i.prevPages,i,0),Wht(e,r,t,u,i.prevPages,i,1),dD(r,e))}}function tN(e,t,r,i){return function(a){var o=a.calcdata?a.calcdata:a,s=t.filter(function(c){return o.key===c.key}),l=r||o.scrollbarState.dragMultiplier,u=o.scrollY;o.scrollY=i===void 0?o.scrollY+l*Of.event.dy:i;var f=s.selectAll("."+ts.cn.yColumn).selectAll("."+ts.cn.columnBlock).filter(Gse);return Hse(e,f,s),o.scrollY===u}}function Wht(e,t,r,i,n,a,o){var s=i[o]!==n[o];s&&(clearTimeout(a.currentRepaint[o]),a.currentRepaint[o]=setTimeout(function(){var l=r.filter(function(u,f){return f===o&&i[f]!==n[f]});Ose(e,t,l,r),n[o]=i[o]}))}function a9r(e,t,r,i){return function(){var a=Of.select(t.parentNode);a.each(function(o){var s=o.fragments;a.selectAll("tspan.line").each(function(v,y){s[y].width=this.getComputedTextLength()});var l=s[s.length-1].width,u=s.slice(0,-1),f=[],c,h,d=0,p=o.column.columnWidth-2*ts.cellPad;for(o.value="";u.length;)c=u.shift(),h=c.width+l,d+h>p&&(o.value+=f.join(ts.wrapSpacer)+ts.lineBreaker,f=[],d=0),f.push(c.text),d+=h;d&&(o.value+=f.join(ts.wrapSpacer)),o.wrapped=!0}),a.selectAll("tspan.line").remove(),Xht(a.select("."+ts.cn.cellText),r,e,i),Of.select(t.parentNode.parentNode).call(jse)}}function o9r(e,t,r,i,n){return function(){if(!n.settledY){var o=Of.select(t.parentNode),s=Use(n),l=n.key-s.firstRowIndex,u=s.rows[l].rowHeight,f=n.cellHeightMayIncrease?t.parentNode.getBoundingClientRect().height+2*ts.cellPad:u,c=Math.max(f,u),h=c-s.rows[l].rowHeight;h&&(s.rows[l].rowHeight=c,e.selectAll("."+ts.cn.columnCell).call(jse),Hse(null,e.filter(Gse),0),dD(r,i,!0)),o.attr("transform",function(){var d=this,p=d.parentNode,v=p.getBoundingClientRect(),y=Of.select(d.parentNode).select("."+ts.cn.cellRect).node().getBoundingClientRect(),m=d.transform.baseVal.consolidate(),w=y.top-v.top+(m?m.matrix.f:ts.cellPad);return zv(Zht(n,Of.select(d.parentNode).select("."+ts.cn.cellTextHolder).node().getBoundingClientRect().width),w)}),n.settledY=!0}}}function Zht(e,t){switch(e.align){case"left":return ts.cellPad;case"right":return e.column.columnWidth-(t||0)-ts.cellPad;case"center":return(e.column.columnWidth-(t||0))/2;default:return ts.cellPad}}function jse(e){e.attr("transform",function(t){var r=t.rowBlocks[0].auxiliaryBlocks.reduce(function(o,s){return o+rN(s,1/0)},0),i=Use(t),n=rN(i,t.key),a=n+r;return zv(0,a)}).selectAll("."+ts.cn.cellRect).attr("height",function(t){return l9r(Use(t),t.key).rowHeight})}function Vse(e,t){for(var r=0,i=t-1;i>=0;i--)r+=s9r(e[i]);return r}function rN(e,t){for(var r=0,i=0;i{"use strict";var u9r=Zh().getModuleCalcData,f9r=Wse(),iN="table";nN.name=iN;nN.plot=function(e){var t=u9r(e.calcdata,iN)[0];t.length&&f9r(e,t)};nN.clean=function(e,t,r,i){var n=i._has&&i._has(iN),a=t._has&&t._has(iN);n&&!a&&i._paperdiv.selectAll(".table").remove()}});var e0t=K((Dci,Qht)=>{"use strict";Qht.exports={attributes:Cse(),supplyDefaults:kht(),calc:Dht(),plot:Wse(),moduleType:"trace",name:"table",basePlotModule:Jht(),categories:["noOpacity"],meta:{}}});var r0t=K((Fci,t0t)=>{"use strict";t0t.exports=e0t()});var s0t=K((Lci,o0t)=>{"use strict";var i0t=lf(),n0t=Gc(),$se=Ph(),c9r=zf().descriptionWithDates,h9r=Ef().overrideAll,a0t=gh().dash,Yse=Os().extendFlat;o0t.exports={color:{valType:"color",editType:"calc"},smoothing:{valType:"number",dflt:1,min:0,max:1.3,editType:"calc"},title:{text:{valType:"string",dflt:"",editType:"calc"},font:i0t({editType:"calc"}),offset:{valType:"number",dflt:10,editType:"calc"},editType:"calc"},type:{valType:"enumerated",values:["-","linear","date","category"],dflt:"-",editType:"calc"},autotypenumbers:$se.autotypenumbers,autorange:{valType:"enumerated",values:[!0,!1,"reversed"],dflt:!0,editType:"calc"},rangemode:{valType:"enumerated",values:["normal","tozero","nonnegative"],dflt:"normal",editType:"calc"},range:{valType:"info_array",editType:"calc",items:[{valType:"any",editType:"calc"},{valType:"any",editType:"calc"}]},fixedrange:{valType:"boolean",dflt:!1,editType:"calc"},cheatertype:{valType:"enumerated",values:["index","value"],dflt:"value",editType:"calc"},tickmode:{valType:"enumerated",values:["linear","array"],dflt:"array",editType:"calc"},nticks:{valType:"integer",min:0,dflt:0,editType:"calc"},tickvals:{valType:"data_array",editType:"calc"},ticktext:{valType:"data_array",editType:"calc"},showticklabels:{valType:"enumerated",values:["start","end","both","none"],dflt:"start",editType:"calc"},labelalias:Yse({},$se.labelalias,{editType:"calc"}),tickfont:i0t({editType:"calc"}),tickangle:{valType:"angle",dflt:"auto",editType:"calc"},tickprefix:{valType:"string",dflt:"",editType:"calc"},showtickprefix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"calc"},ticksuffix:{valType:"string",dflt:"",editType:"calc"},showticksuffix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"calc"},showexponent:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"calc"},exponentformat:{valType:"enumerated",values:["none","e","E","power","SI","B","SI extended"],dflt:"B",editType:"calc"},minexponent:{valType:"number",dflt:3,min:0,editType:"calc"},separatethousands:{valType:"boolean",dflt:!1,editType:"calc"},tickformat:{valType:"string",dflt:"",editType:"calc",description:c9r("tick label")},tickformatstops:h9r($se.tickformatstops,"calc","from-root"),categoryorder:{valType:"enumerated",values:["trace","category ascending","category descending","array"],dflt:"trace",editType:"calc"},categoryarray:{valType:"data_array",editType:"calc"},labelpadding:{valType:"integer",dflt:10,editType:"calc"},labelprefix:{valType:"string",editType:"calc"},labelsuffix:{valType:"string",dflt:"",editType:"calc"},showline:{valType:"boolean",dflt:!1,editType:"calc"},linecolor:{valType:"color",dflt:n0t.defaultLine,editType:"calc"},linewidth:{valType:"number",min:0,dflt:1,editType:"calc"},gridcolor:{valType:"color",editType:"calc"},gridwidth:{valType:"number",min:0,dflt:1,editType:"calc"},griddash:Yse({},a0t,{editType:"calc"}),showgrid:{valType:"boolean",dflt:!0,editType:"calc"},minorgridcount:{valType:"integer",min:0,dflt:0,editType:"calc"},minorgridwidth:{valType:"number",min:0,dflt:1,editType:"calc"},minorgriddash:Yse({},a0t,{editType:"calc"}),minorgridcolor:{valType:"color",dflt:n0t.lightLine,editType:"calc"},startline:{valType:"boolean",editType:"calc"},startlinecolor:{valType:"color",editType:"calc"},startlinewidth:{valType:"number",dflt:1,editType:"calc"},endline:{valType:"boolean",editType:"calc"},endlinewidth:{valType:"number",dflt:1,editType:"calc"},endlinecolor:{valType:"color",editType:"calc"},tick0:{valType:"number",min:0,dflt:0,editType:"calc"},dtick:{valType:"number",min:0,dflt:1,editType:"calc"},arraytick0:{valType:"integer",min:0,dflt:0,editType:"calc"},arraydtick:{valType:"integer",min:1,dflt:1,editType:"calc"},editType:"calc"}});var oN=K((Pci,f0t)=>{"use strict";var d9r=lf(),l0t=s0t(),u0t=Gc(),aN=d9r({editType:"calc"}),p9r=Qf().zorder;aN.family.dflt='"Open Sans", verdana, arial, sans-serif';aN.size.dflt=12;aN.color.dflt=u0t.defaultLine;f0t.exports={carpet:{valType:"string",editType:"calc"},x:{valType:"data_array",editType:"calc+clearAxisTypes"},y:{valType:"data_array",editType:"calc+clearAxisTypes"},a:{valType:"data_array",editType:"calc"},a0:{valType:"number",dflt:0,editType:"calc"},da:{valType:"number",dflt:1,editType:"calc"},b:{valType:"data_array",editType:"calc"},b0:{valType:"number",dflt:0,editType:"calc"},db:{valType:"number",dflt:1,editType:"calc"},cheaterslope:{valType:"number",dflt:1,editType:"calc"},aaxis:l0t,baxis:l0t,font:aN,color:{valType:"color",dflt:u0t.defaultLine,editType:"plot"},zorder:p9r}});var d0t=K((zci,h0t)=>{"use strict";var c0t=St().isArray1D;h0t.exports=function(t,r,i){var n=i("x"),a=n&&n.length,o=i("y"),s=o&&o.length;if(!a&&!s)return!1;if(r._cheater=!n,(!a||c0t(n))&&(!s||c0t(o))){var l=a?n.length:1/0;s&&(l=Math.min(l,o.length)),r.a&&r.a.length&&(l=Math.min(l,r.a.length)),r.b&&r.b.length&&(l=Math.min(l,r.b.length)),r._length=l}else r._length=null;return!0}});var m0t=K((Ici,v0t)=>{"use strict";var v9r=oN(),p0t=wo().addOpacity,m9r=Ho(),pD=St(),y9r=fb(),g9r=Bg(),x9r=qg(),b9r=r9(),_9r=$1(),w9r=Rw();v0t.exports=function(t,r,i){var n=i.letter,a=i.font||{},o=v9r[n+"axis"];function s(g,E){return pD.coerce(t,r,o,g,E)}function l(g,E){return pD.coerce2(t,r,o,g,E)}i.name&&(r._name=i.name,r._id=i.name),s("autotypenumbers",i.autotypenumbersDflt);var u=s("type");if(u==="-"&&(i.data&&A9r(r,i.data),r.type==="-"?r.type="linear":u=t.type=r.type),s("smoothing"),s("cheatertype"),s("showticklabels"),s("labelprefix",n+" = "),s("labelsuffix"),s("showtickprefix"),s("showticksuffix"),s("separatethousands"),s("tickformat"),s("exponentformat"),s("minexponent"),s("showexponent"),s("categoryorder"),s("tickmode"),s("tickvals"),s("ticktext"),s("tick0"),s("dtick"),r.tickmode==="array"&&(s("arraytick0"),s("arraydtick")),s("labelpadding"),r._hovertitle=n,u==="date"){var f=m9r.getComponentMethod("calendars","handleDefaults");f(t,r,"calendar",i.calendar)}_9r(r,i.fullLayout),r.c2p=pD.identity;var c=s("color",i.dfltColor),h=c===t.color?c:a.color,d=s("title.text");d&&(pD.coerceFont(s,"title.font",a,{overrideDflt:{size:pD.bigFont(a.size),color:h}}),s("title.offset")),s("tickangle");var p=s("autorange",!r.isValidRange(t.range));p&&s("rangemode"),s("range"),r.cleanRange(),s("fixedrange"),y9r(t,r,s,u),x9r(t,r,s,u,i),g9r(t,r,s,u,i),b9r(t,r,s,{data:i.data,dataAttr:n});var v=s("gridcolor",p0t(c,.3)),y=l("gridwidth"),m=l("griddash"),w=s("showgrid");w||(delete r.gridcolor,delete r.gridwidth,delete r.griddash);var _=l("startlinecolor",c),b=l("startlinewidth",y),M=s("startline",r.showgrid||!!_||!!b);M||(delete r.startlinecolor,delete r.startlinewidth);var x=l("endlinecolor",c),T=l("endlinewidth",y),A=s("endline",r.showgrid||!!x||!!T);return A||(delete r.endlinecolor,delete r.endlinewidth),w?(s("minorgridcount"),s("minorgridwidth",y),s("minorgriddash",m),s("minorgridcolor",p0t(v,.06)),r.minorgridcount||(delete r.minorgridwidth,delete r.minorgriddash,delete r.minorgridcolor)):(delete r.gridcolor,delete r.gridwidth,delete r.griddash),r.showticklabels==="none"&&(delete r.tickfont,delete r.tickangle,delete r.showexponent,delete r.exponentformat,delete r.minexponent,delete r.tickformat,delete r.showticksuffix,delete r.showtickprefix),r.showticksuffix||delete r.ticksuffix,r.showtickprefix||delete r.tickprefix,s("tickmode"),r};function A9r(e,t){if(e.type==="-"){var r=e._id,i=r.charAt(0),n=i+"calendar",a=e[n];e.type=w9r(t,a,{autotypenumbers:e.autotypenumbers})}}});var g0t=K((Rci,y0t)=>{"use strict";var T9r=m0t(),M9r=cu();y0t.exports=function(t,r,i,n,a){var o=n("a");o||(n("da"),n("a0"));var s=n("b");s||(n("db"),n("b0")),S9r(t,r,i,a)};function S9r(e,t,r,i){var n=["aaxis","baxis"];n.forEach(function(a){var o=a.charAt(0),s=e[a]||{},l=M9r.newContainer(t,a),u={noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0,noTicklabelstep:!0,tickfont:"x",id:o+"axis",letter:o,font:t.font,name:a,data:e[o],calendar:t.calendar,dfltColor:i,bgColor:r.paper_bgcolor,autotypenumbersDflt:r.autotypenumbers,fullLayout:r};T9r(s,l,u),l._categories=l._categories||[],!e[a]&&s.type!=="-"&&(e[a]={type:s.type})})}});var _0t=K((Bci,b0t)=>{"use strict";var x0t=St(),E9r=d0t(),k9r=g0t(),C9r=oN(),D9r=Gc();b0t.exports=function(t,r,i,n){function a(l,u){return x0t.coerce(t,r,C9r,l,u)}r._clipPathId="clip"+r.uid+"carpet";var o=a("color",D9r.defaultLine);if(x0t.coerceFont(a,"font",n.font),a("carpet"),k9r(t,r,n,a,o),!r.a||!r.b){r.visible=!1;return}r.a.length<3&&(r.aaxis.smoothing=0),r.b.length<3&&(r.baxis.smoothing=0);var s=E9r(t,r,a);s||(r.visible=!1),r._cheater&&a("cheaterslope"),a("zorder")}});var Xse=K((qci,w0t)=>{"use strict";var F9r=St().isArrayOrTypedArray;w0t.exports=function(t,r,i){var n;for(F9r(t)?t.length>r.length&&(t=t.slice(0,r.length)):t=[],n=0;n{"use strict";A0t.exports=function(t,r,i){if(t.length===0)return"";var n,a=[],o=i?3:1;for(n=0;n{"use strict";T0t.exports=function(t,r,i,n,a,o){var s=a[0]*t.dpdx(r),l=a[1]*t.dpdy(i),u=1,f=1;if(o){var c=Math.sqrt(a[0]*a[0]+a[1]*a[1]),h=Math.sqrt(o[0]*o[0]+o[1]*o[1]),d=(a[0]*o[0]+a[1]*o[1])/c/h;f=Math.max(0,d)}var p=Math.atan2(l,s)*180/Math.PI;return p<-90?(p+=180,u=-u):p>90&&(p-=180,u=-u),{angle:p,flip:u,p:t.c2p(n,r,i),offsetMultplier:f}}});var P0t=K((Vci,L0t)=>{"use strict";var fN=No(),sN=Is(),lN=Xse(),k0t=Zse(),vD=M0t(),Kse=Du(),Xd=St(),C0t=Xd.strRotate,uN=Xd.strTranslate,D0t=($c(),or(Wc));L0t.exports=function(t,r,i,n){var a=t._context.staticPlot,o=r.xaxis,s=r.yaxis,l=t._fullLayout,u=l._clips;Xd.makeTraceGroups(n,i,"trace").each(function(f){var c=fN.select(this),h=f[0],d=h.trace,p=d.aaxis,v=d.baxis,y=Xd.ensureSingle(c,"g","minorlayer"),m=Xd.ensureSingle(c,"g","majorlayer"),w=Xd.ensureSingle(c,"g","boundarylayer"),_=Xd.ensureSingle(c,"g","labellayer");c.style("opacity",d.opacity),xT(o,s,m,p,"a",p._gridlines,!0,a),xT(o,s,m,v,"b",v._gridlines,!0,a),xT(o,s,y,p,"a",p._minorgridlines,!0,a),xT(o,s,y,v,"b",v._minorgridlines,!0,a),xT(o,s,w,p,"a-boundary",p._boundarylines,a),xT(o,s,w,v,"b-boundary",v._boundarylines,a);var b=S0t(t,o,s,d,h,_,p._labels,"a-label"),M=S0t(t,o,s,d,h,_,v._labels,"b-label");P9r(t,_,d,h,o,s,b,M),L9r(d,h,u,o,s)})};function L9r(e,t,r,i,n){var a,o,s,l,u=r.select("#"+e._clipPathId);u.size()||(u=r.append("clipPath").classed("carpetclip",!0));var f=Xd.ensureSingle(u,"path","carpetboundary"),c=t.clipsegments,h=[];for(l=0;l0?"start":"end","data-notex":1}).call(sN.font,c.font).text(c.text).call(Kse.convertToTspans,e),m=sN.bBox(this);y.attr("transform",uN(d.p[0],d.p[1])+C0t(d.angle)+uN(c.axis.labelpadding*v,m.height*.3)),u=Math.max(u,m.width+c.axis.labelpadding)}),l.exit().remove(),f.maxExtent=u,f}function P9r(e,t,r,i,n,a,o,s){var l,u,f,c,h=Xd.aggNums(Math.min,null,r.a),d=Xd.aggNums(Math.max,null,r.a),p=Xd.aggNums(Math.min,null,r.b),v=Xd.aggNums(Math.max,null,r.b);l=.5*(h+d),u=p,f=r.ab2xy(l,u,!0),c=r.dxyda_rough(l,u),o.angle===void 0&&Xd.extendFlat(o,vD(r,n,a,f,r.dxydb_rough(l,u))),E0t(e,t,r,i,f,c,r.aaxis,n,a,o,"a-title"),l=h,u=.5*(p+v),f=r.ab2xy(l,u,!0),c=r.dxydb_rough(l,u),s.angle===void 0&&Xd.extendFlat(s,vD(r,n,a,f,r.dxyda_rough(l,u))),E0t(e,t,r,i,f,c,r.baxis,n,a,s,"b-title")}var F0t=D0t.LINE_SPACING,z9r=(1-D0t.MID_SHIFT)/F0t+1;function E0t(e,t,r,i,n,a,o,s,l,u,f){var c=[];o.title.text&&c.push(o.title.text);var h=t.selectAll("text."+f).data(c),d=u.maxExtent;h.enter().append("text").classed(f,!0),h.each(function(){var p=vD(r,s,l,n,a);["start","both"].indexOf(o.showticklabels)===-1&&(d=0);var v=o.title.font.size;d+=v+o.title.offset;var y=u.angle+(u.flip<0?180:0),m=(y-p.angle+450)%360,w=m>90&&m<270,_=fN.select(this);_.text(o.title.text).call(Kse.convertToTspans,e),w&&(d=(-Kse.lineCount(_)+z9r)*F0t*v-d),_.attr("transform",uN(p.p[0],p.p[1])+C0t(p.angle)+uN(0,d)).attr("text-anchor","middle").call(sN.font,o.title.font)}),h.exit().remove()}});var I0t=K((Uci,z0t)=>{"use strict";var cN=St().isArrayOrTypedArray;z0t.exports=function(e,t,r){var i,n,a,o,s,l,u=[],f=cN(e)?e.length:e,c=cN(t)?t.length:t,h=cN(e)?e:null,d=cN(t)?t:null;h&&(a=(h.length-1)/(h[h.length-1]-h[0])/(f-1)),d&&(o=(d.length-1)/(d[d.length-1]-d[0])/(c-1));var p,v=1/0,y=-1/0;for(n=0;n{"use strict";var R0t=St().isArrayOrTypedArray;q0t.exports=function(e){return B0t(e,0)};function B0t(e,t){if(!R0t(e)||t>=10)return null;for(var r=1/0,i=-1/0,n=e.length,a=0;a{"use strict";var I9r=Cs(),Cx=Os().extendFlat;N0t.exports=function(t,r,i){var n,a,o,s,l,u,f,c,h,d,p,v,y,m,w=t["_"+r],_=t[r+"axis"],b=_._gridlines=[],M=_._minorgridlines=[],x=_._boundarylines=[],T=t["_"+i],A=t[i+"axis"];_.tickmode==="array"&&(_.tickvals=w.slice());var g=t._xctrl,E=t._yctrl,S=g[0].length,C=g.length,k=t._a.length,D=t._b.length;I9r.prepTicks(_),_.tickmode==="array"&&delete _.tickvals;var F=_.smoothing?3:1;function P(L){var z,B,O,W,X,Z,H,q,Q,N,U,J,j=[],$=[],ie={};if(r==="b")for(B=t.b2j(L),O=Math.floor(Math.max(0,Math.min(D-2,B))),W=B-O,ie.length=D,ie.crossLength=k,ie.xy=function(re){return t.evalxy([],re,B)},ie.dxy=function(re,de){return t.dxydi([],re,O,de,W)},z=0;z0&&(Q=t.dxydi([],z-1,O,0,W),j.push(X[0]+Q[0]/3),$.push(X[1]+Q[1]/3),N=t.dxydi([],z-1,O,1,W),j.push(q[0]-N[0]/3),$.push(q[1]-N[1]/3)),j.push(q[0]),$.push(q[1]),X=q;else for(z=t.a2i(L),Z=Math.floor(Math.max(0,Math.min(k-2,z))),H=z-Z,ie.length=k,ie.crossLength=D,ie.xy=function(re){return t.evalxy([],z,re)},ie.dxy=function(re,de){return t.dxydj([],Z,re,H,de)},B=0;B0&&(U=t.dxydj([],Z,B-1,H,0),j.push(X[0]+U[0]/3),$.push(X[1]+U[1]/3),J=t.dxydj([],Z,B-1,H,1),j.push(q[0]-J[0]/3),$.push(q[1]-J[1]/3)),j.push(q[0]),$.push(q[1]),X=q;return ie.axisLetter=r,ie.axis=_,ie.crossAxis=A,ie.value=L,ie.constvar=i,ie.index=c,ie.x=j,ie.y=$,ie.smoothing=A.smoothing,ie}function I(L){var z,B,O,W,X,Z=[],H=[],q={};if(q.length=w.length,q.crossLength=T.length,r==="b")for(O=Math.max(0,Math.min(D-2,L)),X=Math.min(1,Math.max(0,L-O)),q.xy=function(Q){return t.evalxy([],Q,L)},q.dxy=function(Q,N){return t.dxydi([],Q,O,N,X)},z=0;zw.length-1)&&b.push(Cx(I(a),{color:_.gridcolor,width:_.gridwidth,dash:_.griddash}));for(c=u;cw.length-1)&&!(p<0||p>w.length-1))for(v=w[o],y=w[p],n=0;n<_.minorgridcount;n++)m=p-o,!(m<=0)&&(d=v+(y-v)*(n+1)/(_.minorgridcount+1)*(_.arraydtick/m),!(dw[w.length-1])&&M.push(Cx(P(d),{color:_.minorgridcolor,width:_.minorgridwidth,dash:_.minorgriddash})));_.startline&&x.push(Cx(I(0),{color:_.startlinecolor,width:_.startlinewidth})),_.endline&&x.push(Cx(I(w.length-1),{color:_.endlinecolor,width:_.endlinewidth}))}else{for(s=5e-15,l=[Math.floor((w[w.length-1]-_.tick0)/_.dtick*(1+s)),Math.ceil((w[0]-_.tick0)/_.dtick/(1+s))].sort(function(L,z){return L-z}),u=l[0],f=l[1],c=u;c<=f;c++)h=_.tick0+_.dtick*c,b.push(Cx(P(h),{color:_.gridcolor,width:_.gridwidth,dash:_.griddash}));for(c=u-1;cw[w.length-1])&&M.push(Cx(P(d),{color:_.minorgridcolor,width:_.minorgridwidth,dash:_.minorgriddash}));_.startline&&x.push(Cx(P(w[0]),{color:_.startlinecolor,width:_.startlinewidth})),_.endline&&x.push(Cx(P(w[w.length-1]),{color:_.endlinecolor,width:_.endlinewidth}))}}});var j0t=K((jci,H0t)=>{"use strict";var U0t=Cs(),G0t=Os().extendFlat;H0t.exports=function(t,r){var i,n,a,o,s,l=r._labels=[],u=r._gridlines;for(i=0;i{"use strict";W0t.exports=function(t,r,i,n){var a,o,s,l=[],u=!!i.smoothing,f=!!n.smoothing,c=t[0].length-1,h=t.length-1;for(a=0,o=[],s=[];a<=c;a++)o[a]=t[0][a],s[a]=r[0][a];for(l.push({x:o,y:s,bicubic:u}),a=0,o=[],s=[];a<=h;a++)o[a]=t[a][c],s[a]=r[a][c];for(l.push({x:o,y:s,bicubic:f}),a=c,o=[],s=[];a>=0;a--)o[c-a]=t[h][a],s[c-a]=r[h][a];for(l.push({x:o,y:s,bicubic:u}),a=h,o=[],s=[];a>=0;a--)o[h-a]=t[a][0],s[h-a]=r[a][0];return l.push({x:o,y:s,bicubic:f}),l}});var X0t=K(($ci,Y0t)=>{"use strict";var R9r=St();Y0t.exports=function(t,r,i){var n,a,o,s=[],l=[],u=t[0].length,f=t.length;function c(O,W){var X=0,Z,H=0;return O>0&&(Z=t[W][O-1])!==void 0&&(H++,X+=Z),O0&&(Z=t[W-1][O])!==void 0&&(H++,X+=Z),W0&&a0&&nA);return R9r.log("Smoother converged to",g,"after",S,"iterations"),t}});var Z0t={};Fl(Z0t,{RELATIVE_CULL_TOLERANCE:()=>B9r});var B9r,K0t=ps(()=>{"use strict";B9r=1e-6});var edt=K((Yci,Q0t)=>{"use strict";var J0t=.5;Q0t.exports=function(t,r,i,n){var a=t[0]-r[0],o=t[1]-r[1],s=i[0]-r[0],l=i[1]-r[1],u=Math.pow(a*a+o*o,J0t/2),f=Math.pow(s*s+l*l,J0t/2),c=(f*f*a-u*u*s)*n,h=(f*f*o-u*u*l)*n,d=f*(u+f)*3,p=u*(u+f)*3;return[[r[0]+(d&&c/d),r[1]+(d&&h/d)],[r[0]-(p&&c/p),r[1]-(p&&h/p)]]}});var rdt=K((Xci,tdt)=>{"use strict";var Jse=edt(),hN=St().ensureArray;function bT(e,t,r){var i=-.5*r[0]+1.5*t[0],n=-.5*r[1]+1.5*t[1];return[(2*i+e[0])/3,(2*n+e[1])/3]}tdt.exports=function(t,r,i,n,a,o){var s,l,u,f,c,h,d,p,v,y,m=i[0].length,w=i.length,_=a?3*m-2:m,b=o?3*w-2:w;for(t=hN(t,b),r=hN(r,b),u=0;u{"use strict";idt.exports=function(e,t,r,i,n){var a=t-2,o=r-2;return i&&n?function(s,l,u){s||(s=[]);var f,c,h,d,p,v,y=Math.max(0,Math.min(Math.floor(l),a)),m=Math.max(0,Math.min(Math.floor(u),o)),w=Math.max(0,Math.min(1,l-y)),_=Math.max(0,Math.min(1,u-m));y*=3,m*=3;var b=w*w,M=b*w,x=1-w,T=x*x,A=T*x,g=_*_,E=g*_,S=1-_,C=S*S,k=C*S;for(v=0;v{"use strict";adt.exports=function(e,t,r){return t&&r?function(i,n,a,o,s){i||(i=[]);var l,u,f,c,h,d;n*=3,a*=3;var p=o*o,v=1-o,y=v*v,m=v*o*2,w=-3*y,_=3*(y-m),b=3*(m-p),M=3*p,x=s*s,T=x*s,A=1-s,g=A*A,E=g*A;for(d=0;d{"use strict";sdt.exports=function(e,t,r){return t&&r?function(i,n,a,o,s){i||(i=[]);var l,u,f,c,h,d;n*=3,a*=3;var p=o*o,v=p*o,y=1-o,m=y*y,w=m*y,_=s*s,b=1-s,M=b*b,x=b*s*2,T=-3*M,A=3*(M-x),g=3*(x-_),E=3*_;for(d=0;d{"use strict";var udt=(K0t(),or(Z0t)),fdt=SF().findBin,q9r=rdt(),O9r=ndt(),N9r=odt(),V9r=ldt();cdt.exports=function(t){var r=t._a,i=t._b,n=r.length,a=i.length,o=t.aaxis,s=t.baxis,l=r[0],u=r[n-1],f=i[0],c=i[a-1],h=r[r.length-1]-r[0],d=i[i.length-1]-i[0],p=h*udt.RELATIVE_CULL_TOLERANCE,v=d*udt.RELATIVE_CULL_TOLERANCE;l-=p,u+=p,f-=v,c+=v,t.isVisible=function(y,m){return y>l&&yf&&mu||mc},t.setScale=function(){var y=t._x,m=t._y,w=q9r(t._xctrl,t._yctrl,y,m,o.smoothing,s.smoothing);t._xctrl=w[0],t._yctrl=w[1],t.evalxy=O9r([t._xctrl,t._yctrl],n,a,o.smoothing,s.smoothing),t.dxydi=N9r([t._xctrl,t._yctrl],o.smoothing,s.smoothing),t.dxydj=V9r([t._xctrl,t._yctrl],o.smoothing,s.smoothing)},t.i2a=function(y){var m=Math.max(0,Math.floor(y[0]),n-2),w=y[0]-m;return(1-w)*r[m]+w*r[m+1]},t.j2b=function(y){var m=Math.max(0,Math.floor(y[1]),n-2),w=y[1]-m;return(1-w)*i[m]+w*i[m+1]},t.ij2ab=function(y){return[t.i2a(y[0]),t.j2b(y[1])]},t.a2i=function(y){var m=Math.max(0,Math.min(fdt(y,r),n-2)),w=r[m],_=r[m+1];return Math.max(0,Math.min(n-1,m+(y-w)/(_-w)))},t.b2j=function(y){var m=Math.max(0,Math.min(fdt(y,i),a-2)),w=i[m],_=i[m+1];return Math.max(0,Math.min(a-1,m+(y-w)/(_-w)))},t.ab2ij=function(y){return[t.a2i(y[0]),t.b2j(y[1])]},t.i2c=function(y,m){return t.evalxy([],y,m)},t.ab2xy=function(y,m,w){if(!w&&(yr[n-1]|mi[a-1]))return[!1,!1];var _=t.a2i(y),b=t.b2j(m),M=t.evalxy([],_,b);if(w){var x=0,T=0,A=[],g,E,S,C;yr[n-1]?(g=n-2,E=1,x=(y-r[n-1])/(r[n-1]-r[n-2])):(g=Math.max(0,Math.min(n-2,Math.floor(_))),E=_-g),mi[a-1]?(S=a-2,C=1,T=(m-i[a-1])/(i[a-1]-i[a-2])):(S=Math.max(0,Math.min(a-2,Math.floor(b))),C=b-S),x&&(t.dxydi(A,g,S,E,C),M[0]+=A[0]*x,M[1]+=A[1]*x),T&&(t.dxydj(A,g,S,E,C),M[0]+=A[0]*T,M[1]+=A[1]*T)}return M},t.c2p=function(y,m,w){return[m.c2p(y[0]),w.c2p(y[1])]},t.p2x=function(y,m,w){return[m.p2c(y[0]),w.p2c(y[1])]},t.dadi=function(y){var m=Math.max(0,Math.min(r.length-2,y));return r[m+1]-r[m]},t.dbdj=function(y){var m=Math.max(0,Math.min(i.length-2,y));return i[m+1]-i[m]},t.dxyda=function(y,m,w,_){var b=t.dxydi(null,y,m,w,_),M=t.dadi(y,w);return[b[0]/M,b[1]/M]},t.dxydb=function(y,m,w,_){var b=t.dxydj(null,y,m,w,_),M=t.dbdj(m,_);return[b[0]/M,b[1]/M]},t.dxyda_rough=function(y,m,w){var _=h*(w||.1),b=t.ab2xy(y+_,m,!0),M=t.ab2xy(y-_,m,!0);return[(b[0]-M[0])*.5/_,(b[1]-M[1])*.5/_]},t.dxydb_rough=function(y,m,w){var _=d*(w||.1),b=t.ab2xy(y,m+_,!0),M=t.ab2xy(y,m-_,!0);return[(b[0]-M[0])*.5/_,(b[1]-M[1])*.5/_]},t.dpdx=function(y){return y._m},t.dpdy=function(y){return y._m}}});var bdt=K((ehi,xdt)=>{"use strict";var dN=Cs(),ddt=St().isArray1D,U9r=I0t(),pdt=O0t(),vdt=V0t(),mdt=j0t(),G9r=$0t(),ydt=i8(),gdt=X0t(),H9r=t8(),j9r=hdt();xdt.exports=function(t,r){var i=dN.getFromId(t,r.xaxis),n=dN.getFromId(t,r.yaxis),a=r.aaxis,o=r.baxis,s=r.x,l=r.y,u=[];s&&ddt(s)&&u.push("x"),l&&ddt(l)&&u.push("y"),u.length&&H9r(r,a,o,"a","b",u);var f=r._a=r._a||r.a,c=r._b=r._b||r.b;s=r._x||r.x,l=r._y||r.y;var h={};if(r._cheater){var d=a.cheatertype==="index"?f.length:f,p=o.cheatertype==="index"?c.length:c;s=U9r(d,p,r.cheaterslope)}r._x=s=ydt(s),r._y=l=ydt(l),gdt(s,f,c),gdt(l,f,c),j9r(r),r.setScale();var v=pdt(s),y=pdt(l),m=.5*(v[1]-v[0]),w=.5*(v[1]+v[0]),_=.5*(y[1]-y[0]),b=.5*(y[1]+y[0]),M=1.3;return v=[w-m*M,w+m*M],y=[b-_*M,b+_*M],r._extremes[i._id]=dN.findExtremes(i,v,{padded:!0}),r._extremes[n._id]=dN.findExtremes(n,y,{padded:!0}),vdt(r,"a","b"),vdt(r,"b","a"),mdt(r,a),mdt(r,o),h.clipsegments=G9r(r._xctrl,r._yctrl,a,o),h.x=s,h.y=l,h.a=f,h.b=c,[h]}});var wdt=K((thi,_dt)=>{"use strict";_dt.exports={attributes:oN(),supplyDefaults:_0t(),plot:P0t(),calc:bdt(),animatable:!0,isContainer:!0,moduleType:"trace",name:"carpet",basePlotModule:gc(),categories:["cartesian","svg","carpet","carpetAxis","notLegendIsolatable","noMultiCategory","noHover","noSortingByValue"],meta:{}}});var Tdt=K((rhi,Adt)=>{"use strict";Adt.exports=wdt()});var Qse=K((ihi,kdt)=>{"use strict";var W9r=sm(),kp=Qf(),$9r=Tu(),{hovertemplateAttrs:Y9r,texttemplateAttrs:X9r,templatefallbackAttrs:Mdt}=gu(),Sdt=Wu(),Dx=Os().extendFlat,Iv=kp.marker,_T=kp.line,Edt=Iv.line;kdt.exports={carpet:{valType:"string",editType:"calc"},a:{valType:"data_array",editType:"calc"},b:{valType:"data_array",editType:"calc"},mode:Dx({},kp.mode,{dflt:"markers"}),text:Dx({},kp.text,{}),texttemplate:X9r({editType:"plot"},{keys:["a","b","text"]}),texttemplatefallback:Mdt({editType:"plot"}),hovertext:Dx({},kp.hovertext,{}),line:{color:_T.color,width:_T.width,dash:_T.dash,backoff:_T.backoff,shape:Dx({},_T.shape,{values:["linear","spline"]}),smoothing:_T.smoothing,editType:"calc"},connectgaps:kp.connectgaps,fill:Dx({},kp.fill,{values:["none","toself","tonext"],dflt:"none"}),fillcolor:W9r(),marker:Dx({symbol:Iv.symbol,opacity:Iv.opacity,maxdisplayed:Iv.maxdisplayed,angle:Iv.angle,angleref:Iv.angleref,standoff:Iv.standoff,size:Iv.size,sizeref:Iv.sizeref,sizemin:Iv.sizemin,sizemode:Iv.sizemode,line:Dx({width:Edt.width,dash:Edt.dash,editType:"calc"},Sdt("marker.line")),gradient:Iv.gradient,editType:"calc"},Sdt("marker")),textfont:kp.textfont,textposition:kp.textposition,selected:kp.selected,unselected:kp.unselected,hoverinfo:Dx({},$9r.hoverinfo,{flags:["a","b","text","name"]}),hoveron:kp.hoveron,hovertemplate:Y9r(),hovertemplatefallback:Mdt(),zorder:kp.zorder}});var Ldt=K((nhi,Fdt)=>{"use strict";var Cdt=St(),Z9r=(om(),or(am)),wT=ff(),K9r=Xp(),J9r=Qv(),Ddt=Qw(),Q9r=e1(),e8r=um(),t8r=Qse();Fdt.exports=function(t,r,i,n){function a(h,d){return Cdt.coerce(t,r,t8r,h,d)}a("carpet"),r.xaxis="x",r.yaxis="y";var o=a("a"),s=a("b"),l=Math.min(o.length,s.length);if(!l){r.visible=!1;return}r._length=l,a("text"),a("texttemplate"),a("texttemplatefallback"),a("hovertext");var u=l{"use strict";Pdt.exports=function(t,r){var i={},n=r._carpet,a=n.ab2ij([t.a,t.b]),o=Math.floor(a[0]),s=a[0]-o,l=Math.floor(a[1]),u=a[1]-l,f=n.evalxy([],o,l,s,u);return i.yLabel=f[1].toFixed(3),i}});var pN=K((ohi,Idt)=>{"use strict";Idt.exports=function(e,t){for(var r=e._fullData.length,i,n=0;n{"use strict";var Rdt=Hs(),r8r=Zp(),i8r=fm(),n8r=op(),a8r=Kp().calcMarkerSize,o8r=pN();Bdt.exports=function(t,r){var i=r._carpetTrace=o8r(t,r);if(!(!i||!i.visible||i.visible==="legendonly")){var n;r.xaxis=i.xaxis,r.yaxis=i.yaxis;var a=r._length,o=new Array(a),s,l,u=!1;for(n=0;n{"use strict";var s8r=aA(),Odt=Cs(),l8r=Is();Ndt.exports=function(t,r,i,n){var a,o,s,l=i[0][0].carpet,u=Odt.getFromId(t,l.xaxis||"x"),f=Odt.getFromId(t,l.yaxis||"y"),c={xaxis:u,yaxis:f,plot:r.plot};for(a=0;a{"use strict";var u8r=uA(),f8r=St().fillText;Udt.exports=function(t,r,i,n){var a=u8r(t,r,i,n);if(!a||a[0].index===!1)return;var o=a[0];if(o.index===void 0){var s=1-o.y0/t.ya._length,l=t.xa._length,u=l*s/2,f=l-u;return o.x0=Math.max(Math.min(o.x0,f),u),o.x1=Math.max(Math.min(o.x1,f),u),a}var c=o.cd[o.index];o.a=c.a,o.b=c.b,o.xLabelVal=void 0,o.yLabelVal=void 0;var h=o.trace,d=h._carpet,p=h._module.formatLabels(c,h);o.yLabel=p.yLabel,delete o.text;var v=[];function y(_,b){var M;_.labelprefix&&_.labelprefix.length>0?M=_.labelprefix.replace(/ = $/,""):M=_._hovertitle,v.push(M+": "+b.toFixed(3)+_.labelsuffix)}if(!h.hovertemplate){var m=c.hi||h.hoverinfo,w=m.split("+");w.indexOf("all")!==-1&&(w=["a","b","text"]),w.indexOf("a")!==-1&&y(d.aaxis,c.a),w.indexOf("b")!==-1&&y(d.baxis,c.b),v.push("y: "+o.yLabel),w.indexOf("text")!==-1&&f8r(c,h,v),o.extraText=v.join("
")}return a}});var jdt=K((fhi,Hdt)=>{"use strict";Hdt.exports=function(t,r,i,n,a){var o=n[a];return t.a=o.a,t.b=o.b,t.y=o.y,t}});var $dt=K((chi,Wdt)=>{"use strict";Wdt.exports={attributes:Qse(),supplyDefaults:Ldt(),colorbar:e0(),formatLabels:zdt(),calc:qdt(),plot:Vdt(),style:hd().style,styleOnSelect:hd().styleOnSelect,hoverPoints:Gdt(),selectPoints:Rb(),eventData:jdt(),moduleType:"trace",name:"scattercarpet",basePlotModule:gc(),categories:["svg","carpet","symbols","showLegend","carpetDependent","zoomScale"],meta:{}}});var Xdt=K((hhi,Ydt)=>{"use strict";Ydt.exports=$dt()});var ele=K((dhi,Zdt)=>{"use strict";var Rv=EA(),pg=oS(),c8r=Wu(),h8r=Os().extendFlat,Xm=pg.contours;Zdt.exports=h8r({carpet:{valType:"string",editType:"calc"},z:Rv.z,a:Rv.x,a0:Rv.x0,da:Rv.dx,b:Rv.y,b0:Rv.y0,db:Rv.dy,text:Rv.text,hovertext:Rv.hovertext,transpose:Rv.transpose,atype:Rv.xtype,btype:Rv.ytype,fillcolor:pg.fillcolor,autocontour:pg.autocontour,ncontours:pg.ncontours,contours:{type:Xm.type,start:Xm.start,end:Xm.end,size:Xm.size,coloring:{valType:"enumerated",values:["fill","lines","none"],dflt:"fill",editType:"calc"},showlines:Xm.showlines,showlabels:Xm.showlabels,labelfont:Xm.labelfont,labelformat:Xm.labelformat,operation:Xm.operation,value:Xm.value,editType:"calc",impliedEdits:{autocontour:!1}},line:{color:pg.line.color,width:pg.line.width,dash:pg.line.dash,smoothing:pg.line.smoothing,editType:"plot"},zorder:pg.zorder},c8r("",{cLetter:"z",autoColorDflt:!1}))});var tle=K((phi,Qdt)=>{"use strict";var Kdt=St(),d8r=J9(),Jdt=ele(),p8r=eX(),v8r=A8(),m8r=T8();Qdt.exports=function(t,r,i,n){function a(u,f){return Kdt.coerce(t,r,Jdt,u,f)}function o(u){return Kdt.coerce2(t,r,Jdt,u)}if(a("carpet"),t.a&&t.b){var s=d8r(t,r,a,n,"a","b");if(!s){r.visible=!1;return}a("text");var l=a("contours.type")==="constraint";l?p8r(t,r,a,n,i,{hasHover:!1}):(v8r(t,r,a,o),m8r(t,r,a,n,{hasHover:!1}))}else r._defaultColor=i,r._length=null;a("zorder")}});var ipt=K((vhi,rpt)=>{"use strict";var y8r=T0(),ept=St(),g8r=t8(),x8r=i8(),b8r=n8(),_8r=a8(),tpt=AY(),w8r=tle(),A8r=pN(),T8r=UY();rpt.exports=function(t,r){var i=r._carpetTrace=A8r(t,r);if(!(!i||!i.visible||i.visible==="legendonly")){if(!r.a||!r.b){var n=t.data[i.index],a=t.data[r.index];a.a||(a.a=n.a),a.b||(a.b=n.b),w8r(a,r,r._defaultColor,t._fullLayout)}var o=M8r(t,r);return T8r(r,r._z),o}};function M8r(e,t){var r=t._carpetTrace,i=r.aaxis,n=r.baxis,a,o,s,l,u,f,c;i._minDtick=0,n._minDtick=0,ept.isArray1D(t.z)&&g8r(t,i,n,"a","b",["z"]),a=t._a=t._a||t.a,l=t._b=t._b||t.b,a=a?i.makeCalcdata(t,"_a"):[],l=l?n.makeCalcdata(t,"_b"):[],o=t.a0||0,s=t.da||1,u=t.b0||0,f=t.db||1,c=t._z=x8r(t._z||t.z,t.transpose),t._emptypoints=_8r(c),b8r(c,t._emptypoints);var h=ept.maxRowLength(c),d=t.xtype==="scaled"?"":a,p=tpt(t,d,o,s,h,i),v=t.ytype==="scaled"?"":l,y=tpt(t,v,u,f,c.length,n),m={a:p,b:y,z:c};return t.contours.type==="levels"&&t.contours.coloring!=="none"&&y8r(e,t,{vals:c,containerStr:"",cLetter:"z"}),[m]}});var apt=K((mhi,npt)=>{"use strict";var S8r=St().isArrayOrTypedArray;npt.exports=function(e,t,r,i){var n,a,o,s,l,u,f,c,h,d,p,v,y,m=S8r(r)?"a":"b",w=m==="a"?e.aaxis:e.baxis,_=w.smoothing,b=m==="a"?e.a2i:e.b2j,M=m==="a"?r:i,x=m==="a"?i:r,T=m==="a"?t.a.length:t.b.length,A=m==="a"?t.b.length:t.a.length,g=Math.floor(m==="a"?e.b2j(x):e.a2i(x)),E=m==="a"?function(W){return e.evalxy([],W,g)}:function(W){return e.evalxy([],g,W)};_&&(o=Math.max(0,Math.min(A-2,g)),s=g-o,a=m==="a"?function(W,X){return e.dxydi([],W,o,X,s)}:function(W,X){return e.dxydj([],o,W,s,X)});var S=b(M[0]),C=b(M[1]),k=S0?Math.floor:Math.ceil,P=k>0?Math.ceil:Math.floor,I=k>0?Math.min:Math.max,L=k>0?Math.max:Math.min,z=F(S+D),B=P(C-D);f=E(S);var O=[[f]];for(n=z;n*k{"use strict";var mN=No(),yN=Xse(),fpt=Zse(),mD=Is(),vg=St(),E8r=HY(),k8r=jY(),B3=E8(),vN=(uS(),or(lS)),C8r=XY(),D8r=YY(),F8r=ZY(),L8r=pN(),opt=apt();cpt.exports=function(t,r,i,n){var a=r.xaxis,o=r.yaxis;vg.makeTraceGroups(n,i,"contour").each(function(s){var l=mN.select(this),u=s[0],f=u.trace,c=f._carpetTrace=L8r(t,f),h=t.calcdata[c.index][0];if(!c.visible||c.visible==="legendonly")return;var d=u.a,p=u.b,v=f.contours,y=D8r(v,r,u),m=v.type==="constraint",w=v._operation,_=m?w==="="?"lines":"fill":v.coloring;function b(F){var P=c.ab2xy(F[0],F[1],!0);return[a.c2p(P[0]),o.c2p(P[1])]}var M=[[d[0],p[p.length-1]],[d[d.length-1],p[p.length-1]],[d[d.length-1],p[0]],[d[0],p[0]]];E8r(y);var x=(d[d.length-1]-d[0])*1e-8,T=(p[p.length-1]-p[0])*1e-8;k8r(y,x,T);var A=y;v.type==="constraint"&&(A=C8r(y,w)),P8r(y,b);var g,E,S,C,k=[];for(C=h.clipsegments.length-1;C>=0;C--)g=h.clipsegments[C],E=yN([],g.x,a.c2p),S=yN([],g.y,o.c2p),E.reverse(),S.reverse(),k.push(fpt(E,S,g.bicubic));var D="M"+k.join("L")+"Z";R8r(l,h.clipsegments,a,o,m,_),B8r(f,l,a,o,A,M,b,c,h,_,D),z8r(l,y,t,u,v,r,c),mD.setClipUrl(l,c._clipPathId,t)})};function P8r(e,t){var r,i,n,a,o,s,l,u,f;for(r=0;ry&&(i.max=y),i.len=i.max-i.min}function spt(e,t,r){var i=e.getPointAtLength(t),n=e.getPointAtLength(r),a=n.x-i.x,o=n.y-i.y,s=Math.sqrt(a*a+o*o);return[a/s,o/s]}function lpt(e){var t=Math.sqrt(e[0]*e[0]+e[1]*e[1]);return[e[0]/t,e[1]/t]}function upt(e,t){var r=Math.abs(e[0]*t[0]+e[1]*t[1]),i=Math.sqrt(1-r*r);return i/r}function R8r(e,t,r,i,n,a){var o,s,l,u,f=vg.ensureSingle(e,"g","contourbg"),c=f.selectAll("path").data(a==="fill"&&!n?[0]:[]);c.enter().append("path"),c.exit().remove();var h=[];for(u=0;u=0&&(d=E,v=y):Math.abs(h[1]-d[1])<_?Math.abs(h[1]-E[1])<_&&(E[0]-h[0])*(d[0]-E[0])>=0&&(d=E,v=y):vg.log("endpt to newendpt is not vert. or horz.",h,d,E)}if(v>=0)break;u+=A(h,d),h=d}if(v===t.edgepaths.length){vg.log("unclosed perimeter path");break}l=v,c=f.indexOf(l)===-1,c&&(l=f[0],u+=A(h,d)+"Z",h=null)}for(l=0;l{"use strict";dpt.exports={attributes:ele(),supplyDefaults:tle(),colorbar:D8(),calc:ipt(),plot:hpt(),style:C8(),moduleType:"trace",name:"contourcarpet",basePlotModule:gc(),categories:["cartesian","svg","carpet","contour","symbols","showLegend","hasLines","carpetDependent","noHover","noSortingByValue"],meta:{}}});var mpt=K((xhi,vpt)=>{"use strict";vpt.exports=ppt()});var xN=K((bhi,_pt)=>{"use strict";var gN=St().extendFlat,yD=Qf(),ypt=zf().axisHoverFormat,{hovertemplateAttrs:O8r,templatefallbackAttrs:N8r}=gu(),xpt=gh().dash,V8r=rw(),bpt=(HA(),or(GA)),U8r=bpt.INCREASING.COLOR,G8r=bpt.DECREASING.COLOR,rle=yD.line;function gpt(e){return{line:{color:gN({},rle.color,{dflt:e}),width:rle.width,dash:xpt,editType:"style"},editType:"style"}}_pt.exports={xperiod:yD.xperiod,xperiod0:yD.xperiod0,xperiodalignment:yD.xperiodalignment,xhoverformat:ypt("x"),yhoverformat:ypt("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:gN({},rle.width,{}),dash:gN({},xpt,{}),editType:"style"},increasing:gpt(U8r),decreasing:gpt(G8r),text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertemplate:O8r({},{keys:["open","high","low","close"]}),hovertemplatefallback:N8r(),tickwidth:{valType:"number",min:0,max:.5,dflt:.3,editType:"calc"},hoverlabel:gN({},V8r.hoverlabel,{split:{valType:"boolean",dflt:!1,editType:"style"}}),zorder:yD.zorder}});var ile=K((_hi,wpt)=>{"use strict";var H8r=Ho(),j8r=St();wpt.exports=function(t,r,i,n){var a=i("x"),o=i("open"),s=i("high"),l=i("low"),u=i("close");i("hoverlabel.split");var f=H8r.getComponentMethod("calendars","handleTraceDefaults");if(f(t,r,["x"],n),!!(o&&s&&l&&u)){var c=Math.min(o.length,s.length,l.length,u.length);return a&&(c=Math.min(c,j8r.minRowLength(a))),r._length=c,c}}});var Mpt=K((whi,Tpt)=>{"use strict";var W8r=St(),$8r=ile(),Y8r=Jv(),X8r=xN();Tpt.exports=function(t,r,i,n){function a(s,l){return W8r.coerce(t,r,X8r,s,l)}var o=$8r(t,r,a,n);if(!o){r.visible=!1;return}Y8r(t,r,n,a,{x:!0}),a("xhoverformat"),a("yhoverformat"),a("line.width"),a("line.dash"),Apt(t,r,a,"increasing"),Apt(t,r,a,"decreasing"),a("text"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback"),a("tickwidth"),n._requestRangeslider[r.xaxis]=!0,a("zorder")};function Apt(e,t,r,i){r(i+".line.color"),r(i+".line.width",t.line.width),r(i+".line.dash",t.line.dash)}});var nle=K((Ahi,Ept)=>{"use strict";var AT=St(),bN=AT._,_N=Cs(),Z8r=t1(),gD=(Il(),or(Bl)).BADNUM;function K8r(e,t){var r=_N.getFromId(e,t.xaxis),i=_N.getFromId(e,t.yaxis),n=Q8r(e,r,t),a=t._minDiff;t._minDiff=null;var o=t._origX;t._origX=null;var s=t._xcalc;t._xcalc=null;var l=Spt(e,t,o,s,i,J8r);return t._extremes[r._id]=_N.findExtremes(r,s,{vpad:a/2}),l.length?(AT.extendFlat(l[0].t,{wHover:a/2,tickLen:n}),l):[{t:{empty:!0}}]}function J8r(e,t,r,i){return{o:e,h:t,l:r,c:i}}function Spt(e,t,r,i,n,a){for(var o=n.makeCalcdata(t,"open"),s=n.makeCalcdata(t,"high"),l=n.makeCalcdata(t,"low"),u=n.makeCalcdata(t,"close"),f=AT.isArrayOrTypedArray(t.text),c=AT.isArrayOrTypedArray(t.hovertext),h=!0,d=null,p=!!t.xperiodalignment,v=[],y=0;yd):h=M>w,d=M;var x=a(w,_,b,M);x.pos=m,x.yc=(w+M)/2,x.i=y,x.dir=h?"increasing":"decreasing",x.x=x.pos,x.y=[b,_],p&&(x.orig_p=r[y]),f&&(x.tx=t.text[y]),c&&(x.htx=t.hovertext[y]),v.push(x)}else v.push({pos:m,empty:!0})}return t._extremes[n._id]=_N.findExtremes(n,AT.concat(l,s),{padded:!0}),v.length&&(v[0].t={labels:{open:bN(e,"open:")+" ",high:bN(e,"high:")+" ",low:bN(e,"low:")+" ",close:bN(e,"close:")+" "}}),v}function Q8r(e,t,r){var i=r._minDiff;if(!i){var n=e._fullData,a=[];i=1/0;var o;for(o=0;o{"use strict";var ezr=No(),kpt=St();Cpt.exports=function(t,r,i,n){var a=r.yaxis,o=r.xaxis,s=!!o.rangebreaks;kpt.makeTraceGroups(n,i,"trace ohlc").each(function(l){var u=ezr.select(this),f=l[0],c=f.t,h=f.trace;if(h.visible!==!0||c.empty){u.remove();return}var d=c.tickLen,p=u.selectAll("path").data(kpt.identity);p.enter().append("path"),p.exit().remove(),p.attr("d",function(v){if(v.empty)return"M0,0Z";var y=o.c2p(v.pos-d,!0),m=o.c2p(v.pos+d,!0),w=s?(y+m)/2:o.c2p(v.pos,!0),_=a.c2p(v.o,!0),b=a.c2p(v.h,!0),M=a.c2p(v.l,!0),x=a.c2p(v.c,!0);return"M"+y+","+_+"H"+w+"M"+w+","+b+"V"+M+"M"+m+","+x+"H"+w})})}});var Lpt=K((Mhi,Fpt)=>{"use strict";var ale=No(),tzr=Is(),rzr=wo();Fpt.exports=function(t,r,i){var n=i||ale.select(t).selectAll("g.ohlclayer").selectAll("g.trace");n.style("opacity",function(a){return a[0].trace.opacity}),n.each(function(a){var o=a[0].trace;ale.select(this).selectAll("path").each(function(s){if(!s.empty){var l=o[s.dir].line;ale.select(this).style("fill","none").call(rzr.stroke,l.color).call(tzr.dashLine,l.dash,l.width).style("opacity",o.selectedpoints&&!s.selected?.3:1)}})})}});var sle=K((Shi,Bpt)=>{"use strict";var ole=Cs(),izr=St(),wN=Gf(),nzr=wo(),azr=St().fillText,Ppt=(HA(),or(GA)),ozr={increasing:Ppt.INCREASING.SYMBOL,decreasing:Ppt.DECREASING.SYMBOL};function szr(e,t,r,i){var n=e.cd,a=n[0].trace;return a.hoverlabel.split?Ipt(e,t,r,i):Rpt(e,t,r,i)}function zpt(e,t,r,i){var n=e.cd,a=e.xa,o=n[0].trace,s=n[0].t,l=o.type,u=l==="ohlc"?"l":"min",f=l==="ohlc"?"h":"max",c,h,d=s.bPos||0,p=function(E){return E.pos+d-t},v=s.bdPos||s.tickLen,y=s.wHover,m=Math.min(1,v/Math.abs(a.r2c(a.range[1])-a.r2c(a.range[0])));c=e.maxHoverDistance-m,h=e.maxSpikeDistance-m;function w(E){var S=p(E);return wN.inbox(S-y,S+y,c)}function _(E){var S=E[u],C=E[f];return S===C||wN.inbox(S-r,C-r,c)}function b(E){return(w(E)+_(E))/2}var M=wN.getDistanceFunction(i,w,_,b);if(wN.getClosest(n,M,e),e.index===!1)return null;var x=n[e.index];if(x.empty)return null;var T=x.dir,A=o[T],g=A.line.color;return nzr.opacity(g)&&A.line.width?e.color=g:e.color=A.fillcolor,e.x0=a.c2p(x.pos+d-v,!0),e.x1=a.c2p(x.pos+d+v,!0),e.xLabelVal=x.orig_p!==void 0?x.orig_p:x.pos,e.spikeDistance=b(x)*h/c,e.xSpike=a.c2p(x.pos,!0),e}function Ipt(e,t,r,i){var n=e.cd,a=e.ya,o=n[0].trace,s=n[0].t,l=[],u=zpt(e,t,r,i);if(!u)return[];var f=n[u.index],c=f.hi||o.hoverinfo||"";if(c==="none"||c==="skip")return[];for(var h=["high","open","close","low"],d={},p=0;p"+s.labels[v]+ole.hoverLabelText(a,y,o.yhoverformat)):(w=izr.extendFlat({},u),w.y0=w.y1=m,w.yLabelVal=y,w.yLabel=s.labels[v]+ole.hoverLabelText(a,y,o.yhoverformat),w.name="",l.push(w),d[y]=w)}return l}function Rpt(e,t,r,i){var n=e.cd,a=e.ya,o=n[0].trace,s=n[0].t,l=zpt(e,t,r,i);if(!l)return[];var u=l.index,f=n[u],c=l.index=f.i,h=f.dir;function d(b){return s.labels[b]+ole.hoverLabelText(a,o[b][c],o.yhoverformat)}var p=f.hi||o.hoverinfo||"",v=p.split("+"),y=p==="all",m=y||v.indexOf("y")!==-1,w=y||v.indexOf("text")!==-1,_=m?[d("open"),d("high"),d("low"),d("close")+" "+ozr[h]]:[];return w&&azr(f,o,_),l.extraText=_.join("
"),l.y0=l.y1=a.c2p(f.yc,!0),[l]}Bpt.exports={hoverPoints:szr,hoverSplit:Ipt,hoverOnPoints:Rpt}});var lle=K((Ehi,qpt)=>{"use strict";qpt.exports=function(t,r){var i=t.cd,n=t.xaxis,a=t.yaxis,o=[],s,l=i[0].t.bPos||0;if(r===!1)for(s=0;s{"use strict";Opt.exports={moduleType:"trace",name:"ohlc",basePlotModule:gc(),categories:["cartesian","svg","showLegend"],meta:{},attributes:xN(),supplyDefaults:Mpt(),calc:nle().calc,plot:Dpt(),style:Lpt(),hoverPoints:sle().hoverPoints,selectPoints:lle()}});var Upt=K((Chi,Vpt)=>{"use strict";Vpt.exports=Npt()});var fle=K((Dhi,jpt)=>{"use strict";var ule=St().extendFlat,Gpt=zf().axisHoverFormat,Ad=xN(),TT=KM();function Hpt(e){return{line:{color:ule({},TT.line.color,{dflt:e}),width:TT.line.width,editType:"style"},fillcolor:TT.fillcolor,editType:"style"}}jpt.exports={xperiod:Ad.xperiod,xperiod0:Ad.xperiod0,xperiodalignment:Ad.xperiodalignment,xhoverformat:Gpt("x"),yhoverformat:Gpt("y"),x:Ad.x,open:Ad.open,high:Ad.high,low:Ad.low,close:Ad.close,line:{width:ule({},TT.line.width,{}),editType:"style"},increasing:Hpt(Ad.increasing.line.color.dflt),decreasing:Hpt(Ad.decreasing.line.color.dflt),text:Ad.text,hovertext:Ad.hovertext,hovertemplate:Ad.hovertemplate,hovertemplatefallback:Ad.hovertemplatefallback,whiskerwidth:ule({},TT.whiskerwidth,{dflt:0}),hoverlabel:Ad.hoverlabel,zorder:TT.zorder}});var Ypt=K((Fhi,$pt)=>{"use strict";var lzr=St(),uzr=wo(),fzr=ile(),czr=Jv(),hzr=fle();$pt.exports=function(t,r,i,n){function a(s,l){return lzr.coerce(t,r,hzr,s,l)}var o=fzr(t,r,a,n);if(!o){r.visible=!1;return}czr(t,r,n,a,{x:!0}),a("xhoverformat"),a("yhoverformat"),a("line.width"),Wpt(t,r,a,"increasing"),Wpt(t,r,a,"decreasing"),a("text"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback"),a("whiskerwidth"),n._requestRangeslider[r.xaxis]=!0,a("zorder")};function Wpt(e,t,r,i){var n=r(i+".line.color");r(i+".line.width",t.line.width),r(i+".fillcolor",uzr.addOpacity(n,.5))}});var Jpt=K((Lhi,Kpt)=>{"use strict";var Xpt=St(),Zpt=Cs(),dzr=t1(),pzr=nle().calcCommon;Kpt.exports=function(e,t){var r=e._fullLayout,i=Zpt.getFromId(e,t.xaxis),n=Zpt.getFromId(e,t.yaxis),a=i.makeCalcdata(t,"x"),o=dzr(t,i,"x",a).vals,s=pzr(e,t,a,o,n,vzr);return s.length?(Xpt.extendFlat(s[0].t,{num:r._numBoxes,dPos:Xpt.distinctVals(o).minDiff/2,posLetter:"x",valLetter:"y"}),r._numBoxes++,s):[{t:{empty:!0}}]};function vzr(e,t,r,i){return{min:r,q1:Math.min(e,i),med:i,q3:Math.max(e,i),max:t}}});var evt=K((Phi,Qpt)=>{"use strict";Qpt.exports={moduleType:"trace",name:"candlestick",basePlotModule:gc(),categories:["cartesian","svg","showLegend","candlestick","boxLayout"],meta:{},attributes:fle(),layoutAttributes:JM(),supplyLayoutDefaults:W9().supplyLayoutDefaults,crossTraceCalc:Y9().crossTraceCalc,supplyDefaults:Ypt(),calc:Jpt(),plot:X9().plot,layerName:"boxlayer",style:Z9().style,hoverPoints:sle().hoverPoints,selectPoints:lle()}});var rvt=K((zhi,tvt)=>{"use strict";tvt.exports=evt()});var hle=K((Ihi,ivt)=>{"use strict";var TN=St(),mzr=$1(),AN=TN.deg2rad,cle=TN.rad2deg;ivt.exports=function(t,r,i){switch(mzr(t,i),t._id){case"x":case"radialaxis":yzr(t,r);break;case"angularaxis":bzr(t,r);break}};function yzr(e,t){var r=t._subplot;e.setGeometry=function(){var i=e._rl[0],n=e._rl[1],a=r.innerRadius,o=(r.radius-a)/(n-i),s=a/o,l=i>n?function(u){return u<=0}:function(u){return u>=0};e.c2g=function(u){var f=e.c2l(u)-i;return(l(f)?f:0)+s},e.g2c=function(u){return e.l2c(u+i-s)},e.g2p=function(u){return u*o},e.c2p=function(u){return e.g2p(e.c2g(u))}}}function gzr(e,t){return t==="degrees"?AN(e):e}function xzr(e,t){return t==="degrees"?cle(e):e}function bzr(e,t){var r=e.type;if(r==="linear"){var i=e.d2c,n=e.c2d;e.d2c=function(a,o){return gzr(i(a),o)},e.c2d=function(a,o){return n(xzr(a,o))}}e.makeCalcdata=function(a,o){var s=a[o],l=a._length,u,f,c=function(y){return e.d2c(y,a.thetaunit)};if(s)for(u=new Array(l),f=0;fDzr,MINZOOM:()=>Fzr,OFFEDGE:()=>Lzr,angularDragBoxSize:()=>Ezr,attr:()=>_zr,axisName2dataArray:()=>Tzr,axisNames:()=>Azr,cornerHalfWidth:()=>Czr,cornerLen:()=>kzr,layerNames:()=>Mzr,name:()=>wzr,radialDragBoxSize:()=>Szr});var _zr,wzr,Azr,Tzr,Mzr,Szr,Ezr,kzr,Czr,Dzr,Fzr,Lzr,SN=ps(()=>{"use strict";_zr="subplot",wzr="polar",Azr=["angularaxis","radialaxis"],Tzr={angularaxis:"theta",radialaxis:"r"},Mzr=["draglayer","plotbg","backplot","angular-grid","radial-grid","frontplot","angular-line","radial-line","angular-axis","radial-axis"],Szr=50,Ezr=30,kzr=25,Czr=2,Dzr=8,Fzr=20,Lzr=20});var kN=K((Rhi,lvt)=>{"use strict";var q3=St(),nvt=nM().tester,dle=q3.findIndexOfMin,ovt=q3.isAngleInsideSector,Pzr=q3.angleDelta,avt=q3.angleDist;function zzr(e,t,r,i,n){if(!ovt(t,i))return!1;var a,o;r[0]0?o:1/0},i=dle(t,r),n=q3.mod(i+1,t.length);return[t[i],t[n]]}function EN(e){return Math.abs(e)>1e-10?e:0}function ple(e,t,r){t=t||0,r=r||0;for(var i=e.length,n=new Array(i),a=0;a{"use strict";function uvt(e){return e<0?-1:e>0?1:0}function ST(e){var t=e[0],r=e[1];if(!isFinite(t)||!isFinite(r))return[1,0];var i=(t+1)*(t+1)+r*r;return[(t*t+r*r-1)/i,2*r/i]}function ET(e,t){var r=t[0],i=t[1];return[r*e.radius+e.cx,-i*e.radius+e.cy]}function fvt(e,t){return t*e.radius}function Uzr(e,t,r,i){var n=ET(e,ST([r,t])),a=n[0],o=n[1],s=ET(e,ST([i,t])),l=s[0],u=s[1];if(t===0)return["M"+a+","+o,"L"+l+","+u].join(" ");var f=fvt(e,1/Math.abs(t));return["M"+a+","+o,"A"+f+","+f+" 0 0,"+(t<0?1:0)+" "+l+","+u].join(" ")}function Gzr(e,t,r,i){var n=fvt(e,1/(t+1)),a=ET(e,ST([t,r])),o=a[0],s=a[1],l=ET(e,ST([t,i])),u=l[0],f=l[1];if(uvt(r)!==uvt(i)){var c=ET(e,ST([t,0])),h=c[0],d=c[1];return["M"+o+","+s,"A"+n+","+n+" 0 0,"+(0{"use strict";var O3=No(),V3=Ho(),Ff=St(),Zm=Ff.strRotate,Dh=Ff.strTranslate,LN=wo(),xD=Is(),Hzr=yf(),Td=Cs(),jzr=$1(),Wzr=hle(),$zr=$v().doAutoRange,mg=dW(),FN=U0(),hvt=Gf(),Yzr=vb(),Xzr=fh().prepSelect,Zzr=fh().selectOnClick,mle=fh().clearOutline,dvt=Yv(),pvt=G6(),vvt=J6().redrawReglTraces,Kzr=($c(),or(Wc)).MID_SHIFT,Fx=(SN(),or(MN)),yg=kN(),PN=vle(),CN=PN.smith,Jzr=PN.reactanceArc,Qzr=PN.resistanceArc,DN=PN.smithTransform,eIr=Ff._,mvt=Ff.mod,Lx=Ff.deg2rad,N3=Ff.rad2deg;function yvt(e,t,r){this.isSmith=r||!1,this.id=t,this.gd=e,this._hasClipOnAxisFalse=null,this.vangles=null,this.radialAxisAngle=null,this.traceHash={},this.layers={},this.clipPaths={},this.clipIds={},this.viewInitial={};var i=e._fullLayout,n="clip"+i._uid+t;this.clipIds.forTraces=n+"-for-traces",this.clipPaths.forTraces=i._clips.append("clipPath").attr("id",this.clipIds.forTraces),this.clipPaths.forTraces.append("path"),this.framework=i["_"+(r?"smith":"polar")+"layer"].append("g").attr("class",t),this.getHole=function(a){return this.isSmith?0:a.hole},this.getSector=function(a){return this.isSmith?[0,360]:a.sector},this.getRadial=function(a){return this.isSmith?a.realaxis:a.radialaxis},this.getAngular=function(a){return this.isSmith?a.imaginaryaxis:a.angularaxis},r||(this.radialTickLayout=null,this.angularTickLayout=null)}var Hh=yvt.prototype;bvt.exports=function(t,r,i){return new yvt(t,r,i)};Hh.plot=function(e,t){for(var r=this,i=t[r.id],n=!1,a=0;ay?(m=u,w=u*y,M=(f-w)/n.h/2,_=[s[0],s[1]],b=[l[0]+M,l[1]-M]):(m=f/y,w=f,M=(u-m)/n.w/2,_=[s[0]+M,s[1]-M],b=[l[0],l[1]]),r.xLength2=m,r.yLength2=w,r.xDomain2=_,r.yDomain2=b;var x=r.xOffset2=n.l+n.w*_[0],T=r.yOffset2=n.t+n.h*(1-b[1]),A=r.radius=m/d,g=r.innerRadius=r.getHole(t)*A,E=r.cx=x-A*h[0],S=r.cy=T+A*h[3],C=r.cxx=E-x,k=r.cyy=S-T,D=a.side,F;D==="counterclockwise"?(F=D,D="top"):D==="clockwise"&&(F=D,D="bottom"),r.radialAxis=r.mockAxis(e,t,a,{_id:"x",side:D,_trueSide:F,domain:[g/n.w,A/n.w]}),r.angularAxis=r.mockAxis(e,t,o,{side:"right",domain:[0,Math.PI],autorange:!1}),r.doAutoRange(e,t),r.updateAngularAxis(e,t),r.updateRadialAxis(e,t),r.updateRadialAxisTitle(e,t),r.xaxis=r.mockCartesianAxis(e,t,{_id:"x",domain:_}),r.yaxis=r.mockCartesianAxis(e,t,{_id:"y",domain:b});var P=r.pathSubplot();r.clipPaths.forTraces.select("path").attr("d",P).attr("transform",Dh(C,k)),i.frontplot.attr("transform",Dh(x,T)).call(xD.setClipUrl,r._hasClipOnAxisFalse?null:r.clipIds.forTraces,r.gd),i.bg.attr("d",P).attr("transform",Dh(E,S)).call(LN.fill,t.bgcolor)};Hh.mockAxis=function(e,t,r,i){var n=Ff.extendFlat({},r,i);return Wzr(n,t,e),n};Hh.mockCartesianAxis=function(e,t,r){var i=this,n=i.isSmith,a=r._id,o=Ff.extendFlat({type:"linear"},r);jzr(o,e);var s={x:[0,2],y:[1,3]};return o.setRange=function(){var l=i.sectorBBox,u=s[a],f=i.radialAxis._rl,c=(f[1]-f[0])/(1-i.getHole(t));o.range=[l[u[0]]*c,l[u[1]]*c]},o.isPtWithinRange=a==="x"&&!n?function(l){return i.isPtInside(l)}:function(){return!0},o.setRange(),o.setScale(),o};Hh.doAutoRange=function(e,t){var r=this,i=r.gd,n=r.radialAxis,a=r.getRadial(t);$zr(i,n);var o=n.range;if(a.range=o.slice(),a._input.range=o.slice(),n._rl=[n.r2l(o[0],null,"gregorian"),n.r2l(o[1],null,"gregorian")],n.minallowed!==void 0){var s=n.r2l(n.minallowed);n._rl[0]>n._rl[1]?n._rl[1]=Math.max(n._rl[1],s):n._rl[0]=Math.max(n._rl[0],s)}if(n.maxallowed!==void 0){var l=n.r2l(n.maxallowed);n._rl[0]90&&f<=270&&(c.tickangle=180);var p=d?function(A){var g=DN(r,CN([A.x,0]));return Dh(g[0]-s,g[1]-l)}:function(A){return Dh(c.l2p(A.x)+o,0)},v=d?function(A){return Qzr(r,A.x,-1/0,1/0)}:function(A){return r.pathArc(c.r2p(A.x)+o)},y=gvt(u);if(r.radialTickLayout!==y&&(n["radial-axis"].selectAll(".xtick").remove(),r.radialTickLayout=y),h){c.setScale();var m=0,w=d?(c.tickvals||[]).filter(function(A){return A>=0}).map(function(A){return Td.tickText(c,A,!0,!1)}):Td.calcTicks(c),_=d?w:Td.clipEnds(c,w),b=Td.getTickSigns(c)[2];d&&((c.ticks==="top"&&c.side==="bottom"||c.ticks==="bottom"&&c.side==="top")&&(b=-b),c.ticks==="top"&&c.side==="top"&&(m=-c.ticklen),c.ticks==="bottom"&&c.side==="bottom"&&(m=c.ticklen)),Td.drawTicks(i,c,{vals:w,layer:n["radial-axis"],path:Td.makeTickPath(c,0,b),transFn:p,crisp:!1}),Td.drawGrid(i,c,{vals:_,layer:n["radial-grid"],path:v,transFn:Ff.noop,crisp:!1}),Td.drawLabels(i,c,{vals:w,layer:n["radial-axis"],transFn:p,labelFns:Td.makeLabelFns(c,m)})}var M=r.radialAxisAngle=r.vangles?N3(xvt(Lx(u.angle),r.vangles)):u.angle,x=Dh(s,l),T=x+Zm(-M);bD(n["radial-axis"],h&&(u.showticklabels||u.ticks),{transform:T}),bD(n["radial-grid"],h&&u.showgrid,{transform:d?"":x}),bD(n["radial-line"].select("line"),h&&u.showline,{x1:d?-a:o,y1:0,x2:a,y2:0,transform:T}).attr("stroke-width",u.linewidth).call(LN.stroke,u.linecolor)};Hh.updateRadialAxisTitle=function(e,t,r){if(!this.isSmith){var i=this,n=i.gd,a=i.radius,o=i.cx,s=i.cy,l=i.getRadial(t),u=i.id+"title",f=0;if(l.title){var c=xD.bBox(i.layers["radial-axis"].node()).height,h=l.title.font.size,d=l.side;f=d==="top"?h:d==="counterclockwise"?-(c+h*.4):c+h*.8}var p=r!==void 0?r:i.radialAxisAngle,v=Lx(p),y=Math.cos(v),m=Math.sin(v),w=o+a/2*y+f*m,_=s-a/2*m+f*y;i.layers["radial-axis-title"]=Yzr.draw(n,u,{propContainer:l,propName:i.id+".radialaxis.title.text",placeholder:eIr(n,"Click to enter radial axis title"),attributes:{x:w,y:_,"text-anchor":"middle"},transform:{rotate:-p}})}};Hh.updateAngularAxis=function(e,t){var r=this,i=r.gd,n=r.layers,a=r.radius,o=r.innerRadius,s=r.cx,l=r.cy,u=r.getAngular(t),f=r.angularAxis,c=r.isSmith;c||(r.fillViewInitialKey("angularaxis.rotation",u.rotation),f.setGeometry(),f.setScale());var h=c?function(g){var E=DN(r,CN([0,g.x]));return Math.atan2(E[0]-s,E[1]-l)-Math.PI/2}:function(g){return f.t2g(g.x)};f.type==="linear"&&f.thetaunit==="radians"&&(f.tick0=N3(f.tick0),f.dtick=N3(f.dtick));var d=function(g){return Dh(s+a*Math.cos(g),l-a*Math.sin(g))},p=c?function(g){var E=DN(r,CN([0,g.x]));return Dh(E[0],E[1])}:function(g){return d(h(g))},v=c?function(g){var E=DN(r,CN([0,g.x])),S=Math.atan2(E[0]-s,E[1]-l)-Math.PI/2;return Dh(E[0],E[1])+Zm(-N3(S))}:function(g){var E=h(g);return d(E)+Zm(-N3(E))},y=c?function(g){return Jzr(r,g.x,0,1/0)}:function(g){var E=h(g),S=Math.cos(E),C=Math.sin(E);return"M"+[s+o*S,l-o*C]+"L"+[s+a*S,l-a*C]},m=Td.makeLabelFns(f,0),w=m.labelStandoff,_={};_.xFn=function(g){var E=h(g);return Math.cos(E)*w},_.yFn=function(g){var E=h(g),S=Math.sin(E)>0?.2:1;return-Math.sin(E)*(w+g.fontSize*S)+Math.abs(Math.cos(E))*(g.fontSize*Kzr)},_.anchorFn=function(g){var E=h(g),S=Math.cos(E);return Math.abs(S)<.1?"middle":S>0?"start":"end"},_.heightFn=function(g,E,S){var C=h(g);return-.5*(1+Math.sin(C))*S};var b=gvt(u);r.angularTickLayout!==b&&(n["angular-axis"].selectAll("."+f._id+"tick").remove(),r.angularTickLayout=b);var M=c?[1/0].concat(f.tickvals||[]).map(function(g){return Td.tickText(f,g,!0,!1)}):Td.calcTicks(f);c&&(M[0].text="\u221E",M[0].fontSize*=1.75);var x;if(t.gridshape==="linear"?(x=M.map(h),Ff.angleDelta(x[0],x[1])<0&&(x=x.slice().reverse())):x=null,r.vangles=x,f.type==="category"&&(M=M.filter(function(g){return Ff.isAngleInsideSector(h(g),r.sectorInRad)})),f.visible){var T=f.ticks==="inside"?-1:1,A=(f.linewidth||1)/2;Td.drawTicks(i,f,{vals:M,layer:n["angular-axis"],path:"M"+T*A+",0h"+T*f.ticklen,transFn:v,crisp:!1}),Td.drawGrid(i,f,{vals:M,layer:n["angular-grid"],path:y,transFn:Ff.noop,crisp:!1}),Td.drawLabels(i,f,{vals:M,layer:n["angular-axis"],repositionOnUpdate:!0,transFn:p,labelFns:_})}bD(n["angular-line"].select("path"),u.showline,{d:r.pathSubplot(),transform:Dh(s,l)}).attr("stroke-width",u.linewidth).call(LN.stroke,u.linecolor)};Hh.updateFx=function(e,t){if(!this.gd._context.staticPlot){var r=!this.isSmith;r&&(this.updateAngularDrag(e),this.updateRadialDrag(e,t,0),this.updateRadialDrag(e,t,1)),this.updateHoverAndMainDrag(e)}};Hh.updateHoverAndMainDrag=function(e){var t=this,r=t.isSmith,i=t.gd,n=t.layers,a=e._zoomlayer,o=Fx.MINZOOM,s=Fx.OFFEDGE,l=t.radius,u=t.innerRadius,f=t.cx,c=t.cy,h=t.cxx,d=t.cyy,p=t.sectorInRad,v=t.vangles,y=t.radialAxis,m=yg.clampTiny,w=yg.findXYatLength,_=yg.findEnclosingVertexAngles,b=Fx.cornerHalfWidth,M=Fx.cornerLen/2,x,T,A=mg.makeDragger(n,"path","maindrag",e.dragmode===!1?"none":"crosshair");O3.select(A).attr("d",t.pathSubplot()).attr("transform",Dh(f,c)),A.onmousemove=function(re){hvt.hover(i,re,t.id),i._fullLayout._lasthover=A,i._fullLayout._hoversubplot=t.id},A.onmouseout=function(re){i._dragging||FN.unhover(i,re)};var g={element:A,gd:i,subplot:t.id,plotinfo:{id:t.id,xaxis:t.xaxis,yaxis:t.yaxis},xaxes:[t.xaxis],yaxes:[t.yaxis]},E,S,C,k,D,F,P,I,L;function z(re,de){return Math.sqrt(re*re+de*de)}function B(re,de){return z(re-h,de-d)}function O(re,de){return Math.atan2(d-de,re-h)}function W(re,de){return[re*Math.cos(de),re*Math.sin(-de)]}function X(re,de){if(re===0)return t.pathSector(2*b);var me=M/re,ze=de-me,ke=de+me,le=Math.max(0,Math.min(re,l)),te=le-b,Ee=le+b;return"M"+W(te,ze)+"A"+[te,te]+" 0,0,0 "+W(te,ke)+"L"+W(Ee,ke)+"A"+[Ee,Ee]+" 0,0,1 "+W(Ee,ze)+"Z"}function Z(re,de,me){if(re===0)return t.pathSector(2*b);var ze=W(re,de),ke=W(re,me),le=m((ze[0]+ke[0])/2),te=m((ze[1]+ke[1])/2),Ee,we;if(le&&te){var oe=te/le,Y=-1/oe,ne=w(b,oe,le,te);Ee=w(M,Y,ne[0][0],ne[0][1]),we=w(M,Y,ne[1][0],ne[1][1])}else{var ye,V;te?(ye=M,V=b):(ye=b,V=M),Ee=[[le-ye,te-V],[le+ye,te-V]],we=[[le-ye,te+V],[le+ye,te+V]]}return"M"+Ee.join("L")+"L"+we.reverse().join("L")+"Z"}function H(){C=null,k=null,D=t.pathSubplot(),F=!1;var re=i._fullLayout[t.id];P=LN.luminosity(re.bgcolor),I=mg.makeZoombox(a,P,f,c,D),I.attr("fill-rule","evenodd"),L=mg.makeCorners(a,f,c),mle(i)}function q(re,de){return de=Math.max(Math.min(de,l),u),reo?(re-1&&re===1&&Zzr(de,i,[t.xaxis],[t.yaxis],t.id,g),me.indexOf("event")>-1&&hvt.click(i,de,t.id)}g.prepFn=function(re,de,me){var ze=i._fullLayout.dragmode,ke=A.getBoundingClientRect();i._fullLayout._calcInverseTransform(i);var le=i._fullLayout._invTransform;x=i._fullLayout._invScaleX,T=i._fullLayout._invScaleY;var te=Ff.apply3DTransform(le)(de-ke.left,me-ke.top);if(E=te[0],S=te[1],v){var Ee=yg.findPolygonOffset(l,p[0],p[1],v);E+=h+Ee[0],S+=d+Ee[1]}switch(ze){case"zoom":g.clickFn=ie,r||(v?g.moveFn=J:g.moveFn=N,g.doneFn=j,H(re,de,me));break;case"select":case"lasso":Xzr(re,de,me,g,ze);break}},FN.init(g)};Hh.updateRadialDrag=function(e,t,r){var i=this,n=i.gd,a=i.layers,o=i.radius,s=i.innerRadius,l=i.cx,u=i.cy,f=i.radialAxis,c=Fx.radialDragBoxSize,h=c/2;if(!f.visible)return;var d=Lx(i.radialAxisAngle),p=f._rl,v=p[0],y=p[1],m=p[r],w=.75*(p[1]-p[0])/(1-i.getHole(t))/o,_,b,M;r?(_=l+(o+h)*Math.cos(d),b=u-(o+h)*Math.sin(d),M="radialdrag"):(_=l+(s-h)*Math.cos(d),b=u-(s-h)*Math.sin(d),M="radialdrag-inner");var x=mg.makeRectDragger(a,M,"crosshair",-h,-h,c,c),T={element:x,gd:n};e.dragmode===!1&&(T.dragmode=!1),bD(O3.select(x),f.visible&&s0!=(r?E>v:E=90||n>90&&a>=450?d=1:s<=0&&u<=0?d=0:d=Math.max(s,u),n<=180&&a>=180||n>180&&a>=540?f=-1:o>=0&&l>=0?f=0:f=Math.min(o,l),n<=270&&a>=270||n>270&&a>=630?c=-1:s>=0&&u>=0?c=0:c=Math.min(s,u),a>=360?h=1:o<=0&&l<=0?h=0:h=Math.max(o,l),[f,c,h,d]}function xvt(e,t){var r=function(n){return Ff.angleDist(e,n)},i=Ff.findIndexOfMin(t,r);return t[i]}function bD(e,t,r){return t?(e.attr("display",null),e.attr(r)):e&&e.attr("display","none"),e}});var gle=K((Ohi,Svt)=>{"use strict";var rIr=Gc(),pl=Ph(),iIr=kf().attributes,Cp=St().extendFlat,_vt=Ef().overrideAll,wvt=_vt({color:pl.color,showline:Cp({},pl.showline,{dflt:!0}),linecolor:pl.linecolor,linewidth:pl.linewidth,showgrid:Cp({},pl.showgrid,{dflt:!0}),gridcolor:pl.gridcolor,gridwidth:pl.gridwidth,griddash:pl.griddash},"plot","from-root"),Avt=_vt({tickmode:pl.minor.tickmode,nticks:pl.nticks,tick0:pl.tick0,dtick:pl.dtick,tickvals:pl.tickvals,ticktext:pl.ticktext,ticks:pl.ticks,ticklen:pl.ticklen,tickwidth:pl.tickwidth,tickcolor:pl.tickcolor,ticklabelstep:pl.ticklabelstep,showticklabels:pl.showticklabels,labelalias:pl.labelalias,minorloglabels:pl.minorloglabels,showtickprefix:pl.showtickprefix,tickprefix:pl.tickprefix,showticksuffix:pl.showticksuffix,ticksuffix:pl.ticksuffix,showexponent:pl.showexponent,exponentformat:pl.exponentformat,minexponent:pl.minexponent,separatethousands:pl.separatethousands,tickfont:pl.tickfont,tickangle:pl.tickangle,tickformat:pl.tickformat,tickformatstops:pl.tickformatstops,layer:pl.layer},"plot","from-root"),Tvt={visible:Cp({},pl.visible,{dflt:!0}),type:Cp({},pl.type,{values:["-","linear","log","date","category"]}),autotypenumbers:pl.autotypenumbers,autorangeoptions:{minallowed:pl.autorangeoptions.minallowed,maxallowed:pl.autorangeoptions.maxallowed,clipmin:pl.autorangeoptions.clipmin,clipmax:pl.autorangeoptions.clipmax,include:pl.autorangeoptions.include,editType:"plot"},autorange:Cp({},pl.autorange,{editType:"plot"}),rangemode:{valType:"enumerated",values:["tozero","nonnegative","normal"],dflt:"tozero",editType:"calc"},minallowed:Cp({},pl.minallowed,{editType:"plot"}),maxallowed:Cp({},pl.maxallowed,{editType:"plot"}),range:Cp({},pl.range,{items:[{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}}],editType:"plot"}),categoryorder:pl.categoryorder,categoryarray:pl.categoryarray,angle:{valType:"angle",editType:"plot"},autotickangles:pl.autotickangles,side:{valType:"enumerated",values:["clockwise","counterclockwise"],dflt:"clockwise",editType:"plot"},title:{text:Cp({},pl.title.text,{editType:"plot",dflt:""}),font:Cp({},pl.title.font,{editType:"plot"}),editType:"plot"},hoverformat:pl.hoverformat,uirevision:{valType:"any",editType:"none"},editType:"calc"};Cp(Tvt,wvt,Avt);var Mvt={visible:Cp({},pl.visible,{dflt:!0}),type:{valType:"enumerated",values:["-","linear","category"],dflt:"-",editType:"calc",_noTemplating:!0},autotypenumbers:pl.autotypenumbers,categoryorder:pl.categoryorder,categoryarray:pl.categoryarray,thetaunit:{valType:"enumerated",values:["radians","degrees"],dflt:"degrees",editType:"calc"},period:{valType:"number",editType:"calc",min:0},direction:{valType:"enumerated",values:["counterclockwise","clockwise"],dflt:"counterclockwise",editType:"calc"},rotation:{valType:"angle",editType:"calc"},hoverformat:pl.hoverformat,uirevision:{valType:"any",editType:"none"},editType:"calc"};Cp(Mvt,wvt,Avt);Svt.exports={domain:iIr({name:"polar",editType:"plot"}),sector:{valType:"info_array",items:[{valType:"number",editType:"plot"},{valType:"number",editType:"plot"}],dflt:[0,360],editType:"plot"},hole:{valType:"number",min:0,max:1,dflt:0,editType:"plot"},bgcolor:{valType:"color",editType:"plot",dflt:rIr.background},radialaxis:Tvt,angularaxis:Mvt,gridshape:{valType:"enumerated",values:["circular","linear"],dflt:"circular",editType:"plot"},uirevision:{valType:"any",editType:"none"},editType:"calc"}});var Dvt=K((Nhi,Cvt)=>{"use strict";var zN=St(),nIr=wo(),aIr=cu(),oIr=Jb(),sIr=Zh().getSubplotData,lIr=fb(),uIr=Dw(),fIr=Bg(),cIr=qg(),hIr=r9(),dIr=FM(),pIr=VH(),vIr=Rw(),kvt=gle(),mIr=hle(),IN=(SN(),or(MN)),Evt=IN.axisNames;function yIr(e,t,r,i){var n=r("bgcolor");i.bgColor=nIr.combine(n,i.paper_bgcolor);var a=r("sector");r("hole");var o=sIr(i.fullData,IN.name,i.id),s=i.layoutOut,l;function u(I,L){return r(l+"."+I,L)}for(var f=0;f{"use strict";var xIr=Zh().getSubplotCalcData,bIr=St().counterRegex,_Ir=yle(),Lvt=(SN(),or(MN)),Pvt=Lvt.attr,U3=Lvt.name,Fvt=bIr(U3),zvt={};zvt[Pvt]={valType:"subplotid",dflt:U3,editType:"calc"};function wIr(e){for(var t=e._fullLayout,r=e.calcdata,i=t._subplots[U3],n=0;n{"use strict";var{hovertemplateAttrs:TIr,texttemplateAttrs:MIr,templatefallbackAttrs:Rvt}=gu(),BN=Os().extendFlat,SIr=sm(),Dp=Qf(),EIr=Tu(),kT=Dp.line;Bvt.exports={mode:Dp.mode,r:{valType:"data_array",editType:"calc+clearAxisTypes"},theta:{valType:"data_array",editType:"calc+clearAxisTypes"},r0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes"},dr:{valType:"number",dflt:1,editType:"calc"},theta0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes"},dtheta:{valType:"number",editType:"calc"},thetaunit:{valType:"enumerated",values:["radians","degrees","gradians"],dflt:"degrees",editType:"calc+clearAxisTypes"},text:Dp.text,texttemplate:MIr({editType:"plot"},{keys:["r","theta","text"]}),texttemplatefallback:Rvt({editType:"plot"}),hovertext:Dp.hovertext,line:{color:kT.color,width:kT.width,dash:kT.dash,backoff:kT.backoff,shape:BN({},kT.shape,{values:["linear","spline"]}),smoothing:kT.smoothing,editType:"calc"},connectgaps:Dp.connectgaps,marker:Dp.marker,cliponaxis:BN({},Dp.cliponaxis,{dflt:!1}),textposition:Dp.textposition,textfont:Dp.textfont,fill:BN({},Dp.fill,{values:["none","toself","tonext"],dflt:"none"}),fillcolor:SIr(),hoverinfo:BN({},EIr.hoverinfo,{flags:["r","theta","text","name"]}),hoveron:Dp.hoveron,hovertemplate:TIr(),hovertemplatefallback:Rvt(),selected:Dp.selected,unselected:Dp.unselected}});var ON=K((Ghi,Nvt)=>{"use strict";var qN=St(),CT=ff(),kIr=Xp(),CIr=Qv(),qvt=Qw(),DIr=e1(),FIr=um(),LIr=(om(),or(am)).PTS_LINESONLY,PIr=_D();function zIr(e,t,r,i){function n(s,l){return qN.coerce(e,t,PIr,s,l)}var a=Ovt(e,t,i,n);if(!a){t.visible=!1;return}n("thetaunit"),n("mode",a{"use strict";var IIr=St(),Vvt=Cs();Uvt.exports=function(t,r,i){var n={},a=i[r.subplot]._subplot,o,s;a?(o=a.radialAxis,s=a.angularAxis):(a=i[r.subplot],o=a.radialaxis,s=a.angularaxis);var l=o.c2l(t.r);n.rLabel=Vvt.tickText(o,l,!0).text;var u=s.thetaunit==="degrees"?IIr.rad2deg(t.theta):t.theta;return n.thetaLabel=Vvt.tickText(s,u,!0).text,n}});var jvt=K((jhi,Hvt)=>{"use strict";var Gvt=Hs(),RIr=(Il(),or(Bl)).BADNUM,BIr=Cs(),qIr=Zp(),OIr=fm(),NIr=op(),VIr=Kp().calcMarkerSize;Hvt.exports=function(t,r){for(var i=t._fullLayout,n=r.subplot,a=i[n].radialaxis,o=i[n].angularaxis,s=a.makeCalcdata(r,"r"),l=o.makeCalcdata(r,"theta"),u=r._length,f=new Array(u),c=0;c{"use strict";var UIr=aA(),Wvt=(Il(),or(Bl)).BADNUM;$vt.exports=function(t,r,i){for(var n=r.layers.frontplot.select("g.scatterlayer"),a=r.xaxis,o=r.yaxis,s={xaxis:a,yaxis:o,plot:r.framework,layerClipId:r._hasClipOnAxisFalse?r.clipIds.forTraces:null},l=r.radialAxis,u=r.angularAxis,f=0;f{"use strict";var GIr=uA();function HIr(e,t,r,i){var n=GIr(e,t,r,i);if(!(!n||n[0].index===!1)){var a=n[0];if(a.index===void 0)return n;var o=e.subplot,s=a.cd[a.index],l=a.trace;if(o.isPtInside(s))return a.xLabelVal=void 0,a.yLabelVal=void 0,Xvt(s,l,o,a),a.hovertemplate=l.hovertemplate,n}}function Xvt(e,t,r,i){var n=r.radialAxis,a=r.angularAxis;n._hovertitle="r",a._hovertitle="\u03B8";var o={};o[t.subplot]={_subplot:r};var s=t._module.formatLabels(e,t,o);i.rLabel=s.rLabel,i.thetaLabel=s.thetaLabel;var l=e.hi||t.hoverinfo,u=[];function f(h,d){u.push(h._hovertitle+": "+d)}if(!t.hovertemplate){var c=l.split("+");c.indexOf("all")!==-1&&(c=["r","theta","text"]),c.indexOf("r")!==-1&&f(n,i.rLabel),c.indexOf("theta")!==-1&&f(a,i.thetaLabel),c.indexOf("text")!==-1&&i.text&&(u.push(i.text),delete i.text),i.extraText=u.join("
")}}Zvt.exports={hoverPoints:HIr,makeHoverPointText:Xvt}});var Jvt=K((Yhi,Kvt)=>{"use strict";Kvt.exports={moduleType:"trace",name:"scatterpolar",basePlotModule:RN(),categories:["polar","symbols","showLegend","scatter-like"],attributes:_D(),supplyDefaults:ON().supplyDefaults,colorbar:e0(),formatLabels:NN(),calc:jvt(),plot:Yvt(),style:hd().style,styleOnSelect:hd().styleOnSelect,hoverPoints:VN().hoverPoints,selectPoints:Rb(),meta:{}}});var e1t=K((Xhi,Qvt)=>{"use strict";Qvt.exports=Jvt()});var xle=K((Jhi,r1t)=>{"use strict";var t1t=_D(),{cliponaxis:Zhi,hoveron:Khi}=t1t,jIr=FD(t1t,["cliponaxis","hoveron"]),{connectgaps:WIr,line:{color:$Ir,dash:YIr,width:XIr},fill:ZIr,fillcolor:KIr,marker:JIr,textfont:QIr,textposition:eRr}=VE();r1t.exports=$l(Gs({},jIr),{connectgaps:WIr,fill:ZIr,fillcolor:KIr,line:{color:$Ir,dash:YIr,editType:"calc",width:XIr},marker:JIr,textfont:QIr,textposition:eRr})});var a1t=K((e0i,n1t)=>{"use strict";var i1t=St(),ble=ff(),tRr=ON().handleRThetaDefaults,rRr=Xp(),iRr=Qv(),nRr=e1(),aRr=um(),oRr=(om(),or(am)).PTS_LINESONLY,sRr=xle();n1t.exports=function(t,r,i,n){function a(s,l){return i1t.coerce(t,r,sRr,s,l)}var o=tRr(t,r,n,a);if(!o){r.visible=!1;return}a("thetaunit"),a("mode",o{"use strict";var lRr=NN();o1t.exports=function(t,r,i){var n=t.i;return"r"in t||(t.r=r._r[n]),"theta"in t||(t.theta=r._theta[n]),lRr(t,r,i)}});var u1t=K((r0i,l1t)=>{"use strict";var uRr=Zp(),fRr=Kp().calcMarkerSize,cRr=W_(),hRr=Cs(),dRr=(V_(),or(N_)).TOO_MANY_POINTS;l1t.exports=function(t,r){var i=t._fullLayout,n=r.subplot,a=i[n].radialaxis,o=i[n].angularaxis,s=r._r=a.makeCalcdata(r,"r"),l=r._theta=o.makeCalcdata(r,"theta"),u=r._length,f={};u{"use strict";var pRr=HR(),vRr=VN().makeHoverPointText;function mRr(e,t,r,i){var n=e.cd,a=n[0].t,o=a.r,s=a.theta,l=pRr.hoverPoints(e,t,r,i);if(!(!l||l[0].index===!1)){var u=l[0];if(u.index===void 0)return l;var f=e.subplot,c=u.cd[u.index],h=u.trace;if(c.r=o[u.index],c.theta=s[u.index],!!f.isPtInside(c))return u.xLabelVal=void 0,u.yLabelVal=void 0,vRr(c,h,f,u),l}}f1t.exports={hoverPoints:mRr}});var d1t=K((n0i,h1t)=>{"use strict";h1t.exports={moduleType:"trace",name:"scatterpolargl",basePlotModule:RN(),categories:["gl","regl","polar","symbols","showLegend","scatter-like"],attributes:xle(),supplyDefaults:a1t(),colorbar:e0(),formatLabels:s1t(),calc:u1t(),hoverPoints:c1t().hoverPoints,selectPoints:Xee(),meta:{}}});var p1t=K((a0i,_le)=>{"use strict";var yRr=YR(),gRr=Hs(),xRr=Kte(),bRr=Wee(),UN=W_(),GN=St(),_Rr=(V_(),or(N_)).TOO_MANY_POINTS,wRr={};_le.exports=function(t,r,i){if(i.length){var n=r.radialAxis,a=r.angularAxis,o=bRr(t,r);return i.forEach(function(s){if(!(!s||!s[0]||!s[0].trace)){var l=s[0],u=l.trace,f=l.t,c=u._length,h=f.r,d=f.theta,p=f.opts,v,y=h.slice(),m=d.slice();for(v=0;v=_Rr&&(p.marker.cluster=f.tree),p.marker&&(p.markerSel.positions=p.markerUnsel.positions=p.marker.positions=w),p.line&&w.length>1&&GN.extendFlat(p.line,UN.linePositions(t,u,w)),p.text&&(GN.extendFlat(p.text,{positions:w},UN.textPosition(t,u,p.text,p.marker)),GN.extendFlat(p.textSel,{positions:w},UN.textPosition(t,u,p.text,p.markerSel)),GN.extendFlat(p.textUnsel,{positions:w},UN.textPosition(t,u,p.text,p.markerUnsel))),p.fill&&!o.fill2d&&(o.fill2d=!0),p.marker&&!o.scatter2d&&(o.scatter2d=!0),p.line&&!o.line2d&&(o.line2d=!0),p.text&&!o.glText&&(o.glText=!0),o.lineOptions.push(p.line),o.fillOptions.push(p.fill),o.markerOptions.push(p.marker),o.markerSelectedOptions.push(p.markerSel),o.markerUnselectedOptions.push(p.markerUnsel),o.textOptions.push(p.text),o.textSelectedOptions.push(p.textSel),o.textUnselectedOptions.push(p.textUnsel),o.selectBatch.push([]),o.unselectBatch.push([]),f.x=_,f.y=b,f.rawx=_,f.rawy=b,f.r=h,f.theta=d,f.positions=w,f._scene=o,f.index=o.count,o.count++}}),xRr(t,r,i)}};_le.exports.reglPrecompiled=wRr});var m1t=K((o0i,v1t)=>{"use strict";var ARr=kB(),TRr=CB(),MRr=DB(),SRr=FB(),ERr=LB(),kRr=PB(),CRr=zB(),DRr=IB(),FRr=RB(),LRr=BB();v1t.exports={"3e771157d23b4793771f65d83e6387262ed73d488209157f19a7fa027bddd71b":ARr,"49e82bba439f1d9d441c17ba252d05640bc63fefdf22d1219993633af7730210":TRr,"6a5d6bd29c15cf7614221b94c3f384df47c2c46fbe4456e8c57b5cd14c84d923":MRr,"8902aff2b23b600f8103bcc84a8af2999d28795208aedadc2db06f921f9c7034":SRr,"8fad2284703471df7c0e0d0a7b96d983e8c53f6d707dd55d5921c1eab71f6623":ERr,bfc540da96a87fcc039073cb37b45e6b81ef5ee6ef3529d726ceed8336354019:kRr,cbf700f001fff25b649fba9c37fa0dc6631c1cdee318ad49473d28ec10dcee81:CRr,db1b82c68771e7f5012fad1fbdae7ff23b526e58d2995bf6dd2cf30024e0f41d:DRr,dbd1cc9126a137a605df67dc0706e55116f04e33b4545a80042031752de5aef5:FRr,fe5b6844077cde1bdd7273f4495969fad93500c26a69b62e74ec2664c447bcc7:LRr}});var g1t=K((s0i,y1t)=>{"use strict";var wle=p1t(),PRr=m1t(),zRr=Jte();Object.assign(wle.reglPrecompiled,PRr);Object.assign(wle.reglPrecompiled,zRr);y1t.exports=wle});var _1t=K((l0i,b1t)=>{"use strict";var x1t=d1t();x1t.plot=g1t();b1t.exports=x1t});var Ale=K((u0i,w1t)=>{"use strict";var{hovertemplateAttrs:IRr,templatefallbackAttrs:RRr}=gu(),DT=Os().extendFlat,Px=_D(),zx=dm();w1t.exports={r:Px.r,theta:Px.theta,r0:Px.r0,dr:Px.dr,theta0:Px.theta0,dtheta:Px.dtheta,thetaunit:Px.thetaunit,base:DT({},zx.base,{}),offset:DT({},zx.offset,{}),width:DT({},zx.width,{}),text:DT({},zx.text,{}),hovertext:DT({},zx.hovertext,{}),marker:BRr(),hoverinfo:Px.hoverinfo,hovertemplate:IRr(),hovertemplatefallback:RRr(),selected:zx.selected,unselected:zx.unselected};function BRr(){var e=DT({},zx.marker);return delete e.cornerradius,e}});var Tle=K((f0i,A1t)=>{"use strict";A1t.exports={barmode:{valType:"enumerated",values:["stack","overlay"],dflt:"stack",editType:"calc"},bargap:{valType:"number",dflt:.1,min:0,max:1,editType:"calc"}}});var S1t=K((c0i,M1t)=>{"use strict";var T1t=St(),qRr=ON().handleRThetaDefaults,ORr=N9(),NRr=Ale();M1t.exports=function(t,r,i,n){function a(s,l){return T1t.coerce(t,r,NRr,s,l)}var o=qRr(t,r,n,a);if(!o){r.visible=!1;return}a("thetaunit"),a("base"),a("offset"),a("width"),a("text"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback"),ORr(t,r,a,i,n),T1t.coerceSelectionMarkerOpacity(r,a)}});var k1t=K((h0i,E1t)=>{"use strict";var VRr=St(),URr=Tle();E1t.exports=function(e,t,r){var i={},n;function a(l,u){return VRr.coerce(e[n]||{},t[n],URr,l,u)}for(var o=0;o{"use strict";var C1t=Kh().hasColorscale,D1t=T0(),GRr=St().isArrayOrTypedArray,HRr=$M(),jRr=Ib().setGroupPositions,WRr=op(),$Rr=Ho().traceIs,YRr=St().extendFlat;function XRr(e,t){for(var r=e._fullLayout,i=t.subplot,n=r[i].radialaxis,a=r[i].angularaxis,o=n.makeCalcdata(t,"r"),s=a.makeCalcdata(t,"theta"),l=t._length,u=new Array(l),f=o,c=s,h=0;h{"use strict";var L1t=No(),HN=Hs(),FT=St(),KRr=Is(),Sle=kN();P1t.exports=function(t,r,i){var n=t._context.staticPlot,a=r.xaxis,o=r.yaxis,s=r.radialAxis,l=r.angularAxis,u=JRr(r),f=r.layers.frontplot.select("g.barlayer");FT.makeTraceGroups(f,i,"trace bars").each(function(){var c=L1t.select(this),h=FT.ensureSingle(c,"g","points"),d=h.selectAll("g.point").data(FT.identity);d.enter().append("g").style("vector-effect",n?"none":"non-scaling-stroke").style("stroke-miterlimit",2).classed("point",!0),d.exit().remove(),d.each(function(p){var v=L1t.select(this),y=p.rp0=s.c2p(p.s0),m=p.rp1=s.c2p(p.s1),w=p.thetag0=l.c2g(p.p0),_=p.thetag1=l.c2g(p.p1),b;if(!HN(y)||!HN(m)||!HN(w)||!HN(_)||y===m||w===_)b="M0,0Z";else{var M=s.c2g(p.s1),x=(w+_)/2;p.ct=[a.c2p(M*Math.cos(x)),o.c2p(M*Math.sin(x))],b=u(y,m,w,_)}FT.ensureSingle(v,"path").attr("d",b)}),KRr.setClipUrl(c,r._hasClipOnAxisFalse?r.clipIds.forTraces:null,t)})};function JRr(e){var t=e.cxx,r=e.cyy;return e.vangles?function(i,n,a,o){var s,l;FT.angleDelta(a,o)>0?(s=a,l=o):(s=o,l=a);var u=Sle.findEnclosingVertexAngles(s,e.vangles)[0],f=Sle.findEnclosingVertexAngles(l,e.vangles)[1],c=[u,(s+l)/2,f];return Sle.pathPolygonAnnulus(i,n,s,l,c,t,r)}:function(i,n,a,o){return FT.pathAnnulus(i,n,a,o,t,r)}}});var R1t=K((v0i,I1t)=>{"use strict";var QRr=Gf(),Ele=St(),eBr=AA().getTraceColor,tBr=Ele.fillText,rBr=VN().makeHoverPointText,iBr=kN().isPtInsidePolygon;I1t.exports=function(t,r,i){var n=t.cd,a=n[0].trace,o=t.subplot,s=o.radialAxis,l=o.angularAxis,u=o.vangles,f=u?iBr:Ele.isPtInsideSector,c=t.maxHoverDistance,h=l._period||2*Math.PI,d=Math.abs(s.g2p(Math.sqrt(r*r+i*i))),p=Math.atan2(i,r);s.range[0]>s.range[1]&&(p+=Math.PI);var v=function(_){return f(d,p,[_.rp0,_.rp1],[_.thetag0,_.thetag1],u)?c+Math.min(1,Math.abs(_.thetag1-_.thetag0)/h)-1+(_.rp1-d)/(_.rp1-_.rp0)-1:1/0};if(QRr.getClosest(n,v,t),t.index!==!1){var y=t.index,m=n[y];t.x0=t.x1=m.ct[0],t.y0=t.y1=m.ct[1];var w=Ele.extendFlat({},m,{r:m.s,theta:m.p});return tBr(m,a,t),rBr(w,a,o,t),t.hovertemplate=a.hovertemplate,t.color=eBr(a,m),t.xLabelVal=t.yLabelVal=void 0,m.s<0&&(t.idealAlign="left"),[t]}}});var q1t=K((m0i,B1t)=>{"use strict";B1t.exports={moduleType:"trace",name:"barpolar",basePlotModule:RN(),categories:["polar","bar","showLegend"],attributes:Ale(),layoutAttributes:Tle(),supplyDefaults:S1t(),supplyLayoutDefaults:k1t(),calc:Mle().calc,crossTraceCalc:Mle().crossTraceCalc,plot:z1t(),colorbar:e0(),formatLabels:NN(),style:tv().style,styleOnSelect:tv().styleOnSelect,hoverPoints:R1t(),selectPoints:TA(),meta:{}}});var N1t=K((y0i,O1t)=>{"use strict";O1t.exports=q1t()});var kle={};Fl(kle,{attr:()=>nBr,axisName2dataArray:()=>sBr,axisNames:()=>oBr,name:()=>aBr});var nBr,aBr,oBr,sBr,Cle=ps(()=>{"use strict";nBr="subplot",aBr="smith",oBr=["realaxis","imaginaryaxis"],sBr={imaginaryaxis:"imag",realaxis:"real"}});var Dle=K((g0i,H1t)=>{"use strict";var lBr=Gc(),vc=Ph(),uBr=kf().attributes,Ix=St().extendFlat,V1t=Ef().overrideAll,U1t=V1t({color:vc.color,showline:Ix({},vc.showline,{dflt:!0}),linecolor:vc.linecolor,linewidth:vc.linewidth,showgrid:Ix({},vc.showgrid,{dflt:!0}),gridcolor:vc.gridcolor,gridwidth:vc.gridwidth,griddash:vc.griddash},"plot","from-root"),G1t=V1t({ticklen:vc.ticklen,tickwidth:Ix({},vc.tickwidth,{dflt:2}),tickcolor:vc.tickcolor,showticklabels:vc.showticklabels,labelalias:vc.labelalias,showtickprefix:vc.showtickprefix,tickprefix:vc.tickprefix,showticksuffix:vc.showticksuffix,ticksuffix:vc.ticksuffix,tickfont:vc.tickfont,tickformat:vc.tickformat,hoverformat:vc.hoverformat,layer:vc.layer},"plot","from-root"),fBr=Ix({visible:Ix({},vc.visible,{dflt:!0}),tickvals:{dflt:[.2,.5,1,2,5],valType:"data_array",editType:"plot"},tickangle:Ix({},vc.tickangle,{dflt:90}),ticks:{valType:"enumerated",values:["top","bottom",""],editType:"ticks"},side:{valType:"enumerated",values:["top","bottom"],dflt:"top",editType:"plot"},editType:"calc"},U1t,G1t),cBr=Ix({visible:Ix({},vc.visible,{dflt:!0}),tickvals:{valType:"data_array",editType:"plot"},ticks:vc.ticks,editType:"calc"},U1t,G1t);H1t.exports={domain:uBr({name:"smith",editType:"plot"}),bgcolor:{valType:"color",editType:"plot",dflt:lBr.background},realaxis:fBr,imaginaryaxis:cBr,editType:"calc"}});var $1t=K((x0i,W1t)=>{"use strict";var LT=St(),hBr=wo(),dBr=cu(),pBr=Jb(),vBr=Zh().getSubplotData,mBr=qg(),yBr=Bg(),gBr=FM(),xBr=$1(),PT=Dle(),Fle=(Cle(),or(kle)),j1t=Fle.axisNames,bBr=wBr(function(e){return LT.isTypedArray(e)&&(e=Array.from(e)),e.slice().reverse().map(function(t){return-t}).concat([0]).concat(e)},String);function _Br(e,t,r,i){var n=r("bgcolor");i.bgColor=hBr.combine(n,i.paper_bgcolor);var a=vBr(i.fullData,Fle.name,i.id),o=i.layoutOut,s;function l(M,x){return r(s+"."+M,x)}for(var u=0;u{"use strict";var ABr=Zh().getSubplotCalcData,TBr=St().counterRegex,MBr=yle(),X1t=(Cle(),or(kle)),Z1t=X1t.attr,G3=X1t.name,Y1t=TBr(G3),K1t={};K1t[Z1t]={valType:"subplotid",dflt:G3,editType:"calc"};function SBr(e){for(var t=e._fullLayout,r=e.calcdata,i=t._subplots[G3],n=0;n{"use strict";var{hovertemplateAttrs:kBr,texttemplateAttrs:CBr,templatefallbackAttrs:emt}=gu(),jN=Os().extendFlat,DBr=sm(),Fp=Qf(),FBr=Tu(),zT=Fp.line;tmt.exports={mode:Fp.mode,real:{valType:"data_array",editType:"calc+clearAxisTypes"},imag:{valType:"data_array",editType:"calc+clearAxisTypes"},text:Fp.text,texttemplate:CBr({editType:"plot"},{keys:["real","imag","text"]}),texttemplatefallback:emt({editType:"plot"}),hovertext:Fp.hovertext,line:{color:zT.color,width:zT.width,dash:zT.dash,backoff:zT.backoff,shape:jN({},zT.shape,{values:["linear","spline"]}),smoothing:zT.smoothing,editType:"calc"},connectgaps:Fp.connectgaps,marker:Fp.marker,cliponaxis:jN({},Fp.cliponaxis,{dflt:!1}),textposition:Fp.textposition,textfont:Fp.textfont,fill:jN({},Fp.fill,{values:["none","toself","tonext"],dflt:"none"}),fillcolor:DBr(),hoverinfo:jN({},FBr.hoverinfo,{flags:["real","imag","text","name"]}),hoveron:Fp.hoveron,hovertemplate:kBr(),hovertemplatefallback:emt(),selected:Fp.selected,unselected:Fp.unselected}});var nmt=K((w0i,imt)=>{"use strict";var WN=St(),IT=ff(),LBr=Xp(),PBr=Qv(),rmt=Qw(),zBr=e1(),IBr=um(),RBr=(om(),or(am)).PTS_LINESONLY,BBr=Lle();imt.exports=function(t,r,i,n){function a(l,u){return WN.coerce(t,r,BBr,l,u)}var o=qBr(t,r,n,a);if(!o){r.visible=!1;return}a("mode",o{"use strict";var amt=Cs();omt.exports=function(t,r,i){var n={},a=i[r.subplot]._subplot;return n.realLabel=amt.tickText(a.radialAxis,t.real,!0).text,n.imagLabel=amt.tickText(a.angularAxis,t.imag,!0).text,n}});var fmt=K((T0i,umt)=>{"use strict";var lmt=Hs(),OBr=(Il(),or(Bl)).BADNUM,NBr=Zp(),VBr=fm(),UBr=op(),GBr=Kp().calcMarkerSize;umt.exports=function(t,r){for(var i=t._fullLayout,n=r.subplot,a=i[n].realaxis,o=i[n].imaginaryaxis,s=a.makeCalcdata(r,"real"),l=o.makeCalcdata(r,"imag"),u=r._length,f=new Array(u),c=0;c{"use strict";var HBr=aA(),cmt=(Il(),or(Bl)).BADNUM,jBr=vle(),WBr=jBr.smith;hmt.exports=function(t,r,i){for(var n=r.layers.frontplot.select("g.scatterlayer"),a=r.xaxis,o=r.yaxis,s={xaxis:a,yaxis:o,plot:r.framework,layerClipId:r._hasClipOnAxisFalse?r.clipIds.forTraces:null},l=0;l{"use strict";var $Br=uA();function YBr(e,t,r,i){var n=$Br(e,t,r,i);if(!(!n||n[0].index===!1)){var a=n[0];if(a.index===void 0)return n;var o=e.subplot,s=a.cd[a.index],l=a.trace;if(o.isPtInside(s))return a.xLabelVal=void 0,a.yLabelVal=void 0,pmt(s,l,o,a),a.hovertemplate=l.hovertemplate,n}}function pmt(e,t,r,i){var n=r.radialAxis,a=r.angularAxis;n._hovertitle="real",a._hovertitle="imag";var o={};o[t.subplot]={_subplot:r};var s=t._module.formatLabels(e,t,o);i.realLabel=s.realLabel,i.imagLabel=s.imagLabel;var l=e.hi||t.hoverinfo,u=[];function f(h,d){u.push(h._hovertitle+": "+d)}if(!t.hovertemplate){var c=l.split("+");c.indexOf("all")!==-1&&(c=["real","imag","text"]),c.indexOf("real")!==-1&&f(n,i.realLabel),c.indexOf("imag")!==-1&&f(a,i.imagLabel),c.indexOf("text")!==-1&&i.text&&(u.push(i.text),delete i.text),i.extraText=u.join("
")}}vmt.exports={hoverPoints:YBr,makeHoverPointText:pmt}});var gmt=K((E0i,ymt)=>{"use strict";ymt.exports={moduleType:"trace",name:"scattersmith",basePlotModule:Q1t(),categories:["smith","symbols","showLegend","scatter-like"],attributes:Lle(),supplyDefaults:nmt(),colorbar:e0(),formatLabels:smt(),calc:fmt(),plot:dmt(),style:hd().style,styleOnSelect:hd().styleOnSelect,hoverPoints:mmt().hoverPoints,selectPoints:Rb(),meta:{}}});var bmt=K((k0i,xmt)=>{"use strict";xmt.exports=gmt()});var zle=K((C0i,_mt)=>{"use strict";var XBr=Tu(),ZBr=gu().hovertemplateAttrs,$N=zf().axisHoverFormat,Ple=Os().extendFlat,KBr=Wu(),JBr=gh().dash,QBr=Qg(),H3=Qf(),e7r={x:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0},x0:H3.x0,dx:H3.dx,y:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0},y0:H3.y0,dy:H3.dy,u:{valType:"data_array",editType:"calc",anim:!0},v:{valType:"data_array",editType:"calc",anim:!0},arrowref:{valType:"enumerated",values:["paper","data"],dflt:"data",editType:"calc"},lengthmode:{valType:"enumerated",values:["scaled","raw"],editType:"calc",dflt:"scaled"},lengthfactor:{valType:"number",min:0,editType:"calc",dflt:1},anchor:{valType:"enumerated",values:["tip","tail","center"],dflt:"tail",editType:"calc"},xhoverformat:$N("x"),yhoverformat:$N("y"),uhoverformat:$N("u","noDate"),vhoverformat:$N("v","noDate"),hoverinfo:Ple({},XBr.hoverinfo,{flags:["x","y","u","v","text","name"],dflt:"all"}),hovertemplate:ZBr({},{keys:["x","y","u","v","text","name"]}),text:H3.text,textposition:H3.textposition,textfont:H3.textfont,marker:Ple({arrowsize:Ple({},QBr.arrowsize,{editType:"calc"}),line:{width:{valType:"number",min:0,dflt:2,editType:"style"},dash:JBr,editType:"style"},editType:"calc"},KBr("marker",{showScaleDflt:!0,editTypeOverride:"calc"})),selected:{marker:{color:{valType:"color",editType:"style"},line:{width:{valType:"number",min:0,editType:"style"},editType:"style"},editType:"style"},textfont:{color:{valType:"color",editType:"style"},editType:"style"},editType:"style"},unselected:{marker:{color:{valType:"color",editType:"style"},line:{width:{valType:"number",min:0,editType:"style"},editType:"style"},editType:"style"},textfont:{color:{valType:"color",editType:"style"},editType:"style"},editType:"style"}};_mt.exports=e7r});var Amt=K((D0i,wmt)=>{"use strict";var wD=St(),t7r=zle(),r7r=Pb(),i7r=Kh().hasColorscale,n7r=xh();wmt.exports=function(t,r,i,n){function a(p,v){return wD.coerce(t,r,t7r,p,v)}var o=r7r(t,r,n,a);if(!o){r.visible=!1;return}var s=a("u"),l=a("v");if(!wD.isArrayOrTypedArray(s)||s.length===0){r.u=new Array(o);for(var u=0;u{"use strict";var gg=St(),RT=Cs(),AD=Hs(),Tmt=(Il(),or(Bl)).BADNUM,a7r=T0(),o7r=op(),s7r=.97;Mmt.exports=function(t,r){let i=r._xA=RT.getFromId(t,r.xaxis||"x","x"),n=r._yA=RT.getFromId(t,r.yaxis||"y","y"),a=i.makeCalcdata(r,"x"),o=n.makeCalcdata(r,"y"),s=Math.min(a.length,o.length);r._length=s;let l=new Array(s);var u=1/0,f=-1/0,c=1/0,h=-1/0;let d=r.marker.color,p=gg.isArrayOrTypedArray(d),v=r.u||[],y=r.v||[],{anchor:m,lengthmode:w,arrowref:_}=r,b=m==="tip",M=m==="center";for(var x=1/0,T=-1/0,A=1/0,g=-1/0,E=1/0,S=-1/0,C=1/0,k=-1/0,D=0,F=0;FT&&(T=a[F]),o[F]g&&(g=o[F]),zS&&(S=z),Bk&&(k=B);var O=Math.sqrt(z*z+B*B);if(O>f&&(f=O),Oh&&(h=W))}}else P.x=Tmt,P.y=Tmt}if(r._maxNorm=f,w==="scaled"||_==="paper"){let j=T-x,$=g-A;var X;j===0&&$===0?X=1:X=(j+$+Math.sqrt((j-$)*(j-$)+4*D*j*$))/(2*(D-1)),X*=s7r,r._scaleFactor=X/r._maxNorm}else r._scaleFactor=1;r._scaleFactor*=r.lengthfactor;let Z=new Array(s),H=new Array(s),q=new Array(s),Q=new Array(s);for(var N,U,F=0;F{"use strict";Emt.exports=function(t,r){}});var YN=K((P0i,Fmt)=>{"use strict";var Ile=No(),Ble=St(),TD=Is(),l7r=gf(),u7r=wo(),f7r=(ry(),or(ty)).DESELECTDIM;function Cmt(e,t){var r=t.marker||{},i=l7r.makeColorScaleFuncFromTrace(r);e.style("stroke",function(n){var a=r.color,o;if(Ble.isArrayOrTypedArray(a)&&a.length>n.i&&isFinite(a[n.i]))o=a[n.i];else{var s=t.u&&t.u[n.i]||0,l=t.v&&t.v[n.i]||0;o=Math.sqrt(s*s+l*l)}return n.mcc=i(o),n.mcc})}var Rle=(e,t)=>{if(t._hasColorscale){Cmt(e,t);return}let r=(t.marker||{}).color;Ble.isArrayOrTypedArray(r)&&e.style("stroke",function(i){if(r.length>i.i){let n=r[i.i];if(u7r.isValid(n))return i.mcc=n,n}return this.style.stroke})};function c7r(e){var t=Ile.select(e).selectAll("g.trace.quiver");t.each(function(r){Dmt(e,r,Ile.select(this))})}function h7r(e,t,r){Dmt(e,t,r)}function Dmt(e,t,r){var i=t[0].trace,n=i.marker||{},a=n.line||{},o=Ble.isArrayOrTypedArray(n.color)?void 0:n.color;if(r)if(i.selectedpoints){var s=(i.selected||{}).marker||{},l=(i.unselected||{}).marker||{},u=s.line||{},f=l.line||{};r.selectAll("path.js-line").each(function(h){var d=Ile.select(this),p=!h.selected,v=p?l.color:s.color,y=p?f.width!==void 0?f.width:a.width:u.width!==void 0?u.width:a.width;v?(TD.lineGroupStyle(d,y,v,a.dash),d.style("stroke-opacity",1)):(TD.lineGroupStyle(d,y,o,a.dash),Rle(d,i),d.style("stroke-opacity",p?f7r:1))}),TD.selectedTextStyle(r.selectAll("text"),i)}else{var c=r.selectAll("path.js-line");c.call(TD.lineGroupStyle,a.width,o,a.dash),Rle(c,i),c.style("stroke-opacity",1),TD.textPointStyle(r.selectAll("text"),i,e)}}Fmt.exports={style:c7r,styleOnSelect:h7r,colorscaleStroke:Cmt,strokeArrowColors:Rle}});var zmt=K((z0i,Pmt)=>{"use strict";var q1=No(),d7r=St(),MD=Is(),{strokeArrowColors:p7r}=YN(),XN=Math.PI/12,v7r=5.8,m7r=1.5,y7r=.7;Pmt.exports=function(t,r,i,n,a,o){var s,l,u=!a,f=!!a&&a.duration>0;if(s=n.selectAll("g.trace").data(i,function(h){return h[0].trace.uid}),s.enter().append("g").attr("class",function(h){return"trace quiver trace"+h[0].trace.uid}).style("stroke-miterlimit",2),s.order(),f){o&&(l=o());var c=q1.transition().duration(a.duration).ease(a.easing).each("end",function(){l&&l()}).each("interrupt",function(){l&&l()});c.each(function(){n.selectAll("g.trace").each(function(h,d){Lmt(t,d,r,h,i,this,a)})})}else s.each(function(h,d){Lmt(t,d,r,h,i,this,a)});u&&s.exit().remove()};function Lmt(e,t,r,i,n,a,o){var s=i[0].trace,l=r.xaxis,u=r.yaxis;i[0][r.isRangePlot?"nodeRangePlot3":"node3"]=q1.select(a);var f=q1.select(a).selectAll("g.lines").data([i]);f.enter().append("g").classed("lines",!0),MD.setClipUrl(f,r.layerClipId,e);var c=f.selectAll("path.js-line").data(i);c.enter().append("path").classed("js-line",!0).style("vector-effect","non-scaling-stroke"),c.exit().remove();let{anchor:h,maxNorm:d=0,arrowref:p}=s,v=p==="paper"?s._scaleFactor*Math.sqrt(Math.abs(l._m*u._m)):s._scaleFactor,y=s.marker.arrowsize;c.each(function(T){let A=q1.select(this);if(T.x===void 0||T.y===void 0){A.attr("d",null);return}let g=(p==="paper"?T._u*Math.sign(l._m):q1.round(l._m*T._u))*v,E=(p==="paper"?T._v*Math.sign(u._m):q1.round(u._m*T._v))*v,S=(s._input.marker||{}).arrowsize!==void 0;var C,k,D,F;h==="tip"?(C=l.c2p(T.x)-g,D=u.c2p(T.y)-E,k=l.c2p(T.x),F=u.c2p(T.y)):h==="center"?(C=l.c2p(T.x)-g/2,D=u.c2p(T.y)-E/2,k=l.c2p(T.x)+g/2,F=u.c2p(T.y)+E/2):(C=l.c2p(T.x),D=u.c2p(T.y),k=l.c2p(T.x)+g,F=u.c2p(T.y)+E),T._px0=C,T._py0=D,T._px1=k,T._py1=F;var P=s.marker.line.width;S||(P=Math.max(P,m7r));let I=Math.sqrt((k-C)*(k-C)+(F-D)*(F-D)),L=y7r*I,z=Math.min(v7r*y*P,L),B=Math.atan2(F-D,k-C),O=k-z*Math.cos(B-XN),W=F-z*Math.sin(B-XN),X=k-z*Math.cos(B+XN),Z=F-z*Math.sin(B+XN),H="M"+C+","+D+"L"+k+","+F+"L"+O+","+W+"L"+k+","+F+"L"+X+","+Z;A.attr("d",H)});var m=s.marker||{},w=m.line||{};let _=d7r.isArrayOrTypedArray(m.color)?void 0:m.color;MD.lineGroupStyle(c,w.width,_,w.dash),p7r(c,s);var b=q1.select(a).selectAll("g.text").data([i]);b.enter().append("g").classed("text",!0),MD.setClipUrl(b,r.layerClipId,e);var M=b.selectAll("g.textpoint").data(i);if(M.enter().append("g").classed("textpoint",!0).append("text"),M.exit().remove(),M.each(function(T){var A=q1.select(this),g=MD.translatePoint(T,A.select("text"),l,u);g||A.remove()}),M.selectAll("text").call(MD.textPointStyle,s,e).each(function(T){var A=l.c2p(T.x),g=u.c2p(T.y);q1.select(this).selectAll("tspan.line").each(function(){q1.select(this).attr({x:A,y:g})})}),o&&o.duration>0){var x=q1.transition().duration(o.duration).ease(o.easing);c.transition(x).style("opacity",1)}}});var Bmt=K((I0i,Rmt)=>{"use strict";var Imt=St(),g7r=Gf(),x7r=lA();function b7r(e,t,r,i,n,a){let o=n-r,s=a-i,l=o*o+s*s;if(!l)return Math.sqrt((e-r)*(e-r)+(t-i)*(t-i));var u=((e-r)*o+(t-i)*s)/l;u=Math.max(0,Math.min(1,u));let f=r+u*o,c=i+u*s;return Math.sqrt((e-f)*(e-f)+(t-c)*(t-c))}Rmt.exports=function(t,r,i,n){var a=t.cd,o=a[0].trace,s=t.xa,l=t.ya,u=s.c2p(r),f=l.c2p(i),c=function(_){return _._px0===void 0?1/0:b7r(u,f,_._px0,_._py0,_._px1,_._py1)};if(g7r.getClosest(a,c,t),t.index!==!1){var h=a[t.index],d=s.c2p(h.x,!0),p=l.c2p(h.y,!0),v=Math.sqrt((u-d)*(u-d)+(f-p)*(f-p));t.index=h.i;var y=o.u?o.u[h.i]:0,m=o.v?o.v[h.i]:0,w="u: "+y+", v: "+m;return Imt.extendFlat(t,{color:x7r(o,h),x0:d-3,x1:d+3,xLabelVal:h.x,y0:p-3,y1:p+3,yLabelVal:h.y,uLabelVal:y,vLabelVal:m,extraText:w,spikeDistance:v,hovertemplate:o.hovertemplate}),Imt.fillText(h,o,t),[t]}}});var Nmt=K((R0i,Omt)=>{"use strict";var ZN=Cs(),qmt=St();Omt.exports=function(t,r,i){var n={},a={_fullLayout:i},o=ZN.getFromTrace(a,r,"x"),s=ZN.getFromTrace(a,r,"y"),l=t.x,u=t.y;n.xLabel=ZN.tickText(o,o.c2l(l),!0).text,n.yLabel=ZN.tickText(s,s.c2l(u),!0).text;var f=r.u?r.u[t.i]:0,c=r.v?r.v[t.i]:0,h=r.uhoverformat,d=r.vhoverformat;return n.uLabel=h?qmt.numberFormat(h)(f):String(f),n.vLabel=d?qmt.numberFormat(d)(c):String(c),n}});var Umt=K((B0i,Vmt)=>{"use strict";Vmt.exports=function(t,r,i,n,a){return t.x=r.x,t.y=r.y,t.u=i.u?i.u[a]:void 0,t.v=i.v?i.v[a]:void 0,t}});var Hmt=K((q0i,Gmt)=>{"use strict";Gmt.exports={moduleType:"trace",name:"quiver",basePlotModule:gc(),categories:["cartesian","svg","showLegend","scatter-like","zoomScale"],attributes:zle(),supplyDefaults:Amt(),calc:Smt(),crossTraceCalc:kmt(),plot:zmt(),style:YN().style,styleOnSelect:YN().styleOnSelect,hoverPoints:Bmt(),formatLabels:Nmt(),eventData:Umt(),selectPoints:Rb(),colorbar:e0(),animatable:!0,meta:{}}});var Wmt=K((O0i,jmt)=>{"use strict";jmt.exports=Hmt()});var B0=K((N0i,Ymt)=>{var JN=Sh();function $mt(){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={}}JN($mt.prototype,{instance:function(e,t){e=(e||"gregorian").toLowerCase(),t=t||"";var r=this._localCals[e+"-"+t];if(!r&&this.calendars[e]&&(r=new this.calendars[e](t),this._localCals[e+"-"+t]=r),!r)throw(this.local.invalidCalendar||this.regionalOptions[""].invalidCalendar).replace(/\{0\}/,e);return r},newDate:function(e,t,r,i,n){return i=(e!=null&&e.year?e.calendar():typeof i=="string"?this.instance(i,n):i)||this.instance(),i.newDate(e,t,r)},substituteDigits:function(e){return function(t){return(t+"").replace(/[0-9]/g,function(r){return e[r]})}},substituteChineseDigits:function(e,t){return function(r){for(var i="",n=0;r>0;){var a=r%10;i=(a===0?"":e[a]+t[n])+i,n++,r=Math.floor(r/10)}return i.indexOf(e[1]+t[1])===0&&(i=i.substr(1)),i||e[0]}}});function qle(e,t,r,i){if(this._calendar=e,this._year=t,this._month=r,this._day=i,this._calendar._validateLevel===0&&!this._calendar.isValid(this._year,this._month,this._day))throw(Zl.local.invalidDate||Zl.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name)}function KN(e,t){return e=""+e,"000000".substring(0,t-e.length)+e}JN(qle.prototype,{newDate:function(e,t,r){return this._calendar.newDate(e==null?this:e,t,r)},year:function(e){return arguments.length===0?this._year:this.set(e,"y")},month:function(e){return arguments.length===0?this._month:this.set(e,"m")},day:function(e){return arguments.length===0?this._day:this.set(e,"d")},date:function(e,t,r){if(!this._calendar.isValid(e,t,r))throw(Zl.local.invalidDate||Zl.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name);return this._year=e,this._month=t,this._day=r,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(e,t){return this._calendar.add(this,e,t)},set:function(e,t){return this._calendar.set(this,e,t)},compareTo:function(e){if(this._calendar.name!==e._calendar.name)throw(Zl.local.differentCalendars||Zl.regionalOptions[""].differentCalendars).replace(/\{0\}/,this._calendar.local.name).replace(/\{1\}/,e._calendar.local.name);var t=this._year!==e._year?this._year-e._year:this._month!==e._month?this.monthOfYear()-e.monthOfYear():this._day-e._day;return t===0?0:t<0?-1:1},calendar:function(){return this._calendar},toJD:function(){return this._calendar.toJD(this)},fromJD:function(e){return this._calendar.fromJD(e)},toJSDate:function(){return this._calendar.toJSDate(this)},fromJSDate:function(e){return this._calendar.fromJSDate(e)},toString:function(){return(this.year()<0?"-":"")+KN(Math.abs(this.year()),4)+"-"+KN(this.month(),2)+"-"+KN(this.day(),2)}});function Ole(){this.shortYearCutoff="+10"}JN(Ole.prototype,{_validateLevel:0,newDate:function(e,t,r){return e==null?this.today():(e.year&&(this._validate(e,t,r,Zl.local.invalidDate||Zl.regionalOptions[""].invalidDate),r=e.day(),t=e.month(),e=e.year()),new qle(this,e,t,r))},today:function(){return this.fromJSDate(new Date)},epoch:function(e){var t=this._validate(e,this.minMonth,this.minDay,Zl.local.invalidYear||Zl.regionalOptions[""].invalidYear);return t.year()<0?this.local.epochs[0]:this.local.epochs[1]},formatYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,Zl.local.invalidYear||Zl.regionalOptions[""].invalidYear);return(t.year()<0?"-":"")+KN(Math.abs(t.year()),4)},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Zl.local.invalidYear||Zl.regionalOptions[""].invalidYear),12},monthOfYear:function(e,t){var r=this._validate(e,t,this.minDay,Zl.local.invalidMonth||Zl.regionalOptions[""].invalidMonth);return(r.month()+this.monthsInYear(r)-this.firstMonth)%this.monthsInYear(r)+this.minMonth},fromMonthOfYear:function(e,t){var r=(t+this.firstMonth-2*this.minMonth)%this.monthsInYear(e)+this.minMonth;return this._validate(e,r,this.minDay,Zl.local.invalidMonth||Zl.regionalOptions[""].invalidMonth),r},daysInYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,Zl.local.invalidYear||Zl.regionalOptions[""].invalidYear);return this.leapYear(t)?366:365},dayOfYear:function(e,t,r){var i=this._validate(e,t,r,Zl.local.invalidDate||Zl.regionalOptions[""].invalidDate);return i.toJD()-this.newDate(i.year(),this.fromMonthOfYear(i.year(),this.minMonth),this.minDay).toJD()+1},daysInWeek:function(){return 7},dayOfWeek:function(e,t,r){var i=this._validate(e,t,r,Zl.local.invalidDate||Zl.regionalOptions[""].invalidDate);return(Math.floor(this.toJD(i))+2)%this.daysInWeek()},extraInfo:function(e,t,r){return this._validate(e,t,r,Zl.local.invalidDate||Zl.regionalOptions[""].invalidDate),{}},add:function(e,t,r){return this._validate(e,this.minMonth,this.minDay,Zl.local.invalidDate||Zl.regionalOptions[""].invalidDate),this._correctAdd(e,this._add(e,t,r),t,r)},_add:function(e,t,r){if(this._validateLevel++,r==="d"||r==="w"){var i=e.toJD()+t*(r==="w"?this.daysInWeek():1),n=e.calendar().fromJD(i);return this._validateLevel--,[n.year(),n.month(),n.day()]}try{var a=e.year()+(r==="y"?t:0),o=e.monthOfYear()+(r==="m"?t:0),n=e.day(),s=function(f){for(;oc-1+f.minMonth;)a++,o-=c,c=f.monthsInYear(a)};r==="y"?(e.month()!==this.fromMonthOfYear(a,o)&&(o=this.newDate(a,e.month(),this.minDay).monthOfYear()),o=Math.min(o,this.monthsInYear(a)),n=Math.min(n,this.daysInMonth(a,this.fromMonthOfYear(a,o)))):r==="m"&&(s(this),n=Math.min(n,this.daysInMonth(a,this.fromMonthOfYear(a,o))));var l=[a,this.fromMonthOfYear(a,o),n];return this._validateLevel--,l}catch(u){throw this._validateLevel--,u}},_correctAdd:function(e,t,r,i){if(!this.hasYearZero&&(i==="y"||i==="m")&&(t[0]===0||e.year()>0!=t[0]>0)){var n={y:[1,1,"y"],m:[1,this.monthsInYear(-1),"m"],w:[this.daysInWeek(),this.daysInYear(-1),"d"],d:[1,this.daysInYear(-1),"d"]}[i],a=r<0?-1:1;t=this._add(e,r*n[0]+a*n[1],n[2])}return e.date(t[0],t[1],t[2])},set:function(e,t,r){this._validate(e,this.minMonth,this.minDay,Zl.local.invalidDate||Zl.regionalOptions[""].invalidDate);var i=r==="y"?t:e.year(),n=r==="m"?t:e.month(),a=r==="d"?t:e.day();return(r==="y"||r==="m")&&(a=Math.min(a,this.daysInMonth(i,n))),e.date(i,n,a)},isValid:function(e,t,r){this._validateLevel++;var i=this.hasYearZero||e!==0;if(i){var n=this.newDate(e,t,this.minDay);i=t>=this.minMonth&&t-this.minMonth=this.minDay&&r-this.minDay13.5?13:1),u=n-(l>2.5?4716:4715);return u<=0&&u--,this.newDate(u,l,s)},toJSDate:function(e,t,r){var i=this._validate(e,t,r,Zl.local.invalidDate||Zl.regionalOptions[""].invalidDate),n=new Date(i.year(),i.month()-1,i.day());return n.setHours(0),n.setMinutes(0),n.setSeconds(0),n.setMilliseconds(0),n.setHours(n.getHours()>12?n.getHours()+2:0),n},fromJSDate:function(e){return this.newDate(e.getFullYear(),e.getMonth()+1,e.getDate())}});var Zl=Ymt.exports=new $mt;Zl.cdate=qle;Zl.baseCalendar=Ole;Zl.calendars.gregorian=Nle});var Xmt=K(()=>{var Vle=Sh(),jh=B0();Vle(jh.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"});jh.local=jh.regionalOptions[""];Vle(jh.cdate.prototype,{formatDate:function(e,t){return typeof e!="string"&&(t=e,e=""),this._calendar.formatDate(e||"",this,t)}});Vle(jh.baseCalendar.prototype,{UNIX_EPOCH:jh.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:1440*60,TICKS_EPOCH:jh.instance().jdEpoch,TICKS_PER_DAY:1440*60*1e7,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(e,t,r){if(typeof e!="string"&&(r=t,t=e,e=""),!t)return"";if(t.calendar()!==this)throw jh.local.invalidFormat||jh.regionalOptions[""].invalidFormat;e=e||this.local.dateFormat,r=r||{};for(var i=r.dayNamesShort||this.local.dayNamesShort,n=r.dayNames||this.local.dayNames,a=r.monthNumbers||this.local.monthNumbers,o=r.monthNamesShort||this.local.monthNamesShort,s=r.monthNames||this.local.monthNames,l=r.calculateWeek||this.local.calculateWeek,u=function(b,M){for(var x=1;_+x1},f=function(b,M,x,T){var A=""+M;if(u(b,T))for(;A.length1},w=function(C,k){var D=m(C,k),F=[2,3,D?4:2,D?4:2,10,11,20]["oyYJ@!".indexOf(C)+1],P=new RegExp("^-?\\d{1,"+F+"}"),I=t.substring(A).match(P);if(!I)throw(jh.local.missingNumberAt||jh.regionalOptions[""].missingNumberAt).replace(/\{0\}/,A);return A+=I[0].length,parseInt(I[0],10)},_=this,b=function(){if(typeof s=="function"){m("m");var C=s.call(_,t.substring(A));return A+=C.length,C}return w("m")},M=function(C,k,D,F){for(var P=m(C,F)?D:k,I=0;I-1){h=1,d=p;for(var S=this.daysInMonth(c,h);d>S;S=this.daysInMonth(c,h))h++,d-=S}return f>-1?this.fromJD(f):this.newDate(c,h,d)},determineDate:function(e,t,r,i,n){r&&typeof r!="object"&&(n=i,i=r,r=null),typeof i!="string"&&(n=i,i="");var a=this,o=function(s){try{return a.parseDate(i,s,n)}catch(c){}s=s.toLowerCase();for(var l=(s.match(/^c/)&&r?r.newDate():null)||a.today(),u=/([+-]?[0-9]+)\s*(d|w|m|y)?/g,f=u.exec(s);f;)l.add(parseInt(f[1],10),f[2]||"d"),f=u.exec(s);return l};return t=t?t.newDate():null,e=e==null?t:typeof e=="string"?o(e):typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?t:a.today().add(e,"d"):a.newDate(e),e}})});var Zmt=K(()=>{var Rx=B0(),_7r=Sh(),Ule=Rx.instance();function QN(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}QN.prototype=new Rx.baseCalendar;_7r(QN.prototype,{name:"Chinese",jdEpoch:17214255e-1,hasYearZero:!1,minMonth:0,firstMonth:0,minDay:1,regionalOptions:{"":{name:"Chinese",epochs:["BEC","EC"],monthNumbers:function(e,t){if(typeof e=="string"){var r=e.match(A7r);return r?r[0]:""}var i=this._validateYear(e),n=e.month(),a=""+this.toChineseMonth(i,n);return t&&a.length<2&&(a="0"+a),this.isIntercalaryMonth(i,n)&&(a+="i"),a},monthNames:function(e){if(typeof e=="string"){var t=e.match(T7r);return t?t[0]:""}var r=this._validateYear(e),i=e.month(),n=this.toChineseMonth(r,i),a=["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"][n-1];return this.isIntercalaryMonth(r,i)&&(a="\u95F0"+a),a},monthNamesShort:function(e){if(typeof e=="string"){var t=e.match(M7r);return t?t[0]:""}var r=this._validateYear(e),i=e.month(),n=this.toChineseMonth(r,i),a=["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"][n-1];return this.isIntercalaryMonth(r,i)&&(a="\u95F0"+a),a},parseMonth:function(e,t){e=this._validateYear(e);var r=parseInt(t),i;if(isNaN(r))t[0]==="\u95F0"&&(i=!0,t=t.substring(1)),t[t.length-1]==="\u6708"&&(t=t.substring(0,t.length-1)),r=1+["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"].indexOf(t);else{var n=t[t.length-1];i=n==="i"||n==="I"}var a=this.toMonthIndex(e,r,i);return a},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(e,t){if(e.year&&(e=e.year()),typeof e!="number"||e<1888||e>2111)throw t.replace(/\{0\}/,this.local.name);return e},toMonthIndex:function(e,t,r){var i=this.intercalaryMonth(e),n=r&&t!==i;if(n||t<1||t>12)throw Rx.local.invalidMonth.replace(/\{0\}/,this.local.name);var a;return i?!r&&t<=i?a=t-1:a=t:a=t-1,a},toChineseMonth:function(e,t){e.year&&(e=e.year(),t=e.month());var r=this.intercalaryMonth(e),i=r?12:11;if(t<0||t>i)throw Rx.local.invalidMonth.replace(/\{0\}/,this.local.name);var n;return r?t>13;return r},isIntercalaryMonth:function(e,t){e.year&&(e=e.year(),t=e.month());var r=this.intercalaryMonth(e);return!!r&&r===t},leapYear:function(e){return this.intercalaryMonth(e)!==0},weekOfYear:function(e,t,r){var i=this._validateYear(e,Rx.local.invalidyear),n=qx[i-qx[0]],a=n>>9&4095,o=n>>5&15,s=n&31,l;l=Ule.newDate(a,o,s),l.add(4-(l.dayOfWeek()||7),"d");var u=this.toJD(e,t,r)-l.toJD();return 1+Math.floor(u/7)},monthsInYear:function(e){return this.leapYear(e)?13:12},daysInMonth:function(e,t){e.year&&(t=e.month(),e=e.year()),e=this._validateYear(e);var r=Bx[e-Bx[0]],i=r>>13,n=i?12:11;if(t>n)throw Rx.local.invalidMonth.replace(/\{0\}/,this.local.name);var a=r&1<<12-t?30:29;return a},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(e,t,r){var i=this._validate(e,a,r,Rx.local.invalidDate);e=this._validateYear(i.year()),t=i.month(),r=i.day();var n=this.isIntercalaryMonth(e,t),a=this.toChineseMonth(e,t),o=E7r(e,a,r,n);return Ule.toJD(o.year,o.month,o.day)},fromJD:function(e){var t=Ule.fromJD(e),r=S7r(t.year(),t.month(),t.day()),i=this.toMonthIndex(r.year,r.month,r.isIntercalary);return this.newDate(r.year,i,r.day)},fromString:function(e){var t=e.match(w7r),r=this._validateYear(+t[1]),i=+t[2],n=!!t[3],a=this.toMonthIndex(r,i,n),o=+t[4];return this.newDate(r,a,o)},add:function(e,t,r){var i=e.year(),n=e.month(),a=this.isIntercalaryMonth(i,n),o=this.toChineseMonth(i,n),s=Object.getPrototypeOf(QN.prototype).add.call(this,e,t,r);if(r==="y"){var l=s.year(),u=s.month(),f=this.isIntercalaryMonth(l,o),c=a&&f?this.toMonthIndex(l,o,!0):this.toMonthIndex(l,o,!1);c!==u&&s.month(c)}return s}});var w7r=/^\s*(-?\d\d\d\d|\d\d)[-/](\d?\d)([iI]?)[-/](\d?\d)/m,A7r=/^\d?\d[iI]?/m,T7r=/^闰?十?[一二三四五六七八九]?月/m,M7r=/^闰?十?[一二三四五六七八九]?/m;Rx.calendars.chinese=QN;var Bx=[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],qx=[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 S7r(e,t,r,i){var n,a;if(typeof e=="object")n=e,a=t||{};else{var o=typeof e=="number"&&e>=1888&&e<=2111;if(!o)throw new Error("Solar year outside range 1888-2111");var s=typeof t=="number"&&t>=1&&t<=12;if(!s)throw new Error("Solar month outside range 1 - 12");var l=typeof r=="number"&&r>=1&&r<=31;if(!l)throw new Error("Solar day outside range 1 - 31");n={year:e,month:t,day:r},a=i||{}}var u=qx[n.year-qx[0]],f=n.year<<9|n.month<<5|n.day;a.year=f>=u?n.year:n.year-1,u=qx[a.year-qx[0]];var c=u>>9&4095,h=u>>5&15,d=u&31,p,v=new Date(c,h-1,d),y=new Date(n.year,n.month-1,n.day);p=Math.round((y-v)/(24*3600*1e3));var m=Bx[a.year-Bx[0]],w;for(w=0;w<13;w++){var _=m&1<<12-w?30:29;if(p<_)break;p-=_}var b=m>>13;return!b||w=1888&&e<=2111;if(!s)throw new Error("Lunar year outside range 1888-2111");var l=typeof t=="number"&&t>=1&&t<=12;if(!l)throw new Error("Lunar month outside range 1 - 12");var u=typeof r=="number"&&r>=1&&r<=30;if(!u)throw new Error("Lunar day outside range 1 - 30");var f;typeof i=="object"?(f=!1,a=i):(f=!!i,a=n||{}),o={year:e,month:t,day:r,isIntercalary:f}}var c;c=o.day-1;var h=Bx[o.year-Bx[0]],d=h>>13,p;d&&(o.month>d||o.isIntercalary)?p=o.month:p=o.month-1;for(var v=0;v>9&4095,_=m>>5&15,b=m&31,M=new Date(w,_-1,b+c);return a.year=M.getFullYear(),a.month=1+M.getMonth(),a.day=M.getDate(),a}});var Kmt=K(()=>{var j3=B0(),k7r=Sh();function Gle(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}Gle.prototype=new j3.baseCalendar;k7r(Gle.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(r){var t=this._validate(r,this.minMonth,this.minDay,j3.local.invalidYear),r=t.year()+(t.year()<0?1:0);return r%4===3||r%4===-1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,j3.local.invalidYear||j3.regionalOptions[""].invalidYear),13},weekOfYear:function(e,t,r){var i=this.newDate(e,t,r);return i.add(-i.dayOfWeek(),"d"),Math.floor((i.dayOfYear()-1)/7)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,j3.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===13&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(e,t,r){var i=this._validate(e,t,r,j3.local.invalidDate);return e=i.year(),e<0&&e++,i.day()+(i.month()-1)*30+(e-1)*365+Math.floor(e/4)+this.jdEpoch-1},fromJD:function(e){var t=Math.floor(e)+.5-this.jdEpoch,r=Math.floor((t-Math.floor((t+366)/1461))/365)+1;r<=0&&r--,t=Math.floor(e)+.5-this.newDate(r,1,1).toJD();var i=Math.floor(t/30)+1,n=t-(i-1)*30+1;return this.newDate(r,i,n)}});j3.calendars.coptic=Gle});var Jmt=K(()=>{var xg=B0(),C7r=Sh();function Hle(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}Hle.prototype=new xg.baseCalendar;C7r(Hle.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(e){return this._validate(e,this.minMonth,this.minDay,xg.local.invalidYear),!1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,xg.local.invalidYear),13},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,xg.local.invalidYear),400},weekOfYear:function(e,t,r){var i=this.newDate(e,t,r);return i.add(-i.dayOfWeek(),"d"),Math.floor((i.dayOfYear()-1)/8)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,xg.local.invalidMonth);return this.daysPerMonth[r.month()-1]},daysInWeek:function(){return 8},dayOfWeek:function(e,t,r){var i=this._validate(e,t,r,xg.local.invalidDate);return(i.day()+1)%8},weekDay:function(e,t,r){var i=this.dayOfWeek(e,t,r);return i>=2&&i<=6},extraInfo:function(e,t,r){var i=this._validate(e,t,r,xg.local.invalidDate);return{century:D7r[Math.floor((i.year()-1)/100)+1]||""}},toJD:function(e,t,r){var i=this._validate(e,t,r,xg.local.invalidDate);return e=i.year()+(i.year()<0?1:0),t=i.month(),r=i.day(),r+(t>1?16:0)+(t>2?(t-2)*32:0)+(e-1)*400+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e+.5)-Math.floor(this.jdEpoch)-1;var t=Math.floor(e/400)+1;e-=(t-1)*400,e+=e>15?16:0;var r=Math.floor(e/32)+1,i=e-(r-1)*32+1;return this.newDate(t<=0?t-1:t,r,i)}});var D7r={20:"Fruitbat",21:"Anchovy"};xg.calendars.discworld=Hle});var Qmt=K(()=>{var W3=B0(),F7r=Sh();function jle(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}jle.prototype=new W3.baseCalendar;F7r(jle.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(r){var t=this._validate(r,this.minMonth,this.minDay,W3.local.invalidYear),r=t.year()+(t.year()<0?1:0);return r%4===3||r%4===-1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,W3.local.invalidYear||W3.regionalOptions[""].invalidYear),13},weekOfYear:function(e,t,r){var i=this.newDate(e,t,r);return i.add(-i.dayOfWeek(),"d"),Math.floor((i.dayOfYear()-1)/7)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,W3.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===13&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(e,t,r){var i=this._validate(e,t,r,W3.local.invalidDate);return e=i.year(),e<0&&e++,i.day()+(i.month()-1)*30+(e-1)*365+Math.floor(e/4)+this.jdEpoch-1},fromJD:function(e){var t=Math.floor(e)+.5-this.jdEpoch,r=Math.floor((t-Math.floor((t+366)/1461))/365)+1;r<=0&&r--,t=Math.floor(e)+.5-this.newDate(r,1,1).toJD();var i=Math.floor(t/30)+1,n=t-(i-1)*30+1;return this.newDate(r,i,n)}});W3.calendars.ethiopian=jle});var eyt=K(()=>{var Ox=B0(),L7r=Sh();function Wle(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}Wle.prototype=new Ox.baseCalendar;L7r(Wle.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(e){var t=this._validate(e,this.minMonth,this.minDay,Ox.local.invalidYear);return this._leapYear(t.year())},_leapYear:function(e){return e=e<0?e+1:e,eV(e*7+1,19)<7},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Ox.local.invalidYear),this._leapYear(e.year?e.year():e)?13:12},weekOfYear:function(e,t,r){var i=this.newDate(e,t,r);return i.add(-i.dayOfWeek(),"d"),Math.floor((i.dayOfYear()-1)/7)+1},daysInYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,Ox.local.invalidYear);return e=t.year(),this.toJD(e===-1?1:e+1,7,1)-this.toJD(e,7,1)},daysInMonth:function(e,t){return e.year&&(t=e.month(),e=e.year()),this._validate(e,t,this.minDay,Ox.local.invalidMonth),t===12&&this.leapYear(e)||t===8&&eV(this.daysInYear(e),10)===5?30:t===9&&eV(this.daysInYear(e),10)===3?29:this.daysPerMonth[t-1]},weekDay:function(e,t,r){return this.dayOfWeek(e,t,r)!==6},extraInfo:function(e,t,r){var i=this._validate(e,t,r,Ox.local.invalidDate);return{yearType:(this.leapYear(i)?"embolismic":"common")+" "+["deficient","regular","complete"][this.daysInYear(i)%10-3]}},toJD:function(e,t,r){var i=this._validate(e,t,r,Ox.local.invalidDate);e=i.year(),t=i.month(),r=i.day();var n=e<=0?e+1:e,a=this.jdEpoch+this._delay1(n)+this._delay2(n)+r+1;if(t<7){for(var o=7;o<=this.monthsInYear(e);o++)a+=this.daysInMonth(e,o);for(var o=1;o=this.toJD(t===-1?1:t+1,7,1);)t++;for(var r=ethis.toJD(t,r,this.daysInMonth(t,r));)r++;var i=e-this.toJD(t,r,1)+1;return this.newDate(t,r,i)}});function eV(e,t){return e-t*Math.floor(e/t)}Ox.calendars.hebrew=Wle});var tyt=K(()=>{var SD=B0(),P7r=Sh();function $le(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}$le.prototype=new SD.baseCalendar;P7r($le.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\u012Bs","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(e){var t=this._validate(e,this.minMonth,this.minDay,SD.local.invalidYear);return(t.year()*11+14)%30<11},weekOfYear:function(e,t,r){var i=this.newDate(e,t,r);return i.add(-i.dayOfWeek(),"d"),Math.floor((i.dayOfYear()-1)/7)+1},daysInYear:function(e){return this.leapYear(e)?355:354},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,SD.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===12&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return this.dayOfWeek(e,t,r)!==5},toJD:function(e,t,r){var i=this._validate(e,t,r,SD.local.invalidDate);return e=i.year(),t=i.month(),r=i.day(),e=e<=0?e+1:e,r+Math.ceil(29.5*(t-1))+(e-1)*354+Math.floor((3+11*e)/30)+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e)+.5;var t=Math.floor((30*(e-this.jdEpoch)+10646)/10631);t=t<=0?t-1:t;var r=Math.min(12,Math.ceil((e-29-this.toJD(t,1,1))/29.5)+1),i=e-this.toJD(t,r,1)+1;return this.newDate(t,r,i)}});SD.calendars.islamic=$le});var ryt=K(()=>{var ED=B0(),z7r=Sh();function Yle(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}Yle.prototype=new ED.baseCalendar;z7r(Yle.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(r){var t=this._validate(r,this.minMonth,this.minDay,ED.local.invalidYear),r=t.year()<0?t.year()+1:t.year();return r%4===0},weekOfYear:function(e,t,r){var i=this.newDate(e,t,r);return i.add(4-(i.dayOfWeek()||7),"d"),Math.floor((i.dayOfYear()-1)/7)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,ED.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===2&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(e,t,r){var i=this._validate(e,t,r,ED.local.invalidDate);return e=i.year(),t=i.month(),r=i.day(),e<0&&e++,t<=2&&(e--,t+=12),Math.floor(365.25*(e+4716))+Math.floor(30.6001*(t+1))+r-1524.5},fromJD:function(e){var t=Math.floor(e+.5),r=t+1524,i=Math.floor((r-122.1)/365.25),n=Math.floor(365.25*i),a=Math.floor((r-n)/30.6001),o=a-Math.floor(a<14?1:13),s=i-Math.floor(o>2?4716:4715),l=r-n-Math.floor(30.6001*a);return s<=0&&s--,this.newDate(s,o,l)}});ED.calendars.julian=Yle});var nyt=K(()=>{var Bv=B0(),I7r=Sh();function Zle(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}Zle.prototype=new Bv.baseCalendar;I7r(Zle.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(e){return this._validate(e,this.minMonth,this.minDay,Bv.local.invalidYear),!1},formatYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,Bv.local.invalidYear);e=t.year();var r=Math.floor(e/400);e=e%400,e+=e<0?400:0;var i=Math.floor(e/20);return r+"."+i+"."+e%20},forYear:function(e){if(e=e.split("."),e.length<3)throw"Invalid Mayan year";for(var t=0,r=0;r19||r>0&&i<0)throw"Invalid Mayan year";t=t*20+i}return t},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Bv.local.invalidYear),18},weekOfYear:function(e,t,r){return this._validate(e,t,r,Bv.local.invalidDate),0},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Bv.local.invalidYear),360},daysInMonth:function(e,t){return this._validate(e,t,this.minDay,Bv.local.invalidMonth),20},daysInWeek:function(){return 5},dayOfWeek:function(e,t,r){var i=this._validate(e,t,r,Bv.local.invalidDate);return i.day()},weekDay:function(e,t,r){return this._validate(e,t,r,Bv.local.invalidDate),!0},extraInfo:function(e,t,r){var i=this._validate(e,t,r,Bv.local.invalidDate),n=i.toJD(),a=this._toHaab(n),o=this._toTzolkin(n);return{haabMonthName:this.local.haabMonths[a[0]-1],haabMonth:a[0],haabDay:a[1],tzolkinDayName:this.local.tzolkinMonths[o[0]-1],tzolkinDay:o[0],tzolkinTrecena:o[1]}},_toHaab:function(e){e-=this.jdEpoch;var t=Xle(e+8+340,365);return[Math.floor(t/20)+1,Xle(t,20)]},_toTzolkin:function(e){return e-=this.jdEpoch,[iyt(e+20,20),iyt(e+4,13)]},toJD:function(e,t,r){var i=this._validate(e,t,r,Bv.local.invalidDate);return i.day()+i.month()*20+i.year()*360+this.jdEpoch},fromJD:function(e){e=Math.floor(e)+.5-this.jdEpoch;var t=Math.floor(e/360);e=e%360,e+=e<0?360:0;var r=Math.floor(e/20),i=e%20;return this.newDate(t,r,i)}});function Xle(e,t){return e-t*Math.floor(e/t)}function iyt(e,t){return Xle(e-1,t)+1}Bv.calendars.mayan=Zle});var oyt=K(()=>{var $3=B0(),R7r=Sh();function Kle(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}Kle.prototype=new $3.baseCalendar;var ayt=$3.instance("gregorian");R7r(Kle.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(e){var t=this._validate(e,this.minMonth,this.minDay,$3.local.invalidYear||$3.regionalOptions[""].invalidYear);return ayt.leapYear(t.year()+(t.year()<1?1:0)+1469)},weekOfYear:function(e,t,r){var i=this.newDate(e,t,r);return i.add(1-(i.dayOfWeek()||7),"d"),Math.floor((i.dayOfYear()-1)/7)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,$3.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===12&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(n,t,r){var i=this._validate(n,t,r,$3.local.invalidMonth),n=i.year();n<0&&n++;for(var a=i.day(),o=1;o=this.toJD(t+1,1,1);)t++;for(var r=e-Math.floor(this.toJD(t,1,1)+.5)+1,i=1;r>this.daysInMonth(t,i);)r-=this.daysInMonth(t,i),i++;return this.newDate(t,i,r)}});$3.calendars.nanakshahi=Kle});var syt=K(()=>{var Y3=B0(),B7r=Sh();function Jle(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}Jle.prototype=new Y3.baseCalendar;B7r(Jle.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(e){return this.daysInYear(e)!==this.daysPerYear},weekOfYear:function(e,t,r){var i=this.newDate(e,t,r);return i.add(-i.dayOfWeek(),"d"),Math.floor((i.dayOfYear()-1)/7)+1},daysInYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,Y3.local.invalidYear);if(e=t.year(),typeof this.NEPALI_CALENDAR_DATA[e]=="undefined")return this.daysPerYear;for(var r=0,i=this.minMonth;i<=12;i++)r+=this.NEPALI_CALENDAR_DATA[e][i];return r},daysInMonth:function(e,t){return e.year&&(t=e.month(),e=e.year()),this._validate(e,t,this.minDay,Y3.local.invalidMonth),typeof this.NEPALI_CALENDAR_DATA[e]=="undefined"?this.daysPerMonth[t-1]:this.NEPALI_CALENDAR_DATA[e][t]},weekDay:function(e,t,r){return this.dayOfWeek(e,t,r)!==6},toJD:function(e,t,r){var i=this._validate(e,t,r,Y3.local.invalidDate);e=i.year(),t=i.month(),r=i.day();var n=Y3.instance(),a=0,o=t,s=e;this._createMissingCalendarData(e);var l=e-(o>9||o===9&&r>=this.NEPALI_CALENDAR_DATA[s][0]?56:57);for(t!==9&&(a=r,o--);o!==9;)o<=0&&(o=12,s--),a+=this.NEPALI_CALENDAR_DATA[s][o],o--;return t===9?(a+=r-this.NEPALI_CALENDAR_DATA[s][0],a<0&&(a+=n.daysInYear(l))):a+=this.NEPALI_CALENDAR_DATA[s][9]-this.NEPALI_CALENDAR_DATA[s][0],n.newDate(l,1,1).add(a,"d").toJD()},fromJD:function(e){var t=Y3.instance(),r=t.fromJD(e),i=r.year(),n=r.dayOfYear(),a=i+56;this._createMissingCalendarData(a);for(var o=9,s=this.NEPALI_CALENDAR_DATA[a][0],l=this.NEPALI_CALENDAR_DATA[a][o]-s+1;n>l;)o++,o>12&&(o=1,a++),l+=this.NEPALI_CALENDAR_DATA[a][o];var u=this.NEPALI_CALENDAR_DATA[a][o]-(l-n);return this.newDate(a,o,u)},_createMissingCalendarData:function(e){var t=this.daysPerMonth.slice(0);t.unshift(17);for(var r=e-1;r{var BT=B0(),q7r=Sh();function rV(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}function tV(e){var t=e-475;e<0&&t++;var r=.242197,i=r*t,n=r*(t+1),a=i-Math.floor(i),o=n-Math.floor(n);return a>o}rV.prototype=new BT.baseCalendar;q7r(rV.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","Dey","Bahman","Esfand"],monthNamesShort:["Far","Ord","Kho","Tir","Mor","Sha","Meh","Aba","Aza","Dey","Bah","Esf"],dayNames:["Yekshanbeh","Doshanbeh","Seshanbeh","Chah\u0101rshanbeh","Panjshanbeh","Jom'eh","Shanbeh"],dayNamesShort:["Yek","Do","Se","Cha","Panj","Jom","Sha"],dayNamesMin:["Ye","Do","Se","Ch","Pa","Jo","Sh"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,BT.local.invalidYear);return tV(t.year())},weekOfYear:function(e,t,r){var i=this.newDate(e,t,r);return i.add(-((i.dayOfWeek()+1)%7),"d"),Math.floor((i.dayOfYear()-1)/7)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,BT.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===12&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return this.dayOfWeek(e,t,r)!==5},toJD:function(e,t,r){var i=this._validate(e,t,r,BT.local.invalidDate);e=i.year(),t=i.month(),r=i.day();var n=0;if(e>0)for(var a=1;a0?e-1:e)*365+n+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e)+.5;var t=475+(e-this.toJD(475,1,1))/365.242197,r=Math.floor(t);r<=0&&r--,e>this.toJD(r,12,tV(r)?30:29)&&(r++,r===0&&r++);var i=e-this.toJD(r,1,1)+1,n=i<=186?Math.ceil(i/31):Math.ceil((i-6)/30),a=e-this.toJD(r,n,1)+1;return this.newDate(r,n,a)}});BT.calendars.persian=rV;BT.calendars.jalali=rV});var uyt=K(()=>{var X3=B0(),O7r=Sh(),iV=X3.instance();function Qle(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}Qle.prototype=new X3.baseCalendar;O7r(Qle.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(r){var t=this._validate(r,this.minMonth,this.minDay,X3.local.invalidYear),r=this._t2gYear(t.year());return iV.leapYear(r)},weekOfYear:function(n,t,r){var i=this._validate(n,this.minMonth,this.minDay,X3.local.invalidYear),n=this._t2gYear(i.year());return iV.weekOfYear(n,i.month(),i.day())},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,X3.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===2&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(n,t,r){var i=this._validate(n,t,r,X3.local.invalidDate),n=this._t2gYear(i.year());return iV.toJD(n,i.month(),i.day())},fromJD:function(e){var t=iV.fromJD(e),r=this._g2tYear(t.year());return this.newDate(r,t.month(),t.day())},_t2gYear:function(e){return e+this.yearsOffset+(e>=-this.yearsOffset&&e<=-1?1:0)},_g2tYear:function(e){return e-this.yearsOffset-(e>=1&&e<=this.yearsOffset?1:0)}});X3.calendars.taiwan=Qle});var fyt=K(()=>{var Z3=B0(),N7r=Sh(),nV=Z3.instance();function eue(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}eue.prototype=new Z3.baseCalendar;N7r(eue.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(r){var t=this._validate(r,this.minMonth,this.minDay,Z3.local.invalidYear),r=this._t2gYear(t.year());return nV.leapYear(r)},weekOfYear:function(n,t,r){var i=this._validate(n,this.minMonth,this.minDay,Z3.local.invalidYear),n=this._t2gYear(i.year());return nV.weekOfYear(n,i.month(),i.day())},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,Z3.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===2&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(n,t,r){var i=this._validate(n,t,r,Z3.local.invalidDate),n=this._t2gYear(i.year());return nV.toJD(n,i.month(),i.day())},fromJD:function(e){var t=nV.fromJD(e),r=this._g2tYear(t.year());return this.newDate(r,t.month(),t.day())},_t2gYear:function(e){return e-this.yearsOffset-(e>=1&&e<=this.yearsOffset?1:0)},_g2tYear:function(e){return e+this.yearsOffset+(e>=-this.yearsOffset&&e<=-1?1:0)}});Z3.calendars.thai=eue});var cyt=K(()=>{var K3=B0(),V7r=Sh();function tue(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}tue.prototype=new K3.baseCalendar;V7r(tue.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\u0101th\u0101\u2019","Yawm al-Arba\u2018\u0101\u2019","Yawm al-Kham\u012Bs","Yawm al-Jum\u2018a","Yawm al-Sabt"],dayNamesMin:["Ah","Ith","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!0}},leapYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,K3.local.invalidYear);return this.daysInYear(t.year())===355},weekOfYear:function(e,t,r){var i=this.newDate(e,t,r);return i.add(-i.dayOfWeek(),"d"),Math.floor((i.dayOfYear()-1)/7)+1},daysInYear:function(e){for(var t=0,r=1;r<=12;r++)t+=this.daysInMonth(e,r);return t},daysInMonth:function(e,t){for(var r=this._validate(e,t,this.minDay,K3.local.invalidMonth),i=r.toJD()-24e5+.5,n=0,a=0;ai)return Nx[n]-Nx[n-1];n++}return 30},weekDay:function(e,t,r){return this.dayOfWeek(e,t,r)!==5},toJD:function(e,t,r){var i=this._validate(e,t,r,K3.local.invalidDate),n=12*(i.year()-1)+i.month()-15292,a=i.day()+Nx[n-1]-1;return a+24e5-.5},fromJD:function(e){for(var t=e-24e5+.5,r=0,i=0;it);i++)r++;var n=r+15292,a=Math.floor((n-1)/12),o=a+1,s=n-12*a,l=t-Nx[r-1]+1;return this.newDate(o,s,l)},isValid:function(e,t,r){var i=K3.baseCalendar.prototype.isValid.apply(this,arguments);return i&&(e=e.year!=null?e.year:e,i=e>=1276&&e<=1500),i},_validate:function(e,t,r,i){var n=K3.baseCalendar.prototype._validate.apply(this,arguments);if(n.year<1276||n.year>1500)throw i.replace(/\{0\}/,this.local.name);return n}});K3.calendars.ummalqura=tue;var Nx=[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]});var dyt=K((ydi,hyt)=>{"use strict";hyt.exports=B0();Xmt();Zmt();Kmt();Jmt();Qmt();eyt();tyt();ryt();nyt();oyt();syt();lyt();uyt();fyt();cyt()});var byt=K((gdi,xyt)=>{"use strict";var vyt=dyt(),kD=St(),myt=(Il(),or(Bl)),U7r=myt.EPOCHJD,G7r=myt.ONEDAY,nue={valType:"enumerated",values:kD.sortObjectKeys(vyt.calendars),editType:"calc",dflt:"gregorian"},yyt=function(e,t,r,i){var n={};return n[r]=nue,kD.coerce(e,t,n,r,i)},H7r=function(e,t,r,i){for(var n=0;n{"use strict";_yt.exports=byt()});var Z7r=K((bdi,Tyt)=>{var Ayt=N5e();Ayt.register([UTe(),C6e(),jMe(),hSe(),SSe(),bEe(),PEe(),wke(),Kke(),PCe(),xDe(),jIe(),zRe(),T7e(),cqe(),Uqe(),hOe(),TNe(),GNe(),sVe(),xVe(),PVe(),YVe(),fUe(),$Ge(),dHe(),HZe(),$Ke(),oQe(),LQe(),rft(),yft(),Vft(),Qct(),wht(),r0t(),Tdt(),Xdt(),mpt(),Upt(),rvt(),e1t(),_1t(),N1t(),bmt(),Wmt(),wyt()]);Tyt.exports=Ayt});return Z7r();})(); /*! * The buffer module from node.js, for the browser. * diff --git a/dist/plotly-with-meta.js b/dist/plotly-with-meta.js index 28466740c6a..3d7ddfab62d 100644 --- a/dist/plotly-with-meta.js +++ b/dist/plotly-with-meta.js @@ -1,5 +1,5 @@ /** -* plotly.js v4.1.2 +* plotly.js v4.2.0 * Copyright 2012-2026, Plotly, Inc. * All rights reserved. * Licensed under the MIT license @@ -146,7 +146,7 @@ var Plotly = (() => { var require_version = __commonJS({ "src/version.js"(exports) { "use strict"; - exports.version = "4.1.2"; + exports.version = "4.2.0"; } }); @@ -9672,7 +9672,7 @@ var Plotly = (() => { editType: "none", description: [ "Sets the horizontal alignment of the text content within hover label box.", - "Has an effect only if the hover label text spans more two or more lines" + "Has an effect only if the hover label text spans two or more lines" ].join(" ") }, namelength: { @@ -18831,9 +18831,9 @@ var Plotly = (() => { var require_maplibre_gl = __commonJS({ "node_modules/maplibre-gl/dist/maplibre-gl.css"() { (function() { - if (!document.getElementById("ce8d464691048653ffe3a57c6c18ab566e8366f186677868cf724621a857b4fe")) { + if (!document.getElementById("9f215cf04c5486422605d13261cb87401f4e7763b6296af81e98efbc0130da53")) { var e58 = document.createElement("style"); - e58.id = "ce8d464691048653ffe3a57c6c18ab566e8366f186677868cf724621a857b4fe"; + e58.id = "9f215cf04c5486422605d13261cb87401f4e7763b6296af81e98efbc0130da53"; e58.textContent = `.maplibregl-map{font:12px/20px Helvetica Neue,Arial,Helvetica,sans-serif;overflow:hidden;position:relative;-webkit-tap-highlight-color:rgb(0 0 0/0);-webkit-touch-callout:none}.maplibregl-canvas{position:absolute;left:0;top:0}.maplibregl-map:fullscreen{width:100%;height:100%}.maplibregl-ctrl-group button.maplibregl-ctrl-compass{touch-action:none}.maplibregl-canvas-container.maplibregl-interactive,.maplibregl-ctrl-group button.maplibregl-ctrl-compass{cursor:grab;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-canvas-container.maplibregl-interactive.maplibregl-track-pointer{cursor:pointer}.maplibregl-canvas-container.maplibregl-interactive:active,.maplibregl-ctrl-group button.maplibregl-ctrl-compass:active{cursor:grabbing}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-canvas-container.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:pinch-zoom}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:none}.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures,.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-ctrl-bottom-left,.maplibregl-ctrl-bottom-right,.maplibregl-ctrl-top-left,.maplibregl-ctrl-top-right{position:absolute;pointer-events:none;z-index:2}.maplibregl-ctrl-top-left{top:0;left:0}.maplibregl-ctrl-top-right{top:0;right:0}.maplibregl-ctrl-bottom-left{bottom:0;left:0}.maplibregl-ctrl-bottom-right{right:0;bottom:0}.maplibregl-ctrl{clear:both;pointer-events:auto;transform:translate(0)}.maplibregl-ctrl-top-left .maplibregl-ctrl{margin:10px 0 0 10px;float:left}.maplibregl-ctrl-top-right .maplibregl-ctrl{margin:10px 10px 0 0;float:right}.maplibregl-ctrl-bottom-left .maplibregl-ctrl{margin:0 0 10px 10px;float:left}.maplibregl-ctrl-bottom-right .maplibregl-ctrl{margin:0 10px 10px 0;float:right}.maplibregl-ctrl-group{border-radius:4px;background:#fff}.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px rgba(0,0,0,.1)}@media (forced-colors:active){.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px ButtonText}}.maplibregl-ctrl-group button{width:29px;height:29px;display:block;padding:0;outline:none;border:0;box-sizing:border-box;background-color:transparent;cursor:pointer}.maplibregl-ctrl button{-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-ctrl-group button+button{border-top:1px solid #ddd}.maplibregl-ctrl button .maplibregl-ctrl-icon{display:block;width:100%;height:100%;background-repeat:no-repeat;background-position:50%}@media (forced-colors:active){.maplibregl-ctrl-icon{background-color:transparent}.maplibregl-ctrl-group button+button{border-top:1px solid ButtonText}}.maplibregl-ctrl button::-moz-focus-inner{border:0;padding:0}.maplibregl-ctrl-attrib-button:focus,.maplibregl-ctrl-group button:focus{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl button:disabled{cursor:not-allowed}.maplibregl-ctrl button:disabled .maplibregl-ctrl-icon{opacity:.25}@media (hover:hover){.maplibregl-ctrl button:not(:disabled):hover{background-color:rgba(0,0,0,.05)}}.maplibregl-ctrl button:not(:disabled):active{background-color:rgba(0,0,0,.05)}.maplibregl-ctrl-group button:focus:focus-visible{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl-group button:focus:not(:focus-visible){box-shadow:none}.maplibregl-ctrl-group button:focus:first-child{border-radius:4px 4px 0 0}.maplibregl-ctrl-group button:focus:last-child{border-radius:0 0 4px 4px}.maplibregl-ctrl-group button:focus:only-child{border-radius:inherit}.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M10%2013c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h9c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M14.5%208.5c-.75%200-1.5.75-1.5%201.5v3h-3c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h3v3c0%20.75.75%201.5%201.5%201.5S16%2019.75%2016%2019v-3h3c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013h-3v-3c0-.75-.75-1.5-1.5-1.5%22%2F%3E%3C%2Fsvg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M10%2013c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h9c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M14.5%208.5c-.75%200-1.5.75-1.5%201.5v3h-3c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h3v3c0%20.75.75%201.5%201.5%201.5S16%2019.75%2016%2019v-3h3c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013h-3v-3c0-.75-.75-1.5-1.5-1.5%22%2F%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M10%2013c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h9c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M14.5%208.5c-.75%200-1.5.75-1.5%201.5v3h-3c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h3v3c0%20.75.75%201.5%201.5%201.5S16%2019.75%2016%2019v-3h3c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013h-3v-3c0-.75-.75-1.5-1.5-1.5%22%2F%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M24%2016v5.5c0%201.75-.75%202.5-2.5%202.5H16v-1l3-1.5-4-5.5%201-1%205.5%204%201.5-3zM6%2016l1.5%203%205.5-4%201%201-4%205.5%203%201.5v1H7.5C5.75%2024%205%2023.25%205%2021.5V16zm7-11v1l-3%201.5%204%205.5-1%201-5.5-4L6%2013H5V7.5C5%205.75%205.75%205%207.5%205zm11%202.5c0-1.75-.75-2.5-2.5-2.5H16v1l3%201.5-4%205.5%201%201%205.5-4%201.5%203h1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M18.5%2016c-1.75%200-2.5.75-2.5%202.5V24h1l1.5-3%205.5%204%201-1-4-5.5%203-1.5v-1zM13%2018.5c0-1.75-.75-2.5-2.5-2.5H5v1l3%201.5L4%2024l1%201%205.5-4%201.5%203h1zm3-8c0%201.75.75%202.5%202.5%202.5H24v-1l-3-1.5L25%205l-1-1-5.5%204L17%205h-1zM10.5%2013c1.75%200%202.5-.75%202.5-2.5V5h-1l-1.5%203L5%204%204%205l4%205.5L5%2012v1z%22%2F%3E%3C%2Fsvg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M24%2016v5.5c0%201.75-.75%202.5-2.5%202.5H16v-1l3-1.5-4-5.5%201-1%205.5%204%201.5-3zM6%2016l1.5%203%205.5-4%201%201-4%205.5%203%201.5v1H7.5C5.75%2024%205%2023.25%205%2021.5V16zm7-11v1l-3%201.5%204%205.5-1%201-5.5-4L6%2013H5V7.5C5%205.75%205.75%205%207.5%205zm11%202.5c0-1.75-.75-2.5-2.5-2.5H16v1l3%201.5-4%205.5%201%201%205.5-4%201.5%203h1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M18.5%2016c-1.75%200-2.5.75-2.5%202.5V24h1l1.5-3%205.5%204%201-1-4-5.5%203-1.5v-1zM13%2018.5c0-1.75-.75-2.5-2.5-2.5H5v1l3%201.5L4%2024l1%201%205.5-4%201.5%203h1zm3-8c0%201.75.75%202.5%202.5%202.5H24v-1l-3-1.5L25%205l-1-1-5.5%204L17%205h-1zM10.5%2013c1.75%200%202.5-.75%202.5-2.5V5h-1l-1.5%203L5%204%204%205l4%205.5L5%2012v1z%22%2F%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M24%2016v5.5c0%201.75-.75%202.5-2.5%202.5H16v-1l3-1.5-4-5.5%201-1%205.5%204%201.5-3zM6%2016l1.5%203%205.5-4%201%201-4%205.5%203%201.5v1H7.5C5.75%2024%205%2023.25%205%2021.5V16zm7-11v1l-3%201.5%204%205.5-1%201-5.5-4L6%2013H5V7.5C5%205.75%205.75%205%207.5%205zm11%202.5c0-1.75-.75-2.5-2.5-2.5H16v1l3%201.5-4%205.5%201%201%205.5-4%201.5%203h1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M18.5%2016c-1.75%200-2.5.75-2.5%202.5V24h1l1.5-3%205.5%204%201-1-4-5.5%203-1.5v-1zM13%2018.5c0-1.75-.75-2.5-2.5-2.5H5v1l3%201.5L4%2024l1%201%205.5-4%201.5%203h1zm3-8c0%201.75.75%202.5%202.5%202.5H24v-1l-3-1.5L25%205l-1-1-5.5%204L17%205h-1zM10.5%2013c1.75%200%202.5-.75%202.5-2.5V5h-1l-1.5%203L5%204%204%205l4%205.5L5%2012v1z%22%2F%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22m10.5%2014%204-8%204%208z%22%2F%3E%3Cpath%20fill%3D%22%23ccc%22%20d%3D%22m10.5%2016%204%208%204-8z%22%2F%3E%3C%2Fsvg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22m10.5%2014%204-8%204%208z%22%2F%3E%3Cpath%20fill%3D%22%23ccc%22%20d%3D%22m10.5%2016%204%208%204-8z%22%2F%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22m10.5%2014%204-8%204%208z%22%2F%3E%3Cpath%20fill%3D%22%23ccc%22%20d%3D%22m10.5%2016%204%208%204-8z%22%2F%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-globe .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2222%22%20height%3D%2222%22%20fill%3D%22none%22%20stroke%3D%22%23333%22%20viewBox%3D%220%200%2022%2022%22%3E%3Ccircle%20cx%3D%2211%22%20cy%3D%2211%22%20r%3D%228.5%22%2F%3E%3Cpath%20d%3D%22M17.5%2011c0%204.819-3.02%208.5-6.5%208.5S4.5%2015.819%204.5%2011%207.52%202.5%2011%202.5s6.5%203.681%206.5%208.5Z%22%2F%3E%3Cpath%20d%3D%22M13.5%2011c0%202.447-.331%204.64-.853%206.206-.262.785-.562%201.384-.872%201.777-.314.399-.58.517-.775.517s-.461-.118-.775-.517c-.31-.393-.61-.992-.872-1.777C8.831%2015.64%208.5%2013.446%208.5%2011s.331-4.64.853-6.206c.262-.785.562-1.384.872-1.777.314-.399.58-.517.775-.517s.461.118.775.517c.31.393.61.992.872%201.777.522%201.565.853%203.76.853%206.206Z%22%2F%3E%3Cpath%20d%3D%22M11%207.5c-1.909%200-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3%201.3%200%200%201-.224-.138q.07-.058.224-.138c.299-.151.763-.302%201.379-.434C7.378%205.666%209.091%205.5%2011%205.5s3.622.166%204.845.428c.616.132%201.08.283%201.379.434.105.053.177.1.224.138q-.07.058-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm0%209c-1.909%200-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3%201.3%200%200%201-.224-.138%201.3%201.3%200%200%201%20.224-.138c.299-.151.763-.302%201.379-.434C7.378%2014.666%209.091%2014.5%2011%2014.5s3.622.166%204.845.428c.616.132%201.08.283%201.379.434.105.053.177.1.224.138a1.3%201.3%200%200%201-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm0-4c-2.46%200-4.672-.222-6.255-.574-.796-.177-1.406-.38-1.805-.59a1.5%201.5%200%200%201-.39-.272.3.3%200%200%201-.047-.064.3.3%200%200%201%20.048-.064c.066-.073.189-.167.389-.272.399-.21%201.009-.413%201.805-.59C6.328%209.722%208.54%209.5%2011%209.5s4.672.222%206.256.574c.795.177%201.405.38%201.804.59.2.105.323.2.39.272a.3.3%200%200%201%20.047.064.3.3%200%200%201-.048.064%201.4%201.4%200%200%201-.389.272c-.399.21-1.009.413-1.804.59-1.584.352-3.796.574-6.256.574Zm-8.501-1.51v.002zm0%20.018v.002zm17.002.002v-.002zm0-.018v-.002z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-globe-enabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2222%22%20height%3D%2222%22%20fill%3D%22none%22%20stroke%3D%22%2333b5e5%22%20viewBox%3D%220%200%2022%2022%22%3E%3Ccircle%20cx%3D%2211%22%20cy%3D%2211%22%20r%3D%228.5%22%2F%3E%3Cpath%20d%3D%22M17.5%2011c0%204.819-3.02%208.5-6.5%208.5S4.5%2015.819%204.5%2011%207.52%202.5%2011%202.5s6.5%203.681%206.5%208.5Z%22%2F%3E%3Cpath%20d%3D%22M13.5%2011c0%202.447-.331%204.64-.853%206.206-.262.785-.562%201.384-.872%201.777-.314.399-.58.517-.775.517s-.461-.118-.775-.517c-.31-.393-.61-.992-.872-1.777C8.831%2015.64%208.5%2013.446%208.5%2011s.331-4.64.853-6.206c.262-.785.562-1.384.872-1.777.314-.399.58-.517.775-.517s.461.118.775.517c.31.393.61.992.872%201.777.522%201.565.853%203.76.853%206.206Z%22%2F%3E%3Cpath%20d%3D%22M11%207.5c-1.909%200-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3%201.3%200%200%201-.224-.138q.07-.058.224-.138c.299-.151.763-.302%201.379-.434C7.378%205.666%209.091%205.5%2011%205.5s3.622.166%204.845.428c.616.132%201.08.283%201.379.434.105.053.177.1.224.138q-.07.058-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm0%209c-1.909%200-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3%201.3%200%200%201-.224-.138%201.3%201.3%200%200%201%20.224-.138c.299-.151.763-.302%201.379-.434C7.378%2014.666%209.091%2014.5%2011%2014.5s3.622.166%204.845.428c.616.132%201.08.283%201.379.434.105.053.177.1.224.138a1.3%201.3%200%200%201-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm0-4c-2.46%200-4.672-.222-6.255-.574-.796-.177-1.406-.38-1.805-.59a1.5%201.5%200%200%201-.39-.272.3.3%200%200%201-.047-.064.3.3%200%200%201%20.048-.064c.066-.073.189-.167.389-.272.399-.21%201.009-.413%201.805-.59C6.328%209.722%208.54%209.5%2011%209.5s4.672.222%206.256.574c.795.177%201.405.38%201.804.59.2.105.323.2.39.272a.3.3%200%200%201%20.047.064.3.3%200%200%201-.048.064%201.4%201.4%200%200%201-.389.272c-.399.21-1.009.413-1.804.59-1.584.352-3.796.574-6.256.574Zm-8.501-1.51v.002zm0%20.018v.002zm17.002.002v-.002zm0-.018v-.002z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-terrain .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2222%22%20height%3D%2222%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2022%2022%22%3E%3Cpath%20d%3D%22m1.754%2013.406%204.453-4.851%203.09%203.09%203.281%203.277.969-.969-3.309-3.312%203.844-4.121%206.148%206.886h1.082v-.855l-7.207-8.07-4.84%205.187L6.169%206.57l-5.48%205.965v.871ZM.688%2016.844h20.625v1.375H.688Zm0%200%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-terrain-enabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2222%22%20height%3D%2222%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2022%2022%22%3E%3Cpath%20d%3D%22m1.754%2013.406%204.453-4.851%203.09%203.09%203.281%203.277.969-.969-3.309-3.312%203.844-4.121%206.148%206.886h1.082v-.855l-7.207-8.07-4.84%205.187L6.169%206.57l-5.48%205.965v.871ZM.688%2016.844h20.625v1.375H.688Zm0%200%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23aaa%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3Cpath%20fill%3D%22red%22%20d%3D%22m14%205%201%201-9%209-1-1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23e58978%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23e54e33%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-waiting .maplibregl-ctrl-icon{animation:maplibregl-spin 2s linear infinite}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23999%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3Cpath%20fill%3D%22red%22%20d%3D%22m14%205%201%201-9%209-1-1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23e58978%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23e54e33%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23666%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3Cpath%20fill%3D%22red%22%20d%3D%22m14%205%201%201-9%209-1-1z%22%2F%3E%3C%2Fsvg%3E")}}@keyframes maplibregl-spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}a.maplibregl-ctrl-logo{width:88px;height:23px;margin:0 0 -4px -4px;display:block;background-repeat:no-repeat;cursor:pointer;overflow:hidden;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2288%22%20height%3D%2223%22%20fill%3D%22none%22%3E%3Cpath%20fill%3D%22%23000%22%20fill-opacity%3D%22.4%22%20fill-rule%3D%22evenodd%22%20d%3D%22M17.408%2016.796h-1.827l2.501-12.095h.198l3.324%206.533.988%202.19.988-2.19%203.258-6.533h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.929%205.644h-.098l-2.914-5.644-.757-1.71-.345%201.71zm1.958-3.42-.726%203.663a1.255%201.255%200%200%201-1.232%201.011h-1.827a1.255%201.255%200%200%201-1.229-1.509l2.501-12.095a1.255%201.255%200%200%201%201.23-1.001h.197a1.25%201.25%200%200%201%201.12.685l3.19%206.273%203.125-6.263a1.25%201.25%200%200%201%201.123-.695h.181a1.255%201.255%200%200%201%201.227.991l1.443%206.71a5%205%200%200%201%20.314-.787l.009-.016a4.6%204.6%200%200%201%201.777-1.887c.782-.46%201.668-.667%202.611-.667a4.6%204.6%200%200%201%201.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255%201.255%200%200%201%201.212.925%201.255%201.255%200%200%201%201.212-.925h1.711c.284%200%20.545.094.755.252.613-.3%201.312-.45%202.075-.45%201.356%200%202.557.445%203.482%201.4q.47.48.763%201.064V4.701a1.255%201.255%200%200%201%201.255-1.255h1.86A1.255%201.255%200%200%201%2054.44%204.7v9.194h2.217c.19%200%20.37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42%202.42%200%200%201-.682-1.71c0-.665.267-1.253.735-1.7a2.45%202.45%200%200%201%201.722-.674%202.43%202.43%200%200%201%201.705.675q.318.302.504.683V4.7a1.255%201.255%200%200%201%201.255-1.255h1.744A1.255%201.255%200%200%201%2065.812%204.7v3.335a4.8%204.8%200%200%201%201.526-.246c.938%200%201.817.214%202.59.69a4.47%204.47%200%200%201%201.67%201.743v-.98a1.255%201.255%200%200%201%201.256-1.256h1.777c.233%200%20.451.064.639.174a3.4%203.4%200%200%201%201.567-.372c.346%200%20.861.02%201.285.232a1.25%201.25%200%200%201%20.689%201.004%204.7%204.7%200%200%201%20.853-.588c.795-.44%201.675-.647%202.61-.647%201.385%200%202.65.39%203.525%201.396.836.938%201.168%202.173%201.168%203.528q-.001.515-.056%201.051a1.255%201.255%200%200%201-.947%201.09l.408.952a1.255%201.255%200%200%201-.477%201.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06%200-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8%205.8%200%200%201-.548-2.512q0-.429.053-.843a1.3%201.3%200%200%201-.333-.086l-.166-.004c-.223%200-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255%201.255%200%200%201-1.256%201.256h-1.777a1.255%201.255%200%200%201-1.256-1.256V15.69l-.032.057a4.8%204.8%200%200%201-1.86%201.833%205.04%205.04%200%200%201-2.484.634%204.5%204.5%200%200%201-1.935-.424%201.25%201.25%200%200%201-.764.258h-1.71a1.255%201.255%200%200%201-1.256-1.255V7.687a2.4%202.4%200%200%201-.428.625c.253.23.412.561.412.93v7.553a1.255%201.255%200%200%201-1.256%201.255h-1.843a1.25%201.25%200%200%201-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255%201.255%200%200%201-1.256-1.255v-1.251l-.061.117a4.7%204.7%200%200%201-1.782%201.884%204.77%204.77%200%200%201-2.485.67%205.6%205.6%200%200%201-1.485-.188l.009%202.764a1.255%201.255%200%200%201-1.255%201.259h-1.729a1.255%201.255%200%200%201-1.255-1.255v-3.537a1.255%201.255%200%200%201-1.167.793h-1.679a1.25%201.25%200%200%201-.77-.263%204.5%204.5%200%200%201-1.945.429c-.885%200-1.724-.21-2.495-.632l-.017-.01a5%205%200%200%201-1.081-.836%201.255%201.255%200%200%201-1.254%201.312h-1.81a1.255%201.255%200%200%201-1.228-.99l-.782-3.625-2.044%203.939a1.25%201.25%200%200%201-1.115.676h-.098a1.25%201.25%200%200%201-1.116-.68l-2.061-3.994zM35.92%2016.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033%201.332h1.678V9.242h-1.694l-.033%201.267q-.133-.329-.526-.658l-.032-.028a3.2%203.2%200%200%200-.668-.428l-.27-.12a3.3%203.3%200%200%200-1.235-.23q-1.136-.001-1.974.493a3.36%203.36%200%200%200-1.3%201.382q-.445.89-.444%202.074%200%201.2.51%202.107a3.8%203.8%200%200%200%201.382%201.381%203.9%203.9%200%200%200%201.893.477q.795%200%201.455-.33zm-2.789-5.38q-.576.675-.575%201.762%200%201.102.559%201.794.576.675%201.645.675a2.25%202.25%200%200%200%20.934-.19%202.2%202.2%200%200%200%20.468-.29l.178-.161a2.2%202.2%200%200%200%20.397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2%202.2%200%200%200-.633-.709l-.13-.086-.047-.028a2.1%202.1%200%200%200-1.073-.285q-1.052%200-1.629.692zm2.316%202.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96%200%200%200-.353-.389.85.85%200%200%200-.464-.127c-.4%200-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945%200%20.506.122.801.27.99.097.11.266.224.68.224.303%200%20.504-.09.687-.269zm7.545%201.705a2.6%202.6%200%200%200%20.331.423q.319.33.755.548l.173.074q.65.255%201.49.255%201.02%200%201.844-.493a3.45%203.45%200%200%200%201.316-1.4q.493-.904.493-2.089%200-1.909-.988-2.913-.988-1.02-2.584-1.02-.898%200-1.575.347a3%203%200%200%200-.415.262l-.199.166a3.4%203.4%200%200%200-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296%201.119.297%201.07%200%201.645-.675.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.435%200-.835.16a2%202%200%200%200-.284.136%202%202%200%200%200-.363.254%202.2%202.2%200%200%200-.46.569l-.082.162a2.6%202.6%200%200%200-.213%201.072v.115q0%20.707.296%201.267l.135.211zm.964-.818a1.1%201.1%200%200%200%20.367.385.94.94%200%200%200%20.476.118c.423%200%20.59-.117.687-.23.159-.194.28-.478.28-.95%200-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1%201%200%200%200-.503.135l-.012.007a.86.86%200%200%200-.335.343c-.073.133-.132.324-.132.614v.115a1.4%201.4%200%200%200%20.14.66zm15.7-6.222q.347-.346.346-.856a1.05%201.05%200%200%200-.345-.79%201.18%201.18%200%200%200-.84-.329q-.51%200-.855.33a1.05%201.05%200%200%200-.346.79q0%20.51.346.855.345.346.856.346.51%200%20.839-.346zm4.337%209.314.033-1.332q.191.403.59.747l.098.081a4%204%200%200%200%20.316.224l.223.122a3.2%203.2%200%200%200%201.44.322%203.8%203.8%200%200%200%201.875-.477%203.5%203.5%200%200%200%201.382-1.366q.527-.89.526-2.09%200-1.184-.444-2.073a3.24%203.24%200%200%200-1.283-1.399q-.823-.51-1.942-.51a3.5%203.5%200%200%200-1.527.344l-.086.043-.165.09a3%203%200%200%200-.33.214q-.432.315-.656.707a2%202%200%200%200-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5%202.5%200%200%200%20.566.7q.117.098.245.18l.144.08a2.1%202.1%200%200%200%20.975.232q1.07%200%201.645-.675.576-.69.576-1.778%200-1.102-.576-1.777-.56-.691-1.645-.692a2.2%202.2%200%200%200-1.015.235q-.22.113-.415.282l-.15.142a2.1%202.1%200%200%200-.42.594q-.223.479-.223%201.1v.115q0%20.705.293%201.26zm2.616-.293c.157-.191.28-.479.28-.967%200-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87%200%200%200-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0%20.285.057.499.144.669a1.1%201.1%200%200%200%20.367.405c.137.082.28.123.455.123.423%200%20.59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493%200%20.642.099l.247-1.794q-.196-.099-.717-.099a2.3%202.3%200%200%200-.545.063%202%202%200%200%200-.411.148%202.2%202.2%200%200%200-.4.249%202.5%202.5%200%200%200-.485.499%202.7%202.7%200%200%200-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5%201.5%200%200%201%20.466-.636%202.5%202.5%200%200%201%20.399-.253%202%202%200%200%201%20.224-.099zm9.784%202.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46%203.46%200%200%200-1.4%201.382q-.493.906-.493%202.106%200%201.07.428%201.975.428.89%201.332%201.432.906.526%202.255.526.973%200%201.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954%200-1.497-.444a1.6%201.6%200%200%201-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1%201%200%200%200-.156-.176q-.46-.428-1.316-.428-.986%200-1.494.604-.379.45-.494%201.234zm-27.053%202.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z%22%2F%3E%3Cpath%20fill%3D%22%23fff%22%20d%3D%22m19.63%2011.151-.757-1.71-.345%201.71-1.12%205.644h-1.827L18.083%204.7h.197l3.325%206.533.988%202.19.988-2.19L26.839%204.7h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.93%205.644h-.098l-2.913-5.644zm14.836%205.81q-1.02%200-1.893-.478a3.8%203.8%200%200%201-1.381-1.382q-.51-.906-.51-2.106%200-1.185.444-2.074a3.36%203.36%200%200%201%201.3-1.382q.839-.494%201.974-.494a3.3%203.3%200%200%201%201.234.231%203.3%203.3%200%200%201%20.97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02%201.053a3.17%203.17%200%200%201-1.662.444zm.296-1.482q.938%200%201.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2%202.2%200%200%200-.807-.872%202.1%202.1%200%200%200-1.119-.313q-1.053%200-1.629.692-.575.675-.575%201.76%200%201.103.559%201.795.577.675%201.645.675zm6.521-6.237h1.711v1.4q.906-1.597%202.83-1.597%201.596%200%202.584%201.02.988%201.005.988%202.914%200%201.185-.493%202.09a3.46%203.46%200%200%201-1.316%201.399%203.5%203.5%200%200%201-1.844.493q-.954%200-1.662-.329a2.67%202.67%200%200%201-1.086-.97l.017%205.134h-1.728zm4.048%206.22q1.07%200%201.645-.674.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.592%200-1.12.296-.51.28-.822.823-.296.527-.296%201.234v.115q0%20.708.296%201.267.313.543.823.855.51.296%201.119.297z%22%2F%3E%3Cpath%20fill%3D%22%23e1e3e9%22%20d%3D%22M51.325%204.7h1.86v10.45h3.473v1.646h-5.333zm7.12%204.542h1.843v7.553h-1.843zm.905-1.415a1.16%201.16%200%200%201-.856-.346%201.17%201.17%200%200%201-.346-.856%201.05%201.05%200%200%201%20.346-.79q.346-.329.856-.329.494%200%20.839.33a1.05%201.05%200%200%201%20.345.79%201.16%201.16%200%200%201-.345.855q-.33.346-.84.346zm7.875%209.133a3.17%203.17%200%200%201-1.662-.444q-.723-.46-1.004-1.053l-.033%201.332h-1.71V4.701h1.743v4.657l-.082%201.283q.279-.658%201.086-1.119a3.5%203.5%200%200%201%201.778-.477q1.119%200%201.942.51a3.24%203.24%200%200%201%201.283%201.4q.445.888.444%202.072%200%201.201-.526%202.09a3.5%203.5%200%200%201-1.382%201.366%203.8%203.8%200%200%201-1.876.477zm-.296-1.481q1.069%200%201.645-.675.577-.69.577-1.778%200-1.102-.577-1.776-.56-.691-1.645-.692a2.12%202.12%200%200%200-1.58.659q-.642.641-.642%201.694v.115q0%20.71.296%201.267a2.4%202.4%200%200%200%20.807.872%202.1%202.1%200%200%200%201.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14%202.14%200%200%201%201.349-.46q.527%200%20.724.098l-.247%201.794q-.149-.099-.642-.099-.774%200-1.416.494-.626.493-.626%201.58v3.883h-1.777V9.242zm9.534%207.718q-1.35%200-2.255-.526-.904-.543-1.332-1.432a4.6%204.6%200%200%201-.428-1.975q0-1.2.493-2.106a3.46%203.46%200%200%201%201.4-1.382q.889-.495%202.007-.494%201.744%200%202.584.97.855.956.856%202.7%200%20.444-.05.92h-5.43q.18%201.005.708%201.45.542.443%201.497.443.79%200%201.3-.131a4%204%200%200%200%20.938-.362l.542%201.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728%200-1.991%201.86z%22%2F%3E%3Cpath%20d%3D%22M5.074%2015.948a.484.657%200%200%200-.486.659v1.84a.484.657%200%200%200%20.486.659h4.101a.484.657%200%200%200%20.486-.659v-1.84a.484.657%200%200%200-.486-.659zm3.56%201.16H5.617v.838h3.017z%22%20style%3D%22fill%3A%23fff%3Bfill-rule%3Aevenodd%3Bstroke-width%3A1.03600001%22%2F%3E%3Cg%20style%3D%22stroke-width%3A1.12603545%22%3E%3Cpath%20d%3D%22M-9.408-1.416c-3.833-.025-7.056%202.912-7.08%206.615-.02%203.08%201.653%204.832%203.107%206.268.903.892%201.721%201.74%202.32%202.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87%201.87%200%200%200-.362%201.121l-.011%201.877c-.003.402.104.787.347%201.125.244.338.688.653%201.23.656l4.142.028c.542.003.99-.306%201.238-.641a1.87%201.87%200%200%200%20.363-1.121l.012-1.875a1.87%201.87%200%200%200-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145%201.425-1.983%202.348-2.87%201.473-1.414%203.18-3.149%203.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006%201.1v.002c3.274.02%205.92%202.532%205.9%205.6-.017%202.706-1.39%204.026-2.863%205.44-1.034.994-2.118%202.033-2.814%203.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34%200%200%201-.226.084.34.34%200%200%201-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067%202.7-5.545%205.975-5.523m-.02%202.826c-1.62-.01-2.944%201.315-2.955%202.96-.01%201.646%201.295%202.988%202.916%202.999h.002c1.621.01%202.943-1.316%202.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005%201.1c1.017.006%201.829.83%201.822%201.89s-.83%201.874-1.848%201.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874%201.848-1.868m-2.155%2011.857%204.14.025c.271.002.49.305.487.676l-.013%201.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668%22%20style%3D%22color%3A%23000%3Bfont-style%3Anormal%3Bfont-variant%3Anormal%3Bfont-weight%3A400%3Bfont-stretch%3Anormal%3Bfont-size%3Amedium%3Bline-height%3Anormal%3Bfont-family%3Asans-serif%3Bfont-variant-ligatures%3Anormal%3Bfont-variant-position%3Anormal%3Bfont-variant-caps%3Anormal%3Bfont-variant-numeric%3Anormal%3Bfont-variant-alternates%3Anormal%3Bfont-feature-settings%3Anormal%3Btext-indent%3A0%3Btext-align%3Astart%3Btext-decoration%3Anone%3Btext-decoration-line%3Anone%3Btext-decoration-style%3Asolid%3Btext-decoration-color%3A%23000%3Bletter-spacing%3Anormal%3Bword-spacing%3Anormal%3Btext-transform%3Anone%3Bwriting-mode%3Alr-tb%3Bdirection%3Altr%3Btext-orientation%3Amixed%3Bdominant-baseline%3Aauto%3Bbaseline-shift%3Abaseline%3Btext-anchor%3Astart%3Bwhite-space%3Anormal%3Bshape-padding%3A0%3Bclip-rule%3Aevenodd%3Bdisplay%3Ainline%3Boverflow%3Avisible%3Bvisibility%3Avisible%3Bopacity%3A1%3Bisolation%3Aauto%3Bmix-blend-mode%3Anormal%3Bcolor-interpolation%3AsRGB%3Bcolor-interpolation-filters%3AlinearRGB%3Bsolid-color%3A%23000%3Bsolid-opacity%3A1%3Bvector-effect%3Anone%3Bfill%3A%23000%3Bfill-opacity%3A.4%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-linecap%3Abutt%3Bstroke-linejoin%3Amiter%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-dashoffset%3A0%3Bstroke-opacity%3A1%3Bcolor-rendering%3Aauto%3Bimage-rendering%3Aauto%3Bshape-rendering%3Aauto%3Btext-rendering%3Aauto%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-9.415-.316C-12.69-.338-15.37%202.14-15.39%205.207c-.017%202.716%201.326%204.041%202.78%205.477%201.013%201%202.081%202.055%202.78%203.67l.092.076a.34.34%200%200%200%20.225.086.34.34%200%200%200%20.227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6%201.78-2.64%202.814-3.634%201.473-1.414%202.847-2.733%202.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057%208.784c1.621.011%202.944-1.315%202.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945%201.315-2.955%202.96s1.295%202.989%202.916%203%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23e1e3e9%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-11.594%2015.465c-.27-.002-.492.297-.494.668l-.012%201.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23fff%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E")}a.maplibregl-ctrl-logo.maplibregl-compact{width:14px}@media (forced-colors:active){a.maplibregl-ctrl-logo{background-color:transparent;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2288%22%20height%3D%2223%22%20fill%3D%22none%22%3E%3Cpath%20fill%3D%22%23000%22%20fill-opacity%3D%22.4%22%20fill-rule%3D%22evenodd%22%20d%3D%22M17.408%2016.796h-1.827l2.501-12.095h.198l3.324%206.533.988%202.19.988-2.19%203.258-6.533h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.929%205.644h-.098l-2.914-5.644-.757-1.71-.345%201.71zm1.958-3.42-.726%203.663a1.255%201.255%200%200%201-1.232%201.011h-1.827a1.255%201.255%200%200%201-1.229-1.509l2.501-12.095a1.255%201.255%200%200%201%201.23-1.001h.197a1.25%201.25%200%200%201%201.12.685l3.19%206.273%203.125-6.263a1.25%201.25%200%200%201%201.123-.695h.181a1.255%201.255%200%200%201%201.227.991l1.443%206.71a5%205%200%200%201%20.314-.787l.009-.016a4.6%204.6%200%200%201%201.777-1.887c.782-.46%201.668-.667%202.611-.667a4.6%204.6%200%200%201%201.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255%201.255%200%200%201%201.212.925%201.255%201.255%200%200%201%201.212-.925h1.711c.284%200%20.545.094.755.252.613-.3%201.312-.45%202.075-.45%201.356%200%202.557.445%203.482%201.4q.47.48.763%201.064V4.701a1.255%201.255%200%200%201%201.255-1.255h1.86A1.255%201.255%200%200%201%2054.44%204.7v9.194h2.217c.19%200%20.37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42%202.42%200%200%201-.682-1.71c0-.665.267-1.253.735-1.7a2.45%202.45%200%200%201%201.722-.674%202.43%202.43%200%200%201%201.705.675q.318.302.504.683V4.7a1.255%201.255%200%200%201%201.255-1.255h1.744A1.255%201.255%200%200%201%2065.812%204.7v3.335a4.8%204.8%200%200%201%201.526-.246c.938%200%201.817.214%202.59.69a4.47%204.47%200%200%201%201.67%201.743v-.98a1.255%201.255%200%200%201%201.256-1.256h1.777c.233%200%20.451.064.639.174a3.4%203.4%200%200%201%201.567-.372c.346%200%20.861.02%201.285.232a1.25%201.25%200%200%201%20.689%201.004%204.7%204.7%200%200%201%20.853-.588c.795-.44%201.675-.647%202.61-.647%201.385%200%202.65.39%203.525%201.396.836.938%201.168%202.173%201.168%203.528q-.001.515-.056%201.051a1.255%201.255%200%200%201-.947%201.09l.408.952a1.255%201.255%200%200%201-.477%201.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06%200-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8%205.8%200%200%201-.548-2.512q0-.429.053-.843a1.3%201.3%200%200%201-.333-.086l-.166-.004c-.223%200-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255%201.255%200%200%201-1.256%201.256h-1.777a1.255%201.255%200%200%201-1.256-1.256V15.69l-.032.057a4.8%204.8%200%200%201-1.86%201.833%205.04%205.04%200%200%201-2.484.634%204.5%204.5%200%200%201-1.935-.424%201.25%201.25%200%200%201-.764.258h-1.71a1.255%201.255%200%200%201-1.256-1.255V7.687a2.4%202.4%200%200%201-.428.625c.253.23.412.561.412.93v7.553a1.255%201.255%200%200%201-1.256%201.255h-1.843a1.25%201.25%200%200%201-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255%201.255%200%200%201-1.256-1.255v-1.251l-.061.117a4.7%204.7%200%200%201-1.782%201.884%204.77%204.77%200%200%201-2.485.67%205.6%205.6%200%200%201-1.485-.188l.009%202.764a1.255%201.255%200%200%201-1.255%201.259h-1.729a1.255%201.255%200%200%201-1.255-1.255v-3.537a1.255%201.255%200%200%201-1.167.793h-1.679a1.25%201.25%200%200%201-.77-.263%204.5%204.5%200%200%201-1.945.429c-.885%200-1.724-.21-2.495-.632l-.017-.01a5%205%200%200%201-1.081-.836%201.255%201.255%200%200%201-1.254%201.312h-1.81a1.255%201.255%200%200%201-1.228-.99l-.782-3.625-2.044%203.939a1.25%201.25%200%200%201-1.115.676h-.098a1.25%201.25%200%200%201-1.116-.68l-2.061-3.994zM35.92%2016.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033%201.332h1.678V9.242h-1.694l-.033%201.267q-.133-.329-.526-.658l-.032-.028a3.2%203.2%200%200%200-.668-.428l-.27-.12a3.3%203.3%200%200%200-1.235-.23q-1.136-.001-1.974.493a3.36%203.36%200%200%200-1.3%201.382q-.445.89-.444%202.074%200%201.2.51%202.107a3.8%203.8%200%200%200%201.382%201.381%203.9%203.9%200%200%200%201.893.477q.795%200%201.455-.33zm-2.789-5.38q-.576.675-.575%201.762%200%201.102.559%201.794.576.675%201.645.675a2.25%202.25%200%200%200%20.934-.19%202.2%202.2%200%200%200%20.468-.29l.178-.161a2.2%202.2%200%200%200%20.397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2%202.2%200%200%200-.633-.709l-.13-.086-.047-.028a2.1%202.1%200%200%200-1.073-.285q-1.052%200-1.629.692zm2.316%202.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96%200%200%200-.353-.389.85.85%200%200%200-.464-.127c-.4%200-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945%200%20.506.122.801.27.99.097.11.266.224.68.224.303%200%20.504-.09.687-.269zm7.545%201.705a2.6%202.6%200%200%200%20.331.423q.319.33.755.548l.173.074q.65.255%201.49.255%201.02%200%201.844-.493a3.45%203.45%200%200%200%201.316-1.4q.493-.904.493-2.089%200-1.909-.988-2.913-.988-1.02-2.584-1.02-.898%200-1.575.347a3%203%200%200%200-.415.262l-.199.166a3.4%203.4%200%200%200-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296%201.119.297%201.07%200%201.645-.675.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.435%200-.835.16a2%202%200%200%200-.284.136%202%202%200%200%200-.363.254%202.2%202.2%200%200%200-.46.569l-.082.162a2.6%202.6%200%200%200-.213%201.072v.115q0%20.707.296%201.267l.135.211zm.964-.818a1.1%201.1%200%200%200%20.367.385.94.94%200%200%200%20.476.118c.423%200%20.59-.117.687-.23.159-.194.28-.478.28-.95%200-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1%201%200%200%200-.503.135l-.012.007a.86.86%200%200%200-.335.343c-.073.133-.132.324-.132.614v.115a1.4%201.4%200%200%200%20.14.66zm15.7-6.222q.347-.346.346-.856a1.05%201.05%200%200%200-.345-.79%201.18%201.18%200%200%200-.84-.329q-.51%200-.855.33a1.05%201.05%200%200%200-.346.79q0%20.51.346.855.345.346.856.346.51%200%20.839-.346zm4.337%209.314.033-1.332q.191.403.59.747l.098.081a4%204%200%200%200%20.316.224l.223.122a3.2%203.2%200%200%200%201.44.322%203.8%203.8%200%200%200%201.875-.477%203.5%203.5%200%200%200%201.382-1.366q.527-.89.526-2.09%200-1.184-.444-2.073a3.24%203.24%200%200%200-1.283-1.399q-.823-.51-1.942-.51a3.5%203.5%200%200%200-1.527.344l-.086.043-.165.09a3%203%200%200%200-.33.214q-.432.315-.656.707a2%202%200%200%200-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5%202.5%200%200%200%20.566.7q.117.098.245.18l.144.08a2.1%202.1%200%200%200%20.975.232q1.07%200%201.645-.675.576-.69.576-1.778%200-1.102-.576-1.777-.56-.691-1.645-.692a2.2%202.2%200%200%200-1.015.235q-.22.113-.415.282l-.15.142a2.1%202.1%200%200%200-.42.594q-.223.479-.223%201.1v.115q0%20.705.293%201.26zm2.616-.293c.157-.191.28-.479.28-.967%200-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87%200%200%200-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0%20.285.057.499.144.669a1.1%201.1%200%200%200%20.367.405c.137.082.28.123.455.123.423%200%20.59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493%200%20.642.099l.247-1.794q-.196-.099-.717-.099a2.3%202.3%200%200%200-.545.063%202%202%200%200%200-.411.148%202.2%202.2%200%200%200-.4.249%202.5%202.5%200%200%200-.485.499%202.7%202.7%200%200%200-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5%201.5%200%200%201%20.466-.636%202.5%202.5%200%200%201%20.399-.253%202%202%200%200%201%20.224-.099zm9.784%202.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46%203.46%200%200%200-1.4%201.382q-.493.906-.493%202.106%200%201.07.428%201.975.428.89%201.332%201.432.906.526%202.255.526.973%200%201.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954%200-1.497-.444a1.6%201.6%200%200%201-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1%201%200%200%200-.156-.176q-.46-.428-1.316-.428-.986%200-1.494.604-.379.45-.494%201.234zm-27.053%202.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z%22%2F%3E%3Cpath%20fill%3D%22%23fff%22%20d%3D%22m19.63%2011.151-.757-1.71-.345%201.71-1.12%205.644h-1.827L18.083%204.7h.197l3.325%206.533.988%202.19.988-2.19L26.839%204.7h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.93%205.644h-.098l-2.913-5.644zm14.836%205.81q-1.02%200-1.893-.478a3.8%203.8%200%200%201-1.381-1.382q-.51-.906-.51-2.106%200-1.185.444-2.074a3.36%203.36%200%200%201%201.3-1.382q.839-.494%201.974-.494a3.3%203.3%200%200%201%201.234.231%203.3%203.3%200%200%201%20.97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02%201.053a3.17%203.17%200%200%201-1.662.444zm.296-1.482q.938%200%201.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2%202.2%200%200%200-.807-.872%202.1%202.1%200%200%200-1.119-.313q-1.053%200-1.629.692-.575.675-.575%201.76%200%201.103.559%201.795.577.675%201.645.675zm6.521-6.237h1.711v1.4q.906-1.597%202.83-1.597%201.596%200%202.584%201.02.988%201.005.988%202.914%200%201.185-.493%202.09a3.46%203.46%200%200%201-1.316%201.399%203.5%203.5%200%200%201-1.844.493q-.954%200-1.662-.329a2.67%202.67%200%200%201-1.086-.97l.017%205.134h-1.728zm4.048%206.22q1.07%200%201.645-.674.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.592%200-1.12.296-.51.28-.822.823-.296.527-.296%201.234v.115q0%20.708.296%201.267.313.543.823.855.51.296%201.119.297z%22%2F%3E%3Cpath%20fill%3D%22%23e1e3e9%22%20d%3D%22M51.325%204.7h1.86v10.45h3.473v1.646h-5.333zm7.12%204.542h1.843v7.553h-1.843zm.905-1.415a1.16%201.16%200%200%201-.856-.346%201.17%201.17%200%200%201-.346-.856%201.05%201.05%200%200%201%20.346-.79q.346-.329.856-.329.494%200%20.839.33a1.05%201.05%200%200%201%20.345.79%201.16%201.16%200%200%201-.345.855q-.33.346-.84.346zm7.875%209.133a3.17%203.17%200%200%201-1.662-.444q-.723-.46-1.004-1.053l-.033%201.332h-1.71V4.701h1.743v4.657l-.082%201.283q.279-.658%201.086-1.119a3.5%203.5%200%200%201%201.778-.477q1.119%200%201.942.51a3.24%203.24%200%200%201%201.283%201.4q.445.888.444%202.072%200%201.201-.526%202.09a3.5%203.5%200%200%201-1.382%201.366%203.8%203.8%200%200%201-1.876.477zm-.296-1.481q1.069%200%201.645-.675.577-.69.577-1.778%200-1.102-.577-1.776-.56-.691-1.645-.692a2.12%202.12%200%200%200-1.58.659q-.642.641-.642%201.694v.115q0%20.71.296%201.267a2.4%202.4%200%200%200%20.807.872%202.1%202.1%200%200%200%201.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14%202.14%200%200%201%201.349-.46q.527%200%20.724.098l-.247%201.794q-.149-.099-.642-.099-.774%200-1.416.494-.626.493-.626%201.58v3.883h-1.777V9.242zm9.534%207.718q-1.35%200-2.255-.526-.904-.543-1.332-1.432a4.6%204.6%200%200%201-.428-1.975q0-1.2.493-2.106a3.46%203.46%200%200%201%201.4-1.382q.889-.495%202.007-.494%201.744%200%202.584.97.855.956.856%202.7%200%20.444-.05.92h-5.43q.18%201.005.708%201.45.542.443%201.497.443.79%200%201.3-.131a4%204%200%200%200%20.938-.362l.542%201.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728%200-1.991%201.86z%22%2F%3E%3Cpath%20d%3D%22M5.074%2015.948a.484.657%200%200%200-.486.659v1.84a.484.657%200%200%200%20.486.659h4.101a.484.657%200%200%200%20.486-.659v-1.84a.484.657%200%200%200-.486-.659zm3.56%201.16H5.617v.838h3.017z%22%20style%3D%22fill%3A%23fff%3Bfill-rule%3Aevenodd%3Bstroke-width%3A1.03600001%22%2F%3E%3Cg%20style%3D%22stroke-width%3A1.12603545%22%3E%3Cpath%20d%3D%22M-9.408-1.416c-3.833-.025-7.056%202.912-7.08%206.615-.02%203.08%201.653%204.832%203.107%206.268.903.892%201.721%201.74%202.32%202.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87%201.87%200%200%200-.362%201.121l-.011%201.877c-.003.402.104.787.347%201.125.244.338.688.653%201.23.656l4.142.028c.542.003.99-.306%201.238-.641a1.87%201.87%200%200%200%20.363-1.121l.012-1.875a1.87%201.87%200%200%200-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145%201.425-1.983%202.348-2.87%201.473-1.414%203.18-3.149%203.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006%201.1v.002c3.274.02%205.92%202.532%205.9%205.6-.017%202.706-1.39%204.026-2.863%205.44-1.034.994-2.118%202.033-2.814%203.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34%200%200%201-.226.084.34.34%200%200%201-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067%202.7-5.545%205.975-5.523m-.02%202.826c-1.62-.01-2.944%201.315-2.955%202.96-.01%201.646%201.295%202.988%202.916%202.999h.002c1.621.01%202.943-1.316%202.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005%201.1c1.017.006%201.829.83%201.822%201.89s-.83%201.874-1.848%201.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874%201.848-1.868m-2.155%2011.857%204.14.025c.271.002.49.305.487.676l-.013%201.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668%22%20style%3D%22color%3A%23000%3Bfont-style%3Anormal%3Bfont-variant%3Anormal%3Bfont-weight%3A400%3Bfont-stretch%3Anormal%3Bfont-size%3Amedium%3Bline-height%3Anormal%3Bfont-family%3Asans-serif%3Bfont-variant-ligatures%3Anormal%3Bfont-variant-position%3Anormal%3Bfont-variant-caps%3Anormal%3Bfont-variant-numeric%3Anormal%3Bfont-variant-alternates%3Anormal%3Bfont-feature-settings%3Anormal%3Btext-indent%3A0%3Btext-align%3Astart%3Btext-decoration%3Anone%3Btext-decoration-line%3Anone%3Btext-decoration-style%3Asolid%3Btext-decoration-color%3A%23000%3Bletter-spacing%3Anormal%3Bword-spacing%3Anormal%3Btext-transform%3Anone%3Bwriting-mode%3Alr-tb%3Bdirection%3Altr%3Btext-orientation%3Amixed%3Bdominant-baseline%3Aauto%3Bbaseline-shift%3Abaseline%3Btext-anchor%3Astart%3Bwhite-space%3Anormal%3Bshape-padding%3A0%3Bclip-rule%3Aevenodd%3Bdisplay%3Ainline%3Boverflow%3Avisible%3Bvisibility%3Avisible%3Bopacity%3A1%3Bisolation%3Aauto%3Bmix-blend-mode%3Anormal%3Bcolor-interpolation%3AsRGB%3Bcolor-interpolation-filters%3AlinearRGB%3Bsolid-color%3A%23000%3Bsolid-opacity%3A1%3Bvector-effect%3Anone%3Bfill%3A%23000%3Bfill-opacity%3A.4%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-linecap%3Abutt%3Bstroke-linejoin%3Amiter%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-dashoffset%3A0%3Bstroke-opacity%3A1%3Bcolor-rendering%3Aauto%3Bimage-rendering%3Aauto%3Bshape-rendering%3Aauto%3Btext-rendering%3Aauto%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-9.415-.316C-12.69-.338-15.37%202.14-15.39%205.207c-.017%202.716%201.326%204.041%202.78%205.477%201.013%201%202.081%202.055%202.78%203.67l.092.076a.34.34%200%200%200%20.225.086.34.34%200%200%200%20.227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6%201.78-2.64%202.814-3.634%201.473-1.414%202.847-2.733%202.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057%208.784c1.621.011%202.944-1.315%202.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945%201.315-2.955%202.96s1.295%202.989%202.916%203%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23e1e3e9%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-11.594%2015.465c-.27-.002-.492.297-.494.668l-.012%201.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23fff%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){a.maplibregl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2288%22%20height%3D%2223%22%20fill%3D%22none%22%3E%3Cpath%20fill%3D%22%23000%22%20fill-opacity%3D%22.4%22%20fill-rule%3D%22evenodd%22%20d%3D%22M17.408%2016.796h-1.827l2.501-12.095h.198l3.324%206.533.988%202.19.988-2.19%203.258-6.533h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.929%205.644h-.098l-2.914-5.644-.757-1.71-.345%201.71zm1.958-3.42-.726%203.663a1.255%201.255%200%200%201-1.232%201.011h-1.827a1.255%201.255%200%200%201-1.229-1.509l2.501-12.095a1.255%201.255%200%200%201%201.23-1.001h.197a1.25%201.25%200%200%201%201.12.685l3.19%206.273%203.125-6.263a1.25%201.25%200%200%201%201.123-.695h.181a1.255%201.255%200%200%201%201.227.991l1.443%206.71a5%205%200%200%201%20.314-.787l.009-.016a4.6%204.6%200%200%201%201.777-1.887c.782-.46%201.668-.667%202.611-.667a4.6%204.6%200%200%201%201.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255%201.255%200%200%201%201.212.925%201.255%201.255%200%200%201%201.212-.925h1.711c.284%200%20.545.094.755.252.613-.3%201.312-.45%202.075-.45%201.356%200%202.557.445%203.482%201.4q.47.48.763%201.064V4.701a1.255%201.255%200%200%201%201.255-1.255h1.86A1.255%201.255%200%200%201%2054.44%204.7v9.194h2.217c.19%200%20.37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42%202.42%200%200%201-.682-1.71c0-.665.267-1.253.735-1.7a2.45%202.45%200%200%201%201.722-.674%202.43%202.43%200%200%201%201.705.675q.318.302.504.683V4.7a1.255%201.255%200%200%201%201.255-1.255h1.744A1.255%201.255%200%200%201%2065.812%204.7v3.335a4.8%204.8%200%200%201%201.526-.246c.938%200%201.817.214%202.59.69a4.47%204.47%200%200%201%201.67%201.743v-.98a1.255%201.255%200%200%201%201.256-1.256h1.777c.233%200%20.451.064.639.174a3.4%203.4%200%200%201%201.567-.372c.346%200%20.861.02%201.285.232a1.25%201.25%200%200%201%20.689%201.004%204.7%204.7%200%200%201%20.853-.588c.795-.44%201.675-.647%202.61-.647%201.385%200%202.65.39%203.525%201.396.836.938%201.168%202.173%201.168%203.528q-.001.515-.056%201.051a1.255%201.255%200%200%201-.947%201.09l.408.952a1.255%201.255%200%200%201-.477%201.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06%200-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8%205.8%200%200%201-.548-2.512q0-.429.053-.843a1.3%201.3%200%200%201-.333-.086l-.166-.004c-.223%200-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255%201.255%200%200%201-1.256%201.256h-1.777a1.255%201.255%200%200%201-1.256-1.256V15.69l-.032.057a4.8%204.8%200%200%201-1.86%201.833%205.04%205.04%200%200%201-2.484.634%204.5%204.5%200%200%201-1.935-.424%201.25%201.25%200%200%201-.764.258h-1.71a1.255%201.255%200%200%201-1.256-1.255V7.687a2.4%202.4%200%200%201-.428.625c.253.23.412.561.412.93v7.553a1.255%201.255%200%200%201-1.256%201.255h-1.843a1.25%201.25%200%200%201-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255%201.255%200%200%201-1.256-1.255v-1.251l-.061.117a4.7%204.7%200%200%201-1.782%201.884%204.77%204.77%200%200%201-2.485.67%205.6%205.6%200%200%201-1.485-.188l.009%202.764a1.255%201.255%200%200%201-1.255%201.259h-1.729a1.255%201.255%200%200%201-1.255-1.255v-3.537a1.255%201.255%200%200%201-1.167.793h-1.679a1.25%201.25%200%200%201-.77-.263%204.5%204.5%200%200%201-1.945.429c-.885%200-1.724-.21-2.495-.632l-.017-.01a5%205%200%200%201-1.081-.836%201.255%201.255%200%200%201-1.254%201.312h-1.81a1.255%201.255%200%200%201-1.228-.99l-.782-3.625-2.044%203.939a1.25%201.25%200%200%201-1.115.676h-.098a1.25%201.25%200%200%201-1.116-.68l-2.061-3.994zM35.92%2016.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033%201.332h1.678V9.242h-1.694l-.033%201.267q-.133-.329-.526-.658l-.032-.028a3.2%203.2%200%200%200-.668-.428l-.27-.12a3.3%203.3%200%200%200-1.235-.23q-1.136-.001-1.974.493a3.36%203.36%200%200%200-1.3%201.382q-.445.89-.444%202.074%200%201.2.51%202.107a3.8%203.8%200%200%200%201.382%201.381%203.9%203.9%200%200%200%201.893.477q.795%200%201.455-.33zm-2.789-5.38q-.576.675-.575%201.762%200%201.102.559%201.794.576.675%201.645.675a2.25%202.25%200%200%200%20.934-.19%202.2%202.2%200%200%200%20.468-.29l.178-.161a2.2%202.2%200%200%200%20.397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2%202.2%200%200%200-.633-.709l-.13-.086-.047-.028a2.1%202.1%200%200%200-1.073-.285q-1.052%200-1.629.692zm2.316%202.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96%200%200%200-.353-.389.85.85%200%200%200-.464-.127c-.4%200-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945%200%20.506.122.801.27.99.097.11.266.224.68.224.303%200%20.504-.09.687-.269zm7.545%201.705a2.6%202.6%200%200%200%20.331.423q.319.33.755.548l.173.074q.65.255%201.49.255%201.02%200%201.844-.493a3.45%203.45%200%200%200%201.316-1.4q.493-.904.493-2.089%200-1.909-.988-2.913-.988-1.02-2.584-1.02-.898%200-1.575.347a3%203%200%200%200-.415.262l-.199.166a3.4%203.4%200%200%200-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296%201.119.297%201.07%200%201.645-.675.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.435%200-.835.16a2%202%200%200%200-.284.136%202%202%200%200%200-.363.254%202.2%202.2%200%200%200-.46.569l-.082.162a2.6%202.6%200%200%200-.213%201.072v.115q0%20.707.296%201.267l.135.211zm.964-.818a1.1%201.1%200%200%200%20.367.385.94.94%200%200%200%20.476.118c.423%200%20.59-.117.687-.23.159-.194.28-.478.28-.95%200-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1%201%200%200%200-.503.135l-.012.007a.86.86%200%200%200-.335.343c-.073.133-.132.324-.132.614v.115a1.4%201.4%200%200%200%20.14.66zm15.7-6.222q.347-.346.346-.856a1.05%201.05%200%200%200-.345-.79%201.18%201.18%200%200%200-.84-.329q-.51%200-.855.33a1.05%201.05%200%200%200-.346.79q0%20.51.346.855.345.346.856.346.51%200%20.839-.346zm4.337%209.314.033-1.332q.191.403.59.747l.098.081a4%204%200%200%200%20.316.224l.223.122a3.2%203.2%200%200%200%201.44.322%203.8%203.8%200%200%200%201.875-.477%203.5%203.5%200%200%200%201.382-1.366q.527-.89.526-2.09%200-1.184-.444-2.073a3.24%203.24%200%200%200-1.283-1.399q-.823-.51-1.942-.51a3.5%203.5%200%200%200-1.527.344l-.086.043-.165.09a3%203%200%200%200-.33.214q-.432.315-.656.707a2%202%200%200%200-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5%202.5%200%200%200%20.566.7q.117.098.245.18l.144.08a2.1%202.1%200%200%200%20.975.232q1.07%200%201.645-.675.576-.69.576-1.778%200-1.102-.576-1.777-.56-.691-1.645-.692a2.2%202.2%200%200%200-1.015.235q-.22.113-.415.282l-.15.142a2.1%202.1%200%200%200-.42.594q-.223.479-.223%201.1v.115q0%20.705.293%201.26zm2.616-.293c.157-.191.28-.479.28-.967%200-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87%200%200%200-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0%20.285.057.499.144.669a1.1%201.1%200%200%200%20.367.405c.137.082.28.123.455.123.423%200%20.59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493%200%20.642.099l.247-1.794q-.196-.099-.717-.099a2.3%202.3%200%200%200-.545.063%202%202%200%200%200-.411.148%202.2%202.2%200%200%200-.4.249%202.5%202.5%200%200%200-.485.499%202.7%202.7%200%200%200-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5%201.5%200%200%201%20.466-.636%202.5%202.5%200%200%201%20.399-.253%202%202%200%200%201%20.224-.099zm9.784%202.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46%203.46%200%200%200-1.4%201.382q-.493.906-.493%202.106%200%201.07.428%201.975.428.89%201.332%201.432.906.526%202.255.526.973%200%201.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954%200-1.497-.444a1.6%201.6%200%200%201-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1%201%200%200%200-.156-.176q-.46-.428-1.316-.428-.986%200-1.494.604-.379.45-.494%201.234zm-27.053%202.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z%22%2F%3E%3Cpath%20fill%3D%22%23fff%22%20d%3D%22m19.63%2011.151-.757-1.71-.345%201.71-1.12%205.644h-1.827L18.083%204.7h.197l3.325%206.533.988%202.19.988-2.19L26.839%204.7h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.93%205.644h-.098l-2.913-5.644zm14.836%205.81q-1.02%200-1.893-.478a3.8%203.8%200%200%201-1.381-1.382q-.51-.906-.51-2.106%200-1.185.444-2.074a3.36%203.36%200%200%201%201.3-1.382q.839-.494%201.974-.494a3.3%203.3%200%200%201%201.234.231%203.3%203.3%200%200%201%20.97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02%201.053a3.17%203.17%200%200%201-1.662.444zm.296-1.482q.938%200%201.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2%202.2%200%200%200-.807-.872%202.1%202.1%200%200%200-1.119-.313q-1.053%200-1.629.692-.575.675-.575%201.76%200%201.103.559%201.795.577.675%201.645.675zm6.521-6.237h1.711v1.4q.906-1.597%202.83-1.597%201.596%200%202.584%201.02.988%201.005.988%202.914%200%201.185-.493%202.09a3.46%203.46%200%200%201-1.316%201.399%203.5%203.5%200%200%201-1.844.493q-.954%200-1.662-.329a2.67%202.67%200%200%201-1.086-.97l.017%205.134h-1.728zm4.048%206.22q1.07%200%201.645-.674.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.592%200-1.12.296-.51.28-.822.823-.296.527-.296%201.234v.115q0%20.708.296%201.267.313.543.823.855.51.296%201.119.297z%22%2F%3E%3Cpath%20fill%3D%22%23e1e3e9%22%20d%3D%22M51.325%204.7h1.86v10.45h3.473v1.646h-5.333zm7.12%204.542h1.843v7.553h-1.843zm.905-1.415a1.16%201.16%200%200%201-.856-.346%201.17%201.17%200%200%201-.346-.856%201.05%201.05%200%200%201%20.346-.79q.346-.329.856-.329.494%200%20.839.33a1.05%201.05%200%200%201%20.345.79%201.16%201.16%200%200%201-.345.855q-.33.346-.84.346zm7.875%209.133a3.17%203.17%200%200%201-1.662-.444q-.723-.46-1.004-1.053l-.033%201.332h-1.71V4.701h1.743v4.657l-.082%201.283q.279-.658%201.086-1.119a3.5%203.5%200%200%201%201.778-.477q1.119%200%201.942.51a3.24%203.24%200%200%201%201.283%201.4q.445.888.444%202.072%200%201.201-.526%202.09a3.5%203.5%200%200%201-1.382%201.366%203.8%203.8%200%200%201-1.876.477zm-.296-1.481q1.069%200%201.645-.675.577-.69.577-1.778%200-1.102-.577-1.776-.56-.691-1.645-.692a2.12%202.12%200%200%200-1.58.659q-.642.641-.642%201.694v.115q0%20.71.296%201.267a2.4%202.4%200%200%200%20.807.872%202.1%202.1%200%200%200%201.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14%202.14%200%200%201%201.349-.46q.527%200%20.724.098l-.247%201.794q-.149-.099-.642-.099-.774%200-1.416.494-.626.493-.626%201.58v3.883h-1.777V9.242zm9.534%207.718q-1.35%200-2.255-.526-.904-.543-1.332-1.432a4.6%204.6%200%200%201-.428-1.975q0-1.2.493-2.106a3.46%203.46%200%200%201%201.4-1.382q.889-.495%202.007-.494%201.744%200%202.584.97.855.956.856%202.7%200%20.444-.05.92h-5.43q.18%201.005.708%201.45.542.443%201.497.443.79%200%201.3-.131a4%204%200%200%200%20.938-.362l.542%201.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728%200-1.991%201.86z%22%2F%3E%3Cpath%20d%3D%22M5.074%2015.948a.484.657%200%200%200-.486.659v1.84a.484.657%200%200%200%20.486.659h4.101a.484.657%200%200%200%20.486-.659v-1.84a.484.657%200%200%200-.486-.659zm3.56%201.16H5.617v.838h3.017z%22%20style%3D%22fill%3A%23fff%3Bfill-rule%3Aevenodd%3Bstroke-width%3A1.03600001%22%2F%3E%3Cg%20style%3D%22stroke-width%3A1.12603545%22%3E%3Cpath%20d%3D%22M-9.408-1.416c-3.833-.025-7.056%202.912-7.08%206.615-.02%203.08%201.653%204.832%203.107%206.268.903.892%201.721%201.74%202.32%202.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87%201.87%200%200%200-.362%201.121l-.011%201.877c-.003.402.104.787.347%201.125.244.338.688.653%201.23.656l4.142.028c.542.003.99-.306%201.238-.641a1.87%201.87%200%200%200%20.363-1.121l.012-1.875a1.87%201.87%200%200%200-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145%201.425-1.983%202.348-2.87%201.473-1.414%203.18-3.149%203.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006%201.1v.002c3.274.02%205.92%202.532%205.9%205.6-.017%202.706-1.39%204.026-2.863%205.44-1.034.994-2.118%202.033-2.814%203.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34%200%200%201-.226.084.34.34%200%200%201-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067%202.7-5.545%205.975-5.523m-.02%202.826c-1.62-.01-2.944%201.315-2.955%202.96-.01%201.646%201.295%202.988%202.916%202.999h.002c1.621.01%202.943-1.316%202.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005%201.1c1.017.006%201.829.83%201.822%201.89s-.83%201.874-1.848%201.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874%201.848-1.868m-2.155%2011.857%204.14.025c.271.002.49.305.487.676l-.013%201.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668%22%20style%3D%22color%3A%23000%3Bfont-style%3Anormal%3Bfont-variant%3Anormal%3Bfont-weight%3A400%3Bfont-stretch%3Anormal%3Bfont-size%3Amedium%3Bline-height%3Anormal%3Bfont-family%3Asans-serif%3Bfont-variant-ligatures%3Anormal%3Bfont-variant-position%3Anormal%3Bfont-variant-caps%3Anormal%3Bfont-variant-numeric%3Anormal%3Bfont-variant-alternates%3Anormal%3Bfont-feature-settings%3Anormal%3Btext-indent%3A0%3Btext-align%3Astart%3Btext-decoration%3Anone%3Btext-decoration-line%3Anone%3Btext-decoration-style%3Asolid%3Btext-decoration-color%3A%23000%3Bletter-spacing%3Anormal%3Bword-spacing%3Anormal%3Btext-transform%3Anone%3Bwriting-mode%3Alr-tb%3Bdirection%3Altr%3Btext-orientation%3Amixed%3Bdominant-baseline%3Aauto%3Bbaseline-shift%3Abaseline%3Btext-anchor%3Astart%3Bwhite-space%3Anormal%3Bshape-padding%3A0%3Bclip-rule%3Aevenodd%3Bdisplay%3Ainline%3Boverflow%3Avisible%3Bvisibility%3Avisible%3Bopacity%3A1%3Bisolation%3Aauto%3Bmix-blend-mode%3Anormal%3Bcolor-interpolation%3AsRGB%3Bcolor-interpolation-filters%3AlinearRGB%3Bsolid-color%3A%23000%3Bsolid-opacity%3A1%3Bvector-effect%3Anone%3Bfill%3A%23000%3Bfill-opacity%3A.4%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-linecap%3Abutt%3Bstroke-linejoin%3Amiter%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-dashoffset%3A0%3Bstroke-opacity%3A1%3Bcolor-rendering%3Aauto%3Bimage-rendering%3Aauto%3Bshape-rendering%3Aauto%3Btext-rendering%3Aauto%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-9.415-.316C-12.69-.338-15.37%202.14-15.39%205.207c-.017%202.716%201.326%204.041%202.78%205.477%201.013%201%202.081%202.055%202.78%203.67l.092.076a.34.34%200%200%200%20.225.086.34.34%200%200%200%20.227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6%201.78-2.64%202.814-3.634%201.473-1.414%202.847-2.733%202.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057%208.784c1.621.011%202.944-1.315%202.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945%201.315-2.955%202.96s1.295%202.989%202.916%203%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23e1e3e9%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-11.594%2015.465c-.27-.002-.492.297-.494.668l-.012%201.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23fff%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl.maplibregl-ctrl-attrib{padding:0 5px;background-color:hsla(0,0%,100%,.5);margin:0}@media screen{.maplibregl-ctrl-attrib.maplibregl-compact{min-height:20px;padding:2px 24px 2px 0;margin:10px;position:relative;background-color:#fff;color:#000;border-radius:12px;box-sizing:content-box}.maplibregl-ctrl-attrib.maplibregl-compact-show{padding:2px 28px 2px 8px;visibility:visible}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact-show,.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact-show{padding:2px 8px 2px 28px;border-radius:12px}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-inner{display:none}.maplibregl-ctrl-attrib-button{display:none;cursor:pointer;position:absolute;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20fill-rule%3D%22evenodd%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M4%2010a6%206%200%201%200%2012%200%206%206%200%201%200-12%200m5-3a1%201%200%201%200%202%200%201%201%200%201%200-2%200m0%203a1%201%200%201%201%202%200v3a1%201%200%201%201-2%200%22%2F%3E%3C%2Fsvg%3E");background-color:hsla(0,0%,100%,.5);width:24px;height:24px;box-sizing:border-box;border-radius:12px;outline:none;top:0;right:0;border:0}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;list-style:none}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button::-webkit-details-marker{display:none}.maplibregl-ctrl-bottom-left .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-top-left .maplibregl-ctrl-attrib-button{left:0}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-inner{display:block}.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-button{background-color:rgba(0,0,0,.05)}.maplibregl-ctrl-bottom-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;right:0}.maplibregl-ctrl-top-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{top:0;right:0}.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{top:0;left:0}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;left:0}}@media screen and (forced-colors:active){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22%23fff%22%20fill-rule%3D%22evenodd%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M4%2010a6%206%200%201%200%2012%200%206%206%200%201%200-12%200m5-3a1%201%200%201%200%202%200%201%201%200%201%200-2%200m0%203a1%201%200%201%201%202%200v3a1%201%200%201%201-2%200%22%2F%3E%3C%2Fsvg%3E")}}@media screen and (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20fill-rule%3D%22evenodd%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M4%2010a6%206%200%201%200%2012%200%206%206%200%201%200-12%200m5-3a1%201%200%201%200%202%200%201%201%200%201%200-2%200m0%203a1%201%200%201%201%202%200v3a1%201%200%201%201-2%200%22%2F%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl-attrib a{color:rgba(0,0,0,.75);text-decoration:none}.maplibregl-ctrl-attrib a:hover{color:inherit;text-decoration:underline}.maplibregl-attrib-empty{display:none}.maplibregl-ctrl-scale{background-color:hsla(0,0%,100%,.75);font-size:10px;white-space:nowrap;border-color:#333;border-style:none solid solid;border-width:medium 2px 2px;padding:0 5px;color:#333;box-sizing:border-box}.maplibregl-popup{position:absolute;top:0;left:0;display:flex;will-change:transform;pointer-events:none}.maplibregl-popup-anchor-top,.maplibregl-popup-anchor-top-left,.maplibregl-popup-anchor-top-right{flex-direction:column}.maplibregl-popup-anchor-bottom,.maplibregl-popup-anchor-bottom-left,.maplibregl-popup-anchor-bottom-right{flex-direction:column-reverse}.maplibregl-popup-anchor-left{flex-direction:row}.maplibregl-popup-anchor-right{flex-direction:row-reverse}.maplibregl-popup-tip{width:0;height:0;border:10px solid transparent;z-index:1}.maplibregl-popup-anchor-top .maplibregl-popup-tip{align-self:center;border-top:none;border-bottom-color:#fff}.maplibregl-popup-anchor-top-left .maplibregl-popup-tip{align-self:flex-start;border-top:none;border-left:none;border-bottom-color:#fff}.maplibregl-popup-anchor-top-right .maplibregl-popup-tip{align-self:flex-end;border-top:none;border-right:none;border-bottom-color:#fff}.maplibregl-popup-anchor-bottom .maplibregl-popup-tip{align-self:center;border-bottom:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip{align-self:flex-start;border-bottom:none;border-left:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip{align-self:flex-end;border-bottom:none;border-right:none;border-top-color:#fff}.maplibregl-popup-anchor-left .maplibregl-popup-tip{align-self:center;border-left:none;border-right-color:#fff}.maplibregl-popup-anchor-right .maplibregl-popup-tip{align-self:center;border-right:none;border-left-color:#fff}[dir=rtl] .maplibregl-popup-anchor-left{flex-direction:row-reverse}[dir=rtl] .maplibregl-popup-anchor-right{flex-direction:row}[dir=rtl] .maplibregl-popup-anchor-top-left .maplibregl-popup-tip{align-self:flex-end}[dir=rtl] .maplibregl-popup-anchor-top-right .maplibregl-popup-tip{align-self:flex-start}[dir=rtl] .maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip{align-self:flex-end}[dir=rtl] .maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip{align-self:flex-start}.maplibregl-popup-close-button{position:absolute;right:0;top:0;border:0;border-radius:0 3px 0 0;cursor:pointer;background-color:transparent}.maplibregl-popup-close-button:hover{background-color:rgba(0,0,0,.05)}.maplibregl-popup-content{position:relative;background:#fff;border-radius:3px;box-shadow:0 1px 2px rgba(0,0,0,.1);padding:15px 10px;pointer-events:auto}.maplibregl-popup-anchor-top-left .maplibregl-popup-content{border-top-left-radius:0}.maplibregl-popup-anchor-top-right .maplibregl-popup-content{border-top-right-radius:0}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-content{border-bottom-left-radius:0}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-content{border-bottom-right-radius:0}.maplibregl-popup-track-pointer{display:none}.maplibregl-popup-track-pointer *{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-map:hover .maplibregl-popup-track-pointer{display:flex}.maplibregl-map:active .maplibregl-popup-track-pointer{display:none}.maplibregl-marker{position:absolute;top:0;left:0;will-change:transform;transition:opacity .2s}.maplibregl-marker-draggable{cursor:grab}.maplibregl-user-location-dot,.maplibregl-user-location-dot:before{background-color:#1da1f2;width:15px;height:15px;border-radius:50%}.maplibregl-user-location-dot:before{content:"";position:absolute;animation:maplibregl-user-location-dot-pulse 2s infinite}.maplibregl-user-location-dot:after{border-radius:50%;border:2px solid #fff;content:"";height:19px;left:-2px;position:absolute;top:-2px;width:19px;box-sizing:border-box;box-shadow:0 0 3px rgba(0,0,0,.35)}@media (prefers-reduced-motion:reduce){.maplibregl-user-location-dot:before{animation:none}}@keyframes maplibregl-user-location-dot-pulse{0%{transform:scale(1);opacity:1}70%{transform:scale(3);opacity:0}to{transform:scale(1);opacity:0}}.maplibregl-user-location-dot-stale{background-color:#aaa}.maplibregl-user-location-dot-stale:after{display:none}.maplibregl-user-location-accuracy-circle{background-color:#1da1f233;width:1px;height:1px;border-radius:100%}.maplibregl-crosshair,.maplibregl-crosshair .maplibregl-interactive,.maplibregl-crosshair .maplibregl-interactive:active{cursor:crosshair}.maplibregl-boxzoom{position:absolute;top:0;left:0;width:0;height:0;background:#fff;border:2px dotted #202020;opacity:.5}.maplibregl-cooperative-gesture-screen{background:rgba(0,0,0,.4);position:absolute;inset:0;display:flex;justify-content:center;align-items:center;color:#fff;padding:1rem;font-size:1.4em;line-height:1.2;opacity:0;pointer-events:none;transition:opacity 1s ease 1s;z-index:99999}.maplibregl-cooperative-gesture-screen.maplibregl-show{opacity:1;transition:opacity .05s}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:none}@media (hover:none),(pointer:coarse){.maplibregl-cooperative-gesture-screen .maplibregl-desktop-message{display:none}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:block}}.maplibregl-pseudo-fullscreen{position:fixed!important;width:100%!important;height:100%!important;top:0!important;left:0!important;z-index:99999}`; document.head.appendChild(e58); } @@ -25039,6 +25039,55 @@ var Plotly = (() => { var FIND_TEX = /([^$]*)([$]+[^$]*[$]+)([^$]*)/; var matchTex = (str) => str ? str.match(FIND_TEX) : null; exports.matchTex = matchTex; + var isPureTex = (str) => { + var tex = matchTex(str); + return !!tex && !tex[1] && !tex[3]; + }; + exports.isPureTex = isPureTex; + function positionMathGroup(_context, svgClass, mathjaxGroup, newSvg, textAnchor, fontSize, width0, height0) { + var g2 = newSvg.select("g"); + var bb2 = g2.node().getBoundingClientRect(); + var w2 = bb2.width; + var h2 = bb2.height; + var w0 = width0 === void 0 ? w2 : width0; + var h0 = height0 === void 0 ? h2 : height0; + if (w2 > w0 || h2 > h0) { + newSvg.style("overflow", "hidden"); + bb2 = newSvg.node().getBoundingClientRect(); + w2 = bb2.width; + h2 = bb2.height; + } + var x2 = +_context.attr("x"); + var y2 = +_context.attr("y"); + var textHeight = fontSize || _context.node().getBoundingClientRect().height; + var dy = -textHeight / 4; + if (svgClass[0] === "y") { + mathjaxGroup.attr({ + transform: "rotate(" + [-90, x2, y2] + ")" + strTranslate(-w2 / 2, dy - h2 / 2) + }); + } else if (svgClass[0] === "l") { + y2 = dy - h2 / 2; + } else if (svgClass[0] === "a" && svgClass.indexOf("atitle") !== 0) { + x2 = 0; + y2 = dy; + } else { + x2 = x2 - w2 * (textAnchor === "middle" ? 0.5 : textAnchor === "end" ? 1 : 0); + y2 = y2 + dy - h2 / 2; + } + newSvg.attr({ + x: x2, + y: y2 + }); + } + function sanitizeMathJaxLinks(newSvg) { + newSvg.selectAll("a").each(function() { + var a2 = d3.select(this); + ["href", "xlink:href"].forEach(function(attrName) { + var href = a2.attr(attrName); + if (href) a2.attr(attrName, sanitizeHref(href) || null); + }); + }); + } exports.convertToTspans = function(_context, gd3, _callback) { var str = _context.text(); var tex = !_context.attr("data-notex") && gd3 && gd3._context.typesetMath && matchTex(str); @@ -25092,6 +25141,7 @@ var Plotly = (() => { "data-math": "Y" }); mathjaxGroup.node().appendChild(newSvg.node()); + sanitizeMathJaxLinks(newSvg); if (_glyphDefs && _glyphDefs.node()) { newSvg.node().insertBefore( _glyphDefs.node().cloneNode(true), @@ -25112,36 +25162,7 @@ var Plotly = (() => { var fill = _context.node().style.fill || "black"; var g2 = newSvg.select("g"); g2.attr({ fill, stroke: fill }); - var bb2 = g2.node().getBoundingClientRect(); - var w2 = bb2.width; - var h2 = bb2.height; - if (w2 > w0 || h2 > h0) { - newSvg.style("overflow", "hidden"); - bb2 = newSvg.node().getBoundingClientRect(); - w2 = bb2.width; - h2 = bb2.height; - } - var x2 = +_context.attr("x"); - var y2 = +_context.attr("y"); - var textHeight = fontSize || _context.node().getBoundingClientRect().height; - var dy = -textHeight / 4; - if (svgClass[0] === "y") { - mathjaxGroup.attr({ - transform: "rotate(" + [-90, x2, y2] + ")" + strTranslate(-w2 / 2, dy - h2 / 2) - }); - } else if (svgClass[0] === "l") { - y2 = dy - h2 / 2; - } else if (svgClass[0] === "a" && svgClass.indexOf("atitle") !== 0) { - x2 = 0; - y2 = dy; - } else { - x2 = x2 - w2 * (textAnchor === "middle" ? 0.5 : textAnchor === "end" ? 1 : 0); - y2 = y2 + dy - h2 / 2; - } - newSvg.attr({ - x: x2, - y: y2 - }); + positionMathGroup(_context, svgClass, mathjaxGroup, newSvg, textAnchor, fontSize, w0, h0); if (_callback) _callback.call(_context, mathjaxGroup); resolve(mathjaxGroup); }); @@ -25149,6 +25170,24 @@ var Plotly = (() => { } else showText(); return _context; }; + exports.repositionMathGroup = function(_context) { + if (_context.empty()) return; + var svgClass = (_context.attr("class") ? _context.attr("class").split(" ")[0] : "text") + "-math"; + var parent = d3.select(_context.node().parentNode); + var mathjaxGroup = parent.select("g." + svgClass + "-group"); + var newSvg = mathjaxGroup.select("svg." + svgClass); + if (mathjaxGroup.empty() || newSvg.empty()) return; + var textAnchor = _context.attr("text-anchor"); + var fontSize = parseInt(_context.node().style.fontSize, 10); + positionMathGroup(_context, svgClass, mathjaxGroup, newSvg, textAnchor, fontSize); + }; + exports.getMathOrTextNode = function(textSel) { + var node = textSel.node(); + if (!node) return null; + var svgClass = (textSel.attr("class") ? textSel.attr("class").split(" ")[0] : "text") + "-math"; + var mathGroup = d3.select(node.parentNode).select("g." + svgClass + "-group"); + return mathGroup.empty() ? node : mathGroup.node(); + }; var LT_MATCH = /(<|<|<)/g; var GT_MATCH = /(>|>|>)/g; function cleanEscapesForTex(s2) { @@ -32631,6 +32670,10 @@ var Plotly = (() => { if (((_b3 = ax2.minor) == null ? void 0 : _b3._tick0Init) === void 0) { mockAx.tick0 = ax2.tick0; } + if (ax2._useTicklabelIndex) { + autoTickRound(mockAx); + ax2.minor._tickround = mockAx._tickround; + } }; function isMultiple(bigger, smaller) { return Math.abs((bigger / smaller + 0.5) % 1 - 0.5) < 1e-3; @@ -32718,24 +32761,32 @@ var Plotly = (() => { function positionPeriodTicks(tickVals, ax2, definedDelta) { for (var i2 = 0; i2 < tickVals.length; i2++) { var v2 = tickVals[i2].value; - var a2 = i2; - var b2 = i2 + 1; - if (i2 < tickVals.length - 1) { - a2 = i2; - b2 = i2 + 1; - } else if (i2 > 0) { - a2 = i2 - 1; - b2 = i2; - } else { - a2 = i2; - b2 = i2; - } - var A3 = tickVals[a2].value; - var B3 = tickVals[b2].value; + var A3, B3; + if (tickVals[i2].periodEndTick != null) { + A3 = tickVals[i2].value; + B3 = tickVals[i2].periodEndTick.value; + } else { + var a2 = i2; + var b2 = i2 + 1; + if (i2 < tickVals.length - 1) { + a2 = i2; + b2 = i2 + 1; + } else if (i2 > 0) { + a2 = i2 - 1; + b2 = i2; + } else { + a2 = i2; + b2 = i2; + } + A3 = tickVals[a2].value; + B3 = tickVals[b2].value; + } var actualDelta = Math.abs(B3 - A3); var delta = definedDelta || actualDelta; var periodLength = 0; - if (delta >= ONEMINYEAR2) { + if (tickVals[i2].periodEndTick != null) { + periodLength = actualDelta; + } else if (delta >= ONEMINYEAR2) { if (actualDelta >= ONEMINYEAR2 && actualDelta <= ONEMAXYEAR2) { periodLength = actualDelta; } else { @@ -32794,6 +32845,7 @@ var Plotly = (() => { var isPeriod = ax2.ticklabelmode === "period"; var isReversed = ax2.range[0] > ax2.range[1]; var ticklabelIndex = !ax2.ticklabelindex || Lib.isArrayOrTypedArray(ax2.ticklabelindex) ? ax2.ticklabelindex : [ax2.ticklabelindex]; + ax2._useTicklabelIndex = ticklabelIndex != null && ticklabelIndex !== 0; var rng = Lib.simpleMap(ax2.range, ax2.r2l, void 0, void 0, opts); var axrev = rng[1] < rng[0]; var minRange = Math.min(rng[0], rng[1]); @@ -32805,7 +32857,7 @@ var Plotly = (() => { var minorTickVals = []; var allTicklabelVals = []; var hasMinor = ax2.minor && (ax2.minor.ticks || ax2.minor.showgrid); - var calcMinor = hasMinor || ticklabelIndex; + var calcMinor = hasMinor || ax2._useTicklabelIndex; for (var major = 1; major >= (calcMinor ? 0 : 1); major--) { var isMinor = !major; if (major) { @@ -32875,7 +32927,7 @@ var Plotly = (() => { x2 = axes.tickIncrement(x2, dtick, !axrev, calendar); } } - if ((major || ticklabelIndex) && isPeriod) { + if ((major || ax2._useTicklabelIndex) && isPeriod) { x2 = axes.tickIncrement(x2, dtick, !axrev, calendar); if (major) majorId--; } @@ -32910,72 +32962,82 @@ var Plotly = (() => { } } } + function findOverlappingTick(minorTick, majorTicks) { + const majorTick = majorTicks.find((majorTick2) => majorTick2.value === minorTick.value); + if (majorTick != null) { + return majorTick; + } + const epsilon3 = 1e7; + for (let i3 = 0; i3 < majorTicks.length; i3++) { + if (epsilon3 + majorTicks[i3].value === epsilon3 + minorTick.value) { + return majorTicks[i3]; + } + } + return null; + } + ; if (!minorTickVals || minorTickVals.length < 3) { - ticklabelIndex = false; + ax2._useTicklabelIndex = false; } else { - var diff = (minorTickVals[2].value - minorTickVals[1].value) * (isReversed ? -1 : 1); + const diff = (minorTickVals[2].value - minorTickVals[1].value) * (isReversed ? -1 : 1); if (!periodCompatibleWithTickformat(diff, ax2.tickformat)) { - ticklabelIndex = false; + ax2._useTicklabelIndex = false; minorTickVals = minorTickVals.slice(1); } } - if (!ticklabelIndex) { + if (!ax2._useTicklabelIndex) { allTicklabelVals = tickVals; } else { - var allTickVals = tickVals.concat(minorTickVals); + const filteredMinors = minorTickVals.filter((minor) => findOverlappingTick(minor, tickVals) == null); + const labelTickValsAscending = tickVals.concat(filteredMinors).sort((a2, b2) => a2.value - b2.value); if (isPeriod && tickVals.length) { - allTickVals = allTickVals.slice(1); - } - allTickVals = allTickVals.sort(function(a2, b2) { - return a2.value - b2.value; - }).filter(function(tick, index, self2) { - return index === 0 || tick.value !== self2[index - 1].value; - }); - var majorTickIndices = allTickVals.map(function(item, index) { - return item.minor === void 0 && !item.skipLabel ? index : null; - }).filter(function(index) { - return index !== null; - }); - majorTickIndices.forEach(function(majorIdx) { - ticklabelIndex.map(function(nextLabelIdx) { - var minorIdx = majorIdx + nextLabelIdx; - if (minorIdx >= 0 && minorIdx < allTickVals.length) { - Lib.pushUnique(allTicklabelVals, allTickVals[minorIdx]); - } - }); - }); - tickVals.forEach(function(tick) { - tick.skipLabel = allTicklabelVals.indexOf(tick) === -1; + tickVals[0].skipLabel = true; + } + tickVals.forEach(function(majorTick) { + if (!majorTick.skipLabel) { + ticklabelIndex.forEach((labelIndex) => { + if (labelIndex < 0) { + const smallerTicks = labelTickValsAscending.filter((minorTick) => minorTick.value <= majorTick.value); + const absLabelIndex = Math.abs(labelIndex); + const labeledTickIndex = smallerTicks.length - absLabelIndex - 1; + if (absLabelIndex < smallerTicks.length) { + const tickToLabel = smallerTicks[labeledTickIndex]; + allTicklabelVals.push(tickToLabel); + if (isPeriod) { + tickToLabel.periodEndTick = smallerTicks[labeledTickIndex + 1]; + } + } + } else { + const largerTicks = labelTickValsAscending.filter((minorTick) => minorTick.value >= majorTick.value); + if (labelIndex < largerTicks.length) { + const tickToLabel = largerTicks[labelIndex]; + allTicklabelVals.push(tickToLabel); + if (isPeriod && largerTicks[labelIndex + 1]) { + tickToLabel.periodEndTick = largerTicks[labelIndex + 1]; + } + } + } + }); + majorTick.skipLabel = true; + } }); + allTicklabelVals.forEach((t6) => t6.skipLabel = false); } if (hasMinor) { - var canOverlap = ax2.minor.ticks === "inside" && ax2.ticks === "outside" || ax2.minor.ticks === "outside" && ax2.ticks === "inside"; - if (!canOverlap) { - var majorValues = tickVals.map(function(d2) { - return d2.value; - }); + var allowedToOverlap = ax2.minor.ticks === "inside" && ax2.ticks === "outside" || ax2.minor.ticks === "outside" && ax2.ticks === "inside"; + if (!allowedToOverlap) { var list = []; for (var k2 = 0; k2 < minorTickVals.length; k2++) { - var T2 = minorTickVals[k2]; - var v2 = T2.value; - if (majorValues.indexOf(v2) !== -1) { - continue; - } - var found = false; - for (var q3 = 0; !found && q3 < tickVals.length; q3++) { - if ( - // add 10e6 to eliminate problematic digits - 1e7 + tickVals[q3].value === 1e7 + v2 - ) { - found = true; - } + if (findOverlappingTick(minorTickVals[k2], tickVals) == null) { + list.push(minorTickVals[k2]); } - if (!found) list.push(T2); } minorTickVals = list; } } - if (isPeriod) positionPeriodTicks(allTicklabelVals, ax2, ax2._definedDelta); + if (isPeriod) { + positionPeriodTicks(allTicklabelVals, ax2, ax2._definedDelta); + } var i2; if (ax2.rangebreaks) { var flip = ax2._id.charAt(0) === "y"; @@ -33038,7 +33100,7 @@ var Plotly = (() => { var _minor = tickVals[i2].minor; var _value = tickVals[i2].value; if (_minor) { - if (ticklabelIndex && allTicklabelVals.indexOf(tickVals[i2]) !== -1) { + if (ax2._useTicklabelIndex && allTicklabelVals.indexOf(tickVals[i2]) !== -1) { t5 = setTickLabel(ax2, tickVals[i2]); } else { t5 = { x: _value }; @@ -33054,7 +33116,7 @@ var Plotly = (() => { ticksOut.push(t5); } } - if (isPeriod && ticklabelIndex && minorTicks.length) { + if (isPeriod && ax2._useTicklabelIndex && minorTicks.length) { minorTicks[0].noTick = true; } ticksOut = ticksOut.concat(minorTicks); @@ -33423,7 +33485,7 @@ var Plotly = (() => { }; } function formatDate(ax2, out, hover, extraPrecision) { - var tr2 = ax2._tickround; + var tr2 = ax2._useTicklabelIndex ? ax2.minor._tickround : ax2._tickround; var fmt = hover && ax2.hoverformat || axes.getTickFormat(ax2); extraPrecision = !fmt && extraPrecision; if (extraPrecision) { @@ -35758,12 +35820,44 @@ var Plotly = (() => { } }); + // src/components/legend/constants.ts + var constants_exports3 = {}; + __export(constants_exports3, { + dfltFillHeight: () => dfltFillHeight, + itemGap: () => itemGap, + itemHeightPad: () => itemHeightPad, + itemMinHeight: () => itemMinHeight, + scrollBarColor: () => scrollBarColor, + scrollBarEnterAttrs: () => scrollBarEnterAttrs, + scrollBarMargin: () => scrollBarMargin, + scrollBarMinHeight: () => scrollBarMinHeight, + scrollBarWidth: () => scrollBarWidth, + titlePad: () => titlePad + }); + var scrollBarWidth, scrollBarMinHeight, scrollBarColor, scrollBarMargin, scrollBarEnterAttrs, titlePad, itemGap, dfltFillHeight, itemMinHeight, itemHeightPad; + var init_constants3 = __esm({ + "src/components/legend/constants.ts"() { + "use strict"; + scrollBarWidth = 6; + scrollBarMinHeight = 20; + scrollBarColor = "#808BA4"; + scrollBarMargin = 4; + scrollBarEnterAttrs = { rx: 20, ry: 3, width: 0, height: 0 }; + titlePad = 2; + itemGap = 5; + dfltFillHeight = 6; + itemMinHeight = 16; + itemHeightPad = 3; + } + }); + // src/components/legend/attributes.js var require_attributes9 = __commonJS({ "src/components/legend/attributes.js"(exports, module) { "use strict"; var fontAttrs = require_font_attributes(); var colorAttrs = require_attributes3(); + var { dfltFillHeight: dfltFillHeight2 } = (init_constants3(), __toCommonJS(constants_exports3)); module.exports = { // not really a 'subplot' attribute container, // but this is the flag we use to denote attributes that @@ -35895,6 +35989,18 @@ var Plotly = (() => { editType: "legend", description: "Sets the width (in px) of the legend item symbols (the part other than the title.text)." }, + itemheight: { + valType: "number", + min: dfltFillHeight2, + dflt: dfltFillHeight2, + editType: "legend", + description: [ + "Sets the height (in px) of the legend item fill swatch.", + "A taller swatch shows more of a trace *fill* or *fillpattern*.", + "Only traces with a *fill* use this value.", + "Every legend item grows to fit, so a larger value makes every row taller." + ].join(" ") + }, itemclick: { valType: "enumerated", values: ["toggle", "toggleothers", false], @@ -36278,6 +36384,7 @@ var Plotly = (() => { coerce("indentation"); coerce("itemsizing"); coerce("itemwidth"); + coerce("itemheight"); coerce("itemclick"); coerce("itemdoubleclick"); const groupClick = coerce("groupclick"); @@ -36598,31 +36705,6 @@ var Plotly = (() => { } }); - // src/components/legend/constants.ts - var constants_exports3 = {}; - __export(constants_exports3, { - itemGap: () => itemGap, - scrollBarColor: () => scrollBarColor, - scrollBarEnterAttrs: () => scrollBarEnterAttrs, - scrollBarMargin: () => scrollBarMargin, - scrollBarMinHeight: () => scrollBarMinHeight, - scrollBarWidth: () => scrollBarWidth, - titlePad: () => titlePad - }); - var scrollBarWidth, scrollBarMinHeight, scrollBarColor, scrollBarMargin, scrollBarEnterAttrs, titlePad, itemGap; - var init_constants3 = __esm({ - "src/components/legend/constants.ts"() { - "use strict"; - scrollBarWidth = 6; - scrollBarMinHeight = 20; - scrollBarColor = "#808BA4"; - scrollBarMargin = 4; - scrollBarEnterAttrs = { rx: 20, ry: 3, width: 0, height: 0 }; - titlePad = 2; - itemGap = 5; - } - }); - // src/components/legend/get_legend_data.js var require_get_legend_data = __commonJS({ "src/components/legend/get_legend_data.js"(exports, module) { @@ -36867,6 +36949,7 @@ var Plotly = (() => { if (!legend) legend = fullLayout.legend; var constantItemSizing = legend.itemsizing === "constant"; var itemWidth = legend.itemwidth; + var itemHeight = legend.itemheight; var centerPos = (itemWidth + constants2.itemGap * 2) / 2; var centerTransform = strTranslate(centerPos, 0); var boundLineWidth = function(mlw, cont, max, cst) { @@ -36944,7 +37027,9 @@ var Plotly = (() => { var fill = this3.select(".legendfill").selectAll("path").data(showFill || showGradientFill ? [d2] : []); fill.enter().append("path").classed("js-fill", true); fill.exit().remove(); - fill.attr("d", pathStart + "h" + itemWidth + "v6h-" + itemWidth + "z").call(fillStyle); + fill.attr("d", pathStart + "h" + itemWidth + "v" + itemHeight + "h-" + itemWidth + "z").call(fillStyle); + const fillShiftY = showFill || showGradientFill ? (constants2.dfltFillHeight - itemHeight) / 2 : 0; + this3.selectAll("g.legendfill, g.legendlines, g.legendsymbols").attr("transform", fillShiftY ? strTranslate(0, fillShiftY) : null); if (showLine || showGradientLine) { var lw2 = boundLineWidth(void 0, trace.line, MAX_LINE_WIDTH, CST_LINE_WIDTH); tMod = Lib.minExtend(trace, { line: { width: lw2 } }); @@ -37104,14 +37189,18 @@ var Plotly = (() => { var fillColor = mcc || d0.mc || marker.color; var markerPattern = marker.pattern; var pAttr = Drawing.getPatternAttr; - var patternShape = markerPattern && (pAttr(markerPattern.shape, 0, "") || pAttr(markerPattern.path, 0, "")); + let patternIndex = 0; + if (legend._inHover && d0._distinct && d0.index != null) { + patternIndex = d0.index; + } + const patternShape = markerPattern && (pAttr(markerPattern.shape, patternIndex, "") || pAttr(markerPattern.path, patternIndex, "")); if (patternShape) { - var patternBGColor = pAttr(markerPattern.bgcolor, 0, null); - var patternFGColor = pAttr(markerPattern.fgcolor, 0, null); + const patternBGColor = pAttr(markerPattern.bgcolor, patternIndex, null); + const patternFGColor = pAttr(markerPattern.fgcolor, patternIndex, null); var patternFGOpacity = markerPattern.fgopacity; - var patternSize = dimAttr(markerPattern.size, 8, 10); - var patternSolidity = dimAttr(markerPattern.solidity, 0.5, 1); - var patternID = "legend-" + trace.uid; + const patternSize = legend._inHover ? dimAttr(pAttr(markerPattern.size, patternIndex, 8), 8, 10) : dimAttr(markerPattern.size, 8, 10); + const patternSolidity = legend._inHover ? dimAttr(pAttr(markerPattern.solidity, patternIndex, 0.5), 0.5, 1) : dimAttr(markerPattern.solidity, 0.5, 1); + const patternID = legend._inHover ? `hover-${trace.uid}-${patternIndex}` : `legend-${trace.uid}`; p2.call( Drawing.pattern, "legend", @@ -37933,7 +38022,7 @@ var Plotly = (() => { }); } function textLayout(s2, g2, gd3, legendObj, aTitle) { - if (legendObj._inHover) s2.attr("data-notex", true); + if (legendObj._inHover) s2.attr("data-notex", svgTextUtils.isPureTex(s2.text()) ? null : true); svgTextUtils.convertToTspans(s2, gd3, function() { computeTextDimensions(g2, gd3, legendObj, aTitle); }); @@ -38008,7 +38097,8 @@ var Plotly = (() => { legendObj._titleHeight = height; } else { legendItem.lineHeight = lineHeight; - legendItem.height = Math.max(height, 16) + 3; + const fillItemHeight = constants2.itemMinHeight + legendObj.itemheight - constants2.dfltFillHeight; + legendItem.height = Math.max(height, constants2.itemMinHeight, fillItemHeight) + constants2.itemHeightPad; legendItem.width = width; } } @@ -38200,6 +38290,13 @@ var Plotly = (() => { } Drawing.setRect(traceToggle, 0, -h2 / 2, w2, h2); }); + if (legendObj._inHover) { + const textRight = legendObj._width - bw22 - itemGap2 - titleSize[0]; + traces.each(function(d2) { + if (d2[0].textAlign !== "right") return; + d3.select(this).select("." + legendId + "text").attr("text-anchor", "end").call(svgTextUtils.positionText, textRight); + }); + } var titleEl = scrollBox.select("." + legendId + "titletext"); if (titleEl.node()) { horizontalAlignTitle(titleEl, legendObj, bw2); @@ -38403,28 +38500,47 @@ var Plotly = (() => { outerContainer: opts.outerContainer || opts.container }); var hoverLabel = hoverText.hoverLabels; - var tooltipSpacing = 5; - var lastBottomY = 0; - var anchor = 0; - hoverLabel.sort(function(a2, b2) { - return a2.y0 - b2.y0; - }).each(function(d2, i2) { - var topY = d2.y0 - d2.by / 2; - if (topY - tooltipSpacing < lastBottomY) { - d2.offset = lastBottomY - topY + tooltipSpacing; - } else { - d2.offset = 0; - } - lastBottomY = topY + d2.by + d2.offset; - if (i2 === opts.anchorIndex || 0) anchor = d2.offset; - }).each(function(d2) { - d2.offset -= anchor; - }); + function fixVerticalOverlap() { + var tooltipSpacing = 5; + var lastBottomY = 0; + var anchor = 0; + hoverLabel.sort(function(a2, b2) { + return a2.y0 - b2.y0; + }).each(function(d2, i2) { + var topY = d2.y0 - d2.by / 2; + if (topY - tooltipSpacing < lastBottomY) { + d2.offset = lastBottomY - topY + tooltipSpacing; + } else { + d2.offset = 0; + } + lastBottomY = topY + d2.by + d2.offset; + if (i2 === opts.anchorIndex || 0) anchor = d2.offset; + }).each(function(d2) { + d2.offset -= anchor; + }); + } var scaleX = gd3._fullLayout._invScaleX; var scaleY = gd3._fullLayout._invScaleY; + fixVerticalOverlap(); alignHoverText(hoverLabel, rotateLabels, scaleX, scaleY); + if (hoverText.mathjaxPromise) { + hoverText.mathjaxPromise.then(function() { + fixVerticalOverlap(); + alignHoverText(hoverLabel, rotateLabels, scaleX, scaleY); + hoverLabel.each(function() { + var g2 = d3.select(this); + svgTextUtils.repositionMathGroup(g2.select("text.nums")); + svgTextUtils.repositionMathGroup(g2.select("text.name")); + }); + }); + } return multiHover ? hoverLabel : hoverLabel.node(); }; + function canSpikeToNonHoveredPoint(xa3, ya3) { + return Boolean( + (xa3 == null ? void 0 : xa3.showspikes) && xa3.spikesnap !== "hovered data" || (ya3 == null ? void 0 : ya3.showspikes) && ya3.spikesnap !== "hovered data" + ); + } function _hover(gd3, evt, subplot, noHoverEvent, eventTarget) { if (!subplot) subplot = "xy"; if (typeof subplot === "string") { @@ -38437,6 +38553,7 @@ var Plotly = (() => { var plots = fullLayout._plots || []; var plotinfo = plots[subplot]; var hasCartesian = fullLayout._has("cartesian"); + var hasTernary = fullLayout._has("ternary"); var hovermode = evt.hovermode || fullLayout.hovermode; var hovermodeHasX = (hovermode || "").charAt(0) === "x"; var hovermodeHasY = (hovermode || "").charAt(0) === "y"; @@ -38499,6 +38616,7 @@ var Plotly = (() => { hLinePoint: null, vLinePoint: null }; + const ternarySpikePoints = {}; var hasOneHorizontalTrace = false; if (Array.isArray(evt)) { hovermode = "array"; @@ -38695,42 +38813,56 @@ var Plotly = (() => { hoverData.splice(0, closedataPreviousLength); distance = hoverData[0].distance; } - if (hasCartesian && spikedistance !== 0) { - if (hoverData.length === 0) { - pointData.distance = spikedistance; - pointData.index = false; - var closestPoints = trace._module.hoverPoints(pointData, xval, yval, "closest", { - hoverLayer: fullLayout._hoverlayer - }); - if (closestPoints) { - closestPoints = closestPoints.filter(function(point) { - return point.spikeDistance <= spikedistance; - }); + if (Registry.traceIs(trace, "ternary") && spikedistance !== 0) { + const ternary = pointData.subplot; + const needsClosestPoint = ["aaxis", "baxis", "caxis"].some((name7) => ternary[name7].showspikes && ternary[name7].spikesnap !== "hovered data"); + if (needsClosestPoint) { + let spikePoint = newPoints == null ? void 0 : newPoints[0]; + if (!Number.isFinite(spikePoint == null ? void 0 : spikePoint.spikeDistance)) { + const spikeData = Lib.extendFlat({}, pointData, { distance: spikedistance, index: false }); + const closestPoints2 = trace._module.hoverPoints(spikeData, xval, yval, "closest"); + spikePoint = closestPoints2 && closestPoints2[0]; } - if (closestPoints && closestPoints.length) { - var tmpPoint; - var closestVPoints = closestPoints.filter(function(point) { - return point.xa.showspikes && point.xa.spikesnap !== "hovered data"; - }); - if (closestVPoints.length) { - var closestVPt = closestVPoints[0]; - if (isNumeric2(closestVPt.x0) && isNumeric2(closestVPt.y0)) { - tmpPoint = fillSpikePoint(closestVPt); - if (!spikePoints.vLinePoint || spikePoints.vLinePoint.spikeDistance > tmpPoint.spikeDistance) { - spikePoints.vLinePoint = tmpPoint; - } + const previousSpikePoint = ternarySpikePoints[subplotId]; + if (spikePoint && spikePoint.index !== void 0 && spikePoint.index !== false && spikePoint.spikeDistance <= spikedistance && (!previousSpikePoint || spikePoint.spikeDistance < previousSpikePoint.spikeDistance)) { + ternarySpikePoints[subplotId] = spikePoint; + } + } + } + if (hasCartesian && hoverData.length === 0 && spikedistance !== 0 && canSpikeToNonHoveredPoint(pointData.xa, pointData.ya)) { + pointData.distance = spikedistance; + pointData.index = false; + var closestPoints = trace._module.hoverPoints(pointData, xval, yval, "closest", { + hoverLayer: fullLayout._hoverlayer + }); + if (closestPoints) { + closestPoints = closestPoints.filter(function(point) { + return point.spikeDistance <= spikedistance; + }); + } + if (closestPoints == null ? void 0 : closestPoints.length) { + var tmpPoint; + var closestVPoints = closestPoints.filter(function(point) { + return point.xa.showspikes && point.xa.spikesnap !== "hovered data"; + }); + if (closestVPoints.length) { + var closestVPt = closestVPoints[0]; + if (isNumeric2(closestVPt.x0) && isNumeric2(closestVPt.y0)) { + tmpPoint = fillSpikePoint(closestVPt); + if (!spikePoints.vLinePoint || spikePoints.vLinePoint.spikeDistance > tmpPoint.spikeDistance) { + spikePoints.vLinePoint = tmpPoint; } } - var closestHPoints = closestPoints.filter(function(point) { - return point.ya.showspikes && point.ya.spikesnap !== "hovered data"; - }); - if (closestHPoints.length) { - var closestHPt = closestHPoints[0]; - if (isNumeric2(closestHPt.x0) && isNumeric2(closestHPt.y0)) { - tmpPoint = fillSpikePoint(closestHPt); - if (!spikePoints.hLinePoint || spikePoints.hLinePoint.spikeDistance > tmpPoint.spikeDistance) { - spikePoints.hLinePoint = tmpPoint; - } + } + var closestHPoints = closestPoints.filter(function(point) { + return point.ya.showspikes && point.ya.spikesnap !== "hovered data"; + }); + if (closestHPoints.length) { + var closestHPt = closestHPoints[0]; + if (isNumeric2(closestHPt.x0) && isNumeric2(closestHPt.y0)) { + tmpPoint = fillSpikePoint(closestHPt); + if (!spikePoints.hLinePoint || spikePoints.hLinePoint.spikeDistance > tmpPoint.spikeDistance) { + spikePoints.hLinePoint = tmpPoint; } } } @@ -38739,6 +38871,18 @@ var Plotly = (() => { } } findHoverPoints(); + function updateTernarySpikelines() { + fullLayout._hoverlayer.selectAll(".ternary-spikes").remove(); + if (spikedistance === 0) return; + for (let i3 = 0; i3 < subplots.length; i3++) { + const id5 = subplots[i3]; + const ternary = fullLayout[id5] && fullLayout[id5]._subplot; + if (ternary && ternary.drawSpikelines) { + const point = hoverData.find((d2) => d2.trace.subplot === id5 && d2.index !== void 0 && d2.index !== false && d2.spikeDistance <= spikedistance); + ternary.drawSpikelines(point, ternarySpikePoints[id5], xvalArray && xvalArray[i3], yvalArray && yvalArray[i3]); + } + } + } function selectClosestPoint(pointsData, spikedistance2, spikeOnWinning2) { var resultPoint = null; var minDistance = Infinity; @@ -38828,6 +38972,7 @@ var Plotly = (() => { emitHover([]); gd3._hoverAnywhereActive = true; } + if (hasTernary) updateTernarySpikelines(); return result; } if (hasCartesian) { @@ -38835,6 +38980,7 @@ var Plotly = (() => { createSpikelines(gd3, spikePoints, spikelineOpts); } } + if (hasTernary) updateTernarySpikelines(); if (helpers.isXYhover(_mode) && hoverData[0].length !== 0 && hoverData[0].trace.type !== "splom") { var winningPoint = hoverData[0]; if (multipleHoverPoints[winningPoint.trace.type]) { @@ -38924,6 +39070,18 @@ var Plotly = (() => { if (!helpers.isUnifiedHover(hovermode)) { hoverAvoidOverlaps(hoverLabels, rotateLabels, fullLayout, hoverText.commonLabelBoundingBox); alignHoverText(hoverLabels, rotateLabels, fullLayout._invScaleX, fullLayout._invScaleY); + if (hoverText.mathjaxPromise) { + hoverText.mathjaxPromise.then(function() { + if (gd3._hoverdata !== newhoverdata) return; + hoverAvoidOverlaps(hoverLabels, rotateLabels, fullLayout, hoverText.commonLabelBoundingBox); + alignHoverText(hoverLabels, rotateLabels, fullLayout._invScaleX, fullLayout._invScaleY); + hoverLabels.each(function() { + var g2 = d3.select(this); + svgTextUtils.repositionMathGroup(g2.select("text.nums")); + svgTextUtils.repositionMathGroup(g2.select("text.name")); + }); + }); + } } if (eventTarget && eventTarget.tagName) { var hasClickToShow = Registry.getComponentMethod("annotations", "hasClickToShow")(gd3, newhoverdata); @@ -38957,6 +39115,9 @@ var Plotly = (() => { return [d2.trace.index, d2.index, d2.x0, d2.y0, d2.name, d2.attr, d2.xa ? d2.xa._id : "", d2.ya ? d2.ya._id : ""].join(","); } var EXTRA_STRING_REGEX = /([\s\S]*)<\/extra>/; + function getHoverTextBBox(gd3, textSel) { + return getBoundingClientRect(gd3, svgTextUtils.getMathOrTextNode(textSel)); + } function createHoverText(hoverData, opts) { var gd3 = opts.gd; var fullLayout = gd3._fullLayout; @@ -38967,6 +39128,7 @@ var Plotly = (() => { var outerContainer = opts.outerContainer; var commonLabelOpts = opts.commonLabelOpts || {}; if (hoverData.length === 0) return [[]]; + var mathjaxPromises = []; var fontFamily = opts.fontFamily || constants2.HOVERFONT; var fontSize = opts.fontSize || constants2.HOVERFONTSIZE; var fontWeight = opts.fontWeight || fullLayout.font.weight; @@ -39022,9 +39184,7 @@ var Plotly = (() => { var lpath = Lib.ensureSingle(label, "path", "", function(s2) { s2.style({ "stroke-width": "1px" }); }); - var ltext = Lib.ensureSingle(label, "text", "", function(s2) { - s2.attr("data-notex", 1); - }); + var ltext = Lib.ensureSingle(label, "text", ""); var commonBgColor = commonLabelOpts.bgcolor || Color2.defaultLine; var commonStroke = commonLabelOpts.bordercolor || Color2.contrast(commonBgColor); var contrastColor = Color2.contrast(commonBgColor); @@ -39044,100 +39204,122 @@ var Plotly = (() => { fill: commonBgColor, stroke: commonStroke }); - ltext.text(t02).call(Drawing.font, commonLabelFont).call(svgTextUtils.positionText, 0, 0).call(svgTextUtils.convertToTspans, gd3); - label.attr("transform", ""); - var tbb2 = getBoundingClientRect(gd3, ltext.node()); - var lx3, ly2; - if (hovermode === "x") { - var topsign = xa3.side === "top" ? "-" : ""; - ltext.attr("text-anchor", "middle").call( - svgTextUtils.positionText, - 0, - xa3.side === "top" ? outerTop - tbb2.bottom - HOVERARROWSIZE2 - HOVERTEXTPAD2 : outerTop - tbb2.top + HOVERARROWSIZE2 + HOVERTEXTPAD2 - ); - lx3 = xa3._offset + (c0.x0 + c0.x1) / 2; - ly2 = ya3._offset + (xa3.side === "top" ? 0 : ya3._length); - var halfWidth = tbb2.width / 2 + HOVERTEXTPAD2; - var tooltipMidX = lx3; - if (lx3 < halfWidth) { - tooltipMidX = halfWidth; - } else if (lx3 > fullLayout.width - halfWidth) { - tooltipMidX = fullLayout.width - halfWidth; - } - lpath.attr( - "d", - "M" + (lx3 - tooltipMidX) + ",0L" + (lx3 - tooltipMidX + HOVERARROWSIZE2) + "," + topsign + HOVERARROWSIZE2 + "H" + halfWidth + "v" + topsign + (HOVERTEXTPAD2 * 2 + tbb2.height) + "H" + -halfWidth + "V" + topsign + HOVERARROWSIZE2 + "H" + (lx3 - tooltipMidX - HOVERARROWSIZE2) + "Z" - ); - lx3 = tooltipMidX; - commonLabelRect.minX = lx3 - halfWidth; - commonLabelRect.maxX = lx3 + halfWidth; - if (xa3.side === "top") { - commonLabelRect.minY = ly2 - (HOVERTEXTPAD2 * 2 + tbb2.height); - commonLabelRect.maxY = ly2 - HOVERTEXTPAD2; - } else { - commonLabelRect.minY = ly2 + HOVERTEXTPAD2; - commonLabelRect.maxY = ly2 + (HOVERTEXTPAD2 * 2 + tbb2.height); - } - } else { - var anchor; - var sgn; - var leftsign; - if (ya3.side === "right") { - anchor = "start"; - sgn = 1; - leftsign = ""; - lx3 = xa3._offset + xa3._length; - } else { - anchor = "end"; - sgn = -1; - leftsign = "-"; - lx3 = xa3._offset; - } - ly2 = ya3._offset + (c0.y0 + c0.y1) / 2; - ltext.attr("text-anchor", anchor); - lpath.attr( - "d", - "M0,0L" + leftsign + HOVERARROWSIZE2 + "," + HOVERARROWSIZE2 + "V" + (HOVERTEXTPAD2 + tbb2.height / 2) + "h" + leftsign + (HOVERTEXTPAD2 * 2 + tbb2.width) + "V-" + (HOVERTEXTPAD2 + tbb2.height / 2) + "H" + leftsign + HOVERARROWSIZE2 + "V-" + HOVERARROWSIZE2 + "Z" + var commonLabelTex = svgTextUtils.isPureTex(String(t02)); + var onCommonLabelReady; + if (commonLabelTex) { + mathjaxPromises.push( + new Promise(function(resolve) { + onCommonLabelReady = function() { + if (!ltext.node().parentNode) { + resolve(); + return; + } + positionCommonLabel(); + svgTextUtils.repositionMathGroup(ltext); + resolve(); + }; + }) ); - commonLabelRect.minY = ly2 - (HOVERTEXTPAD2 + tbb2.height / 2); - commonLabelRect.maxY = ly2 + (HOVERTEXTPAD2 + tbb2.height / 2); - if (ya3.side === "right") { - commonLabelRect.minX = lx3 + HOVERARROWSIZE2; - commonLabelRect.maxX = lx3 + HOVERARROWSIZE2 + (HOVERTEXTPAD2 * 2 + tbb2.width); - } else { - commonLabelRect.minX = lx3 - HOVERARROWSIZE2 - (HOVERTEXTPAD2 * 2 + tbb2.width); - commonLabelRect.maxX = lx3 - HOVERARROWSIZE2; - } - var halfHeight = tbb2.height / 2; - var lty = outerTop - tbb2.top - halfHeight; - var clipId = "clip" + fullLayout._uid + "commonlabel" + ya3._id; - var clipPath; - if (lx3 < tbb2.width + 2 * HOVERTEXTPAD2 + HOVERARROWSIZE2) { - clipPath = "M-" + (HOVERARROWSIZE2 + HOVERTEXTPAD2) + "-" + halfHeight + "h-" + (tbb2.width - HOVERTEXTPAD2) + "V" + halfHeight + "h" + (tbb2.width - HOVERTEXTPAD2) + "Z"; - var ltx = tbb2.width - lx3 + HOVERTEXTPAD2; - svgTextUtils.positionText(ltext, ltx, lty); - if (anchor === "end") { - ltext.selectAll("tspan").each(function() { - var s2 = d3.select(this); - var dummy = Drawing.tester.append("text").text(s2.text()).call(Drawing.font, commonLabelFont); - var dummyBB = getBoundingClientRect(gd3, dummy.node()); - if (Math.round(dummyBB.width) < Math.round(tbb2.width)) { - s2.attr("x", ltx - dummyBB.width); - } - dummy.remove(); - }); + } + ltext.text(t02).call(Drawing.font, commonLabelFont).attr("data-notex", commonLabelTex ? null : 1).call(svgTextUtils.positionText, 0, 0).call(svgTextUtils.convertToTspans, gd3, onCommonLabelReady); + positionCommonLabel(); + function positionCommonLabel() { + label.attr("transform", ""); + svgTextUtils.positionText(ltext, 0, 0); + svgTextUtils.repositionMathGroup(ltext); + var tbb2 = getHoverTextBBox(gd3, ltext); + var lx3, ly2; + if (hovermode === "x") { + var topsign = xa3.side === "top" ? "-" : ""; + ltext.attr("text-anchor", "middle").call( + svgTextUtils.positionText, + 0, + xa3.side === "top" ? outerTop - tbb2.bottom - HOVERARROWSIZE2 - HOVERTEXTPAD2 : outerTop - tbb2.top + HOVERARROWSIZE2 + HOVERTEXTPAD2 + ); + lx3 = xa3._offset + (c0.x0 + c0.x1) / 2; + ly2 = ya3._offset + (xa3.side === "top" ? 0 : ya3._length); + var halfWidth = tbb2.width / 2 + HOVERTEXTPAD2; + var tooltipMidX = lx3; + if (lx3 < halfWidth) { + tooltipMidX = halfWidth; + } else if (lx3 > fullLayout.width - halfWidth) { + tooltipMidX = fullLayout.width - halfWidth; + } + lpath.attr( + "d", + "M" + (lx3 - tooltipMidX) + ",0L" + (lx3 - tooltipMidX + HOVERARROWSIZE2) + "," + topsign + HOVERARROWSIZE2 + "H" + halfWidth + "v" + topsign + (HOVERTEXTPAD2 * 2 + tbb2.height) + "H" + -halfWidth + "V" + topsign + HOVERARROWSIZE2 + "H" + (lx3 - tooltipMidX - HOVERARROWSIZE2) + "Z" + ); + lx3 = tooltipMidX; + commonLabelRect.minX = lx3 - halfWidth; + commonLabelRect.maxX = lx3 + halfWidth; + if (xa3.side === "top") { + commonLabelRect.minY = ly2 - (HOVERTEXTPAD2 * 2 + tbb2.height); + commonLabelRect.maxY = ly2 - HOVERTEXTPAD2; + } else { + commonLabelRect.minY = ly2 + HOVERTEXTPAD2; + commonLabelRect.maxY = ly2 + (HOVERTEXTPAD2 * 2 + tbb2.height); } } else { - svgTextUtils.positionText(ltext, sgn * (HOVERTEXTPAD2 + HOVERARROWSIZE2), lty); - clipPath = null; + var anchor; + var sgn; + var leftsign; + if (ya3.side === "right") { + anchor = "start"; + sgn = 1; + leftsign = ""; + lx3 = xa3._offset + xa3._length; + } else { + anchor = "end"; + sgn = -1; + leftsign = "-"; + lx3 = xa3._offset; + } + ly2 = ya3._offset + (c0.y0 + c0.y1) / 2; + ltext.attr("text-anchor", anchor); + lpath.attr( + "d", + "M0,0L" + leftsign + HOVERARROWSIZE2 + "," + HOVERARROWSIZE2 + "V" + (HOVERTEXTPAD2 + tbb2.height / 2) + "h" + leftsign + (HOVERTEXTPAD2 * 2 + tbb2.width) + "V-" + (HOVERTEXTPAD2 + tbb2.height / 2) + "H" + leftsign + HOVERARROWSIZE2 + "V-" + HOVERARROWSIZE2 + "Z" + ); + commonLabelRect.minY = ly2 - (HOVERTEXTPAD2 + tbb2.height / 2); + commonLabelRect.maxY = ly2 + (HOVERTEXTPAD2 + tbb2.height / 2); + if (ya3.side === "right") { + commonLabelRect.minX = lx3 + HOVERARROWSIZE2; + commonLabelRect.maxX = lx3 + HOVERARROWSIZE2 + (HOVERTEXTPAD2 * 2 + tbb2.width); + } else { + commonLabelRect.minX = lx3 - HOVERARROWSIZE2 - (HOVERTEXTPAD2 * 2 + tbb2.width); + commonLabelRect.maxX = lx3 - HOVERARROWSIZE2; + } + var halfHeight = tbb2.height / 2; + var lty = outerTop - tbb2.top - halfHeight; + var clipId = "clip" + fullLayout._uid + "commonlabel" + ya3._id; + var clipPath; + if (lx3 < tbb2.width + 2 * HOVERTEXTPAD2 + HOVERARROWSIZE2) { + clipPath = "M-" + (HOVERARROWSIZE2 + HOVERTEXTPAD2) + "-" + halfHeight + "h-" + (tbb2.width - HOVERTEXTPAD2) + "V" + halfHeight + "h" + (tbb2.width - HOVERTEXTPAD2) + "Z"; + var ltx = tbb2.width - lx3 + HOVERTEXTPAD2; + svgTextUtils.positionText(ltext, ltx, lty); + if (anchor === "end") { + ltext.selectAll("tspan").each(function() { + var s2 = d3.select(this); + var dummy = Drawing.tester.append("text").text(s2.text()).call(Drawing.font, commonLabelFont); + var dummyBB = getBoundingClientRect(gd3, dummy.node()); + if (Math.round(dummyBB.width) < Math.round(tbb2.width)) { + s2.attr("x", ltx - dummyBB.width); + } + dummy.remove(); + }); + } + } else { + svgTextUtils.positionText(ltext, sgn * (HOVERTEXTPAD2 + HOVERARROWSIZE2), lty); + clipPath = null; + } + var textClip = fullLayout._topclips.selectAll("#" + clipId).data(clipPath ? [0] : []); + textClip.enter().append("clipPath").attr("id", clipId).append("path"); + textClip.exit().remove(); + textClip.select("path").attr("d", clipPath); + Drawing.setClipUrl(ltext, clipPath ? clipId : null, gd3); } - var textClip = fullLayout._topclips.selectAll("#" + clipId).data(clipPath ? [0] : []); - textClip.enter().append("clipPath").attr("id", clipId).append("path"); - textClip.exit().remove(); - textClip.select("path").attr("d", clipPath); - Drawing.setClipUrl(ltext, clipPath ? clipId : null, gd3); + label.attr("transform", strTranslate(lx3, ly2)); } - label.attr("transform", strTranslate(lx3, ly2)); }); if (helpers.isUnifiedHover(hovermode)) { container.selectAll("g.hovertext").remove(); @@ -39344,6 +39526,23 @@ var Plotly = (() => { var texts2 = getHoverLabelText(d2, showCommonLabel, hovermode, fullLayout, t02, g2); var text2 = texts2[0]; var name8 = texts2[1]; + var hasName = !!(name8 && name8 !== text2); + var numsTex = svgTextUtils.isPureTex(text2); + var nameTex = hasName && svgTextUtils.isPureTex(name8); + var pendingLabelParts = (numsTex ? 1 : 0) + (nameTex ? 1 : 0); + var onLabelPartReady; + if (pendingLabelParts) { + mathjaxPromises.push( + new Promise(function(resolve) { + onLabelPartReady = function() { + if (--pendingLabelParts === 0) { + if (g2.node().parentNode) finalizePosition(); + resolve(); + } + }; + }) + ); + } var tx2 = g2.select("text.nums").call(Drawing.font, { family: d2.fontFamily || fontFamily, size: d2.fontSize || fontSize, @@ -39354,11 +39553,9 @@ var Plotly = (() => { textcase: d2.fontTextcase || fontTextcase, lineposition: d2.fontLineposition || fontLineposition, shadow: d2.fontShadow || fontShadow - }).text(text2).attr("data-notex", 1).call(svgTextUtils.positionText, 0, 0).call(svgTextUtils.convertToTspans, gd3); + }).text(text2).attr("data-notex", numsTex ? null : 1).call(svgTextUtils.positionText, 0, 0).call(svgTextUtils.convertToTspans, gd3, numsTex ? onLabelPartReady : void 0); var tx22 = g2.select("text.name"); - var tx2width = 0; - var tx2height = 0; - if (name8 && name8 !== text2) { + if (hasName) { tx22.call(Drawing.font, { family: d2.fontFamily || fontFamily, size: d2.fontSize || fontSize, @@ -39369,75 +39566,90 @@ var Plotly = (() => { textcase: d2.fontTextcase || fontTextcase, lineposition: d2.fontLineposition || fontLineposition, shadow: d2.fontShadow || fontShadow - }).text(name8).attr("data-notex", 1).call(svgTextUtils.positionText, 0, 0).call(svgTextUtils.convertToTspans, gd3); - var t2bb = getBoundingClientRect(gd3, tx22.node()); - tx2width = t2bb.width + 2 * HOVERTEXTPAD2; - tx2height = t2bb.height + 2 * HOVERTEXTPAD2; + }).text(name8).attr("data-notex", nameTex ? null : 1).call(svgTextUtils.positionText, 0, 0).call(svgTextUtils.convertToTspans, gd3, nameTex ? onLabelPartReady : void 0); } else { tx22.remove(); g2.select("rect").remove(); } - g2.select("path").style({ - fill: numsColor, - stroke: contrastColor - }); - var htx = d2.xa._offset + (d2.x0 + d2.x1) / 2; - var hty = d2.ya._offset + (d2.y0 + d2.y1) / 2; - var dx2 = Math.abs(d2.x1 - d2.x0); - var dy = Math.abs(d2.y1 - d2.y0); - var tbb2 = getBoundingClientRect(gd3, tx2.node()); - var tbbWidth = tbb2.width / fullLayout._invScaleX; - var tbbHeight = tbb2.height / fullLayout._invScaleY; - d2.ty0 = (outerTop - tbb2.top) / fullLayout._invScaleY; - d2.bx = tbbWidth + 2 * HOVERTEXTPAD2; - d2.by = Math.max(tbbHeight + 2 * HOVERTEXTPAD2, tx2height); - d2.anchor = "start"; - d2.txwidth = tbbWidth; - d2.tx2width = tx2width; - d2.offset = 0; - var txTotalWidth = (tbbWidth + HOVERARROWSIZE2 + HOVERTEXTPAD2 + tx2width) * fullLayout._invScaleX; - var anchorStartOK, anchorEndOK; - if (rotateLabels) { - d2.pos = htx; - anchorStartOK = hty + dy / 2 + txTotalWidth <= outerHeight; - anchorEndOK = hty - dy / 2 - txTotalWidth >= 0; - if ((d2.idealAlign === "top" || !anchorStartOK) && anchorEndOK) { - hty -= dy / 2; - d2.anchor = "end"; - } else if (anchorStartOK) { - hty += dy / 2; - d2.anchor = "start"; - } else { - d2.anchor = "middle"; - } - d2.crossPos = hty; - } else { - d2.pos = hty; - anchorStartOK = htx + dx2 / 2 + txTotalWidth <= outerWidth; - anchorEndOK = htx - dx2 / 2 - txTotalWidth >= 0; - if ((d2.idealAlign === "left" || !anchorStartOK) && anchorEndOK) { - htx -= dx2 / 2; - d2.anchor = "end"; - } else if (anchorStartOK) { - htx += dx2 / 2; - d2.anchor = "start"; + finalizePosition(); + function finalizePosition() { + g2.attr("transform", ""); + tx2.call(svgTextUtils.positionText, 0, 0); + svgTextUtils.repositionMathGroup(tx2); + if (hasName) { + tx22.call(svgTextUtils.positionText, 0, 0); + svgTextUtils.repositionMathGroup(tx22); + } + g2.select("path").style({ + fill: numsColor, + stroke: contrastColor + }); + var htx = d2.xa._offset + (d2.x0 + d2.x1) / 2; + var hty = d2.ya._offset + (d2.y0 + d2.y1) / 2; + var dx2 = Math.abs(d2.x1 - d2.x0); + var dy = Math.abs(d2.y1 - d2.y0); + var tx2width = 0; + var tx2height = 0; + if (hasName) { + var t2bb = getHoverTextBBox(gd3, tx22); + tx2width = t2bb.width + 2 * HOVERTEXTPAD2; + tx2height = t2bb.height + 2 * HOVERTEXTPAD2; + } + var tbb2 = getHoverTextBBox(gd3, tx2); + var tbbWidth = tbb2.width / fullLayout._invScaleX; + var tbbHeight = tbb2.height / fullLayout._invScaleY; + d2.ty0 = (outerTop - tbb2.top) / fullLayout._invScaleY; + d2.bx = tbbWidth + 2 * HOVERTEXTPAD2; + d2.by = Math.max(tbbHeight + 2 * HOVERTEXTPAD2, tx2height); + d2.anchor = "start"; + d2.txwidth = tbbWidth; + d2.tx2width = tx2width; + d2.offset = 0; + var txTotalWidth = (tbbWidth + HOVERARROWSIZE2 + HOVERTEXTPAD2 + tx2width) * fullLayout._invScaleX; + var anchorStartOK, anchorEndOK; + if (rotateLabels) { + d2.pos = htx; + anchorStartOK = hty + dy / 2 + txTotalWidth <= outerHeight; + anchorEndOK = hty - dy / 2 - txTotalWidth >= 0; + if ((d2.idealAlign === "top" || !anchorStartOK) && anchorEndOK) { + hty -= dy / 2; + d2.anchor = "end"; + } else if (anchorStartOK) { + hty += dy / 2; + d2.anchor = "start"; + } else { + d2.anchor = "middle"; + } + d2.crossPos = hty; } else { - d2.anchor = "middle"; - var txHalfWidth = txTotalWidth / 2; - var overflowR = htx + txHalfWidth - outerWidth; - var overflowL = htx - txHalfWidth; - if (overflowR > 0) htx -= overflowR; - if (overflowL < 0) htx += -overflowL; + d2.pos = hty; + anchorStartOK = htx + dx2 / 2 + txTotalWidth <= outerWidth; + anchorEndOK = htx - dx2 / 2 - txTotalWidth >= 0; + if ((d2.idealAlign === "left" || !anchorStartOK) && anchorEndOK) { + htx -= dx2 / 2; + d2.anchor = "end"; + } else if (anchorStartOK) { + htx += dx2 / 2; + d2.anchor = "start"; + } else { + d2.anchor = "middle"; + var txHalfWidth = txTotalWidth / 2; + var overflowR = htx + txHalfWidth - outerWidth; + var overflowL = htx - txHalfWidth; + if (overflowR > 0) htx -= overflowR; + if (overflowL < 0) htx += -overflowL; + } + d2.crossPos = htx; } - d2.crossPos = htx; + tx2.attr("text-anchor", d2.anchor); + if (tx2width) tx22.attr("text-anchor", d2.anchor); + g2.attr("transform", strTranslate(htx, hty) + (rotateLabels ? strRotate(YANGLE2) : "")); } - tx2.attr("text-anchor", d2.anchor); - if (tx2width) tx22.attr("text-anchor", d2.anchor); - g2.attr("transform", strTranslate(htx, hty) + (rotateLabels ? strRotate(YANGLE2) : "")); }); return { hoverLabels, - commonLabelBoundingBox: commonLabelRect + commonLabelBoundingBox: commonLabelRect, + mathjaxPromise: mathjaxPromises.length ? Promise.all(mathjaxPromises) : null }; } function getHoverLabelText(d2, showCommonLabel, hovermode, fullLayout, t02, g2) { @@ -51339,7 +51551,7 @@ var Plotly = (() => { } function marginPushersAgain() { if (!Plots.didMarginChange(oldMargins, fullLayout._size)) return; - return Lib.syncOrAsync([marginPushers, subroutines.layoutStyles], gd3); + return marginPushers(); } function positionAndAutorange() { if (!recalc) { @@ -68585,7 +68797,7 @@ var Plotly = (() => { obj.percentPrevious = cdi.difR; obj.percentPreviousLabel = Lib.formatPercent(cdi.difR); obj.percentTotal = cdi.sumR; - obj.percenTotalLabel = Lib.formatPercent(cdi.sumR); + obj.percentTotalLabel = Lib.formatPercent(cdi.sumR); } var customdata = Lib.castOption(trace, cdi.i, "customdata"); if (customdata) obj.customdata = customdata; @@ -74221,14 +74433,14 @@ var Plotly = (() => { hovertemplatefallback: heatmapAttrs.hovertemplatefallback, texttemplate: extendFlat2({}, heatmapAttrs.texttemplate, { description: [ - "For this trace it only has an effect if `coloring` is set to *heatmap*.", + "For this trace it only has an effect if `contours.coloring` is set to *heatmap*.", heatmapAttrs.texttemplate.description ].join(" ") }), texttemplatefallback: heatmapAttrs.texttemplatefallback, textfont: extendFlat2({}, heatmapAttrs.textfont, { description: [ - "For this trace it only has an effect if `coloring` is set to *heatmap*.", + "For this trace it only has an effect if `contours.coloring` is set to *heatmap*.", heatmapAttrs.textfont.description ].join(" ") }), @@ -74371,7 +74583,7 @@ var Plotly = (() => { "*<* and *<=* keep regions less than `value`", "*>* and *>=* keep regions greater than `value`", "*[]*, *()*, *[)*, and *(]* keep regions inside `value[0]` to `value[1]`", - "*][*, *)(*, *](*, *)[* keep regions outside `value[0]` to value[1]`", + "*][*, *)(*, *](*, *)[* keep regions outside `value[0]` to `value[1]`", "Open vs. closed intervals make no difference to constraint display, but", "all versions are allowed." ].join(" ") @@ -74407,9 +74619,9 @@ var Plotly = (() => { min: 0, editType: "style+colorbars", description: [ - "Sets the contour line width in (in px)", + "Sets the contour line width (in px)", "Defaults to *0.5* when `contours.type` is *levels*.", - "Defaults to *2* when `contour.type` is *constraint*." + "Defaults to *2* when `contours.type` is *constraint*." ].join(" ") }, dash, @@ -76664,6 +76876,7 @@ var Plotly = (() => { var _2 = Lib._; var Color2 = require_color(); var Drawing = require_drawing(); + var svgTextUtils = require_svg_text_utils(); var setConvert = require_set_convert(); var extendFlat2 = require_extend().extendFlat; var Plots = require_plots(); @@ -76782,6 +76995,94 @@ var Plotly = (() => { toplevel.order(); }; var whRatio = Math.sqrt(4 / 3); + proto.drawSpikelines = function(hoverPoint, spikePoint, cursorXVal, cursorYVal) { + const fullLayout = this.graphDiv._fullLayout; + const axes = [this.aaxis, this.baxis, this.caxis]; + if (!axes.some((axis) => axis.showspikes)) return; + const span = this.sum - axes[0].min - axes[1].min - axes[2].min; + const contrastColor = Color2.combine(fullLayout[this.id].bgcolor, fullLayout.paper_bgcolor); + let layer; + for (let i2 = 0; i2 < axes.length; i2++) { + const axis = axes[i2]; + if (!axis.showspikes) continue; + const snap = axis.spikesnap; + const selectedPoint = snap === "hovered data" ? hoverPoint : spikePoint || hoverPoint; + if (!selectedPoint) continue; + const snapToCursor = snap === "cursor"; + if (snapToCursor && (!Number.isFinite(cursorXVal) || !Number.isFinite(cursorYVal))) { + continue; + } + const calcPoint = selectedPoint.cd[selectedPoint.index]; + const a2 = snapToCursor ? cursorYVal : calcPoint.a; + const b2 = snapToCursor ? (this.sum - cursorYVal - cursorXVal) / 2 : calcPoint.b; + const c2 = snapToCursor ? (this.sum - cursorYVal + cursorXVal) / 2 : calcPoint.c; + if (!this.xaxis.isPtWithinRange({ a: a2, b: b2, c: c2 })) continue; + if (!layer) { + layer = fullLayout._hoverlayer.insert("g", ":first-child").attr("class", "ternary-spikes").attr("transform", strTranslate(this.x0, this.y0)).style("pointer-events", "none"); + } + const fa3 = Lib.constrain((a2 - axes[0].min) / span, 0, 1); + const fb2 = Lib.constrain((b2 - axes[1].min) / span, 0, 1); + const fc3 = Lib.constrain((c2 - axes[2].min) / span, 0, 1); + const x2 = this.w * (fc3 + fa3 / 2); + const y2 = this.h * (1 - fa3); + const [axisX, axisY, acrossX, acrossY] = [ + [this.w * fa3 / 2, y2, this.w * (1 - fa3 / 2), y2], + // aaxis + [this.w * (1 - fb2), this.h, this.w * (1 - fb2) / 2, this.h * fb2], + // baxis + [this.w * (1 + fc3) / 2, this.h * fc3, this.w * fc3, this.h] + // caxis + ][i2]; + const pointColor = selectedPoint.color || axis.color; + const dfltColor = Color2.wcagContrast(pointColor, contrastColor) < 1.5 ? Color2.contrast(contrastColor) : pointColor; + const color2 = axis.spikecolor || dfltColor; + const thickness = axis.spikethickness; + const mode = axis.spikemode; + if (mode.indexOf("toaxis") !== -1 || mode.indexOf("across") !== -1) { + const across = mode.indexOf("across") !== -1; + layer.append("line").attr({ + class: "spikeline", + x1: across ? acrossX : x2, + y1: across ? acrossY : y2, + x2: axisX, + y2: axisY, + "stroke-width": thickness, + "stroke-dasharray": Drawing.dashStyle(axis.spikedash, thickness) + }).call(Color2.stroke, color2); + } + if (mode.indexOf("marker") !== -1) { + layer.append("circle").attr({ + class: "spikeline", + cx: axisX, + cy: axisY, + r: thickness + }).call(Color2.fill, color2); + } + const label = layer.append("g").attr("class", "ternary-spikelabel").attr("transform", strTranslate(axisX, axisY)); + const text = label.append("text").attr("text-anchor", "middle").call(Drawing.font, axis.tickfont || fullLayout.font).text(Axes.tickText(axis, [a2, b2, c2][i2], true).text).call(svgTextUtils.convertToTspans, this.graphDiv); + const box = Drawing.bBox(text.node()); + const width = box.width + 6; + const height = box.height + 4; + const arrow = Math.min(6, height / 2, width / 2); + const left = i2 === 0 ? -arrow - width : i2 === 1 ? -width / 2 : 0; + const top = i2 === 0 ? -height / 2 : i2 === 1 ? arrow : -height; + let outline; + if (i2 === 0) { + outline = `M0,0L${-arrow},${-arrow}V${top}H${left}v${height}H${-arrow}V${arrow}Z`; + } else if (i2 === 1) { + outline = `M0,0L${arrow},${arrow}H${width / 2}v${height}H${left}V${arrow}H${-arrow}Z`; + } else { + outline = `M0,0V${top}h${width}V0Z`; + } + label.insert("path", "text").attr("d", outline).call(Color2.fill, color2); + text.call( + svgTextUtils.positionText, + left + width / 2 - box.left - box.width / 2, + top + height / 2 - box.top - box.height / 2 + ); + text.call(Color2.fill, Color2.contrast(color2)); + } + }; proto.adjustLayout = function(ternaryLayout, graphSize) { var _this = this; var domain = ternaryLayout.domain; @@ -77300,7 +77601,19 @@ var Plotly = (() => { "values of the other two axes. The full view corresponds to", "all the minima set to zero." ].join(" ") - } + }, + // spikelines + showspikes: extendFlat2({}, axesAttrs.showspikes, { + description: [ + "Determines whether or not spikes (aka droplines) are drawn for this axis.", + "Ternary spikes are accompanied by axis value labels formatted according to `hoverformat`." + ].join(" ") + }), + spikecolor: axesAttrs.spikecolor, + spikethickness: axesAttrs.spikethickness, + spikedash: axesAttrs.spikedash, + spikemode: axesAttrs.spikemode, + spikesnap: axesAttrs.spikesnap }; var attrs = module.exports = overrideAll({ domain: domainAttrs({ name: "ternary" }), @@ -77431,6 +77744,9 @@ var Plotly = (() => { function coerce(attr3, dflt) { return Lib.coerce(containerIn, containerOut, axAttrs, attr3, dflt); } + function coerce2(attr3, dflt) { + return Lib.coerce2(containerIn, containerOut, axAttrs, attr3, dflt); + } coerce("uirevision", ternaryLayoutOut.uirevision); containerOut.type = "linear"; var dfltColor = coerce("color"); @@ -77479,6 +77795,19 @@ var Plotly = (() => { }); coerce("hoverformat"); coerce("layer"); + var spikecolor = coerce2("spikecolor"); + var spikethickness = coerce2("spikethickness"); + var spikedash = coerce2("spikedash"); + var spikemode = coerce2("spikemode"); + var spikesnap = coerce2("spikesnap"); + var showSpikes = coerce("showspikes", !!spikecolor || !!spikethickness || !!spikedash || !!spikemode || !!spikesnap); + if (!showSpikes) { + delete containerOut.spikecolor; + delete containerOut.spikethickness; + delete containerOut.spikedash; + delete containerOut.spikemode; + delete containerOut.spikesnap; + } } } }); @@ -154085,14 +154414,12 @@ var Plotly = (() => { var constants_exports22 = {}; __export(constants_exports22, { DASHES: () => DASHES, - DOT_RE: () => DOT_RE, - OPEN_RE: () => OPEN_RE, SYMBOL_SDF_SIZE: () => SYMBOL_SDF_SIZE, SYMBOL_SIZE: () => SYMBOL_SIZE, SYMBOL_STROKE: () => SYMBOL_STROKE, TOO_MANY_POINTS: () => TOO_MANY_POINTS }); - var TOO_MANY_POINTS, SYMBOL_SDF_SIZE, SYMBOL_SIZE, SYMBOL_STROKE, DOT_RE, OPEN_RE, DASHES; + var TOO_MANY_POINTS, SYMBOL_SDF_SIZE, SYMBOL_SIZE, SYMBOL_STROKE, DASHES; var init_constants22 = __esm({ "src/traces/scattergl/constants.ts"() { "use strict"; @@ -154100,8 +154427,6 @@ var Plotly = (() => { SYMBOL_SDF_SIZE = 200; SYMBOL_SIZE = 20; SYMBOL_STROKE = SYMBOL_SIZE / 20; - DOT_RE = /-dot/; - OPEN_RE = /-open/; DASHES = { solid: [1], dot: [1, 1], @@ -154225,13 +154550,9 @@ var Plotly = (() => { var require_helpers16 = __commonJS({ "src/traces/scattergl/helpers.js"(exports) { "use strict"; - var constants2 = (init_constants22(), __toCommonJS(constants_exports22)); - exports.isOpenSymbol = function(symbol) { - return typeof symbol === "string" ? constants2.OPEN_RE.test(symbol) : symbol % 200 > 100; - }; - exports.isDotSymbol = function(symbol) { - return typeof symbol === "string" ? constants2.DOT_RE.test(symbol) : symbol > 200; - }; + var { symbolNumber } = require_drawing(); + exports.isOpenSymbol = (symbol) => symbolNumber(symbol) % 200 >= 100; + exports.isDotSymbol = (symbol) => symbolNumber(symbol) >= 200; } }); @@ -155506,7 +155827,7 @@ var Plotly = (() => { "use strict"; var isNumeric2 = require_fast_isnumeric(); var svgSdf = (init_svg_path_sdf(), __toCommonJS(svg_path_sdf_exports)).default; - var { normalize: rgba2 } = require_color(); + var { normalize: rgba2, rgbaString } = require_color(); var Registry = require_registry(); var Lib = require_lib(); var isArrayOrTypedArray = Lib.isArrayOrTypedArray; @@ -155566,7 +155887,7 @@ var Plotly = (() => { opts.line = { overlay: true, thickness: trace.line.width * plotGlPixelRatio, - color: trace.line.color, + color: rgbaString(trace.line.color), opacity: trace.opacity }; var dashes2 = (constants2.DASHES[trace.line.dash] || [1]).slice(); @@ -155584,7 +155905,7 @@ var Plotly = (() => { if (!!trace.fill && trace.fill !== "none") { opts.fill = { closed: true, - fill: trace.fillcolor, + fill: rgbaString(trace.fillcolor), thickness: 0 }; } @@ -155673,10 +155994,10 @@ var Plotly = (() => { if (isArrayOrTypedArray(tfc)) { optsOut.color = new Array(count); for (i2 = 0; i2 < count; i2++) { - optsOut.color[i2] = tfc[i2]; + optsOut.color[i2] = rgbaString(tfc[i2]); } } else { - optsOut.color = tfc; + optsOut.color = rgbaString(tfc); } if (isArrayOrTypedArray(tfs) || Array.isArray(tff) || isArrayOrTypedArray(tfw) || Array.isArray(tfy) || Array.isArray(tfv)) { optsOut.font = new Array(count); @@ -155844,7 +156165,7 @@ var Plotly = (() => { optsOut = convertMarkerStyle(gd3, Lib.extendFlat({}, optsIn, target.marker)); } else if (target.marker) { if (target.marker.size) optsOut.size = target.marker.size; - if (target.marker.color) optsOut.colors = target.marker.color; + if (target.marker.color) optsOut.colors = rgbaString(target.marker.color); if (target.marker.opacity !== void 0) optsOut.opacity = target.marker.opacity; } return optsOut; @@ -155871,10 +156192,10 @@ var Plotly = (() => { var optsOut = { capSize: target.width * 2 * plotGlPixelRatio, lineWidth: target.thickness * plotGlPixelRatio, - color: target.color + color: rgbaString(target.color) }; if (target.copy_ystyle) { - optsOut = trace.error_y; + optsOut = __spreadProps(__spreadValues({}, trace.error_y), { color: rgbaString(trace.error_y.color) }); } return optsOut; } @@ -171715,6 +172036,7 @@ void main() { var createError = require_regl_error2d(); var Text = require_dist3(); var Lib = require_lib(); + var { rgbaString } = require_color(); var selectMode = require_helpers5().selectMode; var prepareRegl = require_prepare_regl(); var subTypes = require_subtypes(); @@ -171900,7 +172222,7 @@ void main() { if (isNaN(xx2) || isNaN(yy2)) continue; pos.push(xx2, yy2); } - fillOptions.fill = nextTrace.fillcolor; + fillOptions.fill = rgbaString(nextTrace.fillcolor); } } } @@ -173252,6 +173574,7 @@ void main() { "use strict"; var createLine = require_regl_line2d(); var Registry = require_registry(); + var { rgbaString } = require_color(); var prepareRegl = require_prepare_regl(); var getModuleCalcData = require_get_data().getModuleCalcData; var Cartesian = require_cartesian(); @@ -173345,7 +173668,7 @@ void main() { data: [x0, x1, y0, y1], join: "rect", thickness: lwidth * plotGlPixelRatio, - color: lcolor, + color: rgbaString(lcolor), viewport: fullView, range: fullView, overlay: false @@ -216155,14 +216478,17 @@ in vec3 view_direction;uniform vec3 u_sun_pos;uniform vec3 u_globe_position;unif return columns2; } if (trace.node.x.length && trace.node.y.length) { - for (i2 = 0; i2 < Math.min(trace.node.x.length, trace.node.y.length, graph.nodes.length); i2++) { - if (trace.node.x[i2] && trace.node.y[i2]) { - var pos = [trace.node.x[i2] * width, trace.node.y[i2] * height]; - graph.nodes[i2].x0 = pos[0] - nodeThickness / 2; - graph.nodes[i2].x1 = pos[0] + nodeThickness / 2; - var nodeHeight = graph.nodes[i2].y1 - graph.nodes[i2].y0; - graph.nodes[i2].y0 = pos[1] - nodeHeight / 2; - graph.nodes[i2].y1 = pos[1] + nodeHeight / 2; + for (i2 = 0; i2 < graph.nodes.length; i2++) { + var forcedNode = graph.nodes[i2]; + if (forcedNode.partOfGroup) continue; + var p2 = forcedNode.pointNumber; + if (trace.node.x[p2] && trace.node.y[p2]) { + var pos = [trace.node.x[p2] * width, trace.node.y[p2] * height]; + forcedNode.x0 = pos[0] - nodeThickness / 2; + forcedNode.x1 = pos[0] + nodeThickness / 2; + var nodeHeight = forcedNode.y1 - forcedNode.y0; + forcedNode.y0 = pos[1] - nodeHeight / 2; + forcedNode.y1 = pos[1] + nodeHeight / 2; } } if (trace.arrangement === "snap") { @@ -216532,13 +216858,12 @@ in vec3 view_direction;uniform vec3 u_sun_pos;uniform vec3 u_globe_position;unif }; } function persistFinalNodePositions(d2, gd3) { - var x2 = []; - var y2 = []; - for (var i2 = 0; i2 < d2.graph.nodes.length; i2++) { - var nodeX = (d2.graph.nodes[i2].x0 + d2.graph.nodes[i2].x1) / 2; - var nodeY = (d2.graph.nodes[i2].y0 + d2.graph.nodes[i2].y1) / 2; - x2.push(nodeX / d2.figure.width); - y2.push(nodeY / d2.figure.height); + const x2 = [...d2.trace.node.x]; + const y2 = [...d2.trace.node.y]; + for (const node of d2.graph.nodes) { + if (node.partOfGroup) continue; + x2[node.pointNumber] = (node.x0 + node.x1) / 2 / d2.figure.width; + y2[node.pointNumber] = (node.y0 + node.y1) / 2 / d2.figure.height; } Registry.call("_guiRestyle", gd3, { "node.x": [x2], @@ -228509,6 +228834,7 @@ in vec3 view_direction;uniform vec3 u_sun_pos;uniform vec3 u_globe_position;unif var Lib = require_lib(); var Drawing = require_drawing(); var Colorscale = require_colorscale(); + var Color2 = require_color(); var DESELECTDIM2 = (init_interactions(), __toCommonJS(interactions_exports)).DESELECTDIM; function colorscaleStroke(paths, trace) { var marker = trace.marker || {}; @@ -228527,6 +228853,24 @@ in vec3 view_direction;uniform vec3 u_sun_pos;uniform vec3 u_globe_position;unif return cdi.mcc; }); } + var strokeArrowColors = (paths, trace) => { + if (trace._hasColorscale) { + colorscaleStroke(paths, trace); + return; + } + const markerColor = (trace.marker || {}).color; + if (!Lib.isArrayOrTypedArray(markerColor)) return; + paths.style("stroke", function(cdi) { + if (markerColor.length > cdi.i) { + const color2 = markerColor[cdi.i]; + if (Color2.isValid(color2)) { + cdi.mcc = color2; + return color2; + } + } + return this.style.stroke; + }); + }; function style(gd3) { var s2 = d3.select(gd3).selectAll("g.trace.quiver"); s2.each(function(d2) { @@ -228541,7 +228885,6 @@ in vec3 view_direction;uniform vec3 u_sun_pos;uniform vec3 u_globe_position;unif var marker = trace.marker || {}; var markerLine = marker.line || {}; var lineColor = Lib.isArrayOrTypedArray(marker.color) ? void 0 : marker.color; - var hasColorscale = trace._hasColorscale; if (!sel) return; if (trace.selectedpoints) { var selectedMarker = (trace.selected || {}).marker || {}; @@ -228558,7 +228901,7 @@ in vec3 view_direction;uniform vec3 u_sun_pos;uniform vec3 u_globe_position;unif path.style("stroke-opacity", 1); } else { Drawing.lineGroupStyle(path, lineWidth, lineColor, markerLine.dash); - if (hasColorscale) colorscaleStroke(path, trace); + strokeArrowColors(path, trace); path.style("stroke-opacity", dim ? DESELECTDIM2 : 1); } }); @@ -228566,7 +228909,7 @@ in vec3 view_direction;uniform vec3 u_sun_pos;uniform vec3 u_globe_position;unif } else { var paths = sel.selectAll("path.js-line"); paths.call(Drawing.lineGroupStyle, markerLine.width, lineColor, markerLine.dash); - if (hasColorscale) colorscaleStroke(paths, trace); + strokeArrowColors(paths, trace); paths.style("stroke-opacity", 1); Drawing.textPointStyle(sel.selectAll("text"), trace, gd3); } @@ -228574,7 +228917,8 @@ in vec3 view_direction;uniform vec3 u_sun_pos;uniform vec3 u_globe_position;unif module.exports = { style, styleOnSelect, - colorscaleStroke + colorscaleStroke, + strokeArrowColors }; } }); @@ -228586,7 +228930,7 @@ in vec3 view_direction;uniform vec3 u_sun_pos;uniform vec3 u_globe_position;unif var d3 = require_d3(); var Lib = require_lib(); var Drawing = require_drawing(); - var colorscaleStroke = require_style20().colorscaleStroke; + var { strokeArrowColors } = require_style20(); var HEAD_ANGLE = Math.PI / 12; var HEAD_LEN_PER_WIDTH = 5.8; var MIN_LINE_WIDTH_FOR_ARROWSIZE = 1.5; @@ -228684,9 +229028,9 @@ in vec3 view_direction;uniform vec3 u_sun_pos;uniform vec3 u_globe_position;unif }); var marker = trace.marker || {}; var markerLine = marker.line || {}; - var lineColor = Lib.isArrayOrTypedArray(marker.color) ? void 0 : marker.color; + const lineColor = Lib.isArrayOrTypedArray(marker.color) ? void 0 : marker.color; Drawing.lineGroupStyle(lineSegments, markerLine.width, lineColor, markerLine.dash); - if (trace._hasColorscale) colorscaleStroke(lineSegments, trace); + strokeArrowColors(lineSegments, trace); var textGroup = d3.select(element).selectAll("g.text").data([cdscatter]); textGroup.enter().append("g").classed("text", true); Drawing.setClipUrl(textGroup, plotinfo.layerClipId, gd3); diff --git a/dist/plotly.js b/dist/plotly.js index c3328da1058..33342d12f2a 100644 --- a/dist/plotly.js +++ b/dist/plotly.js @@ -1,5 +1,5 @@ /** -* plotly.js v4.1.2 +* plotly.js v4.2.0 * Copyright 2012-2026, Plotly, Inc. * All rights reserved. * Licensed under the MIT license @@ -146,7 +146,7 @@ var Plotly = (() => { var require_version = __commonJS({ "src/version.js"(exports) { "use strict"; - exports.version = "4.1.2"; + exports.version = "4.2.0"; } }); @@ -17796,9 +17796,9 @@ var Plotly = (() => { var require_maplibre_gl = __commonJS({ "node_modules/maplibre-gl/dist/maplibre-gl.css"() { (function() { - if (!document.getElementById("ce8d464691048653ffe3a57c6c18ab566e8366f186677868cf724621a857b4fe")) { + if (!document.getElementById("9f215cf04c5486422605d13261cb87401f4e7763b6296af81e98efbc0130da53")) { var e58 = document.createElement("style"); - e58.id = "ce8d464691048653ffe3a57c6c18ab566e8366f186677868cf724621a857b4fe"; + e58.id = "9f215cf04c5486422605d13261cb87401f4e7763b6296af81e98efbc0130da53"; e58.textContent = `.maplibregl-map{font:12px/20px Helvetica Neue,Arial,Helvetica,sans-serif;overflow:hidden;position:relative;-webkit-tap-highlight-color:rgb(0 0 0/0);-webkit-touch-callout:none}.maplibregl-canvas{position:absolute;left:0;top:0}.maplibregl-map:fullscreen{width:100%;height:100%}.maplibregl-ctrl-group button.maplibregl-ctrl-compass{touch-action:none}.maplibregl-canvas-container.maplibregl-interactive,.maplibregl-ctrl-group button.maplibregl-ctrl-compass{cursor:grab;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-canvas-container.maplibregl-interactive.maplibregl-track-pointer{cursor:pointer}.maplibregl-canvas-container.maplibregl-interactive:active,.maplibregl-ctrl-group button.maplibregl-ctrl-compass:active{cursor:grabbing}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-canvas-container.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:pinch-zoom}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:none}.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures,.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-ctrl-bottom-left,.maplibregl-ctrl-bottom-right,.maplibregl-ctrl-top-left,.maplibregl-ctrl-top-right{position:absolute;pointer-events:none;z-index:2}.maplibregl-ctrl-top-left{top:0;left:0}.maplibregl-ctrl-top-right{top:0;right:0}.maplibregl-ctrl-bottom-left{bottom:0;left:0}.maplibregl-ctrl-bottom-right{right:0;bottom:0}.maplibregl-ctrl{clear:both;pointer-events:auto;transform:translate(0)}.maplibregl-ctrl-top-left .maplibregl-ctrl{margin:10px 0 0 10px;float:left}.maplibregl-ctrl-top-right .maplibregl-ctrl{margin:10px 10px 0 0;float:right}.maplibregl-ctrl-bottom-left .maplibregl-ctrl{margin:0 0 10px 10px;float:left}.maplibregl-ctrl-bottom-right .maplibregl-ctrl{margin:0 10px 10px 0;float:right}.maplibregl-ctrl-group{border-radius:4px;background:#fff}.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px rgba(0,0,0,.1)}@media (forced-colors:active){.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px ButtonText}}.maplibregl-ctrl-group button{width:29px;height:29px;display:block;padding:0;outline:none;border:0;box-sizing:border-box;background-color:transparent;cursor:pointer}.maplibregl-ctrl button{-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-ctrl-group button+button{border-top:1px solid #ddd}.maplibregl-ctrl button .maplibregl-ctrl-icon{display:block;width:100%;height:100%;background-repeat:no-repeat;background-position:50%}@media (forced-colors:active){.maplibregl-ctrl-icon{background-color:transparent}.maplibregl-ctrl-group button+button{border-top:1px solid ButtonText}}.maplibregl-ctrl button::-moz-focus-inner{border:0;padding:0}.maplibregl-ctrl-attrib-button:focus,.maplibregl-ctrl-group button:focus{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl button:disabled{cursor:not-allowed}.maplibregl-ctrl button:disabled .maplibregl-ctrl-icon{opacity:.25}@media (hover:hover){.maplibregl-ctrl button:not(:disabled):hover{background-color:rgba(0,0,0,.05)}}.maplibregl-ctrl button:not(:disabled):active{background-color:rgba(0,0,0,.05)}.maplibregl-ctrl-group button:focus:focus-visible{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl-group button:focus:not(:focus-visible){box-shadow:none}.maplibregl-ctrl-group button:focus:first-child{border-radius:4px 4px 0 0}.maplibregl-ctrl-group button:focus:last-child{border-radius:0 0 4px 4px}.maplibregl-ctrl-group button:focus:only-child{border-radius:inherit}.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M10%2013c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h9c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M14.5%208.5c-.75%200-1.5.75-1.5%201.5v3h-3c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h3v3c0%20.75.75%201.5%201.5%201.5S16%2019.75%2016%2019v-3h3c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013h-3v-3c0-.75-.75-1.5-1.5-1.5%22%2F%3E%3C%2Fsvg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M10%2013c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h9c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M14.5%208.5c-.75%200-1.5.75-1.5%201.5v3h-3c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h3v3c0%20.75.75%201.5%201.5%201.5S16%2019.75%2016%2019v-3h3c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013h-3v-3c0-.75-.75-1.5-1.5-1.5%22%2F%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M10%2013c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h9c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M14.5%208.5c-.75%200-1.5.75-1.5%201.5v3h-3c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h3v3c0%20.75.75%201.5%201.5%201.5S16%2019.75%2016%2019v-3h3c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013h-3v-3c0-.75-.75-1.5-1.5-1.5%22%2F%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M24%2016v5.5c0%201.75-.75%202.5-2.5%202.5H16v-1l3-1.5-4-5.5%201-1%205.5%204%201.5-3zM6%2016l1.5%203%205.5-4%201%201-4%205.5%203%201.5v1H7.5C5.75%2024%205%2023.25%205%2021.5V16zm7-11v1l-3%201.5%204%205.5-1%201-5.5-4L6%2013H5V7.5C5%205.75%205.75%205%207.5%205zm11%202.5c0-1.75-.75-2.5-2.5-2.5H16v1l3%201.5-4%205.5%201%201%205.5-4%201.5%203h1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M18.5%2016c-1.75%200-2.5.75-2.5%202.5V24h1l1.5-3%205.5%204%201-1-4-5.5%203-1.5v-1zM13%2018.5c0-1.75-.75-2.5-2.5-2.5H5v1l3%201.5L4%2024l1%201%205.5-4%201.5%203h1zm3-8c0%201.75.75%202.5%202.5%202.5H24v-1l-3-1.5L25%205l-1-1-5.5%204L17%205h-1zM10.5%2013c1.75%200%202.5-.75%202.5-2.5V5h-1l-1.5%203L5%204%204%205l4%205.5L5%2012v1z%22%2F%3E%3C%2Fsvg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M24%2016v5.5c0%201.75-.75%202.5-2.5%202.5H16v-1l3-1.5-4-5.5%201-1%205.5%204%201.5-3zM6%2016l1.5%203%205.5-4%201%201-4%205.5%203%201.5v1H7.5C5.75%2024%205%2023.25%205%2021.5V16zm7-11v1l-3%201.5%204%205.5-1%201-5.5-4L6%2013H5V7.5C5%205.75%205.75%205%207.5%205zm11%202.5c0-1.75-.75-2.5-2.5-2.5H16v1l3%201.5-4%205.5%201%201%205.5-4%201.5%203h1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M18.5%2016c-1.75%200-2.5.75-2.5%202.5V24h1l1.5-3%205.5%204%201-1-4-5.5%203-1.5v-1zM13%2018.5c0-1.75-.75-2.5-2.5-2.5H5v1l3%201.5L4%2024l1%201%205.5-4%201.5%203h1zm3-8c0%201.75.75%202.5%202.5%202.5H24v-1l-3-1.5L25%205l-1-1-5.5%204L17%205h-1zM10.5%2013c1.75%200%202.5-.75%202.5-2.5V5h-1l-1.5%203L5%204%204%205l4%205.5L5%2012v1z%22%2F%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M24%2016v5.5c0%201.75-.75%202.5-2.5%202.5H16v-1l3-1.5-4-5.5%201-1%205.5%204%201.5-3zM6%2016l1.5%203%205.5-4%201%201-4%205.5%203%201.5v1H7.5C5.75%2024%205%2023.25%205%2021.5V16zm7-11v1l-3%201.5%204%205.5-1%201-5.5-4L6%2013H5V7.5C5%205.75%205.75%205%207.5%205zm11%202.5c0-1.75-.75-2.5-2.5-2.5H16v1l3%201.5-4%205.5%201%201%205.5-4%201.5%203h1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M18.5%2016c-1.75%200-2.5.75-2.5%202.5V24h1l1.5-3%205.5%204%201-1-4-5.5%203-1.5v-1zM13%2018.5c0-1.75-.75-2.5-2.5-2.5H5v1l3%201.5L4%2024l1%201%205.5-4%201.5%203h1zm3-8c0%201.75.75%202.5%202.5%202.5H24v-1l-3-1.5L25%205l-1-1-5.5%204L17%205h-1zM10.5%2013c1.75%200%202.5-.75%202.5-2.5V5h-1l-1.5%203L5%204%204%205l4%205.5L5%2012v1z%22%2F%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22m10.5%2014%204-8%204%208z%22%2F%3E%3Cpath%20fill%3D%22%23ccc%22%20d%3D%22m10.5%2016%204%208%204-8z%22%2F%3E%3C%2Fsvg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22m10.5%2014%204-8%204%208z%22%2F%3E%3Cpath%20fill%3D%22%23ccc%22%20d%3D%22m10.5%2016%204%208%204-8z%22%2F%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22m10.5%2014%204-8%204%208z%22%2F%3E%3Cpath%20fill%3D%22%23ccc%22%20d%3D%22m10.5%2016%204%208%204-8z%22%2F%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-globe .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2222%22%20height%3D%2222%22%20fill%3D%22none%22%20stroke%3D%22%23333%22%20viewBox%3D%220%200%2022%2022%22%3E%3Ccircle%20cx%3D%2211%22%20cy%3D%2211%22%20r%3D%228.5%22%2F%3E%3Cpath%20d%3D%22M17.5%2011c0%204.819-3.02%208.5-6.5%208.5S4.5%2015.819%204.5%2011%207.52%202.5%2011%202.5s6.5%203.681%206.5%208.5Z%22%2F%3E%3Cpath%20d%3D%22M13.5%2011c0%202.447-.331%204.64-.853%206.206-.262.785-.562%201.384-.872%201.777-.314.399-.58.517-.775.517s-.461-.118-.775-.517c-.31-.393-.61-.992-.872-1.777C8.831%2015.64%208.5%2013.446%208.5%2011s.331-4.64.853-6.206c.262-.785.562-1.384.872-1.777.314-.399.58-.517.775-.517s.461.118.775.517c.31.393.61.992.872%201.777.522%201.565.853%203.76.853%206.206Z%22%2F%3E%3Cpath%20d%3D%22M11%207.5c-1.909%200-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3%201.3%200%200%201-.224-.138q.07-.058.224-.138c.299-.151.763-.302%201.379-.434C7.378%205.666%209.091%205.5%2011%205.5s3.622.166%204.845.428c.616.132%201.08.283%201.379.434.105.053.177.1.224.138q-.07.058-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm0%209c-1.909%200-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3%201.3%200%200%201-.224-.138%201.3%201.3%200%200%201%20.224-.138c.299-.151.763-.302%201.379-.434C7.378%2014.666%209.091%2014.5%2011%2014.5s3.622.166%204.845.428c.616.132%201.08.283%201.379.434.105.053.177.1.224.138a1.3%201.3%200%200%201-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm0-4c-2.46%200-4.672-.222-6.255-.574-.796-.177-1.406-.38-1.805-.59a1.5%201.5%200%200%201-.39-.272.3.3%200%200%201-.047-.064.3.3%200%200%201%20.048-.064c.066-.073.189-.167.389-.272.399-.21%201.009-.413%201.805-.59C6.328%209.722%208.54%209.5%2011%209.5s4.672.222%206.256.574c.795.177%201.405.38%201.804.59.2.105.323.2.39.272a.3.3%200%200%201%20.047.064.3.3%200%200%201-.048.064%201.4%201.4%200%200%201-.389.272c-.399.21-1.009.413-1.804.59-1.584.352-3.796.574-6.256.574Zm-8.501-1.51v.002zm0%20.018v.002zm17.002.002v-.002zm0-.018v-.002z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-globe-enabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2222%22%20height%3D%2222%22%20fill%3D%22none%22%20stroke%3D%22%2333b5e5%22%20viewBox%3D%220%200%2022%2022%22%3E%3Ccircle%20cx%3D%2211%22%20cy%3D%2211%22%20r%3D%228.5%22%2F%3E%3Cpath%20d%3D%22M17.5%2011c0%204.819-3.02%208.5-6.5%208.5S4.5%2015.819%204.5%2011%207.52%202.5%2011%202.5s6.5%203.681%206.5%208.5Z%22%2F%3E%3Cpath%20d%3D%22M13.5%2011c0%202.447-.331%204.64-.853%206.206-.262.785-.562%201.384-.872%201.777-.314.399-.58.517-.775.517s-.461-.118-.775-.517c-.31-.393-.61-.992-.872-1.777C8.831%2015.64%208.5%2013.446%208.5%2011s.331-4.64.853-6.206c.262-.785.562-1.384.872-1.777.314-.399.58-.517.775-.517s.461.118.775.517c.31.393.61.992.872%201.777.522%201.565.853%203.76.853%206.206Z%22%2F%3E%3Cpath%20d%3D%22M11%207.5c-1.909%200-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3%201.3%200%200%201-.224-.138q.07-.058.224-.138c.299-.151.763-.302%201.379-.434C7.378%205.666%209.091%205.5%2011%205.5s3.622.166%204.845.428c.616.132%201.08.283%201.379.434.105.053.177.1.224.138q-.07.058-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm0%209c-1.909%200-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3%201.3%200%200%201-.224-.138%201.3%201.3%200%200%201%20.224-.138c.299-.151.763-.302%201.379-.434C7.378%2014.666%209.091%2014.5%2011%2014.5s3.622.166%204.845.428c.616.132%201.08.283%201.379.434.105.053.177.1.224.138a1.3%201.3%200%200%201-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm0-4c-2.46%200-4.672-.222-6.255-.574-.796-.177-1.406-.38-1.805-.59a1.5%201.5%200%200%201-.39-.272.3.3%200%200%201-.047-.064.3.3%200%200%201%20.048-.064c.066-.073.189-.167.389-.272.399-.21%201.009-.413%201.805-.59C6.328%209.722%208.54%209.5%2011%209.5s4.672.222%206.256.574c.795.177%201.405.38%201.804.59.2.105.323.2.39.272a.3.3%200%200%201%20.047.064.3.3%200%200%201-.048.064%201.4%201.4%200%200%201-.389.272c-.399.21-1.009.413-1.804.59-1.584.352-3.796.574-6.256.574Zm-8.501-1.51v.002zm0%20.018v.002zm17.002.002v-.002zm0-.018v-.002z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-terrain .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2222%22%20height%3D%2222%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2022%2022%22%3E%3Cpath%20d%3D%22m1.754%2013.406%204.453-4.851%203.09%203.09%203.281%203.277.969-.969-3.309-3.312%203.844-4.121%206.148%206.886h1.082v-.855l-7.207-8.07-4.84%205.187L6.169%206.57l-5.48%205.965v.871ZM.688%2016.844h20.625v1.375H.688Zm0%200%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-terrain-enabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2222%22%20height%3D%2222%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2022%2022%22%3E%3Cpath%20d%3D%22m1.754%2013.406%204.453-4.851%203.09%203.09%203.281%203.277.969-.969-3.309-3.312%203.844-4.121%206.148%206.886h1.082v-.855l-7.207-8.07-4.84%205.187L6.169%206.57l-5.48%205.965v.871ZM.688%2016.844h20.625v1.375H.688Zm0%200%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23aaa%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3Cpath%20fill%3D%22red%22%20d%3D%22m14%205%201%201-9%209-1-1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23e58978%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23e54e33%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-waiting .maplibregl-ctrl-icon{animation:maplibregl-spin 2s linear infinite}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23999%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3Cpath%20fill%3D%22red%22%20d%3D%22m14%205%201%201-9%209-1-1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23e58978%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23e54e33%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23666%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3Cpath%20fill%3D%22red%22%20d%3D%22m14%205%201%201-9%209-1-1z%22%2F%3E%3C%2Fsvg%3E")}}@keyframes maplibregl-spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}a.maplibregl-ctrl-logo{width:88px;height:23px;margin:0 0 -4px -4px;display:block;background-repeat:no-repeat;cursor:pointer;overflow:hidden;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2288%22%20height%3D%2223%22%20fill%3D%22none%22%3E%3Cpath%20fill%3D%22%23000%22%20fill-opacity%3D%22.4%22%20fill-rule%3D%22evenodd%22%20d%3D%22M17.408%2016.796h-1.827l2.501-12.095h.198l3.324%206.533.988%202.19.988-2.19%203.258-6.533h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.929%205.644h-.098l-2.914-5.644-.757-1.71-.345%201.71zm1.958-3.42-.726%203.663a1.255%201.255%200%200%201-1.232%201.011h-1.827a1.255%201.255%200%200%201-1.229-1.509l2.501-12.095a1.255%201.255%200%200%201%201.23-1.001h.197a1.25%201.25%200%200%201%201.12.685l3.19%206.273%203.125-6.263a1.25%201.25%200%200%201%201.123-.695h.181a1.255%201.255%200%200%201%201.227.991l1.443%206.71a5%205%200%200%201%20.314-.787l.009-.016a4.6%204.6%200%200%201%201.777-1.887c.782-.46%201.668-.667%202.611-.667a4.6%204.6%200%200%201%201.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255%201.255%200%200%201%201.212.925%201.255%201.255%200%200%201%201.212-.925h1.711c.284%200%20.545.094.755.252.613-.3%201.312-.45%202.075-.45%201.356%200%202.557.445%203.482%201.4q.47.48.763%201.064V4.701a1.255%201.255%200%200%201%201.255-1.255h1.86A1.255%201.255%200%200%201%2054.44%204.7v9.194h2.217c.19%200%20.37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42%202.42%200%200%201-.682-1.71c0-.665.267-1.253.735-1.7a2.45%202.45%200%200%201%201.722-.674%202.43%202.43%200%200%201%201.705.675q.318.302.504.683V4.7a1.255%201.255%200%200%201%201.255-1.255h1.744A1.255%201.255%200%200%201%2065.812%204.7v3.335a4.8%204.8%200%200%201%201.526-.246c.938%200%201.817.214%202.59.69a4.47%204.47%200%200%201%201.67%201.743v-.98a1.255%201.255%200%200%201%201.256-1.256h1.777c.233%200%20.451.064.639.174a3.4%203.4%200%200%201%201.567-.372c.346%200%20.861.02%201.285.232a1.25%201.25%200%200%201%20.689%201.004%204.7%204.7%200%200%201%20.853-.588c.795-.44%201.675-.647%202.61-.647%201.385%200%202.65.39%203.525%201.396.836.938%201.168%202.173%201.168%203.528q-.001.515-.056%201.051a1.255%201.255%200%200%201-.947%201.09l.408.952a1.255%201.255%200%200%201-.477%201.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06%200-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8%205.8%200%200%201-.548-2.512q0-.429.053-.843a1.3%201.3%200%200%201-.333-.086l-.166-.004c-.223%200-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255%201.255%200%200%201-1.256%201.256h-1.777a1.255%201.255%200%200%201-1.256-1.256V15.69l-.032.057a4.8%204.8%200%200%201-1.86%201.833%205.04%205.04%200%200%201-2.484.634%204.5%204.5%200%200%201-1.935-.424%201.25%201.25%200%200%201-.764.258h-1.71a1.255%201.255%200%200%201-1.256-1.255V7.687a2.4%202.4%200%200%201-.428.625c.253.23.412.561.412.93v7.553a1.255%201.255%200%200%201-1.256%201.255h-1.843a1.25%201.25%200%200%201-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255%201.255%200%200%201-1.256-1.255v-1.251l-.061.117a4.7%204.7%200%200%201-1.782%201.884%204.77%204.77%200%200%201-2.485.67%205.6%205.6%200%200%201-1.485-.188l.009%202.764a1.255%201.255%200%200%201-1.255%201.259h-1.729a1.255%201.255%200%200%201-1.255-1.255v-3.537a1.255%201.255%200%200%201-1.167.793h-1.679a1.25%201.25%200%200%201-.77-.263%204.5%204.5%200%200%201-1.945.429c-.885%200-1.724-.21-2.495-.632l-.017-.01a5%205%200%200%201-1.081-.836%201.255%201.255%200%200%201-1.254%201.312h-1.81a1.255%201.255%200%200%201-1.228-.99l-.782-3.625-2.044%203.939a1.25%201.25%200%200%201-1.115.676h-.098a1.25%201.25%200%200%201-1.116-.68l-2.061-3.994zM35.92%2016.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033%201.332h1.678V9.242h-1.694l-.033%201.267q-.133-.329-.526-.658l-.032-.028a3.2%203.2%200%200%200-.668-.428l-.27-.12a3.3%203.3%200%200%200-1.235-.23q-1.136-.001-1.974.493a3.36%203.36%200%200%200-1.3%201.382q-.445.89-.444%202.074%200%201.2.51%202.107a3.8%203.8%200%200%200%201.382%201.381%203.9%203.9%200%200%200%201.893.477q.795%200%201.455-.33zm-2.789-5.38q-.576.675-.575%201.762%200%201.102.559%201.794.576.675%201.645.675a2.25%202.25%200%200%200%20.934-.19%202.2%202.2%200%200%200%20.468-.29l.178-.161a2.2%202.2%200%200%200%20.397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2%202.2%200%200%200-.633-.709l-.13-.086-.047-.028a2.1%202.1%200%200%200-1.073-.285q-1.052%200-1.629.692zm2.316%202.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96%200%200%200-.353-.389.85.85%200%200%200-.464-.127c-.4%200-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945%200%20.506.122.801.27.99.097.11.266.224.68.224.303%200%20.504-.09.687-.269zm7.545%201.705a2.6%202.6%200%200%200%20.331.423q.319.33.755.548l.173.074q.65.255%201.49.255%201.02%200%201.844-.493a3.45%203.45%200%200%200%201.316-1.4q.493-.904.493-2.089%200-1.909-.988-2.913-.988-1.02-2.584-1.02-.898%200-1.575.347a3%203%200%200%200-.415.262l-.199.166a3.4%203.4%200%200%200-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296%201.119.297%201.07%200%201.645-.675.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.435%200-.835.16a2%202%200%200%200-.284.136%202%202%200%200%200-.363.254%202.2%202.2%200%200%200-.46.569l-.082.162a2.6%202.6%200%200%200-.213%201.072v.115q0%20.707.296%201.267l.135.211zm.964-.818a1.1%201.1%200%200%200%20.367.385.94.94%200%200%200%20.476.118c.423%200%20.59-.117.687-.23.159-.194.28-.478.28-.95%200-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1%201%200%200%200-.503.135l-.012.007a.86.86%200%200%200-.335.343c-.073.133-.132.324-.132.614v.115a1.4%201.4%200%200%200%20.14.66zm15.7-6.222q.347-.346.346-.856a1.05%201.05%200%200%200-.345-.79%201.18%201.18%200%200%200-.84-.329q-.51%200-.855.33a1.05%201.05%200%200%200-.346.79q0%20.51.346.855.345.346.856.346.51%200%20.839-.346zm4.337%209.314.033-1.332q.191.403.59.747l.098.081a4%204%200%200%200%20.316.224l.223.122a3.2%203.2%200%200%200%201.44.322%203.8%203.8%200%200%200%201.875-.477%203.5%203.5%200%200%200%201.382-1.366q.527-.89.526-2.09%200-1.184-.444-2.073a3.24%203.24%200%200%200-1.283-1.399q-.823-.51-1.942-.51a3.5%203.5%200%200%200-1.527.344l-.086.043-.165.09a3%203%200%200%200-.33.214q-.432.315-.656.707a2%202%200%200%200-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5%202.5%200%200%200%20.566.7q.117.098.245.18l.144.08a2.1%202.1%200%200%200%20.975.232q1.07%200%201.645-.675.576-.69.576-1.778%200-1.102-.576-1.777-.56-.691-1.645-.692a2.2%202.2%200%200%200-1.015.235q-.22.113-.415.282l-.15.142a2.1%202.1%200%200%200-.42.594q-.223.479-.223%201.1v.115q0%20.705.293%201.26zm2.616-.293c.157-.191.28-.479.28-.967%200-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87%200%200%200-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0%20.285.057.499.144.669a1.1%201.1%200%200%200%20.367.405c.137.082.28.123.455.123.423%200%20.59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493%200%20.642.099l.247-1.794q-.196-.099-.717-.099a2.3%202.3%200%200%200-.545.063%202%202%200%200%200-.411.148%202.2%202.2%200%200%200-.4.249%202.5%202.5%200%200%200-.485.499%202.7%202.7%200%200%200-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5%201.5%200%200%201%20.466-.636%202.5%202.5%200%200%201%20.399-.253%202%202%200%200%201%20.224-.099zm9.784%202.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46%203.46%200%200%200-1.4%201.382q-.493.906-.493%202.106%200%201.07.428%201.975.428.89%201.332%201.432.906.526%202.255.526.973%200%201.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954%200-1.497-.444a1.6%201.6%200%200%201-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1%201%200%200%200-.156-.176q-.46-.428-1.316-.428-.986%200-1.494.604-.379.45-.494%201.234zm-27.053%202.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z%22%2F%3E%3Cpath%20fill%3D%22%23fff%22%20d%3D%22m19.63%2011.151-.757-1.71-.345%201.71-1.12%205.644h-1.827L18.083%204.7h.197l3.325%206.533.988%202.19.988-2.19L26.839%204.7h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.93%205.644h-.098l-2.913-5.644zm14.836%205.81q-1.02%200-1.893-.478a3.8%203.8%200%200%201-1.381-1.382q-.51-.906-.51-2.106%200-1.185.444-2.074a3.36%203.36%200%200%201%201.3-1.382q.839-.494%201.974-.494a3.3%203.3%200%200%201%201.234.231%203.3%203.3%200%200%201%20.97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02%201.053a3.17%203.17%200%200%201-1.662.444zm.296-1.482q.938%200%201.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2%202.2%200%200%200-.807-.872%202.1%202.1%200%200%200-1.119-.313q-1.053%200-1.629.692-.575.675-.575%201.76%200%201.103.559%201.795.577.675%201.645.675zm6.521-6.237h1.711v1.4q.906-1.597%202.83-1.597%201.596%200%202.584%201.02.988%201.005.988%202.914%200%201.185-.493%202.09a3.46%203.46%200%200%201-1.316%201.399%203.5%203.5%200%200%201-1.844.493q-.954%200-1.662-.329a2.67%202.67%200%200%201-1.086-.97l.017%205.134h-1.728zm4.048%206.22q1.07%200%201.645-.674.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.592%200-1.12.296-.51.28-.822.823-.296.527-.296%201.234v.115q0%20.708.296%201.267.313.543.823.855.51.296%201.119.297z%22%2F%3E%3Cpath%20fill%3D%22%23e1e3e9%22%20d%3D%22M51.325%204.7h1.86v10.45h3.473v1.646h-5.333zm7.12%204.542h1.843v7.553h-1.843zm.905-1.415a1.16%201.16%200%200%201-.856-.346%201.17%201.17%200%200%201-.346-.856%201.05%201.05%200%200%201%20.346-.79q.346-.329.856-.329.494%200%20.839.33a1.05%201.05%200%200%201%20.345.79%201.16%201.16%200%200%201-.345.855q-.33.346-.84.346zm7.875%209.133a3.17%203.17%200%200%201-1.662-.444q-.723-.46-1.004-1.053l-.033%201.332h-1.71V4.701h1.743v4.657l-.082%201.283q.279-.658%201.086-1.119a3.5%203.5%200%200%201%201.778-.477q1.119%200%201.942.51a3.24%203.24%200%200%201%201.283%201.4q.445.888.444%202.072%200%201.201-.526%202.09a3.5%203.5%200%200%201-1.382%201.366%203.8%203.8%200%200%201-1.876.477zm-.296-1.481q1.069%200%201.645-.675.577-.69.577-1.778%200-1.102-.577-1.776-.56-.691-1.645-.692a2.12%202.12%200%200%200-1.58.659q-.642.641-.642%201.694v.115q0%20.71.296%201.267a2.4%202.4%200%200%200%20.807.872%202.1%202.1%200%200%200%201.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14%202.14%200%200%201%201.349-.46q.527%200%20.724.098l-.247%201.794q-.149-.099-.642-.099-.774%200-1.416.494-.626.493-.626%201.58v3.883h-1.777V9.242zm9.534%207.718q-1.35%200-2.255-.526-.904-.543-1.332-1.432a4.6%204.6%200%200%201-.428-1.975q0-1.2.493-2.106a3.46%203.46%200%200%201%201.4-1.382q.889-.495%202.007-.494%201.744%200%202.584.97.855.956.856%202.7%200%20.444-.05.92h-5.43q.18%201.005.708%201.45.542.443%201.497.443.79%200%201.3-.131a4%204%200%200%200%20.938-.362l.542%201.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728%200-1.991%201.86z%22%2F%3E%3Cpath%20d%3D%22M5.074%2015.948a.484.657%200%200%200-.486.659v1.84a.484.657%200%200%200%20.486.659h4.101a.484.657%200%200%200%20.486-.659v-1.84a.484.657%200%200%200-.486-.659zm3.56%201.16H5.617v.838h3.017z%22%20style%3D%22fill%3A%23fff%3Bfill-rule%3Aevenodd%3Bstroke-width%3A1.03600001%22%2F%3E%3Cg%20style%3D%22stroke-width%3A1.12603545%22%3E%3Cpath%20d%3D%22M-9.408-1.416c-3.833-.025-7.056%202.912-7.08%206.615-.02%203.08%201.653%204.832%203.107%206.268.903.892%201.721%201.74%202.32%202.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87%201.87%200%200%200-.362%201.121l-.011%201.877c-.003.402.104.787.347%201.125.244.338.688.653%201.23.656l4.142.028c.542.003.99-.306%201.238-.641a1.87%201.87%200%200%200%20.363-1.121l.012-1.875a1.87%201.87%200%200%200-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145%201.425-1.983%202.348-2.87%201.473-1.414%203.18-3.149%203.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006%201.1v.002c3.274.02%205.92%202.532%205.9%205.6-.017%202.706-1.39%204.026-2.863%205.44-1.034.994-2.118%202.033-2.814%203.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34%200%200%201-.226.084.34.34%200%200%201-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067%202.7-5.545%205.975-5.523m-.02%202.826c-1.62-.01-2.944%201.315-2.955%202.96-.01%201.646%201.295%202.988%202.916%202.999h.002c1.621.01%202.943-1.316%202.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005%201.1c1.017.006%201.829.83%201.822%201.89s-.83%201.874-1.848%201.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874%201.848-1.868m-2.155%2011.857%204.14.025c.271.002.49.305.487.676l-.013%201.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668%22%20style%3D%22color%3A%23000%3Bfont-style%3Anormal%3Bfont-variant%3Anormal%3Bfont-weight%3A400%3Bfont-stretch%3Anormal%3Bfont-size%3Amedium%3Bline-height%3Anormal%3Bfont-family%3Asans-serif%3Bfont-variant-ligatures%3Anormal%3Bfont-variant-position%3Anormal%3Bfont-variant-caps%3Anormal%3Bfont-variant-numeric%3Anormal%3Bfont-variant-alternates%3Anormal%3Bfont-feature-settings%3Anormal%3Btext-indent%3A0%3Btext-align%3Astart%3Btext-decoration%3Anone%3Btext-decoration-line%3Anone%3Btext-decoration-style%3Asolid%3Btext-decoration-color%3A%23000%3Bletter-spacing%3Anormal%3Bword-spacing%3Anormal%3Btext-transform%3Anone%3Bwriting-mode%3Alr-tb%3Bdirection%3Altr%3Btext-orientation%3Amixed%3Bdominant-baseline%3Aauto%3Bbaseline-shift%3Abaseline%3Btext-anchor%3Astart%3Bwhite-space%3Anormal%3Bshape-padding%3A0%3Bclip-rule%3Aevenodd%3Bdisplay%3Ainline%3Boverflow%3Avisible%3Bvisibility%3Avisible%3Bopacity%3A1%3Bisolation%3Aauto%3Bmix-blend-mode%3Anormal%3Bcolor-interpolation%3AsRGB%3Bcolor-interpolation-filters%3AlinearRGB%3Bsolid-color%3A%23000%3Bsolid-opacity%3A1%3Bvector-effect%3Anone%3Bfill%3A%23000%3Bfill-opacity%3A.4%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-linecap%3Abutt%3Bstroke-linejoin%3Amiter%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-dashoffset%3A0%3Bstroke-opacity%3A1%3Bcolor-rendering%3Aauto%3Bimage-rendering%3Aauto%3Bshape-rendering%3Aauto%3Btext-rendering%3Aauto%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-9.415-.316C-12.69-.338-15.37%202.14-15.39%205.207c-.017%202.716%201.326%204.041%202.78%205.477%201.013%201%202.081%202.055%202.78%203.67l.092.076a.34.34%200%200%200%20.225.086.34.34%200%200%200%20.227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6%201.78-2.64%202.814-3.634%201.473-1.414%202.847-2.733%202.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057%208.784c1.621.011%202.944-1.315%202.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945%201.315-2.955%202.96s1.295%202.989%202.916%203%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23e1e3e9%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-11.594%2015.465c-.27-.002-.492.297-.494.668l-.012%201.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23fff%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E")}a.maplibregl-ctrl-logo.maplibregl-compact{width:14px}@media (forced-colors:active){a.maplibregl-ctrl-logo{background-color:transparent;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2288%22%20height%3D%2223%22%20fill%3D%22none%22%3E%3Cpath%20fill%3D%22%23000%22%20fill-opacity%3D%22.4%22%20fill-rule%3D%22evenodd%22%20d%3D%22M17.408%2016.796h-1.827l2.501-12.095h.198l3.324%206.533.988%202.19.988-2.19%203.258-6.533h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.929%205.644h-.098l-2.914-5.644-.757-1.71-.345%201.71zm1.958-3.42-.726%203.663a1.255%201.255%200%200%201-1.232%201.011h-1.827a1.255%201.255%200%200%201-1.229-1.509l2.501-12.095a1.255%201.255%200%200%201%201.23-1.001h.197a1.25%201.25%200%200%201%201.12.685l3.19%206.273%203.125-6.263a1.25%201.25%200%200%201%201.123-.695h.181a1.255%201.255%200%200%201%201.227.991l1.443%206.71a5%205%200%200%201%20.314-.787l.009-.016a4.6%204.6%200%200%201%201.777-1.887c.782-.46%201.668-.667%202.611-.667a4.6%204.6%200%200%201%201.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255%201.255%200%200%201%201.212.925%201.255%201.255%200%200%201%201.212-.925h1.711c.284%200%20.545.094.755.252.613-.3%201.312-.45%202.075-.45%201.356%200%202.557.445%203.482%201.4q.47.48.763%201.064V4.701a1.255%201.255%200%200%201%201.255-1.255h1.86A1.255%201.255%200%200%201%2054.44%204.7v9.194h2.217c.19%200%20.37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42%202.42%200%200%201-.682-1.71c0-.665.267-1.253.735-1.7a2.45%202.45%200%200%201%201.722-.674%202.43%202.43%200%200%201%201.705.675q.318.302.504.683V4.7a1.255%201.255%200%200%201%201.255-1.255h1.744A1.255%201.255%200%200%201%2065.812%204.7v3.335a4.8%204.8%200%200%201%201.526-.246c.938%200%201.817.214%202.59.69a4.47%204.47%200%200%201%201.67%201.743v-.98a1.255%201.255%200%200%201%201.256-1.256h1.777c.233%200%20.451.064.639.174a3.4%203.4%200%200%201%201.567-.372c.346%200%20.861.02%201.285.232a1.25%201.25%200%200%201%20.689%201.004%204.7%204.7%200%200%201%20.853-.588c.795-.44%201.675-.647%202.61-.647%201.385%200%202.65.39%203.525%201.396.836.938%201.168%202.173%201.168%203.528q-.001.515-.056%201.051a1.255%201.255%200%200%201-.947%201.09l.408.952a1.255%201.255%200%200%201-.477%201.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06%200-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8%205.8%200%200%201-.548-2.512q0-.429.053-.843a1.3%201.3%200%200%201-.333-.086l-.166-.004c-.223%200-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255%201.255%200%200%201-1.256%201.256h-1.777a1.255%201.255%200%200%201-1.256-1.256V15.69l-.032.057a4.8%204.8%200%200%201-1.86%201.833%205.04%205.04%200%200%201-2.484.634%204.5%204.5%200%200%201-1.935-.424%201.25%201.25%200%200%201-.764.258h-1.71a1.255%201.255%200%200%201-1.256-1.255V7.687a2.4%202.4%200%200%201-.428.625c.253.23.412.561.412.93v7.553a1.255%201.255%200%200%201-1.256%201.255h-1.843a1.25%201.25%200%200%201-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255%201.255%200%200%201-1.256-1.255v-1.251l-.061.117a4.7%204.7%200%200%201-1.782%201.884%204.77%204.77%200%200%201-2.485.67%205.6%205.6%200%200%201-1.485-.188l.009%202.764a1.255%201.255%200%200%201-1.255%201.259h-1.729a1.255%201.255%200%200%201-1.255-1.255v-3.537a1.255%201.255%200%200%201-1.167.793h-1.679a1.25%201.25%200%200%201-.77-.263%204.5%204.5%200%200%201-1.945.429c-.885%200-1.724-.21-2.495-.632l-.017-.01a5%205%200%200%201-1.081-.836%201.255%201.255%200%200%201-1.254%201.312h-1.81a1.255%201.255%200%200%201-1.228-.99l-.782-3.625-2.044%203.939a1.25%201.25%200%200%201-1.115.676h-.098a1.25%201.25%200%200%201-1.116-.68l-2.061-3.994zM35.92%2016.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033%201.332h1.678V9.242h-1.694l-.033%201.267q-.133-.329-.526-.658l-.032-.028a3.2%203.2%200%200%200-.668-.428l-.27-.12a3.3%203.3%200%200%200-1.235-.23q-1.136-.001-1.974.493a3.36%203.36%200%200%200-1.3%201.382q-.445.89-.444%202.074%200%201.2.51%202.107a3.8%203.8%200%200%200%201.382%201.381%203.9%203.9%200%200%200%201.893.477q.795%200%201.455-.33zm-2.789-5.38q-.576.675-.575%201.762%200%201.102.559%201.794.576.675%201.645.675a2.25%202.25%200%200%200%20.934-.19%202.2%202.2%200%200%200%20.468-.29l.178-.161a2.2%202.2%200%200%200%20.397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2%202.2%200%200%200-.633-.709l-.13-.086-.047-.028a2.1%202.1%200%200%200-1.073-.285q-1.052%200-1.629.692zm2.316%202.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96%200%200%200-.353-.389.85.85%200%200%200-.464-.127c-.4%200-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945%200%20.506.122.801.27.99.097.11.266.224.68.224.303%200%20.504-.09.687-.269zm7.545%201.705a2.6%202.6%200%200%200%20.331.423q.319.33.755.548l.173.074q.65.255%201.49.255%201.02%200%201.844-.493a3.45%203.45%200%200%200%201.316-1.4q.493-.904.493-2.089%200-1.909-.988-2.913-.988-1.02-2.584-1.02-.898%200-1.575.347a3%203%200%200%200-.415.262l-.199.166a3.4%203.4%200%200%200-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296%201.119.297%201.07%200%201.645-.675.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.435%200-.835.16a2%202%200%200%200-.284.136%202%202%200%200%200-.363.254%202.2%202.2%200%200%200-.46.569l-.082.162a2.6%202.6%200%200%200-.213%201.072v.115q0%20.707.296%201.267l.135.211zm.964-.818a1.1%201.1%200%200%200%20.367.385.94.94%200%200%200%20.476.118c.423%200%20.59-.117.687-.23.159-.194.28-.478.28-.95%200-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1%201%200%200%200-.503.135l-.012.007a.86.86%200%200%200-.335.343c-.073.133-.132.324-.132.614v.115a1.4%201.4%200%200%200%20.14.66zm15.7-6.222q.347-.346.346-.856a1.05%201.05%200%200%200-.345-.79%201.18%201.18%200%200%200-.84-.329q-.51%200-.855.33a1.05%201.05%200%200%200-.346.79q0%20.51.346.855.345.346.856.346.51%200%20.839-.346zm4.337%209.314.033-1.332q.191.403.59.747l.098.081a4%204%200%200%200%20.316.224l.223.122a3.2%203.2%200%200%200%201.44.322%203.8%203.8%200%200%200%201.875-.477%203.5%203.5%200%200%200%201.382-1.366q.527-.89.526-2.09%200-1.184-.444-2.073a3.24%203.24%200%200%200-1.283-1.399q-.823-.51-1.942-.51a3.5%203.5%200%200%200-1.527.344l-.086.043-.165.09a3%203%200%200%200-.33.214q-.432.315-.656.707a2%202%200%200%200-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5%202.5%200%200%200%20.566.7q.117.098.245.18l.144.08a2.1%202.1%200%200%200%20.975.232q1.07%200%201.645-.675.576-.69.576-1.778%200-1.102-.576-1.777-.56-.691-1.645-.692a2.2%202.2%200%200%200-1.015.235q-.22.113-.415.282l-.15.142a2.1%202.1%200%200%200-.42.594q-.223.479-.223%201.1v.115q0%20.705.293%201.26zm2.616-.293c.157-.191.28-.479.28-.967%200-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87%200%200%200-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0%20.285.057.499.144.669a1.1%201.1%200%200%200%20.367.405c.137.082.28.123.455.123.423%200%20.59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493%200%20.642.099l.247-1.794q-.196-.099-.717-.099a2.3%202.3%200%200%200-.545.063%202%202%200%200%200-.411.148%202.2%202.2%200%200%200-.4.249%202.5%202.5%200%200%200-.485.499%202.7%202.7%200%200%200-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5%201.5%200%200%201%20.466-.636%202.5%202.5%200%200%201%20.399-.253%202%202%200%200%201%20.224-.099zm9.784%202.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46%203.46%200%200%200-1.4%201.382q-.493.906-.493%202.106%200%201.07.428%201.975.428.89%201.332%201.432.906.526%202.255.526.973%200%201.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954%200-1.497-.444a1.6%201.6%200%200%201-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1%201%200%200%200-.156-.176q-.46-.428-1.316-.428-.986%200-1.494.604-.379.45-.494%201.234zm-27.053%202.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z%22%2F%3E%3Cpath%20fill%3D%22%23fff%22%20d%3D%22m19.63%2011.151-.757-1.71-.345%201.71-1.12%205.644h-1.827L18.083%204.7h.197l3.325%206.533.988%202.19.988-2.19L26.839%204.7h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.93%205.644h-.098l-2.913-5.644zm14.836%205.81q-1.02%200-1.893-.478a3.8%203.8%200%200%201-1.381-1.382q-.51-.906-.51-2.106%200-1.185.444-2.074a3.36%203.36%200%200%201%201.3-1.382q.839-.494%201.974-.494a3.3%203.3%200%200%201%201.234.231%203.3%203.3%200%200%201%20.97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02%201.053a3.17%203.17%200%200%201-1.662.444zm.296-1.482q.938%200%201.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2%202.2%200%200%200-.807-.872%202.1%202.1%200%200%200-1.119-.313q-1.053%200-1.629.692-.575.675-.575%201.76%200%201.103.559%201.795.577.675%201.645.675zm6.521-6.237h1.711v1.4q.906-1.597%202.83-1.597%201.596%200%202.584%201.02.988%201.005.988%202.914%200%201.185-.493%202.09a3.46%203.46%200%200%201-1.316%201.399%203.5%203.5%200%200%201-1.844.493q-.954%200-1.662-.329a2.67%202.67%200%200%201-1.086-.97l.017%205.134h-1.728zm4.048%206.22q1.07%200%201.645-.674.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.592%200-1.12.296-.51.28-.822.823-.296.527-.296%201.234v.115q0%20.708.296%201.267.313.543.823.855.51.296%201.119.297z%22%2F%3E%3Cpath%20fill%3D%22%23e1e3e9%22%20d%3D%22M51.325%204.7h1.86v10.45h3.473v1.646h-5.333zm7.12%204.542h1.843v7.553h-1.843zm.905-1.415a1.16%201.16%200%200%201-.856-.346%201.17%201.17%200%200%201-.346-.856%201.05%201.05%200%200%201%20.346-.79q.346-.329.856-.329.494%200%20.839.33a1.05%201.05%200%200%201%20.345.79%201.16%201.16%200%200%201-.345.855q-.33.346-.84.346zm7.875%209.133a3.17%203.17%200%200%201-1.662-.444q-.723-.46-1.004-1.053l-.033%201.332h-1.71V4.701h1.743v4.657l-.082%201.283q.279-.658%201.086-1.119a3.5%203.5%200%200%201%201.778-.477q1.119%200%201.942.51a3.24%203.24%200%200%201%201.283%201.4q.445.888.444%202.072%200%201.201-.526%202.09a3.5%203.5%200%200%201-1.382%201.366%203.8%203.8%200%200%201-1.876.477zm-.296-1.481q1.069%200%201.645-.675.577-.69.577-1.778%200-1.102-.577-1.776-.56-.691-1.645-.692a2.12%202.12%200%200%200-1.58.659q-.642.641-.642%201.694v.115q0%20.71.296%201.267a2.4%202.4%200%200%200%20.807.872%202.1%202.1%200%200%200%201.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14%202.14%200%200%201%201.349-.46q.527%200%20.724.098l-.247%201.794q-.149-.099-.642-.099-.774%200-1.416.494-.626.493-.626%201.58v3.883h-1.777V9.242zm9.534%207.718q-1.35%200-2.255-.526-.904-.543-1.332-1.432a4.6%204.6%200%200%201-.428-1.975q0-1.2.493-2.106a3.46%203.46%200%200%201%201.4-1.382q.889-.495%202.007-.494%201.744%200%202.584.97.855.956.856%202.7%200%20.444-.05.92h-5.43q.18%201.005.708%201.45.542.443%201.497.443.79%200%201.3-.131a4%204%200%200%200%20.938-.362l.542%201.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728%200-1.991%201.86z%22%2F%3E%3Cpath%20d%3D%22M5.074%2015.948a.484.657%200%200%200-.486.659v1.84a.484.657%200%200%200%20.486.659h4.101a.484.657%200%200%200%20.486-.659v-1.84a.484.657%200%200%200-.486-.659zm3.56%201.16H5.617v.838h3.017z%22%20style%3D%22fill%3A%23fff%3Bfill-rule%3Aevenodd%3Bstroke-width%3A1.03600001%22%2F%3E%3Cg%20style%3D%22stroke-width%3A1.12603545%22%3E%3Cpath%20d%3D%22M-9.408-1.416c-3.833-.025-7.056%202.912-7.08%206.615-.02%203.08%201.653%204.832%203.107%206.268.903.892%201.721%201.74%202.32%202.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87%201.87%200%200%200-.362%201.121l-.011%201.877c-.003.402.104.787.347%201.125.244.338.688.653%201.23.656l4.142.028c.542.003.99-.306%201.238-.641a1.87%201.87%200%200%200%20.363-1.121l.012-1.875a1.87%201.87%200%200%200-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145%201.425-1.983%202.348-2.87%201.473-1.414%203.18-3.149%203.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006%201.1v.002c3.274.02%205.92%202.532%205.9%205.6-.017%202.706-1.39%204.026-2.863%205.44-1.034.994-2.118%202.033-2.814%203.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34%200%200%201-.226.084.34.34%200%200%201-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067%202.7-5.545%205.975-5.523m-.02%202.826c-1.62-.01-2.944%201.315-2.955%202.96-.01%201.646%201.295%202.988%202.916%202.999h.002c1.621.01%202.943-1.316%202.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005%201.1c1.017.006%201.829.83%201.822%201.89s-.83%201.874-1.848%201.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874%201.848-1.868m-2.155%2011.857%204.14.025c.271.002.49.305.487.676l-.013%201.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668%22%20style%3D%22color%3A%23000%3Bfont-style%3Anormal%3Bfont-variant%3Anormal%3Bfont-weight%3A400%3Bfont-stretch%3Anormal%3Bfont-size%3Amedium%3Bline-height%3Anormal%3Bfont-family%3Asans-serif%3Bfont-variant-ligatures%3Anormal%3Bfont-variant-position%3Anormal%3Bfont-variant-caps%3Anormal%3Bfont-variant-numeric%3Anormal%3Bfont-variant-alternates%3Anormal%3Bfont-feature-settings%3Anormal%3Btext-indent%3A0%3Btext-align%3Astart%3Btext-decoration%3Anone%3Btext-decoration-line%3Anone%3Btext-decoration-style%3Asolid%3Btext-decoration-color%3A%23000%3Bletter-spacing%3Anormal%3Bword-spacing%3Anormal%3Btext-transform%3Anone%3Bwriting-mode%3Alr-tb%3Bdirection%3Altr%3Btext-orientation%3Amixed%3Bdominant-baseline%3Aauto%3Bbaseline-shift%3Abaseline%3Btext-anchor%3Astart%3Bwhite-space%3Anormal%3Bshape-padding%3A0%3Bclip-rule%3Aevenodd%3Bdisplay%3Ainline%3Boverflow%3Avisible%3Bvisibility%3Avisible%3Bopacity%3A1%3Bisolation%3Aauto%3Bmix-blend-mode%3Anormal%3Bcolor-interpolation%3AsRGB%3Bcolor-interpolation-filters%3AlinearRGB%3Bsolid-color%3A%23000%3Bsolid-opacity%3A1%3Bvector-effect%3Anone%3Bfill%3A%23000%3Bfill-opacity%3A.4%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-linecap%3Abutt%3Bstroke-linejoin%3Amiter%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-dashoffset%3A0%3Bstroke-opacity%3A1%3Bcolor-rendering%3Aauto%3Bimage-rendering%3Aauto%3Bshape-rendering%3Aauto%3Btext-rendering%3Aauto%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-9.415-.316C-12.69-.338-15.37%202.14-15.39%205.207c-.017%202.716%201.326%204.041%202.78%205.477%201.013%201%202.081%202.055%202.78%203.67l.092.076a.34.34%200%200%200%20.225.086.34.34%200%200%200%20.227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6%201.78-2.64%202.814-3.634%201.473-1.414%202.847-2.733%202.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057%208.784c1.621.011%202.944-1.315%202.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945%201.315-2.955%202.96s1.295%202.989%202.916%203%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23e1e3e9%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-11.594%2015.465c-.27-.002-.492.297-.494.668l-.012%201.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23fff%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){a.maplibregl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2288%22%20height%3D%2223%22%20fill%3D%22none%22%3E%3Cpath%20fill%3D%22%23000%22%20fill-opacity%3D%22.4%22%20fill-rule%3D%22evenodd%22%20d%3D%22M17.408%2016.796h-1.827l2.501-12.095h.198l3.324%206.533.988%202.19.988-2.19%203.258-6.533h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.929%205.644h-.098l-2.914-5.644-.757-1.71-.345%201.71zm1.958-3.42-.726%203.663a1.255%201.255%200%200%201-1.232%201.011h-1.827a1.255%201.255%200%200%201-1.229-1.509l2.501-12.095a1.255%201.255%200%200%201%201.23-1.001h.197a1.25%201.25%200%200%201%201.12.685l3.19%206.273%203.125-6.263a1.25%201.25%200%200%201%201.123-.695h.181a1.255%201.255%200%200%201%201.227.991l1.443%206.71a5%205%200%200%201%20.314-.787l.009-.016a4.6%204.6%200%200%201%201.777-1.887c.782-.46%201.668-.667%202.611-.667a4.6%204.6%200%200%201%201.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255%201.255%200%200%201%201.212.925%201.255%201.255%200%200%201%201.212-.925h1.711c.284%200%20.545.094.755.252.613-.3%201.312-.45%202.075-.45%201.356%200%202.557.445%203.482%201.4q.47.48.763%201.064V4.701a1.255%201.255%200%200%201%201.255-1.255h1.86A1.255%201.255%200%200%201%2054.44%204.7v9.194h2.217c.19%200%20.37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42%202.42%200%200%201-.682-1.71c0-.665.267-1.253.735-1.7a2.45%202.45%200%200%201%201.722-.674%202.43%202.43%200%200%201%201.705.675q.318.302.504.683V4.7a1.255%201.255%200%200%201%201.255-1.255h1.744A1.255%201.255%200%200%201%2065.812%204.7v3.335a4.8%204.8%200%200%201%201.526-.246c.938%200%201.817.214%202.59.69a4.47%204.47%200%200%201%201.67%201.743v-.98a1.255%201.255%200%200%201%201.256-1.256h1.777c.233%200%20.451.064.639.174a3.4%203.4%200%200%201%201.567-.372c.346%200%20.861.02%201.285.232a1.25%201.25%200%200%201%20.689%201.004%204.7%204.7%200%200%201%20.853-.588c.795-.44%201.675-.647%202.61-.647%201.385%200%202.65.39%203.525%201.396.836.938%201.168%202.173%201.168%203.528q-.001.515-.056%201.051a1.255%201.255%200%200%201-.947%201.09l.408.952a1.255%201.255%200%200%201-.477%201.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06%200-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8%205.8%200%200%201-.548-2.512q0-.429.053-.843a1.3%201.3%200%200%201-.333-.086l-.166-.004c-.223%200-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255%201.255%200%200%201-1.256%201.256h-1.777a1.255%201.255%200%200%201-1.256-1.256V15.69l-.032.057a4.8%204.8%200%200%201-1.86%201.833%205.04%205.04%200%200%201-2.484.634%204.5%204.5%200%200%201-1.935-.424%201.25%201.25%200%200%201-.764.258h-1.71a1.255%201.255%200%200%201-1.256-1.255V7.687a2.4%202.4%200%200%201-.428.625c.253.23.412.561.412.93v7.553a1.255%201.255%200%200%201-1.256%201.255h-1.843a1.25%201.25%200%200%201-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255%201.255%200%200%201-1.256-1.255v-1.251l-.061.117a4.7%204.7%200%200%201-1.782%201.884%204.77%204.77%200%200%201-2.485.67%205.6%205.6%200%200%201-1.485-.188l.009%202.764a1.255%201.255%200%200%201-1.255%201.259h-1.729a1.255%201.255%200%200%201-1.255-1.255v-3.537a1.255%201.255%200%200%201-1.167.793h-1.679a1.25%201.25%200%200%201-.77-.263%204.5%204.5%200%200%201-1.945.429c-.885%200-1.724-.21-2.495-.632l-.017-.01a5%205%200%200%201-1.081-.836%201.255%201.255%200%200%201-1.254%201.312h-1.81a1.255%201.255%200%200%201-1.228-.99l-.782-3.625-2.044%203.939a1.25%201.25%200%200%201-1.115.676h-.098a1.25%201.25%200%200%201-1.116-.68l-2.061-3.994zM35.92%2016.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033%201.332h1.678V9.242h-1.694l-.033%201.267q-.133-.329-.526-.658l-.032-.028a3.2%203.2%200%200%200-.668-.428l-.27-.12a3.3%203.3%200%200%200-1.235-.23q-1.136-.001-1.974.493a3.36%203.36%200%200%200-1.3%201.382q-.445.89-.444%202.074%200%201.2.51%202.107a3.8%203.8%200%200%200%201.382%201.381%203.9%203.9%200%200%200%201.893.477q.795%200%201.455-.33zm-2.789-5.38q-.576.675-.575%201.762%200%201.102.559%201.794.576.675%201.645.675a2.25%202.25%200%200%200%20.934-.19%202.2%202.2%200%200%200%20.468-.29l.178-.161a2.2%202.2%200%200%200%20.397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2%202.2%200%200%200-.633-.709l-.13-.086-.047-.028a2.1%202.1%200%200%200-1.073-.285q-1.052%200-1.629.692zm2.316%202.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96%200%200%200-.353-.389.85.85%200%200%200-.464-.127c-.4%200-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945%200%20.506.122.801.27.99.097.11.266.224.68.224.303%200%20.504-.09.687-.269zm7.545%201.705a2.6%202.6%200%200%200%20.331.423q.319.33.755.548l.173.074q.65.255%201.49.255%201.02%200%201.844-.493a3.45%203.45%200%200%200%201.316-1.4q.493-.904.493-2.089%200-1.909-.988-2.913-.988-1.02-2.584-1.02-.898%200-1.575.347a3%203%200%200%200-.415.262l-.199.166a3.4%203.4%200%200%200-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296%201.119.297%201.07%200%201.645-.675.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.435%200-.835.16a2%202%200%200%200-.284.136%202%202%200%200%200-.363.254%202.2%202.2%200%200%200-.46.569l-.082.162a2.6%202.6%200%200%200-.213%201.072v.115q0%20.707.296%201.267l.135.211zm.964-.818a1.1%201.1%200%200%200%20.367.385.94.94%200%200%200%20.476.118c.423%200%20.59-.117.687-.23.159-.194.28-.478.28-.95%200-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1%201%200%200%200-.503.135l-.012.007a.86.86%200%200%200-.335.343c-.073.133-.132.324-.132.614v.115a1.4%201.4%200%200%200%20.14.66zm15.7-6.222q.347-.346.346-.856a1.05%201.05%200%200%200-.345-.79%201.18%201.18%200%200%200-.84-.329q-.51%200-.855.33a1.05%201.05%200%200%200-.346.79q0%20.51.346.855.345.346.856.346.51%200%20.839-.346zm4.337%209.314.033-1.332q.191.403.59.747l.098.081a4%204%200%200%200%20.316.224l.223.122a3.2%203.2%200%200%200%201.44.322%203.8%203.8%200%200%200%201.875-.477%203.5%203.5%200%200%200%201.382-1.366q.527-.89.526-2.09%200-1.184-.444-2.073a3.24%203.24%200%200%200-1.283-1.399q-.823-.51-1.942-.51a3.5%203.5%200%200%200-1.527.344l-.086.043-.165.09a3%203%200%200%200-.33.214q-.432.315-.656.707a2%202%200%200%200-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5%202.5%200%200%200%20.566.7q.117.098.245.18l.144.08a2.1%202.1%200%200%200%20.975.232q1.07%200%201.645-.675.576-.69.576-1.778%200-1.102-.576-1.777-.56-.691-1.645-.692a2.2%202.2%200%200%200-1.015.235q-.22.113-.415.282l-.15.142a2.1%202.1%200%200%200-.42.594q-.223.479-.223%201.1v.115q0%20.705.293%201.26zm2.616-.293c.157-.191.28-.479.28-.967%200-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87%200%200%200-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0%20.285.057.499.144.669a1.1%201.1%200%200%200%20.367.405c.137.082.28.123.455.123.423%200%20.59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493%200%20.642.099l.247-1.794q-.196-.099-.717-.099a2.3%202.3%200%200%200-.545.063%202%202%200%200%200-.411.148%202.2%202.2%200%200%200-.4.249%202.5%202.5%200%200%200-.485.499%202.7%202.7%200%200%200-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5%201.5%200%200%201%20.466-.636%202.5%202.5%200%200%201%20.399-.253%202%202%200%200%201%20.224-.099zm9.784%202.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46%203.46%200%200%200-1.4%201.382q-.493.906-.493%202.106%200%201.07.428%201.975.428.89%201.332%201.432.906.526%202.255.526.973%200%201.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954%200-1.497-.444a1.6%201.6%200%200%201-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1%201%200%200%200-.156-.176q-.46-.428-1.316-.428-.986%200-1.494.604-.379.45-.494%201.234zm-27.053%202.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z%22%2F%3E%3Cpath%20fill%3D%22%23fff%22%20d%3D%22m19.63%2011.151-.757-1.71-.345%201.71-1.12%205.644h-1.827L18.083%204.7h.197l3.325%206.533.988%202.19.988-2.19L26.839%204.7h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.93%205.644h-.098l-2.913-5.644zm14.836%205.81q-1.02%200-1.893-.478a3.8%203.8%200%200%201-1.381-1.382q-.51-.906-.51-2.106%200-1.185.444-2.074a3.36%203.36%200%200%201%201.3-1.382q.839-.494%201.974-.494a3.3%203.3%200%200%201%201.234.231%203.3%203.3%200%200%201%20.97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02%201.053a3.17%203.17%200%200%201-1.662.444zm.296-1.482q.938%200%201.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2%202.2%200%200%200-.807-.872%202.1%202.1%200%200%200-1.119-.313q-1.053%200-1.629.692-.575.675-.575%201.76%200%201.103.559%201.795.577.675%201.645.675zm6.521-6.237h1.711v1.4q.906-1.597%202.83-1.597%201.596%200%202.584%201.02.988%201.005.988%202.914%200%201.185-.493%202.09a3.46%203.46%200%200%201-1.316%201.399%203.5%203.5%200%200%201-1.844.493q-.954%200-1.662-.329a2.67%202.67%200%200%201-1.086-.97l.017%205.134h-1.728zm4.048%206.22q1.07%200%201.645-.674.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.592%200-1.12.296-.51.28-.822.823-.296.527-.296%201.234v.115q0%20.708.296%201.267.313.543.823.855.51.296%201.119.297z%22%2F%3E%3Cpath%20fill%3D%22%23e1e3e9%22%20d%3D%22M51.325%204.7h1.86v10.45h3.473v1.646h-5.333zm7.12%204.542h1.843v7.553h-1.843zm.905-1.415a1.16%201.16%200%200%201-.856-.346%201.17%201.17%200%200%201-.346-.856%201.05%201.05%200%200%201%20.346-.79q.346-.329.856-.329.494%200%20.839.33a1.05%201.05%200%200%201%20.345.79%201.16%201.16%200%200%201-.345.855q-.33.346-.84.346zm7.875%209.133a3.17%203.17%200%200%201-1.662-.444q-.723-.46-1.004-1.053l-.033%201.332h-1.71V4.701h1.743v4.657l-.082%201.283q.279-.658%201.086-1.119a3.5%203.5%200%200%201%201.778-.477q1.119%200%201.942.51a3.24%203.24%200%200%201%201.283%201.4q.445.888.444%202.072%200%201.201-.526%202.09a3.5%203.5%200%200%201-1.382%201.366%203.8%203.8%200%200%201-1.876.477zm-.296-1.481q1.069%200%201.645-.675.577-.69.577-1.778%200-1.102-.577-1.776-.56-.691-1.645-.692a2.12%202.12%200%200%200-1.58.659q-.642.641-.642%201.694v.115q0%20.71.296%201.267a2.4%202.4%200%200%200%20.807.872%202.1%202.1%200%200%200%201.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14%202.14%200%200%201%201.349-.46q.527%200%20.724.098l-.247%201.794q-.149-.099-.642-.099-.774%200-1.416.494-.626.493-.626%201.58v3.883h-1.777V9.242zm9.534%207.718q-1.35%200-2.255-.526-.904-.543-1.332-1.432a4.6%204.6%200%200%201-.428-1.975q0-1.2.493-2.106a3.46%203.46%200%200%201%201.4-1.382q.889-.495%202.007-.494%201.744%200%202.584.97.855.956.856%202.7%200%20.444-.05.92h-5.43q.18%201.005.708%201.45.542.443%201.497.443.79%200%201.3-.131a4%204%200%200%200%20.938-.362l.542%201.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728%200-1.991%201.86z%22%2F%3E%3Cpath%20d%3D%22M5.074%2015.948a.484.657%200%200%200-.486.659v1.84a.484.657%200%200%200%20.486.659h4.101a.484.657%200%200%200%20.486-.659v-1.84a.484.657%200%200%200-.486-.659zm3.56%201.16H5.617v.838h3.017z%22%20style%3D%22fill%3A%23fff%3Bfill-rule%3Aevenodd%3Bstroke-width%3A1.03600001%22%2F%3E%3Cg%20style%3D%22stroke-width%3A1.12603545%22%3E%3Cpath%20d%3D%22M-9.408-1.416c-3.833-.025-7.056%202.912-7.08%206.615-.02%203.08%201.653%204.832%203.107%206.268.903.892%201.721%201.74%202.32%202.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87%201.87%200%200%200-.362%201.121l-.011%201.877c-.003.402.104.787.347%201.125.244.338.688.653%201.23.656l4.142.028c.542.003.99-.306%201.238-.641a1.87%201.87%200%200%200%20.363-1.121l.012-1.875a1.87%201.87%200%200%200-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145%201.425-1.983%202.348-2.87%201.473-1.414%203.18-3.149%203.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006%201.1v.002c3.274.02%205.92%202.532%205.9%205.6-.017%202.706-1.39%204.026-2.863%205.44-1.034.994-2.118%202.033-2.814%203.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34%200%200%201-.226.084.34.34%200%200%201-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067%202.7-5.545%205.975-5.523m-.02%202.826c-1.62-.01-2.944%201.315-2.955%202.96-.01%201.646%201.295%202.988%202.916%202.999h.002c1.621.01%202.943-1.316%202.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005%201.1c1.017.006%201.829.83%201.822%201.89s-.83%201.874-1.848%201.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874%201.848-1.868m-2.155%2011.857%204.14.025c.271.002.49.305.487.676l-.013%201.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668%22%20style%3D%22color%3A%23000%3Bfont-style%3Anormal%3Bfont-variant%3Anormal%3Bfont-weight%3A400%3Bfont-stretch%3Anormal%3Bfont-size%3Amedium%3Bline-height%3Anormal%3Bfont-family%3Asans-serif%3Bfont-variant-ligatures%3Anormal%3Bfont-variant-position%3Anormal%3Bfont-variant-caps%3Anormal%3Bfont-variant-numeric%3Anormal%3Bfont-variant-alternates%3Anormal%3Bfont-feature-settings%3Anormal%3Btext-indent%3A0%3Btext-align%3Astart%3Btext-decoration%3Anone%3Btext-decoration-line%3Anone%3Btext-decoration-style%3Asolid%3Btext-decoration-color%3A%23000%3Bletter-spacing%3Anormal%3Bword-spacing%3Anormal%3Btext-transform%3Anone%3Bwriting-mode%3Alr-tb%3Bdirection%3Altr%3Btext-orientation%3Amixed%3Bdominant-baseline%3Aauto%3Bbaseline-shift%3Abaseline%3Btext-anchor%3Astart%3Bwhite-space%3Anormal%3Bshape-padding%3A0%3Bclip-rule%3Aevenodd%3Bdisplay%3Ainline%3Boverflow%3Avisible%3Bvisibility%3Avisible%3Bopacity%3A1%3Bisolation%3Aauto%3Bmix-blend-mode%3Anormal%3Bcolor-interpolation%3AsRGB%3Bcolor-interpolation-filters%3AlinearRGB%3Bsolid-color%3A%23000%3Bsolid-opacity%3A1%3Bvector-effect%3Anone%3Bfill%3A%23000%3Bfill-opacity%3A.4%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-linecap%3Abutt%3Bstroke-linejoin%3Amiter%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-dashoffset%3A0%3Bstroke-opacity%3A1%3Bcolor-rendering%3Aauto%3Bimage-rendering%3Aauto%3Bshape-rendering%3Aauto%3Btext-rendering%3Aauto%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-9.415-.316C-12.69-.338-15.37%202.14-15.39%205.207c-.017%202.716%201.326%204.041%202.78%205.477%201.013%201%202.081%202.055%202.78%203.67l.092.076a.34.34%200%200%200%20.225.086.34.34%200%200%200%20.227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6%201.78-2.64%202.814-3.634%201.473-1.414%202.847-2.733%202.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057%208.784c1.621.011%202.944-1.315%202.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945%201.315-2.955%202.96s1.295%202.989%202.916%203%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23e1e3e9%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-11.594%2015.465c-.27-.002-.492.297-.494.668l-.012%201.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23fff%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl.maplibregl-ctrl-attrib{padding:0 5px;background-color:hsla(0,0%,100%,.5);margin:0}@media screen{.maplibregl-ctrl-attrib.maplibregl-compact{min-height:20px;padding:2px 24px 2px 0;margin:10px;position:relative;background-color:#fff;color:#000;border-radius:12px;box-sizing:content-box}.maplibregl-ctrl-attrib.maplibregl-compact-show{padding:2px 28px 2px 8px;visibility:visible}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact-show,.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact-show{padding:2px 8px 2px 28px;border-radius:12px}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-inner{display:none}.maplibregl-ctrl-attrib-button{display:none;cursor:pointer;position:absolute;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20fill-rule%3D%22evenodd%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M4%2010a6%206%200%201%200%2012%200%206%206%200%201%200-12%200m5-3a1%201%200%201%200%202%200%201%201%200%201%200-2%200m0%203a1%201%200%201%201%202%200v3a1%201%200%201%201-2%200%22%2F%3E%3C%2Fsvg%3E");background-color:hsla(0,0%,100%,.5);width:24px;height:24px;box-sizing:border-box;border-radius:12px;outline:none;top:0;right:0;border:0}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;list-style:none}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button::-webkit-details-marker{display:none}.maplibregl-ctrl-bottom-left .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-top-left .maplibregl-ctrl-attrib-button{left:0}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-inner{display:block}.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-button{background-color:rgba(0,0,0,.05)}.maplibregl-ctrl-bottom-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;right:0}.maplibregl-ctrl-top-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{top:0;right:0}.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{top:0;left:0}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;left:0}}@media screen and (forced-colors:active){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22%23fff%22%20fill-rule%3D%22evenodd%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M4%2010a6%206%200%201%200%2012%200%206%206%200%201%200-12%200m5-3a1%201%200%201%200%202%200%201%201%200%201%200-2%200m0%203a1%201%200%201%201%202%200v3a1%201%200%201%201-2%200%22%2F%3E%3C%2Fsvg%3E")}}@media screen and (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20fill-rule%3D%22evenodd%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M4%2010a6%206%200%201%200%2012%200%206%206%200%201%200-12%200m5-3a1%201%200%201%200%202%200%201%201%200%201%200-2%200m0%203a1%201%200%201%201%202%200v3a1%201%200%201%201-2%200%22%2F%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl-attrib a{color:rgba(0,0,0,.75);text-decoration:none}.maplibregl-ctrl-attrib a:hover{color:inherit;text-decoration:underline}.maplibregl-attrib-empty{display:none}.maplibregl-ctrl-scale{background-color:hsla(0,0%,100%,.75);font-size:10px;white-space:nowrap;border-color:#333;border-style:none solid solid;border-width:medium 2px 2px;padding:0 5px;color:#333;box-sizing:border-box}.maplibregl-popup{position:absolute;top:0;left:0;display:flex;will-change:transform;pointer-events:none}.maplibregl-popup-anchor-top,.maplibregl-popup-anchor-top-left,.maplibregl-popup-anchor-top-right{flex-direction:column}.maplibregl-popup-anchor-bottom,.maplibregl-popup-anchor-bottom-left,.maplibregl-popup-anchor-bottom-right{flex-direction:column-reverse}.maplibregl-popup-anchor-left{flex-direction:row}.maplibregl-popup-anchor-right{flex-direction:row-reverse}.maplibregl-popup-tip{width:0;height:0;border:10px solid transparent;z-index:1}.maplibregl-popup-anchor-top .maplibregl-popup-tip{align-self:center;border-top:none;border-bottom-color:#fff}.maplibregl-popup-anchor-top-left .maplibregl-popup-tip{align-self:flex-start;border-top:none;border-left:none;border-bottom-color:#fff}.maplibregl-popup-anchor-top-right .maplibregl-popup-tip{align-self:flex-end;border-top:none;border-right:none;border-bottom-color:#fff}.maplibregl-popup-anchor-bottom .maplibregl-popup-tip{align-self:center;border-bottom:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip{align-self:flex-start;border-bottom:none;border-left:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip{align-self:flex-end;border-bottom:none;border-right:none;border-top-color:#fff}.maplibregl-popup-anchor-left .maplibregl-popup-tip{align-self:center;border-left:none;border-right-color:#fff}.maplibregl-popup-anchor-right .maplibregl-popup-tip{align-self:center;border-right:none;border-left-color:#fff}[dir=rtl] .maplibregl-popup-anchor-left{flex-direction:row-reverse}[dir=rtl] .maplibregl-popup-anchor-right{flex-direction:row}[dir=rtl] .maplibregl-popup-anchor-top-left .maplibregl-popup-tip{align-self:flex-end}[dir=rtl] .maplibregl-popup-anchor-top-right .maplibregl-popup-tip{align-self:flex-start}[dir=rtl] .maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip{align-self:flex-end}[dir=rtl] .maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip{align-self:flex-start}.maplibregl-popup-close-button{position:absolute;right:0;top:0;border:0;border-radius:0 3px 0 0;cursor:pointer;background-color:transparent}.maplibregl-popup-close-button:hover{background-color:rgba(0,0,0,.05)}.maplibregl-popup-content{position:relative;background:#fff;border-radius:3px;box-shadow:0 1px 2px rgba(0,0,0,.1);padding:15px 10px;pointer-events:auto}.maplibregl-popup-anchor-top-left .maplibregl-popup-content{border-top-left-radius:0}.maplibregl-popup-anchor-top-right .maplibregl-popup-content{border-top-right-radius:0}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-content{border-bottom-left-radius:0}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-content{border-bottom-right-radius:0}.maplibregl-popup-track-pointer{display:none}.maplibregl-popup-track-pointer *{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-map:hover .maplibregl-popup-track-pointer{display:flex}.maplibregl-map:active .maplibregl-popup-track-pointer{display:none}.maplibregl-marker{position:absolute;top:0;left:0;will-change:transform;transition:opacity .2s}.maplibregl-marker-draggable{cursor:grab}.maplibregl-user-location-dot,.maplibregl-user-location-dot:before{background-color:#1da1f2;width:15px;height:15px;border-radius:50%}.maplibregl-user-location-dot:before{content:"";position:absolute;animation:maplibregl-user-location-dot-pulse 2s infinite}.maplibregl-user-location-dot:after{border-radius:50%;border:2px solid #fff;content:"";height:19px;left:-2px;position:absolute;top:-2px;width:19px;box-sizing:border-box;box-shadow:0 0 3px rgba(0,0,0,.35)}@media (prefers-reduced-motion:reduce){.maplibregl-user-location-dot:before{animation:none}}@keyframes maplibregl-user-location-dot-pulse{0%{transform:scale(1);opacity:1}70%{transform:scale(3);opacity:0}to{transform:scale(1);opacity:0}}.maplibregl-user-location-dot-stale{background-color:#aaa}.maplibregl-user-location-dot-stale:after{display:none}.maplibregl-user-location-accuracy-circle{background-color:#1da1f233;width:1px;height:1px;border-radius:100%}.maplibregl-crosshair,.maplibregl-crosshair .maplibregl-interactive,.maplibregl-crosshair .maplibregl-interactive:active{cursor:crosshair}.maplibregl-boxzoom{position:absolute;top:0;left:0;width:0;height:0;background:#fff;border:2px dotted #202020;opacity:.5}.maplibregl-cooperative-gesture-screen{background:rgba(0,0,0,.4);position:absolute;inset:0;display:flex;justify-content:center;align-items:center;color:#fff;padding:1rem;font-size:1.4em;line-height:1.2;opacity:0;pointer-events:none;transition:opacity 1s ease 1s;z-index:99999}.maplibregl-cooperative-gesture-screen.maplibregl-show{opacity:1;transition:opacity .05s}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:none}@media (hover:none),(pointer:coarse){.maplibregl-cooperative-gesture-screen .maplibregl-desktop-message{display:none}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:block}}.maplibregl-pseudo-fullscreen{position:fixed!important;width:100%!important;height:100%!important;top:0!important;left:0!important;z-index:99999}`; document.head.appendChild(e58); } @@ -23934,6 +23934,55 @@ var Plotly = (() => { var FIND_TEX = /([^$]*)([$]+[^$]*[$]+)([^$]*)/; var matchTex = (str) => str ? str.match(FIND_TEX) : null; exports.matchTex = matchTex; + var isPureTex = (str) => { + var tex = matchTex(str); + return !!tex && !tex[1] && !tex[3]; + }; + exports.isPureTex = isPureTex; + function positionMathGroup(_context, svgClass, mathjaxGroup, newSvg, textAnchor, fontSize, width0, height0) { + var g2 = newSvg.select("g"); + var bb2 = g2.node().getBoundingClientRect(); + var w2 = bb2.width; + var h2 = bb2.height; + var w0 = width0 === void 0 ? w2 : width0; + var h0 = height0 === void 0 ? h2 : height0; + if (w2 > w0 || h2 > h0) { + newSvg.style("overflow", "hidden"); + bb2 = newSvg.node().getBoundingClientRect(); + w2 = bb2.width; + h2 = bb2.height; + } + var x2 = +_context.attr("x"); + var y2 = +_context.attr("y"); + var textHeight = fontSize || _context.node().getBoundingClientRect().height; + var dy = -textHeight / 4; + if (svgClass[0] === "y") { + mathjaxGroup.attr({ + transform: "rotate(" + [-90, x2, y2] + ")" + strTranslate(-w2 / 2, dy - h2 / 2) + }); + } else if (svgClass[0] === "l") { + y2 = dy - h2 / 2; + } else if (svgClass[0] === "a" && svgClass.indexOf("atitle") !== 0) { + x2 = 0; + y2 = dy; + } else { + x2 = x2 - w2 * (textAnchor === "middle" ? 0.5 : textAnchor === "end" ? 1 : 0); + y2 = y2 + dy - h2 / 2; + } + newSvg.attr({ + x: x2, + y: y2 + }); + } + function sanitizeMathJaxLinks(newSvg) { + newSvg.selectAll("a").each(function() { + var a2 = d3.select(this); + ["href", "xlink:href"].forEach(function(attrName) { + var href = a2.attr(attrName); + if (href) a2.attr(attrName, sanitizeHref(href) || null); + }); + }); + } exports.convertToTspans = function(_context, gd3, _callback) { var str = _context.text(); var tex = !_context.attr("data-notex") && gd3 && gd3._context.typesetMath && matchTex(str); @@ -23987,6 +24036,7 @@ var Plotly = (() => { "data-math": "Y" }); mathjaxGroup.node().appendChild(newSvg.node()); + sanitizeMathJaxLinks(newSvg); if (_glyphDefs && _glyphDefs.node()) { newSvg.node().insertBefore( _glyphDefs.node().cloneNode(true), @@ -24007,36 +24057,7 @@ var Plotly = (() => { var fill = _context.node().style.fill || "black"; var g2 = newSvg.select("g"); g2.attr({ fill, stroke: fill }); - var bb2 = g2.node().getBoundingClientRect(); - var w2 = bb2.width; - var h2 = bb2.height; - if (w2 > w0 || h2 > h0) { - newSvg.style("overflow", "hidden"); - bb2 = newSvg.node().getBoundingClientRect(); - w2 = bb2.width; - h2 = bb2.height; - } - var x2 = +_context.attr("x"); - var y2 = +_context.attr("y"); - var textHeight = fontSize || _context.node().getBoundingClientRect().height; - var dy = -textHeight / 4; - if (svgClass[0] === "y") { - mathjaxGroup.attr({ - transform: "rotate(" + [-90, x2, y2] + ")" + strTranslate(-w2 / 2, dy - h2 / 2) - }); - } else if (svgClass[0] === "l") { - y2 = dy - h2 / 2; - } else if (svgClass[0] === "a" && svgClass.indexOf("atitle") !== 0) { - x2 = 0; - y2 = dy; - } else { - x2 = x2 - w2 * (textAnchor === "middle" ? 0.5 : textAnchor === "end" ? 1 : 0); - y2 = y2 + dy - h2 / 2; - } - newSvg.attr({ - x: x2, - y: y2 - }); + positionMathGroup(_context, svgClass, mathjaxGroup, newSvg, textAnchor, fontSize, w0, h0); if (_callback) _callback.call(_context, mathjaxGroup); resolve(mathjaxGroup); }); @@ -24044,6 +24065,24 @@ var Plotly = (() => { } else showText(); return _context; }; + exports.repositionMathGroup = function(_context) { + if (_context.empty()) return; + var svgClass = (_context.attr("class") ? _context.attr("class").split(" ")[0] : "text") + "-math"; + var parent = d3.select(_context.node().parentNode); + var mathjaxGroup = parent.select("g." + svgClass + "-group"); + var newSvg = mathjaxGroup.select("svg." + svgClass); + if (mathjaxGroup.empty() || newSvg.empty()) return; + var textAnchor = _context.attr("text-anchor"); + var fontSize = parseInt(_context.node().style.fontSize, 10); + positionMathGroup(_context, svgClass, mathjaxGroup, newSvg, textAnchor, fontSize); + }; + exports.getMathOrTextNode = function(textSel) { + var node = textSel.node(); + if (!node) return null; + var svgClass = (textSel.attr("class") ? textSel.attr("class").split(" ")[0] : "text") + "-math"; + var mathGroup = d3.select(node.parentNode).select("g." + svgClass + "-group"); + return mathGroup.empty() ? node : mathGroup.node(); + }; var LT_MATCH = /(<|<|<)/g; var GT_MATCH = /(>|>|>)/g; function cleanEscapesForTex(s2) { @@ -30809,6 +30848,10 @@ var Plotly = (() => { if (((_b3 = ax2.minor) == null ? void 0 : _b3._tick0Init) === void 0) { mockAx.tick0 = ax2.tick0; } + if (ax2._useTicklabelIndex) { + autoTickRound(mockAx); + ax2.minor._tickround = mockAx._tickround; + } }; function isMultiple(bigger, smaller) { return Math.abs((bigger / smaller + 0.5) % 1 - 0.5) < 1e-3; @@ -30896,24 +30939,32 @@ var Plotly = (() => { function positionPeriodTicks(tickVals, ax2, definedDelta) { for (var i2 = 0; i2 < tickVals.length; i2++) { var v2 = tickVals[i2].value; - var a2 = i2; - var b2 = i2 + 1; - if (i2 < tickVals.length - 1) { - a2 = i2; - b2 = i2 + 1; - } else if (i2 > 0) { - a2 = i2 - 1; - b2 = i2; - } else { - a2 = i2; - b2 = i2; - } - var A3 = tickVals[a2].value; - var B3 = tickVals[b2].value; + var A3, B3; + if (tickVals[i2].periodEndTick != null) { + A3 = tickVals[i2].value; + B3 = tickVals[i2].periodEndTick.value; + } else { + var a2 = i2; + var b2 = i2 + 1; + if (i2 < tickVals.length - 1) { + a2 = i2; + b2 = i2 + 1; + } else if (i2 > 0) { + a2 = i2 - 1; + b2 = i2; + } else { + a2 = i2; + b2 = i2; + } + A3 = tickVals[a2].value; + B3 = tickVals[b2].value; + } var actualDelta = Math.abs(B3 - A3); var delta = definedDelta || actualDelta; var periodLength = 0; - if (delta >= ONEMINYEAR2) { + if (tickVals[i2].periodEndTick != null) { + periodLength = actualDelta; + } else if (delta >= ONEMINYEAR2) { if (actualDelta >= ONEMINYEAR2 && actualDelta <= ONEMAXYEAR2) { periodLength = actualDelta; } else { @@ -30972,6 +31023,7 @@ var Plotly = (() => { var isPeriod = ax2.ticklabelmode === "period"; var isReversed = ax2.range[0] > ax2.range[1]; var ticklabelIndex = !ax2.ticklabelindex || Lib.isArrayOrTypedArray(ax2.ticklabelindex) ? ax2.ticklabelindex : [ax2.ticklabelindex]; + ax2._useTicklabelIndex = ticklabelIndex != null && ticklabelIndex !== 0; var rng = Lib.simpleMap(ax2.range, ax2.r2l, void 0, void 0, opts); var axrev = rng[1] < rng[0]; var minRange = Math.min(rng[0], rng[1]); @@ -30983,7 +31035,7 @@ var Plotly = (() => { var minorTickVals = []; var allTicklabelVals = []; var hasMinor = ax2.minor && (ax2.minor.ticks || ax2.minor.showgrid); - var calcMinor = hasMinor || ticklabelIndex; + var calcMinor = hasMinor || ax2._useTicklabelIndex; for (var major = 1; major >= (calcMinor ? 0 : 1); major--) { var isMinor = !major; if (major) { @@ -31053,7 +31105,7 @@ var Plotly = (() => { x2 = axes.tickIncrement(x2, dtick, !axrev, calendar); } } - if ((major || ticklabelIndex) && isPeriod) { + if ((major || ax2._useTicklabelIndex) && isPeriod) { x2 = axes.tickIncrement(x2, dtick, !axrev, calendar); if (major) majorId--; } @@ -31088,72 +31140,82 @@ var Plotly = (() => { } } } + function findOverlappingTick(minorTick, majorTicks) { + const majorTick = majorTicks.find((majorTick2) => majorTick2.value === minorTick.value); + if (majorTick != null) { + return majorTick; + } + const epsilon3 = 1e7; + for (let i3 = 0; i3 < majorTicks.length; i3++) { + if (epsilon3 + majorTicks[i3].value === epsilon3 + minorTick.value) { + return majorTicks[i3]; + } + } + return null; + } + ; if (!minorTickVals || minorTickVals.length < 3) { - ticklabelIndex = false; + ax2._useTicklabelIndex = false; } else { - var diff = (minorTickVals[2].value - minorTickVals[1].value) * (isReversed ? -1 : 1); + const diff = (minorTickVals[2].value - minorTickVals[1].value) * (isReversed ? -1 : 1); if (!periodCompatibleWithTickformat(diff, ax2.tickformat)) { - ticklabelIndex = false; + ax2._useTicklabelIndex = false; minorTickVals = minorTickVals.slice(1); } } - if (!ticklabelIndex) { + if (!ax2._useTicklabelIndex) { allTicklabelVals = tickVals; } else { - var allTickVals = tickVals.concat(minorTickVals); + const filteredMinors = minorTickVals.filter((minor) => findOverlappingTick(minor, tickVals) == null); + const labelTickValsAscending = tickVals.concat(filteredMinors).sort((a2, b2) => a2.value - b2.value); if (isPeriod && tickVals.length) { - allTickVals = allTickVals.slice(1); - } - allTickVals = allTickVals.sort(function(a2, b2) { - return a2.value - b2.value; - }).filter(function(tick, index, self2) { - return index === 0 || tick.value !== self2[index - 1].value; - }); - var majorTickIndices = allTickVals.map(function(item, index) { - return item.minor === void 0 && !item.skipLabel ? index : null; - }).filter(function(index) { - return index !== null; - }); - majorTickIndices.forEach(function(majorIdx) { - ticklabelIndex.map(function(nextLabelIdx) { - var minorIdx = majorIdx + nextLabelIdx; - if (minorIdx >= 0 && minorIdx < allTickVals.length) { - Lib.pushUnique(allTicklabelVals, allTickVals[minorIdx]); - } - }); - }); - tickVals.forEach(function(tick) { - tick.skipLabel = allTicklabelVals.indexOf(tick) === -1; + tickVals[0].skipLabel = true; + } + tickVals.forEach(function(majorTick) { + if (!majorTick.skipLabel) { + ticklabelIndex.forEach((labelIndex) => { + if (labelIndex < 0) { + const smallerTicks = labelTickValsAscending.filter((minorTick) => minorTick.value <= majorTick.value); + const absLabelIndex = Math.abs(labelIndex); + const labeledTickIndex = smallerTicks.length - absLabelIndex - 1; + if (absLabelIndex < smallerTicks.length) { + const tickToLabel = smallerTicks[labeledTickIndex]; + allTicklabelVals.push(tickToLabel); + if (isPeriod) { + tickToLabel.periodEndTick = smallerTicks[labeledTickIndex + 1]; + } + } + } else { + const largerTicks = labelTickValsAscending.filter((minorTick) => minorTick.value >= majorTick.value); + if (labelIndex < largerTicks.length) { + const tickToLabel = largerTicks[labelIndex]; + allTicklabelVals.push(tickToLabel); + if (isPeriod && largerTicks[labelIndex + 1]) { + tickToLabel.periodEndTick = largerTicks[labelIndex + 1]; + } + } + } + }); + majorTick.skipLabel = true; + } }); + allTicklabelVals.forEach((t6) => t6.skipLabel = false); } if (hasMinor) { - var canOverlap = ax2.minor.ticks === "inside" && ax2.ticks === "outside" || ax2.minor.ticks === "outside" && ax2.ticks === "inside"; - if (!canOverlap) { - var majorValues = tickVals.map(function(d2) { - return d2.value; - }); + var allowedToOverlap = ax2.minor.ticks === "inside" && ax2.ticks === "outside" || ax2.minor.ticks === "outside" && ax2.ticks === "inside"; + if (!allowedToOverlap) { var list = []; for (var k2 = 0; k2 < minorTickVals.length; k2++) { - var T2 = minorTickVals[k2]; - var v2 = T2.value; - if (majorValues.indexOf(v2) !== -1) { - continue; + if (findOverlappingTick(minorTickVals[k2], tickVals) == null) { + list.push(minorTickVals[k2]); } - var found = false; - for (var q3 = 0; !found && q3 < tickVals.length; q3++) { - if ( - // add 10e6 to eliminate problematic digits - 1e7 + tickVals[q3].value === 1e7 + v2 - ) { - found = true; - } - } - if (!found) list.push(T2); } minorTickVals = list; } } - if (isPeriod) positionPeriodTicks(allTicklabelVals, ax2, ax2._definedDelta); + if (isPeriod) { + positionPeriodTicks(allTicklabelVals, ax2, ax2._definedDelta); + } var i2; if (ax2.rangebreaks) { var flip = ax2._id.charAt(0) === "y"; @@ -31216,7 +31278,7 @@ var Plotly = (() => { var _minor = tickVals[i2].minor; var _value = tickVals[i2].value; if (_minor) { - if (ticklabelIndex && allTicklabelVals.indexOf(tickVals[i2]) !== -1) { + if (ax2._useTicklabelIndex && allTicklabelVals.indexOf(tickVals[i2]) !== -1) { t5 = setTickLabel(ax2, tickVals[i2]); } else { t5 = { x: _value }; @@ -31232,7 +31294,7 @@ var Plotly = (() => { ticksOut.push(t5); } } - if (isPeriod && ticklabelIndex && minorTicks.length) { + if (isPeriod && ax2._useTicklabelIndex && minorTicks.length) { minorTicks[0].noTick = true; } ticksOut = ticksOut.concat(minorTicks); @@ -31601,7 +31663,7 @@ var Plotly = (() => { }; } function formatDate(ax2, out, hover, extraPrecision) { - var tr2 = ax2._tickround; + var tr2 = ax2._useTicklabelIndex ? ax2.minor._tickround : ax2._tickround; var fmt = hover && ax2.hoverformat || axes.getTickFormat(ax2); extraPrecision = !fmt && extraPrecision; if (extraPrecision) { @@ -33936,12 +33998,44 @@ var Plotly = (() => { } }); + // src/components/legend/constants.ts + var constants_exports3 = {}; + __export(constants_exports3, { + dfltFillHeight: () => dfltFillHeight, + itemGap: () => itemGap, + itemHeightPad: () => itemHeightPad, + itemMinHeight: () => itemMinHeight, + scrollBarColor: () => scrollBarColor, + scrollBarEnterAttrs: () => scrollBarEnterAttrs, + scrollBarMargin: () => scrollBarMargin, + scrollBarMinHeight: () => scrollBarMinHeight, + scrollBarWidth: () => scrollBarWidth, + titlePad: () => titlePad + }); + var scrollBarWidth, scrollBarMinHeight, scrollBarColor, scrollBarMargin, scrollBarEnterAttrs, titlePad, itemGap, dfltFillHeight, itemMinHeight, itemHeightPad; + var init_constants3 = __esm({ + "src/components/legend/constants.ts"() { + "use strict"; + scrollBarWidth = 6; + scrollBarMinHeight = 20; + scrollBarColor = "#808BA4"; + scrollBarMargin = 4; + scrollBarEnterAttrs = { rx: 20, ry: 3, width: 0, height: 0 }; + titlePad = 2; + itemGap = 5; + dfltFillHeight = 6; + itemMinHeight = 16; + itemHeightPad = 3; + } + }); + // src/components/legend/attributes.js var require_attributes9 = __commonJS({ "src/components/legend/attributes.js"(exports, module) { "use strict"; var fontAttrs = require_font_attributes(); var colorAttrs = require_attributes3(); + var { dfltFillHeight: dfltFillHeight2 } = (init_constants3(), __toCommonJS(constants_exports3)); module.exports = { // not really a 'subplot' attribute container, // but this is the flag we use to denote attributes that @@ -34025,6 +34119,12 @@ var Plotly = (() => { dflt: 30, editType: "legend" }, + itemheight: { + valType: "number", + min: dfltFillHeight2, + dflt: dfltFillHeight2, + editType: "legend" + }, itemclick: { valType: "enumerated", values: ["toggle", "toggleothers", false], @@ -34302,6 +34402,7 @@ var Plotly = (() => { coerce("indentation"); coerce("itemsizing"); coerce("itemwidth"); + coerce("itemheight"); coerce("itemclick"); coerce("itemdoubleclick"); const groupClick = coerce("groupclick"); @@ -34622,31 +34723,6 @@ var Plotly = (() => { } }); - // src/components/legend/constants.ts - var constants_exports3 = {}; - __export(constants_exports3, { - itemGap: () => itemGap, - scrollBarColor: () => scrollBarColor, - scrollBarEnterAttrs: () => scrollBarEnterAttrs, - scrollBarMargin: () => scrollBarMargin, - scrollBarMinHeight: () => scrollBarMinHeight, - scrollBarWidth: () => scrollBarWidth, - titlePad: () => titlePad - }); - var scrollBarWidth, scrollBarMinHeight, scrollBarColor, scrollBarMargin, scrollBarEnterAttrs, titlePad, itemGap; - var init_constants3 = __esm({ - "src/components/legend/constants.ts"() { - "use strict"; - scrollBarWidth = 6; - scrollBarMinHeight = 20; - scrollBarColor = "#808BA4"; - scrollBarMargin = 4; - scrollBarEnterAttrs = { rx: 20, ry: 3, width: 0, height: 0 }; - titlePad = 2; - itemGap = 5; - } - }); - // src/components/legend/get_legend_data.js var require_get_legend_data = __commonJS({ "src/components/legend/get_legend_data.js"(exports, module) { @@ -34891,6 +34967,7 @@ var Plotly = (() => { if (!legend) legend = fullLayout.legend; var constantItemSizing = legend.itemsizing === "constant"; var itemWidth = legend.itemwidth; + var itemHeight = legend.itemheight; var centerPos = (itemWidth + constants2.itemGap * 2) / 2; var centerTransform = strTranslate(centerPos, 0); var boundLineWidth = function(mlw, cont, max, cst) { @@ -34968,7 +35045,9 @@ var Plotly = (() => { var fill = this3.select(".legendfill").selectAll("path").data(showFill || showGradientFill ? [d2] : []); fill.enter().append("path").classed("js-fill", true); fill.exit().remove(); - fill.attr("d", pathStart + "h" + itemWidth + "v6h-" + itemWidth + "z").call(fillStyle); + fill.attr("d", pathStart + "h" + itemWidth + "v" + itemHeight + "h-" + itemWidth + "z").call(fillStyle); + const fillShiftY = showFill || showGradientFill ? (constants2.dfltFillHeight - itemHeight) / 2 : 0; + this3.selectAll("g.legendfill, g.legendlines, g.legendsymbols").attr("transform", fillShiftY ? strTranslate(0, fillShiftY) : null); if (showLine || showGradientLine) { var lw2 = boundLineWidth(void 0, trace.line, MAX_LINE_WIDTH, CST_LINE_WIDTH); tMod = Lib.minExtend(trace, { line: { width: lw2 } }); @@ -35128,14 +35207,18 @@ var Plotly = (() => { var fillColor = mcc || d0.mc || marker.color; var markerPattern = marker.pattern; var pAttr = Drawing.getPatternAttr; - var patternShape = markerPattern && (pAttr(markerPattern.shape, 0, "") || pAttr(markerPattern.path, 0, "")); + let patternIndex = 0; + if (legend._inHover && d0._distinct && d0.index != null) { + patternIndex = d0.index; + } + const patternShape = markerPattern && (pAttr(markerPattern.shape, patternIndex, "") || pAttr(markerPattern.path, patternIndex, "")); if (patternShape) { - var patternBGColor = pAttr(markerPattern.bgcolor, 0, null); - var patternFGColor = pAttr(markerPattern.fgcolor, 0, null); + const patternBGColor = pAttr(markerPattern.bgcolor, patternIndex, null); + const patternFGColor = pAttr(markerPattern.fgcolor, patternIndex, null); var patternFGOpacity = markerPattern.fgopacity; - var patternSize = dimAttr(markerPattern.size, 8, 10); - var patternSolidity = dimAttr(markerPattern.solidity, 0.5, 1); - var patternID = "legend-" + trace.uid; + const patternSize = legend._inHover ? dimAttr(pAttr(markerPattern.size, patternIndex, 8), 8, 10) : dimAttr(markerPattern.size, 8, 10); + const patternSolidity = legend._inHover ? dimAttr(pAttr(markerPattern.solidity, patternIndex, 0.5), 0.5, 1) : dimAttr(markerPattern.solidity, 0.5, 1); + const patternID = legend._inHover ? `hover-${trace.uid}-${patternIndex}` : `legend-${trace.uid}`; p2.call( Drawing.pattern, "legend", @@ -35957,7 +36040,7 @@ var Plotly = (() => { }); } function textLayout(s2, g2, gd3, legendObj, aTitle) { - if (legendObj._inHover) s2.attr("data-notex", true); + if (legendObj._inHover) s2.attr("data-notex", svgTextUtils.isPureTex(s2.text()) ? null : true); svgTextUtils.convertToTspans(s2, gd3, function() { computeTextDimensions(g2, gd3, legendObj, aTitle); }); @@ -36032,7 +36115,8 @@ var Plotly = (() => { legendObj._titleHeight = height; } else { legendItem.lineHeight = lineHeight; - legendItem.height = Math.max(height, 16) + 3; + const fillItemHeight = constants2.itemMinHeight + legendObj.itemheight - constants2.dfltFillHeight; + legendItem.height = Math.max(height, constants2.itemMinHeight, fillItemHeight) + constants2.itemHeightPad; legendItem.width = width; } } @@ -36224,6 +36308,13 @@ var Plotly = (() => { } Drawing.setRect(traceToggle, 0, -h2 / 2, w2, h2); }); + if (legendObj._inHover) { + const textRight = legendObj._width - bw22 - itemGap2 - titleSize[0]; + traces.each(function(d2) { + if (d2[0].textAlign !== "right") return; + d3.select(this).select("." + legendId + "text").attr("text-anchor", "end").call(svgTextUtils.positionText, textRight); + }); + } var titleEl = scrollBox.select("." + legendId + "titletext"); if (titleEl.node()) { horizontalAlignTitle(titleEl, legendObj, bw2); @@ -36427,28 +36518,47 @@ var Plotly = (() => { outerContainer: opts.outerContainer || opts.container }); var hoverLabel = hoverText.hoverLabels; - var tooltipSpacing = 5; - var lastBottomY = 0; - var anchor = 0; - hoverLabel.sort(function(a2, b2) { - return a2.y0 - b2.y0; - }).each(function(d2, i2) { - var topY = d2.y0 - d2.by / 2; - if (topY - tooltipSpacing < lastBottomY) { - d2.offset = lastBottomY - topY + tooltipSpacing; - } else { - d2.offset = 0; - } - lastBottomY = topY + d2.by + d2.offset; - if (i2 === opts.anchorIndex || 0) anchor = d2.offset; - }).each(function(d2) { - d2.offset -= anchor; - }); + function fixVerticalOverlap() { + var tooltipSpacing = 5; + var lastBottomY = 0; + var anchor = 0; + hoverLabel.sort(function(a2, b2) { + return a2.y0 - b2.y0; + }).each(function(d2, i2) { + var topY = d2.y0 - d2.by / 2; + if (topY - tooltipSpacing < lastBottomY) { + d2.offset = lastBottomY - topY + tooltipSpacing; + } else { + d2.offset = 0; + } + lastBottomY = topY + d2.by + d2.offset; + if (i2 === opts.anchorIndex || 0) anchor = d2.offset; + }).each(function(d2) { + d2.offset -= anchor; + }); + } var scaleX = gd3._fullLayout._invScaleX; var scaleY = gd3._fullLayout._invScaleY; + fixVerticalOverlap(); alignHoverText(hoverLabel, rotateLabels, scaleX, scaleY); + if (hoverText.mathjaxPromise) { + hoverText.mathjaxPromise.then(function() { + fixVerticalOverlap(); + alignHoverText(hoverLabel, rotateLabels, scaleX, scaleY); + hoverLabel.each(function() { + var g2 = d3.select(this); + svgTextUtils.repositionMathGroup(g2.select("text.nums")); + svgTextUtils.repositionMathGroup(g2.select("text.name")); + }); + }); + } return multiHover ? hoverLabel : hoverLabel.node(); }; + function canSpikeToNonHoveredPoint(xa3, ya3) { + return Boolean( + (xa3 == null ? void 0 : xa3.showspikes) && xa3.spikesnap !== "hovered data" || (ya3 == null ? void 0 : ya3.showspikes) && ya3.spikesnap !== "hovered data" + ); + } function _hover(gd3, evt, subplot, noHoverEvent, eventTarget) { if (!subplot) subplot = "xy"; if (typeof subplot === "string") { @@ -36461,6 +36571,7 @@ var Plotly = (() => { var plots = fullLayout._plots || []; var plotinfo = plots[subplot]; var hasCartesian = fullLayout._has("cartesian"); + var hasTernary = fullLayout._has("ternary"); var hovermode = evt.hovermode || fullLayout.hovermode; var hovermodeHasX = (hovermode || "").charAt(0) === "x"; var hovermodeHasY = (hovermode || "").charAt(0) === "y"; @@ -36523,6 +36634,7 @@ var Plotly = (() => { hLinePoint: null, vLinePoint: null }; + const ternarySpikePoints = {}; var hasOneHorizontalTrace = false; if (Array.isArray(evt)) { hovermode = "array"; @@ -36719,42 +36831,56 @@ var Plotly = (() => { hoverData.splice(0, closedataPreviousLength); distance = hoverData[0].distance; } - if (hasCartesian && spikedistance !== 0) { - if (hoverData.length === 0) { - pointData.distance = spikedistance; - pointData.index = false; - var closestPoints = trace._module.hoverPoints(pointData, xval, yval, "closest", { - hoverLayer: fullLayout._hoverlayer - }); - if (closestPoints) { - closestPoints = closestPoints.filter(function(point) { - return point.spikeDistance <= spikedistance; - }); + if (Registry.traceIs(trace, "ternary") && spikedistance !== 0) { + const ternary = pointData.subplot; + const needsClosestPoint = ["aaxis", "baxis", "caxis"].some((name7) => ternary[name7].showspikes && ternary[name7].spikesnap !== "hovered data"); + if (needsClosestPoint) { + let spikePoint = newPoints == null ? void 0 : newPoints[0]; + if (!Number.isFinite(spikePoint == null ? void 0 : spikePoint.spikeDistance)) { + const spikeData = Lib.extendFlat({}, pointData, { distance: spikedistance, index: false }); + const closestPoints2 = trace._module.hoverPoints(spikeData, xval, yval, "closest"); + spikePoint = closestPoints2 && closestPoints2[0]; } - if (closestPoints && closestPoints.length) { - var tmpPoint; - var closestVPoints = closestPoints.filter(function(point) { - return point.xa.showspikes && point.xa.spikesnap !== "hovered data"; - }); - if (closestVPoints.length) { - var closestVPt = closestVPoints[0]; - if (isNumeric2(closestVPt.x0) && isNumeric2(closestVPt.y0)) { - tmpPoint = fillSpikePoint(closestVPt); - if (!spikePoints.vLinePoint || spikePoints.vLinePoint.spikeDistance > tmpPoint.spikeDistance) { - spikePoints.vLinePoint = tmpPoint; - } + const previousSpikePoint = ternarySpikePoints[subplotId]; + if (spikePoint && spikePoint.index !== void 0 && spikePoint.index !== false && spikePoint.spikeDistance <= spikedistance && (!previousSpikePoint || spikePoint.spikeDistance < previousSpikePoint.spikeDistance)) { + ternarySpikePoints[subplotId] = spikePoint; + } + } + } + if (hasCartesian && hoverData.length === 0 && spikedistance !== 0 && canSpikeToNonHoveredPoint(pointData.xa, pointData.ya)) { + pointData.distance = spikedistance; + pointData.index = false; + var closestPoints = trace._module.hoverPoints(pointData, xval, yval, "closest", { + hoverLayer: fullLayout._hoverlayer + }); + if (closestPoints) { + closestPoints = closestPoints.filter(function(point) { + return point.spikeDistance <= spikedistance; + }); + } + if (closestPoints == null ? void 0 : closestPoints.length) { + var tmpPoint; + var closestVPoints = closestPoints.filter(function(point) { + return point.xa.showspikes && point.xa.spikesnap !== "hovered data"; + }); + if (closestVPoints.length) { + var closestVPt = closestVPoints[0]; + if (isNumeric2(closestVPt.x0) && isNumeric2(closestVPt.y0)) { + tmpPoint = fillSpikePoint(closestVPt); + if (!spikePoints.vLinePoint || spikePoints.vLinePoint.spikeDistance > tmpPoint.spikeDistance) { + spikePoints.vLinePoint = tmpPoint; } } - var closestHPoints = closestPoints.filter(function(point) { - return point.ya.showspikes && point.ya.spikesnap !== "hovered data"; - }); - if (closestHPoints.length) { - var closestHPt = closestHPoints[0]; - if (isNumeric2(closestHPt.x0) && isNumeric2(closestHPt.y0)) { - tmpPoint = fillSpikePoint(closestHPt); - if (!spikePoints.hLinePoint || spikePoints.hLinePoint.spikeDistance > tmpPoint.spikeDistance) { - spikePoints.hLinePoint = tmpPoint; - } + } + var closestHPoints = closestPoints.filter(function(point) { + return point.ya.showspikes && point.ya.spikesnap !== "hovered data"; + }); + if (closestHPoints.length) { + var closestHPt = closestHPoints[0]; + if (isNumeric2(closestHPt.x0) && isNumeric2(closestHPt.y0)) { + tmpPoint = fillSpikePoint(closestHPt); + if (!spikePoints.hLinePoint || spikePoints.hLinePoint.spikeDistance > tmpPoint.spikeDistance) { + spikePoints.hLinePoint = tmpPoint; } } } @@ -36763,6 +36889,18 @@ var Plotly = (() => { } } findHoverPoints(); + function updateTernarySpikelines() { + fullLayout._hoverlayer.selectAll(".ternary-spikes").remove(); + if (spikedistance === 0) return; + for (let i3 = 0; i3 < subplots.length; i3++) { + const id5 = subplots[i3]; + const ternary = fullLayout[id5] && fullLayout[id5]._subplot; + if (ternary && ternary.drawSpikelines) { + const point = hoverData.find((d2) => d2.trace.subplot === id5 && d2.index !== void 0 && d2.index !== false && d2.spikeDistance <= spikedistance); + ternary.drawSpikelines(point, ternarySpikePoints[id5], xvalArray && xvalArray[i3], yvalArray && yvalArray[i3]); + } + } + } function selectClosestPoint(pointsData, spikedistance2, spikeOnWinning2) { var resultPoint = null; var minDistance = Infinity; @@ -36852,6 +36990,7 @@ var Plotly = (() => { emitHover([]); gd3._hoverAnywhereActive = true; } + if (hasTernary) updateTernarySpikelines(); return result; } if (hasCartesian) { @@ -36859,6 +36998,7 @@ var Plotly = (() => { createSpikelines(gd3, spikePoints, spikelineOpts); } } + if (hasTernary) updateTernarySpikelines(); if (helpers.isXYhover(_mode) && hoverData[0].length !== 0 && hoverData[0].trace.type !== "splom") { var winningPoint = hoverData[0]; if (multipleHoverPoints[winningPoint.trace.type]) { @@ -36948,6 +37088,18 @@ var Plotly = (() => { if (!helpers.isUnifiedHover(hovermode)) { hoverAvoidOverlaps(hoverLabels, rotateLabels, fullLayout, hoverText.commonLabelBoundingBox); alignHoverText(hoverLabels, rotateLabels, fullLayout._invScaleX, fullLayout._invScaleY); + if (hoverText.mathjaxPromise) { + hoverText.mathjaxPromise.then(function() { + if (gd3._hoverdata !== newhoverdata) return; + hoverAvoidOverlaps(hoverLabels, rotateLabels, fullLayout, hoverText.commonLabelBoundingBox); + alignHoverText(hoverLabels, rotateLabels, fullLayout._invScaleX, fullLayout._invScaleY); + hoverLabels.each(function() { + var g2 = d3.select(this); + svgTextUtils.repositionMathGroup(g2.select("text.nums")); + svgTextUtils.repositionMathGroup(g2.select("text.name")); + }); + }); + } } if (eventTarget && eventTarget.tagName) { var hasClickToShow = Registry.getComponentMethod("annotations", "hasClickToShow")(gd3, newhoverdata); @@ -36981,6 +37133,9 @@ var Plotly = (() => { return [d2.trace.index, d2.index, d2.x0, d2.y0, d2.name, d2.attr, d2.xa ? d2.xa._id : "", d2.ya ? d2.ya._id : ""].join(","); } var EXTRA_STRING_REGEX = /([\s\S]*)<\/extra>/; + function getHoverTextBBox(gd3, textSel) { + return getBoundingClientRect(gd3, svgTextUtils.getMathOrTextNode(textSel)); + } function createHoverText(hoverData, opts) { var gd3 = opts.gd; var fullLayout = gd3._fullLayout; @@ -36991,6 +37146,7 @@ var Plotly = (() => { var outerContainer = opts.outerContainer; var commonLabelOpts = opts.commonLabelOpts || {}; if (hoverData.length === 0) return [[]]; + var mathjaxPromises = []; var fontFamily = opts.fontFamily || constants2.HOVERFONT; var fontSize = opts.fontSize || constants2.HOVERFONTSIZE; var fontWeight = opts.fontWeight || fullLayout.font.weight; @@ -37046,9 +37202,7 @@ var Plotly = (() => { var lpath = Lib.ensureSingle(label, "path", "", function(s2) { s2.style({ "stroke-width": "1px" }); }); - var ltext = Lib.ensureSingle(label, "text", "", function(s2) { - s2.attr("data-notex", 1); - }); + var ltext = Lib.ensureSingle(label, "text", ""); var commonBgColor = commonLabelOpts.bgcolor || Color2.defaultLine; var commonStroke = commonLabelOpts.bordercolor || Color2.contrast(commonBgColor); var contrastColor = Color2.contrast(commonBgColor); @@ -37068,100 +37222,122 @@ var Plotly = (() => { fill: commonBgColor, stroke: commonStroke }); - ltext.text(t02).call(Drawing.font, commonLabelFont).call(svgTextUtils.positionText, 0, 0).call(svgTextUtils.convertToTspans, gd3); - label.attr("transform", ""); - var tbb2 = getBoundingClientRect(gd3, ltext.node()); - var lx3, ly2; - if (hovermode === "x") { - var topsign = xa3.side === "top" ? "-" : ""; - ltext.attr("text-anchor", "middle").call( - svgTextUtils.positionText, - 0, - xa3.side === "top" ? outerTop - tbb2.bottom - HOVERARROWSIZE2 - HOVERTEXTPAD2 : outerTop - tbb2.top + HOVERARROWSIZE2 + HOVERTEXTPAD2 - ); - lx3 = xa3._offset + (c0.x0 + c0.x1) / 2; - ly2 = ya3._offset + (xa3.side === "top" ? 0 : ya3._length); - var halfWidth = tbb2.width / 2 + HOVERTEXTPAD2; - var tooltipMidX = lx3; - if (lx3 < halfWidth) { - tooltipMidX = halfWidth; - } else if (lx3 > fullLayout.width - halfWidth) { - tooltipMidX = fullLayout.width - halfWidth; - } - lpath.attr( - "d", - "M" + (lx3 - tooltipMidX) + ",0L" + (lx3 - tooltipMidX + HOVERARROWSIZE2) + "," + topsign + HOVERARROWSIZE2 + "H" + halfWidth + "v" + topsign + (HOVERTEXTPAD2 * 2 + tbb2.height) + "H" + -halfWidth + "V" + topsign + HOVERARROWSIZE2 + "H" + (lx3 - tooltipMidX - HOVERARROWSIZE2) + "Z" - ); - lx3 = tooltipMidX; - commonLabelRect.minX = lx3 - halfWidth; - commonLabelRect.maxX = lx3 + halfWidth; - if (xa3.side === "top") { - commonLabelRect.minY = ly2 - (HOVERTEXTPAD2 * 2 + tbb2.height); - commonLabelRect.maxY = ly2 - HOVERTEXTPAD2; - } else { - commonLabelRect.minY = ly2 + HOVERTEXTPAD2; - commonLabelRect.maxY = ly2 + (HOVERTEXTPAD2 * 2 + tbb2.height); - } - } else { - var anchor; - var sgn; - var leftsign; - if (ya3.side === "right") { - anchor = "start"; - sgn = 1; - leftsign = ""; - lx3 = xa3._offset + xa3._length; - } else { - anchor = "end"; - sgn = -1; - leftsign = "-"; - lx3 = xa3._offset; - } - ly2 = ya3._offset + (c0.y0 + c0.y1) / 2; - ltext.attr("text-anchor", anchor); - lpath.attr( - "d", - "M0,0L" + leftsign + HOVERARROWSIZE2 + "," + HOVERARROWSIZE2 + "V" + (HOVERTEXTPAD2 + tbb2.height / 2) + "h" + leftsign + (HOVERTEXTPAD2 * 2 + tbb2.width) + "V-" + (HOVERTEXTPAD2 + tbb2.height / 2) + "H" + leftsign + HOVERARROWSIZE2 + "V-" + HOVERARROWSIZE2 + "Z" + var commonLabelTex = svgTextUtils.isPureTex(String(t02)); + var onCommonLabelReady; + if (commonLabelTex) { + mathjaxPromises.push( + new Promise(function(resolve) { + onCommonLabelReady = function() { + if (!ltext.node().parentNode) { + resolve(); + return; + } + positionCommonLabel(); + svgTextUtils.repositionMathGroup(ltext); + resolve(); + }; + }) ); - commonLabelRect.minY = ly2 - (HOVERTEXTPAD2 + tbb2.height / 2); - commonLabelRect.maxY = ly2 + (HOVERTEXTPAD2 + tbb2.height / 2); - if (ya3.side === "right") { - commonLabelRect.minX = lx3 + HOVERARROWSIZE2; - commonLabelRect.maxX = lx3 + HOVERARROWSIZE2 + (HOVERTEXTPAD2 * 2 + tbb2.width); - } else { - commonLabelRect.minX = lx3 - HOVERARROWSIZE2 - (HOVERTEXTPAD2 * 2 + tbb2.width); - commonLabelRect.maxX = lx3 - HOVERARROWSIZE2; - } - var halfHeight = tbb2.height / 2; - var lty = outerTop - tbb2.top - halfHeight; - var clipId = "clip" + fullLayout._uid + "commonlabel" + ya3._id; - var clipPath; - if (lx3 < tbb2.width + 2 * HOVERTEXTPAD2 + HOVERARROWSIZE2) { - clipPath = "M-" + (HOVERARROWSIZE2 + HOVERTEXTPAD2) + "-" + halfHeight + "h-" + (tbb2.width - HOVERTEXTPAD2) + "V" + halfHeight + "h" + (tbb2.width - HOVERTEXTPAD2) + "Z"; - var ltx = tbb2.width - lx3 + HOVERTEXTPAD2; - svgTextUtils.positionText(ltext, ltx, lty); - if (anchor === "end") { - ltext.selectAll("tspan").each(function() { - var s2 = d3.select(this); - var dummy = Drawing.tester.append("text").text(s2.text()).call(Drawing.font, commonLabelFont); - var dummyBB = getBoundingClientRect(gd3, dummy.node()); - if (Math.round(dummyBB.width) < Math.round(tbb2.width)) { - s2.attr("x", ltx - dummyBB.width); - } - dummy.remove(); - }); + } + ltext.text(t02).call(Drawing.font, commonLabelFont).attr("data-notex", commonLabelTex ? null : 1).call(svgTextUtils.positionText, 0, 0).call(svgTextUtils.convertToTspans, gd3, onCommonLabelReady); + positionCommonLabel(); + function positionCommonLabel() { + label.attr("transform", ""); + svgTextUtils.positionText(ltext, 0, 0); + svgTextUtils.repositionMathGroup(ltext); + var tbb2 = getHoverTextBBox(gd3, ltext); + var lx3, ly2; + if (hovermode === "x") { + var topsign = xa3.side === "top" ? "-" : ""; + ltext.attr("text-anchor", "middle").call( + svgTextUtils.positionText, + 0, + xa3.side === "top" ? outerTop - tbb2.bottom - HOVERARROWSIZE2 - HOVERTEXTPAD2 : outerTop - tbb2.top + HOVERARROWSIZE2 + HOVERTEXTPAD2 + ); + lx3 = xa3._offset + (c0.x0 + c0.x1) / 2; + ly2 = ya3._offset + (xa3.side === "top" ? 0 : ya3._length); + var halfWidth = tbb2.width / 2 + HOVERTEXTPAD2; + var tooltipMidX = lx3; + if (lx3 < halfWidth) { + tooltipMidX = halfWidth; + } else if (lx3 > fullLayout.width - halfWidth) { + tooltipMidX = fullLayout.width - halfWidth; + } + lpath.attr( + "d", + "M" + (lx3 - tooltipMidX) + ",0L" + (lx3 - tooltipMidX + HOVERARROWSIZE2) + "," + topsign + HOVERARROWSIZE2 + "H" + halfWidth + "v" + topsign + (HOVERTEXTPAD2 * 2 + tbb2.height) + "H" + -halfWidth + "V" + topsign + HOVERARROWSIZE2 + "H" + (lx3 - tooltipMidX - HOVERARROWSIZE2) + "Z" + ); + lx3 = tooltipMidX; + commonLabelRect.minX = lx3 - halfWidth; + commonLabelRect.maxX = lx3 + halfWidth; + if (xa3.side === "top") { + commonLabelRect.minY = ly2 - (HOVERTEXTPAD2 * 2 + tbb2.height); + commonLabelRect.maxY = ly2 - HOVERTEXTPAD2; + } else { + commonLabelRect.minY = ly2 + HOVERTEXTPAD2; + commonLabelRect.maxY = ly2 + (HOVERTEXTPAD2 * 2 + tbb2.height); } } else { - svgTextUtils.positionText(ltext, sgn * (HOVERTEXTPAD2 + HOVERARROWSIZE2), lty); - clipPath = null; + var anchor; + var sgn; + var leftsign; + if (ya3.side === "right") { + anchor = "start"; + sgn = 1; + leftsign = ""; + lx3 = xa3._offset + xa3._length; + } else { + anchor = "end"; + sgn = -1; + leftsign = "-"; + lx3 = xa3._offset; + } + ly2 = ya3._offset + (c0.y0 + c0.y1) / 2; + ltext.attr("text-anchor", anchor); + lpath.attr( + "d", + "M0,0L" + leftsign + HOVERARROWSIZE2 + "," + HOVERARROWSIZE2 + "V" + (HOVERTEXTPAD2 + tbb2.height / 2) + "h" + leftsign + (HOVERTEXTPAD2 * 2 + tbb2.width) + "V-" + (HOVERTEXTPAD2 + tbb2.height / 2) + "H" + leftsign + HOVERARROWSIZE2 + "V-" + HOVERARROWSIZE2 + "Z" + ); + commonLabelRect.minY = ly2 - (HOVERTEXTPAD2 + tbb2.height / 2); + commonLabelRect.maxY = ly2 + (HOVERTEXTPAD2 + tbb2.height / 2); + if (ya3.side === "right") { + commonLabelRect.minX = lx3 + HOVERARROWSIZE2; + commonLabelRect.maxX = lx3 + HOVERARROWSIZE2 + (HOVERTEXTPAD2 * 2 + tbb2.width); + } else { + commonLabelRect.minX = lx3 - HOVERARROWSIZE2 - (HOVERTEXTPAD2 * 2 + tbb2.width); + commonLabelRect.maxX = lx3 - HOVERARROWSIZE2; + } + var halfHeight = tbb2.height / 2; + var lty = outerTop - tbb2.top - halfHeight; + var clipId = "clip" + fullLayout._uid + "commonlabel" + ya3._id; + var clipPath; + if (lx3 < tbb2.width + 2 * HOVERTEXTPAD2 + HOVERARROWSIZE2) { + clipPath = "M-" + (HOVERARROWSIZE2 + HOVERTEXTPAD2) + "-" + halfHeight + "h-" + (tbb2.width - HOVERTEXTPAD2) + "V" + halfHeight + "h" + (tbb2.width - HOVERTEXTPAD2) + "Z"; + var ltx = tbb2.width - lx3 + HOVERTEXTPAD2; + svgTextUtils.positionText(ltext, ltx, lty); + if (anchor === "end") { + ltext.selectAll("tspan").each(function() { + var s2 = d3.select(this); + var dummy = Drawing.tester.append("text").text(s2.text()).call(Drawing.font, commonLabelFont); + var dummyBB = getBoundingClientRect(gd3, dummy.node()); + if (Math.round(dummyBB.width) < Math.round(tbb2.width)) { + s2.attr("x", ltx - dummyBB.width); + } + dummy.remove(); + }); + } + } else { + svgTextUtils.positionText(ltext, sgn * (HOVERTEXTPAD2 + HOVERARROWSIZE2), lty); + clipPath = null; + } + var textClip = fullLayout._topclips.selectAll("#" + clipId).data(clipPath ? [0] : []); + textClip.enter().append("clipPath").attr("id", clipId).append("path"); + textClip.exit().remove(); + textClip.select("path").attr("d", clipPath); + Drawing.setClipUrl(ltext, clipPath ? clipId : null, gd3); } - var textClip = fullLayout._topclips.selectAll("#" + clipId).data(clipPath ? [0] : []); - textClip.enter().append("clipPath").attr("id", clipId).append("path"); - textClip.exit().remove(); - textClip.select("path").attr("d", clipPath); - Drawing.setClipUrl(ltext, clipPath ? clipId : null, gd3); + label.attr("transform", strTranslate(lx3, ly2)); } - label.attr("transform", strTranslate(lx3, ly2)); }); if (helpers.isUnifiedHover(hovermode)) { container.selectAll("g.hovertext").remove(); @@ -37368,6 +37544,23 @@ var Plotly = (() => { var texts2 = getHoverLabelText(d2, showCommonLabel, hovermode, fullLayout, t02, g2); var text2 = texts2[0]; var name8 = texts2[1]; + var hasName = !!(name8 && name8 !== text2); + var numsTex = svgTextUtils.isPureTex(text2); + var nameTex = hasName && svgTextUtils.isPureTex(name8); + var pendingLabelParts = (numsTex ? 1 : 0) + (nameTex ? 1 : 0); + var onLabelPartReady; + if (pendingLabelParts) { + mathjaxPromises.push( + new Promise(function(resolve) { + onLabelPartReady = function() { + if (--pendingLabelParts === 0) { + if (g2.node().parentNode) finalizePosition(); + resolve(); + } + }; + }) + ); + } var tx2 = g2.select("text.nums").call(Drawing.font, { family: d2.fontFamily || fontFamily, size: d2.fontSize || fontSize, @@ -37378,11 +37571,9 @@ var Plotly = (() => { textcase: d2.fontTextcase || fontTextcase, lineposition: d2.fontLineposition || fontLineposition, shadow: d2.fontShadow || fontShadow - }).text(text2).attr("data-notex", 1).call(svgTextUtils.positionText, 0, 0).call(svgTextUtils.convertToTspans, gd3); + }).text(text2).attr("data-notex", numsTex ? null : 1).call(svgTextUtils.positionText, 0, 0).call(svgTextUtils.convertToTspans, gd3, numsTex ? onLabelPartReady : void 0); var tx22 = g2.select("text.name"); - var tx2width = 0; - var tx2height = 0; - if (name8 && name8 !== text2) { + if (hasName) { tx22.call(Drawing.font, { family: d2.fontFamily || fontFamily, size: d2.fontSize || fontSize, @@ -37393,75 +37584,90 @@ var Plotly = (() => { textcase: d2.fontTextcase || fontTextcase, lineposition: d2.fontLineposition || fontLineposition, shadow: d2.fontShadow || fontShadow - }).text(name8).attr("data-notex", 1).call(svgTextUtils.positionText, 0, 0).call(svgTextUtils.convertToTspans, gd3); - var t2bb = getBoundingClientRect(gd3, tx22.node()); - tx2width = t2bb.width + 2 * HOVERTEXTPAD2; - tx2height = t2bb.height + 2 * HOVERTEXTPAD2; + }).text(name8).attr("data-notex", nameTex ? null : 1).call(svgTextUtils.positionText, 0, 0).call(svgTextUtils.convertToTspans, gd3, nameTex ? onLabelPartReady : void 0); } else { tx22.remove(); g2.select("rect").remove(); } - g2.select("path").style({ - fill: numsColor, - stroke: contrastColor - }); - var htx = d2.xa._offset + (d2.x0 + d2.x1) / 2; - var hty = d2.ya._offset + (d2.y0 + d2.y1) / 2; - var dx2 = Math.abs(d2.x1 - d2.x0); - var dy = Math.abs(d2.y1 - d2.y0); - var tbb2 = getBoundingClientRect(gd3, tx2.node()); - var tbbWidth = tbb2.width / fullLayout._invScaleX; - var tbbHeight = tbb2.height / fullLayout._invScaleY; - d2.ty0 = (outerTop - tbb2.top) / fullLayout._invScaleY; - d2.bx = tbbWidth + 2 * HOVERTEXTPAD2; - d2.by = Math.max(tbbHeight + 2 * HOVERTEXTPAD2, tx2height); - d2.anchor = "start"; - d2.txwidth = tbbWidth; - d2.tx2width = tx2width; - d2.offset = 0; - var txTotalWidth = (tbbWidth + HOVERARROWSIZE2 + HOVERTEXTPAD2 + tx2width) * fullLayout._invScaleX; - var anchorStartOK, anchorEndOK; - if (rotateLabels) { - d2.pos = htx; - anchorStartOK = hty + dy / 2 + txTotalWidth <= outerHeight; - anchorEndOK = hty - dy / 2 - txTotalWidth >= 0; - if ((d2.idealAlign === "top" || !anchorStartOK) && anchorEndOK) { - hty -= dy / 2; - d2.anchor = "end"; - } else if (anchorStartOK) { - hty += dy / 2; - d2.anchor = "start"; - } else { - d2.anchor = "middle"; - } - d2.crossPos = hty; - } else { - d2.pos = hty; - anchorStartOK = htx + dx2 / 2 + txTotalWidth <= outerWidth; - anchorEndOK = htx - dx2 / 2 - txTotalWidth >= 0; - if ((d2.idealAlign === "left" || !anchorStartOK) && anchorEndOK) { - htx -= dx2 / 2; - d2.anchor = "end"; - } else if (anchorStartOK) { - htx += dx2 / 2; - d2.anchor = "start"; + finalizePosition(); + function finalizePosition() { + g2.attr("transform", ""); + tx2.call(svgTextUtils.positionText, 0, 0); + svgTextUtils.repositionMathGroup(tx2); + if (hasName) { + tx22.call(svgTextUtils.positionText, 0, 0); + svgTextUtils.repositionMathGroup(tx22); + } + g2.select("path").style({ + fill: numsColor, + stroke: contrastColor + }); + var htx = d2.xa._offset + (d2.x0 + d2.x1) / 2; + var hty = d2.ya._offset + (d2.y0 + d2.y1) / 2; + var dx2 = Math.abs(d2.x1 - d2.x0); + var dy = Math.abs(d2.y1 - d2.y0); + var tx2width = 0; + var tx2height = 0; + if (hasName) { + var t2bb = getHoverTextBBox(gd3, tx22); + tx2width = t2bb.width + 2 * HOVERTEXTPAD2; + tx2height = t2bb.height + 2 * HOVERTEXTPAD2; + } + var tbb2 = getHoverTextBBox(gd3, tx2); + var tbbWidth = tbb2.width / fullLayout._invScaleX; + var tbbHeight = tbb2.height / fullLayout._invScaleY; + d2.ty0 = (outerTop - tbb2.top) / fullLayout._invScaleY; + d2.bx = tbbWidth + 2 * HOVERTEXTPAD2; + d2.by = Math.max(tbbHeight + 2 * HOVERTEXTPAD2, tx2height); + d2.anchor = "start"; + d2.txwidth = tbbWidth; + d2.tx2width = tx2width; + d2.offset = 0; + var txTotalWidth = (tbbWidth + HOVERARROWSIZE2 + HOVERTEXTPAD2 + tx2width) * fullLayout._invScaleX; + var anchorStartOK, anchorEndOK; + if (rotateLabels) { + d2.pos = htx; + anchorStartOK = hty + dy / 2 + txTotalWidth <= outerHeight; + anchorEndOK = hty - dy / 2 - txTotalWidth >= 0; + if ((d2.idealAlign === "top" || !anchorStartOK) && anchorEndOK) { + hty -= dy / 2; + d2.anchor = "end"; + } else if (anchorStartOK) { + hty += dy / 2; + d2.anchor = "start"; + } else { + d2.anchor = "middle"; + } + d2.crossPos = hty; } else { - d2.anchor = "middle"; - var txHalfWidth = txTotalWidth / 2; - var overflowR = htx + txHalfWidth - outerWidth; - var overflowL = htx - txHalfWidth; - if (overflowR > 0) htx -= overflowR; - if (overflowL < 0) htx += -overflowL; + d2.pos = hty; + anchorStartOK = htx + dx2 / 2 + txTotalWidth <= outerWidth; + anchorEndOK = htx - dx2 / 2 - txTotalWidth >= 0; + if ((d2.idealAlign === "left" || !anchorStartOK) && anchorEndOK) { + htx -= dx2 / 2; + d2.anchor = "end"; + } else if (anchorStartOK) { + htx += dx2 / 2; + d2.anchor = "start"; + } else { + d2.anchor = "middle"; + var txHalfWidth = txTotalWidth / 2; + var overflowR = htx + txHalfWidth - outerWidth; + var overflowL = htx - txHalfWidth; + if (overflowR > 0) htx -= overflowR; + if (overflowL < 0) htx += -overflowL; + } + d2.crossPos = htx; } - d2.crossPos = htx; + tx2.attr("text-anchor", d2.anchor); + if (tx2width) tx22.attr("text-anchor", d2.anchor); + g2.attr("transform", strTranslate(htx, hty) + (rotateLabels ? strRotate(YANGLE2) : "")); } - tx2.attr("text-anchor", d2.anchor); - if (tx2width) tx22.attr("text-anchor", d2.anchor); - g2.attr("transform", strTranslate(htx, hty) + (rotateLabels ? strRotate(YANGLE2) : "")); }); return { hoverLabels, - commonLabelBoundingBox: commonLabelRect + commonLabelBoundingBox: commonLabelRect, + mathjaxPromise: mathjaxPromises.length ? Promise.all(mathjaxPromises) : null }; } function getHoverLabelText(d2, showCommonLabel, hovermode, fullLayout, t02, g2) { @@ -48824,7 +49030,7 @@ var Plotly = (() => { } function marginPushersAgain() { if (!Plots.didMarginChange(oldMargins, fullLayout._size)) return; - return Lib.syncOrAsync([marginPushers, subroutines.layoutStyles], gd3); + return marginPushers(); } function positionAndAutorange() { if (!recalc) { @@ -65301,7 +65507,7 @@ var Plotly = (() => { obj.percentPrevious = cdi.difR; obj.percentPreviousLabel = Lib.formatPercent(cdi.difR); obj.percentTotal = cdi.sumR; - obj.percenTotalLabel = Lib.formatPercent(cdi.sumR); + obj.percentTotalLabel = Lib.formatPercent(cdi.sumR); } var customdata = Lib.castOption(trace, cdi.i, "customdata"); if (customdata) obj.customdata = customdata; @@ -72748,6 +72954,7 @@ var Plotly = (() => { var _2 = Lib._; var Color2 = require_color(); var Drawing = require_drawing(); + var svgTextUtils = require_svg_text_utils(); var setConvert = require_set_convert(); var extendFlat2 = require_extend().extendFlat; var Plots = require_plots(); @@ -72866,6 +73073,94 @@ var Plotly = (() => { toplevel.order(); }; var whRatio = Math.sqrt(4 / 3); + proto.drawSpikelines = function(hoverPoint, spikePoint, cursorXVal, cursorYVal) { + const fullLayout = this.graphDiv._fullLayout; + const axes = [this.aaxis, this.baxis, this.caxis]; + if (!axes.some((axis) => axis.showspikes)) return; + const span = this.sum - axes[0].min - axes[1].min - axes[2].min; + const contrastColor = Color2.combine(fullLayout[this.id].bgcolor, fullLayout.paper_bgcolor); + let layer; + for (let i2 = 0; i2 < axes.length; i2++) { + const axis = axes[i2]; + if (!axis.showspikes) continue; + const snap = axis.spikesnap; + const selectedPoint = snap === "hovered data" ? hoverPoint : spikePoint || hoverPoint; + if (!selectedPoint) continue; + const snapToCursor = snap === "cursor"; + if (snapToCursor && (!Number.isFinite(cursorXVal) || !Number.isFinite(cursorYVal))) { + continue; + } + const calcPoint = selectedPoint.cd[selectedPoint.index]; + const a2 = snapToCursor ? cursorYVal : calcPoint.a; + const b2 = snapToCursor ? (this.sum - cursorYVal - cursorXVal) / 2 : calcPoint.b; + const c2 = snapToCursor ? (this.sum - cursorYVal + cursorXVal) / 2 : calcPoint.c; + if (!this.xaxis.isPtWithinRange({ a: a2, b: b2, c: c2 })) continue; + if (!layer) { + layer = fullLayout._hoverlayer.insert("g", ":first-child").attr("class", "ternary-spikes").attr("transform", strTranslate(this.x0, this.y0)).style("pointer-events", "none"); + } + const fa3 = Lib.constrain((a2 - axes[0].min) / span, 0, 1); + const fb2 = Lib.constrain((b2 - axes[1].min) / span, 0, 1); + const fc3 = Lib.constrain((c2 - axes[2].min) / span, 0, 1); + const x2 = this.w * (fc3 + fa3 / 2); + const y2 = this.h * (1 - fa3); + const [axisX, axisY, acrossX, acrossY] = [ + [this.w * fa3 / 2, y2, this.w * (1 - fa3 / 2), y2], + // aaxis + [this.w * (1 - fb2), this.h, this.w * (1 - fb2) / 2, this.h * fb2], + // baxis + [this.w * (1 + fc3) / 2, this.h * fc3, this.w * fc3, this.h] + // caxis + ][i2]; + const pointColor = selectedPoint.color || axis.color; + const dfltColor = Color2.wcagContrast(pointColor, contrastColor) < 1.5 ? Color2.contrast(contrastColor) : pointColor; + const color2 = axis.spikecolor || dfltColor; + const thickness = axis.spikethickness; + const mode = axis.spikemode; + if (mode.indexOf("toaxis") !== -1 || mode.indexOf("across") !== -1) { + const across = mode.indexOf("across") !== -1; + layer.append("line").attr({ + class: "spikeline", + x1: across ? acrossX : x2, + y1: across ? acrossY : y2, + x2: axisX, + y2: axisY, + "stroke-width": thickness, + "stroke-dasharray": Drawing.dashStyle(axis.spikedash, thickness) + }).call(Color2.stroke, color2); + } + if (mode.indexOf("marker") !== -1) { + layer.append("circle").attr({ + class: "spikeline", + cx: axisX, + cy: axisY, + r: thickness + }).call(Color2.fill, color2); + } + const label = layer.append("g").attr("class", "ternary-spikelabel").attr("transform", strTranslate(axisX, axisY)); + const text = label.append("text").attr("text-anchor", "middle").call(Drawing.font, axis.tickfont || fullLayout.font).text(Axes.tickText(axis, [a2, b2, c2][i2], true).text).call(svgTextUtils.convertToTspans, this.graphDiv); + const box = Drawing.bBox(text.node()); + const width = box.width + 6; + const height = box.height + 4; + const arrow = Math.min(6, height / 2, width / 2); + const left = i2 === 0 ? -arrow - width : i2 === 1 ? -width / 2 : 0; + const top = i2 === 0 ? -height / 2 : i2 === 1 ? arrow : -height; + let outline; + if (i2 === 0) { + outline = `M0,0L${-arrow},${-arrow}V${top}H${left}v${height}H${-arrow}V${arrow}Z`; + } else if (i2 === 1) { + outline = `M0,0L${arrow},${arrow}H${width / 2}v${height}H${left}V${arrow}H${-arrow}Z`; + } else { + outline = `M0,0V${top}h${width}V0Z`; + } + label.insert("path", "text").attr("d", outline).call(Color2.fill, color2); + text.call( + svgTextUtils.positionText, + left + width / 2 - box.left - box.width / 2, + top + height / 2 - box.top - box.height / 2 + ); + text.call(Color2.fill, Color2.contrast(color2)); + } + }; proto.adjustLayout = function(ternaryLayout, graphSize) { var _this = this; var domain = ternaryLayout.domain; @@ -73378,7 +73673,14 @@ var Plotly = (() => { valType: "number", dflt: 0, min: 0 - } + }, + // spikelines + showspikes: extendFlat2({}, axesAttrs.showspikes, {}), + spikecolor: axesAttrs.spikecolor, + spikethickness: axesAttrs.spikethickness, + spikedash: axesAttrs.spikedash, + spikemode: axesAttrs.spikemode, + spikesnap: axesAttrs.spikesnap }; var attrs = module.exports = overrideAll({ domain: domainAttrs({ name: "ternary" }), @@ -73494,6 +73796,9 @@ var Plotly = (() => { function coerce(attr3, dflt) { return Lib.coerce(containerIn, containerOut, axAttrs, attr3, dflt); } + function coerce2(attr3, dflt) { + return Lib.coerce2(containerIn, containerOut, axAttrs, attr3, dflt); + } coerce("uirevision", ternaryLayoutOut.uirevision); containerOut.type = "linear"; var dfltColor = coerce("color"); @@ -73542,6 +73847,19 @@ var Plotly = (() => { }); coerce("hoverformat"); coerce("layer"); + var spikecolor = coerce2("spikecolor"); + var spikethickness = coerce2("spikethickness"); + var spikedash = coerce2("spikedash"); + var spikemode = coerce2("spikemode"); + var spikesnap = coerce2("spikesnap"); + var showSpikes = coerce("showspikes", !!spikecolor || !!spikethickness || !!spikedash || !!spikemode || !!spikesnap); + if (!showSpikes) { + delete containerOut.spikecolor; + delete containerOut.spikethickness; + delete containerOut.spikedash; + delete containerOut.spikemode; + delete containerOut.spikesnap; + } } } }); @@ -149351,14 +149669,12 @@ var Plotly = (() => { var constants_exports22 = {}; __export(constants_exports22, { DASHES: () => DASHES, - DOT_RE: () => DOT_RE, - OPEN_RE: () => OPEN_RE, SYMBOL_SDF_SIZE: () => SYMBOL_SDF_SIZE, SYMBOL_SIZE: () => SYMBOL_SIZE, SYMBOL_STROKE: () => SYMBOL_STROKE, TOO_MANY_POINTS: () => TOO_MANY_POINTS }); - var TOO_MANY_POINTS, SYMBOL_SDF_SIZE, SYMBOL_SIZE, SYMBOL_STROKE, DOT_RE, OPEN_RE, DASHES; + var TOO_MANY_POINTS, SYMBOL_SDF_SIZE, SYMBOL_SIZE, SYMBOL_STROKE, DASHES; var init_constants22 = __esm({ "src/traces/scattergl/constants.ts"() { "use strict"; @@ -149366,8 +149682,6 @@ var Plotly = (() => { SYMBOL_SDF_SIZE = 200; SYMBOL_SIZE = 20; SYMBOL_STROKE = SYMBOL_SIZE / 20; - DOT_RE = /-dot/; - OPEN_RE = /-open/; DASHES = { solid: [1], dot: [1, 1], @@ -149487,13 +149801,9 @@ var Plotly = (() => { var require_helpers16 = __commonJS({ "src/traces/scattergl/helpers.js"(exports) { "use strict"; - var constants2 = (init_constants22(), __toCommonJS(constants_exports22)); - exports.isOpenSymbol = function(symbol) { - return typeof symbol === "string" ? constants2.OPEN_RE.test(symbol) : symbol % 200 > 100; - }; - exports.isDotSymbol = function(symbol) { - return typeof symbol === "string" ? constants2.DOT_RE.test(symbol) : symbol > 200; - }; + var { symbolNumber } = require_drawing(); + exports.isOpenSymbol = (symbol) => symbolNumber(symbol) % 200 >= 100; + exports.isDotSymbol = (symbol) => symbolNumber(symbol) >= 200; } }); @@ -150768,7 +151078,7 @@ var Plotly = (() => { "use strict"; var isNumeric2 = require_fast_isnumeric(); var svgSdf = (init_svg_path_sdf(), __toCommonJS(svg_path_sdf_exports)).default; - var { normalize: rgba2 } = require_color(); + var { normalize: rgba2, rgbaString } = require_color(); var Registry = require_registry(); var Lib = require_lib(); var isArrayOrTypedArray = Lib.isArrayOrTypedArray; @@ -150828,7 +151138,7 @@ var Plotly = (() => { opts.line = { overlay: true, thickness: trace.line.width * plotGlPixelRatio, - color: trace.line.color, + color: rgbaString(trace.line.color), opacity: trace.opacity }; var dashes2 = (constants2.DASHES[trace.line.dash] || [1]).slice(); @@ -150846,7 +151156,7 @@ var Plotly = (() => { if (!!trace.fill && trace.fill !== "none") { opts.fill = { closed: true, - fill: trace.fillcolor, + fill: rgbaString(trace.fillcolor), thickness: 0 }; } @@ -150935,10 +151245,10 @@ var Plotly = (() => { if (isArrayOrTypedArray(tfc)) { optsOut.color = new Array(count); for (i2 = 0; i2 < count; i2++) { - optsOut.color[i2] = tfc[i2]; + optsOut.color[i2] = rgbaString(tfc[i2]); } } else { - optsOut.color = tfc; + optsOut.color = rgbaString(tfc); } if (isArrayOrTypedArray(tfs) || Array.isArray(tff) || isArrayOrTypedArray(tfw) || Array.isArray(tfy) || Array.isArray(tfv)) { optsOut.font = new Array(count); @@ -151106,7 +151416,7 @@ var Plotly = (() => { optsOut = convertMarkerStyle(gd3, Lib.extendFlat({}, optsIn, target.marker)); } else if (target.marker) { if (target.marker.size) optsOut.size = target.marker.size; - if (target.marker.color) optsOut.colors = target.marker.color; + if (target.marker.color) optsOut.colors = rgbaString(target.marker.color); if (target.marker.opacity !== void 0) optsOut.opacity = target.marker.opacity; } return optsOut; @@ -151133,10 +151443,10 @@ var Plotly = (() => { var optsOut = { capSize: target.width * 2 * plotGlPixelRatio, lineWidth: target.thickness * plotGlPixelRatio, - color: target.color + color: rgbaString(target.color) }; if (target.copy_ystyle) { - optsOut = trace.error_y; + optsOut = __spreadProps(__spreadValues({}, trace.error_y), { color: rgbaString(trace.error_y.color) }); } return optsOut; } @@ -166969,6 +167279,7 @@ void main() { var createError = require_regl_error2d(); var Text = require_dist3(); var Lib = require_lib(); + var { rgbaString } = require_color(); var selectMode = require_helpers5().selectMode; var prepareRegl = require_prepare_regl(); var subTypes = require_subtypes(); @@ -167154,7 +167465,7 @@ void main() { if (isNaN(xx2) || isNaN(yy2)) continue; pos.push(xx2, yy2); } - fillOptions.fill = nextTrace.fillcolor; + fillOptions.fill = rgbaString(nextTrace.fillcolor); } } } @@ -168452,6 +168763,7 @@ void main() { "use strict"; var createLine = require_regl_line2d(); var Registry = require_registry(); + var { rgbaString } = require_color(); var prepareRegl = require_prepare_regl(); var getModuleCalcData = require_get_data().getModuleCalcData; var Cartesian = require_cartesian(); @@ -168545,7 +168857,7 @@ void main() { data: [x0, x1, y0, y1], join: "rect", thickness: lwidth * plotGlPixelRatio, - color: lcolor, + color: rgbaString(lcolor), viewport: fullView, range: fullView, overlay: false @@ -210875,14 +211187,17 @@ in vec3 view_direction;uniform vec3 u_sun_pos;uniform vec3 u_globe_position;unif return columns2; } if (trace.node.x.length && trace.node.y.length) { - for (i2 = 0; i2 < Math.min(trace.node.x.length, trace.node.y.length, graph.nodes.length); i2++) { - if (trace.node.x[i2] && trace.node.y[i2]) { - var pos = [trace.node.x[i2] * width, trace.node.y[i2] * height]; - graph.nodes[i2].x0 = pos[0] - nodeThickness / 2; - graph.nodes[i2].x1 = pos[0] + nodeThickness / 2; - var nodeHeight = graph.nodes[i2].y1 - graph.nodes[i2].y0; - graph.nodes[i2].y0 = pos[1] - nodeHeight / 2; - graph.nodes[i2].y1 = pos[1] + nodeHeight / 2; + for (i2 = 0; i2 < graph.nodes.length; i2++) { + var forcedNode = graph.nodes[i2]; + if (forcedNode.partOfGroup) continue; + var p2 = forcedNode.pointNumber; + if (trace.node.x[p2] && trace.node.y[p2]) { + var pos = [trace.node.x[p2] * width, trace.node.y[p2] * height]; + forcedNode.x0 = pos[0] - nodeThickness / 2; + forcedNode.x1 = pos[0] + nodeThickness / 2; + var nodeHeight = forcedNode.y1 - forcedNode.y0; + forcedNode.y0 = pos[1] - nodeHeight / 2; + forcedNode.y1 = pos[1] + nodeHeight / 2; } } if (trace.arrangement === "snap") { @@ -211252,13 +211567,12 @@ in vec3 view_direction;uniform vec3 u_sun_pos;uniform vec3 u_globe_position;unif }; } function persistFinalNodePositions(d2, gd3) { - var x2 = []; - var y2 = []; - for (var i2 = 0; i2 < d2.graph.nodes.length; i2++) { - var nodeX = (d2.graph.nodes[i2].x0 + d2.graph.nodes[i2].x1) / 2; - var nodeY = (d2.graph.nodes[i2].y0 + d2.graph.nodes[i2].y1) / 2; - x2.push(nodeX / d2.figure.width); - y2.push(nodeY / d2.figure.height); + const x2 = [...d2.trace.node.x]; + const y2 = [...d2.trace.node.y]; + for (const node of d2.graph.nodes) { + if (node.partOfGroup) continue; + x2[node.pointNumber] = (node.x0 + node.x1) / 2 / d2.figure.width; + y2[node.pointNumber] = (node.y0 + node.y1) / 2 / d2.figure.height; } Registry.call("_guiRestyle", gd3, { "node.x": [x2], @@ -222458,6 +222772,7 @@ in vec3 view_direction;uniform vec3 u_sun_pos;uniform vec3 u_globe_position;unif var Lib = require_lib(); var Drawing = require_drawing(); var Colorscale = require_colorscale(); + var Color2 = require_color(); var DESELECTDIM2 = (init_interactions(), __toCommonJS(interactions_exports)).DESELECTDIM; function colorscaleStroke(paths, trace) { var marker = trace.marker || {}; @@ -222476,6 +222791,24 @@ in vec3 view_direction;uniform vec3 u_sun_pos;uniform vec3 u_globe_position;unif return cdi.mcc; }); } + var strokeArrowColors = (paths, trace) => { + if (trace._hasColorscale) { + colorscaleStroke(paths, trace); + return; + } + const markerColor = (trace.marker || {}).color; + if (!Lib.isArrayOrTypedArray(markerColor)) return; + paths.style("stroke", function(cdi) { + if (markerColor.length > cdi.i) { + const color2 = markerColor[cdi.i]; + if (Color2.isValid(color2)) { + cdi.mcc = color2; + return color2; + } + } + return this.style.stroke; + }); + }; function style(gd3) { var s2 = d3.select(gd3).selectAll("g.trace.quiver"); s2.each(function(d2) { @@ -222490,7 +222823,6 @@ in vec3 view_direction;uniform vec3 u_sun_pos;uniform vec3 u_globe_position;unif var marker = trace.marker || {}; var markerLine = marker.line || {}; var lineColor = Lib.isArrayOrTypedArray(marker.color) ? void 0 : marker.color; - var hasColorscale = trace._hasColorscale; if (!sel) return; if (trace.selectedpoints) { var selectedMarker = (trace.selected || {}).marker || {}; @@ -222507,7 +222839,7 @@ in vec3 view_direction;uniform vec3 u_sun_pos;uniform vec3 u_globe_position;unif path.style("stroke-opacity", 1); } else { Drawing.lineGroupStyle(path, lineWidth, lineColor, markerLine.dash); - if (hasColorscale) colorscaleStroke(path, trace); + strokeArrowColors(path, trace); path.style("stroke-opacity", dim ? DESELECTDIM2 : 1); } }); @@ -222515,7 +222847,7 @@ in vec3 view_direction;uniform vec3 u_sun_pos;uniform vec3 u_globe_position;unif } else { var paths = sel.selectAll("path.js-line"); paths.call(Drawing.lineGroupStyle, markerLine.width, lineColor, markerLine.dash); - if (hasColorscale) colorscaleStroke(paths, trace); + strokeArrowColors(paths, trace); paths.style("stroke-opacity", 1); Drawing.textPointStyle(sel.selectAll("text"), trace, gd3); } @@ -222523,7 +222855,8 @@ in vec3 view_direction;uniform vec3 u_sun_pos;uniform vec3 u_globe_position;unif module.exports = { style, styleOnSelect, - colorscaleStroke + colorscaleStroke, + strokeArrowColors }; } }); @@ -222535,7 +222868,7 @@ in vec3 view_direction;uniform vec3 u_sun_pos;uniform vec3 u_globe_position;unif var d3 = require_d3(); var Lib = require_lib(); var Drawing = require_drawing(); - var colorscaleStroke = require_style20().colorscaleStroke; + var { strokeArrowColors } = require_style20(); var HEAD_ANGLE = Math.PI / 12; var HEAD_LEN_PER_WIDTH = 5.8; var MIN_LINE_WIDTH_FOR_ARROWSIZE = 1.5; @@ -222633,9 +222966,9 @@ in vec3 view_direction;uniform vec3 u_sun_pos;uniform vec3 u_globe_position;unif }); var marker = trace.marker || {}; var markerLine = marker.line || {}; - var lineColor = Lib.isArrayOrTypedArray(marker.color) ? void 0 : marker.color; + const lineColor = Lib.isArrayOrTypedArray(marker.color) ? void 0 : marker.color; Drawing.lineGroupStyle(lineSegments, markerLine.width, lineColor, markerLine.dash); - if (trace._hasColorscale) colorscaleStroke(lineSegments, trace); + strokeArrowColors(lineSegments, trace); var textGroup = d3.select(element).selectAll("g.text").data([cdscatter]); textGroup.enter().append("g").classed("text", true); Drawing.setClipUrl(textGroup, plotinfo.layerClipId, gd3); diff --git a/dist/plotly.min.js b/dist/plotly.min.js index 4619cea89ac..e62a385bf82 100644 --- a/dist/plotly.min.js +++ b/dist/plotly.min.js @@ -1,5 +1,5 @@ /** -* plotly.js v4.1.2 +* plotly.js v4.2.0 * Copyright 2012-2026, Plotly, Inc. * All rights reserved. * Licensed under the MIT license @@ -12,96 +12,96 @@ root.moduleName = factory(); } } (typeof self !== "undefined" ? self : this, () => { -"use strict";var Plotly=(()=>{var Cgt=Object.create;var qT=Object.defineProperty,Dgt=Object.defineProperties,Fgt=Object.getOwnPropertyDescriptor,Lgt=Object.getOwnPropertyDescriptors,Pgt=Object.getOwnPropertyNames,k8=Object.getOwnPropertySymbols,Igt=Object.getPrototypeOf,jN=Object.prototype.hasOwnProperty,Nle=Object.prototype.propertyIsEnumerable;var HN=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),Rgt=e=>{throw TypeError(e)};var Ole=(e,t,r)=>t in e?qT(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,dn=(e,t)=>{for(var r in t||(t={}))jN.call(t,r)&&Ole(e,r,t[r]);if(k8)for(var r of k8(t))Nle.call(t,r)&&Ole(e,r,t[r]);return e},_a=(e,t)=>Dgt(e,Lgt(t));var C8=(e,t)=>{var r={};for(var i in e)jN.call(e,i)&&t.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&k8)for(var i of k8(e))t.indexOf(i)<0&&Nle.call(e,i)&&(r[i]=e[i]);return r};var Ci=(e,t,r)=>()=>{if(r)throw r[0];try{return e&&(t=e(e=0)),t}catch(i){throw r=[i],i}};var W=(e,t)=>()=>{try{return t||e((t={exports:{}}).exports,t),t.exports}catch(r){throw t=0,r}},Kn=(e,t)=>{for(var r in t)qT(e,r,{get:t[r],enumerable:!0})},Ule=(e,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of Pgt(t))!jN.call(e,n)&&n!==r&&qT(e,n,{get:()=>t[n],enumerable:!(i=Fgt(t,n))||i.enumerable});return e};var i1=(e,t,r)=>(r=e!=null?Cgt(Igt(e)):{},Ule(t||!e||!e.__esModule?qT(r,"default",{value:e,enumerable:!0}):r,e)),Pt=e=>Ule(qT({},"__esModule",{value:!0}),e);var Yi=(e,t,r)=>new Promise((i,n)=>{var a=l=>{try{s(r.next(l))}catch(u){n(u)}},o=l=>{try{s(r.throw(l))}catch(u){n(u)}},s=l=>l.done?i(l.value):Promise.resolve(l.value).then(a,o);s((r=r.apply(e,t)).next())}),zgt=function(e,t){this[0]=e,this[1]=t};var Vle=e=>{var t=e[HN("asyncIterator")],r=!1,i,n={};return t==null?(t=e[HN("iterator")](),i=a=>n[a]=o=>t[a](o)):(t=t.call(e),i=a=>n[a]=o=>{if(r){if(r=!1,a==="throw")throw o;return o}return r=!0,{done:!1,value:new zgt(new Promise(s=>{var l=t[a](o);l instanceof Object||Rgt("Object expected"),s(l)}),1)}}),n[HN("iterator")]=()=>n,i("next"),"throw"in t?i("throw"):n.throw=a=>{throw a},"return"in t&&i("return"),n};var OT=W(Gle=>{"use strict";Gle.version="4.1.2"});var jle=W((Hle,D8)=>{(function(t,r,i){r[t]=r[t]||i(),typeof D8!="undefined"&&D8.exports&&(D8.exports=r[t])})("Promise",typeof window!="undefined"?window:Hle,function(){"use strict";var t,r,i,n=Object.prototype.toString,a=typeof setImmediate!="undefined"?function(w){return setImmediate(w)}:setTimeout;try{Object.defineProperty({},"x",{}),t=function(w,_,b,S){return Object.defineProperty(w,_,{value:b,writable:!0,configurable:S!==!1})}}catch(g){t=function(_,b,S){return _[b]=S,_}}i=(function(){var w,_,b;function S(x,T){this.fn=x,this.self=T,this.next=void 0}return{add:function(T,A){b=new S(T,A),_?_.next=b:w=b,_=b,b=void 0},drain:function(){var T=w;for(w=_=r=void 0;T;)T.fn.call(T.self),T=T.next}}})();function o(g,w){i.add(g,w),r||(r=a(i.drain))}function s(g){var w,_=typeof g;return g!=null&&(_=="object"||_=="function")&&(w=g.then),typeof w=="function"?w:!1}function l(){for(var g=0;g0&&o(l,_))}catch(b){f.call(new p(_),b)}}}function f(g){var w=this;w.triggered||(w.triggered=!0,w.def&&(w=w.def),w.msg=g,w.state=2,w.chain.length>0&&o(l,w))}function h(g,w,_,b){for(var S=0;S{(function(){var e={version:"3.8.2"},t=[].slice,r=function(z){return t.call(z)},i=self.document;function n(z){return z&&(z.ownerDocument||z.document||z).documentElement}function a(z){return z&&(z.ownerDocument&&z.ownerDocument.defaultView||z.document&&z||z.defaultView)}if(i)try{r(i.documentElement.childNodes)[0].nodeType}catch(z){r=function(N){for(var Z=N.length,ne=new Array(Z);Z--;)ne[Z]=N[Z];return ne}}if(Date.now||(Date.now=function(){return+new Date}),i)try{i.createElement("DIV").style.setProperty("opacity",0,"")}catch(z){var o=this.Element.prototype,s=o.setAttribute,l=o.setAttributeNS,u=this.CSSStyleDeclaration.prototype,c=u.setProperty;o.setAttribute=function(N,Z){s.call(this,N,Z+"")},o.setAttributeNS=function(N,Z,ne){l.call(this,N,Z,ne+"")},u.setProperty=function(N,Z,ne){c.call(this,N,Z+"",ne)}}e.ascending=f;function f(z,N){return zN?1:z>=N?0:NaN}e.descending=function(z,N){return Nz?1:N>=z?0:NaN},e.min=function(z,N){var Z=-1,ne=z.length,le,fe;if(arguments.length===1){for(;++Z=fe){le=fe;break}for(;++Zfe&&(le=fe)}else{for(;++Z=fe){le=fe;break}for(;++Zfe&&(le=fe)}return le},e.max=function(z,N){var Z=-1,ne=z.length,le,fe;if(arguments.length===1){for(;++Z=fe){le=fe;break}for(;++Zle&&(le=fe)}else{for(;++Z=fe){le=fe;break}for(;++Zle&&(le=fe)}return le},e.extent=function(z,N){var Z=-1,ne=z.length,le,fe,De;if(arguments.length===1){for(;++Z=fe){le=De=fe;break}for(;++Zfe&&(le=fe),De=fe){le=De=fe;break}for(;++Zfe&&(le=fe),De1)return De/(ze-1)},e.deviation=function(){var z=e.variance.apply(this,arguments);return z&&Math.sqrt(z)};function d(z){return{left:function(N,Z,ne,le){for(arguments.length<3&&(ne=0),arguments.length<4&&(le=N.length);ne>>1;z(N[fe],Z)<0?ne=fe+1:le=fe}return ne},right:function(N,Z,ne,le){for(arguments.length<3&&(ne=0),arguments.length<4&&(le=N.length);ne>>1;z(N[fe],Z)>0?le=fe:ne=fe+1}return ne}}}var v=d(f);e.bisectLeft=v.left,e.bisect=e.bisectRight=v.right,e.bisector=function(z){return d(z.length===1?function(N,Z){return f(z(N),Z)}:z)},e.shuffle=function(z,N,Z){(ne=arguments.length)<3&&(Z=z.length,ne<2&&(N=0));for(var ne=Z-N,le,fe;ne;)fe=Math.random()*ne--|0,le=z[ne+N],z[ne+N]=z[fe+N],z[fe+N]=le;return z},e.permute=function(z,N){for(var Z=N.length,ne=new Array(Z);Z--;)ne[Z]=z[N[Z]];return ne},e.pairs=function(z){for(var N=0,Z=z.length-1,ne,le=z[0],fe=new Array(Z<0?0:Z);N=0;)for(De=z[N],Z=De.length;--Z>=0;)fe[--le]=De[Z];return fe};var g=Math.abs;e.range=function(z,N,Z){if(arguments.length<3&&(Z=1,arguments.length<2&&(N=z,z=0)),(N-z)/Z===1/0)throw new Error("infinite range");var ne=[],le=w(g(Z)),fe=-1,De;if(z*=le,N*=le,Z*=le,Z<0)for(;(De=z+Z*++fe)>N;)ne.push(De/le);else for(;(De=z+Z*++fe)=N.length)return le?le.call(z,ze):ne?ze.sort(ne):ze;for(var We=-1,ft=ze.length,ht=N[He++],Nt,$t,pt,Dt=new b,Bt;++We=N.length)return me;var He=[],We=Z[ze++];return me.forEach(function(ft,ht){He.push({key:ft,values:De(ht,ze)})}),We?He.sort(function(ft,ht){return We(ft.key,ht.key)}):He}return z.map=function(me,ze){return fe(ze,me,0)},z.entries=function(me){return De(fe(e.map,me,0),0)},z.key=function(me){return N.push(me),z},z.sortKeys=function(me){return Z[N.length-1]=me,z},z.sortValues=function(me){return ne=me,z},z.rollup=function(me){return le=me,z},z},e.set=function(z){var N=new D;if(z)for(var Z=0,ne=z.length;Z=0&&(ne=z.slice(Z+1),z=z.slice(0,Z)),z)return arguments.length<2?this[z].on(ne):this[z].on(ne,N);if(arguments.length===2){if(N==null)for(z in this)this.hasOwnProperty(z)&&this[z].on(ne,null);return this}};function O(z){var N=[],Z=new b;function ne(){for(var le=N,fe=-1,De=le.length,me;++fe=0&&(Z=z.slice(0,N))!=="xmlns"&&(z=z.slice(N+1)),ue.hasOwnProperty(Z)?{space:ue[Z],local:z}:z}},G.attr=function(z,N){if(arguments.length<2){if(typeof z=="string"){var Z=this.node();return z=e.ns.qualify(z),z.local?Z.getAttributeNS(z.space,z.local):Z.getAttribute(z)}for(N in z)this.each(ge(N,z[N]));return this}return this.each(ge(z,N))};function ge(z,N){z=e.ns.qualify(z);function Z(){this.removeAttribute(z)}function ne(){this.removeAttributeNS(z.space,z.local)}function le(){this.setAttribute(z,N)}function fe(){this.setAttributeNS(z.space,z.local,N)}function De(){var ze=N.apply(this,arguments);ze==null?this.removeAttribute(z):this.setAttribute(z,ze)}function me(){var ze=N.apply(this,arguments);ze==null?this.removeAttributeNS(z.space,z.local):this.setAttributeNS(z.space,z.local,ze)}return N==null?z.local?ne:Z:typeof N=="function"?z.local?me:De:z.local?fe:le}function ke(z){return z.trim().replace(/\s+/g," ")}G.classed=function(z,N){if(arguments.length<2){if(typeof z=="string"){var Z=this.node(),ne=(z=he(z)).length,le=-1;if(N=Z.classList){for(;++le=0;)(fe=Z[ne])&&(le&&le!==fe.nextSibling&&le.parentNode.insertBefore(fe,le),le=fe);return this},G.sort=function(z){z=pe.apply(this,arguments);for(var N=-1,Z=this.length;++N=N&&(N=le+1);!(ze=De[N])&&++N0&&(z=z.slice(0,le));var De=Ie.get(z);De&&(z=De,fe=Qe);function me(){var We=this[ne];We&&(this.removeEventListener(z,We,We.$),delete this[ne])}function ze(){var We=fe(N,r(arguments));me.call(this),this.addEventListener(z,this[ne]=We,We.$=Z),We._=N}function He(){var We=new RegExp("^__on([^.]+)"+e.requote(z)+"$"),ft;for(var ht in this)if(ft=ht.match(We)){var Nt=this[ht];this.removeEventListener(ft[1],Nt,Nt.$),delete this[ht]}}return le?N?ze:me:N?I:He}var Ie=e.map({mouseenter:"mouseover",mouseleave:"mouseout"});i&&Ie.forEach(function(z){"on"+z in i&&Ie.remove(z)});function Oe(z,N){return function(Z){var ne=e.event;e.event=Z,N[0]=this.__data__;try{z.apply(this,N)}finally{e.event=ne}}}function Qe(z,N){var Z=Oe(z,N);return function(ne){var le=this,fe=ne.relatedTarget;(!fe||fe!==le&&!(fe.compareDocumentPosition(le)&8))&&Z.call(le,ne)}}var et,bt=0;function ut(z){var N=".dragsuppress-"+ ++bt,Z="click"+N,ne=e.select(a(z)).on("touchmove"+N,$).on("dragstart"+N,$).on("selectstart"+N,$);if(et==null&&(et="onselectstart"in z?!1:R(z.style,"userSelect")),et){var le=n(z).style,fe=le[et];le[et]="none"}return function(De){if(ne.on(N,null),et&&(le[et]=fe),De){var me=function(){ne.on(Z,null)};ne.on(Z,function(){$(),me()},!0),setTimeout(me,0)}}}e.mouse=function(z){return Xe(z,Y())};var vt=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;function Xe(z,N){N.changedTouches&&(N=N.changedTouches[0]);var Z=z.ownerSVGElement||z;if(Z.createSVGPoint){var ne=Z.createSVGPoint();if(vt<0){var le=a(z);if(le.scrollX||le.scrollY){Z=e.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var fe=Z[0][0].getScreenCTM();vt=!(fe.f||fe.e),Z.remove()}}return vt?(ne.x=N.pageX,ne.y=N.pageY):(ne.x=N.clientX,ne.y=N.clientY),ne=ne.matrixTransform(z.getScreenCTM().inverse()),[ne.x,ne.y]}var De=z.getBoundingClientRect();return[N.clientX-De.left-z.clientLeft,N.clientY-De.top-z.clientTop]}e.touch=function(z,N,Z){if(arguments.length<3&&(Z=N,N=Y().changedTouches),N){for(var ne=0,le=N.length,fe;ne0?1:z<0?-1:0}function Zt(z,N,Z){return(N[0]-z[0])*(Z[1]-z[1])-(N[1]-z[1])*(Z[0]-z[0])}function Gt(z){return z>1?0:z<-1?Ue:Math.acos(z)}function ur(z){return z>1?Re:z<-1?-Re:Math.asin(z)}function cr(z){return((z=Math.exp(z))-1/z)/2}function qt(z){return((z=Math.exp(z))+1/z)/2}function Kt(z){return((z=Math.exp(2*z))-1)/(z+1)}function Cr(z){return(z=Math.sin(z/2))*z}var $e=Math.SQRT2,tt=2,st=4;e.interpolateZoom=function(z,N){var Z=z[0],ne=z[1],le=z[2],fe=N[0],De=N[1],me=N[2],ze=fe-Z,He=De-ne,We=ze*ze+He*He,ft,ht;if(We0&&(si=si.transition().duration(De)),si.call(Xt.event)}function Ii(){Dt&&Dt.domain(pt.range().map(function(si){return(si-z.x)/z.k}).map(pt.invert)),Wt&&Wt.domain(Bt.range().map(function(si){return(si-z.y)/z.k}).map(Bt.invert))}function Ri(si){me++||si({type:"zoomstart"})}function Bn(si){Ii(),si({type:"zoom",scale:z.k,translate:[z.x,z.y]})}function ji(si){--me||(si({type:"zoomend"}),Z=null)}function Dn(){var si=this,qn=$t.of(si,arguments),Zn=0,Ua=e.select(a(si)).on(He,Du).on(We,ec),ys=Lt(e.mouse(si)),Ml=ut(si);Ln.call(si),Ri(qn);function Du(){Zn=1,ii(e.mouse(si),ys),Bn(qn)}function ec(){Ua.on(He,null).on(We,null),Ml(Zn),ji(qn)}}function Ha(){var si=this,qn=$t.of(si,arguments),Zn={},Ua=0,ys,Ml=".zoom-"+e.event.changedTouches[0].identifier,Du="touchmove"+Ml,ec="touchend"+Ml,Jc=[],Be=e.select(si),gt=ut(si);sr(),Ri(qn),Be.on(ze,null).on(ht,sr);function Mt(){var pr=e.touches(si);return ys=z.k,pr.forEach(function(qr){qr.identifier in Zn&&(Zn[qr.identifier]=Lt(qr))}),pr}function sr(){var pr=e.event.target;e.select(pr).on(Du,gr).on(ec,Tr),Jc.push(pr);for(var qr=e.event.changedTouches,Kr=0,Jr=qr.length;Kr1){var Ui=Qr[0],yi=Qr[1],Lr=Ui[0]-yi[0],er=Ui[1]-yi[1];Ua=Lr*Lr+er*er}}function gr(){var pr=e.touches(si),qr,Kr,Jr,Qr;Ln.call(si);for(var fn=0,Ui=pr.length;fn1?1:N,Z=Z<0?0:Z>1?1:Z,le=Z<=.5?Z*(1+N):Z+N-Z*N,ne=2*Z-le;function fe(me){return me>360?me-=360:me<0&&(me+=360),me<60?ne+(le-ne)*me/60:me<180?le:me<240?ne+(le-ne)*(240-me)/60:ne}function De(me){return Math.round(fe(me)*255)}return new La(De(z+120),De(z),De(z-120))}e.hcl=ti;function ti(z,N,Z){return this instanceof ti?(this.h=+z,this.c=+N,void(this.l=+Z)):arguments.length<2?z instanceof ti?new ti(z.h,z.c,z.l):z instanceof Sn?vs(z.l,z.a,z.b):vs((z=fl((z=e.rgb(z)).r,z.g,z.b)).l,z.a,z.b):new ti(z,N,Z)}var Pr=ti.prototype=new nr;Pr.brighter=function(z){return new ti(this.h,this.c,Math.min(100,this.l+vn*(arguments.length?z:1)))},Pr.darker=function(z){return new ti(this.h,this.c,Math.max(0,this.l-vn*(arguments.length?z:1)))},Pr.rgb=function(){return Xi(this.h,this.c,this.l).rgb()};function Xi(z,N,Z){return isNaN(z)&&(z=0),isNaN(N)&&(N=0),new Sn(Z,Math.cos(z*=Ve)*N,Math.sin(z)*N)}e.lab=Sn;function Sn(z,N,Z){return this instanceof Sn?(this.l=+z,this.a=+N,void(this.b=+Z)):arguments.length<2?z instanceof Sn?new Sn(z.l,z.a,z.b):z instanceof ti?Xi(z.h,z.c,z.l):fl((z=La(z)).r,z.g,z.b):new Sn(z,N,Z)}var vn=18,aa=.95047,va=1,gn=1.08883,Hn=Sn.prototype=new nr;Hn.brighter=function(z){return new Sn(Math.min(100,this.l+vn*(arguments.length?z:1)),this.a,this.b)},Hn.darker=function(z){return new Sn(Math.max(0,this.l-vn*(arguments.length?z:1)),this.a,this.b)},Hn.rgb=function(){return oa(this.l,this.a,this.b)};function oa(z,N,Z){var ne=(z+16)/116,le=ne+N/500,fe=ne-Z/200;return le=bo(le)*aa,ne=bo(ne)*va,fe=bo(fe)*gn,new La(go(3.2404542*le-1.5371385*ne-.4985314*fe),go(-.969266*le+1.8760108*ne+.041556*fe),go(.0556434*le-.2040259*ne+1.0572252*fe))}function vs(z,N,Z){return z>0?new ti(Math.atan2(Z,N)*ct,Math.sqrt(N*N+Z*Z),z):new ti(NaN,NaN,z)}function bo(z){return z>.206893034?z*z*z:(z-4/29)/7.787037}function Os(z){return z>.008856?Math.pow(z,1/3):7.787037*z+4/29}function go(z){return Math.round(255*(z<=.00304?12.92*z:1.055*Math.pow(z,1/2.4)-.055))}e.rgb=La;function La(z,N,Z){return this instanceof La?(this.r=~~z,this.g=~~N,void(this.b=~~Z)):arguments.length<2?z instanceof La?new La(z.r,z.g,z.b):wl(""+z,La,ui):new La(z,N,Z)}function lo(z){return new La(z>>16,z>>8&255,z&255)}function Ns(z){return lo(z)+""}var Aa=La.prototype=new nr;Aa.brighter=function(z){z=Math.pow(.7,arguments.length?z:1);var N=this.r,Z=this.g,ne=this.b,le=30;return!N&&!Z&&!ne?new La(le,le,le):(N&&N>4,ne=ne>>4|ne,le=ze&240,le=le>>4|le,fe=ze&15,fe=fe<<4|fe):z.length===7&&(ne=(ze&16711680)>>16,le=(ze&65280)>>8,fe=ze&255)),N(ne,le,fe))}function Tu(z,N,Z){var ne=Math.min(z/=255,N/=255,Z/=255),le=Math.max(z,N,Z),fe=le-ne,De,me,ze=(le+ne)/2;return fe?(me=ze<.5?fe/(le+ne):fe/(2-le-ne),z==le?De=(N-Z)/fe+(N0&&ze<1?0:De),new dr(De,me,ze)}function fl(z,N,Z){z=Le(z),N=Le(N),Z=Le(Z);var ne=Os((.4124564*z+.3575761*N+.1804375*Z)/aa),le=Os((.2126729*z+.7151522*N+.072175*Z)/va),fe=Os((.0193339*z+.119192*N+.9503041*Z)/gn);return Sn(116*le-16,500*(ne-le),200*(le-fe))}function Le(z){return(z/=255)<=.04045?z/12.92:Math.pow((z+.055)/1.055,2.4)}function ot(z){var N=parseFloat(z);return z.charAt(z.length-1)==="%"?Math.round(N*2.55):N}var lt=e.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});lt.forEach(function(z,N){lt.set(z,lo(N))});function kt(z){return typeof z=="function"?z:function(){return z}}e.functor=kt,e.xhr=Qt(L);function Qt(z){return function(N,Z,ne){return arguments.length===2&&typeof Z=="function"&&(ne=Z,Z=null),zt(N,Z,z,ne)}}function zt(z,N,Z,ne){var le={},fe=e.dispatch("beforesend","progress","load","error"),De={},me=new XMLHttpRequest,ze=null;self.XDomainRequest&&!("withCredentials"in me)&&/^(http(s)?:)?\/\//.test(z)&&(me=new XDomainRequest),"onload"in me?me.onload=me.onerror=He:me.onreadystatechange=function(){me.readyState>3&&He()};function He(){var We=me.status,ft;if(!We&&Yt(me)||We>=200&&We<300||We===304){try{ft=Z.call(le,me)}catch(ht){fe.error.call(le,ht);return}fe.load.call(le,ft)}else fe.error.call(le,me)}return me.onprogress=function(We){var ft=e.event;e.event=We;try{fe.progress.call(le,me)}finally{e.event=ft}},le.header=function(We,ft){return We=(We+"").toLowerCase(),arguments.length<2?De[We]:(ft==null?delete De[We]:De[We]=ft+"",le)},le.mimeType=function(We){return arguments.length?(N=We==null?null:We+"",le):N},le.responseType=function(We){return arguments.length?(ze=We,le):ze},le.response=function(We){return Z=We,le},["get","post"].forEach(function(We){le[We]=function(){return le.send.apply(le,[We].concat(r(arguments)))}}),le.send=function(We,ft,ht){if(arguments.length===2&&typeof ft=="function"&&(ht=ft,ft=null),me.open(We,z,!0),N!=null&&!("accept"in De)&&(De.accept=N+",*/*"),me.setRequestHeader)for(var Nt in De)me.setRequestHeader(Nt,De[Nt]);return N!=null&&me.overrideMimeType&&me.overrideMimeType(N),ze!=null&&(me.responseType=ze),ht!=null&&le.on("error",ht).on("load",function($t){ht(null,$t)}),fe.beforesend.call(le,me),me.send(ft==null?null:ft),le},le.abort=function(){return me.abort(),le},e.rebind(le,fe,"on"),ne==null?le:le.get(Ar(ne))}function Ar(z){return z.length===1?function(N,Z){z(N==null?Z:null)}:z}function Yt(z){var N=z.responseType;return N&&N!=="text"?z.response:z.responseText}e.dsv=function(z,N){var Z=new RegExp('["'+z+` -]`),ne=z.charCodeAt(0);function le(He,We,ft){arguments.length<3&&(ft=We,We=null);var ht=zt(He,N,We==null?fe:De(We),ft);return ht.row=function(Nt){return arguments.length?ht.response((We=Nt)==null?fe:De(Nt)):We},ht}function fe(He){return le.parse(He.responseText)}function De(He){return function(We){return le.parse(We.responseText,He)}}le.parse=function(He,We){var ft;return le.parseRows(He,function(ht,Nt){if(ft)return ft(ht,Nt-1);var $t=function(pt){for(var Dt={},Bt=ht.length,Wt=0;Wt=$t)return ht;if(Wt)return Wt=!1,ft;var Dr=pt;if(He.charCodeAt(Dr)===34){for(var Hr=Dr;Hr++<$t;)if(He.charCodeAt(Hr)===34){if(He.charCodeAt(Hr+1)!==34)break;++Hr}pt=Hr+2;var ii=He.charCodeAt(Hr+1);return ii===13?(Wt=!0,He.charCodeAt(Hr+2)===10&&++pt):ii===10&&(Wt=!0),He.slice(Dr+1,Hr).replace(/""/g,'"')}for(;pt<$t;){var ii=He.charCodeAt(pt++),vi=1;if(ii===10)Wt=!0;else if(ii===13)Wt=!0,He.charCodeAt(pt)===10&&(++pt,++vi);else if(ii!==ne)continue;return He.slice(Dr,pt-vi)}return He.slice(Dr)}for(;(Bt=Xt())!==ht;){for(var Lt=[];Bt!==ft&&Bt!==ht;)Lt.push(Bt),Bt=Xt();We&&(Lt=We(Lt,Dt++))==null||Nt.push(Lt)}return Nt},le.format=function(He){if(Array.isArray(He[0]))return le.formatRows(He);var We=new D,ft=[];return He.forEach(function(ht){for(var Nt in ht)We.has(Nt)||ft.push(We.add(Nt))}),[ft.map(ze).join(z)].concat(He.map(function(ht){return ft.map(function(Nt){return ze(ht[Nt])}).join(z)})).join(` -`)},le.formatRows=function(He){return He.map(me).join(` -`)};function me(He){return He.map(ze).join(z)}function ze(He){return Z.test(He)?'"'+He.replace(/\"/g,'""')+'"':He}return le},e.csv=e.dsv(",","text/csv"),e.tsv=e.dsv(" ","text/tab-separated-values");var wr,Zr,ri,Si,sn=this[R(this,"requestAnimationFrame")]||function(z){setTimeout(z,17)};e.timer=function(){jn.apply(this,arguments)};function jn(z,N,Z){var ne=arguments.length;ne<2&&(N=0),ne<3&&(Z=Date.now());var le=Z+N,fe={c:z,t:le,n:null};return Zr?Zr.n=fe:wr=fe,Zr=fe,ri||(Si=clearTimeout(Si),ri=1,sn(bn)),fe}function bn(){var z=ga(),N=Xn()-z;N>24?(isFinite(N)&&(clearTimeout(Si),Si=setTimeout(bn,N)),ri=0):(ri=1,sn(bn))}e.timer.flush=function(){ga(),Xn()};function ga(){for(var z=Date.now(),N=wr;N;)z>=N.t&&N.c(z-N.t)&&(N.c=null),N=N.n;return z}function Xn(){for(var z,N=wr,Z=1/0;N;)N.c?(N.t=0;--me)pt.push(le[He[ft[me]][2]]);for(me=+Nt;me1&&Zt(z[Z[ne-2]],z[Z[ne-1]],z[le])<=0;)--ne;Z[ne++]=le}return Z.slice(0,ne)}function Oo(z,N){return z[0]-N[0]||z[1]-N[1]}e.geom.polygon=function(z){return q(z,gs),z};var gs=e.geom.polygon.prototype=[];gs.area=function(){for(var z=-1,N=this.length,Z,ne=this[N-1],le=0;++z_t)me=me.L;else if(De=N-mc(me,Z),De>_t){if(!me.R){ne=me;break}me=me.R}else{fe>-_t?(ne=me.P,le=me):De>-_t?(ne=me,le=me.N):ne=le=me;break}var ze=Vl(z);if(co.insert(ne,ze),!(!ne&&!le)){if(ne===le){fu(ne),le=Vl(ne.site),co.insert(ze,le),ze.edge=le.edge=du(ne.site,ze.site),ks(ne),ks(le);return}if(!le){ze.edge=du(ne.site,ze.site);return}fu(ne),fu(le);var He=ne.site,We=He.x,ft=He.y,ht=z.x-We,Nt=z.y-ft,$t=le.site,pt=$t.x-We,Dt=$t.y-ft,Bt=2*(ht*Dt-Nt*pt),Wt=ht*ht+Nt*Nt,Xt=pt*pt+Dt*Dt,Lt={x:(Dt*Wt-Nt*Xt)/Bt+We,y:(ht*Xt-pt*Wt)/Bt+ft};jc(le.edge,He,$t,Lt),ze.edge=du(He,z,null,Lt),le.edge=du(z,$t,null,Lt),ks(ne),ks(le)}}function Mu(z,N){var Z=z.site,ne=Z.x,le=Z.y,fe=le-N;if(!fe)return ne;var De=z.P;if(!De)return-1/0;Z=De.site;var me=Z.x,ze=Z.y,He=ze-N;if(!He)return me;var We=me-ne,ft=1/fe-1/He,ht=We/He;return ft?(-ht+Math.sqrt(ht*ht-2*ft*(We*We/(-2*He)-ze+He/2+le-fe/2)))/ft+ne:(ne+me)/2}function mc(z,N){var Z=z.N;if(Z)return Mu(Z,N);var ne=z.site;return ne.y===N?ne.x:1/0}function Gl(z){this.site=z,this.edges=[]}Gl.prototype.prepare=function(){for(var z=this.edges,N=z.length,Z;N--;)Z=z[N].edge,(!Z.b||!Z.a)&&z.splice(N,1);return z.sort(Su),z.length};function Xa(z){for(var N=z[0][0],Z=z[1][0],ne=z[0][1],le=z[1][1],fe,De,me,ze,He=Go,We=He.length,ft,ht,Nt,$t,pt,Dt;We--;)if(ft=He[We],!(!ft||!ft.prepare()))for(Nt=ft.edges,$t=Nt.length,ht=0;ht<$t;)Dt=Nt[ht].end(),me=Dt.x,ze=Dt.y,pt=Nt[++ht%$t].start(),fe=pt.x,De=pt.y,(g(me-fe)>_t||g(ze-De)>_t)&&(Nt.splice(ht,0,new s0(zv(ft.site,Dt,g(me-N)<_t&&le-ze>_t?{x:N,y:g(fe-N)<_t?De:le}:g(ze-le)<_t&&Z-me>_t?{x:g(De-le)<_t?fe:Z,y:le}:g(me-Z)<_t&&ze-ne>_t?{x:Z,y:g(fe-Z)<_t?De:ne}:g(ze-ne)<_t&&me-N>_t?{x:g(De-ne)<_t?fe:N,y:ne}:null),ft.site,null)),++$t)}function Su(z,N){return N.angle-z.angle}function Yu(){xh(this),this.x=this.y=this.arc=this.site=this.cy=null}function ks(z){var N=z.P,Z=z.N;if(!(!N||!Z)){var ne=N.site,le=z.site,fe=Z.site;if(ne!==fe){var De=le.x,me=le.y,ze=ne.x-De,He=ne.y-me,We=fe.x-De,Dt=fe.y-me,ft=2*(ze*Dt-He*We);if(!(ft>=-Ne)){var ht=ze*ze+He*He,Nt=We*We+Dt*Dt,$t=(Dt*ht-He*Nt)/ft,pt=(ze*Nt-We*ht)/ft,Dt=pt+me,Bt=Js.pop()||new Yu;Bt.arc=z,Bt.site=le,Bt.x=$t+De,Bt.y=Dt+Math.sqrt($t*$t+pt*pt),Bt.cy=Dt,z.circle=Bt;for(var Wt=null,Xt=ms._;Xt;)if(Bt.y0)){if(pt/=Nt,Nt<0){if(pt0){if(pt>ht)return;pt>ft&&(ft=pt)}if(pt=Z-me,!(!Nt&&pt<0)){if(pt/=Nt,Nt<0){if(pt>ht)return;pt>ft&&(ft=pt)}else if(Nt>0){if(pt0)){if(pt/=$t,$t<0){if(pt0){if(pt>ht)return;pt>ft&&(ft=pt)}if(pt=ne-ze,!(!$t&&pt<0)){if(pt/=$t,$t<0){if(pt>ht)return;pt>ft&&(ft=pt)}else if($t>0){if(pt0&&(le.a={x:me+ft*Nt,y:ze+ft*$t}),ht<1&&(le.b={x:me+ht*Nt,y:ze+ht*$t}),le}}}}}}function _o(z){for(var N=No,Z=yh(z[0][0],z[0][1],z[1][0],z[1][1]),ne=N.length,le;ne--;)le=N[ne],(!hu(le,z)||!Z(le)||g(le.a.x-le.b.x)<_t&&g(le.a.y-le.b.y)<_t)&&(le.a=le.b=null,N.splice(ne,1))}function hu(z,N){var Z=z.b;if(Z)return!0;var ne=z.a,le=N[0][0],fe=N[1][0],De=N[0][1],me=N[1][1],ze=z.l,He=z.r,We=ze.x,ft=ze.y,ht=He.x,Nt=He.y,$t=(We+ht)/2,pt=(ft+Nt)/2,Dt,Bt;if(Nt===ft){if($t=fe)return;if(We>ht){if(!ne)ne={x:$t,y:De};else if(ne.y>=me)return;Z={x:$t,y:me}}else{if(!ne)ne={x:$t,y:me};else if(ne.y1)if(We>ht){if(!ne)ne={x:(De-Bt)/Dt,y:De};else if(ne.y>=me)return;Z={x:(me-Bt)/Dt,y:me}}else{if(!ne)ne={x:(me-Bt)/Dt,y:me};else if(ne.y=fe)return;Z={x:fe,y:Dt*fe+Bt}}else{if(!ne)ne={x:fe,y:Dt*fe+Bt};else if(ne.x=We&&Bt.x<=ht&&Bt.y>=ft&&Bt.y<=Nt?[[We,Nt],[ht,Nt],[ht,ft],[We,ft]]:[];Wt.point=ze[pt]}),He}function me(ze){return ze.map(function(He,We){return{x:Math.round(ne(He,We)/_t)*_t,y:Math.round(le(He,We)/_t)*_t,i:We}})}return De.links=function(ze){return bh(me(ze)).edges.filter(function(He){return He.l&&He.r}).map(function(He){return{source:ze[He.l.i],target:ze[He.r.i]}})},De.triangles=function(ze){var He=[];return bh(me(ze)).cells.forEach(function(We,ft){for(var ht=We.site,Nt=We.edges.sort(Su),$t=-1,pt=Nt.length,Dt,Bt,Wt=Nt[pt-1].edge,Xt=Wt.l===ht?Wt.r:Wt.l;++$tXt&&(Xt=We.x),We.y>Lt&&(Lt=We.y),Nt.push(We.x),$t.push(We.y);else for(pt=0;ptXt&&(Xt=Dr),Hr>Lt&&(Lt=Hr),Nt.push(Dr),$t.push(Hr)}var ii=Xt-Bt,vi=Lt-Wt;ii>vi?Lt=Wt+ii:Xt=Bt+vi;function Ii(ji,Dn,Ha,tl,fo,si,qn,Zn){if(!(isNaN(Ha)||isNaN(tl)))if(ji.leaf){var Ua=ji.x,ys=ji.y;if(Ua!=null)if(g(Ua-Ha)+g(ys-tl)<.01)Ri(ji,Dn,Ha,tl,fo,si,qn,Zn);else{var Ml=ji.point;ji.x=ji.y=ji.point=null,Ri(ji,Ml,Ua,ys,fo,si,qn,Zn),Ri(ji,Dn,Ha,tl,fo,si,qn,Zn)}else ji.x=Ha,ji.y=tl,ji.point=Dn}else Ri(ji,Dn,Ha,tl,fo,si,qn,Zn)}function Ri(ji,Dn,Ha,tl,fo,si,qn,Zn){var Ua=(fo+qn)*.5,ys=(si+Zn)*.5,Ml=Ha>=Ua,Du=tl>=ys,ec=Du<<1|Ml;ji.leaf=!1,ji=ji.nodes[ec]||(ji.nodes[ec]=Ov()),Ml?fo=Ua:qn=Ua,Du?si=ys:Zn=ys,Ii(ji,Dn,Ha,tl,fo,si,qn,Zn)}var Bn=Ov();if(Bn.add=function(ji){Ii(Bn,ji,+ft(ji,++pt),+ht(ji,pt),Bt,Wt,Xt,Lt)},Bn.visit=function(ji){$c(ji,Bn,Bt,Wt,Xt,Lt)},Bn.find=function(ji){return mp(Bn,ji[0],ji[1],Bt,Wt,Xt,Lt)},pt=-1,N==null){for(;++ptfe||ht>De||Nt=Dr,vi=Z>=Hr,Ii=vi<<1|ii,Ri=Ii+4;IiZ&&(fe=N.slice(Z,fe),me[De]?me[De]+=fe:me[++De]=fe),(ne=ne[0])===(le=le[0])?me[De]?me[De]+=le:me[++De]=le:(me[++De]=null,ze.push({i:De,x:Cs(ne,le)})),Z=td.lastIndex;return Z=0&&!(ne=e.interpolators[Z](z,N)););return ne}e.interpolators=[function(z,N){var Z=typeof N;return(Z==="string"?lt.has(N.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(N)?_h:Ho:N instanceof nr?_h:Array.isArray(N)?c0:Z==="object"&&isNaN(N)?Xu:Cs)(z,N)}],e.interpolateArray=c0;function c0(z,N){var Z=[],ne=[],le=z.length,fe=N.length,De=Math.min(z.length,N.length),me;for(me=0;me=0?z.slice(0,N):z,ne=N>=0?z.slice(N+1):"in";return Z=yg.get(Z)||Nv,ne=ey.get(ne)||L,zx(ne(Z.apply(null,t.call(arguments,1))))};function zx(z){return function(N){return N<=0?0:N>=1?1:z(N)}}function Th(z){return function(N){return 1-z(1-N)}}function Us(z){return function(N){return .5*(N<.5?z(2*N):2-z(2-2*N))}}function Uv(z){return z*z}function Vv(z){return z*z*z}function Ah(z){if(z<=0)return 0;if(z>=1)return 1;var N=z*z,Z=N*z;return 4*(z<.5?Z:3*(z-N)+Z-.75)}function xg(z){return function(N){return Math.pow(N,z)}}function rd(z){return 1-Math.cos(z*Re)}function yp(z){return Math.pow(2,10*(z-1))}function gf(z){return 1-Math.sqrt(1-z*z)}function Gv(z,N){var Z;return arguments.length<2&&(N=.45),arguments.length?Z=N/Ge*Math.asin(1/z):(z=1,Z=N/4),function(ne){return 1+z*Math.pow(2,-10*ne)*Math.sin((ne-Z)*Ge/N)}}function xp(z){return z||(z=1.70158),function(N){return N*N*((z+1)*N-z)}}function id(z){return z<1/2.75?7.5625*z*z:z<2/2.75?7.5625*(z-=1.5/2.75)*z+.75:z<2.5/2.75?7.5625*(z-=2.25/2.75)*z+.9375:7.5625*(z-=2.625/2.75)*z+.984375}e.interpolateHcl=bg;function bg(z,N){z=e.hcl(z),N=e.hcl(N);var Z=z.h,ne=z.c,le=z.l,fe=N.h-Z,De=N.c-ne,me=N.l-le;return isNaN(De)&&(De=0,ne=isNaN(ne)?N.c:ne),isNaN(fe)?(fe=0,Z=isNaN(Z)?N.h:Z):fe>180?fe-=360:fe<-180&&(fe+=360),function(ze){return Xi(Z+fe*ze,ne+De*ze,le+me*ze)+""}}e.interpolateHsl=_g;function _g(z,N){z=e.hsl(z),N=e.hsl(N);var Z=z.h,ne=z.s,le=z.l,fe=N.h-Z,De=N.s-ne,me=N.l-le;return isNaN(De)&&(De=0,ne=isNaN(ne)?N.s:ne),isNaN(fe)?(fe=0,Z=isNaN(Z)?N.h:Z):fe>180?fe-=360:fe<-180&&(fe+=360),function(ze){return ui(Z+fe*ze,ne+De*ze,le+me*ze)+""}}e.interpolateLab=ty;function ty(z,N){z=e.lab(z),N=e.lab(N);var Z=z.l,ne=z.a,le=z.b,fe=N.l-Z,De=N.a-ne,me=N.b-le;return function(ze){return oa(Z+fe*ze,ne+De*ze,le+me*ze)+""}}e.interpolateRound=$f;function $f(z,N){return N-=z,function(Z){return Math.round(z+N*Z)}}e.transform=function(z){var N=i.createElementNS(e.ns.prefix.svg,"g");return(e.transform=function(Z){if(Z!=null){N.setAttribute("transform",Z);var ne=N.transform.baseVal.consolidate()}return new Hv(ne?ne.matrix:nd)})(z)};function Hv(z){var N=[z.a,z.b],Z=[z.c,z.d],ne=bp(N),le=Wf(N,Z),fe=bp(yc(Z,N,-le))||0;N[0]*Z[1]180?N+=360:N-z>180&&(z+=360),ne.push({i:Z.push(Yf(Z)+"rotate(",null,")")-2,x:Cs(z,N)})):N&&Z.push(Yf(Z)+"rotate("+N+")")}function Tg(z,N,Z,ne){z!==N?ne.push({i:Z.push(Yf(Z)+"skewX(",null,")")-2,x:Cs(z,N)}):N&&Z.push(Yf(Z)+"skewX("+N+")")}function $v(z,N,Z,ne){if(z[0]!==N[0]||z[1]!==N[1]){var le=Z.push(Yf(Z)+"scale(",null,",",null,")");ne.push({i:le-4,x:Cs(z[0],N[0])},{i:le-2,x:Cs(z[1],N[1])})}else(N[0]!==1||N[1]!==1)&&Z.push(Yf(Z)+"scale("+N+")")}function _p(z,N){var Z=[],ne=[];return z=e.transform(z),N=e.transform(N),wg(z.translate,N.translate,Z,ne),jv(z.rotate,N.rotate,Z,ne),Tg(z.skew,N.skew,Z,ne),$v(z.scale,N.scale,Z,ne),z=N=null,function(le){for(var fe=-1,De=ne.length,me;++fe0?fe=Lt:(Z.c=null,Z.t=NaN,Z=null,N.end({type:"end",alpha:fe=0})):Lt>0&&(N.start({type:"start",alpha:fe=Lt}),Z=jn(z.tick)),z):fe},z.start=function(){var Lt,Dr=Nt.length,Hr=$t.length,ii=ne[0],vi=ne[1],Ii,Ri;for(Lt=0;Lt=0;)fe.push(We=He[ze]),We.parent=me,We.depth=me.depth+1;Z&&(me.value=0),me.children=He}else Z&&(me.value=+Z.call(ne,me,me.depth)||0),delete me.children;return Ku(le,function(ft){var ht,Nt;z&&(ht=ft.children)&&ht.sort(z),Z&&(Nt=ft.parent)&&(Nt.value+=ft.value)}),De}return ne.sort=function(le){return arguments.length?(z=le,ne):z},ne.children=function(le){return arguments.length?(N=le,ne):N},ne.value=function(le){return arguments.length?(Z=le,ne):Z},ne.revalue=function(le){return Z&&(yf(le,function(fe){fe.children&&(fe.value=0)}),Ku(le,function(fe){var De;fe.children||(fe.value=+Z.call(ne,fe,fe.depth)||0),(De=fe.parent)&&(De.value+=fe.value)})),le},ne};function mf(z,N){return e.rebind(z,N,"sort","children","value"),z.nodes=z,z.links=xc,z}function yf(z,N){for(var Z=[z];(z=Z.pop())!=null;)if(N(z),(le=z.children)&&(ne=le.length))for(var ne,le;--ne>=0;)Z.push(le[ne])}function Ku(z,N){for(var Z=[z],ne=[];(z=Z.pop())!=null;)if(ne.push(z),(De=z.children)&&(fe=De.length))for(var le=-1,fe,De;++lele&&(le=me),ne.push(me)}for(De=0;Dene&&(Z=N,ne=le);return Z}function Ep(z){return z.reduce(h0,0)}function h0(z,N){return z+N[1]}e.layout.histogram=function(){var z=!0,N=Number,Z=sd,ne=kp;function le(fe,ht){for(var me=[],ze=fe.map(N,this),He=Z.call(this,ze,ht),We=ne.call(this,He,ze,ht),ft,ht=-1,Nt=ze.length,$t=We.length-1,pt=z?1:1/Nt,Dt;++ht<$t;)ft=me[ht]=[],ft.dx=We[ht+1]-(ft.x=We[ht]),ft.y=0;if($t>0)for(ht=-1;++ht=He[0]&&Dt<=He[1]&&(ft=me[e.bisect(We,Dt,1,$t)-1],ft.y+=pt,ft.push(fe[ht]));return me}return le.value=function(fe){return arguments.length?(N=fe,le):N},le.range=function(fe){return arguments.length?(Z=kt(fe),le):Z},le.bins=function(fe){return arguments.length?(ne=typeof fe=="number"?function(De){return d0(De,fe)}:kt(fe),le):ne},le.frequency=function(fe){return arguments.length?(z=!!fe,le):z},le};function kp(z,N){return d0(z,Math.ceil(Math.log(N.length)/Math.LN2+1))}function d0(z,N){for(var Z=-1,ne=+z[0],le=(z[1]-ne)/N,fe=[];++Z<=N;)fe[Z]=le*Z+ne;return fe}function sd(z){return[e.min(z),e.max(z)]}e.layout.pack=function(){var z=e.layout.hierarchy().sort(ld),N=0,Z=[1,1],ne;function le(fe,De){var me=z.call(this,fe,De),ze=me[0],He=Z[0],We=Z[1],ft=ne==null?Math.sqrt:typeof ne=="function"?ne:function(){return ne};if(ze.x=ze.y=0,Ku(ze,function(Nt){Nt.r=+ft(Nt.value)}),Ku(ze,ly),N){var ht=N*(ne?1:Math.max(2*ze.r/He,2*ze.r/We))/2;Ku(ze,function(Nt){Nt.r+=ht}),Ku(ze,ly),Ku(ze,function(Nt){Nt.r-=ht})}return Kv(ze,He/2,We/2,ne?1:1/Math.max(2*ze.r/He,2*ze.r/We)),me}return le.size=function(fe){return arguments.length?(Z=fe,le):Z},le.radius=function(fe){return arguments.length?(ne=fe==null||typeof fe=="function"?fe:+fe,le):ne},le.padding=function(fe){return arguments.length?(N=+fe,le):N},mf(le,z)};function ld(z,N){return z.value-N.value}function Cp(z,N){var Z=z._pack_next;z._pack_next=N,N._pack_prev=z,N._pack_next=Z,Z._pack_prev=N}function Sg(z,N){z._pack_next=N,N._pack_prev=z}function Zv(z,N){var Z=N.x-z.x,ne=N.y-z.y,le=z.r+N.r;return .999*le*le>Z*Z+ne*ne}function ly(z){if(!(N=z.children)||!(ht=N.length))return;var N,Z=1/0,ne=-1/0,le=1/0,fe=-1/0,De,me,ze,He,We,ft,ht;function Nt(Lt){Z=Math.min(Lt.x-Lt.r,Z),ne=Math.max(Lt.x+Lt.r,ne),le=Math.min(Lt.y-Lt.r,le),fe=Math.max(Lt.y+Lt.r,fe)}if(N.forEach(uy),De=N[0],De.x=-De.r,De.y=0,Nt(De),ht>1&&(me=N[1],me.x=me.r,me.y=0,Nt(me),ht>2))for(ze=N[2],hl(De,me,ze),Nt(ze),Cp(De,ze),De._pack_prev=ze,Cp(ze,me),me=De._pack_next,He=3;HeDt.x&&(Dt=Dr),Dr.depth>Bt.depth&&(Bt=Dr)});var Wt=N(pt,Dt)/2-pt.x,Xt=Z[0]/(Dt.x+N(Dt,pt)/2+Wt),Lt=Z[1]/(Bt.depth||1);yf(Nt,function(Dr){Dr.x=(Dr.x+Wt)*Xt,Dr.y=Dr.depth*Lt})}return ht}function fe(We){for(var ft={A:null,children:[We]},ht=[ft],Nt;(Nt=ht.pop())!=null;)for(var $t=Nt.children,pt,Dt=0,Bt=$t.length;Dt0&&(Fp(Te(pt,We,ht),We,Dr),Bt+=Dr,Wt+=Dr),Xt+=pt.m,Bt+=Nt.m,Lt+=Dt.m,Wt+=$t.m;pt&&!kg($t)&&($t.t=pt,$t.m+=Xt-Wt),Nt&&!Dp(Dt)&&(Dt.t=Nt,Dt.m+=Bt-Lt,ht=We)}return ht}function He(We){We.x*=Z[0],We.y=We.depth*Z[1]}return le.separation=function(We){return arguments.length?(N=We,le):N},le.size=function(We){return arguments.length?(ne=(Z=We)==null?He:null,le):ne?null:Z},le.nodeSize=function(We){return arguments.length?(ne=(Z=We)==null?null:He,le):ne?Z:null},mf(le,z)};function Yc(z,N){return z.parent==N.parent?1:2}function Dp(z){var N=z.children;return N.length?N[0]:z.t}function kg(z){var N=z.children,Z;return(Z=N.length)?N[Z-1]:z.t}function Fp(z,N,Z){var ne=Z/(N.i-z.i);N.c-=ne,N.s+=Z,z.c+=ne,N.z+=Z,N.m+=Z}function Lp(z){for(var N=0,Z=0,ne=z.children,le=ne.length,fe;--le>=0;)fe=ne[le],fe.z+=N,fe.m+=N,N+=fe.s+(Z+=fe.c)}function Te(z,N,Z){return z.a.parent===N.parent?z.a:Z}e.layout.cluster=function(){var z=e.layout.hierarchy().sort(null).value(null),N=Yc,Z=[1,1],ne=!1;function le(fe,De){var me=z.call(this,fe,De),ze=me[0],He,We=0;Ku(ze,function(pt){var Dt=pt.children;Dt&&Dt.length?(pt.x=rt(Dt),pt.y=qe(Dt)):(pt.x=He?We+=N(pt,He):0,pt.y=0,He=pt)});var ft=Ye(ze),ht=At(ze),Nt=ft.x-N(ft,ht)/2,$t=ht.x+N(ht,ft)/2;return Ku(ze,ne?function(pt){pt.x=(pt.x-ze.x)*Z[0],pt.y=(ze.y-pt.y)*Z[1]}:function(pt){pt.x=(pt.x-Nt)/($t-Nt)*Z[0],pt.y=(1-(ze.y?pt.y/ze.y:1))*Z[1]}),me}return le.separation=function(fe){return arguments.length?(N=fe,le):N},le.size=function(fe){return arguments.length?(ne=(Z=fe)==null,le):ne?null:Z},le.nodeSize=function(fe){return arguments.length?(ne=(Z=fe)!=null,le):ne?Z:null},mf(le,z)};function qe(z){return 1+e.max(z,function(N){return N.y})}function rt(z){return z.reduce(function(N,Z){return N+Z.x},0)/z.length}function Ye(z){var N=z.children;return N&&N.length?Ye(N[0]):z}function At(z){var N=z.children,Z;return N&&(Z=N.length)?At(N[Z-1]):z}e.layout.treemap=function(){var z=e.layout.hierarchy(),N=Math.round,Z=[1,1],ne=null,le=Ht,fe=!1,De,me="squarify",ze=.5*(1+Math.sqrt(5));function He(pt,Dt){for(var Bt=-1,Wt=pt.length,Xt,Lt;++Bt0;)Wt.push(Lt=Xt[vi-1]),Wt.area+=Lt.area,me!=="squarify"||(Hr=ht(Wt,ii))<=Dr?(Xt.pop(),Dr=Hr):(Wt.area-=Wt.pop().area,Nt(Wt,ii,Bt,!1),ii=Math.min(Bt.dx,Bt.dy),Wt.length=Wt.area=0,Dr=1/0);Wt.length&&(Nt(Wt,ii,Bt,!0),Wt.length=Wt.area=0),Dt.forEach(We)}}function ft(pt){var Dt=pt.children;if(Dt&&Dt.length){var Bt=le(pt),Wt=Dt.slice(),Xt,Lt=[];for(He(Wt,Bt.dx*Bt.dy/pt.value),Lt.area=0;Xt=Wt.pop();)Lt.push(Xt),Lt.area+=Xt.area,Xt.z!=null&&(Nt(Lt,Xt.z?Bt.dx:Bt.dy,Bt,!Wt.length),Lt.length=Lt.area=0);Dt.forEach(ft)}}function ht(pt,Dt){for(var Bt=pt.area,Wt,Xt=0,Lt=1/0,Dr=-1,Hr=pt.length;++DrXt&&(Xt=Wt));return Bt*=Bt,Dt*=Dt,Bt?Math.max(Dt*Xt*ze/Bt,Bt/(Dt*Lt*ze)):1/0}function Nt(pt,Dt,Bt,Wt){var Xt=-1,Lt=pt.length,Dr=Bt.x,Hr=Bt.y,ii=Dt?N(pt.area/Dt):0,vi;if(Dt==Bt.dx){for((Wt||ii>Bt.dy)&&(ii=Bt.dy);++XtBt.dx)&&(ii=Bt.dx);++Xt1);return z+N*ne*Math.sqrt(-2*Math.log(fe)/fe)}},logNormal:function(){var z=e.random.normal.apply(e,arguments);return function(){return Math.exp(z())}},bates:function(z){var N=e.random.irwinHall(z);return function(){return N()/z}},irwinHall:function(z){return function(){for(var N=0,Z=0;Z2?Fr:Ir,He=ne?Yv:Wv;return le=ze(z,N,He,Z),fe=ze(N,z,He,wh),me}function me(ze){return le(ze)}return me.invert=function(ze){return fe(ze)},me.domain=function(ze){return arguments.length?(z=ze.map(Number),De()):z},me.range=function(ze){return arguments.length?(N=ze,De()):N},me.rangeRound=function(ze){return me.range(ze).interpolate($f)},me.clamp=function(ze){return arguments.length?(ne=ze,De()):ne},me.interpolate=function(ze){return arguments.length?(Z=ze,De()):Z},me.ticks=function(ze){return Ji(z,ze)},me.tickFormat=function(ze,He){return d3_scale_linearTickFormat(z,ze,He)},me.nice=function(ze){return Di(z,ze),De()},me.copy=function(){return jr(z,N,Z,ne)},De()}function qi(z,N){return e.rebind(z,N,"range","rangeRound","interpolate","clamp")}function Di(z,N){return ir(z,hr(Hi(z,N)[2])),ir(z,hr(Hi(z,N)[2])),z}function Hi(z,N){N==null&&(N=10);var Z=fr(z),ne=Z[1]-Z[0],le=Math.pow(10,Math.floor(Math.log(ne/N)/Math.LN10)),fe=N/ne*le;return fe<=.15?le*=10:fe<=.35?le*=5:fe<=.75&&(le*=2),Z[0]=Math.ceil(Z[0]/le)*le,Z[1]=Math.floor(Z[1]/le)*le+le*.5,Z[2]=le,Z}function Ji(z,N){return e.range.apply(e,Hi(z,N))}var Xr={s:1,g:1,p:1,r:1,e:1};function oi(z){return-Math.floor(Math.log(z)/Math.LN10+.01)}function ln(z,N){var Z=oi(N[2]);return z in Xr?Math.abs(Z-oi(Math.max(g(N[0]),g(N[1]))))+ +(z!=="e"):Z-(z==="%")*2}e.scale.log=function(){return Cn(e.scale.linear().domain([0,1]),10,!0,[1,10])};function Cn(z,N,Z,ne){function le(me){return(Z?Math.log(me<0?0:me):-Math.log(me>0?0:-me))/Math.log(N)}function fe(me){return Z?Math.pow(N,me):-Math.pow(N,-me)}function De(me){return z(le(me))}return De.invert=function(me){return fe(z.invert(me))},De.domain=function(me){return arguments.length?(Z=me[0]>=0,z.domain((ne=me.map(Number)).map(le)),De):ne},De.base=function(me){return arguments.length?(N=+me,z.domain(ne.map(le)),De):N},De.nice=function(){var me=ir(ne.map(le),Z?Math:ba);return z.domain(me),ne=me.map(fe),De},De.ticks=function(){var me=fr(ne),ze=[],He=me[0],We=me[1],ft=Math.floor(le(He)),ht=Math.ceil(le(We)),Nt=N%1?2:N;if(isFinite(ht-ft)){if(Z){for(;ft0;$t--)ze.push(fe(ft)*$t);for(ft=0;ze[ft]We;ht--);ze=ze.slice(ft,ht)}return ze},De.copy=function(){return Cn(z.copy(),N,Z,ne)},qi(De,z)}var ba={floor:function(z){return-Math.ceil(-z)},ceil:function(z){return-Math.floor(-z)}};e.scale.pow=function(){return Za(e.scale.linear(),1,[0,1])};function Za(z,N,Z){var ne=Pa(N),le=Pa(1/N);function fe(De){return z(ne(De))}return fe.invert=function(De){return le(z.invert(De))},fe.domain=function(De){return arguments.length?(z.domain((Z=De.map(Number)).map(ne)),fe):Z},fe.ticks=function(De){return Ji(Z,De)},fe.tickFormat=function(De,me){return d3_scale_linearTickFormat(Z,De,me)},fe.nice=function(De){return fe.domain(Di(Z,De))},fe.exponent=function(De){return arguments.length?(ne=Pa(N=De),le=Pa(1/N),z.domain(Z.map(ne)),fe):N},fe.copy=function(){return Za(z.copy(),N,Z)},qi(fe,z)}function Pa(z){return function(N){return N<0?-Math.pow(-N,z):Math.pow(N,z)}}e.scale.sqrt=function(){return e.scale.pow().exponent(.5)},e.scale.ordinal=function(){return wo([],{t:"range",a:[[]]})};function wo(z,N){var Z,ne,le;function fe(me){return ne[((Z.get(me)||(N.t==="range"?Z.set(me,z.push(me)):NaN))-1)%ne.length]}function De(me,ze){return e.range(z.length).map(function(He){return me+ze*He})}return fe.domain=function(me){if(!arguments.length)return z;z=[],Z=new b;for(var ze=-1,He=me.length,We;++ze0?Z[fe-1]:z[0],feht?0:1;if(We=je)return ze(We,$t)+(He?ze(He,1-$t):"")+"Z";var pt,Dt,Bt,Wt,Xt=0,Lt=0,Dr,Hr,ii,vi,Ii,Ri,Bn,ji,Dn=[];if((Wt=(+De.apply(this,arguments)||0)/2)&&(Bt=ne===xf?Math.sqrt(He*He+We*We):+ne.apply(this,arguments),$t||(Lt*=-1),We&&(Lt=ur(Bt/We*Math.sin(Wt))),He&&(Xt=ur(Bt/He*Math.sin(Wt)))),We){Dr=We*Math.cos(ft+Lt),Hr=We*Math.sin(ft+Lt),ii=We*Math.cos(ht-Lt),vi=We*Math.sin(ht-Lt);var Ha=Math.abs(ht-ft-2*Lt)<=Ue?0:1;if(Lt&&Pp(Dr,Hr,ii,vi)===$t^Ha){var tl=(ft+ht)/2;Dr=We*Math.cos(tl),Hr=We*Math.sin(tl),ii=vi=null}}else Dr=Hr=0;if(He){Ii=He*Math.cos(ht-Xt),Ri=He*Math.sin(ht-Xt),Bn=He*Math.cos(ft+Xt),ji=He*Math.sin(ft+Xt);var fo=Math.abs(ft-ht+2*Xt)<=Ue?0:1;if(Xt&&Pp(Ii,Ri,Bn,ji)===1-$t^fo){var si=(ft+ht)/2;Ii=He*Math.cos(si),Ri=He*Math.sin(si),Bn=ji=null}}else Ii=Ri=0;if(Nt>_t&&(pt=Math.min(Math.abs(We-He)/2,+Z.apply(this,arguments)))>.001){Dt=He0?0:1}function Cg(z,N,Z,ne,le){var fe=z[0]-N[0],De=z[1]-N[1],me=(le?ne:-ne)/Math.sqrt(fe*fe+De*De),ze=me*De,He=-me*fe,We=z[0]+ze,ft=z[1]+He,ht=N[0]+ze,Nt=N[1]+He,$t=(We+ht)/2,pt=(ft+Nt)/2,Dt=ht-We,Bt=Nt-ft,Wt=Dt*Dt+Bt*Bt,Xt=Z-ne,Lt=We*Nt-ht*ft,Dr=(Bt<0?-1:1)*Math.sqrt(Math.max(0,Xt*Xt*Wt-Lt*Lt)),Hr=(Lt*Bt-Dt*Dr)/Wt,ii=(-Lt*Dt-Bt*Dr)/Wt,vi=(Lt*Bt+Dt*Dr)/Wt,Ii=(-Lt*Dt+Bt*Dr)/Wt,Ri=Hr-$t,Bn=ii-pt,ji=vi-$t,Dn=Ii-pt;return Ri*Ri+Bn*Bn>ji*ji+Dn*Dn&&(Hr=vi,ii=Ii),[[Hr-ze,ii-He],[Hr*Z/Xt,ii*Z/Xt]]}function Jv(){return!0}function qx(z){var N=to,Z=uo,ne=Jv,le=Zc,fe=le.key,De=.7;function me(ze){var He=[],We=[],ft=-1,ht=ze.length,Nt,$t=kt(N),pt=kt(Z);function Dt(){He.push("M",le(z(We),De))}for(;++ft1?z.join("L"):z+"Z"}function cy(z){return z.join("L")+"Z"}function e1(z){for(var N=0,Z=z.length,ne=z[0],le=[ne[0],",",ne[1]];++N1&&le.push("H",ne[0]),le.join("")}function Dg(z){for(var N=0,Z=z.length,ne=z[0],le=[ne[0],",",ne[1]];++N1){me=N[1],fe=z[ze],ze++,ne+="C"+(le[0]+De[0])+","+(le[1]+De[1])+","+(fe[0]-me[0])+","+(fe[1]-me[1])+","+fe[0]+","+fe[1];for(var He=2;He9&&(fe=Z*3/Math.sqrt(fe),De[me]=fe*ne,De[me+1]=fe*le));for(me=-1;++me<=ze;)fe=(z[Math.min(ze,me+1)][0]-z[Math.max(0,me-1)][0])/(6*(1+De[me]*De[me])),N.push([fe||0,De[me]*fe||0]);return N}function Ke(z){return z.length<3?Zc(z):z[0]+Rp(z,Pe(z))}e.svg.line.radial=function(){var z=qx(nt);return z.radius=z.x,delete z.x,z.angle=z.y,delete z.y,z};function nt(z){for(var N,Z=-1,ne=z.length,le,fe;++ZUe)+",1 "+ft}function He(We,ft,ht,Nt){return"Q 0,0 "+Nt}return fe.radius=function(We){return arguments.length?(Z=kt(We),fe):Z},fe.source=function(We){return arguments.length?(z=kt(We),fe):z},fe.target=function(We){return arguments.length?(N=kt(We),fe):N},fe.startAngle=function(We){return arguments.length?(ne=kt(We),fe):ne},fe.endAngle=function(We){return arguments.length?(le=kt(We),fe):le},fe};function It(z){return z.radius}e.svg.diagonal=function(){var z=at,N=yt,Z=Vt;function ne(le,fe){var De=z.call(this,le,fe),me=N.call(this,le,fe),ze=(De.y+me.y)/2,He=[De,{x:De.x,y:ze},{x:me.x,y:ze},me];return He=He.map(Z),"M"+He[0]+"C"+He[1]+" "+He[2]+" "+He[3]}return ne.source=function(le){return arguments.length?(z=kt(le),ne):z},ne.target=function(le){return arguments.length?(N=kt(le),ne):N},ne.projection=function(le){return arguments.length?(Z=le,ne):Z},ne};function Vt(z){return[z.x,z.y]}e.svg.diagonal.radial=function(){var z=e.svg.diagonal(),N=Vt,Z=z.projection;return z.projection=function(ne){return arguments.length?Z(or(N=ne)):N},z};function or(z){return function(){var N=z.apply(this,arguments),Z=N[0],ne=N[1]-Re;return[Z*Math.cos(ne),Z*Math.sin(ne)]}}e.svg.symbol=function(){var z=Gr,N=Mr;function Z(ne,le){return(an.get(z.call(this,ne,le))||_i)(N.call(this,ne,le))}return Z.type=function(ne){return arguments.length?(z=kt(ne),Z):z},Z.size=function(ne){return arguments.length?(N=kt(ne),Z):N},Z};function Mr(){return 64}function Gr(){return"circle"}function _i(z){var N=Math.sqrt(z/Ue);return"M0,"+N+"A"+N+","+N+" 0 1,1 0,"+-N+"A"+N+","+N+" 0 1,1 0,"+N+"Z"}var an=e.map({circle:_i,cross:function(z){var N=Math.sqrt(z/5)/2;return"M"+-3*N+","+-N+"H"+-N+"V"+-3*N+"H"+N+"V"+-N+"H"+3*N+"V"+N+"H"+N+"V"+3*N+"H"+-N+"V"+N+"H"+-3*N+"Z"},diamond:function(z){var N=Math.sqrt(z/(2*_n)),Z=N*_n;return"M0,"+-N+"L"+Z+",0 0,"+N+" "+-Z+",0Z"},square:function(z){var N=Math.sqrt(z)/2;return"M"+-N+","+-N+"L"+N+","+-N+" "+N+","+N+" "+-N+","+N+"Z"},"triangle-down":function(z){var N=Math.sqrt(z/hn),Z=N*hn/2;return"M0,"+Z+"L"+N+","+-Z+" "+-N+","+-Z+"Z"},"triangle-up":function(z){var N=Math.sqrt(z/hn),Z=N*hn/2;return"M0,"+-Z+"L"+N+","+Z+" "+-N+","+Z+"Z"}});e.svg.symbolTypes=an.keys();var hn=Math.sqrt(3),_n=Math.tan(30*Ve);G.transition=function(z){for(var N=Al||++ss,Z=pu(z),ne=[],le,fe,De=Qu||{time:Date.now(),ease:Ah,delay:0,duration:250},me=-1,ze=this.length;++me0;)ft[--Wt].call(z,Bt);if(Dt>=1)return De.event&&De.event.end.call(z,z.__data__,N),--fe.count?delete fe[ne]:delete z[Z],1}De||(me=le.time,ze=jn(ht,0,me),De=fe[ne]={tween:new b,time:me,timer:ze,delay:le.delay,duration:le.duration,ease:le.ease,index:N},le=null,++fe.count)}e.svg.axis=function(){var z=e.scale.linear(),N=Kc,Z=6,ne=6,le=3,fe=[10],De=null,me;function ze(He){He.each(function(){var We=e.select(this),ft=this.__chart__||z,ht=this.__chart__=z.copy(),Nt=De==null?ht.ticks?ht.ticks.apply(ht,fe):ht.domain():De,$t=me==null?ht.tickFormat?ht.tickFormat.apply(ht,fe):L:me,pt=We.selectAll(".tick").data(Nt,ht),Dt=pt.enter().insert("g",".domain").attr("class","tick").style("opacity",_t),Bt=e.transition(pt.exit()).style("opacity",_t).remove(),Wt=e.transition(pt.order()).style("opacity",1),Xt=Math.max(Z,0)+le,Lt,Dr=yr(ht),Hr=We.selectAll(".domain").data([0]),ii=(Hr.enter().append("path").attr("class","domain"),e.transition(Hr));Dt.append("line"),Dt.append("text");var vi=Dt.select("line"),Ii=Wt.select("line"),Ri=pt.select("text").text($t),Bn=Dt.select("text"),ji=Wt.select("text"),Dn=N==="top"||N==="left"?-1:1,Ha,tl,fo,si;if(N==="bottom"||N==="top"?(Lt=Jf,Ha="x",fo="y",tl="x2",si="y2",Ri.attr("dy",Dn<0?"0em":".71em").style("text-anchor","middle"),ii.attr("d","M"+Dr[0]+","+Dn*ne+"V0H"+Dr[1]+"V"+Dn*ne)):(Lt=Qf,Ha="y",fo="x",tl="y2",si="x2",Ri.attr("dy",".32em").style("text-anchor",Dn<0?"end":"start"),ii.attr("d","M"+Dn*ne+","+Dr[0]+"H0V"+Dr[1]+"H"+Dn*ne)),vi.attr(si,Dn*Z),Bn.attr(fo,Dn*Xt),Ii.attr(tl,0).attr(si,Dn*Z),ji.attr(Ha,0).attr(fo,Dn*Xt),ht.rangeBand){var qn=ht,Zn=qn.rangeBand()/2;ft=ht=function(Ua){return qn(Ua)+Zn}}else ft.rangeBand?ft=ht:Bt.call(Lt,ht,ft);Dt.call(Lt,ft,ht),Wt.call(Lt,ht,ht)})}return ze.scale=function(He){return arguments.length?(z=He,ze):z},ze.orient=function(He){return arguments.length?(N=He in Kf?He+"":Kc,ze):N},ze.ticks=function(){return arguments.length?(fe=r(arguments),ze):fe},ze.tickValues=function(He){return arguments.length?(De=He,ze):De},ze.tickFormat=function(He){return arguments.length?(me=He,ze):me},ze.tickSize=function(He){var We=arguments.length;return We?(Z=+He,ne=+arguments[We-1],ze):Z},ze.innerTickSize=function(He){return arguments.length?(Z=+He,ze):Z},ze.outerTickSize=function(He){return arguments.length?(ne=+He,ze):ne},ze.tickPadding=function(He){return arguments.length?(le=+He,ze):le},ze.tickSubdivide=function(){return arguments.length&&ze},ze};var Kc="bottom",Kf={top:1,right:1,bottom:1,left:1};function Jf(z,N,Z){z.attr("transform",function(ne){var le=N(ne);return"translate("+(isFinite(le)?le:Z(ne))+",0)"})}function Qf(z,N,Z){z.attr("transform",function(ne){var le=N(ne);return"translate(0,"+(isFinite(le)?le:Z(ne))+")"})}e.svg.brush=function(){var z=K(We,"brushstart","brush","brushend"),N=null,Z=null,ne=[0,0],le=[0,0],fe,De,me=!0,ze=!0,He=bf[0];function We(pt){pt.each(function(){var Dt=e.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",$t).on("touchstart.brush",$t),Bt=Dt.selectAll(".background").data([0]);Bt.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),Dt.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var Wt=Dt.selectAll(".resize").data(He,L);Wt.exit().remove(),Wt.enter().append("g").attr("class",function(Hr){return"resize "+Hr}).style("cursor",function(Hr){return Dh[Hr]}).append("rect").attr("x",function(Hr){return/[ew]$/.test(Hr)?-3:null}).attr("y",function(Hr){return/^[ns]/.test(Hr)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),Wt.style("display",We.empty()?"none":null);var Xt=e.transition(Dt),Lt=e.transition(Bt),Dr;N&&(Dr=yr(N),Lt.attr("x",Dr[0]).attr("width",Dr[1]-Dr[0]),ht(Xt)),Z&&(Dr=yr(Z),Lt.attr("y",Dr[0]).attr("height",Dr[1]-Dr[0]),Nt(Xt)),ft(Xt)})}We.event=function(pt){pt.each(function(){var Dt=z.of(this,arguments),Bt={x:ne,y:le,i:fe,j:De},Wt=this.__chart__||Bt;this.__chart__=Bt,Al?e.select(this).transition().each("start.brush",function(){fe=Wt.i,De=Wt.j,ne=Wt.x,le=Wt.y,Dt({type:"brushstart"})}).tween("brush:brush",function(){var Xt=c0(ne,Bt.x),Lt=c0(le,Bt.y);return fe=De=null,function(Dr){ne=Bt.x=Xt(Dr),le=Bt.y=Lt(Dr),Dt({type:"brush",mode:"resize"})}}).each("end.brush",function(){fe=Bt.i,De=Bt.j,Dt({type:"brush",mode:"resize"}),Dt({type:"brushend"})}):(Dt({type:"brushstart"}),Dt({type:"brush",mode:"resize"}),Dt({type:"brushend"}))})};function ft(pt){pt.selectAll(".resize").attr("transform",function(Dt){return"translate("+ne[+/e$/.test(Dt)]+","+le[+/^s/.test(Dt)]+")"})}function ht(pt){pt.select(".extent").attr("x",ne[0]),pt.selectAll(".extent,.n>rect,.s>rect").attr("width",ne[1]-ne[0])}function Nt(pt){pt.select(".extent").attr("y",le[0]),pt.selectAll(".extent,.e>rect,.w>rect").attr("height",le[1]-le[0])}function $t(){var pt=this,Dt=e.select(e.event.target),Bt=z.of(pt,arguments),Wt=e.select(pt),Xt=Dt.datum(),Lt=!/^(n|s)$/.test(Xt)&&N,Dr=!/^(e|w)$/.test(Xt)&&Z,Hr=Dt.classed("extent"),ii=ut(pt),vi,Ii=e.mouse(pt),Ri,Bn=e.select(a(pt)).on("keydown.brush",Ha).on("keyup.brush",tl);if(e.event.changedTouches?Bn.on("touchmove.brush",fo).on("touchend.brush",qn):Bn.on("mousemove.brush",fo).on("mouseup.brush",qn),Wt.interrupt().selectAll("*").interrupt(),Hr)Ii[0]=ne[0]-Ii[0],Ii[1]=le[0]-Ii[1];else if(Xt){var ji=+/w$/.test(Xt),Dn=+/^n/.test(Xt);Ri=[ne[1-ji]-Ii[0],le[1-Dn]-Ii[1]],Ii[0]=ne[ji],Ii[1]=le[Dn]}else e.event.altKey&&(vi=Ii.slice());Wt.style("pointer-events","none").selectAll(".resize").style("display",null),e.select("body").style("cursor",Dt.style("cursor")),Bt({type:"brushstart"}),fo();function Ha(){e.event.keyCode==32&&(Hr||(vi=null,Ii[0]-=ne[1],Ii[1]-=le[1],Hr=2),$())}function tl(){e.event.keyCode==32&&Hr==2&&(Ii[0]+=ne[1],Ii[1]+=le[1],Hr=0,$())}function fo(){var Zn=e.mouse(pt),Ua=!1;Ri&&(Zn[0]+=Ri[0],Zn[1]+=Ri[1]),Hr||(e.event.altKey?(vi||(vi=[(ne[0]+ne[1])/2,(le[0]+le[1])/2]),Ii[0]=ne[+(Zn[0]{(function(e,t){typeof L8=="object"&&typeof $le!="undefined"?t(L8):(e=e||self,t(e.d3=e.d3||{}))})(L8,function(e){"use strict";var t=new Date,r=new Date;function i(re,pe,we,Fe){function Ee(Ce){return re(Ce=arguments.length===0?new Date:new Date(+Ce)),Ce}return Ee.floor=function(Ce){return re(Ce=new Date(+Ce)),Ce},Ee.ceil=function(Ce){return re(Ce=new Date(Ce-1)),pe(Ce,1),re(Ce),Ce},Ee.round=function(Ce){var be=Ee(Ce),Ie=Ee.ceil(Ce);return Ce-be0))return Oe;do Oe.push(Qe=new Date(+Ce)),pe(Ce,Ie),re(Ce);while(Qe=be)for(;re(be),!Ce(be);)be.setTime(be-1)},function(be,Ie){if(be>=be)if(Ie<0)for(;++Ie<=0;)for(;pe(be,-1),!Ce(be););else for(;--Ie>=0;)for(;pe(be,1),!Ce(be););})},we&&(Ee.count=function(Ce,be){return t.setTime(+Ce),r.setTime(+be),re(t),re(r),Math.floor(we(t,r))},Ee.every=function(Ce){return Ce=Math.floor(Ce),!isFinite(Ce)||!(Ce>0)?null:Ce>1?Ee.filter(Fe?function(be){return Fe(be)%Ce===0}:function(be){return Ee.count(0,be)%Ce===0}):Ee}),Ee}var n=i(function(){},function(re,pe){re.setTime(+re+pe)},function(re,pe){return pe-re});n.every=function(re){return re=Math.floor(re),!isFinite(re)||!(re>0)?null:re>1?i(function(pe){pe.setTime(Math.floor(pe/re)*re)},function(pe,we){pe.setTime(+pe+we*re)},function(pe,we){return(we-pe)/re}):n};var a=n.range,o=1e3,s=6e4,l=36e5,u=864e5,c=6048e5,f=i(function(re){re.setTime(re-re.getMilliseconds())},function(re,pe){re.setTime(+re+pe*o)},function(re,pe){return(pe-re)/o},function(re){return re.getUTCSeconds()}),h=f.range,p=i(function(re){re.setTime(re-re.getMilliseconds()-re.getSeconds()*o)},function(re,pe){re.setTime(+re+pe*s)},function(re,pe){return(pe-re)/s},function(re){return re.getMinutes()}),d=p.range,v=i(function(re){re.setTime(re-re.getMilliseconds()-re.getSeconds()*o-re.getMinutes()*s)},function(re,pe){re.setTime(+re+pe*l)},function(re,pe){return(pe-re)/l},function(re){return re.getHours()}),m=v.range,g=i(function(re){re.setHours(0,0,0,0)},function(re,pe){re.setDate(re.getDate()+pe)},function(re,pe){return(pe-re-(pe.getTimezoneOffset()-re.getTimezoneOffset())*s)/u},function(re){return re.getDate()-1}),w=g.range;function _(re){return i(function(pe){pe.setDate(pe.getDate()-(pe.getDay()+7-re)%7),pe.setHours(0,0,0,0)},function(pe,we){pe.setDate(pe.getDate()+we*7)},function(pe,we){return(we-pe-(we.getTimezoneOffset()-pe.getTimezoneOffset())*s)/c})}var b=_(0),S=_(1),x=_(2),T=_(3),A=_(4),y=_(5),E=_(6),M=b.range,C=S.range,k=x.range,D=T.range,L=A.range,P=y.range,R=E.range,F=i(function(re){re.setDate(1),re.setHours(0,0,0,0)},function(re,pe){re.setMonth(re.getMonth()+pe)},function(re,pe){return pe.getMonth()-re.getMonth()+(pe.getFullYear()-re.getFullYear())*12},function(re){return re.getMonth()}),I=F.range,B=i(function(re){re.setMonth(0,1),re.setHours(0,0,0,0)},function(re,pe){re.setFullYear(re.getFullYear()+pe)},function(re,pe){return pe.getFullYear()-re.getFullYear()},function(re){return re.getFullYear()});B.every=function(re){return!isFinite(re=Math.floor(re))||!(re>0)?null:i(function(pe){pe.setFullYear(Math.floor(pe.getFullYear()/re)*re),pe.setMonth(0,1),pe.setHours(0,0,0,0)},function(pe,we){pe.setFullYear(pe.getFullYear()+we*re)})};var O=B.range,$=i(function(re){re.setUTCSeconds(0,0)},function(re,pe){re.setTime(+re+pe*s)},function(re,pe){return(pe-re)/s},function(re){return re.getUTCMinutes()}),Y=$.range,K=i(function(re){re.setUTCMinutes(0,0,0)},function(re,pe){re.setTime(+re+pe*l)},function(re,pe){return(pe-re)/l},function(re){return re.getUTCHours()}),j=K.range,q=i(function(re){re.setUTCHours(0,0,0,0)},function(re,pe){re.setUTCDate(re.getUTCDate()+pe)},function(re,pe){return(pe-re)/u},function(re){return re.getUTCDate()-1}),Q=q.range;function U(re){return i(function(pe){pe.setUTCDate(pe.getUTCDate()-(pe.getUTCDay()+7-re)%7),pe.setUTCHours(0,0,0,0)},function(pe,we){pe.setUTCDate(pe.getUTCDate()+we*7)},function(pe,we){return(we-pe)/c})}var V=U(0),X=U(1),G=U(2),H=U(3),J=U(4),te=U(5),ue=U(6),ge=V.range,ke=X.range,_e=G.range,he=H.range,oe=J.range,Me=te.range,ye=ue.range,ce=i(function(re){re.setUTCDate(1),re.setUTCHours(0,0,0,0)},function(re,pe){re.setUTCMonth(re.getUTCMonth()+pe)},function(re,pe){return pe.getUTCMonth()-re.getUTCMonth()+(pe.getUTCFullYear()-re.getUTCFullYear())*12},function(re){return re.getUTCMonth()}),ee=ce.range,ae=i(function(re){re.setUTCMonth(0,1),re.setUTCHours(0,0,0,0)},function(re,pe){re.setUTCFullYear(re.getUTCFullYear()+pe)},function(re,pe){return pe.getUTCFullYear()-re.getUTCFullYear()},function(re){return re.getUTCFullYear()});ae.every=function(re){return!isFinite(re=Math.floor(re))||!(re>0)?null:i(function(pe){pe.setUTCFullYear(Math.floor(pe.getUTCFullYear()/re)*re),pe.setUTCMonth(0,1),pe.setUTCHours(0,0,0,0)},function(pe,we){pe.setUTCFullYear(pe.getUTCFullYear()+we*re)})};var xe=ae.range;e.timeDay=g,e.timeDays=w,e.timeFriday=y,e.timeFridays=P,e.timeHour=v,e.timeHours=m,e.timeInterval=i,e.timeMillisecond=n,e.timeMilliseconds=a,e.timeMinute=p,e.timeMinutes=d,e.timeMonday=S,e.timeMondays=C,e.timeMonth=F,e.timeMonths=I,e.timeSaturday=E,e.timeSaturdays=R,e.timeSecond=f,e.timeSeconds=h,e.timeSunday=b,e.timeSundays=M,e.timeThursday=A,e.timeThursdays=L,e.timeTuesday=x,e.timeTuesdays=k,e.timeWednesday=T,e.timeWednesdays=D,e.timeWeek=b,e.timeWeeks=M,e.timeYear=B,e.timeYears=O,e.utcDay=q,e.utcDays=Q,e.utcFriday=te,e.utcFridays=Me,e.utcHour=K,e.utcHours=j,e.utcMillisecond=n,e.utcMilliseconds=a,e.utcMinute=$,e.utcMinutes=Y,e.utcMonday=X,e.utcMondays=ke,e.utcMonth=ce,e.utcMonths=ee,e.utcSaturday=ue,e.utcSaturdays=ye,e.utcSecond=f,e.utcSeconds=h,e.utcSunday=V,e.utcSundays=ge,e.utcThursday=J,e.utcThursdays=oe,e.utcTuesday=G,e.utcTuesdays=_e,e.utcWednesday=H,e.utcWednesdays=he,e.utcWeek=V,e.utcWeeks=ge,e.utcYear=ae,e.utcYears=xe,Object.defineProperty(e,"__esModule",{value:!0})})});var Y3=W((P8,Wle)=>{(function(e,t){typeof P8=="object"&&typeof Wle!="undefined"?t(P8,$N()):(e=e||self,t(e.d3=e.d3||{},e.d3))})(P8,function(e,t){"use strict";function r(Re){if(0<=Re.y&&Re.y<100){var Ve=new Date(-1,Re.m,Re.d,Re.H,Re.M,Re.S,Re.L);return Ve.setFullYear(Re.y),Ve}return new Date(Re.y,Re.m,Re.d,Re.H,Re.M,Re.S,Re.L)}function i(Re){if(0<=Re.y&&Re.y<100){var Ve=new Date(Date.UTC(-1,Re.m,Re.d,Re.H,Re.M,Re.S,Re.L));return Ve.setUTCFullYear(Re.y),Ve}return new Date(Date.UTC(Re.y,Re.m,Re.d,Re.H,Re.M,Re.S,Re.L))}function n(Re,Ve,ct){return{y:Re,m:Ve,d:ct,H:0,M:0,S:0,L:0}}function a(Re){var Ve=Re.dateTime,ct=Re.date,Tt=Re.time,Zt=Re.periods,Gt=Re.days,ur=Re.shortDays,cr=Re.months,qt=Re.shortMonths,Kt=h(Zt),Cr=p(Zt),$e=h(Gt),tt=p(Gt),st=h(ur),xt=p(ur),Je=h(cr),Ct=p(cr),nr=h(qt),dr=p(qt),Vr={a:Os,A:go,b:La,B:lo,c:null,d:F,e:F,f:Y,g:te,G:ge,H:I,I:B,j:O,L:$,m:K,M:j,p:Ns,q:Aa,Q:ut,s:vt,S:q,u:Q,U,V:X,w:G,W:H,x:null,X:null,y:J,Y:ue,Z:ke,"%":bt},ui={a:Ks,A:wl,b:Tu,B:fl,c:null,d:_e,e:_e,f:ce,g:Ie,G:Qe,H:he,I:oe,j:Me,L:ye,m:ee,M:ae,p:Le,q:ot,Q:ut,s:vt,S:xe,u:re,U:pe,V:Fe,w:Ee,W:Ce,x:null,X:null,y:be,Y:Oe,Z:et,"%":bt},ti={a:aa,A:va,b:gn,B:Hn,c:oa,d:A,e:A,f:D,g:b,G:_,H:E,I:E,j:y,L:k,m:T,M,p:vn,q:x,Q:P,s:R,S:C,u:v,U:m,V:g,w:d,W:w,x:vs,X:bo,y:b,Y:_,Z:S,"%":L};Vr.x=Pr(ct,Vr),Vr.X=Pr(Tt,Vr),Vr.c=Pr(Ve,Vr),ui.x=Pr(ct,ui),ui.X=Pr(Tt,ui),ui.c=Pr(Ve,ui);function Pr(lt,kt){return function(Qt){var zt=[],Ar=-1,Yt=0,wr=lt.length,Zr,ri,Si;for(Qt instanceof Date||(Qt=new Date(+Qt));++Ar53)return null;"w"in zt||(zt.w=1),"Z"in zt?(Yt=i(n(zt.y,0,1)),wr=Yt.getUTCDay(),Yt=wr>4||wr===0?t.utcMonday.ceil(Yt):t.utcMonday(Yt),Yt=t.utcDay.offset(Yt,(zt.V-1)*7),zt.y=Yt.getUTCFullYear(),zt.m=Yt.getUTCMonth(),zt.d=Yt.getUTCDate()+(zt.w+6)%7):(Yt=r(n(zt.y,0,1)),wr=Yt.getDay(),Yt=wr>4||wr===0?t.timeMonday.ceil(Yt):t.timeMonday(Yt),Yt=t.timeDay.offset(Yt,(zt.V-1)*7),zt.y=Yt.getFullYear(),zt.m=Yt.getMonth(),zt.d=Yt.getDate()+(zt.w+6)%7)}else("W"in zt||"U"in zt)&&("w"in zt||(zt.w="u"in zt?zt.u%7:"W"in zt?1:0),wr="Z"in zt?i(n(zt.y,0,1)).getUTCDay():r(n(zt.y,0,1)).getDay(),zt.m=0,zt.d="W"in zt?(zt.w+6)%7+zt.W*7-(wr+5)%7:zt.w+zt.U*7-(wr+6)%7);return"Z"in zt?(zt.H+=zt.Z/100|0,zt.M+=zt.Z%100,i(zt)):r(zt)}}function Sn(lt,kt,Qt,zt){for(var Ar=0,Yt=kt.length,wr=Qt.length,Zr,ri;Ar=wr)return-1;if(Zr=kt.charCodeAt(Ar++),Zr===37){if(Zr=kt.charAt(Ar++),ri=ti[Zr in o?kt.charAt(Ar++):Zr],!ri||(zt=ri(lt,Qt,zt))<0)return-1}else if(Zr!=Qt.charCodeAt(zt++))return-1}return zt}function vn(lt,kt,Qt){var zt=Kt.exec(kt.slice(Qt));return zt?(lt.p=Cr[zt[0].toLowerCase()],Qt+zt[0].length):-1}function aa(lt,kt,Qt){var zt=st.exec(kt.slice(Qt));return zt?(lt.w=xt[zt[0].toLowerCase()],Qt+zt[0].length):-1}function va(lt,kt,Qt){var zt=$e.exec(kt.slice(Qt));return zt?(lt.w=tt[zt[0].toLowerCase()],Qt+zt[0].length):-1}function gn(lt,kt,Qt){var zt=nr.exec(kt.slice(Qt));return zt?(lt.m=dr[zt[0].toLowerCase()],Qt+zt[0].length):-1}function Hn(lt,kt,Qt){var zt=Je.exec(kt.slice(Qt));return zt?(lt.m=Ct[zt[0].toLowerCase()],Qt+zt[0].length):-1}function oa(lt,kt,Qt){return Sn(lt,Ve,kt,Qt)}function vs(lt,kt,Qt){return Sn(lt,ct,kt,Qt)}function bo(lt,kt,Qt){return Sn(lt,Tt,kt,Qt)}function Os(lt){return ur[lt.getDay()]}function go(lt){return Gt[lt.getDay()]}function La(lt){return qt[lt.getMonth()]}function lo(lt){return cr[lt.getMonth()]}function Ns(lt){return Zt[+(lt.getHours()>=12)]}function Aa(lt){return 1+~~(lt.getMonth()/3)}function Ks(lt){return ur[lt.getUTCDay()]}function wl(lt){return Gt[lt.getUTCDay()]}function Tu(lt){return qt[lt.getUTCMonth()]}function fl(lt){return cr[lt.getUTCMonth()]}function Le(lt){return Zt[+(lt.getUTCHours()>=12)]}function ot(lt){return 1+~~(lt.getUTCMonth()/3)}return{format:function(lt){var kt=Pr(lt+="",Vr);return kt.toString=function(){return lt},kt},parse:function(lt){var kt=Xi(lt+="",!1);return kt.toString=function(){return lt},kt},utcFormat:function(lt){var kt=Pr(lt+="",ui);return kt.toString=function(){return lt},kt},utcParse:function(lt){var kt=Xi(lt+="",!0);return kt.toString=function(){return lt},kt}}}var o={"-":"",_:" ",0:"0"},s=/^\s*\d+/,l=/^%/,u=/[\\^$*+?|[\]().{}]/g;function c(Re,Ve,ct){var Tt=Re<0?"-":"",Zt=(Tt?-Re:Re)+"",Gt=Zt.length;return Tt+(Gt68?1900:2e3),ct+Tt[0].length):-1}function S(Re,Ve,ct){var Tt=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(Ve.slice(ct,ct+6));return Tt?(Re.Z=Tt[1]?0:-(Tt[2]+(Tt[3]||"00")),ct+Tt[0].length):-1}function x(Re,Ve,ct){var Tt=s.exec(Ve.slice(ct,ct+1));return Tt?(Re.q=Tt[0]*3-3,ct+Tt[0].length):-1}function T(Re,Ve,ct){var Tt=s.exec(Ve.slice(ct,ct+2));return Tt?(Re.m=Tt[0]-1,ct+Tt[0].length):-1}function A(Re,Ve,ct){var Tt=s.exec(Ve.slice(ct,ct+2));return Tt?(Re.d=+Tt[0],ct+Tt[0].length):-1}function y(Re,Ve,ct){var Tt=s.exec(Ve.slice(ct,ct+3));return Tt?(Re.m=0,Re.d=+Tt[0],ct+Tt[0].length):-1}function E(Re,Ve,ct){var Tt=s.exec(Ve.slice(ct,ct+2));return Tt?(Re.H=+Tt[0],ct+Tt[0].length):-1}function M(Re,Ve,ct){var Tt=s.exec(Ve.slice(ct,ct+2));return Tt?(Re.M=+Tt[0],ct+Tt[0].length):-1}function C(Re,Ve,ct){var Tt=s.exec(Ve.slice(ct,ct+2));return Tt?(Re.S=+Tt[0],ct+Tt[0].length):-1}function k(Re,Ve,ct){var Tt=s.exec(Ve.slice(ct,ct+3));return Tt?(Re.L=+Tt[0],ct+Tt[0].length):-1}function D(Re,Ve,ct){var Tt=s.exec(Ve.slice(ct,ct+6));return Tt?(Re.L=Math.floor(Tt[0]/1e3),ct+Tt[0].length):-1}function L(Re,Ve,ct){var Tt=l.exec(Ve.slice(ct,ct+1));return Tt?ct+Tt[0].length:-1}function P(Re,Ve,ct){var Tt=s.exec(Ve.slice(ct));return Tt?(Re.Q=+Tt[0],ct+Tt[0].length):-1}function R(Re,Ve,ct){var Tt=s.exec(Ve.slice(ct));return Tt?(Re.s=+Tt[0],ct+Tt[0].length):-1}function F(Re,Ve){return c(Re.getDate(),Ve,2)}function I(Re,Ve){return c(Re.getHours(),Ve,2)}function B(Re,Ve){return c(Re.getHours()%12||12,Ve,2)}function O(Re,Ve){return c(1+t.timeDay.count(t.timeYear(Re),Re),Ve,3)}function $(Re,Ve){return c(Re.getMilliseconds(),Ve,3)}function Y(Re,Ve){return $(Re,Ve)+"000"}function K(Re,Ve){return c(Re.getMonth()+1,Ve,2)}function j(Re,Ve){return c(Re.getMinutes(),Ve,2)}function q(Re,Ve){return c(Re.getSeconds(),Ve,2)}function Q(Re){var Ve=Re.getDay();return Ve===0?7:Ve}function U(Re,Ve){return c(t.timeSunday.count(t.timeYear(Re)-1,Re),Ve,2)}function V(Re){var Ve=Re.getDay();return Ve>=4||Ve===0?t.timeThursday(Re):t.timeThursday.ceil(Re)}function X(Re,Ve){return Re=V(Re),c(t.timeThursday.count(t.timeYear(Re),Re)+(t.timeYear(Re).getDay()===4),Ve,2)}function G(Re){return Re.getDay()}function H(Re,Ve){return c(t.timeMonday.count(t.timeYear(Re)-1,Re),Ve,2)}function J(Re,Ve){return c(Re.getFullYear()%100,Ve,2)}function te(Re,Ve){return Re=V(Re),c(Re.getFullYear()%100,Ve,2)}function ue(Re,Ve){return c(Re.getFullYear()%1e4,Ve,4)}function ge(Re,Ve){var ct=Re.getDay();return Re=ct>=4||ct===0?t.timeThursday(Re):t.timeThursday.ceil(Re),c(Re.getFullYear()%1e4,Ve,4)}function ke(Re){var Ve=Re.getTimezoneOffset();return(Ve>0?"-":(Ve*=-1,"+"))+c(Ve/60|0,"0",2)+c(Ve%60,"0",2)}function _e(Re,Ve){return c(Re.getUTCDate(),Ve,2)}function he(Re,Ve){return c(Re.getUTCHours(),Ve,2)}function oe(Re,Ve){return c(Re.getUTCHours()%12||12,Ve,2)}function Me(Re,Ve){return c(1+t.utcDay.count(t.utcYear(Re),Re),Ve,3)}function ye(Re,Ve){return c(Re.getUTCMilliseconds(),Ve,3)}function ce(Re,Ve){return ye(Re,Ve)+"000"}function ee(Re,Ve){return c(Re.getUTCMonth()+1,Ve,2)}function ae(Re,Ve){return c(Re.getUTCMinutes(),Ve,2)}function xe(Re,Ve){return c(Re.getUTCSeconds(),Ve,2)}function re(Re){var Ve=Re.getUTCDay();return Ve===0?7:Ve}function pe(Re,Ve){return c(t.utcSunday.count(t.utcYear(Re)-1,Re),Ve,2)}function we(Re){var Ve=Re.getUTCDay();return Ve>=4||Ve===0?t.utcThursday(Re):t.utcThursday.ceil(Re)}function Fe(Re,Ve){return Re=we(Re),c(t.utcThursday.count(t.utcYear(Re),Re)+(t.utcYear(Re).getUTCDay()===4),Ve,2)}function Ee(Re){return Re.getUTCDay()}function Ce(Re,Ve){return c(t.utcMonday.count(t.utcYear(Re)-1,Re),Ve,2)}function be(Re,Ve){return c(Re.getUTCFullYear()%100,Ve,2)}function Ie(Re,Ve){return Re=we(Re),c(Re.getUTCFullYear()%100,Ve,2)}function Oe(Re,Ve){return c(Re.getUTCFullYear()%1e4,Ve,4)}function Qe(Re,Ve){var ct=Re.getUTCDay();return Re=ct>=4||ct===0?t.utcThursday(Re):t.utcThursday.ceil(Re),c(Re.getUTCFullYear()%1e4,Ve,4)}function et(){return"+0000"}function bt(){return"%"}function ut(Re){return+Re}function vt(Re){return Math.floor(+Re/1e3)}var Xe;mt({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 mt(Re){return Xe=a(Re),e.timeFormat=Xe.format,e.timeParse=Xe.parse,e.utcFormat=Xe.utcFormat,e.utcParse=Xe.utcParse,Xe}var _t="%Y-%m-%dT%H:%M:%S.%LZ";function Ne(Re){return Re.toISOString()}var Ue=Date.prototype.toISOString?Ne:e.utcFormat(_t);function Ge(Re){var Ve=new Date(Re);return isNaN(Ve)?null:Ve}var je=+new Date("2000-01-01T00:00:00.000Z")?Ge:e.utcParse(_t);e.isoFormat=Ue,e.isoParse=je,e.timeFormatDefaultLocale=mt,e.timeFormatLocale=a,Object.defineProperty(e,"__esModule",{value:!0})})});var WN=W((I8,Yle)=>{(function(e,t){typeof I8=="object"&&typeof Yle!="undefined"?t(I8):(e=typeof globalThis!="undefined"?globalThis:e||self,t(e.d3=e.d3||{}))})(I8,(function(e){"use strict";function t(T){return Math.abs(T=Math.round(T))>=1e21?T.toLocaleString("en").replace(/,/g,""):T.toString(10)}function r(T,A){if((y=(T=A?T.toExponential(A-1):T.toExponential()).indexOf("e"))<0)return null;var y,E=T.slice(0,y);return[E.length>1?E[0]+E.slice(2):E,+T.slice(y+1)]}function i(T){return T=r(Math.abs(T)),T?T[1]:NaN}function n(T,A){return function(y,E){for(var M=y.length,C=[],k=0,D=T[0],L=0;M>0&&D>0&&(L+D+1>E&&(D=Math.max(1,E-L)),C.push(y.substring(M-=D,M+D)),!((L+=D+1)>E));)D=T[k=(k+1)%T.length];return C.reverse().join(A)}}function a(T){return function(A){return A.replace(/[0-9]/g,function(y){return T[+y]})}}var o=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function s(T){if(!(A=o.exec(T)))throw new Error("invalid format: "+T);var A;return new l({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]})}s.prototype=l.prototype;function l(T){this.fill=T.fill===void 0?" ":T.fill+"",this.align=T.align===void 0?">":T.align+"",this.sign=T.sign===void 0?"-":T.sign+"",this.symbol=T.symbol===void 0?"":T.symbol+"",this.zero=!!T.zero,this.width=T.width===void 0?void 0:+T.width,this.comma=!!T.comma,this.precision=T.precision===void 0?void 0:+T.precision,this.trim=!!T.trim,this.type=T.type===void 0?"":T.type+""}l.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 u(T){e:for(var A=T.length,y=1,E=-1,M;y0&&(E=0);break}return E>0?T.slice(0,E)+T.slice(M+1):T}var c;function f(T,A){var y=r(T,A);if(!y)return T+"";var E=y[0],M=y[1],C=M-(c=Math.max(-8,Math.min(8,Math.floor(M/3)))*3)+1,k=E.length;return C===k?E:C>k?E+new Array(C-k+1).join("0"):C>0?E.slice(0,C)+"."+E.slice(C):"0."+new Array(1-C).join("0")+r(T,Math.max(0,A+C-1))[0]}function h(T,A){var y=r(T,A);if(!y)return T+"";var E=y[0],M=y[1];return M<0?"0."+new Array(-M).join("0")+E:E.length>M+1?E.slice(0,M+1)+"."+E.slice(M+1):E+new Array(M-E.length+2).join("0")}var p={"%":function(T,A){return(T*100).toFixed(A)},b:function(T){return Math.round(T).toString(2)},c:function(T){return T+""},d:t,e:function(T,A){return T.toExponential(A)},f:function(T,A){return T.toFixed(A)},g:function(T,A){return T.toPrecision(A)},o:function(T){return Math.round(T).toString(8)},p:function(T,A){return h(T*100,A)},r:h,s:f,X:function(T){return Math.round(T).toString(16).toUpperCase()},x:function(T){return Math.round(T).toString(16)}};function d(T){return T}var v=Array.prototype.map,m=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function g(T){var A=T.grouping===void 0||T.thousands===void 0?d:n(v.call(T.grouping,Number),T.thousands+""),y=T.currency===void 0?"":T.currency[0]+"",E=T.currency===void 0?"":T.currency[1]+"",M=T.decimal===void 0?".":T.decimal+"",C=T.numerals===void 0?d:a(v.call(T.numerals,String)),k=T.percent===void 0?"%":T.percent+"",D=T.minus===void 0?"-":T.minus+"",L=T.nan===void 0?"NaN":T.nan+"";function P(F){F=s(F);var I=F.fill,B=F.align,O=F.sign,$=F.symbol,Y=F.zero,K=F.width,j=F.comma,q=F.precision,Q=F.trim,U=F.type;U==="n"?(j=!0,U="g"):p[U]||(q===void 0&&(q=12),Q=!0,U="g"),(Y||I==="0"&&B==="=")&&(Y=!0,I="0",B="=");var V=$==="$"?y:$==="#"&&/[boxX]/.test(U)?"0"+U.toLowerCase():"",X=$==="$"?E:/[%p]/.test(U)?k:"",G=p[U],H=/[defgprs%]/.test(U);q=q===void 0?6:/[gprs]/.test(U)?Math.max(1,Math.min(21,q)):Math.max(0,Math.min(20,q));function J(te){var ue=V,ge=X,ke,_e,he;if(U==="c")ge=G(te)+ge,te="";else{te=+te;var oe=te<0||1/te<0;if(te=isNaN(te)?L:G(Math.abs(te),q),Q&&(te=u(te)),oe&&+te==0&&O!=="+"&&(oe=!1),ue=(oe?O==="("?O:D:O==="-"||O==="("?"":O)+ue,ge=(U==="s"?m[8+c/3]:"")+ge+(oe&&O==="("?")":""),H){for(ke=-1,_e=te.length;++ke<_e;)if(he=te.charCodeAt(ke),48>he||he>57){ge=(he===46?M+te.slice(ke+1):te.slice(ke))+ge,te=te.slice(0,ke);break}}}j&&!Y&&(te=A(te,1/0));var Me=ue.length+te.length+ge.length,ye=Me>1)+ue+te+ge+ye.slice(Me);break;default:te=ye+ue+te+ge;break}return C(te)}return J.toString=function(){return F+""},J}function R(F,I){var B=P((F=s(F),F.type="f",F)),O=Math.max(-8,Math.min(8,Math.floor(i(I)/3)))*3,$=Math.pow(10,-O),Y=m[8+O/3];return function(K){return B($*K)+Y}}return{format:P,formatPrefix:R}}var w;_({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function _(T){return w=g(T),e.format=w.format,e.formatPrefix=w.formatPrefix,w}function b(T){return Math.max(0,-i(Math.abs(T)))}function S(T,A){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(i(A)/3)))*3-i(Math.abs(T)))}function x(T,A){return T=Math.abs(T),A=Math.abs(A)-T,Math.max(0,i(A)-i(T))+1}e.FormatSpecifier=l,e.formatDefaultLocale=_,e.formatLocale=g,e.formatSpecifier=s,e.precisionFixed=b,e.precisionPrefix=S,e.precisionRound=x,Object.defineProperty(e,"__esModule",{value:!0})}))});var Zle=W((pzr,Xle)=>{"use strict";Xle.exports=function(e){for(var t=e.length,r,i=0;i13)&&r!==32&&r!==133&&r!==160&&r!==5760&&r!==6158&&(r<8192||r>8205)&&r!==8232&&r!==8233&&r!==8239&&r!==8287&&r!==8288&&r!==12288&&r!==65279)return!1;return!0}});var un=W((vzr,Kle)=>{"use strict";var Bgt=Zle();Kle.exports=function(e){var t=typeof e;if(t==="string"){var r=e;if(e=+e,e===0&&Bgt(r))return!1}else if(t!=="number")return!1;return e-e<1}});var ra={};Kn(ra,{ALMOST_EQUAL:()=>rmt,BADNUM:()=>YN,EPOCHJD:()=>tmt,FP_SAFE:()=>qgt,LOG_CLIP:()=>imt,MINUS_SIGN:()=>nmt,ONEAVGMONTH:()=>$gt,ONEAVGQUARTER:()=>Ggt,ONEAVGYEAR:()=>Ngt,ONEDAY:()=>Xgt,ONEHOUR:()=>Zgt,ONEMAXMONTH:()=>jgt,ONEMAXQUARTER:()=>Vgt,ONEMAXYEAR:()=>Ogt,ONEMICROSEC:()=>emt,ONEMILLI:()=>Qgt,ONEMIN:()=>Kgt,ONEMINMONTH:()=>Wgt,ONEMINQUARTER:()=>Hgt,ONEMINYEAR:()=>Ugt,ONESEC:()=>Jgt,ONEWEEK:()=>Ygt});var YN,qgt,Ogt,Ngt,Ugt,Vgt,Ggt,Hgt,jgt,$gt,Wgt,Ygt,Xgt,Zgt,Kgt,Jgt,Qgt,emt,tmt,rmt,imt,nmt,ta=Ci(()=>{"use strict";YN=void 0,qgt=Number.MAX_VALUE*1e-4,Ogt=316224e5,Ngt=315576e5,Ugt=31536e6,Vgt=79488e5,Ggt=78894e5,Hgt=76896e5,jgt=26784e5,$gt=26298e5,Wgt=24192e5,Ygt=6048e5,Xgt=864e5,Zgt=36e5,Kgt=6e4,Jgt=1e3,Qgt=1,emt=.001,tmt=24405875e-1,rmt=1-1e-6,imt=10,nmt="\u2212"});var XN=W((R8,Jle)=>{(function(e,t){typeof R8=="object"&&typeof Jle!="undefined"?t(R8):(e=typeof globalThis!="undefined"?globalThis:e||self,t(e["base64-arraybuffer"]={}))})(R8,(function(e){"use strict";for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),i=0;i>2],c+=t[(s[l]&3)<<4|s[l+1]>>4],c+=t[(s[l+1]&15)<<2|s[l+2]>>6],c+=t[s[l+2]&63];return u%3===2?c=c.substring(0,c.length-1)+"=":u%3===1&&(c=c.substring(0,c.length-2)+"=="),c},a=function(o){var s=o.length*.75,l=o.length,u,c=0,f,h,p,d;o[o.length-1]==="="&&(s--,o[o.length-2]==="="&&s--);var v=new ArrayBuffer(s),m=new Uint8Array(v);for(u=0;u>4,m[c++]=(h&15)<<4|p>>2,m[c++]=(p&3)<<6|d&63;return v};e.decode=a,e.encode=n,Object.defineProperty(e,"__esModule",{value:!0})}))});var dy=W((gzr,Qle)=>{"use strict";Qle.exports=function(t){return window&&window.process&&window.process.versions?Object.prototype.toString.call(t)==="[object Object]":Object.prototype.toString.call(t)==="[object Object]"&&Object.getPrototypeOf(t).hasOwnProperty("hasOwnProperty")}});var wc=W(qp=>{"use strict";var amt=XN().decode,omt=dy(),ZN=Array.isArray,smt=ArrayBuffer,lmt=DataView;function eue(e){return smt.isView(e)&&!(e instanceof lmt)}qp.isTypedArray=eue;function z8(e){return ZN(e)||eue(e)}qp.isArrayOrTypedArray=z8;function umt(e){return!z8(e[0])}qp.isArray1D=umt;qp.ensureArray=function(e,t){return ZN(e)||(e=[]),e.length=t,e};var ic={u1c:typeof Uint8ClampedArray=="undefined"?void 0:Uint8ClampedArray,i1:typeof Int8Array=="undefined"?void 0:Int8Array,u1:typeof Uint8Array=="undefined"?void 0:Uint8Array,i2:typeof Int16Array=="undefined"?void 0:Int16Array,u2:typeof Uint16Array=="undefined"?void 0:Uint16Array,i4:typeof Int32Array=="undefined"?void 0:Int32Array,u4:typeof Uint32Array=="undefined"?void 0:Uint32Array,f4:typeof Float32Array=="undefined"?void 0:Float32Array,f8:typeof Float64Array=="undefined"?void 0:Float64Array};ic.uint8c=ic.u1c;ic.uint8=ic.u1;ic.int8=ic.i1;ic.uint16=ic.u2;ic.int16=ic.i2;ic.uint32=ic.u4;ic.int32=ic.i4;ic.float32=ic.f4;ic.float64=ic.f8;function KN(e){return e.constructor===ArrayBuffer}qp.isArrayBuffer=KN;qp.decodeTypedArraySpec=function(e){var t=[],r=cmt(e),i=r.dtype,n=ic[i];if(!n)throw new Error('Error in dtype: "'+i+'"');var a=n.BYTES_PER_ELEMENT,o=r.bdata;KN(o)||(o=amt(o));var s=r.shape===void 0?[o.byteLength/a]:(""+r.shape).split(",");s.reverse();var l=s.length,u,c,f=+s[0],h=a*f,p=0;if(l===1)t=new n(o);else if(l===2)for(u=+s[1],c=0;c{"use strict";var rue=un(),QN=wc().isArrayOrTypedArray;oue.exports=function(t,r){if(rue(r))r=String(r);else if(typeof r!="string"||r.slice(-4)==="[-1]")throw"bad property string";var i=r.split("."),n,a,o,s;for(s=0;s{"use strict";var X3=NT(),vmt=/^\w*$/,gmt=0,sue=1,B8=2,lue=3,Ox=4;uue.exports=function(t,r,i,n){i=i||"name",n=n||"value";var a,o,s,l={};r&&r.length?(s=X3(t,r),o=s.get()):o=t,r=r||"";var u={};if(o)for(a=0;a2)return l[p]=l[p]|B8,f.set(h,null);if(c){for(a=p;a{"use strict";var mmt=/^(.*)(\.[^\.\[\]]+|\[\d\])$/,ymt=/^[^\.\[\]]+$/;fue.exports=function(e,t){for(;t;){var r=e.match(mmt);if(r)e=r[1];else if(e.match(ymt))e="";else throw new Error("bad relativeAttr call:"+[e,t]);if(t.charAt(0)==="^")t=t.slice(1);else break}return e&&t.charAt(0)!=="["?e+"."+t:e+t}});var q8=W((_zr,due)=>{"use strict";var xmt=un();due.exports=function(t,r){if(t>0)return Math.log(t)/Math.LN10;var i=Math.log(Math.min(r[0],r[1]))/Math.LN10;return xmt(i)||(i=Math.log(Math.max(r[0],r[1]))/Math.LN10-6),i}});var gue=W((wzr,vue)=>{"use strict";var pue=wc().isArrayOrTypedArray,UT=dy();vue.exports=function e(t,r){for(var i in r){var n=r[i],a=t[i];if(a!==n)if(i.charAt(0)==="_"||typeof n=="function"){if(i in t)continue;t[i]=n}else if(pue(n)&&pue(a)&&UT(n[0])){if(i==="customdata"||i==="ids")continue;for(var o=Math.min(n.length,a.length),s=0;sbmt,modHalf:()=>_mt});function bmt(e,t){let r=e%t;return r<0?r+t:r}function _mt(e,t){return Math.abs(e)>t/2?e-Math.round(e/t)*t:e}var K3=Ci(()=>{"use strict"});var nn=W(HT=>{"use strict";var mue=dy(),VT=Array.isArray;function wmt(e,t){var r,i;for(r=0;r{"use strict";yue.exports=function(e){var t=e.variantValues,r=e.editType,i=e.colorEditType;i===void 0&&(i=r);var n={editType:r,valType:"integer",min:1,max:1e3,extras:["normal","bold"],dflt:"normal"};e.noNumericWeightValues&&(n.valType="enumerated",n.values=n.extras,n.extras=void 0,n.min=void 0,n.max=void 0);var a={family:{valType:"string",noBlank:!0,strict:!0,editType:r},size:{valType:"number",min:1,editType:r},color:{valType:"color",editType:i},weight:n,style:{editType:r,valType:"enumerated",values:["normal","italic"],dflt:"normal"},variant:e.noFontVariant?void 0:{editType:r,valType:"enumerated",values:t||["normal","small-caps","all-small-caps","all-petite-caps","petite-caps","unicase"],dflt:"normal"},textcase:e.noFontTextcase?void 0:{editType:r,valType:"enumerated",values:["normal","word caps","upper","lower"],dflt:"normal"},lineposition:e.noFontLineposition?void 0:{editType:r,valType:"flaglist",flags:["under","over","through"],extras:["none"],dflt:"none"},shadow:e.noFontShadow?void 0:{editType:r,valType:"string",dflt:e.autoShadowDflt?"auto":"none"},editType:r};return e.autoSize&&(a.size.dflt="auto"),e.autoColor&&(a.color.dflt="auto"),e.arrayOk&&(a.family.arrayOk=!0,a.weight.arrayOk=!0,a.style.arrayOk=!0,e.noFontVariant||(a.variant.arrayOk=!0),e.noFontTextcase||(a.textcase.arrayOk=!0),e.noFontLineposition||(a.lineposition.arrayOk=!0),e.noFontShadow||(a.shadow.arrayOk=!0),a.size.arrayOk=!0,a.color.arrayOk=!0),a}});var jT={};Kn(jT,{HOVERARROWSIZE:()=>Amt,HOVERFONT:()=>Emt,HOVERFONTSIZE:()=>Smt,HOVERID:()=>Cmt,HOVERMINTIME:()=>kmt,HOVERTEXTPAD:()=>Mmt,YANGLE:()=>Tmt});var Tmt,Amt,Mmt,Smt,Emt,kmt,Cmt,$T=Ci(()=>{"use strict";Tmt=60,Amt=6,Mmt=3,Smt=13,Emt="Arial, sans-serif",kmt=50,Cmt="-hover"});var py=W((Mzr,_ue)=>{"use strict";var xue=($T(),Pt(jT)),bue=jo(),eU=bue({editType:"none"});eU.family.dflt=xue.HOVERFONT;eU.size.dflt=xue.HOVERFONTSIZE;_ue.exports={clickmode:{valType:"flaglist",flags:["event","select"],dflt:"event",editType:"plot",extras:["none"]},dragmode:{valType:"enumerated",values:["zoom","pan","select","lasso","drawclosedpath","drawopenpath","drawline","drawrect","drawcircle","orbit","turntable",!1],dflt:"zoom",editType:"modebar"},hovermode:{valType:"enumerated",values:["x","y","closest",!1,"x unified","y unified"],dflt:"closest",editType:"modebar"},hoversort:{valType:"enumerated",values:["trace","value descending","value ascending"],dflt:"trace",editType:"none"},hoversubplots:{valType:"enumerated",values:["single","overlaying","axis"],dflt:"overlaying",editType:"none"},hoveranywhere:{valType:"boolean",dflt:!1,editType:"none"},clickanywhere:{valType:"boolean",dflt:!1,editType:"none"},hoverdistance:{valType:"integer",min:-1,dflt:20,editType:"none"},spikedistance:{valType:"integer",min:-1,dflt:-1,editType:"none"},hoverlabel:{bgcolor:{valType:"color",editType:"none"},bordercolor:{valType:"color",editType:"none"},font:eU,grouptitlefont:bue({editType:"none"}),align:{valType:"enumerated",values:["left","right","auto"],dflt:"auto",editType:"none"},namelength:{valType:"integer",min:-1,dflt:15,editType:"none"},showarrow:{valType:"boolean",dflt:!0,editType:"none"},editType:"none"},selectdirection:{valType:"enumerated",values:["h","v","d","any"],dflt:"any",editType:"none"}}});var J3=W((Szr,wue)=>{"use strict";var Dmt=jo(),WT=py().hoverlabel,YT=nn().extendFlat;wue.exports={hoverlabel:{bgcolor:YT({},WT.bgcolor,{arrayOk:!0}),bordercolor:YT({},WT.bordercolor,{arrayOk:!0}),font:Dmt({arrayOk:!0,editType:"none"}),align:YT({},WT.align,{arrayOk:!0}),namelength:YT({},WT.namelength,{arrayOk:!0}),showarrow:YT({},WT.showarrow),editType:"none"}}});var Ka=W((Ezr,Tue)=>{"use strict";var Fmt=jo(),Lmt=J3();Tue.exports={type:{valType:"enumerated",values:[],dflt:"scatter",editType:"calc+clearAxisTypes",_noTemplating:!0},visible:{valType:"enumerated",values:[!0,!1,"legendonly"],dflt:!0,editType:"calc"},showlegend:{valType:"boolean",dflt:!0,editType:"style"},legend:{valType:"subplotid",dflt:"legend",editType:"style"},legendgroup:{valType:"string",dflt:"",editType:"style"},legendgrouptitle:{text:{valType:"string",dflt:"",editType:"style"},font:Fmt({editType:"style"}),editType:"style"},legendrank:{valType:"number",dflt:1e3,editType:"style"},legendwidth:{valType:"number",min:0,editType:"style"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"style"},name:{valType:"string",editType:"style"},uid:{valType:"string",editType:"plot",anim:!0},ids:{valType:"data_array",editType:"calc",anim:!0},customdata:{valType:"data_array",editType:"calc"},meta:{valType:"any",arrayOk:!0,editType:"plot"},selectedpoints:{valType:"any",editType:"calc"},hoverinfo:{valType:"flaglist",flags:["x","y","z","text","name"],extras:["all","none","skip"],arrayOk:!0,dflt:"all",editType:"none"},hoverlabel:Lmt.hoverlabel,uirevision:{valType:"any",editType:"none"}}});var vfe=W((Izr,pfe)=>{var $U=Object.defineProperty,Pmt=Object.getOwnPropertyDescriptor,Imt=Object.getOwnPropertyNames,Rmt=Object.prototype.hasOwnProperty,zmt=(e,t)=>{for(var r in t)$U(e,r,{get:t[r],enumerable:!0})},Bmt=(e,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of Imt(t))!Rmt.call(e,n)&&n!==r&&$U(e,n,{get:()=>t[n],enumerable:!(i=Pmt(t,n))||i.enumerable});return e},qmt=e=>Bmt($U({},"__esModule",{value:!0}),e),Pue={};zmt(Pue,{a98:()=>Cbt,average:()=>Iyt,averageAngle:()=>o1,averageNumber:()=>Zue,blend:()=>Pxt,blerp:()=>SU,clampChroma:()=>Qxt,clampGamut:()=>xV,clampRgb:()=>Jxt,colorsNamed:()=>Rue,convertA98ToXyz65:()=>EU,convertCubehelixToRgb:()=>Yue,convertDlchToLab65:()=>W8,convertHsiToRgb:()=>nce,convertHslToRgb:()=>sce,convertHsvToRgb:()=>JU,convertHwbToRgb:()=>fce,convertItpToXyz65:()=>CU,convertJabToJch:()=>FU,convertJabToRgb:()=>nV,convertJabToXyz65:()=>rV,convertJchToJab:()=>LU,convertLab65ToDlch:()=>Y8,convertLab65ToRgb:()=>rA,convertLab65ToXyz65:()=>XU,convertLabToLch:()=>Ig,convertLabToRgb:()=>oV,convertLabToXyz50:()=>nD,convertLchToLab:()=>Rg,convertLchuvToLuv:()=>uV,convertLrgbToOklab:()=>cV,convertLrgbToRgb:()=>$x,convertLuvToLchuv:()=>lV,convertLuvToXyz50:()=>Z8,convertOkhslToOklab:()=>RU,convertOkhsvToOklab:()=>BU,convertOklabToLrgb:()=>ow,convertOklabToOkhsl:()=>IU,convertOklabToOkhsv:()=>zU,convertOklabToRgb:()=>aA,convertP3ToXyz65:()=>qU,convertProphotoToXyz50:()=>UU,convertRec2020ToXyz65:()=>GU,convertRgbToCubehelix:()=>Wue,convertRgbToHsi:()=>ace,convertRgbToHsl:()=>lce,convertRgbToHsv:()=>QU,convertRgbToHwb:()=>hce,convertRgbToJab:()=>iV,convertRgbToLab:()=>sV,convertRgbToLab65:()=>iA,convertRgbToLrgb:()=>jx,convertRgbToOklab:()=>nA,convertRgbToXyb:()=>Nce,convertRgbToXyz50:()=>aw,convertRgbToXyz65:()=>vy,convertRgbToYiq:()=>Wce,convertXybToRgb:()=>Uce,convertXyz50ToLab:()=>aD,convertXyz50ToLuv:()=>X8,convertXyz50ToProphoto:()=>NU,convertXyz50ToRgb:()=>nw,convertXyz50ToXyz65:()=>jce,convertXyz65ToA98:()=>kU,convertXyz65ToItp:()=>DU,convertXyz65ToJab:()=>tV,convertXyz65ToLab65:()=>ZU,convertXyz65ToP3:()=>OU,convertXyz65ToRec2020:()=>VU,convertXyz65ToRgb:()=>gy,convertXyz65ToXyz50:()=>Hce,convertYiqToRgb:()=>Yce,converter:()=>bs,cubehelix:()=>Dbt,differenceCie76:()=>Eyt,differenceCie94:()=>kyt,differenceCiede2000:()=>Cyt,differenceCmc:()=>Dyt,differenceEuclidean:()=>iw,differenceHueChroma:()=>tA,differenceHueNaive:()=>Xue,differenceHueSaturation:()=>eA,differenceHyab:()=>Fyt,differenceItp:()=>Pyt,differenceKotsarenkoRamos:()=>Lyt,displayable:()=>yV,dlab:()=>Fbt,dlch:()=>Lbt,easingGamma:()=>ufe,easingInOutSine:()=>Ebt,easingMidpoint:()=>rfe,easingSmootherstep:()=>Mbt,easingSmoothstep:()=>wbt,easingSmoothstepInverse:()=>Tbt,filterBrightness:()=>lbt,filterContrast:()=>ubt,filterDeficiencyDeuter:()=>bbt,filterDeficiencyProt:()=>xbt,filterDeficiencyTrit:()=>_bt,filterGrayscale:()=>hbt,filterHueRotate:()=>pbt,filterInvert:()=>dbt,filterSaturate:()=>fbt,filterSepia:()=>cbt,fixupAlpha:()=>Iu,fixupHueDecreasing:()=>wyt,fixupHueIncreasing:()=>_yt,fixupHueLonger:()=>byt,fixupHueShorter:()=>a1,formatCss:()=>Sxt,formatHex:()=>Ext,formatHex8:()=>kxt,formatHsl:()=>Dxt,formatRgb:()=>Cxt,getMode:()=>wf,hsi:()=>Pbt,hsl:()=>Ibt,hsv:()=>Rbt,hwb:()=>zbt,inGamut:()=>lD,interpolate:()=>Vxt,interpolateWith:()=>nfe,interpolateWithPremultipliedAlpha:()=>Gxt,interpolatorLinear:()=>Vi,interpolatorPiecewise:()=>jue,interpolatorSplineBasis:()=>ofe,interpolatorSplineBasisClosed:()=>sfe,interpolatorSplineMonotone:()=>$xt,interpolatorSplineMonotone2:()=>Wxt,interpolatorSplineMonotoneClosed:()=>Yxt,interpolatorSplineNatural:()=>Hxt,interpolatorSplineNaturalClosed:()=>jxt,itp:()=>Bbt,jab:()=>qbt,jch:()=>Obt,lab:()=>Nbt,lab65:()=>Ubt,lch:()=>Vbt,lch65:()=>Gbt,lchuv:()=>Hbt,lerp:()=>Ux,lrgb:()=>jbt,luv:()=>$bt,mapAlphaDivide:()=>tfe,mapAlphaMultiply:()=>efe,mapTransferGamma:()=>qxt,mapTransferLinear:()=>vV,mapper:()=>oA,modeA98:()=>$ue,modeCubehelix:()=>Kue,modeDlab:()=>rce,modeDlch:()=>ice,modeHsi:()=>oce,modeHsl:()=>KU,modeHsv:()=>eV,modeHwb:()=>pce,modeItp:()=>mce,modeJab:()=>yce,modeJch:()=>xce,modeLab:()=>oD,modeLab65:()=>_ce,modeLch:()=>sD,modeLch65:()=>Tce,modeLchuv:()=>Sce,modeLrgb:()=>Ece,modeLuv:()=>kce,modeOkhsl:()=>Dce,modeOkhsv:()=>Fce,modeOklab:()=>Pce,modeOklch:()=>Rce,modeP3:()=>zce,modeProphoto:()=>Bce,modeRec2020:()=>qce,modeRgb:()=>Hx,modeXyb:()=>Vce,modeXyz50:()=>Gce,modeXyz65:()=>$ce,modeYiq:()=>Xce,nearest:()=>rbt,okhsl:()=>Wbt,okhsv:()=>Ybt,oklab:()=>Xbt,oklch:()=>Zbt,p3:()=>Kbt,parse:()=>Vue,parseHex:()=>Bue,parseHsl:()=>cce,parseHslLegacy:()=>uce,parseHwb:()=>dce,parseLab:()=>bce,parseLch:()=>wce,parseNamed:()=>zue,parseOklab:()=>Lce,parseOklch:()=>Ice,parseRgb:()=>Gue,parseRgbLegacy:()=>que,parseTransparent:()=>Hue,prophoto:()=>Jbt,random:()=>Bxt,rec2020:()=>Qbt,removeParser:()=>Jmt,rgb:()=>e_t,round:()=>Zce,samples:()=>Kxt,serializeHex:()=>pV,serializeHex8:()=>Kce,serializeHsl:()=>Qce,serializeRgb:()=>Jce,toGamut:()=>ebt,trilerp:()=>uyt,unlerp:()=>lyt,useMode:()=>$o,useParser:()=>Nue,wcagContrast:()=>kbt,wcagLuminance:()=>jU,xyb:()=>t_t,xyz50:()=>r_t,xyz65:()=>i_t,yiq:()=>n_t});pfe.exports=qmt(Pue);var Omt=(e,t)=>{if(typeof e=="number"){if(t===3)return{mode:"rgb",r:(e>>8&15|e>>4&240)/255,g:(e>>4&15|e&240)/255,b:(e&15|e<<4&240)/255};if(t===4)return{mode:"rgb",r:(e>>12&15|e>>8&240)/255,g:(e>>8&15|e>>4&240)/255,b:(e>>4&15|e&240)/255,alpha:(e&15|e<<4&240)/255};if(t===6)return{mode:"rgb",r:(e>>16&255)/255,g:(e>>8&255)/255,b:(e&255)/255};if(t===8)return{mode:"rgb",r:(e>>24&255)/255,g:(e>>16&255)/255,b:(e>>8&255)/255,alpha:(e&255)/255}}},Iue=Omt,Nmt={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},Rue=Nmt,Umt=e=>Iue(Rue[e.toLowerCase()],6),zue=Umt,Vmt=/^#?([0-9a-f]{8}|[0-9a-f]{6}|[0-9a-f]{4}|[0-9a-f]{3})$/i,Gmt=e=>{let t;return(t=e.match(Vmt))?Iue(parseInt(t[1],16),t[1].length):void 0},Bue=Gmt,zh="([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)",kzr=`(?:${zh}|none)`,KT=`${zh}%`,Czr=`(?:${zh}%|none)`,WU=`(?:${zh}%|${zh})`,Hmt=`(?:${zh}%|${zh}|none)`,jmt=`(?:${zh}(deg|grad|rad|turn)|${zh})`,Dzr=`(?:${zh}(deg|grad|rad|turn)|${zh}|none)`,tw="\\s*,\\s*",Fzr=new RegExp("^"+Hmt+"$"),$mt=new RegExp(`^rgba?\\(\\s*${zh}${tw}${zh}${tw}${zh}\\s*(?:,\\s*${WU}\\s*)?\\)$`),Wmt=new RegExp(`^rgba?\\(\\s*${KT}${tw}${KT}${tw}${KT}\\s*(?:,\\s*${WU}\\s*)?\\)$`),Ymt=e=>{let t={mode:"rgb"},r;if(r=e.match($mt))r[1]!==void 0&&(t.r=r[1]/255),r[2]!==void 0&&(t.g=r[2]/255),r[3]!==void 0&&(t.b=r[3]/255);else if(r=e.match(Wmt))r[1]!==void 0&&(t.r=r[1]/100),r[2]!==void 0&&(t.g=r[2]/100),r[3]!==void 0&&(t.b=r[3]/100);else return;return r[4]!==void 0?t.alpha=Math.max(0,Math.min(1,r[4]/100)):r[5]!==void 0&&(t.alpha=Math.max(0,Math.min(1,+r[5]))),t},que=Ymt,Xmt=(e,t)=>e===void 0?void 0:typeof e!="object"?Vue(e):e.mode!==void 0?e:t?_a(dn({},e),{mode:t}):void 0,Op=Xmt,Zmt=(e="rgb")=>t=>(t=Op(t,e))!==void 0?t.mode===e?t:n1[t.mode][e]?n1[t.mode][e](t):e==="rgb"?n1[t.mode].rgb(t):n1.rgb[e](n1[t.mode].rgb(t)):void 0,bs=Zmt,n1={},Oue={},rw=[],YU={},Kmt=e=>e,$o=e=>(n1[e.mode]=dn(dn({},n1[e.mode]),e.toMode),Object.keys(e.fromMode||{}).forEach(t=>{n1[t]||(n1[t]={}),n1[t][e.mode]=e.fromMode[t]}),e.ranges||(e.ranges={}),e.difference||(e.difference={}),e.channels.forEach(t=>{if(e.ranges[t]===void 0&&(e.ranges[t]=[0,1]),!e.interpolate[t])throw new Error(`Missing interpolator for: ${t}`);typeof e.interpolate[t]=="function"&&(e.interpolate[t]={use:e.interpolate[t]}),e.interpolate[t].fixup||(e.interpolate[t].fixup=Kmt)}),Oue[e.mode]=e,(e.parse||[]).forEach(t=>{Nue(t,e.mode)}),bs(e.mode)),wf=e=>Oue[e],Nue=(e,t)=>{if(typeof e=="string"){if(!t)throw new Error("'mode' required when 'parser' is a string");YU[e]=t}else typeof e=="function"&&rw.indexOf(e)<0&&rw.push(e)},Jmt=e=>{if(typeof e=="string")delete YU[e];else if(typeof e=="function"){let t=rw.indexOf(e);t>0&&rw.splice(t,1)}},AU=/[^\x00-\x7F]|[a-zA-Z_]/,Qmt=/[^\x00-\x7F]|[-\w]/,wi={Function:"function",Ident:"ident",Number:"number",Percentage:"percentage",ParenClose:")",None:"none",Hue:"hue",Alpha:"alpha"},sa=0;function O8(e){let t=e[sa],r=e[sa+1];return t==="-"||t==="+"?/\d/.test(r)||r==="."&&/\d/.test(e[sa+2]):t==="."?/\d/.test(r):/\d/.test(t)}function MU(e){if(sa>=e.length)return!1;let t=e[sa];if(AU.test(t))return!0;if(t==="-"){if(e.length-sa<2)return!1;let r=e[sa+1];return!!(r==="-"||AU.test(r))}return!1}var eyt={deg:1,rad:180/Math.PI,grad:9/10,turn:360};function XT(e){let t="";if((e[sa]==="-"||e[sa]==="+")&&(t+=e[sa++]),t+=N8(e),e[sa]==="."&&/\d/.test(e[sa+1])&&(t+=e[sa++]+N8(e)),(e[sa]==="e"||e[sa]==="E")&&((e[sa+1]==="-"||e[sa+1]==="+")&&/\d/.test(e[sa+2])?t+=e[sa++]+e[sa++]+N8(e):/\d/.test(e[sa+1])&&(t+=e[sa++]+N8(e))),MU(e)){let r=G8(e);return r==="deg"||r==="rad"||r==="turn"||r==="grad"?{type:wi.Hue,value:t*eyt[r]}:void 0}return e[sa]==="%"?(sa++,{type:wi.Percentage,value:+t}):{type:wi.Number,value:+t}}function N8(e){let t="";for(;/\d/.test(e[sa]);)t+=e[sa++];return t}function G8(e){let t="";for(;sa4)){if(r.length===4){if(r[3].type!==wi.Alpha)return;r[3]=r[3].value}return r.length===3&&r.push({type:wi.None,value:void 0}),r.every(n=>n.type!==wi.Alpha)?r:void 0}}function nyt(e,t){e._i=0;let r=e[e._i++];if(!r||r.type!==wi.Function)return;let i=Uue(e,t);if(i)return i.unshift(r.value),i}var ayt=e=>{if(typeof e!="string")return;let t=ryt(e),r=t?nyt(t,!0):void 0,i,n=0,a=rw.length;for(;ne==="transparent"?{mode:"rgb",r:0,g:0,b:0,alpha:0}:void 0,Hue=syt,Ux=(e,t,r)=>e+r*(t-e),lyt=(e,t,r)=>(r-e)/(t-e),SU=(e,t,r,i,n,a)=>Ux(Ux(e,t,n),Ux(r,i,n),a),uyt=(e,t,r,i,n,a,o,s,l,u,c)=>Ux(SU(e,t,r,i,l,u),SU(n,a,o,s,l,u),c),cyt=e=>{let t=[];for(let r=0;rt=>{let r=cyt(t);return i=>{let n=i*r.length,a=i>=1?r.length-1:Math.max(Math.floor(n),0),o=r[a];return o===void 0?void 0:e(o[0],o[1],n-a)}},Vi=jue(Ux),Iu=e=>{let t=!1,r=e.map(i=>i!==void 0?(t=!0,i):1);return t?r:e},fyt={mode:"rgb",channels:["r","g","b","alpha"],parse:[Gue,Bue,que,zue,Hue,"srgb"],serialize:"srgb",interpolate:{r:Vi,g:Vi,b:Vi,alpha:{use:Vi,fixup:Iu}},gamut:!0,white:{r:1,g:1,b:1},black:{r:0,g:0,b:0}},Hx=fyt,tU=(e=0)=>Math.pow(Math.abs(e),563/256)*Math.sign(e),hyt=e=>{let t=tU(e.r),r=tU(e.g),i=tU(e.b),n={mode:"xyz65",x:.5766690429101305*t+.1855582379065463*r+.1882286462349947*i,y:.297344975250536*t+.6273635662554661*r+.0752914584939979*i,z:.0270313613864123*t+.0706888525358272*r+.9913375368376386*i};return e.alpha!==void 0&&(n.alpha=e.alpha),n},EU=hyt,rU=e=>Math.pow(Math.abs(e),256/563)*Math.sign(e),dyt=({x:e,y:t,z:r,alpha:i})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let n={mode:"a98",r:rU(e*2.0415879038107465-t*.5650069742788597-.3447313507783297*r),g:rU(e*-.9692436362808798+t*1.8759675015077206+.0415550574071756*r),b:rU(e*.0134442806320312-t*.1183623922310184+1.0151749943912058*r)};return i!==void 0&&(n.alpha=i),n},kU=dyt,iU=(e=0)=>{let t=Math.abs(e);return t<=.04045?e/12.92:(Math.sign(e)||1)*Math.pow((t+.055)/1.055,2.4)},pyt=({r:e,g:t,b:r,alpha:i})=>{let n={mode:"lrgb",r:iU(e),g:iU(t),b:iU(r)};return i!==void 0&&(n.alpha=i),n},jx=pyt,vyt=e=>{let{r:t,g:r,b:i,alpha:n}=jx(e),a={mode:"xyz65",x:.4123907992659593*t+.357584339383878*r+.1804807884018343*i,y:.2126390058715102*t+.715168678767756*r+.0721923153607337*i,z:.0193308187155918*t+.119194779794626*r+.9505321522496607*i};return n!==void 0&&(a.alpha=n),a},vy=vyt,nU=(e=0)=>{let t=Math.abs(e);return t>.0031308?(Math.sign(e)||1)*(1.055*Math.pow(t,1/2.4)-.055):e*12.92},gyt=({r:e,g:t,b:r,alpha:i},n="rgb")=>{let a={mode:n,r:nU(e),g:nU(t),b:nU(r)};return i!==void 0&&(a.alpha=i),a},$x=gyt,myt=({x:e,y:t,z:r,alpha:i})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let n=$x({r:e*3.2409699419045226-t*1.537383177570094-.4986107602930034*r,g:e*-.9692436362808796+t*1.8759675015077204+.0415550574071756*r,b:e*.0556300796969936-t*.2039769588889765+1.0569715142428784*r});return i!==void 0&&(n.alpha=i),n},gy=myt,yyt=_a(dn({},Hx),{mode:"a98",parse:["a98-rgb"],serialize:"a98-rgb",fromMode:{rgb:e=>kU(vy(e)),xyz65:kU},toMode:{rgb:e=>gy(EU(e)),xyz65:EU}}),$ue=yyt,xyt=e=>(e=e%360)<0?e+360:e,Qc=xyt,J8=(e,t)=>e.map((r,i,n)=>{if(r===void 0)return r;let a=Qc(r);return i===0||e[i-1]===void 0?a:t(a-Qc(n[i-1]))}).reduce((r,i)=>!r.length||i===void 0||r[r.length-1]===void 0?(r.push(i),r):(r.push(i+r[r.length-1]),r),[]),a1=e=>J8(e,t=>Math.abs(t)<=180?t:t-360*Math.sign(t)),byt=e=>J8(e,t=>Math.abs(t)>=180||t===0?t:t-360*Math.sign(t)),_yt=e=>J8(e,t=>t>=0?t:t+360),wyt=e=>J8(e,t=>t<=0?t:t-360),Tc=[-.14861,1.78277,-.29227,-.90649,1.97294,0],Tyt=Math.PI/180,Ayt=180/Math.PI,Aue=Tc[3]*Tc[4],Mue=Tc[1]*Tc[4],Sue=Tc[1]*Tc[2]-Tc[0]*Tc[3],Myt=({r:e,g:t,b:r,alpha:i})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let n=(Sue*r+e*Aue-t*Mue)/(Sue+Aue-Mue),a=r-n,o=(Tc[4]*(t-n)-Tc[2]*a)/Tc[3],s={mode:"cubehelix",l:n,s:n===0||n===1?void 0:Math.sqrt(a*a+o*o)/(Tc[4]*n*(1-n))};return s.s&&(s.h=Math.atan2(o,a)*Ayt-120),i!==void 0&&(s.alpha=i),s},Wue=Myt,Syt=({h:e,s:t,l:r,alpha:i})=>{let n={mode:"rgb"};e=(e===void 0?0:e+120)*Tyt,r===void 0&&(r=0);let a=t===void 0?0:t*r*(1-r),o=Math.cos(e),s=Math.sin(e);return n.r=r+a*(Tc[0]*o+Tc[1]*s),n.g=r+a*(Tc[2]*o+Tc[3]*s),n.b=r+a*(Tc[4]*o+Tc[5]*s),i!==void 0&&(n.alpha=i),n},Yue=Syt,eA=(e,t)=>{if(e.h===void 0||t.h===void 0||!e.s||!t.s)return 0;let r=Qc(e.h),i=Qc(t.h),n=Math.sin((i-r+360)/2*Math.PI/180);return 2*Math.sqrt(e.s*t.s)*n},Xue=(e,t)=>{if(e.h===void 0||t.h===void 0)return 0;let r=Qc(e.h),i=Qc(t.h);return Math.abs(i-r)>180?r-(i-360*Math.sign(i-r)):i-r},tA=(e,t)=>{if(e.h===void 0||t.h===void 0||!e.c||!t.c)return 0;let r=Qc(e.h),i=Qc(t.h),n=Math.sin((i-r+360)/2*Math.PI/180);return 2*Math.sqrt(e.c*t.c)*n},iw=(e="rgb",t=[1,1,1,0])=>{let r=wf(e),i=r.channels,n=r.difference,a=bs(e);return(o,s)=>{let l=a(o),u=a(s);return Math.sqrt(i.reduce((c,f,h)=>{let p=n[f]?n[f](l,u):l[f]-u[f];return c+(t[h]||0)*Math.pow(isNaN(p)?0:p,2)},0))}},Eyt=()=>iw("lab65"),kyt=(e=1,t=.045,r=.015)=>{let i=bs("lab65");return(n,a)=>{let o=i(n),s=i(a),l=o.l,u=o.a,c=o.b,f=Math.sqrt(u*u+c*c),h=s.l,p=s.a,d=s.b,v=Math.sqrt(p*p+d*d),m=Math.pow(l-h,2),g=Math.pow(f-v,2),w=Math.pow(u-p,2)+Math.pow(c-d,2)-g;return Math.sqrt(m/Math.pow(e,2)+g/Math.pow(1+t*f,2)+w/Math.pow(1+r*f,2))}},Cyt=(e=1,t=1,r=1)=>{let i=bs("lab65");return(n,a)=>{let o=i(n),s=i(a),l=o.l,u=o.a,c=o.b,f=Math.sqrt(u*u+c*c),h=s.l,p=s.a,d=s.b,v=Math.sqrt(p*p+d*d),m=(f+v)/2,g=.5*(1-Math.sqrt(Math.pow(m,7)/(Math.pow(m,7)+Math.pow(25,7)))),w=u*(1+g),_=p*(1+g),b=Math.sqrt(w*w+c*c),S=Math.sqrt(_*_+d*d),x=Math.abs(w)+Math.abs(c)===0?0:Math.atan2(c,w);x+=(x<0)*2*Math.PI;let T=Math.abs(_)+Math.abs(d)===0?0:Math.atan2(d,_);T+=(T<0)*2*Math.PI;let A=h-l,y=S-b,E=b*S===0?0:T-x;E-=(E>Math.PI)*2*Math.PI,E+=(E<-Math.PI)*2*Math.PI;let M=2*Math.sqrt(b*S)*Math.sin(E/2),C=(l+h)/2,k=(b+S)/2,D;b*S===0?D=x+T:(D=(x+T)/2,D-=(Math.abs(x-T)>Math.PI)*Math.PI,D+=(D<0)*2*Math.PI);let L=Math.pow(C-50,2),P=1-.17*Math.cos(D-Math.PI/6)+.24*Math.cos(2*D)+.32*Math.cos(3*D+Math.PI/30)-.2*Math.cos(4*D-63*Math.PI/180),R=1+.015*L/Math.sqrt(20+L),F=1+.045*k,I=1+.015*k*P,B=30*Math.PI/180*Math.exp(-1*Math.pow((180/Math.PI*D-275)/25,2)),O=2*Math.sqrt(Math.pow(k,7)/(Math.pow(k,7)+Math.pow(25,7))),$=-1*Math.sin(2*B)*O;return Math.sqrt(Math.pow(A/(e*R),2)+Math.pow(y/(t*F),2)+Math.pow(M/(r*I),2)+$*y/(t*F)*M/(r*I))}},Dyt=(e=1,t=1)=>{let r=bs("lab65");return(i,n)=>{let a=r(i),o=a.l,s=a.a,l=a.b,u=Math.sqrt(s*s+l*l),c=Math.atan2(l,s);c=c+2*Math.PI*(c<0);let f=r(n),h=f.l,p=f.a,d=f.b,v=Math.sqrt(p*p+d*d),m=Math.pow(o-h,2),g=Math.pow(u-v,2),w=Math.pow(s-p,2)+Math.pow(l-d,2)-g,_=Math.sqrt(Math.pow(u,4)/(Math.pow(u,4)+1900)),b=c>=164/180*Math.PI&&c<=345/180*Math.PI?.56+Math.abs(.2*Math.cos(c+168/180*Math.PI)):.36+Math.abs(.4*Math.cos(c+35/180*Math.PI)),S=o<16?.511:.040975*o/(1+.01765*o),x=.0638*u/(1+.0131*u)+.638,T=x*(_*b+1-_);return Math.sqrt(m/Math.pow(e*S,2)+g/Math.pow(t*x,2)+w/Math.pow(T,2))}},Fyt=()=>{let e=bs("lab65");return(t,r)=>{let i=e(t),n=e(r),a=i.l-n.l,o=i.a-n.a,s=i.b-n.b;return Math.abs(a)+Math.sqrt(o*o+s*s)}},Lyt=()=>iw("yiq",[.5053,.299,.1957]),Pyt=()=>iw("itp",[518400,129600,518400]),o1=e=>{let t=e.reduce((i,n)=>{if(n!==void 0){let a=n*Math.PI/180;i.sin+=Math.sin(a),i.cos+=Math.cos(a)}return i},{sin:0,cos:0}),r=Math.atan2(t.sin,t.cos)*180/Math.PI;return r<0?360+r:r},Zue=e=>{let t=e.filter(r=>r!==void 0);return t.length?t.reduce((r,i)=>r+i,0)/t.length:void 0},aU=e=>typeof e=="function";function Iyt(e,t="rgb",r){let i=wf(t),n=e.map(bs(t));return i.channels.reduce((a,o)=>{let s=n.map(l=>l[o]).filter(l=>l!==void 0);if(s.length){let l;aU(r)?l=r:r&&aU(r[o])?l=r[o]:i.average&&aU(i.average[o])?l=i.average[o]:l=Zue,a[o]=l(s,o)}return a},{mode:t})}var Ryt={mode:"cubehelix",channels:["h","s","l","alpha"],parse:["--cubehelix"],serialize:"--cubehelix",ranges:{h:[0,360],s:[0,4.614],l:[0,1]},fromMode:{rgb:Wue},toMode:{rgb:Yue},interpolate:{h:{use:Vi,fixup:a1},s:Vi,l:Vi,alpha:{use:Vi,fixup:Iu}},difference:{h:eA},average:{h:o1}},Kue=Ryt,zyt=({l:e,a:t,b:r,alpha:i},n="lch")=>{t===void 0&&(t=0),r===void 0&&(r=0);let a=Math.sqrt(t*t+r*r),o={mode:n,l:e,c:a};return a&&(o.h=Qc(Math.atan2(r,t)*180/Math.PI)),i!==void 0&&(o.alpha=i),o},Ig=zyt,Byt=({l:e,c:t,h:r,alpha:i},n="lab")=>{r===void 0&&(r=0);let a={mode:n,l:e,a:t?t*Math.cos(r/180*Math.PI):0,b:t?t*Math.sin(r/180*Math.PI):0};return i!==void 0&&(a.alpha=i),a},Rg=Byt,Jue=Math.pow(29,3)/Math.pow(3,3),Que=Math.pow(6,3)/Math.pow(29,3),Pu={X:.3457/.3585,Y:1,Z:(1-.3457-.3585)/.3585},ew={X:.3127/.329,Y:1,Z:(1-.3127-.329)/.329},Lzr=Math.pow(29,3)/Math.pow(3,3),Pzr=Math.pow(6,3)/Math.pow(29,3),oU=e=>Math.pow(e,3)>Que?Math.pow(e,3):(116*e-16)/Jue,qyt=({l:e,a:t,b:r,alpha:i})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let n=(e+16)/116,a=t/500+n,o=n-r/200,s={mode:"xyz65",x:oU(a)*ew.X,y:oU(n)*ew.Y,z:oU(o)*ew.Z};return i!==void 0&&(s.alpha=i),s},XU=qyt,Oyt=e=>gy(XU(e)),rA=Oyt,sU=e=>e>Que?Math.cbrt(e):(Jue*e+16)/116,Nyt=({x:e,y:t,z:r,alpha:i})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let n=sU(e/ew.X),a=sU(t/ew.Y),o=sU(r/ew.Z),s={mode:"lab65",l:116*a-16,a:500*(n-a),b:200*(a-o)};return i!==void 0&&(s.alpha=i),s},ZU=Nyt,Uyt=e=>{let t=ZU(vy(e));return e.r===e.b&&e.b===e.g&&(t.a=t.b=0),t},iA=Uyt,H8=1,ece=1,QT=26/180*Math.PI,j8=Math.cos(QT),$8=Math.sin(QT),tce=100/Math.log(139/100),Vyt=({l:e,c:t,h:r,alpha:i})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let n={mode:"lab65",l:(Math.exp(e*H8/tce)-1)/.0039},a=(Math.exp(.0435*t*ece*H8)-1)/.075,o=a*Math.cos(r/180*Math.PI-QT),s=a*Math.sin(r/180*Math.PI-QT);return n.a=o*j8-s/.83*$8,n.b=o*$8+s/.83*j8,i!==void 0&&(n.alpha=i),n},W8=Vyt,Gyt=({l:e,a:t,b:r,alpha:i})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let n=t*j8+r*$8,a=.83*(r*j8-t*$8),o=Math.sqrt(n*n+a*a),s={mode:"dlch",l:tce/H8*Math.log(1+.0039*e),c:Math.log(1+.075*o)/(.0435*ece*H8)};return s.c&&(s.h=Qc((Math.atan2(a,n)+QT)/Math.PI*180)),i!==void 0&&(s.alpha=i),s},Y8=Gyt,Eue=e=>W8(Ig(e,"dlch")),kue=e=>Rg(Y8(e),"dlab"),Hyt={mode:"dlab",parse:["--din99o-lab"],serialize:"--din99o-lab",toMode:{lab65:Eue,rgb:e=>rA(Eue(e))},fromMode:{lab65:kue,rgb:e=>kue(iA(e))},channels:["l","a","b","alpha"],ranges:{l:[0,100],a:[-40.09,45.501],b:[-40.469,44.344]},interpolate:{l:Vi,a:Vi,b:Vi,alpha:{use:Vi,fixup:Iu}}},rce=Hyt,jyt={mode:"dlch",parse:["--din99o-lch"],serialize:"--din99o-lch",toMode:{lab65:W8,dlab:e=>Rg(e,"dlab"),rgb:e=>rA(W8(e))},fromMode:{lab65:Y8,dlab:e=>Ig(e,"dlch"),rgb:e=>Y8(iA(e))},channels:["l","c","h","alpha"],ranges:{l:[0,100],c:[0,51.484],h:[0,360]},interpolate:{l:Vi,c:Vi,h:{use:Vi,fixup:a1},alpha:{use:Vi,fixup:Iu}},difference:{h:tA},average:{h:o1}},ice=jyt;function nce({h:e,s:t,i:r,alpha:i}){e=Qc(e!==void 0?e:0),t===void 0&&(t=0),r===void 0&&(r=0);let n=Math.abs(e/60%2-1),a;switch(Math.floor(e/60)){case 0:a={r:r*(1+t*(3/(2-n)-1)),g:r*(1+t*(3*(1-n)/(2-n)-1)),b:r*(1-t)};break;case 1:a={r:r*(1+t*(3*(1-n)/(2-n)-1)),g:r*(1+t*(3/(2-n)-1)),b:r*(1-t)};break;case 2:a={r:r*(1-t),g:r*(1+t*(3/(2-n)-1)),b:r*(1+t*(3*(1-n)/(2-n)-1))};break;case 3:a={r:r*(1-t),g:r*(1+t*(3*(1-n)/(2-n)-1)),b:r*(1+t*(3/(2-n)-1))};break;case 4:a={r:r*(1+t*(3*(1-n)/(2-n)-1)),g:r*(1-t),b:r*(1+t*(3/(2-n)-1))};break;case 5:a={r:r*(1+t*(3/(2-n)-1)),g:r*(1-t),b:r*(1+t*(3*(1-n)/(2-n)-1))};break;default:a={r:r*(1-t),g:r*(1-t),b:r*(1-t)}}return a.mode="rgb",i!==void 0&&(a.alpha=i),a}function ace({r:e,g:t,b:r,alpha:i}){e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let n=Math.max(e,t,r),a=Math.min(e,t,r),o={mode:"hsi",s:e+t+r===0?0:1-3*a/(e+t+r),i:(e+t+r)/3};return n-a!==0&&(o.h=(n===e?(t-r)/(n-a)+(t{switch(t){case"deg":return+e;case"rad":return e/Math.PI*180;case"grad":return e/10*9;case"turn":return e*360}},Yyt=Wyt,Xyt=new RegExp(`^hsla?\\(\\s*${jmt}${tw}${KT}${tw}${KT}\\s*(?:,\\s*${WU}\\s*)?\\)$`),Zyt=e=>{let t=e.match(Xyt);if(!t)return;let r={mode:"hsl"};return t[3]!==void 0?r.h=+t[3]:t[1]!==void 0&&t[2]!==void 0&&(r.h=Yyt(t[1],t[2])),t[4]!==void 0&&(r.s=Math.min(Math.max(0,t[4]/100),1)),t[5]!==void 0&&(r.l=Math.min(Math.max(0,t[5]/100),1)),t[6]!==void 0?r.alpha=Math.max(0,Math.min(1,t[6]/100)):t[7]!==void 0&&(r.alpha=Math.max(0,Math.min(1,+t[7]))),r},uce=Zyt;function Kyt(e,t){if(!t||t[0]!=="hsl"&&t[0]!=="hsla")return;let r={mode:"hsl"},[,i,n,a,o]=t;if(i.type!==wi.None){if(i.type===wi.Percentage)return;r.h=i.value}if(n.type!==wi.None){if(n.type===wi.Hue)return;r.s=n.value/100}if(a.type!==wi.None){if(a.type===wi.Hue)return;r.l=a.value/100}return o.type!==wi.None&&(r.alpha=Math.min(1,Math.max(0,o.type===wi.Number?o.value:o.value/100))),r}var cce=Kyt,Jyt={mode:"hsl",toMode:{rgb:sce},fromMode:{rgb:lce},channels:["h","s","l","alpha"],ranges:{h:[0,360]},gamut:"rgb",parse:[cce,uce],serialize:e=>`hsl(${e.h!==void 0?e.h:"none"} ${e.s!==void 0?e.s*100+"%":"none"} ${e.l!==void 0?e.l*100+"%":"none"}${e.alpha<1?` / ${e.alpha}`:""})`,interpolate:{h:{use:Vi,fixup:a1},s:Vi,l:Vi,alpha:{use:Vi,fixup:Iu}},difference:{h:eA},average:{h:o1}},KU=Jyt;function JU({h:e,s:t,v:r,alpha:i}){e=Qc(e!==void 0?e:0),t===void 0&&(t=0),r===void 0&&(r=0);let n=Math.abs(e/60%2-1),a;switch(Math.floor(e/60)){case 0:a={r,g:r*(1-t*n),b:r*(1-t)};break;case 1:a={r:r*(1-t*n),g:r,b:r*(1-t)};break;case 2:a={r:r*(1-t),g:r,b:r*(1-t*n)};break;case 3:a={r:r*(1-t),g:r*(1-t*n),b:r};break;case 4:a={r:r*(1-t*n),g:r*(1-t),b:r};break;case 5:a={r,g:r*(1-t),b:r*(1-t*n)};break;default:a={r:r*(1-t),g:r*(1-t),b:r*(1-t)}}return a.mode="rgb",i!==void 0&&(a.alpha=i),a}function QU({r:e,g:t,b:r,alpha:i}){e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let n=Math.max(e,t,r),a=Math.min(e,t,r),o={mode:"hsv",s:n===0?0:1-a/n,v:n};return n-a!==0&&(o.h=(n===e?(t-r)/(n-a)+(t1){let n=t+r;t/=n,r/=n}return JU({h:e,s:r===1?1:1-t/(1-r),v:1-r,alpha:i})}function hce(e){let t=QU(e);if(t===void 0)return;let r=t.s!==void 0?t.s:0,i=t.v!==void 0?t.v:0,n={mode:"hwb",w:(1-r)*i,b:1-i};return t.h!==void 0&&(n.h=t.h),t.alpha!==void 0&&(n.alpha=t.alpha),n}function e2t(e,t){if(!t||t[0]!=="hwb")return;let r={mode:"hwb"},[,i,n,a,o]=t;if(i.type!==wi.None){if(i.type===wi.Percentage)return;r.h=i.value}if(n.type!==wi.None){if(n.type===wi.Hue)return;r.w=n.value/100}if(a.type!==wi.None){if(a.type===wi.Hue)return;r.b=a.value/100}return o.type!==wi.None&&(r.alpha=Math.min(1,Math.max(0,o.type===wi.Number?o.value:o.value/100))),r}var dce=e2t,t2t={mode:"hwb",toMode:{rgb:fce},fromMode:{rgb:hce},channels:["h","w","b","alpha"],ranges:{h:[0,360]},gamut:"rgb",parse:[dce],serialize:e=>`hwb(${e.h!==void 0?e.h:"none"} ${e.w!==void 0?e.w*100+"%":"none"} ${e.b!==void 0?e.b*100+"%":"none"}${e.alpha<1?` / ${e.alpha}`:""})`,interpolate:{h:{use:Vi,fixup:a1},w:Vi,b:Vi,alpha:{use:Vi,fixup:Iu}},difference:{h:Xue},average:{h:o1}},pce=t2t,vce=203,Q8=.1593017578125,gce=78.84375,eD=.8359375,tD=18.8515625,rD=18.6875;function lU(e){if(e<0)return 0;let t=Math.pow(e,1/gce);return 1e4*Math.pow(Math.max(0,t-eD)/(tD-rD*t),1/Q8)}function uU(e){if(e<0)return 0;let t=Math.pow(e/1e4,Q8);return Math.pow((eD+tD*t)/(1+rD*t),gce)}var cU=e=>Math.max(e/vce,0),r2t=({i:e,t,p:r,alpha:i})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let n=lU(e+.008609037037932761*t+.11102962500302593*r),a=lU(e-.00860903703793275*t-.11102962500302599*r),o=lU(e+.5600313357106791*t-.32062717498731885*r),s={mode:"xyz65",x:cU(2.070152218389422*n-1.3263473389671556*a+.2066510476294051*o),y:cU(.3647385209748074*n+.680566024947227*a-.0453045459220346*o),z:cU(-.049747207535812*n-.0492609666966138*a+1.1880659249923042*o)};return i!==void 0&&(s.alpha=i),s},CU=r2t,fU=(e=0)=>Math.max(e*vce,0),i2t=({x:e,y:t,z:r,alpha:i})=>{let n=fU(e),a=fU(t),o=fU(r),s=uU(.3592832590121217*n+.6976051147779502*a-.0358915932320289*o),l=uU(-.1920808463704995*n+1.1004767970374323*a+.0753748658519118*o),u=uU(.0070797844607477*n+.0748396662186366*a+.8433265453898765*o),c=.5*s+.5*l,f=1.61376953125*s-3.323486328125*l+1.709716796875*u,h=4.378173828125*s-4.24560546875*l-.132568359375*u,p={mode:"itp",i:c,t:f,p:h};return i!==void 0&&(p.alpha=i),p},DU=i2t,n2t={mode:"itp",channels:["i","t","p","alpha"],parse:["--ictcp"],serialize:"--ictcp",toMode:{xyz65:CU,rgb:e=>gy(CU(e))},fromMode:{xyz65:DU,rgb:e=>DU(vy(e))},ranges:{i:[0,.581],t:[-.369,.272],p:[-.164,.331]},interpolate:{i:Vi,t:Vi,p:Vi,alpha:{use:Vi,fixup:Iu}}},mce=n2t,a2t=134.03437499999998,o2t=16295499532821565e-27,hU=e=>{if(e<0)return 0;let t=Math.pow(e/1e4,Q8);return Math.pow((eD+tD*t)/(1+rD*t),a2t)},dU=(e=0)=>Math.max(e*203,0),s2t=({x:e,y:t,z:r,alpha:i})=>{e=dU(e),t=dU(t),r=dU(r);let n=1.15*e-.15*r,a=.66*t+.34*e,o=hU(.41478972*n+.579999*a+.014648*r),s=hU(-.20151*n+1.120649*a+.0531008*r),l=hU(-.0166008*n+.2648*a+.6684799*r),u=(o+s)/2,c={mode:"jab",j:.44*u/(1-.56*u)-o2t,a:3.524*o-4.066708*s+.542708*l,b:.199076*o+1.096799*s-1.295875*l};return i!==void 0&&(c.alpha=i),c},tV=s2t,l2t=134.03437499999998,Cue=16295499532821565e-27,pU=e=>{if(e<0)return 0;let t=Math.pow(e,1/l2t);return 1e4*Math.pow((eD-t)/(rD*t-tD),1/Q8)},vU=e=>e/203,u2t=({j:e,a:t,b:r,alpha:i})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let n=(e+Cue)/(.44+.56*(e+Cue)),a=pU(n+.13860504*t+.058047316*r),o=pU(n-.13860504*t-.058047316*r),s=pU(n-.096019242*t-.8118919*r),l={mode:"xyz65",x:vU(1.661373024652174*a-.914523081304348*o+.23136208173913045*s),y:vU(-.3250758611844533*a+1.571847026732543*o-.21825383453227928*s),z:vU(-.090982811*a-.31272829*o+1.5227666*s)};return i!==void 0&&(l.alpha=i),l},rV=u2t,c2t=e=>{let t=tV(vy(e));return e.r===e.b&&e.b===e.g&&(t.a=t.b=0),t},iV=c2t,f2t=e=>gy(rV(e)),nV=f2t,h2t={mode:"jab",channels:["j","a","b","alpha"],parse:["--jzazbz"],serialize:"--jzazbz",fromMode:{rgb:iV,xyz65:tV},toMode:{rgb:nV,xyz65:rV},ranges:{j:[0,.222],a:[-.109,.129],b:[-.185,.134]},interpolate:{j:Vi,a:Vi,b:Vi,alpha:{use:Vi,fixup:Iu}}},yce=h2t,d2t=({j:e,a:t,b:r,alpha:i})=>{t===void 0&&(t=0),r===void 0&&(r=0);let n=Math.sqrt(t*t+r*r),a={mode:"jch",j:e,c:n};return n&&(a.h=Qc(Math.atan2(r,t)*180/Math.PI)),i!==void 0&&(a.alpha=i),a},FU=d2t,p2t=({j:e,c:t,h:r,alpha:i})=>{r===void 0&&(r=0);let n={mode:"jab",j:e,a:t?t*Math.cos(r/180*Math.PI):0,b:t?t*Math.sin(r/180*Math.PI):0};return i!==void 0&&(n.alpha=i),n},LU=p2t,v2t={mode:"jch",parse:["--jzczhz"],serialize:"--jzczhz",toMode:{jab:LU,rgb:e=>nV(LU(e))},fromMode:{rgb:e=>FU(iV(e)),jab:FU},channels:["j","c","h","alpha"],ranges:{j:[0,.221],c:[0,.19],h:[0,360]},interpolate:{h:{use:Vi,fixup:a1},c:Vi,j:Vi,alpha:{use:Vi,fixup:Iu}},difference:{h:tA},average:{h:o1}},xce=v2t,iD=Math.pow(29,3)/Math.pow(3,3),aV=Math.pow(6,3)/Math.pow(29,3),gU=e=>Math.pow(e,3)>aV?Math.pow(e,3):(116*e-16)/iD,g2t=({l:e,a:t,b:r,alpha:i})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let n=(e+16)/116,a=t/500+n,o=n-r/200,s={mode:"xyz50",x:gU(a)*Pu.X,y:gU(n)*Pu.Y,z:gU(o)*Pu.Z};return i!==void 0&&(s.alpha=i),s},nD=g2t,m2t=({x:e,y:t,z:r,alpha:i})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let n=$x({r:e*3.1341359569958707-t*1.6173863321612538-.4906619460083532*r,g:e*-.978795502912089+t*1.916254567259524+.03344273116131949*r,b:e*.07195537988411677-t*.2289768264158322+1.405386058324125*r});return i!==void 0&&(n.alpha=i),n},nw=m2t,y2t=e=>nw(nD(e)),oV=y2t,x2t=e=>{let{r:t,g:r,b:i,alpha:n}=jx(e),a={mode:"xyz50",x:.436065742824811*t+.3851514688337912*r+.14307845442264197*i,y:.22249319175623702*t+.7168870538238823*r+.06061979053616537*i,z:.013923904500943465*t+.09708128566574634*r+.7140993584005155*i};return n!==void 0&&(a.alpha=n),a},aw=x2t,mU=e=>e>aV?Math.cbrt(e):(iD*e+16)/116,b2t=({x:e,y:t,z:r,alpha:i})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let n=mU(e/Pu.X),a=mU(t/Pu.Y),o=mU(r/Pu.Z),s={mode:"lab",l:116*a-16,a:500*(n-a),b:200*(a-o)};return i!==void 0&&(s.alpha=i),s},aD=b2t,_2t=e=>{let t=aD(aw(e));return e.r===e.b&&e.b===e.g&&(t.a=t.b=0),t},sV=_2t;function w2t(e,t){if(!t||t[0]!=="lab")return;let r={mode:"lab"},[,i,n,a,o]=t;if(!(i.type===wi.Hue||n.type===wi.Hue||a.type===wi.Hue))return i.type!==wi.None&&(r.l=Math.min(Math.max(0,i.value),100)),n.type!==wi.None&&(r.a=n.type===wi.Number?n.value:n.value*125/100),a.type!==wi.None&&(r.b=a.type===wi.Number?a.value:a.value*125/100),o.type!==wi.None&&(r.alpha=Math.min(1,Math.max(0,o.type===wi.Number?o.value:o.value/100))),r}var bce=w2t,T2t={mode:"lab",toMode:{xyz50:nD,rgb:oV},fromMode:{xyz50:aD,rgb:sV},channels:["l","a","b","alpha"],ranges:{l:[0,100],a:[-125,125],b:[-125,125]},parse:[bce],serialize:e=>`lab(${e.l!==void 0?e.l:"none"} ${e.a!==void 0?e.a:"none"} ${e.b!==void 0?e.b:"none"}${e.alpha<1?` / ${e.alpha}`:""})`,interpolate:{l:Vi,a:Vi,b:Vi,alpha:{use:Vi,fixup:Iu}}},oD=T2t,A2t=_a(dn({},oD),{mode:"lab65",parse:["--lab-d65"],serialize:"--lab-d65",toMode:{xyz65:XU,rgb:rA},fromMode:{xyz65:ZU,rgb:iA},ranges:{l:[0,100],a:[-125,125],b:[-125,125]}}),_ce=A2t;function M2t(e,t){if(!t||t[0]!=="lch")return;let r={mode:"lch"},[,i,n,a,o]=t;if(i.type!==wi.None){if(i.type===wi.Hue)return;r.l=Math.min(Math.max(0,i.value),100)}if(n.type!==wi.None&&(r.c=Math.max(0,n.type===wi.Number?n.value:n.value*150/100)),a.type!==wi.None){if(a.type===wi.Percentage)return;r.h=a.value}return o.type!==wi.None&&(r.alpha=Math.min(1,Math.max(0,o.type===wi.Number?o.value:o.value/100))),r}var wce=M2t,S2t={mode:"lch",toMode:{lab:Rg,rgb:e=>oV(Rg(e))},fromMode:{rgb:e=>Ig(sV(e)),lab:Ig},channels:["l","c","h","alpha"],ranges:{l:[0,100],c:[0,150],h:[0,360]},parse:[wce],serialize:e=>`lch(${e.l!==void 0?e.l:"none"} ${e.c!==void 0?e.c:"none"} ${e.h!==void 0?e.h:"none"}${e.alpha<1?` / ${e.alpha}`:""})`,interpolate:{h:{use:Vi,fixup:a1},c:Vi,l:Vi,alpha:{use:Vi,fixup:Iu}},difference:{h:tA},average:{h:o1}},sD=S2t,E2t=_a(dn({},sD),{mode:"lch65",parse:["--lch-d65"],serialize:"--lch-d65",toMode:{lab65:e=>Rg(e,"lab65"),rgb:e=>rA(Rg(e,"lab65"))},fromMode:{rgb:e=>Ig(iA(e),"lch65"),lab65:e=>Ig(e,"lch65")},ranges:{l:[0,100],c:[0,150],h:[0,360]}}),Tce=E2t,k2t=({l:e,u:t,v:r,alpha:i})=>{t===void 0&&(t=0),r===void 0&&(r=0);let n=Math.sqrt(t*t+r*r),a={mode:"lchuv",l:e,c:n};return n&&(a.h=Qc(Math.atan2(r,t)*180/Math.PI)),i!==void 0&&(a.alpha=i),a},lV=k2t,C2t=({l:e,c:t,h:r,alpha:i})=>{r===void 0&&(r=0);let n={mode:"luv",l:e,u:t?t*Math.cos(r/180*Math.PI):0,v:t?t*Math.sin(r/180*Math.PI):0};return i!==void 0&&(n.alpha=i),n},uV=C2t,Ace=(e,t,r)=>4*e/(e+15*t+3*r),Mce=(e,t,r)=>9*t/(e+15*t+3*r),D2t=Ace(Pu.X,Pu.Y,Pu.Z),F2t=Mce(Pu.X,Pu.Y,Pu.Z),L2t=e=>e<=aV?iD*e:116*Math.cbrt(e)-16,P2t=({x:e,y:t,z:r,alpha:i})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let n=L2t(t/Pu.Y),a=Ace(e,t,r),o=Mce(e,t,r);!isFinite(a)||!isFinite(o)?n=a=o=0:(a=13*n*(a-D2t),o=13*n*(o-F2t));let s={mode:"luv",l:n,u:a,v:o};return i!==void 0&&(s.alpha=i),s},X8=P2t,I2t=(e,t,r)=>4*e/(e+15*t+3*r),R2t=(e,t,r)=>9*t/(e+15*t+3*r),z2t=I2t(Pu.X,Pu.Y,Pu.Z),B2t=R2t(Pu.X,Pu.Y,Pu.Z),q2t=({l:e,u:t,v:r,alpha:i})=>{if(e===void 0&&(e=0),e===0)return{mode:"xyz50",x:0,y:0,z:0};t===void 0&&(t=0),r===void 0&&(r=0);let n=t/(13*e)+z2t,a=r/(13*e)+B2t,o=Pu.Y*(e<=8?e/iD:Math.pow((e+16)/116,3)),s=o*(9*n)/(4*a),l=o*(12-3*n-20*a)/(4*a),u={mode:"xyz50",x:s,y:o,z:l};return i!==void 0&&(u.alpha=i),u},Z8=q2t,O2t=e=>lV(X8(aw(e))),N2t=e=>nw(Z8(uV(e))),U2t={mode:"lchuv",toMode:{luv:uV,rgb:N2t},fromMode:{rgb:O2t,luv:lV},channels:["l","c","h","alpha"],parse:["--lchuv"],serialize:"--lchuv",ranges:{l:[0,100],c:[0,176.956],h:[0,360]},interpolate:{h:{use:Vi,fixup:a1},c:Vi,l:Vi,alpha:{use:Vi,fixup:Iu}},difference:{h:tA},average:{h:o1}},Sce=U2t,V2t=_a(dn({},Hx),{mode:"lrgb",toMode:{rgb:$x},fromMode:{rgb:jx},parse:["srgb-linear"],serialize:"srgb-linear"}),Ece=V2t,G2t={mode:"luv",toMode:{xyz50:Z8,rgb:e=>nw(Z8(e))},fromMode:{xyz50:X8,rgb:e=>X8(aw(e))},channels:["l","u","v","alpha"],parse:["--luv"],serialize:"--luv",ranges:{l:[0,100],u:[-84.936,175.042],v:[-125.882,87.243]},interpolate:{l:Vi,u:Vi,v:Vi,alpha:{use:Vi,fixup:Iu}}},kce=G2t,H2t=({r:e,g:t,b:r,alpha:i})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let n=Math.cbrt(.412221469470763*e+.5363325372617348*t+.0514459932675022*r),a=Math.cbrt(.2119034958178252*e+.6806995506452344*t+.1073969535369406*r),o=Math.cbrt(.0883024591900564*e+.2817188391361215*t+.6299787016738222*r),s={mode:"oklab",l:.210454268309314*n+.7936177747023054*a-.0040720430116193*o,a:1.9779985324311684*n-2.42859224204858*a+.450593709617411*o,b:.0259040424655478*n+.7827717124575296*a-.8086757549230774*o};return i!==void 0&&(s.alpha=i),s},cV=H2t,j2t=e=>{let t=cV(jx(e));return e.r===e.b&&e.b===e.g&&(t.a=t.b=0),t},nA=j2t,$2t=({l:e,a:t,b:r,alpha:i})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let n=Math.pow(e+.3963377773761749*t+.2158037573099136*r,3),a=Math.pow(e-.1055613458156586*t-.0638541728258133*r,3),o=Math.pow(e-.0894841775298119*t-1.2914855480194092*r,3),s={mode:"lrgb",r:4.076741636075957*n-3.3077115392580616*a+.2309699031821044*o,g:-1.2684379732850317*n+2.6097573492876887*a-.3413193760026573*o,b:-.0041960761386756*n-.7034186179359362*a+1.7076146940746117*o};return i!==void 0&&(s.alpha=i),s},ow=$2t,W2t=e=>$x(ow(e)),aA=W2t;function PU(e){let i=1.170873786407767;return .5*(i*e-.206+Math.sqrt((i*e-.206)*(i*e-.206)+4*.03*i*e))}function K8(e){return(e*e+.206*e)/(1.170873786407767*(e+.03))}function Y2t(e,t){let r,i,n,a,o,s,l,u;-1.88170328*e-.80936493*t>1?(r=1.19086277,i=1.76576728,n=.59662641,a=.75515197,o=.56771245,s=4.0767416621,l=-3.3077115913,u=.2309699292):1.81444104*e-1.19445276*t>1?(r=.73956515,i=-.45954404,n=.08285427,a=.1254107,o=.14503204,s=-1.2684380046,l=2.6097574011,u=-.3413193965):(r=1.35733652,i=-.00915799,n=-1.1513021,a=-.50559606,o=.00692167,s=-.0041960863,l=-.7034186147,u=1.707614701);let c=r+i*e+n*t+a*e*e+o*e*t,f=.3963377774*e+.2158037573*t,h=-.1055613458*e-.0638541728*t,p=-.0894841775*e-1.291485548*t;{let d=1+c*f,v=1+c*h,m=1+c*p,g=d*d*d,w=v*v*v,_=m*m*m,b=3*f*d*d,S=3*h*v*v,x=3*p*m*m,T=6*f*f*d,A=6*h*h*v,y=6*p*p*m,E=s*g+l*w+u*_,M=s*b+l*S+u*x,C=s*T+l*A+u*y;c=c-E*M/(M*M-.5*E*C)}return c}function fV(e,t){let r=Y2t(e,t),i=ow({l:1,a:r*e,b:r*t}),n=Math.cbrt(1/Math.max(i.r,i.g,i.b)),a=n*r;return[n,a]}function X2t(e,t,r,i,n,a=null){a||(a=fV(e,t));let o;if((r-n)*a[1]-(a[0]-n)*i<=0)o=a[1]*n/(i*a[0]+a[1]*(n-r));else{o=a[1]*(n-1)/(i*(a[0]-1)+a[1]*(n-r));{let s=r-n,l=i,u=.3963377774*e+.2158037573*t,c=-.1055613458*e-.0638541728*t,f=-.0894841775*e-1.291485548*t,h=s+l*u,p=s+l*c,d=s+l*f;{let v=n*(1-o)+o*r,m=o*i,g=v+m*u,w=v+m*c,_=v+m*f,b=g*g*g,S=w*w*w,x=_*_*_,T=3*h*g*g,A=3*p*w*w,y=3*d*_*_,E=6*h*h*g,M=6*p*p*w,C=6*d*d*_,k=4.0767416621*b-3.3077115913*S+.2309699292*x-1,D=4.0767416621*T-3.3077115913*A+.2309699292*y,L=4.0767416621*E-3.3077115913*M+.2309699292*C,P=D/(D*D-.5*k*L),R=-k*P,F=-1.2684380046*b+2.6097574011*S-.3413193965*x-1,I=-1.2684380046*T+2.6097574011*A-.3413193965*y,B=-1.2684380046*E+2.6097574011*M-.3413193965*C,O=I/(I*I-.5*F*B),$=-F*O,Y=-.0041960863*b-.7034186147*S+1.707614701*x-1,K=-.0041960863*T-.7034186147*A+1.707614701*y,j=-.0041960863*E-.7034186147*M+1.707614701*C,q=K/(K*K-.5*Y*j),Q=-Y*q;R=P>=0?R:1e6,$=O>=0?$:1e6,Q=q>=0?Q:1e6,o+=Math.min(R,Math.min($,Q))}}}return o}function hV(e,t,r=null){r||(r=fV(e,t));let i=r[0],n=r[1];return[n/i,n/(1-i)]}function Cce(e,t,r){let i=fV(t,r),n=X2t(t,r,e,1,e,i),a=hV(t,r,i),o=.11516993+1/(7.4477897+4.1590124*r+t*(-2.19557347+1.75198401*r+t*(-2.13704948-10.02301043*r+t*(-4.24894561+5.38770819*r+4.69891013*t)))),s=.11239642+1/(1.6132032-.68124379*r+t*(.40370612+.90148123*r+t*(-.27087943+.6122399*r+t*(.00299215-.45399568*r-.14661872*t)))),l=n/Math.min(e*a[0],(1-e)*a[1]),u=e*o,c=(1-e)*s,f=.9*l*Math.sqrt(Math.sqrt(1/(1/(u*u*u*u)+1/(c*c*c*c))));return u=e*.4,c=(1-e)*.8,[Math.sqrt(1/(1/(u*u)+1/(c*c))),f,n]}function IU(e){let t=e.l!==void 0?e.l:0,r=e.a!==void 0?e.a:0,i=e.b!==void 0?e.b:0,n={mode:"okhsl",l:PU(t)};e.alpha!==void 0&&(n.alpha=e.alpha);let a=Math.sqrt(r*r+i*i);if(!a)return n.s=0,n;let[o,s,l]=Cce(t,r/a,i/a),u;if(aIU(nA(e))},toMode:{oklab:RU,rgb:e=>aA(RU(e))}}),Dce=Z2t;function zU(e){let t=e.l!==void 0?e.l:0,r=e.a!==void 0?e.a:0,i=e.b!==void 0?e.b:0,n=Math.sqrt(r*r+i*i),a=n?r/n:1,o=n?i/n:1,[s,l]=hV(a,o),u=.5,c=1-u/s,f=l/(n+t*l),h=f*t,p=f*n,d=K8(h),v=p*d/h,m=ow({l:d,a:a*v,b:o*v}),g=Math.cbrt(1/Math.max(m.r,m.g,m.b,0));t=t/g,n=n/g*PU(t)/t,t=PU(t);let w={mode:"okhsv",s:n?(u+l)*p/(l*u+l*c*p):0,v:t?t/h:0};return w.s&&(w.h=Qc(Math.atan2(i,r)*180/Math.PI)),e.alpha!==void 0&&(w.alpha=e.alpha),w}function BU(e){let t={mode:"oklab"};e.alpha!==void 0&&(t.alpha=e.alpha);let r=e.h!==void 0?e.h:0,i=e.s!==void 0?e.s:0,n=e.v!==void 0?e.v:0,a=Math.cos(r/180*Math.PI),o=Math.sin(r/180*Math.PI),[s,l]=hV(a,o),u=.5,c=1-u/s,f=1-i*u/(u+l-l*c*i),h=i*l*u/(u+l-l*c*i),p=K8(f),d=h*p/f,v=ow({l:p,a:a*d,b:o*d}),m=Math.cbrt(1/Math.max(v.r,v.g,v.b,0)),g=K8(n*f),w=h*g/f;return t.l=g*m,t.a=w*a*m,t.b=w*o*m,t}var K2t=_a(dn({},eV),{mode:"okhsv",channels:["h","s","v","alpha"],parse:["--okhsv"],serialize:"--okhsv",fromMode:{oklab:zU,rgb:e=>zU(nA(e))},toMode:{oklab:BU,rgb:e=>aA(BU(e))}}),Fce=K2t;function J2t(e,t){if(!t||t[0]!=="oklab")return;let r={mode:"oklab"},[,i,n,a,o]=t;if(!(i.type===wi.Hue||n.type===wi.Hue||a.type===wi.Hue))return i.type!==wi.None&&(r.l=Math.min(Math.max(0,i.type===wi.Number?i.value:i.value/100),1)),n.type!==wi.None&&(r.a=n.type===wi.Number?n.value:n.value*.4/100),a.type!==wi.None&&(r.b=a.type===wi.Number?a.value:a.value*.4/100),o.type!==wi.None&&(r.alpha=Math.min(1,Math.max(0,o.type===wi.Number?o.value:o.value/100))),r}var Lce=J2t,Q2t=_a(dn({},oD),{mode:"oklab",toMode:{lrgb:ow,rgb:aA},fromMode:{lrgb:cV,rgb:nA},ranges:{l:[0,1],a:[-.4,.4],b:[-.4,.4]},parse:[Lce],serialize:e=>`oklab(${e.l!==void 0?e.l:"none"} ${e.a!==void 0?e.a:"none"} ${e.b!==void 0?e.b:"none"}${e.alpha<1?` / ${e.alpha}`:""})`}),Pce=Q2t;function ext(e,t){if(!t||t[0]!=="oklch")return;let r={mode:"oklch"},[,i,n,a,o]=t;if(i.type!==wi.None){if(i.type===wi.Hue)return;r.l=Math.min(Math.max(0,i.type===wi.Number?i.value:i.value/100),1)}if(n.type!==wi.None&&(r.c=Math.max(0,n.type===wi.Number?n.value:n.value*.4/100)),a.type!==wi.None){if(a.type===wi.Percentage)return;r.h=a.value}return o.type!==wi.None&&(r.alpha=Math.min(1,Math.max(0,o.type===wi.Number?o.value:o.value/100))),r}var Ice=ext,txt=_a(dn({},sD),{mode:"oklch",toMode:{oklab:e=>Rg(e,"oklab"),rgb:e=>aA(Rg(e,"oklab"))},fromMode:{rgb:e=>Ig(nA(e),"oklch"),oklab:e=>Ig(e,"oklch")},parse:[Ice],serialize:e=>`oklch(${e.l!==void 0?e.l:"none"} ${e.c!==void 0?e.c:"none"} ${e.h!==void 0?e.h:"none"}${e.alpha<1?` / ${e.alpha}`:""})`,ranges:{l:[0,1],c:[0,.4],h:[0,360]}}),Rce=txt,rxt=e=>{let{r:t,g:r,b:i,alpha:n}=jx(e),a={mode:"xyz65",x:.486570948648216*t+.265667693169093*r+.1982172852343625*i,y:.2289745640697487*t+.6917385218365062*r+.079286914093745*i,z:0*t+.0451133818589026*r+1.043944368900976*i};return n!==void 0&&(a.alpha=n),a},qU=rxt,ixt=({x:e,y:t,z:r,alpha:i})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let n=$x({r:e*2.4934969119414263-t*.9313836179191242-.402710784450717*r,g:e*-.8294889695615749+t*1.7626640603183465+.0236246858419436*r,b:e*.0358458302437845-t*.0761723892680418+.9568845240076871*r},"p3");return i!==void 0&&(n.alpha=i),n},OU=ixt,nxt=_a(dn({},Hx),{mode:"p3",parse:["display-p3"],serialize:"display-p3",fromMode:{rgb:e=>OU(vy(e)),xyz65:OU},toMode:{rgb:e=>gy(qU(e)),xyz65:qU}}),zce=nxt,yU=e=>{let t=Math.abs(e);return t>=1/512?Math.sign(e)*Math.pow(t,1/1.8):16*e},axt=({x:e,y:t,z:r,alpha:i})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let n={mode:"prophoto",r:yU(e*1.3457868816471585-t*.2555720873797946-.0511018649755453*r),g:yU(e*-.5446307051249019+t*1.5082477428451466+.0205274474364214*r),b:yU(e*0+t*0+1.2119675456389452*r)};return i!==void 0&&(n.alpha=i),n},NU=axt,xU=(e=0)=>{let t=Math.abs(e);return t>=16/512?Math.sign(e)*Math.pow(t,1.8):e/16},oxt=e=>{let t=xU(e.r),r=xU(e.g),i=xU(e.b),n={mode:"xyz50",x:.7977666449006423*t+.1351812974005331*r+.0313477341283922*i,y:.2880748288194013*t+.7118352342418731*r+899369387256e-16*i,z:0*t+0*r+.8251046025104602*i};return e.alpha!==void 0&&(n.alpha=e.alpha),n},UU=oxt,sxt=_a(dn({},Hx),{mode:"prophoto",parse:["prophoto-rgb"],serialize:"prophoto-rgb",fromMode:{xyz50:NU,rgb:e=>NU(aw(e))},toMode:{xyz50:UU,rgb:e=>nw(UU(e))}}),Bce=sxt,Due=1.09929682680944,lxt=.018053968510807,bU=e=>{let t=Math.abs(e);return t>lxt?(Math.sign(e)||1)*(Due*Math.pow(t,.45)-(Due-1)):4.5*e},uxt=({x:e,y:t,z:r,alpha:i})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let n={mode:"rec2020",r:bU(e*1.7166511879712683-t*.3556707837763925-.2533662813736599*r),g:bU(e*-.6666843518324893+t*1.6164812366349395+.0157685458139111*r),b:bU(e*.0176398574453108-t*.0427706132578085+.9421031212354739*r)};return i!==void 0&&(n.alpha=i),n},VU=uxt,Fue=1.09929682680944,cxt=.018053968510807,_U=(e=0)=>{let t=Math.abs(e);return t{let t=_U(e.r),r=_U(e.g),i=_U(e.b),n={mode:"xyz65",x:.6369580483012911*t+.1446169035862083*r+.1688809751641721*i,y:.262700212011267*t+.6779980715188708*r+.059301716469862*i,z:0*t+.0280726930490874*r+1.0609850577107909*i};return e.alpha!==void 0&&(n.alpha=e.alpha),n},GU=fxt,hxt=_a(dn({},Hx),{mode:"rec2020",fromMode:{xyz65:VU,rgb:e=>VU(vy(e))},toMode:{xyz65:GU,rgb:e=>gy(GU(e))},parse:["rec2020"],serialize:"rec2020"}),qce=hxt,Vx=.0037930732552754493,Oce=Math.cbrt(Vx),wU=e=>Math.cbrt(e)-Oce,dxt=e=>{let{r:t,g:r,b:i,alpha:n}=jx(e),a=wU(.3*t+.622*r+.078*i+Vx),o=wU(.23*t+.692*r+.078*i+Vx),s=wU(.2434226892454782*t+.2047674442449682*r+.5518098665095535*i+Vx),l={mode:"xyb",x:(a-o)/2,y:(a+o)/2,b:s-(a+o)/2};return n!==void 0&&(l.alpha=n),l},Nce=dxt,TU=e=>Math.pow(e+Oce,3),pxt=({x:e,y:t,b:r,alpha:i})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let n=TU(e+t)-Vx,a=TU(t-e)-Vx,o=TU(r+t)-Vx,s=$x({r:11.031566904639861*n-9.866943908131562*a-.16462299650829934*o,g:-3.2541473810744237*n+4.418770377582723*a-.16462299650829934*o,b:-3.6588512867136815*n+2.7129230459360922*a+1.9459282407775895*o});return i!==void 0&&(s.alpha=i),s},Uce=pxt,vxt={mode:"xyb",channels:["x","y","b","alpha"],parse:["--xyb"],serialize:"--xyb",toMode:{rgb:Uce},fromMode:{rgb:Nce},ranges:{x:[-.0154,.0281],y:[0,.8453],b:[-.2778,.388]},interpolate:{x:Vi,y:Vi,b:Vi,alpha:{use:Vi,fixup:Iu}}},Vce=vxt,gxt={mode:"xyz50",parse:["xyz-d50"],serialize:"xyz-d50",toMode:{rgb:nw,lab:aD},fromMode:{rgb:aw,lab:nD},channels:["x","y","z","alpha"],ranges:{x:[0,.964],y:[0,.999],z:[0,.825]},interpolate:{x:Vi,y:Vi,z:Vi,alpha:{use:Vi,fixup:Iu}}},Gce=gxt,mxt=e=>{let{x:t,y:r,z:i,alpha:n}=e;t===void 0&&(t=0),r===void 0&&(r=0),i===void 0&&(i=0);let a={mode:"xyz50",x:1.0479298208405488*t+.0229467933410191*r-.0501922295431356*i,y:.0296278156881593*t+.990434484573249*r-.0170738250293851*i,z:-.0092430581525912*t+.0150551448965779*r+.7518742899580008*i};return n!==void 0&&(a.alpha=n),a},Hce=mxt,yxt=e=>{let{x:t,y:r,z:i,alpha:n}=e;t===void 0&&(t=0),r===void 0&&(r=0),i===void 0&&(i=0);let a={mode:"xyz65",x:.9554734527042182*t-.0230985368742614*r+.0632593086610217*i,y:-.0283697069632081*t+1.0099954580058226*r+.021041398966943*i,z:.0123140016883199*t-.0205076964334779*r+1.3303659366080753*i};return n!==void 0&&(a.alpha=n),a},jce=yxt,xxt={mode:"xyz65",toMode:{rgb:gy,xyz50:Hce},fromMode:{rgb:vy,xyz50:jce},ranges:{x:[0,.95],y:[0,1],z:[0,1.088]},channels:["x","y","z","alpha"],parse:["xyz","xyz-d65"],serialize:"xyz-d65",interpolate:{x:Vi,y:Vi,z:Vi,alpha:{use:Vi,fixup:Iu}}},$ce=xxt,bxt=({r:e,g:t,b:r,alpha:i})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let n={mode:"yiq",y:.29889531*e+.58662247*t+.11448223*r,i:.59597799*e-.2741761*t-.32180189*r,q:.21147017*e-.52261711*t+.31114694*r};return i!==void 0&&(n.alpha=i),n},Wce=bxt,_xt=({y:e,i:t,q:r,alpha:i})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let n={mode:"rgb",r:e+.95608445*t+.6208885*r,g:e-.27137664*t-.6486059*r,b:e-1.10561724*t+1.70250126*r};return i!==void 0&&(n.alpha=i),n},Yce=_xt,wxt={mode:"yiq",toMode:{rgb:Yce},fromMode:{rgb:Wce},channels:["y","i","q","alpha"],parse:["--yiq"],serialize:"--yiq",ranges:{i:[-.595,.595],q:[-.522,.522]},interpolate:{y:Vi,i:Vi,q:Vi,alpha:{use:Vi,fixup:Iu}}},Xce=wxt,Txt=(e,t)=>Math.round(e*(t=Math.pow(10,t)))/t,Axt=(e=4)=>t=>typeof t=="number"?Txt(t,e):t,Zce=Axt,ZT=Zce(2),JT=e=>Math.max(0,Math.min(1,e||0)),Gx=e=>Math.round(JT(e)*255),dV=bs("rgb"),Mxt=bs("hsl"),pV=e=>{if(e===void 0)return;let t=Gx(e.r),r=Gx(e.g),i=Gx(e.b);return"#"+(1<<24|t<<16|r<<8|i).toString(16).slice(1)},Kce=e=>{if(e===void 0)return;let t=Gx(e.alpha!==void 0?e.alpha:1);return pV(e)+(256|t).toString(16).slice(1)},Jce=e=>{if(e===void 0)return;let t=Gx(e.r),r=Gx(e.g),i=Gx(e.b);return e.alpha===void 0||e.alpha===1?`rgb(${t}, ${r}, ${i})`:`rgba(${t}, ${r}, ${i}, ${ZT(JT(e.alpha))})`},Qce=e=>{if(e===void 0)return;let t=ZT(e.h||0),r=ZT(JT(e.s)*100)+"%",i=ZT(JT(e.l)*100)+"%";return e.alpha===void 0||e.alpha===1?`hsl(${t}, ${r}, ${i})`:`hsla(${t}, ${r}, ${i}, ${ZT(JT(e.alpha))})`},Sxt=e=>{let t=Op(e);if(!t)return;let r=wf(t.mode);if(!r.serialize||typeof r.serialize=="string"){let i=`color(${r.serialize||`--${t.mode}`} `;return r.channels.forEach((n,a)=>{n!=="alpha"&&(i+=(a?" ":"")+(t[n]!==void 0?t[n]:"none"))}),t.alpha!==void 0&&t.alpha<1&&(i+=` / ${t.alpha}`),i+")"}if(typeof r.serialize=="function")return r.serialize(t)},Ext=e=>pV(dV(e)),kxt=e=>Kce(dV(e)),Cxt=e=>Jce(dV(e)),Dxt=e=>Qce(Mxt(e)),Fxt={normal:(e,t)=>t,multiply:(e,t)=>e*t,screen:(e,t)=>e+t-e*t,"hard-light":(e,t)=>t<.5?e*2*t:2*t*(1-e)-1,overlay:(e,t)=>e<.5?t*2*e:2*e*(1-t)-1,darken:(e,t)=>Math.min(e,t),lighten:(e,t)=>Math.max(e,t),"color-dodge":(e,t)=>e===0?0:t===1?1:Math.min(1,e/(1-t)),"color-burn":(e,t)=>e===1?1:t===0?0:1-Math.min(1,(1-e)/t),"soft-light":(e,t)=>t<.5?e-(1-2*t)*e*(1-e):e+(2*t-1)*((e<.25?((16*e-12)*e+4)*e:Math.sqrt(e))-e),difference:(e,t)=>Math.abs(e-t),exclusion:(e,t)=>e+t-2*e*t},Lxt=(e,t="normal",r="rgb")=>{let i=typeof t=="function"?t:Fxt[t],n=bs(r),a=wf(r).channels;return e.map(s=>{let l=n(s);return l.alpha===void 0&&(l.alpha=1),l}).reduce((s,l)=>{if(s===void 0)return l;let u=l.alpha+s.alpha*(1-l.alpha);return a.reduce((c,f)=>(f!=="alpha"&&(u===0?c[f]=0:(c[f]=l.alpha*(1-s.alpha)*l[f]+l.alpha*s.alpha*i(s[f],l[f])+(1-l.alpha)*s.alpha*s[f],c[f]=Math.max(0,Math.min(1,c[f]/u)))),c),{mode:r,alpha:u})})},Pxt=Lxt,Ixt=([e,t])=>e+Math.random()*(t-e),Rxt=e=>Object.keys(e).reduce((t,r)=>{let i=e[r];return t[r]=Array.isArray(i)?i:[i,i],t},{}),zxt=(e="rgb",t={})=>{let r=wf(e),i=Rxt(t);return r.channels.reduce((n,a)=>((i.alpha||a!=="alpha")&&(n[a]=Ixt(i[a]||r.ranges[a])),n),{mode:e})},Bxt=zxt,oA=(e,t="rgb",r=!1)=>{let i=t?wf(t).channels:null,n=t?bs(t):Op;return a=>{let o=n(a);if(!o)return;let s=(i||wf(o.mode).channels).reduce((u,c)=>{let f=e(o[c],c,o,t);return f!==void 0&&!isNaN(f)&&(u[c]=f),u},{mode:o.mode});if(!r)return s;let l=Op(a);return l&&l.mode!==s.mode?bs(l.mode)(s):s}},efe=(e,t,r)=>t!=="alpha"?(e||0)*(r.alpha!==void 0?r.alpha:1):e,tfe=(e,t,r)=>t!=="alpha"&&r.alpha!==0?(e||0)/(r.alpha!==void 0?r.alpha:1):e,vV=(e=1,t=0)=>(r,i)=>i!=="alpha"?r*e+t:r,qxt=(e=1,t=1,r=0)=>(i,n)=>n!=="alpha"?e*Math.pow(i,t)+r:i,Oxt=e=>{e[0]===void 0&&(e[0]=0),e[e.length-1]===void 0&&(e[e.length-1]=1);let t=1,r,i,n,a;for(;tt=>e<=0?1:e>=1?0:Math.pow(t,Math.log(.5)/Math.log(e)),rfe=Uxt,U8=e=>typeof e=="function",Nx=e=>e&&typeof e=="object",Lue=e=>typeof e=="number",ife=(e,t="rgb",r,i)=>{let n=wf(t),a=bs(t),o=[],s=[],l={};e.forEach(h=>{Array.isArray(h)?(o.push(a(h[0])),s.push(h[1])):Lue(h)||U8(h)?l[s.length]=h:(o.push(a(h)),s.push(void 0))}),Nxt(s);let u=n.channels.reduce((h,p)=>{let d;return Nx(r)&&Nx(r[p])&&r[p].fixup?d=r[p].fixup:Nx(n.interpolate[p])&&n.interpolate[p].fixup?d=n.interpolate[p].fixup:d=v=>v,h[p]=d(o.map(v=>v[p])),h},{});if(i){let h=o.map((p,d)=>n.channels.reduce((v,m)=>(v[m]=u[m][d],v),{mode:t}));u=n.channels.reduce((p,d)=>(p[d]=h.map(v=>{let m=i(v[d],d,v,t);return isNaN(m)?void 0:m}),p),{})}let c=n.channels.reduce((h,p)=>{let d;return U8(r)?d=r:Nx(r)&&U8(r[p])?d=r[p]:Nx(r)&&Nx(r[p])&&r[p].use?d=r[p].use:U8(n.interpolate[p])?d=n.interpolate[p]:Nx(n.interpolate[p])&&(d=n.interpolate[p].use),h[p]=d(u[p]),h},{}),f=o.length-1;return h=>{if(h=Math.min(Math.max(0,h),1),h<=s[0])return o[0];if(h>s[f])return o[f];let p=0;for(;s[p]{let S=c[b](w);return S!==void 0&&(_[b]=S),_},{mode:t})}},Vxt=(e,t="rgb",r)=>ife(e,t,r),nfe=(e,t)=>(r,i="rgb",n)=>{let a=t?oA(t,i):void 0,o=ife(r,i,n,e);return a?s=>a(o(s)):o},Gxt=nfe(efe,tfe),V8=(e,t)=>(e+t)%t,afe=(e,t,r,i,n)=>{let a=n*n,o=a*n;return((1-3*n+3*a-o)*e+(4-6*a+3*o)*t+(1+3*n+3*a-3*o)*r+o*i)/6},ofe=e=>t=>{let r=e.length-1,i=t>=1?r-1:Math.max(0,Math.floor(t*r));return afe(i>0?e[i-1]:2*e[i]-e[i+1],e[i],e[i+1],it=>{let r=e.length-1,i=Math.floor(t*r);return afe(e[V8(i-1,e.length)],e[V8(i,e.length)],e[V8(i+1,e.length)],e[V8(i+2,e.length)],(t-i/r)*r)},lfe=e=>{let t,r=e.length-1,i=new Array(r),n=new Array(r),a=new Array(r);for(i[1]=1/4,n[1]=(6*e[1]-e[0])/4,t=2;t0&&(a[r-1]=n[r-1]),t=r-2;t>0;--t)a[t]=n[t]-i[t]*a[t+1];return a},Hxt=e=>ofe(lfe(e)),jxt=e=>sfe(lfe(e)),Q3=Math.sign,HU=Math.min,g0=Math.abs,gV=e=>{let t=e.length-1,r=[],i=[],n=[];for(let a=0;a0?.5*(e[a+1]-e[a-1])*t:void 0),n.push(a>0?(Q3(r[a-1])+Q3(r[a]))*HU(g0(r[a-1]),g0(r[a]),.5*g0(i[a])):void 0);return[r,i,n]},mV=(e,t,r)=>{let i=e.length-1,n=i*i;return a=>{let o;a>=1?o=i-1:o=Math.max(0,Math.floor(a*i));let s=a-o/i,l=s*s,u=l*s;return(t[o]+t[o+1]-2*r[o])*n*u+(3*r[o]-2*t[o]-t[o+1])*i*l+t[o]*s+e[o]}},$xt=e=>{if(e.length<3)return Vi(e);let t=e.length-1,[r,,i]=gV(e);return i[0]=r[0],i[t]=r[t-1],mV(e,i,r)},Wxt=e=>{if(e.length<3)return Vi(e);let t=e.length-1,[r,i,n]=gV(e);return i[0]=(e[1]*2-e[0]*1.5-e[2]*.5)*t,i[t]=(e[t]*1.5-e[t-1]*2+e[t-2]*.5)*t,n[0]=i[0]*r[0]<=0?0:g0(i[0])>2*g0(r[0])?2*r[0]:i[0],n[t]=i[t]*r[t-1]<=0?0:g0(i[t])>2*g0(r[t-1])?2*r[t-1]:i[t],mV(e,n,r)},Yxt=e=>{let t=e.length-1,[r,i,n]=gV(e);i[0]=.5*(e[1]-e[t])*t,i[t]=.5*(e[0]-e[t-1])*t;let a=(e[0]-e[t])*t,o=a;return n[0]=(Q3(a)+Q3(r[0]))*HU(g0(a),g0(r[0]),.5*g0(i[0])),n[t]=(Q3(r[t-1])+Q3(o))*HU(g0(r[t-1]),g0(o),.5*g0(i[t])),mV(e,n,r)},Xxt=(e=1)=>e===1?t=>t:t=>Math.pow(t,e),ufe=Xxt,Zxt=(e=2,t=1)=>{let r=ufe(t);if(e<2)return e<1?[]:[r(.5)];let i=[];for(let n=0;n{let t={mode:e.mode,r:Math.max(0,Math.min(e.r!==void 0?e.r:0,1)),g:Math.max(0,Math.min(e.g!==void 0?e.g:0,1)),b:Math.max(0,Math.min(e.b!==void 0?e.b:0,1))};return e.alpha!==void 0&&(t.alpha=e.alpha),t},hfe=e=>ffe(cfe(e)),dfe=e=>e!==void 0&&(e.r===void 0||e.r>=0&&e.r<=1)&&(e.g===void 0||e.g>=0&&e.g<=1)&&(e.b===void 0||e.b>=0&&e.b<=1);function yV(e){return dfe(cfe(e))}function lD(e="rgb"){let{gamut:t}=wf(e);if(!t)return i=>!0;let r=bs(typeof t=="string"?t:e);return i=>dfe(r(i))}function Jxt(e){return e=Op(e),e===void 0||yV(e)?e:bs(e.mode)(hfe(e))}function xV(e="rgb"){let{gamut:t}=wf(e);if(!t)return a=>Op(a);let r=typeof t=="string"?t:e,i=bs(r),n=lD(r);return a=>{let o=Op(a);if(!o)return;let s=i(o);if(n(s))return o;let l=ffe(s);return o.mode===l.mode?l:bs(o.mode)(l)}}function Qxt(e,t="lch",r="rgb"){e=Op(e);let i=r==="rgb"?yV:lD(r),n=r==="rgb"?hfe:xV(r);if(e===void 0||i(e))return e;let a=bs(e.mode);e=bs(t)(e);let o=_a(dn({},e),{c:0});if(!i(o))return a(n(o));let s=0,l=e.c!==void 0?e.c:0,u=wf(t).ranges.c,c=(u[1]-u[0])/Math.pow(2,13),f=o.c;for(;l-s>c;)o.c=s+(l-s)*.5,i(o)?(f=o.c,s=o.c):l=o.c;return a(i(o)?o:_a(dn({},o),{c:f}))}function ebt(e="rgb",t="oklch",r=iw("oklch"),i=.02){let n=bs(e),a=wf(e);if(!a.gamut)return c=>n(c);let o=lD(e),s=xV(e),l=bs(t),{ranges:u}=wf(t);if(!u.l||!u.c)throw new Error("LCH-like space expected");return c=>{if(c=Op(c),c===void 0)return;let f=dn({},l(c));if(f.l===void 0&&(f.l=0),f.c===void 0&&(f.c=0),f.l>=u.l[1]){let m=_a(dn({},a.white),{mode:e});return c.alpha!==void 0&&(m.alpha=c.alpha),m}if(f.l<=u.l[0]){let m=_a(dn({},a.black),{mode:e});return c.alpha!==void 0&&(m.alpha=c.alpha),m}if(o(f))return n(f);let h=0,p=f.c,d=(u.c[1]-u.c[0])/4e3,v=s(f);for(;p-h>d;)f.c=(h+p)*.5,v=s(f),o(f)||r&&i>0&&r(f,v)<=i?h=f.c:p=f.c;return n(o(f)?f:v)}}var tbt=(e,t=iw(),r=i=>i)=>{let i=e.map((n,a)=>({color:r(n),i:a}));return(n,a=1,o=1/0)=>(isFinite(a)&&(a=Math.max(1,Math.min(a,i.length-1))),i.forEach(s=>{s.d=t(n,s.color)}),i.sort((s,l)=>s.d-l.d).slice(0,a).filter(s=>s.de[s.i]))},rbt=tbt,bV=e=>Math.max(e,0),_V=e=>Math.max(Math.min(e,1),0),ibt=(e,t,r)=>e===void 0||t===void 0?void 0:e+r*(t-e),nbt=e=>{let t=1-_V(e);return[.393+.607*t,.769-.769*t,.189-.189*t,0,.349-.349*t,.686+.314*t,.168-.168*t,0,.272-.272*t,.534-.534*t,.131+.869*t,0,0,0,0,1]},abt=e=>{let t=bV(e);return[.213+.787*t,.715-.715*t,.072-.072*t,0,.213-.213*t,.715+.285*t,.072-.072*t,0,.213-.213*t,.715-.715*t,.072+.928*t,0,0,0,0,1]},obt=e=>{let t=1-_V(e);return[.2126+.7874*t,.7152-.7152*t,.0722-.0722*t,0,.2126-.2126*t,.7152+.2848*t,.0722-.0722*t,0,.2126-.2126*t,.7152-.7152*t,.0722+.9278*t,0,0,0,0,1]},sbt=e=>{let t=Math.PI*e/180,r=Math.cos(t),i=Math.sin(t);return[.213+r*.787-i*.213,.715-r*.715-i*.715,.072-r*.072+i*.928,0,.213-r*.213+i*.143,.715+r*.285+i*.14,.072-r*.072-i*.283,0,.213-r*.213-i*.787,.715-r*.715+i*.715,.072+r*.928+i*.072,0,0,0,0,1]},uD=(e,t,r=!1)=>{let i=bs(t),n=wf(t).channels;return a=>{let o=i(a);if(!o)return;let s={mode:t},l,u=n.length;for(let f=0;f{let r=bV(e);return oA(vV(r),t,!0)},ubt=(e=1,t="rgb")=>{let r=bV(e);return oA(vV(r,(1-r)/2),t,!0)},cbt=(e=1,t="rgb")=>uD(nbt(e),t,!0),fbt=(e=1,t="rgb")=>uD(abt(e),t,!0),hbt=(e=1,t="rgb")=>uD(obt(e),t,!0),dbt=(e=1,t="rgb")=>{let r=_V(e);return oA((i,n)=>n==="alpha"?i:ibt(r,1-r,i),t,!0)},pbt=(e=0,t="rgb")=>uD(sbt(e),t,!0),vbt=bs("rgb"),gbt=[[1,0,-0,0,1,0,-0,-0,1],[.856167,.182038,-.038205,.029342,.955115,.015544,-.00288,-.001563,1.004443],[.734766,.334872,-.069637,.05184,.919198,.028963,-.004928,-.004209,1.009137],[.630323,.465641,-.095964,.069181,.890046,.040773,-.006308,-.007724,1.014032],[.539009,.579343,-.118352,.082546,.866121,.051332,-.007136,-.011959,1.019095],[.458064,.679578,-.137642,.092785,.846313,.060902,-.007494,-.016807,1.024301],[.38545,.769005,-.154455,.100526,.829802,.069673,-.007442,-.02219,1.029632],[.319627,.849633,-.169261,.106241,.815969,.07779,-.007025,-.028051,1.035076],[.259411,.923008,-.18242,.110296,.80434,.085364,-.006276,-.034346,1.040622],[.203876,.990338,-.194214,.112975,.794542,.092483,-.005222,-.041043,1.046265],[.152286,1.052583,-.204868,.114503,.786281,.099216,-.003882,-.048116,1.051998]],mbt=[[1,0,-0,0,1,0,-0,-0,1],[.866435,.177704,-.044139,.049567,.939063,.01137,-.003453,.007233,.99622],[.760729,.319078,-.079807,.090568,.889315,.020117,-.006027,.013325,.992702],[.675425,.43385,-.109275,.125303,.847755,.026942,-.00795,.018572,.989378],[.605511,.52856,-.134071,.155318,.812366,.032316,-.009376,.023176,.9862],[.547494,.607765,-.155259,.181692,.781742,.036566,-.01041,.027275,.983136],[.498864,.674741,-.173604,.205199,.754872,.039929,-.011131,.030969,.980162],[.457771,.731899,-.18967,.226409,.731012,.042579,-.011595,.034333,.977261],[.422823,.781057,-.203881,.245752,.709602,.044646,-.011843,.037423,.974421],[.392952,.82361,-.216562,.263559,.69021,.046232,-.01191,.040281,.97163],[.367322,.860646,-.227968,.280085,.672501,.047413,-.01182,.04294,.968881]],ybt=[[1,0,-0,0,1,0,-0,-0,1],[.92667,.092514,-.019184,.021191,.964503,.014306,.008437,.054813,.93675],[.89572,.13333,-.02905,.029997,.9454,.024603,.013027,.104707,.882266],[.905871,.127791,-.033662,.026856,.941251,.031893,.01341,.148296,.838294],[.948035,.08949,-.037526,.014364,.946792,.038844,.010853,.193991,.795156],[1.017277,.027029,-.044306,-.006113,.958479,.047634,.006379,.248708,.744913],[1.104996,-.046633,-.058363,-.032137,.971635,.060503,.001336,.317922,.680742],[1.193214,-.109812,-.083402,-.058496,.97941,.079086,-.002346,.403492,.598854],[1.257728,-.139648,-.118081,-.078003,.975409,.102594,-.003316,.501214,.502102],[1.278864,-.125333,-.153531,-.084748,.957674,.127074,-989e-6,.601151,.399838],[1.255528,-.076749,-.178779,-.078411,.930809,.147602,.004733,.691367,.3039]],wV=(e,t)=>{let r=Math.max(0,Math.min(1,t)),i=Math.round(r/.1),n=Math.round(r%.1),a=e[i];if(n>0&&iUx(a[l],o[l],n))}return o=>{let s=Op(o);if(s===void 0)return;let{r:l,g:u,b:c}=vbt(s),f={mode:"rgb",r:a[0]*l+a[1]*u+a[2]*c,g:a[3]*l+a[4]*u+a[5]*c,b:a[6]*l+a[7]*u+a[8]*c};return s.alpha!==void 0&&(f.alpha=s.alpha),bs(s.mode)(f)}},xbt=(e=1)=>wV(gbt,e),bbt=(e=1)=>wV(mbt,e),_bt=(e=1)=>wV(ybt,e),wbt=e=>e*e*(3-2*e),Tbt=e=>.5-Math.sin(Math.asin(1-2*e)/3),Abt=e=>e*e*e*(e*(e*6-15)+10),Mbt=Abt,Sbt=e=>(1-Math.cos(e*Math.PI))/2,Ebt=Sbt;function jU(e){let t=bs("lrgb")(e);return .2126*t.r+.7152*t.g+.0722*t.b}function kbt(e,t){let r=jU(e),i=jU(t);return(Math.max(r,i)+.05)/(Math.min(r,i)+.05)}var Cbt=$o($ue),Dbt=$o(Kue),Fbt=$o(rce),Lbt=$o(ice),Pbt=$o(oce),Ibt=$o(KU),Rbt=$o(eV),zbt=$o(pce),Bbt=$o(mce),qbt=$o(yce),Obt=$o(xce),Nbt=$o(oD),Ubt=$o(_ce),Vbt=$o(sD),Gbt=$o(Tce),Hbt=$o(Sce),jbt=$o(Ece),$bt=$o(kce),Wbt=$o(Dce),Ybt=$o(Fce),Xbt=$o(Pce),Zbt=$o(Rce),Kbt=$o(zce),Jbt=$o(Bce),Qbt=$o(qce),e_t=$o(Hx),t_t=$o(Vce),r_t=$o(Gce),i_t=$o($ce),n_t=$o(Xce)});var TV={};Kn(TV,{default:()=>o_t});var a_t,o_t,AV=Ci(()=>{"use strict";a_t={format:{valType:"enumerated",values:["png","jpeg","webp","svg","full-json"],dflt:"png",description:"Sets the format of exported image."},width:{valType:"number",min:1,description:["Sets the exported image width.","Defaults to the value found in `layout.width`","If set to *null*, the exported image width will match the current graph width."].join(" ")},height:{valType:"number",min:1,description:["Sets the exported image height.","Defaults to the value found in `layout.height`","If set to *null*, the exported image height will match the current graph height."].join(" ")},scale:{valType:"number",min:0,dflt:1,description:["Sets a scaling for the generated image.","If set, all features of a graphs (e.g. text, line width)","are scaled, unlike simply setting","a bigger *width* and *height*."].join(" ")},setBackground:{valType:"any",dflt:!1,description:["Sets the image background mode.","By default, the image background is determined by `layout.paper_bgcolor`,","the *transparent* mode.","One might consider setting `setBackground` to *opaque*","when exporting a *jpeg* image as JPEGs do not support opacity."].join(" ")},imageDataOnly:{valType:"boolean",dflt:!1,description:["Determines whether or not the return value is prefixed by","the image format's corresponding 'data:image;' spec."].join(" ")}},o_t=a_t});var my=W((Bzr,bfe)=>{"use strict";var{format:s_t,width:l_t,height:u_t,scale:c_t}=(AV(),Pt(TV)).default,gfe=c_t,{dflt:zzr}=gfe,f_t=C8(gfe,["dflt"]),mfe={staticPlot:{valType:"boolean",dflt:!1},typesetMath:{valType:"boolean",dflt:!0},plotlyServerURL:{valType:"string",dflt:"https://cloud.plotly.com/newchart"},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","map"],extras:[!0,!1],dflt:"gl3d+geo+map"},doubleClick:{valType:"enumerated",values:[!1,"reset","autosize","reset+autosize"],dflt:"reset+autosize"},doubleClickDelay:{valType:"number",dflt:500,min:0},showAxisDragHandles:{valType:"boolean",dflt:!0},showAxisRangeEntryBoxes:{valType:"boolean",dflt:!0},showTips:{valType:"boolean",dflt:!0},displayNotifier:{valType:"boolean",dflt:!0},displayModeBar:{valType:"enumerated",values:["hover",!0,!1],dflt:"hover"},showSendToCloud:{valType:"boolean",dflt:!0},modeBarButtonsToRemove:{valType:"any",dflt:[]},modeBarButtonsToAdd:{valType:"any",dflt:[]},modeBarButtons:{valType:"any",dflt:!1},toImageButtonOptions:{format:s_t,filename:{valType:"string"},width:l_t,height:u_t,scale:f_t},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/un/"},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},locale:{valType:"string",dflt:"en-US"},locales:{valType:"any",dflt:{}}},yfe={};function xfe(e,t){for(let r in e){let i=e[r];typeof i!="object"||i===null||(i.valType?"dflt"in i&&(t[r]=i.dflt):(t[r]||(t[r]={}),xfe(i,t[r])))}}xfe(mfe,yfe);bfe.exports={configAttributes:mfe,dfltConfig:yfe}});var SV=W((Ozr,_fe)=>{"use strict";var MV=gi(),h_t=un(),sA=[];_fe.exports=function(e,t,r){var s;if(((s=r==null?void 0:r._context)==null?void 0:s.displayNotifier)===!1||sA.indexOf(e)!==-1)return;sA.push(e);var i=1e3;h_t(t)?i=t:t==="long"&&(i=3e3);var n=MV.select("body").selectAll(".plotly-notifier").data([0]);n.enter().append("div").classed("plotly-notifier",!0);var a=n.selectAll(".notifier-note").data(sA);function o(l){l.duration(700).style("opacity",0).each("end",function(u){var c=sA.indexOf(u);c!==-1&&sA.splice(c,1),MV.select(this).remove()})}a.enter().append("div").classed("notifier-note",!0).style("opacity",0).each(function(l){var u=MV.select(this);u.append("button").classed("notifier-close",!0).html("×").on("click",function(){u.transition().call(o)});for(var c=u.append("p"),f=l.split(//g),h=0;h{"use strict";var sw=my().dfltConfig,EV=SV(),kV=wfe.exports={};kV.log=function(){var e;if(sw.logging>1){var t=["LOG:"];for(e=0;e1){var r=[];for(e=0;e"),"long")}};kV.warn=function(){var e;if(sw.logging>0){var t=["WARN:"];for(e=0;e0){var r=[];for(e=0;e"),"stick")}};kV.error=function(){var e;if(sw.logging>0){var t=["ERROR:"];for(e=0;e0){var r=[];for(e=0;e"),"stick")}}});var jl=W(Wx=>{"use strict";Wx.defaults=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"];Wx.defaultLine="#444";Wx.lightLine="#eee";Wx.background="#fff";Wx.borderLine="#BEC8D9";Wx.lightFraction=1e3/11});var ai=W((Vzr,Ffe)=>{"use strict";var{converter:Tfe,formatHex:d_t,formatRgb:p_t,wcagContrast:v_t,wcagLuminance:g_t}=vfe(),{isArrayOrTypedArray:Afe}=wc(),{warn:m_t}=zg(),{background:uA,defaultLine:FV,defaults:y_t,lightLine:x_t}=jl(),Mfe=Tfe("rgb"),b_t=Tfe("hsl"),Sfe=e=>{if(typeof e!="string")return;let t=e.trim().toLowerCase();if(!/^[0-9a-f]+$/.test(t))try{return Mfe(t)}catch(r){return}},Tf=e=>e>0?e>1?1:e:0,__t={mode:"rgb",r:0,g:0,b:0,alpha:1},CV=e=>Math.round(e*255e6)/255e6,Efe=e=>_a(dn({},e),{r:CV(e.r),g:CV(e.g),b:CV(e.b)}),m0=e=>p_t(Efe(e)),w_t=e=>d_t(Efe(e)),T_t=e=>{var t,r,i,n;return typeof e=="string"?`"${e}"`:Afe(e)?`${(r=(t=e.constructor)==null?void 0:t.name)!=null?r:"Array"}(${e.length})`:typeof e=="object"?(n=(i=e.constructor)==null?void 0:i.name)!=null?n:"Object":`${typeof e} ${e}`},rl=(e,t)=>{var i;let r=Sfe(e);return r?((i=r.alpha)!=null||(r.alpha=1),r):(!t&&e!=null&&m_t(`Invalid color specifier: ${T_t(e)}. Defaulting to "#000"`),__t)},lA=e=>m0(_a(dn({},rl(e)),{alpha:1})),A_t=e=>e?rl(e).alpha:0,kfe=e=>Afe(e)&&e.length>2&&Number.isFinite(e[0])&&Number.isFinite(e[1])&&Number.isFinite(e[2]),M_t=e=>{let[t,r,i,n]=e,a=Math.max(t,r,i)>1?1/255:1,o=n!=null?n:1;return{mode:"rgb",r:t*a,g:r*a,b:i*a,alpha:o>1?o/255:o}},S_t=(e,t)=>{let r=kfe(e)?M_t(e):rl(e,!0),i=[Tf(r.r),Tf(r.g),Tf(r.b),Tf(r.alpha)];return t==="uint8"||t==="uint8_clamped"?Uint8Array.from(i,n=>Math.round(n*255)):t==="float32"?Float32Array.from(i):t==="float64"?Float64Array.from(i):i},E_t=(e,t)=>m0(_a(dn({},rl(e)),{alpha:Tf(t)})),Cfe=(e,t)=>{let r=rl(e),i=r.alpha;if(i===1)return m0(r);let n=rl(t||uA),a=n.alpha,o=(s,l)=>(a===1?l:1-a+l*a)*(1-i)+s*i;return m0({mode:"rgb",r:o(r.r,n.r),g:o(r.g,n.g),b:o(r.b,n.b)})},k_t=(e,t,r)=>{let i=rl(e),n=rl(t),a=(o,s)=>r*o+(1-r)*s;return m0({mode:"rgb",r:a(i.r,n.r),g:a(i.g,n.g),b:a(i.b,n.b)})},DV=(e,t)=>{let r=rl(e),i=b_t(r)||{mode:"hsl",h:0,s:0,l:0};return m0(Mfe(_a(dn({},i),{l:Tf((i.l*100+t)/100),alpha:r.alpha})))},cD=(e,t)=>v_t(rl(e),rl(t)),Dfe=e=>cD(e,uA)>cD(e,FV),C_t=m0(rl(uA)),D_t=m0(rl(FV)),F_t=(e,t,r)=>(rl(e).alpha!==1&&(e=Cfe(e,uA)),Dfe(e)?t?DV(e,t):C_t:r?DV(e,-r):D_t),L_t=(e,t)=>{e.style({stroke:lA(t),"stroke-opacity":rl(t).alpha})},P_t=(e,t)=>{e.style({fill:lA(t),"fill-opacity":rl(t).alpha})},I_t=(e,t)=>!!(e&&t&&lA(e)===lA(t)),R_t=e=>Sfe(e)!==void 0,z_t=(e,t)=>{t=t===0?0:t||10;let r=rl(e),i=t/100;return m0(_a(dn({},r),{r:Tf(r.r+i),g:Tf(r.g+i),b:Tf(r.b+i)}))},B_t=(e,t,r)=>{let i=rl(e),n=rl(t),a=r/100,o=n.alpha-i.alpha,s=2*a-1,l=((s*o===-1?s:(s+o)/(1+s*o))+1)/2,u=1-l,c=(f,h)=>u*f+l*h;return m0({mode:"rgb",r:c(i.r,n.r),g:c(i.g,n.g),b:c(i.b,n.b),alpha:i.alpha*(1-a)+n.alpha*a})},q_t=(e,t=["#000","#fff"])=>{let r,i=-1/0;for(let n of t){let a=cD(e,n);a>i&&(i=a,r=m0(rl(n)))}return r},O_t=e=>m0(rl(e)),N_t=e=>w_t(rl(e)).toUpperCase(),U_t=e=>{let t=rl(e);return[Tf(t.r)*255,Tf(t.g)*255,Tf(t.b)*255,Tf(t.alpha)]},V_t=([e,t,r,i])=>m0({mode:"rgb",r:e/255,g:t/255,b:r/255,alpha:i}),G_t=e=>{let t=rl(e);return g_t({mode:"rgb",r:Tf(t.r),g:Tf(t.g),b:Tf(t.b)})};Ffe.exports={addOpacity:E_t,adjustLightness:DV,background:uA,brighten:z_t,combine:Cfe,contrast:F_t,defaultLine:FV,defaults:y_t,equals:I_t,fill:P_t,hexString:N_t,interpolate:k_t,isChannelArray:kfe,isDark:Dfe,isValid:R_t,lightLine:x_t,luminosity:G_t,mix:B_t,mostReadable:q_t,normalize:S_t,opacity:A_t,parse:rl,rgb:lA,rgbaArray:U_t,rgbaArrayToString:V_t,rgbaString:O_t,stroke:L_t,wcagContrast:cD}});var Yx=W((Hzr,Ife)=>{"use strict";var H_t=ai(),fD={Greys:[[0,"rgb(0,0,0)"],[1,"rgb(255,255,255)"]],YlGnBu:[[0,"rgb(8,29,88)"],[.125,"rgb(37,52,148)"],[.25,"rgb(34,94,168)"],[.375,"rgb(29,145,192)"],[.5,"rgb(65,182,196)"],[.625,"rgb(127,205,187)"],[.75,"rgb(199,233,180)"],[.875,"rgb(237,248,217)"],[1,"rgb(255,255,217)"]],Greens:[[0,"rgb(0,68,27)"],[.125,"rgb(0,109,44)"],[.25,"rgb(35,139,69)"],[.375,"rgb(65,171,93)"],[.5,"rgb(116,196,118)"],[.625,"rgb(161,217,155)"],[.75,"rgb(199,233,192)"],[.875,"rgb(229,245,224)"],[1,"rgb(247,252,245)"]],YlOrRd:[[0,"rgb(128,0,38)"],[.125,"rgb(189,0,38)"],[.25,"rgb(227,26,28)"],[.375,"rgb(252,78,42)"],[.5,"rgb(253,141,60)"],[.625,"rgb(254,178,76)"],[.75,"rgb(254,217,118)"],[.875,"rgb(255,237,160)"],[1,"rgb(255,255,204)"]],Bluered:[[0,"rgb(0,0,255)"],[1,"rgb(255,0,0)"]],RdBu:[[0,"rgb(5,10,172)"],[.35,"rgb(106,137,247)"],[.5,"rgb(190,190,190)"],[.6,"rgb(220,170,132)"],[.7,"rgb(230,145,90)"],[1,"rgb(178,10,28)"]],Reds:[[0,"rgb(220,220,220)"],[.2,"rgb(245,195,157)"],[.4,"rgb(245,160,105)"],[1,"rgb(178,10,28)"]],Blues:[[0,"rgb(5,10,172)"],[.35,"rgb(40,60,190)"],[.5,"rgb(70,100,245)"],[.6,"rgb(90,120,245)"],[.7,"rgb(106,137,247)"],[1,"rgb(220,220,220)"]],Picnic:[[0,"rgb(0,0,255)"],[.1,"rgb(51,153,255)"],[.2,"rgb(102,204,255)"],[.3,"rgb(153,204,255)"],[.4,"rgb(204,204,255)"],[.5,"rgb(255,255,255)"],[.6,"rgb(255,204,255)"],[.7,"rgb(255,153,255)"],[.8,"rgb(255,102,204)"],[.9,"rgb(255,102,102)"],[1,"rgb(255,0,0)"]],Rainbow:[[0,"rgb(150,0,90)"],[.125,"rgb(0,0,200)"],[.25,"rgb(0,25,255)"],[.375,"rgb(0,152,255)"],[.5,"rgb(44,255,150)"],[.625,"rgb(151,255,0)"],[.75,"rgb(255,234,0)"],[.875,"rgb(255,111,0)"],[1,"rgb(255,0,0)"]],Portland:[[0,"rgb(12,51,131)"],[.25,"rgb(10,136,186)"],[.5,"rgb(242,211,56)"],[.75,"rgb(242,143,56)"],[1,"rgb(217,30,30)"]],Jet:[[0,"rgb(0,0,131)"],[.125,"rgb(0,60,170)"],[.375,"rgb(5,255,255)"],[.625,"rgb(255,255,0)"],[.875,"rgb(250,0,0)"],[1,"rgb(128,0,0)"]],Hot:[[0,"rgb(0,0,0)"],[.3,"rgb(230,0,0)"],[.6,"rgb(255,210,0)"],[1,"rgb(255,255,255)"]],Blackbody:[[0,"rgb(0,0,0)"],[.2,"rgb(230,0,0)"],[.4,"rgb(230,210,0)"],[.7,"rgb(255,255,255)"],[1,"rgb(160,200,255)"]],Earth:[[0,"rgb(0,0,130)"],[.1,"rgb(0,180,180)"],[.2,"rgb(40,210,40)"],[.4,"rgb(230,230,50)"],[.6,"rgb(120,70,20)"],[1,"rgb(255,255,255)"]],Electric:[[0,"rgb(0,0,0)"],[.15,"rgb(30,0,100)"],[.4,"rgb(120,0,100)"],[.6,"rgb(160,90,0)"],[.8,"rgb(230,200,0)"],[1,"rgb(255,250,220)"]],Viridis:[[0,"#440154"],[.06274509803921569,"#48186a"],[.12549019607843137,"#472d7b"],[.18823529411764706,"#424086"],[.25098039215686274,"#3b528b"],[.3137254901960784,"#33638d"],[.3764705882352941,"#2c728e"],[.4392156862745098,"#26828e"],[.5019607843137255,"#21918c"],[.5647058823529412,"#1fa088"],[.6274509803921569,"#28ae80"],[.6901960784313725,"#3fbc73"],[.7529411764705882,"#5ec962"],[.8156862745098039,"#84d44b"],[.8784313725490196,"#addc30"],[.9411764705882353,"#d8e219"],[1,"#fde725"]],Cividis:[[0,"rgb(0,32,76)"],[.058824,"rgb(0,42,102)"],[.117647,"rgb(0,52,110)"],[.176471,"rgb(39,63,108)"],[.235294,"rgb(60,74,107)"],[.294118,"rgb(76,85,107)"],[.352941,"rgb(91,95,109)"],[.411765,"rgb(104,106,112)"],[.470588,"rgb(117,117,117)"],[.529412,"rgb(131,129,120)"],[.588235,"rgb(146,140,120)"],[.647059,"rgb(161,152,118)"],[.705882,"rgb(176,165,114)"],[.764706,"rgb(192,177,109)"],[.823529,"rgb(209,191,102)"],[.882353,"rgb(225,204,92)"],[.941176,"rgb(243,219,79)"],[1,"rgb(255,233,69)"]]},Lfe=fD.RdBu;function j_t(e,t){if(t||(t=Lfe),!e)return t;function r(){try{e=fD[e]||JSON.parse(e)}catch(i){e=t}}return typeof e=="string"&&(r(),typeof e=="string"&&r()),Pfe(e)?e:t}function Pfe(e){var t=0;if(!Array.isArray(e)||e.length<2||!e[0]||!e[e.length-1]||+e[0][0]!=0||+e[e.length-1][0]!=1)return!1;for(var r=0;rX_t,HIDE_PLACEHOLDER:()=>Y_t,SHOW_PLACEHOLDER:()=>W_t});var W_t,Y_t,X_t,qg=Ci(()=>{"use strict";W_t=100,Y_t=1e3,X_t=.2});var cA={};Kn(cA,{counter:()=>Xx});function Xx(e,t="",r,i){let n=t+(r?"":"$"),a=i===!1?"":"^";return e==="xy"?new RegExp(a+"x"+LV+"y"+LV+n):new RegExp(a+e+LV+n)}var LV,lw=Ci(()=>{"use strict";LV="([2-9]|[1-9][0-9]+)?"});var Bfe=W(Bh=>{"use strict";var PV=un(),Rfe=nn().extendFlat,Z_t=Ka(),K_t=Yx(),IV=ai(),J_t=(qg(),Pt(Bg)).DESELECTDIM,uw=NT(),zfe=(lw(),Pt(cA)).counter,Q_t=(K3(),Pt(Z3)).modHalf,Np=wc().isArrayOrTypedArray,yy=wc().isTypedArraySpec,xy=wc().decodeTypedArraySpec;Bh.valObjectMeta={data_array:{coerceFunction:function(e,t,r){t.set(Np(e)?e:yy(e)?xy(e):r)}},enumerated:{coerceFunction:function(e,t,r,i){i.coerceNumber&&(e=+e),i.values.indexOf(e)===-1?t.set(r):t.set(e)},validateFunction:function(e,t){t.coerceNumber&&(e=+e);for(var r=t.values,i=0;ia===!0||a===!1;n(e)||i.arrayOk&&Array.isArray(e)&&e.length>0&&e.every(n)?t.set(e):t.set(r)}},number:{coerceFunction:function(e,t,r,i){yy(e)&&(e=xy(e)),!PV(e)||i.min!==void 0&&ei.max?t.set(r):t.set(+e)}},integer:{coerceFunction:function(e,t,r,i){if((i.extras||[]).indexOf(e)!==-1){t.set(e);return}yy(e)&&(e=xy(e)),e%1||!PV(e)||i.min!==void 0&&ei.max?t.set(r):t.set(+e)}},string:{coerceFunction:function(e,t,r,i){if(typeof e!="string"){var n=typeof e=="number";i.strict===!0||!n?t.set(r):t.set(String(e))}else i.noBlank&&!e?t.set(r):t.set(e)}},color:{coerceFunction:function(e,t,r){yy(e)&&(e=xy(e)),IV.isValid(e)?t.set(e):t.set(r)}},colorlist:{coerceFunction:function(e,t,r){!Array.isArray(e)||!e.length?t.set(r):e.every(i=>IV.isValid(i))?t.set(e):t.set(r)}},colorscale:{coerceFunction:function(e,t,r){t.set(K_t.get(e,r))}},angle:{coerceFunction:function(e,t,r){yy(e)&&(e=xy(e)),e==="auto"?t.set("auto"):PV(e)?t.set(Q_t(+e,360)):t.set(r)}},subplotid:{coerceFunction:function(e,t,r,i){var n=i.regex||zfe(r);let a=o=>typeof o=="string"&&n.test(o);a(e)||i.arrayOk&&Np(e)&&e.length>0&&e.every(a)?t.set(e):t.set(r)},validateFunction:function(e,t){var r=t.dflt;return e===r?!0:typeof e!="string"?!1:!!zfe(r).test(e)}},flaglist:{coerceFunction:function(e,t,r,i){if((i.extras||[]).indexOf(e)!==-1){t.set(e);return}if(typeof e!="string"){t.set(r);return}for(var n=e.split("+"),a=0;a{"use strict";qfe.exports=function(){}});var RV=W((Wzr,Ofe)=>{"use strict";Ofe.exports=function(t,r){if(r instanceof RegExp){for(var i=r.toString(),n=0;n{Nfe.exports=e3t;function e3t(){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}});var Gfe=W((Xzr,Vfe)=>{Vfe.exports=t3t;function t3t(e){var t=new Float32Array(16);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}});var jfe=W((Zzr,Hfe)=>{Hfe.exports=r3t;function r3t(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}});var zV=W((Kzr,$fe)=>{$fe.exports=i3t;function i3t(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}});var Yfe=W((Jzr,Wfe)=>{Wfe.exports=n3t;function n3t(e,t){if(e===t){var r=t[1],i=t[2],n=t[3],a=t[6],o=t[7],s=t[11];e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=r,e[6]=t[9],e[7]=t[13],e[8]=i,e[9]=a,e[11]=t[14],e[12]=n,e[13]=o,e[14]=s}else e[0]=t[0],e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=t[1],e[5]=t[5],e[6]=t[9],e[7]=t[13],e[8]=t[2],e[9]=t[6],e[10]=t[10],e[11]=t[14],e[12]=t[3],e[13]=t[7],e[14]=t[11],e[15]=t[15];return e}});var Zfe=W((Qzr,Xfe)=>{Xfe.exports=a3t;function a3t(e,t){var r=t[0],i=t[1],n=t[2],a=t[3],o=t[4],s=t[5],l=t[6],u=t[7],c=t[8],f=t[9],h=t[10],p=t[11],d=t[12],v=t[13],m=t[14],g=t[15],w=r*s-i*o,_=r*l-n*o,b=r*u-a*o,S=i*l-n*s,x=i*u-a*s,T=n*u-a*l,A=c*v-f*d,y=c*m-h*d,E=c*g-p*d,M=f*m-h*v,C=f*g-p*v,k=h*g-p*m,D=w*k-_*C+b*M+S*E-x*y+T*A;return D?(D=1/D,e[0]=(s*k-l*C+u*M)*D,e[1]=(n*C-i*k-a*M)*D,e[2]=(v*T-m*x+g*S)*D,e[3]=(h*x-f*T-p*S)*D,e[4]=(l*E-o*k-u*y)*D,e[5]=(r*k-n*E+a*y)*D,e[6]=(m*b-d*T-g*_)*D,e[7]=(c*T-h*b+p*_)*D,e[8]=(o*C-s*E+u*A)*D,e[9]=(i*E-r*C-a*A)*D,e[10]=(d*x-v*b+g*w)*D,e[11]=(f*b-c*x-p*w)*D,e[12]=(s*y-o*M-l*A)*D,e[13]=(r*M-i*y+n*A)*D,e[14]=(v*_-d*S-m*w)*D,e[15]=(c*S-f*_+h*w)*D,e):null}});var Jfe=W((eBr,Kfe)=>{Kfe.exports=o3t;function o3t(e,t){var r=t[0],i=t[1],n=t[2],a=t[3],o=t[4],s=t[5],l=t[6],u=t[7],c=t[8],f=t[9],h=t[10],p=t[11],d=t[12],v=t[13],m=t[14],g=t[15];return e[0]=s*(h*g-p*m)-f*(l*g-u*m)+v*(l*p-u*h),e[1]=-(i*(h*g-p*m)-f*(n*g-a*m)+v*(n*p-a*h)),e[2]=i*(l*g-u*m)-s*(n*g-a*m)+v*(n*u-a*l),e[3]=-(i*(l*p-u*h)-s*(n*p-a*h)+f*(n*u-a*l)),e[4]=-(o*(h*g-p*m)-c*(l*g-u*m)+d*(l*p-u*h)),e[5]=r*(h*g-p*m)-c*(n*g-a*m)+d*(n*p-a*h),e[6]=-(r*(l*g-u*m)-o*(n*g-a*m)+d*(n*u-a*l)),e[7]=r*(l*p-u*h)-o*(n*p-a*h)+c*(n*u-a*l),e[8]=o*(f*g-p*v)-c*(s*g-u*v)+d*(s*p-u*f),e[9]=-(r*(f*g-p*v)-c*(i*g-a*v)+d*(i*p-a*f)),e[10]=r*(s*g-u*v)-o*(i*g-a*v)+d*(i*u-a*s),e[11]=-(r*(s*p-u*f)-o*(i*p-a*f)+c*(i*u-a*s)),e[12]=-(o*(f*m-h*v)-c*(s*m-l*v)+d*(s*h-l*f)),e[13]=r*(f*m-h*v)-c*(i*m-n*v)+d*(i*h-n*f),e[14]=-(r*(s*m-l*v)-o*(i*m-n*v)+d*(i*l-n*s)),e[15]=r*(s*h-l*f)-o*(i*h-n*f)+c*(i*l-n*s),e}});var ehe=W((tBr,Qfe)=>{Qfe.exports=s3t;function s3t(e){var t=e[0],r=e[1],i=e[2],n=e[3],a=e[4],o=e[5],s=e[6],l=e[7],u=e[8],c=e[9],f=e[10],h=e[11],p=e[12],d=e[13],v=e[14],m=e[15],g=t*o-r*a,w=t*s-i*a,_=t*l-n*a,b=r*s-i*o,S=r*l-n*o,x=i*l-n*s,T=u*d-c*p,A=u*v-f*p,y=u*m-h*p,E=c*v-f*d,M=c*m-h*d,C=f*m-h*v;return g*C-w*M+_*E+b*y-S*A+x*T}});var rhe=W((rBr,the)=>{the.exports=l3t;function l3t(e,t,r){var i=t[0],n=t[1],a=t[2],o=t[3],s=t[4],l=t[5],u=t[6],c=t[7],f=t[8],h=t[9],p=t[10],d=t[11],v=t[12],m=t[13],g=t[14],w=t[15],_=r[0],b=r[1],S=r[2],x=r[3];return e[0]=_*i+b*s+S*f+x*v,e[1]=_*n+b*l+S*h+x*m,e[2]=_*a+b*u+S*p+x*g,e[3]=_*o+b*c+S*d+x*w,_=r[4],b=r[5],S=r[6],x=r[7],e[4]=_*i+b*s+S*f+x*v,e[5]=_*n+b*l+S*h+x*m,e[6]=_*a+b*u+S*p+x*g,e[7]=_*o+b*c+S*d+x*w,_=r[8],b=r[9],S=r[10],x=r[11],e[8]=_*i+b*s+S*f+x*v,e[9]=_*n+b*l+S*h+x*m,e[10]=_*a+b*u+S*p+x*g,e[11]=_*o+b*c+S*d+x*w,_=r[12],b=r[13],S=r[14],x=r[15],e[12]=_*i+b*s+S*f+x*v,e[13]=_*n+b*l+S*h+x*m,e[14]=_*a+b*u+S*p+x*g,e[15]=_*o+b*c+S*d+x*w,e}});var nhe=W((iBr,ihe)=>{ihe.exports=u3t;function u3t(e,t,r){var i=r[0],n=r[1],a=r[2],o,s,l,u,c,f,h,p,d,v,m,g;return t===e?(e[12]=t[0]*i+t[4]*n+t[8]*a+t[12],e[13]=t[1]*i+t[5]*n+t[9]*a+t[13],e[14]=t[2]*i+t[6]*n+t[10]*a+t[14],e[15]=t[3]*i+t[7]*n+t[11]*a+t[15]):(o=t[0],s=t[1],l=t[2],u=t[3],c=t[4],f=t[5],h=t[6],p=t[7],d=t[8],v=t[9],m=t[10],g=t[11],e[0]=o,e[1]=s,e[2]=l,e[3]=u,e[4]=c,e[5]=f,e[6]=h,e[7]=p,e[8]=d,e[9]=v,e[10]=m,e[11]=g,e[12]=o*i+c*n+d*a+t[12],e[13]=s*i+f*n+v*a+t[13],e[14]=l*i+h*n+m*a+t[14],e[15]=u*i+p*n+g*a+t[15]),e}});var ohe=W((nBr,ahe)=>{ahe.exports=c3t;function c3t(e,t,r){var i=r[0],n=r[1],a=r[2];return e[0]=t[0]*i,e[1]=t[1]*i,e[2]=t[2]*i,e[3]=t[3]*i,e[4]=t[4]*n,e[5]=t[5]*n,e[6]=t[6]*n,e[7]=t[7]*n,e[8]=t[8]*a,e[9]=t[9]*a,e[10]=t[10]*a,e[11]=t[11]*a,e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}});var lhe=W((aBr,she)=>{she.exports=f3t;function f3t(e,t,r,i){var n=i[0],a=i[1],o=i[2],s=Math.sqrt(n*n+a*a+o*o),l,u,c,f,h,p,d,v,m,g,w,_,b,S,x,T,A,y,E,M,C,k,D,L;return Math.abs(s)<1e-6?null:(s=1/s,n*=s,a*=s,o*=s,l=Math.sin(r),u=Math.cos(r),c=1-u,f=t[0],h=t[1],p=t[2],d=t[3],v=t[4],m=t[5],g=t[6],w=t[7],_=t[8],b=t[9],S=t[10],x=t[11],T=n*n*c+u,A=a*n*c+o*l,y=o*n*c-a*l,E=n*a*c-o*l,M=a*a*c+u,C=o*a*c+n*l,k=n*o*c+a*l,D=a*o*c-n*l,L=o*o*c+u,e[0]=f*T+v*A+_*y,e[1]=h*T+m*A+b*y,e[2]=p*T+g*A+S*y,e[3]=d*T+w*A+x*y,e[4]=f*E+v*M+_*C,e[5]=h*E+m*M+b*C,e[6]=p*E+g*M+S*C,e[7]=d*E+w*M+x*C,e[8]=f*k+v*D+_*L,e[9]=h*k+m*D+b*L,e[10]=p*k+g*D+S*L,e[11]=d*k+w*D+x*L,t!==e&&(e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e)}});var che=W((oBr,uhe)=>{uhe.exports=h3t;function h3t(e,t,r){var i=Math.sin(r),n=Math.cos(r),a=t[4],o=t[5],s=t[6],l=t[7],u=t[8],c=t[9],f=t[10],h=t[11];return t!==e&&(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[4]=a*n+u*i,e[5]=o*n+c*i,e[6]=s*n+f*i,e[7]=l*n+h*i,e[8]=u*n-a*i,e[9]=c*n-o*i,e[10]=f*n-s*i,e[11]=h*n-l*i,e}});var hhe=W((sBr,fhe)=>{fhe.exports=d3t;function d3t(e,t,r){var i=Math.sin(r),n=Math.cos(r),a=t[0],o=t[1],s=t[2],l=t[3],u=t[8],c=t[9],f=t[10],h=t[11];return t!==e&&(e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=a*n-u*i,e[1]=o*n-c*i,e[2]=s*n-f*i,e[3]=l*n-h*i,e[8]=a*i+u*n,e[9]=o*i+c*n,e[10]=s*i+f*n,e[11]=l*i+h*n,e}});var phe=W((lBr,dhe)=>{dhe.exports=p3t;function p3t(e,t,r){var i=Math.sin(r),n=Math.cos(r),a=t[0],o=t[1],s=t[2],l=t[3],u=t[4],c=t[5],f=t[6],h=t[7];return t!==e&&(e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=a*n+u*i,e[1]=o*n+c*i,e[2]=s*n+f*i,e[3]=l*n+h*i,e[4]=u*n-a*i,e[5]=c*n-o*i,e[6]=f*n-s*i,e[7]=h*n-l*i,e}});var ghe=W((uBr,vhe)=>{vhe.exports=v3t;function v3t(e,t,r){var i,n,a,o=r[0],s=r[1],l=r[2],u=Math.sqrt(o*o+s*s+l*l);return Math.abs(u)<1e-6?null:(u=1/u,o*=u,s*=u,l*=u,i=Math.sin(t),n=Math.cos(t),a=1-n,e[0]=o*o*a+n,e[1]=s*o*a+l*i,e[2]=l*o*a-s*i,e[3]=0,e[4]=o*s*a-l*i,e[5]=s*s*a+n,e[6]=l*s*a+o*i,e[7]=0,e[8]=o*l*a+s*i,e[9]=s*l*a-o*i,e[10]=l*l*a+n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e)}});var yhe=W((cBr,mhe)=>{mhe.exports=g3t;function g3t(e,t,r){var i=t[0],n=t[1],a=t[2],o=t[3],s=i+i,l=n+n,u=a+a,c=i*s,f=i*l,h=i*u,p=n*l,d=n*u,v=a*u,m=o*s,g=o*l,w=o*u;return e[0]=1-(p+v),e[1]=f+w,e[2]=h-g,e[3]=0,e[4]=f-w,e[5]=1-(c+v),e[6]=d+m,e[7]=0,e[8]=h+g,e[9]=d-m,e[10]=1-(c+p),e[11]=0,e[12]=r[0],e[13]=r[1],e[14]=r[2],e[15]=1,e}});var bhe=W((fBr,xhe)=>{xhe.exports=m3t;function m3t(e,t){return e[0]=t[0],e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=t[1],e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=t[2],e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var whe=W((hBr,_he)=>{_he.exports=y3t;function y3t(e,t){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]=t[0],e[13]=t[1],e[14]=t[2],e[15]=1,e}});var Ahe=W((dBr,The)=>{The.exports=x3t;function x3t(e,t){var r=Math.sin(t),i=Math.cos(t);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=i,e[6]=r,e[7]=0,e[8]=0,e[9]=-r,e[10]=i,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var She=W((pBr,Mhe)=>{Mhe.exports=b3t;function b3t(e,t){var r=Math.sin(t),i=Math.cos(t);return e[0]=i,e[1]=0,e[2]=-r,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=r,e[9]=0,e[10]=i,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var khe=W((vBr,Ehe)=>{Ehe.exports=_3t;function _3t(e,t){var r=Math.sin(t),i=Math.cos(t);return e[0]=i,e[1]=r,e[2]=0,e[3]=0,e[4]=-r,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}});var Dhe=W((gBr,Che)=>{Che.exports=w3t;function w3t(e,t){var r=t[0],i=t[1],n=t[2],a=t[3],o=r+r,s=i+i,l=n+n,u=r*o,c=i*o,f=i*s,h=n*o,p=n*s,d=n*l,v=a*o,m=a*s,g=a*l;return e[0]=1-f-d,e[1]=c+g,e[2]=h-m,e[3]=0,e[4]=c-g,e[5]=1-u-d,e[6]=p+v,e[7]=0,e[8]=h+m,e[9]=p-v,e[10]=1-u-f,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var Lhe=W((mBr,Fhe)=>{Fhe.exports=T3t;function T3t(e,t,r,i,n,a,o){var s=1/(r-t),l=1/(n-i),u=1/(a-o);return e[0]=a*2*s,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=a*2*l,e[6]=0,e[7]=0,e[8]=(r+t)*s,e[9]=(n+i)*l,e[10]=(o+a)*u,e[11]=-1,e[12]=0,e[13]=0,e[14]=o*a*2*u,e[15]=0,e}});var Ihe=W((yBr,Phe)=>{Phe.exports=A3t;function A3t(e,t,r,i,n){var a=1/Math.tan(t/2),o=1/(i-n);return e[0]=a/r,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=a,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=(n+i)*o,e[11]=-1,e[12]=0,e[13]=0,e[14]=2*n*i*o,e[15]=0,e}});var zhe=W((xBr,Rhe)=>{Rhe.exports=M3t;function M3t(e,t,r,i){var n=Math.tan(t.upDegrees*Math.PI/180),a=Math.tan(t.downDegrees*Math.PI/180),o=Math.tan(t.leftDegrees*Math.PI/180),s=Math.tan(t.rightDegrees*Math.PI/180),l=2/(o+s),u=2/(n+a);return e[0]=l,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=u,e[6]=0,e[7]=0,e[8]=-((o-s)*l*.5),e[9]=(n-a)*u*.5,e[10]=i/(r-i),e[11]=-1,e[12]=0,e[13]=0,e[14]=i*r/(r-i),e[15]=0,e}});var qhe=W((bBr,Bhe)=>{Bhe.exports=S3t;function S3t(e,t,r,i,n,a,o){var s=1/(t-r),l=1/(i-n),u=1/(a-o);return e[0]=-2*s,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*l,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*u,e[11]=0,e[12]=(t+r)*s,e[13]=(n+i)*l,e[14]=(o+a)*u,e[15]=1,e}});var Nhe=W((_Br,Ohe)=>{var E3t=zV();Ohe.exports=k3t;function k3t(e,t,r,i){var n,a,o,s,l,u,c,f,h,p,d=t[0],v=t[1],m=t[2],g=i[0],w=i[1],_=i[2],b=r[0],S=r[1],x=r[2];return Math.abs(d-b)<1e-6&&Math.abs(v-S)<1e-6&&Math.abs(m-x)<1e-6?E3t(e):(c=d-b,f=v-S,h=m-x,p=1/Math.sqrt(c*c+f*f+h*h),c*=p,f*=p,h*=p,n=w*h-_*f,a=_*c-g*h,o=g*f-w*c,p=Math.sqrt(n*n+a*a+o*o),p?(p=1/p,n*=p,a*=p,o*=p):(n=0,a=0,o=0),s=f*o-h*a,l=h*n-c*o,u=c*a-f*n,p=Math.sqrt(s*s+l*l+u*u),p?(p=1/p,s*=p,l*=p,u*=p):(s=0,l=0,u=0),e[0]=n,e[1]=s,e[2]=c,e[3]=0,e[4]=a,e[5]=l,e[6]=f,e[7]=0,e[8]=o,e[9]=u,e[10]=h,e[11]=0,e[12]=-(n*d+a*v+o*m),e[13]=-(s*d+l*v+u*m),e[14]=-(c*d+f*v+h*m),e[15]=1,e)}});var Vhe=W((wBr,Uhe)=>{Uhe.exports=C3t;function C3t(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]+")"}});var BV=W((TBr,Ghe)=>{Ghe.exports={create:Ufe(),clone:Gfe(),copy:jfe(),identity:zV(),transpose:Yfe(),invert:Zfe(),adjoint:Jfe(),determinant:ehe(),multiply:rhe(),translate:nhe(),scale:ohe(),rotate:lhe(),rotateX:che(),rotateY:hhe(),rotateZ:phe(),fromRotation:ghe(),fromRotationTranslation:yhe(),fromScaling:bhe(),fromTranslation:whe(),fromXRotation:Ahe(),fromYRotation:She(),fromZRotation:khe(),fromQuat:Dhe(),frustum:Lhe(),perspective:Ihe(),perspectiveFromFieldOfView:zhe(),ortho:qhe(),lookAt:Nhe(),str:Vhe()}});var pD=W(El=>{"use strict";var D3t=BV();El.init2dArray=function(e,t){for(var r=new Array(e),i=0;i{"use strict";var F3t=gi(),Hhe=zg(),L3t=pD(),P3t=BV();function I3t(e){var t;if(typeof e=="string"){if(t=document.getElementById(e),t===null)throw new Error("No DOM element with id '"+e+"' exists on the page.");return t}else if(e==null)throw new Error("DOM element provided is null or undefined");return e}function R3t(e){var t=F3t.select(e);return t.node()instanceof HTMLElement&&t.size()&&t.classed("js-plotly-plot")}function jhe(e){var t=e&&e.parentNode;t&&t.removeChild(e)}function z3t(e,t){$he("global",e,t)}function $he(e,t,r){var i="plotly.js-style-"+e,n=document.getElementById(i);if(!(n&&n.matches(".no-inline-styles"))){n||(n=document.createElement("style"),n.setAttribute("id",i),n.appendChild(document.createTextNode("")),document.head.appendChild(n));var a=n.sheet;a?a.insertRule?a.insertRule(t+"{"+r+"}",0):a.addRule?a.addRule(t,r,0):Hhe.warn("addStyleRule failed"):Hhe.warn("Cannot addRelatedStyleRule, probably due to strict CSP...")}}function B3t(e){var t="plotly.js-style-"+e,r=document.getElementById(t);r&&jhe(r)}function q3t(e,t,r,i,n,a){var o=i.split(":"),s=n.split(":"),l="data-btn-style-event-added";a||(a=document),a.querySelectorAll(e).forEach(function(u){u._hoverStyle={activeStyleParts:o,inactiveStyleParts:s},u.getAttribute(l)||(u.addEventListener("mouseenter",function(){var c=this._hoverStyle,f=this.querySelector(r);f&&(f.style[c.activeStyleParts[0]]=c.activeStyleParts[1])}),u.addEventListener("mouseleave",function(){var c=this._hoverStyle,f=this.querySelector(r);f&&(t&&this.matches(t)?f.style[c.activeStyleParts[0]]=c.activeStyleParts[1]:f.style[c.inactiveStyleParts[0]]=c.inactiveStyleParts[1])}),u.setAttribute(l,!0))})}function O3t(e){var t=Yhe(e),r=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];return t.forEach(function(i){var n=Whe(i);if(n){var a=L3t.convertCssMatrix(n);r=P3t.multiply(r,r,a)}}),r}function Whe(e){var t=window.getComputedStyle(e,null),r=t.getPropertyValue("-webkit-transform")||t.getPropertyValue("-moz-transform")||t.getPropertyValue("-ms-transform")||t.getPropertyValue("-o-transform")||t.getPropertyValue("transform");return r==="none"?null:r.replace("matrix","").replace("3d","").slice(1,-1).split(",").map(function(i){return+i})}function Yhe(e){for(var t=[];N3t(e);)t.push(e),e=e.parentNode,typeof ShadowRoot=="function"&&e instanceof ShadowRoot&&(e=e.host);return t}function N3t(e){return e&&(e instanceof Element||e instanceof HTMLElement)}function U3t(e,t){return e&&t&&e.top===t.top&&e.left===t.left&&e.right===t.right&&e.bottom===t.bottom}Xhe.exports={getGraphDiv:I3t,isPlotDiv:R3t,removeElement:jhe,addStyleRule:z3t,addRelatedStyleRule:$he,deleteRelatedStyleRule:B3t,setStyleOnHover:q3t,getFullTransformMatrix:O3t,getElementTransformMatrix:Whe,getElementAndAncestors:Yhe,equalDomRects:U3t}});var hA=W((SBr,Zhe)=>{"use strict";Zhe.exports={mode:{valType:"enumerated",dflt:"afterall",values:["immediate","next","afterall"]},direction:{valType:"enumerated",values:["forward","reverse"],dflt:"forward"},fromcurrent:{valType:"boolean",dflt:!1},frame:{duration:{valType:"number",min:0,dflt:500},redraw:{valType:"boolean",dflt:!0}},transition:{duration:{valType:"number",min:0,dflt:500,editType:"none"},easing:{valType:"enumerated",dflt:"cubic-in-out",values:["linear","quad","cubic","sin","exp","circle","elastic","back","bounce","linear-in","quad-in","cubic-in","sin-in","exp-in","circle-in","elastic-in","back-in","bounce-in","linear-out","quad-out","cubic-out","sin-out","exp-out","circle-out","elastic-out","back-out","bounce-out","linear-in-out","quad-in-out","cubic-in-out","sin-in-out","exp-in-out","circle-in-out","elastic-in-out","back-in-out","bounce-in-out"],editType:"none"},ordering:{valType:"enumerated",values:["layout first","traces first"],dflt:"layout first",editType:"none"}}}});var cs=W((EBr,i0e)=>{"use strict";var Jhe=nn().extendFlat,V3t=dy(),Qhe={valType:"flaglist",extras:["none"],flags:["calc","clearAxisTypes","plot","style","markerSize","colorbars"]},e0e={valType:"flaglist",extras:["none"],flags:["calc","plot","legend","ticks","axrange","layoutstyle","modebar","camera","arraydraw","colorbars"]},G3t=Qhe.flags.slice().concat(["fullReplot"]),H3t=e0e.flags.slice().concat("layoutReplot");i0e.exports={traces:Qhe,layout:e0e,traceFlags:function(){return Khe(G3t)},layoutFlags:function(){return Khe(H3t)},update:function(e,t){var r=t.editType;if(r&&r!=="none")for(var i=r.split("+"),n=0;n{"use strict";qV.dash={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",editType:"style"};qV.pattern={shape:{valType:"enumerated",values:["","/","\\","x","-","|","+","."],dflt:"",arrayOk:!0,editType:"style"},path:{valType:"string",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"}});var OV={};Kn(OV,{DATE_FORMAT_LINK:()=>$3t,FORMAT_LINK:()=>j3t});var j3t,$3t,NV=Ci(()=>{"use strict";j3t="https://github.com/d3/d3-format/tree/v1.4.5#d3-format",$3t="https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format"});var $a=W(cw=>{"use strict";var{DATE_FORMAT_LINK:W3t,FORMAT_LINK:Y3t}=(NV(),Pt(OV)),X3t=["Variables that can't be found will be replaced with the specifier.",'For example, a template of "data: %{x}, %{y}" will result in a value of "data: 1, %{y}" if x is 1 and y is missing.',"Variables with an undefined value will be replaced with the fallback value."].join(" ");function Z3t({supportOther:e}={}){return["Variables are inserted using %{variable},",'for example "y: %{y}"'+(e?" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown.":"."),`Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}".`,Y3t,"for details on the formatting syntax.",`Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}".`,W3t,"for details on the date formatting syntax.",X3t].join(" ")}cw.templateFormatStringDescription=Z3t;cw.hovertemplateAttrs=({editType:e="none",arrayOk:t}={},r={})=>dn({valType:"string",dflt:"",editType:e},t!==!1?{arrayOk:!0}:{});cw.texttemplateAttrs=({editType:e="calc",arrayOk:t}={},r={})=>dn({valType:"string",dflt:"",editType:e},t!==!1?{arrayOk:!0}:{});cw.shapeTexttemplateAttrs=({editType:e="arraydraw",newshape:t}={},r={})=>({valType:"string",dflt:"",editType:e});cw.templatefallbackAttrs=({editType:e="none"}={})=>({valType:"any",dflt:"-",editType:e})});var mD=W((FBr,u0e)=>{"use strict";function by(e,t){return t?t.d2l(e):e}function n0e(e,t){return t?t.l2d(e):e}function K3t(e){return e.x0}function J3t(e){return e.x1}function Q3t(e){return e.y0}function ewt(e){return e.y1}function a0e(e){return e.x0shift||0}function o0e(e){return e.x1shift||0}function s0e(e){return e.y0shift||0}function l0e(e){return e.y1shift||0}function vD(e,t){return by(e.x1,t)+o0e(e)-by(e.x0,t)-a0e(e)}function gD(e,t,r){return by(e.y1,r)+l0e(e)-by(e.y0,r)-s0e(e)}function twt(e,t){return Math.abs(vD(e,t))}function rwt(e,t,r){return Math.abs(gD(e,t,r))}function iwt(e,t,r){return e.type!=="line"?void 0:Math.sqrt(Math.pow(vD(e,t),2)+Math.pow(gD(e,t,r),2))}function nwt(e,t){return n0e((by(e.x1,t)+o0e(e)+by(e.x0,t)+a0e(e))/2,t)}function awt(e,t,r){return n0e((by(e.y1,r)+l0e(e)+by(e.y0,r)+s0e(e))/2,r)}function owt(e,t,r){return e.type!=="line"?void 0:gD(e,t,r)/vD(e,t)}var swt=["x0","x1","y0","y1","dy","height","ycenter"],lwt=["x0","x1","y0","y1","dx","width","xcenter"];u0e.exports={x0:K3t,x1:J3t,y0:Q3t,y1:ewt,slope:owt,dx:vD,dy:gD,width:twt,height:rwt,length:iwt,xcenter:nwt,ycenter:awt,simpleXVariables:swt,simpleYVariables:lwt}});var h0e=W((LBr,f0e)=>{"use strict";var uwt=cs().overrideAll,Zx=Ka(),c0e=jo(),cwt=Ru().dash,_y=nn().extendFlat,{shapeTexttemplateAttrs:fwt,templatefallbackAttrs:hwt}=$a(),dwt=mD();f0e.exports=uwt({newshape:{visible:_y({},Zx.visible,{}),showlegend:{valType:"boolean",dflt:!1},legend:_y({},Zx.legend,{}),legendgroup:_y({},Zx.legendgroup,{}),legendgrouptitle:{text:_y({},Zx.legendgrouptitle.text,{}),font:c0e({})},legendrank:_y({},Zx.legendrank,{}),legendwidth:_y({},Zx.legendwidth,{}),line:{color:{valType:"color"},width:{valType:"number",min:0,dflt:4},dash:_y({},cwt,{dflt:"solid"})},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd"},opacity:{valType:"number",min:0,max:1,dflt:1},layer:{valType:"enumerated",values:["below","above","between"],dflt:"above"},drawdirection:{valType:"enumerated",values:["ortho","horizontal","vertical","diagonal"],dflt:"diagonal"},name:_y({},Zx.name,{}),label:{text:{valType:"string",dflt:""},texttemplate:fwt({newshape:!0},{keys:Object.keys(dwt)}),texttemplatefallback:hwt({editType:"arraydraw"}),font:c0e({}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"]},textangle:{valType:"angle",dflt:"auto"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto"},yanchor:{valType:"enumerated",values:["top","middle","bottom"]},padding:{valType:"number",dflt:3,min:0}}},activeshape:{fillcolor:{valType:"color",dflt:"rgb(255,0,255)",description:"Sets the color filling the active shape' interior."},opacity:{valType:"number",min:0,max:1,dflt:.5}}},"none","from-root")});var p0e=W((PBr,d0e)=>{"use strict";var pwt=Ru().dash,vwt=nn().extendFlat;d0e.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:vwt({},pwt,{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"}}});var yD=W((IBr,v0e)=>{"use strict";v0e.exports=function(e){var t=e.editType;return{t:{valType:"number",dflt:0,editType:t},r:{valType:"number",dflt:0,editType:t},b:{valType:"number",dflt:0,editType:t},l:{valType:"number",dflt:0,editType:t},editType:t}}});var fw=W((RBr,x0e)=>{"use strict";var UV=jo(),gwt=hA(),xD=jl(),g0e=h0e(),m0e=p0e(),mwt=yD(),y0e=nn().extendFlat,bD=UV({editType:"calc"});bD.family.dflt='"Open Sans", verdana, arial, sans-serif';bD.size.dflt=12;bD.color.dflt=xD.defaultLine;x0e.exports={font:bD,title:{text:{valType:"string",editType:"layoutstyle"},font:UV({editType:"layoutstyle"}),subtitle:{text:{valType:"string",editType:"layoutstyle"},font:UV({editType:"layoutstyle"}),editType:"layoutstyle"},xref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle"},yref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle"},x:{valType:"number",min:0,max:1,dflt:.5,editType:"layoutstyle"},y:{valType:"number",min:0,max:1,dflt:"auto",editType:"layoutstyle"},xanchor:{valType:"enumerated",dflt:"auto",values:["auto","left","center","right"],editType:"layoutstyle"},yanchor:{valType:"enumerated",dflt:"auto",values:["auto","top","middle","bottom"],editType:"layoutstyle"},pad:y0e(mwt({editType:"layoutstyle"}),{}),automargin:{valType:"boolean",dflt:!1,editType:"plot"},editType:"layoutstyle"},uniformtext:{mode:{valType:"enumerated",values:[!1,"hide","show"],dflt:!1,editType:"plot"},minsize:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"},autosize:{valType:"boolean",dflt:!1,editType:"none"},width:{valType:"number",min:10,dflt:700,editType:"plot"},height:{valType:"number",min:10,dflt:450,editType:"plot"},minreducedwidth:{valType:"number",min:2,dflt:64,editType:"plot"},minreducedheight:{valType:"number",min:2,dflt:64,editType:"plot"},margin:{l:{valType:"number",min:0,dflt:80,editType:"plot"},r:{valType:"number",min:0,dflt:80,editType:"plot"},t:{valType:"number",min:0,dflt:100,editType:"plot"},b:{valType:"number",min:0,dflt:80,editType:"plot"},pad:{valType:"number",min:0,dflt:0,editType:"plot"},autoexpand:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},computed:{valType:"any",editType:"none"},paper_bgcolor:{valType:"color",dflt:xD.background,editType:"plot"},plot_bgcolor:{valType:"color",dflt:xD.background,editType:"layoutstyle"},autotypenumbers:{valType:"enumerated",values:["convert types","strict"],dflt:"convert types",editType:"calc"},separators:{valType:"string",editType:"plot"},showlegend:{valType:"boolean",editType:"legend"},colorway:{valType:"colorlist",dflt:xD.defaults,editType:"calc"},datarevision:{valType:"any",editType:"calc"},uirevision:{valType:"any",editType:"none"},editrevision:{valType:"any",editType:"none"},selectionrevision:{valType:"any",editType:"none"},template:{valType:"any",editType:"calc"},newshape:g0e.newshape,activeshape:g0e.activeshape,newselection:m0e.newselection,activeselection:m0e.activeselection,meta:{valType:"any",arrayOk:!0,editType:"plot"},transition:y0e({},gwt.transition,{editType:"none"})}});var b0e=W(()=>{(function(){if(!document.getElementById("ce8d464691048653ffe3a57c6c18ab566e8366f186677868cf724621a857b4fe")){var e=document.createElement("style");e.id="ce8d464691048653ffe3a57c6c18ab566e8366f186677868cf724621a857b4fe",e.textContent='.maplibregl-map{font:12px/20px Helvetica Neue,Arial,Helvetica,sans-serif;overflow:hidden;position:relative;-webkit-tap-highlight-color:rgb(0 0 0/0);-webkit-touch-callout:none}.maplibregl-canvas{position:absolute;left:0;top:0}.maplibregl-map:fullscreen{width:100%;height:100%}.maplibregl-ctrl-group button.maplibregl-ctrl-compass{touch-action:none}.maplibregl-canvas-container.maplibregl-interactive,.maplibregl-ctrl-group button.maplibregl-ctrl-compass{cursor:grab;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-canvas-container.maplibregl-interactive.maplibregl-track-pointer{cursor:pointer}.maplibregl-canvas-container.maplibregl-interactive:active,.maplibregl-ctrl-group button.maplibregl-ctrl-compass:active{cursor:grabbing}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-canvas-container.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:pinch-zoom}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:none}.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures,.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-ctrl-bottom-left,.maplibregl-ctrl-bottom-right,.maplibregl-ctrl-top-left,.maplibregl-ctrl-top-right{position:absolute;pointer-events:none;z-index:2}.maplibregl-ctrl-top-left{top:0;left:0}.maplibregl-ctrl-top-right{top:0;right:0}.maplibregl-ctrl-bottom-left{bottom:0;left:0}.maplibregl-ctrl-bottom-right{right:0;bottom:0}.maplibregl-ctrl{clear:both;pointer-events:auto;transform:translate(0)}.maplibregl-ctrl-top-left .maplibregl-ctrl{margin:10px 0 0 10px;float:left}.maplibregl-ctrl-top-right .maplibregl-ctrl{margin:10px 10px 0 0;float:right}.maplibregl-ctrl-bottom-left .maplibregl-ctrl{margin:0 0 10px 10px;float:left}.maplibregl-ctrl-bottom-right .maplibregl-ctrl{margin:0 10px 10px 0;float:right}.maplibregl-ctrl-group{border-radius:4px;background:#fff}.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px rgba(0,0,0,.1)}@media (forced-colors:active){.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px ButtonText}}.maplibregl-ctrl-group button{width:29px;height:29px;display:block;padding:0;outline:none;border:0;box-sizing:border-box;background-color:transparent;cursor:pointer}.maplibregl-ctrl button{-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-ctrl-group button+button{border-top:1px solid #ddd}.maplibregl-ctrl button .maplibregl-ctrl-icon{display:block;width:100%;height:100%;background-repeat:no-repeat;background-position:50%}@media (forced-colors:active){.maplibregl-ctrl-icon{background-color:transparent}.maplibregl-ctrl-group button+button{border-top:1px solid ButtonText}}.maplibregl-ctrl button::-moz-focus-inner{border:0;padding:0}.maplibregl-ctrl-attrib-button:focus,.maplibregl-ctrl-group button:focus{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl button:disabled{cursor:not-allowed}.maplibregl-ctrl button:disabled .maplibregl-ctrl-icon{opacity:.25}@media (hover:hover){.maplibregl-ctrl button:not(:disabled):hover{background-color:rgba(0,0,0,.05)}}.maplibregl-ctrl button:not(:disabled):active{background-color:rgba(0,0,0,.05)}.maplibregl-ctrl-group button:focus:focus-visible{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl-group button:focus:not(:focus-visible){box-shadow:none}.maplibregl-ctrl-group button:focus:first-child{border-radius:4px 4px 0 0}.maplibregl-ctrl-group button:focus:last-child{border-radius:0 0 4px 4px}.maplibregl-ctrl-group button:focus:only-child{border-radius:inherit}.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M10%2013c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h9c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M14.5%208.5c-.75%200-1.5.75-1.5%201.5v3h-3c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h3v3c0%20.75.75%201.5%201.5%201.5S16%2019.75%2016%2019v-3h3c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013h-3v-3c0-.75-.75-1.5-1.5-1.5%22%2F%3E%3C%2Fsvg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M10%2013c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h9c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M14.5%208.5c-.75%200-1.5.75-1.5%201.5v3h-3c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h3v3c0%20.75.75%201.5%201.5%201.5S16%2019.75%2016%2019v-3h3c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013h-3v-3c0-.75-.75-1.5-1.5-1.5%22%2F%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M10%2013c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h9c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M14.5%208.5c-.75%200-1.5.75-1.5%201.5v3h-3c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h3v3c0%20.75.75%201.5%201.5%201.5S16%2019.75%2016%2019v-3h3c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013h-3v-3c0-.75-.75-1.5-1.5-1.5%22%2F%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M24%2016v5.5c0%201.75-.75%202.5-2.5%202.5H16v-1l3-1.5-4-5.5%201-1%205.5%204%201.5-3zM6%2016l1.5%203%205.5-4%201%201-4%205.5%203%201.5v1H7.5C5.75%2024%205%2023.25%205%2021.5V16zm7-11v1l-3%201.5%204%205.5-1%201-5.5-4L6%2013H5V7.5C5%205.75%205.75%205%207.5%205zm11%202.5c0-1.75-.75-2.5-2.5-2.5H16v1l3%201.5-4%205.5%201%201%205.5-4%201.5%203h1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M18.5%2016c-1.75%200-2.5.75-2.5%202.5V24h1l1.5-3%205.5%204%201-1-4-5.5%203-1.5v-1zM13%2018.5c0-1.75-.75-2.5-2.5-2.5H5v1l3%201.5L4%2024l1%201%205.5-4%201.5%203h1zm3-8c0%201.75.75%202.5%202.5%202.5H24v-1l-3-1.5L25%205l-1-1-5.5%204L17%205h-1zM10.5%2013c1.75%200%202.5-.75%202.5-2.5V5h-1l-1.5%203L5%204%204%205l4%205.5L5%2012v1z%22%2F%3E%3C%2Fsvg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M24%2016v5.5c0%201.75-.75%202.5-2.5%202.5H16v-1l3-1.5-4-5.5%201-1%205.5%204%201.5-3zM6%2016l1.5%203%205.5-4%201%201-4%205.5%203%201.5v1H7.5C5.75%2024%205%2023.25%205%2021.5V16zm7-11v1l-3%201.5%204%205.5-1%201-5.5-4L6%2013H5V7.5C5%205.75%205.75%205%207.5%205zm11%202.5c0-1.75-.75-2.5-2.5-2.5H16v1l3%201.5-4%205.5%201%201%205.5-4%201.5%203h1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M18.5%2016c-1.75%200-2.5.75-2.5%202.5V24h1l1.5-3%205.5%204%201-1-4-5.5%203-1.5v-1zM13%2018.5c0-1.75-.75-2.5-2.5-2.5H5v1l3%201.5L4%2024l1%201%205.5-4%201.5%203h1zm3-8c0%201.75.75%202.5%202.5%202.5H24v-1l-3-1.5L25%205l-1-1-5.5%204L17%205h-1zM10.5%2013c1.75%200%202.5-.75%202.5-2.5V5h-1l-1.5%203L5%204%204%205l4%205.5L5%2012v1z%22%2F%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M24%2016v5.5c0%201.75-.75%202.5-2.5%202.5H16v-1l3-1.5-4-5.5%201-1%205.5%204%201.5-3zM6%2016l1.5%203%205.5-4%201%201-4%205.5%203%201.5v1H7.5C5.75%2024%205%2023.25%205%2021.5V16zm7-11v1l-3%201.5%204%205.5-1%201-5.5-4L6%2013H5V7.5C5%205.75%205.75%205%207.5%205zm11%202.5c0-1.75-.75-2.5-2.5-2.5H16v1l3%201.5-4%205.5%201%201%205.5-4%201.5%203h1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M18.5%2016c-1.75%200-2.5.75-2.5%202.5V24h1l1.5-3%205.5%204%201-1-4-5.5%203-1.5v-1zM13%2018.5c0-1.75-.75-2.5-2.5-2.5H5v1l3%201.5L4%2024l1%201%205.5-4%201.5%203h1zm3-8c0%201.75.75%202.5%202.5%202.5H24v-1l-3-1.5L25%205l-1-1-5.5%204L17%205h-1zM10.5%2013c1.75%200%202.5-.75%202.5-2.5V5h-1l-1.5%203L5%204%204%205l4%205.5L5%2012v1z%22%2F%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22m10.5%2014%204-8%204%208z%22%2F%3E%3Cpath%20fill%3D%22%23ccc%22%20d%3D%22m10.5%2016%204%208%204-8z%22%2F%3E%3C%2Fsvg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22m10.5%2014%204-8%204%208z%22%2F%3E%3Cpath%20fill%3D%22%23ccc%22%20d%3D%22m10.5%2016%204%208%204-8z%22%2F%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22m10.5%2014%204-8%204%208z%22%2F%3E%3Cpath%20fill%3D%22%23ccc%22%20d%3D%22m10.5%2016%204%208%204-8z%22%2F%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-globe .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2222%22%20height%3D%2222%22%20fill%3D%22none%22%20stroke%3D%22%23333%22%20viewBox%3D%220%200%2022%2022%22%3E%3Ccircle%20cx%3D%2211%22%20cy%3D%2211%22%20r%3D%228.5%22%2F%3E%3Cpath%20d%3D%22M17.5%2011c0%204.819-3.02%208.5-6.5%208.5S4.5%2015.819%204.5%2011%207.52%202.5%2011%202.5s6.5%203.681%206.5%208.5Z%22%2F%3E%3Cpath%20d%3D%22M13.5%2011c0%202.447-.331%204.64-.853%206.206-.262.785-.562%201.384-.872%201.777-.314.399-.58.517-.775.517s-.461-.118-.775-.517c-.31-.393-.61-.992-.872-1.777C8.831%2015.64%208.5%2013.446%208.5%2011s.331-4.64.853-6.206c.262-.785.562-1.384.872-1.777.314-.399.58-.517.775-.517s.461.118.775.517c.31.393.61.992.872%201.777.522%201.565.853%203.76.853%206.206Z%22%2F%3E%3Cpath%20d%3D%22M11%207.5c-1.909%200-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3%201.3%200%200%201-.224-.138q.07-.058.224-.138c.299-.151.763-.302%201.379-.434C7.378%205.666%209.091%205.5%2011%205.5s3.622.166%204.845.428c.616.132%201.08.283%201.379.434.105.053.177.1.224.138q-.07.058-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm0%209c-1.909%200-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3%201.3%200%200%201-.224-.138%201.3%201.3%200%200%201%20.224-.138c.299-.151.763-.302%201.379-.434C7.378%2014.666%209.091%2014.5%2011%2014.5s3.622.166%204.845.428c.616.132%201.08.283%201.379.434.105.053.177.1.224.138a1.3%201.3%200%200%201-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm0-4c-2.46%200-4.672-.222-6.255-.574-.796-.177-1.406-.38-1.805-.59a1.5%201.5%200%200%201-.39-.272.3.3%200%200%201-.047-.064.3.3%200%200%201%20.048-.064c.066-.073.189-.167.389-.272.399-.21%201.009-.413%201.805-.59C6.328%209.722%208.54%209.5%2011%209.5s4.672.222%206.256.574c.795.177%201.405.38%201.804.59.2.105.323.2.39.272a.3.3%200%200%201%20.047.064.3.3%200%200%201-.048.064%201.4%201.4%200%200%201-.389.272c-.399.21-1.009.413-1.804.59-1.584.352-3.796.574-6.256.574Zm-8.501-1.51v.002zm0%20.018v.002zm17.002.002v-.002zm0-.018v-.002z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-globe-enabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2222%22%20height%3D%2222%22%20fill%3D%22none%22%20stroke%3D%22%2333b5e5%22%20viewBox%3D%220%200%2022%2022%22%3E%3Ccircle%20cx%3D%2211%22%20cy%3D%2211%22%20r%3D%228.5%22%2F%3E%3Cpath%20d%3D%22M17.5%2011c0%204.819-3.02%208.5-6.5%208.5S4.5%2015.819%204.5%2011%207.52%202.5%2011%202.5s6.5%203.681%206.5%208.5Z%22%2F%3E%3Cpath%20d%3D%22M13.5%2011c0%202.447-.331%204.64-.853%206.206-.262.785-.562%201.384-.872%201.777-.314.399-.58.517-.775.517s-.461-.118-.775-.517c-.31-.393-.61-.992-.872-1.777C8.831%2015.64%208.5%2013.446%208.5%2011s.331-4.64.853-6.206c.262-.785.562-1.384.872-1.777.314-.399.58-.517.775-.517s.461.118.775.517c.31.393.61.992.872%201.777.522%201.565.853%203.76.853%206.206Z%22%2F%3E%3Cpath%20d%3D%22M11%207.5c-1.909%200-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3%201.3%200%200%201-.224-.138q.07-.058.224-.138c.299-.151.763-.302%201.379-.434C7.378%205.666%209.091%205.5%2011%205.5s3.622.166%204.845.428c.616.132%201.08.283%201.379.434.105.053.177.1.224.138q-.07.058-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm0%209c-1.909%200-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3%201.3%200%200%201-.224-.138%201.3%201.3%200%200%201%20.224-.138c.299-.151.763-.302%201.379-.434C7.378%2014.666%209.091%2014.5%2011%2014.5s3.622.166%204.845.428c.616.132%201.08.283%201.379.434.105.053.177.1.224.138a1.3%201.3%200%200%201-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm0-4c-2.46%200-4.672-.222-6.255-.574-.796-.177-1.406-.38-1.805-.59a1.5%201.5%200%200%201-.39-.272.3.3%200%200%201-.047-.064.3.3%200%200%201%20.048-.064c.066-.073.189-.167.389-.272.399-.21%201.009-.413%201.805-.59C6.328%209.722%208.54%209.5%2011%209.5s4.672.222%206.256.574c.795.177%201.405.38%201.804.59.2.105.323.2.39.272a.3.3%200%200%201%20.047.064.3.3%200%200%201-.048.064%201.4%201.4%200%200%201-.389.272c-.399.21-1.009.413-1.804.59-1.584.352-3.796.574-6.256.574Zm-8.501-1.51v.002zm0%20.018v.002zm17.002.002v-.002zm0-.018v-.002z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-terrain .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2222%22%20height%3D%2222%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2022%2022%22%3E%3Cpath%20d%3D%22m1.754%2013.406%204.453-4.851%203.09%203.09%203.281%203.277.969-.969-3.309-3.312%203.844-4.121%206.148%206.886h1.082v-.855l-7.207-8.07-4.84%205.187L6.169%206.57l-5.48%205.965v.871ZM.688%2016.844h20.625v1.375H.688Zm0%200%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-terrain-enabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2222%22%20height%3D%2222%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2022%2022%22%3E%3Cpath%20d%3D%22m1.754%2013.406%204.453-4.851%203.09%203.09%203.281%203.277.969-.969-3.309-3.312%203.844-4.121%206.148%206.886h1.082v-.855l-7.207-8.07-4.84%205.187L6.169%206.57l-5.48%205.965v.871ZM.688%2016.844h20.625v1.375H.688Zm0%200%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23aaa%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3Cpath%20fill%3D%22red%22%20d%3D%22m14%205%201%201-9%209-1-1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23e58978%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23e54e33%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-waiting .maplibregl-ctrl-icon{animation:maplibregl-spin 2s linear infinite}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23999%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3Cpath%20fill%3D%22red%22%20d%3D%22m14%205%201%201-9%209-1-1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23e58978%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23e54e33%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23666%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3Cpath%20fill%3D%22red%22%20d%3D%22m14%205%201%201-9%209-1-1z%22%2F%3E%3C%2Fsvg%3E")}}@keyframes maplibregl-spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}a.maplibregl-ctrl-logo{width:88px;height:23px;margin:0 0 -4px -4px;display:block;background-repeat:no-repeat;cursor:pointer;overflow:hidden;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2288%22%20height%3D%2223%22%20fill%3D%22none%22%3E%3Cpath%20fill%3D%22%23000%22%20fill-opacity%3D%22.4%22%20fill-rule%3D%22evenodd%22%20d%3D%22M17.408%2016.796h-1.827l2.501-12.095h.198l3.324%206.533.988%202.19.988-2.19%203.258-6.533h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.929%205.644h-.098l-2.914-5.644-.757-1.71-.345%201.71zm1.958-3.42-.726%203.663a1.255%201.255%200%200%201-1.232%201.011h-1.827a1.255%201.255%200%200%201-1.229-1.509l2.501-12.095a1.255%201.255%200%200%201%201.23-1.001h.197a1.25%201.25%200%200%201%201.12.685l3.19%206.273%203.125-6.263a1.25%201.25%200%200%201%201.123-.695h.181a1.255%201.255%200%200%201%201.227.991l1.443%206.71a5%205%200%200%201%20.314-.787l.009-.016a4.6%204.6%200%200%201%201.777-1.887c.782-.46%201.668-.667%202.611-.667a4.6%204.6%200%200%201%201.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255%201.255%200%200%201%201.212.925%201.255%201.255%200%200%201%201.212-.925h1.711c.284%200%20.545.094.755.252.613-.3%201.312-.45%202.075-.45%201.356%200%202.557.445%203.482%201.4q.47.48.763%201.064V4.701a1.255%201.255%200%200%201%201.255-1.255h1.86A1.255%201.255%200%200%201%2054.44%204.7v9.194h2.217c.19%200%20.37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42%202.42%200%200%201-.682-1.71c0-.665.267-1.253.735-1.7a2.45%202.45%200%200%201%201.722-.674%202.43%202.43%200%200%201%201.705.675q.318.302.504.683V4.7a1.255%201.255%200%200%201%201.255-1.255h1.744A1.255%201.255%200%200%201%2065.812%204.7v3.335a4.8%204.8%200%200%201%201.526-.246c.938%200%201.817.214%202.59.69a4.47%204.47%200%200%201%201.67%201.743v-.98a1.255%201.255%200%200%201%201.256-1.256h1.777c.233%200%20.451.064.639.174a3.4%203.4%200%200%201%201.567-.372c.346%200%20.861.02%201.285.232a1.25%201.25%200%200%201%20.689%201.004%204.7%204.7%200%200%201%20.853-.588c.795-.44%201.675-.647%202.61-.647%201.385%200%202.65.39%203.525%201.396.836.938%201.168%202.173%201.168%203.528q-.001.515-.056%201.051a1.255%201.255%200%200%201-.947%201.09l.408.952a1.255%201.255%200%200%201-.477%201.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06%200-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8%205.8%200%200%201-.548-2.512q0-.429.053-.843a1.3%201.3%200%200%201-.333-.086l-.166-.004c-.223%200-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255%201.255%200%200%201-1.256%201.256h-1.777a1.255%201.255%200%200%201-1.256-1.256V15.69l-.032.057a4.8%204.8%200%200%201-1.86%201.833%205.04%205.04%200%200%201-2.484.634%204.5%204.5%200%200%201-1.935-.424%201.25%201.25%200%200%201-.764.258h-1.71a1.255%201.255%200%200%201-1.256-1.255V7.687a2.4%202.4%200%200%201-.428.625c.253.23.412.561.412.93v7.553a1.255%201.255%200%200%201-1.256%201.255h-1.843a1.25%201.25%200%200%201-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255%201.255%200%200%201-1.256-1.255v-1.251l-.061.117a4.7%204.7%200%200%201-1.782%201.884%204.77%204.77%200%200%201-2.485.67%205.6%205.6%200%200%201-1.485-.188l.009%202.764a1.255%201.255%200%200%201-1.255%201.259h-1.729a1.255%201.255%200%200%201-1.255-1.255v-3.537a1.255%201.255%200%200%201-1.167.793h-1.679a1.25%201.25%200%200%201-.77-.263%204.5%204.5%200%200%201-1.945.429c-.885%200-1.724-.21-2.495-.632l-.017-.01a5%205%200%200%201-1.081-.836%201.255%201.255%200%200%201-1.254%201.312h-1.81a1.255%201.255%200%200%201-1.228-.99l-.782-3.625-2.044%203.939a1.25%201.25%200%200%201-1.115.676h-.098a1.25%201.25%200%200%201-1.116-.68l-2.061-3.994zM35.92%2016.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033%201.332h1.678V9.242h-1.694l-.033%201.267q-.133-.329-.526-.658l-.032-.028a3.2%203.2%200%200%200-.668-.428l-.27-.12a3.3%203.3%200%200%200-1.235-.23q-1.136-.001-1.974.493a3.36%203.36%200%200%200-1.3%201.382q-.445.89-.444%202.074%200%201.2.51%202.107a3.8%203.8%200%200%200%201.382%201.381%203.9%203.9%200%200%200%201.893.477q.795%200%201.455-.33zm-2.789-5.38q-.576.675-.575%201.762%200%201.102.559%201.794.576.675%201.645.675a2.25%202.25%200%200%200%20.934-.19%202.2%202.2%200%200%200%20.468-.29l.178-.161a2.2%202.2%200%200%200%20.397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2%202.2%200%200%200-.633-.709l-.13-.086-.047-.028a2.1%202.1%200%200%200-1.073-.285q-1.052%200-1.629.692zm2.316%202.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96%200%200%200-.353-.389.85.85%200%200%200-.464-.127c-.4%200-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945%200%20.506.122.801.27.99.097.11.266.224.68.224.303%200%20.504-.09.687-.269zm7.545%201.705a2.6%202.6%200%200%200%20.331.423q.319.33.755.548l.173.074q.65.255%201.49.255%201.02%200%201.844-.493a3.45%203.45%200%200%200%201.316-1.4q.493-.904.493-2.089%200-1.909-.988-2.913-.988-1.02-2.584-1.02-.898%200-1.575.347a3%203%200%200%200-.415.262l-.199.166a3.4%203.4%200%200%200-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296%201.119.297%201.07%200%201.645-.675.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.435%200-.835.16a2%202%200%200%200-.284.136%202%202%200%200%200-.363.254%202.2%202.2%200%200%200-.46.569l-.082.162a2.6%202.6%200%200%200-.213%201.072v.115q0%20.707.296%201.267l.135.211zm.964-.818a1.1%201.1%200%200%200%20.367.385.94.94%200%200%200%20.476.118c.423%200%20.59-.117.687-.23.159-.194.28-.478.28-.95%200-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1%201%200%200%200-.503.135l-.012.007a.86.86%200%200%200-.335.343c-.073.133-.132.324-.132.614v.115a1.4%201.4%200%200%200%20.14.66zm15.7-6.222q.347-.346.346-.856a1.05%201.05%200%200%200-.345-.79%201.18%201.18%200%200%200-.84-.329q-.51%200-.855.33a1.05%201.05%200%200%200-.346.79q0%20.51.346.855.345.346.856.346.51%200%20.839-.346zm4.337%209.314.033-1.332q.191.403.59.747l.098.081a4%204%200%200%200%20.316.224l.223.122a3.2%203.2%200%200%200%201.44.322%203.8%203.8%200%200%200%201.875-.477%203.5%203.5%200%200%200%201.382-1.366q.527-.89.526-2.09%200-1.184-.444-2.073a3.24%203.24%200%200%200-1.283-1.399q-.823-.51-1.942-.51a3.5%203.5%200%200%200-1.527.344l-.086.043-.165.09a3%203%200%200%200-.33.214q-.432.315-.656.707a2%202%200%200%200-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5%202.5%200%200%200%20.566.7q.117.098.245.18l.144.08a2.1%202.1%200%200%200%20.975.232q1.07%200%201.645-.675.576-.69.576-1.778%200-1.102-.576-1.777-.56-.691-1.645-.692a2.2%202.2%200%200%200-1.015.235q-.22.113-.415.282l-.15.142a2.1%202.1%200%200%200-.42.594q-.223.479-.223%201.1v.115q0%20.705.293%201.26zm2.616-.293c.157-.191.28-.479.28-.967%200-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87%200%200%200-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0%20.285.057.499.144.669a1.1%201.1%200%200%200%20.367.405c.137.082.28.123.455.123.423%200%20.59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493%200%20.642.099l.247-1.794q-.196-.099-.717-.099a2.3%202.3%200%200%200-.545.063%202%202%200%200%200-.411.148%202.2%202.2%200%200%200-.4.249%202.5%202.5%200%200%200-.485.499%202.7%202.7%200%200%200-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5%201.5%200%200%201%20.466-.636%202.5%202.5%200%200%201%20.399-.253%202%202%200%200%201%20.224-.099zm9.784%202.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46%203.46%200%200%200-1.4%201.382q-.493.906-.493%202.106%200%201.07.428%201.975.428.89%201.332%201.432.906.526%202.255.526.973%200%201.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954%200-1.497-.444a1.6%201.6%200%200%201-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1%201%200%200%200-.156-.176q-.46-.428-1.316-.428-.986%200-1.494.604-.379.45-.494%201.234zm-27.053%202.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z%22%2F%3E%3Cpath%20fill%3D%22%23fff%22%20d%3D%22m19.63%2011.151-.757-1.71-.345%201.71-1.12%205.644h-1.827L18.083%204.7h.197l3.325%206.533.988%202.19.988-2.19L26.839%204.7h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.93%205.644h-.098l-2.913-5.644zm14.836%205.81q-1.02%200-1.893-.478a3.8%203.8%200%200%201-1.381-1.382q-.51-.906-.51-2.106%200-1.185.444-2.074a3.36%203.36%200%200%201%201.3-1.382q.839-.494%201.974-.494a3.3%203.3%200%200%201%201.234.231%203.3%203.3%200%200%201%20.97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02%201.053a3.17%203.17%200%200%201-1.662.444zm.296-1.482q.938%200%201.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2%202.2%200%200%200-.807-.872%202.1%202.1%200%200%200-1.119-.313q-1.053%200-1.629.692-.575.675-.575%201.76%200%201.103.559%201.795.577.675%201.645.675zm6.521-6.237h1.711v1.4q.906-1.597%202.83-1.597%201.596%200%202.584%201.02.988%201.005.988%202.914%200%201.185-.493%202.09a3.46%203.46%200%200%201-1.316%201.399%203.5%203.5%200%200%201-1.844.493q-.954%200-1.662-.329a2.67%202.67%200%200%201-1.086-.97l.017%205.134h-1.728zm4.048%206.22q1.07%200%201.645-.674.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.592%200-1.12.296-.51.28-.822.823-.296.527-.296%201.234v.115q0%20.708.296%201.267.313.543.823.855.51.296%201.119.297z%22%2F%3E%3Cpath%20fill%3D%22%23e1e3e9%22%20d%3D%22M51.325%204.7h1.86v10.45h3.473v1.646h-5.333zm7.12%204.542h1.843v7.553h-1.843zm.905-1.415a1.16%201.16%200%200%201-.856-.346%201.17%201.17%200%200%201-.346-.856%201.05%201.05%200%200%201%20.346-.79q.346-.329.856-.329.494%200%20.839.33a1.05%201.05%200%200%201%20.345.79%201.16%201.16%200%200%201-.345.855q-.33.346-.84.346zm7.875%209.133a3.17%203.17%200%200%201-1.662-.444q-.723-.46-1.004-1.053l-.033%201.332h-1.71V4.701h1.743v4.657l-.082%201.283q.279-.658%201.086-1.119a3.5%203.5%200%200%201%201.778-.477q1.119%200%201.942.51a3.24%203.24%200%200%201%201.283%201.4q.445.888.444%202.072%200%201.201-.526%202.09a3.5%203.5%200%200%201-1.382%201.366%203.8%203.8%200%200%201-1.876.477zm-.296-1.481q1.069%200%201.645-.675.577-.69.577-1.778%200-1.102-.577-1.776-.56-.691-1.645-.692a2.12%202.12%200%200%200-1.58.659q-.642.641-.642%201.694v.115q0%20.71.296%201.267a2.4%202.4%200%200%200%20.807.872%202.1%202.1%200%200%200%201.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14%202.14%200%200%201%201.349-.46q.527%200%20.724.098l-.247%201.794q-.149-.099-.642-.099-.774%200-1.416.494-.626.493-.626%201.58v3.883h-1.777V9.242zm9.534%207.718q-1.35%200-2.255-.526-.904-.543-1.332-1.432a4.6%204.6%200%200%201-.428-1.975q0-1.2.493-2.106a3.46%203.46%200%200%201%201.4-1.382q.889-.495%202.007-.494%201.744%200%202.584.97.855.956.856%202.7%200%20.444-.05.92h-5.43q.18%201.005.708%201.45.542.443%201.497.443.79%200%201.3-.131a4%204%200%200%200%20.938-.362l.542%201.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728%200-1.991%201.86z%22%2F%3E%3Cpath%20d%3D%22M5.074%2015.948a.484.657%200%200%200-.486.659v1.84a.484.657%200%200%200%20.486.659h4.101a.484.657%200%200%200%20.486-.659v-1.84a.484.657%200%200%200-.486-.659zm3.56%201.16H5.617v.838h3.017z%22%20style%3D%22fill%3A%23fff%3Bfill-rule%3Aevenodd%3Bstroke-width%3A1.03600001%22%2F%3E%3Cg%20style%3D%22stroke-width%3A1.12603545%22%3E%3Cpath%20d%3D%22M-9.408-1.416c-3.833-.025-7.056%202.912-7.08%206.615-.02%203.08%201.653%204.832%203.107%206.268.903.892%201.721%201.74%202.32%202.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87%201.87%200%200%200-.362%201.121l-.011%201.877c-.003.402.104.787.347%201.125.244.338.688.653%201.23.656l4.142.028c.542.003.99-.306%201.238-.641a1.87%201.87%200%200%200%20.363-1.121l.012-1.875a1.87%201.87%200%200%200-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145%201.425-1.983%202.348-2.87%201.473-1.414%203.18-3.149%203.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006%201.1v.002c3.274.02%205.92%202.532%205.9%205.6-.017%202.706-1.39%204.026-2.863%205.44-1.034.994-2.118%202.033-2.814%203.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34%200%200%201-.226.084.34.34%200%200%201-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067%202.7-5.545%205.975-5.523m-.02%202.826c-1.62-.01-2.944%201.315-2.955%202.96-.01%201.646%201.295%202.988%202.916%202.999h.002c1.621.01%202.943-1.316%202.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005%201.1c1.017.006%201.829.83%201.822%201.89s-.83%201.874-1.848%201.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874%201.848-1.868m-2.155%2011.857%204.14.025c.271.002.49.305.487.676l-.013%201.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668%22%20style%3D%22color%3A%23000%3Bfont-style%3Anormal%3Bfont-variant%3Anormal%3Bfont-weight%3A400%3Bfont-stretch%3Anormal%3Bfont-size%3Amedium%3Bline-height%3Anormal%3Bfont-family%3Asans-serif%3Bfont-variant-ligatures%3Anormal%3Bfont-variant-position%3Anormal%3Bfont-variant-caps%3Anormal%3Bfont-variant-numeric%3Anormal%3Bfont-variant-alternates%3Anormal%3Bfont-feature-settings%3Anormal%3Btext-indent%3A0%3Btext-align%3Astart%3Btext-decoration%3Anone%3Btext-decoration-line%3Anone%3Btext-decoration-style%3Asolid%3Btext-decoration-color%3A%23000%3Bletter-spacing%3Anormal%3Bword-spacing%3Anormal%3Btext-transform%3Anone%3Bwriting-mode%3Alr-tb%3Bdirection%3Altr%3Btext-orientation%3Amixed%3Bdominant-baseline%3Aauto%3Bbaseline-shift%3Abaseline%3Btext-anchor%3Astart%3Bwhite-space%3Anormal%3Bshape-padding%3A0%3Bclip-rule%3Aevenodd%3Bdisplay%3Ainline%3Boverflow%3Avisible%3Bvisibility%3Avisible%3Bopacity%3A1%3Bisolation%3Aauto%3Bmix-blend-mode%3Anormal%3Bcolor-interpolation%3AsRGB%3Bcolor-interpolation-filters%3AlinearRGB%3Bsolid-color%3A%23000%3Bsolid-opacity%3A1%3Bvector-effect%3Anone%3Bfill%3A%23000%3Bfill-opacity%3A.4%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-linecap%3Abutt%3Bstroke-linejoin%3Amiter%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-dashoffset%3A0%3Bstroke-opacity%3A1%3Bcolor-rendering%3Aauto%3Bimage-rendering%3Aauto%3Bshape-rendering%3Aauto%3Btext-rendering%3Aauto%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-9.415-.316C-12.69-.338-15.37%202.14-15.39%205.207c-.017%202.716%201.326%204.041%202.78%205.477%201.013%201%202.081%202.055%202.78%203.67l.092.076a.34.34%200%200%200%20.225.086.34.34%200%200%200%20.227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6%201.78-2.64%202.814-3.634%201.473-1.414%202.847-2.733%202.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057%208.784c1.621.011%202.944-1.315%202.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945%201.315-2.955%202.96s1.295%202.989%202.916%203%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23e1e3e9%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-11.594%2015.465c-.27-.002-.492.297-.494.668l-.012%201.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23fff%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E")}a.maplibregl-ctrl-logo.maplibregl-compact{width:14px}@media (forced-colors:active){a.maplibregl-ctrl-logo{background-color:transparent;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2288%22%20height%3D%2223%22%20fill%3D%22none%22%3E%3Cpath%20fill%3D%22%23000%22%20fill-opacity%3D%22.4%22%20fill-rule%3D%22evenodd%22%20d%3D%22M17.408%2016.796h-1.827l2.501-12.095h.198l3.324%206.533.988%202.19.988-2.19%203.258-6.533h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.929%205.644h-.098l-2.914-5.644-.757-1.71-.345%201.71zm1.958-3.42-.726%203.663a1.255%201.255%200%200%201-1.232%201.011h-1.827a1.255%201.255%200%200%201-1.229-1.509l2.501-12.095a1.255%201.255%200%200%201%201.23-1.001h.197a1.25%201.25%200%200%201%201.12.685l3.19%206.273%203.125-6.263a1.25%201.25%200%200%201%201.123-.695h.181a1.255%201.255%200%200%201%201.227.991l1.443%206.71a5%205%200%200%201%20.314-.787l.009-.016a4.6%204.6%200%200%201%201.777-1.887c.782-.46%201.668-.667%202.611-.667a4.6%204.6%200%200%201%201.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255%201.255%200%200%201%201.212.925%201.255%201.255%200%200%201%201.212-.925h1.711c.284%200%20.545.094.755.252.613-.3%201.312-.45%202.075-.45%201.356%200%202.557.445%203.482%201.4q.47.48.763%201.064V4.701a1.255%201.255%200%200%201%201.255-1.255h1.86A1.255%201.255%200%200%201%2054.44%204.7v9.194h2.217c.19%200%20.37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42%202.42%200%200%201-.682-1.71c0-.665.267-1.253.735-1.7a2.45%202.45%200%200%201%201.722-.674%202.43%202.43%200%200%201%201.705.675q.318.302.504.683V4.7a1.255%201.255%200%200%201%201.255-1.255h1.744A1.255%201.255%200%200%201%2065.812%204.7v3.335a4.8%204.8%200%200%201%201.526-.246c.938%200%201.817.214%202.59.69a4.47%204.47%200%200%201%201.67%201.743v-.98a1.255%201.255%200%200%201%201.256-1.256h1.777c.233%200%20.451.064.639.174a3.4%203.4%200%200%201%201.567-.372c.346%200%20.861.02%201.285.232a1.25%201.25%200%200%201%20.689%201.004%204.7%204.7%200%200%201%20.853-.588c.795-.44%201.675-.647%202.61-.647%201.385%200%202.65.39%203.525%201.396.836.938%201.168%202.173%201.168%203.528q-.001.515-.056%201.051a1.255%201.255%200%200%201-.947%201.09l.408.952a1.255%201.255%200%200%201-.477%201.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06%200-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8%205.8%200%200%201-.548-2.512q0-.429.053-.843a1.3%201.3%200%200%201-.333-.086l-.166-.004c-.223%200-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255%201.255%200%200%201-1.256%201.256h-1.777a1.255%201.255%200%200%201-1.256-1.256V15.69l-.032.057a4.8%204.8%200%200%201-1.86%201.833%205.04%205.04%200%200%201-2.484.634%204.5%204.5%200%200%201-1.935-.424%201.25%201.25%200%200%201-.764.258h-1.71a1.255%201.255%200%200%201-1.256-1.255V7.687a2.4%202.4%200%200%201-.428.625c.253.23.412.561.412.93v7.553a1.255%201.255%200%200%201-1.256%201.255h-1.843a1.25%201.25%200%200%201-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255%201.255%200%200%201-1.256-1.255v-1.251l-.061.117a4.7%204.7%200%200%201-1.782%201.884%204.77%204.77%200%200%201-2.485.67%205.6%205.6%200%200%201-1.485-.188l.009%202.764a1.255%201.255%200%200%201-1.255%201.259h-1.729a1.255%201.255%200%200%201-1.255-1.255v-3.537a1.255%201.255%200%200%201-1.167.793h-1.679a1.25%201.25%200%200%201-.77-.263%204.5%204.5%200%200%201-1.945.429c-.885%200-1.724-.21-2.495-.632l-.017-.01a5%205%200%200%201-1.081-.836%201.255%201.255%200%200%201-1.254%201.312h-1.81a1.255%201.255%200%200%201-1.228-.99l-.782-3.625-2.044%203.939a1.25%201.25%200%200%201-1.115.676h-.098a1.25%201.25%200%200%201-1.116-.68l-2.061-3.994zM35.92%2016.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033%201.332h1.678V9.242h-1.694l-.033%201.267q-.133-.329-.526-.658l-.032-.028a3.2%203.2%200%200%200-.668-.428l-.27-.12a3.3%203.3%200%200%200-1.235-.23q-1.136-.001-1.974.493a3.36%203.36%200%200%200-1.3%201.382q-.445.89-.444%202.074%200%201.2.51%202.107a3.8%203.8%200%200%200%201.382%201.381%203.9%203.9%200%200%200%201.893.477q.795%200%201.455-.33zm-2.789-5.38q-.576.675-.575%201.762%200%201.102.559%201.794.576.675%201.645.675a2.25%202.25%200%200%200%20.934-.19%202.2%202.2%200%200%200%20.468-.29l.178-.161a2.2%202.2%200%200%200%20.397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2%202.2%200%200%200-.633-.709l-.13-.086-.047-.028a2.1%202.1%200%200%200-1.073-.285q-1.052%200-1.629.692zm2.316%202.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96%200%200%200-.353-.389.85.85%200%200%200-.464-.127c-.4%200-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945%200%20.506.122.801.27.99.097.11.266.224.68.224.303%200%20.504-.09.687-.269zm7.545%201.705a2.6%202.6%200%200%200%20.331.423q.319.33.755.548l.173.074q.65.255%201.49.255%201.02%200%201.844-.493a3.45%203.45%200%200%200%201.316-1.4q.493-.904.493-2.089%200-1.909-.988-2.913-.988-1.02-2.584-1.02-.898%200-1.575.347a3%203%200%200%200-.415.262l-.199.166a3.4%203.4%200%200%200-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296%201.119.297%201.07%200%201.645-.675.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.435%200-.835.16a2%202%200%200%200-.284.136%202%202%200%200%200-.363.254%202.2%202.2%200%200%200-.46.569l-.082.162a2.6%202.6%200%200%200-.213%201.072v.115q0%20.707.296%201.267l.135.211zm.964-.818a1.1%201.1%200%200%200%20.367.385.94.94%200%200%200%20.476.118c.423%200%20.59-.117.687-.23.159-.194.28-.478.28-.95%200-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1%201%200%200%200-.503.135l-.012.007a.86.86%200%200%200-.335.343c-.073.133-.132.324-.132.614v.115a1.4%201.4%200%200%200%20.14.66zm15.7-6.222q.347-.346.346-.856a1.05%201.05%200%200%200-.345-.79%201.18%201.18%200%200%200-.84-.329q-.51%200-.855.33a1.05%201.05%200%200%200-.346.79q0%20.51.346.855.345.346.856.346.51%200%20.839-.346zm4.337%209.314.033-1.332q.191.403.59.747l.098.081a4%204%200%200%200%20.316.224l.223.122a3.2%203.2%200%200%200%201.44.322%203.8%203.8%200%200%200%201.875-.477%203.5%203.5%200%200%200%201.382-1.366q.527-.89.526-2.09%200-1.184-.444-2.073a3.24%203.24%200%200%200-1.283-1.399q-.823-.51-1.942-.51a3.5%203.5%200%200%200-1.527.344l-.086.043-.165.09a3%203%200%200%200-.33.214q-.432.315-.656.707a2%202%200%200%200-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5%202.5%200%200%200%20.566.7q.117.098.245.18l.144.08a2.1%202.1%200%200%200%20.975.232q1.07%200%201.645-.675.576-.69.576-1.778%200-1.102-.576-1.777-.56-.691-1.645-.692a2.2%202.2%200%200%200-1.015.235q-.22.113-.415.282l-.15.142a2.1%202.1%200%200%200-.42.594q-.223.479-.223%201.1v.115q0%20.705.293%201.26zm2.616-.293c.157-.191.28-.479.28-.967%200-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87%200%200%200-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0%20.285.057.499.144.669a1.1%201.1%200%200%200%20.367.405c.137.082.28.123.455.123.423%200%20.59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493%200%20.642.099l.247-1.794q-.196-.099-.717-.099a2.3%202.3%200%200%200-.545.063%202%202%200%200%200-.411.148%202.2%202.2%200%200%200-.4.249%202.5%202.5%200%200%200-.485.499%202.7%202.7%200%200%200-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5%201.5%200%200%201%20.466-.636%202.5%202.5%200%200%201%20.399-.253%202%202%200%200%201%20.224-.099zm9.784%202.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46%203.46%200%200%200-1.4%201.382q-.493.906-.493%202.106%200%201.07.428%201.975.428.89%201.332%201.432.906.526%202.255.526.973%200%201.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954%200-1.497-.444a1.6%201.6%200%200%201-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1%201%200%200%200-.156-.176q-.46-.428-1.316-.428-.986%200-1.494.604-.379.45-.494%201.234zm-27.053%202.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z%22%2F%3E%3Cpath%20fill%3D%22%23fff%22%20d%3D%22m19.63%2011.151-.757-1.71-.345%201.71-1.12%205.644h-1.827L18.083%204.7h.197l3.325%206.533.988%202.19.988-2.19L26.839%204.7h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.93%205.644h-.098l-2.913-5.644zm14.836%205.81q-1.02%200-1.893-.478a3.8%203.8%200%200%201-1.381-1.382q-.51-.906-.51-2.106%200-1.185.444-2.074a3.36%203.36%200%200%201%201.3-1.382q.839-.494%201.974-.494a3.3%203.3%200%200%201%201.234.231%203.3%203.3%200%200%201%20.97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02%201.053a3.17%203.17%200%200%201-1.662.444zm.296-1.482q.938%200%201.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2%202.2%200%200%200-.807-.872%202.1%202.1%200%200%200-1.119-.313q-1.053%200-1.629.692-.575.675-.575%201.76%200%201.103.559%201.795.577.675%201.645.675zm6.521-6.237h1.711v1.4q.906-1.597%202.83-1.597%201.596%200%202.584%201.02.988%201.005.988%202.914%200%201.185-.493%202.09a3.46%203.46%200%200%201-1.316%201.399%203.5%203.5%200%200%201-1.844.493q-.954%200-1.662-.329a2.67%202.67%200%200%201-1.086-.97l.017%205.134h-1.728zm4.048%206.22q1.07%200%201.645-.674.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.592%200-1.12.296-.51.28-.822.823-.296.527-.296%201.234v.115q0%20.708.296%201.267.313.543.823.855.51.296%201.119.297z%22%2F%3E%3Cpath%20fill%3D%22%23e1e3e9%22%20d%3D%22M51.325%204.7h1.86v10.45h3.473v1.646h-5.333zm7.12%204.542h1.843v7.553h-1.843zm.905-1.415a1.16%201.16%200%200%201-.856-.346%201.17%201.17%200%200%201-.346-.856%201.05%201.05%200%200%201%20.346-.79q.346-.329.856-.329.494%200%20.839.33a1.05%201.05%200%200%201%20.345.79%201.16%201.16%200%200%201-.345.855q-.33.346-.84.346zm7.875%209.133a3.17%203.17%200%200%201-1.662-.444q-.723-.46-1.004-1.053l-.033%201.332h-1.71V4.701h1.743v4.657l-.082%201.283q.279-.658%201.086-1.119a3.5%203.5%200%200%201%201.778-.477q1.119%200%201.942.51a3.24%203.24%200%200%201%201.283%201.4q.445.888.444%202.072%200%201.201-.526%202.09a3.5%203.5%200%200%201-1.382%201.366%203.8%203.8%200%200%201-1.876.477zm-.296-1.481q1.069%200%201.645-.675.577-.69.577-1.778%200-1.102-.577-1.776-.56-.691-1.645-.692a2.12%202.12%200%200%200-1.58.659q-.642.641-.642%201.694v.115q0%20.71.296%201.267a2.4%202.4%200%200%200%20.807.872%202.1%202.1%200%200%200%201.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14%202.14%200%200%201%201.349-.46q.527%200%20.724.098l-.247%201.794q-.149-.099-.642-.099-.774%200-1.416.494-.626.493-.626%201.58v3.883h-1.777V9.242zm9.534%207.718q-1.35%200-2.255-.526-.904-.543-1.332-1.432a4.6%204.6%200%200%201-.428-1.975q0-1.2.493-2.106a3.46%203.46%200%200%201%201.4-1.382q.889-.495%202.007-.494%201.744%200%202.584.97.855.956.856%202.7%200%20.444-.05.92h-5.43q.18%201.005.708%201.45.542.443%201.497.443.79%200%201.3-.131a4%204%200%200%200%20.938-.362l.542%201.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728%200-1.991%201.86z%22%2F%3E%3Cpath%20d%3D%22M5.074%2015.948a.484.657%200%200%200-.486.659v1.84a.484.657%200%200%200%20.486.659h4.101a.484.657%200%200%200%20.486-.659v-1.84a.484.657%200%200%200-.486-.659zm3.56%201.16H5.617v.838h3.017z%22%20style%3D%22fill%3A%23fff%3Bfill-rule%3Aevenodd%3Bstroke-width%3A1.03600001%22%2F%3E%3Cg%20style%3D%22stroke-width%3A1.12603545%22%3E%3Cpath%20d%3D%22M-9.408-1.416c-3.833-.025-7.056%202.912-7.08%206.615-.02%203.08%201.653%204.832%203.107%206.268.903.892%201.721%201.74%202.32%202.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87%201.87%200%200%200-.362%201.121l-.011%201.877c-.003.402.104.787.347%201.125.244.338.688.653%201.23.656l4.142.028c.542.003.99-.306%201.238-.641a1.87%201.87%200%200%200%20.363-1.121l.012-1.875a1.87%201.87%200%200%200-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145%201.425-1.983%202.348-2.87%201.473-1.414%203.18-3.149%203.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006%201.1v.002c3.274.02%205.92%202.532%205.9%205.6-.017%202.706-1.39%204.026-2.863%205.44-1.034.994-2.118%202.033-2.814%203.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34%200%200%201-.226.084.34.34%200%200%201-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067%202.7-5.545%205.975-5.523m-.02%202.826c-1.62-.01-2.944%201.315-2.955%202.96-.01%201.646%201.295%202.988%202.916%202.999h.002c1.621.01%202.943-1.316%202.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005%201.1c1.017.006%201.829.83%201.822%201.89s-.83%201.874-1.848%201.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874%201.848-1.868m-2.155%2011.857%204.14.025c.271.002.49.305.487.676l-.013%201.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668%22%20style%3D%22color%3A%23000%3Bfont-style%3Anormal%3Bfont-variant%3Anormal%3Bfont-weight%3A400%3Bfont-stretch%3Anormal%3Bfont-size%3Amedium%3Bline-height%3Anormal%3Bfont-family%3Asans-serif%3Bfont-variant-ligatures%3Anormal%3Bfont-variant-position%3Anormal%3Bfont-variant-caps%3Anormal%3Bfont-variant-numeric%3Anormal%3Bfont-variant-alternates%3Anormal%3Bfont-feature-settings%3Anormal%3Btext-indent%3A0%3Btext-align%3Astart%3Btext-decoration%3Anone%3Btext-decoration-line%3Anone%3Btext-decoration-style%3Asolid%3Btext-decoration-color%3A%23000%3Bletter-spacing%3Anormal%3Bword-spacing%3Anormal%3Btext-transform%3Anone%3Bwriting-mode%3Alr-tb%3Bdirection%3Altr%3Btext-orientation%3Amixed%3Bdominant-baseline%3Aauto%3Bbaseline-shift%3Abaseline%3Btext-anchor%3Astart%3Bwhite-space%3Anormal%3Bshape-padding%3A0%3Bclip-rule%3Aevenodd%3Bdisplay%3Ainline%3Boverflow%3Avisible%3Bvisibility%3Avisible%3Bopacity%3A1%3Bisolation%3Aauto%3Bmix-blend-mode%3Anormal%3Bcolor-interpolation%3AsRGB%3Bcolor-interpolation-filters%3AlinearRGB%3Bsolid-color%3A%23000%3Bsolid-opacity%3A1%3Bvector-effect%3Anone%3Bfill%3A%23000%3Bfill-opacity%3A.4%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-linecap%3Abutt%3Bstroke-linejoin%3Amiter%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-dashoffset%3A0%3Bstroke-opacity%3A1%3Bcolor-rendering%3Aauto%3Bimage-rendering%3Aauto%3Bshape-rendering%3Aauto%3Btext-rendering%3Aauto%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-9.415-.316C-12.69-.338-15.37%202.14-15.39%205.207c-.017%202.716%201.326%204.041%202.78%205.477%201.013%201%202.081%202.055%202.78%203.67l.092.076a.34.34%200%200%200%20.225.086.34.34%200%200%200%20.227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6%201.78-2.64%202.814-3.634%201.473-1.414%202.847-2.733%202.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057%208.784c1.621.011%202.944-1.315%202.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945%201.315-2.955%202.96s1.295%202.989%202.916%203%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23e1e3e9%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-11.594%2015.465c-.27-.002-.492.297-.494.668l-.012%201.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23fff%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){a.maplibregl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2288%22%20height%3D%2223%22%20fill%3D%22none%22%3E%3Cpath%20fill%3D%22%23000%22%20fill-opacity%3D%22.4%22%20fill-rule%3D%22evenodd%22%20d%3D%22M17.408%2016.796h-1.827l2.501-12.095h.198l3.324%206.533.988%202.19.988-2.19%203.258-6.533h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.929%205.644h-.098l-2.914-5.644-.757-1.71-.345%201.71zm1.958-3.42-.726%203.663a1.255%201.255%200%200%201-1.232%201.011h-1.827a1.255%201.255%200%200%201-1.229-1.509l2.501-12.095a1.255%201.255%200%200%201%201.23-1.001h.197a1.25%201.25%200%200%201%201.12.685l3.19%206.273%203.125-6.263a1.25%201.25%200%200%201%201.123-.695h.181a1.255%201.255%200%200%201%201.227.991l1.443%206.71a5%205%200%200%201%20.314-.787l.009-.016a4.6%204.6%200%200%201%201.777-1.887c.782-.46%201.668-.667%202.611-.667a4.6%204.6%200%200%201%201.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255%201.255%200%200%201%201.212.925%201.255%201.255%200%200%201%201.212-.925h1.711c.284%200%20.545.094.755.252.613-.3%201.312-.45%202.075-.45%201.356%200%202.557.445%203.482%201.4q.47.48.763%201.064V4.701a1.255%201.255%200%200%201%201.255-1.255h1.86A1.255%201.255%200%200%201%2054.44%204.7v9.194h2.217c.19%200%20.37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42%202.42%200%200%201-.682-1.71c0-.665.267-1.253.735-1.7a2.45%202.45%200%200%201%201.722-.674%202.43%202.43%200%200%201%201.705.675q.318.302.504.683V4.7a1.255%201.255%200%200%201%201.255-1.255h1.744A1.255%201.255%200%200%201%2065.812%204.7v3.335a4.8%204.8%200%200%201%201.526-.246c.938%200%201.817.214%202.59.69a4.47%204.47%200%200%201%201.67%201.743v-.98a1.255%201.255%200%200%201%201.256-1.256h1.777c.233%200%20.451.064.639.174a3.4%203.4%200%200%201%201.567-.372c.346%200%20.861.02%201.285.232a1.25%201.25%200%200%201%20.689%201.004%204.7%204.7%200%200%201%20.853-.588c.795-.44%201.675-.647%202.61-.647%201.385%200%202.65.39%203.525%201.396.836.938%201.168%202.173%201.168%203.528q-.001.515-.056%201.051a1.255%201.255%200%200%201-.947%201.09l.408.952a1.255%201.255%200%200%201-.477%201.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06%200-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8%205.8%200%200%201-.548-2.512q0-.429.053-.843a1.3%201.3%200%200%201-.333-.086l-.166-.004c-.223%200-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255%201.255%200%200%201-1.256%201.256h-1.777a1.255%201.255%200%200%201-1.256-1.256V15.69l-.032.057a4.8%204.8%200%200%201-1.86%201.833%205.04%205.04%200%200%201-2.484.634%204.5%204.5%200%200%201-1.935-.424%201.25%201.25%200%200%201-.764.258h-1.71a1.255%201.255%200%200%201-1.256-1.255V7.687a2.4%202.4%200%200%201-.428.625c.253.23.412.561.412.93v7.553a1.255%201.255%200%200%201-1.256%201.255h-1.843a1.25%201.25%200%200%201-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255%201.255%200%200%201-1.256-1.255v-1.251l-.061.117a4.7%204.7%200%200%201-1.782%201.884%204.77%204.77%200%200%201-2.485.67%205.6%205.6%200%200%201-1.485-.188l.009%202.764a1.255%201.255%200%200%201-1.255%201.259h-1.729a1.255%201.255%200%200%201-1.255-1.255v-3.537a1.255%201.255%200%200%201-1.167.793h-1.679a1.25%201.25%200%200%201-.77-.263%204.5%204.5%200%200%201-1.945.429c-.885%200-1.724-.21-2.495-.632l-.017-.01a5%205%200%200%201-1.081-.836%201.255%201.255%200%200%201-1.254%201.312h-1.81a1.255%201.255%200%200%201-1.228-.99l-.782-3.625-2.044%203.939a1.25%201.25%200%200%201-1.115.676h-.098a1.25%201.25%200%200%201-1.116-.68l-2.061-3.994zM35.92%2016.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033%201.332h1.678V9.242h-1.694l-.033%201.267q-.133-.329-.526-.658l-.032-.028a3.2%203.2%200%200%200-.668-.428l-.27-.12a3.3%203.3%200%200%200-1.235-.23q-1.136-.001-1.974.493a3.36%203.36%200%200%200-1.3%201.382q-.445.89-.444%202.074%200%201.2.51%202.107a3.8%203.8%200%200%200%201.382%201.381%203.9%203.9%200%200%200%201.893.477q.795%200%201.455-.33zm-2.789-5.38q-.576.675-.575%201.762%200%201.102.559%201.794.576.675%201.645.675a2.25%202.25%200%200%200%20.934-.19%202.2%202.2%200%200%200%20.468-.29l.178-.161a2.2%202.2%200%200%200%20.397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2%202.2%200%200%200-.633-.709l-.13-.086-.047-.028a2.1%202.1%200%200%200-1.073-.285q-1.052%200-1.629.692zm2.316%202.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96%200%200%200-.353-.389.85.85%200%200%200-.464-.127c-.4%200-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945%200%20.506.122.801.27.99.097.11.266.224.68.224.303%200%20.504-.09.687-.269zm7.545%201.705a2.6%202.6%200%200%200%20.331.423q.319.33.755.548l.173.074q.65.255%201.49.255%201.02%200%201.844-.493a3.45%203.45%200%200%200%201.316-1.4q.493-.904.493-2.089%200-1.909-.988-2.913-.988-1.02-2.584-1.02-.898%200-1.575.347a3%203%200%200%200-.415.262l-.199.166a3.4%203.4%200%200%200-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296%201.119.297%201.07%200%201.645-.675.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.435%200-.835.16a2%202%200%200%200-.284.136%202%202%200%200%200-.363.254%202.2%202.2%200%200%200-.46.569l-.082.162a2.6%202.6%200%200%200-.213%201.072v.115q0%20.707.296%201.267l.135.211zm.964-.818a1.1%201.1%200%200%200%20.367.385.94.94%200%200%200%20.476.118c.423%200%20.59-.117.687-.23.159-.194.28-.478.28-.95%200-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1%201%200%200%200-.503.135l-.012.007a.86.86%200%200%200-.335.343c-.073.133-.132.324-.132.614v.115a1.4%201.4%200%200%200%20.14.66zm15.7-6.222q.347-.346.346-.856a1.05%201.05%200%200%200-.345-.79%201.18%201.18%200%200%200-.84-.329q-.51%200-.855.33a1.05%201.05%200%200%200-.346.79q0%20.51.346.855.345.346.856.346.51%200%20.839-.346zm4.337%209.314.033-1.332q.191.403.59.747l.098.081a4%204%200%200%200%20.316.224l.223.122a3.2%203.2%200%200%200%201.44.322%203.8%203.8%200%200%200%201.875-.477%203.5%203.5%200%200%200%201.382-1.366q.527-.89.526-2.09%200-1.184-.444-2.073a3.24%203.24%200%200%200-1.283-1.399q-.823-.51-1.942-.51a3.5%203.5%200%200%200-1.527.344l-.086.043-.165.09a3%203%200%200%200-.33.214q-.432.315-.656.707a2%202%200%200%200-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5%202.5%200%200%200%20.566.7q.117.098.245.18l.144.08a2.1%202.1%200%200%200%20.975.232q1.07%200%201.645-.675.576-.69.576-1.778%200-1.102-.576-1.777-.56-.691-1.645-.692a2.2%202.2%200%200%200-1.015.235q-.22.113-.415.282l-.15.142a2.1%202.1%200%200%200-.42.594q-.223.479-.223%201.1v.115q0%20.705.293%201.26zm2.616-.293c.157-.191.28-.479.28-.967%200-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87%200%200%200-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0%20.285.057.499.144.669a1.1%201.1%200%200%200%20.367.405c.137.082.28.123.455.123.423%200%20.59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493%200%20.642.099l.247-1.794q-.196-.099-.717-.099a2.3%202.3%200%200%200-.545.063%202%202%200%200%200-.411.148%202.2%202.2%200%200%200-.4.249%202.5%202.5%200%200%200-.485.499%202.7%202.7%200%200%200-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5%201.5%200%200%201%20.466-.636%202.5%202.5%200%200%201%20.399-.253%202%202%200%200%201%20.224-.099zm9.784%202.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46%203.46%200%200%200-1.4%201.382q-.493.906-.493%202.106%200%201.07.428%201.975.428.89%201.332%201.432.906.526%202.255.526.973%200%201.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954%200-1.497-.444a1.6%201.6%200%200%201-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1%201%200%200%200-.156-.176q-.46-.428-1.316-.428-.986%200-1.494.604-.379.45-.494%201.234zm-27.053%202.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z%22%2F%3E%3Cpath%20fill%3D%22%23fff%22%20d%3D%22m19.63%2011.151-.757-1.71-.345%201.71-1.12%205.644h-1.827L18.083%204.7h.197l3.325%206.533.988%202.19.988-2.19L26.839%204.7h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.93%205.644h-.098l-2.913-5.644zm14.836%205.81q-1.02%200-1.893-.478a3.8%203.8%200%200%201-1.381-1.382q-.51-.906-.51-2.106%200-1.185.444-2.074a3.36%203.36%200%200%201%201.3-1.382q.839-.494%201.974-.494a3.3%203.3%200%200%201%201.234.231%203.3%203.3%200%200%201%20.97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02%201.053a3.17%203.17%200%200%201-1.662.444zm.296-1.482q.938%200%201.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2%202.2%200%200%200-.807-.872%202.1%202.1%200%200%200-1.119-.313q-1.053%200-1.629.692-.575.675-.575%201.76%200%201.103.559%201.795.577.675%201.645.675zm6.521-6.237h1.711v1.4q.906-1.597%202.83-1.597%201.596%200%202.584%201.02.988%201.005.988%202.914%200%201.185-.493%202.09a3.46%203.46%200%200%201-1.316%201.399%203.5%203.5%200%200%201-1.844.493q-.954%200-1.662-.329a2.67%202.67%200%200%201-1.086-.97l.017%205.134h-1.728zm4.048%206.22q1.07%200%201.645-.674.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.592%200-1.12.296-.51.28-.822.823-.296.527-.296%201.234v.115q0%20.708.296%201.267.313.543.823.855.51.296%201.119.297z%22%2F%3E%3Cpath%20fill%3D%22%23e1e3e9%22%20d%3D%22M51.325%204.7h1.86v10.45h3.473v1.646h-5.333zm7.12%204.542h1.843v7.553h-1.843zm.905-1.415a1.16%201.16%200%200%201-.856-.346%201.17%201.17%200%200%201-.346-.856%201.05%201.05%200%200%201%20.346-.79q.346-.329.856-.329.494%200%20.839.33a1.05%201.05%200%200%201%20.345.79%201.16%201.16%200%200%201-.345.855q-.33.346-.84.346zm7.875%209.133a3.17%203.17%200%200%201-1.662-.444q-.723-.46-1.004-1.053l-.033%201.332h-1.71V4.701h1.743v4.657l-.082%201.283q.279-.658%201.086-1.119a3.5%203.5%200%200%201%201.778-.477q1.119%200%201.942.51a3.24%203.24%200%200%201%201.283%201.4q.445.888.444%202.072%200%201.201-.526%202.09a3.5%203.5%200%200%201-1.382%201.366%203.8%203.8%200%200%201-1.876.477zm-.296-1.481q1.069%200%201.645-.675.577-.69.577-1.778%200-1.102-.577-1.776-.56-.691-1.645-.692a2.12%202.12%200%200%200-1.58.659q-.642.641-.642%201.694v.115q0%20.71.296%201.267a2.4%202.4%200%200%200%20.807.872%202.1%202.1%200%200%200%201.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14%202.14%200%200%201%201.349-.46q.527%200%20.724.098l-.247%201.794q-.149-.099-.642-.099-.774%200-1.416.494-.626.493-.626%201.58v3.883h-1.777V9.242zm9.534%207.718q-1.35%200-2.255-.526-.904-.543-1.332-1.432a4.6%204.6%200%200%201-.428-1.975q0-1.2.493-2.106a3.46%203.46%200%200%201%201.4-1.382q.889-.495%202.007-.494%201.744%200%202.584.97.855.956.856%202.7%200%20.444-.05.92h-5.43q.18%201.005.708%201.45.542.443%201.497.443.79%200%201.3-.131a4%204%200%200%200%20.938-.362l.542%201.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728%200-1.991%201.86z%22%2F%3E%3Cpath%20d%3D%22M5.074%2015.948a.484.657%200%200%200-.486.659v1.84a.484.657%200%200%200%20.486.659h4.101a.484.657%200%200%200%20.486-.659v-1.84a.484.657%200%200%200-.486-.659zm3.56%201.16H5.617v.838h3.017z%22%20style%3D%22fill%3A%23fff%3Bfill-rule%3Aevenodd%3Bstroke-width%3A1.03600001%22%2F%3E%3Cg%20style%3D%22stroke-width%3A1.12603545%22%3E%3Cpath%20d%3D%22M-9.408-1.416c-3.833-.025-7.056%202.912-7.08%206.615-.02%203.08%201.653%204.832%203.107%206.268.903.892%201.721%201.74%202.32%202.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87%201.87%200%200%200-.362%201.121l-.011%201.877c-.003.402.104.787.347%201.125.244.338.688.653%201.23.656l4.142.028c.542.003.99-.306%201.238-.641a1.87%201.87%200%200%200%20.363-1.121l.012-1.875a1.87%201.87%200%200%200-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145%201.425-1.983%202.348-2.87%201.473-1.414%203.18-3.149%203.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006%201.1v.002c3.274.02%205.92%202.532%205.9%205.6-.017%202.706-1.39%204.026-2.863%205.44-1.034.994-2.118%202.033-2.814%203.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34%200%200%201-.226.084.34.34%200%200%201-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067%202.7-5.545%205.975-5.523m-.02%202.826c-1.62-.01-2.944%201.315-2.955%202.96-.01%201.646%201.295%202.988%202.916%202.999h.002c1.621.01%202.943-1.316%202.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005%201.1c1.017.006%201.829.83%201.822%201.89s-.83%201.874-1.848%201.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874%201.848-1.868m-2.155%2011.857%204.14.025c.271.002.49.305.487.676l-.013%201.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668%22%20style%3D%22color%3A%23000%3Bfont-style%3Anormal%3Bfont-variant%3Anormal%3Bfont-weight%3A400%3Bfont-stretch%3Anormal%3Bfont-size%3Amedium%3Bline-height%3Anormal%3Bfont-family%3Asans-serif%3Bfont-variant-ligatures%3Anormal%3Bfont-variant-position%3Anormal%3Bfont-variant-caps%3Anormal%3Bfont-variant-numeric%3Anormal%3Bfont-variant-alternates%3Anormal%3Bfont-feature-settings%3Anormal%3Btext-indent%3A0%3Btext-align%3Astart%3Btext-decoration%3Anone%3Btext-decoration-line%3Anone%3Btext-decoration-style%3Asolid%3Btext-decoration-color%3A%23000%3Bletter-spacing%3Anormal%3Bword-spacing%3Anormal%3Btext-transform%3Anone%3Bwriting-mode%3Alr-tb%3Bdirection%3Altr%3Btext-orientation%3Amixed%3Bdominant-baseline%3Aauto%3Bbaseline-shift%3Abaseline%3Btext-anchor%3Astart%3Bwhite-space%3Anormal%3Bshape-padding%3A0%3Bclip-rule%3Aevenodd%3Bdisplay%3Ainline%3Boverflow%3Avisible%3Bvisibility%3Avisible%3Bopacity%3A1%3Bisolation%3Aauto%3Bmix-blend-mode%3Anormal%3Bcolor-interpolation%3AsRGB%3Bcolor-interpolation-filters%3AlinearRGB%3Bsolid-color%3A%23000%3Bsolid-opacity%3A1%3Bvector-effect%3Anone%3Bfill%3A%23000%3Bfill-opacity%3A.4%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-linecap%3Abutt%3Bstroke-linejoin%3Amiter%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-dashoffset%3A0%3Bstroke-opacity%3A1%3Bcolor-rendering%3Aauto%3Bimage-rendering%3Aauto%3Bshape-rendering%3Aauto%3Btext-rendering%3Aauto%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-9.415-.316C-12.69-.338-15.37%202.14-15.39%205.207c-.017%202.716%201.326%204.041%202.78%205.477%201.013%201%202.081%202.055%202.78%203.67l.092.076a.34.34%200%200%200%20.225.086.34.34%200%200%200%20.227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6%201.78-2.64%202.814-3.634%201.473-1.414%202.847-2.733%202.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057%208.784c1.621.011%202.944-1.315%202.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945%201.315-2.955%202.96s1.295%202.989%202.916%203%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23e1e3e9%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-11.594%2015.465c-.27-.002-.492.297-.494.668l-.012%201.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23fff%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl.maplibregl-ctrl-attrib{padding:0 5px;background-color:hsla(0,0%,100%,.5);margin:0}@media screen{.maplibregl-ctrl-attrib.maplibregl-compact{min-height:20px;padding:2px 24px 2px 0;margin:10px;position:relative;background-color:#fff;color:#000;border-radius:12px;box-sizing:content-box}.maplibregl-ctrl-attrib.maplibregl-compact-show{padding:2px 28px 2px 8px;visibility:visible}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact-show,.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact-show{padding:2px 8px 2px 28px;border-radius:12px}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-inner{display:none}.maplibregl-ctrl-attrib-button{display:none;cursor:pointer;position:absolute;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20fill-rule%3D%22evenodd%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M4%2010a6%206%200%201%200%2012%200%206%206%200%201%200-12%200m5-3a1%201%200%201%200%202%200%201%201%200%201%200-2%200m0%203a1%201%200%201%201%202%200v3a1%201%200%201%201-2%200%22%2F%3E%3C%2Fsvg%3E");background-color:hsla(0,0%,100%,.5);width:24px;height:24px;box-sizing:border-box;border-radius:12px;outline:none;top:0;right:0;border:0}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;list-style:none}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button::-webkit-details-marker{display:none}.maplibregl-ctrl-bottom-left .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-top-left .maplibregl-ctrl-attrib-button{left:0}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-inner{display:block}.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-button{background-color:rgba(0,0,0,.05)}.maplibregl-ctrl-bottom-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;right:0}.maplibregl-ctrl-top-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{top:0;right:0}.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{top:0;left:0}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;left:0}}@media screen and (forced-colors:active){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22%23fff%22%20fill-rule%3D%22evenodd%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M4%2010a6%206%200%201%200%2012%200%206%206%200%201%200-12%200m5-3a1%201%200%201%200%202%200%201%201%200%201%200-2%200m0%203a1%201%200%201%201%202%200v3a1%201%200%201%201-2%200%22%2F%3E%3C%2Fsvg%3E")}}@media screen and (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20fill-rule%3D%22evenodd%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M4%2010a6%206%200%201%200%2012%200%206%206%200%201%200-12%200m5-3a1%201%200%201%200%202%200%201%201%200%201%200-2%200m0%203a1%201%200%201%201%202%200v3a1%201%200%201%201-2%200%22%2F%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl-attrib a{color:rgba(0,0,0,.75);text-decoration:none}.maplibregl-ctrl-attrib a:hover{color:inherit;text-decoration:underline}.maplibregl-attrib-empty{display:none}.maplibregl-ctrl-scale{background-color:hsla(0,0%,100%,.75);font-size:10px;white-space:nowrap;border-color:#333;border-style:none solid solid;border-width:medium 2px 2px;padding:0 5px;color:#333;box-sizing:border-box}.maplibregl-popup{position:absolute;top:0;left:0;display:flex;will-change:transform;pointer-events:none}.maplibregl-popup-anchor-top,.maplibregl-popup-anchor-top-left,.maplibregl-popup-anchor-top-right{flex-direction:column}.maplibregl-popup-anchor-bottom,.maplibregl-popup-anchor-bottom-left,.maplibregl-popup-anchor-bottom-right{flex-direction:column-reverse}.maplibregl-popup-anchor-left{flex-direction:row}.maplibregl-popup-anchor-right{flex-direction:row-reverse}.maplibregl-popup-tip{width:0;height:0;border:10px solid transparent;z-index:1}.maplibregl-popup-anchor-top .maplibregl-popup-tip{align-self:center;border-top:none;border-bottom-color:#fff}.maplibregl-popup-anchor-top-left .maplibregl-popup-tip{align-self:flex-start;border-top:none;border-left:none;border-bottom-color:#fff}.maplibregl-popup-anchor-top-right .maplibregl-popup-tip{align-self:flex-end;border-top:none;border-right:none;border-bottom-color:#fff}.maplibregl-popup-anchor-bottom .maplibregl-popup-tip{align-self:center;border-bottom:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip{align-self:flex-start;border-bottom:none;border-left:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip{align-self:flex-end;border-bottom:none;border-right:none;border-top-color:#fff}.maplibregl-popup-anchor-left .maplibregl-popup-tip{align-self:center;border-left:none;border-right-color:#fff}.maplibregl-popup-anchor-right .maplibregl-popup-tip{align-self:center;border-right:none;border-left-color:#fff}[dir=rtl] .maplibregl-popup-anchor-left{flex-direction:row-reverse}[dir=rtl] .maplibregl-popup-anchor-right{flex-direction:row}[dir=rtl] .maplibregl-popup-anchor-top-left .maplibregl-popup-tip{align-self:flex-end}[dir=rtl] .maplibregl-popup-anchor-top-right .maplibregl-popup-tip{align-self:flex-start}[dir=rtl] .maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip{align-self:flex-end}[dir=rtl] .maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip{align-self:flex-start}.maplibregl-popup-close-button{position:absolute;right:0;top:0;border:0;border-radius:0 3px 0 0;cursor:pointer;background-color:transparent}.maplibregl-popup-close-button:hover{background-color:rgba(0,0,0,.05)}.maplibregl-popup-content{position:relative;background:#fff;border-radius:3px;box-shadow:0 1px 2px rgba(0,0,0,.1);padding:15px 10px;pointer-events:auto}.maplibregl-popup-anchor-top-left .maplibregl-popup-content{border-top-left-radius:0}.maplibregl-popup-anchor-top-right .maplibregl-popup-content{border-top-right-radius:0}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-content{border-bottom-left-radius:0}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-content{border-bottom-right-radius:0}.maplibregl-popup-track-pointer{display:none}.maplibregl-popup-track-pointer *{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-map:hover .maplibregl-popup-track-pointer{display:flex}.maplibregl-map:active .maplibregl-popup-track-pointer{display:none}.maplibregl-marker{position:absolute;top:0;left:0;will-change:transform;transition:opacity .2s}.maplibregl-marker-draggable{cursor:grab}.maplibregl-user-location-dot,.maplibregl-user-location-dot:before{background-color:#1da1f2;width:15px;height:15px;border-radius:50%}.maplibregl-user-location-dot:before{content:"";position:absolute;animation:maplibregl-user-location-dot-pulse 2s infinite}.maplibregl-user-location-dot:after{border-radius:50%;border:2px solid #fff;content:"";height:19px;left:-2px;position:absolute;top:-2px;width:19px;box-sizing:border-box;box-shadow:0 0 3px rgba(0,0,0,.35)}@media (prefers-reduced-motion:reduce){.maplibregl-user-location-dot:before{animation:none}}@keyframes maplibregl-user-location-dot-pulse{0%{transform:scale(1);opacity:1}70%{transform:scale(3);opacity:0}to{transform:scale(1);opacity:0}}.maplibregl-user-location-dot-stale{background-color:#aaa}.maplibregl-user-location-dot-stale:after{display:none}.maplibregl-user-location-accuracy-circle{background-color:#1da1f233;width:1px;height:1px;border-radius:100%}.maplibregl-crosshair,.maplibregl-crosshair .maplibregl-interactive,.maplibregl-crosshair .maplibregl-interactive:active{cursor:crosshair}.maplibregl-boxzoom{position:absolute;top:0;left:0;width:0;height:0;background:#fff;border:2px dotted #202020;opacity:.5}.maplibregl-cooperative-gesture-screen{background:rgba(0,0,0,.4);position:absolute;inset:0;display:flex;justify-content:center;align-items:center;color:#fff;padding:1rem;font-size:1.4em;line-height:1.2;opacity:0;pointer-events:none;transition:opacity 1s ease 1s;z-index:99999}.maplibregl-cooperative-gesture-screen.maplibregl-show{opacity:1;transition:opacity .05s}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:none}@media (hover:none),(pointer:coarse){.maplibregl-cooperative-gesture-screen .maplibregl-desktop-message{display:none}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:block}}.maplibregl-pseudo-fullscreen{position:fixed!important;width:100%!important;height:100%!important;top:0!important;left:0!important;z-index:99999}',document.head.appendChild(e)}})()});var xi=W(wa=>{"use strict";var VV=zg(),_0e=dD(),w0e=RV(),qBr=fA().addStyleRule,T0e=nn(),ywt=Ka(),xwt=fw(),bwt=T0e.extendFlat,GV=T0e.extendDeepAll;wa.modules={};wa.allCategories={};wa.allTypes=[];wa.subplotsRegistry={};wa.componentsRegistry={};wa.layoutArrayContainers=[];wa.layoutArrayRegexes=[];wa.traceLayoutAttributes={};wa.localeRegistry={};wa.apiMethodRegistry={};wa.collectableSubplotTypes=null;wa.register=function(t){if(wa.collectableSubplotTypes=null,t)t&&!Array.isArray(t)&&(t=[t]);else throw new Error("No argument passed to Plotly.register.");for(var r=0;r{"use strict";var Mwt=Y3().timeFormat,I0e=un(),HV=zg(),Ty=(K3(),Pt(Z3)).mod,pw=(ta(),Pt(ra)),hd=pw.BADNUM,qh=pw.ONEDAY,dA=pw.ONEHOUR,wy=pw.ONEMIN,dw=pw.ONESEC,pA=pw.EPOCHJD,Og=xi(),k0e=Y3().utcFormat,Swt=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\d)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d(:?\d\d)?)?)?)?)?)?\s*$/m,Ewt=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\di?)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d(:?\d\d)?)?)?)?)?)?\s*$/m,C0e=new Date().getFullYear()-70;function Ng(e){return e&&Og.componentsRegistry.calendars&&typeof e=="string"&&e!=="gregorian"}kl.dateTick0=function(e,t){var r=kwt(e,!!t);if(t<2)return r;var i=kl.dateTime2ms(r,e);return i+=qh*(t-1),kl.ms2DateTime(i,0,e)};function kwt(e,t){return Ng(e)?t?Og.getComponentMethod("calendars","CANONICAL_SUNDAY")[e]:Og.getComponentMethod("calendars","CANONICAL_TICK")[e]:t?"2000-01-02":"2000-01-01"}kl.dfltRange=function(e){return Ng(e)?Og.getComponentMethod("calendars","DFLTRANGE")[e]:["2000-01-01","2001-01-01"]};kl.isJSDate=function(e){return typeof e=="object"&&e!==null&&typeof e.getTime=="function"};var wD,TD;kl.dateTime2ms=function(e,t){if(kl.isJSDate(e)){var r=e.getTimezoneOffset()*wy,i=(e.getUTCMinutes()-e.getMinutes())*wy+(e.getUTCSeconds()-e.getSeconds())*dw+(e.getUTCMilliseconds()-e.getMilliseconds());if(i){var n=3*wy;r=r-n/2+Ty(i-r+n/2,n)}return e=Number(e)-r,e>=wD&&e<=TD?e:hd}if(typeof e!="string"&&typeof e!="number")return hd;e=String(e);var a=Ng(t),o=e.charAt(0);a&&(o==="G"||o==="g")&&(e=e.slice(1),t="");var s=a&&t.slice(0,7)==="chinese",l=e.match(s?Ewt:Swt);if(!l)return hd;var u=l[1],c=l[3]||"1",f=Number(l[5]||1),h=Number(l[7]||0),p=Number(l[9]||0),d=Number(l[11]||0);if(a){if(u.length===2)return hd;u=Number(u);var v;try{var m=Og.getComponentMethod("calendars","getCal")(t);if(s){var g=c.charAt(c.length-1)==="i";c=parseInt(c,10),v=m.newDate(u,m.toMonthIndex(u,c,g),f)}else v=m.newDate(u,Number(c),f)}catch(_){return hd}return v?(v.toJD()-pA)*qh+h*dA+p*wy+d*dw:hd}u.length===2?u=(Number(u)+2e3-C0e)%100+C0e:u=Number(u),c-=1;var w=new Date(Date.UTC(2e3,c,f,h,p));return w.setUTCFullYear(u),w.getUTCMonth()!==c||w.getUTCDate()!==f?hd:w.getTime()+d*dw};wD=kl.MIN_MS=kl.dateTime2ms("-9999");TD=kl.MAX_MS=kl.dateTime2ms("9999-12-31 23:59:59.9999");kl.isDateTime=function(e,t){return kl.dateTime2ms(e,t)!==hd};function hw(e,t){return String(e+Math.pow(10,t)).slice(1)}var _D=90*qh,D0e=3*dA,F0e=5*wy;kl.ms2DateTime=function(e,t,r){if(typeof e!="number"||!(e>=wD&&e<=TD))return hd;t||(t=0);var i=Math.floor(Ty(e+.05,1)*10),n=Math.round(e-i/10),a,o,s,l,u,c;if(Ng(r)){var f=Math.floor(n/qh)+pA,h=Math.floor(Ty(e,qh));try{a=Og.getComponentMethod("calendars","getCal")(r).fromJD(f).formatDate("yyyy-mm-dd")}catch(p){a=k0e("G%Y-%m-%d")(new Date(n))}if(a.charAt(0)==="-")for(;a.length<11;)a="-0"+a.slice(1);else for(;a.length<10;)a="0"+a;o=t<_D?Math.floor(h/dA):0,s=t<_D?Math.floor(h%dA/wy):0,l=t=wD+qh&&e<=TD-qh))return hd;var t=Math.floor(Ty(e+.05,1)*10),r=new Date(Math.round(e-t/10)),i=Mwt("%Y-%m-%d")(r),n=r.getHours(),a=r.getMinutes(),o=r.getSeconds(),s=r.getUTCMilliseconds()*10+t;return R0e(i,n,a,o,s)};function R0e(e,t,r,i,n){if((t||r||i||n)&&(e+=" "+hw(t,2)+":"+hw(r,2),(i||n)&&(e+=":"+hw(i,2),n))){for(var a=4;n%10===0;)a-=1,n/=10;e+="."+hw(n,a)}return e}kl.cleanDate=function(e,t,r){if(e===hd)return t;if(kl.isJSDate(e)||typeof e=="number"&&isFinite(e)){if(Ng(r))return HV.error("JS Dates and milliseconds are incompatible with world calendars",e),t;if(e=kl.ms2DateTimeLocal(+e),!e&&t!==void 0)return t}else if(!kl.isDateTime(e,r))return HV.error("unrecognized date",e),t;return e};var Cwt=/%\d?f/g,Dwt=/%h/g,Fwt={1:"1",2:"1",3:"2",4:"2"};function L0e(e,t,r,i){e=e.replace(Cwt,function(a){var o=Math.min(+a.charAt(1)||6,6),s=(t/1e3%1+2).toFixed(o).slice(2).replace(/0+$/,"")||"0";return s});var n=new Date(Math.floor(t+.05));if(e=e.replace(Dwt,function(){return Fwt[r("%q")(n)]}),Ng(i))try{e=Og.getComponentMethod("calendars","worldCalFmt")(e,t,i)}catch(a){return"Invalid"}return r(e)(n)}var Lwt=[59,59.9,59.99,59.999,59.9999];function Pwt(e,t){var r=Ty(e+.05,qh),i=hw(Math.floor(r/dA),2)+":"+hw(Ty(Math.floor(r/wy),60),2);if(t!=="M"){I0e(t)||(t=0);var n=Math.min(Ty(e/dw,60),Lwt[t]),a=(100+n).toFixed(t).slice(1);t>0&&(a=a.replace(/0+$/,"").replace(/[\.]$/,"")),i+=":"+a}return i}kl.formatDate=function(e,t,r,i,n,a){if(n=Ng(n)&&n,!t)if(r==="y")t=a.year;else if(r==="m")t=a.month;else if(r==="d")t=a.dayMonth+` -`+a.year;else return Pwt(e,r)+` -`+L0e(a.dayMonthYear,e,i,n);return L0e(t,e,i,n)};var P0e=3*qh;kl.incrementMonth=function(e,t,r){r=Ng(r)&&r;var i=Ty(e,qh);if(e=Math.round(e-i),r)try{var n=Math.round(e/qh)+pA,a=Og.getComponentMethod("calendars","getCal")(r),o=a.fromJD(n);return t%12?a.add(o,t,"m"):a.add(o,t/12,"y"),(o.toJD()-pA)*qh+i}catch(l){HV.error("invalid ms "+e+" in calendar "+r)}var s=new Date(e+P0e);return s.setUTCMonth(s.getUTCMonth()+t)+i-P0e};kl.findExactDates=function(e,t){for(var r=0,i=0,n=0,a=0,o,s,l=Ng(t)&&Og.getComponentMethod("calendars","getCal")(t),u=0;u{"use strict";B0e.exports=function(t){return t}});var AD=W(Ug=>{"use strict";var Iwt=un(),Rwt=zg(),zwt=vA(),Bwt=(ta(),Pt(ra)).BADNUM,jV=1e-9;Ug.findBin=function(e,t,r){if(Iwt(t.start))return r?Math.ceil((e-t.start)/t.size-jV)-1:Math.floor((e-t.start)/t.size+jV);var i=0,n=t.length,a=0,o=n>1?(t[n-1]-t[0])/(n-1):1,s,l;for(o>=0?l=r?qwt:Owt:l=r?Uwt:Nwt,e+=o*jV*(r?-1:1)*(o>=0?1:-1);i90&&Rwt.log("Long binary search..."),i-1};function qwt(e,t){return et}function Uwt(e,t){return e>=t}Ug.sorterAsc=function(e,t){return e-t};Ug.sorterDes=function(e,t){return t-e};Ug.distinctVals=function(e){var t=e.slice();t.sort(Ug.sorterAsc);var r;for(r=t.length-1;r>-1&&t[r]===Bwt;r--);for(var i=t[r]-t[0]||1,n=i/(r||1)/1e4,a=[],o,s=0;s<=r;s++){var l=t[s],u=l-o;o===void 0?(a.push(l),o=l):u>n&&(i=Math.min(i,u),a.push(l),o=l)}return{vals:a,minDiff:i}};Ug.roundUp=function(e,t,r){for(var i=0,n=t.length-1,a,o=0,s=r?0:1,l=r?1:0,u=r?Math.ceil:Math.floor;i0&&(i=1),r&&i)return e.sort(t)}return i?e:e.reverse()};Ug.findIndexOfMin=function(e,t){t=t||zwt;for(var r=1/0,i,n=0;nGwt});function Vwt(e){return Object.keys(e).sort()}var Gwt,Jx=Ci(()=>{"use strict";Gwt=Vwt});var q0e=W(Cl=>{"use strict";var gA=un(),Hwt=wc().isArrayOrTypedArray;Cl.aggNums=function(e,t,r,i){var n,a;if((!i||i>r.length)&&(i=r.length),gA(t)||(t=!1),Hwt(r[0])){for(a=new Array(i),n=0;ne.length-1)return e[e.length-1];var r=t%1;return r*e[Math.ceil(t)]+(1-r)*e[Math.floor(t)]}});var G0e=W((HBr,V0e)=>{"use strict";var O0e=(K3(),Pt(Z3)),$V=O0e.mod,jwt=O0e.modHalf,mA=Math.PI,Ay=2*mA;function $wt(e){return e/180*mA}function Wwt(e){return e/mA*180}function WV(e){return Math.abs(e[1]-e[0])>Ay-1e-14}function N0e(e,t){return jwt(t-e,Ay)}function Ywt(e,t){return Math.abs(N0e(e,t))}function U0e(e,t){if(WV(t))return!0;var r,i;t[0]i&&(i+=Ay);var n=$V(e,Ay),a=n+Ay;return n>=r&&n<=i||a>=r&&a<=i}function Xwt(e,t,r,i){if(!U0e(t,i))return!1;var n,a;return r[0]=n&&e<=a}function YV(e,t,r,i,n,a,o){n=n||0,a=a||0;var s=WV([r,i]),l,u,c,f,h;s?(l=0,u=mA,c=Ay):r{"use strict";Qx.isLeftAnchor=function(t){return t.xanchor==="left"||t.xanchor==="auto"&&t.x<=1/3};Qx.isCenterAnchor=function(t){return t.xanchor==="center"||t.xanchor==="auto"&&t.x>1/3&&t.x<2/3};Qx.isRightAnchor=function(t){return t.xanchor==="right"||t.xanchor==="auto"&&t.x>=2/3};Qx.isTopAnchor=function(t){return t.yanchor==="top"||t.yanchor==="auto"&&t.y>=2/3};Qx.isMiddleAnchor=function(t){return t.yanchor==="middle"||t.yanchor==="auto"&&t.y>1/3&&t.y<2/3};Qx.isBottomAnchor=function(t){return t.yanchor==="bottom"||t.yanchor==="auto"&&t.y<=1/3}});var W0e=W(eb=>{"use strict";var XV=(K3(),Pt(Z3)).mod;eb.segmentsIntersect=$0e;function $0e(e,t,r,i,n,a,o,s){var l=r-e,u=n-e,c=o-n,f=i-t,h=a-t,p=s-a,d=l*p-c*f;if(d===0)return null;var v=(u*p-c*h)/d,m=(u*f-l*h)/d;return m<0||m>1||v<0||v>1?null:{x:e+l*v,y:t+f*v}}eb.segmentDistance=function(t,r,i,n,a,o,s,l){if($0e(t,r,i,n,a,o,s,l))return 0;var u=i-t,c=n-r,f=s-a,h=l-o,p=u*u+c*c,d=f*f+h*h,v=Math.min(MD(u,c,p,a-t,o-r),MD(u,c,p,s-t,l-r),MD(f,h,d,t-a,r-o),MD(f,h,d,i-a,n-o));return Math.sqrt(v)};function MD(e,t,r,i,n){var a=i*e+n*t;if(a<0)return i*i+n*n;if(a>r){var o=i-e,s=n-t;return o*o+s*s}else{var l=i*t-n*e;return l*l/r}}var SD,ZV,j0e;eb.getTextLocation=function(t,r,i,n){if((t!==ZV||n!==j0e)&&(SD={},ZV=t,j0e=n),SD[i])return SD[i];var a=t.getPointAtLength(XV(i-n/2,r)),o=t.getPointAtLength(XV(i+n/2,r)),s=Math.atan((o.y-a.y)/(o.x-a.x)),l=t.getPointAtLength(XV(i,r)),u=(l.x*4+a.x+o.x)/6,c=(l.y*4+a.y+o.y)/6,f={x:u,y:c,theta:s};return SD[i]=f,f};eb.clearLocationCache=function(){ZV=null};eb.getVisibleSegment=function(t,r,i){var n=r.left,a=r.right,o=r.top,s=r.bottom,l=0,u=t.getTotalLength(),c=u,f,h;function p(v){var m=t.getPointAtLength(v);v===0?f=m:v===u&&(h=m);var g=m.xa?m.x-a:0,w=m.ys?m.y-s:0;return Math.sqrt(g*g+w*w)}for(var d=p(l);d;){if(l+=d+i,l>c)return;d=p(l)}for(d=p(c);d;){if(c-=d+i,l>c)return;d=p(c)}return{min:l,max:c,len:c-l,total:u,isClosed:l===0&&c===u&&Math.abs(f.x-h.x)<.1&&Math.abs(f.y-h.y)<.1}};eb.findPointOnPath=function(t,r,i,n){n=n||{};for(var a=n.pathLength||t.getTotalLength(),o=n.tolerance||.001,s=n.iterationLimit||30,l=t.getPointAtLength(0)[i]>t.getPointAtLength(a)[i]?-1:1,u=0,c=0,f=a,h,p,d;u0?f=h:c=h,u++}return p}});var ED=W(yA=>{"use strict";var Vg={};yA.throttle=function(t,r,i){var n=Vg[t],a=Date.now();if(!n){for(var o in Vg)Vg[o].tsn.ts+r){s();return}n.timer=setTimeout(function(){s(),n.timer=null},r)};yA.done=function(e){var t=Vg[e];return!t||!t.timer?Promise.resolve():new Promise(function(r){var i=t.onDone;t.onDone=function(){i&&i(),r(),t.onDone=null}})};yA.clear=function(e){if(e)Y0e(Vg[e]),delete Vg[e];else for(var t in Vg)yA.clear(t)};function Y0e(e){e&&e.timer!==null&&(clearTimeout(e.timer),e.timer=null)}});var Z0e=W((YBr,X0e)=>{"use strict";X0e.exports=function(t){t._clearResponsive&&(t._clearResponsive(),delete t._clearResponsive)}});var K0e=W((XBr,kD)=>{"use strict";kD.exports=KV;kD.exports.isMobile=KV;kD.exports.default=KV;var Qwt=/(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|redmi|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,e5t=/CrOS/,t5t=/android|ipad|playbook|silk/i;function KV(e){e||(e={});let t=e.ua;if(!t&&typeof navigator!="undefined"&&(t=navigator.userAgent),t&&t.headers&&typeof t.headers["user-agent"]=="string"&&(t=t.headers["user-agent"]),typeof t!="string")return!1;let r=Qwt.test(t)&&!e5t.test(t)||!!e.tablet&&t5t.test(t);return!r&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&t.indexOf("Macintosh")!==-1&&t.indexOf("Safari")!==-1&&(r=!0),r}});var Q0e=W((ZBr,J0e)=>{"use strict";var r5t=un(),i5t=K0e();J0e.exports=function(t){var r;if(t&&t.hasOwnProperty("userAgent")?r=t.userAgent:r=n5t(),typeof r!="string")return!0;var i=i5t({ua:{headers:{"user-agent":r}},tablet:!0,featureDetect:!1});if(!i)for(var n=r.split(" "),a=1;a-1;s--){var l=n[s];if(l.slice(0,8)==="Version/"){var u=l.slice(8).split(".")[0];if(r5t(u)&&(u=+u),u>=13)return!0}}}return i};function n5t(){var e;return typeof navigator!="undefined"&&(e=navigator.userAgent),e&&e.headers&&typeof e.headers["user-agent"]=="string"&&(e=e.headers["user-agent"]),e}});var tde=W((KBr,ede)=>{"use strict";var a5t=gi();ede.exports=function(t,r,i){var n=t.selectAll("g."+i.replace(/\s/g,".")).data(r,function(o){return o[0].trace.uid});n.exit().remove(),n.enter().append("g").attr("class",i),n.order();var a=t.classed("rangeplot")?"nodeRangePlot3":"node3";return n.each(function(o){o[0][a]=a5t.select(this)}),n}});var ide=W((JBr,rde)=>{"use strict";var o5t=xi();rde.exports=function(t,r){for(var i=t._context.locale,n=0;n<2;n++){for(var a=t._context.locales,o=0;o<2;o++){var s=(a[i]||{}).dictionary;if(s){var l=s[r];if(l)return l}a=o5t.localeRegistry}var u=i.split("-")[0];if(u===i)break;i=u}return r}});var JV=W((QBr,nde)=>{"use strict";nde.exports=function(t){for(var r={},i=[],n=0,a=0;a{"use strict";ade.exports=function(t){for(var r=u5t(t)?l5t:s5t,i=[],n=0;n{"use strict";sde.exports=function(t,r){if(!r)return t;var i=1/Math.abs(r),n=i>1?(i*t+i*r)/i:t+r,a=String(n).length;if(a>16){var o=String(r).length,s=String(t).length;if(a>=s+o){var l=parseFloat(n).toPrecision(12);l.indexOf("e+")===-1&&(n=+l)}}return n}});var cde={};Kn(cde,{default:()=>h5t});function f5t(e){return typeof e=="string"&&(e=e.replace(c5t,"")),(0,ude.default)(e)?Number(e):void 0}var ude,c5t,h5t,fde=Ci(()=>{"use strict";ude=i1(un());ta();c5t=/^['"%,$#\s']+|[, ]|['"%,$#\s']+$/g;h5t=f5t});var pde=W((iqr,dde)=>{"use strict";var d5t=/<[^>]*>/g,p5t=/[\p{S}\p{P}]/gu,v5t=/[\p{Cc}\p{Cf}\uFE00-\uFE0F\u20E3]/gu,g5t=/�/g,m5t=/\s+/g,CD="-",hde=CD.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),y5t=new RegExp(hde+"{3,}","g"),x5t=new RegExp(hde+"$","g"),b5t=60;function _5t(e){return typeof e.toWellFormed=="function"?e.toWellFormed():new TextDecoder().decode(new TextEncoder().encode(e))}dde.exports=function(t,r=b5t){var i=_5t(t!=null?t:"").replace(g5t,"").replace(d5t," ").replace(p5t,n=>n===CD?n:"").toLowerCase().trim().replace(m5t,CD).replace(v5t,"").replace(y5t,CD);return i.length<=r?i:Array.from(i).slice(0,r).join("").replace(x5t,"")}});var it=W((nqr,Sde)=>{"use strict";var xA=gi(),w5t=Y3().utcFormat,T5t=WN().format,bde=un(),_de=(ta(),Pt(ra)),wde=_de.FP_SAFE,A5t=-wde,vde=_de.BADNUM,Ot={};Sde.exports=Ot;Ot.adjustFormat=function(t){if(!t||/^\d[.]\df/.test(t)||/[.]\d%/.test(t))return t;if(t==="0.f")return"~f";if(/^\d%/.test(t))return"~%";if(/^\ds/.test(t))return"~s";var r=(t.match(/^[+\-( ]?/)||[""])[0],i=t.slice(r.length);return!/^[~,.0$#]/.test(i)&&/[&fps]/.test(i)?r+"~"+i:t};var gde={};Ot.warnBadFormat=function(e){var t=String(e);gde[t]||(gde[t]=1,Ot.warn('encountered bad format: "'+t+'"'))};Ot.noFormat=function(e){return String(e)};Ot.numberFormat=function(e){var t;try{t=T5t(Ot.adjustFormat(e))}catch(r){return Ot.warnBadFormat(e),Ot.noFormat}return t};Ot.nestedProperty=NT();Ot.keyedContainer=cue();Ot.relativeAttr=hue();Ot.isPlainObject=dy();Ot.toLogRange=q8();Ot.relinkPrivateKeys=gue();var My=wc();Ot.isArrayBuffer=My.isArrayBuffer;Ot.isTypedArray=My.isTypedArray;Ot.isArrayOrTypedArray=My.isArrayOrTypedArray;Ot.isArray1D=My.isArray1D;Ot.ensureArray=My.ensureArray;Ot.concat=My.concat;Ot.maxRowLength=My.maxRowLength;Ot.minRowLength=My.minRowLength;var Tde=(K3(),Pt(Z3));Ot.mod=Tde.mod;Ot.modHalf=Tde.modHalf;var Sy=Bfe();Ot.valObjectMeta=Sy.valObjectMeta;Ot.coerce=Sy.coerce;Ot.coerce2=Sy.coerce2;Ot.coerceFont=Sy.coerceFont;Ot.coercePattern=Sy.coercePattern;Ot.coerceHoverinfo=Sy.coerceHoverinfo;Ot.coerceSelectionMarkerOpacity=Sy.coerceSelectionMarkerOpacity;Ot.validate=Sy.validate;var y0=z0e();Ot.dateTime2ms=y0.dateTime2ms;Ot.isDateTime=y0.isDateTime;Ot.ms2DateTime=y0.ms2DateTime;Ot.ms2DateTimeLocal=y0.ms2DateTimeLocal;Ot.cleanDate=y0.cleanDate;Ot.isJSDate=y0.isJSDate;Ot.formatDate=y0.formatDate;Ot.incrementMonth=y0.incrementMonth;Ot.dateTick0=y0.dateTick0;Ot.dfltRange=y0.dfltRange;Ot.findExactDates=y0.findExactDates;Ot.MIN_MS=y0.MIN_MS;Ot.MAX_MS=y0.MAX_MS;var tb=AD();Ot.findBin=tb.findBin;Ot.sorterAsc=tb.sorterAsc;Ot.sorterDes=tb.sorterDes;Ot.distinctVals=tb.distinctVals;Ot.roundUp=tb.roundUp;Ot.sort=tb.sort;Ot.findIndexOfMin=tb.findIndexOfMin;Ot.sortObjectKeys=(Jx(),Pt(Kx)).default;var Gg=q0e();Ot.aggNums=Gg.aggNums;Ot.len=Gg.len;Ot.mean=Gg.mean;Ot.geometricMean=Gg.geometricMean;Ot.median=Gg.median;Ot.midRange=Gg.midRange;Ot.variance=Gg.variance;Ot.stdev=Gg.stdev;Ot.interp=Gg.interp;var Up=pD();Ot.init2dArray=Up.init2dArray;Ot.transposeRagged=Up.transposeRagged;Ot.dot=Up.dot;Ot.translationMatrix=Up.translationMatrix;Ot.rotationMatrix=Up.rotationMatrix;Ot.rotationXYMatrix=Up.rotationXYMatrix;Ot.apply3DTransform=Up.apply3DTransform;Ot.apply2DTransform=Up.apply2DTransform;Ot.apply2DTransform2=Up.apply2DTransform2;Ot.convertCssMatrix=Up.convertCssMatrix;Ot.inverseTransformMatrix=Up.inverseTransformMatrix;var s1=G0e();Ot.deg2rad=s1.deg2rad;Ot.rad2deg=s1.rad2deg;Ot.angleDelta=s1.angleDelta;Ot.angleDist=s1.angleDist;Ot.isFullCircle=s1.isFullCircle;Ot.isAngleInsideSector=s1.isAngleInsideSector;Ot.isPtInsideSector=s1.isPtInsideSector;Ot.pathArc=s1.pathArc;Ot.pathSector=s1.pathSector;Ot.pathAnnulus=s1.pathAnnulus;var gw=H0e();Ot.isLeftAnchor=gw.isLeftAnchor;Ot.isCenterAnchor=gw.isCenterAnchor;Ot.isRightAnchor=gw.isRightAnchor;Ot.isTopAnchor=gw.isTopAnchor;Ot.isMiddleAnchor=gw.isMiddleAnchor;Ot.isBottomAnchor=gw.isBottomAnchor;var mw=W0e();Ot.segmentsIntersect=mw.segmentsIntersect;Ot.segmentDistance=mw.segmentDistance;Ot.getTextLocation=mw.getTextLocation;Ot.clearLocationCache=mw.clearLocationCache;Ot.getVisibleSegment=mw.getVisibleSegment;Ot.findPointOnPath=mw.findPointOnPath;var LD=nn();Ot.extendFlat=LD.extendFlat;Ot.extendDeep=LD.extendDeep;Ot.extendDeepAll=LD.extendDeepAll;Ot.extendDeepNoArrays=LD.extendDeepNoArrays;var QV=zg();Ot.log=QV.log;Ot.warn=QV.warn;Ot.error=QV.error;var M5t=(lw(),Pt(cA));Ot.counterRegex=M5t.counter;var eG=ED();Ot.throttle=eG.throttle;Ot.throttleDone=eG.done;Ot.clearThrottle=eG.clear;var Vp=fA();Ot.getGraphDiv=Vp.getGraphDiv;Ot.isPlotDiv=Vp.isPlotDiv;Ot.removeElement=Vp.removeElement;Ot.addStyleRule=Vp.addStyleRule;Ot.addRelatedStyleRule=Vp.addRelatedStyleRule;Ot.deleteRelatedStyleRule=Vp.deleteRelatedStyleRule;Ot.setStyleOnHover=Vp.setStyleOnHover;Ot.getFullTransformMatrix=Vp.getFullTransformMatrix;Ot.getElementTransformMatrix=Vp.getElementTransformMatrix;Ot.getElementAndAncestors=Vp.getElementAndAncestors;Ot.equalDomRects=Vp.equalDomRects;Ot.clearResponsive=Z0e();Ot.preserveDrawingBuffer=Q0e();Ot.makeTraceGroups=tde();Ot._=ide();Ot.notifier=SV();Ot.filterUnique=JV();Ot.filterVisible=ode();Ot.pushUnique=RV();Ot.increment=lde();Ot.cleanNumber=(fde(),Pt(cde)).default;Ot.slugify=pde();Ot.ensureNumber=function(t){return bde(t)?(t=Number(t),t>wde||t=t?!1:bde(e)&&e>=0&&e%1===0};Ot.noop=dD();Ot.identity=vA();Ot.repeat=function(e,t){for(var r=new Array(t),i=0;ir?Math.max(r,Math.min(t,e)):Math.max(t,Math.min(r,e))};Ot.bBoxIntersect=function(e,t,r){return r=r||0,e.left<=t.right+r&&t.left<=e.right+r&&e.top<=t.bottom+r&&t.top<=e.bottom+r};Ot.simpleMap=function(e,t,r,i,n){for(var a=e.length,o=new Array(a),s=0;s=Math.pow(2,r)?n>10?(Ot.warn("randstr failed uniqueness"),o):e(t,r,i,(n||0)+1):o};Ot.OptionControl=function(e,t){e||(e={}),t||(t="opt");var r={};return r.optionList=[],r._newoption=function(i){i[t]=e,r[i.name]=i,r.optionList.push(i)},r["_"+t]=e,r};Ot.smooth=function(e,t){if(t=Math.round(t)||0,t<2)return e;var r=e.length,i=2*r,n=2*t-1,a=new Array(n),o=new Array(r),s,l,u,c;for(s=0;s=i&&(u-=i*Math.floor(u/i)),u<0?u=-1-u:u>=r&&(u=i-1-u),c+=e[u]*a[l];o[s]=c}return o};Ot.syncOrAsync=function(e,t,r){var i,n;function a(){return Ot.syncOrAsync(e,t,r)}for(;e.length;)if(n=e.splice(0,1)[0],i=n(t),i&&i.then)return i.then(a);return r&&r(t)};Ot.stripTrailingSlash=function(e){return e.slice(-1)==="/"?e.slice(0,-1):e};Ot.noneOrAll=function(e,t,r){if(e){var i=!1,n=!0,a,o;for(a=0;a0?n:0})};Ot.fillArray=function(e,t,r,i){if(i=i||Ot.identity,Ot.isArrayOrTypedArray(e))for(var n=0;nk5t.test(window.navigator.userAgent);var C5t=/Firefox\/(\d+)\.\d+/;Ot.getFirefoxVersion=function(){var e=C5t.exec(window.navigator.userAgent);if(e&&e.length===2){var t=parseInt(e[1]);if(!isNaN(t))return t}return null};Ot.isD3Selection=function(e){return e instanceof xA.selection};Ot.ensureSingle=function(e,t,r,i){var n=e.select(t+(r?"."+r:""));if(n.size())return n;var a=e.append(t);return r&&a.classed(r,!0),i&&a.call(i),a};Ot.ensureSingleById=function(e,t,r,i){var n=e.select(t+"#"+r);if(n.size())return n;var a=e.append(t).attr("id",r);return i&&a.call(i),a};Ot.objectFromPath=function(e,t){for(var r=e.split("."),i,n=i={},a=0;a1?n+o[1]:"";if(a&&(o.length>1||s.length>4||r))for(;i.test(s);)s=s.replace(i,"$1"+a+"$2");return s+l};Ot.TEMPLATE_STRING_REGEX=/%{([^\s%{}:]*)([:|\|][^}]*)?}/g;var Mde=/^\w*$/;Ot.templateString=function(e,t){var r={};return e.replace(Ot.TEMPLATE_STRING_REGEX,function(i,n){var a;return Mde.test(n)?a=t[n]:(r[n]=r[n]||Ot.nestedProperty(t,n).get,a=r[n](!0)),a!==void 0?a:""})};var L5t={max:10,count:0,name:"hovertemplate"};Ot.hovertemplateString=e=>tG(_a(dn({},e),{opts:L5t}));var P5t={max:10,count:0,name:"texttemplate"};Ot.texttemplateString=e=>tG(_a(dn({},e),{opts:P5t}));var I5t=/^(\S+)([\*\/])(-?\d+(\.\d+)?)$/;function R5t(e){var t=e.match(I5t);return t?{key:t[1],op:t[2],number:Number(t[3])}:{key:e,op:null,number:null}}var z5t={max:10,count:0,name:"texttemplate",parseMultDiv:!0};Ot.texttemplateStringForShapes=e=>tG(_a(dn({},e),{opts:z5t}));var mde=/^[:|\|]/;function tG({data:e=[],locale:t,fallback:r,labels:i={},opts:n,template:a}){return a.replace(Ot.TEMPLATE_STRING_REGEX,(o,s,l)=>{let u=["xother","yother"].includes(s),c=["_xother","_yother"].includes(s),f=["_xother_","_yother_"].includes(s),h=["xother_","yother_"].includes(s),p=u||c||h||f;(c||f)&&(s=s.substring(1)),(h||f)&&(s=s.substring(0,s.length-1));let d=null,v=null;if(n.parseMultDiv){var m=R5t(s);s=m.key,d=m.op,v=m.number}let g;if(p){if(i[s]===void 0)return"";g=i[s]}else for(let S of e)if(S){if(S.hasOwnProperty(s)){g=S[s];break}if(Mde.test(s)||(g=Ot.nestedProperty(S,s).get(!0)),g!==void 0)break}if(g===void 0){let{count:S,max:x,name:T}=n,A=r===!1?o:r;return S=FD&&o<=yde,u=s>=FD&&s<=yde;if(l&&(i=10*i+o-FD),u&&(n=10*n+s-FD),!l||!u){if(i!==n)return i-n;if(o!==s)return o-s}}return n-i};var vw=2e9;Ot.seedPseudoRandom=function(){vw=2e9};Ot.pseudoRandom=function(){var e=vw;return vw=(69069*vw+1)%4294967296,Math.abs(vw-e)<429496729?Ot.pseudoRandom():vw/4294967296};Ot.fillText=function(e,t,r){var i=Array.isArray(r)?function(o){r.push(o)}:function(o){r.text=o},n=Ot.extractOption(e,t,"htx","hovertext");if(Ot.isValidTextValue(n))return i(n);var a=Ot.extractOption(e,t,"tx","text");if(Ot.isValidTextValue(a))return i(a)};Ot.isValidTextValue=function(e){return e||e===0};Ot.formatPercent=function(e,t){t=t||0;for(var r=(Math.round(100*e*Math.pow(10,t))*Math.pow(.1,t)).toFixed(t)+"%",i=0;i1&&(u=1):u=0,Ot.strTranslate(n-u*(r+o),a-u*(i+s))+Ot.strScale(u)+(l?"rotate("+l+(t?"":" "+r+" "+i)+")":"")};Ot.setTransormAndDisplay=function(e,t){e.attr("transform",Ot.getTextTransform(t)),e.style("display",t.scale?null:"none")};Ot.ensureUniformFontSize=function(e,t){var r=Ot.extendFlat({},t);return r.size=Math.max(t.size,e._fullLayout.uniformtext.minsize||0),r};Ot.join2=function(e,t,r){var i=e.length;return i>1?e.slice(0,-1).join(t)+r+e[i-1]:e.join(t)};Ot.bigFont=function(e){return Math.round(1.2*e)};var xde=Ot.getFirefoxVersion(),B5t=xde!==null&&xde<86;Ot.getPositionFromD3Event=function(){return B5t?[xA.event.layerX,xA.event.layerY]:[xA.event.offsetX,xA.event.offsetY]}});var Cde=W(()=>{"use strict";var q5t=it(),Ede={"X,X div":'direction:ltr;font-family:"Open Sans",verdana,arial,sans-serif;margin:0;padding:0;border: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 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:focus-within .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-group a":"display:grid;place-content:center;","X .modebar-btn":"position:relative;font-size:16px;padding:3px 4px;height:22px;cursor:pointer;line-height:normal;box-sizing:border-box;border:none;background:rgba(0,0,0,0);","X .modebar-btn svg":"position:relative;","X .modebar-btn:focus-visible":"outline:1px solid #000;outline-offset:1px;border-radius:3px;","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;","X .plotly-cloud-dialog":'font-family:"Open Sans",verdana,arial,sans-serif;position:absolute;top:0;left:0;width:100%;height:100%;z-index:1001;display:flex;align-items:center;justify-content:center;background-color:rgba(0,0,0,.4);',"X .plotly-cloud-dialog .plotly-cloud-dialog-box":"box-sizing:border-box;min-width:300px;max-width:420px;padding:20px 24px;background-color:#fff;border:1px solid #e0e2e5;border-radius:4px;box-shadow:0 4px 16px rgba(0,0,0,.25);font-size:13px;color:#2a3f5f;","X .plotly-cloud-dialog .plotly-cloud-dialog-title":"font-size:16px;font-weight:bold;margin-bottom:12px;","X .plotly-cloud-dialog .plotly-cloud-dialog-message":"line-height:1.5;overflow-wrap:break-word;word-wrap:break-word;","X .plotly-cloud-dialog .plotly-cloud-dialog-message--hostname":"font-weight:bold;text-decoration:underline;","X .plotly-cloud-dialog .plotly-cloud-dialog-message--account":"margin-top:16px;padding:8px;border-radius:3px;font-size:.9em;background-color:#edf1f8;","X .plotly-cloud-dialog .plotly-cloud-dialog-buttons":"display:flex;justify-content:flex-end;margin-top:20px;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn":"font-family:inherit;font-size:13px;padding:7px 16px;margin-left:8px;border-radius:3px;border:1px solid rgba(0,0,0,0);cursor:pointer;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn:focus-visible":"outline:2px solid #447adb;outline-offset:1px;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn--cancel":"background-color:#f3f3f3;margin-left:auto;color:#777;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn--cancel:hover":"background-color:#e0e2e5;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn--confirm":"background-color:#447adb;color:#fff;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn--confirm:hover":"background-color:#1d3b84;",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(rG in Ede)kde=rG.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier"),q5t.addStyleRule(kde,Ede[rG]);var kde,rG});var iG=W((lqr,Dde)=>{Dde.exports=!0});var aG=W((uqr,Fde)=>{"use strict";var O5t=iG(),nG;typeof window.matchMedia=="function"?nG=!window.matchMedia("(hover: none)").matches:nG=O5t;Fde.exports=nG});var rb=W((cqr,oG)=>{"use strict";var yw=typeof Reflect=="object"?Reflect:null,Lde=yw&&typeof yw.apply=="function"?yw.apply:function(t,r,i){return Function.prototype.apply.call(t,r,i)},PD;yw&&typeof yw.ownKeys=="function"?PD=yw.ownKeys:Object.getOwnPropertySymbols?PD=function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:PD=function(t){return Object.getOwnPropertyNames(t)};function N5t(e){console&&console.warn&&console.warn(e)}var Ide=Number.isNaN||function(t){return t!==t};function _s(){_s.init.call(this)}oG.exports=_s;oG.exports.once=H5t;_s.EventEmitter=_s;_s.prototype._events=void 0;_s.prototype._eventsCount=0;_s.prototype._maxListeners=void 0;var Pde=10;function ID(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(_s,"defaultMaxListeners",{enumerable:!0,get:function(){return Pde},set:function(e){if(typeof e!="number"||e<0||Ide(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");Pde=e}});_s.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};_s.prototype.setMaxListeners=function(t){if(typeof t!="number"||t<0||Ide(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this};function Rde(e){return e._maxListeners===void 0?_s.defaultMaxListeners:e._maxListeners}_s.prototype.getMaxListeners=function(){return Rde(this)};_s.prototype.emit=function(t){for(var r=[],i=1;i0&&(o=r[0]),o instanceof Error)throw o;var s=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw s.context=o,s}var l=a[t];if(l===void 0)return!1;if(typeof l=="function")Lde(l,this,r);else for(var u=l.length,c=Nde(l,u),i=0;i0&&o.length>n&&!o.warned){o.warned=!0;var s=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");s.name="MaxListenersExceededWarning",s.emitter=e,s.type=t,s.count=o.length,N5t(s)}return e}_s.prototype.addListener=function(t,r){return zde(this,t,r,!1)};_s.prototype.on=_s.prototype.addListener;_s.prototype.prependListener=function(t,r){return zde(this,t,r,!0)};function U5t(){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 Bde(e,t,r){var i={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},n=U5t.bind(i);return n.listener=r,i.wrapFn=n,n}_s.prototype.once=function(t,r){return ID(r),this.on(t,Bde(this,t,r)),this};_s.prototype.prependOnceListener=function(t,r){return ID(r),this.prependListener(t,Bde(this,t,r)),this};_s.prototype.removeListener=function(t,r){var i,n,a,o,s;if(ID(r),n=this._events,n===void 0)return this;if(i=n[t],i===void 0)return this;if(i===r||i.listener===r)--this._eventsCount===0?this._events=Object.create(null):(delete n[t],n.removeListener&&this.emit("removeListener",t,i.listener||r));else if(typeof i!="function"){for(a=-1,o=i.length-1;o>=0;o--)if(i[o]===r||i[o].listener===r){s=i[o].listener,a=o;break}if(a<0)return this;a===0?i.shift():V5t(i,a),i.length===1&&(n[t]=i[0]),n.removeListener!==void 0&&this.emit("removeListener",t,s||r)}return this};_s.prototype.off=_s.prototype.removeListener;_s.prototype.removeAllListeners=function(t){var r,i,n;if(i=this._events,i===void 0)return this;if(i.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):i[t]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete i[t]),this;if(arguments.length===0){var a=Object.keys(i),o;for(n=0;n=0;n--)this.removeListener(t,r[n]);return this};function qde(e,t,r){var i=e._events;if(i===void 0)return[];var n=i[t];return n===void 0?[]:typeof n=="function"?r?[n.listener||n]:[n]:r?G5t(n):Nde(n,n.length)}_s.prototype.listeners=function(t){return qde(this,t,!0)};_s.prototype.rawListeners=function(t){return qde(this,t,!1)};_s.listenerCount=function(e,t){return typeof e.listenerCount=="function"?e.listenerCount(t):Ode.call(e,t)};_s.prototype.listenerCount=Ode;function Ode(e){var t=this._events;if(t!==void 0){var r=t[e];if(typeof r=="function")return 1;if(r!==void 0)return r.length}return 0}_s.prototype.eventNames=function(){return this._eventsCount>0?PD(this._events):[]};function Nde(e,t){for(var r=new Array(t),i=0;i{"use strict";var sG=rb().EventEmitter,$5t={init:function(e){if(e._ev instanceof sG)return e;var t=new sG,r=new sG;return e._ev=t,e._internalEv=r,e.on=t.on.bind(t),e.once=t.once.bind(t),e.removeListener=t.removeListener.bind(t),e.removeAllListeners=t.removeAllListeners.bind(t),e._internalOn=r.on.bind(r),e._internalOnce=r.once.bind(r),e._removeInternalListener=r.removeListener.bind(r),e._removeAllInternalListeners=r.removeAllListeners.bind(r),e.emit=function(i,n){t.emit(i,n),r.emit(i,n)},typeof e.addEventListener=="function"&&e.addEventListener("wheel",()=>{},{passive:!0}),e},triggerHandler:function(e,t,r){var i,n=e._ev;if(!n)return;var a=n._events[t];if(!a)return;function o(l){if(l.listener){if(n.removeListener(t,l.listener),!l.fired)return l.fired=!0,l.listener.apply(n,[r])}else return l.apply(n,[r])}a=Array.isArray(a)?a:[a];var s;for(s=0;s{"use strict";var Gde=it(),W5t=my().dfltConfig;function Y5t(e,t){for(var r=[],i,n=0;nW5t.queueLength&&(e.undoQueue.queue.shift(),e.undoQueue.index--)};Hg.startSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!0,e.undoQueue.beginSequence=!0};Hg.stopSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!1,e.undoQueue.beginSequence=!1};Hg.undo=function(t){var r,i;if(!(t.undoQueue===void 0||isNaN(t.undoQueue.index)||t.undoQueue.index<=0)){for(t.undoQueue.index--,r=t.undoQueue.queue[t.undoQueue.index],t.undoQueue.inSequence=!0,i=0;i=t.undoQueue.queue.length)){for(r=t.undoQueue.queue[t.undoQueue.index],t.undoQueue.inSequence=!0,i=0;i{"use strict";$de.exports={_isLinkedToArray:"frames_entry",group:{valType:"string"},name:{valType:"string"},traces:{valType:"any"},baseframe:{valType:"string"},data:{valType:"any"},layout:{valType:"any"}}});var ww=W(vu=>{"use strict";var dd=xi(),bA=it(),zD=Ka(),uG=fw(),X5t=lG(),Z5t=hA(),K5t=my().configAttributes,Wde=cs(),Gp=bA.extendDeepAll,bw=bA.isPlainObject,J5t=bA.isArrayOrTypedArray,BD=bA.nestedProperty,Q5t=bA.valObjectMeta,cG="_isSubplotObj",qD="_isLinkedToArray",e4t="_arrayAttrRegexps",Xde="_deprecated",fG=[cG,qD,e4t,Xde];vu.IS_SUBPLOT_OBJ=cG;vu.IS_LINKED_TO_ARRAY=qD;vu.DEPRECATED=Xde;vu.UNDERSCORE_ATTRS=fG;vu.get=function(){var e={};return dd.allTypes.forEach(function(t){e[t]=r4t(t)}),{defs:{valObjects:Q5t,metaKeys:fG.concat(["description","role","editType","impliedEdits"]),editType:{traces:Wde.traces,layout:Wde.layout},impliedEdits:{}},traces:e,layout:i4t(),frames:n4t(),animation:_w(Z5t),config:_w(K5t)}};vu.crawl=function(e,t,r,i){var n=r||0;i=i||"",Object.keys(e).forEach(function(a){var o=e[a];if(fG.indexOf(a)===-1){var s=(i?i+".":"")+a;t(o,a,e,n,s),!vu.isValObject(o)&&bw(o)&&a!=="impliedEdits"&&vu.crawl(o,t,n+1,s)}})};vu.isValObject=function(e){return e&&e.valType!==void 0};vu.findArrayAttributes=function(e){var t=[],r=[],i=[],n,a;function o(l,u,c,f){r=r.slice(0,f).concat([u]),i=i.slice(0,f).concat([l&&l._isLinkedToArray]);var h=l&&(l.valType==="data_array"||l.arrayOk===!0)&&!(r[f-1]==="colorbar"&&(u==="ticktext"||u==="tickvals"));h&&s(n,0,"")}function s(l,u,c){var f=l[r[u]],h=c+r[u];if(u===r.length-1)J5t(f)&&t.push(a+h);else if(i[u]){if(Array.isArray(f))for(var p=0;p=a.length)return!1;if(e.dimensions===2){if(r++,t.length===r)return e;var o=t[r];if(!RD(o))return!1;e=a[n][o]}else e=a[n]}else e=a}}return e}function RD(e){return e===Math.round(e)&&e>=0}function r4t(e){var t,r;t=dd.modules[e]._module,r=t.basePlotModule;var i={};i.type=null;var n=Gp({},zD),a=Gp({},t.attributes);vu.crawl(a,function(l,u,c,f,h){BD(n,h).set(void 0),l===void 0&&BD(a,h).set(void 0)}),Gp(i,n),dd.traceIs(e,"noOpacity")&&delete i.opacity,dd.traceIs(e,"showLegend")||(delete i.showlegend,delete i.legendgroup),dd.traceIs(e,"noHover")&&(delete i.hoverinfo,delete i.hoverlabel),t.selectPoints||delete i.selectedpoints,Gp(i,a),r.attributes&&Gp(i,r.attributes),i.type=e;var o={meta:t.meta||{},categories:t.categories||{},animatable:!!t.animatable,type:e,attributes:_w(i)};if(t.layoutAttributes){var s={};Gp(s,t.layoutAttributes),o.layoutAttributes=_w(s)}return t.animatable||vu.crawl(o,function(l){vu.isValObject(l)&&"anim"in l&&delete l.anim}),o}function i4t(){var e={},t,r;Gp(e,uG);for(t in dd.subplotsRegistry)if(r=dd.subplotsRegistry[t],!!r.layoutAttributes)if(Array.isArray(r.attr))for(var i=0;i{"use strict";var Tw=it(),u4t=Ka(),Ey="templateitemname",hG={name:{valType:"string",editType:"none"}};hG[Ey]={valType:"string",editType:"calc"};ib.templatedArray=function(e,t){return t._isLinkedToArray=e,t.name=hG.name,t[Ey]=hG[Ey],t};ib.traceTemplater=function(e){var t={},r,i;for(r in e)i=e[r],Array.isArray(i)&&i.length&&(t[r]=0);function n(a){r=Tw.coerce(a,{},u4t,"type");var o={type:r,_template:null};if(r in t){i=e[r];var s=t[r]%i.length;t[r]++,o._template=i[s]}return o}return{newTrace:n}};ib.newContainer=function(e,t,r){var i=e._template,n=i&&(i[t]||r&&i[r]);Tw.isPlainObject(n)||(n=null);var a=e[t]={_template:n};return a};ib.arrayTemplater=function(e,t,r){var i=e._template,n=i&&i[Jde(t)],a=i&&i[t];(!Array.isArray(a)||!a.length)&&(a=[]);var o={};function s(u){var c={name:u.name,_input:u},f=c[Ey]=u[Ey];if(!Kde(f))return c._template=n,c;for(var h=0;h=i&&(r._input||{})._templateitemname;a&&(n=i);var o=t+"["+n+"]",s;function l(){s={},a&&(s[o]={},s[o][Ey]=a)}l();function u(p,d){s[p]=d}function c(p,d){a?Tw.nestedProperty(s[o],p).set(d):s[o+"."+p]=d}function f(){var p=s;return l(),p}function h(p,d){p&&c(p,d);var v=f();for(var m in v)Tw.nestedProperty(e,m).set(v[m])}return{modifyBase:u,modifyItem:c,getUpdateObj:f,applyUpdate:h}}});var $l={};Kn($l,{AX_ID_PATTERN:()=>p4t,AX_NAME_PATTERN:()=>v4t,DFLTRANGEX:()=>T4t,DFLTRANGEY:()=>A4t,DRAGGERSIZE:()=>_4t,HOUR_PATTERN:()=>m4t,MINDRAG:()=>x4t,MINZOOM:()=>b4t,REDRAWDELAY:()=>w4t,SUBPLOT_PATTERN:()=>g4t,WEEKDAY_PATTERN:()=>y4t,attrRegex:()=>f4t,clipOnAxisFalseQuery:()=>S4t,idRegex:()=>c4t,layerValue2layerClass:()=>E4t,traceLayerClasses:()=>M4t,xAxisMatch:()=>h4t,yAxisMatch:()=>d4t,zindexSeparator:()=>k4t});var c4t,f4t,h4t,d4t,p4t,v4t,g4t,m4t,y4t,x4t,b4t,_4t,w4t,T4t,A4t,M4t,S4t,E4t,k4t,Wl=Ci(()=>{"use strict";lw();c4t={x:Xx("x","( domain)?"),y:Xx("y","( domain)?")},f4t=Xx("[xy]axis"),h4t=Xx("xaxis"),d4t=Xx("yaxis"),p4t=/^[xyz][0-9]*( domain)?$/,v4t=/^[xyz]axis[0-9]*$/,g4t=/^x([0-9]*)y([0-9]*)$/,m4t="hour",y4t="day of week",x4t=8,b4t=20,_4t=20,w4t=50,T4t=[-1,6],A4t=[-1,4],M4t=["imagelayer","heatmaplayer","contourcarpetlayer","contourlayer","funnellayer","waterfalllayer","barlayer","carpetlayer","violinlayer","boxlayer","ohlclayer","scattercarpetlayer","scatterlayer"],S4t=[".scatterlayer",".barlayer",".funnellayer",".waterfalllayer"],E4t={"above traces":"above","below traces":"below"},k4t="z"});var Fs=W(Oh=>{"use strict";var C4t=xi(),dG=(Wl(),Pt($l));Oh.id2name=function(t){if(!(typeof t!="string"||!t.match(dG.AX_ID_PATTERN))){var r=t.split(" ")[0].slice(1);return r==="1"&&(r=""),t.charAt(0)+"axis"+r}};Oh.name2id=function(t){if(t.match(dG.AX_NAME_PATTERN)){var r=t.slice(5);return r==="1"&&(r=""),t.charAt(0)+r}};Oh.cleanId=function(t,r,i){var n=/( domain)$/.test(t);if(!(typeof t!="string"||!t.match(dG.AX_ID_PATTERN))&&!(r&&t.charAt(0)!==r)&&!(n&&!i)){var a=t.split(" ")[0].slice(1).replace(/^0+/,"");return a==="1"&&(a=""),t.charAt(0)+a+(n&&i?" domain":"")}};Oh.list=function(e,t,r){var i=e._fullLayout;if(!i)return[];var n=Oh.listIds(e,t),a=new Array(n.length),o;for(o=0;oi?1:-1:+(e.slice(1)||1)-+(t.slice(1)||1)};Oh.ref2id=function(e){return/^[xyz]/.test(e)?e.split(" ")[0]:!1};function Qde(e,t){if(t&&t.length){for(var r=0;r{"use strict";function D4t(e){var t=e._fullLayout._zoomlayer;t&&t.selectAll(".outline-controllers").remove()}function F4t(e){var t=e._fullLayout._zoomlayer;t&&t.selectAll(".select-outline").remove(),e._fullLayout._outlining=!1}epe.exports={clearOutlineControllers:D4t,clearOutline:F4t}});var OD=W((xqr,tpe)=>{"use strict";tpe.exports={scattermode:{valType:"enumerated",values:["group","overlay"],dflt:"overlay",editType:"calc"},scattergap:{valType:"number",min:0,max:1,editType:"calc"}}});var Ac=W(UD=>{"use strict";var ND=xi(),bqr=(Wl(),Pt($l)).SUBPLOT_PATTERN;UD.getSubplotCalcData=function(e,t,r){var i=ND.subplotsRegistry[t];if(!i)return[];for(var n=i.attr,a=[],o=0;o{"use strict";var L4t=xi(),Aw=it();nb.manageCommandObserver=function(e,t,r,i){var n={},a=!0;t&&t._commandObserver&&(n=t._commandObserver),n.cache||(n.cache={}),n.lookupTable={};var o=nb.hasSimpleAPICommandBindings(e,r,n.lookupTable);if(t&&t._commandObserver){if(o)return n;if(t._commandObserver.remove)return t._commandObserver.remove(),t._commandObserver=null,n}if(o){rpe(e,o,n.cache),n.check=function(){if(a){var c=rpe(e,o,n.cache);return c.changed&&i&&n.lookupTable[c.value]!==void 0&&(n.disable(),Promise.resolve(i({value:c.value,type:o.type,prop:o.prop,traces:o.traces,index:n.lookupTable[c.value]})).then(n.enable,n.enable)),c.changed}};for(var s=["plotly_relayout","plotly_redraw","plotly_restyle","plotly_update","plotly_animatingframe","plotly_afterplot"],l=0;l0?".":"")+n;Aw.isPlainObject(a)?pG(a,t,o,i+1):t(o,n,a)}})}});var Qo=W((Aqr,vpe)=>{"use strict";var Tqr=gi(),I4t=Y3().timeFormatLocale,R4t=WN().formatLocale,_A=un(),z4t=XN(),B4t=OT().version,Wa=xi(),q4t=ww(),O4t=Ia(),Ei=it(),N4t=ai(),ope=(ta(),Pt(ra)).BADNUM,Nh=Fs(),U4t=ky().clearOutline,V4t=OD(),vG=hA(),G4t=lG(),H4t=Ac().getModuleCalcData,spe=Ei.relinkPrivateKeys,ab=Ei._,fi=vpe.exports={};Ei.extendFlat(fi,Wa);fi.attributes=Ka();fi.attributes.type.values=fi.allTypes;fi.fontAttrs=jo();fi.layoutAttributes=fw();var GD=ape();fi.executeAPICommand=GD.executeAPICommand;fi.computeAPICommandBindings=GD.computeAPICommandBindings;fi.manageCommandObserver=GD.manageCommandObserver;fi.hasSimpleAPICommandBindings=GD.hasSimpleAPICommandBindings;fi.redrawText=function(e){return e=Ei.getGraphDiv(e),new Promise(function(t){setTimeout(function(){e._fullLayout&&(Wa.getComponentMethod("annotations","draw")(e),Wa.getComponentMethod("legend","draw")(e),Wa.getComponentMethod("colorbar","draw")(e),t(fi.previousPromises(e)))},300)})};fi.resize=function(e){e=Ei.getGraphDiv(e);var t,r=new Promise(function(i,n){(!e||Ei.isHidden(e))&&n(new Error("Resize must be passed a displayed plot div element.")),e._redrawTimer&&clearTimeout(e._redrawTimer),e._resolveResize&&(t=e._resolveResize),e._resolveResize=i,e._redrawTimer=setTimeout(function(){if(!e.layout||e.layout.width&&e.layout.height||Ei.isHidden(e)){i(e);return}delete e.layout.width,delete e.layout.height;var a=e.changed;e.autoplay=!0,Wa.call("relayout",e,{autosize:!0}).then(function(){e.changed=a,e._resolveResize===i&&(delete e._resolveResize,i(e))})},100)});return t&&t(r),r};fi.previousPromises=function(e){if((e._promises||[]).length)return Promise.all(e._promises).then(function(){e._promises=[]})};fi.sendDataToCloud=function(e,t){e.emit("plotly_beforeexport");let r=new URL(t).origin;var i=fi.graphJson(e,!1,"object");i.version=B4t;var n=new URL(t);n.searchParams.set("origin",window.location.origin);var a=window.open(n.href,"_blank");if(!a){console.error("Unable to open Plotly Cloud (the popup may have been blocked)"),e.emit("plotly_exportfail");return}var o=function(s){s.origin===r&&s.data&&s.data.type==="CHART_AUTH_SUCCESS"&&(a.postMessage({type:"chart",chart:i},r),window.removeEventListener("message",o),e.emit("plotly_afterexport"))};return window.addEventListener("message",o),!1};var j4t=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],$4t=["year","month","dayMonth","dayMonthYear"];fi.supplyDefaults=function(e,t){var r=t&&t.skipUpdateCalc,i=e._fullLayout||{};if(i._skipDefaults){delete i._skipDefaults;return}var n=e._fullLayout={},a=e.layout||{},o=e._fullData||[],s=e._fullData=[],l=e.data||[],u=e.calcdata||[],c=e._context||{},f;e._transitionData||fi.createTransitionData(e),n._dfltTitle={plot:ab(e,"Click to enter Plot title"),subtitle:ab(e,"Click to enter Plot subtitle"),x:ab(e,"Click to enter X axis title"),y:ab(e,"Click to enter Y axis title"),colorbar:ab(e,"Click to enter Colorscale title"),annotation:ab(e,"new text")},n._traceWord=ab(e,"trace");var h=lpe(e,j4t);if(i._initialAutoSizeIsDone){var p=i.width,d=i.height;fi.supplyLayoutGlobalDefaults(a,n,h),a.width||(n.width=p),a.height||(n.height=d),fi.sanitizeMargins(n)}else{fi.supplyLayoutGlobalDefaults(a,n,h);var v=!a.width||!a.height,m=n.autosize,g=c.autosizable,w=v&&(m||g);w?fi.plotAutoSize(e,a,n):v&&fi.sanitizeMargins(n),!m&&v&&(a.width=n.width,a.height=n.height)}n._d3locale=X4t(h,n.separators),n._extraFormat=lpe(e,$4t),n._initialAutoSizeIsDone=!0,n._dataLength=l.length,n._modules=[],n._visibleModules=[],n._basePlotModules=[];var _=n._subplots=Y4t(),b=n._splomAxes={x:{},y:{}},S=n._splomSubplots={};n._splomGridDflt={},n._scatterStackOpts={},n._firstScatter={},n._alignmentOpts={},n._colorAxes={},n._requestRangeslider={},n._traceUids=W4t(o,l),fi.supplyDataDefaults(l,s,a,n);var x=Object.keys(b.x),T=Object.keys(b.y);if(x.length>1&&T.length>1){for(Wa.getComponentMethod("grid","sizeDefaults")(a,n),f=0;f15&&T.length>15&&n.shapes.length===0&&n.images.length===0,fi.linkSubplots(s,n,o,i),fi.cleanPlot(s,n,o,i);var C=!!(i._has&&i._has("cartesian")),k=!!(n._has&&n._has("cartesian")),D=C,L=k;D&&!L?i._bgLayer.remove():L&&!D&&(n._shouldCreateBgLayer=!0),i._zoomlayer&&!e._dragging&&U4t({_fullLayout:i}),Z4t(s,n),spe(n,i),Wa.getComponentMethod("colorscale","crossTraceDefaults")(s,n),n._preGUI||(n._preGUI={}),n._tracePreGUI||(n._tracePreGUI={});var P=n._tracePreGUI,R={},F;for(F in P)R[F]="old";for(f=0;f0){var c=1-2*a;o=Math.round(c*o),s=Math.round(c*s)}}var f=fi.layoutAttributes.width.min,h=fi.layoutAttributes.height.min;o1,d=!r.height&&Math.abs(i.height-s)>1;(d||p)&&(p&&(i.width=o),d&&(i.height=s)),t._initialAutoSize||(t._initialAutoSize={width:o,height:s}),fi.sanitizeMargins(i)};fi.supplyLayoutModuleDefaults=function(e,t,r,i){var n=Wa.componentsRegistry,a=t._basePlotModules,o,s,l,u=Wa.subplotsRegistry.cartesian;for(o in n)l=n[o],l.includeBasePlot&&l.includeBasePlot(e,t);a.length||a.push(u),t._has("cartesian")&&(Wa.getComponentMethod("grid","contentDefaults")(e,t),u.finalizeSubplots(e,t));for(var c in t._subplots)t._subplots[c].sort(Ei.subplotSort);for(s=0;s1&&(r.l/=m,r.r/=m)}if(h){var g=(r.t+r.b)/h;g>1&&(r.t/=g,r.b/=g)}var w=r.xl!==void 0?r.xl:r.x,_=r.xr!==void 0?r.xr:r.x,b=r.yt!==void 0?r.yt:r.y,S=r.yb!==void 0?r.yb:r.y;p[t]={l:{val:w,size:r.l+v},r:{val:_,size:r.r+v},b:{val:S,size:r.b+v},t:{val:b,size:r.t+v}},d[t]=1}if(!i._replotting)return fi.doAutoMargin(e)}};function J4t(e){if("_redrawFromAutoMarginCount"in e._fullLayout)return!1;var t=Nh.list(e,"",!0);for(var r in t)if(t[r].autoshift||t[r].shift)return!0;return!1}fi.doAutoMargin=function(e){var t=e._fullLayout,r=t.width,i=t.height;t._size||(t._size={}),fpe(t);var n=t._size,a=t.margin,o={t:0,b:0,l:0,r:0},s=Ei.extendFlat({},n),l=a.l,u=a.r,c=a.t,f=a.b,h=t._pushmargin,p=t._pushmarginIds,d=t.minreducedwidth,v=t.minreducedheight;if(a.autoexpand!==!1){for(var m in h)p[m]||delete h[m];var g=e._fullLayout._reservedMargin;for(var w in g)for(var _ in g[w]){var b=g[w][_];o[_]=Math.max(o[_],b)}h.base={l:{val:0,size:l},r:{val:1,size:u},t:{val:1,size:c},b:{val:0,size:f}};for(var S in o){var x=0;for(var T in h)T!=="base"&&_A(h[T][S].size)&&(x=h[T][S].size>x?h[T][S].size:x);var A=Math.max(0,a[S]-x);o[S]=Math.max(0,o[S]-A)}for(var y in h){var E=h[y].l||{},M=h[y].b||{},C=E.val,k=E.size,D=M.val,L=M.size,P=r-o.r-o.l,R=i-o.t-o.b;for(var F in h){if(_A(k)&&h[F].r){var I=h[F].r.val,B=h[F].r.size;if(I>C){var O=(k*I+(B-P)*C)/(I-C),$=(B*(1-C)+(k-P)*(1-I))/(I-C);O+$>l+u&&(l=O,u=$)}}if(_A(L)&&h[F].t){var Y=h[F].t.val,K=h[F].t.size;if(Y>D){var j=(L*Y+(K-R)*D)/(Y-D),q=(K*(1-D)+(L-R)*(1-Y))/(Y-D);j+q>f+c&&(f=j,c=q)}}}}}var Q=Ei.constrain(r-a.l-a.r,hpe,d),U=Ei.constrain(i-a.t-a.b,dpe,v),V=Math.max(0,r-Q),X=Math.max(0,i-U);if(V){var G=(l+u)/V;G>1&&(l/=G,u/=G)}if(X){var H=(f+c)/X;H>1&&(f/=H,c/=H)}if(n.l=Math.round(l)+o.l,n.r=Math.round(u)+o.r,n.t=Math.round(c)+o.t,n.b=Math.round(f)+o.b,n.p=Math.round(a.pad),n.w=Math.round(r)-n.l-n.r,n.h=Math.round(i)-n.t-n.b,!t._replotting&&(fi.didMarginChange(s,n)||J4t(e))){"_redrawFromAutoMarginCount"in t?t._redrawFromAutoMarginCount++:t._redrawFromAutoMarginCount=1;var J=3*(1+Object.keys(p).length);if(t._redrawFromAutoMarginCount1)return!0}return!1};fi.graphJson=function(e,t=!1,r="json",i=!1,n=!1){(i&&t&&!e._fullData||i&&!t&&!e._fullLayout)&&fi.supplyDefaults(e);var a=i?e._fullData:e.data,o=i?e._fullLayout:e.layout,s=(e._transitionData||{})._frames;function l(f,h){if(typeof f=="function")return h?"_function_":null;if(Ei.isPlainObject(f)){var p={};return Object.keys(f).sort().forEach(function(g){if(["_","["].indexOf(g.charAt(0))===-1){if(typeof f[g]=="function"){h&&(p[g]="_function");return}p[g]=l(f[g],h)}}),p}var d=Array.isArray(f),v=Ei.isTypedArray(f);if((d||v)&&f.dtype&&f.shape){var m=f.bdata;return l({dtype:f.dtype,shape:f.shape,bdata:Ei.isArrayBuffer(m)?z4t.encode(m):m},h)}return d?f.map(function(g){return l(g,h)}):v?Ei.simpleMap(f,Ei.identity):Ei.isJSDate(f)?Ei.ms2DateTimeLocal(+f):f}var u={data:(a||[]).map(function(f){var h=l(f);return t&&delete h.fit,h})};if(!t&&(u.layout=l(o),i)){var c=o._size;u.layout.computed={margin:{b:c.b,l:c.l,r:c.r,t:c.t}}}return s&&(u.frames=l(s)),n&&(u.config=l(e._context,!0)),r==="object"?u:JSON.stringify(u)};fi.modifyFrames=function(e,t){var r,i,n,a=e._transitionData._frames,o=e._transitionData._frameHash;for(r=0;r0&&(e._transitioningWithDuration=!0),e._transitionData._interruptCallbacks.push(function(){i=!0}),r.redraw&&e._transitionData._interruptCallbacks.push(function(){return Wa.call("redraw",e)}),e._transitionData._interruptCallbacks.push(function(){e.emit("plotly_transitioninterrupted",[])});var h=0,p=0;function d(){return h++,function(){p++,!i&&p===h&&s(f)}}r.runFn(d),setTimeout(d())})}function s(f){if(e._transitionData)return a(e._transitionData._interruptCallbacks),Promise.resolve().then(function(){if(r.redraw)return Wa.call("redraw",e)}).then(function(){e._transitioning=!1,e._transitioningWithDuration=!1,e.emit("plotly_transitioned",[])}).then(f)}function l(){if(e._transitionData)return e._transitioning=!1,n(e._transitionData._interruptCallbacks)}var u=[fi.previousPromises,l,r.prepareFn,fi.rehover,fi.reselect,o],c=Ei.syncOrAsync(u,e);return(!c||!c.then)&&(c=Promise.resolve()),c.then(function(){return e})}fi.doCalcdata=function(e,t){var r=Nh.list(e),i=e._fullData,n=e._fullLayout,a,o,s,l=new Array(i.length),u=(e.calcdata||[]).slice();for(e.calcdata=l,n._numBoxes=0,n._numViolins=0,n._violinScaleGroupStats={},e._hmpixcount=0,e._hmlumcount=0,n._piecolormap={},n._sunburstcolormap={},n._treemapcolormap={},n._iciclecolormap={},n._funnelareacolormap={},s=0;sgpe,svgAttrs:()=>n6t,xlink:()=>mpe,xmlns:()=>i6t});var i6t,gpe,mpe,n6t,vd=Ci(()=>{"use strict";i6t="http://www.w3.org/2000/xmlns/",gpe="http://www.w3.org/2000/svg",mpe="http://www.w3.org/1999/xlink",n6t={xmlns:gpe,"xmlns:xlink":mpe}});var Yl={};Kn(Yl,{CAP_SHIFT:()=>u6t,FROM_BL:()=>a6t,FROM_BR:()=>s6t,FROM_TL:()=>o6t,LINE_SPACING:()=>l6t,MID_SHIFT:()=>c6t,OPPOSITE_SIDE:()=>f6t});var a6t,o6t,s6t,l6t,u6t,c6t,f6t,Xl=Ci(()=>{"use strict";a6t={left:0,center:.5,right:1,bottom:0,middle:.5,top:1},o6t={left:0,center:.5,right:1,bottom:1,middle:.5,top:0},s6t={left:1,center:.5,right:0,bottom:0,middle:.5,top:1},l6t=1.3,u6t=.7,c6t=.35,f6t={left:"right",right:"left",top:"bottom",bottom:"top"}});var ho=W(x0=>{"use strict";var gu=gi(),gd=it(),h6t=gd.strTranslate,gG=(vd(),Pt(pd)),d6t=(Xl(),Pt(Yl)).LINE_SPACING,p6t=/([^$]*)([$]+[^$]*[$]+)([^$]*)/,Tpe=e=>e?e.match(p6t):null;x0.matchTex=Tpe;x0.convertToTspans=function(e,t,r){var i=e.text(),n=!e.attr("data-notex")&&t&&t._context.typesetMath&&Tpe(i);n&&!y6t()&&(n=null);var a=gu.select(e.node().parentNode);if(a.empty())return;var o=e.attr("class")?e.attr("class").split(" ")[0]:"text";o+="-math",a.selectAll("svg."+o).remove(),a.selectAll("g."+o+"-group").remove(),e.style("display",null).attr({"data-unformatted":i,"data-math":"N"});function s(){a.empty()||(o=e.attr("class")+"-math",a.select("svg."+o).remove()),e.text("").style("white-space","pre");var l=k6t(e.node(),i);l&&e.style("pointer-events","all"),x0.positionText(e),r&&r.call(e)}return n?(t&&t._promises||[]).push(new Promise(function(l){e.style("display","none");var u=parseInt(e.node().style.fontSize,10),c={fontSize:u},f=e.attr("text-anchor");x6t(n[2],c,function(h,p,d){a.selectAll("svg."+o).remove(),a.selectAll("g."+o+"-group").remove();var v=h&&h.select("svg");if(!v||!v.node()){s(),l();return}e.style("display","none");var m=a.append("g").classed(o+"-group",!0).attr({"pointer-events":"none","data-unformatted":i,"data-math":"Y"});m.node().appendChild(v.node()),p&&p.node()&&v.node().insertBefore(p.node().cloneNode(!0),v.node().firstChild);var g=d.width,w=d.height;v.attr({class:o,height:w,preserveAspectRatio:"xMinYMin meet"}).style({overflow:"visible","pointer-events":"none","font-size":c.fontSize+"px"});var _=e.node().style.fill||"black",b=v.select("g");b.attr({fill:_,stroke:_});var S=b.node().getBoundingClientRect(),x=S.width,T=S.height;(x>g||T>w)&&(v.style("overflow","hidden"),S=v.node().getBoundingClientRect(),x=S.width,T=S.height);var A=+e.attr("x"),y=+e.attr("y"),E=u||e.node().getBoundingClientRect().height,M=-E/4;o[0]==="y"?m.attr({transform:"rotate("+[-90,A,y]+")"+h6t(-x/2,M-T/2)}):o[0]==="l"?y=M-T/2:o[0]==="a"&&o.indexOf("atitle")!==0?(A=0,y=M):(A=A-x*(f==="middle"?.5:f==="end"?1:0),y=y+M-T/2),v.attr({x:A,y}),r&&r.call(e,m),l(m)})})):s(),e};var v6t=/(<|<|<)/g,g6t=/(>|>|>)/g;function m6t(e){return e.replace(v6t,"\\lt ").replace(g6t,"\\gt ")}var mG=null,Ape=()=>typeof MathJax!="undefined"&&MathJax.version?parseInt(MathJax.version.split(".")[0]):null,ype=!1,xpe=!1;function y6t(){let e=Ape();return e===3||e===4?!0:(e===null?ype||(ype=!0,gd.warn("MathJax is not loaded. Math equations will not be rendered.")):xpe||(xpe=!0,gd.warn("Unsupported MathJax version:",MathJax.version)),!1)}function x6t(e,t,r){let i=Ape();var n;let a=function(){if(!mG){let u=MathJax._.output.svg_ts.SVG,c=gd.extendFlat({},MathJax.config.svg,{fontCache:"local"});i===4&&(c.linebreaks=gd.extendFlat({},c.linebreaks,{inline:!1})),mG=MathJax._.mathjax.mathjax.document(document,gd.extendFlat({},MathJax.config.options,{InputJax:MathJax.startup.input,OutputJax:new u(c)}))}let s="math-output-"+gd.randstr({},64);n=gu.select("body").append("div").attr({id:s}).style({visibility:"hidden",position:"absolute","font-size":t.fontSize+"px"});let l=m6t(e).replace(/^\$+|\$+$/g,"");return MathJax._.mathjax.mathjax.handleRetriesFor(function(){return mG.convert(l,{display:!1})}).then(function(u){n.node().appendChild(u)})},o=function(){let s=n.select(".MathJax"),l=!s.empty()&&n.select("svg").node();if(!l)gd.log("There was an error in the tex syntax.",e),r();else{let u=l.getBoundingClientRect(),c=s.select("defs");r(s,c,u)}n.remove()};Promise.resolve().then(a).then(o).catch(s=>{gd.log("MathJax typesetting failed.",e,s),n&&n.remove(),r()})}var Mpe={sup:"font-size:70%",sub:"font-size:70%",s:"text-decoration:line-through",u:"text-decoration:underline",b:"font-weight:bold",i:"font-style:italic",a:"cursor:pointer",span:"",em:"font-style:italic;font-weight:bold"},b6t={sub:"0.3em",sup:"-0.6em"},_6t={sub:"-0.21em",sup:"0.42em"},bpe="\u200B",_pe=["http:","https:","mailto:","",void 0,":"],Spe=x0.NEWLINES=/(\r\n?|\n)/g,xG=/(<[^<>]*>)/,bG=/<(\/?)([^ >]*)(\s+(.*))?>/i,w6t=//i;x0.BR_TAG_ALL=//gi;var Epe=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,kpe=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,Cpe=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,T6t=/(^|[\s"'])popup\s*=\s*("([\w=,]*)"|'([\w=,]*)')/i;function ob(e,t){if(!e)return null;var r=e.match(t),i=r&&(r[3]||r[4]);return i&&HD(i)}var A6t=/(^|;)\s*color:/;x0.plainText=function(e,t){t=t||{};for(var r=t.len!==void 0&&t.len!==-1?t.len:1/0,i=t.allowedTags!==void 0?t.allowedTags:["br"],n="...",a=n.length,o=e.split(xG),s=[],l="",u=0,c=0;ca?s.push(f.slice(0,Math.max(0,v-a))+n):s.push(f.slice(0,v));break}l=""}}return s.join("")};var M6t={mu:"\u03BC",amp:"&",lt:"<",gt:">",nbsp:"\xA0",times:"\xD7",plusmn:"\xB1",deg:"\xB0"},S6t=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function HD(e){return e.replace(S6t,function(t,r){var i;return r.charAt(0)==="#"?i=E6t(r.charAt(1)==="x"?parseInt(r.slice(2),16):parseInt(r.slice(1),10)):i=M6t[r],i||t})}x0.convertEntities=HD;function E6t(e){if(!(e>1114111)){var t=String.fromCodePoint;if(t)return t(e);var r=String.fromCharCode;return e<=65535?r(e):r((e>>10)+55232,e%1024+56320)}}function k6t(e,t){t=t.replace(Spe," ");var r=!1,i=[],n,a=-1;function o(){a++;var x=document.createElementNS(gG.svg,"tspan");gu.select(x).attr({class:"line",dy:a*d6t+"em"}),e.appendChild(x),n=x;var T=i;if(i=[{node:x}],T.length>1)for(var A=1;A.",t);return}var T=i.pop();x!==T.type&&gd.log("Start tag <"+T.type+"> doesnt match end tag <"+x+">. Pretending it did match.",t),n=i[i.length-1].node}var c=w6t.test(t);c?o():(n=e,i=[{node:e}]);for(var f=t.split(xG),h=0;h{"use strict";var C6t=gi(),TA=un(),jD=it(),sb=ai(),D6t=Yx().isValid;function F6t(e,t,r){var i=t?jD.nestedProperty(e,t).get()||{}:e,n=i[r||"color"];n&&n._inputArray&&(n=n._inputArray);var a=!1;if(jD.isArrayOrTypedArray(n)){for(var o=0;o=0;i--,n++){var a=e[i];r[n]=[1-a[0],a[1]]}return r}function Rpe(e,t){t=t||{};for(var r=e.domain,i=e.range,n=i.length,a=new Array(n),o=0;o{"use strict";var Bpe=(NV(),Pt(OV)),P6t=Bpe.FORMAT_LINK,I6t=Bpe.DATE_FORMAT_LINK;function R6t(e,t){return{valType:"string",dflt:"",editType:"none",description:(t?_G:qpe)("hover text",e)+["By default the values are formatted using "+(t?"generic number format":"`"+e+"axis.hoverformat`")+"."].join(" ")}}function _G(e,t){return["Sets the "+e+" formatting rule"+(t?" for `"+t+"`":""),"using d3 formatting mini-languages","which are very similar to those in Python. For numbers, see: "+P6t+"."].join(" ")}function qpe(e,t){return _G(e,t)+[" And for dates see: "+I6t+".","We add two items to d3's date formatter:","*%h* for half of the year as a decimal number as well as","*%{n}f* for fractional seconds","with n digits. For example, *2016-10-13 09:15:23.456* with tickformat","*%H~%M~%S.%2f* would display *09~15~23.46*"].join(" ")}Ope.exports={axisHoverFormat:R6t,descriptionOnlyNumbers:_G,descriptionWithDates:qpe}});var nc=W((Cqr,rve)=>{"use strict";var Npe=jo(),Mw=jl(),tve=Ru().dash,TG=nn().extendFlat,Upe=Ia().templatedArray,kqr=$a().templateFormatStringDescription,Vpe=ws().descriptionWithDates,z6t=(ta(),Pt(ra)).ONEDAY,l1=(Wl(),Pt($l)),B6t=l1.HOUR_PATTERN,q6t=l1.WEEKDAY_PATTERN,wG={valType:"enumerated",values:["auto","linear","array"],editType:"ticks",impliedEdits:{tick0:void 0,dtick:void 0}},O6t=TG({},wG,{values:wG.values.slice().concat(["sync"])});function Gpe(e){return{valType:"integer",min:0,dflt:e?5:0,editType:"ticks"}}var Hpe={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},jpe={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},$pe={valType:"data_array",editType:"ticks"},Wpe={valType:"enumerated",values:["outside","inside",""],editType:"ticks"};function Ype(e){var t={valType:"number",min:0,editType:"ticks"};return e||(t.dflt=5),t}function Xpe(e){var t={valType:"number",min:0,editType:"ticks"};return e||(t.dflt=1),t}var Zpe={valType:"color",dflt:Mw.defaultLine,editType:"ticks"},Kpe={valType:"color",dflt:Mw.lightLine,editType:"ticks"};function Jpe(e){var t={valType:"number",min:0,editType:"ticks"};return e||(t.dflt=1),t}var Qpe=TG({},tve,{editType:"ticks"}),eve={valType:"boolean",editType:"ticks"};rve.exports={visible:{valType:"boolean",editType:"plot"},color:{valType:"color",dflt:Mw.defaultLine,editType:"ticks"},title:{text:{valType:"string",editType:"ticks"},font:Npe({editType:"ticks",description:"Sets this axis' title font."}),standoff:{valType:"number",min:0,editType:"ticks"},editType:"ticks"},type:{valType:"enumerated",values:["-","linear","log","date","category","multicategory"],dflt:"-",editType:"calc",_noTemplating:!0},autotypenumbers:{valType:"enumerated",values:["convert types","strict"],dflt:"convert types",editType:"calc"},autorange:{valType:"enumerated",values:[!0,!1,"reversed","min reversed","max reversed","min","max"],dflt:!0,editType:"axrange",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},autorangeoptions:{minallowed:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},maxallowed:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},clipmin:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},clipmax:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},include:{valType:"any",arrayOk:!0,editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},editType:"plot"},rangemode:{valType:"enumerated",values:["normal","tozero","nonnegative"],dflt:"normal",editType:"plot"},range:{valType:"info_array",items:[{valType:"any",editType:"axrange",impliedEdits:{"^autorange":!1},anim:!0},{valType:"any",editType:"axrange",impliedEdits:{"^autorange":!1},anim:!0}],editType:"axrange",impliedEdits:{autorange:!1},anim:!0},minallowed:{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},maxallowed:{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},fixedrange:{valType:"boolean",dflt:!1,editType:"calc"},modebardisable:{valType:"flaglist",flags:["autoscale","zoominout"],extras:["none"],dflt:"none",editType:"modebar"},insiderange:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},scaleanchor:{valType:"enumerated",values:[l1.idRegex.x.toString(),l1.idRegex.y.toString(),!1],editType:"plot"},scaleratio:{valType:"number",min:0,dflt:1,editType:"plot"},constrain:{valType:"enumerated",values:["range","domain"],editType:"plot"},constraintoward:{valType:"enumerated",values:["left","center","right","top","middle","bottom"],editType:"plot"},matches:{valType:"enumerated",values:[l1.idRegex.x.toString(),l1.idRegex.y.toString()],editType:"calc"},rangebreaks:Upe("rangebreak",{enabled:{valType:"boolean",dflt:!0,editType:"calc"},bounds:{valType:"info_array",items:[{valType:"any",editType:"calc"},{valType:"any",editType:"calc"}],editType:"calc"},pattern:{valType:"enumerated",values:[q6t,B6t,""],editType:"calc"},values:{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"any",editType:"calc"}},dvalue:{valType:"number",editType:"calc",min:0,dflt:z6t},editType:"calc"}),tickmode:O6t,nticks:Gpe(),tick0:Hpe,dtick:jpe,ticklabelstep:{valType:"integer",min:1,dflt:1,editType:"ticks"},tickvals:$pe,ticktext:{valType:"data_array",editType:"ticks"},ticks:Wpe,tickson:{valType:"enumerated",values:["labels","boundaries"],dflt:"labels",editType:"ticks"},ticklabelmode:{valType:"enumerated",values:["instant","period"],dflt:"instant",editType:"ticks"},ticklabelposition:{valType:"enumerated",values:["outside","inside","outside top","inside top","outside left","inside left","outside right","inside right","outside bottom","inside bottom"],dflt:"outside",editType:"calc"},ticklabeloverflow:{valType:"enumerated",values:["allow","hide past div","hide past domain"],editType:"calc"},ticklabelshift:{valType:"integer",dflt:0,editType:"ticks"},ticklabelstandoff:{valType:"integer",dflt:0,editType:"ticks"},ticklabelindex:{valType:"integer",arrayOk:!0,editType:"calc"},mirror:{valType:"enumerated",values:[!0,"ticks",!1,"all","allticks"],dflt:!1,editType:"ticks+layoutstyle"},ticklen:Ype(),tickwidth:Xpe(),tickcolor:Zpe,showticklabels:{valType:"boolean",dflt:!0,editType:"ticks"},labelalias:{valType:"any",dflt:!1,editType:"ticks"},automargin:{valType:"flaglist",flags:["height","width","left","right","top","bottom"],extras:[!0,!1],dflt:!1,editType:"ticks"},showspikes:{valType:"boolean",dflt:!1,editType:"modebar"},spikecolor:{valType:"color",dflt:null,editType:"none"},spikethickness:{valType:"number",dflt:3,editType:"none"},spikedash:TG({},tve,{dflt:"dash",editType:"none"}),spikemode:{valType:"flaglist",flags:["toaxis","across","marker"],dflt:"toaxis",editType:"none"},spikesnap:{valType:"enumerated",values:["data","cursor","hovered data"],dflt:"hovered data",editType:"none"},tickfont:Npe({editType:"ticks"}),tickangle:{valType:"angle",dflt:"auto",editType:"ticks"},autotickangles:{valType:"info_array",freeLength:!0,items:{valType:"angle"},dflt:[0,30,90],editType:"ticks"},tickprefix:{valType:"string",dflt:"",editType:"ticks"},showtickprefix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},ticksuffix:{valType:"string",dflt:"",editType:"ticks"},showticksuffix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},showexponent:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},exponentformat:{valType:"enumerated",values:["none","e","E","power","SI","B","SI extended"],dflt:"B",editType:"ticks"},minexponent:{valType:"number",dflt:3,min:0,editType:"ticks"},separatethousands:{valType:"boolean",dflt:!1,editType:"ticks"},tickformat:{valType:"string",dflt:"",editType:"ticks",description:Vpe("tick label")},tickformatstops:Upe("tickformatstop",{enabled:{valType:"boolean",dflt:!0,editType:"ticks"},dtickrange:{valType:"info_array",items:[{valType:"any",editType:"ticks"},{valType:"any",editType:"ticks"}],editType:"ticks"},value:{valType:"string",dflt:"",editType:"ticks"},editType:"ticks"}),hoverformat:{valType:"string",dflt:"",editType:"none",description:Vpe("hover text")},unifiedhovertitle:{text:{valType:"string",dflt:"",editType:"none"},editType:"none"},showline:{valType:"boolean",dflt:!1,editType:"ticks+layoutstyle"},linecolor:{valType:"color",dflt:Mw.defaultLine,editType:"layoutstyle"},linewidth:{valType:"number",min:0,dflt:1,editType:"ticks+layoutstyle"},showgrid:eve,gridcolor:Kpe,gridwidth:Jpe(),griddash:Qpe,zeroline:{valType:"boolean",editType:"ticks"},zerolinecolor:{valType:"color",dflt:Mw.defaultLine,editType:"ticks"},zerolinelayer:{valType:"enumerated",values:["above traces","below traces"],dflt:"below traces",editType:"plot"},zerolinewidth:{valType:"number",dflt:1,editType:"ticks"},showdividers:{valType:"boolean",dflt:!0,editType:"ticks"},dividercolor:{valType:"color",dflt:Mw.defaultLine,editType:"ticks"},dividerwidth:{valType:"number",dflt:1,editType:"ticks"},anchor:{valType:"enumerated",values:["free",l1.idRegex.x.toString(),l1.idRegex.y.toString()],editType:"plot"},side:{valType:"enumerated",values:["top","bottom","left","right"],editType:"plot"},overlaying:{valType:"enumerated",values:["free",l1.idRegex.x.toString(),l1.idRegex.y.toString()],editType:"plot"},minor:{tickmode:wG,nticks:Gpe("minor"),tick0:Hpe,dtick:jpe,tickvals:$pe,ticks:Wpe,ticklen:Ype("minor"),tickwidth:Xpe("minor"),tickcolor:Zpe,gridcolor:Kpe,gridwidth:Jpe("minor"),griddash:Qpe,showgrid:eve,editType:"ticks"},minorloglabels:{valType:"enumerated",values:["small digits","complete","none"],dflt:"small digits",editType:"calc"},layer:{valType:"enumerated",values:["above traces","below traces"],dflt:"above traces",editType:"plot"},domain:{valType:"info_array",items:[{valType:"number",min:0,max:1,editType:"plot"},{valType:"number",min:0,max:1,editType:"plot"}],dflt:[0,1],editType:"plot"},position:{valType:"number",min:0,max:1,dflt:0,editType:"plot"},autoshift:{valType:"boolean",dflt:!1,editType:"plot"},shift:{valType:"number",editType:"plot"},categoryorder:{valType:"enumerated",values:["trace","category ascending","category descending","array","total ascending","total descending","min ascending","min descending","max ascending","max descending","sum ascending","sum descending","mean ascending","mean descending","geometric mean ascending","geometric mean descending","median ascending","median descending"],dflt:"trace",editType:"calc"},categoryarray:{valType:"data_array",editType:"calc"},uirevision:{valType:"any",editType:"none"},editType:"calc"}});var $D=W((Dqr,nve)=>{"use strict";var Ts=nc(),ive=jo(),AG=nn().extendFlat,N6t=cs().overrideAll;nve.exports=N6t({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:Ts.linecolor,outlinewidth:Ts.linewidth,bordercolor:Ts.linecolor,borderwidth:{valType:"number",min:0,dflt:0},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},tickmode:Ts.minor.tickmode,nticks:Ts.nticks,tick0:Ts.tick0,dtick:AG({},Ts.dtick,{}),tickvals:Ts.tickvals,ticktext:Ts.ticktext,ticks:AG({},Ts.ticks,{dflt:""}),ticklabeloverflow:AG({},Ts.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:Ts.ticklen,tickwidth:Ts.tickwidth,tickcolor:Ts.tickcolor,ticklabelstep:Ts.ticklabelstep,showticklabels:Ts.showticklabels,labelalias:Ts.labelalias,tickfont:ive({description:"Sets the color bar's tick label font"}),tickangle:Ts.tickangle,tickformat:Ts.tickformat,tickformatstops:Ts.tickformatstops,tickprefix:Ts.tickprefix,showtickprefix:Ts.showtickprefix,ticksuffix:Ts.ticksuffix,showticksuffix:Ts.showticksuffix,separatethousands:Ts.separatethousands,exponentformat:Ts.exponentformat,minexponent:Ts.minexponent,showexponent:Ts.showexponent,title:{text:{valType:"string"},font:ive({description:"Sets this color bar's title font."}),side:{valType:"enumerated",values:["right","top","bottom"]}}},"colorbars","from-root")});var Fo=W((Lqr,ove)=>{"use strict";var U6t=$D(),V6t=(lw(),Pt(cA)).counter,G6t=(Jx(),Pt(Kx)).default,ave=Yx().scales,Fqr=G6t(ave);function WD(e){return"`"+e+"`"}ove.exports=function(t,r){t=t||"",r=r||{};var i=r.cLetter||"c",n="onlyIfNumerical"in r?r.onlyIfNumerical:!!t,a="noScale"in r?r.noScale:t==="marker.line",o="showScaleDflt"in r?r.showScaleDflt:i==="z",s=typeof r.colorscaleDflt=="string"?ave[r.colorscaleDflt]:null,l=r.editTypeOverride||"",u=t?t+".":"",c,f;"colorAttr"in r?(c=r.colorAttr,f=r.colorAttr):(c={z:"z",c:"color"}[i],f="in "+WD(u+c));var h=n?" Has an effect only if "+f+" is set to a numerical array.":"",p=i+"auto",d=i+"min",v=i+"max",m=i+"mid",g=WD(u+p),w=WD(u+d),_=WD(u+v),b=w+" and "+_,S={};S[d]=S[v]=void 0;var x={};x[p]=!1;var T={};return c==="color"&&(T.color={valType:"color",arrayOk:!0,editType:l||"style"},r.anim&&(T.color.anim=!0)),T[p]={valType:"boolean",dflt:!0,editType:"calc",impliedEdits:S},T[d]={valType:"number",dflt:null,editType:l||"plot",impliedEdits:x},T[v]={valType:"number",dflt:null,editType:l||"plot",impliedEdits:x},T[m]={valType:"number",dflt:null,editType:"calc",impliedEdits:S},T.colorscale={valType:"colorscale",editType:"calc",dflt:s,impliedEdits:{autocolorscale:!1}},T.autocolorscale={valType:"boolean",dflt:r.autoColorDflt!==!1,editType:"calc",impliedEdits:{colorscale:void 0}},T.reversescale={valType:"boolean",dflt:!1,editType:"plot"},a||(T.showscale={valType:"boolean",dflt:o,editType:"calc"},T.colorbar=U6t),r.noColorAxis||(T.coloraxis={valType:"subplotid",regex:V6t("coloraxis"),dflt:null,editType:"calc"}),T}});var SG=W((Pqr,sve)=>{"use strict";var H6t=nn().extendFlat,j6t=Fo(),MG=Yx().scales;sve.exports={editType:"calc",colorscale:{editType:"calc",sequential:{valType:"colorscale",dflt:MG.Reds,editType:"calc"},sequentialminus:{valType:"colorscale",dflt:MG.Blues,editType:"calc"},diverging:{valType:"colorscale",dflt:MG.RdBu,editType:"calc"}},coloraxis:H6t({_isSubplotObj:!0,editType:"calc"},j6t("",{colorAttr:"corresponding trace color array(s)",noColorAxis:!0,showScaleDflt:!0}))}});var EG=W((Iqr,lve)=>{"use strict";var $6t=it();lve.exports=function(t){return $6t.isPlainObject(t.colorbar)}});var DG=W(CG=>{"use strict";var kG=un(),uve=it(),cve=(ta(),Pt(ra)),W6t=cve.ONEDAY,Y6t=cve.ONEWEEK;CG.dtick=function(e,t){var r=t==="log",i=t==="date",n=t==="category",a=i?W6t:1;if(!e)return a;if(kG(e))return e=Number(e),e<=0?a:n?Math.max(1,Math.round(e)):i?Math.max(.1,e):e;if(typeof e!="string"||!(i||r))return a;var o=e.charAt(0),s=e.slice(1);return s=kG(s)?Number(s):0,s<=0||!(i&&o==="M"&&s===Math.round(s)||r&&o==="L"||r&&o==="D"&&(s===1||s===2))?a:e};CG.tick0=function(e,t,r,i){if(t==="date")return uve.cleanDate(e,uve.dateTick0(r,i%Y6t===0?1:0));if(!(i==="D1"||i==="D2"))return kG(e)?Number(e):0}});var lb=W((zqr,hve)=>{"use strict";var fve=DG(),X6t=it().isArrayOrTypedArray,Z6t=wc().isTypedArraySpec,K6t=wc().decodeTypedArraySpec;hve.exports=function(t,r,i,n,a={}){var o=a.isMinor,s=o?t.minor||{}:t,l=o?r.minor:r,u=o?"minor.":"";function c(b){var S=s[b];return Z6t(S)&&(S=K6t(S)),S!==void 0?S:(l._template||{})[b]}var f=c("tick0"),h=c("dtick"),p=c("tickvals"),d=c("overlaying"),v=n==="category"||n==="multicategory",m;X6t(p)?m="array":h?m="linear":d&&!v?m="sync":m="auto";var g=i(u+"tickmode",m);if(g==="auto"||g==="sync")i(u+"nticks");else if(g==="linear"){var w=l.dtick=fve.dtick(h,n);l.tick0=fve.tick0(f,n,r.calendar,w)}else if(n!=="multicategory"){var _=i(u+"tickvals");_===void 0?l.tickmode="auto":o||i("ticktext")}}});var Sw=W((Bqr,pve)=>{"use strict";var FG=it(),dve=nc();pve.exports=function(t,r,i,n){var a=n.isMinor,o=a?t.minor||{}:t,s=a?r.minor:r,l=a?dve.minor:dve,u=a?"minor.":"",c=FG.coerce2(o,s,l,"ticklen",a?(r.ticklen||5)*.6:void 0),f=FG.coerce2(o,s,l,"tickwidth",a?r.tickwidth||1:void 0),h=FG.coerce2(o,s,l,"tickcolor",(a?r.tickcolor:void 0)||s.color),p=i(u+"ticks",!a&&n.outerTicks||c||f||h?"outside":"");p||(delete s.ticklen,delete s.tickwidth,delete s.tickcolor)}});var LG=W((qqr,vve)=>{"use strict";vve.exports=function(t){var r=["showexponent","showtickprefix","showticksuffix"],i=r.filter(function(a){return t[a]!==void 0}),n=function(a){return t[a]===t[i[0]]};if(i.every(n)||i.length===1)return t[i[0]]}});var ef=W((Oqr,gve)=>{"use strict";var YD=it(),J6t=Ia();gve.exports=function(t,r,i){var n=i.name,a=i.inclusionAttr||"visible",o=r[n],s=YD.isArrayOrTypedArray(t[n])?t[n]:[],l=r[n]=[],u=J6t.arrayTemplater(r,n,a),c,f;for(c=0;c{"use strict";var PG=it(),Q6t=ai().contrast,mve=nc(),eTt=LG(),tTt=ef();yve.exports=function(t,r,i,n,a){a||(a={});var o=i("labelalias");PG.isPlainObject(o)||delete r.labelalias;var s=eTt(t),l=i("showticklabels");if(l){a.noTicklabelshift||i("ticklabelshift"),a.noTicklabelstandoff||i("ticklabelstandoff");var u=a.font||{},c=r.color,f=r.ticklabelposition||"",h=f.indexOf("inside")!==-1?Q6t(a.bgColor):c&&c!==mve.color.dflt?c:u.color;if(PG.coerceFont(i,"tickfont",u,{overrideDflt:{color:h}}),!a.noTicklabelstep&&n!=="multicategory"&&n!=="log"&&i("ticklabelstep"),!a.noAng){var p=i("tickangle");!a.noAutotickangles&&p==="auto"&&i("autotickangles")}if(n!=="category"){var d=i("tickformat");tTt(t,r,{name:"tickformatstops",inclusionAttr:"enabled",handleItemDefaults:rTt}),r.tickformatstops.length||delete r.tickformatstops,!a.noExp&&!d&&n!=="date"&&(i("showexponent",s),i("exponentformat"),i("minexponent"),i("separatethousands"))}!a.noMinorloglabels&&n==="log"&&i("minorloglabels")}};function rTt(e,t){function r(n,a){return PG.coerce(e,t,mve.tickformatstops,n,a)}var i=r("enabled");i&&(r("dtickrange"),r("value"))}});var Dy=W((Uqr,xve)=>{"use strict";var iTt=LG();xve.exports=function(t,r,i,n,a){a||(a={});var o=a.tickSuffixDflt,s=iTt(t),l=i("tickprefix");l&&i("showtickprefix",s);var u=i("ticksuffix",o);u&&i("showticksuffix",s)}});var IG=W((Vqr,bve)=>{"use strict";var Fy=it(),nTt=Ia(),aTt=lb(),oTt=Sw(),sTt=Cy(),lTt=Dy(),uTt=$D();bve.exports=function(t,r,i){var n=nTt.newContainer(r,"colorbar"),a=t.colorbar||{};function o(M,C){return Fy.coerce(a,n,uTt,M,C)}var s=i.margin||{t:0,b:0,l:0,r:0},l=i.width-s.l-s.r,u=i.height-s.t-s.b,c=o("orientation"),f=c==="v",h=o("thicknessmode");o("thickness",h==="fraction"?30/(f?l:u):30);var p=o("lenmode");o("len",p==="fraction"?1:f?u:l);var d=o("yref"),v=o("xref"),m=d==="paper",g=v==="paper",w,_,b,S="left";f?(b="middle",S=g?"left":"right",w=g?1.02:1,_=.5):(b=m?"bottom":"top",S="center",w=.5,_=m?1.02:1),Fy.coerce(a,n,{x:{valType:"number",min:g?-2:0,max:g?3:1,dflt:w}},"x"),Fy.coerce(a,n,{y:{valType:"number",min:m?-2:0,max:m?3:1,dflt:_}},"y"),o("xanchor",S),o("xpad"),o("yanchor",b),o("ypad"),Fy.noneOrAll(a,n,["x","y"]),o("outlinecolor"),o("outlinewidth"),o("bordercolor"),o("borderwidth"),o("bgcolor");var x=Fy.coerce(a,n,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:f?["outside","inside","outside top","inside top","outside bottom","inside bottom"]:["outside","inside","outside left","inside left","outside right","inside right"]}},"ticklabelposition");o("ticklabeloverflow",x.indexOf("inside")!==-1?"hide past domain":"hide past div"),aTt(a,n,o,"linear");var T=i.font,A={noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0,outerTicks:!1,font:T};x.indexOf("inside")!==-1&&(A.bgColor="black"),lTt(a,n,o,"linear",A),sTt(a,n,o,"linear",A),oTt(a,n,o,"linear",A),o("title.text",i._dfltTitle.colorbar);var y=n.showticklabels?n.tickfont:T,E=Fy.extendFlat({},T,{family:y.family,size:Fy.bigFont(y.size)});Fy.coerceFont(o,"title.font",E),o("title.side",f?"top":"right")}});var zu=W((Gqr,Tve)=>{"use strict";var _ve=un(),zG=it(),cTt=EG(),fTt=IG(),wve=Yx().isValid,hTt=xi().traceIs;function RG(e,t){var r=t.slice(0,t.length-1);return t?zG.nestedProperty(e,r).get()||{}:e}Tve.exports=function e(t,r,i,n,a){var o=a.prefix,s=a.cLetter,l="_module"in r,u=RG(t,o),c=RG(r,o),f=RG(r._template||{},o)||{},h=function(){return delete t.coloraxis,delete r.coloraxis,e(t,r,i,n,a)};if(l){var p=i._colorAxes||{},d=n(o+"coloraxis");if(d){var v=hTt(r,"contour")&&zG.nestedProperty(r,"contours.coloring").get()||"heatmap",m=p[d];m?(m[2].push(h),m[0]!==v&&(m[0]=!1,zG.warn(["Ignoring coloraxis:",d,"setting","as it is linked to incompatible colorscales."].join(" ")))):p[d]=[v,r,[h]];return}}var g=u[s+"min"],w=u[s+"max"],_=_ve(g)&&_ve(w)&&g{"use strict";var Ave=it(),dTt=Ia(),Mve=SG(),pTt=zu();Sve.exports=function(t,r){function i(f,h){return Ave.coerce(t,r,Mve,f,h)}i("colorscale.sequential"),i("colorscale.sequentialminus"),i("colorscale.diverging");var n=r._colorAxes,a,o;function s(f,h){return Ave.coerce(a,o,Mve.coloraxis,f,h)}for(var l in n){var u=n[l];if(u[0])a=t[l]||{},o=dTt.newContainer(r,l,"coloraxis"),o._name=l,pTt(a,o,r,s,{prefix:"",cLetter:"c"});else{for(var c=0;c{"use strict";var vTt=it(),gTt=Mc().hasColorscale,mTt=Mc().extractOpts;kve.exports=function(t,r){function i(c,f){var h=c["_"+f];h!==void 0&&(c[f]=h)}function n(c,f){var h=f.container?vTt.nestedProperty(c,f.container).get():c;if(h)if(h.coloraxis)h._colorAx=r[h.coloraxis];else{var p=mTt(h),d=p.auto;(d||p.min===void 0)&&i(h,f.min),(d||p.max===void 0)&&i(h,f.max),p.autocolorscale&&i(h,"colorscale")}}for(var a=0;a{"use strict";var Dve=un(),BG=it(),yTt=Mc().extractOpts;Fve.exports=function(t,r,i){var n=t._fullLayout,a=i.vals,o=i.containerStr,s=o?BG.nestedProperty(r,o).get():r,l=yTt(s),u=l.auto!==!1,c=l.min,f=l.max,h=l.mid,p=function(){return BG.aggNums(Math.min,null,a)},d=function(){return BG.aggNums(Math.max,null,a)};if(c===void 0?c=p():u&&(s._colorAx&&Dve(c)?c=Math.min(c,p()):c=p()),f===void 0?f=d():u&&(s._colorAx&&Dve(f)?f=Math.max(f,d()):f=d()),u&&h!==void 0&&(f-h>h-c?c=h-(f-h):f-h=0?v=n.colorscale.sequential:v=n.colorscale.sequentialminus,l._sync("colorscale",v)}}});var es=W((Wqr,Lve)=>{"use strict";var XD=Yx(),Ew=Mc();Lve.exports={moduleType:"component",name:"colorscale",attributes:Fo(),layoutAttributes:SG(),supplyLayoutDefaults:Eve(),handleDefaults:zu(),crossTraceDefaults:Cve(),calc:tf(),scales:XD.scales,defaultScale:XD.defaultScale,getScale:XD.get,isValidScale:XD.isValid,hasColorscale:Ew.hasColorscale,extractOpts:Ew.extractOpts,extractScale:Ew.extractScale,flipScale:Ew.flipScale,makeColorScaleFunc:Ew.makeColorScaleFunc,makeColorScaleFuncFromTrace:Ew.makeColorScaleFuncFromTrace}});var Wo=W((Yqr,Ive)=>{"use strict";var Pve=it(),xTt=wc().isTypedArraySpec;Ive.exports={hasLines:function(e){return e.visible&&e.mode&&e.mode.indexOf("lines")!==-1},hasMarkers:function(e){return e.visible&&(e.mode&&e.mode.indexOf("markers")!==-1||e.type==="splom")},hasText:function(e){return e.visible&&e.mode&&e.mode.indexOf("text")!==-1},isBubble:function(e){var t=e.marker;return Pve.isPlainObject(t)&&(Pve.isArrayOrTypedArray(t.size)||xTt(t.size))}}});var AA=W((Xqr,Rve)=>{"use strict";var bTt=un();Rve.exports=function(t,r){r||(r=2);var i=t.marker,n=i.sizeref||1,a=i.sizemin||0,o=i.sizemode==="area"?function(s){return Math.sqrt(s/n)}:function(s){return s/n};return function(s){var l=o(s/r);return bTt(l)&&l>0?Math.max(l,a):0}}});var rh=W(Sc=>{"use strict";var MA=it();Sc.getSubplot=function(e){return e.subplot||e.xaxis+e.yaxis||e.geo};Sc.isTraceInSubplots=function(e,t){if(e.type==="splom"){for(var r=e.xaxes||[],i=e.yaxes||[],n=0;n=0&&r.index{var qG={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},ATt=/([astvzqmhlc])([^astvzqmhlc]*)/gi,MTt=/-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/gi;function STt(e){let t=[];return e.replace(ATt,(r,i,n)=>{let a=i.toLowerCase(),o=i,s=ETt(n);for(a==="m"&&s.length>2&&(t.push([o,...s.splice(0,2)]),a="l",o=o==="m"?"l":"L");;){if(s.length===qG[a])return t.push([o,...s]),"";if(s.length{"use strict";var kTt=OG(),Wr=function(e,t){return t?Math.round(e*(t=Math.pow(10,t)))/t:Math.round(e)},Un="M0,0Z",Ove=Math.sqrt(2),Ly=Math.sqrt(3),NG=Math.PI,UG=Math.cos,VG=Math.sin;Hve.exports={circle:{n:0,f:function(e,t,r){if(Vn(t))return Un;var i=Wr(e,2),n="M"+i+",0A"+i+","+i+" 0 1,1 0,-"+i+"A"+i+","+i+" 0 0,1 "+i+",0Z";return r?Gn(t,r,n):n}},square:{n:1,f:function(e,t,r){if(Vn(t))return Un;var i=Wr(e,2);return Gn(t,r,"M"+i+","+i+"H-"+i+"V-"+i+"H"+i+"Z")}},diamond:{n:2,f:function(e,t,r){if(Vn(t))return Un;var i=Wr(e*1.3,2);return Gn(t,r,"M"+i+",0L0,"+i+"L-"+i+",0L0,-"+i+"Z")}},cross:{n:3,f:function(e,t,r){if(Vn(t))return Un;var i=Wr(e*.4,2),n=Wr(e*1.2,2);return Gn(t,r,"M"+n+","+i+"H"+i+"V"+n+"H-"+i+"V"+i+"H-"+n+"V-"+i+"H-"+i+"V-"+n+"H"+i+"V-"+i+"H"+n+"Z")}},x:{n:4,f:function(e,t,r){if(Vn(t))return Un;var i=Wr(e*.8/Ove,2),n="l"+i+","+i,a="l"+i+",-"+i,o="l-"+i+",-"+i,s="l-"+i+","+i;return Gn(t,r,"M0,"+i+n+a+o+a+o+s+o+s+n+s+n+"Z")}},"triangle-up":{n:5,f:function(e,t,r){if(Vn(t))return Un;var i=Wr(e*2/Ly,2),n=Wr(e/2,2),a=Wr(e,2);return Gn(t,r,"M-"+i+","+n+"H"+i+"L0,-"+a+"Z")}},"triangle-down":{n:6,f:function(e,t,r){if(Vn(t))return Un;var i=Wr(e*2/Ly,2),n=Wr(e/2,2),a=Wr(e,2);return Gn(t,r,"M-"+i+",-"+n+"H"+i+"L0,"+a+"Z")}},"triangle-left":{n:7,f:function(e,t,r){if(Vn(t))return Un;var i=Wr(e*2/Ly,2),n=Wr(e/2,2),a=Wr(e,2);return Gn(t,r,"M"+n+",-"+i+"V"+i+"L-"+a+",0Z")}},"triangle-right":{n:8,f:function(e,t,r){if(Vn(t))return Un;var i=Wr(e*2/Ly,2),n=Wr(e/2,2),a=Wr(e,2);return Gn(t,r,"M-"+n+",-"+i+"V"+i+"L"+a+",0Z")}},"triangle-ne":{n:9,f:function(e,t,r){if(Vn(t))return Un;var i=Wr(e*.6,2),n=Wr(e*1.2,2);return Gn(t,r,"M-"+n+",-"+i+"H"+i+"V"+n+"Z")}},"triangle-se":{n:10,f:function(e,t,r){if(Vn(t))return Un;var i=Wr(e*.6,2),n=Wr(e*1.2,2);return Gn(t,r,"M"+i+",-"+n+"V"+i+"H-"+n+"Z")}},"triangle-sw":{n:11,f:function(e,t,r){if(Vn(t))return Un;var i=Wr(e*.6,2),n=Wr(e*1.2,2);return Gn(t,r,"M"+n+","+i+"H-"+i+"V-"+n+"Z")}},"triangle-nw":{n:12,f:function(e,t,r){if(Vn(t))return Un;var i=Wr(e*.6,2),n=Wr(e*1.2,2);return Gn(t,r,"M-"+i+","+n+"V-"+i+"H"+n+"Z")}},pentagon:{n:13,f:function(e,t,r){if(Vn(t))return Un;var i=Wr(e*.951,2),n=Wr(e*.588,2),a=Wr(-e,2),o=Wr(e*-.309,2),s=Wr(e*.809,2);return Gn(t,r,"M"+i+","+o+"L"+n+","+s+"H-"+n+"L-"+i+","+o+"L0,"+a+"Z")}},hexagon:{n:14,f:function(e,t,r){if(Vn(t))return Un;var i=Wr(e,2),n=Wr(e/2,2),a=Wr(e*Ly/2,2);return Gn(t,r,"M"+a+",-"+n+"V"+n+"L0,"+i+"L-"+a+","+n+"V-"+n+"L0,-"+i+"Z")}},hexagon2:{n:15,f:function(e,t,r){if(Vn(t))return Un;var i=Wr(e,2),n=Wr(e/2,2),a=Wr(e*Ly/2,2);return Gn(t,r,"M-"+n+","+a+"H"+n+"L"+i+",0L"+n+",-"+a+"H-"+n+"L-"+i+",0Z")}},octagon:{n:16,f:function(e,t,r){if(Vn(t))return Un;var i=Wr(e*.924,2),n=Wr(e*.383,2);return Gn(t,r,"M-"+n+",-"+i+"H"+n+"L"+i+",-"+n+"V"+n+"L"+n+","+i+"H-"+n+"L-"+i+","+n+"V-"+n+"Z")}},star:{n:17,f:function(e,t,r){if(Vn(t))return Un;var i=e*1.4,n=Wr(i*.225,2),a=Wr(i*.951,2),o=Wr(i*.363,2),s=Wr(i*.588,2),l=Wr(-i,2),u=Wr(i*-.309,2),c=Wr(i*.118,2),f=Wr(i*.809,2),h=Wr(i*.382,2);return Gn(t,r,"M"+n+","+u+"H"+a+"L"+o+","+c+"L"+s+","+f+"L0,"+h+"L-"+s+","+f+"L-"+o+","+c+"L-"+a+","+u+"H-"+n+"L0,"+l+"Z")}},hexagram:{n:18,f:function(e,t,r){if(Vn(t))return Un;var i=Wr(e*.66,2),n=Wr(e*.38,2),a=Wr(e*.76,2);return Gn(t,r,"M-"+a+",0l-"+n+",-"+i+"h"+a+"l"+n+",-"+i+"l"+n+","+i+"h"+a+"l-"+n+","+i+"l"+n+","+i+"h-"+a+"l-"+n+","+i+"l-"+n+",-"+i+"h-"+a+"Z")}},"star-triangle-up":{n:19,f:function(e,t,r){if(Vn(t))return Un;var i=Wr(e*Ly*.8,2),n=Wr(e*.8,2),a=Wr(e*1.6,2),o=Wr(e*4,2),s="A "+o+","+o+" 0 0 1 ";return Gn(t,r,"M-"+i+","+n+s+i+","+n+s+"0,-"+a+s+"-"+i+","+n+"Z")}},"star-triangle-down":{n:20,f:function(e,t,r){if(Vn(t))return Un;var i=Wr(e*Ly*.8,2),n=Wr(e*.8,2),a=Wr(e*1.6,2),o=Wr(e*4,2),s="A "+o+","+o+" 0 0 1 ";return Gn(t,r,"M"+i+",-"+n+s+"-"+i+",-"+n+s+"0,"+a+s+i+",-"+n+"Z")}},"star-square":{n:21,f:function(e,t,r){if(Vn(t))return Un;var i=Wr(e*1.1,2),n=Wr(e*2,2),a="A "+n+","+n+" 0 0 1 ";return Gn(t,r,"M-"+i+",-"+i+a+"-"+i+","+i+a+i+","+i+a+i+",-"+i+a+"-"+i+",-"+i+"Z")}},"star-diamond":{n:22,f:function(e,t,r){if(Vn(t))return Un;var i=Wr(e*1.4,2),n=Wr(e*1.9,2),a="A "+n+","+n+" 0 0 1 ";return Gn(t,r,"M-"+i+",0"+a+"0,"+i+a+i+",0"+a+"0,-"+i+a+"-"+i+",0Z")}},"diamond-tall":{n:23,f:function(e,t,r){if(Vn(t))return Un;var i=Wr(e*.7,2),n=Wr(e*1.4,2);return Gn(t,r,"M0,"+n+"L"+i+",0L0,-"+n+"L-"+i+",0Z")}},"diamond-wide":{n:24,f:function(e,t,r){if(Vn(t))return Un;var i=Wr(e*1.4,2),n=Wr(e*.7,2);return Gn(t,r,"M0,"+n+"L"+i+",0L0,-"+n+"L-"+i+",0Z")}},hourglass:{n:25,f:function(e,t,r){if(Vn(t))return Un;var i=Wr(e,2);return Gn(t,r,"M"+i+","+i+"H-"+i+"L"+i+",-"+i+"H-"+i+"Z")},noDot:!0},bowtie:{n:26,f:function(e,t,r){if(Vn(t))return Un;var i=Wr(e,2);return Gn(t,r,"M"+i+","+i+"V-"+i+"L-"+i+","+i+"V-"+i+"Z")},noDot:!0},"circle-cross":{n:27,f:function(e,t,r){if(Vn(t))return Un;var i=Wr(e,2);return Gn(t,r,"M0,"+i+"V-"+i+"M"+i+",0H-"+i+"M"+i+",0A"+i+","+i+" 0 1,1 0,-"+i+"A"+i+","+i+" 0 0,1 "+i+",0Z")},needLine:!0,noDot:!0},"circle-x":{n:28,f:function(e,t,r){if(Vn(t))return Un;var i=Wr(e,2),n=Wr(e/Ove,2);return Gn(t,r,"M"+n+","+n+"L-"+n+",-"+n+"M"+n+",-"+n+"L-"+n+","+n+"M"+i+",0A"+i+","+i+" 0 1,1 0,-"+i+"A"+i+","+i+" 0 0,1 "+i+",0Z")},needLine:!0,noDot:!0},"square-cross":{n:29,f:function(e,t,r){if(Vn(t))return Un;var i=Wr(e,2);return Gn(t,r,"M0,"+i+"V-"+i+"M"+i+",0H-"+i+"M"+i+","+i+"H-"+i+"V-"+i+"H"+i+"Z")},needLine:!0,noDot:!0},"square-x":{n:30,f:function(e,t,r){if(Vn(t))return Un;var i=Wr(e,2);return Gn(t,r,"M"+i+","+i+"L-"+i+",-"+i+"M"+i+",-"+i+"L-"+i+","+i+"M"+i+","+i+"H-"+i+"V-"+i+"H"+i+"Z")},needLine:!0,noDot:!0},"diamond-cross":{n:31,f:function(e,t,r){if(Vn(t))return Un;var i=Wr(e*1.3,2);return Gn(t,r,"M"+i+",0L0,"+i+"L-"+i+",0L0,-"+i+"ZM0,-"+i+"V"+i+"M-"+i+",0H"+i)},needLine:!0,noDot:!0},"diamond-x":{n:32,f:function(e,t,r){if(Vn(t))return Un;var i=Wr(e*1.3,2),n=Wr(e*.65,2);return Gn(t,r,"M"+i+",0L0,"+i+"L-"+i+",0L0,-"+i+"ZM-"+n+",-"+n+"L"+n+","+n+"M-"+n+","+n+"L"+n+",-"+n)},needLine:!0,noDot:!0},"cross-thin":{n:33,f:function(e,t,r){if(Vn(t))return Un;var i=Wr(e*1.4,2);return Gn(t,r,"M0,"+i+"V-"+i+"M"+i+",0H-"+i)},needLine:!0,noDot:!0,noFill:!0},"x-thin":{n:34,f:function(e,t,r){if(Vn(t))return Un;var i=Wr(e,2);return Gn(t,r,"M"+i+","+i+"L-"+i+",-"+i+"M"+i+",-"+i+"L-"+i+","+i)},needLine:!0,noDot:!0,noFill:!0},asterisk:{n:35,f:function(e,t,r){if(Vn(t))return Un;var i=Wr(e*1.2,2),n=Wr(e*.85,2);return Gn(t,r,"M0,"+i+"V-"+i+"M"+i+",0H-"+i+"M"+n+","+n+"L-"+n+",-"+n+"M"+n+",-"+n+"L-"+n+","+n)},needLine:!0,noDot:!0,noFill:!0},hash:{n:36,f:function(e,t,r){if(Vn(t))return Un;var i=Wr(e/2,2),n=Wr(e,2);return Gn(t,r,"M"+i+","+n+"V-"+n+"M"+(i-n)+",-"+n+"V"+n+"M"+n+","+i+"H-"+n+"M-"+n+","+(i-n)+"H"+n)},needLine:!0,noFill:!0},"y-up":{n:37,f:function(e,t,r){if(Vn(t))return Un;var i=Wr(e*1.2,2),n=Wr(e*1.6,2),a=Wr(e*.8,2);return Gn(t,r,"M-"+i+","+a+"L0,0M"+i+","+a+"L0,0M0,-"+n+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-down":{n:38,f:function(e,t,r){if(Vn(t))return Un;var i=Wr(e*1.2,2),n=Wr(e*1.6,2),a=Wr(e*.8,2);return Gn(t,r,"M-"+i+",-"+a+"L0,0M"+i+",-"+a+"L0,0M0,"+n+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-left":{n:39,f:function(e,t,r){if(Vn(t))return Un;var i=Wr(e*1.2,2),n=Wr(e*1.6,2),a=Wr(e*.8,2);return Gn(t,r,"M"+a+","+i+"L0,0M"+a+",-"+i+"L0,0M-"+n+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-right":{n:40,f:function(e,t,r){if(Vn(t))return Un;var i=Wr(e*1.2,2),n=Wr(e*1.6,2),a=Wr(e*.8,2);return Gn(t,r,"M-"+a+","+i+"L0,0M-"+a+",-"+i+"L0,0M"+n+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"line-ew":{n:41,f:function(e,t,r){if(Vn(t))return Un;var i=Wr(e*1.4,2);return Gn(t,r,"M"+i+",0H-"+i)},needLine:!0,noDot:!0,noFill:!0},"line-ns":{n:42,f:function(e,t,r){if(Vn(t))return Un;var i=Wr(e*1.4,2);return Gn(t,r,"M0,"+i+"V-"+i)},needLine:!0,noDot:!0,noFill:!0},"line-ne":{n:43,f:function(e,t,r){if(Vn(t))return Un;var i=Wr(e,2);return Gn(t,r,"M"+i+",-"+i+"L-"+i+","+i)},needLine:!0,noDot:!0,noFill:!0},"line-nw":{n:44,f:function(e,t,r){if(Vn(t))return Un;var i=Wr(e,2);return Gn(t,r,"M"+i+","+i+"L-"+i+",-"+i)},needLine:!0,noDot:!0,noFill:!0},"arrow-up":{n:45,f:function(e,t,r){if(Vn(t))return Un;var i=Wr(e,2),n=Wr(e*2,2);return Gn(t,r,"M0,0L-"+i+","+n+"H"+i+"Z")},backoff:1,noDot:!0},"arrow-down":{n:46,f:function(e,t,r){if(Vn(t))return Un;var i=Wr(e,2),n=Wr(e*2,2);return Gn(t,r,"M0,0L-"+i+",-"+n+"H"+i+"Z")},noDot:!0},"arrow-left":{n:47,f:function(e,t,r){if(Vn(t))return Un;var i=Wr(e*2,2),n=Wr(e,2);return Gn(t,r,"M0,0L"+i+",-"+n+"V"+n+"Z")},noDot:!0},"arrow-right":{n:48,f:function(e,t,r){if(Vn(t))return Un;var i=Wr(e*2,2),n=Wr(e,2);return Gn(t,r,"M0,0L-"+i+",-"+n+"V"+n+"Z")},noDot:!0},"arrow-bar-up":{n:49,f:function(e,t,r){if(Vn(t))return Un;var i=Wr(e,2),n=Wr(e*2,2);return Gn(t,r,"M-"+i+",0H"+i+"M0,0L-"+i+","+n+"H"+i+"Z")},backoff:1,needLine:!0,noDot:!0},"arrow-bar-down":{n:50,f:function(e,t,r){if(Vn(t))return Un;var i=Wr(e,2),n=Wr(e*2,2);return Gn(t,r,"M-"+i+",0H"+i+"M0,0L-"+i+",-"+n+"H"+i+"Z")},needLine:!0,noDot:!0},"arrow-bar-left":{n:51,f:function(e,t,r){if(Vn(t))return Un;var i=Wr(e*2,2),n=Wr(e,2);return Gn(t,r,"M0,-"+n+"V"+n+"M0,0L"+i+",-"+n+"V"+n+"Z")},needLine:!0,noDot:!0},"arrow-bar-right":{n:52,f:function(e,t,r){if(Vn(t))return Un;var i=Wr(e*2,2),n=Wr(e,2);return Gn(t,r,"M0,-"+n+"V"+n+"M0,0L-"+i+",-"+n+"V"+n+"Z")},needLine:!0,noDot:!0},arrow:{n:53,f:function(e,t,r){if(Vn(t))return Un;var i=NG/2.5,n=2*e*UG(i),a=2*e*VG(i);return Gn(t,r,"M0,0L"+-n+","+a+"L"+n+","+a+"Z")},backoff:.9,noDot:!0},"arrow-wide":{n:54,f:function(e,t,r){if(Vn(t))return Un;var i=NG/4,n=2*e*UG(i),a=2*e*VG(i);return Gn(t,r,"M0,0L"+-n+","+a+"A "+2*e+","+2*e+" 0 0 1 "+n+","+a+"Z")},backoff:.4,noDot:!0}};function Vn(e){return e===null}var Nve,Uve,Vve,Gve;function Gn(e,t,r){if((!e||e%360===0)&&!t)return r;if(Vve===e&&Gve===t&&Nve===r)return Uve;Vve=e,Gve=t,Nve=r;function i(m,g){var w=UG(m),_=VG(m),b=g[0],S=g[1]+(t||0);return[b*w-S*_,b*_+S*w]}for(var n=e/180*NG,a=0,o=0,s=kTt(r),l="",u=0;u{"use strict";var Bu=gi(),To=it(),CTt=To.numberFormat,Py=un(),KD=xi(),mu=ai(),DTt=es(),EA=To.strTranslate,JD=ho(),FTt=(vd(),Pt(pd)),LTt=(Xl(),Pt(Yl)),PTt=LTt.LINE_SPACING,t1e=(qg(),Pt(Bg)).DESELECTDIM,ITt=Wo(),RTt=AA(),zTt=rh().appendArrayPointValue,li={};f1e.exports=li;li.font=function(e,t){var r=t.variant,i=t.style,n=t.weight,a=t.color,o=t.size,s=t.family,l=t.shadow,u=t.lineposition,c=t.textcase;s&&e.style("font-family",s),o+1&&e.style("font-size",o+"px"),a&&e.call(mu.fill,a),n&&e.style("font-weight",n),i&&e.style("font-style",i),r&&e.style("font-variant",r),c&&e.style("text-transform",GG(qTt(c))),l&&e.style("text-shadow",l==="auto"?JD.makeTextShadow(mu.contrast(a)):GG(l)),u&&e.style("text-decoration-line",GG(OTt(u)))};function GG(e){return e==="none"?void 0:e}var BTt={normal:"none",lower:"lowercase",upper:"uppercase","word caps":"capitalize"};function qTt(e){return BTt[e]}function OTt(e){return e.replace("under","underline").replace("over","overline").replace("through","line-through").split("+").join(" ")}li.setPosition=function(e,t,r){e.attr("x",t).attr("y",r)};li.setSize=function(e,t,r){e.attr("width",t).attr("height",r)};li.setRect=function(e,t,r,i,n){e.call(li.setPosition,t,r).call(li.setSize,i,n)};li.translatePoint=function(e,t,r,i){var n=r.c2p(e.x),a=i.c2p(e.y);if(Py(n)&&Py(a)&&t.node())t.node().nodeName==="text"?t.attr("x",n).attr("y",a):t.attr("transform",EA(n,a));else return!1;return!0};li.translatePoints=function(e,t,r){e.each(function(i){var n=Bu.select(this);li.translatePoint(i,n,t,r)})};li.hideOutsideRangePoint=function(e,t,r,i,n,a){t.attr("display",r.isPtWithinRange(e,n)&&i.isPtWithinRange(e,a)?null:"none")};li.hideOutsideRangePoints=function(e,t){if(t._hasClipOnAxisFalse){var r=t.xaxis,i=t.yaxis;e.each(function(n){var a=n[0].trace,o=a.xcalendar,s=a.ycalendar,l=KD.traceIs(a,"bar-like")?".bartext":".point,.textpoint";e.selectAll(l).each(function(u){li.hideOutsideRangePoint(u,Bu.select(this),r,i,o,s)})})}};li.crispRound=function(e,t,r){return!t||!Py(t)?r||0:e._context.staticPlot?t:t<1?1:Math.round(t)};li.singleLineStyle=function(e,t,r,i,n){t.style("fill","none");var a=(((e||[])[0]||{}).trace||{}).line||{},o=r||a.width||0,s=n||a.dash||"";mu.stroke(t,i||a.color),li.dashLine(t,s,o)};li.lineGroupStyle=function(e,t,r,i){e.style("fill","none").each(function(n){var a=(((n||[])[0]||{}).trace||{}).line||{},o=t||a.width||0,s=i||a.dash||"";Bu.select(this).call(mu.stroke,r||a.color).call(li.dashLine,s,o)})};li.dashLine=function(e,t,r){r=+r||0,t=li.dashStyle(t,r),e.style({"stroke-dasharray":t,"stroke-width":r+"px"})};li.dashStyle=function(e,t){t=+t||1;var r=Math.max(t,3);return e==="solid"?e="":e==="dot"?e=r+"px,"+r+"px":e==="dash"?e=3*r+"px,"+3*r+"px":e==="longdash"?e=5*r+"px,"+5*r+"px":e==="dashdot"?e=3*r+"px,"+r+"px,"+r+"px,"+r+"px":e==="longdashdot"&&(e=5*r+"px,"+2*r+"px,"+r+"px,"+2*r+"px"),e};function r1e(e,t,r,i){var n=t.fillpattern,a=t.fillgradient,o=li.getPatternAttr,s=n&&(o(n.shape,0,"")||o(n.path,0,""));if(s){var l=o(n.bgcolor,0,null),u=o(n.fgcolor,0,null),c=n.fgopacity,f=o(n.size,0,8),h=o(n.solidity,0,.3),p=t.uid;li.pattern(e,"point",r,p,s,f,h,void 0,n.fillmode,l,u,c)}else if(a&&a.type!=="none"){var d=a.type,v="scatterfill-"+t.uid;if(i&&(v="legendfill-"+t.uid),!i&&(a.start!==void 0||a.stop!==void 0)){var m,g;d==="horizontal"?(m={x:a.start,y:0},g={x:a.stop,y:0}):d==="vertical"&&(m={x:0,y:a.start},g={x:0,y:a.stop}),m.x=t._xA.c2p(m.x===void 0?t._extremes.x.min[0].val:m.x,!0),m.y=t._yA.c2p(m.y===void 0?t._extremes.y.min[0].val:m.y,!0),g.x=t._xA.c2p(g.x===void 0?t._extremes.x.max[0].val:g.x,!0),g.y=t._yA.c2p(g.y===void 0?t._extremes.y.max[0].val:g.y,!0),e.call(a1e,r,v,"linear",a.colorscale,"fill",m,g,!0,!1)}else d==="horizontal"&&(d=d+"reversed"),e.call(li.gradient,r,v,d,a.colorscale,"fill")}else t.fillcolor&&e.call(mu.fill,t.fillcolor)}li.singleFillStyle=function(e,t){var r=Bu.select(e.node()),i=r.data(),n=((i[0]||[])[0]||{}).trace||{};r1e(e,n,t,!1)};li.fillGroupStyle=function(e,t,r){e.style("stroke-width",0).each(function(i){var n=Bu.select(this);i[0].trace&&r1e(n,i[0].trace,t,r)})};var $ve=jve();li.symbolNames=[];li.symbolFuncs=[];li.symbolBackOffs=[];li.symbolNeedLines={};li.symbolNoDot={};li.symbolNoFill={};li.symbolList=[];Object.keys($ve).forEach(function(e){var t=$ve[e],r=t.n;li.symbolList.push(r,String(r),e,r+100,String(r+100),e+"-open"),li.symbolNames[r]=e,li.symbolFuncs[r]=t.f,li.symbolBackOffs[r]=t.backoff||0,t.needLine&&(li.symbolNeedLines[r]=!0),t.noDot?li.symbolNoDot[r]=!0:li.symbolList.push(r+200,String(r+200),e+"-dot",r+300,String(r+300),e+"-open-dot"),t.noFill&&(li.symbolNoFill[r]=!0)});var NTt=li.symbolNames.length,UTt="M0,0.5L0.5,0L0,-0.5L-0.5,0Z";li.symbolNumber=function(e){if(Py(e))e=+e;else if(typeof e=="string"){var t=0;e.indexOf("-open")>0&&(t=100,e=e.replace("-open","")),e.indexOf("-dot")>0&&(t+=200,e=e.replace("-dot","")),e=li.symbolNames.indexOf(e),e>=0&&(e+=t)}return e%100>=NTt||e>=400?0:Math.floor(Math.max(e,0))};function i1e(e,t,r,i){var n=e%100;return li.symbolFuncs[n](t,r,i)+(e>=200?UTt:"")}var Wve=CTt("~f"),n1e={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}};li.gradient=function(e,t,r,i,n,a){var o=n1e[i];return a1e(e,t,r,o.type,n,a,o.start,o.stop,!1,o.reversed)};function a1e(e,t,r,i,n,a,o,s,l,u){var c=n.length,f;i==="linear"?f={node:"linearGradient",attrs:{x1:o.x,y1:o.y,x2:s.x,y2:s.y,gradientUnits:l?"userSpaceOnUse":"objectBoundingBox"},reversed:u}:i==="radial"&&(f={node:"radialGradient",reversed:u});for(var h=new Array(c),p=0;p=0&&e.i===void 0&&(e.i=a.i),t.style("opacity",i.selectedOpacityFn?i.selectedOpacityFn(e):e.mo===void 0?o.opacity:e.mo),i.ms2mrc){var l;e.ms==="various"||o.size==="various"?l=3:l=i.ms2mrc(e.ms),e.mrc=l,i.selectedSizeFn&&(l=e.mrc=i.selectedSizeFn(e));var u=li.symbolNumber(e.mx||o.symbol)||0;e.om=u%200>=100;var c=ZG(e,r),f=XG(e,r);t.attr("d",i1e(u,l,c,f))}var h=!1,p,d,v;if(e.so)v=s.outlierwidth,d=s.outliercolor,p=o.outliercolor;else{var m=(s||{}).width;v=(e.mlw+1||m+1||(e.trace?(e.trace.marker.line||{}).width:0)+1)-1||0,"mlc"in e?d=e.mlcc=i.lineScale(e.mlc):To.isArrayOrTypedArray(s.color)?d=mu.defaultLine:d=s.color,To.isArrayOrTypedArray(o.color)&&(p=mu.defaultLine,h=!0),"mc"in e?p=e.mcc=i.markerScale(e.mc):p=o.color||o.colors||"rgba(0,0,0,0)",i.selectedColorFn&&(p=i.selectedColorFn(e))}let g=e.mld||(s||{}).dash;if(g&&li.dashLine(t,g,v),e.om)t.call(mu.stroke,p).style({"stroke-width":(v||1)+"px",fill:"none"});else{t.style("stroke-width",(e.isBlank?0:v)+"px");var w=o.gradient,_=e.mgt;_?h=!0:_=w&&w.type,To.isArrayOrTypedArray(_)&&(_=_[0],n1e[_]||(_=0));var b=o.pattern,S=li.getPatternAttr,x=b&&(S(b.shape,e.i,"")||S(b.path,e.i,""));if(_&&_!=="none"){var T=e.mgc;T?h=!0:T=w.color;var A=r.uid;h&&(A+="-"+e.i),li.gradient(t,n,A,_,[[0,T],[1,p]],"fill")}else if(x){var y=!1,E=b.fgcolor;!E&&a&&a.color&&(E=a.color,y=!0);var M=S(E,e.i,a&&a.color||null),C=S(b.bgcolor,e.i,null),k=b.fgopacity,D=S(b.size,e.i,8),L=S(b.solidity,e.i,.3);y=y||e.mcc||To.isArrayOrTypedArray(b.shape)||To.isArrayOrTypedArray(b.path)||To.isArrayOrTypedArray(b.bgcolor)||To.isArrayOrTypedArray(b.fgcolor)||To.isArrayOrTypedArray(b.size)||To.isArrayOrTypedArray(b.solidity);var P=r.uid;y&&(P+="-"+e.i),li.pattern(t,"point",n,P,x,D,L,e.mcc,b.fillmode,C,M,k)}else To.isArrayOrTypedArray(p)?mu.fill(t,p[e.i]):mu.fill(t,p);v&&mu.stroke(t,d)}};li.makePointStyleFns=function(e){var t={},r=e.marker;return t.markerScale=li.tryColorscale(r,""),t.lineScale=li.tryColorscale(r,"line"),KD.traceIs(e,"symbols")&&(t.ms2mrc=ITt.isBubble(e)?RTt(e):function(){return(r.size||6)/2}),e.selectedpoints&&To.extendFlat(t,li.makeSelectedPointStyleFns(e)),t};li.makeSelectedPointStyleFns=function(e){var t={},r=e.selected||{},i=e.unselected||{},n=e.marker||{},a=r.marker||{},o=i.marker||{},s=n.opacity,l=a.opacity,u=o.opacity,c=l!==void 0,f=u!==void 0;(To.isArrayOrTypedArray(s)||c||f)&&(t.selectedOpacityFn=function(b){var S=b.mo===void 0?n.opacity:b.mo;return b.selected?c?l:S:f?u:t1e*S});var h=n.color,p=a.color,d=o.color;(p||d)&&(t.selectedColorFn=function(b){var S=b.mcc||h;return b.selected?p||S:d||S});var v=n.size,m=a.size,g=o.size,w=m!==void 0,_=g!==void 0;return KD.traceIs(e,"symbols")&&(w||_)&&(t.selectedSizeFn=function(b){var S=b.mrc||v/2;return b.selected?w?m/2:S:_?g/2:S}),t};li.makeSelectedTextStyleFns=function(e){var t={},r=e.selected||{},i=e.unselected||{},n=e.textfont||{},a=r.textfont||{},o=i.textfont||{},s=n.color,l=a.color,u=o.color;return t.selectedTextColorFn=function(c){var f=c.tc||s;return c.selected?l||f:u||(l?f:mu.addOpacity(f,t1e))},t};li.selectedPointStyle=function(e,t){if(!(!e.size()||!t.selectedpoints)){var r=li.makeSelectedPointStyleFns(t),i=t.marker||{},n=[];r.selectedOpacityFn&&n.push(function(a,o){a.style("opacity",r.selectedOpacityFn(o))}),r.selectedColorFn&&n.push(function(a,o){mu.fill(a,r.selectedColorFn(o))}),r.selectedSizeFn&&n.push(function(a,o){var s=o.mx||i.symbol||0,l=r.selectedSizeFn(o);a.attr("d",i1e(li.symbolNumber(s),l,ZG(o,t),XG(o,t))),o.mrc2=l}),n.length&&e.each(function(a){for(var o=Bu.select(this),s=0;s0?r:0}li.textPointStyle=function(e,t,r){if(e.size()){var i;if(t.selectedpoints){var n=li.makeSelectedTextStyleFns(t);i=n.selectedTextColorFn}var a=t.texttemplate,o=r._fullLayout;e.each(function(s){var l=Bu.select(this),u=a?To.extractOption(s,t,"txt","texttemplate"):To.extractOption(s,t,"tx","text");if(!u&&u!==0){l.remove();return}if(a){var c=t._module.formatLabels,f=c?c(s,t,o):{},h={};zTt(h,t,s.i),u=To.texttemplateString({data:[h,s,t._meta],fallback:t.texttemplatefallback,labels:f,locale:o._d3locale,template:u})}var p=s.tp||t.textposition,d=s1e(s,t),v=i?i(s):s.tc||t.textfont.color;l.call(li.font,{family:s.tf||t.textfont.family,weight:s.tw||t.textfont.weight,style:s.ty||t.textfont.style,variant:s.tv||t.textfont.variant,textcase:s.tC||t.textfont.textcase,lineposition:s.tE||t.textfont.lineposition,shadow:s.tS||t.textfont.shadow,size:d,color:v}).text(u).call(JD.convertToTspans,r).call(o1e,p,d,s.mrc)})}};li.selectedTextStyle=function(e,t){if(!(!e.size()||!t.selectedpoints)){var r=li.makeSelectedTextStyleFns(t);e.each(function(i){var n=Bu.select(this),a=r.selectedTextColorFn(i),o=i.tp||t.textposition,s=s1e(i,t);mu.fill(n,a);var l=KD.traceIs(t,"bar-like");o1e(n,o,s,i.mrc2||i.mrc,l)})}};var Yve=.5;li.smoothopen=function(e,t){if(e.length<3)return"M"+e.join("L");var r="M"+e[0],i=[],n;for(n=1;n=l||b>=c&&b<=l)&&(S<=f&&S>=u||S>=f&&S<=u)&&(e=[b,S])}return e}li.applyBackoff=c1e;li.makeTester=function(){var e=To.ensureSingleById(Bu.select("body"),"svg","js-plotly-tester",function(r){r.attr(FTt.svgAttrs).style({position:"absolute",left:"-10000px",top:"-10000px",width:"9000px",height:"9000px","z-index":"1"})}),t=To.ensureSingle(e,"path","js-reference-point",function(r){r.attr("d","M0,0H1V1H0Z").style({"stroke-width":0,fill:"black"})});li.tester=e,li.testref=t};li.savedBBoxes={};var jG=0,HTt=1e4;li.bBox=function(e,t,r){r||(r=Xve(e));var i;if(r){if(i=li.savedBBoxes[r],i)return To.extendFlat({},i)}else if(e.childNodes.length===1){var n=e.childNodes[0];if(r=Xve(n),r){var a=+n.getAttribute("x")||0,o=+n.getAttribute("y")||0,s=n.getAttribute("transform");if(!s){var l=li.bBox(n,!1,r);return a&&(l.left+=a,l.right+=a),o&&(l.top+=o,l.bottom+=o),l}if(r+="~"+a+"~"+o+"~"+s,i=li.savedBBoxes[r],i)return To.extendFlat({},i)}}var u,c;t?u=e:(c=li.tester.node(),u=e.cloneNode(!0),c.appendChild(u)),Bu.select(u).attr("transform",null).call(JD.positionText,0,0);var f=u.getBoundingClientRect(),h=li.testref.node().getBoundingClientRect();t||c.removeChild(u);var p={height:f.height,width:f.width,left:f.left-h.left,top:f.top-h.top,right:f.right-h.left,bottom:f.bottom-h.top};return jG>=HTt&&(li.savedBBoxes={},jG=0),r&&(li.savedBBoxes[r]=p),jG++,To.extendFlat({},p)};function Xve(e){var t=e.getAttribute("data-unformatted");if(t!==null)return t+e.getAttribute("data-math")+e.getAttribute("text-anchor")+e.getAttribute("style")}li.setClipUrl=function(e,t,r){e.attr("clip-path",YG(t,r))};function YG(e,t){if(!e)return null;var r=t._context,i=r._exportedPlot?"":r._baseUrl||"";return i?"url('"+i+"#"+e+"')":"url(#"+e+")"}li.getTranslate=function(e){var t=/.*\btranslate\((-?\d*\.?\d*)[^-\d]*(-?\d*\.?\d*)[^\d].*/,r=e.attr?"attr":"getAttribute",i=e[r]("transform")||"",n=i.replace(t,function(a,o,s){return[o,s].join(" ")}).split(" ");return{x:+n[0]||0,y:+n[1]||0}};li.setTranslate=function(e,t,r){var i=/(\btranslate\(.*?\);?)/,n=e.attr?"attr":"getAttribute",a=e.attr?"attr":"setAttribute",o=e[n]("transform")||"";return t=t||0,r=r||0,o=o.replace(i,"").trim(),o+=EA(t,r),o=o.trim(),e[a]("transform",o),o};li.getScale=function(e){var t=/.*\bscale\((\d*\.?\d*)[^\d]*(\d*\.?\d*)[^\d].*/,r=e.attr?"attr":"getAttribute",i=e[r]("transform")||"",n=i.replace(t,function(a,o,s){return[o,s].join(" ")}).split(" ");return{x:+n[0]||1,y:+n[1]||1}};li.setScale=function(e,t,r){var i=/(\bscale\(.*?\);?)/,n=e.attr?"attr":"getAttribute",a=e.attr?"attr":"setAttribute",o=e[n]("transform")||"";return t=t||1,r=r||1,o=o.replace(i,"").trim(),o+="scale("+t+","+r+")",o=o.trim(),e[a]("transform",o),o};var jTt=/\s*sc.*/;li.setPointGroupScale=function(e,t,r){if(t=t||1,r=r||1,!!e){var i=t===1&&r===1?"":"scale("+t+","+r+")";e.each(function(){var n=(this.getAttribute("transform")||"").replace(jTt,"");n+=i,n=n.trim(),this.setAttribute("transform",n)})}};var $Tt=/translate\([^)]*\)\s*$/;li.setTextPointsScale=function(e,t,r){e&&e.each(function(){var i,n=Bu.select(this),a=n.select("text");if(a.node()){var o=parseFloat(a.attr("x")||0),s=parseFloat(a.attr("y")||0),l=(n.attr("transform")||"").match($Tt);t===1&&r===1?i=[]:i=[EA(o,s),"scale("+t+","+r+")",EA(-o,-s)],l&&i.push(l),n.attr("transform",i.join(""))}})};function XG(e,t){var r;return e&&(r=e.mf),r===void 0&&(r=t.marker&&t.marker.standoff||0),!t._geo&&!t._xA?-r:r}li.getMarkerStandoff=XG;var SA=Math.atan2,ub=Math.cos,Cw=Math.sin;function Zve(e,t){var r=t[0],i=t[1];return[r*ub(e)-i*Cw(e),r*Cw(e)+i*ub(e)]}var Kve,Jve,Qve,e1e,$G,WG;function ZG(e,t){var r=e.ma;r===void 0&&(r=t.marker.angle,(!Py(r)||To.isArrayOrTypedArray(r))&&(r=0));var i,n,a=t.marker.angleref;if(a==="previous"||a==="north"){if(t._geo){var o=t._geo.project(e.lonlat);i=o[0],n=o[1]}else{var s=t._xA,l=t._yA;if(s&&l)i=s.c2p(e.x),n=l.c2p(e.y);else return 90}if(t._geo){var u=e.lonlat[0],c=e.lonlat[1],f=t._geo.project([u,c+1e-5]),h=t._geo.project([u+1e-5,c]),p=SA(h[1]-n,h[0]-i),d=SA(f[1]-n,f[0]-i),v;if(a==="north")v=r/180*Math.PI;else if(a==="previous"){var m=u/180*Math.PI,g=c/180*Math.PI,w=Kve/180*Math.PI,_=Jve/180*Math.PI,b=w-m,S=ub(_)*Cw(b),x=Cw(_)*ub(g)-ub(_)*Cw(g)*ub(b);v=-SA(S,x)-Math.PI,Kve=u,Jve=c}var T=Zve(p,[ub(v),0]),A=Zve(d,[Cw(v),0]);r=SA(T[1]+A[1],T[0]+A[0])/Math.PI*180,a==="previous"&&!(WG===t.uid&&e.i===$G+1)&&(r=null)}if(a==="previous"&&!t._geo)if(WG===t.uid&&e.i===$G+1&&Py(i)&&Py(n)){var y=i-Qve,E=n-e1e,M=t.line&&t.line.shape||"",C=M.slice(M.length-1);C==="h"&&(E=0),C==="v"&&(y=0),r+=SA(E,y)/Math.PI*180+90}else r=null}return Qve=i,e1e=n,$G=e.i,WG=t.uid,r}li.getMarkerAngle=ZG});var db=W((eOr,v1e)=>{"use strict";var Dw=gi(),WTt=un(),YTt=Qo(),KG=xi(),hb=it(),h1e=hb.strTranslate,QD=en(),e7=ai(),Fw=ho(),d1e=(qg(),Pt(Bg)),XTt=(Xl(),Pt(Yl)).OPPOSITE_SIDE,p1e=/ [XY][0-9]* /,JG=1.6,QG=1.6;function ZTt(e,t,r){var i=e._fullLayout,n=r.propContainer,a=r.propName,o=r.placeholder,s=r.traceIndex,l=r.avoid||{},u=r.attributes,c=r.transform,f=r.containerGroup,h=1,p=n.title,d=(p&&p.text?p.text:"").trim(),v=!1,m=p&&p.font?p.font:{},g=m.family,w=m.size,_=m.color,b=m.weight,S=m.style,x=m.variant,T=m.textcase,A=m.lineposition,y=m.shadow,E=r.subtitlePropName,M=!!E,C=r.subtitlePlaceholder,k=(n.title||{}).subtitle||{text:"",font:{}},D=(k.text||"").trim(),L=!1,P=1,R=k.font,F=R.family,I=R.size,B=R.color,O=R.weight,$=R.style,Y=R.variant,K=R.textcase,j=R.lineposition,q=R.shadow,Q;a==="title.text"?Q="titleText":a.indexOf("axis")!==-1?Q="axisTitleText":a.indexOf("colorbar")!==-1&&(Q="colorbarTitleText");var U=e._context.edits[Q];function V(ye,ce){return ye===void 0||ce===void 0?!1:ye.replace(p1e," % ")===ce.replace(p1e," % ")}d===""?h=0:V(d,o)&&(U||(d=""),h=.2,v=!0),M&&(D===""?P=0:V(D,C)&&(U||(D=""),P=.2,L=!0)),r._meta?d=hb.templateString(d,r._meta):i._meta&&(d=hb.templateString(d,i._meta));var X=d||D||U,G;f||(f=hb.ensureSingle(i._infolayer,"g","g-"+t),G=i._hColorbarMoveTitle);var H=f.selectAll("text."+t).data(X?[0]:[]);H.enter().append("text"),H.text(d).attr("class",t),H.exit().remove();var J=null,te=t+"-subtitle",ue=D||U;if(M&&(J=f.selectAll("text."+te).data(ue?[0]:[]),J.enter().append("text"),J.text(D).attr("class",te),J.exit().remove()),!X)return f;function ge(ye,ce){hb.syncOrAsync([ke,_e],{title:ye,subtitle:ce})}function ke(ye){var ce=ye.title,ee=ye.subtitle,ae;!c&&G&&(c={}),c?(ae="",c.rotate&&(ae+="rotate("+[c.rotate,u.x,u.y]+")"),(c.offset||G)&&(ae+=h1e(0,(c.offset||0)-(G||0)))):ae=null,ce.attr("transform",ae);function xe(Ce){if(Ce){var be=Dw.select(Ce.node().parentNode).select("."+te);if(!be.empty()){var Ie=Ce.node().getBBox();if(Ie.height){var Oe=Ie.y+Ie.height+JG*I;be.attr("y",Oe)}}}}if(ce.style("opacity",h*e7.opacity(_)).call(QD.font,{color:e7.rgb(_),size:Dw.round(w,2),family:g,weight:b,style:S,variant:x,textcase:T,shadow:y,lineposition:A}).attr(u).call(Fw.convertToTspans,e,xe),ee&&!ee.empty()){var re=f.select("."+t+"-math-group"),pe=ce.node().getBBox(),we=re.node()?re.node().getBBox():void 0,Fe=we?we.y+we.height+JG*I:pe.y+pe.height+QG*I,Ee=hb.extendFlat({},u,{y:Fe});ee.attr("transform",ae),ee.style("opacity",P*e7.opacity(B)).call(QD.font,{color:e7.rgb(B),size:Dw.round(I,2),family:F,weight:O,style:$,variant:Y,textcase:K,shadow:q,lineposition:j}).attr(Ee).call(Fw.convertToTspans,e)}return YTt.previousPromises(e)}function _e(ye){var ce=ye.title,ee=Dw.select(ce.node().parentNode);if(l&&l.selection&&l.side&&d){ee.attr("transform",null);var ae=XTt[l.side],xe=l.side==="left"||l.side==="top"?-1:1,re=WTt(l.pad)?l.pad:2,pe=QD.bBox(ee.node()),we={t:0,b:0,l:0,r:0},Fe=e._fullLayout._reservedMargin;for(var Ee in Fe)for(var Ce in Fe[Ee]){var be=Fe[Ee][Ce];we[Ce]=Math.max(we[Ce],be)}var Ie={left:we.l,top:we.t,right:i.width-we.r,bottom:i.height-we.b},Oe=l.maxShift||xe*(Ie[l.side]-pe[l.side]),Qe=0;if(Oe<0)Qe=Oe;else{var et=l.offsetLeft||0,bt=l.offsetTop||0;pe.left-=et,pe.right-=et,pe.top-=bt,pe.bottom-=bt,l.selection.each(function(){var vt=QD.bBox(this);hb.bBoxIntersect(pe,vt,re)&&(Qe=Math.max(Qe,xe*(vt[l.side]-pe[ae])+re))}),Qe=Math.min(Oe,Qe),n._titleScoot=Math.abs(Qe)}if(Qe>0||Oe<0){var ut={left:[-Qe,0],right:[Qe,0],top:[0,-Qe],bottom:[0,Qe]}[l.side];ee.attr("transform",h1e(ut[0],ut[1]))}}}H.call(ge,J);function he(ye,ce){ye.text(ce).on("mouseover.opacity",function(){Dw.select(this).transition().duration(d1e.SHOW_PLACEHOLDER).style("opacity",1)}).on("mouseout.opacity",function(){Dw.select(this).transition().duration(d1e.HIDE_PLACEHOLDER).style("opacity",0)})}if(U&&(d?H.on(".opacity",null):(he(H,o),v=!0),H.call(Fw.makeEditable,{gd:e}).on("edit",function(ye){s!==void 0?KG.call("_guiRestyle",e,a,ye,s):KG.call("_guiRelayout",e,a,ye)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(ge)}).on("input",function(ye){this.text(ye||" ").call(Fw.positionText,u.x,u.y)}),M)){if(M&&!d){var oe=H.node().getBBox(),Me=oe.y+oe.height+QG*I;J.attr("y",Me)}D?J.on(".opacity",null):(he(J,C),L=!0),J.call(Fw.makeEditable,{gd:e}).on("edit",function(ye){KG.call("_guiRelayout",e,"title.subtitle.text",ye)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(ge)}).on("input",function(ye){this.text(ye||" ").call(Fw.positionText,J.attr("x"),J.attr("y"))})}return H.classed("js-placeholder",v),J&&!J.empty()&&J.classed("js-placeholder",L),f}v1e.exports={draw:ZTt,SUBTITLE_PADDING_EM:QG,SUBTITLE_PADDING_MATHJAX_EM:JG}});var f1=W((tOr,b1e)=>{"use strict";var KTt=gi(),JTt=Y3().utcFormat,Yo=it(),QTt=Yo.numberFormat,u1=un(),Iy=Yo.cleanNumber,eAt=Yo.ms2DateTime,g1e=Yo.dateTime2ms,c1=Yo.ensureNumber,m1e=Yo.isArrayOrTypedArray,Ry=(ta(),Pt(ra)),t7=Ry.FP_SAFE,Hp=Ry.BADNUM,tAt=Ry.LOG_CLIP,rAt=Ry.ONEWEEK,r7=Ry.ONEDAY,i7=Ry.ONEHOUR,y1e=Ry.ONEMIN,x1e=Ry.ONESEC,n7=Fs(),s7=(Wl(),Pt($l)),a7=s7.HOUR_PATTERN,o7=s7.WEEKDAY_PATTERN;function kA(e){return Math.pow(10,e)}function eH(e){return e!=null}b1e.exports=function(t,r){r=r||{};var i=t._id||"x",n=i.charAt(0);function a(b,S){if(b>0)return Math.log(b)/Math.LN10;if(b<=0&&S&&t.range&&t.range.length===2){var x=t.range[0],T=t.range[1];return .5*(x+T-2*tAt*Math.abs(x-T))}else return Hp}function o(b,S,x,T){if((T||{}).msUTC&&u1(b))return+b;var A=g1e(b,x||t.calendar);if(A===Hp)if(u1(b)){b=+b;var y=Math.floor(Yo.mod(b+.05,1)*10),E=Math.round(b-y/10);A=g1e(new Date(E))+y/10}else return Hp;return A}function s(b,S,x){return eAt(b,S,x||t.calendar)}function l(b){return t._categories[Math.round(b)]}function u(b){if(eH(b)){if(t._categoriesMap===void 0&&(t._categoriesMap={}),t._categoriesMap[b]!==void 0)return t._categoriesMap[b];t._categories.push(typeof b=="number"?String(b):b);var S=t._categories.length-1;return t._categoriesMap[b]=S,S}return Hp}function c(b,S){for(var x=new Array(S),T=0;Tt.range[1]&&(x=!x);for(var T=x?-1:1,A=T*b,y=0,E=0;EC)y=E+1;else{y=A<(M+C)/2?E:E+1;break}}var k=t._B[y]||0;return isFinite(k)?d(b,t._m2,k):0},g=function(b){var S=t._rangebreaks.length;if(!S)return v(b,t._m,t._b);for(var x=0,T=0;Tt._rangebreaks[T].pmax&&(x=T+1);return v(b,t._m2,t._B[x])}}t.c2l=t.type==="log"?a:c1,t.l2c=t.type==="log"?kA:c1,t.l2p=m,t.p2l=g,t.c2p=t.type==="log"?function(b,S){return m(a(b,S))}:m,t.p2c=t.type==="log"?function(b){return kA(g(b))}:g,["linear","-"].indexOf(t.type)!==-1?(t.d2r=t.r2d=t.d2c=t.r2c=t.d2l=t.r2l=Iy,t.c2d=t.c2r=t.l2d=t.l2r=c1,t.d2p=t.r2p=function(b){return t.l2p(Iy(b))},t.p2d=t.p2r=g,t.cleanPos=c1):t.type==="log"?(t.d2r=t.d2l=function(b,S){return a(Iy(b),S)},t.r2d=t.r2c=function(b){return kA(Iy(b))},t.d2c=t.r2l=Iy,t.c2d=t.l2r=c1,t.c2r=a,t.l2d=kA,t.d2p=function(b,S){return t.l2p(t.d2r(b,S))},t.p2d=function(b){return kA(g(b))},t.r2p=function(b){return t.l2p(Iy(b))},t.p2r=g,t.cleanPos=c1):t.type==="date"?(t.d2r=t.r2d=Yo.identity,t.d2c=t.r2c=t.d2l=t.r2l=o,t.c2d=t.c2r=t.l2d=t.l2r=s,t.d2p=t.r2p=function(b,S,x){return t.l2p(o(b,0,x))},t.p2d=t.p2r=function(b,S,x){return s(g(b),S,x)},t.cleanPos=function(b){return Yo.cleanDate(b,Hp,t.calendar)}):t.type==="category"?(t.d2c=t.d2l=u,t.r2d=t.c2d=t.l2d=l,t.d2r=t.d2l_noadd=h,t.r2c=function(b){var S=p(b);return S!==void 0?S:t.fraction2r(.5)},t.l2r=t.c2r=c1,t.r2l=p,t.d2p=function(b){return t.l2p(t.r2c(b))},t.p2d=function(b){return l(g(b))},t.r2p=t.d2p,t.p2r=g,t.cleanPos=function(b){return typeof b=="string"&&b!==""?b:c1(b)}):t.type==="multicategory"&&(t.r2d=t.c2d=t.l2d=l,t.d2r=t.d2l_noadd=h,t.r2c=function(b){var S=h(b);return S!==void 0?S:t.fraction2r(.5)},t.r2c_just_indices=f,t.l2r=t.c2r=c1,t.r2l=h,t.d2p=function(b){return t.l2p(t.r2c(b))},t.p2d=function(b){return l(g(b))},t.r2p=t.d2p,t.p2r=g,t.cleanPos=function(b){return Array.isArray(b)||typeof b=="string"&&b!==""?b:c1(b)},t.setupMultiCategory=function(b){var S=t._traceIndices,x,T,A=t._matchGroup;if(A&&t._categories.length===0){for(var y in A)if(y!==i){var E=r[n7.id2name(y)];S=S.concat(E._traceIndices)}}var M=[[0,{}],[0,{}]],C=[];for(x=0;xE[1]&&(T[y?0:1]=x,A[1]=E[1]),A[0]>=A[1])if(S!==void 0){var M=E[0]+1;x!==void 0&&(M=Math.min(M,E[1])),T[y?0:1]=t.l2r(M)}else x!==void 0&&(T[y?1:0]=t.l2r(E[1]-1))}},t.cleanRange=function(b,S){t._cleanRange(b,S),t.limitRange(b)},t._cleanRange=function(b,S){S||(S={}),b||(b="range");var x=Yo.nestedProperty(t,b).get(),T,A;if(t.type==="date"?A=Yo.dfltRange(t.calendar):n==="y"?A=s7.DFLTRANGEY:t._name==="realaxis"?A=[0,1]:A=S.dfltRange||s7.DFLTRANGEX,A=A.slice(),(t.rangemode==="tozero"||t.rangemode==="nonnegative")&&(A[0]=0),!x||x.length!==2){Yo.nestedProperty(t,b).set(A);return}var y=x[0]===null,E=x[1]===null;for(t.type==="date"&&!t.autorange&&(x[0]=Yo.cleanDate(x[0],Hp,t.calendar),x[1]=Yo.cleanDate(x[1],Hp,t.calendar)),T=0;T<2;T++)if(t.type==="date"){if(!Yo.isDateTime(x[T],t.calendar)){t[b]=A;break}if(t.r2l(x[0])===t.r2l(x[1])){var M=Yo.constrain(t.r2l(x[0]),Yo.MIN_MS+1e3,Yo.MAX_MS-1e3);x[0]=t.l2r(M-1e3),x[1]=t.l2r(M+1e3);break}}else{if(!u1(x[T]))if(!(y||E)&&u1(x[1-T]))x[T]=x[1-T]*(T?10:.1);else{t[b]=A;break}if(x[T]<-t7?x[T]=-t7:x[T]>t7&&(x[T]=t7),x[0]===x[1]){var C=Math.max(1,Math.abs(x[0]*1e-6));x[0]-=C,x[1]+=C}}},t.setScale=function(b){var S=r._size;if(t.overlaying){var x=n7.getFromId({_fullLayout:r},t.overlaying);t.domain=x.domain}var T=b&&t._r?"_r":"range",A=t.calendar;t.cleanRange(T);var y=t.r2l(t[T][0],A),E=t.r2l(t[T][1],A),M=n==="y";if(M?(t._offset=S.t+(1-t.domain[1])*S.h,t._length=S.h*(t.domain[1]-t.domain[0]),t._m=t._length/(y-E),t._b=-t._m*E):(t._offset=S.l+t.domain[0]*S.w,t._length=S.w*(t.domain[1]-t.domain[0]),t._m=t._length/(E-y),t._b=-t._m*y),t._rangebreaks=[],t._lBreaks=0,t._m2=0,t._B=[],t.rangebreaks){var C,k;if(t._rangebreaks=t.locateBreaks(Math.min(y,E),Math.max(y,E)),t._rangebreaks.length){for(C=0;CE&&(D=!D),D&&t._rangebreaks.reverse();var L=D?-1:1;for(t._m2=L*t._length/(Math.abs(E-y)-t._lBreaks),t._B.push(-t._m2*(M?E:y)),C=0;CA&&(A+=7,yA&&(A+=24,y=T&&y=T&&b=q.min&&($q.max&&(q.max=Y),K=!1)}K&&E.push({min:$,max:Y})}};for(x=0;x{"use strict";var _1e=un(),tH=it(),iAt=(ta(),Pt(ra)).BADNUM,l7=tH.isArrayOrTypedArray,nAt=tH.isDateTime,aAt=tH.cleanNumber,w1e=Math.round;A1e.exports=function(t,r,i){var n=t,a=i.noMultiCategory;if(l7(n)&&!n.length)return"-";if(!a&&cAt(n))return"multicategory";if(a&&Array.isArray(n[0])){for(var o=[],s=0;sa*2}function T1e(e){return Math.max(1,(e-1)/1e3)}function uAt(e,t){for(var r=e.length,i=T1e(r),n=0,a=0,o={},s=0;sn*2}function cAt(e){return l7(e[0])&&l7(e[1])}});var jp=W((iOr,L1e)=>{"use strict";var fAt=gi(),k1e=un(),zy=it(),u7=(ta(),Pt(ra)).FP_SAFE,hAt=xi(),dAt=en(),C1e=Fs(),pAt=C1e.getFromId,vAt=C1e.isLinked;L1e.exports={applyAutorangeOptions:F1e,getAutoRange:rH,makePadFn:iH,doAutoRange:mAt,findExtremes:yAt,concatExtremes:oH};function rH(e,t){var r,i,n=[],a=e._fullLayout,o=iH(a,t,0),s=iH(a,t,1),l=oH(e,t),u=l.min,c=l.max;if(u.length===0||c.length===0)return zy.simpleMap(t.range,t.r2l);var f=u[0].val,h=c[0].val;for(r=1;r0&&(E=_-o(x)-s(T),E>b?M/E>S&&(A=x,y=T,S=M/E):M/_>S&&(A={val:x.val,nopad:1},y={val:T.val,nopad:1},S=M/_));function C(R,F){return Math.max(R,s(F))}if(f===h){var k=f-1,D=f+1;if(g)if(f===0)n=[0,1];else{var L=(f>0?c:u).reduce(C,0),P=f/(1-Math.min(.5,L/_));n=f>0?[0,P]:[P,0]}else w?n=[Math.max(0,k),Math.max(1,D)]:n=[k,D]}else g?(A.val>=0&&(A={val:0,nopad:1}),y.val<=0&&(y={val:0,nopad:1})):w&&(A.val-S*o(A)<0&&(A={val:0,nopad:1}),y.val<=0&&(y={val:1,nopad:1})),S=(y.val-A.val-M1e(t,x.val,T.val))/(_-o(A)-s(y)),n=[A.val-S*o(A),y.val+S*s(y)];return n=F1e(n,t),t.limitRange&&t.limitRange(),d&&n.reverse(),zy.simpleMap(n,t.l2r||Number)}function M1e(e,t,r){var i=0;if(e.rangebreaks)for(var n=e.locateBreaks(t,r),a=0;a0?r.ppadplus:r.ppadminus)||r.ppad||0),x=b((e._m>0?r.ppadminus:r.ppadplus)||r.ppad||0),T=b(r.vpadplus||r.vpad),A=b(r.vpadminus||r.vpad);if(!u){if(w=1/0,_=-1/0,l)for(f=0;f0&&(w=h),h>_&&h-u7&&(w=h),h>_&&h=M;f--)E(f);return{min:i,max:n,opts:r}}function nH(e,t,r,i){D1e(e,t,r,i,xAt)}function aH(e,t,r,i){D1e(e,t,r,i,bAt)}function D1e(e,t,r,i,n){for(var a=i.tozero,o=i.extrapad,s=!0,l=0;l=r&&(u.extrapad||!o)){s=!1;break}else n(t,u.val)&&u.pad<=r&&(o||!u.extrapad)&&(e.splice(l,1),l--)}if(s){var c=a&&t===0;e.push({val:t,pad:c?0:r,extrapad:c?!1:o})}}function E1e(e){return k1e(e)&&Math.abs(e)=t}function _At(e,t){var r=t.autorangeoptions;return r&&r.minallowed!==void 0&&c7(t,r.minallowed,r.maxallowed)?r.minallowed:r&&r.clipmin!==void 0&&c7(t,r.clipmin,r.clipmax)?Math.max(e,t.d2l(r.clipmin)):e}function wAt(e,t){var r=t.autorangeoptions;return r&&r.maxallowed!==void 0&&c7(t,r.minallowed,r.maxallowed)?r.maxallowed:r&&r.clipmax!==void 0&&c7(t,r.clipmin,r.clipmax)?Math.min(e,t.d2l(r.clipmax)):e}function c7(e,t,r){return t!==void 0&&r!==void 0?(t=e.d2l(t),r=e.d2l(r),t=l&&(a=l,r=l),o<=l&&(o=l,i=l)}}return r=_At(r,t),i=wAt(i,t),[r,i]}});var Wi=W((aOr,tge)=>{"use strict";var md=gi(),Dl=un(),Pw=Qo(),DA=xi(),Tn=it(),Iw=Tn.strTranslate,pb=ho(),TAt=db(),FA=ai(),b0=en(),AAt=nc(),P1e=DG(),nOr=(Wl(),Pt($l)),Ec=(ta(),Pt(ra)),MAt=Ec.ONEMAXYEAR,d7=Ec.ONEAVGYEAR,p7=Ec.ONEMINYEAR,SAt=Ec.ONEMAXQUARTER,cH=Ec.ONEAVGQUARTER,v7=Ec.ONEMINQUARTER,EAt=Ec.ONEMAXMONTH,Rw=Ec.ONEAVGMONTH,g7=Ec.ONEMINMONTH,_0=Ec.ONEWEEK,Af=Ec.ONEDAY,By=Af/2,d1=Ec.ONEHOUR,LA=Ec.ONEMIN,m7=Ec.ONESEC,kAt=Ec.ONEMILLI,CAt=Ec.ONEMICROSEC,vb=Ec.MINUS_SIGN,x7=Ec.BADNUM,fH={K:"zeroline"},hH={K:"gridline",L:"path"},dH={K:"minor-gridline",L:"path"},H1e={K:"tick",L:"path"},I1e={K:"tick",L:"text"},R1e={width:["x","r","l","xl","xr"],height:["y","t","b","yt","yb"],right:["r","xr"],left:["l","xl"],top:["t","yt"],bottom:["b","yb"]},b7=(Xl(),Pt(Yl)),CA=b7.MID_SHIFT,gb=b7.CAP_SHIFT,PA=b7.LINE_SPACING,DAt=b7.OPPOSITE_SIDE,y7=3,zr=tge.exports={};zr.setConvert=f1();var FAt=Lw(),p1=Fs(),LAt=p1.idSort,PAt=p1.isLinked;zr.id2name=p1.id2name;zr.name2id=p1.name2id;zr.cleanId=p1.cleanId;zr.list=p1.list;zr.listIds=p1.listIds;zr.getFromId=p1.getFromId;zr.getFromTrace=p1.getFromTrace;var j1e=jp();zr.getAutoRange=j1e.getAutoRange;zr.findExtremes=j1e.findExtremes;var IAt=1e-4;function mH(e){var t=(e[1]-e[0])*IAt;return[e[0]-t,e[1]+t]}function RAt(e,t,r){if(![r,e,t].every(Dl)||r===0)return e;let i=Math.round((e-t)/r),n=t+i*r;return e!==n&&Math.abs(e-n)h+" domain")),l=l.concat(a||[]),c.length>o?(Tn.warn("Array attribute "+u+" has more entries than expected, truncating to "+o),c=c.slice(0,o)):c.length2e-6||((r-e._forceTick0)/e._minDtick%1+1.000001)%1>2e-6)&&(e._minDtick=0))};zr.saveRangeInitial=function(e,t){for(var r=zr.list(e,"",!0),i=!1,n=0;nf*.3||u(i)||u(n))){var h=r.dtick/2;e+=e+ho){var s=Number(r.slice(1));a.exactYears>o&&s%12===0?e=zr.tickIncrement(e,"M6","reverse")+Af*1.5:a.exactMonths>o?e=zr.tickIncrement(e,"M1","reverse")+Af*15.5:e-=By;var l=zr.tickIncrement(e,r);if(l<=i)return l}return e}zr.prepMinorTicks=function(e,t,r){var f,h;if(!((f=t.minor)!=null&&f.dtick)){delete e.dtick;var i=t.dtick&&Dl(t._tmin),n;if(i){var a=zr.tickIncrement(t._tmin,t.dtick,!0);n=[t._tmin,a*.99+t._tmin*.01]}else{var o=Tn.simpleMap(t.range,t.r2l);n=[o[0],.8*o[0]+.2*o[1]]}if(e.range=Tn.simpleMap(n,t.l2r),e._isMinor=!0,zr.prepTicks(e,r),i){var s=Dl(t.dtick),l=Dl(e.dtick),u=s?t.dtick:+t.dtick.substring(1),c=l?e.dtick:+e.dtick.substring(1);s&&l?sH(u,c)?u===2*_0&&c===2*Af&&(e.dtick=_0):u===2*_0&&c===3*Af?e.dtick=_0:u===_0&&!(t._input.minor||{}).nticks?e.dtick=Af:q1e(u/c,2.5)?e.dtick=u/2:e.dtick=u:String(t.dtick).charAt(0)==="M"?l?e.dtick="M1":sH(u,c)?u>=12&&c===2&&(e.dtick="M3"):e.dtick=t.dtick:String(e.dtick).charAt(0)==="L"?String(t.dtick).charAt(0)==="L"?sH(u,c)||(e.dtick=q1e(u/c,2.5)?t.dtick/2:t.dtick):e.dtick="D1":e.dtick==="D2"&&+t.dtick>1&&(e.dtick=1)}e.range=t.range}((h=t.minor)==null?void 0:h._tick0Init)===void 0&&(e.tick0=t.tick0)};function sH(e,t){return Math.abs((e/t+.5)%1-.5)<.001}function q1e(e,t){return Math.abs(e/t-1)<.001}zr.prepTicks=function(e,t){var r=Tn.simpleMap(e.range,e.r2l,void 0,void 0,t);if(e.tickmode==="auto"||!e.dtick){var i=e.nticks,n;i||(e.type==="category"||e.type==="multicategory"?(n=e.tickfont?Tn.bigFont(e.tickfont.size||12):15,i=e._length/n):(n=e._id.charAt(0)==="y"?40:80,i=Tn.constrain(e._length/n,4,9)+1),e._name==="radialaxis"&&(i*=2)),e.minor&&e.minor.tickmode!=="array"||e.tickmode==="array"&&(i*=100),e._roughDTick=Math.abs(r[1]-r[0])/i,zr.autoTicks(e,e._roughDTick),e._minDtick>0&&e.dtick0?(a=i-1,o=i):(a=i,o=i);var s=e[a].value,l=e[o].value,u=Math.abs(l-s),c=r||u,f=0;c>=p7?u>=p7&&u<=MAt?f=u:f=d7:r===cH&&c>=v7?u>=v7&&u<=SAt?f=u:f=cH:c>=g7?u>=g7&&u<=EAt?f=u:f=Rw:r===_0&&c>=_0?f=_0:c>=Af?f=Af:r===By&&c>=By?f=By:r===d1&&c>=d1&&(f=d1);var h;f>=u&&(f=u,h=!0);var p=n+f;if(t.rangebreaks&&f>0){for(var d=84,v=0,m=0;m_0&&(f=u)}(f>0||i===0)&&(e[i].periodX=n+f/2)}}zr.calcTicks=function(t,r){for(var i=t.type,n=t.calendar,a=t.ticklabelstep,o=t.ticklabelmode==="period",s=t.range[0]>t.range[1],l=!t.ticklabelindex||Tn.isArrayOrTypedArray(t.ticklabelindex)?t.ticklabelindex:[t.ticklabelindex],u=Tn.simpleMap(t.range,t.r2l,void 0,void 0,r),c=u[1]=(b?0:1);S--){var x=!S;S?(t._dtickInit=t.dtick,t._tick0Init=t.tick0):b&&(t.minor._dtickInit=t.minor.dtick,t.minor._tick0Init=t.minor.tick0);var T=S?t:Tn.extendFlat({},t,b?t.minor:{minor:{}});if(x?zr.prepMinorTicks(T,t,r):zr.prepTicks(T,r),T.tickmode==="array"){S?(m=[],d=O1e(t,!x)):(g=[],v=O1e(t,!x));continue}if(T.tickmode==="sync"){m=[],d=UAt(t);continue}var A=mH(u),y=A[0],E=A[1],M=Dl(T.dtick),C=i==="log"&&!(M||T.dtick.charAt(0)==="L"),k=zr.tickFirst(T,r);if(S){if(t._tmin=k,k=E:L<=E;L=zr.tickIncrement(L,F,c,n)){if(S&&P++,T.rangebreaks&&!c){if(L=h)break}if(m.length>p||L===D)break;D=L;var B={value:RAt(L,I,F)};S?(L===k&&(B.first=!0),C&&L!==(L|0)&&(B.simpleLabel=!0),a>1&&P%a&&(B.skipLabel=!0),m.push(B)):(B.minor=!0,g.push(B))}}if(!g||g.length<3)l=!1;else{var O=(g[2].value-g[1].value)*(s?-1:1);hMt(O,t.tickformat)||(l=!1,g=g.slice(1))}if(!l)w=m;else{var $=m.concat(g);o&&m.length&&($=$.slice(1)),$=$.sort(function(ce,ee){return ce.value-ee.value}).filter(function(ce,ee,ae){return ee===0||ce.value!==ae[ee-1].value});var Y=$.map(function(ce,ee){return ce.minor===void 0&&!ce.skipLabel?ee:null}).filter(function(ce){return ce!==null});Y.forEach(function(ce){l.map(function(ee){var ae=ce+ee;ae>=0&&ae<$.length&&Tn.pushUnique(w,$[ae])})}),m.forEach(function(ce){ce.skipLabel=w.indexOf(ce)===-1})}if(_){var K=t.minor.ticks==="inside"&&t.ticks==="outside"||t.minor.ticks==="outside"&&t.ticks==="inside";if(!K){for(var j=m.map(function(ce){return ce.value}),q=[],Q=0;Q-1;H--){if(m[H].drop){m.splice(H,1);continue}m[H].value=uH(m[H].value,t);var ge=t.c2p(m[H].value);(J?ue>ge-te:ueh||xeh&&(ae.periodX=h),xen&&dn&&md7)t/=d7,i=n(10),e.dtick="M"+12*h1(t,i,f7);else if(a>Rw)t/=Rw,e.dtick="M"+h1(t,1,N1e);else if(a>Af){if(e.dtick=h1(t,Af,e._hasDayOfWeekBreaks?[1,2,7,14]:VAt),!r){var o=zr.getTickFormat(e),s=e.ticklabelmode==="period";s&&(e._rawTick0=e.tick0),/%[uVW]/.test(o)?e.tick0=Tn.dateTick0(e.calendar,2):e.tick0=Tn.dateTick0(e.calendar,1),s&&(e._dowTick0=e.tick0)}}else a>d1?e.dtick=h1(t,d1,N1e):a>LA?e.dtick=h1(t,LA,U1e):a>m7?e.dtick=h1(t,m7,U1e):(i=n(10),e.dtick=h1(t,i,f7))}else if(e.type==="log"){e.tick0=0;var l=Tn.simpleMap(e.range,e.r2l);if(e._isMinor&&(t*=1.5),t>.7)e.dtick=Math.ceil(t);else if(Math.abs(l[1]-l[0])<1){var u=1.5*Math.abs((l[1]-l[0])/t);t=Math.abs(Math.pow(10,l[1])-Math.pow(10,l[0]))/u,i=n(10),e.dtick="L"+h1(t,i,f7)}else e.dtick=t>.3?"D2":"D1"}else e.type==="category"||e.type==="multicategory"?(e.tick0=0,e.dtick=Math.ceil(Math.max(t,1))):_H(e)?(e.tick0=0,i=1,e.dtick=h1(t,i,GAt)):(e.tick0=0,i=n(10),e.dtick=h1(t,i,f7));if(e.dtick===0&&(e.dtick=1),!Dl(e.dtick)&&typeof e.dtick!="string"){var c=e.dtick;throw e.dtick=1,"ax.dtick error: "+String(c)}};function X1e(e){var t=e.dtick;if(e._tickexponent=0,!Dl(t)&&typeof t!="string"&&(t=1),(e.type==="category"||e.type==="multicategory")&&(e._tickround=null),e.type==="date"){var r=e.r2l(e.tick0),i=e.l2r(r).replace(/(^-|i)/g,""),n=i.length;if(String(t).charAt(0)==="M")n>10||i.slice(5)!=="01-01"?e._tickround="d":e._tickround=+t.slice(1)%12===0?"y":"m";else if(t>=Af&&n<=10||t>=Af*15)e._tickround="d";else if(t>=LA&&n<=16||t>=d1)e._tickround="M";else if(t>=m7&&n<=19||t>=LA)e._tickround="S";else{var a=e.l2r(r+t).replace(/^-/,"").length;e._tickround=Math.max(n,a)-20,e._tickround<0&&(e._tickround=4)}}else if(Dl(t)||t.charAt(0)==="L"){var o=e.range.map(e.r2d||Number);Dl(t)||(t=Number(t.slice(1))),e._tickround=2-Math.floor(Math.log(t)/Math.LN10+.01);var s=Math.max(Math.abs(o[0]),Math.abs(o[1])),l=Math.floor(Math.log(s)/Math.LN10+.01),u=e.minexponent===void 0?3:e.minexponent;Math.abs(l)>u&&(zw(e.exponentformat)&&e.exponentformat!=="SI extended"&&!yH(l)||zw(e.exponentformat)&&e.exponentformat==="SI extended"&&!xH(l)?e._tickexponent=3*Math.round((l-1)/3):e._tickexponent=l)}else e._tickround=null}zr.tickIncrement=function(e,t,r,i){var n=r?-1:1;if(Dl(t))return Tn.increment(e,n*t);var a=t.charAt(0),o=n*Number(t.slice(1));if(a==="M")return Tn.incrementMonth(e,o,i);if(a==="L")return Math.log(Math.pow(10,e)+o)/Math.LN10;if(a==="D"){var s=t==="D2"?Y1e:W1e,l=e+n*.01,u=Tn.roundUp(Tn.mod(l,1),s,r);return Math.floor(l)+Math.log(md.round(Math.pow(10,u),1))/Math.LN10}throw"unrecognized dtick "+String(t)};zr.tickFirst=function(e,t){var r=e.r2l||Number,i=Tn.simpleMap(e.range,r,void 0,void 0,t),n=i[1]=0&&b<=e._length?_:null};if(l&&Tn.isArrayOrTypedArray(e.ticktext)){var d=Tn.simpleMap(e.range,e.r2l),v=(Math.abs(d[1]-d[0])-(e._lBreaks||0))/1e4;for(h=0;h"+s;else{var u=RA(e),c=e._trueSide||e.side;(!u&&c==="top"||u&&c==="bottom")&&(o+="
")}t.text=o}function jAt(e,t,r,i,n){var a=e.dtick,o=t.x,s=e.tickformat,l=typeof a=="string"&&a.charAt(0);if(n==="never"&&(n=""),i&&l!=="L"&&(a="L3",l="L"),s||l==="L")t.text=IA(Math.pow(10,o),e,n,i);else if(Dl(a)||l==="D"&&(e.minorloglabels==="complete"||Tn.mod(o+.01,1)<.1)){var u;e.minorloglabels==="complete"&&!(Tn.mod(o+.01,1)<.1)&&(u=!0,t.fontSize*=.75);var c=Math.pow(10,o).toExponential(0),f=c.split("e"),h=+f[1],p=Math.abs(h),d=e.exponentformat;d==="power"||zw(d)&&d!=="SI extended"&&yH(h)||zw(d)&&d==="SI extended"&&xH(h)?(t.text=f[0],p>0&&(t.text+="x10"),t.text==="1x10"&&(t.text="10"),h!==0&&h!==1&&(t.text+=""+(h>0?"":vb)+p+""),t.fontSize*=1.25):(d==="e"||d==="E")&&p>2?t.text=f[0]+d+(h>0?"+":vb)+p:(t.text=IA(Math.pow(10,o),e,"","fakehover"),a==="D1"&&e._id.charAt(0)==="y"&&(t.dy-=t.fontSize/6))}else if(l==="D")t.text=e.minorloglabels==="none"?"":String(Math.round(Math.pow(10,Tn.mod(o,1)))),t.fontSize*=.75;else throw"unrecognized dtick "+String(a);if(e.dtick==="D1"){var v=String(t.text).charAt(0);(v==="0"||v==="1")&&(e._id.charAt(0)==="y"?t.dx-=t.fontSize/4:(t.dy+=t.fontSize/2,t.dx+=(e.range[1]>e.range[0]?1:-1)*t.fontSize*(o<0?.5:.25)))}}function $At(e,t){var r=e._categories[Math.round(t.x)];r===void 0&&(r=""),t.text=String(r)}function WAt(e,t,r){var i=Math.round(t.x),n=e._categories[i]||[],a=n[1]===void 0?"":String(n[1]),o=n[0]===void 0?"":String(n[0]);r?t.text=o+" - "+a:(t.text=a,t.text2=o)}function YAt(e,t,r,i,n){n==="never"?n="":e.showexponent==="all"&&Math.abs(t.x/e.dtick)<1e-6&&(n="hide"),t.text=IA(t.x,e,n,i)}function XAt(e,t,r,i,n){if(e.thetaunit==="radians"&&!r){var a=t.x/180;if(a===0)t.text="0";else{var o=ZAt(a);if(o[1]>=100)t.text=IA(Tn.deg2rad(t.x),e,n,i);else{var s=t.x<0;o[1]===1?o[0]===1?t.text="\u03C0":t.text=o[0]+"\u03C0":t.text=["",o[0],"","\u2044","",o[1],"","\u03C0"].join(""),s&&(t.text=vb+t.text)}}}else t.text=IA(t.x,e,n,i)}function ZAt(e){function t(s,l){return Math.abs(s-l)<=1e-6}function r(s,l){return t(l,0)?s:r(l,s%l)}function i(s){for(var l=1;!t(Math.round(s*l)/l,s);)l*=10;return l}var n=i(e),a=e*n,o=Math.abs(r(a,n));return[Math.round(a/o),Math.round(n/o)]}var K1e=["f","p","n","\u03BC","m","","k","M","G","T"],KAt=["q","r","y","z","a",...K1e,"P","E","Z","Y","R","Q"],zw=e=>["SI","SI extended","B"].includes(e);function yH(e){return e>14||e<-15}function xH(e){return e>32||e<-30}function JAt(e,t){return zw(t)?!!(t==="SI extended"&&xH(e)||t!=="SI extended"&&yH(e)):!1}function IA(e,t,r,i){var n=e<0,a=t._tickround,o=r||t.exponentformat||"B",s=t._tickexponent,l=zr.getTickFormat(t),u=t.separatethousands;if(i){var c={exponentformat:o,minexponent:t.minexponent,dtick:t.showexponent==="none"?t.dtick:Dl(e)&&Math.abs(e)||1,range:t.showexponent==="none"?t.range.map(t.r2d):[0,e||1]};X1e(c),a=(Number(c._tickround)||0)+4,s=c._tickexponent,t.hoverformat&&(l=t.hoverformat)}if(l)return t._numFormat(l)(e).replace(/-/g,vb);o==="none"&&(s=0),e=Math.abs(e);let f=Math.pow(10,-a)/2;if(e"+h+"":o==="B"&&s===9?e+="B":zw(o)&&(e+=o==="SI extended"?KAt[s/3+10]:K1e[s/3+5])}return n?vb+e:e}zr.getTickFormat=function(e){var t;function r(l){return typeof l!="string"?l:Number(l.replace("M",""))*Rw}function i(l,u){var c=["L","D"];if(typeof l==typeof u){if(typeof l=="number")return l-u;var f=c.indexOf(l.charAt(0)),h=c.indexOf(u.charAt(0));return f===h?Number(l.replace(/(L|D)/g,""))-Number(u.replace(/(L|D)/g,"")):f-h}else return typeof l=="number"?1:-1}function n(l,u,c){var f=c||function(d){return d},h=u[0],p=u[1];return(!h&&typeof h!="number"||f(h)<=f(l))&&(!p&&typeof p!="number"||f(p)>=f(l))}function a(l,u){var c=u[0]===null,f=u[1]===null,h=i(l,u[0])>=0,p=i(l,u[1])<=0;return(c||h)&&(f||p)}var o,s;if(e.tickformatstops&&e.tickformatstops.length>0)switch(e.type){case"date":case"linear":{for(t=0;t=0&&n.unshift(n.splice(c,1).shift())}});var s={false:{left:0,right:0}};return Tn.syncOrAsync(n.map(function(l){return function(){if(l){var u=zr.getFromId(e,l);r||(r={}),r.axShifts=s,r.overlayingShiftedAx=o;var c=zr.drawOne(e,u,r);return u._shiftPusher&&gH(u,u._fullDepth||0,s,!0),u._r=u.range.slice(),u._rl=Tn.simpleMap(u._r,u.r2l),c}}}))};zr.drawOne=function(e,t,r){r=r||{};var i=r.axShifts||{},n=r.overlayingShiftedAx||[],a,o,s;t.setScale();var l=e._fullLayout,u=t._id,c=u.charAt(0),f=zr.counterLetter(u),h=l._plots[t._mainSubplot],p=t.zerolinelayer==="above traces";if(!h)return;if(t._shiftPusher=t.autoshift||n.indexOf(t._id)!==-1||n.indexOf(t.overlaying)!==-1,t._shiftPusher&t.anchor==="free"){var d=t.linewidth/2||0;t.ticks==="inside"&&(d+=t.ticklen),gH(t,d,i,!0),gH(t,t.shift||0,i,!1)}(r.skipTitle!==!0||t._shift===void 0)&&(t._shift=fMt(t,i));var v=h[c+"axislayer"],m=t._mainLinePosition,g=m+=t._shift,w=t._mainMirrorPosition,_=t._vals=zr.calcTicks(t),b=[t.mirror,g,w].join("_");for(a=0;a<_.length;a++)_[a].axInfo=b;t._selections={},t._tickAngles&&(t._prevTickAngles=t._tickAngles),t._tickAngles={},t._depth=null;var S={};function x(oe){var Me=u+(oe||"tick");return S[Me]||(S[Me]=rMt(t,Me,g)),S[Me]}if(t.visible){var T=zr.makeTransTickFn(t),A=zr.makeTransTickLabelFn(t),y,E,M=t.ticks==="inside",C=t.ticks==="outside";if(t.tickson==="boundaries"){var k=QAt(t,_);E=zr.clipEnds(t,k),y=M?E:k}else E=zr.clipEnds(t,_),y=M&&t.ticklabelmode!=="period"?E:_;var D=t._gridVals=E,L=tMt(t,_);if(!l._hasOnlyLargeSploms){var P=t._subplotsWith,R={};for(a=0;a0?ee.bottom-ye:0,ce))));var pe=0,we=0;if(t._shiftPusher&&(pe=Math.max(ce,ee.height>0?oe==="l"?ye-ee.left:ee.right-ye:0),t.title.text!==l._dfltTitle[c]&&(we=(t._titleStandoff||0)+(t._titleScoot||0),oe==="l"&&(we+=G1e(t))),t._fullDepth=Math.max(pe,we)),t.automargin){ae={x:0,y:0,r:0,l:0,t:0,b:0};var Fe=[0,1],Ee=typeof t._shift=="number"?t._shift:0;if(c==="x"){if(oe==="b"?ae[oe]=t._depth:(ae[oe]=t._depth=Math.max(ee.width>0?ye-ee.top:0,ce),Fe.reverse()),ee.width>0){var Ce=ee.right-(t._offset+t._length);Ce>0&&(ae.xr=1,ae.r=Ce);var be=t._offset-ee.left;be>0&&(ae.xl=0,ae.l=be)}}else if(oe==="l"?(t._depth=Math.max(ee.height>0?ye-ee.left:0,ce),ae[oe]=t._depth-Ee):(t._depth=Math.max(ee.height>0?ee.right-ye:0,ce),ae[oe]=t._depth+Ee,Fe.reverse()),ee.height>0){var Ie=ee.bottom-(t._offset+t._length);Ie>0&&(ae.yb=0,ae.b=Ie);var Oe=t._offset-ee.top;Oe>0&&(ae.yt=1,ae.t=Oe)}ae[f]=t.anchor==="free"?t.position:t._anchorAxis.domain[Fe[0]],t.title.text!==l._dfltTitle[c]&&(ae[oe]+=G1e(t)+(t.title.standoff||0)),t.mirror&&t.anchor!=="free"&&(xe={x:0,y:0,r:0,l:0,t:0,b:0},xe[Me]=t.linewidth,t.mirror&&t.mirror!==!0&&(xe[Me]+=ce),t.mirror===!0||t.mirror==="ticks"?xe[f]=t._anchorAxis.domain[Fe[1]]:(t.mirror==="all"||t.mirror==="allticks")&&(xe[f]=[t._counterDomainMin,t._counterDomainMax][Fe[1]]))}he&&(re=DA.getComponentMethod("rangeslider","autoMarginOpts")(e,t)),typeof t.automargin=="string"&&(V1e(ae,t.automargin),V1e(xe,t.automargin)),Pw.autoMargin(e,bH(t),ae),Pw.autoMargin(e,Q1e(t),xe),Pw.autoMargin(e,ege(t),re)}),Tn.syncOrAsync(ke)}};function V1e(e,t){if(e){var r=Object.keys(R1e).reduce(function(i,n){return t.indexOf(n)!==-1&&R1e[n].forEach(function(a){i[a]=1}),i},{});Object.keys(e).forEach(function(i){r[i]||(i.length===1?e[i]=0:delete e[i])})}}function QAt(e,t){var r=[],i,n=function(a,o){var s=a.xbnd[o];s!==null&&r.push(Tn.extendFlat({},a,{x:s}))};if(t.length){for(i=0;ie.range[1],s=e.ticklabelposition&&e.ticklabelposition.indexOf("inside")!==-1,l=!s;if(r){var u=o?-1:1;r=r*u}if(i){var c=e.side,f=s&&(c==="top"||c==="left")||l&&(c==="bottom"||c==="right")?1:-1;i=i*f}return e._id.charAt(0)==="x"?function(h){return Iw(n+e._offset+e.l2p(pH(h))+r,a+i)}:function(h){return Iw(a+i,n+e._offset+e.l2p(pH(h))+r)}};function pH(e){return e.periodX!==void 0?e.periodX:e.x}function iMt(e){var t=e.ticklabelposition||"",r=e.tickson||"",i=function(d){return t.indexOf(d)!==-1},n=i("top"),a=i("left"),o=i("right"),s=i("bottom"),l=i("inside"),u=r!=="boundaries"&&(s||a||n||o);if(!u&&!l)return[0,0];var c=e.side,f=u?(e.tickwidth||0)/2:0,h=y7,p=e.tickfont?e.tickfont.size:12;return(s||n)&&(f+=p*gb,h+=(e.linewidth||0)/2),(a||o)&&(f+=(e.linewidth||0)/2,h+=y7),l&&c==="top"&&(h-=p*(1-gb)),(a||n)&&(f=-f),(c==="bottom"||c==="right")&&(h=-h),[u?f:0,l?h:0]}zr.makeTickPath=function(e,t,r,i){i||(i={});var n=i.minor;if(n&&!e.minor)return"";var a=i.len!==void 0?i.len:n?e.minor.ticklen:e.ticklen,o=e._id.charAt(0),s=(e.linewidth||1)/2;return o==="x"?"M0,"+(t+s*r)+"v"+a*r:"M"+(t+s*r)+",0h"+a*r};zr.makeLabelFns=function(e,t,r){var i=e.ticklabelposition||"",n=e.tickson||"",a=function(k){return i.indexOf(k)!==-1},o=a("top"),s=a("left"),l=a("right"),u=a("bottom"),c=n!=="boundaries"&&(u||s||o||l),f=a("inside"),h=i==="inside"&&e.ticks==="inside"||!f&&e.ticks==="outside"&&n!=="boundaries",p=0,d=0,v=h?e.ticklen:0;if(f?v*=-1:c&&(v=0),h&&(p+=v,r)){var m=Tn.deg2rad(r);p=v*Math.cos(m)+1,d=v*Math.sin(m)}e.showticklabels&&(h||e.showline)&&(p+=.2*e.tickfont.size),p+=(e.linewidth||1)/2*(f?-1:1);var g={labelStandoff:p,labelShift:d},w,_,b,S,x=0,T=e.side,A=e._id.charAt(0),y=e.tickangle,E;if(A==="x")E=!f&&T==="bottom"||f&&T==="top",S=E?1:-1,f&&(S*=-1),w=d*S,_=t+p*S,b=E?1:-.2,Math.abs(y)===90&&(f?b+=CA:y===-90&&T==="bottom"?b=gb:y===90&&T==="top"?b=CA:b=.5,x=CA/2*(y/90)),g.xFn=function(k){return k.dx+w+x*k.fontSize},g.yFn=function(k){return k.dy+_+k.fontSize*b},g.anchorFn=function(k,D){if(c){if(s)return"end";if(l)return"start"}return!Dl(D)||D===0||D===180?"middle":D*S<0!==f?"end":"start"},g.heightFn=function(k,D,L){return D<-60||D>60?-.5*L:e.side==="top"!==f?-L:0};else if(A==="y"){if(E=!f&&T==="left"||f&&T==="right",S=E?1:-1,f&&(S*=-1),w=p,_=d*S,b=0,!f&&Math.abs(y)===90&&(y===-90&&T==="left"||y===90&&T==="right"?b=gb:b=.5),f){var M=Dl(y)?+y:0;if(M!==0){var C=Tn.deg2rad(M);x=Math.abs(Math.sin(C))*gb*S,b=0}}g.xFn=function(k){return k.dx+t-(w+k.fontSize*b)*S+x*k.fontSize},g.yFn=function(k){return k.dy+_+k.fontSize*CA},g.anchorFn=function(k,D){return Dl(D)&&Math.abs(D)===90?"middle":E?"end":"start"},g.heightFn=function(k,D,L){return e.side==="right"&&(D*=-1),D<-30?-L:D<30?-.5*L:0}}return g};function _7(e){return[e.text,e.x,e.axInfo,e.font,e.fontSize,e.fontColor].join("_")}zr.drawTicks=function(e,t,r){r=r||{};var i=t._id+"tick",n=[].concat(t.minor&&t.minor.ticks?r.vals.filter(function(o){return o.minor&&!o.noTick}):[]).concat(t.ticks?r.vals.filter(function(o){return!o.minor&&!o.noTick}):[]),a=r.layer.selectAll("path."+i).data(n,_7);a.exit().remove(),a.enter().append("path").classed(i,1).classed("ticks",1).classed("crisp",r.crisp!==!1).each(function(o){return FA.stroke(md.select(this),o.minor?t.minor.tickcolor:t.tickcolor)}).style("stroke-width",function(o){return b0.crispRound(e,o.minor?t.minor.tickwidth:t.tickwidth,1)+"px"}).attr("d",r.path).style("display",null),w7(t,[H1e]),a.attr("transform",r.transFn)};zr.drawGrid=function(e,t,r){if(r=r||{},t.tickmode!=="sync"){var i=t._id+"grid",n=t.minor&&t.minor.showgrid,a=n?r.vals.filter(function(g){return g.minor}):[],o=t.showgrid?r.vals.filter(function(g){return!g.minor}):[],s=r.counterAxis;if(s&&zr.shouldShowZeroLine(e,t,s))for(var l=t.tickmode==="array",u=0;u=0;d--){var v=d?h:p;if(v){var m=v.selectAll("path."+i).data(d?o:a,_7);m.exit().remove(),m.enter().append("path").classed(i,1).classed("crisp",r.crisp!==!1),m.attr("transform",r.transFn).attr("d",r.path).each(function(g){return FA.stroke(md.select(this),g.minor?t.minor.gridcolor:t.gridcolor||"#ddd")}).style("stroke-dasharray",function(g){return b0.dashStyle(g.minor?t.minor.griddash:t.griddash,g.minor?t.minor.gridwidth:t.gridwidth)}).style("stroke-width",function(g){return(g.minor?f:t._gw)+"px"}).style("display",null),typeof r.path=="function"&&m.attr("d",r.path)}}w7(t,[hH,dH])}};zr.drawZeroLine=function(e,t,r){r=r||r;var i=t._id+"zl",n=zr.shouldShowZeroLine(e,t,r.counterAxis),a=r.layer.selectAll("path."+i).data(n?[{x:0,id:t._id}]:[]);a.exit().remove(),a.enter().append("path").classed(i,1).classed("zl",1).classed("crisp",r.crisp!==!1).each(function(){r.layer.selectAll("path").sort(function(o,s){return LAt(o.id,s.id)})}),a.attr("transform",r.transFn).attr("d",r.path).call(FA.stroke,t.zerolinecolor||FA.defaultLine).style("stroke-width",b0.crispRound(e,t.zerolinewidth,t._gw||1)+"px").style("display",null),w7(t,[fH])};zr.drawLabels=function(e,t,r){r=r||{};var i=e._fullLayout,n=t._id,a=t.zerolinelayer==="above traces",o=r.cls||n+"tick",s=r.vals.filter(function(I){return I.text}),l=r.labelFns,u=r.secondary?0:t.tickangle,c=(t._prevTickAngles||{})[o],f=r.layer.selectAll("g."+o).data(t.showticklabels?s:[],_7),h=[];f.enter().append("g").classed(o,1).append("text").attr("text-anchor","middle").each(function(I){var B=md.select(this),O=e._promises.length;B.call(pb.positionText,l.xFn(I),l.yFn(I)).call(b0.font,{family:I.font,size:I.fontSize,color:I.fontColor,weight:I.fontWeight,style:I.fontStyle,variant:I.fontVariant,textcase:I.fontTextcase,lineposition:I.fontLineposition,shadow:I.fontShadow}).text(I.text).call(pb.convertToTspans,e),e._promises[O]?h.push(e._promises.pop().then(function(){p(B,u)})):p(B,u)}),w7(t,[I1e]),f.exit().remove(),r.repositionOnUpdate&&f.each(function(I){md.select(this).select("text").call(pb.positionText,l.xFn(I),l.yFn(I))});function p(I,B){I.each(function(O){var $=md.select(this),Y=$.select(".text-math-group"),K=l.anchorFn(O,B),j=r.transFn.call($.node(),O)+(Dl(B)&&+B!=0?" rotate("+B+","+l.xFn(O)+","+(l.yFn(O)-O.fontSize/2)+")":""),q=pb.lineCount($),Q=PA*O.fontSize,U=l.heightFn(O,Dl(B)?+B:0,(q-1)*Q);if(U&&(j+=Iw(0,U)),Y.empty()){var V=$.select("text");V.attr({transform:j,"text-anchor":K}),V.style("display",null),t._adjustTickLabelsOverflow&&t._adjustTickLabelsOverflow()}else{var X=b0.bBox(Y.node()).width,G=X*{end:-.5,start:.5}[K];Y.attr("transform",j+Iw(G,0))}})}t._adjustTickLabelsOverflow=function(){var I=t.ticklabeloverflow;if(!(!I||I==="allow")){var B=I.indexOf("hide")!==-1,O=t._id.charAt(0)==="x",$=0,Y=O?e._fullLayout.width:e._fullLayout.height;if(I.indexOf("domain")!==-1){var K=Tn.simpleMap(t.range,t.r2l);$=t.l2p(K[0])+t._offset,Y=t.l2p(K[1])+t._offset}var j=Math.min($,Y),q=Math.max($,Y),Q=t.side,U=1/0,V=-1/0;f.each(function(J){var te=md.select(this),ue=te.select(".text-math-group");if(ue.empty()){var ge=b0.bBox(te.node()),ke=0;O?(ge.right>q||ge.leftq||ge.top+(t.tickangle?0:J.fontSize/4)t["_visibleLabelMin_"+K._id]?te.style("display","none"):q.K==="tick"&&!j&&te.node().style.display!=="none"&&te.style("display",null)})})})})},p(f,c+1?c:u);function d(){return h.length&&Promise.all(h)}var v=null;function m(){if(p(f,u),s.length&&t.autotickangles&&(t.type!=="log"||String(t.dtick).charAt(0)!=="D")){v=t.autotickangles[0];var I=0,B=[],O,$=1;f.each(function(ae){I=Math.max(I,ae.fontSize);var xe=t.l2p(ae.x),re=vH(this),pe=b0.bBox(re.node());$=Math.max($,pb.lineCount(re)),B.push({top:0,bottom:10,height:10,left:xe-pe.width/2,right:xe+pe.width/2+2,width:pe.width+2})});var Y=(t.tickson==="boundaries"||t.showdividers)&&!r.secondary,K=s.length,j=Math.abs((s[K-1].x-s[0].x)*t._m)/(K-1),q=Y?j/2:j,Q=Y?t.ticklen:I*1.25*$,U=Math.sqrt(Math.pow(q,2)+Math.pow(Q,2)),V=q/U,X=t.autotickangles.map(function(ae){return ae*Math.PI/180}),G=X.find(function(ae){return Math.abs(Math.cos(ae))<=V});G===void 0&&(G=X.reduce(function(ae,xe){return Math.abs(Math.cos(ae))P*L&&(C=L,y[A]=E[A]=k[A])}var R=Math.abs(C-M);R-S>0?(R-=S,S*=1+S/R):S=0,t._id.charAt(0)!=="y"&&(S=-S),y[T]=_.p2r(_.r2p(E[T])+x*S),_.autorange==="min"||_.autorange==="max reversed"?(y[0]=null,_._rangeInitial0=void 0,_._rangeInitial1=void 0):(_.autorange==="max"||_.autorange==="min reversed")&&(y[1]=null,_._rangeInitial0=void 0,_._rangeInitial1=void 0),i._insideTickLabelsUpdaterange[_._name+".range"]=y}var F=Tn.syncOrAsync(g);return F&&F.then&&e._promises.push(F),F};function nMt(e,t,r){var i=t._id+"divider",n=r.vals,a=r.layer.selectAll("path."+i).data(n,_7);a.exit().remove(),a.enter().insert("path",":first-child").classed(i,1).classed("crisp",1).call(FA.stroke,t.dividercolor).style("stroke-width",b0.crispRound(e,t.dividerwidth,1)+"px"),a.attr("transform",r.transFn).attr("d",r.path)}zr.getPxPosition=function(e,t){var r=e._fullLayout._size,i=t._id.charAt(0),n=t.side,a;if(t.anchor!=="free"?a=t._anchorAxis:i==="x"?a={_offset:r.t+(1-(t.position||0))*r.h,_length:0}:i==="y"&&(a={_offset:r.l+(t.position||0)*r.w+t._shift,_length:0}),n==="top"||n==="left")return a._offset;if(n==="bottom"||n==="right")return a._offset+a._length};function G1e(e){var t=e.title.font.size,r=(e.title.text.match(pb.BR_TAG_ALL)||[]).length;return e.title.hasOwnProperty("standoff")?t*(gb+r*PA):r?t*(r+1)*PA:t}function aMt(e,t){var r=e._fullLayout,i=t._id,n=i.charAt(0),a=t.title.font.size,o,s=(t.title.text.match(pb.BR_TAG_ALL)||[]).length;if(t.title.hasOwnProperty("standoff"))t.side==="bottom"||t.side==="right"?o=t._depth+t.title.standoff+a*gb:(t.side==="top"||t.side==="left")&&(o=t._depth+t.title.standoff+a*(CA+s*PA));else{var l=RA(t);if(t.type==="multicategory")o=t._depth;else{var u=1.5*a;l&&(u=.5*a,t.ticks==="outside"&&(u+=t.ticklen)),o=10+u+(t.linewidth?t.linewidth-1:0)}l||(n==="x"?o+=t.side==="top"?a*(t.showticklabels?1:0):a*(t.showticklabels?1.5:.5):o+=t.side==="right"?a*(t.showticklabels?1:.5):a*(t.showticklabels?.5:0))}var c=zr.getPxPosition(e,t),f,h,p;n==="x"?(h=t._offset+t._length/2,p=t.side==="top"?c-o:c+o):(p=t._offset+t._length/2,h=t.side==="right"?c+o:c-o,f={rotate:"-90",offset:0});var d;if(t.type!=="multicategory"){var v=t._selections[t._id+"tick"];if(d={selection:v,side:t.side},v&&v.node()&&v.node().parentNode){var m=b0.getTranslate(v.node().parentNode);d.offsetLeft=m.x,d.offsetTop=m.y}t.title.hasOwnProperty("standoff")&&(d.pad=0)}return t._titleStandoff=o,TAt.draw(e,i+"title",{propContainer:t,propName:t._name+".title.text",placeholder:r._dfltTitle[n],avoid:d,transform:f,attributes:{x:h,y:p,"text-anchor":"middle"}})}zr.shouldShowZeroLine=function(e,t,r){var i=Tn.simpleMap(t.range,t.r2l);return i[0]*i[1]<=0&&t.zeroline&&(t.type==="linear"||t.type==="-")&&!(t.rangebreaks&&t.maskBreaks(0)===x7)&&(J1e(t,0)||!oMt(e,t,r,i)||sMt(e,t))};zr.clipEnds=function(e,t){return t.filter(function(r){return J1e(e,r.x)})};function J1e(e,t){var r=e.l2p(t);return r>1&&r1)for(n=1;n=n.min&&e=CAt:/%L/.test(t)?e>=kAt:/%[SX]/.test(t)?e>=m7:/%M/.test(t)?e>=LA:/%[HI]/.test(t)?e>=d1:/%p/.test(t)?e>=By:/%[Aadejuwx]/.test(t)?e>=Af:/%[UVW]/.test(t)?e>=_0:/%[Bbm]/.test(t)?e>=g7:/%[q]/.test(t)?e>=v7:/%[Yy]/.test(t)?e>=p7:!0}});var wH=W((oOr,rge)=>{"use strict";rge.exports=function(t,r,i){var n,a;if(i){var o=r==="reversed"||r==="min reversed"||r==="max reversed";n=i[o?1:0],a=i[o?0:1]}var s=t("autorangeoptions.minallowed",a===null?n:void 0),l=t("autorangeoptions.maxallowed",n===null?a:void 0);s===void 0&&t("autorangeoptions.clipmin"),l===void 0&&t("autorangeoptions.clipmax"),t("autorangeoptions.include")}});var TH=W((sOr,ige)=>{"use strict";var dMt=wH();ige.exports=function(t,r,i,n){var a=r._template||{},o=r.type||a.type||"-";i("minallowed"),i("maxallowed");var s=i("range");if(!s){var l;!n.noInsiderange&&o!=="log"&&(l=i("insiderange"),l&&(l[0]===null||l[1]===null)&&(r.insiderange=!1,l=void 0),l&&(s=i("range",l)))}var u=r.getAutorangeDflt(s,n),c=i("autorange",u),f;s&&(s[0]===null&&s[1]===null||(s[0]===null||s[1]===null)&&(c==="reversed"||c===!0)||s[0]!==null&&(c==="min"||c==="max reversed")||s[1]!==null&&(c==="max"||c==="min reversed"))&&(s=void 0,delete r.range,r.autorange=!0,f=!0),f||(u=r.getAutorangeDflt(s,n),c=i("autorange",u)),c&&(dMt(i,c,s),(o==="linear"||o==="-")&&i("rangemode")),r.cleanRange()}});var age=W((lOr,nge)=>{var pMt={left:0,top:0};nge.exports=vMt;function vMt(e,t,r){t=t||e.currentTarget||e.srcElement,Array.isArray(r)||(r=[0,0]);var i=e.clientX||0,n=e.clientY||0,a=gMt(t);return r[0]=i-a.left,r[1]=n-a.top,r}function gMt(e){return e===window||e===document||e===document.body?pMt:e.getBoundingClientRect()}});var T7=W((uOr,oge)=>{"use strict";var mMt=iG();function yMt(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch(r){e=!1}return e}oge.exports=mMt&&yMt()});var lge=W((cOr,sge)=>{"use strict";sge.exports=function(t,r,i,n,a){var o=(t-i)/(n-i),s=o+r/(n-i),l=(o+s)/2;return a==="left"||a==="bottom"?o:a==="center"||a==="middle"?l:a==="right"||a==="top"?s:o<2/3-l?o:s>4/3-l?s:l}});var fge=W((fOr,cge)=>{"use strict";var uge=it(),xMt=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];cge.exports=function(t,r,i,n){return i==="left"?t=0:i==="center"?t=1:i==="right"?t=2:t=uge.constrain(Math.floor(t*3),0,2),n==="bottom"?r=0:n==="middle"?r=1:n==="top"?r=2:r=uge.constrain(Math.floor(r*3),0,2),xMt[r][t]}});var dge=W((hOr,hge)=>{"use strict";var bMt=xw(),_Mt=ED(),wMt=fA().getGraphDiv,TMt=($T(),Pt(jT)),AH=hge.exports={};AH.wrapped=function(e,t,r){var a;e=wMt(e),e._fullLayout&&_Mt.clear(e._fullLayout._uid+TMt.HOVERID);let i=e._hoverdata;AH.raw(e,t,r)&&e._hoverAnywhereActive&&(e._hoverAnywhereActive=!1,(a=e._fullLayout)!=null&&a.hoveranywhere&&(t!=null&&t.target)&&!i&&e.emit("plotly_unhover",{event:t,points:[]}))};AH.raw=function(t,r){var i=t._fullLayout,n=t._hoverdata;return r||(r={}),r.target&&!t._dragged&&bMt.triggerHandler(t,"plotly_beforehover",r)===!1?!1:(i._hoverlayer.selectAll("g").remove(),i._hoverlayer.selectAll("line").remove(),i._hoverlayer.selectAll("circle").remove(),t._hoverdata=void 0,r.target&&n&&t.emit("plotly_unhover",{event:r,points:n}),!0)}});var Mf=W((dOr,mge)=>{"use strict";var AMt=age(),MH=aG(),MMt=T7(),SMt=it().removeElement,EMt=(Wl(),Pt($l)),mb=mge.exports={};mb.align=lge();mb.getCursor=fge();var vge=dge();mb.unhover=vge.wrapped;mb.unhoverRaw=vge.raw;mb.init=function(t){var r=t.gd,i=1,n=r._context.doubleClickDelay,a=t.element,o,s,l,u,c,f,h,p;r._mouseDownTime||(r._mouseDownTime=0),a.style.pointerEvents="all",a.onmousedown=m,MMt?(a._ontouchstart&&a.removeEventListener("touchstart",a._ontouchstart),a._ontouchstart=m,a.addEventListener("touchstart",m,{passive:!1})):a.ontouchstart=m;function d(_,b,S){return Math.abs(_)n&&(i=Math.max(i-1,1)),r._dragged)t.doneFn&&t.doneFn();else{var b;f.target===h?b=f:(b={target:h,srcElement:h,toElement:h},Object.keys(f).concat(Object.keys(f.__proto__)).forEach(S=>{var x=f[S];!b[S]&&typeof x!="function"&&(b[S]=x)})),t.clickFn&&t.clickFn(i,b),p||h.dispatchEvent(new MouseEvent("click",_))}r._dragging=!1,r._dragged=!1}};function gge(){var e=document.createElement("div");e.className="dragcover";var t=e.style;return t.position="fixed",t.left=0,t.right=0,t.top=0,t.bottom=0,t.zIndex=999999999,t.background="none",document.body.appendChild(e),e}mb.coverSlip=gge;function pge(e){return AMt(e.changedTouches?e.changedTouches[0]:e,document.body)}});var $p=W((pOr,yge)=>{"use strict";yge.exports=function(t,r){(t.attr("class")||"").split(" ").forEach(function(i){i.indexOf("cursor-")===0&&t.classed(i,!1)}),r&&t.classed("cursor-"+r,!0)}});var _ge=W((vOr,bge)=>{"use strict";var SH=$p(),zA="data-savedcursor",xge="!!";bge.exports=function(t,r){var i=t.attr(zA);if(r){if(!i){for(var n=(t.attr("class")||"").split(" "),a=0;a{"use strict";var EH=jo(),kMt=jl();wge.exports={_isSubplotObj:!0,visible:{valType:"boolean",dflt:!0,editType:"legend"},bgcolor:{valType:"color",editType:"legend"},bordercolor:{valType:"color",dflt:kMt.defaultLine,editType:"legend"},maxheight:{valType:"number",min:0,editType:"legend"},borderwidth:{valType:"number",min:0,dflt:0,editType:"legend"},font:EH({editType:"legend"}),grouptitlefont:EH({editType:"legend"}),orientation:{valType:"enumerated",values:["v","h"],dflt:"v",editType:"legend"},traceorder:{valType:"flaglist",flags:["reversed","grouped"],extras:["normal"],editType:"legend"},tracegroupgap:{valType:"number",min:0,dflt:10,editType:"legend"},entrywidth:{valType:"number",min:0,editType:"legend"},entrywidthmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels",editType:"legend"},indentation:{valType:"number",min:-15,dflt:0,editType:"legend"},itemsizing:{valType:"enumerated",values:["trace","constant"],dflt:"trace",editType:"legend"},itemwidth:{valType:"number",min:30,dflt:30,editType:"legend"},itemclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggle",editType:"legend"},itemdoubleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggleothers",editType:"legend"},groupclick:{valType:"enumerated",values:["toggleitem","togglegroup"],dflt:"togglegroup",editType:"legend"},groupdoubleclick:{valType:"enumerated",values:["toggleitem","togglegroup"],editType:"legend"},titleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],editType:"legend"},titledoubleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],editType:"legend"},x:{valType:"number",editType:"legend"},xref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"legend"},y:{valType:"number",editType:"legend"},yref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],editType:"legend"},uirevision:{valType:"any",editType:"none"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"legend"},title:{text:{valType:"string",dflt:"",editType:"legend"},font:EH({editType:"legend"}),side:{valType:"enumerated",values:["top","left","top left","top center","top right"],editType:"legend"},editType:"legend"},editType:"legend"}});var qA=W(BA=>{"use strict";BA.isGrouped=function(t){return(t.traceorder||"").indexOf("grouped")!==-1};BA.isVertical=function(t){return t.orientation!=="h"};BA.isReversed=function(t){return(t.traceorder||"").indexOf("reversed")!==-1};BA.getId=function(t){return t._id||"legend"}});var DH=W((yOr,Tge)=>{"use strict";var A7=xi(),w0=it(),CMt=Ia(),DMt=Ka(),FMt=kH(),LMt=fw(),CH=qA();function PMt(e,t,r,i,n){var a=t[e]||{},o=CMt.newContainer(r,e);function s(B,O){return w0.coerce(a,o,FMt,B,O)}var l=w0.coerceFont(s,"font",r.font);s("bgcolor",r.paper_bgcolor),s("bordercolor");var u=s("visible");if(!u)return;var c,f=function(B,O){var $=c._input,Y=c;return w0.coerce($,Y,DMt,B,O)},h=r.font||{},p=w0.coerceFont(s,"grouptitlefont",h,{overrideDflt:{size:Math.round(h.size*1.1)}}),d=0,v=!1,m="normal",g=(r.shapes||[]).filter(function(B){return B.showlegend});function w(B){return A7.traceIs(B,"pie-like")&&B._length!=null&&(Array.isArray(B.legend)||Array.isArray(B.showlegend))}i.filter(w).forEach(function(B){B.visible&&d++;for(var O=0;OB.legend.length)for(var Y=B.legend.length;Y(e==="legend"?1:0));if(x===!1&&(r[e]=void 0),x===!1&&!a.uirevision||(s("uirevision",r.uirevision),x===!1))return;s("borderwidth");var T=s("orientation"),A=s("yref"),y=s("xref"),E=T==="h",M=A==="paper",C=y==="paper",k,D,L,P="left";E?(k=0,A7.getComponentMethod("rangeslider","isVisible")(t.xaxis)?M?(D=1.1,L="bottom"):(D=1,L="top"):M?(D=-.1,L="top"):(D=0,L="bottom")):(D=1,L="auto",C?k=1.02:(k=1,P="right")),w0.coerce(a,o,{x:{valType:"number",editType:"legend",min:C?-2:0,max:C?3:1,dflt:k}},"x"),w0.coerce(a,o,{y:{valType:"number",editType:"legend",min:M?-2:0,max:M?3:1,dflt:D}},"y"),s("traceorder",m),CH.isGrouped(r[e])&&s("tracegroupgap"),s("entrywidth"),s("entrywidthmode"),s("indentation"),s("itemsizing"),s("itemwidth"),s("itemclick"),s("itemdoubleclick");let R=s("groupclick");s("groupdoubleclick",R),s("xanchor",P),s("yanchor",L),s("maxheight"),s("valign"),w0.noneOrAll(a,o,["x","y"]);var F=s("title.text");if(F){s("title.side",E?"left":"top");var I=w0.extendFlat({},l,{size:w0.bigFont(l.size)});w0.coerceFont(s,"title.font",I);let B=n>1;s("titleclick",B?"toggle":!1),s("titledoubleclick",B?"toggleothers":!1)}}Tge.exports=function(t,r,i){var n,a=i.slice(),o=r.shapes;if(o)for(n=0;n{"use strict";var qy=xi(),FH=it(),IMt=FH.pushUnique,RMt=qA(),Age=!0;LH.handleItemClick=function(t,r,i,n,a){var o=r._fullLayout;if(r._dragged||r._editing)return;var s=t.data()[0][0];if(s.groupTitle&&s.noClick)return;let l=a===2?i.groupdoubleclick:i.groupclick;n==="toggle"&&i.itemdoubleclick==="toggleothers"&&Age&&r.data&&r._context.showTips&&(FH.notifier(FH._(r,"Double-click on legend to isolate one trace"),"long",r),Age=!1);var u=l==="togglegroup",c=o.hiddenlabels?o.hiddenlabels.slice():[],f=r._fullData;let h=(o.shapes||[]).filter(_e=>_e.showlegend||_e.legendgroup);var p=f.concat(h),d=s.trace;d._isShape&&(d=o.shapes[d.index]);var v=d.legendgroup,m,g,w,_,b,S,x={},T=[],A=[],y=[];function E(_e,he){var oe=T.indexOf(_e),Me=x.visible;return Me||(Me=x.visible=[]),T.indexOf(_e)===-1&&(T.push(_e),oe=T.length-1),Me[oe]=he,oe}var M=(o.shapes||[]).map(function(_e){return _e._input}),C=!1;function k(_e,he){M[_e].visible=he,C=!0}function D(_e,he){if(!(s.groupTitle&&!u)){var oe=_e._isShape,Me=_e.index;Me===void 0&&(Me=_e._index);var ye=_e.visible===!1?!1:he;oe?k(Me,ye):E(Me,ye)}}var L=d.legend;if(!d._isShape&&qy.traceIs(d,"pie-like")){var P=s.label,R=c.indexOf(P);if(n==="toggle")R===-1?c.push(P):c.splice(R,1);else if(n==="toggleothers"){var F=R!==-1,I=[];for(m=0;mg.showlegend||g.legendgroup),l=a.concat(s);function u(g){return(g.legend||"legend")===o}var c,f;if(i==="toggle")c=!l.some(function(w){return u(w)&&w.visible===!0}),f=!1;else{let g=l.some(function(w){return!u(w)&&w.visible===!0&&w.showlegend!==!1});c=!0,f=!g}let h={visible:[]},p=[],d=(n.shapes||[]).map(function(g){return g._input});for(var v=!1,m=0;mVMt,scrollBarColor:()=>qMt,scrollBarEnterAttrs:()=>NMt,scrollBarMargin:()=>OMt,scrollBarMinHeight:()=>BMt,scrollBarWidth:()=>zMt,titlePad:()=>UMt});var zMt,BMt,qMt,OMt,NMt,UMt,VMt,RH=Ci(()=>{"use strict";zMt=6,BMt=20,qMt="#808BA4",OMt=4,NMt={rx:20,ry:3,width:0,height:0},UMt=2,VMt=5});var Ege=W((bOr,Sge)=>{"use strict";var{isArrayOrTypedArray:zH}=wc(),Mge=xi(),BH=qA();Sge.exports=function(t,r,i){var n=r._inHover,a=BH.isGrouped(r),o=BH.isReversed(r),s={},l=[],u=!1,c={},f=0,h=0,p,d;function v(B,O,$){if(r.visible!==!1&&!(i&&B!==r._id))if(O===""||!BH.isGrouped(r)){var Y="~~i"+f;l.push(Y),s[Y]=[$],f++}else l.indexOf(O)===-1?(l.push(O),u=!0,s[O]=[$]):s[O].push($)}for(p=0;pk&&(M=k)}y[p][0]._groupMinRank=M,y[p][0]._preGroupSort=p}var D=function(B,O){return B[0]._groupMinRank-O[0]._groupMinRank||B[0]._preGroupSort-O[0]._preGroupSort},L=function(B,O){var $=zH(B.trace.legendrank)?B.trace.legendrank[B.i]:B.trace.legendrank,Y=zH(O.trace.legendrank)?O.trace.legendrank[O.i]:O.trace.legendrank;return $-Y||B._preSort-O._preSort};for(y.forEach(function(B,O){B[0]._preGroupSort=O}),y.sort(D),p=0;p{"use strict";var M7=it();function kge(e){return e.indexOf("e")!==-1?e.replace(/[.]?0+e/,"e"):e.indexOf(".")!==-1?e.replace(/[.]?0+$/,""):e}yb.formatPiePercent=function(t,r){var i=kge((t*100).toPrecision(3));return M7.numSeparate(i,r)+"%"};yb.formatPieValue=function(t,r){var i=kge(t.toPrecision(10));return M7.numSeparate(i,r)};yb.getFirstFilled=function(t,r){if(M7.isArrayOrTypedArray(t))for(var i=0;i{"use strict";var GMt=en(),HMt=ai();Cge.exports=function(t,r,i,n){var a=i.marker.pattern;a&&a.shape?GMt.pointStyle(t,i,n,r):HMt.fill(t,r.color)}});var Bw=W((TOr,Pge)=>{"use strict";var Fge=ai(),Lge=Oy().castOption,jMt=Dge();Pge.exports=function(t,r,i,n){var a=i.marker.line,o=Lge(a.color,r.pts)||Fge.defaultLine,s=Lge(a.width,r.pts)||0;t.call(jMt,r,i,n).style("stroke-width",s).call(Fge.stroke,o)}});var UH=W((AOr,Oge)=>{"use strict";var Sf=gi(),qH=xi(),rf=it(),Ige=rf.strTranslate,T0=en(),yd=ai(),OH=Mc().extractOpts,S7=Wo(),$Mt=Bw(),WMt=Oy().castOption,YMt=(RH(),Pt(IH)),Rge=12,zge=5,xb=2,XMt=10,qw=5;Oge.exports=function(t,r,i){var n=r._fullLayout;i||(i=n.legend);var a=i.itemsizing==="constant",o=i.itemwidth,s=(o+YMt.itemGap*2)/2,l=Ige(s,0),u=function(T,A,y,E){var M;if(T+1)M=T;else if(A&&A.width>0)M=A.width;else return 0;return a?E:Math.min(M,y)};t.each(function(T){var A=Sf.select(this),y=rf.ensureSingle(A,"g","layers");y.style("opacity",T[0].trace.opacity);var E=i.indentation,M=i.valign,C=T[0].lineHeight,k=T[0].height;if(M==="middle"&&E===0||!C||!k)y.attr("transform",null);else{var D={top:1,bottom:-1}[M],L=D*(.5*(C-k+3))||0,P=i.indentation;y.attr("transform",Ige(P,L))}var R=y.selectAll("g.legendfill").data([T]);R.enter().append("g").classed("legendfill",!0);var F=y.selectAll("g.legendlines").data([T]);F.enter().append("g").classed("legendlines",!0);var I=y.selectAll("g.legendsymbols").data([T]);I.enter().append("g").classed("legendsymbols",!0),I.selectAll("g.legendpoints").data([T]).enter().append("g").classed("legendpoints",!0)}).each(x).each(h).each(d).each(p).each(m).each(b).each(_).each(c).each(f).each(g).each(w);function c(T){var A=Bge(T),y=A.showFill,E=A.showLine,M=A.showGradientLine,C=A.showGradientFill,k=A.anyFill,D=A.anyLine,L=T[0],P=L.trace,R,F,I=OH(P),B=I.colorscale,O=I.reversescale,$=function(V){if(V.size())if(y)T0.fillGroupStyle(V,r,!0);else{var X="legendfill-"+P.uid;T0.gradient(V,r,X,NH(O),B,"fill")}},Y=function(V){if(V.size()){var X="legendline-"+P.uid;T0.lineGroupStyle(V),T0.gradient(V,r,X,NH(O),B,"stroke")}},K=S7.hasMarkers(P)||!k?"M5,0":D?"M5,-2":"M5,-3",j=Sf.select(this),q=j.select(".legendfill").selectAll("path").data(y||C?[T]:[]);if(q.enter().append("path").classed("js-fill",!0),q.exit().remove(),q.attr("d",K+"h"+o+"v6h-"+o+"z").call($),E||M){var Q=u(void 0,P.line,XMt,zge);F=rf.minExtend(P,{line:{width:Q}}),R=[rf.minExtend(L,{trace:F})]}var U=j.select(".legendlines").selectAll("path").data(E||M?[R]:[]);U.enter().append("path").classed("js-line",!0),U.exit().remove(),U.attr("d",K+(M?"l"+o+",0.0001":"h"+o)).call(E?T0.lineGroupStyle:Y)}function f(T){var A=Bge(T),y=A.anyFill,E=A.anyLine,M=A.showLine,C=A.showMarker,k=T[0],D=k.trace,L=!C&&!E&&!y&&S7.hasText(D),P,R;function F(Q,U,V,X){var G=rf.nestedProperty(D,Q).get(),H=rf.isArrayOrTypedArray(G)&&U?U(G):G;if(a&&H&&X!==void 0&&(H=X),V){if(HV[1])return V[1]}return H}function I(Q){return k._distinct&&k.index&&Q[k.index]?Q[k.index]:Q[0]}if(C||L||M){var B={},O={};if(C){B.mc=F("marker.color",I);var $=D.type==="scattermap";B.mx=$?"circle":F("marker.symbol",I),B.mo=F("marker.opacity",rf.mean,[.2,1]),B.mlc=F("marker.line.color",I),B.mlw=F("marker.line.width",rf.mean,[0,5],xb),B.mld=F("marker.line.dash",I),O.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var Y=F("marker.size",rf.mean,[2,16],Rge);B.ms=Y,O.marker.size=Y}M&&(O.line={width:F("line.width",I,[0,10],zge)}),L&&(B.tx="Aa",B.tp=F("textposition",I),B.ts=10,B.tc=F("textfont.color",I),B.tf=F("textfont.family",I),B.tw=F("textfont.weight",I),B.ty=F("textfont.style",I),B.tv=F("textfont.variant",I),B.tC=F("textfont.textcase",I),B.tE=F("textfont.lineposition",I),B.tS=F("textfont.shadow",I)),P=[rf.minExtend(k,B)],R=rf.minExtend(D,O),R.selectedpoints=null,R.texttemplate=null}var K=Sf.select(this).select("g.legendpoints"),j=K.selectAll("path.scatterpts").data(C?P:[]);j.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",l),j.exit().remove(),j.call(T0.pointStyle,R,r),C&&(P[0].mrc=3);var q=K.selectAll("g.pointtext").data(L?P:[]);q.enter().append("g").classed("pointtext",!0).append("text").attr("transform",l),q.exit().remove(),q.selectAll("text").call(T0.textPointStyle,R,r)}function h(T){var A=T[0].trace,y=A.type==="waterfall";if(T[0]._distinct&&y){var E=T[0].trace[T[0].dir].marker;return T[0].mc=E.color,T[0].mlw=E.line.width,T[0].mlc=E.line.color,v(T,this,"waterfall")}var M=[];A.visible&&y&&(M=T[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 C=Sf.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data(M);C.enter().append("path").classed("legendwaterfall",!0).attr("transform",l).style("stroke-miterlimit",1),C.exit().remove(),C.each(function(k){var D=Sf.select(this),L=A[k[0]].marker,P=u(void 0,L.line,qw,xb);D.attr("d",k[1]).style("stroke-width",P+"px").call(yd.fill,L.color),P&&D.call(yd.stroke,L.line.color)})}function p(T){v(T,this)}function d(T){v(T,this,"funnel")}function v(T,A,y){var E=T[0].trace,M=E.marker||{},C=M.line||{},k=M.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",D=y?E.visible&&E.type===y:qH.traceIs(E,"bar"),L=Sf.select(A).select("g.legendpoints").selectAll("path.legend"+y).data(D?[T]:[]);L.enter().append("path").classed("legend"+y,!0).attr("d",k).attr("transform",l),L.exit().remove(),L.each(function(P){var R=Sf.select(this),F=P[0],I=u(F.mlw,M.line,qw,xb);R.style("stroke-width",I+"px");var B=F.mcc;if(!i._inHover&&"mc"in F){var O=OH(M),$=O.mid;$===void 0&&($=(O.max+O.min)/2),B=T0.tryColorscale(M,"")($)}var Y=B||F.mc||M.color,K=M.pattern,j=T0.getPatternAttr,q=K&&(j(K.shape,0,"")||j(K.path,0,""));if(q){var Q=j(K.bgcolor,0,null),U=j(K.fgcolor,0,null),V=K.fgopacity,X=qge(K.size,8,10),G=qge(K.solidity,.5,1),H="legend-"+E.uid;R.call(T0.pattern,"legend",r,H,q,X,G,B,K.fillmode,Q,U,V)}else R.call(yd.fill,Y);I&&yd.stroke(R,F.mlc||C.color)})}function m(T){var A=T[0].trace,y=Sf.select(this).select("g.legendpoints").selectAll("path.legendbox").data(A.visible&&qH.traceIs(A,"box-violin")?[T]:[]);y.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform",l),y.exit().remove(),y.each(function(){var E=Sf.select(this);if((A.boxpoints==="all"||A.points==="all")&&yd.opacity(A.fillcolor)===0&&yd.opacity((A.line||{}).color)===0){var M=rf.minExtend(A,{marker:{size:a?Rge:rf.constrain(A.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});y.call(T0.pointStyle,M,r)}else{var C=u(void 0,A.line,qw,xb);E.style("stroke-width",C+"px").call(yd.fill,A.fillcolor),C&&yd.stroke(E,A.line.color)}})}function g(T){var A=T[0].trace,y=Sf.select(this).select("g.legendpoints").selectAll("path.legendcandle").data(A.visible&&A.type==="candlestick"?[T,T]:[]);y.enter().append("path").classed("legendcandle",!0).attr("d",function(E,M){return M?"M-15,0H-8M-8,6V-6H8Z":"M15,0H8M8,-6V6H-8Z"}).attr("transform",l).style("stroke-miterlimit",1),y.exit().remove(),y.each(function(E,M){var C=Sf.select(this),k=A[M?"increasing":"decreasing"],D=u(void 0,k.line,qw,xb);C.style("stroke-width",D+"px").call(yd.fill,k.fillcolor),D&&yd.stroke(C,k.line.color)})}function w(T){var A=T[0].trace,y=Sf.select(this).select("g.legendpoints").selectAll("path.legendohlc").data(A.visible&&A.type==="ohlc"?[T,T]:[]);y.enter().append("path").classed("legendohlc",!0).attr("d",function(E,M){return M?"M-15,0H0M-8,-6V0":"M15,0H0M8,6V0"}).attr("transform",l).style("stroke-miterlimit",1),y.exit().remove(),y.each(function(E,M){var C=Sf.select(this),k=A[M?"increasing":"decreasing"],D=u(void 0,k.line,qw,xb);C.style("fill","none").call(T0.dashLine,k.line.dash,D),D&&yd.stroke(C,k.line.color)})}function _(T){S(T,this,"pie")}function b(T){S(T,this,"funnelarea")}function S(T,A,y){var E=T[0],M=E.trace,C=y?M.visible&&M.type===y:qH.traceIs(M,y),k=Sf.select(A).select("g.legendpoints").selectAll("path.legend"+y).data(C?[T]:[]);if(k.enter().append("path").classed("legend"+y,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",l),k.exit().remove(),k.size()){var D=M.marker||{},L=u(WMt(D.line.width,E.pts),D.line,qw,xb),P="pieLike",R=rf.minExtend(M,{marker:{line:{width:L}}},P),F=rf.minExtend(E,{trace:R},P);$Mt(k,F,R,r)}}function x(T){var A=T[0].trace,y,E=[];if(A.visible)switch(A.type){case"histogram2d":case"heatmap":E=[["M-15,-2V4H15V-2Z"]],y=!0;break;case"choropleth":case"choroplethmap":E=[["M-6,-6V6H6V-6Z"]],y=!0;break;case"densitymap":E=[["M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"]],y="radial";break;case"cone":E=[["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"]],y=!1;break;case"streamtube":E=[["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"]],y=!1;break;case"surface":E=[["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"]],y=!0;break;case"mesh3d":E=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],y=!1;break;case"volume":E=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],y=!0;break;case"isosurface":E=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6 A12,24 0 0,0 6,-6 L0,6Z"]],y=!1;break}var M=Sf.select(this).select("g.legendpoints").selectAll("path.legend3dandfriends").data(E);M.enter().append("path").classed("legend3dandfriends",!0).attr("transform",l).style("stroke-miterlimit",1),M.exit().remove(),M.each(function(C,k){var D=Sf.select(this),L=OH(A),P=L.colorscale,R=L.reversescale,F=function($){if($.size()){var Y="legendfill-"+A.uid;T0.gradient($,r,Y,NH(R,y==="radial"),P,"fill")}},I;if(P){if(!y){var O=P.length;I=k===0?P[R?O-1:0][1]:k===1?P[R?0:O-1][1]:P[Math.floor((O-1)/2)][1]}}else{var B=A.vertexcolor||A.facecolor||A.color;I=rf.isArrayOrTypedArray(B)?B[k]||B[0]:B}D.attr("d",C[0]),I?D.call(yd.fill,I):D.call(F)})}};function NH(e,t){var r=t?"radial":"horizontal";return r+(e?"":"reversed")}function Bge(e){var t=e[0].trace,r=t.contours,i=S7.hasLines(t)||t.visible&&t.type==="quiver",n=S7.hasMarkers(t),a=t.visible&&t.fill&&t.fill!=="none",o=!1,s=!1;if(r){var l=r.coloring;l==="lines"?o=!0:i=l==="none"||l==="heatmap"||r.showlines,r.type==="constraint"?a=r._operation!=="=":(l==="fill"||l==="heatmap")&&(s=!0)}return{showMarker:n,showLine:i,showFill:a,showGradientLine:o,showGradientFill:s,anyLine:i||o,anyFill:a||s}}function qge(e,t,r){return e&&rf.isArrayOrTypedArray(e)?t:e>r?r:e}});var jH=W((MOr,Yge)=>{"use strict";var ih=gi(),Fl=it(),GH=Qo(),bb=xi(),C7=xw(),VH=Mf(),Ll=en(),OA=ai(),_b=ho(),Nge=PH().handleItemClick,Uge=PH().handleTitleClick,Zl=(RH(),Pt(IH)),HH=(Xl(),Pt(Yl)),$ge=HH.LINE_SPACING,Nw=HH.FROM_TL,Vge=HH.FROM_BR,Gge=Ege(),ZMt=UH(),Uw=qA(),Ow=1,KMt=/^legend[0-9]*$/;Yge.exports=function(t,r){if(r)Hge(t,r);else{var i=t._fullLayout,n=i._legends,a=i._infolayer.selectAll('[class^="legend"]');a.each(function(){var u=ih.select(this),c=u.attr("class"),f=c.split(" ")[0];f.match(KMt)&&n.indexOf(f)===-1&&u.remove()});for(var o=0;o1)}var d=i.hiddenlabels||[];if(!s&&(!i.showlegend||!l.length))return o.selectAll("."+n).remove(),i._topdefs.select("#"+a).remove(),GH.autoMargin(e,n);var v=Fl.ensureSingle(o,"g",n,function(A){s||A.attr("pointer-events","all")}),m=Fl.ensureSingleById(i._topdefs,"clipPath",a,function(A){A.append("rect")}),g=Fl.ensureSingle(v,"rect","bg",function(A){A.attr("shape-rendering","crispEdges")});g.call(OA.stroke,r.bordercolor).call(OA.fill,r.bgcolor).style("stroke-width",r.borderwidth+"px");var w=Fl.ensureSingle(v,"g","scrollbox"),_=r.title;r._titleWidth=0,r._titleHeight=0;var b;_.text?(b=Fl.ensureSingle(w,"text",n+"titletext"),b.attr("text-anchor","start").call(Ll.font,_.font).text(_.text),k7(b,w,e,r,Ow),!s&&(r.titleclick||r.titledoubleclick)&&tSt(w,e,r,n)):(w.selectAll("."+n+"titletext").remove(),w.selectAll("."+n+"titletoggle").remove());var S=Fl.ensureSingle(v,"rect","scrollbar",function(A){A.attr(Zl.scrollBarEnterAttrs).call(OA.fill,Zl.scrollBarColor)}),x=w.selectAll("g.groups").data(l);x.enter().append("g").attr("class","groups"),x.exit().remove();var T=x.selectAll("g.traces").data(Fl.identity);T.enter().append("g").attr("class","traces"),T.exit().remove(),T.style("opacity",function(A){let y=A[0],E=y.trace;if(y.groupTitle){let M=E.legendgroup,C=(i.shapes||[]).filter(function(D){return D.showlegend});return e._fullData.concat(C).some(function(D){return D.legendgroup===M&&(D.legend||"legend")===n&&D.visible===!0})?1:.5}return bb.traceIs(E,"pie-like")?d.indexOf(A[0].label)!==-1?.5:1:E.visible==="legendonly"?.5:1}).each(function(){ih.select(this).call(QMt,e,r)}).call(ZMt,e,r).each(function(A){s||A[0].groupTitle&&r.groupclick==="toggleitem"||ih.select(this).call(eSt,e,n)}),Fl.syncOrAsync([GH.previousPromises,function(){return nSt(e,x,T,r,w)},function(){var A=i._size,y=r.borderwidth,E=r.xref==="paper",M=r.yref==="paper";if(_.text){let ue=(i.shapes||[]).filter(function(ke){return ke.showlegend}),ge=e._fullData.concat(ue).some(function(ke){let _e=ke.legend||"legend";var he=Array.isArray(_e)?_e.includes(n):_e===n;return he&&ke.visible===!0});b.style("opacity",ge?1:.5)}if(!s){var C,k;E?C=A.l+A.w*r.x-Nw[D7(r)]*r._width:C=i.width*r.x-Nw[D7(r)]*r._width,M?k=A.t+A.h*(1-r.y)-Nw[F7(r)]*r._effHeight:k=i.height*(1-r.y)-Nw[F7(r)]*r._effHeight;var D=aSt(e,n,C,k);if(D)return;if(i.margin.autoexpand){var L=C,P=k;C=E?Fl.constrain(C,0,i.width-r._width):L,k=M?Fl.constrain(k,0,i.height-r._effHeight):P,C!==L&&Fl.log("Constrain "+n+".x to make legend fit inside graph"),k!==P&&Fl.log("Constrain "+n+".y to make legend fit inside graph")}Ll.setTranslate(v,C,k)}if(S.on(".drag",null),v.on("wheel",null),s||r._height<=r._maxHeight||e._context.staticPlot){var R=r._effHeight;s&&(R=r._height),g.attr({width:r._width-y,height:R-y,x:y/2,y:y/2}),Ll.setTranslate(w,0,0),m.select("rect").attr({width:r._width-2*y,height:R-2*y,x:y,y}),Ll.setClipUrl(w,a,e),Ll.setRect(S,0,0,0,0),delete r._scrollY}else{var F=Math.max(Zl.scrollBarMinHeight,r._effHeight*r._effHeight/r._height),I=r._effHeight-F-2*Zl.scrollBarMargin,B=r._height-r._effHeight,O=I/B,$=Math.min(r._scrollY||0,B);g.attr({width:r._width-2*y+Zl.scrollBarWidth+Zl.scrollBarMargin,height:r._effHeight-y,x:y/2,y:y/2}),m.select("rect").attr({width:r._width-2*y+Zl.scrollBarWidth+Zl.scrollBarMargin,height:r._effHeight-2*y,x:y,y:y+$}),Ll.setClipUrl(w,a,e),X($,F,O),v.on("wheel",function(){$=Fl.constrain(r._scrollY+ih.event.deltaY/B*I,0,B),X($,F,O),$!==0&&$!==B&&ih.event.preventDefault()});var Y,K,j,q=function(ue,ge,ke){var _e=(ke-ge)/O+ue;return Fl.constrain(_e,0,B)},Q=function(ue,ge,ke){var _e=(ge-ke)/O+ue;return Fl.constrain(_e,0,B)},U=ih.behavior.drag().on("dragstart",function(){var ue=ih.event.sourceEvent;ue.type==="touchstart"?Y=ue.changedTouches[0].clientY:Y=ue.clientY,j=$}).on("drag",function(){var ue=ih.event.sourceEvent;ue.buttons===2||ue.ctrlKey||(ue.type==="touchmove"?K=ue.changedTouches[0].clientY:K=ue.clientY,$=q(j,Y,K),X($,F,O))});S.call(U);var V=ih.behavior.drag().on("dragstart",function(){var ue=ih.event.sourceEvent;ue.type==="touchstart"&&(Y=ue.changedTouches[0].clientY,j=$)}).on("drag",function(){var ue=ih.event.sourceEvent;ue.type==="touchmove"&&(K=ue.changedTouches[0].clientY,$=Q(j,Y,K),X($,F,O))});w.call(V)}function X(ue,ge,ke){r._scrollY=e._fullLayout[n]._scrollY=ue,Ll.setTranslate(w,0,-ue),Ll.setRect(S,r._width,Zl.scrollBarMargin+ue*ke,Zl.scrollBarWidth,ge),m.select("rect").attr("y",y+ue)}if(e._context.edits.legendPosition){var G,H,J,te;v.classed("cursor-move",!0),VH.init({element:v.node(),gd:e,prepFn:function(ue){if(ue.target!==S.node()){var ge=Ll.getTranslate(v);J=ge.x,te=ge.y}},moveFn:function(ue,ge){if(J!==void 0&&te!==void 0){var ke=J+ue,_e=te+ge;Ll.setTranslate(v,ke,_e),G=VH.align(ke,r._width,A.l,A.l+A.w,r.xanchor),H=VH.align(_e+r._height,-r._height,A.t+A.h,A.t,r.yanchor)}},doneFn:function(){if(G!==void 0&&H!==void 0){var ue={};ue[n+".x"]=G,ue[n+".y"]=H,bb.call("_guiRelayout",e,ue)}},clickFn:function(ue,ge){var ke=o.selectAll("g.traces").filter(function(){var _e=this.getBoundingClientRect();return ge.clientX>=_e.left&&ge.clientX<=_e.right&&ge.clientY>=_e.top&&ge.clientY<=_e.bottom});ke.size()>0&&Wge(e,r,ke,ue,ge)}})}}],e)}}function E7(e,t,r){var i=e[0],n=i.width,a=t.entrywidthmode,o=i.trace.legendwidth||t.entrywidth;return a==="fraction"?t._maxWidth*o:r+(o||n)}function Wge(e,t,r,i,n){var a=e._fullLayout,o=r.data()[0][0].trace,s=t.itemclick,l=t.itemdoubleclick,u={event:n,node:r.node(),curveNumber:o.index,expandedIndex:o.index,data:e.data,layout:e.layout,frames:e._transitionData._frames,config:e._context,fullData:e._fullData,fullLayout:a};o._group&&(u.group=o._group),bb.traceIs(o,"pie-like")&&(u.label=r.datum()[0].label);var c=C7.triggerHandler(e,"plotly_legendclick",u);if(i===1){if(c===!1)return;t._clickTimeout=setTimeout(function(){e._fullLayout&&s&&Nge(r,e,t,s,i)},e._context.doubleClickDelay)}else if(i===2){t._clickTimeout&&clearTimeout(t._clickTimeout),e._legendMouseDownTime=0;var f=C7.triggerHandler(e,"plotly_legenddoubleclick",u);f!==!1&&c!==!1&&l&&Nge(r,e,t,l,i)}}function QMt(e,t,r){var i=Uw.getId(r),n=e.data()[0][0],a=n.trace,o=bb.traceIs(a,"pie-like"),s=!r._inHover&&t._context.edits.legendText&&!o,l=r._maxNameLength,u,c;n.groupTitle?(u=n.groupTitle.text,c=n.groupTitle.font):(c=r.font,r.entries?u=n.text:(u=o?n.label:a.name,a._meta&&(u=Fl.templateString(u,a._meta))));var f=Fl.ensureSingle(e,"text",i+"text");f.attr("text-anchor","start").call(Ll.font,c).text(s?jge(u,l):u);var h=r.indentation+r.itemwidth+Zl.itemGap*2;_b.positionText(f,h,0),s?f.call(_b.makeEditable,{gd:t,text:u}).call(k7,e,t,r).on("edit",function(p){this.text(jge(p,l)).call(k7,e,t,r);var d={};return d.name=p,n.trace._isShape?bb.call("_guiRelayout",t,"shapes["+a.index+"].name",d.name):bb.call("_guiRestyle",t,d,a.index)}):k7(f,e,t,r)}function jge(e,t){var r=Math.max(4,t);if(e&&e.trim().length>=r/2)return e;e=e||"";for(var i=r-e.length;i>0;i--)e+=" ";return e}function eSt(e,t,r){var i=t._context.doubleClickDelay,n,a=1,o=Fl.ensureSingle(e,"rect",r+"toggle",function(s){t._context.staticPlot||s.style("cursor","pointer").attr("pointer-events","all"),s.call(OA.fill,"rgba(0,0,0,0)")});t._context.staticPlot||(o.on("mousedown",function(){n=new Date().getTime(),n-t._legendMouseDownTimei&&(a=Math.max(a-1,1)),Wge(t,s,e,a,ih.event)}}))}function tSt(e,t,r,i){if(t._fullData.some(function(u){let c=u.legend||"legend";return(Array.isArray(c)?c.includes(i):c===i)&&bb.traceIs(u,"pie-like")}))return;let a=t._context.doubleClickDelay;var o,s=1;let l=Fl.ensureSingle(e,"rect",i+"titletoggle",function(u){t._context.staticPlot||u.style("cursor","pointer").attr("pointer-events","all"),u.call(OA.fill,"rgba(0,0,0,0)")});t._context.staticPlot||(l.on("mousedown",function(){o=new Date().getTime(),o-t._legendMouseDownTimea&&(s=Math.max(s-1,1));let u={event:ih.event,legendId:i,data:t.data,layout:t.layout,fullData:t._fullData,fullLayout:t._fullLayout};if(s===1&&r.titleclick){if(C7.triggerHandler(t,"plotly_legendtitleclick",u)===!1)return;r._titleClickTimeout=setTimeout(function(){t._fullLayout&&Uge(t,r,r.titleclick)},a)}else s===2&&(r._titleClickTimeout&&clearTimeout(r._titleClickTimeout),t._legendMouseDownTime=0,C7.triggerHandler(t,"plotly_legendtitledoubleclick",u)!==!1&&r.titledoubleclick&&Uge(t,r,r.titledoubleclick))}))}function k7(e,t,r,i,n){i._inHover&&e.attr("data-notex",!0),_b.convertToTspans(e,r,function(){rSt(t,r,i,n)})}function rSt(e,t,r,i){var n=e.data()[0][0],a=n&&n.trace.showlegend;if(Array.isArray(a)&&(a=a[n.i]!==!1),!r._inHover&&n&&!a){e.remove();return}var o=e.select("g[class*=math-group]"),s=o.node(),l=Uw.getId(r);r||(r=t._fullLayout[l]);var u=r.borderwidth,c;i===Ow?c=r.title.font:n.groupTitle?c=n.groupTitle.font:c=r.font;var f=c.size*$ge,h,p;if(s){var d=Ll.bBox(s);h=d.height,p=d.width,i===Ow?Ll.setTranslate(o,u,u+h*.75):Ll.setTranslate(o,0,h*.25)}else{var v="."+l+(i===Ow?"title":"")+"text",m=e.select(v),g=_b.lineCount(m),w=m.node();if(h=f*g,p=w?Ll.bBox(w).width:0,i===Ow)r.title.side==="left"&&(p+=Zl.itemGap*2),_b.positionText(m,u+Zl.titlePad,u+f);else{var _=Zl.itemGap*2+r.indentation+r.itemwidth;n.groupTitle&&(_=Zl.itemGap,p-=r.indentation+r.itemwidth),_b.positionText(m,_,-f*((g-1)/2-.3))}}i===Ow?(r._titleWidth=p,r._titleHeight=h):(n.lineHeight=f,n.height=Math.max(h,16)+3,n.width=p)}function iSt(e){var t=0,r=0,i=e.title.side;return i&&(i.indexOf("left")!==-1&&(t=e._titleWidth),i.indexOf("top")!==-1&&(r=e._titleHeight)),[t,r]}function nSt(e,t,r,i,n){var a=e._fullLayout,o=Uw.getId(i);i||(i=a[o]);var s=a._size,l=Uw.isVertical(i),u=Uw.isGrouped(i),c=i.entrywidthmode==="fraction",f=i.borderwidth,h=2*f,p=Zl.itemGap,d=i.indentation+i.itemwidth+p*2,v=2*(f+p),m=F7(i),g=i.y<0||i.y===0&&m==="top",w=i.y>1||i.y===1&&m==="bottom",_=i.tracegroupgap,b={};let{orientation:S,yref:x}=i,{maxheight:T}=i,A=g||w||S!=="v"||x!=="paper";T||(T=A?.5:1);let y=A?a.height:s.h;i._maxHeight=Math.max(T>1?T:T*y,30);var E=0;i._width=0,i._height=0;var M=iSt(i);if(l)r.each(function(ue){var ge=ue[0].height;Ll.setTranslate(this,f+M[0],f+M[1]+i._height+ge/2+p),i._height+=ge,i._width=Math.max(i._width,ue[0].width)}),E=d+i._width,i._width+=p+d+h,i._height+=v,u&&(t.each(function(ue,ge){Ll.setTranslate(this,0,ge*i.tracegroupgap)}),i._height+=(i._lgroupsLength-1)*i.tracegroupgap);else{var C=D7(i),k=i.x<0||i.x===0&&C==="right",D=i.x>1||i.x===1&&C==="left",L=w||g,P=a.width/2;i._maxWidth=Math.max(k?L&&C==="left"?s.l+s.w:P:D?L&&C==="right"?s.r+s.w:P:s.w,2*d);var R=0,F=0;r.each(function(ue){var ge=E7(ue,i,d);R=Math.max(R,ge),F+=ge}),E=null;var I=0;if(u){var B=0,O=0,$=0;t.each(function(){var ue=0,ge=0;ih.select(this).selectAll("g.traces").each(function(_e){var he=E7(_e,i,d),oe=_e[0].height;Ll.setTranslate(this,M[0],M[1]+f+p+oe/2+ge),ge+=oe,ue=Math.max(ue,he),b[_e[0].trace.legendgroup]=ue});var ke=ue+p;O>0&&ke+f+O>i._maxWidth?(I=Math.max(I,O),O=0,$+=B+_,B=ge):B=Math.max(B,ge),Ll.setTranslate(this,O,$),O+=ke}),i._width=Math.max(I,O)+f,i._height=$+B+v}else{var Y=r.size(),K=F+h+(Y-1)*p=i._maxWidth&&(I=Math.max(I,U),q=0,Q+=j,i._height+=j,j=0),Ll.setTranslate(this,M[0]+f+q,M[1]+f+Q+ge/2+p),U=q+ke+p,q+=_e,j=Math.max(j,ge)}),K?(i._width=q+h,i._height=j+v):(i._width=Math.max(I,U)+h,i._height+=j+v)}}i._width=Math.ceil(Math.max(i._width+M[0],i._titleWidth+2*(f+Zl.titlePad))),i._height=Math.ceil(Math.max(i._height+M[1],i._titleHeight+2*(f+Zl.itemGap))),i._effHeight=Math.min(i._height,i._maxHeight);var V=e._context.edits,X=V.legendText||V.legendPosition;r.each(function(ue){var ge=ih.select(this).select("."+o+"toggle"),ke=ue[0].height,_e=ue[0].trace.legendgroup,he=E7(ue,i,d);u&&_e!==""&&(he=b[_e]);var oe=X?d:E||he;!l&&!c&&(oe+=p/2),Ll.setRect(ge,0,-ke/2,oe,ke)});var G=n.select("."+o+"titletext");G.node()&&JMt(G,i,f);var H=n.select("."+o+"titletoggle");if(H.size()&&G.node()){var J=G.attr("x")||0,te=Zl.titlePad;Ll.setRect(H,J-te,f,i._titleWidth+2*te,i._titleHeight+2*te)}}function aSt(e,t,r,i){var n=e._fullLayout,a=n[t],o=D7(a),s=F7(a),l=a.xref==="paper",u=a.yref==="paper";e._fullLayout._reservedMargin[t]={};var c=a.y<.5?"b":"t",f=a.x<.5?"l":"r",h={r:n.width-r,l:r+a._width,b:n.height-i,t:i+a._effHeight};if(l&&u)return GH.autoMargin(e,t,{x:a.x,y:a.y,l:a._width*Nw[o],r:a._width*Vge[o],b:a._effHeight*Vge[s],t:a._effHeight*Nw[s]});l?e._fullLayout._reservedMargin[t][c]=h[c]:u||a.orientation==="v"?e._fullLayout._reservedMargin[t][f]=h[f]:e._fullLayout._reservedMargin[t][c]=h[c]}function D7(e){return Fl.isRightAnchor(e)?"right":Fl.isCenterAnchor(e)?"center":"left"}function F7(e){return Fl.isBottomAnchor(e)?"bottom":Fl.isMiddleAnchor(e)?"middle":"top"}});var XH=W(YH=>{"use strict";var wb=gi(),jg=un(),il=it(),oSt=il.pushUnique,$H=il.strTranslate,sSt=il.strRotate,lSt=xw(),xd=ho(),uSt=_ge(),v1=en(),Kl=ai(),L7=Mf(),g1=Wi(),cSt=(Wl(),Pt($l)).zindexSeparator,Gw=xi(),A0=rh(),Tb=($T(),Pt(jT)),fSt=DH(),hSt=jH(),rme=Tb.YANGLE,WH=Math.PI*rme/180,dSt=1/Math.sin(WH),pSt=Math.cos(WH),vSt=Math.sin(WH),As=Tb.HOVERARROWSIZE,Sa=Tb.HOVERTEXTPAD,Xge={box:!0,ohlc:!0,violin:!0,candlestick:!0},gSt={scatter:!0,scattergl:!0,splom:!0};function Zge(e,t){return e.distance-t.distance}YH.hover=function(t,r,i,n){t=il.getGraphDiv(t);var a=r.target;il.throttle(t._fullLayout._uid+Tb.HOVERID,Tb.HOVERMINTIME,function(){mSt(t,r,i,n,a)})};YH.loneHover=function(t,r){var i=!0;Array.isArray(t)||(i=!1,t=[t]);var n=r.gd,a=sme(n),o=lme(n),s=t.map(function(m){var g=m._x0||m.x0||m.x||0,w=m._x1||m.x1||m.x||0,_=m._y0||m.y0||m.y||0,b=m._y1||m.y1||m.y||0,S=m.eventData;if(S){var x=Math.min(g,w),T=Math.max(g,w),A=Math.min(_,b),y=Math.max(_,b),E=m.trace;if(Gw.traceIs(E,"gl3d")){var M=n._fullLayout[E.scene]._scene.container,C=M.offsetLeft,k=M.offsetTop;x+=C,T+=C,A+=k,y+=k}S.bbox={x0:x+o,x1:T+o,y0:A+a,y1:y+a},S.xPixel=(g+w)/2,S.yPixel=(_+b)/2,r.inOut_bbox&&r.inOut_bbox.push(S.bbox)}else S=!1;return{color:m.color||Kl.defaultLine,x0:m.x0||m.x||0,x1:m.x1||m.x||0,y0:m.y0||m.y||0,y1:m.y1||m.y||0,xLabel:m.xLabel,yLabel:m.yLabel,zLabel:m.zLabel,text:m.text,name:m.name,idealAlign:m.idealAlign,borderColor:m.borderColor,fontFamily:m.fontFamily,fontSize:m.fontSize,fontColor:m.fontColor,fontWeight:m.fontWeight,fontStyle:m.fontStyle,fontVariant:m.fontVariant,nameLength:m.nameLength,textAlign:m.textAlign,trace:m.trace||{index:0,hoverinfo:""},xa:{_offset:0},ya:{_offset:0},index:0,hovertemplate:m.hovertemplate||!1,hovertemplateLabels:m.hovertemplateLabels||!1,eventData:S}}),l=!1,u=nme(s,{gd:n,hovermode:"closest",rotateLabels:l,bgColor:r.bgColor||Kl.background,container:wb.select(r.container),outerContainer:r.outerContainer||r.container}),c=u.hoverLabels,f=5,h=0,p=0;c.sort(function(m,g){return m.y0-g.y0}).each(function(m,g){var w=m.y0-m.by/2;w-fT[0]._length||te<0||te>A[0]._length)return L7.unhoverRaw(e,t)}if(t.pointerX=J+T[0]._offset,t.pointerY=te+A[0]._offset,"xval"in t?P=A0.flat(a,t.xval):P=A0.p2c(T,J),"yval"in t?R=A0.flat(a,t.yval):R=A0.p2c(A,te),e._hoverPointerX=t.pointerX,e._hoverPointerY=t.pointerY,!jg(P[0])||!jg(R[0]))return il.warn("Fx.hover failed",t,e),L7.unhoverRaw(e,t)}s.clickanywhere&&(e._hoverXVals=P,e._hoverYVals=R,e._hoverXAxes=T,e._hoverYAxes=A);var ke=1/0;function _e(Je,Ct){for(I=0;IU&&(D.splice(0,U),ke=D[0].distance),f&&k!==0&&D.length===0){Q.distance=k,Q.index=!1;var ti=O._module.hoverPoints(Q,j,q,"closest",{hoverLayer:s._hoverlayer});if(ti&&(ti=ti.filter(function(va){return va.spikeDistance<=k})),ti&&ti.length){var Pr,Xi=ti.filter(function(va){return va.xa.showspikes&&va.xa.spikesnap!=="hovered data"});if(Xi.length){var Sn=Xi[0];jg(Sn.x0)&&jg(Sn.y0)&&(Pr=oe(Sn),(!V.vLinePoint||V.vLinePoint.spikeDistance>Pr.spikeDistance)&&(V.vLinePoint=Pr))}var vn=ti.filter(function(va){return va.ya.showspikes&&va.ya.spikesnap!=="hovered data"});if(vn.length){var aa=vn[0];jg(aa.x0)&&jg(aa.y0)&&(Pr=oe(aa),(!V.hLinePoint||V.hLinePoint.spikeDistance>Pr.spikeDistance)&&(V.hLinePoint=Pr))}}}}}_e();function he(Je,Ct,nr){for(var dr=null,Vr=1/0,ui,ti=0;tiJe.trace.index===be.trace.index):D=[be];var Ie=D.length,Oe=tme("x",be,s),Qe=tme("y",be,s);_e(Oe,Qe);var et=[],bt={},ut=0,vt=function(Je){var Ct=Xge[Je.trace.type]?ime(Je):Je.trace.index;if(!bt[Ct])ut++,bt[Ct]=ut,et.push(Je);else{var nr=bt[Ct]-1,dr=et[nr];nr>0&&Math.abs(Je.distance)Ie-1;Xe--)vt(D[Xe]);D=et,ee()}var mt=e._hoverdata,_t=[],Ne=sme(e),Ue=lme(e);for(let Je of D){var Ge=A0.makeEventData(Je,Je.trace,Je.cd);if(Je.hovertemplate!==!1){var je=!1;Je.cd[Je.index]&&Je.cd[Je.index].ht&&(je=Je.cd[Je.index].ht),Je.hovertemplate=je||Je.trace.hovertemplate||!1}if(Je.xa&&Je.ya){var Re=Je.x0+Je.xa._offset,Ve=Je.x1+Je.xa._offset,ct=Je.y0+Je.ya._offset,Tt=Je.y1+Je.ya._offset,Zt=Math.min(Re,Ve),Gt=Math.max(Re,Ve),ur=Math.min(ct,Tt),cr=Math.max(ct,Tt);Ge.bbox={x0:Zt+Ue,x1:Gt+Ue,y0:ur+Ne,y1:cr+Ne},Ge.xPixel=(Re+Ve)/2,Ge.yPixel=(ct+Tt)/2}Je.eventData=[Ge],_t.push(Ge)}e._hoverdata=_t;var qt=h==="y"&&(L.length>1||D.length>1)||h==="closest"&&X&&D.length>1,Kt=Kl.combine(s.plot_bgcolor||Kl.background,s.paper_bgcolor),Cr=nme(D,{gd:e,hovermode:h,rotateLabels:qt,bgColor:Kt,container:s._hoverlayer,outerContainer:s._paper.node(),commonLabelOpts:s.hoverlabel,hoverdistance:s.hoverdistance}),$e=Cr.hoverLabels;if(A0.isUnifiedHover(h)||(xSt($e,qt,s,Cr.commonLabelBoundingBox),ome($e,qt,s._invScaleX,s._invScaleY)),n&&n.tagName){var tt=Gw.getComponentMethod("annotations","hasClickToShow")(e,_t);uSt(wb.select(n),tt?"pointer":"")}var st=wSt(e,t,mt);if(!n||i||!st&&!s.hoveranywhere)return;mt&&st&&e.emit("plotly_unhover",{event:t,points:mt}),xt(e._hoverdata);function xt(Je){e.emit("plotly_hover",{event:t,points:Je,xaxes:T,yaxes:A,xvals:A0.c2dApply(T,P),yvals:A0.c2dApply(A,R),xPixel:t.pointerX,yPixel:t.pointerY})}}function ime(e){return[e.trace.index,e.index,e.x0,e.y0,e.name,e.attr,e.xa?e.xa._id:"",e.ya?e.ya._id:""].join(",")}var ySt=/([\s\S]*)<\/extra>/;function nme(e,t){var r=t.gd,i=r._fullLayout,n=t.hovermode,a=t.rotateLabels,o=t.bgColor,s=t.container,l=t.outerContainer,u=t.commonLabelOpts||{};if(e.length===0)return[[]];var c=t.fontFamily||Tb.HOVERFONT,f=t.fontSize||Tb.HOVERFONTSIZE,h=t.fontWeight||i.font.weight,p=t.fontStyle||i.font.style,d=t.fontVariant||i.font.variant,v=t.fontTextcase||i.font.textcase,m=t.fontLineposition||i.font.lineposition,g=t.fontShadow||i.font.shadow,w=e[0],_=w.xa,b=w.ya,S=n.charAt(0),x=S+"Label",T=w[x];if(T===void 0&&_.type==="multicategory")for(var A=0;Ai.width-_t&&(Ne=i.width-_t),Ce.attr("d","M"+(vt-Ne)+",0L"+(vt-Ne+As)+","+mt+As+"H"+_t+"v"+mt+(Sa*2+ut.height)+"H"+-_t+"V"+mt+As+"H"+(vt-Ne-As)+"Z"),vt=Ne,I.minX=vt-_t,I.maxX=vt+_t,_.side==="top"?(I.minY=Xe-(Sa*2+ut.height),I.maxY=Xe-Sa):(I.minY=Xe+Sa,I.maxY=Xe+(Sa*2+ut.height))}else{var Ue,Ge,je;b.side==="right"?(Ue="start",Ge=1,je="",vt=_._offset+_._length):(Ue="end",Ge=-1,je="-",vt=_._offset),Xe=b._offset+(w.y0+w.y1)/2,be.attr("text-anchor",Ue),Ce.attr("d","M0,0L"+je+As+","+As+"V"+(Sa+ut.height/2)+"h"+je+(Sa*2+ut.width)+"V-"+(Sa+ut.height/2)+"H"+je+As+"V-"+As+"Z"),I.minY=Xe-(Sa+ut.height/2),I.maxY=Xe+(Sa+ut.height/2),b.side==="right"?(I.minX=vt+As,I.maxX=vt+As+(Sa*2+ut.width)):(I.minX=vt-As-(Sa*2+ut.width),I.maxX=vt-As);var Re=ut.height/2,Ve=E-ut.top-Re,ct="clip"+i._uid+"commonlabel"+b._id,Tt;if(vtCe.hoverinfo!=="none");if(Ee.length===0)return[];var B=i.hoverlabel,O=B.font,$=Ee[0],Y=((n==="x unified"?$.xa:$.ya).unifiedhovertitle||{}).text,K=Y?il.hovertemplateString({data:n==="x unified"?[{xa:$.xa,x:$.xVal}]:[{ya:$.ya,y:$.yVal}],fallback:$.trace.hovertemplatefallback,locale:i._d3locale,template:Y}):T,j={showlegend:!0,legend:{title:{text:K,font:O},font:O,bgcolor:B.bgcolor,bordercolor:B.bordercolor,borderwidth:1,tracegroupgap:7,traceorder:i.legend?i.legend.traceorder:void 0,orientation:"v"}},q={font:O};fSt(j,q,r._fullData);var Q=q.legend;Q.entries=[];for(var U=0;U=0?pe=ee:ae+ge=0?pe=ae:xe+ge=0?we=ye:ce+ke=0?we=ce:re+ke=0,(Ee.idealAlign==="top"||!ur)&&cr?(je-=Ve/2,Ee.anchor="end"):ur?(je+=Ve/2,Ee.anchor="start"):Ee.anchor="middle",Ee.crossPos=je;else{if(Ee.pos=je,ur=Ge+Re/2+Gt<=M,cr=Ge-Re/2-Gt>=0,(Ee.idealAlign==="left"||!ur)&&cr)Ge-=Re/2,Ee.anchor="end";else if(ur)Ge+=Re/2,Ee.anchor="start";else{Ee.anchor="middle";var qt=Gt/2,Kt=Ge+qt-M,Cr=Ge-qt;Kt>0&&(Ge-=Kt),Cr<0&&(Ge+=-Cr)}Ee.crossPos=Ge}Xe.attr("text-anchor",Ee.anchor),_t&&mt.attr("text-anchor",Ee.anchor),Ce.attr("transform",$H(Ge,je)+(a?sSt(rme):""))}),{hoverLabels:Fe,commonLabelBoundingBox:I}}function Kge(e,t,r,i,n,a){var f,h;var o="",s="";e.nameOverride!==void 0&&(e.name=e.nameOverride),e.name&&(e.trace._meta&&(e.name=il.templateString(e.name,e.trace._meta)),o=eme(e.name,e.nameLength));var l=r.charAt(0),u=l==="x"?"y":"x";e.zLabel!==void 0?(e.xLabel!==void 0&&(s+="x: "+e.xLabel+"
"),e.yLabel!==void 0&&(s+="y: "+e.yLabel+"
"),e.trace.type!=="choropleth"&&e.trace.type!=="choroplethmap"&&(s+=(s?"z: ":"")+e.zLabel)):t&&e[l+"Label"]===n?s=e[u+"Label"]||"":e.xLabel===void 0?e.yLabel!==void 0&&e.trace.type!=="scattercarpet"&&(s=e.yLabel):e.yLabel===void 0?s=e.xLabel:s="("+e.xLabel+", "+e.yLabel+")",(e.text||e.text===0)&&!Array.isArray(e.text)&&(s+=(s?"
":"")+e.text),e.extraText!==void 0&&(s+=(s?"
":"")+e.extraText),a&&s===""&&!e.hovertemplate&&(o===""&&a.remove(),s=o),(h=(f=e.trace)==null?void 0:f.hoverlabel)!=null&&h.split&&(e.hovertemplate="");let{hovertemplate:c=!1}=e;if(c){let p=e.hovertemplateLabels||e;e[l+"Label"]!==n&&(p[l+"other"]=p[l+"Val"],p[l+"otherLabel"]=p[l+"Label"]),s=il.hovertemplateString({data:[e.eventData[0]||{},e.trace._meta],fallback:e.trace.hovertemplatefallback,labels:p,locale:i._d3locale,template:c}),s=s.replace(ySt,(d,v)=>(o=eme(v,e.nameLength),""))}return[s,o]}function xSt(e,t,r,i){var n=t?"xa":"ya",a=t?"ya":"xa",o=0,s=1,l=e.size(),u=new Array(l),c=0,f=i.minX,h=i.maxX,p=i.minY,d=i.maxY,v=function(P){return P*r._invScaleX},m=function(P){return P*r._invScaleY};e.each(function(P){var R=P[n],F=P[a],I=R._id.charAt(0)==="x",B=R.range;c===0&&B&&B[0]>B[1]!==I&&(s=-1);var O=0,$=I?r.width:r.height;if(r.hovermode==="x"||r.hovermode==="y"){var Y=ame(P,t),K=P.anchor,j=K==="end"?-1:1,q,Q;if(K==="middle")q=P.crossPos+(I?m(Y.y-P.by/2):v(P.bx/2+P.tx2width/2)),Q=q+(I?m(P.by):v(P.bx));else if(I)q=P.crossPos+m(As+Y.y)-m(P.by/2-As),Q=q+m(P.by);else{var U=v(j*As+Y.x),V=U+v(j*P.bx);q=P.crossPos+Math.min(U,V),Q=P.crossPos+Math.max(U,V)}I?p!==void 0&&d!==void 0&&Math.min(Q,d)-Math.max(q,p)>1&&(F.side==="left"?(O=F._mainLinePosition,$=r.width):$=F._mainLinePosition):f!==void 0&&h!==void 0&&Math.min(Q,h)-Math.max(q,f)>1&&(F.side==="top"?(O=F._mainLinePosition,$=r.height):$=F._mainLinePosition)}u[c++]=[{datum:P,traceIndex:P.trace.index,dp:0,pos:P.pos,posref:P.posref,size:P.by*(I?dSt:1)/2,pmin:O,pmax:$}]}),u.sort(function(P,R){return P[0].posref-R[0].posref||s*(R[0].traceIndex-P[0].traceIndex)});var g,w,_,b,S,x,T;function A(P){var R=P[0],F=P[P.length-1];if(w=R.pmin-R.pos-R.dp+R.size,_=F.pos+F.dp+F.size-R.pmax,w>.01){for(S=P.length-1;S>=0;S--)P[S].dp+=w;g=!1}if(!(_<.01)){if(w<-.01){for(S=P.length-1;S>=0;S--)P[S].dp-=_;g=!1}if(g){var I=0;for(b=0;bR.pmax&&I++;for(b=P.length-1;b>=0&&!(I<=0);b--)x=P[b],x.pos>R.pmax-1&&(x.del=!0,I--);for(b=0;b=0;S--)P[S].dp-=_;for(b=P.length-1;b>=0&&!(I<=0);b--)x=P[b],x.pos+x.dp+x.size>R.pmax&&(x.del=!0,I--)}}}for(;!g&&o<=l;){for(o++,g=!0,b=0;b.01){for(S=E.length-1;S>=0;S--)E[S].dp+=w;for(y.push.apply(y,E),u.splice(b+1,1),T=0,S=y.length-1;S>=0;S--)T+=y[S].dp;for(_=T/y.length,S=y.length-1;S>=0;S--)y[S].dp-=_;g=!1}else b++}u.forEach(A)}for(b=u.length-1;b>=0;b--){var k=u[b];for(S=k.length-1;S>=0;S--){var D=k[S],L=D.datum;L.offset=D.dp,L.del=D.del}}}function ame(e,t){var r=0,i=e.offset;return t&&(i*=-vSt,r=e.offset*pSt),{x:r,y:i}}function bSt(e){var t={start:1,end:-1,middle:0}[e.anchor],r=t*(As+Sa),i=r+t*(e.txwidth+Sa),n=e.anchor==="middle";return n&&(r-=e.tx2width/2,i+=e.txwidth/2+Sa),{alignShift:t,textShiftX:r,text2ShiftX:i}}function ome(e,t,r,i){var n=function(o){return o*r},a=function(o){return o*i};e.each(function(o){var s=wb.select(this);if(o.del)return s.remove();var l=s.select("text.nums"),u=o.anchor,c=u==="end"?-1:1,f=bSt(o),h=ame(o,t),p=h.x,d=h.y,v=u==="middle",m="hoverlabel"in o.trace?o.trace.hoverlabel.showarrow:!0,g;v?g="M-"+n(o.bx/2+o.tx2width/2)+","+a(d-o.by/2)+"h"+n(o.bx)+"v"+a(o.by)+"h-"+n(o.bx)+"Z":m?g="M0,0L"+n(c*As+p)+","+a(As+d)+"v"+a(o.by/2-As)+"h"+n(c*o.bx)+"v-"+a(o.by)+"H"+n(c*As+p)+"V"+a(d-As)+"Z":g="M"+n(c*As+p)+","+a(d-o.by/2)+"h"+n(c*o.bx)+"v"+a(o.by)+"h"+n(-c*o.bx)+"Z",s.select("path").attr("d",g);var w=p+f.textShiftX,_=d+o.ty0-o.by/2+Sa,b=o.textAlign||"auto";b!=="auto"&&(b==="left"&&u!=="start"?(l.attr("text-anchor","start"),w=v?-o.bx/2-o.tx2width/2+Sa:-o.bx-Sa):b==="right"&&u!=="end"&&(l.attr("text-anchor","end"),w=v?o.bx/2-o.tx2width/2-Sa:o.bx+Sa)),l.call(xd.positionText,n(w),a(_)),o.tx2width&&(s.select("text.name").call(xd.positionText,n(f.text2ShiftX+f.alignShift*Sa+p),a(d+o.ty0-o.by/2+Sa)),s.select("rect").call(v1.setRect,n(f.text2ShiftX+(f.alignShift-1)*o.tx2width/2+p),a(d-o.by/2-1),n(o.tx2width),a(o.by+2)))})}function _St(e,t){var r=e.index,i=e.trace||{},n=e.cd[0],a=e.cd[r]||{};function o(h){return h||jg(h)&&h===0}var s=Array.isArray(r)?function(h,p){var d=il.castOption(n,r,h);return o(d)?d:il.extractOption({},i,"",p)}:function(h,p){return il.extractOption(a,i,h,p)};function l(h,p,d){var v=s(p,d);o(v)&&(e[h]=v)}if(l("hoverinfo","hi","hoverinfo"),l("bgcolor","hbg","hoverlabel.bgcolor"),l("borderColor","hbc","hoverlabel.bordercolor"),l("fontFamily","htf","hoverlabel.font.family"),l("fontSize","hts","hoverlabel.font.size"),l("fontColor","htc","hoverlabel.font.color"),l("fontWeight","htw","hoverlabel.font.weight"),l("fontStyle","hty","hoverlabel.font.style"),l("fontVariant","htv","hoverlabel.font.variant"),l("nameLength","hnl","hoverlabel.namelength"),l("textAlign","hta","hoverlabel.align"),e.posref=t==="y"||t==="closest"&&i.orientation==="h"?e.xa._offset+(e.x0+e.x1)/2:e.ya._offset+(e.y0+e.y1)/2,e.x0=il.constrain(e.x0,0,e.xa._length),e.x1=il.constrain(e.x1,0,e.xa._length),e.y0=il.constrain(e.y0,0,e.ya._length),e.y1=il.constrain(e.y1,0,e.ya._length),e.xLabelVal!==void 0&&(e.xLabel="xLabel"in e?e.xLabel:g1.hoverLabelText(e.xa,e.xLabelVal,i.xhoverformat),e.xVal=e.xa.c2d(e.xLabelVal)),e.yLabelVal!==void 0&&(e.yLabel="yLabel"in e?e.yLabel:g1.hoverLabelText(e.ya,e.yLabelVal,i.yhoverformat),e.yVal=e.ya.c2d(e.yLabelVal)),e.zLabelVal!==void 0&&e.zLabel===void 0&&(e.zLabel=String(e.zLabelVal)),!isNaN(e.xerr)&&!(e.xa.type==="log"&&e.xerr<=0)){var u=g1.tickText(e.xa,e.xa.c2l(e.xerr),"hover").text;e.xerrneg!==void 0?e.xLabel+=" +"+u+" / -"+g1.tickText(e.xa,e.xa.c2l(e.xerrneg),"hover").text:e.xLabel+=" \xB1 "+u,t==="x"&&(e.distance+=1)}if(!isNaN(e.yerr)&&!(e.ya.type==="log"&&e.yerr<=0)){var c=g1.tickText(e.ya,e.ya.c2l(e.yerr),"hover").text;e.yerrneg!==void 0?e.yLabel+=" +"+c+" / -"+g1.tickText(e.ya,e.ya.c2l(e.yerrneg),"hover").text:e.yLabel+=" \xB1 "+c,t==="y"&&(e.distance+=1)}var f=e.hoverinfo||e.trace.hoverinfo;return f&&f!=="all"&&(f=Array.isArray(f)?f:f.split("+"),f.indexOf("x")===-1&&(e.xLabel=void 0),f.indexOf("y")===-1&&(e.yLabel=void 0),f.indexOf("z")===-1&&(e.zLabel=void 0),f.indexOf("text")===-1&&(e.text=void 0),f.indexOf("name")===-1&&(e.name=void 0)),e}function Jge(e,t,r){var i=r.container,n=r.fullLayout,a=n._size,o=r.event,s=!!t.hLinePoint,l=!!t.vLinePoint,u,c;if(i.selectAll(".spikeline").remove(),!!(l||s)){var f=Kl.combine(n.plot_bgcolor,n.paper_bgcolor);if(s){var h=t.hLinePoint,p,d;u=h&&h.xa,c=h&&h.ya;var v=c.spikesnap;v==="cursor"?(p=o.pointerX,d=o.pointerY):(p=u._offset+h.x,d=c._offset+h.y);var m=Kl.wcagContrast(h.color,f)<1.5?Kl.contrast(f):h.color,g=c.spikemode,w=c.spikethickness,_=c.spikecolor||m,b=g1.getPxPosition(e,c),S,x;if(g.indexOf("toaxis")!==-1||g.indexOf("across")!==-1){if(g.indexOf("toaxis")!==-1&&(S=b,x=p),g.indexOf("across")!==-1){var T=c._counterDomainMin,A=c._counterDomainMax;c.anchor==="free"&&(T=Math.min(T,c.position),A=Math.max(A,c.position)),S=a.l+T*a.w,x=a.l+A*a.w}i.insert("line",":first-child").attr({x1:S,x2:x,y1:d,y2:d,"stroke-width":w,stroke:_,"stroke-dasharray":v1.dashStyle(c.spikedash,w)}).classed("spikeline",!0).classed("crisp",!0),i.insert("line",":first-child").attr({x1:S,x2:x,y1:d,y2:d,"stroke-width":w+2,stroke:f}).classed("spikeline",!0).classed("crisp",!0)}g.indexOf("marker")!==-1&&i.insert("circle",":first-child").attr({cx:b+(c.side!=="right"?w:-w),cy:d,r:w,fill:_}).classed("spikeline",!0)}if(l){var y=t.vLinePoint,E,M;u=y&&y.xa,c=y&&y.ya;var C=u.spikesnap;C==="cursor"?(E=o.pointerX,M=o.pointerY):(E=u._offset+y.x,M=c._offset+y.y);var k=Kl.wcagContrast(y.color,f)<1.5?Kl.contrast(f):y.color,D=u.spikemode,L=u.spikethickness,P=u.spikecolor||k,R=g1.getPxPosition(e,u),F,I;if(D.indexOf("toaxis")!==-1||D.indexOf("across")!==-1){if(D.indexOf("toaxis")!==-1&&(F=R,I=M),D.indexOf("across")!==-1){var B=u._counterDomainMin,O=u._counterDomainMax;u.anchor==="free"&&(B=Math.min(B,u.position),O=Math.max(O,u.position)),F=a.t+(1-O)*a.h,I=a.t+(1-B)*a.h}i.insert("line",":first-child").attr({x1:E,x2:E,y1:F,y2:I,"stroke-width":L,stroke:P,"stroke-dasharray":v1.dashStyle(u.spikedash,L)}).classed("spikeline",!0).classed("crisp",!0),i.insert("line",":first-child").attr({x1:E,x2:E,y1:F,y2:I,"stroke-width":L+2,stroke:f}).classed("spikeline",!0).classed("crisp",!0)}D.indexOf("marker")!==-1&&i.insert("circle",":first-child").attr({cx:E,cy:R-(u.side!=="top"?L:-L),r:L,fill:P}).classed("spikeline",!0)}}}function wSt(e,t,r){if(!r||r.length!==e._hoverdata.length)return!0;for(var i=r.length-1;i>=0;i--){var n=r[i],a=e._hoverdata[i];if(n.curveNumber!==a.curveNumber||String(n.pointNumber)!==String(a.pointNumber)||String(n.pointNumbers)!==String(a.pointNumbers)||n.binNumber!==a.binNumber)return!0}return!1}function Qge(e,t){return!t||t.vLinePoint!==e._spikepoints.vLinePoint||t.hLinePoint!==e._spikepoints.hLinePoint}function eme(e,t){return xd.plainText(e||"",{len:t,allowedTags:["br","sub","sup","b","i","em","s","u"]})}function TSt(e,t){for(var r=t.charAt(0),i=[],n=[],a=[],o=0;oe.offsetTop+e.clientTop,lme=e=>e.offsetLeft+e.clientLeft;function Vw(e,t){var r=e._fullLayout,i=t.getBoundingClientRect(),n=i.left,a=i.top,o=n+i.width,s=a+i.height,l=il.apply3DTransform(r._invTransform)(n,a),u=il.apply3DTransform(r._invTransform)(o,s),c=l[0],f=l[1],h=u[0],p=u[1];return{x:c,y:f,width:h-c,height:p-f,top:Math.min(f,p),left:Math.min(c,h),right:Math.max(c,h),bottom:Math.max(f,p)}}});var NA=W((EOr,ume)=>{"use strict";var ASt=it(),MSt=ai(),SSt=rh().isUnifiedHover;ume.exports=function(t,r,i,n){n=n||{};var a=r.legend;function o(s){n.font[s]||(n.font[s]=a?r.legend.font[s]:r.font[s])}r&&SSt(r.hovermode)&&(n.font||(n.font={}),o("size"),o("family"),o("color"),o("weight"),o("style"),o("variant"),a?(n.bgcolor||(n.bgcolor=MSt.combine(r.legend.bgcolor,r.paper_bgcolor)),n.bordercolor||(n.bordercolor=r.legend.bordercolor)):n.bgcolor||(n.bgcolor=r.paper_bgcolor)),i("hoverlabel.bgcolor",n.bgcolor),i("hoverlabel.bordercolor",n.bordercolor),i("hoverlabel.namelength",n.namelength),i("hoverlabel.showarrow",n.showarrow),ASt.coerceFont(i,"hoverlabel.font",n.font),i("hoverlabel.align",n.align)}});var fme=W((kOr,cme)=>{"use strict";var ESt=it(),kSt=NA(),CSt=py();cme.exports=function(t,r){function i(n,a){return ESt.coerce(t,r,CSt,n,a)}kSt(t,r,i)}});var pme=W((COr,dme)=>{"use strict";var hme=it(),DSt=J3(),FSt=NA();dme.exports=function(t,r,i,n){function a(s,l){return hme.coerce(t,r,DSt,s,l)}var o=hme.extendFlat({},n.hoverlabel);r.hovertemplate&&(o.namelength=-1),FSt(t,r,a,o)}});var ZH=W((DOr,vme)=>{"use strict";var LSt=it(),PSt=py();vme.exports=function(t,r){function i(n,a){return r[n]!==void 0?r[n]:LSt.coerce(t,r,PSt,n,a)}return i("clickmode"),i("hoversubplots"),i("hoveranywhere"),i("clickanywhere"),i("hovermode")}});var yme=W((FOr,mme)=>{"use strict";var gme=it(),ISt=py(),RSt=ZH(),zSt=NA();mme.exports=function(t,r){function i(u,c){return gme.coerce(t,r,ISt,u,c)}var n=RSt(t,r);n&&(i("hoverdistance"),i("spikedistance"),n.indexOf("unified")!==-1&&i("hoversort"));var a=i("dragmode");a==="select"&&i("selectdirection");var o=r._has("map"),s=r._has("geo"),l=r._basePlotModules.length;r.dragmode==="zoom"&&((o||s)&&l===1||o&&s&&l===2)&&(r.dragmode="pan"),zSt(t,r,i),gme.coerceFont(i,"hoverlabel.grouptitlefont",r.hoverlabel.font)}});var _me=W((LOr,bme)=>{"use strict";var KH=it(),xme=xi();bme.exports=function(t){var r=t.calcdata,i=t._fullLayout;function n(u){return function(c){return KH.coerceHoverinfo({hoverinfo:c},{_module:u._module},i)}}for(var a=0;a{"use strict";var qSt=xi(),wme=rh(),OSt=XH().hover;Tme.exports=function(t,r,i){var n=qSt.getComponentMethod("annotations","onClick")(t,t._hoverdata),a=t._fullLayout;i!==void 0&&OSt(t,r,i,!0);function o(){var l,u,c,f,h,p;var s={points:t._hoverdata,event:r};(l=s.xaxes)!=null||(s.xaxes=t._hoverXAxes),(u=s.yaxes)!=null||(s.yaxes=t._hoverYAxes),(c=s.xvals)!=null||(s.xvals=t._hoverXVals&&wme.c2dApply(t._hoverXAxes,t._hoverXVals)),(f=s.yvals)!=null||(s.yvals=t._hoverYVals&&wme.c2dApply(t._hoverYAxes,t._hoverYVals)),(h=s.xPixel)!=null||(s.xPixel=t._hoverPointerX),(p=s.yPixel)!=null||(s.yPixel=t._hoverPointerY),t.emit("plotly_click",s)}(t._hoverdata||a.clickanywhere)&&r&&r.target&&(t._hoverdata||(t._hoverdata=[]),n&&n.then?n.then(o):o(),r.stopImmediatePropagation&&r.stopImmediatePropagation())}});var Ls=W((IOr,Eme)=>{"use strict";var NSt=gi(),P7=it(),USt=Mf(),UA=rh(),Mme=py(),Sme=XH();Eme.exports={moduleType:"component",name:"fx",constants:($T(),Pt(jT)),schema:{layout:Mme},attributes:J3(),layoutAttributes:Mme,supplyLayoutGlobalDefaults:fme(),supplyDefaults:pme(),supplyLayoutDefaults:yme(),calc:_me(),getDistanceFunction:UA.getDistanceFunction,getClosest:UA.getClosest,inbox:UA.inbox,quadrature:UA.quadrature,appendArrayPointValue:UA.appendArrayPointValue,castHoverOption:GSt,castHoverinfo:HSt,hover:Sme.hover,unhover:USt.unhover,loneHover:Sme.loneHover,loneUnhover:VSt,click:Ame()};function VSt(e){var t=P7.isD3Selection(e)?e:NSt.select(e);t.selectAll("g.hovertext").remove(),t.selectAll(".spikeline").remove()}function GSt(e,t,r){return P7.castOption(e,t,"hoverlabel."+r)}function HSt(e,t,r){function i(n){return P7.coerceHoverinfo({hoverinfo:n},{_module:e._module},t)}return P7.castOption(e,r,"hoverinfo",i)}});var m1=W($g=>{"use strict";$g.selectMode=function(e){return e==="lasso"||e==="select"};$g.drawMode=function(e){return e==="drawclosedpath"||e==="drawopenpath"||e==="drawline"||e==="drawrect"||e==="drawcircle"};$g.openMode=function(e){return e==="drawline"||e==="drawopenpath"};$g.rectMode=function(e){return e==="select"||e==="drawline"||e==="drawrect"||e==="drawcircle"};$g.freeMode=function(e){return e==="lasso"||e==="drawclosedpath"||e==="drawopenpath"};$g.selectingOrDrawing=function(e){return $g.freeMode(e)||$g.rectMode(e)}});var VA=W((zOr,kme)=>{"use strict";kme.exports=function(t){var r=t._fullLayout;r._glcanvas&&r._glcanvas.size()&&r._glcanvas.each(function(i){i.regl&&i.regl.clear({color:!0,depth:!0})})}});var I7=W((BOr,Cme)=>{"use strict";Cme.exports={undo:{width:857.1,height:1e3,path:"m857 350q0-87-34-166t-91-137-137-92-166-34q-96 0-183 41t-147 114q-4 6-4 13t5 11l76 77q6 5 14 5 9-1 13-7 41-53 100-82t126-29q58 0 110 23t92 61 61 91 22 111-22 111-61 91-92 61-110 23q-55 0-105-20t-90-57l77-77q17-16 8-38-10-23-33-23h-250q-15 0-25 11t-11 25v250q0 24 22 33 22 10 39-8l72-72q60 57 137 88t159 31q87 0 166-34t137-92 91-137 34-166z",transform:"matrix(1 0 0 -1 0 850)"},home:{width:928.6,height:1e3,path:"m786 296v-267q0-15-11-26t-25-10h-214v214h-143v-214h-214q-15 0-25 10t-11 26v267q0 1 0 2t0 2l321 264 321-264q1-1 1-4z m124 39l-34-41q-5-5-12-6h-2q-7 0-12 3l-386 322-386-322q-7-4-13-4-7 2-12 7l-35 41q-4 5-3 13t6 12l401 334q18 15 42 15t43-15l136-114v109q0 8 5 13t13 5h107q8 0 13-5t5-13v-227l122-102q5-5 6-12t-4-13z",transform:"matrix(1 0 0 -1 0 850)"},"camera-retro":{width:1e3,height:1e3,path:"m518 386q0 8-5 13t-13 5q-37 0-63-27t-26-63q0-8 5-13t13-5 12 5 5 13q0 23 16 38t38 16q8 0 13 5t5 13z m125-73q0-59-42-101t-101-42-101 42-42 101 42 101 101 42 101-42 42-101z m-572-320h858v71h-858v-71z m643 320q0 89-62 152t-152 62-151-62-63-152 63-151 151-63 152 63 62 151z m-571 358h214v72h-214v-72z m-72-107h858v143h-462l-36-71h-360v-72z m929 143v-714q0-30-21-51t-50-21h-858q-29 0-50 21t-21 51v714q0 30 21 51t50 21h858q29 0 50-21t21-51z",transform:"matrix(1 0 0 -1 0 850)"},curlybraces:{width:18,height:16,path:"M 9,4 C 7.354992,4 6,5.354992 6,7 V 9 C 6,9.2999997 5.8778068,9.8883542 5.5878906,10.291016 5.2979744,10.693677 4.9222213,11 4,11 a 1.0001,1.0001 0 0 0 0,2 c 0.2999997,0 0.8883542,0.122193 1.2910156,0.412109 C 5.693677,13.702026 6,14.077779 6,15 v 2 c 0,1.645008 1.354992,3 3,3 h 0.5 a 1,1 0 0 0 1,-1 1,1 0 0 0 -1,-1 H 9 C 8.4358712,18 8,17.564129 8,17 V 15 C 8,13.625876 7.3766799,12.602305 6.6113281,11.96875 6.8086352,11.794047 7.0679793,11.657537 7.2109375,11.458984 7.8210204,10.611647 8,9.6999993 8,9 V 7 C 8,6.4358712 8.4358712,6 9,6 h 0.5 a 1,1 0 0 0 1,-1 1,1 0 0 0 -1,-1 z m 5.5,0 a 1,1 0 0 0 -1,1 1,1 0 0 0 1,1 H 15 c 0.564129,0 1,0.4358712 1,1 v 2 c 0,0.6999993 0.17898,1.611647 0.789062,2.458984 0.142959,0.198553 0.402303,0.335063 0.59961,0.509766 C 16.62332,12.602305 16,13.625876 16,15 v 2 c 0,0.564129 -0.435871,1 -1,1 h -0.5 a 1,1 0 0 0 -1,1 1,1 0 0 0 1,1 H 15 c 1.645008,0 3,-1.354992 3,-3 v -2 c 0,-0.922221 0.306323,-1.297974 0.708984,-1.587891 C 19.111646,13.122193 19.7,13 20,13 a 1.0001,1.0001 0 0 0 0,-2 C 19.077779,11 18.702026,10.693677 18.412109,10.291016 18.122193,9.8883542 18,9.2999997 18,9 V 7 C 18,5.354992 16.645008,4 15,4 Z",transform:"translate(-3 -4)"},zoombox:{width:1e3,height:1e3,path:"m1000-25l-250 251c40 63 63 138 63 218 0 224-182 406-407 406-224 0-406-182-406-406s183-406 407-406c80 0 155 22 218 62l250-250 125 125z m-812 250l0 438 437 0 0-438-437 0z m62 375l313 0 0-312-313 0 0 312z",transform:"matrix(1 0 0 -1 0 850)"},pan:{width:1e3,height:1e3,path:"m1000 350l-187 188 0-125-250 0 0 250 125 0-188 187-187-187 125 0 0-250-250 0 0 125-188-188 186-187 0 125 252 0 0-250-125 0 187-188 188 188-125 0 0 250 250 0 0-126 187 188z",transform:"matrix(1 0 0 -1 0 850)"},zoom_plus:{width:875,height:1e3,path:"m1 787l0-875 875 0 0 875-875 0z m687-500l-187 0 0-187-125 0 0 187-188 0 0 125 188 0 0 187 125 0 0-187 187 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},zoom_minus:{width:875,height:1e3,path:"m0 788l0-876 875 0 0 876-875 0z m688-500l-500 0 0 125 500 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},autoscale:{width:1e3,height:1e3,path:"m250 850l-187 0-63 0 0-62 0-188 63 0 0 188 187 0 0 62z m688 0l-188 0 0-62 188 0 0-188 62 0 0 188 0 62-62 0z m-875-938l0 188-63 0 0-188 0-62 63 0 187 0 0 62-187 0z m875 188l0-188-188 0 0-62 188 0 62 0 0 62 0 188-62 0z m-125 188l-1 0-93-94-156 156 156 156 92-93 2 0 0 250-250 0 0-2 93-92-156-156-156 156 94 92 0 2-250 0 0-250 0 0 93 93 157-156-157-156-93 94 0 0 0-250 250 0 0 0-94 93 156 157 156-157-93-93 0 0 250 0 0 250z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_basic:{width:1500,height:1e3,path:"m375 725l0 0-375-375 375-374 0-1 1125 0 0 750-1125 0z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_compare:{width:1125,height:1e3,path:"m187 786l0 2-187-188 188-187 0 0 937 0 0 373-938 0z m0-499l0 1-187-188 188-188 0 0 937 0 0 376-938-1z",transform:"matrix(1 0 0 -1 0 850)"},plotlylogo:{width:1542,height:1e3,path:"m0-10h182v-140h-182v140z m228 146h183v-286h-183v286z m225 714h182v-1000h-182v1000z m225-285h182v-715h-182v715z m225 142h183v-857h-183v857z m231-428h182v-429h-182v429z m225-291h183v-138h-183v138z",transform:"matrix(1 0 0 -1 0 850)"},"z-axis":{width:1e3,height:1e3,path:"m833 5l-17 108v41l-130-65 130-66c0 0 0 38 0 39 0-1 36-14 39-25 4-15-6-22-16-30-15-12-39-16-56-20-90-22-187-23-279-23-261 0-341 34-353 59 3 60 228 110 228 110-140-8-351-35-351-116 0-120 293-142 474-142 155 0 477 22 477 142 0 50-74 79-163 96z m-374 94c-58-5-99-21-99-40 0-24 65-43 144-43 79 0 143 19 143 43 0 19-42 34-98 40v216h87l-132 135-133-135h88v-216z m167 515h-136v1c16 16 31 34 46 52l84 109v54h-230v-71h124v-1c-16-17-28-32-44-51l-89-114v-51h245v72z",transform:"matrix(1 0 0 -1 0 850)"},"3d_rotate":{width:1e3,height:1e3,path:"m922 660c-5 4-9 7-14 11-359 263-580-31-580-31l-102 28 58-400c0 1 1 1 2 2 118 108 351 249 351 249s-62 27-100 42c88 83 222 183 347 122 16-8 30-17 44-27-2 1-4 2-6 4z m36-329c0 0 64 229-88 296-62 27-124 14-175-11 157-78 225-208 249-266 8-19 11-31 11-31 2 5 6 15 11 32-5-13-8-20-8-20z m-775-239c70-31 117-50 198-32-121 80-199 346-199 346l-96-15-58-12c0 0 55-226 155-287z m603 133l-317-139c0 0 4-4 19-14 7-5 24-15 24-15s-177-147-389 4c235-287 536-112 536-112l31-22 100 299-4-1z m-298-153c6-4 14-9 24-15 0 0-17 10-24 15z",transform:"matrix(1 0 0 -1 0 850)"},camera:{width:1e3,height:1e3,path:"m500 450c-83 0-150-67-150-150 0-83 67-150 150-150 83 0 150 67 150 150 0 83-67 150-150 150z m400 150h-120c-16 0-34 13-39 29l-31 93c-6 15-23 28-40 28h-340c-16 0-34-13-39-28l-31-94c-6-15-23-28-40-28h-120c-55 0-100-45-100-100v-450c0-55 45-100 100-100h800c55 0 100 45 100 100v450c0 55-45 100-100 100z m-400-550c-138 0-250 112-250 250 0 138 112 250 250 250 138 0 250-112 250-250 0-138-112-250-250-250z m365 380c-19 0-35 16-35 35 0 19 16 35 35 35 19 0 35-16 35-35 0-19-16-35-35-35z",transform:"matrix(1 0 0 -1 0 850)"},movie:{width:1e3,height:1e3,path:"m938 413l-188-125c0 37-17 71-44 94 64 38 107 107 107 187 0 121-98 219-219 219-121 0-219-98-219-219 0-61 25-117 66-156h-115c30 33 49 76 49 125 0 103-84 187-187 187s-188-84-188-187c0-57 26-107 65-141-38-22-65-62-65-109v-250c0-70 56-126 125-126h500c69 0 125 56 125 126l188-126c34 0 62 28 62 63v375c0 35-28 63-62 63z m-750 0c-69 0-125 56-125 125s56 125 125 125 125-56 125-125-56-125-125-125z m406-1c-87 0-157 70-157 157 0 86 70 156 157 156s156-70 156-156-70-157-156-157z",transform:"matrix(1 0 0 -1 0 850)"},question:{width:857.1,height:1e3,path:"m500 82v107q0 8-5 13t-13 5h-107q-8 0-13-5t-5-13v-107q0-8 5-13t13-5h107q8 0 13 5t5 13z m143 375q0 49-31 91t-77 65-95 23q-136 0-207-119-9-14 4-24l74-55q4-4 10-4 9 0 14 7 30 38 48 51 19 14 48 14 27 0 48-15t21-33q0-21-11-34t-38-25q-35-16-65-48t-29-70v-20q0-8 5-13t13-5h107q8 0 13 5t5 13q0 10 12 27t30 28q18 10 28 16t25 19 25 27 16 34 7 45z m214-107q0-117-57-215t-156-156-215-58-216 58-155 156-58 215 58 215 155 156 216 58 215-58 156-156 57-215z",transform:"matrix(1 0 0 -1 0 850)"},disk:{width:857.1,height:1e3,path:"m214-7h429v214h-429v-214z m500 0h72v500q0 8-6 21t-11 20l-157 156q-5 6-19 12t-22 5v-232q0-22-15-38t-38-16h-322q-22 0-37 16t-16 38v232h-72v-714h72v232q0 22 16 38t37 16h465q22 0 38-16t15-38v-232z m-214 518v178q0 8-5 13t-13 5h-107q-7 0-13-5t-5-13v-178q0-8 5-13t13-5h107q7 0 13 5t5 13z m357-18v-518q0-22-15-38t-38-16h-750q-23 0-38 16t-16 38v750q0 22 16 38t38 16h517q23 0 50-12t42-26l156-157q16-15 27-42t11-49z",transform:"matrix(1 0 0 -1 0 850)"},cloudupload:{width:640,height:640,path:"M451.5 160C434.9 160 418.8 164.5 404.7 172.7C388.9 156.7 370.5 143.3 350.2 133.2C378.4 109.2 414.3 96 451.5 96C537.9 96 608 166 608 252.5C608 294 591.5 333.8 562.2 363.1L491.1 434.2C461.8 463.5 422 480 380.5 480C294.1 480 224 410 224 323.5C224 322 224 320.5 224.1 319C224.6 301.3 239.3 287.4 257 287.9C274.7 288.4 288.6 303.1 288.1 320.8C288.1 321.7 288.1 322.6 288.1 323.4C288.1 374.5 329.5 415.9 380.6 415.9C405.1 415.9 428.6 406.2 446 388.8L517.1 317.7C534.4 300.4 544.2 276.8 544.2 252.3C544.2 201.2 502.8 159.8 451.7 159.8zM307.2 237.3C305.3 236.5 303.4 235.4 301.7 234.2C289.1 227.7 274.7 224 259.6 224C235.1 224 211.6 233.7 194.2 251.1L123.1 322.2C105.8 339.5 96 363.1 96 387.6C96 438.7 137.4 480.1 188.5 480.1C205 480.1 221.1 475.7 235.2 467.5C251 483.5 269.4 496.9 289.8 507C261.6 530.9 225.8 544.2 188.5 544.2C102.1 544.2 32 474.2 32 387.7C32 346.2 48.5 306.4 77.8 277.1L148.9 206C178.2 176.7 218 160.2 259.5 160.2C346.1 160.2 416 230.8 416 317.1C416 318.4 416 319.7 416 321C415.6 338.7 400.9 352.6 383.2 352.2C365.5 351.8 351.6 337.1 352 319.4C352 318.6 352 317.9 352 317.1C352 283.4 334 253.8 307.2 237.5z",transform:"matrix(1 0 0 1 -15 -15)"},drawopenpath:{width:70,height:70,path:"M33.21,85.65a7.31,7.31,0,0,1-2.59-.48c-8.16-3.11-9.27-19.8-9.88-41.3-.1-3.58-.19-6.68-.35-9-.15-2.1-.67-3.48-1.43-3.79-2.13-.88-7.91,2.32-12,5.86L3,32.38c1.87-1.64,11.55-9.66,18.27-6.9,2.13.87,4.75,3.14,5.17,9,.17,2.43.26,5.59.36,9.25a224.17,224.17,0,0,0,1.5,23.4c1.54,10.76,4,12.22,4.48,12.4.84.32,2.79-.46,5.76-3.59L43,80.07C41.53,81.57,37.68,85.64,33.21,85.65ZM74.81,69a11.34,11.34,0,0,0,6.09-6.72L87.26,44.5,74.72,32,56.9,38.35c-2.37.86-5.57,3.42-6.61,6L38.65,72.14l8.42,8.43ZM55,46.27a7.91,7.91,0,0,1,3.64-3.17l14.8-5.3,8,8L76.11,60.6l-.06.19a6.37,6.37,0,0,1-3,3.43L48.25,74.59,44.62,71Zm16.57,7.82A6.9,6.9,0,1,0,64.64,61,6.91,6.91,0,0,0,71.54,54.09Zm-4.05,0a2.85,2.85,0,1,1-2.85-2.85A2.86,2.86,0,0,1,67.49,54.09Zm-4.13,5.22L60.5,56.45,44.26,72.7l2.86,2.86ZM97.83,35.67,84.14,22l-8.57,8.57L89.26,44.24Zm-13.69-8,8,8-2.85,2.85-8-8Z",transform:"matrix(1 0 0 1 -15 -15)"},drawclosedpath:{width:90,height:90,path:"M88.41,21.12a26.56,26.56,0,0,0-36.18,0l-2.07,2-2.07-2a26.57,26.57,0,0,0-36.18,0,23.74,23.74,0,0,0,0,34.8L48,90.12a3.22,3.22,0,0,0,4.42,0l36-34.21a23.73,23.73,0,0,0,0-34.79ZM84,51.24,50.16,83.35,16.35,51.25a17.28,17.28,0,0,1,0-25.47,20,20,0,0,1,27.3,0l4.29,4.07a3.23,3.23,0,0,0,4.44,0l4.29-4.07a20,20,0,0,1,27.3,0,17.27,17.27,0,0,1,0,25.46ZM66.76,47.68h-33v6.91h33ZM53.35,35H46.44V68h6.91Z",transform:"matrix(1 0 0 1 -5 -5)"},lasso:{width:1031,height:1e3,path:"m1018 538c-36 207-290 336-568 286-277-48-473-256-436-463 10-57 36-108 76-151-13-66 11-137 68-183 34-28 75-41 114-42l-55-70 0 0c-2-1-3-2-4-3-10-14-8-34 5-45 14-11 34-8 45 4 1 1 2 3 2 5l0 0 113 140c16 11 31 24 45 40 4 3 6 7 8 11 48-3 100 0 151 9 278 48 473 255 436 462z m-624-379c-80 14-149 48-197 96 42 42 109 47 156 9 33-26 47-66 41-105z m-187-74c-19 16-33 37-39 60 50-32 109-55 174-68-42-25-95-24-135 8z m360 75c-34-7-69-9-102-8 8 62-16 128-68 170-73 59-175 54-244-5-9 20-16 40-20 61-28 159 121 317 333 354s407-60 434-217c28-159-121-318-333-355z",transform:"matrix(1 0 0 -1 0 850)"},selectbox:{width:1e3,height:1e3,path:"m0 850l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-285l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z",transform:"matrix(1 0 0 -1 0 850)"},drawline:{width:70,height:70,path:"M60.64,62.3a11.29,11.29,0,0,0,6.09-6.72l6.35-17.72L60.54,25.31l-17.82,6.4c-2.36.86-5.57,3.41-6.6,6L24.48,65.5l8.42,8.42ZM40.79,39.63a7.89,7.89,0,0,1,3.65-3.17l14.79-5.31,8,8L61.94,54l-.06.19a6.44,6.44,0,0,1-3,3.43L34.07,68l-3.62-3.63Zm16.57,7.81a6.9,6.9,0,1,0-6.89,6.9A6.9,6.9,0,0,0,57.36,47.44Zm-4,0a2.86,2.86,0,1,1-2.85-2.85A2.86,2.86,0,0,1,53.32,47.44Zm-4.13,5.22L46.33,49.8,30.08,66.05l2.86,2.86ZM83.65,29,70,15.34,61.4,23.9,75.09,37.59ZM70,21.06l8,8-2.84,2.85-8-8ZM87,80.49H10.67V87H87Z",transform:"matrix(1 0 0 1 -15 -15)"},drawrect:{width:80,height:80,path:"M78,22V79H21V22H78m9-9H12V88H87V13ZM68,46.22H31V54H68ZM53,32H45.22V69H53Z",transform:"matrix(1 0 0 1 -10 -10)"},drawcircle:{width:80,height:80,path:"M50,84.72C26.84,84.72,8,69.28,8,50.3S26.84,15.87,50,15.87,92,31.31,92,50.3,73.16,84.72,50,84.72Zm0-60.59c-18.6,0-33.74,11.74-33.74,26.17S31.4,76.46,50,76.46,83.74,64.72,83.74,50.3,68.6,24.13,50,24.13Zm17.15,22h-34v7.11h34Zm-13.8-13H46.24v34h7.11Z",transform:"matrix(1 0 0 1 -10 -10)"},eraseshape:{width:80,height:80,path:"M82.77,78H31.85L6,49.57,31.85,21.14H82.77a8.72,8.72,0,0,1,8.65,8.77V69.24A8.72,8.72,0,0,1,82.77,78ZM35.46,69.84H82.77a.57.57,0,0,0,.49-.6V29.91a.57.57,0,0,0-.49-.61H35.46L17,49.57Zm32.68-34.7-24,24,5,5,24-24Zm-19,.53-5,5,24,24,5-5Z",transform:"matrix(1 0 0 1 -10 -10)"},spikeline:{width:1e3,height:1e3,path:"M512 409c0-57-46-104-103-104-57 0-104 47-104 104 0 57 47 103 104 103 57 0 103-46 103-103z m-327-39l92 0 0 92-92 0z m-185 0l92 0 0 92-92 0z m370-186l92 0 0 93-92 0z m0-184l92 0 0 92-92 0z",transform:"matrix(1.5 0 0 -1.5 0 850)"},pencil:{width:1792,height:1792,path:"M491 1536l91-91-235-235-91 91v107h128v128h107zm523-928q0-22-22-22-10 0-17 7l-542 542q-7 7-7 17 0 22 22 22 10 0 17-7l542-542q7-7 7-17zm-54-192l416 416-832 832h-416v-416zm683 96q0 53-37 90l-166 166-416-416 166-165q36-38 90-38 53 0 91 38l235 234q37 39 37 91z",transform:"matrix(1 0 0 1 0 1)"},newplotlylogo:{name:"newplotlylogo",svg:[""," plotly-logomark"," "," "," "," "," "," "," "," "," "," "," "," "," ",""].join("")}}});var R7={};Kn(R7,{CIRCLE_SIDES:()=>jSt,SQRT2:()=>JSt,cos45:()=>ZSt,i000:()=>$St,i090:()=>WSt,i180:()=>YSt,i270:()=>XSt,sin45:()=>KSt});var jSt,$St,WSt,YSt,XSt,ZSt,KSt,JSt,z7=Ci(()=>{"use strict";jSt=32,$St=0,WSt=8,YSt=16,XSt=24,ZSt=Math.cos(Math.PI/4),KSt=Math.sin(Math.PI/4),JSt=Math.sqrt(2)});var B7=W((qOr,Fme)=>{"use strict";var QSt=it().strTranslate;function Dme(e,t){switch(e.type){case"log":return e.p2d(t);case"date":return e.p2r(t,0,e.calendar);default:return e.p2r(t)}}function eEt(e,t){switch(e.type){case"log":return e.d2p(t);case"date":return e.r2p(t,0,e.calendar);default:return e.r2p(t)}}function tEt(e){var t=e._id.charAt(0)==="y"?1:0;return function(r){return Dme(e,r[t])}}function rEt(e){return QSt(e.xaxis._offset,e.yaxis._offset)}Fme.exports={p2r:Dme,r2p:eEt,axValue:tEt,getTransform:rEt}});var Ny=W(Wg=>{"use strict";var iEt=OG(),Ime=(z7(),Pt(R7)),Hw=Ime.CIRCLE_SIDES,JH=Ime.SQRT2,Rme=B7(),Lme=Rme.p2r,Pme=Rme.r2p,nEt=[0,3,4,5,6,1,2],aEt=[0,3,4,1,2];Wg.writePaths=function(e){var t=e.length;if(!t)return"M0,0Z";for(var r="",i=0;i0&&l{"use strict";var zme=Fs(),Ume=m1(),oEt=Ume.drawMode,sEt=Ume.openMode,jw=(z7(),Pt(R7)),Bme=jw.i000,qme=jw.i090,Ome=jw.i180,Nme=jw.i270,lEt=jw.cos45,uEt=jw.sin45,Vme=B7(),O7=Vme.p2r,Uy=Vme.r2p,cEt=ky(),fEt=cEt.clearOutline,N7=Ny(),hEt=N7.readPaths,dEt=N7.writePaths,pEt=N7.ellipseOver,vEt=N7.fixDatesForPaths;function gEt(e,t){if(e.length){var r=e[0][0];if(r){var i=t.gd,n=t.isActiveShape,a=t.dragmode,o=(i.layout||{}).shapes||[];if(!oEt(a)&&n!==void 0){var s=i._fullLayout._activeShapeIndex;if(s{"use strict";var mEt=m1(),yEt=mEt.selectMode,xEt=ky(),bEt=xEt.clearOutline,QH=Ny(),_Et=QH.readPaths,wEt=QH.writePaths,TEt=QH.fixDatesForPaths;jme.exports=function(t,r){if(t.length){var i=t[0][0];if(i){var n=i.getAttribute("d"),a=r.gd,o=a._fullLayout.newselection,s=r.plotinfo,l=s.xaxis,u=s.yaxis,c=r.isActiveSelection,f=r.dragmode,h=(a.layout||{}).selections||[];if(!yEt(f)&&c!==void 0){var p=a._fullLayout._activeSelectionIndex;if(pkEt,paramIsX:()=>SEt,paramIsY:()=>EEt,paramRE:()=>MEt,segmentRE:()=>AEt});var AEt,MEt,SEt,EEt,kEt,jA=Ci(()=>{"use strict";AEt=/[MLHVQCTSZ][^MLHVQCTSZ]*/g,MEt=/[^\s,]+/g,SEt={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:{}},EEt={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:3},Z:{}},kEt={M:2,L:2,H:1,V:1,Q:4,C:6,T:2,S:4,Z:0}});var Gy=W(ac=>{"use strict";var x1=(jA(),Pt(HA)),$me=it(),Vy=Wi();ac.rangeToShapePosition=function(e){return e.type==="log"?e.r2d:function(t){return t}};ac.shapePositionToRange=function(e){return e.type==="log"?e.d2r:function(t){return t}};ac.decodeDate=function(e){return function(t){return t.replace&&(t=t.replace("_"," ")),e(t)}};ac.encodeDate=function(e){return function(t){return e(t).replace(" ","_")}};ac.extractPathCoords=function(e,t,r){var i=[],n=e.match(x1.segmentRE);return n.forEach(function(a){var o=t[a.charAt(0)].drawn;if(o!==void 0){var s=a.slice(1).match(x1.paramRE);if(!(!s||s.length{let s=o.charAt(0),l=n[s].drawn!==void 0;return a+(l?1:0)},0)};ac.getDataToPixel=function(e,t,r,i,n){var a=e._fullLayout._size,o;if(t)if(n==="domain")o=function(l){return t._length*(i?1-l:l)+t._offset};else{var s=ac.shapePositionToRange(t);o=function(l){var u=y1(t,r);return t._offset+t.r2p(s(l,!0))+u},t.type==="date"&&(o=ac.decodeDate(o))}else i?o=function(l){return a.t+a.h*(1-l)}:o=function(l){return a.l+a.w*l};return o};ac.getPixelToData=function(e,t,r,i){var n=e._fullLayout._size,a;if(t)if(i==="domain")a=function(s){var l=(s-t._offset)/t._length;return r?1-l:l};else{var o=ac.rangeToShapePosition(t);a=function(s){return o(t.p2r(s-t._offset))}}else r?a=function(s){return 1-(s-n.t)/n.h}:a=function(s){return(s-n.l)/n.w};return a};ac.roundPositionForSharpStrokeRendering=function(e,t){var r=Math.round(t%2)===1,i=Math.round(e);return r?i+.5:i};ac.makeShapesOptionsAndPlotinfo=function(e,t){var r=e._fullLayout.shapes[t]||{},i=e._fullLayout._plots[r.xref+r.yref],n=!!i;return n?i._hadPlotinfo=!0:(i={},r.xref&&r.xref!=="paper"&&(i.xaxis=e._fullLayout[r.xref+"axis"]),r.yref&&r.yref!=="paper"&&(i.yaxis=e._fullLayout[r.yref+"axis"])),i.xsizemode=r.xsizemode,i.ysizemode=r.ysizemode,i.xanchor=r.xanchor,i.yanchor=r.yanchor,{options:r,plotinfo:i}};ac.makeSelectionsOptionsAndPlotinfo=function(e,t){var r=e._fullLayout.selections[t]||{},i=e._fullLayout._plots[r.xref+r.yref],n=!!i;return n?i._hadPlotinfo=!0:(i={},r.xref&&(i.xaxis=e._fullLayout[r.xref+"axis"]),r.yref&&(i.yaxis=e._fullLayout[r.yref+"axis"])),{options:r,plotinfo:i}};ac.getPathString=function(e,t){let r=t.type,i=Vy.getRefType(t.xref),n=Vy.getRefType(t.yref),a=e._fullLayout._size;var o,s,l,u,c,f,h,p,d,v,m,g;function w(E,M,C,k){var D;if(E)if(M==="domain")k?D=function(L){return E._offset+E._length*(1-L)}:D=function(L){return E._offset+E._length*L};else{let L=ac.shapePositionToRange(E);D=function(P){return E._offset+E.r2p(L(P,!0))},C==="path"&&E.type==="date"&&(D=ac.decodeDate(D))}else k?D=function(L){return a.t+a.h*(1-L)}:D=function(L){return a.l+a.w*L};return D}if(i==="array"?(h=[],o=t.xref.map(function(E){return Vy.getFromId(e,E)}),h=t.xref.map(function(E,M){return w(o[M],Vy.getRefType(E),r,!1)})):(o=Vy.getFromId(e,t.xref),h=w(o,i,r,!1)),n==="array"?(p=[],s=t.yref.map(function(E){return Vy.getFromId(e,E)}),p=t.yref.map(function(E,M){return w(s[M],Vy.getRefType(E),r,!0)})):(s=Vy.getFromId(e,t.yref),p=w(s,n,r,!0)),r==="path")return CEt(t,h,p);if(i==="array")l=y1(o[0],t.x0shift),u=y1(o[1],t.x1shift),d=h[0](t.x0)+l,v=h[1](t.x1)+u;else if(l=y1(o,t.x0shift),u=y1(o,t.x1shift),t.xsizemode==="pixel"){let E=h(t.xanchor);d=E+t.x0+l,v=E+t.x1+u}else d=h(t.x0)+l,v=h(t.x1)+u;if(n==="array")c=y1(s[0],t.y0shift),f=y1(s[1],t.y1shift),m=p[0](t.y0)+c,g=p[1](t.y1)+f;else if(c=y1(s,t.y0shift),f=y1(s,t.y1shift),t.ysizemode==="pixel"){let E=p(t.yanchor);m=E-t.y0+c,g=E-t.y1+f}else m=p(t.y0)+c,g=p(t.y1)+f;if(r==="line")return"M"+d+","+m+"L"+v+","+g;if(r==="rect")return"M"+d+","+m+"H"+v+"V"+g+"H"+d+"Z";var _=(d+v)/2,b=(m+g)/2,S=Math.abs(_-d),x=Math.abs(b-m),T="A"+S+","+x,A=_+S+","+b,y=_+","+(b-x);return"M"+A+T+" 0 1,1 "+y+T+" 0 0,1 "+A+"Z"};function CEt(e,t,r){let i=e.path,n=e.xsizemode,a=e.ysizemode,o=e.xanchor,s=e.yanchor,l=Array.isArray(e.xref),u=Array.isArray(e.yref);var c=0,f=0;return i.replace(x1.segmentRE,function(h){var p=0,d=h.charAt(0),v=x1.paramIsX[d],m=x1.paramIsY[d],g=x1.numParams[d];let w=v.drawn!==void 0,_=m.drawn!==void 0,b=l?t[c]:t,S=u?r[f]:r;var x=h.slice(1).replace(x1.paramRE,function(T){return v[p]?n==="pixel"?T=b(o)+Number(T):T=b(T):m[p]&&(a==="pixel"?T=S(s)-Number(T):T=S(T)),p++,p>g&&(T="X"),T});return p>g&&(x=x.replace(/[\s,]*X.*/,""),$me.log("Ignoring extra params in segment "+h)),w&&c++,_&&f++,d+x})}ac.getPixelShift=y1;function y1(e,t){t=t||0;var r=0;return t&&e&&(e.type==="category"||e.type==="multicategory")&&(r=(e.r2p(1)-e.r2p(0))*t),r}});var tj=W((GOr,Xme)=>{"use strict";var DEt=it(),b1=Wi(),Wme=ho(),Yme=en(),FEt=Ny().readPaths,Ab=Gy(),LEt=Ab.getPathString,$A=mD(),PEt=(Xl(),Pt(Yl)).FROM_TL;Xme.exports=function(t,r,i,n){if(n.selectAll(".shape-label").remove(),!!(i.label.text||i.label.texttemplate)){var a;if(i.label.texttemplate){var o={};if(i.type!=="path"){var s=b1.getFromId(t,i.xref),l=b1.getFromId(t,i.yref);let O=Array.isArray(i.xref),$=Array.isArray(i.yref);for(var u in $A){var c=typeof $A[u]=="function",f=!O||$A.simpleXVariables.includes(u),h=!$||$A.simpleYVariables.includes(u);if(c&&f&&h){var p=$A[u](i,s,l);p!==void 0&&(o[u]=p)}}}a=DEt.texttemplateStringForShapes({data:[o],fallback:i.label.texttemplatefallback,locale:t._fullLayout._d3locale,template:i.label.texttemplate})}else a=i.label.text;var d={"data-index":r},v=i.label.font,m={"data-notex":1},g=n.append("g").attr(d).classed("shape-label",!0),w=g.append("text").attr(m).classed("shape-label-text",!0).text(a),_,b,S,x;if(i.path){var T=LEt(t,i),A=FEt(T,t);_=1/0,S=1/0,b=-1/0,x=-1/0;for(var y=0;yAb.getDataToPixel(t,ue,te,!1,ge)(J),H=(J,te,ue,ge)=>Ab.getDataToPixel(t,ue,te,!0,ge)(J);if(i.xsizemode==="pixel"){let J=G(i.xanchor,void 0,Y,Q),te=Ab.getPixelShift(Y,i.x0shift),ue=Ab.getPixelShift(Y,i.x1shift);_=J+i.x0+te,b=J+i.x1+ue}else _=G(i.x0,i.x0shift,Y,Q),b=G(i.x1,i.x1shift,K,U);if(i.ysizemode==="pixel"){let J=H(i.yanchor,void 0,j,V),te=Ab.getPixelShift(j,i.y0shift),ue=Ab.getPixelShift(j,i.y1shift);S=J-i.y0+te,x=J-i.y1+ue}else S=H(i.y0,i.y0shift,j,V),x=H(i.y1,i.y1shift,q,X)}var L=i.label.textangle;L==="auto"&&(i.type==="line"?L=IEt(_,S,b,x):L=0),w.call(function(O){return O.call(Yme.font,v).attr({}),Wme.convertToTspans(O,t),O});var P=Yme.bBox(w.node()),R=REt(_,S,b,x,i,L,P),F=R.textx,I=R.texty,B=R.xanchor;w.attr({"text-anchor":{left:"start",center:"middle",right:"end"}[B],y:I,x:F,transform:"rotate("+L+","+F+","+I+")"}).call(Wme.positionText,F,I)}};function IEt(e,t,r,i){var n,a;return a=Math.abs(r-e),r>=e?n=t-i:n=i-t,-180/Math.PI*Math.atan2(n,a)}function REt(e,t,r,i,n,a,o){var s=n.label.textposition,l=n.label.textangle,u=n.label.padding,c=n.type,f=Math.PI/180*a,h=Math.sin(f),p=Math.cos(f),d=n.label.xanchor,v=n.label.yanchor,m,g,w,_;if(c==="line"){s==="start"?(m=e,g=t):s==="end"?(m=r,g=i):(m=(e+r)/2,g=(t+i)/2),d==="auto"&&(s==="start"?l==="auto"?r>e?d="left":re?d="right":re?d="right":re?d="left":r{"use strict";var zEt=it(),BEt=zEt.strTranslate,Zme=Mf(),Qme=m1(),qEt=Qme.drawMode,eye=Qme.selectMode,tye=xi(),Kme=ai(),G7=(z7(),Pt(R7)),OEt=G7.i000,NEt=G7.i090,UEt=G7.i180,VEt=G7.i270,GEt=ky(),rye=GEt.clearOutlineControllers,ij=Ny(),V7=ij.pointsOnRectangle,rj=ij.pointsOnEllipse,HEt=ij.writePaths,jEt=U7().newShapes,$Et=U7().createShapeObj,WEt=ej(),YEt=tj();iye.exports=function e(t,r,i,n){n||(n=0);var a=i.gd;function o(){e(t,r,i,n++),(rj(t[0])||i.hasText)&&s({redrawing:!0})}function s(R){var F={};i.isActiveShape!==void 0&&(i.isActiveShape=!1,F=jEt(r,i)),i.isActiveSelection!==void 0&&(i.isActiveSelection=!1,F=WEt(r,i),a._fullLayout._reselect=!0),Object.keys(F).length&&tye.call((R||{}).redrawing?"relayout":"_guiRelayout",a,F)}var l=a._fullLayout,u=l._zoomlayer,c=i.dragmode,f=qEt(c),h=eye(c);(f||h)&&(a._fullLayout._outlining=!0),rye(a),r.attr("d",HEt(t));var p,d,v,m,g;if(!n&&(i.isActiveShape||i.isActiveSelection)){g=XEt([],t);var w=u.append("g").attr("class","outline-controllers");E(w),P()}if(f&&i.hasText){var _=u.select(".label-temp"),b=$Et(r,i,i.dragmode);YEt(a,"label-temp",b,_)}function S(R){v=+R.srcElement.getAttribute("data-i"),m=+R.srcElement.getAttribute("data-j"),p[v][m].moveFn=x}function x(R,F){if(t.length){var I=g[v][m][1],B=g[v][m][2],O=t[v],$=O.length;if(V7(O)){var Y=R,K=F;if(i.isActiveSelection){var j=Jme(O,m);j[1]===O[m][1]?K=0:Y=0}for(var q=0;q<$;q++)if(q!==m){var Q=O[q];Q[1]===O[m][1]&&(Q[1]=I+Y),Q[2]===O[m][2]&&(Q[2]=B+K)}if(O[m][1]=I+Y,O[m][2]=B+K,!V7(O))for(var U=0;U<$;U++)for(var V=0;V1&&!(R.length===2&&R[1][0]==="Z")&&(m===0&&(R[0][0]="M"),t[v]=R,o(),s())}}function y(R,F){if(R===2){v=+F.srcElement.getAttribute("data-i"),m=+F.srcElement.getAttribute("data-j");var I=t[v];!V7(I)&&!rj(I)&&A()}}function E(R){p=[];for(var F=0;F{"use strict";var KEt=gi(),uye=xi(),aj=it(),Mb=Wi(),JEt=Ny().readPaths,QEt=H7(),$7=tj(),cye=ky().clearOutlineControllers,nj=ai(),W7=en(),ekt=Ia().arrayEditor,nye=Mf(),aye=Ls(),oye=$p(),Sb=(jA(),Pt(HA)),Uh=Gy(),oj=Uh.getPathString;dye.exports={draw:sj,drawOne:fye,eraseActiveShape:akt,drawLabel:$7};function sj(e){var t=e._fullLayout;t._shapeUpperLayer.selectAll("path").remove(),t._shapeLowerLayer.selectAll("path").remove(),t._shapeUpperLayer.selectAll("text").remove(),t._shapeLowerLayer.selectAll("text").remove();for(var r in t._plots){var i=t._plots[r].shapelayer;i&&(i.selectAll("path").remove(),i.selectAll("text").remove())}for(var n=0;n{if(!e._dragging&&e._fullLayout.hoveranywhere){let o=n(a);o&&aye.hover(e,o,r.id)}}),i.addEventListener("click",a=>{if(!e._dragged&&e._fullLayout.clickanywhere){let o=n(a);o&&aye.click(e,o,r.id)}})}function hye(e,t,r){let i=r.xref,n=r.yref;if(Array.isArray(i)||Array.isArray(n)){let a="clip"+t._fullLayout._uid+"shape"+r._index,o=rkt(t,i,n);aj.ensureSingleById(t._fullLayout._clips,"clipPath",a,function(s){s.append("rect")}).select("rect").attr(o),W7.setClipUrl(e,a,t)}else{let a=(i+n).replace(/paper/g,"").replace(/[xyz][0-9]* *domain/g,"");W7.setClipUrl(e,a?"clip"+t._fullLayout._uid+a:null,t)}}function rkt(e,t,r){let i=e._fullLayout._size;function n(s,l){let u=(Array.isArray(s)?s:[s]).map(h=>Mb.getFromId(e,h)).filter(Boolean);if(!u.length)return l?[i.t,i.t+i.h]:[i.l,i.l+i.w];let c=u.map(function(h){return h._offset}),f=u.map(function(h){return h._offset+h._length});return[Math.min(...c),Math.max(...f)]}let a=n(t,!1),o=n(r,!0);return{x:a[0],y:o[0],width:a[1]-a[0],height:o[1]-o[0]}}function ikt(e,t,r,i,n,a){var o=10,s=10,l=r.xsizemode==="pixel",u=r.ysizemode==="pixel",c=r.type==="line",f=r.type==="path",h=a.modifyItem,p,d,v,m,g,w,_,b,S,x,T,A,y,E,M,C=KEt.select(t.node().parentNode),k=Mb.getFromId(e,r.xref),D=Mb.getRefType(r.xref),L=Mb.getFromId(e,r.yref),P=Mb.getRefType(r.yref),R=r.x0shift,F=r.x1shift,I=r.y0shift,B=r.y1shift,O=function(he,oe){var Me=Uh.getDataToPixel(e,k,oe,!1,D);return Me(he)},$=function(he,oe){var Me=Uh.getDataToPixel(e,L,oe,!0,P);return Me(he)},Y=Uh.getPixelToData(e,k,!1,D),K=Uh.getPixelToData(e,L,!0,P),j=U(),q={element:j.node(),gd:e,prepFn:G,doneFn:H,clickFn:J},Q;nye.init(q),j.node().onmousemove=X;function U(){return c?V():t}function V(){var he=10,oe=Math.max(r.line.width,he),Me=n.append("g").attr("data-index",i).attr("drag-helper",!0);Me.append("path").attr("d",t.attr("d")).style({cursor:"move","stroke-width":oe,"stroke-opacity":"0"});var ye={"fill-opacity":"0"},ce=Math.max(oe/2,he);return Me.append("circle").attr({"data-line-point":"start-point",cx:l?O(r.xanchor)+r.x0:O(r.x0,R),cy:u?$(r.yanchor)-r.y0:$(r.y0,I),r:ce}).style(ye).classed("cursor-grab",!0),Me.append("circle").attr({"data-line-point":"end-point",cx:l?O(r.xanchor)+r.x1:O(r.x1,F),cy:u?$(r.yanchor)-r.y1:$(r.y1,B),r:ce}).style(ye).classed("cursor-grab",!0),Me}function X(he){if(j7(e)){Q=null;return}if(c)he.target.tagName==="path"?Q="move":Q=he.target.attributes["data-line-point"].value==="start-point"?"resize-over-start-point":"resize-over-end-point";else{var oe=q.element.getBoundingClientRect(),Me=oe.right-oe.left,ye=oe.bottom-oe.top,ce=he.clientX-oe.left,ee=he.clientY-oe.top,ae=!f&&Me>o&&ye>s&&!he.shiftKey?nye.getCursor(ce/Me,1-ee/ye):"move";oye(t,ae),Q=ae.split("-")[0]}}function G(he){j7(e)||(l&&(g=O(r.xanchor)),u&&(w=$(r.yanchor)),r.type==="path"?M=r.path:(p=l?r.x0:O(r.x0),d=u?r.y0:$(r.y0),v=l?r.x1:O(r.x1),m=u?r.y1:$(r.y1)),pm?(_=d,T="y0",b=m,A="y1"):(_=m,T="y1",b=d,A="y0"),X(he),ge(n,r),_e(t,r,e),q.moveFn=Q==="move"?te:ue,q.altKey=he.altKey)}function H(){j7(e)||(oye(t),ke(n),hye(t,e,r),uye.call("_guiRelayout",e,a.getUpdateObj()))}function J(){j7(e)||ke(n)}function te(he,oe){if(r.type==="path"){var Me=function(ee){return ee},ye=Me,ce=Me;l?h("xanchor",r.xanchor=Y(g+he)):(ye=function(ae){return Y(O(ae)+he)},k&&k.type==="date"&&(ye=Uh.encodeDate(ye))),u?h("yanchor",r.yanchor=K(w+oe)):(ce=function(ae){return K($(ae)+oe)},L&&L.type==="date"&&(ce=Uh.encodeDate(ce))),h("path",r.path=sye(M,ye,ce))}else l?h("xanchor",r.xanchor=Y(g+he)):(h("x0",r.x0=Y(p+he)),h("x1",r.x1=Y(v+he))),u?h("yanchor",r.yanchor=K(w+oe)):(h("y0",r.y0=K(d+oe)),h("y1",r.y1=K(m+oe)));t.attr("d",oj(e,r)),ge(n,r),$7(e,i,r,C)}function ue(he,oe){if(f){var Me=function(et){return et},ye=Me,ce=Me;l?h("xanchor",r.xanchor=Y(g+he)):(ye=function(bt){return Y(O(bt)+he)},k&&k.type==="date"&&(ye=Uh.encodeDate(ye))),u?h("yanchor",r.yanchor=K(w+oe)):(ce=function(bt){return K($(bt)+oe)},L&&L.type==="date"&&(ce=Uh.encodeDate(ce))),h("path",r.path=sye(M,ye,ce))}else if(c){if(Q==="resize-over-start-point"){var ee=p+he,ae=u?d-oe:d+oe;h("x0",r.x0=l?ee:Y(ee)),h("y0",r.y0=u?ae:K(ae))}else if(Q==="resize-over-end-point"){var xe=v+he,re=u?m-oe:m+oe;h("x1",r.x1=l?xe:Y(xe)),h("y1",r.y1=u?re:K(re))}}else{var pe=function(et){return Q.indexOf(et)!==-1},we=pe("n"),Fe=pe("s"),Ee=pe("w"),Ce=pe("e"),be=we?_+oe:_,Ie=Fe?b+oe:b,Oe=Ee?S+he:S,Qe=Ce?x+he:x;u&&(we&&(be=_-oe),Fe&&(Ie=b-oe)),(!u&&Ie-be>s||u&&be-Ie>s)&&(h(T,r[T]=u?be:K(be)),h(A,r[A]=u?Ie:K(Ie))),Qe-Oe>o&&(h(y,r[y]=l?Oe:Y(Oe)),h(E,r[E]=l?Qe:Y(Qe)))}t.attr("d",oj(e,r)),ge(n,r),$7(e,i,r,C)}function ge(he,oe){(l||u)&&Me();function Me(){var ye=oe.type!=="path",ce=he.selectAll(".visual-cue").data([0]),ee=1;ce.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":ee}).classed("visual-cue",!0);var ae=O(l?oe.xanchor:aj.midRange(ye?[oe.x0,oe.x1]:Uh.extractPathCoords(oe.path,Sb.paramIsX))),xe=$(u?oe.yanchor:aj.midRange(ye?[oe.y0,oe.y1]:Uh.extractPathCoords(oe.path,Sb.paramIsY)));if(ae=Uh.roundPositionForSharpStrokeRendering(ae,ee),xe=Uh.roundPositionForSharpStrokeRendering(xe,ee),l&&u){var re="M"+(ae-1-ee)+","+(xe-1-ee)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";ce.attr("d",re)}else if(l){var pe="M"+(ae-1-ee)+","+(xe-9-ee)+"v18 h2 v-18 Z";ce.attr("d",pe)}else{var we="M"+(ae-9-ee)+","+(xe-1-ee)+"h18 v2 h-18 Z";ce.attr("d",we)}}}function ke(he){he.selectAll(".visual-cue").remove()}function _e(he,oe,Me){var ye=oe.xref,ce=oe.yref,ee=Mb.getFromId(Me,ye),ae=Mb.getFromId(Me,ce),xe="";ye!=="paper"&&!ee.autorange&&(xe+=ye),ce!=="paper"&&!ae.autorange&&(xe+=ce),W7.setClipUrl(he,xe?"clip"+Me._fullLayout._uid+xe:null,Me)}}function sye(e,t,r){return e.replace(Sb.segmentRE,function(i){var n=0,a=i.charAt(0),o=Sb.paramIsX[a],s=Sb.paramIsY[a],l=Sb.numParams[a],u=i.slice(1).replace(Sb.paramRE,function(c){return n>=l||(o[n]?c=t(c):s[n]&&(c=r(c)),n++),c});return a+u})}function nkt(e,t){if(Y7(e)){var r=t.node(),i=+r.getAttribute("data-index");if(i>=0){if(i===e._fullLayout._activeShapeIndex){lye(e);return}e._fullLayout._activeShapeIndex=i,e._fullLayout._deactivateShape=lye,sj(e)}}}function lye(e){if(Y7(e)){var t=e._fullLayout._activeShapeIndex;t>=0&&(cye(e),delete e._fullLayout._activeShapeIndex,sj(e))}}function akt(e){if(Y7(e)){cye(e);var t=e._fullLayout._activeShapeIndex,r=(e.layout||{}).shapes||[];if(t{"use strict";var $w=it()._,okt=function(e){return{DIALOG_TITLE:$w(e,"Share chart"),DIALOG_MESSAGE_CLOUD:$w(e,"This chart will be uploaded to {Plotly Cloud} to create a sharing link. Only you can see it until you change its visibility."),DIALOG_MESSAGE_CLOUD_ACCOUNT:$w(e,"If you don't have a Plotly Cloud account yet, you'll have a chance to create one."),DIALOG_MESSAGE_OTHER:$w(e,"This chart will be sent to {serverUrl}."),DIALOG_CANCEL:$w(e,"Cancel"),DIALOG_CONFIRM:$w(e,"Share")}};pye.exports=okt});var yye=W((WOr,mye)=>{"use strict";var gye=gi(),{dfltConfig:skt}=my(),lkt=vye(),ukt=(e,t,r,i,n)=>{let a=lkt(e),o=t.append("div").classed("plotly-cloud-dialog-box",!0);if(o.append("div").classed("plotly-cloud-dialog-title",!0).text(a.DIALOG_TITLE),r===skt.plotlyServerURL){let l=o.append("div").classed("plotly-cloud-dialog-message",!0),u=new URL(r).origin,c=a.DIALOG_MESSAGE_CLOUD.split(/(\{|\})/),f=c[0],h=c[2],p=c[4];l.append("span").text(f),l.append("a").classed("plotly-cloud-dialog-message--hostname",!0).attr("href",u).attr("target","_blank").text(h),l.append("span").text(p),l.append("div").classed("plotly-cloud-dialog-message--account",!0).text(a.DIALOG_MESSAGE_CLOUD_ACCOUNT)}else{let l=new URL(r),u=l.hostname,c=l.origin,f=a.DIALOG_MESSAGE_OTHER.split(/(\{|\})/),h=f[0],p=f[4],d=o.append("div").classed("plotly-cloud-dialog-message",!0);d.append("span").text(h),d.append("a").classed("plotly-cloud-dialog-message--hostname",!0).attr("href",c).attr("target","_blank").text(u),d.append("span").text(p)}let s=o.append("div").classed("plotly-cloud-dialog-buttons",!0);s.append("button").classed("plotly-cloud-dialog-btn",!0).classed("plotly-cloud-dialog-btn--cancel",!0).text(a.DIALOG_CANCEL).on("click",n),s.append("button").classed("plotly-cloud-dialog-btn",!0).classed("plotly-cloud-dialog-btn--confirm",!0).text(a.DIALOG_CONFIRM).on("click",i)},ckt=(e,t,r)=>{let i=gye.select(e._fullLayout._paperdiv.node());i.selectAll(".plotly-cloud-dialog").remove();let n=i.append("div").classed("plotly-cloud-dialog",!0),a=()=>{n.remove(),document.removeEventListener("keydown",o)},o=s=>{(s.key==="Escape"||s.keyCode===27)&&a()};document.addEventListener("keydown",o),n.on("click",()=>{gye.event.target===n.node()&&a()}),ukt(e,n,t,()=>{a(),r()},a)};mye.exports=ckt});var cj=W((YOr,Mye)=>{"use strict";var M0=xi(),fkt=Qo(),bye=Fs(),Ja=I7(),hkt=X7().eraseActiveShape,dkt=yye(),Ww=it(),Ea=Ww._,Ya={};Mye.exports=Ya;Ya.toImage={name:"toImage",title:function(e){var t=e._context.toImageButtonOptions||{},r=t.format||"png";return r==="png"?Ea(e,"Download plot as a PNG"):Ea(e,"Download plot")},icon:Ja.camera,click:function(e){var t=e._context.toImageButtonOptions,r={format:t.format||"png"};Ww.notifier(Ea(e,"Preparing image - this may take a few seconds"),"long",e),["filename","width","height","scale"].forEach(function(i){i in t&&(r[i]=t[i])}),M0.call("downloadImage",e,r).then(function(i){Ww.notifier(Ea(e,"Image download succeeded")+" - "+i,"long",e)}).catch(function(){Ww.notifier(Ea(e,"Sorry, there was a problem downloading your image!"),"long",e)})}};Ya.downloadJson={name:"downloadJson",title:function(e){return Ea(e,"Download plot as JSON")},icon:Ja.curlybraces,click:function(e){M0.call("downloadImage",e,{format:"full-json"}).then(function(t){Ww.notifier(Ea(e,"JSON download succeeded")+" - "+t,"long",e)}).catch(function(){Ww.notifier(Ea(e,"Sorry, there was a problem downloading your JSON file!"),"long",e)})}};Ya.sendChartToCloud={name:"sendChartToCloud",title:function(e){return Ea(e,"Share chart...")},icon:Ja.cloudupload,click:function(e){var t=(window.PLOTLYENV||{}).BASE_URL||e._context.plotlyServerURL;if(!t){console.error("No destination URL provided (plotlyServerURL is empty)");return}var r;try{r=new URL(t)}catch(n){console.error("Invalid plotlyServerURL: "+t);return}let i=["http:","https:"];if(!i.includes(r.protocol)){console.error(`Invalid protocol '${r.protocol}' in plotlyServerURL '${t}'. Must be one of: ${i.join(", ")}`);return}dkt(e,t,function(){fkt.sendDataToCloud(e,t)})}};Ya.zoom2d={name:"zoom2d",_cat:"zoom",title:function(e){return Ea(e,"Zoom")},attr:"dragmode",val:"zoom",icon:Ja.zoombox,click:Ef};Ya.pan2d={name:"pan2d",_cat:"pan",title:function(e){return Ea(e,"Pan")},attr:"dragmode",val:"pan",icon:Ja.pan,click:Ef};Ya.select2d={name:"select2d",_cat:"select",title:function(e){return Ea(e,"Box Select")},attr:"dragmode",val:"select",icon:Ja.selectbox,click:Ef};Ya.lasso2d={name:"lasso2d",_cat:"lasso",title:function(e){return Ea(e,"Lasso Select")},attr:"dragmode",val:"lasso",icon:Ja.lasso,click:Ef};Ya.drawclosedpath={name:"drawclosedpath",title:function(e){return Ea(e,"Draw closed freeform")},attr:"dragmode",val:"drawclosedpath",icon:Ja.drawclosedpath,click:Ef};Ya.drawopenpath={name:"drawopenpath",title:function(e){return Ea(e,"Draw open freeform")},attr:"dragmode",val:"drawopenpath",icon:Ja.drawopenpath,click:Ef};Ya.drawline={name:"drawline",title:function(e){return Ea(e,"Draw line")},attr:"dragmode",val:"drawline",icon:Ja.drawline,click:Ef};Ya.drawrect={name:"drawrect",title:function(e){return Ea(e,"Draw rectangle")},attr:"dragmode",val:"drawrect",icon:Ja.drawrect,click:Ef};Ya.drawcircle={name:"drawcircle",title:function(e){return Ea(e,"Draw circle")},attr:"dragmode",val:"drawcircle",icon:Ja.drawcircle,click:Ef};Ya.eraseshape={name:"eraseshape",title:function(e){return Ea(e,"Erase active shape")},icon:Ja.eraseshape,click:hkt};Ya.zoomIn2d={name:"zoomIn2d",_cat:"zoomin",title:function(e){return Ea(e,"Zoom in")},attr:"zoom",val:"in",icon:Ja.zoom_plus,click:Ef};Ya.zoomOut2d={name:"zoomOut2d",_cat:"zoomout",title:function(e){return Ea(e,"Zoom out")},attr:"zoom",val:"out",icon:Ja.zoom_minus,click:Ef};Ya.autoScale2d={name:"autoScale2d",_cat:"autoscale",title:function(e){return Ea(e,"Autoscale")},attr:"zoom",val:"auto",icon:Ja.autoscale,click:Ef};Ya.resetScale2d={name:"resetScale2d",_cat:"resetscale",title:function(e){return Ea(e,"Reset axes")},attr:"zoom",val:"reset",icon:Ja.home,click:Ef};Ya.hoverClosestCartesian={name:"hoverClosestCartesian",_cat:"hoverclosest",title:function(e){return Ea(e,"Show closest data on hover")},attr:"hovermode",val:"closest",icon:Ja.tooltip_basic,gravity:"ne",click:Ef};Ya.hoverCompareCartesian={name:"hoverCompareCartesian",_cat:"hoverCompare",title:function(e){return Ea(e,"Compare data on hover")},attr:"hovermode",val:function(e){return e._fullLayout._isHoriz?"y":"x"},icon:Ja.tooltip_compare,gravity:"ne",click:Ef};function Ef(e,t){var r=t.currentTarget,i=r.getAttribute("data-attr"),n=r.getAttribute("data-val")||!0,a=e._fullLayout,o={},s=bye.list(e,null,!0),l=a._cartesianSpikesEnabled,u,c;if(i==="zoom"){var f=n==="in"?.5:2,h=(1+f)/2,p=(1-f)/2,d,v;for(c=0;c-x),[v,m]=f.invert(c.midPt),{minscale:g}=u.projection,w=(s=u.projection.maxscale)!=null?s:1/0,_=Math.min(g,w),b=Math.max(g,w),S=n==="in"?xye*h:1/xye*h;S>b?S=b:S<_&&(S=_),S!==h&&M0.call("_guiRelayout",e,{[l+".projection.scale"]:S,[l+".projection.rotation.lon"]:p,[l+".projection.rotation.lat"]:d,[l+".center.lon"]:v,[l+".center.lat"]:m,[l+".fitbounds"]:!1})}}i==="reset"&&Z7(e,"geo")}Ya.hoverClosestPie={name:"hoverClosestPie",_cat:"hoverclosest",title:function(e){return Ea(e,"Toggle show closest data on hover")},attr:"hovermode",val:"closest",icon:Ja.tooltip_basic,gravity:"ne",click:Tye};function wye(e){var t=e._fullLayout;return t.hovermode?!1:t._has("cartesian")?t._isHoriz?"y":"x":"closest"}function Tye(e){var t=wye(e);M0.call("_guiRelayout",e,"hovermode",t)}Ya.resetViewSankey={name:"resetSankeyGroup",title:function(e){return Ea(e,"Reset view")},icon:Ja.home,click:function(e){for(var t={"node.groups":[],"node.x":[],"node.y":[]},r=0;r{"use strict";var Sye=cj(),mkt=Object.keys(Sye),Eye=["drawline","drawopenpath","drawclosedpath","drawcircle","drawrect","eraseshape"],kye=["v1hovermode","hoverclosest","hovercompare","togglehover","togglespikelines"].concat(Eye,["downloadJson"]),Yw=[],ykt=function(e){if(kye.indexOf(e._cat||e.name)===-1){var t=e.name,r=(e._cat||e.name).toLowerCase();Yw.indexOf(t)===-1&&Yw.push(t),Yw.indexOf(r)===-1&&Yw.push(r)}};mkt.forEach(function(e){ykt(Sye[e])});Yw.sort();Cye.exports={DRAW_MODES:Eye,backButtons:kye,foreButtons:Yw}});var dj={};Kn(dj,{default:()=>bkt});var hj,xkt,bkt,pj=Ci(()=>{"use strict";hj=i1(fj()),xkt={editType:"modebar",orientation:{valType:"enumerated",values:["v","h"],dflt:"h",editType:"modebar",description:"Sets the orientation of the modebar."},bgcolor:{valType:"color",editType:"modebar",description:"Sets the background color of the modebar."},color:{valType:"color",editType:"modebar",description:"Sets the color of the icons in the modebar."},activecolor:{valType:"color",editType:"modebar",description:"Sets the color of the active or hovered on icons in the modebar."},uirevision:{valType:"any",editType:"none",description:["Controls persistence of user-driven changes related to the modebar,","including `hovermode`, `dragmode`, and `showspikes` at both the","root level and inside subplots. Defaults to `layout.uirevision`."].join(" ")},add:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar",description:["Determines which predefined modebar buttons to add.","Please note that these buttons will only be shown if they are","compatible with all trace types used in a graph.","Similar to `config.modeBarButtonsToAdd` option.",`This may include *${hj.default.backButtons.join("*, *")}*.`].join(" ")},remove:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar",description:["Determines which predefined modebar buttons to remove.","Similar to `config.modeBarButtonsToRemove` option.",`This may include *${hj.default.foreButtons.join("*, *")}*.`].join(" ")}},bkt=xkt});var Fye=W((ZOr,Dye)=>{"use strict";var _kt=it(),WA=ai(),wkt=Ia(),Tkt=(pj(),Pt(dj)).default;Dye.exports=function(t,r){var i=t.modebar||{},n=wkt.newContainer(r,"modebar");function a(s,l){return _kt.coerce(i,n,Tkt,s,l)}a("orientation"),a("bgcolor",WA.addOpacity(r.paper_bgcolor,.5));var o=WA.contrast(WA.rgb(r.modebar.bgcolor));a("color",WA.addOpacity(o,.3)),a("activecolor",WA.addOpacity(o,.7)),a("uirevision",r.uirevision),a("add"),a("remove")}});var Rye=W((KOr,Iye)=>{"use strict";var vj=gi(),Akt=un(),J7=it(),Lye=I7(),Mkt=OT().version,Skt=new DOMParser;function Pye(e){this.container=e.container,this.element=document.createElement("div"),this.update(e.graphInfo,e.buttons),this.container.appendChild(this.element)}var _1=Pye.prototype;_1.update=function(e,t){this.graphInfo=e;var r=this.graphInfo._context,i=this.graphInfo._fullLayout,n="modebar-"+i._uid;this.element.setAttribute("id",n),this.element.setAttribute("role","toolbar"),this._uid=n,this.element.className="modebar modebar--custom",r.displayModeBar==="hover"&&(this.element.className+=" modebar--hover ease-bg"),i.modebar.orientation==="v"&&(this.element.className+=" vertical",t=t.reverse());var a=i.modebar,o="#"+n+" .modebar-group";document.querySelectorAll(o).forEach(function(f){f.style.backgroundColor=a.bgcolor});var s=!this.hasButtons(t),l=this.hasLogo!==r.displaylogo,u=this.locale!==r.locale;if(this.locale=r.locale,(s||l||u)&&(this.removeAllButtons(),this.updateButtons(t),r.watermark||r.displaylogo)){var c=this.getLogo();r.watermark&&(c.className=c.className+" watermark"),i.modebar.orientation==="v"?this.element.insertBefore(c,this.element.childNodes[0]):this.element.appendChild(c),this.hasLogo=!0}this.updateActiveButton(),J7.setStyleOnHover("#"+n+" .modebar-btn",".active",".icon path","fill: "+a.activecolor,"fill: "+a.color,this.element)};_1.updateButtons=function(e){var t=this;this.buttons=e,this.buttonElements=[],this.buttonsNames=[],this.buttons.forEach(function(r){var i=t.createGroup();r.forEach(function(n){var a=n.name;if(!a)throw new Error("must provide button 'name' in button config");if(t.buttonsNames.indexOf(a)!==-1)throw new Error("button name '"+a+"' is taken");t.buttonsNames.push(a);var o=t.createButton(n);t.buttonElements.push(o),i.appendChild(o)}),t.element.appendChild(i)})};_1.createGroup=function(){var e=document.createElement("div");e.className="modebar-group";var t=this.graphInfo._fullLayout.modebar;return e.style.backgroundColor=t.bgcolor,e};_1.createButton=function(e){var t=this,r=document.createElement("button");r.setAttribute("type","button"),r.setAttribute("rel","tooltip"),r.className="modebar-btn";var i=e.title;i===void 0?i=e.name:typeof i=="function"&&(i=i(this.graphInfo)),(i||i===0)&&(r.setAttribute("data-title",i),r.setAttribute("aria-label",i)),e.attr!==void 0&&r.setAttribute("data-attr",e.attr);var n=e.val;n!==void 0&&(typeof n=="function"&&(n=n(this.graphInfo)),r.setAttribute("data-val",n));var a=e.click;if(typeof a!="function")throw new Error("must provide button 'click' function in button config");r.addEventListener("click",function(s){e.click(t.graphInfo,s),t.updateActiveButton(s.currentTarget)}),r.setAttribute("data-toggle",e.toggle||!1),e.toggle&&vj.select(r).classed("active",!0);var o=e.icon;return typeof o=="function"?r.appendChild(o()):r.appendChild(this.createIcon(o||Lye.question)),r.setAttribute("data-gravity",e.gravity||"n"),r};_1.createIcon=function(e){var t=Akt(e.height)?Number(e.height):e.ascent-e.descent,r="http://www.w3.org/2000/svg",i;if(e.path){i=document.createElementNS(r,"svg"),i.setAttribute("viewBox",[0,0,e.width,t].join(" ")),i.setAttribute("class","icon");var n=document.createElementNS(r,"path");n.setAttribute("d",e.path),e.transform?n.setAttribute("transform",e.transform):e.ascent!==void 0&&n.setAttribute("transform","matrix(1 0 0 -1 0 "+e.ascent+")"),i.appendChild(n)}if(e.svg){var a=Skt.parseFromString(e.svg,"application/xml");i=a.childNodes[0]}return i.setAttribute("height","1em"),i.setAttribute("width","1em"),i};_1.updateActiveButton=function(e){var t=this.graphInfo._fullLayout,r=e!==void 0?e.getAttribute("data-attr"):null;this.buttonElements.forEach(function(i){var n=i.getAttribute("data-val")||!0,a=i.getAttribute("data-attr"),o=i.getAttribute("data-toggle")==="true",s=vj.select(i),l=function(f,h){var p=t.modebar,d=f.querySelector(".icon path");d&&(h||f.matches(":hover")?d.style.fill=p.activecolor:d.style.fill=p.color)};if(o){if(a===r){var u=!s.classed("active");s.classed("active",u),l(i,u)}}else{var c=a===null?a:J7.nestedProperty(t,a).get();s.classed("active",c===n),l(i,c===n)}})};_1.hasButtons=function(e){var t=this.buttons;if(!t||e.length!==t.length)return!1;for(var r=0;r{"use strict";var Ckt=Fs(),zye=Wo(),gj=xi(),Dkt=rh().isUnifiedHover,Fkt=Rye(),Q7=cj(),Lkt=fj().DRAW_MODES,Pkt=it().extendDeep;Bye.exports=function(t){var r=t._fullLayout,i=t._context,n=r._modeBar;if(!i.displayModeBar&&!i.watermark){n&&(n.destroy(),delete r._modeBar);return}if(!Array.isArray(i.modeBarButtonsToRemove))throw new Error(["*modeBarButtonsToRemove* configuration options","must be an array."].join(" "));if(!Array.isArray(i.modeBarButtonsToAdd))throw new Error(["*modeBarButtonsToAdd* configuration options","must be an array."].join(" "));var a=i.modeBarButtons,o;Array.isArray(a)&&a.length?o=Okt(a):!i.displayModeBar&&i.watermark?o=[]:o=Ikt(t),n?n.update(t,o):r._modeBar=Fkt(t,o)};function Ikt(e){var t=e._fullLayout,r=e._fullData,i=e._context;function n(F,I){if(typeof I=="string"){if(I.toLowerCase()===F.toLowerCase())return!0}else{var B=I.name,O=I._cat||I.name;if(B===F||O===F.toLowerCase())return!0}return!1}var a=t.modebar.add;typeof a=="string"&&(a=[a]);var o=t.modebar.remove;typeof o=="string"&&(o=[o]);var s=i.modeBarButtonsToAdd.concat(a.filter(function(F){for(var I=0;I1?(y=["toggleHover"],E=["resetViews"]):f?(A=["zoomInGeo","zoomOutGeo"],y=["hoverClosestGeo"],E=["resetGeo"]):c?(y=["hoverClosest3d"],E=["resetCameraDefault3d","resetCameraLastSave3d"]):v?(A=["zoomInMap","zoomOutMap"],y=["toggleHover"],E=["resetViewMap"]):h?y=["hoverClosestPie"]:w?(y=["hoverClosestCartesian","hoverCompareCartesian"],E=["resetViewSankey"]):y=["toggleHover"],u&&y.push("toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"),(Bkt(r)||b)&&(y=[]),u&&!_&&(A=["zoomIn2d","zoomOut2d","autoScale2d"],E[0]!=="resetViews"&&(E=["resetScale2d"])),c?M=["zoom3d","pan3d","orbitRotation","tableRotation"]:u&&!_||d?M=["zoom2d","pan2d"]:v||f?M=["pan2d"]:m&&(M=["zoom2d"]),zkt(r)&&M.push("select2d","lasso2d");var C=[],k=function(F){C.indexOf(F)===-1&&y.indexOf(F)!==-1&&C.push(F)};if(Array.isArray(s)){for(var D=[],L=0;L{"use strict";Oye.exports={moduleType:"component",name:"modebar",layoutAttributes:(pj(),Pt(dj)).default,supplyLayoutDefaults:Fye(),manage:qye()}});var yj=W((eNr,Nye)=>{"use strict";var Nkt=(Xl(),Pt(Yl)).FROM_BL;Nye.exports=function(t,r,i){i===void 0&&(i=Nkt[t.constraintoward||"center"]);var n=[t.r2l(t.range[0]),t.r2l(t.range[1])],a=n[0]+(n[1]-n[0])*i;t.range=t._input.range=[t.l2r(a+(n[0]-a)*r),t.l2r(a+(n[1]-a)*r)],t.setScale()}});var kb=W(YA=>{"use strict";var Eb=it(),xj=jp(),Wp=Fs().id2name,Ukt=nc(),Uye=yj(),Vkt=f1(),Gkt=(ta(),Pt(ra)).ALMOST_EQUAL,Hkt=(Xl(),Pt(Yl)).FROM_BL;YA.handleDefaults=function(e,t,r){var i=r.axIds,n=r.axHasImage,a=t._axisConstraintGroups=[],o=t._axisMatchGroups=[],s,l,u,c,f,h,p,d;for(s=0;sa?r.slice(a):i.slice(n))+o}function $kt(e,t){for(var r=t._size,i=r.h/r.w,n={},a=Object.keys(e),o=0;oGkt*d&&!w)){for(a=0;aC&&BE&&(E=B);var $=(E-y)/(2*M);f/=$,y=l.l2r(y),E=l.l2r(E),l.range=l._input.range=x{"use strict";var tF=gi(),kf=xi(),S0=Qo(),bd=it(),wj=ho(),Tj=VA(),XA=ai(),Xw=en(),jye=db(),Zye=mj(),ZA=Wi(),Yg=(Xl(),Pt(Yl)),Kye=kb(),Wkt=Kye.enforce,Ykt=Kye.clean,$ye=jp().doAutoRange,Jye="start",Xkt="middle",Qye="end",Zkt=(Wl(),Pt($l)).zindexSeparator;qu.layoutStyles=function(e){return bd.syncOrAsync([S0.doAutoMargin,Jkt],e)};function Kkt(e,t,r){for(var i=0;i=e[1]||n[1]<=e[0])&&a[0]t[0])return!0}return!1}function Jkt(e){var t=e._fullLayout,r=t._size,i=r.p,n=ZA.list(e,"",!0),a,o,s,l,u,c;if(t._paperdiv.style({width:e._context.responsive&&t.autosize&&!e._context._hasZeroWidth&&!e.layout.width?"100%":t.width+"px",height:e._context.responsive&&t.autosize&&!e._context._hasZeroHeight&&!e.layout.height?"100%":t.height+"px"}).selectAll(".main-svg").call(Xw.setSize,t.width,t.height),e._context.setBackground(e,t.paper_bgcolor),qu.drawMainTitle(e),Zye.manage(e),!t._has("cartesian"))return S0.previousPromises(e);function f(G,H,J){var te=G._lw/2;if(G._id.charAt(0)==="x"){if(H){if(J==="top")return H._offset-i-te}else return r.t+r.h*(1-(G.position||0))+te%1;return H._offset+H._length+i+te}if(H){if(J==="right")return H._offset+H._length+i+te}else return r.l+r.w*(G.position||0)+te%1;return H._offset-i-te}for(a=0;a0){rCt(e,a,u,l),s.attr({x:o,y:a,"text-anchor":i,dy:Xye(t.yanchor)}).call(wj.positionText,o,a);var c=(t.text.match(wj.BR_TAG_ALL)||[]).length;if(c){var f=Yg.LINE_SPACING*c+Yg.MID_SHIFT;t.y===0&&(f=-f),s.selectAll(".line").each(function(){var m=+this.getAttribute("dy").slice(0,-2)-f+"em";this.setAttribute("dy",m)})}var h=tF.select(e).selectAll(".gtitle-subtitle");if(h.node()){var p=s.node().getBBox(),d=p.y+p.height,v=d+jye.SUBTITLE_PADDING_EM*t.subtitle.font.size;h.attr({x:o,y:v,"text-anchor":i,dy:Xye(t.yanchor)}).call(wj.positionText,o,v)}}}};function Qkt(e,t,r,i,n){var a=t.yref==="paper"?e._fullLayout._size.h:e._fullLayout.height,o=bd.isTopAnchor(t)?i:i-n,s=r==="b"?a-o:o;return bd.isTopAnchor(t)&&r==="t"||bd.isBottomAnchor(t)&&r==="b"?!1:s.5?"t":"b",o=e._fullLayout.margin[a],s=0;return t.yref==="paper"?s=r+t.pad.t+t.pad.b:t.yref==="container"&&(s=eCt(a,i,n,e._fullLayout.height,r)+t.pad.t+t.pad.b),s>o?s:0}function rCt(e,t,r,i){var n="title.automargin",a=e._fullLayout.title,o=a.y>.5?"t":"b",s={x:a.x,y:a.y,t:0,b:0},l={};a.yref==="paper"&&Qkt(e,a,o,t,i)?s[o]=r:a.yref==="container"&&(l[o]=r,e._fullLayout._reservedMargin[n]=l),S0.allowAutoMargin(e,n),S0.autoMargin(e,n,s)}function iCt(e,t){var r=e.title,i=e._size,n=0;return t===Jye?n=r.pad.l:t===Qye&&(n=-r.pad.r),r.xref==="paper"?i.l+i.w*r.x+n:e.width*r.x+n}function nCt(e,t){var r=e.title,i=e._size,n=0;return t==="0em"||!t?n=-r.pad.b:t===Yg.CAP_SHIFT+"em"&&(n=r.pad.t),r.y==="auto"?i.t/2:r.yref==="paper"?i.t+i.h-i.h*r.y+n:e.height-e.height*r.y+n}function Xye(e){return e==="top"?Yg.CAP_SHIFT+.3+"em":e==="bottom"?"-0.3em":Yg.MID_SHIFT+"em"}function aCt(e){var t=e.title,r=Xkt;return bd.isRightAnchor(t)?r=Qye:bd.isLeftAnchor(t)&&(r=Jye),r}function oCt(e){var t=e.title,r="0em";return bd.isTopAnchor(t)?r=Yg.CAP_SHIFT+"em":bd.isMiddleAnchor(t)&&(r=Yg.MID_SHIFT+"em"),r}qu.doTraceStyle=function(e){var t=e.calcdata,r=[],i;for(i=0;i{"use strict";var sCt=Ny().readPaths,lCt=H7(),e2e=ky().clearOutlineControllers,Aj=ai(),t2e=en(),uCt=Ia().arrayEditor,r2e=Gy(),cCt=r2e.getPathString;n2e.exports={draw:rF,drawOne:i2e,activateLastSelection:dCt};function rF(e){var t=e._fullLayout;e2e(e),t._selectionLayer.selectAll("path").remove();for(var r in t._plots){var i=t._plots[r].selectionLayer;i&&i.selectAll("path").remove()}for(var n=0;n=0;m--){var g=o.append("path").attr(l).style("opacity",m?.1:u).call(Aj.stroke,f).call(Aj.fill,c).call(t2e.dashLine,m?"solid":p,m?4+h:h);if(fCt(g,e,i),d){var w=uCt(e.layout,"selections",i);g.style({cursor:"move"});var _={element:g.node(),plotinfo:n,gd:e,editHelpers:w,isActiveSelection:!0},b=sCt(s,e);lCt(b,g,_)}else g.style("pointer-events",m?"all":"none");v[m]=g}var S=v[0],x=v[1];x.node().addEventListener("click",function(){return hCt(e,S)})}}function fCt(e,t,r){var i=r.xref+r.yref;t2e.setClipUrl(e,"clip"+t._fullLayout._uid+i,t)}function hCt(e,t){if(iF(e)){var r=t.node(),i=+r.getAttribute("data-index");if(i>=0){if(i===e._fullLayout._activeSelectionIndex){Mj(e);return}e._fullLayout._activeSelectionIndex=i,e._fullLayout._deactivateSelection=Mj,rF(e)}}}function dCt(e){if(iF(e)){var t=e._fullLayout.selections.length-1;e._fullLayout._activeSelectionIndex=t,e._fullLayout._deactivateSelection=Mj,rF(e)}}function Mj(e){if(iF(e)){var t=e._fullLayout._activeSelectionIndex;t>=0&&(e2e(e),delete e._fullLayout._activeSelectionIndex,rF(e))}}});var o2e=W((nNr,a2e)=>{function pCt(){var e,t=0,r=!1;function i(n,a){return e.list.push({type:n,data:a?JSON.parse(JSON.stringify(a)):void 0}),e}return e={list:[],segmentId:function(){return t++},checkIntersection:function(n,a){return i("check",{seg1:n,seg2:a})},segmentChop:function(n,a){return i("div_seg",{seg:n,pt:a}),i("chop",{seg:n,pt:a})},statusRemove:function(n){return i("pop_seg",{seg:n})},segmentUpdate:function(n){return i("seg_update",{seg:n})},segmentNew:function(n,a){return i("new_seg",{seg:n,primary:a})},segmentRemove:function(n){return i("rem_seg",{seg:n})},tempStatus:function(n,a,o){return i("temp_status",{seg:n,above:a,below:o})},rewind:function(n){return i("rewind",{seg:n})},status:function(n,a,o){return i("status",{seg:n,above:a,below:o})},vert:function(n){return n===r?e:(r=n,i("vert",{x:n}))},log:function(n){return typeof n!="string"&&(n=JSON.stringify(n,!1," ")),i("log",{txt:n})},reset:function(){return i("reset")},selected:function(n){return i("selected",{segs:n})},chainStart:function(n){return i("chain_start",{seg:n})},chainRemoveHead:function(n,a){return i("chain_rem_head",{index:n,pt:a})},chainRemoveTail:function(n,a){return i("chain_rem_tail",{index:n,pt:a})},chainNew:function(n,a){return i("chain_new",{pt1:n,pt2:a})},chainMatch:function(n){return i("chain_match",{index:n})},chainClose:function(n){return i("chain_close",{index:n})},chainAddHead:function(n,a){return i("chain_add_head",{index:n,pt:a})},chainAddTail:function(n,a){return i("chain_add_tail",{index:n,pt:a})},chainConnect:function(n,a){return i("chain_con",{index1:n,index2:a})},chainReverse:function(n){return i("chain_rev",{index:n})},chainJoin:function(n,a){return i("chain_join",{index1:n,index2:a})},done:function(){return i("done")}},e}a2e.exports=pCt});var l2e=W((aNr,s2e)=>{function vCt(e){typeof e!="number"&&(e=1e-10);var t={epsilon:function(r){return typeof r=="number"&&(e=r),e},pointAboveOrOnLine:function(r,i,n){var a=i[0],o=i[1],s=n[0],l=n[1],u=r[0],c=r[1];return(s-a)*(c-o)-(l-o)*(u-a)>=-e},pointBetween:function(r,i,n){var a=r[1]-i[1],o=n[0]-i[0],s=r[0]-i[0],l=n[1]-i[1],u=s*o+a*l;if(u-e)},pointsSameX:function(r,i){return Math.abs(r[0]-i[0])e!=s-a>e&&(o-c)*(a-f)/(s-f)+c-n>e&&(l=!l),o=c,s=f}return l}};return t}s2e.exports=vCt});var c2e=W((oNr,u2e)=>{var gCt={create:function(){var e={root:{root:!0,next:null},exists:function(t){return!(t===null||t===e.root)},isEmpty:function(){return e.root.next===null},getHead:function(){return e.root.next},insertBefore:function(t,r){for(var i=e.root,n=e.root.next;n!==null;){if(r(n)){t.prev=n.prev,t.next=n,n.prev.next=t,n.prev=t;return}i=n,n=n.next}i.next=t,t.prev=i,t.next=null},findTransition:function(t){for(var r=e.root,i=e.root.next;i!==null&&!t(i);)r=i,i=i.next;return{before:r===e.root?null:r,after:i,insert:function(n){return n.prev=r,n.next=i,r.next=n,i!==null&&(i.prev=n),n}}}};return e},node:function(e){return e.prev=null,e.next=null,e.remove=function(){e.prev.next=e.next,e.next&&(e.next.prev=e.prev),e.prev=null,e.next=null},e}};u2e.exports=gCt});var h2e=W((sNr,f2e)=>{var JA=c2e();function mCt(e,t,r){function i(d,v){return{id:r?r.segmentId():-1,start:d,end:v,myFill:{above:null,below:null},otherFill:null}}function n(d,v,m){return{id:r?r.segmentId():-1,start:d,end:v,myFill:{above:m.myFill.above,below:m.myFill.below},otherFill:null}}var a=JA.create();function o(d,v,m,g,w,_){var b=t.pointsCompare(v,w);return b!==0?b:t.pointsSame(m,_)?0:d!==g?d?1:-1:t.pointAboveOrOnLine(m,g?w:_,g?_:w)?1:-1}function s(d,v){a.insertBefore(d,function(m){var g=o(d.isStart,d.pt,v,m.isStart,m.pt,m.other.pt);return g<0})}function l(d,v){var m=JA.node({isStart:!0,pt:d.start,seg:d,primary:v,other:null,status:null});return s(m,d.end),m}function u(d,v,m){var g=JA.node({isStart:!1,pt:v.end,seg:v,primary:m,other:d,status:null});d.other=g,s(g,d.pt)}function c(d,v){var m=l(d,v);return u(m,d,v),m}function f(d,v){r&&r.segmentChop(d.seg,v),d.other.remove(),d.seg.end=v,d.other.pt=v,s(d.other,d.pt)}function h(d,v){var m=n(v,d.seg.end,d.seg);return f(d,v),c(m,d.primary)}function p(d,v){var m=JA.create();function g(L,P){var R=L.seg.start,F=L.seg.end,I=P.seg.start,B=P.seg.end;return t.pointsCollinear(R,I,B)?t.pointsCollinear(F,I,B)||t.pointAboveOrOnLine(F,I,B)?1:-1:t.pointAboveOrOnLine(R,I,B)?1:-1}function w(L){return m.findTransition(function(P){var R=g(L,P.ev);return R>0})}function _(L,P){var R=L.seg,F=P.seg,I=R.start,B=R.end,O=F.start,$=F.end;r&&r.checkIntersection(R,F);var Y=t.linesIntersect(I,B,O,$);if(Y===!1){if(!t.pointsCollinear(I,B,O)||t.pointsSame(I,$)||t.pointsSame(B,O))return!1;var K=t.pointsSame(I,O),j=t.pointsSame(B,$);if(K&&j)return P;var q=!K&&t.pointBetween(I,O,$),Q=!j&&t.pointBetween(B,O,$);if(K)return Q?h(P,B):h(L,$),P;q&&(j||(Q?h(P,B):h(L,$)),h(P,I))}else Y.alongA===0&&(Y.alongB===-1?h(L,O):Y.alongB===0?h(L,Y.pt):Y.alongB===1&&h(L,$)),Y.alongB===0&&(Y.alongA===-1?h(P,I):Y.alongA===0?h(P,Y.pt):Y.alongA===1&&h(P,B));return!1}for(var b=[];!a.isEmpty();){var S=a.getHead();if(r&&r.vert(S.pt[0]),S.isStart){let L=function(){if(T){var P=_(S,T);if(P)return P}return A?_(S,A):!1};var D=L;r&&r.segmentNew(S.seg,S.primary);var x=w(S),T=x.before?x.before.ev:null,A=x.after?x.after.ev:null;r&&r.tempStatus(S.seg,T?T.seg:!1,A?A.seg:!1);var y=L();if(y){if(e){var E;S.seg.myFill.below===null?E=!0:E=S.seg.myFill.above!==S.seg.myFill.below,E&&(y.seg.myFill.above=!y.seg.myFill.above)}else y.seg.otherFill=S.seg.myFill;r&&r.segmentUpdate(y.seg),S.other.remove(),S.remove()}if(a.getHead()!==S){r&&r.rewind(S.seg);continue}if(e){var E;S.seg.myFill.below===null?E=!0:E=S.seg.myFill.above!==S.seg.myFill.below,A?S.seg.myFill.below=A.seg.myFill.above:S.seg.myFill.below=d,E?S.seg.myFill.above=!S.seg.myFill.below:S.seg.myFill.above=S.seg.myFill.below}else if(S.seg.otherFill===null){var M;A?S.primary===A.primary?M=A.seg.otherFill.above:M=A.seg.myFill.above:M=S.primary?v:d,S.seg.otherFill={above:M,below:M}}r&&r.status(S.seg,T?T.seg:!1,A?A.seg:!1),S.other.status=x.insert(JA.node({ev:S}))}else{var C=S.status;if(C===null)throw new Error("PolyBool: Zero-length segment detected; your epsilon is probably too small or too large");if(m.exists(C.prev)&&m.exists(C.next)&&_(C.prev.ev,C.next.ev),r&&r.statusRemove(C.ev.seg),C.remove(),!S.primary){var k=S.seg.myFill;S.seg.myFill=S.seg.otherFill,S.seg.otherFill=k}b.push(S.seg)}a.getHead().remove()}return r&&r.done(),b}return e?{addRegion:function(d){for(var v,m=d[d.length-1],g=0;g{function yCt(e,t,r){var i=[],n=[];return e.forEach(function(a){var o=a.start,s=a.end;if(t.pointsSame(o,s)){console.warn("PolyBool: Warning: Zero-length segment detected; your epsilon is probably too small or too large");return}r&&r.chainStart(a);var l={index:0,matches_head:!1,matches_pt1:!1},u={index:0,matches_head:!1,matches_pt1:!1},c=l;function f(D,L,P){return c.index=D,c.matches_head=L,c.matches_pt1=P,c===l?(c=u,!1):(c=null,!0)}for(var h=0;h{function QA(e,t,r){var i=[];return e.forEach(function(n){var a=(n.myFill.above?8:0)+(n.myFill.below?4:0)+(n.otherFill&&n.otherFill.above?2:0)+(n.otherFill&&n.otherFill.below?1:0);t[a]!==0&&i.push({id:r?r.segmentId():-1,start:n.start,end:n.end,myFill:{above:t[a]===1,below:t[a]===2},otherFill:null})}),r&&r.selected(i),i}var xCt={union:function(e,t){return QA(e,[0,2,1,0,2,2,0,0,1,0,1,0,0,0,0,0],t)},intersect:function(e,t){return QA(e,[0,0,0,0,0,2,0,2,0,0,1,1,0,2,1,0],t)},difference:function(e,t){return QA(e,[0,0,0,0,2,0,2,0,1,1,0,0,0,1,2,0],t)},differenceRev:function(e,t){return QA(e,[0,2,1,0,0,0,1,1,0,2,0,2,0,0,0,0],t)},xor:function(e,t){return QA(e,[0,2,1,0,2,0,0,1,1,0,0,2,0,1,2,0],t)}};v2e.exports=xCt});var y2e=W((cNr,m2e)=>{var bCt={toPolygon:function(e,t){function r(a){if(a.length<=0)return e.segments({inverted:!1,regions:[]});function o(u){var c=u.slice(0,u.length-1);return e.segments({inverted:!1,regions:[c]})}for(var s=o(a[0]),l=1;l{var _Ct=o2e(),wCt=l2e(),x2e=h2e(),TCt=p2e(),eM=g2e(),b2e=y2e(),_d=!1,tM=wCt(),Vh;Vh={buildLog:function(e){return e===!0?_d=_Ct():e===!1&&(_d=!1),_d===!1?!1:_d.list},epsilon:function(e){return tM.epsilon(e)},segments:function(e){var t=x2e(!0,tM,_d);return e.regions.forEach(t.addRegion),{segments:t.calculate(e.inverted),inverted:e.inverted}},combine:function(e,t){var r=x2e(!1,tM,_d);return{combined:r.calculate(e.segments,e.inverted,t.segments,t.inverted),inverted1:e.inverted,inverted2:t.inverted}},selectUnion:function(e){return{segments:eM.union(e.combined,_d),inverted:e.inverted1||e.inverted2}},selectIntersect:function(e){return{segments:eM.intersect(e.combined,_d),inverted:e.inverted1&&e.inverted2}},selectDifference:function(e){return{segments:eM.difference(e.combined,_d),inverted:e.inverted1&&!e.inverted2}},selectDifferenceRev:function(e){return{segments:eM.differenceRev(e.combined,_d),inverted:!e.inverted1&&e.inverted2}},selectXor:function(e){return{segments:eM.xor(e.combined,_d),inverted:e.inverted1!==e.inverted2}},polygon:function(e){return{regions:TCt(e.segments,tM,_d),inverted:e.inverted}},polygonFromGeoJSON:function(e){return b2e.toPolygon(Vh,e)},polygonToGeoJSON:function(e){return b2e.fromPolygon(Vh,tM,e)},union:function(e,t){return rM(e,t,Vh.selectUnion)},intersect:function(e,t){return rM(e,t,Vh.selectIntersect)},difference:function(e,t){return rM(e,t,Vh.selectDifference)},differenceRev:function(e,t){return rM(e,t,Vh.selectDifferenceRev)},xor:function(e,t){return rM(e,t,Vh.selectXor)}};function rM(e,t,r){var i=Vh.segments(e),n=Vh.segments(t),a=Vh.combine(i,n),o=r(a);return Vh.polygon(o)}typeof window=="object"&&(window.PolyBool=Vh);_2e.exports=Vh});var A2e=W((hNr,T2e)=>{T2e.exports=function(t,r,i,n){var a=t[0],o=t[1],s=!1;i===void 0&&(i=0),n===void 0&&(n=r.length);for(var l=n-i,u=0,c=l-1;uo!=d>o&&a<(p-f)*(o-h)/(d-h)+f;v&&(s=!s)}return s}});var iM=W((dNr,M2e)=>{"use strict";var Ej=pD().dot,nF=(ta(),Pt(ra)).BADNUM,aF=M2e.exports={};aF.tester=function(t){var r=t.slice(),i=r[0][0],n=i,a=r[0][1],o=a,s;for((r[r.length-1][0]!==r[0][0]||r[r.length-1][1]!==r[0][1])&&r.push(r[0]),s=1;sn||g===nF||go||v&&u(d))}function f(d,v){var m=d[0],g=d[1];if(m===nF||mn||g===nF||go)return!1;var w=r.length,_=r[0][0],b=r[0][1],S=0,x,T,A,y,E;for(x=1;xMath.max(T,_)||g>Math.max(A,b)))if(gs||Math.abs(Ej(f,u))>n)return!0;return!1};aF.filter=function(t,r){var i=[t[0]],n=0,a=0;function o(l){t.push(l);var u=i.length,c=n;i.splice(a+1);for(var f=c+1;f1){var s=t.pop();o(s)}return{addPt:o,raw:t,filtered:i}}});var S2e={};Kn(S2e,{BENDPX:()=>ACt,MINSELECT:()=>MCt,SELECTDELAY:()=>SCt,SELECTID:()=>ECt});var ACt,MCt,SCt,ECt,E2e=Ci(()=>{"use strict";ACt=1.5,MCt=12,SCt=100,ECt="-select"});var X2e=W((pNr,Y2e)=>{"use strict";var k2e=w2e(),kCt=A2e(),oM=xi(),CCt=en().dashStyle,nM=ai(),DCt=Ls(),FCt=rh().makeEventData,fM=m1(),LCt=fM.freeMode,PCt=fM.rectMode,sM=fM.drawMode,Fj=fM.openMode,Lj=fM.selectMode,C2e=Gy(),D2e=(jA(),Pt(HA)),R2e=H7(),z2e=ky().clearOutline,B2e=Ny(),kj=B2e.handleEllipse,ICt=B2e.readPaths,RCt=U7().newShapes,zCt=ej(),BCt=Sj().activateLastSelection,sF=it(),qCt=sF.sorterAsc,q2e=iM(),aM=ED(),wd=Fs().getFromId,OCt=VA(),NCt=KA().redrawReglTraces,lF=(E2e(),Pt(S2e)),w1=lF.MINSELECT,UCt=q2e.filter,Pj=q2e.tester,Ij=B7(),F2e=Ij.p2r,VCt=Ij.axValue,GCt=Ij.getTransform;function Rj(e){return e.subplot!==void 0}function HCt(e,t,r,i,n){var a=!Rj(i),o=LCt(n),s=PCt(n),l=Fj(n),u=sM(n),c=Lj(n),f=n==="drawline",h=n==="drawcircle",p=f||h,d=i.gd,v=d._fullLayout,m=c&&v.newselection.mode==="immediate"&&a,g=v._zoomlayer,w=i.element.getBoundingClientRect(),_=i.plotinfo,b=GCt(_),S=t-w.left,x=r-w.top;v._calcInverseTransform(d);var T=sF.apply3DTransform(v._invTransform)(S,x);S=T[0],x=T[1];var A=v._invScaleX,y=v._invScaleY,E=S,M=x,C="M"+S+","+x,k=i.xaxes[0],D=i.yaxes[0],L=k._length,P=D._length,R=e.altKey&&!(sM(n)&&l),F,I,B,O,$,Y,K;N2e(e,d,i),o&&(F=UCt([[S,x]],lF.BENDPX));var j=g.selectAll("path.select-outline-"+_.id).data([1]),q=u?v.newshape:v.newselection;u&&(i.hasText=q.label.text||q.label.texttemplate);var Q=u&&!l?q.fillcolor:"rgba(0,0,0,0)",U=q.line.color||(a?nM.contrast(d._fullLayout.plot_bgcolor):"#7f7f7f");j.enter().append("path").attr("class","select-outline select-outline-"+_.id).style({opacity:u?q.opacity/2:1,"stroke-dasharray":CCt(q.line.dash,q.line.width),"stroke-width":q.line.width+"px","shape-rendering":"crispEdges"}).call(nM.stroke,U).call(nM.fill,Q).attr("fill-rule","evenodd").classed("cursor-move",!!u).attr("transform",b).attr("d",C+"Z");var V=g.append("path").attr("class","zoombox-corners").style({fill:nM.background,stroke:nM.defaultLine,"stroke-width":1}).attr("transform",b).attr("d","M0,0Z");if(u&&i.hasText){var X=g.select(".label-temp");X.empty()&&(X=g.append("g").classed("label-temp",!0).classed("select-outline",!0).style({opacity:.8}))}var G=v._uid+lF.SELECTID,H=[],J=uF(d,i.xaxes,i.yaxes,i.subplot);m&&!e.shiftKey&&(i._clearSubplotSelections=function(){if(a){var ue=k._id,ge=D._id;j2e(d,ue,ge,J);for(var ke=(d.layout||{}).selections||[],_e=[],he=!1,oe=0;oe=0){d._fullLayout._deactivateShape(d);return}if(!u){var ke=v.clickmode;aM.done(G).then(function(){if(aM.clear(G),ue===2){for(j.remove(),$=0;$-1&&O2e(ge,d,i.xaxes,i.yaxes,i.subplot,i,j),ke==="event"&&cM(d,void 0);DCt.click(d,ge,_.id)}).catch(sF.error)}},i.doneFn=function(){V.remove(),aM.done(G).then(function(){aM.clear(G),!m&&O&&i.selectionDefs&&(O.subtract=R,i.selectionDefs.push(O),i.mergedPolygons.length=0,[].push.apply(i.mergedPolygons,B)),(m||u)&&lM(i,m),i.doneFnCompleted&&i.doneFnCompleted(H),c&&cM(d,K)}).catch(sF.error)}}function O2e(e,t,r,i,n,a,o){var s=t._hoverdata,l=t._fullLayout,u=l.clickmode,c=u.indexOf("event")>-1,f=[],h,p,d,v,m,g,w,_,b,S;if(XCt(s)){N2e(e,t,a),h=uF(t,r,i,n);var x=ZCt(s,h),T=x.pointNumbers.length>0;if(T?KCt(h,x):JCt(h)&&(w=P2e(x))){for(o&&o.remove(),S=0;S=0}function YCt(e){return e._fullLayout._activeSelectionIndex>=0}function lM(e,t){var r=e.dragmode,i=e.plotinfo,n=e.gd;WCt(n)&&n._fullLayout._deactivateShape(n),YCt(n)&&n._fullLayout._deactivateSelection(n);var a=n._fullLayout,o=a._zoomlayer,s=sM(r),l=Lj(r);if(s||l){var u=o.selectAll(".select-outline-"+i.id);if(u&&n._fullLayout._outlining){var c;s&&(c=RCt(u,e)),c&&oM.call("_guiRelayout",n,{shapes:c});var f;l&&!Rj(e)&&(f=zCt(u,e)),f&&(n._fullLayout._noEmitSelectedAtStart=!0,oM.call("_guiRelayout",n,{selections:f}).then(function(){t&&BCt(n)})),n._fullLayout._outlining=!1}}i.selection={},i.selection.selectionDefs=e.selectionDefs=[],i.selection.mergedPolygons=e.mergedPolygons=[]}function L2e(e){return e._id}function uF(e,t,r,i){if(!e.calcdata)return[];var n=[],a=t.map(L2e),o=r.map(L2e),s,l,u;for(u=0;u0,a=n?i[0]:r;return t.selectedpoints?t.selectedpoints.indexOf(a)>-1:!1}function KCt(e,t){var r=[],i,n,a,o;for(o=0;o0&&r.push(i);if(r.length===1&&(a=r[0]===t.searchInfo,a&&(n=t.searchInfo.cd[0].trace,n.selectedpoints.length===t.pointNumbers.length))){for(o=0;o1||(t+=i.selectedpoints.length,t>1)))return!1;return t===1}function uM(e,t,r){var i,n;for(i=0;i-1&&t;if(!o&&t){var ue=I2e(e,!0);if(ue.length){var ge=ue[0].xref,ke=ue[0].yref;if(ge&&ke){var _e=$2e(ue),he=W2e([wd(e,ge,"x"),wd(e,ke,"y")]);he(H,_e)}}e._fullLayout._noEmitSelectedAtStart?e._fullLayout._noEmitSelectedAtStart=!1:te&&cM(e,H),h._reselect=!1}if(!o&&h._deselect){var oe=h._deselect;s=oe.xref,l=oe.yref,t8t(s,l,c)||j2e(e,s,l,i),te&&(H.points.length?cM(e,H):qj(e)),h._deselect=!1}return{eventData:H,selectionTesters:r}}function e8t(e){var t=e.calcdata;if(t)for(var r=0;r{"use strict";Z2e.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}]});var hM={};Kn(hM,{axisRefDescription:()=>o8t});function o8t(e,t,r){return[`If set to a ${e} axis id (e.g. *${e}* or *${e}2*),`,`the \`${e}\` position refers to a ${e} coordinate.`,`If set to *paper*, the \`${e}\` position refers to the distance from the`,`${t} of the plotting area in normalized coordinates where *0* (*1*) corresponds`,`to the ${t} (${r}). If set to a ${e} 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 ${t} of the domain of that`,`axis: e.g., *${e}2 domain* refers to the domain of the second ${e}`,`axis and a ${e} position of 0.5 refers to the point between the ${t}`,`and the ${r} of the domain of the second ${e} axis.`].join(" ")}var dM=Ci(()=>{"use strict"});var jy=W((mNr,Q2e)=>{"use strict";var K2e=Oj(),J2e=jo(),cF=(Wl(),Pt($l)),s8t=Ia().templatedArray,gNr=(dM(),Pt(hM));Q2e.exports=s8t("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:J2e({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:K2e.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:K2e.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",cF.idRegex.x.toString()],editType:"calc"},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",cF.idRegex.y.toString()],editType:"calc"},xref:{valType:"enumerated",values:["paper",cF.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",cF.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:J2e({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc"})});var T1={};Kn(T1,{PTS_LINESONLY:()=>l8t,eventDataKeys:()=>h8t,maxScreensAway:()=>f8t,minTolerance:()=>u8t,toleranceGrowth:()=>c8t});var l8t,u8t,c8t,f8t,h8t,A1=Ci(()=>{"use strict";l8t=20,u8t=.2,c8t=10,f8t=20,h8t=[]});var M1=W((yNr,exe)=>{"use strict";exe.exports=function(t){return{valType:"color",editType:"style",anim:!0}}});var Hs=W((xNr,lxe)=>{"use strict";var txe=ws().axisHoverFormat,{hovertemplateAttrs:d8t,texttemplateAttrs:p8t,templatefallbackAttrs:rxe}=$a(),ixe=Fo(),v8t=jo(),nxe=Ru().dash,g8t=Ru().pattern,m8t=en(),y8t=(A1(),Pt(T1)),pM=nn().extendFlat,x8t=M1();function axe(e){return{valType:"any",dflt:0,editType:"calc"}}function oxe(e){return{valType:"any",editType:"calc"}}function sxe(e){return{valType:"enumerated",values:["start","middle","end"],dflt:"middle",editType:"calc"}}lxe.exports={x:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0},x0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",anim:!0},dx:{valType:"number",dflt:1,editType:"calc",anim:!0},y:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0},y0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",anim:!0},dy:{valType:"number",dflt:1,editType:"calc",anim:!0},xperiod:axe("x"),yperiod:axe("y"),xperiod0:oxe("x0"),yperiod0:oxe("y0"),xperiodalignment:sxe("x"),yperiodalignment:sxe("y"),xhoverformat:txe("x"),yhoverformat:txe("y"),offsetgroup:{valType:"string",dflt:"",editType:"calc"},alignmentgroup:{valType:"string",dflt:"",editType:"calc"},stackgroup:{valType:"string",dflt:"",editType:"calc"},orientation:{valType:"enumerated",values:["v","h"],editType:"calc"},groupnorm:{valType:"enumerated",values:["","fraction","percent"],dflt:"",editType:"calc"},stackgaps:{valType:"enumerated",values:["infer zero","interpolate"],dflt:"infer zero",editType:"calc"},text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},texttemplate:p8t(),texttemplatefallback:rxe({editType:"calc"}),hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"style"},mode:{valType:"flaglist",flags:["lines","markers","text"],extras:["none"],editType:"calc"},hoveron:{valType:"flaglist",flags:["points","fills"],editType:"style"},hovertemplate:d8t({},{keys:y8t.eventDataKeys}),hovertemplatefallback:rxe(),line:{color:{valType:"color",editType:"style",anim:!0},width:{valType:"number",min:0,dflt:2,editType:"style",anim:!0},shape:{valType:"enumerated",values:["linear","spline","hv","vh","hvh","vhv"],dflt:"linear",editType:"plot"},smoothing:{valType:"number",min:0,max:1.3,dflt:1,editType:"plot"},dash:pM({},nxe,{editType:"style"}),backoff:{valType:"number",min:0,dflt:"auto",arrayOk:!0,editType:"plot"},simplify:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},connectgaps:{valType:"boolean",dflt:!1,editType:"calc"},cliponaxis:{valType:"boolean",dflt:!0,editType:"plot"},fill:{valType:"enumerated",values:["none","tozeroy","tozerox","tonexty","tonextx","toself","tonext"],editType:"calc"},fillcolor:x8t(!0),fillgradient:pM({type:{valType:"enumerated",values:["radial","horizontal","vertical","none"],dflt:"none",editType:"calc"},start:{valType:"number",editType:"calc"},stop:{valType:"number",editType:"calc"},colorscale:{valType:"colorscale",editType:"style"},editType:"calc"}),fillpattern:g8t,marker:pM({symbol:{valType:"enumerated",values:m8t.symbolList,dflt:"circle",arrayOk:!0,editType:"style"},opacity:{valType:"number",min:0,max:1,arrayOk:!0,editType:"style",anim:!0},angle:{valType:"angle",dflt:0,arrayOk:!0,editType:"plot",anim:!1},angleref:{valType:"enumerated",values:["previous","up"],dflt:"up",editType:"plot",anim:!1},standoff:{valType:"number",min:0,dflt:0,arrayOk:!0,editType:"plot",anim:!0},size:{valType:"number",min:0,dflt:6,arrayOk:!0,editType:"calc",anim:!0},maxdisplayed:{valType:"number",min:0,dflt:0,editType:"plot"},sizeref:{valType:"number",dflt:1,editType:"calc"},sizemin:{valType:"number",min:0,dflt:0,editType:"calc"},sizemode:{valType:"enumerated",values:["diameter","area"],dflt:"diameter",editType:"calc"},line:pM({width:{valType:"number",min:0,arrayOk:!0,editType:"style",anim:!0},dash:pM({},nxe,{arrayOk:!0}),editType:"calc"},ixe("marker.line",{anim:!0})),gradient:{type:{valType:"enumerated",values:["radial","horizontal","vertical","none"],arrayOk:!0,dflt:"none",editType:"calc"},color:{valType:"color",arrayOk:!0,editType:"calc"},editType:"calc"},editType:"calc"},ixe("marker",{anim:!0})),selected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style"},color:{valType:"color",editType:"style"},size:{valType:"number",min:0,editType:"style"},editType:"style"},textfont:{color:{valType:"color",editType:"style"},editType:"style"},editType:"style"},unselected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style"},color:{valType:"color",editType:"style"},size:{valType:"number",min:0,editType:"style"},editType:"style"},textfont:{color:{valType:"color",editType:"style"},editType:"style"},editType:"style"},textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right"],dflt:"middle center",arrayOk:!0,editType:"calc"},textfont:v8t({editType:"calc",colorEditType:"style",arrayOk:!0}),zorder:{valType:"integer",dflt:0,editType:"plot"}}});var Nj=W((_Nr,fxe)=>{"use strict";var uxe=jy(),cxe=Hs().line,b8t=Ru().dash,fF=nn().extendFlat,_8t=cs().overrideAll,w8t=Ia().templatedArray,bNr=(dM(),Pt(hM));fxe.exports=_8t(w8t("selection",{type:{valType:"enumerated",values:["rect","path"]},xref:fF({},uxe.xref,{}),yref:fF({},uxe.yref,{}),x0:{valType:"any"},x1:{valType:"any"},y0:{valType:"any"},y1:{valType:"any"},path:{valType:"string",editType:"arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:.7,editType:"arraydraw"},line:{color:cxe.color,width:fF({},cxe.width,{min:1,dflt:1}),dash:fF({},b8t,{dflt:"dot"})}}),"arraydraw","from-root")});var vxe=W((wNr,pxe)=>{"use strict";var hxe=it(),hF=Wi(),T8t=ef(),A8t=Nj(),dxe=Gy();pxe.exports=function(t,r){T8t(t,r,{name:"selections",handleItemDefaults:M8t});for(var i=r.selections,n=0;n{"use strict";gxe.exports=function(t,r,i){i("newselection.mode");var n=i("newselection.line.width");n&&(i("newselection.line.color"),i("newselection.line.dash")),i("activeselection.fillcolor"),i("activeselection.opacity")}});var vM=W((ANr,bxe)=>{"use strict";var S8t=xi(),yxe=it(),xxe=Fs();bxe.exports=function(t){return function(i,n){var a=i[t];if(Array.isArray(a))for(var o=S8t.subplotsRegistry.cartesian,s=o.idRegex,l=n._subplots,u=l.xaxis,c=l.yaxis,f=l.cartesian,h=n._has("cartesian"),p=0;p{"use strict";var _xe=Sj(),gM=X2e();wxe.exports={moduleType:"component",name:"selections",layoutAttributes:Nj(),supplyLayoutDefaults:vxe(),supplyDrawNewSelectionDefaults:mxe(),includeBasePlot:vM()("selections"),draw:_xe.draw,drawOne:_xe.drawOne,reselect:gM.reselect,prepSelect:gM.prepSelect,clearOutline:gM.clearOutline,clearSelectionsCache:gM.clearSelectionsCache,selectOnClick:gM.selectOnClick}});var Yj=W((SNr,Uxe)=>{"use strict";var $j=gi(),Td=it(),Txe=Td.numberFormat,E8t=T7(),dF=xi(),Fxe=Td.strTranslate,k8t=ho(),Vj=ai(),$y=en(),C8t=Ls(),Axe=Wi(),D8t=$p(),F8t=Mf(),Lxe=m1(),pF=Lxe.selectingOrDrawing,L8t=Lxe.freeMode,P8t=(Xl(),Pt(Yl)).FROM_TL,I8t=VA(),R8t=KA().redrawReglTraces,z8t=Qo(),Gj=Fs().getFromId,B8t=yu().prepSelect,q8t=yu().clearOutline,O8t=yu().selectOnClick,Uj=yj(),Wj=(Wl(),Pt($l)),Mxe=Wj.MINDRAG,nh=Wj.MINZOOM,Sxe=!0;function N8t(e,t,r,i,n,a,o,s){var l=e._fullLayout._zoomlayer,u=o+s==="nsew",c=(o+s).length===1,f,h,p,d,v,m,g,w,_,b,S,x,T,A,y,E,M,C,k,D,L,P,R;r+=t.yaxis._shift;function F(){if(f=t.xaxis,h=t.yaxis,_=f._length,b=h._length,g=f._offset,w=h._offset,p={},p[f._id]=f,d={},d[h._id]=h,o&&s)for(var Ce=t.overlays,be=0;be=0){Ie._fullLayout._deactivateShape(Ie);return}var Oe=Ie._fullLayout.clickmode;if(jj(Ie),Ce===2&&!c&&xe(),u)Oe.indexOf("select")>-1&&O8t(be,Ie,v,m,t.id,O),Oe.indexOf("event")>-1&&C8t.click(Ie,be,t.id);else if(Ce===1&&c){var Qe=o?h:f,et=o==="s"||s==="w"?0:1,bt=Qe._name+".range["+et+"]",ut=U8t(Qe,et),vt="left",Xe="middle";if(Qe.fixedrange)return;o?(Xe=o==="n"?"top":"bottom",Qe.side==="right"&&(vt="right")):s==="e"&&(vt="right"),Ie._context.showAxisRangeEntryBoxes&&$j.select(B).call(k8t.makeEditable,{gd:Ie,immediate:!0,background:Ie._fullLayout.paper_bgcolor,text:String(ut),fill:Qe.tickfont?Qe.tickfont.color:"#444",horizontalAlign:vt,verticalAlign:Xe}).on("edit",function(mt){var _t=Qe.d2r(mt);_t!==void 0&&dF.call("_guiRelayout",Ie,bt,_t)})}}F8t.init(O);var K,j,q,Q,U,V,X,G,H,J;function te(Ce,be,Ie){var Oe=B.getBoundingClientRect();K=be-Oe.left,j=Ie-Oe.top,e._fullLayout._calcInverseTransform(e);var Qe=Td.apply3DTransform(e._fullLayout._invTransform)(K,j);K=Qe[0],j=Qe[1],q={l:K,r:K,w:0,t:j,b:j,h:0},Q=e._hmpixcount?e._hmlumcount/e._hmpixcount:Vj.luminosity(e._fullLayout.plot_bgcolor),U="M0,0H"+_+"V"+b+"H0V0",V=!1,X="xy",J=!1,G=Rxe(l,Q,g,w,U),H=zxe(l,g,w)}function ue(Ce,be){if(e._transitioningWithDuration)return!1;var Ie=Math.max(0,Math.min(_,P*Ce+K)),Oe=Math.max(0,Math.min(b,R*be+j)),Qe=Math.abs(Ie-K),et=Math.abs(Oe-j);q.l=Math.min(K,Ie),q.r=Math.max(K,Ie),q.t=Math.min(j,Oe),q.b=Math.max(j,Oe);function bt(){X="",q.r=q.l,q.t=q.b,H.attr("d","M0,0Z")}if(S.isSubplotConstrained)Qe>nh||et>nh?(X="xy",Qe/_>et/b?(et=Qe*b/_,j>Oe?q.t=j-et:q.b=j+et):(Qe=et*_/b,K>Ie?q.l=K-Qe:q.r=K+Qe),H.attr("d",vF(q))):bt();else if(x.isSubplotConstrained)if(Qe>nh||et>nh){X="xy";var ut=Math.min(q.l/_,(b-q.b)/b),vt=Math.max(q.r/_,(b-q.t)/b);q.l=ut*_,q.r=vt*_,q.b=(1-ut)*b,q.t=(1-vt)*b,H.attr("d",vF(q))}else bt();else!A||et0){var mt;if(x.isSubplotConstrained||!T&&A.length===1){for(mt=0;mt1&&(bt.maxallowed!==void 0&&E===(bt.range[0]1&&(ut.maxallowed!==void 0&&M===(ut.range[0]=0?Math.min(e,.9):1/(1/Math.max(e,-.3)+3.222))}function G8t(e,t,r){return e?e==="nsew"?r?"":t==="pan"?"move":"crosshair":e.toLowerCase()+"-resize":"pointer"}function Rxe(e,t,r,i,n){return e.append("path").attr("class","zoombox").style({fill:t>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("transform",Fxe(r,i)).attr("d",n+"Z")}function zxe(e,t,r){return e.append("path").attr("class","zoombox-corners").style({fill:Vj.background,stroke:Vj.defaultLine,"stroke-width":1,opacity:0}).attr("transform",Fxe(t,r)).attr("d","M0,0Z")}function Bxe(e,t,r,i,n,a){e.attr("d",i+"M"+r.l+","+r.t+"v"+r.h+"h"+r.w+"v-"+r.h+"h-"+r.w+"Z"),qxe(e,t,n,a)}function qxe(e,t,r,i){r||(e.transition().style("fill",i>.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),t.transition().style("opacity",1).duration(200))}function jj(e){$j.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function Oxe(e){Sxe&&e.data&&e._context.showTips&&(Td.notifier(Td._(e,"Double-click to zoom back out"),"long",e),Sxe=!1)}function H8t(e,t){return"M"+(e.l-.5)+","+(t-nh-.5)+"h-3v"+(2*nh+1)+"h3ZM"+(e.r+.5)+","+(t-nh-.5)+"h3v"+(2*nh+1)+"h-3Z"}function j8t(e,t){return"M"+(t-nh-.5)+","+(e.t-.5)+"v-3h"+(2*nh+1)+"v3ZM"+(t-nh-.5)+","+(e.b+.5)+"v3h"+(2*nh+1)+"v-3Z"}function vF(e){var t=Math.floor(Math.min(e.b-e.t,e.r-e.l,nh)/2);return"M"+(e.l-3.5)+","+(e.t-.5+t)+"h3v"+-t+"h"+t+"v-3h-"+(t+3)+"ZM"+(e.r+3.5)+","+(e.t-.5+t)+"h-3v"+-t+"h"+-t+"v-3h"+(t+3)+"ZM"+(e.r+3.5)+","+(e.b+.5-t)+"h-3v"+t+"h"+-t+"v3h"+(t+3)+"ZM"+(e.l-3.5)+","+(e.b+.5-t)+"h3v"+t+"h"+t+"v3h-"+(t+3)+"Z"}function Cxe(e,t,r,i,n){for(var a=!1,o={},s={},l,u,c,f,h=(n||{}).xaHash,p=(n||{}).yaHash,d=0;d{"use strict";var $8t=gi(),gF=Ls(),W8t=Mf(),Y8t=$p(),Yp=Yj().makeDragBox,Ou=(Wl(),Pt($l)).DRAGGERSIZE;mF.initInteractions=function(t){var r=t._fullLayout;if(t._context.staticPlot){$8t.select(t).selectAll(".drag").remove();return}if(!(!r._has("cartesian")&&!r._has("splom"))){var i=Object.keys(r._plots||{}).sort(function(a,o){if((r._plots[a].mainplot&&!0)===(r._plots[o].mainplot&&!0)){var s=a.split("y"),l=o.split("y");return s[0]===l[0]?Number(s[1]||1)-Number(l[1]||1):Number(s[0]||1)-Number(l[0]||1)}return r._plots[a].mainplot?1:-1});i.forEach(function(a){var o=r._plots[a],s=o.xaxis,l=o.yaxis;if(!o.mainplot){var u=Yp(t,o,s._offset,l._offset,s._length,l._length,"ns","ew");u.onmousemove=function(h){t._fullLayout._rehover=function(){t._fullLayout._hoversubplot===a&&t._fullLayout._plots[a]&&gF.hover(t,h,a)},gF.hover(t,h,a),t._fullLayout._lasthover=u,t._fullLayout._hoversubplot=a},u.onmouseout=function(h){t._dragging||(t._fullLayout._hoversubplot=null,W8t.unhover(t,h))},t._context.showAxisDragHandles&&(Yp(t,o,s._offset-Ou,l._offset-Ou,Ou,Ou,"n","w"),Yp(t,o,s._offset+s._length,l._offset-Ou,Ou,Ou,"n","e"),Yp(t,o,s._offset-Ou,l._offset+l._length,Ou,Ou,"s","w"),Yp(t,o,s._offset+s._length,l._offset+l._length,Ou,Ou,"s","e"))}if(t._context.showAxisDragHandles){if(a===s._mainSubplot){var c=s._mainLinePosition;s.side==="top"&&(c-=Ou),Yp(t,o,s._offset+s._length*.1,c,s._length*.8,Ou,"","ew"),Yp(t,o,s._offset,c,s._length*.1,Ou,"","w"),Yp(t,o,s._offset+s._length*.9,c,s._length*.1,Ou,"","e")}if(a===l._mainSubplot){var f=l._mainLinePosition;l.side!=="right"&&(f-=Ou),Yp(t,o,f,l._offset+l._length*.1,Ou,l._length*.8,"ns",""),Yp(t,o,f,l._offset+l._length*.9,Ou,l._length*.1,"s",""),Yp(t,o,f,l._offset,Ou,l._length*.1,"n","")}}});var n=r._hoverlayer.node();n.onmousemove=function(a){a.target=t._fullLayout._lasthover,gF.hover(t,a,r._hoversubplot)},n.onclick=function(a){a.target=t._fullLayout._lasthover,gF.click(t,a)},n.onmousedown=function(a){t._fullLayout._lasthover.onmousedown(a)},mF.updateFx(t)}};mF.updateFx=function(e){var t=e._fullLayout,r=t.dragmode==="pan"?"move":"crosshair";Y8t(t._draggers,r)}});var Hxe=W((kNr,Gxe)=>{"use strict";var Vxe=xi();Gxe.exports=function(t){for(var r=Vxe.layoutArrayContainers,i=Vxe.layoutArrayRegexes,n=t.split("[")[0],a,o,s=0;s{"use strict";var X8t=dy(),Zj=dD(),mM=zg(),Z8t=AD().sorterAsc,Kj=xi();yM.containerArrayMatch=Hxe();var K8t=yM.isAddVal=function(t){return t==="add"||X8t(t)},jxe=yM.isRemoveVal=function(t){return t===null||t==="remove"};yM.applyContainerArrayChanges=function(t,r,i,n,a){var o=r.astr,s=Kj.getComponentMethod(o,"supplyLayoutDefaults"),l=Kj.getComponentMethod(o,"draw"),u=Kj.getComponentMethod(o,"drawOne"),c=n.replot||n.recalc||s===Zj||l===Zj,f=t.layout,h=t._fullLayout;if(i[""]){Object.keys(i).length>1&&mM.warn("Full array edits are incompatible with other edits",o);var p=i[""][""];if(jxe(p))r.set(null);else if(Array.isArray(p))r.set(p);else return mM.warn("Unrecognized full array edit value",o,p),!0;return c?!1:(s(f,h),l(t),!0)}var d=Object.keys(i).map(Number).sort(Z8t),v=r.get(),m=v||[],g=a(h,o).get(),w=[],_=-1,b=m.length,S,x,T,A,y,E,M,C;for(S=0;Sm.length-(M?0:1)){mM.warn("index out of range",o,T);continue}if(E!==void 0)y.length>1&&mM.warn("Insertion & removal are incompatible with edits to the same index.",o,T),jxe(E)?w.push(T):M?(E==="add"&&(E={}),m.splice(T,0,E),g&&g.splice(T,0,{})):mM.warn("Unrecognized full object edit value",o,T,E),_===-1&&(_=T);else for(x=0;x=0;S--)m.splice(w[S],1),g&&g.splice(w[S],1);if(m.length?v||r.set(m):r.set(null),c)return!1;if(s(f,h),u!==Zj){var k;if(_===-1)k=d;else{for(b=Math.max(m.length,b),k=[],S=0;S=_));S++)k.push(T);for(S=_;S{"use strict";var Zxe=un(),Kxe=xi(),Cf=it(),xM=Qo(),Jxe=Fs(),bM=Jxe.cleanId,J8t=Jxe.getFromTrace,Jj=Kxe.traceIs,Q8t=["x","y","z"];Ad.clearPromiseQueue=function(e){Array.isArray(e._promises)&&e._promises.length>0&&Cf.log("Clearing previous rejected promises from queue."),e._promises=[]};Ad.cleanLayout=function(e){var t,r;e||(e={}),e.xaxis1&&(e.xaxis||(e.xaxis=e.xaxis1),delete e.xaxis1),e.yaxis1&&(e.yaxis||(e.yaxis=e.yaxis1),delete e.yaxis1),e.scene1&&(e.scene||(e.scene=e.scene1),delete e.scene1);var i=(xM.subplotsRegistry.cartesian||{}).attrRegex,n=(xM.subplotsRegistry.polar||{}).attrRegex,a=(xM.subplotsRegistry.ternary||{}).attrRegex,o=(xM.subplotsRegistry.gl3d||{}).attrRegex,s=Object.keys(e);for(t=0;t3?(m.x=1.02,m.xanchor="left"):m.x<-2&&(m.x=-.02,m.xanchor="right"),m.y>3?(m.y=1.02,m.yanchor="bottom"):m.y<-2&&(m.y=-.02,m.yanchor="top")),e.dragmode==="rotate"&&(e.dragmode="orbit"),e.template&&e.template.layout&&Ad.cleanLayout(e.template.layout),e};function Zw(e,t,r=!1){var i=e[t],n=t.charAt(0);r&&Array.isArray(i)||i&&i!=="paper"&&(e[t]=bM(i,n,!0))}Ad.cleanData=function(e){for(var t=0;t0)return e.slice(0,t)}Ad.hasParent=function(e,t){for(var r=Xxe(t);r;){if(r in e)return!0;r=Xxe(r)}return!1};Ad.clearAxisTypes=function(e,t,r){for(var i=0;i{let r=(...i)=>i.every(n=>Cf.isPlainObject(n))||i.every(n=>Array.isArray(n));if([e,t].every(i=>Array.isArray(i))){if(e.length!==t.length)return!1;for(let i=0;iCf.isPlainObject(i))){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(let i in e){if(i.startsWith("_"))continue;let n=e[i],a=t[i];if(n!==a&&!(r(n,a)?Qj(n,a):!1))return!1}return!0}return!1};Ad.collectionsAreEqual=Qj});var FF=W(Da=>{"use strict";var wF=gi(),rDt=un(),iDt=aG(),hi=it(),ts=hi.nestedProperty,t$=xw(),ah=jde(),Md=xi(),CF=ww(),Pn=Qo(),Df=Wi(),nDt=TH(),aDt=nc(),bF=en(),oDt=ai(),sDt=Xj().initInteractions,lDt=(vd(),Pt(pd)),uDt=yu().clearOutline,nbe=my().dfltConfig,xF=$xe(),Pl=Qxe(),yo=KA(),Wy=cs(),cDt=(Wl(),Pt($l)).AX_NAME_PATTERN,e$=0,ebe=5;function fDt(e,t,r,i){var n;if(e=hi.getGraphDiv(e),t$.init(e),hi.isPlainObject(t)){var a=t;t=a.data,r=a.layout,i=a.config,n=a.frames}var o=t$.triggerHandler(e,"plotly_beforeplot",[t,r,i]);if(o===!1)return Promise.reject();!t&&!r&&!hi.isPlotDiv(e)&&hi.warn("Calling _doPlot as if redrawing but this container doesn't yet have a plot.",e);function s(){if(n)return Da.addFrames(e,n)}obe(e,i),r||(r={}),wF.select(e).classed("js-plotly-plot",!0),bF.makeTester(),Array.isArray(e._promises)||(e._promises=[]);var l=(e.data||[]).length===0&&Array.isArray(t);Array.isArray(t)&&(Pl.cleanData(t),l?e.data=t:e.data.push.apply(e.data,t),e.empty=!1),(!e.layout||l)&&(e.layout=Pl.cleanLayout(r)),Pn.supplyDefaults(e);var u=e._fullLayout,c=u._has("cartesian");u._replotting=!0,(l||u._shouldCreateBgLayer)&&(RDt(e),u._shouldCreateBgLayer&&delete u._shouldCreateBgLayer),bF.initGradients(e),bF.initPatterns(e),l&&Df.saveShowSpikeInitial(e);var f=!e.calcdata||e.calcdata.length!==(e._fullData||[]).length;f&&Pn.doCalcdata(e);for(var h=0;h{hi.isHidden(e)||Pn.resize(e)};if(e._context.fillFrame||typeof ResizeObserver=="undefined")window.addEventListener("resize",A),e._clearResponsive=()=>window.removeEventListener("resize",A);else{let y=e.offsetWidth,E=e.offsetHeight,M=new ResizeObserver(()=>{let C=e.offsetWidth,k=e.offsetHeight,D=Math.abs(C-y)>1||Math.abs(k-E)>1;y=C,E=k,D&&C&&k&&A()});M.observe(e),e._clearResponsive=()=>M.disconnect()}}}else hi.clearResponsive(e);let p=document.fonts?[...document.fonts].filter(A=>A.status!=="loaded"):[];var d=hi.extendFlat({},u._size),v=0;function m(){for(var A=u._basePlotModules,y=0;y["loaded","loading"].includes(n.status));if(!r.length)return;let i={};e._fontLoadToken=i,yield Promise.all(r.map(n=>n.loaded.catch(()=>{}))),e._fontLoadToken===i&&(delete e._fontLoadToken,bF.savedBBoxes={},Da._doPlot(e))})}function wM(e){var t=e._fullLayout;t._redrawFromAutoMarginCount?t._redrawFromAutoMarginCount--:e.emit("plotly_afterplot")}function dDt(e){return hi.extendFlat(nbe,e)}function abe(e,t){try{e._fullLayout._paper.style("background",t)}catch(r){hi.error(r)}}function pDt(e,t){var r=oDt.combine(t,"white");abe(e,r)}function obe(e,t){if(!e._context){e._context=hi.extendDeep({},nbe);var r=wF.select("base");e._context._baseUrl=r.size()&&r.attr("href")?window.location.href.split("#")[0]:""}var i=e._context,n,a,o;if(t){for(a=Object.keys(t),n=0;n=e.data.length||n<-e.data.length)throw new Error(r+" must be valid indices for gd.data.");if(t.indexOf(n,i+1)>-1||n>=0&&t.indexOf(-e.data.length+n)>-1||n<0&&t.indexOf(e.data.length+n)>-1)throw new Error("each index in "+r+" must be unique.")}}function sbe(e,t,r){if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(typeof t=="undefined")throw new Error("currentIndices is a required argument.");if(Array.isArray(t)||(t=[t]),AF(e,t,"currentIndices"),typeof r!="undefined"&&!Array.isArray(r)&&(r=[r]),typeof r!="undefined"&&AF(e,r,"newIndices"),typeof r!="undefined"&&t.length!==r.length)throw new Error("current and new indices must be of equal length.")}function mDt(e,t,r){var i,n;if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(typeof t=="undefined")throw new Error("traces must be defined.");for(Array.isArray(t)||(t=[t]),i=0;i=0&&c=0&&c0&&typeof A.parts[M]!="string";)M--;var C=A.parts[M],k=A.parts[M-1]+"."+C,D=A.parts.slice(0,M).join("."),L=ts(e.layout,D).get(),P=ts(i,D).get(),R=A.get();if(y!==void 0){g[T]=y,w[T]=C==="reverse"?y:Xg(R);var F=CF.getLayoutValObject(i,A.parts);if(F&&F.impliedEdits&&y!==null)for(var I in F.impliedEdits)_(hi.relativeAttr(T,I),F.impliedEdits[I]);if(["width","height"].indexOf(T)!==-1)if(y){_("autosize",null);var B=T==="height"?"width":"height";_(B,i[B])}else i[T]=e._initialAutoSize[T];else if(T==="autosize")_("width",y?null:i.width),_("height",y?null:i.height);else if(k.match(gbe))x(k),ts(i,D+"._inputRange").set(null);else if(k.match(mbe)){x(k),ts(i,D+"._inputRange").set(null);var O=ts(i,D).get();O._inputDomain&&(O._input.domain=O._inputDomain.slice())}else k.match(_Dt)&&ts(i,D+"._inputDomain").set(null);if(C==="type"){S=L;var $=P.type==="linear"&&y==="log",Y=P.type==="log"&&y==="linear";if($||Y){if(!S||!S.range)_(D+".autorange",!0);else if(P.autorange)$&&(S.range=S.range[1]>S.range[0]?[1,2]:[2,1]);else{var K=S.range[0],j=S.range[1];$?(K<=0&&j<=0&&_(D+".autorange",!0),K<=0?K=j/1e6:j<=0&&(j=K/1e6),_(D+".range[0]",Math.log(K)/Math.LN10),_(D+".range[1]",Math.log(j)/Math.LN10)):(_(D+".range[0]",Math.pow(10,K)),_(D+".range[1]",Math.pow(10,j)))}Array.isArray(i._subplots.polar)&&i._subplots.polar.length&&i[A.parts[0]]&&A.parts[1]==="radialaxis"&&delete i[A.parts[0]]._subplot.viewInitial["radialaxis.range"],Md.getComponentMethod("annotations","convertCoords")(e,P,y,_),Md.getComponentMethod("images","convertCoords")(e,P,y,_)}else _(D+".autorange",!0),_(D+".range",null);ts(i,D+"._inputRange").set(null)}else if(C.match(cDt)){var q=ts(i,T).get(),Q=(y||{}).type;(!Q||Q==="-")&&(Q="linear"),Md.getComponentMethod("annotations","convertCoords")(e,q,Q,_),Md.getComponentMethod("images","convertCoords")(e,q,Q,_)}var U=xF.containerArrayMatch(T);if(U){c=U.array,f=U.index;var V=U.property,X=F||{editType:"calc"};f!==""&&V===""&&(xF.isAddVal(y)?w[T]=null:xF.isRemoveVal(y)?w[T]=(ts(r,c).get()||[])[f]:hi.warn("unrecognized full object value",t)),Wy.update(m,X),u[c]||(u[c]={});var G=u[c][f];G||(G=u[c][f]={}),G[V]=y,delete t[T]}else C==="reverse"?(L.range?L.range.reverse():(_(D+".autorange",!0),L.range=[1,0]),P.autorange?m.calc=!0:m.plot=!0):(T==="dragmode"&&(y===!1&&R!==!1||y!==!1&&R===!1)||i._has("scatter-like")&&i._has("regl")&&T==="dragmode"&&(y==="lasso"||y==="select")&&!(R==="lasso"||R==="select")?m.plot=!0:F?Wy.update(m,F):m.calc=!0,A.set(y))}}for(c in u){var H=xF.applyContainerArrayChanges(e,a(r,c),u[c],m,a);H||(m.plot=!0)}for(var J in b){S=Df.getFromId(e,J);var te=S&&S._constraintGroup;if(te){m.calc=!0;for(var ue in te)b[ue]||(Df.getFromId(e,ue)._constraintShrinkable=!0)}}(xbe(e)||t.height||t.width)&&(m.plot=!0);var ge=i.shapes;for(f=0;f1;)if(i.pop(),r=ts(t,i.join(".")+".uirevision").get(),r!==void 0)return r;return t.uirevision}function ADt(e,t){for(var r=0;r[D,e._ev.listeners(D)]);a=Da.newPlot(e,t,r,i).then(()=>{for(let[D,L]of k)L.forEach(P=>e.on(D,P));return Da.react(e,t,r,i)})}else{e.data=t||[],Pl.cleanData(e.data),e.layout=r||{},Pl.cleanLayout(e.layout),SDt(e.data,e.layout,s,l),Pn.supplyDefaults(e,{skipUpdateCalc:!0});var f=e._fullData,h=e._fullLayout,p=h.datarevision===void 0,d=h.transition,v=CDt(e,l,h,p,d),m=v.newDataRevision,g=kDt(e,s,f,p,d,m);if(xbe(e)&&(v.layoutReplot=!0),g.calc||v.calc){e.calcdata=void 0;for(var w=Object.getOwnPropertyNames(h),_=0;_(c||e.emit("plotly_react",{config:i,data:t,layout:r}),e))}function kDt(e,t,r,i,n,a){var o=t.length===r.length;if(!n&&!o)return{fullReplot:!0,calc:!0};var s=Wy.traceFlags();s.arrays={},s.nChanges=0,s.nChangesAnim=0;var l,u;function c(p){var d=CF.getTraceValObject(u,p);return!u._module.animatable&&d.anim&&(d.anim=!1),d}var f={getValObject:c,flags:s,immutable:i,transition:n,newDataRevision:a,gd:e},h={};for(l=0;l=n.length?n[0]:n[u]:n}function s(u){return Array.isArray(a)?u>=a.length?a[0]:a[u]:a}function l(u,c){var f=0;return function(){if(u&&++f===c)return u()}}return new Promise(function(u,c){function f(){if(i._frameQueue.length!==0){for(;i._frameQueue.length;){var C=i._frameQueue.pop();C.onInterrupt&&C.onInterrupt()}e.emit("plotly_animationinterrupted",[])}}function h(C){if(C.length!==0){for(var k=0;ki._timeToNext&&d()};C()}var m=0;function g(C){return Array.isArray(n)?m>=n.length?C.transitionOpts=n[m]:C.transitionOpts=n[0]:C.transitionOpts=n,m++,C}var w,_,b=[],S=t==null,x=Array.isArray(t),T=!S&&!x&&hi.isPlainObject(t);if(T)b.push({type:"object",data:g(hi.extendFlat({},t))});else if(S||["string","number"].indexOf(typeof t)!==-1)for(w=0;w0&&EE)&&M.push(_);b=M}}b.length>0?h(b):(e.emit("plotly_animated"),u())})}function FDt(e,t,r){if(e=hi.getGraphDiv(e),t==null)return Promise.resolve();if(!hi.isPlotDiv(e))throw new Error("This element is not a Plotly plot: "+e+". It's likely that you've failed to create a plot before adding frames. For more details, see https://plotly.com/javascript/animations/");var i,n,a,o,s=e._transitionData._frames,l=e._transitionData._frameHash;if(!Array.isArray(t))throw new Error("addFrames failure: frameList must be an Array of frame definitions"+t);var u=s.length+t.length*2,c=[],f={};for(i=t.length-1;i>=0;i--)if(hi.isPlainObject(t[i])){var h=t[i].name,p=(l[h]||f[h]||{}).name,d=t[i].name,v=l[p]||f[p];p&&d&&typeof d=="number"&&v&&e$A.index?-1:T.index=0;i--){if(n=c[i].frame,typeof n.name=="number"&&hi.warn("Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings"),!n.name)for(;l[n.name="frame "+e._transitionData._counter++];);if(l[n.name]){for(a=0;a=0;r--)i=t[r],a.push({type:"delete",index:i}),o.unshift({type:"insert",index:i,value:n[i]});var s=Pn.modifyFrames,l=Pn.modifyFrames,u=[e,o],c=[e,a];return ah&&ah.add(e,s,u,l,c),Pn.modifyFrames(e,a)}function PDt(e){e=hi.getGraphDiv(e);var t=e._fullLayout||{},r=e._fullData||[];return Pn.cleanPlot([],{},r,t),Pn.purge(e),t$.purge(e),t._container&&t._container.remove(),delete e._context,e}function IDt(e){var t=e._fullLayout,r=e.getBoundingClientRect();if(!hi.equalDomRects(r,t._lastBBox)){var i=t._invTransform=hi.inverseTransformMatrix(hi.getFullTransformMatrix(e));t._invScaleX=Math.sqrt(i[0][0]*i[0][0]+i[0][1]*i[0][1]+i[0][2]*i[0][2]),t._invScaleY=Math.sqrt(i[1][0]*i[1][0]+i[1][1]*i[1][1]+i[1][2]*i[1][2]),t._lastBBox=r}}function RDt(e){var t=wF.select(e),r=e._fullLayout;if(r._calcInverseTransform=IDt,r._calcInverseTransform(e),r._container=t.selectAll(".plot-container").data([0]),r._container.enter().insert("div",":first-child").classed("plot-container",!0).classed("plotly",!0).style({width:"100%",height:"100%"}),r._paperdiv=r._container.selectAll(".svg-container").data([0]),r._paperdiv.enter().append("div").classed("user-select-none",!0).classed("svg-container",!0).style("position","relative"),r._glcontainer=r._paperdiv.selectAll(".gl-container").data([{}]),r._glcontainer.enter().append("div").classed("gl-container",!0),r._paperdiv.selectAll(".main-svg").remove(),r._paperdiv.select(".modebar-container").remove(),r._paper=r._paperdiv.insert("svg",":first-child").classed("main-svg",!0),r._toppaper=r._paperdiv.append("svg").classed("main-svg",!0),r._modebardiv=r._paperdiv.append("div"),delete r._modeBar,r._hoverpaper=r._paperdiv.append("svg").classed("main-svg",!0),!r._uid){var i={};wF.selectAll("defs").each(function(){this.id&&(i[this.id.split("-")[1]]=1)}),r._uid=hi.randstr(i)}r._paperdiv.selectAll(".main-svg").attr(lDt.svgAttrs),r._defs=r._paper.append("defs").attr("id","defs-"+r._uid),r._clips=r._defs.append("g").classed("clips",!0),r._topdefs=r._toppaper.append("defs").attr("id","topdefs-"+r._uid),r._topclips=r._topdefs.append("g").classed("clips",!0),r._bgLayer=r._paper.append("g").classed("bglayer",!0),r._draggers=r._paper.append("g").classed("draglayer",!0);var n=r._paper.append("g").classed("layer-below",!0);r._imageLowerLayer=n.append("g").classed("imagelayer",!0),r._shapeLowerLayer=n.append("g").classed("shapelayer",!0),r._cartesianlayer=r._paper.append("g").classed("cartesianlayer",!0),r._polarlayer=r._paper.append("g").classed("polarlayer",!0),r._smithlayer=r._paper.append("g").classed("smithlayer",!0),r._ternarylayer=r._paper.append("g").classed("ternarylayer",!0),r._geolayer=r._paper.append("g").classed("geolayer",!0),r._funnelarealayer=r._paper.append("g").classed("funnelarealayer",!0),r._pielayer=r._paper.append("g").classed("pielayer",!0),r._iciclelayer=r._paper.append("g").classed("iciclelayer",!0),r._treemaplayer=r._paper.append("g").classed("treemaplayer",!0),r._sunburstlayer=r._paper.append("g").classed("sunburstlayer",!0),r._indicatorlayer=r._toppaper.append("g").classed("indicatorlayer",!0),r._glimages=r._paper.append("g").classed("glimages",!0);var a=r._toppaper.append("g").classed("layer-above",!0);r._imageUpperLayer=a.append("g").classed("imagelayer",!0),r._shapeUpperLayer=a.append("g").classed("shapelayer",!0),r._selectionLayer=r._toppaper.append("g").classed("selectionlayer",!0),r._infolayer=r._toppaper.append("g").classed("infolayer",!0),r._menulayer=r._toppaper.append("g").classed("menulayer",!0),r._zoomlayer=r._toppaper.append("g").classed("zoomlayer",!0),r._hoverlayer=r._hoverpaper.append("g").classed("hoverlayer",!0),r._modebardiv.classed("modebar-container",!0).style("position","absolute").style("top","0px").style("right","0px"),e.emit("plotly_framework")}Da.animate=DDt;Da.addFrames=FDt;Da.deleteFrames=LDt;Da.addTraces=hbe;Da.deleteTraces=dbe;Da.extendTraces=cbe;Da.moveTraces=r$;Da.prependTraces=fbe;Da.newPlot=gDt;Da._doPlot=fDt;Da.purge=PDt;Da.react=EDt;Da.redraw=vDt;Da.relayout=_M;Da.restyle=MF;Da.setPlotConfig=dDt;Da.update=EF;Da._guiRelayout=i$(_M);Da._guiRestyle=i$(MF);Da._guiUpdate=i$(EF);Da._storeDirectGUIEdit=bDt});var Zg=W(Sd=>{"use strict";var zDt=xi();Sd.getDelay=function(e){return e._has&&(e._has("gl3d")||e._has("map"))?500:0};Sd.getRedrawFunc=function(e){return function(){zDt.getComponentMethod("colorbar","draw")(e)}};Sd.encodeSVG=function(e){return"data:image/svg+xml,"+encodeURIComponent(e)};Sd.encodeJSON=function(e){return"data:application/json,"+encodeURIComponent(e)};var bbe=window.URL||window.webkitURL;Sd.createObjectURL=function(e){return bbe.createObjectURL(e)};Sd.revokeObjectURL=function(e){return bbe.revokeObjectURL(e)};Sd.createBlob=function(e,t){if(t==="svg")return new window.Blob([e],{type:"image/svg+xml;charset=utf-8"});if(t==="full-json")return new window.Blob([e],{type:"application/json;charset=utf-8"});var r=BDt(window.atob(e));return new window.Blob([r],{type:"image/"+t})};Sd.octetStream=function(e){document.location.href="data:application/octet-stream"+e};Sd.getPlotTitle=function(e){var i,n,a,o;var t=e._fullLayout;if(t){var r=(i=t.title)==null?void 0:i.text;return r===((n=t._dfltTitle)==null?void 0:n.plot)?void 0:r}return(o=(a=e.layout)==null?void 0:a.title)==null?void 0:o.text};Sd.getPlotSubtitle=function(e){var i,n,a,o,s,l;var t=e._fullLayout;if(t){var r=(n=(i=t.title)==null?void 0:i.subtitle)==null?void 0:n.text;return r===((a=t._dfltTitle)==null?void 0:a.subtitle)?void 0:r}return(l=(s=(o=e.layout)==null?void 0:o.title)==null?void 0:s.subtitle)==null?void 0:l.text};function BDt(e){for(var t=e.length,r=new ArrayBuffer(t),i=new Uint8Array(r),n=0;n{"use strict";var a$=gi(),INr=it(),qDt=en(),ODt=ai(),RNr=(vd(),Pt(pd)),n$=/"/g,Cb="TOBESTRIPPED",NDt=new RegExp(`("${Cb})|(${Cb}")|("${Cb})|(${Cb}")`,"g"),UDt=["&","&","&",""",""",""","'","'","'"],VDt=["<","<","<"],GDt=[">",">",">"];function HDt(e){let t=a$.select("body").append("div").style({display:"none"}).html(""),r=e.replace(/(&[^;]*;)/gi,i=>{let n=i.toLowerCase();return UDt.includes(n)?i:VDt.includes(n)?"<":GDt.includes(n)?">":i.includes("<")||i.includes(">")?"":t.html(i).text()});return t.remove(),r}function jDt(e){return e.replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&")}_be.exports=function(t,r,i){var n=t._fullLayout,a=n._paper,o=n._toppaper,s=n.width,l=n.height,u;a.insert("rect",":first-child").call(qDt.setRect,0,0,s,l).call(ODt.fill,n.paper_bgcolor);var c=n._basePlotModules||[];for(u=0;u{"use strict";var $Dt=it(),WDt=rb().EventEmitter,TM=Zg();function YDt(e){var t=e.emitter||new WDt,r=new Promise(function(i,n){var a=window.Image,o=e.svg,s=e.format||"png",l=e.canvas,u=e.scale||1,c=e.width||300,f=e.height||150,h=u*c,p=u*f,d=l.getContext("2d",{willReadFrequently:!0}),v=new a,m,g;s==="svg"||$Dt.isSafari()?g=TM.encodeSVG(o):(m=TM.createBlob(o,"svg"),g=TM.createObjectURL(m)),l.width=h,l.height=p,v.onload=function(){var w;switch(m=null,TM.revokeObjectURL(g),s!=="svg"&&d.drawImage(v,0,0,h,p),s){case"jpeg":w=l.toDataURL("image/jpeg");break;case"png":w=l.toDataURL("image/png");break;case"webp":w=l.toDataURL("image/webp");break;case"svg":w=g;break;default:var _="Image format is not jpeg, png, svg or webp.";if(n(new Error(_)),!e.promise)return t.emit("error",_)}i(w),e.promise||t.emit("success",w)},v.onerror=function(w){if(m=null,TM.revokeObjectURL(g),n(w),!e.promise)return t.emit("error",w)},v.src=g});return e.promise?r:t}wbe.exports=YDt});var s$=W((qNr,Mbe)=>{"use strict";var Tbe=un(),Abe=FF(),XDt=Qo(),S1=it(),AM=Zg(),ZDt=LF(),KDt=PF(),JDt=OT().version,o$=(AV(),Pt(TV)).default;function QDt(e,t){t=t||{};var r,i,n,a;S1.isPlainObject(e)?(r=e.data||[],i=e.layout||{},n=e.config||{},a={}):(e=S1.getGraphDiv(e),r=S1.extendDeep([],e.data),i=S1.extendDeep({},e.layout),n=e._context,a=e._fullLayout||{});function o(x){return!(x in t)||S1.validate(t[x],o$[x])}if(!o("width")&&t.width!==null||!o("height")&&t.height!==null)throw new Error("Height and width should be pixel values.");if(!o("format"))throw new Error("Export format is not "+S1.join2(o$.format.values,", "," or ")+".");var s={};function l(x,T){return S1.coerce(t,s,o$,x,T)}var u=l("format"),c=l("width"),f=l("height"),h=l("scale"),p=l("setBackground"),d=l("imageDataOnly"),v=document.createElement("div");v.style.position="absolute",v.style.left="-5000px",document.body.appendChild(v);var m=S1.extendFlat({},i);c?m.width=c:t.width===null&&Tbe(a.width)&&(m.width=a.width),f?m.height=f:t.height===null&&Tbe(a.height)&&(m.height=a.height);var g=S1.extendFlat({},n,{_exportedPlot:!0,staticPlot:!0,setBackground:p}),w=AM.getRedrawFunc(v);function _(){return new Promise(function(x){setTimeout(x,AM.getDelay(v._fullLayout))})}function b(){return new Promise(function(x,T){var A=ZDt(v,u,h),y=v._fullLayout.width,E=v._fullLayout.height;function M(){Abe.purge(v),document.body.removeChild(v)}if(u==="full-json"){var C=XDt.graphJson(v,!1,"object",!0,!0);return C.version=JDt,C=JSON.stringify(C),M(),x(d?C:AM.encodeJSON(C))}if(M(),u==="svg")return x(d?A:AM.encodeSVG(A));var k=document.createElement("canvas");k.id=S1.randstr(),KDt({format:u,width:y,height:E,scale:h,canvas:k,svg:A,promise:!0}).then(x).catch(T)})}function S(x){return d?x.replace(AM.IMAGE_URL_PREFIX,""):x}return new Promise(function(x,T){Abe.newPlot(v,r,m,g).then(w).then(_).then(b).then(function(A){x(S(A))}).catch(function(A){T(A)})})}Mbe.exports=QDt});var kbe=W((ONr,Ebe)=>{"use strict";var Ed=it(),e7t=Qo(),t7t=ww(),r7t=my().dfltConfig,Xp=Ed.isPlainObject,Fb=Array.isArray,l$=Ed.isArrayOrTypedArray;Ebe.exports=function(t,r){t===void 0&&(t=[]),r===void 0&&(r={});var i=t7t.get(),n=[],a={_context:Ed.extendFlat({},r7t)},o,s;Fb(t)?(a.data=Ed.extendDeep([],t),o=t):(a.data=[],o=[],n.push(Nu("array","data"))),Xp(r)?(a.layout=Ed.extendDeep({},r),s=r):(a.layout={},s={},arguments.length>1&&n.push(Nu("object","layout"))),e7t.supplyDefaults(a);for(var l=a._fullData,u=o.length,c=0;cf.length&&i.push(Nu("unused",n,u.concat(f.length)));var g=f.length,w=Array.isArray(m);w&&(g=Math.min(g,m.length));var _,b,S,x,T;if(h.dimensions===2)for(b=0;bf[b].length&&i.push(Nu("unused",n,u.concat(b,f[b].length)));var A=f[b].length;for(_=0;_<(w?Math.min(A,m[b].length):A);_++)S=w?m[b][_]:m,x=c[b][_],T=f[b][_],Ed.validate(x,S)?T!==x&&T!==+x&&i.push(Nu("dynamic",n,u.concat(b,_),x,T)):i.push(Nu("value",n,u.concat(b,_),x))}else i.push(Nu("array",n,u.concat(b),c[b]));else for(b=0;b{"use strict";var u7t=it(),RF=Zg();function c7t(e,t,r){var i=document.createElement("a"),n="download"in i,a=new Promise(function(o,s){var l,u;if(n)return l=RF.createBlob(e,r),u=RF.createObjectURL(l),i.href=u,i.download=t,document.body.appendChild(i),i.click(),document.body.removeChild(i),RF.revokeObjectURL(u),l=null,o(t);if(u7t.isSafari()){var c=r==="svg"?",":";base64,";return RF.octetStream(c+encodeURIComponent(e)),o(t)}s(new Error("download error"))});return a}Cbe.exports=c7t});var u$=W((UNr,Ibe)=>{"use strict";var zF=it(),Fbe=ho(),f7t=s$(),h7t=Dbe(),Lbe=Zg(),Pbe=40;function d7t(e,t){var r;return zF.isPlainObject(e)||(r=zF.getGraphDiv(e)),t=t||{},t.format=t.format||"png",t.width=t.width||null,t.height=t.height||null,t.imageDataOnly=!0,new Promise(function(i,n){r&&r._snapshotInProgress&&n(new Error("Image capture already in progress.")),r&&(r._snapshotInProgress=!0);var a=f7t(e,t),o=t.filename||e.fn;if(!o){let l=Lbe.getPlotTitle(e);if(l&&!Fbe.matchTex(l))o=zF.slugify(l,Pbe);else{let u=Lbe.getPlotSubtitle(e);u&&!Fbe.matchTex(u)&&(o=zF.slugify(u,Pbe))}}var s=o||"plot-image";s+="."+t.format.replace("-","."),a.then(function(l){return r&&(r._snapshotInProgress=!1),h7t(l,s,t.format)}).then(function(l){i(l)}).catch(function(l){r&&(r._snapshotInProgress=!1),n(l)})})}Ibe.exports=d7t});var Obe=W(c$=>{"use strict";var Gh=it(),Hh=Gh.isPlainObject,Rbe=ww(),zbe=Qo(),p7t=Ka(),Bbe=Ia(),qbe=my().dfltConfig;c$.makeTemplate=function(e){e=Gh.isPlainObject(e)?e:Gh.getGraphDiv(e),e=Gh.extendDeep({_context:qbe},{data:e.data,layout:e.layout}),zbe.supplyDefaults(e);var t=e.data||[],r=e.layout||{};r._basePlotModules=e._fullLayout._basePlotModules,r._modules=e._fullLayout._modules;var i={data:{},layout:{}};t.forEach(function(p){var d={};MM(p,d,g7t.bind(null,p));var v=Gh.coerce(p,{},p7t,"type"),m=i.data[v];m||(m=i.data[v]=[]),m.push(d)}),MM(r,i.layout,v7t.bind(null,r)),delete i.layout.template;var n=r.template;if(Hh(n)){var a=n.layout,o,s,l,u,c,f;Hh(a)&&BF(a,i.layout);var h=n.data;if(Hh(h)){for(s in i.data)if(l=h[s],Array.isArray(l)){for(c=i.data[s],f=c.length,u=l.length,o=0;og?o.push({code:"unused",traceType:p,templateCount:m,dataCount:g}):g>m&&o.push({code:"reused",traceType:p,templateCount:m,dataCount:g})}}function w(_,b){for(var S in _)if(S.charAt(0)!=="_"){var x=_[S],T=kd(_,S,b);Hh(x)?(Array.isArray(_)&&x._template===!1&&x.templateitemname&&o.push({code:"missing",path:T,templateitemname:x.templateitemname}),w(x,T)):Array.isArray(x)&&m7t(x)&&w(x,T)}}if(w({data:l,layout:s},""),o.length)return o.map(y7t)};function m7t(e){for(var t=0;t{"use strict";var xu=FF();Ms._doPlot=xu._doPlot;Ms.newPlot=xu.newPlot;Ms.restyle=xu.restyle;Ms.relayout=xu.relayout;Ms.redraw=xu.redraw;Ms.update=xu.update;Ms._guiRestyle=xu._guiRestyle;Ms._guiRelayout=xu._guiRelayout;Ms._guiUpdate=xu._guiUpdate;Ms._storeDirectGUIEdit=xu._storeDirectGUIEdit;Ms.react=xu.react;Ms.extendTraces=xu.extendTraces;Ms.prependTraces=xu.prependTraces;Ms.addTraces=xu.addTraces;Ms.deleteTraces=xu.deleteTraces;Ms.moveTraces=xu.moveTraces;Ms.purge=xu.purge;Ms.addFrames=xu.addFrames;Ms.deleteFrames=xu.deleteFrames;Ms.animate=xu.animate;Ms.setPlotConfig=xu.setPlotConfig;var x7t=fA().getGraphDiv,b7t=X7().eraseActiveShape;Ms.deleteActiveShape=function(e){return b7t(x7t(e))};Ms.toImage=s$();Ms.validate=kbe();Ms.downloadImage=u$();var Nbe=Obe();Ms.makeTemplate=Nbe.makeTemplate;Ms.validateTemplate=Nbe.validateTemplate});var Lb=W((HNr,Vbe)=>{"use strict";var f$=it(),_7t=xi();Vbe.exports=function(t,r,i,n){var a=n("x"),o=n("y"),s,l=_7t.getComponentMethod("calendars","handleTraceDefaults");if(l(t,r,["x","y"],i),a){var u=f$.minRowLength(a);o?s=Math.min(u,f$.minRowLength(o)):(s=u,n("y0"),n("dy"))}else{if(!o)return 0;s=f$.minRowLength(o),n("x0"),n("dx")}return r._length=s,s}});var Zp=W((jNr,jbe)=>{"use strict";var Gbe=it().dateTick0,w7t=(ta(),Pt(ra)),T7t=w7t.ONEWEEK;function Hbe(e,t){return e%T7t===0?Gbe(t,1):Gbe(t,0)}jbe.exports=function(t,r,i,n,a){if(a||(a={x:!0,y:!0}),a.x){var o=n("xperiod");o&&(n("xperiod0",Hbe(o,r.xcalendar)),n("xperiodalignment"))}if(a.y){var s=n("yperiod");s&&(n("yperiod0",Hbe(s,r.ycalendar)),n("yperiodalignment"))}}});var Ybe=W(($Nr,Wbe)=>{"use strict";var $be=["orientation","groupnorm","stackgaps"];Wbe.exports=function(t,r,i,n){var a=i._scatterStackOpts,o=n("stackgroup");if(o){var s=r.xaxis+r.yaxis,l=a[s];l||(l=a[s]={});var u=l[o],c=!1;u?u.traces.push(r):(u=l[o]={traceIndices:[],traces:[r]},c=!0);for(var f={orientation:r.x&&!r.y?"h":"v"},h=0;h<$be.length;h++){var p=$be[h],d=p+"Found";if(!u[d]){var v=t[p]!==void 0,m=p==="orientation";if((v||c)&&(u[p]=n(p,f[p]),m&&(u.fillDflt=u[p]==="h"?"tonextx":"tonexty"),v&&(u[d]=!0,!c&&(delete u.traces[0][p],m))))for(var g=0;g{"use strict";var Xbe=ai(),Zbe=Mc().hasColorscale,Kbe=zu(),A7t=Wo();Jbe.exports=function(t,r,i,n,a,o={}){var s=A7t.isBubble(t),l=(t.line||{}).color,u;if(l&&(i=l),a("marker.symbol"),a("marker.opacity",s?.7:1),a("marker.size"),o.noAngle||(a("marker.angle"),o.noAngleRef||a("marker.angleref"),o.noStandOff||a("marker.standoff")),a("marker.color",i),Zbe(t,"marker")&&Kbe(t,r,n,a,{prefix:"marker.",cLetter:"c"}),o.noSelect||(a("selected.marker.color"),a("unselected.marker.color"),a("selected.marker.size"),a("unselected.marker.size")),o.noLine||(l&&!Array.isArray(l)&&r.marker.color!==l?u=l:s?u=Xbe.background:u=Xbe.defaultLine,a("marker.line.color",u),Zbe(t,"marker.line")&&Kbe(t,r,n,a,{prefix:"marker.line.",cLetter:"c"}),a("marker.line.width",s?1:0),o.noLineDash||a("marker.line.dash")),s&&(a("marker.sizeref"),a("marker.sizemin"),a("marker.sizemode")),o.gradient){var c=a("marker.gradient.type");c!=="none"&&a("marker.gradient.color")}}});var Kp=W((YNr,Qbe)=>{"use strict";var M7t=it().isArrayOrTypedArray,S7t=Mc().hasColorscale,E7t=zu();Qbe.exports=function(t,r,i,n,a,o){o||(o={});var s=(t.marker||{}).color;if(s&&s._inputArray&&(s=s._inputArray),a("line.color",i),S7t(t,"line"))E7t(t,r,n,a,{prefix:"line.",cLetter:"c"});else{var l=(M7t(s)?!1:s)||i;a("line.color",l)}a("line.width"),o.noDash||a("line.dash"),o.backoff&&a("line.backoff")}});var Kw=W((XNr,e_e)=>{"use strict";e_e.exports=function(t,r,i){var n=i("line.shape");n==="spline"&&i("line.smoothing")}});var Jp=W((ZNr,t_e)=>{"use strict";var k7t=it();t_e.exports=function(e,t,r,i,n){n=n||{},i("textposition"),k7t.coerceFont(i,"textfont",n.font||r.font,n),n.noSelect||(i("selected.textfont.color"),i("unselected.textfont.color"))}});var E1=W((KNr,i_e)=>{"use strict";var OF=ai(),r_e=it().isArrayOrTypedArray;function C7t(e){for(var t=OF.interpolate(e[0][1],e[1][1],.5),r=2;r{"use strict";var n_e=it(),D7t=xi(),F7t=Hs(),L7t=(A1(),Pt(T1)),Jw=Wo(),P7t=Lb(),I7t=Zp(),R7t=Ybe(),z7t=Cd(),B7t=Kp(),a_e=Kw(),q7t=Jp(),O7t=E1(),N7t=it().coercePattern;o_e.exports=function(t,r,i,n){function a(p,d){return n_e.coerce(t,r,F7t,p,d)}var o=P7t(t,r,n,a);if(o||(r.visible=!1),!!r.visible){I7t(t,r,n,a),a("xhoverformat"),a("yhoverformat"),a("zorder");var s=R7t(t,r,n,a);n.scattermode==="group"&&r.orientation===void 0&&a("orientation","v");var l=!s&&o{"use strict";var U7t=kb().getAxisGroup;l_e.exports=function(t,r,i,n,a){var o=r.orientation,s=r[{v:"x",h:"y"}[o]+"axis"],l=U7t(i,s)+o,u=i._alignmentOpts||{},c=n("alignmentgroup"),f=u[l];f||(f=u[l]={});var h=f[c];h?h.traces.push(r):h=f[c]={traces:[r],alignmentIndex:Object.keys(f).length,offsetGroups:{}};var p=n("offsetgroup")||"",d=h.offsetGroups,v=d[p];r._offsetIndex=0,(a!=="group"||p)&&(v||(v=d[p]={offsetIndex:Object.keys(d).length}),r._offsetIndex=v.offsetIndex)}});var h$=W((eUr,u_e)=>{"use strict";var V7t=it(),G7t=Pb(),H7t=Hs();u_e.exports=function(t,r){var i,n,a,o=r.scattermode;function s(h){return V7t.coerce(n._input,n,H7t,h)}if(r.scattermode==="group")for(a=0;a=0;c--){var f=t[c];if(f.type==="scatter"&&f.xaxis===l.xaxis&&f.yaxis===l.yaxis){f.opacity=void 0;break}}}}}});var f_e=W((tUr,c_e)=>{"use strict";var j7t=it(),$7t=OD();c_e.exports=function(e,t){function r(n,a){return j7t.coerce(e,t,$7t,n,a)}var i=t.barmode==="group";t.scattermode==="group"&&r("scattergap",i?t.bargap:.2)}});var Qp=W((rUr,d_e)=>{"use strict";var W7t=un(),h_e=it(),Y7t=h_e.dateTime2ms,NF=h_e.incrementMonth,X7t=(ta(),Pt(ra)),Z7t=X7t.ONEAVGMONTH;d_e.exports=function(t,r,i,n){if(r.type!=="date")return{vals:n};var a=t[i+"periodalignment"];if(!a)return{vals:n};var o=t[i+"period"],s;if(W7t(o)){if(o=+o,o<=0)return{vals:n}}else if(typeof o=="string"&&o.charAt(0)==="M"){var l=+o.substring(1);if(l>0&&Math.round(l)===l)s=l;else return{vals:n}}for(var u=r.calendar,c=a==="start",f=a==="end",h=t[i+"period0"],p=Y7t(h,u)||0,d=[],v=[],m=[],g=n.length,w=0;w_;)x=NF(x,-s,u);for(;x<=_;)x=NF(x,s,u);S=NF(x,-s,u)}else{for(b=Math.round((_-p)/o),x=p+b*o;x>_;)x-=o;for(;x<=_;)x+=o;S=x-o}d[w]=c?S:f?x:(S+x)/2,v[w]=S,m[w]=x}return{vals:d,starts:v,ends:m}}});var Dd=W((iUr,v_e)=>{"use strict";var d$=Mc().hasColorscale,p$=tf(),p_e=Wo();v_e.exports=function(t,r){p_e.hasLines(r)&&d$(r,"line")&&p$(t,r,{vals:r.line.color,containerStr:"line",cLetter:"c"}),p_e.hasMarkers(r)&&(d$(r,"marker")&&p$(t,r,{vals:r.marker.color,containerStr:"marker",cLetter:"c"}),d$(r,"marker.line")&&p$(t,r,{vals:r.marker.line.color,containerStr:"marker.line",cLetter:"c"}))}});var k1=W((nUr,g_e)=>{"use strict";var nl=it();g_e.exports=function(t,r){for(var i=0;i{"use strict";var m_e=it();y_e.exports=function(t,r){m_e.isArrayOrTypedArray(r.selectedpoints)&&m_e.tagSelected(t,r)}});var Fd=W((oUr,M_e)=>{"use strict";var x_e=un(),g$=it(),SM=Wi(),b_e=Qp(),v$=(ta(),Pt(ra)).BADNUM,m$=Wo(),K7t=Dd(),J7t=k1(),Q7t=E0();function eFt(e,t){var r=e._fullLayout,i=t._xA=SM.getFromId(e,t.xaxis||"x","x"),n=t._yA=SM.getFromId(e,t.yaxis||"y","y"),a=i.makeCalcdata(t,"x"),o=n.makeCalcdata(t,"y"),s=b_e(t,i,"x",a),l=b_e(t,n,"y",o),u=s.vals,c=l.vals,f=t._length,h=new Array(f),p=t.ids,d=y$(t,r,i,n),v=!1,m,g,w,_,b,S;T_e(r,t);var x="x",T="y",A;if(d)g$.pushUnique(d.traceIndices,t.index),m=d.orientation==="v",m?(T="s",A="x"):(x="s",A="y"),b=d.stackgaps==="interpolate";else{var y=w_e(t,f);__e(e,t,i,n,u,c,y)}var E=!!t.xperiodalignment,M=!!t.yperiodalignment;for(g=0;gg&&h[_].gap;)_--;for(S=h[_].s,w=h.length-1;w>_;w--)h[w].s=S;for(;g<_;)if(g++,h[g].gap){for(w=g+1;h[w].gap;)w++;for(var L=h[g-1][A],P=h[g-1].s,R=(h[w].s-P)/(h[w][A]-L);g{"use strict";S_e.exports=UF;var tFt=it().distinctVals;function UF(e,t){this.traces=e,this.sepNegVal=t.sepNegVal,this.overlapNoMerge=t.overlapNoMerge;for(var r=1/0,i=t.posAxis._id.charAt(0),n=[],a=0;arFt,eventDataKeys:()=>iFt});var rFt,iFt,Xy=Ci(()=>{"use strict";rFt=3,iFt=["value","label"]});var Ib=W((lUr,F_e)=>{"use strict";var Ld=un(),{isArrayOrTypedArray:Kg}=it(),{BADNUM:Qw}=(ta(),Pt(ra)),nFt=xi(),EM=Wi(),{getAxisGroup:aFt}=kb(),VF=E_e(),{TEXTPAD:oFt}=(Xy(),Pt(Yy)),{LINE_SPACING:sFt}=(Xl(),Pt(Yl)),{BR_TAG_ALL:lFt}=ho();function uFt(e,t){for(var r=t.xaxis,i=t.yaxis,n=e._fullLayout,a=e._fullData,o=e.calcdata,s=[],l=[],u=0;ul+o||!Ld(s))}for(var c=0;ci(a))):i(e.text);let n=e.outsidetextfont.size*sFt*r+oFt;return{ppadplus:t.some(a=>a.s<0)?n:0,ppadminus:t.some(a=>a.s>=0)?n:0}}return{ppadplus:void 0,ppadminus:void 0}}function xFt(e,t,r,i){for(var n=e5(i),a=0;a{"use strict";var L_e=Fd(),P_e=Ib().setGroupPositions;function _Ft(e,t){for(var r=t.xaxis,i=t.yaxis,n=e._fullLayout,a=e._fullData,o=e.calcdata,s=[],l=[],u=0;uy[c]&&c{"use strict";var TFt=en(),O_e=(ta(),Pt(ra)),kM=O_e.BADNUM,N_e=O_e.LOG_CLIP,z_e=N_e+.5,B_e=N_e-.5,GF=it(),AFt=GF.segmentsIntersect,q_e=GF.constrain,M$=(A1(),Pt(T1));U_e.exports=function(t,r){var i=r.trace||{},n=r.xaxis,a=r.yaxis,o=n.type==="log",s=a.type==="log",l=n._length,u=a._length,c=r.backoff,f=i.marker,h=r.connectGaps,p=r.baseTolerance,d=r.shape,v=d==="linear",m=i.fill&&i.fill!=="none",g=[],w=M$.minTolerance,_=t.length,b=new Array(_),S=0,x,T,A,y,E,M,C,k,D,L,P,R,F,I,B,O;function $(Xe){var mt=t[Xe];if(!mt)return!1;var _t=r.linearized?n.l2p(mt.x):n.c2p(mt.x),Ne=r.linearized?a.l2p(mt.y):a.c2p(mt.y);if(_t===kM){if(o&&(_t=n.c2p(mt.x,!0)),_t===kM)return!1;s&&Ne===kM&&(_t*=Math.abs(n._m*u*(n._m>0?z_e:B_e)/(a._m*l*(a._m>0?z_e:B_e)))),_t*=1e3}if(Ne===kM){if(s&&(Ne=a.c2p(mt.y,!0)),Ne===kM)return!1;Ne*=1e3}return[_t,Ne]}function Y(Xe,mt,_t,Ne){var Ue=_t-Xe,Ge=Ne-mt,je=.5-Xe,Re=.5-mt,Ve=Ue*Ue+Ge*Ge,ct=Ue*je+Ge*Re;if(ct>0&&ct1||Math.abs(je.y-_t[0][1])>1)&&(je=[je.x,je.y],Ne&&Q(je,Xe)X||Xe[1]H)return[q_e(Xe[0],V,X),q_e(Xe[1],G,H)]}function ye(Xe,mt){if(Xe[0]===mt[0]&&(Xe[0]===V||Xe[0]===X)||Xe[1]===mt[1]&&(Xe[1]===G||Xe[1]===H))return!0}function ce(Xe,mt){var _t=[],Ne=Me(Xe),Ue=Me(mt);return Ne&&Ue&&ye(Ne,Ue)||(Ne&&_t.push(Ne),Ue&&_t.push(Ue)),_t}function ee(Xe,mt,_t){return function(Ne,Ue){var Ge=Me(Ne),je=Me(Ue),Re=[];if(Ge&&je&&ye(Ge,je))return Re;Ge&&Re.push(Ge),je&&Re.push(je);var Ve=2*GF.constrain((Ne[Xe]+Ue[Xe])/2,mt,_t)-((Ge||Ne)[Xe]+(je||Ue)[Xe]);if(Ve){var ct;Ge&&je?ct=Ve>0==Ge[Xe]>je[Xe]?Ge:je:ct=Ge||je,ct[Xe]+=Ve}return Re}}var ae;d==="linear"||d==="spline"?ae=oe:d==="hv"||d==="vh"?ae=ce:d==="hvh"?ae=ee(0,V,X):d==="vhv"&&(ae=ee(1,G,H));function xe(Xe,mt){var _t=mt[0]-Xe[0],Ne=(mt[1]-Xe[1])/_t,Ue=(Xe[1]*mt[0]-mt[1]*Xe[0])/_t;return Ue>0?[Ne>0?V:X,H]:[Ne>0?X:V,G]}function re(Xe){var mt=Xe[0],_t=Xe[1],Ne=mt===b[S-1][0],Ue=_t===b[S-1][1];if(!(Ne&&Ue))if(S>1){var Ge=mt===b[S-2][0],je=_t===b[S-2][1];Ne&&(mt===V||mt===X)&&Ge?je?S--:b[S-1]=Xe:Ue&&(_t===G||_t===H)&&je?Ge?S--:b[S-1]=Xe:b[S++]=Xe}else b[S++]=Xe}function pe(Xe){b[S-1][0]!==Xe[0]&&b[S-1][1]!==Xe[1]&&re([ge,ke]),re(Xe),_e=null,ge=ke=0}var we=GF.isArrayOrTypedArray(f);function Fe(Xe){if(Xe&&c&&(Xe.i=x,Xe.d=t,Xe.trace=i,Xe.marker=we?f[Xe.i]:f,Xe.backoff=c),K=Xe[0]/l,j=Xe[1]/u,te=Xe[0]X?X:0,ue=Xe[1]H?H:0,te||ue){if(!S)b[S++]=[te||Xe[0],ue||Xe[1]];else if(_e){var mt=ae(_e,Xe);mt.length>1&&(pe(mt[0]),b[S++]=mt[1])}else he=ae(b[S-1],Xe)[0],b[S++]=he;var _t=b[S-1];te&&ue&&(_t[0]!==te||_t[1]!==ue)?(_e&&(ge!==te&&ke!==ue?re(ge&&ke?xe(_e,Xe):[ge||te,ke||ue]):ge&&ke&&re([ge,ke])),re([te,ue])):ge-te&&ke-ue&&re([te||ge,ue||ke]),_e=Xe,ge=te,ke=ue}else _e&&pe(ae(_e,Xe)[0]),b[S++]=Xe}for(x=0;x<_;x++)if(T=$(x),!!T){for(S=0,_e=null,Fe(T),x++;x<_;x++){if(y=$(x),!y){if(h)continue;break}if(!v||!r.simplify){Fe(y);continue}var Ee=$(x+1);if(L=Q(y,T),!(!(m&&(S===0||S===_-1))&&Lq(M,Ee))break;A=M,F=D[0]*k[0]+D[1]*k[1],F>P?(P=F,y=M,C=!1):F=t.length||!M)break;Fe(M),T=M}}_e&&re([ge||_e[0],ke||_e[1]]),g.push(b.slice(0,S))}var Ce=d.slice(d.length-1);if(c&&Ce!=="h"&&Ce!=="v"){for(var be=!1,Ie=-1,Oe=[],Qe=0;Qe{"use strict";var V_e={tonextx:1,tonexty:1,tonext:1};G_e.exports=function(t,r,i){var n,a,o,s,l,u={},c=!1,f=-1,h=0,p=-1;for(a=0;a=0?l=p:(l=p=h,h++),l{"use strict";var ev=gi(),MFt=xi(),CM=it(),t5=CM.ensureSingle,j_e=CM.identity,pl=en(),r5=Wo(),SFt=S$(),EFt=E$(),HF=iM().tester;$_e.exports=function(t,r,i,n,a,o){var s,l,u=!a,c=!!a&&a.duration>0,f=EFt(t,r,i);if(s=n.selectAll("g.trace").data(f,function(p){return p[0].trace.uid}),s.enter().append("g").attr("class",function(p){return"trace scatter trace"+p[0].trace.uid}).style("stroke-miterlimit",2),s.order(),kFt(t,s,r),c){o&&(l=o());var h=ev.transition().duration(a.duration).ease(a.easing).each("end",function(){l&&l()}).each("interrupt",function(){l&&l()});h.each(function(){n.selectAll("g.trace").each(function(p,d){H_e(t,d,r,p,f,this,a)})})}else s.each(function(p,d){H_e(t,d,r,p,f,this,a)});u&&s.exit().remove(),n.selectAll("path:not([d])").remove()};function kFt(e,t,r){t.each(function(i){var n=t5(ev.select(this),"g","fills");pl.setClipUrl(n,r.layerClipId,e);var a=i[0].trace;a._ownFill=null,a._nextFill=null;var o=[];a._ownfill&&o.push("_ownFill"),a._nexttrace&&o.push("_nextFill");var s=n.selectAll("g").data(o,j_e);s.enter().append("g"),s.exit().remove(),s.order().each(function(l){a[l]=t5(ev.select(this),"path","js-fill")})})}function H_e(e,t,r,i,n,a,o){var s=e._context.staticPlot,l;CFt(e,t,r,i,n);var u=!!o&&o.duration>0;function c(ee){return u?ee.transition():ee}var f=r.xaxis,h=r.yaxis,p=i[0].trace,d=p.line,v=ev.select(a),m=t5(v,"g","errorbars"),g=t5(v,"g","lines"),w=t5(v,"g","points"),_=t5(v,"g","text");if(MFt.getComponentMethod("errorbars","plot")(e,m,r,o),p.visible!==!0)return;c(v).style("opacity",p.opacity);var b,S,x=p.fill.charAt(p.fill.length-1);x!=="x"&&x!=="y"&&(x="");var T,A;x==="y"?(T=1,A=h.c2p(0,!0)):x==="x"&&(T=0,A=f.c2p(0,!0)),i[0][r.isRangePlot?"nodeRangePlot3":"node3"]=v;var y="",E=[],M=p._prevtrace,C=null,k=null;M&&(y=M._prevRevpath||"",S=M._nextFill,E=M._ownPolygons,C=M._fillsegments,k=M._fillElement);var D,L,P="",R="",F,I,B,O,$,Y,K=[];p._polygons=[];var j=[],q=[],Q=CM.noop;if(b=p._ownFill,r5.hasLines(p)||p.fill!=="none"){S&&S.datum(i),["hv","vh","hvh","vhv"].indexOf(d.shape)!==-1?(F=pl.steps(d.shape),I=pl.steps(d.shape.split("").reverse().join(""))):d.shape==="spline"?F=I=function(ee){var ae=ee[ee.length-1];return ee.length>1&&ee[0][0]===ae[0]&&ee[0][1]===ae[1]?pl.smoothclosed(ee.slice(1),d.smoothing):pl.smoothopen(ee,d.smoothing)}:F=I=function(ee){return"M"+ee.join("L")},B=function(ee){return I(ee.reverse())},q=SFt(i,{xaxis:f,yaxis:h,trace:p,connectGaps:p.connectgaps,baseTolerance:Math.max(d.width||1,3)/4,shape:d.shape,backoff:d.backoff,simplify:d.simplify,fill:p.fill}),j=new Array(q.length);var U=0;for(l=0;l=s[0]&&v.x<=s[1]&&v.y>=l[0]&&v.y<=l[1]}),h=Math.ceil(f.length/c),p=0;n.forEach(function(v,m){var g=v[0].trace;r5.hasMarkers(g)&&g.marker.maxdisplayed>0&&m{"use strict";W_e.exports={container:"marker",min:"cmin",max:"cmax"}});var $F=W((pUr,Y_e)=>{"use strict";var jF=Wi();Y_e.exports=function(t,r,i){var n={},a={_fullLayout:i},o=jF.getFromTrace(a,r,"x"),s=jF.getFromTrace(a,r,"y"),l=t.orig_x;l===void 0&&(l=t.x);var u=t.orig_y;return u===void 0&&(u=t.y),n.xLabel=jF.tickText(o,o.c2l(l),!0).text,n.yLabel=jF.tickText(s,s.c2l(u),!0).text,n}});var oh=W((vUr,X_e)=>{"use strict";var k$=gi(),n5=en(),DFt=xi();function FFt(e){var t=k$.select(e).selectAll("g.trace.scatter");t.style("opacity",function(r){return r[0].trace.opacity}),t.selectAll("g.points").each(function(r){var i=k$.select(this),n=r.trace||r[0].trace;C$(i,n,e)}),t.selectAll("g.text").each(function(r){var i=k$.select(this),n=r.trace||r[0].trace;D$(i,n,e)}),t.selectAll("g.trace path.js-line").call(n5.lineGroupStyle),t.selectAll("g.trace path.js-fill").call(n5.fillGroupStyle,e,!1),DFt.getComponentMethod("errorbars","style")(t)}function C$(e,t,r){n5.pointStyle(e.selectAll("path.point"),t,r)}function D$(e,t,r){n5.textPointStyle(e.selectAll("text"),t,r)}function LFt(e,t,r){var i=t[0].trace;i.selectedpoints?(n5.selectedPointStyle(r.selectAll("path.point"),i),n5.selectedTextStyle(r.selectAll("text"),i)):(C$(r,i,e),D$(r,i,e))}X_e.exports={style:FFt,stylePoints:C$,styleText:D$,styleOnSelect:LFt}});var o5=W((gUr,Z_e)=>{"use strict";var a5=ai(),PFt=Wo();Z_e.exports=function(t,r){var i,n;if(t.mode==="lines")return i=t.line.color,i&&a5.opacity(i)?i:t.fillcolor;if(t.mode==="none")return t.fill?t.fillcolor:"";var a=r.mcc||r.mc||(t.marker||{}).color,o=r.mlcc||((t.marker||{}).line||{}).color;return n=a&&a5.opacity(a)?a:o&&a5.opacity(o)&&(r.mlw||((t.marker||{}).line||{}).width)?o:"",n?a5.opacity(n)<.3?a5.addOpacity(n,.3):n:(i=(t.line||{}).color,i&&a5.opacity(i)&&PFt.hasLines(t)&&t.line.width?i:t.fillcolor)}});var s5=W((mUr,J_e)=>{"use strict";var WF=it(),K_e=Ls(),IFt=xi(),RFt=o5(),F$=ai(),zFt=WF.fillText;J_e.exports=function(t,r,i,n){var a=t.cd,o=a[0].trace,s=t.xa,l=t.ya,u=s.c2p(r),c=l.c2p(i),f=[u,c],h=o.hoveron||"",p=o.mode.indexOf("markers")!==-1?3:.5,d=!!o.xperiodalignment,v=!!o.yperiodalignment;if(h.indexOf("points")!==-1){var m=function(R){if(d){var F=s.c2p(R.xStart),I=s.c2p(R.xEnd);return u>=Math.min(F,I)&&u<=Math.max(F,I)?0:1/0}var B=Math.max(3,R.mrc||0),O=1-1/B,$=Math.abs(s.c2p(R.x)-u);return $=Math.min(F,I)&&c<=Math.max(F,I)?0:1/0}var B=Math.max(3,R.mrc||0),O=1-1/B,$=Math.abs(l.c2p(R.y)-c);return $K!=H>=K&&(V=Q[q-1][0],X=Q[q][0],H-G&&(U=V+(X-V)*(K-G)/(H-G),B=Math.min(B,U),O=Math.max(O,U)));return B=Math.max(B,0),O=Math.min(O,s._length),{x0:B,x1:O,y0:K,y1:K}}if(h.indexOf("fills")!==-1&&o._fillElement){var D=C(o._fillElement)&&!C(o._fillExclusionElement);if(D){var L=k(o._polygons);L===null&&(L={x0:f[0],x1:f[0],y0:f[1],y1:f[1]});var P=F$.defaultLine;return F$.opacity(o.fillcolor)?P=o.fillcolor:F$.opacity((o.line||{}).color)&&(P=o.line.color),WF.extendFlat(t,{distance:t.maxHoverDistance,x0:L.x0,x1:L.x1,y0:L.y0,y1:L.y1,color:P,hovertemplate:!1}),delete t.index,o.text&&!WF.isArrayOrTypedArray(o.text)?t.text=String(o.text):t.text=o.name,[t]}}}});var Rb=W((yUr,e3e)=>{"use strict";var Q_e=Wo();e3e.exports=function(t,r){var i=t.cd,n=t.xaxis,a=t.yaxis,o=[],s=i[0].trace,l,u,c,f,h=s.mode&&!Q_e.hasMarkers(s)&&!Q_e.hasText(s);if(h)return[];if(r===!1)for(l=0;l{"use strict";t3e.exports={xaxis:{valType:"subplotid",dflt:"x",editType:"calc+clearAxisTypes"},yaxis:{valType:"subplotid",dflt:"y",editType:"calc+clearAxisTypes"}}});var P$=W((bUr,a3e)=>{"use strict";var YF=xi().traceIs,L$=Lw();a3e.exports=function(t,r,i,n){i("autotypenumbers",n.autotypenumbersDflt);var a=i("type",(n.splomStash||{}).type);a==="-"&&(BFt(r,n.data),r.type==="-"?r.type="linear":t.type=r.type)};function BFt(e,t){if(e.type==="-"){var r=e._id,i=r.charAt(0),n;r.indexOf("scene")!==-1&&(r=i);var a=qFt(t,r,i);if(a){if(a.type==="histogram"&&i==={v:"y",h:"x"}[a.orientation||"v"]){e.type="linear";return}var o=i+"calendar",s=a[o],l={noMultiCategory:!YF(a,"cartesian")||YF(a,"noMultiCategory")};if(a.type==="box"&&a._hasPreCompStats&&i==={h:"x",v:"y"}[a.orientation||"v"]&&(l.noMultiCategory=!0),l.autotypenumbers=e.autotypenumbers,n3e(a,i)){var u=i3e(a),c=[];for(n=0;n0&&(n["_"+r+"axes"]||{})[t])return n;if((n[r+"axis"]||r)===t){if(n3e(n,r))return n;if((n[r]||[]).length||n[r+"0"])return n}}}function i3e(e){return{v:"x",h:"y"}[e.orientation||"v"]}function n3e(e,t){var r=i3e(e),i=YF(e,"box-violin");return i&&t===r&&e[r]===void 0&&e[r+"0"]===void 0}});var XF=W((_Ur,o3e)=>{"use strict";var OFt=wc().isTypedArraySpec;function NFt(e,t){var r=t.dataAttr||e._id.charAt(0),i={},n,a,o;if(t.axData)n=t.axData;else for(n=[],a=0;a0||OFt(a),s;o&&(s="array");var l=i("categoryorder",s),u;l==="array"&&(u=i("categoryarray")),!o&&l==="array"&&(l=r.categoryorder="trace"),l==="trace"?r._initialCategories=[]:l==="array"?r._initialCategories=u.slice():(u=NFt(r,n).sort(),l==="category ascending"?r._initialCategories=u:l==="category descending"&&(r._initialCategories=u.reverse()))}}});var DM=W((wUr,l3e)=>{"use strict";var s3e=ai(),UFt=jl(),VFt=it();l3e.exports=function(t,r,i,n){n=n||{};var a=n.dfltColor;function o(A,y){return VFt.coerce2(t,r,n.attributes,A,y)}var s=o("linecolor",a),l=o("linewidth"),u=i("showline",n.showLine||!!s||!!l);u||(delete r.linecolor,delete r.linewidth);var c=s3e.mix(a,n.bgColor,n.blend||UFt.lightFraction),f=o("gridcolor",c),h=o("gridwidth"),p=o("griddash"),d=i("showgrid",n.showGrid||!!f||!!h||!!p);if(d||(delete r.gridcolor,delete r.gridwidth,delete r.griddash),n.hasMinor){var v=s3e.mix(r.gridcolor,n.bgColor,67),m=o("minor.gridcolor",v),g=o("minor.gridwidth",r.gridwidth||1),w=o("minor.griddash",r.griddash||"solid"),_=i("minor.showgrid",!!m||!!g||!!w);_||(delete r.minor.gridcolor,delete r.minor.gridwidth,delete r.minor.griddash)}if(!n.noZeroLine){var b=o("zerolinelayer"),S=o("zerolinecolor",a),x=o("zerolinewidth"),T=i("zeroline",n.showGrid||!!S||!!x);T||(delete r.zerolinelayer,delete r.zerolinecolor,delete r.zerolinewidth)}}});var LM=W((TUr,p3e)=>{"use strict";var u3e=un(),GFt=xi(),FM=it(),HFt=Ia(),jFt=ef(),I$=nc(),c3e=lb(),f3e=Sw(),$Ft=Cy(),WFt=Dy(),YFt=XF(),XFt=DM(),ZFt=TH(),h3e=f1(),ZF=(Wl(),Pt($l)).WEEKDAY_PATTERN,KFt=(Wl(),Pt($l)).HOUR_PATTERN;p3e.exports=function(t,r,i,n,a){var o=n.letter,s=n.font||{},l=n.splomStash||{},u=i("visible",!n.visibleDflt),c=r._template||{},f=r.type||c.type||"-",h;if(f==="date"){var p=GFt.getComponentMethod("calendars","handleDefaults");p(t,r,"calendar",n.calendar),n.noTicklabelmode||(h=i("ticklabelmode"))}!n.noTicklabelindex&&(f==="date"||f==="linear")&&i("ticklabelindex");var d="";(!n.noTicklabelposition||f==="multicategory")&&(d=FM.coerce(t,r,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:h==="period"?["outside","inside"]:o==="x"?["outside","inside","outside left","inside left","outside right","inside right"]:["outside","inside","outside top","inside top","outside bottom","inside bottom"]}},"ticklabelposition")),n.noTicklabeloverflow||i("ticklabeloverflow",d.indexOf("inside")!==-1?"hide past domain":f==="category"||f==="multicategory"?"allow":"hide past div"),h3e(r,a),ZFt(t,r,i,n),YFt(t,r,i,n),n.noHover||(f!=="category"&&i("hoverformat"),n.noUnifiedhovertitle||i("unifiedhovertitle.text"));var v=i("color"),m=v!==I$.color.dflt?v:s.color,g=l.label||a._dfltTitle[o];if(WFt(t,r,i,f,n),!u)return r;i("title.text",g),FM.coerceFont(i,"title.font",s,{overrideDflt:{size:FM.bigFont(s.size),color:m}}),c3e(t,r,i,f);var w=n.hasMinor;if(w&&(HFt.newContainer(r,"minor"),c3e(t,r,i,f,{isMinor:!0})),$Ft(t,r,i,f,n),f3e(t,r,i,n),w){var _=n.isMinor;n.isMinor=!0,f3e(t,r,i,n),n.isMinor=_}XFt(t,r,i,{dfltColor:v,bgColor:n.bgColor,showGrid:n.showGrid,hasMinor:w,attributes:I$}),w&&r.ticklabelindex==null&&!r.minor.ticks&&!r.minor.showgrid&&delete r.minor,(r.showline||r.ticks)&&i("mirror");var b=f==="multicategory";if(!n.noTickson&&(f==="category"||b)&&(r.ticks||r.showgrid)&&(b?(i("tickson","boundaries"),delete r.ticklabelposition):i("tickson")),b){var S=i("showdividers");S&&(i("dividercolor"),i("dividerwidth"))}if(f==="date")if(jFt(t,r,{name:"rangebreaks",inclusionAttr:"enabled",handleItemDefaults:JFt}),!r.rangebreaks.length)delete r.rangebreaks;else{for(var x=0;x=2){var o="",s,l;if(a.length===2){for(s=0;s<2;s++)if(l=d3e(a[s]),l){o=ZF;break}}var u=i("pattern",o);if(u===ZF)for(s=0;s<2;s++)l=d3e(a[s]),l&&(t.bounds[s]=a[s]=l-1);if(u)for(s=0;s<2;s++)switch(l=a[s],u){case ZF:if(!u3e(l)){t.enabled=!1;return}if(l=+l,l!==Math.floor(l)||l<0||l>=7){t.enabled=!1;return}t.bounds[s]=a[s]=l;break;case KFt:if(!u3e(l)){t.enabled=!1;return}if(l=+l,l<0||l>24){t.enabled=!1;return}t.bounds[s]=a[s]=l;break}if(r.autorange===!1){var c=r.range;if(c[0]c[1]){t.enabled=!1;return}}else if(a[0]>c[0]&&a[1]{"use strict";var eLt=un(),KF=it();v3e.exports=function(t,r,i,n){var a=n.counterAxes||[],o=n.overlayableAxes||[],s=n.letter,l=n.grid,u=n.overlayingDomain,c,f,h,p,d,v;l&&(f=l._domains[s][l._axisMap[r._id]],c=l._anchors[r._id],f&&(h=l[s+"side"].split(" ")[0],p=l.domain[s][h==="right"||h==="top"?1:0])),f=f||[0,1],c=c||(eLt(t.position)?"free":a[0]||"free"),h=h||(s==="x"?"bottom":"left"),p=p||0,d=0,v=!1;var m=KF.coerce(t,r,{anchor:{valType:"enumerated",values:["free"].concat(a),dflt:c}},"anchor"),g=KF.coerce(t,r,{side:{valType:"enumerated",values:s==="x"?["bottom","top"]:["left","right"],dflt:h}},"side");if(m==="free"){if(s==="y"){var w=i("autoshift");w&&(p=g==="left"?u[0]:u[1],v=r.automargin?r.automargin:!0,d=g==="left"?-3:3),i("shift",d)}i("position",p)}i("automargin",v);var _=!1;if(o.length&&(_=KF.coerce(t,r,{overlaying:{valType:"enumerated",values:[!1].concat(o),dflt:!1}},"overlaying")),!_){var b=i("domain",f);b[0]>b[1]-1/4096&&(r.domain=f),KF.noneOrAll(t.domain,r.domain,f),r.tickmode==="sync"&&(r.tickmode="auto")}return i("layer"),r}});var A3e=W((MUr,T3e)=>{"use strict";var zb=it(),g3e=ai(),tLt=rh().isUnifiedHover,rLt=ZH(),m3e=Ia(),iLt=fw(),y3e=nc(),nLt=P$(),x3e=LM(),aLt=kb(),b3e=JF(),z$=Fs(),C1=z$.id2name,_3e=z$.name2id,oLt=(Wl(),Pt($l)).AX_ID_PATTERN,w3e=xi(),QF=w3e.traceIs,R$=w3e.getComponentMethod;function eL(e,t,r){Array.isArray(e[t])?e[t].push(r):e[t]=[r]}T3e.exports=function(t,r,i){var n=r.autotypenumbers,a={},o={},s={},l={},u={},c={},f={},h={},p={},d={},v,m;for(v=0;v{"use strict";var sLt=gi(),M3e=xi(),tL=it(),k0=en(),rL=Wi();S3e.exports=function(t,r,i,n){var a=t._fullLayout;if(r.length===0){rL.redrawComponents(t);return}function o(m){var g=m.xaxis,w=m.yaxis;a._defs.select("#"+m.clipId+"> rect").call(k0.setTranslate,0,0).call(k0.setScale,1,1),m.plot.call(k0.setTranslate,g._offset,w._offset).call(k0.setScale,1,1);var _=m.plot.selectAll(".scatterlayer .trace");_.selectAll(".point").call(k0.setPointGroupScale,1,1),_.selectAll(".textpoint").call(k0.setTextPointsScale,1,1),_.call(k0.hideOutsideRangePoints,m)}function s(m,g){var w=m.plotinfo,_=w.xaxis,b=w.yaxis,S=_._length,x=b._length,T=!!m.xr1,A=!!m.yr1,y=[];if(T){var E=tL.simpleMap(m.xr0,_.r2l),M=tL.simpleMap(m.xr1,_.r2l),C=E[1]-E[0],k=M[1]-M[0];y[0]=(E[0]*(1-g)+g*M[0]-E[0])/(E[1]-E[0])*S,y[2]=S*(1-g+g*k/C),_.range[0]=_.l2r(E[0]*(1-g)+g*M[0]),_.range[1]=_.l2r(E[1]*(1-g)+g*M[1])}else y[0]=0,y[2]=S;if(A){var D=tL.simpleMap(m.yr0,b.r2l),L=tL.simpleMap(m.yr1,b.r2l),P=D[1]-D[0],R=L[1]-L[0];y[1]=(D[1]*(1-g)+g*L[1]-D[1])/(D[0]-D[1])*x,y[3]=x*(1-g+g*R/P),b.range[0]=_.l2r(D[0]*(1-g)+g*L[0]),b.range[1]=b.l2r(D[1]*(1-g)+g*L[1])}else y[1]=0,y[3]=x;rL.drawOne(t,_,{skipTitle:!0}),rL.drawOne(t,b,{skipTitle:!0}),rL.redrawComponents(t,[_._id,b._id]);var F=T?S/y[2]:1,I=A?x/y[3]:1,B=T?y[0]:0,O=A?y[1]:0,$=T?y[0]/y[2]*S:0,Y=A?y[1]/y[3]*x:0,K=_._offset-$,j=b._offset-Y;w.clipRect.call(k0.setTranslate,B,O).call(k0.setScale,1/F,1/I),w.plot.call(k0.setTranslate,K,j).call(k0.setScale,F,I),k0.setPointGroupScale(w.zoomScalePts,1/F,1/I),k0.setTextPointsScale(w.zoomScaleTxt,1/F,1/I)}var l;n&&(l=n());function u(){for(var m={},g=0;gi.duration?(u(),p=window.cancelAnimationFrame(v)):p=window.requestAnimationFrame(v)}return f=Date.now(),p=window.requestAnimationFrame(v),Promise.resolve()}});var vl=W(nf=>{"use strict";var nL=gi(),k3e=xi(),Bb=it(),lLt=Qo(),uLt=en(),C3e=Ac().getModuleCalcData,Zy=Fs(),tv=(Wl(),Pt($l)),cLt=(vd(),Pt(pd)),Qa=Bb.ensureSingle;function iL(e,t,r){return Bb.ensureSingle(e,t,r,function(i){i.datum(r)})}var qb=tv.zindexSeparator;nf.name="cartesian";nf.attr=["xaxis","yaxis"];nf.idRoot=["x","y"];nf.idRegex=tv.idRegex;nf.attrRegex=tv.attrRegex;nf.attributes=r3e();nf.layoutAttributes=nc();nf.supplyLayoutDefaults=A3e();nf.transitionAxes=E3e();nf.finalizeSubplots=function(e,t){var r=t._subplots,i=r.xaxis,n=r.yaxis,a=r.cartesian,o=a,s={},l={},u,c,f;for(u=0;u0){var p=h.id;if(p.indexOf(qb)!==-1)continue;p+=qb+(u+1),h=Bb.extendFlat({},h,{id:p,plot:n._cartesianlayer.selectAll(".subplot").select("."+p)})}for(var d=[],v,m=0;m1&&(S+=qb+b),_.push(s+S),o=0;o1,f=t.mainplotinfo;if(!t.mainplot||c)if(u)t.xlines=Qa(i,"path","xlines-above"),t.ylines=Qa(i,"path","ylines-above"),t.xaxislayer=Qa(i,"g","xaxislayer-above"),t.yaxislayer=Qa(i,"g","yaxislayer-above");else{if(!o){var h=Qa(i,"g","layer-subplot");t.shapelayer=Qa(h,"g","shapelayer"),t.imagelayer=Qa(h,"g","imagelayer"),f&&c?(t.minorGridlayer=f.minorGridlayer,t.gridlayer=f.gridlayer,t.zerolinelayer=f.zerolinelayer):(t.minorGridlayer=Qa(i,"g","minor-gridlayer"),t.gridlayer=Qa(i,"g","gridlayer"),t.zerolinelayer=Qa(i,"g","zerolinelayer"));var p=Qa(i,"g","layer-between");t.shapelayerBetween=Qa(p,"g","shapelayer"),t.imagelayerBetween=Qa(p,"g","imagelayer"),Qa(i,"path","xlines-below"),Qa(i,"path","ylines-below"),t.overlinesBelow=Qa(i,"g","overlines-below"),Qa(i,"g","xaxislayer-below"),Qa(i,"g","yaxislayer-below"),t.overaxesBelow=Qa(i,"g","overaxes-below")}t.overplot=Qa(i,"g","overplot"),t.plot=Qa(t.overplot,"g",n),f&&c?t.zerolinelayerAbove=f.zerolinelayerAbove:t.zerolinelayerAbove=Qa(i,"g","zerolinelayer-above"),o||(t.xlines=Qa(i,"path","xlines-above"),t.ylines=Qa(i,"path","ylines-above"),t.overlinesAbove=Qa(i,"g","overlines-above"),Qa(i,"g","xaxislayer-above"),Qa(i,"g","yaxislayer-above"),t.overaxesAbove=Qa(i,"g","overaxes-above"),t.xlines=i.select(".xlines-"+s),t.ylines=i.select(".ylines-"+l),t.xaxislayer=i.select(".xaxislayer-"+s),t.yaxislayer=i.select(".yaxislayer-"+l))}else{var d=f.plotgroup,v=n+"-x",m=n+"-y";t.minorGridlayer=f.minorGridlayer,t.gridlayer=f.gridlayer,t.zerolinelayer=f.zerolinelayer,t.zerolinelayerAbove=f.zerolinelayerAbove,Qa(f.overlinesBelow,"path",v),Qa(f.overlinesBelow,"path",m),Qa(f.overaxesBelow,"g",v),Qa(f.overaxesBelow,"g",m),t.plot=Qa(f.overplot,"g",n),Qa(f.overlinesAbove,"path",v),Qa(f.overlinesAbove,"path",m),Qa(f.overaxesAbove,"g",v),Qa(f.overaxesAbove,"g",m),t.xlines=d.select(".overlines-"+s).select("."+v),t.ylines=d.select(".overlines-"+l).select("."+m),t.xaxislayer=d.select(".overaxes-"+s).select("."+v),t.yaxislayer=d.select(".overaxes-"+l).select("."+m)}o||(u||(iL(t.minorGridlayer,"g",t.xaxis._id),iL(t.minorGridlayer,"g",t.yaxis._id),t.minorGridlayer.selectAll("g").map(function(g){return g[0]}).sort(Zy.idSort),iL(t.gridlayer,"g",t.xaxis._id),iL(t.gridlayer,"g",t.yaxis._id),t.gridlayer.selectAll("g").map(function(g){return g[0]}).sort(Zy.idSort)),t.xlines.style("fill","none").classed("crisp",!0),t.ylines.style("fill","none").classed("crisp",!0))}function L3e(e,t){if(e){var r={};e.each(function(l){var u=l[0],c=nL.select(this);c.remove(),P3e(u,t),r[u]=!0});for(var i in t._plots)for(var n=t._plots[i],a=n.overlays||[],o=0;o{"use strict";var aL=Wo();I3e.exports={hasLines:aL.hasLines,hasMarkers:aL.hasMarkers,hasText:aL.hasText,isBubble:aL.isBubble,attributes:Hs(),layoutAttributes:OD(),supplyDefaults:s_e(),crossTraceDefaults:h$(),supplyLayoutDefaults:f_e(),calc:Fd().calc,crossTraceCalc:R_e(),arraysToCalcdata:k1(),plot:i5(),colorbar:kc(),formatLabels:$F(),style:oh().style,styleOnSelect:oh().styleOnSelect,hoverPoints:s5(),selectPoints:Rb(),animatable:!0,moduleType:"trace",name:"scatter",basePlotModule:vl(),categories:["cartesian","svg","symbols","errorBarsOK","showLegend","scatter-like","zoomScale"],meta:{}}});var q3e=W((CUr,B3e)=>{"use strict";var hLt=gi(),dLt=ai(),z3e=Oj(),B$=it(),pLt=B$.strScale,vLt=B$.strRotate,gLt=B$.strTranslate;B3e.exports=function(t,r,i){var n=t.node(),a=z3e[i.arrowhead||0],o=z3e[i.startarrowhead||0],s=(i.arrowwidth||1)*(i.arrowsize||1),l=(i.arrowwidth||1)*(i.startarrowsize||1),u=r.indexOf("start")>=0,c=r.indexOf("end")>=0,f=a.backoff*s+i.standoff,h=o.backoff*l+i.startstandoff,p,d,v,m;if(n.nodeName==="line"){p={x:+t.attr("x1"),y:+t.attr("y1")},d={x:+t.attr("x2"),y:+t.attr("y2")};var g=p.x-d.x,w=p.y-d.y;if(v=Math.atan2(w,g),m=v+Math.PI,f&&h&&f+h>Math.sqrt(g*g+w*w)){D();return}if(f){if(f*f>g*g+w*w){D();return}var _=f*Math.cos(v),b=f*Math.sin(v);d.x+=_,d.y+=b,t.attr({x2:d.x,y2:d.y})}if(h){if(h*h>g*g+w*w){D();return}var S=h*Math.cos(v),x=h*Math.sin(v);p.x-=S,p.y-=x,t.attr({x1:p.x,y1:p.y})}}else if(n.nodeName==="path"){var T=n.getTotalLength(),A="";if(T{"use strict";var O3e=gi(),q$=xi(),mLt=Qo(),Jy=it(),O$=Jy.strTranslate,IM=Wi(),Ob=ai(),Jg=en(),N3e=Ls(),N$=ho(),U$=$p(),PM=Mf(),yLt=Ia().arrayEditor,xLt=q3e();G3e.exports={draw:bLt,drawOne:U3e,drawRaw:V3e};function bLt(e){var t=e._fullLayout;t._infolayer.selectAll(".annotation").remove();for(var r=0;r2/3?Ue="right":Ue="center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[Ue]}for(var G=!1,H=["x","y"],J=0;J1)&&(ge===ue?(Ee=ke.r2fraction(t["a"+te]),(Ee<0||Ee>1)&&(G=!0)):G=!0),ae=ke._offset+ke.r2p(t[te]),pe=.5}else{var Ce=Fe==="domain";te==="x"?(re=t[te],ae=Ce?ke._offset+ke._length*re:ae=s.l+s.w*re):(re=1-t[te],ae=Ce?ke._offset+ke._length*re:ae=s.t+s.h*re),pe=t.showarrow?.5:re}if(t.showarrow){ee.head=ae;var be=t["a"+te];if(we=he*X(.5,t.xanchor)-oe*X(.5,t.yanchor),ge===ue){var Ie=IM.getRefType(ge);Ie==="domain"?(te==="y"&&(be=1-be),ee.tail=ke._offset+ke._length*be):Ie==="paper"?te==="y"?(be=1-be,ee.tail=s.t+s.h*be):ee.tail=s.l+s.w*be:ee.tail=ke._offset+ke.r2p(be),xe=we}else ee.tail=ae+be,xe=we+be;ee.text=ee.tail+we;var Oe=o[te==="x"?"width":"height"];if(ue==="paper"&&(ee.head=Jy.constrain(ee.head,1,Oe-1)),ge==="pixel"){var Qe=-Math.max(ee.tail-3,ee.text),et=Math.min(ee.tail+3,ee.text)-Oe;Qe>0?(ee.tail+=Qe,ee.text+=Qe):et>0&&(ee.tail-=et,ee.text-=et)}ee.tail+=ce,ee.head+=ce}else we=Me*X(pe,ye),xe=we,ee.text=ae+we;ee.text+=ce,we+=ce,xe+=ce,t["_"+te+"padplus"]=Me/2+xe,t["_"+te+"padminus"]=Me/2-xe,t["_"+te+"size"]=Me,t["_"+te+"shift"]=we}if(G){T.remove();return}var bt=0,ut=0;if(t.align!=="left"&&(bt=(q-K)*(t.align==="center"?.5:1)),t.valign!=="top"&&(ut=(Q-j)*(t.valign==="middle"?.5:1)),$)O.select("svg").attr({x:E+bt-1,y:E+ut}).call(Jg.setClipUrl,C?v:null,e);else{var vt=E+ut-Y.top,Xe=E+bt-Y.left;P.call(N$.positionText,Xe,vt).call(Jg.setClipUrl,C?v:null,e)}k.select("rect").call(Jg.setRect,E,E,q,Q),M.call(Jg.setRect,A/2,A/2,U-A,V-A),T.call(Jg.setTranslate,Math.round(m.x.text-U/2),Math.round(m.y.text-V/2)),_.attr({transform:"rotate("+g+","+m.x.text+","+m.y.text+")"});var mt=function(Ne,Ue){w.selectAll(".annotation-arrow-g").remove();var Ge=m.x.head,je=m.y.head,Re=m.x.tail+Ne,Ve=m.y.tail+Ue,ct=m.x.text+Ne,Tt=m.y.text+Ue,Zt=Jy.rotationXYMatrix(g,ct,Tt),Gt=Jy.apply2DTransform(Zt),ur=Jy.apply2DTransform2(Zt),cr=+M.attr("width"),qt=+M.attr("height"),Kt=ct-.5*cr,Cr=Kt+cr,$e=Tt-.5*qt,tt=$e+qt,st=[[Kt,$e,Kt,tt],[Kt,tt,Cr,tt],[Cr,tt,Cr,$e],[Cr,$e,Kt,$e]].map(ur);if(!st.reduce(function(vn,aa){return vn^!!Jy.segmentsIntersect(Ge,je,Ge+1e6,je+1e6,aa[0],aa[1],aa[2],aa[3])},!1)){st.forEach(function(vn){var aa=Jy.segmentsIntersect(Re,Ve,Ge,je,vn[0],vn[1],vn[2],vn[3]);aa&&(Re=aa.x,Ve=aa.y)});var xt=t.arrowwidth,Je=t.arrowcolor,Ct=t.arrowside,nr=w.append("g").style({opacity:Ob.opacity(Je)}).classed("annotation-arrow-g",!0),dr=nr.append("path").attr("d","M"+Re+","+Ve+"L"+Ge+","+je).style("stroke-width",xt+"px").call(Ob.stroke,Ob.rgb(Je));if(xLt(dr,Ct,t),l.annotationPosition&&dr.node().parentNode&&!i){var Vr=Ge,ui=je;if(t.standoff){var ti=Math.sqrt(Math.pow(Ge-Re,2)+Math.pow(je-Ve,2));Vr+=t.standoff*(Re-Ge)/ti,ui+=t.standoff*(Ve-je)/ti}var Pr=nr.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(Re-Vr)+","+(Ve-ui),transform:O$(Vr,ui)}).style("stroke-width",xt+6+"px").call(Ob.stroke,"rgba(0,0,0,0)").call(Ob.fill,"rgba(0,0,0,0)"),Xi,Sn;PM.init({element:Pr.node(),gd:e,prepFn:function(){var vn=Jg.getTranslate(T);Xi=vn.x,Sn=vn.y,n&&n.autorange&&h(n._name+".autorange",!0),a&&a.autorange&&h(a._name+".autorange",!0)},moveFn:function(vn,aa){var va=Gt(Xi,Sn),gn=va[0]+vn,Hn=va[1]+aa;T.call(Jg.setTranslate,gn,Hn),p("x",Ky(n,vn,"x",s,t)),p("y",Ky(a,aa,"y",s,t)),t.axref===t.xref&&p("ax",Ky(n,vn,"ax",s,t)),t.ayref===t.yref&&p("ay",Ky(a,aa,"ay",s,t)),nr.attr("transform",O$(vn,aa)),_.attr({transform:"rotate("+g+","+gn+","+Hn+")"})},doneFn:function(){q$.call("_guiRelayout",e,d());var vn=document.querySelector(".js-notes-box-panel");vn&&vn.redraw(vn.selectedObj)}})}}};if(t.showarrow&&mt(0,0),b){var _t;PM.init({element:T.node(),gd:e,prepFn:function(){_t=_.attr("transform")},moveFn:function(Ne,Ue){var Ge="pointer";if(t.showarrow)t.axref===t.xref?p("ax",Ky(n,Ne,"ax",s,t)):p("ax",t.ax+Ne),t.ayref===t.yref?p("ay",Ky(a,Ue,"ay",s.w,t)):p("ay",t.ay+Ue),mt(Ne,Ue);else{if(i)return;var je,Re;if(n)je=Ky(n,Ne,"x",s,t);else{var Ve=t._xsize/s.w,ct=t.x+(t._xshift-t.xshift)/s.w-Ve/2;je=PM.align(ct+Ne/s.w,Ve,0,1,t.xanchor)}if(a)Re=Ky(a,Ue,"y",s,t);else{var Tt=t._ysize/s.h,Zt=t.y-(t._yshift+t.yshift)/s.h-Tt/2;Re=PM.align(Zt-Ue/s.h,Tt,0,1,t.yanchor)}p("x",je),p("y",Re),(!n||!a)&&(Ge=PM.getCursor(n?.5:je,a?.5:Re,t.xanchor,t.yanchor))}_.attr({transform:O$(Ne,Ue)+_t}),U$(T,Ge)},clickFn:function(Ne,Ue){t.captureevents&&e.emit("plotly_clickannotation",x(Ue))},doneFn:function(){U$(T),q$.call("_guiRelayout",e,d());var Ne=document.querySelector(".js-notes-box-panel");Ne&&Ne.redraw(Ne.selectedObj)}})}}l.annotationText?P.call(N$.makeEditable,{delegate:T,gd:e}).call(R).on("edit",function(I){t.text=I,this.call(R),p("text",I),n&&n.autorange&&h(n._name+".autorange",!0),a&&a.autorange&&h(a._name+".autorange",!0),q$.call("_guiRelayout",e,d())}):P.call(R)}});var X3e=W((FUr,Y3e)=>{"use strict";var H3e=it(),_Lt=xi(),j3e=Ia().arrayEditor;Y3e.exports={hasClickToShow:wLt,onClick:TLt};function wLt(e,t){var r=W3e(e,t);return r.on.length>0||r.explicitOff.length>0}function TLt(e,t){var r=W3e(e,t),i=r.on,n=r.off.concat(r.explicitOff),a={},o=e._fullLayout.annotations,s,l;if(i.length||n.length){for(s=0;s{"use strict";var V$=it(),l5=ai();Z3e.exports=function(t,r,i,n){n("opacity");var a=n("bgcolor"),o=n("bordercolor"),s=l5.opacity(o);n("borderpad");var l=n("borderwidth"),u=n("showarrow");n("text",u?" ":i._dfltTitle.annotation),n("textangle"),V$.coerceFont(n,"font",i.font),n("width"),n("align");var c=n("height");if(c&&n("valign"),u){var f=n("arrowside"),h,p;f.indexOf("end")!==-1&&(h=n("arrowhead"),p=n("arrowsize")),f.indexOf("start")!==-1&&(n("startarrowhead",h),n("startarrowsize",p)),n("arrowcolor",s?r.bordercolor:l5.defaultLine),n("arrowwidth",(s&&l||1)*2),n("standoff"),n("startstandoff")}var d=n("hovertext"),v=i.hoverlabel||{};if(d){var m=n("hoverlabel.bgcolor",v.bgcolor||(l5.opacity(a)?l5.rgb(a):l5.defaultLine)),g=n("hoverlabel.bordercolor",v.bordercolor||l5.contrast(m)),w=V$.extendFlat({},v.font);w.color||(w.color=g),V$.coerceFont(n,"hoverlabel.font",w)}n("captureevents",!!d)}});var J3e=W((PUr,K3e)=>{"use strict";var H$=it(),Nb=Wi(),ALt=ef(),MLt=G$(),SLt=jy();K3e.exports=function(t,r){ALt(t,r,{name:"annotations",handleItemDefaults:ELt})};function ELt(e,t,r){function i(_,b){return H$.coerce(e,t,SLt,_,b)}var n=i("visible"),a=i("clicktoshow");if(n||a){MLt(e,t,r,i);for(var o=t.showarrow,s=["x","y"],l=[-10,-30],u={_fullLayout:r},c=0;c<2;c++){var f=s[c],h=Nb.coerceRef(e,t,u,f,"","paper");if(h!=="paper"){var p=Nb.getFromId(u,h);p._annIndices.push(t._index)}if(Nb.coercePosition(t,u,i,h,f,.5),o){var d="a"+f,v=Nb.coerceRef(e,t,u,d,"pixel",["pixel","paper"]);v!=="pixel"&&v!==h&&(v=t[d]="pixel");var m=v==="pixel"?l[c]:.4;Nb.coercePosition(t,u,i,v,d,m)}i(f+"anchor"),i(f+"shift")}if(H$.noneOrAll(e,t,["x","y"]),o&&H$.noneOrAll(e,t,["ax","ay"]),a){var g=i("xclick"),w=i("yclick");t._xclick=g===void 0?t.x:Nb.cleanPosition(g,u,t.xref),t._yclick=w===void 0?t.y:Nb.cleanPosition(w,u,t.yref)}}}});var twe=W((IUr,ewe)=>{"use strict";var j$=it(),Ub=Wi(),kLt=oL().draw;ewe.exports=function(t){var r=t._fullLayout,i=j$.filterVisible(r.annotations);if(i.length&&t._fullData.length)return j$.syncOrAsync([kLt,CLt],t)};function CLt(e){var t=e._fullLayout;j$.filterVisible(t.annotations).forEach(function(r){var i=Ub.getFromId(e,r.xref),n=Ub.getFromId(e,r.yref),a=Ub.getRefType(r.xref),o=Ub.getRefType(r.yref);r._extremes={},a==="range"&&Q3e(r,i),o==="range"&&Q3e(r,n)})}function Q3e(e,t){var r=t._id,i=r.charAt(0),n=e[i],a=e["a"+i],o=e[i+"ref"],s=e["a"+i+"ref"],l=e["_"+i+"padplus"],u=e["_"+i+"padminus"],c={x:1,y:-1}[i]*e[i+"shift"],f=3*e.arrowsize*e.arrowwidth||0,h=f+c,p=f-c,d=3*e.startarrowsize*e.arrowwidth||0,v=d+c,m=d-c,g;if(s===o){var w=Ub.findExtremes(t,[t.r2c(n)],{ppadplus:h,ppadminus:p}),_=Ub.findExtremes(t,[t.r2c(a)],{ppadplus:Math.max(l,v),ppadminus:Math.max(u,m)});g={min:[w.min[0],_.min[0]],max:[w.max[0],_.max[0]]}}else v=a?v+a:v,m=a?m-a:m,g=Ub.findExtremes(t,[t.r2c(n)],{ppadplus:Math.max(l,h,v),ppadminus:Math.max(u,p,m)});e._extremes[r]=g}});var iwe=W((RUr,rwe)=>{"use strict";var DLt=un(),FLt=q8();rwe.exports=function(t,r,i,n){r=r||{};var a=i==="log"&&r.type==="linear",o=i==="linear"&&r.type==="log";if(!(a||o))return;var s=t._fullLayout.annotations,l=r._id.charAt(0),u,c;function f(p){var d=u[p],v=null;a?v=FLt(d,r.range):v=Math.pow(10,d),DLt(v)||(v=null),n(c+p,v)}for(var h=0;h{"use strict";var $$=oL(),nwe=X3e();awe.exports={moduleType:"component",name:"annotations",layoutAttributes:jy(),supplyLayoutDefaults:J3e(),includeBasePlot:vM()("annotations"),calcAutorange:twe(),draw:$$.draw,drawOne:$$.drawOne,drawRaw:$$.drawRaw,hasClickToShow:nwe.hasClickToShow,onClick:nwe.onClick,convertCoords:iwe()}});var sL=W((BUr,swe)=>{"use strict";var rs=jy(),LLt=cs().overrideAll,PLt=Ia().templatedArray;swe.exports=LLt(PLt("annotation",{visible:rs.visible,x:{valType:"any"},y:{valType:"any"},z:{valType:"any"},ax:{valType:"number"},ay:{valType:"number"},xanchor:rs.xanchor,xshift:rs.xshift,yanchor:rs.yanchor,yshift:rs.yshift,text:rs.text,textangle:rs.textangle,font:rs.font,width:rs.width,height:rs.height,opacity:rs.opacity,align:rs.align,valign:rs.valign,bgcolor:rs.bgcolor,bordercolor:rs.bordercolor,borderpad:rs.borderpad,borderwidth:rs.borderwidth,showarrow:rs.showarrow,arrowcolor:rs.arrowcolor,arrowhead:rs.arrowhead,startarrowhead:rs.startarrowhead,arrowside:rs.arrowside,arrowsize:rs.arrowsize,startarrowsize:rs.startarrowsize,arrowwidth:rs.arrowwidth,standoff:rs.standoff,startstandoff:rs.startstandoff,hovertext:rs.hovertext,hoverlabel:rs.hoverlabel,captureevents:rs.captureevents}),"calc","from-root")});var uwe=W((qUr,lwe)=>{"use strict";var W$=it(),ILt=Wi(),RLt=ef(),zLt=G$(),BLt=sL();lwe.exports=function(t,r,i){RLt(t,r,{name:"annotations",handleItemDefaults:qLt,fullLayout:i.fullLayout})};function qLt(e,t,r,i){function n(s,l){return W$.coerce(e,t,BLt,s,l)}function a(s){var l=s+"axis",u={_fullLayout:{}};return u._fullLayout[l]=r[l],ILt.coercePosition(t,u,n,s,s,.5)}var o=n("visible");o&&(zLt(e,t,i.fullLayout,n),a("x"),a("y"),a("z"),W$.noneOrAll(e,t,["x","y","z"]),t.xref="x",t.yref="y",t.zref="z",n("xanchor"),n("yanchor"),n("xshift"),n("yshift"),t.showarrow&&(t.axref="pixel",t.ayref="pixel",n("ax",-10),n("ay",-30),W$.noneOrAll(e,t,["ax","ay"])))}});var dwe=W((OUr,hwe)=>{"use strict";var cwe=it(),fwe=Wi();hwe.exports=function(t){for(var r=t.fullSceneLayout,i=r.annotations,n=0;n{"use strict";function Y$(e,t){var r=[0,0,0,0],i,n;for(i=0;i<4;++i)for(n=0;n<4;++n)r[n]+=e[4*i+n]*t[i];return r}function NLt(e,t){var r=Y$(e.projection,Y$(e.view,Y$(e.model,[t[0],t[1],t[2],1])));return r}pwe.exports=NLt});var gwe=W((UUr,vwe)=>{"use strict";var ULt=oL().drawRaw,VLt=X$(),GLt=["x","y","z"];vwe.exports=function(t){for(var r=t.fullSceneLayout,i=t.dataScale,n=r.annotations,a=0;a1){s=!0;break}}s?t.fullLayout._infolayer.select(".annotation-"+t.id+'[data-index="'+a+'"]').remove():(o._pdata=VLt(t.glplot.cameraParams,[r.xaxis.r2l(o.x)*i[0],r.yaxis.r2l(o.y)*i[1],r.zaxis.r2l(o.z)*i[2]]),ULt(t.graphDiv,o,a,t.id,o._xa,o._ya))}}});var xwe=W((VUr,ywe)=>{"use strict";var HLt=xi(),mwe=it();ywe.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:sL()}}},layoutAttributes:sL(),handleDefaults:uwe(),includeBasePlot:jLt,convert:dwe(),draw:gwe()};function jLt(e,t){var r=HLt.subplotsRegistry.gl3d;if(r)for(var i=r.attrRegex,n=Object.keys(e),a=0;a{"use strict";var GUr=(Wl(),Pt($l)),bwe=jo(),_we=Hs().line,$Lt=Ru().dash,rv=nn().extendFlat,WLt=Ia().templatedArray,HUr=(dM(),Pt(hM)),u5=Ka(),wwe=jy(),{shapeTexttemplateAttrs:YLt,templatefallbackAttrs:XLt}=$a(),ZLt=mD();Twe.exports=WLt("shape",{visible:rv({},u5.visible,{editType:"calc+arraydraw"}),showlegend:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},legend:rv({},u5.legend,{editType:"calc+arraydraw"}),legendgroup:rv({},u5.legendgroup,{editType:"calc+arraydraw"}),legendgrouptitle:{text:rv({},u5.legendgrouptitle.text,{editType:"calc+arraydraw"}),font:bwe({editType:"calc+arraydraw"}),editType:"calc+arraydraw"},legendrank:rv({},u5.legendrank,{editType:"calc+arraydraw"}),legendwidth:rv({},u5.legendwidth,{editType:"calc+arraydraw"}),type:{valType:"enumerated",values:["circle","rect","path","line"],editType:"calc+arraydraw"},layer:{valType:"enumerated",values:["below","above","between"],dflt:"above",editType:"arraydraw"},xref:rv({},wwe.xref,{arrayOk:!0}),xsizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},xanchor:{valType:"any",editType:"calc+arraydraw"},x0:{valType:"any",editType:"calc+arraydraw"},x1:{valType:"any",editType:"calc+arraydraw"},x0shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},x1shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},yref:rv({},wwe.yref,{arrayOk:!0}),ysizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},yanchor:{valType:"any",editType:"calc+arraydraw"},y0:{valType:"any",editType:"calc+arraydraw"},y1:{valType:"any",editType:"calc+arraydraw"},y0shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},y1shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},path:{valType:"string",editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},line:{color:rv({},_we.color,{editType:"arraydraw"}),width:rv({},_we.width,{editType:"calc+arraydraw"}),dash:rv({},$Lt,{editType:"arraydraw"}),editType:"calc+arraydraw"},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd",editType:"arraydraw"},editable:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},label:{text:{valType:"string",dflt:"",editType:"arraydraw"},texttemplate:YLt({},{keys:Object.keys(ZLt)}),texttemplatefallback:XLt({editType:"arraydraw"}),font:bwe({editType:"calc+arraydraw",colorEditType:"arraydraw"}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"],editType:"arraydraw"},textangle:{valType:"angle",dflt:"auto",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],editType:"calc+arraydraw"},padding:{valType:"number",dflt:3,min:0,editType:"arraydraw"},editType:"arraydraw"},editType:"arraydraw"})});var Mwe=W(($Ur,Awe)=>{"use strict";var c5=it(),C0=Wi(),KLt=ef(),JLt=Z$(),RM=Gy();Awe.exports=function(t,r){KLt(t,r,{name:"shapes",handleItemDefaults:ePt})};function QLt(e,t){return e?"bottom":t.indexOf("top")!==-1?"top":t.indexOf("bottom")!==-1?"bottom":"middle"}function ePt(e,t,r){function i(_,b){return c5.coerce(e,t,JLt,_,b)}t._isShape=!0;var n=i("visible");if(!n)return;var a=i("showlegend");i("legend"),i("legendgroup"),a&&(i("legendwidth"),i("legendgrouptitle.text"),c5.coerceFont(i,"legendgrouptitle.font"),i("legendrank"));var o=i("path"),s=o?"path":"rect",l=i("type",s),u=l!=="path";u&&delete t.path,i("editable"),i("layer"),i("opacity"),i("fillcolor"),i("fillrule");var c=i("line.width");c&&(i("line.color"),i("line.dash"));var f=i("xsizemode"),h=i("ysizemode");let p=[.25,.75],d=[0,10];["x","y"].forEach(_=>{var b=_+"anchor",S=_==="x"?f:h,x={_fullLayout:r},T,A,y,E;let M=_+"ref",C=e[M];if(Array.isArray(C)&&C.length>0){let k=RM.countDefiningCoords(l,o,_);E=C0.coerceRefArray(e,t,x,_,void 0,"paper",k),t["_"+_+"refArray"]=!0}else E=C0.coerceRef(e,t,x,_,void 0,"paper");if(Array.isArray(E))E.forEach(function(k){C0.getRefType(k)==="range"&&(T=C0.getFromId(x,k),T&&T._shapeIndices.indexOf(t._index)===-1&&T._shapeIndices.push(t._index))}),u&&[0,1].forEach(function(k){let D=E[k];C0.getRefType(D)==="range"?(T=C0.getFromId(x,D),A=RM.shapePositionToRange(T),y=RM.rangeToShapePosition(T),(T.type==="category"||T.type==="multicategory")&&i(_+k+"shift")):A=y=c5.identity;let P=_+k,R=e[P];if(e[P]=A(e[P],!0),S==="pixel"?i(P,d[k]):C0.coercePosition(t,x,i,D,P,p[k]),t[P]=y(t[P]),e[P]=R,k===0&&S==="pixel"){let F=e[b];e[b]=A(e[b],!0),C0.coercePosition(t,x,i,D,b,.25),t[b]=y(t[b]),e[b]=F}});else{if(C0.getRefType(E)==="range"?(T=C0.getFromId(x,E),T._shapeIndices.push(t._index),y=RM.rangeToShapePosition(T),A=RM.shapePositionToRange(T),u&&(T.type==="category"||T.type==="multicategory")&&(i(_+"0shift"),i(_+"1shift"))):A=y=c5.identity,u){let D=_+"0",L=_+"1",P=e[D],R=e[L];e[D]=A(e[D],!0),e[L]=A(e[L],!0),S==="pixel"?(i(D,d[0]),i(L,d[1])):(C0.coercePosition(t,x,i,E,D,p[0]),C0.coercePosition(t,x,i,E,L,p[1])),t[D]=y(t[D]),t[L]=y(t[L]),e[D]=P,e[L]=R}if(S==="pixel"){let D=e[b];e[b]=A(e[b],!0),C0.coercePosition(t,x,i,E,b,.25),t[b]=y(t[b]),e[b]=D}}}),u&&c5.noneOrAll(e,t,["x0","x1","y0","y1"]);var v=l==="line",m,g;if(u&&(m=i("label.texttemplate"),i("label.texttemplatefallback")),m||(g=i("label.text")),g||m){i("label.textangle");var w=i("label.textposition",v?"middle":"middle center");i("label.xanchor"),i("label.yanchor",QLt(v,w)),i("label.padding"),c5.coerceFont(i,"label.font",r.font)}}});var kwe=W((WUr,Ewe)=>{"use strict";var tPt=ai(),Swe=it();function rPt(e,t){return e?"bottom":t.indexOf("top")!==-1?"top":t.indexOf("bottom")!==-1?"bottom":"middle"}Ewe.exports=function(t,r,i){i("newshape.visible"),i("newshape.name"),i("newshape.showlegend"),i("newshape.legend"),i("newshape.legendwidth"),i("newshape.legendgroup"),i("newshape.legendgrouptitle.text"),Swe.coerceFont(i,"newshape.legendgrouptitle.font"),i("newshape.legendrank"),i("newshape.drawdirection"),i("newshape.layer"),i("newshape.fillcolor"),i("newshape.fillrule"),i("newshape.opacity");var n=i("newshape.line.width");if(n){var a=(t||{}).plot_bgcolor||"#FFF";i("newshape.line.color",tPt.contrast(a)),i("newshape.line.dash")}var o=t.dragmode==="drawline",s=i("newshape.label.text"),l=i("newshape.label.texttemplate");if(i("newshape.label.texttemplatefallback"),s||l){i("newshape.label.textangle");var u=i("newshape.label.textposition",o?"middle":"middle center");i("newshape.label.xanchor"),i("newshape.label.yanchor",rPt(o,u)),i("newshape.label.padding"),Swe.coerceFont(i,"newshape.label.font",r.font)}i("activeshape.fillcolor"),i("activeshape.opacity")}});var Rwe=W((YUr,Iwe)=>{"use strict";var K$=it(),Pd=Wi(),D1=(jA(),Pt(HA)),J$=Gy();Iwe.exports=function(t){var r=t._fullLayout,i=K$.filterVisible(r.shapes);if(!(!i.length||!t._fullData.length))for(var n=0;n{o=Pd.getFromId(t,f),a._extremes[o._id]=Pd.findExtremes(o,h,Dwe(a))})}else a.xref!=="paper"&&l!=="domain"&&(o=Pd.getFromId(t,a.xref),s=Lwe(o,a,D1.paramIsX),s&&(a._extremes[o._id]=Pd.findExtremes(o,s,Dwe(a))));if(u==="array"){let c=Cwe(t,a,"y");Object.entries(c).forEach(([f,h])=>{o=Pd.getFromId(t,f),a._extremes[o._id]=Pd.findExtremes(o,h,Fwe(a))})}else a.yref!=="paper"&&u!=="domain"&&(o=Pd.getFromId(t,a.yref),s=Lwe(o,a,D1.paramIsY),s&&(a._extremes[o._id]=Pd.findExtremes(o,s,Fwe(a))))}};function Cwe(e,t,r){let i=t[r+"ref"],n=r==="x"?D1.paramIsX:D1.paramIsY;function a(f,h){f==="paper"||Pd.getRefType(f)==="domain"||(o[f]||(o[f]=[]),o[f].push(h))}let o={};if(t.type==="path"&&t.path){let f=t.path.match(D1.segmentRE)||[];for(var s=0,l=0;ld&&(a(i[s],v[d]),s++)}}else a(i[0],t[r+"0"]),a(i[1],t[r+"1"]);let u={};for(let f in o){let h=Pd.getFromId(e,f);if(h){var c=h.type==="category"||h.type==="multicategory"?h.r2c:h.d2c;h.type==="date"&&(c=J$.decodeDate(c)),u[h._id]=o[f].map(c)}}return u}function Dwe(e){return Pwe(e.line.width,e.xsizemode,e.x0,e.x1,e.path,!1)}function Fwe(e){return Pwe(e.line.width,e.ysizemode,e.y0,e.y1,e.path,!0)}function Pwe(e,t,r,i,n,a){var o=e/2,s=a;if(t==="pixel"){var l=n?J$.extractPathCoords(n,a?D1.paramIsY:D1.paramIsX):[r,i],u=K$.aggNums(Math.max,null,l),c=K$.aggNums(Math.min,null,l),f=c<0?Math.abs(c)+o:o,h=u>0?u+o:o;return{ppad:o,ppadplus:s?f:h,ppadminus:s?h:f}}else return{ppad:o}}function Lwe(e,t,r){var i=e._id.charAt(0)==="x"?"x":"y",n=e.type==="category"||e.type==="multicategory",a,o,s=0,l=0,u=n?e.r2c:e.d2c,c=t[i+"sizemode"]==="scaled";if(c?(a=t[i+"0"],o=t[i+"1"],n&&(s=t[i+"0shift"],l=t[i+"1shift"])):(a=t[i+"anchor"],o=t[i+"anchor"]),a!==void 0)return[u(a)+s,u(o)+l];if(t.path){var f=1/0,h=-1/0,p=t.path.match(D1.segmentRE),d,v,m,g,w;for(e.type==="date"&&(u=J$.decodeDate(u)),d=0;dh&&(h=w)));if(h>=f)return[f,h]}}});var qwe=W((XUr,Bwe)=>{"use strict";var zwe=X7();Bwe.exports={moduleType:"component",name:"shapes",layoutAttributes:Z$(),supplyLayoutDefaults:Mwe(),supplyDrawNewShapeDefaults:kwe(),includeBasePlot:vM()("shapes"),calcAutorange:Rwe(),draw:zwe.draw,drawOne:zwe.drawOne}});var Q$=W((KUr,Nwe)=>{"use strict";var Owe=(Wl(),Pt($l)),iPt=Ia().templatedArray,ZUr=(dM(),Pt(hM));Nwe.exports=iPt("image",{visible:{valType:"boolean",dflt:!0,editType:"arraydraw"},source:{valType:"string",editType:"arraydraw"},layer:{valType:"enumerated",values:["below","above"],dflt:"above",editType:"arraydraw"},sizex:{valType:"number",dflt:0,editType:"arraydraw"},sizey:{valType:"number",dflt:0,editType:"arraydraw"},sizing:{valType:"enumerated",values:["fill","contain","stretch"],dflt:"contain",editType:"arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},x:{valType:"any",dflt:0,editType:"arraydraw"},y:{valType:"any",dflt:0,editType:"arraydraw"},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left",editType:"arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],dflt:"top",editType:"arraydraw"},xref:{valType:"enumerated",values:["paper",Owe.idRegex.x.toString()],dflt:"paper",editType:"arraydraw"},yref:{valType:"enumerated",values:["paper",Owe.idRegex.y.toString()],dflt:"paper",editType:"arraydraw"},editType:"arraydraw"})});var Vwe=W((JUr,Uwe)=>{"use strict";var nPt=it(),eW=Wi(),aPt=ef(),oPt=Q$(),sPt="images";Uwe.exports=function(t,r){var i={name:sPt,handleItemDefaults:lPt};aPt(t,r,i)};function lPt(e,t,r){function i(h,p){return nPt.coerce(e,t,oPt,h,p)}var n=i("source"),a=i("visible",!!n);if(!a)return t;i("layer"),i("xanchor"),i("yanchor"),i("sizex"),i("sizey"),i("sizing"),i("opacity");for(var o={_fullLayout:r},s=["x","y"],l=0;l<2;l++){var u=s[l],c=eW.coerceRef(e,t,o,u,"paper",void 0);if(c!=="paper"){var f=eW.getFromId(o,c);f._imgIndices.push(t._index)}eW.coercePosition(t,o,i,c,u,0)}return t}});var $we=W((QUr,jwe)=>{"use strict";var Gwe=gi(),uPt=en(),f5=Wi(),Hwe=Fs(),cPt=(vd(),Pt(pd));jwe.exports=function(t){var r=t._fullLayout,i=[],n={},a=[],o,s;for(s=0;s{"use strict";var Wwe=un(),fPt=q8();Ywe.exports=function(t,r,i,n){r=r||{};var a=i==="log"&&r.type==="linear",o=i==="linear"&&r.type==="log";if(a||o){for(var s=t._fullLayout.images,l=r._id.charAt(0),u,c,f=0;f{"use strict";Zwe.exports={moduleType:"component",name:"images",layoutAttributes:Q$(),supplyLayoutDefaults:Vwe(),includeBasePlot:vM()("images"),draw:$we(),convertCoords:Xwe()}});var lL={};Kn(lL,{activeColor:()=>zPt,arrowOffsetX:()=>PPt,arrowPadX:()=>kPt,arrowSymbol:()=>qPt,autoMarginIdRoot:()=>TPt,blankHeaderOpts:()=>APt,buttonClassName:()=>xPt,containerClassName:()=>dPt,dropdownButtonClassName:()=>yPt,dropdownButtonGroupClassName:()=>mPt,gapButton:()=>RPt,gapButtonHeader:()=>IPt,headerArrowClassName:()=>gPt,headerClassName:()=>vPt,headerGroupClassName:()=>pPt,hoverColor:()=>BPt,itemRectClassName:()=>bPt,itemTextClassName:()=>_Pt,menuIndexAttrName:()=>wPt,minHeight:()=>SPt,minWidth:()=>MPt,name:()=>hPt,rx:()=>CPt,ry:()=>DPt,textOffsetX:()=>FPt,textOffsetY:()=>LPt,textPadX:()=>EPt});var hPt,dPt,pPt,vPt,gPt,mPt,yPt,xPt,bPt,_Pt,wPt,TPt,APt,MPt,SPt,EPt,kPt,CPt,DPt,FPt,LPt,PPt,IPt,RPt,zPt,BPt,qPt,uL=Ci(()=>{"use strict";hPt="updatemenus",dPt="updatemenu-container",pPt="updatemenu-header-group",vPt="updatemenu-header",gPt="updatemenu-header-arrow",mPt="updatemenu-dropdown-button-group",yPt="updatemenu-dropdown-button",xPt="updatemenu-button",bPt="updatemenu-item-rect",_Pt="updatemenu-item-text",wPt="updatemenu-active-index",TPt="updatemenu-",APt={label:" "},MPt=30,SPt=30,EPt=24,kPt=16,CPt=2,DPt=2,FPt=12,LPt=3,PPt=4,IPt=5,RPt=2,zPt="#F4FAFF",BPt="#F4FAFF",qPt={left:"\u25C4",right:"\u25BA",up:"\u25B2",down:"\u25BC"}});var tW=W((rVr,Qwe)=>{"use strict";var OPt=jo(),NPt=jl(),UPt=nn().extendFlat,VPt=cs().overrideAll,GPt=yD(),Jwe=Ia().templatedArray,HPt=Jwe("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}});Qwe.exports=VPt(Jwe("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:HPt,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:UPt(GPt({editType:"arraydraw"}),{}),font:OPt({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:NPt.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")});var i5e=W((iVr,r5e)=>{"use strict";var cL=it(),e5e=ef(),t5e=tW(),jPt=(uL(),Pt(lL)),$Pt=jPt.name,WPt=t5e.buttons;r5e.exports=function(t,r){var i={name:$Pt,handleItemDefaults:YPt};e5e(t,r,i)};function YPt(e,t,r){function i(o,s){return cL.coerce(e,t,t5e,o,s)}var n=e5e(e,t,{name:"buttons",handleItemDefaults:XPt}),a=i("visible",n.length>0);a&&(i("active"),i("direction"),i("type"),i("showactive"),i("x"),i("y"),cL.noneOrAll(e,t,["x","y"]),i("xanchor"),i("yanchor"),i("pad.t"),i("pad.r"),i("pad.b"),i("pad.l"),cL.coerceFont(i,"font",r.font),i("bgcolor",r.paper_bgcolor),i("bordercolor"),i("borderwidth"))}function XPt(e,t){function r(n,a){return cL.coerce(e,t,WPt,n,a)}var i=r("visible",e.method==="skip"||Array.isArray(e.args));i&&(r("method"),r("args"),r("args2"),r("label"),r("execute"))}});var o5e=W((nVr,a5e)=>{"use strict";a5e.exports=js;var iv=gi(),n5e=ai(),h5=en(),fL=it();function js(e,t,r){this.gd=e,this.container=t,this.id=r,this.position=null,this.translateX=null,this.translateY=null,this.hbar=null,this.vbar=null,this.bg=this.container.selectAll("rect.scrollbox-bg").data([0]),this.bg.exit().on(".drag",null).on("wheel",null).remove(),this.bg.enter().append("rect").classed("scrollbox-bg",!0).style("pointer-events","all").attr({opacity:0,x:0,y:0,width:0,height:0})}js.barWidth=2;js.barLength=20;js.barRadius=2;js.barPad=1;js.barColor="#808BA4";js.prototype.enable=function(t,r,i){var n=this.gd._fullLayout,a=n.width,o=n.height;this.position=t;var s=this.position.l,l=this.position.w,u=this.position.t,c=this.position.h,f=this.position.direction,h=f==="down",p=f==="left",d=f==="right",v=f==="up",m=l,g=c,w,_,b,S;!h&&!p&&!d&&!v&&(this.position.direction="down",h=!0);var x=h||v;x?(w=s,_=w+m,h?(b=u,S=Math.min(b+g,o),g=S-b):(S=u+g,b=Math.max(S-g,0),g=S-b)):(b=u,S=b+g,p?(_=s+m,w=Math.max(_-m,0),m=_-w):(w=s,_=Math.min(w+m,a),m=_-w)),this._box={l:w,t:b,w:m,h:g};var T=l>m,A=js.barLength+2*js.barPad,y=js.barWidth+2*js.barPad,E=s,M=u+c;M+y>o&&(M=o-y);var C=this.container.selectAll("rect.scrollbar-horizontal").data(T?[0]:[]);C.exit().on(".drag",null).remove(),C.enter().append("rect").classed("scrollbar-horizontal",!0).call(n5e.fill,js.barColor),T?(this.hbar=C.attr({rx:js.barRadius,ry:js.barRadius,x:E,y:M,width:A,height:y}),this._hbarXMin=E+A/2,this._hbarTranslateMax=m-A):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var k=c>g,D=js.barWidth+2*js.barPad,L=js.barLength+2*js.barPad,P=s+l,R=u;P+D>a&&(P=a-D);var F=this.container.selectAll("rect.scrollbar-vertical").data(k?[0]:[]);F.exit().on(".drag",null).remove(),F.enter().append("rect").classed("scrollbar-vertical",!0).call(n5e.fill,js.barColor),k?(this.vbar=F.attr({rx:js.barRadius,ry:js.barRadius,x:P,y:R,width:D,height:L}),this._vbarYMin=R+L/2,this._vbarTranslateMax=g-L):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var I=this.id,B=w-.5,O=k?_+D+.5:_+.5,$=b-.5,Y=T?S+y+.5:S+.5,K=n._topdefs.selectAll("#"+I).data(T||k?[0]:[]);if(K.exit().remove(),K.enter().append("clipPath").attr("id",I).append("rect"),T||k?(this._clipRect=K.select("rect").attr({x:Math.floor(B),y:Math.floor($),width:Math.ceil(O)-Math.floor(B),height:Math.ceil(Y)-Math.floor($)}),this.container.call(h5.setClipUrl,I,this.gd),this.bg.attr({x:s,y:u,width:l,height:c})):(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(h5.setClipUrl,null),delete this._clipRect),T||k){var j=iv.behavior.drag().on("dragstart",function(){iv.event.sourceEvent.preventDefault()}).on("drag",this._onBoxDrag.bind(this));this.container.on("wheel",null).on("wheel",this._onBoxWheel.bind(this)).on(".drag",null).call(j);var q=iv.behavior.drag().on("dragstart",function(){iv.event.sourceEvent.preventDefault(),iv.event.sourceEvent.stopPropagation()}).on("drag",this._onBarDrag.bind(this));T&&this.hbar.on(".drag",null).call(q),k&&this.vbar.on(".drag",null).call(q)}this.setTranslate(r,i)};js.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(h5.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)};js.prototype._onBoxDrag=function(){var t=this.translateX,r=this.translateY;this.hbar&&(t-=iv.event.dx),this.vbar&&(r-=iv.event.dy),this.setTranslate(t,r)};js.prototype._onBoxWheel=function(){var t=this.translateX,r=this.translateY;this.hbar&&(t+=iv.event.deltaY),this.vbar&&(r+=iv.event.deltaY),this.setTranslate(t,r)};js.prototype._onBarDrag=function(){var t=this.translateX,r=this.translateY;if(this.hbar){var i=t+this._hbarXMin,n=i+this._hbarTranslateMax,a=fL.constrain(iv.event.x,i,n),o=(a-i)/(n-i),s=this.position.w-this._box.w;t=o*s}if(this.vbar){var l=r+this._vbarYMin,u=l+this._vbarTranslateMax,c=fL.constrain(iv.event.y,l,u),f=(c-l)/(u-l),h=this.position.h-this._box.h;r=f*h}this.setTranslate(t,r)};js.prototype.setTranslate=function(t,r){var i=this.position.w-this._box.w,n=this.position.h-this._box.h;if(t=fL.constrain(t||0,0,i),r=fL.constrain(r||0,0,n),this.translateX=t,this.translateY=r,this.container.call(h5.setTranslate,this._box.l-this.position.l-t,this._box.t-this.position.t-r),this._clipRect&&this._clipRect.attr({x:Math.floor(this.position.l+t-.5),y:Math.floor(this.position.t+r-.5)}),this.hbar){var a=t/i;this.hbar.call(h5.setTranslate,t+a*this._hbarTranslateMax,r)}if(this.vbar){var o=r/n;this.vbar.call(h5.setTranslate,t,r+o*this._vbarTranslateMax)}}});var g5e=W((aVr,v5e)=>{"use strict";var d5=gi(),zM=Qo(),BM=ai(),p5=en(),D0=it(),hL=ho(),ZPt=Ia().arrayEditor,l5e=(Xl(),Pt(Yl)).LINE_SPACING,Fn=(uL(),Pt(lL)),KPt=o5e();v5e.exports=function(t){var r=t._fullLayout,i=D0.filterVisible(r[Fn.name]);function n(h){zM.autoMargin(t,d5e(h))}var a=r._menulayer.selectAll("g."+Fn.containerClassName).data(i.length>0?[0]:[]);if(a.enter().append("g").classed(Fn.containerClassName,!0).style("cursor","pointer"),a.exit().each(function(){d5.select(this).selectAll("g."+Fn.headerGroupClassName).each(n)}).remove(),i.length!==0){var o=a.selectAll("g."+Fn.headerGroupClassName).data(i,JPt);o.enter().append("g").classed(Fn.headerGroupClassName,!0);for(var s=D0.ensureSingle(a,"g",Fn.dropdownButtonGroupClassName,function(h){h.style("pointer-events","all")}),l=0;l{"use strict";var a9t=(uL(),Pt(lL));m5e.exports={moduleType:"component",name:a9t.name,layoutAttributes:tW(),supplyLayoutDefaults:i5e(),draw:g5e()}});var OM={};Kn(OM,{arrowOffsetX:()=>M9t,autoMarginIdRoot:()=>_9t,containerClassName:()=>s9t,currentValueClass:()=>y9t,currentValueInset:()=>J9t,currentValuePadding:()=>K9t,gripBgActiveColor:()=>U9t,gripBgColor:()=>N9t,gripBorder:()=>B9t,gripBorderColor:()=>O9t,gripBorderWidth:()=>q9t,gripHeight:()=>z9t,gripRadius:()=>I9t,gripRectClass:()=>h9t,gripWidth:()=>R9t,groupClassName:()=>l9t,inputAreaClass:()=>u9t,inputProxyClass:()=>p9t,labelClass:()=>m9t,labelGroupClass:()=>g9t,labelOffset:()=>G9t,labelPadding:()=>V9t,labelsClass:()=>v9t,menuIndexAttrName:()=>b9t,minHeight:()=>T9t,minWidth:()=>w9t,minorTickColor:()=>X9t,minorTickLength:()=>Z9t,minorTickOffset:()=>Y9t,name:()=>o9t,railBgColor:()=>F9t,railBorder:()=>k9t,railBorderColor:()=>D9t,railBorderWidth:()=>C9t,railHeight:()=>x9t,railInset:()=>L9t,railRadius:()=>S9t,railRectClass:()=>c9t,railTouchRectClass:()=>f9t,railWidth:()=>E9t,stepInset:()=>P9t,textPadX:()=>A9t,tickColor:()=>j9t,tickLength:()=>W9t,tickOffset:()=>$9t,tickRectClass:()=>d9t,tickWidth:()=>H9t});var o9t,s9t,l9t,u9t,c9t,f9t,h9t,d9t,p9t,v9t,g9t,m9t,y9t,x9t,b9t,_9t,w9t,T9t,A9t,M9t,S9t,E9t,k9t,C9t,D9t,F9t,L9t,P9t,I9t,R9t,z9t,B9t,q9t,O9t,N9t,U9t,V9t,G9t,H9t,j9t,$9t,W9t,Y9t,X9t,Z9t,K9t,J9t,NM=Ci(()=>{"use strict";o9t="sliders",s9t="slider-container",l9t="slider-group",u9t="slider-input-area",c9t="slider-rail-rect",f9t="slider-rail-touch-rect",h9t="slider-grip-rect",d9t="slider-tick-rect",p9t="slider-input-proxy",v9t="slider-labels",g9t="slider-label-group",m9t="slider-label",y9t="slider-current-value",x9t=5,b9t="slider-active-index",_9t="slider-",w9t=30,T9t=30,A9t=40,M9t=4,S9t=2,E9t=5,k9t=4,C9t=1,D9t="#bec8d9",F9t="#f8fafc",L9t=8,P9t=10,I9t=10,R9t=20,z9t=20,B9t=20,q9t=1,O9t="#bec8d9",N9t="#f6f8fa",U9t="#dbdde0",V9t=8,G9t=0,H9t=1,j9t="#333",$9t=25,W9t=7,Y9t=25,X9t="#333",Z9t=4,K9t=8,J9t=0});var aW=W((sVr,_5e)=>{"use strict";var x5e=jo(),Q9t=yD(),eIt=nn().extendDeepAll,tIt=cs().overrideAll,rIt=hA(),b5e=Ia().templatedArray,Vb=(NM(),Pt(OM)),iIt=b5e("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}});_5e.exports=tIt(b5e("slider",{visible:{valType:"boolean",dflt:!0},active:{valType:"number",min:0,dflt:0},steps:iIt,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:eIt(Q9t({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:rIt.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:x5e({})},font:x5e({}),activebgcolor:{valType:"color",dflt:Vb.gripBgActiveColor},bgcolor:{valType:"color",dflt:Vb.railBgColor},bordercolor:{valType:"color",dflt:Vb.railBorderColor},borderwidth:{valType:"number",min:0,dflt:Vb.railBorderWidth},ticklen:{valType:"number",min:0,dflt:Vb.tickLength},tickcolor:{valType:"color",dflt:Vb.tickColor},tickwidth:{valType:"number",min:0,dflt:1},minorticklen:{valType:"number",min:0,dflt:Vb.minorTickLength}}),"arraydraw","from-root")});var M5e=W((lVr,A5e)=>{"use strict";var v5=it(),w5e=ef(),T5e=aW(),nIt=(NM(),Pt(OM)),aIt=nIt.name,oIt=T5e.steps;A5e.exports=function(t,r){w5e(t,r,{name:aIt,handleItemDefaults:sIt})};function sIt(e,t,r){function i(f,h){return v5.coerce(e,t,T5e,f,h)}for(var n=w5e(e,t,{name:"steps",handleItemDefaults:lIt}),a=0,o=0;o{"use strict";var nv=gi(),dL=Qo(),Qy=ai(),av=en(),F0=it(),uIt=F0.strTranslate,UM=ho(),cIt=Ia().arrayEditor,ia=(NM(),Pt(OM)),lW=(Xl(),Pt(Yl)),k5e=lW.LINE_SPACING,oW=lW.FROM_TL,sW=lW.FROM_BR;I5e.exports=function(t){var r=t._context.staticPlot,i=t._fullLayout,n=fIt(i,t),a=i._infolayer.selectAll("g."+ia.containerClassName).data(n.length>0?[0]:[]);a.enter().append("g").classed(ia.containerClassName,!0).style("cursor",r?null:"ew-resize");function o(c){c._commandObserver&&(c._commandObserver.remove(),delete c._commandObserver),dL.autoMargin(t,C5e(c))}if(a.exit().each(function(){nv.select(this).selectAll("g."+ia.groupClassName).each(o)}).remove(),n.length!==0){var s=a.selectAll("g."+ia.groupClassName).data(n,hIt);s.enter().append("g").classed(ia.groupClassName,!0),s.exit().each(o).remove();for(var l=0;l0&&(s=s.transition().duration(t.transition.duration).ease(t.transition.easing)),s.attr("transform",uIt(o-ia.gripWidth*.5,t._dims.currentValueTotalHeight))}}function uW(e,t){var r=e._dims;return r.inputAreaStart+ia.stepInset+(r.inputAreaLength-2*ia.stepInset)*Math.min(1,Math.max(0,t))}function E5e(e,t){var r=e._dims;return Math.min(1,Math.max(0,(t-ia.stepInset-r.inputAreaStart)/(r.inputAreaLength-2*ia.stepInset-2*r.inputAreaStart)))}function xIt(e,t,r){var i=r._dims,n=F0.ensureSingle(e,"rect",ia.railTouchRectClass,function(a){a.call(L5e,t,e,r).style("pointer-events","all")});n.attr({width:i.inputAreaLength,height:Math.max(i.inputAreaWidth,ia.tickOffset+r.ticklen+i.labelHeight)}).call(Qy.fill,r.bgcolor).attr("opacity",0),av.setTranslate(n,0,i.currentValueTotalHeight)}function bIt(e,t){var r=t._dims,i=r.inputAreaLength-ia.railInset*2,n=F0.ensureSingle(e,"rect",ia.railRectClass);n.attr({width:i,height:ia.railWidth,rx:ia.railRadius,ry:ia.railRadius,"shape-rendering":"crispEdges"}).call(Qy.stroke,t.bordercolor).call(Qy.fill,t.bgcolor).style("stroke-width",t.borderwidth+"px"),av.setTranslate(n,ia.railInset,(r.inputAreaWidth-ia.railWidth)*.5+r.currentValueTotalHeight)}});var B5e=W((cVr,z5e)=>{"use strict";var _It=(NM(),Pt(OM));z5e.exports={moduleType:"component",name:_It.name,layoutAttributes:aW(),supplyLayoutDefaults:M5e(),draw:R5e()}});var vL=W((fVr,O5e)=>{"use strict";var q5e=jl();O5e.exports={bgcolor:{valType:"color",dflt:q5e.background,editType:"plot"},bordercolor:{valType:"color",dflt:q5e.defaultLine,editType:"plot"},borderwidth:{valType:"integer",dflt:0,min:0,editType:"plot"},autorange:{valType:"boolean",dflt:!0,editType:"calc",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},range:{valType:"info_array",items:[{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}},{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}}],editType:"calc",impliedEdits:{autorange:!1}},thickness:{valType:"number",dflt:.15,min:0,max:1,editType:"plot"},visible:{valType:"boolean",dflt:!0,editType:"calc"},editType:"calc"}});var cW=W((hVr,N5e)=>{"use strict";N5e.exports={_isSubplotObj:!0,rangemode:{valType:"enumerated",values:["auto","fixed","match"],dflt:"match",editType:"calc"},range:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},editType:"calc"}});var gL={};Kn(gL,{bgClassName:()=>AIt,containerClassName:()=>TIt,extraPad:()=>WIt,grabAreaCursor:()=>VIt,grabAreaFill:()=>UIt,grabAreaMaxClassName:()=>PIt,grabAreaMinClassName:()=>DIt,grabAreaWidth:()=>GIt,grabberMaxClassName:()=>LIt,grabberMinClassName:()=>CIt,handleMaxClassName:()=>IIt,handleMinClassName:()=>FIt,handleRadius:()=>jIt,handleStrokeWidth:()=>$It,handleWidth:()=>HIt,maskColor:()=>BIt,maskMaxClassName:()=>EIt,maskMaxOppAxisClassName:()=>zIt,maskMinClassName:()=>SIt,maskMinOppAxisClassName:()=>RIt,maskOppAxisColor:()=>qIt,name:()=>wIt,rangePlotClassName:()=>MIt,slideBoxClassName:()=>kIt,slideBoxCursor:()=>NIt,slideBoxFill:()=>OIt});var wIt,TIt,AIt,MIt,SIt,EIt,kIt,CIt,DIt,FIt,LIt,PIt,IIt,RIt,zIt,BIt,qIt,OIt,NIt,UIt,VIt,GIt,HIt,jIt,$It,WIt,mL=Ci(()=>{"use strict";wIt="rangeslider",TIt="rangeslider-container",AIt="rangeslider-bg",MIt="rangeslider-rangeplot",SIt="rangeslider-mask-min",EIt="rangeslider-mask-max",kIt="rangeslider-slidebox",CIt="rangeslider-grabber-min",DIt="rangeslider-grabarea-min",FIt="rangeslider-handle-min",LIt="rangeslider-grabber-max",PIt="rangeslider-grabarea-max",IIt="rangeslider-handle-max",RIt="rangeslider-mask-min-opp-axis",zIt="rangeslider-mask-max-opp-axis",BIt="rgba(0,0,0,0.4)",qIt="rgba(0,0,0,0.2)",OIt="transparent",NIt="ew-resize",UIt="transparent",VIt="col-resize",GIt=10,HIt=4,jIt=1,$It=1,WIt=15});var G5e=W(xL=>{"use strict";var YIt=Fs(),XIt=ho(),U5e=(mL(),Pt(gL)),ZIt=(Xl(),Pt(Yl)).LINE_SPACING,yL=U5e.name;function V5e(e){var t=e&&e[yL];return t&&t.visible}xL.isVisible=V5e;xL.makeData=function(e){for(var t=YIt.list({_fullLayout:e},"x",!0),r=e.margin,i=[],n=0;n{"use strict";var bL=it(),H5e=Ia(),j5e=Fs(),KIt=vL(),JIt=cW();$5e.exports=function(t,r,i){var n=t[i],a=r[i];if(!(n.rangeslider||r._requestRangeslider[a._id]))return;bL.isPlainObject(n.rangeslider)||(n.rangeslider={});var o=n.rangeslider,s=H5e.newContainer(a,"rangeslider");function l(S,x){return bL.coerce(o,s,KIt,S,x)}var u,c;function f(S,x){return bL.coerce(u,c,JIt,S,x)}var h=l("visible");if(h){l("bgcolor",r.plot_bgcolor),l("bordercolor"),l("borderwidth"),l("thickness"),l("autorange",!a.isValidRange(o.range)),l("range");var p=r._subplots;if(p)for(var d=p.cartesian.filter(function(S){return S.slice(0,Math.max(0,S.indexOf("y")))===j5e.name2id(i)}).map(function(S){return S.slice(S.indexOf("y"),S.length)}),v=bL.simpleMap(d,j5e.id2name),m=0;m{"use strict";var QIt=Fs().list,eRt=jp().getAutoRange,tRt=(mL(),Pt(gL));Y5e.exports=function(t){for(var r=QIt(t,"x",!0),i=0;i{"use strict";var _L=gi(),rRt=xi(),iRt=Qo(),ml=it(),wL=ml.strTranslate,K5e=en(),e2=ai(),nRt=db(),aRt=vl(),fW=Fs(),oRt=Mf(),sRt=$p(),Ta=(mL(),Pt(gL));J5e.exports=function(e){for(var t=e._fullLayout,r=t._rangeSliderData,i=0;i=F.max)P=M[R+1];else if(L=F.pmax)P=M[R+1];else if(L0?e.touches[0].clientX:0}function lRt(e,t,r,i){if(t._context.staticPlot)return;var n=e.select("rect."+Ta.slideBoxClassName).node(),a=e.select("rect."+Ta.grabAreaMinClassName).node(),o=e.select("rect."+Ta.grabAreaMaxClassName).node();function s(){var l=_L.event,u=l.target,c=Z5e(l),f=c-e.node().getBoundingClientRect().left,h=i.d2p(r._rl[0]),p=i.d2p(r._rl[1]),d=oRt.coverSlip();this.addEventListener("touchmove",v),this.addEventListener("touchend",m),d.addEventListener("mousemove",v),d.addEventListener("mouseup",m);function v(g){var w=Z5e(g),_=+w-c,b,S,x;switch(u){case n:if(x="ew-resize",h+_>r._length||p+_<0)return;b=h+_,S=p+_;break;case a:if(x="col-resize",h+_>r._length)return;b=h+_,S=p;break;case o:if(x="col-resize",p+_<0)return;b=h,S=p+_;break;default:x="ew-resize",b=f,S=f+_;break}if(S{"use strict";var yRt=it(),xRt=vL(),bRt=cW(),hW=G5e();e4e.exports={moduleType:"component",name:"rangeslider",schema:{subplots:{xaxis:{rangeslider:yRt.extendFlat({},xRt,{yaxis:bRt})}}},layoutAttributes:vL(),handleDefaults:W5e(),calcAutorange:X5e(),draw:Q5e(),isVisible:hW.isVisible,makeData:hW.makeData,autoMarginOpts:hW.autoMarginOpts}});var TL=W((yVr,i4e)=>{"use strict";var _Rt=jo(),r4e=jl(),wRt=Ia().templatedArray,TRt=wRt("button",{visible:{valType:"boolean",dflt:!0,editType:"plot"},step:{valType:"enumerated",values:["month","year","day","hour","minute","second","all"],dflt:"month",editType:"plot"},stepmode:{valType:"enumerated",values:["backward","todate"],dflt:"backward",editType:"plot"},count:{valType:"number",min:0,dflt:1,editType:"plot"},label:{valType:"string",editType:"plot"},editType:"plot"});i4e.exports={visible:{valType:"boolean",editType:"plot"},buttons:TRt,x:{valType:"number",min:-2,max:3,editType:"plot"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"plot"},y:{valType:"number",min:-2,max:3,editType:"plot"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"bottom",editType:"plot"},font:_Rt({editType:"plot"}),bgcolor:{valType:"color",dflt:r4e.lightLine,editType:"plot"},activecolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:r4e.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"}});var dW={};Kn(dW,{darkAmount:()=>CRt,lightAmount:()=>kRt,minButtonWidth:()=>MRt,rx:()=>SRt,ry:()=>ERt,yPad:()=>ARt});var ARt,MRt,SRt,ERt,kRt,CRt,pW=Ci(()=>{"use strict";ARt=.02,MRt=30,SRt=3,ERt=3,kRt=25,CRt=10});var o4e=W((xVr,a4e)=>{"use strict";var AL=it(),DRt=ai(),FRt=Ia(),LRt=ef(),n4e=TL(),vW=(pW(),Pt(dW));a4e.exports=function(t,r,i,n,a){var o=t.rangeselector||{},s=FRt.newContainer(r,"rangeselector");function l(p,d){return AL.coerce(o,s,n4e,p,d)}var u=LRt(o,s,{name:"buttons",handleItemDefaults:PRt,calendar:a}),c=l("visible",u.length>0);if(c){var f=IRt(r,i,n);l("x",f[0]),l("y",f[1]),AL.noneOrAll(t,r,["x","y"]),l("xanchor"),l("yanchor"),AL.coerceFont(l,"font",i.font);var h=l("bgcolor");l("activecolor",DRt.contrast(h,vW.lightAmount,vW.darkAmount)),l("bordercolor"),l("borderwidth")}};function PRt(e,t,r,i){var n=i.calendar;function a(l,u){return AL.coerce(e,t,n4e.buttons,l,u)}var o=a("visible");if(o){var s=a("step");s!=="all"&&(n&&n!=="gregorian"&&(s==="month"||s==="year")?t.stepmode="backward":a("stepmode"),a("count")),a("label")}}function IRt(e,t,r){for(var i=r.filter(function(s){return t[s].anchor===e._id}),n=0,a=0;a{"use strict";var RRt=$N(),zRt=it().titleCase;s4e.exports=function(t,r){var i=t._name,n={};if(r.step==="all")n[i+".autorange"]=!0;else{var a=BRt(t,r);n[i+".range[0]"]=a[0],n[i+".range[1]"]=a[1]}return n};function BRt(e,t){var r=e.range,i=new Date(e.r2l(r[1])),n=t.step,a=RRt["utc"+zRt(n)],o=t.count,s;switch(t.stepmode){case"backward":s=e.l2r(+a.offset(i,-o));break;case"todate":var l=a.offset(i,-o);s=e.l2r(+a.ceil(l));break}var u=r[1];return[s,u]}});var g4e=W((_Vr,v4e)=>{"use strict";var SL=gi(),qRt=xi(),ORt=Qo(),u4e=ai(),p4e=en(),Qg=it(),c4e=Qg.strTranslate,ML=ho(),NRt=Fs(),yW=(Xl(),Pt(Yl)),f4e=yW.LINE_SPACING,h4e=yW.FROM_TL,d4e=yW.FROM_BR,mW=(pW(),Pt(dW)),URt=l4e();v4e.exports=function(t){var r=t._fullLayout,i=r._infolayer.selectAll(".rangeselector").data(VRt(t),GRt);i.enter().append("g").classed("rangeselector",!0),i.exit().remove(),i.style({cursor:"pointer","pointer-events":"all"}),i.each(function(n){var a=SL.select(this),o=n,s=o.rangeselector,l=a.selectAll("g.button").data(Qg.filterVisible(s.buttons));l.enter().append("g").classed("button",!0),l.exit().remove(),l.each(function(u){var c=SL.select(this),f=URt(o,u);u._isActive=HRt(o,u,f),c.call(gW,s,u),c.call($Rt,s,u,t),c.on("click",function(){t._dragged||qRt.call("_guiRelayout",t,f)}),c.on("mouseover",function(){u._isHovered=!0,c.call(gW,s,u)}),c.on("mouseout",function(){u._isHovered=!1,c.call(gW,s,u)})}),YRt(t,l,s,o._name,a)})};function VRt(e){for(var t=NRt.list(e,"x",!0),r=[],i=0;i{"use strict";m4e.exports={moduleType:"component",name:"rangeselector",schema:{subplots:{xaxis:{rangeselector:TL()}}},layoutAttributes:TL(),handleDefaults:o4e(),draw:g4e()}});var fs=W(xW=>{"use strict";var x4e=nn().extendFlat;xW.attributes=function(e,t){e=e||{},t=t||{};var r={valType:"info_array",editType:e.editType,items:[{valType:"number",min:0,max:1,editType:e.editType},{valType:"number",min:0,max:1,editType:e.editType}],dflt:[0,1]},i=e.name?e.name+" ":"",n=e.trace?"trace":"subplot",a=t.description?" "+t.description:"",o={x:x4e({},r,{}),y:x4e({},r,{}),editType:e.editType};return e.noGridCell||(o.row={valType:"integer",min:0,dflt:0,editType:e.editType},o.column={valType:"integer",min:0,dflt:0,editType:e.editType}),o};xW.defaults=function(e,t,r,i){var n=i&&i.x||[0,1],a=i&&i.y||[0,1],o=t.grid;if(o){var s=r("domain.column");s!==void 0&&(s{"use strict";var XRt=it(),ZRt=(lw(),Pt(cA)).counter,KRt=fs().attributes,b4e=(Wl(),Pt($l)).idRegex,JRt=Ia(),bW={rows:{valType:"integer",min:1,editType:"plot"},roworder:{valType:"enumerated",values:["top to bottom","bottom to top"],dflt:"top to bottom",editType:"plot"},columns:{valType:"integer",min:1,editType:"plot"},subplots:{valType:"info_array",freeLength:!0,dimensions:2,items:{valType:"enumerated",values:[ZRt("xy").toString(),""],editType:"plot"},editType:"plot"},xaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[b4e.x.toString(),""],editType:"plot"},editType:"plot"},yaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[b4e.y.toString(),""],editType:"plot"},editType:"plot"},pattern:{valType:"enumerated",values:["independent","coupled"],dflt:"coupled",editType:"plot"},xgap:{valType:"number",min:0,max:1,editType:"plot"},ygap:{valType:"number",min:0,max:1,editType:"plot"},domain:KRt({name:"grid",editType:"plot",noGridCell:!0},{}),xside:{valType:"enumerated",values:["bottom","bottom plot","top plot","top"],dflt:"bottom plot",editType:"plot"},yside:{valType:"enumerated",values:["left","left plot","right plot","right"],dflt:"left plot",editType:"plot"},editType:"plot"};function EL(e,t,r){var i=t[r+"axes"],n=Object.keys((e._splomAxes||{})[r]||{});if(Array.isArray(i))return i;if(n.length)return n}function QRt(e,t){var r=e.grid||{},i=EL(t,r,"x"),n=EL(t,r,"y");if(!e.grid&&!i&&!n)return;var a=Array.isArray(r.subplots)&&Array.isArray(r.subplots[0]),o=Array.isArray(i),s=Array.isArray(n),l=o&&i!==r.xaxes&&s&&n!==r.yaxes,u,c;a?(u=r.subplots.length,c=r.subplots[0].length):(s&&(u=n.length),o&&(c=i.length));var f=JRt.newContainer(t,"grid");function h(x,T){return XRt.coerce(r,f,bW,x,T)}var p=h("rows",u),d=h("columns",c);if(!(p*d>1)){delete t.grid;return}if(!a&&!o&&!s){var v=h("pattern")==="independent";v&&(a=!0)}f._hasSubplotGrid=a;var m=h("roworder"),g=m==="top to bottom",w=a?.2:.1,_=a?.3:.1,b,S;l&&t._splomGridDflt&&(b=t._splomGridDflt.xside,S=t._splomGridDflt.yside),f._domains={x:_4e("x",h,w,b,d),y:_4e("y",h,_,S,p,g)}}function _4e(e,t,r,i,n,a){var o=t(e+"gap",r),s=t("domain."+e);t(e+"side",i);for(var l=new Array(n),u=s[0],c=(s[1]-u)/(n-o),f=c*(1-o),h=0;h{"use strict";A4e.exports={visible:{valType:"boolean",editType:"calc"},type:{valType:"enumerated",values:["percent","constant","sqrt","data"],editType:"calc"},symmetric:{valType:"boolean",editType:"calc"},array:{valType:"data_array",editType:"calc"},arrayminus:{valType:"data_array",editType:"calc"},value:{valType:"number",min:0,dflt:10,editType:"calc"},valueminus:{valType:"number",min:0,dflt:10,editType:"calc"},traceref:{valType:"integer",min:0,dflt:0,editType:"style"},tracerefminus:{valType:"integer",min:0,dflt:0,editType:"style"},copy_ystyle:{valType:"boolean",editType:"plot"},copy_zstyle:{valType:"boolean",editType:"style"},color:{valType:"color",editType:"style"},thickness:{valType:"number",min:0,dflt:2,editType:"style"},width:{valType:"number",min:0,editType:"plot"},editType:"calc"}});var E4e=W((SVr,S4e)=>{"use strict";var M4e=un(),tzt=xi(),rzt=it(),izt=Ia(),nzt=wW();S4e.exports=function(e,t,r,i){var n="error_"+i.axis,a=izt.newContainer(t,n),o=e[n]||{};function s(d,v){return rzt.coerce(o,a,nzt,d,v)}var l=o.array!==void 0||o.value!==void 0||o.type==="sqrt",u=s("visible",l);if(u!==!1){var c=s("type","array"in o?"data":"percent"),f=!0;c!=="sqrt"&&(f=s("symmetric",!((c==="data"?"arrayminus":"valueminus")in o))),c==="data"?(s("array"),s("traceref"),f||(s("arrayminus"),s("tracerefminus"))):(c==="percent"||c==="constant")&&(s("value"),f||s("valueminus"));var h="copy_"+i.inherit+"style";if(i.inherit){var p=t["error_"+i.inherit];(p||{}).visible&&s(h,!(o.color||M4e(o.thickness)||M4e(o.width)))}(!i.inherit||!a[h])&&(s("color",r),s("thickness"),s("width",tzt.traceIs(t,"gl3d")?0:4))}}});var TW=W((EVr,C4e)=>{"use strict";C4e.exports=function(t){var r=t.type,i=t.symmetric;if(r==="data"){var n=t.array||[];if(i)return function(u,c){var f=+n[c];return[f,f]};var a=t.arrayminus||[];return function(u,c){var f=+n[c],h=+a[c];return!isNaN(f)||!isNaN(h)?[h||0,f||0]:[NaN,NaN]}}else{var o=k4e(r,t.value),s=k4e(r,t.valueminus);return i||t.valueminus===void 0?function(u){var c=o(u);return[c,c]}:function(u){return[s(u),o(u)]}}};function k4e(e,t){if(e==="percent")return function(r){return Math.abs(r*t/100)};if(e==="constant")return function(){return Math.abs(t)};if(e==="sqrt")return function(r){return Math.sqrt(Math.abs(r))}}});var L4e=W((kVr,F4e)=>{"use strict";var AW=un(),azt=xi(),MW=Wi(),ozt=it(),szt=TW();F4e.exports=function(t){for(var r=t.calcdata,i=0;i{"use strict";var P4e=gi(),t2=un(),lzt=en(),uzt=Wo();I4e.exports=function(t,r,i,n){var a,o=i.xaxis,s=i.yaxis,l=n&&n.duration>0,u=t._context.staticPlot;r.each(function(c){var f=c[0].trace,h=f.error_x||{},p=f.error_y||{},d;f.ids&&(d=function(w){return w.id});var v=uzt.hasMarkers(f)&&f.marker.maxdisplayed>0;!p.visible&&!h.visible&&(c=[]);var m=P4e.select(this).selectAll("g.errorbar").data(c,d);if(m.exit().remove(),!!c.length){h.visible||m.selectAll("path.xerror").remove(),p.visible||m.selectAll("path.yerror").remove(),m.style("opacity",1);var g=m.enter().append("g").classed("errorbar",!0);l&&g.style("opacity",0).transition().duration(n.duration).style("opacity",1),lzt.setClipUrl(m,i.layerClipId,t),m.each(function(w){var _=P4e.select(this),b=czt(w,o,s);if(!(v&&!w.vis)){var S,x=_.select("path.yerror");if(p.visible&&t2(b.x)&&t2(b.yh)&&t2(b.ys)){var T=p.width;S="M"+(b.x-T)+","+b.yh+"h"+2*T+"m-"+T+",0V"+b.ys,b.noYS||(S+="m-"+T+",0h"+2*T),a=!x.size(),a?x=_.append("path").style("vector-effect",u?"none":"non-scaling-stroke").classed("yerror",!0):l&&(x=x.transition().duration(n.duration).ease(n.easing)),x.attr("d",S)}else x.remove();var A=_.select("path.xerror");if(h.visible&&t2(b.y)&&t2(b.xh)&&t2(b.xs)){var y=(h.copy_ystyle?p:h).width;S="M"+b.xh+","+(b.y-y)+"v"+2*y+"m0,-"+y+"H"+b.xs,b.noXS||(S+="m0,-"+y+"v"+2*y),a=!A.size(),a?A=_.append("path").style("vector-effect",u?"none":"non-scaling-stroke").classed("xerror",!0):l&&(A=A.transition().duration(n.duration).ease(n.easing)),A.attr("d",S)}else A.remove()}})}})};function czt(e,t,r){var i={x:t.c2p(e.x),y:r.c2p(e.y)};return e.yh!==void 0&&(i.yh=r.c2p(e.yh),i.ys=r.c2p(e.ys),t2(i.ys)||(i.noYS=!0,i.ys=r.c2p(e.ys,!0))),e.xh!==void 0&&(i.xh=t.c2p(e.xh),i.xs=t.c2p(e.xs),t2(i.xs)||(i.noXS=!0,i.xs=t.c2p(e.xs,!0))),i}});var q4e=W((DVr,B4e)=>{"use strict";var fzt=gi(),z4e=ai();B4e.exports=function(t){t.each(function(r){var i=r[0].trace,n=i.error_y||{},a=i.error_x||{},o=fzt.select(this);o.selectAll("path.yerror").style("stroke-width",n.thickness+"px").call(z4e.stroke,n.color),a.copy_ystyle&&(a=n),o.selectAll("path.xerror").style("stroke-width",a.thickness+"px").call(z4e.stroke,a.color)})}});var U4e=W((FVr,N4e)=>{"use strict";var VM=it(),O4e=cs().overrideAll,GM=wW(),Gb={error_x:VM.extendFlat({},GM),error_y:VM.extendFlat({},GM)};delete Gb.error_x.copy_zstyle;delete Gb.error_y.copy_zstyle;delete Gb.error_y.copy_ystyle;var HM={error_x:VM.extendFlat({},GM),error_y:VM.extendFlat({},GM),error_z:VM.extendFlat({},GM)};delete HM.error_x.copy_ystyle;delete HM.error_y.copy_ystyle;delete HM.error_z.copy_ystyle;delete HM.error_z.copy_zstyle;N4e.exports={moduleType:"component",name:"errorbars",schema:{traces:{scatter:Gb,bar:Gb,histogram:Gb,scatter3d:O4e(HM,"calc","nested"),scattergl:O4e(Gb,"calc","nested")}},supplyDefaults:E4e(),calc:L4e(),makeComputeError:TW(),plot:R4e(),style:q4e(),hoverInfo:hzt};function hzt(e,t,r){(t.error_y||{}).visible&&(r.yerr=e.yh-e.y,t.error_y.symmetric||(r.yerrneg=e.y-e.ys)),(t.error_x||{}).visible&&(r.xerr=e.xh-e.x,t.error_x.symmetric||(r.xerrneg=e.x-e.xs))}});var V4e={};Kn(V4e,{cn:()=>dzt});var dzt,G4e=Ci(()=>{"use strict";dzt={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"}});var K4e=W((LVr,Z4e)=>{"use strict";var r2=gi(),CL=Qo(),H4e=xi(),em=Wi(),kL=Mf(),Id=it(),sv=Id.strTranslate,X4e=nn().extendFlat,SW=$p(),ov=en(),g5=ai(),pzt=db(),vzt=ho(),gzt=Mc().flipScale,mzt=LM(),yzt=JF(),xzt=nc(),kW=(Xl(),Pt(Yl)),j4e=kW.LINE_SPACING,$4e=kW.FROM_TL,W4e=kW.FROM_BR,Ps=(G4e(),Pt(V4e)).cn;function bzt(e){var t=e._fullLayout,r=t._infolayer.selectAll("g."+Ps.colorbar).data(_zt(e),function(i){return i._id});r.enter().append("g").attr("class",function(i){return i._id}).classed(Ps.colorbar,!0),r.each(function(i){var n=r2.select(this);Id.ensureSingle(n,"rect",Ps.cbbg),Id.ensureSingle(n,"g",Ps.cbfills),Id.ensureSingle(n,"g",Ps.cblines),Id.ensureSingle(n,"g",Ps.cbaxis,function(o){o.classed(Ps.crisp,!0)}),Id.ensureSingle(n,"g",Ps.cbtitleunshift,function(o){o.append("g").classed(Ps.cbtitle,!0)}),Id.ensureSingle(n,"rect",Ps.cboutline);var a=wzt(n,i,e);a&&a.then&&(e._promises||[]).push(a),e._context.edits.colorbarPosition&&Tzt(n,i,e)}),r.exit().each(function(i){CL.autoMargin(e,i._id)}).remove(),r.order()}function _zt(e){var t=e._fullLayout,r=e.calcdata,i=[],n,a,o,s;function l(_){return X4e(_,{_fillcolor:null,_line:{color:null,width:null,dash:null},_levels:{start:null,end:null,size:null},_filllevels:null,_fillgradient:null,_zrange:null})}function u(){typeof s.calc=="function"?s.calc(e,o,n):(n._fillgradient=a.reversescale?gzt(a.colorscale):a.colorscale,n._zrange=[a[s.min],a[s.max]])}for(var c=0;c[Math.min(e[0]+t,e[1]),e[1]],Y4e=(e,t)=>[e[0],Math.max(e[1]-t,e[0])];function wzt(e,t,r){var i=t.orientation==="v",n=t.len,a=t.lenmode,o=t.thickness,s=t.thicknessmode,l=t.outlinewidth,u=t.borderwidth,c=t.bgcolor,f=t.xanchor,h=t.yanchor,p=t.xpad,d=t.ypad,v=t.x,m=i?t.y:1-t.y,g=t.yref==="paper",w=t.xref==="paper",_=r._fullLayout,b=_._size,S=t._fillcolor,x=t._line,T=t.title,A=T.side,y=t._zrange||r2.extent((typeof S=="function"?S:x.color).domain()),E=typeof x.color=="function"?x.color:function(){return x.color},M=typeof S=="function"?S:function(){return S},C=t._levels,k=Azt(r,t,y),D=k.fill,L=k.line,P=Math.round(o*(s==="fraction"?i?b.w:b.h:1)),R=P/(i?b.w:b.h),F=Math.round(n*(a==="fraction"?i?b.h:b.w:1)),I=F/(i?b.h:b.w),B=w?b.w:r._fullLayout.width,O=g?b.h:r._fullLayout.height,$=Math.round(i?v*B+p:m*O+d),Y={center:.5,right:1}[f]||0,K={top:1,middle:.5}[h]||0,j=i?v-Y*R:m-K*R,q=i?m-K*I:v-Y*I,Q=Math.round(i?O*(1-q):B*q);t._lenFrac=I,t._thickFrac=R,t._uFrac=j,t._vFrac=q;var U=t._axis=Mzt(r,t,y);U.position=R+(i?v+p/b.w:m+d/b.h);var V=["top","bottom"].indexOf(A)!==-1;if(i&&V&&(U.title.side=A,U.titlex=v+p/b.w,U.titley=q+(T.side==="top"?I-d/b.h:d/b.h)),!i&&!V&&(U.title.side=A,U.titley=m+d/b.h,U.titlex=q+p/b.w),x.color&&t.tickmode==="auto"){U.tickmode="linear",U.tick0=C.start;var X=C.size,G=Id.constrain(F/50,4,15)+1,H=(y[1]-y[0])/((t.nticks||G)*X);if(H>1){var J=Math.pow(10,Math.floor(Math.log(H)/Math.LN10));X*=J*Id.roundUp(H/J,[2,5,10]),(Math.abs(C.start)/C.size+1e-6)%1<2e-6&&(U.tick0=0)}U.dtick=X}var te=i?d/b.h:p/b.w;U.domain=Y4e(EW([q,q+I],te),te),U.setScale(),e.attr("transform",sv(Math.round(b.l),Math.round(b.t)));var ue=e.select("."+Ps.cbtitleunshift).attr("transform",sv(-Math.round(b.l),-Math.round(b.t))),ge=U.ticklabelposition,ke=U.title.font.size,_e=e.select("."+Ps.cbaxis),he,oe=0,Me=0;function ye(re,pe){var we={propContainer:U,propName:t._propPrefix+"title.text",traceIndex:t._traceIndex,_meta:t._meta,placeholder:_._dfltTitle.colorbar,containerGroup:e.select("."+Ps.cbtitle)},Fe=re.charAt(0)==="h"?re.slice(1):"h"+re;e.selectAll("."+Fe+",."+Fe+"-math-group").remove(),pzt.draw(r,re,X4e(we,pe||{}))}function ce(){if(i&&V||!i&&!V){var re,pe;A==="top"&&(re=p+b.l+B*v,pe=d+b.t+O*(1-q-I)+3+ke*.75),A==="bottom"&&(re=p+b.l+B*v,pe=d+b.t+O*(1-q)-3-ke*.25),A==="right"&&(pe=d+b.t+O*m+3+ke*.75,re=p+b.l+B*q),ye(U._id+"title",{attributes:{x:re,y:pe,"text-anchor":i?"start":"middle"}})}}function ee(){if(i&&!V||!i&&V){var re=U.position||0,pe=U._offset+U._length/2,we,Fe;if(A==="right")Fe=pe,we=b.l+B*re+10+ke*(U.showticklabels?1:.5);else if(we=pe,A==="bottom"&&(Fe=b.t+O*re+10+(ge.indexOf("inside")===-1?U.tickfont.size:0)+(U.ticks!=="inside"&&t.ticklen||0)),A==="top"){var Ee=T.text.split("
").length;Fe=b.t+O*re+10-P-j4e*ke*Ee}ye((i?"h":"v")+U._id+"title",{avoid:{selection:r2.select(r).selectAll("g."+U._id+"tick"),side:A,offsetTop:i?0:b.t,offsetLeft:i?b.l:0,maxShift:i?_.width:_.height},attributes:{x:we,y:Fe,"text-anchor":"middle"},transform:{rotate:i?-90:0,offset:0}})}}function ae(){if(!i&&!V||i&&V){var re=e.select("."+Ps.cbtitle),pe=re.select("text"),we=[-l/2,l/2],Fe=re.select(".h"+U._id+"title-math-group").node(),Ee=15.6;pe.node()&&(Ee=parseInt(pe.node().style.fontSize,10)*j4e);var Ce;if(Fe?(Ce=ov.bBox(Fe),Me=Ce.width,oe=Ce.height,oe>Ee&&(we[1]-=(oe-Ee)/2)):pe.node()&&!pe.classed(Ps.jsPlaceholder)&&(Ce=ov.bBox(pe.node()),Me=Ce.width,oe=Ce.height),i){if(oe){if(oe+=5,A==="top")U.domain=Y4e(U.domain,oe/b.h),we[1]*=-1;else{U.domain=EW(U.domain,oe/b.h);var be=vzt.lineCount(pe);we[1]+=(1-be)*Ee}re.attr("transform",sv(we[0],we[1])),U.setScale()}}else Me&&(A==="right"&&(U.domain=EW(U.domain,(Me+ke/2)/b.w)),re.attr("transform",sv(we[0],we[1])),U.setScale())}e.selectAll("."+Ps.cbfills+",."+Ps.cblines).attr("transform",i?sv(0,Math.round(b.h*(1-U.domain[1]))):sv(Math.round(b.w*U.domain[0]),0)),_e.attr("transform",i?sv(0,Math.round(-b.t)):sv(Math.round(-b.l),0));var Ie=e.select("."+Ps.cbfills).selectAll("rect."+Ps.cbfill).attr("style","").data(D);Ie.enter().append("rect").classed(Ps.cbfill,!0).attr("style",""),Ie.exit().remove();var Oe=y.map(U.c2p).map(Math.round).sort(function(vt,Xe){return vt-Xe});Ie.each(function(vt,Xe){var mt=[Xe===0?y[0]:(D[Xe]+D[Xe-1])/2,Xe===D.length-1?y[1]:(D[Xe]+D[Xe+1])/2].map(U.c2p).map(Math.round);i&&(mt[1]=Id.constrain(mt[1]+(mt[1]>mt[0])?1:-1,Oe[0],Oe[1]));var _t=r2.select(this).attr(i?"x":"y",$).attr(i?"y":"x",r2.min(mt)).attr(i?"width":"height",Math.max(P,2)).attr(i?"height":"width",Math.max(r2.max(mt)-r2.min(mt),2));if(t._fillgradient)ov.gradient(_t,r,t._id,i?"vertical":"horizontalreversed",t._fillgradient,"fill");else{var Ne=M(vt).replace("e-","");_t.attr("fill",g5.hexString(Ne))}});var Qe=e.select("."+Ps.cblines).selectAll("path."+Ps.cbline).data(x.color&&x.width?L:[]);Qe.enter().append("path").classed(Ps.cbline,!0),Qe.exit().remove(),Qe.each(function(vt){var Xe=$,mt=Math.round(U.c2p(vt))+x.width/2%1;r2.select(this).attr("d","M"+(i?Xe+","+mt:mt+","+Xe)+(i?"h":"v")+P).call(ov.lineGroupStyle,x.width,E(vt),x.dash)}),_e.selectAll("g."+U._id+"tick,path").remove();var et=$+P+(l||0)/2-(t.ticks==="outside"?1:0),bt=em.calcTicks(U),ut=em.getTickSigns(U)[2];return em.drawTicks(r,U,{vals:U.ticks==="inside"?em.clipEnds(U,bt):bt,layer:_e,path:em.makeTickPath(U,et,ut),transFn:em.makeTransTickFn(U)}),em.drawLabels(r,U,{vals:bt,layer:_e,transFn:em.makeTransTickLabelFn(U),labelFns:em.makeLabelFns(U,et)})}function xe(){var re,pe=P+l/2;ge.indexOf("inside")===-1&&(re=ov.bBox(_e.node()),pe+=i?re.width:re.height),he=ue.select("text");var we=0,Fe=i&&A==="top",Ee=!i&&A==="right",Ce=0;if(he.node()&&!he.classed(Ps.jsPlaceholder)){var be,Ie=ue.select(".h"+U._id+"title-math-group").node();Ie&&(i&&V||!i&&!V)?(re=ov.bBox(Ie),we=re.width,be=re.height):(re=ov.bBox(ue.node()),we=re.right-b.l-(i?$:Q),be=re.bottom-b.t-(i?Q:$),!i&&A==="top"&&(pe+=re.height,Ce=re.height)),Ee&&(he.attr("transform",sv(we/2+ke/2,0)),we*=2),pe=Math.max(pe,i?we:be)}var Oe=(i?p:d)*2+pe+u+l/2,Qe=0;!i&&T.text&&h==="bottom"&&m<=0&&(Qe=Oe/2,Oe+=Qe,Ce+=Qe),_._hColorbarMoveTitle=Qe,_._hColorbarMoveCBTitle=Ce;var et=u+l,bt=(i?$:Q)-et/2-(i?p:0),ut=(i?Q:$)-(i?F:d+Ce-Qe);e.select("."+Ps.cbbg).attr("x",bt).attr("y",ut).attr(i?"width":"height",Math.max(Oe-Qe,2)).attr(i?"height":"width",Math.max(F+et,2)).call(g5.fill,c).call(g5.stroke,t.bordercolor).style("stroke-width",u);var vt=Ee?Math.max(we-10,0):0;e.selectAll("."+Ps.cboutline).attr("x",(i?$:Q+p)+vt).attr("y",(i?Q+d-F:$)+(Fe?oe:0)).attr(i?"width":"height",Math.max(P,2)).attr(i?"height":"width",Math.max(F-(i?2*d+oe:2*p+vt),2)).call(g5.stroke,t.outlinecolor).style({fill:"none","stroke-width":l});var Xe=i?Y*Oe:0,mt=i?0:(1-K)*Oe-Ce;if(Xe=w?b.l-Xe:-Xe,mt=g?b.t-mt:-mt,e.attr("transform",sv(Xe,mt)),!i&&(u||g5.opacity(c)&&!g5.equals(_.paper_bgcolor,c))){var _t=_e.selectAll("text"),Ne=_t[0].length,Ue=e.select("."+Ps.cbbg).node(),Ge=ov.bBox(Ue),je=ov.getTranslate(e),Re=2;_t.each(function(Cr,$e){var tt=0,st=Ne-1;if($e===tt||$e===st){var xt=ov.bBox(this),Je=ov.getTranslate(this),Ct;if($e===st){var nr=xt.right+Je.x,dr=Ge.right+je.x+Q-u-Re+v;Ct=dr-nr,Ct>0&&(Ct=0)}else if($e===tt){var Vr=xt.left+Je.x,ui=Ge.left+je.x+Q+u+Re;Ct=ui-Vr,Ct<0&&(Ct=0)}Ct&&(Ne<3?this.setAttribute("transform","translate("+Ct+",0) "+this.getAttribute("transform")):this.setAttribute("visibility","hidden"))}})}var Ve={},ct=$4e[f],Tt=W4e[f],Zt=$4e[h],Gt=W4e[h],ur=Oe-P;i?(a==="pixels"?(Ve.y=m,Ve.t=F*Zt,Ve.b=F*Gt):(Ve.t=Ve.b=0,Ve.yt=m+n*Zt,Ve.yb=m-n*Gt),s==="pixels"?(Ve.x=v,Ve.l=Oe*ct,Ve.r=Oe*Tt):(Ve.l=ur*ct,Ve.r=ur*Tt,Ve.xl=v-o*ct,Ve.xr=v+o*Tt)):(a==="pixels"?(Ve.x=v,Ve.l=F*ct,Ve.r=F*Tt):(Ve.l=Ve.r=0,Ve.xl=v+n*ct,Ve.xr=v-n*Tt),s==="pixels"?(Ve.y=1-m,Ve.t=Oe*Zt,Ve.b=Oe*Gt):(Ve.t=ur*Zt,Ve.b=ur*Gt,Ve.yt=m-o*Zt,Ve.yb=m+o*Gt));var cr=t.y<.5?"b":"t",qt=t.x<.5?"l":"r";r._fullLayout._reservedMargin[t._id]={};var Kt={r:_.width-bt-Xe,l:bt+Ve.r,b:_.height-ut-mt,t:ut+Ve.b};w&&g?CL.autoMargin(r,t._id,Ve):w?r._fullLayout._reservedMargin[t._id][cr]=Kt[cr]:g||i?r._fullLayout._reservedMargin[t._id][qt]=Kt[qt]:r._fullLayout._reservedMargin[t._id][cr]=Kt[cr]}return Id.syncOrAsync([CL.previousPromises,ce,ae,ee,CL.previousPromises,xe],r)}function Tzt(e,t,r){var i=t.orientation==="v",n=r._fullLayout,a=n._size,o,s,l;kL.init({element:e.node(),gd:r,prepFn:function(){o=e.attr("transform"),SW(e)},moveFn:function(u,c){e.attr("transform",o+sv(u,c)),s=kL.align((i?t._uFrac:t._vFrac)+u/a.w,i?t._thickFrac:t._lenFrac,0,1,t.xanchor),l=kL.align((i?t._vFrac:1-t._uFrac)-c/a.h,i?t._lenFrac:t._thickFrac,0,1,t.yanchor);var f=kL.getCursor(s,l,t.xanchor,t.yanchor);SW(e,f)},doneFn:function(){if(SW(e),s!==void 0&&l!==void 0){var u={};u[t._propPrefix+"x"]=s,u[t._propPrefix+"y"]=l,t._traceIndex!==void 0?H4e.call("_guiRestyle",r,u,t._traceIndex):H4e.call("_guiRelayout",r,u)}}})}function Azt(e,t,r){var i=t._levels,n=[],a=[],o,s,l=i.end+i.size/100,u=i.size,c=1.001*r[0]-.001*r[1],f=1.001*r[1]-.001*r[0];for(s=0;s<1e5&&(o=i.start+s*u,!(u>0?o>=l:o<=l));s++)o>c&&o0?o>=l:o<=l));s++)o>r[0]&&o{"use strict";J4e.exports={moduleType:"component",name:"colorbar",attributes:$D(),supplyDefaults:IG(),draw:K4e().draw,hasColorbar:EG()}});var t6e=W((IVr,e6e)=>{"use strict";e6e.exports={moduleType:"component",name:"legend",layoutAttributes:kH(),supplyLayoutDefaults:DH(),draw:jH(),style:UH()}});var i6e=W((RVr,r6e)=>{"use strict";r6e.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"}}});var a6e=W((zVr,n6e)=>{"use strict";n6e.exports={moduleType:"locale",name:"en-US",dictionary:{"Click to enter Colorscale title":"Click to enter Colorscale title"},format:{date:"%m/%d/%Y"}}});var DW=W((BVr,u6e)=>{"use strict";var Szt=xi(),l6e=it(),CW=l6e.extendFlat,o6e=l6e.extendDeep;function s6e(e){var t;switch(e){case"themes__thumb":t={autosize:!0,width:150,height:150,title:{text:""},showlegend:!1,margin:{l:5,r:5,t:5,b:5,pad:0},annotations:[]};break;case"thumbnail":t={title:{text:""},showlegend:!1,borderwidth:0,bordercolor:"",margin:{l:1,r:1,t:1,b:1,pad:0},annotations:[]};break;default:t={}}return t}function Ezt(e){var t=["xaxis","yaxis","zaxis"];return t.indexOf(e.slice(0,5))>-1}u6e.exports=function(t,r){var i,n=t.data,a=t.layout,o=o6e([],n),s=o6e({},a,s6e(r.tileClass)),l=t._context||{};if(r.width&&(s.width=r.width),r.height&&(s.height=r.height),r.tileClass==="thumbnail"||r.tileClass==="themes__thumb"){s.annotations=[];var u=Object.keys(s);for(i=0;i{"use strict";var kzt=rb().EventEmitter,Czt=xi(),Dzt=it(),c6e=Zg(),Fzt=DW(),Lzt=LF(),Pzt=PF();function Izt(e,t){var r=new kzt,i=Fzt(e,{format:"png"}),n=i.gd;n.style.position="absolute",n.style.left="-5000px",document.body.appendChild(n);function a(){var s=c6e.getDelay(n._fullLayout);setTimeout(function(){var l=Lzt(n),u=document.createElement("canvas");u.id=Dzt.randstr(),r=Pzt({format:t.format,width:n._fullLayout.width,height:n._fullLayout.height,canvas:u,emitter:r,svg:l}),r.clean=function(){n&&document.body.removeChild(n)}},s)}var o=c6e.getRedrawFunc(n);return Czt.call("_doPlot",n,i.data,i.layout,i.config).then(o).then(a).catch(function(s){r.emit("error",s)}),r}f6e.exports=Izt});var v6e=W((OVr,p6e)=>{"use strict";var d6e=Zg(),Rzt={getDelay:d6e.getDelay,getRedrawFunc:d6e.getRedrawFunc,clone:DW(),toSVG:LF(),svgToImg:PF(),toImage:h6e(),downloadImage:u$()};p6e.exports=Rzt});var m6e=W(tm=>{"use strict";tm.version=OT().version;jle();Cde();var zzt=xi(),jM=tm.register=zzt.register,LW=Ube(),g6e=Object.keys(LW);for(DL=0;DL{"use strict";y6e.exports=m6e()});var F1=W((VVr,A6e)=>{"use strict";var al=Hs(),b6e=ws().axisHoverFormat,{hovertemplateAttrs:Bzt,texttemplateAttrs:qzt,templatefallbackAttrs:_6e}=$a(),T6e=Fo(),Ozt=jo(),w6e=(Xy(),Pt(Yy)),Nzt=Ru().pattern,Hb=nn().extendFlat,PW=Ozt({editType:"calc",arrayOk:!0,colorEditType:"style"}),Uzt=al.marker,Vzt=Uzt.line,Gzt=Hb({},Vzt.width,{dflt:0}),Hzt=Hb({width:Gzt,editType:"calc"},T6e("marker.line")),jzt=Hb({line:Hzt,editType:"calc"},T6e("marker"),{opacity:{valType:"number",arrayOk:!0,dflt:1,min:0,max:1,editType:"style"},pattern:Nzt,cornerradius:{valType:"any",editType:"calc"}});A6e.exports={x:al.x,x0:al.x0,dx:al.dx,y:al.y,y0:al.y0,dy:al.dy,xperiod:al.xperiod,yperiod:al.yperiod,xperiod0:al.xperiod0,yperiod0:al.yperiod0,xperiodalignment:al.xperiodalignment,yperiodalignment:al.yperiodalignment,xhoverformat:b6e("x"),yhoverformat:b6e("y"),text:al.text,texttemplate:qzt({editType:"plot"},{keys:w6e.eventDataKeys}),texttemplatefallback:_6e({editType:"plot"}),hovertext:al.hovertext,hovertemplate:Bzt({},{keys:w6e.eventDataKeys}),hovertemplatefallback:_6e(),textposition:{valType:"enumerated",values:["inside","outside","auto","none"],dflt:"auto",arrayOk:!0,editType:"calc"},insidetextanchor:{valType:"enumerated",values:["end","middle","start"],dflt:"end",editType:"plot"},textangle:{valType:"angle",dflt:"auto",editType:"plot"},textfont:Hb({},PW,{}),insidetextfont:Hb({},PW,{}),outsidetextfont:Hb({},PW,{}),constraintext:{valType:"enumerated",values:["inside","outside","both","none"],dflt:"both",editType:"calc"},cliponaxis:Hb({},al.cliponaxis,{}),orientation:{valType:"enumerated",values:["v","h"],editType:"calc+clearAxisTypes"},base:{valType:"any",dflt:null,arrayOk:!0,editType:"calc"},offset:{valType:"number",dflt:null,arrayOk:!0,editType:"calc"},width:{valType:"number",dflt:null,min:0,arrayOk:!0,editType:"calc"},marker:jzt,offsetgroup:al.offsetgroup,alignmentgroup:al.alignmentgroup,selected:{marker:{opacity:al.selected.marker.opacity,color:al.selected.marker.color,editType:"style"},textfont:al.selected.textfont,editType:"style"},unselected:{marker:{opacity:al.unselected.marker.opacity,color:al.unselected.marker.color,editType:"style"},textfont:al.unselected.textfont,editType:"style"},zorder:al.zorder}});var LL=W((GVr,M6e)=>{"use strict";M6e.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"}}});var PL=W((HVr,k6e)=>{"use strict";var $zt=ai(),S6e=Mc().hasColorscale,E6e=zu(),Wzt=it().coercePattern;k6e.exports=function(t,r,i,n,a){var o=i("marker.color",n),s=S6e(t,"marker");s&&E6e(t,r,a,i,{prefix:"marker.",cLetter:"c"}),i("marker.line.color",$zt.defaultLine),S6e(t,"marker.line")&&E6e(t,r,a,i,{prefix:"marker.line.",cLetter:"c"}),i("marker.line.width"),i("marker.opacity"),Wzt(i,"marker.pattern",o,s),i("selected.marker.color"),i("unselected.marker.color")}});var L0=W((jVr,I6e)=>{"use strict";var C6e=un(),y5=it(),D6e=ai(),Yzt=xi(),Xzt=Lb(),Zzt=Zp(),Kzt=PL(),Jzt=Pb(),F6e=F1(),IL=y5.coerceFont;function Qzt(e,t,r,i){function n(u,c){return y5.coerce(e,t,F6e,u,c)}var a=Xzt(e,t,i,n);if(!a){t.visible=!1;return}Zzt(e,t,i,n),n("xhoverformat"),n("yhoverformat"),n("zorder"),n("orientation",t.x&&!t.y?"h":"v"),n("base"),n("offset"),n("width"),n("text"),n("hovertext"),n("hovertemplate"),n("hovertemplatefallback");var o=n("textposition");P6e(e,t,i,n,o,{moduleHasSelected:!0,moduleHasUnselected:!0,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),Kzt(e,t,n,r,i);var s=(t.marker.line||{}).color,l=Yzt.getComponentMethod("errorbars","supplyDefaults");l(e,t,s||D6e.defaultLine,{axis:"y"}),l(e,t,s||D6e.defaultLine,{axis:"x",inherit:"y"}),y5.coerceSelectionMarkerOpacity(t,n)}function eBt(e,t){var r,i;function n(s,l){return y5.coerce(i._input,i,F6e,s,l)}for(var a=0;a=0)return e}else if(typeof e=="string"&&(e=e.trim(),e.slice(-1)==="%"&&C6e(e.slice(0,-1))&&(e=+e.slice(0,-1),e>=0)))return e+"%"}function P6e(e,t,r,i,n,a){a=a||{};var o=a.moduleHasSelected!==!1,s=a.moduleHasUnselected!==!1,l=a.moduleHasConstrain!==!1,u=a.moduleHasCliponaxis!==!1,c=a.moduleHasTextangle!==!1,f=a.moduleHasInsideanchor!==!1,h=!!a.hasPathbar,p=Array.isArray(n)||n==="auto",d=p||n==="inside",v=p||n==="outside";if(d||v){var m=IL(i,"textfont",r.font),g=y5.extendFlat({},m),w=e.textfont&&e.textfont.color,_=!w;if(_&&delete g.color,IL(i,"insidetextfont",g),h){var b=y5.extendFlat({},m);_&&delete b.color,IL(i,"pathbar.textfont",b)}v&&IL(i,"outsidetextfont",m),o&&i("selected.textfont.color"),s&&i("unselected.textfont.color"),l&&i("constraintext"),u&&i("cliponaxis"),c&&i("textangle"),i("texttemplate"),i("texttemplatefallback")}d&&f&&i("insidetextanchor")}I6e.exports={supplyDefaults:Qzt,crossTraceDefaults:eBt,handleText:P6e,validateCornerradius:L6e}});var IW=W(($Vr,R6e)=>{"use strict";var tBt=xi(),rBt=Wi(),iBt=it(),nBt=LL(),aBt=L0().validateCornerradius;R6e.exports=function(e,t,r){function i(v,m){return iBt.coerce(e,t,nBt,v,m)}for(var n=!1,a=!1,o=!1,s={},l=i("barmode"),u=l==="group",c=0;c0&&!s[h]&&(o=!0),s[h]=!0),f.visible&&f.type==="histogram"){var p=rBt.getFromId({_fullLayout:t},f[f.orientation==="v"?"xaxis":"yaxis"]);p.type!=="category"&&(a=!0)}}if(!n){delete t.barmode;return}l!=="overlay"&&i("barnorm"),i("bargap",a&&!o?0:.2),i("bargroupgap");var d=i("barcornerradius");t.barcornerradius=aBt(d)}});var $M=W((WVr,z6e)=>{"use strict";var x5=it();z6e.exports=function(t,r){for(var i=0;i{"use strict";var B6e=Wi(),q6e=Qp(),O6e=Mc().hasColorscale,N6e=tf(),oBt=$M(),sBt=E0();U6e.exports=function(t,r){var i=B6e.getFromId(t,r.xaxis||"x"),n=B6e.getFromId(t,r.yaxis||"y"),a,o,s,l,u,c,f={msUTC:!!(r.base||r.base===0)};r.orientation==="h"?(a=i.makeCalcdata(r,"x",f),s=n.makeCalcdata(r,"y"),l=q6e(r,n,"y",s),u=!!r.yperiodalignment,c="y"):(a=n.makeCalcdata(r,"y",f),s=i.makeCalcdata(r,"x"),l=q6e(r,i,"x",s),u=!!r.xperiodalignment,c="x"),o=l.vals;for(var h=Math.min(o.length,a.length),p=new Array(h),d=0;d{"use strict";var lBt=gi(),uBt=it();function cBt(e,t,r){var i=e._fullLayout,n=i["_"+r+"Text_minsize"];if(n){var a=i.uniformtext.mode==="hide",o;switch(r){case"funnelarea":case"pie":case"sunburst":o="g.slice";break;case"treemap":case"icicle":o="g.slice, g.pathbar";break;default:o="g.points > g.point"}t.selectAll(o).each(function(s){var l=s.transform;if(l){l.scale=a&&l.hide?0:n/l.fontSize;var u=lBt.select(this).select("text");uBt.setTransormAndDisplay(u,l)}})}}function fBt(e,t,r){if(r.uniformtext.mode){var i=G6e(e),n=r.uniformtext.minsize,a=t.scale*t.fontSize;t.hide=a{"use strict";var dBt=ai(),pBt=un(),j6e=it().isArrayOrTypedArray;jb.coerceString=function(e,t,r){if(typeof t=="string"){if(t||!e.noBlank)return t}else if((typeof t=="number"||t===!0)&&!e.strict)return String(t);return r!==void 0?r:e.dflt};jb.coerceNumber=function(e,t,r){if(pBt(t)){t=+t;var i=e.min,n=e.max,a=i!==void 0&&tn;if(!a)return t}return r!==void 0?r:e.dflt};jb.coerceColor=function(e,t,r){return dBt.isValid(t)?t:r!==void 0?r:e.dflt};jb.coerceEnumerated=function(e,t,r){return e.coerceNumber&&(t=+t),e.values.indexOf(t)!==-1?t:r!==void 0?r:e.dflt};jb.getValue=function(e,t){var r;return j6e(e)?t{"use strict";var WM=gi(),vBt=ai(),YM=en(),$6e=it(),W6e=xi(),Y6e=af().resizeText,RW=F1(),gBt=RW.textfont,mBt=RW.insidetextfont,yBt=RW.outsidetextfont,Cc=RL();function xBt(e){var t=WM.select(e).selectAll('g[class^="barlayer"]').selectAll("g.trace");Y6e(e,t,"bar");var r=t.size(),i=e._fullLayout;t.style("opacity",function(n){return n[0].trace.opacity}).each(function(n){(i.barmode==="stack"&&r>1||i.bargap===0&&i.bargroupgap===0&&!n[0].trace.marker.line.width)&&WM.select(this).attr("shape-rendering","crispEdges")}),t.selectAll("g.points").each(function(n){var a=WM.select(this),o=n[0].trace;X6e(a,o,e)}),W6e.getComponentMethod("errorbars","style")(t)}function X6e(e,t,r){YM.pointStyle(e.selectAll("path"),t,r),Z6e(e,t,r)}function Z6e(e,t,r){e.selectAll("text").each(function(i){var n=WM.select(this),a=$6e.ensureUniformFontSize(r,K6e(n,i,t,r));YM.font(n,a)})}function bBt(e,t,r){var i=t[0].trace;i.selectedpoints?_Bt(r,i,e):(X6e(r,i,e),W6e.getComponentMethod("errorbars","style")(r))}function _Bt(e,t,r){YM.selectedPointStyle(e.selectAll("path"),t),wBt(e.selectAll("text"),t,r)}function wBt(e,t,r){e.each(function(i){var n=WM.select(this),a;if(i.selected){a=$6e.ensureUniformFontSize(r,K6e(n,i,t,r));var o=t.selected.textfont&&t.selected.textfont.color;o&&(a.color=o),YM.font(n,a)}else YM.selectedTextStyle(n,t)})}function K6e(e,t,r,i){var n=i._fullLayout.font,a=r.textfont;if(e.classed("bartext-inside")){var o=tTe(t,r);a=Q6e(r,t.i,n,o)}else e.classed("bartext-outside")&&(a=eTe(r,t.i,n));return a}function J6e(e,t,r){return zW(gBt,e.textfont,t,r)}function Q6e(e,t,r,i){var n=J6e(e,t,r),a=e._input.textfont===void 0||e._input.textfont.color===void 0||Array.isArray(e.textfont.color)&&e.textfont.color[t]===void 0;return a&&(n={color:vBt.contrast(i),family:n.family,size:n.size,weight:n.weight,style:n.style,variant:n.variant,textcase:n.textcase,lineposition:n.lineposition,shadow:n.shadow}),zW(mBt,e.insidetextfont,t,n)}function eTe(e,t,r){var i=J6e(e,t,r);return zW(yBt,e.outsidetextfont,t,i)}function zW(e,t,r,i){t=t||{};var n=Cc.getValue(t.family,r),a=Cc.getValue(t.size,r),o=Cc.getValue(t.color,r),s=Cc.getValue(t.weight,r),l=Cc.getValue(t.style,r),u=Cc.getValue(t.variant,r),c=Cc.getValue(t.textcase,r),f=Cc.getValue(t.lineposition,r),h=Cc.getValue(t.shadow,r);return{family:Cc.coerceString(e.family,n,i.family),size:Cc.coerceNumber(e.size,a,i.size),color:Cc.coerceColor(e.color,o,i.color),weight:Cc.coerceString(e.weight,s,i.weight),style:Cc.coerceString(e.style,l,i.style),variant:Cc.coerceString(e.variant,u,i.variant),textcase:Cc.coerceString(e.variant,c,i.textcase),lineposition:Cc.coerceString(e.variant,f,i.lineposition),shadow:Cc.coerceString(e.variant,h,i.shadow)}}function tTe(e,t){return t.type==="waterfall"?t[e.dir].marker.color:e.mcc||e.mc||t.marker.color}rTe.exports={style:xBt,styleTextPoints:Z6e,styleOnSelect:bBt,getInsideTextFont:Q6e,getOutsideTextFont:eTe,getBarColor:tTe,resizeText:Y6e}});var Wb=W((JVr,cTe)=>{"use strict";var zL=gi(),BL=un(),oc=it(),TBt=ho(),ABt=ai(),i2=en(),MBt=xi(),qL=Wi().tickText,iTe=af(),SBt=iTe.recordMinTextSize,EBt=iTe.clearMinTextSize,BW=Rd(),b5=RL(),kBt=(Xy(),Pt(Yy)),nTe=F1(),CBt=nTe.text,DBt=nTe.textposition,FBt=rh().appendArrayPointValue,Ff=kBt.TEXTPAD;function LBt(e){return e.id}function PBt(e){if(e.ids)return LBt}function qW(e){return(e>0)-(e<0)}function lv(e,t){return e0}function RBt(e,t,r,i,n,a){var o=t.xaxis,s=t.yaxis,l=e._fullLayout,u=e._context.staticPlot;n||(n={mode:l.barmode,norm:l.barmode,gap:l.bargap,groupgap:l.bargroupgap},EBt("bar",l));var c=oc.makeTraceGroups(i,r,"trace bars").each(function(f){var h=zL.select(this),p=f[0].trace,d=f[0].t,v=p.type==="waterfall",m=p.type==="funnel",g=p.type==="histogram",w=p.type==="bar",_=w||m,b=0;v&&p.connector.visible&&p.connector.mode==="between"&&(b=p.connector.line.width/2);var S=p.orientation==="h",x=oTe(n),T=oc.ensureSingle(h,"g","points"),A=PBt(p),y=T.selectAll("g.point").data(oc.identity,A);y.enter().append("g").classed("point",!0),y.exit().remove(),y.each(function(M,C){var k=zL.select(this),D=IBt(M,o,s,S),L=D[0][0],P=D[0][1],R=D[1][0],F=D[1][1],I=(S?P-L:F-R)===0;I&&_&&b5.getLineWidth(p,M)&&(I=!1),I||(I=!BL(L)||!BL(P)||!BL(R)||!BL(F)),M.isBlank=I,I&&(S?P=L:F=R),b&&!I&&(S?(L-=lv(L,P)*b,P+=lv(L,P)*b):(R-=lv(R,F)*b,F+=lv(R,F)*b));var B,O;if(p.type==="waterfall"){if(!I){var $=p[M.dir].marker;B=$.line.width,O=$.color}}else B=b5.getLineWidth(p,M),O=M.mc||p.marker.color;function Y(re){var pe=zL.round(B/2%1,2);return n.gap===0&&n.groupgap===0?zL.round(Math.round(re)-pe,2):re}function K(re,pe,we){return we&&re===pe?re:Math.abs(re-pe)>=2?Y(re):re>pe?Math.ceil(re):Math.floor(re)}var j=ABt.opacity(O),q=j<1||B>.01?Y:K;e._context.staticPlot||(L=q(L,P,S),P=q(P,L,S),R=q(R,F,!S),F=q(F,R,!S));var Q=S?o.c2p:s.c2p,U;M.s0>0?U=M._sMax:M.s0<0?U=M._sMin:U=M.s1>0?M._sMax:M._sMin;function V(re,pe){if(!re)return 0;var we=Math.abs(S?F-R:P-L),Fe=Math.abs(S?P-L:F-R),Ee=q(Math.abs(Q(U,!0)-Q(0,!0))),Ce=M.hasB?Math.min(we/2,Fe/2):Math.min(we/2,Ee),be;if(pe==="%"){var Ie=Math.min(50,re);be=we*(Ie/100)}else be=re;return q(Math.max(Math.min(be,Ce),0))}var X=w||g?V(d.cornerradiusvalue,d.cornerradiusform):0,G,H,J="M"+L+","+R+"V"+F+"H"+P+"V"+R+"Z",te=0;if(X&&M.s){var ue=qW(M.s0)===0||qW(M.s)===qW(M.s0)?M.s1:M.s0;if(te=q(M.hasB?0:Math.abs(Q(U,!0)-Q(ue,!0))),te0?Math.sqrt(te*(2*X-te)):0,Me=ge>0?Math.max:Math.min;G="M"+L+","+R+"V"+(F-he*ke)+"H"+Me(P-(X-te)*ge,L)+"A "+X+","+X+" 0 0 "+_e+" "+P+","+(F-X*ke-oe)+"V"+(R+X*ke+oe)+"A "+X+","+X+" 0 0 "+_e+" "+Me(P-(X-te)*ge,L)+","+(R+he*ke)+"Z"}else if(M.hasB)G="M"+(L+X*ge)+","+R+"A "+X+","+X+" 0 0 "+_e+" "+L+","+(R+X*ke)+"V"+(F-X*ke)+"A "+X+","+X+" 0 0 "+_e+" "+(L+X*ge)+","+F+"H"+(P-X*ge)+"A "+X+","+X+" 0 0 "+_e+" "+P+","+(F-X*ke)+"V"+(R+X*ke)+"A "+X+","+X+" 0 0 "+_e+" "+(P-X*ge)+","+R+"Z";else{H=Math.abs(F-R)+te;var ye=H0?Math.sqrt(te*(2*X-te)):0,ee=ke>0?Math.max:Math.min;G="M"+(L+ye*ge)+","+R+"V"+ee(F-(X-te)*ke,R)+"A "+X+","+X+" 0 0 "+_e+" "+(L+X*ge-ce)+","+F+"H"+(P-X*ge+ce)+"A "+X+","+X+" 0 0 "+_e+" "+(P-ye*ge)+","+ee(F-(X-te)*ke,R)+"V"+R+"Z"}}else G=J}else G=J;var ae=aTe(oc.ensureSingle(k,"path"),l,n,a);if(ae.style("vector-effect",u?"none":"non-scaling-stroke").attr("d",isNaN((P-L)*(F-R))||I&&e._context.staticPlot?"M0,0Z":G).call(i2.setClipUrl,t.layerClipId,e),!l.uniformtext.mode&&x){var xe=i2.makePointStyleFns(p);i2.singlePointStyle(M,ae,p,xe,e)}zBt(e,t,k,f,C,L,P,R,F,X,te,n,a),t.layerClipId&&i2.hideOutsideRangePoint(M,k.select("text"),o,s,p.xcalendar,p.ycalendar)});var E=p.cliponaxis===!1;i2.setClipUrl(h,E?null:t.layerClipId,e)});MBt.getComponentMethod("errorbars","plot")(e,c,t,n)}function zBt(e,t,r,i,n,a,o,s,l,u,c,f,h){var p=t.xaxis,d=t.yaxis,v=e._fullLayout,m;function g(J,te,ue){var ge=oc.ensureSingle(J,"text").text(te).attr({class:"bartext bartext-"+m,"text-anchor":"middle","data-notex":1}).call(i2.font,ue).call(TBt.convertToTspans,e);return ge}var w=i[0].trace,_=w.orientation==="h",b=UBt(i,_,p,d),S=OBt(v,i,n,p,d);m=NBt(w,n);var x=f.mode==="stack"||f.mode==="relative",T=i[n],A=!x||T._outmost,y=T.hasB,E=u&&u-c>Ff;if(!S||m==="none"||(T.isBlank||a===o||s===l)&&(m==="auto"||m==="inside")){r.select("text").remove();return}var M=v.font,C=BW.getBarColor(i[n],w),k=BW.getInsideTextFont(w,n,M,C),D=BW.getOutsideTextFont(w,n,M),L=w.insidetextanchor||"end",P=r.datum();_?p.type==="log"&&P.s0<=0&&(p.range[0]0&&K>0,Q;E?y?Q=$b(I-2*u,B,Y,K,_)||$b(I,B-2*u,Y,K,_):_?Q=$b(I-(u-c),B,Y,K,_)||$b(I,B-2*(u-c),Y,K,_):Q=$b(I,B-(u-c),Y,K,_)||$b(I-2*(u-c),B,Y,K,_):Q=$b(I,B,Y,K,_),q&&Q?m="inside":(m="outside",O.remove(),O=null)}else m="inside";if(!O){j=oc.ensureUniformFontSize(e,m==="outside"?D:k),O=g(r,S,j);var U=O.attr("transform");if(O.attr("transform",""),$=i2.bBox(O.node()),Y=$.width,K=$.height,O.attr("transform",U),Y<=0||K<=0){O.remove();return}}var V=w.textangle,X,G;m==="outside"?(G=w.constraintext==="both"||w.constraintext==="outside",X=qBt(a,o,s,l,$,{isHorizontal:_,constrained:G,angle:V,zeroBarDir:b})):(G=w.constraintext==="both"||w.constraintext==="inside",X=uTe(a,o,s,l,$,{isHorizontal:_,constrained:G,angle:V,anchor:L,hasB:y,r:u,overhead:c})),X.fontSize=j.size,SBt(w.type==="histogram"?"bar":w.type,X,v),T.transform=X;var H=aTe(O,v,f,h);oc.setTransormAndDisplay(H,X)}function $b(e,t,r,i,n){if(e<0||t<0)return!1;var a=r<=e&&i<=t,o=r<=t&&i<=e,s=n?e>=r*(t/i):t>=i*(e/r);return a||o||s}function sTe(e){return e==="auto"?0:e}function lTe(e,t){var r=Math.PI/180*t,i=Math.abs(Math.sin(r)),n=Math.abs(Math.cos(r));return{x:e.width*n+e.height*i,y:e.width*i+e.height*n}}function uTe(e,t,r,i,n,a){var o=!!a.isHorizontal,s=!!a.constrained,l=a.angle||0,u=a.anchor,c=u==="end",f=u==="start",h=a.leftToRight||0,p=(h+1)/2,d=1-p,v=a.hasB,m=a.r,g=a.overhead,w=n.width,_=n.height,b=Math.abs(t-e),S=Math.abs(i-r),x=b>2*Ff&&S>2*Ff?Ff:0;b-=2*x,S-=2*x;var T=sTe(l);l==="auto"&&!(w<=b&&_<=S)&&(w>b||_>S)&&(!(w>S||_>b)||w<_!=bFf){var M=BBt(e,t,r,i,A,m,g,o,v);y=M.scale,E=M.pad}else y=1,s&&(y=Math.min(1,b/A.x,S/A.y)),E=0;var C=n.left*d+n.right*p,k=(n.top+n.bottom)/2,D=(e+Ff)*d+(t-Ff)*p,L=(r+i)/2,P=0,R=0;if(f||c){var F=(o?A.x:A.y)/2;m&&(c||v)&&(x+=E);var I=o?lv(e,t):lv(r,i);o?f?(D=e+I*x,P=-I*F):(D=t-I*x,P=I*F):f?(L=r+I*x,R=-I*F):(L=i-I*x,R=I*F)}return{textX:C,textY:k,targetX:D,targetY:L,anchorX:P,anchorY:R,scale:y,rotate:T}}function BBt(e,t,r,i,n,a,o,s,l){var u=Math.max(0,Math.abs(t-e)-2*Ff),c=Math.max(0,Math.abs(i-r)-2*Ff),f=a-Ff,h=o?f-Math.sqrt(f*f-(f-o)*(f-o)):f,p=l?f*2:s?f-o:2*h,d=l?f*2:s?2*h:f-o,v,m,g,w,_;return n.y/n.x>=c/(u-p)?w=c/n.y:n.y/n.x<=(c-d)/u?w=u/n.x:!l&&s?(v=n.x*n.x+n.y*n.y/4,m=-2*n.x*(u-f)-n.y*(c/2-f),g=(u-f)*(u-f)+(c/2-f)*(c/2-f)-f*f,w=(-m+Math.sqrt(m*m-4*v*g))/(2*v)):l?(v=(n.x*n.x+n.y*n.y)/4,m=-n.x*(u/2-f)-n.y*(c/2-f),g=(u/2-f)*(u/2-f)+(c/2-f)*(c/2-f)-f*f,w=(-m+Math.sqrt(m*m-4*v*g))/(2*v)):(v=n.x*n.x/4+n.y*n.y,m=-n.x*(u/2-f)-2*n.y*(c-f),g=(u/2-f)*(u/2-f)+(c-f)*(c-f)-f*f,w=(-m+Math.sqrt(m*m-4*v*g))/(2*v)),w=Math.min(1,w),s?_=Math.max(0,f-Math.sqrt(Math.max(0,f*f-(f-(c-n.y*w)/2)*(f-(c-n.y*w)/2)))-o):_=Math.max(0,f-Math.sqrt(Math.max(0,f*f-(f-(u-n.x*w)/2)*(f-(u-n.x*w)/2)))-o),{scale:w,pad:_}}function qBt(e,t,r,i,n,a){var o=!!a.isHorizontal,s=!!a.constrained,l=a.angle||0,u=n.width,c=n.height,f=Math.abs(t-e),h=Math.abs(i-r),p;o?p=h>2*Ff?Ff:0:p=f>2*Ff?Ff:0;var d=1;s&&(d=o?Math.min(1,h/c):Math.min(1,f/u));var v=sTe(l),m=lTe(n,v),g=(o?m.x:m.y)/2,w=(n.left+n.right)/2,_=(n.top+n.bottom)/2,b=(e+t)/2,S=(r+i)/2,x=0,T=0,A;return(o?e===t:r===i)&&a.zeroBarDir?A=a.zeroBarDir:A=o?lv(t,e):lv(r,i),o?(b=t-A*p,x=A*g):(S=i+A*p,T=-A*g),{textX:w,textY:_,targetX:b,targetY:S,anchorX:x,anchorY:T,scale:d,rotate:v}}function OBt(e,t,r,i,n){var a=t[0].trace,o=a.texttemplate,s;return o?s=VBt(e,t,r,i,n):a.textinfo?s=GBt(t,r,i,n):s=b5.getValue(a.text,r),b5.coerceString(CBt,s)}function NBt(e,t){var r=b5.getValue(e.textposition,t);return b5.coerceEnumerated(DBt,r)}function UBt(e,t,r,i){for(var n=!1,a=!1,o=0;o0?n=!0:s<0&&(a=!0),n&&a)return 0}var l=t?r:i,u=-lv(l.range[0],l.range[1]);return a?n?0:-u:u}function VBt(e,t,r,i,n){var a=t[0].trace,o=oc.castOption(a,r,"texttemplate");if(!o)return"";var s=a.type==="histogram",l=a.type==="waterfall",u=a.type==="funnel",c=a.orientation==="h",f,h,p,d;c?(f="y",h=n,p="x",d=i):(f="x",h=i,p="y",d=n);function v(x){return qL(h,h.c2l(x),!0).text}function m(x){return qL(d,d.c2l(x),!0).text}var g=t[r],w={};w.label=g.p,w.labelLabel=w[f+"Label"]=v(g.p);var _=oc.castOption(a,g.i,"text");(_===0||_)&&(w.text=_),w.value=g.s,w.valueLabel=w[p+"Label"]=m(g.s);var b={};FBt(b,a,g.i),(s||b.x===void 0)&&(b.x=c?w.value:w.label),(s||b.y===void 0)&&(b.y=c?w.label:w.value),(s||b.xLabel===void 0)&&(b.xLabel=c?w.valueLabel:w.labelLabel),(s||b.yLabel===void 0)&&(b.yLabel=c?w.labelLabel:w.valueLabel),l&&(w.delta=+g.rawS||g.s,w.deltaLabel=m(w.delta),w.final=g.v,w.finalLabel=m(w.final),w.initial=w.final-w.delta,w.initialLabel=m(w.initial)),u&&(w.value=g.s,w.valueLabel=m(w.value),w.percentInitial=g.begR,w.percentInitialLabel=oc.formatPercent(g.begR),w.percentPrevious=g.difR,w.percentPreviousLabel=oc.formatPercent(g.difR),w.percentTotal=g.sumR,w.percenTotalLabel=oc.formatPercent(g.sumR));var S=oc.castOption(a,g.i,"customdata");return S&&(w.customdata=S),oc.texttemplateString({data:[b,w,a._meta],fallback:a.texttemplatefallback,labels:w,locale:e._d3locale,template:o})}function GBt(e,t,r,i){var n=e[0].trace,a=n.orientation==="h",o=n.type==="waterfall",s=n.type==="funnel";function l(S){var x=a?i:r;return qL(x,S,!0).text}function u(S){var x=a?r:i;return qL(x,+S,!0).text}var c=n.textinfo,f=e[t],h=c.split("+"),p=[],d,v=function(S){return h.indexOf(S)!==-1};if(v("label")&&p.push(l(e[t].p)),v("text")&&(d=oc.castOption(n,f.i,"text"),(d===0||d)&&p.push(d)),o){var m=+f.rawS||f.s,g=f.v,w=g-m;v("initial")&&p.push(u(w)),v("delta")&&p.push(u(m)),v("final")&&p.push(u(g))}if(s){v("value")&&p.push(u(f.s));var _=0;v("percent initial")&&_++,v("percent previous")&&_++,v("percent total")&&_++;var b=_>1;v("percent initial")&&(d=oc.formatPercent(f.begR),b&&(d+=" of initial"),p.push(d)),v("percent previous")&&(d=oc.formatPercent(f.difR),b&&(d+=" of previous"),p.push(d)),v("percent total")&&(d=oc.formatPercent(f.sumR),b&&(d+=" of total"),p.push(d))}return p.join("
")}cTe.exports={plot:RBt,toMoveInsideBar:uTe}});var _5=W((QVr,pTe)=>{"use strict";var XM=Ls(),HBt=xi(),fTe=ai(),jBt=it().fillText,$Bt=RL().getLineWidth,OW=Wi().hoverLabelText,WBt=(ta(),Pt(ra)).BADNUM;function YBt(e,t,r,i,n){var a=hTe(e,t,r,i,n);if(a){var o=a.cd,s=o[0].trace,l=o[a.index];return a.color=dTe(s,l),HBt.getComponentMethod("errorbars","hoverInfo")(l,s,a),[a]}}function hTe(e,t,r,i,n){var a=e.cd,o=a[0].trace,s=a[0].t,l=i==="closest",u=o.type==="waterfall",c=e.maxHoverDistance,f=e.maxSpikeDistance,h,p,d,v,m,g,w;o.orientation==="h"?(h=r,p=t,d="y",v="x",m=L,g=C):(h=t,p=r,d="x",v="y",g=L,m=C);var _=o[d+"period"],b=l||_;function S(q){return T(q,-1)}function x(q){return T(q,1)}function T(q,Q){var U=q.w;return q[d]+Q*U/2}function A(q){return q[d+"End"]-q[d+"Start"]}var y=l?S:_?function(q){return q.p-A(q)/2}:function(q){return Math.min(S(q),q.p-s.bardelta/2)},E=l?x:_?function(q){return q.p+A(q)/2}:function(q){return Math.max(x(q),q.p+s.bardelta/2)};function M(q,Q,U){return n.finiteRange&&(U=0),XM.inbox(q-h,Q-h,U+Math.min(1,Math.abs(Q-q)/w)-1)}function C(q){return M(y(q),E(q),c)}function k(q){return M(S(q),x(q),f)}function D(q){var Q=q[v];if(u){var U=Math.abs(q.rawS)||0;p>0?Q+=U:p<0&&(Q-=U)}return Q}function L(q){var Q=p,U=q.b,V=D(q);return XM.inbox(U-Q,V-Q,c+(V-Q)/(V-U)-1)}function P(q){var Q=p,U=q.b,V=D(q);return XM.inbox(U-Q,V-Q,f+(V-Q)/(V-U)-1)}var R=e[d+"a"],F=e[v+"a"];w=Math.abs(R.r2c(R.range[1])-R.r2c(R.range[0]));function I(q){return(m(q)+g(q))/2}var B=XM.getDistanceFunction(i,m,g,I);if(XM.getClosest(a,B,e),e.index!==!1&&a[e.index].p!==WBt){b||(y=function(q){return Math.min(S(q),q.p-s.bargroupwidth/2)},E=function(q){return Math.max(x(q),q.p+s.bargroupwidth/2)});var O=e.index,$=a[O],Y=o.base?$.b+$.s:$.s;e[v+"0"]=e[v+"1"]=F.c2p($[v],!0),e[v+"LabelVal"]=Y;var K=s.extents[s.extents.round($.p)];e[d+"0"]=R.c2p(l?y($):K[0],!0),e[d+"1"]=R.c2p(l?E($):K[1],!0);var j=$.orig_p!==void 0;return e[d+"LabelVal"]=j?$.orig_p:$.p,e.labelLabel=OW(R,e[d+"LabelVal"],o[d+"hoverformat"]),e.valueLabel=OW(F,e[v+"LabelVal"],o[v+"hoverformat"]),e.baseLabel=OW(F,$.b,o[v+"hoverformat"]),e.spikeDistance=(P($)+k($))/2,e[d+"Spike"]=R.c2p($.p,!0),jBt($,o,e),e.hovertemplate=o.hovertemplate,e}}function dTe(e,t){var r=t.mcc||e.marker.color,i=t.mlcc||e.marker.line.color,n=$Bt(e,t);if(fTe.opacity(r))return r;if(fTe.opacity(i)&&n)return i}pTe.exports={hoverPoints:YBt,hoverOnBars:hTe,getTraceColor:dTe}});var gTe=W((eGr,vTe)=>{"use strict";vTe.exports=function(t,r,i){return t.x="xVal"in r?r.xVal:r.x,t.y="yVal"in r?r.yVal:r.y,r.xa&&(t.xaxis=r.xa),r.ya&&(t.yaxis=r.ya),i.orientation==="h"?(t.label=t.y,t.value=t.x):(t.label=t.x,t.value=t.y),t}});var w5=W((tGr,mTe)=>{"use strict";mTe.exports=function(t,r){var i=t.cd,n=t.xaxis,a=t.yaxis,o=i[0].trace,s=o.type==="funnel",l=o.orientation==="h",u=[],c;if(r===!1)for(c=0;c{"use strict";yTe.exports={attributes:F1(),layoutAttributes:LL(),supplyDefaults:L0().supplyDefaults,crossTraceDefaults:L0().crossTraceDefaults,supplyLayoutDefaults:IW(),calc:V6e(),crossTraceCalc:Ib().crossTraceCalc,colorbar:kc(),arraysToCalcdata:$M(),plot:Wb().plot,style:Rd().style,styleOnSelect:Rd().styleOnSelect,hoverPoints:_5().hoverPoints,eventData:gTe(),selectPoints:w5(),moduleType:"trace",name:"bar",basePlotModule:vl(),categories:["bar-like","cartesian","svg","bar","oriented","errorBarsOK","showLegend","zoomScale"],animatable:!0,meta:{}}});var _Te=W((iGr,bTe)=>{"use strict";bTe.exports=xTe()});var ZM=W((nGr,MTe)=>{"use strict";var ZBt=M1(),zd=Hs(),wTe=F1(),KBt=jl(),TTe=ws().axisHoverFormat,{hovertemplateAttrs:JBt,templatefallbackAttrs:QBt}=$a(),rm=nn().extendFlat,T5=zd.marker,ATe=T5.line;MTe.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:zd.xperiod,yperiod:zd.yperiod,xperiod0:zd.xperiod0,yperiod0:zd.yperiod0,xperiodalignment:zd.xperiodalignment,yperiodalignment:zd.yperiodalignment,xhoverformat:TTe("x"),yhoverformat:TTe("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:rm({},T5.symbol,{arrayOk:!1,editType:"plot"}),opacity:rm({},T5.opacity,{arrayOk:!1,dflt:1,editType:"style"}),angle:rm({},T5.angle,{arrayOk:!1,editType:"calc"}),size:rm({},T5.size,{arrayOk:!1,editType:"calc"}),color:rm({},T5.color,{arrayOk:!1,editType:"style"}),line:{color:rm({},ATe.color,{arrayOk:!1,dflt:KBt.defaultLine,editType:"style"}),width:rm({},ATe.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:ZBt(),whiskerwidth:{valType:"number",min:0,max:1,dflt:.5,editType:"calc"},showwhiskers:{valType:"boolean",editType:"calc"},offsetgroup:wTe.offsetgroup,alignmentgroup:wTe.alignmentgroup,selected:{marker:zd.selected.marker,editType:"style"},unselected:{marker:zd.unselected.marker,editType:"style"},text:rm({},zd.text,{}),hovertext:rm({},zd.hovertext,{}),hovertemplate:JBt({}),hovertemplatefallback:QBt(),hoveron:{valType:"flaglist",flags:["boxes","points"],dflt:"boxes+points",editType:"style"},zorder:zd.zorder}});var KM=W((aGr,STe)=>{"use strict";STe.exports={boxmode:{valType:"enumerated",values:["group","overlay"],dflt:"overlay",editType:"calc"},boxgap:{valType:"number",min:0,max:1,dflt:.3,editType:"calc"},boxgroupgap:{valType:"number",min:0,max:1,dflt:.3,editType:"calc"}}});var QM=W((oGr,DTe)=>{"use strict";var Bd=it(),eqt=xi(),tqt=ai(),rqt=Zp(),iqt=Pb(),ETe=Lw(),JM=ZM();function nqt(e,t,r,i){function n(d,v){return Bd.coerce(e,t,JM,d,v)}if(kTe(e,t,n,i),t.visible!==!1){rqt(e,t,i,n),n("xhoverformat"),n("yhoverformat");var a=t._hasPreCompStats;a&&(n("lowerfence"),n("upperfence")),n("line.color",(e.marker||{}).color||r),n("line.width"),n("fillcolor",tqt.addOpacity(t.line.color,.5));var o=!1;if(a){var s=n("mean"),l=n("sd");s&&s.length&&(o=!0,l&&l.length&&(o="sd"))}n("whiskerwidth");var u=n("sizemode"),c;u==="quartiles"&&(c=n("boxmean",o)),n("showwhiskers",u==="quartiles"),(u==="sd"||c==="sd")&&n("sdmultiple"),n("width"),n("quartilemethod");var f=!1;if(a){var h=n("notchspan");h&&h.length&&(f=!0)}else Bd.validate(e.notchwidth,JM.notchwidth)&&(f=!0);var p=n("notched",f);p&&n("notchwidth"),CTe(e,t,n,{prefix:"box"}),n("zorder")}}function kTe(e,t,r,i){function n(E){var M=0;return E&&E.length&&(M+=1,Bd.isArrayOrTypedArray(E[0])&&E[0].length&&(M+=1)),M}function a(E){return Bd.validate(e[E],JM[E])}var o=r("y"),s=r("x"),l;if(t.type==="box"){var u=r("q1"),c=r("median"),f=r("q3");t._hasPreCompStats=u&&u.length&&c&&c.length&&f&&f.length,l=Math.min(Bd.minRowLength(u),Bd.minRowLength(c),Bd.minRowLength(f))}else t._hasPreCompStats=!1;var h=n(o),p=n(s),d=h&&Bd.minRowLength(o),v=p&&Bd.minRowLength(s),m=i.calendar,g={autotypenumbers:i.autotypenumbers},w,_;if(t._hasPreCompStats)switch(String(p)+String(h)){case"00":var b=a("x0")||a("dx"),S=a("y0")||a("dy");S&&!b?w="h":w="v",_=l;break;case"10":w="v",_=Math.min(l,v);break;case"20":w="h",_=Math.min(l,s.length);break;case"01":w="h",_=Math.min(l,d);break;case"02":w="v",_=Math.min(l,o.length);break;case"12":w="v",_=Math.min(l,v,o.length);break;case"21":w="h",_=Math.min(l,s.length,d);break;case"11":_=0;break;case"22":var x=!1,T;for(T=0;T0?(w="v",p>0?_=Math.min(v,d):_=Math.min(d)):p>0?(w="h",_=Math.min(v)):_=0;if(!_){t.visible=!1;return}t._length=_;var A=r("orientation",w);t._hasPreCompStats?A==="v"&&p===0?(r("x0",0),r("dx",1)):A==="h"&&h===0&&(r("y0",0),r("dy",1)):A==="v"&&p===0?r("x0"):A==="h"&&h===0&&r("y0");var y=eqt.getComponentMethod("calendars","handleTraceDefaults");y(e,t,["x","y"],i)}function CTe(e,t,r,i){var n=i.prefix,a=Bd.coerce2(e,t,JM,"marker.outliercolor"),o=r("marker.line.outliercolor"),s="outliers";t._hasPreCompStats?s="all":(a||o)&&(s="suspectedoutliers");var l=r(n+"points",s);l?(r("jitter",l==="all"?.3:0),r("pointpos",l==="all"?-1.5:0),r("marker.symbol"),r("marker.opacity"),r("marker.size"),r("marker.angle"),r("marker.color",t.line.color),r("marker.line.color"),r("marker.line.width"),l==="suspectedoutliers"&&(r("marker.line.outliercolor",t.marker.color),r("marker.line.outlierwidth")),r("selected.marker.color"),r("unselected.marker.color"),r("selected.marker.size"),r("unselected.marker.size"),r("text"),r("hovertext")):delete t.marker;var u=r("hoveron");(u==="all"||u.indexOf("points")!==-1)&&(r("hovertemplate"),r("hovertemplatefallback")),Bd.coerceSelectionMarkerOpacity(t,r)}function aqt(e,t){var r,i;function n(l){return Bd.coerce(i._input,i,JM,l)}for(var a=0;a{"use strict";var oqt=xi(),sqt=it(),lqt=KM();function FTe(e,t,r,i,n){for(var a=n+"Layout",o=!1,s=0;s{"use strict";var UW=un(),NL=Wi(),cqt=Qp(),Il=it(),P0=(ta(),Pt(ra)).BADNUM,im=Il._;UTe.exports=function(t,r){var i=t._fullLayout,n=NL.getFromId(t,r.xaxis||"x"),a=NL.getFromId(t,r.yaxis||"y"),o=[],s=r.type==="violin"?"_numViolins":"_numBoxes",l,u,c,f,h,p,d;r.orientation==="h"?(c=n,f="x",h=a,p="y",d=!!r.yperiodalignment):(c=a,f="y",h=n,p="x",d=!!r.xperiodalignment);var v=fqt(r,p,h,i[s]),m=v[0],g=v[1],w=Il.distinctVals(m,h),_=w.vals,b=w.minDiff/2,S,x,T,A,y,E,M=(r.boxpoints||r.points)==="all"?Il.identity:function(_e){return _e.vS.uf};if(r._hasPreCompStats){var C=r[f],k=function(_e){return c.d2c((r[_e]||[])[l])},D=1/0,L=-1/0;for(l=0;l=S.q1&&S.q3>=S.med){var R=k("lowerfence");S.lf=R!==P0&&R<=S.q1?R:zTe(S,T,A);var F=k("upperfence");S.uf=F!==P0&&F>=S.q3?F:BTe(S,T,A);var I=k("mean");S.mean=I!==P0?I:A?Il.mean(T,A):(S.q1+S.q3)/2;var B=k("sd");S.sd=I!==P0&&B>=0?B:A?Il.stdev(T,A,S.mean):S.q3-S.q1,S.lo=qTe(S),S.uo=OTe(S);var O=k("notchspan");O=O!==P0&&O>0?O:NTe(S,A),S.ln=S.med-O,S.un=S.med+O;var $=S.lf,Y=S.uf;r.boxpoints&&T.length&&($=Math.min($,T[0]),Y=Math.max(Y,T[A-1])),r.notched&&($=Math.min($,S.ln),Y=Math.max(Y,S.un)),S.min=$,S.max=Y}else{Il.warn(["Invalid input - make sure that q1 <= median <= q3","q1 = "+S.q1,"median = "+S.med,"q3 = "+S.q3].join(` -`));var K;S.med!==P0?K=S.med:S.q1!==P0?S.q3!==P0?K=(S.q1+S.q3)/2:K=S.q1:S.q3!==P0?K=S.q3:K=0,S.med=K,S.q1=S.q3=K,S.lf=S.uf=K,S.mean=S.sd=K,S.ln=S.un=K,S.min=S.max=K}D=Math.min(D,S.min),L=Math.max(L,S.max),S.pts2=x.filter(M),o.push(S)}}r._extremes[c._id]=NL.findExtremes(c,[D,L],{padded:!0})}else{var j=c.makeCalcdata(r,f),q=hqt(_,b),Q=_.length,U=dqt(Q);for(l=0;l=0&&V0){if(S={},S.pos=S[p]=_[l],x=S.pts=U[l].sort(ITe),T=S[f]=x.map(RTe),A=T.length,S.min=T[0],S.max=T[A-1],S.mean=Il.mean(T,A),S.sd=Il.stdev(T,A,S.mean)*r.sdmultiple,S.med=Il.interp(T,.5),A%2&&(J||te)){var ue,ge;J?(ue=T.slice(0,A/2),ge=T.slice(A/2+1)):te&&(ue=T.slice(0,A/2+1),ge=T.slice(A/2)),S.q1=Il.interp(ue,.5),S.q3=Il.interp(ge,.5)}else S.q1=Il.interp(T,.25),S.q3=Il.interp(T,.75);S.lf=zTe(S,T,A),S.uf=BTe(S,T,A),S.lo=qTe(S),S.uo=OTe(S);var ke=NTe(S,A);S.ln=S.med-ke,S.un=S.med+ke,X=Math.min(X,S.ln),G=Math.max(G,S.un),S.pts2=x.filter(M),o.push(S)}r.notched&&Il.isTypedArray(j)&&(j=Array.from(j)),r._extremes[c._id]=NL.findExtremes(c,r.notched?j.concat([X,G]):j,{padded:!0})}return pqt(o,r),o.length>0?(o[0].t={num:i[s],dPos:b,posLetter:p,valLetter:f,labels:{med:im(t,"median:"),min:im(t,"min:"),q1:im(t,"q1:"),q3:im(t,"q3:"),max:im(t,"max:"),mean:r.boxmean==="sd"||r.sizemode==="sd"?im(t,"mean \xB1 \u03C3:").replace("\u03C3",r.sdmultiple===1?"\u03C3":r.sdmultiple+"\u03C3"):im(t,"mean:"),lf:im(t,"lower fence:"),uf:im(t,"upper fence:")}},i[s]++,o):[{t:{empty:!0}}]};function fqt(e,t,r,i){var n=t in e,a=t+"0"in e,o="d"+t in e;if(n||a&&o){var s=r.makeCalcdata(e,t),l=cqt(e,r,t,s).vals;return[l,s]}var u;a?u=e[t+"0"]:"name"in e&&(r.type==="category"||UW(e.name)&&["linear","log"].indexOf(r.type)!==-1||Il.isDateTime(e.name)&&r.type==="date")?u=e.name:u=i;for(var c=r.type==="multicategory"?r.r2c_just_indices(u):r.d2c(u,0,e[t+"calendar"]),f=e._length,h=new Array(f),p=0;p{"use strict";var VTe=Wi(),vqt=it(),gqt=kb().getAxisGroup,GTe=["v","h"];function mqt(e,t){for(var r=e.calcdata,i=t.xaxis,n=t.yaxis,a=0;a1,w=1-a[e+"gap"],_=1-a[e+"groupgap"];for(l=0;l0;if(T==="positive"?(F=A*(x?1:.5),O=B,I=O=E):T==="negative"?(F=O=E,I=A*(x?1:.5),$=B):(F=I=A,O=$=B),U){var V=b.pointpos,X=b.jitter,G=b.marker.size/2,H=0;V+X>=0&&(H=B*(V+X),H>F?(Q=!0,j=G,Y=H):H>O&&(j=G,Y=F)),H<=F&&(Y=F);var J=0;V-X<=0&&(J=-B*(V-X),J>I?(Q=!0,q=G,K=J):J>$&&(q=G,K=I)),J<=I&&(K=I)}else Y=F,K=I;var te=new Array(c.length);for(u=0;u{"use strict";var A5=gi(),Yb=it(),yqt=en(),$Te=5,xqt=.01;function bqt(e,t,r,i){var n=e._context.staticPlot,a=t.xaxis,o=t.yaxis;Yb.makeTraceGroups(i,r,"trace boxes").each(function(s){var l=A5.select(this),u=s[0],c=u.t,f=u.trace;if(c.wdPos=c.bdPos*f.whiskerwidth,f.visible!==!0||c.empty){l.remove();return}var h,p;f.orientation==="h"?(h=o,p=a):(h=a,p=o),WTe(l,{pos:h,val:p},f,c,n),YTe(l,{x:a,y:o},f,c),XTe(l,{pos:h,val:p},f,c)})}function WTe(e,t,r,i,n){var a=r.orientation==="h",o=t.val,s=t.pos,l=!!s.rangebreaks,u=i.bPos,c=i.wdPos||0,f=i.bPosPxOffset||0,h=r.whiskerwidth||0,p=r.showwhiskers!==!1,d=r.notched||!1,v=d?1-2*r.notchwidth:1,m,g;Array.isArray(i.bdPos)?(m=i.bdPos[0],g=i.bdPos[1]):(m=i.bdPos,g=i.bdPos);var w=e.selectAll("path.box").data(r.type!=="violin"||r.box.visible?Yb.identity:[]);w.enter().append("path").style("vector-effect",n?"none":"non-scaling-stroke").attr("class","box"),w.exit().remove(),w.each(function(_){if(_.empty)return A5.select(this).attr("d","M0,0Z");var b=s.c2l(_.pos+u,!0),S=s.l2p(b-m)+f,x=s.l2p(b+g)+f,T=l?(S+x)/2:s.l2p(b)+f,A=r.whiskerwidth,y=l?S*A+(1-A)*T:s.l2p(b-c)+f,E=l?x*A+(1-A)*T:s.l2p(b+c)+f,M=s.l2p(b-m*v)+f,C=s.l2p(b+g*v)+f,k=r.sizemode==="sd",D=o.c2p(k?_.mean-_.sd:_.q1,!0),L=k?o.c2p(_.mean+_.sd,!0):o.c2p(_.q3,!0),P=Yb.constrain(k?o.c2p(_.mean,!0):o.c2p(_.med,!0),Math.min(D,L)+1,Math.max(D,L)-1),R=_.lf===void 0||r.boxpoints===!1||k,F=o.c2p(R?_.min:_.lf,!0),I=o.c2p(R?_.max:_.uf,!0),B=o.c2p(_.ln,!0),O=o.c2p(_.un,!0);a?A5.select(this).attr("d","M"+P+","+M+"V"+C+"M"+D+","+S+"V"+x+(d?"H"+B+"L"+P+","+C+"L"+O+","+x:"")+"H"+L+"V"+S+(d?"H"+O+"L"+P+","+M+"L"+B+","+S:"")+"Z"+(p?"M"+D+","+T+"H"+F+"M"+L+","+T+"H"+I+(h===0?"":"M"+F+","+y+"V"+E+"M"+I+","+y+"V"+E):"")):A5.select(this).attr("d","M"+M+","+P+"H"+C+"M"+S+","+D+"H"+x+(d?"V"+B+"L"+C+","+P+"L"+x+","+O:"")+"V"+L+"H"+S+(d?"V"+O+"L"+M+","+P+"L"+S+","+B:"")+"Z"+(p?"M"+T+","+D+"V"+F+"M"+T+","+L+"V"+I+(h===0?"":"M"+y+","+F+"H"+E+"M"+y+","+I+"H"+E):""))})}function YTe(e,t,r,i){var n=t.x,a=t.y,o=i.bdPos,s=i.bPos,l=r.boxpoints||r.points;Yb.seedPseudoRandom();var u=function(h){return h.forEach(function(p){p.t=i,p.trace=r}),h},c=e.selectAll("g.points").data(l?u:[]);c.enter().append("g").attr("class","points"),c.exit().remove();var f=c.selectAll("path").data(function(h){var p,d=h.pts2,v=Math.max((h.max-h.min)/10,h.q3-h.q1),m=v*1e-9,g=v*xqt,w=[],_=0,b;if(r.jitter){if(v===0)for(_=1,w=new Array(d.length),p=0;ph.lo&&(E.so=!0)}return d});f.enter().append("path").classed("point",!0),f.exit().remove(),f.call(yqt.translatePoints,n,a)}function XTe(e,t,r,i){var n=t.val,a=t.pos,o=!!a.rangebreaks,s=i.bPos,l=i.bPosPxOffset||0,u=r.boxmean||(r.meanline||{}).visible,c,f;Array.isArray(i.bdPos)?(c=i.bdPos[0],f=i.bdPos[1]):(c=i.bdPos,f=i.bdPos);var h=e.selectAll("path.mean").data(r.type==="box"&&r.boxmean||r.type==="violin"&&r.box.visible&&r.meanline.visible?Yb.identity:[]);h.enter().append("path").attr("class","mean").style({fill:"none","vector-effect":"non-scaling-stroke"}),h.exit().remove(),h.each(function(p){var d=a.c2l(p.pos+s,!0),v=a.l2p(d-c)+l,m=a.l2p(d+f)+l,g=o?(v+m)/2:a.l2p(d)+l,w=n.c2p(p.mean,!0),_=n.c2p(p.mean-p.sd,!0),b=n.c2p(p.mean+p.sd,!0);r.orientation==="h"?A5.select(this).attr("d","M"+w+","+v+"V"+m+(u==="sd"?"m0,0L"+_+","+g+"L"+w+","+v+"L"+b+","+g+"Z":"")):A5.select(this).attr("d","M"+v+","+w+"H"+m+(u==="sd"?"m0,0L"+g+","+_+"L"+v+","+w+"L"+g+","+b+"Z":""))})}ZTe.exports={plot:bqt,plotBoxAndWhiskers:WTe,plotPoints:YTe,plotBoxMean:XTe}});var GL=W((fGr,KTe)=>{"use strict";var GW=gi(),HW=ai(),jW=en();function _qt(e,t,r){var i=r||GW.select(e).selectAll("g.trace.boxes");i.style("opacity",function(n){return n[0].trace.opacity}),i.each(function(n){var a=GW.select(this),o=n[0].trace,s=o.line.width;function l(f,h,p,d){f.style("stroke-width",h+"px").call(HW.stroke,p).call(HW.fill,d)}var u=a.selectAll("path.box");if(o.type==="candlestick")u.each(function(f){if(!f.empty){var h=GW.select(this),p=o[f.dir];l(h,p.line.width,p.line.color,p.fillcolor),h.style("opacity",o.selectedpoints&&!f.selected?.3:1)}});else{l(u,s,o.line.color,o.fillcolor),a.selectAll("path.mean").style({"stroke-width":s,"stroke-dasharray":2*s+"px,"+s+"px"}).call(HW.stroke,o.line.color);var c=a.selectAll("path.point");jW.pointStyle(c,o,e)}})}function wqt(e,t,r){var i=t[0].trace,n=r.selectAll("path.point");i.selectedpoints?jW.selectedPointStyle(n,i):jW.pointStyle(n,i,e)}KTe.exports={style:_qt,styleOnSelect:wqt}});var WW=W((hGr,tAe)=>{"use strict";var Tqt=Wi(),$W=it(),n2=Ls(),JTe=ai(),Aqt=$W.fillText;function Mqt(e,t,r,i){var n=e.cd,a=n[0].trace,o=a.hoveron,s=[],l;return o.indexOf("boxes")!==-1&&(s=s.concat(QTe(e,t,r,i))),o.indexOf("points")!==-1&&(l=eAe(e,t,r)),i==="closest"?l?[l]:s:(l&&s.push(l),s)}function QTe(e,t,r,i){var n=e.cd,a=e.xa,o=e.ya,s=n[0].trace,l=n[0].t,u=s.type==="violin",c,f,h,p,d,v,m,g,w,_,b,S=l.bdPos,x,T,A=l.wHover,y=function(G){return h.c2l(G.pos)+l.bPos-h.c2l(v)};u&&s.side!=="both"?(s.side==="positive"&&(w=function(G){var H=y(G);return n2.inbox(H,H+A,_)},x=S,T=0),s.side==="negative"&&(w=function(G){var H=y(G);return n2.inbox(H-A,H,_)},x=0,T=S)):(w=function(G){var H=y(G);return n2.inbox(H-A,H+A,_)},x=T=S);var E;u?E=function(G){return n2.inbox(G.span[0]-d,G.span[1]-d,_)}:E=function(G){return n2.inbox(G.min-d,G.max-d,_)},s.orientation==="h"?(d=t,v=r,m=E,g=w,c="y",h=o,f="x",p=a):(d=r,v=t,m=w,g=E,c="x",h=a,f="y",p=o);var M=Math.min(1,S/Math.abs(h.r2c(h.range[1])-h.r2c(h.range[0])));_=e.maxHoverDistance-M,b=e.maxSpikeDistance-M;function C(G){return(m(G)+g(G))/2}var k=n2.getDistanceFunction(i,m,g,C);if(n2.getClosest(n,k,e),e.index===!1)return[];var D=n[e.index],L=s.line.color,P=(s.marker||{}).color;JTe.opacity(L)&&s.line.width?e.color=L:JTe.opacity(P)&&s.boxpoints?e.color=P:e.color=s.fillcolor,e[c+"0"]=h.c2p(D.pos+l.bPos-T,!0),e[c+"1"]=h.c2p(D.pos+l.bPos+x,!0),e[c+"LabelVal"]=D.orig_p!==void 0?D.orig_p:D.pos;var R=c+"Spike";e.spikeDistance=C(D)*b/_,e[R]=h.c2p(D.pos,!0);var F=s.boxmean||s.sizemode==="sd"||(s.meanline||{}).visible,I=s.boxpoints||s.points,B=I&&F?["max","uf","q3","med","mean","q1","lf","min"]:I&&!F?["max","uf","q3","med","q1","lf","min"]:!I&&F?["max","q3","med","mean","q1","min"]:["max","q3","med","q1","min"],O=p.range[1]{"use strict";rAe.exports=function(t,r){return r.hoverOnBox&&(t.hoverOnBox=r.hoverOnBox),"xVal"in r&&(t.x=r.xVal),"yVal"in r&&(t.y=r.yVal),r.xa&&(t.xaxis=r.xa),r.ya&&(t.yaxis=r.ya),t}});var YW=W((pGr,nAe)=>{"use strict";nAe.exports=function(t,r){var i=t.cd,n=t.xaxis,a=t.yaxis,o=[],s,l;if(r===!1)for(s=0;s{"use strict";aAe.exports={attributes:ZM(),layoutAttributes:KM(),supplyDefaults:QM().supplyDefaults,crossTraceDefaults:QM().crossTraceDefaults,supplyLayoutDefaults:OL().supplyLayoutDefaults,calc:VW(),crossTraceCalc:UL().crossTraceCalc,plot:VL().plot,style:GL().style,styleOnSelect:GL().styleOnSelect,hoverPoints:WW().hoverPoints,eventData:iAe(),selectPoints:YW(),moduleType:"trace",name:"box",basePlotModule:vl(),categories:["cartesian","svg","symbols","oriented","box-violin","showLegend","boxLayout","zoomScale"],meta:{}}});var lAe=W((gGr,sAe)=>{"use strict";sAe.exports=oAe()});var M5=W((mGr,cAe)=>{"use strict";var Sqt=Fo(),{extendFlat:jh}=nn(),Eqt=Ka(),{axisHoverFormat:XW}=ws(),kqt=jo(),{hovertemplateAttrs:Cqt,templatefallbackAttrs:uAe,texttemplateAttrs:Dqt}=$a(),I0=Hs();cAe.exports=jh({z:{valType:"data_array",editType:"calc"},x:jh({},I0.x,{impliedEdits:{xtype:"array"}}),x0:jh({},I0.x0,{impliedEdits:{xtype:"scaled"}}),dx:jh({},I0.dx,{impliedEdits:{xtype:"scaled"}}),y:jh({},I0.y,{impliedEdits:{ytype:"array"}}),y0:jh({},I0.y0,{impliedEdits:{ytype:"scaled"}}),dy:jh({},I0.dy,{impliedEdits:{ytype:"scaled"}}),xperiod:jh({},I0.xperiod,{impliedEdits:{xtype:"scaled"}}),yperiod:jh({},I0.yperiod,{impliedEdits:{ytype:"scaled"}}),xperiod0:jh({},I0.xperiod0,{impliedEdits:{xtype:"scaled"}}),yperiod0:jh({},I0.yperiod0,{impliedEdits:{ytype:"scaled"}}),xperiodalignment:jh({},I0.xperiodalignment,{impliedEdits:{xtype:"scaled"}}),yperiodalignment:jh({},I0.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:XW("x"),yhoverformat:XW("y"),zhoverformat:XW("z",1),hovertemplate:Cqt(),hovertemplatefallback:uAe(),texttemplate:Dqt({arrayOk:!1,editType:"plot"},{keys:["x","y","z","text"]}),texttemplatefallback:uAe({editType:"plot"}),textfont:kqt({editType:"plot",autoSize:!0,autoColor:!0,colorEditType:"style"}),showlegend:jh({},Eqt.showlegend,{dflt:!1}),zorder:I0.zorder},Sqt("",{cLetter:"z",autoColorDflt:!1}))});var jL=W((yGr,hAe)=>{"use strict";var Fqt=un(),HL=it(),Lqt=xi();hAe.exports=function(t,r,i,n,a,o){var s=i("z");a=a||"x",o=o||"y";var l,u;if(s===void 0||!s.length)return 0;if(HL.isArray1D(s)){l=i(a),u=i(o);var c=HL.minRowLength(l),f=HL.minRowLength(u);if(c===0||f===0)return 0;r._length=Math.min(c,f,s.length)}else{if(l=fAe(a,i),u=fAe(o,i),!Pqt(s))return 0;i("transpose"),r._length=null}var h=Lqt.getComponentMethod("calendars","handleTraceDefaults");return h(t,r,[a,o],n),!0};function fAe(e,t){var r=t(e),i=r?t(e+"type","array"):"scaled";return i==="scaled"&&(t(e+"0"),t("d"+e)),r}function Pqt(e){for(var t=!0,r=!1,i=!1,n,a=0;a0&&(r=!0);for(var o=0;o{"use strict";var dAe=it();pAe.exports=function(t,r){t("texttemplate"),t("texttemplatefallback");var i=dAe.extendFlat({},r.font,{color:"auto",size:"auto"});dAe.coerceFont(t,"textfont",i)}});var ZW=W((bGr,vAe)=>{"use strict";vAe.exports=function(t,r,i){var n=i("zsmooth");n===!1&&(i("xgap"),i("ygap")),i("zhoverformat")}});var yAe=W((_Gr,mAe)=>{"use strict";var gAe=it(),Iqt=jL(),Rqt=eS(),zqt=Zp(),Bqt=ZW(),qqt=zu(),Oqt=M5();mAe.exports=function(t,r,i,n){function a(s,l){return gAe.coerce(t,r,Oqt,s,l)}var o=Iqt(t,r,a,n);if(!o){r.visible=!1;return}zqt(t,r,n,a),a("xhoverformat"),a("yhoverformat"),a("text"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback"),Rqt(a,n),Bqt(t,r,a,n),a("hoverongaps"),a("connectgaps",gAe.isArray1D(r.z)&&r.zsmooth!==!1),qqt(t,r,n,a,{prefix:"",cLetter:"z"}),a("zorder")}});var KW=W((wGr,xAe)=>{"use strict";var S5=un();xAe.exports={count:function(e,t,r){return r[e]++,1},sum:function(e,t,r,i){var n=i[t];return S5(n)?(n=Number(n),r[e]+=n,n):0},avg:function(e,t,r,i,n){var a=i[t];return S5(a)&&(a=Number(a),r[e]+=a,n[e]++),0},min:function(e,t,r,i){var n=i[t];if(S5(n))if(n=Number(n),S5(r[e])){if(r[e]>n){var a=n-r[e];return r[e]=n,a}}else return r[e]=n,n;return 0},max:function(e,t,r,i){var n=i[t];if(S5(n))if(n=Number(n),S5(r[e])){if(r[e]{"use strict";bAe.exports={percent:function(e,t){for(var r=e.length,i=100/t,n=0;n{"use strict";_Ae.exports=function(t,r){for(var i=t.length,n=0,a=0;a{"use strict";var E5=(ta(),Pt(ra)),Xb=E5.ONEAVGYEAR,wAe=E5.ONEAVGMONTH,WL=E5.ONEDAY,TAe=E5.ONEHOUR,AAe=E5.ONEMIN,MAe=E5.ONESEC,SAe=Wi().tickIncrement;CAe.exports=function(t,r,i,n,a){var o=-1.1*r,s=-.1*r,l=t-s,u=i[0],c=i[1],f=Math.min($L(u+s,u+l,n,a),$L(c+s,c+l,n,a)),h=Math.min($L(u+o,u+s,n,a),$L(c+o,c+s,n,a)),p,d;if(f>h&&hWL){var v=p===Xb?1:6,m=p===Xb?"M12":"M1";return function(g,w){var _=n.c2d(g,Xb,a),b=_.indexOf("-",v);b>0&&(_=_.slice(0,b));var S=n.d2c(_,0,a);if(SMAe?e>WL?e>Xb*1.1?Xb:e>wAe*1.1?wAe:WL:e>TAe?TAe:e>AAe?AAe:MAe:Math.pow(10,Math.floor(Math.log(e)/Math.LN10))}function Nqt(e,t,r,i,n,a){if(i&&e>WL){var o=kAe(t,n,a),s=kAe(r,n,a),l=e===Xb?0:1;return o[l]!==s[l]}return Math.floor(r/e)-Math.floor(t/e)>.1}function kAe(e,t,r){var i=t.c2d(e,Xb,r).split("-");return i[0]===""&&(i.unshift(),i[0]="-"+i[0]),i}});var iY=W((SGr,IAe)=>{"use strict";var tY=un(),Lf=it(),DAe=xi(),qd=Wi(),{hasColorscale:FAe}=Mc(),LAe=tf(),Uqt=$M(),PAe=KW(),Vqt=JW(),Gqt=QW(),Hqt=eY();function jqt(e,t){var r=[],i=[],n=t.orientation==="h",a=qd.getFromId(e,n?t.yaxis:t.xaxis),o=n?"y":"x",s={x:"y",y:"x"}[o],l=t[o+"calendar"],u=t.cumulative,c,f=rY(e,t,a,o),h=f[0],p=f[1],d=typeof h.size=="string",v=[],m=d?v:h,g=[],w=[],_=[],b=0,S=t.histnorm,x=t.histfunc,T=S.indexOf("density")!==-1,A,y,E;u.enabled&&T&&(S=S.replace(/ ?density$/,""),T=!1);var M=x==="max"||x==="min",C=M?null:0,k=PAe.count,D=Vqt[S],L=!1,P=function(H){return a.r2c(H,0,l)},R;for(Lf.isArrayOrTypedArray(t[s])&&x!=="count"&&(R=t[s],L=x==="avg",k=PAe[x]),c=P(h.start),y=P(h.end)+(c-qd.tickIncrement(c,h.size,!1,l))/1e6;c=0&&E=V;c--)if(i[c]){X=c;break}for(c=V;c<=X;c++)if(tY(r[c])&&tY(i[c])){var G={p:r[c],s:i[c],b:0};u.enabled||(G.pts=_[c],O?G.ph0=G.ph1=_[c].length?p[_[c][0]]:r[c]:(t._computePh=!0,G.ph0=q(v[c]),G.ph1=q(v[c+1],!0))),U.push(G)}return U.length===1&&(U[0].width1=qd.tickIncrement(U[0].p,h.size,!1,l)-U[0].p),FAe(t,"marker")&&LAe(e,t,{vals:t.marker.color,containerStr:"marker",cLetter:"c"}),FAe(t,"marker.line")&&LAe(e,t,{vals:t.marker.line.color,containerStr:"marker.line",cLetter:"c"}),Uqt(U,t),Lf.isArrayOrTypedArray(t.selectedpoints)&&Lf.tagSelected(U,t,K),U}function rY(e,t,r,i,n){var j;var a=i+"bins",o=e._fullLayout,s=t["_"+i+"bingroup"],l=o._histogramBinOpts[s],u=o.barmode==="overlay",c,f,h,p,d,v,m,g=function(q){return r.r2c(q,0,p)},w=function(q){return r.c2r(q,0,p)},_=r.type==="date"?function(q){return q||q===0?Lf.cleanDate(q,null,p):null}:function(q){return tY(q)?Number(q):null};function b(q,Q,U){Q[q+"Found"]?(Q[q]=_(Q[q]),Q[q]===null&&(Q[q]=U[q])):(v[q]=Q[q]=U[q],Lf.nestedProperty(f[0],a+"."+q).set(U[q]))}if(t["_"+i+"autoBinFinished"])delete t["_"+i+"autoBinFinished"];else{f=l.traces;var S=[],x=!0,T=!1,A=!1;for(c=0;cr.r2l(R)&&(I=qd.tickIncrement(I,l.size,!0,p)),k.start=r.l2r(I),P||Lf.nestedProperty(t,a+".start").set(k.start)}var B=l.end,O=r.r2l(C.end),$=O!==void 0;if((l.endFound||$)&&O!==r.r2l(B)){var Y=$?O:Lf.aggNums(Math.max,null,d);k.end=r.l2r(Y),$||Lf.nestedProperty(t,a+".start").set(k.end)}var K="autobin"+i;return t._input[K]===!1&&(t._input[a]=Lf.extendFlat({},t[a]||{}),delete t._input[K],delete t[K]),[k,d]}function $qt(e,t,r,i,n){var a=e._fullLayout,o=Wqt(e,t),s=!1,l=1/0,u=[t],c,f,h;for(c=0;c=0;i--)s(i);else if(t==="increasing"){for(i=1;i=0;i--)e[i]+=e[i+1];r==="exclude"&&(e.push(0),e.shift())}}IAe.exports={calc:jqt,calcAllAutoBins:rY}});var VAe=W((EGr,UAe)=>{"use strict";var RAe=it(),k5=Wi(),zAe=KW(),Xqt=JW(),Zqt=QW(),Kqt=eY(),BAe=iY().calcAllAutoBins;UAe.exports=function(t,r){var i=k5.getFromId(t,r.xaxis),n=k5.getFromId(t,r.yaxis),a=r.xcalendar,o=r.ycalendar,s=function(Ce){return i.r2c(Ce,0,a)},l=function(Ce){return n.r2c(Ce,0,o)},u=function(Ce){return i.c2r(Ce,0,a)},c=function(Ce){return n.c2r(Ce,0,o)},f,h,p,d,v=BAe(t,r,i,"x"),m=v[0],g=v[1],w=BAe(t,r,n,"y"),_=w[0],b=w[1],S=r._length;g.length>S&&g.splice(S,g.length-S),b.length>S&&b.splice(S,b.length-S);var x=[],T=[],A=[],y=typeof m.size=="string",E=typeof _.size=="string",M=[],C=[],k=y?M:m,D=E?C:_,L=0,P=[],R=[],F=r.histnorm,I=r.histfunc,B=F.indexOf("density")!==-1,O=I==="max"||I==="min",$=O?null:0,Y=zAe.count,K=Xqt[F],j=!1,q=[],Q=[],U="z"in r?r.z:"marker"in r&&Array.isArray(r.marker.color)?r.marker.color:"";U&&I!=="count"&&(j=I==="avg",Y=zAe[I]);var V=m.size,X=s(m.start),G=s(m.end)+(X-k5.tickIncrement(X,V,!1,a))/1e6;for(f=X;f=0&&p=0&&d{"use strict";var L1=it(),GAe=(ta(),Pt(ra)).BADNUM,HAe=Qp();jAe.exports=function(t,r,i,n,a,o){var s=t._length,l=r.makeCalcdata(t,n),u=i.makeCalcdata(t,a);l=HAe(t,r,n,l).vals,u=HAe(t,i,a,u).vals;var c=t.text,f=c!==void 0&&L1.isArray1D(c),h=t.hovertext,p=h!==void 0&&L1.isArray1D(h),d,v,m=L1.distinctVals(l),g=m.vals,w=L1.distinctVals(u),_=w.vals,b=[],S,x,T=_.length,A=g.length;for(d=0;d{"use strict";var Jqt=un(),Qqt=it(),XL=(ta(),Pt(ra)).BADNUM;$Ae.exports=function(t,r,i,n){var a,o,s,l,u,c;function f(g){if(Jqt(g))return+g}if(r&&r.transpose){for(a=0,u=0;u{"use strict";var eOt=it(),WAe=.01,tOt=[[-1,0],[1,0],[0,-1],[0,1]];function rOt(e){return .5-.25*Math.min(1,e*.5)}XAe.exports=function(t,r){var i=1,n;for(YAe(t,r),n=0;nWAe;n++)i=YAe(t,r,rOt(i));return i>WAe&&eOt.log("interp2d didn't converge quickly",i),t};function YAe(e,t,r){var i=0,n,a,o,s,l,u,c,f,h,p,d,v,m;for(s=0;sv&&(i=Math.max(i,Math.abs(e[a][o]-d)/(m-v))))}return i}});var JL=W((FGr,ZAe)=>{"use strict";var iOt=it().maxRowLength;ZAe.exports=function(t){var r=[],i={},n=[],a=t[0],o=[],s=[0,0,0],l=iOt(t),u,c,f,h,p,d,v,m;for(c=0;c=0;p--)h=n[p],c=h[0],f=h[1],d=((i[[c-1,f]]||s)[2]+(i[[c+1,f]]||s)[2]+(i[[c,f-1]]||s)[2]+(i[[c,f+1]]||s)[2])/20,d&&(v[h]=[c,f,d],n.splice(p,1),m=!0);if(!m)throw"findEmpties iterated with no new neighbors";for(h in v)i[h]=v[h],r.push(v[h])}return r.sort(function(g,w){return w[2]-g[2]})}});var nY=W((LGr,QAe)=>{"use strict";var KAe=xi(),JAe=it().isArrayOrTypedArray;QAe.exports=function(t,r,i,n,a,o){var s=[],l=KAe.traceIs(t,"contour"),u=KAe.traceIs(t,"histogram"),c,f,h,p=JAe(r)&&r.length>1;if(p&&!u&&o.type!=="category"){var d=r.length;if(d<=a){if(l)s=Array.from(r).slice(0,a);else if(a===1)o.type==="log"?s=[.5*r[0],2*r[0]]:s=[r[0]-.5,r[0]+.5];else if(o.type==="log"){for(s=[Math.pow(r[0],1.5)/Math.pow(r[1],.5)],h=1;h{"use strict";var eMe=xi(),aY=it(),QL=Wi(),tMe=Qp(),nOt=VAe(),aOt=tf(),oOt=YL(),sOt=ZL(),lOt=KL(),uOt=JL(),eP=nY(),oY=(ta(),Pt(ra)).BADNUM;iMe.exports=function(t,r){var i=QL.getFromId(t,r.xaxis||"x"),n=QL.getFromId(t,r.yaxis||"y"),a=eMe.traceIs(r,"contour"),o=eMe.traceIs(r,"histogram"),s=a?"best":r.zsmooth,l,u,c,f,h,p,d,v,m,g,w;if(i._minDtick=0,n._minDtick=0,o)w=nOt(t,r),f=w.orig_x,l=w.x,u=w.x0,c=w.dx,v=w.orig_y,h=w.y,p=w.y0,d=w.dy,m=w.z;else{var _=r.z;aY.isArray1D(_)?(oOt(r,i,n,"x","y",["z"]),l=r._x,h=r._y,_=r._z):(f=r.x?i.makeCalcdata(r,"x"):[],v=r.y?n.makeCalcdata(r,"y"):[],l=tMe(r,i,"x",f).vals,h=tMe(r,n,"y",v).vals,r._x=l,r._y=h),u=r.x0,c=r.dx,p=r.y0,d=r.dy,m=sOt(_,r,i,n)}(i.rangebreaks||n.rangebreaks)&&(m=cOt(l,h,m),o||(l=rMe(l),h=rMe(h),r._x=l,r._y=h)),!o&&(a||r.connectgaps)&&(r._emptypoints=uOt(m),lOt(m,r._emptypoints));function b(k){s=r._input.zsmooth=r.zsmooth=!1,aY.warn('cannot use zsmooth: "fast": '+k)}function S(k){if(k.length>1){var D=(k[k.length-1]-k[0])/(k.length-1),L=Math.abs(D/100);for(g=0;gL)return!1}return!0}r._islinear=!1,i.type==="log"||n.type==="log"?s==="fast"&&b("log axis found"):S(l)?S(h)?r._islinear=!0:s==="fast"&&b("y scale is not linear"):s==="fast"&&b("x scale is not linear");var x=aY.maxRowLength(m),T=r.xtype==="scaled"?"":l,A=eP(r,T,u,c,x,i),y=r.ytype==="scaled"?"":h,E=eP(r,y,p,d,m.length,n);r._extremes[i._id]=QL.findExtremes(i,A),r._extremes[n._id]=QL.findExtremes(n,E);var M={x:A,y:E,z:m,text:r._text||r.text,hovertext:r._hovertext||r.hovertext};if(r.xperiodalignment&&f&&(M.orig_x=f),r.yperiodalignment&&v&&(M.orig_y=v),T&&T.length===A.length-1&&(M.xCenter=T),y&&y.length===E.length-1&&(M.yCenter=y),o&&(M.xRanges=w.xRanges,M.yRanges=w.yRanges,M.pts=w.pts),a||aOt(t,r,{vals:m,cLetter:"z"}),a&&r.contours&&r.contours.coloring==="heatmap"){var C={type:r.type==="contour"?"heatmap":"histogram2d",xcalendar:r.xcalendar,ycalendar:r.ycalendar};M.xfill=eP(C,T,u,c,x,i),M.yfill=eP(C,y,p,d,m.length,n)}return[M]};function rMe(e){for(var t=[],r=e.length,i=0;inMe,STYLE:()=>fOt});var nMe,fOt,iP=Ci(()=>{"use strict";nMe=[["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"]],fOt=nMe.map(e=>e.join(": ")+"; ").join("")});var lY=W((IGr,oMe)=>{"use strict";var aMe=(iP(),Pt(rP)),hOt=en(),sY=it(),C5=null;function dOt(){if(C5!==null)return C5;C5=!1;var e=sY.isSafari()||sY.isMacWKWebView()||sY.isIOS();if(window.navigator.userAgent&&!e){var t=Array.from(aMe.CSS_DECLARATIONS).reverse(),r=window.CSS&&window.CSS.supports||window.supportsCSS;if(typeof r=="function")C5=t.some(function(o){return r.apply(null,o)});else{var i=hOt.tester.append("image").attr("style",aMe.STYLE),n=window.getComputedStyle(i.node()),a=n.imageRendering;C5=t.some(function(o){var s=o[1];return a===s||a===s.toLowerCase()}),i.remove()}}return C5}oMe.exports=dOt});var nP=W((RGr,gMe)=>{"use strict";var sMe=gi(),pOt=xi(),vOt=en(),gOt=Wi(),Od=it(),lMe=ho(),mOt=$F(),uMe=ai(),yOt=es().extractOpts,xOt=es().makeColorScaleFuncFromTrace,bOt=(vd(),Pt(pd)),_Ot=(Xl(),Pt(Yl)),uY=_Ot.LINE_SPACING,wOt=lY(),TOt=(iP(),Pt(rP)).STYLE,pMe="heatmap-label";function vMe(e){return e.selectAll("g."+pMe)}function cMe(e){vMe(e).remove()}gMe.exports=function(e,t,r,i){var n=t.xaxis,a=t.yaxis;Od.makeTraceGroups(i,r,"hm").each(function(o){var s=sMe.select(this),l=o[0],u=l.trace,c=u.xgap||0,f=u.ygap||0,h=l.z,p=l.x,d=l.y,v=l.xCenter,m=l.yCenter,g=pOt.traceIs(u,"contour"),w=g?"best":u.zsmooth,_=h.length,b=Od.maxRowLength(h),S=!1,x=!1,T,A,y,E,M,C,k,D;for(C=0;T===void 0&&C0;)A=n.c2p(p[C]),C--;for(A0;)M=a.c2p(d[C]),C--;M=n._length||A<=0||E>=a._length||M<=0;if(I){var B=s.selectAll("image").data([]);B.exit().remove(),cMe(s);return}var O,$;L==="fast"?(O=b,$=_):(O=R,$=F);var Y=document.createElement("canvas");Y.width=O,Y.height=$;var K=Y.getContext("2d",{willReadFrequently:!0}),j=xOt(u,{noNumericCheck:!0,returnArray:!0}),q,Q;L==="fast"?(q=S?function(gn){return b-1-gn}:Od.identity,Q=x?function(gn){return _-1-gn}:Od.identity):(q=function(gn){return Od.constrain(Math.round(n.c2p(p[gn])-T),0,R)},Q=function(gn){return Od.constrain(Math.round(a.c2p(d[gn])-E),0,F)});var U=Q(0),V=[U,U],X=S?0:1,G=x?0:1,H=0,J=0,te=0,ue=0,ge,ke,_e,he,oe;function Me(gn,Hn=0){if(gn===void 0)return[0,0,0,0];var oa=j(gn);return oa[0]=Math.round(oa[0]),oa[1]=Math.round(oa[1]),oa[2]=Math.round(oa[2]),H+=Hn,J+=oa[0]*Hn,te+=oa[1]*Hn,ue+=oa[2]*Hn,oa}function ye(gn,Hn,oa,vs){var bo=gn[oa.bin0];if(bo===void 0)return Me(void 0,1);var Os=gn[oa.bin1],go=Hn[oa.bin0],La=Hn[oa.bin1],lo=Os-bo||0,Ns=go-bo||0,Aa;return Os===void 0?La===void 0?Aa=0:go===void 0?Aa=2*(La-bo):Aa=(2*La-go-bo)*2/3:La===void 0?go===void 0?Aa=0:Aa=(2*bo-Os-go)*2/3:go===void 0?Aa=(2*La-Os-bo)*2/3:Aa=La+bo-Os-go,Me(bo+oa.frac*lo+vs.frac*(Ns+oa.frac*Aa))}if(L!=="default"){var ce=0,ee;try{ee=new Uint8Array(O*$*4)}catch(gn){ee=new Array(O*$*4)}if(L==="smooth"){var ae=v||p,xe=m||d,re=new Array(ae.length),pe=new Array(xe.length),we=new Array(R),Fe=v?hMe:fMe,Ee=m?hMe:fMe,Ce,be,Ie;for(C=0;CZt||Zt>a._length))for(k=Re;kur||ur>n._length)){var cr=mOt({x:Gt,y:Tt},u,e._fullLayout);cr.x=Gt,cr.y=Tt;var qt=l.z[C][k];qt===void 0?(cr.z="",cr.zLabel=""):(cr.z=qt,cr.zLabel=gOt.tickText(_t,qt,"hover").text);var Kt=l.text&&l.text[C]&&l.text[C][k];(Kt===void 0||Kt===!1)&&(Kt=""),cr.text=Kt;var Cr=Od.texttemplateString({data:[cr,u._meta],fallback:u.texttemplatefallback,labels:cr,locale:e._fullLayout._d3locale,template:Xe});if(Cr){var $e=Cr.split("
"),tt=$e.length,st=0;for(D=0;D{"use strict";mMe.exports={min:"zmin",max:"zmax"}});var aP=W((BGr,yMe)=>{"use strict";var AOt=gi();yMe.exports=function(t){AOt.select(t).selectAll(".hm image").style("opacity",function(r){return r.trace.opacity})}});var sP=W((qGr,bMe)=>{"use strict";var xMe=Ls(),tS=it(),oP=tS.isArrayOrTypedArray,MOt=Wi(),SOt=es().extractOpts;bMe.exports=function(t,r,i,n,a){a||(a={});var o=a.isContour,s=t.cd[0],l=s.trace,u=t.xa,c=t.ya,f=s.x,h=s.y,p=s.z,d=s.xCenter,v=s.yCenter,m=s.zmask,g=l.zhoverformat,w=f,_=h,b,S,x,T;if(t.index!==!1){try{x=Math.round(t.index[1]),T=Math.round(t.index[0])}catch(B){tS.error("Error hovering on heatmap, pointNumber must be [row,col], found:",t.index);return}if(x<0||x>=p[0].length||T<0||T>p.length)return}else{if(xMe.inbox(r-f[0],r-f[f.length-1],0)>0||xMe.inbox(i-h[0],i-h[h.length-1],0)>0)return;if(o){var A;for(w=[2*f[0]-f[1]],A=1;A{"use strict";_Me.exports={attributes:M5(),supplyDefaults:yAe(),calc:tP(),plot:nP(),colorbar:D5(),style:aP(),hoverPoints:sP(),moduleType:"trace",name:"heatmap",basePlotModule:vl(),categories:["cartesian","svg","2dMap","showLegend"],meta:{}}});var AMe=W((NGr,TMe)=>{"use strict";TMe.exports=wMe()});var cY=W((UGr,MMe)=>{"use strict";MMe.exports=function(t,r){return{start:{valType:"any",editType:"calc"},end:{valType:"any",editType:"calc"},size:{valType:"any",editType:"calc"},editType:"calc"}}});var SMe={};Kn(SMe,{eventDataKeys:()=>EOt});var EOt,EMe=Ci(()=>{"use strict";EOt=["binNumber"]});var lP=W((VGr,FMe)=>{"use strict";var $h=F1(),kMe=ws().axisHoverFormat,{hovertemplateAttrs:kOt,texttemplateAttrs:COt,templatefallbackAttrs:CMe}=$a(),fY=jo(),DMe=cY(),DOt=(EMe(),Pt(SMe)),hY=nn().extendFlat;FMe.exports={x:{valType:"data_array",editType:"calc+clearAxisTypes"},y:{valType:"data_array",editType:"calc+clearAxisTypes"},xhoverformat:kMe("x"),yhoverformat:kMe("y"),text:hY({},$h.text,{}),hovertext:hY({},$h.hovertext,{}),orientation:$h.orientation,histfunc:{valType:"enumerated",values:["count","sum","avg","min","max"],dflt:"count",editType:"calc"},histnorm:{valType:"enumerated",values:["","percent","probability","density","probability density"],dflt:"",editType:"calc"},cumulative:{enabled:{valType:"boolean",dflt:!1,editType:"calc"},direction:{valType:"enumerated",values:["increasing","decreasing"],dflt:"increasing",editType:"calc"},currentbin:{valType:"enumerated",values:["include","exclude","half"],dflt:"include",editType:"calc"},editType:"calc"},nbinsx:{valType:"integer",min:0,dflt:0,editType:"calc"},xbins:DMe("x",!0),nbinsy:{valType:"integer",min:0,dflt:0,editType:"calc"},ybins:DMe("y",!0),autobinx:{valType:"boolean",dflt:null,editType:"calc"},autobiny:{valType:"boolean",dflt:null,editType:"calc"},bingroup:{valType:"string",dflt:"",editType:"calc"},hovertemplate:kOt({},{keys:DOt.eventDataKeys}),hovertemplatefallback:CMe(),texttemplate:COt({arrayOk:!1,editType:"plot"},{keys:["label","value"]}),texttemplatefallback:CMe({editType:"plot"}),textposition:hY({},$h.textposition,{arrayOk:!1}),textfont:fY({arrayOk:!1,editType:"plot",colorEditType:"style"}),outsidetextfont:fY({arrayOk:!1,editType:"plot",colorEditType:"style"}),insidetextfont:fY({arrayOk:!1,editType:"plot",colorEditType:"style"}),insidetextanchor:$h.insidetextanchor,textangle:$h.textangle,cliponaxis:$h.cliponaxis,constraintext:$h.constraintext,marker:$h.marker,offsetgroup:$h.offsetgroup,alignmentgroup:$h.alignmentgroup,selected:$h.selected,unselected:$h.unselected,zorder:$h.zorder}});var RMe=W((GGr,IMe)=>{"use strict";var LMe=xi(),rS=it(),PMe=ai(),FOt=L0().handleText,LOt=PL(),POt=lP();IMe.exports=function(t,r,i,n){function a(w,_){return rS.coerce(t,r,POt,w,_)}var o=a("x"),s=a("y"),l=a("cumulative.enabled");l&&(a("cumulative.direction"),a("cumulative.currentbin")),a("text");var u=a("textposition");FOt(t,r,n,a,u,{moduleHasSelected:!0,moduleHasUnselected:!0,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback"),a("xhoverformat"),a("yhoverformat");var c=a("orientation",s&&!o?"h":"v"),f=c==="v"?"x":"y",h=c==="v"?"y":"x",p=o&&s?Math.min(rS.minRowLength(o)&&rS.minRowLength(s)):rS.minRowLength(r[f]||[]);if(!p){r.visible=!1;return}r._length=p;var d=LMe.getComponentMethod("calendars","handleTraceDefaults");d(t,r,["x","y"],n);var v=r[h];v&&a("histfunc"),a("histnorm"),a("autobin"+f),LOt(t,r,a,i,n),rS.coerceSelectionMarkerOpacity(r,a);var m=(r.marker.line||{}).color,g=LMe.getComponentMethod("errorbars","supplyDefaults");g(t,r,m||PMe.defaultLine,{axis:"y"}),g(t,r,m||PMe.defaultLine,{axis:"x",inherit:"y"}),a("zorder")}});var cP=W((HGr,qMe)=>{"use strict";var iS=it(),IOt=Fs(),uP=xi().traceIs,ROt=Pb(),zOt=L0().validateCornerradius,zMe=iS.nestedProperty,dY=kb().getAxisGroup,BMe=[{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"}],BOt=["x","y"];qMe.exports=function(t,r){var i=r._histogramBinOpts={},n=[],a={},o=[],s,l,u,c,f,h,p;function d(L,P){return iS.coerce(s._input,s,s._module.attributes,L,P)}function v(L){return L.orientation==="v"?"x":"y"}function m(L,P){var R=IOt.getFromTrace({_fullLayout:r},L,P);return R.type}function g(L,P,R){var F=L.uid+"__"+R;P||(P=F);var I=m(L,R),B=L[R+"calendar"]||"",O=i[P],$=!0;O&&(I===O.axType&&B===O.calendar?($=!1,O.traces.push(L),O.dirs.push(R)):(P=F,I!==O.axType&&iS.warn(["Attempted to group the bins of trace",L.index,"set on a","type:"+I,"axis","with bins on","type:"+O.axType,"axis."].join(" ")),B!==O.calendar&&iS.warn(["Attempted to group the bins of trace",L.index,"set with a",B,"calendar","with bins",O.calendar?"on a "+O.calendar+" calendar":"w/o a set calendar"].join(" ")))),$&&(i[P]={traces:[L],dirs:[R],axType:I,calendar:L[R+"calendar"]||""}),L["_"+R+"bingroup"]=P}for(f=0;f{"use strict";var qOt=_5().hoverPoints,OOt=Wi().hoverLabelText;OMe.exports=function(t,r,i,n,a){var o=qOt(t,r,i,n,a);if(o){t=o[0];var s=t.cd[t.index],l=t.cd[0].trace;if(!l.cumulative.enabled){var u=l.orientation==="h"?"y":"x";t[u+"Label"]=OOt(t[u+"a"],[s.ph0,s.ph1],l[u+"hoverformat"])}return o}}});var pY=W(($Gr,UMe)=>{"use strict";UMe.exports=function(t,r,i,n,a){if(t.x="xVal"in r?r.xVal:r.x,t.y="yVal"in r?r.yVal:r.y,"zLabelVal"in r&&(t.z=r.zLabelVal),r.xa&&(t.xaxis=r.xa),r.ya&&(t.yaxis=r.ya),!(i.cumulative||{}).enabled){var o=Array.isArray(a)?n[0].pts[a[0]][a[1]]:n[a].pts;t.pointNumbers=o,t.binNumber=t.pointNumber,delete t.pointNumber,delete t.pointIndex,t.pointIndices=o}return t}});var GMe=W((WGr,VMe)=>{"use strict";VMe.exports={attributes:lP(),layoutAttributes:LL(),supplyDefaults:RMe(),crossTraceDefaults:cP(),supplyLayoutDefaults:IW(),calc:iY().calc,crossTraceCalc:Ib().crossTraceCalc,plot:Wb().plot,layerName:"barlayer",style:Rd().style,styleOnSelect:Rd().styleOnSelect,colorbar:kc(),hoverPoints:NMe(),selectPoints:w5(),eventData:pY(),moduleType:"trace",name:"histogram",basePlotModule:vl(),categories:["bar-like","cartesian","svg","bar","histogram","oriented","errorBarsOK","showLegend"],meta:{}}});var jMe=W((YGr,HMe)=>{"use strict";HMe.exports=GMe()});var hP=W((XGr,YMe)=>{"use strict";var uv=lP(),$Me=cY(),fP=M5(),NOt=Ka(),vY=ws().axisHoverFormat,{hovertemplateAttrs:UOt,texttemplateAttrs:VOt,templatefallbackAttrs:WMe}=$a(),GOt=Fo(),nS=nn().extendFlat;YMe.exports=nS({x:uv.x,y:uv.y,z:{valType:"data_array",editType:"calc"},marker:{color:{valType:"data_array",editType:"calc"},editType:"calc"},histnorm:uv.histnorm,histfunc:uv.histfunc,nbinsx:uv.nbinsx,xbins:$Me("x"),nbinsy:uv.nbinsy,ybins:$Me("y"),autobinx:uv.autobinx,autobiny:uv.autobiny,bingroup:nS({},uv.bingroup,{}),xbingroup:nS({},uv.bingroup,{}),ybingroup:nS({},uv.bingroup,{}),xgap:fP.xgap,ygap:fP.ygap,zsmooth:fP.zsmooth,xhoverformat:vY("x"),yhoverformat:vY("y"),zhoverformat:vY("z",1),hovertemplate:UOt({},{keys:["z"]}),hovertemplatefallback:WMe(),texttemplate:VOt({arrayOk:!1,editType:"plot"},{keys:["z"]}),texttemplatefallback:WMe({editType:"plot"}),textfont:fP.textfont,showlegend:nS({},NOt.showlegend,{dflt:!1})},GOt("",{cLetter:"z",autoColorDflt:!1}))});var gY=W((ZGr,ZMe)=>{"use strict";var HOt=xi(),XMe=it();ZMe.exports=function(t,r,i,n){var a=i("x"),o=i("y"),s=XMe.minRowLength(a),l=XMe.minRowLength(o);if(!s||!l){r.visible=!1;return}r._length=Math.min(s,l);var u=HOt.getComponentMethod("calendars","handleTraceDefaults");u(t,r,["x","y"],n);var c=i("z")||i("marker.color");c&&i("histfunc"),i("histnorm"),i("autobinx"),i("autobiny")}});var JMe=W((KGr,KMe)=>{"use strict";var jOt=it(),$Ot=gY(),WOt=ZW(),YOt=zu(),XOt=eS(),ZOt=hP();KMe.exports=function(t,r,i,n){function a(o,s){return jOt.coerce(t,r,ZOt,o,s)}$Ot(t,r,a,n),r.visible!==!1&&(WOt(t,r,a,n),YOt(t,r,n,a,{prefix:"",cLetter:"z"}),a("hovertemplate"),a("hovertemplatefallback"),XOt(a,n),a("xhoverformat"),a("yhoverformat"))}});var tSe=W((JGr,eSe)=>{"use strict";var KOt=sP(),QMe=Wi().hoverLabelText;eSe.exports=function(t,r,i,n,a){var o=KOt(t,r,i,n,a);if(o){t=o[0];var s=t.index,l=s[0],u=s[1],c=t.cd[0],f=c.trace,h=c.xRanges[u],p=c.yRanges[l];return t.xLabel=QMe(t.xa,[h[0],h[1]],f.xhoverformat),t.yLabel=QMe(t.ya,[p[0],p[1]],f.yhoverformat),o}}});var iSe=W((QGr,rSe)=>{"use strict";rSe.exports={attributes:hP(),supplyDefaults:JMe(),crossTraceDefaults:cP(),calc:tP(),plot:nP(),layerName:"heatmaplayer",colorbar:D5(),style:aP(),hoverPoints:tSe(),eventData:pY(),moduleType:"trace",name:"histogram2d",basePlotModule:vl(),categories:["cartesian","svg","2dMap","histogram","showLegend"],meta:{}}});var aSe=W((eHr,nSe)=>{"use strict";nSe.exports=iSe()});var dP={};Kn(dP,{COMPARISON_OPS:()=>JOt,COMPARISON_OPS2:()=>QOt,CONSTRAINT_REDUCTION:()=>rNt,INTERVAL_OPS:()=>eNt,SET_OPS:()=>tNt});var JOt,QOt,eNt,tNt,rNt,pP=Ci(()=>{"use strict";JOt=["=","!=","<",">=",">","<="],QOt=["=","<",">=",">","<="],eNt=["[]","()","[)","(]","][",")(","](",")["],tNt=["{}","}{"],rNt={"=":"=","<":"<","<=":"<",">":">",">=":">","[]":"[]","()":"[]","[)":"[]","(]":"[]","][":"][",")(":"][","](":"][",")[":"]["}});var aS=W((tHr,uSe)=>{"use strict";var Rl=M5(),vP=Hs(),sSe=ws(),mY=sSe.axisHoverFormat,iNt=sSe.descriptionOnlyNumbers,nNt=Fo(),aNt=Ru().dash,oNt=jo(),F5=nn().extendFlat,lSe=(pP(),Pt(dP)),sNt=lSe.COMPARISON_OPS2,lNt=lSe.INTERVAL_OPS,oSe=vP.line;uSe.exports=F5({z:Rl.z,x:Rl.x,x0:Rl.x0,dx:Rl.dx,y:Rl.y,y0:Rl.y0,dy:Rl.dy,xperiod:Rl.xperiod,yperiod:Rl.yperiod,xperiod0:vP.xperiod0,yperiod0:vP.yperiod0,xperiodalignment:Rl.xperiodalignment,yperiodalignment:Rl.yperiodalignment,text:Rl.text,hovertext:Rl.hovertext,transpose:Rl.transpose,xtype:Rl.xtype,ytype:Rl.ytype,xhoverformat:mY("x"),yhoverformat:mY("y"),zhoverformat:mY("z",1),hovertemplate:Rl.hovertemplate,hovertemplatefallback:Rl.hovertemplatefallback,texttemplate:F5({},Rl.texttemplate,{}),texttemplatefallback:Rl.texttemplatefallback,textfont:F5({},Rl.textfont,{}),hoverongaps:Rl.hoverongaps,connectgaps:F5({},Rl.connectgaps,{}),fillcolor:{valType:"color",editType:"calc"},autocontour:{valType:"boolean",dflt:!0,editType:"calc",impliedEdits:{"contours.start":void 0,"contours.end":void 0,"contours.size":void 0}},ncontours:{valType:"integer",dflt:15,min:1,editType:"calc"},contours:{type:{valType:"enumerated",values:["levels","constraint"],dflt:"levels",editType:"calc"},start:{valType:"number",dflt:null,editType:"plot",impliedEdits:{"^autocontour":!1}},end:{valType:"number",dflt:null,editType:"plot",impliedEdits:{"^autocontour":!1}},size:{valType:"number",dflt:null,min:0,editType:"plot",impliedEdits:{"^autocontour":!1}},coloring:{valType:"enumerated",values:["fill","heatmap","lines","none"],dflt:"fill",editType:"calc"},showlines:{valType:"boolean",dflt:!0,editType:"plot"},showlabels:{valType:"boolean",dflt:!1,editType:"plot"},labelfont:oNt({editType:"plot",colorEditType:"style"}),labelformat:{valType:"string",dflt:"",editType:"plot",description:iNt("contour label")},operation:{valType:"enumerated",values:[].concat(sNt).concat(lNt),dflt:"=",editType:"calc"},value:{valType:"any",dflt:0,editType:"calc"},editType:"calc",impliedEdits:{autocontour:!1}},line:{color:F5({},oSe.color,{editType:"style+colorbars"}),width:{valType:"number",min:0,editType:"style+colorbars"},dash:aNt,smoothing:F5({},oSe.smoothing,{}),editType:"plot"},zorder:vP.zorder},nNt("",{cLetter:"z",autoColorDflt:!1,editTypeOverride:"calc"}))});var xY=W((rHr,fSe)=>{"use strict";var of=hP(),P1=aS(),uNt=Fo(),yY=ws().axisHoverFormat,cSe=nn().extendFlat;fSe.exports=cSe({x:of.x,y:of.y,z:of.z,marker:of.marker,histnorm:of.histnorm,histfunc:of.histfunc,nbinsx:of.nbinsx,xbins:of.xbins,nbinsy:of.nbinsy,ybins:of.ybins,autobinx:of.autobinx,autobiny:of.autobiny,bingroup:of.bingroup,xbingroup:of.xbingroup,ybingroup:of.ybingroup,autocontour:P1.autocontour,ncontours:P1.ncontours,contours:P1.contours,line:{color:P1.line.color,width:cSe({},P1.line.width,{dflt:.5}),dash:P1.line.dash,smoothing:P1.line.smoothing,editType:"plot"},xhoverformat:yY("x"),yhoverformat:yY("y"),zhoverformat:yY("z",1),hovertemplate:of.hovertemplate,hovertemplatefallback:of.hovertemplatefallback,texttemplate:P1.texttemplate,texttemplatefallback:P1.texttemplatefallback,textfont:P1.textfont},uNt("",{cLetter:"z",editTypeOverride:"calc"}))});var gP=W((iHr,hSe)=>{"use strict";hSe.exports=function(t,r,i,n){var a=n("contours.start"),o=n("contours.end"),s=a===!1||o===!1,l=i("contours.size"),u;s?u=r.autocontour=!0:u=i("autocontour",!1),(u||!l)&&i("ncontours")}});var bY=W((nHr,dSe)=>{"use strict";var cNt=it();dSe.exports=function(t,r,i,n){n||(n={});var a=t("contours.showlabels");if(a){var o=r.font;cNt.coerceFont(t,"contours.labelfont",o,{overrideDflt:{color:i}}),t("contours.labelformat")}n.hasHover!==!1&&t("zhoverformat")}});var mP=W((aHr,pSe)=>{"use strict";var fNt=zu(),hNt=bY();pSe.exports=function(t,r,i,n,a){var o=i("contours.coloring"),s,l="";o==="fill"&&(s=i("contours.showlines")),s!==!1&&(o!=="lines"&&(l=i("line.color","#000")),i("line.width",.5),i("line.dash")),o!=="none"&&(t.showlegend!==!0&&(r.showlegend=!1),r._dfltShowLegend=!1,fNt(t,r,n,i,{prefix:"",cLetter:"z"})),i("line.smoothing"),hNt(i,n,l,a)}});var ySe=W((oHr,mSe)=>{"use strict";var vSe=it(),dNt=gY(),pNt=gP(),vNt=mP(),gNt=eS(),gSe=xY();mSe.exports=function(t,r,i,n){function a(s,l){return vSe.coerce(t,r,gSe,s,l)}function o(s){return vSe.coerce2(t,r,gSe,s)}dNt(t,r,a,n),r.visible!==!1&&(pNt(t,r,a,o),vNt(t,r,a,n),a("xhoverformat"),a("yhoverformat"),a("hovertemplate"),a("hovertemplatefallback"),r.contours&&r.contours.coloring==="heatmap"&&gNt(a,n))}});var TY=W((sHr,bSe)=>{"use strict";var wY=Wi(),_Y=it();bSe.exports=function(t,r){var i=t.contours;if(t.autocontour){var n=t.zmin,a=t.zmax;(t.zauto||n===void 0)&&(n=_Y.aggNums(Math.min,null,r)),(t.zauto||a===void 0)&&(a=_Y.aggNums(Math.max,null,r));var o=xSe(n,a,t.ncontours);i.size=o.dtick,i.start=wY.tickFirst(o),o.range.reverse(),i.end=wY.tickFirst(o),i.start===n&&(i.start+=i.size),i.end===a&&(i.end-=i.size),i.start>i.end&&(i.start=i.end=(i.start+i.end)/2),t._input.contours||(t._input.contours={}),_Y.extendFlat(t._input.contours,{start:i.start,end:i.end,size:i.size}),t._input.autocontour=!0}else if(i.type!=="constraint"){var s=i.start,l=i.end,u=t._input.contours;if(s>l&&(i.start=u.start=l,l=i.end=u.end=s,s=i.start),!(i.size>0)){var c;s===l?c=1:c=xSe(s,l,t.ncontours).dtick,u.size=i.size=c}}};function xSe(e,t,r){var i={type:"linear",range:[e,t]};return wY.autoTicks(i,(t-e)/(r||15)),i}});var oS=W((lHr,_Se)=>{"use strict";_Se.exports=function(t){return t.end+t.size/1e6}});var AY=W((uHr,TSe)=>{"use strict";var wSe=es(),mNt=tP(),yNt=TY(),xNt=oS();TSe.exports=function(t,r){var i=mNt(t,r),n=i[0].z;yNt(r,n);var a=r.contours,o=wSe.extractOpts(r),s;if(a.coloring==="heatmap"&&o.auto&&r.autocontour===!1){var l=a.start,u=xNt(a),c=a.size||1,f=Math.floor((u-l)/c)+1;isFinite(c)||(c=1,f=1);var h=l-c/2,p=h+f*c;s=[h,p]}else s=n;return wSe.calc(t,r,{vals:s,cLetter:"z"}),i}});var sS={};Kn(sS,{BOTTOMSTART:()=>bNt,CHOOSESADDLE:()=>MNt,LABELDISTANCE:()=>ENt,LABELINCREASE:()=>kNt,LABELMAX:()=>DNt,LABELMIN:()=>CNt,LABELOPTIMIZER:()=>FNt,LEFTSTART:()=>wNt,NEWDELTA:()=>ANt,RIGHTSTART:()=>TNt,SADDLEREMAINDER:()=>SNt,TOPSTART:()=>_Nt});var bNt,_Nt,wNt,TNt,ANt,MNt,SNt,ENt,kNt,CNt,DNt,FNt,lS=Ci(()=>{"use strict";bNt=[1,9,13,104,713],_Nt=[4,6,7,104,713],wNt=[8,12,14,208,1114],TNt=[2,3,11,208,1114],ANt=[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]],MNt={104:[4,1],208:[2,8],713:[7,13],1114:[11,14]},SNt={1:4,2:8,4:1,7:13,8:2,11:14,13:7,14:11},ENt=2,kNt=10,CNt=3,DNt=10,FNt={EDGECOST:1,ANGLECOST:1,NEIGHBORCOST:5,SAMELEVELFACTOR:10,SAMELEVELDISTANCE:5,MAXCOST:100,INITIALSEARCHPOINTS:10,ITERATIONS:5}});var MY=W((cHr,ASe)=>{"use strict";var yP=(lS(),Pt(sS));ASe.exports=function(t){var r=t[0].z,i=r.length,n=r[0].length,a=i===2||n===2,o,s,l,u,c,f,h,p,d;for(s=0;se?0:1)+(t[0][1]>e?0:2)+(t[1][1]>e?0:4)+(t[1][0]>e?0:8);if(r===5||r===10){var i=(t[0][0]+t[0][1]+t[1][0]+t[1][1])/4;return e>i?r===5?713:1114:r===5?104:208}return r===15?0:r}});var SY=W((fHr,ESe)=>{"use strict";var xP=it(),L5=(lS(),Pt(sS));ESe.exports=function(t,r,i){var n,a,o,s,l;for(r=r||.01,i=i||.01,o=0;o20?(o=L5.CHOOSESADDLE[o][(s[0]||s[1])<0?0:1],e.crossings[a]=L5.SADDLEREMAINDER[o]):delete e.crossings[a],s=L5.NEWDELTA[o],!s){xP.log("Found bad marching index:",o,t,e.level);break}l.push(SSe(e,t,s)),t[0]+=s[0],t[1]+=s[1],a=t.join(","),uS(l[l.length-1],l[l.length-2],i,n)&&l.pop();var d=s[0]&&(t[0]<0||t[0]>c-2)||s[1]&&(t[1]<0||t[1]>u-2),v=t[0]===f[0]&&t[1]===f[1]&&s[0]===h[0]&&s[1]===h[1];if(v||r&&d)break;o=e.crossings[a]}p===1e4&&xP.log("Infinite loop in contour?");var m=uS(l[0],l[l.length-1],i,n),g=0,w=.2*e.smoothing,_=[],b=0,S,x,T,A,y,E,M,C,k,D,L;for(p=1;p=b;p--)if(S=_[p],S=b&&S+_[x]C&&k--,e.edgepaths[k]=L.concat(l,D));break}I||(e.edgepaths[C]=l.concat(D))}for(C=0;C20&&t?e===208||e===1114?i=r[0]===0?1:-1:n=r[1]===0?1:-1:L5.BOTTOMSTART.indexOf(e)!==-1?n=1:L5.LEFTSTART.indexOf(e)!==-1?i=1:L5.TOPSTART.indexOf(e)!==-1?n=-1:i=-1,[i,n]}function SSe(e,t,r){var i=t[0]+Math.max(r[0],0),n=t[1]+Math.max(r[1],0),a=e.z[n][i],o=e.xaxis,s=e.yaxis;if(r[1]){var l=(e.level-a)/(e.z[n][i+1]-a),u=(l!==1?(1-l)*o.c2l(e.x[i]):0)+(l!==0?l*o.c2l(e.x[i+1]):0);return[o.c2p(o.l2c(u),!0),s.c2p(e.y[n],!0),i+l,n]}else{var c=(e.level-a)/(e.z[n+1][i]-a),f=(c!==1?(1-c)*s.c2l(e.y[n]):0)+(c!==0?c*s.c2l(e.y[n+1]):0);return[o.c2p(e.x[i],!0),s.c2p(s.l2c(f),!0),i,n+c]}}});var FSe=W((hHr,DSe)=>{"use strict";var EY=(pP(),Pt(dP)),RNt=un();DSe.exports={"[]":kSe("[]"),"][":kSe("]["),">":kY(">"),"<":kY("<"),"=":kY("=")};function CSe(e,t){var r=Array.isArray(t),i;function n(a){return RNt(a)?+a:null}return EY.COMPARISON_OPS2.indexOf(e)!==-1?i=n(r?t[0]:t):EY.INTERVAL_OPS.indexOf(e)!==-1?i=r?[n(t[0]),n(t[1])]:[n(t),n(t)]:EY.SET_OPS.indexOf(e)!==-1&&(i=r?t.map(n):[n(t)]),i}function kSe(e){return function(t){t=CSe(e,t);var r=Math.min(t[0],t[1]),i=Math.max(t[0],t[1]);return{start:r,end:i,size:i-r}}}function kY(e){return function(t){return t=CSe(e,t),{start:t,end:1/0,size:1/0}}}});var CY=W((dHr,PSe)=>{"use strict";var LSe=it(),zNt=FSe(),BNt=oS();PSe.exports=function(t,r,i){for(var n=t.type==="constraint"?zNt[t._operation](t.value):t,a=n.size,o=[],s=BNt(n),l=i.trace._carpetTrace,u=l?{xaxis:l.aaxis,yaxis:l.baxis,x:i.a,y:i.b}:{xaxis:r.xaxis,yaxis:r.yaxis,x:i.x,y:i.y},c=n.start;c1e3){LSe.warn("Too many contours, clipping at 1000",t);break}return o}});var DY=W((pHr,RSe)=>{"use strict";var P5=it();RSe.exports=function(e,t){var r,i,n,a=function(l){return l.reverse()},o=function(l){return l};switch(t){case"=":case"<":return e;case">":for(e.length!==1&&P5.warn("Contour data invalid for the specified inequality operation."),i=e[0],r=0;r{"use strict";zSe.exports=function(e,t){var r=e[0],i=r.z,n;switch(t.type){case"levels":var a=Math.min(i[0][0],i[0][1]);for(n=0;no.level||o.starts.length&&a===o.level)}break;case"constraint":if(r.prefixBoundary=!1,r.edgepaths.length)return;var s=r.x.length,l=r.y.length,u=-1/0,c=1/0;for(n=0;n":f>u&&(r.prefixBoundary=!0);break;case"<":(fu||r.starts.length&&p===c)&&(r.prefixBoundary=!0);break;case"][":h=Math.min(f[0],f[1]),p=Math.max(f[0],f[1]),hu&&(r.prefixBoundary=!0);break}break}}});var bP=W(Pf=>{"use strict";var fS=gi(),sc=it(),nm=en(),qNt=es(),OSe=ho(),BSe=Wi(),qSe=f1(),ONt=nP(),NSe=MY(),USe=SY(),NNt=CY(),UNt=DY(),VSe=FY(),cS=(lS(),Pt(sS)),I1=cS.LABELOPTIMIZER;Pf.plot=function(t,r,i,n){var a=r.xaxis,o=r.yaxis;sc.makeTraceGroups(n,i,"contour").each(function(s){var l=fS.select(this),u=s[0],c=u.trace,f=u.x,h=u.y,p=c.contours,d=NNt(p,r,u),v=sc.ensureSingle(l,"g","heatmapcoloring"),m=[];p.coloring==="heatmap"&&(m=[s]),ONt(t,r,m,v),NSe(d),USe(d);var g=a.c2p(f[0],!0),w=a.c2p(f[f.length-1],!0),_=o.c2p(h[0],!0),b=o.c2p(h[h.length-1],!0),S=[[g,b],[w,b],[w,_],[g,_]],x=d;p.type==="constraint"&&(x=UNt(d,p._operation)),VNt(l,S,p),GNt(l,x,S,p),HNt(l,d,t,u,p),$Nt(l,r,t,u,S)})};function VNt(e,t,r){var i=sc.ensureSingle(e,"g","contourbg"),n=i.selectAll("path").data(r.coloring==="fill"?[0]:[]);n.enter().append("path"),n.exit().remove(),n.attr("d","M"+t.join("L")+"Z").style("stroke","none")}function GNt(e,t,r,i){var n=i.coloring==="fill"||i.type==="constraint"&&i._operation!=="=",a="M"+r.join("L")+"Z";n&&VSe(t,i);var o=sc.ensureSingle(e,"g","contourfill"),s=o.selectAll("path").data(n?t:[]);s.enter().append("path"),s.exit().remove(),s.each(function(l){var u=(l.prefixBoundary?a:"")+GSe(l,r);u?fS.select(this).attr("d",u).style("stroke","none"):fS.select(this).remove()})}function GSe(e,t){var r="",i=0,n=e.edgepaths.map(function(g,w){return w}),a=!0,o,s,l,u,c,f;function h(g){return Math.abs(g[1]-t[0][1])<.01}function p(g){return Math.abs(g[1]-t[2][1])<.01}function d(g){return Math.abs(g[0]-t[0][0])<.01}function v(g){return Math.abs(g[0]-t[2][0])<.01}for(;n.length;){for(f=nm.smoothopen(e.edgepaths[i],e.smoothing),r+=a?f:f.replace(/^M/,"L"),n.splice(n.indexOf(i),1),o=e.edgepaths[i][e.edgepaths[i].length-1],u=-1,l=0;l<4;l++){if(!o){sc.log("Missing end?",i,e);break}for(h(o)&&!v(o)?s=t[1]:d(o)?s=t[0]:p(o)?s=t[3]:v(o)&&(s=t[2]),c=0;c=0&&(s=m,u=c):Math.abs(o[1]-s[1])<.01?Math.abs(o[1]-m[1])<.01&&(m[0]-o[0])*(s[0]-m[0])>=0&&(s=m,u=c):sc.log("endpt to newendpt is not vert. or horz.",o,s,m)}if(o=s,u>=0)break;r+="L"+s}if(u===e.edgepaths.length){sc.log("unclosed perimeter path");break}i=u,a=n.indexOf(i)===-1,a&&(i=n[0],r+="Z")}for(i=0;iI1.MAXCOST*2)break;h&&(s/=2),o=u-s/2,l=o+s*1.5}if(f<=I1.MAXCOST)return c};function jNt(e,t,r,i){var n=t.width/2,a=t.height/2,o=e.x,s=e.y,l=e.theta,u=Math.cos(l)*n,c=Math.sin(l)*n,f=(o>i.center?i.right-o:o-i.left)/(u+Math.abs(Math.sin(l)*a)),h=(s>i.middle?i.bottom-s:s-i.top)/(Math.abs(c)+Math.cos(l)*a);if(f<1||h<1)return 1/0;var p=I1.EDGECOST*(1/(f-1)+1/(h-1));p+=I1.ANGLECOST*l*l;for(var d=o-u,v=s-c,m=o+u,g=s+c,w=0;w{"use strict";var YNt=gi(),LY=es(),XNt=oS();HSe.exports=function(t){var r=t.contours,i=r.start,n=XNt(r),a=r.size||1,o=Math.floor((n-i)/a)+1,s=r.coloring==="lines"?0:1,l=LY.extractOpts(t);isFinite(a)||(a=1,o=1);var u=l.reversescale?LY.flipScale(l.colorscale):l.colorscale,c=u.length,f=new Array(c),h=new Array(c),p,d,v=l.min,m=l.max;if(r.coloring==="heatmap"){for(d=0;d=m)&&(i<=v&&(i=v),n>=m&&(n=m),o=Math.floor((n-i)/a)+1,s=0),d=0;dv&&(f.unshift(v),h.unshift(h[0])),f[f.length-1]{"use strict";var _P=gi(),jSe=en(),ZNt=aP(),KNt=PY();$Se.exports=function(t){var r=_P.select(t).selectAll("g.contour");r.style("opacity",function(i){return i[0].trace.opacity}),r.each(function(i){var n=_P.select(this),a=i[0].trace,o=a.contours,s=a.line,l=o.size||1,u=o.start,c=o.type==="constraint",f=!c&&o.coloring==="lines",h=!c&&o.coloring==="fill",p=f||h?KNt(a):null;n.selectAll("g.contourlevel").each(function(m){_P.select(this).selectAll("path").call(jSe.lineGroupStyle,s.width,f?p(m.level):s.color,s.dash)});var d=o.labelfont;if(n.selectAll("g.contourlabels text").each(function(m){jSe.font(_P.select(this),{weight:d.weight,style:d.style,variant:d.variant,textcase:d.textcase,lineposition:d.lineposition,shadow:d.shadow,family:d.family,size:d.size,color:d.color||(f?p(m.level):s.color)})}),c)n.selectAll("g.contourfill path").style("fill",a.fillcolor);else if(h){var v;n.selectAll("g.contourfill path").style("fill",function(m){return v===void 0&&(v=m.level),p(m.level+.5*l)}),v===void 0&&(v=u),n.selectAll("g.contourbg path").style("fill",p(v-.5*l))}}),ZNt(t)}});var TP=W((xHr,YSe)=>{"use strict";var WSe=es(),JNt=PY(),QNt=oS();function eUt(e,t,r){var i=t.contours,n=t.line,a=i.size||1,o=i.coloring,s=JNt(t,{isColorbar:!0});if(o==="heatmap"){var l=WSe.extractOpts(t);r._fillgradient=l.reversescale?WSe.flipScale(l.colorscale):l.colorscale,r._zrange=[l.min,l.max]}else o==="fill"&&(r._fillcolor=s);r._line={color:o==="lines"?s:n.color,width:i.showlines!==!1?n.width:0,dash:n.dash},r._levels={start:i.start,end:QNt(i),size:a}}YSe.exports={min:"zmin",max:"zmax",calc:eUt}});var IY=W((bHr,XSe)=>{"use strict";var AP=ai(),tUt=sP();XSe.exports=function(t,r,i,n,a){a||(a={}),a.isContour=!0;var o=tUt(t,r,i,n,a);return o&&o.forEach(function(s){var l=s.trace;l.contours.type==="constraint"&&(l.fillcolor&&AP.opacity(l.fillcolor)?s.color=AP.addOpacity(l.fillcolor,1):l.contours.showlines&&AP.opacity(l.line.color)&&(s.color=AP.addOpacity(l.line.color,1)))}),o}});var KSe=W((_Hr,ZSe)=>{"use strict";ZSe.exports={attributes:xY(),supplyDefaults:ySe(),crossTraceDefaults:cP(),calc:AY(),plot:bP().plot,layerName:"contourlayer",style:wP(),colorbar:TP(),hoverPoints:IY(),moduleType:"trace",name:"histogram2dcontour",basePlotModule:vl(),categories:["cartesian","svg","2dMap","contour","histogram","showLegend"],meta:{}}});var QSe=W((wHr,JSe)=>{"use strict";JSe.exports=KSe()});var RY=W((THr,aEe)=>{"use strict";var eEe=un(),rUt=bY(),iEe=ai(),tEe=iEe.addOpacity,iUt=iEe.opacity,nEe=(pP(),Pt(dP)),rEe=it().isArrayOrTypedArray,nUt=nEe.CONSTRAINT_REDUCTION,aUt=nEe.COMPARISON_OPS2;aEe.exports=function(t,r,i,n,a,o){var s=r.contours,l,u,c,f=i("contours.operation");if(s._operation=nUt[f],oUt(i,s),f==="="?l=s.showlines=!0:(l=i("contours.showlines"),c=i("fillcolor",tEe((t.line||{}).color||a,.5))),l){var h=c&&iUt(c)?tEe(r.fillcolor,1):a;u=i("line.color",h),i("line.width",2),i("line.dash")}i("line.smoothing"),rUt(i,n,u,o)};function oUt(e,t){var r;aUt.indexOf(t.operation)===-1?(e("contours.value",[0,1]),rEe(t.value)?t.value.length>2?t.value=t.value.slice(2):t.length===0?t.value=[0,1]:t.length<2?(r=parseFloat(t.value[0]),t.value=[r,r+1]):t.value=[parseFloat(t.value[0]),parseFloat(t.value[1])]:eEe(t.value)&&(r=parseFloat(t.value),t.value=[r,r+1])):(e("contours.value",0),eEe(t.value)||(rEe(t.value)?t.value=parseFloat(t.value[0]):t.value=0))}});var lEe=W((AHr,sEe)=>{"use strict";var zY=it(),sUt=jL(),lUt=Zp(),uUt=RY(),cUt=gP(),fUt=mP(),hUt=eS(),oEe=aS();sEe.exports=function(t,r,i,n){function a(u,c){return zY.coerce(t,r,oEe,u,c)}function o(u){return zY.coerce2(t,r,oEe,u)}var s=sUt(t,r,a,n);if(!s){r.visible=!1;return}lUt(t,r,n,a),a("xhoverformat"),a("yhoverformat"),a("text"),a("hovertext"),a("hoverongaps"),a("hovertemplate"),a("hovertemplatefallback");var l=a("contours.type")==="constraint";a("connectgaps",zY.isArray1D(r.z)),l?uUt(t,r,a,n,i):(cUt(t,r,a,o),fUt(t,r,a,n)),r.contours&&r.contours.coloring==="heatmap"&&hUt(a,n),a("zorder")}});var cEe=W((MHr,uEe)=>{"use strict";uEe.exports={attributes:aS(),supplyDefaults:lEe(),calc:AY(),plot:bP().plot,style:wP(),colorbar:TP(),hoverPoints:IY(),moduleType:"trace",name:"contour",basePlotModule:vl(),categories:["cartesian","svg","2dMap","contour","showLegend"],meta:{}}});var hEe=W((SHr,fEe)=>{"use strict";fEe.exports=cEe()});var BY=W((EHr,gEe)=>{"use strict";var{hovertemplateAttrs:dUt,texttemplateAttrs:pUt,templatefallbackAttrs:dEe}=$a(),vUt=M1(),R0=Hs(),gUt=Ka(),pEe=Fo(),mUt=Ru().dash,a2=nn().extendFlat,Nd=R0.marker,hS=R0.line,vEe=Nd.line;gEe.exports={a:{valType:"data_array",editType:"calc"},b:{valType:"data_array",editType:"calc"},c:{valType:"data_array",editType:"calc"},sum:{valType:"number",dflt:0,min:0,editType:"calc"},mode:a2({},R0.mode,{dflt:"markers"}),text:a2({},R0.text,{}),texttemplate:pUt({editType:"plot"},{keys:["a","b","c","text"]}),texttemplatefallback:dEe({editType:"plot"}),hovertext:a2({},R0.hovertext,{}),line:{color:hS.color,width:hS.width,dash:mUt,backoff:hS.backoff,shape:a2({},hS.shape,{values:["linear","spline"]}),smoothing:hS.smoothing,editType:"calc"},connectgaps:R0.connectgaps,cliponaxis:R0.cliponaxis,fill:a2({},R0.fill,{values:["none","toself","tonext"],dflt:"none"}),fillcolor:vUt(),marker:a2({symbol:Nd.symbol,opacity:Nd.opacity,angle:Nd.angle,angleref:Nd.angleref,standoff:Nd.standoff,maxdisplayed:Nd.maxdisplayed,size:Nd.size,sizeref:Nd.sizeref,sizemin:Nd.sizemin,sizemode:Nd.sizemode,line:a2({width:vEe.width,dash:vEe.dash,editType:"calc"},pEe("marker.line")),gradient:Nd.gradient,editType:"calc"},pEe("marker")),textfont:R0.textfont,textposition:R0.textposition,selected:R0.selected,unselected:R0.unselected,hoverinfo:a2({},gUt.hoverinfo,{flags:["a","b","c","text","name"]}),hoveron:R0.hoveron,hovertemplate:dUt(),hovertemplatefallback:dEe()}});var bEe=W((kHr,xEe)=>{"use strict";var mEe=it(),yUt=(A1(),Pt(T1)),I5=Wo(),xUt=Cd(),bUt=Kp(),yEe=Kw(),_Ut=Jp(),wUt=E1(),TUt=BY();xEe.exports=function(t,r,i,n){function a(h,p){return mEe.coerce(t,r,TUt,h,p)}var o=a("a"),s=a("b"),l=a("c"),u;if(o?(u=o.length,s?(u=Math.min(u,s.length),l&&(u=Math.min(u,l.length))):l?u=Math.min(u,l.length):u=0):s&&l&&(u=Math.min(s.length,l.length)),!u){r.visible=!1;return}r._length=u,a("sum"),a("text"),a("hovertext"),r.hoveron!=="fills"&&(a("hovertemplate"),a("hovertemplatefallback"));var c=u{"use strict";var qY=Wi();_Ee.exports=function(t,r,i){var n={},a=i[r.subplot]._subplot;return n.aLabel=qY.tickText(a.aaxis,t.a,!0).text,n.bLabel=qY.tickText(a.baxis,t.b,!0).text,n.cLabel=qY.tickText(a.caxis,t.c,!0).text,n}});var SEe=W((DHr,MEe)=>{"use strict";var OY=un(),AUt=Dd(),MUt=k1(),SUt=E0(),EUt=Fd().calcMarkerSize,TEe=["a","b","c"],AEe={a:["b","c"],b:["a","c"],c:["a","b"]};MEe.exports=function(t,r){var i=t._fullLayout[r.subplot],n=i.sum,a=r.sum||n,o={a:r.a,b:r.b,c:r.c},s=r.ids,l,u,c,f,h,p;for(l=0;l{"use strict";var kUt=i5();EEe.exports=function(t,r,i){var n=r.plotContainer;n.select(".scatterlayer").selectAll("*").remove();for(var a=r.xaxis,o=r.yaxis,s={xaxis:a,yaxis:o,plot:n,layerClipId:r._hasClipOnAxisFalse?r.clipIdRelative:null},l=r.layers.frontplot.select("g.scatterlayer"),u=0;u{"use strict";var CUt=s5();CEe.exports=function(t,r,i,n){var a=CUt(t,r,i,n);if(!a||a[0].index===!1)return;var o=a[0];if(o.index===void 0){var s=1-o.y0/t.ya._length,l=t.xa._length,u=l*s/2,c=l-u;return o.x0=Math.max(Math.min(o.x0,c),u),o.x1=Math.max(Math.min(o.x1,c),u),a}var f=o.cd[o.index],h=o.trace,p=o.subplot;o.a=f.a,o.b=f.b,o.c=f.c,o.xLabelVal=void 0,o.yLabelVal=void 0;var d={};d[h.subplot]={_subplot:p};var v=h._module.formatLabels(f,h,d);o.aLabel=v.aLabel,o.bLabel=v.bLabel,o.cLabel=v.cLabel;var m=f.hi||h.hoverinfo,g=[];function w(b,S){g.push(b._hovertitle+": "+S)}if(!h.hovertemplate){var _=m.split("+");_.indexOf("all")!==-1&&(_=["a","b","c"]),_.indexOf("a")!==-1&&w(p.aaxis,o.aLabel),_.indexOf("b")!==-1&&w(p.baxis,o.bLabel),_.indexOf("c")!==-1&&w(p.caxis,o.cLabel)}return o.extraText=g.join("
"),o.hovertemplate=h.hovertemplate,a}});var LEe=W((PHr,FEe)=>{"use strict";FEe.exports=function(t,r,i,n,a){if(r.xa&&(t.xaxis=r.xa),r.ya&&(t.yaxis=r.ya),n[a]){var o=n[a];t.a=o.a,t.b=o.b,t.c=o.c}else t.a=r.a,t.b=r.b,t.c=r.c;return t}});var GEe=W((IHr,VEe)=>{"use strict";var qEe=gi(),NY=xi(),am=it(),R1=am.strTranslate,MP=am._,Zb=ai(),SP=en(),dS=f1(),UY=nn().extendFlat,DUt=Qo(),o2=Wi(),PEe=Mf(),IEe=Ls(),OEe=m1(),REe=OEe.freeMode,FUt=OEe.rectMode,VY=db(),LUt=yu().prepSelect,PUt=yu().selectOnClick,IUt=yu().clearOutline,RUt=yu().clearSelectionsCache,NEe=(Wl(),Pt($l));function UEe(e,t){this.id=e.id,this.graphDiv=e.graphDiv,this.init(t),this.makeFramework(t),this.updateFx(t),this.aTickLayout=null,this.bTickLayout=null,this.cTickLayout=null}VEe.exports=UEe;var z1=UEe.prototype;z1.init=function(e){this.container=e._ternarylayer,this.defs=e._defs,this.layoutId=e._uid,this.traceHash={},this.layers={}};z1.plot=function(e,t){var r=this,i=t[r.id],n=t._size;r._hasClipOnAxisFalse=!1;for(var a=0;aR5*u?(g=u,m=g*R5):(m=l,g=m/R5),w=o*m/l,_=s*g/u,d=t.l+t.w*n-m/2,v=t.t+t.h*(1-a)-g/2,r.x0=d,r.y0=v,r.w=m,r.h=g,r.sum=c,r.xaxis={type:"linear",range:[f+2*p-c,c-f-2*h],domain:[n-w/2,n+w/2],_id:"x"},dS(r.xaxis,r.graphDiv._fullLayout),r.xaxis.setScale(),r.xaxis.isPtWithinRange=function(D){return D.a>=r.aaxis.range[0]&&D.a<=r.aaxis.range[1]&&D.b>=r.baxis.range[1]&&D.b<=r.baxis.range[0]&&D.c>=r.caxis.range[1]&&D.c<=r.caxis.range[0]},r.yaxis={type:"linear",range:[f,c-h-p],domain:[a-_/2,a+_/2],_id:"y"},dS(r.yaxis,r.graphDiv._fullLayout),r.yaxis.setScale(),r.yaxis.isPtWithinRange=function(){return!0};var b=r.yaxis.domain[0],S=r.aaxis=UY({},e.aaxis,{range:[f,c-h-p],side:"left",tickangle:(+e.aaxis.tickangle||0)-30,domain:[b,b+_*R5],anchor:"free",position:0,_id:"y",_length:m});dS(S,r.graphDiv._fullLayout),S.setScale();var x=r.baxis=UY({},e.baxis,{range:[c-f-p,h],side:"bottom",domain:r.xaxis.domain,anchor:"free",position:0,_id:"x",_length:m});dS(x,r.graphDiv._fullLayout),x.setScale();var T=r.caxis=UY({},e.caxis,{range:[c-f-h,p],side:"right",tickangle:(+e.caxis.tickangle||0)+30,domain:[b,b+_*R5],anchor:"free",position:0,_id:"y",_length:m});dS(T,r.graphDiv._fullLayout),T.setScale();var A="M"+d+","+(v+g)+"h"+m+"l-"+m/2+",-"+g+"Z";r.clipDef.select("path").attr("d",A),r.layers.plotbg.select("path").attr("d",A);var y="M0,"+g+"h"+m+"l-"+m/2+",-"+g+"Z";r.clipDefRelative.select("path").attr("d",y);var E=R1(d,v);r.plotContainer.selectAll(".scatterlayer,.maplayer").attr("transform",E),r.clipDefRelative.select("path").attr("transform",null);var M=R1(d-x._offset,v+g);r.layers.baxis.attr("transform",M),r.layers.bgrid.attr("transform",M);var C=R1(d+m/2,v)+"rotate(30)"+R1(0,-S._offset);r.layers.aaxis.attr("transform",C),r.layers.agrid.attr("transform",C);var k=R1(d+m/2,v)+"rotate(-30)"+R1(0,-T._offset);r.layers.caxis.attr("transform",k),r.layers.cgrid.attr("transform",k),r.drawAxes(!0),r.layers.aline.select("path").attr("d",S.showline?"M"+d+","+(v+g)+"l"+m/2+",-"+g:"M0,0").call(Zb.stroke,S.linecolor||"#000").style("stroke-width",(S.linewidth||0)+"px"),r.layers.bline.select("path").attr("d",x.showline?"M"+d+","+(v+g)+"h"+m:"M0,0").call(Zb.stroke,x.linecolor||"#000").style("stroke-width",(x.linewidth||0)+"px"),r.layers.cline.select("path").attr("d",T.showline?"M"+(d+m/2)+","+v+"l"+m/2+","+g:"M0,0").call(Zb.stroke,T.linecolor||"#000").style("stroke-width",(T.linewidth||0)+"px"),r.graphDiv._context.staticPlot||r.initInteractions(),SP.setClipUrl(r.layers.frontplot,r._hasClipOnAxisFalse?null:r.clipId,r.graphDiv)};z1.drawAxes=function(e){var t=this,r=t.graphDiv,i=t.id.slice(7)+"title",n=t.layers,a=t.aaxis,o=t.baxis,s=t.caxis;if(t.drawAx(a),t.drawAx(o),t.drawAx(s),e){var l=Math.max(a.showticklabels?a.tickfont.size/2:0,(s.showticklabels?s.tickfont.size*.75:0)+(s.ticks==="outside"?s.ticklen*.87:0)),u=(o.showticklabels?o.tickfont.size:0)+(o.ticks==="outside"?o.ticklen:0)+3;n["a-title"]=VY.draw(r,"a"+i,{propContainer:a,propName:t.id+".aaxis.title.text",placeholder:MP(r,"Click to enter Component A title"),attributes:{x:t.x0+t.w/2,y:t.y0-a.title.font.size/3-l,"text-anchor":"middle"}}),n["b-title"]=VY.draw(r,"b"+i,{propContainer:o,propName:t.id+".baxis.title.text",placeholder:MP(r,"Click to enter Component B title"),attributes:{x:t.x0-u,y:t.y0+t.h+o.title.font.size*.83+u,"text-anchor":"middle"}}),n["c-title"]=VY.draw(r,"c"+i,{propContainer:s,propName:t.id+".caxis.title.text",placeholder:MP(r,"Click to enter Component C title"),attributes:{x:t.x0+t.w+u,y:t.y0+t.h+s.title.font.size*.83+u,"text-anchor":"middle"}})}};z1.drawAx=function(e){var t=this,r=t.graphDiv,i=e._name,n=i.charAt(0),a=e._id,o=t.layers[i],s=30,l=n+"tickLayout",u=zUt(e);t[l]!==u&&(o.selectAll("."+a+"tick").remove(),t[l]=u),e.setScale();var c=o2.calcTicks(e),f=o2.clipEnds(e,c),h=o2.makeTransTickFn(e),p=o2.getTickSigns(e)[2],d=am.deg2rad(s),v=p*(e.linewidth||1)/2,m=p*e.ticklen,g=t.w,w=t.h,_=n==="b"?"M0,"+v+"l"+Math.sin(d)*m+","+Math.cos(d)*m:"M"+v+",0l"+Math.cos(d)*m+","+-Math.sin(d)*m,b={a:"M0,0l"+w+",-"+g/2,b:"M0,0l-"+g/2+",-"+w,c:"M0,0l-"+w+","+g/2}[n];o2.drawTicks(r,e,{vals:e.ticks==="inside"?f:c,layer:o,path:_,transFn:h,crisp:!1}),o2.drawGrid(r,e,{vals:f,layer:t.layers[n+"grid"],path:b,transFn:h,crisp:!1}),o2.drawLabels(r,e,{vals:c,layer:o,transFn:h,labelFns:o2.makeLabelFns(e,0,s)})};function zUt(e){return e.ticks+String(e.ticklen)+String(e.showticklabels)}var Uu=NEe.MINZOOM/2+.87,BUt="m-0.87,.5h"+Uu+"v3h-"+(Uu+5.2)+"l"+(Uu/2+2.6)+",-"+(Uu*.87+4.5)+"l2.6,1.5l-"+Uu/2+","+Uu*.87+"Z",qUt="m0.87,.5h-"+Uu+"v3h"+(Uu+5.2)+"l-"+(Uu/2+2.6)+",-"+(Uu*.87+4.5)+"l-2.6,1.5l"+Uu/2+","+Uu*.87+"Z",OUt="m0,1l"+Uu/2+","+Uu*.87+"l2.6,-1.5l-"+(Uu/2+2.6)+",-"+(Uu*.87+4.5)+"l-"+(Uu/2+2.6)+","+(Uu*.87+4.5)+"l2.6,1.5l"+Uu/2+",-"+Uu*.87+"Z",NUt="m0.5,0.5h5v-2h-5v-5h-2v5h-5v2h5v5h2Z",zEe=!0;z1.clearOutline=function(){RUt(this.dragOptions),IUt(this.dragOptions.gd)};z1.initInteractions=function(){var e=this,t=e.layers.plotbg.select("path").node(),r=e.graphDiv,i=r._fullLayout._zoomlayer,n,a;this.dragOptions={element:t,gd:r,plotinfo:{id:e.id,domain:r._fullLayout[e.id].domain,xaxis:e.xaxis,yaxis:e.yaxis},subplot:e.id,prepFn:function(M,C,k){e.dragOptions.xaxes=[e.xaxis],e.dragOptions.yaxes=[e.yaxis],n=r._fullLayout._invScaleX,a=r._fullLayout._invScaleY;var D=e.dragOptions.dragmode=r._fullLayout.dragmode;REe(D)?e.dragOptions.minDrag=1:e.dragOptions.minDrag=void 0,D==="zoom"?(e.dragOptions.moveFn=x,e.dragOptions.clickFn=g,e.dragOptions.doneFn=T,w(M,C,k)):D==="pan"?(e.dragOptions.moveFn=y,e.dragOptions.clickFn=g,e.dragOptions.doneFn=E,A(),e.clearOutline(r)):(FUt(D)||REe(D))&&LUt(M,C,k,e.dragOptions,D)}};var o,s,l,u,c,f,h,p,d,v;function m(M){var C={};return C[e.id+".aaxis.min"]=M.a,C[e.id+".baxis.min"]=M.b,C[e.id+".caxis.min"]=M.c,C}function g(M,C){var k=r._fullLayout.clickmode;BEe(r),M===2&&(r.emit("plotly_doubleclick",null),NY.call("_guiRelayout",r,m({a:0,b:0,c:0}))),k.indexOf("select")>-1&&M===1&&PUt(C,r,[e.xaxis],[e.yaxis],e.id,e.dragOptions),k.indexOf("event")>-1&&IEe.click(r,C,e.id)}function w(M,C,k){var D=t.getBoundingClientRect();o=C-D.left,s=k-D.top,r._fullLayout._calcInverseTransform(r);var L=r._fullLayout._invTransform,P=am.apply3DTransform(L)(o,s);o=P[0],s=P[1],l={a:e.aaxis.range[0],b:e.baxis.range[1],c:e.caxis.range[1]},c=l,u=e.aaxis.range[1]-l.a,f=Zb.luminosity(e.graphDiv._fullLayout[e.id].bgcolor),h="M0,"+e.h+"L"+e.w/2+", 0L"+e.w+","+e.h+"Z",p=!1,d=i.append("path").attr("class","zoombox").attr("transform",R1(e.x0,e.y0)).style({fill:f>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("d",h),v=i.append("path").attr("class","zoombox-corners").attr("transform",R1(e.x0,e.y0)).style({fill:Zb.background,stroke:Zb.defaultLine,"stroke-width":1,opacity:0}).attr("d","M0,0Z"),e.clearOutline(r)}function _(M,C){return 1-C/e.h}function b(M,C){return 1-(M+(e.h-C)/Math.sqrt(3))/e.w}function S(M,C){return(M-(e.h-C)/Math.sqrt(3))/e.w}function x(M,C){var k=o+M*n,D=s+C*a,L=Math.max(0,Math.min(1,_(o,s),_(k,D))),P=Math.max(0,Math.min(1,b(o,s),b(k,D))),R=Math.max(0,Math.min(1,S(o,s),S(k,D))),F=(L/2+R)*e.w,I=(1-L/2-P)*e.w,B=(F+I)/2,O=I-F,$=(1-L)*e.h,Y=$-O/R5;O.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),v.transition().style("opacity",1).duration(200),p=!0),r.emit("plotly_relayouting",m(c))}function T(){BEe(r),c!==l&&(NY.call("_guiRelayout",r,m(c)),zEe&&r.data&&r._context.showTips&&(am.notifier(MP(r,"Double-click to zoom back out"),"long",r),zEe=!1))}function A(){l={a:e.aaxis.range[0],b:e.baxis.range[1],c:e.caxis.range[1]},c=l}function y(M,C){var k=M/e.xaxis._m,D=C/e.yaxis._m;c={a:l.a-D,b:l.b+(k+D)/2,c:l.c-(k-D)/2};var L=[c.a,c.b,c.c].sort(am.sorterAsc),P={a:L.indexOf(c.a),b:L.indexOf(c.b),c:L.indexOf(c.c)};L[0]<0&&(L[1]+L[0]/2<0?(L[2]+=L[0]+L[1],L[0]=L[1]=0):(L[2]+=L[0]/2,L[1]+=L[0]/2,L[0]=0),c={a:L[P.a],b:L[P.b],c:L[P.c]},C=(l.a-c.a)*e.yaxis._m,M=(l.c-c.c-l.b+c.b)*e.xaxis._m);var R=R1(e.x0+M,e.y0+C);e.plotContainer.selectAll(".scatterlayer,.maplayer").attr("transform",R);var F=R1(-M,-C);e.clipDefRelative.select("path").attr("transform",F),e.aaxis.range=[c.a,e.sum-c.b-c.c],e.baxis.range=[e.sum-c.a-c.c,c.b],e.caxis.range=[e.sum-c.a-c.b,c.c],e.drawAxes(!1),e._hasClipOnAxisFalse&&e.plotContainer.select(".scatterlayer").selectAll(".trace").call(SP.hideOutsideRangePoints,e),r.emit("plotly_relayouting",m(c))}function E(){NY.call("_guiRelayout",r,m(c))}t.onmousemove=function(M){IEe.hover(r,M,e.id),r._fullLayout._lasthover=t,r._fullLayout._hoversubplot=e.id},t.onmouseout=function(M){r._dragging||PEe.unhover(r,M)},PEe.init(this.dragOptions)};function BEe(e){qEe.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}});var jY=W((RHr,HEe)=>{"use strict";var UUt=jl(),VUt=fs().attributes,io=nc(),GUt=cs().overrideAll,GY=nn().extendFlat,HY={title:{text:io.title.text,font:io.title.font},color:io.color,tickmode:io.minor.tickmode,nticks:GY({},io.nticks,{dflt:6,min:1}),tick0:io.tick0,dtick:io.dtick,tickvals:io.tickvals,ticktext:io.ticktext,ticks:io.ticks,ticklen:io.ticklen,tickwidth:io.tickwidth,tickcolor:io.tickcolor,ticklabelstep:io.ticklabelstep,showticklabels:io.showticklabels,labelalias:io.labelalias,showtickprefix:io.showtickprefix,tickprefix:io.tickprefix,showticksuffix:io.showticksuffix,ticksuffix:io.ticksuffix,showexponent:io.showexponent,exponentformat:io.exponentformat,minexponent:io.minexponent,separatethousands:io.separatethousands,tickfont:io.tickfont,tickangle:io.tickangle,tickformat:io.tickformat,tickformatstops:io.tickformatstops,hoverformat:io.hoverformat,showline:GY({},io.showline,{dflt:!0}),linecolor:io.linecolor,linewidth:io.linewidth,showgrid:GY({},io.showgrid,{dflt:!0}),gridcolor:io.gridcolor,gridwidth:io.gridwidth,griddash:io.griddash,layer:io.layer,min:{valType:"number",dflt:0,min:0}},EP=HEe.exports=GUt({domain:VUt({name:"ternary"}),bgcolor:{valType:"color",dflt:UUt.background},sum:{valType:"number",dflt:1,min:0},aaxis:HY,baxis:HY,caxis:HY},"plot","from-root");EP.uirevision={valType:"any",editType:"none"};EP.aaxis.uirevision=EP.baxis.uirevision=EP.caxis.uirevision={valType:"any",editType:"none"}});var Kb=W((zHr,jEe)=>{"use strict";var HUt=it(),jUt=Ia(),$Ut=fs().defaults;jEe.exports=function(t,r,i,n){var a=n.type,o=n.attributes,s=n.handleDefaults,l=n.partition||"x",u=r._subplots[a],c=u.length,f=c&&u[0].replace(/\d+$/,""),h,p;function d(w,_){return HUt.coerce(h,p,o,w,_)}for(var v=0;v{"use strict";var WUt=ai(),YUt=Ia(),kP=it(),XUt=Kb(),ZUt=Cy(),KUt=Dy(),JUt=Sw(),QUt=lb(),eVt=DM(),WEe=jY(),$Ee=["aaxis","baxis","caxis"];YEe.exports=function(t,r,i){XUt(t,r,i,{type:"ternary",attributes:WEe,handleDefaults:tVt,font:r.font,paper_bgcolor:r.paper_bgcolor})};function tVt(e,t,r,i){var n=r("bgcolor"),a=r("sum");i.bgColor=WUt.combine(n,i.paper_bgcolor);for(var o,s,l,u=0;u<$Ee.length;u++)o=$Ee[u],s=e[o]||{},l=YUt.newContainer(t,o),l._name=o,rVt(s,l,i,t);var c=t.aaxis,f=t.baxis,h=t.caxis;c.min+f.min+h.min>=a&&(c.min=0,f.min=0,h.min=0,e.aaxis&&delete e.aaxis.min,e.baxis&&delete e.baxis.min,e.caxis&&delete e.caxis.min)}function rVt(e,t,r,i){var n=WEe[t._name];function a(p,d){return kP.coerce(e,t,n,p,d)}a("uirevision",i.uirevision),t.type="linear";var o=a("color"),s=o!==n.color.dflt?o:r.font.color,l=t._name,u=l.charAt(0).toUpperCase(),c="Component "+u,f=a("title.text",c);t._hovertitle=f===c?f:u,kP.coerceFont(a,"title.font",r.font,{overrideDflt:{size:kP.bigFont(r.font.size),color:s}}),a("min"),QUt(e,t,a,"linear"),KUt(e,t,a,"linear"),ZUt(e,t,a,"linear",{noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0}),JUt(e,t,a,{outerTicks:!0});var h=a("showticklabels");h&&(kP.coerceFont(a,"tickfont",r.font,{overrideDflt:{color:s}}),a("tickangle"),a("tickformat")),eVt(e,t,a,{dfltColor:o,bgColor:r.bgColor,blend:60,showLine:!0,showGrid:!0,noZeroLine:!0,attributes:n}),a("hoverformat"),a("layer")}});var ZEe=W(Ud=>{"use strict";var iVt=GEe(),nVt=Ac().getSubplotCalcData,aVt=it().counterRegex,z5="ternary";Ud.name=z5;var oVt=Ud.attr="subplot";Ud.idRoot=z5;Ud.idRegex=Ud.attrRegex=aVt(z5);var sVt=Ud.attributes={};sVt[oVt]={valType:"subplotid",dflt:"ternary",editType:"calc"};Ud.layoutAttributes=jY();Ud.supplyLayoutDefaults=XEe();Ud.plot=function(t){for(var r=t._fullLayout,i=t.calcdata,n=r._subplots[z5],a=0;a{"use strict";KEe.exports={attributes:BY(),supplyDefaults:bEe(),colorbar:kc(),formatLabels:wEe(),calc:SEe(),plot:kEe(),style:oh().style,styleOnSelect:oh().styleOnSelect,hoverPoints:DEe(),selectPoints:Rb(),eventData:LEe(),moduleType:"trace",name:"scatterternary",basePlotModule:ZEe(),categories:["ternary","symbols","showLegend","scatter-like"],meta:{}}});var eke=W((NHr,QEe)=>{"use strict";QEe.exports=JEe()});var $Y=W((UHr,rke)=>{"use strict";var Jl=ZM(),B5=nn().extendFlat,tke=ws().axisHoverFormat;rke.exports={y:Jl.y,x:Jl.x,x0:Jl.x0,y0:Jl.y0,xhoverformat:tke("x"),yhoverformat:tke("y"),name:B5({},Jl.name,{}),orientation:B5({},Jl.orientation,{}),bandwidth:{valType:"number",min:0,editType:"calc"},scalegroup:{valType:"string",dflt:"",editType:"calc"},scalemode:{valType:"enumerated",values:["width","count"],dflt:"width",editType:"calc"},spanmode:{valType:"enumerated",values:["soft","hard","manual"],dflt:"soft",editType:"calc"},span:{valType:"info_array",items:[{valType:"any",editType:"calc"},{valType:"any",editType:"calc"}],editType:"calc"},line:{color:{valType:"color",editType:"style"},width:{valType:"number",min:0,dflt:2,editType:"style"},editType:"plot"},fillcolor:Jl.fillcolor,points:B5({},Jl.boxpoints,{}),jitter:B5({},Jl.jitter,{}),pointpos:B5({},Jl.pointpos,{}),width:B5({},Jl.width,{}),marker:Jl.marker,text:Jl.text,hovertext:Jl.hovertext,hovertemplate:Jl.hovertemplate,hovertemplatefallback:Jl.hovertemplatefallback,quartilemethod:Jl.quartilemethod,box:{visible:{valType:"boolean",dflt:!1,editType:"plot"},width:{valType:"number",min:0,max:1,dflt:.25,editType:"plot"},fillcolor:{valType:"color",editType:"style"},line:{color:{valType:"color",editType:"style"},width:{valType:"number",min:0,editType:"style"},editType:"style"},editType:"plot"},meanline:{visible:{valType:"boolean",dflt:!1,editType:"plot"},color:{valType:"color",editType:"style"},width:{valType:"number",min:0,editType:"style"},editType:"plot"},side:{valType:"enumerated",values:["both","positive","negative"],dflt:"both",editType:"calc"},offsetgroup:Jl.offsetgroup,alignmentgroup:Jl.alignmentgroup,selected:Jl.selected,unselected:Jl.unselected,hoveron:{valType:"flaglist",flags:["violins","points","kde"],dflt:"violins+points+kde",extras:["all"],editType:"style"},zorder:Jl.zorder}});var XY=W((VHr,ike)=>{"use strict";var WY=KM(),YY=it().extendFlat;ike.exports={violinmode:YY({},WY.boxmode,{}),violingap:YY({},WY.boxgap,{}),violingroupgap:YY({},WY.boxgroupgap,{})}});var lke=W((GHr,ske)=>{"use strict";var nke=it(),lVt=ai(),ake=QM(),oke=$Y();ske.exports=function(t,r,i,n){function a(S,x){return nke.coerce(t,r,oke,S,x)}function o(S,x){return nke.coerce2(t,r,oke,S,x)}if(ake.handleSampleDefaults(t,r,a,n),r.visible!==!1){a("bandwidth"),a("side");var s=a("width");s||(a("scalegroup",r.name),a("scalemode"));var l=a("span"),u;Array.isArray(l)&&(u="manual"),a("spanmode",u);var c=a("line.color",(t.marker||{}).color||i),f=a("line.width"),h=a("fillcolor",lVt.addOpacity(r.line.color,.5));ake.handlePointsDefaults(t,r,a,{prefix:""});var p=o("box.width"),d=o("box.fillcolor",h),v=o("box.line.color",c),m=o("box.line.width",f),g=a("box.visible",!!(p||d||v||m));g||(r.box={visible:!1});var w=o("meanline.color",c),_=o("meanline.width",f),b=a("meanline.visible",!!(w||_));b||(r.meanline={visible:!1}),a("quartilemethod"),a("zorder")}}});var cke=W((HHr,uke)=>{"use strict";var uVt=it(),cVt=XY(),fVt=OL();uke.exports=function(t,r,i){function n(a,o){return uVt.coerce(t,r,cVt,a,o)}fVt._supply(t,r,i,n,"violin")}});var CP=W(Jb=>{"use strict";var hVt=it(),dVt={gaussian:function(e){return 1/Math.sqrt(2*Math.PI)*Math.exp(-.5*e*e)}};Jb.makeKDE=function(e,t,r){var i=r.length,n=dVt.gaussian,a=e.bandwidth,o=1/(i*a);return function(s){for(var l=0,u=0;u{"use strict";var ZY=it(),KY=Wi(),pVt=VW(),fke=CP(),vVt=(ta(),Pt(ra)).BADNUM;hke.exports=function(t,r){var i=pVt(t,r);if(i[0].t.empty)return i;for(var n=t._fullLayout,a=KY.getFromId(t,r[r.orientation==="h"?"xaxis":"yaxis"]),o=1/0,s=-1/0,l=0,u=0,c=0;c{"use strict";var xVt=UL().setPositionOffset,pke=["v","h"];vke.exports=function(t,r){for(var i=t.calcdata,n=r.xaxis,a=r.yaxis,o=0;o{"use strict";var JY=gi(),QY=it(),bVt=en(),eX=VL(),_Vt=S$(),wVt=CP();mke.exports=function(t,r,i,n){var a=t._context.staticPlot,o=t._fullLayout,s=r.xaxis,l=r.yaxis;function u(c,f){var h=_Vt(c,{xaxis:s,yaxis:l,trace:f,connectGaps:!0,baseTolerance:.75,shape:"spline",simplify:!0,linearized:!0});return bVt.smoothopen(h[0],1)}QY.makeTraceGroups(n,i,"trace violins").each(function(c){var f=JY.select(this),h=c[0],p=h.t,d=h.trace;if(d.visible!==!0||p.empty){f.remove();return}var v=p.bPos,m=p.bdPos,g=r[p.valLetter+"axis"],w=r[p.posLetter+"axis"],_=d.side==="both",b=_||d.side==="positive",S=_||d.side==="negative",x=f.selectAll("path.violin").data(QY.identity);x.enter().append("path").style("vector-effect",a?"none":"non-scaling-stroke").attr("class","violin"),x.exit().remove(),x.each(function(D){var L=JY.select(this),P=D.density,R=P.length,F=w.c2l(D.pos+v,!0),I=w.l2p(F),B;if(d.width)B=p.maxKDE/m;else{var O=o._violinScaleGroupStats[d.scalegroup];B=d.scalemode==="count"?O.maxKDE/m*(O.maxCount/D.pts.length):O.maxKDE/m}var $,Y,K,j,q,Q,U;if(b){for(Q=new Array(R),j=0;j{"use strict";var xke=gi(),q5=ai(),TVt=oh().stylePoints;bke.exports=function(t){var r=xke.select(t).selectAll("g.trace.violins");r.style("opacity",function(i){return i[0].trace.opacity}),r.each(function(i){var n=i[0].trace,a=xke.select(this),o=n.box||{},s=o.line||{},l=n.meanline||{},u=l.width;a.selectAll("path.violin").style("stroke-width",n.line.width+"px").call(q5.stroke,n.line.color).call(q5.fill,n.fillcolor),a.selectAll("path.box").style("stroke-width",s.width+"px").call(q5.stroke,s.color).call(q5.fill,o.fillcolor);var c={"stroke-width":u+"px","stroke-dasharray":2*u+"px,"+u+"px"};a.selectAll("path.mean").style(c).call(q5.stroke,l.color),a.selectAll("path.meanline").style(c).call(q5.stroke,l.color),TVt(a,n,t)})}});var Mke=W((ZHr,Ake)=>{"use strict";var AVt=ai(),tX=it(),MVt=Wi(),wke=WW(),Tke=CP();Ake.exports=function(t,r,i,n,a){a||(a={});var o=a.hoverLayer,s=t.cd,l=s[0].trace,u=l.hoveron,c=u.indexOf("violins")!==-1,f=u.indexOf("kde")!==-1,h=[],p,d;if(c||f){var v=wke.hoverOnBoxes(t,r,i,n);if(f&&v.length>0){var m=t.xa,g=t.ya,w,_,b,S,x;l.orientation==="h"?(x=r,w="y",b=g,_="x",S=m):(x=i,w="x",b=m,_="y",S=g);var T=s[t.index];if(x>=T.span[0]&&x<=T.span[1]){var A=tX.extendFlat({},t),y=S.c2p(x,!0),E=Tke.getKdeValue(T,l,x),M=Tke.getPositionOnKdePath(T,l,y),C=b._offset,k=b._length;A[w+"0"]=M[0],A[w+"1"]=M[1],A[_+"0"]=A[_+"1"]=y,A[_+"Label"]=_+": "+MVt.hoverLabelText(S,x,l[_+"hoverformat"])+", "+s[0].t.labels.kde+" "+E.toFixed(3);for(var D=0,L=0;L{"use strict";Ske.exports={attributes:$Y(),layoutAttributes:XY(),supplyDefaults:lke(),crossTraceDefaults:QM().crossTraceDefaults,supplyLayoutDefaults:cke(),calc:dke(),crossTraceCalc:gke(),plot:yke(),style:_ke(),styleOnSelect:oh().styleOnSelect,hoverPoints:Mke(),selectPoints:YW(),moduleType:"trace",name:"violin",basePlotModule:vl(),categories:["cartesian","svg","symbols","oriented","box-violin","showLegend","violinLayout","zoomScale"],meta:{}}});var Cke=W((JHr,kke)=>{"use strict";kke.exports=Eke()});var Dke={};Kn(Dke,{eventDataKeys:()=>SVt});var SVt,Fke=Ci(()=>{"use strict";SVt=["percentInitial","percentPrevious","percentTotal"]});var iX=W((QHr,Rke)=>{"use strict";var hs=F1(),rX=Hs().line,EVt=Ka(),Lke=ws().axisHoverFormat,{hovertemplateAttrs:kVt,texttemplateAttrs:CVt,templatefallbackAttrs:Pke}=$a(),Ike=(Fke(),Pt(Dke)),om=nn().extendFlat,DVt=ai();Rke.exports={x:hs.x,x0:hs.x0,dx:hs.dx,y:hs.y,y0:hs.y0,dy:hs.dy,xperiod:hs.xperiod,yperiod:hs.yperiod,xperiod0:hs.xperiod0,yperiod0:hs.yperiod0,xperiodalignment:hs.xperiodalignment,yperiodalignment:hs.yperiodalignment,xhoverformat:Lke("x"),yhoverformat:Lke("y"),hovertext:hs.hovertext,hovertemplate:kVt({},{keys:Ike.eventDataKeys}),hovertemplatefallback:Pke(),hoverinfo:om({},EVt.hoverinfo,{flags:["name","x","y","text","percent initial","percent previous","percent total"]}),textinfo:{valType:"flaglist",flags:["label","text","percent initial","percent previous","percent total","value"],extras:["none"],editType:"plot",arrayOk:!1},texttemplate:CVt({editType:"plot"},{keys:Ike.eventDataKeys.concat(["label","value"])}),texttemplatefallback:Pke({editType:"plot"}),text:hs.text,textposition:hs.textposition,insidetextanchor:om({},hs.insidetextanchor,{dflt:"middle"}),textangle:om({},hs.textangle,{dflt:0}),textfont:hs.textfont,insidetextfont:hs.insidetextfont,outsidetextfont:hs.outsidetextfont,constraintext:hs.constraintext,cliponaxis:hs.cliponaxis,orientation:om({},hs.orientation,{}),offset:om({},hs.offset,{arrayOk:!1}),width:om({},hs.width,{arrayOk:!1}),marker:FVt(),connector:{fillcolor:{valType:"color",editType:"style"},line:{color:om({},rX.color,{dflt:DVt.defaultLine}),width:om({},rX.width,{dflt:0,editType:"plot"}),dash:rX.dash,editType:"style"},visible:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},offsetgroup:hs.offsetgroup,alignmentgroup:hs.alignmentgroup,zorder:hs.zorder};function FVt(){var e=om({},hs.marker);return delete e.pattern,delete e.cornerradius,e}});var nX=W((ejr,zke)=>{"use strict";zke.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"}}});var oX=W((tjr,qke)=>{"use strict";var DP=it(),LVt=Pb(),PVt=L0().handleText,IVt=Lb(),RVt=Zp(),Bke=iX(),aX=ai();function zVt(e,t,r,i){function n(f,h){return DP.coerce(e,t,Bke,f,h)}var a=IVt(e,t,i,n);if(!a){t.visible=!1;return}RVt(e,t,i,n),n("xhoverformat"),n("yhoverformat"),n("orientation",t.y&&!t.x?"v":"h"),n("offset"),n("width");var o=n("text");n("hovertext"),n("hovertemplate"),n("hovertemplatefallback");var s=n("textposition");PVt(e,t,i,n,s,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),t.textposition!=="none"&&!t.texttemplate&&n("textinfo",DP.isArrayOrTypedArray(o)?"text+value":"value");var l=n("marker.color",r);n("marker.line.color",aX.defaultLine),n("marker.line.width");var u=n("connector.visible");if(u){n("connector.fillcolor",BVt(l));var c=n("connector.line.width");c&&(n("connector.line.color"),n("connector.line.dash"))}n("zorder")}function BVt(e){var t=DP.isArrayOrTypedArray(e)?"#000":e;return aX.addOpacity(t,.5*aX.opacity(t))}function qVt(e,t){var r,i;function n(o){return DP.coerce(i._input,i,Bke,o)}for(var a=0;a{"use strict";var OVt=it(),NVt=nX();Oke.exports=function(e,t,r){var i=!1;function n(s,l){return OVt.coerce(e,t,NVt,s,l)}for(var a=0;a{"use strict";var O5=it();Uke.exports=function(t,r){for(var i=0;i{"use strict";var Gke=Wi(),Hke=Qp(),UVt=Vke(),VVt=E0(),pS=(ta(),Pt(ra)).BADNUM;jke.exports=function(t,r){var i=Gke.getFromId(t,r.xaxis||"x"),n=Gke.getFromId(t,r.yaxis||"y"),a,o,s,l,u,c,f,h;r.orientation==="h"?(a=i.makeCalcdata(r,"x"),s=n.makeCalcdata(r,"y"),l=Hke(r,n,"y",s),u=!!r.yperiodalignment,c="y"):(a=n.makeCalcdata(r,"y"),s=i.makeCalcdata(r,"x"),l=Hke(r,i,"x",s),u=!!r.xperiodalignment,c="x"),o=l.vals;var p=Math.min(o.length,a.length),d=new Array(p);for(r._base=[],f=0;f{"use strict";var Wke=Ib().setGroupPositions;Yke.exports=function(t,r){var i=t._fullLayout,n=t._fullData,a=t.calcdata,o=r.xaxis,s=r.yaxis,l=[],u=[],c=[],f,h;for(h=0;h{"use strict";var FP=gi(),l2=it(),Zke=en(),s2=(ta(),Pt(ra)).BADNUM,GVt=Wb(),HVt=af().clearMinTextSize;Jke.exports=function(t,r,i,n){var a=t._fullLayout;HVt("funnel",a),jVt(t,r,i,n),$Vt(t,r,i,n),GVt.plot(t,r,i,n,{mode:a.funnelmode,norm:a.funnelmode,gap:a.funnelgap,groupgap:a.funnelgroupgap})};function jVt(e,t,r,i){var n=t.xaxis,a=t.yaxis;l2.makeTraceGroups(i,r,"trace bars").each(function(o){var s=FP.select(this),l=o[0].trace,u=l2.ensureSingle(s,"g","regions");if(!l.connector||!l.connector.visible){u.remove();return}var c=l.orientation==="h",f=u.selectAll("g.region").data(l2.identity);f.enter().append("g").classed("region",!0),f.exit().remove();var h=f.size();f.each(function(p,d){if(!(d!==h-1&&!p.cNext)){var v=Kke(p,n,a,c),m=v[0],g=v[1],w="";m[0]!==s2&&g[0]!==s2&&m[1]!==s2&&g[1]!==s2&&m[2]!==s2&&g[2]!==s2&&m[3]!==s2&&g[3]!==s2&&(c?w+="M"+m[0]+","+g[1]+"L"+m[2]+","+g[2]+"H"+m[3]+"L"+m[1]+","+g[1]+"Z":w+="M"+m[1]+","+g[1]+"L"+m[2]+","+g[3]+"V"+g[2]+"L"+m[1]+","+g[0]+"Z"),w===""&&(w="M0,0Z"),l2.ensureSingle(FP.select(this),"path").attr("d",w).call(Zke.setClipUrl,t.layerClipId,e)}})})}function $Vt(e,t,r,i){var n=t.xaxis,a=t.yaxis;l2.makeTraceGroups(i,r,"trace bars").each(function(o){var s=FP.select(this),l=o[0].trace,u=l2.ensureSingle(s,"g","lines");if(!l.connector||!l.connector.visible||!l.connector.line.width){u.remove();return}var c=l.orientation==="h",f=u.selectAll("g.line").data(l2.identity);f.enter().append("g").classed("line",!0),f.exit().remove();var h=f.size();f.each(function(p,d){if(!(d!==h-1&&!p.cNext)){var v=Kke(p,n,a,c),m=v[0],g=v[1],w="";m[3]!==void 0&&g[3]!==void 0&&(c?(w+="M"+m[0]+","+g[1]+"L"+m[2]+","+g[2],w+="M"+m[1]+","+g[1]+"L"+m[3]+","+g[2]):(w+="M"+m[1]+","+g[1]+"L"+m[2]+","+g[3],w+="M"+m[1]+","+g[0]+"L"+m[2]+","+g[2])),w===""&&(w="M0,0Z"),l2.ensureSingle(FP.select(this),"path").attr("d",w).call(Zke.setClipUrl,t.layerClipId,e)}})})}function Kke(e,t,r,i){var n=[],a=[],o=i?t:r,s=i?r:t;return n[0]=o.c2p(e.s0,!0),a[0]=s.c2p(e.p0,!0),n[1]=o.c2p(e.s1,!0),a[1]=s.c2p(e.p1,!0),n[2]=o.c2p(e.nextS0,!0),a[2]=s.c2p(e.nextP0,!0),n[3]=o.c2p(e.nextS1,!0),a[3]=s.c2p(e.nextP1,!0),i?[n,a]:[a,n]}});var rCe=W((sjr,tCe)=>{"use strict";var vS=gi(),eCe=en(),lX=ai(),WVt=(qg(),Pt(Bg)).DESELECTDIM,YVt=Rd(),XVt=af().resizeText,ZVt=YVt.styleTextPoints;function KVt(e,t,r){var i=r||vS.select(e).selectAll('g[class^="funnellayer"]').selectAll("g.trace");XVt(e,i,"funnel"),i.style("opacity",function(n){return n[0].trace.opacity}),i.each(function(n){var a=vS.select(this),o=n[0].trace;a.selectAll(".point > path").each(function(s){if(!s.isBlank){var l=o.marker;vS.select(this).call(lX.fill,s.mc||l.color).call(lX.stroke,s.mlc||l.line.color).call(eCe.dashLine,l.line.dash,s.mlw||l.line.width).style("opacity",o.selectedpoints&&!s.selected?WVt:1)}}),ZVt(a,o,e),a.selectAll(".regions").each(function(){vS.select(this).selectAll("path").style("stroke-width",0).call(lX.fill,o.connector.fillcolor)}),a.selectAll(".lines").each(function(){var s=o.connector.line;eCe.lineGroupStyle(vS.select(this).selectAll("path"),s.width,s.color,s.dash)})})}tCe.exports={style:KVt}});var aCe=W((ljr,nCe)=>{"use strict";var iCe=ai().opacity,JVt=_5().hoverOnBars,uX=it().formatPercent;nCe.exports=function(t,r,i,n,a){var o=JVt(t,r,i,n,a);if(o){var s=o.cd,l=s[0].trace,u=l.orientation==="h",c=o.index,f=s[c],h=u?"x":"y";o[h+"LabelVal"]=f.s,o.percentInitial=f.begR,o.percentInitialLabel=uX(f.begR,1),o.percentPrevious=f.difR,o.percentPreviousLabel=uX(f.difR,1),o.percentTotal=f.sumR,o.percentTotalLabel=uX(f.sumR,1);var p=f.hi||l.hoverinfo,d=[];if(p&&p!=="none"&&p!=="skip"){var v=p==="all",m=p.split("+"),g=function(w){return v||m.indexOf(w)!==-1};g("percent initial")&&d.push(o.percentInitialLabel+" of initial"),g("percent previous")&&d.push(o.percentPreviousLabel+" of previous"),g("percent total")&&d.push(o.percentTotalLabel+" of total")}return o.extraText=d.join("
"),o.color=QVt(l,f),[o]}};function QVt(e,t){var r=e.marker,i=t.mc||r.color,n=t.mlc||r.line.color,a=t.mlw||r.line.width;if(iCe(i))return i;if(iCe(n)&&a)return n}});var sCe=W((ujr,oCe)=>{"use strict";oCe.exports=function(t,r){return t.x="xVal"in r?r.xVal:r.x,t.y="yVal"in r?r.yVal:r.y,"percentInitial"in r&&(t.percentInitial=r.percentInitial),"percentPrevious"in r&&(t.percentPrevious=r.percentPrevious),"percentTotal"in r&&(t.percentTotal=r.percentTotal),r.xa&&(t.xaxis=r.xa),r.ya&&(t.yaxis=r.ya),t}});var uCe=W((cjr,lCe)=>{"use strict";lCe.exports={attributes:iX(),layoutAttributes:nX(),supplyDefaults:oX().supplyDefaults,crossTraceDefaults:oX().crossTraceDefaults,supplyLayoutDefaults:Nke(),calc:$ke(),crossTraceCalc:Xke(),plot:Qke(),style:rCe().style,hoverPoints:aCe(),eventData:sCe(),selectPoints:w5(),moduleType:"trace",name:"funnel",basePlotModule:vl(),categories:["bar-like","cartesian","svg","oriented","showLegend","zoomScale"],meta:{}}});var fCe=W((fjr,cCe)=>{"use strict";cCe.exports=uCe()});var hCe={};Kn(hCe,{eventDataKeys:()=>eGt});var eGt,dCe=Ci(()=>{"use strict";eGt=["initial","delta","final"]});var hX=W((hjr,mCe)=>{"use strict";var Xo=F1(),cX=Hs().line,tGt=Ka(),pCe=ws().axisHoverFormat,{hovertemplateAttrs:rGt,texttemplateAttrs:iGt,templatefallbackAttrs:vCe}=$a(),gCe=(dCe(),Pt(hCe)),N5=nn().extendFlat,nGt=ai();function fX(e){return{marker:{color:N5({},Xo.marker.color,{arrayOk:!1,editType:"style"}),line:{color:N5({},Xo.marker.line.color,{arrayOk:!1,editType:"style"}),width:N5({},Xo.marker.line.width,{arrayOk:!1,editType:"style"}),editType:"style"},editType:"style"},editType:"style"}}mCe.exports={measure:{valType:"data_array",dflt:[],editType:"calc"},base:{valType:"number",dflt:null,arrayOk:!1,editType:"calc"},x:Xo.x,x0:Xo.x0,dx:Xo.dx,y:Xo.y,y0:Xo.y0,dy:Xo.dy,xperiod:Xo.xperiod,yperiod:Xo.yperiod,xperiod0:Xo.xperiod0,yperiod0:Xo.yperiod0,xperiodalignment:Xo.xperiodalignment,yperiodalignment:Xo.yperiodalignment,xhoverformat:pCe("x"),yhoverformat:pCe("y"),hovertext:Xo.hovertext,hovertemplate:rGt({},{keys:gCe.eventDataKeys}),hovertemplatefallback:vCe(),hoverinfo:N5({},tGt.hoverinfo,{flags:["name","x","y","text","initial","delta","final"]}),textinfo:{valType:"flaglist",flags:["label","text","initial","delta","final"],extras:["none"],editType:"plot",arrayOk:!1},texttemplate:iGt({editType:"plot"},{keys:gCe.eventDataKeys.concat(["label"])}),texttemplatefallback:vCe({editType:"plot"}),text:Xo.text,textposition:Xo.textposition,insidetextanchor:Xo.insidetextanchor,textangle:Xo.textangle,textfont:Xo.textfont,insidetextfont:Xo.insidetextfont,outsidetextfont:Xo.outsidetextfont,constraintext:Xo.constraintext,cliponaxis:Xo.cliponaxis,orientation:Xo.orientation,offset:Xo.offset,width:Xo.width,increasing:fX("increasing"),decreasing:fX("decreasing"),totals:fX("intermediate sums and total"),connector:{line:{color:N5({},cX.color,{dflt:nGt.defaultLine}),width:N5({},cX.width,{editType:"plot"}),dash:cX.dash,editType:"plot"},mode:{valType:"enumerated",values:["spanning","between"],dflt:"between",editType:"plot"},visible:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},offsetgroup:Xo.offsetgroup,alignmentgroup:Xo.alignmentgroup,zorder:Xo.zorder}});var dX=W((djr,yCe)=>{"use strict";yCe.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"}}});var U5={};Kn(U5,{DECREASING:()=>oGt,INCREASING:()=>aGt});var aGt,oGt,V5=Ci(()=>{"use strict";aGt={COLOR:"#3D9970",SYMBOL:"\u25B2"},oGt={COLOR:"#FF4136",SYMBOL:"\u25BC"}});var vX=W((pjr,wCe)=>{"use strict";var xCe=it(),sGt=Pb(),lGt=L0().handleText,uGt=Lb(),cGt=Zp(),bCe=hX(),fGt=ai(),_Ce=(V5(),Pt(U5)),hGt=_Ce.INCREASING.COLOR,dGt=_Ce.DECREASING.COLOR,pGt="#4499FF";function pX(e,t,r){e(t+".marker.color",r),e(t+".marker.line.color",fGt.defaultLine),e(t+".marker.line.width")}function vGt(e,t,r,i){function n(u,c){return xCe.coerce(e,t,bCe,u,c)}var a=uGt(e,t,i,n);if(!a){t.visible=!1;return}cGt(e,t,i,n),n("xhoverformat"),n("yhoverformat"),n("measure"),n("orientation",t.x&&!t.y?"h":"v"),n("base"),n("offset"),n("width"),n("text"),n("hovertext"),n("hovertemplate"),n("hovertemplatefallback");var o=n("textposition");lGt(e,t,i,n,o,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),t.textposition!=="none"&&(n("texttemplate"),n("texttemplatefallback"),t.texttemplate||n("textinfo")),pX(n,"increasing",hGt),pX(n,"decreasing",dGt),pX(n,"totals",pGt);var s=n("connector.visible");if(s){n("connector.mode");var l=n("connector.line.width");l&&(n("connector.line.color"),n("connector.line.dash"))}n("zorder")}function gGt(e,t){var r,i;function n(o){return xCe.coerce(i._input,i,bCe,o)}if(t.waterfallmode==="group")for(var a=0;a{"use strict";var mGt=it(),yGt=dX();TCe.exports=function(e,t,r){var i=!1;function n(s,l){return mGt.coerce(e,t,yGt,s,l)}for(var a=0;a{"use strict";var MCe=Wi(),SCe=Qp(),ECe=it().mergeArray,xGt=E0(),kCe=(ta(),Pt(ra)).BADNUM;function gX(e){return e==="a"||e==="absolute"}function mX(e){return e==="t"||e==="total"}CCe.exports=function(t,r){var i=MCe.getFromId(t,r.xaxis||"x"),n=MCe.getFromId(t,r.yaxis||"y"),a,o,s,l,u,c;r.orientation==="h"?(a=i.makeCalcdata(r,"x"),s=n.makeCalcdata(r,"y"),l=SCe(r,n,"y",s),u=!!r.yperiodalignment,c="y"):(a=n.makeCalcdata(r,"y"),s=i.makeCalcdata(r,"x"),l=SCe(r,i,"x",s),u=!!r.xperiodalignment,c="x"),o=l.vals;for(var f=Math.min(o.length,a.length),h=new Array(f),p=0,d,v=!1,m=0;m{"use strict";var FCe=Ib().setGroupPositions;LCe.exports=function(t,r){var i=t._fullLayout,n=t._fullData,a=t.calcdata,o=r.xaxis,s=r.yaxis,l=[],u=[],c=[],f,h;for(h=0;h{"use strict";var ICe=gi(),LP=it(),bGt=en(),G5=(ta(),Pt(ra)).BADNUM,_Gt=Wb(),wGt=af().clearMinTextSize;RCe.exports=function(t,r,i,n){var a=t._fullLayout;wGt("waterfall",a),_Gt.plot(t,r,i,n,{mode:a.waterfallmode,norm:a.waterfallmode,gap:a.waterfallgap,groupgap:a.waterfallgroupgap}),TGt(t,r,i,n)};function TGt(e,t,r,i){var n=t.xaxis,a=t.yaxis;LP.makeTraceGroups(i,r,"trace bars").each(function(o){var s=ICe.select(this),l=o[0].trace,u=LP.ensureSingle(s,"g","lines");if(!l.connector||!l.connector.visible){u.remove();return}var c=l.orientation==="h",f=l.connector.mode,h=u.selectAll("g.line").data(LP.identity);h.enter().append("g").classed("line",!0),h.exit().remove();var p=h.size();h.each(function(d,v){if(!(v!==p-1&&!d.cNext)){var m=AGt(d,n,a,c),g=m[0],w=m[1],_="";g[0]!==G5&&w[0]!==G5&&g[1]!==G5&&w[1]!==G5&&(f==="spanning"&&!d.isSum&&v>0&&(c?_+="M"+g[0]+","+w[1]+"V"+w[0]:_+="M"+g[1]+","+w[0]+"H"+g[0]),f!=="between"&&(d.isSum||v{"use strict";var PP=gi(),BCe=en(),qCe=ai(),MGt=(qg(),Pt(Bg)).DESELECTDIM,SGt=Rd(),EGt=af().resizeText,kGt=SGt.styleTextPoints;function CGt(e,t,r){var i=r||PP.select(e).selectAll('g[class^="waterfalllayer"]').selectAll("g.trace");EGt(e,i,"waterfall"),i.style("opacity",function(n){return n[0].trace.opacity}),i.each(function(n){var a=PP.select(this),o=n[0].trace;a.selectAll(".point > path").each(function(s){if(!s.isBlank){var l=o[s.dir].marker;PP.select(this).call(qCe.fill,l.color).call(qCe.stroke,l.line.color).call(BCe.dashLine,l.line.dash,l.line.width).style("opacity",o.selectedpoints&&!s.selected?MGt:1)}}),kGt(a,o,e),a.selectAll(".lines").each(function(){var s=o.connector.line;BCe.lineGroupStyle(PP.select(this).selectAll("path"),s.width,s.color,s.dash)})})}OCe.exports={style:CGt}});var jCe=W((bjr,HCe)=>{"use strict";var DGt=Wi().hoverLabelText,UCe=ai().opacity,FGt=_5().hoverOnBars,VCe=(V5(),Pt(U5)),GCe={increasing:VCe.INCREASING.SYMBOL,decreasing:VCe.DECREASING.SYMBOL};HCe.exports=function(t,r,i,n,a){var o=FGt(t,r,i,n,a);if(!o)return;var s=o.cd,l=s[0].trace,u=l.orientation==="h",c=u?"x":"y",f=u?t.xa:t.ya;function h(x){return DGt(f,x,l[c+"hoverformat"])}var p=o.index,d=s[p],v=d.isSum?d.b+d.s:d.rawS;o.initial=d.b+d.s-v,o.delta=v,o.final=o.initial+o.delta;var m=h(Math.abs(o.delta));o.deltaLabel=v<0?"("+m+")":m,o.finalLabel=h(o.final),o.initialLabel=h(o.initial);var g=d.hi||l.hoverinfo,w=[];if(g&&g!=="none"&&g!=="skip"){var _=g==="all",b=g.split("+"),S=function(x){return _||b.indexOf(x)!==-1};d.isSum||(S("final")&&(u?!S("x"):!S("y"))&&w.push(o.finalLabel),S("delta")&&(v<0?w.push(o.deltaLabel+" "+GCe.decreasing):w.push(o.deltaLabel+" "+GCe.increasing)),S("initial")&&w.push("Initial: "+o.initialLabel))}return w.length&&(o.extraText=w.join("
")),o.color=LGt(l,d),[o]};function LGt(e,t){var r=e[t.dir].marker,i=r.color,n=r.line.color,a=r.line.width;if(UCe(i))return i;if(UCe(n)&&a)return n}});var WCe=W((_jr,$Ce)=>{"use strict";$Ce.exports=function(t,r){return t.x="xVal"in r?r.xVal:r.x,t.y="yVal"in r?r.yVal:r.y,"initial"in r&&(t.initial=r.initial),"delta"in r&&(t.delta=r.delta),"final"in r&&(t.final=r.final),r.xa&&(t.xaxis=r.xa),r.ya&&(t.yaxis=r.ya),t}});var XCe=W((wjr,YCe)=>{"use strict";YCe.exports={attributes:hX(),layoutAttributes:dX(),supplyDefaults:vX().supplyDefaults,crossTraceDefaults:vX().crossTraceDefaults,supplyLayoutDefaults:ACe(),calc:DCe(),crossTraceCalc:PCe(),plot:zCe(),style:NCe().style,hoverPoints:jCe(),eventData:WCe(),selectPoints:w5(),moduleType:"trace",name:"waterfall",basePlotModule:vl(),categories:["bar-like","cartesian","svg","oriented","showLegend","zoomScale"],meta:{}}});var KCe=W((Tjr,ZCe)=>{"use strict";ZCe.exports=XCe()});var gS={};Kn(gS,{colormodel:()=>yX});var yX,H5=Ci(()=>{"use strict";yX={rgb:{min:[0,0,0],max:[255,255,255],fmt:e=>e.slice(0,3),suffix:["","",""]},rgba:{min:[0,0,0,0],max:[255,255,255,1],fmt:e=>e.slice(0,4),suffix:["","","",""]},rgba256:{colormodel:"rgba",zminDflt:[0,0,0,0],zmaxDflt:[255,255,255,255],min:[0,0,0,0],max:[255,255,255,1],fmt:e=>e.slice(0,4),suffix:["","","",""]},hsl:{min:[0,0,0],max:[360,100,100],fmt:e=>{let t=e.slice(0,3);return t[1]=t[1]+"%",t[2]=t[2]+"%",t},suffix:["\xB0","%","%"]},hsla:{min:[0,0,0,0],max:[360,100,100,1],fmt:e=>{let t=e.slice(0,4);return t[1]=t[1]+"%",t[2]=t[2]+"%",t},suffix:["\xB0","%","%",""]}}});var xX={};Kn(xX,{default:()=>IGt});var JCe,QCe,IP,e8e,t8e,r8e,i8e,PGt,IGt,bX=Ci(()=>{"use strict";JCe=i1(nn()),QCe=i1(Ka()),IP=i1($a()),e8e=i1(Hs());H5();t8e=["rgb","rgba","rgba256","hsl","hsla"],r8e=[],i8e=[];for(let e of t8e){let t=yX[e];r8e.push(`For the \`${e}\` colormodel, it is [${(t.zminDflt||t.min).join(", ")}].`),i8e.push(`For the \`${e}\` colormodel, it is [${(t.zmaxDflt||t.max).join(", ")}].`)}PGt={source:{valType:"string",editType:"calc",description:["Specifies the data URI of the image to be visualized.",'The URI consists of "data:image/[][;base64\\\\],"'].join(" ")},z:{valType:"data_array",editType:"calc",description:["A 2-dimensional array in which each element is an array of 3 or 4 numbers representing a color."].join(" ")},colormodel:{valType:"enumerated",values:t8e,editType:"calc",description:["Color model used to map the numerical color components described in `z` into colors.","If `source` is specified, this attribute will be set to `rgba256`","otherwise it defaults to `rgb`."].join(" ")},zsmooth:{valType:"enumerated",values:["fast",!1],dflt:!1,editType:"plot",description:["Picks a smoothing algorithm used to smooth `z` data.","This only applies for image traces that use the `source` attribute."].join(" ")},zmin:{valType:"info_array",items:[{valType:"number",editType:"calc"},{valType:"number",editType:"calc"},{valType:"number",editType:"calc"},{valType:"number",editType:"calc"}],editType:"calc",description:["Array defining the lower bound for each color component.","Note that the default value will depend on the colormodel.",r8e.join(" ")].join(" ")},zmax:{valType:"info_array",items:[{valType:"number",editType:"calc"},{valType:"number",editType:"calc"},{valType:"number",editType:"calc"},{valType:"number",editType:"calc"}],editType:"calc",description:["Array defining the higher bound for each color component.","Note that the default value will depend on the colormodel.",i8e.join(" ")].join(" ")},x0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",description:["Set the image's x position. The left edge of the image","(or the right edge if the x axis is reversed or dx is negative)","will be found at xmin=x0-dx/2"].join(" ")},y0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",description:["Set the image's y position. The top edge of the image","(or the bottom edge if the y axis is NOT reversed or if dy is negative)","will be found at ymin=y0-dy/2. By default when an image trace is","included, the y axis will be reversed so that the image is right-side-up,","but you can disable this by setting yaxis.autorange=true or by providing","an explicit y axis range."].join(" ")},dx:{valType:"number",dflt:1,editType:"calc",description:"Set the pixel's horizontal size."},dy:{valType:"number",dflt:1,editType:"calc",description:"Set the pixel's vertical size"},text:{valType:"data_array",editType:"plot",description:"Sets the text elements associated with each z value."},hovertext:{valType:"data_array",editType:"plot",description:"Same as `text`."},hoverinfo:(0,JCe.extendFlat)({},QCe.default.hoverinfo,{flags:["x","y","z","color","name","text"],dflt:"x+y+z+text+name"}),hovertemplate:(0,IP.hovertemplateAttrs)({},{keys:["z","color","colormodel"]}),hovertemplatefallback:(0,IP.templatefallbackAttrs)(),zorder:e8e.zorder},IGt=PGt});var o8e=W((Mjr,a8e)=>{"use strict";var RGt=it(),zGt=(bX(),Pt(xX)).default,n8e=(H5(),Pt(gS)),BGt=Zg().IMAGE_URL_PREFIX;a8e.exports=function(t,r){function i(o,s){return RGt.coerce(t,r,zGt,o,s)}i("source"),r.source&&!r.source.match(BGt)&&delete r.source,r._hasSource=!!r.source;var n=i("z");if(r._hasZ=!(n===void 0||!n.length||!n[0]||!n[0].length),!r._hasZ&&!r._hasSource){r.visible=!1;return}i("x0"),i("y0"),i("dx"),i("dy");var a;r._hasZ?(i("colormodel","rgb"),a=n8e.colormodel[r.colormodel],i("zmin",a.zminDflt||a.min),i("zmax",a.zmaxDflt||a.max)):r._hasSource&&(r.colormodel="rgba256",a=n8e.colormodel[r.colormodel],r.zmin=a.zminDflt,r.zmax=a.zmaxDflt),i("zsmooth"),i("text"),i("hovertext"),i("hovertemplate"),i("hovertemplatefallback"),r._length=null,i("zorder")}});var sm=W((Sjr,_X)=>{typeof Object.create=="function"?_X.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:_X.exports=function(t,r){if(r){t.super_=r;var i=function(){};i.prototype=r.prototype,t.prototype=new i,t.prototype.constructor=t}}});var wX=W((Ejr,s8e)=>{s8e.exports=rb().EventEmitter});var c8e=W(RP=>{"use strict";RP.byteLength=OGt;RP.toByteArray=UGt;RP.fromByteArray=HGt;var B1=[],Vd=[],qGt=typeof Uint8Array!="undefined"?Uint8Array:Array,TX="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(Qb=0,l8e=TX.length;Qb0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");r===-1&&(r=t);var i=r===t?0:4-r%4;return[r,i]}function OGt(e){var t=u8e(e),r=t[0],i=t[1];return(r+i)*3/4-i}function NGt(e,t,r){return(t+r)*3/4-r}function UGt(e){var t,r=u8e(e),i=r[0],n=r[1],a=new qGt(NGt(e,i,n)),o=0,s=n>0?i-4:i,l;for(l=0;l>16&255,a[o++]=t>>8&255,a[o++]=t&255;return n===2&&(t=Vd[e.charCodeAt(l)]<<2|Vd[e.charCodeAt(l+1)]>>4,a[o++]=t&255),n===1&&(t=Vd[e.charCodeAt(l)]<<10|Vd[e.charCodeAt(l+1)]<<4|Vd[e.charCodeAt(l+2)]>>2,a[o++]=t>>8&255,a[o++]=t&255),a}function VGt(e){return B1[e>>18&63]+B1[e>>12&63]+B1[e>>6&63]+B1[e&63]}function GGt(e,t,r){for(var i,n=[],a=t;as?s:o+a));return i===1?(t=e[r-1],n.push(B1[t>>2]+B1[t<<4&63]+"==")):i===2&&(t=(e[r-2]<<8)+e[r-1],n.push(B1[t>>10]+B1[t>>4&63]+B1[t<<2&63]+"=")),n.join("")}});var f8e=W(AX=>{AX.read=function(e,t,r,i,n){var a,o,s=n*8-i-1,l=(1<>1,c=-7,f=r?n-1:0,h=r?-1:1,p=e[t+f];for(f+=h,a=p&(1<<-c)-1,p>>=-c,c+=s;c>0;a=a*256+e[t+f],f+=h,c-=8);for(o=a&(1<<-c)-1,a>>=-c,c+=i;c>0;o=o*256+e[t+f],f+=h,c-=8);if(a===0)a=1-u;else{if(a===l)return o?NaN:(p?-1:1)*(1/0);o=o+Math.pow(2,i),a=a-u}return(p?-1:1)*o*Math.pow(2,a-i)};AX.write=function(e,t,r,i,n,a){var o,s,l,u=a*8-n-1,c=(1<>1,h=n===23?Math.pow(2,-24)-Math.pow(2,-77):0,p=i?0:a-1,d=i?1:-1,v=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,o=c):(o=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-o))<1&&(o--,l*=2),o+f>=1?t+=h/l:t+=h*Math.pow(2,1-f),t*l>=2&&(o++,l/=2),o+f>=c?(s=0,o=c):o+f>=1?(s=(t*l-1)*Math.pow(2,n),o=o+f):(s=t*Math.pow(2,f-1)*Math.pow(2,n),o=0));n>=8;e[r+p]=s&255,p+=d,s/=256,n-=8);for(o=o<0;e[r+p]=o&255,p+=d,o/=256,u-=8);e[r+p-d]|=v*128}});var t_=W(Y5=>{"use strict";var MX=c8e(),$5=f8e(),h8e=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;Y5.Buffer=Nr;Y5.SlowBuffer=ZGt;Y5.INSPECT_MAX_BYTES=50;var zP=2147483647;Y5.kMaxLength=zP;Nr.TYPED_ARRAY_SUPPORT=jGt();!Nr.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&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 jGt(){try{let e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),e.foo()===42}catch(e){return!1}}Object.defineProperty(Nr.prototype,"parent",{enumerable:!0,get:function(){if(Nr.isBuffer(this))return this.buffer}});Object.defineProperty(Nr.prototype,"offset",{enumerable:!0,get:function(){if(Nr.isBuffer(this))return this.byteOffset}});function lm(e){if(e>zP)throw new RangeError('The value "'+e+'" is invalid for option "size"');let t=new Uint8Array(e);return Object.setPrototypeOf(t,Nr.prototype),t}function Nr(e,t,r){if(typeof e=="number"){if(typeof t=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return CX(e)}return g8e(e,t,r)}Nr.poolSize=8192;function g8e(e,t,r){if(typeof e=="string")return WGt(e,t);if(ArrayBuffer.isView(e))return YGt(e);if(e==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(q1(e,ArrayBuffer)||e&&q1(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(q1(e,SharedArrayBuffer)||e&&q1(e.buffer,SharedArrayBuffer)))return EX(e,t,r);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let i=e.valueOf&&e.valueOf();if(i!=null&&i!==e)return Nr.from(i,t,r);let n=XGt(e);if(n)return n;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return Nr.from(e[Symbol.toPrimitive]("string"),t,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}Nr.from=function(e,t,r){return g8e(e,t,r)};Object.setPrototypeOf(Nr.prototype,Uint8Array.prototype);Object.setPrototypeOf(Nr,Uint8Array);function m8e(e){if(typeof e!="number")throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function $Gt(e,t,r){return m8e(e),e<=0?lm(e):t!==void 0?typeof r=="string"?lm(e).fill(t,r):lm(e).fill(t):lm(e)}Nr.alloc=function(e,t,r){return $Gt(e,t,r)};function CX(e){return m8e(e),lm(e<0?0:DX(e)|0)}Nr.allocUnsafe=function(e){return CX(e)};Nr.allocUnsafeSlow=function(e){return CX(e)};function WGt(e,t){if((typeof t!="string"||t==="")&&(t="utf8"),!Nr.isEncoding(t))throw new TypeError("Unknown encoding: "+t);let r=y8e(e,t)|0,i=lm(r),n=i.write(e,t);return n!==r&&(i=i.slice(0,n)),i}function SX(e){let t=e.length<0?0:DX(e.length)|0,r=lm(t);for(let i=0;i=zP)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+zP.toString(16)+" bytes");return e|0}function ZGt(e){return+e!=e&&(e=0),Nr.alloc(+e)}Nr.isBuffer=function(t){return t!=null&&t._isBuffer===!0&&t!==Nr.prototype};Nr.compare=function(t,r){if(q1(t,Uint8Array)&&(t=Nr.from(t,t.offset,t.byteLength)),q1(r,Uint8Array)&&(r=Nr.from(r,r.offset,r.byteLength)),!Nr.isBuffer(t)||!Nr.isBuffer(r))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===r)return 0;let i=t.length,n=r.length;for(let a=0,o=Math.min(i,n);an.length?(Nr.isBuffer(o)||(o=Nr.from(o)),o.copy(n,a)):Uint8Array.prototype.set.call(n,o,a);else if(Nr.isBuffer(o))o.copy(n,a);else throw new TypeError('"list" argument must be an Array of Buffers');a+=o.length}return n};function y8e(e,t){if(Nr.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||q1(e,ArrayBuffer))return e.byteLength;if(typeof e!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);let r=e.length,i=arguments.length>2&&arguments[2]===!0;if(!i&&r===0)return 0;let n=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return kX(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return E8e(e).length;default:if(n)return i?-1:kX(e).length;t=(""+t).toLowerCase(),n=!0}}Nr.byteLength=y8e;function KGt(e,t,r){let i=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((r===void 0||r>this.length)&&(r=this.length),r<=0)||(r>>>=0,t>>>=0,r<=t))return"";for(e||(e="utf8");;)switch(e){case"hex":return sHt(this,t,r);case"utf8":case"utf-8":return b8e(this,t,r);case"ascii":return aHt(this,t,r);case"latin1":case"binary":return oHt(this,t,r);case"base64":return iHt(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return lHt(this,t,r);default:if(i)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),i=!0}}Nr.prototype._isBuffer=!0;function e_(e,t,r){let i=e[t];e[t]=e[r],e[r]=i}Nr.prototype.swap16=function(){let t=this.length;if(t%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let r=0;rr&&(t+=" ... "),""};h8e&&(Nr.prototype[h8e]=Nr.prototype.inspect);Nr.prototype.compare=function(t,r,i,n,a){if(q1(t,Uint8Array)&&(t=Nr.from(t,t.offset,t.byteLength)),!Nr.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(r===void 0&&(r=0),i===void 0&&(i=t?t.length:0),n===void 0&&(n=0),a===void 0&&(a=this.length),r<0||i>t.length||n<0||a>this.length)throw new RangeError("out of range index");if(n>=a&&r>=i)return 0;if(n>=a)return-1;if(r>=i)return 1;if(r>>>=0,i>>>=0,n>>>=0,a>>>=0,this===t)return 0;let o=a-n,s=i-r,l=Math.min(o,s),u=this.slice(n,a),c=t.slice(r,i);for(let f=0;f2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,LX(r)&&(r=n?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(n)return-1;r=e.length-1}else if(r<0)if(n)r=0;else return-1;if(typeof t=="string"&&(t=Nr.from(t,i)),Nr.isBuffer(t))return t.length===0?-1:d8e(e,t,r,i,n);if(typeof t=="number")return t=t&255,typeof Uint8Array.prototype.indexOf=="function"?n?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):d8e(e,[t],r,i,n);throw new TypeError("val must be string, number or Buffer")}function d8e(e,t,r,i,n){let a=1,o=e.length,s=t.length;if(i!==void 0&&(i=String(i).toLowerCase(),i==="ucs2"||i==="ucs-2"||i==="utf16le"||i==="utf-16le")){if(e.length<2||t.length<2)return-1;a=2,o/=2,s/=2,r/=2}function l(c,f){return a===1?c[f]:c.readUInt16BE(f*a)}let u;if(n){let c=-1;for(u=r;uo&&(r=o-s),u=r;u>=0;u--){let c=!0;for(let f=0;fn&&(i=n)):i=n;let a=t.length;i>a/2&&(i=a/2);let o;for(o=0;o>>0,isFinite(i)?(i=i>>>0,n===void 0&&(n="utf8")):(n=i,i=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let a=this.length-r;if((i===void 0||i>a)&&(i=a),t.length>0&&(i<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");let o=!1;for(;;)switch(n){case"hex":return JGt(this,t,r,i);case"utf8":case"utf-8":return QGt(this,t,r,i);case"ascii":case"latin1":case"binary":return eHt(this,t,r,i);case"base64":return tHt(this,t,r,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return rHt(this,t,r,i);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}};Nr.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function iHt(e,t,r){return t===0&&r===e.length?MX.fromByteArray(e):MX.fromByteArray(e.slice(t,r))}function b8e(e,t,r){r=Math.min(e.length,r);let i=[],n=t;for(;n239?4:a>223?3:a>191?2:1;if(n+s<=r){let l,u,c,f;switch(s){case 1:a<128&&(o=a);break;case 2:l=e[n+1],(l&192)===128&&(f=(a&31)<<6|l&63,f>127&&(o=f));break;case 3:l=e[n+1],u=e[n+2],(l&192)===128&&(u&192)===128&&(f=(a&15)<<12|(l&63)<<6|u&63,f>2047&&(f<55296||f>57343)&&(o=f));break;case 4:l=e[n+1],u=e[n+2],c=e[n+3],(l&192)===128&&(u&192)===128&&(c&192)===128&&(f=(a&15)<<18|(l&63)<<12|(u&63)<<6|c&63,f>65535&&f<1114112&&(o=f))}}o===null?(o=65533,s=1):o>65535&&(o-=65536,i.push(o>>>10&1023|55296),o=56320|o&1023),i.push(o),n+=s}return nHt(i)}var p8e=4096;function nHt(e){let t=e.length;if(t<=p8e)return String.fromCharCode.apply(String,e);let r="",i=0;for(;ii)&&(r=i);let n="";for(let a=t;ai&&(t=i),r<0?(r+=i,r<0&&(r=0)):r>i&&(r=i),rr)throw new RangeError("Trying to access beyond buffer length")}Nr.prototype.readUintLE=Nr.prototype.readUIntLE=function(t,r,i){t=t>>>0,r=r>>>0,i||Dc(t,r,this.length);let n=this[t],a=1,o=0;for(;++o>>0,r=r>>>0,i||Dc(t,r,this.length);let n=this[t+--r],a=1;for(;r>0&&(a*=256);)n+=this[t+--r]*a;return n};Nr.prototype.readUint8=Nr.prototype.readUInt8=function(t,r){return t=t>>>0,r||Dc(t,1,this.length),this[t]};Nr.prototype.readUint16LE=Nr.prototype.readUInt16LE=function(t,r){return t=t>>>0,r||Dc(t,2,this.length),this[t]|this[t+1]<<8};Nr.prototype.readUint16BE=Nr.prototype.readUInt16BE=function(t,r){return t=t>>>0,r||Dc(t,2,this.length),this[t]<<8|this[t+1]};Nr.prototype.readUint32LE=Nr.prototype.readUInt32LE=function(t,r){return t=t>>>0,r||Dc(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+this[t+3]*16777216};Nr.prototype.readUint32BE=Nr.prototype.readUInt32BE=function(t,r){return t=t>>>0,r||Dc(t,4,this.length),this[t]*16777216+(this[t+1]<<16|this[t+2]<<8|this[t+3])};Nr.prototype.readBigUInt64LE=u2(function(t){t=t>>>0,W5(t,"offset");let r=this[t],i=this[t+7];(r===void 0||i===void 0)&&mS(t,this.length-8);let n=r+this[++t]*2**8+this[++t]*2**16+this[++t]*2**24,a=this[++t]+this[++t]*2**8+this[++t]*2**16+i*2**24;return BigInt(n)+(BigInt(a)<>>0,W5(t,"offset");let r=this[t],i=this[t+7];(r===void 0||i===void 0)&&mS(t,this.length-8);let n=r*2**24+this[++t]*2**16+this[++t]*2**8+this[++t],a=this[++t]*2**24+this[++t]*2**16+this[++t]*2**8+i;return(BigInt(n)<>>0,r=r>>>0,i||Dc(t,r,this.length);let n=this[t],a=1,o=0;for(;++o=a&&(n-=Math.pow(2,8*r)),n};Nr.prototype.readIntBE=function(t,r,i){t=t>>>0,r=r>>>0,i||Dc(t,r,this.length);let n=r,a=1,o=this[t+--n];for(;n>0&&(a*=256);)o+=this[t+--n]*a;return a*=128,o>=a&&(o-=Math.pow(2,8*r)),o};Nr.prototype.readInt8=function(t,r){return t=t>>>0,r||Dc(t,1,this.length),this[t]&128?(255-this[t]+1)*-1:this[t]};Nr.prototype.readInt16LE=function(t,r){t=t>>>0,r||Dc(t,2,this.length);let i=this[t]|this[t+1]<<8;return i&32768?i|4294901760:i};Nr.prototype.readInt16BE=function(t,r){t=t>>>0,r||Dc(t,2,this.length);let i=this[t+1]|this[t]<<8;return i&32768?i|4294901760:i};Nr.prototype.readInt32LE=function(t,r){return t=t>>>0,r||Dc(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24};Nr.prototype.readInt32BE=function(t,r){return t=t>>>0,r||Dc(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]};Nr.prototype.readBigInt64LE=u2(function(t){t=t>>>0,W5(t,"offset");let r=this[t],i=this[t+7];(r===void 0||i===void 0)&&mS(t,this.length-8);let n=this[t+4]+this[t+5]*2**8+this[t+6]*2**16+(i<<24);return(BigInt(n)<>>0,W5(t,"offset");let r=this[t],i=this[t+7];(r===void 0||i===void 0)&&mS(t,this.length-8);let n=(r<<24)+this[++t]*2**16+this[++t]*2**8+this[++t];return(BigInt(n)<>>0,r||Dc(t,4,this.length),$5.read(this,t,!0,23,4)};Nr.prototype.readFloatBE=function(t,r){return t=t>>>0,r||Dc(t,4,this.length),$5.read(this,t,!1,23,4)};Nr.prototype.readDoubleLE=function(t,r){return t=t>>>0,r||Dc(t,8,this.length),$5.read(this,t,!0,52,8)};Nr.prototype.readDoubleBE=function(t,r){return t=t>>>0,r||Dc(t,8,this.length),$5.read(this,t,!1,52,8)};function Wh(e,t,r,i,n,a){if(!Nr.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>n||te.length)throw new RangeError("Index out of range")}Nr.prototype.writeUintLE=Nr.prototype.writeUIntLE=function(t,r,i,n){if(t=+t,r=r>>>0,i=i>>>0,!n){let s=Math.pow(2,8*i)-1;Wh(this,t,r,i,s,0)}let a=1,o=0;for(this[r]=t&255;++o>>0,i=i>>>0,!n){let s=Math.pow(2,8*i)-1;Wh(this,t,r,i,s,0)}let a=i-1,o=1;for(this[r+a]=t&255;--a>=0&&(o*=256);)this[r+a]=t/o&255;return r+i};Nr.prototype.writeUint8=Nr.prototype.writeUInt8=function(t,r,i){return t=+t,r=r>>>0,i||Wh(this,t,r,1,255,0),this[r]=t&255,r+1};Nr.prototype.writeUint16LE=Nr.prototype.writeUInt16LE=function(t,r,i){return t=+t,r=r>>>0,i||Wh(this,t,r,2,65535,0),this[r]=t&255,this[r+1]=t>>>8,r+2};Nr.prototype.writeUint16BE=Nr.prototype.writeUInt16BE=function(t,r,i){return t=+t,r=r>>>0,i||Wh(this,t,r,2,65535,0),this[r]=t>>>8,this[r+1]=t&255,r+2};Nr.prototype.writeUint32LE=Nr.prototype.writeUInt32LE=function(t,r,i){return t=+t,r=r>>>0,i||Wh(this,t,r,4,4294967295,0),this[r+3]=t>>>24,this[r+2]=t>>>16,this[r+1]=t>>>8,this[r]=t&255,r+4};Nr.prototype.writeUint32BE=Nr.prototype.writeUInt32BE=function(t,r,i){return t=+t,r=r>>>0,i||Wh(this,t,r,4,4294967295,0),this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=t&255,r+4};function _8e(e,t,r,i,n){S8e(t,i,n,e,r,7);let a=Number(t&BigInt(4294967295));e[r++]=a,a=a>>8,e[r++]=a,a=a>>8,e[r++]=a,a=a>>8,e[r++]=a;let o=Number(t>>BigInt(32)&BigInt(4294967295));return e[r++]=o,o=o>>8,e[r++]=o,o=o>>8,e[r++]=o,o=o>>8,e[r++]=o,r}function w8e(e,t,r,i,n){S8e(t,i,n,e,r,7);let a=Number(t&BigInt(4294967295));e[r+7]=a,a=a>>8,e[r+6]=a,a=a>>8,e[r+5]=a,a=a>>8,e[r+4]=a;let o=Number(t>>BigInt(32)&BigInt(4294967295));return e[r+3]=o,o=o>>8,e[r+2]=o,o=o>>8,e[r+1]=o,o=o>>8,e[r]=o,r+8}Nr.prototype.writeBigUInt64LE=u2(function(t,r=0){return _8e(this,t,r,BigInt(0),BigInt("0xffffffffffffffff"))});Nr.prototype.writeBigUInt64BE=u2(function(t,r=0){return w8e(this,t,r,BigInt(0),BigInt("0xffffffffffffffff"))});Nr.prototype.writeIntLE=function(t,r,i,n){if(t=+t,r=r>>>0,!n){let l=Math.pow(2,8*i-1);Wh(this,t,r,i,l-1,-l)}let a=0,o=1,s=0;for(this[r]=t&255;++a>0)-s&255;return r+i};Nr.prototype.writeIntBE=function(t,r,i,n){if(t=+t,r=r>>>0,!n){let l=Math.pow(2,8*i-1);Wh(this,t,r,i,l-1,-l)}let a=i-1,o=1,s=0;for(this[r+a]=t&255;--a>=0&&(o*=256);)t<0&&s===0&&this[r+a+1]!==0&&(s=1),this[r+a]=(t/o>>0)-s&255;return r+i};Nr.prototype.writeInt8=function(t,r,i){return t=+t,r=r>>>0,i||Wh(this,t,r,1,127,-128),t<0&&(t=255+t+1),this[r]=t&255,r+1};Nr.prototype.writeInt16LE=function(t,r,i){return t=+t,r=r>>>0,i||Wh(this,t,r,2,32767,-32768),this[r]=t&255,this[r+1]=t>>>8,r+2};Nr.prototype.writeInt16BE=function(t,r,i){return t=+t,r=r>>>0,i||Wh(this,t,r,2,32767,-32768),this[r]=t>>>8,this[r+1]=t&255,r+2};Nr.prototype.writeInt32LE=function(t,r,i){return t=+t,r=r>>>0,i||Wh(this,t,r,4,2147483647,-2147483648),this[r]=t&255,this[r+1]=t>>>8,this[r+2]=t>>>16,this[r+3]=t>>>24,r+4};Nr.prototype.writeInt32BE=function(t,r,i){return t=+t,r=r>>>0,i||Wh(this,t,r,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=t&255,r+4};Nr.prototype.writeBigInt64LE=u2(function(t,r=0){return _8e(this,t,r,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});Nr.prototype.writeBigInt64BE=u2(function(t,r=0){return w8e(this,t,r,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function T8e(e,t,r,i,n,a){if(r+i>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function A8e(e,t,r,i,n){return t=+t,r=r>>>0,n||T8e(e,t,r,4,34028234663852886e22,-34028234663852886e22),$5.write(e,t,r,i,23,4),r+4}Nr.prototype.writeFloatLE=function(t,r,i){return A8e(this,t,r,!0,i)};Nr.prototype.writeFloatBE=function(t,r,i){return A8e(this,t,r,!1,i)};function M8e(e,t,r,i,n){return t=+t,r=r>>>0,n||T8e(e,t,r,8,17976931348623157e292,-17976931348623157e292),$5.write(e,t,r,i,52,8),r+8}Nr.prototype.writeDoubleLE=function(t,r,i){return M8e(this,t,r,!0,i)};Nr.prototype.writeDoubleBE=function(t,r,i){return M8e(this,t,r,!1,i)};Nr.prototype.copy=function(t,r,i,n){if(!Nr.isBuffer(t))throw new TypeError("argument should be a Buffer");if(i||(i=0),!n&&n!==0&&(n=this.length),r>=t.length&&(r=t.length),r||(r=0),n>0&&n=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-r>>0,i=i===void 0?this.length:i>>>0,t||(t=0);let a;if(typeof t=="number")for(a=r;a2**32?n=v8e(String(r)):typeof r=="bigint"&&(n=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(n=v8e(n)),n+="n"),i+=` It must be ${t}. Received ${n}`,i},RangeError);function v8e(e){let t="",r=e.length,i=e[0]==="-"?1:0;for(;r>=i+4;r-=3)t=`_${e.slice(r-3,r)}${t}`;return`${e.slice(0,r)}${t}`}function uHt(e,t,r){W5(t,"offset"),(e[t]===void 0||e[t+r]===void 0)&&mS(t,e.length-(r+1))}function S8e(e,t,r,i,n,a){if(e>r||e3?t===0||t===BigInt(0)?s=`>= 0${o} and < 2${o} ** ${(a+1)*8}${o}`:s=`>= -(2${o} ** ${(a+1)*8-1}${o}) and < 2 ** ${(a+1)*8-1}${o}`:s=`>= ${t}${o} and <= ${r}${o}`,new j5.ERR_OUT_OF_RANGE("value",s,e)}uHt(i,n,a)}function W5(e,t){if(typeof e!="number")throw new j5.ERR_INVALID_ARG_TYPE(t,"number",e)}function mS(e,t,r){throw Math.floor(e)!==e?(W5(e,r),new j5.ERR_OUT_OF_RANGE(r||"offset","an integer",e)):t<0?new j5.ERR_BUFFER_OUT_OF_BOUNDS:new j5.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${t}`,e)}var cHt=/[^+/0-9A-Za-z-_]/g;function fHt(e){if(e=e.split("=")[0],e=e.trim().replace(cHt,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function kX(e,t){t=t||1/0;let r,i=e.length,n=null,a=[];for(let o=0;o55295&&r<57344){if(!n){if(r>56319){(t-=3)>-1&&a.push(239,191,189);continue}else if(o+1===i){(t-=3)>-1&&a.push(239,191,189);continue}n=r;continue}if(r<56320){(t-=3)>-1&&a.push(239,191,189),n=r;continue}r=(n-55296<<10|r-56320)+65536}else n&&(t-=3)>-1&&a.push(239,191,189);if(n=null,r<128){if((t-=1)<0)break;a.push(r)}else if(r<2048){if((t-=2)<0)break;a.push(r>>6|192,r&63|128)}else if(r<65536){if((t-=3)<0)break;a.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((t-=4)<0)break;a.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return a}function hHt(e){let t=[];for(let r=0;r>8,n=r%256,a.push(n),a.push(i);return a}function E8e(e){return MX.toByteArray(fHt(e))}function BP(e,t,r,i){let n;for(n=0;n=t.length||n>=e.length);++n)t[n+r]=e[n];return n}function q1(e,t){return e instanceof t||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===t.name}function LX(e){return e!==e}var pHt=(function(){let e="0123456789abcdef",t=new Array(256);for(let r=0;r<16;++r){let i=r*16;for(let n=0;n<16;++n)t[i+n]=e[r]+e[n]}return t})();function u2(e){return typeof BigInt=="undefined"?vHt:e}function vHt(){throw new Error("BigInt not supported")}});var qP=W((Ljr,k8e)=>{"use strict";k8e.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},r=Symbol("test"),i=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(i)!=="[object Symbol]")return!1;var n=42;t[r]=n;for(var a 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 s=Object.getOwnPropertyDescriptor(t,r);if(s.value!==n||s.enumerable!==!0)return!1}return!0}});var yS=W((Pjr,C8e)=>{"use strict";var gHt=qP();C8e.exports=function(){return gHt()&&!!Symbol.toStringTag}});var OP=W((Ijr,D8e)=>{"use strict";D8e.exports=Object});var L8e=W((Rjr,F8e)=>{"use strict";F8e.exports=Error});var I8e=W((zjr,P8e)=>{"use strict";P8e.exports=EvalError});var z8e=W((Bjr,R8e)=>{"use strict";R8e.exports=RangeError});var q8e=W((qjr,B8e)=>{"use strict";B8e.exports=ReferenceError});var PX=W((Ojr,O8e)=>{"use strict";O8e.exports=SyntaxError});var X5=W((Njr,N8e)=>{"use strict";N8e.exports=TypeError});var V8e=W((Ujr,U8e)=>{"use strict";U8e.exports=URIError});var H8e=W((Vjr,G8e)=>{"use strict";G8e.exports=Math.abs});var $8e=W((Gjr,j8e)=>{"use strict";j8e.exports=Math.floor});var Y8e=W((Hjr,W8e)=>{"use strict";W8e.exports=Math.max});var Z8e=W((jjr,X8e)=>{"use strict";X8e.exports=Math.min});var J8e=W(($jr,K8e)=>{"use strict";K8e.exports=Math.pow});var eDe=W((Wjr,Q8e)=>{"use strict";Q8e.exports=Math.round});var rDe=W((Yjr,tDe)=>{"use strict";tDe.exports=Number.isNaN||function(t){return t!==t}});var nDe=W((Xjr,iDe)=>{"use strict";var mHt=rDe();iDe.exports=function(t){return mHt(t)||t===0?t:t<0?-1:1}});var oDe=W((Zjr,aDe)=>{"use strict";aDe.exports=Object.getOwnPropertyDescriptor});var r_=W((Kjr,sDe)=>{"use strict";var NP=oDe();if(NP)try{NP([],"length")}catch(e){NP=null}sDe.exports=NP});var xS=W((Jjr,lDe)=>{"use strict";var UP=Object.defineProperty||!1;if(UP)try{UP({},"a",{value:1})}catch(e){UP=!1}lDe.exports=UP});var fDe=W((Qjr,cDe)=>{"use strict";var uDe=typeof Symbol!="undefined"&&Symbol,yHt=qP();cDe.exports=function(){return typeof uDe!="function"||typeof Symbol!="function"||typeof uDe("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:yHt()}});var IX=W((e$r,hDe)=>{"use strict";hDe.exports=typeof Reflect!="undefined"&&Reflect.getPrototypeOf||null});var RX=W((t$r,dDe)=>{"use strict";var xHt=OP();dDe.exports=xHt.getPrototypeOf||null});var gDe=W((r$r,vDe)=>{"use strict";var bHt="Function.prototype.bind called on incompatible ",_Ht=Object.prototype.toString,wHt=Math.max,THt="[object Function]",pDe=function(t,r){for(var i=[],n=0;n{"use strict";var SHt=gDe();mDe.exports=Function.prototype.bind||SHt});var VP=W((n$r,yDe)=>{"use strict";yDe.exports=Function.prototype.call});var GP=W((a$r,xDe)=>{"use strict";xDe.exports=Function.prototype.apply});var _De=W((o$r,bDe)=>{"use strict";bDe.exports=typeof Reflect!="undefined"&&Reflect&&Reflect.apply});var zX=W((s$r,wDe)=>{"use strict";var EHt=Z5(),kHt=GP(),CHt=VP(),DHt=_De();wDe.exports=DHt||EHt.call(CHt,kHt)});var HP=W((l$r,TDe)=>{"use strict";var FHt=Z5(),LHt=X5(),PHt=VP(),IHt=zX();TDe.exports=function(t){if(t.length<1||typeof t[0]!="function")throw new LHt("a function is required");return IHt(FHt,PHt,t)}});var CDe=W((u$r,kDe)=>{"use strict";var RHt=HP(),ADe=r_(),SDe;try{SDe=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!="object"||!("code"in e)||e.code!=="ERR_PROTO_ACCESS")throw e}var BX=!!SDe&&ADe&&ADe(Object.prototype,"__proto__"),EDe=Object,MDe=EDe.getPrototypeOf;kDe.exports=BX&&typeof BX.get=="function"?RHt([BX.get]):typeof MDe=="function"?function(t){return MDe(t==null?t:EDe(t))}:!1});var jP=W((c$r,PDe)=>{"use strict";var DDe=IX(),FDe=RX(),LDe=CDe();PDe.exports=DDe?function(t){return DDe(t)}:FDe?function(t){if(!t||typeof t!="object"&&typeof t!="function")throw new TypeError("getProto: not an object");return FDe(t)}:LDe?function(t){return LDe(t)}:null});var qX=W((f$r,IDe)=>{"use strict";var zHt=Function.prototype.call,BHt=Object.prototype.hasOwnProperty,qHt=Z5();IDe.exports=qHt.call(zHt,BHt)});var YP=W((h$r,NDe)=>{"use strict";var no,OHt=OP(),NHt=L8e(),UHt=I8e(),VHt=z8e(),GHt=q8e(),e4=PX(),Q5=X5(),HHt=V8e(),jHt=H8e(),$Ht=$8e(),WHt=Y8e(),YHt=Z8e(),XHt=J8e(),ZHt=eDe(),KHt=nDe(),qDe=Function,OX=function(e){try{return qDe('"use strict"; return ('+e+").constructor;")()}catch(t){}},bS=r_(),JHt=xS(),NX=function(){throw new Q5},QHt=bS?(function(){try{return arguments.callee,NX}catch(e){try{return bS(arguments,"callee").get}catch(t){return NX}}})():NX,K5=fDe()(),Fc=jP(),ejt=RX(),tjt=IX(),ODe=GP(),_S=VP(),J5={},rjt=typeof Uint8Array=="undefined"||!Fc?no:Fc(Uint8Array),i_={__proto__:null,"%AggregateError%":typeof AggregateError=="undefined"?no:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?no:ArrayBuffer,"%ArrayIteratorPrototype%":K5&&Fc?Fc([][Symbol.iterator]()):no,"%AsyncFromSyncIteratorPrototype%":no,"%AsyncFunction%":J5,"%AsyncGenerator%":J5,"%AsyncGeneratorFunction%":J5,"%AsyncIteratorPrototype%":J5,"%Atomics%":typeof Atomics=="undefined"?no:Atomics,"%BigInt%":typeof BigInt=="undefined"?no:BigInt,"%BigInt64Array%":typeof BigInt64Array=="undefined"?no:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array=="undefined"?no:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView=="undefined"?no:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":NHt,"%eval%":eval,"%EvalError%":UHt,"%Float16Array%":typeof Float16Array=="undefined"?no:Float16Array,"%Float32Array%":typeof Float32Array=="undefined"?no:Float32Array,"%Float64Array%":typeof Float64Array=="undefined"?no:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry=="undefined"?no:FinalizationRegistry,"%Function%":qDe,"%GeneratorFunction%":J5,"%Int8Array%":typeof Int8Array=="undefined"?no:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?no:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?no:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":K5&&Fc?Fc(Fc([][Symbol.iterator]())):no,"%JSON%":typeof JSON=="object"?JSON:no,"%Map%":typeof Map=="undefined"?no:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!K5||!Fc?no:Fc(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":OHt,"%Object.getOwnPropertyDescriptor%":bS,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?no:Promise,"%Proxy%":typeof Proxy=="undefined"?no:Proxy,"%RangeError%":VHt,"%ReferenceError%":GHt,"%Reflect%":typeof Reflect=="undefined"?no:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set=="undefined"?no:Set,"%SetIteratorPrototype%":typeof Set=="undefined"||!K5||!Fc?no:Fc(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?no:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":K5&&Fc?Fc(""[Symbol.iterator]()):no,"%Symbol%":K5?Symbol:no,"%SyntaxError%":e4,"%ThrowTypeError%":QHt,"%TypedArray%":rjt,"%TypeError%":Q5,"%Uint8Array%":typeof Uint8Array=="undefined"?no:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray=="undefined"?no:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array=="undefined"?no:Uint16Array,"%Uint32Array%":typeof Uint32Array=="undefined"?no:Uint32Array,"%URIError%":HHt,"%WeakMap%":typeof WeakMap=="undefined"?no:WeakMap,"%WeakRef%":typeof WeakRef=="undefined"?no:WeakRef,"%WeakSet%":typeof WeakSet=="undefined"?no:WeakSet,"%Function.prototype.call%":_S,"%Function.prototype.apply%":ODe,"%Object.defineProperty%":JHt,"%Object.getPrototypeOf%":ejt,"%Math.abs%":jHt,"%Math.floor%":$Ht,"%Math.max%":WHt,"%Math.min%":YHt,"%Math.pow%":XHt,"%Math.round%":ZHt,"%Math.sign%":KHt,"%Reflect.getPrototypeOf%":tjt};if(Fc)try{null.error}catch(e){RDe=Fc(Fc(e)),i_["%Error.prototype%"]=RDe}var RDe,ijt=function e(t){var r;if(t==="%AsyncFunction%")r=OX("async function () {}");else if(t==="%GeneratorFunction%")r=OX("function* () {}");else if(t==="%AsyncGeneratorFunction%")r=OX("async function* () {}");else if(t==="%AsyncGenerator%"){var i=e("%AsyncGeneratorFunction%");i&&(r=i.prototype)}else if(t==="%AsyncIteratorPrototype%"){var n=e("%AsyncGenerator%");n&&Fc&&(r=Fc(n.prototype))}return i_[t]=r,r},zDe={__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"]},wS=Z5(),$P=qX(),njt=wS.call(_S,Array.prototype.concat),ajt=wS.call(ODe,Array.prototype.splice),BDe=wS.call(_S,String.prototype.replace),WP=wS.call(_S,String.prototype.slice),ojt=wS.call(_S,RegExp.prototype.exec),sjt=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,ljt=/\\(\\)?/g,ujt=function(t){var r=WP(t,0,1),i=WP(t,-1);if(r==="%"&&i!=="%")throw new e4("invalid intrinsic syntax, expected closing `%`");if(i==="%"&&r!=="%")throw new e4("invalid intrinsic syntax, expected opening `%`");var n=[];return BDe(t,sjt,function(a,o,s,l){n[n.length]=s?BDe(l,ljt,"$1"):o||a}),n},cjt=function(t,r){var i=t,n;if($P(zDe,i)&&(n=zDe[i],i="%"+n[0]+"%"),$P(i_,i)){var a=i_[i];if(a===J5&&(a=ijt(i)),typeof a=="undefined"&&!r)throw new Q5("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:n,name:i,value:a}}throw new e4("intrinsic "+t+" does not exist!")};NDe.exports=function(t,r){if(typeof t!="string"||t.length===0)throw new Q5("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new Q5('"allowMissing" argument must be a boolean');if(ojt(/^%?[^%]*%?$/,t)===null)throw new e4("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var i=ujt(t),n=i.length>0?i[0]:"",a=cjt("%"+n+"%",r),o=a.name,s=a.value,l=!1,u=a.alias;u&&(n=u[0],ajt(i,njt([0,1],u)));for(var c=1,f=!0;c=i.length){var v=bS(s,h);f=!!v,f&&"get"in v&&!("originalValue"in v.get)?s=v.get:s=s[h]}else f=$P(s,h),s=s[h];f&&!l&&(i_[o]=s)}}return s}});var n_=W((d$r,GDe)=>{"use strict";var UDe=YP(),VDe=HP(),fjt=VDe([UDe("%String.prototype.indexOf%")]);GDe.exports=function(t,r){var i=UDe(t,!!r);return typeof i=="function"&&fjt(t,".prototype.")>-1?VDe([i]):i}});var $De=W((p$r,jDe)=>{"use strict";var hjt=yS()(),djt=n_(),UX=djt("Object.prototype.toString"),XP=function(t){return hjt&&t&&typeof t=="object"&&Symbol.toStringTag in t?!1:UX(t)==="[object Arguments]"},HDe=function(t){return XP(t)?!0:t!==null&&typeof t=="object"&&"length"in t&&typeof t.length=="number"&&t.length>=0&&UX(t)!=="[object Array]"&&"callee"in t&&UX(t.callee)==="[object Function]"},pjt=(function(){return XP(arguments)})();XP.isLegacyArguments=HDe;jDe.exports=pjt?XP:HDe});var JDe=W((v$r,KDe)=>{"use strict";var WDe=n_(),vjt=yS()(),gjt=qX(),mjt=r_(),HX;vjt?(YDe=WDe("RegExp.prototype.exec"),VX={},ZP=function(){throw VX},GX={toString:ZP,valueOf:ZP},typeof Symbol.toPrimitive=="symbol"&&(GX[Symbol.toPrimitive]=ZP),HX=function(t){if(!t||typeof t!="object")return!1;var r=mjt(t,"lastIndex"),i=r&&gjt(r,"value");if(!i)return!1;try{YDe(t,GX)}catch(n){return n===VX}}):(XDe=WDe("Object.prototype.toString"),ZDe="[object RegExp]",HX=function(t){return!t||typeof t!="object"&&typeof t!="function"?!1:XDe(t)===ZDe});var YDe,VX,ZP,GX,XDe,ZDe;KDe.exports=HX});var e7e=W((g$r,QDe)=>{"use strict";var yjt=n_(),xjt=JDe(),bjt=yjt("RegExp.prototype.exec"),_jt=X5();QDe.exports=function(t){if(!xjt(t))throw new _jt("`regex` must be a RegExp");return function(i){return bjt(t,i)!==null}}});var r7e=W((m$r,t7e)=>{"use strict";var wjt=function*(){}.constructor;t7e.exports=()=>wjt});var o7e=W((y$r,a7e)=>{"use strict";var n7e=n_(),Tjt=e7e(),Ajt=Tjt(/^\s*(?:function)?\*/),Mjt=yS()(),i7e=jP(),Sjt=n7e("Object.prototype.toString"),Ejt=n7e("Function.prototype.toString"),kjt=r7e();a7e.exports=function(t){if(typeof t!="function")return!1;if(Ajt(Ejt(t)))return!0;if(!Mjt){var r=Sjt(t);return r==="[object GeneratorFunction]"}if(!i7e)return!1;var i=kjt();return i&&i7e(t)===i.prototype}});var c7e=W((x$r,u7e)=>{"use strict";var l7e=Function.prototype.toString,t4=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,$X,KP;if(typeof t4=="function"&&typeof Object.defineProperty=="function")try{$X=Object.defineProperty({},"length",{get:function(){throw KP}}),KP={},t4(function(){throw 42},null,$X)}catch(e){e!==KP&&(t4=null)}else t4=null;var Cjt=/^\s*class\b/,WX=function(t){try{var r=l7e.call(t);return Cjt.test(r)}catch(i){return!1}},jX=function(t){try{return WX(t)?!1:(l7e.call(t),!0)}catch(r){return!1}},JP=Object.prototype.toString,Djt="[object Object]",Fjt="[object Function]",Ljt="[object GeneratorFunction]",Pjt="[object HTMLAllCollection]",Ijt="[object HTML document.all class]",Rjt="[object HTMLCollection]",zjt=typeof Symbol=="function"&&!!Symbol.toStringTag,Bjt=!(0 in[,]),YX=function(){return!1};typeof document=="object"&&(s7e=document.all,JP.call(s7e)===JP.call(document.all)&&(YX=function(t){if((Bjt||!t)&&(typeof t=="undefined"||typeof t=="object"))try{var r=JP.call(t);return(r===Pjt||r===Ijt||r===Rjt||r===Djt)&&t("")==null}catch(i){}return!1}));var s7e;u7e.exports=t4?function(t){if(YX(t))return!0;if(!t||typeof t!="function"&&typeof t!="object")return!1;try{t4(t,null,$X)}catch(r){if(r!==KP)return!1}return!WX(t)&&jX(t)}:function(t){if(YX(t))return!0;if(!t||typeof t!="function"&&typeof t!="object")return!1;if(zjt)return jX(t);if(WX(t))return!1;var r=JP.call(t);return r!==Fjt&&r!==Ljt&&!/^\[object HTML/.test(r)?!1:jX(t)}});var d7e=W((b$r,h7e)=>{"use strict";var qjt=c7e(),Ojt=Object.prototype.toString,f7e=Object.prototype.hasOwnProperty,Njt=function(t,r,i){for(var n=0,a=t.length;n=3&&(n=i),Gjt(t)?Njt(t,r,n):typeof t=="string"?Ujt(t,r,n):Vjt(t,r,n)}});var v7e=W((_$r,p7e)=>{"use strict";p7e.exports=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]});var m7e=W((w$r,g7e)=>{"use strict";var XX=v7e(),Hjt=typeof globalThis=="undefined"?window:globalThis;g7e.exports=function(){for(var t=[],r=0;r{"use strict";var y7e=xS(),jjt=PX(),r4=X5(),x7e=r_();b7e.exports=function(t,r,i){if(!t||typeof t!="object"&&typeof t!="function")throw new r4("`obj` must be an object or a function`");if(typeof r!="string"&&typeof r!="symbol")throw new r4("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new r4("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new r4("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new r4("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new r4("`loose`, if provided, must be a boolean");var n=arguments.length>3?arguments[3]:null,a=arguments.length>4?arguments[4]:null,o=arguments.length>5?arguments[5]:null,s=arguments.length>6?arguments[6]:!1,l=!!x7e&&x7e(t,r);if(y7e)y7e(t,r,{configurable:o===null&&l?l.configurable:!o,enumerable:n===null&&l?l.enumerable:!n,value:i,writable:a===null&&l?l.writable:!a});else if(s||!n&&!a&&!o)t[r]=i;else throw new jjt("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}});var JX=W((A$r,w7e)=>{"use strict";var KX=xS(),_7e=function(){return!!KX};_7e.hasArrayLengthDefineBug=function(){if(!KX)return null;try{return KX([],"length",{value:1}).length!==1}catch(t){return!0}};w7e.exports=_7e});var E7e=W((M$r,S7e)=>{"use strict";var $jt=YP(),T7e=ZX(),Wjt=JX()(),A7e=r_(),M7e=X5(),Yjt=$jt("%Math.floor%");S7e.exports=function(t,r){if(typeof t!="function")throw new M7e("`fn` is not a function");if(typeof r!="number"||r<0||r>4294967295||Yjt(r)!==r)throw new M7e("`length` must be a positive 32-bit integer");var i=arguments.length>2&&!!arguments[2],n=!0,a=!0;if("length"in t&&A7e){var o=A7e(t,"length");o&&!o.configurable&&(n=!1),o&&!o.writable&&(a=!1)}return(n||a||!i)&&(Wjt?T7e(t,"length",r,!0,!0):T7e(t,"length",r)),t}});var C7e=W((S$r,k7e)=>{"use strict";var Xjt=Z5(),Zjt=GP(),Kjt=zX();k7e.exports=function(){return Kjt(Xjt,Zjt,arguments)}});var TS=W((E$r,QP)=>{"use strict";var Jjt=E7e(),D7e=xS(),Qjt=HP(),F7e=C7e();QP.exports=function(t){var r=Qjt(arguments),i=1+t.length-(arguments.length-1);return Jjt(r,i>0?i:0,!0)};D7e?D7e(QP.exports,"apply",{value:F7e}):QP.exports.apply=F7e});var rZ=W((k$r,R7e)=>{"use strict";var r9=d7e(),e$t=m7e(),L7e=TS(),eZ=n_(),t9=r_(),e9=jP(),t$t=eZ("Object.prototype.toString"),I7e=yS()(),P7e=typeof globalThis=="undefined"?window:globalThis,QX=e$t(),tZ=eZ("String.prototype.slice"),r$t=eZ("Array.prototype.indexOf",!0)||function(t,r){for(var i=0;i-1}function o$t(e){if(!e||typeof e!="object")return!1;if(!I7e){var t=tZ(t$t(e),8,-1);return a$t(t)?t:t!=="Object"?!1:n$t(e)}return t9?i$t(e):null}R7e.exports=o$t});var B7e=W((C$r,z7e)=>{"use strict";var s$t=rZ();z7e.exports=function(t){return!!s$t(t)}});var aZ=W(ao=>{"use strict";var l$t=$De(),u$t=o7e(),cv=rZ(),q7e=B7e();function i4(e){return e.call.bind(e)}var O7e=typeof BigInt!="undefined",N7e=typeof Symbol!="undefined",Gd=i4(Object.prototype.toString),c$t=i4(Number.prototype.valueOf),f$t=i4(String.prototype.valueOf),h$t=i4(Boolean.prototype.valueOf);O7e&&(U7e=i4(BigInt.prototype.valueOf));var U7e;N7e&&(V7e=i4(Symbol.prototype.valueOf));var V7e;function MS(e,t){if(typeof e!="object")return!1;try{return t(e),!0}catch(r){return!1}}ao.isArgumentsObject=l$t;ao.isGeneratorFunction=u$t;ao.isTypedArray=q7e;function d$t(e){return typeof Promise!="undefined"&&e instanceof Promise||e!==null&&typeof e=="object"&&typeof e.then=="function"&&typeof e.catch=="function"}ao.isPromise=d$t;function p$t(e){return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?ArrayBuffer.isView(e):q7e(e)||H7e(e)}ao.isArrayBufferView=p$t;function v$t(e){return cv(e)==="Uint8Array"}ao.isUint8Array=v$t;function g$t(e){return cv(e)==="Uint8ClampedArray"}ao.isUint8ClampedArray=g$t;function m$t(e){return cv(e)==="Uint16Array"}ao.isUint16Array=m$t;function y$t(e){return cv(e)==="Uint32Array"}ao.isUint32Array=y$t;function x$t(e){return cv(e)==="Int8Array"}ao.isInt8Array=x$t;function b$t(e){return cv(e)==="Int16Array"}ao.isInt16Array=b$t;function _$t(e){return cv(e)==="Int32Array"}ao.isInt32Array=_$t;function w$t(e){return cv(e)==="Float32Array"}ao.isFloat32Array=w$t;function T$t(e){return cv(e)==="Float64Array"}ao.isFloat64Array=T$t;function A$t(e){return cv(e)==="BigInt64Array"}ao.isBigInt64Array=A$t;function M$t(e){return cv(e)==="BigUint64Array"}ao.isBigUint64Array=M$t;function n9(e){return Gd(e)==="[object Map]"}n9.working=typeof Map!="undefined"&&n9(new Map);function S$t(e){return typeof Map=="undefined"?!1:n9.working?n9(e):e instanceof Map}ao.isMap=S$t;function a9(e){return Gd(e)==="[object Set]"}a9.working=typeof Set!="undefined"&&a9(new Set);function E$t(e){return typeof Set=="undefined"?!1:a9.working?a9(e):e instanceof Set}ao.isSet=E$t;function o9(e){return Gd(e)==="[object WeakMap]"}o9.working=typeof WeakMap!="undefined"&&o9(new WeakMap);function k$t(e){return typeof WeakMap=="undefined"?!1:o9.working?o9(e):e instanceof WeakMap}ao.isWeakMap=k$t;function nZ(e){return Gd(e)==="[object WeakSet]"}nZ.working=typeof WeakSet!="undefined"&&nZ(new WeakSet);function C$t(e){return nZ(e)}ao.isWeakSet=C$t;function s9(e){return Gd(e)==="[object ArrayBuffer]"}s9.working=typeof ArrayBuffer!="undefined"&&s9(new ArrayBuffer);function G7e(e){return typeof ArrayBuffer=="undefined"?!1:s9.working?s9(e):e instanceof ArrayBuffer}ao.isArrayBuffer=G7e;function l9(e){return Gd(e)==="[object DataView]"}l9.working=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"&&l9(new DataView(new ArrayBuffer(1),0,1));function H7e(e){return typeof DataView=="undefined"?!1:l9.working?l9(e):e instanceof DataView}ao.isDataView=H7e;var iZ=typeof SharedArrayBuffer!="undefined"?SharedArrayBuffer:void 0;function AS(e){return Gd(e)==="[object SharedArrayBuffer]"}function j7e(e){return typeof iZ=="undefined"?!1:(typeof AS.working=="undefined"&&(AS.working=AS(new iZ)),AS.working?AS(e):e instanceof iZ)}ao.isSharedArrayBuffer=j7e;function D$t(e){return Gd(e)==="[object AsyncFunction]"}ao.isAsyncFunction=D$t;function F$t(e){return Gd(e)==="[object Map Iterator]"}ao.isMapIterator=F$t;function L$t(e){return Gd(e)==="[object Set Iterator]"}ao.isSetIterator=L$t;function P$t(e){return Gd(e)==="[object Generator]"}ao.isGeneratorObject=P$t;function I$t(e){return Gd(e)==="[object WebAssembly.Module]"}ao.isWebAssemblyCompiledModule=I$t;function $7e(e){return MS(e,c$t)}ao.isNumberObject=$7e;function W7e(e){return MS(e,f$t)}ao.isStringObject=W7e;function Y7e(e){return MS(e,h$t)}ao.isBooleanObject=Y7e;function X7e(e){return O7e&&MS(e,U7e)}ao.isBigIntObject=X7e;function Z7e(e){return N7e&&MS(e,V7e)}ao.isSymbolObject=Z7e;function R$t(e){return $7e(e)||W7e(e)||Y7e(e)||X7e(e)||Z7e(e)}ao.isBoxedPrimitive=R$t;function z$t(e){return typeof Uint8Array!="undefined"&&(G7e(e)||j7e(e))}ao.isAnyArrayBuffer=z$t;["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(e){Object.defineProperty(ao,e,{enumerable:!1,value:function(){throw new Error(e+" is not supported in userland")}})})});var oZ=W((F$r,K7e)=>{K7e.exports=function(t){return t&&typeof t=="object"&&typeof t.copy=="function"&&typeof t.fill=="function"&&typeof t.readUInt8=="function"}});var hZ=W(oo=>{var J7e=Object.getOwnPropertyDescriptors||function(t){for(var r=Object.keys(t),i={},n=0;n=n)return s;switch(s){case"%s":return String(i[r++]);case"%d":return Number(i[r++]);case"%j":try{return JSON.stringify(i[r++])}catch(l){return"[Circular]"}default:return s}}),o=i[r];r=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),cZ(t)?r.showHidden=t:t&&oo._extend(r,t),o_(r.showHidden)&&(r.showHidden=!1),o_(r.depth)&&(r.depth=2),o_(r.colors)&&(r.colors=!1),o_(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=q$t),h9(r,e,r.depth)}oo.inspect=c2;c2.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]};c2.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function q$t(e,t){var r=c2.styles[t];return r?"\x1B["+c2.colors[r][0]+"m"+e+"\x1B["+c2.colors[r][1]+"m":e}function O$t(e,t){return e}function N$t(e){var t={};return e.forEach(function(r,i){t[r]=!0}),t}function h9(e,t,r){if(e.customInspect&&t&&f9(t.inspect)&&t.inspect!==oo.inspect&&!(t.constructor&&t.constructor.prototype===t)){var i=t.inspect(r,e);return v9(i)||(i=h9(e,i,r)),i}var n=U$t(e,t);if(n)return n;var a=Object.keys(t),o=N$t(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(t)),ES(t)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return sZ(t);if(a.length===0){if(f9(t)){var s=t.name?": "+t.name:"";return e.stylize("[Function"+s+"]","special")}if(SS(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(d9(t))return e.stylize(Date.prototype.toString.call(t),"date");if(ES(t))return sZ(t)}var l="",u=!1,c=["{","}"];if(eFe(t)&&(u=!0,c=["[","]"]),f9(t)){var f=t.name?": "+t.name:"";l=" [Function"+f+"]"}if(SS(t)&&(l=" "+RegExp.prototype.toString.call(t)),d9(t)&&(l=" "+Date.prototype.toUTCString.call(t)),ES(t)&&(l=" "+sZ(t)),a.length===0&&(!u||t.length==0))return c[0]+l+c[1];if(r<0)return SS(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special");e.seen.push(t);var h;return u?h=V$t(e,t,r,o,a):h=a.map(function(p){return uZ(e,t,r,o,p,u)}),e.seen.pop(),G$t(h,l,c)}function U$t(e,t){if(o_(t))return e.stylize("undefined","undefined");if(v9(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}if(tFe(t))return e.stylize(""+t,"number");if(cZ(t))return e.stylize(""+t,"boolean");if(p9(t))return e.stylize("null","null")}function sZ(e){return"["+Error.prototype.toString.call(e)+"]"}function V$t(e,t,r,i,n){for(var a=[],o=0,s=t.length;o{var Bgt=Object.create;var O6=Object.defineProperty,qgt=Object.defineProperties,Ogt=Object.getOwnPropertyDescriptor,Ngt=Object.getOwnPropertyDescriptors,Ugt=Object.getOwnPropertyNames,D8=Object.getOwnPropertySymbols,Vgt=Object.getPrototypeOf,KN=Object.prototype.hasOwnProperty,Xle=Object.prototype.propertyIsEnumerable;var ZN=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),Ggt=e=>{throw TypeError(e)};var Yle=(e,t,r)=>t in e?O6(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,fn=(e,t)=>{for(var r in t||(t={}))KN.call(t,r)&&Yle(e,r,t[r]);if(D8)for(var r of D8(t))Xle.call(t,r)&&Yle(e,r,t[r]);return e},da=(e,t)=>qgt(e,Ngt(t));var F8=(e,t)=>{var r={};for(var i in e)KN.call(e,i)&&t.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&D8)for(var i of D8(e))t.indexOf(i)<0&&Xle.call(e,i)&&(r[i]=e[i]);return r};var Ci=(e,t,r)=>()=>{if(r)throw r[0];try{return e&&(t=e(e=0)),t}catch(i){throw r=[i],i}};var W=(e,t)=>()=>{try{return t||e((t={exports:{}}).exports,t),t.exports}catch(r){throw t=0,r}},Jn=(e,t)=>{for(var r in t)O6(e,r,{get:t[r],enumerable:!0})},Zle=(e,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of Ugt(t))!KN.call(e,n)&&n!==r&&O6(e,n,{get:()=>t[n],enumerable:!(i=Ogt(t,n))||i.enumerable});return e};var s1=(e,t,r)=>(r=e!=null?Bgt(Vgt(e)):{},Zle(t||!e||!e.__esModule?O6(r,"default",{value:e,enumerable:!0}):r,e)),Pt=e=>Zle(O6({},"__esModule",{value:!0}),e);var Zi=(e,t,r)=>new Promise((i,n)=>{var a=l=>{try{s(r.next(l))}catch(u){n(u)}},o=l=>{try{s(r.throw(l))}catch(u){n(u)}},s=l=>l.done?i(l.value):Promise.resolve(l.value).then(a,o);s((r=r.apply(e,t)).next())}),Hgt=function(e,t){this[0]=e,this[1]=t};var Kle=e=>{var t=e[ZN("asyncIterator")],r=!1,i,n={};return t==null?(t=e[ZN("iterator")](),i=a=>n[a]=o=>t[a](o)):(t=t.call(e),i=a=>n[a]=o=>{if(r){if(r=!1,a==="throw")throw o;return o}return r=!0,{done:!1,value:new Hgt(new Promise(s=>{var l=t[a](o);l instanceof Object||Ggt("Object expected"),s(l)}),1)}}),n[ZN("iterator")]=()=>n,i("next"),"throw"in t?i("throw"):n.throw=a=>{throw a},"return"in t&&i("return"),n};var N6=W(Jle=>{"use strict";Jle.version="4.2.0"});var eue=W((Qle,L8)=>{(function(t,r,i){r[t]=r[t]||i(),typeof L8!="undefined"&&L8.exports&&(L8.exports=r[t])})("Promise",typeof window!="undefined"?window:Qle,function(){"use strict";var t,r,i,n=Object.prototype.toString,a=typeof setImmediate!="undefined"?function(w){return setImmediate(w)}:setTimeout;try{Object.defineProperty({},"x",{}),t=function(w,_,b,S){return Object.defineProperty(w,_,{value:b,writable:!0,configurable:S!==!1})}}catch(g){t=function(_,b,S){return _[b]=S,_}}i=(function(){var w,_,b;function S(x,A){this.fn=x,this.self=A,this.next=void 0}return{add:function(A,T){b=new S(A,T),_?_.next=b:w=b,_=b,b=void 0},drain:function(){var A=w;for(w=_=r=void 0;A;)A.fn.call(A.self),A=A.next}}})();function o(g,w){i.add(g,w),r||(r=a(i.drain))}function s(g){var w,_=typeof g;return g!=null&&(_=="object"||_=="function")&&(w=g.then),typeof w=="function"?w:!1}function l(){for(var g=0;g0&&o(l,_))}catch(b){f.call(new p(_),b)}}}function f(g){var w=this;w.triggered||(w.triggered=!0,w.def&&(w=w.def),w.msg=g,w.state=2,w.chain.length>0&&o(l,w))}function h(g,w,_,b){for(var S=0;S{(function(){var e={version:"3.8.2"},t=[].slice,r=function(z){return t.call(z)},i=self.document;function n(z){return z&&(z.ownerDocument||z.document||z).documentElement}function a(z){return z&&(z.ownerDocument&&z.ownerDocument.defaultView||z.document&&z||z.defaultView)}if(i)try{r(i.documentElement.childNodes)[0].nodeType}catch(z){r=function(U){for(var Z=U.length,ne=new Array(Z);Z--;)ne[Z]=U[Z];return ne}}if(Date.now||(Date.now=function(){return+new Date}),i)try{i.createElement("DIV").style.setProperty("opacity",0,"")}catch(z){var o=this.Element.prototype,s=o.setAttribute,l=o.setAttributeNS,u=this.CSSStyleDeclaration.prototype,c=u.setProperty;o.setAttribute=function(U,Z){s.call(this,U,Z+"")},o.setAttributeNS=function(U,Z,ne){l.call(this,U,Z,ne+"")},u.setProperty=function(U,Z,ne){c.call(this,U,Z+"",ne)}}e.ascending=f;function f(z,U){return zU?1:z>=U?0:NaN}e.descending=function(z,U){return Uz?1:U>=z?0:NaN},e.min=function(z,U){var Z=-1,ne=z.length,le,he;if(arguments.length===1){for(;++Z=he){le=he;break}for(;++Zhe&&(le=he)}else{for(;++Z=he){le=he;break}for(;++Zhe&&(le=he)}return le},e.max=function(z,U){var Z=-1,ne=z.length,le,he;if(arguments.length===1){for(;++Z=he){le=he;break}for(;++Zle&&(le=he)}else{for(;++Z=he){le=he;break}for(;++Zle&&(le=he)}return le},e.extent=function(z,U){var Z=-1,ne=z.length,le,he,De;if(arguments.length===1){for(;++Z=he){le=De=he;break}for(;++Zhe&&(le=he),De=he){le=De=he;break}for(;++Zhe&&(le=he),De1)return De/(Re-1)},e.deviation=function(){var z=e.variance.apply(this,arguments);return z&&Math.sqrt(z)};function d(z){return{left:function(U,Z,ne,le){for(arguments.length<3&&(ne=0),arguments.length<4&&(le=U.length);ne>>1;z(U[he],Z)<0?ne=he+1:le=he}return ne},right:function(U,Z,ne,le){for(arguments.length<3&&(ne=0),arguments.length<4&&(le=U.length);ne>>1;z(U[he],Z)>0?le=he:ne=he+1}return ne}}}var v=d(f);e.bisectLeft=v.left,e.bisect=e.bisectRight=v.right,e.bisector=function(z){return d(z.length===1?function(U,Z){return f(z(U),Z)}:z)},e.shuffle=function(z,U,Z){(ne=arguments.length)<3&&(Z=z.length,ne<2&&(U=0));for(var ne=Z-U,le,he;ne;)he=Math.random()*ne--|0,le=z[ne+U],z[ne+U]=z[he+U],z[he+U]=le;return z},e.permute=function(z,U){for(var Z=U.length,ne=new Array(Z);Z--;)ne[Z]=z[U[Z]];return ne},e.pairs=function(z){for(var U=0,Z=z.length-1,ne,le=z[0],he=new Array(Z<0?0:Z);U=0;)for(De=z[U],Z=De.length;--Z>=0;)he[--le]=De[Z];return he};var g=Math.abs;e.range=function(z,U,Z){if(arguments.length<3&&(Z=1,arguments.length<2&&(U=z,z=0)),(U-z)/Z===1/0)throw new Error("infinite range");var ne=[],le=w(g(Z)),he=-1,De;if(z*=le,U*=le,Z*=le,Z<0)for(;(De=z+Z*++he)>U;)ne.push(De/le);else for(;(De=z+Z*++he)=U.length)return le?le.call(z,Re):ne?Re.sort(ne):Re;for(var We=-1,ut=Re.length,ct=U[He++],Nt,Yt,vt,Ct=new b,Bt;++We=U.length)return ye;var He=[],We=Z[Re++];return ye.forEach(function(ut,ct){He.push({key:ut,values:De(ct,Re)})}),We?He.sort(function(ut,ct){return We(ut.key,ct.key)}):He}return z.map=function(ye,Re){return he(Re,ye,0)},z.entries=function(ye){return De(he(e.map,ye,0),0)},z.key=function(ye){return U.push(ye),z},z.sortKeys=function(ye){return Z[U.length-1]=ye,z},z.sortValues=function(ye){return ne=ye,z},z.rollup=function(ye){return le=ye,z},z},e.set=function(z){var U=new D;if(z)for(var Z=0,ne=z.length;Z=0&&(ne=z.slice(Z+1),z=z.slice(0,Z)),z)return arguments.length<2?this[z].on(ne):this[z].on(ne,U);if(arguments.length===2){if(U==null)for(z in this)this.hasOwnProperty(z)&&this[z].on(ne,null);return this}};function O(z){var U=[],Z=new b;function ne(){for(var le=U,he=-1,De=le.length,ye;++he=0&&(Z=z.slice(0,U))!=="xmlns"&&(z=z.slice(U+1)),ue.hasOwnProperty(Z)?{space:ue[Z],local:z}:z}},H.attr=function(z,U){if(arguments.length<2){if(typeof z=="string"){var Z=this.node();return z=e.ns.qualify(z),z.local?Z.getAttributeNS(z.space,z.local):Z.getAttribute(z)}for(U in z)this.each(ge(U,z[U]));return this}return this.each(ge(z,U))};function ge(z,U){z=e.ns.qualify(z);function Z(){this.removeAttribute(z)}function ne(){this.removeAttributeNS(z.space,z.local)}function le(){this.setAttribute(z,U)}function he(){this.setAttributeNS(z.space,z.local,U)}function De(){var Re=U.apply(this,arguments);Re==null?this.removeAttribute(z):this.setAttribute(z,Re)}function ye(){var Re=U.apply(this,arguments);Re==null?this.removeAttributeNS(z.space,z.local):this.setAttributeNS(z.space,z.local,Re)}return U==null?z.local?ne:Z:typeof U=="function"?z.local?ye:De:z.local?he:le}function Ee(z){return z.trim().replace(/\s+/g," ")}H.classed=function(z,U){if(arguments.length<2){if(typeof z=="string"){var Z=this.node(),ne=(z=ce(z)).length,le=-1;if(U=Z.classList){for(;++le=0;)(he=Z[ne])&&(le&&le!==he.nextSibling&&le.parentNode.insertBefore(he,le),le=he);return this},H.sort=function(z){z=pe.apply(this,arguments);for(var U=-1,Z=this.length;++U=U&&(U=le+1);!(Re=De[U])&&++U0&&(z=z.slice(0,le));var De=Le.get(z);De&&(z=De,he=Je);function ye(){var We=this[ne];We&&(this.removeEventListener(z,We,We.$),delete this[ne])}function Re(){var We=he(U,r(arguments));ye.call(this),this.addEventListener(z,this[ne]=We,We.$=Z),We._=U}function He(){var We=new RegExp("^__on([^.]+)"+e.requote(z)+"$"),ut;for(var ct in this)if(ut=ct.match(We)){var Nt=this[ct];this.removeEventListener(ut[1],Nt,Nt.$),delete this[ct]}}return le?U?Re:ye:U?I:He}var Le=e.map({mouseenter:"mouseover",mouseleave:"mouseout"});i&&Le.forEach(function(z){"on"+z in i&&Le.remove(z)});function Ne(z,U){return function(Z){var ne=e.event;e.event=Z,U[0]=this.__data__;try{z.apply(this,U)}finally{e.event=ne}}}function Je(z,U){var Z=Ne(z,U);return function(ne){var le=this,he=ne.relatedTarget;(!he||he!==le&&!(he.compareDocumentPosition(le)&8))&&Z.call(le,ne)}}var rt,mt=0;function dt(z){var U=".dragsuppress-"+ ++mt,Z="click"+U,ne=e.select(a(z)).on("touchmove"+U,$).on("dragstart"+U,$).on("selectstart"+U,$);if(rt==null&&(rt="onselectstart"in z?!1:R(z.style,"userSelect")),rt){var le=n(z).style,he=le[rt];le[rt]="none"}return function(De){if(ne.on(U,null),rt&&(le[rt]=he),De){var ye=function(){ne.on(Z,null)};ne.on(Z,function(){$(),ye()},!0),setTimeout(ye,0)}}}e.mouse=function(z){return Ke(z,X())};var St=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;function Ke(z,U){U.changedTouches&&(U=U.changedTouches[0]);var Z=z.ownerSVGElement||z;if(Z.createSVGPoint){var ne=Z.createSVGPoint();if(St<0){var le=a(z);if(le.scrollX||le.scrollY){Z=e.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var he=Z[0][0].getScreenCTM();St=!(he.f||he.e),Z.remove()}}return St?(ne.x=U.pageX,ne.y=U.pageY):(ne.x=U.clientX,ne.y=U.clientY),ne=ne.matrixTransform(z.getScreenCTM().inverse()),[ne.x,ne.y]}var De=z.getBoundingClientRect();return[U.clientX-De.left-z.clientLeft,U.clientY-De.top-z.clientTop]}e.touch=function(z,U,Z){if(arguments.length<3&&(Z=U,U=X().changedTouches),U){for(var ne=0,le=U.length,he;ne0?1:z<0?-1:0}function Wt(z,U,Z){return(U[0]-z[0])*(Z[1]-z[1])-(U[1]-z[1])*(Z[0]-z[0])}function Ht(z){return z>1?0:z<-1?Ue:Math.acos(z)}function fr(z){return z>1?Ie:z<-1?-Ie:Math.asin(z)}function lr(z){return((z=Math.exp(z))-1/z)/2}function Ot(z){return((z=Math.exp(z))+1/z)/2}function Jt(z){return((z=Math.exp(2*z))-1)/(z+1)}function Cr(z){return(z=Math.sin(z/2))*z}var Ge=Math.SQRT2,Qe=2,nt=4;e.interpolateZoom=function(z,U){var Z=z[0],ne=z[1],le=z[2],he=U[0],De=U[1],ye=U[2],Re=he-Z,He=De-ne,We=Re*Re+He*He,ut,ct;if(We0&&(li=li.transition().duration(De)),li.call(Kt.event)}function Ri(){Ct&&Ct.domain(vt.range().map(function(li){return(li-z.x)/z.k}).map(vt.invert)),Xt&&Xt.domain(Bt.range().map(function(li){return(li-z.y)/z.k}).map(Bt.invert))}function zi(li){ye++||li({type:"zoomstart"})}function On(li){Ri(),li({type:"zoom",scale:z.k,translate:[z.x,z.y]})}function $i(li){--ye||(li({type:"zoomend"}),Z=null)}function Fn(){var li=this,Nn=Yt.of(li,arguments),Kn=0,Va=e.select(a(li)).on(He,Fu).on(We,tc),xs=Lt(e.mouse(li)),kl=dt(li);Pn.call(li),zi(Nn);function Fu(){Kn=1,ai(e.mouse(li),xs),On(Nn)}function tc(){Va.on(He,null).on(We,null),kl(Kn),$i(Nn)}}function ja(){var li=this,Nn=Yt.of(li,arguments),Kn={},Va=0,xs,kl=".zoom-"+e.event.changedTouches[0].identifier,Fu="touchmove"+kl,tc="touchend"+kl,Qc=[],Be=e.select(li),yt=dt(li);sr(),zi(Nn),Be.on(Re,null).on(ct,sr);function At(){var pr=e.touches(li);return xs=z.k,pr.forEach(function(Or){Or.identifier in Kn&&(Kn[Or.identifier]=Lt(Or))}),pr}function sr(){var pr=e.event.target;e.select(pr).on(Fu,gr).on(tc,Tr),Qc.push(pr);for(var Or=e.event.changedTouches,Jr=0,Qr=Or.length;Jr1){var Vi=ei[0],yi=ei[1],Ir=Vi[0]-yi[0],tr=Vi[1]-yi[1];Va=Ir*Ir+tr*tr}}function gr(){var pr=e.touches(li),Or,Jr,Qr,ei;Pn.call(li);for(var vn=0,Vi=pr.length;vn1?1:U,Z=Z<0?0:Z>1?1:Z,le=Z<=.5?Z*(1+U):Z+U-Z*U,ne=2*Z-le;function he(ye){return ye>360?ye-=360:ye<0&&(ye+=360),ye<60?ne+(le-ne)*ye/60:ye<180?le:ye<240?ne+(le-ne)*(240-ye)/60:ne}function De(ye){return Math.round(he(ye)*255)}return new ba(De(z+120),De(z),De(z-120))}e.hcl=ii;function ii(z,U,Z){return this instanceof ii?(this.h=+z,this.c=+U,void(this.l=+Z)):arguments.length<2?z instanceof ii?new ii(z.h,z.c,z.l):z instanceof Xi?ns(z.l,z.a,z.b):ns((z=dl((z=e.rgb(z)).r,z.g,z.b)).l,z.a,z.b):new ii(z,U,Z)}var Fr=ii.prototype=new hr;Fr.brighter=function(z){return new ii(this.h,this.c,Math.min(100,this.l+ln*(arguments.length?z:1)))},Fr.darker=function(z){return new ii(this.h,this.c,Math.max(0,this.l-ln*(arguments.length?z:1)))},Fr.rgb=function(){return Ii(this.h,this.c,this.l).rgb()};function Ii(z,U,Z){return isNaN(z)&&(z=0),isNaN(U)&&(U=0),new Xi(Z,Math.cos(z*=Ve)*U,Math.sin(z)*U)}e.lab=Xi;function Xi(z,U,Z){return this instanceof Xi?(this.l=+z,this.a=+U,void(this.b=+Z)):arguments.length<2?z instanceof Xi?new Xi(z.l,z.a,z.b):z instanceof ii?Ii(z.h,z.c,z.l):dl((z=ba(z)).r,z.g,z.b):new Xi(z,U,Z)}var ln=18,la=.95047,mo=1,pn=1.08883,zn=Xi.prototype=new hr;zn.brighter=function(z){return new Xi(Math.min(100,this.l+ln*(arguments.length?z:1)),this.a,this.b)},zn.darker=function(z){return new Xi(Math.max(0,this.l-ln*(arguments.length?z:1)),this.a,this.b)},zn.rgb=function(){return gn(this.l,this.a,this.b)};function gn(z,U,Z){var ne=(z+16)/116,le=ne+U/500,he=ne-Z/200;return le=ua(le)*la,ne=ua(ne)*mo,he=ua(he)*pn,new ba(ro(3.2404542*le-1.5371385*ne-.4985314*he),ro(-.969266*le+1.8760108*ne+.041556*he),ro(.0556434*le-.2040259*ne+1.0572252*he))}function ns(z,U,Z){return z>0?new ii(Math.atan2(Z,U)*st,Math.sqrt(U*U+Z*Z),z):new ii(NaN,NaN,z)}function ua(z){return z>.206893034?z*z*z:(z-4/29)/7.787037}function as(z){return z>.008856?Math.pow(z,1/3):7.787037*z+4/29}function ro(z){return Math.round(255*(z<=.00304?12.92*z:1.055*Math.pow(z,1/2.4)-.055))}e.rgb=ba;function ba(z,U,Z){return this instanceof ba?(this.r=~~z,this.g=~~U,void(this.b=~~Z)):arguments.length<2?z instanceof ba?new ba(z.r,z.g,z.b):Ml(""+z,ba,jr):new ba(z,U,Z)}function co(z){return new ba(z>>16,z>>8&255,z&255)}function Us(z){return co(z)+""}var Ma=ba.prototype=new hr;Ma.brighter=function(z){z=Math.pow(.7,arguments.length?z:1);var U=this.r,Z=this.g,ne=this.b,le=30;return!U&&!Z&&!ne?new ba(le,le,le):(U&&U>4,ne=ne>>4|ne,le=Re&240,le=le>>4|le,he=Re&15,he=he<<4|he):z.length===7&&(ne=(Re&16711680)>>16,le=(Re&65280)>>8,he=Re&255)),U(ne,le,he))}function Au(z,U,Z){var ne=Math.min(z/=255,U/=255,Z/=255),le=Math.max(z,U,Z),he=le-ne,De,ye,Re=(le+ne)/2;return he?(ye=Re<.5?he/(le+ne):he/(2-le-ne),z==le?De=(U-Z)/he+(U0&&Re<1?0:De),new Ut(De,ye,Re)}function dl(z,U,Z){z=Fe(z),U=Fe(U),Z=Fe(Z);var ne=as((.4124564*z+.3575761*U+.1804375*Z)/la),le=as((.2126729*z+.7151522*U+.072175*Z)/mo),he=as((.0193339*z+.119192*U+.9503041*Z)/pn);return Xi(116*le-16,500*(ne-le),200*(le-he))}function Fe(z){return(z/=255)<=.04045?z/12.92:Math.pow((z+.055)/1.055,2.4)}function ot(z){var U=parseFloat(z);return z.charAt(z.length-1)==="%"?Math.round(U*2.55):U}var lt=e.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});lt.forEach(function(z,U){lt.set(z,co(U))});function kt(z){return typeof z=="function"?z:function(){return z}}e.functor=kt,e.xhr=er(F);function er(z){return function(U,Z,ne){return arguments.length===2&&typeof Z=="function"&&(ne=Z,Z=null),zt(U,Z,z,ne)}}function zt(z,U,Z,ne){var le={},he=e.dispatch("beforesend","progress","load","error"),De={},ye=new XMLHttpRequest,Re=null;self.XDomainRequest&&!("withCredentials"in ye)&&/^(http(s)?:)?\/\//.test(z)&&(ye=new XDomainRequest),"onload"in ye?ye.onload=ye.onerror=He:ye.onreadystatechange=function(){ye.readyState>3&&He()};function He(){var We=ye.status,ut;if(!We&&Zt(ye)||We>=200&&We<300||We===304){try{ut=Z.call(le,ye)}catch(ct){he.error.call(le,ct);return}he.load.call(le,ut)}else he.error.call(le,ye)}return ye.onprogress=function(We){var ut=e.event;e.event=We;try{he.progress.call(le,ye)}finally{e.event=ut}},le.header=function(We,ut){return We=(We+"").toLowerCase(),arguments.length<2?De[We]:(ut==null?delete De[We]:De[We]=ut+"",le)},le.mimeType=function(We){return arguments.length?(U=We==null?null:We+"",le):U},le.responseType=function(We){return arguments.length?(Re=We,le):Re},le.response=function(We){return Z=We,le},["get","post"].forEach(function(We){le[We]=function(){return le.send.apply(le,[We].concat(r(arguments)))}}),le.send=function(We,ut,ct){if(arguments.length===2&&typeof ut=="function"&&(ct=ut,ut=null),ye.open(We,z,!0),U!=null&&!("accept"in De)&&(De.accept=U+",*/*"),ye.setRequestHeader)for(var Nt in De)ye.setRequestHeader(Nt,De[Nt]);return U!=null&&ye.overrideMimeType&&ye.overrideMimeType(U),Re!=null&&(ye.responseType=Re),ct!=null&&le.on("error",ct).on("load",function(Yt){ct(null,Yt)}),he.beforesend.call(le,ye),ye.send(ut==null?null:ut),le},le.abort=function(){return ye.abort(),le},e.rebind(le,he,"on"),ne==null?le:le.get(Ar(ne))}function Ar(z){return z.length===1?function(U,Z){z(U==null?Z:null)}:z}function Zt(z){var U=z.responseType;return U&&U!=="text"?z.response:z.responseText}e.dsv=function(z,U){var Z=new RegExp('["'+z+` +]`),ne=z.charCodeAt(0);function le(He,We,ut){arguments.length<3&&(ut=We,We=null);var ct=zt(He,U,We==null?he:De(We),ut);return ct.row=function(Nt){return arguments.length?ct.response((We=Nt)==null?he:De(Nt)):We},ct}function he(He){return le.parse(He.responseText)}function De(He){return function(We){return le.parse(We.responseText,He)}}le.parse=function(He,We){var ut;return le.parseRows(He,function(ct,Nt){if(ut)return ut(ct,Nt-1);var Yt=function(vt){for(var Ct={},Bt=ct.length,Xt=0;Xt=Yt)return ct;if(Xt)return Xt=!1,ut;var Dr=vt;if(He.charCodeAt(Dr)===34){for(var Hr=Dr;Hr++24?(isFinite(U)&&(clearTimeout(Si),Si=setTimeout(wn,U)),ni=0):(ni=1,un(wn))}e.timer.flush=function(){ma(),Zn()};function ma(){for(var z=Date.now(),U=wr;U;)z>=U.t&&U.c(z-U.t)&&(U.c=null),U=U.n;return z}function Zn(){for(var z,U=wr,Z=1/0;U;)U.c?(U.t=0;--ye)vt.push(le[He[ut[ye]][2]]);for(ye=+Nt;ye1&&Wt(z[Z[ne-2]],z[Z[ne-1]],z[le])<=0;)--ne;Z[ne++]=le}return Z.slice(0,ne)}function Oo(z,U){return z[0]-U[0]||z[1]-U[1]}e.geom.polygon=function(z){return q(z,ms),z};var ms=e.geom.polygon.prototype=[];ms.area=function(){for(var z=-1,U=this.length,Z,ne=this[U-1],le=0;++zpt)ye=ye.L;else if(De=U-yc(ye,Z),De>pt){if(!ye.R){ne=ye;break}ye=ye.R}else{he>-pt?(ne=ye.P,le=ye):De>-pt?(ne=ye,le=ye.N):ne=le=ye;break}var Re=jl(z);if(ho.insert(ne,Re),!(!ne&&!le)){if(ne===le){du(ne),le=jl(ne.site),ho.insert(Re,le),Re.edge=le.edge=vu(ne.site,Re.site),Cs(ne),Cs(le);return}if(!le){Re.edge=vu(ne.site,Re.site);return}du(ne),du(le);var He=ne.site,We=He.x,ut=He.y,ct=z.x-We,Nt=z.y-ut,Yt=le.site,vt=Yt.x-We,Ct=Yt.y-ut,Bt=2*(ct*Ct-Nt*vt),Xt=ct*ct+Nt*Nt,Kt=vt*vt+Ct*Ct,Lt={x:(Ct*Xt-Nt*Kt)/Bt+We,y:(ct*Kt-vt*Xt)/Bt+ut};$c(le.edge,He,Yt,Lt),Re.edge=vu(He,z,null,Lt),le.edge=vu(z,Yt,null,Lt),Cs(ne),Cs(le)}}function Su(z,U){var Z=z.site,ne=Z.x,le=Z.y,he=le-U;if(!he)return ne;var De=z.P;if(!De)return-1/0;Z=De.site;var ye=Z.x,Re=Z.y,He=Re-U;if(!He)return ye;var We=ye-ne,ut=1/he-1/He,ct=We/He;return ut?(-ct+Math.sqrt(ct*ct-2*ut*(We*We/(-2*He)-Re+He/2+le-he/2)))/ut+ne:(ne+ye)/2}function yc(z,U){var Z=z.N;if(Z)return Su(Z,U);var ne=z.site;return ne.y===U?ne.x:1/0}function $l(z){this.site=z,this.edges=[]}$l.prototype.prepare=function(){for(var z=this.edges,U=z.length,Z;U--;)Z=z[U].edge,(!Z.b||!Z.a)&&z.splice(U,1);return z.sort(Eu),z.length};function Za(z){for(var U=z[0][0],Z=z[1][0],ne=z[0][1],le=z[1][1],he,De,ye,Re,He=Go,We=He.length,ut,ct,Nt,Yt,vt,Ct;We--;)if(ut=He[We],!(!ut||!ut.prepare()))for(Nt=ut.edges,Yt=Nt.length,ct=0;ctpt||g(Re-De)>pt)&&(Nt.splice(ct,0,new c0(Nv(ut.site,Ct,g(ye-U)pt?{x:U,y:g(he-U)pt?{x:g(De-le)pt?{x:Z,y:g(he-Z)pt?{x:g(De-ne)=-Oe)){var ct=Re*Re+He*He,Nt=We*We+Ct*Ct,Yt=(Ct*ct-He*Nt)/ut,vt=(Re*Nt-We*ct)/ut,Ct=vt+ye,Bt=tl.pop()||new Xu;Bt.arc=z,Bt.site=le,Bt.x=Yt+De,Bt.y=Ct+Math.sqrt(Yt*Yt+vt*vt),Bt.cy=Ct,z.circle=Bt;for(var Xt=null,Kt=ys._;Kt;)if(Bt.y0)){if(vt/=Nt,Nt<0){if(vt0){if(vt>ct)return;vt>ut&&(ut=vt)}if(vt=Z-ye,!(!Nt&&vt<0)){if(vt/=Nt,Nt<0){if(vt>ct)return;vt>ut&&(ut=vt)}else if(Nt>0){if(vt0)){if(vt/=Yt,Yt<0){if(vt0){if(vt>ct)return;vt>ut&&(ut=vt)}if(vt=ne-Re,!(!Yt&&vt<0)){if(vt/=Yt,Yt<0){if(vt>ct)return;vt>ut&&(ut=vt)}else if(Yt>0){if(vt0&&(le.a={x:ye+ut*Nt,y:Re+ut*Yt}),ct<1&&(le.b={x:ye+ct*Nt,y:Re+ct*Yt}),le}}}}}}function bo(z){for(var U=No,Z=_h(z[0][0],z[0][1],z[1][0],z[1][1]),ne=U.length,le;ne--;)le=U[ne],(!pu(le,z)||!Z(le)||g(le.a.x-le.b.x)=he)return;if(We>ct){if(!ne)ne={x:Yt,y:De};else if(ne.y>=ye)return;Z={x:Yt,y:ye}}else{if(!ne)ne={x:Yt,y:ye};else if(ne.y1)if(We>ct){if(!ne)ne={x:(De-Bt)/Ct,y:De};else if(ne.y>=ye)return;Z={x:(ye-Bt)/Ct,y:ye}}else{if(!ne)ne={x:(ye-Bt)/Ct,y:ye};else if(ne.y=he)return;Z={x:he,y:Ct*he+Bt}}else{if(!ne)ne={x:he,y:Ct*he+Bt};else if(ne.x=We&&Bt.x<=ct&&Bt.y>=ut&&Bt.y<=Nt?[[We,Nt],[ct,Nt],[ct,ut],[We,ut]]:[];Xt.point=Re[vt]}),He}function ye(Re){return Re.map(function(He,We){return{x:Math.round(ne(He,We)/pt)*pt,y:Math.round(le(He,We)/pt)*pt,i:We}})}return De.links=function(Re){return Th(ye(Re)).edges.filter(function(He){return He.l&&He.r}).map(function(He){return{source:Re[He.l.i],target:Re[He.r.i]}})},De.triangles=function(Re){var He=[];return Th(ye(Re)).cells.forEach(function(We,ut){for(var ct=We.site,Nt=We.edges.sort(Eu),Yt=-1,vt=Nt.length,Ct,Bt,Xt=Nt[vt-1].edge,Kt=Xt.l===ct?Xt.r:Xt.l;++YtKt&&(Kt=We.x),We.y>Lt&&(Lt=We.y),Nt.push(We.x),Yt.push(We.y);else for(vt=0;vtKt&&(Kt=Dr),Hr>Lt&&(Lt=Hr),Nt.push(Dr),Yt.push(Hr)}var ai=Kt-Bt,vi=Lt-Xt;ai>vi?Lt=Xt+ai:Kt=Bt+vi;function Ri($i,Fn,ja,nl,po,li,Nn,Kn){if(!(isNaN(ja)||isNaN(nl)))if($i.leaf){var Va=$i.x,xs=$i.y;if(Va!=null)if(g(Va-ja)+g(xs-nl)<.01)zi($i,Fn,ja,nl,po,li,Nn,Kn);else{var kl=$i.point;$i.x=$i.y=$i.point=null,zi($i,kl,Va,xs,po,li,Nn,Kn),zi($i,Fn,ja,nl,po,li,Nn,Kn)}else $i.x=ja,$i.y=nl,$i.point=Fn}else zi($i,Fn,ja,nl,po,li,Nn,Kn)}function zi($i,Fn,ja,nl,po,li,Nn,Kn){var Va=(po+Nn)*.5,xs=(li+Kn)*.5,kl=ja>=Va,Fu=nl>=xs,tc=Fu<<1|kl;$i.leaf=!1,$i=$i.nodes[tc]||($i.nodes[tc]=Gv()),kl?po=Va:Nn=Va,Fu?li=xs:Kn=xs,Ri($i,Fn,ja,nl,po,li,Nn,Kn)}var On=Gv();if(On.add=function($i){Ri(On,$i,+ut($i,++vt),+ct($i,vt),Bt,Xt,Kt,Lt)},On.visit=function($i){Wc($i,On,Bt,Xt,Kt,Lt)},On.find=function($i){return bp(On,$i[0],$i[1],Bt,Xt,Kt,Lt)},vt=-1,U==null){for(;++vthe||ct>De||Nt=Dr,vi=Z>=Hr,Ri=vi<<1|ai,zi=Ri+4;RiZ&&(he=U.slice(Z,he),ye[De]?ye[De]+=he:ye[++De]=he),(ne=ne[0])===(le=le[0])?ye[De]?ye[De]+=le:ye[++De]=le:(ye[++De]=null,Re.push({i:De,x:Ds(ne,le)})),Z=id.lastIndex;return Z=0&&!(ne=e.interpolators[Z](z,U)););return ne}e.interpolators=[function(z,U){var Z=typeof U;return(Z==="string"?lt.has(U.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(U)?Ah:Ho:U instanceof hr?Ah:Array.isArray(U)?d0:Z==="object"&&isNaN(U)?Zu:Ds)(z,U)}],e.interpolateArray=d0;function d0(z,U){var Z=[],ne=[],le=z.length,he=U.length,De=Math.min(z.length,U.length),ye;for(ye=0;ye=0?z.slice(0,U):z,ne=U>=0?z.slice(U+1):"in";return Z=bg.get(Z)||Hv,ne=ny.get(ne)||F,Bx(ne(Z.apply(null,t.call(arguments,1))))};function Bx(z){return function(U){return U<=0?0:U>=1?1:z(U)}}function Sh(z){return function(U){return 1-z(1-U)}}function Vs(z){return function(U){return .5*(U<.5?z(2*U):2-z(2-2*U))}}function jv(z){return z*z}function $v(z){return z*z*z}function Eh(z){if(z<=0)return 0;if(z>=1)return 1;var U=z*z,Z=U*z;return 4*(z<.5?Z:3*(z-U)+Z-.75)}function _g(z){return function(U){return Math.pow(U,z)}}function nd(z){return 1-Math.cos(z*Ie)}function _p(z){return Math.pow(2,10*(z-1))}function mf(z){return 1-Math.sqrt(1-z*z)}function Wv(z,U){var Z;return arguments.length<2&&(U=.45),arguments.length?Z=U/je*Math.asin(1/z):(z=1,Z=U/4),function(ne){return 1+z*Math.pow(2,-10*ne)*Math.sin((ne-Z)*je/U)}}function wp(z){return z||(z=1.70158),function(U){return U*U*((z+1)*U-z)}}function ad(z){return z<1/2.75?7.5625*z*z:z<2/2.75?7.5625*(z-=1.5/2.75)*z+.75:z<2.5/2.75?7.5625*(z-=2.25/2.75)*z+.9375:7.5625*(z-=2.625/2.75)*z+.984375}e.interpolateHcl=wg;function wg(z,U){z=e.hcl(z),U=e.hcl(U);var Z=z.h,ne=z.c,le=z.l,he=U.h-Z,De=U.c-ne,ye=U.l-le;return isNaN(De)&&(De=0,ne=isNaN(ne)?U.c:ne),isNaN(he)?(he=0,Z=isNaN(Z)?U.h:Z):he>180?he-=360:he<-180&&(he+=360),function(Re){return Ii(Z+he*Re,ne+De*Re,le+ye*Re)+""}}e.interpolateHsl=Tg;function Tg(z,U){z=e.hsl(z),U=e.hsl(U);var Z=z.h,ne=z.s,le=z.l,he=U.h-Z,De=U.s-ne,ye=U.l-le;return isNaN(De)&&(De=0,ne=isNaN(ne)?U.s:ne),isNaN(he)?(he=0,Z=isNaN(Z)?U.h:Z):he>180?he-=360:he<-180&&(he+=360),function(Re){return jr(Z+he*Re,ne+De*Re,le+ye*Re)+""}}e.interpolateLab=ay;function ay(z,U){z=e.lab(z),U=e.lab(U);var Z=z.l,ne=z.a,le=z.b,he=U.l-Z,De=U.a-ne,ye=U.b-le;return function(Re){return gn(Z+he*Re,ne+De*Re,le+ye*Re)+""}}e.interpolateRound=Xf;function Xf(z,U){return U-=z,function(Z){return Math.round(z+U*Z)}}e.transform=function(z){var U=i.createElementNS(e.ns.prefix.svg,"g");return(e.transform=function(Z){if(Z!=null){U.setAttribute("transform",Z);var ne=U.transform.baseVal.consolidate()}return new Yv(ne?ne.matrix:od)})(z)};function Yv(z){var U=[z.a,z.b],Z=[z.c,z.d],ne=Tp(U),le=Zf(U,Z),he=Tp(xc(Z,U,-le))||0;U[0]*Z[1]180?U+=360:U-z>180&&(z+=360),ne.push({i:Z.push(Kf(Z)+"rotate(",null,")")-2,x:Ds(z,U)})):U&&Z.push(Kf(Z)+"rotate("+U+")")}function Mg(z,U,Z,ne){z!==U?ne.push({i:Z.push(Kf(Z)+"skewX(",null,")")-2,x:Ds(z,U)}):U&&Z.push(Kf(Z)+"skewX("+U+")")}function Zv(z,U,Z,ne){if(z[0]!==U[0]||z[1]!==U[1]){var le=Z.push(Kf(Z)+"scale(",null,",",null,")");ne.push({i:le-4,x:Ds(z[0],U[0])},{i:le-2,x:Ds(z[1],U[1])})}else(U[0]!==1||U[1]!==1)&&Z.push(Kf(Z)+"scale("+U+")")}function Ap(z,U){var Z=[],ne=[];return z=e.transform(z),U=e.transform(U),Ag(z.translate,U.translate,Z,ne),Xv(z.rotate,U.rotate,Z,ne),Mg(z.skew,U.skew,Z,ne),Zv(z.scale,U.scale,Z,ne),z=U=null,function(le){for(var he=-1,De=ne.length,ye;++he0?he=Lt:(Z.c=null,Z.t=NaN,Z=null,U.end({type:"end",alpha:he=0})):Lt>0&&(U.start({type:"start",alpha:he=Lt}),Z=$n(z.tick)),z):he},z.start=function(){var Lt,Dr=Nt.length,Hr=Yt.length,ai=ne[0],vi=ne[1],Ri,zi;for(Lt=0;Lt=0;)he.push(We=He[Re]),We.parent=ye,We.depth=ye.depth+1;Z&&(ye.value=0),ye.children=He}else Z&&(ye.value=+Z.call(ne,ye,ye.depth)||0),delete ye.children;return Ju(le,function(ut){var ct,Nt;z&&(ct=ut.children)&&ct.sort(z),Z&&(Nt=ut.parent)&&(Nt.value+=ut.value)}),De}return ne.sort=function(le){return arguments.length?(z=le,ne):z},ne.children=function(le){return arguments.length?(U=le,ne):U},ne.value=function(le){return arguments.length?(Z=le,ne):Z},ne.revalue=function(le){return Z&&(xf(le,function(he){he.children&&(he.value=0)}),Ju(le,function(he){var De;he.children||(he.value=+Z.call(ne,he,he.depth)||0),(De=he.parent)&&(De.value+=he.value)})),le},ne};function yf(z,U){return e.rebind(z,U,"sort","children","value"),z.nodes=z,z.links=bc,z}function xf(z,U){for(var Z=[z];(z=Z.pop())!=null;)if(U(z),(le=z.children)&&(ne=le.length))for(var ne,le;--ne>=0;)Z.push(le[ne])}function Ju(z,U){for(var Z=[z],ne=[];(z=Z.pop())!=null;)if(ne.push(z),(De=z.children)&&(he=De.length))for(var le=-1,he,De;++lele&&(le=ye),ne.push(ye)}for(De=0;Dene&&(Z=U,ne=le);return Z}function Dp(z){return z.reduce(v0,0)}function v0(z,U){return z+U[1]}e.layout.histogram=function(){var z=!0,U=Number,Z=ud,ne=Fp;function le(he,ct){for(var ye=[],Re=he.map(U,this),He=Z.call(this,Re,ct),We=ne.call(this,He,Re,ct),ut,ct=-1,Nt=Re.length,Yt=We.length-1,vt=z?1:1/Nt,Ct;++ct0)for(ct=-1;++ct=He[0]&&Ct<=He[1]&&(ut=ye[e.bisect(We,Ct,1,Yt)-1],ut.y+=vt,ut.push(he[ct]));return ye}return le.value=function(he){return arguments.length?(U=he,le):U},le.range=function(he){return arguments.length?(Z=kt(he),le):Z},le.bins=function(he){return arguments.length?(ne=typeof he=="number"?function(De){return g0(De,he)}:kt(he),le):ne},le.frequency=function(he){return arguments.length?(z=!!he,le):z},le};function Fp(z,U){return g0(z,Math.ceil(Math.log(U.length)/Math.LN2+1))}function g0(z,U){for(var Z=-1,ne=+z[0],le=(z[1]-ne)/U,he=[];++Z<=U;)he[Z]=le*Z+ne;return he}function ud(z){return[e.min(z),e.max(z)]}e.layout.pack=function(){var z=e.layout.hierarchy().sort(cd),U=0,Z=[1,1],ne;function le(he,De){var ye=z.call(this,he,De),Re=ye[0],He=Z[0],We=Z[1],ut=ne==null?Math.sqrt:typeof ne=="function"?ne:function(){return ne};if(Re.x=Re.y=0,Ju(Re,function(Nt){Nt.r=+ut(Nt.value)}),Ju(Re,hy),U){var ct=U*(ne?1:Math.max(2*Re.r/He,2*Re.r/We))/2;Ju(Re,function(Nt){Nt.r+=ct}),Ju(Re,hy),Ju(Re,function(Nt){Nt.r-=ct})}return t1(Re,He/2,We/2,ne?1:1/Math.max(2*Re.r/He,2*Re.r/We)),ye}return le.size=function(he){return arguments.length?(Z=he,le):Z},le.radius=function(he){return arguments.length?(ne=he==null||typeof he=="function"?he:+he,le):ne},le.padding=function(he){return arguments.length?(U=+he,le):U},yf(le,z)};function cd(z,U){return z.value-U.value}function Lp(z,U){var Z=z._pack_next;z._pack_next=U,U._pack_prev=z,U._pack_next=Z,Z._pack_prev=U}function kg(z,U){z._pack_next=U,U._pack_prev=z}function e1(z,U){var Z=U.x-z.x,ne=U.y-z.y,le=z.r+U.r;return .999*le*le>Z*Z+ne*ne}function hy(z){if(!(U=z.children)||!(ct=U.length))return;var U,Z=1/0,ne=-1/0,le=1/0,he=-1/0,De,ye,Re,He,We,ut,ct;function Nt(Lt){Z=Math.min(Lt.x-Lt.r,Z),ne=Math.max(Lt.x+Lt.r,ne),le=Math.min(Lt.y-Lt.r,le),he=Math.max(Lt.y+Lt.r,he)}if(U.forEach(dy),De=U[0],De.x=-De.r,De.y=0,Nt(De),ct>1&&(ye=U[1],ye.x=ye.r,ye.y=0,Nt(ye),ct>2))for(Re=U[2],pl(De,ye,Re),Nt(Re),Lp(De,Re),De._pack_prev=Re,Lp(Re,ye),ye=De._pack_next,He=3;HeCt.x&&(Ct=Dr),Dr.depth>Bt.depth&&(Bt=Dr)});var Xt=U(vt,Ct)/2-vt.x,Kt=Z[0]/(Ct.x+U(Ct,vt)/2+Xt),Lt=Z[1]/(Bt.depth||1);xf(Nt,function(Dr){Dr.x=(Dr.x+Xt)*Kt,Dr.y=Dr.depth*Lt})}return ct}function he(We){for(var ut={A:null,children:[We]},ct=[ut],Nt;(Nt=ct.pop())!=null;)for(var Yt=Nt.children,vt,Ct=0,Bt=Yt.length;Ct0&&(Ip(Ae(vt,We,ct),We,Dr),Bt+=Dr,Xt+=Dr),Kt+=vt.m,Bt+=Nt.m,Lt+=Ct.m,Xt+=Yt.m;vt&&!Dg(Yt)&&(Yt.t=vt,Yt.m+=Kt-Xt),Nt&&!Pp(Ct)&&(Ct.t=Nt,Ct.m+=Bt-Lt,ct=We)}return ct}function He(We){We.x*=Z[0],We.y=We.depth*Z[1]}return le.separation=function(We){return arguments.length?(U=We,le):U},le.size=function(We){return arguments.length?(ne=(Z=We)==null?He:null,le):ne?null:Z},le.nodeSize=function(We){return arguments.length?(ne=(Z=We)==null?null:He,le):ne?Z:null},yf(le,z)};function Xc(z,U){return z.parent==U.parent?1:2}function Pp(z){var U=z.children;return U.length?U[0]:z.t}function Dg(z){var U=z.children,Z;return(Z=U.length)?U[Z-1]:z.t}function Ip(z,U,Z){var ne=Z/(U.i-z.i);U.c-=ne,U.s+=Z,z.c+=ne,U.z+=Z,U.m+=Z}function Rp(z){for(var U=0,Z=0,ne=z.children,le=ne.length,he;--le>=0;)he=ne[le],he.z+=U,he.m+=U,U+=he.s+(Z+=he.c)}function Ae(z,U,Z){return z.a.parent===U.parent?z.a:Z}e.layout.cluster=function(){var z=e.layout.hierarchy().sort(null).value(null),U=Xc,Z=[1,1],ne=!1;function le(he,De){var ye=z.call(this,he,De),Re=ye[0],He,We=0;Ju(Re,function(vt){var Ct=vt.children;Ct&&Ct.length?(vt.x=et(Ct),vt.y=qe(Ct)):(vt.x=He?We+=U(vt,He):0,vt.y=0,He=vt)});var ut=Ye(Re),ct=Tt(Re),Nt=ut.x-U(ut,ct)/2,Yt=ct.x+U(ct,ut)/2;return Ju(Re,ne?function(vt){vt.x=(vt.x-Re.x)*Z[0],vt.y=(Re.y-vt.y)*Z[1]}:function(vt){vt.x=(vt.x-Nt)/(Yt-Nt)*Z[0],vt.y=(1-(Re.y?vt.y/Re.y:1))*Z[1]}),ye}return le.separation=function(he){return arguments.length?(U=he,le):U},le.size=function(he){return arguments.length?(ne=(Z=he)==null,le):ne?null:Z},le.nodeSize=function(he){return arguments.length?(ne=(Z=he)!=null,le):ne?Z:null},yf(le,z)};function qe(z){return 1+e.max(z,function(U){return U.y})}function et(z){return z.reduce(function(U,Z){return U+Z.x},0)/z.length}function Ye(z){var U=z.children;return U&&U.length?Ye(U[0]):z}function Tt(z){var U=z.children,Z;return U&&(Z=U.length)?Tt(U[Z-1]):z}e.layout.treemap=function(){var z=e.layout.hierarchy(),U=Math.round,Z=[1,1],ne=null,le=jt,he=!1,De,ye="squarify",Re=.5*(1+Math.sqrt(5));function He(vt,Ct){for(var Bt=-1,Xt=vt.length,Kt,Lt;++Bt0;)Xt.push(Lt=Kt[vi-1]),Xt.area+=Lt.area,ye!=="squarify"||(Hr=ct(Xt,ai))<=Dr?(Kt.pop(),Dr=Hr):(Xt.area-=Xt.pop().area,Nt(Xt,ai,Bt,!1),ai=Math.min(Bt.dx,Bt.dy),Xt.length=Xt.area=0,Dr=1/0);Xt.length&&(Nt(Xt,ai,Bt,!0),Xt.length=Xt.area=0),Ct.forEach(We)}}function ut(vt){var Ct=vt.children;if(Ct&&Ct.length){var Bt=le(vt),Xt=Ct.slice(),Kt,Lt=[];for(He(Xt,Bt.dx*Bt.dy/vt.value),Lt.area=0;Kt=Xt.pop();)Lt.push(Kt),Lt.area+=Kt.area,Kt.z!=null&&(Nt(Lt,Kt.z?Bt.dx:Bt.dy,Bt,!Xt.length),Lt.length=Lt.area=0);Ct.forEach(ut)}}function ct(vt,Ct){for(var Bt=vt.area,Xt,Kt=0,Lt=1/0,Dr=-1,Hr=vt.length;++DrKt&&(Kt=Xt));return Bt*=Bt,Ct*=Ct,Bt?Math.max(Ct*Kt*Re/Bt,Bt/(Ct*Lt*Re)):1/0}function Nt(vt,Ct,Bt,Xt){var Kt=-1,Lt=vt.length,Dr=Bt.x,Hr=Bt.y,ai=Ct?U(vt.area/Ct):0,vi;if(Ct==Bt.dx){for((Xt||ai>Bt.dy)&&(ai=Bt.dy);++KtBt.dx)&&(ai=Bt.dx);++Kt1);return z+U*ne*Math.sqrt(-2*Math.log(he)/he)}},logNormal:function(){var z=e.random.normal.apply(e,arguments);return function(){return Math.exp(z())}},bates:function(z){var U=e.random.irwinHall(z);return function(){return U()/z}},irwinHall:function(z){return function(){for(var U=0,Z=0;Z2?Pr:Rr,He=ne?Jv:Kv;return le=Re(z,U,He,Z),he=Re(U,z,He,Mh),ye}function ye(Re){return le(Re)}return ye.invert=function(Re){return he(Re)},ye.domain=function(Re){return arguments.length?(z=Re.map(Number),De()):z},ye.range=function(Re){return arguments.length?(U=Re,De()):U},ye.rangeRound=function(Re){return ye.range(Re).interpolate(Xf)},ye.clamp=function(Re){return arguments.length?(ne=Re,De()):ne},ye.interpolate=function(Re){return arguments.length?(Z=Re,De()):Z},ye.ticks=function(Re){return en(z,Re)},ye.tickFormat=function(Re,He){return d3_scale_linearTickFormat(z,Re,He)},ye.nice=function(Re){return Di(z,Re),De()},ye.copy=function(){return $r(z,U,Z,ne)},De()}function Oi(z,U){return e.rebind(z,U,"range","rangeRound","interpolate","clamp")}function Di(z,U){return nr(z,dr(ji(z,U)[2])),nr(z,dr(ji(z,U)[2])),z}function ji(z,U){U==null&&(U=10);var Z=cr(z),ne=Z[1]-Z[0],le=Math.pow(10,Math.floor(Math.log(ne/U)/Math.LN10)),he=U/ne*le;return he<=.15?le*=10:he<=.35?le*=5:he<=.75&&(le*=2),Z[0]=Math.ceil(Z[0]/le)*le,Z[1]=Math.floor(Z[1]/le)*le+le*.5,Z[2]=le,Z}function en(z,U){return e.range.apply(e,ji(z,U))}var Zr={s:1,g:1,p:1,r:1,e:1};function si(z){return-Math.floor(Math.log(z)/Math.LN10+.01)}function cn(z,U){var Z=si(U[2]);return z in Zr?Math.abs(Z-si(Math.max(g(U[0]),g(U[1]))))+ +(z!=="e"):Z-(z==="%")*2}e.scale.log=function(){return Dn(e.scale.linear().domain([0,1]),10,!0,[1,10])};function Dn(z,U,Z,ne){function le(ye){return(Z?Math.log(ye<0?0:ye):-Math.log(ye>0?0:-ye))/Math.log(U)}function he(ye){return Z?Math.pow(U,ye):-Math.pow(U,-ye)}function De(ye){return z(le(ye))}return De.invert=function(ye){return he(z.invert(ye))},De.domain=function(ye){return arguments.length?(Z=ye[0]>=0,z.domain((ne=ye.map(Number)).map(le)),De):ne},De.base=function(ye){return arguments.length?(U=+ye,z.domain(ne.map(le)),De):U},De.nice=function(){var ye=nr(ne.map(le),Z?Math:wa);return z.domain(ye),ne=ye.map(he),De},De.ticks=function(){var ye=cr(ne),Re=[],He=ye[0],We=ye[1],ut=Math.floor(le(He)),ct=Math.ceil(le(We)),Nt=U%1?2:U;if(isFinite(ct-ut)){if(Z){for(;ut0;Yt--)Re.push(he(ut)*Yt);for(ut=0;Re[ut]We;ct--);Re=Re.slice(ut,ct)}return Re},De.copy=function(){return Dn(z.copy(),U,Z,ne)},Oi(De,z)}var wa={floor:function(z){return-Math.ceil(-z)},ceil:function(z){return-Math.floor(-z)}};e.scale.pow=function(){return Ka(e.scale.linear(),1,[0,1])};function Ka(z,U,Z){var ne=Ia(U),le=Ia(1/U);function he(De){return z(ne(De))}return he.invert=function(De){return le(z.invert(De))},he.domain=function(De){return arguments.length?(z.domain((Z=De.map(Number)).map(ne)),he):Z},he.ticks=function(De){return en(Z,De)},he.tickFormat=function(De,ye){return d3_scale_linearTickFormat(Z,De,ye)},he.nice=function(De){return he.domain(Di(Z,De))},he.exponent=function(De){return arguments.length?(ne=Ia(U=De),le=Ia(1/U),z.domain(Z.map(ne)),he):U},he.copy=function(){return Ka(z.copy(),U,Z)},Oi(he,z)}function Ia(z){return function(U){return U<0?-Math.pow(-U,z):Math.pow(U,z)}}e.scale.sqrt=function(){return e.scale.pow().exponent(.5)},e.scale.ordinal=function(){return _o([],{t:"range",a:[[]]})};function _o(z,U){var Z,ne,le;function he(ye){return ne[((Z.get(ye)||(U.t==="range"?Z.set(ye,z.push(ye)):NaN))-1)%ne.length]}function De(ye,Re){return e.range(z.length).map(function(He){return ye+Re*He})}return he.domain=function(ye){if(!arguments.length)return z;z=[],Z=new b;for(var Re=-1,He=ye.length,We;++Re0?Z[he-1]:z[0],hect?0:1;if(We=$e)return Re(We,Yt)+(He?Re(He,1-Yt):"")+"Z";var vt,Ct,Bt,Xt,Kt=0,Lt=0,Dr,Hr,ai,vi,Ri,zi,On,$i,Fn=[];if((Xt=(+De.apply(this,arguments)||0)/2)&&(Bt=ne===bf?Math.sqrt(He*He+We*We):+ne.apply(this,arguments),Yt||(Lt*=-1),We&&(Lt=fr(Bt/We*Math.sin(Xt))),He&&(Kt=fr(Bt/He*Math.sin(Xt)))),We){Dr=We*Math.cos(ut+Lt),Hr=We*Math.sin(ut+Lt),ai=We*Math.cos(ct-Lt),vi=We*Math.sin(ct-Lt);var ja=Math.abs(ct-ut-2*Lt)<=Ue?0:1;if(Lt&&zp(Dr,Hr,ai,vi)===Yt^ja){var nl=(ut+ct)/2;Dr=We*Math.cos(nl),Hr=We*Math.sin(nl),ai=vi=null}}else Dr=Hr=0;if(He){Ri=He*Math.cos(ct-Kt),zi=He*Math.sin(ct-Kt),On=He*Math.cos(ut+Kt),$i=He*Math.sin(ut+Kt);var po=Math.abs(ut-ct+2*Kt)<=Ue?0:1;if(Kt&&zp(Ri,zi,On,$i)===1-Yt^po){var li=(ut+ct)/2;Ri=He*Math.cos(li),zi=He*Math.sin(li),On=$i=null}}else Ri=zi=0;if(Nt>pt&&(vt=Math.min(Math.abs(We-He)/2,+Z.apply(this,arguments)))>.001){Ct=He0?0:1}function Fg(z,U,Z,ne,le){var he=z[0]-U[0],De=z[1]-U[1],ye=(le?ne:-ne)/Math.sqrt(he*he+De*De),Re=ye*De,He=-ye*he,We=z[0]+Re,ut=z[1]+He,ct=U[0]+Re,Nt=U[1]+He,Yt=(We+ct)/2,vt=(ut+Nt)/2,Ct=ct-We,Bt=Nt-ut,Xt=Ct*Ct+Bt*Bt,Kt=Z-ne,Lt=We*Nt-ct*ut,Dr=(Bt<0?-1:1)*Math.sqrt(Math.max(0,Kt*Kt*Xt-Lt*Lt)),Hr=(Lt*Bt-Ct*Dr)/Xt,ai=(-Lt*Ct-Bt*Dr)/Xt,vi=(Lt*Bt+Ct*Dr)/Xt,Ri=(-Lt*Ct+Bt*Dr)/Xt,zi=Hr-Yt,On=ai-vt,$i=vi-Yt,Fn=Ri-vt;return zi*zi+On*On>$i*$i+Fn*Fn&&(Hr=vi,ai=Ri),[[Hr-Re,ai-He],[Hr*Z/Kt,ai*Z/Kt]]}function r1(){return!0}function Ox(z){var U=io,Z=fo,ne=r1,le=Kc,he=le.key,De=.7;function ye(Re){var He=[],We=[],ut=-1,ct=Re.length,Nt,Yt=kt(U),vt=kt(Z);function Ct(){He.push("M",le(z(We),De))}for(;++ut1?z.join("L"):z+"Z"}function py(z){return z.join("L")+"Z"}function n1(z){for(var U=0,Z=z.length,ne=z[0],le=[ne[0],",",ne[1]];++U1&&le.push("H",ne[0]),le.join("")}function Lg(z){for(var U=0,Z=z.length,ne=z[0],le=[ne[0],",",ne[1]];++U1){ye=U[1],he=z[Re],Re++,ne+="C"+(le[0]+De[0])+","+(le[1]+De[1])+","+(he[0]-ye[0])+","+(he[1]-ye[1])+","+he[0]+","+he[1];for(var He=2;He9&&(he=Z*3/Math.sqrt(he),De[ye]=he*ne,De[ye+1]=he*le));for(ye=-1;++ye<=Re;)he=(z[Math.min(Re,ye+1)][0]-z[Math.max(0,ye-1)][0])/(6*(1+De[ye]*De[ye])),U.push([he||0,De[ye]*he||0]);return U}function Ze(z){return z.length<3?Kc(z):z[0]+qp(z,Pe(z))}e.svg.line.radial=function(){var z=Ox(it);return z.radius=z.x,delete z.x,z.angle=z.y,delete z.y,z};function it(z){for(var U,Z=-1,ne=z.length,le,he;++ZUe)+",1 "+ut}function He(We,ut,ct,Nt){return"Q 0,0 "+Nt}return he.radius=function(We){return arguments.length?(Z=kt(We),he):Z},he.source=function(We){return arguments.length?(z=kt(We),he):z},he.target=function(We){return arguments.length?(U=kt(We),he):U},he.startAngle=function(We){return arguments.length?(ne=kt(We),he):ne},he.endAngle=function(We){return arguments.length?(le=kt(We),he):le},he};function It(z){return z.radius}e.svg.diagonal=function(){var z=at,U=xt,Z=Gt;function ne(le,he){var De=z.call(this,le,he),ye=U.call(this,le,he),Re=(De.y+ye.y)/2,He=[De,{x:De.x,y:Re},{x:ye.x,y:Re},ye];return He=He.map(Z),"M"+He[0]+"C"+He[1]+" "+He[2]+" "+He[3]}return ne.source=function(le){return arguments.length?(z=kt(le),ne):z},ne.target=function(le){return arguments.length?(U=kt(le),ne):U},ne.projection=function(le){return arguments.length?(Z=le,ne):Z},ne};function Gt(z){return[z.x,z.y]}e.svg.diagonal.radial=function(){var z=e.svg.diagonal(),U=Gt,Z=z.projection;return z.projection=function(ne){return arguments.length?Z(or(U=ne)):U},z};function or(z){return function(){var U=z.apply(this,arguments),Z=U[0],ne=U[1]-Ie;return[Z*Math.cos(ne),Z*Math.sin(ne)]}}e.svg.symbol=function(){var z=Gr,U=Mr;function Z(ne,le){return(on.get(z.call(this,ne,le))||_i)(U.call(this,ne,le))}return Z.type=function(ne){return arguments.length?(z=kt(ne),Z):z},Z.size=function(ne){return arguments.length?(U=kt(ne),Z):U},Z};function Mr(){return 64}function Gr(){return"circle"}function _i(z){var U=Math.sqrt(z/Ue);return"M0,"+U+"A"+U+","+U+" 0 1,1 0,"+-U+"A"+U+","+U+" 0 1,1 0,"+U+"Z"}var on=e.map({circle:_i,cross:function(z){var U=Math.sqrt(z/5)/2;return"M"+-3*U+","+-U+"H"+-U+"V"+-3*U+"H"+U+"V"+-U+"H"+3*U+"V"+U+"H"+U+"V"+3*U+"H"+-U+"V"+U+"H"+-3*U+"Z"},diamond:function(z){var U=Math.sqrt(z/(2*Tn)),Z=U*Tn;return"M0,"+-U+"L"+Z+",0 0,"+U+" "+-Z+",0Z"},square:function(z){var U=Math.sqrt(z)/2;return"M"+-U+","+-U+"L"+U+","+-U+" "+U+","+U+" "+-U+","+U+"Z"},"triangle-down":function(z){var U=Math.sqrt(z/mn),Z=U*mn/2;return"M0,"+Z+"L"+U+","+-Z+" "+-U+","+-Z+"Z"},"triangle-up":function(z){var U=Math.sqrt(z/mn),Z=U*mn/2;return"M0,"+-Z+"L"+U+","+Z+" "+-U+","+Z+"Z"}});e.svg.symbolTypes=on.keys();var mn=Math.sqrt(3),Tn=Math.tan(30*Ve);H.transition=function(z){for(var U=El||++us,Z=gu(z),ne=[],le,he,De=ec||{time:Date.now(),ease:Eh,delay:0,duration:250},ye=-1,Re=this.length;++ye0;)ut[--Xt].call(z,Bt);if(Ct>=1)return De.event&&De.event.end.call(z,z.__data__,U),--he.count?delete he[ne]:delete z[Z],1}De||(ye=le.time,Re=$n(ct,0,ye),De=he[ne]={tween:new b,time:ye,timer:Re,delay:le.delay,duration:le.duration,ease:le.ease,index:U},le=null,++he.count)}e.svg.axis=function(){var z=e.scale.linear(),U=Jc,Z=6,ne=6,le=3,he=[10],De=null,ye;function Re(He){He.each(function(){var We=e.select(this),ut=this.__chart__||z,ct=this.__chart__=z.copy(),Nt=De==null?ct.ticks?ct.ticks.apply(ct,he):ct.domain():De,Yt=ye==null?ct.tickFormat?ct.tickFormat.apply(ct,he):F:ye,vt=We.selectAll(".tick").data(Nt,ct),Ct=vt.enter().insert("g",".domain").attr("class","tick").style("opacity",pt),Bt=e.transition(vt.exit()).style("opacity",pt).remove(),Xt=e.transition(vt.order()).style("opacity",1),Kt=Math.max(Z,0)+le,Lt,Dr=yr(ct),Hr=We.selectAll(".domain").data([0]),ai=(Hr.enter().append("path").attr("class","domain"),e.transition(Hr));Ct.append("line"),Ct.append("text");var vi=Ct.select("line"),Ri=Xt.select("line"),zi=vt.select("text").text(Yt),On=Ct.select("text"),$i=Xt.select("text"),Fn=U==="top"||U==="left"?-1:1,ja,nl,po,li;if(U==="bottom"||U==="top"?(Lt=th,ja="x",po="y",nl="x2",li="y2",zi.attr("dy",Fn<0?"0em":".71em").style("text-anchor","middle"),ai.attr("d","M"+Dr[0]+","+Fn*ne+"V0H"+Dr[1]+"V"+Fn*ne)):(Lt=rh,ja="y",po="x",nl="y2",li="x2",zi.attr("dy",".32em").style("text-anchor",Fn<0?"end":"start"),ai.attr("d","M"+Fn*ne+","+Dr[0]+"H0V"+Dr[1]+"H"+Fn*ne)),vi.attr(li,Fn*Z),On.attr(po,Fn*Kt),Ri.attr(nl,0).attr(li,Fn*Z),$i.attr(ja,0).attr(po,Fn*Kt),ct.rangeBand){var Nn=ct,Kn=Nn.rangeBand()/2;ut=ct=function(Va){return Nn(Va)+Kn}}else ut.rangeBand?ut=ct:Bt.call(Lt,ct,ut);Ct.call(Lt,ut,ct),Xt.call(Lt,ct,ct)})}return Re.scale=function(He){return arguments.length?(z=He,Re):z},Re.orient=function(He){return arguments.length?(U=He in eh?He+"":Jc,Re):U},Re.ticks=function(){return arguments.length?(he=r(arguments),Re):he},Re.tickValues=function(He){return arguments.length?(De=He,Re):De},Re.tickFormat=function(He){return arguments.length?(ye=He,Re):ye},Re.tickSize=function(He){var We=arguments.length;return We?(Z=+He,ne=+arguments[We-1],Re):Z},Re.innerTickSize=function(He){return arguments.length?(Z=+He,Re):Z},Re.outerTickSize=function(He){return arguments.length?(ne=+He,Re):ne},Re.tickPadding=function(He){return arguments.length?(le=+He,Re):le},Re.tickSubdivide=function(){return arguments.length&&Re},Re};var Jc="bottom",eh={top:1,right:1,bottom:1,left:1};function th(z,U,Z){z.attr("transform",function(ne){var le=U(ne);return"translate("+(isFinite(le)?le:Z(ne))+",0)"})}function rh(z,U,Z){z.attr("transform",function(ne){var le=U(ne);return"translate(0,"+(isFinite(le)?le:Z(ne))+")"})}e.svg.brush=function(){var z=K(We,"brushstart","brush","brushend"),U=null,Z=null,ne=[0,0],le=[0,0],he,De,ye=!0,Re=!0,He=_f[0];function We(vt){vt.each(function(){var Ct=e.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",Yt).on("touchstart.brush",Yt),Bt=Ct.selectAll(".background").data([0]);Bt.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),Ct.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var Xt=Ct.selectAll(".resize").data(He,F);Xt.exit().remove(),Xt.enter().append("g").attr("class",function(Hr){return"resize "+Hr}).style("cursor",function(Hr){return Ph[Hr]}).append("rect").attr("x",function(Hr){return/[ew]$/.test(Hr)?-3:null}).attr("y",function(Hr){return/^[ns]/.test(Hr)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),Xt.style("display",We.empty()?"none":null);var Kt=e.transition(Ct),Lt=e.transition(Bt),Dr;U&&(Dr=yr(U),Lt.attr("x",Dr[0]).attr("width",Dr[1]-Dr[0]),ct(Kt)),Z&&(Dr=yr(Z),Lt.attr("y",Dr[0]).attr("height",Dr[1]-Dr[0]),Nt(Kt)),ut(Kt)})}We.event=function(vt){vt.each(function(){var Ct=z.of(this,arguments),Bt={x:ne,y:le,i:he,j:De},Xt=this.__chart__||Bt;this.__chart__=Bt,El?e.select(this).transition().each("start.brush",function(){he=Xt.i,De=Xt.j,ne=Xt.x,le=Xt.y,Ct({type:"brushstart"})}).tween("brush:brush",function(){var Kt=d0(ne,Bt.x),Lt=d0(le,Bt.y);return he=De=null,function(Dr){ne=Bt.x=Kt(Dr),le=Bt.y=Lt(Dr),Ct({type:"brush",mode:"resize"})}}).each("end.brush",function(){he=Bt.i,De=Bt.j,Ct({type:"brush",mode:"resize"}),Ct({type:"brushend"})}):(Ct({type:"brushstart"}),Ct({type:"brush",mode:"resize"}),Ct({type:"brushend"}))})};function ut(vt){vt.selectAll(".resize").attr("transform",function(Ct){return"translate("+ne[+/e$/.test(Ct)]+","+le[+/^s/.test(Ct)]+")"})}function ct(vt){vt.select(".extent").attr("x",ne[0]),vt.selectAll(".extent,.n>rect,.s>rect").attr("width",ne[1]-ne[0])}function Nt(vt){vt.select(".extent").attr("y",le[0]),vt.selectAll(".extent,.e>rect,.w>rect").attr("height",le[1]-le[0])}function Yt(){var vt=this,Ct=e.select(e.event.target),Bt=z.of(vt,arguments),Xt=e.select(vt),Kt=Ct.datum(),Lt=!/^(n|s)$/.test(Kt)&&U,Dr=!/^(e|w)$/.test(Kt)&&Z,Hr=Ct.classed("extent"),ai=dt(vt),vi,Ri=e.mouse(vt),zi,On=e.select(a(vt)).on("keydown.brush",ja).on("keyup.brush",nl);if(e.event.changedTouches?On.on("touchmove.brush",po).on("touchend.brush",Nn):On.on("mousemove.brush",po).on("mouseup.brush",Nn),Xt.interrupt().selectAll("*").interrupt(),Hr)Ri[0]=ne[0]-Ri[0],Ri[1]=le[0]-Ri[1];else if(Kt){var $i=+/w$/.test(Kt),Fn=+/^n/.test(Kt);zi=[ne[1-$i]-Ri[0],le[1-Fn]-Ri[1]],Ri[0]=ne[$i],Ri[1]=le[Fn]}else e.event.altKey&&(vi=Ri.slice());Xt.style("pointer-events","none").selectAll(".resize").style("display",null),e.select("body").style("cursor",Ct.style("cursor")),Bt({type:"brushstart"}),po();function ja(){e.event.keyCode==32&&(Hr||(vi=null,Ri[0]-=ne[1],Ri[1]-=le[1],Hr=2),$())}function nl(){e.event.keyCode==32&&Hr==2&&(Ri[0]+=ne[1],Ri[1]+=le[1],Hr=0,$())}function po(){var Kn=e.mouse(vt),Va=!1;zi&&(Kn[0]+=zi[0],Kn[1]+=zi[1]),Hr||(e.event.altKey?(vi||(vi=[(ne[0]+ne[1])/2,(le[0]+le[1])/2]),Ri[0]=ne[+(Kn[0]{(function(e,t){typeof I8=="object"&&typeof tue!="undefined"?t(I8):(e=e||self,t(e.d3=e.d3||{}))})(I8,function(e){"use strict";var t=new Date,r=new Date;function i(re,pe,Te,Ce){function ze(we){return re(we=arguments.length===0?new Date:new Date(+we)),we}return ze.floor=function(we){return re(we=new Date(+we)),we},ze.ceil=function(we){return re(we=new Date(we-1)),pe(we,1),re(we),we},ze.round=function(we){var me=ze(we),Le=ze.ceil(we);return we-me0))return Ne;do Ne.push(Je=new Date(+we)),pe(we,Le),re(we);while(Je=me)for(;re(me),!we(me);)me.setTime(me-1)},function(me,Le){if(me>=me)if(Le<0)for(;++Le<=0;)for(;pe(me,-1),!we(me););else for(;--Le>=0;)for(;pe(me,1),!we(me););})},Te&&(ze.count=function(we,me){return t.setTime(+we),r.setTime(+me),re(t),re(r),Math.floor(Te(t,r))},ze.every=function(we){return we=Math.floor(we),!isFinite(we)||!(we>0)?null:we>1?ze.filter(Ce?function(me){return Ce(me)%we===0}:function(me){return ze.count(0,me)%we===0}):ze}),ze}var n=i(function(){},function(re,pe){re.setTime(+re+pe)},function(re,pe){return pe-re});n.every=function(re){return re=Math.floor(re),!isFinite(re)||!(re>0)?null:re>1?i(function(pe){pe.setTime(Math.floor(pe/re)*re)},function(pe,Te){pe.setTime(+pe+Te*re)},function(pe,Te){return(Te-pe)/re}):n};var a=n.range,o=1e3,s=6e4,l=36e5,u=864e5,c=6048e5,f=i(function(re){re.setTime(re-re.getMilliseconds())},function(re,pe){re.setTime(+re+pe*o)},function(re,pe){return(pe-re)/o},function(re){return re.getUTCSeconds()}),h=f.range,p=i(function(re){re.setTime(re-re.getMilliseconds()-re.getSeconds()*o)},function(re,pe){re.setTime(+re+pe*s)},function(re,pe){return(pe-re)/s},function(re){return re.getMinutes()}),d=p.range,v=i(function(re){re.setTime(re-re.getMilliseconds()-re.getSeconds()*o-re.getMinutes()*s)},function(re,pe){re.setTime(+re+pe*l)},function(re,pe){return(pe-re)/l},function(re){return re.getHours()}),m=v.range,g=i(function(re){re.setHours(0,0,0,0)},function(re,pe){re.setDate(re.getDate()+pe)},function(re,pe){return(pe-re-(pe.getTimezoneOffset()-re.getTimezoneOffset())*s)/u},function(re){return re.getDate()-1}),w=g.range;function _(re){return i(function(pe){pe.setDate(pe.getDate()-(pe.getDay()+7-re)%7),pe.setHours(0,0,0,0)},function(pe,Te){pe.setDate(pe.getDate()+Te*7)},function(pe,Te){return(Te-pe-(Te.getTimezoneOffset()-pe.getTimezoneOffset())*s)/c})}var b=_(0),S=_(1),x=_(2),A=_(3),T=_(4),y=_(5),E=_(6),M=b.range,C=S.range,k=x.range,D=A.range,F=T.range,P=y.range,R=E.range,L=i(function(re){re.setDate(1),re.setHours(0,0,0,0)},function(re,pe){re.setMonth(re.getMonth()+pe)},function(re,pe){return pe.getMonth()-re.getMonth()+(pe.getFullYear()-re.getFullYear())*12},function(re){return re.getMonth()}),I=L.range,B=i(function(re){re.setMonth(0,1),re.setHours(0,0,0,0)},function(re,pe){re.setFullYear(re.getFullYear()+pe)},function(re,pe){return pe.getFullYear()-re.getFullYear()},function(re){return re.getFullYear()});B.every=function(re){return!isFinite(re=Math.floor(re))||!(re>0)?null:i(function(pe){pe.setFullYear(Math.floor(pe.getFullYear()/re)*re),pe.setMonth(0,1),pe.setHours(0,0,0,0)},function(pe,Te){pe.setFullYear(pe.getFullYear()+Te*re)})};var O=B.range,$=i(function(re){re.setUTCSeconds(0,0)},function(re,pe){re.setTime(+re+pe*s)},function(re,pe){return(pe-re)/s},function(re){return re.getUTCMinutes()}),X=$.range,K=i(function(re){re.setUTCMinutes(0,0,0)},function(re,pe){re.setTime(+re+pe*l)},function(re,pe){return(pe-re)/l},function(re){return re.getUTCHours()}),G=K.range,q=i(function(re){re.setUTCHours(0,0,0,0)},function(re,pe){re.setUTCDate(re.getUTCDate()+pe)},function(re,pe){return(pe-re)/u},function(re){return re.getUTCDate()-1}),J=q.range;function N(re){return i(function(pe){pe.setUTCDate(pe.getUTCDate()-(pe.getUTCDay()+7-re)%7),pe.setUTCHours(0,0,0,0)},function(pe,Te){pe.setUTCDate(pe.getUTCDate()+Te*7)},function(pe,Te){return(Te-pe)/c})}var V=N(0),Y=N(1),H=N(2),j=N(3),Q=N(4),te=N(5),ue=N(6),ge=V.range,Ee=Y.range,xe=H.range,ce=j.range,oe=Q.range,Se=te.range,be=ue.range,fe=i(function(re){re.setUTCDate(1),re.setUTCHours(0,0,0,0)},function(re,pe){re.setUTCMonth(re.getUTCMonth()+pe)},function(re,pe){return pe.getUTCMonth()-re.getUTCMonth()+(pe.getUTCFullYear()-re.getUTCFullYear())*12},function(re){return re.getUTCMonth()}),ee=fe.range,ae=i(function(re){re.setUTCMonth(0,1),re.setUTCHours(0,0,0,0)},function(re,pe){re.setUTCFullYear(re.getUTCFullYear()+pe)},function(re,pe){return pe.getUTCFullYear()-re.getUTCFullYear()},function(re){return re.getUTCFullYear()});ae.every=function(re){return!isFinite(re=Math.floor(re))||!(re>0)?null:i(function(pe){pe.setUTCFullYear(Math.floor(pe.getUTCFullYear()/re)*re),pe.setUTCMonth(0,1),pe.setUTCHours(0,0,0,0)},function(pe,Te){pe.setUTCFullYear(pe.getUTCFullYear()+Te*re)})};var _e=ae.range;e.timeDay=g,e.timeDays=w,e.timeFriday=y,e.timeFridays=P,e.timeHour=v,e.timeHours=m,e.timeInterval=i,e.timeMillisecond=n,e.timeMilliseconds=a,e.timeMinute=p,e.timeMinutes=d,e.timeMonday=S,e.timeMondays=C,e.timeMonth=L,e.timeMonths=I,e.timeSaturday=E,e.timeSaturdays=R,e.timeSecond=f,e.timeSeconds=h,e.timeSunday=b,e.timeSundays=M,e.timeThursday=T,e.timeThursdays=F,e.timeTuesday=x,e.timeTuesdays=k,e.timeWednesday=A,e.timeWednesdays=D,e.timeWeek=b,e.timeWeeks=M,e.timeYear=B,e.timeYears=O,e.utcDay=q,e.utcDays=J,e.utcFriday=te,e.utcFridays=Se,e.utcHour=K,e.utcHours=G,e.utcMillisecond=n,e.utcMilliseconds=a,e.utcMinute=$,e.utcMinutes=X,e.utcMonday=Y,e.utcMondays=Ee,e.utcMonth=fe,e.utcMonths=ee,e.utcSaturday=ue,e.utcSaturdays=be,e.utcSecond=f,e.utcSeconds=h,e.utcSunday=V,e.utcSundays=ge,e.utcThursday=Q,e.utcThursdays=oe,e.utcTuesday=H,e.utcTuesdays=xe,e.utcWednesday=j,e.utcWednesdays=ce,e.utcWeek=V,e.utcWeeks=ge,e.utcYear=ae,e.utcYears=_e,Object.defineProperty(e,"__esModule",{value:!0})})});var K3=W((R8,rue)=>{(function(e,t){typeof R8=="object"&&typeof rue!="undefined"?t(R8,JN()):(e=e||self,t(e.d3=e.d3||{},e.d3))})(R8,function(e,t){"use strict";function r(Ie){if(0<=Ie.y&&Ie.y<100){var Ve=new Date(-1,Ie.m,Ie.d,Ie.H,Ie.M,Ie.S,Ie.L);return Ve.setFullYear(Ie.y),Ve}return new Date(Ie.y,Ie.m,Ie.d,Ie.H,Ie.M,Ie.S,Ie.L)}function i(Ie){if(0<=Ie.y&&Ie.y<100){var Ve=new Date(Date.UTC(-1,Ie.m,Ie.d,Ie.H,Ie.M,Ie.S,Ie.L));return Ve.setUTCFullYear(Ie.y),Ve}return new Date(Date.UTC(Ie.y,Ie.m,Ie.d,Ie.H,Ie.M,Ie.S,Ie.L))}function n(Ie,Ve,st){return{y:Ie,m:Ve,d:st,H:0,M:0,S:0,L:0}}function a(Ie){var Ve=Ie.dateTime,st=Ie.date,_t=Ie.time,Wt=Ie.periods,Ht=Ie.days,fr=Ie.shortDays,lr=Ie.months,Ot=Ie.shortMonths,Jt=h(Wt),Cr=p(Wt),Ge=h(Ht),Qe=p(Ht),nt=h(fr),gt=p(fr),ht=h(lr),Ft=p(lr),hr=h(Ot),Ut=p(Ot),Lr={a:as,A:ro,b:ba,B:co,c:null,d:L,e:L,f:X,g:te,G:ge,H:I,I:B,j:O,L:$,m:K,M:G,p:Us,q:Ma,Q:dt,s:St,S:q,u:J,U:N,V:Y,w:H,W:j,x:null,X:null,y:Q,Y:ue,Z:Ee,"%":mt},jr={a:el,A:Ml,b:Au,B:dl,c:null,d:xe,e:xe,f:fe,g:Le,G:Je,H:ce,I:oe,j:Se,L:be,m:ee,M:ae,p:Fe,q:ot,Q:dt,s:St,S:_e,u:re,U:pe,V:Ce,w:ze,W:we,x:null,X:null,y:me,Y:Ne,Z:rt,"%":mt},ii={a:la,A:mo,b:pn,B:zn,c:gn,d:T,e:T,f:D,g:b,G:_,H:E,I:E,j:y,L:k,m:A,M,p:ln,q:x,Q:P,s:R,S:C,u:v,U:m,V:g,w:d,W:w,x:ns,X:ua,y:b,Y:_,Z:S,"%":F};Lr.x=Fr(st,Lr),Lr.X=Fr(_t,Lr),Lr.c=Fr(Ve,Lr),jr.x=Fr(st,jr),jr.X=Fr(_t,jr),jr.c=Fr(Ve,jr);function Fr(lt,kt){return function(er){var zt=[],Ar=-1,Zt=0,wr=lt.length,Kr,ni,Si;for(er instanceof Date||(er=new Date(+er));++Ar53)return null;"w"in zt||(zt.w=1),"Z"in zt?(Zt=i(n(zt.y,0,1)),wr=Zt.getUTCDay(),Zt=wr>4||wr===0?t.utcMonday.ceil(Zt):t.utcMonday(Zt),Zt=t.utcDay.offset(Zt,(zt.V-1)*7),zt.y=Zt.getUTCFullYear(),zt.m=Zt.getUTCMonth(),zt.d=Zt.getUTCDate()+(zt.w+6)%7):(Zt=r(n(zt.y,0,1)),wr=Zt.getDay(),Zt=wr>4||wr===0?t.timeMonday.ceil(Zt):t.timeMonday(Zt),Zt=t.timeDay.offset(Zt,(zt.V-1)*7),zt.y=Zt.getFullYear(),zt.m=Zt.getMonth(),zt.d=Zt.getDate()+(zt.w+6)%7)}else("W"in zt||"U"in zt)&&("w"in zt||(zt.w="u"in zt?zt.u%7:"W"in zt?1:0),wr="Z"in zt?i(n(zt.y,0,1)).getUTCDay():r(n(zt.y,0,1)).getDay(),zt.m=0,zt.d="W"in zt?(zt.w+6)%7+zt.W*7-(wr+5)%7:zt.w+zt.U*7-(wr+6)%7);return"Z"in zt?(zt.H+=zt.Z/100|0,zt.M+=zt.Z%100,i(zt)):r(zt)}}function Xi(lt,kt,er,zt){for(var Ar=0,Zt=kt.length,wr=er.length,Kr,ni;Ar=wr)return-1;if(Kr=kt.charCodeAt(Ar++),Kr===37){if(Kr=kt.charAt(Ar++),ni=ii[Kr in o?kt.charAt(Ar++):Kr],!ni||(zt=ni(lt,er,zt))<0)return-1}else if(Kr!=er.charCodeAt(zt++))return-1}return zt}function ln(lt,kt,er){var zt=Jt.exec(kt.slice(er));return zt?(lt.p=Cr[zt[0].toLowerCase()],er+zt[0].length):-1}function la(lt,kt,er){var zt=nt.exec(kt.slice(er));return zt?(lt.w=gt[zt[0].toLowerCase()],er+zt[0].length):-1}function mo(lt,kt,er){var zt=Ge.exec(kt.slice(er));return zt?(lt.w=Qe[zt[0].toLowerCase()],er+zt[0].length):-1}function pn(lt,kt,er){var zt=hr.exec(kt.slice(er));return zt?(lt.m=Ut[zt[0].toLowerCase()],er+zt[0].length):-1}function zn(lt,kt,er){var zt=ht.exec(kt.slice(er));return zt?(lt.m=Ft[zt[0].toLowerCase()],er+zt[0].length):-1}function gn(lt,kt,er){return Xi(lt,Ve,kt,er)}function ns(lt,kt,er){return Xi(lt,st,kt,er)}function ua(lt,kt,er){return Xi(lt,_t,kt,er)}function as(lt){return fr[lt.getDay()]}function ro(lt){return Ht[lt.getDay()]}function ba(lt){return Ot[lt.getMonth()]}function co(lt){return lr[lt.getMonth()]}function Us(lt){return Wt[+(lt.getHours()>=12)]}function Ma(lt){return 1+~~(lt.getMonth()/3)}function el(lt){return fr[lt.getUTCDay()]}function Ml(lt){return Ht[lt.getUTCDay()]}function Au(lt){return Ot[lt.getUTCMonth()]}function dl(lt){return lr[lt.getUTCMonth()]}function Fe(lt){return Wt[+(lt.getUTCHours()>=12)]}function ot(lt){return 1+~~(lt.getUTCMonth()/3)}return{format:function(lt){var kt=Fr(lt+="",Lr);return kt.toString=function(){return lt},kt},parse:function(lt){var kt=Ii(lt+="",!1);return kt.toString=function(){return lt},kt},utcFormat:function(lt){var kt=Fr(lt+="",jr);return kt.toString=function(){return lt},kt},utcParse:function(lt){var kt=Ii(lt+="",!0);return kt.toString=function(){return lt},kt}}}var o={"-":"",_:" ",0:"0"},s=/^\s*\d+/,l=/^%/,u=/[\\^$*+?|[\]().{}]/g;function c(Ie,Ve,st){var _t=Ie<0?"-":"",Wt=(_t?-Ie:Ie)+"",Ht=Wt.length;return _t+(Ht68?1900:2e3),st+_t[0].length):-1}function S(Ie,Ve,st){var _t=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(Ve.slice(st,st+6));return _t?(Ie.Z=_t[1]?0:-(_t[2]+(_t[3]||"00")),st+_t[0].length):-1}function x(Ie,Ve,st){var _t=s.exec(Ve.slice(st,st+1));return _t?(Ie.q=_t[0]*3-3,st+_t[0].length):-1}function A(Ie,Ve,st){var _t=s.exec(Ve.slice(st,st+2));return _t?(Ie.m=_t[0]-1,st+_t[0].length):-1}function T(Ie,Ve,st){var _t=s.exec(Ve.slice(st,st+2));return _t?(Ie.d=+_t[0],st+_t[0].length):-1}function y(Ie,Ve,st){var _t=s.exec(Ve.slice(st,st+3));return _t?(Ie.m=0,Ie.d=+_t[0],st+_t[0].length):-1}function E(Ie,Ve,st){var _t=s.exec(Ve.slice(st,st+2));return _t?(Ie.H=+_t[0],st+_t[0].length):-1}function M(Ie,Ve,st){var _t=s.exec(Ve.slice(st,st+2));return _t?(Ie.M=+_t[0],st+_t[0].length):-1}function C(Ie,Ve,st){var _t=s.exec(Ve.slice(st,st+2));return _t?(Ie.S=+_t[0],st+_t[0].length):-1}function k(Ie,Ve,st){var _t=s.exec(Ve.slice(st,st+3));return _t?(Ie.L=+_t[0],st+_t[0].length):-1}function D(Ie,Ve,st){var _t=s.exec(Ve.slice(st,st+6));return _t?(Ie.L=Math.floor(_t[0]/1e3),st+_t[0].length):-1}function F(Ie,Ve,st){var _t=l.exec(Ve.slice(st,st+1));return _t?st+_t[0].length:-1}function P(Ie,Ve,st){var _t=s.exec(Ve.slice(st));return _t?(Ie.Q=+_t[0],st+_t[0].length):-1}function R(Ie,Ve,st){var _t=s.exec(Ve.slice(st));return _t?(Ie.s=+_t[0],st+_t[0].length):-1}function L(Ie,Ve){return c(Ie.getDate(),Ve,2)}function I(Ie,Ve){return c(Ie.getHours(),Ve,2)}function B(Ie,Ve){return c(Ie.getHours()%12||12,Ve,2)}function O(Ie,Ve){return c(1+t.timeDay.count(t.timeYear(Ie),Ie),Ve,3)}function $(Ie,Ve){return c(Ie.getMilliseconds(),Ve,3)}function X(Ie,Ve){return $(Ie,Ve)+"000"}function K(Ie,Ve){return c(Ie.getMonth()+1,Ve,2)}function G(Ie,Ve){return c(Ie.getMinutes(),Ve,2)}function q(Ie,Ve){return c(Ie.getSeconds(),Ve,2)}function J(Ie){var Ve=Ie.getDay();return Ve===0?7:Ve}function N(Ie,Ve){return c(t.timeSunday.count(t.timeYear(Ie)-1,Ie),Ve,2)}function V(Ie){var Ve=Ie.getDay();return Ve>=4||Ve===0?t.timeThursday(Ie):t.timeThursday.ceil(Ie)}function Y(Ie,Ve){return Ie=V(Ie),c(t.timeThursday.count(t.timeYear(Ie),Ie)+(t.timeYear(Ie).getDay()===4),Ve,2)}function H(Ie){return Ie.getDay()}function j(Ie,Ve){return c(t.timeMonday.count(t.timeYear(Ie)-1,Ie),Ve,2)}function Q(Ie,Ve){return c(Ie.getFullYear()%100,Ve,2)}function te(Ie,Ve){return Ie=V(Ie),c(Ie.getFullYear()%100,Ve,2)}function ue(Ie,Ve){return c(Ie.getFullYear()%1e4,Ve,4)}function ge(Ie,Ve){var st=Ie.getDay();return Ie=st>=4||st===0?t.timeThursday(Ie):t.timeThursday.ceil(Ie),c(Ie.getFullYear()%1e4,Ve,4)}function Ee(Ie){var Ve=Ie.getTimezoneOffset();return(Ve>0?"-":(Ve*=-1,"+"))+c(Ve/60|0,"0",2)+c(Ve%60,"0",2)}function xe(Ie,Ve){return c(Ie.getUTCDate(),Ve,2)}function ce(Ie,Ve){return c(Ie.getUTCHours(),Ve,2)}function oe(Ie,Ve){return c(Ie.getUTCHours()%12||12,Ve,2)}function Se(Ie,Ve){return c(1+t.utcDay.count(t.utcYear(Ie),Ie),Ve,3)}function be(Ie,Ve){return c(Ie.getUTCMilliseconds(),Ve,3)}function fe(Ie,Ve){return be(Ie,Ve)+"000"}function ee(Ie,Ve){return c(Ie.getUTCMonth()+1,Ve,2)}function ae(Ie,Ve){return c(Ie.getUTCMinutes(),Ve,2)}function _e(Ie,Ve){return c(Ie.getUTCSeconds(),Ve,2)}function re(Ie){var Ve=Ie.getUTCDay();return Ve===0?7:Ve}function pe(Ie,Ve){return c(t.utcSunday.count(t.utcYear(Ie)-1,Ie),Ve,2)}function Te(Ie){var Ve=Ie.getUTCDay();return Ve>=4||Ve===0?t.utcThursday(Ie):t.utcThursday.ceil(Ie)}function Ce(Ie,Ve){return Ie=Te(Ie),c(t.utcThursday.count(t.utcYear(Ie),Ie)+(t.utcYear(Ie).getUTCDay()===4),Ve,2)}function ze(Ie){return Ie.getUTCDay()}function we(Ie,Ve){return c(t.utcMonday.count(t.utcYear(Ie)-1,Ie),Ve,2)}function me(Ie,Ve){return c(Ie.getUTCFullYear()%100,Ve,2)}function Le(Ie,Ve){return Ie=Te(Ie),c(Ie.getUTCFullYear()%100,Ve,2)}function Ne(Ie,Ve){return c(Ie.getUTCFullYear()%1e4,Ve,4)}function Je(Ie,Ve){var st=Ie.getUTCDay();return Ie=st>=4||st===0?t.utcThursday(Ie):t.utcThursday.ceil(Ie),c(Ie.getUTCFullYear()%1e4,Ve,4)}function rt(){return"+0000"}function mt(){return"%"}function dt(Ie){return+Ie}function St(Ie){return Math.floor(+Ie/1e3)}var Ke;bt({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 bt(Ie){return Ke=a(Ie),e.timeFormat=Ke.format,e.timeParse=Ke.parse,e.utcFormat=Ke.utcFormat,e.utcParse=Ke.utcParse,Ke}var pt="%Y-%m-%dT%H:%M:%S.%LZ";function Oe(Ie){return Ie.toISOString()}var Ue=Date.prototype.toISOString?Oe:e.utcFormat(pt);function je(Ie){var Ve=new Date(Ie);return isNaN(Ve)?null:Ve}var $e=+new Date("2000-01-01T00:00:00.000Z")?je:e.utcParse(pt);e.isoFormat=Ue,e.isoParse=$e,e.timeFormatDefaultLocale=bt,e.timeFormatLocale=a,Object.defineProperty(e,"__esModule",{value:!0})})});var QN=W((z8,iue)=>{(function(e,t){typeof z8=="object"&&typeof iue!="undefined"?t(z8):(e=typeof globalThis!="undefined"?globalThis:e||self,t(e.d3=e.d3||{}))})(z8,(function(e){"use strict";function t(A){return Math.abs(A=Math.round(A))>=1e21?A.toLocaleString("en").replace(/,/g,""):A.toString(10)}function r(A,T){if((y=(A=T?A.toExponential(T-1):A.toExponential()).indexOf("e"))<0)return null;var y,E=A.slice(0,y);return[E.length>1?E[0]+E.slice(2):E,+A.slice(y+1)]}function i(A){return A=r(Math.abs(A)),A?A[1]:NaN}function n(A,T){return function(y,E){for(var M=y.length,C=[],k=0,D=A[0],F=0;M>0&&D>0&&(F+D+1>E&&(D=Math.max(1,E-F)),C.push(y.substring(M-=D,M+D)),!((F+=D+1)>E));)D=A[k=(k+1)%A.length];return C.reverse().join(T)}}function a(A){return function(T){return T.replace(/[0-9]/g,function(y){return A[+y]})}}var o=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function s(A){if(!(T=o.exec(A)))throw new Error("invalid format: "+A);var T;return new l({fill:T[1],align:T[2],sign:T[3],symbol:T[4],zero:T[5],width:T[6],comma:T[7],precision:T[8]&&T[8].slice(1),trim:T[9],type:T[10]})}s.prototype=l.prototype;function l(A){this.fill=A.fill===void 0?" ":A.fill+"",this.align=A.align===void 0?">":A.align+"",this.sign=A.sign===void 0?"-":A.sign+"",this.symbol=A.symbol===void 0?"":A.symbol+"",this.zero=!!A.zero,this.width=A.width===void 0?void 0:+A.width,this.comma=!!A.comma,this.precision=A.precision===void 0?void 0:+A.precision,this.trim=!!A.trim,this.type=A.type===void 0?"":A.type+""}l.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 u(A){e:for(var T=A.length,y=1,E=-1,M;y0&&(E=0);break}return E>0?A.slice(0,E)+A.slice(M+1):A}var c;function f(A,T){var y=r(A,T);if(!y)return A+"";var E=y[0],M=y[1],C=M-(c=Math.max(-8,Math.min(8,Math.floor(M/3)))*3)+1,k=E.length;return C===k?E:C>k?E+new Array(C-k+1).join("0"):C>0?E.slice(0,C)+"."+E.slice(C):"0."+new Array(1-C).join("0")+r(A,Math.max(0,T+C-1))[0]}function h(A,T){var y=r(A,T);if(!y)return A+"";var E=y[0],M=y[1];return M<0?"0."+new Array(-M).join("0")+E:E.length>M+1?E.slice(0,M+1)+"."+E.slice(M+1):E+new Array(M-E.length+2).join("0")}var p={"%":function(A,T){return(A*100).toFixed(T)},b:function(A){return Math.round(A).toString(2)},c:function(A){return A+""},d:t,e:function(A,T){return A.toExponential(T)},f:function(A,T){return A.toFixed(T)},g:function(A,T){return A.toPrecision(T)},o:function(A){return Math.round(A).toString(8)},p:function(A,T){return h(A*100,T)},r:h,s:f,X:function(A){return Math.round(A).toString(16).toUpperCase()},x:function(A){return Math.round(A).toString(16)}};function d(A){return A}var v=Array.prototype.map,m=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function g(A){var T=A.grouping===void 0||A.thousands===void 0?d:n(v.call(A.grouping,Number),A.thousands+""),y=A.currency===void 0?"":A.currency[0]+"",E=A.currency===void 0?"":A.currency[1]+"",M=A.decimal===void 0?".":A.decimal+"",C=A.numerals===void 0?d:a(v.call(A.numerals,String)),k=A.percent===void 0?"%":A.percent+"",D=A.minus===void 0?"-":A.minus+"",F=A.nan===void 0?"NaN":A.nan+"";function P(L){L=s(L);var I=L.fill,B=L.align,O=L.sign,$=L.symbol,X=L.zero,K=L.width,G=L.comma,q=L.precision,J=L.trim,N=L.type;N==="n"?(G=!0,N="g"):p[N]||(q===void 0&&(q=12),J=!0,N="g"),(X||I==="0"&&B==="=")&&(X=!0,I="0",B="=");var V=$==="$"?y:$==="#"&&/[boxX]/.test(N)?"0"+N.toLowerCase():"",Y=$==="$"?E:/[%p]/.test(N)?k:"",H=p[N],j=/[defgprs%]/.test(N);q=q===void 0?6:/[gprs]/.test(N)?Math.max(1,Math.min(21,q)):Math.max(0,Math.min(20,q));function Q(te){var ue=V,ge=Y,Ee,xe,ce;if(N==="c")ge=H(te)+ge,te="";else{te=+te;var oe=te<0||1/te<0;if(te=isNaN(te)?F:H(Math.abs(te),q),J&&(te=u(te)),oe&&+te==0&&O!=="+"&&(oe=!1),ue=(oe?O==="("?O:D:O==="-"||O==="("?"":O)+ue,ge=(N==="s"?m[8+c/3]:"")+ge+(oe&&O==="("?")":""),j){for(Ee=-1,xe=te.length;++Eece||ce>57){ge=(ce===46?M+te.slice(Ee+1):te.slice(Ee))+ge,te=te.slice(0,Ee);break}}}G&&!X&&(te=T(te,1/0));var Se=ue.length+te.length+ge.length,be=Se>1)+ue+te+ge+be.slice(Se);break;default:te=be+ue+te+ge;break}return C(te)}return Q.toString=function(){return L+""},Q}function R(L,I){var B=P((L=s(L),L.type="f",L)),O=Math.max(-8,Math.min(8,Math.floor(i(I)/3)))*3,$=Math.pow(10,-O),X=m[8+O/3];return function(K){return B($*K)+X}}return{format:P,formatPrefix:R}}var w;_({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function _(A){return w=g(A),e.format=w.format,e.formatPrefix=w.formatPrefix,w}function b(A){return Math.max(0,-i(Math.abs(A)))}function S(A,T){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(i(T)/3)))*3-i(Math.abs(A)))}function x(A,T){return A=Math.abs(A),T=Math.abs(T)-A,Math.max(0,i(T)-i(A))+1}e.FormatSpecifier=l,e.formatDefaultLocale=_,e.formatLocale=g,e.formatSpecifier=s,e.precisionFixed=b,e.precisionPrefix=S,e.precisionRound=x,Object.defineProperty(e,"__esModule",{value:!0})}))});var aue=W((Ezr,nue)=>{"use strict";nue.exports=function(e){for(var t=e.length,r,i=0;i13)&&r!==32&&r!==133&&r!==160&&r!==5760&&r!==6158&&(r<8192||r>8205)&&r!==8232&&r!==8233&&r!==8239&&r!==8287&&r!==8288&&r!==12288&&r!==65279)return!1;return!0}});var hn=W((kzr,oue)=>{"use strict";var jgt=aue();oue.exports=function(e){var t=typeof e;if(t==="string"){var r=e;if(e=+e,e===0&&jgt(r))return!1}else if(t!=="number")return!1;return e-e<1}});var ia={};Jn(ia,{ALMOST_EQUAL:()=>cmt,BADNUM:()=>eU,EPOCHJD:()=>umt,FP_SAFE:()=>$gt,LOG_CLIP:()=>fmt,MINUS_SIGN:()=>hmt,ONEAVGMONTH:()=>emt,ONEAVGQUARTER:()=>Kgt,ONEAVGYEAR:()=>Ygt,ONEDAY:()=>imt,ONEHOUR:()=>nmt,ONEMAXMONTH:()=>Qgt,ONEMAXQUARTER:()=>Zgt,ONEMAXYEAR:()=>Wgt,ONEMICROSEC:()=>lmt,ONEMILLI:()=>smt,ONEMIN:()=>amt,ONEMINMONTH:()=>tmt,ONEMINQUARTER:()=>Jgt,ONEMINYEAR:()=>Xgt,ONESEC:()=>omt,ONEWEEK:()=>rmt});var eU,$gt,Wgt,Ygt,Xgt,Zgt,Kgt,Jgt,Qgt,emt,tmt,rmt,imt,nmt,amt,omt,smt,lmt,umt,cmt,fmt,hmt,ra=Ci(()=>{"use strict";eU=void 0,$gt=Number.MAX_VALUE*1e-4,Wgt=316224e5,Ygt=315576e5,Xgt=31536e6,Zgt=79488e5,Kgt=78894e5,Jgt=76896e5,Qgt=26784e5,emt=26298e5,tmt=24192e5,rmt=6048e5,imt=864e5,nmt=36e5,amt=6e4,omt=1e3,smt=1,lmt=.001,umt=24405875e-1,cmt=1-1e-6,fmt=10,hmt="\u2212"});var tU=W((B8,sue)=>{(function(e,t){typeof B8=="object"&&typeof sue!="undefined"?t(B8):(e=typeof globalThis!="undefined"?globalThis:e||self,t(e["base64-arraybuffer"]={}))})(B8,(function(e){"use strict";for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),i=0;i>2],c+=t[(s[l]&3)<<4|s[l+1]>>4],c+=t[(s[l+1]&15)<<2|s[l+2]>>6],c+=t[s[l+2]&63];return u%3===2?c=c.substring(0,c.length-1)+"=":u%3===1&&(c=c.substring(0,c.length-2)+"=="),c},a=function(o){var s=o.length*.75,l=o.length,u,c=0,f,h,p,d;o[o.length-1]==="="&&(s--,o[o.length-2]==="="&&s--);var v=new ArrayBuffer(s),m=new Uint8Array(v);for(u=0;u>4,m[c++]=(h&15)<<4|p>>2,m[c++]=(p&3)<<6|d&63;return v};e.decode=a,e.encode=n,Object.defineProperty(e,"__esModule",{value:!0})}))});var my=W((Czr,lue)=>{"use strict";lue.exports=function(t){return window&&window.process&&window.process.versions?Object.prototype.toString.call(t)==="[object Object]":Object.prototype.toString.call(t)==="[object Object]"&&Object.getPrototypeOf(t).hasOwnProperty("hasOwnProperty")}});var Tc=W(Up=>{"use strict";var dmt=tU().decode,pmt=my(),rU=Array.isArray,vmt=ArrayBuffer,gmt=DataView;function uue(e){return vmt.isView(e)&&!(e instanceof gmt)}Up.isTypedArray=uue;function q8(e){return rU(e)||uue(e)}Up.isArrayOrTypedArray=q8;function mmt(e){return!q8(e[0])}Up.isArray1D=mmt;Up.ensureArray=function(e,t){return rU(e)||(e=[]),e.length=t,e};var nc={u1c:typeof Uint8ClampedArray=="undefined"?void 0:Uint8ClampedArray,i1:typeof Int8Array=="undefined"?void 0:Int8Array,u1:typeof Uint8Array=="undefined"?void 0:Uint8Array,i2:typeof Int16Array=="undefined"?void 0:Int16Array,u2:typeof Uint16Array=="undefined"?void 0:Uint16Array,i4:typeof Int32Array=="undefined"?void 0:Int32Array,u4:typeof Uint32Array=="undefined"?void 0:Uint32Array,f4:typeof Float32Array=="undefined"?void 0:Float32Array,f8:typeof Float64Array=="undefined"?void 0:Float64Array};nc.uint8c=nc.u1c;nc.uint8=nc.u1;nc.int8=nc.i1;nc.uint16=nc.u2;nc.int16=nc.i2;nc.uint32=nc.u4;nc.int32=nc.i4;nc.float32=nc.f4;nc.float64=nc.f8;function iU(e){return e.constructor===ArrayBuffer}Up.isArrayBuffer=iU;Up.decodeTypedArraySpec=function(e){var t=[],r=ymt(e),i=r.dtype,n=nc[i];if(!n)throw new Error('Error in dtype: "'+i+'"');var a=n.BYTES_PER_ELEMENT,o=r.bdata;iU(o)||(o=dmt(o));var s=r.shape===void 0?[o.byteLength/a]:(""+r.shape).split(",");s.reverse();var l=s.length,u,c,f=+s[0],h=a*f,p=0;if(l===1)t=new n(o);else if(l===2)for(u=+s[1],c=0;c{"use strict";var fue=hn(),aU=Tc().isArrayOrTypedArray;vue.exports=function(t,r){if(fue(r))r=String(r);else if(typeof r!="string"||r.slice(-4)==="[-1]")throw"bad property string";var i=r.split("."),n,a,o,s;for(s=0;s{"use strict";var J3=U6(),Tmt=/^\w*$/,Amt=0,gue=1,O8=2,mue=3,Nx=4;yue.exports=function(t,r,i,n){i=i||"name",n=n||"value";var a,o,s,l={};r&&r.length?(s=J3(t,r),o=s.get()):o=t,r=r||"";var u={};if(o)for(a=0;a2)return l[p]=l[p]|O8,f.set(h,null);if(c){for(a=p;a{"use strict";var Mmt=/^(.*)(\.[^\.\[\]]+|\[\d\])$/,Smt=/^[^\.\[\]]+$/;bue.exports=function(e,t){for(;t;){var r=e.match(Mmt);if(r)e=r[1];else if(e.match(Smt))e="";else throw new Error("bad relativeAttr call:"+[e,t]);if(t.charAt(0)==="^")t=t.slice(1);else break}return e&&t.charAt(0)!=="["?e+"."+t:e+t}});var N8=W((Izr,wue)=>{"use strict";var Emt=hn();wue.exports=function(t,r){if(t>0)return Math.log(t)/Math.LN10;var i=Math.log(Math.min(r[0],r[1]))/Math.LN10;return Emt(i)||(i=Math.log(Math.max(r[0],r[1]))/Math.LN10-6),i}});var Mue=W((Rzr,Aue)=>{"use strict";var Tue=Tc().isArrayOrTypedArray,V6=my();Aue.exports=function e(t,r){for(var i in r){var n=r[i],a=t[i];if(a!==n)if(i.charAt(0)==="_"||typeof n=="function"){if(i in t)continue;t[i]=n}else if(Tue(n)&&Tue(a)&&V6(n[0])){if(i==="customdata"||i==="ids")continue;for(var o=Math.min(n.length,a.length),s=0;skmt,modHalf:()=>Cmt});function kmt(e,t){let r=e%t;return r<0?r+t:r}function Cmt(e,t){return Math.abs(e)>t/2?e-Math.round(e/t)*t:e}var ew=Ci(()=>{"use strict"});var an=W(j6=>{"use strict";var Sue=my(),G6=Array.isArray;function Dmt(e,t){var r,i;for(r=0;r{"use strict";Eue.exports=function(e){var t=e.variantValues,r=e.editType,i=e.colorEditType;i===void 0&&(i=r);var n={editType:r,valType:"integer",min:1,max:1e3,extras:["normal","bold"],dflt:"normal"};e.noNumericWeightValues&&(n.valType="enumerated",n.values=n.extras,n.extras=void 0,n.min=void 0,n.max=void 0);var a={family:{valType:"string",noBlank:!0,strict:!0,editType:r},size:{valType:"number",min:1,editType:r},color:{valType:"color",editType:i},weight:n,style:{editType:r,valType:"enumerated",values:["normal","italic"],dflt:"normal"},variant:e.noFontVariant?void 0:{editType:r,valType:"enumerated",values:t||["normal","small-caps","all-small-caps","all-petite-caps","petite-caps","unicase"],dflt:"normal"},textcase:e.noFontTextcase?void 0:{editType:r,valType:"enumerated",values:["normal","word caps","upper","lower"],dflt:"normal"},lineposition:e.noFontLineposition?void 0:{editType:r,valType:"flaglist",flags:["under","over","through"],extras:["none"],dflt:"none"},shadow:e.noFontShadow?void 0:{editType:r,valType:"string",dflt:e.autoShadowDflt?"auto":"none"},editType:r};return e.autoSize&&(a.size.dflt="auto"),e.autoColor&&(a.color.dflt="auto"),e.arrayOk&&(a.family.arrayOk=!0,a.weight.arrayOk=!0,a.style.arrayOk=!0,e.noFontVariant||(a.variant.arrayOk=!0),e.noFontTextcase||(a.textcase.arrayOk=!0),e.noFontLineposition||(a.lineposition.arrayOk=!0),e.noFontShadow||(a.shadow.arrayOk=!0),a.size.arrayOk=!0,a.color.arrayOk=!0),a}});var $6={};Jn($6,{HOVERARROWSIZE:()=>Lmt,HOVERFONT:()=>Rmt,HOVERFONTSIZE:()=>Imt,HOVERID:()=>Bmt,HOVERMINTIME:()=>zmt,HOVERTEXTPAD:()=>Pmt,YANGLE:()=>Fmt});var Fmt,Lmt,Pmt,Imt,Rmt,zmt,Bmt,W6=Ci(()=>{"use strict";Fmt=60,Lmt=6,Pmt=3,Imt=13,Rmt="Arial, sans-serif",zmt=50,Bmt="-hover"});var yy=W((qzr,Due)=>{"use strict";var kue=(W6(),Pt($6)),Cue=jo(),oU=Cue({editType:"none"});oU.family.dflt=kue.HOVERFONT;oU.size.dflt=kue.HOVERFONTSIZE;Due.exports={clickmode:{valType:"flaglist",flags:["event","select"],dflt:"event",editType:"plot",extras:["none"]},dragmode:{valType:"enumerated",values:["zoom","pan","select","lasso","drawclosedpath","drawopenpath","drawline","drawrect","drawcircle","orbit","turntable",!1],dflt:"zoom",editType:"modebar"},hovermode:{valType:"enumerated",values:["x","y","closest",!1,"x unified","y unified"],dflt:"closest",editType:"modebar"},hoversort:{valType:"enumerated",values:["trace","value descending","value ascending"],dflt:"trace",editType:"none"},hoversubplots:{valType:"enumerated",values:["single","overlaying","axis"],dflt:"overlaying",editType:"none"},hoveranywhere:{valType:"boolean",dflt:!1,editType:"none"},clickanywhere:{valType:"boolean",dflt:!1,editType:"none"},hoverdistance:{valType:"integer",min:-1,dflt:20,editType:"none"},spikedistance:{valType:"integer",min:-1,dflt:-1,editType:"none"},hoverlabel:{bgcolor:{valType:"color",editType:"none"},bordercolor:{valType:"color",editType:"none"},font:oU,grouptitlefont:Cue({editType:"none"}),align:{valType:"enumerated",values:["left","right","auto"],dflt:"auto",editType:"none"},namelength:{valType:"integer",min:-1,dflt:15,editType:"none"},showarrow:{valType:"boolean",dflt:!0,editType:"none"},editType:"none"},selectdirection:{valType:"enumerated",values:["h","v","d","any"],dflt:"any",editType:"none"}}});var tw=W((Ozr,Fue)=>{"use strict";var qmt=jo(),Y6=yy().hoverlabel,X6=an().extendFlat;Fue.exports={hoverlabel:{bgcolor:X6({},Y6.bgcolor,{arrayOk:!0}),bordercolor:X6({},Y6.bordercolor,{arrayOk:!0}),font:qmt({arrayOk:!0,editType:"none"}),align:X6({},Y6.align,{arrayOk:!0}),namelength:X6({},Y6.namelength,{arrayOk:!0}),showarrow:X6({},Y6.showarrow),editType:"none"}}});var Ja=W((Nzr,Lue)=>{"use strict";var Omt=jo(),Nmt=tw();Lue.exports={type:{valType:"enumerated",values:[],dflt:"scatter",editType:"calc+clearAxisTypes",_noTemplating:!0},visible:{valType:"enumerated",values:[!0,!1,"legendonly"],dflt:!0,editType:"calc"},showlegend:{valType:"boolean",dflt:!0,editType:"style"},legend:{valType:"subplotid",dflt:"legend",editType:"style"},legendgroup:{valType:"string",dflt:"",editType:"style"},legendgrouptitle:{text:{valType:"string",dflt:"",editType:"style"},font:Omt({editType:"style"}),editType:"style"},legendrank:{valType:"number",dflt:1e3,editType:"style"},legendwidth:{valType:"number",min:0,editType:"style"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"style"},name:{valType:"string",editType:"style"},uid:{valType:"string",editType:"plot",anim:!0},ids:{valType:"data_array",editType:"calc",anim:!0},customdata:{valType:"data_array",editType:"calc"},meta:{valType:"any",arrayOk:!0,editType:"plot"},selectedpoints:{valType:"any",editType:"calc"},hoverinfo:{valType:"flaglist",flags:["x","y","z","text","name"],extras:["all","none","skip"],arrayOk:!0,dflt:"all",editType:"none"},hoverlabel:Nmt.hoverlabel,uirevision:{valType:"any",editType:"none"}}});var Afe=W((Wzr,Tfe)=>{var JU=Object.defineProperty,Umt=Object.getOwnPropertyDescriptor,Vmt=Object.getOwnPropertyNames,Gmt=Object.prototype.hasOwnProperty,Hmt=(e,t)=>{for(var r in t)JU(e,r,{get:t[r],enumerable:!0})},jmt=(e,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of Vmt(t))!Gmt.call(e,n)&&n!==r&&JU(e,n,{get:()=>t[n],enumerable:!(i=Umt(t,n))||i.enumerable});return e},$mt=e=>jmt(JU({},"__esModule",{value:!0}),e),Vue={};Hmt(Vue,{a98:()=>Bbt,average:()=>Vyt,averageAngle:()=>c1,averageNumber:()=>ace,blend:()=>Uxt,blerp:()=>LU,clampChroma:()=>sbt,clampGamut:()=>MV,clampRgb:()=>obt,colorsNamed:()=>Hue,convertA98ToXyz65:()=>PU,convertCubehelixToRgb:()=>ice,convertDlchToLab65:()=>X8,convertHsiToRgb:()=>dce,convertHslToRgb:()=>gce,convertHsvToRgb:()=>nV,convertHwbToRgb:()=>bce,convertItpToXyz65:()=>RU,convertJabToJch:()=>BU,convertJabToRgb:()=>cV,convertJabToXyz65:()=>lV,convertJchToJab:()=>qU,convertLab65ToDlch:()=>Z8,convertLab65ToRgb:()=>iA,convertLab65ToXyz65:()=>tV,convertLabToLch:()=>zg,convertLabToRgb:()=>hV,convertLabToXyz50:()=>oD,convertLchToLab:()=>Bg,convertLchuvToLuv:()=>vV,convertLrgbToOklab:()=>gV,convertLrgbToRgb:()=>Wx,convertLuvToLchuv:()=>pV,convertLuvToXyz50:()=>J8,convertOkhslToOklab:()=>UU,convertOkhsvToOklab:()=>GU,convertOklabToLrgb:()=>uw,convertOklabToOkhsl:()=>NU,convertOklabToOkhsv:()=>VU,convertOklabToRgb:()=>oA,convertP3ToXyz65:()=>HU,convertProphotoToXyz50:()=>WU,convertRec2020ToXyz65:()=>XU,convertRgbToCubehelix:()=>rce,convertRgbToHsi:()=>pce,convertRgbToHsl:()=>mce,convertRgbToHsv:()=>aV,convertRgbToHwb:()=>_ce,convertRgbToJab:()=>uV,convertRgbToLab:()=>dV,convertRgbToLab65:()=>nA,convertRgbToLrgb:()=>$x,convertRgbToOklab:()=>aA,convertRgbToXyb:()=>Xce,convertRgbToXyz50:()=>lw,convertRgbToXyz65:()=>xy,convertRgbToYiq:()=>rfe,convertXybToRgb:()=>Zce,convertXyz50ToLab:()=>sD,convertXyz50ToLuv:()=>K8,convertXyz50ToProphoto:()=>$U,convertXyz50ToRgb:()=>sw,convertXyz50ToXyz65:()=>efe,convertXyz65ToA98:()=>IU,convertXyz65ToItp:()=>zU,convertXyz65ToJab:()=>sV,convertXyz65ToLab65:()=>rV,convertXyz65ToP3:()=>jU,convertXyz65ToRec2020:()=>YU,convertXyz65ToRgb:()=>by,convertXyz65ToXyz50:()=>Qce,convertYiqToRgb:()=>ife,converter:()=>_s,cubehelix:()=>qbt,differenceCie76:()=>Ryt,differenceCie94:()=>zyt,differenceCiede2000:()=>Byt,differenceCmc:()=>qyt,differenceEuclidean:()=>ow,differenceHueChroma:()=>rA,differenceHueNaive:()=>nce,differenceHueSaturation:()=>tA,differenceHyab:()=>Oyt,differenceItp:()=>Uyt,differenceKotsarenkoRamos:()=>Nyt,displayable:()=>AV,dlab:()=>Obt,dlch:()=>Nbt,easingGamma:()=>yfe,easingInOutSine:()=>Rbt,easingMidpoint:()=>ffe,easingSmootherstep:()=>Pbt,easingSmoothstep:()=>Dbt,easingSmoothstepInverse:()=>Fbt,filterBrightness:()=>gbt,filterContrast:()=>mbt,filterDeficiencyDeuter:()=>kbt,filterDeficiencyProt:()=>Ebt,filterDeficiencyTrit:()=>Cbt,filterGrayscale:()=>bbt,filterHueRotate:()=>wbt,filterInvert:()=>_bt,filterSaturate:()=>xbt,filterSepia:()=>ybt,fixupAlpha:()=>Ru,fixupHueDecreasing:()=>Dyt,fixupHueIncreasing:()=>Cyt,fixupHueLonger:()=>kyt,fixupHueShorter:()=>u1,formatCss:()=>Ixt,formatHex:()=>Rxt,formatHex8:()=>zxt,formatHsl:()=>qxt,formatRgb:()=>Bxt,getMode:()=>Tf,hsi:()=>Ubt,hsl:()=>Vbt,hsv:()=>Gbt,hwb:()=>Hbt,inGamut:()=>cD,interpolate:()=>Zxt,interpolateWith:()=>dfe,interpolateWithPremultipliedAlpha:()=>Kxt,interpolatorLinear:()=>Gi,interpolatorPiecewise:()=>ece,interpolatorSplineBasis:()=>vfe,interpolatorSplineBasisClosed:()=>gfe,interpolatorSplineMonotone:()=>ebt,interpolatorSplineMonotone2:()=>tbt,interpolatorSplineMonotoneClosed:()=>rbt,interpolatorSplineNatural:()=>Jxt,interpolatorSplineNaturalClosed:()=>Qxt,itp:()=>jbt,jab:()=>$bt,jch:()=>Wbt,lab:()=>Ybt,lab65:()=>Xbt,lch:()=>Zbt,lch65:()=>Kbt,lchuv:()=>Jbt,lerp:()=>Vx,lrgb:()=>Qbt,luv:()=>e_t,mapAlphaDivide:()=>cfe,mapAlphaMultiply:()=>ufe,mapTransferGamma:()=>$xt,mapTransferLinear:()=>_V,mapper:()=>sA,modeA98:()=>tce,modeCubehelix:()=>oce,modeDlab:()=>fce,modeDlch:()=>hce,modeHsi:()=>vce,modeHsl:()=>iV,modeHsv:()=>oV,modeHwb:()=>Tce,modeItp:()=>Sce,modeJab:()=>Ece,modeJch:()=>kce,modeLab:()=>lD,modeLab65:()=>Dce,modeLch:()=>uD,modeLch65:()=>Lce,modeLchuv:()=>Rce,modeLrgb:()=>zce,modeLuv:()=>Bce,modeOkhsl:()=>Oce,modeOkhsv:()=>Nce,modeOklab:()=>Vce,modeOklch:()=>Hce,modeP3:()=>jce,modeProphoto:()=>$ce,modeRec2020:()=>Wce,modeRgb:()=>jx,modeXyb:()=>Kce,modeXyz50:()=>Jce,modeXyz65:()=>tfe,modeYiq:()=>nfe,nearest:()=>cbt,okhsl:()=>t_t,okhsv:()=>r_t,oklab:()=>i_t,oklch:()=>n_t,p3:()=>a_t,parse:()=>Kue,parseHex:()=>$ue,parseHsl:()=>xce,parseHslLegacy:()=>yce,parseHwb:()=>wce,parseLab:()=>Cce,parseLch:()=>Fce,parseNamed:()=>jue,parseOklab:()=>Uce,parseOklch:()=>Gce,parseRgb:()=>Jue,parseRgbLegacy:()=>Wue,parseTransparent:()=>Que,prophoto:()=>o_t,random:()=>jxt,rec2020:()=>s_t,removeParser:()=>oyt,rgb:()=>l_t,round:()=>afe,samples:()=>abt,serializeHex:()=>bV,serializeHex8:()=>ofe,serializeHsl:()=>lfe,serializeRgb:()=>sfe,toGamut:()=>lbt,trilerp:()=>myt,unlerp:()=>gyt,useMode:()=>$o,useParser:()=>Xue,wcagContrast:()=>zbt,wcagLuminance:()=>KU,xyb:()=>u_t,xyz50:()=>c_t,xyz65:()=>f_t,yiq:()=>h_t});Tfe.exports=$mt(Vue);var Wmt=(e,t)=>{if(typeof e=="number"){if(t===3)return{mode:"rgb",r:(e>>8&15|e>>4&240)/255,g:(e>>4&15|e&240)/255,b:(e&15|e<<4&240)/255};if(t===4)return{mode:"rgb",r:(e>>12&15|e>>8&240)/255,g:(e>>8&15|e>>4&240)/255,b:(e>>4&15|e&240)/255,alpha:(e&15|e<<4&240)/255};if(t===6)return{mode:"rgb",r:(e>>16&255)/255,g:(e>>8&255)/255,b:(e&255)/255};if(t===8)return{mode:"rgb",r:(e>>24&255)/255,g:(e>>16&255)/255,b:(e>>8&255)/255,alpha:(e&255)/255}}},Gue=Wmt,Ymt={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},Hue=Ymt,Xmt=e=>Gue(Hue[e.toLowerCase()],6),jue=Xmt,Zmt=/^#?([0-9a-f]{8}|[0-9a-f]{6}|[0-9a-f]{4}|[0-9a-f]{3})$/i,Kmt=e=>{let t;return(t=e.match(Zmt))?Gue(parseInt(t[1],16),t[1].length):void 0},$ue=Kmt,Oh="([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)",Uzr=`(?:${Oh}|none)`,J6=`${Oh}%`,Vzr=`(?:${Oh}%|none)`,QU=`(?:${Oh}%|${Oh})`,Jmt=`(?:${Oh}%|${Oh}|none)`,Qmt=`(?:${Oh}(deg|grad|rad|turn)|${Oh})`,Gzr=`(?:${Oh}(deg|grad|rad|turn)|${Oh}|none)`,nw="\\s*,\\s*",Hzr=new RegExp("^"+Jmt+"$"),eyt=new RegExp(`^rgba?\\(\\s*${Oh}${nw}${Oh}${nw}${Oh}\\s*(?:,\\s*${QU}\\s*)?\\)$`),tyt=new RegExp(`^rgba?\\(\\s*${J6}${nw}${J6}${nw}${J6}\\s*(?:,\\s*${QU}\\s*)?\\)$`),ryt=e=>{let t={mode:"rgb"},r;if(r=e.match(eyt))r[1]!==void 0&&(t.r=r[1]/255),r[2]!==void 0&&(t.g=r[2]/255),r[3]!==void 0&&(t.b=r[3]/255);else if(r=e.match(tyt))r[1]!==void 0&&(t.r=r[1]/100),r[2]!==void 0&&(t.g=r[2]/100),r[3]!==void 0&&(t.b=r[3]/100);else return;return r[4]!==void 0?t.alpha=Math.max(0,Math.min(1,r[4]/100)):r[5]!==void 0&&(t.alpha=Math.max(0,Math.min(1,+r[5]))),t},Wue=ryt,iyt=(e,t)=>e===void 0?void 0:typeof e!="object"?Kue(e):e.mode!==void 0?e:t?da(fn({},e),{mode:t}):void 0,Vp=iyt,nyt=(e="rgb")=>t=>(t=Vp(t,e))!==void 0?t.mode===e?t:l1[t.mode][e]?l1[t.mode][e](t):e==="rgb"?l1[t.mode].rgb(t):l1.rgb[e](l1[t.mode].rgb(t)):void 0,_s=nyt,l1={},Yue={},aw=[],eV={},ayt=e=>e,$o=e=>(l1[e.mode]=fn(fn({},l1[e.mode]),e.toMode),Object.keys(e.fromMode||{}).forEach(t=>{l1[t]||(l1[t]={}),l1[t][e.mode]=e.fromMode[t]}),e.ranges||(e.ranges={}),e.difference||(e.difference={}),e.channels.forEach(t=>{if(e.ranges[t]===void 0&&(e.ranges[t]=[0,1]),!e.interpolate[t])throw new Error(`Missing interpolator for: ${t}`);typeof e.interpolate[t]=="function"&&(e.interpolate[t]={use:e.interpolate[t]}),e.interpolate[t].fixup||(e.interpolate[t].fixup=ayt)}),Yue[e.mode]=e,(e.parse||[]).forEach(t=>{Xue(t,e.mode)}),_s(e.mode)),Tf=e=>Yue[e],Xue=(e,t)=>{if(typeof e=="string"){if(!t)throw new Error("'mode' required when 'parser' is a string");eV[e]=t}else typeof e=="function"&&aw.indexOf(e)<0&&aw.push(e)},oyt=e=>{if(typeof e=="string")delete eV[e];else if(typeof e=="function"){let t=aw.indexOf(e);t>0&&aw.splice(t,1)}},DU=/[^\x00-\x7F]|[a-zA-Z_]/,syt=/[^\x00-\x7F]|[-\w]/,wi={Function:"function",Ident:"ident",Number:"number",Percentage:"percentage",ParenClose:")",None:"none",Hue:"hue",Alpha:"alpha"},oa=0;function U8(e){let t=e[oa],r=e[oa+1];return t==="-"||t==="+"?/\d/.test(r)||r==="."&&/\d/.test(e[oa+2]):t==="."?/\d/.test(r):/\d/.test(t)}function FU(e){if(oa>=e.length)return!1;let t=e[oa];if(DU.test(t))return!0;if(t==="-"){if(e.length-oa<2)return!1;let r=e[oa+1];return!!(r==="-"||DU.test(r))}return!1}var lyt={deg:1,rad:180/Math.PI,grad:9/10,turn:360};function Z6(e){let t="";if((e[oa]==="-"||e[oa]==="+")&&(t+=e[oa++]),t+=V8(e),e[oa]==="."&&/\d/.test(e[oa+1])&&(t+=e[oa++]+V8(e)),(e[oa]==="e"||e[oa]==="E")&&((e[oa+1]==="-"||e[oa+1]==="+")&&/\d/.test(e[oa+2])?t+=e[oa++]+e[oa++]+V8(e):/\d/.test(e[oa+1])&&(t+=e[oa++]+V8(e))),FU(e)){let r=j8(e);return r==="deg"||r==="rad"||r==="turn"||r==="grad"?{type:wi.Hue,value:t*lyt[r]}:void 0}return e[oa]==="%"?(oa++,{type:wi.Percentage,value:+t}):{type:wi.Number,value:+t}}function V8(e){let t="";for(;/\d/.test(e[oa]);)t+=e[oa++];return t}function j8(e){let t="";for(;oa4)){if(r.length===4){if(r[3].type!==wi.Alpha)return;r[3]=r[3].value}return r.length===3&&r.push({type:wi.None,value:void 0}),r.every(n=>n.type!==wi.Alpha)?r:void 0}}function hyt(e,t){e._i=0;let r=e[e._i++];if(!r||r.type!==wi.Function)return;let i=Zue(e,t);if(i)return i.unshift(r.value),i}var dyt=e=>{if(typeof e!="string")return;let t=cyt(e),r=t?hyt(t,!0):void 0,i,n=0,a=aw.length;for(;ne==="transparent"?{mode:"rgb",r:0,g:0,b:0,alpha:0}:void 0,Que=vyt,Vx=(e,t,r)=>e+r*(t-e),gyt=(e,t,r)=>(r-e)/(t-e),LU=(e,t,r,i,n,a)=>Vx(Vx(e,t,n),Vx(r,i,n),a),myt=(e,t,r,i,n,a,o,s,l,u,c)=>Vx(LU(e,t,r,i,l,u),LU(n,a,o,s,l,u),c),yyt=e=>{let t=[];for(let r=0;rt=>{let r=yyt(t);return i=>{let n=i*r.length,a=i>=1?r.length-1:Math.max(Math.floor(n),0),o=r[a];return o===void 0?void 0:e(o[0],o[1],n-a)}},Gi=ece(Vx),Ru=e=>{let t=!1,r=e.map(i=>i!==void 0?(t=!0,i):1);return t?r:e},xyt={mode:"rgb",channels:["r","g","b","alpha"],parse:[Jue,$ue,Wue,jue,Que,"srgb"],serialize:"srgb",interpolate:{r:Gi,g:Gi,b:Gi,alpha:{use:Gi,fixup:Ru}},gamut:!0,white:{r:1,g:1,b:1},black:{r:0,g:0,b:0}},jx=xyt,sU=(e=0)=>Math.pow(Math.abs(e),563/256)*Math.sign(e),byt=e=>{let t=sU(e.r),r=sU(e.g),i=sU(e.b),n={mode:"xyz65",x:.5766690429101305*t+.1855582379065463*r+.1882286462349947*i,y:.297344975250536*t+.6273635662554661*r+.0752914584939979*i,z:.0270313613864123*t+.0706888525358272*r+.9913375368376386*i};return e.alpha!==void 0&&(n.alpha=e.alpha),n},PU=byt,lU=e=>Math.pow(Math.abs(e),256/563)*Math.sign(e),_yt=({x:e,y:t,z:r,alpha:i})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let n={mode:"a98",r:lU(e*2.0415879038107465-t*.5650069742788597-.3447313507783297*r),g:lU(e*-.9692436362808798+t*1.8759675015077206+.0415550574071756*r),b:lU(e*.0134442806320312-t*.1183623922310184+1.0151749943912058*r)};return i!==void 0&&(n.alpha=i),n},IU=_yt,uU=(e=0)=>{let t=Math.abs(e);return t<=.04045?e/12.92:(Math.sign(e)||1)*Math.pow((t+.055)/1.055,2.4)},wyt=({r:e,g:t,b:r,alpha:i})=>{let n={mode:"lrgb",r:uU(e),g:uU(t),b:uU(r)};return i!==void 0&&(n.alpha=i),n},$x=wyt,Tyt=e=>{let{r:t,g:r,b:i,alpha:n}=$x(e),a={mode:"xyz65",x:.4123907992659593*t+.357584339383878*r+.1804807884018343*i,y:.2126390058715102*t+.715168678767756*r+.0721923153607337*i,z:.0193308187155918*t+.119194779794626*r+.9505321522496607*i};return n!==void 0&&(a.alpha=n),a},xy=Tyt,cU=(e=0)=>{let t=Math.abs(e);return t>.0031308?(Math.sign(e)||1)*(1.055*Math.pow(t,1/2.4)-.055):e*12.92},Ayt=({r:e,g:t,b:r,alpha:i},n="rgb")=>{let a={mode:n,r:cU(e),g:cU(t),b:cU(r)};return i!==void 0&&(a.alpha=i),a},Wx=Ayt,Myt=({x:e,y:t,z:r,alpha:i})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let n=Wx({r:e*3.2409699419045226-t*1.537383177570094-.4986107602930034*r,g:e*-.9692436362808796+t*1.8759675015077204+.0415550574071756*r,b:e*.0556300796969936-t*.2039769588889765+1.0569715142428784*r});return i!==void 0&&(n.alpha=i),n},by=Myt,Syt=da(fn({},jx),{mode:"a98",parse:["a98-rgb"],serialize:"a98-rgb",fromMode:{rgb:e=>IU(xy(e)),xyz65:IU},toMode:{rgb:e=>by(PU(e)),xyz65:PU}}),tce=Syt,Eyt=e=>(e=e%360)<0?e+360:e,ef=Eyt,eD=(e,t)=>e.map((r,i,n)=>{if(r===void 0)return r;let a=ef(r);return i===0||e[i-1]===void 0?a:t(a-ef(n[i-1]))}).reduce((r,i)=>!r.length||i===void 0||r[r.length-1]===void 0?(r.push(i),r):(r.push(i+r[r.length-1]),r),[]),u1=e=>eD(e,t=>Math.abs(t)<=180?t:t-360*Math.sign(t)),kyt=e=>eD(e,t=>Math.abs(t)>=180||t===0?t:t-360*Math.sign(t)),Cyt=e=>eD(e,t=>t>=0?t:t+360),Dyt=e=>eD(e,t=>t<=0?t:t-360),Ac=[-.14861,1.78277,-.29227,-.90649,1.97294,0],Fyt=Math.PI/180,Lyt=180/Math.PI,Pue=Ac[3]*Ac[4],Iue=Ac[1]*Ac[4],Rue=Ac[1]*Ac[2]-Ac[0]*Ac[3],Pyt=({r:e,g:t,b:r,alpha:i})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let n=(Rue*r+e*Pue-t*Iue)/(Rue+Pue-Iue),a=r-n,o=(Ac[4]*(t-n)-Ac[2]*a)/Ac[3],s={mode:"cubehelix",l:n,s:n===0||n===1?void 0:Math.sqrt(a*a+o*o)/(Ac[4]*n*(1-n))};return s.s&&(s.h=Math.atan2(o,a)*Lyt-120),i!==void 0&&(s.alpha=i),s},rce=Pyt,Iyt=({h:e,s:t,l:r,alpha:i})=>{let n={mode:"rgb"};e=(e===void 0?0:e+120)*Fyt,r===void 0&&(r=0);let a=t===void 0?0:t*r*(1-r),o=Math.cos(e),s=Math.sin(e);return n.r=r+a*(Ac[0]*o+Ac[1]*s),n.g=r+a*(Ac[2]*o+Ac[3]*s),n.b=r+a*(Ac[4]*o+Ac[5]*s),i!==void 0&&(n.alpha=i),n},ice=Iyt,tA=(e,t)=>{if(e.h===void 0||t.h===void 0||!e.s||!t.s)return 0;let r=ef(e.h),i=ef(t.h),n=Math.sin((i-r+360)/2*Math.PI/180);return 2*Math.sqrt(e.s*t.s)*n},nce=(e,t)=>{if(e.h===void 0||t.h===void 0)return 0;let r=ef(e.h),i=ef(t.h);return Math.abs(i-r)>180?r-(i-360*Math.sign(i-r)):i-r},rA=(e,t)=>{if(e.h===void 0||t.h===void 0||!e.c||!t.c)return 0;let r=ef(e.h),i=ef(t.h),n=Math.sin((i-r+360)/2*Math.PI/180);return 2*Math.sqrt(e.c*t.c)*n},ow=(e="rgb",t=[1,1,1,0])=>{let r=Tf(e),i=r.channels,n=r.difference,a=_s(e);return(o,s)=>{let l=a(o),u=a(s);return Math.sqrt(i.reduce((c,f,h)=>{let p=n[f]?n[f](l,u):l[f]-u[f];return c+(t[h]||0)*Math.pow(isNaN(p)?0:p,2)},0))}},Ryt=()=>ow("lab65"),zyt=(e=1,t=.045,r=.015)=>{let i=_s("lab65");return(n,a)=>{let o=i(n),s=i(a),l=o.l,u=o.a,c=o.b,f=Math.sqrt(u*u+c*c),h=s.l,p=s.a,d=s.b,v=Math.sqrt(p*p+d*d),m=Math.pow(l-h,2),g=Math.pow(f-v,2),w=Math.pow(u-p,2)+Math.pow(c-d,2)-g;return Math.sqrt(m/Math.pow(e,2)+g/Math.pow(1+t*f,2)+w/Math.pow(1+r*f,2))}},Byt=(e=1,t=1,r=1)=>{let i=_s("lab65");return(n,a)=>{let o=i(n),s=i(a),l=o.l,u=o.a,c=o.b,f=Math.sqrt(u*u+c*c),h=s.l,p=s.a,d=s.b,v=Math.sqrt(p*p+d*d),m=(f+v)/2,g=.5*(1-Math.sqrt(Math.pow(m,7)/(Math.pow(m,7)+Math.pow(25,7)))),w=u*(1+g),_=p*(1+g),b=Math.sqrt(w*w+c*c),S=Math.sqrt(_*_+d*d),x=Math.abs(w)+Math.abs(c)===0?0:Math.atan2(c,w);x+=(x<0)*2*Math.PI;let A=Math.abs(_)+Math.abs(d)===0?0:Math.atan2(d,_);A+=(A<0)*2*Math.PI;let T=h-l,y=S-b,E=b*S===0?0:A-x;E-=(E>Math.PI)*2*Math.PI,E+=(E<-Math.PI)*2*Math.PI;let M=2*Math.sqrt(b*S)*Math.sin(E/2),C=(l+h)/2,k=(b+S)/2,D;b*S===0?D=x+A:(D=(x+A)/2,D-=(Math.abs(x-A)>Math.PI)*Math.PI,D+=(D<0)*2*Math.PI);let F=Math.pow(C-50,2),P=1-.17*Math.cos(D-Math.PI/6)+.24*Math.cos(2*D)+.32*Math.cos(3*D+Math.PI/30)-.2*Math.cos(4*D-63*Math.PI/180),R=1+.015*F/Math.sqrt(20+F),L=1+.045*k,I=1+.015*k*P,B=30*Math.PI/180*Math.exp(-1*Math.pow((180/Math.PI*D-275)/25,2)),O=2*Math.sqrt(Math.pow(k,7)/(Math.pow(k,7)+Math.pow(25,7))),$=-1*Math.sin(2*B)*O;return Math.sqrt(Math.pow(T/(e*R),2)+Math.pow(y/(t*L),2)+Math.pow(M/(r*I),2)+$*y/(t*L)*M/(r*I))}},qyt=(e=1,t=1)=>{let r=_s("lab65");return(i,n)=>{let a=r(i),o=a.l,s=a.a,l=a.b,u=Math.sqrt(s*s+l*l),c=Math.atan2(l,s);c=c+2*Math.PI*(c<0);let f=r(n),h=f.l,p=f.a,d=f.b,v=Math.sqrt(p*p+d*d),m=Math.pow(o-h,2),g=Math.pow(u-v,2),w=Math.pow(s-p,2)+Math.pow(l-d,2)-g,_=Math.sqrt(Math.pow(u,4)/(Math.pow(u,4)+1900)),b=c>=164/180*Math.PI&&c<=345/180*Math.PI?.56+Math.abs(.2*Math.cos(c+168/180*Math.PI)):.36+Math.abs(.4*Math.cos(c+35/180*Math.PI)),S=o<16?.511:.040975*o/(1+.01765*o),x=.0638*u/(1+.0131*u)+.638,A=x*(_*b+1-_);return Math.sqrt(m/Math.pow(e*S,2)+g/Math.pow(t*x,2)+w/Math.pow(A,2))}},Oyt=()=>{let e=_s("lab65");return(t,r)=>{let i=e(t),n=e(r),a=i.l-n.l,o=i.a-n.a,s=i.b-n.b;return Math.abs(a)+Math.sqrt(o*o+s*s)}},Nyt=()=>ow("yiq",[.5053,.299,.1957]),Uyt=()=>ow("itp",[518400,129600,518400]),c1=e=>{let t=e.reduce((i,n)=>{if(n!==void 0){let a=n*Math.PI/180;i.sin+=Math.sin(a),i.cos+=Math.cos(a)}return i},{sin:0,cos:0}),r=Math.atan2(t.sin,t.cos)*180/Math.PI;return r<0?360+r:r},ace=e=>{let t=e.filter(r=>r!==void 0);return t.length?t.reduce((r,i)=>r+i,0)/t.length:void 0},fU=e=>typeof e=="function";function Vyt(e,t="rgb",r){let i=Tf(t),n=e.map(_s(t));return i.channels.reduce((a,o)=>{let s=n.map(l=>l[o]).filter(l=>l!==void 0);if(s.length){let l;fU(r)?l=r:r&&fU(r[o])?l=r[o]:i.average&&fU(i.average[o])?l=i.average[o]:l=ace,a[o]=l(s,o)}return a},{mode:t})}var Gyt={mode:"cubehelix",channels:["h","s","l","alpha"],parse:["--cubehelix"],serialize:"--cubehelix",ranges:{h:[0,360],s:[0,4.614],l:[0,1]},fromMode:{rgb:rce},toMode:{rgb:ice},interpolate:{h:{use:Gi,fixup:u1},s:Gi,l:Gi,alpha:{use:Gi,fixup:Ru}},difference:{h:tA},average:{h:c1}},oce=Gyt,Hyt=({l:e,a:t,b:r,alpha:i},n="lch")=>{t===void 0&&(t=0),r===void 0&&(r=0);let a=Math.sqrt(t*t+r*r),o={mode:n,l:e,c:a};return a&&(o.h=ef(Math.atan2(r,t)*180/Math.PI)),i!==void 0&&(o.alpha=i),o},zg=Hyt,jyt=({l:e,c:t,h:r,alpha:i},n="lab")=>{r===void 0&&(r=0);let a={mode:n,l:e,a:t?t*Math.cos(r/180*Math.PI):0,b:t?t*Math.sin(r/180*Math.PI):0};return i!==void 0&&(a.alpha=i),a},Bg=jyt,sce=Math.pow(29,3)/Math.pow(3,3),lce=Math.pow(6,3)/Math.pow(29,3),Iu={X:.3457/.3585,Y:1,Z:(1-.3457-.3585)/.3585},iw={X:.3127/.329,Y:1,Z:(1-.3127-.329)/.329},jzr=Math.pow(29,3)/Math.pow(3,3),$zr=Math.pow(6,3)/Math.pow(29,3),hU=e=>Math.pow(e,3)>lce?Math.pow(e,3):(116*e-16)/sce,$yt=({l:e,a:t,b:r,alpha:i})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let n=(e+16)/116,a=t/500+n,o=n-r/200,s={mode:"xyz65",x:hU(a)*iw.X,y:hU(n)*iw.Y,z:hU(o)*iw.Z};return i!==void 0&&(s.alpha=i),s},tV=$yt,Wyt=e=>by(tV(e)),iA=Wyt,dU=e=>e>lce?Math.cbrt(e):(sce*e+16)/116,Yyt=({x:e,y:t,z:r,alpha:i})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let n=dU(e/iw.X),a=dU(t/iw.Y),o=dU(r/iw.Z),s={mode:"lab65",l:116*a-16,a:500*(n-a),b:200*(a-o)};return i!==void 0&&(s.alpha=i),s},rV=Yyt,Xyt=e=>{let t=rV(xy(e));return e.r===e.b&&e.b===e.g&&(t.a=t.b=0),t},nA=Xyt,$8=1,uce=1,eA=26/180*Math.PI,W8=Math.cos(eA),Y8=Math.sin(eA),cce=100/Math.log(139/100),Zyt=({l:e,c:t,h:r,alpha:i})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let n={mode:"lab65",l:(Math.exp(e*$8/cce)-1)/.0039},a=(Math.exp(.0435*t*uce*$8)-1)/.075,o=a*Math.cos(r/180*Math.PI-eA),s=a*Math.sin(r/180*Math.PI-eA);return n.a=o*W8-s/.83*Y8,n.b=o*Y8+s/.83*W8,i!==void 0&&(n.alpha=i),n},X8=Zyt,Kyt=({l:e,a:t,b:r,alpha:i})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let n=t*W8+r*Y8,a=.83*(r*W8-t*Y8),o=Math.sqrt(n*n+a*a),s={mode:"dlch",l:cce/$8*Math.log(1+.0039*e),c:Math.log(1+.075*o)/(.0435*uce*$8)};return s.c&&(s.h=ef((Math.atan2(a,n)+eA)/Math.PI*180)),i!==void 0&&(s.alpha=i),s},Z8=Kyt,zue=e=>X8(zg(e,"dlch")),Bue=e=>Bg(Z8(e),"dlab"),Jyt={mode:"dlab",parse:["--din99o-lab"],serialize:"--din99o-lab",toMode:{lab65:zue,rgb:e=>iA(zue(e))},fromMode:{lab65:Bue,rgb:e=>Bue(nA(e))},channels:["l","a","b","alpha"],ranges:{l:[0,100],a:[-40.09,45.501],b:[-40.469,44.344]},interpolate:{l:Gi,a:Gi,b:Gi,alpha:{use:Gi,fixup:Ru}}},fce=Jyt,Qyt={mode:"dlch",parse:["--din99o-lch"],serialize:"--din99o-lch",toMode:{lab65:X8,dlab:e=>Bg(e,"dlab"),rgb:e=>iA(X8(e))},fromMode:{lab65:Z8,dlab:e=>zg(e,"dlch"),rgb:e=>Z8(nA(e))},channels:["l","c","h","alpha"],ranges:{l:[0,100],c:[0,51.484],h:[0,360]},interpolate:{l:Gi,c:Gi,h:{use:Gi,fixup:u1},alpha:{use:Gi,fixup:Ru}},difference:{h:rA},average:{h:c1}},hce=Qyt;function dce({h:e,s:t,i:r,alpha:i}){e=ef(e!==void 0?e:0),t===void 0&&(t=0),r===void 0&&(r=0);let n=Math.abs(e/60%2-1),a;switch(Math.floor(e/60)){case 0:a={r:r*(1+t*(3/(2-n)-1)),g:r*(1+t*(3*(1-n)/(2-n)-1)),b:r*(1-t)};break;case 1:a={r:r*(1+t*(3*(1-n)/(2-n)-1)),g:r*(1+t*(3/(2-n)-1)),b:r*(1-t)};break;case 2:a={r:r*(1-t),g:r*(1+t*(3/(2-n)-1)),b:r*(1+t*(3*(1-n)/(2-n)-1))};break;case 3:a={r:r*(1-t),g:r*(1+t*(3*(1-n)/(2-n)-1)),b:r*(1+t*(3/(2-n)-1))};break;case 4:a={r:r*(1+t*(3*(1-n)/(2-n)-1)),g:r*(1-t),b:r*(1+t*(3/(2-n)-1))};break;case 5:a={r:r*(1+t*(3/(2-n)-1)),g:r*(1-t),b:r*(1+t*(3*(1-n)/(2-n)-1))};break;default:a={r:r*(1-t),g:r*(1-t),b:r*(1-t)}}return a.mode="rgb",i!==void 0&&(a.alpha=i),a}function pce({r:e,g:t,b:r,alpha:i}){e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let n=Math.max(e,t,r),a=Math.min(e,t,r),o={mode:"hsi",s:e+t+r===0?0:1-3*a/(e+t+r),i:(e+t+r)/3};return n-a!==0&&(o.h=(n===e?(t-r)/(n-a)+(t{switch(t){case"deg":return+e;case"rad":return e/Math.PI*180;case"grad":return e/10*9;case"turn":return e*360}},r2t=t2t,i2t=new RegExp(`^hsla?\\(\\s*${Qmt}${nw}${J6}${nw}${J6}\\s*(?:,\\s*${QU}\\s*)?\\)$`),n2t=e=>{let t=e.match(i2t);if(!t)return;let r={mode:"hsl"};return t[3]!==void 0?r.h=+t[3]:t[1]!==void 0&&t[2]!==void 0&&(r.h=r2t(t[1],t[2])),t[4]!==void 0&&(r.s=Math.min(Math.max(0,t[4]/100),1)),t[5]!==void 0&&(r.l=Math.min(Math.max(0,t[5]/100),1)),t[6]!==void 0?r.alpha=Math.max(0,Math.min(1,t[6]/100)):t[7]!==void 0&&(r.alpha=Math.max(0,Math.min(1,+t[7]))),r},yce=n2t;function a2t(e,t){if(!t||t[0]!=="hsl"&&t[0]!=="hsla")return;let r={mode:"hsl"},[,i,n,a,o]=t;if(i.type!==wi.None){if(i.type===wi.Percentage)return;r.h=i.value}if(n.type!==wi.None){if(n.type===wi.Hue)return;r.s=n.value/100}if(a.type!==wi.None){if(a.type===wi.Hue)return;r.l=a.value/100}return o.type!==wi.None&&(r.alpha=Math.min(1,Math.max(0,o.type===wi.Number?o.value:o.value/100))),r}var xce=a2t,o2t={mode:"hsl",toMode:{rgb:gce},fromMode:{rgb:mce},channels:["h","s","l","alpha"],ranges:{h:[0,360]},gamut:"rgb",parse:[xce,yce],serialize:e=>`hsl(${e.h!==void 0?e.h:"none"} ${e.s!==void 0?e.s*100+"%":"none"} ${e.l!==void 0?e.l*100+"%":"none"}${e.alpha<1?` / ${e.alpha}`:""})`,interpolate:{h:{use:Gi,fixup:u1},s:Gi,l:Gi,alpha:{use:Gi,fixup:Ru}},difference:{h:tA},average:{h:c1}},iV=o2t;function nV({h:e,s:t,v:r,alpha:i}){e=ef(e!==void 0?e:0),t===void 0&&(t=0),r===void 0&&(r=0);let n=Math.abs(e/60%2-1),a;switch(Math.floor(e/60)){case 0:a={r,g:r*(1-t*n),b:r*(1-t)};break;case 1:a={r:r*(1-t*n),g:r,b:r*(1-t)};break;case 2:a={r:r*(1-t),g:r,b:r*(1-t*n)};break;case 3:a={r:r*(1-t),g:r*(1-t*n),b:r};break;case 4:a={r:r*(1-t*n),g:r*(1-t),b:r};break;case 5:a={r,g:r*(1-t),b:r*(1-t*n)};break;default:a={r:r*(1-t),g:r*(1-t),b:r*(1-t)}}return a.mode="rgb",i!==void 0&&(a.alpha=i),a}function aV({r:e,g:t,b:r,alpha:i}){e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let n=Math.max(e,t,r),a=Math.min(e,t,r),o={mode:"hsv",s:n===0?0:1-a/n,v:n};return n-a!==0&&(o.h=(n===e?(t-r)/(n-a)+(t1){let n=t+r;t/=n,r/=n}return nV({h:e,s:r===1?1:1-t/(1-r),v:1-r,alpha:i})}function _ce(e){let t=aV(e);if(t===void 0)return;let r=t.s!==void 0?t.s:0,i=t.v!==void 0?t.v:0,n={mode:"hwb",w:(1-r)*i,b:1-i};return t.h!==void 0&&(n.h=t.h),t.alpha!==void 0&&(n.alpha=t.alpha),n}function l2t(e,t){if(!t||t[0]!=="hwb")return;let r={mode:"hwb"},[,i,n,a,o]=t;if(i.type!==wi.None){if(i.type===wi.Percentage)return;r.h=i.value}if(n.type!==wi.None){if(n.type===wi.Hue)return;r.w=n.value/100}if(a.type!==wi.None){if(a.type===wi.Hue)return;r.b=a.value/100}return o.type!==wi.None&&(r.alpha=Math.min(1,Math.max(0,o.type===wi.Number?o.value:o.value/100))),r}var wce=l2t,u2t={mode:"hwb",toMode:{rgb:bce},fromMode:{rgb:_ce},channels:["h","w","b","alpha"],ranges:{h:[0,360]},gamut:"rgb",parse:[wce],serialize:e=>`hwb(${e.h!==void 0?e.h:"none"} ${e.w!==void 0?e.w*100+"%":"none"} ${e.b!==void 0?e.b*100+"%":"none"}${e.alpha<1?` / ${e.alpha}`:""})`,interpolate:{h:{use:Gi,fixup:u1},w:Gi,b:Gi,alpha:{use:Gi,fixup:Ru}},difference:{h:nce},average:{h:c1}},Tce=u2t,Ace=203,tD=.1593017578125,Mce=78.84375,rD=.8359375,iD=18.8515625,nD=18.6875;function pU(e){if(e<0)return 0;let t=Math.pow(e,1/Mce);return 1e4*Math.pow(Math.max(0,t-rD)/(iD-nD*t),1/tD)}function vU(e){if(e<0)return 0;let t=Math.pow(e/1e4,tD);return Math.pow((rD+iD*t)/(1+nD*t),Mce)}var gU=e=>Math.max(e/Ace,0),c2t=({i:e,t,p:r,alpha:i})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let n=pU(e+.008609037037932761*t+.11102962500302593*r),a=pU(e-.00860903703793275*t-.11102962500302599*r),o=pU(e+.5600313357106791*t-.32062717498731885*r),s={mode:"xyz65",x:gU(2.070152218389422*n-1.3263473389671556*a+.2066510476294051*o),y:gU(.3647385209748074*n+.680566024947227*a-.0453045459220346*o),z:gU(-.049747207535812*n-.0492609666966138*a+1.1880659249923042*o)};return i!==void 0&&(s.alpha=i),s},RU=c2t,mU=(e=0)=>Math.max(e*Ace,0),f2t=({x:e,y:t,z:r,alpha:i})=>{let n=mU(e),a=mU(t),o=mU(r),s=vU(.3592832590121217*n+.6976051147779502*a-.0358915932320289*o),l=vU(-.1920808463704995*n+1.1004767970374323*a+.0753748658519118*o),u=vU(.0070797844607477*n+.0748396662186366*a+.8433265453898765*o),c=.5*s+.5*l,f=1.61376953125*s-3.323486328125*l+1.709716796875*u,h=4.378173828125*s-4.24560546875*l-.132568359375*u,p={mode:"itp",i:c,t:f,p:h};return i!==void 0&&(p.alpha=i),p},zU=f2t,h2t={mode:"itp",channels:["i","t","p","alpha"],parse:["--ictcp"],serialize:"--ictcp",toMode:{xyz65:RU,rgb:e=>by(RU(e))},fromMode:{xyz65:zU,rgb:e=>zU(xy(e))},ranges:{i:[0,.581],t:[-.369,.272],p:[-.164,.331]},interpolate:{i:Gi,t:Gi,p:Gi,alpha:{use:Gi,fixup:Ru}}},Sce=h2t,d2t=134.03437499999998,p2t=16295499532821565e-27,yU=e=>{if(e<0)return 0;let t=Math.pow(e/1e4,tD);return Math.pow((rD+iD*t)/(1+nD*t),d2t)},xU=(e=0)=>Math.max(e*203,0),v2t=({x:e,y:t,z:r,alpha:i})=>{e=xU(e),t=xU(t),r=xU(r);let n=1.15*e-.15*r,a=.66*t+.34*e,o=yU(.41478972*n+.579999*a+.014648*r),s=yU(-.20151*n+1.120649*a+.0531008*r),l=yU(-.0166008*n+.2648*a+.6684799*r),u=(o+s)/2,c={mode:"jab",j:.44*u/(1-.56*u)-p2t,a:3.524*o-4.066708*s+.542708*l,b:.199076*o+1.096799*s-1.295875*l};return i!==void 0&&(c.alpha=i),c},sV=v2t,g2t=134.03437499999998,que=16295499532821565e-27,bU=e=>{if(e<0)return 0;let t=Math.pow(e,1/g2t);return 1e4*Math.pow((rD-t)/(nD*t-iD),1/tD)},_U=e=>e/203,m2t=({j:e,a:t,b:r,alpha:i})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let n=(e+que)/(.44+.56*(e+que)),a=bU(n+.13860504*t+.058047316*r),o=bU(n-.13860504*t-.058047316*r),s=bU(n-.096019242*t-.8118919*r),l={mode:"xyz65",x:_U(1.661373024652174*a-.914523081304348*o+.23136208173913045*s),y:_U(-.3250758611844533*a+1.571847026732543*o-.21825383453227928*s),z:_U(-.090982811*a-.31272829*o+1.5227666*s)};return i!==void 0&&(l.alpha=i),l},lV=m2t,y2t=e=>{let t=sV(xy(e));return e.r===e.b&&e.b===e.g&&(t.a=t.b=0),t},uV=y2t,x2t=e=>by(lV(e)),cV=x2t,b2t={mode:"jab",channels:["j","a","b","alpha"],parse:["--jzazbz"],serialize:"--jzazbz",fromMode:{rgb:uV,xyz65:sV},toMode:{rgb:cV,xyz65:lV},ranges:{j:[0,.222],a:[-.109,.129],b:[-.185,.134]},interpolate:{j:Gi,a:Gi,b:Gi,alpha:{use:Gi,fixup:Ru}}},Ece=b2t,_2t=({j:e,a:t,b:r,alpha:i})=>{t===void 0&&(t=0),r===void 0&&(r=0);let n=Math.sqrt(t*t+r*r),a={mode:"jch",j:e,c:n};return n&&(a.h=ef(Math.atan2(r,t)*180/Math.PI)),i!==void 0&&(a.alpha=i),a},BU=_2t,w2t=({j:e,c:t,h:r,alpha:i})=>{r===void 0&&(r=0);let n={mode:"jab",j:e,a:t?t*Math.cos(r/180*Math.PI):0,b:t?t*Math.sin(r/180*Math.PI):0};return i!==void 0&&(n.alpha=i),n},qU=w2t,T2t={mode:"jch",parse:["--jzczhz"],serialize:"--jzczhz",toMode:{jab:qU,rgb:e=>cV(qU(e))},fromMode:{rgb:e=>BU(uV(e)),jab:BU},channels:["j","c","h","alpha"],ranges:{j:[0,.221],c:[0,.19],h:[0,360]},interpolate:{h:{use:Gi,fixup:u1},c:Gi,j:Gi,alpha:{use:Gi,fixup:Ru}},difference:{h:rA},average:{h:c1}},kce=T2t,aD=Math.pow(29,3)/Math.pow(3,3),fV=Math.pow(6,3)/Math.pow(29,3),wU=e=>Math.pow(e,3)>fV?Math.pow(e,3):(116*e-16)/aD,A2t=({l:e,a:t,b:r,alpha:i})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let n=(e+16)/116,a=t/500+n,o=n-r/200,s={mode:"xyz50",x:wU(a)*Iu.X,y:wU(n)*Iu.Y,z:wU(o)*Iu.Z};return i!==void 0&&(s.alpha=i),s},oD=A2t,M2t=({x:e,y:t,z:r,alpha:i})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let n=Wx({r:e*3.1341359569958707-t*1.6173863321612538-.4906619460083532*r,g:e*-.978795502912089+t*1.916254567259524+.03344273116131949*r,b:e*.07195537988411677-t*.2289768264158322+1.405386058324125*r});return i!==void 0&&(n.alpha=i),n},sw=M2t,S2t=e=>sw(oD(e)),hV=S2t,E2t=e=>{let{r:t,g:r,b:i,alpha:n}=$x(e),a={mode:"xyz50",x:.436065742824811*t+.3851514688337912*r+.14307845442264197*i,y:.22249319175623702*t+.7168870538238823*r+.06061979053616537*i,z:.013923904500943465*t+.09708128566574634*r+.7140993584005155*i};return n!==void 0&&(a.alpha=n),a},lw=E2t,TU=e=>e>fV?Math.cbrt(e):(aD*e+16)/116,k2t=({x:e,y:t,z:r,alpha:i})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let n=TU(e/Iu.X),a=TU(t/Iu.Y),o=TU(r/Iu.Z),s={mode:"lab",l:116*a-16,a:500*(n-a),b:200*(a-o)};return i!==void 0&&(s.alpha=i),s},sD=k2t,C2t=e=>{let t=sD(lw(e));return e.r===e.b&&e.b===e.g&&(t.a=t.b=0),t},dV=C2t;function D2t(e,t){if(!t||t[0]!=="lab")return;let r={mode:"lab"},[,i,n,a,o]=t;if(!(i.type===wi.Hue||n.type===wi.Hue||a.type===wi.Hue))return i.type!==wi.None&&(r.l=Math.min(Math.max(0,i.value),100)),n.type!==wi.None&&(r.a=n.type===wi.Number?n.value:n.value*125/100),a.type!==wi.None&&(r.b=a.type===wi.Number?a.value:a.value*125/100),o.type!==wi.None&&(r.alpha=Math.min(1,Math.max(0,o.type===wi.Number?o.value:o.value/100))),r}var Cce=D2t,F2t={mode:"lab",toMode:{xyz50:oD,rgb:hV},fromMode:{xyz50:sD,rgb:dV},channels:["l","a","b","alpha"],ranges:{l:[0,100],a:[-125,125],b:[-125,125]},parse:[Cce],serialize:e=>`lab(${e.l!==void 0?e.l:"none"} ${e.a!==void 0?e.a:"none"} ${e.b!==void 0?e.b:"none"}${e.alpha<1?` / ${e.alpha}`:""})`,interpolate:{l:Gi,a:Gi,b:Gi,alpha:{use:Gi,fixup:Ru}}},lD=F2t,L2t=da(fn({},lD),{mode:"lab65",parse:["--lab-d65"],serialize:"--lab-d65",toMode:{xyz65:tV,rgb:iA},fromMode:{xyz65:rV,rgb:nA},ranges:{l:[0,100],a:[-125,125],b:[-125,125]}}),Dce=L2t;function P2t(e,t){if(!t||t[0]!=="lch")return;let r={mode:"lch"},[,i,n,a,o]=t;if(i.type!==wi.None){if(i.type===wi.Hue)return;r.l=Math.min(Math.max(0,i.value),100)}if(n.type!==wi.None&&(r.c=Math.max(0,n.type===wi.Number?n.value:n.value*150/100)),a.type!==wi.None){if(a.type===wi.Percentage)return;r.h=a.value}return o.type!==wi.None&&(r.alpha=Math.min(1,Math.max(0,o.type===wi.Number?o.value:o.value/100))),r}var Fce=P2t,I2t={mode:"lch",toMode:{lab:Bg,rgb:e=>hV(Bg(e))},fromMode:{rgb:e=>zg(dV(e)),lab:zg},channels:["l","c","h","alpha"],ranges:{l:[0,100],c:[0,150],h:[0,360]},parse:[Fce],serialize:e=>`lch(${e.l!==void 0?e.l:"none"} ${e.c!==void 0?e.c:"none"} ${e.h!==void 0?e.h:"none"}${e.alpha<1?` / ${e.alpha}`:""})`,interpolate:{h:{use:Gi,fixup:u1},c:Gi,l:Gi,alpha:{use:Gi,fixup:Ru}},difference:{h:rA},average:{h:c1}},uD=I2t,R2t=da(fn({},uD),{mode:"lch65",parse:["--lch-d65"],serialize:"--lch-d65",toMode:{lab65:e=>Bg(e,"lab65"),rgb:e=>iA(Bg(e,"lab65"))},fromMode:{rgb:e=>zg(nA(e),"lch65"),lab65:e=>zg(e,"lch65")},ranges:{l:[0,100],c:[0,150],h:[0,360]}}),Lce=R2t,z2t=({l:e,u:t,v:r,alpha:i})=>{t===void 0&&(t=0),r===void 0&&(r=0);let n=Math.sqrt(t*t+r*r),a={mode:"lchuv",l:e,c:n};return n&&(a.h=ef(Math.atan2(r,t)*180/Math.PI)),i!==void 0&&(a.alpha=i),a},pV=z2t,B2t=({l:e,c:t,h:r,alpha:i})=>{r===void 0&&(r=0);let n={mode:"luv",l:e,u:t?t*Math.cos(r/180*Math.PI):0,v:t?t*Math.sin(r/180*Math.PI):0};return i!==void 0&&(n.alpha=i),n},vV=B2t,Pce=(e,t,r)=>4*e/(e+15*t+3*r),Ice=(e,t,r)=>9*t/(e+15*t+3*r),q2t=Pce(Iu.X,Iu.Y,Iu.Z),O2t=Ice(Iu.X,Iu.Y,Iu.Z),N2t=e=>e<=fV?aD*e:116*Math.cbrt(e)-16,U2t=({x:e,y:t,z:r,alpha:i})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let n=N2t(t/Iu.Y),a=Pce(e,t,r),o=Ice(e,t,r);!isFinite(a)||!isFinite(o)?n=a=o=0:(a=13*n*(a-q2t),o=13*n*(o-O2t));let s={mode:"luv",l:n,u:a,v:o};return i!==void 0&&(s.alpha=i),s},K8=U2t,V2t=(e,t,r)=>4*e/(e+15*t+3*r),G2t=(e,t,r)=>9*t/(e+15*t+3*r),H2t=V2t(Iu.X,Iu.Y,Iu.Z),j2t=G2t(Iu.X,Iu.Y,Iu.Z),$2t=({l:e,u:t,v:r,alpha:i})=>{if(e===void 0&&(e=0),e===0)return{mode:"xyz50",x:0,y:0,z:0};t===void 0&&(t=0),r===void 0&&(r=0);let n=t/(13*e)+H2t,a=r/(13*e)+j2t,o=Iu.Y*(e<=8?e/aD:Math.pow((e+16)/116,3)),s=o*(9*n)/(4*a),l=o*(12-3*n-20*a)/(4*a),u={mode:"xyz50",x:s,y:o,z:l};return i!==void 0&&(u.alpha=i),u},J8=$2t,W2t=e=>pV(K8(lw(e))),Y2t=e=>sw(J8(vV(e))),X2t={mode:"lchuv",toMode:{luv:vV,rgb:Y2t},fromMode:{rgb:W2t,luv:pV},channels:["l","c","h","alpha"],parse:["--lchuv"],serialize:"--lchuv",ranges:{l:[0,100],c:[0,176.956],h:[0,360]},interpolate:{h:{use:Gi,fixup:u1},c:Gi,l:Gi,alpha:{use:Gi,fixup:Ru}},difference:{h:rA},average:{h:c1}},Rce=X2t,Z2t=da(fn({},jx),{mode:"lrgb",toMode:{rgb:Wx},fromMode:{rgb:$x},parse:["srgb-linear"],serialize:"srgb-linear"}),zce=Z2t,K2t={mode:"luv",toMode:{xyz50:J8,rgb:e=>sw(J8(e))},fromMode:{xyz50:K8,rgb:e=>K8(lw(e))},channels:["l","u","v","alpha"],parse:["--luv"],serialize:"--luv",ranges:{l:[0,100],u:[-84.936,175.042],v:[-125.882,87.243]},interpolate:{l:Gi,u:Gi,v:Gi,alpha:{use:Gi,fixup:Ru}}},Bce=K2t,J2t=({r:e,g:t,b:r,alpha:i})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let n=Math.cbrt(.412221469470763*e+.5363325372617348*t+.0514459932675022*r),a=Math.cbrt(.2119034958178252*e+.6806995506452344*t+.1073969535369406*r),o=Math.cbrt(.0883024591900564*e+.2817188391361215*t+.6299787016738222*r),s={mode:"oklab",l:.210454268309314*n+.7936177747023054*a-.0040720430116193*o,a:1.9779985324311684*n-2.42859224204858*a+.450593709617411*o,b:.0259040424655478*n+.7827717124575296*a-.8086757549230774*o};return i!==void 0&&(s.alpha=i),s},gV=J2t,Q2t=e=>{let t=gV($x(e));return e.r===e.b&&e.b===e.g&&(t.a=t.b=0),t},aA=Q2t,ext=({l:e,a:t,b:r,alpha:i})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let n=Math.pow(e+.3963377773761749*t+.2158037573099136*r,3),a=Math.pow(e-.1055613458156586*t-.0638541728258133*r,3),o=Math.pow(e-.0894841775298119*t-1.2914855480194092*r,3),s={mode:"lrgb",r:4.076741636075957*n-3.3077115392580616*a+.2309699031821044*o,g:-1.2684379732850317*n+2.6097573492876887*a-.3413193760026573*o,b:-.0041960761386756*n-.7034186179359362*a+1.7076146940746117*o};return i!==void 0&&(s.alpha=i),s},uw=ext,txt=e=>Wx(uw(e)),oA=txt;function OU(e){let i=1.170873786407767;return .5*(i*e-.206+Math.sqrt((i*e-.206)*(i*e-.206)+4*.03*i*e))}function Q8(e){return(e*e+.206*e)/(1.170873786407767*(e+.03))}function rxt(e,t){let r,i,n,a,o,s,l,u;-1.88170328*e-.80936493*t>1?(r=1.19086277,i=1.76576728,n=.59662641,a=.75515197,o=.56771245,s=4.0767416621,l=-3.3077115913,u=.2309699292):1.81444104*e-1.19445276*t>1?(r=.73956515,i=-.45954404,n=.08285427,a=.1254107,o=.14503204,s=-1.2684380046,l=2.6097574011,u=-.3413193965):(r=1.35733652,i=-.00915799,n=-1.1513021,a=-.50559606,o=.00692167,s=-.0041960863,l=-.7034186147,u=1.707614701);let c=r+i*e+n*t+a*e*e+o*e*t,f=.3963377774*e+.2158037573*t,h=-.1055613458*e-.0638541728*t,p=-.0894841775*e-1.291485548*t;{let d=1+c*f,v=1+c*h,m=1+c*p,g=d*d*d,w=v*v*v,_=m*m*m,b=3*f*d*d,S=3*h*v*v,x=3*p*m*m,A=6*f*f*d,T=6*h*h*v,y=6*p*p*m,E=s*g+l*w+u*_,M=s*b+l*S+u*x,C=s*A+l*T+u*y;c=c-E*M/(M*M-.5*E*C)}return c}function mV(e,t){let r=rxt(e,t),i=uw({l:1,a:r*e,b:r*t}),n=Math.cbrt(1/Math.max(i.r,i.g,i.b)),a=n*r;return[n,a]}function ixt(e,t,r,i,n,a=null){a||(a=mV(e,t));let o;if((r-n)*a[1]-(a[0]-n)*i<=0)o=a[1]*n/(i*a[0]+a[1]*(n-r));else{o=a[1]*(n-1)/(i*(a[0]-1)+a[1]*(n-r));{let s=r-n,l=i,u=.3963377774*e+.2158037573*t,c=-.1055613458*e-.0638541728*t,f=-.0894841775*e-1.291485548*t,h=s+l*u,p=s+l*c,d=s+l*f;{let v=n*(1-o)+o*r,m=o*i,g=v+m*u,w=v+m*c,_=v+m*f,b=g*g*g,S=w*w*w,x=_*_*_,A=3*h*g*g,T=3*p*w*w,y=3*d*_*_,E=6*h*h*g,M=6*p*p*w,C=6*d*d*_,k=4.0767416621*b-3.3077115913*S+.2309699292*x-1,D=4.0767416621*A-3.3077115913*T+.2309699292*y,F=4.0767416621*E-3.3077115913*M+.2309699292*C,P=D/(D*D-.5*k*F),R=-k*P,L=-1.2684380046*b+2.6097574011*S-.3413193965*x-1,I=-1.2684380046*A+2.6097574011*T-.3413193965*y,B=-1.2684380046*E+2.6097574011*M-.3413193965*C,O=I/(I*I-.5*L*B),$=-L*O,X=-.0041960863*b-.7034186147*S+1.707614701*x-1,K=-.0041960863*A-.7034186147*T+1.707614701*y,G=-.0041960863*E-.7034186147*M+1.707614701*C,q=K/(K*K-.5*X*G),J=-X*q;R=P>=0?R:1e6,$=O>=0?$:1e6,J=q>=0?J:1e6,o+=Math.min(R,Math.min($,J))}}}return o}function yV(e,t,r=null){r||(r=mV(e,t));let i=r[0],n=r[1];return[n/i,n/(1-i)]}function qce(e,t,r){let i=mV(t,r),n=ixt(t,r,e,1,e,i),a=yV(t,r,i),o=.11516993+1/(7.4477897+4.1590124*r+t*(-2.19557347+1.75198401*r+t*(-2.13704948-10.02301043*r+t*(-4.24894561+5.38770819*r+4.69891013*t)))),s=.11239642+1/(1.6132032-.68124379*r+t*(.40370612+.90148123*r+t*(-.27087943+.6122399*r+t*(.00299215-.45399568*r-.14661872*t)))),l=n/Math.min(e*a[0],(1-e)*a[1]),u=e*o,c=(1-e)*s,f=.9*l*Math.sqrt(Math.sqrt(1/(1/(u*u*u*u)+1/(c*c*c*c))));return u=e*.4,c=(1-e)*.8,[Math.sqrt(1/(1/(u*u)+1/(c*c))),f,n]}function NU(e){let t=e.l!==void 0?e.l:0,r=e.a!==void 0?e.a:0,i=e.b!==void 0?e.b:0,n={mode:"okhsl",l:OU(t)};e.alpha!==void 0&&(n.alpha=e.alpha);let a=Math.sqrt(r*r+i*i);if(!a)return n.s=0,n;let[o,s,l]=qce(t,r/a,i/a),u;if(aNU(aA(e))},toMode:{oklab:UU,rgb:e=>oA(UU(e))}}),Oce=nxt;function VU(e){let t=e.l!==void 0?e.l:0,r=e.a!==void 0?e.a:0,i=e.b!==void 0?e.b:0,n=Math.sqrt(r*r+i*i),a=n?r/n:1,o=n?i/n:1,[s,l]=yV(a,o),u=.5,c=1-u/s,f=l/(n+t*l),h=f*t,p=f*n,d=Q8(h),v=p*d/h,m=uw({l:d,a:a*v,b:o*v}),g=Math.cbrt(1/Math.max(m.r,m.g,m.b,0));t=t/g,n=n/g*OU(t)/t,t=OU(t);let w={mode:"okhsv",s:n?(u+l)*p/(l*u+l*c*p):0,v:t?t/h:0};return w.s&&(w.h=ef(Math.atan2(i,r)*180/Math.PI)),e.alpha!==void 0&&(w.alpha=e.alpha),w}function GU(e){let t={mode:"oklab"};e.alpha!==void 0&&(t.alpha=e.alpha);let r=e.h!==void 0?e.h:0,i=e.s!==void 0?e.s:0,n=e.v!==void 0?e.v:0,a=Math.cos(r/180*Math.PI),o=Math.sin(r/180*Math.PI),[s,l]=yV(a,o),u=.5,c=1-u/s,f=1-i*u/(u+l-l*c*i),h=i*l*u/(u+l-l*c*i),p=Q8(f),d=h*p/f,v=uw({l:p,a:a*d,b:o*d}),m=Math.cbrt(1/Math.max(v.r,v.g,v.b,0)),g=Q8(n*f),w=h*g/f;return t.l=g*m,t.a=w*a*m,t.b=w*o*m,t}var axt=da(fn({},oV),{mode:"okhsv",channels:["h","s","v","alpha"],parse:["--okhsv"],serialize:"--okhsv",fromMode:{oklab:VU,rgb:e=>VU(aA(e))},toMode:{oklab:GU,rgb:e=>oA(GU(e))}}),Nce=axt;function oxt(e,t){if(!t||t[0]!=="oklab")return;let r={mode:"oklab"},[,i,n,a,o]=t;if(!(i.type===wi.Hue||n.type===wi.Hue||a.type===wi.Hue))return i.type!==wi.None&&(r.l=Math.min(Math.max(0,i.type===wi.Number?i.value:i.value/100),1)),n.type!==wi.None&&(r.a=n.type===wi.Number?n.value:n.value*.4/100),a.type!==wi.None&&(r.b=a.type===wi.Number?a.value:a.value*.4/100),o.type!==wi.None&&(r.alpha=Math.min(1,Math.max(0,o.type===wi.Number?o.value:o.value/100))),r}var Uce=oxt,sxt=da(fn({},lD),{mode:"oklab",toMode:{lrgb:uw,rgb:oA},fromMode:{lrgb:gV,rgb:aA},ranges:{l:[0,1],a:[-.4,.4],b:[-.4,.4]},parse:[Uce],serialize:e=>`oklab(${e.l!==void 0?e.l:"none"} ${e.a!==void 0?e.a:"none"} ${e.b!==void 0?e.b:"none"}${e.alpha<1?` / ${e.alpha}`:""})`}),Vce=sxt;function lxt(e,t){if(!t||t[0]!=="oklch")return;let r={mode:"oklch"},[,i,n,a,o]=t;if(i.type!==wi.None){if(i.type===wi.Hue)return;r.l=Math.min(Math.max(0,i.type===wi.Number?i.value:i.value/100),1)}if(n.type!==wi.None&&(r.c=Math.max(0,n.type===wi.Number?n.value:n.value*.4/100)),a.type!==wi.None){if(a.type===wi.Percentage)return;r.h=a.value}return o.type!==wi.None&&(r.alpha=Math.min(1,Math.max(0,o.type===wi.Number?o.value:o.value/100))),r}var Gce=lxt,uxt=da(fn({},uD),{mode:"oklch",toMode:{oklab:e=>Bg(e,"oklab"),rgb:e=>oA(Bg(e,"oklab"))},fromMode:{rgb:e=>zg(aA(e),"oklch"),oklab:e=>zg(e,"oklch")},parse:[Gce],serialize:e=>`oklch(${e.l!==void 0?e.l:"none"} ${e.c!==void 0?e.c:"none"} ${e.h!==void 0?e.h:"none"}${e.alpha<1?` / ${e.alpha}`:""})`,ranges:{l:[0,1],c:[0,.4],h:[0,360]}}),Hce=uxt,cxt=e=>{let{r:t,g:r,b:i,alpha:n}=$x(e),a={mode:"xyz65",x:.486570948648216*t+.265667693169093*r+.1982172852343625*i,y:.2289745640697487*t+.6917385218365062*r+.079286914093745*i,z:0*t+.0451133818589026*r+1.043944368900976*i};return n!==void 0&&(a.alpha=n),a},HU=cxt,fxt=({x:e,y:t,z:r,alpha:i})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let n=Wx({r:e*2.4934969119414263-t*.9313836179191242-.402710784450717*r,g:e*-.8294889695615749+t*1.7626640603183465+.0236246858419436*r,b:e*.0358458302437845-t*.0761723892680418+.9568845240076871*r},"p3");return i!==void 0&&(n.alpha=i),n},jU=fxt,hxt=da(fn({},jx),{mode:"p3",parse:["display-p3"],serialize:"display-p3",fromMode:{rgb:e=>jU(xy(e)),xyz65:jU},toMode:{rgb:e=>by(HU(e)),xyz65:HU}}),jce=hxt,AU=e=>{let t=Math.abs(e);return t>=1/512?Math.sign(e)*Math.pow(t,1/1.8):16*e},dxt=({x:e,y:t,z:r,alpha:i})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let n={mode:"prophoto",r:AU(e*1.3457868816471585-t*.2555720873797946-.0511018649755453*r),g:AU(e*-.5446307051249019+t*1.5082477428451466+.0205274474364214*r),b:AU(e*0+t*0+1.2119675456389452*r)};return i!==void 0&&(n.alpha=i),n},$U=dxt,MU=(e=0)=>{let t=Math.abs(e);return t>=16/512?Math.sign(e)*Math.pow(t,1.8):e/16},pxt=e=>{let t=MU(e.r),r=MU(e.g),i=MU(e.b),n={mode:"xyz50",x:.7977666449006423*t+.1351812974005331*r+.0313477341283922*i,y:.2880748288194013*t+.7118352342418731*r+899369387256e-16*i,z:0*t+0*r+.8251046025104602*i};return e.alpha!==void 0&&(n.alpha=e.alpha),n},WU=pxt,vxt=da(fn({},jx),{mode:"prophoto",parse:["prophoto-rgb"],serialize:"prophoto-rgb",fromMode:{xyz50:$U,rgb:e=>$U(lw(e))},toMode:{xyz50:WU,rgb:e=>sw(WU(e))}}),$ce=vxt,Oue=1.09929682680944,gxt=.018053968510807,SU=e=>{let t=Math.abs(e);return t>gxt?(Math.sign(e)||1)*(Oue*Math.pow(t,.45)-(Oue-1)):4.5*e},mxt=({x:e,y:t,z:r,alpha:i})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let n={mode:"rec2020",r:SU(e*1.7166511879712683-t*.3556707837763925-.2533662813736599*r),g:SU(e*-.6666843518324893+t*1.6164812366349395+.0157685458139111*r),b:SU(e*.0176398574453108-t*.0427706132578085+.9421031212354739*r)};return i!==void 0&&(n.alpha=i),n},YU=mxt,Nue=1.09929682680944,yxt=.018053968510807,EU=(e=0)=>{let t=Math.abs(e);return t{let t=EU(e.r),r=EU(e.g),i=EU(e.b),n={mode:"xyz65",x:.6369580483012911*t+.1446169035862083*r+.1688809751641721*i,y:.262700212011267*t+.6779980715188708*r+.059301716469862*i,z:0*t+.0280726930490874*r+1.0609850577107909*i};return e.alpha!==void 0&&(n.alpha=e.alpha),n},XU=xxt,bxt=da(fn({},jx),{mode:"rec2020",fromMode:{xyz65:YU,rgb:e=>YU(xy(e))},toMode:{xyz65:XU,rgb:e=>by(XU(e))},parse:["rec2020"],serialize:"rec2020"}),Wce=bxt,Gx=.0037930732552754493,Yce=Math.cbrt(Gx),kU=e=>Math.cbrt(e)-Yce,_xt=e=>{let{r:t,g:r,b:i,alpha:n}=$x(e),a=kU(.3*t+.622*r+.078*i+Gx),o=kU(.23*t+.692*r+.078*i+Gx),s=kU(.2434226892454782*t+.2047674442449682*r+.5518098665095535*i+Gx),l={mode:"xyb",x:(a-o)/2,y:(a+o)/2,b:s-(a+o)/2};return n!==void 0&&(l.alpha=n),l},Xce=_xt,CU=e=>Math.pow(e+Yce,3),wxt=({x:e,y:t,b:r,alpha:i})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let n=CU(e+t)-Gx,a=CU(t-e)-Gx,o=CU(r+t)-Gx,s=Wx({r:11.031566904639861*n-9.866943908131562*a-.16462299650829934*o,g:-3.2541473810744237*n+4.418770377582723*a-.16462299650829934*o,b:-3.6588512867136815*n+2.7129230459360922*a+1.9459282407775895*o});return i!==void 0&&(s.alpha=i),s},Zce=wxt,Txt={mode:"xyb",channels:["x","y","b","alpha"],parse:["--xyb"],serialize:"--xyb",toMode:{rgb:Zce},fromMode:{rgb:Xce},ranges:{x:[-.0154,.0281],y:[0,.8453],b:[-.2778,.388]},interpolate:{x:Gi,y:Gi,b:Gi,alpha:{use:Gi,fixup:Ru}}},Kce=Txt,Axt={mode:"xyz50",parse:["xyz-d50"],serialize:"xyz-d50",toMode:{rgb:sw,lab:sD},fromMode:{rgb:lw,lab:oD},channels:["x","y","z","alpha"],ranges:{x:[0,.964],y:[0,.999],z:[0,.825]},interpolate:{x:Gi,y:Gi,z:Gi,alpha:{use:Gi,fixup:Ru}}},Jce=Axt,Mxt=e=>{let{x:t,y:r,z:i,alpha:n}=e;t===void 0&&(t=0),r===void 0&&(r=0),i===void 0&&(i=0);let a={mode:"xyz50",x:1.0479298208405488*t+.0229467933410191*r-.0501922295431356*i,y:.0296278156881593*t+.990434484573249*r-.0170738250293851*i,z:-.0092430581525912*t+.0150551448965779*r+.7518742899580008*i};return n!==void 0&&(a.alpha=n),a},Qce=Mxt,Sxt=e=>{let{x:t,y:r,z:i,alpha:n}=e;t===void 0&&(t=0),r===void 0&&(r=0),i===void 0&&(i=0);let a={mode:"xyz65",x:.9554734527042182*t-.0230985368742614*r+.0632593086610217*i,y:-.0283697069632081*t+1.0099954580058226*r+.021041398966943*i,z:.0123140016883199*t-.0205076964334779*r+1.3303659366080753*i};return n!==void 0&&(a.alpha=n),a},efe=Sxt,Ext={mode:"xyz65",toMode:{rgb:by,xyz50:Qce},fromMode:{rgb:xy,xyz50:efe},ranges:{x:[0,.95],y:[0,1],z:[0,1.088]},channels:["x","y","z","alpha"],parse:["xyz","xyz-d65"],serialize:"xyz-d65",interpolate:{x:Gi,y:Gi,z:Gi,alpha:{use:Gi,fixup:Ru}}},tfe=Ext,kxt=({r:e,g:t,b:r,alpha:i})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let n={mode:"yiq",y:.29889531*e+.58662247*t+.11448223*r,i:.59597799*e-.2741761*t-.32180189*r,q:.21147017*e-.52261711*t+.31114694*r};return i!==void 0&&(n.alpha=i),n},rfe=kxt,Cxt=({y:e,i:t,q:r,alpha:i})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let n={mode:"rgb",r:e+.95608445*t+.6208885*r,g:e-.27137664*t-.6486059*r,b:e-1.10561724*t+1.70250126*r};return i!==void 0&&(n.alpha=i),n},ife=Cxt,Dxt={mode:"yiq",toMode:{rgb:ife},fromMode:{rgb:rfe},channels:["y","i","q","alpha"],parse:["--yiq"],serialize:"--yiq",ranges:{i:[-.595,.595],q:[-.522,.522]},interpolate:{y:Gi,i:Gi,q:Gi,alpha:{use:Gi,fixup:Ru}}},nfe=Dxt,Fxt=(e,t)=>Math.round(e*(t=Math.pow(10,t)))/t,Lxt=(e=4)=>t=>typeof t=="number"?Fxt(t,e):t,afe=Lxt,K6=afe(2),Q6=e=>Math.max(0,Math.min(1,e||0)),Hx=e=>Math.round(Q6(e)*255),xV=_s("rgb"),Pxt=_s("hsl"),bV=e=>{if(e===void 0)return;let t=Hx(e.r),r=Hx(e.g),i=Hx(e.b);return"#"+(1<<24|t<<16|r<<8|i).toString(16).slice(1)},ofe=e=>{if(e===void 0)return;let t=Hx(e.alpha!==void 0?e.alpha:1);return bV(e)+(256|t).toString(16).slice(1)},sfe=e=>{if(e===void 0)return;let t=Hx(e.r),r=Hx(e.g),i=Hx(e.b);return e.alpha===void 0||e.alpha===1?`rgb(${t}, ${r}, ${i})`:`rgba(${t}, ${r}, ${i}, ${K6(Q6(e.alpha))})`},lfe=e=>{if(e===void 0)return;let t=K6(e.h||0),r=K6(Q6(e.s)*100)+"%",i=K6(Q6(e.l)*100)+"%";return e.alpha===void 0||e.alpha===1?`hsl(${t}, ${r}, ${i})`:`hsla(${t}, ${r}, ${i}, ${K6(Q6(e.alpha))})`},Ixt=e=>{let t=Vp(e);if(!t)return;let r=Tf(t.mode);if(!r.serialize||typeof r.serialize=="string"){let i=`color(${r.serialize||`--${t.mode}`} `;return r.channels.forEach((n,a)=>{n!=="alpha"&&(i+=(a?" ":"")+(t[n]!==void 0?t[n]:"none"))}),t.alpha!==void 0&&t.alpha<1&&(i+=` / ${t.alpha}`),i+")"}if(typeof r.serialize=="function")return r.serialize(t)},Rxt=e=>bV(xV(e)),zxt=e=>ofe(xV(e)),Bxt=e=>sfe(xV(e)),qxt=e=>lfe(Pxt(e)),Oxt={normal:(e,t)=>t,multiply:(e,t)=>e*t,screen:(e,t)=>e+t-e*t,"hard-light":(e,t)=>t<.5?e*2*t:2*t*(1-e)-1,overlay:(e,t)=>e<.5?t*2*e:2*e*(1-t)-1,darken:(e,t)=>Math.min(e,t),lighten:(e,t)=>Math.max(e,t),"color-dodge":(e,t)=>e===0?0:t===1?1:Math.min(1,e/(1-t)),"color-burn":(e,t)=>e===1?1:t===0?0:1-Math.min(1,(1-e)/t),"soft-light":(e,t)=>t<.5?e-(1-2*t)*e*(1-e):e+(2*t-1)*((e<.25?((16*e-12)*e+4)*e:Math.sqrt(e))-e),difference:(e,t)=>Math.abs(e-t),exclusion:(e,t)=>e+t-2*e*t},Nxt=(e,t="normal",r="rgb")=>{let i=typeof t=="function"?t:Oxt[t],n=_s(r),a=Tf(r).channels;return e.map(s=>{let l=n(s);return l.alpha===void 0&&(l.alpha=1),l}).reduce((s,l)=>{if(s===void 0)return l;let u=l.alpha+s.alpha*(1-l.alpha);return a.reduce((c,f)=>(f!=="alpha"&&(u===0?c[f]=0:(c[f]=l.alpha*(1-s.alpha)*l[f]+l.alpha*s.alpha*i(s[f],l[f])+(1-l.alpha)*s.alpha*s[f],c[f]=Math.max(0,Math.min(1,c[f]/u)))),c),{mode:r,alpha:u})})},Uxt=Nxt,Vxt=([e,t])=>e+Math.random()*(t-e),Gxt=e=>Object.keys(e).reduce((t,r)=>{let i=e[r];return t[r]=Array.isArray(i)?i:[i,i],t},{}),Hxt=(e="rgb",t={})=>{let r=Tf(e),i=Gxt(t);return r.channels.reduce((n,a)=>((i.alpha||a!=="alpha")&&(n[a]=Vxt(i[a]||r.ranges[a])),n),{mode:e})},jxt=Hxt,sA=(e,t="rgb",r=!1)=>{let i=t?Tf(t).channels:null,n=t?_s(t):Vp;return a=>{let o=n(a);if(!o)return;let s=(i||Tf(o.mode).channels).reduce((u,c)=>{let f=e(o[c],c,o,t);return f!==void 0&&!isNaN(f)&&(u[c]=f),u},{mode:o.mode});if(!r)return s;let l=Vp(a);return l&&l.mode!==s.mode?_s(l.mode)(s):s}},ufe=(e,t,r)=>t!=="alpha"?(e||0)*(r.alpha!==void 0?r.alpha:1):e,cfe=(e,t,r)=>t!=="alpha"&&r.alpha!==0?(e||0)/(r.alpha!==void 0?r.alpha:1):e,_V=(e=1,t=0)=>(r,i)=>i!=="alpha"?r*e+t:r,$xt=(e=1,t=1,r=0)=>(i,n)=>n!=="alpha"?e*Math.pow(i,t)+r:i,Wxt=e=>{e[0]===void 0&&(e[0]=0),e[e.length-1]===void 0&&(e[e.length-1]=1);let t=1,r,i,n,a;for(;tt=>e<=0?1:e>=1?0:Math.pow(t,Math.log(.5)/Math.log(e)),ffe=Xxt,G8=e=>typeof e=="function",Ux=e=>e&&typeof e=="object",Uue=e=>typeof e=="number",hfe=(e,t="rgb",r,i)=>{let n=Tf(t),a=_s(t),o=[],s=[],l={};e.forEach(h=>{Array.isArray(h)?(o.push(a(h[0])),s.push(h[1])):Uue(h)||G8(h)?l[s.length]=h:(o.push(a(h)),s.push(void 0))}),Yxt(s);let u=n.channels.reduce((h,p)=>{let d;return Ux(r)&&Ux(r[p])&&r[p].fixup?d=r[p].fixup:Ux(n.interpolate[p])&&n.interpolate[p].fixup?d=n.interpolate[p].fixup:d=v=>v,h[p]=d(o.map(v=>v[p])),h},{});if(i){let h=o.map((p,d)=>n.channels.reduce((v,m)=>(v[m]=u[m][d],v),{mode:t}));u=n.channels.reduce((p,d)=>(p[d]=h.map(v=>{let m=i(v[d],d,v,t);return isNaN(m)?void 0:m}),p),{})}let c=n.channels.reduce((h,p)=>{let d;return G8(r)?d=r:Ux(r)&&G8(r[p])?d=r[p]:Ux(r)&&Ux(r[p])&&r[p].use?d=r[p].use:G8(n.interpolate[p])?d=n.interpolate[p]:Ux(n.interpolate[p])&&(d=n.interpolate[p].use),h[p]=d(u[p]),h},{}),f=o.length-1;return h=>{if(h=Math.min(Math.max(0,h),1),h<=s[0])return o[0];if(h>s[f])return o[f];let p=0;for(;s[p]{let S=c[b](w);return S!==void 0&&(_[b]=S),_},{mode:t})}},Zxt=(e,t="rgb",r)=>hfe(e,t,r),dfe=(e,t)=>(r,i="rgb",n)=>{let a=t?sA(t,i):void 0,o=hfe(r,i,n,e);return a?s=>a(o(s)):o},Kxt=dfe(ufe,cfe),H8=(e,t)=>(e+t)%t,pfe=(e,t,r,i,n)=>{let a=n*n,o=a*n;return((1-3*n+3*a-o)*e+(4-6*a+3*o)*t+(1+3*n+3*a-3*o)*r+o*i)/6},vfe=e=>t=>{let r=e.length-1,i=t>=1?r-1:Math.max(0,Math.floor(t*r));return pfe(i>0?e[i-1]:2*e[i]-e[i+1],e[i],e[i+1],it=>{let r=e.length-1,i=Math.floor(t*r);return pfe(e[H8(i-1,e.length)],e[H8(i,e.length)],e[H8(i+1,e.length)],e[H8(i+2,e.length)],(t-i/r)*r)},mfe=e=>{let t,r=e.length-1,i=new Array(r),n=new Array(r),a=new Array(r);for(i[1]=1/4,n[1]=(6*e[1]-e[0])/4,t=2;t0&&(a[r-1]=n[r-1]),t=r-2;t>0;--t)a[t]=n[t]-i[t]*a[t+1];return a},Jxt=e=>vfe(mfe(e)),Qxt=e=>gfe(mfe(e)),rw=Math.sign,ZU=Math.min,x0=Math.abs,wV=e=>{let t=e.length-1,r=[],i=[],n=[];for(let a=0;a0?.5*(e[a+1]-e[a-1])*t:void 0),n.push(a>0?(rw(r[a-1])+rw(r[a]))*ZU(x0(r[a-1]),x0(r[a]),.5*x0(i[a])):void 0);return[r,i,n]},TV=(e,t,r)=>{let i=e.length-1,n=i*i;return a=>{let o;a>=1?o=i-1:o=Math.max(0,Math.floor(a*i));let s=a-o/i,l=s*s,u=l*s;return(t[o]+t[o+1]-2*r[o])*n*u+(3*r[o]-2*t[o]-t[o+1])*i*l+t[o]*s+e[o]}},ebt=e=>{if(e.length<3)return Gi(e);let t=e.length-1,[r,,i]=wV(e);return i[0]=r[0],i[t]=r[t-1],TV(e,i,r)},tbt=e=>{if(e.length<3)return Gi(e);let t=e.length-1,[r,i,n]=wV(e);return i[0]=(e[1]*2-e[0]*1.5-e[2]*.5)*t,i[t]=(e[t]*1.5-e[t-1]*2+e[t-2]*.5)*t,n[0]=i[0]*r[0]<=0?0:x0(i[0])>2*x0(r[0])?2*r[0]:i[0],n[t]=i[t]*r[t-1]<=0?0:x0(i[t])>2*x0(r[t-1])?2*r[t-1]:i[t],TV(e,n,r)},rbt=e=>{let t=e.length-1,[r,i,n]=wV(e);i[0]=.5*(e[1]-e[t])*t,i[t]=.5*(e[0]-e[t-1])*t;let a=(e[0]-e[t])*t,o=a;return n[0]=(rw(a)+rw(r[0]))*ZU(x0(a),x0(r[0]),.5*x0(i[0])),n[t]=(rw(r[t-1])+rw(o))*ZU(x0(r[t-1]),x0(o),.5*x0(i[t])),TV(e,n,r)},ibt=(e=1)=>e===1?t=>t:t=>Math.pow(t,e),yfe=ibt,nbt=(e=2,t=1)=>{let r=yfe(t);if(e<2)return e<1?[]:[r(.5)];let i=[];for(let n=0;n{let t={mode:e.mode,r:Math.max(0,Math.min(e.r!==void 0?e.r:0,1)),g:Math.max(0,Math.min(e.g!==void 0?e.g:0,1)),b:Math.max(0,Math.min(e.b!==void 0?e.b:0,1))};return e.alpha!==void 0&&(t.alpha=e.alpha),t},_fe=e=>bfe(xfe(e)),wfe=e=>e!==void 0&&(e.r===void 0||e.r>=0&&e.r<=1)&&(e.g===void 0||e.g>=0&&e.g<=1)&&(e.b===void 0||e.b>=0&&e.b<=1);function AV(e){return wfe(xfe(e))}function cD(e="rgb"){let{gamut:t}=Tf(e);if(!t)return i=>!0;let r=_s(typeof t=="string"?t:e);return i=>wfe(r(i))}function obt(e){return e=Vp(e),e===void 0||AV(e)?e:_s(e.mode)(_fe(e))}function MV(e="rgb"){let{gamut:t}=Tf(e);if(!t)return a=>Vp(a);let r=typeof t=="string"?t:e,i=_s(r),n=cD(r);return a=>{let o=Vp(a);if(!o)return;let s=i(o);if(n(s))return o;let l=bfe(s);return o.mode===l.mode?l:_s(o.mode)(l)}}function sbt(e,t="lch",r="rgb"){e=Vp(e);let i=r==="rgb"?AV:cD(r),n=r==="rgb"?_fe:MV(r);if(e===void 0||i(e))return e;let a=_s(e.mode);e=_s(t)(e);let o=da(fn({},e),{c:0});if(!i(o))return a(n(o));let s=0,l=e.c!==void 0?e.c:0,u=Tf(t).ranges.c,c=(u[1]-u[0])/Math.pow(2,13),f=o.c;for(;l-s>c;)o.c=s+(l-s)*.5,i(o)?(f=o.c,s=o.c):l=o.c;return a(i(o)?o:da(fn({},o),{c:f}))}function lbt(e="rgb",t="oklch",r=ow("oklch"),i=.02){let n=_s(e),a=Tf(e);if(!a.gamut)return c=>n(c);let o=cD(e),s=MV(e),l=_s(t),{ranges:u}=Tf(t);if(!u.l||!u.c)throw new Error("LCH-like space expected");return c=>{if(c=Vp(c),c===void 0)return;let f=fn({},l(c));if(f.l===void 0&&(f.l=0),f.c===void 0&&(f.c=0),f.l>=u.l[1]){let m=da(fn({},a.white),{mode:e});return c.alpha!==void 0&&(m.alpha=c.alpha),m}if(f.l<=u.l[0]){let m=da(fn({},a.black),{mode:e});return c.alpha!==void 0&&(m.alpha=c.alpha),m}if(o(f))return n(f);let h=0,p=f.c,d=(u.c[1]-u.c[0])/4e3,v=s(f);for(;p-h>d;)f.c=(h+p)*.5,v=s(f),o(f)||r&&i>0&&r(f,v)<=i?h=f.c:p=f.c;return n(o(f)?f:v)}}var ubt=(e,t=ow(),r=i=>i)=>{let i=e.map((n,a)=>({color:r(n),i:a}));return(n,a=1,o=1/0)=>(isFinite(a)&&(a=Math.max(1,Math.min(a,i.length-1))),i.forEach(s=>{s.d=t(n,s.color)}),i.sort((s,l)=>s.d-l.d).slice(0,a).filter(s=>s.de[s.i]))},cbt=ubt,SV=e=>Math.max(e,0),EV=e=>Math.max(Math.min(e,1),0),fbt=(e,t,r)=>e===void 0||t===void 0?void 0:e+r*(t-e),hbt=e=>{let t=1-EV(e);return[.393+.607*t,.769-.769*t,.189-.189*t,0,.349-.349*t,.686+.314*t,.168-.168*t,0,.272-.272*t,.534-.534*t,.131+.869*t,0,0,0,0,1]},dbt=e=>{let t=SV(e);return[.213+.787*t,.715-.715*t,.072-.072*t,0,.213-.213*t,.715+.285*t,.072-.072*t,0,.213-.213*t,.715-.715*t,.072+.928*t,0,0,0,0,1]},pbt=e=>{let t=1-EV(e);return[.2126+.7874*t,.7152-.7152*t,.0722-.0722*t,0,.2126-.2126*t,.7152+.2848*t,.0722-.0722*t,0,.2126-.2126*t,.7152-.7152*t,.0722+.9278*t,0,0,0,0,1]},vbt=e=>{let t=Math.PI*e/180,r=Math.cos(t),i=Math.sin(t);return[.213+r*.787-i*.213,.715-r*.715-i*.715,.072-r*.072+i*.928,0,.213-r*.213+i*.143,.715+r*.285+i*.14,.072-r*.072-i*.283,0,.213-r*.213-i*.787,.715-r*.715+i*.715,.072+r*.928+i*.072,0,0,0,0,1]},fD=(e,t,r=!1)=>{let i=_s(t),n=Tf(t).channels;return a=>{let o=i(a);if(!o)return;let s={mode:t},l,u=n.length;for(let f=0;f{let r=SV(e);return sA(_V(r),t,!0)},mbt=(e=1,t="rgb")=>{let r=SV(e);return sA(_V(r,(1-r)/2),t,!0)},ybt=(e=1,t="rgb")=>fD(hbt(e),t,!0),xbt=(e=1,t="rgb")=>fD(dbt(e),t,!0),bbt=(e=1,t="rgb")=>fD(pbt(e),t,!0),_bt=(e=1,t="rgb")=>{let r=EV(e);return sA((i,n)=>n==="alpha"?i:fbt(r,1-r,i),t,!0)},wbt=(e=0,t="rgb")=>fD(vbt(e),t,!0),Tbt=_s("rgb"),Abt=[[1,0,-0,0,1,0,-0,-0,1],[.856167,.182038,-.038205,.029342,.955115,.015544,-.00288,-.001563,1.004443],[.734766,.334872,-.069637,.05184,.919198,.028963,-.004928,-.004209,1.009137],[.630323,.465641,-.095964,.069181,.890046,.040773,-.006308,-.007724,1.014032],[.539009,.579343,-.118352,.082546,.866121,.051332,-.007136,-.011959,1.019095],[.458064,.679578,-.137642,.092785,.846313,.060902,-.007494,-.016807,1.024301],[.38545,.769005,-.154455,.100526,.829802,.069673,-.007442,-.02219,1.029632],[.319627,.849633,-.169261,.106241,.815969,.07779,-.007025,-.028051,1.035076],[.259411,.923008,-.18242,.110296,.80434,.085364,-.006276,-.034346,1.040622],[.203876,.990338,-.194214,.112975,.794542,.092483,-.005222,-.041043,1.046265],[.152286,1.052583,-.204868,.114503,.786281,.099216,-.003882,-.048116,1.051998]],Mbt=[[1,0,-0,0,1,0,-0,-0,1],[.866435,.177704,-.044139,.049567,.939063,.01137,-.003453,.007233,.99622],[.760729,.319078,-.079807,.090568,.889315,.020117,-.006027,.013325,.992702],[.675425,.43385,-.109275,.125303,.847755,.026942,-.00795,.018572,.989378],[.605511,.52856,-.134071,.155318,.812366,.032316,-.009376,.023176,.9862],[.547494,.607765,-.155259,.181692,.781742,.036566,-.01041,.027275,.983136],[.498864,.674741,-.173604,.205199,.754872,.039929,-.011131,.030969,.980162],[.457771,.731899,-.18967,.226409,.731012,.042579,-.011595,.034333,.977261],[.422823,.781057,-.203881,.245752,.709602,.044646,-.011843,.037423,.974421],[.392952,.82361,-.216562,.263559,.69021,.046232,-.01191,.040281,.97163],[.367322,.860646,-.227968,.280085,.672501,.047413,-.01182,.04294,.968881]],Sbt=[[1,0,-0,0,1,0,-0,-0,1],[.92667,.092514,-.019184,.021191,.964503,.014306,.008437,.054813,.93675],[.89572,.13333,-.02905,.029997,.9454,.024603,.013027,.104707,.882266],[.905871,.127791,-.033662,.026856,.941251,.031893,.01341,.148296,.838294],[.948035,.08949,-.037526,.014364,.946792,.038844,.010853,.193991,.795156],[1.017277,.027029,-.044306,-.006113,.958479,.047634,.006379,.248708,.744913],[1.104996,-.046633,-.058363,-.032137,.971635,.060503,.001336,.317922,.680742],[1.193214,-.109812,-.083402,-.058496,.97941,.079086,-.002346,.403492,.598854],[1.257728,-.139648,-.118081,-.078003,.975409,.102594,-.003316,.501214,.502102],[1.278864,-.125333,-.153531,-.084748,.957674,.127074,-989e-6,.601151,.399838],[1.255528,-.076749,-.178779,-.078411,.930809,.147602,.004733,.691367,.3039]],kV=(e,t)=>{let r=Math.max(0,Math.min(1,t)),i=Math.round(r/.1),n=Math.round(r%.1),a=e[i];if(n>0&&iVx(a[l],o[l],n))}return o=>{let s=Vp(o);if(s===void 0)return;let{r:l,g:u,b:c}=Tbt(s),f={mode:"rgb",r:a[0]*l+a[1]*u+a[2]*c,g:a[3]*l+a[4]*u+a[5]*c,b:a[6]*l+a[7]*u+a[8]*c};return s.alpha!==void 0&&(f.alpha=s.alpha),_s(s.mode)(f)}},Ebt=(e=1)=>kV(Abt,e),kbt=(e=1)=>kV(Mbt,e),Cbt=(e=1)=>kV(Sbt,e),Dbt=e=>e*e*(3-2*e),Fbt=e=>.5-Math.sin(Math.asin(1-2*e)/3),Lbt=e=>e*e*e*(e*(e*6-15)+10),Pbt=Lbt,Ibt=e=>(1-Math.cos(e*Math.PI))/2,Rbt=Ibt;function KU(e){let t=_s("lrgb")(e);return .2126*t.r+.7152*t.g+.0722*t.b}function zbt(e,t){let r=KU(e),i=KU(t);return(Math.max(r,i)+.05)/(Math.min(r,i)+.05)}var Bbt=$o(tce),qbt=$o(oce),Obt=$o(fce),Nbt=$o(hce),Ubt=$o(vce),Vbt=$o(iV),Gbt=$o(oV),Hbt=$o(Tce),jbt=$o(Sce),$bt=$o(Ece),Wbt=$o(kce),Ybt=$o(lD),Xbt=$o(Dce),Zbt=$o(uD),Kbt=$o(Lce),Jbt=$o(Rce),Qbt=$o(zce),e_t=$o(Bce),t_t=$o(Oce),r_t=$o(Nce),i_t=$o(Vce),n_t=$o(Hce),a_t=$o(jce),o_t=$o($ce),s_t=$o(Wce),l_t=$o(jx),u_t=$o(Kce),c_t=$o(Jce),f_t=$o(tfe),h_t=$o(nfe)});var CV={};Jn(CV,{default:()=>p_t});var d_t,p_t,DV=Ci(()=>{"use strict";d_t={format:{valType:"enumerated",values:["png","jpeg","webp","svg","full-json"],dflt:"png",description:"Sets the format of exported image."},width:{valType:"number",min:1,description:["Sets the exported image width.","Defaults to the value found in `layout.width`","If set to *null*, the exported image width will match the current graph width."].join(" ")},height:{valType:"number",min:1,description:["Sets the exported image height.","Defaults to the value found in `layout.height`","If set to *null*, the exported image height will match the current graph height."].join(" ")},scale:{valType:"number",min:0,dflt:1,description:["Sets a scaling for the generated image.","If set, all features of a graphs (e.g. text, line width)","are scaled, unlike simply setting","a bigger *width* and *height*."].join(" ")},setBackground:{valType:"any",dflt:!1,description:["Sets the image background mode.","By default, the image background is determined by `layout.paper_bgcolor`,","the *transparent* mode.","One might consider setting `setBackground` to *opaque*","when exporting a *jpeg* image as JPEGs do not support opacity."].join(" ")},imageDataOnly:{valType:"boolean",dflt:!1,description:["Determines whether or not the return value is prefixed by","the image format's corresponding 'data:image;' spec."].join(" ")}},p_t=d_t});var _y=W((Zzr,Cfe)=>{"use strict";var{format:v_t,width:g_t,height:m_t,scale:y_t}=(DV(),Pt(CV)).default,Mfe=y_t,{dflt:Xzr}=Mfe,x_t=F8(Mfe,["dflt"]),Sfe={staticPlot:{valType:"boolean",dflt:!1},typesetMath:{valType:"boolean",dflt:!0},plotlyServerURL:{valType:"string",dflt:"https://cloud.plotly.com/newchart"},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","map"],extras:[!0,!1],dflt:"gl3d+geo+map"},doubleClick:{valType:"enumerated",values:[!1,"reset","autosize","reset+autosize"],dflt:"reset+autosize"},doubleClickDelay:{valType:"number",dflt:500,min:0},showAxisDragHandles:{valType:"boolean",dflt:!0},showAxisRangeEntryBoxes:{valType:"boolean",dflt:!0},showTips:{valType:"boolean",dflt:!0},displayNotifier:{valType:"boolean",dflt:!0},displayModeBar:{valType:"enumerated",values:["hover",!0,!1],dflt:"hover"},showSendToCloud:{valType:"boolean",dflt:!0},modeBarButtonsToRemove:{valType:"any",dflt:[]},modeBarButtonsToAdd:{valType:"any",dflt:[]},modeBarButtons:{valType:"any",dflt:!1},toImageButtonOptions:{format:v_t,filename:{valType:"string"},width:g_t,height:m_t,scale:x_t},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/un/"},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},locale:{valType:"string",dflt:"en-US"},locales:{valType:"any",dflt:{}}},Efe={};function kfe(e,t){for(let r in e){let i=e[r];typeof i!="object"||i===null||(i.valType?"dflt"in i&&(t[r]=i.dflt):(t[r]||(t[r]={}),kfe(i,t[r])))}}kfe(Sfe,Efe);Cfe.exports={configAttributes:Sfe,dfltConfig:Efe}});var LV=W((Jzr,Dfe)=>{"use strict";var FV=gi(),b_t=hn(),lA=[];Dfe.exports=function(e,t,r){var s;if(((s=r==null?void 0:r._context)==null?void 0:s.displayNotifier)===!1||lA.indexOf(e)!==-1)return;lA.push(e);var i=1e3;b_t(t)?i=t:t==="long"&&(i=3e3);var n=FV.select("body").selectAll(".plotly-notifier").data([0]);n.enter().append("div").classed("plotly-notifier",!0);var a=n.selectAll(".notifier-note").data(lA);function o(l){l.duration(700).style("opacity",0).each("end",function(u){var c=lA.indexOf(u);c!==-1&&lA.splice(c,1),FV.select(this).remove()})}a.enter().append("div").classed("notifier-note",!0).style("opacity",0).each(function(l){var u=FV.select(this);u.append("button").classed("notifier-close",!0).html("×").on("click",function(){u.transition().call(o)});for(var c=u.append("p"),f=l.split(//g),h=0;h{"use strict";var cw=_y().dfltConfig,PV=LV(),IV=Ffe.exports={};IV.log=function(){var e;if(cw.logging>1){var t=["LOG:"];for(e=0;e1){var r=[];for(e=0;e"),"long")}};IV.warn=function(){var e;if(cw.logging>0){var t=["WARN:"];for(e=0;e0){var r=[];for(e=0;e"),"stick")}};IV.error=function(){var e;if(cw.logging>0){var t=["ERROR:"];for(e=0;e0){var r=[];for(e=0;e"),"stick")}}});var Yl=W(Yx=>{"use strict";Yx.defaults=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"];Yx.defaultLine="#444";Yx.lightLine="#eee";Yx.background="#fff";Yx.borderLine="#BEC8D9";Yx.lightFraction=1e3/11});var ti=W((tBr,Nfe)=>{"use strict";var{converter:Lfe,formatHex:__t,formatRgb:w_t,wcagContrast:T_t,wcagLuminance:A_t}=Afe(),{isArrayOrTypedArray:Pfe}=Tc(),{warn:M_t}=qg(),{background:cA,defaultLine:BV,defaults:S_t,lightLine:E_t}=Yl(),Ife=Lfe("rgb"),k_t=Lfe("hsl"),Rfe=e=>{if(typeof e!="string")return;let t=e.trim().toLowerCase();if(!/^[0-9a-f]+$/.test(t))try{return Ife(t)}catch(r){return}},Af=e=>e>0?e>1?1:e:0,C_t={mode:"rgb",r:0,g:0,b:0,alpha:1},RV=e=>Math.round(e*255e6)/255e6,zfe=e=>da(fn({},e),{r:RV(e.r),g:RV(e.g),b:RV(e.b)}),b0=e=>w_t(zfe(e)),D_t=e=>__t(zfe(e)),F_t=e=>{var t,r,i,n;return typeof e=="string"?`"${e}"`:Pfe(e)?`${(r=(t=e.constructor)==null?void 0:t.name)!=null?r:"Array"}(${e.length})`:typeof e=="object"?(n=(i=e.constructor)==null?void 0:i.name)!=null?n:"Object":`${typeof e} ${e}`},al=(e,t)=>{var i;let r=Rfe(e);return r?((i=r.alpha)!=null||(r.alpha=1),r):(!t&&e!=null&&M_t(`Invalid color specifier: ${F_t(e)}. Defaulting to "#000"`),C_t)},uA=e=>b0(da(fn({},al(e)),{alpha:1})),L_t=e=>e?al(e).alpha:0,Bfe=e=>Pfe(e)&&e.length>2&&Number.isFinite(e[0])&&Number.isFinite(e[1])&&Number.isFinite(e[2]),P_t=e=>{let[t,r,i,n]=e,a=Math.max(t,r,i)>1?1/255:1,o=n!=null?n:1;return{mode:"rgb",r:t*a,g:r*a,b:i*a,alpha:o>1?o/255:o}},I_t=(e,t)=>{let r=Bfe(e)?P_t(e):al(e,!0),i=[Af(r.r),Af(r.g),Af(r.b),Af(r.alpha)];return t==="uint8"||t==="uint8_clamped"?Uint8Array.from(i,n=>Math.round(n*255)):t==="float32"?Float32Array.from(i):t==="float64"?Float64Array.from(i):i},R_t=(e,t)=>b0(da(fn({},al(e)),{alpha:Af(t)})),qfe=(e,t)=>{let r=al(e),i=r.alpha;if(i===1)return b0(r);let n=al(t||cA),a=n.alpha,o=(s,l)=>(a===1?l:1-a+l*a)*(1-i)+s*i;return b0({mode:"rgb",r:o(r.r,n.r),g:o(r.g,n.g),b:o(r.b,n.b)})},z_t=(e,t,r)=>{let i=al(e),n=al(t),a=(o,s)=>r*o+(1-r)*s;return b0({mode:"rgb",r:a(i.r,n.r),g:a(i.g,n.g),b:a(i.b,n.b)})},zV=(e,t)=>{let r=al(e),i=k_t(r)||{mode:"hsl",h:0,s:0,l:0};return b0(Ife(da(fn({},i),{l:Af((i.l*100+t)/100),alpha:r.alpha})))},hD=(e,t)=>T_t(al(e),al(t)),Ofe=e=>hD(e,cA)>hD(e,BV),B_t=b0(al(cA)),q_t=b0(al(BV)),O_t=(e,t,r)=>(al(e).alpha!==1&&(e=qfe(e,cA)),Ofe(e)?t?zV(e,t):B_t:r?zV(e,-r):q_t),N_t=(e,t)=>{e.style({stroke:uA(t),"stroke-opacity":al(t).alpha})},U_t=(e,t)=>{e.style({fill:uA(t),"fill-opacity":al(t).alpha})},V_t=(e,t)=>!!(e&&t&&uA(e)===uA(t)),G_t=e=>Rfe(e)!==void 0,H_t=(e,t)=>{t=t===0?0:t||10;let r=al(e),i=t/100;return b0(da(fn({},r),{r:Af(r.r+i),g:Af(r.g+i),b:Af(r.b+i)}))},j_t=(e,t,r)=>{let i=al(e),n=al(t),a=r/100,o=n.alpha-i.alpha,s=2*a-1,l=((s*o===-1?s:(s+o)/(1+s*o))+1)/2,u=1-l,c=(f,h)=>u*f+l*h;return b0({mode:"rgb",r:c(i.r,n.r),g:c(i.g,n.g),b:c(i.b,n.b),alpha:i.alpha*(1-a)+n.alpha*a})},$_t=(e,t=["#000","#fff"])=>{let r,i=-1/0;for(let n of t){let a=hD(e,n);a>i&&(i=a,r=b0(al(n)))}return r},W_t=e=>b0(al(e)),Y_t=e=>D_t(al(e)).toUpperCase(),X_t=e=>{let t=al(e);return[Af(t.r)*255,Af(t.g)*255,Af(t.b)*255,Af(t.alpha)]},Z_t=([e,t,r,i])=>b0({mode:"rgb",r:e/255,g:t/255,b:r/255,alpha:i}),K_t=e=>{let t=al(e);return A_t({mode:"rgb",r:Af(t.r),g:Af(t.g),b:Af(t.b)})};Nfe.exports={addOpacity:R_t,adjustLightness:zV,background:cA,brighten:H_t,combine:qfe,contrast:O_t,defaultLine:BV,defaults:S_t,equals:V_t,fill:U_t,hexString:Y_t,interpolate:z_t,isChannelArray:Bfe,isDark:Ofe,isValid:G_t,lightLine:E_t,luminosity:K_t,mix:j_t,mostReadable:$_t,normalize:I_t,opacity:L_t,parse:al,rgb:uA,rgbaArray:X_t,rgbaArrayToString:Z_t,rgbaString:W_t,stroke:N_t,wcagContrast:hD}});var Xx=W((iBr,Gfe)=>{"use strict";var J_t=ti(),dD={Greys:[[0,"rgb(0,0,0)"],[1,"rgb(255,255,255)"]],YlGnBu:[[0,"rgb(8,29,88)"],[.125,"rgb(37,52,148)"],[.25,"rgb(34,94,168)"],[.375,"rgb(29,145,192)"],[.5,"rgb(65,182,196)"],[.625,"rgb(127,205,187)"],[.75,"rgb(199,233,180)"],[.875,"rgb(237,248,217)"],[1,"rgb(255,255,217)"]],Greens:[[0,"rgb(0,68,27)"],[.125,"rgb(0,109,44)"],[.25,"rgb(35,139,69)"],[.375,"rgb(65,171,93)"],[.5,"rgb(116,196,118)"],[.625,"rgb(161,217,155)"],[.75,"rgb(199,233,192)"],[.875,"rgb(229,245,224)"],[1,"rgb(247,252,245)"]],YlOrRd:[[0,"rgb(128,0,38)"],[.125,"rgb(189,0,38)"],[.25,"rgb(227,26,28)"],[.375,"rgb(252,78,42)"],[.5,"rgb(253,141,60)"],[.625,"rgb(254,178,76)"],[.75,"rgb(254,217,118)"],[.875,"rgb(255,237,160)"],[1,"rgb(255,255,204)"]],Bluered:[[0,"rgb(0,0,255)"],[1,"rgb(255,0,0)"]],RdBu:[[0,"rgb(5,10,172)"],[.35,"rgb(106,137,247)"],[.5,"rgb(190,190,190)"],[.6,"rgb(220,170,132)"],[.7,"rgb(230,145,90)"],[1,"rgb(178,10,28)"]],Reds:[[0,"rgb(220,220,220)"],[.2,"rgb(245,195,157)"],[.4,"rgb(245,160,105)"],[1,"rgb(178,10,28)"]],Blues:[[0,"rgb(5,10,172)"],[.35,"rgb(40,60,190)"],[.5,"rgb(70,100,245)"],[.6,"rgb(90,120,245)"],[.7,"rgb(106,137,247)"],[1,"rgb(220,220,220)"]],Picnic:[[0,"rgb(0,0,255)"],[.1,"rgb(51,153,255)"],[.2,"rgb(102,204,255)"],[.3,"rgb(153,204,255)"],[.4,"rgb(204,204,255)"],[.5,"rgb(255,255,255)"],[.6,"rgb(255,204,255)"],[.7,"rgb(255,153,255)"],[.8,"rgb(255,102,204)"],[.9,"rgb(255,102,102)"],[1,"rgb(255,0,0)"]],Rainbow:[[0,"rgb(150,0,90)"],[.125,"rgb(0,0,200)"],[.25,"rgb(0,25,255)"],[.375,"rgb(0,152,255)"],[.5,"rgb(44,255,150)"],[.625,"rgb(151,255,0)"],[.75,"rgb(255,234,0)"],[.875,"rgb(255,111,0)"],[1,"rgb(255,0,0)"]],Portland:[[0,"rgb(12,51,131)"],[.25,"rgb(10,136,186)"],[.5,"rgb(242,211,56)"],[.75,"rgb(242,143,56)"],[1,"rgb(217,30,30)"]],Jet:[[0,"rgb(0,0,131)"],[.125,"rgb(0,60,170)"],[.375,"rgb(5,255,255)"],[.625,"rgb(255,255,0)"],[.875,"rgb(250,0,0)"],[1,"rgb(128,0,0)"]],Hot:[[0,"rgb(0,0,0)"],[.3,"rgb(230,0,0)"],[.6,"rgb(255,210,0)"],[1,"rgb(255,255,255)"]],Blackbody:[[0,"rgb(0,0,0)"],[.2,"rgb(230,0,0)"],[.4,"rgb(230,210,0)"],[.7,"rgb(255,255,255)"],[1,"rgb(160,200,255)"]],Earth:[[0,"rgb(0,0,130)"],[.1,"rgb(0,180,180)"],[.2,"rgb(40,210,40)"],[.4,"rgb(230,230,50)"],[.6,"rgb(120,70,20)"],[1,"rgb(255,255,255)"]],Electric:[[0,"rgb(0,0,0)"],[.15,"rgb(30,0,100)"],[.4,"rgb(120,0,100)"],[.6,"rgb(160,90,0)"],[.8,"rgb(230,200,0)"],[1,"rgb(255,250,220)"]],Viridis:[[0,"#440154"],[.06274509803921569,"#48186a"],[.12549019607843137,"#472d7b"],[.18823529411764706,"#424086"],[.25098039215686274,"#3b528b"],[.3137254901960784,"#33638d"],[.3764705882352941,"#2c728e"],[.4392156862745098,"#26828e"],[.5019607843137255,"#21918c"],[.5647058823529412,"#1fa088"],[.6274509803921569,"#28ae80"],[.6901960784313725,"#3fbc73"],[.7529411764705882,"#5ec962"],[.8156862745098039,"#84d44b"],[.8784313725490196,"#addc30"],[.9411764705882353,"#d8e219"],[1,"#fde725"]],Cividis:[[0,"rgb(0,32,76)"],[.058824,"rgb(0,42,102)"],[.117647,"rgb(0,52,110)"],[.176471,"rgb(39,63,108)"],[.235294,"rgb(60,74,107)"],[.294118,"rgb(76,85,107)"],[.352941,"rgb(91,95,109)"],[.411765,"rgb(104,106,112)"],[.470588,"rgb(117,117,117)"],[.529412,"rgb(131,129,120)"],[.588235,"rgb(146,140,120)"],[.647059,"rgb(161,152,118)"],[.705882,"rgb(176,165,114)"],[.764706,"rgb(192,177,109)"],[.823529,"rgb(209,191,102)"],[.882353,"rgb(225,204,92)"],[.941176,"rgb(243,219,79)"],[1,"rgb(255,233,69)"]]},Ufe=dD.RdBu;function Q_t(e,t){if(t||(t=Ufe),!e)return t;function r(){try{e=dD[e]||JSON.parse(e)}catch(i){e=t}}return typeof e=="string"&&(r(),typeof e=="string"&&r()),Vfe(e)?e:t}function Vfe(e){var t=0;if(!Array.isArray(e)||e.length<2||!e[0]||!e[e.length-1]||+e[0][0]!=0||+e[e.length-1][0]!=1)return!1;for(var r=0;ri3t,HIDE_PLACEHOLDER:()=>r3t,SHOW_PLACEHOLDER:()=>t3t});var t3t,r3t,i3t,Ng=Ci(()=>{"use strict";t3t=100,r3t=1e3,i3t=.2});var fA={};Jn(fA,{counter:()=>Zx});function Zx(e,t="",r,i){let n=t+(r?"":"$"),a=i===!1?"":"^";return e==="xy"?new RegExp(a+"x"+qV+"y"+qV+n):new RegExp(a+e+qV+n)}var qV,fw=Ci(()=>{"use strict";qV="([2-9]|[1-9][0-9]+)?"});var $fe=W(Nh=>{"use strict";var OV=hn(),Hfe=an().extendFlat,n3t=Ja(),a3t=Xx(),NV=ti(),o3t=(Ng(),Pt(Og)).DESELECTDIM,hw=U6(),jfe=(fw(),Pt(fA)).counter,s3t=(ew(),Pt(Q3)).modHalf,Gp=Tc().isArrayOrTypedArray,wy=Tc().isTypedArraySpec,Ty=Tc().decodeTypedArraySpec;Nh.valObjectMeta={data_array:{coerceFunction:function(e,t,r){t.set(Gp(e)?e:wy(e)?Ty(e):r)}},enumerated:{coerceFunction:function(e,t,r,i){i.coerceNumber&&(e=+e),i.values.indexOf(e)===-1?t.set(r):t.set(e)},validateFunction:function(e,t){t.coerceNumber&&(e=+e);for(var r=t.values,i=0;ia===!0||a===!1;n(e)||i.arrayOk&&Array.isArray(e)&&e.length>0&&e.every(n)?t.set(e):t.set(r)}},number:{coerceFunction:function(e,t,r,i){wy(e)&&(e=Ty(e)),!OV(e)||i.min!==void 0&&ei.max?t.set(r):t.set(+e)}},integer:{coerceFunction:function(e,t,r,i){if((i.extras||[]).indexOf(e)!==-1){t.set(e);return}wy(e)&&(e=Ty(e)),e%1||!OV(e)||i.min!==void 0&&ei.max?t.set(r):t.set(+e)}},string:{coerceFunction:function(e,t,r,i){if(typeof e!="string"){var n=typeof e=="number";i.strict===!0||!n?t.set(r):t.set(String(e))}else i.noBlank&&!e?t.set(r):t.set(e)}},color:{coerceFunction:function(e,t,r){wy(e)&&(e=Ty(e)),NV.isValid(e)?t.set(e):t.set(r)}},colorlist:{coerceFunction:function(e,t,r){!Array.isArray(e)||!e.length?t.set(r):e.every(i=>NV.isValid(i))?t.set(e):t.set(r)}},colorscale:{coerceFunction:function(e,t,r){t.set(a3t.get(e,r))}},angle:{coerceFunction:function(e,t,r){wy(e)&&(e=Ty(e)),e==="auto"?t.set("auto"):OV(e)?t.set(s3t(+e,360)):t.set(r)}},subplotid:{coerceFunction:function(e,t,r,i){var n=i.regex||jfe(r);let a=o=>typeof o=="string"&&n.test(o);a(e)||i.arrayOk&&Gp(e)&&e.length>0&&e.every(a)?t.set(e):t.set(r)},validateFunction:function(e,t){var r=t.dflt;return e===r?!0:typeof e!="string"?!1:!!jfe(r).test(e)}},flaglist:{coerceFunction:function(e,t,r,i){if((i.extras||[]).indexOf(e)!==-1){t.set(e);return}if(typeof e!="string"){t.set(r);return}for(var n=e.split("+"),a=0;a{"use strict";Wfe.exports=function(){}});var UV=W((oBr,Yfe)=>{"use strict";Yfe.exports=function(t,r){if(r instanceof RegExp){for(var i=r.toString(),n=0;n{Xfe.exports=l3t;function l3t(){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}});var Jfe=W((lBr,Kfe)=>{Kfe.exports=u3t;function u3t(e){var t=new Float32Array(16);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}});var ehe=W((uBr,Qfe)=>{Qfe.exports=c3t;function c3t(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}});var VV=W((cBr,the)=>{the.exports=f3t;function f3t(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}});var ihe=W((fBr,rhe)=>{rhe.exports=h3t;function h3t(e,t){if(e===t){var r=t[1],i=t[2],n=t[3],a=t[6],o=t[7],s=t[11];e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=r,e[6]=t[9],e[7]=t[13],e[8]=i,e[9]=a,e[11]=t[14],e[12]=n,e[13]=o,e[14]=s}else e[0]=t[0],e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=t[1],e[5]=t[5],e[6]=t[9],e[7]=t[13],e[8]=t[2],e[9]=t[6],e[10]=t[10],e[11]=t[14],e[12]=t[3],e[13]=t[7],e[14]=t[11],e[15]=t[15];return e}});var ahe=W((hBr,nhe)=>{nhe.exports=d3t;function d3t(e,t){var r=t[0],i=t[1],n=t[2],a=t[3],o=t[4],s=t[5],l=t[6],u=t[7],c=t[8],f=t[9],h=t[10],p=t[11],d=t[12],v=t[13],m=t[14],g=t[15],w=r*s-i*o,_=r*l-n*o,b=r*u-a*o,S=i*l-n*s,x=i*u-a*s,A=n*u-a*l,T=c*v-f*d,y=c*m-h*d,E=c*g-p*d,M=f*m-h*v,C=f*g-p*v,k=h*g-p*m,D=w*k-_*C+b*M+S*E-x*y+A*T;return D?(D=1/D,e[0]=(s*k-l*C+u*M)*D,e[1]=(n*C-i*k-a*M)*D,e[2]=(v*A-m*x+g*S)*D,e[3]=(h*x-f*A-p*S)*D,e[4]=(l*E-o*k-u*y)*D,e[5]=(r*k-n*E+a*y)*D,e[6]=(m*b-d*A-g*_)*D,e[7]=(c*A-h*b+p*_)*D,e[8]=(o*C-s*E+u*T)*D,e[9]=(i*E-r*C-a*T)*D,e[10]=(d*x-v*b+g*w)*D,e[11]=(f*b-c*x-p*w)*D,e[12]=(s*y-o*M-l*T)*D,e[13]=(r*M-i*y+n*T)*D,e[14]=(v*_-d*S-m*w)*D,e[15]=(c*S-f*_+h*w)*D,e):null}});var she=W((dBr,ohe)=>{ohe.exports=p3t;function p3t(e,t){var r=t[0],i=t[1],n=t[2],a=t[3],o=t[4],s=t[5],l=t[6],u=t[7],c=t[8],f=t[9],h=t[10],p=t[11],d=t[12],v=t[13],m=t[14],g=t[15];return e[0]=s*(h*g-p*m)-f*(l*g-u*m)+v*(l*p-u*h),e[1]=-(i*(h*g-p*m)-f*(n*g-a*m)+v*(n*p-a*h)),e[2]=i*(l*g-u*m)-s*(n*g-a*m)+v*(n*u-a*l),e[3]=-(i*(l*p-u*h)-s*(n*p-a*h)+f*(n*u-a*l)),e[4]=-(o*(h*g-p*m)-c*(l*g-u*m)+d*(l*p-u*h)),e[5]=r*(h*g-p*m)-c*(n*g-a*m)+d*(n*p-a*h),e[6]=-(r*(l*g-u*m)-o*(n*g-a*m)+d*(n*u-a*l)),e[7]=r*(l*p-u*h)-o*(n*p-a*h)+c*(n*u-a*l),e[8]=o*(f*g-p*v)-c*(s*g-u*v)+d*(s*p-u*f),e[9]=-(r*(f*g-p*v)-c*(i*g-a*v)+d*(i*p-a*f)),e[10]=r*(s*g-u*v)-o*(i*g-a*v)+d*(i*u-a*s),e[11]=-(r*(s*p-u*f)-o*(i*p-a*f)+c*(i*u-a*s)),e[12]=-(o*(f*m-h*v)-c*(s*m-l*v)+d*(s*h-l*f)),e[13]=r*(f*m-h*v)-c*(i*m-n*v)+d*(i*h-n*f),e[14]=-(r*(s*m-l*v)-o*(i*m-n*v)+d*(i*l-n*s)),e[15]=r*(s*h-l*f)-o*(i*h-n*f)+c*(i*l-n*s),e}});var uhe=W((pBr,lhe)=>{lhe.exports=v3t;function v3t(e){var t=e[0],r=e[1],i=e[2],n=e[3],a=e[4],o=e[5],s=e[6],l=e[7],u=e[8],c=e[9],f=e[10],h=e[11],p=e[12],d=e[13],v=e[14],m=e[15],g=t*o-r*a,w=t*s-i*a,_=t*l-n*a,b=r*s-i*o,S=r*l-n*o,x=i*l-n*s,A=u*d-c*p,T=u*v-f*p,y=u*m-h*p,E=c*v-f*d,M=c*m-h*d,C=f*m-h*v;return g*C-w*M+_*E+b*y-S*T+x*A}});var fhe=W((vBr,che)=>{che.exports=g3t;function g3t(e,t,r){var i=t[0],n=t[1],a=t[2],o=t[3],s=t[4],l=t[5],u=t[6],c=t[7],f=t[8],h=t[9],p=t[10],d=t[11],v=t[12],m=t[13],g=t[14],w=t[15],_=r[0],b=r[1],S=r[2],x=r[3];return e[0]=_*i+b*s+S*f+x*v,e[1]=_*n+b*l+S*h+x*m,e[2]=_*a+b*u+S*p+x*g,e[3]=_*o+b*c+S*d+x*w,_=r[4],b=r[5],S=r[6],x=r[7],e[4]=_*i+b*s+S*f+x*v,e[5]=_*n+b*l+S*h+x*m,e[6]=_*a+b*u+S*p+x*g,e[7]=_*o+b*c+S*d+x*w,_=r[8],b=r[9],S=r[10],x=r[11],e[8]=_*i+b*s+S*f+x*v,e[9]=_*n+b*l+S*h+x*m,e[10]=_*a+b*u+S*p+x*g,e[11]=_*o+b*c+S*d+x*w,_=r[12],b=r[13],S=r[14],x=r[15],e[12]=_*i+b*s+S*f+x*v,e[13]=_*n+b*l+S*h+x*m,e[14]=_*a+b*u+S*p+x*g,e[15]=_*o+b*c+S*d+x*w,e}});var dhe=W((gBr,hhe)=>{hhe.exports=m3t;function m3t(e,t,r){var i=r[0],n=r[1],a=r[2],o,s,l,u,c,f,h,p,d,v,m,g;return t===e?(e[12]=t[0]*i+t[4]*n+t[8]*a+t[12],e[13]=t[1]*i+t[5]*n+t[9]*a+t[13],e[14]=t[2]*i+t[6]*n+t[10]*a+t[14],e[15]=t[3]*i+t[7]*n+t[11]*a+t[15]):(o=t[0],s=t[1],l=t[2],u=t[3],c=t[4],f=t[5],h=t[6],p=t[7],d=t[8],v=t[9],m=t[10],g=t[11],e[0]=o,e[1]=s,e[2]=l,e[3]=u,e[4]=c,e[5]=f,e[6]=h,e[7]=p,e[8]=d,e[9]=v,e[10]=m,e[11]=g,e[12]=o*i+c*n+d*a+t[12],e[13]=s*i+f*n+v*a+t[13],e[14]=l*i+h*n+m*a+t[14],e[15]=u*i+p*n+g*a+t[15]),e}});var vhe=W((mBr,phe)=>{phe.exports=y3t;function y3t(e,t,r){var i=r[0],n=r[1],a=r[2];return e[0]=t[0]*i,e[1]=t[1]*i,e[2]=t[2]*i,e[3]=t[3]*i,e[4]=t[4]*n,e[5]=t[5]*n,e[6]=t[6]*n,e[7]=t[7]*n,e[8]=t[8]*a,e[9]=t[9]*a,e[10]=t[10]*a,e[11]=t[11]*a,e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}});var mhe=W((yBr,ghe)=>{ghe.exports=x3t;function x3t(e,t,r,i){var n=i[0],a=i[1],o=i[2],s=Math.sqrt(n*n+a*a+o*o),l,u,c,f,h,p,d,v,m,g,w,_,b,S,x,A,T,y,E,M,C,k,D,F;return Math.abs(s)<1e-6?null:(s=1/s,n*=s,a*=s,o*=s,l=Math.sin(r),u=Math.cos(r),c=1-u,f=t[0],h=t[1],p=t[2],d=t[3],v=t[4],m=t[5],g=t[6],w=t[7],_=t[8],b=t[9],S=t[10],x=t[11],A=n*n*c+u,T=a*n*c+o*l,y=o*n*c-a*l,E=n*a*c-o*l,M=a*a*c+u,C=o*a*c+n*l,k=n*o*c+a*l,D=a*o*c-n*l,F=o*o*c+u,e[0]=f*A+v*T+_*y,e[1]=h*A+m*T+b*y,e[2]=p*A+g*T+S*y,e[3]=d*A+w*T+x*y,e[4]=f*E+v*M+_*C,e[5]=h*E+m*M+b*C,e[6]=p*E+g*M+S*C,e[7]=d*E+w*M+x*C,e[8]=f*k+v*D+_*F,e[9]=h*k+m*D+b*F,e[10]=p*k+g*D+S*F,e[11]=d*k+w*D+x*F,t!==e&&(e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e)}});var xhe=W((xBr,yhe)=>{yhe.exports=b3t;function b3t(e,t,r){var i=Math.sin(r),n=Math.cos(r),a=t[4],o=t[5],s=t[6],l=t[7],u=t[8],c=t[9],f=t[10],h=t[11];return t!==e&&(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[4]=a*n+u*i,e[5]=o*n+c*i,e[6]=s*n+f*i,e[7]=l*n+h*i,e[8]=u*n-a*i,e[9]=c*n-o*i,e[10]=f*n-s*i,e[11]=h*n-l*i,e}});var _he=W((bBr,bhe)=>{bhe.exports=_3t;function _3t(e,t,r){var i=Math.sin(r),n=Math.cos(r),a=t[0],o=t[1],s=t[2],l=t[3],u=t[8],c=t[9],f=t[10],h=t[11];return t!==e&&(e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=a*n-u*i,e[1]=o*n-c*i,e[2]=s*n-f*i,e[3]=l*n-h*i,e[8]=a*i+u*n,e[9]=o*i+c*n,e[10]=s*i+f*n,e[11]=l*i+h*n,e}});var The=W((_Br,whe)=>{whe.exports=w3t;function w3t(e,t,r){var i=Math.sin(r),n=Math.cos(r),a=t[0],o=t[1],s=t[2],l=t[3],u=t[4],c=t[5],f=t[6],h=t[7];return t!==e&&(e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=a*n+u*i,e[1]=o*n+c*i,e[2]=s*n+f*i,e[3]=l*n+h*i,e[4]=u*n-a*i,e[5]=c*n-o*i,e[6]=f*n-s*i,e[7]=h*n-l*i,e}});var Mhe=W((wBr,Ahe)=>{Ahe.exports=T3t;function T3t(e,t,r){var i,n,a,o=r[0],s=r[1],l=r[2],u=Math.sqrt(o*o+s*s+l*l);return Math.abs(u)<1e-6?null:(u=1/u,o*=u,s*=u,l*=u,i=Math.sin(t),n=Math.cos(t),a=1-n,e[0]=o*o*a+n,e[1]=s*o*a+l*i,e[2]=l*o*a-s*i,e[3]=0,e[4]=o*s*a-l*i,e[5]=s*s*a+n,e[6]=l*s*a+o*i,e[7]=0,e[8]=o*l*a+s*i,e[9]=s*l*a-o*i,e[10]=l*l*a+n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e)}});var Ehe=W((TBr,She)=>{She.exports=A3t;function A3t(e,t,r){var i=t[0],n=t[1],a=t[2],o=t[3],s=i+i,l=n+n,u=a+a,c=i*s,f=i*l,h=i*u,p=n*l,d=n*u,v=a*u,m=o*s,g=o*l,w=o*u;return e[0]=1-(p+v),e[1]=f+w,e[2]=h-g,e[3]=0,e[4]=f-w,e[5]=1-(c+v),e[6]=d+m,e[7]=0,e[8]=h+g,e[9]=d-m,e[10]=1-(c+p),e[11]=0,e[12]=r[0],e[13]=r[1],e[14]=r[2],e[15]=1,e}});var Che=W((ABr,khe)=>{khe.exports=M3t;function M3t(e,t){return e[0]=t[0],e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=t[1],e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=t[2],e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var Fhe=W((MBr,Dhe)=>{Dhe.exports=S3t;function S3t(e,t){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]=t[0],e[13]=t[1],e[14]=t[2],e[15]=1,e}});var Phe=W((SBr,Lhe)=>{Lhe.exports=E3t;function E3t(e,t){var r=Math.sin(t),i=Math.cos(t);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=i,e[6]=r,e[7]=0,e[8]=0,e[9]=-r,e[10]=i,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var Rhe=W((EBr,Ihe)=>{Ihe.exports=k3t;function k3t(e,t){var r=Math.sin(t),i=Math.cos(t);return e[0]=i,e[1]=0,e[2]=-r,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=r,e[9]=0,e[10]=i,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var Bhe=W((kBr,zhe)=>{zhe.exports=C3t;function C3t(e,t){var r=Math.sin(t),i=Math.cos(t);return e[0]=i,e[1]=r,e[2]=0,e[3]=0,e[4]=-r,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}});var Ohe=W((CBr,qhe)=>{qhe.exports=D3t;function D3t(e,t){var r=t[0],i=t[1],n=t[2],a=t[3],o=r+r,s=i+i,l=n+n,u=r*o,c=i*o,f=i*s,h=n*o,p=n*s,d=n*l,v=a*o,m=a*s,g=a*l;return e[0]=1-f-d,e[1]=c+g,e[2]=h-m,e[3]=0,e[4]=c-g,e[5]=1-u-d,e[6]=p+v,e[7]=0,e[8]=h+m,e[9]=p-v,e[10]=1-u-f,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var Uhe=W((DBr,Nhe)=>{Nhe.exports=F3t;function F3t(e,t,r,i,n,a,o){var s=1/(r-t),l=1/(n-i),u=1/(a-o);return e[0]=a*2*s,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=a*2*l,e[6]=0,e[7]=0,e[8]=(r+t)*s,e[9]=(n+i)*l,e[10]=(o+a)*u,e[11]=-1,e[12]=0,e[13]=0,e[14]=o*a*2*u,e[15]=0,e}});var Ghe=W((FBr,Vhe)=>{Vhe.exports=L3t;function L3t(e,t,r,i,n){var a=1/Math.tan(t/2),o=1/(i-n);return e[0]=a/r,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=a,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=(n+i)*o,e[11]=-1,e[12]=0,e[13]=0,e[14]=2*n*i*o,e[15]=0,e}});var jhe=W((LBr,Hhe)=>{Hhe.exports=P3t;function P3t(e,t,r,i){var n=Math.tan(t.upDegrees*Math.PI/180),a=Math.tan(t.downDegrees*Math.PI/180),o=Math.tan(t.leftDegrees*Math.PI/180),s=Math.tan(t.rightDegrees*Math.PI/180),l=2/(o+s),u=2/(n+a);return e[0]=l,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=u,e[6]=0,e[7]=0,e[8]=-((o-s)*l*.5),e[9]=(n-a)*u*.5,e[10]=i/(r-i),e[11]=-1,e[12]=0,e[13]=0,e[14]=i*r/(r-i),e[15]=0,e}});var Whe=W((PBr,$he)=>{$he.exports=I3t;function I3t(e,t,r,i,n,a,o){var s=1/(t-r),l=1/(i-n),u=1/(a-o);return e[0]=-2*s,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*l,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*u,e[11]=0,e[12]=(t+r)*s,e[13]=(n+i)*l,e[14]=(o+a)*u,e[15]=1,e}});var Xhe=W((IBr,Yhe)=>{var R3t=VV();Yhe.exports=z3t;function z3t(e,t,r,i){var n,a,o,s,l,u,c,f,h,p,d=t[0],v=t[1],m=t[2],g=i[0],w=i[1],_=i[2],b=r[0],S=r[1],x=r[2];return Math.abs(d-b)<1e-6&&Math.abs(v-S)<1e-6&&Math.abs(m-x)<1e-6?R3t(e):(c=d-b,f=v-S,h=m-x,p=1/Math.sqrt(c*c+f*f+h*h),c*=p,f*=p,h*=p,n=w*h-_*f,a=_*c-g*h,o=g*f-w*c,p=Math.sqrt(n*n+a*a+o*o),p?(p=1/p,n*=p,a*=p,o*=p):(n=0,a=0,o=0),s=f*o-h*a,l=h*n-c*o,u=c*a-f*n,p=Math.sqrt(s*s+l*l+u*u),p?(p=1/p,s*=p,l*=p,u*=p):(s=0,l=0,u=0),e[0]=n,e[1]=s,e[2]=c,e[3]=0,e[4]=a,e[5]=l,e[6]=f,e[7]=0,e[8]=o,e[9]=u,e[10]=h,e[11]=0,e[12]=-(n*d+a*v+o*m),e[13]=-(s*d+l*v+u*m),e[14]=-(c*d+f*v+h*m),e[15]=1,e)}});var Khe=W((RBr,Zhe)=>{Zhe.exports=B3t;function B3t(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]+")"}});var GV=W((zBr,Jhe)=>{Jhe.exports={create:Zfe(),clone:Jfe(),copy:ehe(),identity:VV(),transpose:ihe(),invert:ahe(),adjoint:she(),determinant:uhe(),multiply:fhe(),translate:dhe(),scale:vhe(),rotate:mhe(),rotateX:xhe(),rotateY:_he(),rotateZ:The(),fromRotation:Mhe(),fromRotationTranslation:Ehe(),fromScaling:Che(),fromTranslation:Fhe(),fromXRotation:Phe(),fromYRotation:Rhe(),fromZRotation:Bhe(),fromQuat:Ohe(),frustum:Uhe(),perspective:Ghe(),perspectiveFromFieldOfView:jhe(),ortho:Whe(),lookAt:Xhe(),str:Khe()}});var gD=W(Dl=>{"use strict";var q3t=GV();Dl.init2dArray=function(e,t){for(var r=new Array(e),i=0;i{"use strict";var O3t=gi(),Qhe=qg(),N3t=gD(),U3t=GV();function V3t(e){var t;if(typeof e=="string"){if(t=document.getElementById(e),t===null)throw new Error("No DOM element with id '"+e+"' exists on the page.");return t}else if(e==null)throw new Error("DOM element provided is null or undefined");return e}function G3t(e){var t=O3t.select(e);return t.node()instanceof HTMLElement&&t.size()&&t.classed("js-plotly-plot")}function e0e(e){var t=e&&e.parentNode;t&&t.removeChild(e)}function H3t(e,t){t0e("global",e,t)}function t0e(e,t,r){var i="plotly.js-style-"+e,n=document.getElementById(i);if(!(n&&n.matches(".no-inline-styles"))){n||(n=document.createElement("style"),n.setAttribute("id",i),n.appendChild(document.createTextNode("")),document.head.appendChild(n));var a=n.sheet;a?a.insertRule?a.insertRule(t+"{"+r+"}",0):a.addRule?a.addRule(t,r,0):Qhe.warn("addStyleRule failed"):Qhe.warn("Cannot addRelatedStyleRule, probably due to strict CSP...")}}function j3t(e){var t="plotly.js-style-"+e,r=document.getElementById(t);r&&e0e(r)}function $3t(e,t,r,i,n,a){var o=i.split(":"),s=n.split(":"),l="data-btn-style-event-added";a||(a=document),a.querySelectorAll(e).forEach(function(u){u._hoverStyle={activeStyleParts:o,inactiveStyleParts:s},u.getAttribute(l)||(u.addEventListener("mouseenter",function(){var c=this._hoverStyle,f=this.querySelector(r);f&&(f.style[c.activeStyleParts[0]]=c.activeStyleParts[1])}),u.addEventListener("mouseleave",function(){var c=this._hoverStyle,f=this.querySelector(r);f&&(t&&this.matches(t)?f.style[c.activeStyleParts[0]]=c.activeStyleParts[1]:f.style[c.inactiveStyleParts[0]]=c.inactiveStyleParts[1])}),u.setAttribute(l,!0))})}function W3t(e){var t=i0e(e),r=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];return t.forEach(function(i){var n=r0e(i);if(n){var a=N3t.convertCssMatrix(n);r=U3t.multiply(r,r,a)}}),r}function r0e(e){var t=window.getComputedStyle(e,null),r=t.getPropertyValue("-webkit-transform")||t.getPropertyValue("-moz-transform")||t.getPropertyValue("-ms-transform")||t.getPropertyValue("-o-transform")||t.getPropertyValue("transform");return r==="none"?null:r.replace("matrix","").replace("3d","").slice(1,-1).split(",").map(function(i){return+i})}function i0e(e){for(var t=[];Y3t(e);)t.push(e),e=e.parentNode,typeof ShadowRoot=="function"&&e instanceof ShadowRoot&&(e=e.host);return t}function Y3t(e){return e&&(e instanceof Element||e instanceof HTMLElement)}function X3t(e,t){return e&&t&&e.top===t.top&&e.left===t.left&&e.right===t.right&&e.bottom===t.bottom}n0e.exports={getGraphDiv:V3t,isPlotDiv:G3t,removeElement:e0e,addStyleRule:H3t,addRelatedStyleRule:t0e,deleteRelatedStyleRule:j3t,setStyleOnHover:$3t,getFullTransformMatrix:W3t,getElementTransformMatrix:r0e,getElementAndAncestors:i0e,equalDomRects:X3t}});var dA=W((OBr,a0e)=>{"use strict";a0e.exports={mode:{valType:"enumerated",dflt:"afterall",values:["immediate","next","afterall"]},direction:{valType:"enumerated",values:["forward","reverse"],dflt:"forward"},fromcurrent:{valType:"boolean",dflt:!1},frame:{duration:{valType:"number",min:0,dflt:500},redraw:{valType:"boolean",dflt:!0}},transition:{duration:{valType:"number",min:0,dflt:500,editType:"none"},easing:{valType:"enumerated",dflt:"cubic-in-out",values:["linear","quad","cubic","sin","exp","circle","elastic","back","bounce","linear-in","quad-in","cubic-in","sin-in","exp-in","circle-in","elastic-in","back-in","bounce-in","linear-out","quad-out","cubic-out","sin-out","exp-out","circle-out","elastic-out","back-out","bounce-out","linear-in-out","quad-in-out","cubic-in-out","sin-in-out","exp-in-out","circle-in-out","elastic-in-out","back-in-out","bounce-in-out"],editType:"none"},ordering:{valType:"enumerated",values:["layout first","traces first"],dflt:"layout first",editType:"none"}}}});var hs=W((NBr,h0e)=>{"use strict";var s0e=an().extendFlat,Z3t=my(),l0e={valType:"flaglist",extras:["none"],flags:["calc","clearAxisTypes","plot","style","markerSize","colorbars"]},u0e={valType:"flaglist",extras:["none"],flags:["calc","plot","legend","ticks","axrange","layoutstyle","modebar","camera","arraydraw","colorbars"]},K3t=l0e.flags.slice().concat(["fullReplot"]),J3t=u0e.flags.slice().concat("layoutReplot");h0e.exports={traces:l0e,layout:u0e,traceFlags:function(){return o0e(K3t)},layoutFlags:function(){return o0e(J3t)},update:function(e,t){var r=t.editType;if(r&&r!=="none")for(var i=r.split("+"),n=0;n{"use strict";HV.dash={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",editType:"style"};HV.pattern={shape:{valType:"enumerated",values:["","/","\\","x","-","|","+","."],dflt:"",arrayOk:!0,editType:"style"},path:{valType:"string",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"}});var jV={};Jn(jV,{DATE_FORMAT_LINK:()=>ewt,FORMAT_LINK:()=>Q3t});var Q3t,ewt,$V=Ci(()=>{"use strict";Q3t="https://github.com/d3/d3-format/tree/v1.4.5#d3-format",ewt="https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format"});var Wa=W(dw=>{"use strict";var{DATE_FORMAT_LINK:twt,FORMAT_LINK:rwt}=($V(),Pt(jV)),iwt=["Variables that can't be found will be replaced with the specifier.",'For example, a template of "data: %{x}, %{y}" will result in a value of "data: 1, %{y}" if x is 1 and y is missing.',"Variables with an undefined value will be replaced with the fallback value."].join(" ");function nwt({supportOther:e}={}){return["Variables are inserted using %{variable},",'for example "y: %{y}"'+(e?" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown.":"."),`Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}".`,rwt,"for details on the formatting syntax.",`Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}".`,twt,"for details on the date formatting syntax.",iwt].join(" ")}dw.templateFormatStringDescription=nwt;dw.hovertemplateAttrs=({editType:e="none",arrayOk:t}={},r={})=>fn({valType:"string",dflt:"",editType:e},t!==!1?{arrayOk:!0}:{});dw.texttemplateAttrs=({editType:e="calc",arrayOk:t}={},r={})=>fn({valType:"string",dflt:"",editType:e},t!==!1?{arrayOk:!0}:{});dw.shapeTexttemplateAttrs=({editType:e="arraydraw",newshape:t}={},r={})=>({valType:"string",dflt:"",editType:e});dw.templatefallbackAttrs=({editType:e="none"}={})=>({valType:"any",dflt:"-",editType:e})});var xD=W((HBr,y0e)=>{"use strict";function Ay(e,t){return t?t.d2l(e):e}function d0e(e,t){return t?t.l2d(e):e}function awt(e){return e.x0}function owt(e){return e.x1}function swt(e){return e.y0}function lwt(e){return e.y1}function p0e(e){return e.x0shift||0}function v0e(e){return e.x1shift||0}function g0e(e){return e.y0shift||0}function m0e(e){return e.y1shift||0}function mD(e,t){return Ay(e.x1,t)+v0e(e)-Ay(e.x0,t)-p0e(e)}function yD(e,t,r){return Ay(e.y1,r)+m0e(e)-Ay(e.y0,r)-g0e(e)}function uwt(e,t){return Math.abs(mD(e,t))}function cwt(e,t,r){return Math.abs(yD(e,t,r))}function fwt(e,t,r){return e.type!=="line"?void 0:Math.sqrt(Math.pow(mD(e,t),2)+Math.pow(yD(e,t,r),2))}function hwt(e,t){return d0e((Ay(e.x1,t)+v0e(e)+Ay(e.x0,t)+p0e(e))/2,t)}function dwt(e,t,r){return d0e((Ay(e.y1,r)+m0e(e)+Ay(e.y0,r)+g0e(e))/2,r)}function pwt(e,t,r){return e.type!=="line"?void 0:yD(e,t,r)/mD(e,t)}var vwt=["x0","x1","y0","y1","dy","height","ycenter"],gwt=["x0","x1","y0","y1","dx","width","xcenter"];y0e.exports={x0:awt,x1:owt,y0:swt,y1:lwt,slope:pwt,dx:mD,dy:yD,width:uwt,height:cwt,length:fwt,xcenter:hwt,ycenter:dwt,simpleXVariables:vwt,simpleYVariables:gwt}});var _0e=W((jBr,b0e)=>{"use strict";var mwt=hs().overrideAll,Kx=Ja(),x0e=jo(),ywt=zu().dash,My=an().extendFlat,{shapeTexttemplateAttrs:xwt,templatefallbackAttrs:bwt}=Wa(),_wt=xD();b0e.exports=mwt({newshape:{visible:My({},Kx.visible,{}),showlegend:{valType:"boolean",dflt:!1},legend:My({},Kx.legend,{}),legendgroup:My({},Kx.legendgroup,{}),legendgrouptitle:{text:My({},Kx.legendgrouptitle.text,{}),font:x0e({})},legendrank:My({},Kx.legendrank,{}),legendwidth:My({},Kx.legendwidth,{}),line:{color:{valType:"color"},width:{valType:"number",min:0,dflt:4},dash:My({},ywt,{dflt:"solid"})},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd"},opacity:{valType:"number",min:0,max:1,dflt:1},layer:{valType:"enumerated",values:["below","above","between"],dflt:"above"},drawdirection:{valType:"enumerated",values:["ortho","horizontal","vertical","diagonal"],dflt:"diagonal"},name:My({},Kx.name,{}),label:{text:{valType:"string",dflt:""},texttemplate:xwt({newshape:!0},{keys:Object.keys(_wt)}),texttemplatefallback:bwt({editType:"arraydraw"}),font:x0e({}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"]},textangle:{valType:"angle",dflt:"auto"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto"},yanchor:{valType:"enumerated",values:["top","middle","bottom"]},padding:{valType:"number",dflt:3,min:0}}},activeshape:{fillcolor:{valType:"color",dflt:"rgb(255,0,255)",description:"Sets the color filling the active shape' interior."},opacity:{valType:"number",min:0,max:1,dflt:.5}}},"none","from-root")});var T0e=W(($Br,w0e)=>{"use strict";var wwt=zu().dash,Twt=an().extendFlat;w0e.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:Twt({},wwt,{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"}}});var bD=W((WBr,A0e)=>{"use strict";A0e.exports=function(e){var t=e.editType;return{t:{valType:"number",dflt:0,editType:t},r:{valType:"number",dflt:0,editType:t},b:{valType:"number",dflt:0,editType:t},l:{valType:"number",dflt:0,editType:t},editType:t}}});var pw=W((YBr,k0e)=>{"use strict";var WV=jo(),Awt=dA(),_D=Yl(),M0e=_0e(),S0e=T0e(),Mwt=bD(),E0e=an().extendFlat,wD=WV({editType:"calc"});wD.family.dflt='"Open Sans", verdana, arial, sans-serif';wD.size.dflt=12;wD.color.dflt=_D.defaultLine;k0e.exports={font:wD,title:{text:{valType:"string",editType:"layoutstyle"},font:WV({editType:"layoutstyle"}),subtitle:{text:{valType:"string",editType:"layoutstyle"},font:WV({editType:"layoutstyle"}),editType:"layoutstyle"},xref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle"},yref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle"},x:{valType:"number",min:0,max:1,dflt:.5,editType:"layoutstyle"},y:{valType:"number",min:0,max:1,dflt:"auto",editType:"layoutstyle"},xanchor:{valType:"enumerated",dflt:"auto",values:["auto","left","center","right"],editType:"layoutstyle"},yanchor:{valType:"enumerated",dflt:"auto",values:["auto","top","middle","bottom"],editType:"layoutstyle"},pad:E0e(Mwt({editType:"layoutstyle"}),{}),automargin:{valType:"boolean",dflt:!1,editType:"plot"},editType:"layoutstyle"},uniformtext:{mode:{valType:"enumerated",values:[!1,"hide","show"],dflt:!1,editType:"plot"},minsize:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"},autosize:{valType:"boolean",dflt:!1,editType:"none"},width:{valType:"number",min:10,dflt:700,editType:"plot"},height:{valType:"number",min:10,dflt:450,editType:"plot"},minreducedwidth:{valType:"number",min:2,dflt:64,editType:"plot"},minreducedheight:{valType:"number",min:2,dflt:64,editType:"plot"},margin:{l:{valType:"number",min:0,dflt:80,editType:"plot"},r:{valType:"number",min:0,dflt:80,editType:"plot"},t:{valType:"number",min:0,dflt:100,editType:"plot"},b:{valType:"number",min:0,dflt:80,editType:"plot"},pad:{valType:"number",min:0,dflt:0,editType:"plot"},autoexpand:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},computed:{valType:"any",editType:"none"},paper_bgcolor:{valType:"color",dflt:_D.background,editType:"plot"},plot_bgcolor:{valType:"color",dflt:_D.background,editType:"layoutstyle"},autotypenumbers:{valType:"enumerated",values:["convert types","strict"],dflt:"convert types",editType:"calc"},separators:{valType:"string",editType:"plot"},showlegend:{valType:"boolean",editType:"legend"},colorway:{valType:"colorlist",dflt:_D.defaults,editType:"calc"},datarevision:{valType:"any",editType:"calc"},uirevision:{valType:"any",editType:"none"},editrevision:{valType:"any",editType:"none"},selectionrevision:{valType:"any",editType:"none"},template:{valType:"any",editType:"calc"},newshape:M0e.newshape,activeshape:M0e.activeshape,newselection:S0e.newselection,activeselection:S0e.activeselection,meta:{valType:"any",arrayOk:!0,editType:"plot"},transition:E0e({},Awt.transition,{editType:"none"})}});var C0e=W(()=>{(function(){if(!document.getElementById("9f215cf04c5486422605d13261cb87401f4e7763b6296af81e98efbc0130da53")){var e=document.createElement("style");e.id="9f215cf04c5486422605d13261cb87401f4e7763b6296af81e98efbc0130da53",e.textContent='.maplibregl-map{font:12px/20px Helvetica Neue,Arial,Helvetica,sans-serif;overflow:hidden;position:relative;-webkit-tap-highlight-color:rgb(0 0 0/0);-webkit-touch-callout:none}.maplibregl-canvas{position:absolute;left:0;top:0}.maplibregl-map:fullscreen{width:100%;height:100%}.maplibregl-ctrl-group button.maplibregl-ctrl-compass{touch-action:none}.maplibregl-canvas-container.maplibregl-interactive,.maplibregl-ctrl-group button.maplibregl-ctrl-compass{cursor:grab;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-canvas-container.maplibregl-interactive.maplibregl-track-pointer{cursor:pointer}.maplibregl-canvas-container.maplibregl-interactive:active,.maplibregl-ctrl-group button.maplibregl-ctrl-compass:active{cursor:grabbing}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-canvas-container.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:pinch-zoom}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:none}.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures,.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-ctrl-bottom-left,.maplibregl-ctrl-bottom-right,.maplibregl-ctrl-top-left,.maplibregl-ctrl-top-right{position:absolute;pointer-events:none;z-index:2}.maplibregl-ctrl-top-left{top:0;left:0}.maplibregl-ctrl-top-right{top:0;right:0}.maplibregl-ctrl-bottom-left{bottom:0;left:0}.maplibregl-ctrl-bottom-right{right:0;bottom:0}.maplibregl-ctrl{clear:both;pointer-events:auto;transform:translate(0)}.maplibregl-ctrl-top-left .maplibregl-ctrl{margin:10px 0 0 10px;float:left}.maplibregl-ctrl-top-right .maplibregl-ctrl{margin:10px 10px 0 0;float:right}.maplibregl-ctrl-bottom-left .maplibregl-ctrl{margin:0 0 10px 10px;float:left}.maplibregl-ctrl-bottom-right .maplibregl-ctrl{margin:0 10px 10px 0;float:right}.maplibregl-ctrl-group{border-radius:4px;background:#fff}.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px rgba(0,0,0,.1)}@media (forced-colors:active){.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px ButtonText}}.maplibregl-ctrl-group button{width:29px;height:29px;display:block;padding:0;outline:none;border:0;box-sizing:border-box;background-color:transparent;cursor:pointer}.maplibregl-ctrl button{-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-ctrl-group button+button{border-top:1px solid #ddd}.maplibregl-ctrl button .maplibregl-ctrl-icon{display:block;width:100%;height:100%;background-repeat:no-repeat;background-position:50%}@media (forced-colors:active){.maplibregl-ctrl-icon{background-color:transparent}.maplibregl-ctrl-group button+button{border-top:1px solid ButtonText}}.maplibregl-ctrl button::-moz-focus-inner{border:0;padding:0}.maplibregl-ctrl-attrib-button:focus,.maplibregl-ctrl-group button:focus{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl button:disabled{cursor:not-allowed}.maplibregl-ctrl button:disabled .maplibregl-ctrl-icon{opacity:.25}@media (hover:hover){.maplibregl-ctrl button:not(:disabled):hover{background-color:rgba(0,0,0,.05)}}.maplibregl-ctrl button:not(:disabled):active{background-color:rgba(0,0,0,.05)}.maplibregl-ctrl-group button:focus:focus-visible{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl-group button:focus:not(:focus-visible){box-shadow:none}.maplibregl-ctrl-group button:focus:first-child{border-radius:4px 4px 0 0}.maplibregl-ctrl-group button:focus:last-child{border-radius:0 0 4px 4px}.maplibregl-ctrl-group button:focus:only-child{border-radius:inherit}.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M10%2013c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h9c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M14.5%208.5c-.75%200-1.5.75-1.5%201.5v3h-3c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h3v3c0%20.75.75%201.5%201.5%201.5S16%2019.75%2016%2019v-3h3c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013h-3v-3c0-.75-.75-1.5-1.5-1.5%22%2F%3E%3C%2Fsvg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M10%2013c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h9c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M14.5%208.5c-.75%200-1.5.75-1.5%201.5v3h-3c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h3v3c0%20.75.75%201.5%201.5%201.5S16%2019.75%2016%2019v-3h3c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013h-3v-3c0-.75-.75-1.5-1.5-1.5%22%2F%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M10%2013c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h9c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M14.5%208.5c-.75%200-1.5.75-1.5%201.5v3h-3c-.75%200-1.5.75-1.5%201.5S9.25%2016%2010%2016h3v3c0%20.75.75%201.5%201.5%201.5S16%2019.75%2016%2019v-3h3c.75%200%201.5-.75%201.5-1.5S19.75%2013%2019%2013h-3v-3c0-.75-.75-1.5-1.5-1.5%22%2F%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M24%2016v5.5c0%201.75-.75%202.5-2.5%202.5H16v-1l3-1.5-4-5.5%201-1%205.5%204%201.5-3zM6%2016l1.5%203%205.5-4%201%201-4%205.5%203%201.5v1H7.5C5.75%2024%205%2023.25%205%2021.5V16zm7-11v1l-3%201.5%204%205.5-1%201-5.5-4L6%2013H5V7.5C5%205.75%205.75%205%207.5%205zm11%202.5c0-1.75-.75-2.5-2.5-2.5H16v1l3%201.5-4%205.5%201%201%205.5-4%201.5%203h1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M18.5%2016c-1.75%200-2.5.75-2.5%202.5V24h1l1.5-3%205.5%204%201-1-4-5.5%203-1.5v-1zM13%2018.5c0-1.75-.75-2.5-2.5-2.5H5v1l3%201.5L4%2024l1%201%205.5-4%201.5%203h1zm3-8c0%201.75.75%202.5%202.5%202.5H24v-1l-3-1.5L25%205l-1-1-5.5%204L17%205h-1zM10.5%2013c1.75%200%202.5-.75%202.5-2.5V5h-1l-1.5%203L5%204%204%205l4%205.5L5%2012v1z%22%2F%3E%3C%2Fsvg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M24%2016v5.5c0%201.75-.75%202.5-2.5%202.5H16v-1l3-1.5-4-5.5%201-1%205.5%204%201.5-3zM6%2016l1.5%203%205.5-4%201%201-4%205.5%203%201.5v1H7.5C5.75%2024%205%2023.25%205%2021.5V16zm7-11v1l-3%201.5%204%205.5-1%201-5.5-4L6%2013H5V7.5C5%205.75%205.75%205%207.5%205zm11%202.5c0-1.75-.75-2.5-2.5-2.5H16v1l3%201.5-4%205.5%201%201%205.5-4%201.5%203h1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M18.5%2016c-1.75%200-2.5.75-2.5%202.5V24h1l1.5-3%205.5%204%201-1-4-5.5%203-1.5v-1zM13%2018.5c0-1.75-.75-2.5-2.5-2.5H5v1l3%201.5L4%2024l1%201%205.5-4%201.5%203h1zm3-8c0%201.75.75%202.5%202.5%202.5H24v-1l-3-1.5L25%205l-1-1-5.5%204L17%205h-1zM10.5%2013c1.75%200%202.5-.75%202.5-2.5V5h-1l-1.5%203L5%204%204%205l4%205.5L5%2012v1z%22%2F%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M24%2016v5.5c0%201.75-.75%202.5-2.5%202.5H16v-1l3-1.5-4-5.5%201-1%205.5%204%201.5-3zM6%2016l1.5%203%205.5-4%201%201-4%205.5%203%201.5v1H7.5C5.75%2024%205%2023.25%205%2021.5V16zm7-11v1l-3%201.5%204%205.5-1%201-5.5-4L6%2013H5V7.5C5%205.75%205.75%205%207.5%205zm11%202.5c0-1.75-.75-2.5-2.5-2.5H16v1l3%201.5-4%205.5%201%201%205.5-4%201.5%203h1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22M18.5%2016c-1.75%200-2.5.75-2.5%202.5V24h1l1.5-3%205.5%204%201-1-4-5.5%203-1.5v-1zM13%2018.5c0-1.75-.75-2.5-2.5-2.5H5v1l3%201.5L4%2024l1%201%205.5-4%201.5%203h1zm3-8c0%201.75.75%202.5%202.5%202.5H24v-1l-3-1.5L25%205l-1-1-5.5%204L17%205h-1zM10.5%2013c1.75%200%202.5-.75%202.5-2.5V5h-1l-1.5%203L5%204%204%205l4%205.5L5%2012v1z%22%2F%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22m10.5%2014%204-8%204%208z%22%2F%3E%3Cpath%20fill%3D%22%23ccc%22%20d%3D%22m10.5%2016%204%208%204-8z%22%2F%3E%3C%2Fsvg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22m10.5%2014%204-8%204%208z%22%2F%3E%3Cpath%20fill%3D%22%23ccc%22%20d%3D%22m10.5%2016%204%208%204-8z%22%2F%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2029%2029%22%3E%3Cpath%20d%3D%22m10.5%2014%204-8%204%208z%22%2F%3E%3Cpath%20fill%3D%22%23ccc%22%20d%3D%22m10.5%2016%204%208%204-8z%22%2F%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-globe .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2222%22%20height%3D%2222%22%20fill%3D%22none%22%20stroke%3D%22%23333%22%20viewBox%3D%220%200%2022%2022%22%3E%3Ccircle%20cx%3D%2211%22%20cy%3D%2211%22%20r%3D%228.5%22%2F%3E%3Cpath%20d%3D%22M17.5%2011c0%204.819-3.02%208.5-6.5%208.5S4.5%2015.819%204.5%2011%207.52%202.5%2011%202.5s6.5%203.681%206.5%208.5Z%22%2F%3E%3Cpath%20d%3D%22M13.5%2011c0%202.447-.331%204.64-.853%206.206-.262.785-.562%201.384-.872%201.777-.314.399-.58.517-.775.517s-.461-.118-.775-.517c-.31-.393-.61-.992-.872-1.777C8.831%2015.64%208.5%2013.446%208.5%2011s.331-4.64.853-6.206c.262-.785.562-1.384.872-1.777.314-.399.58-.517.775-.517s.461.118.775.517c.31.393.61.992.872%201.777.522%201.565.853%203.76.853%206.206Z%22%2F%3E%3Cpath%20d%3D%22M11%207.5c-1.909%200-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3%201.3%200%200%201-.224-.138q.07-.058.224-.138c.299-.151.763-.302%201.379-.434C7.378%205.666%209.091%205.5%2011%205.5s3.622.166%204.845.428c.616.132%201.08.283%201.379.434.105.053.177.1.224.138q-.07.058-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm0%209c-1.909%200-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3%201.3%200%200%201-.224-.138%201.3%201.3%200%200%201%20.224-.138c.299-.151.763-.302%201.379-.434C7.378%2014.666%209.091%2014.5%2011%2014.5s3.622.166%204.845.428c.616.132%201.08.283%201.379.434.105.053.177.1.224.138a1.3%201.3%200%200%201-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm0-4c-2.46%200-4.672-.222-6.255-.574-.796-.177-1.406-.38-1.805-.59a1.5%201.5%200%200%201-.39-.272.3.3%200%200%201-.047-.064.3.3%200%200%201%20.048-.064c.066-.073.189-.167.389-.272.399-.21%201.009-.413%201.805-.59C6.328%209.722%208.54%209.5%2011%209.5s4.672.222%206.256.574c.795.177%201.405.38%201.804.59.2.105.323.2.39.272a.3.3%200%200%201%20.047.064.3.3%200%200%201-.048.064%201.4%201.4%200%200%201-.389.272c-.399.21-1.009.413-1.804.59-1.584.352-3.796.574-6.256.574Zm-8.501-1.51v.002zm0%20.018v.002zm17.002.002v-.002zm0-.018v-.002z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-globe-enabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2222%22%20height%3D%2222%22%20fill%3D%22none%22%20stroke%3D%22%2333b5e5%22%20viewBox%3D%220%200%2022%2022%22%3E%3Ccircle%20cx%3D%2211%22%20cy%3D%2211%22%20r%3D%228.5%22%2F%3E%3Cpath%20d%3D%22M17.5%2011c0%204.819-3.02%208.5-6.5%208.5S4.5%2015.819%204.5%2011%207.52%202.5%2011%202.5s6.5%203.681%206.5%208.5Z%22%2F%3E%3Cpath%20d%3D%22M13.5%2011c0%202.447-.331%204.64-.853%206.206-.262.785-.562%201.384-.872%201.777-.314.399-.58.517-.775.517s-.461-.118-.775-.517c-.31-.393-.61-.992-.872-1.777C8.831%2015.64%208.5%2013.446%208.5%2011s.331-4.64.853-6.206c.262-.785.562-1.384.872-1.777.314-.399.58-.517.775-.517s.461.118.775.517c.31.393.61.992.872%201.777.522%201.565.853%203.76.853%206.206Z%22%2F%3E%3Cpath%20d%3D%22M11%207.5c-1.909%200-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3%201.3%200%200%201-.224-.138q.07-.058.224-.138c.299-.151.763-.302%201.379-.434C7.378%205.666%209.091%205.5%2011%205.5s3.622.166%204.845.428c.616.132%201.08.283%201.379.434.105.053.177.1.224.138q-.07.058-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm0%209c-1.909%200-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3%201.3%200%200%201-.224-.138%201.3%201.3%200%200%201%20.224-.138c.299-.151.763-.302%201.379-.434C7.378%2014.666%209.091%2014.5%2011%2014.5s3.622.166%204.845.428c.616.132%201.08.283%201.379.434.105.053.177.1.224.138a1.3%201.3%200%200%201-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm0-4c-2.46%200-4.672-.222-6.255-.574-.796-.177-1.406-.38-1.805-.59a1.5%201.5%200%200%201-.39-.272.3.3%200%200%201-.047-.064.3.3%200%200%201%20.048-.064c.066-.073.189-.167.389-.272.399-.21%201.009-.413%201.805-.59C6.328%209.722%208.54%209.5%2011%209.5s4.672.222%206.256.574c.795.177%201.405.38%201.804.59.2.105.323.2.39.272a.3.3%200%200%201%20.047.064.3.3%200%200%201-.048.064%201.4%201.4%200%200%201-.389.272c-.399.21-1.009.413-1.804.59-1.584.352-3.796.574-6.256.574Zm-8.501-1.51v.002zm0%20.018v.002zm17.002.002v-.002zm0-.018v-.002z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-terrain .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2222%22%20height%3D%2222%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2022%2022%22%3E%3Cpath%20d%3D%22m1.754%2013.406%204.453-4.851%203.09%203.09%203.281%203.277.969-.969-3.309-3.312%203.844-4.121%206.148%206.886h1.082v-.855l-7.207-8.07-4.84%205.187L6.169%206.57l-5.48%205.965v.871ZM.688%2016.844h20.625v1.375H.688Zm0%200%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-terrain-enabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2222%22%20height%3D%2222%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2022%2022%22%3E%3Cpath%20d%3D%22m1.754%2013.406%204.453-4.851%203.09%203.09%203.281%203.277.969-.969-3.309-3.312%203.844-4.121%206.148%206.886h1.082v-.855l-7.207-8.07-4.84%205.187L6.169%206.57l-5.48%205.965v.871ZM.688%2016.844h20.625v1.375H.688Zm0%200%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23333%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23aaa%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3Cpath%20fill%3D%22red%22%20d%3D%22m14%205%201%201-9%209-1-1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23e58978%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23e54e33%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-waiting .maplibregl-ctrl-icon{animation:maplibregl-spin 2s linear infinite}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23fff%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23999%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3Cpath%20fill%3D%22red%22%20d%3D%22m14%205%201%201-9%209-1-1z%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23e58978%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%2333b5e5%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23e54e33%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2229%22%20height%3D%2229%22%20fill%3D%22%23666%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M10%204C9%204%209%205%209%205v.1A5%205%200%200%200%205.1%209H5s-1%200-1%201%201%201%201%201h.1A5%205%200%200%200%209%2014.9v.1s0%201%201%201%201-1%201-1v-.1a5%205%200%200%200%203.9-3.9h.1s1%200%201-1-1-1-1-1h-.1A5%205%200%200%200%2011%205.1V5s0-1-1-1m0%202.5a3.5%203.5%200%201%201%200%207%203.5%203.5%200%201%201%200-7%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%222%22%2F%3E%3Cpath%20fill%3D%22red%22%20d%3D%22m14%205%201%201-9%209-1-1z%22%2F%3E%3C%2Fsvg%3E")}}@keyframes maplibregl-spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}a.maplibregl-ctrl-logo{width:88px;height:23px;margin:0 0 -4px -4px;display:block;background-repeat:no-repeat;cursor:pointer;overflow:hidden;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2288%22%20height%3D%2223%22%20fill%3D%22none%22%3E%3Cpath%20fill%3D%22%23000%22%20fill-opacity%3D%22.4%22%20fill-rule%3D%22evenodd%22%20d%3D%22M17.408%2016.796h-1.827l2.501-12.095h.198l3.324%206.533.988%202.19.988-2.19%203.258-6.533h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.929%205.644h-.098l-2.914-5.644-.757-1.71-.345%201.71zm1.958-3.42-.726%203.663a1.255%201.255%200%200%201-1.232%201.011h-1.827a1.255%201.255%200%200%201-1.229-1.509l2.501-12.095a1.255%201.255%200%200%201%201.23-1.001h.197a1.25%201.25%200%200%201%201.12.685l3.19%206.273%203.125-6.263a1.25%201.25%200%200%201%201.123-.695h.181a1.255%201.255%200%200%201%201.227.991l1.443%206.71a5%205%200%200%201%20.314-.787l.009-.016a4.6%204.6%200%200%201%201.777-1.887c.782-.46%201.668-.667%202.611-.667a4.6%204.6%200%200%201%201.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255%201.255%200%200%201%201.212.925%201.255%201.255%200%200%201%201.212-.925h1.711c.284%200%20.545.094.755.252.613-.3%201.312-.45%202.075-.45%201.356%200%202.557.445%203.482%201.4q.47.48.763%201.064V4.701a1.255%201.255%200%200%201%201.255-1.255h1.86A1.255%201.255%200%200%201%2054.44%204.7v9.194h2.217c.19%200%20.37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42%202.42%200%200%201-.682-1.71c0-.665.267-1.253.735-1.7a2.45%202.45%200%200%201%201.722-.674%202.43%202.43%200%200%201%201.705.675q.318.302.504.683V4.7a1.255%201.255%200%200%201%201.255-1.255h1.744A1.255%201.255%200%200%201%2065.812%204.7v3.335a4.8%204.8%200%200%201%201.526-.246c.938%200%201.817.214%202.59.69a4.47%204.47%200%200%201%201.67%201.743v-.98a1.255%201.255%200%200%201%201.256-1.256h1.777c.233%200%20.451.064.639.174a3.4%203.4%200%200%201%201.567-.372c.346%200%20.861.02%201.285.232a1.25%201.25%200%200%201%20.689%201.004%204.7%204.7%200%200%201%20.853-.588c.795-.44%201.675-.647%202.61-.647%201.385%200%202.65.39%203.525%201.396.836.938%201.168%202.173%201.168%203.528q-.001.515-.056%201.051a1.255%201.255%200%200%201-.947%201.09l.408.952a1.255%201.255%200%200%201-.477%201.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06%200-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8%205.8%200%200%201-.548-2.512q0-.429.053-.843a1.3%201.3%200%200%201-.333-.086l-.166-.004c-.223%200-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255%201.255%200%200%201-1.256%201.256h-1.777a1.255%201.255%200%200%201-1.256-1.256V15.69l-.032.057a4.8%204.8%200%200%201-1.86%201.833%205.04%205.04%200%200%201-2.484.634%204.5%204.5%200%200%201-1.935-.424%201.25%201.25%200%200%201-.764.258h-1.71a1.255%201.255%200%200%201-1.256-1.255V7.687a2.4%202.4%200%200%201-.428.625c.253.23.412.561.412.93v7.553a1.255%201.255%200%200%201-1.256%201.255h-1.843a1.25%201.25%200%200%201-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255%201.255%200%200%201-1.256-1.255v-1.251l-.061.117a4.7%204.7%200%200%201-1.782%201.884%204.77%204.77%200%200%201-2.485.67%205.6%205.6%200%200%201-1.485-.188l.009%202.764a1.255%201.255%200%200%201-1.255%201.259h-1.729a1.255%201.255%200%200%201-1.255-1.255v-3.537a1.255%201.255%200%200%201-1.167.793h-1.679a1.25%201.25%200%200%201-.77-.263%204.5%204.5%200%200%201-1.945.429c-.885%200-1.724-.21-2.495-.632l-.017-.01a5%205%200%200%201-1.081-.836%201.255%201.255%200%200%201-1.254%201.312h-1.81a1.255%201.255%200%200%201-1.228-.99l-.782-3.625-2.044%203.939a1.25%201.25%200%200%201-1.115.676h-.098a1.25%201.25%200%200%201-1.116-.68l-2.061-3.994zM35.92%2016.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033%201.332h1.678V9.242h-1.694l-.033%201.267q-.133-.329-.526-.658l-.032-.028a3.2%203.2%200%200%200-.668-.428l-.27-.12a3.3%203.3%200%200%200-1.235-.23q-1.136-.001-1.974.493a3.36%203.36%200%200%200-1.3%201.382q-.445.89-.444%202.074%200%201.2.51%202.107a3.8%203.8%200%200%200%201.382%201.381%203.9%203.9%200%200%200%201.893.477q.795%200%201.455-.33zm-2.789-5.38q-.576.675-.575%201.762%200%201.102.559%201.794.576.675%201.645.675a2.25%202.25%200%200%200%20.934-.19%202.2%202.2%200%200%200%20.468-.29l.178-.161a2.2%202.2%200%200%200%20.397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2%202.2%200%200%200-.633-.709l-.13-.086-.047-.028a2.1%202.1%200%200%200-1.073-.285q-1.052%200-1.629.692zm2.316%202.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96%200%200%200-.353-.389.85.85%200%200%200-.464-.127c-.4%200-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945%200%20.506.122.801.27.99.097.11.266.224.68.224.303%200%20.504-.09.687-.269zm7.545%201.705a2.6%202.6%200%200%200%20.331.423q.319.33.755.548l.173.074q.65.255%201.49.255%201.02%200%201.844-.493a3.45%203.45%200%200%200%201.316-1.4q.493-.904.493-2.089%200-1.909-.988-2.913-.988-1.02-2.584-1.02-.898%200-1.575.347a3%203%200%200%200-.415.262l-.199.166a3.4%203.4%200%200%200-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296%201.119.297%201.07%200%201.645-.675.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.435%200-.835.16a2%202%200%200%200-.284.136%202%202%200%200%200-.363.254%202.2%202.2%200%200%200-.46.569l-.082.162a2.6%202.6%200%200%200-.213%201.072v.115q0%20.707.296%201.267l.135.211zm.964-.818a1.1%201.1%200%200%200%20.367.385.94.94%200%200%200%20.476.118c.423%200%20.59-.117.687-.23.159-.194.28-.478.28-.95%200-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1%201%200%200%200-.503.135l-.012.007a.86.86%200%200%200-.335.343c-.073.133-.132.324-.132.614v.115a1.4%201.4%200%200%200%20.14.66zm15.7-6.222q.347-.346.346-.856a1.05%201.05%200%200%200-.345-.79%201.18%201.18%200%200%200-.84-.329q-.51%200-.855.33a1.05%201.05%200%200%200-.346.79q0%20.51.346.855.345.346.856.346.51%200%20.839-.346zm4.337%209.314.033-1.332q.191.403.59.747l.098.081a4%204%200%200%200%20.316.224l.223.122a3.2%203.2%200%200%200%201.44.322%203.8%203.8%200%200%200%201.875-.477%203.5%203.5%200%200%200%201.382-1.366q.527-.89.526-2.09%200-1.184-.444-2.073a3.24%203.24%200%200%200-1.283-1.399q-.823-.51-1.942-.51a3.5%203.5%200%200%200-1.527.344l-.086.043-.165.09a3%203%200%200%200-.33.214q-.432.315-.656.707a2%202%200%200%200-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5%202.5%200%200%200%20.566.7q.117.098.245.18l.144.08a2.1%202.1%200%200%200%20.975.232q1.07%200%201.645-.675.576-.69.576-1.778%200-1.102-.576-1.777-.56-.691-1.645-.692a2.2%202.2%200%200%200-1.015.235q-.22.113-.415.282l-.15.142a2.1%202.1%200%200%200-.42.594q-.223.479-.223%201.1v.115q0%20.705.293%201.26zm2.616-.293c.157-.191.28-.479.28-.967%200-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87%200%200%200-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0%20.285.057.499.144.669a1.1%201.1%200%200%200%20.367.405c.137.082.28.123.455.123.423%200%20.59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493%200%20.642.099l.247-1.794q-.196-.099-.717-.099a2.3%202.3%200%200%200-.545.063%202%202%200%200%200-.411.148%202.2%202.2%200%200%200-.4.249%202.5%202.5%200%200%200-.485.499%202.7%202.7%200%200%200-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5%201.5%200%200%201%20.466-.636%202.5%202.5%200%200%201%20.399-.253%202%202%200%200%201%20.224-.099zm9.784%202.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46%203.46%200%200%200-1.4%201.382q-.493.906-.493%202.106%200%201.07.428%201.975.428.89%201.332%201.432.906.526%202.255.526.973%200%201.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954%200-1.497-.444a1.6%201.6%200%200%201-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1%201%200%200%200-.156-.176q-.46-.428-1.316-.428-.986%200-1.494.604-.379.45-.494%201.234zm-27.053%202.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z%22%2F%3E%3Cpath%20fill%3D%22%23fff%22%20d%3D%22m19.63%2011.151-.757-1.71-.345%201.71-1.12%205.644h-1.827L18.083%204.7h.197l3.325%206.533.988%202.19.988-2.19L26.839%204.7h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.93%205.644h-.098l-2.913-5.644zm14.836%205.81q-1.02%200-1.893-.478a3.8%203.8%200%200%201-1.381-1.382q-.51-.906-.51-2.106%200-1.185.444-2.074a3.36%203.36%200%200%201%201.3-1.382q.839-.494%201.974-.494a3.3%203.3%200%200%201%201.234.231%203.3%203.3%200%200%201%20.97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02%201.053a3.17%203.17%200%200%201-1.662.444zm.296-1.482q.938%200%201.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2%202.2%200%200%200-.807-.872%202.1%202.1%200%200%200-1.119-.313q-1.053%200-1.629.692-.575.675-.575%201.76%200%201.103.559%201.795.577.675%201.645.675zm6.521-6.237h1.711v1.4q.906-1.597%202.83-1.597%201.596%200%202.584%201.02.988%201.005.988%202.914%200%201.185-.493%202.09a3.46%203.46%200%200%201-1.316%201.399%203.5%203.5%200%200%201-1.844.493q-.954%200-1.662-.329a2.67%202.67%200%200%201-1.086-.97l.017%205.134h-1.728zm4.048%206.22q1.07%200%201.645-.674.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.592%200-1.12.296-.51.28-.822.823-.296.527-.296%201.234v.115q0%20.708.296%201.267.313.543.823.855.51.296%201.119.297z%22%2F%3E%3Cpath%20fill%3D%22%23e1e3e9%22%20d%3D%22M51.325%204.7h1.86v10.45h3.473v1.646h-5.333zm7.12%204.542h1.843v7.553h-1.843zm.905-1.415a1.16%201.16%200%200%201-.856-.346%201.17%201.17%200%200%201-.346-.856%201.05%201.05%200%200%201%20.346-.79q.346-.329.856-.329.494%200%20.839.33a1.05%201.05%200%200%201%20.345.79%201.16%201.16%200%200%201-.345.855q-.33.346-.84.346zm7.875%209.133a3.17%203.17%200%200%201-1.662-.444q-.723-.46-1.004-1.053l-.033%201.332h-1.71V4.701h1.743v4.657l-.082%201.283q.279-.658%201.086-1.119a3.5%203.5%200%200%201%201.778-.477q1.119%200%201.942.51a3.24%203.24%200%200%201%201.283%201.4q.445.888.444%202.072%200%201.201-.526%202.09a3.5%203.5%200%200%201-1.382%201.366%203.8%203.8%200%200%201-1.876.477zm-.296-1.481q1.069%200%201.645-.675.577-.69.577-1.778%200-1.102-.577-1.776-.56-.691-1.645-.692a2.12%202.12%200%200%200-1.58.659q-.642.641-.642%201.694v.115q0%20.71.296%201.267a2.4%202.4%200%200%200%20.807.872%202.1%202.1%200%200%200%201.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14%202.14%200%200%201%201.349-.46q.527%200%20.724.098l-.247%201.794q-.149-.099-.642-.099-.774%200-1.416.494-.626.493-.626%201.58v3.883h-1.777V9.242zm9.534%207.718q-1.35%200-2.255-.526-.904-.543-1.332-1.432a4.6%204.6%200%200%201-.428-1.975q0-1.2.493-2.106a3.46%203.46%200%200%201%201.4-1.382q.889-.495%202.007-.494%201.744%200%202.584.97.855.956.856%202.7%200%20.444-.05.92h-5.43q.18%201.005.708%201.45.542.443%201.497.443.79%200%201.3-.131a4%204%200%200%200%20.938-.362l.542%201.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728%200-1.991%201.86z%22%2F%3E%3Cpath%20d%3D%22M5.074%2015.948a.484.657%200%200%200-.486.659v1.84a.484.657%200%200%200%20.486.659h4.101a.484.657%200%200%200%20.486-.659v-1.84a.484.657%200%200%200-.486-.659zm3.56%201.16H5.617v.838h3.017z%22%20style%3D%22fill%3A%23fff%3Bfill-rule%3Aevenodd%3Bstroke-width%3A1.03600001%22%2F%3E%3Cg%20style%3D%22stroke-width%3A1.12603545%22%3E%3Cpath%20d%3D%22M-9.408-1.416c-3.833-.025-7.056%202.912-7.08%206.615-.02%203.08%201.653%204.832%203.107%206.268.903.892%201.721%201.74%202.32%202.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87%201.87%200%200%200-.362%201.121l-.011%201.877c-.003.402.104.787.347%201.125.244.338.688.653%201.23.656l4.142.028c.542.003.99-.306%201.238-.641a1.87%201.87%200%200%200%20.363-1.121l.012-1.875a1.87%201.87%200%200%200-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145%201.425-1.983%202.348-2.87%201.473-1.414%203.18-3.149%203.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006%201.1v.002c3.274.02%205.92%202.532%205.9%205.6-.017%202.706-1.39%204.026-2.863%205.44-1.034.994-2.118%202.033-2.814%203.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34%200%200%201-.226.084.34.34%200%200%201-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067%202.7-5.545%205.975-5.523m-.02%202.826c-1.62-.01-2.944%201.315-2.955%202.96-.01%201.646%201.295%202.988%202.916%202.999h.002c1.621.01%202.943-1.316%202.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005%201.1c1.017.006%201.829.83%201.822%201.89s-.83%201.874-1.848%201.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874%201.848-1.868m-2.155%2011.857%204.14.025c.271.002.49.305.487.676l-.013%201.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668%22%20style%3D%22color%3A%23000%3Bfont-style%3Anormal%3Bfont-variant%3Anormal%3Bfont-weight%3A400%3Bfont-stretch%3Anormal%3Bfont-size%3Amedium%3Bline-height%3Anormal%3Bfont-family%3Asans-serif%3Bfont-variant-ligatures%3Anormal%3Bfont-variant-position%3Anormal%3Bfont-variant-caps%3Anormal%3Bfont-variant-numeric%3Anormal%3Bfont-variant-alternates%3Anormal%3Bfont-feature-settings%3Anormal%3Btext-indent%3A0%3Btext-align%3Astart%3Btext-decoration%3Anone%3Btext-decoration-line%3Anone%3Btext-decoration-style%3Asolid%3Btext-decoration-color%3A%23000%3Bletter-spacing%3Anormal%3Bword-spacing%3Anormal%3Btext-transform%3Anone%3Bwriting-mode%3Alr-tb%3Bdirection%3Altr%3Btext-orientation%3Amixed%3Bdominant-baseline%3Aauto%3Bbaseline-shift%3Abaseline%3Btext-anchor%3Astart%3Bwhite-space%3Anormal%3Bshape-padding%3A0%3Bclip-rule%3Aevenodd%3Bdisplay%3Ainline%3Boverflow%3Avisible%3Bvisibility%3Avisible%3Bopacity%3A1%3Bisolation%3Aauto%3Bmix-blend-mode%3Anormal%3Bcolor-interpolation%3AsRGB%3Bcolor-interpolation-filters%3AlinearRGB%3Bsolid-color%3A%23000%3Bsolid-opacity%3A1%3Bvector-effect%3Anone%3Bfill%3A%23000%3Bfill-opacity%3A.4%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-linecap%3Abutt%3Bstroke-linejoin%3Amiter%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-dashoffset%3A0%3Bstroke-opacity%3A1%3Bcolor-rendering%3Aauto%3Bimage-rendering%3Aauto%3Bshape-rendering%3Aauto%3Btext-rendering%3Aauto%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-9.415-.316C-12.69-.338-15.37%202.14-15.39%205.207c-.017%202.716%201.326%204.041%202.78%205.477%201.013%201%202.081%202.055%202.78%203.67l.092.076a.34.34%200%200%200%20.225.086.34.34%200%200%200%20.227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6%201.78-2.64%202.814-3.634%201.473-1.414%202.847-2.733%202.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057%208.784c1.621.011%202.944-1.315%202.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945%201.315-2.955%202.96s1.295%202.989%202.916%203%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23e1e3e9%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-11.594%2015.465c-.27-.002-.492.297-.494.668l-.012%201.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23fff%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E")}a.maplibregl-ctrl-logo.maplibregl-compact{width:14px}@media (forced-colors:active){a.maplibregl-ctrl-logo{background-color:transparent;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2288%22%20height%3D%2223%22%20fill%3D%22none%22%3E%3Cpath%20fill%3D%22%23000%22%20fill-opacity%3D%22.4%22%20fill-rule%3D%22evenodd%22%20d%3D%22M17.408%2016.796h-1.827l2.501-12.095h.198l3.324%206.533.988%202.19.988-2.19%203.258-6.533h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.929%205.644h-.098l-2.914-5.644-.757-1.71-.345%201.71zm1.958-3.42-.726%203.663a1.255%201.255%200%200%201-1.232%201.011h-1.827a1.255%201.255%200%200%201-1.229-1.509l2.501-12.095a1.255%201.255%200%200%201%201.23-1.001h.197a1.25%201.25%200%200%201%201.12.685l3.19%206.273%203.125-6.263a1.25%201.25%200%200%201%201.123-.695h.181a1.255%201.255%200%200%201%201.227.991l1.443%206.71a5%205%200%200%201%20.314-.787l.009-.016a4.6%204.6%200%200%201%201.777-1.887c.782-.46%201.668-.667%202.611-.667a4.6%204.6%200%200%201%201.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255%201.255%200%200%201%201.212.925%201.255%201.255%200%200%201%201.212-.925h1.711c.284%200%20.545.094.755.252.613-.3%201.312-.45%202.075-.45%201.356%200%202.557.445%203.482%201.4q.47.48.763%201.064V4.701a1.255%201.255%200%200%201%201.255-1.255h1.86A1.255%201.255%200%200%201%2054.44%204.7v9.194h2.217c.19%200%20.37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42%202.42%200%200%201-.682-1.71c0-.665.267-1.253.735-1.7a2.45%202.45%200%200%201%201.722-.674%202.43%202.43%200%200%201%201.705.675q.318.302.504.683V4.7a1.255%201.255%200%200%201%201.255-1.255h1.744A1.255%201.255%200%200%201%2065.812%204.7v3.335a4.8%204.8%200%200%201%201.526-.246c.938%200%201.817.214%202.59.69a4.47%204.47%200%200%201%201.67%201.743v-.98a1.255%201.255%200%200%201%201.256-1.256h1.777c.233%200%20.451.064.639.174a3.4%203.4%200%200%201%201.567-.372c.346%200%20.861.02%201.285.232a1.25%201.25%200%200%201%20.689%201.004%204.7%204.7%200%200%201%20.853-.588c.795-.44%201.675-.647%202.61-.647%201.385%200%202.65.39%203.525%201.396.836.938%201.168%202.173%201.168%203.528q-.001.515-.056%201.051a1.255%201.255%200%200%201-.947%201.09l.408.952a1.255%201.255%200%200%201-.477%201.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06%200-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8%205.8%200%200%201-.548-2.512q0-.429.053-.843a1.3%201.3%200%200%201-.333-.086l-.166-.004c-.223%200-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255%201.255%200%200%201-1.256%201.256h-1.777a1.255%201.255%200%200%201-1.256-1.256V15.69l-.032.057a4.8%204.8%200%200%201-1.86%201.833%205.04%205.04%200%200%201-2.484.634%204.5%204.5%200%200%201-1.935-.424%201.25%201.25%200%200%201-.764.258h-1.71a1.255%201.255%200%200%201-1.256-1.255V7.687a2.4%202.4%200%200%201-.428.625c.253.23.412.561.412.93v7.553a1.255%201.255%200%200%201-1.256%201.255h-1.843a1.25%201.25%200%200%201-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255%201.255%200%200%201-1.256-1.255v-1.251l-.061.117a4.7%204.7%200%200%201-1.782%201.884%204.77%204.77%200%200%201-2.485.67%205.6%205.6%200%200%201-1.485-.188l.009%202.764a1.255%201.255%200%200%201-1.255%201.259h-1.729a1.255%201.255%200%200%201-1.255-1.255v-3.537a1.255%201.255%200%200%201-1.167.793h-1.679a1.25%201.25%200%200%201-.77-.263%204.5%204.5%200%200%201-1.945.429c-.885%200-1.724-.21-2.495-.632l-.017-.01a5%205%200%200%201-1.081-.836%201.255%201.255%200%200%201-1.254%201.312h-1.81a1.255%201.255%200%200%201-1.228-.99l-.782-3.625-2.044%203.939a1.25%201.25%200%200%201-1.115.676h-.098a1.25%201.25%200%200%201-1.116-.68l-2.061-3.994zM35.92%2016.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033%201.332h1.678V9.242h-1.694l-.033%201.267q-.133-.329-.526-.658l-.032-.028a3.2%203.2%200%200%200-.668-.428l-.27-.12a3.3%203.3%200%200%200-1.235-.23q-1.136-.001-1.974.493a3.36%203.36%200%200%200-1.3%201.382q-.445.89-.444%202.074%200%201.2.51%202.107a3.8%203.8%200%200%200%201.382%201.381%203.9%203.9%200%200%200%201.893.477q.795%200%201.455-.33zm-2.789-5.38q-.576.675-.575%201.762%200%201.102.559%201.794.576.675%201.645.675a2.25%202.25%200%200%200%20.934-.19%202.2%202.2%200%200%200%20.468-.29l.178-.161a2.2%202.2%200%200%200%20.397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2%202.2%200%200%200-.633-.709l-.13-.086-.047-.028a2.1%202.1%200%200%200-1.073-.285q-1.052%200-1.629.692zm2.316%202.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96%200%200%200-.353-.389.85.85%200%200%200-.464-.127c-.4%200-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945%200%20.506.122.801.27.99.097.11.266.224.68.224.303%200%20.504-.09.687-.269zm7.545%201.705a2.6%202.6%200%200%200%20.331.423q.319.33.755.548l.173.074q.65.255%201.49.255%201.02%200%201.844-.493a3.45%203.45%200%200%200%201.316-1.4q.493-.904.493-2.089%200-1.909-.988-2.913-.988-1.02-2.584-1.02-.898%200-1.575.347a3%203%200%200%200-.415.262l-.199.166a3.4%203.4%200%200%200-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296%201.119.297%201.07%200%201.645-.675.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.435%200-.835.16a2%202%200%200%200-.284.136%202%202%200%200%200-.363.254%202.2%202.2%200%200%200-.46.569l-.082.162a2.6%202.6%200%200%200-.213%201.072v.115q0%20.707.296%201.267l.135.211zm.964-.818a1.1%201.1%200%200%200%20.367.385.94.94%200%200%200%20.476.118c.423%200%20.59-.117.687-.23.159-.194.28-.478.28-.95%200-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1%201%200%200%200-.503.135l-.012.007a.86.86%200%200%200-.335.343c-.073.133-.132.324-.132.614v.115a1.4%201.4%200%200%200%20.14.66zm15.7-6.222q.347-.346.346-.856a1.05%201.05%200%200%200-.345-.79%201.18%201.18%200%200%200-.84-.329q-.51%200-.855.33a1.05%201.05%200%200%200-.346.79q0%20.51.346.855.345.346.856.346.51%200%20.839-.346zm4.337%209.314.033-1.332q.191.403.59.747l.098.081a4%204%200%200%200%20.316.224l.223.122a3.2%203.2%200%200%200%201.44.322%203.8%203.8%200%200%200%201.875-.477%203.5%203.5%200%200%200%201.382-1.366q.527-.89.526-2.09%200-1.184-.444-2.073a3.24%203.24%200%200%200-1.283-1.399q-.823-.51-1.942-.51a3.5%203.5%200%200%200-1.527.344l-.086.043-.165.09a3%203%200%200%200-.33.214q-.432.315-.656.707a2%202%200%200%200-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5%202.5%200%200%200%20.566.7q.117.098.245.18l.144.08a2.1%202.1%200%200%200%20.975.232q1.07%200%201.645-.675.576-.69.576-1.778%200-1.102-.576-1.777-.56-.691-1.645-.692a2.2%202.2%200%200%200-1.015.235q-.22.113-.415.282l-.15.142a2.1%202.1%200%200%200-.42.594q-.223.479-.223%201.1v.115q0%20.705.293%201.26zm2.616-.293c.157-.191.28-.479.28-.967%200-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87%200%200%200-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0%20.285.057.499.144.669a1.1%201.1%200%200%200%20.367.405c.137.082.28.123.455.123.423%200%20.59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493%200%20.642.099l.247-1.794q-.196-.099-.717-.099a2.3%202.3%200%200%200-.545.063%202%202%200%200%200-.411.148%202.2%202.2%200%200%200-.4.249%202.5%202.5%200%200%200-.485.499%202.7%202.7%200%200%200-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5%201.5%200%200%201%20.466-.636%202.5%202.5%200%200%201%20.399-.253%202%202%200%200%201%20.224-.099zm9.784%202.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46%203.46%200%200%200-1.4%201.382q-.493.906-.493%202.106%200%201.07.428%201.975.428.89%201.332%201.432.906.526%202.255.526.973%200%201.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954%200-1.497-.444a1.6%201.6%200%200%201-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1%201%200%200%200-.156-.176q-.46-.428-1.316-.428-.986%200-1.494.604-.379.45-.494%201.234zm-27.053%202.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z%22%2F%3E%3Cpath%20fill%3D%22%23fff%22%20d%3D%22m19.63%2011.151-.757-1.71-.345%201.71-1.12%205.644h-1.827L18.083%204.7h.197l3.325%206.533.988%202.19.988-2.19L26.839%204.7h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.93%205.644h-.098l-2.913-5.644zm14.836%205.81q-1.02%200-1.893-.478a3.8%203.8%200%200%201-1.381-1.382q-.51-.906-.51-2.106%200-1.185.444-2.074a3.36%203.36%200%200%201%201.3-1.382q.839-.494%201.974-.494a3.3%203.3%200%200%201%201.234.231%203.3%203.3%200%200%201%20.97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02%201.053a3.17%203.17%200%200%201-1.662.444zm.296-1.482q.938%200%201.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2%202.2%200%200%200-.807-.872%202.1%202.1%200%200%200-1.119-.313q-1.053%200-1.629.692-.575.675-.575%201.76%200%201.103.559%201.795.577.675%201.645.675zm6.521-6.237h1.711v1.4q.906-1.597%202.83-1.597%201.596%200%202.584%201.02.988%201.005.988%202.914%200%201.185-.493%202.09a3.46%203.46%200%200%201-1.316%201.399%203.5%203.5%200%200%201-1.844.493q-.954%200-1.662-.329a2.67%202.67%200%200%201-1.086-.97l.017%205.134h-1.728zm4.048%206.22q1.07%200%201.645-.674.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.592%200-1.12.296-.51.28-.822.823-.296.527-.296%201.234v.115q0%20.708.296%201.267.313.543.823.855.51.296%201.119.297z%22%2F%3E%3Cpath%20fill%3D%22%23e1e3e9%22%20d%3D%22M51.325%204.7h1.86v10.45h3.473v1.646h-5.333zm7.12%204.542h1.843v7.553h-1.843zm.905-1.415a1.16%201.16%200%200%201-.856-.346%201.17%201.17%200%200%201-.346-.856%201.05%201.05%200%200%201%20.346-.79q.346-.329.856-.329.494%200%20.839.33a1.05%201.05%200%200%201%20.345.79%201.16%201.16%200%200%201-.345.855q-.33.346-.84.346zm7.875%209.133a3.17%203.17%200%200%201-1.662-.444q-.723-.46-1.004-1.053l-.033%201.332h-1.71V4.701h1.743v4.657l-.082%201.283q.279-.658%201.086-1.119a3.5%203.5%200%200%201%201.778-.477q1.119%200%201.942.51a3.24%203.24%200%200%201%201.283%201.4q.445.888.444%202.072%200%201.201-.526%202.09a3.5%203.5%200%200%201-1.382%201.366%203.8%203.8%200%200%201-1.876.477zm-.296-1.481q1.069%200%201.645-.675.577-.69.577-1.778%200-1.102-.577-1.776-.56-.691-1.645-.692a2.12%202.12%200%200%200-1.58.659q-.642.641-.642%201.694v.115q0%20.71.296%201.267a2.4%202.4%200%200%200%20.807.872%202.1%202.1%200%200%200%201.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14%202.14%200%200%201%201.349-.46q.527%200%20.724.098l-.247%201.794q-.149-.099-.642-.099-.774%200-1.416.494-.626.493-.626%201.58v3.883h-1.777V9.242zm9.534%207.718q-1.35%200-2.255-.526-.904-.543-1.332-1.432a4.6%204.6%200%200%201-.428-1.975q0-1.2.493-2.106a3.46%203.46%200%200%201%201.4-1.382q.889-.495%202.007-.494%201.744%200%202.584.97.855.956.856%202.7%200%20.444-.05.92h-5.43q.18%201.005.708%201.45.542.443%201.497.443.79%200%201.3-.131a4%204%200%200%200%20.938-.362l.542%201.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728%200-1.991%201.86z%22%2F%3E%3Cpath%20d%3D%22M5.074%2015.948a.484.657%200%200%200-.486.659v1.84a.484.657%200%200%200%20.486.659h4.101a.484.657%200%200%200%20.486-.659v-1.84a.484.657%200%200%200-.486-.659zm3.56%201.16H5.617v.838h3.017z%22%20style%3D%22fill%3A%23fff%3Bfill-rule%3Aevenodd%3Bstroke-width%3A1.03600001%22%2F%3E%3Cg%20style%3D%22stroke-width%3A1.12603545%22%3E%3Cpath%20d%3D%22M-9.408-1.416c-3.833-.025-7.056%202.912-7.08%206.615-.02%203.08%201.653%204.832%203.107%206.268.903.892%201.721%201.74%202.32%202.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87%201.87%200%200%200-.362%201.121l-.011%201.877c-.003.402.104.787.347%201.125.244.338.688.653%201.23.656l4.142.028c.542.003.99-.306%201.238-.641a1.87%201.87%200%200%200%20.363-1.121l.012-1.875a1.87%201.87%200%200%200-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145%201.425-1.983%202.348-2.87%201.473-1.414%203.18-3.149%203.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006%201.1v.002c3.274.02%205.92%202.532%205.9%205.6-.017%202.706-1.39%204.026-2.863%205.44-1.034.994-2.118%202.033-2.814%203.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34%200%200%201-.226.084.34.34%200%200%201-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067%202.7-5.545%205.975-5.523m-.02%202.826c-1.62-.01-2.944%201.315-2.955%202.96-.01%201.646%201.295%202.988%202.916%202.999h.002c1.621.01%202.943-1.316%202.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005%201.1c1.017.006%201.829.83%201.822%201.89s-.83%201.874-1.848%201.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874%201.848-1.868m-2.155%2011.857%204.14.025c.271.002.49.305.487.676l-.013%201.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668%22%20style%3D%22color%3A%23000%3Bfont-style%3Anormal%3Bfont-variant%3Anormal%3Bfont-weight%3A400%3Bfont-stretch%3Anormal%3Bfont-size%3Amedium%3Bline-height%3Anormal%3Bfont-family%3Asans-serif%3Bfont-variant-ligatures%3Anormal%3Bfont-variant-position%3Anormal%3Bfont-variant-caps%3Anormal%3Bfont-variant-numeric%3Anormal%3Bfont-variant-alternates%3Anormal%3Bfont-feature-settings%3Anormal%3Btext-indent%3A0%3Btext-align%3Astart%3Btext-decoration%3Anone%3Btext-decoration-line%3Anone%3Btext-decoration-style%3Asolid%3Btext-decoration-color%3A%23000%3Bletter-spacing%3Anormal%3Bword-spacing%3Anormal%3Btext-transform%3Anone%3Bwriting-mode%3Alr-tb%3Bdirection%3Altr%3Btext-orientation%3Amixed%3Bdominant-baseline%3Aauto%3Bbaseline-shift%3Abaseline%3Btext-anchor%3Astart%3Bwhite-space%3Anormal%3Bshape-padding%3A0%3Bclip-rule%3Aevenodd%3Bdisplay%3Ainline%3Boverflow%3Avisible%3Bvisibility%3Avisible%3Bopacity%3A1%3Bisolation%3Aauto%3Bmix-blend-mode%3Anormal%3Bcolor-interpolation%3AsRGB%3Bcolor-interpolation-filters%3AlinearRGB%3Bsolid-color%3A%23000%3Bsolid-opacity%3A1%3Bvector-effect%3Anone%3Bfill%3A%23000%3Bfill-opacity%3A.4%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-linecap%3Abutt%3Bstroke-linejoin%3Amiter%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-dashoffset%3A0%3Bstroke-opacity%3A1%3Bcolor-rendering%3Aauto%3Bimage-rendering%3Aauto%3Bshape-rendering%3Aauto%3Btext-rendering%3Aauto%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-9.415-.316C-12.69-.338-15.37%202.14-15.39%205.207c-.017%202.716%201.326%204.041%202.78%205.477%201.013%201%202.081%202.055%202.78%203.67l.092.076a.34.34%200%200%200%20.225.086.34.34%200%200%200%20.227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6%201.78-2.64%202.814-3.634%201.473-1.414%202.847-2.733%202.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057%208.784c1.621.011%202.944-1.315%202.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945%201.315-2.955%202.96s1.295%202.989%202.916%203%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23e1e3e9%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-11.594%2015.465c-.27-.002-.492.297-.494.668l-.012%201.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23fff%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){a.maplibregl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2288%22%20height%3D%2223%22%20fill%3D%22none%22%3E%3Cpath%20fill%3D%22%23000%22%20fill-opacity%3D%22.4%22%20fill-rule%3D%22evenodd%22%20d%3D%22M17.408%2016.796h-1.827l2.501-12.095h.198l3.324%206.533.988%202.19.988-2.19%203.258-6.533h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.929%205.644h-.098l-2.914-5.644-.757-1.71-.345%201.71zm1.958-3.42-.726%203.663a1.255%201.255%200%200%201-1.232%201.011h-1.827a1.255%201.255%200%200%201-1.229-1.509l2.501-12.095a1.255%201.255%200%200%201%201.23-1.001h.197a1.25%201.25%200%200%201%201.12.685l3.19%206.273%203.125-6.263a1.25%201.25%200%200%201%201.123-.695h.181a1.255%201.255%200%200%201%201.227.991l1.443%206.71a5%205%200%200%201%20.314-.787l.009-.016a4.6%204.6%200%200%201%201.777-1.887c.782-.46%201.668-.667%202.611-.667a4.6%204.6%200%200%201%201.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255%201.255%200%200%201%201.212.925%201.255%201.255%200%200%201%201.212-.925h1.711c.284%200%20.545.094.755.252.613-.3%201.312-.45%202.075-.45%201.356%200%202.557.445%203.482%201.4q.47.48.763%201.064V4.701a1.255%201.255%200%200%201%201.255-1.255h1.86A1.255%201.255%200%200%201%2054.44%204.7v9.194h2.217c.19%200%20.37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42%202.42%200%200%201-.682-1.71c0-.665.267-1.253.735-1.7a2.45%202.45%200%200%201%201.722-.674%202.43%202.43%200%200%201%201.705.675q.318.302.504.683V4.7a1.255%201.255%200%200%201%201.255-1.255h1.744A1.255%201.255%200%200%201%2065.812%204.7v3.335a4.8%204.8%200%200%201%201.526-.246c.938%200%201.817.214%202.59.69a4.47%204.47%200%200%201%201.67%201.743v-.98a1.255%201.255%200%200%201%201.256-1.256h1.777c.233%200%20.451.064.639.174a3.4%203.4%200%200%201%201.567-.372c.346%200%20.861.02%201.285.232a1.25%201.25%200%200%201%20.689%201.004%204.7%204.7%200%200%201%20.853-.588c.795-.44%201.675-.647%202.61-.647%201.385%200%202.65.39%203.525%201.396.836.938%201.168%202.173%201.168%203.528q-.001.515-.056%201.051a1.255%201.255%200%200%201-.947%201.09l.408.952a1.255%201.255%200%200%201-.477%201.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06%200-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8%205.8%200%200%201-.548-2.512q0-.429.053-.843a1.3%201.3%200%200%201-.333-.086l-.166-.004c-.223%200-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255%201.255%200%200%201-1.256%201.256h-1.777a1.255%201.255%200%200%201-1.256-1.256V15.69l-.032.057a4.8%204.8%200%200%201-1.86%201.833%205.04%205.04%200%200%201-2.484.634%204.5%204.5%200%200%201-1.935-.424%201.25%201.25%200%200%201-.764.258h-1.71a1.255%201.255%200%200%201-1.256-1.255V7.687a2.4%202.4%200%200%201-.428.625c.253.23.412.561.412.93v7.553a1.255%201.255%200%200%201-1.256%201.255h-1.843a1.25%201.25%200%200%201-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255%201.255%200%200%201-1.256-1.255v-1.251l-.061.117a4.7%204.7%200%200%201-1.782%201.884%204.77%204.77%200%200%201-2.485.67%205.6%205.6%200%200%201-1.485-.188l.009%202.764a1.255%201.255%200%200%201-1.255%201.259h-1.729a1.255%201.255%200%200%201-1.255-1.255v-3.537a1.255%201.255%200%200%201-1.167.793h-1.679a1.25%201.25%200%200%201-.77-.263%204.5%204.5%200%200%201-1.945.429c-.885%200-1.724-.21-2.495-.632l-.017-.01a5%205%200%200%201-1.081-.836%201.255%201.255%200%200%201-1.254%201.312h-1.81a1.255%201.255%200%200%201-1.228-.99l-.782-3.625-2.044%203.939a1.25%201.25%200%200%201-1.115.676h-.098a1.25%201.25%200%200%201-1.116-.68l-2.061-3.994zM35.92%2016.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033%201.332h1.678V9.242h-1.694l-.033%201.267q-.133-.329-.526-.658l-.032-.028a3.2%203.2%200%200%200-.668-.428l-.27-.12a3.3%203.3%200%200%200-1.235-.23q-1.136-.001-1.974.493a3.36%203.36%200%200%200-1.3%201.382q-.445.89-.444%202.074%200%201.2.51%202.107a3.8%203.8%200%200%200%201.382%201.381%203.9%203.9%200%200%200%201.893.477q.795%200%201.455-.33zm-2.789-5.38q-.576.675-.575%201.762%200%201.102.559%201.794.576.675%201.645.675a2.25%202.25%200%200%200%20.934-.19%202.2%202.2%200%200%200%20.468-.29l.178-.161a2.2%202.2%200%200%200%20.397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2%202.2%200%200%200-.633-.709l-.13-.086-.047-.028a2.1%202.1%200%200%200-1.073-.285q-1.052%200-1.629.692zm2.316%202.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96%200%200%200-.353-.389.85.85%200%200%200-.464-.127c-.4%200-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945%200%20.506.122.801.27.99.097.11.266.224.68.224.303%200%20.504-.09.687-.269zm7.545%201.705a2.6%202.6%200%200%200%20.331.423q.319.33.755.548l.173.074q.65.255%201.49.255%201.02%200%201.844-.493a3.45%203.45%200%200%200%201.316-1.4q.493-.904.493-2.089%200-1.909-.988-2.913-.988-1.02-2.584-1.02-.898%200-1.575.347a3%203%200%200%200-.415.262l-.199.166a3.4%203.4%200%200%200-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296%201.119.297%201.07%200%201.645-.675.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.435%200-.835.16a2%202%200%200%200-.284.136%202%202%200%200%200-.363.254%202.2%202.2%200%200%200-.46.569l-.082.162a2.6%202.6%200%200%200-.213%201.072v.115q0%20.707.296%201.267l.135.211zm.964-.818a1.1%201.1%200%200%200%20.367.385.94.94%200%200%200%20.476.118c.423%200%20.59-.117.687-.23.159-.194.28-.478.28-.95%200-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1%201%200%200%200-.503.135l-.012.007a.86.86%200%200%200-.335.343c-.073.133-.132.324-.132.614v.115a1.4%201.4%200%200%200%20.14.66zm15.7-6.222q.347-.346.346-.856a1.05%201.05%200%200%200-.345-.79%201.18%201.18%200%200%200-.84-.329q-.51%200-.855.33a1.05%201.05%200%200%200-.346.79q0%20.51.346.855.345.346.856.346.51%200%20.839-.346zm4.337%209.314.033-1.332q.191.403.59.747l.098.081a4%204%200%200%200%20.316.224l.223.122a3.2%203.2%200%200%200%201.44.322%203.8%203.8%200%200%200%201.875-.477%203.5%203.5%200%200%200%201.382-1.366q.527-.89.526-2.09%200-1.184-.444-2.073a3.24%203.24%200%200%200-1.283-1.399q-.823-.51-1.942-.51a3.5%203.5%200%200%200-1.527.344l-.086.043-.165.09a3%203%200%200%200-.33.214q-.432.315-.656.707a2%202%200%200%200-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5%202.5%200%200%200%20.566.7q.117.098.245.18l.144.08a2.1%202.1%200%200%200%20.975.232q1.07%200%201.645-.675.576-.69.576-1.778%200-1.102-.576-1.777-.56-.691-1.645-.692a2.2%202.2%200%200%200-1.015.235q-.22.113-.415.282l-.15.142a2.1%202.1%200%200%200-.42.594q-.223.479-.223%201.1v.115q0%20.705.293%201.26zm2.616-.293c.157-.191.28-.479.28-.967%200-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87%200%200%200-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0%20.285.057.499.144.669a1.1%201.1%200%200%200%20.367.405c.137.082.28.123.455.123.423%200%20.59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493%200%20.642.099l.247-1.794q-.196-.099-.717-.099a2.3%202.3%200%200%200-.545.063%202%202%200%200%200-.411.148%202.2%202.2%200%200%200-.4.249%202.5%202.5%200%200%200-.485.499%202.7%202.7%200%200%200-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5%201.5%200%200%201%20.466-.636%202.5%202.5%200%200%201%20.399-.253%202%202%200%200%201%20.224-.099zm9.784%202.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46%203.46%200%200%200-1.4%201.382q-.493.906-.493%202.106%200%201.07.428%201.975.428.89%201.332%201.432.906.526%202.255.526.973%200%201.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954%200-1.497-.444a1.6%201.6%200%200%201-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1%201%200%200%200-.156-.176q-.46-.428-1.316-.428-.986%200-1.494.604-.379.45-.494%201.234zm-27.053%202.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z%22%2F%3E%3Cpath%20fill%3D%22%23fff%22%20d%3D%22m19.63%2011.151-.757-1.71-.345%201.71-1.12%205.644h-1.827L18.083%204.7h.197l3.325%206.533.988%202.19.988-2.19L26.839%204.7h.181l2.6%2012.095h-1.81l-1.218-5.644-.362-1.71-.658%201.71-2.93%205.644h-.098l-2.913-5.644zm14.836%205.81q-1.02%200-1.893-.478a3.8%203.8%200%200%201-1.381-1.382q-.51-.906-.51-2.106%200-1.185.444-2.074a3.36%203.36%200%200%201%201.3-1.382q.839-.494%201.974-.494a3.3%203.3%200%200%201%201.234.231%203.3%203.3%200%200%201%20.97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02%201.053a3.17%203.17%200%200%201-1.662.444zm.296-1.482q.938%200%201.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2%202.2%200%200%200-.807-.872%202.1%202.1%200%200%200-1.119-.313q-1.053%200-1.629.692-.575.675-.575%201.76%200%201.103.559%201.795.577.675%201.645.675zm6.521-6.237h1.711v1.4q.906-1.597%202.83-1.597%201.596%200%202.584%201.02.988%201.005.988%202.914%200%201.185-.493%202.09a3.46%203.46%200%200%201-1.316%201.399%203.5%203.5%200%200%201-1.844.493q-.954%200-1.662-.329a2.67%202.67%200%200%201-1.086-.97l.017%205.134h-1.728zm4.048%206.22q1.07%200%201.645-.674.577-.69.576-1.762%200-1.119-.576-1.777-.558-.675-1.645-.675-.592%200-1.12.296-.51.28-.822.823-.296.527-.296%201.234v.115q0%20.708.296%201.267.313.543.823.855.51.296%201.119.297z%22%2F%3E%3Cpath%20fill%3D%22%23e1e3e9%22%20d%3D%22M51.325%204.7h1.86v10.45h3.473v1.646h-5.333zm7.12%204.542h1.843v7.553h-1.843zm.905-1.415a1.16%201.16%200%200%201-.856-.346%201.17%201.17%200%200%201-.346-.856%201.05%201.05%200%200%201%20.346-.79q.346-.329.856-.329.494%200%20.839.33a1.05%201.05%200%200%201%20.345.79%201.16%201.16%200%200%201-.345.855q-.33.346-.84.346zm7.875%209.133a3.17%203.17%200%200%201-1.662-.444q-.723-.46-1.004-1.053l-.033%201.332h-1.71V4.701h1.743v4.657l-.082%201.283q.279-.658%201.086-1.119a3.5%203.5%200%200%201%201.778-.477q1.119%200%201.942.51a3.24%203.24%200%200%201%201.283%201.4q.445.888.444%202.072%200%201.201-.526%202.09a3.5%203.5%200%200%201-1.382%201.366%203.8%203.8%200%200%201-1.876.477zm-.296-1.481q1.069%200%201.645-.675.577-.69.577-1.778%200-1.102-.577-1.776-.56-.691-1.645-.692a2.12%202.12%200%200%200-1.58.659q-.642.641-.642%201.694v.115q0%20.71.296%201.267a2.4%202.4%200%200%200%20.807.872%202.1%202.1%200%200%200%201.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14%202.14%200%200%201%201.349-.46q.527%200%20.724.098l-.247%201.794q-.149-.099-.642-.099-.774%200-1.416.494-.626.493-.626%201.58v3.883h-1.777V9.242zm9.534%207.718q-1.35%200-2.255-.526-.904-.543-1.332-1.432a4.6%204.6%200%200%201-.428-1.975q0-1.2.493-2.106a3.46%203.46%200%200%201%201.4-1.382q.889-.495%202.007-.494%201.744%200%202.584.97.855.956.856%202.7%200%20.444-.05.92h-5.43q.18%201.005.708%201.45.542.443%201.497.443.79%200%201.3-.131a4%204%200%200%200%20.938-.362l.542%201.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728%200-1.991%201.86z%22%2F%3E%3Cpath%20d%3D%22M5.074%2015.948a.484.657%200%200%200-.486.659v1.84a.484.657%200%200%200%20.486.659h4.101a.484.657%200%200%200%20.486-.659v-1.84a.484.657%200%200%200-.486-.659zm3.56%201.16H5.617v.838h3.017z%22%20style%3D%22fill%3A%23fff%3Bfill-rule%3Aevenodd%3Bstroke-width%3A1.03600001%22%2F%3E%3Cg%20style%3D%22stroke-width%3A1.12603545%22%3E%3Cpath%20d%3D%22M-9.408-1.416c-3.833-.025-7.056%202.912-7.08%206.615-.02%203.08%201.653%204.832%203.107%206.268.903.892%201.721%201.74%202.32%202.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87%201.87%200%200%200-.362%201.121l-.011%201.877c-.003.402.104.787.347%201.125.244.338.688.653%201.23.656l4.142.028c.542.003.99-.306%201.238-.641a1.87%201.87%200%200%200%20.363-1.121l.012-1.875a1.87%201.87%200%200%200-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145%201.425-1.983%202.348-2.87%201.473-1.414%203.18-3.149%203.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006%201.1v.002c3.274.02%205.92%202.532%205.9%205.6-.017%202.706-1.39%204.026-2.863%205.44-1.034.994-2.118%202.033-2.814%203.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34%200%200%201-.226.084.34.34%200%200%201-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067%202.7-5.545%205.975-5.523m-.02%202.826c-1.62-.01-2.944%201.315-2.955%202.96-.01%201.646%201.295%202.988%202.916%202.999h.002c1.621.01%202.943-1.316%202.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005%201.1c1.017.006%201.829.83%201.822%201.89s-.83%201.874-1.848%201.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874%201.848-1.868m-2.155%2011.857%204.14.025c.271.002.49.305.487.676l-.013%201.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668%22%20style%3D%22color%3A%23000%3Bfont-style%3Anormal%3Bfont-variant%3Anormal%3Bfont-weight%3A400%3Bfont-stretch%3Anormal%3Bfont-size%3Amedium%3Bline-height%3Anormal%3Bfont-family%3Asans-serif%3Bfont-variant-ligatures%3Anormal%3Bfont-variant-position%3Anormal%3Bfont-variant-caps%3Anormal%3Bfont-variant-numeric%3Anormal%3Bfont-variant-alternates%3Anormal%3Bfont-feature-settings%3Anormal%3Btext-indent%3A0%3Btext-align%3Astart%3Btext-decoration%3Anone%3Btext-decoration-line%3Anone%3Btext-decoration-style%3Asolid%3Btext-decoration-color%3A%23000%3Bletter-spacing%3Anormal%3Bword-spacing%3Anormal%3Btext-transform%3Anone%3Bwriting-mode%3Alr-tb%3Bdirection%3Altr%3Btext-orientation%3Amixed%3Bdominant-baseline%3Aauto%3Bbaseline-shift%3Abaseline%3Btext-anchor%3Astart%3Bwhite-space%3Anormal%3Bshape-padding%3A0%3Bclip-rule%3Aevenodd%3Bdisplay%3Ainline%3Boverflow%3Avisible%3Bvisibility%3Avisible%3Bopacity%3A1%3Bisolation%3Aauto%3Bmix-blend-mode%3Anormal%3Bcolor-interpolation%3AsRGB%3Bcolor-interpolation-filters%3AlinearRGB%3Bsolid-color%3A%23000%3Bsolid-opacity%3A1%3Bvector-effect%3Anone%3Bfill%3A%23000%3Bfill-opacity%3A.4%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-linecap%3Abutt%3Bstroke-linejoin%3Amiter%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-dashoffset%3A0%3Bstroke-opacity%3A1%3Bcolor-rendering%3Aauto%3Bimage-rendering%3Aauto%3Bshape-rendering%3Aauto%3Btext-rendering%3Aauto%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-9.415-.316C-12.69-.338-15.37%202.14-15.39%205.207c-.017%202.716%201.326%204.041%202.78%205.477%201.013%201%202.081%202.055%202.78%203.67l.092.076a.34.34%200%200%200%20.225.086.34.34%200%200%200%20.227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6%201.78-2.64%202.814-3.634%201.473-1.414%202.847-2.733%202.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057%208.784c1.621.011%202.944-1.315%202.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945%201.315-2.955%202.96s1.295%202.989%202.916%203%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23e1e3e9%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3Cpath%20d%3D%22M-11.594%2015.465c-.27-.002-.492.297-.494.668l-.012%201.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z%22%20style%3D%22clip-rule%3Aevenodd%3Bfill%3A%23fff%3Bfill-opacity%3A1%3Bfill-rule%3Aevenodd%3Bstroke%3Anone%3Bstroke-width%3A2.47727823%3Bstroke-miterlimit%3A4%3Bstroke-dasharray%3Anone%3Bstroke-opacity%3A.4%22%20transform%3D%22translate(15.553%202.85)scale(.88807)%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl.maplibregl-ctrl-attrib{padding:0 5px;background-color:hsla(0,0%,100%,.5);margin:0}@media screen{.maplibregl-ctrl-attrib.maplibregl-compact{min-height:20px;padding:2px 24px 2px 0;margin:10px;position:relative;background-color:#fff;color:#000;border-radius:12px;box-sizing:content-box}.maplibregl-ctrl-attrib.maplibregl-compact-show{padding:2px 28px 2px 8px;visibility:visible}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact-show,.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact-show{padding:2px 8px 2px 28px;border-radius:12px}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-inner{display:none}.maplibregl-ctrl-attrib-button{display:none;cursor:pointer;position:absolute;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20fill-rule%3D%22evenodd%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M4%2010a6%206%200%201%200%2012%200%206%206%200%201%200-12%200m5-3a1%201%200%201%200%202%200%201%201%200%201%200-2%200m0%203a1%201%200%201%201%202%200v3a1%201%200%201%201-2%200%22%2F%3E%3C%2Fsvg%3E");background-color:hsla(0,0%,100%,.5);width:24px;height:24px;box-sizing:border-box;border-radius:12px;outline:none;top:0;right:0;border:0}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;list-style:none}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button::-webkit-details-marker{display:none}.maplibregl-ctrl-bottom-left .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-top-left .maplibregl-ctrl-attrib-button{left:0}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-inner{display:block}.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-button{background-color:rgba(0,0,0,.05)}.maplibregl-ctrl-bottom-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;right:0}.maplibregl-ctrl-top-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{top:0;right:0}.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{top:0;left:0}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;left:0}}@media screen and (forced-colors:active){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22%23fff%22%20fill-rule%3D%22evenodd%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M4%2010a6%206%200%201%200%2012%200%206%206%200%201%200-12%200m5-3a1%201%200%201%200%202%200%201%201%200%201%200-2%200m0%203a1%201%200%201%201%202%200v3a1%201%200%201%201-2%200%22%2F%3E%3C%2Fsvg%3E")}}@media screen and (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20fill-rule%3D%22evenodd%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M4%2010a6%206%200%201%200%2012%200%206%206%200%201%200-12%200m5-3a1%201%200%201%200%202%200%201%201%200%201%200-2%200m0%203a1%201%200%201%201%202%200v3a1%201%200%201%201-2%200%22%2F%3E%3C%2Fsvg%3E")}}.maplibregl-ctrl-attrib a{color:rgba(0,0,0,.75);text-decoration:none}.maplibregl-ctrl-attrib a:hover{color:inherit;text-decoration:underline}.maplibregl-attrib-empty{display:none}.maplibregl-ctrl-scale{background-color:hsla(0,0%,100%,.75);font-size:10px;white-space:nowrap;border-color:#333;border-style:none solid solid;border-width:medium 2px 2px;padding:0 5px;color:#333;box-sizing:border-box}.maplibregl-popup{position:absolute;top:0;left:0;display:flex;will-change:transform;pointer-events:none}.maplibregl-popup-anchor-top,.maplibregl-popup-anchor-top-left,.maplibregl-popup-anchor-top-right{flex-direction:column}.maplibregl-popup-anchor-bottom,.maplibregl-popup-anchor-bottom-left,.maplibregl-popup-anchor-bottom-right{flex-direction:column-reverse}.maplibregl-popup-anchor-left{flex-direction:row}.maplibregl-popup-anchor-right{flex-direction:row-reverse}.maplibregl-popup-tip{width:0;height:0;border:10px solid transparent;z-index:1}.maplibregl-popup-anchor-top .maplibregl-popup-tip{align-self:center;border-top:none;border-bottom-color:#fff}.maplibregl-popup-anchor-top-left .maplibregl-popup-tip{align-self:flex-start;border-top:none;border-left:none;border-bottom-color:#fff}.maplibregl-popup-anchor-top-right .maplibregl-popup-tip{align-self:flex-end;border-top:none;border-right:none;border-bottom-color:#fff}.maplibregl-popup-anchor-bottom .maplibregl-popup-tip{align-self:center;border-bottom:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip{align-self:flex-start;border-bottom:none;border-left:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip{align-self:flex-end;border-bottom:none;border-right:none;border-top-color:#fff}.maplibregl-popup-anchor-left .maplibregl-popup-tip{align-self:center;border-left:none;border-right-color:#fff}.maplibregl-popup-anchor-right .maplibregl-popup-tip{align-self:center;border-right:none;border-left-color:#fff}[dir=rtl] .maplibregl-popup-anchor-left{flex-direction:row-reverse}[dir=rtl] .maplibregl-popup-anchor-right{flex-direction:row}[dir=rtl] .maplibregl-popup-anchor-top-left .maplibregl-popup-tip{align-self:flex-end}[dir=rtl] .maplibregl-popup-anchor-top-right .maplibregl-popup-tip{align-self:flex-start}[dir=rtl] .maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip{align-self:flex-end}[dir=rtl] .maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip{align-self:flex-start}.maplibregl-popup-close-button{position:absolute;right:0;top:0;border:0;border-radius:0 3px 0 0;cursor:pointer;background-color:transparent}.maplibregl-popup-close-button:hover{background-color:rgba(0,0,0,.05)}.maplibregl-popup-content{position:relative;background:#fff;border-radius:3px;box-shadow:0 1px 2px rgba(0,0,0,.1);padding:15px 10px;pointer-events:auto}.maplibregl-popup-anchor-top-left .maplibregl-popup-content{border-top-left-radius:0}.maplibregl-popup-anchor-top-right .maplibregl-popup-content{border-top-right-radius:0}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-content{border-bottom-left-radius:0}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-content{border-bottom-right-radius:0}.maplibregl-popup-track-pointer{display:none}.maplibregl-popup-track-pointer *{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-map:hover .maplibregl-popup-track-pointer{display:flex}.maplibregl-map:active .maplibregl-popup-track-pointer{display:none}.maplibregl-marker{position:absolute;top:0;left:0;will-change:transform;transition:opacity .2s}.maplibregl-marker-draggable{cursor:grab}.maplibregl-user-location-dot,.maplibregl-user-location-dot:before{background-color:#1da1f2;width:15px;height:15px;border-radius:50%}.maplibregl-user-location-dot:before{content:"";position:absolute;animation:maplibregl-user-location-dot-pulse 2s infinite}.maplibregl-user-location-dot:after{border-radius:50%;border:2px solid #fff;content:"";height:19px;left:-2px;position:absolute;top:-2px;width:19px;box-sizing:border-box;box-shadow:0 0 3px rgba(0,0,0,.35)}@media (prefers-reduced-motion:reduce){.maplibregl-user-location-dot:before{animation:none}}@keyframes maplibregl-user-location-dot-pulse{0%{transform:scale(1);opacity:1}70%{transform:scale(3);opacity:0}to{transform:scale(1);opacity:0}}.maplibregl-user-location-dot-stale{background-color:#aaa}.maplibregl-user-location-dot-stale:after{display:none}.maplibregl-user-location-accuracy-circle{background-color:#1da1f233;width:1px;height:1px;border-radius:100%}.maplibregl-crosshair,.maplibregl-crosshair .maplibregl-interactive,.maplibregl-crosshair .maplibregl-interactive:active{cursor:crosshair}.maplibregl-boxzoom{position:absolute;top:0;left:0;width:0;height:0;background:#fff;border:2px dotted #202020;opacity:.5}.maplibregl-cooperative-gesture-screen{background:rgba(0,0,0,.4);position:absolute;inset:0;display:flex;justify-content:center;align-items:center;color:#fff;padding:1rem;font-size:1.4em;line-height:1.2;opacity:0;pointer-events:none;transition:opacity 1s ease 1s;z-index:99999}.maplibregl-cooperative-gesture-screen.maplibregl-show{opacity:1;transition:opacity .05s}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:none}@media (hover:none),(pointer:coarse){.maplibregl-cooperative-gesture-screen .maplibregl-desktop-message{display:none}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:block}}.maplibregl-pseudo-fullscreen{position:fixed!important;width:100%!important;height:100%!important;top:0!important;left:0!important;z-index:99999}',document.head.appendChild(e)}})()});var xi=W(Ta=>{"use strict";var YV=qg(),D0e=vD(),F0e=UV(),KBr=hA().addStyleRule,L0e=an(),Swt=Ja(),Ewt=pw(),kwt=L0e.extendFlat,XV=L0e.extendDeepAll;Ta.modules={};Ta.allCategories={};Ta.allTypes=[];Ta.subplotsRegistry={};Ta.componentsRegistry={};Ta.layoutArrayContainers=[];Ta.layoutArrayRegexes=[];Ta.traceLayoutAttributes={};Ta.localeRegistry={};Ta.apiMethodRegistry={};Ta.collectableSubplotTypes=null;Ta.register=function(t){if(Ta.collectableSubplotTypes=null,t)t&&!Array.isArray(t)&&(t=[t]);else throw new Error("No argument passed to Plotly.register.");for(var r=0;r{"use strict";var Pwt=K3().timeFormat,G0e=hn(),ZV=qg(),Ey=(ew(),Pt(Q3)).mod,mw=(ra(),Pt(ia)),pd=mw.BADNUM,Uh=mw.ONEDAY,pA=mw.ONEHOUR,Sy=mw.ONEMIN,gw=mw.ONESEC,vA=mw.EPOCHJD,Ug=xi(),B0e=K3().utcFormat,Iwt=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\d)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d(:?\d\d)?)?)?)?)?)?\s*$/m,Rwt=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\di?)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d(:?\d\d)?)?)?)?)?)?\s*$/m,q0e=new Date().getFullYear()-70;function Vg(e){return e&&Ug.componentsRegistry.calendars&&typeof e=="string"&&e!=="gregorian"}Fl.dateTick0=function(e,t){var r=zwt(e,!!t);if(t<2)return r;var i=Fl.dateTime2ms(r,e);return i+=Uh*(t-1),Fl.ms2DateTime(i,0,e)};function zwt(e,t){return Vg(e)?t?Ug.getComponentMethod("calendars","CANONICAL_SUNDAY")[e]:Ug.getComponentMethod("calendars","CANONICAL_TICK")[e]:t?"2000-01-02":"2000-01-01"}Fl.dfltRange=function(e){return Vg(e)?Ug.getComponentMethod("calendars","DFLTRANGE")[e]:["2000-01-01","2001-01-01"]};Fl.isJSDate=function(e){return typeof e=="object"&&e!==null&&typeof e.getTime=="function"};var AD,MD;Fl.dateTime2ms=function(e,t){if(Fl.isJSDate(e)){var r=e.getTimezoneOffset()*Sy,i=(e.getUTCMinutes()-e.getMinutes())*Sy+(e.getUTCSeconds()-e.getSeconds())*gw+(e.getUTCMilliseconds()-e.getMilliseconds());if(i){var n=3*Sy;r=r-n/2+Ey(i-r+n/2,n)}return e=Number(e)-r,e>=AD&&e<=MD?e:pd}if(typeof e!="string"&&typeof e!="number")return pd;e=String(e);var a=Vg(t),o=e.charAt(0);a&&(o==="G"||o==="g")&&(e=e.slice(1),t="");var s=a&&t.slice(0,7)==="chinese",l=e.match(s?Rwt:Iwt);if(!l)return pd;var u=l[1],c=l[3]||"1",f=Number(l[5]||1),h=Number(l[7]||0),p=Number(l[9]||0),d=Number(l[11]||0);if(a){if(u.length===2)return pd;u=Number(u);var v;try{var m=Ug.getComponentMethod("calendars","getCal")(t);if(s){var g=c.charAt(c.length-1)==="i";c=parseInt(c,10),v=m.newDate(u,m.toMonthIndex(u,c,g),f)}else v=m.newDate(u,Number(c),f)}catch(_){return pd}return v?(v.toJD()-vA)*Uh+h*pA+p*Sy+d*gw:pd}u.length===2?u=(Number(u)+2e3-q0e)%100+q0e:u=Number(u),c-=1;var w=new Date(Date.UTC(2e3,c,f,h,p));return w.setUTCFullYear(u),w.getUTCMonth()!==c||w.getUTCDate()!==f?pd:w.getTime()+d*gw};AD=Fl.MIN_MS=Fl.dateTime2ms("-9999");MD=Fl.MAX_MS=Fl.dateTime2ms("9999-12-31 23:59:59.9999");Fl.isDateTime=function(e,t){return Fl.dateTime2ms(e,t)!==pd};function vw(e,t){return String(e+Math.pow(10,t)).slice(1)}var TD=90*Uh,O0e=3*pA,N0e=5*Sy;Fl.ms2DateTime=function(e,t,r){if(typeof e!="number"||!(e>=AD&&e<=MD))return pd;t||(t=0);var i=Math.floor(Ey(e+.05,1)*10),n=Math.round(e-i/10),a,o,s,l,u,c;if(Vg(r)){var f=Math.floor(n/Uh)+vA,h=Math.floor(Ey(e,Uh));try{a=Ug.getComponentMethod("calendars","getCal")(r).fromJD(f).formatDate("yyyy-mm-dd")}catch(p){a=B0e("G%Y-%m-%d")(new Date(n))}if(a.charAt(0)==="-")for(;a.length<11;)a="-0"+a.slice(1);else for(;a.length<10;)a="0"+a;o=t=AD+Uh&&e<=MD-Uh))return pd;var t=Math.floor(Ey(e+.05,1)*10),r=new Date(Math.round(e-t/10)),i=Pwt("%Y-%m-%d")(r),n=r.getHours(),a=r.getMinutes(),o=r.getSeconds(),s=r.getUTCMilliseconds()*10+t;return H0e(i,n,a,o,s)};function H0e(e,t,r,i,n){if((t||r||i||n)&&(e+=" "+vw(t,2)+":"+vw(r,2),(i||n)&&(e+=":"+vw(i,2),n))){for(var a=4;n%10===0;)a-=1,n/=10;e+="."+vw(n,a)}return e}Fl.cleanDate=function(e,t,r){if(e===pd)return t;if(Fl.isJSDate(e)||typeof e=="number"&&isFinite(e)){if(Vg(r))return ZV.error("JS Dates and milliseconds are incompatible with world calendars",e),t;if(e=Fl.ms2DateTimeLocal(+e),!e&&t!==void 0)return t}else if(!Fl.isDateTime(e,r))return ZV.error("unrecognized date",e),t;return e};var Bwt=/%\d?f/g,qwt=/%h/g,Owt={1:"1",2:"1",3:"2",4:"2"};function U0e(e,t,r,i){e=e.replace(Bwt,function(a){var o=Math.min(+a.charAt(1)||6,6),s=(t/1e3%1+2).toFixed(o).slice(2).replace(/0+$/,"")||"0";return s});var n=new Date(Math.floor(t+.05));if(e=e.replace(qwt,function(){return Owt[r("%q")(n)]}),Vg(i))try{e=Ug.getComponentMethod("calendars","worldCalFmt")(e,t,i)}catch(a){return"Invalid"}return r(e)(n)}var Nwt=[59,59.9,59.99,59.999,59.9999];function Uwt(e,t){var r=Ey(e+.05,Uh),i=vw(Math.floor(r/pA),2)+":"+vw(Ey(Math.floor(r/Sy),60),2);if(t!=="M"){G0e(t)||(t=0);var n=Math.min(Ey(e/gw,60),Nwt[t]),a=(100+n).toFixed(t).slice(1);t>0&&(a=a.replace(/0+$/,"").replace(/[\.]$/,"")),i+=":"+a}return i}Fl.formatDate=function(e,t,r,i,n,a){if(n=Vg(n)&&n,!t)if(r==="y")t=a.year;else if(r==="m")t=a.month;else if(r==="d")t=a.dayMonth+` +`+a.year;else return Uwt(e,r)+` +`+U0e(a.dayMonthYear,e,i,n);return U0e(t,e,i,n)};var V0e=3*Uh;Fl.incrementMonth=function(e,t,r){r=Vg(r)&&r;var i=Ey(e,Uh);if(e=Math.round(e-i),r)try{var n=Math.round(e/Uh)+vA,a=Ug.getComponentMethod("calendars","getCal")(r),o=a.fromJD(n);return t%12?a.add(o,t,"m"):a.add(o,t/12,"y"),(o.toJD()-vA)*Uh+i}catch(l){ZV.error("invalid ms "+e+" in calendar "+r)}var s=new Date(e+V0e);return s.setUTCMonth(s.getUTCMonth()+t)+i-V0e};Fl.findExactDates=function(e,t){for(var r=0,i=0,n=0,a=0,o,s,l=Vg(t)&&Ug.getComponentMethod("calendars","getCal")(t),u=0;u{"use strict";$0e.exports=function(t){return t}});var SD=W(Gg=>{"use strict";var Vwt=hn(),Gwt=qg(),Hwt=gA(),jwt=(ra(),Pt(ia)).BADNUM,KV=1e-9;Gg.findBin=function(e,t,r){if(Vwt(t.start))return r?Math.ceil((e-t.start)/t.size-KV)-1:Math.floor((e-t.start)/t.size+KV);var i=0,n=t.length,a=0,o=n>1?(t[n-1]-t[0])/(n-1):1,s,l;for(o>=0?l=r?$wt:Wwt:l=r?Xwt:Ywt,e+=o*KV*(r?-1:1)*(o>=0?1:-1);i90&&Gwt.log("Long binary search..."),i-1};function $wt(e,t){return et}function Xwt(e,t){return e>=t}Gg.sorterAsc=function(e,t){return e-t};Gg.sorterDes=function(e,t){return t-e};Gg.distinctVals=function(e){var t=e.slice();t.sort(Gg.sorterAsc);var r;for(r=t.length-1;r>-1&&t[r]===jwt;r--);for(var i=t[r]-t[0]||1,n=i/(r||1)/1e4,a=[],o,s=0;s<=r;s++){var l=t[s],u=l-o;o===void 0?(a.push(l),o=l):u>n&&(i=Math.min(i,u),a.push(l),o=l)}return{vals:a,minDiff:i}};Gg.roundUp=function(e,t,r){for(var i=0,n=t.length-1,a,o=0,s=r?0:1,l=r?1:0,u=r?Math.ceil:Math.floor;i0&&(i=1),r&&i)return e.sort(t)}return i?e:e.reverse()};Gg.findIndexOfMin=function(e,t){t=t||Hwt;for(var r=1/0,i,n=0;nKwt});function Zwt(e){return Object.keys(e).sort()}var Kwt,Qx=Ci(()=>{"use strict";Kwt=Zwt});var W0e=W(Ll=>{"use strict";var mA=hn(),Jwt=Tc().isArrayOrTypedArray;Ll.aggNums=function(e,t,r,i){var n,a;if((!i||i>r.length)&&(i=r.length),mA(t)||(t=!1),Jwt(r[0])){for(a=new Array(i),n=0;ne.length-1)return e[e.length-1];var r=t%1;return r*e[Math.ceil(t)]+(1-r)*e[Math.floor(t)]}});var J0e=W((iqr,K0e)=>{"use strict";var Y0e=(ew(),Pt(Q3)),JV=Y0e.mod,Qwt=Y0e.modHalf,yA=Math.PI,ky=2*yA;function e5t(e){return e/180*yA}function t5t(e){return e/yA*180}function QV(e){return Math.abs(e[1]-e[0])>ky-1e-14}function X0e(e,t){return Qwt(t-e,ky)}function r5t(e,t){return Math.abs(X0e(e,t))}function Z0e(e,t){if(QV(t))return!0;var r,i;t[0]i&&(i+=ky);var n=JV(e,ky),a=n+ky;return n>=r&&n<=i||a>=r&&a<=i}function i5t(e,t,r,i){if(!Z0e(t,i))return!1;var n,a;return r[0]=n&&e<=a}function eG(e,t,r,i,n,a,o){n=n||0,a=a||0;var s=QV([r,i]),l,u,c,f,h;s?(l=0,u=yA,c=ky):r{"use strict";eb.isLeftAnchor=function(t){return t.xanchor==="left"||t.xanchor==="auto"&&t.x<=1/3};eb.isCenterAnchor=function(t){return t.xanchor==="center"||t.xanchor==="auto"&&t.x>1/3&&t.x<2/3};eb.isRightAnchor=function(t){return t.xanchor==="right"||t.xanchor==="auto"&&t.x>=2/3};eb.isTopAnchor=function(t){return t.yanchor==="top"||t.yanchor==="auto"&&t.y>=2/3};eb.isMiddleAnchor=function(t){return t.yanchor==="middle"||t.yanchor==="auto"&&t.y>1/3&&t.y<2/3};eb.isBottomAnchor=function(t){return t.yanchor==="bottom"||t.yanchor==="auto"&&t.y<=1/3}});var rde=W(tb=>{"use strict";var tG=(ew(),Pt(Q3)).mod;tb.segmentsIntersect=tde;function tde(e,t,r,i,n,a,o,s){var l=r-e,u=n-e,c=o-n,f=i-t,h=a-t,p=s-a,d=l*p-c*f;if(d===0)return null;var v=(u*p-c*h)/d,m=(u*f-l*h)/d;return m<0||m>1||v<0||v>1?null:{x:e+l*v,y:t+f*v}}tb.segmentDistance=function(t,r,i,n,a,o,s,l){if(tde(t,r,i,n,a,o,s,l))return 0;var u=i-t,c=n-r,f=s-a,h=l-o,p=u*u+c*c,d=f*f+h*h,v=Math.min(ED(u,c,p,a-t,o-r),ED(u,c,p,s-t,l-r),ED(f,h,d,t-a,r-o),ED(f,h,d,i-a,n-o));return Math.sqrt(v)};function ED(e,t,r,i,n){var a=i*e+n*t;if(a<0)return i*i+n*n;if(a>r){var o=i-e,s=n-t;return o*o+s*s}else{var l=i*t-n*e;return l*l/r}}var kD,rG,ede;tb.getTextLocation=function(t,r,i,n){if((t!==rG||n!==ede)&&(kD={},rG=t,ede=n),kD[i])return kD[i];var a=t.getPointAtLength(tG(i-n/2,r)),o=t.getPointAtLength(tG(i+n/2,r)),s=Math.atan((o.y-a.y)/(o.x-a.x)),l=t.getPointAtLength(tG(i,r)),u=(l.x*4+a.x+o.x)/6,c=(l.y*4+a.y+o.y)/6,f={x:u,y:c,theta:s};return kD[i]=f,f};tb.clearLocationCache=function(){rG=null};tb.getVisibleSegment=function(t,r,i){var n=r.left,a=r.right,o=r.top,s=r.bottom,l=0,u=t.getTotalLength(),c=u,f,h;function p(v){var m=t.getPointAtLength(v);v===0?f=m:v===u&&(h=m);var g=m.xa?m.x-a:0,w=m.ys?m.y-s:0;return Math.sqrt(g*g+w*w)}for(var d=p(l);d;){if(l+=d+i,l>c)return;d=p(l)}for(d=p(c);d;){if(c-=d+i,l>c)return;d=p(c)}return{min:l,max:c,len:c-l,total:u,isClosed:l===0&&c===u&&Math.abs(f.x-h.x)<.1&&Math.abs(f.y-h.y)<.1}};tb.findPointOnPath=function(t,r,i,n){n=n||{};for(var a=n.pathLength||t.getTotalLength(),o=n.tolerance||.001,s=n.iterationLimit||30,l=t.getPointAtLength(0)[i]>t.getPointAtLength(a)[i]?-1:1,u=0,c=0,f=a,h,p,d;u0?f=h:c=h,u++}return p}});var CD=W(xA=>{"use strict";var Hg={};xA.throttle=function(t,r,i){var n=Hg[t],a=Date.now();if(!n){for(var o in Hg)Hg[o].tsn.ts+r){s();return}n.timer=setTimeout(function(){s(),n.timer=null},r)};xA.done=function(e){var t=Hg[e];return!t||!t.timer?Promise.resolve():new Promise(function(r){var i=t.onDone;t.onDone=function(){i&&i(),r(),t.onDone=null}})};xA.clear=function(e){if(e)ide(Hg[e]),delete Hg[e];else for(var t in Hg)xA.clear(t)};function ide(e){e&&e.timer!==null&&(clearTimeout(e.timer),e.timer=null)}});var ade=W((sqr,nde)=>{"use strict";nde.exports=function(t){t._clearResponsive&&(t._clearResponsive(),delete t._clearResponsive)}});var ode=W((lqr,DD)=>{"use strict";DD.exports=iG;DD.exports.isMobile=iG;DD.exports.default=iG;var s5t=/(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|redmi|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,l5t=/CrOS/,u5t=/android|ipad|playbook|silk/i;function iG(e){e||(e={});let t=e.ua;if(!t&&typeof navigator!="undefined"&&(t=navigator.userAgent),t&&t.headers&&typeof t.headers["user-agent"]=="string"&&(t=t.headers["user-agent"]),typeof t!="string")return!1;let r=s5t.test(t)&&!l5t.test(t)||!!e.tablet&&u5t.test(t);return!r&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&t.indexOf("Macintosh")!==-1&&t.indexOf("Safari")!==-1&&(r=!0),r}});var lde=W((uqr,sde)=>{"use strict";var c5t=hn(),f5t=ode();sde.exports=function(t){var r;if(t&&t.hasOwnProperty("userAgent")?r=t.userAgent:r=h5t(),typeof r!="string")return!0;var i=f5t({ua:{headers:{"user-agent":r}},tablet:!0,featureDetect:!1});if(!i)for(var n=r.split(" "),a=1;a-1;s--){var l=n[s];if(l.slice(0,8)==="Version/"){var u=l.slice(8).split(".")[0];if(c5t(u)&&(u=+u),u>=13)return!0}}}return i};function h5t(){var e;return typeof navigator!="undefined"&&(e=navigator.userAgent),e&&e.headers&&typeof e.headers["user-agent"]=="string"&&(e=e.headers["user-agent"]),e}});var cde=W((cqr,ude)=>{"use strict";var d5t=gi();ude.exports=function(t,r,i){var n=t.selectAll("g."+i.replace(/\s/g,".")).data(r,function(o){return o[0].trace.uid});n.exit().remove(),n.enter().append("g").attr("class",i),n.order();var a=t.classed("rangeplot")?"nodeRangePlot3":"node3";return n.each(function(o){o[0][a]=d5t.select(this)}),n}});var hde=W((fqr,fde)=>{"use strict";var p5t=xi();fde.exports=function(t,r){for(var i=t._context.locale,n=0;n<2;n++){for(var a=t._context.locales,o=0;o<2;o++){var s=(a[i]||{}).dictionary;if(s){var l=s[r];if(l)return l}a=p5t.localeRegistry}var u=i.split("-")[0];if(u===i)break;i=u}return r}});var nG=W((hqr,dde)=>{"use strict";dde.exports=function(t){for(var r={},i=[],n=0,a=0;a{"use strict";pde.exports=function(t){for(var r=m5t(t)?g5t:v5t,i=[],n=0;n{"use strict";gde.exports=function(t,r){if(!r)return t;var i=1/Math.abs(r),n=i>1?(i*t+i*r)/i:t+r,a=String(n).length;if(a>16){var o=String(r).length,s=String(t).length;if(a>=s+o){var l=parseFloat(n).toPrecision(12);l.indexOf("e+")===-1&&(n=+l)}}return n}});var xde={};Jn(xde,{default:()=>b5t});function x5t(e){return typeof e=="string"&&(e=e.replace(y5t,"")),(0,yde.default)(e)?Number(e):void 0}var yde,y5t,b5t,bde=Ci(()=>{"use strict";yde=s1(hn());ra();y5t=/^['"%,$#\s']+|[, ]|['"%,$#\s']+$/g;b5t=x5t});var Tde=W((gqr,wde)=>{"use strict";var _5t=/<[^>]*>/g,w5t=/[\p{S}\p{P}]/gu,T5t=/[\p{Cc}\p{Cf}\uFE00-\uFE0F\u20E3]/gu,A5t=/�/g,M5t=/\s+/g,FD="-",_de=FD.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),S5t=new RegExp(_de+"{3,}","g"),E5t=new RegExp(_de+"$","g"),k5t=60;function C5t(e){return typeof e.toWellFormed=="function"?e.toWellFormed():new TextDecoder().decode(new TextEncoder().encode(e))}wde.exports=function(t,r=k5t){var i=C5t(t!=null?t:"").replace(A5t,"").replace(_5t," ").replace(w5t,n=>n===FD?n:"").toLowerCase().trim().replace(M5t,FD).replace(T5t,"").replace(S5t,FD);return i.length<=r?i:Array.from(i).slice(0,r).join("").replace(E5t,"")}});var tt=W((mqr,Rde)=>{"use strict";var bA=gi(),D5t=K3().utcFormat,F5t=QN().format,Cde=hn(),Dde=(ra(),Pt(ia)),Fde=Dde.FP_SAFE,L5t=-Fde,Ade=Dde.BADNUM,qt={};Rde.exports=qt;qt.adjustFormat=function(t){if(!t||/^\d[.]\df/.test(t)||/[.]\d%/.test(t))return t;if(t==="0.f")return"~f";if(/^\d%/.test(t))return"~%";if(/^\ds/.test(t))return"~s";var r=(t.match(/^[+\-( ]?/)||[""])[0],i=t.slice(r.length);return!/^[~,.0$#]/.test(i)&&/[&fps]/.test(i)?r+"~"+i:t};var Mde={};qt.warnBadFormat=function(e){var t=String(e);Mde[t]||(Mde[t]=1,qt.warn('encountered bad format: "'+t+'"'))};qt.noFormat=function(e){return String(e)};qt.numberFormat=function(e){var t;try{t=F5t(qt.adjustFormat(e))}catch(r){return qt.warnBadFormat(e),qt.noFormat}return t};qt.nestedProperty=U6();qt.keyedContainer=xue();qt.relativeAttr=_ue();qt.isPlainObject=my();qt.toLogRange=N8();qt.relinkPrivateKeys=Mue();var Cy=Tc();qt.isArrayBuffer=Cy.isArrayBuffer;qt.isTypedArray=Cy.isTypedArray;qt.isArrayOrTypedArray=Cy.isArrayOrTypedArray;qt.isArray1D=Cy.isArray1D;qt.ensureArray=Cy.ensureArray;qt.concat=Cy.concat;qt.maxRowLength=Cy.maxRowLength;qt.minRowLength=Cy.minRowLength;var Lde=(ew(),Pt(Q3));qt.mod=Lde.mod;qt.modHalf=Lde.modHalf;var Dy=$fe();qt.valObjectMeta=Dy.valObjectMeta;qt.coerce=Dy.coerce;qt.coerce2=Dy.coerce2;qt.coerceFont=Dy.coerceFont;qt.coercePattern=Dy.coercePattern;qt.coerceHoverinfo=Dy.coerceHoverinfo;qt.coerceSelectionMarkerOpacity=Dy.coerceSelectionMarkerOpacity;qt.validate=Dy.validate;var _0=j0e();qt.dateTime2ms=_0.dateTime2ms;qt.isDateTime=_0.isDateTime;qt.ms2DateTime=_0.ms2DateTime;qt.ms2DateTimeLocal=_0.ms2DateTimeLocal;qt.cleanDate=_0.cleanDate;qt.isJSDate=_0.isJSDate;qt.formatDate=_0.formatDate;qt.incrementMonth=_0.incrementMonth;qt.dateTick0=_0.dateTick0;qt.dfltRange=_0.dfltRange;qt.findExactDates=_0.findExactDates;qt.MIN_MS=_0.MIN_MS;qt.MAX_MS=_0.MAX_MS;var rb=SD();qt.findBin=rb.findBin;qt.sorterAsc=rb.sorterAsc;qt.sorterDes=rb.sorterDes;qt.distinctVals=rb.distinctVals;qt.roundUp=rb.roundUp;qt.sort=rb.sort;qt.findIndexOfMin=rb.findIndexOfMin;qt.sortObjectKeys=(Qx(),Pt(Jx)).default;var jg=W0e();qt.aggNums=jg.aggNums;qt.len=jg.len;qt.mean=jg.mean;qt.geometricMean=jg.geometricMean;qt.median=jg.median;qt.midRange=jg.midRange;qt.variance=jg.variance;qt.stdev=jg.stdev;qt.interp=jg.interp;var Hp=gD();qt.init2dArray=Hp.init2dArray;qt.transposeRagged=Hp.transposeRagged;qt.dot=Hp.dot;qt.translationMatrix=Hp.translationMatrix;qt.rotationMatrix=Hp.rotationMatrix;qt.rotationXYMatrix=Hp.rotationXYMatrix;qt.apply3DTransform=Hp.apply3DTransform;qt.apply2DTransform=Hp.apply2DTransform;qt.apply2DTransform2=Hp.apply2DTransform2;qt.convertCssMatrix=Hp.convertCssMatrix;qt.inverseTransformMatrix=Hp.inverseTransformMatrix;var f1=J0e();qt.deg2rad=f1.deg2rad;qt.rad2deg=f1.rad2deg;qt.angleDelta=f1.angleDelta;qt.angleDist=f1.angleDist;qt.isFullCircle=f1.isFullCircle;qt.isAngleInsideSector=f1.isAngleInsideSector;qt.isPtInsideSector=f1.isPtInsideSector;qt.pathArc=f1.pathArc;qt.pathSector=f1.pathSector;qt.pathAnnulus=f1.pathAnnulus;var xw=Q0e();qt.isLeftAnchor=xw.isLeftAnchor;qt.isCenterAnchor=xw.isCenterAnchor;qt.isRightAnchor=xw.isRightAnchor;qt.isTopAnchor=xw.isTopAnchor;qt.isMiddleAnchor=xw.isMiddleAnchor;qt.isBottomAnchor=xw.isBottomAnchor;var bw=rde();qt.segmentsIntersect=bw.segmentsIntersect;qt.segmentDistance=bw.segmentDistance;qt.getTextLocation=bw.getTextLocation;qt.clearLocationCache=bw.clearLocationCache;qt.getVisibleSegment=bw.getVisibleSegment;qt.findPointOnPath=bw.findPointOnPath;var ID=an();qt.extendFlat=ID.extendFlat;qt.extendDeep=ID.extendDeep;qt.extendDeepAll=ID.extendDeepAll;qt.extendDeepNoArrays=ID.extendDeepNoArrays;var aG=qg();qt.log=aG.log;qt.warn=aG.warn;qt.error=aG.error;var P5t=(fw(),Pt(fA));qt.counterRegex=P5t.counter;var oG=CD();qt.throttle=oG.throttle;qt.throttleDone=oG.done;qt.clearThrottle=oG.clear;var jp=hA();qt.getGraphDiv=jp.getGraphDiv;qt.isPlotDiv=jp.isPlotDiv;qt.removeElement=jp.removeElement;qt.addStyleRule=jp.addStyleRule;qt.addRelatedStyleRule=jp.addRelatedStyleRule;qt.deleteRelatedStyleRule=jp.deleteRelatedStyleRule;qt.setStyleOnHover=jp.setStyleOnHover;qt.getFullTransformMatrix=jp.getFullTransformMatrix;qt.getElementTransformMatrix=jp.getElementTransformMatrix;qt.getElementAndAncestors=jp.getElementAndAncestors;qt.equalDomRects=jp.equalDomRects;qt.clearResponsive=ade();qt.preserveDrawingBuffer=lde();qt.makeTraceGroups=cde();qt._=hde();qt.notifier=LV();qt.filterUnique=nG();qt.filterVisible=vde();qt.pushUnique=UV();qt.increment=mde();qt.cleanNumber=(bde(),Pt(xde)).default;qt.slugify=Tde();qt.ensureNumber=function(t){return Cde(t)?(t=Number(t),t>Fde||t=t?!1:Cde(e)&&e>=0&&e%1===0};qt.noop=vD();qt.identity=gA();qt.repeat=function(e,t){for(var r=new Array(t),i=0;ir?Math.max(r,Math.min(t,e)):Math.max(t,Math.min(r,e))};qt.bBoxIntersect=function(e,t,r){return r=r||0,e.left<=t.right+r&&t.left<=e.right+r&&e.top<=t.bottom+r&&t.top<=e.bottom+r};qt.simpleMap=function(e,t,r,i,n){for(var a=e.length,o=new Array(a),s=0;s=Math.pow(2,r)?n>10?(qt.warn("randstr failed uniqueness"),o):e(t,r,i,(n||0)+1):o};qt.OptionControl=function(e,t){e||(e={}),t||(t="opt");var r={};return r.optionList=[],r._newoption=function(i){i[t]=e,r[i.name]=i,r.optionList.push(i)},r["_"+t]=e,r};qt.smooth=function(e,t){if(t=Math.round(t)||0,t<2)return e;var r=e.length,i=2*r,n=2*t-1,a=new Array(n),o=new Array(r),s,l,u,c;for(s=0;s=i&&(u-=i*Math.floor(u/i)),u<0?u=-1-u:u>=r&&(u=i-1-u),c+=e[u]*a[l];o[s]=c}return o};qt.syncOrAsync=function(e,t,r){var i,n;function a(){return qt.syncOrAsync(e,t,r)}for(;e.length;)if(n=e.splice(0,1)[0],i=n(t),i&&i.then)return i.then(a);return r&&r(t)};qt.stripTrailingSlash=function(e){return e.slice(-1)==="/"?e.slice(0,-1):e};qt.noneOrAll=function(e,t,r){if(e){var i=!1,n=!0,a,o;for(a=0;a0?n:0})};qt.fillArray=function(e,t,r,i){if(i=i||qt.identity,qt.isArrayOrTypedArray(e))for(var n=0;nz5t.test(window.navigator.userAgent);var B5t=/Firefox\/(\d+)\.\d+/;qt.getFirefoxVersion=function(){var e=B5t.exec(window.navigator.userAgent);if(e&&e.length===2){var t=parseInt(e[1]);if(!isNaN(t))return t}return null};qt.isD3Selection=function(e){return e instanceof bA.selection};qt.ensureSingle=function(e,t,r,i){var n=e.select(t+(r?"."+r:""));if(n.size())return n;var a=e.append(t);return r&&a.classed(r,!0),i&&a.call(i),a};qt.ensureSingleById=function(e,t,r,i){var n=e.select(t+"#"+r);if(n.size())return n;var a=e.append(t).attr("id",r);return i&&a.call(i),a};qt.objectFromPath=function(e,t){for(var r=e.split("."),i,n=i={},a=0;a1?n+o[1]:"";if(a&&(o.length>1||s.length>4||r))for(;i.test(s);)s=s.replace(i,"$1"+a+"$2");return s+l};qt.TEMPLATE_STRING_REGEX=/%{([^\s%{}:]*)([:|\|][^}]*)?}/g;var Ide=/^\w*$/;qt.templateString=function(e,t){var r={};return e.replace(qt.TEMPLATE_STRING_REGEX,function(i,n){var a;return Ide.test(n)?a=t[n]:(r[n]=r[n]||qt.nestedProperty(t,n).get,a=r[n](!0)),a!==void 0?a:""})};var N5t={max:10,count:0,name:"hovertemplate"};qt.hovertemplateString=e=>sG(da(fn({},e),{opts:N5t}));var U5t={max:10,count:0,name:"texttemplate"};qt.texttemplateString=e=>sG(da(fn({},e),{opts:U5t}));var V5t=/^(\S+)([\*\/])(-?\d+(\.\d+)?)$/;function G5t(e){var t=e.match(V5t);return t?{key:t[1],op:t[2],number:Number(t[3])}:{key:e,op:null,number:null}}var H5t={max:10,count:0,name:"texttemplate",parseMultDiv:!0};qt.texttemplateStringForShapes=e=>sG(da(fn({},e),{opts:H5t}));var Sde=/^[:|\|]/;function sG({data:e=[],locale:t,fallback:r,labels:i={},opts:n,template:a}){return a.replace(qt.TEMPLATE_STRING_REGEX,(o,s,l)=>{let u=["xother","yother"].includes(s),c=["_xother","_yother"].includes(s),f=["_xother_","_yother_"].includes(s),h=["xother_","yother_"].includes(s),p=u||c||h||f;(c||f)&&(s=s.substring(1)),(h||f)&&(s=s.substring(0,s.length-1));let d=null,v=null;if(n.parseMultDiv){var m=G5t(s);s=m.key,d=m.op,v=m.number}let g;if(p){if(i[s]===void 0)return"";g=i[s]}else for(let S of e)if(S){if(S.hasOwnProperty(s)){g=S[s];break}if(Ide.test(s)||(g=qt.nestedProperty(S,s).get(!0)),g!==void 0)break}if(g===void 0){let{count:S,max:x,name:A}=n,T=r===!1?o:r;return S=PD&&o<=Ede,u=s>=PD&&s<=Ede;if(l&&(i=10*i+o-PD),u&&(n=10*n+s-PD),!l||!u){if(i!==n)return i-n;if(o!==s)return o-s}}return n-i};var yw=2e9;qt.seedPseudoRandom=function(){yw=2e9};qt.pseudoRandom=function(){var e=yw;return yw=(69069*yw+1)%4294967296,Math.abs(yw-e)<429496729?qt.pseudoRandom():yw/4294967296};qt.fillText=function(e,t,r){var i=Array.isArray(r)?function(o){r.push(o)}:function(o){r.text=o},n=qt.extractOption(e,t,"htx","hovertext");if(qt.isValidTextValue(n))return i(n);var a=qt.extractOption(e,t,"tx","text");if(qt.isValidTextValue(a))return i(a)};qt.isValidTextValue=function(e){return e||e===0};qt.formatPercent=function(e,t){t=t||0;for(var r=(Math.round(100*e*Math.pow(10,t))*Math.pow(.1,t)).toFixed(t)+"%",i=0;i1&&(u=1):u=0,qt.strTranslate(n-u*(r+o),a-u*(i+s))+qt.strScale(u)+(l?"rotate("+l+(t?"":" "+r+" "+i)+")":"")};qt.setTransormAndDisplay=function(e,t){e.attr("transform",qt.getTextTransform(t)),e.style("display",t.scale?null:"none")};qt.ensureUniformFontSize=function(e,t){var r=qt.extendFlat({},t);return r.size=Math.max(t.size,e._fullLayout.uniformtext.minsize||0),r};qt.join2=function(e,t,r){var i=e.length;return i>1?e.slice(0,-1).join(t)+r+e[i-1]:e.join(t)};qt.bigFont=function(e){return Math.round(1.2*e)};var kde=qt.getFirefoxVersion(),j5t=kde!==null&&kde<86;qt.getPositionFromD3Event=function(){return j5t?[bA.event.layerX,bA.event.layerY]:[bA.event.offsetX,bA.event.offsetY]}});var qde=W(()=>{"use strict";var $5t=tt(),zde={"X,X div":'direction:ltr;font-family:"Open Sans",verdana,arial,sans-serif;margin:0;padding:0;border: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 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:focus-within .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-group a":"display:grid;place-content:center;","X .modebar-btn":"position:relative;font-size:16px;padding:3px 4px;height:22px;cursor:pointer;line-height:normal;box-sizing:border-box;border:none;background:rgba(0,0,0,0);","X .modebar-btn svg":"position:relative;","X .modebar-btn:focus-visible":"outline:1px solid #000;outline-offset:1px;border-radius:3px;","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;","X .plotly-cloud-dialog":'font-family:"Open Sans",verdana,arial,sans-serif;position:absolute;top:0;left:0;width:100%;height:100%;z-index:1001;display:flex;align-items:center;justify-content:center;background-color:rgba(0,0,0,.4);',"X .plotly-cloud-dialog .plotly-cloud-dialog-box":"box-sizing:border-box;min-width:300px;max-width:420px;padding:20px 24px;background-color:#fff;border:1px solid #e0e2e5;border-radius:4px;box-shadow:0 4px 16px rgba(0,0,0,.25);font-size:13px;color:#2a3f5f;","X .plotly-cloud-dialog .plotly-cloud-dialog-title":"font-size:16px;font-weight:bold;margin-bottom:12px;","X .plotly-cloud-dialog .plotly-cloud-dialog-message":"line-height:1.5;overflow-wrap:break-word;word-wrap:break-word;","X .plotly-cloud-dialog .plotly-cloud-dialog-message--hostname":"font-weight:bold;text-decoration:underline;","X .plotly-cloud-dialog .plotly-cloud-dialog-message--account":"margin-top:16px;padding:8px;border-radius:3px;font-size:.9em;background-color:#edf1f8;","X .plotly-cloud-dialog .plotly-cloud-dialog-buttons":"display:flex;justify-content:flex-end;margin-top:20px;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn":"font-family:inherit;font-size:13px;padding:7px 16px;margin-left:8px;border-radius:3px;border:1px solid rgba(0,0,0,0);cursor:pointer;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn:focus-visible":"outline:2px solid #447adb;outline-offset:1px;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn--cancel":"background-color:#f3f3f3;margin-left:auto;color:#777;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn--cancel:hover":"background-color:#e0e2e5;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn--confirm":"background-color:#447adb;color:#fff;","X .plotly-cloud-dialog .plotly-cloud-dialog-btn--confirm:hover":"background-color:#1d3b84;",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(lG in zde)Bde=lG.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier"),$5t.addStyleRule(Bde,zde[lG]);var Bde,lG});var uG=W((_qr,Ode)=>{Ode.exports=!0});var fG=W((wqr,Nde)=>{"use strict";var W5t=uG(),cG;typeof window.matchMedia=="function"?cG=!window.matchMedia("(hover: none)").matches:cG=W5t;Nde.exports=cG});var ib=W((Tqr,hG)=>{"use strict";var _w=typeof Reflect=="object"?Reflect:null,Ude=_w&&typeof _w.apply=="function"?_w.apply:function(t,r,i){return Function.prototype.apply.call(t,r,i)},RD;_w&&typeof _w.ownKeys=="function"?RD=_w.ownKeys:Object.getOwnPropertySymbols?RD=function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:RD=function(t){return Object.getOwnPropertyNames(t)};function Y5t(e){console&&console.warn&&console.warn(e)}var Gde=Number.isNaN||function(t){return t!==t};function ws(){ws.init.call(this)}hG.exports=ws;hG.exports.once=J5t;ws.EventEmitter=ws;ws.prototype._events=void 0;ws.prototype._eventsCount=0;ws.prototype._maxListeners=void 0;var Vde=10;function zD(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(ws,"defaultMaxListeners",{enumerable:!0,get:function(){return Vde},set:function(e){if(typeof e!="number"||e<0||Gde(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");Vde=e}});ws.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};ws.prototype.setMaxListeners=function(t){if(typeof t!="number"||t<0||Gde(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this};function Hde(e){return e._maxListeners===void 0?ws.defaultMaxListeners:e._maxListeners}ws.prototype.getMaxListeners=function(){return Hde(this)};ws.prototype.emit=function(t){for(var r=[],i=1;i0&&(o=r[0]),o instanceof Error)throw o;var s=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw s.context=o,s}var l=a[t];if(l===void 0)return!1;if(typeof l=="function")Ude(l,this,r);else for(var u=l.length,c=Xde(l,u),i=0;i0&&o.length>n&&!o.warned){o.warned=!0;var s=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");s.name="MaxListenersExceededWarning",s.emitter=e,s.type=t,s.count=o.length,Y5t(s)}return e}ws.prototype.addListener=function(t,r){return jde(this,t,r,!1)};ws.prototype.on=ws.prototype.addListener;ws.prototype.prependListener=function(t,r){return jde(this,t,r,!0)};function X5t(){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 $de(e,t,r){var i={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},n=X5t.bind(i);return n.listener=r,i.wrapFn=n,n}ws.prototype.once=function(t,r){return zD(r),this.on(t,$de(this,t,r)),this};ws.prototype.prependOnceListener=function(t,r){return zD(r),this.prependListener(t,$de(this,t,r)),this};ws.prototype.removeListener=function(t,r){var i,n,a,o,s;if(zD(r),n=this._events,n===void 0)return this;if(i=n[t],i===void 0)return this;if(i===r||i.listener===r)--this._eventsCount===0?this._events=Object.create(null):(delete n[t],n.removeListener&&this.emit("removeListener",t,i.listener||r));else if(typeof i!="function"){for(a=-1,o=i.length-1;o>=0;o--)if(i[o]===r||i[o].listener===r){s=i[o].listener,a=o;break}if(a<0)return this;a===0?i.shift():Z5t(i,a),i.length===1&&(n[t]=i[0]),n.removeListener!==void 0&&this.emit("removeListener",t,s||r)}return this};ws.prototype.off=ws.prototype.removeListener;ws.prototype.removeAllListeners=function(t){var r,i,n;if(i=this._events,i===void 0)return this;if(i.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):i[t]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete i[t]),this;if(arguments.length===0){var a=Object.keys(i),o;for(n=0;n=0;n--)this.removeListener(t,r[n]);return this};function Wde(e,t,r){var i=e._events;if(i===void 0)return[];var n=i[t];return n===void 0?[]:typeof n=="function"?r?[n.listener||n]:[n]:r?K5t(n):Xde(n,n.length)}ws.prototype.listeners=function(t){return Wde(this,t,!0)};ws.prototype.rawListeners=function(t){return Wde(this,t,!1)};ws.listenerCount=function(e,t){return typeof e.listenerCount=="function"?e.listenerCount(t):Yde.call(e,t)};ws.prototype.listenerCount=Yde;function Yde(e){var t=this._events;if(t!==void 0){var r=t[e];if(typeof r=="function")return 1;if(r!==void 0)return r.length}return 0}ws.prototype.eventNames=function(){return this._eventsCount>0?RD(this._events):[]};function Xde(e,t){for(var r=new Array(t),i=0;i{"use strict";var dG=ib().EventEmitter,e4t={init:function(e){if(e._ev instanceof dG)return e;var t=new dG,r=new dG;return e._ev=t,e._internalEv=r,e.on=t.on.bind(t),e.once=t.once.bind(t),e.removeListener=t.removeListener.bind(t),e.removeAllListeners=t.removeAllListeners.bind(t),e._internalOn=r.on.bind(r),e._internalOnce=r.once.bind(r),e._removeInternalListener=r.removeListener.bind(r),e._removeAllInternalListeners=r.removeAllListeners.bind(r),e.emit=function(i,n){t.emit(i,n),r.emit(i,n)},typeof e.addEventListener=="function"&&e.addEventListener("wheel",()=>{},{passive:!0}),e},triggerHandler:function(e,t,r){var i,n=e._ev;if(!n)return;var a=n._events[t];if(!a)return;function o(l){if(l.listener){if(n.removeListener(t,l.listener),!l.fired)return l.fired=!0,l.listener.apply(n,[r])}else return l.apply(n,[r])}a=Array.isArray(a)?a:[a];var s;for(s=0;s{"use strict";var Jde=tt(),t4t=_y().dfltConfig;function r4t(e,t){for(var r=[],i,n=0;nt4t.queueLength&&(e.undoQueue.queue.shift(),e.undoQueue.index--)};$g.startSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!0,e.undoQueue.beginSequence=!0};$g.stopSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!1,e.undoQueue.beginSequence=!1};$g.undo=function(t){var r,i;if(!(t.undoQueue===void 0||isNaN(t.undoQueue.index)||t.undoQueue.index<=0)){for(t.undoQueue.index--,r=t.undoQueue.queue[t.undoQueue.index],t.undoQueue.inSequence=!0,i=0;i=t.undoQueue.queue.length)){for(r=t.undoQueue.queue[t.undoQueue.index],t.undoQueue.inSequence=!0,i=0;i{"use strict";tpe.exports={_isLinkedToArray:"frames_entry",group:{valType:"string"},name:{valType:"string"},traces:{valType:"any"},baseframe:{valType:"string"},data:{valType:"any"},layout:{valType:"any"}}});var Mw=W(mu=>{"use strict";var vd=xi(),_A=tt(),qD=Ja(),vG=pw(),i4t=pG(),n4t=dA(),a4t=_y().configAttributes,rpe=hs(),$p=_A.extendDeepAll,Tw=_A.isPlainObject,o4t=_A.isArrayOrTypedArray,OD=_A.nestedProperty,s4t=_A.valObjectMeta,gG="_isSubplotObj",ND="_isLinkedToArray",l4t="_arrayAttrRegexps",npe="_deprecated",mG=[gG,ND,l4t,npe];mu.IS_SUBPLOT_OBJ=gG;mu.IS_LINKED_TO_ARRAY=ND;mu.DEPRECATED=npe;mu.UNDERSCORE_ATTRS=mG;mu.get=function(){var e={};return vd.allTypes.forEach(function(t){e[t]=c4t(t)}),{defs:{valObjects:s4t,metaKeys:mG.concat(["description","role","editType","impliedEdits"]),editType:{traces:rpe.traces,layout:rpe.layout},impliedEdits:{}},traces:e,layout:f4t(),frames:h4t(),animation:Aw(n4t),config:Aw(a4t)}};mu.crawl=function(e,t,r,i){var n=r||0;i=i||"",Object.keys(e).forEach(function(a){var o=e[a];if(mG.indexOf(a)===-1){var s=(i?i+".":"")+a;t(o,a,e,n,s),!mu.isValObject(o)&&Tw(o)&&a!=="impliedEdits"&&mu.crawl(o,t,n+1,s)}})};mu.isValObject=function(e){return e&&e.valType!==void 0};mu.findArrayAttributes=function(e){var t=[],r=[],i=[],n,a;function o(l,u,c,f){r=r.slice(0,f).concat([u]),i=i.slice(0,f).concat([l&&l._isLinkedToArray]);var h=l&&(l.valType==="data_array"||l.arrayOk===!0)&&!(r[f-1]==="colorbar"&&(u==="ticktext"||u==="tickvals"));h&&s(n,0,"")}function s(l,u,c){var f=l[r[u]],h=c+r[u];if(u===r.length-1)o4t(f)&&t.push(a+h);else if(i[u]){if(Array.isArray(f))for(var p=0;p=a.length)return!1;if(e.dimensions===2){if(r++,t.length===r)return e;var o=t[r];if(!BD(o))return!1;e=a[n][o]}else e=a[n]}else e=a}}return e}function BD(e){return e===Math.round(e)&&e>=0}function c4t(e){var t,r;t=vd.modules[e]._module,r=t.basePlotModule;var i={};i.type=null;var n=$p({},qD),a=$p({},t.attributes);mu.crawl(a,function(l,u,c,f,h){OD(n,h).set(void 0),l===void 0&&OD(a,h).set(void 0)}),$p(i,n),vd.traceIs(e,"noOpacity")&&delete i.opacity,vd.traceIs(e,"showLegend")||(delete i.showlegend,delete i.legendgroup),vd.traceIs(e,"noHover")&&(delete i.hoverinfo,delete i.hoverlabel),t.selectPoints||delete i.selectedpoints,$p(i,a),r.attributes&&$p(i,r.attributes),i.type=e;var o={meta:t.meta||{},categories:t.categories||{},animatable:!!t.animatable,type:e,attributes:Aw(i)};if(t.layoutAttributes){var s={};$p(s,t.layoutAttributes),o.layoutAttributes=Aw(s)}return t.animatable||mu.crawl(o,function(l){mu.isValObject(l)&&"anim"in l&&delete l.anim}),o}function f4t(){var e={},t,r;$p(e,vG);for(t in vd.subplotsRegistry)if(r=vd.subplotsRegistry[t],!!r.layoutAttributes)if(Array.isArray(r.attr))for(var i=0;i{"use strict";var Sw=tt(),m4t=Ja(),Fy="templateitemname",yG={name:{valType:"string",editType:"none"}};yG[Fy]={valType:"string",editType:"calc"};nb.templatedArray=function(e,t){return t._isLinkedToArray=e,t.name=yG.name,t[Fy]=yG[Fy],t};nb.traceTemplater=function(e){var t={},r,i;for(r in e)i=e[r],Array.isArray(i)&&i.length&&(t[r]=0);function n(a){r=Sw.coerce(a,{},m4t,"type");var o={type:r,_template:null};if(r in t){i=e[r];var s=t[r]%i.length;t[r]++,o._template=i[s]}return o}return{newTrace:n}};nb.newContainer=function(e,t,r){var i=e._template,n=i&&(i[t]||r&&i[r]);Sw.isPlainObject(n)||(n=null);var a=e[t]={_template:n};return a};nb.arrayTemplater=function(e,t,r){var i=e._template,n=i&&i[spe(t)],a=i&&i[t];(!Array.isArray(a)||!a.length)&&(a=[]);var o={};function s(u){var c={name:u.name,_input:u},f=c[Fy]=u[Fy];if(!ope(f))return c._template=n,c;for(var h=0;h=i&&(r._input||{})._templateitemname;a&&(n=i);var o=t+"["+n+"]",s;function l(){s={},a&&(s[o]={},s[o][Fy]=a)}l();function u(p,d){s[p]=d}function c(p,d){a?Sw.nestedProperty(s[o],p).set(d):s[o+"."+p]=d}function f(){var p=s;return l(),p}function h(p,d){p&&c(p,d);var v=f();for(var m in v)Sw.nestedProperty(e,m).set(v[m])}return{modifyBase:u,modifyItem:c,getUpdateObj:f,applyUpdate:h}}});var Xl={};Jn(Xl,{AX_ID_PATTERN:()=>w4t,AX_NAME_PATTERN:()=>T4t,DFLTRANGEX:()=>F4t,DFLTRANGEY:()=>L4t,DRAGGERSIZE:()=>C4t,HOUR_PATTERN:()=>M4t,MINDRAG:()=>E4t,MINZOOM:()=>k4t,REDRAWDELAY:()=>D4t,SUBPLOT_PATTERN:()=>A4t,WEEKDAY_PATTERN:()=>S4t,attrRegex:()=>x4t,clipOnAxisFalseQuery:()=>I4t,idRegex:()=>y4t,layerValue2layerClass:()=>R4t,traceLayerClasses:()=>P4t,xAxisMatch:()=>b4t,yAxisMatch:()=>_4t,zindexSeparator:()=>z4t});var y4t,x4t,b4t,_4t,w4t,T4t,A4t,M4t,S4t,E4t,k4t,C4t,D4t,F4t,L4t,P4t,I4t,R4t,z4t,Zl=Ci(()=>{"use strict";fw();y4t={x:Zx("x","( domain)?"),y:Zx("y","( domain)?")},x4t=Zx("[xy]axis"),b4t=Zx("xaxis"),_4t=Zx("yaxis"),w4t=/^[xyz][0-9]*( domain)?$/,T4t=/^[xyz]axis[0-9]*$/,A4t=/^x([0-9]*)y([0-9]*)$/,M4t="hour",S4t="day of week",E4t=8,k4t=20,C4t=20,D4t=50,F4t=[-1,6],L4t=[-1,4],P4t=["imagelayer","heatmaplayer","contourcarpetlayer","contourlayer","funnellayer","waterfalllayer","barlayer","carpetlayer","violinlayer","boxlayer","ohlclayer","scattercarpetlayer","scatterlayer"],I4t=[".scatterlayer",".barlayer",".funnellayer",".waterfalllayer"],R4t={"above traces":"above","below traces":"below"},z4t="z"});var Ls=W(Vh=>{"use strict";var B4t=xi(),xG=(Zl(),Pt(Xl));Vh.id2name=function(t){if(!(typeof t!="string"||!t.match(xG.AX_ID_PATTERN))){var r=t.split(" ")[0].slice(1);return r==="1"&&(r=""),t.charAt(0)+"axis"+r}};Vh.name2id=function(t){if(t.match(xG.AX_NAME_PATTERN)){var r=t.slice(5);return r==="1"&&(r=""),t.charAt(0)+r}};Vh.cleanId=function(t,r,i){var n=/( domain)$/.test(t);if(!(typeof t!="string"||!t.match(xG.AX_ID_PATTERN))&&!(r&&t.charAt(0)!==r)&&!(n&&!i)){var a=t.split(" ")[0].slice(1).replace(/^0+/,"");return a==="1"&&(a=""),t.charAt(0)+a+(n&&i?" domain":"")}};Vh.list=function(e,t,r){var i=e._fullLayout;if(!i)return[];var n=Vh.listIds(e,t),a=new Array(n.length),o;for(o=0;oi?1:-1:+(e.slice(1)||1)-+(t.slice(1)||1)};Vh.ref2id=function(e){return/^[xyz]/.test(e)?e.split(" ")[0]:!1};function lpe(e,t){if(t&&t.length){for(var r=0;r{"use strict";function q4t(e){var t=e._fullLayout._zoomlayer;t&&t.selectAll(".outline-controllers").remove()}function O4t(e){var t=e._fullLayout._zoomlayer;t&&t.selectAll(".select-outline").remove(),e._fullLayout._outlining=!1}upe.exports={clearOutlineControllers:q4t,clearOutline:O4t}});var UD=W((Lqr,cpe)=>{"use strict";cpe.exports={scattermode:{valType:"enumerated",values:["group","overlay"],dflt:"overlay",editType:"calc"},scattergap:{valType:"number",min:0,max:1,editType:"calc"}}});var Mc=W(GD=>{"use strict";var VD=xi(),Pqr=(Zl(),Pt(Xl)).SUBPLOT_PATTERN;GD.getSubplotCalcData=function(e,t,r){var i=VD.subplotsRegistry[t];if(!i)return[];for(var n=i.attr,a=[],o=0;o{"use strict";var N4t=xi(),Ew=tt();ab.manageCommandObserver=function(e,t,r,i){var n={},a=!0;t&&t._commandObserver&&(n=t._commandObserver),n.cache||(n.cache={}),n.lookupTable={};var o=ab.hasSimpleAPICommandBindings(e,r,n.lookupTable);if(t&&t._commandObserver){if(o)return n;if(t._commandObserver.remove)return t._commandObserver.remove(),t._commandObserver=null,n}if(o){fpe(e,o,n.cache),n.check=function(){if(a){var c=fpe(e,o,n.cache);return c.changed&&i&&n.lookupTable[c.value]!==void 0&&(n.disable(),Promise.resolve(i({value:c.value,type:o.type,prop:o.prop,traces:o.traces,index:n.lookupTable[c.value]})).then(n.enable,n.enable)),c.changed}};for(var s=["plotly_relayout","plotly_redraw","plotly_restyle","plotly_update","plotly_animatingframe","plotly_afterplot"],l=0;l0?".":"")+n;Ew.isPlainObject(a)?bG(a,t,o,i+1):t(o,n,a)}})}});var Qo=W((Bqr,Ape)=>{"use strict";var zqr=gi(),V4t=K3().timeFormatLocale,G4t=QN().formatLocale,wA=hn(),H4t=tU(),j4t=N6().version,Ya=xi(),$4t=Mw(),W4t=Ra(),Ei=tt(),Y4t=ti(),vpe=(ra(),Pt(ia)).BADNUM,Gh=Ls(),X4t=Ly().clearOutline,Z4t=UD(),_G=dA(),K4t=pG(),J4t=Mc().getModuleCalcData,gpe=Ei.relinkPrivateKeys,ob=Ei._,fi=Ape.exports={};Ei.extendFlat(fi,Ya);fi.attributes=Ja();fi.attributes.type.values=fi.allTypes;fi.fontAttrs=jo();fi.layoutAttributes=pw();var jD=ppe();fi.executeAPICommand=jD.executeAPICommand;fi.computeAPICommandBindings=jD.computeAPICommandBindings;fi.manageCommandObserver=jD.manageCommandObserver;fi.hasSimpleAPICommandBindings=jD.hasSimpleAPICommandBindings;fi.redrawText=function(e){return e=Ei.getGraphDiv(e),new Promise(function(t){setTimeout(function(){e._fullLayout&&(Ya.getComponentMethod("annotations","draw")(e),Ya.getComponentMethod("legend","draw")(e),Ya.getComponentMethod("colorbar","draw")(e),t(fi.previousPromises(e)))},300)})};fi.resize=function(e){e=Ei.getGraphDiv(e);var t,r=new Promise(function(i,n){(!e||Ei.isHidden(e))&&n(new Error("Resize must be passed a displayed plot div element.")),e._redrawTimer&&clearTimeout(e._redrawTimer),e._resolveResize&&(t=e._resolveResize),e._resolveResize=i,e._redrawTimer=setTimeout(function(){if(!e.layout||e.layout.width&&e.layout.height||Ei.isHidden(e)){i(e);return}delete e.layout.width,delete e.layout.height;var a=e.changed;e.autoplay=!0,Ya.call("relayout",e,{autosize:!0}).then(function(){e.changed=a,e._resolveResize===i&&(delete e._resolveResize,i(e))})},100)});return t&&t(r),r};fi.previousPromises=function(e){if((e._promises||[]).length)return Promise.all(e._promises).then(function(){e._promises=[]})};fi.sendDataToCloud=function(e,t){e.emit("plotly_beforeexport");let r=new URL(t).origin;var i=fi.graphJson(e,!1,"object");i.version=j4t;var n=new URL(t);n.searchParams.set("origin",window.location.origin);var a=window.open(n.href,"_blank");if(!a){console.error("Unable to open Plotly Cloud (the popup may have been blocked)"),e.emit("plotly_exportfail");return}var o=function(s){s.origin===r&&s.data&&s.data.type==="CHART_AUTH_SUCCESS"&&(a.postMessage({type:"chart",chart:i},r),window.removeEventListener("message",o),e.emit("plotly_afterexport"))};return window.addEventListener("message",o),!1};var Q4t=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],eTt=["year","month","dayMonth","dayMonthYear"];fi.supplyDefaults=function(e,t){var r=t&&t.skipUpdateCalc,i=e._fullLayout||{};if(i._skipDefaults){delete i._skipDefaults;return}var n=e._fullLayout={},a=e.layout||{},o=e._fullData||[],s=e._fullData=[],l=e.data||[],u=e.calcdata||[],c=e._context||{},f;e._transitionData||fi.createTransitionData(e),n._dfltTitle={plot:ob(e,"Click to enter Plot title"),subtitle:ob(e,"Click to enter Plot subtitle"),x:ob(e,"Click to enter X axis title"),y:ob(e,"Click to enter Y axis title"),colorbar:ob(e,"Click to enter Colorscale title"),annotation:ob(e,"new text")},n._traceWord=ob(e,"trace");var h=mpe(e,Q4t);if(i._initialAutoSizeIsDone){var p=i.width,d=i.height;fi.supplyLayoutGlobalDefaults(a,n,h),a.width||(n.width=p),a.height||(n.height=d),fi.sanitizeMargins(n)}else{fi.supplyLayoutGlobalDefaults(a,n,h);var v=!a.width||!a.height,m=n.autosize,g=c.autosizable,w=v&&(m||g);w?fi.plotAutoSize(e,a,n):v&&fi.sanitizeMargins(n),!m&&v&&(a.width=n.width,a.height=n.height)}n._d3locale=iTt(h,n.separators),n._extraFormat=mpe(e,eTt),n._initialAutoSizeIsDone=!0,n._dataLength=l.length,n._modules=[],n._visibleModules=[],n._basePlotModules=[];var _=n._subplots=rTt(),b=n._splomAxes={x:{},y:{}},S=n._splomSubplots={};n._splomGridDflt={},n._scatterStackOpts={},n._firstScatter={},n._alignmentOpts={},n._colorAxes={},n._requestRangeslider={},n._traceUids=tTt(o,l),fi.supplyDataDefaults(l,s,a,n);var x=Object.keys(b.x),A=Object.keys(b.y);if(x.length>1&&A.length>1){for(Ya.getComponentMethod("grid","sizeDefaults")(a,n),f=0;f15&&A.length>15&&n.shapes.length===0&&n.images.length===0,fi.linkSubplots(s,n,o,i),fi.cleanPlot(s,n,o,i);var C=!!(i._has&&i._has("cartesian")),k=!!(n._has&&n._has("cartesian")),D=C,F=k;D&&!F?i._bgLayer.remove():F&&!D&&(n._shouldCreateBgLayer=!0),i._zoomlayer&&!e._dragging&&X4t({_fullLayout:i}),nTt(s,n),gpe(n,i),Ya.getComponentMethod("colorscale","crossTraceDefaults")(s,n),n._preGUI||(n._preGUI={}),n._tracePreGUI||(n._tracePreGUI={});var P=n._tracePreGUI,R={},L;for(L in P)R[L]="old";for(f=0;f0){var c=1-2*a;o=Math.round(c*o),s=Math.round(c*s)}}var f=fi.layoutAttributes.width.min,h=fi.layoutAttributes.height.min;o1,d=!r.height&&Math.abs(i.height-s)>1;(d||p)&&(p&&(i.width=o),d&&(i.height=s)),t._initialAutoSize||(t._initialAutoSize={width:o,height:s}),fi.sanitizeMargins(i)};fi.supplyLayoutModuleDefaults=function(e,t,r,i){var n=Ya.componentsRegistry,a=t._basePlotModules,o,s,l,u=Ya.subplotsRegistry.cartesian;for(o in n)l=n[o],l.includeBasePlot&&l.includeBasePlot(e,t);a.length||a.push(u),t._has("cartesian")&&(Ya.getComponentMethod("grid","contentDefaults")(e,t),u.finalizeSubplots(e,t));for(var c in t._subplots)t._subplots[c].sort(Ei.subplotSort);for(s=0;s1&&(r.l/=m,r.r/=m)}if(h){var g=(r.t+r.b)/h;g>1&&(r.t/=g,r.b/=g)}var w=r.xl!==void 0?r.xl:r.x,_=r.xr!==void 0?r.xr:r.x,b=r.yt!==void 0?r.yt:r.y,S=r.yb!==void 0?r.yb:r.y;p[t]={l:{val:w,size:r.l+v},r:{val:_,size:r.r+v},b:{val:S,size:r.b+v},t:{val:b,size:r.t+v}},d[t]=1}if(!i._replotting)return fi.doAutoMargin(e)}};function oTt(e){if("_redrawFromAutoMarginCount"in e._fullLayout)return!1;var t=Gh.list(e,"",!0);for(var r in t)if(t[r].autoshift||t[r].shift)return!0;return!1}fi.doAutoMargin=function(e){var t=e._fullLayout,r=t.width,i=t.height;t._size||(t._size={}),bpe(t);var n=t._size,a=t.margin,o={t:0,b:0,l:0,r:0},s=Ei.extendFlat({},n),l=a.l,u=a.r,c=a.t,f=a.b,h=t._pushmargin,p=t._pushmarginIds,d=t.minreducedwidth,v=t.minreducedheight;if(a.autoexpand!==!1){for(var m in h)p[m]||delete h[m];var g=e._fullLayout._reservedMargin;for(var w in g)for(var _ in g[w]){var b=g[w][_];o[_]=Math.max(o[_],b)}h.base={l:{val:0,size:l},r:{val:1,size:u},t:{val:1,size:c},b:{val:0,size:f}};for(var S in o){var x=0;for(var A in h)A!=="base"&&wA(h[A][S].size)&&(x=h[A][S].size>x?h[A][S].size:x);var T=Math.max(0,a[S]-x);o[S]=Math.max(0,o[S]-T)}for(var y in h){var E=h[y].l||{},M=h[y].b||{},C=E.val,k=E.size,D=M.val,F=M.size,P=r-o.r-o.l,R=i-o.t-o.b;for(var L in h){if(wA(k)&&h[L].r){var I=h[L].r.val,B=h[L].r.size;if(I>C){var O=(k*I+(B-P)*C)/(I-C),$=(B*(1-C)+(k-P)*(1-I))/(I-C);O+$>l+u&&(l=O,u=$)}}if(wA(F)&&h[L].t){var X=h[L].t.val,K=h[L].t.size;if(X>D){var G=(F*X+(K-R)*D)/(X-D),q=(K*(1-D)+(F-R)*(1-X))/(X-D);G+q>f+c&&(f=G,c=q)}}}}}var J=Ei.constrain(r-a.l-a.r,_pe,d),N=Ei.constrain(i-a.t-a.b,wpe,v),V=Math.max(0,r-J),Y=Math.max(0,i-N);if(V){var H=(l+u)/V;H>1&&(l/=H,u/=H)}if(Y){var j=(f+c)/Y;j>1&&(f/=j,c/=j)}if(n.l=Math.round(l)+o.l,n.r=Math.round(u)+o.r,n.t=Math.round(c)+o.t,n.b=Math.round(f)+o.b,n.p=Math.round(a.pad),n.w=Math.round(r)-n.l-n.r,n.h=Math.round(i)-n.t-n.b,!t._replotting&&(fi.didMarginChange(s,n)||oTt(e))){"_redrawFromAutoMarginCount"in t?t._redrawFromAutoMarginCount++:t._redrawFromAutoMarginCount=1;var Q=3*(1+Object.keys(p).length);if(t._redrawFromAutoMarginCount1)return!0}return!1};fi.graphJson=function(e,t=!1,r="json",i=!1,n=!1){(i&&t&&!e._fullData||i&&!t&&!e._fullLayout)&&fi.supplyDefaults(e);var a=i?e._fullData:e.data,o=i?e._fullLayout:e.layout,s=(e._transitionData||{})._frames;function l(f,h){if(typeof f=="function")return h?"_function_":null;if(Ei.isPlainObject(f)){var p={};return Object.keys(f).sort().forEach(function(g){if(["_","["].indexOf(g.charAt(0))===-1){if(typeof f[g]=="function"){h&&(p[g]="_function");return}p[g]=l(f[g],h)}}),p}var d=Array.isArray(f),v=Ei.isTypedArray(f);if((d||v)&&f.dtype&&f.shape){var m=f.bdata;return l({dtype:f.dtype,shape:f.shape,bdata:Ei.isArrayBuffer(m)?H4t.encode(m):m},h)}return d?f.map(function(g){return l(g,h)}):v?Ei.simpleMap(f,Ei.identity):Ei.isJSDate(f)?Ei.ms2DateTimeLocal(+f):f}var u={data:(a||[]).map(function(f){var h=l(f);return t&&delete h.fit,h})};if(!t&&(u.layout=l(o),i)){var c=o._size;u.layout.computed={margin:{b:c.b,l:c.l,r:c.r,t:c.t}}}return s&&(u.frames=l(s)),n&&(u.config=l(e._context,!0)),r==="object"?u:JSON.stringify(u)};fi.modifyFrames=function(e,t){var r,i,n,a=e._transitionData._frames,o=e._transitionData._frameHash;for(r=0;r0&&(e._transitioningWithDuration=!0),e._transitionData._interruptCallbacks.push(function(){i=!0}),r.redraw&&e._transitionData._interruptCallbacks.push(function(){return Ya.call("redraw",e)}),e._transitionData._interruptCallbacks.push(function(){e.emit("plotly_transitioninterrupted",[])});var h=0,p=0;function d(){return h++,function(){p++,!i&&p===h&&s(f)}}r.runFn(d),setTimeout(d())})}function s(f){if(e._transitionData)return a(e._transitionData._interruptCallbacks),Promise.resolve().then(function(){if(r.redraw)return Ya.call("redraw",e)}).then(function(){e._transitioning=!1,e._transitioningWithDuration=!1,e.emit("plotly_transitioned",[])}).then(f)}function l(){if(e._transitionData)return e._transitioning=!1,n(e._transitionData._interruptCallbacks)}var u=[fi.previousPromises,l,r.prepareFn,fi.rehover,fi.reselect,o],c=Ei.syncOrAsync(u,e);return(!c||!c.then)&&(c=Promise.resolve()),c.then(function(){return e})}fi.doCalcdata=function(e,t){var r=Gh.list(e),i=e._fullData,n=e._fullLayout,a,o,s,l=new Array(i.length),u=(e.calcdata||[]).slice();for(e.calcdata=l,n._numBoxes=0,n._numViolins=0,n._violinScaleGroupStats={},e._hmpixcount=0,e._hmlumcount=0,n._piecolormap={},n._sunburstcolormap={},n._treemapcolormap={},n._iciclecolormap={},n._funnelareacolormap={},s=0;sMpe,svgAttrs:()=>hTt,xlink:()=>Spe,xmlns:()=>fTt});var fTt,Mpe,Spe,hTt,md=Ci(()=>{"use strict";fTt="http://www.w3.org/2000/xmlns/",Mpe="http://www.w3.org/2000/svg",Spe="http://www.w3.org/1999/xlink",hTt={xmlns:Mpe,"xmlns:xlink":Spe}});var Kl={};Jn(Kl,{CAP_SHIFT:()=>mTt,FROM_BL:()=>dTt,FROM_BR:()=>vTt,FROM_TL:()=>pTt,LINE_SPACING:()=>gTt,MID_SHIFT:()=>yTt,OPPOSITE_SIDE:()=>xTt});var dTt,pTt,vTt,gTt,mTt,yTt,xTt,Jl=Ci(()=>{"use strict";dTt={left:0,center:.5,right:1,bottom:0,middle:.5,top:1},pTt={left:0,center:.5,right:1,bottom:1,middle:.5,top:0},vTt={left:1,center:.5,right:0,bottom:0,middle:.5,top:1},gTt=1.3,mTt=.7,yTt=.35,xTt={left:"right",right:"left",top:"bottom",bottom:"top"}});var ao=W(Mf=>{"use strict";var ml=gi(),yd=tt(),bTt=yd.strTranslate,wG=(md(),Pt(gd)),_Tt=(Jl(),Pt(Kl)).LINE_SPACING,wTt=/([^$]*)([$]+[^$]*[$]+)([^$]*)/,MG=e=>e?e.match(wTt):null;Mf.matchTex=MG;var TTt=e=>{var t=MG(e);return!!t&&!t[1]&&!t[3]};Mf.isPureTex=TTt;function Lpe(e,t,r,i,n,a,o,s){var l=i.select("g"),u=l.node().getBoundingClientRect(),c=u.width,f=u.height,h=o===void 0?c:o,p=s===void 0?f:s;(c>h||f>p)&&(i.style("overflow","hidden"),u=i.node().getBoundingClientRect(),c=u.width,f=u.height);var d=+e.attr("x"),v=+e.attr("y"),m=a||e.node().getBoundingClientRect().height,g=-m/4;t[0]==="y"?r.attr({transform:"rotate("+[-90,d,v]+")"+bTt(-c/2,g-f/2)}):t[0]==="l"?v=g-f/2:t[0]==="a"&&t.indexOf("atitle")!==0?(d=0,v=g):(d=d-c*(n==="middle"?.5:n==="end"?1:0),v=v+g-f/2),i.attr({x:d,y:v})}function ATt(e){e.selectAll("a").each(function(){var t=ml.select(this);["href","xlink:href"].forEach(function(r){var i=t.attr(r);i&&t.attr(r,kG(i)||null)})})}Mf.convertToTspans=function(e,t,r){var i=e.text(),n=!e.attr("data-notex")&&t&&t._context.typesetMath&&MG(i);n&&!kTt()&&(n=null);var a=ml.select(e.node().parentNode);if(a.empty())return;var o=e.attr("class")?e.attr("class").split(" ")[0]:"text";o+="-math",a.selectAll("svg."+o).remove(),a.selectAll("g."+o+"-group").remove(),e.style("display",null).attr({"data-unformatted":i,"data-math":"N"});function s(){a.empty()||(o=e.attr("class")+"-math",a.select("svg."+o).remove()),e.text("").style("white-space","pre");var l=qTt(e.node(),i);l&&e.style("pointer-events","all"),Mf.positionText(e),r&&r.call(e)}return n?(t&&t._promises||[]).push(new Promise(function(l){e.style("display","none");var u=parseInt(e.node().style.fontSize,10),c={fontSize:u},f=e.attr("text-anchor");CTt(n[2],c,function(h,p,d){a.selectAll("svg."+o).remove(),a.selectAll("g."+o+"-group").remove();var v=h&&h.select("svg");if(!v||!v.node()){s(),l();return}e.style("display","none");var m=a.append("g").classed(o+"-group",!0).attr({"pointer-events":"none","data-unformatted":i,"data-math":"Y"});m.node().appendChild(v.node()),ATt(v),p&&p.node()&&v.node().insertBefore(p.node().cloneNode(!0),v.node().firstChild);var g=d.width,w=d.height;v.attr({class:o,height:w,preserveAspectRatio:"xMinYMin meet"}).style({overflow:"visible","pointer-events":"none","font-size":c.fontSize+"px"});var _=e.node().style.fill||"black",b=v.select("g");b.attr({fill:_,stroke:_}),Lpe(e,o,m,v,f,u,g,w),r&&r.call(e,m),l(m)})})):s(),e};Mf.repositionMathGroup=function(e){if(!e.empty()){var t=(e.attr("class")?e.attr("class").split(" ")[0]:"text")+"-math",r=ml.select(e.node().parentNode),i=r.select("g."+t+"-group"),n=i.select("svg."+t);if(!(i.empty()||n.empty())){var a=e.attr("text-anchor"),o=parseInt(e.node().style.fontSize,10);Lpe(e,t,i,n,a,o)}}};Mf.getMathOrTextNode=function(e){var t=e.node();if(!t)return null;var r=(e.attr("class")?e.attr("class").split(" ")[0]:"text")+"-math",i=ml.select(t.parentNode).select("g."+r+"-group");return i.empty()?t:i.node()};var MTt=/(<|<|<)/g,STt=/(>|>|>)/g;function ETt(e){return e.replace(MTt,"\\lt ").replace(STt,"\\gt ")}var TG=null,Ppe=()=>typeof MathJax!="undefined"&&MathJax.version?parseInt(MathJax.version.split(".")[0]):null,Epe=!1,kpe=!1;function kTt(){let e=Ppe();return e===3||e===4?!0:(e===null?Epe||(Epe=!0,yd.warn("MathJax is not loaded. Math equations will not be rendered.")):kpe||(kpe=!0,yd.warn("Unsupported MathJax version:",MathJax.version)),!1)}function CTt(e,t,r){let i=Ppe();var n;let a=function(){if(!TG){let u=MathJax._.output.svg_ts.SVG,c=yd.extendFlat({},MathJax.config.svg,{fontCache:"local"});i===4&&(c.linebreaks=yd.extendFlat({},c.linebreaks,{inline:!1})),TG=MathJax._.mathjax.mathjax.document(document,yd.extendFlat({},MathJax.config.options,{InputJax:MathJax.startup.input,OutputJax:new u(c)}))}let s="math-output-"+yd.randstr({},64);n=ml.select("body").append("div").attr({id:s}).style({visibility:"hidden",position:"absolute","font-size":t.fontSize+"px"});let l=ETt(e).replace(/^\$+|\$+$/g,"");return MathJax._.mathjax.mathjax.handleRetriesFor(function(){return TG.convert(l,{display:!1})}).then(function(u){n.node().appendChild(u)})},o=function(){let s=n.select(".MathJax"),l=!s.empty()&&n.select("svg").node();if(!l)yd.log("There was an error in the tex syntax.",e),r();else{let u=l.getBoundingClientRect(),c=s.select("defs");r(s,c,u)}n.remove()};Promise.resolve().then(a).then(o).catch(s=>{yd.log("MathJax typesetting failed.",e,s),n&&n.remove(),r()})}var Ipe={sup:"font-size:70%",sub:"font-size:70%",s:"text-decoration:line-through",u:"text-decoration:underline",b:"font-weight:bold",i:"font-style:italic",a:"cursor:pointer",span:"",em:"font-style:italic;font-weight:bold"},DTt={sub:"0.3em",sup:"-0.6em"},FTt={sub:"-0.21em",sup:"0.42em"},Cpe="\u200B",Dpe=["http:","https:","mailto:","",void 0,":"],Rpe=Mf.NEWLINES=/(\r\n?|\n)/g,SG=/(<[^<>]*>)/,EG=/<(\/?)([^ >]*)(\s+(.*))?>/i,LTt=//i;Mf.BR_TAG_ALL=//gi;var zpe=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,Bpe=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,qpe=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,PTt=/(^|[\s"'])popup\s*=\s*("([\w=,]*)"|'([\w=,]*)')/i;function sb(e,t){if(!e)return null;var r=e.match(t),i=r&&(r[3]||r[4]);return i&&$D(i)}var ITt=/(^|;)\s*color:/;Mf.plainText=function(e,t){t=t||{};for(var r=t.len!==void 0&&t.len!==-1?t.len:1/0,i=t.allowedTags!==void 0?t.allowedTags:["br"],n="...",a=n.length,o=e.split(SG),s=[],l="",u=0,c=0;ca?s.push(f.slice(0,Math.max(0,v-a))+n):s.push(f.slice(0,v));break}l=""}}return s.join("")};var RTt={mu:"\u03BC",amp:"&",lt:"<",gt:">",nbsp:"\xA0",times:"\xD7",plusmn:"\xB1",deg:"\xB0"},zTt=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function $D(e){return e.replace(zTt,function(t,r){var i;return r.charAt(0)==="#"?i=BTt(r.charAt(1)==="x"?parseInt(r.slice(2),16):parseInt(r.slice(1),10)):i=RTt[r],i||t})}Mf.convertEntities=$D;function BTt(e){if(!(e>1114111)){var t=String.fromCodePoint;if(t)return t(e);var r=String.fromCharCode;return e<=65535?r(e):r((e>>10)+55232,e%1024+56320)}}function qTt(e,t){t=t.replace(Rpe," ");var r=!1,i=[],n,a=-1;function o(){a++;var x=document.createElementNS(wG.svg,"tspan");ml.select(x).attr({class:"line",dy:a*_Tt+"em"}),e.appendChild(x),n=x;var A=i;if(i=[{node:x}],A.length>1)for(var T=1;T.",t);return}var A=i.pop();x!==A.type&&yd.log("Start tag <"+A.type+"> doesnt match end tag <"+x+">. Pretending it did match.",t),n=i[i.length-1].node}var c=LTt.test(t);c?o():(n=e,i=[{node:e}]);for(var f=t.split(SG),h=0;h{"use strict";var OTt=gi(),AA=hn(),WD=tt(),lb=ti(),NTt=Xx().isValid;function UTt(e,t,r){var i=t?WD.nestedProperty(e,t).get()||{}:e,n=i[r||"color"];n&&n._inputArray&&(n=n._inputArray);var a=!1;if(WD.isArrayOrTypedArray(n)){for(var o=0;o=0;i--,n++){var a=e[i];r[n]=[1-a[0],a[1]]}return r}function Gpe(e,t){t=t||{};for(var r=e.domain,i=e.range,n=i.length,a=new Array(n),o=0;o{"use strict";var jpe=($V(),Pt(jV)),GTt=jpe.FORMAT_LINK,HTt=jpe.DATE_FORMAT_LINK;function jTt(e,t){return{valType:"string",dflt:"",editType:"none",description:(t?CG:$pe)("hover text",e)+["By default the values are formatted using "+(t?"generic number format":"`"+e+"axis.hoverformat`")+"."].join(" ")}}function CG(e,t){return["Sets the "+e+" formatting rule"+(t?" for `"+t+"`":""),"using d3 formatting mini-languages","which are very similar to those in Python. For numbers, see: "+GTt+"."].join(" ")}function $pe(e,t){return CG(e,t)+[" And for dates see: "+HTt+".","We add two items to d3's date formatter:","*%h* for half of the year as a decimal number as well as","*%{n}f* for fractional seconds","with n digits. For example, *2016-10-13 09:15:23.456* with tickformat","*%H~%M~%S.%2f* would display *09~15~23.46*"].join(" ")}Wpe.exports={axisHoverFormat:jTt,descriptionOnlyNumbers:CG,descriptionWithDates:$pe}});var ac=W((Vqr,cve)=>{"use strict";var Ype=jo(),kw=Yl(),uve=zu().dash,FG=an().extendFlat,Xpe=Ra().templatedArray,Uqr=Wa().templateFormatStringDescription,Zpe=Ts().descriptionWithDates,$Tt=(ra(),Pt(ia)).ONEDAY,h1=(Zl(),Pt(Xl)),WTt=h1.HOUR_PATTERN,YTt=h1.WEEKDAY_PATTERN,DG={valType:"enumerated",values:["auto","linear","array"],editType:"ticks",impliedEdits:{tick0:void 0,dtick:void 0}},XTt=FG({},DG,{values:DG.values.slice().concat(["sync"])});function Kpe(e){return{valType:"integer",min:0,dflt:e?5:0,editType:"ticks"}}var Jpe={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},Qpe={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},eve={valType:"data_array",editType:"ticks"},tve={valType:"enumerated",values:["outside","inside",""],editType:"ticks"};function rve(e){var t={valType:"number",min:0,editType:"ticks"};return e||(t.dflt=5),t}function ive(e){var t={valType:"number",min:0,editType:"ticks"};return e||(t.dflt=1),t}var nve={valType:"color",dflt:kw.defaultLine,editType:"ticks"},ave={valType:"color",dflt:kw.lightLine,editType:"ticks"};function ove(e){var t={valType:"number",min:0,editType:"ticks"};return e||(t.dflt=1),t}var sve=FG({},uve,{editType:"ticks"}),lve={valType:"boolean",editType:"ticks"};cve.exports={visible:{valType:"boolean",editType:"plot"},color:{valType:"color",dflt:kw.defaultLine,editType:"ticks"},title:{text:{valType:"string",editType:"ticks"},font:Ype({editType:"ticks",description:"Sets this axis' title font."}),standoff:{valType:"number",min:0,editType:"ticks"},editType:"ticks"},type:{valType:"enumerated",values:["-","linear","log","date","category","multicategory"],dflt:"-",editType:"calc",_noTemplating:!0},autotypenumbers:{valType:"enumerated",values:["convert types","strict"],dflt:"convert types",editType:"calc"},autorange:{valType:"enumerated",values:[!0,!1,"reversed","min reversed","max reversed","min","max"],dflt:!0,editType:"axrange",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},autorangeoptions:{minallowed:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},maxallowed:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},clipmin:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},clipmax:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},include:{valType:"any",arrayOk:!0,editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},editType:"plot"},rangemode:{valType:"enumerated",values:["normal","tozero","nonnegative"],dflt:"normal",editType:"plot"},range:{valType:"info_array",items:[{valType:"any",editType:"axrange",impliedEdits:{"^autorange":!1},anim:!0},{valType:"any",editType:"axrange",impliedEdits:{"^autorange":!1},anim:!0}],editType:"axrange",impliedEdits:{autorange:!1},anim:!0},minallowed:{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},maxallowed:{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},fixedrange:{valType:"boolean",dflt:!1,editType:"calc"},modebardisable:{valType:"flaglist",flags:["autoscale","zoominout"],extras:["none"],dflt:"none",editType:"modebar"},insiderange:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},scaleanchor:{valType:"enumerated",values:[h1.idRegex.x.toString(),h1.idRegex.y.toString(),!1],editType:"plot"},scaleratio:{valType:"number",min:0,dflt:1,editType:"plot"},constrain:{valType:"enumerated",values:["range","domain"],editType:"plot"},constraintoward:{valType:"enumerated",values:["left","center","right","top","middle","bottom"],editType:"plot"},matches:{valType:"enumerated",values:[h1.idRegex.x.toString(),h1.idRegex.y.toString()],editType:"calc"},rangebreaks:Xpe("rangebreak",{enabled:{valType:"boolean",dflt:!0,editType:"calc"},bounds:{valType:"info_array",items:[{valType:"any",editType:"calc"},{valType:"any",editType:"calc"}],editType:"calc"},pattern:{valType:"enumerated",values:[YTt,WTt,""],editType:"calc"},values:{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"any",editType:"calc"}},dvalue:{valType:"number",editType:"calc",min:0,dflt:$Tt},editType:"calc"}),tickmode:XTt,nticks:Kpe(),tick0:Jpe,dtick:Qpe,ticklabelstep:{valType:"integer",min:1,dflt:1,editType:"ticks"},tickvals:eve,ticktext:{valType:"data_array",editType:"ticks"},ticks:tve,tickson:{valType:"enumerated",values:["labels","boundaries"],dflt:"labels",editType:"ticks"},ticklabelmode:{valType:"enumerated",values:["instant","period"],dflt:"instant",editType:"ticks"},ticklabelposition:{valType:"enumerated",values:["outside","inside","outside top","inside top","outside left","inside left","outside right","inside right","outside bottom","inside bottom"],dflt:"outside",editType:"calc"},ticklabeloverflow:{valType:"enumerated",values:["allow","hide past div","hide past domain"],editType:"calc"},ticklabelshift:{valType:"integer",dflt:0,editType:"ticks"},ticklabelstandoff:{valType:"integer",dflt:0,editType:"ticks"},ticklabelindex:{valType:"integer",arrayOk:!0,editType:"calc"},mirror:{valType:"enumerated",values:[!0,"ticks",!1,"all","allticks"],dflt:!1,editType:"ticks+layoutstyle"},ticklen:rve(),tickwidth:ive(),tickcolor:nve,showticklabels:{valType:"boolean",dflt:!0,editType:"ticks"},labelalias:{valType:"any",dflt:!1,editType:"ticks"},automargin:{valType:"flaglist",flags:["height","width","left","right","top","bottom"],extras:[!0,!1],dflt:!1,editType:"ticks"},showspikes:{valType:"boolean",dflt:!1,editType:"modebar"},spikecolor:{valType:"color",dflt:null,editType:"none"},spikethickness:{valType:"number",dflt:3,editType:"none"},spikedash:FG({},uve,{dflt:"dash",editType:"none"}),spikemode:{valType:"flaglist",flags:["toaxis","across","marker"],dflt:"toaxis",editType:"none"},spikesnap:{valType:"enumerated",values:["data","cursor","hovered data"],dflt:"hovered data",editType:"none"},tickfont:Ype({editType:"ticks"}),tickangle:{valType:"angle",dflt:"auto",editType:"ticks"},autotickangles:{valType:"info_array",freeLength:!0,items:{valType:"angle"},dflt:[0,30,90],editType:"ticks"},tickprefix:{valType:"string",dflt:"",editType:"ticks"},showtickprefix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},ticksuffix:{valType:"string",dflt:"",editType:"ticks"},showticksuffix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},showexponent:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},exponentformat:{valType:"enumerated",values:["none","e","E","power","SI","B","SI extended"],dflt:"B",editType:"ticks"},minexponent:{valType:"number",dflt:3,min:0,editType:"ticks"},separatethousands:{valType:"boolean",dflt:!1,editType:"ticks"},tickformat:{valType:"string",dflt:"",editType:"ticks",description:Zpe("tick label")},tickformatstops:Xpe("tickformatstop",{enabled:{valType:"boolean",dflt:!0,editType:"ticks"},dtickrange:{valType:"info_array",items:[{valType:"any",editType:"ticks"},{valType:"any",editType:"ticks"}],editType:"ticks"},value:{valType:"string",dflt:"",editType:"ticks"},editType:"ticks"}),hoverformat:{valType:"string",dflt:"",editType:"none",description:Zpe("hover text")},unifiedhovertitle:{text:{valType:"string",dflt:"",editType:"none"},editType:"none"},showline:{valType:"boolean",dflt:!1,editType:"ticks+layoutstyle"},linecolor:{valType:"color",dflt:kw.defaultLine,editType:"layoutstyle"},linewidth:{valType:"number",min:0,dflt:1,editType:"ticks+layoutstyle"},showgrid:lve,gridcolor:ave,gridwidth:ove(),griddash:sve,zeroline:{valType:"boolean",editType:"ticks"},zerolinecolor:{valType:"color",dflt:kw.defaultLine,editType:"ticks"},zerolinelayer:{valType:"enumerated",values:["above traces","below traces"],dflt:"below traces",editType:"plot"},zerolinewidth:{valType:"number",dflt:1,editType:"ticks"},showdividers:{valType:"boolean",dflt:!0,editType:"ticks"},dividercolor:{valType:"color",dflt:kw.defaultLine,editType:"ticks"},dividerwidth:{valType:"number",dflt:1,editType:"ticks"},anchor:{valType:"enumerated",values:["free",h1.idRegex.x.toString(),h1.idRegex.y.toString()],editType:"plot"},side:{valType:"enumerated",values:["top","bottom","left","right"],editType:"plot"},overlaying:{valType:"enumerated",values:["free",h1.idRegex.x.toString(),h1.idRegex.y.toString()],editType:"plot"},minor:{tickmode:DG,nticks:Kpe("minor"),tick0:Jpe,dtick:Qpe,tickvals:eve,ticks:tve,ticklen:rve("minor"),tickwidth:ive("minor"),tickcolor:nve,gridcolor:ave,gridwidth:ove("minor"),griddash:sve,showgrid:lve,editType:"ticks"},minorloglabels:{valType:"enumerated",values:["small digits","complete","none"],dflt:"small digits",editType:"calc"},layer:{valType:"enumerated",values:["above traces","below traces"],dflt:"above traces",editType:"plot"},domain:{valType:"info_array",items:[{valType:"number",min:0,max:1,editType:"plot"},{valType:"number",min:0,max:1,editType:"plot"}],dflt:[0,1],editType:"plot"},position:{valType:"number",min:0,max:1,dflt:0,editType:"plot"},autoshift:{valType:"boolean",dflt:!1,editType:"plot"},shift:{valType:"number",editType:"plot"},categoryorder:{valType:"enumerated",values:["trace","category ascending","category descending","array","total ascending","total descending","min ascending","min descending","max ascending","max descending","sum ascending","sum descending","mean ascending","mean descending","geometric mean ascending","geometric mean descending","median ascending","median descending"],dflt:"trace",editType:"calc"},categoryarray:{valType:"data_array",editType:"calc"},uirevision:{valType:"any",editType:"none"},editType:"calc"}});var YD=W((Gqr,hve)=>{"use strict";var As=ac(),fve=jo(),LG=an().extendFlat,ZTt=hs().overrideAll;hve.exports=ZTt({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:As.linecolor,outlinewidth:As.linewidth,bordercolor:As.linecolor,borderwidth:{valType:"number",min:0,dflt:0},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},tickmode:As.minor.tickmode,nticks:As.nticks,tick0:As.tick0,dtick:LG({},As.dtick,{}),tickvals:As.tickvals,ticktext:As.ticktext,ticks:LG({},As.ticks,{dflt:""}),ticklabeloverflow:LG({},As.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:As.ticklen,tickwidth:As.tickwidth,tickcolor:As.tickcolor,ticklabelstep:As.ticklabelstep,showticklabels:As.showticklabels,labelalias:As.labelalias,tickfont:fve({description:"Sets the color bar's tick label font"}),tickangle:As.tickangle,tickformat:As.tickformat,tickformatstops:As.tickformatstops,tickprefix:As.tickprefix,showtickprefix:As.showtickprefix,ticksuffix:As.ticksuffix,showticksuffix:As.showticksuffix,separatethousands:As.separatethousands,exponentformat:As.exponentformat,minexponent:As.minexponent,showexponent:As.showexponent,title:{text:{valType:"string"},font:fve({description:"Sets this color bar's title font."}),side:{valType:"enumerated",values:["right","top","bottom"]}}},"colorbars","from-root")});var Fo=W((jqr,pve)=>{"use strict";var KTt=YD(),JTt=(fw(),Pt(fA)).counter,QTt=(Qx(),Pt(Jx)).default,dve=Xx().scales,Hqr=QTt(dve);function XD(e){return"`"+e+"`"}pve.exports=function(t,r){t=t||"",r=r||{};var i=r.cLetter||"c",n="onlyIfNumerical"in r?r.onlyIfNumerical:!!t,a="noScale"in r?r.noScale:t==="marker.line",o="showScaleDflt"in r?r.showScaleDflt:i==="z",s=typeof r.colorscaleDflt=="string"?dve[r.colorscaleDflt]:null,l=r.editTypeOverride||"",u=t?t+".":"",c,f;"colorAttr"in r?(c=r.colorAttr,f=r.colorAttr):(c={z:"z",c:"color"}[i],f="in "+XD(u+c));var h=n?" Has an effect only if "+f+" is set to a numerical array.":"",p=i+"auto",d=i+"min",v=i+"max",m=i+"mid",g=XD(u+p),w=XD(u+d),_=XD(u+v),b=w+" and "+_,S={};S[d]=S[v]=void 0;var x={};x[p]=!1;var A={};return c==="color"&&(A.color={valType:"color",arrayOk:!0,editType:l||"style"},r.anim&&(A.color.anim=!0)),A[p]={valType:"boolean",dflt:!0,editType:"calc",impliedEdits:S},A[d]={valType:"number",dflt:null,editType:l||"plot",impliedEdits:x},A[v]={valType:"number",dflt:null,editType:l||"plot",impliedEdits:x},A[m]={valType:"number",dflt:null,editType:"calc",impliedEdits:S},A.colorscale={valType:"colorscale",editType:"calc",dflt:s,impliedEdits:{autocolorscale:!1}},A.autocolorscale={valType:"boolean",dflt:r.autoColorDflt!==!1,editType:"calc",impliedEdits:{colorscale:void 0}},A.reversescale={valType:"boolean",dflt:!1,editType:"plot"},a||(A.showscale={valType:"boolean",dflt:o,editType:"calc"},A.colorbar=KTt),r.noColorAxis||(A.coloraxis={valType:"subplotid",regex:JTt("coloraxis"),dflt:null,editType:"calc"}),A}});var IG=W(($qr,vve)=>{"use strict";var e6t=an().extendFlat,t6t=Fo(),PG=Xx().scales;vve.exports={editType:"calc",colorscale:{editType:"calc",sequential:{valType:"colorscale",dflt:PG.Reds,editType:"calc"},sequentialminus:{valType:"colorscale",dflt:PG.Blues,editType:"calc"},diverging:{valType:"colorscale",dflt:PG.RdBu,editType:"calc"}},coloraxis:e6t({_isSubplotObj:!0,editType:"calc"},t6t("",{colorAttr:"corresponding trace color array(s)",noColorAxis:!0,showScaleDflt:!0}))}});var RG=W((Wqr,gve)=>{"use strict";var r6t=tt();gve.exports=function(t){return r6t.isPlainObject(t.colorbar)}});var qG=W(BG=>{"use strict";var zG=hn(),mve=tt(),yve=(ra(),Pt(ia)),i6t=yve.ONEDAY,n6t=yve.ONEWEEK;BG.dtick=function(e,t){var r=t==="log",i=t==="date",n=t==="category",a=i?i6t:1;if(!e)return a;if(zG(e))return e=Number(e),e<=0?a:n?Math.max(1,Math.round(e)):i?Math.max(.1,e):e;if(typeof e!="string"||!(i||r))return a;var o=e.charAt(0),s=e.slice(1);return s=zG(s)?Number(s):0,s<=0||!(i&&o==="M"&&s===Math.round(s)||r&&o==="L"||r&&o==="D"&&(s===1||s===2))?a:e};BG.tick0=function(e,t,r,i){if(t==="date")return mve.cleanDate(e,mve.dateTick0(r,i%n6t===0?1:0));if(!(i==="D1"||i==="D2"))return zG(e)?Number(e):0}});var ub=W((Xqr,bve)=>{"use strict";var xve=qG(),a6t=tt().isArrayOrTypedArray,o6t=Tc().isTypedArraySpec,s6t=Tc().decodeTypedArraySpec;bve.exports=function(t,r,i,n,a={}){var o=a.isMinor,s=o?t.minor||{}:t,l=o?r.minor:r,u=o?"minor.":"";function c(b){var S=s[b];return o6t(S)&&(S=s6t(S)),S!==void 0?S:(l._template||{})[b]}var f=c("tick0"),h=c("dtick"),p=c("tickvals"),d=c("overlaying"),v=n==="category"||n==="multicategory",m;a6t(p)?m="array":h?m="linear":d&&!v?m="sync":m="auto";var g=i(u+"tickmode",m);if(g==="auto"||g==="sync")i(u+"nticks");else if(g==="linear"){var w=l.dtick=xve.dtick(h,n);l.tick0=xve.tick0(f,n,r.calendar,w)}else if(n!=="multicategory"){var _=i(u+"tickvals");_===void 0?l.tickmode="auto":o||i("ticktext")}}});var Cw=W((Zqr,wve)=>{"use strict";var OG=tt(),_ve=ac();wve.exports=function(t,r,i,n){var a=n.isMinor,o=a?t.minor||{}:t,s=a?r.minor:r,l=a?_ve.minor:_ve,u=a?"minor.":"",c=OG.coerce2(o,s,l,"ticklen",a?(r.ticklen||5)*.6:void 0),f=OG.coerce2(o,s,l,"tickwidth",a?r.tickwidth||1:void 0),h=OG.coerce2(o,s,l,"tickcolor",(a?r.tickcolor:void 0)||s.color),p=i(u+"ticks",!a&&n.outerTicks||c||f||h?"outside":"");p||(delete s.ticklen,delete s.tickwidth,delete s.tickcolor)}});var NG=W((Kqr,Tve)=>{"use strict";Tve.exports=function(t){var r=["showexponent","showtickprefix","showticksuffix"],i=r.filter(function(a){return t[a]!==void 0}),n=function(a){return t[a]===t[i[0]]};if(i.every(n)||i.length===1)return t[i[0]]}});var tf=W((Jqr,Ave)=>{"use strict";var ZD=tt(),l6t=Ra();Ave.exports=function(t,r,i){var n=i.name,a=i.inclusionAttr||"visible",o=r[n],s=ZD.isArrayOrTypedArray(t[n])?t[n]:[],l=r[n]=[],u=l6t.arrayTemplater(r,n,a),c,f;for(c=0;c{"use strict";var UG=tt(),u6t=ti().contrast,Mve=ac(),c6t=NG(),f6t=tf();Sve.exports=function(t,r,i,n,a){a||(a={});var o=i("labelalias");UG.isPlainObject(o)||delete r.labelalias;var s=c6t(t),l=i("showticklabels");if(l){a.noTicklabelshift||i("ticklabelshift"),a.noTicklabelstandoff||i("ticklabelstandoff");var u=a.font||{},c=r.color,f=r.ticklabelposition||"",h=f.indexOf("inside")!==-1?u6t(a.bgColor):c&&c!==Mve.color.dflt?c:u.color;if(UG.coerceFont(i,"tickfont",u,{overrideDflt:{color:h}}),!a.noTicklabelstep&&n!=="multicategory"&&n!=="log"&&i("ticklabelstep"),!a.noAng){var p=i("tickangle");!a.noAutotickangles&&p==="auto"&&i("autotickangles")}if(n!=="category"){var d=i("tickformat");f6t(t,r,{name:"tickformatstops",inclusionAttr:"enabled",handleItemDefaults:h6t}),r.tickformatstops.length||delete r.tickformatstops,!a.noExp&&!d&&n!=="date"&&(i("showexponent",s),i("exponentformat"),i("minexponent"),i("separatethousands"))}!a.noMinorloglabels&&n==="log"&&i("minorloglabels")}};function h6t(e,t){function r(n,a){return UG.coerce(e,t,Mve.tickformatstops,n,a)}var i=r("enabled");i&&(r("dtickrange"),r("value"))}});var Iy=W((eOr,Eve)=>{"use strict";var d6t=NG();Eve.exports=function(t,r,i,n,a){a||(a={});var o=a.tickSuffixDflt,s=d6t(t),l=i("tickprefix");l&&i("showtickprefix",s);var u=i("ticksuffix",o);u&&i("showticksuffix",s)}});var VG=W((tOr,kve)=>{"use strict";var Ry=tt(),p6t=Ra(),v6t=ub(),g6t=Cw(),m6t=Py(),y6t=Iy(),x6t=YD();kve.exports=function(t,r,i){var n=p6t.newContainer(r,"colorbar"),a=t.colorbar||{};function o(M,C){return Ry.coerce(a,n,x6t,M,C)}var s=i.margin||{t:0,b:0,l:0,r:0},l=i.width-s.l-s.r,u=i.height-s.t-s.b,c=o("orientation"),f=c==="v",h=o("thicknessmode");o("thickness",h==="fraction"?30/(f?l:u):30);var p=o("lenmode");o("len",p==="fraction"?1:f?u:l);var d=o("yref"),v=o("xref"),m=d==="paper",g=v==="paper",w,_,b,S="left";f?(b="middle",S=g?"left":"right",w=g?1.02:1,_=.5):(b=m?"bottom":"top",S="center",w=.5,_=m?1.02:1),Ry.coerce(a,n,{x:{valType:"number",min:g?-2:0,max:g?3:1,dflt:w}},"x"),Ry.coerce(a,n,{y:{valType:"number",min:m?-2:0,max:m?3:1,dflt:_}},"y"),o("xanchor",S),o("xpad"),o("yanchor",b),o("ypad"),Ry.noneOrAll(a,n,["x","y"]),o("outlinecolor"),o("outlinewidth"),o("bordercolor"),o("borderwidth"),o("bgcolor");var x=Ry.coerce(a,n,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:f?["outside","inside","outside top","inside top","outside bottom","inside bottom"]:["outside","inside","outside left","inside left","outside right","inside right"]}},"ticklabelposition");o("ticklabeloverflow",x.indexOf("inside")!==-1?"hide past domain":"hide past div"),v6t(a,n,o,"linear");var A=i.font,T={noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0,outerTicks:!1,font:A};x.indexOf("inside")!==-1&&(T.bgColor="black"),y6t(a,n,o,"linear",T),m6t(a,n,o,"linear",T),g6t(a,n,o,"linear",T),o("title.text",i._dfltTitle.colorbar);var y=n.showticklabels?n.tickfont:A,E=Ry.extendFlat({},A,{family:y.family,size:Ry.bigFont(y.size)});Ry.coerceFont(o,"title.font",E),o("title.side",f?"top":"right")}});var Bu=W((rOr,Fve)=>{"use strict";var Cve=hn(),HG=tt(),b6t=RG(),_6t=VG(),Dve=Xx().isValid,w6t=xi().traceIs;function GG(e,t){var r=t.slice(0,t.length-1);return t?HG.nestedProperty(e,r).get()||{}:e}Fve.exports=function e(t,r,i,n,a){var o=a.prefix,s=a.cLetter,l="_module"in r,u=GG(t,o),c=GG(r,o),f=GG(r._template||{},o)||{},h=function(){return delete t.coloraxis,delete r.coloraxis,e(t,r,i,n,a)};if(l){var p=i._colorAxes||{},d=n(o+"coloraxis");if(d){var v=w6t(r,"contour")&&HG.nestedProperty(r,"contours.coloring").get()||"heatmap",m=p[d];m?(m[2].push(h),m[0]!==v&&(m[0]=!1,HG.warn(["Ignoring coloraxis:",d,"setting","as it is linked to incompatible colorscales."].join(" ")))):p[d]=[v,r,[h]];return}}var g=u[s+"min"],w=u[s+"max"],_=Cve(g)&&Cve(w)&&g{"use strict";var Lve=tt(),T6t=Ra(),Pve=IG(),A6t=Bu();Ive.exports=function(t,r){function i(f,h){return Lve.coerce(t,r,Pve,f,h)}i("colorscale.sequential"),i("colorscale.sequentialminus"),i("colorscale.diverging");var n=r._colorAxes,a,o;function s(f,h){return Lve.coerce(a,o,Pve.coloraxis,f,h)}for(var l in n){var u=n[l];if(u[0])a=t[l]||{},o=T6t.newContainer(r,l,"coloraxis"),o._name=l,A6t(a,o,r,s,{prefix:"",cLetter:"c"});else{for(var c=0;c{"use strict";var M6t=tt(),S6t=Sc().hasColorscale,E6t=Sc().extractOpts;zve.exports=function(t,r){function i(c,f){var h=c["_"+f];h!==void 0&&(c[f]=h)}function n(c,f){var h=f.container?M6t.nestedProperty(c,f.container).get():c;if(h)if(h.coloraxis)h._colorAx=r[h.coloraxis];else{var p=E6t(h),d=p.auto;(d||p.min===void 0)&&i(h,f.min),(d||p.max===void 0)&&i(h,f.max),p.autocolorscale&&i(h,"colorscale")}}for(var a=0;a{"use strict";var qve=hn(),jG=tt(),k6t=Sc().extractOpts;Ove.exports=function(t,r,i){var n=t._fullLayout,a=i.vals,o=i.containerStr,s=o?jG.nestedProperty(r,o).get():r,l=k6t(s),u=l.auto!==!1,c=l.min,f=l.max,h=l.mid,p=function(){return jG.aggNums(Math.min,null,a)},d=function(){return jG.aggNums(Math.max,null,a)};if(c===void 0?c=p():u&&(s._colorAx&&qve(c)?c=Math.min(c,p()):c=p()),f===void 0?f=d():u&&(s._colorAx&&qve(f)?f=Math.max(f,d()):f=d()),u&&h!==void 0&&(f-h>h-c?c=h-(f-h):f-h=0?v=n.colorscale.sequential:v=n.colorscale.sequentialminus,l._sync("colorscale",v)}}});var es=W((oOr,Nve)=>{"use strict";var KD=Xx(),Dw=Sc();Nve.exports={moduleType:"component",name:"colorscale",attributes:Fo(),layoutAttributes:IG(),supplyLayoutDefaults:Rve(),handleDefaults:Bu(),crossTraceDefaults:Bve(),calc:rf(),scales:KD.scales,defaultScale:KD.defaultScale,getScale:KD.get,isValidScale:KD.isValid,hasColorscale:Dw.hasColorscale,extractOpts:Dw.extractOpts,extractScale:Dw.extractScale,flipScale:Dw.flipScale,makeColorScaleFunc:Dw.makeColorScaleFunc,makeColorScaleFuncFromTrace:Dw.makeColorScaleFuncFromTrace}});var Wo=W((sOr,Vve)=>{"use strict";var Uve=tt(),C6t=Tc().isTypedArraySpec;Vve.exports={hasLines:function(e){return e.visible&&e.mode&&e.mode.indexOf("lines")!==-1},hasMarkers:function(e){return e.visible&&(e.mode&&e.mode.indexOf("markers")!==-1||e.type==="splom")},hasText:function(e){return e.visible&&e.mode&&e.mode.indexOf("text")!==-1},isBubble:function(e){var t=e.marker;return Uve.isPlainObject(t)&&(Uve.isArrayOrTypedArray(t.size)||C6t(t.size))}}});var MA=W((lOr,Gve)=>{"use strict";var D6t=hn();Gve.exports=function(t,r){r||(r=2);var i=t.marker,n=i.sizeref||1,a=i.sizemin||0,o=i.sizemode==="area"?function(s){return Math.sqrt(s/n)}:function(s){return s/n};return function(s){var l=o(s/r);return D6t(l)&&l>0?Math.max(l,a):0}}});var ah=W(Ec=>{"use strict";var SA=tt();Ec.getSubplot=function(e){return e.subplot||e.xaxis+e.yaxis||e.geo};Ec.isTraceInSubplots=function(e,t){if(e.type==="splom"){for(var r=e.xaxes||[],i=e.yaxes||[],n=0;n=0&&r.index{var $G={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},I6t=/([astvzqmhlc])([^astvzqmhlc]*)/gi,R6t=/-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/gi;function z6t(e){let t=[];return e.replace(I6t,(r,i,n)=>{let a=i.toLowerCase(),o=i,s=B6t(n);for(a==="m"&&s.length>2&&(t.push([o,...s.splice(0,2)]),a="l",o=o==="m"?"l":"L");;){if(s.length===$G[a])return t.push([o,...s]),"";if(s.length<$G[a])throw new Error("malformed path data");t.push([o,...s.splice(0,$G[a])])}}),t}function B6t(e){let t=e.match(R6t);return t?t.map(Number):[]}$ve.exports=z6t});var Qve=W((fOr,Jve)=>{"use strict";var q6t=WG(),Yr=function(e,t){return t?Math.round(e*(t=Math.pow(10,t)))/t:Math.round(e)},Gn="M0,0Z",Wve=Math.sqrt(2),zy=Math.sqrt(3),YG=Math.PI,XG=Math.cos,ZG=Math.sin;Jve.exports={circle:{n:0,f:function(e,t,r){if(Hn(t))return Gn;var i=Yr(e,2),n="M"+i+",0A"+i+","+i+" 0 1,1 0,-"+i+"A"+i+","+i+" 0 0,1 "+i+",0Z";return r?jn(t,r,n):n}},square:{n:1,f:function(e,t,r){if(Hn(t))return Gn;var i=Yr(e,2);return jn(t,r,"M"+i+","+i+"H-"+i+"V-"+i+"H"+i+"Z")}},diamond:{n:2,f:function(e,t,r){if(Hn(t))return Gn;var i=Yr(e*1.3,2);return jn(t,r,"M"+i+",0L0,"+i+"L-"+i+",0L0,-"+i+"Z")}},cross:{n:3,f:function(e,t,r){if(Hn(t))return Gn;var i=Yr(e*.4,2),n=Yr(e*1.2,2);return jn(t,r,"M"+n+","+i+"H"+i+"V"+n+"H-"+i+"V"+i+"H-"+n+"V-"+i+"H-"+i+"V-"+n+"H"+i+"V-"+i+"H"+n+"Z")}},x:{n:4,f:function(e,t,r){if(Hn(t))return Gn;var i=Yr(e*.8/Wve,2),n="l"+i+","+i,a="l"+i+",-"+i,o="l-"+i+",-"+i,s="l-"+i+","+i;return jn(t,r,"M0,"+i+n+a+o+a+o+s+o+s+n+s+n+"Z")}},"triangle-up":{n:5,f:function(e,t,r){if(Hn(t))return Gn;var i=Yr(e*2/zy,2),n=Yr(e/2,2),a=Yr(e,2);return jn(t,r,"M-"+i+","+n+"H"+i+"L0,-"+a+"Z")}},"triangle-down":{n:6,f:function(e,t,r){if(Hn(t))return Gn;var i=Yr(e*2/zy,2),n=Yr(e/2,2),a=Yr(e,2);return jn(t,r,"M-"+i+",-"+n+"H"+i+"L0,"+a+"Z")}},"triangle-left":{n:7,f:function(e,t,r){if(Hn(t))return Gn;var i=Yr(e*2/zy,2),n=Yr(e/2,2),a=Yr(e,2);return jn(t,r,"M"+n+",-"+i+"V"+i+"L-"+a+",0Z")}},"triangle-right":{n:8,f:function(e,t,r){if(Hn(t))return Gn;var i=Yr(e*2/zy,2),n=Yr(e/2,2),a=Yr(e,2);return jn(t,r,"M-"+n+",-"+i+"V"+i+"L"+a+",0Z")}},"triangle-ne":{n:9,f:function(e,t,r){if(Hn(t))return Gn;var i=Yr(e*.6,2),n=Yr(e*1.2,2);return jn(t,r,"M-"+n+",-"+i+"H"+i+"V"+n+"Z")}},"triangle-se":{n:10,f:function(e,t,r){if(Hn(t))return Gn;var i=Yr(e*.6,2),n=Yr(e*1.2,2);return jn(t,r,"M"+i+",-"+n+"V"+i+"H-"+n+"Z")}},"triangle-sw":{n:11,f:function(e,t,r){if(Hn(t))return Gn;var i=Yr(e*.6,2),n=Yr(e*1.2,2);return jn(t,r,"M"+n+","+i+"H-"+i+"V-"+n+"Z")}},"triangle-nw":{n:12,f:function(e,t,r){if(Hn(t))return Gn;var i=Yr(e*.6,2),n=Yr(e*1.2,2);return jn(t,r,"M-"+i+","+n+"V-"+i+"H"+n+"Z")}},pentagon:{n:13,f:function(e,t,r){if(Hn(t))return Gn;var i=Yr(e*.951,2),n=Yr(e*.588,2),a=Yr(-e,2),o=Yr(e*-.309,2),s=Yr(e*.809,2);return jn(t,r,"M"+i+","+o+"L"+n+","+s+"H-"+n+"L-"+i+","+o+"L0,"+a+"Z")}},hexagon:{n:14,f:function(e,t,r){if(Hn(t))return Gn;var i=Yr(e,2),n=Yr(e/2,2),a=Yr(e*zy/2,2);return jn(t,r,"M"+a+",-"+n+"V"+n+"L0,"+i+"L-"+a+","+n+"V-"+n+"L0,-"+i+"Z")}},hexagon2:{n:15,f:function(e,t,r){if(Hn(t))return Gn;var i=Yr(e,2),n=Yr(e/2,2),a=Yr(e*zy/2,2);return jn(t,r,"M-"+n+","+a+"H"+n+"L"+i+",0L"+n+",-"+a+"H-"+n+"L-"+i+",0Z")}},octagon:{n:16,f:function(e,t,r){if(Hn(t))return Gn;var i=Yr(e*.924,2),n=Yr(e*.383,2);return jn(t,r,"M-"+n+",-"+i+"H"+n+"L"+i+",-"+n+"V"+n+"L"+n+","+i+"H-"+n+"L-"+i+","+n+"V-"+n+"Z")}},star:{n:17,f:function(e,t,r){if(Hn(t))return Gn;var i=e*1.4,n=Yr(i*.225,2),a=Yr(i*.951,2),o=Yr(i*.363,2),s=Yr(i*.588,2),l=Yr(-i,2),u=Yr(i*-.309,2),c=Yr(i*.118,2),f=Yr(i*.809,2),h=Yr(i*.382,2);return jn(t,r,"M"+n+","+u+"H"+a+"L"+o+","+c+"L"+s+","+f+"L0,"+h+"L-"+s+","+f+"L-"+o+","+c+"L-"+a+","+u+"H-"+n+"L0,"+l+"Z")}},hexagram:{n:18,f:function(e,t,r){if(Hn(t))return Gn;var i=Yr(e*.66,2),n=Yr(e*.38,2),a=Yr(e*.76,2);return jn(t,r,"M-"+a+",0l-"+n+",-"+i+"h"+a+"l"+n+",-"+i+"l"+n+","+i+"h"+a+"l-"+n+","+i+"l"+n+","+i+"h-"+a+"l-"+n+","+i+"l-"+n+",-"+i+"h-"+a+"Z")}},"star-triangle-up":{n:19,f:function(e,t,r){if(Hn(t))return Gn;var i=Yr(e*zy*.8,2),n=Yr(e*.8,2),a=Yr(e*1.6,2),o=Yr(e*4,2),s="A "+o+","+o+" 0 0 1 ";return jn(t,r,"M-"+i+","+n+s+i+","+n+s+"0,-"+a+s+"-"+i+","+n+"Z")}},"star-triangle-down":{n:20,f:function(e,t,r){if(Hn(t))return Gn;var i=Yr(e*zy*.8,2),n=Yr(e*.8,2),a=Yr(e*1.6,2),o=Yr(e*4,2),s="A "+o+","+o+" 0 0 1 ";return jn(t,r,"M"+i+",-"+n+s+"-"+i+",-"+n+s+"0,"+a+s+i+",-"+n+"Z")}},"star-square":{n:21,f:function(e,t,r){if(Hn(t))return Gn;var i=Yr(e*1.1,2),n=Yr(e*2,2),a="A "+n+","+n+" 0 0 1 ";return jn(t,r,"M-"+i+",-"+i+a+"-"+i+","+i+a+i+","+i+a+i+",-"+i+a+"-"+i+",-"+i+"Z")}},"star-diamond":{n:22,f:function(e,t,r){if(Hn(t))return Gn;var i=Yr(e*1.4,2),n=Yr(e*1.9,2),a="A "+n+","+n+" 0 0 1 ";return jn(t,r,"M-"+i+",0"+a+"0,"+i+a+i+",0"+a+"0,-"+i+a+"-"+i+",0Z")}},"diamond-tall":{n:23,f:function(e,t,r){if(Hn(t))return Gn;var i=Yr(e*.7,2),n=Yr(e*1.4,2);return jn(t,r,"M0,"+n+"L"+i+",0L0,-"+n+"L-"+i+",0Z")}},"diamond-wide":{n:24,f:function(e,t,r){if(Hn(t))return Gn;var i=Yr(e*1.4,2),n=Yr(e*.7,2);return jn(t,r,"M0,"+n+"L"+i+",0L0,-"+n+"L-"+i+",0Z")}},hourglass:{n:25,f:function(e,t,r){if(Hn(t))return Gn;var i=Yr(e,2);return jn(t,r,"M"+i+","+i+"H-"+i+"L"+i+",-"+i+"H-"+i+"Z")},noDot:!0},bowtie:{n:26,f:function(e,t,r){if(Hn(t))return Gn;var i=Yr(e,2);return jn(t,r,"M"+i+","+i+"V-"+i+"L-"+i+","+i+"V-"+i+"Z")},noDot:!0},"circle-cross":{n:27,f:function(e,t,r){if(Hn(t))return Gn;var i=Yr(e,2);return jn(t,r,"M0,"+i+"V-"+i+"M"+i+",0H-"+i+"M"+i+",0A"+i+","+i+" 0 1,1 0,-"+i+"A"+i+","+i+" 0 0,1 "+i+",0Z")},needLine:!0,noDot:!0},"circle-x":{n:28,f:function(e,t,r){if(Hn(t))return Gn;var i=Yr(e,2),n=Yr(e/Wve,2);return jn(t,r,"M"+n+","+n+"L-"+n+",-"+n+"M"+n+",-"+n+"L-"+n+","+n+"M"+i+",0A"+i+","+i+" 0 1,1 0,-"+i+"A"+i+","+i+" 0 0,1 "+i+",0Z")},needLine:!0,noDot:!0},"square-cross":{n:29,f:function(e,t,r){if(Hn(t))return Gn;var i=Yr(e,2);return jn(t,r,"M0,"+i+"V-"+i+"M"+i+",0H-"+i+"M"+i+","+i+"H-"+i+"V-"+i+"H"+i+"Z")},needLine:!0,noDot:!0},"square-x":{n:30,f:function(e,t,r){if(Hn(t))return Gn;var i=Yr(e,2);return jn(t,r,"M"+i+","+i+"L-"+i+",-"+i+"M"+i+",-"+i+"L-"+i+","+i+"M"+i+","+i+"H-"+i+"V-"+i+"H"+i+"Z")},needLine:!0,noDot:!0},"diamond-cross":{n:31,f:function(e,t,r){if(Hn(t))return Gn;var i=Yr(e*1.3,2);return jn(t,r,"M"+i+",0L0,"+i+"L-"+i+",0L0,-"+i+"ZM0,-"+i+"V"+i+"M-"+i+",0H"+i)},needLine:!0,noDot:!0},"diamond-x":{n:32,f:function(e,t,r){if(Hn(t))return Gn;var i=Yr(e*1.3,2),n=Yr(e*.65,2);return jn(t,r,"M"+i+",0L0,"+i+"L-"+i+",0L0,-"+i+"ZM-"+n+",-"+n+"L"+n+","+n+"M-"+n+","+n+"L"+n+",-"+n)},needLine:!0,noDot:!0},"cross-thin":{n:33,f:function(e,t,r){if(Hn(t))return Gn;var i=Yr(e*1.4,2);return jn(t,r,"M0,"+i+"V-"+i+"M"+i+",0H-"+i)},needLine:!0,noDot:!0,noFill:!0},"x-thin":{n:34,f:function(e,t,r){if(Hn(t))return Gn;var i=Yr(e,2);return jn(t,r,"M"+i+","+i+"L-"+i+",-"+i+"M"+i+",-"+i+"L-"+i+","+i)},needLine:!0,noDot:!0,noFill:!0},asterisk:{n:35,f:function(e,t,r){if(Hn(t))return Gn;var i=Yr(e*1.2,2),n=Yr(e*.85,2);return jn(t,r,"M0,"+i+"V-"+i+"M"+i+",0H-"+i+"M"+n+","+n+"L-"+n+",-"+n+"M"+n+",-"+n+"L-"+n+","+n)},needLine:!0,noDot:!0,noFill:!0},hash:{n:36,f:function(e,t,r){if(Hn(t))return Gn;var i=Yr(e/2,2),n=Yr(e,2);return jn(t,r,"M"+i+","+n+"V-"+n+"M"+(i-n)+",-"+n+"V"+n+"M"+n+","+i+"H-"+n+"M-"+n+","+(i-n)+"H"+n)},needLine:!0,noFill:!0},"y-up":{n:37,f:function(e,t,r){if(Hn(t))return Gn;var i=Yr(e*1.2,2),n=Yr(e*1.6,2),a=Yr(e*.8,2);return jn(t,r,"M-"+i+","+a+"L0,0M"+i+","+a+"L0,0M0,-"+n+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-down":{n:38,f:function(e,t,r){if(Hn(t))return Gn;var i=Yr(e*1.2,2),n=Yr(e*1.6,2),a=Yr(e*.8,2);return jn(t,r,"M-"+i+",-"+a+"L0,0M"+i+",-"+a+"L0,0M0,"+n+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-left":{n:39,f:function(e,t,r){if(Hn(t))return Gn;var i=Yr(e*1.2,2),n=Yr(e*1.6,2),a=Yr(e*.8,2);return jn(t,r,"M"+a+","+i+"L0,0M"+a+",-"+i+"L0,0M-"+n+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-right":{n:40,f:function(e,t,r){if(Hn(t))return Gn;var i=Yr(e*1.2,2),n=Yr(e*1.6,2),a=Yr(e*.8,2);return jn(t,r,"M-"+a+","+i+"L0,0M-"+a+",-"+i+"L0,0M"+n+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"line-ew":{n:41,f:function(e,t,r){if(Hn(t))return Gn;var i=Yr(e*1.4,2);return jn(t,r,"M"+i+",0H-"+i)},needLine:!0,noDot:!0,noFill:!0},"line-ns":{n:42,f:function(e,t,r){if(Hn(t))return Gn;var i=Yr(e*1.4,2);return jn(t,r,"M0,"+i+"V-"+i)},needLine:!0,noDot:!0,noFill:!0},"line-ne":{n:43,f:function(e,t,r){if(Hn(t))return Gn;var i=Yr(e,2);return jn(t,r,"M"+i+",-"+i+"L-"+i+","+i)},needLine:!0,noDot:!0,noFill:!0},"line-nw":{n:44,f:function(e,t,r){if(Hn(t))return Gn;var i=Yr(e,2);return jn(t,r,"M"+i+","+i+"L-"+i+",-"+i)},needLine:!0,noDot:!0,noFill:!0},"arrow-up":{n:45,f:function(e,t,r){if(Hn(t))return Gn;var i=Yr(e,2),n=Yr(e*2,2);return jn(t,r,"M0,0L-"+i+","+n+"H"+i+"Z")},backoff:1,noDot:!0},"arrow-down":{n:46,f:function(e,t,r){if(Hn(t))return Gn;var i=Yr(e,2),n=Yr(e*2,2);return jn(t,r,"M0,0L-"+i+",-"+n+"H"+i+"Z")},noDot:!0},"arrow-left":{n:47,f:function(e,t,r){if(Hn(t))return Gn;var i=Yr(e*2,2),n=Yr(e,2);return jn(t,r,"M0,0L"+i+",-"+n+"V"+n+"Z")},noDot:!0},"arrow-right":{n:48,f:function(e,t,r){if(Hn(t))return Gn;var i=Yr(e*2,2),n=Yr(e,2);return jn(t,r,"M0,0L-"+i+",-"+n+"V"+n+"Z")},noDot:!0},"arrow-bar-up":{n:49,f:function(e,t,r){if(Hn(t))return Gn;var i=Yr(e,2),n=Yr(e*2,2);return jn(t,r,"M-"+i+",0H"+i+"M0,0L-"+i+","+n+"H"+i+"Z")},backoff:1,needLine:!0,noDot:!0},"arrow-bar-down":{n:50,f:function(e,t,r){if(Hn(t))return Gn;var i=Yr(e,2),n=Yr(e*2,2);return jn(t,r,"M-"+i+",0H"+i+"M0,0L-"+i+",-"+n+"H"+i+"Z")},needLine:!0,noDot:!0},"arrow-bar-left":{n:51,f:function(e,t,r){if(Hn(t))return Gn;var i=Yr(e*2,2),n=Yr(e,2);return jn(t,r,"M0,-"+n+"V"+n+"M0,0L"+i+",-"+n+"V"+n+"Z")},needLine:!0,noDot:!0},"arrow-bar-right":{n:52,f:function(e,t,r){if(Hn(t))return Gn;var i=Yr(e*2,2),n=Yr(e,2);return jn(t,r,"M0,-"+n+"V"+n+"M0,0L-"+i+",-"+n+"V"+n+"Z")},needLine:!0,noDot:!0},arrow:{n:53,f:function(e,t,r){if(Hn(t))return Gn;var i=YG/2.5,n=2*e*XG(i),a=2*e*ZG(i);return jn(t,r,"M0,0L"+-n+","+a+"L"+n+","+a+"Z")},backoff:.9,noDot:!0},"arrow-wide":{n:54,f:function(e,t,r){if(Hn(t))return Gn;var i=YG/4,n=2*e*XG(i),a=2*e*ZG(i);return jn(t,r,"M0,0L"+-n+","+a+"A "+2*e+","+2*e+" 0 0 1 "+n+","+a+"Z")},backoff:.4,noDot:!0}};function Hn(e){return e===null}var Yve,Xve,Zve,Kve;function jn(e,t,r){if((!e||e%360===0)&&!t)return r;if(Zve===e&&Kve===t&&Yve===r)return Xve;Zve=e,Kve=t,Yve=r;function i(m,g){var w=XG(m),_=ZG(m),b=g[0],S=g[1]+(t||0);return[b*w-S*_,b*_+S*w]}for(var n=e/180*YG,a=0,o=0,s=q6t(r),l="",u=0;u{"use strict";var qu=gi(),wo=tt(),O6t=wo.numberFormat,By=hn(),QD=xi(),yu=ti(),N6t=es(),kA=wo.strTranslate,e7=ao(),U6t=(md(),Pt(gd)),V6t=(Jl(),Pt(Kl)),G6t=V6t.LINE_SPACING,u1e=(Ng(),Pt(Og)).DESELECTDIM,H6t=Wo(),j6t=MA(),$6t=ah().appendArrayPointValue,ui={};x1e.exports=ui;ui.font=function(e,t){var r=t.variant,i=t.style,n=t.weight,a=t.color,o=t.size,s=t.family,l=t.shadow,u=t.lineposition,c=t.textcase;s&&e.style("font-family",s),o+1&&e.style("font-size",o+"px"),a&&e.call(yu.fill,a),n&&e.style("font-weight",n),i&&e.style("font-style",i),r&&e.style("font-variant",r),c&&e.style("text-transform",KG(Y6t(c))),l&&e.style("text-shadow",l==="auto"?e7.makeTextShadow(yu.contrast(a)):KG(l)),u&&e.style("text-decoration-line",KG(X6t(u)))};function KG(e){return e==="none"?void 0:e}var W6t={normal:"none",lower:"lowercase",upper:"uppercase","word caps":"capitalize"};function Y6t(e){return W6t[e]}function X6t(e){return e.replace("under","underline").replace("over","overline").replace("through","line-through").split("+").join(" ")}ui.setPosition=function(e,t,r){e.attr("x",t).attr("y",r)};ui.setSize=function(e,t,r){e.attr("width",t).attr("height",r)};ui.setRect=function(e,t,r,i,n){e.call(ui.setPosition,t,r).call(ui.setSize,i,n)};ui.translatePoint=function(e,t,r,i){var n=r.c2p(e.x),a=i.c2p(e.y);if(By(n)&&By(a)&&t.node())t.node().nodeName==="text"?t.attr("x",n).attr("y",a):t.attr("transform",kA(n,a));else return!1;return!0};ui.translatePoints=function(e,t,r){e.each(function(i){var n=qu.select(this);ui.translatePoint(i,n,t,r)})};ui.hideOutsideRangePoint=function(e,t,r,i,n,a){t.attr("display",r.isPtWithinRange(e,n)&&i.isPtWithinRange(e,a)?null:"none")};ui.hideOutsideRangePoints=function(e,t){if(t._hasClipOnAxisFalse){var r=t.xaxis,i=t.yaxis;e.each(function(n){var a=n[0].trace,o=a.xcalendar,s=a.ycalendar,l=QD.traceIs(a,"bar-like")?".bartext":".point,.textpoint";e.selectAll(l).each(function(u){ui.hideOutsideRangePoint(u,qu.select(this),r,i,o,s)})})}};ui.crispRound=function(e,t,r){return!t||!By(t)?r||0:e._context.staticPlot?t:t<1?1:Math.round(t)};ui.singleLineStyle=function(e,t,r,i,n){t.style("fill","none");var a=(((e||[])[0]||{}).trace||{}).line||{},o=r||a.width||0,s=n||a.dash||"";yu.stroke(t,i||a.color),ui.dashLine(t,s,o)};ui.lineGroupStyle=function(e,t,r,i){e.style("fill","none").each(function(n){var a=(((n||[])[0]||{}).trace||{}).line||{},o=t||a.width||0,s=i||a.dash||"";qu.select(this).call(yu.stroke,r||a.color).call(ui.dashLine,s,o)})};ui.dashLine=function(e,t,r){r=+r||0,t=ui.dashStyle(t,r),e.style({"stroke-dasharray":t,"stroke-width":r+"px"})};ui.dashStyle=function(e,t){t=+t||1;var r=Math.max(t,3);return e==="solid"?e="":e==="dot"?e=r+"px,"+r+"px":e==="dash"?e=3*r+"px,"+3*r+"px":e==="longdash"?e=5*r+"px,"+5*r+"px":e==="dashdot"?e=3*r+"px,"+r+"px,"+r+"px,"+r+"px":e==="longdashdot"&&(e=5*r+"px,"+2*r+"px,"+r+"px,"+2*r+"px"),e};function c1e(e,t,r,i){var n=t.fillpattern,a=t.fillgradient,o=ui.getPatternAttr,s=n&&(o(n.shape,0,"")||o(n.path,0,""));if(s){var l=o(n.bgcolor,0,null),u=o(n.fgcolor,0,null),c=n.fgopacity,f=o(n.size,0,8),h=o(n.solidity,0,.3),p=t.uid;ui.pattern(e,"point",r,p,s,f,h,void 0,n.fillmode,l,u,c)}else if(a&&a.type!=="none"){var d=a.type,v="scatterfill-"+t.uid;if(i&&(v="legendfill-"+t.uid),!i&&(a.start!==void 0||a.stop!==void 0)){var m,g;d==="horizontal"?(m={x:a.start,y:0},g={x:a.stop,y:0}):d==="vertical"&&(m={x:0,y:a.start},g={x:0,y:a.stop}),m.x=t._xA.c2p(m.x===void 0?t._extremes.x.min[0].val:m.x,!0),m.y=t._yA.c2p(m.y===void 0?t._extremes.y.min[0].val:m.y,!0),g.x=t._xA.c2p(g.x===void 0?t._extremes.x.max[0].val:g.x,!0),g.y=t._yA.c2p(g.y===void 0?t._extremes.y.max[0].val:g.y,!0),e.call(d1e,r,v,"linear",a.colorscale,"fill",m,g,!0,!1)}else d==="horizontal"&&(d=d+"reversed"),e.call(ui.gradient,r,v,d,a.colorscale,"fill")}else t.fillcolor&&e.call(yu.fill,t.fillcolor)}ui.singleFillStyle=function(e,t){var r=qu.select(e.node()),i=r.data(),n=((i[0]||[])[0]||{}).trace||{};c1e(e,n,t,!1)};ui.fillGroupStyle=function(e,t,r){e.style("stroke-width",0).each(function(i){var n=qu.select(this);i[0].trace&&c1e(n,i[0].trace,t,r)})};var e1e=Qve();ui.symbolNames=[];ui.symbolFuncs=[];ui.symbolBackOffs=[];ui.symbolNeedLines={};ui.symbolNoDot={};ui.symbolNoFill={};ui.symbolList=[];Object.keys(e1e).forEach(function(e){var t=e1e[e],r=t.n;ui.symbolList.push(r,String(r),e,r+100,String(r+100),e+"-open"),ui.symbolNames[r]=e,ui.symbolFuncs[r]=t.f,ui.symbolBackOffs[r]=t.backoff||0,t.needLine&&(ui.symbolNeedLines[r]=!0),t.noDot?ui.symbolNoDot[r]=!0:ui.symbolList.push(r+200,String(r+200),e+"-dot",r+300,String(r+300),e+"-open-dot"),t.noFill&&(ui.symbolNoFill[r]=!0)});var Z6t=ui.symbolNames.length,K6t="M0,0.5L0.5,0L0,-0.5L-0.5,0Z";ui.symbolNumber=function(e){if(By(e))e=+e;else if(typeof e=="string"){var t=0;e.indexOf("-open")>0&&(t=100,e=e.replace("-open","")),e.indexOf("-dot")>0&&(t+=200,e=e.replace("-dot","")),e=ui.symbolNames.indexOf(e),e>=0&&(e+=t)}return e%100>=Z6t||e>=400?0:Math.floor(Math.max(e,0))};function f1e(e,t,r,i){var n=e%100;return ui.symbolFuncs[n](t,r,i)+(e>=200?K6t:"")}var t1e=O6t("~f"),h1e={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}};ui.gradient=function(e,t,r,i,n,a){var o=h1e[i];return d1e(e,t,r,o.type,n,a,o.start,o.stop,!1,o.reversed)};function d1e(e,t,r,i,n,a,o,s,l,u){var c=n.length,f;i==="linear"?f={node:"linearGradient",attrs:{x1:o.x,y1:o.y,x2:s.x,y2:s.y,gradientUnits:l?"userSpaceOnUse":"objectBoundingBox"},reversed:u}:i==="radial"&&(f={node:"radialGradient",reversed:u});for(var h=new Array(c),p=0;p=0&&e.i===void 0&&(e.i=a.i),t.style("opacity",i.selectedOpacityFn?i.selectedOpacityFn(e):e.mo===void 0?o.opacity:e.mo),i.ms2mrc){var l;e.ms==="various"||o.size==="various"?l=3:l=i.ms2mrc(e.ms),e.mrc=l,i.selectedSizeFn&&(l=e.mrc=i.selectedSizeFn(e));var u=ui.symbolNumber(e.mx||o.symbol)||0;e.om=u%200>=100;var c=nH(e,r),f=iH(e,r);t.attr("d",f1e(u,l,c,f))}var h=!1,p,d,v;if(e.so)v=s.outlierwidth,d=s.outliercolor,p=o.outliercolor;else{var m=(s||{}).width;v=(e.mlw+1||m+1||(e.trace?(e.trace.marker.line||{}).width:0)+1)-1||0,"mlc"in e?d=e.mlcc=i.lineScale(e.mlc):wo.isArrayOrTypedArray(s.color)?d=yu.defaultLine:d=s.color,wo.isArrayOrTypedArray(o.color)&&(p=yu.defaultLine,h=!0),"mc"in e?p=e.mcc=i.markerScale(e.mc):p=o.color||o.colors||"rgba(0,0,0,0)",i.selectedColorFn&&(p=i.selectedColorFn(e))}let g=e.mld||(s||{}).dash;if(g&&ui.dashLine(t,g,v),e.om)t.call(yu.stroke,p).style({"stroke-width":(v||1)+"px",fill:"none"});else{t.style("stroke-width",(e.isBlank?0:v)+"px");var w=o.gradient,_=e.mgt;_?h=!0:_=w&&w.type,wo.isArrayOrTypedArray(_)&&(_=_[0],h1e[_]||(_=0));var b=o.pattern,S=ui.getPatternAttr,x=b&&(S(b.shape,e.i,"")||S(b.path,e.i,""));if(_&&_!=="none"){var A=e.mgc;A?h=!0:A=w.color;var T=r.uid;h&&(T+="-"+e.i),ui.gradient(t,n,T,_,[[0,A],[1,p]],"fill")}else if(x){var y=!1,E=b.fgcolor;!E&&a&&a.color&&(E=a.color,y=!0);var M=S(E,e.i,a&&a.color||null),C=S(b.bgcolor,e.i,null),k=b.fgopacity,D=S(b.size,e.i,8),F=S(b.solidity,e.i,.3);y=y||e.mcc||wo.isArrayOrTypedArray(b.shape)||wo.isArrayOrTypedArray(b.path)||wo.isArrayOrTypedArray(b.bgcolor)||wo.isArrayOrTypedArray(b.fgcolor)||wo.isArrayOrTypedArray(b.size)||wo.isArrayOrTypedArray(b.solidity);var P=r.uid;y&&(P+="-"+e.i),ui.pattern(t,"point",n,P,x,D,F,e.mcc,b.fillmode,C,M,k)}else wo.isArrayOrTypedArray(p)?yu.fill(t,p[e.i]):yu.fill(t,p);v&&yu.stroke(t,d)}};ui.makePointStyleFns=function(e){var t={},r=e.marker;return t.markerScale=ui.tryColorscale(r,""),t.lineScale=ui.tryColorscale(r,"line"),QD.traceIs(e,"symbols")&&(t.ms2mrc=H6t.isBubble(e)?j6t(e):function(){return(r.size||6)/2}),e.selectedpoints&&wo.extendFlat(t,ui.makeSelectedPointStyleFns(e)),t};ui.makeSelectedPointStyleFns=function(e){var t={},r=e.selected||{},i=e.unselected||{},n=e.marker||{},a=r.marker||{},o=i.marker||{},s=n.opacity,l=a.opacity,u=o.opacity,c=l!==void 0,f=u!==void 0;(wo.isArrayOrTypedArray(s)||c||f)&&(t.selectedOpacityFn=function(b){var S=b.mo===void 0?n.opacity:b.mo;return b.selected?c?l:S:f?u:u1e*S});var h=n.color,p=a.color,d=o.color;(p||d)&&(t.selectedColorFn=function(b){var S=b.mcc||h;return b.selected?p||S:d||S});var v=n.size,m=a.size,g=o.size,w=m!==void 0,_=g!==void 0;return QD.traceIs(e,"symbols")&&(w||_)&&(t.selectedSizeFn=function(b){var S=b.mrc||v/2;return b.selected?w?m/2:S:_?g/2:S}),t};ui.makeSelectedTextStyleFns=function(e){var t={},r=e.selected||{},i=e.unselected||{},n=e.textfont||{},a=r.textfont||{},o=i.textfont||{},s=n.color,l=a.color,u=o.color;return t.selectedTextColorFn=function(c){var f=c.tc||s;return c.selected?l||f:u||(l?f:yu.addOpacity(f,u1e))},t};ui.selectedPointStyle=function(e,t){if(!(!e.size()||!t.selectedpoints)){var r=ui.makeSelectedPointStyleFns(t),i=t.marker||{},n=[];r.selectedOpacityFn&&n.push(function(a,o){a.style("opacity",r.selectedOpacityFn(o))}),r.selectedColorFn&&n.push(function(a,o){yu.fill(a,r.selectedColorFn(o))}),r.selectedSizeFn&&n.push(function(a,o){var s=o.mx||i.symbol||0,l=r.selectedSizeFn(o);a.attr("d",f1e(ui.symbolNumber(s),l,nH(o,t),iH(o,t))),o.mrc2=l}),n.length&&e.each(function(a){for(var o=qu.select(this),s=0;s0?r:0}ui.textPointStyle=function(e,t,r){if(e.size()){var i;if(t.selectedpoints){var n=ui.makeSelectedTextStyleFns(t);i=n.selectedTextColorFn}var a=t.texttemplate,o=r._fullLayout;e.each(function(s){var l=qu.select(this),u=a?wo.extractOption(s,t,"txt","texttemplate"):wo.extractOption(s,t,"tx","text");if(!u&&u!==0){l.remove();return}if(a){var c=t._module.formatLabels,f=c?c(s,t,o):{},h={};$6t(h,t,s.i),u=wo.texttemplateString({data:[h,s,t._meta],fallback:t.texttemplatefallback,labels:f,locale:o._d3locale,template:u})}var p=s.tp||t.textposition,d=v1e(s,t),v=i?i(s):s.tc||t.textfont.color;l.call(ui.font,{family:s.tf||t.textfont.family,weight:s.tw||t.textfont.weight,style:s.ty||t.textfont.style,variant:s.tv||t.textfont.variant,textcase:s.tC||t.textfont.textcase,lineposition:s.tE||t.textfont.lineposition,shadow:s.tS||t.textfont.shadow,size:d,color:v}).text(u).call(e7.convertToTspans,r).call(p1e,p,d,s.mrc)})}};ui.selectedTextStyle=function(e,t){if(!(!e.size()||!t.selectedpoints)){var r=ui.makeSelectedTextStyleFns(t);e.each(function(i){var n=qu.select(this),a=r.selectedTextColorFn(i),o=i.tp||t.textposition,s=v1e(i,t);yu.fill(n,a);var l=QD.traceIs(t,"bar-like");p1e(n,o,s,i.mrc2||i.mrc,l)})}};var r1e=.5;ui.smoothopen=function(e,t){if(e.length<3)return"M"+e.join("L");var r="M"+e[0],i=[],n;for(n=1;n=l||b>=c&&b<=l)&&(S<=f&&S>=u||S>=f&&S<=u)&&(e=[b,S])}return e}ui.applyBackoff=y1e;ui.makeTester=function(){var e=wo.ensureSingleById(qu.select("body"),"svg","js-plotly-tester",function(r){r.attr(U6t.svgAttrs).style({position:"absolute",left:"-10000px",top:"-10000px",width:"9000px",height:"9000px","z-index":"1"})}),t=wo.ensureSingle(e,"path","js-reference-point",function(r){r.attr("d","M0,0H1V1H0Z").style({"stroke-width":0,fill:"black"})});ui.tester=e,ui.testref=t};ui.savedBBoxes={};var QG=0,eAt=1e4;ui.bBox=function(e,t,r){r||(r=i1e(e));var i;if(r){if(i=ui.savedBBoxes[r],i)return wo.extendFlat({},i)}else if(e.childNodes.length===1){var n=e.childNodes[0];if(r=i1e(n),r){var a=+n.getAttribute("x")||0,o=+n.getAttribute("y")||0,s=n.getAttribute("transform");if(!s){var l=ui.bBox(n,!1,r);return a&&(l.left+=a,l.right+=a),o&&(l.top+=o,l.bottom+=o),l}if(r+="~"+a+"~"+o+"~"+s,i=ui.savedBBoxes[r],i)return wo.extendFlat({},i)}}var u,c;t?u=e:(c=ui.tester.node(),u=e.cloneNode(!0),c.appendChild(u)),qu.select(u).attr("transform",null).call(e7.positionText,0,0);var f=u.getBoundingClientRect(),h=ui.testref.node().getBoundingClientRect();t||c.removeChild(u);var p={height:f.height,width:f.width,left:f.left-h.left,top:f.top-h.top,right:f.right-h.left,bottom:f.bottom-h.top};return QG>=eAt&&(ui.savedBBoxes={},QG=0),r&&(ui.savedBBoxes[r]=p),QG++,wo.extendFlat({},p)};function i1e(e){var t=e.getAttribute("data-unformatted");if(t!==null)return t+e.getAttribute("data-math")+e.getAttribute("text-anchor")+e.getAttribute("style")}ui.setClipUrl=function(e,t,r){e.attr("clip-path",rH(t,r))};function rH(e,t){if(!e)return null;var r=t._context,i=r._exportedPlot?"":r._baseUrl||"";return i?"url('"+i+"#"+e+"')":"url(#"+e+")"}ui.getTranslate=function(e){var t=/.*\btranslate\((-?\d*\.?\d*)[^-\d]*(-?\d*\.?\d*)[^\d].*/,r=e.attr?"attr":"getAttribute",i=e[r]("transform")||"",n=i.replace(t,function(a,o,s){return[o,s].join(" ")}).split(" ");return{x:+n[0]||0,y:+n[1]||0}};ui.setTranslate=function(e,t,r){var i=/(\btranslate\(.*?\);?)/,n=e.attr?"attr":"getAttribute",a=e.attr?"attr":"setAttribute",o=e[n]("transform")||"";return t=t||0,r=r||0,o=o.replace(i,"").trim(),o+=kA(t,r),o=o.trim(),e[a]("transform",o),o};ui.getScale=function(e){var t=/.*\bscale\((\d*\.?\d*)[^\d]*(\d*\.?\d*)[^\d].*/,r=e.attr?"attr":"getAttribute",i=e[r]("transform")||"",n=i.replace(t,function(a,o,s){return[o,s].join(" ")}).split(" ");return{x:+n[0]||1,y:+n[1]||1}};ui.setScale=function(e,t,r){var i=/(\bscale\(.*?\);?)/,n=e.attr?"attr":"getAttribute",a=e.attr?"attr":"setAttribute",o=e[n]("transform")||"";return t=t||1,r=r||1,o=o.replace(i,"").trim(),o+="scale("+t+","+r+")",o=o.trim(),e[a]("transform",o),o};var tAt=/\s*sc.*/;ui.setPointGroupScale=function(e,t,r){if(t=t||1,r=r||1,!!e){var i=t===1&&r===1?"":"scale("+t+","+r+")";e.each(function(){var n=(this.getAttribute("transform")||"").replace(tAt,"");n+=i,n=n.trim(),this.setAttribute("transform",n)})}};var rAt=/translate\([^)]*\)\s*$/;ui.setTextPointsScale=function(e,t,r){e&&e.each(function(){var i,n=qu.select(this),a=n.select("text");if(a.node()){var o=parseFloat(a.attr("x")||0),s=parseFloat(a.attr("y")||0),l=(n.attr("transform")||"").match(rAt);t===1&&r===1?i=[]:i=[kA(o,s),"scale("+t+","+r+")",kA(-o,-s)],l&&i.push(l),n.attr("transform",i.join(""))}})};function iH(e,t){var r;return e&&(r=e.mf),r===void 0&&(r=t.marker&&t.marker.standoff||0),!t._geo&&!t._xA?-r:r}ui.getMarkerStandoff=iH;var EA=Math.atan2,cb=Math.cos,Lw=Math.sin;function n1e(e,t){var r=t[0],i=t[1];return[r*cb(e)-i*Lw(e),r*Lw(e)+i*cb(e)]}var a1e,o1e,s1e,l1e,eH,tH;function nH(e,t){var r=e.ma;r===void 0&&(r=t.marker.angle,(!By(r)||wo.isArrayOrTypedArray(r))&&(r=0));var i,n,a=t.marker.angleref;if(a==="previous"||a==="north"){if(t._geo){var o=t._geo.project(e.lonlat);i=o[0],n=o[1]}else{var s=t._xA,l=t._yA;if(s&&l)i=s.c2p(e.x),n=l.c2p(e.y);else return 90}if(t._geo){var u=e.lonlat[0],c=e.lonlat[1],f=t._geo.project([u,c+1e-5]),h=t._geo.project([u+1e-5,c]),p=EA(h[1]-n,h[0]-i),d=EA(f[1]-n,f[0]-i),v;if(a==="north")v=r/180*Math.PI;else if(a==="previous"){var m=u/180*Math.PI,g=c/180*Math.PI,w=a1e/180*Math.PI,_=o1e/180*Math.PI,b=w-m,S=cb(_)*Lw(b),x=Lw(_)*cb(g)-cb(_)*Lw(g)*cb(b);v=-EA(S,x)-Math.PI,a1e=u,o1e=c}var A=n1e(p,[cb(v),0]),T=n1e(d,[Lw(v),0]);r=EA(A[1]+T[1],A[0]+T[0])/Math.PI*180,a==="previous"&&!(tH===t.uid&&e.i===eH+1)&&(r=null)}if(a==="previous"&&!t._geo)if(tH===t.uid&&e.i===eH+1&&By(i)&&By(n)){var y=i-s1e,E=n-l1e,M=t.line&&t.line.shape||"",C=M.slice(M.length-1);C==="h"&&(E=0),C==="v"&&(y=0),r+=EA(E,y)/Math.PI*180+90}else r=null}return s1e=i,l1e=n,eH=e.i,tH=t.uid,r}ui.getMarkerAngle=nH});var pb=W((dOr,T1e)=>{"use strict";var Pw=gi(),iAt=hn(),nAt=Qo(),aH=xi(),db=tt(),b1e=db.strTranslate,t7=Qi(),r7=ti(),Iw=ao(),_1e=(Ng(),Pt(Og)),aAt=(Jl(),Pt(Kl)).OPPOSITE_SIDE,w1e=/ [XY][0-9]* /,oH=1.6,sH=1.6;function oAt(e,t,r){var i=e._fullLayout,n=r.propContainer,a=r.propName,o=r.placeholder,s=r.traceIndex,l=r.avoid||{},u=r.attributes,c=r.transform,f=r.containerGroup,h=1,p=n.title,d=(p&&p.text?p.text:"").trim(),v=!1,m=p&&p.font?p.font:{},g=m.family,w=m.size,_=m.color,b=m.weight,S=m.style,x=m.variant,A=m.textcase,T=m.lineposition,y=m.shadow,E=r.subtitlePropName,M=!!E,C=r.subtitlePlaceholder,k=(n.title||{}).subtitle||{text:"",font:{}},D=(k.text||"").trim(),F=!1,P=1,R=k.font,L=R.family,I=R.size,B=R.color,O=R.weight,$=R.style,X=R.variant,K=R.textcase,G=R.lineposition,q=R.shadow,J;a==="title.text"?J="titleText":a.indexOf("axis")!==-1?J="axisTitleText":a.indexOf("colorbar")!==-1&&(J="colorbarTitleText");var N=e._context.edits[J];function V(be,fe){return be===void 0||fe===void 0?!1:be.replace(w1e," % ")===fe.replace(w1e," % ")}d===""?h=0:V(d,o)&&(N||(d=""),h=.2,v=!0),M&&(D===""?P=0:V(D,C)&&(N||(D=""),P=.2,F=!0)),r._meta?d=db.templateString(d,r._meta):i._meta&&(d=db.templateString(d,i._meta));var Y=d||D||N,H;f||(f=db.ensureSingle(i._infolayer,"g","g-"+t),H=i._hColorbarMoveTitle);var j=f.selectAll("text."+t).data(Y?[0]:[]);j.enter().append("text"),j.text(d).attr("class",t),j.exit().remove();var Q=null,te=t+"-subtitle",ue=D||N;if(M&&(Q=f.selectAll("text."+te).data(ue?[0]:[]),Q.enter().append("text"),Q.text(D).attr("class",te),Q.exit().remove()),!Y)return f;function ge(be,fe){db.syncOrAsync([Ee,xe],{title:be,subtitle:fe})}function Ee(be){var fe=be.title,ee=be.subtitle,ae;!c&&H&&(c={}),c?(ae="",c.rotate&&(ae+="rotate("+[c.rotate,u.x,u.y]+")"),(c.offset||H)&&(ae+=b1e(0,(c.offset||0)-(H||0)))):ae=null,fe.attr("transform",ae);function _e(we){if(we){var me=Pw.select(we.node().parentNode).select("."+te);if(!me.empty()){var Le=we.node().getBBox();if(Le.height){var Ne=Le.y+Le.height+oH*I;me.attr("y",Ne)}}}}if(fe.style("opacity",h*r7.opacity(_)).call(t7.font,{color:r7.rgb(_),size:Pw.round(w,2),family:g,weight:b,style:S,variant:x,textcase:A,shadow:y,lineposition:T}).attr(u).call(Iw.convertToTspans,e,_e),ee&&!ee.empty()){var re=f.select("."+t+"-math-group"),pe=fe.node().getBBox(),Te=re.node()?re.node().getBBox():void 0,Ce=Te?Te.y+Te.height+oH*I:pe.y+pe.height+sH*I,ze=db.extendFlat({},u,{y:Ce});ee.attr("transform",ae),ee.style("opacity",P*r7.opacity(B)).call(t7.font,{color:r7.rgb(B),size:Pw.round(I,2),family:L,weight:O,style:$,variant:X,textcase:K,shadow:q,lineposition:G}).attr(ze).call(Iw.convertToTspans,e)}return nAt.previousPromises(e)}function xe(be){var fe=be.title,ee=Pw.select(fe.node().parentNode);if(l&&l.selection&&l.side&&d){ee.attr("transform",null);var ae=aAt[l.side],_e=l.side==="left"||l.side==="top"?-1:1,re=iAt(l.pad)?l.pad:2,pe=t7.bBox(ee.node()),Te={t:0,b:0,l:0,r:0},Ce=e._fullLayout._reservedMargin;for(var ze in Ce)for(var we in Ce[ze]){var me=Ce[ze][we];Te[we]=Math.max(Te[we],me)}var Le={left:Te.l,top:Te.t,right:i.width-Te.r,bottom:i.height-Te.b},Ne=l.maxShift||_e*(Le[l.side]-pe[l.side]),Je=0;if(Ne<0)Je=Ne;else{var rt=l.offsetLeft||0,mt=l.offsetTop||0;pe.left-=rt,pe.right-=rt,pe.top-=mt,pe.bottom-=mt,l.selection.each(function(){var St=t7.bBox(this);db.bBoxIntersect(pe,St,re)&&(Je=Math.max(Je,_e*(St[l.side]-pe[ae])+re))}),Je=Math.min(Ne,Je),n._titleScoot=Math.abs(Je)}if(Je>0||Ne<0){var dt={left:[-Je,0],right:[Je,0],top:[0,-Je],bottom:[0,Je]}[l.side];ee.attr("transform",b1e(dt[0],dt[1]))}}}j.call(ge,Q);function ce(be,fe){be.text(fe).on("mouseover.opacity",function(){Pw.select(this).transition().duration(_1e.SHOW_PLACEHOLDER).style("opacity",1)}).on("mouseout.opacity",function(){Pw.select(this).transition().duration(_1e.HIDE_PLACEHOLDER).style("opacity",0)})}if(N&&(d?j.on(".opacity",null):(ce(j,o),v=!0),j.call(Iw.makeEditable,{gd:e}).on("edit",function(be){s!==void 0?aH.call("_guiRestyle",e,a,be,s):aH.call("_guiRelayout",e,a,be)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(ge)}).on("input",function(be){this.text(be||" ").call(Iw.positionText,u.x,u.y)}),M)){if(M&&!d){var oe=j.node().getBBox(),Se=oe.y+oe.height+sH*I;Q.attr("y",Se)}D?Q.on(".opacity",null):(ce(Q,C),F=!0),Q.call(Iw.makeEditable,{gd:e}).on("edit",function(be){aH.call("_guiRelayout",e,"title.subtitle.text",be)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(ge)}).on("input",function(be){this.text(be||" ").call(Iw.positionText,Q.attr("x"),Q.attr("y"))})}return j.classed("js-placeholder",v),Q&&!Q.empty()&&Q.classed("js-placeholder",F),f}T1e.exports={draw:oAt,SUBTITLE_PADDING_EM:sH,SUBTITLE_PADDING_MATHJAX_EM:oH}});var v1=W((pOr,k1e)=>{"use strict";var sAt=gi(),lAt=K3().utcFormat,Yo=tt(),uAt=Yo.numberFormat,d1=hn(),qy=Yo.cleanNumber,cAt=Yo.ms2DateTime,A1e=Yo.dateTime2ms,p1=Yo.ensureNumber,M1e=Yo.isArrayOrTypedArray,Oy=(ra(),Pt(ia)),i7=Oy.FP_SAFE,Wp=Oy.BADNUM,fAt=Oy.LOG_CLIP,hAt=Oy.ONEWEEK,n7=Oy.ONEDAY,a7=Oy.ONEHOUR,S1e=Oy.ONEMIN,E1e=Oy.ONESEC,o7=Ls(),u7=(Zl(),Pt(Xl)),s7=u7.HOUR_PATTERN,l7=u7.WEEKDAY_PATTERN;function CA(e){return Math.pow(10,e)}function lH(e){return e!=null}k1e.exports=function(t,r){r=r||{};var i=t._id||"x",n=i.charAt(0);function a(b,S){if(b>0)return Math.log(b)/Math.LN10;if(b<=0&&S&&t.range&&t.range.length===2){var x=t.range[0],A=t.range[1];return .5*(x+A-2*fAt*Math.abs(x-A))}else return Wp}function o(b,S,x,A){if((A||{}).msUTC&&d1(b))return+b;var T=A1e(b,x||t.calendar);if(T===Wp)if(d1(b)){b=+b;var y=Math.floor(Yo.mod(b+.05,1)*10),E=Math.round(b-y/10);T=A1e(new Date(E))+y/10}else return Wp;return T}function s(b,S,x){return cAt(b,S,x||t.calendar)}function l(b){return t._categories[Math.round(b)]}function u(b){if(lH(b)){if(t._categoriesMap===void 0&&(t._categoriesMap={}),t._categoriesMap[b]!==void 0)return t._categoriesMap[b];t._categories.push(typeof b=="number"?String(b):b);var S=t._categories.length-1;return t._categoriesMap[b]=S,S}return Wp}function c(b,S){for(var x=new Array(S),A=0;At.range[1]&&(x=!x);for(var A=x?-1:1,T=A*b,y=0,E=0;EC)y=E+1;else{y=T<(M+C)/2?E:E+1;break}}var k=t._B[y]||0;return isFinite(k)?d(b,t._m2,k):0},g=function(b){var S=t._rangebreaks.length;if(!S)return v(b,t._m,t._b);for(var x=0,A=0;At._rangebreaks[A].pmax&&(x=A+1);return v(b,t._m2,t._B[x])}}t.c2l=t.type==="log"?a:p1,t.l2c=t.type==="log"?CA:p1,t.l2p=m,t.p2l=g,t.c2p=t.type==="log"?function(b,S){return m(a(b,S))}:m,t.p2c=t.type==="log"?function(b){return CA(g(b))}:g,["linear","-"].indexOf(t.type)!==-1?(t.d2r=t.r2d=t.d2c=t.r2c=t.d2l=t.r2l=qy,t.c2d=t.c2r=t.l2d=t.l2r=p1,t.d2p=t.r2p=function(b){return t.l2p(qy(b))},t.p2d=t.p2r=g,t.cleanPos=p1):t.type==="log"?(t.d2r=t.d2l=function(b,S){return a(qy(b),S)},t.r2d=t.r2c=function(b){return CA(qy(b))},t.d2c=t.r2l=qy,t.c2d=t.l2r=p1,t.c2r=a,t.l2d=CA,t.d2p=function(b,S){return t.l2p(t.d2r(b,S))},t.p2d=function(b){return CA(g(b))},t.r2p=function(b){return t.l2p(qy(b))},t.p2r=g,t.cleanPos=p1):t.type==="date"?(t.d2r=t.r2d=Yo.identity,t.d2c=t.r2c=t.d2l=t.r2l=o,t.c2d=t.c2r=t.l2d=t.l2r=s,t.d2p=t.r2p=function(b,S,x){return t.l2p(o(b,0,x))},t.p2d=t.p2r=function(b,S,x){return s(g(b),S,x)},t.cleanPos=function(b){return Yo.cleanDate(b,Wp,t.calendar)}):t.type==="category"?(t.d2c=t.d2l=u,t.r2d=t.c2d=t.l2d=l,t.d2r=t.d2l_noadd=h,t.r2c=function(b){var S=p(b);return S!==void 0?S:t.fraction2r(.5)},t.l2r=t.c2r=p1,t.r2l=p,t.d2p=function(b){return t.l2p(t.r2c(b))},t.p2d=function(b){return l(g(b))},t.r2p=t.d2p,t.p2r=g,t.cleanPos=function(b){return typeof b=="string"&&b!==""?b:p1(b)}):t.type==="multicategory"&&(t.r2d=t.c2d=t.l2d=l,t.d2r=t.d2l_noadd=h,t.r2c=function(b){var S=h(b);return S!==void 0?S:t.fraction2r(.5)},t.r2c_just_indices=f,t.l2r=t.c2r=p1,t.r2l=h,t.d2p=function(b){return t.l2p(t.r2c(b))},t.p2d=function(b){return l(g(b))},t.r2p=t.d2p,t.p2r=g,t.cleanPos=function(b){return Array.isArray(b)||typeof b=="string"&&b!==""?b:p1(b)},t.setupMultiCategory=function(b){var S=t._traceIndices,x,A,T=t._matchGroup;if(T&&t._categories.length===0){for(var y in T)if(y!==i){var E=r[o7.id2name(y)];S=S.concat(E._traceIndices)}}var M=[[0,{}],[0,{}]],C=[];for(x=0;xE[1]&&(A[y?0:1]=x,T[1]=E[1]),T[0]>=T[1])if(S!==void 0){var M=E[0]+1;x!==void 0&&(M=Math.min(M,E[1])),A[y?0:1]=t.l2r(M)}else x!==void 0&&(A[y?1:0]=t.l2r(E[1]-1))}},t.cleanRange=function(b,S){t._cleanRange(b,S),t.limitRange(b)},t._cleanRange=function(b,S){S||(S={}),b||(b="range");var x=Yo.nestedProperty(t,b).get(),A,T;if(t.type==="date"?T=Yo.dfltRange(t.calendar):n==="y"?T=u7.DFLTRANGEY:t._name==="realaxis"?T=[0,1]:T=S.dfltRange||u7.DFLTRANGEX,T=T.slice(),(t.rangemode==="tozero"||t.rangemode==="nonnegative")&&(T[0]=0),!x||x.length!==2){Yo.nestedProperty(t,b).set(T);return}var y=x[0]===null,E=x[1]===null;for(t.type==="date"&&!t.autorange&&(x[0]=Yo.cleanDate(x[0],Wp,t.calendar),x[1]=Yo.cleanDate(x[1],Wp,t.calendar)),A=0;A<2;A++)if(t.type==="date"){if(!Yo.isDateTime(x[A],t.calendar)){t[b]=T;break}if(t.r2l(x[0])===t.r2l(x[1])){var M=Yo.constrain(t.r2l(x[0]),Yo.MIN_MS+1e3,Yo.MAX_MS-1e3);x[0]=t.l2r(M-1e3),x[1]=t.l2r(M+1e3);break}}else{if(!d1(x[A]))if(!(y||E)&&d1(x[1-A]))x[A]=x[1-A]*(A?10:.1);else{t[b]=T;break}if(x[A]<-i7?x[A]=-i7:x[A]>i7&&(x[A]=i7),x[0]===x[1]){var C=Math.max(1,Math.abs(x[0]*1e-6));x[0]-=C,x[1]+=C}}},t.setScale=function(b){var S=r._size;if(t.overlaying){var x=o7.getFromId({_fullLayout:r},t.overlaying);t.domain=x.domain}var A=b&&t._r?"_r":"range",T=t.calendar;t.cleanRange(A);var y=t.r2l(t[A][0],T),E=t.r2l(t[A][1],T),M=n==="y";if(M?(t._offset=S.t+(1-t.domain[1])*S.h,t._length=S.h*(t.domain[1]-t.domain[0]),t._m=t._length/(y-E),t._b=-t._m*E):(t._offset=S.l+t.domain[0]*S.w,t._length=S.w*(t.domain[1]-t.domain[0]),t._m=t._length/(E-y),t._b=-t._m*y),t._rangebreaks=[],t._lBreaks=0,t._m2=0,t._B=[],t.rangebreaks){var C,k;if(t._rangebreaks=t.locateBreaks(Math.min(y,E),Math.max(y,E)),t._rangebreaks.length){for(C=0;CE&&(D=!D),D&&t._rangebreaks.reverse();var F=D?-1:1;for(t._m2=F*t._length/(Math.abs(E-y)-t._lBreaks),t._B.push(-t._m2*(M?E:y)),C=0;CT&&(T+=7,yT&&(T+=24,y=A&&y=A&&b=q.min&&($q.max&&(q.max=X),K=!1)}K&&E.push({min:$,max:X})}};for(x=0;x{"use strict";var C1e=hn(),uH=tt(),dAt=(ra(),Pt(ia)).BADNUM,c7=uH.isArrayOrTypedArray,pAt=uH.isDateTime,vAt=uH.cleanNumber,D1e=Math.round;L1e.exports=function(t,r,i){var n=t,a=i.noMultiCategory;if(c7(n)&&!n.length)return"-";if(!a&&bAt(n))return"multicategory";if(a&&Array.isArray(n[0])){for(var o=[],s=0;sa*2}function F1e(e){return Math.max(1,(e-1)/1e3)}function xAt(e,t){for(var r=e.length,i=F1e(r),n=0,a=0,o={},s=0;sn*2}function bAt(e){return c7(e[0])&&c7(e[1])}});var Yp=W((gOr,N1e)=>{"use strict";var _At=gi(),z1e=hn(),Ny=tt(),f7=(ra(),Pt(ia)).FP_SAFE,wAt=xi(),TAt=Qi(),B1e=Ls(),AAt=B1e.getFromId,MAt=B1e.isLinked;N1e.exports={applyAutorangeOptions:O1e,getAutoRange:cH,makePadFn:fH,doAutoRange:EAt,findExtremes:kAt,concatExtremes:pH};function cH(e,t){var r,i,n=[],a=e._fullLayout,o=fH(a,t,0),s=fH(a,t,1),l=pH(e,t),u=l.min,c=l.max;if(u.length===0||c.length===0)return Ny.simpleMap(t.range,t.r2l);var f=u[0].val,h=c[0].val;for(r=1;r0&&(E=_-o(x)-s(A),E>b?M/E>S&&(T=x,y=A,S=M/E):M/_>S&&(T={val:x.val,nopad:1},y={val:A.val,nopad:1},S=M/_));function C(R,L){return Math.max(R,s(L))}if(f===h){var k=f-1,D=f+1;if(g)if(f===0)n=[0,1];else{var F=(f>0?c:u).reduce(C,0),P=f/(1-Math.min(.5,F/_));n=f>0?[0,P]:[P,0]}else w?n=[Math.max(0,k),Math.max(1,D)]:n=[k,D]}else g?(T.val>=0&&(T={val:0,nopad:1}),y.val<=0&&(y={val:0,nopad:1})):w&&(T.val-S*o(T)<0&&(T={val:0,nopad:1}),y.val<=0&&(y={val:1,nopad:1})),S=(y.val-T.val-P1e(t,x.val,A.val))/(_-o(T)-s(y)),n=[T.val-S*o(T),y.val+S*s(y)];return n=O1e(n,t),t.limitRange&&t.limitRange(),d&&n.reverse(),Ny.simpleMap(n,t.l2r||Number)}function P1e(e,t,r){var i=0;if(e.rangebreaks)for(var n=e.locateBreaks(t,r),a=0;a0?r.ppadplus:r.ppadminus)||r.ppad||0),x=b((e._m>0?r.ppadminus:r.ppadplus)||r.ppad||0),A=b(r.vpadplus||r.vpad),T=b(r.vpadminus||r.vpad);if(!u){if(w=1/0,_=-1/0,l)for(f=0;f0&&(w=h),h>_&&h-f7&&(w=h),h>_&&h=M;f--)E(f);return{min:i,max:n,opts:r}}function hH(e,t,r,i){q1e(e,t,r,i,CAt)}function dH(e,t,r,i){q1e(e,t,r,i,DAt)}function q1e(e,t,r,i,n){for(var a=i.tozero,o=i.extrapad,s=!0,l=0;l=r&&(u.extrapad||!o)){s=!1;break}else n(t,u.val)&&u.pad<=r&&(o||!u.extrapad)&&(e.splice(l,1),l--)}if(s){var c=a&&t===0;e.push({val:t,pad:c?0:r,extrapad:c?!1:o})}}function R1e(e){return z1e(e)&&Math.abs(e)=t}function FAt(e,t){var r=t.autorangeoptions;return r&&r.minallowed!==void 0&&h7(t,r.minallowed,r.maxallowed)?r.minallowed:r&&r.clipmin!==void 0&&h7(t,r.clipmin,r.clipmax)?Math.max(e,t.d2l(r.clipmin)):e}function LAt(e,t){var r=t.autorangeoptions;return r&&r.maxallowed!==void 0&&h7(t,r.minallowed,r.maxallowed)?r.maxallowed:r&&r.clipmax!==void 0&&h7(t,r.clipmin,r.clipmax)?Math.min(e,t.d2l(r.clipmax)):e}function h7(e,t,r){return t!==void 0&&r!==void 0?(t=e.d2l(t),r=e.d2l(r),t=l&&(a=l,r=l),o<=l&&(o=l,i=l)}}return r=FAt(r,t),i=LAt(i,t),[r,i]}});var Yi=W((yOr,lge)=>{"use strict";var xd=gi(),Pl=hn(),zw=Qo(),FA=xi(),En=tt(),Bw=En.strTranslate,vb=ao(),PAt=pb(),LA=ti(),w0=Qi(),IAt=ac(),U1e=qG(),mOr=(Zl(),Pt(Xl)),kc=(ra(),Pt(ia)),RAt=kc.ONEMAXYEAR,v7=kc.ONEAVGYEAR,g7=kc.ONEMINYEAR,zAt=kc.ONEMAXQUARTER,yH=kc.ONEAVGQUARTER,m7=kc.ONEMINQUARTER,BAt=kc.ONEMAXMONTH,qw=kc.ONEAVGMONTH,y7=kc.ONEMINMONTH,T0=kc.ONEWEEK,Sf=kc.ONEDAY,Uy=Sf/2,m1=kc.ONEHOUR,PA=kc.ONEMIN,x7=kc.ONESEC,qAt=kc.ONEMILLI,OAt=kc.ONEMICROSEC,gb=kc.MINUS_SIGN,_7=kc.BADNUM,xH={K:"zeroline"},bH={K:"gridline",L:"path"},_H={K:"minor-gridline",L:"path"},J1e={K:"tick",L:"path"},V1e={K:"tick",L:"text"},G1e={width:["x","r","l","xl","xr"],height:["y","t","b","yt","yb"],right:["r","xr"],left:["l","xl"],top:["t","yt"],bottom:["b","yb"]},w7=(Jl(),Pt(Kl)),DA=w7.MID_SHIFT,mb=w7.CAP_SHIFT,IA=w7.LINE_SPACING,NAt=w7.OPPOSITE_SIDE,b7=3,Br=lge.exports={};Br.setConvert=v1();var UAt=Rw(),y1=Ls(),VAt=y1.idSort,GAt=y1.isLinked;Br.id2name=y1.id2name;Br.name2id=y1.name2id;Br.cleanId=y1.cleanId;Br.list=y1.list;Br.listIds=y1.listIds;Br.getFromId=y1.getFromId;Br.getFromTrace=y1.getFromTrace;var Q1e=Yp();Br.getAutoRange=Q1e.getAutoRange;Br.findExtremes=Q1e.findExtremes;var HAt=1e-4;function MH(e){var t=(e[1]-e[0])*HAt;return[e[0]-t,e[1]+t]}function jAt(e,t,r){if(![r,e,t].every(Pl)||r===0)return e;let i=Math.round((e-t)/r),n=t+i*r;return e!==n&&Math.abs(e-n)h+" domain")),l=l.concat(a||[]),c.length>o?(En.warn("Array attribute "+u+" has more entries than expected, truncating to "+o),c=c.slice(0,o)):c.length2e-6||((r-e._forceTick0)/e._minDtick%1+1.000001)%1>2e-6)&&(e._minDtick=0))};Br.saveRangeInitial=function(e,t){for(var r=Br.list(e,"",!0),i=!1,n=0;nf*.3||u(i)||u(n))){var h=r.dtick/2;e+=e+ho){var s=Number(r.slice(1));a.exactYears>o&&s%12===0?e=Br.tickIncrement(e,"M6","reverse")+Sf*1.5:a.exactMonths>o?e=Br.tickIncrement(e,"M1","reverse")+Sf*15.5:e-=Uy;var l=Br.tickIncrement(e,r);if(l<=i)return l}return e}Br.prepMinorTicks=function(e,t,r){var f,h;if(!((f=t.minor)!=null&&f.dtick)){delete e.dtick;var i=t.dtick&&Pl(t._tmin),n;if(i){var a=Br.tickIncrement(t._tmin,t.dtick,!0);n=[t._tmin,a*.99+t._tmin*.01]}else{var o=En.simpleMap(t.range,t.r2l);n=[o[0],.8*o[0]+.2*o[1]]}if(e.range=En.simpleMap(n,t.l2r),e._isMinor=!0,Br.prepTicks(e,r),i){var s=Pl(t.dtick),l=Pl(e.dtick),u=s?t.dtick:+t.dtick.substring(1),c=l?e.dtick:+e.dtick.substring(1);s&&l?vH(u,c)?u===2*T0&&c===2*Sf&&(e.dtick=T0):u===2*T0&&c===3*Sf?e.dtick=T0:u===T0&&!(t._input.minor||{}).nticks?e.dtick=Sf:$1e(u/c,2.5)?e.dtick=u/2:e.dtick=u:String(t.dtick).charAt(0)==="M"?l?e.dtick="M1":vH(u,c)?u>=12&&c===2&&(e.dtick="M3"):e.dtick=t.dtick:String(e.dtick).charAt(0)==="L"?String(t.dtick).charAt(0)==="L"?vH(u,c)||(e.dtick=$1e(u/c,2.5)?t.dtick/2:t.dtick):e.dtick="D1":e.dtick==="D2"&&+t.dtick>1&&(e.dtick=1)}e.range=t.range}((h=t.minor)==null?void 0:h._tick0Init)===void 0&&(e.tick0=t.tick0),t._useTicklabelIndex&&(SH(e),t.minor._tickround=e._tickround)};function vH(e,t){return Math.abs((e/t+.5)%1-.5)<.001}function $1e(e,t){return Math.abs(e/t-1)<.001}Br.prepTicks=function(e,t){var r=En.simpleMap(e.range,e.r2l,void 0,void 0,t);if(e.tickmode==="auto"||!e.dtick){var i=e.nticks,n;i||(e.type==="category"||e.type==="multicategory"?(n=e.tickfont?En.bigFont(e.tickfont.size||12):15,i=e._length/n):(n=e._id.charAt(0)==="y"?40:80,i=En.constrain(e._length/n,4,9)+1),e._name==="radialaxis"&&(i*=2)),e.minor&&e.minor.tickmode!=="array"||e.tickmode==="array"&&(i*=100),e._roughDTick=Math.abs(r[1]-r[0])/i,Br.autoTicks(e,e._roughDTick),e._minDtick>0&&e.dtick0?(s=i-1,l=i):(s=i,l=i),a=e[s].value,o=e[l].value}var u=Math.abs(o-a),c=r||u,f=0;e[i].periodEndTick!=null?f=u:c>=g7?u>=g7&&u<=RAt?f=u:f=v7:r===yH&&c>=m7?u>=m7&&u<=zAt?f=u:f=yH:c>=y7?u>=y7&&u<=BAt?f=u:f=qw:r===T0&&c>=T0?f=T0:c>=Sf?f=Sf:r===Uy&&c>=Uy?f=Uy:r===m1&&c>=m1&&(f=m1);var h;f>=u&&(f=u,h=!0);var p=n+f;if(t.rangebreaks&&f>0){for(var d=84,v=0,m=0;mT0&&(f=u)}(f>0||i===0)&&(e[i].periodX=n+f/2)}}Br.calcTicks=function(t,r){var i=t.type,n=t.calendar,a=t.ticklabelstep,o=t.ticklabelmode==="period",s=t.range[0]>t.range[1],l=!t.ticklabelindex||En.isArrayOrTypedArray(t.ticklabelindex)?t.ticklabelindex:[t.ticklabelindex];t._useTicklabelIndex=l!=null&&l!==0;for(var u=En.simpleMap(t.range,t.r2l,void 0,void 0,r),c=u[1]=(b?0:1);S--){var x=!S;S?(t._dtickInit=t.dtick,t._tick0Init=t.tick0):b&&(t.minor._dtickInit=t.minor.dtick,t.minor._tick0Init=t.minor.tick0);var A=S?t:En.extendFlat({},t,b?t.minor:{minor:{}});if(x?Br.prepMinorTicks(A,t,r):Br.prepTicks(A,r),A.tickmode==="array"){S?(m=[],d=W1e(t,!x)):(g=[],v=W1e(t,!x));continue}if(A.tickmode==="sync"){m=[],d=KAt(t);continue}var T=MH(u),y=T[0],E=T[1],M=Pl(A.dtick),C=i==="log"&&!(M||A.dtick.charAt(0)==="L"),k=Br.tickFirst(A,r);if(S){if(t._tmin=k,k=E:F<=E;F=Br.tickIncrement(F,L,c,n)){if(S&&P++,A.rangebreaks&&!c){if(F=h)break}if(m.length>p||F===D)break;D=F;var B={value:jAt(F,I,L)};S?(F===k&&(B.first=!0),C&&F!==(F|0)&&(B.simpleLabel=!0),a>1&&P%a&&(B.skipLabel=!0),m.push(B)):(B.minor=!0,g.push(B))}}function O(ge,Ee){let xe=Ee.find(oe=>oe.value===ge.value);if(xe!=null)return xe;let ce=1e7;for(let oe=0;oeO(xe,m)==null),Ee=m.concat(ge).sort((xe,ce)=>xe.value-ce.value);o&&m.length&&(m[0].skipLabel=!0),m.forEach(function(xe){xe.skipLabel||(l.forEach(ce=>{if(ce<0){let oe=Ee.filter(fe=>fe.value<=xe.value),Se=Math.abs(ce),be=oe.length-Se-1;if(SeSe.value>=xe.value);if(cexe.skipLabel=!1)}if(_){var $=t.minor.ticks==="inside"&&t.ticks==="outside"||t.minor.ticks==="outside"&&t.ticks==="inside";if(!$){for(var X=[],K=0;K-1;G--){if(m[G].drop){m.splice(G,1);continue}m[G].value=mH(m[G].value,t);var V=t.c2p(m[G].value);(q?N>V-J:Nh||ceh&&(xe.periodX=h),cen&&dn&&mv7)t/=v7,i=n(10),e.dtick="M"+12*g1(t,i,d7);else if(a>qw)t/=qw,e.dtick="M"+g1(t,1,Y1e);else if(a>Sf){if(e.dtick=g1(t,Sf,e._hasDayOfWeekBreaks?[1,2,7,14]:JAt),!r){var o=Br.getTickFormat(e),s=e.ticklabelmode==="period";s&&(e._rawTick0=e.tick0),/%[uVW]/.test(o)?e.tick0=En.dateTick0(e.calendar,2):e.tick0=En.dateTick0(e.calendar,1),s&&(e._dowTick0=e.tick0)}}else a>m1?e.dtick=g1(t,m1,Y1e):a>PA?e.dtick=g1(t,PA,X1e):a>x7?e.dtick=g1(t,x7,X1e):(i=n(10),e.dtick=g1(t,i,d7))}else if(e.type==="log"){e.tick0=0;var l=En.simpleMap(e.range,e.r2l);if(e._isMinor&&(t*=1.5),t>.7)e.dtick=Math.ceil(t);else if(Math.abs(l[1]-l[0])<1){var u=1.5*Math.abs((l[1]-l[0])/t);t=Math.abs(Math.pow(10,l[1])-Math.pow(10,l[0]))/u,i=n(10),e.dtick="L"+g1(t,i,d7)}else e.dtick=t>.3?"D2":"D1"}else e.type==="category"||e.type==="multicategory"?(e.tick0=0,e.dtick=Math.ceil(Math.max(t,1))):DH(e)?(e.tick0=0,i=1,e.dtick=g1(t,i,QAt)):(e.tick0=0,i=n(10),e.dtick=g1(t,i,d7));if(e.dtick===0&&(e.dtick=1),!Pl(e.dtick)&&typeof e.dtick!="string"){var c=e.dtick;throw e.dtick=1,"ax.dtick error: "+String(c)}};function SH(e){var t=e.dtick;if(e._tickexponent=0,!Pl(t)&&typeof t!="string"&&(t=1),(e.type==="category"||e.type==="multicategory")&&(e._tickround=null),e.type==="date"){var r=e.r2l(e.tick0),i=e.l2r(r).replace(/(^-|i)/g,""),n=i.length;if(String(t).charAt(0)==="M")n>10||i.slice(5)!=="01-01"?e._tickround="d":e._tickround=+t.slice(1)%12===0?"y":"m";else if(t>=Sf&&n<=10||t>=Sf*15)e._tickround="d";else if(t>=PA&&n<=16||t>=m1)e._tickround="M";else if(t>=x7&&n<=19||t>=PA)e._tickround="S";else{var a=e.l2r(r+t).replace(/^-/,"").length;e._tickround=Math.max(n,a)-20,e._tickround<0&&(e._tickround=4)}}else if(Pl(t)||t.charAt(0)==="L"){var o=e.range.map(e.r2d||Number);Pl(t)||(t=Number(t.slice(1))),e._tickround=2-Math.floor(Math.log(t)/Math.LN10+.01);var s=Math.max(Math.abs(o[0]),Math.abs(o[1])),l=Math.floor(Math.log(s)/Math.LN10+.01),u=e.minexponent===void 0?3:e.minexponent;Math.abs(l)>u&&(Ow(e.exponentformat)&&e.exponentformat!=="SI extended"&&!EH(l)||Ow(e.exponentformat)&&e.exponentformat==="SI extended"&&!kH(l)?e._tickexponent=3*Math.round((l-1)/3):e._tickexponent=l)}else e._tickround=null}Br.tickIncrement=function(e,t,r,i){var n=r?-1:1;if(Pl(t))return En.increment(e,n*t);var a=t.charAt(0),o=n*Number(t.slice(1));if(a==="M")return En.incrementMonth(e,o,i);if(a==="L")return Math.log(Math.pow(10,e)+o)/Math.LN10;if(a==="D"){var s=t==="D2"?rge:tge,l=e+n*.01,u=En.roundUp(En.mod(l,1),s,r);return Math.floor(l)+Math.log(xd.round(Math.pow(10,u),1))/Math.LN10}throw"unrecognized dtick "+String(t)};Br.tickFirst=function(e,t){var r=e.r2l||Number,i=En.simpleMap(e.range,r,void 0,void 0,t),n=i[1]=0&&b<=e._length?_:null};if(l&&En.isArrayOrTypedArray(e.ticktext)){var d=En.simpleMap(e.range,e.r2l),v=(Math.abs(d[1]-d[0])-(e._lBreaks||0))/1e4;for(h=0;h"+s;else{var u=zA(e),c=e._trueSide||e.side;(!u&&c==="top"||u&&c==="bottom")&&(o+="
")}t.text=o}function tMt(e,t,r,i,n){var a=e.dtick,o=t.x,s=e.tickformat,l=typeof a=="string"&&a.charAt(0);if(n==="never"&&(n=""),i&&l!=="L"&&(a="L3",l="L"),s||l==="L")t.text=RA(Math.pow(10,o),e,n,i);else if(Pl(a)||l==="D"&&(e.minorloglabels==="complete"||En.mod(o+.01,1)<.1)){var u;e.minorloglabels==="complete"&&!(En.mod(o+.01,1)<.1)&&(u=!0,t.fontSize*=.75);var c=Math.pow(10,o).toExponential(0),f=c.split("e"),h=+f[1],p=Math.abs(h),d=e.exponentformat;d==="power"||Ow(d)&&d!=="SI extended"&&EH(h)||Ow(d)&&d==="SI extended"&&kH(h)?(t.text=f[0],p>0&&(t.text+="x10"),t.text==="1x10"&&(t.text="10"),h!==0&&h!==1&&(t.text+=""+(h>0?"":gb)+p+""),t.fontSize*=1.25):(d==="e"||d==="E")&&p>2?t.text=f[0]+d+(h>0?"+":gb)+p:(t.text=RA(Math.pow(10,o),e,"","fakehover"),a==="D1"&&e._id.charAt(0)==="y"&&(t.dy-=t.fontSize/6))}else if(l==="D")t.text=e.minorloglabels==="none"?"":String(Math.round(Math.pow(10,En.mod(o,1)))),t.fontSize*=.75;else throw"unrecognized dtick "+String(a);if(e.dtick==="D1"){var v=String(t.text).charAt(0);(v==="0"||v==="1")&&(e._id.charAt(0)==="y"?t.dx-=t.fontSize/4:(t.dy+=t.fontSize/2,t.dx+=(e.range[1]>e.range[0]?1:-1)*t.fontSize*(o<0?.5:.25)))}}function rMt(e,t){var r=e._categories[Math.round(t.x)];r===void 0&&(r=""),t.text=String(r)}function iMt(e,t,r){var i=Math.round(t.x),n=e._categories[i]||[],a=n[1]===void 0?"":String(n[1]),o=n[0]===void 0?"":String(n[0]);r?t.text=o+" - "+a:(t.text=a,t.text2=o)}function nMt(e,t,r,i,n){n==="never"?n="":e.showexponent==="all"&&Math.abs(t.x/e.dtick)<1e-6&&(n="hide"),t.text=RA(t.x,e,n,i)}function aMt(e,t,r,i,n){if(e.thetaunit==="radians"&&!r){var a=t.x/180;if(a===0)t.text="0";else{var o=oMt(a);if(o[1]>=100)t.text=RA(En.deg2rad(t.x),e,n,i);else{var s=t.x<0;o[1]===1?o[0]===1?t.text="\u03C0":t.text=o[0]+"\u03C0":t.text=["",o[0],"","\u2044","",o[1],"","\u03C0"].join(""),s&&(t.text=gb+t.text)}}}else t.text=RA(t.x,e,n,i)}function oMt(e){function t(s,l){return Math.abs(s-l)<=1e-6}function r(s,l){return t(l,0)?s:r(l,s%l)}function i(s){for(var l=1;!t(Math.round(s*l)/l,s);)l*=10;return l}var n=i(e),a=e*n,o=Math.abs(r(a,n));return[Math.round(a/o),Math.round(n/o)]}var nge=["f","p","n","\u03BC","m","","k","M","G","T"],sMt=["q","r","y","z","a",...nge,"P","E","Z","Y","R","Q"],Ow=e=>["SI","SI extended","B"].includes(e);function EH(e){return e>14||e<-15}function kH(e){return e>32||e<-30}function lMt(e,t){return Ow(t)?!!(t==="SI extended"&&kH(e)||t!=="SI extended"&&EH(e)):!1}function RA(e,t,r,i){var n=e<0,a=t._tickround,o=r||t.exponentformat||"B",s=t._tickexponent,l=Br.getTickFormat(t),u=t.separatethousands;if(i){var c={exponentformat:o,minexponent:t.minexponent,dtick:t.showexponent==="none"?t.dtick:Pl(e)&&Math.abs(e)||1,range:t.showexponent==="none"?t.range.map(t.r2d):[0,e||1]};SH(c),a=(Number(c._tickround)||0)+4,s=c._tickexponent,t.hoverformat&&(l=t.hoverformat)}if(l)return t._numFormat(l)(e).replace(/-/g,gb);o==="none"&&(s=0),e=Math.abs(e);let f=Math.pow(10,-a)/2;if(e"+h+"":o==="B"&&s===9?e+="B":Ow(o)&&(e+=o==="SI extended"?sMt[s/3+10]:nge[s/3+5])}return n?gb+e:e}Br.getTickFormat=function(e){var t;function r(l){return typeof l!="string"?l:Number(l.replace("M",""))*qw}function i(l,u){var c=["L","D"];if(typeof l==typeof u){if(typeof l=="number")return l-u;var f=c.indexOf(l.charAt(0)),h=c.indexOf(u.charAt(0));return f===h?Number(l.replace(/(L|D)/g,""))-Number(u.replace(/(L|D)/g,"")):f-h}else return typeof l=="number"?1:-1}function n(l,u,c){var f=c||function(d){return d},h=u[0],p=u[1];return(!h&&typeof h!="number"||f(h)<=f(l))&&(!p&&typeof p!="number"||f(p)>=f(l))}function a(l,u){var c=u[0]===null,f=u[1]===null,h=i(l,u[0])>=0,p=i(l,u[1])<=0;return(c||h)&&(f||p)}var o,s;if(e.tickformatstops&&e.tickformatstops.length>0)switch(e.type){case"date":case"linear":{for(t=0;t=0&&n.unshift(n.splice(c,1).shift())}});var s={false:{left:0,right:0}};return En.syncOrAsync(n.map(function(l){return function(){if(l){var u=Br.getFromId(e,l);r||(r={}),r.axShifts=s,r.overlayingShiftedAx=o;var c=Br.drawOne(e,u,r);return u._shiftPusher&&AH(u,u._fullDepth||0,s,!0),u._r=u.range.slice(),u._rl=En.simpleMap(u._r,u.r2l),c}}}))};Br.drawOne=function(e,t,r){r=r||{};var i=r.axShifts||{},n=r.overlayingShiftedAx||[],a,o,s;t.setScale();var l=e._fullLayout,u=t._id,c=u.charAt(0),f=Br.counterLetter(u),h=l._plots[t._mainSubplot],p=t.zerolinelayer==="above traces";if(!h)return;if(t._shiftPusher=t.autoshift||n.indexOf(t._id)!==-1||n.indexOf(t.overlaying)!==-1,t._shiftPusher&t.anchor==="free"){var d=t.linewidth/2||0;t.ticks==="inside"&&(d+=t.ticklen),AH(t,d,i,!0),AH(t,t.shift||0,i,!1)}(r.skipTitle!==!0||t._shift===void 0)&&(t._shift=_Mt(t,i));var v=h[c+"axislayer"],m=t._mainLinePosition,g=m+=t._shift,w=t._mainMirrorPosition,_=t._vals=Br.calcTicks(t),b=[t.mirror,g,w].join("_");for(a=0;a<_.length;a++)_[a].axInfo=b;t._selections={},t._tickAngles&&(t._prevTickAngles=t._tickAngles),t._tickAngles={},t._depth=null;var S={};function x(oe){var Se=u+(oe||"tick");return S[Se]||(S[Se]=hMt(t,Se,g)),S[Se]}if(t.visible){var A=Br.makeTransTickFn(t),T=Br.makeTransTickLabelFn(t),y,E,M=t.ticks==="inside",C=t.ticks==="outside";if(t.tickson==="boundaries"){var k=uMt(t,_);E=Br.clipEnds(t,k),y=M?E:k}else E=Br.clipEnds(t,_),y=M&&t.ticklabelmode!=="period"?E:_;var D=t._gridVals=E,F=fMt(t,_);if(!l._hasOnlyLargeSploms){var P=t._subplotsWith,R={};for(a=0;a0?ee.bottom-be:0,fe))));var pe=0,Te=0;if(t._shiftPusher&&(pe=Math.max(fe,ee.height>0?oe==="l"?be-ee.left:ee.right-be:0),t.title.text!==l._dfltTitle[c]&&(Te=(t._titleStandoff||0)+(t._titleScoot||0),oe==="l"&&(Te+=K1e(t))),t._fullDepth=Math.max(pe,Te)),t.automargin){ae={x:0,y:0,r:0,l:0,t:0,b:0};var Ce=[0,1],ze=typeof t._shift=="number"?t._shift:0;if(c==="x"){if(oe==="b"?ae[oe]=t._depth:(ae[oe]=t._depth=Math.max(ee.width>0?be-ee.top:0,fe),Ce.reverse()),ee.width>0){var we=ee.right-(t._offset+t._length);we>0&&(ae.xr=1,ae.r=we);var me=t._offset-ee.left;me>0&&(ae.xl=0,ae.l=me)}}else if(oe==="l"?(t._depth=Math.max(ee.height>0?be-ee.left:0,fe),ae[oe]=t._depth-ze):(t._depth=Math.max(ee.height>0?ee.right-be:0,fe),ae[oe]=t._depth+ze,Ce.reverse()),ee.height>0){var Le=ee.bottom-(t._offset+t._length);Le>0&&(ae.yb=0,ae.b=Le);var Ne=t._offset-ee.top;Ne>0&&(ae.yt=1,ae.t=Ne)}ae[f]=t.anchor==="free"?t.position:t._anchorAxis.domain[Ce[0]],t.title.text!==l._dfltTitle[c]&&(ae[oe]+=K1e(t)+(t.title.standoff||0)),t.mirror&&t.anchor!=="free"&&(_e={x:0,y:0,r:0,l:0,t:0,b:0},_e[Se]=t.linewidth,t.mirror&&t.mirror!==!0&&(_e[Se]+=fe),t.mirror===!0||t.mirror==="ticks"?_e[f]=t._anchorAxis.domain[Ce[1]]:(t.mirror==="all"||t.mirror==="allticks")&&(_e[f]=[t._counterDomainMin,t._counterDomainMax][Ce[1]]))}ce&&(re=FA.getComponentMethod("rangeslider","autoMarginOpts")(e,t)),typeof t.automargin=="string"&&(Z1e(ae,t.automargin),Z1e(_e,t.automargin)),zw.autoMargin(e,CH(t),ae),zw.autoMargin(e,oge(t),_e),zw.autoMargin(e,sge(t),re)}),En.syncOrAsync(Ee)}};function Z1e(e,t){if(e){var r=Object.keys(G1e).reduce(function(i,n){return t.indexOf(n)!==-1&&G1e[n].forEach(function(a){i[a]=1}),i},{});Object.keys(e).forEach(function(i){r[i]||(i.length===1?e[i]=0:delete e[i])})}}function uMt(e,t){var r=[],i,n=function(a,o){var s=a.xbnd[o];s!==null&&r.push(En.extendFlat({},a,{x:s}))};if(t.length){for(i=0;ie.range[1],s=e.ticklabelposition&&e.ticklabelposition.indexOf("inside")!==-1,l=!s;if(r){var u=o?-1:1;r=r*u}if(i){var c=e.side,f=s&&(c==="top"||c==="left")||l&&(c==="bottom"||c==="right")?1:-1;i=i*f}return e._id.charAt(0)==="x"?function(h){return Bw(n+e._offset+e.l2p(wH(h))+r,a+i)}:function(h){return Bw(a+i,n+e._offset+e.l2p(wH(h))+r)}};function wH(e){return e.periodX!==void 0?e.periodX:e.x}function dMt(e){var t=e.ticklabelposition||"",r=e.tickson||"",i=function(d){return t.indexOf(d)!==-1},n=i("top"),a=i("left"),o=i("right"),s=i("bottom"),l=i("inside"),u=r!=="boundaries"&&(s||a||n||o);if(!u&&!l)return[0,0];var c=e.side,f=u?(e.tickwidth||0)/2:0,h=b7,p=e.tickfont?e.tickfont.size:12;return(s||n)&&(f+=p*mb,h+=(e.linewidth||0)/2),(a||o)&&(f+=(e.linewidth||0)/2,h+=b7),l&&c==="top"&&(h-=p*(1-mb)),(a||n)&&(f=-f),(c==="bottom"||c==="right")&&(h=-h),[u?f:0,l?h:0]}Br.makeTickPath=function(e,t,r,i){i||(i={});var n=i.minor;if(n&&!e.minor)return"";var a=i.len!==void 0?i.len:n?e.minor.ticklen:e.ticklen,o=e._id.charAt(0),s=(e.linewidth||1)/2;return o==="x"?"M0,"+(t+s*r)+"v"+a*r:"M"+(t+s*r)+",0h"+a*r};Br.makeLabelFns=function(e,t,r){var i=e.ticklabelposition||"",n=e.tickson||"",a=function(k){return i.indexOf(k)!==-1},o=a("top"),s=a("left"),l=a("right"),u=a("bottom"),c=n!=="boundaries"&&(u||s||o||l),f=a("inside"),h=i==="inside"&&e.ticks==="inside"||!f&&e.ticks==="outside"&&n!=="boundaries",p=0,d=0,v=h?e.ticklen:0;if(f?v*=-1:c&&(v=0),h&&(p+=v,r)){var m=En.deg2rad(r);p=v*Math.cos(m)+1,d=v*Math.sin(m)}e.showticklabels&&(h||e.showline)&&(p+=.2*e.tickfont.size),p+=(e.linewidth||1)/2*(f?-1:1);var g={labelStandoff:p,labelShift:d},w,_,b,S,x=0,A=e.side,T=e._id.charAt(0),y=e.tickangle,E;if(T==="x")E=!f&&A==="bottom"||f&&A==="top",S=E?1:-1,f&&(S*=-1),w=d*S,_=t+p*S,b=E?1:-.2,Math.abs(y)===90&&(f?b+=DA:y===-90&&A==="bottom"?b=mb:y===90&&A==="top"?b=DA:b=.5,x=DA/2*(y/90)),g.xFn=function(k){return k.dx+w+x*k.fontSize},g.yFn=function(k){return k.dy+_+k.fontSize*b},g.anchorFn=function(k,D){if(c){if(s)return"end";if(l)return"start"}return!Pl(D)||D===0||D===180?"middle":D*S<0!==f?"end":"start"},g.heightFn=function(k,D,F){return D<-60||D>60?-.5*F:e.side==="top"!==f?-F:0};else if(T==="y"){if(E=!f&&A==="left"||f&&A==="right",S=E?1:-1,f&&(S*=-1),w=p,_=d*S,b=0,!f&&Math.abs(y)===90&&(y===-90&&A==="left"||y===90&&A==="right"?b=mb:b=.5),f){var M=Pl(y)?+y:0;if(M!==0){var C=En.deg2rad(M);x=Math.abs(Math.sin(C))*mb*S,b=0}}g.xFn=function(k){return k.dx+t-(w+k.fontSize*b)*S+x*k.fontSize},g.yFn=function(k){return k.dy+_+k.fontSize*DA},g.anchorFn=function(k,D){return Pl(D)&&Math.abs(D)===90?"middle":E?"end":"start"},g.heightFn=function(k,D,F){return e.side==="right"&&(D*=-1),D<-30?-F:D<30?-.5*F:0}}return g};function T7(e){return[e.text,e.x,e.axInfo,e.font,e.fontSize,e.fontColor].join("_")}Br.drawTicks=function(e,t,r){r=r||{};var i=t._id+"tick",n=[].concat(t.minor&&t.minor.ticks?r.vals.filter(function(o){return o.minor&&!o.noTick}):[]).concat(t.ticks?r.vals.filter(function(o){return!o.minor&&!o.noTick}):[]),a=r.layer.selectAll("path."+i).data(n,T7);a.exit().remove(),a.enter().append("path").classed(i,1).classed("ticks",1).classed("crisp",r.crisp!==!1).each(function(o){return LA.stroke(xd.select(this),o.minor?t.minor.tickcolor:t.tickcolor)}).style("stroke-width",function(o){return w0.crispRound(e,o.minor?t.minor.tickwidth:t.tickwidth,1)+"px"}).attr("d",r.path).style("display",null),A7(t,[J1e]),a.attr("transform",r.transFn)};Br.drawGrid=function(e,t,r){if(r=r||{},t.tickmode!=="sync"){var i=t._id+"grid",n=t.minor&&t.minor.showgrid,a=n?r.vals.filter(function(g){return g.minor}):[],o=t.showgrid?r.vals.filter(function(g){return!g.minor}):[],s=r.counterAxis;if(s&&Br.shouldShowZeroLine(e,t,s))for(var l=t.tickmode==="array",u=0;u=0;d--){var v=d?h:p;if(v){var m=v.selectAll("path."+i).data(d?o:a,T7);m.exit().remove(),m.enter().append("path").classed(i,1).classed("crisp",r.crisp!==!1),m.attr("transform",r.transFn).attr("d",r.path).each(function(g){return LA.stroke(xd.select(this),g.minor?t.minor.gridcolor:t.gridcolor||"#ddd")}).style("stroke-dasharray",function(g){return w0.dashStyle(g.minor?t.minor.griddash:t.griddash,g.minor?t.minor.gridwidth:t.gridwidth)}).style("stroke-width",function(g){return(g.minor?f:t._gw)+"px"}).style("display",null),typeof r.path=="function"&&m.attr("d",r.path)}}A7(t,[bH,_H])}};Br.drawZeroLine=function(e,t,r){r=r||r;var i=t._id+"zl",n=Br.shouldShowZeroLine(e,t,r.counterAxis),a=r.layer.selectAll("path."+i).data(n?[{x:0,id:t._id}]:[]);a.exit().remove(),a.enter().append("path").classed(i,1).classed("zl",1).classed("crisp",r.crisp!==!1).each(function(){r.layer.selectAll("path").sort(function(o,s){return VAt(o.id,s.id)})}),a.attr("transform",r.transFn).attr("d",r.path).call(LA.stroke,t.zerolinecolor||LA.defaultLine).style("stroke-width",w0.crispRound(e,t.zerolinewidth,t._gw||1)+"px").style("display",null),A7(t,[xH])};Br.drawLabels=function(e,t,r){r=r||{};var i=e._fullLayout,n=t._id,a=t.zerolinelayer==="above traces",o=r.cls||n+"tick",s=r.vals.filter(function(I){return I.text}),l=r.labelFns,u=r.secondary?0:t.tickangle,c=(t._prevTickAngles||{})[o],f=r.layer.selectAll("g."+o).data(t.showticklabels?s:[],T7),h=[];f.enter().append("g").classed(o,1).append("text").attr("text-anchor","middle").each(function(I){var B=xd.select(this),O=e._promises.length;B.call(vb.positionText,l.xFn(I),l.yFn(I)).call(w0.font,{family:I.font,size:I.fontSize,color:I.fontColor,weight:I.fontWeight,style:I.fontStyle,variant:I.fontVariant,textcase:I.fontTextcase,lineposition:I.fontLineposition,shadow:I.fontShadow}).text(I.text).call(vb.convertToTspans,e),e._promises[O]?h.push(e._promises.pop().then(function(){p(B,u)})):p(B,u)}),A7(t,[V1e]),f.exit().remove(),r.repositionOnUpdate&&f.each(function(I){xd.select(this).select("text").call(vb.positionText,l.xFn(I),l.yFn(I))});function p(I,B){I.each(function(O){var $=xd.select(this),X=$.select(".text-math-group"),K=l.anchorFn(O,B),G=r.transFn.call($.node(),O)+(Pl(B)&&+B!=0?" rotate("+B+","+l.xFn(O)+","+(l.yFn(O)-O.fontSize/2)+")":""),q=vb.lineCount($),J=IA*O.fontSize,N=l.heightFn(O,Pl(B)?+B:0,(q-1)*J);if(N&&(G+=Bw(0,N)),X.empty()){var V=$.select("text");V.attr({transform:G,"text-anchor":K}),V.style("display",null),t._adjustTickLabelsOverflow&&t._adjustTickLabelsOverflow()}else{var Y=w0.bBox(X.node()).width,H=Y*{end:-.5,start:.5}[K];X.attr("transform",G+Bw(H,0))}})}t._adjustTickLabelsOverflow=function(){var I=t.ticklabeloverflow;if(!(!I||I==="allow")){var B=I.indexOf("hide")!==-1,O=t._id.charAt(0)==="x",$=0,X=O?e._fullLayout.width:e._fullLayout.height;if(I.indexOf("domain")!==-1){var K=En.simpleMap(t.range,t.r2l);$=t.l2p(K[0])+t._offset,X=t.l2p(K[1])+t._offset}var G=Math.min($,X),q=Math.max($,X),J=t.side,N=1/0,V=-1/0;f.each(function(Q){var te=xd.select(this),ue=te.select(".text-math-group");if(ue.empty()){var ge=w0.bBox(te.node()),Ee=0;O?(ge.right>q||ge.leftq||ge.top+(t.tickangle?0:Q.fontSize/4)t["_visibleLabelMin_"+K._id]?te.style("display","none"):q.K==="tick"&&!G&&te.node().style.display!=="none"&&te.style("display",null)})})})})},p(f,c+1?c:u);function d(){return h.length&&Promise.all(h)}var v=null;function m(){if(p(f,u),s.length&&t.autotickangles&&(t.type!=="log"||String(t.dtick).charAt(0)!=="D")){v=t.autotickangles[0];var I=0,B=[],O,$=1;f.each(function(ae){I=Math.max(I,ae.fontSize);var _e=t.l2p(ae.x),re=TH(this),pe=w0.bBox(re.node());$=Math.max($,vb.lineCount(re)),B.push({top:0,bottom:10,height:10,left:_e-pe.width/2,right:_e+pe.width/2+2,width:pe.width+2})});var X=(t.tickson==="boundaries"||t.showdividers)&&!r.secondary,K=s.length,G=Math.abs((s[K-1].x-s[0].x)*t._m)/(K-1),q=X?G/2:G,J=X?t.ticklen:I*1.25*$,N=Math.sqrt(Math.pow(q,2)+Math.pow(J,2)),V=q/N,Y=t.autotickangles.map(function(ae){return ae*Math.PI/180}),H=Y.find(function(ae){return Math.abs(Math.cos(ae))<=V});H===void 0&&(H=Y.reduce(function(ae,_e){return Math.abs(Math.cos(ae))P*F&&(C=F,y[T]=E[T]=k[T])}var R=Math.abs(C-M);R-S>0?(R-=S,S*=1+S/R):S=0,t._id.charAt(0)!=="y"&&(S=-S),y[A]=_.p2r(_.r2p(E[A])+x*S),_.autorange==="min"||_.autorange==="max reversed"?(y[0]=null,_._rangeInitial0=void 0,_._rangeInitial1=void 0):(_.autorange==="max"||_.autorange==="min reversed")&&(y[1]=null,_._rangeInitial0=void 0,_._rangeInitial1=void 0),i._insideTickLabelsUpdaterange[_._name+".range"]=y}var L=En.syncOrAsync(g);return L&&L.then&&e._promises.push(L),L};function pMt(e,t,r){var i=t._id+"divider",n=r.vals,a=r.layer.selectAll("path."+i).data(n,T7);a.exit().remove(),a.enter().insert("path",":first-child").classed(i,1).classed("crisp",1).call(LA.stroke,t.dividercolor).style("stroke-width",w0.crispRound(e,t.dividerwidth,1)+"px"),a.attr("transform",r.transFn).attr("d",r.path)}Br.getPxPosition=function(e,t){var r=e._fullLayout._size,i=t._id.charAt(0),n=t.side,a;if(t.anchor!=="free"?a=t._anchorAxis:i==="x"?a={_offset:r.t+(1-(t.position||0))*r.h,_length:0}:i==="y"&&(a={_offset:r.l+(t.position||0)*r.w+t._shift,_length:0}),n==="top"||n==="left")return a._offset;if(n==="bottom"||n==="right")return a._offset+a._length};function K1e(e){var t=e.title.font.size,r=(e.title.text.match(vb.BR_TAG_ALL)||[]).length;return e.title.hasOwnProperty("standoff")?t*(mb+r*IA):r?t*(r+1)*IA:t}function vMt(e,t){var r=e._fullLayout,i=t._id,n=i.charAt(0),a=t.title.font.size,o,s=(t.title.text.match(vb.BR_TAG_ALL)||[]).length;if(t.title.hasOwnProperty("standoff"))t.side==="bottom"||t.side==="right"?o=t._depth+t.title.standoff+a*mb:(t.side==="top"||t.side==="left")&&(o=t._depth+t.title.standoff+a*(DA+s*IA));else{var l=zA(t);if(t.type==="multicategory")o=t._depth;else{var u=1.5*a;l&&(u=.5*a,t.ticks==="outside"&&(u+=t.ticklen)),o=10+u+(t.linewidth?t.linewidth-1:0)}l||(n==="x"?o+=t.side==="top"?a*(t.showticklabels?1:0):a*(t.showticklabels?1.5:.5):o+=t.side==="right"?a*(t.showticklabels?1:.5):a*(t.showticklabels?.5:0))}var c=Br.getPxPosition(e,t),f,h,p;n==="x"?(h=t._offset+t._length/2,p=t.side==="top"?c-o:c+o):(p=t._offset+t._length/2,h=t.side==="right"?c+o:c-o,f={rotate:"-90",offset:0});var d;if(t.type!=="multicategory"){var v=t._selections[t._id+"tick"];if(d={selection:v,side:t.side},v&&v.node()&&v.node().parentNode){var m=w0.getTranslate(v.node().parentNode);d.offsetLeft=m.x,d.offsetTop=m.y}t.title.hasOwnProperty("standoff")&&(d.pad=0)}return t._titleStandoff=o,PAt.draw(e,i+"title",{propContainer:t,propName:t._name+".title.text",placeholder:r._dfltTitle[n],avoid:d,transform:f,attributes:{x:h,y:p,"text-anchor":"middle"}})}Br.shouldShowZeroLine=function(e,t,r){var i=En.simpleMap(t.range,t.r2l);return i[0]*i[1]<=0&&t.zeroline&&(t.type==="linear"||t.type==="-")&&!(t.rangebreaks&&t.maskBreaks(0)===_7)&&(age(t,0)||!gMt(e,t,r,i)||mMt(e,t))};Br.clipEnds=function(e,t){return t.filter(function(r){return age(e,r.x)})};function age(e,t){var r=e.l2p(t);return r>1&&r1)for(n=1;n=n.min&&e=OAt:/%L/.test(t)?e>=qAt:/%[SX]/.test(t)?e>=x7:/%M/.test(t)?e>=PA:/%[HI]/.test(t)?e>=m1:/%p/.test(t)?e>=Uy:/%[Aadejuwx]/.test(t)?e>=Sf:/%[UVW]/.test(t)?e>=T0:/%[Bbm]/.test(t)?e>=y7:/%[q]/.test(t)?e>=m7:/%[Yy]/.test(t)?e>=g7:!0}});var FH=W((xOr,uge)=>{"use strict";uge.exports=function(t,r,i){var n,a;if(i){var o=r==="reversed"||r==="min reversed"||r==="max reversed";n=i[o?1:0],a=i[o?0:1]}var s=t("autorangeoptions.minallowed",a===null?n:void 0),l=t("autorangeoptions.maxallowed",n===null?a:void 0);s===void 0&&t("autorangeoptions.clipmin"),l===void 0&&t("autorangeoptions.clipmax"),t("autorangeoptions.include")}});var LH=W((bOr,cge)=>{"use strict";var TMt=FH();cge.exports=function(t,r,i,n){var a=r._template||{},o=r.type||a.type||"-";i("minallowed"),i("maxallowed");var s=i("range");if(!s){var l;!n.noInsiderange&&o!=="log"&&(l=i("insiderange"),l&&(l[0]===null||l[1]===null)&&(r.insiderange=!1,l=void 0),l&&(s=i("range",l)))}var u=r.getAutorangeDflt(s,n),c=i("autorange",u),f;s&&(s[0]===null&&s[1]===null||(s[0]===null||s[1]===null)&&(c==="reversed"||c===!0)||s[0]!==null&&(c==="min"||c==="max reversed")||s[1]!==null&&(c==="max"||c==="min reversed"))&&(s=void 0,delete r.range,r.autorange=!0,f=!0),f||(u=r.getAutorangeDflt(s,n),c=i("autorange",u)),c&&(TMt(i,c,s),(o==="linear"||o==="-")&&i("rangemode")),r.cleanRange()}});var hge=W((_Or,fge)=>{var AMt={left:0,top:0};fge.exports=MMt;function MMt(e,t,r){t=t||e.currentTarget||e.srcElement,Array.isArray(r)||(r=[0,0]);var i=e.clientX||0,n=e.clientY||0,a=SMt(t);return r[0]=i-a.left,r[1]=n-a.top,r}function SMt(e){return e===window||e===document||e===document.body?AMt:e.getBoundingClientRect()}});var M7=W((wOr,dge)=>{"use strict";var EMt=uG();function kMt(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch(r){e=!1}return e}dge.exports=EMt&&kMt()});var vge=W((TOr,pge)=>{"use strict";pge.exports=function(t,r,i,n,a){var o=(t-i)/(n-i),s=o+r/(n-i),l=(o+s)/2;return a==="left"||a==="bottom"?o:a==="center"||a==="middle"?l:a==="right"||a==="top"?s:o<2/3-l?o:s>4/3-l?s:l}});var yge=W((AOr,mge)=>{"use strict";var gge=tt(),CMt=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];mge.exports=function(t,r,i,n){return i==="left"?t=0:i==="center"?t=1:i==="right"?t=2:t=gge.constrain(Math.floor(t*3),0,2),n==="bottom"?r=0:n==="middle"?r=1:n==="top"?r=2:r=gge.constrain(Math.floor(r*3),0,2),CMt[r][t]}});var bge=W((MOr,xge)=>{"use strict";var DMt=ww(),FMt=CD(),LMt=hA().getGraphDiv,PMt=(W6(),Pt($6)),PH=xge.exports={};PH.wrapped=function(e,t,r){var a;e=LMt(e),e._fullLayout&&FMt.clear(e._fullLayout._uid+PMt.HOVERID);let i=e._hoverdata;PH.raw(e,t,r)&&e._hoverAnywhereActive&&(e._hoverAnywhereActive=!1,(a=e._fullLayout)!=null&&a.hoveranywhere&&(t!=null&&t.target)&&!i&&e.emit("plotly_unhover",{event:t,points:[]}))};PH.raw=function(t,r){var i=t._fullLayout,n=t._hoverdata;return r||(r={}),r.target&&!t._dragged&&DMt.triggerHandler(t,"plotly_beforehover",r)===!1?!1:(i._hoverlayer.selectAll("g").remove(),i._hoverlayer.selectAll("line").remove(),i._hoverlayer.selectAll("circle").remove(),t._hoverdata=void 0,r.target&&n&&t.emit("plotly_unhover",{event:r,points:n}),!0)}});var Ef=W((SOr,Age)=>{"use strict";var IMt=hge(),IH=fG(),RMt=M7(),zMt=tt().removeElement,BMt=(Zl(),Pt(Xl)),yb=Age.exports={};yb.align=vge();yb.getCursor=yge();var wge=bge();yb.unhover=wge.wrapped;yb.unhoverRaw=wge.raw;yb.init=function(t){var r=t.gd,i=1,n=r._context.doubleClickDelay,a=t.element,o,s,l,u,c,f,h,p;r._mouseDownTime||(r._mouseDownTime=0),a.style.pointerEvents="all",a.onmousedown=m,RMt?(a._ontouchstart&&a.removeEventListener("touchstart",a._ontouchstart),a._ontouchstart=m,a.addEventListener("touchstart",m,{passive:!1})):a.ontouchstart=m;function d(_,b,S){return Math.abs(_)n&&(i=Math.max(i-1,1)),r._dragged)t.doneFn&&t.doneFn();else{var b;f.target===h?b=f:(b={target:h,srcElement:h,toElement:h},Object.keys(f).concat(Object.keys(f.__proto__)).forEach(S=>{var x=f[S];!b[S]&&typeof x!="function"&&(b[S]=x)})),t.clickFn&&t.clickFn(i,b),p||h.dispatchEvent(new MouseEvent("click",_))}r._dragging=!1,r._dragged=!1}};function Tge(){var e=document.createElement("div");e.className="dragcover";var t=e.style;return t.position="fixed",t.left=0,t.right=0,t.top=0,t.bottom=0,t.zIndex=999999999,t.background="none",document.body.appendChild(e),e}yb.coverSlip=Tge;function _ge(e){return IMt(e.changedTouches?e.changedTouches[0]:e,document.body)}});var Xp=W((EOr,Mge)=>{"use strict";Mge.exports=function(t,r){(t.attr("class")||"").split(" ").forEach(function(i){i.indexOf("cursor-")===0&&t.classed(i,!1)}),r&&t.classed("cursor-"+r,!0)}});var kge=W((kOr,Ege)=>{"use strict";var RH=Xp(),BA="data-savedcursor",Sge="!!";Ege.exports=function(t,r){var i=t.attr(BA);if(r){if(!i){for(var n=(t.attr("class")||"").split(" "),a=0;ajMt,itemGap:()=>HMt,itemHeightPad:()=>WMt,itemMinHeight:()=>$Mt,scrollBarColor:()=>NMt,scrollBarEnterAttrs:()=>VMt,scrollBarMargin:()=>UMt,scrollBarMinHeight:()=>OMt,scrollBarWidth:()=>qMt,titlePad:()=>GMt});var qMt,OMt,NMt,UMt,VMt,GMt,HMt,jMt,$Mt,WMt,E7=Ci(()=>{"use strict";qMt=6,OMt=20,NMt="#808BA4",UMt=4,VMt={rx:20,ry:3,width:0,height:0},GMt=2,HMt=5,jMt=6,$Mt=16,WMt=3});var BH=W((COr,Dge)=>{"use strict";var zH=jo(),YMt=Yl(),{dfltFillHeight:Cge}=(E7(),Pt(S7));Dge.exports={_isSubplotObj:!0,visible:{valType:"boolean",dflt:!0,editType:"legend"},bgcolor:{valType:"color",editType:"legend"},bordercolor:{valType:"color",dflt:YMt.defaultLine,editType:"legend"},maxheight:{valType:"number",min:0,editType:"legend"},borderwidth:{valType:"number",min:0,dflt:0,editType:"legend"},font:zH({editType:"legend"}),grouptitlefont:zH({editType:"legend"}),orientation:{valType:"enumerated",values:["v","h"],dflt:"v",editType:"legend"},traceorder:{valType:"flaglist",flags:["reversed","grouped"],extras:["normal"],editType:"legend"},tracegroupgap:{valType:"number",min:0,dflt:10,editType:"legend"},entrywidth:{valType:"number",min:0,editType:"legend"},entrywidthmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels",editType:"legend"},indentation:{valType:"number",min:-15,dflt:0,editType:"legend"},itemsizing:{valType:"enumerated",values:["trace","constant"],dflt:"trace",editType:"legend"},itemwidth:{valType:"number",min:30,dflt:30,editType:"legend"},itemheight:{valType:"number",min:Cge,dflt:Cge,editType:"legend"},itemclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggle",editType:"legend"},itemdoubleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggleothers",editType:"legend"},groupclick:{valType:"enumerated",values:["toggleitem","togglegroup"],dflt:"togglegroup",editType:"legend"},groupdoubleclick:{valType:"enumerated",values:["toggleitem","togglegroup"],editType:"legend"},titleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],editType:"legend"},titledoubleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],editType:"legend"},x:{valType:"number",editType:"legend"},xref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"legend"},y:{valType:"number",editType:"legend"},yref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],editType:"legend"},uirevision:{valType:"any",editType:"none"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"legend"},title:{text:{valType:"string",dflt:"",editType:"legend"},font:zH({editType:"legend"}),side:{valType:"enumerated",values:["top","left","top left","top center","top right"],editType:"legend"},editType:"legend"},editType:"legend"}});var OA=W(qA=>{"use strict";qA.isGrouped=function(t){return(t.traceorder||"").indexOf("grouped")!==-1};qA.isVertical=function(t){return t.orientation!=="h"};qA.isReversed=function(t){return(t.traceorder||"").indexOf("reversed")!==-1};qA.getId=function(t){return t._id||"legend"}});var OH=W((FOr,Fge)=>{"use strict";var k7=xi(),A0=tt(),XMt=Ra(),ZMt=Ja(),KMt=BH(),JMt=pw(),qH=OA();function QMt(e,t,r,i,n){var a=t[e]||{},o=XMt.newContainer(r,e);function s(B,O){return A0.coerce(a,o,KMt,B,O)}var l=A0.coerceFont(s,"font",r.font);s("bgcolor",r.paper_bgcolor),s("bordercolor");var u=s("visible");if(!u)return;var c,f=function(B,O){var $=c._input,X=c;return A0.coerce($,X,ZMt,B,O)},h=r.font||{},p=A0.coerceFont(s,"grouptitlefont",h,{overrideDflt:{size:Math.round(h.size*1.1)}}),d=0,v=!1,m="normal",g=(r.shapes||[]).filter(function(B){return B.showlegend});function w(B){return k7.traceIs(B,"pie-like")&&B._length!=null&&(Array.isArray(B.legend)||Array.isArray(B.showlegend))}i.filter(w).forEach(function(B){B.visible&&d++;for(var O=0;OB.legend.length)for(var X=B.legend.length;X(e==="legend"?1:0));if(x===!1&&(r[e]=void 0),x===!1&&!a.uirevision||(s("uirevision",r.uirevision),x===!1))return;s("borderwidth");var A=s("orientation"),T=s("yref"),y=s("xref"),E=A==="h",M=T==="paper",C=y==="paper",k,D,F,P="left";E?(k=0,k7.getComponentMethod("rangeslider","isVisible")(t.xaxis)?M?(D=1.1,F="bottom"):(D=1,F="top"):M?(D=-.1,F="top"):(D=0,F="bottom")):(D=1,F="auto",C?k=1.02:(k=1,P="right")),A0.coerce(a,o,{x:{valType:"number",editType:"legend",min:C?-2:0,max:C?3:1,dflt:k}},"x"),A0.coerce(a,o,{y:{valType:"number",editType:"legend",min:M?-2:0,max:M?3:1,dflt:D}},"y"),s("traceorder",m),qH.isGrouped(r[e])&&s("tracegroupgap"),s("entrywidth"),s("entrywidthmode"),s("indentation"),s("itemsizing"),s("itemwidth"),s("itemheight"),s("itemclick"),s("itemdoubleclick");let R=s("groupclick");s("groupdoubleclick",R),s("xanchor",P),s("yanchor",F),s("maxheight"),s("valign"),A0.noneOrAll(a,o,["x","y"]);var L=s("title.text");if(L){s("title.side",E?"left":"top");var I=A0.extendFlat({},l,{size:A0.bigFont(l.size)});A0.coerceFont(s,"title.font",I);let B=n>1;s("titleclick",B?"toggle":!1),s("titledoubleclick",B?"toggleothers":!1)}}Fge.exports=function(t,r,i){var n,a=i.slice(),o=r.shapes;if(o)for(n=0;n{"use strict";var Vy=xi(),NH=tt(),eSt=NH.pushUnique,tSt=OA(),Lge=!0;UH.handleItemClick=function(t,r,i,n,a){var o=r._fullLayout;if(r._dragged||r._editing)return;var s=t.data()[0][0];if(s.groupTitle&&s.noClick)return;let l=a===2?i.groupdoubleclick:i.groupclick;n==="toggle"&&i.itemdoubleclick==="toggleothers"&&Lge&&r.data&&r._context.showTips&&(NH.notifier(NH._(r,"Double-click on legend to isolate one trace"),"long",r),Lge=!1);var u=l==="togglegroup",c=o.hiddenlabels?o.hiddenlabels.slice():[],f=r._fullData;let h=(o.shapes||[]).filter(xe=>xe.showlegend||xe.legendgroup);var p=f.concat(h),d=s.trace;d._isShape&&(d=o.shapes[d.index]);var v=d.legendgroup,m,g,w,_,b,S,x={},A=[],T=[],y=[];function E(xe,ce){var oe=A.indexOf(xe),Se=x.visible;return Se||(Se=x.visible=[]),A.indexOf(xe)===-1&&(A.push(xe),oe=A.length-1),Se[oe]=ce,oe}var M=(o.shapes||[]).map(function(xe){return xe._input}),C=!1;function k(xe,ce){M[xe].visible=ce,C=!0}function D(xe,ce){if(!(s.groupTitle&&!u)){var oe=xe._isShape,Se=xe.index;Se===void 0&&(Se=xe._index);var be=xe.visible===!1?!1:ce;oe?k(Se,be):E(Se,be)}}var F=d.legend;if(!d._isShape&&Vy.traceIs(d,"pie-like")){var P=s.label,R=c.indexOf(P);if(n==="toggle")R===-1?c.push(P):c.splice(R,1);else if(n==="toggleothers"){var L=R!==-1,I=[];for(m=0;mg.showlegend||g.legendgroup),l=a.concat(s);function u(g){return(g.legend||"legend")===o}var c,f;if(i==="toggle")c=!l.some(function(w){return u(w)&&w.visible===!0}),f=!1;else{let g=l.some(function(w){return!u(w)&&w.visible===!0&&w.showlegend!==!1});c=!0,f=!g}let h={visible:[]},p=[],d=(n.shapes||[]).map(function(g){return g._input});for(var v=!1,m=0;m{"use strict";var{isArrayOrTypedArray:GH}=Tc(),Pge=xi(),HH=OA();Ige.exports=function(t,r,i){var n=r._inHover,a=HH.isGrouped(r),o=HH.isReversed(r),s={},l=[],u=!1,c={},f=0,h=0,p,d;function v(B,O,$){if(r.visible!==!1&&!(i&&B!==r._id))if(O===""||!HH.isGrouped(r)){var X="~~i"+f;l.push(X),s[X]=[$],f++}else l.indexOf(O)===-1?(l.push(O),u=!0,s[O]=[$]):s[O].push($)}for(p=0;pk&&(M=k)}y[p][0]._groupMinRank=M,y[p][0]._preGroupSort=p}var D=function(B,O){return B[0]._groupMinRank-O[0]._groupMinRank||B[0]._preGroupSort-O[0]._preGroupSort},F=function(B,O){var $=GH(B.trace.legendrank)?B.trace.legendrank[B.i]:B.trace.legendrank,X=GH(O.trace.legendrank)?O.trace.legendrank[O.i]:O.trace.legendrank;return $-X||B._preSort-O._preSort};for(y.forEach(function(B,O){B[0]._preGroupSort=O}),y.sort(D),p=0;p{"use strict";var C7=tt();function zge(e){return e.indexOf("e")!==-1?e.replace(/[.]?0+e/,"e"):e.indexOf(".")!==-1?e.replace(/[.]?0+$/,""):e}xb.formatPiePercent=function(t,r){var i=zge((t*100).toPrecision(3));return C7.numSeparate(i,r)+"%"};xb.formatPieValue=function(t,r){var i=zge(t.toPrecision(10));return C7.numSeparate(i,r)};xb.getFirstFilled=function(t,r){if(C7.isArrayOrTypedArray(t))for(var i=0;i{"use strict";var rSt=Qi(),iSt=ti();Bge.exports=function(t,r,i,n){var a=i.marker.pattern;a&&a.shape?rSt.pointStyle(t,i,n,r):iSt.fill(t,r.color)}});var Nw=W((zOr,Uge)=>{"use strict";var Oge=ti(),Nge=Gy().castOption,nSt=qge();Uge.exports=function(t,r,i,n){var a=i.marker.line,o=Nge(a.color,r.pts)||Oge.defaultLine,s=Nge(a.width,r.pts)||0;t.call(nSt,r,i,n).style("stroke-width",s).call(Oge.stroke,o)}});var XH=W((BOr,$ge)=>{"use strict";var kf=gi(),jH=xi(),nf=tt(),$H=nf.strTranslate,M0=Qi(),bd=ti(),WH=Sc().extractOpts,F7=Wo(),aSt=Nw(),oSt=Gy().castOption,Vge=(E7(),Pt(S7)),Gge=12,Hge=5,bb=2,sSt=10,Uw=5;$ge.exports=function(t,r,i){var n=r._fullLayout;i||(i=n.legend);var a=i.itemsizing==="constant",o=i.itemwidth,s=i.itemheight,l=(o+Vge.itemGap*2)/2,u=$H(l,0),c=function(T,y,E,M){var C;if(T+1)C=T;else if(y&&y.width>0)C=y.width;else return 0;return a?M:Math.min(C,E)};t.each(function(T){var y=kf.select(this),E=nf.ensureSingle(y,"g","layers");E.style("opacity",T[0].trace.opacity);var M=i.indentation,C=i.valign,k=T[0].lineHeight,D=T[0].height;if(C==="middle"&&M===0||!k||!D)E.attr("transform",null);else{var F={top:1,bottom:-1}[C],P=F*(.5*(k-D+3))||0,R=i.indentation;E.attr("transform",$H(R,P))}var L=E.selectAll("g.legendfill").data([T]);L.enter().append("g").classed("legendfill",!0);var I=E.selectAll("g.legendlines").data([T]);I.enter().append("g").classed("legendlines",!0);var B=E.selectAll("g.legendsymbols").data([T]);B.enter().append("g").classed("legendsymbols",!0),B.selectAll("g.legendpoints").data([T]).enter().append("g").classed("legendpoints",!0)}).each(A).each(p).each(v).each(d).each(g).each(S).each(b).each(f).each(h).each(w).each(_);function f(T){var y=jge(T),E=y.showFill,M=y.showLine,C=y.showGradientLine,k=y.showGradientFill,D=y.anyFill,F=y.anyLine,P=T[0],R=P.trace,L,I,B=WH(R),O=B.colorscale,$=B.reversescale,X=function(H){if(H.size())if(E)M0.fillGroupStyle(H,r,!0);else{var j="legendfill-"+R.uid;M0.gradient(H,r,j,YH($),O,"fill")}},K=function(H){if(H.size()){var j="legendline-"+R.uid;M0.lineGroupStyle(H),M0.gradient(H,r,j,YH($),O,"stroke")}},G=F7.hasMarkers(R)||!D?"M5,0":F?"M5,-2":"M5,-3",q=kf.select(this),J=q.select(".legendfill").selectAll("path").data(E||k?[T]:[]);J.enter().append("path").classed("js-fill",!0),J.exit().remove(),J.attr("d",G+"h"+o+"v"+s+"h-"+o+"z").call(X);let N=E||k?(Vge.dfltFillHeight-s)/2:0;if(q.selectAll("g.legendfill, g.legendlines, g.legendsymbols").attr("transform",N?$H(0,N):null),M||C){var V=c(void 0,R.line,sSt,Hge);I=nf.minExtend(R,{line:{width:V}}),L=[nf.minExtend(P,{trace:I})]}var Y=q.select(".legendlines").selectAll("path").data(M||C?[L]:[]);Y.enter().append("path").classed("js-line",!0),Y.exit().remove(),Y.attr("d",G+(C?"l"+o+",0.0001":"h"+o)).call(M?M0.lineGroupStyle:K)}function h(T){var y=jge(T),E=y.anyFill,M=y.anyLine,C=y.showLine,k=y.showMarker,D=T[0],F=D.trace,P=!k&&!M&&!E&&F7.hasText(F),R,L;function I(N,V,Y,H){var j=nf.nestedProperty(F,N).get(),Q=nf.isArrayOrTypedArray(j)&&V?V(j):j;if(a&&Q&&H!==void 0&&(Q=H),Y){if(QY[1])return Y[1]}return Q}function B(N){return D._distinct&&D.index&&N[D.index]?N[D.index]:N[0]}if(k||P||C){var O={},$={};if(k){O.mc=I("marker.color",B);var X=F.type==="scattermap";O.mx=X?"circle":I("marker.symbol",B),O.mo=I("marker.opacity",nf.mean,[.2,1]),O.mlc=I("marker.line.color",B),O.mlw=I("marker.line.width",nf.mean,[0,5],bb),O.mld=I("marker.line.dash",B),$.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var K=I("marker.size",nf.mean,[2,16],Gge);O.ms=K,$.marker.size=K}C&&($.line={width:I("line.width",B,[0,10],Hge)}),P&&(O.tx="Aa",O.tp=I("textposition",B),O.ts=10,O.tc=I("textfont.color",B),O.tf=I("textfont.family",B),O.tw=I("textfont.weight",B),O.ty=I("textfont.style",B),O.tv=I("textfont.variant",B),O.tC=I("textfont.textcase",B),O.tE=I("textfont.lineposition",B),O.tS=I("textfont.shadow",B)),R=[nf.minExtend(D,O)],L=nf.minExtend(F,$),L.selectedpoints=null,L.texttemplate=null}var G=kf.select(this).select("g.legendpoints"),q=G.selectAll("path.scatterpts").data(k?R:[]);q.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",u),q.exit().remove(),q.call(M0.pointStyle,L,r),k&&(R[0].mrc=3);var J=G.selectAll("g.pointtext").data(P?R:[]);J.enter().append("g").classed("pointtext",!0).append("text").attr("transform",u),J.exit().remove(),J.selectAll("text").call(M0.textPointStyle,L,r)}function p(T){var y=T[0].trace,E=y.type==="waterfall";if(T[0]._distinct&&E){var M=T[0].trace[T[0].dir].marker;return T[0].mc=M.color,T[0].mlw=M.line.width,T[0].mlc=M.line.color,m(T,this,"waterfall")}var C=[];y.visible&&E&&(C=T[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 k=kf.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data(C);k.enter().append("path").classed("legendwaterfall",!0).attr("transform",u).style("stroke-miterlimit",1),k.exit().remove(),k.each(function(D){var F=kf.select(this),P=y[D[0]].marker,R=c(void 0,P.line,Uw,bb);F.attr("d",D[1]).style("stroke-width",R+"px").call(bd.fill,P.color),R&&F.call(bd.stroke,P.line.color)})}function d(T){m(T,this)}function v(T){m(T,this,"funnel")}function m(T,y,E){var M=T[0].trace,C=M.marker||{},k=C.line||{},D=C.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",F=E?M.visible&&M.type===E:jH.traceIs(M,"bar"),P=kf.select(y).select("g.legendpoints").selectAll("path.legend"+E).data(F?[T]:[]);P.enter().append("path").classed("legend"+E,!0).attr("d",D).attr("transform",u),P.exit().remove(),P.each(function(R){var L=kf.select(this),I=R[0],B=c(I.mlw,C.line,Uw,bb);L.style("stroke-width",B+"px");var O=I.mcc;if(!i._inHover&&"mc"in I){var $=WH(C),X=$.mid;X===void 0&&(X=($.max+$.min)/2),O=M0.tryColorscale(C,"")(X)}var K=O||I.mc||C.color,G=C.pattern,q=M0.getPatternAttr;let J=0;i._inHover&&I._distinct&&I.index!=null&&(J=I.index);let N=G&&(q(G.shape,J,"")||q(G.path,J,""));if(N){let Y=q(G.bgcolor,J,null),H=q(G.fgcolor,J,null);var V=G.fgopacity;let j=i._inHover?D7(q(G.size,J,8),8,10):D7(G.size,8,10),Q=i._inHover?D7(q(G.solidity,J,.5),.5,1):D7(G.solidity,.5,1),te=i._inHover?`hover-${M.uid}-${J}`:`legend-${M.uid}`;L.call(M0.pattern,"legend",r,te,N,j,Q,O,G.fillmode,Y,H,V)}else L.call(bd.fill,K);B&&bd.stroke(L,I.mlc||k.color)})}function g(T){var y=T[0].trace,E=kf.select(this).select("g.legendpoints").selectAll("path.legendbox").data(y.visible&&jH.traceIs(y,"box-violin")?[T]:[]);E.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform",u),E.exit().remove(),E.each(function(){var M=kf.select(this);if((y.boxpoints==="all"||y.points==="all")&&bd.opacity(y.fillcolor)===0&&bd.opacity((y.line||{}).color)===0){var C=nf.minExtend(y,{marker:{size:a?Gge:nf.constrain(y.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});E.call(M0.pointStyle,C,r)}else{var k=c(void 0,y.line,Uw,bb);M.style("stroke-width",k+"px").call(bd.fill,y.fillcolor),k&&bd.stroke(M,y.line.color)}})}function w(T){var y=T[0].trace,E=kf.select(this).select("g.legendpoints").selectAll("path.legendcandle").data(y.visible&&y.type==="candlestick"?[T,T]:[]);E.enter().append("path").classed("legendcandle",!0).attr("d",function(M,C){return C?"M-15,0H-8M-8,6V-6H8Z":"M15,0H8M8,-6V6H-8Z"}).attr("transform",u).style("stroke-miterlimit",1),E.exit().remove(),E.each(function(M,C){var k=kf.select(this),D=y[C?"increasing":"decreasing"],F=c(void 0,D.line,Uw,bb);k.style("stroke-width",F+"px").call(bd.fill,D.fillcolor),F&&bd.stroke(k,D.line.color)})}function _(T){var y=T[0].trace,E=kf.select(this).select("g.legendpoints").selectAll("path.legendohlc").data(y.visible&&y.type==="ohlc"?[T,T]:[]);E.enter().append("path").classed("legendohlc",!0).attr("d",function(M,C){return C?"M-15,0H0M-8,-6V0":"M15,0H0M8,6V0"}).attr("transform",u).style("stroke-miterlimit",1),E.exit().remove(),E.each(function(M,C){var k=kf.select(this),D=y[C?"increasing":"decreasing"],F=c(void 0,D.line,Uw,bb);k.style("fill","none").call(M0.dashLine,D.line.dash,F),F&&bd.stroke(k,D.line.color)})}function b(T){x(T,this,"pie")}function S(T){x(T,this,"funnelarea")}function x(T,y,E){var M=T[0],C=M.trace,k=E?C.visible&&C.type===E:jH.traceIs(C,E),D=kf.select(y).select("g.legendpoints").selectAll("path.legend"+E).data(k?[T]:[]);if(D.enter().append("path").classed("legend"+E,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",u),D.exit().remove(),D.size()){var F=C.marker||{},P=c(oSt(F.line.width,M.pts),F.line,Uw,bb),R="pieLike",L=nf.minExtend(C,{marker:{line:{width:P}}},R),I=nf.minExtend(M,{trace:L},R);aSt(D,I,L,r)}}function A(T){var y=T[0].trace,E,M=[];if(y.visible)switch(y.type){case"histogram2d":case"heatmap":M=[["M-15,-2V4H15V-2Z"]],E=!0;break;case"choropleth":case"choroplethmap":M=[["M-6,-6V6H6V-6Z"]],E=!0;break;case"densitymap":M=[["M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"]],E="radial";break;case"cone":M=[["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"]],E=!1;break;case"streamtube":M=[["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"]],E=!1;break;case"surface":M=[["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"]],E=!0;break;case"mesh3d":M=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],E=!1;break;case"volume":M=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],E=!0;break;case"isosurface":M=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6 A12,24 0 0,0 6,-6 L0,6Z"]],E=!1;break}var C=kf.select(this).select("g.legendpoints").selectAll("path.legend3dandfriends").data(M);C.enter().append("path").classed("legend3dandfriends",!0).attr("transform",u).style("stroke-miterlimit",1),C.exit().remove(),C.each(function(k,D){var F=kf.select(this),P=WH(y),R=P.colorscale,L=P.reversescale,I=function(X){if(X.size()){var K="legendfill-"+y.uid;M0.gradient(X,r,K,YH(L,E==="radial"),R,"fill")}},B;if(R){if(!E){var $=R.length;B=D===0?R[L?$-1:0][1]:D===1?R[L?0:$-1][1]:R[Math.floor(($-1)/2)][1]}}else{var O=y.vertexcolor||y.facecolor||y.color;B=nf.isArrayOrTypedArray(O)?O[D]||O[0]:O}F.attr("d",k[0]),B?F.call(bd.fill,B):F.call(I)})}};function YH(e,t){var r=t?"radial":"horizontal";return r+(e?"":"reversed")}function jge(e){var t=e[0].trace,r=t.contours,i=F7.hasLines(t)||t.visible&&t.type==="quiver",n=F7.hasMarkers(t),a=t.visible&&t.fill&&t.fill!=="none",o=!1,s=!1;if(r){var l=r.coloring;l==="lines"?o=!0:i=l==="none"||l==="heatmap"||r.showlines,r.type==="constraint"?a=r._operation!=="=":(l==="fill"||l==="heatmap")&&(s=!0)}return{showMarker:n,showLine:i,showFill:a,showGradientLine:o,showGradientFill:s,anyLine:i||o,anyFill:a||s}}function D7(e,t,r){return e&&nf.isArrayOrTypedArray(e)?t:e>r?r:e}});var QH=W((qOr,tme)=>{"use strict";var Cf=gi(),Il=tt(),KH=Qo(),_b=xi(),I7=ww(),ZH=Ef(),Rl=Qi(),NA=ti(),Wg=ao(),Wge=VH().handleItemClick,Yge=VH().handleTitleClick,js=(E7(),Pt(S7)),JH=(Jl(),Pt(Kl)),Qge=JH.LINE_SPACING,Gw=JH.FROM_TL,Xge=JH.FROM_BR,Zge=Rge(),lSt=XH(),Hw=OA(),Vw=1,uSt=/^legend[0-9]*$/;tme.exports=function(t,r){if(r)Kge(t,r);else{var i=t._fullLayout,n=i._legends,a=i._infolayer.selectAll('[class^="legend"]');a.each(function(){var u=Cf.select(this),c=u.attr("class"),f=c.split(" ")[0];f.match(uSt)&&n.indexOf(f)===-1&&u.remove()});for(var o=0;o1)}var d=i.hiddenlabels||[];if(!s&&(!i.showlegend||!l.length))return o.selectAll("."+n).remove(),i._topdefs.select("#"+a).remove(),KH.autoMargin(e,n);var v=Il.ensureSingle(o,"g",n,function(T){s||T.attr("pointer-events","all")}),m=Il.ensureSingleById(i._topdefs,"clipPath",a,function(T){T.append("rect")}),g=Il.ensureSingle(v,"rect","bg",function(T){T.attr("shape-rendering","crispEdges")});g.call(NA.stroke,r.bordercolor).call(NA.fill,r.bgcolor).style("stroke-width",r.borderwidth+"px");var w=Il.ensureSingle(v,"g","scrollbox"),_=r.title;r._titleWidth=0,r._titleHeight=0;var b;_.text?(b=Il.ensureSingle(w,"text",n+"titletext"),b.attr("text-anchor","start").call(Rl.font,_.font).text(_.text),P7(b,w,e,r,Vw),!s&&(r.titleclick||r.titledoubleclick)&&dSt(w,e,r,n)):(w.selectAll("."+n+"titletext").remove(),w.selectAll("."+n+"titletoggle").remove());var S=Il.ensureSingle(v,"rect","scrollbar",function(T){T.attr(js.scrollBarEnterAttrs).call(NA.fill,js.scrollBarColor)}),x=w.selectAll("g.groups").data(l);x.enter().append("g").attr("class","groups"),x.exit().remove();var A=x.selectAll("g.traces").data(Il.identity);A.enter().append("g").attr("class","traces"),A.exit().remove(),A.style("opacity",function(T){let y=T[0],E=y.trace;if(y.groupTitle){let M=E.legendgroup,C=(i.shapes||[]).filter(function(D){return D.showlegend});return e._fullData.concat(C).some(function(D){return D.legendgroup===M&&(D.legend||"legend")===n&&D.visible===!0})?1:.5}return _b.traceIs(E,"pie-like")?d.indexOf(T[0].label)!==-1?.5:1:E.visible==="legendonly"?.5:1}).each(function(){Cf.select(this).call(fSt,e,r)}).call(lSt,e,r).each(function(T){s||T[0].groupTitle&&r.groupclick==="toggleitem"||Cf.select(this).call(hSt,e,n)}),Il.syncOrAsync([KH.previousPromises,function(){return gSt(e,x,A,r,w)},function(){var T=i._size,y=r.borderwidth,E=r.xref==="paper",M=r.yref==="paper";if(_.text){let ue=(i.shapes||[]).filter(function(Ee){return Ee.showlegend}),ge=e._fullData.concat(ue).some(function(Ee){let xe=Ee.legend||"legend";var ce=Array.isArray(xe)?xe.includes(n):xe===n;return ce&&Ee.visible===!0});b.style("opacity",ge?1:.5)}if(!s){var C,k;E?C=T.l+T.w*r.x-Gw[R7(r)]*r._width:C=i.width*r.x-Gw[R7(r)]*r._width,M?k=T.t+T.h*(1-r.y)-Gw[z7(r)]*r._effHeight:k=i.height*(1-r.y)-Gw[z7(r)]*r._effHeight;var D=mSt(e,n,C,k);if(D)return;if(i.margin.autoexpand){var F=C,P=k;C=E?Il.constrain(C,0,i.width-r._width):F,k=M?Il.constrain(k,0,i.height-r._effHeight):P,C!==F&&Il.log("Constrain "+n+".x to make legend fit inside graph"),k!==P&&Il.log("Constrain "+n+".y to make legend fit inside graph")}Rl.setTranslate(v,C,k)}if(S.on(".drag",null),v.on("wheel",null),s||r._height<=r._maxHeight||e._context.staticPlot){var R=r._effHeight;s&&(R=r._height),g.attr({width:r._width-y,height:R-y,x:y/2,y:y/2}),Rl.setTranslate(w,0,0),m.select("rect").attr({width:r._width-2*y,height:R-2*y,x:y,y}),Rl.setClipUrl(w,a,e),Rl.setRect(S,0,0,0,0),delete r._scrollY}else{var L=Math.max(js.scrollBarMinHeight,r._effHeight*r._effHeight/r._height),I=r._effHeight-L-2*js.scrollBarMargin,B=r._height-r._effHeight,O=I/B,$=Math.min(r._scrollY||0,B);g.attr({width:r._width-2*y+js.scrollBarWidth+js.scrollBarMargin,height:r._effHeight-y,x:y/2,y:y/2}),m.select("rect").attr({width:r._width-2*y+js.scrollBarWidth+js.scrollBarMargin,height:r._effHeight-2*y,x:y,y:y+$}),Rl.setClipUrl(w,a,e),Y($,L,O),v.on("wheel",function(){$=Il.constrain(r._scrollY+Cf.event.deltaY/B*I,0,B),Y($,L,O),$!==0&&$!==B&&Cf.event.preventDefault()});var X,K,G,q=function(ue,ge,Ee){var xe=(Ee-ge)/O+ue;return Il.constrain(xe,0,B)},J=function(ue,ge,Ee){var xe=(ge-Ee)/O+ue;return Il.constrain(xe,0,B)},N=Cf.behavior.drag().on("dragstart",function(){var ue=Cf.event.sourceEvent;ue.type==="touchstart"?X=ue.changedTouches[0].clientY:X=ue.clientY,G=$}).on("drag",function(){var ue=Cf.event.sourceEvent;ue.buttons===2||ue.ctrlKey||(ue.type==="touchmove"?K=ue.changedTouches[0].clientY:K=ue.clientY,$=q(G,X,K),Y($,L,O))});S.call(N);var V=Cf.behavior.drag().on("dragstart",function(){var ue=Cf.event.sourceEvent;ue.type==="touchstart"&&(X=ue.changedTouches[0].clientY,G=$)}).on("drag",function(){var ue=Cf.event.sourceEvent;ue.type==="touchmove"&&(K=ue.changedTouches[0].clientY,$=J(G,X,K),Y($,L,O))});w.call(V)}function Y(ue,ge,Ee){r._scrollY=e._fullLayout[n]._scrollY=ue,Rl.setTranslate(w,0,-ue),Rl.setRect(S,r._width,js.scrollBarMargin+ue*Ee,js.scrollBarWidth,ge),m.select("rect").attr("y",y+ue)}if(e._context.edits.legendPosition){var H,j,Q,te;v.classed("cursor-move",!0),ZH.init({element:v.node(),gd:e,prepFn:function(ue){if(ue.target!==S.node()){var ge=Rl.getTranslate(v);Q=ge.x,te=ge.y}},moveFn:function(ue,ge){if(Q!==void 0&&te!==void 0){var Ee=Q+ue,xe=te+ge;Rl.setTranslate(v,Ee,xe),H=ZH.align(Ee,r._width,T.l,T.l+T.w,r.xanchor),j=ZH.align(xe+r._height,-r._height,T.t+T.h,T.t,r.yanchor)}},doneFn:function(){if(H!==void 0&&j!==void 0){var ue={};ue[n+".x"]=H,ue[n+".y"]=j,_b.call("_guiRelayout",e,ue)}},clickFn:function(ue,ge){var Ee=o.selectAll("g.traces").filter(function(){var xe=this.getBoundingClientRect();return ge.clientX>=xe.left&&ge.clientX<=xe.right&&ge.clientY>=xe.top&&ge.clientY<=xe.bottom});Ee.size()>0&&eme(e,r,Ee,ue,ge)}})}}],e)}}function L7(e,t,r){var i=e[0],n=i.width,a=t.entrywidthmode,o=i.trace.legendwidth||t.entrywidth;return a==="fraction"?t._maxWidth*o:r+(o||n)}function eme(e,t,r,i,n){var a=e._fullLayout,o=r.data()[0][0].trace,s=t.itemclick,l=t.itemdoubleclick,u={event:n,node:r.node(),curveNumber:o.index,expandedIndex:o.index,data:e.data,layout:e.layout,frames:e._transitionData._frames,config:e._context,fullData:e._fullData,fullLayout:a};o._group&&(u.group=o._group),_b.traceIs(o,"pie-like")&&(u.label=r.datum()[0].label);var c=I7.triggerHandler(e,"plotly_legendclick",u);if(i===1){if(c===!1)return;t._clickTimeout=setTimeout(function(){e._fullLayout&&s&&Wge(r,e,t,s,i)},e._context.doubleClickDelay)}else if(i===2){t._clickTimeout&&clearTimeout(t._clickTimeout),e._legendMouseDownTime=0;var f=I7.triggerHandler(e,"plotly_legenddoubleclick",u);f!==!1&&c!==!1&&l&&Wge(r,e,t,l,i)}}function fSt(e,t,r){var i=Hw.getId(r),n=e.data()[0][0],a=n.trace,o=_b.traceIs(a,"pie-like"),s=!r._inHover&&t._context.edits.legendText&&!o,l=r._maxNameLength,u,c;n.groupTitle?(u=n.groupTitle.text,c=n.groupTitle.font):(c=r.font,r.entries?u=n.text:(u=o?n.label:a.name,a._meta&&(u=Il.templateString(u,a._meta))));var f=Il.ensureSingle(e,"text",i+"text");f.attr("text-anchor","start").call(Rl.font,c).text(s?Jge(u,l):u);var h=r.indentation+r.itemwidth+js.itemGap*2;Wg.positionText(f,h,0),s?f.call(Wg.makeEditable,{gd:t,text:u}).call(P7,e,t,r).on("edit",function(p){this.text(Jge(p,l)).call(P7,e,t,r);var d={};return d.name=p,n.trace._isShape?_b.call("_guiRelayout",t,"shapes["+a.index+"].name",d.name):_b.call("_guiRestyle",t,d,a.index)}):P7(f,e,t,r)}function Jge(e,t){var r=Math.max(4,t);if(e&&e.trim().length>=r/2)return e;e=e||"";for(var i=r-e.length;i>0;i--)e+=" ";return e}function hSt(e,t,r){var i=t._context.doubleClickDelay,n,a=1,o=Il.ensureSingle(e,"rect",r+"toggle",function(s){t._context.staticPlot||s.style("cursor","pointer").attr("pointer-events","all"),s.call(NA.fill,"rgba(0,0,0,0)")});t._context.staticPlot||(o.on("mousedown",function(){n=new Date().getTime(),n-t._legendMouseDownTimei&&(a=Math.max(a-1,1)),eme(t,s,e,a,Cf.event)}}))}function dSt(e,t,r,i){if(t._fullData.some(function(u){let c=u.legend||"legend";return(Array.isArray(c)?c.includes(i):c===i)&&_b.traceIs(u,"pie-like")}))return;let a=t._context.doubleClickDelay;var o,s=1;let l=Il.ensureSingle(e,"rect",i+"titletoggle",function(u){t._context.staticPlot||u.style("cursor","pointer").attr("pointer-events","all"),u.call(NA.fill,"rgba(0,0,0,0)")});t._context.staticPlot||(l.on("mousedown",function(){o=new Date().getTime(),o-t._legendMouseDownTimea&&(s=Math.max(s-1,1));let u={event:Cf.event,legendId:i,data:t.data,layout:t.layout,fullData:t._fullData,fullLayout:t._fullLayout};if(s===1&&r.titleclick){if(I7.triggerHandler(t,"plotly_legendtitleclick",u)===!1)return;r._titleClickTimeout=setTimeout(function(){t._fullLayout&&Yge(t,r,r.titleclick)},a)}else s===2&&(r._titleClickTimeout&&clearTimeout(r._titleClickTimeout),t._legendMouseDownTime=0,I7.triggerHandler(t,"plotly_legendtitledoubleclick",u)!==!1&&r.titledoubleclick&&Yge(t,r,r.titledoubleclick))}))}function P7(e,t,r,i,n){i._inHover&&e.attr("data-notex",Wg.isPureTex(e.text())?null:!0),Wg.convertToTspans(e,r,function(){pSt(t,r,i,n)})}function pSt(e,t,r,i){var n=e.data()[0][0],a=n&&n.trace.showlegend;if(Array.isArray(a)&&(a=a[n.i]!==!1),!r._inHover&&n&&!a){e.remove();return}var o=e.select("g[class*=math-group]"),s=o.node(),l=Hw.getId(r);r||(r=t._fullLayout[l]);var u=r.borderwidth,c;i===Vw?c=r.title.font:n.groupTitle?c=n.groupTitle.font:c=r.font;var f=c.size*Qge,h,p;if(s){var d=Rl.bBox(s);h=d.height,p=d.width,i===Vw?Rl.setTranslate(o,u,u+h*.75):Rl.setTranslate(o,0,h*.25)}else{var v="."+l+(i===Vw?"title":"")+"text",m=e.select(v),g=Wg.lineCount(m),w=m.node();if(h=f*g,p=w?Rl.bBox(w).width:0,i===Vw)r.title.side==="left"&&(p+=js.itemGap*2),Wg.positionText(m,u+js.titlePad,u+f);else{var _=js.itemGap*2+r.indentation+r.itemwidth;n.groupTitle&&(_=js.itemGap,p-=r.indentation+r.itemwidth),Wg.positionText(m,_,-f*((g-1)/2-.3))}}if(i===Vw)r._titleWidth=p,r._titleHeight=h;else{n.lineHeight=f;let b=js.itemMinHeight+r.itemheight-js.dfltFillHeight;n.height=Math.max(h,js.itemMinHeight,b)+js.itemHeightPad,n.width=p}}function vSt(e){var t=0,r=0,i=e.title.side;return i&&(i.indexOf("left")!==-1&&(t=e._titleWidth),i.indexOf("top")!==-1&&(r=e._titleHeight)),[t,r]}function gSt(e,t,r,i,n){var a=e._fullLayout,o=Hw.getId(i);i||(i=a[o]);var s=a._size,l=Hw.isVertical(i),u=Hw.isGrouped(i),c=i.entrywidthmode==="fraction",f=i.borderwidth,h=2*f,p=js.itemGap,d=i.indentation+i.itemwidth+p*2,v=2*(f+p),m=z7(i),g=i.y<0||i.y===0&&m==="top",w=i.y>1||i.y===1&&m==="bottom",_=i.tracegroupgap,b={};let{orientation:S,yref:x}=i,{maxheight:A}=i,T=g||w||S!=="v"||x!=="paper";A||(A=T?.5:1);let y=T?a.height:s.h;i._maxHeight=Math.max(A>1?A:A*y,30);var E=0;i._width=0,i._height=0;var M=vSt(i);if(l)r.each(function(ue){var ge=ue[0].height;Rl.setTranslate(this,f+M[0],f+M[1]+i._height+ge/2+p),i._height+=ge,i._width=Math.max(i._width,ue[0].width)}),E=d+i._width,i._width+=p+d+h,i._height+=v,u&&(t.each(function(ue,ge){Rl.setTranslate(this,0,ge*i.tracegroupgap)}),i._height+=(i._lgroupsLength-1)*i.tracegroupgap);else{var C=R7(i),k=i.x<0||i.x===0&&C==="right",D=i.x>1||i.x===1&&C==="left",F=w||g,P=a.width/2;i._maxWidth=Math.max(k?F&&C==="left"?s.l+s.w:P:D?F&&C==="right"?s.r+s.w:P:s.w,2*d);var R=0,L=0;r.each(function(ue){var ge=L7(ue,i,d);R=Math.max(R,ge),L+=ge}),E=null;var I=0;if(u){var B=0,O=0,$=0;t.each(function(){var ue=0,ge=0;Cf.select(this).selectAll("g.traces").each(function(xe){var ce=L7(xe,i,d),oe=xe[0].height;Rl.setTranslate(this,M[0],M[1]+f+p+oe/2+ge),ge+=oe,ue=Math.max(ue,ce),b[xe[0].trace.legendgroup]=ue});var Ee=ue+p;O>0&&Ee+f+O>i._maxWidth?(I=Math.max(I,O),O=0,$+=B+_,B=ge):B=Math.max(B,ge),Rl.setTranslate(this,O,$),O+=Ee}),i._width=Math.max(I,O)+f,i._height=$+B+v}else{var X=r.size(),K=L+h+(X-1)*p=i._maxWidth&&(I=Math.max(I,N),q=0,J+=G,i._height+=G,G=0),Rl.setTranslate(this,M[0]+f+q,M[1]+f+J+ge/2+p),N=q+Ee+p,q+=xe,G=Math.max(G,ge)}),K?(i._width=q+h,i._height=G+v):(i._width=Math.max(I,N)+h,i._height+=G+v)}}i._width=Math.ceil(Math.max(i._width+M[0],i._titleWidth+2*(f+js.titlePad))),i._height=Math.ceil(Math.max(i._height+M[1],i._titleHeight+2*(f+js.itemGap))),i._effHeight=Math.min(i._height,i._maxHeight);var V=e._context.edits,Y=V.legendText||V.legendPosition;if(r.each(function(ue){var ge=Cf.select(this).select("."+o+"toggle"),Ee=ue[0].height,xe=ue[0].trace.legendgroup,ce=L7(ue,i,d);u&&xe!==""&&(ce=b[xe]);var oe=Y?d:E||ce;!l&&!c&&(oe+=p/2),Rl.setRect(ge,0,-Ee/2,oe,Ee)}),i._inHover){let ue=i._width-h-p-M[0];r.each(function(ge){ge[0].textAlign==="right"&&Cf.select(this).select("."+o+"text").attr("text-anchor","end").call(Wg.positionText,ue)})}var H=n.select("."+o+"titletext");H.node()&&cSt(H,i,f);var j=n.select("."+o+"titletoggle");if(j.size()&&H.node()){var Q=H.attr("x")||0,te=js.titlePad;Rl.setRect(j,Q-te,f,i._titleWidth+2*te,i._titleHeight+2*te)}}function mSt(e,t,r,i){var n=e._fullLayout,a=n[t],o=R7(a),s=z7(a),l=a.xref==="paper",u=a.yref==="paper";e._fullLayout._reservedMargin[t]={};var c=a.y<.5?"b":"t",f=a.x<.5?"l":"r",h={r:n.width-r,l:r+a._width,b:n.height-i,t:i+a._effHeight};if(l&&u)return KH.autoMargin(e,t,{x:a.x,y:a.y,l:a._width*Gw[o],r:a._width*Xge[o],b:a._effHeight*Xge[s],t:a._effHeight*Gw[s]});l?e._fullLayout._reservedMargin[t][c]=h[c]:u||a.orientation==="v"?e._fullLayout._reservedMargin[t][f]=h[f]:e._fullLayout._reservedMargin[t][c]=h[c]}function R7(e){return Il.isRightAnchor(e)?"right":Il.isCenterAnchor(e)?"center":"left"}function z7(e){return Il.isBottomAnchor(e)?"bottom":Il.isMiddleAnchor(e)?"middle":"top"}});var nj=W(ij=>{"use strict";var Xg=gi(),Yg=hn(),$s=tt(),ySt=$s.pushUnique,ej=$s.strTranslate,xSt=$s.strRotate,bSt=ww(),Ps=ao(),_St=kge(),x1=Qi(),Ql=ti(),B7=Ef(),b1=Yi(),wSt=(Zl(),Pt(Xl)).zindexSeparator,wb=xi(),S0=ah(),Tb=(W6(),Pt($6)),TSt=OH(),ASt=QH(),cme=Tb.YANGLE,rj=Math.PI*cme/180,MSt=1/Math.sin(rj),SSt=Math.cos(rj),ESt=Math.sin(rj),Ms=Tb.HOVERARROWSIZE,Ea=Tb.HOVERTEXTPAD,rme={box:!0,ohlc:!0,violin:!0,candlestick:!0},kSt={scatter:!0,scattergl:!0,splom:!0};function ime(e,t){return e.distance-t.distance}ij.hover=function(t,r,i,n){t=$s.getGraphDiv(t);var a=r.target;$s.throttle(t._fullLayout._uid+Tb.HOVERID,Tb.HOVERMINTIME,function(){DSt(t,r,i,n,a)})};ij.loneHover=function(t,r){var i=!0;Array.isArray(t)||(i=!1,t=[t]);var n=r.gd,a=pme(n),o=vme(n),s=t.map(function(d){var v=d._x0||d.x0||d.x||0,m=d._x1||d.x1||d.x||0,g=d._y0||d.y0||d.y||0,w=d._y1||d.y1||d.y||0,_=d.eventData;if(_){var b=Math.min(v,m),S=Math.max(v,m),x=Math.min(g,w),A=Math.max(g,w),T=d.trace;if(wb.traceIs(T,"gl3d")){var y=n._fullLayout[T.scene]._scene.container,E=y.offsetLeft,M=y.offsetTop;b+=E,S+=E,x+=M,A+=M}_.bbox={x0:b+o,x1:S+o,y0:x+a,y1:A+a},_.xPixel=(v+m)/2,_.yPixel=(g+w)/2,r.inOut_bbox&&r.inOut_bbox.push(_.bbox)}else _=!1;return{color:d.color||Ql.defaultLine,x0:d.x0||d.x||0,x1:d.x1||d.x||0,y0:d.y0||d.y||0,y1:d.y1||d.y||0,xLabel:d.xLabel,yLabel:d.yLabel,zLabel:d.zLabel,text:d.text,name:d.name,idealAlign:d.idealAlign,borderColor:d.borderColor,fontFamily:d.fontFamily,fontSize:d.fontSize,fontColor:d.fontColor,fontWeight:d.fontWeight,fontStyle:d.fontStyle,fontVariant:d.fontVariant,nameLength:d.nameLength,textAlign:d.textAlign,trace:d.trace||{index:0,hoverinfo:""},xa:{_offset:0},ya:{_offset:0},index:0,hovertemplate:d.hovertemplate||!1,hovertemplateLabels:d.hovertemplateLabels||!1,eventData:_}}),l=!1,u=hme(s,{gd:n,hovermode:"closest",rotateLabels:l,bgColor:r.bgColor||Ql.background,container:Xg.select(r.container),outerContainer:r.outerContainer||r.container}),c=u.hoverLabels;function f(){var d=5,v=0,m=0;c.sort(function(g,w){return g.y0-w.y0}).each(function(g,w){var _=g.y0-g.by/2;_-dT[0]._length||ge<0||ge>y[0]._length)return B7.unhoverRaw(e,t)}if(t.pointerX=ue+T[0]._offset,t.pointerY=ge+y[0]._offset,"xval"in t?R=S0.flat(a,t.xval):R=S0.p2c(T,ue),"yval"in t?L=S0.flat(a,t.yval):L=S0.p2c(y,ge),e._hoverPointerX=t.pointerX,e._hoverPointerY=t.pointerY,!Yg(R[0])||!Yg(L[0]))return $s.warn("Fx.hover failed",t,e),B7.unhoverRaw(e,t)}s.clickanywhere&&(e._hoverXVals=R,e._hoverYVals=L,e._hoverXAxes=T,e._hoverYAxes=y);var ce=1/0;function oe(Ut,Lr){for(B=0;BV&&(F.splice(0,V),ce=F[0].distance),wb.traceIs($,"ternary")&&D!==0){let gn=N.subplot;if(["aaxis","baxis","caxis"].some(ua=>gn[ua].showspikes&&gn[ua].spikesnap!=="hovered data")){let ua=ii==null?void 0:ii[0];if(!Number.isFinite(ua==null?void 0:ua.spikeDistance)){let ro=$s.extendFlat({},N,{distance:D,index:!1}),ba=$._module.hoverPoints(ro,q,J,"closest");ua=ba&&ba[0]}let as=H[X];ua&&ua.index!==void 0&&ua.index!==!1&&ua.spikeDistance<=D&&(!as||ua.spikeDistanceln.spikeDistance)&&(Y.vLinePoint=ln))}var pn=Xi.filter(function(gn){return gn.ya.showspikes&&gn.ya.spikesnap!=="hovered data"});if(pn.length){var zn=pn[0];Yg(zn.x0)&&Yg(zn.y0)&&(ln=fe(zn),(!Y.hLinePoint||Y.hLinePoint.spikeDistance>ln.spikeDistance)&&(Y.hLinePoint=ln))}}}}}oe();function Se(){if(s._hoverlayer.selectAll(".ternary-spikes").remove(),D!==0)for(let Ut=0;UtFr.trace.subplot===Lr&&Fr.index!==void 0&&Fr.index!==!1&&Fr.spikeDistance<=D);jr.drawSpikelines(ii,H[Lr],R&&R[Ut],L&&L[Ut])}}}function be(Ut,Lr,jr){for(var ii=null,Fr=1/0,Ii,Xi=0;XiUt.trace.index===Je.trace.index):F=[Je];var rt=F.length,mt=ume("x",Je,s),dt=ume("y",Je,s);oe(mt,dt);var St=[],Ke={},bt=0,pt=function(Ut){var Lr=rme[Ut.trace.type]?fme(Ut):Ut.trace.index;if(!Ke[Lr])bt++,Ke[Lr]=bt,St.push(Ut);else{var jr=Ke[Lr]-1,ii=St[jr];jr>0&&Math.abs(Ut.distance)rt-1;Oe--)pt(F[Oe]);F=St,re()}var Ue=e._hoverdata,je=[],$e=pme(e),Ie=vme(e);for(let Ut of F){var Ve=S0.makeEventData(Ut,Ut.trace,Ut.cd);if(Ut.hovertemplate!==!1){var st=!1;Ut.cd[Ut.index]&&Ut.cd[Ut.index].ht&&(st=Ut.cd[Ut.index].ht),Ut.hovertemplate=st||Ut.trace.hovertemplate||!1}if(Ut.xa&&Ut.ya){var _t=Ut.x0+Ut.xa._offset,Wt=Ut.x1+Ut.xa._offset,Ht=Ut.y0+Ut.ya._offset,fr=Ut.y1+Ut.ya._offset,lr=Math.min(_t,Wt),Ot=Math.max(_t,Wt),Jt=Math.min(Ht,fr),Cr=Math.max(Ht,fr);Ve.bbox={x0:lr+Ie,x1:Ot+Ie,y0:Jt+$e,y1:Cr+$e},Ve.xPixel=(_t+Wt)/2,Ve.yPixel=(Ht+fr)/2}Ut.eventData=[Ve],je.push(Ve)}e._hoverdata=je;var Ge=p==="y"&&(P.length>1||F.length>1)||p==="closest"&&j&&F.length>1,Qe=Ql.combine(s.plot_bgcolor||Ql.background,s.paper_bgcolor),nt=hme(F,{gd:e,hovermode:p,rotateLabels:Ge,bgColor:Qe,container:s._hoverlayer,outerContainer:s._paper.node(),commonLabelOpts:s.hoverlabel,hoverdistance:s.hoverdistance}),gt=nt.hoverLabels;if(S0.isUnifiedHover(p)||(ame(gt,Ge,s,nt.commonLabelBoundingBox),O7(gt,Ge,s._invScaleX,s._invScaleY),nt.mathjaxPromise&&nt.mathjaxPromise.then(function(){e._hoverdata===je&&(ame(gt,Ge,s,nt.commonLabelBoundingBox),O7(gt,Ge,s._invScaleX,s._invScaleY),gt.each(function(){var Ut=Xg.select(this);Ps.repositionMathGroup(Ut.select("text.nums")),Ps.repositionMathGroup(Ut.select("text.name"))}))})),n&&n.tagName){var ht=wb.getComponentMethod("annotations","hasClickToShow")(e,je);_St(Xg.select(n),ht?"pointer":"")}var Ft=ISt(e,t,Ue);if(!n||i||!Ft&&!s.hoveranywhere)return;Ue&&Ft&&e.emit("plotly_unhover",{event:t,points:Ue}),hr(e._hoverdata);function hr(Ut){e.emit("plotly_hover",{event:t,points:Ut,xaxes:T,yaxes:y,xvals:S0.c2dApply(T,R),yvals:S0.c2dApply(y,L),xPixel:t.pointerX,yPixel:t.pointerY})}}function fme(e){return[e.trace.index,e.index,e.x0,e.y0,e.name,e.attr,e.xa?e.xa._id:"",e.ya?e.ya._id:""].join(",")}var FSt=/([\s\S]*)<\/extra>/;function tj(e,t){return q7(e,Ps.getMathOrTextNode(t))}function hme(e,t){var r=t.gd,i=r._fullLayout,n=t.hovermode,a=t.rotateLabels,o=t.bgColor,s=t.container,l=t.outerContainer,u=t.commonLabelOpts||{};if(e.length===0)return[[]];var c=[],f=t.fontFamily||Tb.HOVERFONT,h=t.fontSize||Tb.HOVERFONTSIZE,p=t.fontWeight||i.font.weight,d=t.fontStyle||i.font.style,v=t.fontVariant||i.font.variant,m=t.fontTextcase||i.font.textcase,g=t.fontLineposition||i.font.lineposition,w=t.fontShadow||i.font.shadow,_=e[0],b=_.xa,S=_.ya,x=n.charAt(0),A=x+"Label",T=_[A];if(T===void 0&&b.type==="multicategory")for(var y=0;yi.width-$e&&(Ie=i.width-$e),me.attr("d","M"+(Oe-Ie)+",0L"+(Oe-Ie+Ms)+","+je+Ms+"H"+$e+"v"+je+(Ea*2+pt.height)+"H"+-$e+"V"+je+Ms+"H"+(Oe-Ie-Ms)+"Z"),Oe=Ie,B.minX=Oe-$e,B.maxX=Oe+$e,b.side==="top"?(B.minY=Ue-(Ea*2+pt.height),B.maxY=Ue-Ea):(B.minY=Ue+Ea,B.maxY=Ue+(Ea*2+pt.height))}else{var Ve,st,_t;S.side==="right"?(Ve="start",st=1,_t="",Oe=b._offset+b._length):(Ve="end",st=-1,_t="-",Oe=b._offset),Ue=S._offset+(_.y0+_.y1)/2,Le.attr("text-anchor",Ve),me.attr("d","M0,0L"+_t+Ms+","+Ms+"V"+(Ea+pt.height/2)+"h"+_t+(Ea*2+pt.width)+"V-"+(Ea+pt.height/2)+"H"+_t+Ms+"V-"+Ms+"Z"),B.minY=Ue-(Ea+pt.height/2),B.maxY=Ue+(Ea+pt.height/2),S.side==="right"?(B.minX=Oe+Ms,B.maxX=Oe+Ms+(Ea*2+pt.width)):(B.minX=Oe-Ms-(Ea*2+pt.width),B.maxX=Oe-Ms);var Wt=pt.height/2,Ht=M-pt.top-Wt,fr="clip"+i._uid+"commonlabel"+S._id,lr;if(Oeme.hoverinfo!=="none");if(we.length===0)return[];var O=i.hoverlabel,$=O.font,X=we[0],K=((n==="x unified"?X.xa:X.ya).unifiedhovertitle||{}).text,G=K?$s.hovertemplateString({data:n==="x unified"?[{xa:X.xa,x:X.xVal}]:[{ya:X.ya,y:X.yVal}],fallback:X.trace.hovertemplatefallback,locale:i._d3locale,template:K}):T,q={showlegend:!0,legend:{title:{text:G,font:$},font:$,bgcolor:O.bgcolor,bordercolor:O.bordercolor,borderwidth:1,tracegroupgap:7,traceorder:i.legend?i.legend.traceorder:void 0,orientation:"v"}},J={font:$};TSt(q,J,r._fullData);var N=J.legend;N.entries=[];for(var V=0;V=0?Te=ae:_e+Ee=0?Te=_e:re+Ee=0?Ce=fe:ee+xe=0?Ce=ee:pe+xe=0,(we.idealAlign==="top"||!nt)&>?(_t-=Ht/2,we.anchor="end"):nt?(_t+=Ht/2,we.anchor="start"):we.anchor="middle",we.crossPos=_t;else{if(we.pos=_t,nt=st+Wt/2+Qe<=C,gt=st-Wt/2-Qe>=0,(we.idealAlign==="left"||!nt)&>)st-=Wt/2,we.anchor="end";else if(nt)st+=Wt/2,we.anchor="start";else{we.anchor="middle";var ht=Qe/2,Ft=st+ht-C,hr=st-ht;Ft>0&&(st-=Ft),hr<0&&(st+=-hr)}we.crossPos=st}$e.attr("text-anchor",we.anchor),fr&&Ie.attr("text-anchor",we.anchor),me.attr("transform",ej(st,_t)+(a?xSt(cme):""))}}),{hoverLabels:ze,commonLabelBoundingBox:B,mathjaxPromise:c.length?Promise.all(c):null}}function nme(e,t,r,i,n,a){var f,h;var o="",s="";e.nameOverride!==void 0&&(e.name=e.nameOverride),e.name&&(e.trace._meta&&(e.name=$s.templateString(e.name,e.trace._meta)),o=lme(e.name,e.nameLength));var l=r.charAt(0),u=l==="x"?"y":"x";e.zLabel!==void 0?(e.xLabel!==void 0&&(s+="x: "+e.xLabel+"
"),e.yLabel!==void 0&&(s+="y: "+e.yLabel+"
"),e.trace.type!=="choropleth"&&e.trace.type!=="choroplethmap"&&(s+=(s?"z: ":"")+e.zLabel)):t&&e[l+"Label"]===n?s=e[u+"Label"]||"":e.xLabel===void 0?e.yLabel!==void 0&&e.trace.type!=="scattercarpet"&&(s=e.yLabel):e.yLabel===void 0?s=e.xLabel:s="("+e.xLabel+", "+e.yLabel+")",(e.text||e.text===0)&&!Array.isArray(e.text)&&(s+=(s?"
":"")+e.text),e.extraText!==void 0&&(s+=(s?"
":"")+e.extraText),a&&s===""&&!e.hovertemplate&&(o===""&&a.remove(),s=o),(h=(f=e.trace)==null?void 0:f.hoverlabel)!=null&&h.split&&(e.hovertemplate="");let{hovertemplate:c=!1}=e;if(c){let p=e.hovertemplateLabels||e;e[l+"Label"]!==n&&(p[l+"other"]=p[l+"Val"],p[l+"otherLabel"]=p[l+"Label"]),s=$s.hovertemplateString({data:[e.eventData[0]||{},e.trace._meta],fallback:e.trace.hovertemplatefallback,labels:p,locale:i._d3locale,template:c}),s=s.replace(FSt,(d,v)=>(o=lme(v,e.nameLength),""))}return[s,o]}function ame(e,t,r,i){var n=t?"xa":"ya",a=t?"ya":"xa",o=0,s=1,l=e.size(),u=new Array(l),c=0,f=i.minX,h=i.maxX,p=i.minY,d=i.maxY,v=function(P){return P*r._invScaleX},m=function(P){return P*r._invScaleY};e.each(function(P){var R=P[n],L=P[a],I=R._id.charAt(0)==="x",B=R.range;c===0&&B&&B[0]>B[1]!==I&&(s=-1);var O=0,$=I?r.width:r.height;if(r.hovermode==="x"||r.hovermode==="y"){var X=dme(P,t),K=P.anchor,G=K==="end"?-1:1,q,J;if(K==="middle")q=P.crossPos+(I?m(X.y-P.by/2):v(P.bx/2+P.tx2width/2)),J=q+(I?m(P.by):v(P.bx));else if(I)q=P.crossPos+m(Ms+X.y)-m(P.by/2-Ms),J=q+m(P.by);else{var N=v(G*Ms+X.x),V=N+v(G*P.bx);q=P.crossPos+Math.min(N,V),J=P.crossPos+Math.max(N,V)}I?p!==void 0&&d!==void 0&&Math.min(J,d)-Math.max(q,p)>1&&(L.side==="left"?(O=L._mainLinePosition,$=r.width):$=L._mainLinePosition):f!==void 0&&h!==void 0&&Math.min(J,h)-Math.max(q,f)>1&&(L.side==="top"?(O=L._mainLinePosition,$=r.height):$=L._mainLinePosition)}u[c++]=[{datum:P,traceIndex:P.trace.index,dp:0,pos:P.pos,posref:P.posref,size:P.by*(I?MSt:1)/2,pmin:O,pmax:$}]}),u.sort(function(P,R){return P[0].posref-R[0].posref||s*(R[0].traceIndex-P[0].traceIndex)});var g,w,_,b,S,x,A;function T(P){var R=P[0],L=P[P.length-1];if(w=R.pmin-R.pos-R.dp+R.size,_=L.pos+L.dp+L.size-R.pmax,w>.01){for(S=P.length-1;S>=0;S--)P[S].dp+=w;g=!1}if(!(_<.01)){if(w<-.01){for(S=P.length-1;S>=0;S--)P[S].dp-=_;g=!1}if(g){var I=0;for(b=0;bR.pmax&&I++;for(b=P.length-1;b>=0&&!(I<=0);b--)x=P[b],x.pos>R.pmax-1&&(x.del=!0,I--);for(b=0;b=0;S--)P[S].dp-=_;for(b=P.length-1;b>=0&&!(I<=0);b--)x=P[b],x.pos+x.dp+x.size>R.pmax&&(x.del=!0,I--)}}}for(;!g&&o<=l;){for(o++,g=!0,b=0;b.01){for(S=E.length-1;S>=0;S--)E[S].dp+=w;for(y.push.apply(y,E),u.splice(b+1,1),A=0,S=y.length-1;S>=0;S--)A+=y[S].dp;for(_=A/y.length,S=y.length-1;S>=0;S--)y[S].dp-=_;g=!1}else b++}u.forEach(T)}for(b=u.length-1;b>=0;b--){var k=u[b];for(S=k.length-1;S>=0;S--){var D=k[S],F=D.datum;F.offset=D.dp,F.del=D.del}}}function dme(e,t){var r=0,i=e.offset;return t&&(i*=-ESt,r=e.offset*SSt),{x:r,y:i}}function LSt(e){var t={start:1,end:-1,middle:0}[e.anchor],r=t*(Ms+Ea),i=r+t*(e.txwidth+Ea),n=e.anchor==="middle";return n&&(r-=e.tx2width/2,i+=e.txwidth/2+Ea),{alignShift:t,textShiftX:r,text2ShiftX:i}}function O7(e,t,r,i){var n=function(o){return o*r},a=function(o){return o*i};e.each(function(o){var s=Xg.select(this);if(o.del)return s.remove();var l=s.select("text.nums"),u=o.anchor,c=u==="end"?-1:1,f=LSt(o),h=dme(o,t),p=h.x,d=h.y,v=u==="middle",m="hoverlabel"in o.trace?o.trace.hoverlabel.showarrow:!0,g;v?g="M-"+n(o.bx/2+o.tx2width/2)+","+a(d-o.by/2)+"h"+n(o.bx)+"v"+a(o.by)+"h-"+n(o.bx)+"Z":m?g="M0,0L"+n(c*Ms+p)+","+a(Ms+d)+"v"+a(o.by/2-Ms)+"h"+n(c*o.bx)+"v-"+a(o.by)+"H"+n(c*Ms+p)+"V"+a(d-Ms)+"Z":g="M"+n(c*Ms+p)+","+a(d-o.by/2)+"h"+n(c*o.bx)+"v"+a(o.by)+"h"+n(-c*o.bx)+"Z",s.select("path").attr("d",g);var w=p+f.textShiftX,_=d+o.ty0-o.by/2+Ea,b=o.textAlign||"auto";b!=="auto"&&(b==="left"&&u!=="start"?(l.attr("text-anchor","start"),w=v?-o.bx/2-o.tx2width/2+Ea:-o.bx-Ea):b==="right"&&u!=="end"&&(l.attr("text-anchor","end"),w=v?o.bx/2-o.tx2width/2-Ea:o.bx+Ea)),l.call(Ps.positionText,n(w),a(_)),o.tx2width&&(s.select("text.name").call(Ps.positionText,n(f.text2ShiftX+f.alignShift*Ea+p),a(d+o.ty0-o.by/2+Ea)),s.select("rect").call(x1.setRect,n(f.text2ShiftX+(f.alignShift-1)*o.tx2width/2+p),a(d-o.by/2-1),n(o.tx2width),a(o.by+2)))})}function PSt(e,t){var r=e.index,i=e.trace||{},n=e.cd[0],a=e.cd[r]||{};function o(h){return h||Yg(h)&&h===0}var s=Array.isArray(r)?function(h,p){var d=$s.castOption(n,r,h);return o(d)?d:$s.extractOption({},i,"",p)}:function(h,p){return $s.extractOption(a,i,h,p)};function l(h,p,d){var v=s(p,d);o(v)&&(e[h]=v)}if(l("hoverinfo","hi","hoverinfo"),l("bgcolor","hbg","hoverlabel.bgcolor"),l("borderColor","hbc","hoverlabel.bordercolor"),l("fontFamily","htf","hoverlabel.font.family"),l("fontSize","hts","hoverlabel.font.size"),l("fontColor","htc","hoverlabel.font.color"),l("fontWeight","htw","hoverlabel.font.weight"),l("fontStyle","hty","hoverlabel.font.style"),l("fontVariant","htv","hoverlabel.font.variant"),l("nameLength","hnl","hoverlabel.namelength"),l("textAlign","hta","hoverlabel.align"),e.posref=t==="y"||t==="closest"&&i.orientation==="h"?e.xa._offset+(e.x0+e.x1)/2:e.ya._offset+(e.y0+e.y1)/2,e.x0=$s.constrain(e.x0,0,e.xa._length),e.x1=$s.constrain(e.x1,0,e.xa._length),e.y0=$s.constrain(e.y0,0,e.ya._length),e.y1=$s.constrain(e.y1,0,e.ya._length),e.xLabelVal!==void 0&&(e.xLabel="xLabel"in e?e.xLabel:b1.hoverLabelText(e.xa,e.xLabelVal,i.xhoverformat),e.xVal=e.xa.c2d(e.xLabelVal)),e.yLabelVal!==void 0&&(e.yLabel="yLabel"in e?e.yLabel:b1.hoverLabelText(e.ya,e.yLabelVal,i.yhoverformat),e.yVal=e.ya.c2d(e.yLabelVal)),e.zLabelVal!==void 0&&e.zLabel===void 0&&(e.zLabel=String(e.zLabelVal)),!isNaN(e.xerr)&&!(e.xa.type==="log"&&e.xerr<=0)){var u=b1.tickText(e.xa,e.xa.c2l(e.xerr),"hover").text;e.xerrneg!==void 0?e.xLabel+=" +"+u+" / -"+b1.tickText(e.xa,e.xa.c2l(e.xerrneg),"hover").text:e.xLabel+=" \xB1 "+u,t==="x"&&(e.distance+=1)}if(!isNaN(e.yerr)&&!(e.ya.type==="log"&&e.yerr<=0)){var c=b1.tickText(e.ya,e.ya.c2l(e.yerr),"hover").text;e.yerrneg!==void 0?e.yLabel+=" +"+c+" / -"+b1.tickText(e.ya,e.ya.c2l(e.yerrneg),"hover").text:e.yLabel+=" \xB1 "+c,t==="y"&&(e.distance+=1)}var f=e.hoverinfo||e.trace.hoverinfo;return f&&f!=="all"&&(f=Array.isArray(f)?f:f.split("+"),f.indexOf("x")===-1&&(e.xLabel=void 0),f.indexOf("y")===-1&&(e.yLabel=void 0),f.indexOf("z")===-1&&(e.zLabel=void 0),f.indexOf("text")===-1&&(e.text=void 0),f.indexOf("name")===-1&&(e.name=void 0)),e}function ome(e,t,r){var i=r.container,n=r.fullLayout,a=n._size,o=r.event,s=!!t.hLinePoint,l=!!t.vLinePoint,u,c;if(i.selectAll(".spikeline").remove(),!!(l||s)){var f=Ql.combine(n.plot_bgcolor,n.paper_bgcolor);if(s){var h=t.hLinePoint,p,d;u=h&&h.xa,c=h&&h.ya;var v=c.spikesnap;v==="cursor"?(p=o.pointerX,d=o.pointerY):(p=u._offset+h.x,d=c._offset+h.y);var m=Ql.wcagContrast(h.color,f)<1.5?Ql.contrast(f):h.color,g=c.spikemode,w=c.spikethickness,_=c.spikecolor||m,b=b1.getPxPosition(e,c),S,x;if(g.indexOf("toaxis")!==-1||g.indexOf("across")!==-1){if(g.indexOf("toaxis")!==-1&&(S=b,x=p),g.indexOf("across")!==-1){var A=c._counterDomainMin,T=c._counterDomainMax;c.anchor==="free"&&(A=Math.min(A,c.position),T=Math.max(T,c.position)),S=a.l+A*a.w,x=a.l+T*a.w}i.insert("line",":first-child").attr({x1:S,x2:x,y1:d,y2:d,"stroke-width":w,stroke:_,"stroke-dasharray":x1.dashStyle(c.spikedash,w)}).classed("spikeline",!0).classed("crisp",!0),i.insert("line",":first-child").attr({x1:S,x2:x,y1:d,y2:d,"stroke-width":w+2,stroke:f}).classed("spikeline",!0).classed("crisp",!0)}g.indexOf("marker")!==-1&&i.insert("circle",":first-child").attr({cx:b+(c.side!=="right"?w:-w),cy:d,r:w,fill:_}).classed("spikeline",!0)}if(l){var y=t.vLinePoint,E,M;u=y&&y.xa,c=y&&y.ya;var C=u.spikesnap;C==="cursor"?(E=o.pointerX,M=o.pointerY):(E=u._offset+y.x,M=c._offset+y.y);var k=Ql.wcagContrast(y.color,f)<1.5?Ql.contrast(f):y.color,D=u.spikemode,F=u.spikethickness,P=u.spikecolor||k,R=b1.getPxPosition(e,u),L,I;if(D.indexOf("toaxis")!==-1||D.indexOf("across")!==-1){if(D.indexOf("toaxis")!==-1&&(L=R,I=M),D.indexOf("across")!==-1){var B=u._counterDomainMin,O=u._counterDomainMax;u.anchor==="free"&&(B=Math.min(B,u.position),O=Math.max(O,u.position)),L=a.t+(1-O)*a.h,I=a.t+(1-B)*a.h}i.insert("line",":first-child").attr({x1:E,x2:E,y1:L,y2:I,"stroke-width":F,stroke:P,"stroke-dasharray":x1.dashStyle(u.spikedash,F)}).classed("spikeline",!0).classed("crisp",!0),i.insert("line",":first-child").attr({x1:E,x2:E,y1:L,y2:I,"stroke-width":F+2,stroke:f}).classed("spikeline",!0).classed("crisp",!0)}D.indexOf("marker")!==-1&&i.insert("circle",":first-child").attr({cx:E,cy:R-(u.side!=="top"?F:-F),r:F,fill:P}).classed("spikeline",!0)}}}function ISt(e,t,r){if(!r||r.length!==e._hoverdata.length)return!0;for(var i=r.length-1;i>=0;i--){var n=r[i],a=e._hoverdata[i];if(n.curveNumber!==a.curveNumber||String(n.pointNumber)!==String(a.pointNumber)||String(n.pointNumbers)!==String(a.pointNumbers)||n.binNumber!==a.binNumber)return!0}return!1}function sme(e,t){return!t||t.vLinePoint!==e._spikepoints.vLinePoint||t.hLinePoint!==e._spikepoints.hLinePoint}function lme(e,t){return Ps.plainText(e||"",{len:t,allowedTags:["br","sub","sup","b","i","em","s","u"]})}function RSt(e,t){for(var r=t.charAt(0),i=[],n=[],a=[],o=0;oe.offsetTop+e.clientTop,vme=e=>e.offsetLeft+e.clientLeft;function q7(e,t){var r=e._fullLayout,i=t.getBoundingClientRect(),n=i.left,a=i.top,o=n+i.width,s=a+i.height,l=$s.apply3DTransform(r._invTransform)(n,a),u=$s.apply3DTransform(r._invTransform)(o,s),c=l[0],f=l[1],h=u[0],p=u[1];return{x:c,y:f,width:h-c,height:p-f,top:Math.min(f,p),left:Math.min(c,h),right:Math.max(c,h),bottom:Math.max(f,p)}}});var UA=W((NOr,gme)=>{"use strict";var zSt=tt(),BSt=ti(),qSt=ah().isUnifiedHover;gme.exports=function(t,r,i,n){n=n||{};var a=r.legend;function o(s){n.font[s]||(n.font[s]=a?r.legend.font[s]:r.font[s])}r&&qSt(r.hovermode)&&(n.font||(n.font={}),o("size"),o("family"),o("color"),o("weight"),o("style"),o("variant"),a?(n.bgcolor||(n.bgcolor=BSt.combine(r.legend.bgcolor,r.paper_bgcolor)),n.bordercolor||(n.bordercolor=r.legend.bordercolor)):n.bgcolor||(n.bgcolor=r.paper_bgcolor)),i("hoverlabel.bgcolor",n.bgcolor),i("hoverlabel.bordercolor",n.bordercolor),i("hoverlabel.namelength",n.namelength),i("hoverlabel.showarrow",n.showarrow),zSt.coerceFont(i,"hoverlabel.font",n.font),i("hoverlabel.align",n.align)}});var yme=W((UOr,mme)=>{"use strict";var OSt=tt(),NSt=UA(),USt=yy();mme.exports=function(t,r){function i(n,a){return OSt.coerce(t,r,USt,n,a)}NSt(t,r,i)}});var _me=W((VOr,bme)=>{"use strict";var xme=tt(),VSt=tw(),GSt=UA();bme.exports=function(t,r,i,n){function a(s,l){return xme.coerce(t,r,VSt,s,l)}var o=xme.extendFlat({},n.hoverlabel);r.hovertemplate&&(o.namelength=-1),GSt(t,r,a,o)}});var aj=W((GOr,wme)=>{"use strict";var HSt=tt(),jSt=yy();wme.exports=function(t,r){function i(n,a){return r[n]!==void 0?r[n]:HSt.coerce(t,r,jSt,n,a)}return i("clickmode"),i("hoversubplots"),i("hoveranywhere"),i("clickanywhere"),i("hovermode")}});var Mme=W((HOr,Ame)=>{"use strict";var Tme=tt(),$St=yy(),WSt=aj(),YSt=UA();Ame.exports=function(t,r){function i(u,c){return Tme.coerce(t,r,$St,u,c)}var n=WSt(t,r);n&&(i("hoverdistance"),i("spikedistance"),n.indexOf("unified")!==-1&&i("hoversort"));var a=i("dragmode");a==="select"&&i("selectdirection");var o=r._has("map"),s=r._has("geo"),l=r._basePlotModules.length;r.dragmode==="zoom"&&((o||s)&&l===1||o&&s&&l===2)&&(r.dragmode="pan"),YSt(t,r,i),Tme.coerceFont(i,"hoverlabel.grouptitlefont",r.hoverlabel.font)}});var kme=W((jOr,Eme)=>{"use strict";var oj=tt(),Sme=xi();Eme.exports=function(t){var r=t.calcdata,i=t._fullLayout;function n(u){return function(c){return oj.coerceHoverinfo({hoverinfo:c},{_module:u._module},i)}}for(var a=0;a{"use strict";var ZSt=xi(),Cme=ah(),KSt=nj().hover;Dme.exports=function(t,r,i){var n=ZSt.getComponentMethod("annotations","onClick")(t,t._hoverdata),a=t._fullLayout;i!==void 0&&KSt(t,r,i,!0);function o(){var l,u,c,f,h,p;var s={points:t._hoverdata,event:r};(l=s.xaxes)!=null||(s.xaxes=t._hoverXAxes),(u=s.yaxes)!=null||(s.yaxes=t._hoverYAxes),(c=s.xvals)!=null||(s.xvals=t._hoverXVals&&Cme.c2dApply(t._hoverXAxes,t._hoverXVals)),(f=s.yvals)!=null||(s.yvals=t._hoverYVals&&Cme.c2dApply(t._hoverYAxes,t._hoverYVals)),(h=s.xPixel)!=null||(s.xPixel=t._hoverPointerX),(p=s.yPixel)!=null||(s.yPixel=t._hoverPointerY),t.emit("plotly_click",s)}(t._hoverdata||a.clickanywhere)&&r&&r.target&&(t._hoverdata||(t._hoverdata=[]),n&&n.then?n.then(o):o(),r.stopImmediatePropagation&&r.stopImmediatePropagation())}});var Is=W((WOr,Ime)=>{"use strict";var JSt=gi(),N7=tt(),QSt=Ef(),VA=ah(),Lme=yy(),Pme=nj();Ime.exports={moduleType:"component",name:"fx",constants:(W6(),Pt($6)),schema:{layout:Lme},attributes:tw(),layoutAttributes:Lme,supplyLayoutGlobalDefaults:yme(),supplyDefaults:_me(),supplyLayoutDefaults:Mme(),calc:kme(),getDistanceFunction:VA.getDistanceFunction,getClosest:VA.getClosest,inbox:VA.inbox,quadrature:VA.quadrature,appendArrayPointValue:VA.appendArrayPointValue,castHoverOption:tEt,castHoverinfo:rEt,hover:Pme.hover,unhover:QSt.unhover,loneHover:Pme.loneHover,loneUnhover:eEt,click:Fme()};function eEt(e){var t=N7.isD3Selection(e)?e:JSt.select(e);t.selectAll("g.hovertext").remove(),t.selectAll(".spikeline").remove()}function tEt(e,t,r){return N7.castOption(e,t,"hoverlabel."+r)}function rEt(e,t,r){function i(n){return N7.coerceHoverinfo({hoverinfo:n},{_module:e._module},t)}return N7.castOption(e,r,"hoverinfo",i)}});var _1=W(Zg=>{"use strict";Zg.selectMode=function(e){return e==="lasso"||e==="select"};Zg.drawMode=function(e){return e==="drawclosedpath"||e==="drawopenpath"||e==="drawline"||e==="drawrect"||e==="drawcircle"};Zg.openMode=function(e){return e==="drawline"||e==="drawopenpath"};Zg.rectMode=function(e){return e==="select"||e==="drawline"||e==="drawrect"||e==="drawcircle"};Zg.freeMode=function(e){return e==="lasso"||e==="drawclosedpath"||e==="drawopenpath"};Zg.selectingOrDrawing=function(e){return Zg.freeMode(e)||Zg.rectMode(e)}});var GA=W((XOr,Rme)=>{"use strict";Rme.exports=function(t){var r=t._fullLayout;r._glcanvas&&r._glcanvas.size()&&r._glcanvas.each(function(i){i.regl&&i.regl.clear({color:!0,depth:!0})})}});var U7=W((ZOr,zme)=>{"use strict";zme.exports={undo:{width:857.1,height:1e3,path:"m857 350q0-87-34-166t-91-137-137-92-166-34q-96 0-183 41t-147 114q-4 6-4 13t5 11l76 77q6 5 14 5 9-1 13-7 41-53 100-82t126-29q58 0 110 23t92 61 61 91 22 111-22 111-61 91-92 61-110 23q-55 0-105-20t-90-57l77-77q17-16 8-38-10-23-33-23h-250q-15 0-25 11t-11 25v250q0 24 22 33 22 10 39-8l72-72q60 57 137 88t159 31q87 0 166-34t137-92 91-137 34-166z",transform:"matrix(1 0 0 -1 0 850)"},home:{width:928.6,height:1e3,path:"m786 296v-267q0-15-11-26t-25-10h-214v214h-143v-214h-214q-15 0-25 10t-11 26v267q0 1 0 2t0 2l321 264 321-264q1-1 1-4z m124 39l-34-41q-5-5-12-6h-2q-7 0-12 3l-386 322-386-322q-7-4-13-4-7 2-12 7l-35 41q-4 5-3 13t6 12l401 334q18 15 42 15t43-15l136-114v109q0 8 5 13t13 5h107q8 0 13-5t5-13v-227l122-102q5-5 6-12t-4-13z",transform:"matrix(1 0 0 -1 0 850)"},"camera-retro":{width:1e3,height:1e3,path:"m518 386q0 8-5 13t-13 5q-37 0-63-27t-26-63q0-8 5-13t13-5 12 5 5 13q0 23 16 38t38 16q8 0 13 5t5 13z m125-73q0-59-42-101t-101-42-101 42-42 101 42 101 101 42 101-42 42-101z m-572-320h858v71h-858v-71z m643 320q0 89-62 152t-152 62-151-62-63-152 63-151 151-63 152 63 62 151z m-571 358h214v72h-214v-72z m-72-107h858v143h-462l-36-71h-360v-72z m929 143v-714q0-30-21-51t-50-21h-858q-29 0-50 21t-21 51v714q0 30 21 51t50 21h858q29 0 50-21t21-51z",transform:"matrix(1 0 0 -1 0 850)"},curlybraces:{width:18,height:16,path:"M 9,4 C 7.354992,4 6,5.354992 6,7 V 9 C 6,9.2999997 5.8778068,9.8883542 5.5878906,10.291016 5.2979744,10.693677 4.9222213,11 4,11 a 1.0001,1.0001 0 0 0 0,2 c 0.2999997,0 0.8883542,0.122193 1.2910156,0.412109 C 5.693677,13.702026 6,14.077779 6,15 v 2 c 0,1.645008 1.354992,3 3,3 h 0.5 a 1,1 0 0 0 1,-1 1,1 0 0 0 -1,-1 H 9 C 8.4358712,18 8,17.564129 8,17 V 15 C 8,13.625876 7.3766799,12.602305 6.6113281,11.96875 6.8086352,11.794047 7.0679793,11.657537 7.2109375,11.458984 7.8210204,10.611647 8,9.6999993 8,9 V 7 C 8,6.4358712 8.4358712,6 9,6 h 0.5 a 1,1 0 0 0 1,-1 1,1 0 0 0 -1,-1 z m 5.5,0 a 1,1 0 0 0 -1,1 1,1 0 0 0 1,1 H 15 c 0.564129,0 1,0.4358712 1,1 v 2 c 0,0.6999993 0.17898,1.611647 0.789062,2.458984 0.142959,0.198553 0.402303,0.335063 0.59961,0.509766 C 16.62332,12.602305 16,13.625876 16,15 v 2 c 0,0.564129 -0.435871,1 -1,1 h -0.5 a 1,1 0 0 0 -1,1 1,1 0 0 0 1,1 H 15 c 1.645008,0 3,-1.354992 3,-3 v -2 c 0,-0.922221 0.306323,-1.297974 0.708984,-1.587891 C 19.111646,13.122193 19.7,13 20,13 a 1.0001,1.0001 0 0 0 0,-2 C 19.077779,11 18.702026,10.693677 18.412109,10.291016 18.122193,9.8883542 18,9.2999997 18,9 V 7 C 18,5.354992 16.645008,4 15,4 Z",transform:"translate(-3 -4)"},zoombox:{width:1e3,height:1e3,path:"m1000-25l-250 251c40 63 63 138 63 218 0 224-182 406-407 406-224 0-406-182-406-406s183-406 407-406c80 0 155 22 218 62l250-250 125 125z m-812 250l0 438 437 0 0-438-437 0z m62 375l313 0 0-312-313 0 0 312z",transform:"matrix(1 0 0 -1 0 850)"},pan:{width:1e3,height:1e3,path:"m1000 350l-187 188 0-125-250 0 0 250 125 0-188 187-187-187 125 0 0-250-250 0 0 125-188-188 186-187 0 125 252 0 0-250-125 0 187-188 188 188-125 0 0 250 250 0 0-126 187 188z",transform:"matrix(1 0 0 -1 0 850)"},zoom_plus:{width:875,height:1e3,path:"m1 787l0-875 875 0 0 875-875 0z m687-500l-187 0 0-187-125 0 0 187-188 0 0 125 188 0 0 187 125 0 0-187 187 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},zoom_minus:{width:875,height:1e3,path:"m0 788l0-876 875 0 0 876-875 0z m688-500l-500 0 0 125 500 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},autoscale:{width:1e3,height:1e3,path:"m250 850l-187 0-63 0 0-62 0-188 63 0 0 188 187 0 0 62z m688 0l-188 0 0-62 188 0 0-188 62 0 0 188 0 62-62 0z m-875-938l0 188-63 0 0-188 0-62 63 0 187 0 0 62-187 0z m875 188l0-188-188 0 0-62 188 0 62 0 0 62 0 188-62 0z m-125 188l-1 0-93-94-156 156 156 156 92-93 2 0 0 250-250 0 0-2 93-92-156-156-156 156 94 92 0 2-250 0 0-250 0 0 93 93 157-156-157-156-93 94 0 0 0-250 250 0 0 0-94 93 156 157 156-157-93-93 0 0 250 0 0 250z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_basic:{width:1500,height:1e3,path:"m375 725l0 0-375-375 375-374 0-1 1125 0 0 750-1125 0z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_compare:{width:1125,height:1e3,path:"m187 786l0 2-187-188 188-187 0 0 937 0 0 373-938 0z m0-499l0 1-187-188 188-188 0 0 937 0 0 376-938-1z",transform:"matrix(1 0 0 -1 0 850)"},plotlylogo:{width:1542,height:1e3,path:"m0-10h182v-140h-182v140z m228 146h183v-286h-183v286z m225 714h182v-1000h-182v1000z m225-285h182v-715h-182v715z m225 142h183v-857h-183v857z m231-428h182v-429h-182v429z m225-291h183v-138h-183v138z",transform:"matrix(1 0 0 -1 0 850)"},"z-axis":{width:1e3,height:1e3,path:"m833 5l-17 108v41l-130-65 130-66c0 0 0 38 0 39 0-1 36-14 39-25 4-15-6-22-16-30-15-12-39-16-56-20-90-22-187-23-279-23-261 0-341 34-353 59 3 60 228 110 228 110-140-8-351-35-351-116 0-120 293-142 474-142 155 0 477 22 477 142 0 50-74 79-163 96z m-374 94c-58-5-99-21-99-40 0-24 65-43 144-43 79 0 143 19 143 43 0 19-42 34-98 40v216h87l-132 135-133-135h88v-216z m167 515h-136v1c16 16 31 34 46 52l84 109v54h-230v-71h124v-1c-16-17-28-32-44-51l-89-114v-51h245v72z",transform:"matrix(1 0 0 -1 0 850)"},"3d_rotate":{width:1e3,height:1e3,path:"m922 660c-5 4-9 7-14 11-359 263-580-31-580-31l-102 28 58-400c0 1 1 1 2 2 118 108 351 249 351 249s-62 27-100 42c88 83 222 183 347 122 16-8 30-17 44-27-2 1-4 2-6 4z m36-329c0 0 64 229-88 296-62 27-124 14-175-11 157-78 225-208 249-266 8-19 11-31 11-31 2 5 6 15 11 32-5-13-8-20-8-20z m-775-239c70-31 117-50 198-32-121 80-199 346-199 346l-96-15-58-12c0 0 55-226 155-287z m603 133l-317-139c0 0 4-4 19-14 7-5 24-15 24-15s-177-147-389 4c235-287 536-112 536-112l31-22 100 299-4-1z m-298-153c6-4 14-9 24-15 0 0-17 10-24 15z",transform:"matrix(1 0 0 -1 0 850)"},camera:{width:1e3,height:1e3,path:"m500 450c-83 0-150-67-150-150 0-83 67-150 150-150 83 0 150 67 150 150 0 83-67 150-150 150z m400 150h-120c-16 0-34 13-39 29l-31 93c-6 15-23 28-40 28h-340c-16 0-34-13-39-28l-31-94c-6-15-23-28-40-28h-120c-55 0-100-45-100-100v-450c0-55 45-100 100-100h800c55 0 100 45 100 100v450c0 55-45 100-100 100z m-400-550c-138 0-250 112-250 250 0 138 112 250 250 250 138 0 250-112 250-250 0-138-112-250-250-250z m365 380c-19 0-35 16-35 35 0 19 16 35 35 35 19 0 35-16 35-35 0-19-16-35-35-35z",transform:"matrix(1 0 0 -1 0 850)"},movie:{width:1e3,height:1e3,path:"m938 413l-188-125c0 37-17 71-44 94 64 38 107 107 107 187 0 121-98 219-219 219-121 0-219-98-219-219 0-61 25-117 66-156h-115c30 33 49 76 49 125 0 103-84 187-187 187s-188-84-188-187c0-57 26-107 65-141-38-22-65-62-65-109v-250c0-70 56-126 125-126h500c69 0 125 56 125 126l188-126c34 0 62 28 62 63v375c0 35-28 63-62 63z m-750 0c-69 0-125 56-125 125s56 125 125 125 125-56 125-125-56-125-125-125z m406-1c-87 0-157 70-157 157 0 86 70 156 157 156s156-70 156-156-70-157-156-157z",transform:"matrix(1 0 0 -1 0 850)"},question:{width:857.1,height:1e3,path:"m500 82v107q0 8-5 13t-13 5h-107q-8 0-13-5t-5-13v-107q0-8 5-13t13-5h107q8 0 13 5t5 13z m143 375q0 49-31 91t-77 65-95 23q-136 0-207-119-9-14 4-24l74-55q4-4 10-4 9 0 14 7 30 38 48 51 19 14 48 14 27 0 48-15t21-33q0-21-11-34t-38-25q-35-16-65-48t-29-70v-20q0-8 5-13t13-5h107q8 0 13 5t5 13q0 10 12 27t30 28q18 10 28 16t25 19 25 27 16 34 7 45z m214-107q0-117-57-215t-156-156-215-58-216 58-155 156-58 215 58 215 155 156 216 58 215-58 156-156 57-215z",transform:"matrix(1 0 0 -1 0 850)"},disk:{width:857.1,height:1e3,path:"m214-7h429v214h-429v-214z m500 0h72v500q0 8-6 21t-11 20l-157 156q-5 6-19 12t-22 5v-232q0-22-15-38t-38-16h-322q-22 0-37 16t-16 38v232h-72v-714h72v232q0 22 16 38t37 16h465q22 0 38-16t15-38v-232z m-214 518v178q0 8-5 13t-13 5h-107q-7 0-13-5t-5-13v-178q0-8 5-13t13-5h107q7 0 13 5t5 13z m357-18v-518q0-22-15-38t-38-16h-750q-23 0-38 16t-16 38v750q0 22 16 38t38 16h517q23 0 50-12t42-26l156-157q16-15 27-42t11-49z",transform:"matrix(1 0 0 -1 0 850)"},cloudupload:{width:640,height:640,path:"M451.5 160C434.9 160 418.8 164.5 404.7 172.7C388.9 156.7 370.5 143.3 350.2 133.2C378.4 109.2 414.3 96 451.5 96C537.9 96 608 166 608 252.5C608 294 591.5 333.8 562.2 363.1L491.1 434.2C461.8 463.5 422 480 380.5 480C294.1 480 224 410 224 323.5C224 322 224 320.5 224.1 319C224.6 301.3 239.3 287.4 257 287.9C274.7 288.4 288.6 303.1 288.1 320.8C288.1 321.7 288.1 322.6 288.1 323.4C288.1 374.5 329.5 415.9 380.6 415.9C405.1 415.9 428.6 406.2 446 388.8L517.1 317.7C534.4 300.4 544.2 276.8 544.2 252.3C544.2 201.2 502.8 159.8 451.7 159.8zM307.2 237.3C305.3 236.5 303.4 235.4 301.7 234.2C289.1 227.7 274.7 224 259.6 224C235.1 224 211.6 233.7 194.2 251.1L123.1 322.2C105.8 339.5 96 363.1 96 387.6C96 438.7 137.4 480.1 188.5 480.1C205 480.1 221.1 475.7 235.2 467.5C251 483.5 269.4 496.9 289.8 507C261.6 530.9 225.8 544.2 188.5 544.2C102.1 544.2 32 474.2 32 387.7C32 346.2 48.5 306.4 77.8 277.1L148.9 206C178.2 176.7 218 160.2 259.5 160.2C346.1 160.2 416 230.8 416 317.1C416 318.4 416 319.7 416 321C415.6 338.7 400.9 352.6 383.2 352.2C365.5 351.8 351.6 337.1 352 319.4C352 318.6 352 317.9 352 317.1C352 283.4 334 253.8 307.2 237.5z",transform:"matrix(1 0 0 1 -15 -15)"},drawopenpath:{width:70,height:70,path:"M33.21,85.65a7.31,7.31,0,0,1-2.59-.48c-8.16-3.11-9.27-19.8-9.88-41.3-.1-3.58-.19-6.68-.35-9-.15-2.1-.67-3.48-1.43-3.79-2.13-.88-7.91,2.32-12,5.86L3,32.38c1.87-1.64,11.55-9.66,18.27-6.9,2.13.87,4.75,3.14,5.17,9,.17,2.43.26,5.59.36,9.25a224.17,224.17,0,0,0,1.5,23.4c1.54,10.76,4,12.22,4.48,12.4.84.32,2.79-.46,5.76-3.59L43,80.07C41.53,81.57,37.68,85.64,33.21,85.65ZM74.81,69a11.34,11.34,0,0,0,6.09-6.72L87.26,44.5,74.72,32,56.9,38.35c-2.37.86-5.57,3.42-6.61,6L38.65,72.14l8.42,8.43ZM55,46.27a7.91,7.91,0,0,1,3.64-3.17l14.8-5.3,8,8L76.11,60.6l-.06.19a6.37,6.37,0,0,1-3,3.43L48.25,74.59,44.62,71Zm16.57,7.82A6.9,6.9,0,1,0,64.64,61,6.91,6.91,0,0,0,71.54,54.09Zm-4.05,0a2.85,2.85,0,1,1-2.85-2.85A2.86,2.86,0,0,1,67.49,54.09Zm-4.13,5.22L60.5,56.45,44.26,72.7l2.86,2.86ZM97.83,35.67,84.14,22l-8.57,8.57L89.26,44.24Zm-13.69-8,8,8-2.85,2.85-8-8Z",transform:"matrix(1 0 0 1 -15 -15)"},drawclosedpath:{width:90,height:90,path:"M88.41,21.12a26.56,26.56,0,0,0-36.18,0l-2.07,2-2.07-2a26.57,26.57,0,0,0-36.18,0,23.74,23.74,0,0,0,0,34.8L48,90.12a3.22,3.22,0,0,0,4.42,0l36-34.21a23.73,23.73,0,0,0,0-34.79ZM84,51.24,50.16,83.35,16.35,51.25a17.28,17.28,0,0,1,0-25.47,20,20,0,0,1,27.3,0l4.29,4.07a3.23,3.23,0,0,0,4.44,0l4.29-4.07a20,20,0,0,1,27.3,0,17.27,17.27,0,0,1,0,25.46ZM66.76,47.68h-33v6.91h33ZM53.35,35H46.44V68h6.91Z",transform:"matrix(1 0 0 1 -5 -5)"},lasso:{width:1031,height:1e3,path:"m1018 538c-36 207-290 336-568 286-277-48-473-256-436-463 10-57 36-108 76-151-13-66 11-137 68-183 34-28 75-41 114-42l-55-70 0 0c-2-1-3-2-4-3-10-14-8-34 5-45 14-11 34-8 45 4 1 1 2 3 2 5l0 0 113 140c16 11 31 24 45 40 4 3 6 7 8 11 48-3 100 0 151 9 278 48 473 255 436 462z m-624-379c-80 14-149 48-197 96 42 42 109 47 156 9 33-26 47-66 41-105z m-187-74c-19 16-33 37-39 60 50-32 109-55 174-68-42-25-95-24-135 8z m360 75c-34-7-69-9-102-8 8 62-16 128-68 170-73 59-175 54-244-5-9 20-16 40-20 61-28 159 121 317 333 354s407-60 434-217c28-159-121-318-333-355z",transform:"matrix(1 0 0 -1 0 850)"},selectbox:{width:1e3,height:1e3,path:"m0 850l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-285l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z",transform:"matrix(1 0 0 -1 0 850)"},drawline:{width:70,height:70,path:"M60.64,62.3a11.29,11.29,0,0,0,6.09-6.72l6.35-17.72L60.54,25.31l-17.82,6.4c-2.36.86-5.57,3.41-6.6,6L24.48,65.5l8.42,8.42ZM40.79,39.63a7.89,7.89,0,0,1,3.65-3.17l14.79-5.31,8,8L61.94,54l-.06.19a6.44,6.44,0,0,1-3,3.43L34.07,68l-3.62-3.63Zm16.57,7.81a6.9,6.9,0,1,0-6.89,6.9A6.9,6.9,0,0,0,57.36,47.44Zm-4,0a2.86,2.86,0,1,1-2.85-2.85A2.86,2.86,0,0,1,53.32,47.44Zm-4.13,5.22L46.33,49.8,30.08,66.05l2.86,2.86ZM83.65,29,70,15.34,61.4,23.9,75.09,37.59ZM70,21.06l8,8-2.84,2.85-8-8ZM87,80.49H10.67V87H87Z",transform:"matrix(1 0 0 1 -15 -15)"},drawrect:{width:80,height:80,path:"M78,22V79H21V22H78m9-9H12V88H87V13ZM68,46.22H31V54H68ZM53,32H45.22V69H53Z",transform:"matrix(1 0 0 1 -10 -10)"},drawcircle:{width:80,height:80,path:"M50,84.72C26.84,84.72,8,69.28,8,50.3S26.84,15.87,50,15.87,92,31.31,92,50.3,73.16,84.72,50,84.72Zm0-60.59c-18.6,0-33.74,11.74-33.74,26.17S31.4,76.46,50,76.46,83.74,64.72,83.74,50.3,68.6,24.13,50,24.13Zm17.15,22h-34v7.11h34Zm-13.8-13H46.24v34h7.11Z",transform:"matrix(1 0 0 1 -10 -10)"},eraseshape:{width:80,height:80,path:"M82.77,78H31.85L6,49.57,31.85,21.14H82.77a8.72,8.72,0,0,1,8.65,8.77V69.24A8.72,8.72,0,0,1,82.77,78ZM35.46,69.84H82.77a.57.57,0,0,0,.49-.6V29.91a.57.57,0,0,0-.49-.61H35.46L17,49.57Zm32.68-34.7-24,24,5,5,24-24Zm-19,.53-5,5,24,24,5-5Z",transform:"matrix(1 0 0 1 -10 -10)"},spikeline:{width:1e3,height:1e3,path:"M512 409c0-57-46-104-103-104-57 0-104 47-104 104 0 57 47 103 104 103 57 0 103-46 103-103z m-327-39l92 0 0 92-92 0z m-185 0l92 0 0 92-92 0z m370-186l92 0 0 93-92 0z m0-184l92 0 0 92-92 0z",transform:"matrix(1.5 0 0 -1.5 0 850)"},pencil:{width:1792,height:1792,path:"M491 1536l91-91-235-235-91 91v107h128v128h107zm523-928q0-22-22-22-10 0-17 7l-542 542q-7 7-7 17 0 22 22 22 10 0 17-7l542-542q7-7 7-17zm-54-192l416 416-832 832h-416v-416zm683 96q0 53-37 90l-166 166-416-416 166-165q36-38 90-38 53 0 91 38l235 234q37 39 37 91z",transform:"matrix(1 0 0 1 0 1)"},newplotlylogo:{name:"newplotlylogo",svg:[""," plotly-logomark"," "," "," "," "," "," "," "," "," "," "," "," "," ",""].join("")}}});var V7={};Jn(V7,{CIRCLE_SIDES:()=>iEt,SQRT2:()=>cEt,cos45:()=>lEt,i000:()=>nEt,i090:()=>aEt,i180:()=>oEt,i270:()=>sEt,sin45:()=>uEt});var iEt,nEt,aEt,oEt,sEt,lEt,uEt,cEt,G7=Ci(()=>{"use strict";iEt=32,nEt=0,aEt=8,oEt=16,sEt=24,lEt=Math.cos(Math.PI/4),uEt=Math.sin(Math.PI/4),cEt=Math.sqrt(2)});var H7=W((KOr,qme)=>{"use strict";var fEt=tt().strTranslate;function Bme(e,t){switch(e.type){case"log":return e.p2d(t);case"date":return e.p2r(t,0,e.calendar);default:return e.p2r(t)}}function hEt(e,t){switch(e.type){case"log":return e.d2p(t);case"date":return e.r2p(t,0,e.calendar);default:return e.r2p(t)}}function dEt(e){var t=e._id.charAt(0)==="y"?1:0;return function(r){return Bme(e,r[t])}}function pEt(e){return fEt(e.xaxis._offset,e.yaxis._offset)}qme.exports={p2r:Bme,r2p:hEt,axValue:dEt,getTransform:pEt}});var Hy=W(Kg=>{"use strict";var vEt=WG(),Ume=(G7(),Pt(V7)),jw=Ume.CIRCLE_SIDES,sj=Ume.SQRT2,Vme=H7(),Ome=Vme.p2r,Nme=Vme.r2p,gEt=[0,3,4,5,6,1,2],mEt=[0,3,4,1,2];Kg.writePaths=function(e){var t=e.length;if(!t)return"M0,0Z";for(var r="",i=0;i0&&l{"use strict";var Gme=Ls(),Yme=_1(),yEt=Yme.drawMode,xEt=Yme.openMode,$w=(G7(),Pt(V7)),Hme=$w.i000,jme=$w.i090,$me=$w.i180,Wme=$w.i270,bEt=$w.cos45,_Et=$w.sin45,Xme=H7(),$7=Xme.p2r,jy=Xme.r2p,wEt=Ly(),TEt=wEt.clearOutline,W7=Hy(),AEt=W7.readPaths,MEt=W7.writePaths,SEt=W7.ellipseOver,EEt=W7.fixDatesForPaths;function kEt(e,t){if(e.length){var r=e[0][0];if(r){var i=t.gd,n=t.isActiveShape,a=t.dragmode,o=(i.layout||{}).shapes||[];if(!yEt(a)&&n!==void 0){var s=i._fullLayout._activeShapeIndex;if(s{"use strict";var CEt=_1(),DEt=CEt.selectMode,FEt=Ly(),LEt=FEt.clearOutline,lj=Hy(),PEt=lj.readPaths,IEt=lj.writePaths,REt=lj.fixDatesForPaths;Jme.exports=function(t,r){if(t.length){var i=t[0][0];if(i){var n=i.getAttribute("d"),a=r.gd,o=a._fullLayout.newselection,s=r.plotinfo,l=s.xaxis,u=s.yaxis,c=r.isActiveSelection,f=r.dragmode,h=(a.layout||{}).selections||[];if(!DEt(f)&&c!==void 0){var p=a._fullLayout._activeSelectionIndex;if(pNEt,paramIsX:()=>qEt,paramIsY:()=>OEt,paramRE:()=>BEt,segmentRE:()=>zEt});var zEt,BEt,qEt,OEt,NEt,$A=Ci(()=>{"use strict";zEt=/[MLHVQCTSZ][^MLHVQCTSZ]*/g,BEt=/[^\s,]+/g,qEt={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:{}},OEt={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:3},Z:{}},NEt={M:2,L:2,H:1,V:1,Q:4,C:6,T:2,S:4,Z:0}});var Wy=W(oc=>{"use strict";var T1=($A(),Pt(jA)),Qme=tt(),$y=Yi();oc.rangeToShapePosition=function(e){return e.type==="log"?e.r2d:function(t){return t}};oc.shapePositionToRange=function(e){return e.type==="log"?e.d2r:function(t){return t}};oc.decodeDate=function(e){return function(t){return t.replace&&(t=t.replace("_"," ")),e(t)}};oc.encodeDate=function(e){return function(t){return e(t).replace(" ","_")}};oc.extractPathCoords=function(e,t,r){var i=[],n=e.match(T1.segmentRE);return n.forEach(function(a){var o=t[a.charAt(0)].drawn;if(o!==void 0){var s=a.slice(1).match(T1.paramRE);if(!(!s||s.length{let s=o.charAt(0),l=n[s].drawn!==void 0;return a+(l?1:0)},0)};oc.getDataToPixel=function(e,t,r,i,n){var a=e._fullLayout._size,o;if(t)if(n==="domain")o=function(l){return t._length*(i?1-l:l)+t._offset};else{var s=oc.shapePositionToRange(t);o=function(l){var u=w1(t,r);return t._offset+t.r2p(s(l,!0))+u},t.type==="date"&&(o=oc.decodeDate(o))}else i?o=function(l){return a.t+a.h*(1-l)}:o=function(l){return a.l+a.w*l};return o};oc.getPixelToData=function(e,t,r,i){var n=e._fullLayout._size,a;if(t)if(i==="domain")a=function(s){var l=(s-t._offset)/t._length;return r?1-l:l};else{var o=oc.rangeToShapePosition(t);a=function(s){return o(t.p2r(s-t._offset))}}else r?a=function(s){return 1-(s-n.t)/n.h}:a=function(s){return(s-n.l)/n.w};return a};oc.roundPositionForSharpStrokeRendering=function(e,t){var r=Math.round(t%2)===1,i=Math.round(e);return r?i+.5:i};oc.makeShapesOptionsAndPlotinfo=function(e,t){var r=e._fullLayout.shapes[t]||{},i=e._fullLayout._plots[r.xref+r.yref],n=!!i;return n?i._hadPlotinfo=!0:(i={},r.xref&&r.xref!=="paper"&&(i.xaxis=e._fullLayout[r.xref+"axis"]),r.yref&&r.yref!=="paper"&&(i.yaxis=e._fullLayout[r.yref+"axis"])),i.xsizemode=r.xsizemode,i.ysizemode=r.ysizemode,i.xanchor=r.xanchor,i.yanchor=r.yanchor,{options:r,plotinfo:i}};oc.makeSelectionsOptionsAndPlotinfo=function(e,t){var r=e._fullLayout.selections[t]||{},i=e._fullLayout._plots[r.xref+r.yref],n=!!i;return n?i._hadPlotinfo=!0:(i={},r.xref&&(i.xaxis=e._fullLayout[r.xref+"axis"]),r.yref&&(i.yaxis=e._fullLayout[r.yref+"axis"])),{options:r,plotinfo:i}};oc.getPathString=function(e,t){let r=t.type,i=$y.getRefType(t.xref),n=$y.getRefType(t.yref),a=e._fullLayout._size;var o,s,l,u,c,f,h,p,d,v,m,g;function w(E,M,C,k){var D;if(E)if(M==="domain")k?D=function(F){return E._offset+E._length*(1-F)}:D=function(F){return E._offset+E._length*F};else{let F=oc.shapePositionToRange(E);D=function(P){return E._offset+E.r2p(F(P,!0))},C==="path"&&E.type==="date"&&(D=oc.decodeDate(D))}else k?D=function(F){return a.t+a.h*(1-F)}:D=function(F){return a.l+a.w*F};return D}if(i==="array"?(h=[],o=t.xref.map(function(E){return $y.getFromId(e,E)}),h=t.xref.map(function(E,M){return w(o[M],$y.getRefType(E),r,!1)})):(o=$y.getFromId(e,t.xref),h=w(o,i,r,!1)),n==="array"?(p=[],s=t.yref.map(function(E){return $y.getFromId(e,E)}),p=t.yref.map(function(E,M){return w(s[M],$y.getRefType(E),r,!0)})):(s=$y.getFromId(e,t.yref),p=w(s,n,r,!0)),r==="path")return UEt(t,h,p);if(i==="array")l=w1(o[0],t.x0shift),u=w1(o[1],t.x1shift),d=h[0](t.x0)+l,v=h[1](t.x1)+u;else if(l=w1(o,t.x0shift),u=w1(o,t.x1shift),t.xsizemode==="pixel"){let E=h(t.xanchor);d=E+t.x0+l,v=E+t.x1+u}else d=h(t.x0)+l,v=h(t.x1)+u;if(n==="array")c=w1(s[0],t.y0shift),f=w1(s[1],t.y1shift),m=p[0](t.y0)+c,g=p[1](t.y1)+f;else if(c=w1(s,t.y0shift),f=w1(s,t.y1shift),t.ysizemode==="pixel"){let E=p(t.yanchor);m=E-t.y0+c,g=E-t.y1+f}else m=p(t.y0)+c,g=p(t.y1)+f;if(r==="line")return"M"+d+","+m+"L"+v+","+g;if(r==="rect")return"M"+d+","+m+"H"+v+"V"+g+"H"+d+"Z";var _=(d+v)/2,b=(m+g)/2,S=Math.abs(_-d),x=Math.abs(b-m),A="A"+S+","+x,T=_+S+","+b,y=_+","+(b-x);return"M"+T+A+" 0 1,1 "+y+A+" 0 0,1 "+T+"Z"};function UEt(e,t,r){let i=e.path,n=e.xsizemode,a=e.ysizemode,o=e.xanchor,s=e.yanchor,l=Array.isArray(e.xref),u=Array.isArray(e.yref);var c=0,f=0;return i.replace(T1.segmentRE,function(h){var p=0,d=h.charAt(0),v=T1.paramIsX[d],m=T1.paramIsY[d],g=T1.numParams[d];let w=v.drawn!==void 0,_=m.drawn!==void 0,b=l?t[c]:t,S=u?r[f]:r;var x=h.slice(1).replace(T1.paramRE,function(A){return v[p]?n==="pixel"?A=b(o)+Number(A):A=b(A):m[p]&&(a==="pixel"?A=S(s)-Number(A):A=S(A)),p++,p>g&&(A="X"),A});return p>g&&(x=x.replace(/[\s,]*X.*/,""),Qme.log("Ignoring extra params in segment "+h)),w&&c++,_&&f++,d+x})}oc.getPixelShift=w1;function w1(e,t){t=t||0;var r=0;return t&&e&&(e.type==="category"||e.type==="multicategory")&&(r=(e.r2p(1)-e.r2p(0))*t),r}});var cj=W((rNr,rye)=>{"use strict";var VEt=tt(),A1=Yi(),eye=ao(),tye=Qi(),GEt=Hy().readPaths,Ab=Wy(),HEt=Ab.getPathString,WA=xD(),jEt=(Jl(),Pt(Kl)).FROM_TL;rye.exports=function(t,r,i,n){if(n.selectAll(".shape-label").remove(),!!(i.label.text||i.label.texttemplate)){var a;if(i.label.texttemplate){var o={};if(i.type!=="path"){var s=A1.getFromId(t,i.xref),l=A1.getFromId(t,i.yref);let O=Array.isArray(i.xref),$=Array.isArray(i.yref);for(var u in WA){var c=typeof WA[u]=="function",f=!O||WA.simpleXVariables.includes(u),h=!$||WA.simpleYVariables.includes(u);if(c&&f&&h){var p=WA[u](i,s,l);p!==void 0&&(o[u]=p)}}}a=VEt.texttemplateStringForShapes({data:[o],fallback:i.label.texttemplatefallback,locale:t._fullLayout._d3locale,template:i.label.texttemplate})}else a=i.label.text;var d={"data-index":r},v=i.label.font,m={"data-notex":1},g=n.append("g").attr(d).classed("shape-label",!0),w=g.append("text").attr(m).classed("shape-label-text",!0).text(a),_,b,S,x;if(i.path){var A=HEt(t,i),T=GEt(A,t);_=1/0,S=1/0,b=-1/0,x=-1/0;for(var y=0;yAb.getDataToPixel(t,ue,te,!1,ge)(Q),j=(Q,te,ue,ge)=>Ab.getDataToPixel(t,ue,te,!0,ge)(Q);if(i.xsizemode==="pixel"){let Q=H(i.xanchor,void 0,X,J),te=Ab.getPixelShift(X,i.x0shift),ue=Ab.getPixelShift(X,i.x1shift);_=Q+i.x0+te,b=Q+i.x1+ue}else _=H(i.x0,i.x0shift,X,J),b=H(i.x1,i.x1shift,K,N);if(i.ysizemode==="pixel"){let Q=j(i.yanchor,void 0,G,V),te=Ab.getPixelShift(G,i.y0shift),ue=Ab.getPixelShift(G,i.y1shift);S=Q-i.y0+te,x=Q-i.y1+ue}else S=j(i.y0,i.y0shift,G,V),x=j(i.y1,i.y1shift,q,Y)}var F=i.label.textangle;F==="auto"&&(i.type==="line"?F=$Et(_,S,b,x):F=0),w.call(function(O){return O.call(tye.font,v).attr({}),eye.convertToTspans(O,t),O});var P=tye.bBox(w.node()),R=WEt(_,S,b,x,i,F,P),L=R.textx,I=R.texty,B=R.xanchor;w.attr({"text-anchor":{left:"start",center:"middle",right:"end"}[B],y:I,x:L,transform:"rotate("+F+","+L+","+I+")"}).call(eye.positionText,L,I)}};function $Et(e,t,r,i){var n,a;return a=Math.abs(r-e),r>=e?n=t-i:n=i-t,-180/Math.PI*Math.atan2(n,a)}function WEt(e,t,r,i,n,a,o){var s=n.label.textposition,l=n.label.textangle,u=n.label.padding,c=n.type,f=Math.PI/180*a,h=Math.sin(f),p=Math.cos(f),d=n.label.xanchor,v=n.label.yanchor,m,g,w,_;if(c==="line"){s==="start"?(m=e,g=t):s==="end"?(m=r,g=i):(m=(e+r)/2,g=(t+i)/2),d==="auto"&&(s==="start"?l==="auto"?r>e?d="left":re?d="right":re?d="right":re?d="left":r{"use strict";var YEt=tt(),XEt=YEt.strTranslate,iye=Ef(),oye=_1(),ZEt=oye.drawMode,sye=oye.selectMode,lye=xi(),nye=ti(),Z7=(G7(),Pt(V7)),KEt=Z7.i000,JEt=Z7.i090,QEt=Z7.i180,ekt=Z7.i270,tkt=Ly(),uye=tkt.clearOutlineControllers,hj=Hy(),X7=hj.pointsOnRectangle,fj=hj.pointsOnEllipse,rkt=hj.writePaths,ikt=Y7().newShapes,nkt=Y7().createShapeObj,akt=uj(),okt=cj();cye.exports=function e(t,r,i,n){n||(n=0);var a=i.gd;function o(){e(t,r,i,n++),(fj(t[0])||i.hasText)&&s({redrawing:!0})}function s(R){var L={};i.isActiveShape!==void 0&&(i.isActiveShape=!1,L=ikt(r,i)),i.isActiveSelection!==void 0&&(i.isActiveSelection=!1,L=akt(r,i),a._fullLayout._reselect=!0),Object.keys(L).length&&lye.call((R||{}).redrawing?"relayout":"_guiRelayout",a,L)}var l=a._fullLayout,u=l._zoomlayer,c=i.dragmode,f=ZEt(c),h=sye(c);(f||h)&&(a._fullLayout._outlining=!0),uye(a),r.attr("d",rkt(t));var p,d,v,m,g;if(!n&&(i.isActiveShape||i.isActiveSelection)){g=skt([],t);var w=u.append("g").attr("class","outline-controllers");E(w),P()}if(f&&i.hasText){var _=u.select(".label-temp"),b=nkt(r,i,i.dragmode);okt(a,"label-temp",b,_)}function S(R){v=+R.srcElement.getAttribute("data-i"),m=+R.srcElement.getAttribute("data-j"),p[v][m].moveFn=x}function x(R,L){if(t.length){var I=g[v][m][1],B=g[v][m][2],O=t[v],$=O.length;if(X7(O)){var X=R,K=L;if(i.isActiveSelection){var G=aye(O,m);G[1]===O[m][1]?K=0:X=0}for(var q=0;q<$;q++)if(q!==m){var J=O[q];J[1]===O[m][1]&&(J[1]=I+X),J[2]===O[m][2]&&(J[2]=B+K)}if(O[m][1]=I+X,O[m][2]=B+K,!X7(O))for(var N=0;N<$;N++)for(var V=0;V1&&!(R.length===2&&R[1][0]==="Z")&&(m===0&&(R[0][0]="M"),t[v]=R,o(),s())}}function y(R,L){if(R===2){v=+L.srcElement.getAttribute("data-i"),m=+L.srcElement.getAttribute("data-j");var I=t[v];!X7(I)&&!fj(I)&&T()}}function E(R){p=[];for(var L=0;L{"use strict";var ukt=gi(),gye=xi(),pj=tt(),Mb=Yi(),ckt=Hy().readPaths,fkt=K7(),Q7=cj(),mye=Ly().clearOutlineControllers,dj=ti(),eF=Qi(),hkt=Ra().arrayEditor,fye=Ef(),hye=Is(),dye=Xp(),Sb=($A(),Pt(jA)),Hh=Wy(),vj=Hh.getPathString;bye.exports={draw:gj,drawOne:yye,eraseActiveShape:mkt,drawLabel:Q7};function gj(e){var t=e._fullLayout;t._shapeUpperLayer.selectAll("path").remove(),t._shapeLowerLayer.selectAll("path").remove(),t._shapeUpperLayer.selectAll("text").remove(),t._shapeLowerLayer.selectAll("text").remove();for(var r in t._plots){var i=t._plots[r].shapelayer;i&&(i.selectAll("path").remove(),i.selectAll("text").remove())}for(var n=0;n{if(!e._dragging&&e._fullLayout.hoveranywhere){let o=n(a);o&&hye.hover(e,o,r.id)}}),i.addEventListener("click",a=>{if(!e._dragged&&e._fullLayout.clickanywhere){let o=n(a);o&&hye.click(e,o,r.id)}})}function xye(e,t,r){let i=r.xref,n=r.yref;if(Array.isArray(i)||Array.isArray(n)){let a="clip"+t._fullLayout._uid+"shape"+r._index,o=pkt(t,i,n);pj.ensureSingleById(t._fullLayout._clips,"clipPath",a,function(s){s.append("rect")}).select("rect").attr(o),eF.setClipUrl(e,a,t)}else{let a=(i+n).replace(/paper/g,"").replace(/[xyz][0-9]* *domain/g,"");eF.setClipUrl(e,a?"clip"+t._fullLayout._uid+a:null,t)}}function pkt(e,t,r){let i=e._fullLayout._size;function n(s,l){let u=(Array.isArray(s)?s:[s]).map(h=>Mb.getFromId(e,h)).filter(Boolean);if(!u.length)return l?[i.t,i.t+i.h]:[i.l,i.l+i.w];let c=u.map(function(h){return h._offset}),f=u.map(function(h){return h._offset+h._length});return[Math.min(...c),Math.max(...f)]}let a=n(t,!1),o=n(r,!0);return{x:a[0],y:o[0],width:a[1]-a[0],height:o[1]-o[0]}}function vkt(e,t,r,i,n,a){var o=10,s=10,l=r.xsizemode==="pixel",u=r.ysizemode==="pixel",c=r.type==="line",f=r.type==="path",h=a.modifyItem,p,d,v,m,g,w,_,b,S,x,A,T,y,E,M,C=ukt.select(t.node().parentNode),k=Mb.getFromId(e,r.xref),D=Mb.getRefType(r.xref),F=Mb.getFromId(e,r.yref),P=Mb.getRefType(r.yref),R=r.x0shift,L=r.x1shift,I=r.y0shift,B=r.y1shift,O=function(ce,oe){var Se=Hh.getDataToPixel(e,k,oe,!1,D);return Se(ce)},$=function(ce,oe){var Se=Hh.getDataToPixel(e,F,oe,!0,P);return Se(ce)},X=Hh.getPixelToData(e,k,!1,D),K=Hh.getPixelToData(e,F,!0,P),G=N(),q={element:G.node(),gd:e,prepFn:H,doneFn:j,clickFn:Q},J;fye.init(q),G.node().onmousemove=Y;function N(){return c?V():t}function V(){var ce=10,oe=Math.max(r.line.width,ce),Se=n.append("g").attr("data-index",i).attr("drag-helper",!0);Se.append("path").attr("d",t.attr("d")).style({cursor:"move","stroke-width":oe,"stroke-opacity":"0"});var be={"fill-opacity":"0"},fe=Math.max(oe/2,ce);return Se.append("circle").attr({"data-line-point":"start-point",cx:l?O(r.xanchor)+r.x0:O(r.x0,R),cy:u?$(r.yanchor)-r.y0:$(r.y0,I),r:fe}).style(be).classed("cursor-grab",!0),Se.append("circle").attr({"data-line-point":"end-point",cx:l?O(r.xanchor)+r.x1:O(r.x1,L),cy:u?$(r.yanchor)-r.y1:$(r.y1,B),r:fe}).style(be).classed("cursor-grab",!0),Se}function Y(ce){if(J7(e)){J=null;return}if(c)ce.target.tagName==="path"?J="move":J=ce.target.attributes["data-line-point"].value==="start-point"?"resize-over-start-point":"resize-over-end-point";else{var oe=q.element.getBoundingClientRect(),Se=oe.right-oe.left,be=oe.bottom-oe.top,fe=ce.clientX-oe.left,ee=ce.clientY-oe.top,ae=!f&&Se>o&&be>s&&!ce.shiftKey?fye.getCursor(fe/Se,1-ee/be):"move";dye(t,ae),J=ae.split("-")[0]}}function H(ce){J7(e)||(l&&(g=O(r.xanchor)),u&&(w=$(r.yanchor)),r.type==="path"?M=r.path:(p=l?r.x0:O(r.x0),d=u?r.y0:$(r.y0),v=l?r.x1:O(r.x1),m=u?r.y1:$(r.y1)),pm?(_=d,A="y0",b=m,T="y1"):(_=m,A="y1",b=d,T="y0"),Y(ce),ge(n,r),xe(t,r,e),q.moveFn=J==="move"?te:ue,q.altKey=ce.altKey)}function j(){J7(e)||(dye(t),Ee(n),xye(t,e,r),gye.call("_guiRelayout",e,a.getUpdateObj()))}function Q(){J7(e)||Ee(n)}function te(ce,oe){if(r.type==="path"){var Se=function(ee){return ee},be=Se,fe=Se;l?h("xanchor",r.xanchor=X(g+ce)):(be=function(ae){return X(O(ae)+ce)},k&&k.type==="date"&&(be=Hh.encodeDate(be))),u?h("yanchor",r.yanchor=K(w+oe)):(fe=function(ae){return K($(ae)+oe)},F&&F.type==="date"&&(fe=Hh.encodeDate(fe))),h("path",r.path=pye(M,be,fe))}else l?h("xanchor",r.xanchor=X(g+ce)):(h("x0",r.x0=X(p+ce)),h("x1",r.x1=X(v+ce))),u?h("yanchor",r.yanchor=K(w+oe)):(h("y0",r.y0=K(d+oe)),h("y1",r.y1=K(m+oe)));t.attr("d",vj(e,r)),ge(n,r),Q7(e,i,r,C)}function ue(ce,oe){if(f){var Se=function(rt){return rt},be=Se,fe=Se;l?h("xanchor",r.xanchor=X(g+ce)):(be=function(mt){return X(O(mt)+ce)},k&&k.type==="date"&&(be=Hh.encodeDate(be))),u?h("yanchor",r.yanchor=K(w+oe)):(fe=function(mt){return K($(mt)+oe)},F&&F.type==="date"&&(fe=Hh.encodeDate(fe))),h("path",r.path=pye(M,be,fe))}else if(c){if(J==="resize-over-start-point"){var ee=p+ce,ae=u?d-oe:d+oe;h("x0",r.x0=l?ee:X(ee)),h("y0",r.y0=u?ae:K(ae))}else if(J==="resize-over-end-point"){var _e=v+ce,re=u?m-oe:m+oe;h("x1",r.x1=l?_e:X(_e)),h("y1",r.y1=u?re:K(re))}}else{var pe=function(rt){return J.indexOf(rt)!==-1},Te=pe("n"),Ce=pe("s"),ze=pe("w"),we=pe("e"),me=Te?_+oe:_,Le=Ce?b+oe:b,Ne=ze?S+ce:S,Je=we?x+ce:x;u&&(Te&&(me=_-oe),Ce&&(Le=b-oe)),(!u&&Le-me>s||u&&me-Le>s)&&(h(A,r[A]=u?me:K(me)),h(T,r[T]=u?Le:K(Le))),Je-Ne>o&&(h(y,r[y]=l?Ne:X(Ne)),h(E,r[E]=l?Je:X(Je)))}t.attr("d",vj(e,r)),ge(n,r),Q7(e,i,r,C)}function ge(ce,oe){(l||u)&&Se();function Se(){var be=oe.type!=="path",fe=ce.selectAll(".visual-cue").data([0]),ee=1;fe.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":ee}).classed("visual-cue",!0);var ae=O(l?oe.xanchor:pj.midRange(be?[oe.x0,oe.x1]:Hh.extractPathCoords(oe.path,Sb.paramIsX))),_e=$(u?oe.yanchor:pj.midRange(be?[oe.y0,oe.y1]:Hh.extractPathCoords(oe.path,Sb.paramIsY)));if(ae=Hh.roundPositionForSharpStrokeRendering(ae,ee),_e=Hh.roundPositionForSharpStrokeRendering(_e,ee),l&&u){var re="M"+(ae-1-ee)+","+(_e-1-ee)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";fe.attr("d",re)}else if(l){var pe="M"+(ae-1-ee)+","+(_e-9-ee)+"v18 h2 v-18 Z";fe.attr("d",pe)}else{var Te="M"+(ae-9-ee)+","+(_e-1-ee)+"h18 v2 h-18 Z";fe.attr("d",Te)}}}function Ee(ce){ce.selectAll(".visual-cue").remove()}function xe(ce,oe,Se){var be=oe.xref,fe=oe.yref,ee=Mb.getFromId(Se,be),ae=Mb.getFromId(Se,fe),_e="";be!=="paper"&&!ee.autorange&&(_e+=be),fe!=="paper"&&!ae.autorange&&(_e+=fe),eF.setClipUrl(ce,_e?"clip"+Se._fullLayout._uid+_e:null,Se)}}function pye(e,t,r){return e.replace(Sb.segmentRE,function(i){var n=0,a=i.charAt(0),o=Sb.paramIsX[a],s=Sb.paramIsY[a],l=Sb.numParams[a],u=i.slice(1).replace(Sb.paramRE,function(c){return n>=l||(o[n]?c=t(c):s[n]&&(c=r(c)),n++),c});return a+u})}function gkt(e,t){if(tF(e)){var r=t.node(),i=+r.getAttribute("data-index");if(i>=0){if(i===e._fullLayout._activeShapeIndex){vye(e);return}e._fullLayout._activeShapeIndex=i,e._fullLayout._deactivateShape=vye,gj(e)}}}function vye(e){if(tF(e)){var t=e._fullLayout._activeShapeIndex;t>=0&&(mye(e),delete e._fullLayout._activeShapeIndex,gj(e))}}function mkt(e){if(tF(e)){mye(e);var t=e._fullLayout._activeShapeIndex,r=(e.layout||{}).shapes||[];if(t{"use strict";var Ww=tt()._,ykt=function(e){return{DIALOG_TITLE:Ww(e,"Share chart"),DIALOG_MESSAGE_CLOUD:Ww(e,"This chart will be uploaded to {Plotly Cloud} to create a sharing link. Only you can see it until you change its visibility."),DIALOG_MESSAGE_CLOUD_ACCOUNT:Ww(e,"If you don't have a Plotly Cloud account yet, you'll have a chance to create one."),DIALOG_MESSAGE_OTHER:Ww(e,"This chart will be sent to {serverUrl}."),DIALOG_CANCEL:Ww(e,"Cancel"),DIALOG_CONFIRM:Ww(e,"Share")}};_ye.exports=ykt});var Mye=W((oNr,Aye)=>{"use strict";var Tye=gi(),{dfltConfig:xkt}=_y(),bkt=wye(),_kt=(e,t,r,i,n)=>{let a=bkt(e),o=t.append("div").classed("plotly-cloud-dialog-box",!0);if(o.append("div").classed("plotly-cloud-dialog-title",!0).text(a.DIALOG_TITLE),r===xkt.plotlyServerURL){let l=o.append("div").classed("plotly-cloud-dialog-message",!0),u=new URL(r).origin,c=a.DIALOG_MESSAGE_CLOUD.split(/(\{|\})/),f=c[0],h=c[2],p=c[4];l.append("span").text(f),l.append("a").classed("plotly-cloud-dialog-message--hostname",!0).attr("href",u).attr("target","_blank").text(h),l.append("span").text(p),l.append("div").classed("plotly-cloud-dialog-message--account",!0).text(a.DIALOG_MESSAGE_CLOUD_ACCOUNT)}else{let l=new URL(r),u=l.hostname,c=l.origin,f=a.DIALOG_MESSAGE_OTHER.split(/(\{|\})/),h=f[0],p=f[4],d=o.append("div").classed("plotly-cloud-dialog-message",!0);d.append("span").text(h),d.append("a").classed("plotly-cloud-dialog-message--hostname",!0).attr("href",c).attr("target","_blank").text(u),d.append("span").text(p)}let s=o.append("div").classed("plotly-cloud-dialog-buttons",!0);s.append("button").classed("plotly-cloud-dialog-btn",!0).classed("plotly-cloud-dialog-btn--cancel",!0).text(a.DIALOG_CANCEL).on("click",n),s.append("button").classed("plotly-cloud-dialog-btn",!0).classed("plotly-cloud-dialog-btn--confirm",!0).text(a.DIALOG_CONFIRM).on("click",i)},wkt=(e,t,r)=>{let i=Tye.select(e._fullLayout._paperdiv.node());i.selectAll(".plotly-cloud-dialog").remove();let n=i.append("div").classed("plotly-cloud-dialog",!0),a=()=>{n.remove(),document.removeEventListener("keydown",o)},o=s=>{(s.key==="Escape"||s.keyCode===27)&&a()};document.addEventListener("keydown",o),n.on("click",()=>{Tye.event.target===n.node()&&a()}),_kt(e,n,t,()=>{a(),r()},a)};Aye.exports=wkt});var xj=W((sNr,Lye)=>{"use strict";var E0=xi(),Tkt=Qo(),Eye=Ls(),Qa=U7(),Akt=rF().eraseActiveShape,Mkt=Mye(),Yw=tt(),ka=Yw._,Xa={};Lye.exports=Xa;Xa.toImage={name:"toImage",title:function(e){var t=e._context.toImageButtonOptions||{},r=t.format||"png";return r==="png"?ka(e,"Download plot as a PNG"):ka(e,"Download plot")},icon:Qa.camera,click:function(e){var t=e._context.toImageButtonOptions,r={format:t.format||"png"};Yw.notifier(ka(e,"Preparing image - this may take a few seconds"),"long",e),["filename","width","height","scale"].forEach(function(i){i in t&&(r[i]=t[i])}),E0.call("downloadImage",e,r).then(function(i){Yw.notifier(ka(e,"Image download succeeded")+" - "+i,"long",e)}).catch(function(){Yw.notifier(ka(e,"Sorry, there was a problem downloading your image!"),"long",e)})}};Xa.downloadJson={name:"downloadJson",title:function(e){return ka(e,"Download plot as JSON")},icon:Qa.curlybraces,click:function(e){E0.call("downloadImage",e,{format:"full-json"}).then(function(t){Yw.notifier(ka(e,"JSON download succeeded")+" - "+t,"long",e)}).catch(function(){Yw.notifier(ka(e,"Sorry, there was a problem downloading your JSON file!"),"long",e)})}};Xa.sendChartToCloud={name:"sendChartToCloud",title:function(e){return ka(e,"Share chart...")},icon:Qa.cloudupload,click:function(e){var t=(window.PLOTLYENV||{}).BASE_URL||e._context.plotlyServerURL;if(!t){console.error("No destination URL provided (plotlyServerURL is empty)");return}var r;try{r=new URL(t)}catch(n){console.error("Invalid plotlyServerURL: "+t);return}let i=["http:","https:"];if(!i.includes(r.protocol)){console.error(`Invalid protocol '${r.protocol}' in plotlyServerURL '${t}'. Must be one of: ${i.join(", ")}`);return}Mkt(e,t,function(){Tkt.sendDataToCloud(e,t)})}};Xa.zoom2d={name:"zoom2d",_cat:"zoom",title:function(e){return ka(e,"Zoom")},attr:"dragmode",val:"zoom",icon:Qa.zoombox,click:Df};Xa.pan2d={name:"pan2d",_cat:"pan",title:function(e){return ka(e,"Pan")},attr:"dragmode",val:"pan",icon:Qa.pan,click:Df};Xa.select2d={name:"select2d",_cat:"select",title:function(e){return ka(e,"Box Select")},attr:"dragmode",val:"select",icon:Qa.selectbox,click:Df};Xa.lasso2d={name:"lasso2d",_cat:"lasso",title:function(e){return ka(e,"Lasso Select")},attr:"dragmode",val:"lasso",icon:Qa.lasso,click:Df};Xa.drawclosedpath={name:"drawclosedpath",title:function(e){return ka(e,"Draw closed freeform")},attr:"dragmode",val:"drawclosedpath",icon:Qa.drawclosedpath,click:Df};Xa.drawopenpath={name:"drawopenpath",title:function(e){return ka(e,"Draw open freeform")},attr:"dragmode",val:"drawopenpath",icon:Qa.drawopenpath,click:Df};Xa.drawline={name:"drawline",title:function(e){return ka(e,"Draw line")},attr:"dragmode",val:"drawline",icon:Qa.drawline,click:Df};Xa.drawrect={name:"drawrect",title:function(e){return ka(e,"Draw rectangle")},attr:"dragmode",val:"drawrect",icon:Qa.drawrect,click:Df};Xa.drawcircle={name:"drawcircle",title:function(e){return ka(e,"Draw circle")},attr:"dragmode",val:"drawcircle",icon:Qa.drawcircle,click:Df};Xa.eraseshape={name:"eraseshape",title:function(e){return ka(e,"Erase active shape")},icon:Qa.eraseshape,click:Akt};Xa.zoomIn2d={name:"zoomIn2d",_cat:"zoomin",title:function(e){return ka(e,"Zoom in")},attr:"zoom",val:"in",icon:Qa.zoom_plus,click:Df};Xa.zoomOut2d={name:"zoomOut2d",_cat:"zoomout",title:function(e){return ka(e,"Zoom out")},attr:"zoom",val:"out",icon:Qa.zoom_minus,click:Df};Xa.autoScale2d={name:"autoScale2d",_cat:"autoscale",title:function(e){return ka(e,"Autoscale")},attr:"zoom",val:"auto",icon:Qa.autoscale,click:Df};Xa.resetScale2d={name:"resetScale2d",_cat:"resetscale",title:function(e){return ka(e,"Reset axes")},attr:"zoom",val:"reset",icon:Qa.home,click:Df};Xa.hoverClosestCartesian={name:"hoverClosestCartesian",_cat:"hoverclosest",title:function(e){return ka(e,"Show closest data on hover")},attr:"hovermode",val:"closest",icon:Qa.tooltip_basic,gravity:"ne",click:Df};Xa.hoverCompareCartesian={name:"hoverCompareCartesian",_cat:"hoverCompare",title:function(e){return ka(e,"Compare data on hover")},attr:"hovermode",val:function(e){return e._fullLayout._isHoriz?"y":"x"},icon:Qa.tooltip_compare,gravity:"ne",click:Df};function Df(e,t){var r=t.currentTarget,i=r.getAttribute("data-attr"),n=r.getAttribute("data-val")||!0,a=e._fullLayout,o={},s=Eye.list(e,null,!0),l=a._cartesianSpikesEnabled,u,c;if(i==="zoom"){var f=n==="in"?.5:2,h=(1+f)/2,p=(1-f)/2,d,v;for(c=0;c-x),[v,m]=f.invert(c.midPt),{minscale:g}=u.projection,w=(s=u.projection.maxscale)!=null?s:1/0,_=Math.min(g,w),b=Math.max(g,w),S=n==="in"?Sye*h:1/Sye*h;S>b?S=b:S<_&&(S=_),S!==h&&E0.call("_guiRelayout",e,{[l+".projection.scale"]:S,[l+".projection.rotation.lon"]:p,[l+".projection.rotation.lat"]:d,[l+".center.lon"]:v,[l+".center.lat"]:m,[l+".fitbounds"]:!1})}}i==="reset"&&iF(e,"geo")}Xa.hoverClosestPie={name:"hoverClosestPie",_cat:"hoverclosest",title:function(e){return ka(e,"Toggle show closest data on hover")},attr:"hovermode",val:"closest",icon:Qa.tooltip_basic,gravity:"ne",click:Dye};function Cye(e){var t=e._fullLayout;return t.hovermode?!1:t._has("cartesian")?t._isHoriz?"y":"x":"closest"}function Dye(e){var t=Cye(e);E0.call("_guiRelayout",e,"hovermode",t)}Xa.resetViewSankey={name:"resetSankeyGroup",title:function(e){return ka(e,"Reset view")},icon:Qa.home,click:function(e){for(var t={"node.groups":[],"node.x":[],"node.y":[]},r=0;r{"use strict";var Pye=xj(),Ckt=Object.keys(Pye),Iye=["drawline","drawopenpath","drawclosedpath","drawcircle","drawrect","eraseshape"],Rye=["v1hovermode","hoverclosest","hovercompare","togglehover","togglespikelines"].concat(Iye,["downloadJson"]),Xw=[],Dkt=function(e){if(Rye.indexOf(e._cat||e.name)===-1){var t=e.name,r=(e._cat||e.name).toLowerCase();Xw.indexOf(t)===-1&&Xw.push(t),Xw.indexOf(r)===-1&&Xw.push(r)}};Ckt.forEach(function(e){Dkt(Pye[e])});Xw.sort();zye.exports={DRAW_MODES:Iye,backButtons:Rye,foreButtons:Xw}});var wj={};Jn(wj,{default:()=>Lkt});var _j,Fkt,Lkt,Tj=Ci(()=>{"use strict";_j=s1(bj()),Fkt={editType:"modebar",orientation:{valType:"enumerated",values:["v","h"],dflt:"h",editType:"modebar",description:"Sets the orientation of the modebar."},bgcolor:{valType:"color",editType:"modebar",description:"Sets the background color of the modebar."},color:{valType:"color",editType:"modebar",description:"Sets the color of the icons in the modebar."},activecolor:{valType:"color",editType:"modebar",description:"Sets the color of the active or hovered on icons in the modebar."},uirevision:{valType:"any",editType:"none",description:["Controls persistence of user-driven changes related to the modebar,","including `hovermode`, `dragmode`, and `showspikes` at both the","root level and inside subplots. Defaults to `layout.uirevision`."].join(" ")},add:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar",description:["Determines which predefined modebar buttons to add.","Please note that these buttons will only be shown if they are","compatible with all trace types used in a graph.","Similar to `config.modeBarButtonsToAdd` option.",`This may include *${_j.default.backButtons.join("*, *")}*.`].join(" ")},remove:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar",description:["Determines which predefined modebar buttons to remove.","Similar to `config.modeBarButtonsToRemove` option.",`This may include *${_j.default.foreButtons.join("*, *")}*.`].join(" ")}},Lkt=Fkt});var qye=W((uNr,Bye)=>{"use strict";var Pkt=tt(),YA=ti(),Ikt=Ra(),Rkt=(Tj(),Pt(wj)).default;Bye.exports=function(t,r){var i=t.modebar||{},n=Ikt.newContainer(r,"modebar");function a(s,l){return Pkt.coerce(i,n,Rkt,s,l)}a("orientation"),a("bgcolor",YA.addOpacity(r.paper_bgcolor,.5));var o=YA.contrast(YA.rgb(r.modebar.bgcolor));a("color",YA.addOpacity(o,.3)),a("activecolor",YA.addOpacity(o,.7)),a("uirevision",r.uirevision),a("add"),a("remove")}});var Vye=W((cNr,Uye)=>{"use strict";var Aj=gi(),zkt=hn(),aF=tt(),Oye=U7(),Bkt=N6().version,qkt=new DOMParser;function Nye(e){this.container=e.container,this.element=document.createElement("div"),this.update(e.graphInfo,e.buttons),this.container.appendChild(this.element)}var M1=Nye.prototype;M1.update=function(e,t){this.graphInfo=e;var r=this.graphInfo._context,i=this.graphInfo._fullLayout,n="modebar-"+i._uid;this.element.setAttribute("id",n),this.element.setAttribute("role","toolbar"),this._uid=n,this.element.className="modebar modebar--custom",r.displayModeBar==="hover"&&(this.element.className+=" modebar--hover ease-bg"),i.modebar.orientation==="v"&&(this.element.className+=" vertical",t=t.reverse());var a=i.modebar,o="#"+n+" .modebar-group";document.querySelectorAll(o).forEach(function(f){f.style.backgroundColor=a.bgcolor});var s=!this.hasButtons(t),l=this.hasLogo!==r.displaylogo,u=this.locale!==r.locale;if(this.locale=r.locale,(s||l||u)&&(this.removeAllButtons(),this.updateButtons(t),r.watermark||r.displaylogo)){var c=this.getLogo();r.watermark&&(c.className=c.className+" watermark"),i.modebar.orientation==="v"?this.element.insertBefore(c,this.element.childNodes[0]):this.element.appendChild(c),this.hasLogo=!0}this.updateActiveButton(),aF.setStyleOnHover("#"+n+" .modebar-btn",".active",".icon path","fill: "+a.activecolor,"fill: "+a.color,this.element)};M1.updateButtons=function(e){var t=this;this.buttons=e,this.buttonElements=[],this.buttonsNames=[],this.buttons.forEach(function(r){var i=t.createGroup();r.forEach(function(n){var a=n.name;if(!a)throw new Error("must provide button 'name' in button config");if(t.buttonsNames.indexOf(a)!==-1)throw new Error("button name '"+a+"' is taken");t.buttonsNames.push(a);var o=t.createButton(n);t.buttonElements.push(o),i.appendChild(o)}),t.element.appendChild(i)})};M1.createGroup=function(){var e=document.createElement("div");e.className="modebar-group";var t=this.graphInfo._fullLayout.modebar;return e.style.backgroundColor=t.bgcolor,e};M1.createButton=function(e){var t=this,r=document.createElement("button");r.setAttribute("type","button"),r.setAttribute("rel","tooltip"),r.className="modebar-btn";var i=e.title;i===void 0?i=e.name:typeof i=="function"&&(i=i(this.graphInfo)),(i||i===0)&&(r.setAttribute("data-title",i),r.setAttribute("aria-label",i)),e.attr!==void 0&&r.setAttribute("data-attr",e.attr);var n=e.val;n!==void 0&&(typeof n=="function"&&(n=n(this.graphInfo)),r.setAttribute("data-val",n));var a=e.click;if(typeof a!="function")throw new Error("must provide button 'click' function in button config");r.addEventListener("click",function(s){e.click(t.graphInfo,s),t.updateActiveButton(s.currentTarget)}),r.setAttribute("data-toggle",e.toggle||!1),e.toggle&&Aj.select(r).classed("active",!0);var o=e.icon;return typeof o=="function"?r.appendChild(o()):r.appendChild(this.createIcon(o||Oye.question)),r.setAttribute("data-gravity",e.gravity||"n"),r};M1.createIcon=function(e){var t=zkt(e.height)?Number(e.height):e.ascent-e.descent,r="http://www.w3.org/2000/svg",i;if(e.path){i=document.createElementNS(r,"svg"),i.setAttribute("viewBox",[0,0,e.width,t].join(" ")),i.setAttribute("class","icon");var n=document.createElementNS(r,"path");n.setAttribute("d",e.path),e.transform?n.setAttribute("transform",e.transform):e.ascent!==void 0&&n.setAttribute("transform","matrix(1 0 0 -1 0 "+e.ascent+")"),i.appendChild(n)}if(e.svg){var a=qkt.parseFromString(e.svg,"application/xml");i=a.childNodes[0]}return i.setAttribute("height","1em"),i.setAttribute("width","1em"),i};M1.updateActiveButton=function(e){var t=this.graphInfo._fullLayout,r=e!==void 0?e.getAttribute("data-attr"):null;this.buttonElements.forEach(function(i){var n=i.getAttribute("data-val")||!0,a=i.getAttribute("data-attr"),o=i.getAttribute("data-toggle")==="true",s=Aj.select(i),l=function(f,h){var p=t.modebar,d=f.querySelector(".icon path");d&&(h||f.matches(":hover")?d.style.fill=p.activecolor:d.style.fill=p.color)};if(o){if(a===r){var u=!s.classed("active");s.classed("active",u),l(i,u)}}else{var c=a===null?a:aF.nestedProperty(t,a).get();s.classed("active",c===n),l(i,c===n)}})};M1.hasButtons=function(e){var t=this.buttons;if(!t||e.length!==t.length)return!1;for(var r=0;r{"use strict";var Ukt=Ls(),Gye=Wo(),Mj=xi(),Vkt=ah().isUnifiedHover,Gkt=Vye(),oF=xj(),Hkt=bj().DRAW_MODES,jkt=tt().extendDeep;Hye.exports=function(t){var r=t._fullLayout,i=t._context,n=r._modeBar;if(!i.displayModeBar&&!i.watermark){n&&(n.destroy(),delete r._modeBar);return}if(!Array.isArray(i.modeBarButtonsToRemove))throw new Error(["*modeBarButtonsToRemove* configuration options","must be an array."].join(" "));if(!Array.isArray(i.modeBarButtonsToAdd))throw new Error(["*modeBarButtonsToAdd* configuration options","must be an array."].join(" "));var a=i.modeBarButtons,o;Array.isArray(a)&&a.length?o=Kkt(a):!i.displayModeBar&&i.watermark?o=[]:o=$kt(t),n?n.update(t,o):r._modeBar=Gkt(t,o)};function $kt(e){var t=e._fullLayout,r=e._fullData,i=e._context;function n(L,I){if(typeof I=="string"){if(I.toLowerCase()===L.toLowerCase())return!0}else{var B=I.name,O=I._cat||I.name;if(B===L||O===L.toLowerCase())return!0}return!1}var a=t.modebar.add;typeof a=="string"&&(a=[a]);var o=t.modebar.remove;typeof o=="string"&&(o=[o]);var s=i.modeBarButtonsToAdd.concat(a.filter(function(L){for(var I=0;I1?(y=["toggleHover"],E=["resetViews"]):f?(T=["zoomInGeo","zoomOutGeo"],y=["hoverClosestGeo"],E=["resetGeo"]):c?(y=["hoverClosest3d"],E=["resetCameraDefault3d","resetCameraLastSave3d"]):v?(T=["zoomInMap","zoomOutMap"],y=["toggleHover"],E=["resetViewMap"]):h?y=["hoverClosestPie"]:w?(y=["hoverClosestCartesian","hoverCompareCartesian"],E=["resetViewSankey"]):y=["toggleHover"],u&&y.push("toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"),(Xkt(r)||b)&&(y=[]),u&&!_&&(T=["zoomIn2d","zoomOut2d","autoScale2d"],E[0]!=="resetViews"&&(E=["resetScale2d"])),c?M=["zoom3d","pan3d","orbitRotation","tableRotation"]:u&&!_||d?M=["zoom2d","pan2d"]:v||f?M=["pan2d"]:m&&(M=["zoom2d"]),Ykt(r)&&M.push("select2d","lasso2d");var C=[],k=function(L){C.indexOf(L)===-1&&y.indexOf(L)!==-1&&C.push(L)};if(Array.isArray(s)){for(var D=[],F=0;F{"use strict";$ye.exports={moduleType:"component",name:"modebar",layoutAttributes:(Tj(),Pt(wj)).default,supplyLayoutDefaults:qye(),manage:jye()}});var Ej=W((dNr,Wye)=>{"use strict";var Jkt=(Jl(),Pt(Kl)).FROM_BL;Wye.exports=function(t,r,i){i===void 0&&(i=Jkt[t.constraintoward||"center"]);var n=[t.r2l(t.range[0]),t.r2l(t.range[1])],a=n[0]+(n[1]-n[0])*i;t.range=t._input.range=[t.l2r(a+(n[0]-a)*r),t.l2r(a+(n[1]-a)*r)],t.setScale()}});var kb=W(XA=>{"use strict";var Eb=tt(),kj=Yp(),Zp=Ls().id2name,Qkt=ac(),Yye=Ej(),eCt=v1(),tCt=(ra(),Pt(ia)).ALMOST_EQUAL,rCt=(Jl(),Pt(Kl)).FROM_BL;XA.handleDefaults=function(e,t,r){var i=r.axIds,n=r.axHasImage,a=t._axisConstraintGroups=[],o=t._axisMatchGroups=[],s,l,u,c,f,h,p,d;for(s=0;sa?r.slice(a):i.slice(n))+o}function nCt(e,t){for(var r=t._size,i=r.h/r.w,n={},a=Object.keys(e),o=0;otCt*d&&!w)){for(a=0;aC&&BE&&(E=B);var $=(E-y)/(2*M);f/=$,y=l.l2r(y),E=l.l2r(E),l.range=l._input.range=x{"use strict";var lF=gi(),Ff=xi(),k0=Qo(),_d=tt(),Fj=ao(),Lj=GA(),ZA=ti(),Zw=Qi(),Jye=pb(),i2e=Sj(),KA=Yi(),Jg=(Jl(),Pt(Kl)),n2e=kb(),aCt=n2e.enforce,oCt=n2e.clean,Qye=Yp().doAutoRange,a2e="start",sCt="middle",o2e="end",lCt=(Zl(),Pt(Xl)).zindexSeparator;Ou.layoutStyles=function(e){return _d.syncOrAsync([k0.doAutoMargin,cCt],e)};function uCt(e,t,r){for(var i=0;i=e[1]||n[1]<=e[0])&&a[0]t[0])return!0}return!1}function cCt(e){var t=e._fullLayout,r=t._size,i=r.p,n=KA.list(e,"",!0),a,o,s,l,u,c;if(t._paperdiv.style({width:e._context.responsive&&t.autosize&&!e._context._hasZeroWidth&&!e.layout.width?"100%":t.width+"px",height:e._context.responsive&&t.autosize&&!e._context._hasZeroHeight&&!e.layout.height?"100%":t.height+"px"}).selectAll(".main-svg").call(Zw.setSize,t.width,t.height),e._context.setBackground(e,t.paper_bgcolor),Ou.drawMainTitle(e),i2e.manage(e),!t._has("cartesian"))return k0.previousPromises(e);function f(H,j,Q){var te=H._lw/2;if(H._id.charAt(0)==="x"){if(j){if(Q==="top")return j._offset-i-te}else return r.t+r.h*(1-(H.position||0))+te%1;return j._offset+j._length+i+te}if(j){if(Q==="right")return j._offset+j._length+i+te}else return r.l+r.w*(H.position||0)+te%1;return j._offset-i-te}for(a=0;a0){pCt(e,a,u,l),s.attr({x:o,y:a,"text-anchor":i,dy:r2e(t.yanchor)}).call(Fj.positionText,o,a);var c=(t.text.match(Fj.BR_TAG_ALL)||[]).length;if(c){var f=Jg.LINE_SPACING*c+Jg.MID_SHIFT;t.y===0&&(f=-f),s.selectAll(".line").each(function(){var m=+this.getAttribute("dy").slice(0,-2)-f+"em";this.setAttribute("dy",m)})}var h=lF.select(e).selectAll(".gtitle-subtitle");if(h.node()){var p=s.node().getBBox(),d=p.y+p.height,v=d+Jye.SUBTITLE_PADDING_EM*t.subtitle.font.size;h.attr({x:o,y:v,"text-anchor":i,dy:r2e(t.yanchor)}).call(Fj.positionText,o,v)}}}};function fCt(e,t,r,i,n){var a=t.yref==="paper"?e._fullLayout._size.h:e._fullLayout.height,o=_d.isTopAnchor(t)?i:i-n,s=r==="b"?a-o:o;return _d.isTopAnchor(t)&&r==="t"||_d.isBottomAnchor(t)&&r==="b"?!1:s.5?"t":"b",o=e._fullLayout.margin[a],s=0;return t.yref==="paper"?s=r+t.pad.t+t.pad.b:t.yref==="container"&&(s=hCt(a,i,n,e._fullLayout.height,r)+t.pad.t+t.pad.b),s>o?s:0}function pCt(e,t,r,i){var n="title.automargin",a=e._fullLayout.title,o=a.y>.5?"t":"b",s={x:a.x,y:a.y,t:0,b:0},l={};a.yref==="paper"&&fCt(e,a,o,t,i)?s[o]=r:a.yref==="container"&&(l[o]=r,e._fullLayout._reservedMargin[n]=l),k0.allowAutoMargin(e,n),k0.autoMargin(e,n,s)}function vCt(e,t){var r=e.title,i=e._size,n=0;return t===a2e?n=r.pad.l:t===o2e&&(n=-r.pad.r),r.xref==="paper"?i.l+i.w*r.x+n:e.width*r.x+n}function gCt(e,t){var r=e.title,i=e._size,n=0;return t==="0em"||!t?n=-r.pad.b:t===Jg.CAP_SHIFT+"em"&&(n=r.pad.t),r.y==="auto"?i.t/2:r.yref==="paper"?i.t+i.h-i.h*r.y+n:e.height-e.height*r.y+n}function r2e(e){return e==="top"?Jg.CAP_SHIFT+.3+"em":e==="bottom"?"-0.3em":Jg.MID_SHIFT+"em"}function mCt(e){var t=e.title,r=sCt;return _d.isRightAnchor(t)?r=o2e:_d.isLeftAnchor(t)&&(r=a2e),r}function yCt(e){var t=e.title,r="0em";return _d.isTopAnchor(t)?r=Jg.CAP_SHIFT+"em":_d.isMiddleAnchor(t)&&(r=Jg.MID_SHIFT+"em"),r}Ou.doTraceStyle=function(e){var t=e.calcdata,r=[],i;for(i=0;i{"use strict";var xCt=Hy().readPaths,bCt=K7(),s2e=Ly().clearOutlineControllers,Pj=ti(),l2e=Qi(),_Ct=Ra().arrayEditor,u2e=Wy(),wCt=u2e.getPathString;f2e.exports={draw:uF,drawOne:c2e,activateLastSelection:MCt};function uF(e){var t=e._fullLayout;s2e(e),t._selectionLayer.selectAll("path").remove();for(var r in t._plots){var i=t._plots[r].selectionLayer;i&&i.selectAll("path").remove()}for(var n=0;n=0;m--){var g=o.append("path").attr(l).style("opacity",m?.1:u).call(Pj.stroke,f).call(Pj.fill,c).call(l2e.dashLine,m?"solid":p,m?4+h:h);if(TCt(g,e,i),d){var w=_Ct(e.layout,"selections",i);g.style({cursor:"move"});var _={element:g.node(),plotinfo:n,gd:e,editHelpers:w,isActiveSelection:!0},b=xCt(s,e);bCt(b,g,_)}else g.style("pointer-events",m?"all":"none");v[m]=g}var S=v[0],x=v[1];x.node().addEventListener("click",function(){return ACt(e,S)})}}function TCt(e,t,r){var i=r.xref+r.yref;l2e.setClipUrl(e,"clip"+t._fullLayout._uid+i,t)}function ACt(e,t){if(cF(e)){var r=t.node(),i=+r.getAttribute("data-index");if(i>=0){if(i===e._fullLayout._activeSelectionIndex){Ij(e);return}e._fullLayout._activeSelectionIndex=i,e._fullLayout._deactivateSelection=Ij,uF(e)}}}function MCt(e){if(cF(e)){var t=e._fullLayout.selections.length-1;e._fullLayout._activeSelectionIndex=t,e._fullLayout._deactivateSelection=Ij,uF(e)}}function Ij(e){if(cF(e)){var t=e._fullLayout._activeSelectionIndex;t>=0&&(s2e(e),delete e._fullLayout._activeSelectionIndex,uF(e))}}});var d2e=W((mNr,h2e)=>{function SCt(){var e,t=0,r=!1;function i(n,a){return e.list.push({type:n,data:a?JSON.parse(JSON.stringify(a)):void 0}),e}return e={list:[],segmentId:function(){return t++},checkIntersection:function(n,a){return i("check",{seg1:n,seg2:a})},segmentChop:function(n,a){return i("div_seg",{seg:n,pt:a}),i("chop",{seg:n,pt:a})},statusRemove:function(n){return i("pop_seg",{seg:n})},segmentUpdate:function(n){return i("seg_update",{seg:n})},segmentNew:function(n,a){return i("new_seg",{seg:n,primary:a})},segmentRemove:function(n){return i("rem_seg",{seg:n})},tempStatus:function(n,a,o){return i("temp_status",{seg:n,above:a,below:o})},rewind:function(n){return i("rewind",{seg:n})},status:function(n,a,o){return i("status",{seg:n,above:a,below:o})},vert:function(n){return n===r?e:(r=n,i("vert",{x:n}))},log:function(n){return typeof n!="string"&&(n=JSON.stringify(n,!1," ")),i("log",{txt:n})},reset:function(){return i("reset")},selected:function(n){return i("selected",{segs:n})},chainStart:function(n){return i("chain_start",{seg:n})},chainRemoveHead:function(n,a){return i("chain_rem_head",{index:n,pt:a})},chainRemoveTail:function(n,a){return i("chain_rem_tail",{index:n,pt:a})},chainNew:function(n,a){return i("chain_new",{pt1:n,pt2:a})},chainMatch:function(n){return i("chain_match",{index:n})},chainClose:function(n){return i("chain_close",{index:n})},chainAddHead:function(n,a){return i("chain_add_head",{index:n,pt:a})},chainAddTail:function(n,a){return i("chain_add_tail",{index:n,pt:a})},chainConnect:function(n,a){return i("chain_con",{index1:n,index2:a})},chainReverse:function(n){return i("chain_rev",{index:n})},chainJoin:function(n,a){return i("chain_join",{index1:n,index2:a})},done:function(){return i("done")}},e}h2e.exports=SCt});var v2e=W((yNr,p2e)=>{function ECt(e){typeof e!="number"&&(e=1e-10);var t={epsilon:function(r){return typeof r=="number"&&(e=r),e},pointAboveOrOnLine:function(r,i,n){var a=i[0],o=i[1],s=n[0],l=n[1],u=r[0],c=r[1];return(s-a)*(c-o)-(l-o)*(u-a)>=-e},pointBetween:function(r,i,n){var a=r[1]-i[1],o=n[0]-i[0],s=r[0]-i[0],l=n[1]-i[1],u=s*o+a*l;if(u-e)},pointsSameX:function(r,i){return Math.abs(r[0]-i[0])e!=s-a>e&&(o-c)*(a-f)/(s-f)+c-n>e&&(l=!l),o=c,s=f}return l}};return t}p2e.exports=ECt});var m2e=W((xNr,g2e)=>{var kCt={create:function(){var e={root:{root:!0,next:null},exists:function(t){return!(t===null||t===e.root)},isEmpty:function(){return e.root.next===null},getHead:function(){return e.root.next},insertBefore:function(t,r){for(var i=e.root,n=e.root.next;n!==null;){if(r(n)){t.prev=n.prev,t.next=n,n.prev.next=t,n.prev=t;return}i=n,n=n.next}i.next=t,t.prev=i,t.next=null},findTransition:function(t){for(var r=e.root,i=e.root.next;i!==null&&!t(i);)r=i,i=i.next;return{before:r===e.root?null:r,after:i,insert:function(n){return n.prev=r,n.next=i,r.next=n,i!==null&&(i.prev=n),n}}}};return e},node:function(e){return e.prev=null,e.next=null,e.remove=function(){e.prev.next=e.next,e.next&&(e.next.prev=e.prev),e.prev=null,e.next=null},e}};g2e.exports=kCt});var x2e=W((bNr,y2e)=>{var QA=m2e();function CCt(e,t,r){function i(d,v){return{id:r?r.segmentId():-1,start:d,end:v,myFill:{above:null,below:null},otherFill:null}}function n(d,v,m){return{id:r?r.segmentId():-1,start:d,end:v,myFill:{above:m.myFill.above,below:m.myFill.below},otherFill:null}}var a=QA.create();function o(d,v,m,g,w,_){var b=t.pointsCompare(v,w);return b!==0?b:t.pointsSame(m,_)?0:d!==g?d?1:-1:t.pointAboveOrOnLine(m,g?w:_,g?_:w)?1:-1}function s(d,v){a.insertBefore(d,function(m){var g=o(d.isStart,d.pt,v,m.isStart,m.pt,m.other.pt);return g<0})}function l(d,v){var m=QA.node({isStart:!0,pt:d.start,seg:d,primary:v,other:null,status:null});return s(m,d.end),m}function u(d,v,m){var g=QA.node({isStart:!1,pt:v.end,seg:v,primary:m,other:d,status:null});d.other=g,s(g,d.pt)}function c(d,v){var m=l(d,v);return u(m,d,v),m}function f(d,v){r&&r.segmentChop(d.seg,v),d.other.remove(),d.seg.end=v,d.other.pt=v,s(d.other,d.pt)}function h(d,v){var m=n(v,d.seg.end,d.seg);return f(d,v),c(m,d.primary)}function p(d,v){var m=QA.create();function g(F,P){var R=F.seg.start,L=F.seg.end,I=P.seg.start,B=P.seg.end;return t.pointsCollinear(R,I,B)?t.pointsCollinear(L,I,B)||t.pointAboveOrOnLine(L,I,B)?1:-1:t.pointAboveOrOnLine(R,I,B)?1:-1}function w(F){return m.findTransition(function(P){var R=g(F,P.ev);return R>0})}function _(F,P){var R=F.seg,L=P.seg,I=R.start,B=R.end,O=L.start,$=L.end;r&&r.checkIntersection(R,L);var X=t.linesIntersect(I,B,O,$);if(X===!1){if(!t.pointsCollinear(I,B,O)||t.pointsSame(I,$)||t.pointsSame(B,O))return!1;var K=t.pointsSame(I,O),G=t.pointsSame(B,$);if(K&&G)return P;var q=!K&&t.pointBetween(I,O,$),J=!G&&t.pointBetween(B,O,$);if(K)return J?h(P,B):h(F,$),P;q&&(G||(J?h(P,B):h(F,$)),h(P,I))}else X.alongA===0&&(X.alongB===-1?h(F,O):X.alongB===0?h(F,X.pt):X.alongB===1&&h(F,$)),X.alongB===0&&(X.alongA===-1?h(P,I):X.alongA===0?h(P,X.pt):X.alongA===1&&h(P,B));return!1}for(var b=[];!a.isEmpty();){var S=a.getHead();if(r&&r.vert(S.pt[0]),S.isStart){let F=function(){if(A){var P=_(S,A);if(P)return P}return T?_(S,T):!1};var D=F;r&&r.segmentNew(S.seg,S.primary);var x=w(S),A=x.before?x.before.ev:null,T=x.after?x.after.ev:null;r&&r.tempStatus(S.seg,A?A.seg:!1,T?T.seg:!1);var y=F();if(y){if(e){var E;S.seg.myFill.below===null?E=!0:E=S.seg.myFill.above!==S.seg.myFill.below,E&&(y.seg.myFill.above=!y.seg.myFill.above)}else y.seg.otherFill=S.seg.myFill;r&&r.segmentUpdate(y.seg),S.other.remove(),S.remove()}if(a.getHead()!==S){r&&r.rewind(S.seg);continue}if(e){var E;S.seg.myFill.below===null?E=!0:E=S.seg.myFill.above!==S.seg.myFill.below,T?S.seg.myFill.below=T.seg.myFill.above:S.seg.myFill.below=d,E?S.seg.myFill.above=!S.seg.myFill.below:S.seg.myFill.above=S.seg.myFill.below}else if(S.seg.otherFill===null){var M;T?S.primary===T.primary?M=T.seg.otherFill.above:M=T.seg.myFill.above:M=S.primary?v:d,S.seg.otherFill={above:M,below:M}}r&&r.status(S.seg,A?A.seg:!1,T?T.seg:!1),S.other.status=x.insert(QA.node({ev:S}))}else{var C=S.status;if(C===null)throw new Error("PolyBool: Zero-length segment detected; your epsilon is probably too small or too large");if(m.exists(C.prev)&&m.exists(C.next)&&_(C.prev.ev,C.next.ev),r&&r.statusRemove(C.ev.seg),C.remove(),!S.primary){var k=S.seg.myFill;S.seg.myFill=S.seg.otherFill,S.seg.otherFill=k}b.push(S.seg)}a.getHead().remove()}return r&&r.done(),b}return e?{addRegion:function(d){for(var v,m=d[d.length-1],g=0;g{function DCt(e,t,r){var i=[],n=[];return e.forEach(function(a){var o=a.start,s=a.end;if(t.pointsSame(o,s)){console.warn("PolyBool: Warning: Zero-length segment detected; your epsilon is probably too small or too large");return}r&&r.chainStart(a);var l={index:0,matches_head:!1,matches_pt1:!1},u={index:0,matches_head:!1,matches_pt1:!1},c=l;function f(D,F,P){return c.index=D,c.matches_head=F,c.matches_pt1=P,c===l?(c=u,!1):(c=null,!0)}for(var h=0;h{function eM(e,t,r){var i=[];return e.forEach(function(n){var a=(n.myFill.above?8:0)+(n.myFill.below?4:0)+(n.otherFill&&n.otherFill.above?2:0)+(n.otherFill&&n.otherFill.below?1:0);t[a]!==0&&i.push({id:r?r.segmentId():-1,start:n.start,end:n.end,myFill:{above:t[a]===1,below:t[a]===2},otherFill:null})}),r&&r.selected(i),i}var FCt={union:function(e,t){return eM(e,[0,2,1,0,2,2,0,0,1,0,1,0,0,0,0,0],t)},intersect:function(e,t){return eM(e,[0,0,0,0,0,2,0,2,0,0,1,1,0,2,1,0],t)},difference:function(e,t){return eM(e,[0,0,0,0,2,0,2,0,1,1,0,0,0,1,2,0],t)},differenceRev:function(e,t){return eM(e,[0,2,1,0,0,0,1,1,0,2,0,2,0,0,0,0],t)},xor:function(e,t){return eM(e,[0,2,1,0,2,0,0,1,1,0,0,2,0,1,2,0],t)}};w2e.exports=FCt});var M2e=W((TNr,A2e)=>{var LCt={toPolygon:function(e,t){function r(a){if(a.length<=0)return e.segments({inverted:!1,regions:[]});function o(u){var c=u.slice(0,u.length-1);return e.segments({inverted:!1,regions:[c]})}for(var s=o(a[0]),l=1;l{var PCt=d2e(),ICt=v2e(),S2e=x2e(),RCt=_2e(),tM=T2e(),E2e=M2e(),wd=!1,rM=ICt(),jh;jh={buildLog:function(e){return e===!0?wd=PCt():e===!1&&(wd=!1),wd===!1?!1:wd.list},epsilon:function(e){return rM.epsilon(e)},segments:function(e){var t=S2e(!0,rM,wd);return e.regions.forEach(t.addRegion),{segments:t.calculate(e.inverted),inverted:e.inverted}},combine:function(e,t){var r=S2e(!1,rM,wd);return{combined:r.calculate(e.segments,e.inverted,t.segments,t.inverted),inverted1:e.inverted,inverted2:t.inverted}},selectUnion:function(e){return{segments:tM.union(e.combined,wd),inverted:e.inverted1||e.inverted2}},selectIntersect:function(e){return{segments:tM.intersect(e.combined,wd),inverted:e.inverted1&&e.inverted2}},selectDifference:function(e){return{segments:tM.difference(e.combined,wd),inverted:e.inverted1&&!e.inverted2}},selectDifferenceRev:function(e){return{segments:tM.differenceRev(e.combined,wd),inverted:!e.inverted1&&e.inverted2}},selectXor:function(e){return{segments:tM.xor(e.combined,wd),inverted:e.inverted1!==e.inverted2}},polygon:function(e){return{regions:RCt(e.segments,rM,wd),inverted:e.inverted}},polygonFromGeoJSON:function(e){return E2e.toPolygon(jh,e)},polygonToGeoJSON:function(e){return E2e.fromPolygon(jh,rM,e)},union:function(e,t){return iM(e,t,jh.selectUnion)},intersect:function(e,t){return iM(e,t,jh.selectIntersect)},difference:function(e,t){return iM(e,t,jh.selectDifference)},differenceRev:function(e,t){return iM(e,t,jh.selectDifferenceRev)},xor:function(e,t){return iM(e,t,jh.selectXor)}};function iM(e,t,r){var i=jh.segments(e),n=jh.segments(t),a=jh.combine(i,n),o=r(a);return jh.polygon(o)}typeof window=="object"&&(window.PolyBool=jh);k2e.exports=jh});var F2e=W((MNr,D2e)=>{D2e.exports=function(t,r,i,n){var a=t[0],o=t[1],s=!1;i===void 0&&(i=0),n===void 0&&(n=r.length);for(var l=n-i,u=0,c=l-1;uo!=d>o&&a<(p-f)*(o-h)/(d-h)+f;v&&(s=!s)}return s}});var nM=W((SNr,L2e)=>{"use strict";var zj=gD().dot,fF=(ra(),Pt(ia)).BADNUM,hF=L2e.exports={};hF.tester=function(t){var r=t.slice(),i=r[0][0],n=i,a=r[0][1],o=a,s;for((r[r.length-1][0]!==r[0][0]||r[r.length-1][1]!==r[0][1])&&r.push(r[0]),s=1;sn||g===fF||go||v&&u(d))}function f(d,v){var m=d[0],g=d[1];if(m===fF||mn||g===fF||go)return!1;var w=r.length,_=r[0][0],b=r[0][1],S=0,x,A,T,y,E;for(x=1;xMath.max(A,_)||g>Math.max(T,b)))if(gs||Math.abs(zj(f,u))>n)return!0;return!1};hF.filter=function(t,r){var i=[t[0]],n=0,a=0;function o(l){t.push(l);var u=i.length,c=n;i.splice(a+1);for(var f=c+1;f1){var s=t.pop();o(s)}return{addPt:o,raw:t,filtered:i}}});var P2e={};Jn(P2e,{BENDPX:()=>zCt,MINSELECT:()=>BCt,SELECTDELAY:()=>qCt,SELECTID:()=>OCt});var zCt,BCt,qCt,OCt,I2e=Ci(()=>{"use strict";zCt=1.5,BCt=12,qCt=100,OCt="-select"});var rxe=W((ENr,txe)=>{"use strict";var R2e=C2e(),NCt=F2e(),sM=xi(),UCt=Qi().dashStyle,aM=ti(),VCt=Is(),GCt=ah().makeEventData,hM=_1(),HCt=hM.freeMode,jCt=hM.rectMode,lM=hM.drawMode,Nj=hM.openMode,Uj=hM.selectMode,z2e=Wy(),B2e=($A(),Pt(jA)),V2e=K7(),G2e=Ly().clearOutline,H2e=Hy(),Bj=H2e.handleEllipse,$Ct=H2e.readPaths,WCt=Y7().newShapes,YCt=uj(),XCt=Rj().activateLastSelection,pF=tt(),ZCt=pF.sorterAsc,j2e=nM(),oM=CD(),Td=Ls().getFromId,KCt=GA(),JCt=JA().redrawReglTraces,vF=(I2e(),Pt(P2e)),S1=vF.MINSELECT,QCt=j2e.filter,Vj=j2e.tester,Gj=H7(),q2e=Gj.p2r,e8t=Gj.axValue,t8t=Gj.getTransform;function Hj(e){return e.subplot!==void 0}function r8t(e,t,r,i,n){var a=!Hj(i),o=HCt(n),s=jCt(n),l=Nj(n),u=lM(n),c=Uj(n),f=n==="drawline",h=n==="drawcircle",p=f||h,d=i.gd,v=d._fullLayout,m=c&&v.newselection.mode==="immediate"&&a,g=v._zoomlayer,w=i.element.getBoundingClientRect(),_=i.plotinfo,b=t8t(_),S=t-w.left,x=r-w.top;v._calcInverseTransform(d);var A=pF.apply3DTransform(v._invTransform)(S,x);S=A[0],x=A[1];var T=v._invScaleX,y=v._invScaleY,E=S,M=x,C="M"+S+","+x,k=i.xaxes[0],D=i.yaxes[0],F=k._length,P=D._length,R=e.altKey&&!(lM(n)&&l),L,I,B,O,$,X,K;W2e(e,d,i),o&&(L=QCt([[S,x]],vF.BENDPX));var G=g.selectAll("path.select-outline-"+_.id).data([1]),q=u?v.newshape:v.newselection;u&&(i.hasText=q.label.text||q.label.texttemplate);var J=u&&!l?q.fillcolor:"rgba(0,0,0,0)",N=q.line.color||(a?aM.contrast(d._fullLayout.plot_bgcolor):"#7f7f7f");G.enter().append("path").attr("class","select-outline select-outline-"+_.id).style({opacity:u?q.opacity/2:1,"stroke-dasharray":UCt(q.line.dash,q.line.width),"stroke-width":q.line.width+"px","shape-rendering":"crispEdges"}).call(aM.stroke,N).call(aM.fill,J).attr("fill-rule","evenodd").classed("cursor-move",!!u).attr("transform",b).attr("d",C+"Z");var V=g.append("path").attr("class","zoombox-corners").style({fill:aM.background,stroke:aM.defaultLine,"stroke-width":1}).attr("transform",b).attr("d","M0,0Z");if(u&&i.hasText){var Y=g.select(".label-temp");Y.empty()&&(Y=g.append("g").classed("label-temp",!0).classed("select-outline",!0).style({opacity:.8}))}var H=v._uid+vF.SELECTID,j=[],Q=gF(d,i.xaxes,i.yaxes,i.subplot);m&&!e.shiftKey&&(i._clearSubplotSelections=function(){if(a){var ue=k._id,ge=D._id;J2e(d,ue,ge,Q);for(var Ee=(d.layout||{}).selections||[],xe=[],ce=!1,oe=0;oe=0){d._fullLayout._deactivateShape(d);return}if(!u){var Ee=v.clickmode;oM.done(H).then(function(){if(oM.clear(H),ue===2){for(G.remove(),$=0;$-1&&$2e(ge,d,i.xaxes,i.yaxes,i.subplot,i,G),Ee==="event"&&fM(d,void 0);VCt.click(d,ge,_.id)}).catch(pF.error)}},i.doneFn=function(){V.remove(),oM.done(H).then(function(){oM.clear(H),!m&&O&&i.selectionDefs&&(O.subtract=R,i.selectionDefs.push(O),i.mergedPolygons.length=0,[].push.apply(i.mergedPolygons,B)),(m||u)&&uM(i,m),i.doneFnCompleted&&i.doneFnCompleted(j),c&&fM(d,K)}).catch(pF.error)}}function $2e(e,t,r,i,n,a,o){var s=t._hoverdata,l=t._fullLayout,u=l.clickmode,c=u.indexOf("event")>-1,f=[],h,p,d,v,m,g,w,_,b,S;if(s8t(s)){W2e(e,t,a),h=gF(t,r,i,n);var x=l8t(s,h),A=x.pointNumbers.length>0;if(A?u8t(h,x):c8t(h)&&(w=N2e(x))){for(o&&o.remove(),S=0;S=0}function o8t(e){return e._fullLayout._activeSelectionIndex>=0}function uM(e,t){var r=e.dragmode,i=e.plotinfo,n=e.gd;a8t(n)&&n._fullLayout._deactivateShape(n),o8t(n)&&n._fullLayout._deactivateSelection(n);var a=n._fullLayout,o=a._zoomlayer,s=lM(r),l=Uj(r);if(s||l){var u=o.selectAll(".select-outline-"+i.id);if(u&&n._fullLayout._outlining){var c;s&&(c=WCt(u,e)),c&&sM.call("_guiRelayout",n,{shapes:c});var f;l&&!Hj(e)&&(f=YCt(u,e)),f&&(n._fullLayout._noEmitSelectedAtStart=!0,sM.call("_guiRelayout",n,{selections:f}).then(function(){t&&XCt(n)})),n._fullLayout._outlining=!1}}i.selection={},i.selection.selectionDefs=e.selectionDefs=[],i.selection.mergedPolygons=e.mergedPolygons=[]}function O2e(e){return e._id}function gF(e,t,r,i){if(!e.calcdata)return[];var n=[],a=t.map(O2e),o=r.map(O2e),s,l,u;for(u=0;u0,a=n?i[0]:r;return t.selectedpoints?t.selectedpoints.indexOf(a)>-1:!1}function u8t(e,t){var r=[],i,n,a,o;for(o=0;o0&&r.push(i);if(r.length===1&&(a=r[0]===t.searchInfo,a&&(n=t.searchInfo.cd[0].trace,n.selectedpoints.length===t.pointNumbers.length))){for(o=0;o1||(t+=i.selectedpoints.length,t>1)))return!1;return t===1}function cM(e,t,r){var i,n;for(i=0;i-1&&t;if(!o&&t){var ue=U2e(e,!0);if(ue.length){var ge=ue[0].xref,Ee=ue[0].yref;if(ge&&Ee){var xe=Q2e(ue),ce=exe([Td(e,ge,"x"),Td(e,Ee,"y")]);ce(j,xe)}}e._fullLayout._noEmitSelectedAtStart?e._fullLayout._noEmitSelectedAtStart=!1:te&&fM(e,j),h._reselect=!1}if(!o&&h._deselect){var oe=h._deselect;s=oe.xref,l=oe.yref,d8t(s,l,c)||J2e(e,s,l,i),te&&(j.points.length?fM(e,j):Wj(e)),h._deselect=!1}return{eventData:j,selectionTesters:r}}function h8t(e){var t=e.calcdata;if(t)for(var r=0;r{"use strict";ixe.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}]});var dM={};Jn(dM,{axisRefDescription:()=>y8t});function y8t(e,t,r){return[`If set to a ${e} axis id (e.g. *${e}* or *${e}2*),`,`the \`${e}\` position refers to a ${e} coordinate.`,`If set to *paper*, the \`${e}\` position refers to the distance from the`,`${t} of the plotting area in normalized coordinates where *0* (*1*) corresponds`,`to the ${t} (${r}). If set to a ${e} 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 ${t} of the domain of that`,`axis: e.g., *${e}2 domain* refers to the domain of the second ${e}`,`axis and a ${e} position of 0.5 refers to the point between the ${t}`,`and the ${r} of the domain of the second ${e} axis.`].join(" ")}var pM=Ci(()=>{"use strict"});var Xy=W((DNr,oxe)=>{"use strict";var nxe=Yj(),axe=jo(),mF=(Zl(),Pt(Xl)),x8t=Ra().templatedArray,CNr=(pM(),Pt(dM));oxe.exports=x8t("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:axe({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:nxe.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:nxe.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",mF.idRegex.x.toString()],editType:"calc"},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",mF.idRegex.y.toString()],editType:"calc"},xref:{valType:"enumerated",values:["paper",mF.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",mF.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:axe({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc"})});var E1={};Jn(E1,{PTS_LINESONLY:()=>b8t,eventDataKeys:()=>A8t,maxScreensAway:()=>T8t,minTolerance:()=>_8t,toleranceGrowth:()=>w8t});var b8t,_8t,w8t,T8t,A8t,k1=Ci(()=>{"use strict";b8t=20,_8t=.2,w8t=10,T8t=20,A8t=[]});var C1=W((FNr,sxe)=>{"use strict";sxe.exports=function(t){return{valType:"color",editType:"style",anim:!0}}});var Ws=W((LNr,vxe)=>{"use strict";var lxe=Ts().axisHoverFormat,{hovertemplateAttrs:M8t,texttemplateAttrs:S8t,templatefallbackAttrs:uxe}=Wa(),cxe=Fo(),E8t=jo(),fxe=zu().dash,k8t=zu().pattern,C8t=Qi(),D8t=(k1(),Pt(E1)),vM=an().extendFlat,F8t=C1();function hxe(e){return{valType:"any",dflt:0,editType:"calc"}}function dxe(e){return{valType:"any",editType:"calc"}}function pxe(e){return{valType:"enumerated",values:["start","middle","end"],dflt:"middle",editType:"calc"}}vxe.exports={x:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0},x0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",anim:!0},dx:{valType:"number",dflt:1,editType:"calc",anim:!0},y:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0},y0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",anim:!0},dy:{valType:"number",dflt:1,editType:"calc",anim:!0},xperiod:hxe("x"),yperiod:hxe("y"),xperiod0:dxe("x0"),yperiod0:dxe("y0"),xperiodalignment:pxe("x"),yperiodalignment:pxe("y"),xhoverformat:lxe("x"),yhoverformat:lxe("y"),offsetgroup:{valType:"string",dflt:"",editType:"calc"},alignmentgroup:{valType:"string",dflt:"",editType:"calc"},stackgroup:{valType:"string",dflt:"",editType:"calc"},orientation:{valType:"enumerated",values:["v","h"],editType:"calc"},groupnorm:{valType:"enumerated",values:["","fraction","percent"],dflt:"",editType:"calc"},stackgaps:{valType:"enumerated",values:["infer zero","interpolate"],dflt:"infer zero",editType:"calc"},text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},texttemplate:S8t(),texttemplatefallback:uxe({editType:"calc"}),hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"style"},mode:{valType:"flaglist",flags:["lines","markers","text"],extras:["none"],editType:"calc"},hoveron:{valType:"flaglist",flags:["points","fills"],editType:"style"},hovertemplate:M8t({},{keys:D8t.eventDataKeys}),hovertemplatefallback:uxe(),line:{color:{valType:"color",editType:"style",anim:!0},width:{valType:"number",min:0,dflt:2,editType:"style",anim:!0},shape:{valType:"enumerated",values:["linear","spline","hv","vh","hvh","vhv"],dflt:"linear",editType:"plot"},smoothing:{valType:"number",min:0,max:1.3,dflt:1,editType:"plot"},dash:vM({},fxe,{editType:"style"}),backoff:{valType:"number",min:0,dflt:"auto",arrayOk:!0,editType:"plot"},simplify:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},connectgaps:{valType:"boolean",dflt:!1,editType:"calc"},cliponaxis:{valType:"boolean",dflt:!0,editType:"plot"},fill:{valType:"enumerated",values:["none","tozeroy","tozerox","tonexty","tonextx","toself","tonext"],editType:"calc"},fillcolor:F8t(!0),fillgradient:vM({type:{valType:"enumerated",values:["radial","horizontal","vertical","none"],dflt:"none",editType:"calc"},start:{valType:"number",editType:"calc"},stop:{valType:"number",editType:"calc"},colorscale:{valType:"colorscale",editType:"style"},editType:"calc"}),fillpattern:k8t,marker:vM({symbol:{valType:"enumerated",values:C8t.symbolList,dflt:"circle",arrayOk:!0,editType:"style"},opacity:{valType:"number",min:0,max:1,arrayOk:!0,editType:"style",anim:!0},angle:{valType:"angle",dflt:0,arrayOk:!0,editType:"plot",anim:!1},angleref:{valType:"enumerated",values:["previous","up"],dflt:"up",editType:"plot",anim:!1},standoff:{valType:"number",min:0,dflt:0,arrayOk:!0,editType:"plot",anim:!0},size:{valType:"number",min:0,dflt:6,arrayOk:!0,editType:"calc",anim:!0},maxdisplayed:{valType:"number",min:0,dflt:0,editType:"plot"},sizeref:{valType:"number",dflt:1,editType:"calc"},sizemin:{valType:"number",min:0,dflt:0,editType:"calc"},sizemode:{valType:"enumerated",values:["diameter","area"],dflt:"diameter",editType:"calc"},line:vM({width:{valType:"number",min:0,arrayOk:!0,editType:"style",anim:!0},dash:vM({},fxe,{arrayOk:!0}),editType:"calc"},cxe("marker.line",{anim:!0})),gradient:{type:{valType:"enumerated",values:["radial","horizontal","vertical","none"],arrayOk:!0,dflt:"none",editType:"calc"},color:{valType:"color",arrayOk:!0,editType:"calc"},editType:"calc"},editType:"calc"},cxe("marker",{anim:!0})),selected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style"},color:{valType:"color",editType:"style"},size:{valType:"number",min:0,editType:"style"},editType:"style"},textfont:{color:{valType:"color",editType:"style"},editType:"style"},editType:"style"},unselected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style"},color:{valType:"color",editType:"style"},size:{valType:"number",min:0,editType:"style"},editType:"style"},textfont:{color:{valType:"color",editType:"style"},editType:"style"},editType:"style"},textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right"],dflt:"middle center",arrayOk:!0,editType:"calc"},textfont:E8t({editType:"calc",colorEditType:"style",arrayOk:!0}),zorder:{valType:"integer",dflt:0,editType:"plot"}}});var Xj=W((INr,yxe)=>{"use strict";var gxe=Xy(),mxe=Ws().line,L8t=zu().dash,yF=an().extendFlat,P8t=hs().overrideAll,I8t=Ra().templatedArray,PNr=(pM(),Pt(dM));yxe.exports=P8t(I8t("selection",{type:{valType:"enumerated",values:["rect","path"]},xref:yF({},gxe.xref,{}),yref:yF({},gxe.yref,{}),x0:{valType:"any"},x1:{valType:"any"},y0:{valType:"any"},y1:{valType:"any"},path:{valType:"string",editType:"arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:.7,editType:"arraydraw"},line:{color:mxe.color,width:yF({},mxe.width,{min:1,dflt:1}),dash:yF({},L8t,{dflt:"dot"})}}),"arraydraw","from-root")});var wxe=W((RNr,_xe)=>{"use strict";var xxe=tt(),xF=Yi(),R8t=tf(),z8t=Xj(),bxe=Wy();_xe.exports=function(t,r){R8t(t,r,{name:"selections",handleItemDefaults:B8t});for(var i=r.selections,n=0;n{"use strict";Txe.exports=function(t,r,i){i("newselection.mode");var n=i("newselection.line.width");n&&(i("newselection.line.color"),i("newselection.line.dash")),i("activeselection.fillcolor"),i("activeselection.opacity")}});var gM=W((BNr,Exe)=>{"use strict";var q8t=xi(),Mxe=tt(),Sxe=Ls();Exe.exports=function(t){return function(i,n){var a=i[t];if(Array.isArray(a))for(var o=q8t.subplotsRegistry.cartesian,s=o.idRegex,l=n._subplots,u=l.xaxis,c=l.yaxis,f=l.cartesian,h=n._has("cartesian"),p=0;p{"use strict";var kxe=Rj(),mM=rxe();Cxe.exports={moduleType:"component",name:"selections",layoutAttributes:Xj(),supplyLayoutDefaults:wxe(),supplyDrawNewSelectionDefaults:Axe(),includeBasePlot:gM()("selections"),draw:kxe.draw,drawOne:kxe.drawOne,reselect:mM.reselect,prepSelect:mM.prepSelect,clearOutline:mM.clearOutline,clearSelectionsCache:mM.clearSelectionsCache,selectOnClick:mM.selectOnClick}});var i$=W((ONr,Yxe)=>{"use strict";var t$=gi(),Ad=tt(),Dxe=Ad.numberFormat,O8t=M7(),bF=xi(),qxe=Ad.strTranslate,N8t=ao(),Kj=ti(),Zy=Qi(),U8t=Is(),Fxe=Yi(),V8t=Xp(),G8t=Ef(),Oxe=_1(),_F=Oxe.selectingOrDrawing,H8t=Oxe.freeMode,j8t=(Jl(),Pt(Kl)).FROM_TL,$8t=GA(),W8t=JA().redrawReglTraces,Y8t=Qo(),Jj=Ls().getFromId,X8t=xu().prepSelect,Z8t=xu().clearOutline,K8t=xu().selectOnClick,Zj=Ej(),r$=(Zl(),Pt(Xl)),Lxe=r$.MINDRAG,oh=r$.MINZOOM,Pxe=!0;function J8t(e,t,r,i,n,a,o,s){var l=e._fullLayout._zoomlayer,u=o+s==="nsew",c=(o+s).length===1,f,h,p,d,v,m,g,w,_,b,S,x,A,T,y,E,M,C,k,D,F,P,R;r+=t.yaxis._shift;function L(){if(f=t.xaxis,h=t.yaxis,_=f._length,b=h._length,g=f._offset,w=h._offset,p={},p[f._id]=f,d={},d[h._id]=h,o&&s)for(var we=t.overlays,me=0;me=0){Le._fullLayout._deactivateShape(Le);return}var Ne=Le._fullLayout.clickmode;if(e$(Le),we===2&&!c&&_e(),u)Ne.indexOf("select")>-1&&K8t(me,Le,v,m,t.id,O),Ne.indexOf("event")>-1&&U8t.click(Le,me,t.id);else if(we===1&&c){var Je=o?h:f,rt=o==="s"||s==="w"?0:1,mt=Je._name+".range["+rt+"]",dt=Q8t(Je,rt),St="left",Ke="middle";if(Je.fixedrange)return;o?(Ke=o==="n"?"top":"bottom",Je.side==="right"&&(St="right")):s==="e"&&(St="right"),Le._context.showAxisRangeEntryBoxes&&t$.select(B).call(N8t.makeEditable,{gd:Le,immediate:!0,background:Le._fullLayout.paper_bgcolor,text:String(dt),fill:Je.tickfont?Je.tickfont.color:"#444",horizontalAlign:St,verticalAlign:Ke}).on("edit",function(bt){var pt=Je.d2r(bt);pt!==void 0&&bF.call("_guiRelayout",Le,mt,pt)})}}G8t.init(O);var K,G,q,J,N,V,Y,H,j,Q;function te(we,me,Le){var Ne=B.getBoundingClientRect();K=me-Ne.left,G=Le-Ne.top,e._fullLayout._calcInverseTransform(e);var Je=Ad.apply3DTransform(e._fullLayout._invTransform)(K,G);K=Je[0],G=Je[1],q={l:K,r:K,w:0,t:G,b:G,h:0},J=e._hmpixcount?e._hmlumcount/e._hmpixcount:Kj.luminosity(e._fullLayout.plot_bgcolor),N="M0,0H"+_+"V"+b+"H0V0",V=!1,Y="xy",Q=!1,H=Vxe(l,J,g,w,N),j=Gxe(l,g,w)}function ue(we,me){if(e._transitioningWithDuration)return!1;var Le=Math.max(0,Math.min(_,P*we+K)),Ne=Math.max(0,Math.min(b,R*me+G)),Je=Math.abs(Le-K),rt=Math.abs(Ne-G);q.l=Math.min(K,Le),q.r=Math.max(K,Le),q.t=Math.min(G,Ne),q.b=Math.max(G,Ne);function mt(){Y="",q.r=q.l,q.t=q.b,j.attr("d","M0,0Z")}if(S.isSubplotConstrained)Je>oh||rt>oh?(Y="xy",Je/_>rt/b?(rt=Je*b/_,G>Ne?q.t=G-rt:q.b=G+rt):(Je=rt*_/b,K>Le?q.l=K-Je:q.r=K+Je),j.attr("d",wF(q))):mt();else if(x.isSubplotConstrained)if(Je>oh||rt>oh){Y="xy";var dt=Math.min(q.l/_,(b-q.b)/b),St=Math.max(q.r/_,(b-q.t)/b);q.l=dt*_,q.r=St*_,q.b=(1-dt)*b,q.t=(1-St)*b,j.attr("d",wF(q))}else mt();else!T||rt0){var bt;if(x.isSubplotConstrained||!A&&T.length===1){for(bt=0;bt1&&(mt.maxallowed!==void 0&&E===(mt.range[0]1&&(dt.maxallowed!==void 0&&M===(dt.range[0]=0?Math.min(e,.9):1/(1/Math.max(e,-.3)+3.222))}function tDt(e,t,r){return e?e==="nsew"?r?"":t==="pan"?"move":"crosshair":e.toLowerCase()+"-resize":"pointer"}function Vxe(e,t,r,i,n){return e.append("path").attr("class","zoombox").style({fill:t>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("transform",qxe(r,i)).attr("d",n+"Z")}function Gxe(e,t,r){return e.append("path").attr("class","zoombox-corners").style({fill:Kj.background,stroke:Kj.defaultLine,"stroke-width":1,opacity:0}).attr("transform",qxe(t,r)).attr("d","M0,0Z")}function Hxe(e,t,r,i,n,a){e.attr("d",i+"M"+r.l+","+r.t+"v"+r.h+"h"+r.w+"v-"+r.h+"h-"+r.w+"Z"),jxe(e,t,n,a)}function jxe(e,t,r,i){r||(e.transition().style("fill",i>.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),t.transition().style("opacity",1).duration(200))}function e$(e){t$.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function $xe(e){Pxe&&e.data&&e._context.showTips&&(Ad.notifier(Ad._(e,"Double-click to zoom back out"),"long",e),Pxe=!1)}function rDt(e,t){return"M"+(e.l-.5)+","+(t-oh-.5)+"h-3v"+(2*oh+1)+"h3ZM"+(e.r+.5)+","+(t-oh-.5)+"h3v"+(2*oh+1)+"h-3Z"}function iDt(e,t){return"M"+(t-oh-.5)+","+(e.t-.5)+"v-3h"+(2*oh+1)+"v3ZM"+(t-oh-.5)+","+(e.b+.5)+"v3h"+(2*oh+1)+"v-3Z"}function wF(e){var t=Math.floor(Math.min(e.b-e.t,e.r-e.l,oh)/2);return"M"+(e.l-3.5)+","+(e.t-.5+t)+"h3v"+-t+"h"+t+"v-3h-"+(t+3)+"ZM"+(e.r+3.5)+","+(e.t-.5+t)+"h-3v"+-t+"h"+-t+"v-3h"+(t+3)+"ZM"+(e.r+3.5)+","+(e.b+.5-t)+"h-3v"+t+"h"+-t+"v3h"+(t+3)+"ZM"+(e.l-3.5)+","+(e.b+.5-t)+"h3v"+t+"h"+t+"v3h-"+(t+3)+"Z"}function zxe(e,t,r,i,n){for(var a=!1,o={},s={},l,u,c,f,h=(n||{}).xaHash,p=(n||{}).yaHash,d=0;d{"use strict";var nDt=gi(),TF=Is(),aDt=Ef(),oDt=Xp(),Kp=i$().makeDragBox,Nu=(Zl(),Pt(Xl)).DRAGGERSIZE;AF.initInteractions=function(t){var r=t._fullLayout;if(t._context.staticPlot){nDt.select(t).selectAll(".drag").remove();return}if(!(!r._has("cartesian")&&!r._has("splom"))){var i=Object.keys(r._plots||{}).sort(function(a,o){if((r._plots[a].mainplot&&!0)===(r._plots[o].mainplot&&!0)){var s=a.split("y"),l=o.split("y");return s[0]===l[0]?Number(s[1]||1)-Number(l[1]||1):Number(s[0]||1)-Number(l[0]||1)}return r._plots[a].mainplot?1:-1});i.forEach(function(a){var o=r._plots[a],s=o.xaxis,l=o.yaxis;if(!o.mainplot){var u=Kp(t,o,s._offset,l._offset,s._length,l._length,"ns","ew");u.onmousemove=function(h){t._fullLayout._rehover=function(){t._fullLayout._hoversubplot===a&&t._fullLayout._plots[a]&&TF.hover(t,h,a)},TF.hover(t,h,a),t._fullLayout._lasthover=u,t._fullLayout._hoversubplot=a},u.onmouseout=function(h){t._dragging||(t._fullLayout._hoversubplot=null,aDt.unhover(t,h))},t._context.showAxisDragHandles&&(Kp(t,o,s._offset-Nu,l._offset-Nu,Nu,Nu,"n","w"),Kp(t,o,s._offset+s._length,l._offset-Nu,Nu,Nu,"n","e"),Kp(t,o,s._offset-Nu,l._offset+l._length,Nu,Nu,"s","w"),Kp(t,o,s._offset+s._length,l._offset+l._length,Nu,Nu,"s","e"))}if(t._context.showAxisDragHandles){if(a===s._mainSubplot){var c=s._mainLinePosition;s.side==="top"&&(c-=Nu),Kp(t,o,s._offset+s._length*.1,c,s._length*.8,Nu,"","ew"),Kp(t,o,s._offset,c,s._length*.1,Nu,"","w"),Kp(t,o,s._offset+s._length*.9,c,s._length*.1,Nu,"","e")}if(a===l._mainSubplot){var f=l._mainLinePosition;l.side!=="right"&&(f-=Nu),Kp(t,o,f,l._offset+l._length*.1,Nu,l._length*.8,"ns",""),Kp(t,o,f,l._offset+l._length*.9,Nu,l._length*.1,"s",""),Kp(t,o,f,l._offset,Nu,l._length*.1,"n","")}}});var n=r._hoverlayer.node();n.onmousemove=function(a){a.target=t._fullLayout._lasthover,TF.hover(t,a,r._hoversubplot)},n.onclick=function(a){a.target=t._fullLayout._lasthover,TF.click(t,a)},n.onmousedown=function(a){t._fullLayout._lasthover.onmousedown(a)},AF.updateFx(t)}};AF.updateFx=function(e){var t=e._fullLayout,r=t.dragmode==="pan"?"move":"crosshair";oDt(t._draggers,r)}});var Kxe=W((UNr,Zxe)=>{"use strict";var Xxe=xi();Zxe.exports=function(t){for(var r=Xxe.layoutArrayContainers,i=Xxe.layoutArrayRegexes,n=t.split("[")[0],a,o,s=0;s{"use strict";var sDt=my(),a$=vD(),yM=qg(),lDt=SD().sorterAsc,o$=xi();xM.containerArrayMatch=Kxe();var uDt=xM.isAddVal=function(t){return t==="add"||sDt(t)},Jxe=xM.isRemoveVal=function(t){return t===null||t==="remove"};xM.applyContainerArrayChanges=function(t,r,i,n,a){var o=r.astr,s=o$.getComponentMethod(o,"supplyLayoutDefaults"),l=o$.getComponentMethod(o,"draw"),u=o$.getComponentMethod(o,"drawOne"),c=n.replot||n.recalc||s===a$||l===a$,f=t.layout,h=t._fullLayout;if(i[""]){Object.keys(i).length>1&&yM.warn("Full array edits are incompatible with other edits",o);var p=i[""][""];if(Jxe(p))r.set(null);else if(Array.isArray(p))r.set(p);else return yM.warn("Unrecognized full array edit value",o,p),!0;return c?!1:(s(f,h),l(t),!0)}var d=Object.keys(i).map(Number).sort(lDt),v=r.get(),m=v||[],g=a(h,o).get(),w=[],_=-1,b=m.length,S,x,A,T,y,E,M,C;for(S=0;Sm.length-(M?0:1)){yM.warn("index out of range",o,A);continue}if(E!==void 0)y.length>1&&yM.warn("Insertion & removal are incompatible with edits to the same index.",o,A),Jxe(E)?w.push(A):M?(E==="add"&&(E={}),m.splice(A,0,E),g&&g.splice(A,0,{})):yM.warn("Unrecognized full object edit value",o,A,E),_===-1&&(_=A);else for(x=0;x=0;S--)m.splice(w[S],1),g&&g.splice(w[S],1);if(m.length?v||r.set(m):r.set(null),c)return!1;if(s(f,h),u!==a$){var k;if(_===-1)k=d;else{for(b=Math.max(m.length,b),k=[],S=0;S=_));S++)k.push(A);for(S=_;S{"use strict";var ibe=hn(),nbe=xi(),Lf=tt(),bM=Qo(),abe=Ls(),_M=abe.cleanId,cDt=abe.getFromTrace,s$=nbe.traceIs,fDt=["x","y","z"];Md.clearPromiseQueue=function(e){Array.isArray(e._promises)&&e._promises.length>0&&Lf.log("Clearing previous rejected promises from queue."),e._promises=[]};Md.cleanLayout=function(e){var t,r;e||(e={}),e.xaxis1&&(e.xaxis||(e.xaxis=e.xaxis1),delete e.xaxis1),e.yaxis1&&(e.yaxis||(e.yaxis=e.yaxis1),delete e.yaxis1),e.scene1&&(e.scene||(e.scene=e.scene1),delete e.scene1);var i=(bM.subplotsRegistry.cartesian||{}).attrRegex,n=(bM.subplotsRegistry.polar||{}).attrRegex,a=(bM.subplotsRegistry.ternary||{}).attrRegex,o=(bM.subplotsRegistry.gl3d||{}).attrRegex,s=Object.keys(e);for(t=0;t3?(m.x=1.02,m.xanchor="left"):m.x<-2&&(m.x=-.02,m.xanchor="right"),m.y>3?(m.y=1.02,m.yanchor="bottom"):m.y<-2&&(m.y=-.02,m.yanchor="top")),e.dragmode==="rotate"&&(e.dragmode="orbit"),e.template&&e.template.layout&&Md.cleanLayout(e.template.layout),e};function Kw(e,t,r=!1){var i=e[t],n=t.charAt(0);r&&Array.isArray(i)||i&&i!=="paper"&&(e[t]=_M(i,n,!0))}Md.cleanData=function(e){for(var t=0;t0)return e.slice(0,t)}Md.hasParent=function(e,t){for(var r=rbe(t);r;){if(r in e)return!0;r=rbe(r)}return!1};Md.clearAxisTypes=function(e,t,r){for(var i=0;i{let r=(...i)=>i.every(n=>Lf.isPlainObject(n))||i.every(n=>Array.isArray(n));if([e,t].every(i=>Array.isArray(i))){if(e.length!==t.length)return!1;for(let i=0;iLf.isPlainObject(i))){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(let i in e){if(i.startsWith("_"))continue;let n=e[i],a=t[i];if(n!==a&&!(r(n,a)?l$(n,a):!1))return!1}return!0}return!1};Md.collectionsAreEqual=l$});var qF=W(Fa=>{"use strict";var CF=gi(),pDt=hn(),vDt=fG(),di=tt(),ts=di.nestedProperty,c$=ww(),sh=epe(),Sd=xi(),zF=Mw(),In=Qo(),Pf=Yi(),gDt=LH(),mDt=ac(),EF=Qi(),yDt=ti(),xDt=n$().initInteractions,bDt=(md(),Pt(gd)),_Dt=xu().clearOutline,fbe=_y().dfltConfig,SF=Qxe(),zl=obe(),To=JA(),Ky=hs(),wDt=(Zl(),Pt(Xl)).AX_NAME_PATTERN,u$=0,sbe=5;function TDt(e,t,r,i){var n;if(e=di.getGraphDiv(e),c$.init(e),di.isPlainObject(t)){var a=t;t=a.data,r=a.layout,i=a.config,n=a.frames}var o=c$.triggerHandler(e,"plotly_beforeplot",[t,r,i]);if(o===!1)return Promise.reject();!t&&!r&&!di.isPlotDiv(e)&&di.warn("Calling _doPlot as if redrawing but this container doesn't yet have a plot.",e);function s(){if(n)return Fa.addFrames(e,n)}dbe(e,i),r||(r={}),CF.select(e).classed("js-plotly-plot",!0),EF.makeTester(),Array.isArray(e._promises)||(e._promises=[]);var l=(e.data||[]).length===0&&Array.isArray(t);Array.isArray(t)&&(zl.cleanData(t),l?e.data=t:e.data.push.apply(e.data,t),e.empty=!1),(!e.layout||l)&&(e.layout=zl.cleanLayout(r)),In.supplyDefaults(e);var u=e._fullLayout,c=u._has("cartesian");u._replotting=!0,(l||u._shouldCreateBgLayer)&&(WDt(e),u._shouldCreateBgLayer&&delete u._shouldCreateBgLayer),EF.initGradients(e),EF.initPatterns(e),l&&Pf.saveShowSpikeInitial(e);var f=!e.calcdata||e.calcdata.length!==(e._fullData||[]).length;f&&In.doCalcdata(e);for(var h=0;h{di.isHidden(e)||In.resize(e)};if(e._context.fillFrame||typeof ResizeObserver=="undefined")window.addEventListener("resize",T),e._clearResponsive=()=>window.removeEventListener("resize",T);else{let y=e.offsetWidth,E=e.offsetHeight,M=new ResizeObserver(()=>{let C=e.offsetWidth,k=e.offsetHeight,D=Math.abs(C-y)>1||Math.abs(k-E)>1;y=C,E=k,D&&C&&k&&T()});M.observe(e),e._clearResponsive=()=>M.disconnect()}}}else di.clearResponsive(e);let p=document.fonts?[...document.fonts].filter(T=>T.status!=="loaded"):[];var d=di.extendFlat({},u._size),v=0;function m(){for(var T=u._basePlotModules,y=0;y["loaded","loading"].includes(n.status));if(!r.length)return;let i={};e._fontLoadToken=i,yield Promise.all(r.map(n=>n.loaded.catch(()=>{}))),e._fontLoadToken===i&&(delete e._fontLoadToken,EF.savedBBoxes={},Fa._doPlot(e))})}function TM(e){var t=e._fullLayout;t._redrawFromAutoMarginCount?t._redrawFromAutoMarginCount--:e.emit("plotly_afterplot")}function MDt(e){return di.extendFlat(fbe,e)}function hbe(e,t){try{e._fullLayout._paper.style("background",t)}catch(r){di.error(r)}}function SDt(e,t){var r=yDt.combine(t,"white");hbe(e,r)}function dbe(e,t){if(!e._context){e._context=di.extendDeep({},fbe);var r=CF.select("base");e._context._baseUrl=r.size()&&r.attr("href")?window.location.href.split("#")[0]:""}var i=e._context,n,a,o;if(t){for(a=Object.keys(t),n=0;n=e.data.length||n<-e.data.length)throw new Error(r+" must be valid indices for gd.data.");if(t.indexOf(n,i+1)>-1||n>=0&&t.indexOf(-e.data.length+n)>-1||n<0&&t.indexOf(e.data.length+n)>-1)throw new Error("each index in "+r+" must be unique.")}}function pbe(e,t,r){if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(typeof t=="undefined")throw new Error("currentIndices is a required argument.");if(Array.isArray(t)||(t=[t]),FF(e,t,"currentIndices"),typeof r!="undefined"&&!Array.isArray(r)&&(r=[r]),typeof r!="undefined"&&FF(e,r,"newIndices"),typeof r!="undefined"&&t.length!==r.length)throw new Error("current and new indices must be of equal length.")}function CDt(e,t,r){var i,n;if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(typeof t=="undefined")throw new Error("traces must be defined.");for(Array.isArray(t)||(t=[t]),i=0;i=0&&c=0&&c0&&typeof T.parts[M]!="string";)M--;var C=T.parts[M],k=T.parts[M-1]+"."+C,D=T.parts.slice(0,M).join("."),F=ts(e.layout,D).get(),P=ts(i,D).get(),R=T.get();if(y!==void 0){g[A]=y,w[A]=C==="reverse"?y:Qg(R);var L=zF.getLayoutValObject(i,T.parts);if(L&&L.impliedEdits&&y!==null)for(var I in L.impliedEdits)_(di.relativeAttr(A,I),L.impliedEdits[I]);if(["width","height"].indexOf(A)!==-1)if(y){_("autosize",null);var B=A==="height"?"width":"height";_(B,i[B])}else i[A]=e._initialAutoSize[A];else if(A==="autosize")_("width",y?null:i.width),_("height",y?null:i.height);else if(k.match(Tbe))x(k),ts(i,D+"._inputRange").set(null);else if(k.match(Abe)){x(k),ts(i,D+"._inputRange").set(null);var O=ts(i,D).get();O._inputDomain&&(O._input.domain=O._inputDomain.slice())}else k.match(PDt)&&ts(i,D+"._inputDomain").set(null);if(C==="type"){S=F;var $=P.type==="linear"&&y==="log",X=P.type==="log"&&y==="linear";if($||X){if(!S||!S.range)_(D+".autorange",!0);else if(P.autorange)$&&(S.range=S.range[1]>S.range[0]?[1,2]:[2,1]);else{var K=S.range[0],G=S.range[1];$?(K<=0&&G<=0&&_(D+".autorange",!0),K<=0?K=G/1e6:G<=0&&(G=K/1e6),_(D+".range[0]",Math.log(K)/Math.LN10),_(D+".range[1]",Math.log(G)/Math.LN10)):(_(D+".range[0]",Math.pow(10,K)),_(D+".range[1]",Math.pow(10,G)))}Array.isArray(i._subplots.polar)&&i._subplots.polar.length&&i[T.parts[0]]&&T.parts[1]==="radialaxis"&&delete i[T.parts[0]]._subplot.viewInitial["radialaxis.range"],Sd.getComponentMethod("annotations","convertCoords")(e,P,y,_),Sd.getComponentMethod("images","convertCoords")(e,P,y,_)}else _(D+".autorange",!0),_(D+".range",null);ts(i,D+"._inputRange").set(null)}else if(C.match(wDt)){var q=ts(i,A).get(),J=(y||{}).type;(!J||J==="-")&&(J="linear"),Sd.getComponentMethod("annotations","convertCoords")(e,q,J,_),Sd.getComponentMethod("images","convertCoords")(e,q,J,_)}var N=SF.containerArrayMatch(A);if(N){c=N.array,f=N.index;var V=N.property,Y=L||{editType:"calc"};f!==""&&V===""&&(SF.isAddVal(y)?w[A]=null:SF.isRemoveVal(y)?w[A]=(ts(r,c).get()||[])[f]:di.warn("unrecognized full object value",t)),Ky.update(m,Y),u[c]||(u[c]={});var H=u[c][f];H||(H=u[c][f]={}),H[V]=y,delete t[A]}else C==="reverse"?(F.range?F.range.reverse():(_(D+".autorange",!0),F.range=[1,0]),P.autorange?m.calc=!0:m.plot=!0):(A==="dragmode"&&(y===!1&&R!==!1||y!==!1&&R===!1)||i._has("scatter-like")&&i._has("regl")&&A==="dragmode"&&(y==="lasso"||y==="select")&&!(R==="lasso"||R==="select")?m.plot=!0:L?Ky.update(m,L):m.calc=!0,T.set(y))}}for(c in u){var j=SF.applyContainerArrayChanges(e,a(r,c),u[c],m,a);j||(m.plot=!0)}for(var Q in b){S=Pf.getFromId(e,Q);var te=S&&S._constraintGroup;if(te){m.calc=!0;for(var ue in te)b[ue]||(Pf.getFromId(e,ue)._constraintShrinkable=!0)}}(Sbe(e)||t.height||t.width)&&(m.plot=!0);var ge=i.shapes;for(f=0;f1;)if(i.pop(),r=ts(t,i.join(".")+".uirevision").get(),r!==void 0)return r;return t.uirevision}function zDt(e,t){for(var r=0;r[D,e._ev.listeners(D)]);a=Fa.newPlot(e,t,r,i).then(()=>{for(let[D,F]of k)F.forEach(P=>e.on(D,P));return Fa.react(e,t,r,i)})}else{e.data=t||[],zl.cleanData(e.data),e.layout=r||{},zl.cleanLayout(e.layout),qDt(e.data,e.layout,s,l),In.supplyDefaults(e,{skipUpdateCalc:!0});var f=e._fullData,h=e._fullLayout,p=h.datarevision===void 0,d=h.transition,v=UDt(e,l,h,p,d),m=v.newDataRevision,g=NDt(e,s,f,p,d,m);if(Sbe(e)&&(v.layoutReplot=!0),g.calc||v.calc){e.calcdata=void 0;for(var w=Object.getOwnPropertyNames(h),_=0;_(c||e.emit("plotly_react",{config:i,data:t,layout:r}),e))}function NDt(e,t,r,i,n,a){var o=t.length===r.length;if(!n&&!o)return{fullReplot:!0,calc:!0};var s=Ky.traceFlags();s.arrays={},s.nChanges=0,s.nChangesAnim=0;var l,u;function c(p){var d=zF.getTraceValObject(u,p);return!u._module.animatable&&d.anim&&(d.anim=!1),d}var f={getValObject:c,flags:s,immutable:i,transition:n,newDataRevision:a,gd:e},h={};for(l=0;l=n.length?n[0]:n[u]:n}function s(u){return Array.isArray(a)?u>=a.length?a[0]:a[u]:a}function l(u,c){var f=0;return function(){if(u&&++f===c)return u()}}return new Promise(function(u,c){function f(){if(i._frameQueue.length!==0){for(;i._frameQueue.length;){var C=i._frameQueue.pop();C.onInterrupt&&C.onInterrupt()}e.emit("plotly_animationinterrupted",[])}}function h(C){if(C.length!==0){for(var k=0;ki._timeToNext&&d()};C()}var m=0;function g(C){return Array.isArray(n)?m>=n.length?C.transitionOpts=n[m]:C.transitionOpts=n[0]:C.transitionOpts=n,m++,C}var w,_,b=[],S=t==null,x=Array.isArray(t),A=!S&&!x&&di.isPlainObject(t);if(A)b.push({type:"object",data:g(di.extendFlat({},t))});else if(S||["string","number"].indexOf(typeof t)!==-1)for(w=0;w0&&EE)&&M.push(_);b=M}}b.length>0?h(b):(e.emit("plotly_animated"),u())})}function GDt(e,t,r){if(e=di.getGraphDiv(e),t==null)return Promise.resolve();if(!di.isPlotDiv(e))throw new Error("This element is not a Plotly plot: "+e+". It's likely that you've failed to create a plot before adding frames. For more details, see https://plotly.com/javascript/animations/");var i,n,a,o,s=e._transitionData._frames,l=e._transitionData._frameHash;if(!Array.isArray(t))throw new Error("addFrames failure: frameList must be an Array of frame definitions"+t);var u=s.length+t.length*2,c=[],f={};for(i=t.length-1;i>=0;i--)if(di.isPlainObject(t[i])){var h=t[i].name,p=(l[h]||f[h]||{}).name,d=t[i].name,v=l[p]||f[p];p&&d&&typeof d=="number"&&v&&u$T.index?-1:A.index=0;i--){if(n=c[i].frame,typeof n.name=="number"&&di.warn("Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings"),!n.name)for(;l[n.name="frame "+e._transitionData._counter++];);if(l[n.name]){for(a=0;a=0;r--)i=t[r],a.push({type:"delete",index:i}),o.unshift({type:"insert",index:i,value:n[i]});var s=In.modifyFrames,l=In.modifyFrames,u=[e,o],c=[e,a];return sh&&sh.add(e,s,u,l,c),In.modifyFrames(e,a)}function jDt(e){e=di.getGraphDiv(e);var t=e._fullLayout||{},r=e._fullData||[];return In.cleanPlot([],{},r,t),In.purge(e),c$.purge(e),t._container&&t._container.remove(),delete e._context,e}function $Dt(e){var t=e._fullLayout,r=e.getBoundingClientRect();if(!di.equalDomRects(r,t._lastBBox)){var i=t._invTransform=di.inverseTransformMatrix(di.getFullTransformMatrix(e));t._invScaleX=Math.sqrt(i[0][0]*i[0][0]+i[0][1]*i[0][1]+i[0][2]*i[0][2]),t._invScaleY=Math.sqrt(i[1][0]*i[1][0]+i[1][1]*i[1][1]+i[1][2]*i[1][2]),t._lastBBox=r}}function WDt(e){var t=CF.select(e),r=e._fullLayout;if(r._calcInverseTransform=$Dt,r._calcInverseTransform(e),r._container=t.selectAll(".plot-container").data([0]),r._container.enter().insert("div",":first-child").classed("plot-container",!0).classed("plotly",!0).style({width:"100%",height:"100%"}),r._paperdiv=r._container.selectAll(".svg-container").data([0]),r._paperdiv.enter().append("div").classed("user-select-none",!0).classed("svg-container",!0).style("position","relative"),r._glcontainer=r._paperdiv.selectAll(".gl-container").data([{}]),r._glcontainer.enter().append("div").classed("gl-container",!0),r._paperdiv.selectAll(".main-svg").remove(),r._paperdiv.select(".modebar-container").remove(),r._paper=r._paperdiv.insert("svg",":first-child").classed("main-svg",!0),r._toppaper=r._paperdiv.append("svg").classed("main-svg",!0),r._modebardiv=r._paperdiv.append("div"),delete r._modeBar,r._hoverpaper=r._paperdiv.append("svg").classed("main-svg",!0),!r._uid){var i={};CF.selectAll("defs").each(function(){this.id&&(i[this.id.split("-")[1]]=1)}),r._uid=di.randstr(i)}r._paperdiv.selectAll(".main-svg").attr(bDt.svgAttrs),r._defs=r._paper.append("defs").attr("id","defs-"+r._uid),r._clips=r._defs.append("g").classed("clips",!0),r._topdefs=r._toppaper.append("defs").attr("id","topdefs-"+r._uid),r._topclips=r._topdefs.append("g").classed("clips",!0),r._bgLayer=r._paper.append("g").classed("bglayer",!0),r._draggers=r._paper.append("g").classed("draglayer",!0);var n=r._paper.append("g").classed("layer-below",!0);r._imageLowerLayer=n.append("g").classed("imagelayer",!0),r._shapeLowerLayer=n.append("g").classed("shapelayer",!0),r._cartesianlayer=r._paper.append("g").classed("cartesianlayer",!0),r._polarlayer=r._paper.append("g").classed("polarlayer",!0),r._smithlayer=r._paper.append("g").classed("smithlayer",!0),r._ternarylayer=r._paper.append("g").classed("ternarylayer",!0),r._geolayer=r._paper.append("g").classed("geolayer",!0),r._funnelarealayer=r._paper.append("g").classed("funnelarealayer",!0),r._pielayer=r._paper.append("g").classed("pielayer",!0),r._iciclelayer=r._paper.append("g").classed("iciclelayer",!0),r._treemaplayer=r._paper.append("g").classed("treemaplayer",!0),r._sunburstlayer=r._paper.append("g").classed("sunburstlayer",!0),r._indicatorlayer=r._toppaper.append("g").classed("indicatorlayer",!0),r._glimages=r._paper.append("g").classed("glimages",!0);var a=r._toppaper.append("g").classed("layer-above",!0);r._imageUpperLayer=a.append("g").classed("imagelayer",!0),r._shapeUpperLayer=a.append("g").classed("shapelayer",!0),r._selectionLayer=r._toppaper.append("g").classed("selectionlayer",!0),r._infolayer=r._toppaper.append("g").classed("infolayer",!0),r._menulayer=r._toppaper.append("g").classed("menulayer",!0),r._zoomlayer=r._toppaper.append("g").classed("zoomlayer",!0),r._hoverlayer=r._hoverpaper.append("g").classed("hoverlayer",!0),r._modebardiv.classed("modebar-container",!0).style("position","absolute").style("top","0px").style("right","0px"),e.emit("plotly_framework")}Fa.animate=VDt;Fa.addFrames=GDt;Fa.deleteFrames=HDt;Fa.addTraces=xbe;Fa.deleteTraces=bbe;Fa.extendTraces=mbe;Fa.moveTraces=f$;Fa.prependTraces=ybe;Fa.newPlot=kDt;Fa._doPlot=TDt;Fa.purge=jDt;Fa.react=ODt;Fa.redraw=EDt;Fa.relayout=wM;Fa.restyle=LF;Fa.setPlotConfig=MDt;Fa.update=IF;Fa._guiRelayout=h$(wM);Fa._guiRestyle=h$(LF);Fa._guiUpdate=h$(IF);Fa._storeDirectGUIEdit=LDt});var em=W(Ed=>{"use strict";var YDt=xi();Ed.getDelay=function(e){return e._has&&(e._has("gl3d")||e._has("map"))?500:0};Ed.getRedrawFunc=function(e){return function(){YDt.getComponentMethod("colorbar","draw")(e)}};Ed.encodeSVG=function(e){return"data:image/svg+xml,"+encodeURIComponent(e)};Ed.encodeJSON=function(e){return"data:application/json,"+encodeURIComponent(e)};var Ebe=window.URL||window.webkitURL;Ed.createObjectURL=function(e){return Ebe.createObjectURL(e)};Ed.revokeObjectURL=function(e){return Ebe.revokeObjectURL(e)};Ed.createBlob=function(e,t){if(t==="svg")return new window.Blob([e],{type:"image/svg+xml;charset=utf-8"});if(t==="full-json")return new window.Blob([e],{type:"application/json;charset=utf-8"});var r=XDt(window.atob(e));return new window.Blob([r],{type:"image/"+t})};Ed.octetStream=function(e){document.location.href="data:application/octet-stream"+e};Ed.getPlotTitle=function(e){var i,n,a,o;var t=e._fullLayout;if(t){var r=(i=t.title)==null?void 0:i.text;return r===((n=t._dfltTitle)==null?void 0:n.plot)?void 0:r}return(o=(a=e.layout)==null?void 0:a.title)==null?void 0:o.text};Ed.getPlotSubtitle=function(e){var i,n,a,o,s,l;var t=e._fullLayout;if(t){var r=(n=(i=t.title)==null?void 0:i.subtitle)==null?void 0:n.text;return r===((a=t._dfltTitle)==null?void 0:a.subtitle)?void 0:r}return(l=(s=(o=e.layout)==null?void 0:o.title)==null?void 0:s.subtitle)==null?void 0:l.text};function XDt(e){for(var t=e.length,r=new ArrayBuffer(t),i=new Uint8Array(r),n=0;n{"use strict";var p$=gi(),WNr=tt(),ZDt=Qi(),KDt=ti(),YNr=(md(),Pt(gd)),d$=/"/g,Cb="TOBESTRIPPED",JDt=new RegExp(`("${Cb})|(${Cb}")|("${Cb})|(${Cb}")`,"g"),QDt=["&","&","&",""",""",""","'","'","'"],e7t=["<","<","<"],t7t=[">",">",">"];function r7t(e){let t=p$.select("body").append("div").style({display:"none"}).html(""),r=e.replace(/(&[^;]*;)/gi,i=>{let n=i.toLowerCase();return QDt.includes(n)?i:e7t.includes(n)?"<":t7t.includes(n)?">":i.includes("<")||i.includes(">")?"":t.html(i).text()});return t.remove(),r}function i7t(e){return e.replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&")}kbe.exports=function(t,r,i){var n=t._fullLayout,a=n._paper,o=n._toppaper,s=n.width,l=n.height,u;a.insert("rect",":first-child").call(ZDt.setRect,0,0,s,l).call(KDt.fill,n.paper_bgcolor);var c=n._basePlotModules||[];for(u=0;u{"use strict";var n7t=tt(),a7t=ib().EventEmitter,AM=em();function o7t(e){var t=e.emitter||new a7t,r=new Promise(function(i,n){var a=window.Image,o=e.svg,s=e.format||"png",l=e.canvas,u=e.scale||1,c=e.width||300,f=e.height||150,h=u*c,p=u*f,d=l.getContext("2d",{willReadFrequently:!0}),v=new a,m,g;s==="svg"||n7t.isSafari()?g=AM.encodeSVG(o):(m=AM.createBlob(o,"svg"),g=AM.createObjectURL(m)),l.width=h,l.height=p,v.onload=function(){var w;switch(m=null,AM.revokeObjectURL(g),s!=="svg"&&d.drawImage(v,0,0,h,p),s){case"jpeg":w=l.toDataURL("image/jpeg");break;case"png":w=l.toDataURL("image/png");break;case"webp":w=l.toDataURL("image/webp");break;case"svg":w=g;break;default:var _="Image format is not jpeg, png, svg or webp.";if(n(new Error(_)),!e.promise)return t.emit("error",_)}i(w),e.promise||t.emit("success",w)},v.onerror=function(w){if(m=null,AM.revokeObjectURL(g),n(w),!e.promise)return t.emit("error",w)},v.src=g});return e.promise?r:t}Cbe.exports=o7t});var g$=W((KNr,Lbe)=>{"use strict";var Dbe=hn(),Fbe=qF(),s7t=Qo(),D1=tt(),MM=em(),l7t=OF(),u7t=NF(),c7t=N6().version,v$=(DV(),Pt(CV)).default;function f7t(e,t){t=t||{};var r,i,n,a;D1.isPlainObject(e)?(r=e.data||[],i=e.layout||{},n=e.config||{},a={}):(e=D1.getGraphDiv(e),r=D1.extendDeep([],e.data),i=D1.extendDeep({},e.layout),n=e._context,a=e._fullLayout||{});function o(x){return!(x in t)||D1.validate(t[x],v$[x])}if(!o("width")&&t.width!==null||!o("height")&&t.height!==null)throw new Error("Height and width should be pixel values.");if(!o("format"))throw new Error("Export format is not "+D1.join2(v$.format.values,", "," or ")+".");var s={};function l(x,A){return D1.coerce(t,s,v$,x,A)}var u=l("format"),c=l("width"),f=l("height"),h=l("scale"),p=l("setBackground"),d=l("imageDataOnly"),v=document.createElement("div");v.style.position="absolute",v.style.left="-5000px",document.body.appendChild(v);var m=D1.extendFlat({},i);c?m.width=c:t.width===null&&Dbe(a.width)&&(m.width=a.width),f?m.height=f:t.height===null&&Dbe(a.height)&&(m.height=a.height);var g=D1.extendFlat({},n,{_exportedPlot:!0,staticPlot:!0,setBackground:p}),w=MM.getRedrawFunc(v);function _(){return new Promise(function(x){setTimeout(x,MM.getDelay(v._fullLayout))})}function b(){return new Promise(function(x,A){var T=l7t(v,u,h),y=v._fullLayout.width,E=v._fullLayout.height;function M(){Fbe.purge(v),document.body.removeChild(v)}if(u==="full-json"){var C=s7t.graphJson(v,!1,"object",!0,!0);return C.version=c7t,C=JSON.stringify(C),M(),x(d?C:MM.encodeJSON(C))}if(M(),u==="svg")return x(d?T:MM.encodeSVG(T));var k=document.createElement("canvas");k.id=D1.randstr(),u7t({format:u,width:y,height:E,scale:h,canvas:k,svg:T,promise:!0}).then(x).catch(A)})}function S(x){return d?x.replace(MM.IMAGE_URL_PREFIX,""):x}return new Promise(function(x,A){Fbe.newPlot(v,r,m,g).then(w).then(_).then(b).then(function(T){x(S(T))}).catch(function(T){A(T)})})}Lbe.exports=f7t});var Rbe=W((JNr,Ibe)=>{"use strict";var kd=tt(),h7t=Qo(),d7t=Mw(),p7t=_y().dfltConfig,Jp=kd.isPlainObject,Fb=Array.isArray,m$=kd.isArrayOrTypedArray;Ibe.exports=function(t,r){t===void 0&&(t=[]),r===void 0&&(r={});var i=d7t.get(),n=[],a={_context:kd.extendFlat({},p7t)},o,s;Fb(t)?(a.data=kd.extendDeep([],t),o=t):(a.data=[],o=[],n.push(Uu("array","data"))),Jp(r)?(a.layout=kd.extendDeep({},r),s=r):(a.layout={},s={},arguments.length>1&&n.push(Uu("object","layout"))),h7t.supplyDefaults(a);for(var l=a._fullData,u=o.length,c=0;cf.length&&i.push(Uu("unused",n,u.concat(f.length)));var g=f.length,w=Array.isArray(m);w&&(g=Math.min(g,m.length));var _,b,S,x,A;if(h.dimensions===2)for(b=0;bf[b].length&&i.push(Uu("unused",n,u.concat(b,f[b].length)));var T=f[b].length;for(_=0;_<(w?Math.min(T,m[b].length):T);_++)S=w?m[b][_]:m,x=c[b][_],A=f[b][_],kd.validate(x,S)?A!==x&&A!==+x&&i.push(Uu("dynamic",n,u.concat(b,_),x,A)):i.push(Uu("value",n,u.concat(b,_),x))}else i.push(Uu("array",n,u.concat(b),c[b]));else for(b=0;b{"use strict";var _7t=tt(),VF=em();function w7t(e,t,r){var i=document.createElement("a"),n="download"in i,a=new Promise(function(o,s){var l,u;if(n)return l=VF.createBlob(e,r),u=VF.createObjectURL(l),i.href=u,i.download=t,document.body.appendChild(i),i.click(),document.body.removeChild(i),VF.revokeObjectURL(u),l=null,o(t);if(_7t.isSafari()){var c=r==="svg"?",":";base64,";return VF.octetStream(c+encodeURIComponent(e)),o(t)}s(new Error("download error"))});return a}zbe.exports=w7t});var y$=W((eUr,Ube)=>{"use strict";var GF=tt(),qbe=ao(),T7t=g$(),A7t=Bbe(),Obe=em(),Nbe=40;function M7t(e,t){var r;return GF.isPlainObject(e)||(r=GF.getGraphDiv(e)),t=t||{},t.format=t.format||"png",t.width=t.width||null,t.height=t.height||null,t.imageDataOnly=!0,new Promise(function(i,n){r&&r._snapshotInProgress&&n(new Error("Image capture already in progress.")),r&&(r._snapshotInProgress=!0);var a=T7t(e,t),o=t.filename||e.fn;if(!o){let l=Obe.getPlotTitle(e);if(l&&!qbe.matchTex(l))o=GF.slugify(l,Nbe);else{let u=Obe.getPlotSubtitle(e);u&&!qbe.matchTex(u)&&(o=GF.slugify(u,Nbe))}}var s=o||"plot-image";s+="."+t.format.replace("-","."),a.then(function(l){return r&&(r._snapshotInProgress=!1),A7t(l,s,t.format)}).then(function(l){i(l)}).catch(function(l){r&&(r._snapshotInProgress=!1),n(l)})})}Ube.exports=M7t});var $be=W(x$=>{"use strict";var $h=tt(),Wh=$h.isPlainObject,Vbe=Mw(),Gbe=Qo(),S7t=Ja(),Hbe=Ra(),jbe=_y().dfltConfig;x$.makeTemplate=function(e){e=$h.isPlainObject(e)?e:$h.getGraphDiv(e),e=$h.extendDeep({_context:jbe},{data:e.data,layout:e.layout}),Gbe.supplyDefaults(e);var t=e.data||[],r=e.layout||{};r._basePlotModules=e._fullLayout._basePlotModules,r._modules=e._fullLayout._modules;var i={data:{},layout:{}};t.forEach(function(p){var d={};SM(p,d,k7t.bind(null,p));var v=$h.coerce(p,{},S7t,"type"),m=i.data[v];m||(m=i.data[v]=[]),m.push(d)}),SM(r,i.layout,E7t.bind(null,r)),delete i.layout.template;var n=r.template;if(Wh(n)){var a=n.layout,o,s,l,u,c,f;Wh(a)&&HF(a,i.layout);var h=n.data;if(Wh(h)){for(s in i.data)if(l=h[s],Array.isArray(l)){for(c=i.data[s],f=c.length,u=l.length,o=0;og?o.push({code:"unused",traceType:p,templateCount:m,dataCount:g}):g>m&&o.push({code:"reused",traceType:p,templateCount:m,dataCount:g})}}function w(_,b){for(var S in _)if(S.charAt(0)!=="_"){var x=_[S],A=Cd(_,S,b);Wh(x)?(Array.isArray(_)&&x._template===!1&&x.templateitemname&&o.push({code:"missing",path:A,templateitemname:x.templateitemname}),w(x,A)):Array.isArray(x)&&C7t(x)&&w(x,A)}}if(w({data:l,layout:s},""),o.length)return o.map(D7t)};function C7t(e){for(var t=0;t{"use strict";var bu=qF();Ss._doPlot=bu._doPlot;Ss.newPlot=bu.newPlot;Ss.restyle=bu.restyle;Ss.relayout=bu.relayout;Ss.redraw=bu.redraw;Ss.update=bu.update;Ss._guiRestyle=bu._guiRestyle;Ss._guiRelayout=bu._guiRelayout;Ss._guiUpdate=bu._guiUpdate;Ss._storeDirectGUIEdit=bu._storeDirectGUIEdit;Ss.react=bu.react;Ss.extendTraces=bu.extendTraces;Ss.prependTraces=bu.prependTraces;Ss.addTraces=bu.addTraces;Ss.deleteTraces=bu.deleteTraces;Ss.moveTraces=bu.moveTraces;Ss.purge=bu.purge;Ss.addFrames=bu.addFrames;Ss.deleteFrames=bu.deleteFrames;Ss.animate=bu.animate;Ss.setPlotConfig=bu.setPlotConfig;var F7t=hA().getGraphDiv,L7t=rF().eraseActiveShape;Ss.deleteActiveShape=function(e){return L7t(F7t(e))};Ss.toImage=g$();Ss.validate=Rbe();Ss.downloadImage=y$();var Wbe=$be();Ss.makeTemplate=Wbe.makeTemplate;Ss.validateTemplate=Wbe.validateTemplate});var Lb=W((iUr,Xbe)=>{"use strict";var b$=tt(),P7t=xi();Xbe.exports=function(t,r,i,n){var a=n("x"),o=n("y"),s,l=P7t.getComponentMethod("calendars","handleTraceDefaults");if(l(t,r,["x","y"],i),a){var u=b$.minRowLength(a);o?s=Math.min(u,b$.minRowLength(o)):(s=u,n("y0"),n("dy"))}else{if(!o)return 0;s=b$.minRowLength(o),n("x0"),n("dx")}return r._length=s,s}});var Qp=W((nUr,Jbe)=>{"use strict";var Zbe=tt().dateTick0,I7t=(ra(),Pt(ia)),R7t=I7t.ONEWEEK;function Kbe(e,t){return e%R7t===0?Zbe(t,1):Zbe(t,0)}Jbe.exports=function(t,r,i,n,a){if(a||(a={x:!0,y:!0}),a.x){var o=n("xperiod");o&&(n("xperiod0",Kbe(o,r.xcalendar)),n("xperiodalignment"))}if(a.y){var s=n("yperiod");s&&(n("yperiod0",Kbe(s,r.ycalendar)),n("yperiodalignment"))}}});var t_e=W((aUr,e_e)=>{"use strict";var Qbe=["orientation","groupnorm","stackgaps"];e_e.exports=function(t,r,i,n){var a=i._scatterStackOpts,o=n("stackgroup");if(o){var s=r.xaxis+r.yaxis,l=a[s];l||(l=a[s]={});var u=l[o],c=!1;u?u.traces.push(r):(u=l[o]={traceIndices:[],traces:[r]},c=!0);for(var f={orientation:r.x&&!r.y?"h":"v"},h=0;h{"use strict";var r_e=ti(),i_e=Sc().hasColorscale,n_e=Bu(),z7t=Wo();a_e.exports=function(t,r,i,n,a,o={}){var s=z7t.isBubble(t),l=(t.line||{}).color,u;if(l&&(i=l),a("marker.symbol"),a("marker.opacity",s?.7:1),a("marker.size"),o.noAngle||(a("marker.angle"),o.noAngleRef||a("marker.angleref"),o.noStandOff||a("marker.standoff")),a("marker.color",i),i_e(t,"marker")&&n_e(t,r,n,a,{prefix:"marker.",cLetter:"c"}),o.noSelect||(a("selected.marker.color"),a("unselected.marker.color"),a("selected.marker.size"),a("unselected.marker.size")),o.noLine||(l&&!Array.isArray(l)&&r.marker.color!==l?u=l:s?u=r_e.background:u=r_e.defaultLine,a("marker.line.color",u),i_e(t,"marker.line")&&n_e(t,r,n,a,{prefix:"marker.line.",cLetter:"c"}),a("marker.line.width",s?1:0),o.noLineDash||a("marker.line.dash")),s&&(a("marker.sizeref"),a("marker.sizemin"),a("marker.sizemode")),o.gradient){var c=a("marker.gradient.type");c!=="none"&&a("marker.gradient.color")}}});var ev=W((sUr,o_e)=>{"use strict";var B7t=tt().isArrayOrTypedArray,q7t=Sc().hasColorscale,O7t=Bu();o_e.exports=function(t,r,i,n,a,o){o||(o={});var s=(t.marker||{}).color;if(s&&s._inputArray&&(s=s._inputArray),a("line.color",i),q7t(t,"line"))O7t(t,r,n,a,{prefix:"line.",cLetter:"c"});else{var l=(B7t(s)?!1:s)||i;a("line.color",l)}a("line.width"),o.noDash||a("line.dash"),o.backoff&&a("line.backoff")}});var Jw=W((lUr,s_e)=>{"use strict";s_e.exports=function(t,r,i){var n=i("line.shape");n==="spline"&&i("line.smoothing")}});var tv=W((uUr,l_e)=>{"use strict";var N7t=tt();l_e.exports=function(e,t,r,i,n){n=n||{},i("textposition"),N7t.coerceFont(i,"textfont",n.font||r.font,n),n.noSelect||(i("selected.textfont.color"),i("unselected.textfont.color"))}});var F1=W((cUr,c_e)=>{"use strict";var $F=ti(),u_e=tt().isArrayOrTypedArray;function U7t(e){for(var t=$F.interpolate(e[0][1],e[1][1],.5),r=2;r{"use strict";var f_e=tt(),V7t=xi(),G7t=Ws(),H7t=(k1(),Pt(E1)),Qw=Wo(),j7t=Lb(),$7t=Qp(),W7t=t_e(),Y7t=Dd(),X7t=ev(),h_e=Jw(),Z7t=tv(),K7t=F1(),J7t=tt().coercePattern;d_e.exports=function(t,r,i,n){function a(p,d){return f_e.coerce(t,r,G7t,p,d)}var o=j7t(t,r,n,a);if(o||(r.visible=!1),!!r.visible){$7t(t,r,n,a),a("xhoverformat"),a("yhoverformat"),a("zorder");var s=W7t(t,r,n,a);n.scattermode==="group"&&r.orientation===void 0&&a("orientation","v");var l=!s&&o{"use strict";var Q7t=kb().getAxisGroup;v_e.exports=function(t,r,i,n,a){var o=r.orientation,s=r[{v:"x",h:"y"}[o]+"axis"],l=Q7t(i,s)+o,u=i._alignmentOpts||{},c=n("alignmentgroup"),f=u[l];f||(f=u[l]={});var h=f[c];h?h.traces.push(r):h=f[c]={traces:[r],alignmentIndex:Object.keys(f).length,offsetGroups:{}};var p=n("offsetgroup")||"",d=h.offsetGroups,v=d[p];r._offsetIndex=0,(a!=="group"||p)&&(v||(v=d[p]={offsetIndex:Object.keys(d).length}),r._offsetIndex=v.offsetIndex)}});var _$=W((dUr,g_e)=>{"use strict";var eFt=tt(),tFt=Pb(),rFt=Ws();g_e.exports=function(t,r){var i,n,a,o=r.scattermode;function s(h){return eFt.coerce(n._input,n,rFt,h)}if(r.scattermode==="group")for(a=0;a=0;c--){var f=t[c];if(f.type==="scatter"&&f.xaxis===l.xaxis&&f.yaxis===l.yaxis){f.opacity=void 0;break}}}}}});var y_e=W((pUr,m_e)=>{"use strict";var iFt=tt(),nFt=UD();m_e.exports=function(e,t){function r(n,a){return iFt.coerce(e,t,nFt,n,a)}var i=t.barmode==="group";t.scattermode==="group"&&r("scattergap",i?t.bargap:.2)}});var rv=W((vUr,b_e)=>{"use strict";var aFt=hn(),x_e=tt(),oFt=x_e.dateTime2ms,WF=x_e.incrementMonth,sFt=(ra(),Pt(ia)),lFt=sFt.ONEAVGMONTH;b_e.exports=function(t,r,i,n){if(r.type!=="date")return{vals:n};var a=t[i+"periodalignment"];if(!a)return{vals:n};var o=t[i+"period"],s;if(aFt(o)){if(o=+o,o<=0)return{vals:n}}else if(typeof o=="string"&&o.charAt(0)==="M"){var l=+o.substring(1);if(l>0&&Math.round(l)===l)s=l;else return{vals:n}}for(var u=r.calendar,c=a==="start",f=a==="end",h=t[i+"period0"],p=oFt(h,u)||0,d=[],v=[],m=[],g=n.length,w=0;w_;)x=WF(x,-s,u);for(;x<=_;)x=WF(x,s,u);S=WF(x,-s,u)}else{for(b=Math.round((_-p)/o),x=p+b*o;x>_;)x-=o;for(;x<=_;)x+=o;S=x-o}d[w]=c?S:f?x:(S+x)/2,v[w]=S,m[w]=x}return{vals:d,starts:v,ends:m}}});var Fd=W((gUr,w_e)=>{"use strict";var w$=Sc().hasColorscale,T$=rf(),__e=Wo();w_e.exports=function(t,r){__e.hasLines(r)&&w$(r,"line")&&T$(t,r,{vals:r.line.color,containerStr:"line",cLetter:"c"}),__e.hasMarkers(r)&&(w$(r,"marker")&&T$(t,r,{vals:r.marker.color,containerStr:"marker",cLetter:"c"}),w$(r,"marker.line")&&T$(t,r,{vals:r.marker.line.color,containerStr:"marker.line",cLetter:"c"}))}});var L1=W((mUr,T_e)=>{"use strict";var ol=tt();T_e.exports=function(t,r){for(var i=0;i{"use strict";var A_e=tt();M_e.exports=function(t,r){A_e.isArrayOrTypedArray(r.selectedpoints)&&A_e.tagSelected(t,r)}});var Ld=W((xUr,L_e)=>{"use strict";var S_e=hn(),M$=tt(),EM=Yi(),E_e=rv(),A$=(ra(),Pt(ia)).BADNUM,S$=Wo(),uFt=Fd(),cFt=L1(),fFt=C0();function hFt(e,t){var r=e._fullLayout,i=t._xA=EM.getFromId(e,t.xaxis||"x","x"),n=t._yA=EM.getFromId(e,t.yaxis||"y","y"),a=i.makeCalcdata(t,"x"),o=n.makeCalcdata(t,"y"),s=E_e(t,i,"x",a),l=E_e(t,n,"y",o),u=s.vals,c=l.vals,f=t._length,h=new Array(f),p=t.ids,d=E$(t,r,i,n),v=!1,m,g,w,_,b,S;D_e(r,t);var x="x",A="y",T;if(d)M$.pushUnique(d.traceIndices,t.index),m=d.orientation==="v",m?(A="s",T="x"):(x="s",T="y"),b=d.stackgaps==="interpolate";else{var y=C_e(t,f);k_e(e,t,i,n,u,c,y)}var E=!!t.xperiodalignment,M=!!t.yperiodalignment;for(g=0;gg&&h[_].gap;)_--;for(S=h[_].s,w=h.length-1;w>_;w--)h[w].s=S;for(;g<_;)if(g++,h[g].gap){for(w=g+1;h[w].gap;)w++;for(var F=h[g-1][T],P=h[g-1].s,R=(h[w].s-P)/(h[w][T]-F);g{"use strict";P_e.exports=YF;var dFt=tt().distinctVals;function YF(e,t){this.traces=e,this.sepNegVal=t.sepNegVal,this.overlapNoMerge=t.overlapNoMerge;for(var r=1/0,i=t.posAxis._id.charAt(0),n=[],a=0;apFt,eventDataKeys:()=>vFt});var pFt,vFt,Qy=Ci(()=>{"use strict";pFt=3,vFt=["value","label"]});var Ib=W((_Ur,q_e)=>{"use strict";var Pd=hn(),{isArrayOrTypedArray:tm}=tt(),{BADNUM:e5}=(ra(),Pt(ia)),gFt=xi(),kM=Yi(),{getAxisGroup:mFt}=kb(),XF=I_e(),{TEXTPAD:yFt}=(Qy(),Pt(Jy)),{LINE_SPACING:xFt}=(Jl(),Pt(Kl)),{BR_TAG_ALL:bFt}=ao();function _Ft(e,t){for(var r=t.xaxis,i=t.yaxis,n=e._fullLayout,a=e._fullData,o=e.calcdata,s=[],l=[],u=0;ul+o||!Pd(s))}for(var c=0;ci(a))):i(e.text);let n=e.outsidetextfont.size*xFt*r+yFt;return{ppadplus:t.some(a=>a.s<0)?n:0,ppadminus:t.some(a=>a.s>=0)?n:0}}return{ppadplus:void 0,ppadminus:void 0}}function FFt(e,t,r,i){for(var n=t5(i),a=0;a{"use strict";var O_e=Ld(),N_e=Ib().setGroupPositions;function PFt(e,t){for(var r=t.xaxis,i=t.yaxis,n=e._fullLayout,a=e._fullData,o=e.calcdata,s=[],l=[],u=0;uy[c]&&c{"use strict";var RFt=Qi(),$_e=(ra(),Pt(ia)),CM=$_e.BADNUM,W_e=$_e.LOG_CLIP,G_e=W_e+.5,H_e=W_e-.5,ZF=tt(),zFt=ZF.segmentsIntersect,j_e=ZF.constrain,I$=(k1(),Pt(E1));Y_e.exports=function(t,r){var i=r.trace||{},n=r.xaxis,a=r.yaxis,o=n.type==="log",s=a.type==="log",l=n._length,u=a._length,c=r.backoff,f=i.marker,h=r.connectGaps,p=r.baseTolerance,d=r.shape,v=d==="linear",m=i.fill&&i.fill!=="none",g=[],w=I$.minTolerance,_=t.length,b=new Array(_),S=0,x,A,T,y,E,M,C,k,D,F,P,R,L,I,B,O;function $(Ke){var bt=t[Ke];if(!bt)return!1;var pt=r.linearized?n.l2p(bt.x):n.c2p(bt.x),Oe=r.linearized?a.l2p(bt.y):a.c2p(bt.y);if(pt===CM){if(o&&(pt=n.c2p(bt.x,!0)),pt===CM)return!1;s&&Oe===CM&&(pt*=Math.abs(n._m*u*(n._m>0?G_e:H_e)/(a._m*l*(a._m>0?G_e:H_e)))),pt*=1e3}if(Oe===CM){if(s&&(Oe=a.c2p(bt.y,!0)),Oe===CM)return!1;Oe*=1e3}return[pt,Oe]}function X(Ke,bt,pt,Oe){var Ue=pt-Ke,je=Oe-bt,$e=.5-Ke,Ie=.5-bt,Ve=Ue*Ue+je*je,st=Ue*$e+je*Ie;if(st>0&&st1||Math.abs($e.y-pt[0][1])>1)&&($e=[$e.x,$e.y],Oe&&J($e,Ke)Y||Ke[1]j)return[j_e(Ke[0],V,Y),j_e(Ke[1],H,j)]}function be(Ke,bt){if(Ke[0]===bt[0]&&(Ke[0]===V||Ke[0]===Y)||Ke[1]===bt[1]&&(Ke[1]===H||Ke[1]===j))return!0}function fe(Ke,bt){var pt=[],Oe=Se(Ke),Ue=Se(bt);return Oe&&Ue&&be(Oe,Ue)||(Oe&&pt.push(Oe),Ue&&pt.push(Ue)),pt}function ee(Ke,bt,pt){return function(Oe,Ue){var je=Se(Oe),$e=Se(Ue),Ie=[];if(je&&$e&&be(je,$e))return Ie;je&&Ie.push(je),$e&&Ie.push($e);var Ve=2*ZF.constrain((Oe[Ke]+Ue[Ke])/2,bt,pt)-((je||Oe)[Ke]+($e||Ue)[Ke]);if(Ve){var st;je&&$e?st=Ve>0==je[Ke]>$e[Ke]?je:$e:st=je||$e,st[Ke]+=Ve}return Ie}}var ae;d==="linear"||d==="spline"?ae=oe:d==="hv"||d==="vh"?ae=fe:d==="hvh"?ae=ee(0,V,Y):d==="vhv"&&(ae=ee(1,H,j));function _e(Ke,bt){var pt=bt[0]-Ke[0],Oe=(bt[1]-Ke[1])/pt,Ue=(Ke[1]*bt[0]-bt[1]*Ke[0])/pt;return Ue>0?[Oe>0?V:Y,j]:[Oe>0?Y:V,H]}function re(Ke){var bt=Ke[0],pt=Ke[1],Oe=bt===b[S-1][0],Ue=pt===b[S-1][1];if(!(Oe&&Ue))if(S>1){var je=bt===b[S-2][0],$e=pt===b[S-2][1];Oe&&(bt===V||bt===Y)&&je?$e?S--:b[S-1]=Ke:Ue&&(pt===H||pt===j)&&$e?je?S--:b[S-1]=Ke:b[S++]=Ke}else b[S++]=Ke}function pe(Ke){b[S-1][0]!==Ke[0]&&b[S-1][1]!==Ke[1]&&re([ge,Ee]),re(Ke),xe=null,ge=Ee=0}var Te=ZF.isArrayOrTypedArray(f);function Ce(Ke){if(Ke&&c&&(Ke.i=x,Ke.d=t,Ke.trace=i,Ke.marker=Te?f[Ke.i]:f,Ke.backoff=c),K=Ke[0]/l,G=Ke[1]/u,te=Ke[0]Y?Y:0,ue=Ke[1]j?j:0,te||ue){if(!S)b[S++]=[te||Ke[0],ue||Ke[1]];else if(xe){var bt=ae(xe,Ke);bt.length>1&&(pe(bt[0]),b[S++]=bt[1])}else ce=ae(b[S-1],Ke)[0],b[S++]=ce;var pt=b[S-1];te&&ue&&(pt[0]!==te||pt[1]!==ue)?(xe&&(ge!==te&&Ee!==ue?re(ge&&Ee?_e(xe,Ke):[ge||te,Ee||ue]):ge&&Ee&&re([ge,Ee])),re([te,ue])):ge-te&&Ee-ue&&re([te||ge,ue||Ee]),xe=Ke,ge=te,Ee=ue}else xe&&pe(ae(xe,Ke)[0]),b[S++]=Ke}for(x=0;x<_;x++)if(A=$(x),!!A){for(S=0,xe=null,Ce(A),x++;x<_;x++){if(y=$(x),!y){if(h)continue;break}if(!v||!r.simplify){Ce(y);continue}var ze=$(x+1);if(F=J(y,A),!(!(m&&(S===0||S===_-1))&&Fq(M,ze))break;T=M,L=D[0]*k[0]+D[1]*k[1],L>P?(P=L,y=M,C=!1):L=t.length||!M)break;Ce(M),A=M}}xe&&re([ge||xe[0],Ee||xe[1]]),g.push(b.slice(0,S))}var we=d.slice(d.length-1);if(c&&we!=="h"&&we!=="v"){for(var me=!1,Le=-1,Ne=[],Je=0;Je{"use strict";var X_e={tonextx:1,tonexty:1,tonext:1};Z_e.exports=function(t,r,i){var n,a,o,s,l,u={},c=!1,f=-1,h=0,p=-1;for(a=0;a=0?l=p:(l=p=h,h++),l{"use strict";var iv=gi(),BFt=xi(),DM=tt(),r5=DM.ensureSingle,J_e=DM.identity,yl=Qi(),i5=Wo(),qFt=R$(),OFt=z$(),KF=nM().tester;Q_e.exports=function(t,r,i,n,a,o){var s,l,u=!a,c=!!a&&a.duration>0,f=OFt(t,r,i);if(s=n.selectAll("g.trace").data(f,function(p){return p[0].trace.uid}),s.enter().append("g").attr("class",function(p){return"trace scatter trace"+p[0].trace.uid}).style("stroke-miterlimit",2),s.order(),NFt(t,s,r),c){o&&(l=o());var h=iv.transition().duration(a.duration).ease(a.easing).each("end",function(){l&&l()}).each("interrupt",function(){l&&l()});h.each(function(){n.selectAll("g.trace").each(function(p,d){K_e(t,d,r,p,f,this,a)})})}else s.each(function(p,d){K_e(t,d,r,p,f,this,a)});u&&s.exit().remove(),n.selectAll("path:not([d])").remove()};function NFt(e,t,r){t.each(function(i){var n=r5(iv.select(this),"g","fills");yl.setClipUrl(n,r.layerClipId,e);var a=i[0].trace;a._ownFill=null,a._nextFill=null;var o=[];a._ownfill&&o.push("_ownFill"),a._nexttrace&&o.push("_nextFill");var s=n.selectAll("g").data(o,J_e);s.enter().append("g"),s.exit().remove(),s.order().each(function(l){a[l]=r5(iv.select(this),"path","js-fill")})})}function K_e(e,t,r,i,n,a,o){var s=e._context.staticPlot,l;UFt(e,t,r,i,n);var u=!!o&&o.duration>0;function c(ee){return u?ee.transition():ee}var f=r.xaxis,h=r.yaxis,p=i[0].trace,d=p.line,v=iv.select(a),m=r5(v,"g","errorbars"),g=r5(v,"g","lines"),w=r5(v,"g","points"),_=r5(v,"g","text");if(BFt.getComponentMethod("errorbars","plot")(e,m,r,o),p.visible!==!0)return;c(v).style("opacity",p.opacity);var b,S,x=p.fill.charAt(p.fill.length-1);x!=="x"&&x!=="y"&&(x="");var A,T;x==="y"?(A=1,T=h.c2p(0,!0)):x==="x"&&(A=0,T=f.c2p(0,!0)),i[0][r.isRangePlot?"nodeRangePlot3":"node3"]=v;var y="",E=[],M=p._prevtrace,C=null,k=null;M&&(y=M._prevRevpath||"",S=M._nextFill,E=M._ownPolygons,C=M._fillsegments,k=M._fillElement);var D,F,P="",R="",L,I,B,O,$,X,K=[];p._polygons=[];var G=[],q=[],J=DM.noop;if(b=p._ownFill,i5.hasLines(p)||p.fill!=="none"){S&&S.datum(i),["hv","vh","hvh","vhv"].indexOf(d.shape)!==-1?(L=yl.steps(d.shape),I=yl.steps(d.shape.split("").reverse().join(""))):d.shape==="spline"?L=I=function(ee){var ae=ee[ee.length-1];return ee.length>1&&ee[0][0]===ae[0]&&ee[0][1]===ae[1]?yl.smoothclosed(ee.slice(1),d.smoothing):yl.smoothopen(ee,d.smoothing)}:L=I=function(ee){return"M"+ee.join("L")},B=function(ee){return I(ee.reverse())},q=qFt(i,{xaxis:f,yaxis:h,trace:p,connectGaps:p.connectgaps,baseTolerance:Math.max(d.width||1,3)/4,shape:d.shape,backoff:d.backoff,simplify:d.simplify,fill:p.fill}),G=new Array(q.length);var N=0;for(l=0;l=s[0]&&v.x<=s[1]&&v.y>=l[0]&&v.y<=l[1]}),h=Math.ceil(f.length/c),p=0;n.forEach(function(v,m){var g=v[0].trace;i5.hasMarkers(g)&&g.marker.maxdisplayed>0&&m{"use strict";e3e.exports={container:"marker",min:"cmin",max:"cmax"}});var QF=W((EUr,t3e)=>{"use strict";var JF=Yi();t3e.exports=function(t,r,i){var n={},a={_fullLayout:i},o=JF.getFromTrace(a,r,"x"),s=JF.getFromTrace(a,r,"y"),l=t.orig_x;l===void 0&&(l=t.x);var u=t.orig_y;return u===void 0&&(u=t.y),n.xLabel=JF.tickText(o,o.c2l(l),!0).text,n.yLabel=JF.tickText(s,s.c2l(u),!0).text,n}});var lh=W((kUr,r3e)=>{"use strict";var B$=gi(),a5=Qi(),VFt=xi();function GFt(e){var t=B$.select(e).selectAll("g.trace.scatter");t.style("opacity",function(r){return r[0].trace.opacity}),t.selectAll("g.points").each(function(r){var i=B$.select(this),n=r.trace||r[0].trace;q$(i,n,e)}),t.selectAll("g.text").each(function(r){var i=B$.select(this),n=r.trace||r[0].trace;O$(i,n,e)}),t.selectAll("g.trace path.js-line").call(a5.lineGroupStyle),t.selectAll("g.trace path.js-fill").call(a5.fillGroupStyle,e,!1),VFt.getComponentMethod("errorbars","style")(t)}function q$(e,t,r){a5.pointStyle(e.selectAll("path.point"),t,r)}function O$(e,t,r){a5.textPointStyle(e.selectAll("text"),t,r)}function HFt(e,t,r){var i=t[0].trace;i.selectedpoints?(a5.selectedPointStyle(r.selectAll("path.point"),i),a5.selectedTextStyle(r.selectAll("text"),i)):(q$(r,i,e),O$(r,i,e))}r3e.exports={style:GFt,stylePoints:q$,styleText:O$,styleOnSelect:HFt}});var s5=W((CUr,i3e)=>{"use strict";var o5=ti(),jFt=Wo();i3e.exports=function(t,r){var i,n;if(t.mode==="lines")return i=t.line.color,i&&o5.opacity(i)?i:t.fillcolor;if(t.mode==="none")return t.fill?t.fillcolor:"";var a=r.mcc||r.mc||(t.marker||{}).color,o=r.mlcc||((t.marker||{}).line||{}).color;return n=a&&o5.opacity(a)?a:o&&o5.opacity(o)&&(r.mlw||((t.marker||{}).line||{}).width)?o:"",n?o5.opacity(n)<.3?o5.addOpacity(n,.3):n:(i=(t.line||{}).color,i&&o5.opacity(i)&&jFt.hasLines(t)&&t.line.width?i:t.fillcolor)}});var l5=W((DUr,a3e)=>{"use strict";var eL=tt(),n3e=Is(),$Ft=xi(),WFt=s5(),N$=ti(),YFt=eL.fillText;a3e.exports=function(t,r,i,n){var a=t.cd,o=a[0].trace,s=t.xa,l=t.ya,u=s.c2p(r),c=l.c2p(i),f=[u,c],h=o.hoveron||"",p=o.mode.indexOf("markers")!==-1?3:.5,d=!!o.xperiodalignment,v=!!o.yperiodalignment;if(h.indexOf("points")!==-1){var m=function(R){if(d){var L=s.c2p(R.xStart),I=s.c2p(R.xEnd);return u>=Math.min(L,I)&&u<=Math.max(L,I)?0:1/0}var B=Math.max(3,R.mrc||0),O=1-1/B,$=Math.abs(s.c2p(R.x)-u);return $=Math.min(L,I)&&c<=Math.max(L,I)?0:1/0}var B=Math.max(3,R.mrc||0),O=1-1/B,$=Math.abs(l.c2p(R.y)-c);return $K!=j>=K&&(V=J[q-1][0],Y=J[q][0],j-H&&(N=V+(Y-V)*(K-H)/(j-H),B=Math.min(B,N),O=Math.max(O,N)));return B=Math.max(B,0),O=Math.min(O,s._length),{x0:B,x1:O,y0:K,y1:K}}if(h.indexOf("fills")!==-1&&o._fillElement){var D=C(o._fillElement)&&!C(o._fillExclusionElement);if(D){var F=k(o._polygons);F===null&&(F={x0:f[0],x1:f[0],y0:f[1],y1:f[1]});var P=N$.defaultLine;return N$.opacity(o.fillcolor)?P=o.fillcolor:N$.opacity((o.line||{}).color)&&(P=o.line.color),eL.extendFlat(t,{distance:t.maxHoverDistance,x0:F.x0,x1:F.x1,y0:F.y0,y1:F.y1,color:P,hovertemplate:!1}),delete t.index,o.text&&!eL.isArrayOrTypedArray(o.text)?t.text=String(o.text):t.text=o.name,[t]}}}});var Rb=W((FUr,s3e)=>{"use strict";var o3e=Wo();s3e.exports=function(t,r){var i=t.cd,n=t.xaxis,a=t.yaxis,o=[],s=i[0].trace,l,u,c,f,h=s.mode&&!o3e.hasMarkers(s)&&!o3e.hasText(s);if(h)return[];if(r===!1)for(l=0;l{"use strict";l3e.exports={xaxis:{valType:"subplotid",dflt:"x",editType:"calc+clearAxisTypes"},yaxis:{valType:"subplotid",dflt:"y",editType:"calc+clearAxisTypes"}}});var V$=W((PUr,h3e)=>{"use strict";var tL=xi().traceIs,U$=Rw();h3e.exports=function(t,r,i,n){i("autotypenumbers",n.autotypenumbersDflt);var a=i("type",(n.splomStash||{}).type);a==="-"&&(XFt(r,n.data),r.type==="-"?r.type="linear":t.type=r.type)};function XFt(e,t){if(e.type==="-"){var r=e._id,i=r.charAt(0),n;r.indexOf("scene")!==-1&&(r=i);var a=ZFt(t,r,i);if(a){if(a.type==="histogram"&&i==={v:"y",h:"x"}[a.orientation||"v"]){e.type="linear";return}var o=i+"calendar",s=a[o],l={noMultiCategory:!tL(a,"cartesian")||tL(a,"noMultiCategory")};if(a.type==="box"&&a._hasPreCompStats&&i==={h:"x",v:"y"}[a.orientation||"v"]&&(l.noMultiCategory=!0),l.autotypenumbers=e.autotypenumbers,f3e(a,i)){var u=c3e(a),c=[];for(n=0;n0&&(n["_"+r+"axes"]||{})[t])return n;if((n[r+"axis"]||r)===t){if(f3e(n,r))return n;if((n[r]||[]).length||n[r+"0"])return n}}}function c3e(e){return{v:"x",h:"y"}[e.orientation||"v"]}function f3e(e,t){var r=c3e(e),i=tL(e,"box-violin");return i&&t===r&&e[r]===void 0&&e[r+"0"]===void 0}});var rL=W((IUr,d3e)=>{"use strict";var KFt=Tc().isTypedArraySpec;function JFt(e,t){var r=t.dataAttr||e._id.charAt(0),i={},n,a,o;if(t.axData)n=t.axData;else for(n=[],a=0;a0||KFt(a),s;o&&(s="array");var l=i("categoryorder",s),u;l==="array"&&(u=i("categoryarray")),!o&&l==="array"&&(l=r.categoryorder="trace"),l==="trace"?r._initialCategories=[]:l==="array"?r._initialCategories=u.slice():(u=JFt(r,n).sort(),l==="category ascending"?r._initialCategories=u:l==="category descending"&&(r._initialCategories=u.reverse()))}}});var FM=W((RUr,v3e)=>{"use strict";var p3e=ti(),QFt=Yl(),eLt=tt();v3e.exports=function(t,r,i,n){n=n||{};var a=n.dfltColor;function o(T,y){return eLt.coerce2(t,r,n.attributes,T,y)}var s=o("linecolor",a),l=o("linewidth"),u=i("showline",n.showLine||!!s||!!l);u||(delete r.linecolor,delete r.linewidth);var c=p3e.mix(a,n.bgColor,n.blend||QFt.lightFraction),f=o("gridcolor",c),h=o("gridwidth"),p=o("griddash"),d=i("showgrid",n.showGrid||!!f||!!h||!!p);if(d||(delete r.gridcolor,delete r.gridwidth,delete r.griddash),n.hasMinor){var v=p3e.mix(r.gridcolor,n.bgColor,67),m=o("minor.gridcolor",v),g=o("minor.gridwidth",r.gridwidth||1),w=o("minor.griddash",r.griddash||"solid"),_=i("minor.showgrid",!!m||!!g||!!w);_||(delete r.minor.gridcolor,delete r.minor.gridwidth,delete r.minor.griddash)}if(!n.noZeroLine){var b=o("zerolinelayer"),S=o("zerolinecolor",a),x=o("zerolinewidth"),A=i("zeroline",n.showGrid||!!S||!!x);A||(delete r.zerolinelayer,delete r.zerolinecolor,delete r.zerolinewidth)}}});var PM=W((zUr,_3e)=>{"use strict";var g3e=hn(),tLt=xi(),LM=tt(),rLt=Ra(),iLt=tf(),G$=ac(),m3e=ub(),y3e=Cw(),nLt=Py(),aLt=Iy(),oLt=rL(),sLt=FM(),lLt=LH(),x3e=v1(),iL=(Zl(),Pt(Xl)).WEEKDAY_PATTERN,uLt=(Zl(),Pt(Xl)).HOUR_PATTERN;_3e.exports=function(t,r,i,n,a){var o=n.letter,s=n.font||{},l=n.splomStash||{},u=i("visible",!n.visibleDflt),c=r._template||{},f=r.type||c.type||"-",h;if(f==="date"){var p=tLt.getComponentMethod("calendars","handleDefaults");p(t,r,"calendar",n.calendar),n.noTicklabelmode||(h=i("ticklabelmode"))}!n.noTicklabelindex&&(f==="date"||f==="linear")&&i("ticklabelindex");var d="";(!n.noTicklabelposition||f==="multicategory")&&(d=LM.coerce(t,r,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:h==="period"?["outside","inside"]:o==="x"?["outside","inside","outside left","inside left","outside right","inside right"]:["outside","inside","outside top","inside top","outside bottom","inside bottom"]}},"ticklabelposition")),n.noTicklabeloverflow||i("ticklabeloverflow",d.indexOf("inside")!==-1?"hide past domain":f==="category"||f==="multicategory"?"allow":"hide past div"),x3e(r,a),lLt(t,r,i,n),oLt(t,r,i,n),n.noHover||(f!=="category"&&i("hoverformat"),n.noUnifiedhovertitle||i("unifiedhovertitle.text"));var v=i("color"),m=v!==G$.color.dflt?v:s.color,g=l.label||a._dfltTitle[o];if(aLt(t,r,i,f,n),!u)return r;i("title.text",g),LM.coerceFont(i,"title.font",s,{overrideDflt:{size:LM.bigFont(s.size),color:m}}),m3e(t,r,i,f);var w=n.hasMinor;if(w&&(rLt.newContainer(r,"minor"),m3e(t,r,i,f,{isMinor:!0})),nLt(t,r,i,f,n),y3e(t,r,i,n),w){var _=n.isMinor;n.isMinor=!0,y3e(t,r,i,n),n.isMinor=_}sLt(t,r,i,{dfltColor:v,bgColor:n.bgColor,showGrid:n.showGrid,hasMinor:w,attributes:G$}),w&&r.ticklabelindex==null&&!r.minor.ticks&&!r.minor.showgrid&&delete r.minor,(r.showline||r.ticks)&&i("mirror");var b=f==="multicategory";if(!n.noTickson&&(f==="category"||b)&&(r.ticks||r.showgrid)&&(b?(i("tickson","boundaries"),delete r.ticklabelposition):i("tickson")),b){var S=i("showdividers");S&&(i("dividercolor"),i("dividerwidth"))}if(f==="date")if(iLt(t,r,{name:"rangebreaks",inclusionAttr:"enabled",handleItemDefaults:cLt}),!r.rangebreaks.length)delete r.rangebreaks;else{for(var x=0;x=2){var o="",s,l;if(a.length===2){for(s=0;s<2;s++)if(l=b3e(a[s]),l){o=iL;break}}var u=i("pattern",o);if(u===iL)for(s=0;s<2;s++)l=b3e(a[s]),l&&(t.bounds[s]=a[s]=l-1);if(u)for(s=0;s<2;s++)switch(l=a[s],u){case iL:if(!g3e(l)){t.enabled=!1;return}if(l=+l,l!==Math.floor(l)||l<0||l>=7){t.enabled=!1;return}t.bounds[s]=a[s]=l;break;case uLt:if(!g3e(l)){t.enabled=!1;return}if(l=+l,l<0||l>24){t.enabled=!1;return}t.bounds[s]=a[s]=l;break}if(r.autorange===!1){var c=r.range;if(c[0]c[1]){t.enabled=!1;return}}else if(a[0]>c[0]&&a[1]{"use strict";var hLt=hn(),nL=tt();w3e.exports=function(t,r,i,n){var a=n.counterAxes||[],o=n.overlayableAxes||[],s=n.letter,l=n.grid,u=n.overlayingDomain,c,f,h,p,d,v;l&&(f=l._domains[s][l._axisMap[r._id]],c=l._anchors[r._id],f&&(h=l[s+"side"].split(" ")[0],p=l.domain[s][h==="right"||h==="top"?1:0])),f=f||[0,1],c=c||(hLt(t.position)?"free":a[0]||"free"),h=h||(s==="x"?"bottom":"left"),p=p||0,d=0,v=!1;var m=nL.coerce(t,r,{anchor:{valType:"enumerated",values:["free"].concat(a),dflt:c}},"anchor"),g=nL.coerce(t,r,{side:{valType:"enumerated",values:s==="x"?["bottom","top"]:["left","right"],dflt:h}},"side");if(m==="free"){if(s==="y"){var w=i("autoshift");w&&(p=g==="left"?u[0]:u[1],v=r.automargin?r.automargin:!0,d=g==="left"?-3:3),i("shift",d)}i("position",p)}i("automargin",v);var _=!1;if(o.length&&(_=nL.coerce(t,r,{overlaying:{valType:"enumerated",values:[!1].concat(o),dflt:!1}},"overlaying")),!_){var b=i("domain",f);b[0]>b[1]-1/4096&&(r.domain=f),nL.noneOrAll(t.domain,r.domain,f),r.tickmode==="sync"&&(r.tickmode="auto")}return i("layer"),r}});var F3e=W((qUr,D3e)=>{"use strict";var zb=tt(),T3e=ti(),dLt=ah().isUnifiedHover,pLt=aj(),A3e=Ra(),vLt=pw(),M3e=ac(),gLt=V$(),S3e=PM(),mLt=kb(),E3e=aL(),j$=Ls(),P1=j$.id2name,k3e=j$.name2id,yLt=(Zl(),Pt(Xl)).AX_ID_PATTERN,C3e=xi(),oL=C3e.traceIs,H$=C3e.getComponentMethod;function sL(e,t,r){Array.isArray(e[t])?e[t].push(r):e[t]=[r]}D3e.exports=function(t,r,i){var n=r.autotypenumbers,a={},o={},s={},l={},u={},c={},f={},h={},p={},d={},v,m;for(v=0;v{"use strict";var xLt=gi(),L3e=xi(),lL=tt(),D0=Qi(),uL=Yi();P3e.exports=function(t,r,i,n){var a=t._fullLayout;if(r.length===0){uL.redrawComponents(t);return}function o(m){var g=m.xaxis,w=m.yaxis;a._defs.select("#"+m.clipId+"> rect").call(D0.setTranslate,0,0).call(D0.setScale,1,1),m.plot.call(D0.setTranslate,g._offset,w._offset).call(D0.setScale,1,1);var _=m.plot.selectAll(".scatterlayer .trace");_.selectAll(".point").call(D0.setPointGroupScale,1,1),_.selectAll(".textpoint").call(D0.setTextPointsScale,1,1),_.call(D0.hideOutsideRangePoints,m)}function s(m,g){var w=m.plotinfo,_=w.xaxis,b=w.yaxis,S=_._length,x=b._length,A=!!m.xr1,T=!!m.yr1,y=[];if(A){var E=lL.simpleMap(m.xr0,_.r2l),M=lL.simpleMap(m.xr1,_.r2l),C=E[1]-E[0],k=M[1]-M[0];y[0]=(E[0]*(1-g)+g*M[0]-E[0])/(E[1]-E[0])*S,y[2]=S*(1-g+g*k/C),_.range[0]=_.l2r(E[0]*(1-g)+g*M[0]),_.range[1]=_.l2r(E[1]*(1-g)+g*M[1])}else y[0]=0,y[2]=S;if(T){var D=lL.simpleMap(m.yr0,b.r2l),F=lL.simpleMap(m.yr1,b.r2l),P=D[1]-D[0],R=F[1]-F[0];y[1]=(D[1]*(1-g)+g*F[1]-D[1])/(D[0]-D[1])*x,y[3]=x*(1-g+g*R/P),b.range[0]=_.l2r(D[0]*(1-g)+g*F[0]),b.range[1]=b.l2r(D[1]*(1-g)+g*F[1])}else y[1]=0,y[3]=x;uL.drawOne(t,_,{skipTitle:!0}),uL.drawOne(t,b,{skipTitle:!0}),uL.redrawComponents(t,[_._id,b._id]);var L=A?S/y[2]:1,I=T?x/y[3]:1,B=A?y[0]:0,O=T?y[1]:0,$=A?y[0]/y[2]*S:0,X=T?y[1]/y[3]*x:0,K=_._offset-$,G=b._offset-X;w.clipRect.call(D0.setTranslate,B,O).call(D0.setScale,1/L,1/I),w.plot.call(D0.setTranslate,K,G).call(D0.setScale,L,I),D0.setPointGroupScale(w.zoomScalePts,1/L,1/I),D0.setTextPointsScale(w.zoomScaleTxt,1/L,1/I)}var l;n&&(l=n());function u(){for(var m={},g=0;gi.duration?(u(),p=window.cancelAnimationFrame(v)):p=window.requestAnimationFrame(v)}return f=Date.now(),p=window.requestAnimationFrame(v),Promise.resolve()}});var xl=W(af=>{"use strict";var fL=gi(),R3e=xi(),Bb=tt(),bLt=Qo(),_Lt=Qi(),z3e=Mc().getModuleCalcData,e2=Ls(),nv=(Zl(),Pt(Xl)),wLt=(md(),Pt(gd)),eo=Bb.ensureSingle;function cL(e,t,r){return Bb.ensureSingle(e,t,r,function(i){i.datum(r)})}var qb=nv.zindexSeparator;af.name="cartesian";af.attr=["xaxis","yaxis"];af.idRoot=["x","y"];af.idRegex=nv.idRegex;af.attrRegex=nv.attrRegex;af.attributes=u3e();af.layoutAttributes=ac();af.supplyLayoutDefaults=F3e();af.transitionAxes=I3e();af.finalizeSubplots=function(e,t){var r=t._subplots,i=r.xaxis,n=r.yaxis,a=r.cartesian,o=a,s={},l={},u,c,f;for(u=0;u0){var p=h.id;if(p.indexOf(qb)!==-1)continue;p+=qb+(u+1),h=Bb.extendFlat({},h,{id:p,plot:n._cartesianlayer.selectAll(".subplot").select("."+p)})}for(var d=[],v,m=0;m1&&(S+=qb+b),_.push(s+S),o=0;o1,f=t.mainplotinfo;if(!t.mainplot||c)if(u)t.xlines=eo(i,"path","xlines-above"),t.ylines=eo(i,"path","ylines-above"),t.xaxislayer=eo(i,"g","xaxislayer-above"),t.yaxislayer=eo(i,"g","yaxislayer-above");else{if(!o){var h=eo(i,"g","layer-subplot");t.shapelayer=eo(h,"g","shapelayer"),t.imagelayer=eo(h,"g","imagelayer"),f&&c?(t.minorGridlayer=f.minorGridlayer,t.gridlayer=f.gridlayer,t.zerolinelayer=f.zerolinelayer):(t.minorGridlayer=eo(i,"g","minor-gridlayer"),t.gridlayer=eo(i,"g","gridlayer"),t.zerolinelayer=eo(i,"g","zerolinelayer"));var p=eo(i,"g","layer-between");t.shapelayerBetween=eo(p,"g","shapelayer"),t.imagelayerBetween=eo(p,"g","imagelayer"),eo(i,"path","xlines-below"),eo(i,"path","ylines-below"),t.overlinesBelow=eo(i,"g","overlines-below"),eo(i,"g","xaxislayer-below"),eo(i,"g","yaxislayer-below"),t.overaxesBelow=eo(i,"g","overaxes-below")}t.overplot=eo(i,"g","overplot"),t.plot=eo(t.overplot,"g",n),f&&c?t.zerolinelayerAbove=f.zerolinelayerAbove:t.zerolinelayerAbove=eo(i,"g","zerolinelayer-above"),o||(t.xlines=eo(i,"path","xlines-above"),t.ylines=eo(i,"path","ylines-above"),t.overlinesAbove=eo(i,"g","overlines-above"),eo(i,"g","xaxislayer-above"),eo(i,"g","yaxislayer-above"),t.overaxesAbove=eo(i,"g","overaxes-above"),t.xlines=i.select(".xlines-"+s),t.ylines=i.select(".ylines-"+l),t.xaxislayer=i.select(".xaxislayer-"+s),t.yaxislayer=i.select(".yaxislayer-"+l))}else{var d=f.plotgroup,v=n+"-x",m=n+"-y";t.minorGridlayer=f.minorGridlayer,t.gridlayer=f.gridlayer,t.zerolinelayer=f.zerolinelayer,t.zerolinelayerAbove=f.zerolinelayerAbove,eo(f.overlinesBelow,"path",v),eo(f.overlinesBelow,"path",m),eo(f.overaxesBelow,"g",v),eo(f.overaxesBelow,"g",m),t.plot=eo(f.overplot,"g",n),eo(f.overlinesAbove,"path",v),eo(f.overlinesAbove,"path",m),eo(f.overaxesAbove,"g",v),eo(f.overaxesAbove,"g",m),t.xlines=d.select(".overlines-"+s).select("."+v),t.ylines=d.select(".overlines-"+l).select("."+m),t.xaxislayer=d.select(".overaxes-"+s).select("."+v),t.yaxislayer=d.select(".overaxes-"+l).select("."+m)}o||(u||(cL(t.minorGridlayer,"g",t.xaxis._id),cL(t.minorGridlayer,"g",t.yaxis._id),t.minorGridlayer.selectAll("g").map(function(g){return g[0]}).sort(e2.idSort),cL(t.gridlayer,"g",t.xaxis._id),cL(t.gridlayer,"g",t.yaxis._id),t.gridlayer.selectAll("g").map(function(g){return g[0]}).sort(e2.idSort)),t.xlines.style("fill","none").classed("crisp",!0),t.ylines.style("fill","none").classed("crisp",!0))}function O3e(e,t){if(e){var r={};e.each(function(l){var u=l[0],c=fL.select(this);c.remove(),N3e(u,t),r[u]=!0});for(var i in t._plots)for(var n=t._plots[i],a=n.overlays||[],o=0;o{"use strict";var hL=Wo();U3e.exports={hasLines:hL.hasLines,hasMarkers:hL.hasMarkers,hasText:hL.hasText,isBubble:hL.isBubble,attributes:Ws(),layoutAttributes:UD(),supplyDefaults:p_e(),crossTraceDefaults:_$(),supplyLayoutDefaults:y_e(),calc:Ld().calc,crossTraceCalc:V_e(),arraysToCalcdata:L1(),plot:n5(),colorbar:Cc(),formatLabels:QF(),style:lh().style,styleOnSelect:lh().styleOnSelect,hoverPoints:l5(),selectPoints:Rb(),animatable:!0,moduleType:"trace",name:"scatter",basePlotModule:xl(),categories:["cartesian","svg","symbols","errorBarsOK","showLegend","scatter-like","zoomScale"],meta:{}}});var j3e=W((VUr,H3e)=>{"use strict";var ALt=gi(),MLt=ti(),G3e=Yj(),$$=tt(),SLt=$$.strScale,ELt=$$.strRotate,kLt=$$.strTranslate;H3e.exports=function(t,r,i){var n=t.node(),a=G3e[i.arrowhead||0],o=G3e[i.startarrowhead||0],s=(i.arrowwidth||1)*(i.arrowsize||1),l=(i.arrowwidth||1)*(i.startarrowsize||1),u=r.indexOf("start")>=0,c=r.indexOf("end")>=0,f=a.backoff*s+i.standoff,h=o.backoff*l+i.startstandoff,p,d,v,m;if(n.nodeName==="line"){p={x:+t.attr("x1"),y:+t.attr("y1")},d={x:+t.attr("x2"),y:+t.attr("y2")};var g=p.x-d.x,w=p.y-d.y;if(v=Math.atan2(w,g),m=v+Math.PI,f&&h&&f+h>Math.sqrt(g*g+w*w)){D();return}if(f){if(f*f>g*g+w*w){D();return}var _=f*Math.cos(v),b=f*Math.sin(v);d.x+=_,d.y+=b,t.attr({x2:d.x,y2:d.y})}if(h){if(h*h>g*g+w*w){D();return}var S=h*Math.cos(v),x=h*Math.sin(v);p.x-=S,p.y-=x,t.attr({x1:p.x,y1:p.y})}}else if(n.nodeName==="path"){var A=n.getTotalLength(),T="";if(A{"use strict";var $3e=gi(),W$=xi(),CLt=Qo(),r2=tt(),Y$=r2.strTranslate,RM=Yi(),Ob=ti(),rm=Qi(),W3e=Is(),X$=ao(),Z$=Xp(),IM=Ef(),DLt=Ra().arrayEditor,FLt=j3e();Z3e.exports={draw:LLt,drawOne:Y3e,drawRaw:X3e};function LLt(e){var t=e._fullLayout;t._infolayer.selectAll(".annotation").remove();for(var r=0;r2/3?Ue="right":Ue="center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[Ue]}for(var H=!1,j=["x","y"],Q=0;Q1)&&(ge===ue?(ze=Ee.r2fraction(t["a"+te]),(ze<0||ze>1)&&(H=!0)):H=!0),ae=Ee._offset+Ee.r2p(t[te]),pe=.5}else{var we=Ce==="domain";te==="x"?(re=t[te],ae=we?Ee._offset+Ee._length*re:ae=s.l+s.w*re):(re=1-t[te],ae=we?Ee._offset+Ee._length*re:ae=s.t+s.h*re),pe=t.showarrow?.5:re}if(t.showarrow){ee.head=ae;var me=t["a"+te];if(Te=ce*Y(.5,t.xanchor)-oe*Y(.5,t.yanchor),ge===ue){var Le=RM.getRefType(ge);Le==="domain"?(te==="y"&&(me=1-me),ee.tail=Ee._offset+Ee._length*me):Le==="paper"?te==="y"?(me=1-me,ee.tail=s.t+s.h*me):ee.tail=s.l+s.w*me:ee.tail=Ee._offset+Ee.r2p(me),_e=Te}else ee.tail=ae+me,_e=Te+me;ee.text=ee.tail+Te;var Ne=o[te==="x"?"width":"height"];if(ue==="paper"&&(ee.head=r2.constrain(ee.head,1,Ne-1)),ge==="pixel"){var Je=-Math.max(ee.tail-3,ee.text),rt=Math.min(ee.tail+3,ee.text)-Ne;Je>0?(ee.tail+=Je,ee.text+=Je):rt>0&&(ee.tail-=rt,ee.text-=rt)}ee.tail+=fe,ee.head+=fe}else Te=Se*Y(pe,be),_e=Te,ee.text=ae+Te;ee.text+=fe,Te+=fe,_e+=fe,t["_"+te+"padplus"]=Se/2+_e,t["_"+te+"padminus"]=Se/2-_e,t["_"+te+"size"]=Se,t["_"+te+"shift"]=Te}if(H){A.remove();return}var mt=0,dt=0;if(t.align!=="left"&&(mt=(q-K)*(t.align==="center"?.5:1)),t.valign!=="top"&&(dt=(J-G)*(t.valign==="middle"?.5:1)),$)O.select("svg").attr({x:E+mt-1,y:E+dt}).call(rm.setClipUrl,C?v:null,e);else{var St=E+dt-X.top,Ke=E+mt-X.left;P.call(X$.positionText,Ke,St).call(rm.setClipUrl,C?v:null,e)}k.select("rect").call(rm.setRect,E,E,q,J),M.call(rm.setRect,T/2,T/2,N-T,V-T),A.call(rm.setTranslate,Math.round(m.x.text-N/2),Math.round(m.y.text-V/2)),_.attr({transform:"rotate("+g+","+m.x.text+","+m.y.text+")"});var bt=function(Oe,Ue){w.selectAll(".annotation-arrow-g").remove();var je=m.x.head,$e=m.y.head,Ie=m.x.tail+Oe,Ve=m.y.tail+Ue,st=m.x.text+Oe,_t=m.y.text+Ue,Wt=r2.rotationXYMatrix(g,st,_t),Ht=r2.apply2DTransform(Wt),fr=r2.apply2DTransform2(Wt),lr=+M.attr("width"),Ot=+M.attr("height"),Jt=st-.5*lr,Cr=Jt+lr,Ge=_t-.5*Ot,Qe=Ge+Ot,nt=[[Jt,Ge,Jt,Qe],[Jt,Qe,Cr,Qe],[Cr,Qe,Cr,Ge],[Cr,Ge,Jt,Ge]].map(fr);if(!nt.reduce(function(ln,la){return ln^!!r2.segmentsIntersect(je,$e,je+1e6,$e+1e6,la[0],la[1],la[2],la[3])},!1)){nt.forEach(function(ln){var la=r2.segmentsIntersect(Ie,Ve,je,$e,ln[0],ln[1],ln[2],ln[3]);la&&(Ie=la.x,Ve=la.y)});var gt=t.arrowwidth,ht=t.arrowcolor,Ft=t.arrowside,hr=w.append("g").style({opacity:Ob.opacity(ht)}).classed("annotation-arrow-g",!0),Ut=hr.append("path").attr("d","M"+Ie+","+Ve+"L"+je+","+$e).style("stroke-width",gt+"px").call(Ob.stroke,Ob.rgb(ht));if(FLt(Ut,Ft,t),l.annotationPosition&&Ut.node().parentNode&&!i){var Lr=je,jr=$e;if(t.standoff){var ii=Math.sqrt(Math.pow(je-Ie,2)+Math.pow($e-Ve,2));Lr+=t.standoff*(Ie-je)/ii,jr+=t.standoff*(Ve-$e)/ii}var Fr=hr.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(Ie-Lr)+","+(Ve-jr),transform:Y$(Lr,jr)}).style("stroke-width",gt+6+"px").call(Ob.stroke,"rgba(0,0,0,0)").call(Ob.fill,"rgba(0,0,0,0)"),Ii,Xi;IM.init({element:Fr.node(),gd:e,prepFn:function(){var ln=rm.getTranslate(A);Ii=ln.x,Xi=ln.y,n&&n.autorange&&h(n._name+".autorange",!0),a&&a.autorange&&h(a._name+".autorange",!0)},moveFn:function(ln,la){var mo=Ht(Ii,Xi),pn=mo[0]+ln,zn=mo[1]+la;A.call(rm.setTranslate,pn,zn),p("x",t2(n,ln,"x",s,t)),p("y",t2(a,la,"y",s,t)),t.axref===t.xref&&p("ax",t2(n,ln,"ax",s,t)),t.ayref===t.yref&&p("ay",t2(a,la,"ay",s,t)),hr.attr("transform",Y$(ln,la)),_.attr({transform:"rotate("+g+","+pn+","+zn+")"})},doneFn:function(){W$.call("_guiRelayout",e,d());var ln=document.querySelector(".js-notes-box-panel");ln&&ln.redraw(ln.selectedObj)}})}}};if(t.showarrow&&bt(0,0),b){var pt;IM.init({element:A.node(),gd:e,prepFn:function(){pt=_.attr("transform")},moveFn:function(Oe,Ue){var je="pointer";if(t.showarrow)t.axref===t.xref?p("ax",t2(n,Oe,"ax",s,t)):p("ax",t.ax+Oe),t.ayref===t.yref?p("ay",t2(a,Ue,"ay",s.w,t)):p("ay",t.ay+Ue),bt(Oe,Ue);else{if(i)return;var $e,Ie;if(n)$e=t2(n,Oe,"x",s,t);else{var Ve=t._xsize/s.w,st=t.x+(t._xshift-t.xshift)/s.w-Ve/2;$e=IM.align(st+Oe/s.w,Ve,0,1,t.xanchor)}if(a)Ie=t2(a,Ue,"y",s,t);else{var _t=t._ysize/s.h,Wt=t.y-(t._yshift+t.yshift)/s.h-_t/2;Ie=IM.align(Wt-Ue/s.h,_t,0,1,t.yanchor)}p("x",$e),p("y",Ie),(!n||!a)&&(je=IM.getCursor(n?.5:$e,a?.5:Ie,t.xanchor,t.yanchor))}_.attr({transform:Y$(Oe,Ue)+pt}),Z$(A,je)},clickFn:function(Oe,Ue){t.captureevents&&e.emit("plotly_clickannotation",x(Ue))},doneFn:function(){Z$(A),W$.call("_guiRelayout",e,d());var Oe=document.querySelector(".js-notes-box-panel");Oe&&Oe.redraw(Oe.selectedObj)}})}}l.annotationText?P.call(X$.makeEditable,{delegate:A,gd:e}).call(R).on("edit",function(I){t.text=I,this.call(R),p("text",I),n&&n.autorange&&h(n._name+".autorange",!0),a&&a.autorange&&h(a._name+".autorange",!0),W$.call("_guiRelayout",e,d())}):P.call(R)}});var rwe=W((HUr,twe)=>{"use strict";var K3e=tt(),PLt=xi(),J3e=Ra().arrayEditor;twe.exports={hasClickToShow:ILt,onClick:RLt};function ILt(e,t){var r=ewe(e,t);return r.on.length>0||r.explicitOff.length>0}function RLt(e,t){var r=ewe(e,t),i=r.on,n=r.off.concat(r.explicitOff),a={},o=e._fullLayout.annotations,s,l;if(i.length||n.length){for(s=0;s{"use strict";var K$=tt(),u5=ti();iwe.exports=function(t,r,i,n){n("opacity");var a=n("bgcolor"),o=n("bordercolor"),s=u5.opacity(o);n("borderpad");var l=n("borderwidth"),u=n("showarrow");n("text",u?" ":i._dfltTitle.annotation),n("textangle"),K$.coerceFont(n,"font",i.font),n("width"),n("align");var c=n("height");if(c&&n("valign"),u){var f=n("arrowside"),h,p;f.indexOf("end")!==-1&&(h=n("arrowhead"),p=n("arrowsize")),f.indexOf("start")!==-1&&(n("startarrowhead",h),n("startarrowsize",p)),n("arrowcolor",s?r.bordercolor:u5.defaultLine),n("arrowwidth",(s&&l||1)*2),n("standoff"),n("startstandoff")}var d=n("hovertext"),v=i.hoverlabel||{};if(d){var m=n("hoverlabel.bgcolor",v.bgcolor||(u5.opacity(a)?u5.rgb(a):u5.defaultLine)),g=n("hoverlabel.bordercolor",v.bordercolor||u5.contrast(m)),w=K$.extendFlat({},v.font);w.color||(w.color=g),K$.coerceFont(n,"hoverlabel.font",w)}n("captureevents",!!d)}});var awe=W(($Ur,nwe)=>{"use strict";var Q$=tt(),Nb=Yi(),zLt=tf(),BLt=J$(),qLt=Xy();nwe.exports=function(t,r){zLt(t,r,{name:"annotations",handleItemDefaults:OLt})};function OLt(e,t,r){function i(_,b){return Q$.coerce(e,t,qLt,_,b)}var n=i("visible"),a=i("clicktoshow");if(n||a){BLt(e,t,r,i);for(var o=t.showarrow,s=["x","y"],l=[-10,-30],u={_fullLayout:r},c=0;c<2;c++){var f=s[c],h=Nb.coerceRef(e,t,u,f,"","paper");if(h!=="paper"){var p=Nb.getFromId(u,h);p._annIndices.push(t._index)}if(Nb.coercePosition(t,u,i,h,f,.5),o){var d="a"+f,v=Nb.coerceRef(e,t,u,d,"pixel",["pixel","paper"]);v!=="pixel"&&v!==h&&(v=t[d]="pixel");var m=v==="pixel"?l[c]:.4;Nb.coercePosition(t,u,i,v,d,m)}i(f+"anchor"),i(f+"shift")}if(Q$.noneOrAll(e,t,["x","y"]),o&&Q$.noneOrAll(e,t,["ax","ay"]),a){var g=i("xclick"),w=i("yclick");t._xclick=g===void 0?t.x:Nb.cleanPosition(g,u,t.xref),t._yclick=w===void 0?t.y:Nb.cleanPosition(w,u,t.yref)}}}});var lwe=W((WUr,swe)=>{"use strict";var eW=tt(),Ub=Yi(),NLt=dL().draw;swe.exports=function(t){var r=t._fullLayout,i=eW.filterVisible(r.annotations);if(i.length&&t._fullData.length)return eW.syncOrAsync([NLt,ULt],t)};function ULt(e){var t=e._fullLayout;eW.filterVisible(t.annotations).forEach(function(r){var i=Ub.getFromId(e,r.xref),n=Ub.getFromId(e,r.yref),a=Ub.getRefType(r.xref),o=Ub.getRefType(r.yref);r._extremes={},a==="range"&&owe(r,i),o==="range"&&owe(r,n)})}function owe(e,t){var r=t._id,i=r.charAt(0),n=e[i],a=e["a"+i],o=e[i+"ref"],s=e["a"+i+"ref"],l=e["_"+i+"padplus"],u=e["_"+i+"padminus"],c={x:1,y:-1}[i]*e[i+"shift"],f=3*e.arrowsize*e.arrowwidth||0,h=f+c,p=f-c,d=3*e.startarrowsize*e.arrowwidth||0,v=d+c,m=d-c,g;if(s===o){var w=Ub.findExtremes(t,[t.r2c(n)],{ppadplus:h,ppadminus:p}),_=Ub.findExtremes(t,[t.r2c(a)],{ppadplus:Math.max(l,v),ppadminus:Math.max(u,m)});g={min:[w.min[0],_.min[0]],max:[w.max[0],_.max[0]]}}else v=a?v+a:v,m=a?m-a:m,g=Ub.findExtremes(t,[t.r2c(n)],{ppadplus:Math.max(l,h,v),ppadminus:Math.max(u,p,m)});e._extremes[r]=g}});var cwe=W((YUr,uwe)=>{"use strict";var VLt=hn(),GLt=N8();uwe.exports=function(t,r,i,n){r=r||{};var a=i==="log"&&r.type==="linear",o=i==="linear"&&r.type==="log";if(!(a||o))return;var s=t._fullLayout.annotations,l=r._id.charAt(0),u,c;function f(p){var d=u[p],v=null;a?v=GLt(d,r.range):v=Math.pow(10,d),VLt(v)||(v=null),n(c+p,v)}for(var h=0;h{"use strict";var tW=dL(),fwe=rwe();hwe.exports={moduleType:"component",name:"annotations",layoutAttributes:Xy(),supplyLayoutDefaults:awe(),includeBasePlot:gM()("annotations"),calcAutorange:lwe(),draw:tW.draw,drawOne:tW.drawOne,drawRaw:tW.drawRaw,hasClickToShow:fwe.hasClickToShow,onClick:fwe.onClick,convertCoords:cwe()}});var pL=W((ZUr,pwe)=>{"use strict";var rs=Xy(),HLt=hs().overrideAll,jLt=Ra().templatedArray;pwe.exports=HLt(jLt("annotation",{visible:rs.visible,x:{valType:"any"},y:{valType:"any"},z:{valType:"any"},ax:{valType:"number"},ay:{valType:"number"},xanchor:rs.xanchor,xshift:rs.xshift,yanchor:rs.yanchor,yshift:rs.yshift,text:rs.text,textangle:rs.textangle,font:rs.font,width:rs.width,height:rs.height,opacity:rs.opacity,align:rs.align,valign:rs.valign,bgcolor:rs.bgcolor,bordercolor:rs.bordercolor,borderpad:rs.borderpad,borderwidth:rs.borderwidth,showarrow:rs.showarrow,arrowcolor:rs.arrowcolor,arrowhead:rs.arrowhead,startarrowhead:rs.startarrowhead,arrowside:rs.arrowside,arrowsize:rs.arrowsize,startarrowsize:rs.startarrowsize,arrowwidth:rs.arrowwidth,standoff:rs.standoff,startstandoff:rs.startstandoff,hovertext:rs.hovertext,hoverlabel:rs.hoverlabel,captureevents:rs.captureevents}),"calc","from-root")});var gwe=W((KUr,vwe)=>{"use strict";var rW=tt(),$Lt=Yi(),WLt=tf(),YLt=J$(),XLt=pL();vwe.exports=function(t,r,i){WLt(t,r,{name:"annotations",handleItemDefaults:ZLt,fullLayout:i.fullLayout})};function ZLt(e,t,r,i){function n(s,l){return rW.coerce(e,t,XLt,s,l)}function a(s){var l=s+"axis",u={_fullLayout:{}};return u._fullLayout[l]=r[l],$Lt.coercePosition(t,u,n,s,s,.5)}var o=n("visible");o&&(YLt(e,t,i.fullLayout,n),a("x"),a("y"),a("z"),rW.noneOrAll(e,t,["x","y","z"]),t.xref="x",t.yref="y",t.zref="z",n("xanchor"),n("yanchor"),n("xshift"),n("yshift"),t.showarrow&&(t.axref="pixel",t.ayref="pixel",n("ax",-10),n("ay",-30),rW.noneOrAll(e,t,["ax","ay"])))}});var bwe=W((JUr,xwe)=>{"use strict";var mwe=tt(),ywe=Yi();xwe.exports=function(t){for(var r=t.fullSceneLayout,i=r.annotations,n=0;n{"use strict";function iW(e,t){var r=[0,0,0,0],i,n;for(i=0;i<4;++i)for(n=0;n<4;++n)r[n]+=e[4*i+n]*t[i];return r}function JLt(e,t){var r=iW(e.projection,iW(e.view,iW(e.model,[t[0],t[1],t[2],1])));return r}_we.exports=JLt});var Twe=W((eVr,wwe)=>{"use strict";var QLt=dL().drawRaw,ePt=nW(),tPt=["x","y","z"];wwe.exports=function(t){for(var r=t.fullSceneLayout,i=t.dataScale,n=r.annotations,a=0;a1){s=!0;break}}s?t.fullLayout._infolayer.select(".annotation-"+t.id+'[data-index="'+a+'"]').remove():(o._pdata=ePt(t.glplot.cameraParams,[r.xaxis.r2l(o.x)*i[0],r.yaxis.r2l(o.y)*i[1],r.zaxis.r2l(o.z)*i[2]]),QLt(t.graphDiv,o,a,t.id,o._xa,o._ya))}}});var Swe=W((tVr,Mwe)=>{"use strict";var rPt=xi(),Awe=tt();Mwe.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:pL()}}},layoutAttributes:pL(),handleDefaults:gwe(),includeBasePlot:iPt,convert:bwe(),draw:Twe()};function iPt(e,t){var r=rPt.subplotsRegistry.gl3d;if(r)for(var i=r.attrRegex,n=Object.keys(e),a=0;a{"use strict";var rVr=(Zl(),Pt(Xl)),Ewe=jo(),kwe=Ws().line,nPt=zu().dash,av=an().extendFlat,aPt=Ra().templatedArray,iVr=(pM(),Pt(dM)),c5=Ja(),Cwe=Xy(),{shapeTexttemplateAttrs:oPt,templatefallbackAttrs:sPt}=Wa(),lPt=xD();Dwe.exports=aPt("shape",{visible:av({},c5.visible,{editType:"calc+arraydraw"}),showlegend:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},legend:av({},c5.legend,{editType:"calc+arraydraw"}),legendgroup:av({},c5.legendgroup,{editType:"calc+arraydraw"}),legendgrouptitle:{text:av({},c5.legendgrouptitle.text,{editType:"calc+arraydraw"}),font:Ewe({editType:"calc+arraydraw"}),editType:"calc+arraydraw"},legendrank:av({},c5.legendrank,{editType:"calc+arraydraw"}),legendwidth:av({},c5.legendwidth,{editType:"calc+arraydraw"}),type:{valType:"enumerated",values:["circle","rect","path","line"],editType:"calc+arraydraw"},layer:{valType:"enumerated",values:["below","above","between"],dflt:"above",editType:"arraydraw"},xref:av({},Cwe.xref,{arrayOk:!0}),xsizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},xanchor:{valType:"any",editType:"calc+arraydraw"},x0:{valType:"any",editType:"calc+arraydraw"},x1:{valType:"any",editType:"calc+arraydraw"},x0shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},x1shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},yref:av({},Cwe.yref,{arrayOk:!0}),ysizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},yanchor:{valType:"any",editType:"calc+arraydraw"},y0:{valType:"any",editType:"calc+arraydraw"},y1:{valType:"any",editType:"calc+arraydraw"},y0shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},y1shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},path:{valType:"string",editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},line:{color:av({},kwe.color,{editType:"arraydraw"}),width:av({},kwe.width,{editType:"calc+arraydraw"}),dash:av({},nPt,{editType:"arraydraw"}),editType:"calc+arraydraw"},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd",editType:"arraydraw"},editable:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},label:{text:{valType:"string",dflt:"",editType:"arraydraw"},texttemplate:oPt({},{keys:Object.keys(lPt)}),texttemplatefallback:sPt({editType:"arraydraw"}),font:Ewe({editType:"calc+arraydraw",colorEditType:"arraydraw"}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"],editType:"arraydraw"},textangle:{valType:"angle",dflt:"auto",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],editType:"calc+arraydraw"},padding:{valType:"number",dflt:3,min:0,editType:"arraydraw"},editType:"arraydraw"},editType:"arraydraw"})});var Lwe=W((aVr,Fwe)=>{"use strict";var f5=tt(),F0=Yi(),uPt=tf(),cPt=aW(),zM=Wy();Fwe.exports=function(t,r){uPt(t,r,{name:"shapes",handleItemDefaults:hPt})};function fPt(e,t){return e?"bottom":t.indexOf("top")!==-1?"top":t.indexOf("bottom")!==-1?"bottom":"middle"}function hPt(e,t,r){function i(_,b){return f5.coerce(e,t,cPt,_,b)}t._isShape=!0;var n=i("visible");if(!n)return;var a=i("showlegend");i("legend"),i("legendgroup"),a&&(i("legendwidth"),i("legendgrouptitle.text"),f5.coerceFont(i,"legendgrouptitle.font"),i("legendrank"));var o=i("path"),s=o?"path":"rect",l=i("type",s),u=l!=="path";u&&delete t.path,i("editable"),i("layer"),i("opacity"),i("fillcolor"),i("fillrule");var c=i("line.width");c&&(i("line.color"),i("line.dash"));var f=i("xsizemode"),h=i("ysizemode");let p=[.25,.75],d=[0,10];["x","y"].forEach(_=>{var b=_+"anchor",S=_==="x"?f:h,x={_fullLayout:r},A,T,y,E;let M=_+"ref",C=e[M];if(Array.isArray(C)&&C.length>0){let k=zM.countDefiningCoords(l,o,_);E=F0.coerceRefArray(e,t,x,_,void 0,"paper",k),t["_"+_+"refArray"]=!0}else E=F0.coerceRef(e,t,x,_,void 0,"paper");if(Array.isArray(E))E.forEach(function(k){F0.getRefType(k)==="range"&&(A=F0.getFromId(x,k),A&&A._shapeIndices.indexOf(t._index)===-1&&A._shapeIndices.push(t._index))}),u&&[0,1].forEach(function(k){let D=E[k];F0.getRefType(D)==="range"?(A=F0.getFromId(x,D),T=zM.shapePositionToRange(A),y=zM.rangeToShapePosition(A),(A.type==="category"||A.type==="multicategory")&&i(_+k+"shift")):T=y=f5.identity;let P=_+k,R=e[P];if(e[P]=T(e[P],!0),S==="pixel"?i(P,d[k]):F0.coercePosition(t,x,i,D,P,p[k]),t[P]=y(t[P]),e[P]=R,k===0&&S==="pixel"){let L=e[b];e[b]=T(e[b],!0),F0.coercePosition(t,x,i,D,b,.25),t[b]=y(t[b]),e[b]=L}});else{if(F0.getRefType(E)==="range"?(A=F0.getFromId(x,E),A._shapeIndices.push(t._index),y=zM.rangeToShapePosition(A),T=zM.shapePositionToRange(A),u&&(A.type==="category"||A.type==="multicategory")&&(i(_+"0shift"),i(_+"1shift"))):T=y=f5.identity,u){let D=_+"0",F=_+"1",P=e[D],R=e[F];e[D]=T(e[D],!0),e[F]=T(e[F],!0),S==="pixel"?(i(D,d[0]),i(F,d[1])):(F0.coercePosition(t,x,i,E,D,p[0]),F0.coercePosition(t,x,i,E,F,p[1])),t[D]=y(t[D]),t[F]=y(t[F]),e[D]=P,e[F]=R}if(S==="pixel"){let D=e[b];e[b]=T(e[b],!0),F0.coercePosition(t,x,i,E,b,.25),t[b]=y(t[b]),e[b]=D}}}),u&&f5.noneOrAll(e,t,["x0","x1","y0","y1"]);var v=l==="line",m,g;if(u&&(m=i("label.texttemplate"),i("label.texttemplatefallback")),m||(g=i("label.text")),g||m){i("label.textangle");var w=i("label.textposition",v?"middle":"middle center");i("label.xanchor"),i("label.yanchor",fPt(v,w)),i("label.padding"),f5.coerceFont(i,"label.font",r.font)}}});var Rwe=W((oVr,Iwe)=>{"use strict";var dPt=ti(),Pwe=tt();function pPt(e,t){return e?"bottom":t.indexOf("top")!==-1?"top":t.indexOf("bottom")!==-1?"bottom":"middle"}Iwe.exports=function(t,r,i){i("newshape.visible"),i("newshape.name"),i("newshape.showlegend"),i("newshape.legend"),i("newshape.legendwidth"),i("newshape.legendgroup"),i("newshape.legendgrouptitle.text"),Pwe.coerceFont(i,"newshape.legendgrouptitle.font"),i("newshape.legendrank"),i("newshape.drawdirection"),i("newshape.layer"),i("newshape.fillcolor"),i("newshape.fillrule"),i("newshape.opacity");var n=i("newshape.line.width");if(n){var a=(t||{}).plot_bgcolor||"#FFF";i("newshape.line.color",dPt.contrast(a)),i("newshape.line.dash")}var o=t.dragmode==="drawline",s=i("newshape.label.text"),l=i("newshape.label.texttemplate");if(i("newshape.label.texttemplatefallback"),s||l){i("newshape.label.textangle");var u=i("newshape.label.textposition",o?"middle":"middle center");i("newshape.label.xanchor"),i("newshape.label.yanchor",pPt(o,u)),i("newshape.label.padding"),Pwe.coerceFont(i,"newshape.label.font",r.font)}i("activeshape.fillcolor"),i("activeshape.opacity")}});var Vwe=W((sVr,Uwe)=>{"use strict";var oW=tt(),Id=Yi(),I1=($A(),Pt(jA)),sW=Wy();Uwe.exports=function(t){var r=t._fullLayout,i=oW.filterVisible(r.shapes);if(!(!i.length||!t._fullData.length))for(var n=0;n{o=Id.getFromId(t,f),a._extremes[o._id]=Id.findExtremes(o,h,Bwe(a))})}else a.xref!=="paper"&&l!=="domain"&&(o=Id.getFromId(t,a.xref),s=Owe(o,a,I1.paramIsX),s&&(a._extremes[o._id]=Id.findExtremes(o,s,Bwe(a))));if(u==="array"){let c=zwe(t,a,"y");Object.entries(c).forEach(([f,h])=>{o=Id.getFromId(t,f),a._extremes[o._id]=Id.findExtremes(o,h,qwe(a))})}else a.yref!=="paper"&&u!=="domain"&&(o=Id.getFromId(t,a.yref),s=Owe(o,a,I1.paramIsY),s&&(a._extremes[o._id]=Id.findExtremes(o,s,qwe(a))))}};function zwe(e,t,r){let i=t[r+"ref"],n=r==="x"?I1.paramIsX:I1.paramIsY;function a(f,h){f==="paper"||Id.getRefType(f)==="domain"||(o[f]||(o[f]=[]),o[f].push(h))}let o={};if(t.type==="path"&&t.path){let f=t.path.match(I1.segmentRE)||[];for(var s=0,l=0;ld&&(a(i[s],v[d]),s++)}}else a(i[0],t[r+"0"]),a(i[1],t[r+"1"]);let u={};for(let f in o){let h=Id.getFromId(e,f);if(h){var c=h.type==="category"||h.type==="multicategory"?h.r2c:h.d2c;h.type==="date"&&(c=sW.decodeDate(c)),u[h._id]=o[f].map(c)}}return u}function Bwe(e){return Nwe(e.line.width,e.xsizemode,e.x0,e.x1,e.path,!1)}function qwe(e){return Nwe(e.line.width,e.ysizemode,e.y0,e.y1,e.path,!0)}function Nwe(e,t,r,i,n,a){var o=e/2,s=a;if(t==="pixel"){var l=n?sW.extractPathCoords(n,a?I1.paramIsY:I1.paramIsX):[r,i],u=oW.aggNums(Math.max,null,l),c=oW.aggNums(Math.min,null,l),f=c<0?Math.abs(c)+o:o,h=u>0?u+o:o;return{ppad:o,ppadplus:s?f:h,ppadminus:s?h:f}}else return{ppad:o}}function Owe(e,t,r){var i=e._id.charAt(0)==="x"?"x":"y",n=e.type==="category"||e.type==="multicategory",a,o,s=0,l=0,u=n?e.r2c:e.d2c,c=t[i+"sizemode"]==="scaled";if(c?(a=t[i+"0"],o=t[i+"1"],n&&(s=t[i+"0shift"],l=t[i+"1shift"])):(a=t[i+"anchor"],o=t[i+"anchor"]),a!==void 0)return[u(a)+s,u(o)+l];if(t.path){var f=1/0,h=-1/0,p=t.path.match(I1.segmentRE),d,v,m,g,w;for(e.type==="date"&&(u=sW.decodeDate(u)),d=0;dh&&(h=w)));if(h>=f)return[f,h]}}});var jwe=W((lVr,Hwe)=>{"use strict";var Gwe=rF();Hwe.exports={moduleType:"component",name:"shapes",layoutAttributes:aW(),supplyLayoutDefaults:Lwe(),supplyDrawNewShapeDefaults:Rwe(),includeBasePlot:gM()("shapes"),calcAutorange:Vwe(),draw:Gwe.draw,drawOne:Gwe.drawOne}});var lW=W((cVr,Wwe)=>{"use strict";var $we=(Zl(),Pt(Xl)),vPt=Ra().templatedArray,uVr=(pM(),Pt(dM));Wwe.exports=vPt("image",{visible:{valType:"boolean",dflt:!0,editType:"arraydraw"},source:{valType:"string",editType:"arraydraw"},layer:{valType:"enumerated",values:["below","above"],dflt:"above",editType:"arraydraw"},sizex:{valType:"number",dflt:0,editType:"arraydraw"},sizey:{valType:"number",dflt:0,editType:"arraydraw"},sizing:{valType:"enumerated",values:["fill","contain","stretch"],dflt:"contain",editType:"arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},x:{valType:"any",dflt:0,editType:"arraydraw"},y:{valType:"any",dflt:0,editType:"arraydraw"},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left",editType:"arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],dflt:"top",editType:"arraydraw"},xref:{valType:"enumerated",values:["paper",$we.idRegex.x.toString()],dflt:"paper",editType:"arraydraw"},yref:{valType:"enumerated",values:["paper",$we.idRegex.y.toString()],dflt:"paper",editType:"arraydraw"},editType:"arraydraw"})});var Xwe=W((fVr,Ywe)=>{"use strict";var gPt=tt(),uW=Yi(),mPt=tf(),yPt=lW(),xPt="images";Ywe.exports=function(t,r){var i={name:xPt,handleItemDefaults:bPt};mPt(t,r,i)};function bPt(e,t,r){function i(h,p){return gPt.coerce(e,t,yPt,h,p)}var n=i("source"),a=i("visible",!!n);if(!a)return t;i("layer"),i("xanchor"),i("yanchor"),i("sizex"),i("sizey"),i("sizing"),i("opacity");for(var o={_fullLayout:r},s=["x","y"],l=0;l<2;l++){var u=s[l],c=uW.coerceRef(e,t,o,u,"paper",void 0);if(c!=="paper"){var f=uW.getFromId(o,c);f._imgIndices.push(t._index)}uW.coercePosition(t,o,i,c,u,0)}return t}});var Qwe=W((hVr,Jwe)=>{"use strict";var Zwe=gi(),_Pt=Qi(),h5=Yi(),Kwe=Ls(),wPt=(md(),Pt(gd));Jwe.exports=function(t){var r=t._fullLayout,i=[],n={},a=[],o,s;for(s=0;s{"use strict";var e5e=hn(),TPt=N8();t5e.exports=function(t,r,i,n){r=r||{};var a=i==="log"&&r.type==="linear",o=i==="linear"&&r.type==="log";if(a||o){for(var s=t._fullLayout.images,l=r._id.charAt(0),u,c,f=0;f{"use strict";i5e.exports={moduleType:"component",name:"images",layoutAttributes:lW(),supplyLayoutDefaults:Xwe(),includeBasePlot:gM()("images"),draw:Qwe(),convertCoords:r5e()}});var vL={};Jn(vL,{activeColor:()=>YPt,arrowOffsetX:()=>jPt,arrowPadX:()=>NPt,arrowSymbol:()=>ZPt,autoMarginIdRoot:()=>RPt,blankHeaderOpts:()=>zPt,buttonClassName:()=>FPt,containerClassName:()=>MPt,dropdownButtonClassName:()=>DPt,dropdownButtonGroupClassName:()=>CPt,gapButton:()=>WPt,gapButtonHeader:()=>$Pt,headerArrowClassName:()=>kPt,headerClassName:()=>EPt,headerGroupClassName:()=>SPt,hoverColor:()=>XPt,itemRectClassName:()=>LPt,itemTextClassName:()=>PPt,menuIndexAttrName:()=>IPt,minHeight:()=>qPt,minWidth:()=>BPt,name:()=>APt,rx:()=>UPt,ry:()=>VPt,textOffsetX:()=>GPt,textOffsetY:()=>HPt,textPadX:()=>OPt});var APt,MPt,SPt,EPt,kPt,CPt,DPt,FPt,LPt,PPt,IPt,RPt,zPt,BPt,qPt,OPt,NPt,UPt,VPt,GPt,HPt,jPt,$Pt,WPt,YPt,XPt,ZPt,gL=Ci(()=>{"use strict";APt="updatemenus",MPt="updatemenu-container",SPt="updatemenu-header-group",EPt="updatemenu-header",kPt="updatemenu-header-arrow",CPt="updatemenu-dropdown-button-group",DPt="updatemenu-dropdown-button",FPt="updatemenu-button",LPt="updatemenu-item-rect",PPt="updatemenu-item-text",IPt="updatemenu-active-index",RPt="updatemenu-",zPt={label:" "},BPt=30,qPt=30,OPt=24,NPt=16,UPt=2,VPt=2,GPt=12,HPt=3,jPt=4,$Pt=5,WPt=2,YPt="#F4FAFF",XPt="#F4FAFF",ZPt={left:"\u25C4",right:"\u25BA",up:"\u25B2",down:"\u25BC"}});var cW=W((vVr,o5e)=>{"use strict";var KPt=jo(),JPt=Yl(),QPt=an().extendFlat,e9t=hs().overrideAll,t9t=bD(),a5e=Ra().templatedArray,r9t=a5e("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}});o5e.exports=e9t(a5e("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:r9t,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:QPt(t9t({editType:"arraydraw"}),{}),font:KPt({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:JPt.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")});var c5e=W((gVr,u5e)=>{"use strict";var mL=tt(),s5e=tf(),l5e=cW(),i9t=(gL(),Pt(vL)),n9t=i9t.name,a9t=l5e.buttons;u5e.exports=function(t,r){var i={name:n9t,handleItemDefaults:o9t};s5e(t,r,i)};function o9t(e,t,r){function i(o,s){return mL.coerce(e,t,l5e,o,s)}var n=s5e(e,t,{name:"buttons",handleItemDefaults:s9t}),a=i("visible",n.length>0);a&&(i("active"),i("direction"),i("type"),i("showactive"),i("x"),i("y"),mL.noneOrAll(e,t,["x","y"]),i("xanchor"),i("yanchor"),i("pad.t"),i("pad.r"),i("pad.b"),i("pad.l"),mL.coerceFont(i,"font",r.font),i("bgcolor",r.paper_bgcolor),i("bordercolor"),i("borderwidth"))}function s9t(e,t){function r(n,a){return mL.coerce(e,t,a9t,n,a)}var i=r("visible",e.method==="skip"||Array.isArray(e.args));i&&(r("method"),r("args"),r("args2"),r("label"),r("execute"))}});var d5e=W((mVr,h5e)=>{"use strict";h5e.exports=Ys;var ov=gi(),f5e=ti(),d5=Qi(),yL=tt();function Ys(e,t,r){this.gd=e,this.container=t,this.id=r,this.position=null,this.translateX=null,this.translateY=null,this.hbar=null,this.vbar=null,this.bg=this.container.selectAll("rect.scrollbox-bg").data([0]),this.bg.exit().on(".drag",null).on("wheel",null).remove(),this.bg.enter().append("rect").classed("scrollbox-bg",!0).style("pointer-events","all").attr({opacity:0,x:0,y:0,width:0,height:0})}Ys.barWidth=2;Ys.barLength=20;Ys.barRadius=2;Ys.barPad=1;Ys.barColor="#808BA4";Ys.prototype.enable=function(t,r,i){var n=this.gd._fullLayout,a=n.width,o=n.height;this.position=t;var s=this.position.l,l=this.position.w,u=this.position.t,c=this.position.h,f=this.position.direction,h=f==="down",p=f==="left",d=f==="right",v=f==="up",m=l,g=c,w,_,b,S;!h&&!p&&!d&&!v&&(this.position.direction="down",h=!0);var x=h||v;x?(w=s,_=w+m,h?(b=u,S=Math.min(b+g,o),g=S-b):(S=u+g,b=Math.max(S-g,0),g=S-b)):(b=u,S=b+g,p?(_=s+m,w=Math.max(_-m,0),m=_-w):(w=s,_=Math.min(w+m,a),m=_-w)),this._box={l:w,t:b,w:m,h:g};var A=l>m,T=Ys.barLength+2*Ys.barPad,y=Ys.barWidth+2*Ys.barPad,E=s,M=u+c;M+y>o&&(M=o-y);var C=this.container.selectAll("rect.scrollbar-horizontal").data(A?[0]:[]);C.exit().on(".drag",null).remove(),C.enter().append("rect").classed("scrollbar-horizontal",!0).call(f5e.fill,Ys.barColor),A?(this.hbar=C.attr({rx:Ys.barRadius,ry:Ys.barRadius,x:E,y:M,width:T,height:y}),this._hbarXMin=E+T/2,this._hbarTranslateMax=m-T):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var k=c>g,D=Ys.barWidth+2*Ys.barPad,F=Ys.barLength+2*Ys.barPad,P=s+l,R=u;P+D>a&&(P=a-D);var L=this.container.selectAll("rect.scrollbar-vertical").data(k?[0]:[]);L.exit().on(".drag",null).remove(),L.enter().append("rect").classed("scrollbar-vertical",!0).call(f5e.fill,Ys.barColor),k?(this.vbar=L.attr({rx:Ys.barRadius,ry:Ys.barRadius,x:P,y:R,width:D,height:F}),this._vbarYMin=R+F/2,this._vbarTranslateMax=g-F):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var I=this.id,B=w-.5,O=k?_+D+.5:_+.5,$=b-.5,X=A?S+y+.5:S+.5,K=n._topdefs.selectAll("#"+I).data(A||k?[0]:[]);if(K.exit().remove(),K.enter().append("clipPath").attr("id",I).append("rect"),A||k?(this._clipRect=K.select("rect").attr({x:Math.floor(B),y:Math.floor($),width:Math.ceil(O)-Math.floor(B),height:Math.ceil(X)-Math.floor($)}),this.container.call(d5.setClipUrl,I,this.gd),this.bg.attr({x:s,y:u,width:l,height:c})):(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(d5.setClipUrl,null),delete this._clipRect),A||k){var G=ov.behavior.drag().on("dragstart",function(){ov.event.sourceEvent.preventDefault()}).on("drag",this._onBoxDrag.bind(this));this.container.on("wheel",null).on("wheel",this._onBoxWheel.bind(this)).on(".drag",null).call(G);var q=ov.behavior.drag().on("dragstart",function(){ov.event.sourceEvent.preventDefault(),ov.event.sourceEvent.stopPropagation()}).on("drag",this._onBarDrag.bind(this));A&&this.hbar.on(".drag",null).call(q),k&&this.vbar.on(".drag",null).call(q)}this.setTranslate(r,i)};Ys.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(d5.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)};Ys.prototype._onBoxDrag=function(){var t=this.translateX,r=this.translateY;this.hbar&&(t-=ov.event.dx),this.vbar&&(r-=ov.event.dy),this.setTranslate(t,r)};Ys.prototype._onBoxWheel=function(){var t=this.translateX,r=this.translateY;this.hbar&&(t+=ov.event.deltaY),this.vbar&&(r+=ov.event.deltaY),this.setTranslate(t,r)};Ys.prototype._onBarDrag=function(){var t=this.translateX,r=this.translateY;if(this.hbar){var i=t+this._hbarXMin,n=i+this._hbarTranslateMax,a=yL.constrain(ov.event.x,i,n),o=(a-i)/(n-i),s=this.position.w-this._box.w;t=o*s}if(this.vbar){var l=r+this._vbarYMin,u=l+this._vbarTranslateMax,c=yL.constrain(ov.event.y,l,u),f=(c-l)/(u-l),h=this.position.h-this._box.h;r=f*h}this.setTranslate(t,r)};Ys.prototype.setTranslate=function(t,r){var i=this.position.w-this._box.w,n=this.position.h-this._box.h;if(t=yL.constrain(t||0,0,i),r=yL.constrain(r||0,0,n),this.translateX=t,this.translateY=r,this.container.call(d5.setTranslate,this._box.l-this.position.l-t,this._box.t-this.position.t-r),this._clipRect&&this._clipRect.attr({x:Math.floor(this.position.l+t-.5),y:Math.floor(this.position.t+r-.5)}),this.hbar){var a=t/i;this.hbar.call(d5.setTranslate,t+a*this._hbarTranslateMax,r)}if(this.vbar){var o=r/n;this.vbar.call(d5.setTranslate,t,r+o*this._vbarTranslateMax)}}});var T5e=W((yVr,w5e)=>{"use strict";var p5=gi(),BM=Qo(),qM=ti(),v5=Qi(),L0=tt(),xL=ao(),l9t=Ra().arrayEditor,v5e=(Jl(),Pt(Kl)).LINE_SPACING,Ln=(gL(),Pt(vL)),u9t=d5e();w5e.exports=function(t){var r=t._fullLayout,i=L0.filterVisible(r[Ln.name]);function n(h){BM.autoMargin(t,b5e(h))}var a=r._menulayer.selectAll("g."+Ln.containerClassName).data(i.length>0?[0]:[]);if(a.enter().append("g").classed(Ln.containerClassName,!0).style("cursor","pointer"),a.exit().each(function(){p5.select(this).selectAll("g."+Ln.headerGroupClassName).each(n)}).remove(),i.length!==0){var o=a.selectAll("g."+Ln.headerGroupClassName).data(i,c9t);o.enter().append("g").classed(Ln.headerGroupClassName,!0);for(var s=L0.ensureSingle(a,"g",Ln.dropdownButtonGroupClassName,function(h){h.style("pointer-events","all")}),l=0;l{"use strict";var m9t=(gL(),Pt(vL));A5e.exports={moduleType:"component",name:m9t.name,layoutAttributes:cW(),supplyLayoutDefaults:c5e(),draw:T5e()}});var NM={};Jn(NM,{arrowOffsetX:()=>B9t,autoMarginIdRoot:()=>P9t,containerClassName:()=>x9t,currentValueClass:()=>D9t,currentValueInset:()=>cIt,currentValuePadding:()=>uIt,gripBgActiveColor:()=>Q9t,gripBgColor:()=>J9t,gripBorder:()=>X9t,gripBorderColor:()=>K9t,gripBorderWidth:()=>Z9t,gripHeight:()=>Y9t,gripRadius:()=>$9t,gripRectClass:()=>A9t,gripWidth:()=>W9t,groupClassName:()=>b9t,inputAreaClass:()=>_9t,inputProxyClass:()=>S9t,labelClass:()=>C9t,labelGroupClass:()=>k9t,labelOffset:()=>tIt,labelPadding:()=>eIt,labelsClass:()=>E9t,menuIndexAttrName:()=>L9t,minHeight:()=>R9t,minWidth:()=>I9t,minorTickColor:()=>sIt,minorTickLength:()=>lIt,minorTickOffset:()=>oIt,name:()=>y9t,railBgColor:()=>G9t,railBorder:()=>N9t,railBorderColor:()=>V9t,railBorderWidth:()=>U9t,railHeight:()=>F9t,railInset:()=>H9t,railRadius:()=>q9t,railRectClass:()=>w9t,railTouchRectClass:()=>T9t,railWidth:()=>O9t,stepInset:()=>j9t,textPadX:()=>z9t,tickColor:()=>iIt,tickLength:()=>aIt,tickOffset:()=>nIt,tickRectClass:()=>M9t,tickWidth:()=>rIt});var y9t,x9t,b9t,_9t,w9t,T9t,A9t,M9t,S9t,E9t,k9t,C9t,D9t,F9t,L9t,P9t,I9t,R9t,z9t,B9t,q9t,O9t,N9t,U9t,V9t,G9t,H9t,j9t,$9t,W9t,Y9t,X9t,Z9t,K9t,J9t,Q9t,eIt,tIt,rIt,iIt,nIt,aIt,oIt,sIt,lIt,uIt,cIt,UM=Ci(()=>{"use strict";y9t="sliders",x9t="slider-container",b9t="slider-group",_9t="slider-input-area",w9t="slider-rail-rect",T9t="slider-rail-touch-rect",A9t="slider-grip-rect",M9t="slider-tick-rect",S9t="slider-input-proxy",E9t="slider-labels",k9t="slider-label-group",C9t="slider-label",D9t="slider-current-value",F9t=5,L9t="slider-active-index",P9t="slider-",I9t=30,R9t=30,z9t=40,B9t=4,q9t=2,O9t=5,N9t=4,U9t=1,V9t="#bec8d9",G9t="#f8fafc",H9t=8,j9t=10,$9t=10,W9t=20,Y9t=20,X9t=20,Z9t=1,K9t="#bec8d9",J9t="#f6f8fa",Q9t="#dbdde0",eIt=8,tIt=0,rIt=1,iIt="#333",nIt=25,aIt=7,oIt=25,sIt="#333",lIt=4,uIt=8,cIt=0});var pW=W((bVr,k5e)=>{"use strict";var S5e=jo(),fIt=bD(),hIt=an().extendDeepAll,dIt=hs().overrideAll,pIt=dA(),E5e=Ra().templatedArray,Vb=(UM(),Pt(NM)),vIt=E5e("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}});k5e.exports=dIt(E5e("slider",{visible:{valType:"boolean",dflt:!0},active:{valType:"number",min:0,dflt:0},steps:vIt,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:hIt(fIt({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:pIt.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:S5e({})},font:S5e({}),activebgcolor:{valType:"color",dflt:Vb.gripBgActiveColor},bgcolor:{valType:"color",dflt:Vb.railBgColor},bordercolor:{valType:"color",dflt:Vb.railBorderColor},borderwidth:{valType:"number",min:0,dflt:Vb.railBorderWidth},ticklen:{valType:"number",min:0,dflt:Vb.tickLength},tickcolor:{valType:"color",dflt:Vb.tickColor},tickwidth:{valType:"number",min:0,dflt:1},minorticklen:{valType:"number",min:0,dflt:Vb.minorTickLength}}),"arraydraw","from-root")});var L5e=W((_Vr,F5e)=>{"use strict";var g5=tt(),C5e=tf(),D5e=pW(),gIt=(UM(),Pt(NM)),mIt=gIt.name,yIt=D5e.steps;F5e.exports=function(t,r){C5e(t,r,{name:mIt,handleItemDefaults:xIt})};function xIt(e,t,r){function i(f,h){return g5.coerce(e,t,D5e,f,h)}for(var n=C5e(e,t,{name:"steps",handleItemDefaults:bIt}),a=0,o=0;o{"use strict";var sv=gi(),bL=Qo(),i2=ti(),lv=Qi(),P0=tt(),_It=P0.strTranslate,VM=ao(),wIt=Ra().arrayEditor,na=(UM(),Pt(NM)),mW=(Jl(),Pt(Kl)),R5e=mW.LINE_SPACING,vW=mW.FROM_TL,gW=mW.FROM_BR;U5e.exports=function(t){var r=t._context.staticPlot,i=t._fullLayout,n=TIt(i,t),a=i._infolayer.selectAll("g."+na.containerClassName).data(n.length>0?[0]:[]);a.enter().append("g").classed(na.containerClassName,!0).style("cursor",r?null:"ew-resize");function o(c){c._commandObserver&&(c._commandObserver.remove(),delete c._commandObserver),bL.autoMargin(t,z5e(c))}if(a.exit().each(function(){sv.select(this).selectAll("g."+na.groupClassName).each(o)}).remove(),n.length!==0){var s=a.selectAll("g."+na.groupClassName).data(n,AIt);s.enter().append("g").classed(na.groupClassName,!0),s.exit().each(o).remove();for(var l=0;l0&&(s=s.transition().duration(t.transition.duration).ease(t.transition.easing)),s.attr("transform",_It(o-na.gripWidth*.5,t._dims.currentValueTotalHeight))}}function yW(e,t){var r=e._dims;return r.inputAreaStart+na.stepInset+(r.inputAreaLength-2*na.stepInset)*Math.min(1,Math.max(0,t))}function I5e(e,t){var r=e._dims;return Math.min(1,Math.max(0,(t-na.stepInset-r.inputAreaStart)/(r.inputAreaLength-2*na.stepInset-2*r.inputAreaStart)))}function FIt(e,t,r){var i=r._dims,n=P0.ensureSingle(e,"rect",na.railTouchRectClass,function(a){a.call(O5e,t,e,r).style("pointer-events","all")});n.attr({width:i.inputAreaLength,height:Math.max(i.inputAreaWidth,na.tickOffset+r.ticklen+i.labelHeight)}).call(i2.fill,r.bgcolor).attr("opacity",0),lv.setTranslate(n,0,i.currentValueTotalHeight)}function LIt(e,t){var r=t._dims,i=r.inputAreaLength-na.railInset*2,n=P0.ensureSingle(e,"rect",na.railRectClass);n.attr({width:i,height:na.railWidth,rx:na.railRadius,ry:na.railRadius,"shape-rendering":"crispEdges"}).call(i2.stroke,t.bordercolor).call(i2.fill,t.bgcolor).style("stroke-width",t.borderwidth+"px"),lv.setTranslate(n,na.railInset,(r.inputAreaWidth-na.railWidth)*.5+r.currentValueTotalHeight)}});var H5e=W((TVr,G5e)=>{"use strict";var PIt=(UM(),Pt(NM));G5e.exports={moduleType:"component",name:PIt.name,layoutAttributes:pW(),supplyLayoutDefaults:L5e(),draw:V5e()}});var wL=W((AVr,$5e)=>{"use strict";var j5e=Yl();$5e.exports={bgcolor:{valType:"color",dflt:j5e.background,editType:"plot"},bordercolor:{valType:"color",dflt:j5e.defaultLine,editType:"plot"},borderwidth:{valType:"integer",dflt:0,min:0,editType:"plot"},autorange:{valType:"boolean",dflt:!0,editType:"calc",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},range:{valType:"info_array",items:[{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}},{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}}],editType:"calc",impliedEdits:{autorange:!1}},thickness:{valType:"number",dflt:.15,min:0,max:1,editType:"plot"},visible:{valType:"boolean",dflt:!0,editType:"calc"},editType:"calc"}});var xW=W((MVr,W5e)=>{"use strict";W5e.exports={_isSubplotObj:!0,rangemode:{valType:"enumerated",values:["auto","fixed","match"],dflt:"match",editType:"calc"},range:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},editType:"calc"}});var TL={};Jn(TL,{bgClassName:()=>zIt,containerClassName:()=>RIt,extraPad:()=>aRt,grabAreaCursor:()=>eRt,grabAreaFill:()=>QIt,grabAreaMaxClassName:()=>jIt,grabAreaMinClassName:()=>VIt,grabAreaWidth:()=>tRt,grabberMaxClassName:()=>HIt,grabberMinClassName:()=>UIt,handleMaxClassName:()=>$It,handleMinClassName:()=>GIt,handleRadius:()=>iRt,handleStrokeWidth:()=>nRt,handleWidth:()=>rRt,maskColor:()=>XIt,maskMaxClassName:()=>OIt,maskMaxOppAxisClassName:()=>YIt,maskMinClassName:()=>qIt,maskMinOppAxisClassName:()=>WIt,maskOppAxisColor:()=>ZIt,name:()=>IIt,rangePlotClassName:()=>BIt,slideBoxClassName:()=>NIt,slideBoxCursor:()=>JIt,slideBoxFill:()=>KIt});var IIt,RIt,zIt,BIt,qIt,OIt,NIt,UIt,VIt,GIt,HIt,jIt,$It,WIt,YIt,XIt,ZIt,KIt,JIt,QIt,eRt,tRt,rRt,iRt,nRt,aRt,AL=Ci(()=>{"use strict";IIt="rangeslider",RIt="rangeslider-container",zIt="rangeslider-bg",BIt="rangeslider-rangeplot",qIt="rangeslider-mask-min",OIt="rangeslider-mask-max",NIt="rangeslider-slidebox",UIt="rangeslider-grabber-min",VIt="rangeslider-grabarea-min",GIt="rangeslider-handle-min",HIt="rangeslider-grabber-max",jIt="rangeslider-grabarea-max",$It="rangeslider-handle-max",WIt="rangeslider-mask-min-opp-axis",YIt="rangeslider-mask-max-opp-axis",XIt="rgba(0,0,0,0.4)",ZIt="rgba(0,0,0,0.2)",KIt="transparent",JIt="ew-resize",QIt="transparent",eRt="col-resize",tRt=10,rRt=4,iRt=1,nRt=1,aRt=15});var Z5e=W(SL=>{"use strict";var oRt=Ls(),sRt=ao(),Y5e=(AL(),Pt(TL)),lRt=(Jl(),Pt(Kl)).LINE_SPACING,ML=Y5e.name;function X5e(e){var t=e&&e[ML];return t&&t.visible}SL.isVisible=X5e;SL.makeData=function(e){for(var t=oRt.list({_fullLayout:e},"x",!0),r=e.margin,i=[],n=0;n{"use strict";var EL=tt(),K5e=Ra(),J5e=Ls(),uRt=wL(),cRt=xW();Q5e.exports=function(t,r,i){var n=t[i],a=r[i];if(!(n.rangeslider||r._requestRangeslider[a._id]))return;EL.isPlainObject(n.rangeslider)||(n.rangeslider={});var o=n.rangeslider,s=K5e.newContainer(a,"rangeslider");function l(S,x){return EL.coerce(o,s,uRt,S,x)}var u,c;function f(S,x){return EL.coerce(u,c,cRt,S,x)}var h=l("visible");if(h){l("bgcolor",r.plot_bgcolor),l("bordercolor"),l("borderwidth"),l("thickness"),l("autorange",!a.isValidRange(o.range)),l("range");var p=r._subplots;if(p)for(var d=p.cartesian.filter(function(S){return S.slice(0,Math.max(0,S.indexOf("y")))===J5e.name2id(i)}).map(function(S){return S.slice(S.indexOf("y"),S.length)}),v=EL.simpleMap(d,J5e.id2name),m=0;m{"use strict";var fRt=Ls().list,hRt=Yp().getAutoRange,dRt=(AL(),Pt(TL));t4e.exports=function(t){for(var r=fRt(t,"x",!0),i=0;i{"use strict";var kL=gi(),pRt=xi(),vRt=Qo(),bl=tt(),CL=bl.strTranslate,n4e=Qi(),n2=ti(),gRt=pb(),mRt=xl(),bW=Ls(),yRt=Ef(),xRt=Xp(),Aa=(AL(),Pt(TL));a4e.exports=function(e){for(var t=e._fullLayout,r=t._rangeSliderData,i=0;i=L.max)P=M[R+1];else if(F=L.pmax)P=M[R+1];else if(F0?e.touches[0].clientX:0}function bRt(e,t,r,i){if(t._context.staticPlot)return;var n=e.select("rect."+Aa.slideBoxClassName).node(),a=e.select("rect."+Aa.grabAreaMinClassName).node(),o=e.select("rect."+Aa.grabAreaMaxClassName).node();function s(){var l=kL.event,u=l.target,c=i4e(l),f=c-e.node().getBoundingClientRect().left,h=i.d2p(r._rl[0]),p=i.d2p(r._rl[1]),d=yRt.coverSlip();this.addEventListener("touchmove",v),this.addEventListener("touchend",m),d.addEventListener("mousemove",v),d.addEventListener("mouseup",m);function v(g){var w=i4e(g),_=+w-c,b,S,x;switch(u){case n:if(x="ew-resize",h+_>r._length||p+_<0)return;b=h+_,S=p+_;break;case a:if(x="col-resize",h+_>r._length)return;b=h+_,S=p;break;case o:if(x="col-resize",p+_<0)return;b=h,S=p+_;break;default:x="ew-resize",b=f,S=f+_;break}if(S{"use strict";var DRt=tt(),FRt=wL(),LRt=xW(),_W=Z5e();s4e.exports={moduleType:"component",name:"rangeslider",schema:{subplots:{xaxis:{rangeslider:DRt.extendFlat({},FRt,{yaxis:LRt})}}},layoutAttributes:wL(),handleDefaults:e4e(),calcAutorange:r4e(),draw:o4e(),isVisible:_W.isVisible,makeData:_W.makeData,autoMarginOpts:_W.autoMarginOpts}});var DL=W((FVr,c4e)=>{"use strict";var PRt=jo(),u4e=Yl(),IRt=Ra().templatedArray,RRt=IRt("button",{visible:{valType:"boolean",dflt:!0,editType:"plot"},step:{valType:"enumerated",values:["month","year","day","hour","minute","second","all"],dflt:"month",editType:"plot"},stepmode:{valType:"enumerated",values:["backward","todate"],dflt:"backward",editType:"plot"},count:{valType:"number",min:0,dflt:1,editType:"plot"},label:{valType:"string",editType:"plot"},editType:"plot"});c4e.exports={visible:{valType:"boolean",editType:"plot"},buttons:RRt,x:{valType:"number",min:-2,max:3,editType:"plot"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"plot"},y:{valType:"number",min:-2,max:3,editType:"plot"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"bottom",editType:"plot"},font:PRt({editType:"plot"}),bgcolor:{valType:"color",dflt:u4e.lightLine,editType:"plot"},activecolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:u4e.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"}});var wW={};Jn(wW,{darkAmount:()=>URt,lightAmount:()=>NRt,minButtonWidth:()=>BRt,rx:()=>qRt,ry:()=>ORt,yPad:()=>zRt});var zRt,BRt,qRt,ORt,NRt,URt,TW=Ci(()=>{"use strict";zRt=.02,BRt=30,qRt=3,ORt=3,NRt=25,URt=10});var d4e=W((LVr,h4e)=>{"use strict";var FL=tt(),VRt=ti(),GRt=Ra(),HRt=tf(),f4e=DL(),AW=(TW(),Pt(wW));h4e.exports=function(t,r,i,n,a){var o=t.rangeselector||{},s=GRt.newContainer(r,"rangeselector");function l(p,d){return FL.coerce(o,s,f4e,p,d)}var u=HRt(o,s,{name:"buttons",handleItemDefaults:jRt,calendar:a}),c=l("visible",u.length>0);if(c){var f=$Rt(r,i,n);l("x",f[0]),l("y",f[1]),FL.noneOrAll(t,r,["x","y"]),l("xanchor"),l("yanchor"),FL.coerceFont(l,"font",i.font);var h=l("bgcolor");l("activecolor",VRt.contrast(h,AW.lightAmount,AW.darkAmount)),l("bordercolor"),l("borderwidth")}};function jRt(e,t,r,i){var n=i.calendar;function a(l,u){return FL.coerce(e,t,f4e.buttons,l,u)}var o=a("visible");if(o){var s=a("step");s!=="all"&&(n&&n!=="gregorian"&&(s==="month"||s==="year")?t.stepmode="backward":a("stepmode"),a("count")),a("label")}}function $Rt(e,t,r){for(var i=r.filter(function(s){return t[s].anchor===e._id}),n=0,a=0;a{"use strict";var WRt=JN(),YRt=tt().titleCase;p4e.exports=function(t,r){var i=t._name,n={};if(r.step==="all")n[i+".autorange"]=!0;else{var a=XRt(t,r);n[i+".range[0]"]=a[0],n[i+".range[1]"]=a[1]}return n};function XRt(e,t){var r=e.range,i=new Date(e.r2l(r[1])),n=t.step,a=WRt["utc"+YRt(n)],o=t.count,s;switch(t.stepmode){case"backward":s=e.l2r(+a.offset(i,-o));break;case"todate":var l=a.offset(i,-o);s=e.l2r(+a.ceil(l));break}var u=r[1];return[s,u]}});var T4e=W((IVr,w4e)=>{"use strict";var PL=gi(),ZRt=xi(),KRt=Qo(),g4e=ti(),_4e=Qi(),im=tt(),m4e=im.strTranslate,LL=ao(),JRt=Ls(),EW=(Jl(),Pt(Kl)),y4e=EW.LINE_SPACING,x4e=EW.FROM_TL,b4e=EW.FROM_BR,SW=(TW(),Pt(wW)),QRt=v4e();w4e.exports=function(t){var r=t._fullLayout,i=r._infolayer.selectAll(".rangeselector").data(ezt(t),tzt);i.enter().append("g").classed("rangeselector",!0),i.exit().remove(),i.style({cursor:"pointer","pointer-events":"all"}),i.each(function(n){var a=PL.select(this),o=n,s=o.rangeselector,l=a.selectAll("g.button").data(im.filterVisible(s.buttons));l.enter().append("g").classed("button",!0),l.exit().remove(),l.each(function(u){var c=PL.select(this),f=QRt(o,u);u._isActive=rzt(o,u,f),c.call(MW,s,u),c.call(nzt,s,u,t),c.on("click",function(){t._dragged||ZRt.call("_guiRelayout",t,f)}),c.on("mouseover",function(){u._isHovered=!0,c.call(MW,s,u)}),c.on("mouseout",function(){u._isHovered=!1,c.call(MW,s,u)})}),ozt(t,l,s,o._name,a)})};function ezt(e){for(var t=JRt.list(e,"x",!0),r=[],i=0;i{"use strict";A4e.exports={moduleType:"component",name:"rangeselector",schema:{subplots:{xaxis:{rangeselector:DL()}}},layoutAttributes:DL(),handleDefaults:d4e(),draw:T4e()}});var ds=W(kW=>{"use strict";var S4e=an().extendFlat;kW.attributes=function(e,t){e=e||{},t=t||{};var r={valType:"info_array",editType:e.editType,items:[{valType:"number",min:0,max:1,editType:e.editType},{valType:"number",min:0,max:1,editType:e.editType}],dflt:[0,1]},i=e.name?e.name+" ":"",n=e.trace?"trace":"subplot",a=t.description?" "+t.description:"",o={x:S4e({},r,{}),y:S4e({},r,{}),editType:e.editType};return e.noGridCell||(o.row={valType:"integer",min:0,dflt:0,editType:e.editType},o.column={valType:"integer",min:0,dflt:0,editType:e.editType}),o};kW.defaults=function(e,t,r,i){var n=i&&i.x||[0,1],a=i&&i.y||[0,1],o=t.grid;if(o){var s=r("domain.column");s!==void 0&&(s{"use strict";var szt=tt(),lzt=(fw(),Pt(fA)).counter,uzt=ds().attributes,E4e=(Zl(),Pt(Xl)).idRegex,czt=Ra(),CW={rows:{valType:"integer",min:1,editType:"plot"},roworder:{valType:"enumerated",values:["top to bottom","bottom to top"],dflt:"top to bottom",editType:"plot"},columns:{valType:"integer",min:1,editType:"plot"},subplots:{valType:"info_array",freeLength:!0,dimensions:2,items:{valType:"enumerated",values:[lzt("xy").toString(),""],editType:"plot"},editType:"plot"},xaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[E4e.x.toString(),""],editType:"plot"},editType:"plot"},yaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[E4e.y.toString(),""],editType:"plot"},editType:"plot"},pattern:{valType:"enumerated",values:["independent","coupled"],dflt:"coupled",editType:"plot"},xgap:{valType:"number",min:0,max:1,editType:"plot"},ygap:{valType:"number",min:0,max:1,editType:"plot"},domain:uzt({name:"grid",editType:"plot",noGridCell:!0},{}),xside:{valType:"enumerated",values:["bottom","bottom plot","top plot","top"],dflt:"bottom plot",editType:"plot"},yside:{valType:"enumerated",values:["left","left plot","right plot","right"],dflt:"left plot",editType:"plot"},editType:"plot"};function IL(e,t,r){var i=t[r+"axes"],n=Object.keys((e._splomAxes||{})[r]||{});if(Array.isArray(i))return i;if(n.length)return n}function fzt(e,t){var r=e.grid||{},i=IL(t,r,"x"),n=IL(t,r,"y");if(!e.grid&&!i&&!n)return;var a=Array.isArray(r.subplots)&&Array.isArray(r.subplots[0]),o=Array.isArray(i),s=Array.isArray(n),l=o&&i!==r.xaxes&&s&&n!==r.yaxes,u,c;a?(u=r.subplots.length,c=r.subplots[0].length):(s&&(u=n.length),o&&(c=i.length));var f=czt.newContainer(t,"grid");function h(x,A){return szt.coerce(r,f,CW,x,A)}var p=h("rows",u),d=h("columns",c);if(!(p*d>1)){delete t.grid;return}if(!a&&!o&&!s){var v=h("pattern")==="independent";v&&(a=!0)}f._hasSubplotGrid=a;var m=h("roworder"),g=m==="top to bottom",w=a?.2:.1,_=a?.3:.1,b,S;l&&t._splomGridDflt&&(b=t._splomGridDflt.xside,S=t._splomGridDflt.yside),f._domains={x:k4e("x",h,w,b,d),y:k4e("y",h,_,S,p,g)}}function k4e(e,t,r,i,n,a){var o=t(e+"gap",r),s=t("domain."+e);t(e+"side",i);for(var l=new Array(n),u=s[0],c=(s[1]-u)/(n-o),f=c*(1-o),h=0;h{"use strict";F4e.exports={visible:{valType:"boolean",editType:"calc"},type:{valType:"enumerated",values:["percent","constant","sqrt","data"],editType:"calc"},symmetric:{valType:"boolean",editType:"calc"},array:{valType:"data_array",editType:"calc"},arrayminus:{valType:"data_array",editType:"calc"},value:{valType:"number",min:0,dflt:10,editType:"calc"},valueminus:{valType:"number",min:0,dflt:10,editType:"calc"},traceref:{valType:"integer",min:0,dflt:0,editType:"style"},tracerefminus:{valType:"integer",min:0,dflt:0,editType:"style"},copy_ystyle:{valType:"boolean",editType:"plot"},copy_zstyle:{valType:"boolean",editType:"style"},color:{valType:"color",editType:"style"},thickness:{valType:"number",min:0,dflt:2,editType:"style"},width:{valType:"number",min:0,editType:"plot"},editType:"calc"}});var I4e=W((OVr,P4e)=>{"use strict";var L4e=hn(),dzt=xi(),pzt=tt(),vzt=Ra(),gzt=FW();P4e.exports=function(e,t,r,i){var n="error_"+i.axis,a=vzt.newContainer(t,n),o=e[n]||{};function s(d,v){return pzt.coerce(o,a,gzt,d,v)}var l=o.array!==void 0||o.value!==void 0||o.type==="sqrt",u=s("visible",l);if(u!==!1){var c=s("type","array"in o?"data":"percent"),f=!0;c!=="sqrt"&&(f=s("symmetric",!((c==="data"?"arrayminus":"valueminus")in o))),c==="data"?(s("array"),s("traceref"),f||(s("arrayminus"),s("tracerefminus"))):(c==="percent"||c==="constant")&&(s("value"),f||s("valueminus"));var h="copy_"+i.inherit+"style";if(i.inherit){var p=t["error_"+i.inherit];(p||{}).visible&&s(h,!(o.color||L4e(o.thickness)||L4e(o.width)))}(!i.inherit||!a[h])&&(s("color",r),s("thickness"),s("width",dzt.traceIs(t,"gl3d")?0:4))}}});var LW=W((NVr,z4e)=>{"use strict";z4e.exports=function(t){var r=t.type,i=t.symmetric;if(r==="data"){var n=t.array||[];if(i)return function(u,c){var f=+n[c];return[f,f]};var a=t.arrayminus||[];return function(u,c){var f=+n[c],h=+a[c];return!isNaN(f)||!isNaN(h)?[h||0,f||0]:[NaN,NaN]}}else{var o=R4e(r,t.value),s=R4e(r,t.valueminus);return i||t.valueminus===void 0?function(u){var c=o(u);return[c,c]}:function(u){return[s(u),o(u)]}}};function R4e(e,t){if(e==="percent")return function(r){return Math.abs(r*t/100)};if(e==="constant")return function(){return Math.abs(t)};if(e==="sqrt")return function(r){return Math.sqrt(Math.abs(r))}}});var O4e=W((UVr,q4e)=>{"use strict";var PW=hn(),mzt=xi(),IW=Yi(),yzt=tt(),xzt=LW();q4e.exports=function(t){for(var r=t.calcdata,i=0;i{"use strict";var N4e=gi(),a2=hn(),bzt=Qi(),_zt=Wo();U4e.exports=function(t,r,i,n){var a,o=i.xaxis,s=i.yaxis,l=n&&n.duration>0,u=t._context.staticPlot;r.each(function(c){var f=c[0].trace,h=f.error_x||{},p=f.error_y||{},d;f.ids&&(d=function(w){return w.id});var v=_zt.hasMarkers(f)&&f.marker.maxdisplayed>0;!p.visible&&!h.visible&&(c=[]);var m=N4e.select(this).selectAll("g.errorbar").data(c,d);if(m.exit().remove(),!!c.length){h.visible||m.selectAll("path.xerror").remove(),p.visible||m.selectAll("path.yerror").remove(),m.style("opacity",1);var g=m.enter().append("g").classed("errorbar",!0);l&&g.style("opacity",0).transition().duration(n.duration).style("opacity",1),bzt.setClipUrl(m,i.layerClipId,t),m.each(function(w){var _=N4e.select(this),b=wzt(w,o,s);if(!(v&&!w.vis)){var S,x=_.select("path.yerror");if(p.visible&&a2(b.x)&&a2(b.yh)&&a2(b.ys)){var A=p.width;S="M"+(b.x-A)+","+b.yh+"h"+2*A+"m-"+A+",0V"+b.ys,b.noYS||(S+="m-"+A+",0h"+2*A),a=!x.size(),a?x=_.append("path").style("vector-effect",u?"none":"non-scaling-stroke").classed("yerror",!0):l&&(x=x.transition().duration(n.duration).ease(n.easing)),x.attr("d",S)}else x.remove();var T=_.select("path.xerror");if(h.visible&&a2(b.y)&&a2(b.xh)&&a2(b.xs)){var y=(h.copy_ystyle?p:h).width;S="M"+b.xh+","+(b.y-y)+"v"+2*y+"m0,-"+y+"H"+b.xs,b.noXS||(S+="m0,-"+y+"v"+2*y),a=!T.size(),a?T=_.append("path").style("vector-effect",u?"none":"non-scaling-stroke").classed("xerror",!0):l&&(T=T.transition().duration(n.duration).ease(n.easing)),T.attr("d",S)}else T.remove()}})}})};function wzt(e,t,r){var i={x:t.c2p(e.x),y:r.c2p(e.y)};return e.yh!==void 0&&(i.yh=r.c2p(e.yh),i.ys=r.c2p(e.ys),a2(i.ys)||(i.noYS=!0,i.ys=r.c2p(e.ys,!0))),e.xh!==void 0&&(i.xh=t.c2p(e.xh),i.xs=t.c2p(e.xs),a2(i.xs)||(i.noXS=!0,i.xs=t.c2p(e.xs,!0))),i}});var j4e=W((GVr,H4e)=>{"use strict";var Tzt=gi(),G4e=ti();H4e.exports=function(t){t.each(function(r){var i=r[0].trace,n=i.error_y||{},a=i.error_x||{},o=Tzt.select(this);o.selectAll("path.yerror").style("stroke-width",n.thickness+"px").call(G4e.stroke,n.color),a.copy_ystyle&&(a=n),o.selectAll("path.xerror").style("stroke-width",a.thickness+"px").call(G4e.stroke,a.color)})}});var Y4e=W((HVr,W4e)=>{"use strict";var GM=tt(),$4e=hs().overrideAll,HM=FW(),Gb={error_x:GM.extendFlat({},HM),error_y:GM.extendFlat({},HM)};delete Gb.error_x.copy_zstyle;delete Gb.error_y.copy_zstyle;delete Gb.error_y.copy_ystyle;var jM={error_x:GM.extendFlat({},HM),error_y:GM.extendFlat({},HM),error_z:GM.extendFlat({},HM)};delete jM.error_x.copy_ystyle;delete jM.error_y.copy_ystyle;delete jM.error_z.copy_ystyle;delete jM.error_z.copy_zstyle;W4e.exports={moduleType:"component",name:"errorbars",schema:{traces:{scatter:Gb,bar:Gb,histogram:Gb,scatter3d:$4e(jM,"calc","nested"),scattergl:$4e(Gb,"calc","nested")}},supplyDefaults:I4e(),calc:O4e(),makeComputeError:LW(),plot:V4e(),style:j4e(),hoverInfo:Azt};function Azt(e,t,r){(t.error_y||{}).visible&&(r.yerr=e.yh-e.y,t.error_y.symmetric||(r.yerrneg=e.y-e.ys)),(t.error_x||{}).visible&&(r.xerr=e.xh-e.x,t.error_x.symmetric||(r.xerrneg=e.x-e.xs))}});var X4e={};Jn(X4e,{cn:()=>Mzt});var Mzt,Z4e=Ci(()=>{"use strict";Mzt={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"}});var nTe=W((jVr,iTe)=>{"use strict";var o2=gi(),zL=Qo(),K4e=xi(),nm=Yi(),RL=Ef(),Rd=tt(),cv=Rd.strTranslate,rTe=an().extendFlat,RW=Xp(),uv=Qi(),m5=ti(),Szt=pb(),Ezt=ao(),kzt=Sc().flipScale,Czt=PM(),Dzt=aL(),Fzt=ac(),BW=(Jl(),Pt(Kl)),J4e=BW.LINE_SPACING,Q4e=BW.FROM_TL,eTe=BW.FROM_BR,Rs=(Z4e(),Pt(X4e)).cn;function Lzt(e){var t=e._fullLayout,r=t._infolayer.selectAll("g."+Rs.colorbar).data(Pzt(e),function(i){return i._id});r.enter().append("g").attr("class",function(i){return i._id}).classed(Rs.colorbar,!0),r.each(function(i){var n=o2.select(this);Rd.ensureSingle(n,"rect",Rs.cbbg),Rd.ensureSingle(n,"g",Rs.cbfills),Rd.ensureSingle(n,"g",Rs.cblines),Rd.ensureSingle(n,"g",Rs.cbaxis,function(o){o.classed(Rs.crisp,!0)}),Rd.ensureSingle(n,"g",Rs.cbtitleunshift,function(o){o.append("g").classed(Rs.cbtitle,!0)}),Rd.ensureSingle(n,"rect",Rs.cboutline);var a=Izt(n,i,e);a&&a.then&&(e._promises||[]).push(a),e._context.edits.colorbarPosition&&Rzt(n,i,e)}),r.exit().each(function(i){zL.autoMargin(e,i._id)}).remove(),r.order()}function Pzt(e){var t=e._fullLayout,r=e.calcdata,i=[],n,a,o,s;function l(_){return rTe(_,{_fillcolor:null,_line:{color:null,width:null,dash:null},_levels:{start:null,end:null,size:null},_filllevels:null,_fillgradient:null,_zrange:null})}function u(){typeof s.calc=="function"?s.calc(e,o,n):(n._fillgradient=a.reversescale?kzt(a.colorscale):a.colorscale,n._zrange=[a[s.min],a[s.max]])}for(var c=0;c[Math.min(e[0]+t,e[1]),e[1]],tTe=(e,t)=>[e[0],Math.max(e[1]-t,e[0])];function Izt(e,t,r){var i=t.orientation==="v",n=t.len,a=t.lenmode,o=t.thickness,s=t.thicknessmode,l=t.outlinewidth,u=t.borderwidth,c=t.bgcolor,f=t.xanchor,h=t.yanchor,p=t.xpad,d=t.ypad,v=t.x,m=i?t.y:1-t.y,g=t.yref==="paper",w=t.xref==="paper",_=r._fullLayout,b=_._size,S=t._fillcolor,x=t._line,A=t.title,T=A.side,y=t._zrange||o2.extent((typeof S=="function"?S:x.color).domain()),E=typeof x.color=="function"?x.color:function(){return x.color},M=typeof S=="function"?S:function(){return S},C=t._levels,k=zzt(r,t,y),D=k.fill,F=k.line,P=Math.round(o*(s==="fraction"?i?b.w:b.h:1)),R=P/(i?b.w:b.h),L=Math.round(n*(a==="fraction"?i?b.h:b.w:1)),I=L/(i?b.h:b.w),B=w?b.w:r._fullLayout.width,O=g?b.h:r._fullLayout.height,$=Math.round(i?v*B+p:m*O+d),X={center:.5,right:1}[f]||0,K={top:1,middle:.5}[h]||0,G=i?v-X*R:m-K*R,q=i?m-K*I:v-X*I,J=Math.round(i?O*(1-q):B*q);t._lenFrac=I,t._thickFrac=R,t._uFrac=G,t._vFrac=q;var N=t._axis=Bzt(r,t,y);N.position=R+(i?v+p/b.w:m+d/b.h);var V=["top","bottom"].indexOf(T)!==-1;if(i&&V&&(N.title.side=T,N.titlex=v+p/b.w,N.titley=q+(A.side==="top"?I-d/b.h:d/b.h)),!i&&!V&&(N.title.side=T,N.titley=m+d/b.h,N.titlex=q+p/b.w),x.color&&t.tickmode==="auto"){N.tickmode="linear",N.tick0=C.start;var Y=C.size,H=Rd.constrain(L/50,4,15)+1,j=(y[1]-y[0])/((t.nticks||H)*Y);if(j>1){var Q=Math.pow(10,Math.floor(Math.log(j)/Math.LN10));Y*=Q*Rd.roundUp(j/Q,[2,5,10]),(Math.abs(C.start)/C.size+1e-6)%1<2e-6&&(N.tick0=0)}N.dtick=Y}var te=i?d/b.h:p/b.w;N.domain=tTe(zW([q,q+I],te),te),N.setScale(),e.attr("transform",cv(Math.round(b.l),Math.round(b.t)));var ue=e.select("."+Rs.cbtitleunshift).attr("transform",cv(-Math.round(b.l),-Math.round(b.t))),ge=N.ticklabelposition,Ee=N.title.font.size,xe=e.select("."+Rs.cbaxis),ce,oe=0,Se=0;function be(re,pe){var Te={propContainer:N,propName:t._propPrefix+"title.text",traceIndex:t._traceIndex,_meta:t._meta,placeholder:_._dfltTitle.colorbar,containerGroup:e.select("."+Rs.cbtitle)},Ce=re.charAt(0)==="h"?re.slice(1):"h"+re;e.selectAll("."+Ce+",."+Ce+"-math-group").remove(),Szt.draw(r,re,rTe(Te,pe||{}))}function fe(){if(i&&V||!i&&!V){var re,pe;T==="top"&&(re=p+b.l+B*v,pe=d+b.t+O*(1-q-I)+3+Ee*.75),T==="bottom"&&(re=p+b.l+B*v,pe=d+b.t+O*(1-q)-3-Ee*.25),T==="right"&&(pe=d+b.t+O*m+3+Ee*.75,re=p+b.l+B*q),be(N._id+"title",{attributes:{x:re,y:pe,"text-anchor":i?"start":"middle"}})}}function ee(){if(i&&!V||!i&&V){var re=N.position||0,pe=N._offset+N._length/2,Te,Ce;if(T==="right")Ce=pe,Te=b.l+B*re+10+Ee*(N.showticklabels?1:.5);else if(Te=pe,T==="bottom"&&(Ce=b.t+O*re+10+(ge.indexOf("inside")===-1?N.tickfont.size:0)+(N.ticks!=="inside"&&t.ticklen||0)),T==="top"){var ze=A.text.split("
").length;Ce=b.t+O*re+10-P-J4e*Ee*ze}be((i?"h":"v")+N._id+"title",{avoid:{selection:o2.select(r).selectAll("g."+N._id+"tick"),side:T,offsetTop:i?0:b.t,offsetLeft:i?b.l:0,maxShift:i?_.width:_.height},attributes:{x:Te,y:Ce,"text-anchor":"middle"},transform:{rotate:i?-90:0,offset:0}})}}function ae(){if(!i&&!V||i&&V){var re=e.select("."+Rs.cbtitle),pe=re.select("text"),Te=[-l/2,l/2],Ce=re.select(".h"+N._id+"title-math-group").node(),ze=15.6;pe.node()&&(ze=parseInt(pe.node().style.fontSize,10)*J4e);var we;if(Ce?(we=uv.bBox(Ce),Se=we.width,oe=we.height,oe>ze&&(Te[1]-=(oe-ze)/2)):pe.node()&&!pe.classed(Rs.jsPlaceholder)&&(we=uv.bBox(pe.node()),Se=we.width,oe=we.height),i){if(oe){if(oe+=5,T==="top")N.domain=tTe(N.domain,oe/b.h),Te[1]*=-1;else{N.domain=zW(N.domain,oe/b.h);var me=Ezt.lineCount(pe);Te[1]+=(1-me)*ze}re.attr("transform",cv(Te[0],Te[1])),N.setScale()}}else Se&&(T==="right"&&(N.domain=zW(N.domain,(Se+Ee/2)/b.w)),re.attr("transform",cv(Te[0],Te[1])),N.setScale())}e.selectAll("."+Rs.cbfills+",."+Rs.cblines).attr("transform",i?cv(0,Math.round(b.h*(1-N.domain[1]))):cv(Math.round(b.w*N.domain[0]),0)),xe.attr("transform",i?cv(0,Math.round(-b.t)):cv(Math.round(-b.l),0));var Le=e.select("."+Rs.cbfills).selectAll("rect."+Rs.cbfill).attr("style","").data(D);Le.enter().append("rect").classed(Rs.cbfill,!0).attr("style",""),Le.exit().remove();var Ne=y.map(N.c2p).map(Math.round).sort(function(St,Ke){return St-Ke});Le.each(function(St,Ke){var bt=[Ke===0?y[0]:(D[Ke]+D[Ke-1])/2,Ke===D.length-1?y[1]:(D[Ke]+D[Ke+1])/2].map(N.c2p).map(Math.round);i&&(bt[1]=Rd.constrain(bt[1]+(bt[1]>bt[0])?1:-1,Ne[0],Ne[1]));var pt=o2.select(this).attr(i?"x":"y",$).attr(i?"y":"x",o2.min(bt)).attr(i?"width":"height",Math.max(P,2)).attr(i?"height":"width",Math.max(o2.max(bt)-o2.min(bt),2));if(t._fillgradient)uv.gradient(pt,r,t._id,i?"vertical":"horizontalreversed",t._fillgradient,"fill");else{var Oe=M(St).replace("e-","");pt.attr("fill",m5.hexString(Oe))}});var Je=e.select("."+Rs.cblines).selectAll("path."+Rs.cbline).data(x.color&&x.width?F:[]);Je.enter().append("path").classed(Rs.cbline,!0),Je.exit().remove(),Je.each(function(St){var Ke=$,bt=Math.round(N.c2p(St))+x.width/2%1;o2.select(this).attr("d","M"+(i?Ke+","+bt:bt+","+Ke)+(i?"h":"v")+P).call(uv.lineGroupStyle,x.width,E(St),x.dash)}),xe.selectAll("g."+N._id+"tick,path").remove();var rt=$+P+(l||0)/2-(t.ticks==="outside"?1:0),mt=nm.calcTicks(N),dt=nm.getTickSigns(N)[2];return nm.drawTicks(r,N,{vals:N.ticks==="inside"?nm.clipEnds(N,mt):mt,layer:xe,path:nm.makeTickPath(N,rt,dt),transFn:nm.makeTransTickFn(N)}),nm.drawLabels(r,N,{vals:mt,layer:xe,transFn:nm.makeTransTickLabelFn(N),labelFns:nm.makeLabelFns(N,rt)})}function _e(){var re,pe=P+l/2;ge.indexOf("inside")===-1&&(re=uv.bBox(xe.node()),pe+=i?re.width:re.height),ce=ue.select("text");var Te=0,Ce=i&&T==="top",ze=!i&&T==="right",we=0;if(ce.node()&&!ce.classed(Rs.jsPlaceholder)){var me,Le=ue.select(".h"+N._id+"title-math-group").node();Le&&(i&&V||!i&&!V)?(re=uv.bBox(Le),Te=re.width,me=re.height):(re=uv.bBox(ue.node()),Te=re.right-b.l-(i?$:J),me=re.bottom-b.t-(i?J:$),!i&&T==="top"&&(pe+=re.height,we=re.height)),ze&&(ce.attr("transform",cv(Te/2+Ee/2,0)),Te*=2),pe=Math.max(pe,i?Te:me)}var Ne=(i?p:d)*2+pe+u+l/2,Je=0;!i&&A.text&&h==="bottom"&&m<=0&&(Je=Ne/2,Ne+=Je,we+=Je),_._hColorbarMoveTitle=Je,_._hColorbarMoveCBTitle=we;var rt=u+l,mt=(i?$:J)-rt/2-(i?p:0),dt=(i?J:$)-(i?L:d+we-Je);e.select("."+Rs.cbbg).attr("x",mt).attr("y",dt).attr(i?"width":"height",Math.max(Ne-Je,2)).attr(i?"height":"width",Math.max(L+rt,2)).call(m5.fill,c).call(m5.stroke,t.bordercolor).style("stroke-width",u);var St=ze?Math.max(Te-10,0):0;e.selectAll("."+Rs.cboutline).attr("x",(i?$:J+p)+St).attr("y",(i?J+d-L:$)+(Ce?oe:0)).attr(i?"width":"height",Math.max(P,2)).attr(i?"height":"width",Math.max(L-(i?2*d+oe:2*p+St),2)).call(m5.stroke,t.outlinecolor).style({fill:"none","stroke-width":l});var Ke=i?X*Ne:0,bt=i?0:(1-K)*Ne-we;if(Ke=w?b.l-Ke:-Ke,bt=g?b.t-bt:-bt,e.attr("transform",cv(Ke,bt)),!i&&(u||m5.opacity(c)&&!m5.equals(_.paper_bgcolor,c))){var pt=xe.selectAll("text"),Oe=pt[0].length,Ue=e.select("."+Rs.cbbg).node(),je=uv.bBox(Ue),$e=uv.getTranslate(e),Ie=2;pt.each(function(Cr,Ge){var Qe=0,nt=Oe-1;if(Ge===Qe||Ge===nt){var gt=uv.bBox(this),ht=uv.getTranslate(this),Ft;if(Ge===nt){var hr=gt.right+ht.x,Ut=je.right+$e.x+J-u-Ie+v;Ft=Ut-hr,Ft>0&&(Ft=0)}else if(Ge===Qe){var Lr=gt.left+ht.x,jr=je.left+$e.x+J+u+Ie;Ft=jr-Lr,Ft<0&&(Ft=0)}Ft&&(Oe<3?this.setAttribute("transform","translate("+Ft+",0) "+this.getAttribute("transform")):this.setAttribute("visibility","hidden"))}})}var Ve={},st=Q4e[f],_t=eTe[f],Wt=Q4e[h],Ht=eTe[h],fr=Ne-P;i?(a==="pixels"?(Ve.y=m,Ve.t=L*Wt,Ve.b=L*Ht):(Ve.t=Ve.b=0,Ve.yt=m+n*Wt,Ve.yb=m-n*Ht),s==="pixels"?(Ve.x=v,Ve.l=Ne*st,Ve.r=Ne*_t):(Ve.l=fr*st,Ve.r=fr*_t,Ve.xl=v-o*st,Ve.xr=v+o*_t)):(a==="pixels"?(Ve.x=v,Ve.l=L*st,Ve.r=L*_t):(Ve.l=Ve.r=0,Ve.xl=v+n*st,Ve.xr=v-n*_t),s==="pixels"?(Ve.y=1-m,Ve.t=Ne*Wt,Ve.b=Ne*Ht):(Ve.t=fr*Wt,Ve.b=fr*Ht,Ve.yt=m-o*Wt,Ve.yb=m+o*Ht));var lr=t.y<.5?"b":"t",Ot=t.x<.5?"l":"r";r._fullLayout._reservedMargin[t._id]={};var Jt={r:_.width-mt-Ke,l:mt+Ve.r,b:_.height-dt-bt,t:dt+Ve.b};w&&g?zL.autoMargin(r,t._id,Ve):w?r._fullLayout._reservedMargin[t._id][lr]=Jt[lr]:g||i?r._fullLayout._reservedMargin[t._id][Ot]=Jt[Ot]:r._fullLayout._reservedMargin[t._id][lr]=Jt[lr]}return Rd.syncOrAsync([zL.previousPromises,fe,ae,ee,zL.previousPromises,_e],r)}function Rzt(e,t,r){var i=t.orientation==="v",n=r._fullLayout,a=n._size,o,s,l;RL.init({element:e.node(),gd:r,prepFn:function(){o=e.attr("transform"),RW(e)},moveFn:function(u,c){e.attr("transform",o+cv(u,c)),s=RL.align((i?t._uFrac:t._vFrac)+u/a.w,i?t._thickFrac:t._lenFrac,0,1,t.xanchor),l=RL.align((i?t._vFrac:1-t._uFrac)-c/a.h,i?t._lenFrac:t._thickFrac,0,1,t.yanchor);var f=RL.getCursor(s,l,t.xanchor,t.yanchor);RW(e,f)},doneFn:function(){if(RW(e),s!==void 0&&l!==void 0){var u={};u[t._propPrefix+"x"]=s,u[t._propPrefix+"y"]=l,t._traceIndex!==void 0?K4e.call("_guiRestyle",r,u,t._traceIndex):K4e.call("_guiRelayout",r,u)}}})}function zzt(e,t,r){var i=t._levels,n=[],a=[],o,s,l=i.end+i.size/100,u=i.size,c=1.001*r[0]-.001*r[1],f=1.001*r[1]-.001*r[0];for(s=0;s<1e5&&(o=i.start+s*u,!(u>0?o>=l:o<=l));s++)o>c&&o0?o>=l:o<=l));s++)o>r[0]&&o{"use strict";aTe.exports={moduleType:"component",name:"colorbar",attributes:YD(),supplyDefaults:VG(),draw:nTe().draw,hasColorbar:RG()}});var lTe=W((WVr,sTe)=>{"use strict";sTe.exports={moduleType:"component",name:"legend",layoutAttributes:BH(),supplyLayoutDefaults:OH(),draw:QH(),style:XH()}});var cTe=W((YVr,uTe)=>{"use strict";uTe.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"}}});var hTe=W((XVr,fTe)=>{"use strict";fTe.exports={moduleType:"locale",name:"en-US",dictionary:{"Click to enter Colorscale title":"Click to enter Colorscale title"},format:{date:"%m/%d/%Y"}}});var OW=W((ZVr,gTe)=>{"use strict";var qzt=xi(),vTe=tt(),qW=vTe.extendFlat,dTe=vTe.extendDeep;function pTe(e){var t;switch(e){case"themes__thumb":t={autosize:!0,width:150,height:150,title:{text:""},showlegend:!1,margin:{l:5,r:5,t:5,b:5,pad:0},annotations:[]};break;case"thumbnail":t={title:{text:""},showlegend:!1,borderwidth:0,bordercolor:"",margin:{l:1,r:1,t:1,b:1,pad:0},annotations:[]};break;default:t={}}return t}function Ozt(e){var t=["xaxis","yaxis","zaxis"];return t.indexOf(e.slice(0,5))>-1}gTe.exports=function(t,r){var i,n=t.data,a=t.layout,o=dTe([],n),s=dTe({},a,pTe(r.tileClass)),l=t._context||{};if(r.width&&(s.width=r.width),r.height&&(s.height=r.height),r.tileClass==="thumbnail"||r.tileClass==="themes__thumb"){s.annotations=[];var u=Object.keys(s);for(i=0;i{"use strict";var Nzt=ib().EventEmitter,Uzt=xi(),Vzt=tt(),mTe=em(),Gzt=OW(),Hzt=OF(),jzt=NF();function $zt(e,t){var r=new Nzt,i=Gzt(e,{format:"png"}),n=i.gd;n.style.position="absolute",n.style.left="-5000px",document.body.appendChild(n);function a(){var s=mTe.getDelay(n._fullLayout);setTimeout(function(){var l=Hzt(n),u=document.createElement("canvas");u.id=Vzt.randstr(),r=jzt({format:t.format,width:n._fullLayout.width,height:n._fullLayout.height,canvas:u,emitter:r,svg:l}),r.clean=function(){n&&document.body.removeChild(n)}},s)}var o=mTe.getRedrawFunc(n);return Uzt.call("_doPlot",n,i.data,i.layout,i.config).then(o).then(a).catch(function(s){r.emit("error",s)}),r}yTe.exports=$zt});var wTe=W((JVr,_Te)=>{"use strict";var bTe=em(),Wzt={getDelay:bTe.getDelay,getRedrawFunc:bTe.getRedrawFunc,clone:OW(),toSVG:OF(),svgToImg:NF(),toImage:xTe(),downloadImage:y$()};_Te.exports=Wzt});var ATe=W(am=>{"use strict";am.version=N6().version;eue();qde();var Yzt=xi(),$M=am.register=Yzt.register,UW=Ybe(),TTe=Object.keys(UW);for(BL=0;BL{"use strict";MTe.exports=ATe()});var R1=W((tGr,FTe)=>{"use strict";var sl=Ws(),ETe=Ts().axisHoverFormat,{hovertemplateAttrs:Xzt,texttemplateAttrs:Zzt,templatefallbackAttrs:kTe}=Wa(),DTe=Fo(),Kzt=jo(),CTe=(Qy(),Pt(Jy)),Jzt=zu().pattern,Hb=an().extendFlat,VW=Kzt({editType:"calc",arrayOk:!0,colorEditType:"style"}),Qzt=sl.marker,eBt=Qzt.line,tBt=Hb({},eBt.width,{dflt:0}),rBt=Hb({width:tBt,editType:"calc"},DTe("marker.line")),iBt=Hb({line:rBt,editType:"calc"},DTe("marker"),{opacity:{valType:"number",arrayOk:!0,dflt:1,min:0,max:1,editType:"style"},pattern:Jzt,cornerradius:{valType:"any",editType:"calc"}});FTe.exports={x:sl.x,x0:sl.x0,dx:sl.dx,y:sl.y,y0:sl.y0,dy:sl.dy,xperiod:sl.xperiod,yperiod:sl.yperiod,xperiod0:sl.xperiod0,yperiod0:sl.yperiod0,xperiodalignment:sl.xperiodalignment,yperiodalignment:sl.yperiodalignment,xhoverformat:ETe("x"),yhoverformat:ETe("y"),text:sl.text,texttemplate:Zzt({editType:"plot"},{keys:CTe.eventDataKeys}),texttemplatefallback:kTe({editType:"plot"}),hovertext:sl.hovertext,hovertemplate:Xzt({},{keys:CTe.eventDataKeys}),hovertemplatefallback:kTe(),textposition:{valType:"enumerated",values:["inside","outside","auto","none"],dflt:"auto",arrayOk:!0,editType:"calc"},insidetextanchor:{valType:"enumerated",values:["end","middle","start"],dflt:"end",editType:"plot"},textangle:{valType:"angle",dflt:"auto",editType:"plot"},textfont:Hb({},VW,{}),insidetextfont:Hb({},VW,{}),outsidetextfont:Hb({},VW,{}),constraintext:{valType:"enumerated",values:["inside","outside","both","none"],dflt:"both",editType:"calc"},cliponaxis:Hb({},sl.cliponaxis,{}),orientation:{valType:"enumerated",values:["v","h"],editType:"calc+clearAxisTypes"},base:{valType:"any",dflt:null,arrayOk:!0,editType:"calc"},offset:{valType:"number",dflt:null,arrayOk:!0,editType:"calc"},width:{valType:"number",dflt:null,min:0,arrayOk:!0,editType:"calc"},marker:iBt,offsetgroup:sl.offsetgroup,alignmentgroup:sl.alignmentgroup,selected:{marker:{opacity:sl.selected.marker.opacity,color:sl.selected.marker.color,editType:"style"},textfont:sl.selected.textfont,editType:"style"},unselected:{marker:{opacity:sl.unselected.marker.opacity,color:sl.unselected.marker.color,editType:"style"},textfont:sl.unselected.textfont,editType:"style"},zorder:sl.zorder}});var OL=W((rGr,LTe)=>{"use strict";LTe.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"}}});var NL=W((iGr,RTe)=>{"use strict";var nBt=ti(),PTe=Sc().hasColorscale,ITe=Bu(),aBt=tt().coercePattern;RTe.exports=function(t,r,i,n,a){var o=i("marker.color",n),s=PTe(t,"marker");s&&ITe(t,r,a,i,{prefix:"marker.",cLetter:"c"}),i("marker.line.color",nBt.defaultLine),PTe(t,"marker.line")&&ITe(t,r,a,i,{prefix:"marker.line.",cLetter:"c"}),i("marker.line.width"),i("marker.opacity"),aBt(i,"marker.pattern",o,s),i("selected.marker.color"),i("unselected.marker.color")}});var I0=W((nGr,UTe)=>{"use strict";var zTe=hn(),x5=tt(),BTe=ti(),oBt=xi(),sBt=Lb(),lBt=Qp(),uBt=NL(),cBt=Pb(),qTe=R1(),UL=x5.coerceFont;function fBt(e,t,r,i){function n(u,c){return x5.coerce(e,t,qTe,u,c)}var a=sBt(e,t,i,n);if(!a){t.visible=!1;return}lBt(e,t,i,n),n("xhoverformat"),n("yhoverformat"),n("zorder"),n("orientation",t.x&&!t.y?"h":"v"),n("base"),n("offset"),n("width"),n("text"),n("hovertext"),n("hovertemplate"),n("hovertemplatefallback");var o=n("textposition");NTe(e,t,i,n,o,{moduleHasSelected:!0,moduleHasUnselected:!0,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),uBt(e,t,n,r,i);var s=(t.marker.line||{}).color,l=oBt.getComponentMethod("errorbars","supplyDefaults");l(e,t,s||BTe.defaultLine,{axis:"y"}),l(e,t,s||BTe.defaultLine,{axis:"x",inherit:"y"}),x5.coerceSelectionMarkerOpacity(t,n)}function hBt(e,t){var r,i;function n(s,l){return x5.coerce(i._input,i,qTe,s,l)}for(var a=0;a=0)return e}else if(typeof e=="string"&&(e=e.trim(),e.slice(-1)==="%"&&zTe(e.slice(0,-1))&&(e=+e.slice(0,-1),e>=0)))return e+"%"}function NTe(e,t,r,i,n,a){a=a||{};var o=a.moduleHasSelected!==!1,s=a.moduleHasUnselected!==!1,l=a.moduleHasConstrain!==!1,u=a.moduleHasCliponaxis!==!1,c=a.moduleHasTextangle!==!1,f=a.moduleHasInsideanchor!==!1,h=!!a.hasPathbar,p=Array.isArray(n)||n==="auto",d=p||n==="inside",v=p||n==="outside";if(d||v){var m=UL(i,"textfont",r.font),g=x5.extendFlat({},m),w=e.textfont&&e.textfont.color,_=!w;if(_&&delete g.color,UL(i,"insidetextfont",g),h){var b=x5.extendFlat({},m);_&&delete b.color,UL(i,"pathbar.textfont",b)}v&&UL(i,"outsidetextfont",m),o&&i("selected.textfont.color"),s&&i("unselected.textfont.color"),l&&i("constraintext"),u&&i("cliponaxis"),c&&i("textangle"),i("texttemplate"),i("texttemplatefallback")}d&&f&&i("insidetextanchor")}UTe.exports={supplyDefaults:fBt,crossTraceDefaults:hBt,handleText:NTe,validateCornerradius:OTe}});var GW=W((aGr,VTe)=>{"use strict";var dBt=xi(),pBt=Yi(),vBt=tt(),gBt=OL(),mBt=I0().validateCornerradius;VTe.exports=function(e,t,r){function i(v,m){return vBt.coerce(e,t,gBt,v,m)}for(var n=!1,a=!1,o=!1,s={},l=i("barmode"),u=l==="group",c=0;c0&&!s[h]&&(o=!0),s[h]=!0),f.visible&&f.type==="histogram"){var p=pBt.getFromId({_fullLayout:t},f[f.orientation==="v"?"xaxis":"yaxis"]);p.type!=="category"&&(a=!0)}}if(!n){delete t.barmode;return}l!=="overlay"&&i("barnorm"),i("bargap",a&&!o?0:.2),i("bargroupgap");var d=i("barcornerradius");t.barcornerradius=mBt(d)}});var WM=W((oGr,GTe)=>{"use strict";var b5=tt();GTe.exports=function(t,r){for(var i=0;i{"use strict";var HTe=Yi(),jTe=rv(),$Te=Sc().hasColorscale,WTe=rf(),yBt=WM(),xBt=C0();YTe.exports=function(t,r){var i=HTe.getFromId(t,r.xaxis||"x"),n=HTe.getFromId(t,r.yaxis||"y"),a,o,s,l,u,c,f={msUTC:!!(r.base||r.base===0)};r.orientation==="h"?(a=i.makeCalcdata(r,"x",f),s=n.makeCalcdata(r,"y"),l=jTe(r,n,"y",s),u=!!r.yperiodalignment,c="y"):(a=n.makeCalcdata(r,"y",f),s=i.makeCalcdata(r,"x"),l=jTe(r,i,"x",s),u=!!r.xperiodalignment,c="x"),o=l.vals;for(var h=Math.min(o.length,a.length),p=new Array(h),d=0;d{"use strict";var bBt=gi(),_Bt=tt();function wBt(e,t,r){var i=e._fullLayout,n=i["_"+r+"Text_minsize"];if(n){var a=i.uniformtext.mode==="hide",o;switch(r){case"funnelarea":case"pie":case"sunburst":o="g.slice";break;case"treemap":case"icicle":o="g.slice, g.pathbar";break;default:o="g.points > g.point"}t.selectAll(o).each(function(s){var l=s.transform;if(l){l.scale=a&&l.hide?0:n/l.fontSize;var u=bBt.select(this).select("text");_Bt.setTransormAndDisplay(u,l)}})}}function TBt(e,t,r){if(r.uniformtext.mode){var i=ZTe(e),n=r.uniformtext.minsize,a=t.scale*t.fontSize;t.hide=a{"use strict";var MBt=ti(),SBt=hn(),JTe=tt().isArrayOrTypedArray;jb.coerceString=function(e,t,r){if(typeof t=="string"){if(t||!e.noBlank)return t}else if((typeof t=="number"||t===!0)&&!e.strict)return String(t);return r!==void 0?r:e.dflt};jb.coerceNumber=function(e,t,r){if(SBt(t)){t=+t;var i=e.min,n=e.max,a=i!==void 0&&tn;if(!a)return t}return r!==void 0?r:e.dflt};jb.coerceColor=function(e,t,r){return MBt.isValid(t)?t:r!==void 0?r:e.dflt};jb.coerceEnumerated=function(e,t,r){return e.coerceNumber&&(t=+t),e.values.indexOf(t)!==-1?t:r!==void 0?r:e.dflt};jb.getValue=function(e,t){var r;return JTe(e)?t{"use strict";var YM=gi(),EBt=ti(),XM=Qi(),QTe=tt(),e6e=xi(),t6e=of().resizeText,HW=R1(),kBt=HW.textfont,CBt=HW.insidetextfont,DBt=HW.outsidetextfont,Dc=VL();function FBt(e){var t=YM.select(e).selectAll('g[class^="barlayer"]').selectAll("g.trace");t6e(e,t,"bar");var r=t.size(),i=e._fullLayout;t.style("opacity",function(n){return n[0].trace.opacity}).each(function(n){(i.barmode==="stack"&&r>1||i.bargap===0&&i.bargroupgap===0&&!n[0].trace.marker.line.width)&&YM.select(this).attr("shape-rendering","crispEdges")}),t.selectAll("g.points").each(function(n){var a=YM.select(this),o=n[0].trace;r6e(a,o,e)}),e6e.getComponentMethod("errorbars","style")(t)}function r6e(e,t,r){XM.pointStyle(e.selectAll("path"),t,r),i6e(e,t,r)}function i6e(e,t,r){e.selectAll("text").each(function(i){var n=YM.select(this),a=QTe.ensureUniformFontSize(r,n6e(n,i,t,r));XM.font(n,a)})}function LBt(e,t,r){var i=t[0].trace;i.selectedpoints?PBt(r,i,e):(r6e(r,i,e),e6e.getComponentMethod("errorbars","style")(r))}function PBt(e,t,r){XM.selectedPointStyle(e.selectAll("path"),t),IBt(e.selectAll("text"),t,r)}function IBt(e,t,r){e.each(function(i){var n=YM.select(this),a;if(i.selected){a=QTe.ensureUniformFontSize(r,n6e(n,i,t,r));var o=t.selected.textfont&&t.selected.textfont.color;o&&(a.color=o),XM.font(n,a)}else XM.selectedTextStyle(n,t)})}function n6e(e,t,r,i){var n=i._fullLayout.font,a=r.textfont;if(e.classed("bartext-inside")){var o=l6e(t,r);a=o6e(r,t.i,n,o)}else e.classed("bartext-outside")&&(a=s6e(r,t.i,n));return a}function a6e(e,t,r){return jW(kBt,e.textfont,t,r)}function o6e(e,t,r,i){var n=a6e(e,t,r),a=e._input.textfont===void 0||e._input.textfont.color===void 0||Array.isArray(e.textfont.color)&&e.textfont.color[t]===void 0;return a&&(n={color:EBt.contrast(i),family:n.family,size:n.size,weight:n.weight,style:n.style,variant:n.variant,textcase:n.textcase,lineposition:n.lineposition,shadow:n.shadow}),jW(CBt,e.insidetextfont,t,n)}function s6e(e,t,r){var i=a6e(e,t,r);return jW(DBt,e.outsidetextfont,t,i)}function jW(e,t,r,i){t=t||{};var n=Dc.getValue(t.family,r),a=Dc.getValue(t.size,r),o=Dc.getValue(t.color,r),s=Dc.getValue(t.weight,r),l=Dc.getValue(t.style,r),u=Dc.getValue(t.variant,r),c=Dc.getValue(t.textcase,r),f=Dc.getValue(t.lineposition,r),h=Dc.getValue(t.shadow,r);return{family:Dc.coerceString(e.family,n,i.family),size:Dc.coerceNumber(e.size,a,i.size),color:Dc.coerceColor(e.color,o,i.color),weight:Dc.coerceString(e.weight,s,i.weight),style:Dc.coerceString(e.style,l,i.style),variant:Dc.coerceString(e.variant,u,i.variant),textcase:Dc.coerceString(e.variant,c,i.textcase),lineposition:Dc.coerceString(e.variant,f,i.lineposition),shadow:Dc.coerceString(e.variant,h,i.shadow)}}function l6e(e,t){return t.type==="waterfall"?t[e.dir].marker.color:e.mcc||e.mc||t.marker.color}u6e.exports={style:FBt,styleTextPoints:i6e,styleOnSelect:LBt,getInsideTextFont:o6e,getOutsideTextFont:s6e,getBarColor:l6e,resizeText:t6e}});var Wb=W((fGr,m6e)=>{"use strict";var GL=gi(),HL=hn(),sc=tt(),RBt=ao(),zBt=ti(),s2=Qi(),BBt=xi(),jL=Yi().tickText,c6e=of(),qBt=c6e.recordMinTextSize,OBt=c6e.clearMinTextSize,$W=zd(),_5=VL(),NBt=(Qy(),Pt(Jy)),f6e=R1(),UBt=f6e.text,VBt=f6e.textposition,GBt=ah().appendArrayPointValue,If=NBt.TEXTPAD;function HBt(e){return e.id}function jBt(e){if(e.ids)return HBt}function WW(e){return(e>0)-(e<0)}function fv(e,t){return e0}function WBt(e,t,r,i,n,a){var o=t.xaxis,s=t.yaxis,l=e._fullLayout,u=e._context.staticPlot;n||(n={mode:l.barmode,norm:l.barmode,gap:l.bargap,groupgap:l.bargroupgap},OBt("bar",l));var c=sc.makeTraceGroups(i,r,"trace bars").each(function(f){var h=GL.select(this),p=f[0].trace,d=f[0].t,v=p.type==="waterfall",m=p.type==="funnel",g=p.type==="histogram",w=p.type==="bar",_=w||m,b=0;v&&p.connector.visible&&p.connector.mode==="between"&&(b=p.connector.line.width/2);var S=p.orientation==="h",x=d6e(n),A=sc.ensureSingle(h,"g","points"),T=jBt(p),y=A.selectAll("g.point").data(sc.identity,T);y.enter().append("g").classed("point",!0),y.exit().remove(),y.each(function(M,C){var k=GL.select(this),D=$Bt(M,o,s,S),F=D[0][0],P=D[0][1],R=D[1][0],L=D[1][1],I=(S?P-F:L-R)===0;I&&_&&_5.getLineWidth(p,M)&&(I=!1),I||(I=!HL(F)||!HL(P)||!HL(R)||!HL(L)),M.isBlank=I,I&&(S?P=F:L=R),b&&!I&&(S?(F-=fv(F,P)*b,P+=fv(F,P)*b):(R-=fv(R,L)*b,L+=fv(R,L)*b));var B,O;if(p.type==="waterfall"){if(!I){var $=p[M.dir].marker;B=$.line.width,O=$.color}}else B=_5.getLineWidth(p,M),O=M.mc||p.marker.color;function X(re){var pe=GL.round(B/2%1,2);return n.gap===0&&n.groupgap===0?GL.round(Math.round(re)-pe,2):re}function K(re,pe,Te){return Te&&re===pe?re:Math.abs(re-pe)>=2?X(re):re>pe?Math.ceil(re):Math.floor(re)}var G=zBt.opacity(O),q=G<1||B>.01?X:K;e._context.staticPlot||(F=q(F,P,S),P=q(P,F,S),R=q(R,L,!S),L=q(L,R,!S));var J=S?o.c2p:s.c2p,N;M.s0>0?N=M._sMax:M.s0<0?N=M._sMin:N=M.s1>0?M._sMax:M._sMin;function V(re,pe){if(!re)return 0;var Te=Math.abs(S?L-R:P-F),Ce=Math.abs(S?P-F:L-R),ze=q(Math.abs(J(N,!0)-J(0,!0))),we=M.hasB?Math.min(Te/2,Ce/2):Math.min(Te/2,ze),me;if(pe==="%"){var Le=Math.min(50,re);me=Te*(Le/100)}else me=re;return q(Math.max(Math.min(me,we),0))}var Y=w||g?V(d.cornerradiusvalue,d.cornerradiusform):0,H,j,Q="M"+F+","+R+"V"+L+"H"+P+"V"+R+"Z",te=0;if(Y&&M.s){var ue=WW(M.s0)===0||WW(M.s)===WW(M.s0)?M.s1:M.s0;if(te=q(M.hasB?0:Math.abs(J(N,!0)-J(ue,!0))),te0?Math.sqrt(te*(2*Y-te)):0,Se=ge>0?Math.max:Math.min;H="M"+F+","+R+"V"+(L-ce*Ee)+"H"+Se(P-(Y-te)*ge,F)+"A "+Y+","+Y+" 0 0 "+xe+" "+P+","+(L-Y*Ee-oe)+"V"+(R+Y*Ee+oe)+"A "+Y+","+Y+" 0 0 "+xe+" "+Se(P-(Y-te)*ge,F)+","+(R+ce*Ee)+"Z"}else if(M.hasB)H="M"+(F+Y*ge)+","+R+"A "+Y+","+Y+" 0 0 "+xe+" "+F+","+(R+Y*Ee)+"V"+(L-Y*Ee)+"A "+Y+","+Y+" 0 0 "+xe+" "+(F+Y*ge)+","+L+"H"+(P-Y*ge)+"A "+Y+","+Y+" 0 0 "+xe+" "+P+","+(L-Y*Ee)+"V"+(R+Y*Ee)+"A "+Y+","+Y+" 0 0 "+xe+" "+(P-Y*ge)+","+R+"Z";else{j=Math.abs(L-R)+te;var be=j0?Math.sqrt(te*(2*Y-te)):0,ee=Ee>0?Math.max:Math.min;H="M"+(F+be*ge)+","+R+"V"+ee(L-(Y-te)*Ee,R)+"A "+Y+","+Y+" 0 0 "+xe+" "+(F+Y*ge-fe)+","+L+"H"+(P-Y*ge+fe)+"A "+Y+","+Y+" 0 0 "+xe+" "+(P-be*ge)+","+ee(L-(Y-te)*Ee,R)+"V"+R+"Z"}}else H=Q}else H=Q;var ae=h6e(sc.ensureSingle(k,"path"),l,n,a);if(ae.style("vector-effect",u?"none":"non-scaling-stroke").attr("d",isNaN((P-F)*(L-R))||I&&e._context.staticPlot?"M0,0Z":H).call(s2.setClipUrl,t.layerClipId,e),!l.uniformtext.mode&&x){var _e=s2.makePointStyleFns(p);s2.singlePointStyle(M,ae,p,_e,e)}YBt(e,t,k,f,C,F,P,R,L,Y,te,n,a),t.layerClipId&&s2.hideOutsideRangePoint(M,k.select("text"),o,s,p.xcalendar,p.ycalendar)});var E=p.cliponaxis===!1;s2.setClipUrl(h,E?null:t.layerClipId,e)});BBt.getComponentMethod("errorbars","plot")(e,c,t,n)}function YBt(e,t,r,i,n,a,o,s,l,u,c,f,h){var p=t.xaxis,d=t.yaxis,v=e._fullLayout,m;function g(Q,te,ue){var ge=sc.ensureSingle(Q,"text").text(te).attr({class:"bartext bartext-"+m,"text-anchor":"middle","data-notex":1}).call(s2.font,ue).call(RBt.convertToTspans,e);return ge}var w=i[0].trace,_=w.orientation==="h",b=QBt(i,_,p,d),S=KBt(v,i,n,p,d);m=JBt(w,n);var x=f.mode==="stack"||f.mode==="relative",A=i[n],T=!x||A._outmost,y=A.hasB,E=u&&u-c>If;if(!S||m==="none"||(A.isBlank||a===o||s===l)&&(m==="auto"||m==="inside")){r.select("text").remove();return}var M=v.font,C=$W.getBarColor(i[n],w),k=$W.getInsideTextFont(w,n,M,C),D=$W.getOutsideTextFont(w,n,M),F=w.insidetextanchor||"end",P=r.datum();_?p.type==="log"&&P.s0<=0&&(p.range[0]0&&K>0,J;E?y?J=$b(I-2*u,B,X,K,_)||$b(I,B-2*u,X,K,_):_?J=$b(I-(u-c),B,X,K,_)||$b(I,B-2*(u-c),X,K,_):J=$b(I,B-(u-c),X,K,_)||$b(I-2*(u-c),B,X,K,_):J=$b(I,B,X,K,_),q&&J?m="inside":(m="outside",O.remove(),O=null)}else m="inside";if(!O){G=sc.ensureUniformFontSize(e,m==="outside"?D:k),O=g(r,S,G);var N=O.attr("transform");if(O.attr("transform",""),$=s2.bBox(O.node()),X=$.width,K=$.height,O.attr("transform",N),X<=0||K<=0){O.remove();return}}var V=w.textangle,Y,H;m==="outside"?(H=w.constraintext==="both"||w.constraintext==="outside",Y=ZBt(a,o,s,l,$,{isHorizontal:_,constrained:H,angle:V,zeroBarDir:b})):(H=w.constraintext==="both"||w.constraintext==="inside",Y=g6e(a,o,s,l,$,{isHorizontal:_,constrained:H,angle:V,anchor:F,hasB:y,r:u,overhead:c})),Y.fontSize=G.size,qBt(w.type==="histogram"?"bar":w.type,Y,v),A.transform=Y;var j=h6e(O,v,f,h);sc.setTransormAndDisplay(j,Y)}function $b(e,t,r,i,n){if(e<0||t<0)return!1;var a=r<=e&&i<=t,o=r<=t&&i<=e,s=n?e>=r*(t/i):t>=i*(e/r);return a||o||s}function p6e(e){return e==="auto"?0:e}function v6e(e,t){var r=Math.PI/180*t,i=Math.abs(Math.sin(r)),n=Math.abs(Math.cos(r));return{x:e.width*n+e.height*i,y:e.width*i+e.height*n}}function g6e(e,t,r,i,n,a){var o=!!a.isHorizontal,s=!!a.constrained,l=a.angle||0,u=a.anchor,c=u==="end",f=u==="start",h=a.leftToRight||0,p=(h+1)/2,d=1-p,v=a.hasB,m=a.r,g=a.overhead,w=n.width,_=n.height,b=Math.abs(t-e),S=Math.abs(i-r),x=b>2*If&&S>2*If?If:0;b-=2*x,S-=2*x;var A=p6e(l);l==="auto"&&!(w<=b&&_<=S)&&(w>b||_>S)&&(!(w>S||_>b)||w<_!=bIf){var M=XBt(e,t,r,i,T,m,g,o,v);y=M.scale,E=M.pad}else y=1,s&&(y=Math.min(1,b/T.x,S/T.y)),E=0;var C=n.left*d+n.right*p,k=(n.top+n.bottom)/2,D=(e+If)*d+(t-If)*p,F=(r+i)/2,P=0,R=0;if(f||c){var L=(o?T.x:T.y)/2;m&&(c||v)&&(x+=E);var I=o?fv(e,t):fv(r,i);o?f?(D=e+I*x,P=-I*L):(D=t-I*x,P=I*L):f?(F=r+I*x,R=-I*L):(F=i-I*x,R=I*L)}return{textX:C,textY:k,targetX:D,targetY:F,anchorX:P,anchorY:R,scale:y,rotate:A}}function XBt(e,t,r,i,n,a,o,s,l){var u=Math.max(0,Math.abs(t-e)-2*If),c=Math.max(0,Math.abs(i-r)-2*If),f=a-If,h=o?f-Math.sqrt(f*f-(f-o)*(f-o)):f,p=l?f*2:s?f-o:2*h,d=l?f*2:s?2*h:f-o,v,m,g,w,_;return n.y/n.x>=c/(u-p)?w=c/n.y:n.y/n.x<=(c-d)/u?w=u/n.x:!l&&s?(v=n.x*n.x+n.y*n.y/4,m=-2*n.x*(u-f)-n.y*(c/2-f),g=(u-f)*(u-f)+(c/2-f)*(c/2-f)-f*f,w=(-m+Math.sqrt(m*m-4*v*g))/(2*v)):l?(v=(n.x*n.x+n.y*n.y)/4,m=-n.x*(u/2-f)-n.y*(c/2-f),g=(u/2-f)*(u/2-f)+(c/2-f)*(c/2-f)-f*f,w=(-m+Math.sqrt(m*m-4*v*g))/(2*v)):(v=n.x*n.x/4+n.y*n.y,m=-n.x*(u/2-f)-2*n.y*(c-f),g=(u/2-f)*(u/2-f)+(c-f)*(c-f)-f*f,w=(-m+Math.sqrt(m*m-4*v*g))/(2*v)),w=Math.min(1,w),s?_=Math.max(0,f-Math.sqrt(Math.max(0,f*f-(f-(c-n.y*w)/2)*(f-(c-n.y*w)/2)))-o):_=Math.max(0,f-Math.sqrt(Math.max(0,f*f-(f-(u-n.x*w)/2)*(f-(u-n.x*w)/2)))-o),{scale:w,pad:_}}function ZBt(e,t,r,i,n,a){var o=!!a.isHorizontal,s=!!a.constrained,l=a.angle||0,u=n.width,c=n.height,f=Math.abs(t-e),h=Math.abs(i-r),p;o?p=h>2*If?If:0:p=f>2*If?If:0;var d=1;s&&(d=o?Math.min(1,h/c):Math.min(1,f/u));var v=p6e(l),m=v6e(n,v),g=(o?m.x:m.y)/2,w=(n.left+n.right)/2,_=(n.top+n.bottom)/2,b=(e+t)/2,S=(r+i)/2,x=0,A=0,T;return(o?e===t:r===i)&&a.zeroBarDir?T=a.zeroBarDir:T=o?fv(t,e):fv(r,i),o?(b=t-T*p,x=T*g):(S=i+T*p,A=-T*g),{textX:w,textY:_,targetX:b,targetY:S,anchorX:x,anchorY:A,scale:d,rotate:v}}function KBt(e,t,r,i,n){var a=t[0].trace,o=a.texttemplate,s;return o?s=eqt(e,t,r,i,n):a.textinfo?s=tqt(t,r,i,n):s=_5.getValue(a.text,r),_5.coerceString(UBt,s)}function JBt(e,t){var r=_5.getValue(e.textposition,t);return _5.coerceEnumerated(VBt,r)}function QBt(e,t,r,i){for(var n=!1,a=!1,o=0;o0?n=!0:s<0&&(a=!0),n&&a)return 0}var l=t?r:i,u=-fv(l.range[0],l.range[1]);return a?n?0:-u:u}function eqt(e,t,r,i,n){var a=t[0].trace,o=sc.castOption(a,r,"texttemplate");if(!o)return"";var s=a.type==="histogram",l=a.type==="waterfall",u=a.type==="funnel",c=a.orientation==="h",f,h,p,d;c?(f="y",h=n,p="x",d=i):(f="x",h=i,p="y",d=n);function v(x){return jL(h,h.c2l(x),!0).text}function m(x){return jL(d,d.c2l(x),!0).text}var g=t[r],w={};w.label=g.p,w.labelLabel=w[f+"Label"]=v(g.p);var _=sc.castOption(a,g.i,"text");(_===0||_)&&(w.text=_),w.value=g.s,w.valueLabel=w[p+"Label"]=m(g.s);var b={};GBt(b,a,g.i),(s||b.x===void 0)&&(b.x=c?w.value:w.label),(s||b.y===void 0)&&(b.y=c?w.label:w.value),(s||b.xLabel===void 0)&&(b.xLabel=c?w.valueLabel:w.labelLabel),(s||b.yLabel===void 0)&&(b.yLabel=c?w.labelLabel:w.valueLabel),l&&(w.delta=+g.rawS||g.s,w.deltaLabel=m(w.delta),w.final=g.v,w.finalLabel=m(w.final),w.initial=w.final-w.delta,w.initialLabel=m(w.initial)),u&&(w.value=g.s,w.valueLabel=m(w.value),w.percentInitial=g.begR,w.percentInitialLabel=sc.formatPercent(g.begR),w.percentPrevious=g.difR,w.percentPreviousLabel=sc.formatPercent(g.difR),w.percentTotal=g.sumR,w.percentTotalLabel=sc.formatPercent(g.sumR));var S=sc.castOption(a,g.i,"customdata");return S&&(w.customdata=S),sc.texttemplateString({data:[b,w,a._meta],fallback:a.texttemplatefallback,labels:w,locale:e._d3locale,template:o})}function tqt(e,t,r,i){var n=e[0].trace,a=n.orientation==="h",o=n.type==="waterfall",s=n.type==="funnel";function l(S){var x=a?i:r;return jL(x,S,!0).text}function u(S){var x=a?r:i;return jL(x,+S,!0).text}var c=n.textinfo,f=e[t],h=c.split("+"),p=[],d,v=function(S){return h.indexOf(S)!==-1};if(v("label")&&p.push(l(e[t].p)),v("text")&&(d=sc.castOption(n,f.i,"text"),(d===0||d)&&p.push(d)),o){var m=+f.rawS||f.s,g=f.v,w=g-m;v("initial")&&p.push(u(w)),v("delta")&&p.push(u(m)),v("final")&&p.push(u(g))}if(s){v("value")&&p.push(u(f.s));var _=0;v("percent initial")&&_++,v("percent previous")&&_++,v("percent total")&&_++;var b=_>1;v("percent initial")&&(d=sc.formatPercent(f.begR),b&&(d+=" of initial"),p.push(d)),v("percent previous")&&(d=sc.formatPercent(f.difR),b&&(d+=" of previous"),p.push(d)),v("percent total")&&(d=sc.formatPercent(f.sumR),b&&(d+=" of total"),p.push(d))}return p.join("
")}m6e.exports={plot:WBt,toMoveInsideBar:g6e}});var w5=W((hGr,_6e)=>{"use strict";var ZM=Is(),rqt=xi(),y6e=ti(),iqt=tt().fillText,nqt=VL().getLineWidth,YW=Yi().hoverLabelText,aqt=(ra(),Pt(ia)).BADNUM;function oqt(e,t,r,i,n){var a=x6e(e,t,r,i,n);if(a){var o=a.cd,s=o[0].trace,l=o[a.index];return a.color=b6e(s,l),rqt.getComponentMethod("errorbars","hoverInfo")(l,s,a),[a]}}function x6e(e,t,r,i,n){var a=e.cd,o=a[0].trace,s=a[0].t,l=i==="closest",u=o.type==="waterfall",c=e.maxHoverDistance,f=e.maxSpikeDistance,h,p,d,v,m,g,w;o.orientation==="h"?(h=r,p=t,d="y",v="x",m=F,g=C):(h=t,p=r,d="x",v="y",g=F,m=C);var _=o[d+"period"],b=l||_;function S(q){return A(q,-1)}function x(q){return A(q,1)}function A(q,J){var N=q.w;return q[d]+J*N/2}function T(q){return q[d+"End"]-q[d+"Start"]}var y=l?S:_?function(q){return q.p-T(q)/2}:function(q){return Math.min(S(q),q.p-s.bardelta/2)},E=l?x:_?function(q){return q.p+T(q)/2}:function(q){return Math.max(x(q),q.p+s.bardelta/2)};function M(q,J,N){return n.finiteRange&&(N=0),ZM.inbox(q-h,J-h,N+Math.min(1,Math.abs(J-q)/w)-1)}function C(q){return M(y(q),E(q),c)}function k(q){return M(S(q),x(q),f)}function D(q){var J=q[v];if(u){var N=Math.abs(q.rawS)||0;p>0?J+=N:p<0&&(J-=N)}return J}function F(q){var J=p,N=q.b,V=D(q);return ZM.inbox(N-J,V-J,c+(V-J)/(V-N)-1)}function P(q){var J=p,N=q.b,V=D(q);return ZM.inbox(N-J,V-J,f+(V-J)/(V-N)-1)}var R=e[d+"a"],L=e[v+"a"];w=Math.abs(R.r2c(R.range[1])-R.r2c(R.range[0]));function I(q){return(m(q)+g(q))/2}var B=ZM.getDistanceFunction(i,m,g,I);if(ZM.getClosest(a,B,e),e.index!==!1&&a[e.index].p!==aqt){b||(y=function(q){return Math.min(S(q),q.p-s.bargroupwidth/2)},E=function(q){return Math.max(x(q),q.p+s.bargroupwidth/2)});var O=e.index,$=a[O],X=o.base?$.b+$.s:$.s;e[v+"0"]=e[v+"1"]=L.c2p($[v],!0),e[v+"LabelVal"]=X;var K=s.extents[s.extents.round($.p)];e[d+"0"]=R.c2p(l?y($):K[0],!0),e[d+"1"]=R.c2p(l?E($):K[1],!0);var G=$.orig_p!==void 0;return e[d+"LabelVal"]=G?$.orig_p:$.p,e.labelLabel=YW(R,e[d+"LabelVal"],o[d+"hoverformat"]),e.valueLabel=YW(L,e[v+"LabelVal"],o[v+"hoverformat"]),e.baseLabel=YW(L,$.b,o[v+"hoverformat"]),e.spikeDistance=(P($)+k($))/2,e[d+"Spike"]=R.c2p($.p,!0),iqt($,o,e),e.hovertemplate=o.hovertemplate,e}}function b6e(e,t){var r=t.mcc||e.marker.color,i=t.mlcc||e.marker.line.color,n=nqt(e,t);if(y6e.opacity(r))return r;if(y6e.opacity(i)&&n)return i}_6e.exports={hoverPoints:oqt,hoverOnBars:x6e,getTraceColor:b6e}});var T6e=W((dGr,w6e)=>{"use strict";w6e.exports=function(t,r,i){return t.x="xVal"in r?r.xVal:r.x,t.y="yVal"in r?r.yVal:r.y,r.xa&&(t.xaxis=r.xa),r.ya&&(t.yaxis=r.ya),i.orientation==="h"?(t.label=t.y,t.value=t.x):(t.label=t.x,t.value=t.y),t}});var T5=W((pGr,A6e)=>{"use strict";A6e.exports=function(t,r){var i=t.cd,n=t.xaxis,a=t.yaxis,o=i[0].trace,s=o.type==="funnel",l=o.orientation==="h",u=[],c;if(r===!1)for(c=0;c{"use strict";M6e.exports={attributes:R1(),layoutAttributes:OL(),supplyDefaults:I0().supplyDefaults,crossTraceDefaults:I0().crossTraceDefaults,supplyLayoutDefaults:GW(),calc:XTe(),crossTraceCalc:Ib().crossTraceCalc,colorbar:Cc(),arraysToCalcdata:WM(),plot:Wb().plot,style:zd().style,styleOnSelect:zd().styleOnSelect,hoverPoints:w5().hoverPoints,eventData:T6e(),selectPoints:T5(),moduleType:"trace",name:"bar",basePlotModule:xl(),categories:["bar-like","cartesian","svg","bar","oriented","errorBarsOK","showLegend","zoomScale"],animatable:!0,meta:{}}});var k6e=W((gGr,E6e)=>{"use strict";E6e.exports=S6e()});var KM=W((mGr,L6e)=>{"use strict";var lqt=C1(),Bd=Ws(),C6e=R1(),uqt=Yl(),D6e=Ts().axisHoverFormat,{hovertemplateAttrs:cqt,templatefallbackAttrs:fqt}=Wa(),om=an().extendFlat,A5=Bd.marker,F6e=A5.line;L6e.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:Bd.xperiod,yperiod:Bd.yperiod,xperiod0:Bd.xperiod0,yperiod0:Bd.yperiod0,xperiodalignment:Bd.xperiodalignment,yperiodalignment:Bd.yperiodalignment,xhoverformat:D6e("x"),yhoverformat:D6e("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:om({},A5.symbol,{arrayOk:!1,editType:"plot"}),opacity:om({},A5.opacity,{arrayOk:!1,dflt:1,editType:"style"}),angle:om({},A5.angle,{arrayOk:!1,editType:"calc"}),size:om({},A5.size,{arrayOk:!1,editType:"calc"}),color:om({},A5.color,{arrayOk:!1,editType:"style"}),line:{color:om({},F6e.color,{arrayOk:!1,dflt:uqt.defaultLine,editType:"style"}),width:om({},F6e.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:lqt(),whiskerwidth:{valType:"number",min:0,max:1,dflt:.5,editType:"calc"},showwhiskers:{valType:"boolean",editType:"calc"},offsetgroup:C6e.offsetgroup,alignmentgroup:C6e.alignmentgroup,selected:{marker:Bd.selected.marker,editType:"style"},unselected:{marker:Bd.unselected.marker,editType:"style"},text:om({},Bd.text,{}),hovertext:om({},Bd.hovertext,{}),hovertemplate:cqt({}),hovertemplatefallback:fqt(),hoveron:{valType:"flaglist",flags:["boxes","points"],dflt:"boxes+points",editType:"style"},zorder:Bd.zorder}});var JM=W((yGr,P6e)=>{"use strict";P6e.exports={boxmode:{valType:"enumerated",values:["group","overlay"],dflt:"overlay",editType:"calc"},boxgap:{valType:"number",min:0,max:1,dflt:.3,editType:"calc"},boxgroupgap:{valType:"number",min:0,max:1,dflt:.3,editType:"calc"}}});var eS=W((xGr,B6e)=>{"use strict";var qd=tt(),hqt=xi(),dqt=ti(),pqt=Qp(),vqt=Pb(),I6e=Rw(),QM=KM();function gqt(e,t,r,i){function n(d,v){return qd.coerce(e,t,QM,d,v)}if(R6e(e,t,n,i),t.visible!==!1){pqt(e,t,i,n),n("xhoverformat"),n("yhoverformat");var a=t._hasPreCompStats;a&&(n("lowerfence"),n("upperfence")),n("line.color",(e.marker||{}).color||r),n("line.width"),n("fillcolor",dqt.addOpacity(t.line.color,.5));var o=!1;if(a){var s=n("mean"),l=n("sd");s&&s.length&&(o=!0,l&&l.length&&(o="sd"))}n("whiskerwidth");var u=n("sizemode"),c;u==="quartiles"&&(c=n("boxmean",o)),n("showwhiskers",u==="quartiles"),(u==="sd"||c==="sd")&&n("sdmultiple"),n("width"),n("quartilemethod");var f=!1;if(a){var h=n("notchspan");h&&h.length&&(f=!0)}else qd.validate(e.notchwidth,QM.notchwidth)&&(f=!0);var p=n("notched",f);p&&n("notchwidth"),z6e(e,t,n,{prefix:"box"}),n("zorder")}}function R6e(e,t,r,i){function n(E){var M=0;return E&&E.length&&(M+=1,qd.isArrayOrTypedArray(E[0])&&E[0].length&&(M+=1)),M}function a(E){return qd.validate(e[E],QM[E])}var o=r("y"),s=r("x"),l;if(t.type==="box"){var u=r("q1"),c=r("median"),f=r("q3");t._hasPreCompStats=u&&u.length&&c&&c.length&&f&&f.length,l=Math.min(qd.minRowLength(u),qd.minRowLength(c),qd.minRowLength(f))}else t._hasPreCompStats=!1;var h=n(o),p=n(s),d=h&&qd.minRowLength(o),v=p&&qd.minRowLength(s),m=i.calendar,g={autotypenumbers:i.autotypenumbers},w,_;if(t._hasPreCompStats)switch(String(p)+String(h)){case"00":var b=a("x0")||a("dx"),S=a("y0")||a("dy");S&&!b?w="h":w="v",_=l;break;case"10":w="v",_=Math.min(l,v);break;case"20":w="h",_=Math.min(l,s.length);break;case"01":w="h",_=Math.min(l,d);break;case"02":w="v",_=Math.min(l,o.length);break;case"12":w="v",_=Math.min(l,v,o.length);break;case"21":w="h",_=Math.min(l,s.length,d);break;case"11":_=0;break;case"22":var x=!1,A;for(A=0;A0?(w="v",p>0?_=Math.min(v,d):_=Math.min(d)):p>0?(w="h",_=Math.min(v)):_=0;if(!_){t.visible=!1;return}t._length=_;var T=r("orientation",w);t._hasPreCompStats?T==="v"&&p===0?(r("x0",0),r("dx",1)):T==="h"&&h===0&&(r("y0",0),r("dy",1)):T==="v"&&p===0?r("x0"):T==="h"&&h===0&&r("y0");var y=hqt.getComponentMethod("calendars","handleTraceDefaults");y(e,t,["x","y"],i)}function z6e(e,t,r,i){var n=i.prefix,a=qd.coerce2(e,t,QM,"marker.outliercolor"),o=r("marker.line.outliercolor"),s="outliers";t._hasPreCompStats?s="all":(a||o)&&(s="suspectedoutliers");var l=r(n+"points",s);l?(r("jitter",l==="all"?.3:0),r("pointpos",l==="all"?-1.5:0),r("marker.symbol"),r("marker.opacity"),r("marker.size"),r("marker.angle"),r("marker.color",t.line.color),r("marker.line.color"),r("marker.line.width"),l==="suspectedoutliers"&&(r("marker.line.outliercolor",t.marker.color),r("marker.line.outlierwidth")),r("selected.marker.color"),r("unselected.marker.color"),r("selected.marker.size"),r("unselected.marker.size"),r("text"),r("hovertext")):delete t.marker;var u=r("hoveron");(u==="all"||u.indexOf("points")!==-1)&&(r("hovertemplate"),r("hovertemplatefallback")),qd.coerceSelectionMarkerOpacity(t,r)}function mqt(e,t){var r,i;function n(l){return qd.coerce(i._input,i,QM,l)}for(var a=0;a{"use strict";var yqt=xi(),xqt=tt(),bqt=JM();function q6e(e,t,r,i,n){for(var a=n+"Layout",o=!1,s=0;s{"use strict";var ZW=hn(),WL=Yi(),wqt=rv(),Bl=tt(),R0=(ra(),Pt(ia)).BADNUM,sm=Bl._;Y6e.exports=function(t,r){var i=t._fullLayout,n=WL.getFromId(t,r.xaxis||"x"),a=WL.getFromId(t,r.yaxis||"y"),o=[],s=r.type==="violin"?"_numViolins":"_numBoxes",l,u,c,f,h,p,d;r.orientation==="h"?(c=n,f="x",h=a,p="y",d=!!r.yperiodalignment):(c=a,f="y",h=n,p="x",d=!!r.xperiodalignment);var v=Tqt(r,p,h,i[s]),m=v[0],g=v[1],w=Bl.distinctVals(m,h),_=w.vals,b=w.minDiff/2,S,x,A,T,y,E,M=(r.boxpoints||r.points)==="all"?Bl.identity:function(xe){return xe.vS.uf};if(r._hasPreCompStats){var C=r[f],k=function(xe){return c.d2c((r[xe]||[])[l])},D=1/0,F=-1/0;for(l=0;l=S.q1&&S.q3>=S.med){var R=k("lowerfence");S.lf=R!==R0&&R<=S.q1?R:G6e(S,A,T);var L=k("upperfence");S.uf=L!==R0&&L>=S.q3?L:H6e(S,A,T);var I=k("mean");S.mean=I!==R0?I:T?Bl.mean(A,T):(S.q1+S.q3)/2;var B=k("sd");S.sd=I!==R0&&B>=0?B:T?Bl.stdev(A,T,S.mean):S.q3-S.q1,S.lo=j6e(S),S.uo=$6e(S);var O=k("notchspan");O=O!==R0&&O>0?O:W6e(S,T),S.ln=S.med-O,S.un=S.med+O;var $=S.lf,X=S.uf;r.boxpoints&&A.length&&($=Math.min($,A[0]),X=Math.max(X,A[T-1])),r.notched&&($=Math.min($,S.ln),X=Math.max(X,S.un)),S.min=$,S.max=X}else{Bl.warn(["Invalid input - make sure that q1 <= median <= q3","q1 = "+S.q1,"median = "+S.med,"q3 = "+S.q3].join(` +`));var K;S.med!==R0?K=S.med:S.q1!==R0?S.q3!==R0?K=(S.q1+S.q3)/2:K=S.q1:S.q3!==R0?K=S.q3:K=0,S.med=K,S.q1=S.q3=K,S.lf=S.uf=K,S.mean=S.sd=K,S.ln=S.un=K,S.min=S.max=K}D=Math.min(D,S.min),F=Math.max(F,S.max),S.pts2=x.filter(M),o.push(S)}}r._extremes[c._id]=WL.findExtremes(c,[D,F],{padded:!0})}else{var G=c.makeCalcdata(r,f),q=Aqt(_,b),J=_.length,N=Mqt(J);for(l=0;l=0&&V0){if(S={},S.pos=S[p]=_[l],x=S.pts=N[l].sort(U6e),A=S[f]=x.map(V6e),T=A.length,S.min=A[0],S.max=A[T-1],S.mean=Bl.mean(A,T),S.sd=Bl.stdev(A,T,S.mean)*r.sdmultiple,S.med=Bl.interp(A,.5),T%2&&(Q||te)){var ue,ge;Q?(ue=A.slice(0,T/2),ge=A.slice(T/2+1)):te&&(ue=A.slice(0,T/2+1),ge=A.slice(T/2)),S.q1=Bl.interp(ue,.5),S.q3=Bl.interp(ge,.5)}else S.q1=Bl.interp(A,.25),S.q3=Bl.interp(A,.75);S.lf=G6e(S,A,T),S.uf=H6e(S,A,T),S.lo=j6e(S),S.uo=$6e(S);var Ee=W6e(S,T);S.ln=S.med-Ee,S.un=S.med+Ee,Y=Math.min(Y,S.ln),H=Math.max(H,S.un),S.pts2=x.filter(M),o.push(S)}r.notched&&Bl.isTypedArray(G)&&(G=Array.from(G)),r._extremes[c._id]=WL.findExtremes(c,r.notched?G.concat([Y,H]):G,{padded:!0})}return Sqt(o,r),o.length>0?(o[0].t={num:i[s],dPos:b,posLetter:p,valLetter:f,labels:{med:sm(t,"median:"),min:sm(t,"min:"),q1:sm(t,"q1:"),q3:sm(t,"q3:"),max:sm(t,"max:"),mean:r.boxmean==="sd"||r.sizemode==="sd"?sm(t,"mean \xB1 \u03C3:").replace("\u03C3",r.sdmultiple===1?"\u03C3":r.sdmultiple+"\u03C3"):sm(t,"mean:"),lf:sm(t,"lower fence:"),uf:sm(t,"upper fence:")}},i[s]++,o):[{t:{empty:!0}}]};function Tqt(e,t,r,i){var n=t in e,a=t+"0"in e,o="d"+t in e;if(n||a&&o){var s=r.makeCalcdata(e,t),l=wqt(e,r,t,s).vals;return[l,s]}var u;a?u=e[t+"0"]:"name"in e&&(r.type==="category"||ZW(e.name)&&["linear","log"].indexOf(r.type)!==-1||Bl.isDateTime(e.name)&&r.type==="date")?u=e.name:u=i;for(var c=r.type==="multicategory"?r.r2c_just_indices(u):r.d2c(u,0,e[t+"calendar"]),f=e._length,h=new Array(f),p=0;p{"use strict";var X6e=Yi(),Eqt=tt(),kqt=kb().getAxisGroup,Z6e=["v","h"];function Cqt(e,t){for(var r=e.calcdata,i=t.xaxis,n=t.yaxis,a=0;a1,w=1-a[e+"gap"],_=1-a[e+"groupgap"];for(l=0;l0;if(A==="positive"?(L=T*(x?1:.5),O=B,I=O=E):A==="negative"?(L=O=E,I=T*(x?1:.5),$=B):(L=I=T,O=$=B),N){var V=b.pointpos,Y=b.jitter,H=b.marker.size/2,j=0;V+Y>=0&&(j=B*(V+Y),j>L?(J=!0,G=H,X=j):j>O&&(G=H,X=L)),j<=L&&(X=L);var Q=0;V-Y<=0&&(Q=-B*(V-Y),Q>I?(J=!0,q=H,K=Q):Q>$&&(q=H,K=I)),Q<=I&&(K=I)}else X=L,K=I;var te=new Array(c.length);for(u=0;u{"use strict";var M5=gi(),Yb=tt(),Dqt=Qi(),Q6e=5,Fqt=.01;function Lqt(e,t,r,i){var n=e._context.staticPlot,a=t.xaxis,o=t.yaxis;Yb.makeTraceGroups(i,r,"trace boxes").each(function(s){var l=M5.select(this),u=s[0],c=u.t,f=u.trace;if(c.wdPos=c.bdPos*f.whiskerwidth,f.visible!==!0||c.empty){l.remove();return}var h,p;f.orientation==="h"?(h=o,p=a):(h=a,p=o),eAe(l,{pos:h,val:p},f,c,n),tAe(l,{x:a,y:o},f,c),rAe(l,{pos:h,val:p},f,c)})}function eAe(e,t,r,i,n){var a=r.orientation==="h",o=t.val,s=t.pos,l=!!s.rangebreaks,u=i.bPos,c=i.wdPos||0,f=i.bPosPxOffset||0,h=r.whiskerwidth||0,p=r.showwhiskers!==!1,d=r.notched||!1,v=d?1-2*r.notchwidth:1,m,g;Array.isArray(i.bdPos)?(m=i.bdPos[0],g=i.bdPos[1]):(m=i.bdPos,g=i.bdPos);var w=e.selectAll("path.box").data(r.type!=="violin"||r.box.visible?Yb.identity:[]);w.enter().append("path").style("vector-effect",n?"none":"non-scaling-stroke").attr("class","box"),w.exit().remove(),w.each(function(_){if(_.empty)return M5.select(this).attr("d","M0,0Z");var b=s.c2l(_.pos+u,!0),S=s.l2p(b-m)+f,x=s.l2p(b+g)+f,A=l?(S+x)/2:s.l2p(b)+f,T=r.whiskerwidth,y=l?S*T+(1-T)*A:s.l2p(b-c)+f,E=l?x*T+(1-T)*A:s.l2p(b+c)+f,M=s.l2p(b-m*v)+f,C=s.l2p(b+g*v)+f,k=r.sizemode==="sd",D=o.c2p(k?_.mean-_.sd:_.q1,!0),F=k?o.c2p(_.mean+_.sd,!0):o.c2p(_.q3,!0),P=Yb.constrain(k?o.c2p(_.mean,!0):o.c2p(_.med,!0),Math.min(D,F)+1,Math.max(D,F)-1),R=_.lf===void 0||r.boxpoints===!1||k,L=o.c2p(R?_.min:_.lf,!0),I=o.c2p(R?_.max:_.uf,!0),B=o.c2p(_.ln,!0),O=o.c2p(_.un,!0);a?M5.select(this).attr("d","M"+P+","+M+"V"+C+"M"+D+","+S+"V"+x+(d?"H"+B+"L"+P+","+C+"L"+O+","+x:"")+"H"+F+"V"+S+(d?"H"+O+"L"+P+","+M+"L"+B+","+S:"")+"Z"+(p?"M"+D+","+A+"H"+L+"M"+F+","+A+"H"+I+(h===0?"":"M"+L+","+y+"V"+E+"M"+I+","+y+"V"+E):"")):M5.select(this).attr("d","M"+M+","+P+"H"+C+"M"+S+","+D+"H"+x+(d?"V"+B+"L"+C+","+P+"L"+x+","+O:"")+"V"+F+"H"+S+(d?"V"+O+"L"+M+","+P+"L"+S+","+B:"")+"Z"+(p?"M"+A+","+D+"V"+L+"M"+A+","+F+"V"+I+(h===0?"":"M"+y+","+L+"H"+E+"M"+y+","+I+"H"+E):""))})}function tAe(e,t,r,i){var n=t.x,a=t.y,o=i.bdPos,s=i.bPos,l=r.boxpoints||r.points;Yb.seedPseudoRandom();var u=function(h){return h.forEach(function(p){p.t=i,p.trace=r}),h},c=e.selectAll("g.points").data(l?u:[]);c.enter().append("g").attr("class","points"),c.exit().remove();var f=c.selectAll("path").data(function(h){var p,d=h.pts2,v=Math.max((h.max-h.min)/10,h.q3-h.q1),m=v*1e-9,g=v*Fqt,w=[],_=0,b;if(r.jitter){if(v===0)for(_=1,w=new Array(d.length),p=0;ph.lo&&(E.so=!0)}return d});f.enter().append("path").classed("point",!0),f.exit().remove(),f.call(Dqt.translatePoints,n,a)}function rAe(e,t,r,i){var n=t.val,a=t.pos,o=!!a.rangebreaks,s=i.bPos,l=i.bPosPxOffset||0,u=r.boxmean||(r.meanline||{}).visible,c,f;Array.isArray(i.bdPos)?(c=i.bdPos[0],f=i.bdPos[1]):(c=i.bdPos,f=i.bdPos);var h=e.selectAll("path.mean").data(r.type==="box"&&r.boxmean||r.type==="violin"&&r.box.visible&&r.meanline.visible?Yb.identity:[]);h.enter().append("path").attr("class","mean").style({fill:"none","vector-effect":"non-scaling-stroke"}),h.exit().remove(),h.each(function(p){var d=a.c2l(p.pos+s,!0),v=a.l2p(d-c)+l,m=a.l2p(d+f)+l,g=o?(v+m)/2:a.l2p(d)+l,w=n.c2p(p.mean,!0),_=n.c2p(p.mean-p.sd,!0),b=n.c2p(p.mean+p.sd,!0);r.orientation==="h"?M5.select(this).attr("d","M"+w+","+v+"V"+m+(u==="sd"?"m0,0L"+_+","+g+"L"+w+","+v+"L"+b+","+g+"Z":"")):M5.select(this).attr("d","M"+v+","+w+"H"+m+(u==="sd"?"m0,0L"+g+","+_+"L"+v+","+w+"L"+g+","+b+"Z":""))})}iAe.exports={plot:Lqt,plotBoxAndWhiskers:eAe,plotPoints:tAe,plotBoxMean:rAe}});var ZL=W((AGr,nAe)=>{"use strict";var JW=gi(),QW=ti(),eY=Qi();function Pqt(e,t,r){var i=r||JW.select(e).selectAll("g.trace.boxes");i.style("opacity",function(n){return n[0].trace.opacity}),i.each(function(n){var a=JW.select(this),o=n[0].trace,s=o.line.width;function l(f,h,p,d){f.style("stroke-width",h+"px").call(QW.stroke,p).call(QW.fill,d)}var u=a.selectAll("path.box");if(o.type==="candlestick")u.each(function(f){if(!f.empty){var h=JW.select(this),p=o[f.dir];l(h,p.line.width,p.line.color,p.fillcolor),h.style("opacity",o.selectedpoints&&!f.selected?.3:1)}});else{l(u,s,o.line.color,o.fillcolor),a.selectAll("path.mean").style({"stroke-width":s,"stroke-dasharray":2*s+"px,"+s+"px"}).call(QW.stroke,o.line.color);var c=a.selectAll("path.point");eY.pointStyle(c,o,e)}})}function Iqt(e,t,r){var i=t[0].trace,n=r.selectAll("path.point");i.selectedpoints?eY.selectedPointStyle(n,i):eY.pointStyle(n,i,e)}nAe.exports={style:Pqt,styleOnSelect:Iqt}});var rY=W((MGr,lAe)=>{"use strict";var Rqt=Yi(),tY=tt(),l2=Is(),aAe=ti(),zqt=tY.fillText;function Bqt(e,t,r,i){var n=e.cd,a=n[0].trace,o=a.hoveron,s=[],l;return o.indexOf("boxes")!==-1&&(s=s.concat(oAe(e,t,r,i))),o.indexOf("points")!==-1&&(l=sAe(e,t,r)),i==="closest"?l?[l]:s:(l&&s.push(l),s)}function oAe(e,t,r,i){var n=e.cd,a=e.xa,o=e.ya,s=n[0].trace,l=n[0].t,u=s.type==="violin",c,f,h,p,d,v,m,g,w,_,b,S=l.bdPos,x,A,T=l.wHover,y=function(H){return h.c2l(H.pos)+l.bPos-h.c2l(v)};u&&s.side!=="both"?(s.side==="positive"&&(w=function(H){var j=y(H);return l2.inbox(j,j+T,_)},x=S,A=0),s.side==="negative"&&(w=function(H){var j=y(H);return l2.inbox(j-T,j,_)},x=0,A=S)):(w=function(H){var j=y(H);return l2.inbox(j-T,j+T,_)},x=A=S);var E;u?E=function(H){return l2.inbox(H.span[0]-d,H.span[1]-d,_)}:E=function(H){return l2.inbox(H.min-d,H.max-d,_)},s.orientation==="h"?(d=t,v=r,m=E,g=w,c="y",h=o,f="x",p=a):(d=r,v=t,m=w,g=E,c="x",h=a,f="y",p=o);var M=Math.min(1,S/Math.abs(h.r2c(h.range[1])-h.r2c(h.range[0])));_=e.maxHoverDistance-M,b=e.maxSpikeDistance-M;function C(H){return(m(H)+g(H))/2}var k=l2.getDistanceFunction(i,m,g,C);if(l2.getClosest(n,k,e),e.index===!1)return[];var D=n[e.index],F=s.line.color,P=(s.marker||{}).color;aAe.opacity(F)&&s.line.width?e.color=F:aAe.opacity(P)&&s.boxpoints?e.color=P:e.color=s.fillcolor,e[c+"0"]=h.c2p(D.pos+l.bPos-A,!0),e[c+"1"]=h.c2p(D.pos+l.bPos+x,!0),e[c+"LabelVal"]=D.orig_p!==void 0?D.orig_p:D.pos;var R=c+"Spike";e.spikeDistance=C(D)*b/_,e[R]=h.c2p(D.pos,!0);var L=s.boxmean||s.sizemode==="sd"||(s.meanline||{}).visible,I=s.boxpoints||s.points,B=I&&L?["max","uf","q3","med","mean","q1","lf","min"]:I&&!L?["max","uf","q3","med","q1","lf","min"]:!I&&L?["max","q3","med","mean","q1","min"]:["max","q3","med","q1","min"],O=p.range[1]{"use strict";uAe.exports=function(t,r){return r.hoverOnBox&&(t.hoverOnBox=r.hoverOnBox),"xVal"in r&&(t.x=r.xVal),"yVal"in r&&(t.y=r.yVal),r.xa&&(t.xaxis=r.xa),r.ya&&(t.yaxis=r.ya),t}});var iY=W((EGr,fAe)=>{"use strict";fAe.exports=function(t,r){var i=t.cd,n=t.xaxis,a=t.yaxis,o=[],s,l;if(r===!1)for(s=0;s{"use strict";hAe.exports={attributes:KM(),layoutAttributes:JM(),supplyDefaults:eS().supplyDefaults,crossTraceDefaults:eS().crossTraceDefaults,supplyLayoutDefaults:$L().supplyLayoutDefaults,calc:KW(),crossTraceCalc:YL().crossTraceCalc,plot:XL().plot,style:ZL().style,styleOnSelect:ZL().styleOnSelect,hoverPoints:rY().hoverPoints,eventData:cAe(),selectPoints:iY(),moduleType:"trace",name:"box",basePlotModule:xl(),categories:["cartesian","svg","symbols","oriented","box-violin","showLegend","boxLayout","zoomScale"],meta:{}}});var vAe=W((CGr,pAe)=>{"use strict";pAe.exports=dAe()});var S5=W((DGr,mAe)=>{"use strict";var qqt=Fo(),{extendFlat:Yh}=an(),Oqt=Ja(),{axisHoverFormat:nY}=Ts(),Nqt=jo(),{hovertemplateAttrs:Uqt,templatefallbackAttrs:gAe,texttemplateAttrs:Vqt}=Wa(),z0=Ws();mAe.exports=Yh({z:{valType:"data_array",editType:"calc"},x:Yh({},z0.x,{impliedEdits:{xtype:"array"}}),x0:Yh({},z0.x0,{impliedEdits:{xtype:"scaled"}}),dx:Yh({},z0.dx,{impliedEdits:{xtype:"scaled"}}),y:Yh({},z0.y,{impliedEdits:{ytype:"array"}}),y0:Yh({},z0.y0,{impliedEdits:{ytype:"scaled"}}),dy:Yh({},z0.dy,{impliedEdits:{ytype:"scaled"}}),xperiod:Yh({},z0.xperiod,{impliedEdits:{xtype:"scaled"}}),yperiod:Yh({},z0.yperiod,{impliedEdits:{ytype:"scaled"}}),xperiod0:Yh({},z0.xperiod0,{impliedEdits:{xtype:"scaled"}}),yperiod0:Yh({},z0.yperiod0,{impliedEdits:{ytype:"scaled"}}),xperiodalignment:Yh({},z0.xperiodalignment,{impliedEdits:{xtype:"scaled"}}),yperiodalignment:Yh({},z0.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:nY("x"),yhoverformat:nY("y"),zhoverformat:nY("z",1),hovertemplate:Uqt(),hovertemplatefallback:gAe(),texttemplate:Vqt({arrayOk:!1,editType:"plot"},{keys:["x","y","z","text"]}),texttemplatefallback:gAe({editType:"plot"}),textfont:Nqt({editType:"plot",autoSize:!0,autoColor:!0,colorEditType:"style"}),showlegend:Yh({},Oqt.showlegend,{dflt:!1}),zorder:z0.zorder},qqt("",{cLetter:"z",autoColorDflt:!1}))});var JL=W((FGr,xAe)=>{"use strict";var Gqt=hn(),KL=tt(),Hqt=xi();xAe.exports=function(t,r,i,n,a,o){var s=i("z");a=a||"x",o=o||"y";var l,u;if(s===void 0||!s.length)return 0;if(KL.isArray1D(s)){l=i(a),u=i(o);var c=KL.minRowLength(l),f=KL.minRowLength(u);if(c===0||f===0)return 0;r._length=Math.min(c,f,s.length)}else{if(l=yAe(a,i),u=yAe(o,i),!jqt(s))return 0;i("transpose"),r._length=null}var h=Hqt.getComponentMethod("calendars","handleTraceDefaults");return h(t,r,[a,o],n),!0};function yAe(e,t){var r=t(e),i=r?t(e+"type","array"):"scaled";return i==="scaled"&&(t(e+"0"),t("d"+e)),r}function jqt(e){for(var t=!0,r=!1,i=!1,n,a=0;a0&&(r=!0);for(var o=0;o{"use strict";var bAe=tt();_Ae.exports=function(t,r){t("texttemplate"),t("texttemplatefallback");var i=bAe.extendFlat({},r.font,{color:"auto",size:"auto"});bAe.coerceFont(t,"textfont",i)}});var aY=W((PGr,wAe)=>{"use strict";wAe.exports=function(t,r,i){var n=i("zsmooth");n===!1&&(i("xgap"),i("ygap")),i("zhoverformat")}});var MAe=W((IGr,AAe)=>{"use strict";var TAe=tt(),$qt=JL(),Wqt=tS(),Yqt=Qp(),Xqt=aY(),Zqt=Bu(),Kqt=S5();AAe.exports=function(t,r,i,n){function a(s,l){return TAe.coerce(t,r,Kqt,s,l)}var o=$qt(t,r,a,n);if(!o){r.visible=!1;return}Yqt(t,r,n,a),a("xhoverformat"),a("yhoverformat"),a("text"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback"),Wqt(a,n),Xqt(t,r,a,n),a("hoverongaps"),a("connectgaps",TAe.isArray1D(r.z)&&r.zsmooth!==!1),Zqt(t,r,n,a,{prefix:"",cLetter:"z"}),a("zorder")}});var oY=W((RGr,SAe)=>{"use strict";var E5=hn();SAe.exports={count:function(e,t,r){return r[e]++,1},sum:function(e,t,r,i){var n=i[t];return E5(n)?(n=Number(n),r[e]+=n,n):0},avg:function(e,t,r,i,n){var a=i[t];return E5(a)&&(a=Number(a),r[e]+=a,n[e]++),0},min:function(e,t,r,i){var n=i[t];if(E5(n))if(n=Number(n),E5(r[e])){if(r[e]>n){var a=n-r[e];return r[e]=n,a}}else return r[e]=n,n;return 0},max:function(e,t,r,i){var n=i[t];if(E5(n))if(n=Number(n),E5(r[e])){if(r[e]{"use strict";EAe.exports={percent:function(e,t){for(var r=e.length,i=100/t,n=0;n{"use strict";kAe.exports=function(t,r){for(var i=t.length,n=0,a=0;a{"use strict";var k5=(ra(),Pt(ia)),Xb=k5.ONEAVGYEAR,CAe=k5.ONEAVGMONTH,eP=k5.ONEDAY,DAe=k5.ONEHOUR,FAe=k5.ONEMIN,LAe=k5.ONESEC,PAe=Yi().tickIncrement;zAe.exports=function(t,r,i,n,a){var o=-1.1*r,s=-.1*r,l=t-s,u=i[0],c=i[1],f=Math.min(QL(u+s,u+l,n,a),QL(c+s,c+l,n,a)),h=Math.min(QL(u+o,u+s,n,a),QL(c+o,c+s,n,a)),p,d;if(f>h&&heP){var v=p===Xb?1:6,m=p===Xb?"M12":"M1";return function(g,w){var _=n.c2d(g,Xb,a),b=_.indexOf("-",v);b>0&&(_=_.slice(0,b));var S=n.d2c(_,0,a);if(SLAe?e>eP?e>Xb*1.1?Xb:e>CAe*1.1?CAe:eP:e>DAe?DAe:e>FAe?FAe:LAe:Math.pow(10,Math.floor(Math.log(e)/Math.LN10))}function Jqt(e,t,r,i,n,a){if(i&&e>eP){var o=RAe(t,n,a),s=RAe(r,n,a),l=e===Xb?0:1;return o[l]!==s[l]}return Math.floor(r/e)-Math.floor(t/e)>.1}function RAe(e,t,r){var i=t.c2d(e,Xb,r).split("-");return i[0]===""&&(i.unshift(),i[0]="-"+i[0]),i}});var hY=W((OGr,UAe)=>{"use strict";var cY=hn(),Rf=tt(),BAe=xi(),Od=Yi(),{hasColorscale:qAe}=Sc(),OAe=rf(),Qqt=WM(),NAe=oY(),eOt=sY(),tOt=lY(),rOt=uY();function iOt(e,t){var r=[],i=[],n=t.orientation==="h",a=Od.getFromId(e,n?t.yaxis:t.xaxis),o=n?"y":"x",s={x:"y",y:"x"}[o],l=t[o+"calendar"],u=t.cumulative,c,f=fY(e,t,a,o),h=f[0],p=f[1],d=typeof h.size=="string",v=[],m=d?v:h,g=[],w=[],_=[],b=0,S=t.histnorm,x=t.histfunc,A=S.indexOf("density")!==-1,T,y,E;u.enabled&&A&&(S=S.replace(/ ?density$/,""),A=!1);var M=x==="max"||x==="min",C=M?null:0,k=NAe.count,D=eOt[S],F=!1,P=function(j){return a.r2c(j,0,l)},R;for(Rf.isArrayOrTypedArray(t[s])&&x!=="count"&&(R=t[s],F=x==="avg",k=NAe[x]),c=P(h.start),y=P(h.end)+(c-Od.tickIncrement(c,h.size,!1,l))/1e6;c=0&&E=V;c--)if(i[c]){Y=c;break}for(c=V;c<=Y;c++)if(cY(r[c])&&cY(i[c])){var H={p:r[c],s:i[c],b:0};u.enabled||(H.pts=_[c],O?H.ph0=H.ph1=_[c].length?p[_[c][0]]:r[c]:(t._computePh=!0,H.ph0=q(v[c]),H.ph1=q(v[c+1],!0))),N.push(H)}return N.length===1&&(N[0].width1=Od.tickIncrement(N[0].p,h.size,!1,l)-N[0].p),qAe(t,"marker")&&OAe(e,t,{vals:t.marker.color,containerStr:"marker",cLetter:"c"}),qAe(t,"marker.line")&&OAe(e,t,{vals:t.marker.line.color,containerStr:"marker.line",cLetter:"c"}),Qqt(N,t),Rf.isArrayOrTypedArray(t.selectedpoints)&&Rf.tagSelected(N,t,K),N}function fY(e,t,r,i,n){var G;var a=i+"bins",o=e._fullLayout,s=t["_"+i+"bingroup"],l=o._histogramBinOpts[s],u=o.barmode==="overlay",c,f,h,p,d,v,m,g=function(q){return r.r2c(q,0,p)},w=function(q){return r.c2r(q,0,p)},_=r.type==="date"?function(q){return q||q===0?Rf.cleanDate(q,null,p):null}:function(q){return cY(q)?Number(q):null};function b(q,J,N){J[q+"Found"]?(J[q]=_(J[q]),J[q]===null&&(J[q]=N[q])):(v[q]=J[q]=N[q],Rf.nestedProperty(f[0],a+"."+q).set(N[q]))}if(t["_"+i+"autoBinFinished"])delete t["_"+i+"autoBinFinished"];else{f=l.traces;var S=[],x=!0,A=!1,T=!1;for(c=0;cr.r2l(R)&&(I=Od.tickIncrement(I,l.size,!0,p)),k.start=r.l2r(I),P||Rf.nestedProperty(t,a+".start").set(k.start)}var B=l.end,O=r.r2l(C.end),$=O!==void 0;if((l.endFound||$)&&O!==r.r2l(B)){var X=$?O:Rf.aggNums(Math.max,null,d);k.end=r.l2r(X),$||Rf.nestedProperty(t,a+".start").set(k.end)}var K="autobin"+i;return t._input[K]===!1&&(t._input[a]=Rf.extendFlat({},t[a]||{}),delete t._input[K],delete t[K]),[k,d]}function nOt(e,t,r,i,n){var a=e._fullLayout,o=aOt(e,t),s=!1,l=1/0,u=[t],c,f,h;for(c=0;c=0;i--)s(i);else if(t==="increasing"){for(i=1;i=0;i--)e[i]+=e[i+1];r==="exclude"&&(e.push(0),e.shift())}}UAe.exports={calc:iOt,calcAllAutoBins:fY}});var XAe=W((NGr,YAe)=>{"use strict";var VAe=tt(),C5=Yi(),GAe=oY(),sOt=sY(),lOt=lY(),uOt=uY(),HAe=hY().calcAllAutoBins;YAe.exports=function(t,r){var i=C5.getFromId(t,r.xaxis),n=C5.getFromId(t,r.yaxis),a=r.xcalendar,o=r.ycalendar,s=function(we){return i.r2c(we,0,a)},l=function(we){return n.r2c(we,0,o)},u=function(we){return i.c2r(we,0,a)},c=function(we){return n.c2r(we,0,o)},f,h,p,d,v=HAe(t,r,i,"x"),m=v[0],g=v[1],w=HAe(t,r,n,"y"),_=w[0],b=w[1],S=r._length;g.length>S&&g.splice(S,g.length-S),b.length>S&&b.splice(S,b.length-S);var x=[],A=[],T=[],y=typeof m.size=="string",E=typeof _.size=="string",M=[],C=[],k=y?M:m,D=E?C:_,F=0,P=[],R=[],L=r.histnorm,I=r.histfunc,B=L.indexOf("density")!==-1,O=I==="max"||I==="min",$=O?null:0,X=GAe.count,K=sOt[L],G=!1,q=[],J=[],N="z"in r?r.z:"marker"in r&&Array.isArray(r.marker.color)?r.marker.color:"";N&&I!=="count"&&(G=I==="avg",X=GAe[I]);var V=m.size,Y=s(m.start),H=s(m.end)+(Y-C5.tickIncrement(Y,V,!1,a))/1e6;for(f=Y;f=0&&p=0&&d{"use strict";var z1=tt(),ZAe=(ra(),Pt(ia)).BADNUM,KAe=rv();JAe.exports=function(t,r,i,n,a,o){var s=t._length,l=r.makeCalcdata(t,n),u=i.makeCalcdata(t,a);l=KAe(t,r,n,l).vals,u=KAe(t,i,a,u).vals;var c=t.text,f=c!==void 0&&z1.isArray1D(c),h=t.hovertext,p=h!==void 0&&z1.isArray1D(h),d,v,m=z1.distinctVals(l),g=m.vals,w=z1.distinctVals(u),_=w.vals,b=[],S,x,A=_.length,T=g.length;for(d=0;d{"use strict";var cOt=hn(),fOt=tt(),rP=(ra(),Pt(ia)).BADNUM;QAe.exports=function(t,r,i,n){var a,o,s,l,u,c;function f(g){if(cOt(g))return+g}if(r&&r.transpose){for(a=0,u=0;u{"use strict";var hOt=tt(),eMe=.01,dOt=[[-1,0],[1,0],[0,-1],[0,1]];function pOt(e){return .5-.25*Math.min(1,e*.5)}rMe.exports=function(t,r){var i=1,n;for(tMe(t,r),n=0;neMe;n++)i=tMe(t,r,pOt(i));return i>eMe&&hOt.log("interp2d didn't converge quickly",i),t};function tMe(e,t,r){var i=0,n,a,o,s,l,u,c,f,h,p,d,v,m;for(s=0;sv&&(i=Math.max(i,Math.abs(e[a][o]-d)/(m-v))))}return i}});var aP=W((HGr,iMe)=>{"use strict";var vOt=tt().maxRowLength;iMe.exports=function(t){var r=[],i={},n=[],a=t[0],o=[],s=[0,0,0],l=vOt(t),u,c,f,h,p,d,v,m;for(c=0;c=0;p--)h=n[p],c=h[0],f=h[1],d=((i[[c-1,f]]||s)[2]+(i[[c+1,f]]||s)[2]+(i[[c,f-1]]||s)[2]+(i[[c,f+1]]||s)[2])/20,d&&(v[h]=[c,f,d],n.splice(p,1),m=!0);if(!m)throw"findEmpties iterated with no new neighbors";for(h in v)i[h]=v[h],r.push(v[h])}return r.sort(function(g,w){return w[2]-g[2]})}});var dY=W((jGr,oMe)=>{"use strict";var nMe=xi(),aMe=tt().isArrayOrTypedArray;oMe.exports=function(t,r,i,n,a,o){var s=[],l=nMe.traceIs(t,"contour"),u=nMe.traceIs(t,"histogram"),c,f,h,p=aMe(r)&&r.length>1;if(p&&!u&&o.type!=="category"){var d=r.length;if(d<=a){if(l)s=Array.from(r).slice(0,a);else if(a===1)o.type==="log"?s=[.5*r[0],2*r[0]]:s=[r[0]-.5,r[0]+.5];else if(o.type==="log"){for(s=[Math.pow(r[0],1.5)/Math.pow(r[1],.5)],h=1;h{"use strict";var sMe=xi(),pY=tt(),oP=Yi(),lMe=rv(),gOt=XAe(),mOt=rf(),yOt=tP(),xOt=iP(),bOt=nP(),_Ot=aP(),sP=dY(),vY=(ra(),Pt(ia)).BADNUM;cMe.exports=function(t,r){var i=oP.getFromId(t,r.xaxis||"x"),n=oP.getFromId(t,r.yaxis||"y"),a=sMe.traceIs(r,"contour"),o=sMe.traceIs(r,"histogram"),s=a?"best":r.zsmooth,l,u,c,f,h,p,d,v,m,g,w;if(i._minDtick=0,n._minDtick=0,o)w=gOt(t,r),f=w.orig_x,l=w.x,u=w.x0,c=w.dx,v=w.orig_y,h=w.y,p=w.y0,d=w.dy,m=w.z;else{var _=r.z;pY.isArray1D(_)?(yOt(r,i,n,"x","y",["z"]),l=r._x,h=r._y,_=r._z):(f=r.x?i.makeCalcdata(r,"x"):[],v=r.y?n.makeCalcdata(r,"y"):[],l=lMe(r,i,"x",f).vals,h=lMe(r,n,"y",v).vals,r._x=l,r._y=h),u=r.x0,c=r.dx,p=r.y0,d=r.dy,m=xOt(_,r,i,n)}(i.rangebreaks||n.rangebreaks)&&(m=wOt(l,h,m),o||(l=uMe(l),h=uMe(h),r._x=l,r._y=h)),!o&&(a||r.connectgaps)&&(r._emptypoints=_Ot(m),bOt(m,r._emptypoints));function b(k){s=r._input.zsmooth=r.zsmooth=!1,pY.warn('cannot use zsmooth: "fast": '+k)}function S(k){if(k.length>1){var D=(k[k.length-1]-k[0])/(k.length-1),F=Math.abs(D/100);for(g=0;gF)return!1}return!0}r._islinear=!1,i.type==="log"||n.type==="log"?s==="fast"&&b("log axis found"):S(l)?S(h)?r._islinear=!0:s==="fast"&&b("y scale is not linear"):s==="fast"&&b("x scale is not linear");var x=pY.maxRowLength(m),A=r.xtype==="scaled"?"":l,T=sP(r,A,u,c,x,i),y=r.ytype==="scaled"?"":h,E=sP(r,y,p,d,m.length,n);r._extremes[i._id]=oP.findExtremes(i,T),r._extremes[n._id]=oP.findExtremes(n,E);var M={x:T,y:E,z:m,text:r._text||r.text,hovertext:r._hovertext||r.hovertext};if(r.xperiodalignment&&f&&(M.orig_x=f),r.yperiodalignment&&v&&(M.orig_y=v),A&&A.length===T.length-1&&(M.xCenter=A),y&&y.length===E.length-1&&(M.yCenter=y),o&&(M.xRanges=w.xRanges,M.yRanges=w.yRanges,M.pts=w.pts),a||mOt(t,r,{vals:m,cLetter:"z"}),a&&r.contours&&r.contours.coloring==="heatmap"){var C={type:r.type==="contour"?"heatmap":"histogram2d",xcalendar:r.xcalendar,ycalendar:r.ycalendar};M.xfill=sP(C,A,u,c,x,i),M.yfill=sP(C,y,p,d,m.length,n)}return[M]};function uMe(e){for(var t=[],r=e.length,i=0;ifMe,STYLE:()=>TOt});var fMe,TOt,cP=Ci(()=>{"use strict";fMe=[["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"]],TOt=fMe.map(e=>e.join(": ")+"; ").join("")});var mY=W((WGr,dMe)=>{"use strict";var hMe=(cP(),Pt(uP)),AOt=Qi(),gY=tt(),D5=null;function MOt(){if(D5!==null)return D5;D5=!1;var e=gY.isSafari()||gY.isMacWKWebView()||gY.isIOS();if(window.navigator.userAgent&&!e){var t=Array.from(hMe.CSS_DECLARATIONS).reverse(),r=window.CSS&&window.CSS.supports||window.supportsCSS;if(typeof r=="function")D5=t.some(function(o){return r.apply(null,o)});else{var i=AOt.tester.append("image").attr("style",hMe.STYLE),n=window.getComputedStyle(i.node()),a=n.imageRendering;D5=t.some(function(o){var s=o[1];return a===s||a===s.toLowerCase()}),i.remove()}}return D5}dMe.exports=MOt});var fP=W((YGr,TMe)=>{"use strict";var pMe=gi(),SOt=xi(),EOt=Qi(),kOt=Yi(),Nd=tt(),vMe=ao(),COt=QF(),gMe=ti(),DOt=es().extractOpts,FOt=es().makeColorScaleFuncFromTrace,LOt=(md(),Pt(gd)),POt=(Jl(),Pt(Kl)),yY=POt.LINE_SPACING,IOt=mY(),ROt=(cP(),Pt(uP)).STYLE,_Me="heatmap-label";function wMe(e){return e.selectAll("g."+_Me)}function mMe(e){wMe(e).remove()}TMe.exports=function(e,t,r,i){var n=t.xaxis,a=t.yaxis;Nd.makeTraceGroups(i,r,"hm").each(function(o){var s=pMe.select(this),l=o[0],u=l.trace,c=u.xgap||0,f=u.ygap||0,h=l.z,p=l.x,d=l.y,v=l.xCenter,m=l.yCenter,g=SOt.traceIs(u,"contour"),w=g?"best":u.zsmooth,_=h.length,b=Nd.maxRowLength(h),S=!1,x=!1,A,T,y,E,M,C,k,D;for(C=0;A===void 0&&C0;)T=n.c2p(p[C]),C--;for(T0;)M=a.c2p(d[C]),C--;M=n._length||T<=0||E>=a._length||M<=0;if(I){var B=s.selectAll("image").data([]);B.exit().remove(),mMe(s);return}var O,$;F==="fast"?(O=b,$=_):(O=R,$=L);var X=document.createElement("canvas");X.width=O,X.height=$;var K=X.getContext("2d",{willReadFrequently:!0}),G=FOt(u,{noNumericCheck:!0,returnArray:!0}),q,J;F==="fast"?(q=S?function(pn){return b-1-pn}:Nd.identity,J=x?function(pn){return _-1-pn}:Nd.identity):(q=function(pn){return Nd.constrain(Math.round(n.c2p(p[pn])-A),0,R)},J=function(pn){return Nd.constrain(Math.round(a.c2p(d[pn])-E),0,L)});var N=J(0),V=[N,N],Y=S?0:1,H=x?0:1,j=0,Q=0,te=0,ue=0,ge,Ee,xe,ce,oe;function Se(pn,zn=0){if(pn===void 0)return[0,0,0,0];var gn=G(pn);return gn[0]=Math.round(gn[0]),gn[1]=Math.round(gn[1]),gn[2]=Math.round(gn[2]),j+=zn,Q+=gn[0]*zn,te+=gn[1]*zn,ue+=gn[2]*zn,gn}function be(pn,zn,gn,ns){var ua=pn[gn.bin0];if(ua===void 0)return Se(void 0,1);var as=pn[gn.bin1],ro=zn[gn.bin0],ba=zn[gn.bin1],co=as-ua||0,Us=ro-ua||0,Ma;return as===void 0?ba===void 0?Ma=0:ro===void 0?Ma=2*(ba-ua):Ma=(2*ba-ro-ua)*2/3:ba===void 0?ro===void 0?Ma=0:Ma=(2*ua-as-ro)*2/3:ro===void 0?Ma=(2*ba-as-ua)*2/3:Ma=ba+ua-as-ro,Se(ua+gn.frac*co+ns.frac*(Us+gn.frac*Ma))}if(F!=="default"){var fe=0,ee;try{ee=new Uint8Array(O*$*4)}catch(pn){ee=new Array(O*$*4)}if(F==="smooth"){var ae=v||p,_e=m||d,re=new Array(ae.length),pe=new Array(_e.length),Te=new Array(R),Ce=v?xMe:yMe,ze=m?xMe:yMe,we,me,Le;for(C=0;CWt||Wt>a._length))for(k=Ie;kfr||fr>n._length)){var lr=COt({x:Ht,y:_t},u,e._fullLayout);lr.x=Ht,lr.y=_t;var Ot=l.z[C][k];Ot===void 0?(lr.z="",lr.zLabel=""):(lr.z=Ot,lr.zLabel=kOt.tickText(pt,Ot,"hover").text);var Jt=l.text&&l.text[C]&&l.text[C][k];(Jt===void 0||Jt===!1)&&(Jt=""),lr.text=Jt;var Cr=Nd.texttemplateString({data:[lr,u._meta],fallback:u.texttemplatefallback,labels:lr,locale:e._fullLayout._d3locale,template:Ke});if(Cr){var Ge=Cr.split("
"),Qe=Ge.length,nt=0;for(D=0;D{"use strict";AMe.exports={min:"zmin",max:"zmax"}});var hP=W((ZGr,MMe)=>{"use strict";var zOt=gi();MMe.exports=function(t){zOt.select(t).selectAll(".hm image").style("opacity",function(r){return r.trace.opacity})}});var pP=W((KGr,EMe)=>{"use strict";var SMe=Is(),rS=tt(),dP=rS.isArrayOrTypedArray,BOt=Yi(),qOt=es().extractOpts;EMe.exports=function(t,r,i,n,a){a||(a={});var o=a.isContour,s=t.cd[0],l=s.trace,u=t.xa,c=t.ya,f=s.x,h=s.y,p=s.z,d=s.xCenter,v=s.yCenter,m=s.zmask,g=l.zhoverformat,w=f,_=h,b,S,x,A;if(t.index!==!1){try{x=Math.round(t.index[1]),A=Math.round(t.index[0])}catch(B){rS.error("Error hovering on heatmap, pointNumber must be [row,col], found:",t.index);return}if(x<0||x>=p[0].length||A<0||A>p.length)return}else{if(SMe.inbox(r-f[0],r-f[f.length-1],0)>0||SMe.inbox(i-h[0],i-h[h.length-1],0)>0)return;if(o){var T;for(w=[2*f[0]-f[1]],T=1;T{"use strict";kMe.exports={attributes:S5(),supplyDefaults:MAe(),calc:lP(),plot:fP(),colorbar:F5(),style:hP(),hoverPoints:pP(),moduleType:"trace",name:"heatmap",basePlotModule:xl(),categories:["cartesian","svg","2dMap","showLegend"],meta:{}}});var FMe=W((QGr,DMe)=>{"use strict";DMe.exports=CMe()});var xY=W((eHr,LMe)=>{"use strict";LMe.exports=function(t,r){return{start:{valType:"any",editType:"calc"},end:{valType:"any",editType:"calc"},size:{valType:"any",editType:"calc"},editType:"calc"}}});var PMe={};Jn(PMe,{eventDataKeys:()=>OOt});var OOt,IMe=Ci(()=>{"use strict";OOt=["binNumber"]});var vP=W((tHr,qMe)=>{"use strict";var Xh=R1(),RMe=Ts().axisHoverFormat,{hovertemplateAttrs:NOt,texttemplateAttrs:UOt,templatefallbackAttrs:zMe}=Wa(),bY=jo(),BMe=xY(),VOt=(IMe(),Pt(PMe)),_Y=an().extendFlat;qMe.exports={x:{valType:"data_array",editType:"calc+clearAxisTypes"},y:{valType:"data_array",editType:"calc+clearAxisTypes"},xhoverformat:RMe("x"),yhoverformat:RMe("y"),text:_Y({},Xh.text,{}),hovertext:_Y({},Xh.hovertext,{}),orientation:Xh.orientation,histfunc:{valType:"enumerated",values:["count","sum","avg","min","max"],dflt:"count",editType:"calc"},histnorm:{valType:"enumerated",values:["","percent","probability","density","probability density"],dflt:"",editType:"calc"},cumulative:{enabled:{valType:"boolean",dflt:!1,editType:"calc"},direction:{valType:"enumerated",values:["increasing","decreasing"],dflt:"increasing",editType:"calc"},currentbin:{valType:"enumerated",values:["include","exclude","half"],dflt:"include",editType:"calc"},editType:"calc"},nbinsx:{valType:"integer",min:0,dflt:0,editType:"calc"},xbins:BMe("x",!0),nbinsy:{valType:"integer",min:0,dflt:0,editType:"calc"},ybins:BMe("y",!0),autobinx:{valType:"boolean",dflt:null,editType:"calc"},autobiny:{valType:"boolean",dflt:null,editType:"calc"},bingroup:{valType:"string",dflt:"",editType:"calc"},hovertemplate:NOt({},{keys:VOt.eventDataKeys}),hovertemplatefallback:zMe(),texttemplate:UOt({arrayOk:!1,editType:"plot"},{keys:["label","value"]}),texttemplatefallback:zMe({editType:"plot"}),textposition:_Y({},Xh.textposition,{arrayOk:!1}),textfont:bY({arrayOk:!1,editType:"plot",colorEditType:"style"}),outsidetextfont:bY({arrayOk:!1,editType:"plot",colorEditType:"style"}),insidetextfont:bY({arrayOk:!1,editType:"plot",colorEditType:"style"}),insidetextanchor:Xh.insidetextanchor,textangle:Xh.textangle,cliponaxis:Xh.cliponaxis,constraintext:Xh.constraintext,marker:Xh.marker,offsetgroup:Xh.offsetgroup,alignmentgroup:Xh.alignmentgroup,selected:Xh.selected,unselected:Xh.unselected,zorder:Xh.zorder}});var VMe=W((rHr,UMe)=>{"use strict";var OMe=xi(),iS=tt(),NMe=ti(),GOt=I0().handleText,HOt=NL(),jOt=vP();UMe.exports=function(t,r,i,n){function a(w,_){return iS.coerce(t,r,jOt,w,_)}var o=a("x"),s=a("y"),l=a("cumulative.enabled");l&&(a("cumulative.direction"),a("cumulative.currentbin")),a("text");var u=a("textposition");GOt(t,r,n,a,u,{moduleHasSelected:!0,moduleHasUnselected:!0,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback"),a("xhoverformat"),a("yhoverformat");var c=a("orientation",s&&!o?"h":"v"),f=c==="v"?"x":"y",h=c==="v"?"y":"x",p=o&&s?Math.min(iS.minRowLength(o)&&iS.minRowLength(s)):iS.minRowLength(r[f]||[]);if(!p){r.visible=!1;return}r._length=p;var d=OMe.getComponentMethod("calendars","handleTraceDefaults");d(t,r,["x","y"],n);var v=r[h];v&&a("histfunc"),a("histnorm"),a("autobin"+f),HOt(t,r,a,i,n),iS.coerceSelectionMarkerOpacity(r,a);var m=(r.marker.line||{}).color,g=OMe.getComponentMethod("errorbars","supplyDefaults");g(t,r,m||NMe.defaultLine,{axis:"y"}),g(t,r,m||NMe.defaultLine,{axis:"x",inherit:"y"}),a("zorder")}});var mP=W((iHr,jMe)=>{"use strict";var nS=tt(),$Ot=Ls(),gP=xi().traceIs,WOt=Pb(),YOt=I0().validateCornerradius,GMe=nS.nestedProperty,wY=kb().getAxisGroup,HMe=[{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"}],XOt=["x","y"];jMe.exports=function(t,r){var i=r._histogramBinOpts={},n=[],a={},o=[],s,l,u,c,f,h,p;function d(F,P){return nS.coerce(s._input,s,s._module.attributes,F,P)}function v(F){return F.orientation==="v"?"x":"y"}function m(F,P){var R=$Ot.getFromTrace({_fullLayout:r},F,P);return R.type}function g(F,P,R){var L=F.uid+"__"+R;P||(P=L);var I=m(F,R),B=F[R+"calendar"]||"",O=i[P],$=!0;O&&(I===O.axType&&B===O.calendar?($=!1,O.traces.push(F),O.dirs.push(R)):(P=L,I!==O.axType&&nS.warn(["Attempted to group the bins of trace",F.index,"set on a","type:"+I,"axis","with bins on","type:"+O.axType,"axis."].join(" ")),B!==O.calendar&&nS.warn(["Attempted to group the bins of trace",F.index,"set with a",B,"calendar","with bins",O.calendar?"on a "+O.calendar+" calendar":"w/o a set calendar"].join(" ")))),$&&(i[P]={traces:[F],dirs:[R],axType:I,calendar:F[R+"calendar"]||""}),F["_"+R+"bingroup"]=P}for(f=0;f{"use strict";var ZOt=w5().hoverPoints,KOt=Yi().hoverLabelText;$Me.exports=function(t,r,i,n,a){var o=ZOt(t,r,i,n,a);if(o){t=o[0];var s=t.cd[t.index],l=t.cd[0].trace;if(!l.cumulative.enabled){var u=l.orientation==="h"?"y":"x";t[u+"Label"]=KOt(t[u+"a"],[s.ph0,s.ph1],l[u+"hoverformat"])}return o}}});var TY=W((aHr,YMe)=>{"use strict";YMe.exports=function(t,r,i,n,a){if(t.x="xVal"in r?r.xVal:r.x,t.y="yVal"in r?r.yVal:r.y,"zLabelVal"in r&&(t.z=r.zLabelVal),r.xa&&(t.xaxis=r.xa),r.ya&&(t.yaxis=r.ya),!(i.cumulative||{}).enabled){var o=Array.isArray(a)?n[0].pts[a[0]][a[1]]:n[a].pts;t.pointNumbers=o,t.binNumber=t.pointNumber,delete t.pointNumber,delete t.pointIndex,t.pointIndices=o}return t}});var ZMe=W((oHr,XMe)=>{"use strict";XMe.exports={attributes:vP(),layoutAttributes:OL(),supplyDefaults:VMe(),crossTraceDefaults:mP(),supplyLayoutDefaults:GW(),calc:hY().calc,crossTraceCalc:Ib().crossTraceCalc,plot:Wb().plot,layerName:"barlayer",style:zd().style,styleOnSelect:zd().styleOnSelect,colorbar:Cc(),hoverPoints:WMe(),selectPoints:T5(),eventData:TY(),moduleType:"trace",name:"histogram",basePlotModule:xl(),categories:["bar-like","cartesian","svg","bar","histogram","oriented","errorBarsOK","showLegend"],meta:{}}});var JMe=W((sHr,KMe)=>{"use strict";KMe.exports=ZMe()});var xP=W((lHr,tSe)=>{"use strict";var hv=vP(),QMe=xY(),yP=S5(),JOt=Ja(),AY=Ts().axisHoverFormat,{hovertemplateAttrs:QOt,texttemplateAttrs:eNt,templatefallbackAttrs:eSe}=Wa(),tNt=Fo(),aS=an().extendFlat;tSe.exports=aS({x:hv.x,y:hv.y,z:{valType:"data_array",editType:"calc"},marker:{color:{valType:"data_array",editType:"calc"},editType:"calc"},histnorm:hv.histnorm,histfunc:hv.histfunc,nbinsx:hv.nbinsx,xbins:QMe("x"),nbinsy:hv.nbinsy,ybins:QMe("y"),autobinx:hv.autobinx,autobiny:hv.autobiny,bingroup:aS({},hv.bingroup,{}),xbingroup:aS({},hv.bingroup,{}),ybingroup:aS({},hv.bingroup,{}),xgap:yP.xgap,ygap:yP.ygap,zsmooth:yP.zsmooth,xhoverformat:AY("x"),yhoverformat:AY("y"),zhoverformat:AY("z",1),hovertemplate:QOt({},{keys:["z"]}),hovertemplatefallback:eSe(),texttemplate:eNt({arrayOk:!1,editType:"plot"},{keys:["z"]}),texttemplatefallback:eSe({editType:"plot"}),textfont:yP.textfont,showlegend:aS({},JOt.showlegend,{dflt:!1})},tNt("",{cLetter:"z",autoColorDflt:!1}))});var MY=W((uHr,iSe)=>{"use strict";var rNt=xi(),rSe=tt();iSe.exports=function(t,r,i,n){var a=i("x"),o=i("y"),s=rSe.minRowLength(a),l=rSe.minRowLength(o);if(!s||!l){r.visible=!1;return}r._length=Math.min(s,l);var u=rNt.getComponentMethod("calendars","handleTraceDefaults");u(t,r,["x","y"],n);var c=i("z")||i("marker.color");c&&i("histfunc"),i("histnorm"),i("autobinx"),i("autobiny")}});var aSe=W((cHr,nSe)=>{"use strict";var iNt=tt(),nNt=MY(),aNt=aY(),oNt=Bu(),sNt=tS(),lNt=xP();nSe.exports=function(t,r,i,n){function a(o,s){return iNt.coerce(t,r,lNt,o,s)}nNt(t,r,a,n),r.visible!==!1&&(aNt(t,r,a,n),oNt(t,r,n,a,{prefix:"",cLetter:"z"}),a("hovertemplate"),a("hovertemplatefallback"),sNt(a,n),a("xhoverformat"),a("yhoverformat"))}});var lSe=W((fHr,sSe)=>{"use strict";var uNt=pP(),oSe=Yi().hoverLabelText;sSe.exports=function(t,r,i,n,a){var o=uNt(t,r,i,n,a);if(o){t=o[0];var s=t.index,l=s[0],u=s[1],c=t.cd[0],f=c.trace,h=c.xRanges[u],p=c.yRanges[l];return t.xLabel=oSe(t.xa,[h[0],h[1]],f.xhoverformat),t.yLabel=oSe(t.ya,[p[0],p[1]],f.yhoverformat),o}}});var cSe=W((hHr,uSe)=>{"use strict";uSe.exports={attributes:xP(),supplyDefaults:aSe(),crossTraceDefaults:mP(),calc:lP(),plot:fP(),layerName:"heatmaplayer",colorbar:F5(),style:hP(),hoverPoints:lSe(),eventData:TY(),moduleType:"trace",name:"histogram2d",basePlotModule:xl(),categories:["cartesian","svg","2dMap","histogram","showLegend"],meta:{}}});var hSe=W((dHr,fSe)=>{"use strict";fSe.exports=cSe()});var bP={};Jn(bP,{COMPARISON_OPS:()=>cNt,COMPARISON_OPS2:()=>fNt,CONSTRAINT_REDUCTION:()=>pNt,INTERVAL_OPS:()=>hNt,SET_OPS:()=>dNt});var cNt,fNt,hNt,dNt,pNt,_P=Ci(()=>{"use strict";cNt=["=","!=","<",">=",">","<="],fNt=["=","<",">=",">","<="],hNt=["[]","()","[)","(]","][",")(","](",")["],dNt=["{}","}{"],pNt={"=":"=","<":"<","<=":"<",">":">",">=":">","[]":"[]","()":"[]","[)":"[]","(]":"[]","][":"][",")(":"][","](":"][",")[":"]["}});var oS=W((pHr,gSe)=>{"use strict";var ql=S5(),wP=Ws(),pSe=Ts(),SY=pSe.axisHoverFormat,vNt=pSe.descriptionOnlyNumbers,gNt=Fo(),mNt=zu().dash,yNt=jo(),L5=an().extendFlat,vSe=(_P(),Pt(bP)),xNt=vSe.COMPARISON_OPS2,bNt=vSe.INTERVAL_OPS,dSe=wP.line;gSe.exports=L5({z:ql.z,x:ql.x,x0:ql.x0,dx:ql.dx,y:ql.y,y0:ql.y0,dy:ql.dy,xperiod:ql.xperiod,yperiod:ql.yperiod,xperiod0:wP.xperiod0,yperiod0:wP.yperiod0,xperiodalignment:ql.xperiodalignment,yperiodalignment:ql.yperiodalignment,text:ql.text,hovertext:ql.hovertext,transpose:ql.transpose,xtype:ql.xtype,ytype:ql.ytype,xhoverformat:SY("x"),yhoverformat:SY("y"),zhoverformat:SY("z",1),hovertemplate:ql.hovertemplate,hovertemplatefallback:ql.hovertemplatefallback,texttemplate:L5({},ql.texttemplate,{}),texttemplatefallback:ql.texttemplatefallback,textfont:L5({},ql.textfont,{}),hoverongaps:ql.hoverongaps,connectgaps:L5({},ql.connectgaps,{}),fillcolor:{valType:"color",editType:"calc"},autocontour:{valType:"boolean",dflt:!0,editType:"calc",impliedEdits:{"contours.start":void 0,"contours.end":void 0,"contours.size":void 0}},ncontours:{valType:"integer",dflt:15,min:1,editType:"calc"},contours:{type:{valType:"enumerated",values:["levels","constraint"],dflt:"levels",editType:"calc"},start:{valType:"number",dflt:null,editType:"plot",impliedEdits:{"^autocontour":!1}},end:{valType:"number",dflt:null,editType:"plot",impliedEdits:{"^autocontour":!1}},size:{valType:"number",dflt:null,min:0,editType:"plot",impliedEdits:{"^autocontour":!1}},coloring:{valType:"enumerated",values:["fill","heatmap","lines","none"],dflt:"fill",editType:"calc"},showlines:{valType:"boolean",dflt:!0,editType:"plot"},showlabels:{valType:"boolean",dflt:!1,editType:"plot"},labelfont:yNt({editType:"plot",colorEditType:"style"}),labelformat:{valType:"string",dflt:"",editType:"plot",description:vNt("contour label")},operation:{valType:"enumerated",values:[].concat(xNt).concat(bNt),dflt:"=",editType:"calc"},value:{valType:"any",dflt:0,editType:"calc"},editType:"calc",impliedEdits:{autocontour:!1}},line:{color:L5({},dSe.color,{editType:"style+colorbars"}),width:{valType:"number",min:0,editType:"style+colorbars"},dash:mNt,smoothing:L5({},dSe.smoothing,{}),editType:"plot"},zorder:wP.zorder},gNt("",{cLetter:"z",autoColorDflt:!1,editTypeOverride:"calc"}))});var kY=W((vHr,ySe)=>{"use strict";var sf=xP(),B1=oS(),_Nt=Fo(),EY=Ts().axisHoverFormat,mSe=an().extendFlat;ySe.exports=mSe({x:sf.x,y:sf.y,z:sf.z,marker:sf.marker,histnorm:sf.histnorm,histfunc:sf.histfunc,nbinsx:sf.nbinsx,xbins:sf.xbins,nbinsy:sf.nbinsy,ybins:sf.ybins,autobinx:sf.autobinx,autobiny:sf.autobiny,bingroup:sf.bingroup,xbingroup:sf.xbingroup,ybingroup:sf.ybingroup,autocontour:B1.autocontour,ncontours:B1.ncontours,contours:B1.contours,line:{color:B1.line.color,width:mSe({},B1.line.width,{dflt:.5}),dash:B1.line.dash,smoothing:B1.line.smoothing,editType:"plot"},xhoverformat:EY("x"),yhoverformat:EY("y"),zhoverformat:EY("z",1),hovertemplate:sf.hovertemplate,hovertemplatefallback:sf.hovertemplatefallback,texttemplate:B1.texttemplate,texttemplatefallback:B1.texttemplatefallback,textfont:B1.textfont},_Nt("",{cLetter:"z",editTypeOverride:"calc"}))});var TP=W((gHr,xSe)=>{"use strict";xSe.exports=function(t,r,i,n){var a=n("contours.start"),o=n("contours.end"),s=a===!1||o===!1,l=i("contours.size"),u;s?u=r.autocontour=!0:u=i("autocontour",!1),(u||!l)&&i("ncontours")}});var CY=W((mHr,bSe)=>{"use strict";var wNt=tt();bSe.exports=function(t,r,i,n){n||(n={});var a=t("contours.showlabels");if(a){var o=r.font;wNt.coerceFont(t,"contours.labelfont",o,{overrideDflt:{color:i}}),t("contours.labelformat")}n.hasHover!==!1&&t("zhoverformat")}});var AP=W((yHr,_Se)=>{"use strict";var TNt=Bu(),ANt=CY();_Se.exports=function(t,r,i,n,a){var o=i("contours.coloring"),s,l="";o==="fill"&&(s=i("contours.showlines")),s!==!1&&(o!=="lines"&&(l=i("line.color","#000")),i("line.width",.5),i("line.dash")),o!=="none"&&(t.showlegend!==!0&&(r.showlegend=!1),r._dfltShowLegend=!1,TNt(t,r,n,i,{prefix:"",cLetter:"z"})),i("line.smoothing"),ANt(i,n,l,a)}});var MSe=W((xHr,ASe)=>{"use strict";var wSe=tt(),MNt=MY(),SNt=TP(),ENt=AP(),kNt=tS(),TSe=kY();ASe.exports=function(t,r,i,n){function a(s,l){return wSe.coerce(t,r,TSe,s,l)}function o(s){return wSe.coerce2(t,r,TSe,s)}MNt(t,r,a,n),r.visible!==!1&&(SNt(t,r,a,o),ENt(t,r,a,n),a("xhoverformat"),a("yhoverformat"),a("hovertemplate"),a("hovertemplatefallback"),r.contours&&r.contours.coloring==="heatmap"&&kNt(a,n))}});var LY=W((bHr,ESe)=>{"use strict";var FY=Yi(),DY=tt();ESe.exports=function(t,r){var i=t.contours;if(t.autocontour){var n=t.zmin,a=t.zmax;(t.zauto||n===void 0)&&(n=DY.aggNums(Math.min,null,r)),(t.zauto||a===void 0)&&(a=DY.aggNums(Math.max,null,r));var o=SSe(n,a,t.ncontours);i.size=o.dtick,i.start=FY.tickFirst(o),o.range.reverse(),i.end=FY.tickFirst(o),i.start===n&&(i.start+=i.size),i.end===a&&(i.end-=i.size),i.start>i.end&&(i.start=i.end=(i.start+i.end)/2),t._input.contours||(t._input.contours={}),DY.extendFlat(t._input.contours,{start:i.start,end:i.end,size:i.size}),t._input.autocontour=!0}else if(i.type!=="constraint"){var s=i.start,l=i.end,u=t._input.contours;if(s>l&&(i.start=u.start=l,l=i.end=u.end=s,s=i.start),!(i.size>0)){var c;s===l?c=1:c=SSe(s,l,t.ncontours).dtick,u.size=i.size=c}}};function SSe(e,t,r){var i={type:"linear",range:[e,t]};return FY.autoTicks(i,(t-e)/(r||15)),i}});var sS=W((_Hr,kSe)=>{"use strict";kSe.exports=function(t){return t.end+t.size/1e6}});var PY=W((wHr,DSe)=>{"use strict";var CSe=es(),CNt=lP(),DNt=LY(),FNt=sS();DSe.exports=function(t,r){var i=CNt(t,r),n=i[0].z;DNt(r,n);var a=r.contours,o=CSe.extractOpts(r),s;if(a.coloring==="heatmap"&&o.auto&&r.autocontour===!1){var l=a.start,u=FNt(a),c=a.size||1,f=Math.floor((u-l)/c)+1;isFinite(c)||(c=1,f=1);var h=l-c/2,p=h+f*c;s=[h,p]}else s=n;return CSe.calc(t,r,{vals:s,cLetter:"z"}),i}});var lS={};Jn(lS,{BOTTOMSTART:()=>LNt,CHOOSESADDLE:()=>BNt,LABELDISTANCE:()=>ONt,LABELINCREASE:()=>NNt,LABELMAX:()=>VNt,LABELMIN:()=>UNt,LABELOPTIMIZER:()=>GNt,LEFTSTART:()=>INt,NEWDELTA:()=>zNt,RIGHTSTART:()=>RNt,SADDLEREMAINDER:()=>qNt,TOPSTART:()=>PNt});var LNt,PNt,INt,RNt,zNt,BNt,qNt,ONt,NNt,UNt,VNt,GNt,uS=Ci(()=>{"use strict";LNt=[1,9,13,104,713],PNt=[4,6,7,104,713],INt=[8,12,14,208,1114],RNt=[2,3,11,208,1114],zNt=[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]],BNt={104:[4,1],208:[2,8],713:[7,13],1114:[11,14]},qNt={1:4,2:8,4:1,7:13,8:2,11:14,13:7,14:11},ONt=2,NNt=10,UNt=3,VNt=10,GNt={EDGECOST:1,ANGLECOST:1,NEIGHBORCOST:5,SAMELEVELFACTOR:10,SAMELEVELDISTANCE:5,MAXCOST:100,INITIALSEARCHPOINTS:10,ITERATIONS:5}});var IY=W((THr,FSe)=>{"use strict";var MP=(uS(),Pt(lS));FSe.exports=function(t){var r=t[0].z,i=r.length,n=r[0].length,a=i===2||n===2,o,s,l,u,c,f,h,p,d;for(s=0;se?0:1)+(t[0][1]>e?0:2)+(t[1][1]>e?0:4)+(t[1][0]>e?0:8);if(r===5||r===10){var i=(t[0][0]+t[0][1]+t[1][0]+t[1][1])/4;return e>i?r===5?713:1114:r===5?104:208}return r===15?0:r}});var RY=W((AHr,ISe)=>{"use strict";var SP=tt(),P5=(uS(),Pt(lS));ISe.exports=function(t,r,i){var n,a,o,s,l;for(r=r||.01,i=i||.01,o=0;o20?(o=P5.CHOOSESADDLE[o][(s[0]||s[1])<0?0:1],e.crossings[a]=P5.SADDLEREMAINDER[o]):delete e.crossings[a],s=P5.NEWDELTA[o],!s){SP.log("Found bad marching index:",o,t,e.level);break}l.push(PSe(e,t,s)),t[0]+=s[0],t[1]+=s[1],a=t.join(","),cS(l[l.length-1],l[l.length-2],i,n)&&l.pop();var d=s[0]&&(t[0]<0||t[0]>c-2)||s[1]&&(t[1]<0||t[1]>u-2),v=t[0]===f[0]&&t[1]===f[1]&&s[0]===h[0]&&s[1]===h[1];if(v||r&&d)break;o=e.crossings[a]}p===1e4&&SP.log("Infinite loop in contour?");var m=cS(l[0],l[l.length-1],i,n),g=0,w=.2*e.smoothing,_=[],b=0,S,x,A,T,y,E,M,C,k,D,F;for(p=1;p=b;p--)if(S=_[p],S=b&&S+_[x]C&&k--,e.edgepaths[k]=F.concat(l,D));break}I||(e.edgepaths[C]=l.concat(D))}for(C=0;C20&&t?e===208||e===1114?i=r[0]===0?1:-1:n=r[1]===0?1:-1:P5.BOTTOMSTART.indexOf(e)!==-1?n=1:P5.LEFTSTART.indexOf(e)!==-1?i=1:P5.TOPSTART.indexOf(e)!==-1?n=-1:i=-1,[i,n]}function PSe(e,t,r){var i=t[0]+Math.max(r[0],0),n=t[1]+Math.max(r[1],0),a=e.z[n][i],o=e.xaxis,s=e.yaxis;if(r[1]){var l=(e.level-a)/(e.z[n][i+1]-a),u=(l!==1?(1-l)*o.c2l(e.x[i]):0)+(l!==0?l*o.c2l(e.x[i+1]):0);return[o.c2p(o.l2c(u),!0),s.c2p(e.y[n],!0),i+l,n]}else{var c=(e.level-a)/(e.z[n+1][i]-a),f=(c!==1?(1-c)*s.c2l(e.y[n]):0)+(c!==0?c*s.c2l(e.y[n+1]):0);return[o.c2p(e.x[i],!0),s.c2p(s.l2c(f),!0),i,n+c]}}});var qSe=W((MHr,BSe)=>{"use strict";var zY=(_P(),Pt(bP)),WNt=hn();BSe.exports={"[]":RSe("[]"),"][":RSe("]["),">":BY(">"),"<":BY("<"),"=":BY("=")};function zSe(e,t){var r=Array.isArray(t),i;function n(a){return WNt(a)?+a:null}return zY.COMPARISON_OPS2.indexOf(e)!==-1?i=n(r?t[0]:t):zY.INTERVAL_OPS.indexOf(e)!==-1?i=r?[n(t[0]),n(t[1])]:[n(t),n(t)]:zY.SET_OPS.indexOf(e)!==-1&&(i=r?t.map(n):[n(t)]),i}function RSe(e){return function(t){t=zSe(e,t);var r=Math.min(t[0],t[1]),i=Math.max(t[0],t[1]);return{start:r,end:i,size:i-r}}}function BY(e){return function(t){return t=zSe(e,t),{start:t,end:1/0,size:1/0}}}});var qY=W((SHr,NSe)=>{"use strict";var OSe=tt(),YNt=qSe(),XNt=sS();NSe.exports=function(t,r,i){for(var n=t.type==="constraint"?YNt[t._operation](t.value):t,a=n.size,o=[],s=XNt(n),l=i.trace._carpetTrace,u=l?{xaxis:l.aaxis,yaxis:l.baxis,x:i.a,y:i.b}:{xaxis:r.xaxis,yaxis:r.yaxis,x:i.x,y:i.y},c=n.start;c1e3){OSe.warn("Too many contours, clipping at 1000",t);break}return o}});var OY=W((EHr,VSe)=>{"use strict";var I5=tt();VSe.exports=function(e,t){var r,i,n,a=function(l){return l.reverse()},o=function(l){return l};switch(t){case"=":case"<":return e;case">":for(e.length!==1&&I5.warn("Contour data invalid for the specified inequality operation."),i=e[0],r=0;r{"use strict";GSe.exports=function(e,t){var r=e[0],i=r.z,n;switch(t.type){case"levels":var a=Math.min(i[0][0],i[0][1]);for(n=0;no.level||o.starts.length&&a===o.level)}break;case"constraint":if(r.prefixBoundary=!1,r.edgepaths.length)return;var s=r.x.length,l=r.y.length,u=-1/0,c=1/0;for(n=0;n":f>u&&(r.prefixBoundary=!0);break;case"<":(fu||r.starts.length&&p===c)&&(r.prefixBoundary=!0);break;case"][":h=Math.min(f[0],f[1]),p=Math.max(f[0],f[1]),hu&&(r.prefixBoundary=!0);break}break}}});var EP=W(zf=>{"use strict";var hS=gi(),lc=tt(),lm=Qi(),ZNt=es(),$Se=ao(),HSe=Yi(),jSe=v1(),KNt=fP(),WSe=IY(),YSe=RY(),JNt=qY(),QNt=OY(),XSe=NY(),fS=(uS(),Pt(lS)),q1=fS.LABELOPTIMIZER;zf.plot=function(t,r,i,n){var a=r.xaxis,o=r.yaxis;lc.makeTraceGroups(n,i,"contour").each(function(s){var l=hS.select(this),u=s[0],c=u.trace,f=u.x,h=u.y,p=c.contours,d=JNt(p,r,u),v=lc.ensureSingle(l,"g","heatmapcoloring"),m=[];p.coloring==="heatmap"&&(m=[s]),KNt(t,r,m,v),WSe(d),YSe(d);var g=a.c2p(f[0],!0),w=a.c2p(f[f.length-1],!0),_=o.c2p(h[0],!0),b=o.c2p(h[h.length-1],!0),S=[[g,b],[w,b],[w,_],[g,_]],x=d;p.type==="constraint"&&(x=QNt(d,p._operation)),eUt(l,S,p),tUt(l,x,S,p),rUt(l,d,t,u,p),nUt(l,r,t,u,S)})};function eUt(e,t,r){var i=lc.ensureSingle(e,"g","contourbg"),n=i.selectAll("path").data(r.coloring==="fill"?[0]:[]);n.enter().append("path"),n.exit().remove(),n.attr("d","M"+t.join("L")+"Z").style("stroke","none")}function tUt(e,t,r,i){var n=i.coloring==="fill"||i.type==="constraint"&&i._operation!=="=",a="M"+r.join("L")+"Z";n&&XSe(t,i);var o=lc.ensureSingle(e,"g","contourfill"),s=o.selectAll("path").data(n?t:[]);s.enter().append("path"),s.exit().remove(),s.each(function(l){var u=(l.prefixBoundary?a:"")+ZSe(l,r);u?hS.select(this).attr("d",u).style("stroke","none"):hS.select(this).remove()})}function ZSe(e,t){var r="",i=0,n=e.edgepaths.map(function(g,w){return w}),a=!0,o,s,l,u,c,f;function h(g){return Math.abs(g[1]-t[0][1])<.01}function p(g){return Math.abs(g[1]-t[2][1])<.01}function d(g){return Math.abs(g[0]-t[0][0])<.01}function v(g){return Math.abs(g[0]-t[2][0])<.01}for(;n.length;){for(f=lm.smoothopen(e.edgepaths[i],e.smoothing),r+=a?f:f.replace(/^M/,"L"),n.splice(n.indexOf(i),1),o=e.edgepaths[i][e.edgepaths[i].length-1],u=-1,l=0;l<4;l++){if(!o){lc.log("Missing end?",i,e);break}for(h(o)&&!v(o)?s=t[1]:d(o)?s=t[0]:p(o)?s=t[3]:v(o)&&(s=t[2]),c=0;c=0&&(s=m,u=c):Math.abs(o[1]-s[1])<.01?Math.abs(o[1]-m[1])<.01&&(m[0]-o[0])*(s[0]-m[0])>=0&&(s=m,u=c):lc.log("endpt to newendpt is not vert. or horz.",o,s,m)}if(o=s,u>=0)break;r+="L"+s}if(u===e.edgepaths.length){lc.log("unclosed perimeter path");break}i=u,a=n.indexOf(i)===-1,a&&(i=n[0],r+="Z")}for(i=0;iq1.MAXCOST*2)break;h&&(s/=2),o=u-s/2,l=o+s*1.5}if(f<=q1.MAXCOST)return c};function iUt(e,t,r,i){var n=t.width/2,a=t.height/2,o=e.x,s=e.y,l=e.theta,u=Math.cos(l)*n,c=Math.sin(l)*n,f=(o>i.center?i.right-o:o-i.left)/(u+Math.abs(Math.sin(l)*a)),h=(s>i.middle?i.bottom-s:s-i.top)/(Math.abs(c)+Math.cos(l)*a);if(f<1||h<1)return 1/0;var p=q1.EDGECOST*(1/(f-1)+1/(h-1));p+=q1.ANGLECOST*l*l;for(var d=o-u,v=s-c,m=o+u,g=s+c,w=0;w{"use strict";var oUt=gi(),UY=es(),sUt=sS();KSe.exports=function(t){var r=t.contours,i=r.start,n=sUt(r),a=r.size||1,o=Math.floor((n-i)/a)+1,s=r.coloring==="lines"?0:1,l=UY.extractOpts(t);isFinite(a)||(a=1,o=1);var u=l.reversescale?UY.flipScale(l.colorscale):l.colorscale,c=u.length,f=new Array(c),h=new Array(c),p,d,v=l.min,m=l.max;if(r.coloring==="heatmap"){for(d=0;d=m)&&(i<=v&&(i=v),n>=m&&(n=m),o=Math.floor((n-i)/a)+1,s=0),d=0;dv&&(f.unshift(v),h.unshift(h[0])),f[f.length-1]{"use strict";var kP=gi(),JSe=Qi(),lUt=hP(),uUt=VY();QSe.exports=function(t){var r=kP.select(t).selectAll("g.contour");r.style("opacity",function(i){return i[0].trace.opacity}),r.each(function(i){var n=kP.select(this),a=i[0].trace,o=a.contours,s=a.line,l=o.size||1,u=o.start,c=o.type==="constraint",f=!c&&o.coloring==="lines",h=!c&&o.coloring==="fill",p=f||h?uUt(a):null;n.selectAll("g.contourlevel").each(function(m){kP.select(this).selectAll("path").call(JSe.lineGroupStyle,s.width,f?p(m.level):s.color,s.dash)});var d=o.labelfont;if(n.selectAll("g.contourlabels text").each(function(m){JSe.font(kP.select(this),{weight:d.weight,style:d.style,variant:d.variant,textcase:d.textcase,lineposition:d.lineposition,shadow:d.shadow,family:d.family,size:d.size,color:d.color||(f?p(m.level):s.color)})}),c)n.selectAll("g.contourfill path").style("fill",a.fillcolor);else if(h){var v;n.selectAll("g.contourfill path").style("fill",function(m){return v===void 0&&(v=m.level),p(m.level+.5*l)}),v===void 0&&(v=u),n.selectAll("g.contourbg path").style("fill",p(v-.5*l))}}),lUt(t)}});var DP=W((LHr,tEe)=>{"use strict";var eEe=es(),cUt=VY(),fUt=sS();function hUt(e,t,r){var i=t.contours,n=t.line,a=i.size||1,o=i.coloring,s=cUt(t,{isColorbar:!0});if(o==="heatmap"){var l=eEe.extractOpts(t);r._fillgradient=l.reversescale?eEe.flipScale(l.colorscale):l.colorscale,r._zrange=[l.min,l.max]}else o==="fill"&&(r._fillcolor=s);r._line={color:o==="lines"?s:n.color,width:i.showlines!==!1?n.width:0,dash:n.dash},r._levels={start:i.start,end:fUt(i),size:a}}tEe.exports={min:"zmin",max:"zmax",calc:hUt}});var GY=W((PHr,rEe)=>{"use strict";var FP=ti(),dUt=pP();rEe.exports=function(t,r,i,n,a){a||(a={}),a.isContour=!0;var o=dUt(t,r,i,n,a);return o&&o.forEach(function(s){var l=s.trace;l.contours.type==="constraint"&&(l.fillcolor&&FP.opacity(l.fillcolor)?s.color=FP.addOpacity(l.fillcolor,1):l.contours.showlines&&FP.opacity(l.line.color)&&(s.color=FP.addOpacity(l.line.color,1)))}),o}});var nEe=W((IHr,iEe)=>{"use strict";iEe.exports={attributes:kY(),supplyDefaults:MSe(),crossTraceDefaults:mP(),calc:PY(),plot:EP().plot,layerName:"contourlayer",style:CP(),colorbar:DP(),hoverPoints:GY(),moduleType:"trace",name:"histogram2dcontour",basePlotModule:xl(),categories:["cartesian","svg","2dMap","contour","histogram","showLegend"],meta:{}}});var oEe=W((RHr,aEe)=>{"use strict";aEe.exports=nEe()});var HY=W((zHr,hEe)=>{"use strict";var sEe=hn(),pUt=CY(),cEe=ti(),lEe=cEe.addOpacity,vUt=cEe.opacity,fEe=(_P(),Pt(bP)),uEe=tt().isArrayOrTypedArray,gUt=fEe.CONSTRAINT_REDUCTION,mUt=fEe.COMPARISON_OPS2;hEe.exports=function(t,r,i,n,a,o){var s=r.contours,l,u,c,f=i("contours.operation");if(s._operation=gUt[f],yUt(i,s),f==="="?l=s.showlines=!0:(l=i("contours.showlines"),c=i("fillcolor",lEe((t.line||{}).color||a,.5))),l){var h=c&&vUt(c)?lEe(r.fillcolor,1):a;u=i("line.color",h),i("line.width",2),i("line.dash")}i("line.smoothing"),pUt(i,n,u,o)};function yUt(e,t){var r;mUt.indexOf(t.operation)===-1?(e("contours.value",[0,1]),uEe(t.value)?t.value.length>2?t.value=t.value.slice(2):t.length===0?t.value=[0,1]:t.length<2?(r=parseFloat(t.value[0]),t.value=[r,r+1]):t.value=[parseFloat(t.value[0]),parseFloat(t.value[1])]:sEe(t.value)&&(r=parseFloat(t.value),t.value=[r,r+1])):(e("contours.value",0),sEe(t.value)||(uEe(t.value)?t.value=parseFloat(t.value[0]):t.value=0))}});var vEe=W((BHr,pEe)=>{"use strict";var jY=tt(),xUt=JL(),bUt=Qp(),_Ut=HY(),wUt=TP(),TUt=AP(),AUt=tS(),dEe=oS();pEe.exports=function(t,r,i,n){function a(u,c){return jY.coerce(t,r,dEe,u,c)}function o(u){return jY.coerce2(t,r,dEe,u)}var s=xUt(t,r,a,n);if(!s){r.visible=!1;return}bUt(t,r,n,a),a("xhoverformat"),a("yhoverformat"),a("text"),a("hovertext"),a("hoverongaps"),a("hovertemplate"),a("hovertemplatefallback");var l=a("contours.type")==="constraint";a("connectgaps",jY.isArray1D(r.z)),l?_Ut(t,r,a,n,i):(wUt(t,r,a,o),TUt(t,r,a,n)),r.contours&&r.contours.coloring==="heatmap"&&AUt(a,n),a("zorder")}});var mEe=W((qHr,gEe)=>{"use strict";gEe.exports={attributes:oS(),supplyDefaults:vEe(),calc:PY(),plot:EP().plot,style:CP(),colorbar:DP(),hoverPoints:GY(),moduleType:"trace",name:"contour",basePlotModule:xl(),categories:["cartesian","svg","2dMap","contour","showLegend"],meta:{}}});var xEe=W((OHr,yEe)=>{"use strict";yEe.exports=mEe()});var $Y=W((NHr,TEe)=>{"use strict";var{hovertemplateAttrs:MUt,texttemplateAttrs:SUt,templatefallbackAttrs:bEe}=Wa(),EUt=C1(),B0=Ws(),kUt=Ja(),_Ee=Fo(),CUt=zu().dash,u2=an().extendFlat,Ud=B0.marker,dS=B0.line,wEe=Ud.line;TEe.exports={a:{valType:"data_array",editType:"calc"},b:{valType:"data_array",editType:"calc"},c:{valType:"data_array",editType:"calc"},sum:{valType:"number",dflt:0,min:0,editType:"calc"},mode:u2({},B0.mode,{dflt:"markers"}),text:u2({},B0.text,{}),texttemplate:SUt({editType:"plot"},{keys:["a","b","c","text"]}),texttemplatefallback:bEe({editType:"plot"}),hovertext:u2({},B0.hovertext,{}),line:{color:dS.color,width:dS.width,dash:CUt,backoff:dS.backoff,shape:u2({},dS.shape,{values:["linear","spline"]}),smoothing:dS.smoothing,editType:"calc"},connectgaps:B0.connectgaps,cliponaxis:B0.cliponaxis,fill:u2({},B0.fill,{values:["none","toself","tonext"],dflt:"none"}),fillcolor:EUt(),marker:u2({symbol:Ud.symbol,opacity:Ud.opacity,angle:Ud.angle,angleref:Ud.angleref,standoff:Ud.standoff,maxdisplayed:Ud.maxdisplayed,size:Ud.size,sizeref:Ud.sizeref,sizemin:Ud.sizemin,sizemode:Ud.sizemode,line:u2({width:wEe.width,dash:wEe.dash,editType:"calc"},_Ee("marker.line")),gradient:Ud.gradient,editType:"calc"},_Ee("marker")),textfont:B0.textfont,textposition:B0.textposition,selected:B0.selected,unselected:B0.unselected,hoverinfo:u2({},kUt.hoverinfo,{flags:["a","b","c","text","name"]}),hoveron:B0.hoveron,hovertemplate:MUt(),hovertemplatefallback:bEe()}});var EEe=W((UHr,SEe)=>{"use strict";var AEe=tt(),DUt=(k1(),Pt(E1)),R5=Wo(),FUt=Dd(),LUt=ev(),MEe=Jw(),PUt=tv(),IUt=F1(),RUt=$Y();SEe.exports=function(t,r,i,n){function a(h,p){return AEe.coerce(t,r,RUt,h,p)}var o=a("a"),s=a("b"),l=a("c"),u;if(o?(u=o.length,s?(u=Math.min(u,s.length),l&&(u=Math.min(u,l.length))):l?u=Math.min(u,l.length):u=0):s&&l&&(u=Math.min(s.length,l.length)),!u){r.visible=!1;return}r._length=u,a("sum"),a("text"),a("hovertext"),r.hoveron!=="fills"&&(a("hovertemplate"),a("hovertemplatefallback"));var c=u{"use strict";var WY=Yi();kEe.exports=function(t,r,i){var n={},a=i[r.subplot]._subplot;return n.aLabel=WY.tickText(a.aaxis,t.a,!0).text,n.bLabel=WY.tickText(a.baxis,t.b,!0).text,n.cLabel=WY.tickText(a.caxis,t.c,!0).text,n}});var PEe=W((GHr,LEe)=>{"use strict";var YY=hn(),zUt=Fd(),BUt=L1(),qUt=C0(),OUt=Ld().calcMarkerSize,DEe=["a","b","c"],FEe={a:["b","c"],b:["a","c"],c:["a","b"]};LEe.exports=function(t,r){var i=t._fullLayout[r.subplot],n=i.sum,a=r.sum||n,o={a:r.a,b:r.b,c:r.c},s=r.ids,l,u,c,f,h,p;for(l=0;l{"use strict";var NUt=n5();IEe.exports=function(t,r,i){var n=r.plotContainer;n.select(".scatterlayer").selectAll("*").remove();for(var a=r.xaxis,o=r.yaxis,s={xaxis:a,yaxis:o,plot:n,layerClipId:r._hasClipOnAxisFalse?r.clipIdRelative:null},l=r.layers.frontplot.select("g.scatterlayer"),u=0;u{"use strict";var UUt=l5();zEe.exports=function(t,r,i,n){var a=UUt(t,r,i,n);if(!a||a[0].index===!1)return;var o=a[0];if(o.index===void 0){var s=1-o.y0/t.ya._length,l=t.xa._length,u=l*s/2,c=l-u;return o.x0=Math.max(Math.min(o.x0,c),u),o.x1=Math.max(Math.min(o.x1,c),u),a}var f=o.cd[o.index],h=o.trace,p=o.subplot;o.a=f.a,o.b=f.b,o.c=f.c,o.xLabelVal=void 0,o.yLabelVal=void 0;var d={};d[h.subplot]={_subplot:p};var v=h._module.formatLabels(f,h,d);o.aLabel=v.aLabel,o.bLabel=v.bLabel,o.cLabel=v.cLabel;var m=f.hi||h.hoverinfo,g=[];function w(b,S){g.push(b._hovertitle+": "+S)}if(!h.hovertemplate){var _=m.split("+");_.indexOf("all")!==-1&&(_=["a","b","c"]),_.indexOf("a")!==-1&&w(p.aaxis,o.aLabel),_.indexOf("b")!==-1&&w(p.baxis,o.bLabel),_.indexOf("c")!==-1&&w(p.caxis,o.cLabel)}return o.extraText=g.join("
"),o.hovertemplate=h.hovertemplate,a}});var OEe=W(($Hr,qEe)=>{"use strict";qEe.exports=function(t,r,i,n,a){if(r.xa&&(t.xaxis=r.xa),r.ya&&(t.yaxis=r.ya),n[a]){var o=n[a];t.a=o.a,t.b=o.b,t.c=o.c}else t.a=r.a,t.b=r.b,t.c=r.c;return t}});var KEe=W((WHr,ZEe)=>{"use strict";var $Ee=gi(),XY=xi(),Gd=tt(),Vd=Gd.strTranslate,LP=Gd._,uh=ti(),Zb=Qi(),NEe=ao(),pS=v1(),ZY=an().extendFlat,VUt=Qo(),um=Yi(),UEe=Ef(),VEe=Is(),WEe=_1(),GEe=WEe.freeMode,GUt=WEe.rectMode,KY=pb(),HUt=xu().prepSelect,jUt=xu().selectOnClick,$Ut=xu().clearOutline,WUt=xu().clearSelectionsCache,YEe=(Zl(),Pt(Xl));function XEe(e,t){this.id=e.id,this.graphDiv=e.graphDiv,this.init(t),this.makeFramework(t),this.updateFx(t),this.aTickLayout=null,this.bTickLayout=null,this.cTickLayout=null}ZEe.exports=XEe;var dv=XEe.prototype;dv.init=function(e){this.container=e._ternarylayer,this.defs=e._defs,this.layoutId=e._uid,this.traceHash={},this.layers={}};dv.plot=function(e,t){var r=this,i=t[r.id],n=t._size;r._hasClipOnAxisFalse=!1;for(var a=0;au.showspikes))return;let o=this.sum-a[0].min-a[1].min-a[2].min,s=uh.combine(n[this.id].bgcolor,n.paper_bgcolor),l;for(let u=0;uz5*u?(g=u,m=g*z5):(m=l,g=m/z5),w=o*m/l,_=s*g/u,d=t.l+t.w*n-m/2,v=t.t+t.h*(1-a)-g/2,r.x0=d,r.y0=v,r.w=m,r.h=g,r.sum=c,r.xaxis={type:"linear",range:[f+2*p-c,c-f-2*h],domain:[n-w/2,n+w/2],_id:"x"},pS(r.xaxis,r.graphDiv._fullLayout),r.xaxis.setScale(),r.xaxis.isPtWithinRange=function(D){return D.a>=r.aaxis.range[0]&&D.a<=r.aaxis.range[1]&&D.b>=r.baxis.range[1]&&D.b<=r.baxis.range[0]&&D.c>=r.caxis.range[1]&&D.c<=r.caxis.range[0]},r.yaxis={type:"linear",range:[f,c-h-p],domain:[a-_/2,a+_/2],_id:"y"},pS(r.yaxis,r.graphDiv._fullLayout),r.yaxis.setScale(),r.yaxis.isPtWithinRange=function(){return!0};var b=r.yaxis.domain[0],S=r.aaxis=ZY({},e.aaxis,{range:[f,c-h-p],side:"left",tickangle:(+e.aaxis.tickangle||0)-30,domain:[b,b+_*z5],anchor:"free",position:0,_id:"y",_length:m});pS(S,r.graphDiv._fullLayout),S.setScale();var x=r.baxis=ZY({},e.baxis,{range:[c-f-p,h],side:"bottom",domain:r.xaxis.domain,anchor:"free",position:0,_id:"x",_length:m});pS(x,r.graphDiv._fullLayout),x.setScale();var A=r.caxis=ZY({},e.caxis,{range:[c-f-h,p],side:"right",tickangle:(+e.caxis.tickangle||0)+30,domain:[b,b+_*z5],anchor:"free",position:0,_id:"y",_length:m});pS(A,r.graphDiv._fullLayout),A.setScale();var T="M"+d+","+(v+g)+"h"+m+"l-"+m/2+",-"+g+"Z";r.clipDef.select("path").attr("d",T),r.layers.plotbg.select("path").attr("d",T);var y="M0,"+g+"h"+m+"l-"+m/2+",-"+g+"Z";r.clipDefRelative.select("path").attr("d",y);var E=Vd(d,v);r.plotContainer.selectAll(".scatterlayer,.maplayer").attr("transform",E),r.clipDefRelative.select("path").attr("transform",null);var M=Vd(d-x._offset,v+g);r.layers.baxis.attr("transform",M),r.layers.bgrid.attr("transform",M);var C=Vd(d+m/2,v)+"rotate(30)"+Vd(0,-S._offset);r.layers.aaxis.attr("transform",C),r.layers.agrid.attr("transform",C);var k=Vd(d+m/2,v)+"rotate(-30)"+Vd(0,-A._offset);r.layers.caxis.attr("transform",k),r.layers.cgrid.attr("transform",k),r.drawAxes(!0),r.layers.aline.select("path").attr("d",S.showline?"M"+d+","+(v+g)+"l"+m/2+",-"+g:"M0,0").call(uh.stroke,S.linecolor||"#000").style("stroke-width",(S.linewidth||0)+"px"),r.layers.bline.select("path").attr("d",x.showline?"M"+d+","+(v+g)+"h"+m:"M0,0").call(uh.stroke,x.linecolor||"#000").style("stroke-width",(x.linewidth||0)+"px"),r.layers.cline.select("path").attr("d",A.showline?"M"+(d+m/2)+","+v+"l"+m/2+","+g:"M0,0").call(uh.stroke,A.linecolor||"#000").style("stroke-width",(A.linewidth||0)+"px"),r.graphDiv._context.staticPlot||r.initInteractions(),Zb.setClipUrl(r.layers.frontplot,r._hasClipOnAxisFalse?null:r.clipId,r.graphDiv)};dv.drawAxes=function(e){var t=this,r=t.graphDiv,i=t.id.slice(7)+"title",n=t.layers,a=t.aaxis,o=t.baxis,s=t.caxis;if(t.drawAx(a),t.drawAx(o),t.drawAx(s),e){var l=Math.max(a.showticklabels?a.tickfont.size/2:0,(s.showticklabels?s.tickfont.size*.75:0)+(s.ticks==="outside"?s.ticklen*.87:0)),u=(o.showticklabels?o.tickfont.size:0)+(o.ticks==="outside"?o.ticklen:0)+3;n["a-title"]=KY.draw(r,"a"+i,{propContainer:a,propName:t.id+".aaxis.title.text",placeholder:LP(r,"Click to enter Component A title"),attributes:{x:t.x0+t.w/2,y:t.y0-a.title.font.size/3-l,"text-anchor":"middle"}}),n["b-title"]=KY.draw(r,"b"+i,{propContainer:o,propName:t.id+".baxis.title.text",placeholder:LP(r,"Click to enter Component B title"),attributes:{x:t.x0-u,y:t.y0+t.h+o.title.font.size*.83+u,"text-anchor":"middle"}}),n["c-title"]=KY.draw(r,"c"+i,{propContainer:s,propName:t.id+".caxis.title.text",placeholder:LP(r,"Click to enter Component C title"),attributes:{x:t.x0+t.w+u,y:t.y0+t.h+s.title.font.size*.83+u,"text-anchor":"middle"}})}};dv.drawAx=function(e){var t=this,r=t.graphDiv,i=e._name,n=i.charAt(0),a=e._id,o=t.layers[i],s=30,l=n+"tickLayout",u=YUt(e);t[l]!==u&&(o.selectAll("."+a+"tick").remove(),t[l]=u),e.setScale();var c=um.calcTicks(e),f=um.clipEnds(e,c),h=um.makeTransTickFn(e),p=um.getTickSigns(e)[2],d=Gd.deg2rad(s),v=p*(e.linewidth||1)/2,m=p*e.ticklen,g=t.w,w=t.h,_=n==="b"?"M0,"+v+"l"+Math.sin(d)*m+","+Math.cos(d)*m:"M"+v+",0l"+Math.cos(d)*m+","+-Math.sin(d)*m,b={a:"M0,0l"+w+",-"+g/2,b:"M0,0l-"+g/2+",-"+w,c:"M0,0l-"+w+","+g/2}[n];um.drawTicks(r,e,{vals:e.ticks==="inside"?f:c,layer:o,path:_,transFn:h,crisp:!1}),um.drawGrid(r,e,{vals:f,layer:t.layers[n+"grid"],path:b,transFn:h,crisp:!1}),um.drawLabels(r,e,{vals:c,layer:o,transFn:h,labelFns:um.makeLabelFns(e,0,s)})};function YUt(e){return e.ticks+String(e.ticklen)+String(e.showticklabels)}var Vu=YEe.MINZOOM/2+.87,XUt="m-0.87,.5h"+Vu+"v3h-"+(Vu+5.2)+"l"+(Vu/2+2.6)+",-"+(Vu*.87+4.5)+"l2.6,1.5l-"+Vu/2+","+Vu*.87+"Z",ZUt="m0.87,.5h-"+Vu+"v3h"+(Vu+5.2)+"l-"+(Vu/2+2.6)+",-"+(Vu*.87+4.5)+"l-2.6,1.5l"+Vu/2+","+Vu*.87+"Z",KUt="m0,1l"+Vu/2+","+Vu*.87+"l2.6,-1.5l-"+(Vu/2+2.6)+",-"+(Vu*.87+4.5)+"l-"+(Vu/2+2.6)+","+(Vu*.87+4.5)+"l2.6,1.5l"+Vu/2+",-"+Vu*.87+"Z",JUt="m0.5,0.5h5v-2h-5v-5h-2v5h-5v2h5v5h2Z",HEe=!0;dv.clearOutline=function(){WUt(this.dragOptions),$Ut(this.dragOptions.gd)};dv.initInteractions=function(){var e=this,t=e.layers.plotbg.select("path").node(),r=e.graphDiv,i=r._fullLayout._zoomlayer,n,a;this.dragOptions={element:t,gd:r,plotinfo:{id:e.id,domain:r._fullLayout[e.id].domain,xaxis:e.xaxis,yaxis:e.yaxis},subplot:e.id,prepFn:function(M,C,k){e.dragOptions.xaxes=[e.xaxis],e.dragOptions.yaxes=[e.yaxis],n=r._fullLayout._invScaleX,a=r._fullLayout._invScaleY;var D=e.dragOptions.dragmode=r._fullLayout.dragmode;GEe(D)?e.dragOptions.minDrag=1:e.dragOptions.minDrag=void 0,D==="zoom"?(e.dragOptions.moveFn=x,e.dragOptions.clickFn=g,e.dragOptions.doneFn=A,w(M,C,k)):D==="pan"?(e.dragOptions.moveFn=y,e.dragOptions.clickFn=g,e.dragOptions.doneFn=E,T(),e.clearOutline(r)):(GUt(D)||GEe(D))&&HUt(M,C,k,e.dragOptions,D)}};var o,s,l,u,c,f,h,p,d,v;function m(M){var C={};return C[e.id+".aaxis.min"]=M.a,C[e.id+".baxis.min"]=M.b,C[e.id+".caxis.min"]=M.c,C}function g(M,C){var k=r._fullLayout.clickmode;jEe(r),M===2&&(r.emit("plotly_doubleclick",null),XY.call("_guiRelayout",r,m({a:0,b:0,c:0}))),k.indexOf("select")>-1&&M===1&&jUt(C,r,[e.xaxis],[e.yaxis],e.id,e.dragOptions),k.indexOf("event")>-1&&VEe.click(r,C,e.id)}function w(M,C,k){var D=t.getBoundingClientRect();o=C-D.left,s=k-D.top,r._fullLayout._calcInverseTransform(r);var F=r._fullLayout._invTransform,P=Gd.apply3DTransform(F)(o,s);o=P[0],s=P[1],l={a:e.aaxis.range[0],b:e.baxis.range[1],c:e.caxis.range[1]},c=l,u=e.aaxis.range[1]-l.a,f=uh.luminosity(e.graphDiv._fullLayout[e.id].bgcolor),h="M0,"+e.h+"L"+e.w/2+", 0L"+e.w+","+e.h+"Z",p=!1,d=i.append("path").attr("class","zoombox").attr("transform",Vd(e.x0,e.y0)).style({fill:f>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("d",h),v=i.append("path").attr("class","zoombox-corners").attr("transform",Vd(e.x0,e.y0)).style({fill:uh.background,stroke:uh.defaultLine,"stroke-width":1,opacity:0}).attr("d","M0,0Z"),e.clearOutline(r)}function _(M,C){return 1-C/e.h}function b(M,C){return 1-(M+(e.h-C)/Math.sqrt(3))/e.w}function S(M,C){return(M-(e.h-C)/Math.sqrt(3))/e.w}function x(M,C){var k=o+M*n,D=s+C*a,F=Math.max(0,Math.min(1,_(o,s),_(k,D))),P=Math.max(0,Math.min(1,b(o,s),b(k,D))),R=Math.max(0,Math.min(1,S(o,s),S(k,D))),L=(F/2+R)*e.w,I=(1-F/2-P)*e.w,B=(L+I)/2,O=I-L,$=(1-F)*e.h,X=$-O/z5;O.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),v.transition().style("opacity",1).duration(200),p=!0),r.emit("plotly_relayouting",m(c))}function A(){jEe(r),c!==l&&(XY.call("_guiRelayout",r,m(c)),HEe&&r.data&&r._context.showTips&&(Gd.notifier(LP(r,"Double-click to zoom back out"),"long",r),HEe=!1))}function T(){l={a:e.aaxis.range[0],b:e.baxis.range[1],c:e.caxis.range[1]},c=l}function y(M,C){var k=M/e.xaxis._m,D=C/e.yaxis._m;c={a:l.a-D,b:l.b+(k+D)/2,c:l.c-(k-D)/2};var F=[c.a,c.b,c.c].sort(Gd.sorterAsc),P={a:F.indexOf(c.a),b:F.indexOf(c.b),c:F.indexOf(c.c)};F[0]<0&&(F[1]+F[0]/2<0?(F[2]+=F[0]+F[1],F[0]=F[1]=0):(F[2]+=F[0]/2,F[1]+=F[0]/2,F[0]=0),c={a:F[P.a],b:F[P.b],c:F[P.c]},C=(l.a-c.a)*e.yaxis._m,M=(l.c-c.c-l.b+c.b)*e.xaxis._m);var R=Vd(e.x0+M,e.y0+C);e.plotContainer.selectAll(".scatterlayer,.maplayer").attr("transform",R);var L=Vd(-M,-C);e.clipDefRelative.select("path").attr("transform",L),e.aaxis.range=[c.a,e.sum-c.b-c.c],e.baxis.range=[e.sum-c.a-c.c,c.b],e.caxis.range=[e.sum-c.a-c.b,c.c],e.drawAxes(!1),e._hasClipOnAxisFalse&&e.plotContainer.select(".scatterlayer").selectAll(".trace").call(Zb.hideOutsideRangePoints,e),r.emit("plotly_relayouting",m(c))}function E(){XY.call("_guiRelayout",r,m(c))}t.onmousemove=function(M){VEe.hover(r,M,e.id),r._fullLayout._lasthover=t,r._fullLayout._hoversubplot=e.id},t.onmouseout=function(M){r._dragging||UEe.unhover(r,M)},UEe.init(this.dragOptions)};function jEe(e){$Ee.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}});var QY=W((YHr,JEe)=>{"use strict";var QUt=Yl(),eVt=ds().attributes,La=ac(),tVt=hs().overrideAll,PP=an().extendFlat,JY={title:{text:La.title.text,font:La.title.font},color:La.color,tickmode:La.minor.tickmode,nticks:PP({},La.nticks,{dflt:6,min:1}),tick0:La.tick0,dtick:La.dtick,tickvals:La.tickvals,ticktext:La.ticktext,ticks:La.ticks,ticklen:La.ticklen,tickwidth:La.tickwidth,tickcolor:La.tickcolor,ticklabelstep:La.ticklabelstep,showticklabels:La.showticklabels,labelalias:La.labelalias,showtickprefix:La.showtickprefix,tickprefix:La.tickprefix,showticksuffix:La.showticksuffix,ticksuffix:La.ticksuffix,showexponent:La.showexponent,exponentformat:La.exponentformat,minexponent:La.minexponent,separatethousands:La.separatethousands,tickfont:La.tickfont,tickangle:La.tickangle,tickformat:La.tickformat,tickformatstops:La.tickformatstops,hoverformat:La.hoverformat,showline:PP({},La.showline,{dflt:!0}),linecolor:La.linecolor,linewidth:La.linewidth,showgrid:PP({},La.showgrid,{dflt:!0}),gridcolor:La.gridcolor,gridwidth:La.gridwidth,griddash:La.griddash,layer:La.layer,min:{valType:"number",dflt:0,min:0},showspikes:PP({},La.showspikes,{}),spikecolor:La.spikecolor,spikethickness:La.spikethickness,spikedash:La.spikedash,spikemode:La.spikemode,spikesnap:La.spikesnap},IP=JEe.exports=tVt({domain:eVt({name:"ternary"}),bgcolor:{valType:"color",dflt:QUt.background},sum:{valType:"number",dflt:1,min:0},aaxis:JY,baxis:JY,caxis:JY},"plot","from-root");IP.uirevision={valType:"any",editType:"none"};IP.aaxis.uirevision=IP.baxis.uirevision=IP.caxis.uirevision={valType:"any",editType:"none"}});var Kb=W((XHr,QEe)=>{"use strict";var rVt=tt(),iVt=Ra(),nVt=ds().defaults;QEe.exports=function(t,r,i,n){var a=n.type,o=n.attributes,s=n.handleDefaults,l=n.partition||"x",u=r._subplots[a],c=u.length,f=c&&u[0].replace(/\d+$/,""),h,p;function d(w,_){return rVt.coerce(h,p,o,w,_)}for(var v=0;v{"use strict";var aVt=ti(),oVt=Ra(),vS=tt(),sVt=Kb(),lVt=Py(),uVt=Iy(),cVt=Cw(),fVt=ub(),hVt=FM(),tke=QY(),eke=["aaxis","baxis","caxis"];rke.exports=function(t,r,i){sVt(t,r,i,{type:"ternary",attributes:tke,handleDefaults:dVt,font:r.font,paper_bgcolor:r.paper_bgcolor})};function dVt(e,t,r,i){var n=r("bgcolor"),a=r("sum");i.bgColor=aVt.combine(n,i.paper_bgcolor);for(var o,s,l,u=0;u=a&&(c.min=0,f.min=0,h.min=0,e.aaxis&&delete e.aaxis.min,e.baxis&&delete e.baxis.min,e.caxis&&delete e.caxis.min)}function pVt(e,t,r,i){var n=tke[t._name];function a(b,S){return vS.coerce(e,t,n,b,S)}function o(b,S){return vS.coerce2(e,t,n,b,S)}a("uirevision",i.uirevision),t.type="linear";var s=a("color"),l=s!==n.color.dflt?s:r.font.color,u=t._name,c=u.charAt(0).toUpperCase(),f="Component "+c,h=a("title.text",f);t._hovertitle=h===f?h:c,vS.coerceFont(a,"title.font",r.font,{overrideDflt:{size:vS.bigFont(r.font.size),color:l}}),a("min"),fVt(e,t,a,"linear"),uVt(e,t,a,"linear"),lVt(e,t,a,"linear",{noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0}),cVt(e,t,a,{outerTicks:!0});var p=a("showticklabels");p&&(vS.coerceFont(a,"tickfont",r.font,{overrideDflt:{color:l}}),a("tickangle"),a("tickformat")),hVt(e,t,a,{dfltColor:s,bgColor:r.bgColor,blend:60,showLine:!0,showGrid:!0,noZeroLine:!0,attributes:n}),a("hoverformat"),a("layer");var d=o("spikecolor"),v=o("spikethickness"),m=o("spikedash"),g=o("spikemode"),w=o("spikesnap"),_=a("showspikes",!!d||!!v||!!m||!!g||!!w);_||(delete t.spikecolor,delete t.spikethickness,delete t.spikedash,delete t.spikemode,delete t.spikesnap)}});var nke=W(Hd=>{"use strict";var vVt=KEe(),gVt=Mc().getSubplotCalcData,mVt=tt().counterRegex,B5="ternary";Hd.name=B5;var yVt=Hd.attr="subplot";Hd.idRoot=B5;Hd.idRegex=Hd.attrRegex=mVt(B5);var xVt=Hd.attributes={};xVt[yVt]={valType:"subplotid",dflt:"ternary",editType:"calc"};Hd.layoutAttributes=QY();Hd.supplyLayoutDefaults=ike();Hd.plot=function(t){for(var r=t._fullLayout,i=t.calcdata,n=r._subplots[B5],a=0;a{"use strict";ake.exports={attributes:$Y(),supplyDefaults:EEe(),colorbar:Cc(),formatLabels:CEe(),calc:PEe(),plot:REe(),style:lh().style,styleOnSelect:lh().styleOnSelect,hoverPoints:BEe(),selectPoints:Rb(),eventData:OEe(),moduleType:"trace",name:"scatterternary",basePlotModule:nke(),categories:["ternary","symbols","showLegend","scatter-like"],meta:{}}});var lke=W((QHr,ske)=>{"use strict";ske.exports=oke()});var eX=W((ejr,cke)=>{"use strict";var eu=KM(),q5=an().extendFlat,uke=Ts().axisHoverFormat;cke.exports={y:eu.y,x:eu.x,x0:eu.x0,y0:eu.y0,xhoverformat:uke("x"),yhoverformat:uke("y"),name:q5({},eu.name,{}),orientation:q5({},eu.orientation,{}),bandwidth:{valType:"number",min:0,editType:"calc"},scalegroup:{valType:"string",dflt:"",editType:"calc"},scalemode:{valType:"enumerated",values:["width","count"],dflt:"width",editType:"calc"},spanmode:{valType:"enumerated",values:["soft","hard","manual"],dflt:"soft",editType:"calc"},span:{valType:"info_array",items:[{valType:"any",editType:"calc"},{valType:"any",editType:"calc"}],editType:"calc"},line:{color:{valType:"color",editType:"style"},width:{valType:"number",min:0,dflt:2,editType:"style"},editType:"plot"},fillcolor:eu.fillcolor,points:q5({},eu.boxpoints,{}),jitter:q5({},eu.jitter,{}),pointpos:q5({},eu.pointpos,{}),width:q5({},eu.width,{}),marker:eu.marker,text:eu.text,hovertext:eu.hovertext,hovertemplate:eu.hovertemplate,hovertemplatefallback:eu.hovertemplatefallback,quartilemethod:eu.quartilemethod,box:{visible:{valType:"boolean",dflt:!1,editType:"plot"},width:{valType:"number",min:0,max:1,dflt:.25,editType:"plot"},fillcolor:{valType:"color",editType:"style"},line:{color:{valType:"color",editType:"style"},width:{valType:"number",min:0,editType:"style"},editType:"style"},editType:"plot"},meanline:{visible:{valType:"boolean",dflt:!1,editType:"plot"},color:{valType:"color",editType:"style"},width:{valType:"number",min:0,editType:"style"},editType:"plot"},side:{valType:"enumerated",values:["both","positive","negative"],dflt:"both",editType:"calc"},offsetgroup:eu.offsetgroup,alignmentgroup:eu.alignmentgroup,selected:eu.selected,unselected:eu.unselected,hoveron:{valType:"flaglist",flags:["violins","points","kde"],dflt:"violins+points+kde",extras:["all"],editType:"style"},zorder:eu.zorder}});var iX=W((tjr,fke)=>{"use strict";var tX=JM(),rX=tt().extendFlat;fke.exports={violinmode:rX({},tX.boxmode,{}),violingap:rX({},tX.boxgap,{}),violingroupgap:rX({},tX.boxgroupgap,{})}});var gke=W((rjr,vke)=>{"use strict";var hke=tt(),bVt=ti(),dke=eS(),pke=eX();vke.exports=function(t,r,i,n){function a(S,x){return hke.coerce(t,r,pke,S,x)}function o(S,x){return hke.coerce2(t,r,pke,S,x)}if(dke.handleSampleDefaults(t,r,a,n),r.visible!==!1){a("bandwidth"),a("side");var s=a("width");s||(a("scalegroup",r.name),a("scalemode"));var l=a("span"),u;Array.isArray(l)&&(u="manual"),a("spanmode",u);var c=a("line.color",(t.marker||{}).color||i),f=a("line.width"),h=a("fillcolor",bVt.addOpacity(r.line.color,.5));dke.handlePointsDefaults(t,r,a,{prefix:""});var p=o("box.width"),d=o("box.fillcolor",h),v=o("box.line.color",c),m=o("box.line.width",f),g=a("box.visible",!!(p||d||v||m));g||(r.box={visible:!1});var w=o("meanline.color",c),_=o("meanline.width",f),b=a("meanline.visible",!!(w||_));b||(r.meanline={visible:!1}),a("quartilemethod"),a("zorder")}}});var yke=W((ijr,mke)=>{"use strict";var _Vt=tt(),wVt=iX(),TVt=$L();mke.exports=function(t,r,i){function n(a,o){return _Vt.coerce(t,r,wVt,a,o)}TVt._supply(t,r,i,n,"violin")}});var RP=W(Jb=>{"use strict";var AVt=tt(),MVt={gaussian:function(e){return 1/Math.sqrt(2*Math.PI)*Math.exp(-.5*e*e)}};Jb.makeKDE=function(e,t,r){var i=r.length,n=MVt.gaussian,a=e.bandwidth,o=1/(i*a);return function(s){for(var l=0,u=0;u{"use strict";var nX=tt(),aX=Yi(),SVt=KW(),xke=RP(),EVt=(ra(),Pt(ia)).BADNUM;bke.exports=function(t,r){var i=SVt(t,r);if(i[0].t.empty)return i;for(var n=t._fullLayout,a=aX.getFromId(t,r[r.orientation==="h"?"xaxis":"yaxis"]),o=1/0,s=-1/0,l=0,u=0,c=0;c{"use strict";var FVt=YL().setPositionOffset,wke=["v","h"];Tke.exports=function(t,r){for(var i=t.calcdata,n=r.xaxis,a=r.yaxis,o=0;o{"use strict";var oX=gi(),sX=tt(),LVt=Qi(),lX=XL(),PVt=R$(),IVt=RP();Mke.exports=function(t,r,i,n){var a=t._context.staticPlot,o=t._fullLayout,s=r.xaxis,l=r.yaxis;function u(c,f){var h=PVt(c,{xaxis:s,yaxis:l,trace:f,connectGaps:!0,baseTolerance:.75,shape:"spline",simplify:!0,linearized:!0});return LVt.smoothopen(h[0],1)}sX.makeTraceGroups(n,i,"trace violins").each(function(c){var f=oX.select(this),h=c[0],p=h.t,d=h.trace;if(d.visible!==!0||p.empty){f.remove();return}var v=p.bPos,m=p.bdPos,g=r[p.valLetter+"axis"],w=r[p.posLetter+"axis"],_=d.side==="both",b=_||d.side==="positive",S=_||d.side==="negative",x=f.selectAll("path.violin").data(sX.identity);x.enter().append("path").style("vector-effect",a?"none":"non-scaling-stroke").attr("class","violin"),x.exit().remove(),x.each(function(D){var F=oX.select(this),P=D.density,R=P.length,L=w.c2l(D.pos+v,!0),I=w.l2p(L),B;if(d.width)B=p.maxKDE/m;else{var O=o._violinScaleGroupStats[d.scalegroup];B=d.scalemode==="count"?O.maxKDE/m*(O.maxCount/D.pts.length):O.maxKDE/m}var $,X,K,G,q,J,N;if(b){for(J=new Array(R),G=0;G{"use strict";var Eke=gi(),O5=ti(),RVt=lh().stylePoints;kke.exports=function(t){var r=Eke.select(t).selectAll("g.trace.violins");r.style("opacity",function(i){return i[0].trace.opacity}),r.each(function(i){var n=i[0].trace,a=Eke.select(this),o=n.box||{},s=o.line||{},l=n.meanline||{},u=l.width;a.selectAll("path.violin").style("stroke-width",n.line.width+"px").call(O5.stroke,n.line.color).call(O5.fill,n.fillcolor),a.selectAll("path.box").style("stroke-width",s.width+"px").call(O5.stroke,s.color).call(O5.fill,o.fillcolor);var c={"stroke-width":u+"px","stroke-dasharray":2*u+"px,"+u+"px"};a.selectAll("path.mean").style(c).call(O5.stroke,l.color),a.selectAll("path.meanline").style(c).call(O5.stroke,l.color),RVt(a,n,t)})}});var Pke=W((ujr,Lke)=>{"use strict";var zVt=ti(),uX=tt(),BVt=Yi(),Dke=rY(),Fke=RP();Lke.exports=function(t,r,i,n,a){a||(a={});var o=a.hoverLayer,s=t.cd,l=s[0].trace,u=l.hoveron,c=u.indexOf("violins")!==-1,f=u.indexOf("kde")!==-1,h=[],p,d;if(c||f){var v=Dke.hoverOnBoxes(t,r,i,n);if(f&&v.length>0){var m=t.xa,g=t.ya,w,_,b,S,x;l.orientation==="h"?(x=r,w="y",b=g,_="x",S=m):(x=i,w="x",b=m,_="y",S=g);var A=s[t.index];if(x>=A.span[0]&&x<=A.span[1]){var T=uX.extendFlat({},t),y=S.c2p(x,!0),E=Fke.getKdeValue(A,l,x),M=Fke.getPositionOnKdePath(A,l,y),C=b._offset,k=b._length;T[w+"0"]=M[0],T[w+"1"]=M[1],T[_+"0"]=T[_+"1"]=y,T[_+"Label"]=_+": "+BVt.hoverLabelText(S,x,l[_+"hoverformat"])+", "+s[0].t.labels.kde+" "+E.toFixed(3);for(var D=0,F=0;F{"use strict";Ike.exports={attributes:eX(),layoutAttributes:iX(),supplyDefaults:gke(),crossTraceDefaults:eS().crossTraceDefaults,supplyLayoutDefaults:yke(),calc:_ke(),crossTraceCalc:Ake(),plot:Ske(),style:Cke(),styleOnSelect:lh().styleOnSelect,hoverPoints:Pke(),selectPoints:iY(),moduleType:"trace",name:"violin",basePlotModule:xl(),categories:["cartesian","svg","symbols","oriented","box-violin","showLegend","violinLayout","zoomScale"],meta:{}}});var Bke=W((fjr,zke)=>{"use strict";zke.exports=Rke()});var qke={};Jn(qke,{eventDataKeys:()=>qVt});var qVt,Oke=Ci(()=>{"use strict";qVt=["percentInitial","percentPrevious","percentTotal"]});var fX=W((hjr,Gke)=>{"use strict";var ps=R1(),cX=Ws().line,OVt=Ja(),Nke=Ts().axisHoverFormat,{hovertemplateAttrs:NVt,texttemplateAttrs:UVt,templatefallbackAttrs:Uke}=Wa(),Vke=(Oke(),Pt(qke)),cm=an().extendFlat,VVt=ti();Gke.exports={x:ps.x,x0:ps.x0,dx:ps.dx,y:ps.y,y0:ps.y0,dy:ps.dy,xperiod:ps.xperiod,yperiod:ps.yperiod,xperiod0:ps.xperiod0,yperiod0:ps.yperiod0,xperiodalignment:ps.xperiodalignment,yperiodalignment:ps.yperiodalignment,xhoverformat:Nke("x"),yhoverformat:Nke("y"),hovertext:ps.hovertext,hovertemplate:NVt({},{keys:Vke.eventDataKeys}),hovertemplatefallback:Uke(),hoverinfo:cm({},OVt.hoverinfo,{flags:["name","x","y","text","percent initial","percent previous","percent total"]}),textinfo:{valType:"flaglist",flags:["label","text","percent initial","percent previous","percent total","value"],extras:["none"],editType:"plot",arrayOk:!1},texttemplate:UVt({editType:"plot"},{keys:Vke.eventDataKeys.concat(["label","value"])}),texttemplatefallback:Uke({editType:"plot"}),text:ps.text,textposition:ps.textposition,insidetextanchor:cm({},ps.insidetextanchor,{dflt:"middle"}),textangle:cm({},ps.textangle,{dflt:0}),textfont:ps.textfont,insidetextfont:ps.insidetextfont,outsidetextfont:ps.outsidetextfont,constraintext:ps.constraintext,cliponaxis:ps.cliponaxis,orientation:cm({},ps.orientation,{}),offset:cm({},ps.offset,{arrayOk:!1}),width:cm({},ps.width,{arrayOk:!1}),marker:GVt(),connector:{fillcolor:{valType:"color",editType:"style"},line:{color:cm({},cX.color,{dflt:VVt.defaultLine}),width:cm({},cX.width,{dflt:0,editType:"plot"}),dash:cX.dash,editType:"style"},visible:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},offsetgroup:ps.offsetgroup,alignmentgroup:ps.alignmentgroup,zorder:ps.zorder};function GVt(){var e=cm({},ps.marker);return delete e.pattern,delete e.cornerradius,e}});var hX=W((djr,Hke)=>{"use strict";Hke.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"}}});var pX=W((pjr,$ke)=>{"use strict";var zP=tt(),HVt=Pb(),jVt=I0().handleText,$Vt=Lb(),WVt=Qp(),jke=fX(),dX=ti();function YVt(e,t,r,i){function n(f,h){return zP.coerce(e,t,jke,f,h)}var a=$Vt(e,t,i,n);if(!a){t.visible=!1;return}WVt(e,t,i,n),n("xhoverformat"),n("yhoverformat"),n("orientation",t.y&&!t.x?"v":"h"),n("offset"),n("width");var o=n("text");n("hovertext"),n("hovertemplate"),n("hovertemplatefallback");var s=n("textposition");jVt(e,t,i,n,s,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),t.textposition!=="none"&&!t.texttemplate&&n("textinfo",zP.isArrayOrTypedArray(o)?"text+value":"value");var l=n("marker.color",r);n("marker.line.color",dX.defaultLine),n("marker.line.width");var u=n("connector.visible");if(u){n("connector.fillcolor",XVt(l));var c=n("connector.line.width");c&&(n("connector.line.color"),n("connector.line.dash"))}n("zorder")}function XVt(e){var t=zP.isArrayOrTypedArray(e)?"#000":e;return dX.addOpacity(t,.5*dX.opacity(t))}function ZVt(e,t){var r,i;function n(o){return zP.coerce(i._input,i,jke,o)}for(var a=0;a{"use strict";var KVt=tt(),JVt=hX();Wke.exports=function(e,t,r){var i=!1;function n(s,l){return KVt.coerce(e,t,JVt,s,l)}for(var a=0;a{"use strict";var N5=tt();Xke.exports=function(t,r){for(var i=0;i{"use strict";var Kke=Yi(),Jke=rv(),QVt=Zke(),eGt=C0(),gS=(ra(),Pt(ia)).BADNUM;Qke.exports=function(t,r){var i=Kke.getFromId(t,r.xaxis||"x"),n=Kke.getFromId(t,r.yaxis||"y"),a,o,s,l,u,c,f,h;r.orientation==="h"?(a=i.makeCalcdata(r,"x"),s=n.makeCalcdata(r,"y"),l=Jke(r,n,"y",s),u=!!r.yperiodalignment,c="y"):(a=n.makeCalcdata(r,"y"),s=i.makeCalcdata(r,"x"),l=Jke(r,i,"x",s),u=!!r.xperiodalignment,c="x"),o=l.vals;var p=Math.min(o.length,a.length),d=new Array(p);for(r._base=[],f=0;f{"use strict";var tCe=Ib().setGroupPositions;rCe.exports=function(t,r){var i=t._fullLayout,n=t._fullData,a=t.calcdata,o=r.xaxis,s=r.yaxis,l=[],u=[],c=[],f,h;for(h=0;h{"use strict";var BP=gi(),f2=tt(),nCe=Qi(),c2=(ra(),Pt(ia)).BADNUM,tGt=Wb(),rGt=of().clearMinTextSize;oCe.exports=function(t,r,i,n){var a=t._fullLayout;rGt("funnel",a),iGt(t,r,i,n),nGt(t,r,i,n),tGt.plot(t,r,i,n,{mode:a.funnelmode,norm:a.funnelmode,gap:a.funnelgap,groupgap:a.funnelgroupgap})};function iGt(e,t,r,i){var n=t.xaxis,a=t.yaxis;f2.makeTraceGroups(i,r,"trace bars").each(function(o){var s=BP.select(this),l=o[0].trace,u=f2.ensureSingle(s,"g","regions");if(!l.connector||!l.connector.visible){u.remove();return}var c=l.orientation==="h",f=u.selectAll("g.region").data(f2.identity);f.enter().append("g").classed("region",!0),f.exit().remove();var h=f.size();f.each(function(p,d){if(!(d!==h-1&&!p.cNext)){var v=aCe(p,n,a,c),m=v[0],g=v[1],w="";m[0]!==c2&&g[0]!==c2&&m[1]!==c2&&g[1]!==c2&&m[2]!==c2&&g[2]!==c2&&m[3]!==c2&&g[3]!==c2&&(c?w+="M"+m[0]+","+g[1]+"L"+m[2]+","+g[2]+"H"+m[3]+"L"+m[1]+","+g[1]+"Z":w+="M"+m[1]+","+g[1]+"L"+m[2]+","+g[3]+"V"+g[2]+"L"+m[1]+","+g[0]+"Z"),w===""&&(w="M0,0Z"),f2.ensureSingle(BP.select(this),"path").attr("d",w).call(nCe.setClipUrl,t.layerClipId,e)}})})}function nGt(e,t,r,i){var n=t.xaxis,a=t.yaxis;f2.makeTraceGroups(i,r,"trace bars").each(function(o){var s=BP.select(this),l=o[0].trace,u=f2.ensureSingle(s,"g","lines");if(!l.connector||!l.connector.visible||!l.connector.line.width){u.remove();return}var c=l.orientation==="h",f=u.selectAll("g.line").data(f2.identity);f.enter().append("g").classed("line",!0),f.exit().remove();var h=f.size();f.each(function(p,d){if(!(d!==h-1&&!p.cNext)){var v=aCe(p,n,a,c),m=v[0],g=v[1],w="";m[3]!==void 0&&g[3]!==void 0&&(c?(w+="M"+m[0]+","+g[1]+"L"+m[2]+","+g[2],w+="M"+m[1]+","+g[1]+"L"+m[3]+","+g[2]):(w+="M"+m[1]+","+g[1]+"L"+m[2]+","+g[3],w+="M"+m[1]+","+g[0]+"L"+m[2]+","+g[2])),w===""&&(w="M0,0Z"),f2.ensureSingle(BP.select(this),"path").attr("d",w).call(nCe.setClipUrl,t.layerClipId,e)}})})}function aCe(e,t,r,i){var n=[],a=[],o=i?t:r,s=i?r:t;return n[0]=o.c2p(e.s0,!0),a[0]=s.c2p(e.p0,!0),n[1]=o.c2p(e.s1,!0),a[1]=s.c2p(e.p1,!0),n[2]=o.c2p(e.nextS0,!0),a[2]=s.c2p(e.nextP0,!0),n[3]=o.c2p(e.nextS1,!0),a[3]=s.c2p(e.nextP1,!0),i?[n,a]:[a,n]}});var cCe=W((bjr,uCe)=>{"use strict";var mS=gi(),lCe=Qi(),gX=ti(),aGt=(Ng(),Pt(Og)).DESELECTDIM,oGt=zd(),sGt=of().resizeText,lGt=oGt.styleTextPoints;function uGt(e,t,r){var i=r||mS.select(e).selectAll('g[class^="funnellayer"]').selectAll("g.trace");sGt(e,i,"funnel"),i.style("opacity",function(n){return n[0].trace.opacity}),i.each(function(n){var a=mS.select(this),o=n[0].trace;a.selectAll(".point > path").each(function(s){if(!s.isBlank){var l=o.marker;mS.select(this).call(gX.fill,s.mc||l.color).call(gX.stroke,s.mlc||l.line.color).call(lCe.dashLine,l.line.dash,s.mlw||l.line.width).style("opacity",o.selectedpoints&&!s.selected?aGt:1)}}),lGt(a,o,e),a.selectAll(".regions").each(function(){mS.select(this).selectAll("path").style("stroke-width",0).call(gX.fill,o.connector.fillcolor)}),a.selectAll(".lines").each(function(){var s=o.connector.line;lCe.lineGroupStyle(mS.select(this).selectAll("path"),s.width,s.color,s.dash)})})}uCe.exports={style:uGt}});var dCe=W((_jr,hCe)=>{"use strict";var fCe=ti().opacity,cGt=w5().hoverOnBars,mX=tt().formatPercent;hCe.exports=function(t,r,i,n,a){var o=cGt(t,r,i,n,a);if(o){var s=o.cd,l=s[0].trace,u=l.orientation==="h",c=o.index,f=s[c],h=u?"x":"y";o[h+"LabelVal"]=f.s,o.percentInitial=f.begR,o.percentInitialLabel=mX(f.begR,1),o.percentPrevious=f.difR,o.percentPreviousLabel=mX(f.difR,1),o.percentTotal=f.sumR,o.percentTotalLabel=mX(f.sumR,1);var p=f.hi||l.hoverinfo,d=[];if(p&&p!=="none"&&p!=="skip"){var v=p==="all",m=p.split("+"),g=function(w){return v||m.indexOf(w)!==-1};g("percent initial")&&d.push(o.percentInitialLabel+" of initial"),g("percent previous")&&d.push(o.percentPreviousLabel+" of previous"),g("percent total")&&d.push(o.percentTotalLabel+" of total")}return o.extraText=d.join("
"),o.color=fGt(l,f),[o]}};function fGt(e,t){var r=e.marker,i=t.mc||r.color,n=t.mlc||r.line.color,a=t.mlw||r.line.width;if(fCe(i))return i;if(fCe(n)&&a)return n}});var vCe=W((wjr,pCe)=>{"use strict";pCe.exports=function(t,r){return t.x="xVal"in r?r.xVal:r.x,t.y="yVal"in r?r.yVal:r.y,"percentInitial"in r&&(t.percentInitial=r.percentInitial),"percentPrevious"in r&&(t.percentPrevious=r.percentPrevious),"percentTotal"in r&&(t.percentTotal=r.percentTotal),r.xa&&(t.xaxis=r.xa),r.ya&&(t.yaxis=r.ya),t}});var mCe=W((Tjr,gCe)=>{"use strict";gCe.exports={attributes:fX(),layoutAttributes:hX(),supplyDefaults:pX().supplyDefaults,crossTraceDefaults:pX().crossTraceDefaults,supplyLayoutDefaults:Yke(),calc:eCe(),crossTraceCalc:iCe(),plot:sCe(),style:cCe().style,hoverPoints:dCe(),eventData:vCe(),selectPoints:T5(),moduleType:"trace",name:"funnel",basePlotModule:xl(),categories:["bar-like","cartesian","svg","oriented","showLegend","zoomScale"],meta:{}}});var xCe=W((Ajr,yCe)=>{"use strict";yCe.exports=mCe()});var bCe={};Jn(bCe,{eventDataKeys:()=>hGt});var hGt,_Ce=Ci(()=>{"use strict";hGt=["initial","delta","final"]});var bX=W((Mjr,MCe)=>{"use strict";var Xo=R1(),yX=Ws().line,dGt=Ja(),wCe=Ts().axisHoverFormat,{hovertemplateAttrs:pGt,texttemplateAttrs:vGt,templatefallbackAttrs:TCe}=Wa(),ACe=(_Ce(),Pt(bCe)),U5=an().extendFlat,gGt=ti();function xX(e){return{marker:{color:U5({},Xo.marker.color,{arrayOk:!1,editType:"style"}),line:{color:U5({},Xo.marker.line.color,{arrayOk:!1,editType:"style"}),width:U5({},Xo.marker.line.width,{arrayOk:!1,editType:"style"}),editType:"style"},editType:"style"},editType:"style"}}MCe.exports={measure:{valType:"data_array",dflt:[],editType:"calc"},base:{valType:"number",dflt:null,arrayOk:!1,editType:"calc"},x:Xo.x,x0:Xo.x0,dx:Xo.dx,y:Xo.y,y0:Xo.y0,dy:Xo.dy,xperiod:Xo.xperiod,yperiod:Xo.yperiod,xperiod0:Xo.xperiod0,yperiod0:Xo.yperiod0,xperiodalignment:Xo.xperiodalignment,yperiodalignment:Xo.yperiodalignment,xhoverformat:wCe("x"),yhoverformat:wCe("y"),hovertext:Xo.hovertext,hovertemplate:pGt({},{keys:ACe.eventDataKeys}),hovertemplatefallback:TCe(),hoverinfo:U5({},dGt.hoverinfo,{flags:["name","x","y","text","initial","delta","final"]}),textinfo:{valType:"flaglist",flags:["label","text","initial","delta","final"],extras:["none"],editType:"plot",arrayOk:!1},texttemplate:vGt({editType:"plot"},{keys:ACe.eventDataKeys.concat(["label"])}),texttemplatefallback:TCe({editType:"plot"}),text:Xo.text,textposition:Xo.textposition,insidetextanchor:Xo.insidetextanchor,textangle:Xo.textangle,textfont:Xo.textfont,insidetextfont:Xo.insidetextfont,outsidetextfont:Xo.outsidetextfont,constraintext:Xo.constraintext,cliponaxis:Xo.cliponaxis,orientation:Xo.orientation,offset:Xo.offset,width:Xo.width,increasing:xX("increasing"),decreasing:xX("decreasing"),totals:xX("intermediate sums and total"),connector:{line:{color:U5({},yX.color,{dflt:gGt.defaultLine}),width:U5({},yX.width,{editType:"plot"}),dash:yX.dash,editType:"plot"},mode:{valType:"enumerated",values:["spanning","between"],dflt:"between",editType:"plot"},visible:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},offsetgroup:Xo.offsetgroup,alignmentgroup:Xo.alignmentgroup,zorder:Xo.zorder}});var _X=W((Sjr,SCe)=>{"use strict";SCe.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"}}});var V5={};Jn(V5,{DECREASING:()=>yGt,INCREASING:()=>mGt});var mGt,yGt,G5=Ci(()=>{"use strict";mGt={COLOR:"#3D9970",SYMBOL:"\u25B2"},yGt={COLOR:"#FF4136",SYMBOL:"\u25BC"}});var TX=W((Ejr,DCe)=>{"use strict";var ECe=tt(),xGt=Pb(),bGt=I0().handleText,_Gt=Lb(),wGt=Qp(),kCe=bX(),TGt=ti(),CCe=(G5(),Pt(V5)),AGt=CCe.INCREASING.COLOR,MGt=CCe.DECREASING.COLOR,SGt="#4499FF";function wX(e,t,r){e(t+".marker.color",r),e(t+".marker.line.color",TGt.defaultLine),e(t+".marker.line.width")}function EGt(e,t,r,i){function n(u,c){return ECe.coerce(e,t,kCe,u,c)}var a=_Gt(e,t,i,n);if(!a){t.visible=!1;return}wGt(e,t,i,n),n("xhoverformat"),n("yhoverformat"),n("measure"),n("orientation",t.x&&!t.y?"h":"v"),n("base"),n("offset"),n("width"),n("text"),n("hovertext"),n("hovertemplate"),n("hovertemplatefallback");var o=n("textposition");bGt(e,t,i,n,o,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),t.textposition!=="none"&&(n("texttemplate"),n("texttemplatefallback"),t.texttemplate||n("textinfo")),wX(n,"increasing",AGt),wX(n,"decreasing",MGt),wX(n,"totals",SGt);var s=n("connector.visible");if(s){n("connector.mode");var l=n("connector.line.width");l&&(n("connector.line.color"),n("connector.line.dash"))}n("zorder")}function kGt(e,t){var r,i;function n(o){return ECe.coerce(i._input,i,kCe,o)}if(t.waterfallmode==="group")for(var a=0;a{"use strict";var CGt=tt(),DGt=_X();FCe.exports=function(e,t,r){var i=!1;function n(s,l){return CGt.coerce(e,t,DGt,s,l)}for(var a=0;a{"use strict";var PCe=Yi(),ICe=rv(),RCe=tt().mergeArray,FGt=C0(),zCe=(ra(),Pt(ia)).BADNUM;function AX(e){return e==="a"||e==="absolute"}function MX(e){return e==="t"||e==="total"}BCe.exports=function(t,r){var i=PCe.getFromId(t,r.xaxis||"x"),n=PCe.getFromId(t,r.yaxis||"y"),a,o,s,l,u,c;r.orientation==="h"?(a=i.makeCalcdata(r,"x"),s=n.makeCalcdata(r,"y"),l=ICe(r,n,"y",s),u=!!r.yperiodalignment,c="y"):(a=n.makeCalcdata(r,"y"),s=i.makeCalcdata(r,"x"),l=ICe(r,i,"x",s),u=!!r.xperiodalignment,c="x"),o=l.vals;for(var f=Math.min(o.length,a.length),h=new Array(f),p=0,d,v=!1,m=0;m{"use strict";var OCe=Ib().setGroupPositions;NCe.exports=function(t,r){var i=t._fullLayout,n=t._fullData,a=t.calcdata,o=r.xaxis,s=r.yaxis,l=[],u=[],c=[],f,h;for(h=0;h{"use strict";var VCe=gi(),qP=tt(),LGt=Qi(),H5=(ra(),Pt(ia)).BADNUM,PGt=Wb(),IGt=of().clearMinTextSize;GCe.exports=function(t,r,i,n){var a=t._fullLayout;IGt("waterfall",a),PGt.plot(t,r,i,n,{mode:a.waterfallmode,norm:a.waterfallmode,gap:a.waterfallgap,groupgap:a.waterfallgroupgap}),RGt(t,r,i,n)};function RGt(e,t,r,i){var n=t.xaxis,a=t.yaxis;qP.makeTraceGroups(i,r,"trace bars").each(function(o){var s=VCe.select(this),l=o[0].trace,u=qP.ensureSingle(s,"g","lines");if(!l.connector||!l.connector.visible){u.remove();return}var c=l.orientation==="h",f=l.connector.mode,h=u.selectAll("g.line").data(qP.identity);h.enter().append("g").classed("line",!0),h.exit().remove();var p=h.size();h.each(function(d,v){if(!(v!==p-1&&!d.cNext)){var m=zGt(d,n,a,c),g=m[0],w=m[1],_="";g[0]!==H5&&w[0]!==H5&&g[1]!==H5&&w[1]!==H5&&(f==="spanning"&&!d.isSum&&v>0&&(c?_+="M"+g[0]+","+w[1]+"V"+w[0]:_+="M"+g[1]+","+w[0]+"H"+g[0]),f!=="between"&&(d.isSum||v{"use strict";var OP=gi(),jCe=Qi(),$Ce=ti(),BGt=(Ng(),Pt(Og)).DESELECTDIM,qGt=zd(),OGt=of().resizeText,NGt=qGt.styleTextPoints;function UGt(e,t,r){var i=r||OP.select(e).selectAll('g[class^="waterfalllayer"]').selectAll("g.trace");OGt(e,i,"waterfall"),i.style("opacity",function(n){return n[0].trace.opacity}),i.each(function(n){var a=OP.select(this),o=n[0].trace;a.selectAll(".point > path").each(function(s){if(!s.isBlank){var l=o[s.dir].marker;OP.select(this).call($Ce.fill,l.color).call($Ce.stroke,l.line.color).call(jCe.dashLine,l.line.dash,l.line.width).style("opacity",o.selectedpoints&&!s.selected?BGt:1)}}),NGt(a,o,e),a.selectAll(".lines").each(function(){var s=o.connector.line;jCe.lineGroupStyle(OP.select(this).selectAll("path"),s.width,s.color,s.dash)})})}WCe.exports={style:UGt}});var QCe=W((Pjr,JCe)=>{"use strict";var VGt=Yi().hoverLabelText,XCe=ti().opacity,GGt=w5().hoverOnBars,ZCe=(G5(),Pt(V5)),KCe={increasing:ZCe.INCREASING.SYMBOL,decreasing:ZCe.DECREASING.SYMBOL};JCe.exports=function(t,r,i,n,a){var o=GGt(t,r,i,n,a);if(!o)return;var s=o.cd,l=s[0].trace,u=l.orientation==="h",c=u?"x":"y",f=u?t.xa:t.ya;function h(x){return VGt(f,x,l[c+"hoverformat"])}var p=o.index,d=s[p],v=d.isSum?d.b+d.s:d.rawS;o.initial=d.b+d.s-v,o.delta=v,o.final=o.initial+o.delta;var m=h(Math.abs(o.delta));o.deltaLabel=v<0?"("+m+")":m,o.finalLabel=h(o.final),o.initialLabel=h(o.initial);var g=d.hi||l.hoverinfo,w=[];if(g&&g!=="none"&&g!=="skip"){var _=g==="all",b=g.split("+"),S=function(x){return _||b.indexOf(x)!==-1};d.isSum||(S("final")&&(u?!S("x"):!S("y"))&&w.push(o.finalLabel),S("delta")&&(v<0?w.push(o.deltaLabel+" "+KCe.decreasing):w.push(o.deltaLabel+" "+KCe.increasing)),S("initial")&&w.push("Initial: "+o.initialLabel))}return w.length&&(o.extraText=w.join("
")),o.color=HGt(l,d),[o]};function HGt(e,t){var r=e[t.dir].marker,i=r.color,n=r.line.color,a=r.line.width;if(XCe(i))return i;if(XCe(n)&&a)return n}});var t8e=W((Ijr,e8e)=>{"use strict";e8e.exports=function(t,r){return t.x="xVal"in r?r.xVal:r.x,t.y="yVal"in r?r.yVal:r.y,"initial"in r&&(t.initial=r.initial),"delta"in r&&(t.delta=r.delta),"final"in r&&(t.final=r.final),r.xa&&(t.xaxis=r.xa),r.ya&&(t.yaxis=r.ya),t}});var i8e=W((Rjr,r8e)=>{"use strict";r8e.exports={attributes:bX(),layoutAttributes:_X(),supplyDefaults:TX().supplyDefaults,crossTraceDefaults:TX().crossTraceDefaults,supplyLayoutDefaults:LCe(),calc:qCe(),crossTraceCalc:UCe(),plot:HCe(),style:YCe().style,hoverPoints:QCe(),eventData:t8e(),selectPoints:T5(),moduleType:"trace",name:"waterfall",basePlotModule:xl(),categories:["bar-like","cartesian","svg","oriented","showLegend","zoomScale"],meta:{}}});var a8e=W((zjr,n8e)=>{"use strict";n8e.exports=i8e()});var yS={};Jn(yS,{colormodel:()=>SX});var SX,j5=Ci(()=>{"use strict";SX={rgb:{min:[0,0,0],max:[255,255,255],fmt:e=>e.slice(0,3),suffix:["","",""]},rgba:{min:[0,0,0,0],max:[255,255,255,1],fmt:e=>e.slice(0,4),suffix:["","","",""]},rgba256:{colormodel:"rgba",zminDflt:[0,0,0,0],zmaxDflt:[255,255,255,255],min:[0,0,0,0],max:[255,255,255,1],fmt:e=>e.slice(0,4),suffix:["","","",""]},hsl:{min:[0,0,0],max:[360,100,100],fmt:e=>{let t=e.slice(0,3);return t[1]=t[1]+"%",t[2]=t[2]+"%",t},suffix:["\xB0","%","%"]},hsla:{min:[0,0,0,0],max:[360,100,100,1],fmt:e=>{let t=e.slice(0,4);return t[1]=t[1]+"%",t[2]=t[2]+"%",t},suffix:["\xB0","%","%",""]}}});var EX={};Jn(EX,{default:()=>$Gt});var o8e,s8e,NP,l8e,u8e,c8e,f8e,jGt,$Gt,kX=Ci(()=>{"use strict";o8e=s1(an()),s8e=s1(Ja()),NP=s1(Wa()),l8e=s1(Ws());j5();u8e=["rgb","rgba","rgba256","hsl","hsla"],c8e=[],f8e=[];for(let e of u8e){let t=SX[e];c8e.push(`For the \`${e}\` colormodel, it is [${(t.zminDflt||t.min).join(", ")}].`),f8e.push(`For the \`${e}\` colormodel, it is [${(t.zmaxDflt||t.max).join(", ")}].`)}jGt={source:{valType:"string",editType:"calc",description:["Specifies the data URI of the image to be visualized.",'The URI consists of "data:image/[][;base64\\\\],"'].join(" ")},z:{valType:"data_array",editType:"calc",description:["A 2-dimensional array in which each element is an array of 3 or 4 numbers representing a color."].join(" ")},colormodel:{valType:"enumerated",values:u8e,editType:"calc",description:["Color model used to map the numerical color components described in `z` into colors.","If `source` is specified, this attribute will be set to `rgba256`","otherwise it defaults to `rgb`."].join(" ")},zsmooth:{valType:"enumerated",values:["fast",!1],dflt:!1,editType:"plot",description:["Picks a smoothing algorithm used to smooth `z` data.","This only applies for image traces that use the `source` attribute."].join(" ")},zmin:{valType:"info_array",items:[{valType:"number",editType:"calc"},{valType:"number",editType:"calc"},{valType:"number",editType:"calc"},{valType:"number",editType:"calc"}],editType:"calc",description:["Array defining the lower bound for each color component.","Note that the default value will depend on the colormodel.",c8e.join(" ")].join(" ")},zmax:{valType:"info_array",items:[{valType:"number",editType:"calc"},{valType:"number",editType:"calc"},{valType:"number",editType:"calc"},{valType:"number",editType:"calc"}],editType:"calc",description:["Array defining the higher bound for each color component.","Note that the default value will depend on the colormodel.",f8e.join(" ")].join(" ")},x0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",description:["Set the image's x position. The left edge of the image","(or the right edge if the x axis is reversed or dx is negative)","will be found at xmin=x0-dx/2"].join(" ")},y0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",description:["Set the image's y position. The top edge of the image","(or the bottom edge if the y axis is NOT reversed or if dy is negative)","will be found at ymin=y0-dy/2. By default when an image trace is","included, the y axis will be reversed so that the image is right-side-up,","but you can disable this by setting yaxis.autorange=true or by providing","an explicit y axis range."].join(" ")},dx:{valType:"number",dflt:1,editType:"calc",description:"Set the pixel's horizontal size."},dy:{valType:"number",dflt:1,editType:"calc",description:"Set the pixel's vertical size"},text:{valType:"data_array",editType:"plot",description:"Sets the text elements associated with each z value."},hovertext:{valType:"data_array",editType:"plot",description:"Same as `text`."},hoverinfo:(0,o8e.extendFlat)({},s8e.default.hoverinfo,{flags:["x","y","z","color","name","text"],dflt:"x+y+z+text+name"}),hovertemplate:(0,NP.hovertemplateAttrs)({},{keys:["z","color","colormodel"]}),hovertemplatefallback:(0,NP.templatefallbackAttrs)(),zorder:l8e.zorder},$Gt=jGt});var p8e=W((qjr,d8e)=>{"use strict";var WGt=tt(),YGt=(kX(),Pt(EX)).default,h8e=(j5(),Pt(yS)),XGt=em().IMAGE_URL_PREFIX;d8e.exports=function(t,r){function i(o,s){return WGt.coerce(t,r,YGt,o,s)}i("source"),r.source&&!r.source.match(XGt)&&delete r.source,r._hasSource=!!r.source;var n=i("z");if(r._hasZ=!(n===void 0||!n.length||!n[0]||!n[0].length),!r._hasZ&&!r._hasSource){r.visible=!1;return}i("x0"),i("y0"),i("dx"),i("dy");var a;r._hasZ?(i("colormodel","rgb"),a=h8e.colormodel[r.colormodel],i("zmin",a.zminDflt||a.min),i("zmax",a.zmaxDflt||a.max)):r._hasSource&&(r.colormodel="rgba256",a=h8e.colormodel[r.colormodel],r.zmin=a.zminDflt,r.zmax=a.zmaxDflt),i("zsmooth"),i("text"),i("hovertext"),i("hovertemplate"),i("hovertemplatefallback"),r._length=null,i("zorder")}});var fm=W((Ojr,CX)=>{typeof Object.create=="function"?CX.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:CX.exports=function(t,r){if(r){t.super_=r;var i=function(){};i.prototype=r.prototype,t.prototype=new i,t.prototype.constructor=t}}});var DX=W((Njr,v8e)=>{v8e.exports=ib().EventEmitter});var y8e=W(UP=>{"use strict";UP.byteLength=KGt;UP.toByteArray=QGt;UP.fromByteArray=rHt;var O1=[],jd=[],ZGt=typeof Uint8Array!="undefined"?Uint8Array:Array,FX="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(Qb=0,g8e=FX.length;Qb0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");r===-1&&(r=t);var i=r===t?0:4-r%4;return[r,i]}function KGt(e){var t=m8e(e),r=t[0],i=t[1];return(r+i)*3/4-i}function JGt(e,t,r){return(t+r)*3/4-r}function QGt(e){var t,r=m8e(e),i=r[0],n=r[1],a=new ZGt(JGt(e,i,n)),o=0,s=n>0?i-4:i,l;for(l=0;l>16&255,a[o++]=t>>8&255,a[o++]=t&255;return n===2&&(t=jd[e.charCodeAt(l)]<<2|jd[e.charCodeAt(l+1)]>>4,a[o++]=t&255),n===1&&(t=jd[e.charCodeAt(l)]<<10|jd[e.charCodeAt(l+1)]<<4|jd[e.charCodeAt(l+2)]>>2,a[o++]=t>>8&255,a[o++]=t&255),a}function eHt(e){return O1[e>>18&63]+O1[e>>12&63]+O1[e>>6&63]+O1[e&63]}function tHt(e,t,r){for(var i,n=[],a=t;as?s:o+a));return i===1?(t=e[r-1],n.push(O1[t>>2]+O1[t<<4&63]+"==")):i===2&&(t=(e[r-2]<<8)+e[r-1],n.push(O1[t>>10]+O1[t>>4&63]+O1[t<<2&63]+"=")),n.join("")}});var x8e=W(LX=>{LX.read=function(e,t,r,i,n){var a,o,s=n*8-i-1,l=(1<>1,c=-7,f=r?n-1:0,h=r?-1:1,p=e[t+f];for(f+=h,a=p&(1<<-c)-1,p>>=-c,c+=s;c>0;a=a*256+e[t+f],f+=h,c-=8);for(o=a&(1<<-c)-1,a>>=-c,c+=i;c>0;o=o*256+e[t+f],f+=h,c-=8);if(a===0)a=1-u;else{if(a===l)return o?NaN:(p?-1:1)*(1/0);o=o+Math.pow(2,i),a=a-u}return(p?-1:1)*o*Math.pow(2,a-i)};LX.write=function(e,t,r,i,n,a){var o,s,l,u=a*8-n-1,c=(1<>1,h=n===23?Math.pow(2,-24)-Math.pow(2,-77):0,p=i?0:a-1,d=i?1:-1,v=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,o=c):(o=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-o))<1&&(o--,l*=2),o+f>=1?t+=h/l:t+=h*Math.pow(2,1-f),t*l>=2&&(o++,l/=2),o+f>=c?(s=0,o=c):o+f>=1?(s=(t*l-1)*Math.pow(2,n),o=o+f):(s=t*Math.pow(2,f-1)*Math.pow(2,n),o=0));n>=8;e[r+p]=s&255,p+=d,s/=256,n-=8);for(o=o<0;e[r+p]=o&255,p+=d,o/=256,u-=8);e[r+p-d]|=v*128}});var t_=W(X5=>{"use strict";var PX=y8e(),W5=x8e(),b8e=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;X5.Buffer=Ur;X5.SlowBuffer=lHt;X5.INSPECT_MAX_BYTES=50;var VP=2147483647;X5.kMaxLength=VP;Ur.TYPED_ARRAY_SUPPORT=iHt();!Ur.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&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 iHt(){try{let e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),e.foo()===42}catch(e){return!1}}Object.defineProperty(Ur.prototype,"parent",{enumerable:!0,get:function(){if(Ur.isBuffer(this))return this.buffer}});Object.defineProperty(Ur.prototype,"offset",{enumerable:!0,get:function(){if(Ur.isBuffer(this))return this.byteOffset}});function hm(e){if(e>VP)throw new RangeError('The value "'+e+'" is invalid for option "size"');let t=new Uint8Array(e);return Object.setPrototypeOf(t,Ur.prototype),t}function Ur(e,t,r){if(typeof e=="number"){if(typeof t=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return BX(e)}return A8e(e,t,r)}Ur.poolSize=8192;function A8e(e,t,r){if(typeof e=="string")return aHt(e,t);if(ArrayBuffer.isView(e))return oHt(e);if(e==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(N1(e,ArrayBuffer)||e&&N1(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(N1(e,SharedArrayBuffer)||e&&N1(e.buffer,SharedArrayBuffer)))return RX(e,t,r);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let i=e.valueOf&&e.valueOf();if(i!=null&&i!==e)return Ur.from(i,t,r);let n=sHt(e);if(n)return n;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return Ur.from(e[Symbol.toPrimitive]("string"),t,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}Ur.from=function(e,t,r){return A8e(e,t,r)};Object.setPrototypeOf(Ur.prototype,Uint8Array.prototype);Object.setPrototypeOf(Ur,Uint8Array);function M8e(e){if(typeof e!="number")throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function nHt(e,t,r){return M8e(e),e<=0?hm(e):t!==void 0?typeof r=="string"?hm(e).fill(t,r):hm(e).fill(t):hm(e)}Ur.alloc=function(e,t,r){return nHt(e,t,r)};function BX(e){return M8e(e),hm(e<0?0:qX(e)|0)}Ur.allocUnsafe=function(e){return BX(e)};Ur.allocUnsafeSlow=function(e){return BX(e)};function aHt(e,t){if((typeof t!="string"||t==="")&&(t="utf8"),!Ur.isEncoding(t))throw new TypeError("Unknown encoding: "+t);let r=S8e(e,t)|0,i=hm(r),n=i.write(e,t);return n!==r&&(i=i.slice(0,n)),i}function IX(e){let t=e.length<0?0:qX(e.length)|0,r=hm(t);for(let i=0;i=VP)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+VP.toString(16)+" bytes");return e|0}function lHt(e){return+e!=e&&(e=0),Ur.alloc(+e)}Ur.isBuffer=function(t){return t!=null&&t._isBuffer===!0&&t!==Ur.prototype};Ur.compare=function(t,r){if(N1(t,Uint8Array)&&(t=Ur.from(t,t.offset,t.byteLength)),N1(r,Uint8Array)&&(r=Ur.from(r,r.offset,r.byteLength)),!Ur.isBuffer(t)||!Ur.isBuffer(r))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===r)return 0;let i=t.length,n=r.length;for(let a=0,o=Math.min(i,n);an.length?(Ur.isBuffer(o)||(o=Ur.from(o)),o.copy(n,a)):Uint8Array.prototype.set.call(n,o,a);else if(Ur.isBuffer(o))o.copy(n,a);else throw new TypeError('"list" argument must be an Array of Buffers');a+=o.length}return n};function S8e(e,t){if(Ur.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||N1(e,ArrayBuffer))return e.byteLength;if(typeof e!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);let r=e.length,i=arguments.length>2&&arguments[2]===!0;if(!i&&r===0)return 0;let n=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return zX(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return R8e(e).length;default:if(n)return i?-1:zX(e).length;t=(""+t).toLowerCase(),n=!0}}Ur.byteLength=S8e;function uHt(e,t,r){let i=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((r===void 0||r>this.length)&&(r=this.length),r<=0)||(r>>>=0,t>>>=0,r<=t))return"";for(e||(e="utf8");;)switch(e){case"hex":return xHt(this,t,r);case"utf8":case"utf-8":return k8e(this,t,r);case"ascii":return mHt(this,t,r);case"latin1":case"binary":return yHt(this,t,r);case"base64":return vHt(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return bHt(this,t,r);default:if(i)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),i=!0}}Ur.prototype._isBuffer=!0;function e_(e,t,r){let i=e[t];e[t]=e[r],e[r]=i}Ur.prototype.swap16=function(){let t=this.length;if(t%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let r=0;rr&&(t+=" ... "),""};b8e&&(Ur.prototype[b8e]=Ur.prototype.inspect);Ur.prototype.compare=function(t,r,i,n,a){if(N1(t,Uint8Array)&&(t=Ur.from(t,t.offset,t.byteLength)),!Ur.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(r===void 0&&(r=0),i===void 0&&(i=t?t.length:0),n===void 0&&(n=0),a===void 0&&(a=this.length),r<0||i>t.length||n<0||a>this.length)throw new RangeError("out of range index");if(n>=a&&r>=i)return 0;if(n>=a)return-1;if(r>=i)return 1;if(r>>>=0,i>>>=0,n>>>=0,a>>>=0,this===t)return 0;let o=a-n,s=i-r,l=Math.min(o,s),u=this.slice(n,a),c=t.slice(r,i);for(let f=0;f2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,NX(r)&&(r=n?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(n)return-1;r=e.length-1}else if(r<0)if(n)r=0;else return-1;if(typeof t=="string"&&(t=Ur.from(t,i)),Ur.isBuffer(t))return t.length===0?-1:_8e(e,t,r,i,n);if(typeof t=="number")return t=t&255,typeof Uint8Array.prototype.indexOf=="function"?n?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):_8e(e,[t],r,i,n);throw new TypeError("val must be string, number or Buffer")}function _8e(e,t,r,i,n){let a=1,o=e.length,s=t.length;if(i!==void 0&&(i=String(i).toLowerCase(),i==="ucs2"||i==="ucs-2"||i==="utf16le"||i==="utf-16le")){if(e.length<2||t.length<2)return-1;a=2,o/=2,s/=2,r/=2}function l(c,f){return a===1?c[f]:c.readUInt16BE(f*a)}let u;if(n){let c=-1;for(u=r;uo&&(r=o-s),u=r;u>=0;u--){let c=!0;for(let f=0;fn&&(i=n)):i=n;let a=t.length;i>a/2&&(i=a/2);let o;for(o=0;o>>0,isFinite(i)?(i=i>>>0,n===void 0&&(n="utf8")):(n=i,i=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let a=this.length-r;if((i===void 0||i>a)&&(i=a),t.length>0&&(i<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");let o=!1;for(;;)switch(n){case"hex":return cHt(this,t,r,i);case"utf8":case"utf-8":return fHt(this,t,r,i);case"ascii":case"latin1":case"binary":return hHt(this,t,r,i);case"base64":return dHt(this,t,r,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return pHt(this,t,r,i);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}};Ur.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function vHt(e,t,r){return t===0&&r===e.length?PX.fromByteArray(e):PX.fromByteArray(e.slice(t,r))}function k8e(e,t,r){r=Math.min(e.length,r);let i=[],n=t;for(;n239?4:a>223?3:a>191?2:1;if(n+s<=r){let l,u,c,f;switch(s){case 1:a<128&&(o=a);break;case 2:l=e[n+1],(l&192)===128&&(f=(a&31)<<6|l&63,f>127&&(o=f));break;case 3:l=e[n+1],u=e[n+2],(l&192)===128&&(u&192)===128&&(f=(a&15)<<12|(l&63)<<6|u&63,f>2047&&(f<55296||f>57343)&&(o=f));break;case 4:l=e[n+1],u=e[n+2],c=e[n+3],(l&192)===128&&(u&192)===128&&(c&192)===128&&(f=(a&15)<<18|(l&63)<<12|(u&63)<<6|c&63,f>65535&&f<1114112&&(o=f))}}o===null?(o=65533,s=1):o>65535&&(o-=65536,i.push(o>>>10&1023|55296),o=56320|o&1023),i.push(o),n+=s}return gHt(i)}var w8e=4096;function gHt(e){let t=e.length;if(t<=w8e)return String.fromCharCode.apply(String,e);let r="",i=0;for(;ii)&&(r=i);let n="";for(let a=t;ai&&(t=i),r<0?(r+=i,r<0&&(r=0)):r>i&&(r=i),rr)throw new RangeError("Trying to access beyond buffer length")}Ur.prototype.readUintLE=Ur.prototype.readUIntLE=function(t,r,i){t=t>>>0,r=r>>>0,i||Fc(t,r,this.length);let n=this[t],a=1,o=0;for(;++o>>0,r=r>>>0,i||Fc(t,r,this.length);let n=this[t+--r],a=1;for(;r>0&&(a*=256);)n+=this[t+--r]*a;return n};Ur.prototype.readUint8=Ur.prototype.readUInt8=function(t,r){return t=t>>>0,r||Fc(t,1,this.length),this[t]};Ur.prototype.readUint16LE=Ur.prototype.readUInt16LE=function(t,r){return t=t>>>0,r||Fc(t,2,this.length),this[t]|this[t+1]<<8};Ur.prototype.readUint16BE=Ur.prototype.readUInt16BE=function(t,r){return t=t>>>0,r||Fc(t,2,this.length),this[t]<<8|this[t+1]};Ur.prototype.readUint32LE=Ur.prototype.readUInt32LE=function(t,r){return t=t>>>0,r||Fc(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+this[t+3]*16777216};Ur.prototype.readUint32BE=Ur.prototype.readUInt32BE=function(t,r){return t=t>>>0,r||Fc(t,4,this.length),this[t]*16777216+(this[t+1]<<16|this[t+2]<<8|this[t+3])};Ur.prototype.readBigUInt64LE=h2(function(t){t=t>>>0,Y5(t,"offset");let r=this[t],i=this[t+7];(r===void 0||i===void 0)&&xS(t,this.length-8);let n=r+this[++t]*2**8+this[++t]*2**16+this[++t]*2**24,a=this[++t]+this[++t]*2**8+this[++t]*2**16+i*2**24;return BigInt(n)+(BigInt(a)<>>0,Y5(t,"offset");let r=this[t],i=this[t+7];(r===void 0||i===void 0)&&xS(t,this.length-8);let n=r*2**24+this[++t]*2**16+this[++t]*2**8+this[++t],a=this[++t]*2**24+this[++t]*2**16+this[++t]*2**8+i;return(BigInt(n)<>>0,r=r>>>0,i||Fc(t,r,this.length);let n=this[t],a=1,o=0;for(;++o=a&&(n-=Math.pow(2,8*r)),n};Ur.prototype.readIntBE=function(t,r,i){t=t>>>0,r=r>>>0,i||Fc(t,r,this.length);let n=r,a=1,o=this[t+--n];for(;n>0&&(a*=256);)o+=this[t+--n]*a;return a*=128,o>=a&&(o-=Math.pow(2,8*r)),o};Ur.prototype.readInt8=function(t,r){return t=t>>>0,r||Fc(t,1,this.length),this[t]&128?(255-this[t]+1)*-1:this[t]};Ur.prototype.readInt16LE=function(t,r){t=t>>>0,r||Fc(t,2,this.length);let i=this[t]|this[t+1]<<8;return i&32768?i|4294901760:i};Ur.prototype.readInt16BE=function(t,r){t=t>>>0,r||Fc(t,2,this.length);let i=this[t+1]|this[t]<<8;return i&32768?i|4294901760:i};Ur.prototype.readInt32LE=function(t,r){return t=t>>>0,r||Fc(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24};Ur.prototype.readInt32BE=function(t,r){return t=t>>>0,r||Fc(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]};Ur.prototype.readBigInt64LE=h2(function(t){t=t>>>0,Y5(t,"offset");let r=this[t],i=this[t+7];(r===void 0||i===void 0)&&xS(t,this.length-8);let n=this[t+4]+this[t+5]*2**8+this[t+6]*2**16+(i<<24);return(BigInt(n)<>>0,Y5(t,"offset");let r=this[t],i=this[t+7];(r===void 0||i===void 0)&&xS(t,this.length-8);let n=(r<<24)+this[++t]*2**16+this[++t]*2**8+this[++t];return(BigInt(n)<>>0,r||Fc(t,4,this.length),W5.read(this,t,!0,23,4)};Ur.prototype.readFloatBE=function(t,r){return t=t>>>0,r||Fc(t,4,this.length),W5.read(this,t,!1,23,4)};Ur.prototype.readDoubleLE=function(t,r){return t=t>>>0,r||Fc(t,8,this.length),W5.read(this,t,!0,52,8)};Ur.prototype.readDoubleBE=function(t,r){return t=t>>>0,r||Fc(t,8,this.length),W5.read(this,t,!1,52,8)};function Zh(e,t,r,i,n,a){if(!Ur.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>n||te.length)throw new RangeError("Index out of range")}Ur.prototype.writeUintLE=Ur.prototype.writeUIntLE=function(t,r,i,n){if(t=+t,r=r>>>0,i=i>>>0,!n){let s=Math.pow(2,8*i)-1;Zh(this,t,r,i,s,0)}let a=1,o=0;for(this[r]=t&255;++o>>0,i=i>>>0,!n){let s=Math.pow(2,8*i)-1;Zh(this,t,r,i,s,0)}let a=i-1,o=1;for(this[r+a]=t&255;--a>=0&&(o*=256);)this[r+a]=t/o&255;return r+i};Ur.prototype.writeUint8=Ur.prototype.writeUInt8=function(t,r,i){return t=+t,r=r>>>0,i||Zh(this,t,r,1,255,0),this[r]=t&255,r+1};Ur.prototype.writeUint16LE=Ur.prototype.writeUInt16LE=function(t,r,i){return t=+t,r=r>>>0,i||Zh(this,t,r,2,65535,0),this[r]=t&255,this[r+1]=t>>>8,r+2};Ur.prototype.writeUint16BE=Ur.prototype.writeUInt16BE=function(t,r,i){return t=+t,r=r>>>0,i||Zh(this,t,r,2,65535,0),this[r]=t>>>8,this[r+1]=t&255,r+2};Ur.prototype.writeUint32LE=Ur.prototype.writeUInt32LE=function(t,r,i){return t=+t,r=r>>>0,i||Zh(this,t,r,4,4294967295,0),this[r+3]=t>>>24,this[r+2]=t>>>16,this[r+1]=t>>>8,this[r]=t&255,r+4};Ur.prototype.writeUint32BE=Ur.prototype.writeUInt32BE=function(t,r,i){return t=+t,r=r>>>0,i||Zh(this,t,r,4,4294967295,0),this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=t&255,r+4};function C8e(e,t,r,i,n){I8e(t,i,n,e,r,7);let a=Number(t&BigInt(4294967295));e[r++]=a,a=a>>8,e[r++]=a,a=a>>8,e[r++]=a,a=a>>8,e[r++]=a;let o=Number(t>>BigInt(32)&BigInt(4294967295));return e[r++]=o,o=o>>8,e[r++]=o,o=o>>8,e[r++]=o,o=o>>8,e[r++]=o,r}function D8e(e,t,r,i,n){I8e(t,i,n,e,r,7);let a=Number(t&BigInt(4294967295));e[r+7]=a,a=a>>8,e[r+6]=a,a=a>>8,e[r+5]=a,a=a>>8,e[r+4]=a;let o=Number(t>>BigInt(32)&BigInt(4294967295));return e[r+3]=o,o=o>>8,e[r+2]=o,o=o>>8,e[r+1]=o,o=o>>8,e[r]=o,r+8}Ur.prototype.writeBigUInt64LE=h2(function(t,r=0){return C8e(this,t,r,BigInt(0),BigInt("0xffffffffffffffff"))});Ur.prototype.writeBigUInt64BE=h2(function(t,r=0){return D8e(this,t,r,BigInt(0),BigInt("0xffffffffffffffff"))});Ur.prototype.writeIntLE=function(t,r,i,n){if(t=+t,r=r>>>0,!n){let l=Math.pow(2,8*i-1);Zh(this,t,r,i,l-1,-l)}let a=0,o=1,s=0;for(this[r]=t&255;++a>0)-s&255;return r+i};Ur.prototype.writeIntBE=function(t,r,i,n){if(t=+t,r=r>>>0,!n){let l=Math.pow(2,8*i-1);Zh(this,t,r,i,l-1,-l)}let a=i-1,o=1,s=0;for(this[r+a]=t&255;--a>=0&&(o*=256);)t<0&&s===0&&this[r+a+1]!==0&&(s=1),this[r+a]=(t/o>>0)-s&255;return r+i};Ur.prototype.writeInt8=function(t,r,i){return t=+t,r=r>>>0,i||Zh(this,t,r,1,127,-128),t<0&&(t=255+t+1),this[r]=t&255,r+1};Ur.prototype.writeInt16LE=function(t,r,i){return t=+t,r=r>>>0,i||Zh(this,t,r,2,32767,-32768),this[r]=t&255,this[r+1]=t>>>8,r+2};Ur.prototype.writeInt16BE=function(t,r,i){return t=+t,r=r>>>0,i||Zh(this,t,r,2,32767,-32768),this[r]=t>>>8,this[r+1]=t&255,r+2};Ur.prototype.writeInt32LE=function(t,r,i){return t=+t,r=r>>>0,i||Zh(this,t,r,4,2147483647,-2147483648),this[r]=t&255,this[r+1]=t>>>8,this[r+2]=t>>>16,this[r+3]=t>>>24,r+4};Ur.prototype.writeInt32BE=function(t,r,i){return t=+t,r=r>>>0,i||Zh(this,t,r,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=t&255,r+4};Ur.prototype.writeBigInt64LE=h2(function(t,r=0){return C8e(this,t,r,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});Ur.prototype.writeBigInt64BE=h2(function(t,r=0){return D8e(this,t,r,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function F8e(e,t,r,i,n,a){if(r+i>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function L8e(e,t,r,i,n){return t=+t,r=r>>>0,n||F8e(e,t,r,4,34028234663852886e22,-34028234663852886e22),W5.write(e,t,r,i,23,4),r+4}Ur.prototype.writeFloatLE=function(t,r,i){return L8e(this,t,r,!0,i)};Ur.prototype.writeFloatBE=function(t,r,i){return L8e(this,t,r,!1,i)};function P8e(e,t,r,i,n){return t=+t,r=r>>>0,n||F8e(e,t,r,8,17976931348623157e292,-17976931348623157e292),W5.write(e,t,r,i,52,8),r+8}Ur.prototype.writeDoubleLE=function(t,r,i){return P8e(this,t,r,!0,i)};Ur.prototype.writeDoubleBE=function(t,r,i){return P8e(this,t,r,!1,i)};Ur.prototype.copy=function(t,r,i,n){if(!Ur.isBuffer(t))throw new TypeError("argument should be a Buffer");if(i||(i=0),!n&&n!==0&&(n=this.length),r>=t.length&&(r=t.length),r||(r=0),n>0&&n=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-r>>0,i=i===void 0?this.length:i>>>0,t||(t=0);let a;if(typeof t=="number")for(a=r;a2**32?n=T8e(String(r)):typeof r=="bigint"&&(n=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(n=T8e(n)),n+="n"),i+=` It must be ${t}. Received ${n}`,i},RangeError);function T8e(e){let t="",r=e.length,i=e[0]==="-"?1:0;for(;r>=i+4;r-=3)t=`_${e.slice(r-3,r)}${t}`;return`${e.slice(0,r)}${t}`}function _Ht(e,t,r){Y5(t,"offset"),(e[t]===void 0||e[t+r]===void 0)&&xS(t,e.length-(r+1))}function I8e(e,t,r,i,n,a){if(e>r||e3?t===0||t===BigInt(0)?s=`>= 0${o} and < 2${o} ** ${(a+1)*8}${o}`:s=`>= -(2${o} ** ${(a+1)*8-1}${o}) and < 2 ** ${(a+1)*8-1}${o}`:s=`>= ${t}${o} and <= ${r}${o}`,new $5.ERR_OUT_OF_RANGE("value",s,e)}_Ht(i,n,a)}function Y5(e,t){if(typeof e!="number")throw new $5.ERR_INVALID_ARG_TYPE(t,"number",e)}function xS(e,t,r){throw Math.floor(e)!==e?(Y5(e,r),new $5.ERR_OUT_OF_RANGE(r||"offset","an integer",e)):t<0?new $5.ERR_BUFFER_OUT_OF_BOUNDS:new $5.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${t}`,e)}var wHt=/[^+/0-9A-Za-z-_]/g;function THt(e){if(e=e.split("=")[0],e=e.trim().replace(wHt,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function zX(e,t){t=t||1/0;let r,i=e.length,n=null,a=[];for(let o=0;o55295&&r<57344){if(!n){if(r>56319){(t-=3)>-1&&a.push(239,191,189);continue}else if(o+1===i){(t-=3)>-1&&a.push(239,191,189);continue}n=r;continue}if(r<56320){(t-=3)>-1&&a.push(239,191,189),n=r;continue}r=(n-55296<<10|r-56320)+65536}else n&&(t-=3)>-1&&a.push(239,191,189);if(n=null,r<128){if((t-=1)<0)break;a.push(r)}else if(r<2048){if((t-=2)<0)break;a.push(r>>6|192,r&63|128)}else if(r<65536){if((t-=3)<0)break;a.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((t-=4)<0)break;a.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return a}function AHt(e){let t=[];for(let r=0;r>8,n=r%256,a.push(n),a.push(i);return a}function R8e(e){return PX.toByteArray(THt(e))}function GP(e,t,r,i){let n;for(n=0;n=t.length||n>=e.length);++n)t[n+r]=e[n];return n}function N1(e,t){return e instanceof t||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===t.name}function NX(e){return e!==e}var SHt=(function(){let e="0123456789abcdef",t=new Array(256);for(let r=0;r<16;++r){let i=r*16;for(let n=0;n<16;++n)t[i+n]=e[r]+e[n]}return t})();function h2(e){return typeof BigInt=="undefined"?EHt:e}function EHt(){throw new Error("BigInt not supported")}});var HP=W((jjr,z8e)=>{"use strict";z8e.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},r=Symbol("test"),i=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(i)!=="[object Symbol]")return!1;var n=42;t[r]=n;for(var a 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 s=Object.getOwnPropertyDescriptor(t,r);if(s.value!==n||s.enumerable!==!0)return!1}return!0}});var bS=W(($jr,B8e)=>{"use strict";var kHt=HP();B8e.exports=function(){return kHt()&&!!Symbol.toStringTag}});var jP=W((Wjr,q8e)=>{"use strict";q8e.exports=Object});var N8e=W((Yjr,O8e)=>{"use strict";O8e.exports=Error});var V8e=W((Xjr,U8e)=>{"use strict";U8e.exports=EvalError});var H8e=W((Zjr,G8e)=>{"use strict";G8e.exports=RangeError});var $8e=W((Kjr,j8e)=>{"use strict";j8e.exports=ReferenceError});var UX=W((Jjr,W8e)=>{"use strict";W8e.exports=SyntaxError});var Z5=W((Qjr,Y8e)=>{"use strict";Y8e.exports=TypeError});var Z8e=W((e$r,X8e)=>{"use strict";X8e.exports=URIError});var J8e=W((t$r,K8e)=>{"use strict";K8e.exports=Math.abs});var eDe=W((r$r,Q8e)=>{"use strict";Q8e.exports=Math.floor});var rDe=W((i$r,tDe)=>{"use strict";tDe.exports=Math.max});var nDe=W((n$r,iDe)=>{"use strict";iDe.exports=Math.min});var oDe=W((a$r,aDe)=>{"use strict";aDe.exports=Math.pow});var lDe=W((o$r,sDe)=>{"use strict";sDe.exports=Math.round});var cDe=W((s$r,uDe)=>{"use strict";uDe.exports=Number.isNaN||function(t){return t!==t}});var hDe=W((l$r,fDe)=>{"use strict";var CHt=cDe();fDe.exports=function(t){return CHt(t)||t===0?t:t<0?-1:1}});var pDe=W((u$r,dDe)=>{"use strict";dDe.exports=Object.getOwnPropertyDescriptor});var r_=W((c$r,vDe)=>{"use strict";var $P=pDe();if($P)try{$P([],"length")}catch(e){$P=null}vDe.exports=$P});var _S=W((f$r,gDe)=>{"use strict";var WP=Object.defineProperty||!1;if(WP)try{WP({},"a",{value:1})}catch(e){WP=!1}gDe.exports=WP});var xDe=W((h$r,yDe)=>{"use strict";var mDe=typeof Symbol!="undefined"&&Symbol,DHt=HP();yDe.exports=function(){return typeof mDe!="function"||typeof Symbol!="function"||typeof mDe("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:DHt()}});var VX=W((d$r,bDe)=>{"use strict";bDe.exports=typeof Reflect!="undefined"&&Reflect.getPrototypeOf||null});var GX=W((p$r,_De)=>{"use strict";var FHt=jP();_De.exports=FHt.getPrototypeOf||null});var ADe=W((v$r,TDe)=>{"use strict";var LHt="Function.prototype.bind called on incompatible ",PHt=Object.prototype.toString,IHt=Math.max,RHt="[object Function]",wDe=function(t,r){for(var i=[],n=0;n{"use strict";var qHt=ADe();MDe.exports=Function.prototype.bind||qHt});var YP=W((m$r,SDe)=>{"use strict";SDe.exports=Function.prototype.call});var XP=W((y$r,EDe)=>{"use strict";EDe.exports=Function.prototype.apply});var CDe=W((x$r,kDe)=>{"use strict";kDe.exports=typeof Reflect!="undefined"&&Reflect&&Reflect.apply});var HX=W((b$r,DDe)=>{"use strict";var OHt=K5(),NHt=XP(),UHt=YP(),VHt=CDe();DDe.exports=VHt||OHt.call(UHt,NHt)});var ZP=W((_$r,FDe)=>{"use strict";var GHt=K5(),HHt=Z5(),jHt=YP(),$Ht=HX();FDe.exports=function(t){if(t.length<1||typeof t[0]!="function")throw new HHt("a function is required");return $Ht(GHt,jHt,t)}});var BDe=W((w$r,zDe)=>{"use strict";var WHt=ZP(),LDe=r_(),IDe;try{IDe=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!="object"||!("code"in e)||e.code!=="ERR_PROTO_ACCESS")throw e}var jX=!!IDe&&LDe&&LDe(Object.prototype,"__proto__"),RDe=Object,PDe=RDe.getPrototypeOf;zDe.exports=jX&&typeof jX.get=="function"?WHt([jX.get]):typeof PDe=="function"?function(t){return PDe(t==null?t:RDe(t))}:!1});var KP=W((T$r,UDe)=>{"use strict";var qDe=VX(),ODe=GX(),NDe=BDe();UDe.exports=qDe?function(t){return qDe(t)}:ODe?function(t){if(!t||typeof t!="object"&&typeof t!="function")throw new TypeError("getProto: not an object");return ODe(t)}:NDe?function(t){return NDe(t)}:null});var $X=W((A$r,VDe)=>{"use strict";var YHt=Function.prototype.call,XHt=Object.prototype.hasOwnProperty,ZHt=K5();VDe.exports=ZHt.call(YHt,XHt)});var e9=W((M$r,YDe)=>{"use strict";var oo,KHt=jP(),JHt=N8e(),QHt=V8e(),ejt=H8e(),tjt=$8e(),t4=UX(),e4=Z5(),rjt=Z8e(),ijt=J8e(),njt=eDe(),ajt=rDe(),ojt=nDe(),sjt=oDe(),ljt=lDe(),ujt=hDe(),$De=Function,WX=function(e){try{return $De('"use strict"; return ('+e+").constructor;")()}catch(t){}},wS=r_(),cjt=_S(),YX=function(){throw new e4},fjt=wS?(function(){try{return arguments.callee,YX}catch(e){try{return wS(arguments,"callee").get}catch(t){return YX}}})():YX,J5=xDe()(),Lc=KP(),hjt=GX(),djt=VX(),WDe=XP(),TS=YP(),Q5={},pjt=typeof Uint8Array=="undefined"||!Lc?oo:Lc(Uint8Array),i_={__proto__:null,"%AggregateError%":typeof AggregateError=="undefined"?oo:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?oo:ArrayBuffer,"%ArrayIteratorPrototype%":J5&&Lc?Lc([][Symbol.iterator]()):oo,"%AsyncFromSyncIteratorPrototype%":oo,"%AsyncFunction%":Q5,"%AsyncGenerator%":Q5,"%AsyncGeneratorFunction%":Q5,"%AsyncIteratorPrototype%":Q5,"%Atomics%":typeof Atomics=="undefined"?oo:Atomics,"%BigInt%":typeof BigInt=="undefined"?oo:BigInt,"%BigInt64Array%":typeof BigInt64Array=="undefined"?oo:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array=="undefined"?oo:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView=="undefined"?oo:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":JHt,"%eval%":eval,"%EvalError%":QHt,"%Float16Array%":typeof Float16Array=="undefined"?oo:Float16Array,"%Float32Array%":typeof Float32Array=="undefined"?oo:Float32Array,"%Float64Array%":typeof Float64Array=="undefined"?oo:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry=="undefined"?oo:FinalizationRegistry,"%Function%":$De,"%GeneratorFunction%":Q5,"%Int8Array%":typeof Int8Array=="undefined"?oo:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?oo:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?oo:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":J5&&Lc?Lc(Lc([][Symbol.iterator]())):oo,"%JSON%":typeof JSON=="object"?JSON:oo,"%Map%":typeof Map=="undefined"?oo:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!J5||!Lc?oo:Lc(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":KHt,"%Object.getOwnPropertyDescriptor%":wS,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?oo:Promise,"%Proxy%":typeof Proxy=="undefined"?oo:Proxy,"%RangeError%":ejt,"%ReferenceError%":tjt,"%Reflect%":typeof Reflect=="undefined"?oo:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set=="undefined"?oo:Set,"%SetIteratorPrototype%":typeof Set=="undefined"||!J5||!Lc?oo:Lc(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?oo:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":J5&&Lc?Lc(""[Symbol.iterator]()):oo,"%Symbol%":J5?Symbol:oo,"%SyntaxError%":t4,"%ThrowTypeError%":fjt,"%TypedArray%":pjt,"%TypeError%":e4,"%Uint8Array%":typeof Uint8Array=="undefined"?oo:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray=="undefined"?oo:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array=="undefined"?oo:Uint16Array,"%Uint32Array%":typeof Uint32Array=="undefined"?oo:Uint32Array,"%URIError%":rjt,"%WeakMap%":typeof WeakMap=="undefined"?oo:WeakMap,"%WeakRef%":typeof WeakRef=="undefined"?oo:WeakRef,"%WeakSet%":typeof WeakSet=="undefined"?oo:WeakSet,"%Function.prototype.call%":TS,"%Function.prototype.apply%":WDe,"%Object.defineProperty%":cjt,"%Object.getPrototypeOf%":hjt,"%Math.abs%":ijt,"%Math.floor%":njt,"%Math.max%":ajt,"%Math.min%":ojt,"%Math.pow%":sjt,"%Math.round%":ljt,"%Math.sign%":ujt,"%Reflect.getPrototypeOf%":djt};if(Lc)try{null.error}catch(e){GDe=Lc(Lc(e)),i_["%Error.prototype%"]=GDe}var GDe,vjt=function e(t){var r;if(t==="%AsyncFunction%")r=WX("async function () {}");else if(t==="%GeneratorFunction%")r=WX("function* () {}");else if(t==="%AsyncGeneratorFunction%")r=WX("async function* () {}");else if(t==="%AsyncGenerator%"){var i=e("%AsyncGeneratorFunction%");i&&(r=i.prototype)}else if(t==="%AsyncIteratorPrototype%"){var n=e("%AsyncGenerator%");n&&Lc&&(r=Lc(n.prototype))}return i_[t]=r,r},HDe={__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"]},AS=K5(),JP=$X(),gjt=AS.call(TS,Array.prototype.concat),mjt=AS.call(WDe,Array.prototype.splice),jDe=AS.call(TS,String.prototype.replace),QP=AS.call(TS,String.prototype.slice),yjt=AS.call(TS,RegExp.prototype.exec),xjt=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,bjt=/\\(\\)?/g,_jt=function(t){var r=QP(t,0,1),i=QP(t,-1);if(r==="%"&&i!=="%")throw new t4("invalid intrinsic syntax, expected closing `%`");if(i==="%"&&r!=="%")throw new t4("invalid intrinsic syntax, expected opening `%`");var n=[];return jDe(t,xjt,function(a,o,s,l){n[n.length]=s?jDe(l,bjt,"$1"):o||a}),n},wjt=function(t,r){var i=t,n;if(JP(HDe,i)&&(n=HDe[i],i="%"+n[0]+"%"),JP(i_,i)){var a=i_[i];if(a===Q5&&(a=vjt(i)),typeof a=="undefined"&&!r)throw new e4("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:n,name:i,value:a}}throw new t4("intrinsic "+t+" does not exist!")};YDe.exports=function(t,r){if(typeof t!="string"||t.length===0)throw new e4("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new e4('"allowMissing" argument must be a boolean');if(yjt(/^%?[^%]*%?$/,t)===null)throw new t4("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var i=_jt(t),n=i.length>0?i[0]:"",a=wjt("%"+n+"%",r),o=a.name,s=a.value,l=!1,u=a.alias;u&&(n=u[0],mjt(i,gjt([0,1],u)));for(var c=1,f=!0;c=i.length){var v=wS(s,h);f=!!v,f&&"get"in v&&!("originalValue"in v.get)?s=v.get:s=s[h]}else f=JP(s,h),s=s[h];f&&!l&&(i_[o]=s)}}return s}});var n_=W((S$r,KDe)=>{"use strict";var XDe=e9(),ZDe=ZP(),Tjt=ZDe([XDe("%String.prototype.indexOf%")]);KDe.exports=function(t,r){var i=XDe(t,!!r);return typeof i=="function"&&Tjt(t,".prototype.")>-1?ZDe([i]):i}});var e7e=W((E$r,QDe)=>{"use strict";var Ajt=bS()(),Mjt=n_(),XX=Mjt("Object.prototype.toString"),t9=function(t){return Ajt&&t&&typeof t=="object"&&Symbol.toStringTag in t?!1:XX(t)==="[object Arguments]"},JDe=function(t){return t9(t)?!0:t!==null&&typeof t=="object"&&"length"in t&&typeof t.length=="number"&&t.length>=0&&XX(t)!=="[object Array]"&&"callee"in t&&XX(t.callee)==="[object Function]"},Sjt=(function(){return t9(arguments)})();t9.isLegacyArguments=JDe;QDe.exports=Sjt?t9:JDe});var o7e=W((k$r,a7e)=>{"use strict";var t7e=n_(),Ejt=bS()(),kjt=$X(),Cjt=r_(),JX;Ejt?(r7e=t7e("RegExp.prototype.exec"),ZX={},r9=function(){throw ZX},KX={toString:r9,valueOf:r9},typeof Symbol.toPrimitive=="symbol"&&(KX[Symbol.toPrimitive]=r9),JX=function(t){if(!t||typeof t!="object")return!1;var r=Cjt(t,"lastIndex"),i=r&&kjt(r,"value");if(!i)return!1;try{r7e(t,KX)}catch(n){return n===ZX}}):(i7e=t7e("Object.prototype.toString"),n7e="[object RegExp]",JX=function(t){return!t||typeof t!="object"&&typeof t!="function"?!1:i7e(t)===n7e});var r7e,ZX,r9,KX,i7e,n7e;a7e.exports=JX});var l7e=W((C$r,s7e)=>{"use strict";var Djt=n_(),Fjt=o7e(),Ljt=Djt("RegExp.prototype.exec"),Pjt=Z5();s7e.exports=function(t){if(!Fjt(t))throw new Pjt("`regex` must be a RegExp");return function(i){return Ljt(t,i)!==null}}});var c7e=W((D$r,u7e)=>{"use strict";var Ijt=function*(){}.constructor;u7e.exports=()=>Ijt});var p7e=W((F$r,d7e)=>{"use strict";var h7e=n_(),Rjt=l7e(),zjt=Rjt(/^\s*(?:function)?\*/),Bjt=bS()(),f7e=KP(),qjt=h7e("Object.prototype.toString"),Ojt=h7e("Function.prototype.toString"),Njt=c7e();d7e.exports=function(t){if(typeof t!="function")return!1;if(zjt(Ojt(t)))return!0;if(!Bjt){var r=qjt(t);return r==="[object GeneratorFunction]"}if(!f7e)return!1;var i=Njt();return i&&f7e(t)===i.prototype}});var y7e=W((L$r,m7e)=>{"use strict";var g7e=Function.prototype.toString,r4=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,eZ,i9;if(typeof r4=="function"&&typeof Object.defineProperty=="function")try{eZ=Object.defineProperty({},"length",{get:function(){throw i9}}),i9={},r4(function(){throw 42},null,eZ)}catch(e){e!==i9&&(r4=null)}else r4=null;var Ujt=/^\s*class\b/,tZ=function(t){try{var r=g7e.call(t);return Ujt.test(r)}catch(i){return!1}},QX=function(t){try{return tZ(t)?!1:(g7e.call(t),!0)}catch(r){return!1}},n9=Object.prototype.toString,Vjt="[object Object]",Gjt="[object Function]",Hjt="[object GeneratorFunction]",jjt="[object HTMLAllCollection]",$jt="[object HTML document.all class]",Wjt="[object HTMLCollection]",Yjt=typeof Symbol=="function"&&!!Symbol.toStringTag,Xjt=!(0 in[,]),rZ=function(){return!1};typeof document=="object"&&(v7e=document.all,n9.call(v7e)===n9.call(document.all)&&(rZ=function(t){if((Xjt||!t)&&(typeof t=="undefined"||typeof t=="object"))try{var r=n9.call(t);return(r===jjt||r===$jt||r===Wjt||r===Vjt)&&t("")==null}catch(i){}return!1}));var v7e;m7e.exports=r4?function(t){if(rZ(t))return!0;if(!t||typeof t!="function"&&typeof t!="object")return!1;try{r4(t,null,eZ)}catch(r){if(r!==i9)return!1}return!tZ(t)&&QX(t)}:function(t){if(rZ(t))return!0;if(!t||typeof t!="function"&&typeof t!="object")return!1;if(Yjt)return QX(t);if(tZ(t))return!1;var r=n9.call(t);return r!==Gjt&&r!==Hjt&&!/^\[object HTML/.test(r)?!1:QX(t)}});var _7e=W((P$r,b7e)=>{"use strict";var Zjt=y7e(),Kjt=Object.prototype.toString,x7e=Object.prototype.hasOwnProperty,Jjt=function(t,r,i){for(var n=0,a=t.length;n=3&&(n=i),t$t(t)?Jjt(t,r,n):typeof t=="string"?Qjt(t,r,n):e$t(t,r,n)}});var T7e=W((I$r,w7e)=>{"use strict";w7e.exports=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]});var M7e=W((R$r,A7e)=>{"use strict";var iZ=T7e(),r$t=typeof globalThis=="undefined"?window:globalThis;A7e.exports=function(){for(var t=[],r=0;r{"use strict";var S7e=_S(),i$t=UX(),i4=Z5(),E7e=r_();k7e.exports=function(t,r,i){if(!t||typeof t!="object"&&typeof t!="function")throw new i4("`obj` must be an object or a function`");if(typeof r!="string"&&typeof r!="symbol")throw new i4("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new i4("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new i4("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new i4("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new i4("`loose`, if provided, must be a boolean");var n=arguments.length>3?arguments[3]:null,a=arguments.length>4?arguments[4]:null,o=arguments.length>5?arguments[5]:null,s=arguments.length>6?arguments[6]:!1,l=!!E7e&&E7e(t,r);if(S7e)S7e(t,r,{configurable:o===null&&l?l.configurable:!o,enumerable:n===null&&l?l.enumerable:!n,value:i,writable:a===null&&l?l.writable:!a});else if(s||!n&&!a&&!o)t[r]=i;else throw new i$t("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}});var oZ=W((B$r,D7e)=>{"use strict";var aZ=_S(),C7e=function(){return!!aZ};C7e.hasArrayLengthDefineBug=function(){if(!aZ)return null;try{return aZ([],"length",{value:1}).length!==1}catch(t){return!0}};D7e.exports=C7e});var R7e=W((q$r,I7e)=>{"use strict";var n$t=e9(),F7e=nZ(),a$t=oZ()(),L7e=r_(),P7e=Z5(),o$t=n$t("%Math.floor%");I7e.exports=function(t,r){if(typeof t!="function")throw new P7e("`fn` is not a function");if(typeof r!="number"||r<0||r>4294967295||o$t(r)!==r)throw new P7e("`length` must be a positive 32-bit integer");var i=arguments.length>2&&!!arguments[2],n=!0,a=!0;if("length"in t&&L7e){var o=L7e(t,"length");o&&!o.configurable&&(n=!1),o&&!o.writable&&(a=!1)}return(n||a||!i)&&(a$t?F7e(t,"length",r,!0,!0):F7e(t,"length",r)),t}});var B7e=W((O$r,z7e)=>{"use strict";var s$t=K5(),l$t=XP(),u$t=HX();z7e.exports=function(){return u$t(s$t,l$t,arguments)}});var MS=W((N$r,a9)=>{"use strict";var c$t=R7e(),q7e=_S(),f$t=ZP(),O7e=B7e();a9.exports=function(t){var r=f$t(arguments),i=1+t.length-(arguments.length-1);return c$t(r,i>0?i:0,!0)};q7e?q7e(a9.exports,"apply",{value:O7e}):a9.exports.apply=O7e});var cZ=W((U$r,G7e)=>{"use strict";var l9=_7e(),h$t=M7e(),N7e=MS(),lZ=n_(),s9=r_(),o9=KP(),d$t=lZ("Object.prototype.toString"),V7e=bS()(),U7e=typeof globalThis=="undefined"?window:globalThis,sZ=h$t(),uZ=lZ("String.prototype.slice"),p$t=lZ("Array.prototype.indexOf",!0)||function(t,r){for(var i=0;i-1}function y$t(e){if(!e||typeof e!="object")return!1;if(!V7e){var t=uZ(d$t(e),8,-1);return m$t(t)?t:t!=="Object"?!1:g$t(e)}return s9?v$t(e):null}G7e.exports=y$t});var j7e=W((V$r,H7e)=>{"use strict";var x$t=cZ();H7e.exports=function(t){return!!x$t(t)}});var dZ=W(so=>{"use strict";var b$t=e7e(),_$t=p7e(),pv=cZ(),$7e=j7e();function n4(e){return e.call.bind(e)}var W7e=typeof BigInt!="undefined",Y7e=typeof Symbol!="undefined",$d=n4(Object.prototype.toString),w$t=n4(Number.prototype.valueOf),T$t=n4(String.prototype.valueOf),A$t=n4(Boolean.prototype.valueOf);W7e&&(X7e=n4(BigInt.prototype.valueOf));var X7e;Y7e&&(Z7e=n4(Symbol.prototype.valueOf));var Z7e;function ES(e,t){if(typeof e!="object")return!1;try{return t(e),!0}catch(r){return!1}}so.isArgumentsObject=b$t;so.isGeneratorFunction=_$t;so.isTypedArray=$7e;function M$t(e){return typeof Promise!="undefined"&&e instanceof Promise||e!==null&&typeof e=="object"&&typeof e.then=="function"&&typeof e.catch=="function"}so.isPromise=M$t;function S$t(e){return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?ArrayBuffer.isView(e):$7e(e)||J7e(e)}so.isArrayBufferView=S$t;function E$t(e){return pv(e)==="Uint8Array"}so.isUint8Array=E$t;function k$t(e){return pv(e)==="Uint8ClampedArray"}so.isUint8ClampedArray=k$t;function C$t(e){return pv(e)==="Uint16Array"}so.isUint16Array=C$t;function D$t(e){return pv(e)==="Uint32Array"}so.isUint32Array=D$t;function F$t(e){return pv(e)==="Int8Array"}so.isInt8Array=F$t;function L$t(e){return pv(e)==="Int16Array"}so.isInt16Array=L$t;function P$t(e){return pv(e)==="Int32Array"}so.isInt32Array=P$t;function I$t(e){return pv(e)==="Float32Array"}so.isFloat32Array=I$t;function R$t(e){return pv(e)==="Float64Array"}so.isFloat64Array=R$t;function z$t(e){return pv(e)==="BigInt64Array"}so.isBigInt64Array=z$t;function B$t(e){return pv(e)==="BigUint64Array"}so.isBigUint64Array=B$t;function c9(e){return $d(e)==="[object Map]"}c9.working=typeof Map!="undefined"&&c9(new Map);function q$t(e){return typeof Map=="undefined"?!1:c9.working?c9(e):e instanceof Map}so.isMap=q$t;function f9(e){return $d(e)==="[object Set]"}f9.working=typeof Set!="undefined"&&f9(new Set);function O$t(e){return typeof Set=="undefined"?!1:f9.working?f9(e):e instanceof Set}so.isSet=O$t;function h9(e){return $d(e)==="[object WeakMap]"}h9.working=typeof WeakMap!="undefined"&&h9(new WeakMap);function N$t(e){return typeof WeakMap=="undefined"?!1:h9.working?h9(e):e instanceof WeakMap}so.isWeakMap=N$t;function hZ(e){return $d(e)==="[object WeakSet]"}hZ.working=typeof WeakSet!="undefined"&&hZ(new WeakSet);function U$t(e){return hZ(e)}so.isWeakSet=U$t;function d9(e){return $d(e)==="[object ArrayBuffer]"}d9.working=typeof ArrayBuffer!="undefined"&&d9(new ArrayBuffer);function K7e(e){return typeof ArrayBuffer=="undefined"?!1:d9.working?d9(e):e instanceof ArrayBuffer}so.isArrayBuffer=K7e;function p9(e){return $d(e)==="[object DataView]"}p9.working=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"&&p9(new DataView(new ArrayBuffer(1),0,1));function J7e(e){return typeof DataView=="undefined"?!1:p9.working?p9(e):e instanceof DataView}so.isDataView=J7e;var fZ=typeof SharedArrayBuffer!="undefined"?SharedArrayBuffer:void 0;function SS(e){return $d(e)==="[object SharedArrayBuffer]"}function Q7e(e){return typeof fZ=="undefined"?!1:(typeof SS.working=="undefined"&&(SS.working=SS(new fZ)),SS.working?SS(e):e instanceof fZ)}so.isSharedArrayBuffer=Q7e;function V$t(e){return $d(e)==="[object AsyncFunction]"}so.isAsyncFunction=V$t;function G$t(e){return $d(e)==="[object Map Iterator]"}so.isMapIterator=G$t;function H$t(e){return $d(e)==="[object Set Iterator]"}so.isSetIterator=H$t;function j$t(e){return $d(e)==="[object Generator]"}so.isGeneratorObject=j$t;function $$t(e){return $d(e)==="[object WebAssembly.Module]"}so.isWebAssemblyCompiledModule=$$t;function eFe(e){return ES(e,w$t)}so.isNumberObject=eFe;function tFe(e){return ES(e,T$t)}so.isStringObject=tFe;function rFe(e){return ES(e,A$t)}so.isBooleanObject=rFe;function iFe(e){return W7e&&ES(e,X7e)}so.isBigIntObject=iFe;function nFe(e){return Y7e&&ES(e,Z7e)}so.isSymbolObject=nFe;function W$t(e){return eFe(e)||tFe(e)||rFe(e)||iFe(e)||nFe(e)}so.isBoxedPrimitive=W$t;function Y$t(e){return typeof Uint8Array!="undefined"&&(K7e(e)||Q7e(e))}so.isAnyArrayBuffer=Y$t;["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(e){Object.defineProperty(so,e,{enumerable:!1,value:function(){throw new Error(e+" is not supported in userland")}})})});var pZ=W((H$r,aFe)=>{aFe.exports=function(t){return t&&typeof t=="object"&&typeof t.copy=="function"&&typeof t.fill=="function"&&typeof t.readUInt8=="function"}});var bZ=W(lo=>{var oFe=Object.getOwnPropertyDescriptors||function(t){for(var r=Object.keys(t),i={},n=0;n=n)return s;switch(s){case"%s":return String(i[r++]);case"%d":return Number(i[r++]);case"%j":try{return JSON.stringify(i[r++])}catch(l){return"[Circular]"}default:return s}}),o=i[r];r=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),yZ(t)?r.showHidden=t:t&&lo._extend(r,t),o_(r.showHidden)&&(r.showHidden=!1),o_(r.depth)&&(r.depth=2),o_(r.colors)&&(r.colors=!1),o_(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=Z$t),y9(r,e,r.depth)}lo.inspect=d2;d2.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]};d2.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function Z$t(e,t){var r=d2.styles[t];return r?"\x1B["+d2.colors[r][0]+"m"+e+"\x1B["+d2.colors[r][1]+"m":e}function K$t(e,t){return e}function J$t(e){var t={};return e.forEach(function(r,i){t[r]=!0}),t}function y9(e,t,r){if(e.customInspect&&t&&m9(t.inspect)&&t.inspect!==lo.inspect&&!(t.constructor&&t.constructor.prototype===t)){var i=t.inspect(r,e);return _9(i)||(i=y9(e,i,r)),i}var n=Q$t(e,t);if(n)return n;var a=Object.keys(t),o=J$t(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(t)),CS(t)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return vZ(t);if(a.length===0){if(m9(t)){var s=t.name?": "+t.name:"";return e.stylize("[Function"+s+"]","special")}if(kS(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(x9(t))return e.stylize(Date.prototype.toString.call(t),"date");if(CS(t))return vZ(t)}var l="",u=!1,c=["{","}"];if(lFe(t)&&(u=!0,c=["[","]"]),m9(t)){var f=t.name?": "+t.name:"";l=" [Function"+f+"]"}if(kS(t)&&(l=" "+RegExp.prototype.toString.call(t)),x9(t)&&(l=" "+Date.prototype.toUTCString.call(t)),CS(t)&&(l=" "+vZ(t)),a.length===0&&(!u||t.length==0))return c[0]+l+c[1];if(r<0)return kS(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special");e.seen.push(t);var h;return u?h=eWt(e,t,r,o,a):h=a.map(function(p){return mZ(e,t,r,o,p,u)}),e.seen.pop(),tWt(h,l,c)}function Q$t(e,t){if(o_(t))return e.stylize("undefined","undefined");if(_9(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}if(uFe(t))return e.stylize(""+t,"number");if(yZ(t))return e.stylize(""+t,"boolean");if(b9(t))return e.stylize("null","null")}function vZ(e){return"["+Error.prototype.toString.call(e)+"]"}function eWt(e,t,r,i,n){for(var a=[],o=0,s=t.length;o-1&&(a?s=s.split(` `).map(function(u){return" "+u}).join(` `).slice(2):s=` `+s.split(` `).map(function(u){return" "+u}).join(` -`))):s=e.stylize("[Circular]","special")),o_(o)){if(a&&n.match(/^\d+$/))return s;o=JSON.stringify(""+n),o.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.slice(1,-1),o=e.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=e.stylize(o,"string"))}return o+": "+s}function G$t(e,t,r){var i=0,n=e.reduce(function(a,o){return i++,o.indexOf(` +`))):s=e.stylize("[Circular]","special")),o_(o)){if(a&&n.match(/^\d+$/))return s;o=JSON.stringify(""+n),o.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.slice(1,-1),o=e.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=e.stylize(o,"string"))}return o+": "+s}function tWt(e,t,r){var i=0,n=e.reduce(function(a,o){return i++,o.indexOf(` `)>=0&&i++,a+o.replace(/\u001b\[\d\d?m/g,"").length+1},0);return n>60?r[0]+(t===""?"":t+` `)+" "+e.join(`, - `)+" "+r[1]:r[0]+t+" "+e.join(", ")+" "+r[1]}oo.types=aZ();function eFe(e){return Array.isArray(e)}oo.isArray=eFe;function cZ(e){return typeof e=="boolean"}oo.isBoolean=cZ;function p9(e){return e===null}oo.isNull=p9;function H$t(e){return e==null}oo.isNullOrUndefined=H$t;function tFe(e){return typeof e=="number"}oo.isNumber=tFe;function v9(e){return typeof e=="string"}oo.isString=v9;function j$t(e){return typeof e=="symbol"}oo.isSymbol=j$t;function o_(e){return e===void 0}oo.isUndefined=o_;function SS(e){return n4(e)&&fZ(e)==="[object RegExp]"}oo.isRegExp=SS;oo.types.isRegExp=SS;function n4(e){return typeof e=="object"&&e!==null}oo.isObject=n4;function d9(e){return n4(e)&&fZ(e)==="[object Date]"}oo.isDate=d9;oo.types.isDate=d9;function ES(e){return n4(e)&&(fZ(e)==="[object Error]"||e instanceof Error)}oo.isError=ES;oo.types.isNativeError=ES;function f9(e){return typeof e=="function"}oo.isFunction=f9;function $$t(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||typeof e=="undefined"}oo.isPrimitive=$$t;oo.isBuffer=oZ();function fZ(e){return Object.prototype.toString.call(e)}function lZ(e){return e<10?"0"+e.toString(10):e.toString(10)}var W$t=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function Y$t(){var e=new Date,t=[lZ(e.getHours()),lZ(e.getMinutes()),lZ(e.getSeconds())].join(":");return[e.getDate(),W$t[e.getMonth()],t].join(" ")}oo.log=function(){console.log("%s - %s",Y$t(),oo.format.apply(oo,arguments))};oo.inherits=sm();oo._extend=function(e,t){if(!t||!n4(t))return e;for(var r=Object.keys(t),i=r.length;i--;)e[r[i]]=t[r[i]];return e};function rFe(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var a_=typeof Symbol!="undefined"?Symbol("util.promisify.custom"):void 0;oo.promisify=function(t){if(typeof t!="function")throw new TypeError('The "original" argument must be of type Function');if(a_&&t[a_]){var r=t[a_];if(typeof r!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(r,a_,{value:r,enumerable:!1,writable:!1,configurable:!0}),r}function r(){for(var i,n,a=new Promise(function(l,u){i=l,n=u}),o=[],s=0;s{"use strict";function iFe(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,i)}return r}function nFe(e){for(var t=1;t0?this.tail.next=i:this.head=i,this.tail=i,++this.length}},{key:"unshift",value:function(r){var i={data:r,next:this.head};this.length===0&&(this.tail=i),this.head=i,++this.length}},{key:"shift",value:function(){if(this.length!==0){var r=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,r}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(r){if(this.length===0)return"";for(var i=this.head,n=""+i.data;i=i.next;)n+=r+i.data;return n}},{key:"concat",value:function(r){if(this.length===0)return g9.alloc(0);for(var i=g9.allocUnsafe(r>>>0),n=this.head,a=0;n;)nWt(n.data,i,a),a+=n.data.length,n=n.next;return i}},{key:"consume",value:function(r,i){var n;return ro.length?o.length:r;if(s===o.length?a+=o:a+=o.slice(0,r),r-=s,r===0){s===o.length?(++n,i.next?this.head=i.next:this.head=this.tail=null):(this.head=i,i.data=o.slice(s));break}++n}return this.length-=n,a}},{key:"_getBuffer",value:function(r){var i=g9.allocUnsafe(r),n=this.head,a=1;for(n.data.copy(i),r-=n.data.length;n=n.next;){var o=n.data,s=r>o.length?o.length:r;if(o.copy(i,i.length-r,0,s),r-=s,r===0){s===o.length?(++a,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=o.slice(s));break}++a}return this.length-=a,i}},{key:iWt,value:function(r,i){return dZ(this,nFe(nFe({},i),{},{depth:0,customInspect:!1}))}}]),e})()});var vZ=W((I$r,cFe)=>{"use strict";function aWt(e,t){var r=this,i=this._readableState&&this._readableState.destroyed,n=this._writableState&&this._writableState.destroyed;return i||n?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(pZ,this,e)):process.nextTick(pZ,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(a){!t&&a?r._writableState?r._writableState.errorEmitted?process.nextTick(m9,r):(r._writableState.errorEmitted=!0,process.nextTick(uFe,r,a)):process.nextTick(uFe,r,a):t?(process.nextTick(m9,r),t(a)):process.nextTick(m9,r)}),this)}function uFe(e,t){pZ(e,t),m9(e)}function m9(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function oWt(){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 pZ(e,t){e.emit("error",t)}function sWt(e,t){var r=e._readableState,i=e._writableState;r&&r.autoDestroy||i&&i.autoDestroy?e.destroy(t):e.emit("error",t)}cFe.exports={destroy:aWt,undestroy:oWt,errorOrDestroy:sWt}});var s_=W((R$r,dFe)=>{"use strict";function lWt(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var hFe={};function Hd(e,t,r){r||(r=Error);function i(a,o,s){return typeof t=="string"?t:t(a,o,s)}var n=(function(a){lWt(o,a);function o(s,l,u){return a.call(this,i(s,l,u))||this}return o})(r);n.prototype.name=r.name,n.prototype.code=e,hFe[e]=n}function fFe(e,t){if(Array.isArray(e)){var r=e.length;return e=e.map(function(i){return String(i)}),r>2?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:r===2?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}else return"of ".concat(t," ").concat(String(e))}function uWt(e,t,r){return e.substr(!r||r<0?0:+r,t.length)===t}function cWt(e,t,r){return(r===void 0||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function fWt(e,t,r){return typeof r!="number"&&(r=0),r+t.length>e.length?!1:e.indexOf(t,r)!==-1}Hd("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError);Hd("ERR_INVALID_ARG_TYPE",function(e,t,r){var i;typeof t=="string"&&uWt(t,"not ")?(i="must not be",t=t.replace(/^not /,"")):i="must be";var n;if(cWt(e," argument"))n="The ".concat(e," ").concat(i," ").concat(fFe(t,"type"));else{var a=fWt(e,".")?"property":"argument";n='The "'.concat(e,'" ').concat(a," ").concat(i," ").concat(fFe(t,"type"))}return n+=". Received type ".concat(typeof r),n},TypeError);Hd("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");Hd("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"});Hd("ERR_STREAM_PREMATURE_CLOSE","Premature close");Hd("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"});Hd("ERR_MULTIPLE_CALLBACK","Callback called multiple times");Hd("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");Hd("ERR_STREAM_WRITE_AFTER_END","write after end");Hd("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);Hd("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError);Hd("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");dFe.exports.codes=hFe});var gZ=W((z$r,pFe)=>{"use strict";var hWt=s_().codes.ERR_INVALID_OPT_VALUE;function dWt(e,t,r){return e.highWaterMark!=null?e.highWaterMark:t?e[r]:null}function pWt(e,t,r,i){var n=dWt(t,i,r);if(n!=null){if(!(isFinite(n)&&Math.floor(n)===n)||n<0){var a=i?r:"highWaterMark";throw new hWt(a,n)}return Math.floor(n)}return e.objectMode?16:16*1024}pFe.exports={getHighWaterMark:pWt}});var gFe=W((B$r,vFe)=>{vFe.exports=vWt;function vWt(e,t){if(mZ("noDeprecation"))return e;var r=!1;function i(){if(!r){if(mZ("throwDeprecation"))throw new Error(t);mZ("traceDeprecation")?console.trace(t):console.warn(t),r=!0}return e.apply(this,arguments)}return i}function mZ(e){try{if(!window.localStorage)return!1}catch(r){return!1}var t=window.localStorage[e];return t==null?!1:String(t).toLowerCase()==="true"}});var bZ=W((q$r,wFe)=>{"use strict";wFe.exports=Ql;function yFe(e){var t=this;this.next=null,this.entry=null,this.finish=function(){VWt(t,e)}}var a4;Ql.WritableState=CS;var gWt={deprecate:gFe()},xFe=wX(),x9=t_().Buffer,mWt=(typeof window!="undefined"||typeof window!="undefined"?window:typeof self!="undefined"?self:{}).Uint8Array||function(){};function yWt(e){return x9.from(e)}function xWt(e){return x9.isBuffer(e)||e instanceof mWt}var xZ=vZ(),bWt=gZ(),_Wt=bWt.getHighWaterMark,f2=s_().codes,wWt=f2.ERR_INVALID_ARG_TYPE,TWt=f2.ERR_METHOD_NOT_IMPLEMENTED,AWt=f2.ERR_MULTIPLE_CALLBACK,MWt=f2.ERR_STREAM_CANNOT_PIPE,SWt=f2.ERR_STREAM_DESTROYED,EWt=f2.ERR_STREAM_NULL_VALUES,kWt=f2.ERR_STREAM_WRITE_AFTER_END,CWt=f2.ERR_UNKNOWN_ENCODING,o4=xZ.errorOrDestroy;sm()(Ql,xFe);function DWt(){}function CS(e,t,r){a4=a4||l_(),e=e||{},typeof r!="boolean"&&(r=t instanceof a4),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=_Wt(this,e,"writableHighWaterMark",r),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var i=e.decodeStrings===!1;this.decodeStrings=!i,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(n){BWt(t,n)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=e.emitClose!==!1,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new yFe(this)}CS.prototype.getBuffer=function(){for(var t=this.bufferedRequest,r=[];t;)r.push(t),t=t.next;return r};(function(){try{Object.defineProperty(CS.prototype,"buffer",{get:gWt.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}})();var y9;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(y9=Function.prototype[Symbol.hasInstance],Object.defineProperty(Ql,Symbol.hasInstance,{value:function(t){return y9.call(this,t)?!0:this!==Ql?!1:t&&t._writableState instanceof CS}})):y9=function(t){return t instanceof this};function Ql(e){a4=a4||l_();var t=this instanceof a4;if(!t&&!y9.call(Ql,this))return new Ql(e);this._writableState=new CS(e,this,t),this.writable=!0,e&&(typeof e.write=="function"&&(this._write=e.write),typeof e.writev=="function"&&(this._writev=e.writev),typeof e.destroy=="function"&&(this._destroy=e.destroy),typeof e.final=="function"&&(this._final=e.final)),xFe.call(this)}Ql.prototype.pipe=function(){o4(this,new MWt)};function FWt(e,t){var r=new kWt;o4(e,r),process.nextTick(t,r)}function LWt(e,t,r,i){var n;return r===null?n=new EWt:typeof r!="string"&&!t.objectMode&&(n=new wWt("chunk",["string","Buffer"],r)),n?(o4(e,n),process.nextTick(i,n),!1):!0}Ql.prototype.write=function(e,t,r){var i=this._writableState,n=!1,a=!i.objectMode&&xWt(e);return a&&!x9.isBuffer(e)&&(e=yWt(e)),typeof t=="function"&&(r=t,t=null),a?t="buffer":t||(t=i.defaultEncoding),typeof r!="function"&&(r=DWt),i.ending?FWt(this,r):(a||LWt(this,i,e,r))&&(i.pendingcb++,n=IWt(this,i,a,e,t,r)),n};Ql.prototype.cork=function(){this._writableState.corked++};Ql.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,!e.writing&&!e.corked&&!e.bufferProcessing&&e.bufferedRequest&&bFe(this,e))};Ql.prototype.setDefaultEncoding=function(t){if(typeof t=="string"&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new CWt(t);return this._writableState.defaultEncoding=t,this};Object.defineProperty(Ql.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function PWt(e,t,r){return!e.objectMode&&e.decodeStrings!==!1&&typeof t=="string"&&(t=x9.from(t,r)),t}Object.defineProperty(Ql.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function IWt(e,t,r,i,n,a){if(!r){var o=PWt(t,i,n);i!==o&&(r=!0,n="buffer",i=o)}var s=t.objectMode?1:i.length;t.length+=s;var l=t.length{"use strict";var GWt=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};AFe.exports=O1;var TFe=TZ(),wZ=bZ();sm()(O1,TFe);for(_Z=GWt(wZ.prototype),b9=0;b9<_Z.length;b9++)_9=_Z[b9],O1.prototype[_9]||(O1.prototype[_9]=wZ.prototype[_9]);var _Z,_9,b9;function O1(e){if(!(this instanceof O1))return new O1(e);TFe.call(this,e),wZ.call(this,e),this.allowHalfOpen=!0,e&&(e.readable===!1&&(this.readable=!1),e.writable===!1&&(this.writable=!1),e.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",HWt)))}Object.defineProperty(O1.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});Object.defineProperty(O1.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});Object.defineProperty(O1.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function HWt(){this._writableState.ended||process.nextTick(jWt,this)}function jWt(e){e.end()}Object.defineProperty(O1.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(t){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=t,this._writableState.destroyed=t)}})});var EFe=W((AZ,SFe)=>{var w9=t_(),N1=w9.Buffer;function MFe(e,t){for(var r in e)t[r]=e[r]}N1.from&&N1.alloc&&N1.allocUnsafe&&N1.allocUnsafeSlow?SFe.exports=w9:(MFe(w9,AZ),AZ.Buffer=u_);function u_(e,t,r){return N1(e,t,r)}u_.prototype=Object.create(N1.prototype);MFe(N1,u_);u_.from=function(e,t,r){if(typeof e=="number")throw new TypeError("Argument must not be a number");return N1(e,t,r)};u_.alloc=function(e,t,r){if(typeof e!="number")throw new TypeError("Argument must be a number");var i=N1(e);return t!==void 0?typeof r=="string"?i.fill(t,r):i.fill(t):i.fill(0),i};u_.allocUnsafe=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return N1(e)};u_.allocUnsafeSlow=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return w9.SlowBuffer(e)}});var EZ=W(CFe=>{"use strict";var SZ=EFe().Buffer,kFe=SZ.isEncoding||function(e){switch(e=""+e,e&&e.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 $Wt(e){if(!e)return"utf8";for(var t;;)switch(e){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 e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}function WWt(e){var t=$Wt(e);if(typeof t!="string"&&(SZ.isEncoding===kFe||!kFe(e)))throw new Error("Unknown encoding: "+e);return t||e}CFe.StringDecoder=DS;function DS(e){this.encoding=WWt(e);var t;switch(this.encoding){case"utf16le":this.text=QWt,this.end=eYt,t=4;break;case"utf8":this.fillLast=ZWt,t=4;break;case"base64":this.text=tYt,this.end=rYt,t=3;break;default:this.write=iYt,this.end=nYt;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=SZ.allocUnsafe(t)}DS.prototype.write=function(e){if(e.length===0)return"";var t,r;if(this.lastNeed){if(t=this.fillLast(e),t===void 0)return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r>5===6?2:e>>4===14?3:e>>3===30?4:e>>6===2?-1:-2}function YWt(e,t,r){var i=t.length-1;if(i=0?(n>0&&(e.lastNeed=n-1),n):--i=0?(n>0&&(e.lastNeed=n-2),n):--i=0?(n>0&&(n===2?n=0:e.lastNeed=n-3),n):0))}function XWt(e,t,r){if((t[0]&192)!==128)return e.lastNeed=0,"\uFFFD";if(e.lastNeed>1&&t.length>1){if((t[1]&192)!==128)return e.lastNeed=1,"\uFFFD";if(e.lastNeed>2&&t.length>2&&(t[2]&192)!==128)return e.lastNeed=2,"\uFFFD"}}function ZWt(e){var t=this.lastTotal-this.lastNeed,r=XWt(this,e,t);if(r!==void 0)return r;if(this.lastNeed<=e.length)return e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length}function KWt(e,t){var r=YWt(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var i=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,i),e.toString("utf8",t,i)}function JWt(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"\uFFFD":t}function QWt(e,t){if((e.length-t)%2===0){var r=e.toString("utf16le",t);if(r){var i=r.charCodeAt(r.length-1);if(i>=55296&&i<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function eYt(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function tYt(e,t){var r=(e.length-t)%3;return r===0?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,r===1?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function rYt(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function iYt(e){return e.toString(this.encoding)}function nYt(e){return e&&e.length?this.write(e):""}});var T9=W((U$r,LFe)=>{"use strict";var DFe=s_().codes.ERR_STREAM_PREMATURE_CLOSE;function aYt(e){var t=!1;return function(){if(!t){t=!0;for(var r=arguments.length,i=new Array(r),n=0;n{"use strict";var A9;function h2(e,t,r){return t=lYt(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function lYt(e){var t=uYt(e,"string");return typeof t=="symbol"?t:String(t)}function uYt(e,t){if(typeof e!="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,t||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var cYt=T9(),d2=Symbol("lastResolve"),c_=Symbol("lastReject"),FS=Symbol("error"),M9=Symbol("ended"),f_=Symbol("lastPromise"),kZ=Symbol("handlePromise"),h_=Symbol("stream");function p2(e,t){return{value:e,done:t}}function fYt(e){var t=e[d2];if(t!==null){var r=e[h_].read();r!==null&&(e[f_]=null,e[d2]=null,e[c_]=null,t(p2(r,!1)))}}function hYt(e){process.nextTick(fYt,e)}function dYt(e,t){return function(r,i){e.then(function(){if(t[M9]){r(p2(void 0,!0));return}t[kZ](r,i)},i)}}var pYt=Object.getPrototypeOf(function(){}),vYt=Object.setPrototypeOf((A9={get stream(){return this[h_]},next:function(){var t=this,r=this[FS];if(r!==null)return Promise.reject(r);if(this[M9])return Promise.resolve(p2(void 0,!0));if(this[h_].destroyed)return new Promise(function(o,s){process.nextTick(function(){t[FS]?s(t[FS]):o(p2(void 0,!0))})});var i=this[f_],n;if(i)n=new Promise(dYt(i,this));else{var a=this[h_].read();if(a!==null)return Promise.resolve(p2(a,!1));n=new Promise(this[kZ])}return this[f_]=n,n}},h2(A9,Symbol.asyncIterator,function(){return this}),h2(A9,"return",function(){var t=this;return new Promise(function(r,i){t[h_].destroy(null,function(n){if(n){i(n);return}r(p2(void 0,!0))})})}),A9),pYt),gYt=function(t){var r,i=Object.create(vYt,(r={},h2(r,h_,{value:t,writable:!0}),h2(r,d2,{value:null,writable:!0}),h2(r,c_,{value:null,writable:!0}),h2(r,FS,{value:null,writable:!0}),h2(r,M9,{value:t._readableState.endEmitted,writable:!0}),h2(r,kZ,{value:function(a,o){var s=i[h_].read();s?(i[f_]=null,i[d2]=null,i[c_]=null,a(p2(s,!1))):(i[d2]=a,i[c_]=o)},writable:!0}),r));return i[f_]=null,cYt(t,function(n){if(n&&n.code!=="ERR_STREAM_PREMATURE_CLOSE"){var a=i[c_];a!==null&&(i[f_]=null,i[d2]=null,i[c_]=null,a(n)),i[FS]=n;return}var o=i[d2];o!==null&&(i[f_]=null,i[d2]=null,i[c_]=null,o(p2(void 0,!0))),i[M9]=!0}),t.on("readable",hYt.bind(null,i)),i};PFe.exports=gYt});var zFe=W((G$r,RFe)=>{RFe.exports=function(){throw new Error("Readable.from is not available in the browser")}});var TZ=W((j$r,$Fe)=>{"use strict";$Fe.exports=Lo;var s4;Lo.ReadableState=NFe;var H$r=rb().EventEmitter,OFe=function(t,r){return t.listeners(r).length},PS=wX(),S9=t_().Buffer,mYt=(typeof window!="undefined"||typeof window!="undefined"?window:typeof self!="undefined"?self:{}).Uint8Array||function(){};function yYt(e){return S9.from(e)}function xYt(e){return S9.isBuffer(e)||e instanceof mYt}var CZ=hZ(),eo;CZ&&CZ.debuglog?eo=CZ.debuglog("stream"):eo=function(){};var bYt=lFe(),zZ=vZ(),_Yt=gZ(),wYt=_Yt.getHighWaterMark,E9=s_().codes,TYt=E9.ERR_INVALID_ARG_TYPE,AYt=E9.ERR_STREAM_PUSH_AFTER_EOF,MYt=E9.ERR_METHOD_NOT_IMPLEMENTED,SYt=E9.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,l4,DZ,FZ;sm()(Lo,PS);var LS=zZ.errorOrDestroy,LZ=["error","close","destroy","pause","resume"];function EYt(e,t,r){if(typeof e.prependListener=="function")return e.prependListener(t,r);!e._events||!e._events[t]?e.on(t,r):Array.isArray(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]}function NFe(e,t,r){s4=s4||l_(),e=e||{},typeof r!="boolean"&&(r=t instanceof s4),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=wYt(this,e,"readableHighWaterMark",r),this.buffer=new bYt,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=e.emitClose!==!1,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(l4||(l4=EZ().StringDecoder),this.decoder=new l4(e.encoding),this.encoding=e.encoding)}function Lo(e){if(s4=s4||l_(),!(this instanceof Lo))return new Lo(e);var t=this instanceof s4;this._readableState=new NFe(e,this,t),this.readable=!0,e&&(typeof e.read=="function"&&(this._read=e.read),typeof e.destroy=="function"&&(this._destroy=e.destroy)),PS.call(this)}Object.defineProperty(Lo.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}});Lo.prototype.destroy=zZ.destroy;Lo.prototype._undestroy=zZ.undestroy;Lo.prototype._destroy=function(e,t){t(e)};Lo.prototype.push=function(e,t){var r=this._readableState,i;return r.objectMode?i=!0:typeof e=="string"&&(t=t||r.defaultEncoding,t!==r.encoding&&(e=S9.from(e,t),t=""),i=!0),UFe(this,e,t,!1,i)};Lo.prototype.unshift=function(e){return UFe(this,e,null,!0,!1)};function UFe(e,t,r,i,n){eo("readableAddChunk",t);var a=e._readableState;if(t===null)a.reading=!1,DYt(e,a);else{var o;if(n||(o=kYt(a,t)),o)LS(e,o);else if(a.objectMode||t&&t.length>0)if(typeof t!="string"&&!a.objectMode&&Object.getPrototypeOf(t)!==S9.prototype&&(t=yYt(t)),i)a.endEmitted?LS(e,new SYt):PZ(e,a,t,!0);else if(a.ended)LS(e,new AYt);else{if(a.destroyed)return!1;a.reading=!1,a.decoder&&!r?(t=a.decoder.write(t),a.objectMode||t.length!==0?PZ(e,a,t,!1):RZ(e,a)):PZ(e,a,t,!1)}else i||(a.reading=!1,RZ(e,a))}return!a.ended&&(a.length=BFe?e=BFe:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function qFe(e,t){return e<=0||t.length===0&&t.ended?0:t.objectMode?1:e!==e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=CYt(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}Lo.prototype.read=function(e){eo("read",e),e=parseInt(e,10);var t=this._readableState,r=e;if(e!==0&&(t.emittedReadable=!1),e===0&&t.needReadable&&((t.highWaterMark!==0?t.length>=t.highWaterMark:t.length>0)||t.ended))return eo("read: emitReadable",t.length,t.ended),t.length===0&&t.ended?IZ(this):k9(this),null;if(e=qFe(e,t),e===0&&t.ended)return t.length===0&&IZ(this),null;var i=t.needReadable;eo("need readable",i),(t.length===0||t.length-e0?n=HFe(e,t):n=null,n===null?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),t.length===0&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&IZ(this)),n!==null&&this.emit("data",n),n};function DYt(e,t){if(eo("onEofChunk"),!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.sync?k9(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,VFe(e)))}}function k9(e){var t=e._readableState;eo("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(eo("emitReadable",t.flowing),t.emittedReadable=!0,process.nextTick(VFe,e))}function VFe(e){var t=e._readableState;eo("emitReadable_",t.destroyed,t.length,t.ended),!t.destroyed&&(t.length||t.ended)&&(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,BZ(e)}function RZ(e,t){t.readingMore||(t.readingMore=!0,process.nextTick(FYt,e,t))}function FYt(e,t){for(;!t.reading&&!t.ended&&(t.length1&&jFe(i.pipes,e)!==-1)&&!u&&(eo("false write response, pause",i.awaitDrain),i.awaitDrain++),r.pause())}function h(m){eo("onerror",m),v(),e.removeListener("error",h),OFe(e,"error")===0&&LS(e,m)}EYt(e,"error",h);function p(){e.removeListener("finish",d),v()}e.once("close",p);function d(){eo("onfinish"),e.removeListener("close",p),v()}e.once("finish",d);function v(){eo("unpipe"),r.unpipe(e)}return e.emit("pipe",r),i.flowing||(eo("pipe resume"),r.resume()),e};function LYt(e){return function(){var r=e._readableState;eo("pipeOnDrain",r.awaitDrain),r.awaitDrain&&r.awaitDrain--,r.awaitDrain===0&&OFe(e,"data")&&(r.flowing=!0,BZ(e))}}Lo.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(t.pipesCount===0)return this;if(t.pipesCount===1)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r),this);if(!e){var i=t.pipes,n=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var a=0;a0,i.flowing!==!1&&this.resume()):e==="readable"&&!i.endEmitted&&!i.readableListening&&(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,eo("on readable",i.length,i.reading),i.length?k9(this):i.reading||process.nextTick(PYt,this)),r};Lo.prototype.addListener=Lo.prototype.on;Lo.prototype.removeListener=function(e,t){var r=PS.prototype.removeListener.call(this,e,t);return e==="readable"&&process.nextTick(GFe,this),r};Lo.prototype.removeAllListeners=function(e){var t=PS.prototype.removeAllListeners.apply(this,arguments);return(e==="readable"||e===void 0)&&process.nextTick(GFe,this),t};function GFe(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function PYt(e){eo("readable nexttick read 0"),e.read(0)}Lo.prototype.resume=function(){var e=this._readableState;return e.flowing||(eo("resume"),e.flowing=!e.readableListening,IYt(this,e)),e.paused=!1,this};function IYt(e,t){t.resumeScheduled||(t.resumeScheduled=!0,process.nextTick(RYt,e,t))}function RYt(e,t){eo("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),BZ(e),t.flowing&&!t.reading&&e.read(0)}Lo.prototype.pause=function(){return eo("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(eo("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function BZ(e){var t=e._readableState;for(eo("flow",t.flowing);t.flowing&&e.read()!==null;);}Lo.prototype.wrap=function(e){var t=this,r=this._readableState,i=!1;e.on("end",function(){if(eo("wrapped end"),r.decoder&&!r.ended){var o=r.decoder.end();o&&o.length&&t.push(o)}t.push(null)}),e.on("data",function(o){if(eo("wrapped data"),r.decoder&&(o=r.decoder.write(o)),!(r.objectMode&&o==null)&&!(!r.objectMode&&(!o||!o.length))){var s=t.push(o);s||(i=!0,e.pause())}});for(var n in e)this[n]===void 0&&typeof e[n]=="function"&&(this[n]=(function(s){return function(){return e[s].apply(e,arguments)}})(n));for(var a=0;a=t.length?(t.decoder?r=t.buffer.join(""):t.buffer.length===1?r=t.buffer.first():r=t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r}function IZ(e){var t=e._readableState;eo("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,process.nextTick(zYt,t,e))}function zYt(e,t){if(eo("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&e.length===0&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}typeof Symbol=="function"&&(Lo.from=function(e,t){return FZ===void 0&&(FZ=zFe()),FZ(Lo,e,t)});function jFe(e,t){for(var r=0,i=e.length;r{"use strict";YFe.exports=um;var C9=s_().codes,BYt=C9.ERR_METHOD_NOT_IMPLEMENTED,qYt=C9.ERR_MULTIPLE_CALLBACK,OYt=C9.ERR_TRANSFORM_ALREADY_TRANSFORMING,NYt=C9.ERR_TRANSFORM_WITH_LENGTH_0,D9=l_();sm()(um,D9);function UYt(e,t){var r=this._transformState;r.transforming=!1;var i=r.writecb;if(i===null)return this.emit("error",new qYt);r.writechunk=null,r.writecb=null,t!=null&&this.push(t),i(e);var n=this._readableState;n.reading=!1,(n.needReadable||n.length{"use strict";ZFe.exports=IS;var XFe=qZ();sm()(IS,XFe);function IS(e){if(!(this instanceof IS))return new IS(e);XFe.call(this,e)}IS.prototype._transform=function(e,t,r){r(null,e)}});var rLe=W((Y$r,tLe)=>{"use strict";var OZ;function GYt(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}var eLe=s_().codes,HYt=eLe.ERR_MISSING_ARGS,jYt=eLe.ERR_STREAM_DESTROYED;function JFe(e){if(e)throw e}function $Yt(e){return e.setHeader&&typeof e.abort=="function"}function WYt(e,t,r,i){i=GYt(i);var n=!1;e.on("close",function(){n=!0}),OZ===void 0&&(OZ=T9()),OZ(e,{readable:t,writable:r},function(o){if(o)return i(o);n=!0,i()});var a=!1;return function(o){if(!n&&!a){if(a=!0,$Yt(e))return e.abort();if(typeof e.destroy=="function")return e.destroy();i(o||new jYt("pipe"))}}}function QFe(e){e()}function YYt(e,t){return e.pipe(t)}function XYt(e){return!e.length||typeof e[e.length-1]!="function"?JFe:e.pop()}function ZYt(){for(var e=arguments.length,t=new Array(e),r=0;r0;return WYt(o,l,u,function(c){n||(n=c),c&&a.forEach(QFe),!l&&(a.forEach(QFe),i(n))})});return t.reduce(YYt)}tLe.exports=ZYt});var nLe=W((X$r,iLe)=>{iLe.exports=jd;var NZ=rb().EventEmitter,KYt=sm();KYt(jd,NZ);jd.Readable=TZ();jd.Writable=bZ();jd.Duplex=l_();jd.Transform=qZ();jd.PassThrough=KFe();jd.finished=T9();jd.pipeline=rLe();jd.Stream=jd;function jd(){NZ.call(this)}jd.prototype.pipe=function(e,t){var r=this;function i(c){e.writable&&e.write(c)===!1&&r.pause&&r.pause()}r.on("data",i);function n(){r.readable&&r.resume&&r.resume()}e.on("drain",n),!e._isStdio&&(!t||t.end!==!1)&&(r.on("end",o),r.on("close",s));var a=!1;function o(){a||(a=!0,e.end())}function s(){a||(a=!0,typeof e.destroy=="function"&&e.destroy())}function l(c){if(u(),NZ.listenerCount(this,"error")===0)throw c}r.on("error",l),e.on("error",l);function u(){r.removeListener("data",i),e.removeListener("drain",n),r.removeListener("end",o),r.removeListener("close",s),r.removeListener("error",l),e.removeListener("error",l),r.removeListener("end",u),r.removeListener("close",u),e.removeListener("close",u)}return r.on("end",u),r.on("close",u),e.on("close",u),e.emit("pipe",r),e}});var c4=W(so=>{var aLe=Object.getOwnPropertyDescriptors||function(t){for(var r=Object.keys(t),i={},n=0;n=n)return s;switch(s){case"%s":return String(i[r++]);case"%d":return Number(i[r++]);case"%j":try{return JSON.stringify(i[r++])}catch(l){return"[Circular]"}default:return s}}),o=i[r];r=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),HZ(t)?r.showHidden=t:t&&so._extend(r,t),p_(r.showHidden)&&(r.showHidden=!1),p_(r.depth)&&(r.depth=2),p_(r.colors)&&(r.colors=!1),p_(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=QYt),I9(r,e,r.depth)}so.inspect=v2;v2.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]};v2.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function QYt(e,t){var r=v2.styles[t];return r?"\x1B["+v2.colors[r][0]+"m"+e+"\x1B["+v2.colors[r][1]+"m":e}function eXt(e,t){return e}function tXt(e){var t={};return e.forEach(function(r,i){t[r]=!0}),t}function I9(e,t,r){if(e.customInspect&&t&&P9(t.inspect)&&t.inspect!==so.inspect&&!(t.constructor&&t.constructor.prototype===t)){var i=t.inspect(r,e);return B9(i)||(i=I9(e,i,r)),i}var n=rXt(e,t);if(n)return n;var a=Object.keys(t),o=tXt(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(t)),zS(t)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return UZ(t);if(a.length===0){if(P9(t)){var s=t.name?": "+t.name:"";return e.stylize("[Function"+s+"]","special")}if(RS(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(R9(t))return e.stylize(Date.prototype.toString.call(t),"date");if(zS(t))return UZ(t)}var l="",u=!1,c=["{","}"];if(sLe(t)&&(u=!0,c=["[","]"]),P9(t)){var f=t.name?": "+t.name:"";l=" [Function"+f+"]"}if(RS(t)&&(l=" "+RegExp.prototype.toString.call(t)),R9(t)&&(l=" "+Date.prototype.toUTCString.call(t)),zS(t)&&(l=" "+UZ(t)),a.length===0&&(!u||t.length==0))return c[0]+l+c[1];if(r<0)return RS(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special");e.seen.push(t);var h;return u?h=iXt(e,t,r,o,a):h=a.map(function(p){return GZ(e,t,r,o,p,u)}),e.seen.pop(),nXt(h,l,c)}function rXt(e,t){if(p_(t))return e.stylize("undefined","undefined");if(B9(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}if(lLe(t))return e.stylize(""+t,"number");if(HZ(t))return e.stylize(""+t,"boolean");if(z9(t))return e.stylize("null","null")}function UZ(e){return"["+Error.prototype.toString.call(e)+"]"}function iXt(e,t,r,i,n){for(var a=[],o=0,s=t.length;o{"use strict";function fFe(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,i)}return r}function hFe(e){for(var t=1;t0?this.tail.next=i:this.head=i,this.tail=i,++this.length}},{key:"unshift",value:function(r){var i={data:r,next:this.head};this.length===0&&(this.tail=i),this.head=i,++this.length}},{key:"shift",value:function(){if(this.length!==0){var r=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,r}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(r){if(this.length===0)return"";for(var i=this.head,n=""+i.data;i=i.next;)n+=r+i.data;return n}},{key:"concat",value:function(r){if(this.length===0)return w9.alloc(0);for(var i=w9.allocUnsafe(r>>>0),n=this.head,a=0;n;)gWt(n.data,i,a),a+=n.data.length,n=n.next;return i}},{key:"consume",value:function(r,i){var n;return ro.length?o.length:r;if(s===o.length?a+=o:a+=o.slice(0,r),r-=s,r===0){s===o.length?(++n,i.next?this.head=i.next:this.head=this.tail=null):(this.head=i,i.data=o.slice(s));break}++n}return this.length-=n,a}},{key:"_getBuffer",value:function(r){var i=w9.allocUnsafe(r),n=this.head,a=1;for(n.data.copy(i),r-=n.data.length;n=n.next;){var o=n.data,s=r>o.length?o.length:r;if(o.copy(i,i.length-r,0,s),r-=s,r===0){s===o.length?(++a,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=o.slice(s));break}++a}return this.length-=a,i}},{key:vWt,value:function(r,i){return _Z(this,hFe(hFe({},i),{},{depth:0,customInspect:!1}))}}]),e})()});var TZ=W((W$r,yFe)=>{"use strict";function mWt(e,t){var r=this,i=this._readableState&&this._readableState.destroyed,n=this._writableState&&this._writableState.destroyed;return i||n?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(wZ,this,e)):process.nextTick(wZ,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(a){!t&&a?r._writableState?r._writableState.errorEmitted?process.nextTick(T9,r):(r._writableState.errorEmitted=!0,process.nextTick(mFe,r,a)):process.nextTick(mFe,r,a):t?(process.nextTick(T9,r),t(a)):process.nextTick(T9,r)}),this)}function mFe(e,t){wZ(e,t),T9(e)}function T9(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function yWt(){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 wZ(e,t){e.emit("error",t)}function xWt(e,t){var r=e._readableState,i=e._writableState;r&&r.autoDestroy||i&&i.autoDestroy?e.destroy(t):e.emit("error",t)}yFe.exports={destroy:mWt,undestroy:yWt,errorOrDestroy:xWt}});var s_=W((Y$r,_Fe)=>{"use strict";function bWt(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var bFe={};function Wd(e,t,r){r||(r=Error);function i(a,o,s){return typeof t=="string"?t:t(a,o,s)}var n=(function(a){bWt(o,a);function o(s,l,u){return a.call(this,i(s,l,u))||this}return o})(r);n.prototype.name=r.name,n.prototype.code=e,bFe[e]=n}function xFe(e,t){if(Array.isArray(e)){var r=e.length;return e=e.map(function(i){return String(i)}),r>2?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:r===2?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}else return"of ".concat(t," ").concat(String(e))}function _Wt(e,t,r){return e.substr(!r||r<0?0:+r,t.length)===t}function wWt(e,t,r){return(r===void 0||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function TWt(e,t,r){return typeof r!="number"&&(r=0),r+t.length>e.length?!1:e.indexOf(t,r)!==-1}Wd("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError);Wd("ERR_INVALID_ARG_TYPE",function(e,t,r){var i;typeof t=="string"&&_Wt(t,"not ")?(i="must not be",t=t.replace(/^not /,"")):i="must be";var n;if(wWt(e," argument"))n="The ".concat(e," ").concat(i," ").concat(xFe(t,"type"));else{var a=TWt(e,".")?"property":"argument";n='The "'.concat(e,'" ').concat(a," ").concat(i," ").concat(xFe(t,"type"))}return n+=". Received type ".concat(typeof r),n},TypeError);Wd("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");Wd("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"});Wd("ERR_STREAM_PREMATURE_CLOSE","Premature close");Wd("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"});Wd("ERR_MULTIPLE_CALLBACK","Callback called multiple times");Wd("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");Wd("ERR_STREAM_WRITE_AFTER_END","write after end");Wd("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);Wd("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError);Wd("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");_Fe.exports.codes=bFe});var AZ=W((X$r,wFe)=>{"use strict";var AWt=s_().codes.ERR_INVALID_OPT_VALUE;function MWt(e,t,r){return e.highWaterMark!=null?e.highWaterMark:t?e[r]:null}function SWt(e,t,r,i){var n=MWt(t,i,r);if(n!=null){if(!(isFinite(n)&&Math.floor(n)===n)||n<0){var a=i?r:"highWaterMark";throw new AWt(a,n)}return Math.floor(n)}return e.objectMode?16:16*1024}wFe.exports={getHighWaterMark:SWt}});var AFe=W((Z$r,TFe)=>{TFe.exports=EWt;function EWt(e,t){if(MZ("noDeprecation"))return e;var r=!1;function i(){if(!r){if(MZ("throwDeprecation"))throw new Error(t);MZ("traceDeprecation")?console.trace(t):console.warn(t),r=!0}return e.apply(this,arguments)}return i}function MZ(e){try{if(!window.localStorage)return!1}catch(r){return!1}var t=window.localStorage[e];return t==null?!1:String(t).toLowerCase()==="true"}});var kZ=W((K$r,DFe)=>{"use strict";DFe.exports=tu;function SFe(e){var t=this;this.next=null,this.entry=null,this.finish=function(){eYt(t,e)}}var o4;tu.WritableState=FS;var kWt={deprecate:AFe()},EFe=DX(),M9=t_().Buffer,CWt=(typeof window!="undefined"||typeof window!="undefined"?window:typeof self!="undefined"?self:{}).Uint8Array||function(){};function DWt(e){return M9.from(e)}function FWt(e){return M9.isBuffer(e)||e instanceof CWt}var EZ=TZ(),LWt=AZ(),PWt=LWt.getHighWaterMark,p2=s_().codes,IWt=p2.ERR_INVALID_ARG_TYPE,RWt=p2.ERR_METHOD_NOT_IMPLEMENTED,zWt=p2.ERR_MULTIPLE_CALLBACK,BWt=p2.ERR_STREAM_CANNOT_PIPE,qWt=p2.ERR_STREAM_DESTROYED,OWt=p2.ERR_STREAM_NULL_VALUES,NWt=p2.ERR_STREAM_WRITE_AFTER_END,UWt=p2.ERR_UNKNOWN_ENCODING,s4=EZ.errorOrDestroy;fm()(tu,EFe);function VWt(){}function FS(e,t,r){o4=o4||l_(),e=e||{},typeof r!="boolean"&&(r=t instanceof o4),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=PWt(this,e,"writableHighWaterMark",r),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var i=e.decodeStrings===!1;this.decodeStrings=!i,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(n){XWt(t,n)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=e.emitClose!==!1,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new SFe(this)}FS.prototype.getBuffer=function(){for(var t=this.bufferedRequest,r=[];t;)r.push(t),t=t.next;return r};(function(){try{Object.defineProperty(FS.prototype,"buffer",{get:kWt.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}})();var A9;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(A9=Function.prototype[Symbol.hasInstance],Object.defineProperty(tu,Symbol.hasInstance,{value:function(t){return A9.call(this,t)?!0:this!==tu?!1:t&&t._writableState instanceof FS}})):A9=function(t){return t instanceof this};function tu(e){o4=o4||l_();var t=this instanceof o4;if(!t&&!A9.call(tu,this))return new tu(e);this._writableState=new FS(e,this,t),this.writable=!0,e&&(typeof e.write=="function"&&(this._write=e.write),typeof e.writev=="function"&&(this._writev=e.writev),typeof e.destroy=="function"&&(this._destroy=e.destroy),typeof e.final=="function"&&(this._final=e.final)),EFe.call(this)}tu.prototype.pipe=function(){s4(this,new BWt)};function GWt(e,t){var r=new NWt;s4(e,r),process.nextTick(t,r)}function HWt(e,t,r,i){var n;return r===null?n=new OWt:typeof r!="string"&&!t.objectMode&&(n=new IWt("chunk",["string","Buffer"],r)),n?(s4(e,n),process.nextTick(i,n),!1):!0}tu.prototype.write=function(e,t,r){var i=this._writableState,n=!1,a=!i.objectMode&&FWt(e);return a&&!M9.isBuffer(e)&&(e=DWt(e)),typeof t=="function"&&(r=t,t=null),a?t="buffer":t||(t=i.defaultEncoding),typeof r!="function"&&(r=VWt),i.ending?GWt(this,r):(a||HWt(this,i,e,r))&&(i.pendingcb++,n=$Wt(this,i,a,e,t,r)),n};tu.prototype.cork=function(){this._writableState.corked++};tu.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,!e.writing&&!e.corked&&!e.bufferProcessing&&e.bufferedRequest&&kFe(this,e))};tu.prototype.setDefaultEncoding=function(t){if(typeof t=="string"&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new UWt(t);return this._writableState.defaultEncoding=t,this};Object.defineProperty(tu.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function jWt(e,t,r){return!e.objectMode&&e.decodeStrings!==!1&&typeof t=="string"&&(t=M9.from(t,r)),t}Object.defineProperty(tu.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function $Wt(e,t,r,i,n,a){if(!r){var o=jWt(t,i,n);i!==o&&(r=!0,n="buffer",i=o)}var s=t.objectMode?1:i.length;t.length+=s;var l=t.length{"use strict";var tYt=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};LFe.exports=U1;var FFe=FZ(),DZ=kZ();fm()(U1,FFe);for(CZ=tYt(DZ.prototype),S9=0;S9{var k9=t_(),V1=k9.Buffer;function PFe(e,t){for(var r in e)t[r]=e[r]}V1.from&&V1.alloc&&V1.allocUnsafe&&V1.allocUnsafeSlow?IFe.exports=k9:(PFe(k9,LZ),LZ.Buffer=u_);function u_(e,t,r){return V1(e,t,r)}u_.prototype=Object.create(V1.prototype);PFe(V1,u_);u_.from=function(e,t,r){if(typeof e=="number")throw new TypeError("Argument must not be a number");return V1(e,t,r)};u_.alloc=function(e,t,r){if(typeof e!="number")throw new TypeError("Argument must be a number");var i=V1(e);return t!==void 0?typeof r=="string"?i.fill(t,r):i.fill(t):i.fill(0),i};u_.allocUnsafe=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return V1(e)};u_.allocUnsafeSlow=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return k9.SlowBuffer(e)}});var RZ=W(BFe=>{"use strict";var IZ=RFe().Buffer,zFe=IZ.isEncoding||function(e){switch(e=""+e,e&&e.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 nYt(e){if(!e)return"utf8";for(var t;;)switch(e){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 e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}function aYt(e){var t=nYt(e);if(typeof t!="string"&&(IZ.isEncoding===zFe||!zFe(e)))throw new Error("Unknown encoding: "+e);return t||e}BFe.StringDecoder=LS;function LS(e){this.encoding=aYt(e);var t;switch(this.encoding){case"utf16le":this.text=fYt,this.end=hYt,t=4;break;case"utf8":this.fillLast=lYt,t=4;break;case"base64":this.text=dYt,this.end=pYt,t=3;break;default:this.write=vYt,this.end=gYt;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=IZ.allocUnsafe(t)}LS.prototype.write=function(e){if(e.length===0)return"";var t,r;if(this.lastNeed){if(t=this.fillLast(e),t===void 0)return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r>5===6?2:e>>4===14?3:e>>3===30?4:e>>6===2?-1:-2}function oYt(e,t,r){var i=t.length-1;if(i=0?(n>0&&(e.lastNeed=n-1),n):--i=0?(n>0&&(e.lastNeed=n-2),n):--i=0?(n>0&&(n===2?n=0:e.lastNeed=n-3),n):0))}function sYt(e,t,r){if((t[0]&192)!==128)return e.lastNeed=0,"\uFFFD";if(e.lastNeed>1&&t.length>1){if((t[1]&192)!==128)return e.lastNeed=1,"\uFFFD";if(e.lastNeed>2&&t.length>2&&(t[2]&192)!==128)return e.lastNeed=2,"\uFFFD"}}function lYt(e){var t=this.lastTotal-this.lastNeed,r=sYt(this,e,t);if(r!==void 0)return r;if(this.lastNeed<=e.length)return e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length}function uYt(e,t){var r=oYt(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var i=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,i),e.toString("utf8",t,i)}function cYt(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"\uFFFD":t}function fYt(e,t){if((e.length-t)%2===0){var r=e.toString("utf16le",t);if(r){var i=r.charCodeAt(r.length-1);if(i>=55296&&i<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function hYt(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function dYt(e,t){var r=(e.length-t)%3;return r===0?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,r===1?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function pYt(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function vYt(e){return e.toString(this.encoding)}function gYt(e){return e&&e.length?this.write(e):""}});var C9=W((eWr,NFe)=>{"use strict";var qFe=s_().codes.ERR_STREAM_PREMATURE_CLOSE;function mYt(e){var t=!1;return function(){if(!t){t=!0;for(var r=arguments.length,i=new Array(r),n=0;n{"use strict";var D9;function v2(e,t,r){return t=bYt(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function bYt(e){var t=_Yt(e,"string");return typeof t=="symbol"?t:String(t)}function _Yt(e,t){if(typeof e!="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,t||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var wYt=C9(),g2=Symbol("lastResolve"),c_=Symbol("lastReject"),PS=Symbol("error"),F9=Symbol("ended"),f_=Symbol("lastPromise"),zZ=Symbol("handlePromise"),h_=Symbol("stream");function m2(e,t){return{value:e,done:t}}function TYt(e){var t=e[g2];if(t!==null){var r=e[h_].read();r!==null&&(e[f_]=null,e[g2]=null,e[c_]=null,t(m2(r,!1)))}}function AYt(e){process.nextTick(TYt,e)}function MYt(e,t){return function(r,i){e.then(function(){if(t[F9]){r(m2(void 0,!0));return}t[zZ](r,i)},i)}}var SYt=Object.getPrototypeOf(function(){}),EYt=Object.setPrototypeOf((D9={get stream(){return this[h_]},next:function(){var t=this,r=this[PS];if(r!==null)return Promise.reject(r);if(this[F9])return Promise.resolve(m2(void 0,!0));if(this[h_].destroyed)return new Promise(function(o,s){process.nextTick(function(){t[PS]?s(t[PS]):o(m2(void 0,!0))})});var i=this[f_],n;if(i)n=new Promise(MYt(i,this));else{var a=this[h_].read();if(a!==null)return Promise.resolve(m2(a,!1));n=new Promise(this[zZ])}return this[f_]=n,n}},v2(D9,Symbol.asyncIterator,function(){return this}),v2(D9,"return",function(){var t=this;return new Promise(function(r,i){t[h_].destroy(null,function(n){if(n){i(n);return}r(m2(void 0,!0))})})}),D9),SYt),kYt=function(t){var r,i=Object.create(EYt,(r={},v2(r,h_,{value:t,writable:!0}),v2(r,g2,{value:null,writable:!0}),v2(r,c_,{value:null,writable:!0}),v2(r,PS,{value:null,writable:!0}),v2(r,F9,{value:t._readableState.endEmitted,writable:!0}),v2(r,zZ,{value:function(a,o){var s=i[h_].read();s?(i[f_]=null,i[g2]=null,i[c_]=null,a(m2(s,!1))):(i[g2]=a,i[c_]=o)},writable:!0}),r));return i[f_]=null,wYt(t,function(n){if(n&&n.code!=="ERR_STREAM_PREMATURE_CLOSE"){var a=i[c_];a!==null&&(i[f_]=null,i[g2]=null,i[c_]=null,a(n)),i[PS]=n;return}var o=i[g2];o!==null&&(i[f_]=null,i[g2]=null,i[c_]=null,o(m2(void 0,!0))),i[F9]=!0}),t.on("readable",AYt.bind(null,i)),i};UFe.exports=kYt});var HFe=W((rWr,GFe)=>{GFe.exports=function(){throw new Error("Readable.from is not available in the browser")}});var FZ=W((nWr,eLe)=>{"use strict";eLe.exports=Lo;var l4;Lo.ReadableState=YFe;var iWr=ib().EventEmitter,WFe=function(t,r){return t.listeners(r).length},RS=DX(),L9=t_().Buffer,CYt=(typeof window!="undefined"||typeof window!="undefined"?window:typeof self!="undefined"?self:{}).Uint8Array||function(){};function DYt(e){return L9.from(e)}function FYt(e){return L9.isBuffer(e)||e instanceof CYt}var BZ=bZ(),to;BZ&&BZ.debuglog?to=BZ.debuglog("stream"):to=function(){};var LYt=gFe(),HZ=TZ(),PYt=AZ(),IYt=PYt.getHighWaterMark,P9=s_().codes,RYt=P9.ERR_INVALID_ARG_TYPE,zYt=P9.ERR_STREAM_PUSH_AFTER_EOF,BYt=P9.ERR_METHOD_NOT_IMPLEMENTED,qYt=P9.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,u4,qZ,OZ;fm()(Lo,RS);var IS=HZ.errorOrDestroy,NZ=["error","close","destroy","pause","resume"];function OYt(e,t,r){if(typeof e.prependListener=="function")return e.prependListener(t,r);!e._events||!e._events[t]?e.on(t,r):Array.isArray(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]}function YFe(e,t,r){l4=l4||l_(),e=e||{},typeof r!="boolean"&&(r=t instanceof l4),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=IYt(this,e,"readableHighWaterMark",r),this.buffer=new LYt,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=e.emitClose!==!1,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(u4||(u4=RZ().StringDecoder),this.decoder=new u4(e.encoding),this.encoding=e.encoding)}function Lo(e){if(l4=l4||l_(),!(this instanceof Lo))return new Lo(e);var t=this instanceof l4;this._readableState=new YFe(e,this,t),this.readable=!0,e&&(typeof e.read=="function"&&(this._read=e.read),typeof e.destroy=="function"&&(this._destroy=e.destroy)),RS.call(this)}Object.defineProperty(Lo.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}});Lo.prototype.destroy=HZ.destroy;Lo.prototype._undestroy=HZ.undestroy;Lo.prototype._destroy=function(e,t){t(e)};Lo.prototype.push=function(e,t){var r=this._readableState,i;return r.objectMode?i=!0:typeof e=="string"&&(t=t||r.defaultEncoding,t!==r.encoding&&(e=L9.from(e,t),t=""),i=!0),XFe(this,e,t,!1,i)};Lo.prototype.unshift=function(e){return XFe(this,e,null,!0,!1)};function XFe(e,t,r,i,n){to("readableAddChunk",t);var a=e._readableState;if(t===null)a.reading=!1,VYt(e,a);else{var o;if(n||(o=NYt(a,t)),o)IS(e,o);else if(a.objectMode||t&&t.length>0)if(typeof t!="string"&&!a.objectMode&&Object.getPrototypeOf(t)!==L9.prototype&&(t=DYt(t)),i)a.endEmitted?IS(e,new qYt):UZ(e,a,t,!0);else if(a.ended)IS(e,new zYt);else{if(a.destroyed)return!1;a.reading=!1,a.decoder&&!r?(t=a.decoder.write(t),a.objectMode||t.length!==0?UZ(e,a,t,!1):GZ(e,a)):UZ(e,a,t,!1)}else i||(a.reading=!1,GZ(e,a))}return!a.ended&&(a.length=jFe?e=jFe:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function $Fe(e,t){return e<=0||t.length===0&&t.ended?0:t.objectMode?1:e!==e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=UYt(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}Lo.prototype.read=function(e){to("read",e),e=parseInt(e,10);var t=this._readableState,r=e;if(e!==0&&(t.emittedReadable=!1),e===0&&t.needReadable&&((t.highWaterMark!==0?t.length>=t.highWaterMark:t.length>0)||t.ended))return to("read: emitReadable",t.length,t.ended),t.length===0&&t.ended?VZ(this):I9(this),null;if(e=$Fe(e,t),e===0&&t.ended)return t.length===0&&VZ(this),null;var i=t.needReadable;to("need readable",i),(t.length===0||t.length-e0?n=JFe(e,t):n=null,n===null?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),t.length===0&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&VZ(this)),n!==null&&this.emit("data",n),n};function VYt(e,t){if(to("onEofChunk"),!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.sync?I9(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,ZFe(e)))}}function I9(e){var t=e._readableState;to("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(to("emitReadable",t.flowing),t.emittedReadable=!0,process.nextTick(ZFe,e))}function ZFe(e){var t=e._readableState;to("emitReadable_",t.destroyed,t.length,t.ended),!t.destroyed&&(t.length||t.ended)&&(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,jZ(e)}function GZ(e,t){t.readingMore||(t.readingMore=!0,process.nextTick(GYt,e,t))}function GYt(e,t){for(;!t.reading&&!t.ended&&(t.length1&&QFe(i.pipes,e)!==-1)&&!u&&(to("false write response, pause",i.awaitDrain),i.awaitDrain++),r.pause())}function h(m){to("onerror",m),v(),e.removeListener("error",h),WFe(e,"error")===0&&IS(e,m)}OYt(e,"error",h);function p(){e.removeListener("finish",d),v()}e.once("close",p);function d(){to("onfinish"),e.removeListener("close",p),v()}e.once("finish",d);function v(){to("unpipe"),r.unpipe(e)}return e.emit("pipe",r),i.flowing||(to("pipe resume"),r.resume()),e};function HYt(e){return function(){var r=e._readableState;to("pipeOnDrain",r.awaitDrain),r.awaitDrain&&r.awaitDrain--,r.awaitDrain===0&&WFe(e,"data")&&(r.flowing=!0,jZ(e))}}Lo.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(t.pipesCount===0)return this;if(t.pipesCount===1)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r),this);if(!e){var i=t.pipes,n=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var a=0;a0,i.flowing!==!1&&this.resume()):e==="readable"&&!i.endEmitted&&!i.readableListening&&(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,to("on readable",i.length,i.reading),i.length?I9(this):i.reading||process.nextTick(jYt,this)),r};Lo.prototype.addListener=Lo.prototype.on;Lo.prototype.removeListener=function(e,t){var r=RS.prototype.removeListener.call(this,e,t);return e==="readable"&&process.nextTick(KFe,this),r};Lo.prototype.removeAllListeners=function(e){var t=RS.prototype.removeAllListeners.apply(this,arguments);return(e==="readable"||e===void 0)&&process.nextTick(KFe,this),t};function KFe(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function jYt(e){to("readable nexttick read 0"),e.read(0)}Lo.prototype.resume=function(){var e=this._readableState;return e.flowing||(to("resume"),e.flowing=!e.readableListening,$Yt(this,e)),e.paused=!1,this};function $Yt(e,t){t.resumeScheduled||(t.resumeScheduled=!0,process.nextTick(WYt,e,t))}function WYt(e,t){to("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),jZ(e),t.flowing&&!t.reading&&e.read(0)}Lo.prototype.pause=function(){return to("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(to("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function jZ(e){var t=e._readableState;for(to("flow",t.flowing);t.flowing&&e.read()!==null;);}Lo.prototype.wrap=function(e){var t=this,r=this._readableState,i=!1;e.on("end",function(){if(to("wrapped end"),r.decoder&&!r.ended){var o=r.decoder.end();o&&o.length&&t.push(o)}t.push(null)}),e.on("data",function(o){if(to("wrapped data"),r.decoder&&(o=r.decoder.write(o)),!(r.objectMode&&o==null)&&!(!r.objectMode&&(!o||!o.length))){var s=t.push(o);s||(i=!0,e.pause())}});for(var n in e)this[n]===void 0&&typeof e[n]=="function"&&(this[n]=(function(s){return function(){return e[s].apply(e,arguments)}})(n));for(var a=0;a=t.length?(t.decoder?r=t.buffer.join(""):t.buffer.length===1?r=t.buffer.first():r=t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r}function VZ(e){var t=e._readableState;to("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,process.nextTick(YYt,t,e))}function YYt(e,t){if(to("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&e.length===0&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}typeof Symbol=="function"&&(Lo.from=function(e,t){return OZ===void 0&&(OZ=HFe()),OZ(Lo,e,t)});function QFe(e,t){for(var r=0,i=e.length;r{"use strict";rLe.exports=dm;var R9=s_().codes,XYt=R9.ERR_METHOD_NOT_IMPLEMENTED,ZYt=R9.ERR_MULTIPLE_CALLBACK,KYt=R9.ERR_TRANSFORM_ALREADY_TRANSFORMING,JYt=R9.ERR_TRANSFORM_WITH_LENGTH_0,z9=l_();fm()(dm,z9);function QYt(e,t){var r=this._transformState;r.transforming=!1;var i=r.writecb;if(i===null)return this.emit("error",new ZYt);r.writechunk=null,r.writecb=null,t!=null&&this.push(t),i(e);var n=this._readableState;n.reading=!1,(n.needReadable||n.length{"use strict";nLe.exports=zS;var iLe=$Z();fm()(zS,iLe);function zS(e){if(!(this instanceof zS))return new zS(e);iLe.call(this,e)}zS.prototype._transform=function(e,t,r){r(null,e)}});var cLe=W((sWr,uLe)=>{"use strict";var WZ;function tXt(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}var lLe=s_().codes,rXt=lLe.ERR_MISSING_ARGS,iXt=lLe.ERR_STREAM_DESTROYED;function oLe(e){if(e)throw e}function nXt(e){return e.setHeader&&typeof e.abort=="function"}function aXt(e,t,r,i){i=tXt(i);var n=!1;e.on("close",function(){n=!0}),WZ===void 0&&(WZ=C9()),WZ(e,{readable:t,writable:r},function(o){if(o)return i(o);n=!0,i()});var a=!1;return function(o){if(!n&&!a){if(a=!0,nXt(e))return e.abort();if(typeof e.destroy=="function")return e.destroy();i(o||new iXt("pipe"))}}}function sLe(e){e()}function oXt(e,t){return e.pipe(t)}function sXt(e){return!e.length||typeof e[e.length-1]!="function"?oLe:e.pop()}function lXt(){for(var e=arguments.length,t=new Array(e),r=0;r0;return aXt(o,l,u,function(c){n||(n=c),c&&a.forEach(sLe),!l&&(a.forEach(sLe),i(n))})});return t.reduce(oXt)}uLe.exports=lXt});var hLe=W((lWr,fLe)=>{fLe.exports=Yd;var YZ=ib().EventEmitter,uXt=fm();uXt(Yd,YZ);Yd.Readable=FZ();Yd.Writable=kZ();Yd.Duplex=l_();Yd.Transform=$Z();Yd.PassThrough=aLe();Yd.finished=C9();Yd.pipeline=cLe();Yd.Stream=Yd;function Yd(){YZ.call(this)}Yd.prototype.pipe=function(e,t){var r=this;function i(c){e.writable&&e.write(c)===!1&&r.pause&&r.pause()}r.on("data",i);function n(){r.readable&&r.resume&&r.resume()}e.on("drain",n),!e._isStdio&&(!t||t.end!==!1)&&(r.on("end",o),r.on("close",s));var a=!1;function o(){a||(a=!0,e.end())}function s(){a||(a=!0,typeof e.destroy=="function"&&e.destroy())}function l(c){if(u(),YZ.listenerCount(this,"error")===0)throw c}r.on("error",l),e.on("error",l);function u(){r.removeListener("data",i),e.removeListener("drain",n),r.removeListener("end",o),r.removeListener("close",s),r.removeListener("error",l),e.removeListener("error",l),r.removeListener("end",u),r.removeListener("close",u),e.removeListener("close",u)}return r.on("end",u),r.on("close",u),e.on("close",u),e.emit("pipe",r),e}});var f4=W(uo=>{var dLe=Object.getOwnPropertyDescriptors||function(t){for(var r=Object.keys(t),i={},n=0;n=n)return s;switch(s){case"%s":return String(i[r++]);case"%d":return Number(i[r++]);case"%j":try{return JSON.stringify(i[r++])}catch(l){return"[Circular]"}default:return s}}),o=i[r];r=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),JZ(t)?r.showHidden=t:t&&uo._extend(r,t),p_(r.showHidden)&&(r.showHidden=!1),p_(r.depth)&&(r.depth=2),p_(r.colors)&&(r.colors=!1),p_(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=fXt),N9(r,e,r.depth)}uo.inspect=y2;y2.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]};y2.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function fXt(e,t){var r=y2.styles[t];return r?"\x1B["+y2.colors[r][0]+"m"+e+"\x1B["+y2.colors[r][1]+"m":e}function hXt(e,t){return e}function dXt(e){var t={};return e.forEach(function(r,i){t[r]=!0}),t}function N9(e,t,r){if(e.customInspect&&t&&O9(t.inspect)&&t.inspect!==uo.inspect&&!(t.constructor&&t.constructor.prototype===t)){var i=t.inspect(r,e);return G9(i)||(i=N9(e,i,r)),i}var n=pXt(e,t);if(n)return n;var a=Object.keys(t),o=dXt(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(t)),qS(t)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return XZ(t);if(a.length===0){if(O9(t)){var s=t.name?": "+t.name:"";return e.stylize("[Function"+s+"]","special")}if(BS(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(U9(t))return e.stylize(Date.prototype.toString.call(t),"date");if(qS(t))return XZ(t)}var l="",u=!1,c=["{","}"];if(vLe(t)&&(u=!0,c=["[","]"]),O9(t)){var f=t.name?": "+t.name:"";l=" [Function"+f+"]"}if(BS(t)&&(l=" "+RegExp.prototype.toString.call(t)),U9(t)&&(l=" "+Date.prototype.toUTCString.call(t)),qS(t)&&(l=" "+XZ(t)),a.length===0&&(!u||t.length==0))return c[0]+l+c[1];if(r<0)return BS(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special");e.seen.push(t);var h;return u?h=vXt(e,t,r,o,a):h=a.map(function(p){return KZ(e,t,r,o,p,u)}),e.seen.pop(),gXt(h,l,c)}function pXt(e,t){if(p_(t))return e.stylize("undefined","undefined");if(G9(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}if(gLe(t))return e.stylize(""+t,"number");if(JZ(t))return e.stylize(""+t,"boolean");if(V9(t))return e.stylize("null","null")}function XZ(e){return"["+Error.prototype.toString.call(e)+"]"}function vXt(e,t,r,i,n){for(var a=[],o=0,s=t.length;o-1&&(a?s=s.split(` `).map(function(u){return" "+u}).join(` `).slice(2):s=` `+s.split(` `).map(function(u){return" "+u}).join(` -`))):s=e.stylize("[Circular]","special")),p_(o)){if(a&&n.match(/^\d+$/))return s;o=JSON.stringify(""+n),o.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.slice(1,-1),o=e.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=e.stylize(o,"string"))}return o+": "+s}function nXt(e,t,r){var i=0,n=e.reduce(function(a,o){return i++,o.indexOf(` +`))):s=e.stylize("[Circular]","special")),p_(o)){if(a&&n.match(/^\d+$/))return s;o=JSON.stringify(""+n),o.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.slice(1,-1),o=e.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=e.stylize(o,"string"))}return o+": "+s}function gXt(e,t,r){var i=0,n=e.reduce(function(a,o){return i++,o.indexOf(` `)>=0&&i++,a+o.replace(/\u001b\[\d\d?m/g,"").length+1},0);return n>60?r[0]+(t===""?"":t+` `)+" "+e.join(`, - `)+" "+r[1]:r[0]+t+" "+e.join(", ")+" "+r[1]}so.types=aZ();function sLe(e){return Array.isArray(e)}so.isArray=sLe;function HZ(e){return typeof e=="boolean"}so.isBoolean=HZ;function z9(e){return e===null}so.isNull=z9;function aXt(e){return e==null}so.isNullOrUndefined=aXt;function lLe(e){return typeof e=="number"}so.isNumber=lLe;function B9(e){return typeof e=="string"}so.isString=B9;function oXt(e){return typeof e=="symbol"}so.isSymbol=oXt;function p_(e){return e===void 0}so.isUndefined=p_;function RS(e){return u4(e)&&jZ(e)==="[object RegExp]"}so.isRegExp=RS;so.types.isRegExp=RS;function u4(e){return typeof e=="object"&&e!==null}so.isObject=u4;function R9(e){return u4(e)&&jZ(e)==="[object Date]"}so.isDate=R9;so.types.isDate=R9;function zS(e){return u4(e)&&(jZ(e)==="[object Error]"||e instanceof Error)}so.isError=zS;so.types.isNativeError=zS;function P9(e){return typeof e=="function"}so.isFunction=P9;function sXt(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||typeof e=="undefined"}so.isPrimitive=sXt;so.isBuffer=oZ();function jZ(e){return Object.prototype.toString.call(e)}function VZ(e){return e<10?"0"+e.toString(10):e.toString(10)}var lXt=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function uXt(){var e=new Date,t=[VZ(e.getHours()),VZ(e.getMinutes()),VZ(e.getSeconds())].join(":");return[e.getDate(),lXt[e.getMonth()],t].join(" ")}so.log=function(){console.log("%s - %s",uXt(),so.format.apply(so,arguments))};so.inherits=sm();so._extend=function(e,t){if(!t||!u4(t))return e;for(var r=Object.keys(t),i=r.length;i--;)e[r[i]]=t[r[i]];return e};function uLe(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var d_=typeof Symbol!="undefined"?Symbol("util.promisify.custom"):void 0;so.promisify=function(t){if(typeof t!="function")throw new TypeError('The "original" argument must be of type Function');if(d_&&t[d_]){var r=t[d_];if(typeof r!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(r,d_,{value:r,enumerable:!1,writable:!1,configurable:!0}),r}function r(){for(var i,n,a=new Promise(function(l,u){i=l,n=u}),o=[],s=0;s{"use strict";function g2(e){"@babel/helpers - typeof";return g2=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},g2(e)}function cLe(e,t){for(var r=0;r2?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:r===2?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}else return"of ".concat(t," ").concat(String(e))}function _Xt(e,t,r){return e.substr(!r||r<0?0:+r,t.length)===t}function wXt(e,t,r){return(r===void 0||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function TXt(e,t,r){return typeof r!="number"&&(r=0),r+t.length>e.length?!1:e.indexOf(t,r)!==-1}BS("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError);BS("ERR_INVALID_ARG_TYPE",function(e,t,r){f4===void 0&&(f4=O9()),f4(typeof e=="string","'name' must be a string");var i;typeof t=="string"&&_Xt(t,"not ")?(i="must not be",t=t.replace(/^not /,"")):i="must be";var n;if(wXt(e," argument"))n="The ".concat(e," ").concat(i," ").concat(fLe(t,"type"));else{var a=TXt(e,".")?"property":"argument";n='The "'.concat(e,'" ').concat(a," ").concat(i," ").concat(fLe(t,"type"))}return n+=". Received type ".concat(g2(r)),n},TypeError);BS("ERR_INVALID_ARG_VALUE",function(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";$Z===void 0&&($Z=c4());var i=$Z.inspect(t);return i.length>128&&(i="".concat(i.slice(0,128),"...")),"The argument '".concat(e,"' ").concat(r,". Received ").concat(i)},TypeError,RangeError);BS("ERR_INVALID_RETURN_VALUE",function(e,t,r){var i;return r&&r.constructor&&r.constructor.name?i="instance of ".concat(r.constructor.name):i="type ".concat(g2(r)),"Expected ".concat(e,' to be returned from the "').concat(t,'"')+" function but got ".concat(i,".")},TypeError);BS("ERR_MISSING_ARGS",function(){for(var e=arguments.length,t=new Array(e),r=0;r0,"At least one arg needs to be specified");var i="The ",n=t.length;switch(t=t.map(function(a){return'"'.concat(a,'"')}),n){case 1:i+="".concat(t[0]," argument");break;case 2:i+="".concat(t[0]," and ").concat(t[1]," arguments");break;default:i+=t.slice(0,n-1).join(", "),i+=", and ".concat(t[n-1]," arguments");break}return"".concat(i," must be specified")},TypeError);dLe.exports.codes=hLe});var TLe=W((J$r,wLe)=>{"use strict";function pLe(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,i)}return r}function vLe(e){for(var t=1;te.length)&&(r=e.length),e.substring(r-t.length,r)===t}function IXt(e,t){if(t=Math.floor(t),e.length==0||t==0)return"";var r=e.length*t;for(t=Math.floor(Math.log(t)/Math.log(2));t;)e+=e,t--;return e+=e.substring(0,r-e.length),e}var fv="",qS="",OS="",sf="",v_={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:"},RXt=10;function yLe(e){var t=Object.keys(e),r=Object.create(Object.getPrototypeOf(e));return t.forEach(function(i){r[i]=e[i]}),Object.defineProperty(r,"message",{value:e.message}),r}function NS(e){return KZ(e,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function zXt(e,t,r){var i="",n="",a=0,o="",s=!1,l=NS(e),u=l.split(` -`),c=NS(t).split(` -`),f=0,h="";if(r==="strictEqual"&&Yh(e)==="object"&&Yh(t)==="object"&&e!==null&&t!==null&&(r="strictEqualObject"),u.length===1&&c.length===1&&u[0]!==c[0]){var p=u[0].length+c[0].length;if(p<=RXt){if((Yh(e)!=="object"||e===null)&&(Yh(t)!=="object"||t===null)&&(e!==0||t!==0))return"".concat(v_[r],` + `)+" "+r[1]:r[0]+t+" "+e.join(", ")+" "+r[1]}uo.types=dZ();function vLe(e){return Array.isArray(e)}uo.isArray=vLe;function JZ(e){return typeof e=="boolean"}uo.isBoolean=JZ;function V9(e){return e===null}uo.isNull=V9;function mXt(e){return e==null}uo.isNullOrUndefined=mXt;function gLe(e){return typeof e=="number"}uo.isNumber=gLe;function G9(e){return typeof e=="string"}uo.isString=G9;function yXt(e){return typeof e=="symbol"}uo.isSymbol=yXt;function p_(e){return e===void 0}uo.isUndefined=p_;function BS(e){return c4(e)&&QZ(e)==="[object RegExp]"}uo.isRegExp=BS;uo.types.isRegExp=BS;function c4(e){return typeof e=="object"&&e!==null}uo.isObject=c4;function U9(e){return c4(e)&&QZ(e)==="[object Date]"}uo.isDate=U9;uo.types.isDate=U9;function qS(e){return c4(e)&&(QZ(e)==="[object Error]"||e instanceof Error)}uo.isError=qS;uo.types.isNativeError=qS;function O9(e){return typeof e=="function"}uo.isFunction=O9;function xXt(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||typeof e=="undefined"}uo.isPrimitive=xXt;uo.isBuffer=pZ();function QZ(e){return Object.prototype.toString.call(e)}function ZZ(e){return e<10?"0"+e.toString(10):e.toString(10)}var bXt=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function _Xt(){var e=new Date,t=[ZZ(e.getHours()),ZZ(e.getMinutes()),ZZ(e.getSeconds())].join(":");return[e.getDate(),bXt[e.getMonth()],t].join(" ")}uo.log=function(){console.log("%s - %s",_Xt(),uo.format.apply(uo,arguments))};uo.inherits=fm();uo._extend=function(e,t){if(!t||!c4(t))return e;for(var r=Object.keys(t),i=r.length;i--;)e[r[i]]=t[r[i]];return e};function mLe(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var d_=typeof Symbol!="undefined"?Symbol("util.promisify.custom"):void 0;uo.promisify=function(t){if(typeof t!="function")throw new TypeError('The "original" argument must be of type Function');if(d_&&t[d_]){var r=t[d_];if(typeof r!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(r,d_,{value:r,enumerable:!1,writable:!1,configurable:!0}),r}function r(){for(var i,n,a=new Promise(function(l,u){i=l,n=u}),o=[],s=0;s{"use strict";function x2(e){"@babel/helpers - typeof";return x2=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},x2(e)}function yLe(e,t){for(var r=0;r2?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:r===2?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}else return"of ".concat(t," ").concat(String(e))}function PXt(e,t,r){return e.substr(!r||r<0?0:+r,t.length)===t}function IXt(e,t,r){return(r===void 0||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function RXt(e,t,r){return typeof r!="number"&&(r=0),r+t.length>e.length?!1:e.indexOf(t,r)!==-1}OS("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError);OS("ERR_INVALID_ARG_TYPE",function(e,t,r){h4===void 0&&(h4=j9()),h4(typeof e=="string","'name' must be a string");var i;typeof t=="string"&&PXt(t,"not ")?(i="must not be",t=t.replace(/^not /,"")):i="must be";var n;if(IXt(e," argument"))n="The ".concat(e," ").concat(i," ").concat(xLe(t,"type"));else{var a=RXt(e,".")?"property":"argument";n='The "'.concat(e,'" ').concat(a," ").concat(i," ").concat(xLe(t,"type"))}return n+=". Received type ".concat(x2(r)),n},TypeError);OS("ERR_INVALID_ARG_VALUE",function(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";eK===void 0&&(eK=f4());var i=eK.inspect(t);return i.length>128&&(i="".concat(i.slice(0,128),"...")),"The argument '".concat(e,"' ").concat(r,". Received ").concat(i)},TypeError,RangeError);OS("ERR_INVALID_RETURN_VALUE",function(e,t,r){var i;return r&&r.constructor&&r.constructor.name?i="instance of ".concat(r.constructor.name):i="type ".concat(x2(r)),"Expected ".concat(e,' to be returned from the "').concat(t,'"')+" function but got ".concat(i,".")},TypeError);OS("ERR_MISSING_ARGS",function(){for(var e=arguments.length,t=new Array(e),r=0;r0,"At least one arg needs to be specified");var i="The ",n=t.length;switch(t=t.map(function(a){return'"'.concat(a,'"')}),n){case 1:i+="".concat(t[0]," argument");break;case 2:i+="".concat(t[0]," and ").concat(t[1]," arguments");break;default:i+=t.slice(0,n-1).join(", "),i+=", and ".concat(t[n-1]," arguments");break}return"".concat(i," must be specified")},TypeError);_Le.exports.codes=bLe});var FLe=W((fWr,DLe)=>{"use strict";function wLe(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,i)}return r}function TLe(e){for(var t=1;te.length)&&(r=e.length),e.substring(r-t.length,r)===t}function $Xt(e,t){if(t=Math.floor(t),e.length==0||t==0)return"";var r=e.length*t;for(t=Math.floor(Math.log(t)/Math.log(2));t;)e+=e,t--;return e+=e.substring(0,r-e.length),e}var vv="",NS="",US="",lf="",v_={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:"},WXt=10;function SLe(e){var t=Object.keys(e),r=Object.create(Object.getPrototypeOf(e));return t.forEach(function(i){r[i]=e[i]}),Object.defineProperty(r,"message",{value:e.message}),r}function VS(e){return aK(e,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function YXt(e,t,r){var i="",n="",a=0,o="",s=!1,l=VS(e),u=l.split(` +`),c=VS(t).split(` +`),f=0,h="";if(r==="strictEqual"&&Kh(e)==="object"&&Kh(t)==="object"&&e!==null&&t!==null&&(r="strictEqualObject"),u.length===1&&c.length===1&&u[0]!==c[0]){var p=u[0].length+c[0].length;if(p<=WXt){if((Kh(e)!=="object"||e===null)&&(Kh(t)!=="object"||t===null)&&(e!==0||t!==0))return"".concat(v_[r],` `)+"".concat(u[0]," !== ").concat(c[0],` `)}else if(r!=="strictEqualObject"){var d=process.stderr&&process.stderr.isTTY?process.stderr.columns:80;if(p2&&(h=` - `.concat(IXt(" ",f),"^"),f=0)}}}for(var v=u[u.length-1],m=c[c.length-1];v===m&&(f++<2?o=` + `.concat($Xt(" ",f),"^"),f=0)}}}for(var v=u[u.length-1],m=c[c.length-1];v===m&&(f++<2?o=` `.concat(v).concat(o):i=v,u.pop(),c.pop(),!(u.length===0||c.length===0));)v=u[u.length-1],m=c[c.length-1];var g=Math.max(u.length,c.length);if(g===0){var w=l.split(` -`);if(w.length>30)for(w[26]="".concat(fv,"...").concat(sf);w.length>27;)w.pop();return"".concat(v_.notIdentical,` +`);if(w.length>30)for(w[26]="".concat(vv,"...").concat(lf);w.length>27;)w.pop();return"".concat(v_.notIdentical,` `).concat(w.join(` `),` `)}f>3&&(o=` -`.concat(fv,"...").concat(sf).concat(o),s=!0),i!==""&&(o=` +`.concat(vv,"...").concat(lf).concat(o),s=!0),i!==""&&(o=` `.concat(i).concat(o),i="");var _=0,b=v_[r]+` -`.concat(qS,"+ actual").concat(sf," ").concat(OS,"- expected").concat(sf),S=" ".concat(fv,"...").concat(sf," Lines skipped");for(f=0;f1&&f>2&&(x>4?(n+=` -`.concat(fv,"...").concat(sf),s=!0):x>3&&(n+=` +`.concat(NS,"+ actual").concat(lf," ").concat(US,"- expected").concat(lf),S=" ".concat(vv,"...").concat(lf," Lines skipped");for(f=0;f1&&f>2&&(x>4?(n+=` +`.concat(vv,"...").concat(lf),s=!0):x>3&&(n+=` `.concat(c[f-2]),_++),n+=` `.concat(c[f-1]),_++),a=f,i+=` -`.concat(OS,"-").concat(sf," ").concat(c[f]),_++;else if(c.length1&&f>2&&(x>4?(n+=` -`.concat(fv,"...").concat(sf),s=!0):x>3&&(n+=` +`.concat(US,"-").concat(lf," ").concat(c[f]),_++;else if(c.length1&&f>2&&(x>4?(n+=` +`.concat(vv,"...").concat(lf),s=!0):x>3&&(n+=` `.concat(u[f-2]),_++),n+=` `.concat(u[f-1]),_++),a=f,n+=` -`.concat(qS,"+").concat(sf," ").concat(u[f]),_++;else{var T=c[f],A=u[f],y=A!==T&&(!mLe(A,",")||A.slice(0,-1)!==T);y&&mLe(T,",")&&T.slice(0,-1)===A&&(y=!1,A+=","),y?(x>1&&f>2&&(x>4?(n+=` -`.concat(fv,"...").concat(sf),s=!0):x>3&&(n+=` +`.concat(NS,"+").concat(lf," ").concat(u[f]),_++;else{var A=c[f],T=u[f],y=T!==A&&(!MLe(T,",")||T.slice(0,-1)!==A);y&&MLe(A,",")&&A.slice(0,-1)===T&&(y=!1,T+=","),y?(x>1&&f>2&&(x>4?(n+=` +`.concat(vv,"...").concat(lf),s=!0):x>3&&(n+=` `.concat(u[f-2]),_++),n+=` `.concat(u[f-1]),_++),a=f,n+=` -`.concat(qS,"+").concat(sf," ").concat(A),i+=` -`.concat(OS,"-").concat(sf," ").concat(T),_+=2):(n+=i,i="",(x===1||f===0)&&(n+=` - `.concat(A),_++))}if(_>20&&f20&&f30)for(p[26]="".concat(fv,"...").concat(sf);p.length>27;)p.pop();p.length===1?a=r.call(this,"".concat(h," ").concat(p[0])):a=r.call(this,"".concat(h,` +`).concat(vv,"...").concat(lf).concat(i,` +`)+"".concat(vv,"...").concat(lf)}return"".concat(b).concat(s?S:"",` +`).concat(n).concat(i).concat(o).concat(h)}var XXt=(function(e,t){NXt(i,e);var r=UXt(i);function i(n){var a;if(BXt(this,i),Kh(n)!=="object"||n===null)throw new jXt("options","Object",n);var o=n.message,s=n.operator,l=n.stackStartFn,u=n.actual,c=n.expected,f=Error.stackTraceLimit;if(Error.stackTraceLimit=0,o!=null)a=r.call(this,String(o));else if(process.stderr&&process.stderr.isTTY&&(process.stderr&&process.stderr.getColorDepth&&process.stderr.getColorDepth()!==1?(vv="\x1B[34m",NS="\x1B[32m",lf="\x1B[39m",US="\x1B[31m"):(vv="",NS="",lf="",US="")),Kh(u)==="object"&&u!==null&&Kh(c)==="object"&&c!==null&&"stack"in u&&u instanceof Error&&"stack"in c&&c instanceof Error&&(u=SLe(u),c=SLe(c)),s==="deepStrictEqual"||s==="strictEqual")a=r.call(this,YXt(u,c,s));else if(s==="notDeepStrictEqual"||s==="notStrictEqual"){var h=v_[s],p=VS(u).split(` +`);if(s==="notStrictEqual"&&Kh(u)==="object"&&u!==null&&(h=v_.notStrictEqualObject),p.length>30)for(p[26]="".concat(vv,"...").concat(lf);p.length>27;)p.pop();p.length===1?a=r.call(this,"".concat(h," ").concat(p[0])):a=r.call(this,"".concat(h,` `).concat(p.join(` `),` -`))}else{var d=NS(u),v="",m=v_[s];s==="notDeepEqual"||s==="notEqual"?(d="".concat(v_[s],` +`))}else{var d=VS(u),v="",m=v_[s];s==="notDeepEqual"||s==="notEqual"?(d="".concat(v_[s],` -`).concat(d),d.length>1024&&(d="".concat(d.slice(0,1021),"..."))):(v="".concat(NS(c)),d.length>512&&(d="".concat(d.slice(0,509),"...")),v.length>512&&(v="".concat(v.slice(0,509),"...")),s==="deepEqual"||s==="equal"?d="".concat(m,` +`).concat(d),d.length>1024&&(d="".concat(d.slice(0,1021),"..."))):(v="".concat(VS(c)),d.length>512&&(d="".concat(d.slice(0,509),"...")),v.length>512&&(v="".concat(v.slice(0,509),"...")),s==="deepEqual"||s==="equal"?d="".concat(m,` `).concat(d,` should equal -`):v=" ".concat(s," ").concat(v)),a=r.call(this,"".concat(d).concat(v))}return Error.stackTraceLimit=f,a.generatedMessage=!o,Object.defineProperty(XZ(a),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),a.code="ERR_ASSERTION",a.actual=u,a.expected=c,a.operator=s,Error.captureStackTrace&&Error.captureStackTrace(XZ(a),l),a.stack,a.name="AssertionError",bLe(a)}return SXt(i,[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:t,value:function(a,o){return KZ(this,vLe(vLe({},o),{},{customInspect:!1,depth:0}))}}]),i})(ZZ(Error),KZ.custom);wLe.exports=BXt});var JZ=W((Q$r,MLe)=>{"use strict";var ALe=Object.prototype.toString;MLe.exports=function(t){var r=ALe.call(t),i=r==="[object Arguments]";return i||(i=r!=="[object Array]"&&t!==null&&typeof t=="object"&&typeof t.length=="number"&&t.length>=0&&ALe.call(t.callee)==="[object Function]"),i}});var ILe=W((eWr,PLe)=>{"use strict";var LLe;Object.keys||(GS=Object.prototype.hasOwnProperty,QZ=Object.prototype.toString,SLe=JZ(),eK=Object.prototype.propertyIsEnumerable,ELe=!eK.call({toString:null},"toString"),kLe=eK.call(function(){},"prototype"),HS=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],U9=function(e){var t=e.constructor;return t&&t.prototype===e},CLe={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},DLe=(function(){if(typeof window=="undefined")return!1;for(var e in window)try{if(!CLe["$"+e]&&GS.call(window,e)&&window[e]!==null&&typeof window[e]=="object")try{U9(window[e])}catch(t){return!0}}catch(t){return!0}return!1})(),FLe=function(e){if(typeof window=="undefined"||!DLe)return U9(e);try{return U9(e)}catch(t){return!1}},LLe=function(t){var r=t!==null&&typeof t=="object",i=QZ.call(t)==="[object Function]",n=SLe(t),a=r&&QZ.call(t)==="[object String]",o=[];if(!r&&!i&&!n)throw new TypeError("Object.keys called on a non-object");var s=kLe&&i;if(a&&t.length>0&&!GS.call(t,0))for(var l=0;l0)for(var u=0;u{"use strict";var qXt=Array.prototype.slice,OXt=JZ(),RLe=Object.keys,V9=RLe?function(t){return RLe(t)}:ILe(),zLe=Object.keys;V9.shim=function(){if(Object.keys){var t=(function(){var r=Object.keys(arguments);return r&&r.length===arguments.length})(1,2);t||(Object.keys=function(i){return OXt(i)?zLe(qXt.call(i)):zLe(i)})}else Object.keys=V9;return Object.keys||V9};BLe.exports=V9});var VLe=W((rWr,ULe)=>{"use strict";var NXt=tK(),OLe=qP()(),NLe=n_(),G9=OP(),UXt=NLe("Array.prototype.push"),qLe=NLe("Object.prototype.propertyIsEnumerable"),VXt=OLe?G9.getOwnPropertySymbols:null;ULe.exports=function(t,r){if(t==null)throw new TypeError("target must be an object");var i=G9(t);if(arguments.length===1)return i;for(var n=1;n{"use strict";var rK=VLe(),GXt=function(){if(!Object.assign)return!1;for(var e="abcdefghijklmnopqrst",t=e.split(""),r={},i=0;i{"use strict";var jLe=function(e){return e!==e};$Le.exports=function(t,r){return t===0&&r===0?1/t===1/r:!!(t===r||jLe(t)&&jLe(r))}});var H9=W((aWr,WLe)=>{"use strict";var jXt=iK();WLe.exports=function(){return typeof Object.is=="function"?Object.is:jXt}});var KLe=W((oWr,ZLe)=>{"use strict";var YLe=YP(),XLe=TS(),$Xt=XLe(YLe("String.prototype.indexOf"));ZLe.exports=function(t,r){var i=YLe(t,!!r);return typeof i=="function"&&$Xt(t,".prototype.")>-1?XLe(i):i}});var jS=W((sWr,tPe)=>{"use strict";var WXt=tK(),YXt=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",XXt=Object.prototype.toString,ZXt=Array.prototype.concat,JLe=ZX(),KXt=function(e){return typeof e=="function"&&XXt.call(e)==="[object Function]"},QLe=JX()(),JXt=function(e,t,r,i){if(t in e){if(i===!0){if(e[t]===r)return}else if(!KXt(i)||!i())return}QLe?JLe(e,t,r,!0):JLe(e,t,r)},ePe=function(e,t){var r=arguments.length>2?arguments[2]:{},i=WXt(t);YXt&&(i=ZXt.call(i,Object.getOwnPropertySymbols(t)));for(var n=0;n{"use strict";var QXt=H9(),eZt=jS();rPe.exports=function(){var t=QXt();return eZt(Object,{is:t},{is:function(){return Object.is!==t}}),t}});var sPe=W((uWr,oPe)=>{"use strict";var tZt=jS(),rZt=TS(),iZt=iK(),nPe=H9(),nZt=iPe(),aPe=rZt(nPe(),Object);tZt(aPe,{getPolyfill:nPe,implementation:iZt,shim:nZt});oPe.exports=aPe});var nK=W((cWr,lPe)=>{"use strict";lPe.exports=function(t){return t!==t}});var aK=W((fWr,uPe)=>{"use strict";var aZt=nK();uPe.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:aZt}});var fPe=W((hWr,cPe)=>{"use strict";var oZt=jS(),sZt=aK();cPe.exports=function(){var t=sZt();return oZt(Number,{isNaN:t},{isNaN:function(){return Number.isNaN!==t}}),t}});var vPe=W((dWr,pPe)=>{"use strict";var lZt=TS(),uZt=jS(),cZt=nK(),hPe=aK(),fZt=fPe(),dPe=lZt(hPe(),Number);uZt(dPe,{getPolyfill:hPe,implementation:cZt,shim:fZt});pPe.exports=dPe});var RPe=W((pWr,IPe)=>{"use strict";function gPe(e,t){return vZt(e)||pZt(e,t)||dZt(e,t)||hZt()}function hZt(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function dZt(e,t){if(e){if(typeof e=="string")return mPe(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return mPe(e,t)}}function mPe(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,i=new Array(t);r10)return!0;for(var t=0;t57)return!0}return e.length===10&&e>=Math.pow(2,32)}function W9(e){return Object.keys(e).filter(AZt).concat(X9(e).filter(Object.prototype.propertyIsEnumerable.bind(e)))}function DPe(e,t){if(e===t)return 0;for(var r=e.length,i=t.length,n=0,a=Math.min(r,i);n{"use strict";function hv(e){"@babel/helpers - typeof";return hv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},hv(e)}function zPe(e,t){for(var r=0;r1?r-1:0),n=1;n1?r-1:0),n=1;n1?r-1:0),n=1;n1?r-1:0),n=1;n{"use strict";var LLe=Object.prototype.toString;PLe.exports=function(t){var r=LLe.call(t),i=r==="[object Arguments]";return i||(i=r!=="[object Array]"&&t!==null&&typeof t=="object"&&typeof t.length=="number"&&t.length>=0&&LLe.call(t.callee)==="[object Function]"),i}});var VLe=W((dWr,ULe)=>{"use strict";var NLe;Object.keys||(jS=Object.prototype.hasOwnProperty,sK=Object.prototype.toString,ILe=oK(),lK=Object.prototype.propertyIsEnumerable,RLe=!lK.call({toString:null},"toString"),zLe=lK.call(function(){},"prototype"),$S=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],W9=function(e){var t=e.constructor;return t&&t.prototype===e},BLe={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},qLe=(function(){if(typeof window=="undefined")return!1;for(var e in window)try{if(!BLe["$"+e]&&jS.call(window,e)&&window[e]!==null&&typeof window[e]=="object")try{W9(window[e])}catch(t){return!0}}catch(t){return!0}return!1})(),OLe=function(e){if(typeof window=="undefined"||!qLe)return W9(e);try{return W9(e)}catch(t){return!1}},NLe=function(t){var r=t!==null&&typeof t=="object",i=sK.call(t)==="[object Function]",n=ILe(t),a=r&&sK.call(t)==="[object String]",o=[];if(!r&&!i&&!n)throw new TypeError("Object.keys called on a non-object");var s=zLe&&i;if(a&&t.length>0&&!jS.call(t,0))for(var l=0;l0)for(var u=0;u{"use strict";var ZXt=Array.prototype.slice,KXt=oK(),GLe=Object.keys,Y9=GLe?function(t){return GLe(t)}:VLe(),HLe=Object.keys;Y9.shim=function(){if(Object.keys){var t=(function(){var r=Object.keys(arguments);return r&&r.length===arguments.length})(1,2);t||(Object.keys=function(i){return KXt(i)?HLe(ZXt.call(i)):HLe(i)})}else Object.keys=Y9;return Object.keys||Y9};jLe.exports=Y9});var ZLe=W((vWr,XLe)=>{"use strict";var JXt=uK(),WLe=HP()(),YLe=n_(),X9=jP(),QXt=YLe("Array.prototype.push"),$Le=YLe("Object.prototype.propertyIsEnumerable"),eZt=WLe?X9.getOwnPropertySymbols:null;XLe.exports=function(t,r){if(t==null)throw new TypeError("target must be an object");var i=X9(t);if(arguments.length===1)return i;for(var n=1;n{"use strict";var cK=ZLe(),tZt=function(){if(!Object.assign)return!1;for(var e="abcdefghijklmnopqrst",t=e.split(""),r={},i=0;i{"use strict";var QLe=function(e){return e!==e};ePe.exports=function(t,r){return t===0&&r===0?1/t===1/r:!!(t===r||QLe(t)&&QLe(r))}});var Z9=W((yWr,tPe)=>{"use strict";var iZt=fK();tPe.exports=function(){return typeof Object.is=="function"?Object.is:iZt}});var aPe=W((xWr,nPe)=>{"use strict";var rPe=e9(),iPe=MS(),nZt=iPe(rPe("String.prototype.indexOf"));nPe.exports=function(t,r){var i=rPe(t,!!r);return typeof i=="function"&&nZt(t,".prototype.")>-1?iPe(i):i}});var WS=W((bWr,uPe)=>{"use strict";var aZt=uK(),oZt=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",sZt=Object.prototype.toString,lZt=Array.prototype.concat,oPe=nZ(),uZt=function(e){return typeof e=="function"&&sZt.call(e)==="[object Function]"},sPe=oZ()(),cZt=function(e,t,r,i){if(t in e){if(i===!0){if(e[t]===r)return}else if(!uZt(i)||!i())return}sPe?oPe(e,t,r,!0):oPe(e,t,r)},lPe=function(e,t){var r=arguments.length>2?arguments[2]:{},i=aZt(t);oZt&&(i=lZt.call(i,Object.getOwnPropertySymbols(t)));for(var n=0;n{"use strict";var fZt=Z9(),hZt=WS();cPe.exports=function(){var t=fZt();return hZt(Object,{is:t},{is:function(){return Object.is!==t}}),t}});var vPe=W((wWr,pPe)=>{"use strict";var dZt=WS(),pZt=MS(),vZt=fK(),hPe=Z9(),gZt=fPe(),dPe=pZt(hPe(),Object);dZt(dPe,{getPolyfill:hPe,implementation:vZt,shim:gZt});pPe.exports=dPe});var hK=W((TWr,gPe)=>{"use strict";gPe.exports=function(t){return t!==t}});var dK=W((AWr,mPe)=>{"use strict";var mZt=hK();mPe.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:mZt}});var xPe=W((MWr,yPe)=>{"use strict";var yZt=WS(),xZt=dK();yPe.exports=function(){var t=xZt();return yZt(Number,{isNaN:t},{isNaN:function(){return Number.isNaN!==t}}),t}});var TPe=W((SWr,wPe)=>{"use strict";var bZt=MS(),_Zt=WS(),wZt=hK(),bPe=dK(),TZt=xPe(),_Pe=bZt(bPe(),Number);_Zt(_Pe,{getPolyfill:bPe,implementation:wZt,shim:TZt});wPe.exports=_Pe});var GPe=W((EWr,VPe)=>{"use strict";function APe(e,t){return EZt(e)||SZt(e,t)||MZt(e,t)||AZt()}function AZt(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function MZt(e,t){if(e){if(typeof e=="string")return MPe(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return MPe(e,t)}}function MPe(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,i=new Array(t);r10)return!0;for(var t=0;t57)return!0}return e.length===10&&e>=Math.pow(2,32)}function Q9(e){return Object.keys(e).filter(zZt).concat(tI(e).filter(Object.prototype.propertyIsEnumerable.bind(e)))}function qPe(e,t){if(e===t)return 0;for(var r=e.length,i=t.length,n=0,a=Math.min(r,i);n{"use strict";function gv(e){"@babel/helpers - typeof";return gv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},gv(e)}function HPe(e,t){for(var r=0;r1?r-1:0),n=1;n1?r-1:0),n=1;n1?r-1:0),n=1;n1?r-1:0),n=1;n{var ZS=1e3,KS=ZS*60,JS=KS*60,QS=JS*24,ZZt=QS*365.25;e9e.exports=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0)return KZt(e);if(r==="number"&&isNaN(e)===!1)return t.long?QZt(e):JZt(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function KZt(e){if(e=String(e),!(e.length>100)){var t=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(t){var r=parseFloat(t[1]),i=(t[2]||"ms").toLowerCase();switch(i){case"years":case"year":case"yrs":case"yr":case"y":return r*ZZt;case"days":case"day":case"d":return r*QS;case"hours":case"hour":case"hrs":case"hr":case"h":return r*JS;case"minutes":case"minute":case"mins":case"min":case"m":return r*KS;case"seconds":case"second":case"secs":case"sec":case"s":return r*ZS;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function JZt(e){return e>=QS?Math.round(e/QS)+"d":e>=JS?Math.round(e/JS)+"h":e>=KS?Math.round(e/KS)+"m":e>=ZS?Math.round(e/ZS)+"s":e+"ms"}function QZt(e){return iI(e,QS,"day")||iI(e,JS,"hour")||iI(e,KS,"minute")||iI(e,ZS,"second")||e+" ms"}function iI(e,t,r){if(!(e{is=r9e.exports=hK.debug=hK.default=hK;is.coerce=nKt;is.disable=rKt;is.enable=tKt;is.enabled=iKt;is.humanize=t9e();is.names=[];is.skips=[];is.formatters={};var fK;function eKt(e){var t=0,r;for(r in e)t=(t<<5)-t+e.charCodeAt(r),t|=0;return is.colors[Math.abs(t)%is.colors.length]}function hK(e){function t(){if(t.enabled){var r=t,i=+new Date,n=i-(fK||i);r.diff=n,r.prev=fK,r.curr=i,fK=i;for(var a=new Array(arguments.length),o=0;o{lh=a9e.exports=i9e();lh.log=sKt;lh.formatArgs=oKt;lh.save=lKt;lh.load=n9e;lh.useColors=aKt;lh.storage=typeof chrome!="undefined"&&typeof chrome.storage!="undefined"?chrome.storage.local:uKt();lh.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"];function aKt(){return typeof window!="undefined"&&window.process&&window.process.type==="renderer"?!0:typeof document!="undefined"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window!="undefined"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}lh.formatters.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}};function oKt(e){var t=this.useColors;if(e[0]=(t?"%c":"")+this.namespace+(t?" %c":" ")+e[0]+(t?"%c ":" ")+"+"+lh.humanize(this.diff),!!t){var r="color: "+this.color;e.splice(1,0,r,"color: inherit");var i=0,n=0;e[0].replace(/%[a-zA-Z%]/g,function(a){a!=="%%"&&(i++,a==="%c"&&(n=i))}),e.splice(n,0,r)}}function sKt(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function lKt(e){try{e==null?lh.storage.removeItem("debug"):lh.storage.debug=e}catch(t){}}function n9e(){var e;try{e=lh.storage.debug}catch(t){}return!e&&typeof process!="undefined"&&"env"in process&&(e=process.env.DEBUG),e}lh.enable(n9e());function uKt(){try{return window.localStorage}catch(e){}}});var p9e=W((mWr,d9e)=>{var d4=O9(),b2=o9e()("stream-parser");d9e.exports=fKt;var l9e=-1,nI=0,cKt=1,u9e=2;function fKt(e){var t=e&&typeof e._transform=="function",r=e&&typeof e._write=="function";if(!t&&!r)throw new Error("must pass a Writable or Transform stream in");b2("extending Parser into stream"),e._bytes=hKt,e._skipBytes=dKt,t&&(e._passthrough=pKt),t?e._transform=gKt:e._write=vKt}function eE(e){b2("initializing parser stream"),e._parserBytesLeft=0,e._parserBuffers=[],e._parserBuffered=0,e._parserState=l9e,e._parserCallback=null,typeof e.push=="function"&&(e._parserOutput=e.push.bind(e)),e._parserInit=!0}function hKt(e,t){d4(!this._parserCallback,'there is already a "callback" set!'),d4(isFinite(e)&&e>0,'can only buffer a finite number of bytes > 0, got "'+e+'"'),this._parserInit||eE(this),b2("buffering %o bytes",e),this._parserBytesLeft=e,this._parserCallback=t,this._parserState=nI}function dKt(e,t){d4(!this._parserCallback,'there is already a "callback" set!'),d4(e>0,'can only skip > 0 bytes, got "'+e+'"'),this._parserInit||eE(this),b2("skipping %o bytes",e),this._parserBytesLeft=e,this._parserCallback=t,this._parserState=cKt}function pKt(e,t){d4(!this._parserCallback,'There is already a "callback" set!'),d4(e>0,'can only pass through > 0 bytes, got "'+e+'"'),this._parserInit||eE(this),b2("passing through %o bytes",e),this._parserBytesLeft=e,this._parserCallback=t,this._parserState=u9e}function vKt(e,t,r){this._parserInit||eE(this),b2("write(%o bytes)",e.length),typeof t=="function"&&(r=t),f9e(this,e,null,r)}function gKt(e,t,r){this._parserInit||eE(this),b2("transform(%o bytes)",e.length),typeof t!="function"&&(t=this._parserOutput),f9e(this,e,t,r)}function c9e(e,t,r,i){return e._parserBytesLeft<=0?i(new Error("got data but not currently parsing anything")):t.length<=e._parserBytesLeft?function(){return s9e(e,t,r,i)}:function(){var n=t.slice(0,e._parserBytesLeft);return s9e(e,n,r,function(a){if(a)return i(a);if(t.length>n.length)return function(){return c9e(e,t.slice(n.length),r,i)}})}}function s9e(e,t,r,i){if(e._parserBytesLeft-=t.length,b2("%o bytes left for stream piece",e._parserBytesLeft),e._parserState===nI?(e._parserBuffers.push(t),e._parserBuffered+=t.length):e._parserState===u9e&&r(t),e._parserBytesLeft===0){var n=e._parserCallback;if(n&&e._parserState===nI&&e._parserBuffers.length>1&&(t=Buffer.concat(e._parserBuffers,e._parserBuffered)),e._parserState!==nI&&(t=null),e._parserCallback=null,e._parserBuffered=0,e._parserState=l9e,e._parserBuffers.splice(0),n){var a=[];t&&a.push(t),r&&a.push(r);var o=n.length>a.length;o&&a.push(h9e(i));var s=n.apply(e,a);if(!o||i===s)return i}}else return i}var f9e=h9e(c9e);function h9e(e){return function(){for(var t=e.apply(this,arguments);typeof t=="function";)t=t();return t}}});var v9e=W(z0=>{"use strict";z0.readUInt16LE=function(e,t){return e[t]|e[t+1]<<8};z0.readUInt16BE=function(e,t){return e[t]<<8|e[t+1]};z0.readInt16LE=function(e,t){return z0.readUInt16LE(e,t)<<16>>16};z0.readInt16BE=function(e,t){return z0.readUInt16BE(e,t)<<16>>16};z0.readUInt32LE=function(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16)+e[t+3]*16777216};z0.readUInt32BE=function(e,t){return e[t]*16777216+(e[t+1]<<16|e[t+2]<<8|e[t+3])};z0.readInt32LE=function(e,t){return z0.readUInt32LE(e,t)|0};z0.readInt32BE=function(e,t){return z0.readUInt32BE(e,t)|0}});var Ao=W(B0=>{"use strict";var g9e=nLe().Transform,mKt=p9e(),_2=v9e();function tE(){g9e.call(this,{readableObjectMode:!0})}tE.prototype=Object.create(g9e.prototype);tE.prototype.constructor=tE;mKt(tE.prototype);B0.ParserStream=tE;B0.sliceEq=function(e,t,r){for(var i=t,n=0;n{"use strict";var p4=Ao().readUInt16BE,pK=Ao().readUInt32BE;function rE(e,t){if(e.length<4+t)return null;var r=pK(e,t);return e.length>4&15,i=e[4]&15,n=e[5]>>4&15,a=p4(e,6),o=8,s=0;sa.width||n.width===a.width&&n.height>a.height?n:a}),r=e.reduce(function(n,a){return n.height>a.height||n.height===a.height&&n.width>a.width?n:a}),i;return t.width>r.height||t.width===r.height&&t.height>r.width?i=t:i=r,i}oI.exports.readSizeFromMeta=function(e){var t={sizes:[],transforms:[],item_inf:{},item_loc:{}};if(wKt(e,t),!!t.sizes.length){var r=TKt(t.sizes),i=1;t.transforms.forEach(function(a){var o={1:6,2:5,3:8,4:7,5:4,6:3,7:2,8:1},s={1:4,2:3,3:2,4:1,5:6,6:5,7:8,8:7};if(a.type==="imir"&&(a.value===0?i=s[i]:(i=s[i],i=o[i],i=o[i])),a.type==="irot")for(var l=0;l{"use strict";function sI(e,t){var r=new Error(e);return r.code=t,r}function AKt(e){try{return decodeURIComponent(escape(e))}catch(t){return e}}function cm(e,t,r){this.input=e.subarray(t,r),this.start=t;var i=String.fromCharCode.apply(null,this.input.subarray(0,4));if(i!=="II*\0"&&i!=="MM\0*")throw sI("invalid TIFF signature","EBADDATA");this.big_endian=i[0]==="M"}cm.prototype.each=function(e){this.aborted=!1;var t=this.read_uint32(4);for(this.ifds_to_read=[{id:0,offset:t}];this.ifds_to_read.length>0&&!this.aborted;){var r=this.ifds_to_read.shift();r.offset&&this.scan_ifd(r.id,r.offset,e)}};cm.prototype.read_uint16=function(e){var t=this.input;if(e+2>t.length)throw sI("unexpected EOF","EBADDATA");return this.big_endian?t[e]*256+t[e+1]:t[e]+t[e+1]*256};cm.prototype.read_uint32=function(e){var t=this.input;if(e+4>t.length)throw sI("unexpected EOF","EBADDATA");return this.big_endian?t[e]*16777216+t[e+1]*65536+t[e+2]*256+t[e+3]:t[e]+t[e+1]*256+t[e+2]*65536+t[e+3]*16777216};cm.prototype.is_subifd_link=function(e,t){return e===0&&t===34665||e===0&&t===34853||e===34665&&t===40965};cm.prototype.exif_format_length=function(e){switch(e){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}};cm.prototype.exif_format_read=function(e,t){var r;switch(e){case 1:case 2:return r=this.input[t],r;case 6:return r=this.input[t],r|(r&128)*33554430;case 3:return r=this.read_uint16(t),r;case 8:return r=this.read_uint16(t),r|(r&32768)*131070;case 4:return r=this.read_uint32(t),r;case 9:return r=this.read_uint32(t),r|0;case 5:case 10:case 11:case 12:return null;case 7:return null;default:return null}};cm.prototype.scan_ifd=function(e,t,r){var i=this.read_uint16(t);t+=2;for(var n=0;nthis.input.length)throw sI("unexpected EOF","EBADDATA");for(var h=[],p=c,d=0;d0&&(this.ifds_to_read.push({id:a,offset:h[0]}),f=!0);var m={is_big_endian:this.big_endian,ifd:e,tag:a,format:o,count:s,entry_offset:t+this.start,data_length:u,data_offset:c+this.start,value:h,is_subifd_link:f};if(r(m)===!1){this.aborted=!0;return}t+=12}e===0&&this.ifds_to_read.push({id:1,offset:this.read_uint32(t)})};vK.exports.ExifParser=cm;vK.exports.get_orientation=function(e){var t=0;try{return new cm(e,0,e.length).each(function(r){if(r.ifd===0&&r.tag===274&&Array.isArray(r.value))return t=r.value[0],!1}),t}catch(r){return-1}}});var x9e=W((wWr,y9e)=>{"use strict";var MKt=Ao().str2arr,SKt=Ao().sliceEq,EKt=Ao().readUInt32BE,uI=m9e(),kKt=lI(),CKt=MKt("ftyp");y9e.exports=function(e){if(SKt(e,4,CKt)){var t=uI.unbox(e,0);if(t){var r=uI.getMimeType(t.data);if(r){for(var i,n=t.end;;){var a=uI.unbox(e,n);if(!a)break;if(n=a.end,a.boxtype==="mdat")return;if(a.boxtype==="meta"){i=a.data;break}}if(i){var o=uI.readSizeFromMeta(i);if(o){var s={width:o.width,height:o.height,type:r.type,mime:r.mime,wUnits:"px",hUnits:"px"};if(o.variants.length>1&&(s.variants=o.variants),o.orientation&&(s.orientation=o.orientation),o.exif_location&&o.exif_location.offset+o.exif_location.length<=e.length){var l=EKt(e,o.exif_location.offset),u=e.slice(o.exif_location.offset+l+4,o.exif_location.offset+o.exif_location.length),c=kKt.get_orientation(u);c>0&&(s.orientation=c)}return s}}}}}}});var T9e=W((TWr,w9e)=>{"use strict";var DKt=Ao().str2arr,FKt=Ao().sliceEq,b9e=Ao().readInt16LE,_9e=Ao().readInt32LE,LKt=Ao().readUInt32LE,PKt=DKt("BM");w9e.exports=function(e){if(!(e.length<26)&&FKt(e,0,PKt)){var t,r,i=LKt(e,14);if(i===12)r=b9e(e,18),t=b9e(e,20);else if(i>12)r=_9e(e,18),t=_9e(e,22);else return;return{width:r,height:Math.abs(t),type:"bmp",mime:"image/bmp",wUnits:"px",hUnits:"px"}}}});var k9e=W((AWr,E9e)=>{"use strict";var S9e=Ao().str2arr,A9e=Ao().sliceEq,M9e=Ao().readUInt16LE,IKt=S9e("GIF87a"),RKt=S9e("GIF89a");E9e.exports=function(e){if(!(e.length<10)&&!(!A9e(e,0,IKt)&&!A9e(e,0,RKt)))return{width:M9e(e,6),height:M9e(e,8),type:"gif",mime:"image/gif",wUnits:"px",hUnits:"px"}}});var D9e=W((MWr,C9e)=>{"use strict";var gK=Ao().readUInt16LE,zKt=0,BKt=1,mK=16;C9e.exports=function(e){var t=gK(e,0),r=gK(e,2),i=gK(e,4);if(!(t!==zKt||r!==BKt||!i)&&!(e.length<6+i*mK)){for(var n=[],a={width:0,height:0},o=0;oa.width||l>a.height)&&(a=u)}return{width:a.width,height:a.height,variants:n,type:"ico",mime:"image/x-icon",wUnits:"px",hUnits:"px"}}}});var L9e=W((SWr,F9e)=>{"use strict";var yK=Ao().readUInt16BE,qKt=Ao().str2arr,OKt=Ao().sliceEq,NKt=lI(),UKt=qKt("Exif\0\0");F9e.exports=function(e){if(!(e.length<2)&&!(e[0]!==255||e[1]!==216||e[2]!==255))for(var t=2;;){for(;;){if(e.length-t<2)return;if(e[t++]===255)break}for(var r=e[t++],i;r===255;)r=e[t++];if(r>=208&&r<=217||r===1)i=0;else if(r>=192&&r<=254){if(e.length-t<2)return;i=yK(e,t)-2,t+=2}else return;if(r===217||r===218)return;var n;if(r===225&&i>=10&&OKt(e,t,UKt)&&(n=NKt.get_orientation(e.slice(t+6,t+i))),i>=5&&r>=192&&r<=207&&r!==196&&r!==200&&r!==204){if(e.length-t0&&(a.orientation=n),a}t+=i}}});var B9e=W((EWr,z9e)=>{"use strict";var R9e=Ao().str2arr,P9e=Ao().sliceEq,I9e=Ao().readUInt32BE,VKt=R9e(`\x89PNG\r +`).concat(nI(e),` +`));var s=new w2({actual:e,expected:t,message:r,operator:n,stackStartFn:i});throw s.generatedMessage=o,s}}Xs.match=function e(t,r,i){a9e(t,r,i,e,"match")};Xs.doesNotMatch=function e(t,r,i){a9e(t,r,i,e,"doesNotMatch")};function o9e(){for(var e=arguments.length,t=new Array(e),r=0;r{var JS=1e3,QS=JS*60,eE=QS*60,tE=eE*24,lKt=tE*365.25;l9e.exports=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0)return uKt(e);if(r==="number"&&isNaN(e)===!1)return t.long?fKt(e):cKt(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function uKt(e){if(e=String(e),!(e.length>100)){var t=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(t){var r=parseFloat(t[1]),i=(t[2]||"ms").toLowerCase();switch(i){case"years":case"year":case"yrs":case"yr":case"y":return r*lKt;case"days":case"day":case"d":return r*tE;case"hours":case"hour":case"hrs":case"hr":case"h":return r*eE;case"minutes":case"minute":case"mins":case"min":case"m":return r*QS;case"seconds":case"second":case"secs":case"sec":case"s":return r*JS;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function cKt(e){return e>=tE?Math.round(e/tE)+"d":e>=eE?Math.round(e/eE)+"h":e>=QS?Math.round(e/QS)+"m":e>=JS?Math.round(e/JS)+"s":e+"ms"}function fKt(e){return uI(e,tE,"day")||uI(e,eE,"hour")||uI(e,QS,"minute")||uI(e,JS,"second")||e+" ms"}function uI(e,t,r){if(!(e{is=c9e.exports=bK.debug=bK.default=bK;is.coerce=gKt;is.disable=pKt;is.enable=dKt;is.enabled=vKt;is.humanize=u9e();is.names=[];is.skips=[];is.formatters={};var xK;function hKt(e){var t=0,r;for(r in e)t=(t<<5)-t+e.charCodeAt(r),t|=0;return is.colors[Math.abs(t)%is.colors.length]}function bK(e){function t(){if(t.enabled){var r=t,i=+new Date,n=i-(xK||i);r.diff=n,r.prev=xK,r.curr=i,xK=i;for(var a=new Array(arguments.length),o=0;o{fh=d9e.exports=f9e();fh.log=xKt;fh.formatArgs=yKt;fh.save=bKt;fh.load=h9e;fh.useColors=mKt;fh.storage=typeof chrome!="undefined"&&typeof chrome.storage!="undefined"?chrome.storage.local:_Kt();fh.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"];function mKt(){return typeof window!="undefined"&&window.process&&window.process.type==="renderer"?!0:typeof document!="undefined"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window!="undefined"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}fh.formatters.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}};function yKt(e){var t=this.useColors;if(e[0]=(t?"%c":"")+this.namespace+(t?" %c":" ")+e[0]+(t?"%c ":" ")+"+"+fh.humanize(this.diff),!!t){var r="color: "+this.color;e.splice(1,0,r,"color: inherit");var i=0,n=0;e[0].replace(/%[a-zA-Z%]/g,function(a){a!=="%%"&&(i++,a==="%c"&&(n=i))}),e.splice(n,0,r)}}function xKt(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function bKt(e){try{e==null?fh.storage.removeItem("debug"):fh.storage.debug=e}catch(t){}}function h9e(){var e;try{e=fh.storage.debug}catch(t){}return!e&&typeof process!="undefined"&&"env"in process&&(e=process.env.DEBUG),e}fh.enable(h9e());function _Kt(){try{return window.localStorage}catch(e){}}});var w9e=W((DWr,_9e)=>{var p4=j9(),T2=p9e()("stream-parser");_9e.exports=TKt;var g9e=-1,cI=0,wKt=1,m9e=2;function TKt(e){var t=e&&typeof e._transform=="function",r=e&&typeof e._write=="function";if(!t&&!r)throw new Error("must pass a Writable or Transform stream in");T2("extending Parser into stream"),e._bytes=AKt,e._skipBytes=MKt,t&&(e._passthrough=SKt),t?e._transform=kKt:e._write=EKt}function rE(e){T2("initializing parser stream"),e._parserBytesLeft=0,e._parserBuffers=[],e._parserBuffered=0,e._parserState=g9e,e._parserCallback=null,typeof e.push=="function"&&(e._parserOutput=e.push.bind(e)),e._parserInit=!0}function AKt(e,t){p4(!this._parserCallback,'there is already a "callback" set!'),p4(isFinite(e)&&e>0,'can only buffer a finite number of bytes > 0, got "'+e+'"'),this._parserInit||rE(this),T2("buffering %o bytes",e),this._parserBytesLeft=e,this._parserCallback=t,this._parserState=cI}function MKt(e,t){p4(!this._parserCallback,'there is already a "callback" set!'),p4(e>0,'can only skip > 0 bytes, got "'+e+'"'),this._parserInit||rE(this),T2("skipping %o bytes",e),this._parserBytesLeft=e,this._parserCallback=t,this._parserState=wKt}function SKt(e,t){p4(!this._parserCallback,'There is already a "callback" set!'),p4(e>0,'can only pass through > 0 bytes, got "'+e+'"'),this._parserInit||rE(this),T2("passing through %o bytes",e),this._parserBytesLeft=e,this._parserCallback=t,this._parserState=m9e}function EKt(e,t,r){this._parserInit||rE(this),T2("write(%o bytes)",e.length),typeof t=="function"&&(r=t),x9e(this,e,null,r)}function kKt(e,t,r){this._parserInit||rE(this),T2("transform(%o bytes)",e.length),typeof t!="function"&&(t=this._parserOutput),x9e(this,e,t,r)}function y9e(e,t,r,i){return e._parserBytesLeft<=0?i(new Error("got data but not currently parsing anything")):t.length<=e._parserBytesLeft?function(){return v9e(e,t,r,i)}:function(){var n=t.slice(0,e._parserBytesLeft);return v9e(e,n,r,function(a){if(a)return i(a);if(t.length>n.length)return function(){return y9e(e,t.slice(n.length),r,i)}})}}function v9e(e,t,r,i){if(e._parserBytesLeft-=t.length,T2("%o bytes left for stream piece",e._parserBytesLeft),e._parserState===cI?(e._parserBuffers.push(t),e._parserBuffered+=t.length):e._parserState===m9e&&r(t),e._parserBytesLeft===0){var n=e._parserCallback;if(n&&e._parserState===cI&&e._parserBuffers.length>1&&(t=Buffer.concat(e._parserBuffers,e._parserBuffered)),e._parserState!==cI&&(t=null),e._parserCallback=null,e._parserBuffered=0,e._parserState=g9e,e._parserBuffers.splice(0),n){var a=[];t&&a.push(t),r&&a.push(r);var o=n.length>a.length;o&&a.push(b9e(i));var s=n.apply(e,a);if(!o||i===s)return i}}else return i}var x9e=b9e(y9e);function b9e(e){return function(){for(var t=e.apply(this,arguments);typeof t=="function";)t=t();return t}}});var T9e=W(q0=>{"use strict";q0.readUInt16LE=function(e,t){return e[t]|e[t+1]<<8};q0.readUInt16BE=function(e,t){return e[t]<<8|e[t+1]};q0.readInt16LE=function(e,t){return q0.readUInt16LE(e,t)<<16>>16};q0.readInt16BE=function(e,t){return q0.readUInt16BE(e,t)<<16>>16};q0.readUInt32LE=function(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16)+e[t+3]*16777216};q0.readUInt32BE=function(e,t){return e[t]*16777216+(e[t+1]<<16|e[t+2]<<8|e[t+3])};q0.readInt32LE=function(e,t){return q0.readUInt32LE(e,t)|0};q0.readInt32BE=function(e,t){return q0.readUInt32BE(e,t)|0}});var Ao=W(O0=>{"use strict";var A9e=hLe().Transform,CKt=w9e(),A2=T9e();function iE(){A9e.call(this,{readableObjectMode:!0})}iE.prototype=Object.create(A9e.prototype);iE.prototype.constructor=iE;CKt(iE.prototype);O0.ParserStream=iE;O0.sliceEq=function(e,t,r){for(var i=t,n=0;n{"use strict";var v4=Ao().readUInt16BE,wK=Ao().readUInt32BE;function nE(e,t){if(e.length<4+t)return null;var r=wK(e,t);return e.length>4&15,i=e[4]&15,n=e[5]>>4&15,a=v4(e,6),o=8,s=0;sa.width||n.width===a.width&&n.height>a.height?n:a}),r=e.reduce(function(n,a){return n.height>a.height||n.height===a.height&&n.width>a.width?n:a}),i;return t.width>r.height||t.width===r.height&&t.height>r.width?i=t:i=r,i}hI.exports.readSizeFromMeta=function(e){var t={sizes:[],transforms:[],item_inf:{},item_loc:{}};if(IKt(e,t),!!t.sizes.length){var r=RKt(t.sizes),i=1;t.transforms.forEach(function(a){var o={1:6,2:5,3:8,4:7,5:4,6:3,7:2,8:1},s={1:4,2:3,3:2,4:1,5:6,6:5,7:8,8:7};if(a.type==="imir"&&(a.value===0?i=s[i]:(i=s[i],i=o[i],i=o[i])),a.type==="irot")for(var l=0;l{"use strict";function dI(e,t){var r=new Error(e);return r.code=t,r}function zKt(e){try{return decodeURIComponent(escape(e))}catch(t){return e}}function pm(e,t,r){this.input=e.subarray(t,r),this.start=t;var i=String.fromCharCode.apply(null,this.input.subarray(0,4));if(i!=="II*\0"&&i!=="MM\0*")throw dI("invalid TIFF signature","EBADDATA");this.big_endian=i[0]==="M"}pm.prototype.each=function(e){this.aborted=!1;var t=this.read_uint32(4);for(this.ifds_to_read=[{id:0,offset:t}];this.ifds_to_read.length>0&&!this.aborted;){var r=this.ifds_to_read.shift();r.offset&&this.scan_ifd(r.id,r.offset,e)}};pm.prototype.read_uint16=function(e){var t=this.input;if(e+2>t.length)throw dI("unexpected EOF","EBADDATA");return this.big_endian?t[e]*256+t[e+1]:t[e]+t[e+1]*256};pm.prototype.read_uint32=function(e){var t=this.input;if(e+4>t.length)throw dI("unexpected EOF","EBADDATA");return this.big_endian?t[e]*16777216+t[e+1]*65536+t[e+2]*256+t[e+3]:t[e]+t[e+1]*256+t[e+2]*65536+t[e+3]*16777216};pm.prototype.is_subifd_link=function(e,t){return e===0&&t===34665||e===0&&t===34853||e===34665&&t===40965};pm.prototype.exif_format_length=function(e){switch(e){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}};pm.prototype.exif_format_read=function(e,t){var r;switch(e){case 1:case 2:return r=this.input[t],r;case 6:return r=this.input[t],r|(r&128)*33554430;case 3:return r=this.read_uint16(t),r;case 8:return r=this.read_uint16(t),r|(r&32768)*131070;case 4:return r=this.read_uint32(t),r;case 9:return r=this.read_uint32(t),r|0;case 5:case 10:case 11:case 12:return null;case 7:return null;default:return null}};pm.prototype.scan_ifd=function(e,t,r){var i=this.read_uint16(t);t+=2;for(var n=0;nthis.input.length)throw dI("unexpected EOF","EBADDATA");for(var h=[],p=c,d=0;d0&&(this.ifds_to_read.push({id:a,offset:h[0]}),f=!0);var m={is_big_endian:this.big_endian,ifd:e,tag:a,format:o,count:s,entry_offset:t+this.start,data_length:u,data_offset:c+this.start,value:h,is_subifd_link:f};if(r(m)===!1){this.aborted=!0;return}t+=12}e===0&&this.ifds_to_read.push({id:1,offset:this.read_uint32(t)})};TK.exports.ExifParser=pm;TK.exports.get_orientation=function(e){var t=0;try{return new pm(e,0,e.length).each(function(r){if(r.ifd===0&&r.tag===274&&Array.isArray(r.value))return t=r.value[0],!1}),t}catch(r){return-1}}});var E9e=W((RWr,S9e)=>{"use strict";var BKt=Ao().str2arr,qKt=Ao().sliceEq,OKt=Ao().readUInt32BE,vI=M9e(),NKt=pI(),UKt=BKt("ftyp");S9e.exports=function(e){if(qKt(e,4,UKt)){var t=vI.unbox(e,0);if(t){var r=vI.getMimeType(t.data);if(r){for(var i,n=t.end;;){var a=vI.unbox(e,n);if(!a)break;if(n=a.end,a.boxtype==="mdat")return;if(a.boxtype==="meta"){i=a.data;break}}if(i){var o=vI.readSizeFromMeta(i);if(o){var s={width:o.width,height:o.height,type:r.type,mime:r.mime,wUnits:"px",hUnits:"px"};if(o.variants.length>1&&(s.variants=o.variants),o.orientation&&(s.orientation=o.orientation),o.exif_location&&o.exif_location.offset+o.exif_location.length<=e.length){var l=OKt(e,o.exif_location.offset),u=e.slice(o.exif_location.offset+l+4,o.exif_location.offset+o.exif_location.length),c=NKt.get_orientation(u);c>0&&(s.orientation=c)}return s}}}}}}});var F9e=W((zWr,D9e)=>{"use strict";var VKt=Ao().str2arr,GKt=Ao().sliceEq,k9e=Ao().readInt16LE,C9e=Ao().readInt32LE,HKt=Ao().readUInt32LE,jKt=VKt("BM");D9e.exports=function(e){if(!(e.length<26)&&GKt(e,0,jKt)){var t,r,i=HKt(e,14);if(i===12)r=k9e(e,18),t=k9e(e,20);else if(i>12)r=C9e(e,18),t=C9e(e,22);else return;return{width:r,height:Math.abs(t),type:"bmp",mime:"image/bmp",wUnits:"px",hUnits:"px"}}}});var z9e=W((BWr,R9e)=>{"use strict";var I9e=Ao().str2arr,L9e=Ao().sliceEq,P9e=Ao().readUInt16LE,$Kt=I9e("GIF87a"),WKt=I9e("GIF89a");R9e.exports=function(e){if(!(e.length<10)&&!(!L9e(e,0,$Kt)&&!L9e(e,0,WKt)))return{width:P9e(e,6),height:P9e(e,8),type:"gif",mime:"image/gif",wUnits:"px",hUnits:"px"}}});var q9e=W((qWr,B9e)=>{"use strict";var AK=Ao().readUInt16LE,YKt=0,XKt=1,MK=16;B9e.exports=function(e){var t=AK(e,0),r=AK(e,2),i=AK(e,4);if(!(t!==YKt||r!==XKt||!i)&&!(e.length<6+i*MK)){for(var n=[],a={width:0,height:0},o=0;oa.width||l>a.height)&&(a=u)}return{width:a.width,height:a.height,variants:n,type:"ico",mime:"image/x-icon",wUnits:"px",hUnits:"px"}}}});var N9e=W((OWr,O9e)=>{"use strict";var SK=Ao().readUInt16BE,ZKt=Ao().str2arr,KKt=Ao().sliceEq,JKt=pI(),QKt=ZKt("Exif\0\0");O9e.exports=function(e){if(!(e.length<2)&&!(e[0]!==255||e[1]!==216||e[2]!==255))for(var t=2;;){for(;;){if(e.length-t<2)return;if(e[t++]===255)break}for(var r=e[t++],i;r===255;)r=e[t++];if(r>=208&&r<=217||r===1)i=0;else if(r>=192&&r<=254){if(e.length-t<2)return;i=SK(e,t)-2,t+=2}else return;if(r===217||r===218)return;var n;if(r===225&&i>=10&&KKt(e,t,QKt)&&(n=JKt.get_orientation(e.slice(t+6,t+i))),i>=5&&r>=192&&r<=207&&r!==196&&r!==200&&r!==204){if(e.length-t0&&(a.orientation=n),a}t+=i}}});var j9e=W((NWr,H9e)=>{"use strict";var G9e=Ao().str2arr,U9e=Ao().sliceEq,V9e=Ao().readUInt32BE,eJt=G9e(`\x89PNG\r  -`),GKt=R9e("IHDR");z9e.exports=function(e){if(!(e.length<24)&&P9e(e,0,VKt)&&P9e(e,12,GKt))return{width:I9e(e,16),height:I9e(e,20),type:"png",mime:"image/png",wUnits:"px",hUnits:"px"}}});var N9e=W((kWr,O9e)=>{"use strict";var HKt=Ao().str2arr,jKt=Ao().sliceEq,q9e=Ao().readUInt32BE,$Kt=HKt("8BPS\0");O9e.exports=function(e){if(!(e.length<22)&&jKt(e,0,$Kt))return{width:q9e(e,18),height:q9e(e,14),type:"psd",mime:"image/vnd.adobe.photoshop",wUnits:"px",hUnits:"px"}}});var _K=W(bK=>{"use strict";bK.MAX_DATA_LENGTH=1024*10;var xK="[a-zA-Z_:][a-zA-Z0-9:._-]*",V9e="[^\"'=<>`\\x00-\\x20]+",WKt="'[^']*'",YKt='"[^"]*"',XKt="(?:"+V9e+"|"+WKt+"|"+YKt+")",ZKt="(?:\\s+"+xK+"(?:\\s*=\\s*"+XKt+")?)",KKt="<[?][\\s\\S]*?[?]>",JKt="",QKt="",eJt="]*(?:\\[[\\s\\S]*?\\][^>]*)?>",tJt=new RegExp("^(?:\\s+|"+KKt+"|"+JKt+"|"+QKt+"|"+eJt+")*"),rJt=new RegExp("^<("+xK+")("+ZKt+"*)\\s*/?>"),U9e=new RegExp("\\s+("+xK+")(?:\\s*=\\s*(?:("+V9e+`)|'([^']*)'|"([^"]*)"))?`,"g"),iJt=/in$|mm$|cm$|pt$|pc$|px$|em$|ex$/;function v4(e){return typeof e=="number"&&isFinite(e)&&e>0}function U1(e){var t=e.slice(-2),r=t.match(iJt);return r===null?"px":r[0]}bK.parse=function(e){var t=e.match(tJt)[0],r=rJt.exec(t.length?e.slice(t.length):e);if(r){var i=r[1];if(!(i!=="svg"&&i.slice(-4)!==":svg")){var n={},a;for(U9e.lastIndex=0;(a=U9e.exec(r[2]))!==null;)n[a[1]]=a[2]!==void 0?a[2]:a[3]!==void 0?a[3]:a[4];var o=n.width,s=n.height,l=n.viewBox||n.viewbox;o&&o.indexOf("%")!==-1&&(o=void 0),s&&s.indexOf("%")!==-1&&(s=void 0);var u=parseFloat(o),c=parseFloat(s);if(o&&s)return!v4(u)||!v4(c)?void 0:{width:u,height:c,type:"svg",mime:"image/svg+xml",wUnits:U1(o),hUnits:U1(s)};var f=(l||"").trim().split(/[\s,]+/),h=parseFloat(f[2]),p=parseFloat(f[3]);if(!(!v4(h)||!v4(p))&&U1(f[2])===U1(f[3])){var d=h/p;return o?v4(u)?{width:u,height:u/d,type:"svg",mime:"image/svg+xml",wUnits:U1(o),hUnits:U1(o)}:void 0:s?v4(c)?{width:c*d,height:c,type:"svg",mime:"image/svg+xml",wUnits:U1(s),hUnits:U1(s)}:void 0:{width:h,height:p,type:"svg",mime:"image/svg+xml",wUnits:U1(f[2]),hUnits:U1(f[3])}}}}}});var H9e=W((DWr,G9e)=>{"use strict";var nJt=_K().parse,aJt=_K().MAX_DATA_LENGTH;G9e.exports=function(e){var t=0;e[0]===239&&e[1]===187&&e[2]===191&&(t=3);for(var r="",i=Math.min(e.length,t+aJt),n=t;n{"use strict";var W9e=Ao().str2arr,j9e=Ao().sliceEq,oJt=Ao().readUInt16LE,sJt=Ao().readUInt16BE,lJt=Ao().readUInt32LE,uJt=Ao().readUInt32BE,cJt=W9e("II*\0"),fJt=W9e("MM\0*");function cI(e,t,r){return r?sJt(e,t):oJt(e,t)}function wK(e,t,r){return r?uJt(e,t):lJt(e,t)}function $9e(e,t,r){var i=cI(e,t+2,r),n=wK(e,t+4,r);return n!==1||i!==3&&i!==4?null:i===3?cI(e,t+8,r):wK(e,t+8,r)}Y9e.exports=function(e){if(!(e.length<8)&&!(!j9e(e,0,cJt)&&!j9e(e,0,fJt))){var t=e[0]===77,r=wK(e,4,t)-8;if(!(r<0)){var i=r+8;if(!(e.length-i<2)){var n=cI(e,i+0,t)*12;if(!(n<=0)&&(i+=2,!(e.length-i{"use strict";var J9e=Ao().str2arr,Z9e=Ao().sliceEq,K9e=Ao().readUInt16LE,TK=Ao().readUInt32LE,hJt=lI(),dJt=J9e("RIFF"),pJt=J9e("WEBP");function vJt(e,t){if(!(e[t+3]!==157||e[t+4]!==1||e[t+5]!==42))return{width:K9e(e,t+6)&16383,height:K9e(e,t+8)&16383,type:"webp",mime:"image/webp",wUnits:"px",hUnits:"px"}}function gJt(e,t){if(e[t]===47){var r=TK(e,t+1);return{width:(r&16383)+1,height:(r>>14&16383)+1,type:"webp",mime:"image/webp",wUnits:"px",hUnits:"px"}}}function mJt(e,t){return{width:(e[t+6]<<16|e[t+5]<<8|e[t+4])+1,height:(e[t+9]<<16|e[t+8]<<8|e[t+7])+1,type:"webp",mime:"image/webp",wUnits:"px",hUnits:"px"}}Q9e.exports=function(e){if(!(e.length<16)&&!(!Z9e(e,0,dJt)||!Z9e(e,8,pJt))){var t=12,r=null,i=0,n=TK(e,4)+8;if(!(n>e.length)){for(;t+8=10?r=r||vJt(e,t+8):a==="VP8L"&&o>=5?r=r||gJt(e,t+8):a==="VP8X"&&o>=10?r=r||mJt(e,t+8):a==="EXIF"&&(i=hJt.get_orientation(e.slice(t+8,t+8+o)),t=1/0),t+=8+o}if(r)return i>0&&(r.orientation=i),r}}}});var rIe=W((PWr,tIe)=>{"use strict";tIe.exports={avif:x9e(),bmp:T9e(),gif:k9e(),ico:D9e(),jpeg:L9e(),png:B9e(),psd:N9e(),svg:H9e(),tiff:X9e(),webp:eIe()}});var iIe=W((IWr,MK)=>{"use strict";var AK=rIe();function yJt(e){for(var t=Object.keys(AK),r=0;r0&&i.height>0?i:null}return null}MK.exports=function(t){return yJt(t)};MK.exports.parsers=AK});var aIe=W(nIe=>{"use strict";var xJt=iIe(),bJt=Zg().IMAGE_URL_PREFIX,_Jt=t_().Buffer;nIe.getImageSize=function(e){var t=e.replace(bJt,""),r=new _Jt(t,"base64");return xJt(r)}});var lIe=W((zWr,sIe)=>{"use strict";var oIe=it(),wJt=(H5(),Pt(gS)),TJt=un(),fI=Wi(),AJt=it().maxRowLength,MJt=aIe().getImageSize;sIe.exports=function(t,r){var i,n;if(r._hasZ)i=r.z.length,n=AJt(r.z);else if(r._hasSource){var a=MJt(r.source);i=a.height,n=a.width}var o=fI.getFromId(t,r.xaxis||"x"),s=fI.getFromId(t,r.yaxis||"y"),l=o.d2c(r.x0)-r.dx/2,u=s.d2c(r.y0)-r.dy/2,c,f=[l,l+n*r.dx],h=[u,u+i*r.dy];if(o&&o.type==="log")for(c=0;c{"use strict";var CJt=gi(),g_=it(),uIe=g_.strTranslate,DJt=(vd(),Pt(pd)),FJt=(H5(),Pt(gS)),LJt=lY(),PJt=(iP(),Pt(rP)).STYLE;cIe.exports=function(t,r,i,n){var a=r.xaxis,o=r.yaxis,s=!t._context._exportedPlot&&LJt();g_.makeTraceGroups(n,i,"im").each(function(l){var u=CJt.select(this),c=l[0],f=c.trace,h=(f.zsmooth==="fast"||f.zsmooth===!1&&s)&&!f._hasZ&&f._hasSource&&a.type==="linear"&&o.type==="linear";f._realImage=h;var p=c.z,d=c.x0,v=c.y0,m=c.w,g=c.h,w=f.dx,_=f.dy,b,S,x,T,A,y;for(y=0;b===void 0&&y0;)S=a.c2p(d+y*w),y--;for(y=0;T===void 0&&y0;)A=o.c2p(v+y*_),y--;if(SI[0];if(B||O){var $=b+M/2,Y=T+C/2;R+="transform:"+uIe($+"px",Y+"px")+"scale("+(B?-1:1)+","+(O?-1:1)+")"+uIe(-$+"px",-Y+"px")+";"}}P.attr("style",R);var K=new Promise(function(j){if(f._hasZ)j();else if(f._hasSource)if(f._canvas&&f._canvas.el.width===m&&f._canvas.el.height===g&&f._canvas.source===f.source)j();else{var q=document.createElement("canvas");q.width=m,q.height=g;var Q=q.getContext("2d",{willReadFrequently:!0});f._image=f._image||new Image;var U=f._image;U.onload=function(){Q.drawImage(U,0,0),f._canvas={el:q,source:f.source},j()},U.setAttribute("src",f.source)}}).then(function(){var j,q;if(f._hasZ)q=L(function(V,X){var G=p[X][V];return g_.isTypedArray(G)&&(G=Array.from(G)),G}),j=q.toDataURL("image/png");else if(f._hasSource)if(h)j=f.source;else{var Q=f._canvas.el.getContext("2d",{willReadFrequently:!0}),U=Q.getImageData(0,0,m,g).data;q=L(function(V,X){var G=4*(X*m+V);return[U[G],U[G+1],U[G+2],U[G+3]]}),j=q.toDataURL("image/png")}P.attr({"xlink:href":j,height:C,width:M,x:b,y:T})});t._promises.push(K)})}});var dIe=W((qWr,hIe)=>{"use strict";var IJt=gi();hIe.exports=function(t){IJt.select(t).selectAll(".im image").style("opacity",function(r){return r[0].trace.opacity})}});var mIe=W((OWr,gIe)=>{"use strict";var pIe=Ls(),vIe=it(),hI=vIe.isArrayOrTypedArray,RJt=(H5(),Pt(gS));gIe.exports=function(t,r,i){var n=t.cd[0],a=n.trace,o=t.xa,s=t.ya;if(!(pIe.inbox(r-n.x0,r-(n.x0+n.w*a.dx),0)>0||pIe.inbox(i-n.y0,i-(n.y0+n.h*a.dy),0)>0)){var l=Math.floor((r-n.x0)/a.dx),u=Math.floor(Math.abs(i-n.y0)/a.dy),c;if(a._hasZ?c=n.z[u][l]:a._hasSource&&(c=a._canvas.el.getContext("2d",{willReadFrequently:!0}).getImageData(l,u,1,1).data),!!c){var f=n.hi||a.hoverinfo,h;if(f){var p=f.split("+");p.indexOf("all")!==-1&&(p=["color"]),p.indexOf("color")!==-1&&(h=!0)}var d=RJt.colormodel[a.colormodel],v=d.colormodel||a.colormodel,m=v.length,g=a._scaler(c),w=d.suffix,_=[];(a.hovertemplate||h)&&(_.push("["+[g[0]+w[0],g[1]+w[1],g[2]+w[2]].join(", ")),m===4&&_.push(", "+g[3]+w[3]),_.push("]"),_=_.join(""),t.extraText=v.toUpperCase()+": "+_);var b;hI(a.hovertext)&&hI(a.hovertext[u])?b=a.hovertext[u][l]:hI(a.text)&&hI(a.text[u])&&(b=a.text[u][l]);var S=s.c2p(n.y0+(u+.5)*a.dy),x=n.x0+(l+.5)*a.dx,T=n.y0+(u+.5)*a.dy,A="["+c.slice(0,a.colormodel.length).join(", ")+"]";return[vIe.extendFlat(t,{index:[u,l],x0:o.c2p(n.x0+l*a.dx),x1:o.c2p(n.x0+(l+1)*a.dx),y0:S,y1:S,color:g,xVal:x,xLabelVal:x,yVal:T,yLabelVal:T,zLabelVal:A,text:b,hovertemplateLabels:{zLabel:A,colorLabel:_,"color[0]Label":g[0]+w[0],"color[1]Label":g[1]+w[1],"color[2]Label":g[2]+w[2],"color[3]Label":g[3]+w[3]}})]}}}});var xIe=W((NWr,yIe)=>{"use strict";yIe.exports=function(t,r){return"xVal"in r&&(t.x=r.xVal),"yVal"in r&&(t.y=r.yVal),r.xa&&(t.xaxis=r.xa),r.ya&&(t.yaxis=r.ya),t.color=r.color,t.colormodel=r.trace.colormodel,t.z||(t.z=r.color),t}});var _Ie=W((UWr,bIe)=>{"use strict";bIe.exports={attributes:(bX(),Pt(xX)).default,supplyDefaults:o8e(),calc:lIe(),plot:fIe(),style:dIe(),hoverPoints:mIe(),eventData:xIe(),moduleType:"trace",name:"image",basePlotModule:vl(),categories:["cartesian","svg","2dMap","noSortingByValue"],animatable:!1,meta:{}}});var TIe=W((VWr,wIe)=>{"use strict";wIe.exports=_Ie()});var m_=W((GWr,MIe)=>{"use strict";var dI=Ka(),zJt=fs().attributes,BJt=jo(),qJt=jl(),{hovertemplateAttrs:OJt,texttemplateAttrs:NJt,templatefallbackAttrs:AIe}=$a(),w2=nn().extendFlat,UJt=Ru().pattern,pI=BJt({editType:"plot",arrayOk:!0,colorEditType:"plot"});MIe.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:qJt.defaultLine,arrayOk:!0,editType:"style"},width:{valType:"number",min:0,dflt:0,arrayOk:!0,editType:"style"},editType:"calc"},pattern:UJt,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:w2({},dI.hoverinfo,{flags:["label","text","value","percent","name"]}),hovertemplate:OJt({},{keys:["label","color","value","percent","text"]}),hovertemplatefallback:AIe(),texttemplate:NJt({editType:"plot"},{keys:["label","color","value","percent","text"]}),texttemplatefallback:AIe({editType:"plot"}),textposition:{valType:"enumerated",values:["inside","outside","auto","none"],dflt:"auto",arrayOk:!0,editType:"plot"},textfont:w2({},pI,{}),insidetextorientation:{valType:"enumerated",values:["horizontal","radial","tangential","auto"],dflt:"auto",editType:"plot"},insidetextfont:w2({},pI,{}),outsidetextfont:w2({},pI,{}),automargin:{valType:"boolean",dflt:!1,editType:"plot"},showlegend:w2({},dI.showlegend,{arrayOk:!0}),legend:w2({},dI.legend,{arrayOk:!0}),legendrank:w2({},dI.legendrank,{arrayOk:!0}),title:{text:{valType:"string",dflt:"",editType:"plot"},font:w2({},pI,{}),position:{valType:"enumerated",values:["top left","top center","top right","middle center","bottom left","bottom center","bottom right"],editType:"plot"},editType:"plot"},domain:zJt({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"}}});var y_=W((HWr,kIe)=>{"use strict";var VJt=un(),iE=it(),GJt=m_(),HJt=fs().defaults,jJt=L0().handleText,$Jt=it().coercePattern;function SIe(e,t){var r=iE.isArrayOrTypedArray(e),i=iE.isArrayOrTypedArray(t),n=Math.min(r?e.length:1/0,i?t.length:1/0);if(isFinite(n)||(n=0),n&&i){for(var a,o=0;o0){a=!0;break}}a||(n=0)}return{hasLabels:r,hasValues:i,len:n}}function EIe(e,t,r,i,n){var a=i("marker.line.width");a&&i("marker.line.color",n?void 0:r.paper_bgcolor);var o=i("marker.colors");$Jt(i,"marker.pattern",o),e.marker&&!t.marker.pattern.fgcolor&&(t.marker.pattern.fgcolor=e.marker.colors),t.marker.pattern.bgcolor||(t.marker.pattern.bgcolor=r.paper_bgcolor)}function WJt(e,t,r,i){function n(w,_){return iE.coerce(e,t,GJt,w,_)}var a=n("labels"),o=n("values"),s=SIe(a,o),l=s.len;if(t._hasLabels=s.hasLabels,t._hasValues=s.hasValues,!t._hasLabels&&t._hasValues&&(n("label0"),n("dlabel")),!l){t.visible=!1;return}t._length=l,EIe(e,t,i,n,!0),n("scalegroup");var u=n("text"),c=n("texttemplate");n("texttemplatefallback");var f;if(c||(f=n("textinfo",iE.isArrayOrTypedArray(u)?"text+percent":"percent")),n("hovertext"),n("hovertemplate"),n("hovertemplatefallback"),c||f&&f!=="none"){var h=n("textposition");jJt(e,t,i,n,h,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1});var p=Array.isArray(h)||h==="auto",d=p||h==="outside";d&&n("automargin"),(h==="inside"||h==="auto"||Array.isArray(h))&&n("insidetextorientation")}else f==="none"&&n("textposition","none");HJt(t,i,n);var v=n("hole"),m=n("title.text");if(m){var g=n("title.position",v?"middle center":"top center");!v&&g==="middle center"&&(t.title.position="top center"),iE.coerceFont(n,"title.font",i.font)}n("sort"),n("direction"),n("rotation"),n("pull")}kIe.exports={handleLabelsAndValues:SIe,handleMarkerDefaults:EIe,supplyDefaults:WJt}});var vI=W((jWr,CIe)=>{"use strict";CIe.exports={hiddenlabels:{valType:"data_array",editType:"calc"},piecolorway:{valType:"colorlist",editType:"calc"},extendpiecolors:{valType:"boolean",dflt:!0,editType:"calc"}}});var FIe=W(($Wr,DIe)=>{"use strict";var YJt=it(),XJt=vI();DIe.exports=function(t,r){function i(n,a){return YJt.coerce(t,r,XJt,n,a)}i("hiddenlabels"),i("piecolorway",r.colorway),i("extendpiecolors")}});var m4=W((WWr,IIe)=>{"use strict";var ZJt=un(),g4=ai(),KJt={};function JJt(e,t){var r=[],i=e._fullLayout,n=i.hiddenlabels||[],a=t.labels,o=t.marker.colors||[],s=t.values,l=t._length,u=t._hasValues&&l,c,f;if(t.dlabel)for(a=new Array(l),c=0;c=0});var b=t.type==="funnelarea"?v:t.sort;return b&&r.sort(function(S,x){return x.v-S.v}),r[0]&&(r[0].vTotal=d),r}function LIe(e){return function(r,i){if(!r||!g4.isValid(r))return!1;let n=g4.rgbaString(r);return e[i]||(e[i]=n),n}}function QJt(e,t){var r=(t||{}).type;r||(r="pie");var i=e._fullLayout,n=e.calcdata,a=i[r+"colorway"],o=i["_"+r+"colormap"];i["extend"+r+"colors"]&&(a=PIe(a,KJt));for(var s=0,l=0;l{"use strict";var eQt=rh().appendArrayMultiPointValues;RIe.exports=function(t,r){var i={curveNumber:r.index,pointNumbers:t.pts,data:r._input,fullData:r,label:t.label,color:t.color,value:t.v,percent:t.percent,text:t.text,bbox:t.bbox,v:t.v};return t.pts.length===1&&(i.pointNumber=i.i=t.pts[0]),eQt(i,r,t.pts),r.type==="funnelarea"&&(delete i.v,delete i.i),i}});var xI=W((XWr,iRe)=>{"use strict";var Xh=gi(),tQt=Qo(),gI=Ls(),VIe=ai(),fm=en(),Lc=it(),rQt=Lc.strScale,BIe=Lc.strTranslate,SK=ho(),GIe=af(),iQt=GIe.recordMinTextSize,nQt=GIe.clearMinTextSize,HIe=(Xy(),Pt(Yy)).TEXTPAD,In=Oy(),mI=zIe(),qIe=it().isValidTextValue;function aQt(e,t){var r=e._context.staticPlot,i=e._fullLayout,n=i._size;nQt("pie",i),WIe(t,e),eRe(t,n);var a=Lc.makeTraceGroups(i._pielayer,t,"trace").each(function(o){var s=Xh.select(this),l=o[0],u=l.trace;pQt(o),s.attr("stroke-linejoin","round"),s.each(function(){var c=Xh.select(this).selectAll("g.slice").data(o);c.enter().append("g").classed("slice",!0),c.exit().remove();var f=[[[],[]],[[],[]]],h=!1;c.each(function(b,S){if(b.hidden){Xh.select(this).selectAll("path,g").remove();return}b.pointNumber=b.i,b.curveNumber=u.index,f[b.pxmid[1]<0?0:1][b.pxmid[0]<0?0:1].push(b);var x=l.cx,T=l.cy,A=Xh.select(this),y=A.selectAll("path.surface").data([b]);if(y.enter().append("path").classed("surface",!0).style({"pointer-events":r?"none":"all"}),A.call(jIe,e,o),u.pull){var E=+In.castOption(u.pull,b.pts)||0;E>0&&(x+=E*b.pxmid[0],T+=E*b.pxmid[1])}b.cxFinal=x,b.cyFinal=T;function M(F,I,B,O){var $=O*(I[0]-F[0]),Y=O*(I[1]-F[1]);return"a"+O*l.r+","+O*l.r+" 0 "+b.largeArc+(B?" 1 ":" 0 ")+$+","+Y}var C=u.hole;if(b.v===l.vTotal){var k="M"+(x+b.px0[0])+","+(T+b.px0[1])+M(b.px0,b.pxmid,!0,1)+M(b.pxmid,b.px0,!0,1)+"Z";C?y.attr("d","M"+(x+C*b.px0[0])+","+(T+C*b.px0[1])+M(b.px0,b.pxmid,!1,C)+M(b.pxmid,b.px0,!1,C)+"Z"+k):y.attr("d",k)}else{var D=M(b.px0,b.px1,!0,1);if(C){var L=1-C;y.attr("d","M"+(x+C*b.px1[0])+","+(T+C*b.px1[1])+M(b.px1,b.px0,!1,C)+"l"+L*b.px0[0]+","+L*b.px0[1]+D+"Z")}else y.attr("d","M"+x+","+T+"l"+b.px0[0]+","+b.px0[1]+D+"Z")}tRe(e,b,l);var P=In.castOption(u.textposition,b.pts),R=A.selectAll("g.slicetext").data(b.text&&P!=="none"?[0]:[]);R.enter().append("g").classed("slicetext",!0),R.exit().remove(),R.each(function(){var F=Lc.ensureSingle(Xh.select(this),"text","",function(q){q.attr("data-notex",1)}),I=Lc.ensureUniformFontSize(e,P==="outside"?sQt(u,b,i.font):$Ie(u,b,i.font));F.text(b.text).attr({class:"slicetext",transform:"","text-anchor":"middle"}).call(fm.font,I).call(SK.convertToTspans,e);var B=fm.bBox(F.node()),O;if(P==="outside")O=UIe(B,b);else if(O=YIe(B,b,l),P==="auto"&&O.scale<1){var $=Lc.ensureUniformFontSize(e,u.outsidetextfont);F.call(fm.font,$),B=fm.bBox(F.node()),O=UIe(B,b)}var Y=O.textPosAngle,K=Y===void 0?b.pxmid:yI(l.r,Y);if(O.targetX=x+K[0]*O.rCenter+(O.x||0),O.targetY=T+K[1]*O.rCenter+(O.y||0),rRe(O,B),O.outside){var j=O.targetY;b.yLabelMin=j-B.height/2,b.yLabelMid=j,b.yLabelMax=j+B.height/2,b.labelExtraX=0,b.labelExtraY=0,h=!0}O.fontSize=I.size,iQt(u.type,O,i),o[S].transform=O,Lc.setTransormAndDisplay(F,O)})});var p=Xh.select(this).selectAll("g.titletext").data(u.title.text?[0]:[]);if(p.enter().append("g").classed("titletext",!0),p.exit().remove(),p.each(function(){var b=Lc.ensureSingle(Xh.select(this),"text","",function(T){T.attr("data-notex",1)}),S=u.title.text;u._meta&&(S=Lc.templateString(S,u._meta)),b.text(S).attr({class:"titletext",transform:"","text-anchor":"middle"}).call(fm.font,u.title.font).call(SK.convertToTspans,e);var x;u.title.position==="middle center"?x=cQt(l):x=JIe(l,n),b.attr("transform",BIe(x.x,x.y)+rQt(Math.min(1,x.scale))+BIe(x.tx,x.ty))}),h&&hQt(f,u),oQt(c,u),h&&u.automargin){var d=fm.bBox(s.node()),v=u.domain,m=n.w*(v.x[1]-v.x[0]),g=n.h*(v.y[1]-v.y[0]),w=(.5*m-l.r)/n.w,_=(.5*g-l.r)/n.h;tQt.autoMargin(e,"pie."+u.uid+".automargin",{xl:v.x[0]-w,xr:v.x[1]+w,yb:v.y[0]-_,yt:v.y[1]+_,l:Math.max(l.cx-l.r-d.left,0),r:Math.max(d.right-(l.cx+l.r),0),b:Math.max(d.bottom-(l.cy+l.r),0),t:Math.max(l.cy-l.r-d.top,0),pad:5})}})});setTimeout(function(){a.selectAll("tspan").each(function(){var o=Xh.select(this);o.attr("dy")&&o.attr("dy",o.attr("dy"))})},0)}function oQt(e,t){e.each(function(r){var i=Xh.select(this);if(!r.labelExtraX&&!r.labelExtraY){i.select("path.textline").remove();return}var n=i.select("g.slicetext text");r.transform.targetX+=r.labelExtraX,r.transform.targetY+=r.labelExtraY,Lc.setTransormAndDisplay(n,r.transform);var a=r.cxFinal+r.pxmid[0],o=r.cyFinal+r.pxmid[1],s="M"+a+","+o,l=(r.yLabelMax-r.yLabelMin)*(r.pxmid[0]<0?-1:1)/4;if(r.labelExtraX){var u=r.labelExtraX*r.pxmid[1]/r.pxmid[0],c=r.yLabelMid+r.labelExtraY-(r.cyFinal+r.pxmid[1]);Math.abs(u)>Math.abs(c)?s+="l"+c*r.pxmid[0]/r.pxmid[1]+","+c+"H"+(a+r.labelExtraX+l):s+="l"+r.labelExtraX+","+u+"v"+(c-u)+"h"+l}else s+="V"+(r.yLabelMid+r.labelExtraY)+"h"+l;Lc.ensureSingle(i,"path","textline").call(VIe.stroke,t.outsidetextfont.color).attr({"stroke-width":Math.min(2,t.outsidetextfont.size/8),d:s,fill:"none"})})}function jIe(e,t,r){var i=r[0],n=i.cx,a=i.cy,o=i.trace,s=o.type==="funnelarea";"_hasHoverLabel"in o||(o._hasHoverLabel=!1),"_hasHoverEvent"in o||(o._hasHoverEvent=!1),e.on("mouseover",function(l){var u=t._fullLayout,c=t._fullData[o.index];if(!(t._dragging||u.hovermode===!1)){var f=c.hoverinfo;if(Array.isArray(f)&&(f=gI.castHoverinfo({hoverinfo:[In.castOption(f,l.pts)],_module:o._module},u,0)),f==="all"&&(f="label+text+value+percent+name"),c.hovertemplate||f!=="none"&&f!=="skip"&&f){var h=l.rInscribed||0,p=n+l.pxmid[0]*(1-h),d=a+l.pxmid[1]*(1-h),v=u.separators,m=[];if(f&&f.indexOf("label")!==-1&&m.push(l.label),l.text=In.castOption(c.hovertext||c.text,l.pts),f&&f.indexOf("text")!==-1){var g=l.text;Lc.isValidTextValue(g)&&m.push(g)}l.value=l.v,l.valueLabel=In.formatPieValue(l.v,v),f&&f.indexOf("value")!==-1&&m.push(l.valueLabel),l.percent=l.v/i.vTotal,l.percentLabel=In.formatPiePercent(l.percent,v),f&&f.indexOf("percent")!==-1&&m.push(l.percentLabel);var w=c.hoverlabel,_=w.font,b=[];gI.loneHover({trace:o,x0:p-h*i.r,x1:p+h*i.r,y:d,_x0:s?n+l.TL[0]:p-h*i.r,_x1:s?n+l.TR[0]:p+h*i.r,_y0:s?a+l.TL[1]:d-h*i.r,_y1:s?a+l.BL[1]:d+h*i.r,text:m.join("
"),name:c.hovertemplate||f.indexOf("name")!==-1?c.name:void 0,idealAlign:l.pxmid[0]<0?"left":"right",color:In.castOption(w.bgcolor,l.pts)||l.color,borderColor:In.castOption(w.bordercolor,l.pts),fontFamily:In.castOption(_.family,l.pts),fontSize:In.castOption(_.size,l.pts),fontColor:In.castOption(_.color,l.pts),nameLength:In.castOption(w.namelength,l.pts),textAlign:In.castOption(w.align,l.pts),hovertemplate:In.castOption(c.hovertemplate,l.pts),hovertemplateLabels:l,eventData:[mI(l,c)]},{container:u._hoverlayer.node(),outerContainer:u._paper.node(),gd:t,inOut_bbox:b}),l.bbox=b[0],o._hasHoverLabel=!0}o._hasHoverEvent=!0,t.emit("plotly_hover",{points:[mI(l,c)],event:Xh.event})}}),e.on("mouseout",function(l){var u=t._fullLayout,c=t._fullData[o.index],f=Xh.select(this).datum();o._hasHoverEvent&&(l.originalEvent=Xh.event,t.emit("plotly_unhover",{points:[mI(f,c)],event:Xh.event}),o._hasHoverEvent=!1),o._hasHoverLabel&&(gI.loneUnhover(u._hoverlayer.node()),o._hasHoverLabel=!1)}),e.on("click",function(l){var u=t._fullLayout,c=t._fullData[o.index];t._dragging||u.hovermode===!1||(t._hoverdata=[mI(l,c)],gI.click(t,Xh.event))})}function sQt(e,t,r){var i=In.castOption(e.outsidetextfont.color,t.pts)||In.castOption(e.textfont.color,t.pts)||r.color,n=In.castOption(e.outsidetextfont.family,t.pts)||In.castOption(e.textfont.family,t.pts)||r.family,a=In.castOption(e.outsidetextfont.size,t.pts)||In.castOption(e.textfont.size,t.pts)||r.size,o=In.castOption(e.outsidetextfont.weight,t.pts)||In.castOption(e.textfont.weight,t.pts)||r.weight,s=In.castOption(e.outsidetextfont.style,t.pts)||In.castOption(e.textfont.style,t.pts)||r.style,l=In.castOption(e.outsidetextfont.variant,t.pts)||In.castOption(e.textfont.variant,t.pts)||r.variant,u=In.castOption(e.outsidetextfont.textcase,t.pts)||In.castOption(e.textfont.textcase,t.pts)||r.textcase,c=In.castOption(e.outsidetextfont.lineposition,t.pts)||In.castOption(e.textfont.lineposition,t.pts)||r.lineposition,f=In.castOption(e.outsidetextfont.shadow,t.pts)||In.castOption(e.textfont.shadow,t.pts)||r.shadow;return{color:i,family:n,size:a,weight:o,style:s,variant:l,textcase:u,lineposition:c,shadow:f}}function $Ie(e,t,r){var i=In.castOption(e.insidetextfont.color,t.pts);!i&&e._input.textfont&&(i=In.castOption(e._input.textfont.color,t.pts));var n=In.castOption(e.insidetextfont.family,t.pts)||In.castOption(e.textfont.family,t.pts)||r.family,a=In.castOption(e.insidetextfont.size,t.pts)||In.castOption(e.textfont.size,t.pts)||r.size,o=In.castOption(e.insidetextfont.weight,t.pts)||In.castOption(e.textfont.weight,t.pts)||r.weight,s=In.castOption(e.insidetextfont.style,t.pts)||In.castOption(e.textfont.style,t.pts)||r.style,l=In.castOption(e.insidetextfont.variant,t.pts)||In.castOption(e.textfont.variant,t.pts)||r.variant,u=In.castOption(e.insidetextfont.textcase,t.pts)||In.castOption(e.textfont.textcase,t.pts)||r.textcase,c=In.castOption(e.insidetextfont.lineposition,t.pts)||In.castOption(e.textfont.lineposition,t.pts)||r.lineposition,f=In.castOption(e.insidetextfont.shadow,t.pts)||In.castOption(e.textfont.shadow,t.pts)||r.shadow;return{color:i||VIe.contrast(t.color),family:n,size:a,weight:o,style:s,variant:l,textcase:u,lineposition:c,shadow:f}}function WIe(e,t){for(var r,i,n=0;n=-4;w-=2)g(Math.PI*w,"tan");for(w=4;w>=-4;w-=2)g(Math.PI*(w+1),"tan")}if(f||p){for(w=4;w>=-4;w-=2)g(Math.PI*(w+1.5),"rad");for(w=4;w>=-4;w-=2)g(Math.PI*(w+.5),"rad")}}if(s||d||f){var _=Math.sqrt(e.width*e.width+e.height*e.height);if(m={scale:n*i*2/_,rCenter:1-n,rotate:0},m.textPosAngle=(t.startangle+t.stopangle)/2,m.scale>=1)return m;v.push(m)}(d||p)&&(m=OIe(e,i,o,l,u),m.textPosAngle=(t.startangle+t.stopangle)/2,v.push(m)),(d||h)&&(m=NIe(e,i,o,l,u),m.textPosAngle=(t.startangle+t.stopangle)/2,v.push(m));for(var b=0,S=0,x=0;x=1)break}return v[b]}function lQt(e,t){var r=e.startangle,i=e.stopangle;return r>t&&t>i||r0?1:-1)/2,y:a/(1+r*r/(i*i)),outside:!0}}function cQt(e){var t=Math.sqrt(e.titleBox.width*e.titleBox.width+e.titleBox.height*e.titleBox.height);return{x:e.cx,y:e.cy,scale:e.trace.hole*e.r*2/t,tx:0,ty:-e.titleBox.height/2+e.trace.title.font.size}}function JIe(e,t){var r=1,i=1,n,a=e.trace,o={x:e.cx,y:e.cy},s={tx:0,ty:0};s.ty+=a.title.font.size,n=QIe(a),a.title.position.indexOf("top")!==-1?(o.y-=(1+n)*e.r,s.ty-=e.titleBox.height):a.title.position.indexOf("bottom")!==-1&&(o.y+=(1+n)*e.r);var l=fQt(e.r,e.trace.aspectratio),u=t.w*(a.domain.x[1]-a.domain.x[0])/2;return a.title.position.indexOf("left")!==-1?(u=u+l,o.x-=(1+n)*l,s.tx+=e.titleBox.width/2):a.title.position.indexOf("center")!==-1?u*=2:a.title.position.indexOf("right")!==-1&&(u=u+l,o.x+=(1+n)*l,s.tx-=e.titleBox.width/2),r=u/e.titleBox.width,i=EK(e,t)/e.titleBox.height,{x:o.x,y:o.y,scale:Math.min(r,i),tx:s.tx,ty:s.ty}}function fQt(e,t){return e/(t===void 0?1:t)}function EK(e,t){var r=e.trace,i=t.h*(r.domain.y[1]-r.domain.y[0]);return Math.min(e.titleBox.height,i/2)}function QIe(e){var t=e.pull;if(!t)return 0;var r;if(Lc.isArrayOrTypedArray(t))for(t=0,r=0;rt&&(t=e.pull[r]);return t}function hQt(e,t){var r,i,n,a,o,s,l,u,c,f,h,p,d;function v(_,b){return _.pxmid[1]-b.pxmid[1]}function m(_,b){return b.pxmid[1]-_.pxmid[1]}function g(_,b){b||(b={});var S=b.labelExtraY+(i?b.yLabelMax:b.yLabelMin),x=i?_.yLabelMin:_.yLabelMax,T=i?_.yLabelMax:_.yLabelMin,A=_.cyFinal+o(_.px0[1],_.px1[1]),y=S-x,E,M,C,k,D,L;if(y*l>0&&(_.labelExtraY=y),!!Lc.isArrayOrTypedArray(t.pull))for(M=0;M=(In.castOption(t.pull,C.pts)||0))&&((_.pxmid[1]-C.pxmid[1])*l>0?(k=C.cyFinal+o(C.px0[1],C.px1[1]),y=k-x-_.labelExtraY,y*l>0&&(_.labelExtraY+=y)):(T+_.labelExtraY-A)*l>0&&(E=3*s*Math.abs(M-f.indexOf(_)),D=C.cxFinal+a(C.px0[0],C.px1[0]),L=D+E-(_.cxFinal+_.pxmid[0])-_.labelExtraX,L*s>0&&(_.labelExtraX+=L)))}for(i=0;i<2;i++)for(n=i?v:m,o=i?Math.max:Math.min,l=i?1:-1,r=0;r<2;r++){for(a=r?Math.max:Math.min,s=r?1:-1,u=e[i][r],u.sort(n),c=e[1-i][r],f=c.concat(u),p=[],h=0;h1?(u=r.r,c=u/n.aspectratio):(c=r.r,u=c*n.aspectratio),u*=(1+n.baseratio)/2,l=u*c}o=Math.min(o,l/r.vTotal)}for(i=0;it.vTotal/2?1:0,u.halfangle=Math.PI*Math.min(u.v/t.vTotal,.5),u.ring=1-i.hole,u.rInscribed=uQt(u,t))}function yI(e,t){return[e*Math.sin(t),-e*Math.cos(t)]}function tRe(e,t,r){var i=e._fullLayout,n=r.trace,a=n.texttemplate,o=n.textinfo;if(!a&&o&&o!=="none"){var s=o.split("+"),l=function(b){return s.indexOf(b)!==-1},u=l("label"),c=l("text"),f=l("value"),h=l("percent"),p=i.separators,d;if(d=u?[t.label]:[],c){var v=In.getFirstFilled(n.text,t.pts);qIe(v)&&d.push(v)}f&&d.push(In.formatPieValue(t.v,p)),h&&d.push(In.formatPiePercent(t.v/r.vTotal,p)),t.text=d.join("
")}function m(b){return{label:b.label,value:b.v,valueLabel:In.formatPieValue(b.v,i.separators),percent:b.v/r.vTotal,percentLabel:In.formatPiePercent(b.v/r.vTotal,i.separators),color:b.color,text:b.text,customdata:Lc.castOption(n,b.i,"customdata")}}if(a){var g=Lc.castOption(n,t.i,"texttemplate");if(!g)t.text="";else{var w=m(t),_=In.getFirstFilled(n.text,t.pts);(qIe(_)||_==="")&&(w.text=_),t.text=Lc.texttemplateString({data:[w,n._meta],fallback:n.texttemplatefallback,labels:w,locale:e._fullLayout._d3locale,template:g})}}}function rRe(e,t){var r=e.rotate*Math.PI/180,i=Math.cos(r),n=Math.sin(r),a=(t.left+t.right)/2,o=(t.top+t.bottom)/2;e.textX=a*i-o*n,e.textY=a*n+o*i,e.noCenter=!0}iRe.exports={plot:aQt,formatSliceLabel:tRe,transformInsideText:YIe,determineInsideTextFont:$Ie,positionTitleOutside:JIe,prerenderTitles:WIe,layoutAreas:eRe,attachFxHandlers:jIe,computeTransform:rRe}});var oRe=W((ZWr,aRe)=>{"use strict";var nRe=gi(),vQt=Bw(),gQt=af().resizeText;aRe.exports=function(t){var r=t._fullLayout._pielayer.selectAll(".trace");gQt(t,r,"pie"),r.each(function(i){var n=i[0],a=n.trace,o=nRe.select(this);o.style({opacity:a.opacity}),o.selectAll("path.surface").each(function(s){nRe.select(this).call(vQt,s,a,t)})})}});var lRe=W(y4=>{"use strict";var sRe=Qo();y4.name="pie";y4.plot=function(e,t,r,i){sRe.plotBasePlot(y4.name,e,t,r,i)};y4.clean=function(e,t,r,i){sRe.cleanBasePlot(y4.name,e,t,r,i)}});var cRe=W((JWr,uRe)=>{"use strict";uRe.exports={attributes:m_(),supplyDefaults:y_().supplyDefaults,supplyLayoutDefaults:FIe(),layoutAttributes:vI(),calc:m4().calc,crossTraceCalc:m4().crossTraceCalc,plot:xI().plot,style:oRe(),styleOne:Bw(),moduleType:"trace",name:"pie",basePlotModule:lRe(),categories:["pie-like","pie","showLegend"],meta:{}}});var hRe=W((QWr,fRe)=>{"use strict";fRe.exports=cRe()});var pRe=W(x4=>{"use strict";var dRe=Qo();x4.name="sunburst";x4.plot=function(e,t,r,i){dRe.plotBasePlot(x4.name,e,t,r,i)};x4.clean=function(e,t,r,i){dRe.cleanBasePlot(x4.name,e,t,r,i)}});var kK={};Kn(kK,{CLICK_TRANSITION_EASING:()=>yQt,CLICK_TRANSITION_TIME:()=>mQt,eventDataKeys:()=>xQt});var mQt,yQt,xQt,CK=Ci(()=>{"use strict";mQt=750,yQt="linear",xQt=["currentPath","root","entry","percentRoot","percentEntry","percentParent"]});var aE=W((tYr,mRe)=>{"use strict";var bQt=Ka(),{hovertemplateAttrs:_Qt,texttemplateAttrs:wQt,templatefallbackAttrs:vRe}=$a(),TQt=Fo(),AQt=fs().attributes,hm=m_(),gRe=(CK(),Pt(kK)),nE=nn().extendFlat,MQt=Ru().pattern;mRe.exports={labels:{valType:"data_array",editType:"calc"},parents:{valType:"data_array",editType:"calc"},values:{valType:"data_array",editType:"calc"},branchvalues:{valType:"enumerated",values:["remainder","total"],dflt:"remainder",editType:"calc"},count:{valType:"flaglist",flags:["branches","leaves"],dflt:"leaves",editType:"calc"},level:{valType:"any",editType:"plot",anim:!0},maxdepth:{valType:"integer",editType:"plot",dflt:-1},marker:nE({colors:{valType:"data_array",editType:"calc"},line:{color:nE({},hm.marker.line.color,{dflt:null}),width:nE({},hm.marker.line.width,{dflt:1}),editType:"calc"},pattern:MQt,editType:"calc"},TQt("marker",{colorAttr:"colors",anim:!1})),leaf:{opacity:{valType:"number",editType:"style",min:0,max:1},editType:"plot"},text:hm.text,textinfo:{valType:"flaglist",flags:["label","text","value","current path","percent root","percent entry","percent parent"],extras:["none"],editType:"plot"},texttemplate:wQt({editType:"plot"},{keys:gRe.eventDataKeys.concat(["label","value"])}),texttemplatefallback:vRe({editType:"plot"}),hovertext:hm.hovertext,hoverinfo:nE({},bQt.hoverinfo,{flags:["label","text","value","name","current path","percent root","percent entry","percent parent"],dflt:"label+text+value+name"}),hovertemplate:_Qt({},{keys:gRe.eventDataKeys}),hovertemplatefallback:vRe(),textfont:hm.textfont,insidetextorientation:hm.insidetextorientation,insidetextfont:hm.insidetextfont,outsidetextfont:nE({},hm.outsidetextfont,{}),rotation:{valType:"angle",dflt:0,editType:"plot"},sort:hm.sort,root:{color:{valType:"color",editType:"calc",dflt:"rgba(0,0,0,0)"},editType:"calc"},domain:AQt({name:"sunburst",trace:!0,editType:"calc"})}});var DK=W((rYr,yRe)=>{"use strict";yRe.exports={sunburstcolorway:{valType:"colorlist",editType:"calc"},extendsunburstcolors:{valType:"boolean",dflt:!0,editType:"calc"}}});var wRe=W((iYr,_Re)=>{"use strict";var xRe=it(),SQt=aE(),EQt=fs().defaults,kQt=L0().handleText,CQt=y_().handleMarkerDefaults,bRe=es(),DQt=bRe.hasColorscale,FQt=bRe.handleDefaults;_Re.exports=function(t,r,i,n){function a(h,p){return xRe.coerce(t,r,SQt,h,p)}var o=a("labels"),s=a("parents");if(!o||!o.length||!s||!s.length){r.visible=!1;return}var l=a("values");l&&l.length?a("branchvalues"):a("count"),a("level"),a("maxdepth"),CQt(t,r,n,a);var u=r._hasColorscale=DQt(t,"marker","colors")||(t.marker||{}).coloraxis;u&&FQt(t,r,n,a,{prefix:"marker.",cLetter:"c"}),a("leaf.opacity",u?1:.7);var c=a("text");a("texttemplate"),a("texttemplatefallback"),r.texttemplate||a("textinfo",xRe.isArrayOrTypedArray(c)?"text+label":"label"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback");var f="auto";kQt(t,r,n,a,f,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1}),a("insidetextorientation"),a("sort"),a("rotation"),a("root.color"),EQt(r,n,a),r._length=null}});var ARe=W((nYr,TRe)=>{"use strict";var LQt=it(),PQt=DK();TRe.exports=function(t,r){function i(n,a){return LQt.coerce(t,r,PQt,n,a)}i("sunburstcolorway",r.colorway),i("extendsunburstcolors")}});var oE=W((bI,MRe)=>{(function(e,t){typeof bI=="object"&&typeof MRe!="undefined"?t(bI):(e=e||self,t(e.d3=e.d3||{}))})(bI,function(e){"use strict";function t(Ne,Ue){return Ne.parent===Ue.parent?1:2}function r(Ne){return Ne.reduce(i,0)/Ne.length}function i(Ne,Ue){return Ne+Ue.x}function n(Ne){return 1+Ne.reduce(a,0)}function a(Ne,Ue){return Math.max(Ne,Ue.y)}function o(Ne){for(var Ue;Ue=Ne.children;)Ne=Ue[0];return Ne}function s(Ne){for(var Ue;Ue=Ne.children;)Ne=Ue[Ue.length-1];return Ne}function l(){var Ne=t,Ue=1,Ge=1,je=!1;function Re(Ve){var ct,Tt=0;Ve.eachAfter(function(qt){var Kt=qt.children;Kt?(qt.x=r(Kt),qt.y=n(Kt)):(qt.x=ct?Tt+=Ne(qt,ct):0,qt.y=0,ct=qt)});var Zt=o(Ve),Gt=s(Ve),ur=Zt.x-Ne(Zt,Gt)/2,cr=Gt.x+Ne(Gt,Zt)/2;return Ve.eachAfter(je?function(qt){qt.x=(qt.x-Ve.x)*Ue,qt.y=(Ve.y-qt.y)*Ge}:function(qt){qt.x=(qt.x-ur)/(cr-ur)*Ue,qt.y=(1-(Ve.y?qt.y/Ve.y:1))*Ge})}return Re.separation=function(Ve){return arguments.length?(Ne=Ve,Re):Ne},Re.size=function(Ve){return arguments.length?(je=!1,Ue=+Ve[0],Ge=+Ve[1],Re):je?null:[Ue,Ge]},Re.nodeSize=function(Ve){return arguments.length?(je=!0,Ue=+Ve[0],Ge=+Ve[1],Re):je?[Ue,Ge]:null},Re}function u(Ne){var Ue=0,Ge=Ne.children,je=Ge&&Ge.length;if(!je)Ue=1;else for(;--je>=0;)Ue+=Ge[je].value;Ne.value=Ue}function c(){return this.eachAfter(u)}function f(Ne){var Ue=this,Ge,je=[Ue],Re,Ve,ct;do for(Ge=je.reverse(),je=[];Ue=Ge.pop();)if(Ne(Ue),Re=Ue.children,Re)for(Ve=0,ct=Re.length;Ve=0;--Re)Ge.push(je[Re]);return this}function p(Ne){for(var Ue=this,Ge=[Ue],je=[],Re,Ve,ct;Ue=Ge.pop();)if(je.push(Ue),Re=Ue.children,Re)for(Ve=0,ct=Re.length;Ve=0;)Ge+=je[Re].value;Ue.value=Ge})}function v(Ne){return this.eachBefore(function(Ue){Ue.children&&Ue.children.sort(Ne)})}function m(Ne){for(var Ue=this,Ge=g(Ue,Ne),je=[Ue];Ue!==Ge;)Ue=Ue.parent,je.push(Ue);for(var Re=je.length;Ne!==Ge;)je.splice(Re,0,Ne),Ne=Ne.parent;return je}function g(Ne,Ue){if(Ne===Ue)return Ne;var Ge=Ne.ancestors(),je=Ue.ancestors(),Re=null;for(Ne=Ge.pop(),Ue=je.pop();Ne===Ue;)Re=Ne,Ne=Ge.pop(),Ue=je.pop();return Re}function w(){for(var Ne=this,Ue=[Ne];Ne=Ne.parent;)Ue.push(Ne);return Ue}function _(){var Ne=[];return this.each(function(Ue){Ne.push(Ue)}),Ne}function b(){var Ne=[];return this.eachBefore(function(Ue){Ue.children||Ne.push(Ue)}),Ne}function S(){var Ne=this,Ue=[];return Ne.each(function(Ge){Ge!==Ne&&Ue.push({source:Ge.parent,target:Ge})}),Ue}function x(Ne,Ue){var Ge=new M(Ne),je=+Ne.value&&(Ge.value=Ne.value),Re,Ve=[Ge],ct,Tt,Zt,Gt;for(Ue==null&&(Ue=A);Re=Ve.pop();)if(je&&(Re.value=+Re.data.value),(Tt=Ue(Re.data))&&(Gt=Tt.length))for(Re.children=new Array(Gt),Zt=Gt-1;Zt>=0;--Zt)Ve.push(ct=Re.children[Zt]=new M(Tt[Zt])),ct.parent=Re,ct.depth=Re.depth+1;return Ge.eachBefore(E)}function T(){return x(this).eachBefore(y)}function A(Ne){return Ne.children}function y(Ne){Ne.data=Ne.data.data}function E(Ne){var Ue=0;do Ne.height=Ue;while((Ne=Ne.parent)&&Ne.height<++Ue)}function M(Ne){this.data=Ne,this.depth=this.height=0,this.parent=null}M.prototype=x.prototype={constructor:M,count:c,each:f,eachAfter:p,eachBefore:h,sum:d,sort:v,path:m,ancestors:w,descendants:_,leaves:b,links:S,copy:T};var C=Array.prototype.slice;function k(Ne){for(var Ue=Ne.length,Ge,je;Ue;)je=Math.random()*Ue--|0,Ge=Ne[Ue],Ne[Ue]=Ne[je],Ne[je]=Ge;return Ne}function D(Ne){for(var Ue=0,Ge=(Ne=k(C.call(Ne))).length,je=[],Re,Ve;Ue0&&Ge*Ge>je*je+Re*Re}function F(Ne,Ue){for(var Ge=0;GeZt?(Re=(Gt+Zt-Ve)/(2*Gt),Tt=Math.sqrt(Math.max(0,Zt/Gt-Re*Re)),Ge.x=Ne.x-Re*je-Tt*ct,Ge.y=Ne.y-Re*ct+Tt*je):(Re=(Gt+Ve-Zt)/(2*Gt),Tt=Math.sqrt(Math.max(0,Ve/Gt-Re*Re)),Ge.x=Ue.x+Re*je-Tt*ct,Ge.y=Ue.y+Re*ct+Tt*je)):(Ge.x=Ue.x+Ge.r,Ge.y=Ue.y)}function K(Ne,Ue){var Ge=Ne.r+Ue.r-1e-6,je=Ue.x-Ne.x,Re=Ue.y-Ne.y;return Ge>0&&Ge*Ge>je*je+Re*Re}function j(Ne){var Ue=Ne._,Ge=Ne.next._,je=Ue.r+Ge.r,Re=(Ue.x*Ge.r+Ge.x*Ue.r)/je,Ve=(Ue.y*Ge.r+Ge.y*Ue.r)/je;return Re*Re+Ve*Ve}function q(Ne){this._=Ne,this.next=null,this.previous=null}function Q(Ne){if(!(Re=Ne.length))return 0;var Ue,Ge,je,Re,Ve,ct,Tt,Zt,Gt,ur,cr;if(Ue=Ne[0],Ue.x=0,Ue.y=0,!(Re>1))return Ue.r;if(Ge=Ne[1],Ue.x=-Ge.r,Ge.x=Ue.r,Ge.y=0,!(Re>2))return Ue.r+Ge.r;Y(Ge,Ue,je=Ne[2]),Ue=new q(Ue),Ge=new q(Ge),je=new q(je),Ue.next=je.previous=Ge,Ge.next=Ue.previous=je,je.next=Ge.previous=Ue;e:for(Tt=3;Tt0)throw new Error("cycle");return Tt}return Ge.id=function(je){return arguments.length?(Ne=X(je),Ge):Ne},Ge.parentId=function(je){return arguments.length?(Ue=X(je),Ge):Ue},Ge}function re(Ne,Ue){return Ne.parent===Ue.parent?1:2}function pe(Ne){var Ue=Ne.children;return Ue?Ue[0]:Ne.t}function we(Ne){var Ue=Ne.children;return Ue?Ue[Ue.length-1]:Ne.t}function Fe(Ne,Ue,Ge){var je=Ge/(Ue.i-Ne.i);Ue.c-=je,Ue.s+=Ge,Ne.c+=je,Ue.z+=Ge,Ue.m+=Ge}function Ee(Ne){for(var Ue=0,Ge=0,je=Ne.children,Re=je.length,Ve;--Re>=0;)Ve=je[Re],Ve.z+=Ue,Ve.m+=Ue,Ue+=Ve.s+(Ge+=Ve.c)}function Ce(Ne,Ue,Ge){return Ne.a.parent===Ue.parent?Ne.a:Ge}function be(Ne,Ue){this._=Ne,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=Ue}be.prototype=Object.create(M.prototype);function Ie(Ne){for(var Ue=new be(Ne,0),Ge,je=[Ue],Re,Ve,ct,Tt;Ge=je.pop();)if(Ve=Ge._.children)for(Ge.children=new Array(Tt=Ve.length),ct=Tt-1;ct>=0;--ct)je.push(Re=Ge.children[ct]=new be(Ve[ct],ct)),Re.parent=Ge;return(Ue.parent=new be(null,0)).children=[Ue],Ue}function Oe(){var Ne=re,Ue=1,Ge=1,je=null;function Re(Gt){var ur=Ie(Gt);if(ur.eachAfter(Ve),ur.parent.m=-ur.z,ur.eachBefore(ct),je)Gt.eachBefore(Zt);else{var cr=Gt,qt=Gt,Kt=Gt;Gt.eachBefore(function(xt){xt.xqt.x&&(qt=xt),xt.depth>Kt.depth&&(Kt=xt)});var Cr=cr===qt?1:Ne(cr,qt)/2,$e=Cr-cr.x,tt=Ue/(qt.x+Cr+$e),st=Ge/(Kt.depth||1);Gt.eachBefore(function(xt){xt.x=(xt.x+$e)*tt,xt.y=xt.depth*st})}return Gt}function Ve(Gt){var ur=Gt.children,cr=Gt.parent.children,qt=Gt.i?cr[Gt.i-1]:null;if(ur){Ee(Gt);var Kt=(ur[0].z+ur[ur.length-1].z)/2;qt?(Gt.z=qt.z+Ne(Gt._,qt._),Gt.m=Gt.z-Kt):Gt.z=Kt}else qt&&(Gt.z=qt.z+Ne(Gt._,qt._));Gt.parent.A=Tt(Gt,qt,Gt.parent.A||cr[0])}function ct(Gt){Gt._.x=Gt.z+Gt.parent.m,Gt.m+=Gt.parent.m}function Tt(Gt,ur,cr){if(ur){for(var qt=Gt,Kt=Gt,Cr=ur,$e=qt.parent.children[0],tt=qt.m,st=Kt.m,xt=Cr.m,Je=$e.m,Ct;Cr=we(Cr),qt=pe(qt),Cr&&qt;)$e=pe($e),Kt=we(Kt),Kt.a=Gt,Ct=Cr.z+xt-qt.z-tt+Ne(Cr._,qt._),Ct>0&&(Fe(Ce(Cr,Gt,cr),Gt,Ct),tt+=Ct,st+=Ct),xt+=Cr.m,tt+=qt.m,Je+=$e.m,st+=Kt.m;Cr&&!we(Kt)&&(Kt.t=Cr,Kt.m+=xt-st),qt&&!pe($e)&&($e.t=qt,$e.m+=tt-Je,cr=Gt)}return cr}function Zt(Gt){Gt.x*=Ue,Gt.y=Gt.depth*Ge}return Re.separation=function(Gt){return arguments.length?(Ne=Gt,Re):Ne},Re.size=function(Gt){return arguments.length?(je=!1,Ue=+Gt[0],Ge=+Gt[1],Re):je?null:[Ue,Ge]},Re.nodeSize=function(Gt){return arguments.length?(je=!0,Ue=+Gt[0],Ge=+Gt[1],Re):je?[Ue,Ge]:null},Re}function Qe(Ne,Ue,Ge,je,Re){for(var Ve=Ne.children,ct,Tt=-1,Zt=Ve.length,Gt=Ne.value&&(Re-Ge)/Ne.value;++Ttxt&&(xt=Gt),dr=tt*tt*nr,Je=Math.max(xt/dr,dr/st),Je>Ct){tt-=Gt;break}Ct=Je}ct.push(Zt={value:tt,dice:Kt1?je:1)},Ge})(et);function vt(){var Ne=ut,Ue=!1,Ge=1,je=1,Re=[0],Ve=G,ct=G,Tt=G,Zt=G,Gt=G;function ur(qt){return qt.x0=qt.y0=0,qt.x1=Ge,qt.y1=je,qt.eachBefore(cr),Re=[0],Ue&&qt.eachBefore(_e),qt}function cr(qt){var Kt=Re[qt.depth],Cr=qt.x0+Kt,$e=qt.y0+Kt,tt=qt.x1-Kt,st=qt.y1-Kt;tt=qt-1){var xt=Ve[cr];xt.x0=Cr,xt.y0=$e,xt.x1=tt,xt.y1=st;return}for(var Je=Gt[cr],Ct=Kt/2+Je,nr=cr+1,dr=qt-1;nr>>1;Gt[Vr]st-$e){var Pr=(Cr*ti+tt*ui)/Kt;ur(cr,nr,ui,Cr,$e,Pr,st),ur(nr,qt,ti,Pr,$e,tt,st)}else{var Xi=($e*ti+st*ui)/Kt;ur(cr,nr,ui,Cr,$e,tt,Xi),ur(nr,qt,ti,Cr,Xi,tt,st)}}}function mt(Ne,Ue,Ge,je,Re){(Ne.depth&1?Qe:he)(Ne,Ue,Ge,je,Re)}var _t=(function Ne(Ue){function Ge(je,Re,Ve,ct,Tt){if((Zt=je._squarify)&&Zt.ratio===Ue)for(var Zt,Gt,ur,cr,qt=-1,Kt,Cr=Zt.length,$e=je.value;++qt1?je:1)},Ge})(et);e.cluster=l,e.hierarchy=x,e.pack=te,e.packEnclose=D,e.packSiblings=U,e.partition=oe,e.stratify=xe,e.tree=Oe,e.treemap=vt,e.treemapBinary=Xe,e.treemapDice=he,e.treemapResquarify=_t,e.treemapSlice=Qe,e.treemapSliceDice=mt,e.treemapSquarify=ut,Object.defineProperty(e,"__esModule",{value:!0})})});var lE=W(sE=>{"use strict";var SRe=oE(),IQt=un(),b4=it(),RQt=es().makeColorScaleFuncFromTrace,zQt=m4().makePullColorFn,BQt=m4().generateExtendedColors,qQt=es().calc,OQt=(ta(),Pt(ra)).ALMOST_EQUAL,NQt={},UQt={},VQt={};sE.calc=function(e,t){var r=e._fullLayout,i=t.ids,n=b4.isArrayOrTypedArray(i),a=t.labels,o=t.parents,s=t.values,l=b4.isArrayOrTypedArray(s),u=[],c={},f={},h=function(R,F){c[R]?c[R].push(F):c[R]=[F],f[F]=1},p=function(R){return R||typeof R=="number"},d=function(R){return!l||IQt(s[R])&&s[R]>=0},v,m,g;n?(v=Math.min(i.length,o.length),m=function(R){return p(i[R])&&d(R)},g=function(R){return String(i[R])}):(v=Math.min(a.length,o.length),m=function(R){return p(a[R])&&d(R)},g=function(R){return String(a[R])}),l&&(v=Math.min(v,s.length));for(var w=0;w1){for(var A=b4.randstr(),y=0;y{"use strict";var rJt=Ao().str2arr,iJt=Ao().sliceEq,$9e=Ao().readUInt32BE,nJt=rJt("8BPS\0");W9e.exports=function(e){if(!(e.length<22)&&iJt(e,0,nJt))return{width:$9e(e,18),height:$9e(e,14),type:"psd",mime:"image/vnd.adobe.photoshop",wUnits:"px",hUnits:"px"}}});var CK=W(kK=>{"use strict";kK.MAX_DATA_LENGTH=1024*10;var EK="[a-zA-Z_:][a-zA-Z0-9:._-]*",Z9e="[^\"'=<>`\\x00-\\x20]+",aJt="'[^']*'",oJt='"[^"]*"',sJt="(?:"+Z9e+"|"+aJt+"|"+oJt+")",lJt="(?:\\s+"+EK+"(?:\\s*=\\s*"+sJt+")?)",uJt="<[?][\\s\\S]*?[?]>",cJt="",fJt="",hJt="]*(?:\\[[\\s\\S]*?\\][^>]*)?>",dJt=new RegExp("^(?:\\s+|"+uJt+"|"+cJt+"|"+fJt+"|"+hJt+")*"),pJt=new RegExp("^<("+EK+")("+lJt+"*)\\s*/?>"),X9e=new RegExp("\\s+("+EK+")(?:\\s*=\\s*(?:("+Z9e+`)|'([^']*)'|"([^"]*)"))?`,"g"),vJt=/in$|mm$|cm$|pt$|pc$|px$|em$|ex$/;function g4(e){return typeof e=="number"&&isFinite(e)&&e>0}function G1(e){var t=e.slice(-2),r=t.match(vJt);return r===null?"px":r[0]}kK.parse=function(e){var t=e.match(dJt)[0],r=pJt.exec(t.length?e.slice(t.length):e);if(r){var i=r[1];if(!(i!=="svg"&&i.slice(-4)!==":svg")){var n={},a;for(X9e.lastIndex=0;(a=X9e.exec(r[2]))!==null;)n[a[1]]=a[2]!==void 0?a[2]:a[3]!==void 0?a[3]:a[4];var o=n.width,s=n.height,l=n.viewBox||n.viewbox;o&&o.indexOf("%")!==-1&&(o=void 0),s&&s.indexOf("%")!==-1&&(s=void 0);var u=parseFloat(o),c=parseFloat(s);if(o&&s)return!g4(u)||!g4(c)?void 0:{width:u,height:c,type:"svg",mime:"image/svg+xml",wUnits:G1(o),hUnits:G1(s)};var f=(l||"").trim().split(/[\s,]+/),h=parseFloat(f[2]),p=parseFloat(f[3]);if(!(!g4(h)||!g4(p))&&G1(f[2])===G1(f[3])){var d=h/p;return o?g4(u)?{width:u,height:u/d,type:"svg",mime:"image/svg+xml",wUnits:G1(o),hUnits:G1(o)}:void 0:s?g4(c)?{width:c*d,height:c,type:"svg",mime:"image/svg+xml",wUnits:G1(s),hUnits:G1(s)}:void 0:{width:h,height:p,type:"svg",mime:"image/svg+xml",wUnits:G1(f[2]),hUnits:G1(f[3])}}}}}});var J9e=W((GWr,K9e)=>{"use strict";var gJt=CK().parse,mJt=CK().MAX_DATA_LENGTH;K9e.exports=function(e){var t=0;e[0]===239&&e[1]===187&&e[2]===191&&(t=3);for(var r="",i=Math.min(e.length,t+mJt),n=t;n{"use strict";var tIe=Ao().str2arr,Q9e=Ao().sliceEq,yJt=Ao().readUInt16LE,xJt=Ao().readUInt16BE,bJt=Ao().readUInt32LE,_Jt=Ao().readUInt32BE,wJt=tIe("II*\0"),TJt=tIe("MM\0*");function gI(e,t,r){return r?xJt(e,t):yJt(e,t)}function DK(e,t,r){return r?_Jt(e,t):bJt(e,t)}function eIe(e,t,r){var i=gI(e,t+2,r),n=DK(e,t+4,r);return n!==1||i!==3&&i!==4?null:i===3?gI(e,t+8,r):DK(e,t+8,r)}rIe.exports=function(e){if(!(e.length<8)&&!(!Q9e(e,0,wJt)&&!Q9e(e,0,TJt))){var t=e[0]===77,r=DK(e,4,t)-8;if(!(r<0)){var i=r+8;if(!(e.length-i<2)){var n=gI(e,i+0,t)*12;if(!(n<=0)&&(i+=2,!(e.length-i{"use strict";var oIe=Ao().str2arr,nIe=Ao().sliceEq,aIe=Ao().readUInt16LE,FK=Ao().readUInt32LE,AJt=pI(),MJt=oIe("RIFF"),SJt=oIe("WEBP");function EJt(e,t){if(!(e[t+3]!==157||e[t+4]!==1||e[t+5]!==42))return{width:aIe(e,t+6)&16383,height:aIe(e,t+8)&16383,type:"webp",mime:"image/webp",wUnits:"px",hUnits:"px"}}function kJt(e,t){if(e[t]===47){var r=FK(e,t+1);return{width:(r&16383)+1,height:(r>>14&16383)+1,type:"webp",mime:"image/webp",wUnits:"px",hUnits:"px"}}}function CJt(e,t){return{width:(e[t+6]<<16|e[t+5]<<8|e[t+4])+1,height:(e[t+9]<<16|e[t+8]<<8|e[t+7])+1,type:"webp",mime:"image/webp",wUnits:"px",hUnits:"px"}}sIe.exports=function(e){if(!(e.length<16)&&!(!nIe(e,0,MJt)||!nIe(e,8,SJt))){var t=12,r=null,i=0,n=FK(e,4)+8;if(!(n>e.length)){for(;t+8=10?r=r||EJt(e,t+8):a==="VP8L"&&o>=5?r=r||kJt(e,t+8):a==="VP8X"&&o>=10?r=r||CJt(e,t+8):a==="EXIF"&&(i=AJt.get_orientation(e.slice(t+8,t+8+o)),t=1/0),t+=8+o}if(r)return i>0&&(r.orientation=i),r}}}});var cIe=W(($Wr,uIe)=>{"use strict";uIe.exports={avif:E9e(),bmp:F9e(),gif:z9e(),ico:q9e(),jpeg:N9e(),png:j9e(),psd:Y9e(),svg:J9e(),tiff:iIe(),webp:lIe()}});var fIe=W((WWr,PK)=>{"use strict";var LK=cIe();function DJt(e){for(var t=Object.keys(LK),r=0;r0&&i.height>0?i:null}return null}PK.exports=function(t){return DJt(t)};PK.exports.parsers=LK});var dIe=W(hIe=>{"use strict";var FJt=fIe(),LJt=em().IMAGE_URL_PREFIX,PJt=t_().Buffer;hIe.getImageSize=function(e){var t=e.replace(LJt,""),r=new PJt(t,"base64");return FJt(r)}});var gIe=W((XWr,vIe)=>{"use strict";var pIe=tt(),IJt=(j5(),Pt(yS)),RJt=hn(),mI=Yi(),zJt=tt().maxRowLength,BJt=dIe().getImageSize;vIe.exports=function(t,r){var i,n;if(r._hasZ)i=r.z.length,n=zJt(r.z);else if(r._hasSource){var a=BJt(r.source);i=a.height,n=a.width}var o=mI.getFromId(t,r.xaxis||"x"),s=mI.getFromId(t,r.yaxis||"y"),l=o.d2c(r.x0)-r.dx/2,u=s.d2c(r.y0)-r.dy/2,c,f=[l,l+n*r.dx],h=[u,u+i*r.dy];if(o&&o.type==="log")for(c=0;c{"use strict";var UJt=gi(),g_=tt(),mIe=g_.strTranslate,VJt=(md(),Pt(gd)),GJt=(j5(),Pt(yS)),HJt=mY(),jJt=(cP(),Pt(uP)).STYLE;yIe.exports=function(t,r,i,n){var a=r.xaxis,o=r.yaxis,s=!t._context._exportedPlot&&HJt();g_.makeTraceGroups(n,i,"im").each(function(l){var u=UJt.select(this),c=l[0],f=c.trace,h=(f.zsmooth==="fast"||f.zsmooth===!1&&s)&&!f._hasZ&&f._hasSource&&a.type==="linear"&&o.type==="linear";f._realImage=h;var p=c.z,d=c.x0,v=c.y0,m=c.w,g=c.h,w=f.dx,_=f.dy,b,S,x,A,T,y;for(y=0;b===void 0&&y0;)S=a.c2p(d+y*w),y--;for(y=0;A===void 0&&y0;)T=o.c2p(v+y*_),y--;if(SI[0];if(B||O){var $=b+M/2,X=A+C/2;R+="transform:"+mIe($+"px",X+"px")+"scale("+(B?-1:1)+","+(O?-1:1)+")"+mIe(-$+"px",-X+"px")+";"}}P.attr("style",R);var K=new Promise(function(G){if(f._hasZ)G();else if(f._hasSource)if(f._canvas&&f._canvas.el.width===m&&f._canvas.el.height===g&&f._canvas.source===f.source)G();else{var q=document.createElement("canvas");q.width=m,q.height=g;var J=q.getContext("2d",{willReadFrequently:!0});f._image=f._image||new Image;var N=f._image;N.onload=function(){J.drawImage(N,0,0),f._canvas={el:q,source:f.source},G()},N.setAttribute("src",f.source)}}).then(function(){var G,q;if(f._hasZ)q=F(function(V,Y){var H=p[Y][V];return g_.isTypedArray(H)&&(H=Array.from(H)),H}),G=q.toDataURL("image/png");else if(f._hasSource)if(h)G=f.source;else{var J=f._canvas.el.getContext("2d",{willReadFrequently:!0}),N=J.getImageData(0,0,m,g).data;q=F(function(V,Y){var H=4*(Y*m+V);return[N[H],N[H+1],N[H+2],N[H+3]]}),G=q.toDataURL("image/png")}P.attr({"xlink:href":G,height:C,width:M,x:b,y:A})});t._promises.push(K)})}});var _Ie=W((KWr,bIe)=>{"use strict";var $Jt=gi();bIe.exports=function(t){$Jt.select(t).selectAll(".im image").style("opacity",function(r){return r[0].trace.opacity})}});var MIe=W((JWr,AIe)=>{"use strict";var wIe=Is(),TIe=tt(),yI=TIe.isArrayOrTypedArray,WJt=(j5(),Pt(yS));AIe.exports=function(t,r,i){var n=t.cd[0],a=n.trace,o=t.xa,s=t.ya;if(!(wIe.inbox(r-n.x0,r-(n.x0+n.w*a.dx),0)>0||wIe.inbox(i-n.y0,i-(n.y0+n.h*a.dy),0)>0)){var l=Math.floor((r-n.x0)/a.dx),u=Math.floor(Math.abs(i-n.y0)/a.dy),c;if(a._hasZ?c=n.z[u][l]:a._hasSource&&(c=a._canvas.el.getContext("2d",{willReadFrequently:!0}).getImageData(l,u,1,1).data),!!c){var f=n.hi||a.hoverinfo,h;if(f){var p=f.split("+");p.indexOf("all")!==-1&&(p=["color"]),p.indexOf("color")!==-1&&(h=!0)}var d=WJt.colormodel[a.colormodel],v=d.colormodel||a.colormodel,m=v.length,g=a._scaler(c),w=d.suffix,_=[];(a.hovertemplate||h)&&(_.push("["+[g[0]+w[0],g[1]+w[1],g[2]+w[2]].join(", ")),m===4&&_.push(", "+g[3]+w[3]),_.push("]"),_=_.join(""),t.extraText=v.toUpperCase()+": "+_);var b;yI(a.hovertext)&&yI(a.hovertext[u])?b=a.hovertext[u][l]:yI(a.text)&&yI(a.text[u])&&(b=a.text[u][l]);var S=s.c2p(n.y0+(u+.5)*a.dy),x=n.x0+(l+.5)*a.dx,A=n.y0+(u+.5)*a.dy,T="["+c.slice(0,a.colormodel.length).join(", ")+"]";return[TIe.extendFlat(t,{index:[u,l],x0:o.c2p(n.x0+l*a.dx),x1:o.c2p(n.x0+(l+1)*a.dx),y0:S,y1:S,color:g,xVal:x,xLabelVal:x,yVal:A,yLabelVal:A,zLabelVal:T,text:b,hovertemplateLabels:{zLabel:T,colorLabel:_,"color[0]Label":g[0]+w[0],"color[1]Label":g[1]+w[1],"color[2]Label":g[2]+w[2],"color[3]Label":g[3]+w[3]}})]}}}});var EIe=W((QWr,SIe)=>{"use strict";SIe.exports=function(t,r){return"xVal"in r&&(t.x=r.xVal),"yVal"in r&&(t.y=r.yVal),r.xa&&(t.xaxis=r.xa),r.ya&&(t.yaxis=r.ya),t.color=r.color,t.colormodel=r.trace.colormodel,t.z||(t.z=r.color),t}});var CIe=W((eYr,kIe)=>{"use strict";kIe.exports={attributes:(kX(),Pt(EX)).default,supplyDefaults:p8e(),calc:gIe(),plot:xIe(),style:_Ie(),hoverPoints:MIe(),eventData:EIe(),moduleType:"trace",name:"image",basePlotModule:xl(),categories:["cartesian","svg","2dMap","noSortingByValue"],animatable:!1,meta:{}}});var FIe=W((tYr,DIe)=>{"use strict";DIe.exports=CIe()});var m_=W((rYr,PIe)=>{"use strict";var xI=Ja(),YJt=ds().attributes,XJt=jo(),ZJt=Yl(),{hovertemplateAttrs:KJt,texttemplateAttrs:JJt,templatefallbackAttrs:LIe}=Wa(),M2=an().extendFlat,QJt=zu().pattern,bI=XJt({editType:"plot",arrayOk:!0,colorEditType:"plot"});PIe.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:ZJt.defaultLine,arrayOk:!0,editType:"style"},width:{valType:"number",min:0,dflt:0,arrayOk:!0,editType:"style"},editType:"calc"},pattern:QJt,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:M2({},xI.hoverinfo,{flags:["label","text","value","percent","name"]}),hovertemplate:KJt({},{keys:["label","color","value","percent","text"]}),hovertemplatefallback:LIe(),texttemplate:JJt({editType:"plot"},{keys:["label","color","value","percent","text"]}),texttemplatefallback:LIe({editType:"plot"}),textposition:{valType:"enumerated",values:["inside","outside","auto","none"],dflt:"auto",arrayOk:!0,editType:"plot"},textfont:M2({},bI,{}),insidetextorientation:{valType:"enumerated",values:["horizontal","radial","tangential","auto"],dflt:"auto",editType:"plot"},insidetextfont:M2({},bI,{}),outsidetextfont:M2({},bI,{}),automargin:{valType:"boolean",dflt:!1,editType:"plot"},showlegend:M2({},xI.showlegend,{arrayOk:!0}),legend:M2({},xI.legend,{arrayOk:!0}),legendrank:M2({},xI.legendrank,{arrayOk:!0}),title:{text:{valType:"string",dflt:"",editType:"plot"},font:M2({},bI,{}),position:{valType:"enumerated",values:["top left","top center","top right","middle center","bottom left","bottom center","bottom right"],editType:"plot"},editType:"plot"},domain:YJt({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"}}});var y_=W((iYr,zIe)=>{"use strict";var eQt=hn(),aE=tt(),tQt=m_(),rQt=ds().defaults,iQt=I0().handleText,nQt=tt().coercePattern;function IIe(e,t){var r=aE.isArrayOrTypedArray(e),i=aE.isArrayOrTypedArray(t),n=Math.min(r?e.length:1/0,i?t.length:1/0);if(isFinite(n)||(n=0),n&&i){for(var a,o=0;o0){a=!0;break}}a||(n=0)}return{hasLabels:r,hasValues:i,len:n}}function RIe(e,t,r,i,n){var a=i("marker.line.width");a&&i("marker.line.color",n?void 0:r.paper_bgcolor);var o=i("marker.colors");nQt(i,"marker.pattern",o),e.marker&&!t.marker.pattern.fgcolor&&(t.marker.pattern.fgcolor=e.marker.colors),t.marker.pattern.bgcolor||(t.marker.pattern.bgcolor=r.paper_bgcolor)}function aQt(e,t,r,i){function n(w,_){return aE.coerce(e,t,tQt,w,_)}var a=n("labels"),o=n("values"),s=IIe(a,o),l=s.len;if(t._hasLabels=s.hasLabels,t._hasValues=s.hasValues,!t._hasLabels&&t._hasValues&&(n("label0"),n("dlabel")),!l){t.visible=!1;return}t._length=l,RIe(e,t,i,n,!0),n("scalegroup");var u=n("text"),c=n("texttemplate");n("texttemplatefallback");var f;if(c||(f=n("textinfo",aE.isArrayOrTypedArray(u)?"text+percent":"percent")),n("hovertext"),n("hovertemplate"),n("hovertemplatefallback"),c||f&&f!=="none"){var h=n("textposition");iQt(e,t,i,n,h,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1});var p=Array.isArray(h)||h==="auto",d=p||h==="outside";d&&n("automargin"),(h==="inside"||h==="auto"||Array.isArray(h))&&n("insidetextorientation")}else f==="none"&&n("textposition","none");rQt(t,i,n);var v=n("hole"),m=n("title.text");if(m){var g=n("title.position",v?"middle center":"top center");!v&&g==="middle center"&&(t.title.position="top center"),aE.coerceFont(n,"title.font",i.font)}n("sort"),n("direction"),n("rotation"),n("pull")}zIe.exports={handleLabelsAndValues:IIe,handleMarkerDefaults:RIe,supplyDefaults:aQt}});var _I=W((nYr,BIe)=>{"use strict";BIe.exports={hiddenlabels:{valType:"data_array",editType:"calc"},piecolorway:{valType:"colorlist",editType:"calc"},extendpiecolors:{valType:"boolean",dflt:!0,editType:"calc"}}});var OIe=W((aYr,qIe)=>{"use strict";var oQt=tt(),sQt=_I();qIe.exports=function(t,r){function i(n,a){return oQt.coerce(t,r,sQt,n,a)}i("hiddenlabels"),i("piecolorway",r.colorway),i("extendpiecolors")}});var y4=W((oYr,VIe)=>{"use strict";var lQt=hn(),m4=ti(),uQt={};function cQt(e,t){var r=[],i=e._fullLayout,n=i.hiddenlabels||[],a=t.labels,o=t.marker.colors||[],s=t.values,l=t._length,u=t._hasValues&&l,c,f;if(t.dlabel)for(a=new Array(l),c=0;c=0});var b=t.type==="funnelarea"?v:t.sort;return b&&r.sort(function(S,x){return x.v-S.v}),r[0]&&(r[0].vTotal=d),r}function NIe(e){return function(r,i){if(!r||!m4.isValid(r))return!1;let n=m4.rgbaString(r);return e[i]||(e[i]=n),n}}function fQt(e,t){var r=(t||{}).type;r||(r="pie");var i=e._fullLayout,n=e.calcdata,a=i[r+"colorway"],o=i["_"+r+"colormap"];i["extend"+r+"colors"]&&(a=UIe(a,uQt));for(var s=0,l=0;l{"use strict";var hQt=ah().appendArrayMultiPointValues;GIe.exports=function(t,r){var i={curveNumber:r.index,pointNumbers:t.pts,data:r._input,fullData:r,label:t.label,color:t.color,value:t.v,percent:t.percent,text:t.text,bbox:t.bbox,v:t.v};return t.pts.length===1&&(i.pointNumber=i.i=t.pts[0]),hQt(i,r,t.pts),r.type==="funnelarea"&&(delete i.v,delete i.i),i}});var MI=W((lYr,fRe)=>{"use strict";var Jh=gi(),dQt=Qo(),wI=Is(),ZIe=ti(),vm=Qi(),Pc=tt(),pQt=Pc.strScale,jIe=Pc.strTranslate,IK=ao(),KIe=of(),vQt=KIe.recordMinTextSize,gQt=KIe.clearMinTextSize,JIe=(Qy(),Pt(Jy)).TEXTPAD,Rn=Gy(),TI=HIe(),$Ie=tt().isValidTextValue;function mQt(e,t){var r=e._context.staticPlot,i=e._fullLayout,n=i._size;gQt("pie",i),tRe(t,e),lRe(t,n);var a=Pc.makeTraceGroups(i._pielayer,t,"trace").each(function(o){var s=Jh.select(this),l=o[0],u=l.trace;SQt(o),s.attr("stroke-linejoin","round"),s.each(function(){var c=Jh.select(this).selectAll("g.slice").data(o);c.enter().append("g").classed("slice",!0),c.exit().remove();var f=[[[],[]],[[],[]]],h=!1;c.each(function(b,S){if(b.hidden){Jh.select(this).selectAll("path,g").remove();return}b.pointNumber=b.i,b.curveNumber=u.index,f[b.pxmid[1]<0?0:1][b.pxmid[0]<0?0:1].push(b);var x=l.cx,A=l.cy,T=Jh.select(this),y=T.selectAll("path.surface").data([b]);if(y.enter().append("path").classed("surface",!0).style({"pointer-events":r?"none":"all"}),T.call(QIe,e,o),u.pull){var E=+Rn.castOption(u.pull,b.pts)||0;E>0&&(x+=E*b.pxmid[0],A+=E*b.pxmid[1])}b.cxFinal=x,b.cyFinal=A;function M(L,I,B,O){var $=O*(I[0]-L[0]),X=O*(I[1]-L[1]);return"a"+O*l.r+","+O*l.r+" 0 "+b.largeArc+(B?" 1 ":" 0 ")+$+","+X}var C=u.hole;if(b.v===l.vTotal){var k="M"+(x+b.px0[0])+","+(A+b.px0[1])+M(b.px0,b.pxmid,!0,1)+M(b.pxmid,b.px0,!0,1)+"Z";C?y.attr("d","M"+(x+C*b.px0[0])+","+(A+C*b.px0[1])+M(b.px0,b.pxmid,!1,C)+M(b.pxmid,b.px0,!1,C)+"Z"+k):y.attr("d",k)}else{var D=M(b.px0,b.px1,!0,1);if(C){var F=1-C;y.attr("d","M"+(x+C*b.px1[0])+","+(A+C*b.px1[1])+M(b.px1,b.px0,!1,C)+"l"+F*b.px0[0]+","+F*b.px0[1]+D+"Z")}else y.attr("d","M"+x+","+A+"l"+b.px0[0]+","+b.px0[1]+D+"Z")}uRe(e,b,l);var P=Rn.castOption(u.textposition,b.pts),R=T.selectAll("g.slicetext").data(b.text&&P!=="none"?[0]:[]);R.enter().append("g").classed("slicetext",!0),R.exit().remove(),R.each(function(){var L=Pc.ensureSingle(Jh.select(this),"text","",function(q){q.attr("data-notex",1)}),I=Pc.ensureUniformFontSize(e,P==="outside"?xQt(u,b,i.font):eRe(u,b,i.font));L.text(b.text).attr({class:"slicetext",transform:"","text-anchor":"middle"}).call(vm.font,I).call(IK.convertToTspans,e);var B=vm.bBox(L.node()),O;if(P==="outside")O=XIe(B,b);else if(O=rRe(B,b,l),P==="auto"&&O.scale<1){var $=Pc.ensureUniformFontSize(e,u.outsidetextfont);L.call(vm.font,$),B=vm.bBox(L.node()),O=XIe(B,b)}var X=O.textPosAngle,K=X===void 0?b.pxmid:AI(l.r,X);if(O.targetX=x+K[0]*O.rCenter+(O.x||0),O.targetY=A+K[1]*O.rCenter+(O.y||0),cRe(O,B),O.outside){var G=O.targetY;b.yLabelMin=G-B.height/2,b.yLabelMid=G,b.yLabelMax=G+B.height/2,b.labelExtraX=0,b.labelExtraY=0,h=!0}O.fontSize=I.size,vQt(u.type,O,i),o[S].transform=O,Pc.setTransormAndDisplay(L,O)})});var p=Jh.select(this).selectAll("g.titletext").data(u.title.text?[0]:[]);if(p.enter().append("g").classed("titletext",!0),p.exit().remove(),p.each(function(){var b=Pc.ensureSingle(Jh.select(this),"text","",function(A){A.attr("data-notex",1)}),S=u.title.text;u._meta&&(S=Pc.templateString(S,u._meta)),b.text(S).attr({class:"titletext",transform:"","text-anchor":"middle"}).call(vm.font,u.title.font).call(IK.convertToTspans,e);var x;u.title.position==="middle center"?x=wQt(l):x=oRe(l,n),b.attr("transform",jIe(x.x,x.y)+pQt(Math.min(1,x.scale))+jIe(x.tx,x.ty))}),h&&AQt(f,u),yQt(c,u),h&&u.automargin){var d=vm.bBox(s.node()),v=u.domain,m=n.w*(v.x[1]-v.x[0]),g=n.h*(v.y[1]-v.y[0]),w=(.5*m-l.r)/n.w,_=(.5*g-l.r)/n.h;dQt.autoMargin(e,"pie."+u.uid+".automargin",{xl:v.x[0]-w,xr:v.x[1]+w,yb:v.y[0]-_,yt:v.y[1]+_,l:Math.max(l.cx-l.r-d.left,0),r:Math.max(d.right-(l.cx+l.r),0),b:Math.max(d.bottom-(l.cy+l.r),0),t:Math.max(l.cy-l.r-d.top,0),pad:5})}})});setTimeout(function(){a.selectAll("tspan").each(function(){var o=Jh.select(this);o.attr("dy")&&o.attr("dy",o.attr("dy"))})},0)}function yQt(e,t){e.each(function(r){var i=Jh.select(this);if(!r.labelExtraX&&!r.labelExtraY){i.select("path.textline").remove();return}var n=i.select("g.slicetext text");r.transform.targetX+=r.labelExtraX,r.transform.targetY+=r.labelExtraY,Pc.setTransormAndDisplay(n,r.transform);var a=r.cxFinal+r.pxmid[0],o=r.cyFinal+r.pxmid[1],s="M"+a+","+o,l=(r.yLabelMax-r.yLabelMin)*(r.pxmid[0]<0?-1:1)/4;if(r.labelExtraX){var u=r.labelExtraX*r.pxmid[1]/r.pxmid[0],c=r.yLabelMid+r.labelExtraY-(r.cyFinal+r.pxmid[1]);Math.abs(u)>Math.abs(c)?s+="l"+c*r.pxmid[0]/r.pxmid[1]+","+c+"H"+(a+r.labelExtraX+l):s+="l"+r.labelExtraX+","+u+"v"+(c-u)+"h"+l}else s+="V"+(r.yLabelMid+r.labelExtraY)+"h"+l;Pc.ensureSingle(i,"path","textline").call(ZIe.stroke,t.outsidetextfont.color).attr({"stroke-width":Math.min(2,t.outsidetextfont.size/8),d:s,fill:"none"})})}function QIe(e,t,r){var i=r[0],n=i.cx,a=i.cy,o=i.trace,s=o.type==="funnelarea";"_hasHoverLabel"in o||(o._hasHoverLabel=!1),"_hasHoverEvent"in o||(o._hasHoverEvent=!1),e.on("mouseover",function(l){var u=t._fullLayout,c=t._fullData[o.index];if(!(t._dragging||u.hovermode===!1)){var f=c.hoverinfo;if(Array.isArray(f)&&(f=wI.castHoverinfo({hoverinfo:[Rn.castOption(f,l.pts)],_module:o._module},u,0)),f==="all"&&(f="label+text+value+percent+name"),c.hovertemplate||f!=="none"&&f!=="skip"&&f){var h=l.rInscribed||0,p=n+l.pxmid[0]*(1-h),d=a+l.pxmid[1]*(1-h),v=u.separators,m=[];if(f&&f.indexOf("label")!==-1&&m.push(l.label),l.text=Rn.castOption(c.hovertext||c.text,l.pts),f&&f.indexOf("text")!==-1){var g=l.text;Pc.isValidTextValue(g)&&m.push(g)}l.value=l.v,l.valueLabel=Rn.formatPieValue(l.v,v),f&&f.indexOf("value")!==-1&&m.push(l.valueLabel),l.percent=l.v/i.vTotal,l.percentLabel=Rn.formatPiePercent(l.percent,v),f&&f.indexOf("percent")!==-1&&m.push(l.percentLabel);var w=c.hoverlabel,_=w.font,b=[];wI.loneHover({trace:o,x0:p-h*i.r,x1:p+h*i.r,y:d,_x0:s?n+l.TL[0]:p-h*i.r,_x1:s?n+l.TR[0]:p+h*i.r,_y0:s?a+l.TL[1]:d-h*i.r,_y1:s?a+l.BL[1]:d+h*i.r,text:m.join("
"),name:c.hovertemplate||f.indexOf("name")!==-1?c.name:void 0,idealAlign:l.pxmid[0]<0?"left":"right",color:Rn.castOption(w.bgcolor,l.pts)||l.color,borderColor:Rn.castOption(w.bordercolor,l.pts),fontFamily:Rn.castOption(_.family,l.pts),fontSize:Rn.castOption(_.size,l.pts),fontColor:Rn.castOption(_.color,l.pts),nameLength:Rn.castOption(w.namelength,l.pts),textAlign:Rn.castOption(w.align,l.pts),hovertemplate:Rn.castOption(c.hovertemplate,l.pts),hovertemplateLabels:l,eventData:[TI(l,c)]},{container:u._hoverlayer.node(),outerContainer:u._paper.node(),gd:t,inOut_bbox:b}),l.bbox=b[0],o._hasHoverLabel=!0}o._hasHoverEvent=!0,t.emit("plotly_hover",{points:[TI(l,c)],event:Jh.event})}}),e.on("mouseout",function(l){var u=t._fullLayout,c=t._fullData[o.index],f=Jh.select(this).datum();o._hasHoverEvent&&(l.originalEvent=Jh.event,t.emit("plotly_unhover",{points:[TI(f,c)],event:Jh.event}),o._hasHoverEvent=!1),o._hasHoverLabel&&(wI.loneUnhover(u._hoverlayer.node()),o._hasHoverLabel=!1)}),e.on("click",function(l){var u=t._fullLayout,c=t._fullData[o.index];t._dragging||u.hovermode===!1||(t._hoverdata=[TI(l,c)],wI.click(t,Jh.event))})}function xQt(e,t,r){var i=Rn.castOption(e.outsidetextfont.color,t.pts)||Rn.castOption(e.textfont.color,t.pts)||r.color,n=Rn.castOption(e.outsidetextfont.family,t.pts)||Rn.castOption(e.textfont.family,t.pts)||r.family,a=Rn.castOption(e.outsidetextfont.size,t.pts)||Rn.castOption(e.textfont.size,t.pts)||r.size,o=Rn.castOption(e.outsidetextfont.weight,t.pts)||Rn.castOption(e.textfont.weight,t.pts)||r.weight,s=Rn.castOption(e.outsidetextfont.style,t.pts)||Rn.castOption(e.textfont.style,t.pts)||r.style,l=Rn.castOption(e.outsidetextfont.variant,t.pts)||Rn.castOption(e.textfont.variant,t.pts)||r.variant,u=Rn.castOption(e.outsidetextfont.textcase,t.pts)||Rn.castOption(e.textfont.textcase,t.pts)||r.textcase,c=Rn.castOption(e.outsidetextfont.lineposition,t.pts)||Rn.castOption(e.textfont.lineposition,t.pts)||r.lineposition,f=Rn.castOption(e.outsidetextfont.shadow,t.pts)||Rn.castOption(e.textfont.shadow,t.pts)||r.shadow;return{color:i,family:n,size:a,weight:o,style:s,variant:l,textcase:u,lineposition:c,shadow:f}}function eRe(e,t,r){var i=Rn.castOption(e.insidetextfont.color,t.pts);!i&&e._input.textfont&&(i=Rn.castOption(e._input.textfont.color,t.pts));var n=Rn.castOption(e.insidetextfont.family,t.pts)||Rn.castOption(e.textfont.family,t.pts)||r.family,a=Rn.castOption(e.insidetextfont.size,t.pts)||Rn.castOption(e.textfont.size,t.pts)||r.size,o=Rn.castOption(e.insidetextfont.weight,t.pts)||Rn.castOption(e.textfont.weight,t.pts)||r.weight,s=Rn.castOption(e.insidetextfont.style,t.pts)||Rn.castOption(e.textfont.style,t.pts)||r.style,l=Rn.castOption(e.insidetextfont.variant,t.pts)||Rn.castOption(e.textfont.variant,t.pts)||r.variant,u=Rn.castOption(e.insidetextfont.textcase,t.pts)||Rn.castOption(e.textfont.textcase,t.pts)||r.textcase,c=Rn.castOption(e.insidetextfont.lineposition,t.pts)||Rn.castOption(e.textfont.lineposition,t.pts)||r.lineposition,f=Rn.castOption(e.insidetextfont.shadow,t.pts)||Rn.castOption(e.textfont.shadow,t.pts)||r.shadow;return{color:i||ZIe.contrast(t.color),family:n,size:a,weight:o,style:s,variant:l,textcase:u,lineposition:c,shadow:f}}function tRe(e,t){for(var r,i,n=0;n=-4;w-=2)g(Math.PI*w,"tan");for(w=4;w>=-4;w-=2)g(Math.PI*(w+1),"tan")}if(f||p){for(w=4;w>=-4;w-=2)g(Math.PI*(w+1.5),"rad");for(w=4;w>=-4;w-=2)g(Math.PI*(w+.5),"rad")}}if(s||d||f){var _=Math.sqrt(e.width*e.width+e.height*e.height);if(m={scale:n*i*2/_,rCenter:1-n,rotate:0},m.textPosAngle=(t.startangle+t.stopangle)/2,m.scale>=1)return m;v.push(m)}(d||p)&&(m=WIe(e,i,o,l,u),m.textPosAngle=(t.startangle+t.stopangle)/2,v.push(m)),(d||h)&&(m=YIe(e,i,o,l,u),m.textPosAngle=(t.startangle+t.stopangle)/2,v.push(m));for(var b=0,S=0,x=0;x=1)break}return v[b]}function bQt(e,t){var r=e.startangle,i=e.stopangle;return r>t&&t>i||r0?1:-1)/2,y:a/(1+r*r/(i*i)),outside:!0}}function wQt(e){var t=Math.sqrt(e.titleBox.width*e.titleBox.width+e.titleBox.height*e.titleBox.height);return{x:e.cx,y:e.cy,scale:e.trace.hole*e.r*2/t,tx:0,ty:-e.titleBox.height/2+e.trace.title.font.size}}function oRe(e,t){var r=1,i=1,n,a=e.trace,o={x:e.cx,y:e.cy},s={tx:0,ty:0};s.ty+=a.title.font.size,n=sRe(a),a.title.position.indexOf("top")!==-1?(o.y-=(1+n)*e.r,s.ty-=e.titleBox.height):a.title.position.indexOf("bottom")!==-1&&(o.y+=(1+n)*e.r);var l=TQt(e.r,e.trace.aspectratio),u=t.w*(a.domain.x[1]-a.domain.x[0])/2;return a.title.position.indexOf("left")!==-1?(u=u+l,o.x-=(1+n)*l,s.tx+=e.titleBox.width/2):a.title.position.indexOf("center")!==-1?u*=2:a.title.position.indexOf("right")!==-1&&(u=u+l,o.x+=(1+n)*l,s.tx-=e.titleBox.width/2),r=u/e.titleBox.width,i=RK(e,t)/e.titleBox.height,{x:o.x,y:o.y,scale:Math.min(r,i),tx:s.tx,ty:s.ty}}function TQt(e,t){return e/(t===void 0?1:t)}function RK(e,t){var r=e.trace,i=t.h*(r.domain.y[1]-r.domain.y[0]);return Math.min(e.titleBox.height,i/2)}function sRe(e){var t=e.pull;if(!t)return 0;var r;if(Pc.isArrayOrTypedArray(t))for(t=0,r=0;rt&&(t=e.pull[r]);return t}function AQt(e,t){var r,i,n,a,o,s,l,u,c,f,h,p,d;function v(_,b){return _.pxmid[1]-b.pxmid[1]}function m(_,b){return b.pxmid[1]-_.pxmid[1]}function g(_,b){b||(b={});var S=b.labelExtraY+(i?b.yLabelMax:b.yLabelMin),x=i?_.yLabelMin:_.yLabelMax,A=i?_.yLabelMax:_.yLabelMin,T=_.cyFinal+o(_.px0[1],_.px1[1]),y=S-x,E,M,C,k,D,F;if(y*l>0&&(_.labelExtraY=y),!!Pc.isArrayOrTypedArray(t.pull))for(M=0;M=(Rn.castOption(t.pull,C.pts)||0))&&((_.pxmid[1]-C.pxmid[1])*l>0?(k=C.cyFinal+o(C.px0[1],C.px1[1]),y=k-x-_.labelExtraY,y*l>0&&(_.labelExtraY+=y)):(A+_.labelExtraY-T)*l>0&&(E=3*s*Math.abs(M-f.indexOf(_)),D=C.cxFinal+a(C.px0[0],C.px1[0]),F=D+E-(_.cxFinal+_.pxmid[0])-_.labelExtraX,F*s>0&&(_.labelExtraX+=F)))}for(i=0;i<2;i++)for(n=i?v:m,o=i?Math.max:Math.min,l=i?1:-1,r=0;r<2;r++){for(a=r?Math.max:Math.min,s=r?1:-1,u=e[i][r],u.sort(n),c=e[1-i][r],f=c.concat(u),p=[],h=0;h1?(u=r.r,c=u/n.aspectratio):(c=r.r,u=c*n.aspectratio),u*=(1+n.baseratio)/2,l=u*c}o=Math.min(o,l/r.vTotal)}for(i=0;it.vTotal/2?1:0,u.halfangle=Math.PI*Math.min(u.v/t.vTotal,.5),u.ring=1-i.hole,u.rInscribed=_Qt(u,t))}function AI(e,t){return[e*Math.sin(t),-e*Math.cos(t)]}function uRe(e,t,r){var i=e._fullLayout,n=r.trace,a=n.texttemplate,o=n.textinfo;if(!a&&o&&o!=="none"){var s=o.split("+"),l=function(b){return s.indexOf(b)!==-1},u=l("label"),c=l("text"),f=l("value"),h=l("percent"),p=i.separators,d;if(d=u?[t.label]:[],c){var v=Rn.getFirstFilled(n.text,t.pts);$Ie(v)&&d.push(v)}f&&d.push(Rn.formatPieValue(t.v,p)),h&&d.push(Rn.formatPiePercent(t.v/r.vTotal,p)),t.text=d.join("
")}function m(b){return{label:b.label,value:b.v,valueLabel:Rn.formatPieValue(b.v,i.separators),percent:b.v/r.vTotal,percentLabel:Rn.formatPiePercent(b.v/r.vTotal,i.separators),color:b.color,text:b.text,customdata:Pc.castOption(n,b.i,"customdata")}}if(a){var g=Pc.castOption(n,t.i,"texttemplate");if(!g)t.text="";else{var w=m(t),_=Rn.getFirstFilled(n.text,t.pts);($Ie(_)||_==="")&&(w.text=_),t.text=Pc.texttemplateString({data:[w,n._meta],fallback:n.texttemplatefallback,labels:w,locale:e._fullLayout._d3locale,template:g})}}}function cRe(e,t){var r=e.rotate*Math.PI/180,i=Math.cos(r),n=Math.sin(r),a=(t.left+t.right)/2,o=(t.top+t.bottom)/2;e.textX=a*i-o*n,e.textY=a*n+o*i,e.noCenter=!0}fRe.exports={plot:mQt,formatSliceLabel:uRe,transformInsideText:rRe,determineInsideTextFont:eRe,positionTitleOutside:oRe,prerenderTitles:tRe,layoutAreas:lRe,attachFxHandlers:QIe,computeTransform:cRe}});var pRe=W((uYr,dRe)=>{"use strict";var hRe=gi(),EQt=Nw(),kQt=of().resizeText;dRe.exports=function(t){var r=t._fullLayout._pielayer.selectAll(".trace");kQt(t,r,"pie"),r.each(function(i){var n=i[0],a=n.trace,o=hRe.select(this);o.style({opacity:a.opacity}),o.selectAll("path.surface").each(function(s){hRe.select(this).call(EQt,s,a,t)})})}});var gRe=W(x4=>{"use strict";var vRe=Qo();x4.name="pie";x4.plot=function(e,t,r,i){vRe.plotBasePlot(x4.name,e,t,r,i)};x4.clean=function(e,t,r,i){vRe.cleanBasePlot(x4.name,e,t,r,i)}});var yRe=W((fYr,mRe)=>{"use strict";mRe.exports={attributes:m_(),supplyDefaults:y_().supplyDefaults,supplyLayoutDefaults:OIe(),layoutAttributes:_I(),calc:y4().calc,crossTraceCalc:y4().crossTraceCalc,plot:MI().plot,style:pRe(),styleOne:Nw(),moduleType:"trace",name:"pie",basePlotModule:gRe(),categories:["pie-like","pie","showLegend"],meta:{}}});var bRe=W((hYr,xRe)=>{"use strict";xRe.exports=yRe()});var wRe=W(b4=>{"use strict";var _Re=Qo();b4.name="sunburst";b4.plot=function(e,t,r,i){_Re.plotBasePlot(b4.name,e,t,r,i)};b4.clean=function(e,t,r,i){_Re.cleanBasePlot(b4.name,e,t,r,i)}});var zK={};Jn(zK,{CLICK_TRANSITION_EASING:()=>DQt,CLICK_TRANSITION_TIME:()=>CQt,eventDataKeys:()=>FQt});var CQt,DQt,FQt,BK=Ci(()=>{"use strict";CQt=750,DQt="linear",FQt=["currentPath","root","entry","percentRoot","percentEntry","percentParent"]});var sE=W((pYr,MRe)=>{"use strict";var LQt=Ja(),{hovertemplateAttrs:PQt,texttemplateAttrs:IQt,templatefallbackAttrs:TRe}=Wa(),RQt=Fo(),zQt=ds().attributes,gm=m_(),ARe=(BK(),Pt(zK)),oE=an().extendFlat,BQt=zu().pattern;MRe.exports={labels:{valType:"data_array",editType:"calc"},parents:{valType:"data_array",editType:"calc"},values:{valType:"data_array",editType:"calc"},branchvalues:{valType:"enumerated",values:["remainder","total"],dflt:"remainder",editType:"calc"},count:{valType:"flaglist",flags:["branches","leaves"],dflt:"leaves",editType:"calc"},level:{valType:"any",editType:"plot",anim:!0},maxdepth:{valType:"integer",editType:"plot",dflt:-1},marker:oE({colors:{valType:"data_array",editType:"calc"},line:{color:oE({},gm.marker.line.color,{dflt:null}),width:oE({},gm.marker.line.width,{dflt:1}),editType:"calc"},pattern:BQt,editType:"calc"},RQt("marker",{colorAttr:"colors",anim:!1})),leaf:{opacity:{valType:"number",editType:"style",min:0,max:1},editType:"plot"},text:gm.text,textinfo:{valType:"flaglist",flags:["label","text","value","current path","percent root","percent entry","percent parent"],extras:["none"],editType:"plot"},texttemplate:IQt({editType:"plot"},{keys:ARe.eventDataKeys.concat(["label","value"])}),texttemplatefallback:TRe({editType:"plot"}),hovertext:gm.hovertext,hoverinfo:oE({},LQt.hoverinfo,{flags:["label","text","value","name","current path","percent root","percent entry","percent parent"],dflt:"label+text+value+name"}),hovertemplate:PQt({},{keys:ARe.eventDataKeys}),hovertemplatefallback:TRe(),textfont:gm.textfont,insidetextorientation:gm.insidetextorientation,insidetextfont:gm.insidetextfont,outsidetextfont:oE({},gm.outsidetextfont,{}),rotation:{valType:"angle",dflt:0,editType:"plot"},sort:gm.sort,root:{color:{valType:"color",editType:"calc",dflt:"rgba(0,0,0,0)"},editType:"calc"},domain:zQt({name:"sunburst",trace:!0,editType:"calc"})}});var qK=W((vYr,SRe)=>{"use strict";SRe.exports={sunburstcolorway:{valType:"colorlist",editType:"calc"},extendsunburstcolors:{valType:"boolean",dflt:!0,editType:"calc"}}});var DRe=W((gYr,CRe)=>{"use strict";var ERe=tt(),qQt=sE(),OQt=ds().defaults,NQt=I0().handleText,UQt=y_().handleMarkerDefaults,kRe=es(),VQt=kRe.hasColorscale,GQt=kRe.handleDefaults;CRe.exports=function(t,r,i,n){function a(h,p){return ERe.coerce(t,r,qQt,h,p)}var o=a("labels"),s=a("parents");if(!o||!o.length||!s||!s.length){r.visible=!1;return}var l=a("values");l&&l.length?a("branchvalues"):a("count"),a("level"),a("maxdepth"),UQt(t,r,n,a);var u=r._hasColorscale=VQt(t,"marker","colors")||(t.marker||{}).coloraxis;u&&GQt(t,r,n,a,{prefix:"marker.",cLetter:"c"}),a("leaf.opacity",u?1:.7);var c=a("text");a("texttemplate"),a("texttemplatefallback"),r.texttemplate||a("textinfo",ERe.isArrayOrTypedArray(c)?"text+label":"label"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback");var f="auto";NQt(t,r,n,a,f,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1}),a("insidetextorientation"),a("sort"),a("rotation"),a("root.color"),OQt(r,n,a),r._length=null}});var LRe=W((mYr,FRe)=>{"use strict";var HQt=tt(),jQt=qK();FRe.exports=function(t,r){function i(n,a){return HQt.coerce(t,r,jQt,n,a)}i("sunburstcolorway",r.colorway),i("extendsunburstcolors")}});var lE=W((SI,PRe)=>{(function(e,t){typeof SI=="object"&&typeof PRe!="undefined"?t(SI):(e=e||self,t(e.d3=e.d3||{}))})(SI,function(e){"use strict";function t(Oe,Ue){return Oe.parent===Ue.parent?1:2}function r(Oe){return Oe.reduce(i,0)/Oe.length}function i(Oe,Ue){return Oe+Ue.x}function n(Oe){return 1+Oe.reduce(a,0)}function a(Oe,Ue){return Math.max(Oe,Ue.y)}function o(Oe){for(var Ue;Ue=Oe.children;)Oe=Ue[0];return Oe}function s(Oe){for(var Ue;Ue=Oe.children;)Oe=Ue[Ue.length-1];return Oe}function l(){var Oe=t,Ue=1,je=1,$e=!1;function Ie(Ve){var st,_t=0;Ve.eachAfter(function(Ot){var Jt=Ot.children;Jt?(Ot.x=r(Jt),Ot.y=n(Jt)):(Ot.x=st?_t+=Oe(Ot,st):0,Ot.y=0,st=Ot)});var Wt=o(Ve),Ht=s(Ve),fr=Wt.x-Oe(Wt,Ht)/2,lr=Ht.x+Oe(Ht,Wt)/2;return Ve.eachAfter($e?function(Ot){Ot.x=(Ot.x-Ve.x)*Ue,Ot.y=(Ve.y-Ot.y)*je}:function(Ot){Ot.x=(Ot.x-fr)/(lr-fr)*Ue,Ot.y=(1-(Ve.y?Ot.y/Ve.y:1))*je})}return Ie.separation=function(Ve){return arguments.length?(Oe=Ve,Ie):Oe},Ie.size=function(Ve){return arguments.length?($e=!1,Ue=+Ve[0],je=+Ve[1],Ie):$e?null:[Ue,je]},Ie.nodeSize=function(Ve){return arguments.length?($e=!0,Ue=+Ve[0],je=+Ve[1],Ie):$e?[Ue,je]:null},Ie}function u(Oe){var Ue=0,je=Oe.children,$e=je&&je.length;if(!$e)Ue=1;else for(;--$e>=0;)Ue+=je[$e].value;Oe.value=Ue}function c(){return this.eachAfter(u)}function f(Oe){var Ue=this,je,$e=[Ue],Ie,Ve,st;do for(je=$e.reverse(),$e=[];Ue=je.pop();)if(Oe(Ue),Ie=Ue.children,Ie)for(Ve=0,st=Ie.length;Ve=0;--Ie)je.push($e[Ie]);return this}function p(Oe){for(var Ue=this,je=[Ue],$e=[],Ie,Ve,st;Ue=je.pop();)if($e.push(Ue),Ie=Ue.children,Ie)for(Ve=0,st=Ie.length;Ve=0;)je+=$e[Ie].value;Ue.value=je})}function v(Oe){return this.eachBefore(function(Ue){Ue.children&&Ue.children.sort(Oe)})}function m(Oe){for(var Ue=this,je=g(Ue,Oe),$e=[Ue];Ue!==je;)Ue=Ue.parent,$e.push(Ue);for(var Ie=$e.length;Oe!==je;)$e.splice(Ie,0,Oe),Oe=Oe.parent;return $e}function g(Oe,Ue){if(Oe===Ue)return Oe;var je=Oe.ancestors(),$e=Ue.ancestors(),Ie=null;for(Oe=je.pop(),Ue=$e.pop();Oe===Ue;)Ie=Oe,Oe=je.pop(),Ue=$e.pop();return Ie}function w(){for(var Oe=this,Ue=[Oe];Oe=Oe.parent;)Ue.push(Oe);return Ue}function _(){var Oe=[];return this.each(function(Ue){Oe.push(Ue)}),Oe}function b(){var Oe=[];return this.eachBefore(function(Ue){Ue.children||Oe.push(Ue)}),Oe}function S(){var Oe=this,Ue=[];return Oe.each(function(je){je!==Oe&&Ue.push({source:je.parent,target:je})}),Ue}function x(Oe,Ue){var je=new M(Oe),$e=+Oe.value&&(je.value=Oe.value),Ie,Ve=[je],st,_t,Wt,Ht;for(Ue==null&&(Ue=T);Ie=Ve.pop();)if($e&&(Ie.value=+Ie.data.value),(_t=Ue(Ie.data))&&(Ht=_t.length))for(Ie.children=new Array(Ht),Wt=Ht-1;Wt>=0;--Wt)Ve.push(st=Ie.children[Wt]=new M(_t[Wt])),st.parent=Ie,st.depth=Ie.depth+1;return je.eachBefore(E)}function A(){return x(this).eachBefore(y)}function T(Oe){return Oe.children}function y(Oe){Oe.data=Oe.data.data}function E(Oe){var Ue=0;do Oe.height=Ue;while((Oe=Oe.parent)&&Oe.height<++Ue)}function M(Oe){this.data=Oe,this.depth=this.height=0,this.parent=null}M.prototype=x.prototype={constructor:M,count:c,each:f,eachAfter:p,eachBefore:h,sum:d,sort:v,path:m,ancestors:w,descendants:_,leaves:b,links:S,copy:A};var C=Array.prototype.slice;function k(Oe){for(var Ue=Oe.length,je,$e;Ue;)$e=Math.random()*Ue--|0,je=Oe[Ue],Oe[Ue]=Oe[$e],Oe[$e]=je;return Oe}function D(Oe){for(var Ue=0,je=(Oe=k(C.call(Oe))).length,$e=[],Ie,Ve;Ue0&&je*je>$e*$e+Ie*Ie}function L(Oe,Ue){for(var je=0;jeWt?(Ie=(Ht+Wt-Ve)/(2*Ht),_t=Math.sqrt(Math.max(0,Wt/Ht-Ie*Ie)),je.x=Oe.x-Ie*$e-_t*st,je.y=Oe.y-Ie*st+_t*$e):(Ie=(Ht+Ve-Wt)/(2*Ht),_t=Math.sqrt(Math.max(0,Ve/Ht-Ie*Ie)),je.x=Ue.x+Ie*$e-_t*st,je.y=Ue.y+Ie*st+_t*$e)):(je.x=Ue.x+je.r,je.y=Ue.y)}function K(Oe,Ue){var je=Oe.r+Ue.r-1e-6,$e=Ue.x-Oe.x,Ie=Ue.y-Oe.y;return je>0&&je*je>$e*$e+Ie*Ie}function G(Oe){var Ue=Oe._,je=Oe.next._,$e=Ue.r+je.r,Ie=(Ue.x*je.r+je.x*Ue.r)/$e,Ve=(Ue.y*je.r+je.y*Ue.r)/$e;return Ie*Ie+Ve*Ve}function q(Oe){this._=Oe,this.next=null,this.previous=null}function J(Oe){if(!(Ie=Oe.length))return 0;var Ue,je,$e,Ie,Ve,st,_t,Wt,Ht,fr,lr;if(Ue=Oe[0],Ue.x=0,Ue.y=0,!(Ie>1))return Ue.r;if(je=Oe[1],Ue.x=-je.r,je.x=Ue.r,je.y=0,!(Ie>2))return Ue.r+je.r;X(je,Ue,$e=Oe[2]),Ue=new q(Ue),je=new q(je),$e=new q($e),Ue.next=$e.previous=je,je.next=Ue.previous=$e,$e.next=je.previous=Ue;e:for(_t=3;_t0)throw new Error("cycle");return _t}return je.id=function($e){return arguments.length?(Oe=Y($e),je):Oe},je.parentId=function($e){return arguments.length?(Ue=Y($e),je):Ue},je}function re(Oe,Ue){return Oe.parent===Ue.parent?1:2}function pe(Oe){var Ue=Oe.children;return Ue?Ue[0]:Oe.t}function Te(Oe){var Ue=Oe.children;return Ue?Ue[Ue.length-1]:Oe.t}function Ce(Oe,Ue,je){var $e=je/(Ue.i-Oe.i);Ue.c-=$e,Ue.s+=je,Oe.c+=$e,Ue.z+=je,Ue.m+=je}function ze(Oe){for(var Ue=0,je=0,$e=Oe.children,Ie=$e.length,Ve;--Ie>=0;)Ve=$e[Ie],Ve.z+=Ue,Ve.m+=Ue,Ue+=Ve.s+(je+=Ve.c)}function we(Oe,Ue,je){return Oe.a.parent===Ue.parent?Oe.a:je}function me(Oe,Ue){this._=Oe,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=Ue}me.prototype=Object.create(M.prototype);function Le(Oe){for(var Ue=new me(Oe,0),je,$e=[Ue],Ie,Ve,st,_t;je=$e.pop();)if(Ve=je._.children)for(je.children=new Array(_t=Ve.length),st=_t-1;st>=0;--st)$e.push(Ie=je.children[st]=new me(Ve[st],st)),Ie.parent=je;return(Ue.parent=new me(null,0)).children=[Ue],Ue}function Ne(){var Oe=re,Ue=1,je=1,$e=null;function Ie(Ht){var fr=Le(Ht);if(fr.eachAfter(Ve),fr.parent.m=-fr.z,fr.eachBefore(st),$e)Ht.eachBefore(Wt);else{var lr=Ht,Ot=Ht,Jt=Ht;Ht.eachBefore(function(gt){gt.xOt.x&&(Ot=gt),gt.depth>Jt.depth&&(Jt=gt)});var Cr=lr===Ot?1:Oe(lr,Ot)/2,Ge=Cr-lr.x,Qe=Ue/(Ot.x+Cr+Ge),nt=je/(Jt.depth||1);Ht.eachBefore(function(gt){gt.x=(gt.x+Ge)*Qe,gt.y=gt.depth*nt})}return Ht}function Ve(Ht){var fr=Ht.children,lr=Ht.parent.children,Ot=Ht.i?lr[Ht.i-1]:null;if(fr){ze(Ht);var Jt=(fr[0].z+fr[fr.length-1].z)/2;Ot?(Ht.z=Ot.z+Oe(Ht._,Ot._),Ht.m=Ht.z-Jt):Ht.z=Jt}else Ot&&(Ht.z=Ot.z+Oe(Ht._,Ot._));Ht.parent.A=_t(Ht,Ot,Ht.parent.A||lr[0])}function st(Ht){Ht._.x=Ht.z+Ht.parent.m,Ht.m+=Ht.parent.m}function _t(Ht,fr,lr){if(fr){for(var Ot=Ht,Jt=Ht,Cr=fr,Ge=Ot.parent.children[0],Qe=Ot.m,nt=Jt.m,gt=Cr.m,ht=Ge.m,Ft;Cr=Te(Cr),Ot=pe(Ot),Cr&&Ot;)Ge=pe(Ge),Jt=Te(Jt),Jt.a=Ht,Ft=Cr.z+gt-Ot.z-Qe+Oe(Cr._,Ot._),Ft>0&&(Ce(we(Cr,Ht,lr),Ht,Ft),Qe+=Ft,nt+=Ft),gt+=Cr.m,Qe+=Ot.m,ht+=Ge.m,nt+=Jt.m;Cr&&!Te(Jt)&&(Jt.t=Cr,Jt.m+=gt-nt),Ot&&!pe(Ge)&&(Ge.t=Ot,Ge.m+=Qe-ht,lr=Ht)}return lr}function Wt(Ht){Ht.x*=Ue,Ht.y=Ht.depth*je}return Ie.separation=function(Ht){return arguments.length?(Oe=Ht,Ie):Oe},Ie.size=function(Ht){return arguments.length?($e=!1,Ue=+Ht[0],je=+Ht[1],Ie):$e?null:[Ue,je]},Ie.nodeSize=function(Ht){return arguments.length?($e=!0,Ue=+Ht[0],je=+Ht[1],Ie):$e?[Ue,je]:null},Ie}function Je(Oe,Ue,je,$e,Ie){for(var Ve=Oe.children,st,_t=-1,Wt=Ve.length,Ht=Oe.value&&(Ie-je)/Oe.value;++_tgt&&(gt=Ht),Ut=Qe*Qe*hr,ht=Math.max(gt/Ut,Ut/nt),ht>Ft){Qe-=Ht;break}Ft=ht}st.push(Wt={value:Qe,dice:Jt1?$e:1)},je})(rt);function St(){var Oe=dt,Ue=!1,je=1,$e=1,Ie=[0],Ve=H,st=H,_t=H,Wt=H,Ht=H;function fr(Ot){return Ot.x0=Ot.y0=0,Ot.x1=je,Ot.y1=$e,Ot.eachBefore(lr),Ie=[0],Ue&&Ot.eachBefore(xe),Ot}function lr(Ot){var Jt=Ie[Ot.depth],Cr=Ot.x0+Jt,Ge=Ot.y0+Jt,Qe=Ot.x1-Jt,nt=Ot.y1-Jt;Qe=Ot-1){var gt=Ve[lr];gt.x0=Cr,gt.y0=Ge,gt.x1=Qe,gt.y1=nt;return}for(var ht=Ht[lr],Ft=Jt/2+ht,hr=lr+1,Ut=Ot-1;hr>>1;Ht[Lr]nt-Ge){var Fr=(Cr*ii+Qe*jr)/Jt;fr(lr,hr,jr,Cr,Ge,Fr,nt),fr(hr,Ot,ii,Fr,Ge,Qe,nt)}else{var Ii=(Ge*ii+nt*jr)/Jt;fr(lr,hr,jr,Cr,Ge,Qe,Ii),fr(hr,Ot,ii,Cr,Ii,Qe,nt)}}}function bt(Oe,Ue,je,$e,Ie){(Oe.depth&1?Je:ce)(Oe,Ue,je,$e,Ie)}var pt=(function Oe(Ue){function je($e,Ie,Ve,st,_t){if((Wt=$e._squarify)&&Wt.ratio===Ue)for(var Wt,Ht,fr,lr,Ot=-1,Jt,Cr=Wt.length,Ge=$e.value;++Ot1?$e:1)},je})(rt);e.cluster=l,e.hierarchy=x,e.pack=te,e.packEnclose=D,e.packSiblings=N,e.partition=oe,e.stratify=_e,e.tree=Ne,e.treemap=St,e.treemapBinary=Ke,e.treemapDice=ce,e.treemapResquarify=pt,e.treemapSlice=Je,e.treemapSliceDice=bt,e.treemapSquarify=dt,Object.defineProperty(e,"__esModule",{value:!0})})});var cE=W(uE=>{"use strict";var IRe=lE(),$Qt=hn(),_4=tt(),WQt=es().makeColorScaleFuncFromTrace,YQt=y4().makePullColorFn,XQt=y4().generateExtendedColors,ZQt=es().calc,KQt=(ra(),Pt(ia)).ALMOST_EQUAL,JQt={},QQt={},eer={};uE.calc=function(e,t){var r=e._fullLayout,i=t.ids,n=_4.isArrayOrTypedArray(i),a=t.labels,o=t.parents,s=t.values,l=_4.isArrayOrTypedArray(s),u=[],c={},f={},h=function(R,L){c[R]?c[R].push(L):c[R]=[L],f[L]=1},p=function(R){return R||typeof R=="number"},d=function(R){return!l||$Qt(s[R])&&s[R]>=0},v,m,g;n?(v=Math.min(i.length,o.length),m=function(R){return p(i[R])&&d(R)},g=function(R){return String(i[R])}):(v=Math.min(a.length,o.length),m=function(R){return p(a[R])&&d(R)},g=function(R){return String(a[R])}),l&&(v=Math.min(v,s.length));for(var w=0;w1){for(var T=_4.randstr(),y=0;y{});function G1(){}function CRe(){return this.rgb().formatHex()}function ZQt(){return this.rgb().formatHex8()}function KQt(){return zRe(this).formatHsl()}function DRe(){return this.rgb().formatRgb()}function M2(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=GQt.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?FRe(t):r===3?new Vu(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?wI(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?wI(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=HQt.exec(e))?new Vu(t[1],t[2],t[3],1):(t=jQt.exec(e))?new Vu(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=$Qt.exec(e))?wI(t[1],t[2],t[3],t[4]):(t=WQt.exec(e))?wI(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=YQt.exec(e))?IRe(t[1],t[2]/100,t[3]/100,1):(t=XQt.exec(e))?IRe(t[1],t[2]/100,t[3]/100,t[4]):kRe.hasOwnProperty(e)?FRe(kRe[e]):e==="transparent"?new Vu(NaN,NaN,NaN,0):null}function FRe(e){return new Vu(e>>16&255,e>>8&255,e&255,1)}function wI(e,t,r,i){return i<=0&&(e=t=r=NaN),new Vu(e,t,r,i)}function cE(e){return e instanceof G1||(e=M2(e)),e?(e=e.rgb(),new Vu(e.r,e.g,e.b,e.opacity)):new Vu}function w4(e,t,r,i){return arguments.length===1?cE(e):new Vu(e,t,r,i==null?1:i)}function Vu(e,t,r,i){this.r=+e,this.g=+t,this.b=+r,this.opacity=+i}function LRe(){return`#${x_(this.r)}${x_(this.g)}${x_(this.b)}`}function JQt(){return`#${x_(this.r)}${x_(this.g)}${x_(this.b)}${x_((isNaN(this.opacity)?1:this.opacity)*255)}`}function PRe(){let e=AI(this.opacity);return`${e===1?"rgb(":"rgba("}${b_(this.r)}, ${b_(this.g)}, ${b_(this.b)}${e===1?")":`, ${e})`}`}function AI(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function b_(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function x_(e){return e=b_(e),(e<16?"0":"")+e.toString(16)}function IRe(e,t,r,i){return i<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new pv(e,t,r,i)}function zRe(e){if(e instanceof pv)return new pv(e.h,e.s,e.l,e.opacity);if(e instanceof G1||(e=M2(e)),!e)return new pv;if(e instanceof pv)return e;e=e.rgb();var t=e.r/255,r=e.g/255,i=e.b/255,n=Math.min(t,r,i),a=Math.max(t,r,i),o=NaN,s=a-n,l=(a+n)/2;return s?(t===a?o=(r-i)/s+(r0&&l<1?0:o,new pv(o,s,l,e.opacity)}function fE(e,t,r,i){return arguments.length===1?zRe(e):new pv(e,t,r,i==null?1:i)}function pv(e,t,r,i){this.h=+e,this.s=+t,this.l=+r,this.opacity=+i}function RRe(e){return e=(e||0)%360,e<0?e+360:e}function TI(e){return Math.max(0,Math.min(1,e||0))}function FK(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}var A2,__,_4,uE,V1,GQt,HQt,jQt,$Qt,WQt,YQt,XQt,kRe,MI=Ci(()=>{_I();A2=.7,__=1/A2,_4="\\s*([+-]?\\d+)\\s*",uE="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",V1="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",GQt=/^#([0-9a-f]{3,8})$/,HQt=new RegExp(`^rgb\\(${_4},${_4},${_4}\\)$`),jQt=new RegExp(`^rgb\\(${V1},${V1},${V1}\\)$`),$Qt=new RegExp(`^rgba\\(${_4},${_4},${_4},${uE}\\)$`),WQt=new RegExp(`^rgba\\(${V1},${V1},${V1},${uE}\\)$`),YQt=new RegExp(`^hsl\\(${uE},${V1},${V1}\\)$`),XQt=new RegExp(`^hsla\\(${uE},${V1},${V1},${uE}\\)$`),kRe={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};dm(G1,M2,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:CRe,formatHex:CRe,formatHex8:ZQt,formatHsl:KQt,formatRgb:DRe,toString:DRe});dm(Vu,w4,T2(G1,{brighter(e){return e=e==null?__:Math.pow(__,e),new Vu(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?A2:Math.pow(A2,e),new Vu(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Vu(b_(this.r),b_(this.g),b_(this.b),AI(this.opacity))},displayable(){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:LRe,formatHex:LRe,formatHex8:JQt,formatRgb:PRe,toString:PRe}));dm(pv,fE,T2(G1,{brighter(e){return e=e==null?__:Math.pow(__,e),new pv(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?A2:Math.pow(A2,e),new pv(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,i=r+(r<.5?r:1-r)*t,n=2*r-i;return new Vu(FK(e>=240?e-240:e+120,n,i),FK(e,n,i),FK(e<120?e+240:e-120,n,i),this.opacity)},clamp(){return new pv(RRe(this.h),TI(this.s),TI(this.l),AI(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let e=AI(this.opacity);return`${e===1?"hsl(":"hsla("}${RRe(this.h)}, ${TI(this.s)*100}%, ${TI(this.l)*100}%${e===1?")":`, ${e})`}`}}))});var SI,EI,LK=Ci(()=>{SI=Math.PI/180,EI=180/Math.PI});function VRe(e){if(e instanceof H1)return new H1(e.l,e.a,e.b,e.opacity);if(e instanceof pm)return GRe(e);e instanceof Vu||(e=cE(e));var t=zK(e.r),r=zK(e.g),i=zK(e.b),n=PK((.2225045*t+.7168786*r+.0606169*i)/qRe),a,o;return t===r&&r===i?a=o=n:(a=PK((.4360747*t+.3850649*r+.1430804*i)/BRe),o=PK((.0139322*t+.0971045*r+.7141733*i)/ORe)),new H1(116*n-16,500*(a-n),200*(n-o),e.opacity)}function A4(e,t,r,i){return arguments.length===1?VRe(e):new H1(e,t,r,i==null?1:i)}function H1(e,t,r,i){this.l=+e,this.a=+t,this.b=+r,this.opacity=+i}function PK(e){return e>QQt?Math.pow(e,1/3):e/URe+NRe}function IK(e){return e>T4?e*e*e:URe*(e-NRe)}function RK(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function zK(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function eer(e){if(e instanceof pm)return new pm(e.h,e.c,e.l,e.opacity);if(e instanceof H1||(e=VRe(e)),e.a===0&&e.b===0)return new pm(NaN,0{_I();MI();LK();kI=18,BRe=.96422,qRe=1,ORe=.82521,NRe=4/29,T4=6/29,URe=3*T4*T4,QQt=T4*T4*T4;dm(H1,A4,T2(G1,{brighter(e){return new H1(this.l+kI*(e==null?1:e),this.a,this.b,this.opacity)},darker(e){return new H1(this.l-kI*(e==null?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,r=isNaN(this.b)?e:e-this.b/200;return t=BRe*IK(t),e=qRe*IK(e),r=ORe*IK(r),new Vu(RK(3.1338561*t-1.6168667*e-.4906146*r),RK(-.9787684*t+1.9161415*e+.033454*r),RK(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}}));dm(pm,hE,T2(G1,{brighter(e){return new pm(this.h,this.c,this.l+kI*(e==null?1:e),this.opacity)},darker(e){return new pm(this.h,this.c,this.l-kI*(e==null?1:e),this.opacity)},rgb(){return GRe(this).rgb()}}))});function ter(e){if(e instanceof w_)return new w_(e.h,e.s,e.l,e.opacity);e instanceof Vu||(e=cE(e));var t=e.r/255,r=e.g/255,i=e.b/255,n=(WRe*i+jRe*t-$Re*r)/(WRe+jRe-$Re),a=i-n,o=(dE*(r-n)-qK*a)/CI,s=Math.sqrt(o*o+a*a)/(dE*n*(1-n)),l=s?Math.atan2(o,a)*EI-120:NaN;return new w_(l<0?l+360:l,s,n,e.opacity)}function M4(e,t,r,i){return arguments.length===1?ter(e):new w_(e,t,r,i==null?1:i)}function w_(e,t,r,i){this.h=+e,this.s=+t,this.l=+r,this.opacity=+i}var YRe,BK,qK,CI,dE,jRe,$Re,WRe,XRe=Ci(()=>{_I();MI();LK();YRe=-.14861,BK=1.78277,qK=-.29227,CI=-.90649,dE=1.97294,jRe=dE*CI,$Re=dE*BK,WRe=BK*qK-CI*YRe;dm(w_,M4,T2(G1,{brighter(e){return e=e==null?__:Math.pow(__,e),new w_(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?A2:Math.pow(A2,e),new w_(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=isNaN(this.h)?0:(this.h+120)*SI,t=+this.l,r=isNaN(this.s)?0:this.s*t*(1-t),i=Math.cos(e),n=Math.sin(e);return new Vu(255*(t+r*(YRe*i+BK*n)),255*(t+r*(qK*i+CI*n)),255*(t+r*(dE*i)),this.opacity)}}))});var T_=Ci(()=>{MI();HRe();XRe()});function OK(e,t,r,i,n){var a=e*e,o=a*e;return((1-3*e+3*a-o)*t+(4-6*a+3*o)*r+(1+3*e+3*a-3*o)*i+o*n)/6}function DI(e){var t=e.length-1;return function(r){var i=r<=0?r=0:r>=1?(r=1,t-1):Math.floor(r*t),n=e[i],a=e[i+1],o=i>0?e[i-1]:2*n-a,s=i{});function LI(e){var t=e.length;return function(r){var i=Math.floor(((r%=1)<0?++r:r)*t),n=e[(i+t-1)%t],a=e[i%t],o=e[(i+1)%t],s=e[(i+2)%t];return OK((r-i/t)*t,n,a,o,s)}}var NK=Ci(()=>{FI()});var S4,UK=Ci(()=>{S4=e=>()=>e});function ZRe(e,t){return function(r){return e+r*t}}function rer(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(i){return Math.pow(e+i*t,r)}}function S2(e,t){var r=t-e;return r?ZRe(e,r>180||r<-180?r-360*Math.round(r/360):r):S4(isNaN(e)?t:e)}function KRe(e){return(e=+e)==1?yl:function(t,r){return r-t?rer(t,r,e):S4(isNaN(t)?r:t)}}function yl(e,t){var r=t-e;return r?ZRe(e,r):S4(isNaN(e)?t:e)}var A_=Ci(()=>{UK()});function JRe(e){return function(t){var r=t.length,i=new Array(r),n=new Array(r),a=new Array(r),o,s;for(o=0;o{T_();FI();NK();A_();pE=(function e(t){var r=KRe(t);function i(n,a){var o=r((n=w4(n)).r,(a=w4(a)).r),s=r(n.g,a.g),l=r(n.b,a.b),u=yl(n.opacity,a.opacity);return function(c){return n.r=o(c),n.g=s(c),n.b=l(c),n.opacity=u(c),n+""}}return i.gamma=e,i})(1);QRe=JRe(DI),eze=JRe(LI)});function E4(e,t){t||(t=[]);var r=e?Math.min(t.length,e.length):0,i=t.slice(),n;return function(a){for(n=0;n{});function tze(e,t){return(PI(t)?E4:GK)(e,t)}function GK(e,t){var r=t?t.length:0,i=e?Math.min(r,e.length):0,n=new Array(i),a=new Array(r),o;for(o=0;o{vE();II()});function RI(e,t){var r=new Date;return e=+e,t=+t,function(i){return r.setTime(e*(1-i)+t*i),r}}var jK=Ci(()=>{});function Zh(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}var gE=Ci(()=>{});function zI(e,t){var r={},i={},n;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(n in t)n in e?r[n]=E2(e[n],t[n]):i[n]=t[n];return function(a){for(n in r)i[n]=r[n](a);return i}}var $K=Ci(()=>{vE()});function ier(e){return function(){return e}}function ner(e){return function(t){return e(t)+""}}function BI(e,t){var r=YK.lastIndex=WK.lastIndex=0,i,n,a,o=-1,s=[],l=[];for(e=e+"",t=t+"";(i=YK.exec(e))&&(n=WK.exec(t));)(a=n.index)>r&&(a=t.slice(r,a),s[o]?s[o]+=a:s[++o]=a),(i=i[0])===(n=n[0])?s[o]?s[o]+=n:s[++o]=n:(s[++o]=null,l.push({i:o,x:Zh(i,n)})),r=WK.lastIndex;return r{gE();YK=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,WK=new RegExp(YK.source,"g")});function E2(e,t){var r=typeof t,i;return t==null||r==="boolean"?S4(t):(r==="number"?Zh:r==="string"?(i=M2(t))?(t=i,pE):BI:t instanceof M2?pE:t instanceof Date?RI:PI(t)?E4:Array.isArray(t)?GK:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?zI:Zh)(e,t)}var vE=Ci(()=>{T_();VK();HK();jK();gE();$K();XK();UK();II()});function rze(e){var t=e.length;return function(r){return e[Math.max(0,Math.min(t-1,Math.floor(r*t)))]}}var ize=Ci(()=>{});function nze(e,t){var r=S2(+e,+t);return function(i){var n=r(i);return n-360*Math.floor(n/360)}}var aze=Ci(()=>{A_()});function oze(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}var sze=Ci(()=>{});function ZK(e,t,r,i,n,a){var o,s,l;return(o=Math.sqrt(e*e+t*t))&&(e/=o,t/=o),(l=e*r+t*i)&&(r-=e*l,i-=t*l),(s=Math.sqrt(r*r+i*i))&&(r/=s,i/=s,l/=s),e*i{lze=180/Math.PI,qI={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1}});function cze(e){let t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?qI:ZK(t.a,t.b,t.c,t.d,t.e,t.f)}function fze(e){return e==null?qI:(OI||(OI=document.createElementNS("http://www.w3.org/2000/svg","g")),OI.setAttribute("transform",e),(e=OI.transform.baseVal.consolidate())?(e=e.matrix,ZK(e.a,e.b,e.c,e.d,e.e,e.f)):qI)}var OI,hze=Ci(()=>{uze()});function dze(e,t,r,i){function n(u){return u.length?u.pop()+" ":""}function a(u,c,f,h,p,d){if(u!==f||c!==h){var v=p.push("translate(",null,t,null,r);d.push({i:v-4,x:Zh(u,f)},{i:v-2,x:Zh(c,h)})}else(f||h)&&p.push("translate("+f+t+h+r)}function o(u,c,f,h){u!==c?(u-c>180?c+=360:c-u>180&&(u+=360),h.push({i:f.push(n(f)+"rotate(",null,i)-2,x:Zh(u,c)})):c&&f.push(n(f)+"rotate("+c+i)}function s(u,c,f,h){u!==c?h.push({i:f.push(n(f)+"skewX(",null,i)-2,x:Zh(u,c)}):c&&f.push(n(f)+"skewX("+c+i)}function l(u,c,f,h,p,d){if(u!==f||c!==h){var v=p.push(n(p)+"scale(",null,",",null,")");d.push({i:v-4,x:Zh(u,f)},{i:v-2,x:Zh(c,h)})}else(f!==1||h!==1)&&p.push(n(p)+"scale("+f+","+h+")")}return function(u,c){var f=[],h=[];return u=e(u),c=e(c),a(u.translateX,u.translateY,c.translateX,c.translateY,f,h),o(u.rotate,c.rotate,f,h),s(u.skewX,c.skewX,f,h),l(u.scaleX,u.scaleY,c.scaleX,c.scaleY,f,h),u=c=null,function(p){for(var d=-1,v=h.length,m;++d{gE();hze();pze=dze(cze,"px, ","px)","deg)"),vze=dze(fze,", ",")",")")});function mze(e){return((e=Math.exp(e))+1/e)/2}function oer(e){return((e=Math.exp(e))-1/e)/2}function ser(e){return((e=Math.exp(2*e))-1)/(e+1)}var aer,yze,xze=Ci(()=>{aer=1e-12;yze=(function e(t,r,i){function n(a,o){var s=a[0],l=a[1],u=a[2],c=o[0],f=o[1],h=o[2],p=c-s,d=f-l,v=p*p+d*d,m,g;if(v{T_();A_();_ze=bze(S2),wze=bze(yl)});function KK(e,t){var r=yl((e=A4(e)).l,(t=A4(t)).l),i=yl(e.a,t.a),n=yl(e.b,t.b),a=yl(e.opacity,t.opacity);return function(o){return e.l=r(o),e.a=i(o),e.b=n(o),e.opacity=a(o),e+""}}var Aze=Ci(()=>{T_();A_()});function Mze(e){return function(t,r){var i=e((t=hE(t)).h,(r=hE(r)).h),n=yl(t.c,r.c),a=yl(t.l,r.l),o=yl(t.opacity,r.opacity);return function(s){return t.h=i(s),t.c=n(s),t.l=a(s),t.opacity=o(s),t+""}}}var Sze,Eze,kze=Ci(()=>{T_();A_();Sze=Mze(S2),Eze=Mze(yl)});function Cze(e){return(function t(r){r=+r;function i(n,a){var o=e((n=M4(n)).h,(a=M4(a)).h),s=yl(n.s,a.s),l=yl(n.l,a.l),u=yl(n.opacity,a.opacity);return function(c){return n.h=o(c),n.s=s(c),n.l=l(Math.pow(c,r)),n.opacity=u(c),n+""}}return i.gamma=t,i})(1)}var Dze,Fze,Lze=Ci(()=>{T_();A_();Dze=Cze(S2),Fze=Cze(yl)});function JK(e,t){t===void 0&&(t=e,e=E2);for(var r=0,i=t.length-1,n=t[0],a=new Array(i<0?0:i);r{vE()});function Ize(e,t){for(var r=new Array(t),i=0;i{});var M_={};Kn(M_,{interpolate:()=>E2,interpolateArray:()=>tze,interpolateBasis:()=>DI,interpolateBasisClosed:()=>LI,interpolateCubehelix:()=>Dze,interpolateCubehelixLong:()=>Fze,interpolateDate:()=>RI,interpolateDiscrete:()=>rze,interpolateHcl:()=>Sze,interpolateHclLong:()=>Eze,interpolateHsl:()=>_ze,interpolateHslLong:()=>wze,interpolateHue:()=>nze,interpolateLab:()=>KK,interpolateNumber:()=>Zh,interpolateNumberArray:()=>E4,interpolateObject:()=>zI,interpolateRgb:()=>pE,interpolateRgbBasis:()=>QRe,interpolateRgbBasisClosed:()=>eze,interpolateRound:()=>oze,interpolateString:()=>BI,interpolateTransformCss:()=>pze,interpolateTransformSvg:()=>vze,interpolateZoom:()=>yze,piecewise:()=>JK,quantize:()=>Ize});var S_=Ci(()=>{vE();HK();FI();NK();jK();ize();aze();gE();II();$K();sze();XK();gze();xze();VK();Tze();Aze();kze();Lze();Pze();Rze()});var NI=W((YXr,zze)=>{"use strict";var ler=en(),uer=ai();zze.exports=function(t,r,i,n,a){var o=r.data.data,s=o.i,l=a||o.color;if(s>=0){r.i=o.i;var u=i.marker;u.pattern?(!u.colors||!u.pattern.shape)&&(u.color=l,r.color=l):(u.color=l,r.color=l),ler.pointStyle(t,i,n,r)}else uer.fill(t,l)}});var QK=W((XXr,Uze)=>{"use strict";var Bze=gi(),qze=ai(),Oze=it(),cer=af().resizeText,fer=NI();function her(e){var t=e._fullLayout._sunburstlayer.selectAll(".trace");cer(e,t,"sunburst"),t.each(function(r){var i=Bze.select(this),n=r[0],a=n.trace;i.style("opacity",a.opacity),i.selectAll("path.surface").each(function(o){Bze.select(this).call(Nze,o,a,e)})})}function Nze(e,t,r,i){var n=t.data.data,a=!t.children,o=n.i,s=Oze.castOption(r,o,"marker.line.color")||qze.defaultLine,l=Oze.castOption(r,o,"marker.line.width")||0;e.call(fer,t,r,i).style("stroke-width",l).call(qze.stroke,s).style("opacity",a?r.leaf.opacity:null)}Uze.exports={style:her,styleOne:Nze}});var vm=W(la=>{"use strict";var E_=it(),der=ai(),per=$p(),Vze=Oy();la.findEntryWithLevel=function(e,t){var r;return t&&e.eachAfter(function(i){if(la.getPtId(i)===t)return r=i.copy()}),r||e};la.findEntryWithChild=function(e,t){var r;return e.eachAfter(function(i){for(var n=i.children||[],a=0;a0)};la.getMaxDepth=function(e){return e.maxdepth>=0?e.maxdepth:1/0};la.isHeader=function(e,t){return!(la.isLeaf(e)||e.depth===t._maxDepth-1)};function Gze(e){return e.data.data.pid}la.getParent=function(e,t){return la.findEntryWithLevel(e,Gze(t))};la.listPath=function(e,t){var r=e.parent;if(!r)return[];var i=t?[r.data[t]]:[r];return la.listPath(r,t).concat(i)};la.getPath=function(e){return la.listPath(e,"label").join("/")+"/"};la.formatValue=Vze.formatPieValue;la.formatPercent=function(e,t){var r=E_.formatPercent(e,0);return r==="0%"&&(r=Vze.formatPiePercent(e,t)),r}});var xE=W((KXr,$ze)=>{"use strict";var k4=gi(),Hze=xi(),mer=rh().appendArrayPointValue,mE=Ls(),jze=it(),yer=xw(),bu=vm(),xer=Oy(),ber=xer.formatPieValue;$ze.exports=function(t,r,i,n,a){var o=n[0],s=o.trace,l=o.hierarchy,u=s.type==="sunburst",c=s.type==="treemap"||s.type==="icicle";"_hasHoverLabel"in s||(s._hasHoverLabel=!1),"_hasHoverEvent"in s||(s._hasHoverEvent=!1);var f=function(d){var v=i._fullLayout;if(!(i._dragging||v.hovermode===!1)){var m=i._fullData[s.index],g=d.data.data,w=g.i,_=bu.isHierarchyRoot(d),b=bu.getParent(l,d),S=bu.getValue(d),x=function(Y){return jze.castOption(m,w,Y)},T=x("hovertemplate"),A=mE.castHoverinfo(m,v,w),y=v.separators,E;if(T||A&&A!=="none"&&A!=="skip"){var M,C;u&&(M=o.cx+d.pxmid[0]*(1-d.rInscribed),C=o.cy+d.pxmid[1]*(1-d.rInscribed)),c&&(M=d._hoverX,C=d._hoverY);var k={},D=[],L=[],P=function(Y){return D.indexOf(Y)!==-1};A&&(D=A==="all"?m._module.attributes.hoverinfo.flags:A.split("+")),k.label=g.label,P("label")&&k.label&&L.push(k.label),g.hasOwnProperty("v")&&(k.value=g.v,k.valueLabel=ber(k.value,y),P("value")&&L.push(k.valueLabel)),k.currentPath=d.currentPath=bu.getPath(d.data),P("current path")&&!_&&L.push(k.currentPath);var R,F=[],I=function(){F.indexOf(R)===-1&&(L.push(R),F.push(R))};k.percentParent=d.percentParent=S/bu.getValue(b),k.parent=d.parentString=bu.getPtLabel(b),P("percent parent")&&(R=bu.formatPercent(k.percentParent,y)+" of "+k.parent,I()),k.percentEntry=d.percentEntry=S/bu.getValue(r),k.entry=d.entry=bu.getPtLabel(r),P("percent entry")&&!_&&!d.onPathbar&&(R=bu.formatPercent(k.percentEntry,y)+" of "+k.entry,I()),k.percentRoot=d.percentRoot=S/bu.getValue(l),k.root=d.root=bu.getPtLabel(l),P("percent root")&&!_&&(R=bu.formatPercent(k.percentRoot,y)+" of "+k.root,I()),k.text=x("hovertext")||x("text"),P("text")&&(R=k.text,jze.isValidTextValue(R)&&L.push(R)),E=[yE(d,m,a.eventDataKeys)];var B={trace:m,y:C,_x0:d._x0,_x1:d._x1,_y0:d._y0,_y1:d._y1,text:L.join("
"),name:T||P("name")?m.name:void 0,color:x("hoverlabel.bgcolor")||g.color,borderColor:x("hoverlabel.bordercolor"),fontFamily:x("hoverlabel.font.family"),fontSize:x("hoverlabel.font.size"),fontColor:x("hoverlabel.font.color"),fontWeight:x("hoverlabel.font.weight"),fontStyle:x("hoverlabel.font.style"),fontVariant:x("hoverlabel.font.variant"),nameLength:x("hoverlabel.namelength"),textAlign:x("hoverlabel.align"),hovertemplate:T,hovertemplateLabels:k,eventData:E};u&&(B.x0=M-d.rInscribed*d.rpx1,B.x1=M+d.rInscribed*d.rpx1,B.idealAlign=d.pxmid[0]<0?"left":"right"),c&&(B.x=M,B.idealAlign=M<0?"left":"right");var O=[];mE.loneHover(B,{container:v._hoverlayer.node(),outerContainer:v._paper.node(),gd:i,inOut_bbox:O}),E[0].bbox=O[0],s._hasHoverLabel=!0}if(c){var $=t.select("path.surface");a.styleOne($,d,m,i,{hovered:!0})}s._hasHoverEvent=!0,i.emit("plotly_hover",{points:E||[yE(d,m,a.eventDataKeys)],event:k4.event})}},h=function(d){var v=i._fullLayout,m=i._fullData[s.index],g=k4.select(this).datum();if(s._hasHoverEvent&&(d.originalEvent=k4.event,i.emit("plotly_unhover",{points:[yE(g,m,a.eventDataKeys)],event:k4.event}),s._hasHoverEvent=!1),s._hasHoverLabel&&(mE.loneUnhover(v._hoverlayer.node()),s._hasHoverLabel=!1),c){var w=t.select("path.surface");a.styleOne(w,g,m,i,{hovered:!1})}},p=function(d){var v=i._fullLayout,m=i._fullData[s.index],g=u&&(bu.isHierarchyRoot(d)||bu.isLeaf(d)),w=bu.getPtId(d),_=bu.isEntry(d)?bu.findEntryWithChild(l,w):bu.findEntryWithLevel(l,w),b=bu.getPtId(_),S={points:[yE(d,m,a.eventDataKeys)],event:k4.event};g||(S.nextLevel=b);var x=yer.triggerHandler(i,"plotly_"+s.type+"click",S);if(x!==!1&&v.hovermode&&(i._hoverdata=[yE(d,m,a.eventDataKeys)],mE.click(i,k4.event)),!g&&x!==!1&&!i._dragging&&!i._transitioning){Hze.call("_storeDirectGUIEdit",m,v._tracePreGUI[m.uid],{level:m.level});var T={data:[{level:b}],traces:[s.index]},A={frame:{redraw:!1,duration:a.transitionTime},transition:{duration:a.transitionTime,easing:a.transitionEasing},mode:"immediate",fromcurrent:!0};mE.loneUnhover(v._hoverlayer.node()),Hze.call("animate",i,T,A)}};t.on("mouseover",f),t.on("mouseout",h),t.on("click",p)};function yE(e,t,r){for(var i=e.data.data,n={curveNumber:t.index,pointNumber:i.i,data:t._input,fullData:t},a=0;a{"use strict";var bE=gi(),_er=oE(),vv=(S_(),Pt(M_)).interpolate,Wze=en(),lf=it(),wer=ho(),Kze=af(),Yze=Kze.recordMinTextSize,Ter=Kze.clearMinTextSize,Jze=xI(),Aer=Oy().getRotationAngle,Mer=Jze.computeTransform,Ser=Jze.transformInsideText,Eer=QK().styleOne,ker=Rd().resizeText,Cer=xE(),eJ=(CK(),Pt(kK)),Ba=vm();UI.plot=function(e,t,r,i){var n=e._fullLayout,a=n._sunburstlayer,o,s,l=!r,u=!n.uniformtext.mode&&Ba.hasTransition(r);if(Ter("sunburst",n),o=a.selectAll("g.trace.sunburst").data(t,function(f){return f[0].trace.uid}),o.enter().append("g").classed("trace",!0).classed("sunburst",!0).attr("stroke-linejoin","round"),o.order(),u){i&&(s=i());var c=bE.transition().duration(r.duration).ease(r.easing).each("end",function(){s&&s()}).each("interrupt",function(){s&&s()});c.each(function(){a.selectAll("g.trace").each(function(f){Xze(e,f,this,r)})})}else o.each(function(f){Xze(e,f,this,r)}),n.uniformtext.mode&&ker(e,n._sunburstlayer.selectAll(".trace"),"sunburst");l&&o.exit().remove()};function Xze(e,t,r,i){var n=e._context.staticPlot,a=e._fullLayout,o=!a.uniformtext.mode&&Ba.hasTransition(i),s=bE.select(r),l=s.selectAll("g.slice"),u=t[0],c=u.trace,f=u.hierarchy,h=Ba.findEntryWithLevel(f,c.level),p=Ba.getMaxDepth(c),d=a._size,v=c.domain,m=d.w*(v.x[1]-v.x[0]),g=d.h*(v.y[1]-v.y[0]),w=.5*Math.min(m,g),_=u.cx=d.l+d.w*(v.x[1]+v.x[0])/2,b=u.cy=d.t+d.h*(1-v.y[0])-g/2;if(!h)return l.remove();var S=null,x={};o&&l.each(function(j){x[Ba.getPtId(j)]={rpx0:j.rpx0,rpx1:j.rpx1,x0:j.x0,x1:j.x1,transform:j.transform},!S&&Ba.isEntry(j)&&(S=j)});var T=Der(h).descendants(),A=h.height+1,y=0,E=p;u.hasMultipleRoots&&Ba.isHierarchyRoot(h)&&(T=T.slice(1),A-=1,y=1,E+=1),T=T.filter(function(j){return j.y1<=E});var M=Aer(c.rotation);M&&T.forEach(function(j){j.x0+=M,j.x1+=M});var C=Math.min(A,p),k=function(j){return(j-y)/C*w},D=function(j,q){return[j*Math.cos(q),-j*Math.sin(q)]},L=function(j){return lf.pathAnnulus(j.rpx0,j.rpx1,j.x0,j.x1,_,b)},P=function(j){return _+Zze(j)[0]*(j.transform.rCenter||0)+(j.transform.x||0)},R=function(j){return b+Zze(j)[1]*(j.transform.rCenter||0)+(j.transform.y||0)};l=l.data(T,Ba.getPtId),l.enter().append("g").classed("slice",!0),o?l.exit().transition().each(function(){var j=bE.select(this),q=j.select("path.surface");q.transition().attrTween("d",function(U){var V=O(U);return function(X){return L(V(X))}});var Q=j.select("g.slicetext");Q.attr("opacity",0)}).remove():l.exit().remove(),l.order();var F=null;if(o&&S){var I=Ba.getPtId(S);l.each(function(j){F===null&&Ba.getPtId(j)===I&&(F=j.x1)})}var B=l;o&&(B=B.transition().each("end",function(){var j=bE.select(this);Ba.setSliceCursor(j,e,{hideOnRoot:!0,hideOnLeaves:!0,isTransitioning:!1})})),B.each(function(j){var q=bE.select(this),Q=lf.ensureSingle(q,"path","surface",function(J){J.style("pointer-events",n?"none":"all")});j.rpx0=k(j.y0),j.rpx1=k(j.y1),j.xmid=(j.x0+j.x1)/2,j.pxmid=D(j.rpx1,j.xmid),j.midangle=-(j.xmid-Math.PI/2),j.startangle=-(j.x0-Math.PI/2),j.stopangle=-(j.x1-Math.PI/2),j.halfangle=.5*Math.min(lf.angleDelta(j.x0,j.x1)||Math.PI,Math.PI),j.ring=1-j.rpx0/j.rpx1,j.rInscribed=Fer(j,c),o?Q.transition().attrTween("d",function(J){var te=$(J);return function(ue){return L(te(ue))}}):Q.attr("d",L),q.call(Cer,h,e,t,{eventDataKeys:eJ.eventDataKeys,transitionTime:eJ.CLICK_TRANSITION_TIME,transitionEasing:eJ.CLICK_TRANSITION_EASING}).call(Ba.setSliceCursor,e,{hideOnRoot:!0,hideOnLeaves:!0,isTransitioning:e._transitioning}),Q.call(Eer,j,c,e);var U=lf.ensureSingle(q,"g","slicetext"),V=lf.ensureSingle(U,"text","",function(J){J.attr("data-notex",1)}),X=lf.ensureUniformFontSize(e,Ba.determineTextFont(c,j,a.font));V.text(UI.formatSliceLabel(j,h,c,t,a)).classed("slicetext",!0).attr("text-anchor","middle").call(Wze.font,X).call(wer.convertToTspans,e);var G=Wze.bBox(V.node());j.transform=Ser(G,j,u),j.transform.targetX=P(j),j.transform.targetY=R(j);var H=function(J,te){var ue=J.transform;return Mer(ue,te),ue.fontSize=X.size,Yze(c.type,ue,a),lf.getTextTransform(ue)};o?V.transition().attrTween("transform",function(J){var te=Y(J);return function(ue){return H(te(ue),G)}}):V.attr("transform",H(j,G))});function O(j){var q=Ba.getPtId(j),Q=x[q],U=x[Ba.getPtId(h)],V;if(U){var X=(j.x1>U.x1?2*Math.PI:0)+M;V=j.rpx1F?2*Math.PI:0)+M;Q={x0:V,x1:V}}else Q={rpx0:w,rpx1:w},lf.extendFlat(Q,K(j));else Q={rpx0:0,rpx1:0};else Q={x0:M,x1:M};return vv(Q,U)}function Y(j){var q=x[Ba.getPtId(j)],Q,U=j.transform;if(q)Q=q;else if(Q={rpx1:j.rpx1,transform:{textPosAngle:U.textPosAngle,scale:0,rotate:U.rotate,rCenter:U.rCenter,x:U.x,y:U.y}},S)if(j.parent)if(F){var V=j.x1>F?2*Math.PI:0;Q.x0=Q.x1=V}else lf.extendFlat(Q,K(j));else Q.x0=Q.x1=M;else Q.x0=Q.x1=M;var X=vv(Q.transform.textPosAngle,j.transform.textPosAngle),G=vv(Q.rpx1,j.rpx1),H=vv(Q.x0,j.x0),J=vv(Q.x1,j.x1),te=vv(Q.transform.scale,U.scale),ue=vv(Q.transform.rotate,U.rotate),ge=U.rCenter===0?3:Q.transform.rCenter===0?1/3:1,ke=vv(Q.transform.rCenter,U.rCenter),_e=function(he){return ke(Math.pow(he,ge))};return function(he){var oe=G(he),Me=H(he),ye=J(he),ce=_e(he),ee=D(oe,(Me+ye)/2),ae=X(he),xe={pxmid:ee,rpx1:oe,transform:{textPosAngle:ae,rCenter:ce,x:U.x,y:U.y}};return Yze(c.type,U,a),{transform:{targetX:P(xe),targetY:R(xe),scale:te(he),rotate:ue(he),rCenter:ce}}}}function K(j){var q=j.parent,Q=x[Ba.getPtId(q)],U={};if(Q){var V=q.children,X=V.indexOf(j),G=V.length,H=vv(Q.x0,Q.x1);U.x0=H(X/G),U.x1=H(X/G)}else U.x0=U.x1=0;return U}}function Der(e){return _er.partition().size([2*Math.PI,e.height+1])(e)}UI.formatSliceLabel=function(e,t,r,i,n){var a=r.texttemplate,o=r.textinfo;if(!a&&(!o||o==="none"))return"";var s=n.separators,l=i[0],u=e.data.data,c=l.hierarchy,f=Ba.isHierarchyRoot(e),h=Ba.getParent(c,e),p=Ba.getValue(e);if(!a){var d=o.split("+"),v=function(y){return d.indexOf(y)!==-1},m=[],g;if(v("label")&&u.label&&m.push(u.label),u.hasOwnProperty("v")&&v("value")&&m.push(Ba.formatValue(u.v,s)),!f){v("current path")&&m.push(Ba.getPath(e.data));var w=0;v("percent parent")&&w++,v("percent entry")&&w++,v("percent root")&&w++;var _=w>1;if(w){var b,S=function(y){g=Ba.formatPercent(b,s),_&&(g+=" of "+y),m.push(g)};v("percent parent")&&!f&&(b=p/Ba.getValue(h),S("parent")),v("percent entry")&&(b=p/Ba.getValue(t),S("entry")),v("percent root")&&(b=p/Ba.getValue(c),S("root"))}}return v("text")&&(g=lf.castOption(r,u.i,"text"),lf.isValidTextValue(g)&&m.push(g)),m.join("
")}var x=lf.castOption(r,u.i,"texttemplate");if(!x)return"";var T={};u.label&&(T.label=u.label),u.hasOwnProperty("v")&&(T.value=u.v,T.valueLabel=Ba.formatValue(u.v,s)),T.currentPath=Ba.getPath(e.data),f||(T.percentParent=p/Ba.getValue(h),T.percentParentLabel=Ba.formatPercent(T.percentParent,s),T.parent=Ba.getPtLabel(h)),T.percentEntry=p/Ba.getValue(t),T.percentEntryLabel=Ba.formatPercent(T.percentEntry,s),T.entry=Ba.getPtLabel(t),T.percentRoot=p/Ba.getValue(c),T.percentRootLabel=Ba.formatPercent(T.percentRoot,s),T.root=Ba.getPtLabel(c),u.hasOwnProperty("color")&&(T.color=u.color);var A=lf.castOption(r,u.i,"text");return(lf.isValidTextValue(A)||A==="")&&(T.text=A),T.customdata=lf.castOption(r,u.i,"customdata"),lf.texttemplateString({data:[T,r._meta],fallback:r.texttemplatefallback,labels:T,locale:n._d3locale,template:x})};function Fer(e){return e.rpx0===0&&lf.isFullCircle([e.x0,e.x1])?1:Math.max(0,Math.min(1/(1+1/Math.sin(e.halfangle)),e.ring/2))}function Zze(e){return Ler(e.rpx1,e.transform.textPosAngle)}function Ler(e,t){return[e*Math.sin(t),-e*Math.cos(t)]}});var eBe=W((QXr,Qze)=>{"use strict";Qze.exports={moduleType:"trace",name:"sunburst",basePlotModule:pRe(),categories:[],animatable:!0,attributes:aE(),layoutAttributes:DK(),supplyDefaults:wRe(),supplyLayoutDefaults:ARe(),calc:lE().calc,crossTraceCalc:lE().crossTraceCalc,plot:VI().plot,style:QK().style,colorbar:kc(),meta:{}}});var rBe=W((eZr,tBe)=>{"use strict";tBe.exports=eBe()});var nBe=W(C4=>{"use strict";var iBe=Qo();C4.name="treemap";C4.plot=function(e,t,r,i){iBe.plotBasePlot(C4.name,e,t,r,i)};C4.clean=function(e,t,r,i){iBe.cleanBasePlot(C4.name,e,t,r,i)}});var k_={};Kn(k_,{CLICK_TRANSITION_EASING:()=>Ier,CLICK_TRANSITION_TIME:()=>Per,eventDataKeys:()=>Rer,gapWithPathbar:()=>zer});var Per,Ier,Rer,zer,C_=Ci(()=>{"use strict";Per=750,Ier="poly",Rer=["currentPath","root","entry","percentRoot","percentEntry","percentParent"],zer=1});var GI=W((rZr,sBe)=>{"use strict";var{hovertemplateAttrs:Ber,texttemplateAttrs:qer,templatefallbackAttrs:aBe}=$a(),Oer=Fo(),Ner=fs().attributes,D_=m_(),Yd=aE(),oBe=(C_(),Pt(k_)),tJ=nn().extendFlat,Uer=Ru().pattern;sBe.exports={labels:Yd.labels,parents:Yd.parents,values:Yd.values,branchvalues:Yd.branchvalues,count:Yd.count,level:Yd.level,maxdepth:Yd.maxdepth,tiling:{packing:{valType:"enumerated",values:["squarify","binary","dice","slice","slice-dice","dice-slice"],dflt:"squarify",editType:"plot"},squarifyratio:{valType:"number",min:1,dflt:1,editType:"plot"},flip:{valType:"flaglist",flags:["x","y"],dflt:"",editType:"plot"},pad:{valType:"number",min:0,dflt:3,editType:"plot"},editType:"calc"},marker:tJ({pad:{t:{valType:"number",min:0,editType:"plot"},l:{valType:"number",min:0,editType:"plot"},r:{valType:"number",min:0,editType:"plot"},b:{valType:"number",min:0,editType:"plot"},editType:"calc"},colors:Yd.marker.colors,pattern:Uer,depthfade:{valType:"enumerated",values:[!0,!1,"reversed"],editType:"style"},line:Yd.marker.line,cornerradius:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"calc"},Oer("marker",{colorAttr:"colors",anim:!1})),pathbar:{visible:{valType:"boolean",dflt:!0,editType:"plot"},side:{valType:"enumerated",values:["top","bottom"],dflt:"top",editType:"plot"},edgeshape:{valType:"enumerated",values:[">","<","|","/","\\"],dflt:">",editType:"plot"},thickness:{valType:"number",min:12,editType:"plot"},textfont:tJ({},D_.textfont,{}),editType:"calc"},text:D_.text,textinfo:Yd.textinfo,texttemplate:qer({editType:"plot"},{keys:oBe.eventDataKeys.concat(["label","value"])}),texttemplatefallback:aBe({editType:"plot"}),hovertext:D_.hovertext,hoverinfo:Yd.hoverinfo,hovertemplate:Ber({},{keys:oBe.eventDataKeys}),hovertemplatefallback:aBe(),textfont:D_.textfont,insidetextfont:D_.insidetextfont,outsidetextfont:tJ({},D_.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:D_.sort,root:Yd.root,domain:Ner({name:"treemap",trace:!0,editType:"calc"})}});var rJ=W((iZr,lBe)=>{"use strict";lBe.exports={treemapcolorway:{valType:"colorlist",editType:"calc"},extendtreemapcolors:{valType:"boolean",dflt:!0,editType:"calc"}}});var hBe=W((nZr,fBe)=>{"use strict";var uBe=it(),Ver=GI(),Ger=ai(),Her=fs().defaults,jer=L0().handleText,$er=(Xy(),Pt(Yy)).TEXTPAD,Wer=y_().handleMarkerDefaults,cBe=es(),Yer=cBe.hasColorscale,Xer=cBe.handleDefaults;fBe.exports=function(t,r,i,n){function a(m,g){return uBe.coerce(t,r,Ver,m,g)}var o=a("labels"),s=a("parents");if(!o||!o.length||!s||!s.length){r.visible=!1;return}var l=a("values");l&&l.length?a("branchvalues"):a("count"),a("level"),a("maxdepth");var u=a("tiling.packing");u==="squarify"&&a("tiling.squarifyratio"),a("tiling.flip"),a("tiling.pad");var c=a("text");a("texttemplate"),a("texttemplatefallback"),r.texttemplate||a("textinfo",uBe.isArrayOrTypedArray(c)?"text+label":"label"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback");var f=a("pathbar.visible"),h="auto";jer(t,r,n,a,h,{hasPathbar:f,moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1}),a("textposition");var p=r.textposition.indexOf("bottom")!==-1;Wer(t,r,n,a);var d=r._hasColorscale=Yer(t,"marker","colors")||(t.marker||{}).coloraxis;d?Xer(t,r,n,a,{prefix:"marker.",cLetter:"c"}):a("marker.depthfade",!(r.marker.colors||[]).length);var v=r.textfont.size*2;a("marker.pad.t",p?v/4:v),a("marker.pad.l",v/4),a("marker.pad.r",v/4),a("marker.pad.b",p?v:v/4),a("marker.cornerradius"),r._hovered={marker:{line:{width:2,color:Ger.contrast(n.paper_bgcolor)}}},f&&(a("pathbar.thickness",r.pathbar.textfont.size+2*$er),a("pathbar.side"),a("pathbar.edgeshape")),a("sort"),a("root.color"),Her(r,n,a),r._length=null}});var pBe=W((aZr,dBe)=>{"use strict";var Zer=it(),Ker=rJ();dBe.exports=function(t,r){function i(n,a){return Zer.coerce(t,r,Ker,n,a)}i("treemapcolorway",r.colorway),i("extendtreemapcolors")}});var nJ=W(iJ=>{"use strict";var vBe=lE();iJ.calc=function(e,t){return vBe.calc(e,t)};iJ.crossTraceCalc=function(e){return vBe._runCrossTraceCalc("treemap",e)}});var aJ=W((sZr,gBe)=>{"use strict";gBe.exports=function e(t,r,i){var n;i.swapXY&&(n=t.x0,t.x0=t.y0,t.y0=n,n=t.x1,t.x1=t.y1,t.y1=n),i.flipX&&(n=t.x0,t.x0=r[0]-t.x1,t.x1=r[0]-n),i.flipY&&(n=t.y0,t.y0=r[1]-t.y1,t.y1=r[1]-n);var a=t.children;if(a)for(var o=0;o{"use strict";var D4=oE(),Jer=aJ();mBe.exports=function(t,r,i){var n=i.flipX,a=i.flipY,o=i.packing==="dice-slice",s=i.pad[a?"bottom":"top"],l=i.pad[n?"right":"left"],u=i.pad[n?"left":"right"],c=i.pad[a?"top":"bottom"],f;o&&(f=l,l=s,s=f,f=u,u=c,c=f);var h=D4.treemap().tile(Qer(i.packing,i.squarifyratio)).paddingInner(i.pad.inner).paddingLeft(l).paddingRight(u).paddingTop(s).paddingBottom(c).size(o?[r[1],r[0]]:r)(t);return(o||n||a)&&Jer(h,r,{swapXY:o,flipX:n,flipY:a}),h};function Qer(e,t){switch(e){case"squarify":return D4.treemapSquarify.ratio(t);case"binary":return D4.treemapBinary;case"dice":return D4.treemapDice;case"slice":return D4.treemapSlice;default:return D4.treemapSliceDice}}});var HI=W((uZr,_Be)=>{"use strict";var yBe=gi(),F4=ai(),xBe=it(),sJ=vm(),etr=af().resizeText,ttr=NI();function rtr(e){var t=e._fullLayout._treemaplayer.selectAll(".trace");etr(e,t,"treemap"),t.each(function(r){var i=yBe.select(this),n=r[0],a=n.trace;i.style("opacity",a.opacity),i.selectAll("path.surface").each(function(o){yBe.select(this).call(bBe,o,a,e,{hovered:!1})})})}function bBe(e,t,r,i,n){var a=(n||{}).hovered,o=t.data.data,s=o.i,l,u,c=o.color,f=sJ.isHierarchyRoot(t),h=1;if(a)l=r._hovered.marker.line.color,u=r._hovered.marker.line.width;else if(f&&c===r.root.color)h=100,l="rgba(0,0,0,0)",u=0;else if(l=xBe.castOption(r,s,"marker.line.color")||F4.defaultLine,u=xBe.castOption(r,s,"marker.line.width")||0,!r._hasColorscale&&!t.onPathbar){var p=r.marker.depthfade;if(p){var d=F4.combine(F4.addOpacity(r._backgroundColor,.75),c),v;if(p===!0){var m=sJ.getMaxDepth(r);isFinite(m)?sJ.isLeaf(t)?v=0:v=r._maxVisibleLayers-(t.data.depth-r._entryDepth):v=t.data.height+1}else v=t.data.depth-r._entryDepth,r._atRootLevel||v++;if(v>0)for(var g=0;g{"use strict";var wBe=gi(),jI=it(),TBe=en(),itr=ho(),ntr=oJ(),ABe=HI().styleOne,lJ=(C_(),Pt(k_)),L4=vm(),atr=xE(),uJ=!0;MBe.exports=function(t,r,i,n,a){var o=a.barDifY,s=a.width,l=a.height,u=a.viewX,c=a.viewY,f=a.pathSlice,h=a.toMoveInsideSlice,p=a.strTransform,d=a.hasTransition,v=a.handleSlicesExit,m=a.makeUpdateSliceInterpolator,g=a.makeUpdateTextInterpolator,w={},_=t._context.staticPlot,b=t._fullLayout,S=r[0],x=S.trace,T=S.hierarchy,A=s/x._entryDepth,y=L4.listPath(i.data,"id"),E=ntr(T.copy(),[s,l],{packing:"dice",pad:{inner:0,top:0,left:0,right:0,bottom:0}}).descendants();E=E.filter(function(C){var k=y.indexOf(C.data.id);return k===-1?!1:(C.x0=A*k,C.x1=A*(k+1),C.y0=o,C.y1=o+l,C.onPathbar=!0,!0)}),E.reverse(),n=n.data(E,L4.getPtId),n.enter().append("g").classed("pathbar",!0),v(n,uJ,w,[s,l],f),n.order();var M=n;d&&(M=M.transition().each("end",function(){var C=wBe.select(this);L4.setSliceCursor(C,t,{hideOnRoot:!1,hideOnLeaves:!1,isTransitioning:!1})})),M.each(function(C){C._x0=u(C.x0),C._x1=u(C.x1),C._y0=c(C.y0),C._y1=c(C.y1),C._hoverX=u(C.x1-Math.min(s,l)/2),C._hoverY=c(C.y1-l/2);var k=wBe.select(this),D=jI.ensureSingle(k,"path","surface",function(F){F.style("pointer-events",_?"none":"all")});d?D.transition().attrTween("d",function(F){var I=m(F,uJ,w,[s,l]);return function(B){return f(I(B))}}):D.attr("d",f),k.call(atr,i,t,r,{styleOne:ABe,eventDataKeys:lJ.eventDataKeys,transitionTime:lJ.CLICK_TRANSITION_TIME,transitionEasing:lJ.CLICK_TRANSITION_EASING}).call(L4.setSliceCursor,t,{hideOnRoot:!1,hideOnLeaves:!1,isTransitioning:t._transitioning}),D.call(ABe,C,x,t,{hovered:!1}),C._text=(L4.getPtLabel(C)||"").split("
").join(" ")||"";var L=jI.ensureSingle(k,"g","slicetext"),P=jI.ensureSingle(L,"text","",function(F){F.attr("data-notex",1)}),R=jI.ensureUniformFontSize(t,L4.determineTextFont(x,C,b.font,{onPathbar:!0}));P.text(C._text||" ").classed("slicetext",!0).attr("text-anchor","start").call(TBe.font,R).call(itr.convertToTspans,t),C.textBB=TBe.bBox(P.node()),C.transform=h(C,{fontSize:R.size,onPathbar:!0}),C.transform.fontSize=R.size,d?P.transition().attrTween("transform",function(F){var I=g(F,uJ,w,[s,l]);return function(B){return p(I(B))}}):P.attr("transform",p(C))})}});var DBe=W((fZr,CBe)=>{"use strict";var EBe=gi(),cJ=(S_(),Pt(M_)).interpolate,k2=vm(),_E=it(),kBe=(Xy(),Pt(Yy)).TEXTPAD,otr=Wb(),str=otr.toMoveInsideBar,ltr=af(),fJ=ltr.recordMinTextSize,utr=(C_(),Pt(k_)),ctr=SBe();function F_(e){return k2.isHierarchyRoot(e)?"":k2.getPtId(e)}CBe.exports=function(t,r,i,n,a){var o=t._fullLayout,s=r[0],l=s.trace,u=l.type,c=u==="icicle",f=s.hierarchy,h=k2.findEntryWithLevel(f,l.level),p=EBe.select(i),d=p.selectAll("g.pathbar"),v=p.selectAll("g.slice");if(!h){d.remove(),v.remove();return}var m=k2.isHierarchyRoot(h),g=!o.uniformtext.mode&&k2.hasTransition(n),w=k2.getMaxDepth(l),_=function(re){return re.data.depth-h.data.depth-1?T+E:-(y+E):0,C={x0:A,x1:A,y0:M,y1:M+y},k=function(re,pe,we){var Fe=l.tiling.pad,Ee=function(Oe){return Oe-Fe<=pe.x0},Ce=function(Oe){return Oe+Fe>=pe.x1},be=function(Oe){return Oe-Fe<=pe.y0},Ie=function(Oe){return Oe+Fe>=pe.y1};return re.x0===pe.x0&&re.x1===pe.x1&&re.y0===pe.y0&&re.y1===pe.y1?{x0:re.x0,x1:re.x1,y0:re.y0,y1:re.y1}:{x0:Ee(re.x0-Fe)?0:Ce(re.x0-Fe)?we[0]:re.x0,x1:Ee(re.x1+Fe)?0:Ce(re.x1+Fe)?we[0]:re.x1,y0:be(re.y0-Fe)?0:Ie(re.y0-Fe)?we[1]:re.y0,y1:be(re.y1+Fe)?0:Ie(re.y1+Fe)?we[1]:re.y1}},D=null,L={},P={},R=null,F=function(re,pe){return pe?L[F_(re)]:P[F_(re)]},I=function(re,pe,we,Fe){if(pe)return L[F_(f)]||C;var Ee=P[l.level]||we;return _(re)?k(re,Ee,Fe):{}};s.hasMultipleRoots&&m&&w++,l._maxDepth=w,l._backgroundColor=o.paper_bgcolor,l._entryDepth=h.data.depth,l._atRootLevel=m;var B=-x/2+b.l+b.w*(S.x[1]+S.x[0])/2,O=-T/2+b.t+b.h*(1-(S.y[1]+S.y[0])/2),$=function(re){return B+re},Y=function(re){return O+re},K=Y(0),j=$(0),q=function(re){return j+re},Q=function(re){return K+re};function U(re,pe){return re+","+pe}var V=q(0),X=function(re){re.x=Math.max(V,re.x)},G=l.pathbar.edgeshape,H=function(re){var pe=q(Math.max(Math.min(re.x0,re.x0),0)),we=q(Math.min(Math.max(re.x1,re.x1),A)),Fe=Q(re.y0),Ee=Q(re.y1),Ce=y/2,be={},Ie={};be.x=pe,Ie.x=we,be.y=Ie.y=(Fe+Ee)/2;var Oe={x:pe,y:Fe},Qe={x:we,y:Fe},et={x:we,y:Ee},bt={x:pe,y:Ee};return G===">"?(Oe.x-=Ce,Qe.x-=Ce,et.x-=Ce,bt.x-=Ce):G==="/"?(et.x-=Ce,bt.x-=Ce,be.x-=Ce/2,Ie.x-=Ce/2):G==="\\"?(Oe.x-=Ce,Qe.x-=Ce,be.x-=Ce/2,Ie.x-=Ce/2):G==="<"&&(be.x-=Ce,Ie.x-=Ce),X(Oe),X(bt),X(be),X(Qe),X(et),X(Ie),"M"+U(Oe.x,Oe.y)+"L"+U(Qe.x,Qe.y)+"L"+U(Ie.x,Ie.y)+"L"+U(et.x,et.y)+"L"+U(bt.x,bt.y)+"L"+U(be.x,be.y)+"Z"},J=l[c?"tiling":"marker"].pad,te=function(re){return l.textposition.indexOf(re)!==-1},ue=te("top"),ge=te("left"),ke=te("right"),_e=te("bottom"),he=function(re){var pe=$(re.x0),we=$(re.x1),Fe=Y(re.y0),Ee=Y(re.y1),Ce=we-pe,be=Ee-Fe;if(!Ce||!be)return"";var Ie=l.marker.cornerradius||0,Oe=Math.min(Ie,Ce/2,be/2);Oe&&re.data&&re.data.data&&re.data.data.label&&(ue&&(Oe=Math.min(Oe,J.t)),ge&&(Oe=Math.min(Oe,J.l)),ke&&(Oe=Math.min(Oe,J.r)),_e&&(Oe=Math.min(Oe,J.b)));var Qe=function(et,bt){return Oe?"a"+U(Oe,Oe)+" 0 0 1 "+U(et,bt):""};return"M"+U(pe,Fe+Oe)+Qe(Oe,-Oe)+"L"+U(we-Oe,Fe)+Qe(Oe,Oe)+"L"+U(we,Ee-Oe)+Qe(-Oe,Oe)+"L"+U(pe+Oe,Ee)+Qe(-Oe,-Oe)+"Z"},oe=function(re,pe){var we=re.x0,Fe=re.x1,Ee=re.y0,Ce=re.y1,be=re.textBB,Ie=ue||pe.isHeader&&!_e,Oe=Ie?"start":_e?"end":"middle",Qe=te("right"),et=te("left")||pe.onPathbar,bt=et?-1:Qe?1:0;if(pe.isHeader){if(we+=(c?J:J.l)-kBe,Fe-=(c?J:J.r)-kBe,we>=Fe){var ut=(we+Fe)/2;we=ut,Fe=ut}var vt;_e?(vt=Ce-(c?J:J.b),Ee{"use strict";var ftr=gi(),htr=vm(),dtr=af(),ptr=dtr.clearMinTextSize,vtr=Rd().resizeText,FBe=DBe();LBe.exports=function(t,r,i,n,a){var o=a.type,s=a.drawDescendants,l=t._fullLayout,u=l["_"+o+"layer"],c,f,h=!i;if(ptr(o,l),c=u.selectAll("g.trace."+o).data(r,function(d){return d[0].trace.uid}),c.enter().append("g").classed("trace",!0).classed(o,!0),c.order(),!l.uniformtext.mode&&htr.hasTransition(i)){n&&(f=n());var p=ftr.transition().duration(i.duration).ease(i.easing).each("end",function(){f&&f()}).each("interrupt",function(){f&&f()});p.each(function(){u.selectAll("g.trace").each(function(d){FBe(t,d,this,i,s)})})}else c.each(function(d){FBe(t,d,this,i,s)}),l.uniformtext.mode&&vtr(t,u.selectAll(".trace"),o);h&&c.exit().remove()}});var BBe=W((dZr,zBe)=>{"use strict";var PBe=gi(),$I=it(),IBe=en(),gtr=ho(),mtr=oJ(),RBe=HI().styleOne,dJ=(C_(),Pt(k_)),C2=vm(),ytr=xE(),xtr=VI().formatSliceLabel,pJ=!1;zBe.exports=function(t,r,i,n,a){var o=a.width,s=a.height,l=a.viewX,u=a.viewY,c=a.pathSlice,f=a.toMoveInsideSlice,h=a.strTransform,p=a.hasTransition,d=a.handleSlicesExit,v=a.makeUpdateSliceInterpolator,m=a.makeUpdateTextInterpolator,g=a.prevEntry,w={},_=t._context.staticPlot,b=t._fullLayout,S=r[0],x=S.trace,T=x.textposition.indexOf("left")!==-1,A=x.textposition.indexOf("right")!==-1,y=x.textposition.indexOf("bottom")!==-1,E=!y&&!x.marker.pad.t||y&&!x.marker.pad.b,M=mtr(i,[o,s],{packing:x.tiling.packing,squarifyratio:x.tiling.squarifyratio,flipX:x.tiling.flip.indexOf("x")>-1,flipY:x.tiling.flip.indexOf("y")>-1,pad:{inner:x.tiling.pad,top:x.marker.pad.t,left:x.marker.pad.l,right:x.marker.pad.r,bottom:x.marker.pad.b}}),C=M.descendants(),k=1/0,D=-1/0;C.forEach(function(I){var B=I.depth;B>=x._maxDepth?(I.x0=I.x1=(I.x0+I.x1)/2,I.y0=I.y1=(I.y0+I.y1)/2):(k=Math.min(k,B),D=Math.max(D,B))}),n=n.data(C,C2.getPtId),x._maxVisibleLayers=isFinite(D)?D-k+1:0,n.enter().append("g").classed("slice",!0),d(n,pJ,w,[o,s],c),n.order();var L=null;if(p&&g){var P=C2.getPtId(g);n.each(function(I){L===null&&C2.getPtId(I)===P&&(L={x0:I.x0,x1:I.x1,y0:I.y0,y1:I.y1})})}var R=function(){return L||{x0:0,x1:o,y0:0,y1:s}},F=n;return p&&(F=F.transition().each("end",function(){var I=PBe.select(this);C2.setSliceCursor(I,t,{hideOnRoot:!0,hideOnLeaves:!1,isTransitioning:!1})})),F.each(function(I){var B=C2.isHeader(I,x);I._x0=l(I.x0),I._x1=l(I.x1),I._y0=u(I.y0),I._y1=u(I.y1),I._hoverX=l(I.x1-x.marker.pad.r),I._hoverY=u(y?I.y1-x.marker.pad.b/2:I.y0+x.marker.pad.t/2);var O=PBe.select(this),$=$I.ensureSingle(O,"path","surface",function(U){U.style("pointer-events",_?"none":"all")});p?$.transition().attrTween("d",function(U){var V=v(U,pJ,R(),[o,s]);return function(X){return c(V(X))}}):$.attr("d",c),O.call(ytr,i,t,r,{styleOne:RBe,eventDataKeys:dJ.eventDataKeys,transitionTime:dJ.CLICK_TRANSITION_TIME,transitionEasing:dJ.CLICK_TRANSITION_EASING}).call(C2.setSliceCursor,t,{isTransitioning:t._transitioning}),$.call(RBe,I,x,t,{hovered:!1}),I.x0===I.x1||I.y0===I.y1?I._text="":B?I._text=E?"":C2.getPtLabel(I)||"":I._text=xtr(I,i,x,r,b)||"";var Y=$I.ensureSingle(O,"g","slicetext"),K=$I.ensureSingle(Y,"text","",function(U){U.attr("data-notex",1)}),j=$I.ensureUniformFontSize(t,C2.determineTextFont(x,I,b.font)),q=I._text||" ",Q=B&&q.indexOf("
")===-1;K.text(q).classed("slicetext",!0).attr("text-anchor",A?"end":T||Q?"start":"middle").call(IBe.font,j).call(gtr.convertToTspans,t),I.textBB=IBe.bBox(K.node()),I.transform=f(I,{fontSize:j.size,isHeader:B}),I.transform.fontSize=j.size,p?K.transition().attrTween("transform",function(U){var V=m(U,pJ,R(),[o,s]);return function(X){return h(V(X))}}):K.attr("transform",h(I))}),L}});var OBe=W((pZr,qBe)=>{"use strict";var btr=hJ(),_tr=BBe();qBe.exports=function(t,r,i,n){return btr(t,r,i,n,{type:"treemap",drawDescendants:_tr})}});var UBe=W((vZr,NBe)=>{"use strict";NBe.exports={moduleType:"trace",name:"treemap",basePlotModule:nBe(),categories:[],animatable:!0,attributes:GI(),layoutAttributes:rJ(),supplyDefaults:hBe(),supplyLayoutDefaults:pBe(),calc:nJ().calc,crossTraceCalc:nJ().crossTraceCalc,plot:OBe(),style:HI().style,colorbar:kc(),meta:{}}});var GBe=W((gZr,VBe)=>{"use strict";VBe.exports=UBe()});var jBe=W(P4=>{"use strict";var HBe=Qo();P4.name="icicle";P4.plot=function(e,t,r,i){HBe.plotBasePlot(P4.name,e,t,r,i)};P4.clean=function(e,t,r,i){HBe.cleanBasePlot(P4.name,e,t,r,i)}});var vJ=W((yZr,YBe)=>{"use strict";var{hovertemplateAttrs:wtr,texttemplateAttrs:Ttr,templatefallbackAttrs:$Be}=$a(),Atr=Fo(),Mtr=fs().attributes,wE=m_(),q0=aE(),WI=GI(),WBe=(C_(),Pt(k_)),Str=nn().extendFlat,Etr=Ru().pattern;YBe.exports={labels:q0.labels,parents:q0.parents,values:q0.values,branchvalues:q0.branchvalues,count:q0.count,level:q0.level,maxdepth:q0.maxdepth,tiling:{orientation:{valType:"enumerated",values:["v","h"],dflt:"h",editType:"plot"},flip:WI.tiling.flip,pad:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"calc"},marker:Str({colors:q0.marker.colors,line:q0.marker.line,pattern:Etr,editType:"calc"},Atr("marker",{colorAttr:"colors",anim:!1})),leaf:q0.leaf,pathbar:WI.pathbar,text:wE.text,textinfo:q0.textinfo,texttemplate:Ttr({editType:"plot"},{keys:WBe.eventDataKeys.concat(["label","value"])}),texttemplatefallback:$Be({editType:"plot"}),hovertext:wE.hovertext,hoverinfo:q0.hoverinfo,hovertemplate:wtr({},{keys:WBe.eventDataKeys}),hovertemplatefallback:$Be(),textfont:wE.textfont,insidetextfont:wE.insidetextfont,outsidetextfont:WI.outsidetextfont,textposition:WI.textposition,sort:wE.sort,root:q0.root,domain:Mtr({name:"icicle",trace:!0,editType:"calc"})}});var gJ=W((xZr,XBe)=>{"use strict";XBe.exports={iciclecolorway:{valType:"colorlist",editType:"calc"},extendiciclecolors:{valType:"boolean",dflt:!0,editType:"calc"}}});var QBe=W((bZr,JBe)=>{"use strict";var ZBe=it(),ktr=vJ(),Ctr=ai(),Dtr=fs().defaults,Ftr=L0().handleText,Ltr=(Xy(),Pt(Yy)).TEXTPAD,Ptr=y_().handleMarkerDefaults,KBe=es(),Itr=KBe.hasColorscale,Rtr=KBe.handleDefaults;JBe.exports=function(t,r,i,n){function a(p,d){return ZBe.coerce(t,r,ktr,p,d)}var o=a("labels"),s=a("parents");if(!o||!o.length||!s||!s.length){r.visible=!1;return}var l=a("values");l&&l.length?a("branchvalues"):a("count"),a("level"),a("maxdepth"),a("tiling.orientation"),a("tiling.flip"),a("tiling.pad");var u=a("text");a("texttemplate"),a("texttemplatefallback"),r.texttemplate||a("textinfo",ZBe.isArrayOrTypedArray(u)?"text+label":"label"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback");var c=a("pathbar.visible"),f="auto";Ftr(t,r,n,a,f,{hasPathbar:c,moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1}),a("textposition"),Ptr(t,r,n,a);var h=r._hasColorscale=Itr(t,"marker","colors")||(t.marker||{}).coloraxis;h&&Rtr(t,r,n,a,{prefix:"marker.",cLetter:"c"}),a("leaf.opacity",h?1:.7),r._hovered={marker:{line:{width:2,color:Ctr.contrast(n.paper_bgcolor)}}},c&&(a("pathbar.thickness",r.pathbar.textfont.size+2*Ltr),a("pathbar.side"),a("pathbar.edgeshape")),a("sort"),a("root.color"),Dtr(r,n,a),r._length=null}});var tqe=W((_Zr,eqe)=>{"use strict";var ztr=it(),Btr=gJ();eqe.exports=function(t,r){function i(n,a){return ztr.coerce(t,r,Btr,n,a)}i("iciclecolorway",r.colorway),i("extendiciclecolors")}});var yJ=W(mJ=>{"use strict";var rqe=lE();mJ.calc=function(e,t){return rqe.calc(e,t)};mJ.crossTraceCalc=function(e){return rqe._runCrossTraceCalc("icicle",e)}});var nqe=W((TZr,iqe)=>{"use strict";var qtr=oE(),Otr=aJ();iqe.exports=function(t,r,i){var n=i.flipX,a=i.flipY,o=i.orientation==="h",s=i.maxDepth,l=r[0],u=r[1];s&&(l=(t.height+1)*r[0]/Math.min(t.height+1,s),u=(t.height+1)*r[1]/Math.min(t.height+1,s));var c=qtr.partition().padding(i.pad.inner).size(o?[r[1],l]:[r[0],u])(t);return(o||n||a)&&Otr(c,r,{swapXY:o,flipX:n,flipY:a}),c}});var xJ=W((AZr,uqe)=>{"use strict";var aqe=gi(),oqe=ai(),sqe=it(),Ntr=af().resizeText,Utr=NI();function Vtr(e){var t=e._fullLayout._iciclelayer.selectAll(".trace");Ntr(e,t,"icicle"),t.each(function(r){var i=aqe.select(this),n=r[0],a=n.trace;i.style("opacity",a.opacity),i.selectAll("path.surface").each(function(o){aqe.select(this).call(lqe,o,a,e)})})}function lqe(e,t,r,i){var n=t.data.data,a=!t.children,o=n.i,s=sqe.castOption(r,o,"marker.line.color")||oqe.defaultLine,l=sqe.castOption(r,o,"marker.line.width")||0;e.call(Utr,t,r,i).style("stroke-width",l).call(oqe.stroke,s).style("opacity",a?r.leaf.opacity:null)}uqe.exports={style:Vtr,styleOne:lqe}});var pqe=W((MZr,dqe)=>{"use strict";var cqe=gi(),YI=it(),fqe=en(),Gtr=ho(),Htr=nqe(),hqe=xJ().styleOne,bJ=(C_(),Pt(k_)),I4=vm(),jtr=xE(),$tr=VI().formatSliceLabel,_J=!1;dqe.exports=function(t,r,i,n,a){var o=a.width,s=a.height,l=a.viewX,u=a.viewY,c=a.pathSlice,f=a.toMoveInsideSlice,h=a.strTransform,p=a.hasTransition,d=a.handleSlicesExit,v=a.makeUpdateSliceInterpolator,m=a.makeUpdateTextInterpolator,g=a.prevEntry,w={},_=t._context.staticPlot,b=t._fullLayout,S=r[0],x=S.trace,T=x.textposition.indexOf("left")!==-1,A=x.textposition.indexOf("right")!==-1,y=x.textposition.indexOf("bottom")!==-1,E=Htr(i,[o,s],{flipX:x.tiling.flip.indexOf("x")>-1,flipY:x.tiling.flip.indexOf("y")>-1,orientation:x.tiling.orientation,pad:{inner:x.tiling.pad},maxDepth:x._maxDepth}),M=E.descendants(),C=1/0,k=-1/0;M.forEach(function(F){var I=F.depth;I>=x._maxDepth?(F.x0=F.x1=(F.x0+F.x1)/2,F.y0=F.y1=(F.y0+F.y1)/2):(C=Math.min(C,I),k=Math.max(k,I))}),n=n.data(M,I4.getPtId),x._maxVisibleLayers=isFinite(k)?k-C+1:0,n.enter().append("g").classed("slice",!0),d(n,_J,w,[o,s],c),n.order();var D=null;if(p&&g){var L=I4.getPtId(g);n.each(function(F){D===null&&I4.getPtId(F)===L&&(D={x0:F.x0,x1:F.x1,y0:F.y0,y1:F.y1})})}var P=function(){return D||{x0:0,x1:o,y0:0,y1:s}},R=n;return p&&(R=R.transition().each("end",function(){var F=cqe.select(this);I4.setSliceCursor(F,t,{hideOnRoot:!0,hideOnLeaves:!1,isTransitioning:!1})})),R.each(function(F){F._x0=l(F.x0),F._x1=l(F.x1),F._y0=u(F.y0),F._y1=u(F.y1),F._hoverX=l(F.x1-x.tiling.pad),F._hoverY=u(y?F.y1-x.tiling.pad/2:F.y0+x.tiling.pad/2);var I=cqe.select(this),B=YI.ensureSingle(I,"path","surface",function(K){K.style("pointer-events",_?"none":"all")});p?B.transition().attrTween("d",function(K){var j=v(K,_J,P(),[o,s],{orientation:x.tiling.orientation,flipX:x.tiling.flip.indexOf("x")>-1,flipY:x.tiling.flip.indexOf("y")>-1});return function(q){return c(j(q))}}):B.attr("d",c),I.call(jtr,i,t,r,{styleOne:hqe,eventDataKeys:bJ.eventDataKeys,transitionTime:bJ.CLICK_TRANSITION_TIME,transitionEasing:bJ.CLICK_TRANSITION_EASING}).call(I4.setSliceCursor,t,{isTransitioning:t._transitioning}),B.call(hqe,F,x,t,{hovered:!1}),F.x0===F.x1||F.y0===F.y1?F._text="":F._text=$tr(F,i,x,r,b)||"";var O=YI.ensureSingle(I,"g","slicetext"),$=YI.ensureSingle(O,"text","",function(K){K.attr("data-notex",1)}),Y=YI.ensureUniformFontSize(t,I4.determineTextFont(x,F,b.font));$.text(F._text||" ").classed("slicetext",!0).attr("text-anchor",A?"end":T?"start":"middle").call(fqe.font,Y).call(Gtr.convertToTspans,t),F.textBB=fqe.bBox($.node()),F.transform=f(F,{fontSize:Y.size}),F.transform.fontSize=Y.size,p?$.transition().attrTween("transform",function(K){var j=m(K,_J,P(),[o,s]);return function(q){return h(j(q))}}):$.attr("transform",h(F))}),D}});var gqe=W((SZr,vqe)=>{"use strict";var Wtr=hJ(),Ytr=pqe();vqe.exports=function(t,r,i,n){return Wtr(t,r,i,n,{type:"icicle",drawDescendants:Ytr})}});var yqe=W((EZr,mqe)=>{"use strict";mqe.exports={moduleType:"trace",name:"icicle",basePlotModule:jBe(),categories:[],animatable:!0,attributes:vJ(),layoutAttributes:gJ(),supplyDefaults:QBe(),supplyLayoutDefaults:tqe(),calc:yJ().calc,crossTraceCalc:yJ().crossTraceCalc,plot:gqe(),style:xJ().style,colorbar:kc(),meta:{}}});var bqe=W((kZr,xqe)=>{"use strict";xqe.exports=yqe()});var wqe=W(R4=>{"use strict";var _qe=Qo();R4.name="funnelarea";R4.plot=function(e,t,r,i){_qe.plotBasePlot(R4.name,e,t,r,i)};R4.clean=function(e,t,r,i){_qe.cleanBasePlot(R4.name,e,t,r,i)}});var wJ=W((DZr,Aqe)=>{"use strict";var Pc=m_(),Xtr=Ka(),Ztr=fs().attributes,{hovertemplateAttrs:Ktr,texttemplateAttrs:Jtr,templatefallbackAttrs:Tqe}=$a(),L_=nn().extendFlat;Aqe.exports={labels:Pc.labels,label0:Pc.label0,dlabel:Pc.dlabel,values:Pc.values,marker:{colors:Pc.marker.colors,line:{color:L_({},Pc.marker.line.color,{dflt:null}),width:L_({},Pc.marker.line.width,{dflt:1}),editType:"calc"},pattern:Pc.marker.pattern,editType:"calc"},text:Pc.text,hovertext:Pc.hovertext,scalegroup:L_({},Pc.scalegroup,{}),textinfo:L_({},Pc.textinfo,{flags:["label","text","value","percent"]}),texttemplate:Jtr({editType:"plot"},{keys:["label","color","value","text","percent"]}),texttemplatefallback:Tqe({editType:"plot"}),hoverinfo:L_({},Xtr.hoverinfo,{flags:["label","text","value","percent","name"]}),hovertemplate:Ktr({},{keys:["label","color","value","text","percent"]}),hovertemplatefallback:Tqe(),textposition:L_({},Pc.textposition,{values:["inside","none"],dflt:"inside"}),textfont:Pc.textfont,insidetextfont:Pc.insidetextfont,title:{text:Pc.title.text,font:Pc.title.font,position:L_({},Pc.title.position,{values:["top left","top center","top right"],dflt:"top center"}),editType:"plot"},domain:Ztr({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"}}});var TJ=W((FZr,Mqe)=>{"use strict";var Qtr=vI().hiddenlabels;Mqe.exports={hiddenlabels:Qtr,funnelareacolorway:{valType:"colorlist",editType:"calc"},extendfunnelareacolors:{valType:"boolean",dflt:!0,editType:"calc"}}});var kqe=W((LZr,Eqe)=>{"use strict";var Sqe=it(),err=wJ(),trr=fs().defaults,rrr=L0().handleText,irr=y_().handleLabelsAndValues,nrr=y_().handleMarkerDefaults;Eqe.exports=function(t,r,i,n){function a(v,m){return Sqe.coerce(t,r,err,v,m)}var o=a("labels"),s=a("values"),l=irr(o,s),u=l.len;if(r._hasLabels=l.hasLabels,r._hasValues=l.hasValues,!r._hasLabels&&r._hasValues&&(a("label0"),a("dlabel")),!u){r.visible=!1;return}r._length=u,nrr(t,r,n,a),a("scalegroup");var c=a("text"),f=a("texttemplate");a("texttemplatefallback");var h;if(f||(h=a("textinfo",Array.isArray(c)?"text+percent":"percent")),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback"),f||h&&h!=="none"){var p=a("textposition");rrr(t,r,n,a,p,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1})}else h==="none"&&a("textposition","none");trr(r,n,a);var d=a("title.text");d&&(a("title.position"),Sqe.coerceFont(a,"title.font",n.font)),a("aspectratio"),a("baseratio")}});var Dqe=W((PZr,Cqe)=>{"use strict";var arr=it(),orr=TJ();Cqe.exports=function(t,r){function i(n,a){return arr.coerce(t,r,orr,n,a)}i("hiddenlabels"),i("funnelareacolorway",r.colorway),i("extendfunnelareacolors")}});var AJ=W((IZr,Lqe)=>{"use strict";var Fqe=m4();function srr(e,t){return Fqe.calc(e,t)}function lrr(e){Fqe.crossTraceCalc(e,{type:"funnelarea"})}Lqe.exports={calc:srr,crossTraceCalc:lrr}});var Bqe=W((RZr,zqe)=>{"use strict";var P_=gi(),MJ=en(),D2=it(),urr=D2.strScale,Pqe=D2.strTranslate,Iqe=ho(),crr=Wb(),frr=crr.toMoveInsideBar,Rqe=af(),hrr=Rqe.recordMinTextSize,drr=Rqe.clearMinTextSize,prr=Oy(),z4=xI(),vrr=z4.attachFxHandlers,grr=z4.determineInsideTextFont,mrr=z4.layoutAreas,yrr=z4.prerenderTitles,xrr=z4.positionTitleOutside,brr=z4.formatSliceLabel;zqe.exports=function(t,r){var i=t._context.staticPlot,n=t._fullLayout;drr("funnelarea",n),yrr(r,t),mrr(r,n._size),D2.makeTraceGroups(n._funnelarealayer,r,"trace").each(function(a){var o=P_.select(this),s=a[0],l=s.trace;wrr(a),o.each(function(){var u=P_.select(this).selectAll("g.slice").data(a);u.enter().append("g").classed("slice",!0),u.exit().remove(),u.each(function(f,h){if(f.hidden){P_.select(this).selectAll("path,g").remove();return}f.pointNumber=f.i,f.curveNumber=l.index;var p=s.cx,d=s.cy,v=P_.select(this),m=v.selectAll("path.surface").data([f]);m.enter().append("path").classed("surface",!0).style({"pointer-events":i?"none":"all"}),v.call(vrr,t,a);var g="M"+(p+f.TR[0])+","+(d+f.TR[1])+SJ(f.TR,f.BR)+SJ(f.BR,f.BL)+SJ(f.BL,f.TL)+"Z";m.attr("d",g),brr(t,f,s);var w=prr.castOption(l.textposition,f.pts),_=v.selectAll("g.slicetext").data(f.text&&w!=="none"?[0]:[]);_.enter().append("g").classed("slicetext",!0),_.exit().remove(),_.each(function(){var b=D2.ensureSingle(P_.select(this),"text","",function(C){C.attr("data-notex",1)}),S=D2.ensureUniformFontSize(t,grr(l,f,n.font));b.text(f.text).attr({class:"slicetext",transform:"","text-anchor":"middle"}).call(MJ.font,S).call(Iqe.convertToTspans,t);var x=MJ.bBox(b.node()),T,A,y,E=Math.min(f.BL[1],f.BR[1])+d,M=Math.max(f.TL[1],f.TR[1])+d;A=Math.max(f.TL[0],f.BL[0])+p,y=Math.min(f.TR[0],f.BR[0])+p,T=frr(A,y,E,M,x,{isHorizontal:!0,constrained:!0,angle:0,anchor:"middle"}),T.fontSize=S.size,hrr(l.type,T,n),a[h].transform=T,D2.setTransormAndDisplay(b,T)})});var c=P_.select(this).selectAll("g.titletext").data(l.title.text?[0]:[]);c.enter().append("g").classed("titletext",!0),c.exit().remove(),c.each(function(){var f=D2.ensureSingle(P_.select(this),"text","",function(d){d.attr("data-notex",1)}),h=l.title.text;l._meta&&(h=D2.templateString(h,l._meta)),f.text(h).attr({class:"titletext",transform:"","text-anchor":"middle"}).call(MJ.font,l.title.font).call(Iqe.convertToTspans,t);var p=xrr(s,n._size);f.attr("transform",Pqe(p.x,p.y)+urr(Math.min(1,p.scale))+Pqe(p.tx,p.ty))})})})};function SJ(e,t){var r=t[0]-e[0],i=t[1]-e[1];return"l"+r+","+i}function _rr(e,t){return[.5*(e[0]+t[0]),.5*(e[1]+t[1])]}function wrr(e){if(!e.length)return;var t=e[0],r=t.trace,i=r.aspectratio,n=r.baseratio;n>.999&&(n=.999);var a=Math.pow(n,2),o=t.vTotal,s=o*a/(1-a),l=o,u=s/o;function c(){var k=Math.sqrt(u);return{x:k,y:-k}}function f(){var k=c();return[k.x,k.y]}var h,p=[];p.push(f());var d,v;for(d=e.length-1;d>-1;d--)if(v=e[d],!v.hidden){var m=v.v/l;u+=m,p.push(f())}var g=1/0,w=-1/0;for(d=0;d-1;d--)if(v=e[d],!v.hidden){E+=1;var M=p[E][0],C=p[E][1];v.TL=[-M,C],v.TR=[M,C],v.BL=A,v.BR=y,v.pxmid=_rr(v.TR,v.BR),A=v.TL,y=v.TR}}});var Nqe=W((zZr,Oqe)=>{"use strict";var qqe=gi(),Trr=Bw(),Arr=af().resizeText;Oqe.exports=function(t){var r=t._fullLayout._funnelarealayer.selectAll(".trace");Arr(t,r,"funnelarea"),r.each(function(i){var n=i[0],a=n.trace,o=qqe.select(this);o.style({opacity:a.opacity}),o.selectAll("path.surface").each(function(s){qqe.select(this).call(Trr,s,a,t)})})}});var Vqe=W((BZr,Uqe)=>{"use strict";Uqe.exports={moduleType:"trace",name:"funnelarea",basePlotModule:wqe(),categories:["pie-like","funnelarea","showLegend"],attributes:wJ(),layoutAttributes:TJ(),supplyDefaults:kqe(),supplyLayoutDefaults:Dqe(),calc:AJ().calc,crossTraceCalc:AJ().crossTraceCalc,plot:Bqe(),style:Nqe(),styleOne:Bw(),meta:{}}});var Hqe=W((qZr,Gqe)=>{"use strict";Gqe.exports=Vqe()});var lc=W((OZr,jqe)=>{"use strict";(()=>{var e={3065(n,a,o){n.exports={alpha_shape:o(3502),convex_hull:o(7352),delaunay_triangulate:o(7642),gl_cone3d:o(6405),gl_error3d:o(9165),gl_line3d:o(5714),gl_mesh3d:o(7201),gl_plot3d:o(4100),gl_scatter3d:o(8418),gl_streamtube3d:o(7815),gl_surface3d:o(9499),ndarray:o(9618),ndarray_linear_interpolate:o(4317)}},6296(n,a,o){"use strict";n.exports=h;var s=o(7261),l=o(9977),u=o(1811);function c(p,d){this._controllerNames=Object.keys(p),this._controllerList=this._controllerNames.map(function(v){return p[v]}),this._mode=d,this._active=p[d],this._active||(this._mode="turntable",this._active=p.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 f=c.prototype;f.flush=function(p){for(var d=this._controllerList,v=0;v0)throw new Error("Invalid string. Length must be a multiple of 4");var S=_.indexOf("=");S===-1&&(S=b);var x=S===b?0:4-S%4;return[S,x]}function p(_){var b=h(_),S=b[0],x=b[1];return(S+x)*3/4-x}function d(_,b,S){return(b+S)*3/4-S}function v(_){var b,S=h(_),x=S[0],T=S[1],A=new l(d(_,x,T)),y=0,E=T>0?x-4:x,M;for(M=0;M>16&255,A[y++]=b>>8&255,A[y++]=b&255;return T===2&&(b=s[_.charCodeAt(M)]<<2|s[_.charCodeAt(M+1)]>>4,A[y++]=b&255),T===1&&(b=s[_.charCodeAt(M)]<<10|s[_.charCodeAt(M+1)]<<4|s[_.charCodeAt(M+2)]>>2,A[y++]=b>>8&255,A[y++]=b&255),A}function m(_){return o[_>>18&63]+o[_>>12&63]+o[_>>6&63]+o[_&63]}function g(_,b,S){for(var x,T=[],A=b;AE?E:y+A));return x===1?(b=_[S-1],T.push(o[b>>2]+o[b<<4&63]+"==")):x===2&&(b=(_[S-2]<<8)+_[S-1],T.push(o[b>>10]+o[b>>4&63]+o[b<<2&63]+"=")),T.join("")}},3865(n,a,o){"use strict";var s=o(869);n.exports=l;function l(u,c){return s(u[0].mul(c[1]).add(c[0].mul(u[1])),u[1].mul(c[1]))}},1318(n){"use strict";n.exports=a;function a(o,s){return o[0].mul(s[1]).cmp(s[0].mul(o[1]))}},8697(n,a,o){"use strict";var s=o(869);n.exports=l;function l(u,c){return s(u[0].mul(c[1]),u[1].mul(c[0]))}},7842(n,a,o){"use strict";var s=o(6330),l=o(1533),u=o(2651),c=o(6768),f=o(869),h=o(8697);n.exports=p;function p(d,v){if(s(d))return v?h(d,p(v)):[d[0].clone(),d[1].clone()];var m=0,g,w;if(l(d))g=d.clone();else if(typeof d=="string")g=c(d);else{if(d===0)return[u(0),u(1)];if(d===Math.floor(d))g=u(d);else{for(;d!==Math.floor(d);)d=d*Math.pow(2,256),m-=256;g=u(d)}}if(s(v))g.mul(v[1]),w=v[0].clone();else if(l(v))w=v.clone();else if(typeof v=="string")w=c(v);else if(!v)w=u(1);else if(v===Math.floor(v))w=u(v);else{for(;v!==Math.floor(v);)v=v*Math.pow(2,256),m+=256;w=u(v)}return m>0?g=g.ushln(m):m<0&&(w=w.ushln(-m)),f(g,w)}},6330(n,a,o){"use strict";var s=o(1533);n.exports=l;function l(u){return Array.isArray(u)&&u.length===2&&s(u[0])&&s(u[1])}},5716(n,a,o){"use strict";var s=o(6859);n.exports=l;function l(u){return u.cmp(new s(0))}},1369(n,a,o){"use strict";var s=o(5716);n.exports=l;function l(u){var c=u.length,f=u.words,h=0;if(c===1)h=f[0];else if(c===2)h=f[0]+f[1]*67108864;else for(var p=0;p20?52:h+32}},1533(n,a,o){"use strict";var s=o(6859);n.exports=l;function l(u){return u&&typeof u=="object"&&!!u.words}},2651(n,a,o){"use strict";var s=o(6859),l=o(2361);n.exports=u;function u(c){var f=l.exponent(c);return f<52?new s(c):new s(c*Math.pow(2,52-f)).ushln(f-52)}},869(n,a,o){"use strict";var s=o(2651),l=o(5716);n.exports=u;function u(c,f){var h=l(c),p=l(f);if(h===0)return[s(0),s(1)];if(p===0)return[s(0),s(0)];p<0&&(c=c.neg(),f=f.neg());var d=c.gcd(f);return d.cmpn(1)?[c.div(d),f.div(d)]:[c,f]}},6768(n,a,o){"use strict";var s=o(6859);n.exports=l;function l(u){return new s(u)}},6504(n,a,o){"use strict";var s=o(869);n.exports=l;function l(u,c){return s(u[0].mul(c[0]),u[1].mul(c[1]))}},7721(n,a,o){"use strict";var s=o(5716);n.exports=l;function l(u){return s(u[0])*s(u[1])}},5572(n,a,o){"use strict";var s=o(869);n.exports=l;function l(u,c){return s(u[0].mul(c[1]).sub(u[1].mul(c[0])),u[1].mul(c[1]))}},946(n,a,o){"use strict";var s=o(1369),l=o(4025);n.exports=u;function u(c){var f=c[0],h=c[1];if(f.cmpn(0)===0)return 0;var p=f.abs().divmod(h.abs()),d=p.div,v=s(d),m=p.mod,g=f.negative!==h.negative?-1:1;if(m.cmpn(0)===0)return g*v;if(v){var w=l(v)+4,_=s(m.ushln(w).divRound(h));return g*(v+_*Math.pow(2,-w))}else{var b=h.bitLength()-m.bitLength()+53,_=s(m.ushln(b).divRound(h));return b<1023?g*_*Math.pow(2,-b):(_*=Math.pow(2,-1023),g*_*Math.pow(2,1023-b))}}},2478(n){"use strict";function a(f,h,p,d,v){for(var m=v+1;d<=v;){var g=d+v>>>1,w=f[g],_=p!==void 0?p(w,h):w-h;_>=0?(m=g,v=g-1):d=g+1}return m}function o(f,h,p,d,v){for(var m=v+1;d<=v;){var g=d+v>>>1,w=f[g],_=p!==void 0?p(w,h):w-h;_>0?(m=g,v=g-1):d=g+1}return m}function s(f,h,p,d,v){for(var m=d-1;d<=v;){var g=d+v>>>1,w=f[g],_=p!==void 0?p(w,h):w-h;_<0?(m=g,d=g+1):v=g-1}return m}function l(f,h,p,d,v){for(var m=d-1;d<=v;){var g=d+v>>>1,w=f[g],_=p!==void 0?p(w,h):w-h;_<=0?(m=g,d=g+1):v=g-1}return m}function u(f,h,p,d,v){for(;d<=v;){var m=d+v>>>1,g=f[m],w=p!==void 0?p(g,h):g-h;if(w===0)return m;w<=0?d=m+1:v=m-1}return-1}function c(f,h,p,d,v,m){return typeof p=="function"?m(f,h,p,d===void 0?0:d|0,v===void 0?f.length-1:v|0):m(f,h,void 0,p===void 0?0:p|0,d===void 0?f.length-1:d|0)}n.exports={ge:function(f,h,p,d,v){return c(f,h,p,d,v,a)},gt:function(f,h,p,d,v){return c(f,h,p,d,v,o)},lt:function(f,h,p,d,v){return c(f,h,p,d,v,s)},le:function(f,h,p,d,v){return c(f,h,p,d,v,l)},eq:function(f,h,p,d,v){return c(f,h,p,d,v,u)}}},8828(n,a){"use strict";"use restrict";var o=32;a.INT_BITS=o,a.INT_MAX=2147483647,a.INT_MIN=-1<0)-(u<0)},a.abs=function(u){var c=u>>o-1;return(u^c)-c},a.min=function(u,c){return c^(u^c)&-(u65535)<<4,u>>>=c,f=(u>255)<<3,u>>>=f,c|=f,f=(u>15)<<2,u>>>=f,c|=f,f=(u>3)<<1,u>>>=f,c|=f,c|u>>1},a.log10=function(u){return u>=1e9?9:u>=1e8?8:u>=1e7?7:u>=1e6?6:u>=1e5?5:u>=1e4?4:u>=1e3?3:u>=100?2:u>=10?1:0},a.popCount=function(u){return u=u-(u>>>1&1431655765),u=(u&858993459)+(u>>>2&858993459),(u+(u>>>4)&252645135)*16843009>>>24};function s(u){var c=32;return u&=-u,u&&c--,u&65535&&(c-=16),u&16711935&&(c-=8),u&252645135&&(c-=4),u&858993459&&(c-=2),u&1431655765&&(c-=1),c}a.countTrailingZeros=s,a.nextPow2=function(u){return u+=u===0,--u,u|=u>>>1,u|=u>>>2,u|=u>>>4,u|=u>>>8,u|=u>>>16,u+1},a.prevPow2=function(u){return u|=u>>>1,u|=u>>>2,u|=u>>>4,u|=u>>>8,u|=u>>>16,u-(u>>>1)},a.parity=function(u){return u^=u>>>16,u^=u>>>8,u^=u>>>4,u&=15,27030>>>u&1};var l=new Array(256);(function(u){for(var c=0;c<256;++c){var f=c,h=c,p=7;for(f>>>=1;f;f>>>=1)h<<=1,h|=f&1,--p;u[c]=h<>>8&255]<<16|l[u>>>16&255]<<8|l[u>>>24&255]},a.interleave2=function(u,c){return u&=65535,u=(u|u<<8)&16711935,u=(u|u<<4)&252645135,u=(u|u<<2)&858993459,u=(u|u<<1)&1431655765,c&=65535,c=(c|c<<8)&16711935,c=(c|c<<4)&252645135,c=(c|c<<2)&858993459,c=(c|c<<1)&1431655765,u|c<<1},a.deinterleave2=function(u,c){return u=u>>>c&1431655765,u=(u|u>>>1)&858993459,u=(u|u>>>2)&252645135,u=(u|u>>>4)&16711935,u=(u|u>>>16)&65535,u<<16>>16},a.interleave3=function(u,c,f){return u&=1023,u=(u|u<<16)&4278190335,u=(u|u<<8)&251719695,u=(u|u<<4)&3272356035,u=(u|u<<2)&1227133513,c&=1023,c=(c|c<<16)&4278190335,c=(c|c<<8)&251719695,c=(c|c<<4)&3272356035,c=(c|c<<2)&1227133513,u|=c<<1,f&=1023,f=(f|f<<16)&4278190335,f=(f|f<<8)&251719695,f=(f|f<<4)&3272356035,f=(f|f<<2)&1227133513,u|f<<2},a.deinterleave3=function(u,c){return u=u>>>c&1227133513,u=(u|u>>>2)&3272356035,u=(u|u>>>4)&251719695,u=(u|u>>>8)&4278190335,u=(u|u>>>16)&1023,u<<22>>22},a.nextCombination=function(u){var c=u|u-1;return c+1|(~c&-~c)-1>>>s(u)+1}},6859(n,a,o){n=o.nmd(n),(function(s,l){"use strict";function u(R,F){if(!R)throw new Error(F||"Assertion failed")}function c(R,F){R.super_=F;var I=function(){};I.prototype=F.prototype,R.prototype=new I,R.prototype.constructor=R}function f(R,F,I){if(f.isBN(R))return R;this.negative=0,this.words=null,this.length=0,this.red=null,R!==null&&((F==="le"||F==="be")&&(I=F,F=10),this._init(R||0,F||10,I||"be"))}typeof s=="object"?s.exports=f:l.BN=f,f.BN=f,f.wordSize=26;var h;try{typeof window!="undefined"&&typeof window.Buffer!="undefined"?h=window.Buffer:h=o(7790).Buffer}catch(R){}f.isBN=function(F){return F instanceof f?!0:F!==null&&typeof F=="object"&&F.constructor.wordSize===f.wordSize&&Array.isArray(F.words)},f.max=function(F,I){return F.cmp(I)>0?F:I},f.min=function(F,I){return F.cmp(I)<0?F:I},f.prototype._init=function(F,I,B){if(typeof F=="number")return this._initNumber(F,I,B);if(typeof F=="object")return this._initArray(F,I,B);I==="hex"&&(I=16),u(I===(I|0)&&I>=2&&I<=36),F=F.toString().replace(/\s+/g,"");var O=0;F[0]==="-"&&(O++,this.negative=1),O=0;O-=3)Y=F[O]|F[O-1]<<8|F[O-2]<<16,this.words[$]|=Y<>>26-K&67108863,K+=24,K>=26&&(K-=26,$++);else if(B==="le")for(O=0,$=0;O>>26-K&67108863,K+=24,K>=26&&(K-=26,$++);return this.strip()};function p(R,F){var I=R.charCodeAt(F);return I>=65&&I<=70?I-55:I>=97&&I<=102?I-87:I-48&15}function d(R,F,I){var B=p(R,I);return I-1>=F&&(B|=p(R,I-1)<<4),B}f.prototype._parseHex=function(F,I,B){this.length=Math.ceil((F.length-I)/6),this.words=new Array(this.length);for(var O=0;O=I;O-=2)K=d(F,I,O)<<$,this.words[Y]|=K&67108863,$>=18?($-=18,Y+=1,this.words[Y]|=K>>>26):$+=8;else{var j=F.length-I;for(O=j%2===0?I+1:I;O=18?($-=18,Y+=1,this.words[Y]|=K>>>26):$+=8}this.strip()};function v(R,F,I,B){for(var O=0,$=Math.min(R.length,I),Y=F;Y<$;Y++){var K=R.charCodeAt(Y)-48;O*=B,K>=49?O+=K-49+10:K>=17?O+=K-17+10:O+=K}return O}f.prototype._parseBase=function(F,I,B){this.words=[0],this.length=1;for(var O=0,$=1;$<=67108863;$*=I)O++;O--,$=$/I|0;for(var Y=F.length-B,K=Y%O,j=Math.min(Y,Y-K)+B,q=0,Q=B;Q1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},f.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},f.prototype.inspect=function(){return(this.red?""};var m=["","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"],g=[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],w=[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];f.prototype.toString=function(F,I){F=F||10,I=I|0||1;var B;if(F===16||F==="hex"){B="";for(var O=0,$=0,Y=0;Y>>24-O&16777215,O+=2,O>=26&&(O-=26,Y--),$!==0||Y!==this.length-1?B=m[6-j.length]+j+B:B=j+B}for($!==0&&(B=$.toString(16)+B);B.length%I!==0;)B="0"+B;return this.negative!==0&&(B="-"+B),B}if(F===(F|0)&&F>=2&&F<=36){var q=g[F],Q=w[F];B="";var U=this.clone();for(U.negative=0;!U.isZero();){var V=U.modn(Q).toString(F);U=U.idivn(Q),U.isZero()?B=V+B:B=m[q-V.length]+V+B}for(this.isZero()&&(B="0"+B);B.length%I!==0;)B="0"+B;return this.negative!==0&&(B="-"+B),B}u(!1,"Base should be between 2 and 36")},f.prototype.toNumber=function(){var F=this.words[0];return this.length===2?F+=this.words[1]*67108864:this.length===3&&this.words[2]===1?F+=4503599627370496+this.words[1]*67108864:this.length>2&&u(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-F:F},f.prototype.toJSON=function(){return this.toString(16)},f.prototype.toBuffer=function(F,I){return u(typeof h!="undefined"),this.toArrayLike(h,F,I)},f.prototype.toArray=function(F,I){return this.toArrayLike(Array,F,I)},f.prototype.toArrayLike=function(F,I,B){var O=this.byteLength(),$=B||Math.max(1,O);u(O<=$,"byte array longer than desired length"),u($>0,"Requested array length <= 0"),this.strip();var Y=I==="le",K=new F($),j,q,Q=this.clone();if(Y){for(q=0;!Q.isZero();q++)j=Q.andln(255),Q.iushrn(8),K[q]=j;for(;q<$;q++)K[q]=0}else{for(q=0;q<$-O;q++)K[q]=0;for(q=0;!Q.isZero();q++)j=Q.andln(255),Q.iushrn(8),K[$-q-1]=j}return K},Math.clz32?f.prototype._countBits=function(F){return 32-Math.clz32(F)}:f.prototype._countBits=function(F){var I=F,B=0;return I>=4096&&(B+=13,I>>>=13),I>=64&&(B+=7,I>>>=7),I>=8&&(B+=4,I>>>=4),I>=2&&(B+=2,I>>>=2),B+I},f.prototype._zeroBits=function(F){if(F===0)return 26;var I=F,B=0;return(I&8191)===0&&(B+=13,I>>>=13),(I&127)===0&&(B+=7,I>>>=7),(I&15)===0&&(B+=4,I>>>=4),(I&3)===0&&(B+=2,I>>>=2),(I&1)===0&&B++,B},f.prototype.bitLength=function(){var F=this.words[this.length-1],I=this._countBits(F);return(this.length-1)*26+I};function _(R){for(var F=new Array(R.bitLength()),I=0;I>>O}return F}f.prototype.zeroBits=function(){if(this.isZero())return 0;for(var F=0,I=0;IF.length?this.clone().ior(F):F.clone().ior(this)},f.prototype.uor=function(F){return this.length>F.length?this.clone().iuor(F):F.clone().iuor(this)},f.prototype.iuand=function(F){var I;this.length>F.length?I=F:I=this;for(var B=0;BF.length?this.clone().iand(F):F.clone().iand(this)},f.prototype.uand=function(F){return this.length>F.length?this.clone().iuand(F):F.clone().iuand(this)},f.prototype.iuxor=function(F){var I,B;this.length>F.length?(I=this,B=F):(I=F,B=this);for(var O=0;OF.length?this.clone().ixor(F):F.clone().ixor(this)},f.prototype.uxor=function(F){return this.length>F.length?this.clone().iuxor(F):F.clone().iuxor(this)},f.prototype.inotn=function(F){u(typeof F=="number"&&F>=0);var I=Math.ceil(F/26)|0,B=F%26;this._expand(I),B>0&&I--;for(var O=0;O0&&(this.words[O]=~this.words[O]&67108863>>26-B,O++);O=0);var B=F/26|0,O=F%26;return this._expand(B+1),I?this.words[B]=this.words[B]|1<F.length?(B=this,O=F):(B=F,O=this);for(var $=0,Y=0;Y>>26;for(;$!==0&&Y>>26;if(this.length=B.length,$!==0)this.words[this.length]=$,this.length++;else if(B!==this)for(;YF.length?this.clone().iadd(F):F.clone().iadd(this)},f.prototype.isub=function(F){if(F.negative!==0){F.negative=0;var I=this.iadd(F);return F.negative=1,I._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(F),this.negative=1,this._normSign();var B=this.cmp(F);if(B===0)return this.negative=0,this.length=1,this.words[0]=0,this;var O,$;B>0?(O=this,$=F):(O=F,$=this);for(var Y=0,K=0;K<$.length;K++)I=(O.words[K]|0)-($.words[K]|0)+Y,Y=I>>26,this.words[K]=I&67108863;for(;Y!==0&&K>26,this.words[K]=I&67108863;if(Y===0&&K>>26,U=j&67108863,V=Math.min(q,F.length-1),X=Math.max(0,q-R.length+1);X<=V;X++){var G=q-X|0;O=R.words[G]|0,$=F.words[X]|0,Y=O*$+U,Q+=Y/67108864|0,U=Y&67108863}I.words[q]=U|0,j=Q|0}return j!==0?I.words[q]=j|0:I.length--,I.strip()}var S=function(F,I,B){var O=F.words,$=I.words,Y=B.words,K=0,j,q,Q,U=O[0]|0,V=U&8191,X=U>>>13,G=O[1]|0,H=G&8191,J=G>>>13,te=O[2]|0,ue=te&8191,ge=te>>>13,ke=O[3]|0,_e=ke&8191,he=ke>>>13,oe=O[4]|0,Me=oe&8191,ye=oe>>>13,ce=O[5]|0,ee=ce&8191,ae=ce>>>13,xe=O[6]|0,re=xe&8191,pe=xe>>>13,we=O[7]|0,Fe=we&8191,Ee=we>>>13,Ce=O[8]|0,be=Ce&8191,Ie=Ce>>>13,Oe=O[9]|0,Qe=Oe&8191,et=Oe>>>13,bt=$[0]|0,ut=bt&8191,vt=bt>>>13,Xe=$[1]|0,mt=Xe&8191,_t=Xe>>>13,Ne=$[2]|0,Ue=Ne&8191,Ge=Ne>>>13,je=$[3]|0,Re=je&8191,Ve=je>>>13,ct=$[4]|0,Tt=ct&8191,Zt=ct>>>13,Gt=$[5]|0,ur=Gt&8191,cr=Gt>>>13,qt=$[6]|0,Kt=qt&8191,Cr=qt>>>13,$e=$[7]|0,tt=$e&8191,st=$e>>>13,xt=$[8]|0,Je=xt&8191,Ct=xt>>>13,nr=$[9]|0,dr=nr&8191,Vr=nr>>>13;B.negative=F.negative^I.negative,B.length=19,j=Math.imul(V,ut),q=Math.imul(V,vt),q=q+Math.imul(X,ut)|0,Q=Math.imul(X,vt);var ui=(K+j|0)+((q&8191)<<13)|0;K=(Q+(q>>>13)|0)+(ui>>>26)|0,ui&=67108863,j=Math.imul(H,ut),q=Math.imul(H,vt),q=q+Math.imul(J,ut)|0,Q=Math.imul(J,vt),j=j+Math.imul(V,mt)|0,q=q+Math.imul(V,_t)|0,q=q+Math.imul(X,mt)|0,Q=Q+Math.imul(X,_t)|0;var ti=(K+j|0)+((q&8191)<<13)|0;K=(Q+(q>>>13)|0)+(ti>>>26)|0,ti&=67108863,j=Math.imul(ue,ut),q=Math.imul(ue,vt),q=q+Math.imul(ge,ut)|0,Q=Math.imul(ge,vt),j=j+Math.imul(H,mt)|0,q=q+Math.imul(H,_t)|0,q=q+Math.imul(J,mt)|0,Q=Q+Math.imul(J,_t)|0,j=j+Math.imul(V,Ue)|0,q=q+Math.imul(V,Ge)|0,q=q+Math.imul(X,Ue)|0,Q=Q+Math.imul(X,Ge)|0;var Pr=(K+j|0)+((q&8191)<<13)|0;K=(Q+(q>>>13)|0)+(Pr>>>26)|0,Pr&=67108863,j=Math.imul(_e,ut),q=Math.imul(_e,vt),q=q+Math.imul(he,ut)|0,Q=Math.imul(he,vt),j=j+Math.imul(ue,mt)|0,q=q+Math.imul(ue,_t)|0,q=q+Math.imul(ge,mt)|0,Q=Q+Math.imul(ge,_t)|0,j=j+Math.imul(H,Ue)|0,q=q+Math.imul(H,Ge)|0,q=q+Math.imul(J,Ue)|0,Q=Q+Math.imul(J,Ge)|0,j=j+Math.imul(V,Re)|0,q=q+Math.imul(V,Ve)|0,q=q+Math.imul(X,Re)|0,Q=Q+Math.imul(X,Ve)|0;var Xi=(K+j|0)+((q&8191)<<13)|0;K=(Q+(q>>>13)|0)+(Xi>>>26)|0,Xi&=67108863,j=Math.imul(Me,ut),q=Math.imul(Me,vt),q=q+Math.imul(ye,ut)|0,Q=Math.imul(ye,vt),j=j+Math.imul(_e,mt)|0,q=q+Math.imul(_e,_t)|0,q=q+Math.imul(he,mt)|0,Q=Q+Math.imul(he,_t)|0,j=j+Math.imul(ue,Ue)|0,q=q+Math.imul(ue,Ge)|0,q=q+Math.imul(ge,Ue)|0,Q=Q+Math.imul(ge,Ge)|0,j=j+Math.imul(H,Re)|0,q=q+Math.imul(H,Ve)|0,q=q+Math.imul(J,Re)|0,Q=Q+Math.imul(J,Ve)|0,j=j+Math.imul(V,Tt)|0,q=q+Math.imul(V,Zt)|0,q=q+Math.imul(X,Tt)|0,Q=Q+Math.imul(X,Zt)|0;var Sn=(K+j|0)+((q&8191)<<13)|0;K=(Q+(q>>>13)|0)+(Sn>>>26)|0,Sn&=67108863,j=Math.imul(ee,ut),q=Math.imul(ee,vt),q=q+Math.imul(ae,ut)|0,Q=Math.imul(ae,vt),j=j+Math.imul(Me,mt)|0,q=q+Math.imul(Me,_t)|0,q=q+Math.imul(ye,mt)|0,Q=Q+Math.imul(ye,_t)|0,j=j+Math.imul(_e,Ue)|0,q=q+Math.imul(_e,Ge)|0,q=q+Math.imul(he,Ue)|0,Q=Q+Math.imul(he,Ge)|0,j=j+Math.imul(ue,Re)|0,q=q+Math.imul(ue,Ve)|0,q=q+Math.imul(ge,Re)|0,Q=Q+Math.imul(ge,Ve)|0,j=j+Math.imul(H,Tt)|0,q=q+Math.imul(H,Zt)|0,q=q+Math.imul(J,Tt)|0,Q=Q+Math.imul(J,Zt)|0,j=j+Math.imul(V,ur)|0,q=q+Math.imul(V,cr)|0,q=q+Math.imul(X,ur)|0,Q=Q+Math.imul(X,cr)|0;var vn=(K+j|0)+((q&8191)<<13)|0;K=(Q+(q>>>13)|0)+(vn>>>26)|0,vn&=67108863,j=Math.imul(re,ut),q=Math.imul(re,vt),q=q+Math.imul(pe,ut)|0,Q=Math.imul(pe,vt),j=j+Math.imul(ee,mt)|0,q=q+Math.imul(ee,_t)|0,q=q+Math.imul(ae,mt)|0,Q=Q+Math.imul(ae,_t)|0,j=j+Math.imul(Me,Ue)|0,q=q+Math.imul(Me,Ge)|0,q=q+Math.imul(ye,Ue)|0,Q=Q+Math.imul(ye,Ge)|0,j=j+Math.imul(_e,Re)|0,q=q+Math.imul(_e,Ve)|0,q=q+Math.imul(he,Re)|0,Q=Q+Math.imul(he,Ve)|0,j=j+Math.imul(ue,Tt)|0,q=q+Math.imul(ue,Zt)|0,q=q+Math.imul(ge,Tt)|0,Q=Q+Math.imul(ge,Zt)|0,j=j+Math.imul(H,ur)|0,q=q+Math.imul(H,cr)|0,q=q+Math.imul(J,ur)|0,Q=Q+Math.imul(J,cr)|0,j=j+Math.imul(V,Kt)|0,q=q+Math.imul(V,Cr)|0,q=q+Math.imul(X,Kt)|0,Q=Q+Math.imul(X,Cr)|0;var aa=(K+j|0)+((q&8191)<<13)|0;K=(Q+(q>>>13)|0)+(aa>>>26)|0,aa&=67108863,j=Math.imul(Fe,ut),q=Math.imul(Fe,vt),q=q+Math.imul(Ee,ut)|0,Q=Math.imul(Ee,vt),j=j+Math.imul(re,mt)|0,q=q+Math.imul(re,_t)|0,q=q+Math.imul(pe,mt)|0,Q=Q+Math.imul(pe,_t)|0,j=j+Math.imul(ee,Ue)|0,q=q+Math.imul(ee,Ge)|0,q=q+Math.imul(ae,Ue)|0,Q=Q+Math.imul(ae,Ge)|0,j=j+Math.imul(Me,Re)|0,q=q+Math.imul(Me,Ve)|0,q=q+Math.imul(ye,Re)|0,Q=Q+Math.imul(ye,Ve)|0,j=j+Math.imul(_e,Tt)|0,q=q+Math.imul(_e,Zt)|0,q=q+Math.imul(he,Tt)|0,Q=Q+Math.imul(he,Zt)|0,j=j+Math.imul(ue,ur)|0,q=q+Math.imul(ue,cr)|0,q=q+Math.imul(ge,ur)|0,Q=Q+Math.imul(ge,cr)|0,j=j+Math.imul(H,Kt)|0,q=q+Math.imul(H,Cr)|0,q=q+Math.imul(J,Kt)|0,Q=Q+Math.imul(J,Cr)|0,j=j+Math.imul(V,tt)|0,q=q+Math.imul(V,st)|0,q=q+Math.imul(X,tt)|0,Q=Q+Math.imul(X,st)|0;var va=(K+j|0)+((q&8191)<<13)|0;K=(Q+(q>>>13)|0)+(va>>>26)|0,va&=67108863,j=Math.imul(be,ut),q=Math.imul(be,vt),q=q+Math.imul(Ie,ut)|0,Q=Math.imul(Ie,vt),j=j+Math.imul(Fe,mt)|0,q=q+Math.imul(Fe,_t)|0,q=q+Math.imul(Ee,mt)|0,Q=Q+Math.imul(Ee,_t)|0,j=j+Math.imul(re,Ue)|0,q=q+Math.imul(re,Ge)|0,q=q+Math.imul(pe,Ue)|0,Q=Q+Math.imul(pe,Ge)|0,j=j+Math.imul(ee,Re)|0,q=q+Math.imul(ee,Ve)|0,q=q+Math.imul(ae,Re)|0,Q=Q+Math.imul(ae,Ve)|0,j=j+Math.imul(Me,Tt)|0,q=q+Math.imul(Me,Zt)|0,q=q+Math.imul(ye,Tt)|0,Q=Q+Math.imul(ye,Zt)|0,j=j+Math.imul(_e,ur)|0,q=q+Math.imul(_e,cr)|0,q=q+Math.imul(he,ur)|0,Q=Q+Math.imul(he,cr)|0,j=j+Math.imul(ue,Kt)|0,q=q+Math.imul(ue,Cr)|0,q=q+Math.imul(ge,Kt)|0,Q=Q+Math.imul(ge,Cr)|0,j=j+Math.imul(H,tt)|0,q=q+Math.imul(H,st)|0,q=q+Math.imul(J,tt)|0,Q=Q+Math.imul(J,st)|0,j=j+Math.imul(V,Je)|0,q=q+Math.imul(V,Ct)|0,q=q+Math.imul(X,Je)|0,Q=Q+Math.imul(X,Ct)|0;var gn=(K+j|0)+((q&8191)<<13)|0;K=(Q+(q>>>13)|0)+(gn>>>26)|0,gn&=67108863,j=Math.imul(Qe,ut),q=Math.imul(Qe,vt),q=q+Math.imul(et,ut)|0,Q=Math.imul(et,vt),j=j+Math.imul(be,mt)|0,q=q+Math.imul(be,_t)|0,q=q+Math.imul(Ie,mt)|0,Q=Q+Math.imul(Ie,_t)|0,j=j+Math.imul(Fe,Ue)|0,q=q+Math.imul(Fe,Ge)|0,q=q+Math.imul(Ee,Ue)|0,Q=Q+Math.imul(Ee,Ge)|0,j=j+Math.imul(re,Re)|0,q=q+Math.imul(re,Ve)|0,q=q+Math.imul(pe,Re)|0,Q=Q+Math.imul(pe,Ve)|0,j=j+Math.imul(ee,Tt)|0,q=q+Math.imul(ee,Zt)|0,q=q+Math.imul(ae,Tt)|0,Q=Q+Math.imul(ae,Zt)|0,j=j+Math.imul(Me,ur)|0,q=q+Math.imul(Me,cr)|0,q=q+Math.imul(ye,ur)|0,Q=Q+Math.imul(ye,cr)|0,j=j+Math.imul(_e,Kt)|0,q=q+Math.imul(_e,Cr)|0,q=q+Math.imul(he,Kt)|0,Q=Q+Math.imul(he,Cr)|0,j=j+Math.imul(ue,tt)|0,q=q+Math.imul(ue,st)|0,q=q+Math.imul(ge,tt)|0,Q=Q+Math.imul(ge,st)|0,j=j+Math.imul(H,Je)|0,q=q+Math.imul(H,Ct)|0,q=q+Math.imul(J,Je)|0,Q=Q+Math.imul(J,Ct)|0,j=j+Math.imul(V,dr)|0,q=q+Math.imul(V,Vr)|0,q=q+Math.imul(X,dr)|0,Q=Q+Math.imul(X,Vr)|0;var Hn=(K+j|0)+((q&8191)<<13)|0;K=(Q+(q>>>13)|0)+(Hn>>>26)|0,Hn&=67108863,j=Math.imul(Qe,mt),q=Math.imul(Qe,_t),q=q+Math.imul(et,mt)|0,Q=Math.imul(et,_t),j=j+Math.imul(be,Ue)|0,q=q+Math.imul(be,Ge)|0,q=q+Math.imul(Ie,Ue)|0,Q=Q+Math.imul(Ie,Ge)|0,j=j+Math.imul(Fe,Re)|0,q=q+Math.imul(Fe,Ve)|0,q=q+Math.imul(Ee,Re)|0,Q=Q+Math.imul(Ee,Ve)|0,j=j+Math.imul(re,Tt)|0,q=q+Math.imul(re,Zt)|0,q=q+Math.imul(pe,Tt)|0,Q=Q+Math.imul(pe,Zt)|0,j=j+Math.imul(ee,ur)|0,q=q+Math.imul(ee,cr)|0,q=q+Math.imul(ae,ur)|0,Q=Q+Math.imul(ae,cr)|0,j=j+Math.imul(Me,Kt)|0,q=q+Math.imul(Me,Cr)|0,q=q+Math.imul(ye,Kt)|0,Q=Q+Math.imul(ye,Cr)|0,j=j+Math.imul(_e,tt)|0,q=q+Math.imul(_e,st)|0,q=q+Math.imul(he,tt)|0,Q=Q+Math.imul(he,st)|0,j=j+Math.imul(ue,Je)|0,q=q+Math.imul(ue,Ct)|0,q=q+Math.imul(ge,Je)|0,Q=Q+Math.imul(ge,Ct)|0,j=j+Math.imul(H,dr)|0,q=q+Math.imul(H,Vr)|0,q=q+Math.imul(J,dr)|0,Q=Q+Math.imul(J,Vr)|0;var oa=(K+j|0)+((q&8191)<<13)|0;K=(Q+(q>>>13)|0)+(oa>>>26)|0,oa&=67108863,j=Math.imul(Qe,Ue),q=Math.imul(Qe,Ge),q=q+Math.imul(et,Ue)|0,Q=Math.imul(et,Ge),j=j+Math.imul(be,Re)|0,q=q+Math.imul(be,Ve)|0,q=q+Math.imul(Ie,Re)|0,Q=Q+Math.imul(Ie,Ve)|0,j=j+Math.imul(Fe,Tt)|0,q=q+Math.imul(Fe,Zt)|0,q=q+Math.imul(Ee,Tt)|0,Q=Q+Math.imul(Ee,Zt)|0,j=j+Math.imul(re,ur)|0,q=q+Math.imul(re,cr)|0,q=q+Math.imul(pe,ur)|0,Q=Q+Math.imul(pe,cr)|0,j=j+Math.imul(ee,Kt)|0,q=q+Math.imul(ee,Cr)|0,q=q+Math.imul(ae,Kt)|0,Q=Q+Math.imul(ae,Cr)|0,j=j+Math.imul(Me,tt)|0,q=q+Math.imul(Me,st)|0,q=q+Math.imul(ye,tt)|0,Q=Q+Math.imul(ye,st)|0,j=j+Math.imul(_e,Je)|0,q=q+Math.imul(_e,Ct)|0,q=q+Math.imul(he,Je)|0,Q=Q+Math.imul(he,Ct)|0,j=j+Math.imul(ue,dr)|0,q=q+Math.imul(ue,Vr)|0,q=q+Math.imul(ge,dr)|0,Q=Q+Math.imul(ge,Vr)|0;var vs=(K+j|0)+((q&8191)<<13)|0;K=(Q+(q>>>13)|0)+(vs>>>26)|0,vs&=67108863,j=Math.imul(Qe,Re),q=Math.imul(Qe,Ve),q=q+Math.imul(et,Re)|0,Q=Math.imul(et,Ve),j=j+Math.imul(be,Tt)|0,q=q+Math.imul(be,Zt)|0,q=q+Math.imul(Ie,Tt)|0,Q=Q+Math.imul(Ie,Zt)|0,j=j+Math.imul(Fe,ur)|0,q=q+Math.imul(Fe,cr)|0,q=q+Math.imul(Ee,ur)|0,Q=Q+Math.imul(Ee,cr)|0,j=j+Math.imul(re,Kt)|0,q=q+Math.imul(re,Cr)|0,q=q+Math.imul(pe,Kt)|0,Q=Q+Math.imul(pe,Cr)|0,j=j+Math.imul(ee,tt)|0,q=q+Math.imul(ee,st)|0,q=q+Math.imul(ae,tt)|0,Q=Q+Math.imul(ae,st)|0,j=j+Math.imul(Me,Je)|0,q=q+Math.imul(Me,Ct)|0,q=q+Math.imul(ye,Je)|0,Q=Q+Math.imul(ye,Ct)|0,j=j+Math.imul(_e,dr)|0,q=q+Math.imul(_e,Vr)|0,q=q+Math.imul(he,dr)|0,Q=Q+Math.imul(he,Vr)|0;var bo=(K+j|0)+((q&8191)<<13)|0;K=(Q+(q>>>13)|0)+(bo>>>26)|0,bo&=67108863,j=Math.imul(Qe,Tt),q=Math.imul(Qe,Zt),q=q+Math.imul(et,Tt)|0,Q=Math.imul(et,Zt),j=j+Math.imul(be,ur)|0,q=q+Math.imul(be,cr)|0,q=q+Math.imul(Ie,ur)|0,Q=Q+Math.imul(Ie,cr)|0,j=j+Math.imul(Fe,Kt)|0,q=q+Math.imul(Fe,Cr)|0,q=q+Math.imul(Ee,Kt)|0,Q=Q+Math.imul(Ee,Cr)|0,j=j+Math.imul(re,tt)|0,q=q+Math.imul(re,st)|0,q=q+Math.imul(pe,tt)|0,Q=Q+Math.imul(pe,st)|0,j=j+Math.imul(ee,Je)|0,q=q+Math.imul(ee,Ct)|0,q=q+Math.imul(ae,Je)|0,Q=Q+Math.imul(ae,Ct)|0,j=j+Math.imul(Me,dr)|0,q=q+Math.imul(Me,Vr)|0,q=q+Math.imul(ye,dr)|0,Q=Q+Math.imul(ye,Vr)|0;var Os=(K+j|0)+((q&8191)<<13)|0;K=(Q+(q>>>13)|0)+(Os>>>26)|0,Os&=67108863,j=Math.imul(Qe,ur),q=Math.imul(Qe,cr),q=q+Math.imul(et,ur)|0,Q=Math.imul(et,cr),j=j+Math.imul(be,Kt)|0,q=q+Math.imul(be,Cr)|0,q=q+Math.imul(Ie,Kt)|0,Q=Q+Math.imul(Ie,Cr)|0,j=j+Math.imul(Fe,tt)|0,q=q+Math.imul(Fe,st)|0,q=q+Math.imul(Ee,tt)|0,Q=Q+Math.imul(Ee,st)|0,j=j+Math.imul(re,Je)|0,q=q+Math.imul(re,Ct)|0,q=q+Math.imul(pe,Je)|0,Q=Q+Math.imul(pe,Ct)|0,j=j+Math.imul(ee,dr)|0,q=q+Math.imul(ee,Vr)|0,q=q+Math.imul(ae,dr)|0,Q=Q+Math.imul(ae,Vr)|0;var go=(K+j|0)+((q&8191)<<13)|0;K=(Q+(q>>>13)|0)+(go>>>26)|0,go&=67108863,j=Math.imul(Qe,Kt),q=Math.imul(Qe,Cr),q=q+Math.imul(et,Kt)|0,Q=Math.imul(et,Cr),j=j+Math.imul(be,tt)|0,q=q+Math.imul(be,st)|0,q=q+Math.imul(Ie,tt)|0,Q=Q+Math.imul(Ie,st)|0,j=j+Math.imul(Fe,Je)|0,q=q+Math.imul(Fe,Ct)|0,q=q+Math.imul(Ee,Je)|0,Q=Q+Math.imul(Ee,Ct)|0,j=j+Math.imul(re,dr)|0,q=q+Math.imul(re,Vr)|0,q=q+Math.imul(pe,dr)|0,Q=Q+Math.imul(pe,Vr)|0;var La=(K+j|0)+((q&8191)<<13)|0;K=(Q+(q>>>13)|0)+(La>>>26)|0,La&=67108863,j=Math.imul(Qe,tt),q=Math.imul(Qe,st),q=q+Math.imul(et,tt)|0,Q=Math.imul(et,st),j=j+Math.imul(be,Je)|0,q=q+Math.imul(be,Ct)|0,q=q+Math.imul(Ie,Je)|0,Q=Q+Math.imul(Ie,Ct)|0,j=j+Math.imul(Fe,dr)|0,q=q+Math.imul(Fe,Vr)|0,q=q+Math.imul(Ee,dr)|0,Q=Q+Math.imul(Ee,Vr)|0;var lo=(K+j|0)+((q&8191)<<13)|0;K=(Q+(q>>>13)|0)+(lo>>>26)|0,lo&=67108863,j=Math.imul(Qe,Je),q=Math.imul(Qe,Ct),q=q+Math.imul(et,Je)|0,Q=Math.imul(et,Ct),j=j+Math.imul(be,dr)|0,q=q+Math.imul(be,Vr)|0,q=q+Math.imul(Ie,dr)|0,Q=Q+Math.imul(Ie,Vr)|0;var Ns=(K+j|0)+((q&8191)<<13)|0;K=(Q+(q>>>13)|0)+(Ns>>>26)|0,Ns&=67108863,j=Math.imul(Qe,dr),q=Math.imul(Qe,Vr),q=q+Math.imul(et,dr)|0,Q=Math.imul(et,Vr);var Aa=(K+j|0)+((q&8191)<<13)|0;return K=(Q+(q>>>13)|0)+(Aa>>>26)|0,Aa&=67108863,Y[0]=ui,Y[1]=ti,Y[2]=Pr,Y[3]=Xi,Y[4]=Sn,Y[5]=vn,Y[6]=aa,Y[7]=va,Y[8]=gn,Y[9]=Hn,Y[10]=oa,Y[11]=vs,Y[12]=bo,Y[13]=Os,Y[14]=go,Y[15]=La,Y[16]=lo,Y[17]=Ns,Y[18]=Aa,K!==0&&(Y[19]=K,B.length++),B};Math.imul||(S=b);function x(R,F,I){I.negative=F.negative^R.negative,I.length=R.length+F.length;for(var B=0,O=0,$=0;$>>26)|0,O+=Y>>>26,Y&=67108863}I.words[$]=K,B=Y,Y=O}return B!==0?I.words[$]=B:I.length--,I.strip()}function T(R,F,I){var B=new A;return B.mulp(R,F,I)}f.prototype.mulTo=function(F,I){var B,O=this.length+F.length;return this.length===10&&F.length===10?B=S(this,F,I):O<63?B=b(this,F,I):O<1024?B=x(this,F,I):B=T(this,F,I),B};function A(R,F){this.x=R,this.y=F}A.prototype.makeRBT=function(F){for(var I=new Array(F),B=f.prototype._countBits(F)-1,O=0;O>=1;return O},A.prototype.permute=function(F,I,B,O,$,Y){for(var K=0;K>>1)$++;return 1<<$+1+O},A.prototype.conjugate=function(F,I,B){if(!(B<=1))for(var O=0;O>>13,B[2*Y+1]=$&8191,$=$>>>13;for(Y=2*I;Y>=26,I+=O/67108864|0,I+=$>>>26,this.words[B]=$&67108863}return I!==0&&(this.words[B]=I,this.length++),F===0&&(this.length=1,this._normSign()),this},f.prototype.muln=function(F){return this.clone().imuln(F)},f.prototype.sqr=function(){return this.mul(this)},f.prototype.isqr=function(){return this.imul(this.clone())},f.prototype.pow=function(F){var I=_(F);if(I.length===0)return new f(1);for(var B=this,O=0;O=0);var I=F%26,B=(F-I)/26,O=67108863>>>26-I<<26-I,$;if(I!==0){var Y=0;for($=0;$>>26-I}Y&&(this.words[$]=Y,this.length++)}if(B!==0){for($=this.length-1;$>=0;$--)this.words[$+B]=this.words[$];for($=0;$=0);var O;I?O=(I-I%26)/26:O=0;var $=F%26,Y=Math.min((F-$)/26,this.length),K=67108863^67108863>>>$<<$,j=B;if(O-=Y,O=Math.max(0,O),j){for(var q=0;qY)for(this.length-=Y,q=0;q=0&&(Q!==0||q>=O);q--){var U=this.words[q]|0;this.words[q]=Q<<26-$|U>>>$,Q=U&K}return j&&Q!==0&&(j.words[j.length++]=Q),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},f.prototype.ishrn=function(F,I,B){return u(this.negative===0),this.iushrn(F,I,B)},f.prototype.shln=function(F){return this.clone().ishln(F)},f.prototype.ushln=function(F){return this.clone().iushln(F)},f.prototype.shrn=function(F){return this.clone().ishrn(F)},f.prototype.ushrn=function(F){return this.clone().iushrn(F)},f.prototype.testn=function(F){u(typeof F=="number"&&F>=0);var I=F%26,B=(F-I)/26,O=1<=0);var I=F%26,B=(F-I)/26;if(u(this.negative===0,"imaskn works only with positive numbers"),this.length<=B)return this;if(I!==0&&B++,this.length=Math.min(B,this.length),I!==0){var O=67108863^67108863>>>I<=67108864;I++)this.words[I]-=67108864,I===this.length-1?this.words[I+1]=1:this.words[I+1]++;return this.length=Math.max(this.length,I+1),this},f.prototype.isubn=function(F){if(u(typeof F=="number"),u(F<67108864),F<0)return this.iaddn(-F);if(this.negative!==0)return this.negative=0,this.iaddn(F),this.negative=1,this;if(this.words[0]-=F,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var I=0;I>26)-(j/67108864|0),this.words[$+B]=Y&67108863}for(;$>26,this.words[$+B]=Y&67108863;if(K===0)return this.strip();for(u(K===-1),K=0,$=0;$>26,this.words[$]=Y&67108863;return this.negative=1,this.strip()},f.prototype._wordDiv=function(F,I){var B=this.length-F.length,O=this.clone(),$=F,Y=$.words[$.length-1]|0,K=this._countBits(Y);B=26-K,B!==0&&($=$.ushln(B),O.iushln(B),Y=$.words[$.length-1]|0);var j=O.length-$.length,q;if(I!=="mod"){q=new f(null),q.length=j+1,q.words=new Array(q.length);for(var Q=0;Q=0;V--){var X=(O.words[$.length+V]|0)*67108864+(O.words[$.length+V-1]|0);for(X=Math.min(X/Y|0,67108863),O._ishlnsubmul($,X,V);O.negative!==0;)X--,O.negative=0,O._ishlnsubmul($,1,V),O.isZero()||(O.negative^=1);q&&(q.words[V]=X)}return q&&q.strip(),O.strip(),I!=="div"&&B!==0&&O.iushrn(B),{div:q||null,mod:O}},f.prototype.divmod=function(F,I,B){if(u(!F.isZero()),this.isZero())return{div:new f(0),mod:new f(0)};var O,$,Y;return this.negative!==0&&F.negative===0?(Y=this.neg().divmod(F,I),I!=="mod"&&(O=Y.div.neg()),I!=="div"&&($=Y.mod.neg(),B&&$.negative!==0&&$.iadd(F)),{div:O,mod:$}):this.negative===0&&F.negative!==0?(Y=this.divmod(F.neg(),I),I!=="mod"&&(O=Y.div.neg()),{div:O,mod:Y.mod}):(this.negative&F.negative)!==0?(Y=this.neg().divmod(F.neg(),I),I!=="div"&&($=Y.mod.neg(),B&&$.negative!==0&&$.isub(F)),{div:Y.div,mod:$}):F.length>this.length||this.cmp(F)<0?{div:new f(0),mod:this}:F.length===1?I==="div"?{div:this.divn(F.words[0]),mod:null}:I==="mod"?{div:null,mod:new f(this.modn(F.words[0]))}:{div:this.divn(F.words[0]),mod:new f(this.modn(F.words[0]))}:this._wordDiv(F,I)},f.prototype.div=function(F){return this.divmod(F,"div",!1).div},f.prototype.mod=function(F){return this.divmod(F,"mod",!1).mod},f.prototype.umod=function(F){return this.divmod(F,"mod",!0).mod},f.prototype.divRound=function(F){var I=this.divmod(F);if(I.mod.isZero())return I.div;var B=I.mod.abs(),O=F.abs().iushrn(1),$=F.words[0]&1,Y=B.cmp(O);if(Y<0||$===1&&Y===0)return I.div;var K=new f(1);return K.negative=this.negative^F.negative,I.div.iadd(K)},f.prototype.modn=function(F){u(F<=67108863);for(var I=(1<<26)%F,B=0,O=this.length-1;O>=0;O--)B=(I*B+(this.words[O]|0))%F;return B},f.prototype.idivn=function(F){u(F<=67108863);for(var I=0,B=this.length-1;B>=0;B--){var O=(this.words[B]|0)+I*67108864;this.words[B]=O/F|0,I=O%F}return this.strip()},f.prototype.divn=function(F){return this.clone().idivn(F)},f.prototype.egcd=function(F){u(F.negative===0),u(!F.isZero());var I=this,B=F.clone();I.negative!==0?I=I.umod(F):I=I.clone();for(var O=new f(1),$=new f(0),Y=new f(0),K=new f(1),j=0;I.isEven()&&B.isEven();)I.iushrn(1),B.iushrn(1),++j;for(var q=B.clone(),Q=I.clone();!I.isZero();){for(var U=0,V=1;(I.words[0]&V)===0&&U<26;++U,V<<=1);if(U>0)for(I.iushrn(U);U-- >0;)(O.isOdd()||$.isOdd())&&(O.iadd(q),$.isub(Q)),O.iushrn(1),$.iushrn(1);for(var X=0,G=1;(B.words[0]&G)===0&&X<26;++X,G<<=1);if(X>0)for(B.iushrn(X);X-- >0;)(Y.isOdd()||K.isOdd())&&(Y.iadd(q),K.isub(Q)),Y.iushrn(1),K.iushrn(1);I.cmp(B)>=0?(I.isub(B),O.isub(Y),$.isub(K)):(B.isub(I),Y.isub(O),K.isub($))}return{a:Y,b:K,gcd:B.iushln(j)}},f.prototype._invmp=function(F){u(F.negative===0),u(!F.isZero());var I=this,B=F.clone();I.negative!==0?I=I.umod(F):I=I.clone();for(var O=new f(1),$=new f(0),Y=B.clone();I.cmpn(1)>0&&B.cmpn(1)>0;){for(var K=0,j=1;(I.words[0]&j)===0&&K<26;++K,j<<=1);if(K>0)for(I.iushrn(K);K-- >0;)O.isOdd()&&O.iadd(Y),O.iushrn(1);for(var q=0,Q=1;(B.words[0]&Q)===0&&q<26;++q,Q<<=1);if(q>0)for(B.iushrn(q);q-- >0;)$.isOdd()&&$.iadd(Y),$.iushrn(1);I.cmp(B)>=0?(I.isub(B),O.isub($)):(B.isub(I),$.isub(O))}var U;return I.cmpn(1)===0?U=O:U=$,U.cmpn(0)<0&&U.iadd(F),U},f.prototype.gcd=function(F){if(this.isZero())return F.abs();if(F.isZero())return this.abs();var I=this.clone(),B=F.clone();I.negative=0,B.negative=0;for(var O=0;I.isEven()&&B.isEven();O++)I.iushrn(1),B.iushrn(1);do{for(;I.isEven();)I.iushrn(1);for(;B.isEven();)B.iushrn(1);var $=I.cmp(B);if($<0){var Y=I;I=B,B=Y}else if($===0||B.cmpn(1)===0)break;I.isub(B)}while(!0);return B.iushln(O)},f.prototype.invm=function(F){return this.egcd(F).a.umod(F)},f.prototype.isEven=function(){return(this.words[0]&1)===0},f.prototype.isOdd=function(){return(this.words[0]&1)===1},f.prototype.andln=function(F){return this.words[0]&F},f.prototype.bincn=function(F){u(typeof F=="number");var I=F%26,B=(F-I)/26,O=1<>>26,K&=67108863,this.words[Y]=K}return $!==0&&(this.words[Y]=$,this.length++),this},f.prototype.isZero=function(){return this.length===1&&this.words[0]===0},f.prototype.cmpn=function(F){var I=F<0;if(this.negative!==0&&!I)return-1;if(this.negative===0&&I)return 1;this.strip();var B;if(this.length>1)B=1;else{I&&(F=-F),u(F<=67108863,"Number is too big");var O=this.words[0]|0;B=O===F?0:OF.length)return 1;if(this.length=0;B--){var O=this.words[B]|0,$=F.words[B]|0;if(O!==$){O<$?I=-1:O>$&&(I=1);break}}return I},f.prototype.gtn=function(F){return this.cmpn(F)===1},f.prototype.gt=function(F){return this.cmp(F)===1},f.prototype.gten=function(F){return this.cmpn(F)>=0},f.prototype.gte=function(F){return this.cmp(F)>=0},f.prototype.ltn=function(F){return this.cmpn(F)===-1},f.prototype.lt=function(F){return this.cmp(F)===-1},f.prototype.lten=function(F){return this.cmpn(F)<=0},f.prototype.lte=function(F){return this.cmp(F)<=0},f.prototype.eqn=function(F){return this.cmpn(F)===0},f.prototype.eq=function(F){return this.cmp(F)===0},f.red=function(F){return new L(F)},f.prototype.toRed=function(F){return u(!this.red,"Already a number in reduction context"),u(this.negative===0,"red works only with positives"),F.convertTo(this)._forceRed(F)},f.prototype.fromRed=function(){return u(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},f.prototype._forceRed=function(F){return this.red=F,this},f.prototype.forceRed=function(F){return u(!this.red,"Already a number in reduction context"),this._forceRed(F)},f.prototype.redAdd=function(F){return u(this.red,"redAdd works only with red numbers"),this.red.add(this,F)},f.prototype.redIAdd=function(F){return u(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,F)},f.prototype.redSub=function(F){return u(this.red,"redSub works only with red numbers"),this.red.sub(this,F)},f.prototype.redISub=function(F){return u(this.red,"redISub works only with red numbers"),this.red.isub(this,F)},f.prototype.redShl=function(F){return u(this.red,"redShl works only with red numbers"),this.red.shl(this,F)},f.prototype.redMul=function(F){return u(this.red,"redMul works only with red numbers"),this.red._verify2(this,F),this.red.mul(this,F)},f.prototype.redIMul=function(F){return u(this.red,"redMul works only with red numbers"),this.red._verify2(this,F),this.red.imul(this,F)},f.prototype.redSqr=function(){return u(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},f.prototype.redISqr=function(){return u(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},f.prototype.redSqrt=function(){return u(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},f.prototype.redInvm=function(){return u(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},f.prototype.redNeg=function(){return u(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},f.prototype.redPow=function(F){return u(this.red&&!F.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,F)};var y={k256:null,p224:null,p192:null,p25519:null};function E(R,F){this.name=R,this.p=new f(F,16),this.n=this.p.bitLength(),this.k=new f(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}E.prototype._tmp=function(){var F=new f(null);return F.words=new Array(Math.ceil(this.n/13)),F},E.prototype.ireduce=function(F){var I=F,B;do this.split(I,this.tmp),I=this.imulK(I),I=I.iadd(this.tmp),B=I.bitLength();while(B>this.n);var O=B0?I.isub(this.p):I.strip!==void 0?I.strip():I._strip(),I},E.prototype.split=function(F,I){F.iushrn(this.n,0,I)},E.prototype.imulK=function(F){return F.imul(this.k)};function M(){E.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}c(M,E),M.prototype.split=function(F,I){for(var B=4194303,O=Math.min(F.length,9),$=0;$>>22,Y=K}Y>>>=22,F.words[$-10]=Y,Y===0&&F.length>10?F.length-=10:F.length-=9},M.prototype.imulK=function(F){F.words[F.length]=0,F.words[F.length+1]=0,F.length+=2;for(var I=0,B=0;B>>=26,F.words[B]=$,I=O}return I!==0&&(F.words[F.length++]=I),F},f._prime=function(F){if(y[F])return y[F];var I;if(F==="k256")I=new M;else if(F==="p224")I=new C;else if(F==="p192")I=new k;else if(F==="p25519")I=new D;else throw new Error("Unknown prime "+F);return y[F]=I,I};function L(R){if(typeof R=="string"){var F=f._prime(R);this.m=F.p,this.prime=F}else u(R.gtn(1),"modulus must be greater than 1"),this.m=R,this.prime=null}L.prototype._verify1=function(F){u(F.negative===0,"red works only with positives"),u(F.red,"red works only with red numbers")},L.prototype._verify2=function(F,I){u((F.negative|I.negative)===0,"red works only with positives"),u(F.red&&F.red===I.red,"red works only with red numbers")},L.prototype.imod=function(F){return this.prime?this.prime.ireduce(F)._forceRed(this):F.umod(this.m)._forceRed(this)},L.prototype.neg=function(F){return F.isZero()?F.clone():this.m.sub(F)._forceRed(this)},L.prototype.add=function(F,I){this._verify2(F,I);var B=F.add(I);return B.cmp(this.m)>=0&&B.isub(this.m),B._forceRed(this)},L.prototype.iadd=function(F,I){this._verify2(F,I);var B=F.iadd(I);return B.cmp(this.m)>=0&&B.isub(this.m),B},L.prototype.sub=function(F,I){this._verify2(F,I);var B=F.sub(I);return B.cmpn(0)<0&&B.iadd(this.m),B._forceRed(this)},L.prototype.isub=function(F,I){this._verify2(F,I);var B=F.isub(I);return B.cmpn(0)<0&&B.iadd(this.m),B},L.prototype.shl=function(F,I){return this._verify1(F),this.imod(F.ushln(I))},L.prototype.imul=function(F,I){return this._verify2(F,I),this.imod(F.imul(I))},L.prototype.mul=function(F,I){return this._verify2(F,I),this.imod(F.mul(I))},L.prototype.isqr=function(F){return this.imul(F,F.clone())},L.prototype.sqr=function(F){return this.mul(F,F)},L.prototype.sqrt=function(F){if(F.isZero())return F.clone();var I=this.m.andln(3);if(u(I%2===1),I===3){var B=this.m.add(new f(1)).iushrn(2);return this.pow(F,B)}for(var O=this.m.subn(1),$=0;!O.isZero()&&O.andln(1)===0;)$++,O.iushrn(1);u(!O.isZero());var Y=new f(1).toRed(this),K=Y.redNeg(),j=this.m.subn(1).iushrn(1),q=this.m.bitLength();for(q=new f(2*q*q).toRed(this);this.pow(q,j).cmp(K)!==0;)q.redIAdd(K);for(var Q=this.pow(q,O),U=this.pow(F,O.addn(1).iushrn(1)),V=this.pow(F,O),X=$;V.cmp(Y)!==0;){for(var G=V,H=0;G.cmp(Y)!==0;H++)G=G.redSqr();u(H=0;$--){for(var Q=I.words[$],U=q-1;U>=0;U--){var V=Q>>U&1;if(Y!==O[0]&&(Y=this.sqr(Y)),V===0&&K===0){j=0;continue}K<<=1,K|=V,j++,!(j!==B&&($!==0||U!==0))&&(Y=this.mul(Y,O[K]),j=0,K=0)}q=26}return Y},L.prototype.convertTo=function(F){var I=F.umod(this.m);return I===F?I.clone():I},L.prototype.convertFrom=function(F){var I=F.clone();return I.red=null,I},f.mont=function(F){return new P(F)};function P(R){L.call(this,R),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new f(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)}c(P,L),P.prototype.convertTo=function(F){return this.imod(F.ushln(this.shift))},P.prototype.convertFrom=function(F){var I=this.imod(F.mul(this.rinv));return I.red=null,I},P.prototype.imul=function(F,I){if(F.isZero()||I.isZero())return F.words[0]=0,F.length=1,F;var B=F.imul(I),O=B.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),$=B.isub(O).iushrn(this.shift),Y=$;return $.cmp(this.m)>=0?Y=$.isub(this.m):$.cmpn(0)<0&&(Y=$.iadd(this.m)),Y._forceRed(this)},P.prototype.mul=function(F,I){if(F.isZero()||I.isZero())return new f(0)._forceRed(this);var B=F.mul(I),O=B.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),$=B.isub(O).iushrn(this.shift),Y=$;return $.cmp(this.m)>=0?Y=$.isub(this.m):$.cmpn(0)<0&&(Y=$.iadd(this.m)),Y._forceRed(this)},P.prototype.invm=function(F){var I=this.imod(F._invmp(this.m).mul(this.r2));return I._forceRed(this)}})(n,this)},6204(n){"use strict";n.exports=a;function a(o){var s,l,u,c=o.length,f=0;for(s=0;s>>1;if(!(A<=0)){var y,E=s.mallocDouble(2*A*x),M=s.mallocInt32(x);if(x=f(w,A,E,M),x>0){if(A===1&&S)l.init(x),y=l.sweepComplete(A,b,0,x,E,M,0,x,E,M);else{var C=s.mallocDouble(2*A*T),k=s.mallocInt32(T);T=f(_,A,C,k),T>0&&(l.init(x+T),A===1?y=l.sweepBipartite(A,b,0,x,E,M,0,T,C,k):y=u(A,b,S,x,E,M,T,C,k),s.free(C),s.free(k))}s.free(E),s.free(M)}return y}}}var p;function d(w,_){p.push([w,_])}function v(w){return p=[],h(w,w,d,!0),p}function m(w,_){return p=[],h(w,_,d,!1),p}function g(w,_,b){switch(arguments.length){case 1:return v(w);case 2:return typeof _=="function"?h(w,w,_,!0):m(w,_);case 3:return h(w,_,b,!1);default:throw new Error("box-intersect: Invalid arguments")}}},2455(n,a){"use strict";function o(){function u(h,p,d,v,m,g,w,_,b,S,x){for(var T=2*h,A=v,y=T*v;Ab-_?u(h,p,d,v,m,g,w,_,b,S,x):c(h,p,d,v,m,g,w,_,b,S,x)}return f}function s(){function u(d,v,m,g,w,_,b,S,x,T,A){for(var y=2*d,E=g,M=y*g;ET-x?g?u(d,v,m,w,_,b,S,x,T,A,y):c(d,v,m,w,_,b,S,x,T,A,y):g?f(d,v,m,w,_,b,S,x,T,A,y):h(d,v,m,w,_,b,S,x,T,A,y)}return p}function l(u){return u?o():s()}a.partial=l(!1),a.full=l(!0)},7150(n,a,o){"use strict";n.exports=R;var s=o(1888),l=o(8828),u=o(2455),c=u.partial,f=u.full,h=o(855),p=o(3545),d=o(8105),v=128,m=1<<22,g=1<<22,w=d("!(lo>=p0)&&!(p1>=hi)"),_=d("lo===p0"),b=d("lo0;){Q-=1;var X=Q*A,G=M[X],H=M[X+1],J=M[X+2],te=M[X+3],ue=M[X+4],ge=M[X+5],ke=Q*y,_e=C[ke],he=C[ke+1],oe=ge&1,Me=!!(ge&16),ye=$,ce=Y,ee=j,ae=q;if(oe&&(ye=j,ce=q,ee=$,ae=Y),!(ge&2&&(J=b(F,G,H,J,ye,ce,he),H>=J))&&!(ge&4&&(H=S(F,G,H,J,ye,ce,_e),H>=J))){var xe=J-H,re=ue-te;if(Me){if(F*xe*(xe+re)d&&m[T+p]>S;--x,T-=w){for(var A=T,y=T+w,E=0;E>>1,S=2*h,x=b,T=m[S*b+p];w<_;){if(_-w=C?(x=M,T=C):E>=D?(x=y,T=E):(x=k,T=D):C>=D?(x=M,T=C):D>=E?(x=y,T=E):(x=k,T=D);for(var R=S*(_-1),F=S*x,L=0;L=p0)&&!(p1>=hi)":p};function o(d){return a[d]}function s(d,v,m,g,w,_,b){for(var S=2*d,x=S*m,T=x,A=m,y=v,E=d+v,M=m;g>M;++M,x+=S){var C=w[x+y];if(C===b)if(A===M)A+=1,T+=S;else{for(var k=0;S>k;++k){var D=w[x+k];w[x+k]=w[T],w[T++]=D}var L=_[M];_[M]=_[A],_[A++]=L}}return A}function l(d,v,m,g,w,_,b){for(var S=2*d,x=S*m,T=x,A=m,y=v,E=d+v,M=m;g>M;++M,x+=S){var C=w[x+y];if(Ck;++k){var D=w[x+k];w[x+k]=w[T],w[T++]=D}var L=_[M];_[M]=_[A],_[A++]=L}}return A}function u(d,v,m,g,w,_,b){for(var S=2*d,x=S*m,T=x,A=m,y=v,E=d+v,M=m;g>M;++M,x+=S){var C=w[x+E];if(C<=b)if(A===M)A+=1,T+=S;else{for(var k=0;S>k;++k){var D=w[x+k];w[x+k]=w[T],w[T++]=D}var L=_[M];_[M]=_[A],_[A++]=L}}return A}function c(d,v,m,g,w,_,b){for(var S=2*d,x=S*m,T=x,A=m,y=v,E=d+v,M=m;g>M;++M,x+=S){var C=w[x+E];if(C<=b)if(A===M)A+=1,T+=S;else{for(var k=0;S>k;++k){var D=w[x+k];w[x+k]=w[T],w[T++]=D}var L=_[M];_[M]=_[A],_[A++]=L}}return A}function f(d,v,m,g,w,_,b){for(var S=2*d,x=S*m,T=x,A=m,y=v,E=d+v,M=m;g>M;++M,x+=S){var C=w[x+y],k=w[x+E];if(C<=b&&b<=k)if(A===M)A+=1,T+=S;else{for(var D=0;S>D;++D){var L=w[x+D];w[x+D]=w[T],w[T++]=L}var P=_[M];_[M]=_[A],_[A++]=P}}return A}function h(d,v,m,g,w,_,b){for(var S=2*d,x=S*m,T=x,A=m,y=v,E=d+v,M=m;g>M;++M,x+=S){var C=w[x+y],k=w[x+E];if(CD;++D){var L=w[x+D];w[x+D]=w[T],w[T++]=L}var P=_[M];_[M]=_[A],_[A++]=P}}return A}function p(d,v,m,g,w,_,b,S){for(var x=2*d,T=x*m,A=T,y=m,E=v,M=d+v,C=m;g>C;++C,T+=x){var k=w[T+E],D=w[T+M];if(!(k>=b)&&!(S>=D))if(y===C)y+=1,A+=x;else{for(var L=0;x>L;++L){var P=w[T+L];w[T+L]=w[A],w[A++]=P}var R=_[C];_[C]=_[y],_[y++]=R}}return y}},4192(n){"use strict";n.exports=o;var a=32;function o(v,m){m<=4*a?s(0,m-1,v):d(0,m-1,v)}function s(v,m,g){for(var w=2*(v+1),_=v+1;_<=m;++_){for(var b=g[w++],S=g[w++],x=_,T=w-2;x-- >v;){var A=g[T-2],y=g[T-1];if(Ag[m+1]:!0}function p(v,m,g,w){v*=2;var _=w[v];return _>1,x=S-w,T=S+w,A=_,y=x,E=S,M=T,C=b,k=v+1,D=m-1,L=0;h(A,y,g)&&(L=A,A=y,y=L),h(M,C,g)&&(L=M,M=C,C=L),h(A,E,g)&&(L=A,A=E,E=L),h(y,E,g)&&(L=y,y=E,E=L),h(A,M,g)&&(L=A,A=M,M=L),h(E,M,g)&&(L=E,E=M,M=L),h(y,C,g)&&(L=y,y=C,C=L),h(y,E,g)&&(L=y,y=E,E=L),h(M,C,g)&&(L=M,M=C,C=L);for(var P=g[2*y],R=g[2*y+1],F=g[2*M],I=g[2*M+1],B=2*A,O=2*E,$=2*C,Y=2*_,K=2*S,j=2*b,q=0;q<2;++q){var Q=g[B+q],U=g[O+q],V=g[$+q];g[Y+q]=Q,g[K+q]=U,g[j+q]=V}u(x,v,g),u(T,m,g);for(var X=k;X<=D;++X)if(p(X,P,R,g))X!==k&&l(X,k,g),++k;else if(!p(X,F,I,g))for(;;)if(p(D,F,I,g)){p(D,P,R,g)?(c(X,k,D,g),++k,--D):(l(X,D,g),--D);break}else{if(--D>>1;u(w,U);for(var V=0,X=0,K=0;K=c)G=G-c|0,b(d,v,X--,G);else if(G>=0)b(h,p,V--,G);else if(G<=-c){G=-G-c|0;for(var H=0;H>>1;u(w,U);for(var V=0,X=0,G=0,K=0;K>1===w[2*K+3]>>1&&(J=2,K+=1),H<0){for(var te=-(H>>1)-1,ue=0;ue>1)-1;J===0?b(h,p,V--,te):J===1?b(d,v,X--,te):J===2&&b(m,g,G--,te)}}}function A(E,M,C,k,D,L,P,R,F,I,B,O){var $=0,Y=2*E,K=M,j=M+E,q=1,Q=1;k?Q=c:q=c;for(var U=D;U>>1;u(w,H);for(var J=0,U=0;U=c?(ue=!k,V-=c):(ue=!!k,V-=1),ue)S(h,p,J++,V);else{var ge=O[V],ke=Y*V,_e=B[ke+M+1],he=B[ke+M+1+E];e:for(var oe=0;oe>>1;u(w,V);for(var X=0,j=0;j=c)h[X++]=q-c;else{q-=1;var H=B[q],J=$*q,te=I[J+M+1],ue=I[J+M+1+E];e:for(var ge=0;ge=0;--ge)if(h[ge]===q){for(var oe=ge+1;oef)throw new RangeError('The value "'+ce+'" is invalid for option "size"');var ee=new Uint8Array(ce);return Object.setPrototypeOf(ee,d.prototype),ee}function d(ce,ee,ae){if(typeof ce=="number"){if(typeof ee=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return w(ce)}return v(ce,ee,ae)}d.poolSize=8192;function v(ce,ee,ae){if(typeof ce=="string")return _(ce,ee);if(ArrayBuffer.isView(ce))return S(ce);if(ce==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof ce);if(oe(ce,ArrayBuffer)||ce&&oe(ce.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(oe(ce,SharedArrayBuffer)||ce&&oe(ce.buffer,SharedArrayBuffer)))return x(ce,ee,ae);if(typeof ce=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var xe=ce.valueOf&&ce.valueOf();if(xe!=null&&xe!==ce)return d.from(xe,ee,ae);var re=T(ce);if(re)return re;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof ce[Symbol.toPrimitive]=="function")return d.from(ce[Symbol.toPrimitive]("string"),ee,ae);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof ce)}d.from=function(ce,ee,ae){return v(ce,ee,ae)},Object.setPrototypeOf(d.prototype,Uint8Array.prototype),Object.setPrototypeOf(d,Uint8Array);function m(ce){if(typeof ce!="number")throw new TypeError('"size" argument must be of type number');if(ce<0)throw new RangeError('The value "'+ce+'" is invalid for option "size"')}function g(ce,ee,ae){return m(ce),ce<=0?p(ce):ee!==void 0?typeof ae=="string"?p(ce).fill(ee,ae):p(ce).fill(ee):p(ce)}d.alloc=function(ce,ee,ae){return g(ce,ee,ae)};function w(ce){return m(ce),p(ce<0?0:A(ce)|0)}d.allocUnsafe=function(ce){return w(ce)},d.allocUnsafeSlow=function(ce){return w(ce)};function _(ce,ee){if((typeof ee!="string"||ee==="")&&(ee="utf8"),!d.isEncoding(ee))throw new TypeError("Unknown encoding: "+ee);var ae=E(ce,ee)|0,xe=p(ae),re=xe.write(ce,ee);return re!==ae&&(xe=xe.slice(0,re)),xe}function b(ce){for(var ee=ce.length<0?0:A(ce.length)|0,ae=p(ee),xe=0;xe=f)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+f.toString(16)+" bytes");return ce|0}function y(ce){return+ce!=ce&&(ce=0),d.alloc(+ce)}d.isBuffer=function(ee){return ee!=null&&ee._isBuffer===!0&&ee!==d.prototype},d.compare=function(ee,ae){if(oe(ee,Uint8Array)&&(ee=d.from(ee,ee.offset,ee.byteLength)),oe(ae,Uint8Array)&&(ae=d.from(ae,ae.offset,ae.byteLength)),!d.isBuffer(ee)||!d.isBuffer(ae))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(ee===ae)return 0;for(var xe=ee.length,re=ae.length,pe=0,we=Math.min(xe,re);pere.length?d.from(we).copy(re,pe):Uint8Array.prototype.set.call(re,we,pe);else if(d.isBuffer(we))we.copy(re,pe);else throw new TypeError('"list" argument must be an Array of Buffers');pe+=we.length}return re};function E(ce,ee){if(d.isBuffer(ce))return ce.length;if(ArrayBuffer.isView(ce)||oe(ce,ArrayBuffer))return ce.byteLength;if(typeof ce!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof ce);var ae=ce.length,xe=arguments.length>2&&arguments[2]===!0;if(!xe&&ae===0)return 0;for(var re=!1;;)switch(ee){case"ascii":case"latin1":case"binary":return ae;case"utf8":case"utf-8":return ue(ce).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ae*2;case"hex":return ae>>>1;case"base64":return _e(ce).length;default:if(re)return xe?-1:ue(ce).length;ee=(""+ee).toLowerCase(),re=!0}}d.byteLength=E;function M(ce,ee,ae){var xe=!1;if((ee===void 0||ee<0)&&(ee=0),ee>this.length||((ae===void 0||ae>this.length)&&(ae=this.length),ae<=0)||(ae>>>=0,ee>>>=0,ae<=ee))return"";for(ce||(ce="utf8");;)switch(ce){case"hex":return q(this,ee,ae);case"utf8":case"utf-8":return O(this,ee,ae);case"ascii":return K(this,ee,ae);case"latin1":case"binary":return j(this,ee,ae);case"base64":return B(this,ee,ae);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Q(this,ee,ae);default:if(xe)throw new TypeError("Unknown encoding: "+ce);ce=(ce+"").toLowerCase(),xe=!0}}d.prototype._isBuffer=!0;function C(ce,ee,ae){var xe=ce[ee];ce[ee]=ce[ae],ce[ae]=xe}d.prototype.swap16=function(){var ee=this.length;if(ee%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var ae=0;aeae&&(ee+=" ... "),""},c&&(d.prototype[c]=d.prototype.inspect),d.prototype.compare=function(ee,ae,xe,re,pe){if(oe(ee,Uint8Array)&&(ee=d.from(ee,ee.offset,ee.byteLength)),!d.isBuffer(ee))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof ee);if(ae===void 0&&(ae=0),xe===void 0&&(xe=ee?ee.length:0),re===void 0&&(re=0),pe===void 0&&(pe=this.length),ae<0||xe>ee.length||re<0||pe>this.length)throw new RangeError("out of range index");if(re>=pe&&ae>=xe)return 0;if(re>=pe)return-1;if(ae>=xe)return 1;if(ae>>>=0,xe>>>=0,re>>>=0,pe>>>=0,this===ee)return 0;for(var we=pe-re,Fe=xe-ae,Ee=Math.min(we,Fe),Ce=this.slice(re,pe),be=ee.slice(ae,xe),Ie=0;Ie2147483647?ae=2147483647:ae<-2147483648&&(ae=-2147483648),ae=+ae,Me(ae)&&(ae=re?0:ce.length-1),ae<0&&(ae=ce.length+ae),ae>=ce.length){if(re)return-1;ae=ce.length-1}else if(ae<0)if(re)ae=0;else return-1;if(typeof ee=="string"&&(ee=d.from(ee,xe)),d.isBuffer(ee))return ee.length===0?-1:D(ce,ee,ae,xe,re);if(typeof ee=="number")return ee=ee&255,typeof Uint8Array.prototype.indexOf=="function"?re?Uint8Array.prototype.indexOf.call(ce,ee,ae):Uint8Array.prototype.lastIndexOf.call(ce,ee,ae):D(ce,[ee],ae,xe,re);throw new TypeError("val must be string, number or Buffer")}function D(ce,ee,ae,xe,re){var pe=1,we=ce.length,Fe=ee.length;if(xe!==void 0&&(xe=String(xe).toLowerCase(),xe==="ucs2"||xe==="ucs-2"||xe==="utf16le"||xe==="utf-16le")){if(ce.length<2||ee.length<2)return-1;pe=2,we/=2,Fe/=2,ae/=2}function Ee(Qe,et){return pe===1?Qe[et]:Qe.readUInt16BE(et*pe)}var Ce;if(re){var be=-1;for(Ce=ae;Cewe&&(ae=we-Fe),Ce=ae;Ce>=0;Ce--){for(var Ie=!0,Oe=0;Oere&&(xe=re)):xe=re;var pe=ee.length;xe>pe/2&&(xe=pe/2);for(var we=0;we>>0,isFinite(xe)?(xe=xe>>>0,re===void 0&&(re="utf8")):(re=xe,xe=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var pe=this.length-ae;if((xe===void 0||xe>pe)&&(xe=pe),ee.length>0&&(xe<0||ae<0)||ae>this.length)throw new RangeError("Attempt to write outside buffer bounds");re||(re="utf8");for(var we=!1;;)switch(re){case"hex":return L(this,ee,ae,xe);case"utf8":case"utf-8":return P(this,ee,ae,xe);case"ascii":case"latin1":case"binary":return R(this,ee,ae,xe);case"base64":return F(this,ee,ae,xe);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,ee,ae,xe);default:if(we)throw new TypeError("Unknown encoding: "+re);re=(""+re).toLowerCase(),we=!0}},d.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function B(ce,ee,ae){return ee===0&&ae===ce.length?l.fromByteArray(ce):l.fromByteArray(ce.slice(ee,ae))}function O(ce,ee,ae){ae=Math.min(ce.length,ae);for(var xe=[],re=ee;re239?4:pe>223?3:pe>191?2:1;if(re+Fe<=ae){var Ee,Ce,be,Ie;switch(Fe){case 1:pe<128&&(we=pe);break;case 2:Ee=ce[re+1],(Ee&192)===128&&(Ie=(pe&31)<<6|Ee&63,Ie>127&&(we=Ie));break;case 3:Ee=ce[re+1],Ce=ce[re+2],(Ee&192)===128&&(Ce&192)===128&&(Ie=(pe&15)<<12|(Ee&63)<<6|Ce&63,Ie>2047&&(Ie<55296||Ie>57343)&&(we=Ie));break;case 4:Ee=ce[re+1],Ce=ce[re+2],be=ce[re+3],(Ee&192)===128&&(Ce&192)===128&&(be&192)===128&&(Ie=(pe&15)<<18|(Ee&63)<<12|(Ce&63)<<6|be&63,Ie>65535&&Ie<1114112&&(we=Ie))}}we===null?(we=65533,Fe=1):we>65535&&(we-=65536,xe.push(we>>>10&1023|55296),we=56320|we&1023),xe.push(we),re+=Fe}return Y(xe)}var $=4096;function Y(ce){var ee=ce.length;if(ee<=$)return String.fromCharCode.apply(String,ce);for(var ae="",xe=0;xexe)&&(ae=xe);for(var re="",pe=ee;pexe&&(ee=xe),ae<0?(ae+=xe,ae<0&&(ae=0)):ae>xe&&(ae=xe),aeae)throw new RangeError("Trying to access beyond buffer length")}d.prototype.readUintLE=d.prototype.readUIntLE=function(ee,ae,xe){ee=ee>>>0,ae=ae>>>0,xe||U(ee,ae,this.length);for(var re=this[ee],pe=1,we=0;++we>>0,ae=ae>>>0,xe||U(ee,ae,this.length);for(var re=this[ee+--ae],pe=1;ae>0&&(pe*=256);)re+=this[ee+--ae]*pe;return re},d.prototype.readUint8=d.prototype.readUInt8=function(ee,ae){return ee=ee>>>0,ae||U(ee,1,this.length),this[ee]},d.prototype.readUint16LE=d.prototype.readUInt16LE=function(ee,ae){return ee=ee>>>0,ae||U(ee,2,this.length),this[ee]|this[ee+1]<<8},d.prototype.readUint16BE=d.prototype.readUInt16BE=function(ee,ae){return ee=ee>>>0,ae||U(ee,2,this.length),this[ee]<<8|this[ee+1]},d.prototype.readUint32LE=d.prototype.readUInt32LE=function(ee,ae){return ee=ee>>>0,ae||U(ee,4,this.length),(this[ee]|this[ee+1]<<8|this[ee+2]<<16)+this[ee+3]*16777216},d.prototype.readUint32BE=d.prototype.readUInt32BE=function(ee,ae){return ee=ee>>>0,ae||U(ee,4,this.length),this[ee]*16777216+(this[ee+1]<<16|this[ee+2]<<8|this[ee+3])},d.prototype.readIntLE=function(ee,ae,xe){ee=ee>>>0,ae=ae>>>0,xe||U(ee,ae,this.length);for(var re=this[ee],pe=1,we=0;++we=pe&&(re-=Math.pow(2,8*ae)),re},d.prototype.readIntBE=function(ee,ae,xe){ee=ee>>>0,ae=ae>>>0,xe||U(ee,ae,this.length);for(var re=ae,pe=1,we=this[ee+--re];re>0&&(pe*=256);)we+=this[ee+--re]*pe;return pe*=128,we>=pe&&(we-=Math.pow(2,8*ae)),we},d.prototype.readInt8=function(ee,ae){return ee=ee>>>0,ae||U(ee,1,this.length),this[ee]&128?(255-this[ee]+1)*-1:this[ee]},d.prototype.readInt16LE=function(ee,ae){ee=ee>>>0,ae||U(ee,2,this.length);var xe=this[ee]|this[ee+1]<<8;return xe&32768?xe|4294901760:xe},d.prototype.readInt16BE=function(ee,ae){ee=ee>>>0,ae||U(ee,2,this.length);var xe=this[ee+1]|this[ee]<<8;return xe&32768?xe|4294901760:xe},d.prototype.readInt32LE=function(ee,ae){return ee=ee>>>0,ae||U(ee,4,this.length),this[ee]|this[ee+1]<<8|this[ee+2]<<16|this[ee+3]<<24},d.prototype.readInt32BE=function(ee,ae){return ee=ee>>>0,ae||U(ee,4,this.length),this[ee]<<24|this[ee+1]<<16|this[ee+2]<<8|this[ee+3]},d.prototype.readFloatLE=function(ee,ae){return ee=ee>>>0,ae||U(ee,4,this.length),u.read(this,ee,!0,23,4)},d.prototype.readFloatBE=function(ee,ae){return ee=ee>>>0,ae||U(ee,4,this.length),u.read(this,ee,!1,23,4)},d.prototype.readDoubleLE=function(ee,ae){return ee=ee>>>0,ae||U(ee,8,this.length),u.read(this,ee,!0,52,8)},d.prototype.readDoubleBE=function(ee,ae){return ee=ee>>>0,ae||U(ee,8,this.length),u.read(this,ee,!1,52,8)};function V(ce,ee,ae,xe,re,pe){if(!d.isBuffer(ce))throw new TypeError('"buffer" argument must be a Buffer instance');if(ee>re||eece.length)throw new RangeError("Index out of range")}d.prototype.writeUintLE=d.prototype.writeUIntLE=function(ee,ae,xe,re){if(ee=+ee,ae=ae>>>0,xe=xe>>>0,!re){var pe=Math.pow(2,8*xe)-1;V(this,ee,ae,xe,pe,0)}var we=1,Fe=0;for(this[ae]=ee&255;++Fe>>0,xe=xe>>>0,!re){var pe=Math.pow(2,8*xe)-1;V(this,ee,ae,xe,pe,0)}var we=xe-1,Fe=1;for(this[ae+we]=ee&255;--we>=0&&(Fe*=256);)this[ae+we]=ee/Fe&255;return ae+xe},d.prototype.writeUint8=d.prototype.writeUInt8=function(ee,ae,xe){return ee=+ee,ae=ae>>>0,xe||V(this,ee,ae,1,255,0),this[ae]=ee&255,ae+1},d.prototype.writeUint16LE=d.prototype.writeUInt16LE=function(ee,ae,xe){return ee=+ee,ae=ae>>>0,xe||V(this,ee,ae,2,65535,0),this[ae]=ee&255,this[ae+1]=ee>>>8,ae+2},d.prototype.writeUint16BE=d.prototype.writeUInt16BE=function(ee,ae,xe){return ee=+ee,ae=ae>>>0,xe||V(this,ee,ae,2,65535,0),this[ae]=ee>>>8,this[ae+1]=ee&255,ae+2},d.prototype.writeUint32LE=d.prototype.writeUInt32LE=function(ee,ae,xe){return ee=+ee,ae=ae>>>0,xe||V(this,ee,ae,4,4294967295,0),this[ae+3]=ee>>>24,this[ae+2]=ee>>>16,this[ae+1]=ee>>>8,this[ae]=ee&255,ae+4},d.prototype.writeUint32BE=d.prototype.writeUInt32BE=function(ee,ae,xe){return ee=+ee,ae=ae>>>0,xe||V(this,ee,ae,4,4294967295,0),this[ae]=ee>>>24,this[ae+1]=ee>>>16,this[ae+2]=ee>>>8,this[ae+3]=ee&255,ae+4},d.prototype.writeIntLE=function(ee,ae,xe,re){if(ee=+ee,ae=ae>>>0,!re){var pe=Math.pow(2,8*xe-1);V(this,ee,ae,xe,pe-1,-pe)}var we=0,Fe=1,Ee=0;for(this[ae]=ee&255;++we>0)-Ee&255;return ae+xe},d.prototype.writeIntBE=function(ee,ae,xe,re){if(ee=+ee,ae=ae>>>0,!re){var pe=Math.pow(2,8*xe-1);V(this,ee,ae,xe,pe-1,-pe)}var we=xe-1,Fe=1,Ee=0;for(this[ae+we]=ee&255;--we>=0&&(Fe*=256);)ee<0&&Ee===0&&this[ae+we+1]!==0&&(Ee=1),this[ae+we]=(ee/Fe>>0)-Ee&255;return ae+xe},d.prototype.writeInt8=function(ee,ae,xe){return ee=+ee,ae=ae>>>0,xe||V(this,ee,ae,1,127,-128),ee<0&&(ee=255+ee+1),this[ae]=ee&255,ae+1},d.prototype.writeInt16LE=function(ee,ae,xe){return ee=+ee,ae=ae>>>0,xe||V(this,ee,ae,2,32767,-32768),this[ae]=ee&255,this[ae+1]=ee>>>8,ae+2},d.prototype.writeInt16BE=function(ee,ae,xe){return ee=+ee,ae=ae>>>0,xe||V(this,ee,ae,2,32767,-32768),this[ae]=ee>>>8,this[ae+1]=ee&255,ae+2},d.prototype.writeInt32LE=function(ee,ae,xe){return ee=+ee,ae=ae>>>0,xe||V(this,ee,ae,4,2147483647,-2147483648),this[ae]=ee&255,this[ae+1]=ee>>>8,this[ae+2]=ee>>>16,this[ae+3]=ee>>>24,ae+4},d.prototype.writeInt32BE=function(ee,ae,xe){return ee=+ee,ae=ae>>>0,xe||V(this,ee,ae,4,2147483647,-2147483648),ee<0&&(ee=4294967295+ee+1),this[ae]=ee>>>24,this[ae+1]=ee>>>16,this[ae+2]=ee>>>8,this[ae+3]=ee&255,ae+4};function X(ce,ee,ae,xe,re,pe){if(ae+xe>ce.length)throw new RangeError("Index out of range");if(ae<0)throw new RangeError("Index out of range")}function G(ce,ee,ae,xe,re){return ee=+ee,ae=ae>>>0,re||X(ce,ee,ae,4,34028234663852886e22,-34028234663852886e22),u.write(ce,ee,ae,xe,23,4),ae+4}d.prototype.writeFloatLE=function(ee,ae,xe){return G(this,ee,ae,!0,xe)},d.prototype.writeFloatBE=function(ee,ae,xe){return G(this,ee,ae,!1,xe)};function H(ce,ee,ae,xe,re){return ee=+ee,ae=ae>>>0,re||X(ce,ee,ae,8,17976931348623157e292,-17976931348623157e292),u.write(ce,ee,ae,xe,52,8),ae+8}d.prototype.writeDoubleLE=function(ee,ae,xe){return H(this,ee,ae,!0,xe)},d.prototype.writeDoubleBE=function(ee,ae,xe){return H(this,ee,ae,!1,xe)},d.prototype.copy=function(ee,ae,xe,re){if(!d.isBuffer(ee))throw new TypeError("argument should be a Buffer");if(xe||(xe=0),!re&&re!==0&&(re=this.length),ae>=ee.length&&(ae=ee.length),ae||(ae=0),re>0&&re=this.length)throw new RangeError("Index out of range");if(re<0)throw new RangeError("sourceEnd out of bounds");re>this.length&&(re=this.length),ee.length-ae>>0,xe=xe===void 0?this.length:xe>>>0,ee||(ee=0);var we;if(typeof ee=="number")for(we=ae;we55295&&ae<57344){if(!re){if(ae>56319){(ee-=3)>-1&&pe.push(239,191,189);continue}else if(we+1===xe){(ee-=3)>-1&&pe.push(239,191,189);continue}re=ae;continue}if(ae<56320){(ee-=3)>-1&&pe.push(239,191,189),re=ae;continue}ae=(re-55296<<10|ae-56320)+65536}else re&&(ee-=3)>-1&&pe.push(239,191,189);if(re=null,ae<128){if((ee-=1)<0)break;pe.push(ae)}else if(ae<2048){if((ee-=2)<0)break;pe.push(ae>>6|192,ae&63|128)}else if(ae<65536){if((ee-=3)<0)break;pe.push(ae>>12|224,ae>>6&63|128,ae&63|128)}else if(ae<1114112){if((ee-=4)<0)break;pe.push(ae>>18|240,ae>>12&63|128,ae>>6&63|128,ae&63|128)}else throw new Error("Invalid code point")}return pe}function ge(ce){for(var ee=[],ae=0;ae>8,re=ae%256,pe.push(re),pe.push(xe);return pe}function _e(ce){return l.toByteArray(te(ce))}function he(ce,ee,ae,xe){for(var re=0;re=ee.length||re>=ce.length);++re)ee[re+ae]=ce[re];return re}function oe(ce,ee){return ce instanceof ee||ce!=null&&ce.constructor!=null&&ce.constructor.name!=null&&ce.constructor.name===ee.name}function Me(ce){return ce!==ce}var ye=(function(){for(var ce="0123456789abcdef",ee=new Array(256),ae=0;ae<16;++ae)for(var xe=ae*16,re=0;re<16;++re)ee[xe+re]=ce[ae]+ce[re];return ee})()},2538(n,a,o){"use strict";var s=o(8902),l=o(5542),u=o(2272),c=o(5023);n.exports=v;function f(m){return[Math.min(m[0],m[1]),Math.max(m[0],m[1])]}function h(m,g){return m[0]-g[0]||m[1]-g[1]}function p(m){return m.map(f).sort(h)}function d(m,g,w){return g in m?m[g]:w}function v(m,g,w){Array.isArray(g)?(w=w||{},g=g||[]):(w=g||{},g=[]);var _=!!d(w,"delaunay",!0),b=!!d(w,"interior",!0),S=!!d(w,"exterior",!0),x=!!d(w,"infinity",!1);if(!b&&!S||m.length===0)return[];var T=s(m,g);if(_||b!==S||x){for(var A=l(m.length,p(g)),y=0;y0;){for(var _=p.pop(),m=p.pop(),b=-1,S=-1,g=v[m],T=1;T=0||(h.flip(m,_),u(f,h,p,b,m,S),u(f,h,p,m,S,b),u(f,h,p,S,_,b),u(f,h,p,_,b,S))}}},5023(n,a,o){"use strict";var s=o(2478);n.exports=p;function l(d,v,m,g,w,_,b){this.cells=d,this.neighbor=v,this.flags=g,this.constraint=m,this.active=w,this.next=_,this.boundary=b}var u=l.prototype;function c(d,v){return d[0]-v[0]||d[1]-v[1]||d[2]-v[2]}u.locate=(function(){var d=[0,0,0];return function(v,m,g){var w=v,_=m,b=g;return m0||b.length>0;){for(;_.length>0;){var y=_.pop();if(S[y]!==-w){S[y]=w;for(var E=x[y],M=0;M<3;++M){var C=A[3*y+M];C>=0&&S[C]===0&&(T[3*y+M]?b.push(C):(_.push(C),S[C]=w))}}}var k=b;b=_,_=k,b.length=0,w=-w}var D=h(x,S,v);return m?D.concat(g.boundary):D}},8902(n,a,o){"use strict";var s=o(2478),l=o(3250)[3],u=0,c=1,f=2;n.exports=b;function h(S,x,T,A,y){this.a=S,this.b=x,this.idx=T,this.lowerIds=A,this.upperIds=y}function p(S,x,T,A){this.a=S,this.b=x,this.type=T,this.idx=A}function d(S,x){var T=S.a[0]-x.a[0]||S.a[1]-x.a[1]||S.type-x.type;return T||S.type!==u&&(T=l(S.a,S.b,x.b),T)?T:S.idx-x.idx}function v(S,x){return l(S.a,S.b,x)}function m(S,x,T,A,y){for(var E=s.lt(x,A,v),M=s.gt(x,A,v),C=E;C1&&l(T[D[P-2]],T[D[P-1]],A)>0;)S.push([D[P-1],D[P-2],y]),P-=1;D.length=P,D.push(y);for(var L=k.upperIds,P=L.length;P>1&&l(T[L[P-2]],T[L[P-1]],A)<0;)S.push([L[P-2],L[P-1],y]),P-=1;L.length=P,L.push(y)}}function g(S,x){var T;return S.a[0]k[0]&&y.push(new p(k,C,f,E),new p(C,k,c,E))}y.sort(d);for(var D=y[0].a[0]-(1+Math.abs(y[0].a[0]))*Math.pow(2,-52),L=[new h([D,1],[D,0],-1,[],[],[],[])],P=[],E=0,R=y.length;E=0}})(),u.removeTriangle=function(h,p,d){var v=this.stars;c(v[h],p,d),c(v[p],d,h),c(v[d],h,p)},u.addTriangle=function(h,p,d){var v=this.stars;v[h].push(p,d),v[p].push(d,h),v[d].push(h,p)},u.opposite=function(h,p){for(var d=this.stars[p],v=1,m=d.length;v=0;--F){var Q=P[F];I=Q[0];var U=D[I],V=U[0],X=U[1],G=k[V],H=k[X];if((G[0]-H[0]||G[1]-H[1])<0){var J=V;V=X,X=J}U[0]=V;var te=U[1]=Q[1],ue;for(R&&(ue=U[2]);F>0&&P[F-1][0]===I;){var Q=P[--F],ge=Q[1];R?D.push([te,ge,ue]):D.push([te,ge]),te=ge}R?D.push([te,X,ue]):D.push([te,X])}return B}function x(k,D,L){for(var P=D.length,R=new s(P),F=[],I=0;ID[2]?1:0)}function y(k,D,L){if(k.length!==0){if(D)for(var P=0;P0||I.length>0}function C(k,D,L){var P;if(L){P=D;for(var R=new Array(D.length),F=0;FS+1)throw new Error(_+" map requires nshades to be at least size "+w.length);Array.isArray(p.alpha)?p.alpha.length!==2?x=[1,1]:x=p.alpha.slice():typeof p.alpha=="number"?x=[p.alpha,p.alpha]:x=[1,1],d=w.map(function(C){return Math.round(C.index*S)}),x[0]=Math.min(Math.max(x[0],0),1),x[1]=Math.min(Math.max(x[1],0),1);var A=w.map(function(C,k){var D=w[k].index,L=w[k].rgb.slice();return L.length===4&&L[3]>=0&&L[3]<=1||(L[3]=x[0]+(x[1]-x[0])*D),L}),y=[];for(T=0;T=0}function p(d,v,m,g){var w=s(v,m,g);if(w===0){var _=l(s(d,v,m)),b=l(s(d,v,g));if(_===b){if(_===0){var S=h(d,v,m),x=h(d,v,g);return S===x?0:S?1:-1}return 0}else{if(b===0)return _>0||h(d,v,g)?-1:1;if(_===0)return b>0||h(d,v,m)?1:-1}return l(b-_)}var T=s(d,v,m);if(T>0)return w>0&&s(d,v,g)>0?1:-1;if(T<0)return w>0||s(d,v,g)>0?1:-1;var A=s(d,v,g);return A>0||h(d,v,m)?1:-1}},8572(n){"use strict";n.exports=function(o){return o<0?-1:o>0?1:0}},8507(n){n.exports=s;var a=Math.min;function o(l,u){return l-u}function s(l,u){var c=l.length,f=l.length-u.length;if(f)return f;switch(c){case 0:return 0;case 1:return l[0]-u[0];case 2:return l[0]+l[1]-u[0]-u[1]||a(l[0],l[1])-a(u[0],u[1]);case 3:var h=l[0]+l[1],p=u[0]+u[1];if(f=h+l[2]-(p+u[2]),f)return f;var d=a(l[0],l[1]),v=a(u[0],u[1]);return a(d,l[2])-a(v,u[2])||a(d+l[2],h)-a(v+u[2],p);case 4:var m=l[0],g=l[1],w=l[2],_=l[3],b=u[0],S=u[1],x=u[2],T=u[3];return m+g+w+_-(b+S+x+T)||a(m,g,w,_)-a(b,S,x,T,b)||a(m+g,m+w,m+_,g+w,g+_,w+_)-a(b+S,b+x,b+T,S+x,S+T,x+T)||a(m+g+w,m+g+_,m+w+_,g+w+_)-a(b+S+x,b+S+T,b+x+T,S+x+T);default:for(var A=l.slice().sort(o),y=u.slice().sort(o),E=0;Eo[l][0]&&(l=u);return sl?[[l],[s]]:[[s]]}},4750(n,a,o){"use strict";n.exports=l;var s=o(3090);function l(u){var c=s(u),f=c.length;if(f<=2)return[];for(var h=new Array(f),p=c[f-1],d=0;d=p[b]&&(_+=1);g[w]=_}}return h}function f(h,p){try{return s(h,!0)}catch(g){var d=l(h);if(d.length<=p)return[];var v=u(h,d),m=s(v,!0);return c(m,d)}}},4769(n){"use strict";function a(s,l,u,c,f,h){var p=6*f*f-6*f,d=3*f*f-4*f+1,v=-6*f*f+6*f,m=3*f*f-2*f;if(s.length){h||(h=new Array(s.length));for(var g=s.length-1;g>=0;--g)h[g]=p*s[g]+d*l[g]+v*u[g]+m*c[g];return h}return p*s+d*l+v*u[g]+m*c}function o(s,l,u,c,f,h){var p=f-1,d=f*f,v=p*p,m=(1+2*f)*v,g=f*v,w=d*(3-2*f),_=d*p;if(s.length){h||(h=new Array(s.length));for(var b=s.length-1;b>=0;--b)h[b]=m*s[b]+g*l[b]+w*u[b]+_*c[b];return h}return m*s+g*l+w*u+_*c}n.exports=o,n.exports.derivative=a},7642(n,a,o){"use strict";var s=o(8954),l=o(1682);n.exports=h;function u(p,d){this.point=p,this.index=d}function c(p,d){for(var v=p.point,m=d.point,g=v.length,w=0;w=2)return!1;L[R]=F}return!0}):D=D.filter(function(L){for(var P=0;P<=m;++P){var R=E[L[P]];if(R<0)return!1;L[P]=R}return!0}),m&1)for(var _=0;_>>31},n.exports.exponent=function(w){var _=n.exports.hi(w);return(_<<1>>>21)-1023},n.exports.fraction=function(w){var _=n.exports.lo(w),b=n.exports.hi(w),S=b&(1<<20)-1;return b&2146435072&&(S+=1048576),[_,S]},n.exports.denormalized=function(w){var _=n.exports.hi(w);return!(_&2146435072)}},1338(n){"use strict";function a(l,u,c){var f=l[c]|0;if(f<=0)return[];var h=new Array(f),p;if(c===l.length-1)for(p=0;p0)return o(l|0,u);break;case"object":if(typeof l.length=="number")return a(l,u,0);break}return[]}n.exports=s},3134(n,a,o){"use strict";n.exports=l;var s=o(1682);function l(u,c){var f=u.length;if(typeof c!="number"){c=0;for(var h=0;h=m-1)for(var T=_.length-1,y=d-v[m-1],A=0;A=m-1)for(var x=_.length-1,T=d-v[m-1],A=0;A=0;--m)if(d[--v])return!1;return!0},f.jump=function(d){var v=this.lastT(),m=this.dimension;if(!(d0;--A)g.push(u(S[A-1],x[A-1],arguments[A])),w.push(0)}},f.push=function(d){var v=this.lastT(),m=this.dimension;if(!(d1e-6?1/b:0;this._time.push(d);for(var y=m;y>0;--y){var E=u(x[y-1],T[y-1],arguments[y]);g.push(E),w.push((E-g[_++])*A)}}},f.set=function(d){var v=this.dimension;if(!(d0;--S)m.push(u(_[S-1],b[S-1],arguments[S])),g.push(0)}},f.move=function(d){var v=this.lastT(),m=this.dimension;if(!(d<=v||arguments.length!==m+1)){var g=this._state,w=this._velocity,_=g.length-this.dimension,b=this.bounds,S=b[0],x=b[1],T=d-v,A=T>1e-6?1/T:0;this._time.push(d);for(var y=m;y>0;--y){var E=arguments[y];g.push(u(S[y-1],x[y-1],g[_++]+E)),w.push(E*A)}}},f.idle=function(d){var v=this.lastT();if(!(d=0;--A)g.push(u(S[A],x[A],g[_]+T*w[_])),w.push(0),_+=1}};function h(d){for(var v=new Array(d),m=0;m=0;--k){var y=E[k];M[k]<=0?E[k]=new s(y._color,y.key,y.value,E[k+1],y.right,y._count+1):E[k]=new s(y._color,y.key,y.value,y.left,E[k+1],y._count+1)}for(var k=E.length-1;k>1;--k){var D=E[k-1],y=E[k];if(D._color===o||y._color===o)break;var L=E[k-2];if(L.left===D)if(D.left===y){var P=L.right;if(P&&P._color===a)D._color=o,L.right=u(o,P),L._color=a,k-=1;else{if(L._color=a,L.left=D.right,D._color=o,D.right=L,E[k-2]=D,E[k-1]=y,c(L),c(D),k>=3){var R=E[k-3];R.left===L?R.left=D:R.right=D}break}}else{var P=L.right;if(P&&P._color===a)D._color=o,L.right=u(o,P),L._color=a,k-=1;else{if(D.right=y.left,L._color=a,L.left=y.right,y._color=o,y.left=D,y.right=L,E[k-2]=y,E[k-1]=D,c(L),c(D),c(y),k>=3){var R=E[k-3];R.left===L?R.left=y:R.right=y}break}}else if(D.right===y){var P=L.left;if(P&&P._color===a)D._color=o,L.left=u(o,P),L._color=a,k-=1;else{if(L._color=a,L.right=D.left,D._color=o,D.left=L,E[k-2]=D,E[k-1]=y,c(L),c(D),k>=3){var R=E[k-3];R.right===L?R.right=D:R.left=D}break}}else{var P=L.left;if(P&&P._color===a)D._color=o,L.left=u(o,P),L._color=a,k-=1;else{if(D.left=y.right,L._color=a,L.right=y.left,y._color=o,y.right=D,y.left=L,E[k-2]=y,E[k-1]=D,c(L),c(D),c(y),k>=3){var R=E[k-3];R.right===L?R.right=y:R.left=y}break}}}return E[0]._color=o,new f(A,E[0])};function p(x,T){if(T.left){var A=p(x,T.left);if(A)return A}var A=x(T.key,T.value);if(A)return A;if(T.right)return p(x,T.right)}function d(x,T,A,y){var E=T(x,y.key);if(E<=0){if(y.left){var M=d(x,T,A,y.left);if(M)return M}var M=A(y.key,y.value);if(M)return M}if(y.right)return d(x,T,A,y.right)}function v(x,T,A,y,E){var M=A(x,E.key),C=A(T,E.key),k;if(M<=0&&(E.left&&(k=v(x,T,A,y,E.left),k)||C>0&&(k=y(E.key,E.value),k)))return k;if(C>0&&E.right)return v(x,T,A,y,E.right)}h.forEach=function(T,A,y){if(this.root)switch(arguments.length){case 1:return p(T,this.root);case 2:return d(A,this._compare,T,this.root);case 3:return this._compare(A,y)>=0?void 0:v(A,y,this._compare,T,this.root)}},Object.defineProperty(h,"begin",{get:function(){for(var x=[],T=this.root;T;)x.push(T),T=T.left;return new m(this,x)}}),Object.defineProperty(h,"end",{get:function(){for(var x=[],T=this.root;T;)x.push(T),T=T.right;return new m(this,x)}}),h.at=function(x){if(x<0)return new m(this,[]);for(var T=this.root,A=[];;){if(A.push(T),T.left){if(x=T.right._count)break;T=T.right}else break}return new m(this,[])},h.ge=function(x){for(var T=this._compare,A=this.root,y=[],E=0;A;){var M=T(x,A.key);y.push(A),M<=0&&(E=y.length),M<=0?A=A.left:A=A.right}return y.length=E,new m(this,y)},h.gt=function(x){for(var T=this._compare,A=this.root,y=[],E=0;A;){var M=T(x,A.key);y.push(A),M<0&&(E=y.length),M<0?A=A.left:A=A.right}return y.length=E,new m(this,y)},h.lt=function(x){for(var T=this._compare,A=this.root,y=[],E=0;A;){var M=T(x,A.key);y.push(A),M>0&&(E=y.length),M<=0?A=A.left:A=A.right}return y.length=E,new m(this,y)},h.le=function(x){for(var T=this._compare,A=this.root,y=[],E=0;A;){var M=T(x,A.key);y.push(A),M>=0&&(E=y.length),M<0?A=A.left:A=A.right}return y.length=E,new m(this,y)},h.find=function(x){for(var T=this._compare,A=this.root,y=[];A;){var E=T(x,A.key);if(y.push(A),E===0)return new m(this,y);E<=0?A=A.left:A=A.right}return new m(this,[])},h.remove=function(x){var T=this.find(x);return T?T.remove():this},h.get=function(x){for(var T=this._compare,A=this.root;A;){var y=T(x,A.key);if(y===0)return A.value;y<=0?A=A.left:A=A.right}};function m(x,T){this.tree=x,this._stack=T}var g=m.prototype;Object.defineProperty(g,"valid",{get:function(){return this._stack.length>0}}),Object.defineProperty(g,"node",{get:function(){return this._stack.length>0?this._stack[this._stack.length-1]:null},enumerable:!0}),g.clone=function(){return new m(this.tree,this._stack.slice())};function w(x,T){x.key=T.key,x.value=T.value,x.left=T.left,x.right=T.right,x._color=T._color,x._count=T._count}function _(x){for(var T,A,y,E,M=x.length-1;M>=0;--M){if(T=x[M],M===0){T._color=o;return}if(A=x[M-1],A.left===T){if(y=A.right,y.right&&y.right._color===a){if(y=A.right=l(y),E=y.right=l(y.right),A.right=y.left,y.left=A,y.right=E,y._color=A._color,T._color=o,A._color=o,E._color=o,c(A),c(y),M>1){var C=x[M-2];C.left===A?C.left=y:C.right=y}x[M-1]=y;return}else if(y.left&&y.left._color===a){if(y=A.right=l(y),E=y.left=l(y.left),A.right=E.left,y.left=E.right,E.left=A,E.right=y,E._color=A._color,A._color=o,y._color=o,T._color=o,c(A),c(y),c(E),M>1){var C=x[M-2];C.left===A?C.left=E:C.right=E}x[M-1]=E;return}if(y._color===o)if(A._color===a){A._color=o,A.right=u(a,y);return}else{A.right=u(a,y);continue}else{if(y=l(y),A.right=y.left,y.left=A,y._color=A._color,A._color=a,c(A),c(y),M>1){var C=x[M-2];C.left===A?C.left=y:C.right=y}x[M-1]=y,x[M]=A,M+11){var C=x[M-2];C.right===A?C.right=y:C.left=y}x[M-1]=y;return}else if(y.right&&y.right._color===a){if(y=A.left=l(y),E=y.right=l(y.right),A.left=E.right,y.right=E.left,E.right=A,E.left=y,E._color=A._color,A._color=o,y._color=o,T._color=o,c(A),c(y),c(E),M>1){var C=x[M-2];C.right===A?C.right=E:C.left=E}x[M-1]=E;return}if(y._color===o)if(A._color===a){A._color=o,A.left=u(a,y);return}else{A.left=u(a,y);continue}else{if(y=l(y),A.left=y.right,y.right=A,y._color=A._color,A._color=a,c(A),c(y),M>1){var C=x[M-2];C.right===A?C.right=y:C.left=y}x[M-1]=y,x[M]=A,M+1=0;--y){var A=x[y];A.left===x[y+1]?T[y]=new s(A._color,A.key,A.value,T[y+1],A.right,A._count):T[y]=new s(A._color,A.key,A.value,A.left,T[y+1],A._count)}if(A=T[T.length-1],A.left&&A.right){var E=T.length;for(A=A.left;A.right;)T.push(A),A=A.right;var M=T[E-1];T.push(new s(A._color,M.key,M.value,A.left,A.right,A._count)),T[E-1].key=A.key,T[E-1].value=A.value;for(var y=T.length-2;y>=E;--y)A=T[y],T[y]=new s(A._color,A.key,A.value,A.left,T[y+1],A._count);T[E-1].left=T[E]}if(A=T[T.length-1],A._color===a){var C=T[T.length-2];C.left===A?C.left=null:C.right===A&&(C.right=null),T.pop();for(var y=0;y0)return this._stack[this._stack.length-1].key},enumerable:!0}),Object.defineProperty(g,"value",{get:function(){if(this._stack.length>0)return this._stack[this._stack.length-1].value},enumerable:!0}),Object.defineProperty(g,"index",{get:function(){var x=0,T=this._stack;if(T.length===0){var A=this.tree.root;return A?A._count:0}else T[T.length-1].left&&(x=T[T.length-1].left._count);for(var y=T.length-2;y>=0;--y)T[y+1]===T[y].right&&(++x,T[y].left&&(x+=T[y].left._count));return x},enumerable:!0}),g.next=function(){var x=this._stack;if(x.length!==0){var T=x[x.length-1];if(T.right)for(T=T.right;T;)x.push(T),T=T.left;else for(x.pop();x.length>0&&x[x.length-1].right===T;)T=x[x.length-1],x.pop()}},Object.defineProperty(g,"hasNext",{get:function(){var x=this._stack;if(x.length===0)return!1;if(x[x.length-1].right)return!0;for(var T=x.length-1;T>0;--T)if(x[T-1].left===x[T])return!0;return!1}}),g.update=function(x){var T=this._stack;if(T.length===0)throw new Error("Can't update empty node!");var A=new Array(T.length),y=T[T.length-1];A[A.length-1]=new s(y._color,y.key,x,y.left,y.right,y._count);for(var E=T.length-2;E>=0;--E)y=T[E],y.left===T[E+1]?A[E]=new s(y._color,y.key,y.value,A[E+1],y.right,y._count):A[E]=new s(y._color,y.key,y.value,y.left,A[E+1],y._count);return new f(this.tree._compare,A[0])},g.prev=function(){var x=this._stack;if(x.length!==0){var T=x[x.length-1];if(T.left)for(T=T.left;T;)x.push(T),T=T.right;else for(x.pop();x.length>0&&x[x.length-1].left===T;)T=x[x.length-1],x.pop()}},Object.defineProperty(g,"hasPrev",{get:function(){var x=this._stack;if(x.length===0)return!1;if(x[x.length-1].left)return!0;for(var T=x.length-1;T>0;--T)if(x[T-1].right===x[T])return!0;return!1}});function b(x,T){return xT?1:0}function S(x){return new f(x||b,null)}},3837(n,a,o){"use strict";n.exports=k;var s=o(4935),l=o(501),u=o(5304),c=o(6429),f=o(6444),h=new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]),p=ArrayBuffer,d=DataView;function v(D){return p.isView(D)&&!(D instanceof d)}function m(D){return Array.isArray(D)||v(D)}function g(D,L){return D[0]=L[0],D[1]=L[1],D[2]=L[2],D}function w(D){this.gl=D,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.tickFontStyle=["normal","normal","normal"],this.tickFontWeight=["normal","normal","normal"],this.tickFontVariant=["normal","normal","normal"],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","sans-serif","sans-serif"],this.labelFontStyle=["normal","normal","normal"],this.labelFontWeight=["normal","normal","normal"],this.labelFontVariant=["normal","normal","normal"],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=u(D)}var _=w.prototype;_.update=function(D){D=D||{};function L(V,X,G){if(G in D){var H=D[G],J=this[G],te;(V?m(H)&&m(H[0]):m(H))?this[G]=te=[X(H[0]),X(H[1]),X(H[2])]:this[G]=te=[X(H),X(H),X(H)];for(var ue=0;ue<3;++ue)if(te[ue]!==J[ue])return!0}return!1}var P=L.bind(this,!1,Number),R=L.bind(this,!1,Boolean),F=L.bind(this,!1,String),I=L.bind(this,!0,function(V){if(m(V)){if(V.length===3)return[+V[0],+V[1],+V[2],1];if(V.length===4)return[+V[0],+V[1],+V[2],+V[3]]}return[0,0,0,1]}),B,O=!1,$=!1;if("bounds"in D)for(var Y=D.bounds,K=0;K<2;++K)for(var j=0;j<3;++j)Y[K][j]!==this.bounds[K][j]&&($=!0),this.bounds[K][j]=Y[K][j];if("ticks"in D){B=D.ticks,O=!0,this.autoTicks=!1;for(var K=0;K<3;++K)this.tickSpacing[K]=0}else P("tickSpacing")&&(this.autoTicks=!0,$=!0);if(this._firstInit&&("ticks"in D||"tickSpacing"in D||(this.autoTicks=!0),$=!0,O=!0,this._firstInit=!1),$&&this.autoTicks&&(B=f.create(this.bounds,this.tickSpacing),O=!0),O){for(var K=0;K<3;++K)B[K].sort(function(X,G){return X.x-G.x});f.equal(B,this.ticks)?O=!1:this.ticks=B}R("tickEnable"),F("tickFont")&&(O=!0),F("tickFontStyle")&&(O=!0),F("tickFontWeight")&&(O=!0),F("tickFontVariant")&&(O=!0),P("tickSize"),P("tickAngle"),P("tickPad"),I("tickColor");var q=F("labels");F("labelFont")&&(q=!0),F("labelFontStyle")&&(q=!0),F("labelFontWeight")&&(q=!0),F("labelFontVariant")&&(q=!0),R("labelEnable"),P("labelSize"),P("labelPad"),I("labelColor"),R("lineEnable"),R("lineMirror"),P("lineWidth"),I("lineColor"),R("lineTickEnable"),R("lineTickMirror"),P("lineTickLength"),P("lineTickWidth"),I("lineTickColor"),R("gridEnable"),P("gridWidth"),I("gridColor"),R("zeroEnable"),I("zeroLineColor"),P("zeroLineWidth"),R("backgroundEnable"),I("backgroundColor");var Q=[{family:this.labelFont[0],style:this.labelFontStyle[0],weight:this.labelFontWeight[0],variant:this.labelFontVariant[0]},{family:this.labelFont[1],style:this.labelFontStyle[1],weight:this.labelFontWeight[1],variant:this.labelFontVariant[1]},{family:this.labelFont[2],style:this.labelFontStyle[2],weight:this.labelFontWeight[2],variant:this.labelFontVariant[2]}],U=[{family:this.tickFont[0],style:this.tickFontStyle[0],weight:this.tickFontWeight[0],variant:this.tickFontVariant[0]},{family:this.tickFont[1],style:this.tickFontStyle[1],weight:this.tickFontWeight[1],variant:this.tickFontVariant[1]},{family:this.tickFont[2],style:this.tickFontStyle[2],weight:this.tickFontWeight[2],variant:this.tickFontVariant[2]}];this._text?this._text&&(q||O)&&this._text.update(this.bounds,this.labels,Q,this.ticks,U):this._text=s(this.gl,this.bounds,this.labels,Q,this.ticks,U),this._lines&&O&&(this._lines.dispose(),this._lines=null),this._lines||(this._lines=l(this.gl,this.bounds,this.ticks))};function b(){this.primalOffset=[0,0,0],this.primalMinor=[0,0,0],this.mirrorOffset=[0,0,0],this.mirrorMinor=[0,0,0]}var S=[new b,new b,new b];function x(D,L,P,R,F){for(var I=D.primalOffset,B=D.primalMinor,O=D.mirrorOffset,$=D.mirrorMinor,Y=R[L],K=0;K<3;++K)if(L!==K){var j=I,q=O,Q=B,U=$;Y&1<0?(Q[K]=-1,U[K]=0):(Q[K]=0,U[K]=1)}}var T=[0,0,0],A={model:h,view:h,projection:h,_ortho:!1};_.isOpaque=function(){return!0},_.isTransparent=function(){return!1},_.drawTransparent=function(D){};var y=0,E=[0,0,0],M=[0,0,0],C=[0,0,0];_.draw=function(D){D=D||A;for(var G=this.gl,L=D.model||h,P=D.view||h,R=D.projection||h,F=this.bounds,I=D._ortho||!1,B=c(L,P,R,F,I),O=B.cubeEdges,$=B.axis,Y=P[12],K=P[13],j=P[14],q=P[15],Q=I?2:1,U=Q*this.pixelRatio*(R[3]*Y+R[7]*K+R[11]*j+R[15]*q)/G.drawingBufferHeight,V=0;V<3;++V)this.lastCubeProps.cubeEdges[V]=O[V],this.lastCubeProps.axis[V]=$[V];for(var X=S,V=0;V<3;++V)x(S[V],V,this.bounds,O,$);for(var G=this.gl,H=T,V=0;V<3;++V)this.backgroundEnable[V]?H[V]=$[V]:H[V]=0;this._background.draw(L,P,R,F,H,this.backgroundColor),this._lines.bind(L,P,R,this);for(var V=0;V<3;++V){var J=[0,0,0];$[V]>0?J[V]=F[1][V]:J[V]=F[0][V];for(var te=0;te<2;++te){var ue=(V+1+te)%3,ge=(V+1+(te^1))%3;this.gridEnable[ue]&&this._lines.drawGrid(ue,ge,this.bounds,J,this.gridColor[ue],this.gridWidth[ue]*this.pixelRatio)}for(var te=0;te<2;++te){var ue=(V+1+te)%3,ge=(V+1+(te^1))%3;this.zeroEnable[ge]&&Math.min(F[0][ge],F[1][ge])<=0&&Math.max(F[0][ge],F[1][ge])>=0&&this._lines.drawZero(ue,ge,this.bounds,J,this.zeroLineColor[ge],this.zeroLineWidth[ge]*this.pixelRatio)}}for(var V=0;V<3;++V){this.lineEnable[V]&&this._lines.drawAxisLine(V,this.bounds,X[V].primalOffset,this.lineColor[V],this.lineWidth[V]*this.pixelRatio),this.lineMirror[V]&&this._lines.drawAxisLine(V,this.bounds,X[V].mirrorOffset,this.lineColor[V],this.lineWidth[V]*this.pixelRatio);for(var ke=g(E,X[V].primalMinor),_e=g(M,X[V].mirrorMinor),he=this.lineTickLength,te=0;te<3;++te){var oe=U/L[5*te];ke[te]*=he[te]*oe,_e[te]*=he[te]*oe}this.lineTickEnable[V]&&this._lines.drawAxisTicks(V,X[V].primalOffset,ke,this.lineTickColor[V],this.lineTickWidth[V]*this.pixelRatio),this.lineTickMirror[V]&&this._lines.drawAxisTicks(V,X[V].mirrorOffset,_e,this.lineTickColor[V],this.lineTickWidth[V]*this.pixelRatio)}this._lines.unbind(),this._text.bind(L,P,R,this.pixelRatio);var Me,ye=.5,ce,ee;function ae(Ee){ee=[0,0,0],ee[Ee]=1}function xe(Ee,Ce,be){var Ie=(Ee+1)%3,Oe=(Ee+2)%3,Qe=Ce[Ie],et=Ce[Oe],bt=be[Ie],ut=be[Oe];if(Qe>0&&ut>0){ae(Ie);return}else if(Qe>0&&ut<0){ae(Ie);return}else if(Qe<0&&ut>0){ae(Ie);return}else if(Qe<0&&ut<0){ae(Ie);return}else if(et>0&&bt>0){ae(Oe);return}else if(et>0&&bt<0){ae(Oe);return}else if(et<0&&bt>0){ae(Oe);return}else if(et<0&&bt<0){ae(Oe);return}}for(var V=0;V<3;++V){for(var re=X[V].primalMinor,pe=X[V].mirrorMinor,we=g(C,X[V].primalOffset),te=0;te<3;++te)this.lineTickEnable[V]&&(we[te]+=U*re[te]*Math.max(this.lineTickLength[te],0)/L[5*te]);var Fe=[0,0,0];if(Fe[V]=1,this.tickEnable[V]){this.tickAngle[V]===-3600?(this.tickAngle[V]=0,this.tickAlign[V]="auto"):this.tickAlign[V]=-1,ce=1,Me=[this.tickAlign[V],ye,ce],Me[0]==="auto"?Me[0]=y:Me[0]=parseInt(""+Me[0]),ee=[0,0,0],xe(V,re,pe);for(var te=0;te<3;++te)we[te]+=U*re[te]*this.tickPad[te]/L[5*te];this._text.drawTicks(V,this.tickSize[V],this.tickAngle[V],we,this.tickColor[V],Fe,ee,Me)}if(this.labelEnable[V]){ce=0,ee=[0,0,0],this.labels[V].length>4&&(ae(V),ce=1),Me=[this.labelAlign[V],ye,ce],Me[0]==="auto"?Me[0]=y:Me[0]=parseInt(""+Me[0]);for(var te=0;te<3;++te)we[te]+=U*re[te]*this.labelPad[te]/L[5*te];we[V]+=.5*(F[0][V]+F[1][V]),this._text.drawLabel(V,this.labelSize[V],this.labelAngle[V],we,this.labelColor[V],[0,0,0],ee,Me)}}this._text.unbind()},_.dispose=function(){this._text.dispose(),this._lines.dispose(),this._background.dispose(),this._lines=null,this._text=null,this._background=null,this.gl=null};function k(D,L){var P=new w(D);return P.update(L),P}},5304(n,a,o){"use strict";n.exports=h;var s=o(2762),l=o(8116),u=o(1879).bg;function c(p,d,v,m){this.gl=p,this.buffer=d,this.vao=v,this.shader=m}var f=c.prototype;f.draw=function(p,d,v,m,g,w){for(var _=!1,b=0;b<3;++b)_=_||g[b];if(_){var S=this.gl;S.enable(S.POLYGON_OFFSET_FILL),S.polygonOffset(1,2),this.shader.bind(),this.shader.uniforms={model:p,view:d,projection:v,bounds:m,enable:g,colors:w},this.vao.bind(),this.vao.draw(this.gl.TRIANGLES,36),this.vao.unbind(),S.disable(S.POLYGON_OFFSET_FILL)}},f.dispose=function(){this.vao.dispose(),this.buffer.dispose(),this.shader.dispose()};function h(p){for(var d=[],v=[],m=0,g=0;g<3;++g)for(var w=(g+1)%3,_=(g+2)%3,b=[0,0,0],S=[0,0,0],x=-1;x<=1;x+=2){v.push(m,m+2,m+1,m+1,m+2,m+3),b[g]=x,S[g]=x;for(var T=-1;T<=1;T+=2){b[w]=T;for(var A=-1;A<=1;A+=2)b[_]=A,d.push(b[0],b[1],b[2],S[0],S[1],S[2]),m+=1}var y=w;w=_,_=y}var E=s(p,new Float32Array(d)),M=s(p,new Uint16Array(v),p.ELEMENT_ARRAY_BUFFER),C=l(p,[{buffer:E,type:p.FLOAT,size:3,offset:0,stride:24},{buffer:E,type:p.FLOAT,size:3,offset:12,stride:24}],M),k=u(p);return k.attributes.position.location=0,k.attributes.normal.location=1,new c(p,E,C,k)}},6429(n,a,o){"use strict";n.exports=x;var s=o(8828),l=o(6760),u=o(5202),c=o(3250),f=new Array(16),h=new Array(8),p=new Array(8),d=new Array(3),v=[0,0,0];(function(){for(var T=0;T<8;++T)h[T]=[1,1,1,1],p[T]=[1,1,1]})();function m(T,A,y){for(var E=0;E<4;++E){T[E]=y[12+E];for(var M=0;M<3;++M)T[E]+=A[M]*y[4*M+E]}}var g=[[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 w(T){for(var A=0;A$&&(P|=1<$){P|=1<p[k][1])&&(X=k);for(var G=-1,k=0;k<3;++k){var H=X^1<p[J][0]&&(J=H)}}var te=_;te[0]=te[1]=te[2]=0,te[s.log2(G^X)]=X&G,te[s.log2(X^J)]=X&J;var ue=J^7;ue===P||ue===V?(ue=G^7,te[s.log2(J^ue)]=ue&J):te[s.log2(G^ue)]=ue&G;for(var ge=b,ke=P,I=0;I<3;++I)ke&1<{});function j1(){}function BRe(){return this.rgb().formatHex()}function ler(){return this.rgb().formatHex8()}function uer(){return HRe(this).formatHsl()}function qRe(){return this.rgb().formatRgb()}function k2(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=ter.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?ORe(t):r===3?new Gu(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?kI(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?kI(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=rer.exec(e))?new Gu(t[1],t[2],t[3],1):(t=ier.exec(e))?new Gu(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=ner.exec(e))?kI(t[1],t[2],t[3],t[4]):(t=aer.exec(e))?kI(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=oer.exec(e))?VRe(t[1],t[2]/100,t[3]/100,1):(t=ser.exec(e))?VRe(t[1],t[2]/100,t[3]/100,t[4]):zRe.hasOwnProperty(e)?ORe(zRe[e]):e==="transparent"?new Gu(NaN,NaN,NaN,0):null}function ORe(e){return new Gu(e>>16&255,e>>8&255,e&255,1)}function kI(e,t,r,i){return i<=0&&(e=t=r=NaN),new Gu(e,t,r,i)}function hE(e){return e instanceof j1||(e=k2(e)),e?(e=e.rgb(),new Gu(e.r,e.g,e.b,e.opacity)):new Gu}function T4(e,t,r,i){return arguments.length===1?hE(e):new Gu(e,t,r,i==null?1:i)}function Gu(e,t,r,i){this.r=+e,this.g=+t,this.b=+r,this.opacity=+i}function NRe(){return`#${x_(this.r)}${x_(this.g)}${x_(this.b)}`}function cer(){return`#${x_(this.r)}${x_(this.g)}${x_(this.b)}${x_((isNaN(this.opacity)?1:this.opacity)*255)}`}function URe(){let e=DI(this.opacity);return`${e===1?"rgb(":"rgba("}${b_(this.r)}, ${b_(this.g)}, ${b_(this.b)}${e===1?")":`, ${e})`}`}function DI(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function b_(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function x_(e){return e=b_(e),(e<16?"0":"")+e.toString(16)}function VRe(e,t,r,i){return i<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new yv(e,t,r,i)}function HRe(e){if(e instanceof yv)return new yv(e.h,e.s,e.l,e.opacity);if(e instanceof j1||(e=k2(e)),!e)return new yv;if(e instanceof yv)return e;e=e.rgb();var t=e.r/255,r=e.g/255,i=e.b/255,n=Math.min(t,r,i),a=Math.max(t,r,i),o=NaN,s=a-n,l=(a+n)/2;return s?(t===a?o=(r-i)/s+(r0&&l<1?0:o,new yv(o,s,l,e.opacity)}function dE(e,t,r,i){return arguments.length===1?HRe(e):new yv(e,t,r,i==null?1:i)}function yv(e,t,r,i){this.h=+e,this.s=+t,this.l=+r,this.opacity=+i}function GRe(e){return e=(e||0)%360,e<0?e+360:e}function CI(e){return Math.max(0,Math.min(1,e||0))}function OK(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}var E2,__,w4,fE,H1,ter,rer,ier,ner,aer,oer,ser,zRe,FI=Ci(()=>{EI();E2=.7,__=1/E2,w4="\\s*([+-]?\\d+)\\s*",fE="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",H1="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",ter=/^#([0-9a-f]{3,8})$/,rer=new RegExp(`^rgb\\(${w4},${w4},${w4}\\)$`),ier=new RegExp(`^rgb\\(${H1},${H1},${H1}\\)$`),ner=new RegExp(`^rgba\\(${w4},${w4},${w4},${fE}\\)$`),aer=new RegExp(`^rgba\\(${H1},${H1},${H1},${fE}\\)$`),oer=new RegExp(`^hsl\\(${fE},${H1},${H1}\\)$`),ser=new RegExp(`^hsla\\(${fE},${H1},${H1},${fE}\\)$`),zRe={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};mm(j1,k2,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:BRe,formatHex:BRe,formatHex8:ler,formatHsl:uer,formatRgb:qRe,toString:qRe});mm(Gu,T4,S2(j1,{brighter(e){return e=e==null?__:Math.pow(__,e),new Gu(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?E2:Math.pow(E2,e),new Gu(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Gu(b_(this.r),b_(this.g),b_(this.b),DI(this.opacity))},displayable(){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:NRe,formatHex:NRe,formatHex8:cer,formatRgb:URe,toString:URe}));mm(yv,dE,S2(j1,{brighter(e){return e=e==null?__:Math.pow(__,e),new yv(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?E2:Math.pow(E2,e),new yv(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,i=r+(r<.5?r:1-r)*t,n=2*r-i;return new Gu(OK(e>=240?e-240:e+120,n,i),OK(e,n,i),OK(e<120?e+240:e-120,n,i),this.opacity)},clamp(){return new yv(GRe(this.h),CI(this.s),CI(this.l),DI(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let e=DI(this.opacity);return`${e===1?"hsl(":"hsla("}${GRe(this.h)}, ${CI(this.s)*100}%, ${CI(this.l)*100}%${e===1?")":`, ${e})`}`}}))});var LI,PI,NK=Ci(()=>{LI=Math.PI/180,PI=180/Math.PI});function ZRe(e){if(e instanceof $1)return new $1(e.l,e.a,e.b,e.opacity);if(e instanceof ym)return KRe(e);e instanceof Gu||(e=hE(e));var t=HK(e.r),r=HK(e.g),i=HK(e.b),n=UK((.2225045*t+.7168786*r+.0606169*i)/$Re),a,o;return t===r&&r===i?a=o=n:(a=UK((.4360747*t+.3850649*r+.1430804*i)/jRe),o=UK((.0139322*t+.0971045*r+.7141733*i)/WRe)),new $1(116*n-16,500*(a-n),200*(n-o),e.opacity)}function M4(e,t,r,i){return arguments.length===1?ZRe(e):new $1(e,t,r,i==null?1:i)}function $1(e,t,r,i){this.l=+e,this.a=+t,this.b=+r,this.opacity=+i}function UK(e){return e>fer?Math.pow(e,1/3):e/XRe+YRe}function VK(e){return e>A4?e*e*e:XRe*(e-YRe)}function GK(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function HK(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function her(e){if(e instanceof ym)return new ym(e.h,e.c,e.l,e.opacity);if(e instanceof $1||(e=ZRe(e)),e.a===0&&e.b===0)return new ym(NaN,0{EI();FI();NK();II=18,jRe=.96422,$Re=1,WRe=.82521,YRe=4/29,A4=6/29,XRe=3*A4*A4,fer=A4*A4*A4;mm($1,M4,S2(j1,{brighter(e){return new $1(this.l+II*(e==null?1:e),this.a,this.b,this.opacity)},darker(e){return new $1(this.l-II*(e==null?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,r=isNaN(this.b)?e:e-this.b/200;return t=jRe*VK(t),e=$Re*VK(e),r=WRe*VK(r),new Gu(GK(3.1338561*t-1.6168667*e-.4906146*r),GK(-.9787684*t+1.9161415*e+.033454*r),GK(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}}));mm(ym,pE,S2(j1,{brighter(e){return new ym(this.h,this.c,this.l+II*(e==null?1:e),this.opacity)},darker(e){return new ym(this.h,this.c,this.l-II*(e==null?1:e),this.opacity)},rgb(){return KRe(this).rgb()}}))});function der(e){if(e instanceof w_)return new w_(e.h,e.s,e.l,e.opacity);e instanceof Gu||(e=hE(e));var t=e.r/255,r=e.g/255,i=e.b/255,n=(tze*i+QRe*t-eze*r)/(tze+QRe-eze),a=i-n,o=(vE*(r-n)-$K*a)/RI,s=Math.sqrt(o*o+a*a)/(vE*n*(1-n)),l=s?Math.atan2(o,a)*PI-120:NaN;return new w_(l<0?l+360:l,s,n,e.opacity)}function S4(e,t,r,i){return arguments.length===1?der(e):new w_(e,t,r,i==null?1:i)}function w_(e,t,r,i){this.h=+e,this.s=+t,this.l=+r,this.opacity=+i}var rze,jK,$K,RI,vE,QRe,eze,tze,ize=Ci(()=>{EI();FI();NK();rze=-.14861,jK=1.78277,$K=-.29227,RI=-.90649,vE=1.97294,QRe=vE*RI,eze=vE*jK,tze=jK*$K-RI*rze;mm(w_,S4,S2(j1,{brighter(e){return e=e==null?__:Math.pow(__,e),new w_(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?E2:Math.pow(E2,e),new w_(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=isNaN(this.h)?0:(this.h+120)*LI,t=+this.l,r=isNaN(this.s)?0:this.s*t*(1-t),i=Math.cos(e),n=Math.sin(e);return new Gu(255*(t+r*(rze*i+jK*n)),255*(t+r*($K*i+RI*n)),255*(t+r*(vE*i)),this.opacity)}}))});var T_=Ci(()=>{FI();JRe();ize()});function WK(e,t,r,i,n){var a=e*e,o=a*e;return((1-3*e+3*a-o)*t+(4-6*a+3*o)*r+(1+3*e+3*a-3*o)*i+o*n)/6}function zI(e){var t=e.length-1;return function(r){var i=r<=0?r=0:r>=1?(r=1,t-1):Math.floor(r*t),n=e[i],a=e[i+1],o=i>0?e[i-1]:2*n-a,s=i{});function qI(e){var t=e.length;return function(r){var i=Math.floor(((r%=1)<0?++r:r)*t),n=e[(i+t-1)%t],a=e[i%t],o=e[(i+1)%t],s=e[(i+2)%t];return WK((r-i/t)*t,n,a,o,s)}}var YK=Ci(()=>{BI()});var E4,XK=Ci(()=>{E4=e=>()=>e});function nze(e,t){return function(r){return e+r*t}}function per(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(i){return Math.pow(e+i*t,r)}}function C2(e,t){var r=t-e;return r?nze(e,r>180||r<-180?r-360*Math.round(r/360):r):E4(isNaN(e)?t:e)}function aze(e){return(e=+e)==1?_l:function(t,r){return r-t?per(t,r,e):E4(isNaN(t)?r:t)}}function _l(e,t){var r=t-e;return r?nze(e,r):E4(isNaN(e)?t:e)}var A_=Ci(()=>{XK()});function oze(e){return function(t){var r=t.length,i=new Array(r),n=new Array(r),a=new Array(r),o,s;for(o=0;o{T_();BI();YK();A_();gE=(function e(t){var r=aze(t);function i(n,a){var o=r((n=T4(n)).r,(a=T4(a)).r),s=r(n.g,a.g),l=r(n.b,a.b),u=_l(n.opacity,a.opacity);return function(c){return n.r=o(c),n.g=s(c),n.b=l(c),n.opacity=u(c),n+""}}return i.gamma=e,i})(1);sze=oze(zI),lze=oze(qI)});function k4(e,t){t||(t=[]);var r=e?Math.min(t.length,e.length):0,i=t.slice(),n;return function(a){for(n=0;n{});function uze(e,t){return(OI(t)?k4:KK)(e,t)}function KK(e,t){var r=t?t.length:0,i=e?Math.min(r,e.length):0,n=new Array(i),a=new Array(r),o;for(o=0;o{mE();NI()});function UI(e,t){var r=new Date;return e=+e,t=+t,function(i){return r.setTime(e*(1-i)+t*i),r}}var QK=Ci(()=>{});function Qh(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}var yE=Ci(()=>{});function VI(e,t){var r={},i={},n;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(n in t)n in e?r[n]=D2(e[n],t[n]):i[n]=t[n];return function(a){for(n in r)i[n]=r[n](a);return i}}var eJ=Ci(()=>{mE()});function ver(e){return function(){return e}}function ger(e){return function(t){return e(t)+""}}function GI(e,t){var r=rJ.lastIndex=tJ.lastIndex=0,i,n,a,o=-1,s=[],l=[];for(e=e+"",t=t+"";(i=rJ.exec(e))&&(n=tJ.exec(t));)(a=n.index)>r&&(a=t.slice(r,a),s[o]?s[o]+=a:s[++o]=a),(i=i[0])===(n=n[0])?s[o]?s[o]+=n:s[++o]=n:(s[++o]=null,l.push({i:o,x:Qh(i,n)})),r=tJ.lastIndex;return r{yE();rJ=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,tJ=new RegExp(rJ.source,"g")});function D2(e,t){var r=typeof t,i;return t==null||r==="boolean"?E4(t):(r==="number"?Qh:r==="string"?(i=k2(t))?(t=i,gE):GI:t instanceof k2?gE:t instanceof Date?UI:OI(t)?k4:Array.isArray(t)?KK:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?VI:Qh)(e,t)}var mE=Ci(()=>{T_();ZK();JK();QK();yE();eJ();iJ();XK();NI()});function cze(e){var t=e.length;return function(r){return e[Math.max(0,Math.min(t-1,Math.floor(r*t)))]}}var fze=Ci(()=>{});function hze(e,t){var r=C2(+e,+t);return function(i){var n=r(i);return n-360*Math.floor(n/360)}}var dze=Ci(()=>{A_()});function pze(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}var vze=Ci(()=>{});function nJ(e,t,r,i,n,a){var o,s,l;return(o=Math.sqrt(e*e+t*t))&&(e/=o,t/=o),(l=e*r+t*i)&&(r-=e*l,i-=t*l),(s=Math.sqrt(r*r+i*i))&&(r/=s,i/=s,l/=s),e*i{gze=180/Math.PI,HI={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1}});function yze(e){let t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?HI:nJ(t.a,t.b,t.c,t.d,t.e,t.f)}function xze(e){return e==null?HI:(jI||(jI=document.createElementNS("http://www.w3.org/2000/svg","g")),jI.setAttribute("transform",e),(e=jI.transform.baseVal.consolidate())?(e=e.matrix,nJ(e.a,e.b,e.c,e.d,e.e,e.f)):HI)}var jI,bze=Ci(()=>{mze()});function _ze(e,t,r,i){function n(u){return u.length?u.pop()+" ":""}function a(u,c,f,h,p,d){if(u!==f||c!==h){var v=p.push("translate(",null,t,null,r);d.push({i:v-4,x:Qh(u,f)},{i:v-2,x:Qh(c,h)})}else(f||h)&&p.push("translate("+f+t+h+r)}function o(u,c,f,h){u!==c?(u-c>180?c+=360:c-u>180&&(u+=360),h.push({i:f.push(n(f)+"rotate(",null,i)-2,x:Qh(u,c)})):c&&f.push(n(f)+"rotate("+c+i)}function s(u,c,f,h){u!==c?h.push({i:f.push(n(f)+"skewX(",null,i)-2,x:Qh(u,c)}):c&&f.push(n(f)+"skewX("+c+i)}function l(u,c,f,h,p,d){if(u!==f||c!==h){var v=p.push(n(p)+"scale(",null,",",null,")");d.push({i:v-4,x:Qh(u,f)},{i:v-2,x:Qh(c,h)})}else(f!==1||h!==1)&&p.push(n(p)+"scale("+f+","+h+")")}return function(u,c){var f=[],h=[];return u=e(u),c=e(c),a(u.translateX,u.translateY,c.translateX,c.translateY,f,h),o(u.rotate,c.rotate,f,h),s(u.skewX,c.skewX,f,h),l(u.scaleX,u.scaleY,c.scaleX,c.scaleY,f,h),u=c=null,function(p){for(var d=-1,v=h.length,m;++d{yE();bze();wze=_ze(yze,"px, ","px)","deg)"),Tze=_ze(xze,", ",")",")")});function Mze(e){return((e=Math.exp(e))+1/e)/2}function yer(e){return((e=Math.exp(e))-1/e)/2}function xer(e){return((e=Math.exp(2*e))-1)/(e+1)}var mer,Sze,Eze=Ci(()=>{mer=1e-12;Sze=(function e(t,r,i){function n(a,o){var s=a[0],l=a[1],u=a[2],c=o[0],f=o[1],h=o[2],p=c-s,d=f-l,v=p*p+d*d,m,g;if(v{T_();A_();Cze=kze(C2),Dze=kze(_l)});function aJ(e,t){var r=_l((e=M4(e)).l,(t=M4(t)).l),i=_l(e.a,t.a),n=_l(e.b,t.b),a=_l(e.opacity,t.opacity);return function(o){return e.l=r(o),e.a=i(o),e.b=n(o),e.opacity=a(o),e+""}}var Lze=Ci(()=>{T_();A_()});function Pze(e){return function(t,r){var i=e((t=pE(t)).h,(r=pE(r)).h),n=_l(t.c,r.c),a=_l(t.l,r.l),o=_l(t.opacity,r.opacity);return function(s){return t.h=i(s),t.c=n(s),t.l=a(s),t.opacity=o(s),t+""}}}var Ize,Rze,zze=Ci(()=>{T_();A_();Ize=Pze(C2),Rze=Pze(_l)});function Bze(e){return(function t(r){r=+r;function i(n,a){var o=e((n=S4(n)).h,(a=S4(a)).h),s=_l(n.s,a.s),l=_l(n.l,a.l),u=_l(n.opacity,a.opacity);return function(c){return n.h=o(c),n.s=s(c),n.l=l(Math.pow(c,r)),n.opacity=u(c),n+""}}return i.gamma=t,i})(1)}var qze,Oze,Nze=Ci(()=>{T_();A_();qze=Bze(C2),Oze=Bze(_l)});function oJ(e,t){t===void 0&&(t=e,e=D2);for(var r=0,i=t.length-1,n=t[0],a=new Array(i<0?0:i);r{mE()});function Vze(e,t){for(var r=new Array(t),i=0;i{});var M_={};Jn(M_,{interpolate:()=>D2,interpolateArray:()=>uze,interpolateBasis:()=>zI,interpolateBasisClosed:()=>qI,interpolateCubehelix:()=>qze,interpolateCubehelixLong:()=>Oze,interpolateDate:()=>UI,interpolateDiscrete:()=>cze,interpolateHcl:()=>Ize,interpolateHclLong:()=>Rze,interpolateHsl:()=>Cze,interpolateHslLong:()=>Dze,interpolateHue:()=>hze,interpolateLab:()=>aJ,interpolateNumber:()=>Qh,interpolateNumberArray:()=>k4,interpolateObject:()=>VI,interpolateRgb:()=>gE,interpolateRgbBasis:()=>sze,interpolateRgbBasisClosed:()=>lze,interpolateRound:()=>pze,interpolateString:()=>GI,interpolateTransformCss:()=>wze,interpolateTransformSvg:()=>Tze,interpolateZoom:()=>Sze,piecewise:()=>oJ,quantize:()=>Vze});var S_=Ci(()=>{mE();JK();BI();YK();QK();fze();dze();yE();NI();eJ();vze();iJ();Aze();Eze();ZK();Fze();Lze();zze();Nze();Uze();Gze()});var $I=W((sZr,Hze)=>{"use strict";var ber=Qi(),_er=ti();Hze.exports=function(t,r,i,n,a){var o=r.data.data,s=o.i,l=a||o.color;if(s>=0){r.i=o.i;var u=i.marker;u.pattern?(!u.colors||!u.pattern.shape)&&(u.color=l,r.color=l):(u.color=l,r.color=l),ber.pointStyle(t,i,n,r)}else _er.fill(t,l)}});var sJ=W((lZr,Xze)=>{"use strict";var jze=gi(),$ze=ti(),Wze=tt(),wer=of().resizeText,Ter=$I();function Aer(e){var t=e._fullLayout._sunburstlayer.selectAll(".trace");wer(e,t,"sunburst"),t.each(function(r){var i=jze.select(this),n=r[0],a=n.trace;i.style("opacity",a.opacity),i.selectAll("path.surface").each(function(o){jze.select(this).call(Yze,o,a,e)})})}function Yze(e,t,r,i){var n=t.data.data,a=!t.children,o=n.i,s=Wze.castOption(r,o,"marker.line.color")||$ze.defaultLine,l=Wze.castOption(r,o,"marker.line.width")||0;e.call(Ter,t,r,i).style("stroke-width",l).call($ze.stroke,s).style("opacity",a?r.leaf.opacity:null)}Xze.exports={style:Aer,styleOne:Yze}});var xm=W(sa=>{"use strict";var E_=tt(),Mer=ti(),Ser=Xp(),Zze=Gy();sa.findEntryWithLevel=function(e,t){var r;return t&&e.eachAfter(function(i){if(sa.getPtId(i)===t)return r=i.copy()}),r||e};sa.findEntryWithChild=function(e,t){var r;return e.eachAfter(function(i){for(var n=i.children||[],a=0;a0)};sa.getMaxDepth=function(e){return e.maxdepth>=0?e.maxdepth:1/0};sa.isHeader=function(e,t){return!(sa.isLeaf(e)||e.depth===t._maxDepth-1)};function Kze(e){return e.data.data.pid}sa.getParent=function(e,t){return sa.findEntryWithLevel(e,Kze(t))};sa.listPath=function(e,t){var r=e.parent;if(!r)return[];var i=t?[r.data[t]]:[r];return sa.listPath(r,t).concat(i)};sa.getPath=function(e){return sa.listPath(e,"label").join("/")+"/"};sa.formatValue=Zze.formatPieValue;sa.formatPercent=function(e,t){var r=E_.formatPercent(e,0);return r==="0%"&&(r=Zze.formatPiePercent(e,t)),r}});var _E=W((cZr,eBe)=>{"use strict";var C4=gi(),Jze=xi(),Cer=ah().appendArrayPointValue,xE=Is(),Qze=tt(),Der=ww(),_u=xm(),Fer=Gy(),Ler=Fer.formatPieValue;eBe.exports=function(t,r,i,n,a){var o=n[0],s=o.trace,l=o.hierarchy,u=s.type==="sunburst",c=s.type==="treemap"||s.type==="icicle";"_hasHoverLabel"in s||(s._hasHoverLabel=!1),"_hasHoverEvent"in s||(s._hasHoverEvent=!1);var f=function(d){var v=i._fullLayout;if(!(i._dragging||v.hovermode===!1)){var m=i._fullData[s.index],g=d.data.data,w=g.i,_=_u.isHierarchyRoot(d),b=_u.getParent(l,d),S=_u.getValue(d),x=function(X){return Qze.castOption(m,w,X)},A=x("hovertemplate"),T=xE.castHoverinfo(m,v,w),y=v.separators,E;if(A||T&&T!=="none"&&T!=="skip"){var M,C;u&&(M=o.cx+d.pxmid[0]*(1-d.rInscribed),C=o.cy+d.pxmid[1]*(1-d.rInscribed)),c&&(M=d._hoverX,C=d._hoverY);var k={},D=[],F=[],P=function(X){return D.indexOf(X)!==-1};T&&(D=T==="all"?m._module.attributes.hoverinfo.flags:T.split("+")),k.label=g.label,P("label")&&k.label&&F.push(k.label),g.hasOwnProperty("v")&&(k.value=g.v,k.valueLabel=Ler(k.value,y),P("value")&&F.push(k.valueLabel)),k.currentPath=d.currentPath=_u.getPath(d.data),P("current path")&&!_&&F.push(k.currentPath);var R,L=[],I=function(){L.indexOf(R)===-1&&(F.push(R),L.push(R))};k.percentParent=d.percentParent=S/_u.getValue(b),k.parent=d.parentString=_u.getPtLabel(b),P("percent parent")&&(R=_u.formatPercent(k.percentParent,y)+" of "+k.parent,I()),k.percentEntry=d.percentEntry=S/_u.getValue(r),k.entry=d.entry=_u.getPtLabel(r),P("percent entry")&&!_&&!d.onPathbar&&(R=_u.formatPercent(k.percentEntry,y)+" of "+k.entry,I()),k.percentRoot=d.percentRoot=S/_u.getValue(l),k.root=d.root=_u.getPtLabel(l),P("percent root")&&!_&&(R=_u.formatPercent(k.percentRoot,y)+" of "+k.root,I()),k.text=x("hovertext")||x("text"),P("text")&&(R=k.text,Qze.isValidTextValue(R)&&F.push(R)),E=[bE(d,m,a.eventDataKeys)];var B={trace:m,y:C,_x0:d._x0,_x1:d._x1,_y0:d._y0,_y1:d._y1,text:F.join("
"),name:A||P("name")?m.name:void 0,color:x("hoverlabel.bgcolor")||g.color,borderColor:x("hoverlabel.bordercolor"),fontFamily:x("hoverlabel.font.family"),fontSize:x("hoverlabel.font.size"),fontColor:x("hoverlabel.font.color"),fontWeight:x("hoverlabel.font.weight"),fontStyle:x("hoverlabel.font.style"),fontVariant:x("hoverlabel.font.variant"),nameLength:x("hoverlabel.namelength"),textAlign:x("hoverlabel.align"),hovertemplate:A,hovertemplateLabels:k,eventData:E};u&&(B.x0=M-d.rInscribed*d.rpx1,B.x1=M+d.rInscribed*d.rpx1,B.idealAlign=d.pxmid[0]<0?"left":"right"),c&&(B.x=M,B.idealAlign=M<0?"left":"right");var O=[];xE.loneHover(B,{container:v._hoverlayer.node(),outerContainer:v._paper.node(),gd:i,inOut_bbox:O}),E[0].bbox=O[0],s._hasHoverLabel=!0}if(c){var $=t.select("path.surface");a.styleOne($,d,m,i,{hovered:!0})}s._hasHoverEvent=!0,i.emit("plotly_hover",{points:E||[bE(d,m,a.eventDataKeys)],event:C4.event})}},h=function(d){var v=i._fullLayout,m=i._fullData[s.index],g=C4.select(this).datum();if(s._hasHoverEvent&&(d.originalEvent=C4.event,i.emit("plotly_unhover",{points:[bE(g,m,a.eventDataKeys)],event:C4.event}),s._hasHoverEvent=!1),s._hasHoverLabel&&(xE.loneUnhover(v._hoverlayer.node()),s._hasHoverLabel=!1),c){var w=t.select("path.surface");a.styleOne(w,g,m,i,{hovered:!1})}},p=function(d){var v=i._fullLayout,m=i._fullData[s.index],g=u&&(_u.isHierarchyRoot(d)||_u.isLeaf(d)),w=_u.getPtId(d),_=_u.isEntry(d)?_u.findEntryWithChild(l,w):_u.findEntryWithLevel(l,w),b=_u.getPtId(_),S={points:[bE(d,m,a.eventDataKeys)],event:C4.event};g||(S.nextLevel=b);var x=Der.triggerHandler(i,"plotly_"+s.type+"click",S);if(x!==!1&&v.hovermode&&(i._hoverdata=[bE(d,m,a.eventDataKeys)],xE.click(i,C4.event)),!g&&x!==!1&&!i._dragging&&!i._transitioning){Jze.call("_storeDirectGUIEdit",m,v._tracePreGUI[m.uid],{level:m.level});var A={data:[{level:b}],traces:[s.index]},T={frame:{redraw:!1,duration:a.transitionTime},transition:{duration:a.transitionTime,easing:a.transitionEasing},mode:"immediate",fromcurrent:!0};xE.loneUnhover(v._hoverlayer.node()),Jze.call("animate",i,A,T)}};t.on("mouseover",f),t.on("mouseout",h),t.on("click",p)};function bE(e,t,r){for(var i=e.data.data,n={curveNumber:t.index,pointNumber:i.i,data:t._input,fullData:t},a=0;a{"use strict";var wE=gi(),Per=lE(),xv=(S_(),Pt(M_)).interpolate,tBe=Qi(),uf=tt(),Ier=ao(),aBe=of(),rBe=aBe.recordMinTextSize,Rer=aBe.clearMinTextSize,oBe=MI(),zer=Gy().getRotationAngle,Ber=oBe.computeTransform,qer=oBe.transformInsideText,Oer=sJ().styleOne,Ner=zd().resizeText,Uer=_E(),lJ=(BK(),Pt(zK)),qa=xm();WI.plot=function(e,t,r,i){var n=e._fullLayout,a=n._sunburstlayer,o,s,l=!r,u=!n.uniformtext.mode&&qa.hasTransition(r);if(Rer("sunburst",n),o=a.selectAll("g.trace.sunburst").data(t,function(f){return f[0].trace.uid}),o.enter().append("g").classed("trace",!0).classed("sunburst",!0).attr("stroke-linejoin","round"),o.order(),u){i&&(s=i());var c=wE.transition().duration(r.duration).ease(r.easing).each("end",function(){s&&s()}).each("interrupt",function(){s&&s()});c.each(function(){a.selectAll("g.trace").each(function(f){iBe(e,f,this,r)})})}else o.each(function(f){iBe(e,f,this,r)}),n.uniformtext.mode&&Ner(e,n._sunburstlayer.selectAll(".trace"),"sunburst");l&&o.exit().remove()};function iBe(e,t,r,i){var n=e._context.staticPlot,a=e._fullLayout,o=!a.uniformtext.mode&&qa.hasTransition(i),s=wE.select(r),l=s.selectAll("g.slice"),u=t[0],c=u.trace,f=u.hierarchy,h=qa.findEntryWithLevel(f,c.level),p=qa.getMaxDepth(c),d=a._size,v=c.domain,m=d.w*(v.x[1]-v.x[0]),g=d.h*(v.y[1]-v.y[0]),w=.5*Math.min(m,g),_=u.cx=d.l+d.w*(v.x[1]+v.x[0])/2,b=u.cy=d.t+d.h*(1-v.y[0])-g/2;if(!h)return l.remove();var S=null,x={};o&&l.each(function(G){x[qa.getPtId(G)]={rpx0:G.rpx0,rpx1:G.rpx1,x0:G.x0,x1:G.x1,transform:G.transform},!S&&qa.isEntry(G)&&(S=G)});var A=Ver(h).descendants(),T=h.height+1,y=0,E=p;u.hasMultipleRoots&&qa.isHierarchyRoot(h)&&(A=A.slice(1),T-=1,y=1,E+=1),A=A.filter(function(G){return G.y1<=E});var M=zer(c.rotation);M&&A.forEach(function(G){G.x0+=M,G.x1+=M});var C=Math.min(T,p),k=function(G){return(G-y)/C*w},D=function(G,q){return[G*Math.cos(q),-G*Math.sin(q)]},F=function(G){return uf.pathAnnulus(G.rpx0,G.rpx1,G.x0,G.x1,_,b)},P=function(G){return _+nBe(G)[0]*(G.transform.rCenter||0)+(G.transform.x||0)},R=function(G){return b+nBe(G)[1]*(G.transform.rCenter||0)+(G.transform.y||0)};l=l.data(A,qa.getPtId),l.enter().append("g").classed("slice",!0),o?l.exit().transition().each(function(){var G=wE.select(this),q=G.select("path.surface");q.transition().attrTween("d",function(N){var V=O(N);return function(Y){return F(V(Y))}});var J=G.select("g.slicetext");J.attr("opacity",0)}).remove():l.exit().remove(),l.order();var L=null;if(o&&S){var I=qa.getPtId(S);l.each(function(G){L===null&&qa.getPtId(G)===I&&(L=G.x1)})}var B=l;o&&(B=B.transition().each("end",function(){var G=wE.select(this);qa.setSliceCursor(G,e,{hideOnRoot:!0,hideOnLeaves:!0,isTransitioning:!1})})),B.each(function(G){var q=wE.select(this),J=uf.ensureSingle(q,"path","surface",function(Q){Q.style("pointer-events",n?"none":"all")});G.rpx0=k(G.y0),G.rpx1=k(G.y1),G.xmid=(G.x0+G.x1)/2,G.pxmid=D(G.rpx1,G.xmid),G.midangle=-(G.xmid-Math.PI/2),G.startangle=-(G.x0-Math.PI/2),G.stopangle=-(G.x1-Math.PI/2),G.halfangle=.5*Math.min(uf.angleDelta(G.x0,G.x1)||Math.PI,Math.PI),G.ring=1-G.rpx0/G.rpx1,G.rInscribed=Ger(G,c),o?J.transition().attrTween("d",function(Q){var te=$(Q);return function(ue){return F(te(ue))}}):J.attr("d",F),q.call(Uer,h,e,t,{eventDataKeys:lJ.eventDataKeys,transitionTime:lJ.CLICK_TRANSITION_TIME,transitionEasing:lJ.CLICK_TRANSITION_EASING}).call(qa.setSliceCursor,e,{hideOnRoot:!0,hideOnLeaves:!0,isTransitioning:e._transitioning}),J.call(Oer,G,c,e);var N=uf.ensureSingle(q,"g","slicetext"),V=uf.ensureSingle(N,"text","",function(Q){Q.attr("data-notex",1)}),Y=uf.ensureUniformFontSize(e,qa.determineTextFont(c,G,a.font));V.text(WI.formatSliceLabel(G,h,c,t,a)).classed("slicetext",!0).attr("text-anchor","middle").call(tBe.font,Y).call(Ier.convertToTspans,e);var H=tBe.bBox(V.node());G.transform=qer(H,G,u),G.transform.targetX=P(G),G.transform.targetY=R(G);var j=function(Q,te){var ue=Q.transform;return Ber(ue,te),ue.fontSize=Y.size,rBe(c.type,ue,a),uf.getTextTransform(ue)};o?V.transition().attrTween("transform",function(Q){var te=X(Q);return function(ue){return j(te(ue),H)}}):V.attr("transform",j(G,H))});function O(G){var q=qa.getPtId(G),J=x[q],N=x[qa.getPtId(h)],V;if(N){var Y=(G.x1>N.x1?2*Math.PI:0)+M;V=G.rpx1L?2*Math.PI:0)+M;J={x0:V,x1:V}}else J={rpx0:w,rpx1:w},uf.extendFlat(J,K(G));else J={rpx0:0,rpx1:0};else J={x0:M,x1:M};return xv(J,N)}function X(G){var q=x[qa.getPtId(G)],J,N=G.transform;if(q)J=q;else if(J={rpx1:G.rpx1,transform:{textPosAngle:N.textPosAngle,scale:0,rotate:N.rotate,rCenter:N.rCenter,x:N.x,y:N.y}},S)if(G.parent)if(L){var V=G.x1>L?2*Math.PI:0;J.x0=J.x1=V}else uf.extendFlat(J,K(G));else J.x0=J.x1=M;else J.x0=J.x1=M;var Y=xv(J.transform.textPosAngle,G.transform.textPosAngle),H=xv(J.rpx1,G.rpx1),j=xv(J.x0,G.x0),Q=xv(J.x1,G.x1),te=xv(J.transform.scale,N.scale),ue=xv(J.transform.rotate,N.rotate),ge=N.rCenter===0?3:J.transform.rCenter===0?1/3:1,Ee=xv(J.transform.rCenter,N.rCenter),xe=function(ce){return Ee(Math.pow(ce,ge))};return function(ce){var oe=H(ce),Se=j(ce),be=Q(ce),fe=xe(ce),ee=D(oe,(Se+be)/2),ae=Y(ce),_e={pxmid:ee,rpx1:oe,transform:{textPosAngle:ae,rCenter:fe,x:N.x,y:N.y}};return rBe(c.type,N,a),{transform:{targetX:P(_e),targetY:R(_e),scale:te(ce),rotate:ue(ce),rCenter:fe}}}}function K(G){var q=G.parent,J=x[qa.getPtId(q)],N={};if(J){var V=q.children,Y=V.indexOf(G),H=V.length,j=xv(J.x0,J.x1);N.x0=j(Y/H),N.x1=j(Y/H)}else N.x0=N.x1=0;return N}}function Ver(e){return Per.partition().size([2*Math.PI,e.height+1])(e)}WI.formatSliceLabel=function(e,t,r,i,n){var a=r.texttemplate,o=r.textinfo;if(!a&&(!o||o==="none"))return"";var s=n.separators,l=i[0],u=e.data.data,c=l.hierarchy,f=qa.isHierarchyRoot(e),h=qa.getParent(c,e),p=qa.getValue(e);if(!a){var d=o.split("+"),v=function(y){return d.indexOf(y)!==-1},m=[],g;if(v("label")&&u.label&&m.push(u.label),u.hasOwnProperty("v")&&v("value")&&m.push(qa.formatValue(u.v,s)),!f){v("current path")&&m.push(qa.getPath(e.data));var w=0;v("percent parent")&&w++,v("percent entry")&&w++,v("percent root")&&w++;var _=w>1;if(w){var b,S=function(y){g=qa.formatPercent(b,s),_&&(g+=" of "+y),m.push(g)};v("percent parent")&&!f&&(b=p/qa.getValue(h),S("parent")),v("percent entry")&&(b=p/qa.getValue(t),S("entry")),v("percent root")&&(b=p/qa.getValue(c),S("root"))}}return v("text")&&(g=uf.castOption(r,u.i,"text"),uf.isValidTextValue(g)&&m.push(g)),m.join("
")}var x=uf.castOption(r,u.i,"texttemplate");if(!x)return"";var A={};u.label&&(A.label=u.label),u.hasOwnProperty("v")&&(A.value=u.v,A.valueLabel=qa.formatValue(u.v,s)),A.currentPath=qa.getPath(e.data),f||(A.percentParent=p/qa.getValue(h),A.percentParentLabel=qa.formatPercent(A.percentParent,s),A.parent=qa.getPtLabel(h)),A.percentEntry=p/qa.getValue(t),A.percentEntryLabel=qa.formatPercent(A.percentEntry,s),A.entry=qa.getPtLabel(t),A.percentRoot=p/qa.getValue(c),A.percentRootLabel=qa.formatPercent(A.percentRoot,s),A.root=qa.getPtLabel(c),u.hasOwnProperty("color")&&(A.color=u.color);var T=uf.castOption(r,u.i,"text");return(uf.isValidTextValue(T)||T==="")&&(A.text=T),A.customdata=uf.castOption(r,u.i,"customdata"),uf.texttemplateString({data:[A,r._meta],fallback:r.texttemplatefallback,labels:A,locale:n._d3locale,template:x})};function Ger(e){return e.rpx0===0&&uf.isFullCircle([e.x0,e.x1])?1:Math.max(0,Math.min(1/(1+1/Math.sin(e.halfangle)),e.ring/2))}function nBe(e){return Her(e.rpx1,e.transform.textPosAngle)}function Her(e,t){return[e*Math.sin(t),-e*Math.cos(t)]}});var lBe=W((hZr,sBe)=>{"use strict";sBe.exports={moduleType:"trace",name:"sunburst",basePlotModule:wRe(),categories:[],animatable:!0,attributes:sE(),layoutAttributes:qK(),supplyDefaults:DRe(),supplyLayoutDefaults:LRe(),calc:cE().calc,crossTraceCalc:cE().crossTraceCalc,plot:YI().plot,style:sJ().style,colorbar:Cc(),meta:{}}});var cBe=W((dZr,uBe)=>{"use strict";uBe.exports=lBe()});var hBe=W(D4=>{"use strict";var fBe=Qo();D4.name="treemap";D4.plot=function(e,t,r,i){fBe.plotBasePlot(D4.name,e,t,r,i)};D4.clean=function(e,t,r,i){fBe.cleanBasePlot(D4.name,e,t,r,i)}});var k_={};Jn(k_,{CLICK_TRANSITION_EASING:()=>$er,CLICK_TRANSITION_TIME:()=>jer,eventDataKeys:()=>Wer,gapWithPathbar:()=>Yer});var jer,$er,Wer,Yer,C_=Ci(()=>{"use strict";jer=750,$er="poly",Wer=["currentPath","root","entry","percentRoot","percentEntry","percentParent"],Yer=1});var XI=W((vZr,vBe)=>{"use strict";var{hovertemplateAttrs:Xer,texttemplateAttrs:Zer,templatefallbackAttrs:dBe}=Wa(),Ker=Fo(),Jer=ds().attributes,D_=m_(),Kd=sE(),pBe=(C_(),Pt(k_)),uJ=an().extendFlat,Qer=zu().pattern;vBe.exports={labels:Kd.labels,parents:Kd.parents,values:Kd.values,branchvalues:Kd.branchvalues,count:Kd.count,level:Kd.level,maxdepth:Kd.maxdepth,tiling:{packing:{valType:"enumerated",values:["squarify","binary","dice","slice","slice-dice","dice-slice"],dflt:"squarify",editType:"plot"},squarifyratio:{valType:"number",min:1,dflt:1,editType:"plot"},flip:{valType:"flaglist",flags:["x","y"],dflt:"",editType:"plot"},pad:{valType:"number",min:0,dflt:3,editType:"plot"},editType:"calc"},marker:uJ({pad:{t:{valType:"number",min:0,editType:"plot"},l:{valType:"number",min:0,editType:"plot"},r:{valType:"number",min:0,editType:"plot"},b:{valType:"number",min:0,editType:"plot"},editType:"calc"},colors:Kd.marker.colors,pattern:Qer,depthfade:{valType:"enumerated",values:[!0,!1,"reversed"],editType:"style"},line:Kd.marker.line,cornerradius:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"calc"},Ker("marker",{colorAttr:"colors",anim:!1})),pathbar:{visible:{valType:"boolean",dflt:!0,editType:"plot"},side:{valType:"enumerated",values:["top","bottom"],dflt:"top",editType:"plot"},edgeshape:{valType:"enumerated",values:[">","<","|","/","\\"],dflt:">",editType:"plot"},thickness:{valType:"number",min:12,editType:"plot"},textfont:uJ({},D_.textfont,{}),editType:"calc"},text:D_.text,textinfo:Kd.textinfo,texttemplate:Zer({editType:"plot"},{keys:pBe.eventDataKeys.concat(["label","value"])}),texttemplatefallback:dBe({editType:"plot"}),hovertext:D_.hovertext,hoverinfo:Kd.hoverinfo,hovertemplate:Xer({},{keys:pBe.eventDataKeys}),hovertemplatefallback:dBe(),textfont:D_.textfont,insidetextfont:D_.insidetextfont,outsidetextfont:uJ({},D_.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:D_.sort,root:Kd.root,domain:Jer({name:"treemap",trace:!0,editType:"calc"})}});var cJ=W((gZr,gBe)=>{"use strict";gBe.exports={treemapcolorway:{valType:"colorlist",editType:"calc"},extendtreemapcolors:{valType:"boolean",dflt:!0,editType:"calc"}}});var bBe=W((mZr,xBe)=>{"use strict";var mBe=tt(),etr=XI(),ttr=ti(),rtr=ds().defaults,itr=I0().handleText,ntr=(Qy(),Pt(Jy)).TEXTPAD,atr=y_().handleMarkerDefaults,yBe=es(),otr=yBe.hasColorscale,str=yBe.handleDefaults;xBe.exports=function(t,r,i,n){function a(m,g){return mBe.coerce(t,r,etr,m,g)}var o=a("labels"),s=a("parents");if(!o||!o.length||!s||!s.length){r.visible=!1;return}var l=a("values");l&&l.length?a("branchvalues"):a("count"),a("level"),a("maxdepth");var u=a("tiling.packing");u==="squarify"&&a("tiling.squarifyratio"),a("tiling.flip"),a("tiling.pad");var c=a("text");a("texttemplate"),a("texttemplatefallback"),r.texttemplate||a("textinfo",mBe.isArrayOrTypedArray(c)?"text+label":"label"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback");var f=a("pathbar.visible"),h="auto";itr(t,r,n,a,h,{hasPathbar:f,moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1}),a("textposition");var p=r.textposition.indexOf("bottom")!==-1;atr(t,r,n,a);var d=r._hasColorscale=otr(t,"marker","colors")||(t.marker||{}).coloraxis;d?str(t,r,n,a,{prefix:"marker.",cLetter:"c"}):a("marker.depthfade",!(r.marker.colors||[]).length);var v=r.textfont.size*2;a("marker.pad.t",p?v/4:v),a("marker.pad.l",v/4),a("marker.pad.r",v/4),a("marker.pad.b",p?v:v/4),a("marker.cornerradius"),r._hovered={marker:{line:{width:2,color:ttr.contrast(n.paper_bgcolor)}}},f&&(a("pathbar.thickness",r.pathbar.textfont.size+2*ntr),a("pathbar.side"),a("pathbar.edgeshape")),a("sort"),a("root.color"),rtr(r,n,a),r._length=null}});var wBe=W((yZr,_Be)=>{"use strict";var ltr=tt(),utr=cJ();_Be.exports=function(t,r){function i(n,a){return ltr.coerce(t,r,utr,n,a)}i("treemapcolorway",r.colorway),i("extendtreemapcolors")}});var hJ=W(fJ=>{"use strict";var TBe=cE();fJ.calc=function(e,t){return TBe.calc(e,t)};fJ.crossTraceCalc=function(e){return TBe._runCrossTraceCalc("treemap",e)}});var dJ=W((bZr,ABe)=>{"use strict";ABe.exports=function e(t,r,i){var n;i.swapXY&&(n=t.x0,t.x0=t.y0,t.y0=n,n=t.x1,t.x1=t.y1,t.y1=n),i.flipX&&(n=t.x0,t.x0=r[0]-t.x1,t.x1=r[0]-n),i.flipY&&(n=t.y0,t.y0=r[1]-t.y1,t.y1=r[1]-n);var a=t.children;if(a)for(var o=0;o{"use strict";var F4=lE(),ctr=dJ();MBe.exports=function(t,r,i){var n=i.flipX,a=i.flipY,o=i.packing==="dice-slice",s=i.pad[a?"bottom":"top"],l=i.pad[n?"right":"left"],u=i.pad[n?"left":"right"],c=i.pad[a?"top":"bottom"],f;o&&(f=l,l=s,s=f,f=u,u=c,c=f);var h=F4.treemap().tile(ftr(i.packing,i.squarifyratio)).paddingInner(i.pad.inner).paddingLeft(l).paddingRight(u).paddingTop(s).paddingBottom(c).size(o?[r[1],r[0]]:r)(t);return(o||n||a)&&ctr(h,r,{swapXY:o,flipX:n,flipY:a}),h};function ftr(e,t){switch(e){case"squarify":return F4.treemapSquarify.ratio(t);case"binary":return F4.treemapBinary;case"dice":return F4.treemapDice;case"slice":return F4.treemapSlice;default:return F4.treemapSliceDice}}});var ZI=W((wZr,CBe)=>{"use strict";var SBe=gi(),L4=ti(),EBe=tt(),vJ=xm(),htr=of().resizeText,dtr=$I();function ptr(e){var t=e._fullLayout._treemaplayer.selectAll(".trace");htr(e,t,"treemap"),t.each(function(r){var i=SBe.select(this),n=r[0],a=n.trace;i.style("opacity",a.opacity),i.selectAll("path.surface").each(function(o){SBe.select(this).call(kBe,o,a,e,{hovered:!1})})})}function kBe(e,t,r,i,n){var a=(n||{}).hovered,o=t.data.data,s=o.i,l,u,c=o.color,f=vJ.isHierarchyRoot(t),h=1;if(a)l=r._hovered.marker.line.color,u=r._hovered.marker.line.width;else if(f&&c===r.root.color)h=100,l="rgba(0,0,0,0)",u=0;else if(l=EBe.castOption(r,s,"marker.line.color")||L4.defaultLine,u=EBe.castOption(r,s,"marker.line.width")||0,!r._hasColorscale&&!t.onPathbar){var p=r.marker.depthfade;if(p){var d=L4.combine(L4.addOpacity(r._backgroundColor,.75),c),v;if(p===!0){var m=vJ.getMaxDepth(r);isFinite(m)?vJ.isLeaf(t)?v=0:v=r._maxVisibleLayers-(t.data.depth-r._entryDepth):v=t.data.height+1}else v=t.data.depth-r._entryDepth,r._atRootLevel||v++;if(v>0)for(var g=0;g{"use strict";var DBe=gi(),KI=tt(),FBe=Qi(),vtr=ao(),gtr=pJ(),LBe=ZI().styleOne,gJ=(C_(),Pt(k_)),P4=xm(),mtr=_E(),mJ=!0;PBe.exports=function(t,r,i,n,a){var o=a.barDifY,s=a.width,l=a.height,u=a.viewX,c=a.viewY,f=a.pathSlice,h=a.toMoveInsideSlice,p=a.strTransform,d=a.hasTransition,v=a.handleSlicesExit,m=a.makeUpdateSliceInterpolator,g=a.makeUpdateTextInterpolator,w={},_=t._context.staticPlot,b=t._fullLayout,S=r[0],x=S.trace,A=S.hierarchy,T=s/x._entryDepth,y=P4.listPath(i.data,"id"),E=gtr(A.copy(),[s,l],{packing:"dice",pad:{inner:0,top:0,left:0,right:0,bottom:0}}).descendants();E=E.filter(function(C){var k=y.indexOf(C.data.id);return k===-1?!1:(C.x0=T*k,C.x1=T*(k+1),C.y0=o,C.y1=o+l,C.onPathbar=!0,!0)}),E.reverse(),n=n.data(E,P4.getPtId),n.enter().append("g").classed("pathbar",!0),v(n,mJ,w,[s,l],f),n.order();var M=n;d&&(M=M.transition().each("end",function(){var C=DBe.select(this);P4.setSliceCursor(C,t,{hideOnRoot:!1,hideOnLeaves:!1,isTransitioning:!1})})),M.each(function(C){C._x0=u(C.x0),C._x1=u(C.x1),C._y0=c(C.y0),C._y1=c(C.y1),C._hoverX=u(C.x1-Math.min(s,l)/2),C._hoverY=c(C.y1-l/2);var k=DBe.select(this),D=KI.ensureSingle(k,"path","surface",function(L){L.style("pointer-events",_?"none":"all")});d?D.transition().attrTween("d",function(L){var I=m(L,mJ,w,[s,l]);return function(B){return f(I(B))}}):D.attr("d",f),k.call(mtr,i,t,r,{styleOne:LBe,eventDataKeys:gJ.eventDataKeys,transitionTime:gJ.CLICK_TRANSITION_TIME,transitionEasing:gJ.CLICK_TRANSITION_EASING}).call(P4.setSliceCursor,t,{hideOnRoot:!1,hideOnLeaves:!1,isTransitioning:t._transitioning}),D.call(LBe,C,x,t,{hovered:!1}),C._text=(P4.getPtLabel(C)||"").split("
").join(" ")||"";var F=KI.ensureSingle(k,"g","slicetext"),P=KI.ensureSingle(F,"text","",function(L){L.attr("data-notex",1)}),R=KI.ensureUniformFontSize(t,P4.determineTextFont(x,C,b.font,{onPathbar:!0}));P.text(C._text||" ").classed("slicetext",!0).attr("text-anchor","start").call(FBe.font,R).call(vtr.convertToTspans,t),C.textBB=FBe.bBox(P.node()),C.transform=h(C,{fontSize:R.size,onPathbar:!0}),C.transform.fontSize=R.size,d?P.transition().attrTween("transform",function(L){var I=g(L,mJ,w,[s,l]);return function(B){return p(I(B))}}):P.attr("transform",p(C))})}});var qBe=W((AZr,BBe)=>{"use strict";var RBe=gi(),yJ=(S_(),Pt(M_)).interpolate,F2=xm(),TE=tt(),zBe=(Qy(),Pt(Jy)).TEXTPAD,ytr=Wb(),xtr=ytr.toMoveInsideBar,btr=of(),xJ=btr.recordMinTextSize,_tr=(C_(),Pt(k_)),wtr=IBe();function F_(e){return F2.isHierarchyRoot(e)?"":F2.getPtId(e)}BBe.exports=function(t,r,i,n,a){var o=t._fullLayout,s=r[0],l=s.trace,u=l.type,c=u==="icicle",f=s.hierarchy,h=F2.findEntryWithLevel(f,l.level),p=RBe.select(i),d=p.selectAll("g.pathbar"),v=p.selectAll("g.slice");if(!h){d.remove(),v.remove();return}var m=F2.isHierarchyRoot(h),g=!o.uniformtext.mode&&F2.hasTransition(n),w=F2.getMaxDepth(l),_=function(re){return re.data.depth-h.data.depth-1?A+E:-(y+E):0,C={x0:T,x1:T,y0:M,y1:M+y},k=function(re,pe,Te){var Ce=l.tiling.pad,ze=function(Ne){return Ne-Ce<=pe.x0},we=function(Ne){return Ne+Ce>=pe.x1},me=function(Ne){return Ne-Ce<=pe.y0},Le=function(Ne){return Ne+Ce>=pe.y1};return re.x0===pe.x0&&re.x1===pe.x1&&re.y0===pe.y0&&re.y1===pe.y1?{x0:re.x0,x1:re.x1,y0:re.y0,y1:re.y1}:{x0:ze(re.x0-Ce)?0:we(re.x0-Ce)?Te[0]:re.x0,x1:ze(re.x1+Ce)?0:we(re.x1+Ce)?Te[0]:re.x1,y0:me(re.y0-Ce)?0:Le(re.y0-Ce)?Te[1]:re.y0,y1:me(re.y1+Ce)?0:Le(re.y1+Ce)?Te[1]:re.y1}},D=null,F={},P={},R=null,L=function(re,pe){return pe?F[F_(re)]:P[F_(re)]},I=function(re,pe,Te,Ce){if(pe)return F[F_(f)]||C;var ze=P[l.level]||Te;return _(re)?k(re,ze,Ce):{}};s.hasMultipleRoots&&m&&w++,l._maxDepth=w,l._backgroundColor=o.paper_bgcolor,l._entryDepth=h.data.depth,l._atRootLevel=m;var B=-x/2+b.l+b.w*(S.x[1]+S.x[0])/2,O=-A/2+b.t+b.h*(1-(S.y[1]+S.y[0])/2),$=function(re){return B+re},X=function(re){return O+re},K=X(0),G=$(0),q=function(re){return G+re},J=function(re){return K+re};function N(re,pe){return re+","+pe}var V=q(0),Y=function(re){re.x=Math.max(V,re.x)},H=l.pathbar.edgeshape,j=function(re){var pe=q(Math.max(Math.min(re.x0,re.x0),0)),Te=q(Math.min(Math.max(re.x1,re.x1),T)),Ce=J(re.y0),ze=J(re.y1),we=y/2,me={},Le={};me.x=pe,Le.x=Te,me.y=Le.y=(Ce+ze)/2;var Ne={x:pe,y:Ce},Je={x:Te,y:Ce},rt={x:Te,y:ze},mt={x:pe,y:ze};return H===">"?(Ne.x-=we,Je.x-=we,rt.x-=we,mt.x-=we):H==="/"?(rt.x-=we,mt.x-=we,me.x-=we/2,Le.x-=we/2):H==="\\"?(Ne.x-=we,Je.x-=we,me.x-=we/2,Le.x-=we/2):H==="<"&&(me.x-=we,Le.x-=we),Y(Ne),Y(mt),Y(me),Y(Je),Y(rt),Y(Le),"M"+N(Ne.x,Ne.y)+"L"+N(Je.x,Je.y)+"L"+N(Le.x,Le.y)+"L"+N(rt.x,rt.y)+"L"+N(mt.x,mt.y)+"L"+N(me.x,me.y)+"Z"},Q=l[c?"tiling":"marker"].pad,te=function(re){return l.textposition.indexOf(re)!==-1},ue=te("top"),ge=te("left"),Ee=te("right"),xe=te("bottom"),ce=function(re){var pe=$(re.x0),Te=$(re.x1),Ce=X(re.y0),ze=X(re.y1),we=Te-pe,me=ze-Ce;if(!we||!me)return"";var Le=l.marker.cornerradius||0,Ne=Math.min(Le,we/2,me/2);Ne&&re.data&&re.data.data&&re.data.data.label&&(ue&&(Ne=Math.min(Ne,Q.t)),ge&&(Ne=Math.min(Ne,Q.l)),Ee&&(Ne=Math.min(Ne,Q.r)),xe&&(Ne=Math.min(Ne,Q.b)));var Je=function(rt,mt){return Ne?"a"+N(Ne,Ne)+" 0 0 1 "+N(rt,mt):""};return"M"+N(pe,Ce+Ne)+Je(Ne,-Ne)+"L"+N(Te-Ne,Ce)+Je(Ne,Ne)+"L"+N(Te,ze-Ne)+Je(-Ne,Ne)+"L"+N(pe+Ne,ze)+Je(-Ne,-Ne)+"Z"},oe=function(re,pe){var Te=re.x0,Ce=re.x1,ze=re.y0,we=re.y1,me=re.textBB,Le=ue||pe.isHeader&&!xe,Ne=Le?"start":xe?"end":"middle",Je=te("right"),rt=te("left")||pe.onPathbar,mt=rt?-1:Je?1:0;if(pe.isHeader){if(Te+=(c?Q:Q.l)-zBe,Ce-=(c?Q:Q.r)-zBe,Te>=Ce){var dt=(Te+Ce)/2;Te=dt,Ce=dt}var St;xe?(St=we-(c?Q:Q.b),ze{"use strict";var Ttr=gi(),Atr=xm(),Mtr=of(),Str=Mtr.clearMinTextSize,Etr=zd().resizeText,OBe=qBe();NBe.exports=function(t,r,i,n,a){var o=a.type,s=a.drawDescendants,l=t._fullLayout,u=l["_"+o+"layer"],c,f,h=!i;if(Str(o,l),c=u.selectAll("g.trace."+o).data(r,function(d){return d[0].trace.uid}),c.enter().append("g").classed("trace",!0).classed(o,!0),c.order(),!l.uniformtext.mode&&Atr.hasTransition(i)){n&&(f=n());var p=Ttr.transition().duration(i.duration).ease(i.easing).each("end",function(){f&&f()}).each("interrupt",function(){f&&f()});p.each(function(){u.selectAll("g.trace").each(function(d){OBe(t,d,this,i,s)})})}else c.each(function(d){OBe(t,d,this,i,s)}),l.uniformtext.mode&&Etr(t,u.selectAll(".trace"),o);h&&c.exit().remove()}});var jBe=W((SZr,HBe)=>{"use strict";var UBe=gi(),JI=tt(),VBe=Qi(),ktr=ao(),Ctr=pJ(),GBe=ZI().styleOne,_J=(C_(),Pt(k_)),L2=xm(),Dtr=_E(),Ftr=YI().formatSliceLabel,wJ=!1;HBe.exports=function(t,r,i,n,a){var o=a.width,s=a.height,l=a.viewX,u=a.viewY,c=a.pathSlice,f=a.toMoveInsideSlice,h=a.strTransform,p=a.hasTransition,d=a.handleSlicesExit,v=a.makeUpdateSliceInterpolator,m=a.makeUpdateTextInterpolator,g=a.prevEntry,w={},_=t._context.staticPlot,b=t._fullLayout,S=r[0],x=S.trace,A=x.textposition.indexOf("left")!==-1,T=x.textposition.indexOf("right")!==-1,y=x.textposition.indexOf("bottom")!==-1,E=!y&&!x.marker.pad.t||y&&!x.marker.pad.b,M=Ctr(i,[o,s],{packing:x.tiling.packing,squarifyratio:x.tiling.squarifyratio,flipX:x.tiling.flip.indexOf("x")>-1,flipY:x.tiling.flip.indexOf("y")>-1,pad:{inner:x.tiling.pad,top:x.marker.pad.t,left:x.marker.pad.l,right:x.marker.pad.r,bottom:x.marker.pad.b}}),C=M.descendants(),k=1/0,D=-1/0;C.forEach(function(I){var B=I.depth;B>=x._maxDepth?(I.x0=I.x1=(I.x0+I.x1)/2,I.y0=I.y1=(I.y0+I.y1)/2):(k=Math.min(k,B),D=Math.max(D,B))}),n=n.data(C,L2.getPtId),x._maxVisibleLayers=isFinite(D)?D-k+1:0,n.enter().append("g").classed("slice",!0),d(n,wJ,w,[o,s],c),n.order();var F=null;if(p&&g){var P=L2.getPtId(g);n.each(function(I){F===null&&L2.getPtId(I)===P&&(F={x0:I.x0,x1:I.x1,y0:I.y0,y1:I.y1})})}var R=function(){return F||{x0:0,x1:o,y0:0,y1:s}},L=n;return p&&(L=L.transition().each("end",function(){var I=UBe.select(this);L2.setSliceCursor(I,t,{hideOnRoot:!0,hideOnLeaves:!1,isTransitioning:!1})})),L.each(function(I){var B=L2.isHeader(I,x);I._x0=l(I.x0),I._x1=l(I.x1),I._y0=u(I.y0),I._y1=u(I.y1),I._hoverX=l(I.x1-x.marker.pad.r),I._hoverY=u(y?I.y1-x.marker.pad.b/2:I.y0+x.marker.pad.t/2);var O=UBe.select(this),$=JI.ensureSingle(O,"path","surface",function(N){N.style("pointer-events",_?"none":"all")});p?$.transition().attrTween("d",function(N){var V=v(N,wJ,R(),[o,s]);return function(Y){return c(V(Y))}}):$.attr("d",c),O.call(Dtr,i,t,r,{styleOne:GBe,eventDataKeys:_J.eventDataKeys,transitionTime:_J.CLICK_TRANSITION_TIME,transitionEasing:_J.CLICK_TRANSITION_EASING}).call(L2.setSliceCursor,t,{isTransitioning:t._transitioning}),$.call(GBe,I,x,t,{hovered:!1}),I.x0===I.x1||I.y0===I.y1?I._text="":B?I._text=E?"":L2.getPtLabel(I)||"":I._text=Ftr(I,i,x,r,b)||"";var X=JI.ensureSingle(O,"g","slicetext"),K=JI.ensureSingle(X,"text","",function(N){N.attr("data-notex",1)}),G=JI.ensureUniformFontSize(t,L2.determineTextFont(x,I,b.font)),q=I._text||" ",J=B&&q.indexOf("
")===-1;K.text(q).classed("slicetext",!0).attr("text-anchor",T?"end":A||J?"start":"middle").call(VBe.font,G).call(ktr.convertToTspans,t),I.textBB=VBe.bBox(K.node()),I.transform=f(I,{fontSize:G.size,isHeader:B}),I.transform.fontSize=G.size,p?K.transition().attrTween("transform",function(N){var V=m(N,wJ,R(),[o,s]);return function(Y){return h(V(Y))}}):K.attr("transform",h(I))}),F}});var WBe=W((EZr,$Be)=>{"use strict";var Ltr=bJ(),Ptr=jBe();$Be.exports=function(t,r,i,n){return Ltr(t,r,i,n,{type:"treemap",drawDescendants:Ptr})}});var XBe=W((kZr,YBe)=>{"use strict";YBe.exports={moduleType:"trace",name:"treemap",basePlotModule:hBe(),categories:[],animatable:!0,attributes:XI(),layoutAttributes:cJ(),supplyDefaults:bBe(),supplyLayoutDefaults:wBe(),calc:hJ().calc,crossTraceCalc:hJ().crossTraceCalc,plot:WBe(),style:ZI().style,colorbar:Cc(),meta:{}}});var KBe=W((CZr,ZBe)=>{"use strict";ZBe.exports=XBe()});var QBe=W(I4=>{"use strict";var JBe=Qo();I4.name="icicle";I4.plot=function(e,t,r,i){JBe.plotBasePlot(I4.name,e,t,r,i)};I4.clean=function(e,t,r,i){JBe.cleanBasePlot(I4.name,e,t,r,i)}});var TJ=W((FZr,rqe)=>{"use strict";var{hovertemplateAttrs:Itr,texttemplateAttrs:Rtr,templatefallbackAttrs:eqe}=Wa(),ztr=Fo(),Btr=ds().attributes,AE=m_(),N0=sE(),QI=XI(),tqe=(C_(),Pt(k_)),qtr=an().extendFlat,Otr=zu().pattern;rqe.exports={labels:N0.labels,parents:N0.parents,values:N0.values,branchvalues:N0.branchvalues,count:N0.count,level:N0.level,maxdepth:N0.maxdepth,tiling:{orientation:{valType:"enumerated",values:["v","h"],dflt:"h",editType:"plot"},flip:QI.tiling.flip,pad:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"calc"},marker:qtr({colors:N0.marker.colors,line:N0.marker.line,pattern:Otr,editType:"calc"},ztr("marker",{colorAttr:"colors",anim:!1})),leaf:N0.leaf,pathbar:QI.pathbar,text:AE.text,textinfo:N0.textinfo,texttemplate:Rtr({editType:"plot"},{keys:tqe.eventDataKeys.concat(["label","value"])}),texttemplatefallback:eqe({editType:"plot"}),hovertext:AE.hovertext,hoverinfo:N0.hoverinfo,hovertemplate:Itr({},{keys:tqe.eventDataKeys}),hovertemplatefallback:eqe(),textfont:AE.textfont,insidetextfont:AE.insidetextfont,outsidetextfont:QI.outsidetextfont,textposition:QI.textposition,sort:AE.sort,root:N0.root,domain:Btr({name:"icicle",trace:!0,editType:"calc"})}});var AJ=W((LZr,iqe)=>{"use strict";iqe.exports={iciclecolorway:{valType:"colorlist",editType:"calc"},extendiciclecolors:{valType:"boolean",dflt:!0,editType:"calc"}}});var sqe=W((PZr,oqe)=>{"use strict";var nqe=tt(),Ntr=TJ(),Utr=ti(),Vtr=ds().defaults,Gtr=I0().handleText,Htr=(Qy(),Pt(Jy)).TEXTPAD,jtr=y_().handleMarkerDefaults,aqe=es(),$tr=aqe.hasColorscale,Wtr=aqe.handleDefaults;oqe.exports=function(t,r,i,n){function a(p,d){return nqe.coerce(t,r,Ntr,p,d)}var o=a("labels"),s=a("parents");if(!o||!o.length||!s||!s.length){r.visible=!1;return}var l=a("values");l&&l.length?a("branchvalues"):a("count"),a("level"),a("maxdepth"),a("tiling.orientation"),a("tiling.flip"),a("tiling.pad");var u=a("text");a("texttemplate"),a("texttemplatefallback"),r.texttemplate||a("textinfo",nqe.isArrayOrTypedArray(u)?"text+label":"label"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback");var c=a("pathbar.visible"),f="auto";Gtr(t,r,n,a,f,{hasPathbar:c,moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1}),a("textposition"),jtr(t,r,n,a);var h=r._hasColorscale=$tr(t,"marker","colors")||(t.marker||{}).coloraxis;h&&Wtr(t,r,n,a,{prefix:"marker.",cLetter:"c"}),a("leaf.opacity",h?1:.7),r._hovered={marker:{line:{width:2,color:Utr.contrast(n.paper_bgcolor)}}},c&&(a("pathbar.thickness",r.pathbar.textfont.size+2*Htr),a("pathbar.side"),a("pathbar.edgeshape")),a("sort"),a("root.color"),Vtr(r,n,a),r._length=null}});var uqe=W((IZr,lqe)=>{"use strict";var Ytr=tt(),Xtr=AJ();lqe.exports=function(t,r){function i(n,a){return Ytr.coerce(t,r,Xtr,n,a)}i("iciclecolorway",r.colorway),i("extendiciclecolors")}});var SJ=W(MJ=>{"use strict";var cqe=cE();MJ.calc=function(e,t){return cqe.calc(e,t)};MJ.crossTraceCalc=function(e){return cqe._runCrossTraceCalc("icicle",e)}});var hqe=W((zZr,fqe)=>{"use strict";var Ztr=lE(),Ktr=dJ();fqe.exports=function(t,r,i){var n=i.flipX,a=i.flipY,o=i.orientation==="h",s=i.maxDepth,l=r[0],u=r[1];s&&(l=(t.height+1)*r[0]/Math.min(t.height+1,s),u=(t.height+1)*r[1]/Math.min(t.height+1,s));var c=Ztr.partition().padding(i.pad.inner).size(o?[r[1],l]:[r[0],u])(t);return(o||n||a)&&Ktr(c,r,{swapXY:o,flipX:n,flipY:a}),c}});var EJ=W((BZr,mqe)=>{"use strict";var dqe=gi(),pqe=ti(),vqe=tt(),Jtr=of().resizeText,Qtr=$I();function err(e){var t=e._fullLayout._iciclelayer.selectAll(".trace");Jtr(e,t,"icicle"),t.each(function(r){var i=dqe.select(this),n=r[0],a=n.trace;i.style("opacity",a.opacity),i.selectAll("path.surface").each(function(o){dqe.select(this).call(gqe,o,a,e)})})}function gqe(e,t,r,i){var n=t.data.data,a=!t.children,o=n.i,s=vqe.castOption(r,o,"marker.line.color")||pqe.defaultLine,l=vqe.castOption(r,o,"marker.line.width")||0;e.call(Qtr,t,r,i).style("stroke-width",l).call(pqe.stroke,s).style("opacity",a?r.leaf.opacity:null)}mqe.exports={style:err,styleOne:gqe}});var wqe=W((qZr,_qe)=>{"use strict";var yqe=gi(),eR=tt(),xqe=Qi(),trr=ao(),rrr=hqe(),bqe=EJ().styleOne,kJ=(C_(),Pt(k_)),R4=xm(),irr=_E(),nrr=YI().formatSliceLabel,CJ=!1;_qe.exports=function(t,r,i,n,a){var o=a.width,s=a.height,l=a.viewX,u=a.viewY,c=a.pathSlice,f=a.toMoveInsideSlice,h=a.strTransform,p=a.hasTransition,d=a.handleSlicesExit,v=a.makeUpdateSliceInterpolator,m=a.makeUpdateTextInterpolator,g=a.prevEntry,w={},_=t._context.staticPlot,b=t._fullLayout,S=r[0],x=S.trace,A=x.textposition.indexOf("left")!==-1,T=x.textposition.indexOf("right")!==-1,y=x.textposition.indexOf("bottom")!==-1,E=rrr(i,[o,s],{flipX:x.tiling.flip.indexOf("x")>-1,flipY:x.tiling.flip.indexOf("y")>-1,orientation:x.tiling.orientation,pad:{inner:x.tiling.pad},maxDepth:x._maxDepth}),M=E.descendants(),C=1/0,k=-1/0;M.forEach(function(L){var I=L.depth;I>=x._maxDepth?(L.x0=L.x1=(L.x0+L.x1)/2,L.y0=L.y1=(L.y0+L.y1)/2):(C=Math.min(C,I),k=Math.max(k,I))}),n=n.data(M,R4.getPtId),x._maxVisibleLayers=isFinite(k)?k-C+1:0,n.enter().append("g").classed("slice",!0),d(n,CJ,w,[o,s],c),n.order();var D=null;if(p&&g){var F=R4.getPtId(g);n.each(function(L){D===null&&R4.getPtId(L)===F&&(D={x0:L.x0,x1:L.x1,y0:L.y0,y1:L.y1})})}var P=function(){return D||{x0:0,x1:o,y0:0,y1:s}},R=n;return p&&(R=R.transition().each("end",function(){var L=yqe.select(this);R4.setSliceCursor(L,t,{hideOnRoot:!0,hideOnLeaves:!1,isTransitioning:!1})})),R.each(function(L){L._x0=l(L.x0),L._x1=l(L.x1),L._y0=u(L.y0),L._y1=u(L.y1),L._hoverX=l(L.x1-x.tiling.pad),L._hoverY=u(y?L.y1-x.tiling.pad/2:L.y0+x.tiling.pad/2);var I=yqe.select(this),B=eR.ensureSingle(I,"path","surface",function(K){K.style("pointer-events",_?"none":"all")});p?B.transition().attrTween("d",function(K){var G=v(K,CJ,P(),[o,s],{orientation:x.tiling.orientation,flipX:x.tiling.flip.indexOf("x")>-1,flipY:x.tiling.flip.indexOf("y")>-1});return function(q){return c(G(q))}}):B.attr("d",c),I.call(irr,i,t,r,{styleOne:bqe,eventDataKeys:kJ.eventDataKeys,transitionTime:kJ.CLICK_TRANSITION_TIME,transitionEasing:kJ.CLICK_TRANSITION_EASING}).call(R4.setSliceCursor,t,{isTransitioning:t._transitioning}),B.call(bqe,L,x,t,{hovered:!1}),L.x0===L.x1||L.y0===L.y1?L._text="":L._text=nrr(L,i,x,r,b)||"";var O=eR.ensureSingle(I,"g","slicetext"),$=eR.ensureSingle(O,"text","",function(K){K.attr("data-notex",1)}),X=eR.ensureUniformFontSize(t,R4.determineTextFont(x,L,b.font));$.text(L._text||" ").classed("slicetext",!0).attr("text-anchor",T?"end":A?"start":"middle").call(xqe.font,X).call(trr.convertToTspans,t),L.textBB=xqe.bBox($.node()),L.transform=f(L,{fontSize:X.size}),L.transform.fontSize=X.size,p?$.transition().attrTween("transform",function(K){var G=m(K,CJ,P(),[o,s]);return function(q){return h(G(q))}}):$.attr("transform",h(L))}),D}});var Aqe=W((OZr,Tqe)=>{"use strict";var arr=bJ(),orr=wqe();Tqe.exports=function(t,r,i,n){return arr(t,r,i,n,{type:"icicle",drawDescendants:orr})}});var Sqe=W((NZr,Mqe)=>{"use strict";Mqe.exports={moduleType:"trace",name:"icicle",basePlotModule:QBe(),categories:[],animatable:!0,attributes:TJ(),layoutAttributes:AJ(),supplyDefaults:sqe(),supplyLayoutDefaults:uqe(),calc:SJ().calc,crossTraceCalc:SJ().crossTraceCalc,plot:Aqe(),style:EJ().style,colorbar:Cc(),meta:{}}});var kqe=W((UZr,Eqe)=>{"use strict";Eqe.exports=Sqe()});var Dqe=W(z4=>{"use strict";var Cqe=Qo();z4.name="funnelarea";z4.plot=function(e,t,r,i){Cqe.plotBasePlot(z4.name,e,t,r,i)};z4.clean=function(e,t,r,i){Cqe.cleanBasePlot(z4.name,e,t,r,i)}});var DJ=W((GZr,Lqe)=>{"use strict";var Ic=m_(),srr=Ja(),lrr=ds().attributes,{hovertemplateAttrs:urr,texttemplateAttrs:crr,templatefallbackAttrs:Fqe}=Wa(),L_=an().extendFlat;Lqe.exports={labels:Ic.labels,label0:Ic.label0,dlabel:Ic.dlabel,values:Ic.values,marker:{colors:Ic.marker.colors,line:{color:L_({},Ic.marker.line.color,{dflt:null}),width:L_({},Ic.marker.line.width,{dflt:1}),editType:"calc"},pattern:Ic.marker.pattern,editType:"calc"},text:Ic.text,hovertext:Ic.hovertext,scalegroup:L_({},Ic.scalegroup,{}),textinfo:L_({},Ic.textinfo,{flags:["label","text","value","percent"]}),texttemplate:crr({editType:"plot"},{keys:["label","color","value","text","percent"]}),texttemplatefallback:Fqe({editType:"plot"}),hoverinfo:L_({},srr.hoverinfo,{flags:["label","text","value","percent","name"]}),hovertemplate:urr({},{keys:["label","color","value","text","percent"]}),hovertemplatefallback:Fqe(),textposition:L_({},Ic.textposition,{values:["inside","none"],dflt:"inside"}),textfont:Ic.textfont,insidetextfont:Ic.insidetextfont,title:{text:Ic.title.text,font:Ic.title.font,position:L_({},Ic.title.position,{values:["top left","top center","top right"],dflt:"top center"}),editType:"plot"},domain:lrr({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"}}});var FJ=W((HZr,Pqe)=>{"use strict";var frr=_I().hiddenlabels;Pqe.exports={hiddenlabels:frr,funnelareacolorway:{valType:"colorlist",editType:"calc"},extendfunnelareacolors:{valType:"boolean",dflt:!0,editType:"calc"}}});var zqe=W((jZr,Rqe)=>{"use strict";var Iqe=tt(),hrr=DJ(),drr=ds().defaults,prr=I0().handleText,vrr=y_().handleLabelsAndValues,grr=y_().handleMarkerDefaults;Rqe.exports=function(t,r,i,n){function a(v,m){return Iqe.coerce(t,r,hrr,v,m)}var o=a("labels"),s=a("values"),l=vrr(o,s),u=l.len;if(r._hasLabels=l.hasLabels,r._hasValues=l.hasValues,!r._hasLabels&&r._hasValues&&(a("label0"),a("dlabel")),!u){r.visible=!1;return}r._length=u,grr(t,r,n,a),a("scalegroup");var c=a("text"),f=a("texttemplate");a("texttemplatefallback");var h;if(f||(h=a("textinfo",Array.isArray(c)?"text+percent":"percent")),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback"),f||h&&h!=="none"){var p=a("textposition");prr(t,r,n,a,p,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1})}else h==="none"&&a("textposition","none");drr(r,n,a);var d=a("title.text");d&&(a("title.position"),Iqe.coerceFont(a,"title.font",n.font)),a("aspectratio"),a("baseratio")}});var qqe=W(($Zr,Bqe)=>{"use strict";var mrr=tt(),yrr=FJ();Bqe.exports=function(t,r){function i(n,a){return mrr.coerce(t,r,yrr,n,a)}i("hiddenlabels"),i("funnelareacolorway",r.colorway),i("extendfunnelareacolors")}});var LJ=W((WZr,Nqe)=>{"use strict";var Oqe=y4();function xrr(e,t){return Oqe.calc(e,t)}function brr(e){Oqe.crossTraceCalc(e,{type:"funnelarea"})}Nqe.exports={calc:xrr,crossTraceCalc:brr}});var jqe=W((YZr,Hqe)=>{"use strict";var P_=gi(),PJ=Qi(),P2=tt(),_rr=P2.strScale,Uqe=P2.strTranslate,Vqe=ao(),wrr=Wb(),Trr=wrr.toMoveInsideBar,Gqe=of(),Arr=Gqe.recordMinTextSize,Mrr=Gqe.clearMinTextSize,Srr=Gy(),B4=MI(),Err=B4.attachFxHandlers,krr=B4.determineInsideTextFont,Crr=B4.layoutAreas,Drr=B4.prerenderTitles,Frr=B4.positionTitleOutside,Lrr=B4.formatSliceLabel;Hqe.exports=function(t,r){var i=t._context.staticPlot,n=t._fullLayout;Mrr("funnelarea",n),Drr(r,t),Crr(r,n._size),P2.makeTraceGroups(n._funnelarealayer,r,"trace").each(function(a){var o=P_.select(this),s=a[0],l=s.trace;Irr(a),o.each(function(){var u=P_.select(this).selectAll("g.slice").data(a);u.enter().append("g").classed("slice",!0),u.exit().remove(),u.each(function(f,h){if(f.hidden){P_.select(this).selectAll("path,g").remove();return}f.pointNumber=f.i,f.curveNumber=l.index;var p=s.cx,d=s.cy,v=P_.select(this),m=v.selectAll("path.surface").data([f]);m.enter().append("path").classed("surface",!0).style({"pointer-events":i?"none":"all"}),v.call(Err,t,a);var g="M"+(p+f.TR[0])+","+(d+f.TR[1])+IJ(f.TR,f.BR)+IJ(f.BR,f.BL)+IJ(f.BL,f.TL)+"Z";m.attr("d",g),Lrr(t,f,s);var w=Srr.castOption(l.textposition,f.pts),_=v.selectAll("g.slicetext").data(f.text&&w!=="none"?[0]:[]);_.enter().append("g").classed("slicetext",!0),_.exit().remove(),_.each(function(){var b=P2.ensureSingle(P_.select(this),"text","",function(C){C.attr("data-notex",1)}),S=P2.ensureUniformFontSize(t,krr(l,f,n.font));b.text(f.text).attr({class:"slicetext",transform:"","text-anchor":"middle"}).call(PJ.font,S).call(Vqe.convertToTspans,t);var x=PJ.bBox(b.node()),A,T,y,E=Math.min(f.BL[1],f.BR[1])+d,M=Math.max(f.TL[1],f.TR[1])+d;T=Math.max(f.TL[0],f.BL[0])+p,y=Math.min(f.TR[0],f.BR[0])+p,A=Trr(T,y,E,M,x,{isHorizontal:!0,constrained:!0,angle:0,anchor:"middle"}),A.fontSize=S.size,Arr(l.type,A,n),a[h].transform=A,P2.setTransormAndDisplay(b,A)})});var c=P_.select(this).selectAll("g.titletext").data(l.title.text?[0]:[]);c.enter().append("g").classed("titletext",!0),c.exit().remove(),c.each(function(){var f=P2.ensureSingle(P_.select(this),"text","",function(d){d.attr("data-notex",1)}),h=l.title.text;l._meta&&(h=P2.templateString(h,l._meta)),f.text(h).attr({class:"titletext",transform:"","text-anchor":"middle"}).call(PJ.font,l.title.font).call(Vqe.convertToTspans,t);var p=Frr(s,n._size);f.attr("transform",Uqe(p.x,p.y)+_rr(Math.min(1,p.scale))+Uqe(p.tx,p.ty))})})})};function IJ(e,t){var r=t[0]-e[0],i=t[1]-e[1];return"l"+r+","+i}function Prr(e,t){return[.5*(e[0]+t[0]),.5*(e[1]+t[1])]}function Irr(e){if(!e.length)return;var t=e[0],r=t.trace,i=r.aspectratio,n=r.baseratio;n>.999&&(n=.999);var a=Math.pow(n,2),o=t.vTotal,s=o*a/(1-a),l=o,u=s/o;function c(){var k=Math.sqrt(u);return{x:k,y:-k}}function f(){var k=c();return[k.x,k.y]}var h,p=[];p.push(f());var d,v;for(d=e.length-1;d>-1;d--)if(v=e[d],!v.hidden){var m=v.v/l;u+=m,p.push(f())}var g=1/0,w=-1/0;for(d=0;d-1;d--)if(v=e[d],!v.hidden){E+=1;var M=p[E][0],C=p[E][1];v.TL=[-M,C],v.TR=[M,C],v.BL=T,v.BR=y,v.pxmid=Prr(v.TR,v.BR),T=v.TL,y=v.TR}}});var Yqe=W((XZr,Wqe)=>{"use strict";var $qe=gi(),Rrr=Nw(),zrr=of().resizeText;Wqe.exports=function(t){var r=t._fullLayout._funnelarealayer.selectAll(".trace");zrr(t,r,"funnelarea"),r.each(function(i){var n=i[0],a=n.trace,o=$qe.select(this);o.style({opacity:a.opacity}),o.selectAll("path.surface").each(function(s){$qe.select(this).call(Rrr,s,a,t)})})}});var Zqe=W((ZZr,Xqe)=>{"use strict";Xqe.exports={moduleType:"trace",name:"funnelarea",basePlotModule:Dqe(),categories:["pie-like","funnelarea","showLegend"],attributes:DJ(),layoutAttributes:FJ(),supplyDefaults:zqe(),supplyLayoutDefaults:qqe(),calc:LJ().calc,crossTraceCalc:LJ().crossTraceCalc,plot:jqe(),style:Yqe(),styleOne:Nw(),meta:{}}});var Jqe=W((KZr,Kqe)=>{"use strict";Kqe.exports=Zqe()});var uc=W((JZr,Qqe)=>{"use strict";(()=>{var e={3065(n,a,o){n.exports={alpha_shape:o(3502),convex_hull:o(7352),delaunay_triangulate:o(7642),gl_cone3d:o(6405),gl_error3d:o(9165),gl_line3d:o(5714),gl_mesh3d:o(7201),gl_plot3d:o(4100),gl_scatter3d:o(8418),gl_streamtube3d:o(7815),gl_surface3d:o(9499),ndarray:o(9618),ndarray_linear_interpolate:o(4317)}},6296(n,a,o){"use strict";n.exports=h;var s=o(7261),l=o(9977),u=o(1811);function c(p,d){this._controllerNames=Object.keys(p),this._controllerList=this._controllerNames.map(function(v){return p[v]}),this._mode=d,this._active=p[d],this._active||(this._mode="turntable",this._active=p.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 f=c.prototype;f.flush=function(p){for(var d=this._controllerList,v=0;v0)throw new Error("Invalid string. Length must be a multiple of 4");var S=_.indexOf("=");S===-1&&(S=b);var x=S===b?0:4-S%4;return[S,x]}function p(_){var b=h(_),S=b[0],x=b[1];return(S+x)*3/4-x}function d(_,b,S){return(b+S)*3/4-S}function v(_){var b,S=h(_),x=S[0],A=S[1],T=new l(d(_,x,A)),y=0,E=A>0?x-4:x,M;for(M=0;M>16&255,T[y++]=b>>8&255,T[y++]=b&255;return A===2&&(b=s[_.charCodeAt(M)]<<2|s[_.charCodeAt(M+1)]>>4,T[y++]=b&255),A===1&&(b=s[_.charCodeAt(M)]<<10|s[_.charCodeAt(M+1)]<<4|s[_.charCodeAt(M+2)]>>2,T[y++]=b>>8&255,T[y++]=b&255),T}function m(_){return o[_>>18&63]+o[_>>12&63]+o[_>>6&63]+o[_&63]}function g(_,b,S){for(var x,A=[],T=b;TE?E:y+T));return x===1?(b=_[S-1],A.push(o[b>>2]+o[b<<4&63]+"==")):x===2&&(b=(_[S-2]<<8)+_[S-1],A.push(o[b>>10]+o[b>>4&63]+o[b<<2&63]+"=")),A.join("")}},3865(n,a,o){"use strict";var s=o(869);n.exports=l;function l(u,c){return s(u[0].mul(c[1]).add(c[0].mul(u[1])),u[1].mul(c[1]))}},1318(n){"use strict";n.exports=a;function a(o,s){return o[0].mul(s[1]).cmp(s[0].mul(o[1]))}},8697(n,a,o){"use strict";var s=o(869);n.exports=l;function l(u,c){return s(u[0].mul(c[1]),u[1].mul(c[0]))}},7842(n,a,o){"use strict";var s=o(6330),l=o(1533),u=o(2651),c=o(6768),f=o(869),h=o(8697);n.exports=p;function p(d,v){if(s(d))return v?h(d,p(v)):[d[0].clone(),d[1].clone()];var m=0,g,w;if(l(d))g=d.clone();else if(typeof d=="string")g=c(d);else{if(d===0)return[u(0),u(1)];if(d===Math.floor(d))g=u(d);else{for(;d!==Math.floor(d);)d=d*Math.pow(2,256),m-=256;g=u(d)}}if(s(v))g.mul(v[1]),w=v[0].clone();else if(l(v))w=v.clone();else if(typeof v=="string")w=c(v);else if(!v)w=u(1);else if(v===Math.floor(v))w=u(v);else{for(;v!==Math.floor(v);)v=v*Math.pow(2,256),m+=256;w=u(v)}return m>0?g=g.ushln(m):m<0&&(w=w.ushln(-m)),f(g,w)}},6330(n,a,o){"use strict";var s=o(1533);n.exports=l;function l(u){return Array.isArray(u)&&u.length===2&&s(u[0])&&s(u[1])}},5716(n,a,o){"use strict";var s=o(6859);n.exports=l;function l(u){return u.cmp(new s(0))}},1369(n,a,o){"use strict";var s=o(5716);n.exports=l;function l(u){var c=u.length,f=u.words,h=0;if(c===1)h=f[0];else if(c===2)h=f[0]+f[1]*67108864;else for(var p=0;p20?52:h+32}},1533(n,a,o){"use strict";var s=o(6859);n.exports=l;function l(u){return u&&typeof u=="object"&&!!u.words}},2651(n,a,o){"use strict";var s=o(6859),l=o(2361);n.exports=u;function u(c){var f=l.exponent(c);return f<52?new s(c):new s(c*Math.pow(2,52-f)).ushln(f-52)}},869(n,a,o){"use strict";var s=o(2651),l=o(5716);n.exports=u;function u(c,f){var h=l(c),p=l(f);if(h===0)return[s(0),s(1)];if(p===0)return[s(0),s(0)];p<0&&(c=c.neg(),f=f.neg());var d=c.gcd(f);return d.cmpn(1)?[c.div(d),f.div(d)]:[c,f]}},6768(n,a,o){"use strict";var s=o(6859);n.exports=l;function l(u){return new s(u)}},6504(n,a,o){"use strict";var s=o(869);n.exports=l;function l(u,c){return s(u[0].mul(c[0]),u[1].mul(c[1]))}},7721(n,a,o){"use strict";var s=o(5716);n.exports=l;function l(u){return s(u[0])*s(u[1])}},5572(n,a,o){"use strict";var s=o(869);n.exports=l;function l(u,c){return s(u[0].mul(c[1]).sub(u[1].mul(c[0])),u[1].mul(c[1]))}},946(n,a,o){"use strict";var s=o(1369),l=o(4025);n.exports=u;function u(c){var f=c[0],h=c[1];if(f.cmpn(0)===0)return 0;var p=f.abs().divmod(h.abs()),d=p.div,v=s(d),m=p.mod,g=f.negative!==h.negative?-1:1;if(m.cmpn(0)===0)return g*v;if(v){var w=l(v)+4,_=s(m.ushln(w).divRound(h));return g*(v+_*Math.pow(2,-w))}else{var b=h.bitLength()-m.bitLength()+53,_=s(m.ushln(b).divRound(h));return b<1023?g*_*Math.pow(2,-b):(_*=Math.pow(2,-1023),g*_*Math.pow(2,1023-b))}}},2478(n){"use strict";function a(f,h,p,d,v){for(var m=v+1;d<=v;){var g=d+v>>>1,w=f[g],_=p!==void 0?p(w,h):w-h;_>=0?(m=g,v=g-1):d=g+1}return m}function o(f,h,p,d,v){for(var m=v+1;d<=v;){var g=d+v>>>1,w=f[g],_=p!==void 0?p(w,h):w-h;_>0?(m=g,v=g-1):d=g+1}return m}function s(f,h,p,d,v){for(var m=d-1;d<=v;){var g=d+v>>>1,w=f[g],_=p!==void 0?p(w,h):w-h;_<0?(m=g,d=g+1):v=g-1}return m}function l(f,h,p,d,v){for(var m=d-1;d<=v;){var g=d+v>>>1,w=f[g],_=p!==void 0?p(w,h):w-h;_<=0?(m=g,d=g+1):v=g-1}return m}function u(f,h,p,d,v){for(;d<=v;){var m=d+v>>>1,g=f[m],w=p!==void 0?p(g,h):g-h;if(w===0)return m;w<=0?d=m+1:v=m-1}return-1}function c(f,h,p,d,v,m){return typeof p=="function"?m(f,h,p,d===void 0?0:d|0,v===void 0?f.length-1:v|0):m(f,h,void 0,p===void 0?0:p|0,d===void 0?f.length-1:d|0)}n.exports={ge:function(f,h,p,d,v){return c(f,h,p,d,v,a)},gt:function(f,h,p,d,v){return c(f,h,p,d,v,o)},lt:function(f,h,p,d,v){return c(f,h,p,d,v,s)},le:function(f,h,p,d,v){return c(f,h,p,d,v,l)},eq:function(f,h,p,d,v){return c(f,h,p,d,v,u)}}},8828(n,a){"use strict";"use restrict";var o=32;a.INT_BITS=o,a.INT_MAX=2147483647,a.INT_MIN=-1<0)-(u<0)},a.abs=function(u){var c=u>>o-1;return(u^c)-c},a.min=function(u,c){return c^(u^c)&-(u65535)<<4,u>>>=c,f=(u>255)<<3,u>>>=f,c|=f,f=(u>15)<<2,u>>>=f,c|=f,f=(u>3)<<1,u>>>=f,c|=f,c|u>>1},a.log10=function(u){return u>=1e9?9:u>=1e8?8:u>=1e7?7:u>=1e6?6:u>=1e5?5:u>=1e4?4:u>=1e3?3:u>=100?2:u>=10?1:0},a.popCount=function(u){return u=u-(u>>>1&1431655765),u=(u&858993459)+(u>>>2&858993459),(u+(u>>>4)&252645135)*16843009>>>24};function s(u){var c=32;return u&=-u,u&&c--,u&65535&&(c-=16),u&16711935&&(c-=8),u&252645135&&(c-=4),u&858993459&&(c-=2),u&1431655765&&(c-=1),c}a.countTrailingZeros=s,a.nextPow2=function(u){return u+=u===0,--u,u|=u>>>1,u|=u>>>2,u|=u>>>4,u|=u>>>8,u|=u>>>16,u+1},a.prevPow2=function(u){return u|=u>>>1,u|=u>>>2,u|=u>>>4,u|=u>>>8,u|=u>>>16,u-(u>>>1)},a.parity=function(u){return u^=u>>>16,u^=u>>>8,u^=u>>>4,u&=15,27030>>>u&1};var l=new Array(256);(function(u){for(var c=0;c<256;++c){var f=c,h=c,p=7;for(f>>>=1;f;f>>>=1)h<<=1,h|=f&1,--p;u[c]=h<>>8&255]<<16|l[u>>>16&255]<<8|l[u>>>24&255]},a.interleave2=function(u,c){return u&=65535,u=(u|u<<8)&16711935,u=(u|u<<4)&252645135,u=(u|u<<2)&858993459,u=(u|u<<1)&1431655765,c&=65535,c=(c|c<<8)&16711935,c=(c|c<<4)&252645135,c=(c|c<<2)&858993459,c=(c|c<<1)&1431655765,u|c<<1},a.deinterleave2=function(u,c){return u=u>>>c&1431655765,u=(u|u>>>1)&858993459,u=(u|u>>>2)&252645135,u=(u|u>>>4)&16711935,u=(u|u>>>16)&65535,u<<16>>16},a.interleave3=function(u,c,f){return u&=1023,u=(u|u<<16)&4278190335,u=(u|u<<8)&251719695,u=(u|u<<4)&3272356035,u=(u|u<<2)&1227133513,c&=1023,c=(c|c<<16)&4278190335,c=(c|c<<8)&251719695,c=(c|c<<4)&3272356035,c=(c|c<<2)&1227133513,u|=c<<1,f&=1023,f=(f|f<<16)&4278190335,f=(f|f<<8)&251719695,f=(f|f<<4)&3272356035,f=(f|f<<2)&1227133513,u|f<<2},a.deinterleave3=function(u,c){return u=u>>>c&1227133513,u=(u|u>>>2)&3272356035,u=(u|u>>>4)&251719695,u=(u|u>>>8)&4278190335,u=(u|u>>>16)&1023,u<<22>>22},a.nextCombination=function(u){var c=u|u-1;return c+1|(~c&-~c)-1>>>s(u)+1}},6859(n,a,o){n=o.nmd(n),(function(s,l){"use strict";function u(R,L){if(!R)throw new Error(L||"Assertion failed")}function c(R,L){R.super_=L;var I=function(){};I.prototype=L.prototype,R.prototype=new I,R.prototype.constructor=R}function f(R,L,I){if(f.isBN(R))return R;this.negative=0,this.words=null,this.length=0,this.red=null,R!==null&&((L==="le"||L==="be")&&(I=L,L=10),this._init(R||0,L||10,I||"be"))}typeof s=="object"?s.exports=f:l.BN=f,f.BN=f,f.wordSize=26;var h;try{typeof window!="undefined"&&typeof window.Buffer!="undefined"?h=window.Buffer:h=o(7790).Buffer}catch(R){}f.isBN=function(L){return L instanceof f?!0:L!==null&&typeof L=="object"&&L.constructor.wordSize===f.wordSize&&Array.isArray(L.words)},f.max=function(L,I){return L.cmp(I)>0?L:I},f.min=function(L,I){return L.cmp(I)<0?L:I},f.prototype._init=function(L,I,B){if(typeof L=="number")return this._initNumber(L,I,B);if(typeof L=="object")return this._initArray(L,I,B);I==="hex"&&(I=16),u(I===(I|0)&&I>=2&&I<=36),L=L.toString().replace(/\s+/g,"");var O=0;L[0]==="-"&&(O++,this.negative=1),O=0;O-=3)X=L[O]|L[O-1]<<8|L[O-2]<<16,this.words[$]|=X<>>26-K&67108863,K+=24,K>=26&&(K-=26,$++);else if(B==="le")for(O=0,$=0;O>>26-K&67108863,K+=24,K>=26&&(K-=26,$++);return this.strip()};function p(R,L){var I=R.charCodeAt(L);return I>=65&&I<=70?I-55:I>=97&&I<=102?I-87:I-48&15}function d(R,L,I){var B=p(R,I);return I-1>=L&&(B|=p(R,I-1)<<4),B}f.prototype._parseHex=function(L,I,B){this.length=Math.ceil((L.length-I)/6),this.words=new Array(this.length);for(var O=0;O=I;O-=2)K=d(L,I,O)<<$,this.words[X]|=K&67108863,$>=18?($-=18,X+=1,this.words[X]|=K>>>26):$+=8;else{var G=L.length-I;for(O=G%2===0?I+1:I;O=18?($-=18,X+=1,this.words[X]|=K>>>26):$+=8}this.strip()};function v(R,L,I,B){for(var O=0,$=Math.min(R.length,I),X=L;X<$;X++){var K=R.charCodeAt(X)-48;O*=B,K>=49?O+=K-49+10:K>=17?O+=K-17+10:O+=K}return O}f.prototype._parseBase=function(L,I,B){this.words=[0],this.length=1;for(var O=0,$=1;$<=67108863;$*=I)O++;O--,$=$/I|0;for(var X=L.length-B,K=X%O,G=Math.min(X,X-K)+B,q=0,J=B;J1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},f.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},f.prototype.inspect=function(){return(this.red?""};var m=["","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"],g=[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],w=[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];f.prototype.toString=function(L,I){L=L||10,I=I|0||1;var B;if(L===16||L==="hex"){B="";for(var O=0,$=0,X=0;X>>24-O&16777215,O+=2,O>=26&&(O-=26,X--),$!==0||X!==this.length-1?B=m[6-G.length]+G+B:B=G+B}for($!==0&&(B=$.toString(16)+B);B.length%I!==0;)B="0"+B;return this.negative!==0&&(B="-"+B),B}if(L===(L|0)&&L>=2&&L<=36){var q=g[L],J=w[L];B="";var N=this.clone();for(N.negative=0;!N.isZero();){var V=N.modn(J).toString(L);N=N.idivn(J),N.isZero()?B=V+B:B=m[q-V.length]+V+B}for(this.isZero()&&(B="0"+B);B.length%I!==0;)B="0"+B;return this.negative!==0&&(B="-"+B),B}u(!1,"Base should be between 2 and 36")},f.prototype.toNumber=function(){var L=this.words[0];return this.length===2?L+=this.words[1]*67108864:this.length===3&&this.words[2]===1?L+=4503599627370496+this.words[1]*67108864:this.length>2&&u(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-L:L},f.prototype.toJSON=function(){return this.toString(16)},f.prototype.toBuffer=function(L,I){return u(typeof h!="undefined"),this.toArrayLike(h,L,I)},f.prototype.toArray=function(L,I){return this.toArrayLike(Array,L,I)},f.prototype.toArrayLike=function(L,I,B){var O=this.byteLength(),$=B||Math.max(1,O);u(O<=$,"byte array longer than desired length"),u($>0,"Requested array length <= 0"),this.strip();var X=I==="le",K=new L($),G,q,J=this.clone();if(X){for(q=0;!J.isZero();q++)G=J.andln(255),J.iushrn(8),K[q]=G;for(;q<$;q++)K[q]=0}else{for(q=0;q<$-O;q++)K[q]=0;for(q=0;!J.isZero();q++)G=J.andln(255),J.iushrn(8),K[$-q-1]=G}return K},Math.clz32?f.prototype._countBits=function(L){return 32-Math.clz32(L)}:f.prototype._countBits=function(L){var I=L,B=0;return I>=4096&&(B+=13,I>>>=13),I>=64&&(B+=7,I>>>=7),I>=8&&(B+=4,I>>>=4),I>=2&&(B+=2,I>>>=2),B+I},f.prototype._zeroBits=function(L){if(L===0)return 26;var I=L,B=0;return(I&8191)===0&&(B+=13,I>>>=13),(I&127)===0&&(B+=7,I>>>=7),(I&15)===0&&(B+=4,I>>>=4),(I&3)===0&&(B+=2,I>>>=2),(I&1)===0&&B++,B},f.prototype.bitLength=function(){var L=this.words[this.length-1],I=this._countBits(L);return(this.length-1)*26+I};function _(R){for(var L=new Array(R.bitLength()),I=0;I>>O}return L}f.prototype.zeroBits=function(){if(this.isZero())return 0;for(var L=0,I=0;IL.length?this.clone().ior(L):L.clone().ior(this)},f.prototype.uor=function(L){return this.length>L.length?this.clone().iuor(L):L.clone().iuor(this)},f.prototype.iuand=function(L){var I;this.length>L.length?I=L:I=this;for(var B=0;BL.length?this.clone().iand(L):L.clone().iand(this)},f.prototype.uand=function(L){return this.length>L.length?this.clone().iuand(L):L.clone().iuand(this)},f.prototype.iuxor=function(L){var I,B;this.length>L.length?(I=this,B=L):(I=L,B=this);for(var O=0;OL.length?this.clone().ixor(L):L.clone().ixor(this)},f.prototype.uxor=function(L){return this.length>L.length?this.clone().iuxor(L):L.clone().iuxor(this)},f.prototype.inotn=function(L){u(typeof L=="number"&&L>=0);var I=Math.ceil(L/26)|0,B=L%26;this._expand(I),B>0&&I--;for(var O=0;O0&&(this.words[O]=~this.words[O]&67108863>>26-B,O++);O=0);var B=L/26|0,O=L%26;return this._expand(B+1),I?this.words[B]=this.words[B]|1<L.length?(B=this,O=L):(B=L,O=this);for(var $=0,X=0;X>>26;for(;$!==0&&X>>26;if(this.length=B.length,$!==0)this.words[this.length]=$,this.length++;else if(B!==this)for(;XL.length?this.clone().iadd(L):L.clone().iadd(this)},f.prototype.isub=function(L){if(L.negative!==0){L.negative=0;var I=this.iadd(L);return L.negative=1,I._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(L),this.negative=1,this._normSign();var B=this.cmp(L);if(B===0)return this.negative=0,this.length=1,this.words[0]=0,this;var O,$;B>0?(O=this,$=L):(O=L,$=this);for(var X=0,K=0;K<$.length;K++)I=(O.words[K]|0)-($.words[K]|0)+X,X=I>>26,this.words[K]=I&67108863;for(;X!==0&&K>26,this.words[K]=I&67108863;if(X===0&&K>>26,N=G&67108863,V=Math.min(q,L.length-1),Y=Math.max(0,q-R.length+1);Y<=V;Y++){var H=q-Y|0;O=R.words[H]|0,$=L.words[Y]|0,X=O*$+N,J+=X/67108864|0,N=X&67108863}I.words[q]=N|0,G=J|0}return G!==0?I.words[q]=G|0:I.length--,I.strip()}var S=function(L,I,B){var O=L.words,$=I.words,X=B.words,K=0,G,q,J,N=O[0]|0,V=N&8191,Y=N>>>13,H=O[1]|0,j=H&8191,Q=H>>>13,te=O[2]|0,ue=te&8191,ge=te>>>13,Ee=O[3]|0,xe=Ee&8191,ce=Ee>>>13,oe=O[4]|0,Se=oe&8191,be=oe>>>13,fe=O[5]|0,ee=fe&8191,ae=fe>>>13,_e=O[6]|0,re=_e&8191,pe=_e>>>13,Te=O[7]|0,Ce=Te&8191,ze=Te>>>13,we=O[8]|0,me=we&8191,Le=we>>>13,Ne=O[9]|0,Je=Ne&8191,rt=Ne>>>13,mt=$[0]|0,dt=mt&8191,St=mt>>>13,Ke=$[1]|0,bt=Ke&8191,pt=Ke>>>13,Oe=$[2]|0,Ue=Oe&8191,je=Oe>>>13,$e=$[3]|0,Ie=$e&8191,Ve=$e>>>13,st=$[4]|0,_t=st&8191,Wt=st>>>13,Ht=$[5]|0,fr=Ht&8191,lr=Ht>>>13,Ot=$[6]|0,Jt=Ot&8191,Cr=Ot>>>13,Ge=$[7]|0,Qe=Ge&8191,nt=Ge>>>13,gt=$[8]|0,ht=gt&8191,Ft=gt>>>13,hr=$[9]|0,Ut=hr&8191,Lr=hr>>>13;B.negative=L.negative^I.negative,B.length=19,G=Math.imul(V,dt),q=Math.imul(V,St),q=q+Math.imul(Y,dt)|0,J=Math.imul(Y,St);var jr=(K+G|0)+((q&8191)<<13)|0;K=(J+(q>>>13)|0)+(jr>>>26)|0,jr&=67108863,G=Math.imul(j,dt),q=Math.imul(j,St),q=q+Math.imul(Q,dt)|0,J=Math.imul(Q,St),G=G+Math.imul(V,bt)|0,q=q+Math.imul(V,pt)|0,q=q+Math.imul(Y,bt)|0,J=J+Math.imul(Y,pt)|0;var ii=(K+G|0)+((q&8191)<<13)|0;K=(J+(q>>>13)|0)+(ii>>>26)|0,ii&=67108863,G=Math.imul(ue,dt),q=Math.imul(ue,St),q=q+Math.imul(ge,dt)|0,J=Math.imul(ge,St),G=G+Math.imul(j,bt)|0,q=q+Math.imul(j,pt)|0,q=q+Math.imul(Q,bt)|0,J=J+Math.imul(Q,pt)|0,G=G+Math.imul(V,Ue)|0,q=q+Math.imul(V,je)|0,q=q+Math.imul(Y,Ue)|0,J=J+Math.imul(Y,je)|0;var Fr=(K+G|0)+((q&8191)<<13)|0;K=(J+(q>>>13)|0)+(Fr>>>26)|0,Fr&=67108863,G=Math.imul(xe,dt),q=Math.imul(xe,St),q=q+Math.imul(ce,dt)|0,J=Math.imul(ce,St),G=G+Math.imul(ue,bt)|0,q=q+Math.imul(ue,pt)|0,q=q+Math.imul(ge,bt)|0,J=J+Math.imul(ge,pt)|0,G=G+Math.imul(j,Ue)|0,q=q+Math.imul(j,je)|0,q=q+Math.imul(Q,Ue)|0,J=J+Math.imul(Q,je)|0,G=G+Math.imul(V,Ie)|0,q=q+Math.imul(V,Ve)|0,q=q+Math.imul(Y,Ie)|0,J=J+Math.imul(Y,Ve)|0;var Ii=(K+G|0)+((q&8191)<<13)|0;K=(J+(q>>>13)|0)+(Ii>>>26)|0,Ii&=67108863,G=Math.imul(Se,dt),q=Math.imul(Se,St),q=q+Math.imul(be,dt)|0,J=Math.imul(be,St),G=G+Math.imul(xe,bt)|0,q=q+Math.imul(xe,pt)|0,q=q+Math.imul(ce,bt)|0,J=J+Math.imul(ce,pt)|0,G=G+Math.imul(ue,Ue)|0,q=q+Math.imul(ue,je)|0,q=q+Math.imul(ge,Ue)|0,J=J+Math.imul(ge,je)|0,G=G+Math.imul(j,Ie)|0,q=q+Math.imul(j,Ve)|0,q=q+Math.imul(Q,Ie)|0,J=J+Math.imul(Q,Ve)|0,G=G+Math.imul(V,_t)|0,q=q+Math.imul(V,Wt)|0,q=q+Math.imul(Y,_t)|0,J=J+Math.imul(Y,Wt)|0;var Xi=(K+G|0)+((q&8191)<<13)|0;K=(J+(q>>>13)|0)+(Xi>>>26)|0,Xi&=67108863,G=Math.imul(ee,dt),q=Math.imul(ee,St),q=q+Math.imul(ae,dt)|0,J=Math.imul(ae,St),G=G+Math.imul(Se,bt)|0,q=q+Math.imul(Se,pt)|0,q=q+Math.imul(be,bt)|0,J=J+Math.imul(be,pt)|0,G=G+Math.imul(xe,Ue)|0,q=q+Math.imul(xe,je)|0,q=q+Math.imul(ce,Ue)|0,J=J+Math.imul(ce,je)|0,G=G+Math.imul(ue,Ie)|0,q=q+Math.imul(ue,Ve)|0,q=q+Math.imul(ge,Ie)|0,J=J+Math.imul(ge,Ve)|0,G=G+Math.imul(j,_t)|0,q=q+Math.imul(j,Wt)|0,q=q+Math.imul(Q,_t)|0,J=J+Math.imul(Q,Wt)|0,G=G+Math.imul(V,fr)|0,q=q+Math.imul(V,lr)|0,q=q+Math.imul(Y,fr)|0,J=J+Math.imul(Y,lr)|0;var ln=(K+G|0)+((q&8191)<<13)|0;K=(J+(q>>>13)|0)+(ln>>>26)|0,ln&=67108863,G=Math.imul(re,dt),q=Math.imul(re,St),q=q+Math.imul(pe,dt)|0,J=Math.imul(pe,St),G=G+Math.imul(ee,bt)|0,q=q+Math.imul(ee,pt)|0,q=q+Math.imul(ae,bt)|0,J=J+Math.imul(ae,pt)|0,G=G+Math.imul(Se,Ue)|0,q=q+Math.imul(Se,je)|0,q=q+Math.imul(be,Ue)|0,J=J+Math.imul(be,je)|0,G=G+Math.imul(xe,Ie)|0,q=q+Math.imul(xe,Ve)|0,q=q+Math.imul(ce,Ie)|0,J=J+Math.imul(ce,Ve)|0,G=G+Math.imul(ue,_t)|0,q=q+Math.imul(ue,Wt)|0,q=q+Math.imul(ge,_t)|0,J=J+Math.imul(ge,Wt)|0,G=G+Math.imul(j,fr)|0,q=q+Math.imul(j,lr)|0,q=q+Math.imul(Q,fr)|0,J=J+Math.imul(Q,lr)|0,G=G+Math.imul(V,Jt)|0,q=q+Math.imul(V,Cr)|0,q=q+Math.imul(Y,Jt)|0,J=J+Math.imul(Y,Cr)|0;var la=(K+G|0)+((q&8191)<<13)|0;K=(J+(q>>>13)|0)+(la>>>26)|0,la&=67108863,G=Math.imul(Ce,dt),q=Math.imul(Ce,St),q=q+Math.imul(ze,dt)|0,J=Math.imul(ze,St),G=G+Math.imul(re,bt)|0,q=q+Math.imul(re,pt)|0,q=q+Math.imul(pe,bt)|0,J=J+Math.imul(pe,pt)|0,G=G+Math.imul(ee,Ue)|0,q=q+Math.imul(ee,je)|0,q=q+Math.imul(ae,Ue)|0,J=J+Math.imul(ae,je)|0,G=G+Math.imul(Se,Ie)|0,q=q+Math.imul(Se,Ve)|0,q=q+Math.imul(be,Ie)|0,J=J+Math.imul(be,Ve)|0,G=G+Math.imul(xe,_t)|0,q=q+Math.imul(xe,Wt)|0,q=q+Math.imul(ce,_t)|0,J=J+Math.imul(ce,Wt)|0,G=G+Math.imul(ue,fr)|0,q=q+Math.imul(ue,lr)|0,q=q+Math.imul(ge,fr)|0,J=J+Math.imul(ge,lr)|0,G=G+Math.imul(j,Jt)|0,q=q+Math.imul(j,Cr)|0,q=q+Math.imul(Q,Jt)|0,J=J+Math.imul(Q,Cr)|0,G=G+Math.imul(V,Qe)|0,q=q+Math.imul(V,nt)|0,q=q+Math.imul(Y,Qe)|0,J=J+Math.imul(Y,nt)|0;var mo=(K+G|0)+((q&8191)<<13)|0;K=(J+(q>>>13)|0)+(mo>>>26)|0,mo&=67108863,G=Math.imul(me,dt),q=Math.imul(me,St),q=q+Math.imul(Le,dt)|0,J=Math.imul(Le,St),G=G+Math.imul(Ce,bt)|0,q=q+Math.imul(Ce,pt)|0,q=q+Math.imul(ze,bt)|0,J=J+Math.imul(ze,pt)|0,G=G+Math.imul(re,Ue)|0,q=q+Math.imul(re,je)|0,q=q+Math.imul(pe,Ue)|0,J=J+Math.imul(pe,je)|0,G=G+Math.imul(ee,Ie)|0,q=q+Math.imul(ee,Ve)|0,q=q+Math.imul(ae,Ie)|0,J=J+Math.imul(ae,Ve)|0,G=G+Math.imul(Se,_t)|0,q=q+Math.imul(Se,Wt)|0,q=q+Math.imul(be,_t)|0,J=J+Math.imul(be,Wt)|0,G=G+Math.imul(xe,fr)|0,q=q+Math.imul(xe,lr)|0,q=q+Math.imul(ce,fr)|0,J=J+Math.imul(ce,lr)|0,G=G+Math.imul(ue,Jt)|0,q=q+Math.imul(ue,Cr)|0,q=q+Math.imul(ge,Jt)|0,J=J+Math.imul(ge,Cr)|0,G=G+Math.imul(j,Qe)|0,q=q+Math.imul(j,nt)|0,q=q+Math.imul(Q,Qe)|0,J=J+Math.imul(Q,nt)|0,G=G+Math.imul(V,ht)|0,q=q+Math.imul(V,Ft)|0,q=q+Math.imul(Y,ht)|0,J=J+Math.imul(Y,Ft)|0;var pn=(K+G|0)+((q&8191)<<13)|0;K=(J+(q>>>13)|0)+(pn>>>26)|0,pn&=67108863,G=Math.imul(Je,dt),q=Math.imul(Je,St),q=q+Math.imul(rt,dt)|0,J=Math.imul(rt,St),G=G+Math.imul(me,bt)|0,q=q+Math.imul(me,pt)|0,q=q+Math.imul(Le,bt)|0,J=J+Math.imul(Le,pt)|0,G=G+Math.imul(Ce,Ue)|0,q=q+Math.imul(Ce,je)|0,q=q+Math.imul(ze,Ue)|0,J=J+Math.imul(ze,je)|0,G=G+Math.imul(re,Ie)|0,q=q+Math.imul(re,Ve)|0,q=q+Math.imul(pe,Ie)|0,J=J+Math.imul(pe,Ve)|0,G=G+Math.imul(ee,_t)|0,q=q+Math.imul(ee,Wt)|0,q=q+Math.imul(ae,_t)|0,J=J+Math.imul(ae,Wt)|0,G=G+Math.imul(Se,fr)|0,q=q+Math.imul(Se,lr)|0,q=q+Math.imul(be,fr)|0,J=J+Math.imul(be,lr)|0,G=G+Math.imul(xe,Jt)|0,q=q+Math.imul(xe,Cr)|0,q=q+Math.imul(ce,Jt)|0,J=J+Math.imul(ce,Cr)|0,G=G+Math.imul(ue,Qe)|0,q=q+Math.imul(ue,nt)|0,q=q+Math.imul(ge,Qe)|0,J=J+Math.imul(ge,nt)|0,G=G+Math.imul(j,ht)|0,q=q+Math.imul(j,Ft)|0,q=q+Math.imul(Q,ht)|0,J=J+Math.imul(Q,Ft)|0,G=G+Math.imul(V,Ut)|0,q=q+Math.imul(V,Lr)|0,q=q+Math.imul(Y,Ut)|0,J=J+Math.imul(Y,Lr)|0;var zn=(K+G|0)+((q&8191)<<13)|0;K=(J+(q>>>13)|0)+(zn>>>26)|0,zn&=67108863,G=Math.imul(Je,bt),q=Math.imul(Je,pt),q=q+Math.imul(rt,bt)|0,J=Math.imul(rt,pt),G=G+Math.imul(me,Ue)|0,q=q+Math.imul(me,je)|0,q=q+Math.imul(Le,Ue)|0,J=J+Math.imul(Le,je)|0,G=G+Math.imul(Ce,Ie)|0,q=q+Math.imul(Ce,Ve)|0,q=q+Math.imul(ze,Ie)|0,J=J+Math.imul(ze,Ve)|0,G=G+Math.imul(re,_t)|0,q=q+Math.imul(re,Wt)|0,q=q+Math.imul(pe,_t)|0,J=J+Math.imul(pe,Wt)|0,G=G+Math.imul(ee,fr)|0,q=q+Math.imul(ee,lr)|0,q=q+Math.imul(ae,fr)|0,J=J+Math.imul(ae,lr)|0,G=G+Math.imul(Se,Jt)|0,q=q+Math.imul(Se,Cr)|0,q=q+Math.imul(be,Jt)|0,J=J+Math.imul(be,Cr)|0,G=G+Math.imul(xe,Qe)|0,q=q+Math.imul(xe,nt)|0,q=q+Math.imul(ce,Qe)|0,J=J+Math.imul(ce,nt)|0,G=G+Math.imul(ue,ht)|0,q=q+Math.imul(ue,Ft)|0,q=q+Math.imul(ge,ht)|0,J=J+Math.imul(ge,Ft)|0,G=G+Math.imul(j,Ut)|0,q=q+Math.imul(j,Lr)|0,q=q+Math.imul(Q,Ut)|0,J=J+Math.imul(Q,Lr)|0;var gn=(K+G|0)+((q&8191)<<13)|0;K=(J+(q>>>13)|0)+(gn>>>26)|0,gn&=67108863,G=Math.imul(Je,Ue),q=Math.imul(Je,je),q=q+Math.imul(rt,Ue)|0,J=Math.imul(rt,je),G=G+Math.imul(me,Ie)|0,q=q+Math.imul(me,Ve)|0,q=q+Math.imul(Le,Ie)|0,J=J+Math.imul(Le,Ve)|0,G=G+Math.imul(Ce,_t)|0,q=q+Math.imul(Ce,Wt)|0,q=q+Math.imul(ze,_t)|0,J=J+Math.imul(ze,Wt)|0,G=G+Math.imul(re,fr)|0,q=q+Math.imul(re,lr)|0,q=q+Math.imul(pe,fr)|0,J=J+Math.imul(pe,lr)|0,G=G+Math.imul(ee,Jt)|0,q=q+Math.imul(ee,Cr)|0,q=q+Math.imul(ae,Jt)|0,J=J+Math.imul(ae,Cr)|0,G=G+Math.imul(Se,Qe)|0,q=q+Math.imul(Se,nt)|0,q=q+Math.imul(be,Qe)|0,J=J+Math.imul(be,nt)|0,G=G+Math.imul(xe,ht)|0,q=q+Math.imul(xe,Ft)|0,q=q+Math.imul(ce,ht)|0,J=J+Math.imul(ce,Ft)|0,G=G+Math.imul(ue,Ut)|0,q=q+Math.imul(ue,Lr)|0,q=q+Math.imul(ge,Ut)|0,J=J+Math.imul(ge,Lr)|0;var ns=(K+G|0)+((q&8191)<<13)|0;K=(J+(q>>>13)|0)+(ns>>>26)|0,ns&=67108863,G=Math.imul(Je,Ie),q=Math.imul(Je,Ve),q=q+Math.imul(rt,Ie)|0,J=Math.imul(rt,Ve),G=G+Math.imul(me,_t)|0,q=q+Math.imul(me,Wt)|0,q=q+Math.imul(Le,_t)|0,J=J+Math.imul(Le,Wt)|0,G=G+Math.imul(Ce,fr)|0,q=q+Math.imul(Ce,lr)|0,q=q+Math.imul(ze,fr)|0,J=J+Math.imul(ze,lr)|0,G=G+Math.imul(re,Jt)|0,q=q+Math.imul(re,Cr)|0,q=q+Math.imul(pe,Jt)|0,J=J+Math.imul(pe,Cr)|0,G=G+Math.imul(ee,Qe)|0,q=q+Math.imul(ee,nt)|0,q=q+Math.imul(ae,Qe)|0,J=J+Math.imul(ae,nt)|0,G=G+Math.imul(Se,ht)|0,q=q+Math.imul(Se,Ft)|0,q=q+Math.imul(be,ht)|0,J=J+Math.imul(be,Ft)|0,G=G+Math.imul(xe,Ut)|0,q=q+Math.imul(xe,Lr)|0,q=q+Math.imul(ce,Ut)|0,J=J+Math.imul(ce,Lr)|0;var ua=(K+G|0)+((q&8191)<<13)|0;K=(J+(q>>>13)|0)+(ua>>>26)|0,ua&=67108863,G=Math.imul(Je,_t),q=Math.imul(Je,Wt),q=q+Math.imul(rt,_t)|0,J=Math.imul(rt,Wt),G=G+Math.imul(me,fr)|0,q=q+Math.imul(me,lr)|0,q=q+Math.imul(Le,fr)|0,J=J+Math.imul(Le,lr)|0,G=G+Math.imul(Ce,Jt)|0,q=q+Math.imul(Ce,Cr)|0,q=q+Math.imul(ze,Jt)|0,J=J+Math.imul(ze,Cr)|0,G=G+Math.imul(re,Qe)|0,q=q+Math.imul(re,nt)|0,q=q+Math.imul(pe,Qe)|0,J=J+Math.imul(pe,nt)|0,G=G+Math.imul(ee,ht)|0,q=q+Math.imul(ee,Ft)|0,q=q+Math.imul(ae,ht)|0,J=J+Math.imul(ae,Ft)|0,G=G+Math.imul(Se,Ut)|0,q=q+Math.imul(Se,Lr)|0,q=q+Math.imul(be,Ut)|0,J=J+Math.imul(be,Lr)|0;var as=(K+G|0)+((q&8191)<<13)|0;K=(J+(q>>>13)|0)+(as>>>26)|0,as&=67108863,G=Math.imul(Je,fr),q=Math.imul(Je,lr),q=q+Math.imul(rt,fr)|0,J=Math.imul(rt,lr),G=G+Math.imul(me,Jt)|0,q=q+Math.imul(me,Cr)|0,q=q+Math.imul(Le,Jt)|0,J=J+Math.imul(Le,Cr)|0,G=G+Math.imul(Ce,Qe)|0,q=q+Math.imul(Ce,nt)|0,q=q+Math.imul(ze,Qe)|0,J=J+Math.imul(ze,nt)|0,G=G+Math.imul(re,ht)|0,q=q+Math.imul(re,Ft)|0,q=q+Math.imul(pe,ht)|0,J=J+Math.imul(pe,Ft)|0,G=G+Math.imul(ee,Ut)|0,q=q+Math.imul(ee,Lr)|0,q=q+Math.imul(ae,Ut)|0,J=J+Math.imul(ae,Lr)|0;var ro=(K+G|0)+((q&8191)<<13)|0;K=(J+(q>>>13)|0)+(ro>>>26)|0,ro&=67108863,G=Math.imul(Je,Jt),q=Math.imul(Je,Cr),q=q+Math.imul(rt,Jt)|0,J=Math.imul(rt,Cr),G=G+Math.imul(me,Qe)|0,q=q+Math.imul(me,nt)|0,q=q+Math.imul(Le,Qe)|0,J=J+Math.imul(Le,nt)|0,G=G+Math.imul(Ce,ht)|0,q=q+Math.imul(Ce,Ft)|0,q=q+Math.imul(ze,ht)|0,J=J+Math.imul(ze,Ft)|0,G=G+Math.imul(re,Ut)|0,q=q+Math.imul(re,Lr)|0,q=q+Math.imul(pe,Ut)|0,J=J+Math.imul(pe,Lr)|0;var ba=(K+G|0)+((q&8191)<<13)|0;K=(J+(q>>>13)|0)+(ba>>>26)|0,ba&=67108863,G=Math.imul(Je,Qe),q=Math.imul(Je,nt),q=q+Math.imul(rt,Qe)|0,J=Math.imul(rt,nt),G=G+Math.imul(me,ht)|0,q=q+Math.imul(me,Ft)|0,q=q+Math.imul(Le,ht)|0,J=J+Math.imul(Le,Ft)|0,G=G+Math.imul(Ce,Ut)|0,q=q+Math.imul(Ce,Lr)|0,q=q+Math.imul(ze,Ut)|0,J=J+Math.imul(ze,Lr)|0;var co=(K+G|0)+((q&8191)<<13)|0;K=(J+(q>>>13)|0)+(co>>>26)|0,co&=67108863,G=Math.imul(Je,ht),q=Math.imul(Je,Ft),q=q+Math.imul(rt,ht)|0,J=Math.imul(rt,Ft),G=G+Math.imul(me,Ut)|0,q=q+Math.imul(me,Lr)|0,q=q+Math.imul(Le,Ut)|0,J=J+Math.imul(Le,Lr)|0;var Us=(K+G|0)+((q&8191)<<13)|0;K=(J+(q>>>13)|0)+(Us>>>26)|0,Us&=67108863,G=Math.imul(Je,Ut),q=Math.imul(Je,Lr),q=q+Math.imul(rt,Ut)|0,J=Math.imul(rt,Lr);var Ma=(K+G|0)+((q&8191)<<13)|0;return K=(J+(q>>>13)|0)+(Ma>>>26)|0,Ma&=67108863,X[0]=jr,X[1]=ii,X[2]=Fr,X[3]=Ii,X[4]=Xi,X[5]=ln,X[6]=la,X[7]=mo,X[8]=pn,X[9]=zn,X[10]=gn,X[11]=ns,X[12]=ua,X[13]=as,X[14]=ro,X[15]=ba,X[16]=co,X[17]=Us,X[18]=Ma,K!==0&&(X[19]=K,B.length++),B};Math.imul||(S=b);function x(R,L,I){I.negative=L.negative^R.negative,I.length=R.length+L.length;for(var B=0,O=0,$=0;$>>26)|0,O+=X>>>26,X&=67108863}I.words[$]=K,B=X,X=O}return B!==0?I.words[$]=B:I.length--,I.strip()}function A(R,L,I){var B=new T;return B.mulp(R,L,I)}f.prototype.mulTo=function(L,I){var B,O=this.length+L.length;return this.length===10&&L.length===10?B=S(this,L,I):O<63?B=b(this,L,I):O<1024?B=x(this,L,I):B=A(this,L,I),B};function T(R,L){this.x=R,this.y=L}T.prototype.makeRBT=function(L){for(var I=new Array(L),B=f.prototype._countBits(L)-1,O=0;O>=1;return O},T.prototype.permute=function(L,I,B,O,$,X){for(var K=0;K>>1)$++;return 1<<$+1+O},T.prototype.conjugate=function(L,I,B){if(!(B<=1))for(var O=0;O>>13,B[2*X+1]=$&8191,$=$>>>13;for(X=2*I;X>=26,I+=O/67108864|0,I+=$>>>26,this.words[B]=$&67108863}return I!==0&&(this.words[B]=I,this.length++),L===0&&(this.length=1,this._normSign()),this},f.prototype.muln=function(L){return this.clone().imuln(L)},f.prototype.sqr=function(){return this.mul(this)},f.prototype.isqr=function(){return this.imul(this.clone())},f.prototype.pow=function(L){var I=_(L);if(I.length===0)return new f(1);for(var B=this,O=0;O=0);var I=L%26,B=(L-I)/26,O=67108863>>>26-I<<26-I,$;if(I!==0){var X=0;for($=0;$>>26-I}X&&(this.words[$]=X,this.length++)}if(B!==0){for($=this.length-1;$>=0;$--)this.words[$+B]=this.words[$];for($=0;$=0);var O;I?O=(I-I%26)/26:O=0;var $=L%26,X=Math.min((L-$)/26,this.length),K=67108863^67108863>>>$<<$,G=B;if(O-=X,O=Math.max(0,O),G){for(var q=0;qX)for(this.length-=X,q=0;q=0&&(J!==0||q>=O);q--){var N=this.words[q]|0;this.words[q]=J<<26-$|N>>>$,J=N&K}return G&&J!==0&&(G.words[G.length++]=J),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},f.prototype.ishrn=function(L,I,B){return u(this.negative===0),this.iushrn(L,I,B)},f.prototype.shln=function(L){return this.clone().ishln(L)},f.prototype.ushln=function(L){return this.clone().iushln(L)},f.prototype.shrn=function(L){return this.clone().ishrn(L)},f.prototype.ushrn=function(L){return this.clone().iushrn(L)},f.prototype.testn=function(L){u(typeof L=="number"&&L>=0);var I=L%26,B=(L-I)/26,O=1<=0);var I=L%26,B=(L-I)/26;if(u(this.negative===0,"imaskn works only with positive numbers"),this.length<=B)return this;if(I!==0&&B++,this.length=Math.min(B,this.length),I!==0){var O=67108863^67108863>>>I<=67108864;I++)this.words[I]-=67108864,I===this.length-1?this.words[I+1]=1:this.words[I+1]++;return this.length=Math.max(this.length,I+1),this},f.prototype.isubn=function(L){if(u(typeof L=="number"),u(L<67108864),L<0)return this.iaddn(-L);if(this.negative!==0)return this.negative=0,this.iaddn(L),this.negative=1,this;if(this.words[0]-=L,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var I=0;I>26)-(G/67108864|0),this.words[$+B]=X&67108863}for(;$>26,this.words[$+B]=X&67108863;if(K===0)return this.strip();for(u(K===-1),K=0,$=0;$>26,this.words[$]=X&67108863;return this.negative=1,this.strip()},f.prototype._wordDiv=function(L,I){var B=this.length-L.length,O=this.clone(),$=L,X=$.words[$.length-1]|0,K=this._countBits(X);B=26-K,B!==0&&($=$.ushln(B),O.iushln(B),X=$.words[$.length-1]|0);var G=O.length-$.length,q;if(I!=="mod"){q=new f(null),q.length=G+1,q.words=new Array(q.length);for(var J=0;J=0;V--){var Y=(O.words[$.length+V]|0)*67108864+(O.words[$.length+V-1]|0);for(Y=Math.min(Y/X|0,67108863),O._ishlnsubmul($,Y,V);O.negative!==0;)Y--,O.negative=0,O._ishlnsubmul($,1,V),O.isZero()||(O.negative^=1);q&&(q.words[V]=Y)}return q&&q.strip(),O.strip(),I!=="div"&&B!==0&&O.iushrn(B),{div:q||null,mod:O}},f.prototype.divmod=function(L,I,B){if(u(!L.isZero()),this.isZero())return{div:new f(0),mod:new f(0)};var O,$,X;return this.negative!==0&&L.negative===0?(X=this.neg().divmod(L,I),I!=="mod"&&(O=X.div.neg()),I!=="div"&&($=X.mod.neg(),B&&$.negative!==0&&$.iadd(L)),{div:O,mod:$}):this.negative===0&&L.negative!==0?(X=this.divmod(L.neg(),I),I!=="mod"&&(O=X.div.neg()),{div:O,mod:X.mod}):(this.negative&L.negative)!==0?(X=this.neg().divmod(L.neg(),I),I!=="div"&&($=X.mod.neg(),B&&$.negative!==0&&$.isub(L)),{div:X.div,mod:$}):L.length>this.length||this.cmp(L)<0?{div:new f(0),mod:this}:L.length===1?I==="div"?{div:this.divn(L.words[0]),mod:null}:I==="mod"?{div:null,mod:new f(this.modn(L.words[0]))}:{div:this.divn(L.words[0]),mod:new f(this.modn(L.words[0]))}:this._wordDiv(L,I)},f.prototype.div=function(L){return this.divmod(L,"div",!1).div},f.prototype.mod=function(L){return this.divmod(L,"mod",!1).mod},f.prototype.umod=function(L){return this.divmod(L,"mod",!0).mod},f.prototype.divRound=function(L){var I=this.divmod(L);if(I.mod.isZero())return I.div;var B=I.mod.abs(),O=L.abs().iushrn(1),$=L.words[0]&1,X=B.cmp(O);if(X<0||$===1&&X===0)return I.div;var K=new f(1);return K.negative=this.negative^L.negative,I.div.iadd(K)},f.prototype.modn=function(L){u(L<=67108863);for(var I=(1<<26)%L,B=0,O=this.length-1;O>=0;O--)B=(I*B+(this.words[O]|0))%L;return B},f.prototype.idivn=function(L){u(L<=67108863);for(var I=0,B=this.length-1;B>=0;B--){var O=(this.words[B]|0)+I*67108864;this.words[B]=O/L|0,I=O%L}return this.strip()},f.prototype.divn=function(L){return this.clone().idivn(L)},f.prototype.egcd=function(L){u(L.negative===0),u(!L.isZero());var I=this,B=L.clone();I.negative!==0?I=I.umod(L):I=I.clone();for(var O=new f(1),$=new f(0),X=new f(0),K=new f(1),G=0;I.isEven()&&B.isEven();)I.iushrn(1),B.iushrn(1),++G;for(var q=B.clone(),J=I.clone();!I.isZero();){for(var N=0,V=1;(I.words[0]&V)===0&&N<26;++N,V<<=1);if(N>0)for(I.iushrn(N);N-- >0;)(O.isOdd()||$.isOdd())&&(O.iadd(q),$.isub(J)),O.iushrn(1),$.iushrn(1);for(var Y=0,H=1;(B.words[0]&H)===0&&Y<26;++Y,H<<=1);if(Y>0)for(B.iushrn(Y);Y-- >0;)(X.isOdd()||K.isOdd())&&(X.iadd(q),K.isub(J)),X.iushrn(1),K.iushrn(1);I.cmp(B)>=0?(I.isub(B),O.isub(X),$.isub(K)):(B.isub(I),X.isub(O),K.isub($))}return{a:X,b:K,gcd:B.iushln(G)}},f.prototype._invmp=function(L){u(L.negative===0),u(!L.isZero());var I=this,B=L.clone();I.negative!==0?I=I.umod(L):I=I.clone();for(var O=new f(1),$=new f(0),X=B.clone();I.cmpn(1)>0&&B.cmpn(1)>0;){for(var K=0,G=1;(I.words[0]&G)===0&&K<26;++K,G<<=1);if(K>0)for(I.iushrn(K);K-- >0;)O.isOdd()&&O.iadd(X),O.iushrn(1);for(var q=0,J=1;(B.words[0]&J)===0&&q<26;++q,J<<=1);if(q>0)for(B.iushrn(q);q-- >0;)$.isOdd()&&$.iadd(X),$.iushrn(1);I.cmp(B)>=0?(I.isub(B),O.isub($)):(B.isub(I),$.isub(O))}var N;return I.cmpn(1)===0?N=O:N=$,N.cmpn(0)<0&&N.iadd(L),N},f.prototype.gcd=function(L){if(this.isZero())return L.abs();if(L.isZero())return this.abs();var I=this.clone(),B=L.clone();I.negative=0,B.negative=0;for(var O=0;I.isEven()&&B.isEven();O++)I.iushrn(1),B.iushrn(1);do{for(;I.isEven();)I.iushrn(1);for(;B.isEven();)B.iushrn(1);var $=I.cmp(B);if($<0){var X=I;I=B,B=X}else if($===0||B.cmpn(1)===0)break;I.isub(B)}while(!0);return B.iushln(O)},f.prototype.invm=function(L){return this.egcd(L).a.umod(L)},f.prototype.isEven=function(){return(this.words[0]&1)===0},f.prototype.isOdd=function(){return(this.words[0]&1)===1},f.prototype.andln=function(L){return this.words[0]&L},f.prototype.bincn=function(L){u(typeof L=="number");var I=L%26,B=(L-I)/26,O=1<>>26,K&=67108863,this.words[X]=K}return $!==0&&(this.words[X]=$,this.length++),this},f.prototype.isZero=function(){return this.length===1&&this.words[0]===0},f.prototype.cmpn=function(L){var I=L<0;if(this.negative!==0&&!I)return-1;if(this.negative===0&&I)return 1;this.strip();var B;if(this.length>1)B=1;else{I&&(L=-L),u(L<=67108863,"Number is too big");var O=this.words[0]|0;B=O===L?0:OL.length)return 1;if(this.length=0;B--){var O=this.words[B]|0,$=L.words[B]|0;if(O!==$){O<$?I=-1:O>$&&(I=1);break}}return I},f.prototype.gtn=function(L){return this.cmpn(L)===1},f.prototype.gt=function(L){return this.cmp(L)===1},f.prototype.gten=function(L){return this.cmpn(L)>=0},f.prototype.gte=function(L){return this.cmp(L)>=0},f.prototype.ltn=function(L){return this.cmpn(L)===-1},f.prototype.lt=function(L){return this.cmp(L)===-1},f.prototype.lten=function(L){return this.cmpn(L)<=0},f.prototype.lte=function(L){return this.cmp(L)<=0},f.prototype.eqn=function(L){return this.cmpn(L)===0},f.prototype.eq=function(L){return this.cmp(L)===0},f.red=function(L){return new F(L)},f.prototype.toRed=function(L){return u(!this.red,"Already a number in reduction context"),u(this.negative===0,"red works only with positives"),L.convertTo(this)._forceRed(L)},f.prototype.fromRed=function(){return u(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},f.prototype._forceRed=function(L){return this.red=L,this},f.prototype.forceRed=function(L){return u(!this.red,"Already a number in reduction context"),this._forceRed(L)},f.prototype.redAdd=function(L){return u(this.red,"redAdd works only with red numbers"),this.red.add(this,L)},f.prototype.redIAdd=function(L){return u(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,L)},f.prototype.redSub=function(L){return u(this.red,"redSub works only with red numbers"),this.red.sub(this,L)},f.prototype.redISub=function(L){return u(this.red,"redISub works only with red numbers"),this.red.isub(this,L)},f.prototype.redShl=function(L){return u(this.red,"redShl works only with red numbers"),this.red.shl(this,L)},f.prototype.redMul=function(L){return u(this.red,"redMul works only with red numbers"),this.red._verify2(this,L),this.red.mul(this,L)},f.prototype.redIMul=function(L){return u(this.red,"redMul works only with red numbers"),this.red._verify2(this,L),this.red.imul(this,L)},f.prototype.redSqr=function(){return u(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},f.prototype.redISqr=function(){return u(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},f.prototype.redSqrt=function(){return u(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},f.prototype.redInvm=function(){return u(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},f.prototype.redNeg=function(){return u(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},f.prototype.redPow=function(L){return u(this.red&&!L.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,L)};var y={k256:null,p224:null,p192:null,p25519:null};function E(R,L){this.name=R,this.p=new f(L,16),this.n=this.p.bitLength(),this.k=new f(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}E.prototype._tmp=function(){var L=new f(null);return L.words=new Array(Math.ceil(this.n/13)),L},E.prototype.ireduce=function(L){var I=L,B;do this.split(I,this.tmp),I=this.imulK(I),I=I.iadd(this.tmp),B=I.bitLength();while(B>this.n);var O=B0?I.isub(this.p):I.strip!==void 0?I.strip():I._strip(),I},E.prototype.split=function(L,I){L.iushrn(this.n,0,I)},E.prototype.imulK=function(L){return L.imul(this.k)};function M(){E.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}c(M,E),M.prototype.split=function(L,I){for(var B=4194303,O=Math.min(L.length,9),$=0;$>>22,X=K}X>>>=22,L.words[$-10]=X,X===0&&L.length>10?L.length-=10:L.length-=9},M.prototype.imulK=function(L){L.words[L.length]=0,L.words[L.length+1]=0,L.length+=2;for(var I=0,B=0;B>>=26,L.words[B]=$,I=O}return I!==0&&(L.words[L.length++]=I),L},f._prime=function(L){if(y[L])return y[L];var I;if(L==="k256")I=new M;else if(L==="p224")I=new C;else if(L==="p192")I=new k;else if(L==="p25519")I=new D;else throw new Error("Unknown prime "+L);return y[L]=I,I};function F(R){if(typeof R=="string"){var L=f._prime(R);this.m=L.p,this.prime=L}else u(R.gtn(1),"modulus must be greater than 1"),this.m=R,this.prime=null}F.prototype._verify1=function(L){u(L.negative===0,"red works only with positives"),u(L.red,"red works only with red numbers")},F.prototype._verify2=function(L,I){u((L.negative|I.negative)===0,"red works only with positives"),u(L.red&&L.red===I.red,"red works only with red numbers")},F.prototype.imod=function(L){return this.prime?this.prime.ireduce(L)._forceRed(this):L.umod(this.m)._forceRed(this)},F.prototype.neg=function(L){return L.isZero()?L.clone():this.m.sub(L)._forceRed(this)},F.prototype.add=function(L,I){this._verify2(L,I);var B=L.add(I);return B.cmp(this.m)>=0&&B.isub(this.m),B._forceRed(this)},F.prototype.iadd=function(L,I){this._verify2(L,I);var B=L.iadd(I);return B.cmp(this.m)>=0&&B.isub(this.m),B},F.prototype.sub=function(L,I){this._verify2(L,I);var B=L.sub(I);return B.cmpn(0)<0&&B.iadd(this.m),B._forceRed(this)},F.prototype.isub=function(L,I){this._verify2(L,I);var B=L.isub(I);return B.cmpn(0)<0&&B.iadd(this.m),B},F.prototype.shl=function(L,I){return this._verify1(L),this.imod(L.ushln(I))},F.prototype.imul=function(L,I){return this._verify2(L,I),this.imod(L.imul(I))},F.prototype.mul=function(L,I){return this._verify2(L,I),this.imod(L.mul(I))},F.prototype.isqr=function(L){return this.imul(L,L.clone())},F.prototype.sqr=function(L){return this.mul(L,L)},F.prototype.sqrt=function(L){if(L.isZero())return L.clone();var I=this.m.andln(3);if(u(I%2===1),I===3){var B=this.m.add(new f(1)).iushrn(2);return this.pow(L,B)}for(var O=this.m.subn(1),$=0;!O.isZero()&&O.andln(1)===0;)$++,O.iushrn(1);u(!O.isZero());var X=new f(1).toRed(this),K=X.redNeg(),G=this.m.subn(1).iushrn(1),q=this.m.bitLength();for(q=new f(2*q*q).toRed(this);this.pow(q,G).cmp(K)!==0;)q.redIAdd(K);for(var J=this.pow(q,O),N=this.pow(L,O.addn(1).iushrn(1)),V=this.pow(L,O),Y=$;V.cmp(X)!==0;){for(var H=V,j=0;H.cmp(X)!==0;j++)H=H.redSqr();u(j=0;$--){for(var J=I.words[$],N=q-1;N>=0;N--){var V=J>>N&1;if(X!==O[0]&&(X=this.sqr(X)),V===0&&K===0){G=0;continue}K<<=1,K|=V,G++,!(G!==B&&($!==0||N!==0))&&(X=this.mul(X,O[K]),G=0,K=0)}q=26}return X},F.prototype.convertTo=function(L){var I=L.umod(this.m);return I===L?I.clone():I},F.prototype.convertFrom=function(L){var I=L.clone();return I.red=null,I},f.mont=function(L){return new P(L)};function P(R){F.call(this,R),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new f(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)}c(P,F),P.prototype.convertTo=function(L){return this.imod(L.ushln(this.shift))},P.prototype.convertFrom=function(L){var I=this.imod(L.mul(this.rinv));return I.red=null,I},P.prototype.imul=function(L,I){if(L.isZero()||I.isZero())return L.words[0]=0,L.length=1,L;var B=L.imul(I),O=B.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),$=B.isub(O).iushrn(this.shift),X=$;return $.cmp(this.m)>=0?X=$.isub(this.m):$.cmpn(0)<0&&(X=$.iadd(this.m)),X._forceRed(this)},P.prototype.mul=function(L,I){if(L.isZero()||I.isZero())return new f(0)._forceRed(this);var B=L.mul(I),O=B.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),$=B.isub(O).iushrn(this.shift),X=$;return $.cmp(this.m)>=0?X=$.isub(this.m):$.cmpn(0)<0&&(X=$.iadd(this.m)),X._forceRed(this)},P.prototype.invm=function(L){var I=this.imod(L._invmp(this.m).mul(this.r2));return I._forceRed(this)}})(n,this)},6204(n){"use strict";n.exports=a;function a(o){var s,l,u,c=o.length,f=0;for(s=0;s>>1;if(!(T<=0)){var y,E=s.mallocDouble(2*T*x),M=s.mallocInt32(x);if(x=f(w,T,E,M),x>0){if(T===1&&S)l.init(x),y=l.sweepComplete(T,b,0,x,E,M,0,x,E,M);else{var C=s.mallocDouble(2*T*A),k=s.mallocInt32(A);A=f(_,T,C,k),A>0&&(l.init(x+A),T===1?y=l.sweepBipartite(T,b,0,x,E,M,0,A,C,k):y=u(T,b,S,x,E,M,A,C,k),s.free(C),s.free(k))}s.free(E),s.free(M)}return y}}}var p;function d(w,_){p.push([w,_])}function v(w){return p=[],h(w,w,d,!0),p}function m(w,_){return p=[],h(w,_,d,!1),p}function g(w,_,b){switch(arguments.length){case 1:return v(w);case 2:return typeof _=="function"?h(w,w,_,!0):m(w,_);case 3:return h(w,_,b,!1);default:throw new Error("box-intersect: Invalid arguments")}}},2455(n,a){"use strict";function o(){function u(h,p,d,v,m,g,w,_,b,S,x){for(var A=2*h,T=v,y=A*v;Tb-_?u(h,p,d,v,m,g,w,_,b,S,x):c(h,p,d,v,m,g,w,_,b,S,x)}return f}function s(){function u(d,v,m,g,w,_,b,S,x,A,T){for(var y=2*d,E=g,M=y*g;EA-x?g?u(d,v,m,w,_,b,S,x,A,T,y):c(d,v,m,w,_,b,S,x,A,T,y):g?f(d,v,m,w,_,b,S,x,A,T,y):h(d,v,m,w,_,b,S,x,A,T,y)}return p}function l(u){return u?o():s()}a.partial=l(!1),a.full=l(!0)},7150(n,a,o){"use strict";n.exports=R;var s=o(1888),l=o(8828),u=o(2455),c=u.partial,f=u.full,h=o(855),p=o(3545),d=o(8105),v=128,m=1<<22,g=1<<22,w=d("!(lo>=p0)&&!(p1>=hi)"),_=d("lo===p0"),b=d("lo0;){J-=1;var Y=J*T,H=M[Y],j=M[Y+1],Q=M[Y+2],te=M[Y+3],ue=M[Y+4],ge=M[Y+5],Ee=J*y,xe=C[Ee],ce=C[Ee+1],oe=ge&1,Se=!!(ge&16),be=$,fe=X,ee=G,ae=q;if(oe&&(be=G,fe=q,ee=$,ae=X),!(ge&2&&(Q=b(L,H,j,Q,be,fe,ce),j>=Q))&&!(ge&4&&(j=S(L,H,j,Q,be,fe,xe),j>=Q))){var _e=Q-j,re=ue-te;if(Se){if(L*_e*(_e+re)d&&m[A+p]>S;--x,A-=w){for(var T=A,y=A+w,E=0;E>>1,S=2*h,x=b,A=m[S*b+p];w<_;){if(_-w=C?(x=M,A=C):E>=D?(x=y,A=E):(x=k,A=D):C>=D?(x=M,A=C):D>=E?(x=y,A=E):(x=k,A=D);for(var R=S*(_-1),L=S*x,F=0;F=p0)&&!(p1>=hi)":p};function o(d){return a[d]}function s(d,v,m,g,w,_,b){for(var S=2*d,x=S*m,A=x,T=m,y=v,E=d+v,M=m;g>M;++M,x+=S){var C=w[x+y];if(C===b)if(T===M)T+=1,A+=S;else{for(var k=0;S>k;++k){var D=w[x+k];w[x+k]=w[A],w[A++]=D}var F=_[M];_[M]=_[T],_[T++]=F}}return T}function l(d,v,m,g,w,_,b){for(var S=2*d,x=S*m,A=x,T=m,y=v,E=d+v,M=m;g>M;++M,x+=S){var C=w[x+y];if(Ck;++k){var D=w[x+k];w[x+k]=w[A],w[A++]=D}var F=_[M];_[M]=_[T],_[T++]=F}}return T}function u(d,v,m,g,w,_,b){for(var S=2*d,x=S*m,A=x,T=m,y=v,E=d+v,M=m;g>M;++M,x+=S){var C=w[x+E];if(C<=b)if(T===M)T+=1,A+=S;else{for(var k=0;S>k;++k){var D=w[x+k];w[x+k]=w[A],w[A++]=D}var F=_[M];_[M]=_[T],_[T++]=F}}return T}function c(d,v,m,g,w,_,b){for(var S=2*d,x=S*m,A=x,T=m,y=v,E=d+v,M=m;g>M;++M,x+=S){var C=w[x+E];if(C<=b)if(T===M)T+=1,A+=S;else{for(var k=0;S>k;++k){var D=w[x+k];w[x+k]=w[A],w[A++]=D}var F=_[M];_[M]=_[T],_[T++]=F}}return T}function f(d,v,m,g,w,_,b){for(var S=2*d,x=S*m,A=x,T=m,y=v,E=d+v,M=m;g>M;++M,x+=S){var C=w[x+y],k=w[x+E];if(C<=b&&b<=k)if(T===M)T+=1,A+=S;else{for(var D=0;S>D;++D){var F=w[x+D];w[x+D]=w[A],w[A++]=F}var P=_[M];_[M]=_[T],_[T++]=P}}return T}function h(d,v,m,g,w,_,b){for(var S=2*d,x=S*m,A=x,T=m,y=v,E=d+v,M=m;g>M;++M,x+=S){var C=w[x+y],k=w[x+E];if(CD;++D){var F=w[x+D];w[x+D]=w[A],w[A++]=F}var P=_[M];_[M]=_[T],_[T++]=P}}return T}function p(d,v,m,g,w,_,b,S){for(var x=2*d,A=x*m,T=A,y=m,E=v,M=d+v,C=m;g>C;++C,A+=x){var k=w[A+E],D=w[A+M];if(!(k>=b)&&!(S>=D))if(y===C)y+=1,T+=x;else{for(var F=0;x>F;++F){var P=w[A+F];w[A+F]=w[T],w[T++]=P}var R=_[C];_[C]=_[y],_[y++]=R}}return y}},4192(n){"use strict";n.exports=o;var a=32;function o(v,m){m<=4*a?s(0,m-1,v):d(0,m-1,v)}function s(v,m,g){for(var w=2*(v+1),_=v+1;_<=m;++_){for(var b=g[w++],S=g[w++],x=_,A=w-2;x-- >v;){var T=g[A-2],y=g[A-1];if(Tg[m+1]:!0}function p(v,m,g,w){v*=2;var _=w[v];return _>1,x=S-w,A=S+w,T=_,y=x,E=S,M=A,C=b,k=v+1,D=m-1,F=0;h(T,y,g)&&(F=T,T=y,y=F),h(M,C,g)&&(F=M,M=C,C=F),h(T,E,g)&&(F=T,T=E,E=F),h(y,E,g)&&(F=y,y=E,E=F),h(T,M,g)&&(F=T,T=M,M=F),h(E,M,g)&&(F=E,E=M,M=F),h(y,C,g)&&(F=y,y=C,C=F),h(y,E,g)&&(F=y,y=E,E=F),h(M,C,g)&&(F=M,M=C,C=F);for(var P=g[2*y],R=g[2*y+1],L=g[2*M],I=g[2*M+1],B=2*T,O=2*E,$=2*C,X=2*_,K=2*S,G=2*b,q=0;q<2;++q){var J=g[B+q],N=g[O+q],V=g[$+q];g[X+q]=J,g[K+q]=N,g[G+q]=V}u(x,v,g),u(A,m,g);for(var Y=k;Y<=D;++Y)if(p(Y,P,R,g))Y!==k&&l(Y,k,g),++k;else if(!p(Y,L,I,g))for(;;)if(p(D,L,I,g)){p(D,P,R,g)?(c(Y,k,D,g),++k,--D):(l(Y,D,g),--D);break}else{if(--D>>1;u(w,N);for(var V=0,Y=0,K=0;K=c)H=H-c|0,b(d,v,Y--,H);else if(H>=0)b(h,p,V--,H);else if(H<=-c){H=-H-c|0;for(var j=0;j>>1;u(w,N);for(var V=0,Y=0,H=0,K=0;K>1===w[2*K+3]>>1&&(Q=2,K+=1),j<0){for(var te=-(j>>1)-1,ue=0;ue>1)-1;Q===0?b(h,p,V--,te):Q===1?b(d,v,Y--,te):Q===2&&b(m,g,H--,te)}}}function T(E,M,C,k,D,F,P,R,L,I,B,O){var $=0,X=2*E,K=M,G=M+E,q=1,J=1;k?J=c:q=c;for(var N=D;N>>1;u(w,j);for(var Q=0,N=0;N=c?(ue=!k,V-=c):(ue=!!k,V-=1),ue)S(h,p,Q++,V);else{var ge=O[V],Ee=X*V,xe=B[Ee+M+1],ce=B[Ee+M+1+E];e:for(var oe=0;oe>>1;u(w,V);for(var Y=0,G=0;G=c)h[Y++]=q-c;else{q-=1;var j=B[q],Q=$*q,te=I[Q+M+1],ue=I[Q+M+1+E];e:for(var ge=0;ge=0;--ge)if(h[ge]===q){for(var oe=ge+1;oef)throw new RangeError('The value "'+fe+'" is invalid for option "size"');var ee=new Uint8Array(fe);return Object.setPrototypeOf(ee,d.prototype),ee}function d(fe,ee,ae){if(typeof fe=="number"){if(typeof ee=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return w(fe)}return v(fe,ee,ae)}d.poolSize=8192;function v(fe,ee,ae){if(typeof fe=="string")return _(fe,ee);if(ArrayBuffer.isView(fe))return S(fe);if(fe==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof fe);if(oe(fe,ArrayBuffer)||fe&&oe(fe.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(oe(fe,SharedArrayBuffer)||fe&&oe(fe.buffer,SharedArrayBuffer)))return x(fe,ee,ae);if(typeof fe=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var _e=fe.valueOf&&fe.valueOf();if(_e!=null&&_e!==fe)return d.from(_e,ee,ae);var re=A(fe);if(re)return re;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof fe[Symbol.toPrimitive]=="function")return d.from(fe[Symbol.toPrimitive]("string"),ee,ae);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof fe)}d.from=function(fe,ee,ae){return v(fe,ee,ae)},Object.setPrototypeOf(d.prototype,Uint8Array.prototype),Object.setPrototypeOf(d,Uint8Array);function m(fe){if(typeof fe!="number")throw new TypeError('"size" argument must be of type number');if(fe<0)throw new RangeError('The value "'+fe+'" is invalid for option "size"')}function g(fe,ee,ae){return m(fe),fe<=0?p(fe):ee!==void 0?typeof ae=="string"?p(fe).fill(ee,ae):p(fe).fill(ee):p(fe)}d.alloc=function(fe,ee,ae){return g(fe,ee,ae)};function w(fe){return m(fe),p(fe<0?0:T(fe)|0)}d.allocUnsafe=function(fe){return w(fe)},d.allocUnsafeSlow=function(fe){return w(fe)};function _(fe,ee){if((typeof ee!="string"||ee==="")&&(ee="utf8"),!d.isEncoding(ee))throw new TypeError("Unknown encoding: "+ee);var ae=E(fe,ee)|0,_e=p(ae),re=_e.write(fe,ee);return re!==ae&&(_e=_e.slice(0,re)),_e}function b(fe){for(var ee=fe.length<0?0:T(fe.length)|0,ae=p(ee),_e=0;_e=f)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+f.toString(16)+" bytes");return fe|0}function y(fe){return+fe!=fe&&(fe=0),d.alloc(+fe)}d.isBuffer=function(ee){return ee!=null&&ee._isBuffer===!0&&ee!==d.prototype},d.compare=function(ee,ae){if(oe(ee,Uint8Array)&&(ee=d.from(ee,ee.offset,ee.byteLength)),oe(ae,Uint8Array)&&(ae=d.from(ae,ae.offset,ae.byteLength)),!d.isBuffer(ee)||!d.isBuffer(ae))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(ee===ae)return 0;for(var _e=ee.length,re=ae.length,pe=0,Te=Math.min(_e,re);pere.length?d.from(Te).copy(re,pe):Uint8Array.prototype.set.call(re,Te,pe);else if(d.isBuffer(Te))Te.copy(re,pe);else throw new TypeError('"list" argument must be an Array of Buffers');pe+=Te.length}return re};function E(fe,ee){if(d.isBuffer(fe))return fe.length;if(ArrayBuffer.isView(fe)||oe(fe,ArrayBuffer))return fe.byteLength;if(typeof fe!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof fe);var ae=fe.length,_e=arguments.length>2&&arguments[2]===!0;if(!_e&&ae===0)return 0;for(var re=!1;;)switch(ee){case"ascii":case"latin1":case"binary":return ae;case"utf8":case"utf-8":return ue(fe).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ae*2;case"hex":return ae>>>1;case"base64":return xe(fe).length;default:if(re)return _e?-1:ue(fe).length;ee=(""+ee).toLowerCase(),re=!0}}d.byteLength=E;function M(fe,ee,ae){var _e=!1;if((ee===void 0||ee<0)&&(ee=0),ee>this.length||((ae===void 0||ae>this.length)&&(ae=this.length),ae<=0)||(ae>>>=0,ee>>>=0,ae<=ee))return"";for(fe||(fe="utf8");;)switch(fe){case"hex":return q(this,ee,ae);case"utf8":case"utf-8":return O(this,ee,ae);case"ascii":return K(this,ee,ae);case"latin1":case"binary":return G(this,ee,ae);case"base64":return B(this,ee,ae);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return J(this,ee,ae);default:if(_e)throw new TypeError("Unknown encoding: "+fe);fe=(fe+"").toLowerCase(),_e=!0}}d.prototype._isBuffer=!0;function C(fe,ee,ae){var _e=fe[ee];fe[ee]=fe[ae],fe[ae]=_e}d.prototype.swap16=function(){var ee=this.length;if(ee%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var ae=0;aeae&&(ee+=" ... "),""},c&&(d.prototype[c]=d.prototype.inspect),d.prototype.compare=function(ee,ae,_e,re,pe){if(oe(ee,Uint8Array)&&(ee=d.from(ee,ee.offset,ee.byteLength)),!d.isBuffer(ee))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof ee);if(ae===void 0&&(ae=0),_e===void 0&&(_e=ee?ee.length:0),re===void 0&&(re=0),pe===void 0&&(pe=this.length),ae<0||_e>ee.length||re<0||pe>this.length)throw new RangeError("out of range index");if(re>=pe&&ae>=_e)return 0;if(re>=pe)return-1;if(ae>=_e)return 1;if(ae>>>=0,_e>>>=0,re>>>=0,pe>>>=0,this===ee)return 0;for(var Te=pe-re,Ce=_e-ae,ze=Math.min(Te,Ce),we=this.slice(re,pe),me=ee.slice(ae,_e),Le=0;Le2147483647?ae=2147483647:ae<-2147483648&&(ae=-2147483648),ae=+ae,Se(ae)&&(ae=re?0:fe.length-1),ae<0&&(ae=fe.length+ae),ae>=fe.length){if(re)return-1;ae=fe.length-1}else if(ae<0)if(re)ae=0;else return-1;if(typeof ee=="string"&&(ee=d.from(ee,_e)),d.isBuffer(ee))return ee.length===0?-1:D(fe,ee,ae,_e,re);if(typeof ee=="number")return ee=ee&255,typeof Uint8Array.prototype.indexOf=="function"?re?Uint8Array.prototype.indexOf.call(fe,ee,ae):Uint8Array.prototype.lastIndexOf.call(fe,ee,ae):D(fe,[ee],ae,_e,re);throw new TypeError("val must be string, number or Buffer")}function D(fe,ee,ae,_e,re){var pe=1,Te=fe.length,Ce=ee.length;if(_e!==void 0&&(_e=String(_e).toLowerCase(),_e==="ucs2"||_e==="ucs-2"||_e==="utf16le"||_e==="utf-16le")){if(fe.length<2||ee.length<2)return-1;pe=2,Te/=2,Ce/=2,ae/=2}function ze(Je,rt){return pe===1?Je[rt]:Je.readUInt16BE(rt*pe)}var we;if(re){var me=-1;for(we=ae;weTe&&(ae=Te-Ce),we=ae;we>=0;we--){for(var Le=!0,Ne=0;Nere&&(_e=re)):_e=re;var pe=ee.length;_e>pe/2&&(_e=pe/2);for(var Te=0;Te<_e;++Te){var Ce=parseInt(ee.substr(Te*2,2),16);if(Se(Ce))return Te;fe[ae+Te]=Ce}return Te}function P(fe,ee,ae,_e){return ce(ue(ee,fe.length-ae),fe,ae,_e)}function R(fe,ee,ae,_e){return ce(ge(ee),fe,ae,_e)}function L(fe,ee,ae,_e){return ce(xe(ee),fe,ae,_e)}function I(fe,ee,ae,_e){return ce(Ee(ee,fe.length-ae),fe,ae,_e)}d.prototype.write=function(ee,ae,_e,re){if(ae===void 0)re="utf8",_e=this.length,ae=0;else if(_e===void 0&&typeof ae=="string")re=ae,_e=this.length,ae=0;else if(isFinite(ae))ae=ae>>>0,isFinite(_e)?(_e=_e>>>0,re===void 0&&(re="utf8")):(re=_e,_e=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var pe=this.length-ae;if((_e===void 0||_e>pe)&&(_e=pe),ee.length>0&&(_e<0||ae<0)||ae>this.length)throw new RangeError("Attempt to write outside buffer bounds");re||(re="utf8");for(var Te=!1;;)switch(re){case"hex":return F(this,ee,ae,_e);case"utf8":case"utf-8":return P(this,ee,ae,_e);case"ascii":case"latin1":case"binary":return R(this,ee,ae,_e);case"base64":return L(this,ee,ae,_e);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,ee,ae,_e);default:if(Te)throw new TypeError("Unknown encoding: "+re);re=(""+re).toLowerCase(),Te=!0}},d.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function B(fe,ee,ae){return ee===0&&ae===fe.length?l.fromByteArray(fe):l.fromByteArray(fe.slice(ee,ae))}function O(fe,ee,ae){ae=Math.min(fe.length,ae);for(var _e=[],re=ee;re239?4:pe>223?3:pe>191?2:1;if(re+Ce<=ae){var ze,we,me,Le;switch(Ce){case 1:pe<128&&(Te=pe);break;case 2:ze=fe[re+1],(ze&192)===128&&(Le=(pe&31)<<6|ze&63,Le>127&&(Te=Le));break;case 3:ze=fe[re+1],we=fe[re+2],(ze&192)===128&&(we&192)===128&&(Le=(pe&15)<<12|(ze&63)<<6|we&63,Le>2047&&(Le<55296||Le>57343)&&(Te=Le));break;case 4:ze=fe[re+1],we=fe[re+2],me=fe[re+3],(ze&192)===128&&(we&192)===128&&(me&192)===128&&(Le=(pe&15)<<18|(ze&63)<<12|(we&63)<<6|me&63,Le>65535&&Le<1114112&&(Te=Le))}}Te===null?(Te=65533,Ce=1):Te>65535&&(Te-=65536,_e.push(Te>>>10&1023|55296),Te=56320|Te&1023),_e.push(Te),re+=Ce}return X(_e)}var $=4096;function X(fe){var ee=fe.length;if(ee<=$)return String.fromCharCode.apply(String,fe);for(var ae="",_e=0;_e_e)&&(ae=_e);for(var re="",pe=ee;pe_e&&(ee=_e),ae<0?(ae+=_e,ae<0&&(ae=0)):ae>_e&&(ae=_e),aeae)throw new RangeError("Trying to access beyond buffer length")}d.prototype.readUintLE=d.prototype.readUIntLE=function(ee,ae,_e){ee=ee>>>0,ae=ae>>>0,_e||N(ee,ae,this.length);for(var re=this[ee],pe=1,Te=0;++Te>>0,ae=ae>>>0,_e||N(ee,ae,this.length);for(var re=this[ee+--ae],pe=1;ae>0&&(pe*=256);)re+=this[ee+--ae]*pe;return re},d.prototype.readUint8=d.prototype.readUInt8=function(ee,ae){return ee=ee>>>0,ae||N(ee,1,this.length),this[ee]},d.prototype.readUint16LE=d.prototype.readUInt16LE=function(ee,ae){return ee=ee>>>0,ae||N(ee,2,this.length),this[ee]|this[ee+1]<<8},d.prototype.readUint16BE=d.prototype.readUInt16BE=function(ee,ae){return ee=ee>>>0,ae||N(ee,2,this.length),this[ee]<<8|this[ee+1]},d.prototype.readUint32LE=d.prototype.readUInt32LE=function(ee,ae){return ee=ee>>>0,ae||N(ee,4,this.length),(this[ee]|this[ee+1]<<8|this[ee+2]<<16)+this[ee+3]*16777216},d.prototype.readUint32BE=d.prototype.readUInt32BE=function(ee,ae){return ee=ee>>>0,ae||N(ee,4,this.length),this[ee]*16777216+(this[ee+1]<<16|this[ee+2]<<8|this[ee+3])},d.prototype.readIntLE=function(ee,ae,_e){ee=ee>>>0,ae=ae>>>0,_e||N(ee,ae,this.length);for(var re=this[ee],pe=1,Te=0;++Te=pe&&(re-=Math.pow(2,8*ae)),re},d.prototype.readIntBE=function(ee,ae,_e){ee=ee>>>0,ae=ae>>>0,_e||N(ee,ae,this.length);for(var re=ae,pe=1,Te=this[ee+--re];re>0&&(pe*=256);)Te+=this[ee+--re]*pe;return pe*=128,Te>=pe&&(Te-=Math.pow(2,8*ae)),Te},d.prototype.readInt8=function(ee,ae){return ee=ee>>>0,ae||N(ee,1,this.length),this[ee]&128?(255-this[ee]+1)*-1:this[ee]},d.prototype.readInt16LE=function(ee,ae){ee=ee>>>0,ae||N(ee,2,this.length);var _e=this[ee]|this[ee+1]<<8;return _e&32768?_e|4294901760:_e},d.prototype.readInt16BE=function(ee,ae){ee=ee>>>0,ae||N(ee,2,this.length);var _e=this[ee+1]|this[ee]<<8;return _e&32768?_e|4294901760:_e},d.prototype.readInt32LE=function(ee,ae){return ee=ee>>>0,ae||N(ee,4,this.length),this[ee]|this[ee+1]<<8|this[ee+2]<<16|this[ee+3]<<24},d.prototype.readInt32BE=function(ee,ae){return ee=ee>>>0,ae||N(ee,4,this.length),this[ee]<<24|this[ee+1]<<16|this[ee+2]<<8|this[ee+3]},d.prototype.readFloatLE=function(ee,ae){return ee=ee>>>0,ae||N(ee,4,this.length),u.read(this,ee,!0,23,4)},d.prototype.readFloatBE=function(ee,ae){return ee=ee>>>0,ae||N(ee,4,this.length),u.read(this,ee,!1,23,4)},d.prototype.readDoubleLE=function(ee,ae){return ee=ee>>>0,ae||N(ee,8,this.length),u.read(this,ee,!0,52,8)},d.prototype.readDoubleBE=function(ee,ae){return ee=ee>>>0,ae||N(ee,8,this.length),u.read(this,ee,!1,52,8)};function V(fe,ee,ae,_e,re,pe){if(!d.isBuffer(fe))throw new TypeError('"buffer" argument must be a Buffer instance');if(ee>re||eefe.length)throw new RangeError("Index out of range")}d.prototype.writeUintLE=d.prototype.writeUIntLE=function(ee,ae,_e,re){if(ee=+ee,ae=ae>>>0,_e=_e>>>0,!re){var pe=Math.pow(2,8*_e)-1;V(this,ee,ae,_e,pe,0)}var Te=1,Ce=0;for(this[ae]=ee&255;++Ce<_e&&(Te*=256);)this[ae+Ce]=ee/Te&255;return ae+_e},d.prototype.writeUintBE=d.prototype.writeUIntBE=function(ee,ae,_e,re){if(ee=+ee,ae=ae>>>0,_e=_e>>>0,!re){var pe=Math.pow(2,8*_e)-1;V(this,ee,ae,_e,pe,0)}var Te=_e-1,Ce=1;for(this[ae+Te]=ee&255;--Te>=0&&(Ce*=256);)this[ae+Te]=ee/Ce&255;return ae+_e},d.prototype.writeUint8=d.prototype.writeUInt8=function(ee,ae,_e){return ee=+ee,ae=ae>>>0,_e||V(this,ee,ae,1,255,0),this[ae]=ee&255,ae+1},d.prototype.writeUint16LE=d.prototype.writeUInt16LE=function(ee,ae,_e){return ee=+ee,ae=ae>>>0,_e||V(this,ee,ae,2,65535,0),this[ae]=ee&255,this[ae+1]=ee>>>8,ae+2},d.prototype.writeUint16BE=d.prototype.writeUInt16BE=function(ee,ae,_e){return ee=+ee,ae=ae>>>0,_e||V(this,ee,ae,2,65535,0),this[ae]=ee>>>8,this[ae+1]=ee&255,ae+2},d.prototype.writeUint32LE=d.prototype.writeUInt32LE=function(ee,ae,_e){return ee=+ee,ae=ae>>>0,_e||V(this,ee,ae,4,4294967295,0),this[ae+3]=ee>>>24,this[ae+2]=ee>>>16,this[ae+1]=ee>>>8,this[ae]=ee&255,ae+4},d.prototype.writeUint32BE=d.prototype.writeUInt32BE=function(ee,ae,_e){return ee=+ee,ae=ae>>>0,_e||V(this,ee,ae,4,4294967295,0),this[ae]=ee>>>24,this[ae+1]=ee>>>16,this[ae+2]=ee>>>8,this[ae+3]=ee&255,ae+4},d.prototype.writeIntLE=function(ee,ae,_e,re){if(ee=+ee,ae=ae>>>0,!re){var pe=Math.pow(2,8*_e-1);V(this,ee,ae,_e,pe-1,-pe)}var Te=0,Ce=1,ze=0;for(this[ae]=ee&255;++Te<_e&&(Ce*=256);)ee<0&&ze===0&&this[ae+Te-1]!==0&&(ze=1),this[ae+Te]=(ee/Ce>>0)-ze&255;return ae+_e},d.prototype.writeIntBE=function(ee,ae,_e,re){if(ee=+ee,ae=ae>>>0,!re){var pe=Math.pow(2,8*_e-1);V(this,ee,ae,_e,pe-1,-pe)}var Te=_e-1,Ce=1,ze=0;for(this[ae+Te]=ee&255;--Te>=0&&(Ce*=256);)ee<0&&ze===0&&this[ae+Te+1]!==0&&(ze=1),this[ae+Te]=(ee/Ce>>0)-ze&255;return ae+_e},d.prototype.writeInt8=function(ee,ae,_e){return ee=+ee,ae=ae>>>0,_e||V(this,ee,ae,1,127,-128),ee<0&&(ee=255+ee+1),this[ae]=ee&255,ae+1},d.prototype.writeInt16LE=function(ee,ae,_e){return ee=+ee,ae=ae>>>0,_e||V(this,ee,ae,2,32767,-32768),this[ae]=ee&255,this[ae+1]=ee>>>8,ae+2},d.prototype.writeInt16BE=function(ee,ae,_e){return ee=+ee,ae=ae>>>0,_e||V(this,ee,ae,2,32767,-32768),this[ae]=ee>>>8,this[ae+1]=ee&255,ae+2},d.prototype.writeInt32LE=function(ee,ae,_e){return ee=+ee,ae=ae>>>0,_e||V(this,ee,ae,4,2147483647,-2147483648),this[ae]=ee&255,this[ae+1]=ee>>>8,this[ae+2]=ee>>>16,this[ae+3]=ee>>>24,ae+4},d.prototype.writeInt32BE=function(ee,ae,_e){return ee=+ee,ae=ae>>>0,_e||V(this,ee,ae,4,2147483647,-2147483648),ee<0&&(ee=4294967295+ee+1),this[ae]=ee>>>24,this[ae+1]=ee>>>16,this[ae+2]=ee>>>8,this[ae+3]=ee&255,ae+4};function Y(fe,ee,ae,_e,re,pe){if(ae+_e>fe.length)throw new RangeError("Index out of range");if(ae<0)throw new RangeError("Index out of range")}function H(fe,ee,ae,_e,re){return ee=+ee,ae=ae>>>0,re||Y(fe,ee,ae,4,34028234663852886e22,-34028234663852886e22),u.write(fe,ee,ae,_e,23,4),ae+4}d.prototype.writeFloatLE=function(ee,ae,_e){return H(this,ee,ae,!0,_e)},d.prototype.writeFloatBE=function(ee,ae,_e){return H(this,ee,ae,!1,_e)};function j(fe,ee,ae,_e,re){return ee=+ee,ae=ae>>>0,re||Y(fe,ee,ae,8,17976931348623157e292,-17976931348623157e292),u.write(fe,ee,ae,_e,52,8),ae+8}d.prototype.writeDoubleLE=function(ee,ae,_e){return j(this,ee,ae,!0,_e)},d.prototype.writeDoubleBE=function(ee,ae,_e){return j(this,ee,ae,!1,_e)},d.prototype.copy=function(ee,ae,_e,re){if(!d.isBuffer(ee))throw new TypeError("argument should be a Buffer");if(_e||(_e=0),!re&&re!==0&&(re=this.length),ae>=ee.length&&(ae=ee.length),ae||(ae=0),re>0&&re<_e&&(re=_e),re===_e||ee.length===0||this.length===0)return 0;if(ae<0)throw new RangeError("targetStart out of bounds");if(_e<0||_e>=this.length)throw new RangeError("Index out of range");if(re<0)throw new RangeError("sourceEnd out of bounds");re>this.length&&(re=this.length),ee.length-ae>>0,_e=_e===void 0?this.length:_e>>>0,ee||(ee=0);var Te;if(typeof ee=="number")for(Te=ae;Te<_e;++Te)this[Te]=ee;else{var Ce=d.isBuffer(ee)?ee:d.from(ee,re),ze=Ce.length;if(ze===0)throw new TypeError('The value "'+ee+'" is invalid for argument "value"');for(Te=0;Te<_e-ae;++Te)this[Te+ae]=Ce[Te%ze]}return this};var Q=/[^+/0-9A-Za-z-_]/g;function te(fe){if(fe=fe.split("=")[0],fe=fe.trim().replace(Q,""),fe.length<2)return"";for(;fe.length%4!==0;)fe=fe+"=";return fe}function ue(fe,ee){ee=ee||1/0;for(var ae,_e=fe.length,re=null,pe=[],Te=0;Te<_e;++Te){if(ae=fe.charCodeAt(Te),ae>55295&&ae<57344){if(!re){if(ae>56319){(ee-=3)>-1&&pe.push(239,191,189);continue}else if(Te+1===_e){(ee-=3)>-1&&pe.push(239,191,189);continue}re=ae;continue}if(ae<56320){(ee-=3)>-1&&pe.push(239,191,189),re=ae;continue}ae=(re-55296<<10|ae-56320)+65536}else re&&(ee-=3)>-1&&pe.push(239,191,189);if(re=null,ae<128){if((ee-=1)<0)break;pe.push(ae)}else if(ae<2048){if((ee-=2)<0)break;pe.push(ae>>6|192,ae&63|128)}else if(ae<65536){if((ee-=3)<0)break;pe.push(ae>>12|224,ae>>6&63|128,ae&63|128)}else if(ae<1114112){if((ee-=4)<0)break;pe.push(ae>>18|240,ae>>12&63|128,ae>>6&63|128,ae&63|128)}else throw new Error("Invalid code point")}return pe}function ge(fe){for(var ee=[],ae=0;ae>8,re=ae%256,pe.push(re),pe.push(_e);return pe}function xe(fe){return l.toByteArray(te(fe))}function ce(fe,ee,ae,_e){for(var re=0;re<_e&&!(re+ae>=ee.length||re>=fe.length);++re)ee[re+ae]=fe[re];return re}function oe(fe,ee){return fe instanceof ee||fe!=null&&fe.constructor!=null&&fe.constructor.name!=null&&fe.constructor.name===ee.name}function Se(fe){return fe!==fe}var be=(function(){for(var fe="0123456789abcdef",ee=new Array(256),ae=0;ae<16;++ae)for(var _e=ae*16,re=0;re<16;++re)ee[_e+re]=fe[ae]+fe[re];return ee})()},2538(n,a,o){"use strict";var s=o(8902),l=o(5542),u=o(2272),c=o(5023);n.exports=v;function f(m){return[Math.min(m[0],m[1]),Math.max(m[0],m[1])]}function h(m,g){return m[0]-g[0]||m[1]-g[1]}function p(m){return m.map(f).sort(h)}function d(m,g,w){return g in m?m[g]:w}function v(m,g,w){Array.isArray(g)?(w=w||{},g=g||[]):(w=g||{},g=[]);var _=!!d(w,"delaunay",!0),b=!!d(w,"interior",!0),S=!!d(w,"exterior",!0),x=!!d(w,"infinity",!1);if(!b&&!S||m.length===0)return[];var A=s(m,g);if(_||b!==S||x){for(var T=l(m.length,p(g)),y=0;y0;){for(var _=p.pop(),m=p.pop(),b=-1,S=-1,g=v[m],A=1;A=0||(h.flip(m,_),u(f,h,p,b,m,S),u(f,h,p,m,S,b),u(f,h,p,S,_,b),u(f,h,p,_,b,S))}}},5023(n,a,o){"use strict";var s=o(2478);n.exports=p;function l(d,v,m,g,w,_,b){this.cells=d,this.neighbor=v,this.flags=g,this.constraint=m,this.active=w,this.next=_,this.boundary=b}var u=l.prototype;function c(d,v){return d[0]-v[0]||d[1]-v[1]||d[2]-v[2]}u.locate=(function(){var d=[0,0,0];return function(v,m,g){var w=v,_=m,b=g;return m0||b.length>0;){for(;_.length>0;){var y=_.pop();if(S[y]!==-w){S[y]=w;for(var E=x[y],M=0;M<3;++M){var C=T[3*y+M];C>=0&&S[C]===0&&(A[3*y+M]?b.push(C):(_.push(C),S[C]=w))}}}var k=b;b=_,_=k,b.length=0,w=-w}var D=h(x,S,v);return m?D.concat(g.boundary):D}},8902(n,a,o){"use strict";var s=o(2478),l=o(3250)[3],u=0,c=1,f=2;n.exports=b;function h(S,x,A,T,y){this.a=S,this.b=x,this.idx=A,this.lowerIds=T,this.upperIds=y}function p(S,x,A,T){this.a=S,this.b=x,this.type=A,this.idx=T}function d(S,x){var A=S.a[0]-x.a[0]||S.a[1]-x.a[1]||S.type-x.type;return A||S.type!==u&&(A=l(S.a,S.b,x.b),A)?A:S.idx-x.idx}function v(S,x){return l(S.a,S.b,x)}function m(S,x,A,T,y){for(var E=s.lt(x,T,v),M=s.gt(x,T,v),C=E;C1&&l(A[D[P-2]],A[D[P-1]],T)>0;)S.push([D[P-1],D[P-2],y]),P-=1;D.length=P,D.push(y);for(var F=k.upperIds,P=F.length;P>1&&l(A[F[P-2]],A[F[P-1]],T)<0;)S.push([F[P-2],F[P-1],y]),P-=1;F.length=P,F.push(y)}}function g(S,x){var A;return S.a[0]k[0]&&y.push(new p(k,C,f,E),new p(C,k,c,E))}y.sort(d);for(var D=y[0].a[0]-(1+Math.abs(y[0].a[0]))*Math.pow(2,-52),F=[new h([D,1],[D,0],-1,[],[],[],[])],P=[],E=0,R=y.length;E=0}})(),u.removeTriangle=function(h,p,d){var v=this.stars;c(v[h],p,d),c(v[p],d,h),c(v[d],h,p)},u.addTriangle=function(h,p,d){var v=this.stars;v[h].push(p,d),v[p].push(d,h),v[d].push(h,p)},u.opposite=function(h,p){for(var d=this.stars[p],v=1,m=d.length;v=0;--L){var J=P[L];I=J[0];var N=D[I],V=N[0],Y=N[1],H=k[V],j=k[Y];if((H[0]-j[0]||H[1]-j[1])<0){var Q=V;V=Y,Y=Q}N[0]=V;var te=N[1]=J[1],ue;for(R&&(ue=N[2]);L>0&&P[L-1][0]===I;){var J=P[--L],ge=J[1];R?D.push([te,ge,ue]):D.push([te,ge]),te=ge}R?D.push([te,Y,ue]):D.push([te,Y])}return B}function x(k,D,F){for(var P=D.length,R=new s(P),L=[],I=0;ID[2]?1:0)}function y(k,D,F){if(k.length!==0){if(D)for(var P=0;P0||I.length>0}function C(k,D,F){var P;if(F){P=D;for(var R=new Array(D.length),L=0;LS+1)throw new Error(_+" map requires nshades to be at least size "+w.length);Array.isArray(p.alpha)?p.alpha.length!==2?x=[1,1]:x=p.alpha.slice():typeof p.alpha=="number"?x=[p.alpha,p.alpha]:x=[1,1],d=w.map(function(C){return Math.round(C.index*S)}),x[0]=Math.min(Math.max(x[0],0),1),x[1]=Math.min(Math.max(x[1],0),1);var T=w.map(function(C,k){var D=w[k].index,F=w[k].rgb.slice();return F.length===4&&F[3]>=0&&F[3]<=1||(F[3]=x[0]+(x[1]-x[0])*D),F}),y=[];for(A=0;A=0}function p(d,v,m,g){var w=s(v,m,g);if(w===0){var _=l(s(d,v,m)),b=l(s(d,v,g));if(_===b){if(_===0){var S=h(d,v,m),x=h(d,v,g);return S===x?0:S?1:-1}return 0}else{if(b===0)return _>0||h(d,v,g)?-1:1;if(_===0)return b>0||h(d,v,m)?1:-1}return l(b-_)}var A=s(d,v,m);if(A>0)return w>0&&s(d,v,g)>0?1:-1;if(A<0)return w>0||s(d,v,g)>0?1:-1;var T=s(d,v,g);return T>0||h(d,v,m)?1:-1}},8572(n){"use strict";n.exports=function(o){return o<0?-1:o>0?1:0}},8507(n){n.exports=s;var a=Math.min;function o(l,u){return l-u}function s(l,u){var c=l.length,f=l.length-u.length;if(f)return f;switch(c){case 0:return 0;case 1:return l[0]-u[0];case 2:return l[0]+l[1]-u[0]-u[1]||a(l[0],l[1])-a(u[0],u[1]);case 3:var h=l[0]+l[1],p=u[0]+u[1];if(f=h+l[2]-(p+u[2]),f)return f;var d=a(l[0],l[1]),v=a(u[0],u[1]);return a(d,l[2])-a(v,u[2])||a(d+l[2],h)-a(v+u[2],p);case 4:var m=l[0],g=l[1],w=l[2],_=l[3],b=u[0],S=u[1],x=u[2],A=u[3];return m+g+w+_-(b+S+x+A)||a(m,g,w,_)-a(b,S,x,A,b)||a(m+g,m+w,m+_,g+w,g+_,w+_)-a(b+S,b+x,b+A,S+x,S+A,x+A)||a(m+g+w,m+g+_,m+w+_,g+w+_)-a(b+S+x,b+S+A,b+x+A,S+x+A);default:for(var T=l.slice().sort(o),y=u.slice().sort(o),E=0;Eo[l][0]&&(l=u);return sl?[[l],[s]]:[[s]]}},4750(n,a,o){"use strict";n.exports=l;var s=o(3090);function l(u){var c=s(u),f=c.length;if(f<=2)return[];for(var h=new Array(f),p=c[f-1],d=0;d=p[b]&&(_+=1);g[w]=_}}return h}function f(h,p){try{return s(h,!0)}catch(g){var d=l(h);if(d.length<=p)return[];var v=u(h,d),m=s(v,!0);return c(m,d)}}},4769(n){"use strict";function a(s,l,u,c,f,h){var p=6*f*f-6*f,d=3*f*f-4*f+1,v=-6*f*f+6*f,m=3*f*f-2*f;if(s.length){h||(h=new Array(s.length));for(var g=s.length-1;g>=0;--g)h[g]=p*s[g]+d*l[g]+v*u[g]+m*c[g];return h}return p*s+d*l+v*u[g]+m*c}function o(s,l,u,c,f,h){var p=f-1,d=f*f,v=p*p,m=(1+2*f)*v,g=f*v,w=d*(3-2*f),_=d*p;if(s.length){h||(h=new Array(s.length));for(var b=s.length-1;b>=0;--b)h[b]=m*s[b]+g*l[b]+w*u[b]+_*c[b];return h}return m*s+g*l+w*u+_*c}n.exports=o,n.exports.derivative=a},7642(n,a,o){"use strict";var s=o(8954),l=o(1682);n.exports=h;function u(p,d){this.point=p,this.index=d}function c(p,d){for(var v=p.point,m=d.point,g=v.length,w=0;w=2)return!1;F[R]=L}return!0}):D=D.filter(function(F){for(var P=0;P<=m;++P){var R=E[F[P]];if(R<0)return!1;F[P]=R}return!0}),m&1)for(var _=0;_>>31},n.exports.exponent=function(w){var _=n.exports.hi(w);return(_<<1>>>21)-1023},n.exports.fraction=function(w){var _=n.exports.lo(w),b=n.exports.hi(w),S=b&(1<<20)-1;return b&2146435072&&(S+=1048576),[_,S]},n.exports.denormalized=function(w){var _=n.exports.hi(w);return!(_&2146435072)}},1338(n){"use strict";function a(l,u,c){var f=l[c]|0;if(f<=0)return[];var h=new Array(f),p;if(c===l.length-1)for(p=0;p0)return o(l|0,u);break;case"object":if(typeof l.length=="number")return a(l,u,0);break}return[]}n.exports=s},3134(n,a,o){"use strict";n.exports=l;var s=o(1682);function l(u,c){var f=u.length;if(typeof c!="number"){c=0;for(var h=0;h=m-1)for(var A=_.length-1,y=d-v[m-1],T=0;T=m-1)for(var x=_.length-1,A=d-v[m-1],T=0;T=0;--m)if(d[--v])return!1;return!0},f.jump=function(d){var v=this.lastT(),m=this.dimension;if(!(d0;--T)g.push(u(S[T-1],x[T-1],arguments[T])),w.push(0)}},f.push=function(d){var v=this.lastT(),m=this.dimension;if(!(d1e-6?1/b:0;this._time.push(d);for(var y=m;y>0;--y){var E=u(x[y-1],A[y-1],arguments[y]);g.push(E),w.push((E-g[_++])*T)}}},f.set=function(d){var v=this.dimension;if(!(d0;--S)m.push(u(_[S-1],b[S-1],arguments[S])),g.push(0)}},f.move=function(d){var v=this.lastT(),m=this.dimension;if(!(d<=v||arguments.length!==m+1)){var g=this._state,w=this._velocity,_=g.length-this.dimension,b=this.bounds,S=b[0],x=b[1],A=d-v,T=A>1e-6?1/A:0;this._time.push(d);for(var y=m;y>0;--y){var E=arguments[y];g.push(u(S[y-1],x[y-1],g[_++]+E)),w.push(E*T)}}},f.idle=function(d){var v=this.lastT();if(!(d=0;--T)g.push(u(S[T],x[T],g[_]+A*w[_])),w.push(0),_+=1}};function h(d){for(var v=new Array(d),m=0;m=0;--k){var y=E[k];M[k]<=0?E[k]=new s(y._color,y.key,y.value,E[k+1],y.right,y._count+1):E[k]=new s(y._color,y.key,y.value,y.left,E[k+1],y._count+1)}for(var k=E.length-1;k>1;--k){var D=E[k-1],y=E[k];if(D._color===o||y._color===o)break;var F=E[k-2];if(F.left===D)if(D.left===y){var P=F.right;if(P&&P._color===a)D._color=o,F.right=u(o,P),F._color=a,k-=1;else{if(F._color=a,F.left=D.right,D._color=o,D.right=F,E[k-2]=D,E[k-1]=y,c(F),c(D),k>=3){var R=E[k-3];R.left===F?R.left=D:R.right=D}break}}else{var P=F.right;if(P&&P._color===a)D._color=o,F.right=u(o,P),F._color=a,k-=1;else{if(D.right=y.left,F._color=a,F.left=y.right,y._color=o,y.left=D,y.right=F,E[k-2]=y,E[k-1]=D,c(F),c(D),c(y),k>=3){var R=E[k-3];R.left===F?R.left=y:R.right=y}break}}else if(D.right===y){var P=F.left;if(P&&P._color===a)D._color=o,F.left=u(o,P),F._color=a,k-=1;else{if(F._color=a,F.right=D.left,D._color=o,D.left=F,E[k-2]=D,E[k-1]=y,c(F),c(D),k>=3){var R=E[k-3];R.right===F?R.right=D:R.left=D}break}}else{var P=F.left;if(P&&P._color===a)D._color=o,F.left=u(o,P),F._color=a,k-=1;else{if(D.left=y.right,F._color=a,F.right=y.left,y._color=o,y.right=D,y.left=F,E[k-2]=y,E[k-1]=D,c(F),c(D),c(y),k>=3){var R=E[k-3];R.right===F?R.right=y:R.left=y}break}}}return E[0]._color=o,new f(T,E[0])};function p(x,A){if(A.left){var T=p(x,A.left);if(T)return T}var T=x(A.key,A.value);if(T)return T;if(A.right)return p(x,A.right)}function d(x,A,T,y){var E=A(x,y.key);if(E<=0){if(y.left){var M=d(x,A,T,y.left);if(M)return M}var M=T(y.key,y.value);if(M)return M}if(y.right)return d(x,A,T,y.right)}function v(x,A,T,y,E){var M=T(x,E.key),C=T(A,E.key),k;if(M<=0&&(E.left&&(k=v(x,A,T,y,E.left),k)||C>0&&(k=y(E.key,E.value),k)))return k;if(C>0&&E.right)return v(x,A,T,y,E.right)}h.forEach=function(A,T,y){if(this.root)switch(arguments.length){case 1:return p(A,this.root);case 2:return d(T,this._compare,A,this.root);case 3:return this._compare(T,y)>=0?void 0:v(T,y,this._compare,A,this.root)}},Object.defineProperty(h,"begin",{get:function(){for(var x=[],A=this.root;A;)x.push(A),A=A.left;return new m(this,x)}}),Object.defineProperty(h,"end",{get:function(){for(var x=[],A=this.root;A;)x.push(A),A=A.right;return new m(this,x)}}),h.at=function(x){if(x<0)return new m(this,[]);for(var A=this.root,T=[];;){if(T.push(A),A.left){if(x=A.right._count)break;A=A.right}else break}return new m(this,[])},h.ge=function(x){for(var A=this._compare,T=this.root,y=[],E=0;T;){var M=A(x,T.key);y.push(T),M<=0&&(E=y.length),M<=0?T=T.left:T=T.right}return y.length=E,new m(this,y)},h.gt=function(x){for(var A=this._compare,T=this.root,y=[],E=0;T;){var M=A(x,T.key);y.push(T),M<0&&(E=y.length),M<0?T=T.left:T=T.right}return y.length=E,new m(this,y)},h.lt=function(x){for(var A=this._compare,T=this.root,y=[],E=0;T;){var M=A(x,T.key);y.push(T),M>0&&(E=y.length),M<=0?T=T.left:T=T.right}return y.length=E,new m(this,y)},h.le=function(x){for(var A=this._compare,T=this.root,y=[],E=0;T;){var M=A(x,T.key);y.push(T),M>=0&&(E=y.length),M<0?T=T.left:T=T.right}return y.length=E,new m(this,y)},h.find=function(x){for(var A=this._compare,T=this.root,y=[];T;){var E=A(x,T.key);if(y.push(T),E===0)return new m(this,y);E<=0?T=T.left:T=T.right}return new m(this,[])},h.remove=function(x){var A=this.find(x);return A?A.remove():this},h.get=function(x){for(var A=this._compare,T=this.root;T;){var y=A(x,T.key);if(y===0)return T.value;y<=0?T=T.left:T=T.right}};function m(x,A){this.tree=x,this._stack=A}var g=m.prototype;Object.defineProperty(g,"valid",{get:function(){return this._stack.length>0}}),Object.defineProperty(g,"node",{get:function(){return this._stack.length>0?this._stack[this._stack.length-1]:null},enumerable:!0}),g.clone=function(){return new m(this.tree,this._stack.slice())};function w(x,A){x.key=A.key,x.value=A.value,x.left=A.left,x.right=A.right,x._color=A._color,x._count=A._count}function _(x){for(var A,T,y,E,M=x.length-1;M>=0;--M){if(A=x[M],M===0){A._color=o;return}if(T=x[M-1],T.left===A){if(y=T.right,y.right&&y.right._color===a){if(y=T.right=l(y),E=y.right=l(y.right),T.right=y.left,y.left=T,y.right=E,y._color=T._color,A._color=o,T._color=o,E._color=o,c(T),c(y),M>1){var C=x[M-2];C.left===T?C.left=y:C.right=y}x[M-1]=y;return}else if(y.left&&y.left._color===a){if(y=T.right=l(y),E=y.left=l(y.left),T.right=E.left,y.left=E.right,E.left=T,E.right=y,E._color=T._color,T._color=o,y._color=o,A._color=o,c(T),c(y),c(E),M>1){var C=x[M-2];C.left===T?C.left=E:C.right=E}x[M-1]=E;return}if(y._color===o)if(T._color===a){T._color=o,T.right=u(a,y);return}else{T.right=u(a,y);continue}else{if(y=l(y),T.right=y.left,y.left=T,y._color=T._color,T._color=a,c(T),c(y),M>1){var C=x[M-2];C.left===T?C.left=y:C.right=y}x[M-1]=y,x[M]=T,M+11){var C=x[M-2];C.right===T?C.right=y:C.left=y}x[M-1]=y;return}else if(y.right&&y.right._color===a){if(y=T.left=l(y),E=y.right=l(y.right),T.left=E.right,y.right=E.left,E.right=T,E.left=y,E._color=T._color,T._color=o,y._color=o,A._color=o,c(T),c(y),c(E),M>1){var C=x[M-2];C.right===T?C.right=E:C.left=E}x[M-1]=E;return}if(y._color===o)if(T._color===a){T._color=o,T.left=u(a,y);return}else{T.left=u(a,y);continue}else{if(y=l(y),T.left=y.right,y.right=T,y._color=T._color,T._color=a,c(T),c(y),M>1){var C=x[M-2];C.right===T?C.right=y:C.left=y}x[M-1]=y,x[M]=T,M+1=0;--y){var T=x[y];T.left===x[y+1]?A[y]=new s(T._color,T.key,T.value,A[y+1],T.right,T._count):A[y]=new s(T._color,T.key,T.value,T.left,A[y+1],T._count)}if(T=A[A.length-1],T.left&&T.right){var E=A.length;for(T=T.left;T.right;)A.push(T),T=T.right;var M=A[E-1];A.push(new s(T._color,M.key,M.value,T.left,T.right,T._count)),A[E-1].key=T.key,A[E-1].value=T.value;for(var y=A.length-2;y>=E;--y)T=A[y],A[y]=new s(T._color,T.key,T.value,T.left,A[y+1],T._count);A[E-1].left=A[E]}if(T=A[A.length-1],T._color===a){var C=A[A.length-2];C.left===T?C.left=null:C.right===T&&(C.right=null),A.pop();for(var y=0;y0)return this._stack[this._stack.length-1].key},enumerable:!0}),Object.defineProperty(g,"value",{get:function(){if(this._stack.length>0)return this._stack[this._stack.length-1].value},enumerable:!0}),Object.defineProperty(g,"index",{get:function(){var x=0,A=this._stack;if(A.length===0){var T=this.tree.root;return T?T._count:0}else A[A.length-1].left&&(x=A[A.length-1].left._count);for(var y=A.length-2;y>=0;--y)A[y+1]===A[y].right&&(++x,A[y].left&&(x+=A[y].left._count));return x},enumerable:!0}),g.next=function(){var x=this._stack;if(x.length!==0){var A=x[x.length-1];if(A.right)for(A=A.right;A;)x.push(A),A=A.left;else for(x.pop();x.length>0&&x[x.length-1].right===A;)A=x[x.length-1],x.pop()}},Object.defineProperty(g,"hasNext",{get:function(){var x=this._stack;if(x.length===0)return!1;if(x[x.length-1].right)return!0;for(var A=x.length-1;A>0;--A)if(x[A-1].left===x[A])return!0;return!1}}),g.update=function(x){var A=this._stack;if(A.length===0)throw new Error("Can't update empty node!");var T=new Array(A.length),y=A[A.length-1];T[T.length-1]=new s(y._color,y.key,x,y.left,y.right,y._count);for(var E=A.length-2;E>=0;--E)y=A[E],y.left===A[E+1]?T[E]=new s(y._color,y.key,y.value,T[E+1],y.right,y._count):T[E]=new s(y._color,y.key,y.value,y.left,T[E+1],y._count);return new f(this.tree._compare,T[0])},g.prev=function(){var x=this._stack;if(x.length!==0){var A=x[x.length-1];if(A.left)for(A=A.left;A;)x.push(A),A=A.right;else for(x.pop();x.length>0&&x[x.length-1].left===A;)A=x[x.length-1],x.pop()}},Object.defineProperty(g,"hasPrev",{get:function(){var x=this._stack;if(x.length===0)return!1;if(x[x.length-1].left)return!0;for(var A=x.length-1;A>0;--A)if(x[A-1].right===x[A])return!0;return!1}});function b(x,A){return xA?1:0}function S(x){return new f(x||b,null)}},3837(n,a,o){"use strict";n.exports=k;var s=o(4935),l=o(501),u=o(5304),c=o(6429),f=o(6444),h=new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]),p=ArrayBuffer,d=DataView;function v(D){return p.isView(D)&&!(D instanceof d)}function m(D){return Array.isArray(D)||v(D)}function g(D,F){return D[0]=F[0],D[1]=F[1],D[2]=F[2],D}function w(D){this.gl=D,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.tickFontStyle=["normal","normal","normal"],this.tickFontWeight=["normal","normal","normal"],this.tickFontVariant=["normal","normal","normal"],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","sans-serif","sans-serif"],this.labelFontStyle=["normal","normal","normal"],this.labelFontWeight=["normal","normal","normal"],this.labelFontVariant=["normal","normal","normal"],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=u(D)}var _=w.prototype;_.update=function(D){D=D||{};function F(V,Y,H){if(H in D){var j=D[H],Q=this[H],te;(V?m(j)&&m(j[0]):m(j))?this[H]=te=[Y(j[0]),Y(j[1]),Y(j[2])]:this[H]=te=[Y(j),Y(j),Y(j)];for(var ue=0;ue<3;++ue)if(te[ue]!==Q[ue])return!0}return!1}var P=F.bind(this,!1,Number),R=F.bind(this,!1,Boolean),L=F.bind(this,!1,String),I=F.bind(this,!0,function(V){if(m(V)){if(V.length===3)return[+V[0],+V[1],+V[2],1];if(V.length===4)return[+V[0],+V[1],+V[2],+V[3]]}return[0,0,0,1]}),B,O=!1,$=!1;if("bounds"in D)for(var X=D.bounds,K=0;K<2;++K)for(var G=0;G<3;++G)X[K][G]!==this.bounds[K][G]&&($=!0),this.bounds[K][G]=X[K][G];if("ticks"in D){B=D.ticks,O=!0,this.autoTicks=!1;for(var K=0;K<3;++K)this.tickSpacing[K]=0}else P("tickSpacing")&&(this.autoTicks=!0,$=!0);if(this._firstInit&&("ticks"in D||"tickSpacing"in D||(this.autoTicks=!0),$=!0,O=!0,this._firstInit=!1),$&&this.autoTicks&&(B=f.create(this.bounds,this.tickSpacing),O=!0),O){for(var K=0;K<3;++K)B[K].sort(function(Y,H){return Y.x-H.x});f.equal(B,this.ticks)?O=!1:this.ticks=B}R("tickEnable"),L("tickFont")&&(O=!0),L("tickFontStyle")&&(O=!0),L("tickFontWeight")&&(O=!0),L("tickFontVariant")&&(O=!0),P("tickSize"),P("tickAngle"),P("tickPad"),I("tickColor");var q=L("labels");L("labelFont")&&(q=!0),L("labelFontStyle")&&(q=!0),L("labelFontWeight")&&(q=!0),L("labelFontVariant")&&(q=!0),R("labelEnable"),P("labelSize"),P("labelPad"),I("labelColor"),R("lineEnable"),R("lineMirror"),P("lineWidth"),I("lineColor"),R("lineTickEnable"),R("lineTickMirror"),P("lineTickLength"),P("lineTickWidth"),I("lineTickColor"),R("gridEnable"),P("gridWidth"),I("gridColor"),R("zeroEnable"),I("zeroLineColor"),P("zeroLineWidth"),R("backgroundEnable"),I("backgroundColor");var J=[{family:this.labelFont[0],style:this.labelFontStyle[0],weight:this.labelFontWeight[0],variant:this.labelFontVariant[0]},{family:this.labelFont[1],style:this.labelFontStyle[1],weight:this.labelFontWeight[1],variant:this.labelFontVariant[1]},{family:this.labelFont[2],style:this.labelFontStyle[2],weight:this.labelFontWeight[2],variant:this.labelFontVariant[2]}],N=[{family:this.tickFont[0],style:this.tickFontStyle[0],weight:this.tickFontWeight[0],variant:this.tickFontVariant[0]},{family:this.tickFont[1],style:this.tickFontStyle[1],weight:this.tickFontWeight[1],variant:this.tickFontVariant[1]},{family:this.tickFont[2],style:this.tickFontStyle[2],weight:this.tickFontWeight[2],variant:this.tickFontVariant[2]}];this._text?this._text&&(q||O)&&this._text.update(this.bounds,this.labels,J,this.ticks,N):this._text=s(this.gl,this.bounds,this.labels,J,this.ticks,N),this._lines&&O&&(this._lines.dispose(),this._lines=null),this._lines||(this._lines=l(this.gl,this.bounds,this.ticks))};function b(){this.primalOffset=[0,0,0],this.primalMinor=[0,0,0],this.mirrorOffset=[0,0,0],this.mirrorMinor=[0,0,0]}var S=[new b,new b,new b];function x(D,F,P,R,L){for(var I=D.primalOffset,B=D.primalMinor,O=D.mirrorOffset,$=D.mirrorMinor,X=R[F],K=0;K<3;++K)if(F!==K){var G=I,q=O,J=B,N=$;X&1<0?(J[K]=-1,N[K]=0):(J[K]=0,N[K]=1)}}var A=[0,0,0],T={model:h,view:h,projection:h,_ortho:!1};_.isOpaque=function(){return!0},_.isTransparent=function(){return!1},_.drawTransparent=function(D){};var y=0,E=[0,0,0],M=[0,0,0],C=[0,0,0];_.draw=function(D){D=D||T;for(var H=this.gl,F=D.model||h,P=D.view||h,R=D.projection||h,L=this.bounds,I=D._ortho||!1,B=c(F,P,R,L,I),O=B.cubeEdges,$=B.axis,X=P[12],K=P[13],G=P[14],q=P[15],J=I?2:1,N=J*this.pixelRatio*(R[3]*X+R[7]*K+R[11]*G+R[15]*q)/H.drawingBufferHeight,V=0;V<3;++V)this.lastCubeProps.cubeEdges[V]=O[V],this.lastCubeProps.axis[V]=$[V];for(var Y=S,V=0;V<3;++V)x(S[V],V,this.bounds,O,$);for(var H=this.gl,j=A,V=0;V<3;++V)this.backgroundEnable[V]?j[V]=$[V]:j[V]=0;this._background.draw(F,P,R,L,j,this.backgroundColor),this._lines.bind(F,P,R,this);for(var V=0;V<3;++V){var Q=[0,0,0];$[V]>0?Q[V]=L[1][V]:Q[V]=L[0][V];for(var te=0;te<2;++te){var ue=(V+1+te)%3,ge=(V+1+(te^1))%3;this.gridEnable[ue]&&this._lines.drawGrid(ue,ge,this.bounds,Q,this.gridColor[ue],this.gridWidth[ue]*this.pixelRatio)}for(var te=0;te<2;++te){var ue=(V+1+te)%3,ge=(V+1+(te^1))%3;this.zeroEnable[ge]&&Math.min(L[0][ge],L[1][ge])<=0&&Math.max(L[0][ge],L[1][ge])>=0&&this._lines.drawZero(ue,ge,this.bounds,Q,this.zeroLineColor[ge],this.zeroLineWidth[ge]*this.pixelRatio)}}for(var V=0;V<3;++V){this.lineEnable[V]&&this._lines.drawAxisLine(V,this.bounds,Y[V].primalOffset,this.lineColor[V],this.lineWidth[V]*this.pixelRatio),this.lineMirror[V]&&this._lines.drawAxisLine(V,this.bounds,Y[V].mirrorOffset,this.lineColor[V],this.lineWidth[V]*this.pixelRatio);for(var Ee=g(E,Y[V].primalMinor),xe=g(M,Y[V].mirrorMinor),ce=this.lineTickLength,te=0;te<3;++te){var oe=N/F[5*te];Ee[te]*=ce[te]*oe,xe[te]*=ce[te]*oe}this.lineTickEnable[V]&&this._lines.drawAxisTicks(V,Y[V].primalOffset,Ee,this.lineTickColor[V],this.lineTickWidth[V]*this.pixelRatio),this.lineTickMirror[V]&&this._lines.drawAxisTicks(V,Y[V].mirrorOffset,xe,this.lineTickColor[V],this.lineTickWidth[V]*this.pixelRatio)}this._lines.unbind(),this._text.bind(F,P,R,this.pixelRatio);var Se,be=.5,fe,ee;function ae(ze){ee=[0,0,0],ee[ze]=1}function _e(ze,we,me){var Le=(ze+1)%3,Ne=(ze+2)%3,Je=we[Le],rt=we[Ne],mt=me[Le],dt=me[Ne];if(Je>0&&dt>0){ae(Le);return}else if(Je>0&&dt<0){ae(Le);return}else if(Je<0&&dt>0){ae(Le);return}else if(Je<0&&dt<0){ae(Le);return}else if(rt>0&&mt>0){ae(Ne);return}else if(rt>0&&mt<0){ae(Ne);return}else if(rt<0&&mt>0){ae(Ne);return}else if(rt<0&&mt<0){ae(Ne);return}}for(var V=0;V<3;++V){for(var re=Y[V].primalMinor,pe=Y[V].mirrorMinor,Te=g(C,Y[V].primalOffset),te=0;te<3;++te)this.lineTickEnable[V]&&(Te[te]+=N*re[te]*Math.max(this.lineTickLength[te],0)/F[5*te]);var Ce=[0,0,0];if(Ce[V]=1,this.tickEnable[V]){this.tickAngle[V]===-3600?(this.tickAngle[V]=0,this.tickAlign[V]="auto"):this.tickAlign[V]=-1,fe=1,Se=[this.tickAlign[V],be,fe],Se[0]==="auto"?Se[0]=y:Se[0]=parseInt(""+Se[0]),ee=[0,0,0],_e(V,re,pe);for(var te=0;te<3;++te)Te[te]+=N*re[te]*this.tickPad[te]/F[5*te];this._text.drawTicks(V,this.tickSize[V],this.tickAngle[V],Te,this.tickColor[V],Ce,ee,Se)}if(this.labelEnable[V]){fe=0,ee=[0,0,0],this.labels[V].length>4&&(ae(V),fe=1),Se=[this.labelAlign[V],be,fe],Se[0]==="auto"?Se[0]=y:Se[0]=parseInt(""+Se[0]);for(var te=0;te<3;++te)Te[te]+=N*re[te]*this.labelPad[te]/F[5*te];Te[V]+=.5*(L[0][V]+L[1][V]),this._text.drawLabel(V,this.labelSize[V],this.labelAngle[V],Te,this.labelColor[V],[0,0,0],ee,Se)}}this._text.unbind()},_.dispose=function(){this._text.dispose(),this._lines.dispose(),this._background.dispose(),this._lines=null,this._text=null,this._background=null,this.gl=null};function k(D,F){var P=new w(D);return P.update(F),P}},5304(n,a,o){"use strict";n.exports=h;var s=o(2762),l=o(8116),u=o(1879).bg;function c(p,d,v,m){this.gl=p,this.buffer=d,this.vao=v,this.shader=m}var f=c.prototype;f.draw=function(p,d,v,m,g,w){for(var _=!1,b=0;b<3;++b)_=_||g[b];if(_){var S=this.gl;S.enable(S.POLYGON_OFFSET_FILL),S.polygonOffset(1,2),this.shader.bind(),this.shader.uniforms={model:p,view:d,projection:v,bounds:m,enable:g,colors:w},this.vao.bind(),this.vao.draw(this.gl.TRIANGLES,36),this.vao.unbind(),S.disable(S.POLYGON_OFFSET_FILL)}},f.dispose=function(){this.vao.dispose(),this.buffer.dispose(),this.shader.dispose()};function h(p){for(var d=[],v=[],m=0,g=0;g<3;++g)for(var w=(g+1)%3,_=(g+2)%3,b=[0,0,0],S=[0,0,0],x=-1;x<=1;x+=2){v.push(m,m+2,m+1,m+1,m+2,m+3),b[g]=x,S[g]=x;for(var A=-1;A<=1;A+=2){b[w]=A;for(var T=-1;T<=1;T+=2)b[_]=T,d.push(b[0],b[1],b[2],S[0],S[1],S[2]),m+=1}var y=w;w=_,_=y}var E=s(p,new Float32Array(d)),M=s(p,new Uint16Array(v),p.ELEMENT_ARRAY_BUFFER),C=l(p,[{buffer:E,type:p.FLOAT,size:3,offset:0,stride:24},{buffer:E,type:p.FLOAT,size:3,offset:12,stride:24}],M),k=u(p);return k.attributes.position.location=0,k.attributes.normal.location=1,new c(p,E,C,k)}},6429(n,a,o){"use strict";n.exports=x;var s=o(8828),l=o(6760),u=o(5202),c=o(3250),f=new Array(16),h=new Array(8),p=new Array(8),d=new Array(3),v=[0,0,0];(function(){for(var A=0;A<8;++A)h[A]=[1,1,1,1],p[A]=[1,1,1]})();function m(A,T,y){for(var E=0;E<4;++E){A[E]=y[12+E];for(var M=0;M<3;++M)A[E]+=T[M]*y[4*M+E]}}var g=[[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 w(A){for(var T=0;T$&&(P|=1<$){P|=1<p[k][1])&&(Y=k);for(var H=-1,k=0;k<3;++k){var j=Y^1<p[Q][0]&&(Q=j)}}var te=_;te[0]=te[1]=te[2]=0,te[s.log2(H^Y)]=Y&H,te[s.log2(Y^Q)]=Y&Q;var ue=Q^7;ue===P||ue===V?(ue=H^7,te[s.log2(Q^ue)]=ue&Q):te[s.log2(H^ue)]=ue&H;for(var ge=b,Ee=P,I=0;I<3;++I)Ee&1<=0;--te){var ue=V[J[te]];A.push(U*ue[0],-U*ue[1],I)}}for(var E=[0,0,0],M=[0,0,0],C=[0,0,0],k=[0,0,0],D=1.25,L={breaklines:!0,bolds:!0,italics:!0,subscripts:!0,superscripts:!0},P=0;P<3;++P){C[P]=A.length/p|0,y(.5*(_[0][P]+_[1][P]),b[P],S[P],12,D,L),k[P]=(A.length/p|0)-C[P],E[P]=A.length/p|0;for(var R=0;R=0&&(p=f.length-h-1);var d=Math.pow(10,p),v=Math.round(u*c*d),m=v+"";if(m.indexOf("e")>=0)return m;var g=v/d,w=v%d;v<0?(g=-Math.ceil(g)|0,w=-w|0):(g=Math.floor(g)|0,w=w|0);var _=""+g;if(v<0&&(_="-"+_),p){for(var b=""+w;b.length=u[0][h];--v)p.push({x:v*c[h],text:o(c[h],v)});f.push(p)}return f}function l(u,c){for(var f=0;f<3;++f){if(u[f].length!==c[f].length)return!1;for(var h=0;h_)throw new Error("gl-buffer: If resizing buffer, must not specify offset");return g.bufferSubData(w,x,S),_}function d(g,w){for(var _=s.malloc(g.length,w),b=g.length,S=0;S=0;--b){if(w[b]!==_)return!1;_*=g[b]}return!0}h.update=function(g,w){if(typeof w!="number"&&(w=-1),this.bind(),typeof g=="object"&&typeof g.shape!="undefined"){var _=g.dtype;if(c.indexOf(_)<0&&(_="float32"),this.type===this.gl.ELEMENT_ARRAY_BUFFER){var b=gl.getExtension("OES_element_index_uint");b&&_!=="uint16"?_="uint32":_="uint16"}if(_===g.dtype&&v(g.shape,g.stride))g.offset===0&&g.data.length===g.shape[0]?this.length=p(this.gl,this.type,this.length,this.usage,g.data,w):this.length=p(this.gl,this.type,this.length,this.usage,g.data.subarray(g.offset,g.shape[0]),w);else{var S=s.malloc(g.size,_),x=u(S,g.shape);l.assign(x,g),w<0?this.length=p(this.gl,this.type,this.length,this.usage,S,w):this.length=p(this.gl,this.type,this.length,this.usage,S.subarray(0,g.size),w),s.free(S)}}else if(Array.isArray(g)){var T;this.type===this.gl.ELEMENT_ARRAY_BUFFER?T=d(g,"uint16"):T=d(g,"float32"),w<0?this.length=p(this.gl,this.type,this.length,this.usage,T,w):this.length=p(this.gl,this.type,this.length,this.usage,T.subarray(0,g.length),w),s.free(T)}else if(typeof g=="object"&&typeof g.length=="number")this.length=p(this.gl,this.type,this.length,this.usage,g,w);else if(typeof g=="number"||g===void 0){if(w>=0)throw new Error("gl-buffer: Cannot specify offset when resizing buffer");g=g|0,g<=0&&(g=1),this.gl.bufferData(this.type,g|0,this.usage),this.length=g}else throw new Error("gl-buffer: Invalid data type")};function m(g,w,_,b){if(_=_||g.ARRAY_BUFFER,b=b||g.DYNAMIC_DRAW,_!==g.ARRAY_BUFFER&&_!==g.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(b!==g.DYNAMIC_DRAW&&b!==g.STATIC_DRAW&&b!==g.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 S=g.createBuffer(),x=new f(g,_,S,0,b);return x.update(w),x}n.exports=m},6405(n,a,o){"use strict";var s=o(2931);n.exports=function(u,c){var f=u.positions,h=u.vectors,p={positions:[],vertexIntensity:[],vertexIntensityBounds:u.vertexIntensityBounds,vectors:[],cells:[],coneOffset:u.coneOffset,colormap:u.colormap};if(u.positions.length===0)return c&&(c[0]=[0,0,0],c[1]=[0,0,0]),p;for(var d=0,v=1/0,m=-1/0,g=1/0,w=-1/0,_=1/0,b=-1/0,S=null,x=null,T=[],A=1/0,y=!1,E=u.coneSizemode==="raw",M=0;Md&&(d=s.length(k)),M&&!E){var D=2*s.distance(S,C)/(s.length(x)+s.length(k));D?(A=Math.min(A,D),y=!1):y=!0}y||(S=C,x=k),T.push(k)}var L=[v,g,_],P=[m,w,b];c&&(c[0]=L,c[1]=P),d===0&&(d=1);var R=1/d;isFinite(A)||(A=1),p.vectorScale=A;var F=u.coneSize||(E?1:.5);u.absoluteConeSize&&(F=u.absoluteConeSize*R),p.coneScale=F;for(var M=0,I=0;M=1},g.isTransparent=function(){return this.opacity<1},g.pickSlots=1,g.setPickBase=function(T){this.pickId=T};function w(T){for(var A=d({colormap:T,nshades:256,format:"rgba"}),y=new Uint8Array(256*4),E=0;E<256;++E){for(var M=A[E],C=0;C<3;++C)y[4*E+C]=M[C];y[4*E+3]=M[3]*255}return p(y,[256,256,4],[4,0,1])}function _(T){for(var A=T.length,y=new Array(A),E=0;E0){var I=this.triShader;I.bind(),I.uniforms=D,this.triangleVAO.bind(),A.drawArrays(A.TRIANGLES,0,this.triangleCount*3),this.triangleVAO.unbind()}},g.drawPick=function(T){T=T||{};for(var A=this.gl,y=T.model||v,E=T.view||v,M=T.projection||v,C=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],k=0;k<3;++k)C[0][k]=Math.max(C[0][k],this.clipBounds[0][k]),C[1][k]=Math.min(C[1][k],this.clipBounds[1][k]);this._model=[].slice.call(y),this._view=[].slice.call(E),this._projection=[].slice.call(M),this._resolution=[A.drawingBufferWidth,A.drawingBufferHeight];var D={model:y,view:E,projection:M,clipBounds:C,tubeScale:this.tubeScale,vectorScale:this.vectorScale,coneScale:this.coneScale,coneOffset:this.coneOffset,pickId:this.pickId/255},L=this.pickShader;L.bind(),L.uniforms=D,this.triangleCount>0&&(this.triangleVAO.bind(),A.drawArrays(A.TRIANGLES,0,this.triangleCount*3),this.triangleVAO.unbind())},g.pick=function(T){if(!T||T.id!==this.pickId)return null;var A=T.value[0]+256*T.value[1]+65536*T.value[2],y=this.cells[A],E=this.positions[y[1]].slice(0,3),M={position:E,dataCoordinate:E,index:Math.floor(y[1]/48)};return this.traceType==="cone"?M.index=Math.floor(y[1]/48):this.traceType==="streamtube"&&(M.intensity=this.intensity[y[1]],M.velocity=this.vectors[y[1]].slice(0,3),M.divergence=this.vectors[y[1]][3],M.index=A),M},g.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 b(T,A){var y=s(T,A.meshShader.vertex,A.meshShader.fragment,null,A.meshShader.attributes);return y.attributes.position.location=0,y.attributes.color.location=2,y.attributes.uv.location=3,y.attributes.vector.location=4,y}function S(T,A){var y=s(T,A.pickShader.vertex,A.pickShader.fragment,null,A.pickShader.attributes);return y.attributes.position.location=0,y.attributes.id.location=1,y.attributes.vector.location=4,y}function x(T,A,y){var E=y.shaders;arguments.length===1&&(A=T,T=A.gl);var M=b(T,E),C=S(T,E),k=c(T,p(new Uint8Array([255,255,255,255]),[1,1,4]));k.generateMipmap(),k.minFilter=T.LINEAR_MIPMAP_LINEAR,k.magFilter=T.LINEAR;var D=l(T),L=l(T),P=l(T),R=l(T),F=l(T),I=u(T,[{buffer:D,type:T.FLOAT,size:4},{buffer:F,type:T.UNSIGNED_BYTE,size:4,normalized:!0},{buffer:P,type:T.FLOAT,size:4},{buffer:R,type:T.FLOAT,size:2},{buffer:L,type:T.FLOAT,size:4}]),B=new m(T,k,M,C,D,L,F,P,R,I,y.traceType||"cone");return B.update(A),B}n.exports=x},614(n,a,o){var s=o(3236),l=s([`precision highp float; +}`]);a.bg=function(v){return l(v,p,d,null,[{name:"position",type:"vec3"},{name:"normal",type:"vec3"}])}},4935(n,a,o){"use strict";n.exports=w;var s=o(2762),l=o(8116),u=o(4359),c=o(1879).Q,f=window||process.global||{},h=f.__TEXT_CACHE||{};f.__TEXT_CACHE={};var p=3;function d(_,b,S,x){this.gl=_,this.shader=b,this.buffer=S,this.vao=x,this.tickOffset=this.tickCount=this.labelOffset=this.labelCount=null}var v=d.prototype,m=[0,0];v.bind=function(_,b,S,x){this.vao.bind(),this.shader.bind();var A=this.shader.uniforms;A.model=_,A.view=b,A.projection=S,A.pixelScale=x,m[0]=this.gl.drawingBufferWidth,m[1]=this.gl.drawingBufferHeight,this.shader.uniforms.resolution=m},v.unbind=function(){this.vao.unbind()},v.update=function(_,b,S,x,A){var T=[];function y(I,B,O,$,X,K){var G=[O.style,O.weight,O.variant,O.family].join("_"),q=h[G];q||(q=h[G]={});var J=q[B];J||(J=q[B]=g(B,{triangles:!0,font:O.family,fontStyle:O.style,fontWeight:O.weight,fontVariant:O.variant,textAlign:"center",textBaseline:"middle",lineSpacing:X,styletags:K}));for(var N=($||12)/12,V=J.positions,Y=J.cells,H=0,j=Y.length;H=0;--te){var ue=V[Q[te]];T.push(N*ue[0],-N*ue[1],I)}}for(var E=[0,0,0],M=[0,0,0],C=[0,0,0],k=[0,0,0],D=1.25,F={breaklines:!0,bolds:!0,italics:!0,subscripts:!0,superscripts:!0},P=0;P<3;++P){C[P]=T.length/p|0,y(.5*(_[0][P]+_[1][P]),b[P],S[P],12,D,F),k[P]=(T.length/p|0)-C[P],E[P]=T.length/p|0;for(var R=0;R=0&&(p=f.length-h-1);var d=Math.pow(10,p),v=Math.round(u*c*d),m=v+"";if(m.indexOf("e")>=0)return m;var g=v/d,w=v%d;v<0?(g=-Math.ceil(g)|0,w=-w|0):(g=Math.floor(g)|0,w=w|0);var _=""+g;if(v<0&&(_="-"+_),p){for(var b=""+w;b.length=u[0][h];--v)p.push({x:v*c[h],text:o(c[h],v)});f.push(p)}return f}function l(u,c){for(var f=0;f<3;++f){if(u[f].length!==c[f].length)return!1;for(var h=0;h_)throw new Error("gl-buffer: If resizing buffer, must not specify offset");return g.bufferSubData(w,x,S),_}function d(g,w){for(var _=s.malloc(g.length,w),b=g.length,S=0;S=0;--b){if(w[b]!==_)return!1;_*=g[b]}return!0}h.update=function(g,w){if(typeof w!="number"&&(w=-1),this.bind(),typeof g=="object"&&typeof g.shape!="undefined"){var _=g.dtype;if(c.indexOf(_)<0&&(_="float32"),this.type===this.gl.ELEMENT_ARRAY_BUFFER){var b=gl.getExtension("OES_element_index_uint");b&&_!=="uint16"?_="uint32":_="uint16"}if(_===g.dtype&&v(g.shape,g.stride))g.offset===0&&g.data.length===g.shape[0]?this.length=p(this.gl,this.type,this.length,this.usage,g.data,w):this.length=p(this.gl,this.type,this.length,this.usage,g.data.subarray(g.offset,g.shape[0]),w);else{var S=s.malloc(g.size,_),x=u(S,g.shape);l.assign(x,g),w<0?this.length=p(this.gl,this.type,this.length,this.usage,S,w):this.length=p(this.gl,this.type,this.length,this.usage,S.subarray(0,g.size),w),s.free(S)}}else if(Array.isArray(g)){var A;this.type===this.gl.ELEMENT_ARRAY_BUFFER?A=d(g,"uint16"):A=d(g,"float32"),w<0?this.length=p(this.gl,this.type,this.length,this.usage,A,w):this.length=p(this.gl,this.type,this.length,this.usage,A.subarray(0,g.length),w),s.free(A)}else if(typeof g=="object"&&typeof g.length=="number")this.length=p(this.gl,this.type,this.length,this.usage,g,w);else if(typeof g=="number"||g===void 0){if(w>=0)throw new Error("gl-buffer: Cannot specify offset when resizing buffer");g=g|0,g<=0&&(g=1),this.gl.bufferData(this.type,g|0,this.usage),this.length=g}else throw new Error("gl-buffer: Invalid data type")};function m(g,w,_,b){if(_=_||g.ARRAY_BUFFER,b=b||g.DYNAMIC_DRAW,_!==g.ARRAY_BUFFER&&_!==g.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(b!==g.DYNAMIC_DRAW&&b!==g.STATIC_DRAW&&b!==g.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 S=g.createBuffer(),x=new f(g,_,S,0,b);return x.update(w),x}n.exports=m},6405(n,a,o){"use strict";var s=o(2931);n.exports=function(u,c){var f=u.positions,h=u.vectors,p={positions:[],vertexIntensity:[],vertexIntensityBounds:u.vertexIntensityBounds,vectors:[],cells:[],coneOffset:u.coneOffset,colormap:u.colormap};if(u.positions.length===0)return c&&(c[0]=[0,0,0],c[1]=[0,0,0]),p;for(var d=0,v=1/0,m=-1/0,g=1/0,w=-1/0,_=1/0,b=-1/0,S=null,x=null,A=[],T=1/0,y=!1,E=u.coneSizemode==="raw",M=0;Md&&(d=s.length(k)),M&&!E){var D=2*s.distance(S,C)/(s.length(x)+s.length(k));D?(T=Math.min(T,D),y=!1):y=!0}y||(S=C,x=k),A.push(k)}var F=[v,g,_],P=[m,w,b];c&&(c[0]=F,c[1]=P),d===0&&(d=1);var R=1/d;isFinite(T)||(T=1),p.vectorScale=T;var L=u.coneSize||(E?1:.5);u.absoluteConeSize&&(L=u.absoluteConeSize*R),p.coneScale=L;for(var M=0,I=0;M=1},g.isTransparent=function(){return this.opacity<1},g.pickSlots=1,g.setPickBase=function(A){this.pickId=A};function w(A){for(var T=d({colormap:A,nshades:256,format:"rgba"}),y=new Uint8Array(256*4),E=0;E<256;++E){for(var M=T[E],C=0;C<3;++C)y[4*E+C]=M[C];y[4*E+3]=M[3]*255}return p(y,[256,256,4],[4,0,1])}function _(A){for(var T=A.length,y=new Array(T),E=0;E0){var I=this.triShader;I.bind(),I.uniforms=D,this.triangleVAO.bind(),T.drawArrays(T.TRIANGLES,0,this.triangleCount*3),this.triangleVAO.unbind()}},g.drawPick=function(A){A=A||{};for(var T=this.gl,y=A.model||v,E=A.view||v,M=A.projection||v,C=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],k=0;k<3;++k)C[0][k]=Math.max(C[0][k],this.clipBounds[0][k]),C[1][k]=Math.min(C[1][k],this.clipBounds[1][k]);this._model=[].slice.call(y),this._view=[].slice.call(E),this._projection=[].slice.call(M),this._resolution=[T.drawingBufferWidth,T.drawingBufferHeight];var D={model:y,view:E,projection:M,clipBounds:C,tubeScale:this.tubeScale,vectorScale:this.vectorScale,coneScale:this.coneScale,coneOffset:this.coneOffset,pickId:this.pickId/255},F=this.pickShader;F.bind(),F.uniforms=D,this.triangleCount>0&&(this.triangleVAO.bind(),T.drawArrays(T.TRIANGLES,0,this.triangleCount*3),this.triangleVAO.unbind())},g.pick=function(A){if(!A||A.id!==this.pickId)return null;var T=A.value[0]+256*A.value[1]+65536*A.value[2],y=this.cells[T],E=this.positions[y[1]].slice(0,3),M={position:E,dataCoordinate:E,index:Math.floor(y[1]/48)};return this.traceType==="cone"?M.index=Math.floor(y[1]/48):this.traceType==="streamtube"&&(M.intensity=this.intensity[y[1]],M.velocity=this.vectors[y[1]].slice(0,3),M.divergence=this.vectors[y[1]][3],M.index=T),M},g.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 b(A,T){var y=s(A,T.meshShader.vertex,T.meshShader.fragment,null,T.meshShader.attributes);return y.attributes.position.location=0,y.attributes.color.location=2,y.attributes.uv.location=3,y.attributes.vector.location=4,y}function S(A,T){var y=s(A,T.pickShader.vertex,T.pickShader.fragment,null,T.pickShader.attributes);return y.attributes.position.location=0,y.attributes.id.location=1,y.attributes.vector.location=4,y}function x(A,T,y){var E=y.shaders;arguments.length===1&&(T=A,A=T.gl);var M=b(A,E),C=S(A,E),k=c(A,p(new Uint8Array([255,255,255,255]),[1,1,4]));k.generateMipmap(),k.minFilter=A.LINEAR_MIPMAP_LINEAR,k.magFilter=A.LINEAR;var D=l(A),F=l(A),P=l(A),R=l(A),L=l(A),I=u(A,[{buffer:D,type:A.FLOAT,size:4},{buffer:L,type:A.UNSIGNED_BYTE,size:4,normalized:!0},{buffer:P,type:A.FLOAT,size:4},{buffer:R,type:A.FLOAT,size:2},{buffer:F,type:A.FLOAT,size:4}]),B=new m(A,k,M,C,D,F,L,P,R,I,y.traceType||"cone");return B.update(T),B}n.exports=x},614(n,a,o){var s=o(3236),l=s([`precision highp float; precision highp float; #define GLSLIFY 1 @@ -656,7 +656,7 @@ void main() { if (outOfRange(clipBounds[0], clipBounds[1], f_position)) discard; gl_FragColor = vec4(pickId, f_id.xyz); -}`]);a.meshShader={vertex:l,fragment:u,attributes:[{name:"position",type:"vec4"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"},{name:"vector",type:"vec3"}]},a.pickShader={vertex:c,fragment:f,attributes:[{name:"position",type:"vec4"},{name:"id",type:"vec4"},{name:"vector",type:"vec3"}]}},737(n){n.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"}},5171(n,a,o){var s=o(737);n.exports=function(u){return s[u]}},9165(n,a,o){"use strict";n.exports=m;var s=o(2762),l=o(8116),u=o(3436),c=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function f(g,w,_,b){this.gl=g,this.shader=b,this.buffer=w,this.vao=_,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 h=f.prototype;h.isOpaque=function(){return!this.hasAlpha},h.isTransparent=function(){return this.hasAlpha},h.drawTransparent=h.draw=function(g){var w=this.gl,_=this.shader.uniforms;this.shader.bind();var b=_.view=g.view||c,S=_.projection=g.projection||c;_.model=g.model||c,_.clipBounds=this.clipBounds,_.opacity=this.opacity;var x=b[12],T=b[13],A=b[14],y=b[15],E=g._ortho||!1,M=E?2:1,C=M*this.pixelRatio*(S[3]*x+S[7]*T+S[11]*A+S[15]*y)/w.drawingBufferHeight;this.vao.bind();for(var k=0;k<3;++k)w.lineWidth(this.lineWidth[k]*this.pixelRatio),_.capSize=this.capSize[k]*C,this.lineCount[k]&&w.drawArrays(w.LINES,this.lineOffset[k],this.lineCount[k]);this.vao.unbind()};function p(g,w){for(var _=0;_<3;++_)g[0][_]=Math.min(g[0][_],w[_]),g[1][_]=Math.max(g[1][_],w[_])}var d=(function(){for(var g=new Array(3),w=0;w<3;++w){for(var _=[],b=1;b<=2;++b)for(var S=-1;S<=1;S+=2){var x=(b+w)%3,T=[0,0,0];T[x]=S,_.push(T)}g[w]=_}return g})();function v(g,w,_,b){for(var S=d[b],x=0;x0){var D=E.slice();D[A]+=C[1][A],S.push(E[0],E[1],E[2],k[0],k[1],k[2],k[3],0,0,0,D[0],D[1],D[2],k[0],k[1],k[2],k[3],0,0,0),p(this.bounds,D),T+=2+v(S,D,k,A)}}}this.lineCount[A]=T-this.lineOffset[A]}this.buffer.update(S)}},h.dispose=function(){this.shader.dispose(),this.buffer.dispose(),this.vao.dispose()};function m(g){var w=g.gl,_=s(w),b=l(w,[{buffer:_,type:w.FLOAT,size:3,offset:0,stride:40},{buffer:_,type:w.FLOAT,size:4,offset:12,stride:40},{buffer:_,type:w.FLOAT,size:3,offset:28,stride:40}]),S=u(w);S.attributes.position.location=0,S.attributes.color.location=1,S.attributes.offset.location=2;var x=new f(w,_,b,S);return x.update(g),x}},3436(n,a,o){"use strict";var s=o(3236),l=o(9405),u=s([`precision highp float; +}`]);a.meshShader={vertex:l,fragment:u,attributes:[{name:"position",type:"vec4"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"},{name:"vector",type:"vec3"}]},a.pickShader={vertex:c,fragment:f,attributes:[{name:"position",type:"vec4"},{name:"id",type:"vec4"},{name:"vector",type:"vec3"}]}},737(n){n.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"}},5171(n,a,o){var s=o(737);n.exports=function(u){return s[u]}},9165(n,a,o){"use strict";n.exports=m;var s=o(2762),l=o(8116),u=o(3436),c=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function f(g,w,_,b){this.gl=g,this.shader=b,this.buffer=w,this.vao=_,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 h=f.prototype;h.isOpaque=function(){return!this.hasAlpha},h.isTransparent=function(){return this.hasAlpha},h.drawTransparent=h.draw=function(g){var w=this.gl,_=this.shader.uniforms;this.shader.bind();var b=_.view=g.view||c,S=_.projection=g.projection||c;_.model=g.model||c,_.clipBounds=this.clipBounds,_.opacity=this.opacity;var x=b[12],A=b[13],T=b[14],y=b[15],E=g._ortho||!1,M=E?2:1,C=M*this.pixelRatio*(S[3]*x+S[7]*A+S[11]*T+S[15]*y)/w.drawingBufferHeight;this.vao.bind();for(var k=0;k<3;++k)w.lineWidth(this.lineWidth[k]*this.pixelRatio),_.capSize=this.capSize[k]*C,this.lineCount[k]&&w.drawArrays(w.LINES,this.lineOffset[k],this.lineCount[k]);this.vao.unbind()};function p(g,w){for(var _=0;_<3;++_)g[0][_]=Math.min(g[0][_],w[_]),g[1][_]=Math.max(g[1][_],w[_])}var d=(function(){for(var g=new Array(3),w=0;w<3;++w){for(var _=[],b=1;b<=2;++b)for(var S=-1;S<=1;S+=2){var x=(b+w)%3,A=[0,0,0];A[x]=S,_.push(A)}g[w]=_}return g})();function v(g,w,_,b){for(var S=d[b],x=0;x0){var D=E.slice();D[T]+=C[1][T],S.push(E[0],E[1],E[2],k[0],k[1],k[2],k[3],0,0,0,D[0],D[1],D[2],k[0],k[1],k[2],k[3],0,0,0),p(this.bounds,D),A+=2+v(S,D,k,T)}}}this.lineCount[T]=A-this.lineOffset[T]}this.buffer.update(S)}},h.dispose=function(){this.shader.dispose(),this.buffer.dispose(),this.vao.dispose()};function m(g){var w=g.gl,_=s(w),b=l(w,[{buffer:_,type:w.FLOAT,size:3,offset:0,stride:40},{buffer:_,type:w.FLOAT,size:4,offset:12,stride:40},{buffer:_,type:w.FLOAT,size:3,offset:28,stride:40}]),S=u(w);S.attributes.position.location=0,S.attributes.color.location=1,S.attributes.offset.location=2;var x=new f(w,_,b,S);return x.update(g),x}},3436(n,a,o){"use strict";var s=o(3236),l=o(9405),u=s([`precision highp float; #define GLSLIFY 1 attribute vec3 position, offset; @@ -707,10 +707,10 @@ void main() { ) discard; gl_FragColor = opacity * fragColor; -}`]);n.exports=function(f){return l(f,u,c,null,[{name:"position",type:"vec3"},{name:"color",type:"vec4"},{name:"offset",type:"vec3"}])}},2260(n,a,o){"use strict";var s=o(7766);n.exports=T;var l=null,u,c,f,h;function p(A){var y=A.getParameter(A.FRAMEBUFFER_BINDING),E=A.getParameter(A.RENDERBUFFER_BINDING),M=A.getParameter(A.TEXTURE_BINDING_2D);return[y,E,M]}function d(A,y){A.bindFramebuffer(A.FRAMEBUFFER,y[0]),A.bindRenderbuffer(A.RENDERBUFFER,y[1]),A.bindTexture(A.TEXTURE_2D,y[2])}function v(A,y){var E=A.getParameter(y.MAX_COLOR_ATTACHMENTS_WEBGL);l=new Array(E+1);for(var M=0;M<=E;++M){for(var C=new Array(E),k=0;k1&&L.drawBuffersWEBGL(l[D]);var B=E.getExtension("WEBGL_depth_texture");B?P?A.depth=g(E,C,k,B.UNSIGNED_INT_24_8_WEBGL,E.DEPTH_STENCIL,E.DEPTH_STENCIL_ATTACHMENT):R&&(A.depth=g(E,C,k,E.UNSIGNED_SHORT,E.DEPTH_COMPONENT,E.DEPTH_ATTACHMENT)):R&&P?A._depth_rb=w(E,C,k,E.DEPTH_STENCIL,E.DEPTH_STENCIL_ATTACHMENT):R?A._depth_rb=w(E,C,k,E.DEPTH_COMPONENT16,E.DEPTH_ATTACHMENT):P&&(A._depth_rb=w(E,C,k,E.STENCIL_INDEX,E.STENCIL_ATTACHMENT));var O=E.checkFramebufferStatus(E.FRAMEBUFFER);if(O!==E.FRAMEBUFFER_COMPLETE){A._destroyed=!0,E.bindFramebuffer(E.FRAMEBUFFER,null),E.deleteFramebuffer(A.handle),A.handle=null,A.depth&&(A.depth.dispose(),A.depth=null),A._depth_rb&&(E.deleteRenderbuffer(A._depth_rb),A._depth_rb=null);for(var I=0;IC||E<0||E>C)throw new Error("gl-fbo: Can't resize FBO, invalid dimensions");A._shape[0]=y,A._shape[1]=E;for(var k=p(M),D=0;Dk||E<0||E>k)throw new Error("gl-fbo: Parameters are too large for FBO");M=M||{};var D=1;if("color"in M){if(D=Math.max(M.color|0,0),D<0)throw new Error("gl-fbo: Must specify a nonnegative number of colors");if(D>1)if(C){if(D>A.getParameter(C.MAX_COLOR_ATTACHMENTS_WEBGL))throw new Error("gl-fbo: Context does not support "+D+" draw buffers")}else throw new Error("gl-fbo: Multiple draw buffer extension not supported")}var L=A.UNSIGNED_BYTE,P=A.getExtension("OES_texture_float");if(M.float&&D>0){if(!P)throw new Error("gl-fbo: Context does not support floating point textures");L=A.FLOAT}else M.preferFloat&&D>0&&P&&(L=A.FLOAT);var R=!0;"depth"in M&&(R=!!M.depth);var F=!1;return"stencil"in M&&(F=!!M.stencil),new b(A,y,E,L,D,R,F,C)}},2992(n,a,o){var s=o(3387).sprintf,l=o(5171),u=o(1848),c=o(1085);n.exports=f;function f(h,p,d){"use strict";var v=u(p)||"of unknown name (see npm glsl-shader-name)",m="unknown type";d!==void 0&&(m=d===l.FRAGMENT_SHADER?"fragment":"vertex");for(var g=s(`Error compiling %s shader %s: +}`]);n.exports=function(f){return l(f,u,c,null,[{name:"position",type:"vec3"},{name:"color",type:"vec4"},{name:"offset",type:"vec3"}])}},2260(n,a,o){"use strict";var s=o(7766);n.exports=A;var l=null,u,c,f,h;function p(T){var y=T.getParameter(T.FRAMEBUFFER_BINDING),E=T.getParameter(T.RENDERBUFFER_BINDING),M=T.getParameter(T.TEXTURE_BINDING_2D);return[y,E,M]}function d(T,y){T.bindFramebuffer(T.FRAMEBUFFER,y[0]),T.bindRenderbuffer(T.RENDERBUFFER,y[1]),T.bindTexture(T.TEXTURE_2D,y[2])}function v(T,y){var E=T.getParameter(y.MAX_COLOR_ATTACHMENTS_WEBGL);l=new Array(E+1);for(var M=0;M<=E;++M){for(var C=new Array(E),k=0;k1&&F.drawBuffersWEBGL(l[D]);var B=E.getExtension("WEBGL_depth_texture");B?P?T.depth=g(E,C,k,B.UNSIGNED_INT_24_8_WEBGL,E.DEPTH_STENCIL,E.DEPTH_STENCIL_ATTACHMENT):R&&(T.depth=g(E,C,k,E.UNSIGNED_SHORT,E.DEPTH_COMPONENT,E.DEPTH_ATTACHMENT)):R&&P?T._depth_rb=w(E,C,k,E.DEPTH_STENCIL,E.DEPTH_STENCIL_ATTACHMENT):R?T._depth_rb=w(E,C,k,E.DEPTH_COMPONENT16,E.DEPTH_ATTACHMENT):P&&(T._depth_rb=w(E,C,k,E.STENCIL_INDEX,E.STENCIL_ATTACHMENT));var O=E.checkFramebufferStatus(E.FRAMEBUFFER);if(O!==E.FRAMEBUFFER_COMPLETE){T._destroyed=!0,E.bindFramebuffer(E.FRAMEBUFFER,null),E.deleteFramebuffer(T.handle),T.handle=null,T.depth&&(T.depth.dispose(),T.depth=null),T._depth_rb&&(E.deleteRenderbuffer(T._depth_rb),T._depth_rb=null);for(var I=0;IC||E<0||E>C)throw new Error("gl-fbo: Can't resize FBO, invalid dimensions");T._shape[0]=y,T._shape[1]=E;for(var k=p(M),D=0;Dk||E<0||E>k)throw new Error("gl-fbo: Parameters are too large for FBO");M=M||{};var D=1;if("color"in M){if(D=Math.max(M.color|0,0),D<0)throw new Error("gl-fbo: Must specify a nonnegative number of colors");if(D>1)if(C){if(D>T.getParameter(C.MAX_COLOR_ATTACHMENTS_WEBGL))throw new Error("gl-fbo: Context does not support "+D+" draw buffers")}else throw new Error("gl-fbo: Multiple draw buffer extension not supported")}var F=T.UNSIGNED_BYTE,P=T.getExtension("OES_texture_float");if(M.float&&D>0){if(!P)throw new Error("gl-fbo: Context does not support floating point textures");F=T.FLOAT}else M.preferFloat&&D>0&&P&&(F=T.FLOAT);var R=!0;"depth"in M&&(R=!!M.depth);var L=!1;return"stencil"in M&&(L=!!M.stencil),new b(T,y,E,F,D,R,L,C)}},2992(n,a,o){var s=o(3387).sprintf,l=o(5171),u=o(1848),c=o(1085);n.exports=f;function f(h,p,d){"use strict";var v=u(p)||"of unknown name (see npm glsl-shader-name)",m="unknown type";d!==void 0&&(m=d===l.FRAGMENT_SHADER?"fragment":"vertex");for(var g=s(`Error compiling %s shader %s: `,m,v),w=s("%s%s",g,h),_=h.split(` -`),b={},S=0;S<_.length;S++){var x=_[S];if(!(x===""||x==="\0")){var T=parseInt(x.split(":")[2]);if(isNaN(T))throw new Error(s("Could not parse error: %s",x));b[T]=x}}for(var A=c(p).split(` -`),S=0;S0){for(var j=0;j<24;++j)k.push(k[k.length-12]);R+=2,$=!0}continue e}F[0][M]=Math.min(F[0][M],Y[M],K[M]),F[1][M]=Math.max(F[1][M],Y[M],K[M])}var q,Q;Array.isArray(B[0])?(q=B.length>E-1?B[E-1]:B.length>0?B[B.length-1]:[0,0,0,1],Q=B.length>E?B[E]:B.length>0?B[B.length-1]:[0,0,0,1]):q=Q=B,q.length===3&&(q=[q[0],q[1],q[2],1]),Q.length===3&&(Q=[Q[0],Q[1],Q[2],1]),!this.hasAlpha&&q[3]<1&&(this.hasAlpha=!0);var U;Array.isArray(O)?U=O.length>E-1?O[E-1]:O.length>0?O[O.length-1]:[0,0,0,1]:U=O;var V=P;if(P+=_(Y,K),$){for(M=0;M<2;++M)k.push(Y[0],Y[1],Y[2],K[0],K[1],K[2],V,U,q[0],q[1],q[2],q[3]);R+=2,$=!1}k.push(Y[0],Y[1],Y[2],K[0],K[1],K[2],V,U,q[0],q[1],q[2],q[3],Y[0],Y[1],Y[2],K[0],K[1],K[2],V,-U,q[0],q[1],q[2],q[3],K[0],K[1],K[2],Y[0],Y[1],Y[2],P,-U,Q[0],Q[1],Q[2],Q[3],K[0],K[1],K[2],Y[0],Y[1],Y[2],P,U,Q[0],Q[1],Q[2],Q[3]),R+=4}}if(this.buffer.update(k),D.push(P),L.push(I[I.length-1].slice()),this.bounds=F,this.vertexCount=R,this.points=L,this.arcLength=D,"dashes"in y){var X=y.dashes,G=X.slice();for(G.unshift(0),E=1;E1.0001)return null;M+=E[S]}return Math.abs(M-1)>.001?null:[x,h(d,E),E]}},840(n,a,o){var s=o(3236),l=s([`precision highp float; +}`]),h=[{name:"position",type:"vec3"},{name:"nextPosition",type:"vec3"},{name:"arcLength",type:"float"},{name:"lineWidth",type:"float"},{name:"color",type:"vec4"}];a.createShader=function(p){return l(p,u,c,null,h)},a.createPickShader=function(p){return l(p,u,f,null,h)}},5714(n,a,o){"use strict";n.exports=T;var s=o(2762),l=o(8116),u=o(7766),c=new Uint8Array(4),f=new Float32Array(c.buffer);function h(y,E,M,C){return c[0]=C,c[1]=M,c[2]=E,c[3]=y,f[0]}var p=o(2478),d=o(9618),v=o(7319),m=v.createShader,g=v.createPickShader,w=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function _(y,E){for(var M=0,C=0;C<3;++C){var k=y[C]-E[C];M+=k*k}return Math.sqrt(M)}function b(y){for(var E=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],M=0;M<3;++M)E[0][M]=Math.max(y[0][M],E[0][M]),E[1][M]=Math.min(y[1][M],E[1][M]);return E}function S(y,E,M,C){this.arcLength=y,this.position=E,this.index=M,this.dataCoordinate=C}function x(y,E,M,C,k,D){this.gl=y,this.shader=E,this.pickShader=M,this.buffer=C,this.vao=k,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=D,this.dashScale=1,this.opacity=1,this.hasAlpha=!1,this.dirty=!0,this.pixelRatio=1}var A=x.prototype;A.isTransparent=function(){return this.hasAlpha},A.isOpaque=function(){return!this.hasAlpha},A.pickSlots=1,A.setPickBase=function(y){this.pickId=y},A.drawTransparent=A.draw=function(y){if(this.vertexCount){var E=this.gl,M=this.shader,C=this.vao;M.bind(),M.uniforms={model:y.model||w,view:y.view||w,projection:y.projection||w,clipBounds:b(this.clipBounds),dashTexture:this.texture.bind(),dashScale:this.dashScale/this.arcLength[this.arcLength.length-1],opacity:this.opacity,screenShape:[E.drawingBufferWidth,E.drawingBufferHeight],pixelRatio:this.pixelRatio},C.bind(),C.draw(E.TRIANGLE_STRIP,this.vertexCount),C.unbind()}},A.drawPick=function(y){if(this.vertexCount){var E=this.gl,M=this.pickShader,C=this.vao;M.bind(),M.uniforms={model:y.model||w,view:y.view||w,projection:y.projection||w,pickId:this.pickId,clipBounds:b(this.clipBounds),screenShape:[E.drawingBufferWidth,E.drawingBufferHeight],pixelRatio:this.pixelRatio},C.bind(),C.draw(E.TRIANGLE_STRIP,this.vertexCount),C.unbind()}},A.update=function(y){var E,M;this.dirty=!0;var C=!!y.connectGaps;"dashScale"in y&&(this.dashScale=y.dashScale),this.hasAlpha=!1,"opacity"in y&&(this.opacity=+y.opacity,this.opacity<1&&(this.hasAlpha=!0));var k=[],D=[],F=[],P=0,R=0,L=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],I=y.position||y.positions;if(I){var B=y.color||y.colors||[0,0,0,1],O=y.lineWidth||1,$=!1;e:for(E=1;E0){for(var G=0;G<24;++G)k.push(k[k.length-12]);R+=2,$=!0}continue e}L[0][M]=Math.min(L[0][M],X[M],K[M]),L[1][M]=Math.max(L[1][M],X[M],K[M])}var q,J;Array.isArray(B[0])?(q=B.length>E-1?B[E-1]:B.length>0?B[B.length-1]:[0,0,0,1],J=B.length>E?B[E]:B.length>0?B[B.length-1]:[0,0,0,1]):q=J=B,q.length===3&&(q=[q[0],q[1],q[2],1]),J.length===3&&(J=[J[0],J[1],J[2],1]),!this.hasAlpha&&q[3]<1&&(this.hasAlpha=!0);var N;Array.isArray(O)?N=O.length>E-1?O[E-1]:O.length>0?O[O.length-1]:[0,0,0,1]:N=O;var V=P;if(P+=_(X,K),$){for(M=0;M<2;++M)k.push(X[0],X[1],X[2],K[0],K[1],K[2],V,N,q[0],q[1],q[2],q[3]);R+=2,$=!1}k.push(X[0],X[1],X[2],K[0],K[1],K[2],V,N,q[0],q[1],q[2],q[3],X[0],X[1],X[2],K[0],K[1],K[2],V,-N,q[0],q[1],q[2],q[3],K[0],K[1],K[2],X[0],X[1],X[2],P,-N,J[0],J[1],J[2],J[3],K[0],K[1],K[2],X[0],X[1],X[2],P,N,J[0],J[1],J[2],J[3]),R+=4}}if(this.buffer.update(k),D.push(P),F.push(I[I.length-1].slice()),this.bounds=L,this.vertexCount=R,this.points=F,this.arcLength=D,"dashes"in y){var Y=y.dashes,H=Y.slice();for(H.unshift(0),E=1;E1.0001)return null;M+=E[S]}return Math.abs(M-1)>.001?null:[x,h(d,E),E]}},840(n,a,o){var s=o(3236),l=s([`precision highp float; #define GLSLIFY 1 attribute vec3 position, normal; @@ -1239,7 +1239,7 @@ uniform vec3 contourColor; void main() { gl_FragColor = vec4(contourColor, 1.0); } -`]);a.meshShader={vertex:l,fragment:u,attributes:[{name:"position",type:"vec3"},{name:"normal",type:"vec3"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"}]},a.wireShader={vertex:c,fragment:f,attributes:[{name:"position",type:"vec3"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"}]},a.pointShader={vertex:h,fragment:p,attributes:[{name:"position",type:"vec3"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"},{name:"pointSize",type:"float"}]},a.pickShader={vertex:d,fragment:v,attributes:[{name:"position",type:"vec3"},{name:"id",type:"vec4"}]},a.pointPickShader={vertex:m,fragment:v,attributes:[{name:"position",type:"vec3"},{name:"pointSize",type:"float"},{name:"id",type:"vec4"}]},a.contourShader={vertex:g,fragment:w,attributes:[{name:"position",type:"vec3"}]}},7201(n,a,o){"use strict";var s=1e-6,l=1e-6,u=o(9405),c=o(2762),f=o(8116),h=o(7766),p=o(8406),d=o(6760),v=o(7608),m=o(9618),g=o(6729),w=o(7765),_=o(1888),b=o(840),S=o(7626),x=b.meshShader,T=b.wireShader,A=b.pointShader,y=b.pickShader,E=b.pointPickShader,M=b.contourShader,C=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function k(j,q,Q,U,V,X,G,H,J,te,ue,ge,ke,_e,he,oe,Me,ye,ce,ee,ae,xe,re,pe,we,Fe,Ee){this.gl=j,this.pixelRatio=1,this.cells=[],this.positions=[],this.intensity=[],this.texture=q,this.dirty=!0,this.triShader=Q,this.lineShader=U,this.pointShader=V,this.pickShader=X,this.pointPickShader=G,this.contourShader=H,this.trianglePositions=J,this.triangleColors=ue,this.triangleNormals=ke,this.triangleUVs=ge,this.triangleIds=te,this.triangleVAO=_e,this.triangleCount=0,this.lineWidth=1,this.edgePositions=he,this.edgeColors=Me,this.edgeUVs=ye,this.edgeIds=oe,this.edgeVAO=ce,this.edgeCount=0,this.pointPositions=ee,this.pointColors=xe,this.pointUVs=re,this.pointSizes=pe,this.pointIds=ae,this.pointVAO=we,this.pointCount=0,this.contourLineWidth=1,this.contourPositions=Fe,this.contourVAO=Ee,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=C,this._view=C,this._projection=C,this._resolution=[1,1]}var D=k.prototype;D.isOpaque=function(){return!this.hasAlpha},D.isTransparent=function(){return this.hasAlpha},D.pickSlots=1,D.setPickBase=function(j){this.pickId=j};function L(j,q){if(!q||!q.length)return 1;for(var Q=0;Qj&&Q>0){var U=(q[Q][0]-j)/(q[Q][0]-q[Q-1][0]);return q[Q][1]*(1-U)+U*q[Q-1][1]}}return 1}function P(j,q){for(var Q=g({colormap:j,nshades:256,format:"rgba"}),U=new Uint8Array(256*4),V=0;V<256;++V){for(var X=Q[V],G=0;G<3;++G)U[4*V+G]=X[G];q?U[4*V+3]=255*L(V/255,q):U[4*V+3]=255*X[3]}return m(U,[256,256,4],[4,0,1])}function R(j){for(var q=j.length,Q=new Array(q),U=0;U0){var ke=this.triShader;ke.bind(),ke.uniforms=H,this.triangleVAO.bind(),q.drawArrays(q.TRIANGLES,0,this.triangleCount*3),this.triangleVAO.unbind()}if(this.edgeCount>0&&this.lineWidth>0){var ke=this.lineShader;ke.bind(),ke.uniforms=H,this.edgeVAO.bind(),q.lineWidth(this.lineWidth*this.pixelRatio),q.drawArrays(q.LINES,0,this.edgeCount*2),this.edgeVAO.unbind()}if(this.pointCount>0){var ke=this.pointShader;ke.bind(),ke.uniforms=H,this.pointVAO.bind(),q.drawArrays(q.POINTS,0,this.pointCount),this.pointVAO.unbind()}if(this.contourEnable&&this.contourCount>0&&this.contourLineWidth>0){var ke=this.contourShader;ke.bind(),ke.uniforms=H,this.contourVAO.bind(),q.drawArrays(q.LINES,0,this.contourCount),this.contourVAO.unbind()}},D.drawPick=function(j){j=j||{};for(var q=this.gl,Q=j.model||C,U=j.view||C,V=j.projection||C,X=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],G=0;G<3;++G)X[0][G]=Math.max(X[0][G],this.clipBounds[0][G]),X[1][G]=Math.min(X[1][G],this.clipBounds[1][G]);this._model=[].slice.call(Q),this._view=[].slice.call(U),this._projection=[].slice.call(V),this._resolution=[q.drawingBufferWidth,q.drawingBufferHeight];var H={model:Q,view:U,projection:V,clipBounds:X,pickId:this.pickId/255},J=this.pickShader;if(J.bind(),J.uniforms=H,this.triangleCount>0&&(this.triangleVAO.bind(),q.drawArrays(q.TRIANGLES,0,this.triangleCount*3),this.triangleVAO.unbind()),this.edgeCount>0&&(this.edgeVAO.bind(),q.lineWidth(this.lineWidth*this.pixelRatio),q.drawArrays(q.LINES,0,this.edgeCount*2),this.edgeVAO.unbind()),this.pointCount>0){var J=this.pointPickShader;J.bind(),J.uniforms=H,this.pointVAO.bind(),q.drawArrays(q.POINTS,0,this.pointCount),this.pointVAO.unbind()}},D.pick=function(j){if(!j||j.id!==this.pickId)return null;for(var q=j.value[0]+256*j.value[1]+65536*j.value[2],Q=this.cells[q],U=this.positions,V=new Array(Q.length),X=0;XMath.abs(y))g.rotate(C,0,0,-A*E*Math.PI*x.rotateSpeed/window.innerWidth);else if(!x._ortho){var k=-x.zoomSpeed*M*y/window.innerHeight*(C-g.lastT())/20;g.pan(C,0,0,_*(Math.exp(k)-1))}}},!0)},x.enableMouseListeners(),x}},799(n,a,o){var s=o(3236),l=o(9405),u=s([`precision mediump float; +`]);a.meshShader={vertex:l,fragment:u,attributes:[{name:"position",type:"vec3"},{name:"normal",type:"vec3"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"}]},a.wireShader={vertex:c,fragment:f,attributes:[{name:"position",type:"vec3"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"}]},a.pointShader={vertex:h,fragment:p,attributes:[{name:"position",type:"vec3"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"},{name:"pointSize",type:"float"}]},a.pickShader={vertex:d,fragment:v,attributes:[{name:"position",type:"vec3"},{name:"id",type:"vec4"}]},a.pointPickShader={vertex:m,fragment:v,attributes:[{name:"position",type:"vec3"},{name:"pointSize",type:"float"},{name:"id",type:"vec4"}]},a.contourShader={vertex:g,fragment:w,attributes:[{name:"position",type:"vec3"}]}},7201(n,a,o){"use strict";var s=1e-6,l=1e-6,u=o(9405),c=o(2762),f=o(8116),h=o(7766),p=o(8406),d=o(6760),v=o(7608),m=o(9618),g=o(6729),w=o(7765),_=o(1888),b=o(840),S=o(7626),x=b.meshShader,A=b.wireShader,T=b.pointShader,y=b.pickShader,E=b.pointPickShader,M=b.contourShader,C=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function k(G,q,J,N,V,Y,H,j,Q,te,ue,ge,Ee,xe,ce,oe,Se,be,fe,ee,ae,_e,re,pe,Te,Ce,ze){this.gl=G,this.pixelRatio=1,this.cells=[],this.positions=[],this.intensity=[],this.texture=q,this.dirty=!0,this.triShader=J,this.lineShader=N,this.pointShader=V,this.pickShader=Y,this.pointPickShader=H,this.contourShader=j,this.trianglePositions=Q,this.triangleColors=ue,this.triangleNormals=Ee,this.triangleUVs=ge,this.triangleIds=te,this.triangleVAO=xe,this.triangleCount=0,this.lineWidth=1,this.edgePositions=ce,this.edgeColors=Se,this.edgeUVs=be,this.edgeIds=oe,this.edgeVAO=fe,this.edgeCount=0,this.pointPositions=ee,this.pointColors=_e,this.pointUVs=re,this.pointSizes=pe,this.pointIds=ae,this.pointVAO=Te,this.pointCount=0,this.contourLineWidth=1,this.contourPositions=Ce,this.contourVAO=ze,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=C,this._view=C,this._projection=C,this._resolution=[1,1]}var D=k.prototype;D.isOpaque=function(){return!this.hasAlpha},D.isTransparent=function(){return this.hasAlpha},D.pickSlots=1,D.setPickBase=function(G){this.pickId=G};function F(G,q){if(!q||!q.length)return 1;for(var J=0;JG&&J>0){var N=(q[J][0]-G)/(q[J][0]-q[J-1][0]);return q[J][1]*(1-N)+N*q[J-1][1]}}return 1}function P(G,q){for(var J=g({colormap:G,nshades:256,format:"rgba"}),N=new Uint8Array(256*4),V=0;V<256;++V){for(var Y=J[V],H=0;H<3;++H)N[4*V+H]=Y[H];q?N[4*V+3]=255*F(V/255,q):N[4*V+3]=255*Y[3]}return m(N,[256,256,4],[4,0,1])}function R(G){for(var q=G.length,J=new Array(q),N=0;N0){var Ee=this.triShader;Ee.bind(),Ee.uniforms=j,this.triangleVAO.bind(),q.drawArrays(q.TRIANGLES,0,this.triangleCount*3),this.triangleVAO.unbind()}if(this.edgeCount>0&&this.lineWidth>0){var Ee=this.lineShader;Ee.bind(),Ee.uniforms=j,this.edgeVAO.bind(),q.lineWidth(this.lineWidth*this.pixelRatio),q.drawArrays(q.LINES,0,this.edgeCount*2),this.edgeVAO.unbind()}if(this.pointCount>0){var Ee=this.pointShader;Ee.bind(),Ee.uniforms=j,this.pointVAO.bind(),q.drawArrays(q.POINTS,0,this.pointCount),this.pointVAO.unbind()}if(this.contourEnable&&this.contourCount>0&&this.contourLineWidth>0){var Ee=this.contourShader;Ee.bind(),Ee.uniforms=j,this.contourVAO.bind(),q.drawArrays(q.LINES,0,this.contourCount),this.contourVAO.unbind()}},D.drawPick=function(G){G=G||{};for(var q=this.gl,J=G.model||C,N=G.view||C,V=G.projection||C,Y=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],H=0;H<3;++H)Y[0][H]=Math.max(Y[0][H],this.clipBounds[0][H]),Y[1][H]=Math.min(Y[1][H],this.clipBounds[1][H]);this._model=[].slice.call(J),this._view=[].slice.call(N),this._projection=[].slice.call(V),this._resolution=[q.drawingBufferWidth,q.drawingBufferHeight];var j={model:J,view:N,projection:V,clipBounds:Y,pickId:this.pickId/255},Q=this.pickShader;if(Q.bind(),Q.uniforms=j,this.triangleCount>0&&(this.triangleVAO.bind(),q.drawArrays(q.TRIANGLES,0,this.triangleCount*3),this.triangleVAO.unbind()),this.edgeCount>0&&(this.edgeVAO.bind(),q.lineWidth(this.lineWidth*this.pixelRatio),q.drawArrays(q.LINES,0,this.edgeCount*2),this.edgeVAO.unbind()),this.pointCount>0){var Q=this.pointPickShader;Q.bind(),Q.uniforms=j,this.pointVAO.bind(),q.drawArrays(q.POINTS,0,this.pointCount),this.pointVAO.unbind()}},D.pick=function(G){if(!G||G.id!==this.pickId)return null;for(var q=G.value[0]+256*G.value[1]+65536*G.value[2],J=this.cells[q],N=this.positions,V=new Array(J.length),Y=0;YMath.abs(y))g.rotate(C,0,0,-T*E*Math.PI*x.rotateSpeed/window.innerWidth);else if(!x._ortho){var k=-x.zoomSpeed*M*y/window.innerHeight*(C-g.lastT())/20;g.pan(C,0,0,_*(Math.exp(k)-1))}}},!0)},x.enableMouseListeners(),x}},799(n,a,o){var s=o(3236),l=o(9405),u=s([`precision mediump float; #define GLSLIFY 1 attribute vec2 position; varying vec2 uv; @@ -1255,7 +1255,7 @@ varying vec2 uv; void main() { vec4 accum = texture2D(accumBuffer, 0.5 * (uv + 1.0)); gl_FragColor = min(vec4(1,1,1,1), accum); -}`]);n.exports=function(f){return l(f,u,c,null,[{name:"position",type:"vec2"}])}},4100(n,a,o){"use strict";var s=o(4437),l=o(3837),u=o(5445),c=o(4449),f=o(3589),h=o(2260),p=o(7169),d=o(351),v=o(4772),m=o(4040),g=o(799),w=o(2431)({tablet:!0,featureDetect:!0});n.exports={createScene:T,createCamera:s};function _(){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 b(y,E){var M=null;try{M=y.getContext("webgl",E),M||(M=y.getContext("experimental-webgl",E))}catch(C){return null}return M}function S(y){var E=Math.round(Math.log(Math.abs(y))/Math.log(10));if(E<0){var M=Math.round(Math.pow(10,-E));return Math.ceil(y*M)/M}else if(E>0){var M=Math.round(Math.pow(10,E));return Math.ceil(y/M)*M}return Math.ceil(y)}function x(y){return typeof y=="boolean"?y:!0}function T(y){y=y||{},y.camera=y.camera||{};var E=y.canvas;if(!E)if(E=document.createElement("canvas"),y.container){var M=y.container;M.appendChild(E)}else document.body.appendChild(E);var C=y.gl;if(C||(y.glOptions&&(w=!!y.glOptions.preserveDrawingBuffer),C=b(E,y.glOptions||{premultipliedAlpha:!0,antialias:!0,preserveDrawingBuffer:w})),!C)throw new Error("webgl not supported");var k=y.bounds||[[-10,-10,-10],[10,10,10]],D=new _,L=h(C,C.drawingBufferWidth,C.drawingBufferHeight,{preferFloat:!w}),P=g(C),R=y.cameraObject&&y.cameraObject._ortho===!0||y.camera.projection&&y.camera.projection.type==="orthographic"||!1,F={eye:y.camera.eye||[2,0,0],center:y.camera.center||[0,0,0],up:y.camera.up||[0,1,0],zoomMin:y.camera.zoomMax||.1,zoomMax:y.camera.zoomMin||100,mode:y.camera.mode||"turntable",_ortho:R},I=y.axes||{},B=l(C,I);B.enable=!I.disable;var O=y.spikes||{},$=c(C,O),Y=[],K=[],j=[],q=[],Q=!0,G=!0,U=new Array(16),V=new Array(16),X={view:null,projection:U,model:V,_ortho:!1},G=!0,H=[C.drawingBufferWidth,C.drawingBufferHeight],J=y.cameraObject||s(E,F),te={gl:C,contextLost:!1,pixelRatio:y.pixelRatio||1,canvas:E,selection:D,camera:J,axes:B,axesPixels:null,spikes:$,bounds:k,objects:Y,shape:H,aspect:y.aspectRatio||[1,1,1],pickRadius:y.pickRadius||10,zNear:y.zNear||.01,zFar:y.zFar||1e3,fovy:y.fovy||Math.PI/4,clearColor:y.clearColor||[0,0,0,0],autoResize:x(y.autoResize),autoBounds:x(y.autoBounds),autoScale:!!y.autoScale,autoCenter:x(y.autoCenter),clipToBounds:x(y.clipToBounds),snapToData:!!y.snapToData,onselect:y.onselect||null,onrender:y.onrender||null,onclick:y.onclick||null,cameraParams:X,oncontextloss:null,mouseListener:null,_stopped:!1,getAspectratio:function(){return{x:this.aspect[0],y:this.aspect[1],z:this.aspect[2]}},setAspectratio:function(ee){this.aspect[0]=ee.x,this.aspect[1]=ee.y,this.aspect[2]=ee.z,G=!0},setBounds:function(ee,ae){this.bounds[0][ee]=ae.min,this.bounds[1][ee]=ae.max},setClearColor:function(ee){this.clearColor=ee},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)}},ue=[C.drawingBufferWidth/te.pixelRatio|0,C.drawingBufferHeight/te.pixelRatio|0];function ge(){if(!te._stopped&&te.autoResize){var ee=E.parentNode,ae=1,xe=1;ee&&ee!==document.body?(ae=ee.clientWidth,xe=ee.clientHeight):(ae=window.innerWidth,xe=window.innerHeight);var re=Math.ceil(ae*te.pixelRatio)|0,pe=Math.ceil(xe*te.pixelRatio)|0;if(re!==E.width||pe!==E.height){E.width=re,E.height=pe;var we=E.style;we.position=we.position||"absolute",we.left="0px",we.top="0px",we.width=ae+"px",we.height=xe+"px",Q=!0}}}te.autoResize&&ge(),window.addEventListener("resize",ge);function ke(){for(var ee=Y.length,ae=q.length,xe=0;xe0&&j[ae-1]===0;)j.pop(),q.pop().dispose()}te.update=function(ee){te._stopped||(ee=ee||{},Q=!0,G=!0)},te.add=function(ee){te._stopped||(ee.axes=B,Y.push(ee),K.push(-1),Q=!0,G=!0,ke())},te.remove=function(ee){if(!te._stopped){var ae=Y.indexOf(ee);ae<0||(Y.splice(ae,1),K.pop(),Q=!0,G=!0,ke())}},te.dispose=function(){if(!te._stopped&&(te._stopped=!0,window.removeEventListener("resize",ge),E.removeEventListener("webglcontextlost",_e),te.mouseListener.enabled=!1,!te.contextLost)){B.dispose(),$.dispose();for(var ee=0;eeD.distance)continue;for(var be=0;be1e-6?(w=Math.acos(_),b=Math.sin(w),S=Math.sin((1-u)*w)/b,x=Math.sin(u*w)/b):(S=1-u,x=u),o[0]=S*c+x*d,o[1]=S*f+x*v,o[2]=S*h+x*m,o[3]=S*p+x*g,o}},5964(n){"use strict";n.exports=function(a){return!a&&a!==0?"":a.toString()}},9366(n,a,o){"use strict";var s=o(4359);n.exports=u;var l={};function u(c,f,h){var p=[f.style,f.weight,f.variant,f.family].join("_"),d=l[p];if(d||(d=l[p]={}),c in d)return d[c];var v={textAlign:"center",textBaseline:"middle",lineHeight:1,font:f.family,fontStyle:f.style,fontWeight:f.weight,fontVariant:f.variant,lineSpacing:1.25,styletags:{breaklines:!0,bolds:!0,italics:!0,subscripts:!0,superscripts:!0}};v.triangles=!0;var m=s(c,v);v.triangles=!1;var g=s(c,v),w,_;if(h&&h!==1){for(w=0;w0){var M=Math.round(Math.pow(10,E));return Math.ceil(y/M)*M}return Math.ceil(y)}function x(y){return typeof y=="boolean"?y:!0}function A(y){y=y||{},y.camera=y.camera||{};var E=y.canvas;if(!E)if(E=document.createElement("canvas"),y.container){var M=y.container;M.appendChild(E)}else document.body.appendChild(E);var C=y.gl;if(C||(y.glOptions&&(w=!!y.glOptions.preserveDrawingBuffer),C=b(E,y.glOptions||{premultipliedAlpha:!0,antialias:!0,preserveDrawingBuffer:w})),!C)throw new Error("webgl not supported");var k=y.bounds||[[-10,-10,-10],[10,10,10]],D=new _,F=h(C,C.drawingBufferWidth,C.drawingBufferHeight,{preferFloat:!w}),P=g(C),R=y.cameraObject&&y.cameraObject._ortho===!0||y.camera.projection&&y.camera.projection.type==="orthographic"||!1,L={eye:y.camera.eye||[2,0,0],center:y.camera.center||[0,0,0],up:y.camera.up||[0,1,0],zoomMin:y.camera.zoomMax||.1,zoomMax:y.camera.zoomMin||100,mode:y.camera.mode||"turntable",_ortho:R},I=y.axes||{},B=l(C,I);B.enable=!I.disable;var O=y.spikes||{},$=c(C,O),X=[],K=[],G=[],q=[],J=!0,H=!0,N=new Array(16),V=new Array(16),Y={view:null,projection:N,model:V,_ortho:!1},H=!0,j=[C.drawingBufferWidth,C.drawingBufferHeight],Q=y.cameraObject||s(E,L),te={gl:C,contextLost:!1,pixelRatio:y.pixelRatio||1,canvas:E,selection:D,camera:Q,axes:B,axesPixels:null,spikes:$,bounds:k,objects:X,shape:j,aspect:y.aspectRatio||[1,1,1],pickRadius:y.pickRadius||10,zNear:y.zNear||.01,zFar:y.zFar||1e3,fovy:y.fovy||Math.PI/4,clearColor:y.clearColor||[0,0,0,0],autoResize:x(y.autoResize),autoBounds:x(y.autoBounds),autoScale:!!y.autoScale,autoCenter:x(y.autoCenter),clipToBounds:x(y.clipToBounds),snapToData:!!y.snapToData,onselect:y.onselect||null,onrender:y.onrender||null,onclick:y.onclick||null,cameraParams:Y,oncontextloss:null,mouseListener:null,_stopped:!1,getAspectratio:function(){return{x:this.aspect[0],y:this.aspect[1],z:this.aspect[2]}},setAspectratio:function(ee){this.aspect[0]=ee.x,this.aspect[1]=ee.y,this.aspect[2]=ee.z,H=!0},setBounds:function(ee,ae){this.bounds[0][ee]=ae.min,this.bounds[1][ee]=ae.max},setClearColor:function(ee){this.clearColor=ee},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)}},ue=[C.drawingBufferWidth/te.pixelRatio|0,C.drawingBufferHeight/te.pixelRatio|0];function ge(){if(!te._stopped&&te.autoResize){var ee=E.parentNode,ae=1,_e=1;ee&&ee!==document.body?(ae=ee.clientWidth,_e=ee.clientHeight):(ae=window.innerWidth,_e=window.innerHeight);var re=Math.ceil(ae*te.pixelRatio)|0,pe=Math.ceil(_e*te.pixelRatio)|0;if(re!==E.width||pe!==E.height){E.width=re,E.height=pe;var Te=E.style;Te.position=Te.position||"absolute",Te.left="0px",Te.top="0px",Te.width=ae+"px",Te.height=_e+"px",J=!0}}}te.autoResize&&ge(),window.addEventListener("resize",ge);function Ee(){for(var ee=X.length,ae=q.length,_e=0;_e0&&G[ae-1]===0;)G.pop(),q.pop().dispose()}te.update=function(ee){te._stopped||(ee=ee||{},J=!0,H=!0)},te.add=function(ee){te._stopped||(ee.axes=B,X.push(ee),K.push(-1),J=!0,H=!0,Ee())},te.remove=function(ee){if(!te._stopped){var ae=X.indexOf(ee);ae<0||(X.splice(ae,1),K.pop(),J=!0,H=!0,Ee())}},te.dispose=function(){if(!te._stopped&&(te._stopped=!0,window.removeEventListener("resize",ge),E.removeEventListener("webglcontextlost",xe),te.mouseListener.enabled=!1,!te.contextLost)){B.dispose(),$.dispose();for(var ee=0;eeD.distance)continue;for(var me=0;me1e-6?(w=Math.acos(_),b=Math.sin(w),S=Math.sin((1-u)*w)/b,x=Math.sin(u*w)/b):(S=1-u,x=u),o[0]=S*c+x*d,o[1]=S*f+x*v,o[2]=S*h+x*m,o[3]=S*p+x*g,o}},5964(n){"use strict";n.exports=function(a){return!a&&a!==0?"":a.toString()}},9366(n,a,o){"use strict";var s=o(4359);n.exports=u;var l={};function u(c,f,h){var p=[f.style,f.weight,f.variant,f.family].join("_"),d=l[p];if(d||(d=l[p]={}),c in d)return d[c];var v={textAlign:"center",textBaseline:"middle",lineHeight:1,font:f.family,fontStyle:f.style,fontWeight:f.weight,fontVariant:f.variant,lineSpacing:1.25,styletags:{breaklines:!0,bolds:!0,italics:!0,subscripts:!0,superscripts:!0}};v.triangles=!0;var m=s(c,v);v.triangles=!1;var g=s(c,v),w,_;if(h&&h!==1){for(w=0;w1?1:V}function A(V,X,G,H,J,te,ue,ge,ke,_e,he,oe){this.gl=V,this.pixelRatio=1,this.shader=X,this.orthoShader=G,this.projectShader=H,this.pointBuffer=J,this.colorBuffer=te,this.glyphBuffer=ue,this.idBuffer=ge,this.vao=ke,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=_e,this.pickOrthoShader=he,this.pickProjectShader=oe,this.points=[],this._selectResult=new x(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 y=A.prototype;y.pickSlots=1,y.setPickBase=function(V){this.pickId=V},y.isTransparent=function(){if(this.hasAlpha)return!0;for(var V=0;V<3;++V)if(this.axesProject[V]&&this.projectHasAlpha)return!0;return!1},y.isOpaque=function(){if(!this.hasAlpha)return!0;for(var V=0;V<3;++V)if(this.axesProject[V]&&!this.projectHasAlpha)return!0;return!1};var E=[0,0],M=[0,0,0],C=[0,0,0],k=[0,0,0,1],D=[0,0,0,1],L=v.slice(),P=[0,0,0],R=[[0,0,0],[0,0,0]];function F(V){return V[0]=V[1]=V[2]=0,V}function I(V,X){return V[0]=X[0],V[1]=X[1],V[2]=X[2],V[3]=1,V}function B(V,X,G,H){return V[0]=X[0],V[1]=X[1],V[2]=X[2],V[G]=H,V}function O(V){for(var X=R,G=0;G<2;++G)for(var H=0;H<3;++H)X[G][H]=Math.max(Math.min(V[G][H],1e8),-1e8);return X}function $(V,X,G,H){var J=X.axesProject,te=X.gl,ue=V.uniforms,ge=G.model||v,ke=G.view||v,_e=G.projection||v,he=X.axesBounds,oe=O(X.clipBounds),Me;X.axes&&X.axes.lastCubeProps?Me=X.axes.lastCubeProps.axis:Me=[1,1,1],E[0]=2/te.drawingBufferWidth,E[1]=2/te.drawingBufferHeight,V.bind(),ue.view=ke,ue.projection=_e,ue.screenSize=E,ue.highlightId=X.highlightId,ue.highlightScale=X.highlightScale,ue.clipBounds=oe,ue.pickGroup=X.pickId/255,ue.pixelRatio=H;for(var ye=0;ye<3;++ye)if(J[ye]){ue.scale=X.projectScale[ye],ue.opacity=X.projectOpacity[ye];for(var ce=L,ee=0;ee<16;++ee)ce[ee]=0;for(var ee=0;ee<4;++ee)ce[5*ee]=1;ce[5*ye]=0,Me[ye]<0?ce[12+ye]=he[0][ye]:ce[12+ye]=he[1][ye],f(ce,ge,ce),ue.model=ce;var ae=(ye+1)%3,xe=(ye+2)%3,re=F(M),pe=F(C);re[ae]=1,pe[xe]=1;var we=S(_e,ke,ge,I(k,re)),Fe=S(_e,ke,ge,I(D,pe));if(Math.abs(we[1])>Math.abs(Fe[1])){var Ee=we;we=Fe,Fe=Ee,Ee=re,re=pe,pe=Ee;var Ce=ae;ae=xe,xe=Ce}we[0]<0&&(re[ae]=-1),Fe[1]>0&&(pe[xe]=-1);for(var be=0,Ie=0,ee=0;ee<4;++ee)be+=Math.pow(ge[4*ae+ee],2),Ie+=Math.pow(ge[4*xe+ee],2);re[ae]/=Math.sqrt(be),pe[xe]/=Math.sqrt(Ie),ue.axes[0]=re,ue.axes[1]=pe,ue.fragClipBounds[0]=B(P,oe[0],ye,-1e8),ue.fragClipBounds[1]=B(P,oe[1],ye,1e8),X.vao.bind(),X.vao.draw(te.TRIANGLES,X.vertexCount),X.lineWidth>0&&(te.lineWidth(X.lineWidth*H),X.vao.draw(te.LINES,X.lineVertexCount,X.vertexCount)),X.vao.unbind()}}var Y=[-1e8,-1e8,-1e8],K=[1e8,1e8,1e8],j=[Y,K];function q(V,X,G,H,J,te,ue){var ge=G.gl;if((te===G.projectHasAlpha||ue)&&$(X,G,H,J),te===G.hasAlpha||ue){V.bind();var ke=V.uniforms;ke.model=H.model||v,ke.view=H.view||v,ke.projection=H.projection||v,E[0]=2/ge.drawingBufferWidth,E[1]=2/ge.drawingBufferHeight,ke.screenSize=E,ke.highlightId=G.highlightId,ke.highlightScale=G.highlightScale,ke.fragClipBounds=j,ke.clipBounds=G.axes.bounds,ke.opacity=G.opacity,ke.pickGroup=G.pickId/255,ke.pixelRatio=J,G.vao.bind(),G.vao.draw(ge.TRIANGLES,G.vertexCount),G.lineWidth>0&&(ge.lineWidth(G.lineWidth*J),G.vao.draw(ge.LINES,G.lineVertexCount,G.vertexCount)),G.vao.unbind()}}y.draw=function(V){var X=this.useOrtho?this.orthoShader:this.shader;q(X,this.projectShader,this,V,this.pixelRatio,!1,!1)},y.drawTransparent=function(V){var X=this.useOrtho?this.orthoShader:this.shader;q(X,this.projectShader,this,V,this.pixelRatio,!0,!1)},y.drawPick=function(V){var X=this.useOrtho?this.pickOrthoShader:this.pickPerspectiveShader;q(X,this.pickProjectShader,this,V,1,!0,!0)},y.pick=function(V){if(!V||V.id!==this.pickId)return null;var X=V.value[2]+(V.value[1]<<8)+(V.value[0]<<16);if(X>=this.pointCount||X<0)return null;var G=this.points[X],H=this._selectResult;H.index=X;for(var J=0;J<3;++J)H.position[J]=H.dataCoordinate[J]=G[J];return H},y.highlight=function(V){if(!V)this.highlightId=[1,1,1,1];else{var X=V.index,G=X&255,H=X>>8&255,J=X>>16&255;this.highlightId=[G/255,H/255,J/255,0]}};function Q(V,X,G,H){var J;_(V)?X0){var vt=0,Xe=xe,mt=[0,0,0,1],_t=[0,0,0,1],Ne=_(Me)&&_(Me[0]),Ue=_(ee)&&_(ee[0]);e:for(var H=0;H0?1-Ie[0][0]:Zt<0?1+Ie[1][0]:1,Gt*=Gt>0?1-Ie[0][1]:Gt<0?1+Ie[1][1]:1;for(var ur=[Zt,Gt],$e=Ce.cells||[],tt=Ce.positions||[],Fe=0;Fe<$e.length;++Fe)for(var cr=$e[Fe],qt=0;qt<3;++qt){for(var Kt=0;Kt<3;++Kt)Qe[3*vt+Kt]=we[Kt];for(var Kt=0;Kt<4;++Kt)et[4*vt+Kt]=mt[Kt];ut[vt]=ae;var Cr=tt[cr[qt]];bt[2*vt]=Re*(ct*Cr[0]-Tt*Cr[1]+ur[0]),bt[2*vt+1]=Re*(Tt*Cr[0]+ct*Cr[1]+ur[1]),vt+=1}for(var $e=be.edges,tt=be.positions,Fe=0;Fe<$e.length;++Fe)for(var cr=$e[Fe],qt=0;qt<2;++qt){for(var Kt=0;Kt<3;++Kt)Qe[3*Xe+Kt]=we[Kt];for(var Kt=0;Kt<4;++Kt)et[4*Xe+Kt]=_t[Kt];ut[Xe]=ae;var Cr=tt[cr[qt]];bt[2*Xe]=Re*(ct*Cr[0]-Tt*Cr[1]+ur[0]),bt[2*Xe+1]=Re*(Tt*Cr[0]+ct*Cr[1]+ur[1]),Xe+=1}}}this.bounds=[_e,he],this.points=J,this.pointCount=J.length,this.vertexCount=xe,this.lineVertexCount=re,this.pointBuffer.update(Qe),this.colorBuffer.update(et),this.glyphBuffer.update(bt),this.idBuffer.update(ut),c.free(Qe),c.free(et),c.free(bt),c.free(ut)},y.dispose=function(){this.shader.dispose(),this.orthoShader.dispose(),this.pickPerspectiveShader.dispose(),this.pickOrthoShader.dispose(),this.vao.dispose(),this.pointBuffer.dispose(),this.colorBuffer.dispose(),this.glyphBuffer.dispose(),this.idBuffer.dispose()};function U(V){var X=V.gl,G=h.createPerspective(X),H=h.createOrtho(X),J=h.createProject(X),te=h.createPickPerspective(X),ue=h.createPickOrtho(X),ge=h.createPickProject(X),ke=l(X),_e=l(X),he=l(X),oe=l(X),Me=u(X,[{buffer:ke,size:3,type:X.FLOAT},{buffer:_e,size:4,type:X.FLOAT},{buffer:he,size:2,type:X.FLOAT},{buffer:oe,size:4,type:X.UNSIGNED_BYTE,normalized:!0}]),ye=new A(X,G,H,J,ke,_e,he,oe,Me,te,ue,ge);return ye.update(V),ye}},3589(n,a,o){"use strict";n.exports=v;var s=o(2260),l=o(1888),u=o(9618),c=o(8828).nextPow2,f=function(m,g,w){for(var _=1e8,b=-1,S=-1,x=m.shape[0],T=m.shape[1],A=0;Athis.buffer.length){l.free(this.buffer);for(var _=this.buffer=l.mallocUint8(c(w*g*4)),b=0;b_)for(g=_;gw)for(g=w;g<_;g++)this.gl.disableVertexAttribArray(g);this.gl.lastAttribCount=w,this.gl.useProgram(this.program)},d.dispose=function(){for(var g=this.gl.lastAttribCount,w=0;w=0){for(var R=P.type.charAt(P.type.length-1)|0,F=new Array(R),I=0;I=0;)B+=1;D[L]=B}var O=new Array(_.length);function $(){x.program=c.program(T,x._vref,x._fref,k,D);for(var Y=0;Y<_.length;++Y)O[Y]=T.getUniformLocation(x.program,_[Y].name)}$(),x._relink=$,x.types={uniforms:u(_),attributes:u(b)},x.attributes=l(T,x,C,D),Object.defineProperty(x,"uniforms",s(T,x,_,O))};function m(g,w,_,b,S){var x=new p(g);return x.update(w,_,b,S),x}n.exports=m},8866(n){function a(o,s,l){this.shortMessage=s||"",this.longMessage=l||"",this.rawError=o||"",this.message="gl-shader: "+(s||o||"")+(l?` -`+l:""),this.stack=new Error().stack}a.prototype=new Error,a.prototype.name="GLError",a.prototype.constructor=a,n.exports=a},8731(n,a,o){"use strict";n.exports=p;var s=o(8866);function l(d,v,m,g,w,_){this._gl=d,this._wrapper=v,this._index=m,this._locations=g,this._dimension=w,this._constFunc=_}var u=l.prototype;u.pointer=function(v,m,g,w){var _=this,b=_._gl,S=_._locations[_._index];b.vertexAttribPointer(S,_._dimension,v||b.FLOAT,!!m,g||0,w||0),b.enableVertexAttribArray(S)},u.set=function(d,v,m,g){return this._constFunc(this._locations[this._index],d,v,m,g)},Object.defineProperty(u,"location",{get:function(){return this._locations[this._index]},set:function(d){return d!==this._locations[this._index]&&(this._locations[this._index]=d|0,this._wrapper.program=null),d|0}});var c=[function(d,v,m){return m.length===void 0?d.vertexAttrib1f(v,m):d.vertexAttrib1fv(v,m)},function(d,v,m,g){return m.length===void 0?d.vertexAttrib2f(v,m,g):d.vertexAttrib2fv(v,m)},function(d,v,m,g,w){return m.length===void 0?d.vertexAttrib3f(v,m,g,w):d.vertexAttrib3fv(v,m)},function(d,v,m,g,w,_){return m.length===void 0?d.vertexAttrib4f(v,m,g,w,_):d.vertexAttrib4fv(v,m)}];function f(d,v,m,g,w,_,b){var S=c[w],x=new l(d,v,m,g,w,S);Object.defineProperty(_,b,{set:function(T){return d.disableVertexAttribArray(g[m]),S(d,g[m],T),T},get:function(){return x},enumerable:!0})}function h(d,v,m,g,w,_,b){for(var S=new Array(w),x=new Array(w),T=0;T=0){var y=T.charCodeAt(T.length-1)-48;if(y<2||y>4)throw new s("","Invalid data type for attribute "+x+": "+T);f(d,v,A[0],g,y,w,x)}else if(T.indexOf("mat")>=0){var y=T.charCodeAt(T.length-1)-48;if(y<2||y>4)throw new s("","Invalid data type for attribute "+x+": "+T);h(d,v,A,g,y,w,x)}else throw new s("","Unknown data type for attribute "+x+": "+T);break}}return w}},3327(n,a,o){"use strict";var s=o(216),l=o(8866);n.exports=f;function u(h){return function(){return h}}function c(h,p){for(var d=new Array(h),v=0;v4)throw new l("","Invalid data type");switch(B.charAt(0)){case"b":case"i":h["uniform"+O+"iv"](v[D],L);break;case"v":h["uniform"+O+"fv"](v[D],L);break;default:throw new l("","Unrecognized data type for vector "+name+": "+B)}}else if(B.indexOf("mat")===0&&B.length===4){if(O=B.charCodeAt(B.length-1)-48,O<2||O>4)throw new l("","Invalid uniform dimension type for matrix "+name+": "+B);h["uniformMatrix"+O+"fv"](v[D],!1,L);break}else throw new l("","Unknown uniform data type for "+name+": "+B)}}}}}function w(T,A){if(typeof A!="object")return[[T,A]];var y=[];for(var E in A){var M=A[E],C=T;parseInt(E)+""===E?C+="["+E+"]":C+="."+E,typeof M=="object"?y.push.apply(y,w(C,M)):y.push([C,M])}return y}function _(T){switch(T){case"bool":return!1;case"int":case"sampler2D":case"samplerCube":return 0;case"float":return 0;default:var A=T.indexOf("vec");if(0<=A&&A<=1&&T.length===4+A){var y=T.charCodeAt(T.length-1)-48;if(y<2||y>4)throw new l("","Invalid data type");return T.charAt(0)==="b"?c(y,!1):c(y,0)}else if(T.indexOf("mat")===0&&T.length===4){var y=T.charCodeAt(T.length-1)-48;if(y<2||y>4)throw new l("","Invalid uniform dimension type for matrix "+name+": "+T);return c(y*y,0)}else throw new l("","Unknown uniform data type for "+name+": "+T)}}function b(T,A,y){if(typeof y=="object"){var E=S(y);Object.defineProperty(T,A,{get:u(E),set:g(y),enumerable:!0,configurable:!1})}else v[y]?Object.defineProperty(T,A,{get:m(y),set:g(y),enumerable:!0,configurable:!1}):T[A]=_(d[y].type)}function S(T){var A;if(Array.isArray(T)){A=new Array(T.length);for(var y=0;y1){d[0]in h||(h[d[0]]=[]),h=h[d[0]];for(var v=1;v1)for(var w=0;w1?1:V}function T(V,Y,H,j,Q,te,ue,ge,Ee,xe,ce,oe){this.gl=V,this.pixelRatio=1,this.shader=Y,this.orthoShader=H,this.projectShader=j,this.pointBuffer=Q,this.colorBuffer=te,this.glyphBuffer=ue,this.idBuffer=ge,this.vao=Ee,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=xe,this.pickOrthoShader=ce,this.pickProjectShader=oe,this.points=[],this._selectResult=new x(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 y=T.prototype;y.pickSlots=1,y.setPickBase=function(V){this.pickId=V},y.isTransparent=function(){if(this.hasAlpha)return!0;for(var V=0;V<3;++V)if(this.axesProject[V]&&this.projectHasAlpha)return!0;return!1},y.isOpaque=function(){if(!this.hasAlpha)return!0;for(var V=0;V<3;++V)if(this.axesProject[V]&&!this.projectHasAlpha)return!0;return!1};var E=[0,0],M=[0,0,0],C=[0,0,0],k=[0,0,0,1],D=[0,0,0,1],F=v.slice(),P=[0,0,0],R=[[0,0,0],[0,0,0]];function L(V){return V[0]=V[1]=V[2]=0,V}function I(V,Y){return V[0]=Y[0],V[1]=Y[1],V[2]=Y[2],V[3]=1,V}function B(V,Y,H,j){return V[0]=Y[0],V[1]=Y[1],V[2]=Y[2],V[H]=j,V}function O(V){for(var Y=R,H=0;H<2;++H)for(var j=0;j<3;++j)Y[H][j]=Math.max(Math.min(V[H][j],1e8),-1e8);return Y}function $(V,Y,H,j){var Q=Y.axesProject,te=Y.gl,ue=V.uniforms,ge=H.model||v,Ee=H.view||v,xe=H.projection||v,ce=Y.axesBounds,oe=O(Y.clipBounds),Se;Y.axes&&Y.axes.lastCubeProps?Se=Y.axes.lastCubeProps.axis:Se=[1,1,1],E[0]=2/te.drawingBufferWidth,E[1]=2/te.drawingBufferHeight,V.bind(),ue.view=Ee,ue.projection=xe,ue.screenSize=E,ue.highlightId=Y.highlightId,ue.highlightScale=Y.highlightScale,ue.clipBounds=oe,ue.pickGroup=Y.pickId/255,ue.pixelRatio=j;for(var be=0;be<3;++be)if(Q[be]){ue.scale=Y.projectScale[be],ue.opacity=Y.projectOpacity[be];for(var fe=F,ee=0;ee<16;++ee)fe[ee]=0;for(var ee=0;ee<4;++ee)fe[5*ee]=1;fe[5*be]=0,Se[be]<0?fe[12+be]=ce[0][be]:fe[12+be]=ce[1][be],f(fe,ge,fe),ue.model=fe;var ae=(be+1)%3,_e=(be+2)%3,re=L(M),pe=L(C);re[ae]=1,pe[_e]=1;var Te=S(xe,Ee,ge,I(k,re)),Ce=S(xe,Ee,ge,I(D,pe));if(Math.abs(Te[1])>Math.abs(Ce[1])){var ze=Te;Te=Ce,Ce=ze,ze=re,re=pe,pe=ze;var we=ae;ae=_e,_e=we}Te[0]<0&&(re[ae]=-1),Ce[1]>0&&(pe[_e]=-1);for(var me=0,Le=0,ee=0;ee<4;++ee)me+=Math.pow(ge[4*ae+ee],2),Le+=Math.pow(ge[4*_e+ee],2);re[ae]/=Math.sqrt(me),pe[_e]/=Math.sqrt(Le),ue.axes[0]=re,ue.axes[1]=pe,ue.fragClipBounds[0]=B(P,oe[0],be,-1e8),ue.fragClipBounds[1]=B(P,oe[1],be,1e8),Y.vao.bind(),Y.vao.draw(te.TRIANGLES,Y.vertexCount),Y.lineWidth>0&&(te.lineWidth(Y.lineWidth*j),Y.vao.draw(te.LINES,Y.lineVertexCount,Y.vertexCount)),Y.vao.unbind()}}var X=[-1e8,-1e8,-1e8],K=[1e8,1e8,1e8],G=[X,K];function q(V,Y,H,j,Q,te,ue){var ge=H.gl;if((te===H.projectHasAlpha||ue)&&$(Y,H,j,Q),te===H.hasAlpha||ue){V.bind();var Ee=V.uniforms;Ee.model=j.model||v,Ee.view=j.view||v,Ee.projection=j.projection||v,E[0]=2/ge.drawingBufferWidth,E[1]=2/ge.drawingBufferHeight,Ee.screenSize=E,Ee.highlightId=H.highlightId,Ee.highlightScale=H.highlightScale,Ee.fragClipBounds=G,Ee.clipBounds=H.axes.bounds,Ee.opacity=H.opacity,Ee.pickGroup=H.pickId/255,Ee.pixelRatio=Q,H.vao.bind(),H.vao.draw(ge.TRIANGLES,H.vertexCount),H.lineWidth>0&&(ge.lineWidth(H.lineWidth*Q),H.vao.draw(ge.LINES,H.lineVertexCount,H.vertexCount)),H.vao.unbind()}}y.draw=function(V){var Y=this.useOrtho?this.orthoShader:this.shader;q(Y,this.projectShader,this,V,this.pixelRatio,!1,!1)},y.drawTransparent=function(V){var Y=this.useOrtho?this.orthoShader:this.shader;q(Y,this.projectShader,this,V,this.pixelRatio,!0,!1)},y.drawPick=function(V){var Y=this.useOrtho?this.pickOrthoShader:this.pickPerspectiveShader;q(Y,this.pickProjectShader,this,V,1,!0,!0)},y.pick=function(V){if(!V||V.id!==this.pickId)return null;var Y=V.value[2]+(V.value[1]<<8)+(V.value[0]<<16);if(Y>=this.pointCount||Y<0)return null;var H=this.points[Y],j=this._selectResult;j.index=Y;for(var Q=0;Q<3;++Q)j.position[Q]=j.dataCoordinate[Q]=H[Q];return j},y.highlight=function(V){if(!V)this.highlightId=[1,1,1,1];else{var Y=V.index,H=Y&255,j=Y>>8&255,Q=Y>>16&255;this.highlightId=[H/255,j/255,Q/255,0]}};function J(V,Y,H,j){var Q;_(V)?Y0){var St=0,Ke=_e,bt=[0,0,0,1],pt=[0,0,0,1],Oe=_(Se)&&_(Se[0]),Ue=_(ee)&&_(ee[0]);e:for(var j=0;j0?1-Le[0][0]:Wt<0?1+Le[1][0]:1,Ht*=Ht>0?1-Le[0][1]:Ht<0?1+Le[1][1]:1;for(var fr=[Wt,Ht],Ge=we.cells||[],Qe=we.positions||[],Ce=0;Cethis.buffer.length){l.free(this.buffer);for(var _=this.buffer=l.mallocUint8(c(w*g*4)),b=0;b_)for(g=_;gw)for(g=w;g<_;g++)this.gl.disableVertexAttribArray(g);this.gl.lastAttribCount=w,this.gl.useProgram(this.program)},d.dispose=function(){for(var g=this.gl.lastAttribCount,w=0;w=0){for(var R=P.type.charAt(P.type.length-1)|0,L=new Array(R),I=0;I=0;)B+=1;D[F]=B}var O=new Array(_.length);function $(){x.program=c.program(A,x._vref,x._fref,k,D);for(var X=0;X<_.length;++X)O[X]=A.getUniformLocation(x.program,_[X].name)}$(),x._relink=$,x.types={uniforms:u(_),attributes:u(b)},x.attributes=l(A,x,C,D),Object.defineProperty(x,"uniforms",s(A,x,_,O))};function m(g,w,_,b,S){var x=new p(g);return x.update(w,_,b,S),x}n.exports=m},8866(n){function a(o,s,l){this.shortMessage=s||"",this.longMessage=l||"",this.rawError=o||"",this.message="gl-shader: "+(s||o||"")+(l?` +`+l:""),this.stack=new Error().stack}a.prototype=new Error,a.prototype.name="GLError",a.prototype.constructor=a,n.exports=a},8731(n,a,o){"use strict";n.exports=p;var s=o(8866);function l(d,v,m,g,w,_){this._gl=d,this._wrapper=v,this._index=m,this._locations=g,this._dimension=w,this._constFunc=_}var u=l.prototype;u.pointer=function(v,m,g,w){var _=this,b=_._gl,S=_._locations[_._index];b.vertexAttribPointer(S,_._dimension,v||b.FLOAT,!!m,g||0,w||0),b.enableVertexAttribArray(S)},u.set=function(d,v,m,g){return this._constFunc(this._locations[this._index],d,v,m,g)},Object.defineProperty(u,"location",{get:function(){return this._locations[this._index]},set:function(d){return d!==this._locations[this._index]&&(this._locations[this._index]=d|0,this._wrapper.program=null),d|0}});var c=[function(d,v,m){return m.length===void 0?d.vertexAttrib1f(v,m):d.vertexAttrib1fv(v,m)},function(d,v,m,g){return m.length===void 0?d.vertexAttrib2f(v,m,g):d.vertexAttrib2fv(v,m)},function(d,v,m,g,w){return m.length===void 0?d.vertexAttrib3f(v,m,g,w):d.vertexAttrib3fv(v,m)},function(d,v,m,g,w,_){return m.length===void 0?d.vertexAttrib4f(v,m,g,w,_):d.vertexAttrib4fv(v,m)}];function f(d,v,m,g,w,_,b){var S=c[w],x=new l(d,v,m,g,w,S);Object.defineProperty(_,b,{set:function(A){return d.disableVertexAttribArray(g[m]),S(d,g[m],A),A},get:function(){return x},enumerable:!0})}function h(d,v,m,g,w,_,b){for(var S=new Array(w),x=new Array(w),A=0;A=0){var y=A.charCodeAt(A.length-1)-48;if(y<2||y>4)throw new s("","Invalid data type for attribute "+x+": "+A);f(d,v,T[0],g,y,w,x)}else if(A.indexOf("mat")>=0){var y=A.charCodeAt(A.length-1)-48;if(y<2||y>4)throw new s("","Invalid data type for attribute "+x+": "+A);h(d,v,T,g,y,w,x)}else throw new s("","Unknown data type for attribute "+x+": "+A);break}}return w}},3327(n,a,o){"use strict";var s=o(216),l=o(8866);n.exports=f;function u(h){return function(){return h}}function c(h,p){for(var d=new Array(h),v=0;v4)throw new l("","Invalid data type");switch(B.charAt(0)){case"b":case"i":h["uniform"+O+"iv"](v[D],F);break;case"v":h["uniform"+O+"fv"](v[D],F);break;default:throw new l("","Unrecognized data type for vector "+name+": "+B)}}else if(B.indexOf("mat")===0&&B.length===4){if(O=B.charCodeAt(B.length-1)-48,O<2||O>4)throw new l("","Invalid uniform dimension type for matrix "+name+": "+B);h["uniformMatrix"+O+"fv"](v[D],!1,F);break}else throw new l("","Unknown uniform data type for "+name+": "+B)}}}}}function w(A,T){if(typeof T!="object")return[[A,T]];var y=[];for(var E in T){var M=T[E],C=A;parseInt(E)+""===E?C+="["+E+"]":C+="."+E,typeof M=="object"?y.push.apply(y,w(C,M)):y.push([C,M])}return y}function _(A){switch(A){case"bool":return!1;case"int":case"sampler2D":case"samplerCube":return 0;case"float":return 0;default:var T=A.indexOf("vec");if(0<=T&&T<=1&&A.length===4+T){var y=A.charCodeAt(A.length-1)-48;if(y<2||y>4)throw new l("","Invalid data type");return A.charAt(0)==="b"?c(y,!1):c(y,0)}else if(A.indexOf("mat")===0&&A.length===4){var y=A.charCodeAt(A.length-1)-48;if(y<2||y>4)throw new l("","Invalid uniform dimension type for matrix "+name+": "+A);return c(y*y,0)}else throw new l("","Unknown uniform data type for "+name+": "+A)}}function b(A,T,y){if(typeof y=="object"){var E=S(y);Object.defineProperty(A,T,{get:u(E),set:g(y),enumerable:!0,configurable:!1})}else v[y]?Object.defineProperty(A,T,{get:m(y),set:g(y),enumerable:!0,configurable:!1}):A[T]=_(d[y].type)}function S(A){var T;if(Array.isArray(A)){T=new Array(A.length);for(var y=0;y1){d[0]in h||(h[d[0]]=[]),h=h[d[0]];for(var v=1;v1)for(var w=0;w0)for(var q=0;qS)return T-1}return T},p=function(b,S,x){return bx?x:b},d=function(b,S,x){var T=S.vectors,A=S.meshgrid,y=b[0],E=b[1],M=b[2],C=A[0].length,k=A[1].length,D=A[2].length,L=h(A[0],y),P=h(A[1],E),R=h(A[2],M),F=L+1,I=P+1,B=R+1;if(L=p(L,0,C-1),F=p(F,0,C-1),P=p(P,0,k-1),I=p(I,0,k-1),R=p(R,0,D-1),B=p(B,0,D-1),L<0||P<0||R<0||F>C-1||I>k-1||B>D-1)return s.create();var O=A[0][L],$=A[0][F],Y=A[1][P],K=A[1][I],j=A[2][R],q=A[2][B],Q=(y-O)/($-O),U=(E-Y)/(K-Y),V=(M-j)/(q-j);isFinite(Q)||(Q=.5),isFinite(U)||(U=.5),isFinite(V)||(V=.5);var X,G,H,J,te,ue;switch(x.reversedX&&(L=C-1-L,F=C-1-F),x.reversedY&&(P=k-1-P,I=k-1-I),x.reversedZ&&(R=D-1-R,B=D-1-B),x.filled){case 5:te=R,ue=B,H=P*D,J=I*D,X=L*D*k,G=F*D*k;break;case 4:te=R,ue=B,X=L*D,G=F*D,H=P*D*C,J=I*D*C;break;case 3:H=P,J=I,te=R*k,ue=B*k,X=L*k*D,G=F*k*D;break;case 2:H=P,J=I,X=L*k,G=F*k,te=R*k*C,ue=B*k*C;break;case 1:X=L,G=F,te=R*C,ue=B*C,H=P*C*D,J=I*C*D;break;default:X=L,G=F,H=P*C,J=I*C,te=R*C*k,ue=B*C*k;break}var ge=T[X+H+te],ke=T[X+H+ue],_e=T[X+J+te],he=T[X+J+ue],oe=T[G+H+te],Me=T[G+H+ue],ye=T[G+J+te],ce=T[G+J+ue],ee=s.create(),ae=s.create(),xe=s.create(),re=s.create();s.lerp(ee,ge,oe,Q),s.lerp(ae,ke,Me,Q),s.lerp(xe,_e,ye,Q),s.lerp(re,he,ce,Q);var pe=s.create(),we=s.create();s.lerp(pe,ee,xe,U),s.lerp(we,ae,re,U);var Fe=s.create();return s.lerp(Fe,pe,we,V),Fe},v=function(b,S){var x=S[0],T=S[1],A=S[2];return b[0]=x<0?-x:x,b[1]=T<0?-T:T,b[2]=A<0?-A:A,b},m=function(b){var S=1/0;b.sort(function(y,E){return y-E});for(var x=b.length,T=1;TF||ceI||eeB)},$=s.distance(S[0],S[1]),Y=10*$/T,K=Y*Y,j=1,q=0,Q=x.length;Q>1&&(j=g(x));for(var U=0;Uq&&(q=ge),te.push(ge),D.push({points:X,velocities:G,divergences:te});for(var ke=0;keK&&s.scale(_e,_e,Y/Math.sqrt(he)),s.add(_e,_e,V),H=C(_e),s.squaredDistance(J,_e)-K>-1e-4*K){X.push(_e),J=_e,G.push(H);var ue=k(_e,H),ge=s.length(ue);isFinite(ge)&&ge>q&&(q=ge),te.push(ge)}V=_e}}var oe=f(D,b.colormap,q,j);return y?oe.tubeScale=y:(q===0&&(q=1),oe.tubeScale=A*.5*j/q),oe};var w=o(6740),_=o(6405).createMesh;n.exports.createTubeMesh=function(b,S){return _(b,S,{shaders:w,traceType:"streamtube"})}},990(n,a,o){var s=o(9405),l=o(3236),u=l([`precision highp float; +}`]);a.meshShader={vertex:l,fragment:u,attributes:[{name:"position",type:"vec4"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"},{name:"vector",type:"vec4"}]},a.pickShader={vertex:c,fragment:f,attributes:[{name:"position",type:"vec4"},{name:"id",type:"vec4"},{name:"vector",type:"vec4"}]}},7815(n,a,o){"use strict";var s=o(2931),l=o(9970),u=["xyz","xzy","yxz","yzx","zxy","zyx"],c=function(b,S,x,A){for(var T=b.points,y=b.velocities,E=b.divergences,M=[],C=[],k=[],D=[],F=[],P=[],R=0,L=0,I=l.create(),B=l.create(),O=8,$=0;$0)for(var q=0;qS)return A-1}return A},p=function(b,S,x){return bx?x:b},d=function(b,S,x){var A=S.vectors,T=S.meshgrid,y=b[0],E=b[1],M=b[2],C=T[0].length,k=T[1].length,D=T[2].length,F=h(T[0],y),P=h(T[1],E),R=h(T[2],M),L=F+1,I=P+1,B=R+1;if(F=p(F,0,C-1),L=p(L,0,C-1),P=p(P,0,k-1),I=p(I,0,k-1),R=p(R,0,D-1),B=p(B,0,D-1),F<0||P<0||R<0||L>C-1||I>k-1||B>D-1)return s.create();var O=T[0][F],$=T[0][L],X=T[1][P],K=T[1][I],G=T[2][R],q=T[2][B],J=(y-O)/($-O),N=(E-X)/(K-X),V=(M-G)/(q-G);isFinite(J)||(J=.5),isFinite(N)||(N=.5),isFinite(V)||(V=.5);var Y,H,j,Q,te,ue;switch(x.reversedX&&(F=C-1-F,L=C-1-L),x.reversedY&&(P=k-1-P,I=k-1-I),x.reversedZ&&(R=D-1-R,B=D-1-B),x.filled){case 5:te=R,ue=B,j=P*D,Q=I*D,Y=F*D*k,H=L*D*k;break;case 4:te=R,ue=B,Y=F*D,H=L*D,j=P*D*C,Q=I*D*C;break;case 3:j=P,Q=I,te=R*k,ue=B*k,Y=F*k*D,H=L*k*D;break;case 2:j=P,Q=I,Y=F*k,H=L*k,te=R*k*C,ue=B*k*C;break;case 1:Y=F,H=L,te=R*C,ue=B*C,j=P*C*D,Q=I*C*D;break;default:Y=F,H=L,j=P*C,Q=I*C,te=R*C*k,ue=B*C*k;break}var ge=A[Y+j+te],Ee=A[Y+j+ue],xe=A[Y+Q+te],ce=A[Y+Q+ue],oe=A[H+j+te],Se=A[H+j+ue],be=A[H+Q+te],fe=A[H+Q+ue],ee=s.create(),ae=s.create(),_e=s.create(),re=s.create();s.lerp(ee,ge,oe,J),s.lerp(ae,Ee,Se,J),s.lerp(_e,xe,be,J),s.lerp(re,ce,fe,J);var pe=s.create(),Te=s.create();s.lerp(pe,ee,_e,N),s.lerp(Te,ae,re,N);var Ce=s.create();return s.lerp(Ce,pe,Te,V),Ce},v=function(b,S){var x=S[0],A=S[1],T=S[2];return b[0]=x<0?-x:x,b[1]=A<0?-A:A,b[2]=T<0?-T:T,b},m=function(b){var S=1/0;b.sort(function(y,E){return y-E});for(var x=b.length,A=1;AL||feI||eeB)},$=s.distance(S[0],S[1]),X=10*$/A,K=X*X,G=1,q=0,J=x.length;J>1&&(G=g(x));for(var N=0;Nq&&(q=ge),te.push(ge),D.push({points:Y,velocities:H,divergences:te});for(var Ee=0;EeK&&s.scale(xe,xe,X/Math.sqrt(ce)),s.add(xe,xe,V),j=C(xe),s.squaredDistance(Q,xe)-K>-1e-4*K){Y.push(xe),Q=xe,H.push(j);var ue=k(xe,j),ge=s.length(ue);isFinite(ge)&&ge>q&&(q=ge),te.push(ge)}V=xe}}var oe=f(D,b.colormap,q,G);return y?oe.tubeScale=y:(q===0&&(q=1),oe.tubeScale=T*.5*G/q),oe};var w=o(6740),_=o(6405).createMesh;n.exports.createTubeMesh=function(b,S){return _(b,S,{shaders:w,traceType:"streamtube"})}},990(n,a,o){var s=o(9405),l=o(3236),u=l([`precision highp float; #define GLSLIFY 1 attribute vec4 uv; @@ -2002,13 +2002,13 @@ void main() { vec2 uy = splitFloat(planeCoordinate.y / shape.y); gl_FragColor = vec4(pickId, ux.x, uy.x, ux.y + (uy.y/16.0)); } -`]);a.createShader=function(p){var d=s(p,u,c,null,[{name:"uv",type:"vec4"},{name:"f",type:"vec3"},{name:"normal",type:"vec3"}]);return d.attributes.uv.location=0,d.attributes.f.location=1,d.attributes.normal.location=2,d},a.createPickShader=function(p){var d=s(p,u,h,null,[{name:"uv",type:"vec4"},{name:"f",type:"vec3"},{name:"normal",type:"vec3"}]);return d.attributes.uv.location=0,d.attributes.f.location=1,d.attributes.normal.location=2,d},a.createContourShader=function(p){var d=s(p,f,c,null,[{name:"uv",type:"vec4"},{name:"f",type:"float"}]);return d.attributes.uv.location=0,d.attributes.f.location=1,d},a.createPickContourShader=function(p){var d=s(p,f,h,null,[{name:"uv",type:"vec4"},{name:"f",type:"float"}]);return d.attributes.uv.location=0,d.attributes.f.location=1,d}},9499(n,a,o){"use strict";n.exports=X;var s=o(8828),l=o(2762),u=o(8116),c=o(7766),f=o(1888),h=o(6729),p=o(5298),d=o(9994),v=o(9618),m=o(3711),g=o(6760),w=o(7608),_=o(2478),b=o(6199),S=o(990),x=S.createShader,T=S.createContourShader,A=S.createPickShader,y=S.createPickContourShader,E=40,M=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],C=[[0,0],[0,1],[1,0],[1,1],[1,0],[0,1]],k=[[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 G=0;G<3;++G){var H=k[G],J=(G+1)%3,te=(G+2)%3;H[J+0]=1,H[te+3]=1,H[G+6]=1}})();function D(G,H,J,te,ue){this.position=G,this.index=H,this.uv=J,this.level=te,this.dataCoordinate=ue}var L=256;function P(G,H,J,te,ue,ge,ke,_e,he,oe,Me,ye,ce,ee,ae){this.gl=G,this.shape=H,this.bounds=J,this.objectOffset=ae,this.intensityBounds=[],this._shader=te,this._pickShader=ue,this._coordinateBuffer=ge,this._vao=ke,this._colorMap=_e,this._contourShader=he,this._contourPickShader=oe,this._contourBuffer=Me,this._contourVAO=ye,this._contourOffsets=[[],[],[]],this._contourCounts=[[],[],[]],this._vertexCount=0,this._pickResult=new D([0,0,0],[0,0],[0,0],[0,0,0],[0,0,0]),this._dynamicBuffer=ce,this._dynamicVAO=ee,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=[v(f.mallocFloat(1024),[0,0]),v(f.mallocFloat(1024),[0,0]),v(f.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 R=P.prototype;R.genColormap=function(G,H){var J=!1,te=d([h({colormap:G,nshades:L,format:"rgba"}).map(function(ue,ge){var ke=H?F(ge/255,H):ue[3];return ke<1&&(J=!0),[ue[0],ue[1],ue[2],255*ke]})]);return p.divseq(te,255),this.hasAlphaScale=J,te},R.isTransparent=function(){return this.opacity<1||this.hasAlphaScale},R.isOpaque=function(){return!this.isTransparent()},R.pickSlots=1,R.setPickBase=function(G){this.pickId=G};function F(G,H){if(!H||!H.length)return 1;for(var J=0;JG&&J>0){var te=(H[J][0]-G)/(H[J][0]-H[J-1][0]);return H[J][1]*(1-te)+te*H[J-1][1]}}return 1}var I=[0,0,0],B={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 O(G,H){var J,te,ue,ge=H.axes&&H.axes.lastCubeProps.axis||I,ke=H.showSurface,_e=H.showContour;for(J=0;J<3;++J)for(ke=ke||H.surfaceProject[J],te=0;te<3;++te)_e=_e||H.contourProject[J][te];for(J=0;J<3;++J){var he=B.projections[J];for(te=0;te<16;++te)he[te]=0;for(te=0;te<4;++te)he[5*te]=1;he[5*J]=0,he[12+J]=H.axesBounds[+(ge[J]>0)][J],g(he,G.model,he);var oe=B.clipBounds[J];for(ue=0;ue<2;++ue)for(te=0;te<3;++te)oe[ue][te]=G.clipBounds[ue][te];oe[0][J]=-1e8,oe[1][J]=1e8}return B.showSurface=ke,B.showContour=_e,B}var $={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},Y=M.slice(),K=[1,0,0,0,1,0,0,0,1];function j(G,H){G=G||{};var J=this.gl;J.disable(J.CULL_FACE),this._colorMap.bind(0);var te=$;te.model=G.model||M,te.view=G.view||M,te.projection=G.projection||M,te.lowerBound=[this.bounds[0][0],this.bounds[0][1],this.colorBounds[0]||this.bounds[0][2]],te.upperBound=[this.bounds[1][0],this.bounds[1][1],this.colorBounds[1]||this.bounds[1][2]],te.objectOffset=this.objectOffset,te.contourColor=this.contourColor[0],te.inverseModel=w(te.inverseModel,te.model);for(var ue=0;ue<2;++ue)for(var ge=te.clipBounds[ue],ke=0;ke<3;++ke)ge[ke]=Math.min(Math.max(this.clipBounds[ue][ke],-1e8),1e8);te.kambient=this.ambientLight,te.kdiffuse=this.diffuseLight,te.kspecular=this.specularLight,te.roughness=this.roughness,te.fresnel=this.fresnel,te.opacity=this.opacity,te.height=0,te.permutation=K,te.vertexColor=this.vertexColor;var _e=Y;for(g(_e,te.view,te.model),g(_e,te.projection,_e),w(_e,_e),ue=0;ue<3;++ue)te.eyePosition[ue]=_e[12+ue]/_e[15];var he=_e[15];for(ue=0;ue<3;++ue)he+=this.lightPosition[ue]*_e[4*ue+3];for(ue=0;ue<3;++ue){var oe=_e[12+ue];for(ke=0;ke<3;++ke)oe+=_e[4*ke+ue]*this.lightPosition[ke];te.lightPosition[ue]=oe/he}var Me=O(te,this);if(Me.showSurface){for(this._shader.bind(),this._shader.uniforms=te,this._vao.bind(),this.showSurface&&this._vertexCount&&this._vao.draw(J.TRIANGLES,this._vertexCount),ue=0;ue<3;++ue)!this.surfaceProject[ue]||!this.vertexCount||(this._shader.uniforms.model=Me.projections[ue],this._shader.uniforms.clipBounds=Me.clipBounds[ue],this._vao.draw(J.TRIANGLES,this._vertexCount));this._vao.unbind()}if(Me.showContour){var ye=this._contourShader;te.kambient=1,te.kdiffuse=0,te.kspecular=0,te.opacity=1,ye.bind(),ye.uniforms=te;var ce=this._contourVAO;for(ce.bind(),ue=0;ue<3;++ue)for(ye.uniforms.permutation=k[ue],J.lineWidth(this.contourWidth[ue]*this.pixelRatio),ke=0;ke>4)/16)/255,ue=Math.floor(te),ge=te-ue,ke=H[1]*(G.value[1]+(G.value[2]&15)/16)/255,_e=Math.floor(ke),he=ke-_e;ue+=1,_e+=1;var oe=J.position;oe[0]=oe[1]=oe[2]=0;for(var Me=0;Me<2;++Me)for(var ye=Me?ge:1-ge,ce=0;ce<2;++ce)for(var ee=ce?he:1-he,ae=ue+Me,xe=_e+ce,re=ye*ee,pe=0;pe<3;++pe)oe[pe]+=this._field[pe].get(ae,xe)*re;for(var we=this._pickResult.level,Fe=0;Fe<3;++Fe)if(we[Fe]=_.le(this.contourLevels[Fe],oe[Fe]),we[Fe]<0)this.contourLevels[Fe].length>0&&(we[Fe]=0);else if(we[Fe]Math.abs(Ce-oe[Fe])&&(we[Fe]+=1)}for(J.index[0]=ge<.5?ue:ue+1,J.index[1]=he<.5?_e:_e+1,J.uv[0]=te/H[0],J.uv[1]=ke/H[1],pe=0;pe<3;++pe)J.dataCoordinate[pe]=this._field[pe].get(J.index[0],J.index[1]);return J},R.padField=function(G,H){var J=H.shape.slice(),te=G.shape.slice();p.assign(G.lo(1,1).hi(J[0],J[1]),H),p.assign(G.lo(1).hi(J[0],1),H.hi(J[0],1)),p.assign(G.lo(1,te[1]-1).hi(J[0],1),H.lo(0,J[1]-1).hi(J[0],1)),p.assign(G.lo(0,1).hi(1,J[1]),H.hi(1)),p.assign(G.lo(te[0]-1,1).hi(1,J[1]),H.lo(J[0]-1)),G.set(0,0,H.get(0,0)),G.set(0,te[1]-1,H.get(0,J[1]-1)),G.set(te[0]-1,0,H.get(J[0]-1,0)),G.set(te[0]-1,te[1]-1,H.get(J[0]-1,J[1]-1))};function Q(G,H){return Array.isArray(G)?[H(G[0]),H(G[1]),H(G[2])]:[H(G),H(G),H(G)]}function U(G){return Array.isArray(G)?G.length===3?[G[0],G[1],G[2],1]:[G[0],G[1],G[2],G[3]]:[0,0,0,1]}function V(G){if(Array.isArray(G)){if(Array.isArray(G))return[U(G[0]),U(G[1]),U(G[2])];var H=U(G);return[H.slice(),H.slice(),H.slice()]}}R.update=function(G){G=G||{},this.objectOffset=G.objectOffset||this.objectOffset,this.dirty=!0,"contourWidth"in G&&(this.contourWidth=Q(G.contourWidth,Number)),"showContour"in G&&(this.showContour=Q(G.showContour,Boolean)),"showSurface"in G&&(this.showSurface=!!G.showSurface),"contourTint"in G&&(this.contourTint=Q(G.contourTint,Boolean)),"contourColor"in G&&(this.contourColor=V(G.contourColor)),"contourProject"in G&&(this.contourProject=Q(G.contourProject,function(oa){return Q(oa,Boolean)})),"surfaceProject"in G&&(this.surfaceProject=G.surfaceProject),"dynamicColor"in G&&(this.dynamicColor=V(G.dynamicColor)),"dynamicTint"in G&&(this.dynamicTint=Q(G.dynamicTint,Number)),"dynamicWidth"in G&&(this.dynamicWidth=Q(G.dynamicWidth,Number)),"opacity"in G&&(this.opacity=G.opacity),"opacityscale"in G&&(this.opacityscale=G.opacityscale),"colorBounds"in G&&(this.colorBounds=G.colorBounds),"vertexColor"in G&&(this.vertexColor=G.vertexColor?1:0),"colormap"in G&&this._colorMap.setPixels(this.genColormap(G.colormap,this.opacityscale));var H=G.field||G.coords&&G.coords[2]||null,J=!1;if(H||(this._field[2].shape[0]||this._field[2].shape[2]?H=this._field[2].lo(1,1).hi(this._field[2].shape[0]-2,this._field[2].shape[1]-2):H=this._field[2].hi(0,0)),"field"in G||"coords"in G){var te=(H.shape[0]+2)*(H.shape[1]+2);te>this._field[2].data.length&&(f.freeFloat(this._field[2].data),this._field[2].data=f.mallocFloat(s.nextPow2(te))),this._field[2]=v(this._field[2].data,[H.shape[0]+2,H.shape[1]+2]),this.padField(this._field[2],H),this.shape=H.shape.slice();for(var ue=this.shape,ge=0;ge<2;++ge)this._field[2].size>this._field[ge].data.length&&(f.freeFloat(this._field[ge].data),this._field[ge].data=f.mallocFloat(this._field[2].size)),this._field[ge]=v(this._field[ge].data,[ue[0]+2,ue[1]+2]);if(G.coords){var ke=G.coords;if(!Array.isArray(ke)||ke.length!==3)throw new Error("gl-surface: invalid coordinates for x/y");for(ge=0;ge<2;++ge){var _e=ke[ge];for(ce=0;ce<2;++ce)if(_e.shape[ce]!==ue[ce])throw new Error("gl-surface: coords have incorrect shape");this.padField(this._field[ge],_e)}}else if(G.ticks){var he=G.ticks;if(!Array.isArray(he)||he.length!==2)throw new Error("gl-surface: invalid ticks");for(ge=0;ge<2;++ge){var oe=he[ge];if((Array.isArray(oe)||oe.length)&&(oe=v(oe)),oe.shape[0]!==ue[ge])throw new Error("gl-surface: invalid tick length");var Me=v(oe.data,ue);Me.stride[ge]=oe.stride[0],Me.stride[ge^1]=0,this.padField(this._field[ge],Me)}}else{for(ge=0;ge<2;++ge){var ye=[0,0];ye[ge]=1,this._field[ge]=v(this._field[ge].data,[ue[0]+2,ue[1]+2],ye,0)}this._field[0].set(0,0,0);for(var ce=0;ce0){for(var gn=0;gn<5;++gn)cr.pop();Ne-=1}continue e}}}$e.push(Ne)}this._contourOffsets[qt]=Cr,this._contourCounts[qt]=$e}var Hn=f.mallocFloat(cr.length);for(ge=0;geD||C<0||C>D)throw new Error("gl-texture2d: Invalid texture size");return E._shape=[M,C],E.bind(),k.texImage2D(k.TEXTURE_2D,0,E.format,M,C,0,E.format,E.type,null),E._mipLevels=[0],E}function g(E,M,C,k,D,L){this.gl=E,this.handle=M,this.format=D,this.type=L,this._shape=[C,k],this._mipLevels=[0],this._magFilter=E.NEAREST,this._minFilter=E.NEAREST,this._wrapS=E.CLAMP_TO_EDGE,this._wrapT=E.CLAMP_TO_EDGE,this._anisoSamples=1;var P=this,R=[this._wrapS,this._wrapT];Object.defineProperties(R,[{get:function(){return P._wrapS},set:function(I){return P.wrapS=I}},{get:function(){return P._wrapT},set:function(I){return P.wrapT=I}}]),this._wrapVector=R;var F=[this._shape[0],this._shape[1]];Object.defineProperties(F,[{get:function(){return P._shape[0]},set:function(I){return P.width=I}},{get:function(){return P._shape[1]},set:function(I){return P.height=I}}]),this._shapeVector=F}var w=g.prototype;Object.defineProperties(w,{minFilter:{get:function(){return this._minFilter},set:function(E){this.bind();var M=this.gl;if(this.type===M.FLOAT&&c.indexOf(E)>=0&&(M.getExtension("OES_texture_float_linear")||(E=M.NEAREST)),f.indexOf(E)<0)throw new Error("gl-texture2d: Unknown filter mode "+E);return M.texParameteri(M.TEXTURE_2D,M.TEXTURE_MIN_FILTER,E),this._minFilter=E}},magFilter:{get:function(){return this._magFilter},set:function(E){this.bind();var M=this.gl;if(this.type===M.FLOAT&&c.indexOf(E)>=0&&(M.getExtension("OES_texture_float_linear")||(E=M.NEAREST)),f.indexOf(E)<0)throw new Error("gl-texture2d: Unknown filter mode "+E);return M.texParameteri(M.TEXTURE_2D,M.TEXTURE_MAG_FILTER,E),this._magFilter=E}},mipSamples:{get:function(){return this._anisoSamples},set:function(E){var M=this._anisoSamples;if(this._anisoSamples=Math.max(E,1)|0,M!==this._anisoSamples){var C=this.gl.getExtension("EXT_texture_filter_anisotropic");C&&this.gl.texParameterf(this.gl.TEXTURE_2D,C.TEXTURE_MAX_ANISOTROPY_EXT,this._anisoSamples)}return this._anisoSamples}},wrapS:{get:function(){return this._wrapS},set:function(E){if(this.bind(),h.indexOf(E)<0)throw new Error("gl-texture2d: Unknown wrap mode "+E);return this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_WRAP_S,E),this._wrapS=E}},wrapT:{get:function(){return this._wrapT},set:function(E){if(this.bind(),h.indexOf(E)<0)throw new Error("gl-texture2d: Unknown wrap mode "+E);return this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_WRAP_T,E),this._wrapT=E}},wrap:{get:function(){return this._wrapVector},set:function(E){if(Array.isArray(E)||(E=[E,E]),E.length!==2)throw new Error("gl-texture2d: Must specify wrap mode for rows and columns");for(var M=0;M<2;++M)if(h.indexOf(E[M])<0)throw new Error("gl-texture2d: Unknown wrap mode "+E);this._wrapS=E[0],this._wrapT=E[1];var C=this.gl;return this.bind(),C.texParameteri(C.TEXTURE_2D,C.TEXTURE_WRAP_S,this._wrapS),C.texParameteri(C.TEXTURE_2D,C.TEXTURE_WRAP_T,this._wrapT),E}},shape:{get:function(){return this._shapeVector},set:function(E){if(!Array.isArray(E))E=[E|0,E|0];else if(E.length!==2)throw new Error("gl-texture2d: Invalid texture shape");return m(this,E[0]|0,E[1]|0),[E[0]|0,E[1]|0]}},width:{get:function(){return this._shape[0]},set:function(E){return E=E|0,m(this,E,this._shape[1]),E}},height:{get:function(){return this._shape[1]},set:function(E){return E=E|0,m(this,this._shape[0],E),E}}}),w.bind=function(E){var M=this.gl;return E!==void 0&&M.activeTexture(M.TEXTURE0+(E|0)),M.bindTexture(M.TEXTURE_2D,this.handle),E!==void 0?E|0:M.getParameter(M.ACTIVE_TEXTURE)-M.TEXTURE0},w.dispose=function(){this.gl.deleteTexture(this.handle)},w.generateMipmap=function(){this.bind(),this.gl.generateMipmap(this.gl.TEXTURE_2D);for(var E=Math.min(this._shape[0],this._shape[1]),M=0;E>0;++M,E>>>=1)this._mipLevels.indexOf(M)<0&&this._mipLevels.push(M)},w.setPixels=function(E,M,C,k){var D=this.gl;this.bind(),Array.isArray(M)?(k=C,C=M[1]|0,M=M[0]|0):(M=M||0,C=C||0),k=k||0;var L=d(E)?E:E.raw;if(L){var P=this._mipLevels.indexOf(k)<0;P?(D.texImage2D(D.TEXTURE_2D,0,this.format,this.format,this.type,L),this._mipLevels.push(k)):D.texSubImage2D(D.TEXTURE_2D,k,M,C,this.format,this.type,L)}else if(E.shape&&E.stride&&E.data){if(E.shape.length<2||M+E.shape[1]>this._shape[1]>>>k||C+E.shape[0]>this._shape[0]>>>k||M<0||C<0)throw new Error("gl-texture2d: Texture dimensions are out of bounds");b(D,M,C,k,this.format,this.type,this._mipLevels,E)}else throw new Error("gl-texture2d: Unsupported data type")};function _(E,M){return E.length===3?M[2]===1&&M[1]===E[0]*E[2]&&M[0]===E[2]:M[0]===1&&M[1]===E[0]}function b(E,M,C,k,D,L,P,R){var F=R.dtype,I=R.shape.slice();if(I.length<2||I.length>3)throw new Error("gl-texture2d: Invalid ndarray, must be 2d or 3d");var B=0,O=0,$=_(I,R.stride.slice());F==="float32"?B=E.FLOAT:F==="float64"?(B=E.FLOAT,$=!1,F="float32"):F==="uint8"?B=E.UNSIGNED_BYTE:(B=E.UNSIGNED_BYTE,$=!1,F="uint8");var Y=1;if(I.length===2)O=E.LUMINANCE,I=[I[0],I[1],1],R=s(R.data,I,[R.stride[0],R.stride[1],1],R.offset);else if(I.length===3){if(I[2]===1)O=E.ALPHA;else if(I[2]===2)O=E.LUMINANCE_ALPHA;else if(I[2]===3)O=E.RGB;else if(I[2]===4)O=E.RGBA;else throw new Error("gl-texture2d: Invalid shape for pixel coords");Y=I[2]}else throw new Error("gl-texture2d: Invalid shape for texture");if((O===E.LUMINANCE||O===E.ALPHA)&&(D===E.LUMINANCE||D===E.ALPHA)&&(O=D),O!==D)throw new Error("gl-texture2d: Incompatible texture format for setPixels");var K=R.size,j=P.indexOf(k)<0;if(j&&P.push(k),B===L&&$)R.offset===0&&R.data.length===K?j?E.texImage2D(E.TEXTURE_2D,k,D,I[0],I[1],0,D,L,R.data):E.texSubImage2D(E.TEXTURE_2D,k,M,C,I[0],I[1],D,L,R.data):j?E.texImage2D(E.TEXTURE_2D,k,D,I[0],I[1],0,D,L,R.data.subarray(R.offset,R.offset+K)):E.texSubImage2D(E.TEXTURE_2D,k,M,C,I[0],I[1],D,L,R.data.subarray(R.offset,R.offset+K));else{var q;L===E.FLOAT?q=u.mallocFloat32(K):q=u.mallocUint8(K);var Q=s(q,I,[I[2],I[2]*I[0],1]);B===E.FLOAT&&L===E.UNSIGNED_BYTE?v(Q,R):l.assign(Q,R),j?E.texImage2D(E.TEXTURE_2D,k,D,I[0],I[1],0,D,L,q.subarray(0,K)):E.texSubImage2D(E.TEXTURE_2D,k,M,C,I[0],I[1],D,L,q.subarray(0,K)),L===E.FLOAT?u.freeFloat32(q):u.freeUint8(q)}}function S(E){var M=E.createTexture();return E.bindTexture(E.TEXTURE_2D,M),E.texParameteri(E.TEXTURE_2D,E.TEXTURE_MIN_FILTER,E.NEAREST),E.texParameteri(E.TEXTURE_2D,E.TEXTURE_MAG_FILTER,E.NEAREST),E.texParameteri(E.TEXTURE_2D,E.TEXTURE_WRAP_S,E.CLAMP_TO_EDGE),E.texParameteri(E.TEXTURE_2D,E.TEXTURE_WRAP_T,E.CLAMP_TO_EDGE),M}function x(E,M,C,k,D){var L=E.getParameter(E.MAX_TEXTURE_SIZE);if(M<0||M>L||C<0||C>L)throw new Error("gl-texture2d: Invalid texture shape");if(D===E.FLOAT&&!E.getExtension("OES_texture_float"))throw new Error("gl-texture2d: Floating point textures not supported on this platform");var P=S(E);return E.texImage2D(E.TEXTURE_2D,0,k,M,C,0,k,D,null),new g(E,P,M,C,k,D)}function T(E,M,C,k,D,L){var P=S(E);return E.texImage2D(E.TEXTURE_2D,0,D,D,L,M),new g(E,P,C,k,D,L)}function A(E,M){var C=M.dtype,k=M.shape.slice(),D=E.getParameter(E.MAX_TEXTURE_SIZE);if(k[0]<0||k[0]>D||k[1]<0||k[1]>D)throw new Error("gl-texture2d: Invalid texture size");var L=_(k,M.stride.slice()),P=0;C==="float32"?P=E.FLOAT:C==="float64"?(P=E.FLOAT,L=!1,C="float32"):C==="uint8"?P=E.UNSIGNED_BYTE:(P=E.UNSIGNED_BYTE,L=!1,C="uint8");var R=0;if(k.length===2)R=E.LUMINANCE,k=[k[0],k[1],1],M=s(M.data,k,[M.stride[0],M.stride[1],1],M.offset);else if(k.length===3)if(k[2]===1)R=E.ALPHA;else if(k[2]===2)R=E.LUMINANCE_ALPHA;else if(k[2]===3)R=E.RGB;else if(k[2]===4)R=E.RGBA;else throw new Error("gl-texture2d: Invalid shape for pixel coords");else throw new Error("gl-texture2d: Invalid shape for texture");P===E.FLOAT&&!E.getExtension("OES_texture_float")&&(P=E.UNSIGNED_BYTE,L=!1);var F,I,B=M.size;if(L)M.offset===0&&M.data.length===B?F=M.data:F=M.data.subarray(M.offset,M.offset+B);else{var O=[k[2],k[2]*k[0],1];I=u.malloc(B,C);var $=s(I,k,O,0);(C==="float32"||C==="float64")&&P===E.UNSIGNED_BYTE?v($,M):l.assign($,M),F=I.subarray(0,B)}var Y=S(E);return E.texImage2D(E.TEXTURE_2D,0,R,k[0],k[1],0,R,P,F),L||u.free(I),new g(E,Y,k[0],k[1],R,P)}function y(E){if(arguments.length<=1)throw new Error("gl-texture2d: Missing arguments for texture2d constructor");if(c||p(E),typeof arguments[1]=="number")return x(E,arguments[1],arguments[2],arguments[3]||E.RGBA,arguments[4]||E.UNSIGNED_BYTE);if(Array.isArray(arguments[1]))return x(E,arguments[1][0]|0,arguments[1][1]|0,arguments[2]||E.RGBA,arguments[3]||E.UNSIGNED_BYTE);if(typeof arguments[1]=="object"){var M=arguments[1],C=d(M)?M:M.raw;if(C)return T(E,C,M.width|0,M.height|0,arguments[2]||E.RGBA,arguments[3]||E.UNSIGNED_BYTE);if(M.shape&&M.data&&M.stride)return A(E,M)}throw new Error("gl-texture2d: Invalid arguments for texture2d constructor")}},1433(n){"use strict";function a(o,s,l){s?s.bind():o.bindBuffer(o.ELEMENT_ARRAY_BUFFER,null);var u=o.getParameter(o.MAX_VERTEX_ATTRIBS)|0;if(l){if(l.length>u)throw new Error("gl-vao: Too many vertex attributes");for(var c=0;c1?0:Math.acos(v)}},9226(n){n.exports=a;function a(o,s){return o[0]=Math.ceil(s[0]),o[1]=Math.ceil(s[1]),o[2]=Math.ceil(s[2]),o}},3126(n){n.exports=a;function a(o){var s=new Float32Array(3);return s[0]=o[0],s[1]=o[1],s[2]=o[2],s}},3990(n){n.exports=a;function a(o,s){return o[0]=s[0],o[1]=s[1],o[2]=s[2],o}},1091(n){n.exports=a;function a(){var o=new Float32Array(3);return o[0]=0,o[1]=0,o[2]=0,o}},5911(n){n.exports=a;function a(o,s,l){var u=s[0],c=s[1],f=s[2],h=l[0],p=l[1],d=l[2];return o[0]=c*d-f*p,o[1]=f*h-u*d,o[2]=u*p-c*h,o}},5455(n,a,o){n.exports=o(7056)},7056(n){n.exports=a;function a(o,s){var l=s[0]-o[0],u=s[1]-o[1],c=s[2]-o[2];return Math.sqrt(l*l+u*u+c*c)}},4008(n,a,o){n.exports=o(6690)},6690(n){n.exports=a;function a(o,s,l){return o[0]=s[0]/l[0],o[1]=s[1]/l[1],o[2]=s[2]/l[2],o}},244(n){n.exports=a;function a(o,s){return o[0]*s[0]+o[1]*s[1]+o[2]*s[2]}},2613(n){n.exports=1e-6},9922(n,a,o){n.exports=l;var s=o(2613);function l(u,c){var f=u[0],h=u[1],p=u[2],d=c[0],v=c[1],m=c[2];return Math.abs(f-d)<=s*Math.max(1,Math.abs(f),Math.abs(d))&&Math.abs(h-v)<=s*Math.max(1,Math.abs(h),Math.abs(v))&&Math.abs(p-m)<=s*Math.max(1,Math.abs(p),Math.abs(m))}},9265(n){n.exports=a;function a(o,s){return o[0]===s[0]&&o[1]===s[1]&&o[2]===s[2]}},2681(n){n.exports=a;function a(o,s){return o[0]=Math.floor(s[0]),o[1]=Math.floor(s[1]),o[2]=Math.floor(s[2]),o}},5137(n,a,o){n.exports=l;var s=o(1091)();function l(u,c,f,h,p,d){var v,m;for(c||(c=3),f||(f=0),h?m=Math.min(h*c+f,u.length):m=u.length,v=f;v0&&(f=1/Math.sqrt(f),o[0]=s[0]*f,o[1]=s[1]*f,o[2]=s[2]*f),o}},7636(n){n.exports=a;function a(o,s){s=s||1;var l=Math.random()*2*Math.PI,u=Math.random()*2-1,c=Math.sqrt(1-u*u)*s;return o[0]=Math.cos(l)*c,o[1]=Math.sin(l)*c,o[2]=u*s,o}},6894(n){n.exports=a;function a(o,s,l,u){var c=l[1],f=l[2],h=s[1]-c,p=s[2]-f,d=Math.sin(u),v=Math.cos(u);return o[0]=s[0],o[1]=c+h*v-p*d,o[2]=f+h*d+p*v,o}},109(n){n.exports=a;function a(o,s,l,u){var c=l[0],f=l[2],h=s[0]-c,p=s[2]-f,d=Math.sin(u),v=Math.cos(u);return o[0]=c+p*d+h*v,o[1]=s[1],o[2]=f+p*v-h*d,o}},8692(n){n.exports=a;function a(o,s,l,u){var c=l[0],f=l[1],h=s[0]-c,p=s[1]-f,d=Math.sin(u),v=Math.cos(u);return o[0]=c+h*v-p*d,o[1]=f+h*d+p*v,o[2]=s[2],o}},2447(n){n.exports=a;function a(o,s){return o[0]=Math.round(s[0]),o[1]=Math.round(s[1]),o[2]=Math.round(s[2]),o}},6621(n){n.exports=a;function a(o,s,l){return o[0]=s[0]*l,o[1]=s[1]*l,o[2]=s[2]*l,o}},8489(n){n.exports=a;function a(o,s,l,u){return o[0]=s[0]+l[0]*u,o[1]=s[1]+l[1]*u,o[2]=s[2]+l[2]*u,o}},1463(n){n.exports=a;function a(o,s,l,u){return o[0]=s,o[1]=l,o[2]=u,o}},6141(n,a,o){n.exports=o(2953)},5486(n,a,o){n.exports=o(3066)},2953(n){n.exports=a;function a(o,s){var l=s[0]-o[0],u=s[1]-o[1],c=s[2]-o[2];return l*l+u*u+c*c}},3066(n){n.exports=a;function a(o){var s=o[0],l=o[1],u=o[2];return s*s+l*l+u*u}},2229(n,a,o){n.exports=o(6843)},6843(n){n.exports=a;function a(o,s,l){return o[0]=s[0]-l[0],o[1]=s[1]-l[1],o[2]=s[2]-l[2],o}},492(n){n.exports=a;function a(o,s,l){var u=s[0],c=s[1],f=s[2];return o[0]=u*l[0]+c*l[3]+f*l[6],o[1]=u*l[1]+c*l[4]+f*l[7],o[2]=u*l[2]+c*l[5]+f*l[8],o}},5673(n){n.exports=a;function a(o,s,l){var u=s[0],c=s[1],f=s[2],h=l[3]*u+l[7]*c+l[11]*f+l[15];return h=h||1,o[0]=(l[0]*u+l[4]*c+l[8]*f+l[12])/h,o[1]=(l[1]*u+l[5]*c+l[9]*f+l[13])/h,o[2]=(l[2]*u+l[6]*c+l[10]*f+l[14])/h,o}},264(n){n.exports=a;function a(o,s,l){var u=s[0],c=s[1],f=s[2],h=l[0],p=l[1],d=l[2],v=l[3],m=p*f-d*c,g=d*u-h*f,w=h*c-p*u;return m*=2,g*=2,w*=2,o[0]=u+v*m+p*w-d*g,o[1]=c+v*g+d*m-h*w,o[2]=f+v*w+h*g-p*m,o}},4361(n){n.exports=a;function a(o,s,l){return o[0]=s[0]+l[0],o[1]=s[1]+l[1],o[2]=s[2]+l[2],o[3]=s[3]+l[3],o}},2335(n){n.exports=a;function a(o){var s=new Float32Array(4);return s[0]=o[0],s[1]=o[1],s[2]=o[2],s[3]=o[3],s}},2933(n){n.exports=a;function a(o,s){return o[0]=s[0],o[1]=s[1],o[2]=s[2],o[3]=s[3],o}},7536(n){n.exports=a;function a(){var o=new Float32Array(4);return o[0]=0,o[1]=0,o[2]=0,o[3]=0,o}},4691(n){n.exports=a;function a(o,s){var l=s[0]-o[0],u=s[1]-o[1],c=s[2]-o[2],f=s[3]-o[3];return Math.sqrt(l*l+u*u+c*c+f*f)}},1373(n){n.exports=a;function a(o,s,l){return o[0]=s[0]/l[0],o[1]=s[1]/l[1],o[2]=s[2]/l[2],o[3]=s[3]/l[3],o}},3750(n){n.exports=a;function a(o,s){return o[0]*s[0]+o[1]*s[1]+o[2]*s[2]+o[3]*s[3]}},3390(n){n.exports=a;function a(o,s,l,u){var c=new Float32Array(4);return c[0]=o,c[1]=s,c[2]=l,c[3]=u,c}},9970(n,a,o){n.exports={create:o(7536),clone:o(2335),fromValues:o(3390),copy:o(2933),set:o(4578),add:o(4361),subtract:o(6860),multiply:o(3576),divide:o(1373),min:o(2334),max:o(160),scale:o(9288),scaleAndAdd:o(4844),distance:o(4691),squaredDistance:o(7960),length:o(6808),squaredLength:o(483),negate:o(1498),inverse:o(4494),normalize:o(5177),dot:o(3750),lerp:o(2573),random:o(9131),transformMat4:o(5352),transformQuat:o(4041)}},4494(n){n.exports=a;function a(o,s){return o[0]=1/s[0],o[1]=1/s[1],o[2]=1/s[2],o[3]=1/s[3],o}},6808(n){n.exports=a;function a(o){var s=o[0],l=o[1],u=o[2],c=o[3];return Math.sqrt(s*s+l*l+u*u+c*c)}},2573(n){n.exports=a;function a(o,s,l,u){var c=s[0],f=s[1],h=s[2],p=s[3];return o[0]=c+u*(l[0]-c),o[1]=f+u*(l[1]-f),o[2]=h+u*(l[2]-h),o[3]=p+u*(l[3]-p),o}},160(n){n.exports=a;function a(o,s,l){return o[0]=Math.max(s[0],l[0]),o[1]=Math.max(s[1],l[1]),o[2]=Math.max(s[2],l[2]),o[3]=Math.max(s[3],l[3]),o}},2334(n){n.exports=a;function a(o,s,l){return o[0]=Math.min(s[0],l[0]),o[1]=Math.min(s[1],l[1]),o[2]=Math.min(s[2],l[2]),o[3]=Math.min(s[3],l[3]),o}},3576(n){n.exports=a;function a(o,s,l){return o[0]=s[0]*l[0],o[1]=s[1]*l[1],o[2]=s[2]*l[2],o[3]=s[3]*l[3],o}},1498(n){n.exports=a;function a(o,s){return o[0]=-s[0],o[1]=-s[1],o[2]=-s[2],o[3]=-s[3],o}},5177(n){n.exports=a;function a(o,s){var l=s[0],u=s[1],c=s[2],f=s[3],h=l*l+u*u+c*c+f*f;return h>0&&(h=1/Math.sqrt(h),o[0]=l*h,o[1]=u*h,o[2]=c*h,o[3]=f*h),o}},9131(n,a,o){var s=o(5177),l=o(9288);n.exports=u;function u(c,f){return f=f||1,c[0]=Math.random(),c[1]=Math.random(),c[2]=Math.random(),c[3]=Math.random(),s(c,c),l(c,c,f),c}},9288(n){n.exports=a;function a(o,s,l){return o[0]=s[0]*l,o[1]=s[1]*l,o[2]=s[2]*l,o[3]=s[3]*l,o}},4844(n){n.exports=a;function a(o,s,l,u){return o[0]=s[0]+l[0]*u,o[1]=s[1]+l[1]*u,o[2]=s[2]+l[2]*u,o[3]=s[3]+l[3]*u,o}},4578(n){n.exports=a;function a(o,s,l,u,c){return o[0]=s,o[1]=l,o[2]=u,o[3]=c,o}},7960(n){n.exports=a;function a(o,s){var l=s[0]-o[0],u=s[1]-o[1],c=s[2]-o[2],f=s[3]-o[3];return l*l+u*u+c*c+f*f}},483(n){n.exports=a;function a(o){var s=o[0],l=o[1],u=o[2],c=o[3];return s*s+l*l+u*u+c*c}},6860(n){n.exports=a;function a(o,s,l){return o[0]=s[0]-l[0],o[1]=s[1]-l[1],o[2]=s[2]-l[2],o[3]=s[3]-l[3],o}},5352(n){n.exports=a;function a(o,s,l){var u=s[0],c=s[1],f=s[2],h=s[3];return o[0]=l[0]*u+l[4]*c+l[8]*f+l[12]*h,o[1]=l[1]*u+l[5]*c+l[9]*f+l[13]*h,o[2]=l[2]*u+l[6]*c+l[10]*f+l[14]*h,o[3]=l[3]*u+l[7]*c+l[11]*f+l[15]*h,o}},4041(n){n.exports=a;function a(o,s,l){var u=s[0],c=s[1],f=s[2],h=l[0],p=l[1],d=l[2],v=l[3],m=v*u+p*f-d*c,g=v*c+d*u-h*f,w=v*f+h*c-p*u,_=-h*u-p*c-d*f;return o[0]=m*v+_*-h+g*-d-w*-p,o[1]=g*v+_*-p+w*-h-m*-d,o[2]=w*v+_*-d+m*-p-g*-h,o[3]=s[3],o}},1848(n,a,o){var s=o(4905),l=o(6468);n.exports=u;function u(c){for(var f=Array.isArray(c)?c:s(c),h=0;h0)continue;Fe=re.slice(0,1).join("")}return J(Fe),K+=Fe.length,F=F.slice(Fe.length),F.length}while(!0)}function ce(){return/[^a-fA-F0-9]/.test(P)?(J(F.join("")),L=h,k):(F.push(P),R=P,k+1)}function ee(){return P==="."||/[eE]/.test(P)?(F.push(P),L=_,R=P,k+1):P==="x"&&F.length===1&&F[0]==="0"?(L=y,F.push(P),R=P,k+1):/[^\d]/.test(P)?(J(F.join("")),L=h,k):(F.push(P),R=P,k+1)}function ae(){return P==="f"&&(F.push(P),R=P,k+=1),/[eE]/.test(P)||(P==="-"||P==="+")&&/[eE]/.test(R)?(F.push(P),R=P,k+1):/[^\d]/.test(P)?(J(F.join("")),L=h,k):(F.push(P),R=P,k+1)}function xe(){if(/[^\d\w_]/.test(P)){var re=F.join("");return H[re]?L=x:G[re]?L=S:L=b,J(F.join("")),L=h,k}return F.push(P),R=P,k+1}}},3508(n,a,o){var s=o(6852);s=s.slice().filter(function(l){return!/^(gl\_|texture)/.test(l)}),n.exports=s.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"])},6852(n){n.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"]},7932(n,a,o){var s=o(620);n.exports=s.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"])},620(n){n.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"]},7827(n){n.exports=["<<=",">>=","++","--","<<",">>","<=",">=","==","!=","&&","||","+=","-=","*=","/=","%=","&=","^^","^=","|=","(",")","[","]",".","!","~","*","/","%","+","-","<",">","&","^","|","?",":","=",",",";","{","}"]},4905(n,a,o){var s=o(5874);n.exports=l;function l(u,c){var f=s(c),h=[];return h=h.concat(f(u)),h=h.concat(f(null)),h}},3236(n){n.exports=function(a){typeof a=="string"&&(a=[a]);for(var o=[].slice.call(arguments,1),s=[],l=0;l>1,m=-7,g=l?c-1:0,w=l?-1:1,_=o[s+g];for(g+=w,f=_&(1<<-m)-1,_>>=-m,m+=p;m>0;f=f*256+o[s+g],g+=w,m-=8);for(h=f&(1<<-m)-1,f>>=-m,m+=u;m>0;h=h*256+o[s+g],g+=w,m-=8);if(f===0)f=1-v;else{if(f===d)return h?NaN:(_?-1:1)*(1/0);h=h+Math.pow(2,u),f=f-v}return(_?-1:1)*h*Math.pow(2,f-u)},a.write=function(o,s,l,u,c,f){var h,p,d,v=f*8-c-1,m=(1<>1,w=c===23?Math.pow(2,-24)-Math.pow(2,-77):0,_=u?0:f-1,b=u?1:-1,S=s<0||s===0&&1/s<0?1:0;for(s=Math.abs(s),isNaN(s)||s===1/0?(p=isNaN(s)?1:0,h=m):(h=Math.floor(Math.log(s)/Math.LN2),s*(d=Math.pow(2,-h))<1&&(h--,d*=2),h+g>=1?s+=w/d:s+=w*Math.pow(2,1-g),s*d>=2&&(h++,d/=2),h+g>=m?(p=0,h=m):h+g>=1?(p=(s*d-1)*Math.pow(2,c),h=h+g):(p=s*Math.pow(2,g-1)*Math.pow(2,c),h=0));c>=8;o[l+_]=p&255,_+=b,p/=256,c-=8);for(h=h<0;o[l+_]=h&255,_+=b,h/=256,v-=8);o[l+_-b]|=S*128}},8954(n,a,o){"use strict";n.exports=g;var s=o(3250),l=o(6803).Fw;function u(w,_,b){this.vertices=w,this.adjacent=_,this.boundary=b,this.lastVisited=-1}u.prototype.flip=function(){var w=this.vertices[0];this.vertices[0]=this.vertices[1],this.vertices[1]=w;var _=this.adjacent[0];this.adjacent[0]=this.adjacent[1],this.adjacent[1]=_};function c(w,_,b){this.vertices=w,this.cell=_,this.index=b}function f(w,_){return l(w.vertices,_.vertices)}function h(w){return function(){var _=this.tuple;return w.apply(this,_)}}function p(w){var _=s[w+1];return _||(_=s),h(_)}var d=[];function v(w,_,b){this.dimension=w,this.vertices=_,this.simplices=b,this.interior=b.filter(function(T){return!T.boundary}),this.tuple=new Array(w+1);for(var S=0;S<=w;++S)this.tuple[S]=this.vertices[S];var x=d[w];x||(x=d[w]=p(w)),this.orient=x}var m=v.prototype;m.handleBoundaryDegeneracy=function(w,_){var b=this.dimension,S=this.vertices.length-1,x=this.tuple,T=this.vertices,A=[w];for(w.lastVisited=-S;A.length>0;){w=A.pop();for(var y=w.adjacent,E=0;E<=b;++E){var M=y[E];if(!(!M.boundary||M.lastVisited<=-S)){for(var C=M.vertices,k=0;k<=b;++k){var D=C[k];D<0?x[k]=_:x[k]=T[D]}var L=this.orient();if(L>0)return M;M.lastVisited=-S,L===0&&A.push(M)}}}return null},m.walk=function(w,_){var b=this.vertices.length-1,S=this.dimension,x=this.vertices,T=this.tuple,A=_?this.interior.length*Math.random()|0:this.interior.length-1,y=this.interior[A];e:for(;!y.boundary;){for(var E=y.vertices,M=y.adjacent,C=0;C<=S;++C)T[C]=x[E[C]];y.lastVisited=b;for(var C=0;C<=S;++C){var k=M[C];if(!(k.lastVisited>=b)){var D=T[C];T[C]=w;var L=this.orient();if(T[C]=D,L<0){y=k;continue e}else k.boundary?k.lastVisited=-b:k.lastVisited=b}}return}return y},m.addPeaks=function(w,_){var b=this.vertices.length-1,S=this.dimension,x=this.vertices,T=this.tuple,A=this.interior,y=this.simplices,E=[_];_.lastVisited=b,_.vertices[_.vertices.indexOf(-1)]=b,_.boundary=!1,A.push(_);for(var M=[];E.length>0;){var _=E.pop(),C=_.vertices,k=_.adjacent,D=C.indexOf(b);if(!(D<0)){for(var L=0;L<=S;++L)if(L!==D){var P=k[L];if(!(!P.boundary||P.lastVisited>=b)){var R=P.vertices;if(P.lastVisited!==-b){for(var F=0,I=0;I<=S;++I)R[I]<0?(F=I,T[I]=w):T[I]=x[R[I]];var B=this.orient();if(B>0){R[F]=b,P.boundary=!1,A.push(P),E.push(P),P.lastVisited=b;continue}else P.lastVisited=-b}var O=P.adjacent,$=C.slice(),Y=k.slice(),K=new u($,Y,!0);y.push(K);var j=O.indexOf(_);if(!(j<0)){O[j]=K,Y[D]=P,$[L]=-1,Y[L]=_,k[L]=K,K.flip();for(var I=0;I<=S;++I){var q=$[I];if(!(q<0||q===b)){for(var Q=new Array(S-1),U=0,V=0;V<=S;++V){var X=$[V];X<0||V===I||(Q[U++]=X)}M.push(new c(Q,K,I))}}}}}}}M.sort(f);for(var L=0;L+1=0?A[E++]=y[C]:M=C&1;if(M===(w&1)){var k=A[0];A[0]=A[1],A[1]=k}_.push(A)}}return _};function g(w,_){var b=w.length;if(b===0)throw new Error("Must have at least d+1 points");var S=w[0].length;if(b<=S)throw new Error("Must input at least d+1 points");var x=w.slice(0,S+1),T=s.apply(void 0,x);if(T===0)throw new Error("Input not in general position");for(var A=new Array(S+1),y=0;y<=S;++y)A[y]=y;T<0&&(A[0]=1,A[1]=0);for(var E=new u(A,new Array(S+1),!1),M=E.adjacent,C=new Array(S+2),y=0;y<=S;++y){for(var k=A.slice(),D=0;D<=S;++D)D===y&&(k[D]=-1);var L=k[0];k[0]=k[1],k[1]=L;var P=new u(k,new Array(S+1),!0);M[y]=P,C[y]=P}C[S+1]=E;for(var y=0;y<=S;++y)for(var k=M[y].vertices,R=M[y].adjacent,D=0;D<=S;++D){var F=k[D];if(F<0){R[D]=E;continue}for(var I=0;I<=S;++I)M[I].vertices.indexOf(F)<0&&(R[D]=M[I])}for(var B=new v(S,x,C),O=!!_,y=S+1;y3*(C+1)?v(this,M):this.left.insert(M):this.left=T([M]);else if(M[0]>this.mid)this.right?4*(this.right.count+1)>3*(C+1)?v(this,M):this.right.insert(M):this.right=T([M]);else{var k=s.ge(this.leftPoints,M,S),D=s.ge(this.rightPoints,M,x);this.leftPoints.splice(k,0,M),this.rightPoints.splice(D,0,M)}},h.remove=function(M){var C=this.count-this.leftPoints;if(M[1]3*(C-1))return m(this,M);var D=this.left.remove(M);return D===c?(this.left=null,this.count-=1,u):(D===u&&(this.count-=1),D)}else if(M[0]>this.mid){if(!this.right)return l;var L=this.left?this.left.count:0;if(4*L>3*(C-1))return m(this,M);var D=this.right.remove(M);return D===c?(this.right=null,this.count-=1,u):(D===u&&(this.count-=1),D)}else{if(this.count===1)return this.leftPoints[0]===M?c:l;if(this.leftPoints.length===1&&this.leftPoints[0]===M){if(this.left&&this.right){for(var P=this,R=this.left;R.right;)P=R,R=R.right;if(P===this)R.right=this.right;else{var F=this.left,D=this.right;P.count-=R.count,P.right=R.left,R.left=F,R.right=D}p(this,R),this.count=(this.left?this.left.count:0)+(this.right?this.right.count:0)+this.leftPoints.length}else this.left?p(this,this.left):p(this,this.right);return u}for(var F=s.ge(this.leftPoints,M,S);F=0&&M[D][1]>=C;--D){var L=k(M[D]);if(L)return L}}function _(M,C){for(var k=0;kthis.mid){if(this.right){var k=this.right.queryPoint(M,C);if(k)return k}return w(this.rightPoints,M,C)}else return _(this.leftPoints,C)},h.queryInterval=function(M,C,k){if(Mthis.mid&&this.right){var D=this.right.queryInterval(M,C,k);if(D)return D}return Cthis.mid?w(this.rightPoints,M,k):_(this.leftPoints,k)};function b(M,C){return M-C}function S(M,C){var k=M[0]-C[0];return k||M[1]-C[1]}function x(M,C){var k=M[1]-C[1];return k||M[0]-C[0]}function T(M){if(M.length===0)return null;for(var C=[],k=0;k>1],L=[],P=[],R=[],k=0;k1&&c.indexOf("Macintosh")!==-1&&c.indexOf("Safari")!==-1&&(f=!0),f}},5219(n){"use strict";n.exports=function(a){for(var o=a.length,s,l=0;l13)&&s!==32&&s!==133&&s!==160&&s!==5760&&s!==6158&&(s<8192||s>8205)&&s!==8232&&s!==8233&&s!==8239&&s!==8287&&s!==8288&&s!==12288&&s!==65279)return!1;return!0}},395(n){function a(o,s,l){return o*(1-l)+s*l}n.exports=a},2652(n,a,o){var s=o(4335),l=o(6864),u=o(1903),c=o(9921),f=o(7608),h=o(5665),p={length:o(1387),normalize:o(3536),dot:o(244),cross:o(5911)},d=l(),v=l(),m=[0,0,0,0],g=[[0,0,0],[0,0,0],[0,0,0]],w=[0,0,0];n.exports=function(T,A,y,E,M,C){if(A||(A=[0,0,0]),y||(y=[0,0,0]),E||(E=[0,0,0]),M||(M=[0,0,0,1]),C||(C=[0,0,0,1]),!s(d,T)||(u(v,d),v[3]=0,v[7]=0,v[11]=0,v[15]=1,Math.abs(c(v)<1e-8)))return!1;var k=d[3],D=d[7],L=d[11],P=d[12],R=d[13],F=d[14],I=d[15];if(k!==0||D!==0||L!==0){m[0]=k,m[1]=D,m[2]=L,m[3]=I;var B=f(v,v);if(!B)return!1;h(v,v),_(M,m,v)}else M[0]=M[1]=M[2]=0,M[3]=1;if(A[0]=P,A[1]=R,A[2]=F,b(g,d),y[0]=p.length(g[0]),p.normalize(g[0],g[0]),E[0]=p.dot(g[0],g[1]),S(g[1],g[1],g[0],1,-E[0]),y[1]=p.length(g[1]),p.normalize(g[1],g[1]),E[0]/=y[1],E[1]=p.dot(g[0],g[2]),S(g[2],g[2],g[0],1,-E[1]),E[2]=p.dot(g[1],g[2]),S(g[2],g[2],g[1],1,-E[2]),y[2]=p.length(g[2]),p.normalize(g[2],g[2]),E[1]/=y[2],E[2]/=y[2],p.cross(w,g[1],g[2]),p.dot(g[0],w)<0)for(var O=0;O<3;O++)y[O]*=-1,g[O][0]*=-1,g[O][1]*=-1,g[O][2]*=-1;return C[0]=.5*Math.sqrt(Math.max(1+g[0][0]-g[1][1]-g[2][2],0)),C[1]=.5*Math.sqrt(Math.max(1-g[0][0]+g[1][1]-g[2][2],0)),C[2]=.5*Math.sqrt(Math.max(1-g[0][0]-g[1][1]+g[2][2],0)),C[3]=.5*Math.sqrt(Math.max(1+g[0][0]+g[1][1]+g[2][2],0)),g[2][1]>g[1][2]&&(C[0]=-C[0]),g[0][2]>g[2][0]&&(C[1]=-C[1]),g[1][0]>g[0][1]&&(C[2]=-C[2]),!0};function _(x,T,A){var y=T[0],E=T[1],M=T[2],C=T[3];return x[0]=A[0]*y+A[4]*E+A[8]*M+A[12]*C,x[1]=A[1]*y+A[5]*E+A[9]*M+A[13]*C,x[2]=A[2]*y+A[6]*E+A[10]*M+A[14]*C,x[3]=A[3]*y+A[7]*E+A[11]*M+A[15]*C,x}function b(x,T){x[0][0]=T[0],x[0][1]=T[1],x[0][2]=T[2],x[1][0]=T[4],x[1][1]=T[5],x[1][2]=T[6],x[2][0]=T[8],x[2][1]=T[9],x[2][2]=T[10]}function S(x,T,A,y,E){x[0]=T[0]*y+A[0]*E,x[1]=T[1]*y+A[1]*E,x[2]=T[2]*y+A[2]*E}},4335(n){n.exports=function(o,s){var l=s[15];if(l===0)return!1;for(var u=1/l,c=0;c<16;c++)o[c]=s[c]*u;return!0}},7442(n,a,o){var s=o(6658),l=o(7182),u=o(2652),c=o(9921),f=o(8648),h=m(),p=m(),d=m();n.exports=v;function v(_,b,S,x){if(c(b)===0||c(S)===0)return!1;var T=u(b,h.translate,h.scale,h.skew,h.perspective,h.quaternion),A=u(S,p.translate,p.scale,p.skew,p.perspective,p.quaternion);return!T||!A?!1:(s(d.translate,h.translate,p.translate,x),s(d.skew,h.skew,p.skew,x),s(d.scale,h.scale,p.scale,x),s(d.perspective,h.perspective,p.perspective,x),f(d.quaternion,h.quaternion,p.quaternion,x),l(_,d.translate,d.scale,d.skew,d.perspective,d.quaternion),!0)}function m(){return{translate:g(),scale:g(1),skew:g(),perspective:w(),quaternion:w()}}function g(_){return[_||0,_||0,_||0]}function w(){return[0,0,0,1]}},7182(n,a,o){var s={identity:o(7894),translate:o(7656),multiply:o(6760),create:o(6864),scale:o(2504),fromRotationTranslation:o(6743)},l=s.create(),u=s.create();n.exports=function(f,h,p,d,v,m){return s.identity(f),s.fromRotationTranslation(f,m,h),f[3]=v[0],f[7]=v[1],f[11]=v[2],f[15]=v[3],s.identity(u),d[2]!==0&&(u[9]=d[2],s.multiply(f,f,u)),d[1]!==0&&(u[9]=0,u[8]=d[1],s.multiply(f,f,u)),d[0]!==0&&(u[8]=0,u[4]=d[0],s.multiply(f,f,u)),s.scale(f,f,p),f}},1811(n,a,o){"use strict";var s=o(2478),l=o(7442),u=o(7608),c=o(5567),f=o(2408),h=o(7089),p=o(6582),d=o(7656),v=o(2504),m=o(3536),g=[0,0,0];n.exports=S;function w(x){this._components=x.slice(),this._time=[0],this.prevMatrix=x.slice(),this.nextMatrix=x.slice(),this.computedMatrix=x.slice(),this.computedInverse=x.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 _=w.prototype;_.recalcMatrix=function(x){var T=this._time,A=s.le(T,x),y=this.computedMatrix;if(!(A<0)){var E=this._components;if(A===T.length-1)for(var M=16*A,C=0;C<16;++C)y[C]=E[M++];else{for(var k=T[A+1]-T[A],M=16*A,D=this.prevMatrix,L=!0,C=0;C<16;++C)D[C]=E[M++];for(var P=this.nextMatrix,C=0;C<16;++C)P[C]=E[M++],L=L&&D[C]===P[C];if(k<1e-6||L)for(var C=0;C<16;++C)y[C]=D[C];else l(y,D,P,(x-T[A])/k)}var R=this.computedUp;R[0]=y[1],R[1]=y[5],R[2]=y[9],m(R,R);var F=this.computedInverse;u(F,y);var I=this.computedEye,B=F[15];I[0]=F[12]/B,I[1]=F[13]/B,I[2]=F[14]/B;for(var O=this.computedCenter,$=Math.exp(this.computedRadius[0]),C=0;C<3;++C)O[C]=I[C]-y[2+4*C]*$}},_.idle=function(x){if(!(x1&&s(u[p[g-2]],u[p[g-1]],m)<=0;)g-=1,p.pop();for(p.push(v),g=d.length;g>1&&s(u[d[g-2]],u[d[g-1]],m)>=0;)g-=1,d.pop();d.push(v)}for(var w=new Array(d.length+p.length-2),_=0,f=0,b=p.length;f0;--S)w[_++]=d[S];return w}},351(n,a,o){"use strict";n.exports=l;var s=o(4687);function l(u,c){c||(c=u,u=window);var f=0,h=0,p=0,d={shift:!1,alt:!1,control:!1,meta:!1},v=!1;function m(M){var C=!1;return"altKey"in M&&(C=C||M.altKey!==d.alt,d.alt=!!M.altKey),"shiftKey"in M&&(C=C||M.shiftKey!==d.shift,d.shift=!!M.shiftKey),"ctrlKey"in M&&(C=C||M.ctrlKey!==d.control,d.control=!!M.ctrlKey),"metaKey"in M&&(C=C||M.metaKey!==d.meta,d.meta=!!M.metaKey),C}function g(M,C){var k=s.x(C),D=s.y(C);"buttons"in C&&(M=C.buttons|0),(M!==f||k!==h||D!==p||m(C))&&(f=M|0,h=k||0,p=D||0,c&&c(f,h,p,d))}function w(M){g(0,M)}function _(){(f||h||p||d.shift||d.alt||d.meta||d.control)&&(h=p=0,f=0,d.shift=d.alt=d.control=d.meta=!1,c&&c(0,0,0,d))}function b(M){m(M)&&c&&c(f,h,p,d)}function S(M){s.buttons(M)===0?g(0,M):g(f,M)}function x(M){g(f|s.buttons(M),M)}function T(M){g(f&~s.buttons(M),M)}function A(){v||(v=!0,u.addEventListener("mousemove",S),u.addEventListener("mousedown",x),u.addEventListener("mouseup",T),u.addEventListener("mouseleave",w),u.addEventListener("mouseenter",w),u.addEventListener("mouseout",w),u.addEventListener("mouseover",w),u.addEventListener("blur",_),u.addEventListener("keyup",b),u.addEventListener("keydown",b),u.addEventListener("keypress",b),u!==window&&(window.addEventListener("blur",_),window.addEventListener("keyup",b),window.addEventListener("keydown",b),window.addEventListener("keypress",b)))}function y(){v&&(v=!1,u.removeEventListener("mousemove",S),u.removeEventListener("mousedown",x),u.removeEventListener("mouseup",T),u.removeEventListener("mouseleave",w),u.removeEventListener("mouseenter",w),u.removeEventListener("mouseout",w),u.removeEventListener("mouseover",w),u.removeEventListener("blur",_),u.removeEventListener("keyup",b),u.removeEventListener("keydown",b),u.removeEventListener("keypress",b),u!==window&&(window.removeEventListener("blur",_),window.removeEventListener("keyup",b),window.removeEventListener("keydown",b),window.removeEventListener("keypress",b)))}A();var E={element:u};return Object.defineProperties(E,{enabled:{get:function(){return v},set:function(M){M?A():y()},enumerable:!0},buttons:{get:function(){return f},enumerable:!0},x:{get:function(){return h},enumerable:!0},y:{get:function(){return p},enumerable:!0},mods:{get:function(){return d},enumerable:!0}}),E}},24(n){var a={left:0,top:0};n.exports=o;function o(l,u,c){u=u||l.currentTarget||l.srcElement,Array.isArray(c)||(c=[0,0]);var f=l.clientX||0,h=l.clientY||0,p=s(u);return c[0]=f-p.left,c[1]=h-p.top,c}function s(l){return l===window||l===document||l===document.body?a:l.getBoundingClientRect()}},4687(n,a){"use strict";function o(c){if(typeof c=="object"){if("buttons"in c)return c.buttons;if("which"in c){var f=c.which;if(f===2)return 4;if(f===3)return 2;if(f>0)return 1<=0)return 1<0){if(Y=1,q[U++]=d(A[C],_,b,S),C+=B,x>0)for($=1,k=A[C],V=q[U]=d(k,_,b,S),H=q[U+X],ue=q[U+J],_e=q[U+ge],(V!==H||V!==ue||V!==_e)&&(L=A[C+D],R=A[C+P],I=A[C+F],h($,Y,k,L,R,I,V,H,ue,_e,_,b,S),he=Q[U]=K++),U+=1,C+=B,$=2;$0)for($=1,k=A[C],V=q[U]=d(k,_,b,S),H=q[U+X],ue=q[U+J],_e=q[U+ge],(V!==H||V!==ue||V!==_e)&&(L=A[C+D],R=A[C+P],I=A[C+F],h($,Y,k,L,R,I,V,H,ue,_e,_,b,S),he=Q[U]=K++,_e!==ue&&p(Q[U+J],he,R,I,ue,_e,_,b,S)),U+=1,C+=B,$=2;$0){if($=1,q[U++]=d(A[C],_,b,S),C+=B,T>0)for(Y=1,k=A[C],V=q[U]=d(k,_,b,S),ue=q[U+J],H=q[U+X],_e=q[U+ge],(V!==ue||V!==H||V!==_e)&&(L=A[C+D],R=A[C+P],I=A[C+F],h($,Y,k,L,R,I,V,ue,H,_e,_,b,S),he=Q[U]=K++),U+=1,C+=B,Y=2;Y0)for(Y=1,k=A[C],V=q[U]=d(k,_,b,S),ue=q[U+J],H=q[U+X],_e=q[U+ge],(V!==ue||V!==H||V!==_e)&&(L=A[C+D],R=A[C+P],I=A[C+F],h($,Y,k,L,R,I,V,ue,H,_e,_,b,S),he=Q[U]=K++,_e!==ue&&p(Q[U+J],he,I,L,_e,ue,_,b,S)),U+=1,C+=B,Y=2;Y 0"),typeof f.vertex!="function"&&h("Must specify vertex creation function"),typeof f.cell!="function"&&h("Must specify cell creation function"),typeof f.phase!="function"&&h("Must specify phase function");for(var m=f.getters||[],g=new Array(d),w=0;w=0?g[w]=!0:g[w]=!1;return u(f.vertex,f.cell,f.phase,v,p,g)}},6199(n,a,o){"use strict";var s=o(1338),l={zero:function(S,x,T,A){var y=S[0],E=T[0];A|=0;var M=0,C=E;for(M=0;M2&&M[1]>2&&A(E.pick(-1,-1).lo(1,1).hi(M[0]-2,M[1]-2),y.pick(-1,-1,0).lo(1,1).hi(M[0]-2,M[1]-2),y.pick(-1,-1,1).lo(1,1).hi(M[0]-2,M[1]-2)),M[1]>2&&(T(E.pick(0,-1).lo(1).hi(M[1]-2),y.pick(0,-1,1).lo(1).hi(M[1]-2)),x(y.pick(0,-1,0).lo(1).hi(M[1]-2))),M[1]>2&&(T(E.pick(M[0]-1,-1).lo(1).hi(M[1]-2),y.pick(M[0]-1,-1,1).lo(1).hi(M[1]-2)),x(y.pick(M[0]-1,-1,0).lo(1).hi(M[1]-2))),M[0]>2&&(T(E.pick(-1,0).lo(1).hi(M[0]-2),y.pick(-1,0,0).lo(1).hi(M[0]-2)),x(y.pick(-1,0,1).lo(1).hi(M[0]-2))),M[0]>2&&(T(E.pick(-1,M[1]-1).lo(1).hi(M[0]-2),y.pick(-1,M[1]-1,0).lo(1).hi(M[0]-2)),x(y.pick(-1,M[1]-1,1).lo(1).hi(M[0]-2))),y.set(0,0,0,0),y.set(0,0,1,0),y.set(M[0]-1,0,0,0),y.set(M[0]-1,0,1,0),y.set(0,M[1]-1,0,0),y.set(0,M[1]-1,1,0),y.set(M[0]-1,M[1]-1,0,0),y.set(M[0]-1,M[1]-1,1,0),y}}function b(S){var x=S.join(),M=d[x];if(M)return M;for(var T=S.length,A=[m,g],y=1;y<=T;++y)A.push(w(y));var E=_,M=E.apply(void 0,A);return d[x]=M,M}n.exports=function(x,T,A){if(Array.isArray(A)||(typeof A=="string"?A=s(T.dimension,A):A=s(T.dimension,"clamp")),T.size===0)return x;if(T.dimension===0)return x.set(0),x;var y=b(A);return y(x,T)}},4317(n){"use strict";function a(c,f){var h=Math.floor(f),p=f-h,d=0<=h&&h0;){R<64?(x=R,R=0):(x=64,R-=64);for(var F=d[1]|0;F>0;){F<64?(T=F,F=0):(T=64,F-=64),g=L+R*y+F*E,b=P+R*C+F*k;var I=0,B=0,O=0,$=M,Y=y-A*M,K=E-x*y,j=D,q=C-A*D,Q=k-x*C;for(O=0;O0;){k<64?(x=k,k=0):(x=64,k-=64);for(var D=d[0]|0;D>0;){D<64?(S=D,D=0):(S=64,D-=64),g=M+k*A+D*T,b=C+k*E+D*y;var L=0,P=0,R=A,F=T-x*A,I=E,B=y-x*E;for(P=0;P0;){P<64?(T=P,P=0):(T=64,P-=64);for(var R=d[0]|0;R>0;){R<64?(S=R,R=0):(S=64,R-=64);for(var F=d[1]|0;F>0;){F<64?(x=F,F=0):(x=64,F-=64),g=D+P*E+R*A+F*y,b=L+P*k+R*M+F*C;var I=0,B=0,O=0,$=E,Y=A-T*E,K=y-S*A,j=k,q=M-T*k,Q=C-S*M;for(O=0;Ow;){I=0,B=L-x;t:for(R=0;R$)break t;B+=M,I+=C}for(I=L,B=L-x,R=0;R>1,F=R-D,I=R+D,B=L,O=F,$=R,Y=I,K=P,j=_+1,q=b-1,Q=!0,U,V,X,G,H,J,te,ue,ge,ke=0,_e=0,he=0,oe,Me,ye,ce,ee,ae,xe,re,pe,we,Fe,Ee,Ce,be,Ie,Oe,Qe=E,et=m(Qe),bt=m(Qe);Me=T*B,ye=T*O,Oe=x;e:for(oe=0;oe0){V=B,B=O,O=V;break e}if(he<0)break e;Oe+=C}Me=T*Y,ye=T*K,Oe=x;e:for(oe=0;oe0){V=Y,Y=K,K=V;break e}if(he<0)break e;Oe+=C}Me=T*B,ye=T*$,Oe=x;e:for(oe=0;oe0){V=B,B=$,$=V;break e}if(he<0)break e;Oe+=C}Me=T*O,ye=T*$,Oe=x;e:for(oe=0;oe0){V=O,O=$,$=V;break e}if(he<0)break e;Oe+=C}Me=T*B,ye=T*Y,Oe=x;e:for(oe=0;oe0){V=B,B=Y,Y=V;break e}if(he<0)break e;Oe+=C}Me=T*$,ye=T*Y,Oe=x;e:for(oe=0;oe0){V=$,$=Y,Y=V;break e}if(he<0)break e;Oe+=C}Me=T*O,ye=T*K,Oe=x;e:for(oe=0;oe0){V=O,O=K,K=V;break e}if(he<0)break e;Oe+=C}Me=T*O,ye=T*$,Oe=x;e:for(oe=0;oe0){V=O,O=$,$=V;break e}if(he<0)break e;Oe+=C}Me=T*Y,ye=T*K,Oe=x;e:for(oe=0;oe0){V=Y,Y=K,K=V;break e}if(he<0)break e;Oe+=C}for(Me=T*B,ye=T*O,ce=T*$,ee=T*Y,ae=T*K,xe=T*L,re=T*R,pe=T*P,Ie=0,Oe=x,oe=0;oe0)q--;else if(he<0){for(Me=T*J,ye=T*j,ce=T*q,Oe=x,oe=0;oe0)for(;;){te=x+q*T,Ie=0;e:for(oe=0;oe0){if(--qP){e:for(;;){for(te=x+j*T,Ie=0,Oe=x,oe=0;oe1&&w?b(g,w[0],w[1]):b(g)}var p={"uint32,1,0":function(v,m){return function(g){var w=g.data,_=g.offset|0,b=g.shape,S=g.stride,x=S[0]|0,T=b[0]|0,A=S[1]|0,y=b[1]|0,E=A,M=A,C=1;T<=32?v(0,T-1,w,_,x,A,T,y,E,M,C):m(0,T-1,w,_,x,A,T,y,E,M,C)}}};function d(v,m){var g=[m,v].join(","),w=p[g],_=c(v,m),b=h(v,m,_);return w(_,b)}n.exports=d},446(n,a,o){"use strict";var s=o(7640),l={};function u(c){var f=c.order,h=c.dtype,p=[f,h],d=p.join(":"),v=l[d];return v||(l[d]=v=s(f,h)),v(c),c}n.exports=u},9618(n,a,o){var s=o(7163),l=typeof Float64Array!="undefined";function u(m,g){return m[0]-g[0]}function c(){var m=this.stride,g=new Array(m.length),w;for(w=0;w=0&&(A=x|0,T+=E*A,y-=A),new _(this.data,y,E,T)},b.step=function(x){var T=this.shape[0],A=this.stride[0],y=this.offset,E=0,M=Math.ceil;return typeof x=="number"&&(E=x|0,E<0?(y+=A*(T-1),T=M(-T/E)):T=M(T/E),A*=E),new _(this.data,T,A,y)},b.transpose=function(x){x=x===void 0?0:x|0;var T=this.shape,A=this.stride;return new _(this.data,T[x],A[x],this.offset)},b.pick=function(x){var T=[],A=[],y=this.offset;typeof x=="number"&&x>=0?y=y+this.stride[0]*x|0:(T.push(this.shape[0]),A.push(this.stride[0]));var E=g[T.length+1];return E(this.data,T,A,y)},function(x,T,A,y){return new _(x,T[0],A[0],y)}},2:function(m,g,w){function _(S,x,T,A,y,E){this.data=S,this.shape=[x,T],this.stride=[A,y],this.offset=E|0}var b=_.prototype;return b.dtype=m,b.dimension=2,Object.defineProperty(b,"size",{get:function(){return this.shape[0]*this.shape[1]}}),Object.defineProperty(b,"order",{get:function(){return Math.abs(this.stride[0])>Math.abs(this.stride[1])?[1,0]:[0,1]}}),b.set=function(x,T,A){return m==="generic"?this.data.set(this.offset+this.stride[0]*x+this.stride[1]*T,A):this.data[this.offset+this.stride[0]*x+this.stride[1]*T]=A},b.get=function(x,T){return m==="generic"?this.data.get(this.offset+this.stride[0]*x+this.stride[1]*T):this.data[this.offset+this.stride[0]*x+this.stride[1]*T]},b.index=function(x,T){return this.offset+this.stride[0]*x+this.stride[1]*T},b.hi=function(x,T){return new _(this.data,typeof x!="number"||x<0?this.shape[0]:x|0,typeof T!="number"||T<0?this.shape[1]:T|0,this.stride[0],this.stride[1],this.offset)},b.lo=function(x,T){var A=this.offset,y=0,E=this.shape[0],M=this.shape[1],C=this.stride[0],k=this.stride[1];return typeof x=="number"&&x>=0&&(y=x|0,A+=C*y,E-=y),typeof T=="number"&&T>=0&&(y=T|0,A+=k*y,M-=y),new _(this.data,E,M,C,k,A)},b.step=function(x,T){var A=this.shape[0],y=this.shape[1],E=this.stride[0],M=this.stride[1],C=this.offset,k=0,D=Math.ceil;return typeof x=="number"&&(k=x|0,k<0?(C+=E*(A-1),A=D(-A/k)):A=D(A/k),E*=k),typeof T=="number"&&(k=T|0,k<0?(C+=M*(y-1),y=D(-y/k)):y=D(y/k),M*=k),new _(this.data,A,y,E,M,C)},b.transpose=function(x,T){x=x===void 0?0:x|0,T=T===void 0?1:T|0;var A=this.shape,y=this.stride;return new _(this.data,A[x],A[T],y[x],y[T],this.offset)},b.pick=function(x,T){var A=[],y=[],E=this.offset;typeof x=="number"&&x>=0?E=E+this.stride[0]*x|0:(A.push(this.shape[0]),y.push(this.stride[0])),typeof T=="number"&&T>=0?E=E+this.stride[1]*T|0:(A.push(this.shape[1]),y.push(this.stride[1]));var M=g[A.length+1];return M(this.data,A,y,E)},function(x,T,A,y){return new _(x,T[0],T[1],A[0],A[1],y)}},3:function(m,g,w){function _(S,x,T,A,y,E,M,C){this.data=S,this.shape=[x,T,A],this.stride=[y,E,M],this.offset=C|0}var b=_.prototype;return b.dtype=m,b.dimension=3,Object.defineProperty(b,"size",{get:function(){return this.shape[0]*this.shape[1]*this.shape[2]}}),Object.defineProperty(b,"order",{get:function(){var x=Math.abs(this.stride[0]),T=Math.abs(this.stride[1]),A=Math.abs(this.stride[2]);return x>T?T>A?[2,1,0]:x>A?[1,2,0]:[1,0,2]:x>A?[2,0,1]:A>T?[0,1,2]:[0,2,1]}}),b.set=function(x,T,A,y){return m==="generic"?this.data.set(this.offset+this.stride[0]*x+this.stride[1]*T+this.stride[2]*A,y):this.data[this.offset+this.stride[0]*x+this.stride[1]*T+this.stride[2]*A]=y},b.get=function(x,T,A){return m==="generic"?this.data.get(this.offset+this.stride[0]*x+this.stride[1]*T+this.stride[2]*A):this.data[this.offset+this.stride[0]*x+this.stride[1]*T+this.stride[2]*A]},b.index=function(x,T,A){return this.offset+this.stride[0]*x+this.stride[1]*T+this.stride[2]*A},b.hi=function(x,T,A){return new _(this.data,typeof x!="number"||x<0?this.shape[0]:x|0,typeof T!="number"||T<0?this.shape[1]:T|0,typeof A!="number"||A<0?this.shape[2]:A|0,this.stride[0],this.stride[1],this.stride[2],this.offset)},b.lo=function(x,T,A){var y=this.offset,E=0,M=this.shape[0],C=this.shape[1],k=this.shape[2],D=this.stride[0],L=this.stride[1],P=this.stride[2];return typeof x=="number"&&x>=0&&(E=x|0,y+=D*E,M-=E),typeof T=="number"&&T>=0&&(E=T|0,y+=L*E,C-=E),typeof A=="number"&&A>=0&&(E=A|0,y+=P*E,k-=E),new _(this.data,M,C,k,D,L,P,y)},b.step=function(x,T,A){var y=this.shape[0],E=this.shape[1],M=this.shape[2],C=this.stride[0],k=this.stride[1],D=this.stride[2],L=this.offset,P=0,R=Math.ceil;return typeof x=="number"&&(P=x|0,P<0?(L+=C*(y-1),y=R(-y/P)):y=R(y/P),C*=P),typeof T=="number"&&(P=T|0,P<0?(L+=k*(E-1),E=R(-E/P)):E=R(E/P),k*=P),typeof A=="number"&&(P=A|0,P<0?(L+=D*(M-1),M=R(-M/P)):M=R(M/P),D*=P),new _(this.data,y,E,M,C,k,D,L)},b.transpose=function(x,T,A){x=x===void 0?0:x|0,T=T===void 0?1:T|0,A=A===void 0?2:A|0;var y=this.shape,E=this.stride;return new _(this.data,y[x],y[T],y[A],E[x],E[T],E[A],this.offset)},b.pick=function(x,T,A){var y=[],E=[],M=this.offset;typeof x=="number"&&x>=0?M=M+this.stride[0]*x|0:(y.push(this.shape[0]),E.push(this.stride[0])),typeof T=="number"&&T>=0?M=M+this.stride[1]*T|0:(y.push(this.shape[1]),E.push(this.stride[1])),typeof A=="number"&&A>=0?M=M+this.stride[2]*A|0:(y.push(this.shape[2]),E.push(this.stride[2]));var C=g[y.length+1];return C(this.data,y,E,M)},function(x,T,A,y){return new _(x,T[0],T[1],T[2],A[0],A[1],A[2],y)}},4:function(m,g,w){function _(S,x,T,A,y,E,M,C,k,D){this.data=S,this.shape=[x,T,A,y],this.stride=[E,M,C,k],this.offset=D|0}var b=_.prototype;return b.dtype=m,b.dimension=4,Object.defineProperty(b,"size",{get:function(){return this.shape[0]*this.shape[1]*this.shape[2]*this.shape[3]}}),Object.defineProperty(b,"order",{get:w}),b.set=function(x,T,A,y,E){return m==="generic"?this.data.set(this.offset+this.stride[0]*x+this.stride[1]*T+this.stride[2]*A+this.stride[3]*y,E):this.data[this.offset+this.stride[0]*x+this.stride[1]*T+this.stride[2]*A+this.stride[3]*y]=E},b.get=function(x,T,A,y){return m==="generic"?this.data.get(this.offset+this.stride[0]*x+this.stride[1]*T+this.stride[2]*A+this.stride[3]*y):this.data[this.offset+this.stride[0]*x+this.stride[1]*T+this.stride[2]*A+this.stride[3]*y]},b.index=function(x,T,A,y){return this.offset+this.stride[0]*x+this.stride[1]*T+this.stride[2]*A+this.stride[3]*y},b.hi=function(x,T,A,y){return new _(this.data,typeof x!="number"||x<0?this.shape[0]:x|0,typeof T!="number"||T<0?this.shape[1]:T|0,typeof A!="number"||A<0?this.shape[2]:A|0,typeof y!="number"||y<0?this.shape[3]:y|0,this.stride[0],this.stride[1],this.stride[2],this.stride[3],this.offset)},b.lo=function(x,T,A,y){var E=this.offset,M=0,C=this.shape[0],k=this.shape[1],D=this.shape[2],L=this.shape[3],P=this.stride[0],R=this.stride[1],F=this.stride[2],I=this.stride[3];return typeof x=="number"&&x>=0&&(M=x|0,E+=P*M,C-=M),typeof T=="number"&&T>=0&&(M=T|0,E+=R*M,k-=M),typeof A=="number"&&A>=0&&(M=A|0,E+=F*M,D-=M),typeof y=="number"&&y>=0&&(M=y|0,E+=I*M,L-=M),new _(this.data,C,k,D,L,P,R,F,I,E)},b.step=function(x,T,A,y){var E=this.shape[0],M=this.shape[1],C=this.shape[2],k=this.shape[3],D=this.stride[0],L=this.stride[1],P=this.stride[2],R=this.stride[3],F=this.offset,I=0,B=Math.ceil;return typeof x=="number"&&(I=x|0,I<0?(F+=D*(E-1),E=B(-E/I)):E=B(E/I),D*=I),typeof T=="number"&&(I=T|0,I<0?(F+=L*(M-1),M=B(-M/I)):M=B(M/I),L*=I),typeof A=="number"&&(I=A|0,I<0?(F+=P*(C-1),C=B(-C/I)):C=B(C/I),P*=I),typeof y=="number"&&(I=y|0,I<0?(F+=R*(k-1),k=B(-k/I)):k=B(k/I),R*=I),new _(this.data,E,M,C,k,D,L,P,R,F)},b.transpose=function(x,T,A,y){x=x===void 0?0:x|0,T=T===void 0?1:T|0,A=A===void 0?2:A|0,y=y===void 0?3:y|0;var E=this.shape,M=this.stride;return new _(this.data,E[x],E[T],E[A],E[y],M[x],M[T],M[A],M[y],this.offset)},b.pick=function(x,T,A,y){var E=[],M=[],C=this.offset;typeof x=="number"&&x>=0?C=C+this.stride[0]*x|0:(E.push(this.shape[0]),M.push(this.stride[0])),typeof T=="number"&&T>=0?C=C+this.stride[1]*T|0:(E.push(this.shape[1]),M.push(this.stride[1])),typeof A=="number"&&A>=0?C=C+this.stride[2]*A|0:(E.push(this.shape[2]),M.push(this.stride[2])),typeof y=="number"&&y>=0?C=C+this.stride[3]*y|0:(E.push(this.shape[3]),M.push(this.stride[3]));var k=g[E.length+1];return k(this.data,E,M,C)},function(x,T,A,y){return new _(x,T[0],T[1],T[2],T[3],A[0],A[1],A[2],A[3],y)}},5:function(g,w,_){function b(x,T,A,y,E,M,C,k,D,L,P,R){this.data=x,this.shape=[T,A,y,E,M],this.stride=[C,k,D,L,P],this.offset=R|0}var S=b.prototype;return S.dtype=g,S.dimension=5,Object.defineProperty(S,"size",{get:function(){return this.shape[0]*this.shape[1]*this.shape[2]*this.shape[3]*this.shape[4]}}),Object.defineProperty(S,"order",{get:_}),S.set=function(T,A,y,E,M,C){return g==="generic"?this.data.set(this.offset+this.stride[0]*T+this.stride[1]*A+this.stride[2]*y+this.stride[3]*E+this.stride[4]*M,C):this.data[this.offset+this.stride[0]*T+this.stride[1]*A+this.stride[2]*y+this.stride[3]*E+this.stride[4]*M]=C},S.get=function(T,A,y,E,M){return g==="generic"?this.data.get(this.offset+this.stride[0]*T+this.stride[1]*A+this.stride[2]*y+this.stride[3]*E+this.stride[4]*M):this.data[this.offset+this.stride[0]*T+this.stride[1]*A+this.stride[2]*y+this.stride[3]*E+this.stride[4]*M]},S.index=function(T,A,y,E,M){return this.offset+this.stride[0]*T+this.stride[1]*A+this.stride[2]*y+this.stride[3]*E+this.stride[4]*M},S.hi=function(T,A,y,E,M){return new b(this.data,typeof T!="number"||T<0?this.shape[0]:T|0,typeof A!="number"||A<0?this.shape[1]:A|0,typeof y!="number"||y<0?this.shape[2]:y|0,typeof E!="number"||E<0?this.shape[3]:E|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)},S.lo=function(T,A,y,E,M){var C=this.offset,k=0,D=this.shape[0],L=this.shape[1],P=this.shape[2],R=this.shape[3],F=this.shape[4],I=this.stride[0],B=this.stride[1],O=this.stride[2],$=this.stride[3],Y=this.stride[4];return typeof T=="number"&&T>=0&&(k=T|0,C+=I*k,D-=k),typeof A=="number"&&A>=0&&(k=A|0,C+=B*k,L-=k),typeof y=="number"&&y>=0&&(k=y|0,C+=O*k,P-=k),typeof E=="number"&&E>=0&&(k=E|0,C+=$*k,R-=k),typeof M=="number"&&M>=0&&(k=M|0,C+=Y*k,F-=k),new b(this.data,D,L,P,R,F,I,B,O,$,Y,C)},S.step=function(T,A,y,E,M){var C=this.shape[0],k=this.shape[1],D=this.shape[2],L=this.shape[3],P=this.shape[4],R=this.stride[0],F=this.stride[1],I=this.stride[2],B=this.stride[3],O=this.stride[4],$=this.offset,Y=0,K=Math.ceil;return typeof T=="number"&&(Y=T|0,Y<0?($+=R*(C-1),C=K(-C/Y)):C=K(C/Y),R*=Y),typeof A=="number"&&(Y=A|0,Y<0?($+=F*(k-1),k=K(-k/Y)):k=K(k/Y),F*=Y),typeof y=="number"&&(Y=y|0,Y<0?($+=I*(D-1),D=K(-D/Y)):D=K(D/Y),I*=Y),typeof E=="number"&&(Y=E|0,Y<0?($+=B*(L-1),L=K(-L/Y)):L=K(L/Y),B*=Y),typeof M=="number"&&(Y=M|0,Y<0?($+=O*(P-1),P=K(-P/Y)):P=K(P/Y),O*=Y),new b(this.data,C,k,D,L,P,R,F,I,B,O,$)},S.transpose=function(T,A,y,E,M){T=T===void 0?0:T|0,A=A===void 0?1:A|0,y=y===void 0?2:y|0,E=E===void 0?3:E|0,M=M===void 0?4:M|0;var C=this.shape,k=this.stride;return new b(this.data,C[T],C[A],C[y],C[E],C[M],k[T],k[A],k[y],k[E],k[M],this.offset)},S.pick=function(T,A,y,E,M){var C=[],k=[],D=this.offset;typeof T=="number"&&T>=0?D=D+this.stride[0]*T|0:(C.push(this.shape[0]),k.push(this.stride[0])),typeof A=="number"&&A>=0?D=D+this.stride[1]*A|0:(C.push(this.shape[1]),k.push(this.stride[1])),typeof y=="number"&&y>=0?D=D+this.stride[2]*y|0:(C.push(this.shape[2]),k.push(this.stride[2])),typeof E=="number"&&E>=0?D=D+this.stride[3]*E|0:(C.push(this.shape[3]),k.push(this.stride[3])),typeof M=="number"&&M>=0?D=D+this.stride[4]*M|0:(C.push(this.shape[4]),k.push(this.stride[4]));var L=w[C.length+1];return L(this.data,C,k,D)},function(T,A,y,E){return new b(T,A[0],A[1],A[2],A[3],A[4],y[0],y[1],y[2],y[3],y[4],E)}}};function h(m,g){var w=g===-1?"T":String(g),_=f[w];return g===-1?_(m):g===0?_(m,d[m][0]):_(m,d[m],c)}function p(m){if(s(m))return"buffer";if(l)switch(Object.prototype.toString.call(m)){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(m)?"array":"generic"}var d={generic:[],buffer:[],array:[],float32:[],float64:[],int8:[],int16:[],int32:[],uint8_clamped:[],uint8:[],uint16:[],uint32:[],bigint64:[],biguint64:[]};function v(m,g,w,_){if(m===void 0){var y=d.array[0];return y([])}else typeof m=="number"&&(m=[m]);g===void 0&&(g=[m.length]);var b=g.length;if(w===void 0){w=new Array(b);for(var S=b-1,x=1;S>=0;--S)w[S]=x,x*=g[S]}if(_===void 0){_=0;for(var S=0;S>>0;n.exports=c;function c(f,h){if(isNaN(f)||isNaN(h))return NaN;if(f===h)return f;if(f===0)return h<0?-l:l;var p=s.hi(f),d=s.lo(f);return h>f==f>0?d===u?(p+=1,d=0):d+=1:d===0?(d=u,p-=1):d-=1,s.pack(d,p)}},8406(n,a){var o=1e-6,s=1e-6;a.vertexNormals=function(l,u,c){for(var f=u.length,h=new Array(f),p=c===void 0?o:c,d=0;dp)for(var C=h[g],k=1/Math.sqrt(A*E),M=0;M<3;++M){var D=(M+1)%3,L=(M+2)%3;C[M]+=k*(y[D]*T[L]-y[L]*T[D])}}for(var d=0;dp)for(var k=1/Math.sqrt(P),M=0;M<3;++M)C[M]*=k;else for(var M=0;M<3;++M)C[M]=0}return h},a.faceNormals=function(l,u,c){for(var f=l.length,h=new Array(f),p=c===void 0?s:c,d=0;dp?S=1/Math.sqrt(S):S=0;for(var g=0;g<3;++g)b[g]*=S;h[d]=b}return h}},4081(n){"use strict";n.exports=a;function a(o,s,l,u,c,f,h,p,d,v){var m=s+f+v;if(g>0){var g=Math.sqrt(m+1);o[0]=.5*(h-d)/g,o[1]=.5*(p-u)/g,o[2]=.5*(l-f)/g,o[3]=.5*g}else{var w=Math.max(s,f,v),g=Math.sqrt(2*w-m+1);s>=w?(o[0]=.5*g,o[1]=.5*(c+l)/g,o[2]=.5*(p+u)/g,o[3]=.5*(h-d)/g):f>=w?(o[0]=.5*(l+c)/g,o[1]=.5*g,o[2]=.5*(d+h)/g,o[3]=.5*(p-u)/g):(o[0]=.5*(u+p)/g,o[1]=.5*(h+d)/g,o[2]=.5*g,o[3]=.5*(l-c)/g)}return o}},9977(n,a,o){"use strict";n.exports=g;var s=o(9215),l=o(6582),u=o(7399),c=o(7608),f=o(4081);function h(w,_,b){return Math.sqrt(Math.pow(w,2)+Math.pow(_,2)+Math.pow(b,2))}function p(w,_,b,S){return Math.sqrt(Math.pow(w,2)+Math.pow(_,2)+Math.pow(b,2)+Math.pow(S,2))}function d(w,_){var b=_[0],S=_[1],x=_[2],T=_[3],A=p(b,S,x,T);A>1e-6?(w[0]=b/A,w[1]=S/A,w[2]=x/A,w[3]=T/A):(w[0]=w[1]=w[2]=0,w[3]=1)}function v(w,_,b){this.radius=s([b]),this.center=s(_),this.rotation=s(w),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 m=v.prototype;m.lastT=function(){return Math.max(this.radius.lastT(),this.center.lastT(),this.rotation.lastT())},m.recalcMatrix=function(w){this.radius.curve(w),this.center.curve(w),this.rotation.curve(w);var _=this.computedRotation;d(_,_);var b=this.computedMatrix;u(b,_);var S=this.computedCenter,x=this.computedEye,T=this.computedUp,A=Math.exp(this.computedRadius[0]);x[0]=S[0]+A*b[2],x[1]=S[1]+A*b[6],x[2]=S[2]+A*b[10],T[0]=b[1],T[1]=b[5],T[2]=b[9];for(var y=0;y<3;++y){for(var E=0,M=0;M<3;++M)E+=b[y+4*M]*x[M];b[12+y]=-E}},m.getMatrix=function(w,_){this.recalcMatrix(w);var b=this.computedMatrix;if(_){for(var S=0;S<16;++S)_[S]=b[S];return _}return b},m.idle=function(w){this.center.idle(w),this.radius.idle(w),this.rotation.idle(w)},m.flush=function(w){this.center.flush(w),this.radius.flush(w),this.rotation.flush(w)},m.pan=function(w,_,b,S){_=_||0,b=b||0,S=S||0,this.recalcMatrix(w);var x=this.computedMatrix,T=x[1],A=x[5],y=x[9],E=h(T,A,y);T/=E,A/=E,y/=E;var M=x[0],C=x[4],k=x[8],D=M*T+C*A+k*y;M-=T*D,C-=A*D,k-=y*D;var L=h(M,C,k);M/=L,C/=L,k/=L;var P=x[2],R=x[6],F=x[10],I=P*T+R*A+F*y,B=P*M+R*C+F*k;P-=I*T+B*M,R-=I*A+B*C,F-=I*y+B*k;var O=h(P,R,F);P/=O,R/=O,F/=O;var $=M*_+T*b,Y=C*_+A*b,K=k*_+y*b;this.center.move(w,$,Y,K);var j=Math.exp(this.computedRadius[0]);j=Math.max(1e-4,j+S),this.radius.set(w,Math.log(j))},m.rotate=function(w,_,b,S){this.recalcMatrix(w),_=_||0,b=b||0;var x=this.computedMatrix,T=x[0],A=x[4],y=x[8],E=x[1],M=x[5],C=x[9],k=x[2],D=x[6],L=x[10],P=_*T+b*E,R=_*A+b*M,F=_*y+b*C,I=-(D*F-L*R),B=-(L*P-k*F),O=-(k*R-D*P),$=Math.sqrt(Math.max(0,1-Math.pow(I,2)-Math.pow(B,2)-Math.pow(O,2))),Y=p(I,B,O,$);Y>1e-6?(I/=Y,B/=Y,O/=Y,$/=Y):(I=B=O=0,$=1);var K=this.computedRotation,j=K[0],q=K[1],Q=K[2],U=K[3],V=j*$+U*I+q*O-Q*B,X=q*$+U*B+Q*I-j*O,G=Q*$+U*O+j*B-q*I,H=U*$-j*I-q*B-Q*O;if(S){I=k,B=D,O=L;var J=Math.sin(S)/h(I,B,O);I*=J,B*=J,O*=J,$=Math.cos(_),V=V*$+H*I+X*O-G*B,X=X*$+H*B+G*I-V*O,G=G*$+H*O+V*B-X*I,H=H*$-V*I-X*B-G*O}var te=p(V,X,G,H);te>1e-6?(V/=te,X/=te,G/=te,H/=te):(V=X=G=0,H=1),this.rotation.set(w,V,X,G,H)},m.lookAt=function(w,_,b,S){this.recalcMatrix(w),b=b||this.computedCenter,_=_||this.computedEye,S=S||this.computedUp;var x=this.computedMatrix;l(x,_,b,S);var T=this.computedRotation;f(T,x[0],x[1],x[2],x[4],x[5],x[6],x[8],x[9],x[10]),d(T,T),this.rotation.set(w,T[0],T[1],T[2],T[3]);for(var A=0,y=0;y<3;++y)A+=Math.pow(b[y]-_[y],2);this.radius.set(w,.5*Math.log(Math.max(A,1e-6))),this.center.set(w,b[0],b[1],b[2])},m.translate=function(w,_,b,S){this.center.move(w,_||0,b||0,S||0)},m.setMatrix=function(w,_){var b=this.computedRotation;f(b,_[0],_[1],_[2],_[4],_[5],_[6],_[8],_[9],_[10]),d(b,b),this.rotation.set(w,b[0],b[1],b[2],b[3]);var S=this.computedMatrix;c(S,_);var x=S[15];if(Math.abs(x)>1e-6){var T=S[12]/x,A=S[13]/x,y=S[14]/x;this.recalcMatrix(w);var E=Math.exp(this.computedRadius[0]);this.center.set(w,T-S[2]*E,A-S[6]*E,y-S[10]*E),this.radius.idle(w)}else this.center.idle(w),this.radius.idle(w)},m.setDistance=function(w,_){_>0&&this.radius.set(w,Math.log(_))},m.setDistanceLimits=function(w,_){w>0?w=Math.log(w):w=-1/0,_>0?_=Math.log(_):_=1/0,_=Math.max(_,w),this.radius.bounds[0][0]=w,this.radius.bounds[1][0]=_},m.getDistanceLimits=function(w){var _=this.radius.bounds;return w?(w[0]=Math.exp(_[0][0]),w[1]=Math.exp(_[1][0]),w):[Math.exp(_[0][0]),Math.exp(_[1][0])]},m.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]}},m.fromJSON=function(w){var _=this.lastT(),b=w.center;b&&this.center.set(_,b[0],b[1],b[2]);var S=w.rotation;S&&this.rotation.set(_,S[0],S[1],S[2],S[3]);var x=w.distance;x&&x>0&&this.radius.set(_,Math.log(x)),this.setDistanceLimits(w.zoomMin,w.zoomMax)};function g(w){w=w||{};var _=w.center||[0,0,0],b=w.rotation||[0,0,0,1],S=w.radius||1;_=[].slice.call(_,0,3),b=[].slice.call(b,0,4),d(b,b);var x=new v(b,_,Math.log(S));return x.setDistanceLimits(w.zoomMin,w.zoomMax),("eye"in w||"up"in w)&&x.lookAt(0,w.eye,w.center,w.up),x}},1371(n,a,o){"use strict";var s=o(3233);n.exports=function(u,c,f){return f=typeof f!="undefined"?f+"":" ",s(f,c)+u}},3202(n){n.exports=function(o,s){s||(s=[0,""]),o=String(o);var l=parseFloat(o,10);return s[0]=l,s[1]=o.match(/[\d.\-\+]*\s*(.*)/)[1]||"",s}},3088(n,a,o){"use strict";n.exports=l;var s=o(3140);function l(u,c){for(var f=c.length|0,h=u.length,p=[new Array(f),new Array(f)],d=0;d0){C=p[L][E][0],D=L;break}k=C[D^1];for(var P=0;P<2;++P)for(var R=p[P][E],F=0;F0&&(C=I,k=B,D=P)}return M||C&&g(C,D),k}function _(y,E){var M=p[E][y][0],C=[y];g(M,E);for(var k=M[E^1],D=E;;){for(;k!==y;)C.push(k),k=w(C[C.length-2],k,!1);if(p[0][y].length+p[1][y].length===0)break;var L=C[C.length-1],P=y,R=C[1],F=w(L,P,!0);if(s(c[L],c[P],c[R],c[F])<0)break;C.push(y),k=w(L,P)}return C}function b(y,E){return E[1]===E[E.length-1]}for(var d=0;d0;){var T=p[0][d].length,A=_(d,S);b(x,A)?x.push.apply(x,A):(x.length>0&&m.push(x),x=A)}x.length>0&&m.push(x)}return m}},5609(n,a,o){"use strict";n.exports=l;var s=o(3134);function l(u,c){for(var f=s(u,c.length),h=new Array(c.length),p=new Array(c.length),d=[],v=0;v0;){var g=d.pop();h[g]=!1;for(var w=f[g],v=0;v0}T=T.filter(A);for(var y=T.length,E=new Array(y),M=new Array(y),x=0;x0;){var te=G.pop(),ue=Y[te];h(ue,function(oe,Me){return oe-Me});var ge=ue.length,ke=H[te],_e;if(ke===0){var R=T[te];_e=[R]}for(var x=0;x=0)&&(H[he]=ke^1,G.push(he),ke===0)){var R=T[he];X(R)||(R.reverse(),_e.push(R))}}ke===0&&J.push(_e)}return J}},5085(n,a,o){n.exports=w;var s=o(3250)[3],l=o(4209),u=o(3352),c=o(2478);function f(){return!0}function h(_){return function(b,S){var x=_[b];return x?!!x.queryPoint(S,f):!1}}function p(_){for(var b={},S=0;S<_.length;++S){var x=_[S],T=x[0][0],A=x[0][1],y=x[1][1],E=[Math.min(A,y),Math.max(A,y)];T in b?b[T].push(E):b[T]=[E]}for(var M={},C=Object.keys(b),S=0;S0&&b[x]===S[0])T=_[x-1];else return 1;for(var A=1;T;){var y=T.key,E=s(S,y[0],y[1]);if(y[0][0]0)A=-1,T=T.right;else return 0;else if(E>0)T=T.left;else if(E<0)A=1,T=T.right;else return 0}return A}}function v(_){return 1}function m(_){return function(S){return _(S[0],S[1])?0:1}}function g(_,b){return function(x){return _(x[0],x[1])?0:b(x)}}function w(_){for(var b=_.length,S=[],x=[],T=0,A=0;A=v?(y=1,M=v+2*w+b):(y=-w/v,M=w*y+b)):(y=0,_>=0?(E=0,M=b):-_>=g?(E=1,M=g+2*_+b):(E=-_/g,M=_*E+b));else if(E<0)E=0,w>=0?(y=0,M=b):-w>=v?(y=1,M=v+2*w+b):(y=-w/v,M=w*y+b);else{var C=1/A;y*=C,E*=C,M=y*(v*y+m*E+2*w)+E*(m*y+g*E+2*_)+b}else{var k,D,L,P;y<0?(k=m+w,D=g+_,D>k?(L=D-k,P=v-2*m+g,L>=P?(y=1,E=0,M=v+2*w+b):(y=L/P,E=1-y,M=y*(v*y+m*E+2*w)+E*(m*y+g*E+2*_)+b)):(y=0,D<=0?(E=1,M=g+2*_+b):_>=0?(E=0,M=b):(E=-_/g,M=_*E+b))):E<0?(k=m+_,D=v+w,D>k?(L=D-k,P=v-2*m+g,L>=P?(E=1,y=0,M=g+2*_+b):(E=L/P,y=1-E,M=y*(v*y+m*E+2*w)+E*(m*y+g*E+2*_)+b)):(E=0,D<=0?(y=1,M=v+2*w+b):w>=0?(y=0,M=b):(y=-w/v,M=w*y+b))):(L=g+_-m-w,L<=0?(y=0,E=1,M=g+2*_+b):(P=v-2*m+g,L>=P?(y=1,E=0,M=v+2*w+b):(y=L/P,E=1-y,M=y*(v*y+m*E+2*w)+E*(m*y+g*E+2*_)+b)))}for(var R=1-y-E,d=0;d0){var g=f[p-1];if(s(v,g)===0&&u(g)!==m){p-=1;continue}}f[p++]=v}}return f.length=p,f}},3233(n){"use strict";var a="",o;n.exports=s;function s(l,u){if(typeof l!="string")throw new TypeError("expected a string");if(u===1)return l;if(u===2)return l+l;var c=l.length*u;if(o!==l||typeof o=="undefined")o=l,a="";else if(a.length>=c)return a.substr(0,c);for(;c>a.length&&u>1;)u&1&&(a+=l),u>>=1,l+=l;return a+=l,a=a.substr(0,c),a}},3025(n,a,o){n.exports=o.g.performance&&o.g.performance.now?function(){return performance.now()}:Date.now||function(){return+new Date}},7004(n){"use strict";n.exports=a;function a(o){for(var s=o.length,l=o[o.length-1],u=s,c=s-2;c>=0;--c){var f=l,h=o[c];l=f+h;var p=l-f,d=h-p;d&&(o[--u]=l,l=d)}for(var v=0,c=u;c0){if(D<=0)return L;P=k+D}else if(k<0){if(D>=0)return L;P=-(k+D)}else return L;var R=p*P;return L>=R||L<=-R?L:_(E,M,C)},function(E,M,C,k){var D=E[0]-k[0],L=M[0]-k[0],P=C[0]-k[0],R=E[1]-k[1],F=M[1]-k[1],I=C[1]-k[1],B=E[2]-k[2],O=M[2]-k[2],$=C[2]-k[2],Y=L*I,K=P*F,j=P*R,q=D*I,Q=D*F,U=L*R,V=B*(Y-K)+O*(j-q)+$*(Q-U),X=(Math.abs(Y)+Math.abs(K))*Math.abs(B)+(Math.abs(j)+Math.abs(q))*Math.abs(O)+(Math.abs(Q)+Math.abs(U))*Math.abs($),G=d*X;return V>G||-V>G?V:b(E,M,C,k)}];function x(y){var E=S[y.length];return E||(E=S[y.length]=w(y.length)),E.apply(void 0,y)}function T(y,E,M,C,k,D,L){return function(R,F,I,B,O){switch(arguments.length){case 0:case 1:return 0;case 2:return C(R,F);case 3:return k(R,F,I);case 4:return D(R,F,I,B);case 5:return L(R,F,I,B,O)}for(var $=new Array(arguments.length),Y=0;Y0&&v>0||d<0&&v<0)return!1;var m=s(h,c,f),g=s(p,c,f);return m>0&&g>0||m<0&&g<0?!1:d===0&&v===0&&m===0&&g===0?l(c,f,h,p):!0}},8545(n){"use strict";n.exports=o;function a(s,l){var u=s+l,c=u-s,f=u-c,h=l-c,p=s-f,d=p+h;return d?[d,u]:[u]}function o(s,l){var u=s.length|0,c=l.length|0;if(u===1&&c===1)return a(s[0],-l[0]);var f=u+c,h=new Array(f),p=0,d=0,v=0,m=Math.abs,g=s[d],w=m(g),_=-l[v],b=m(_),S,x;w=c?(S=g,d+=1,d=c?(S=g,d+=1,d>1,_=f[2*w+1];if(_===v)return w;v<_?g=w:m=w+1}return m}function u(c,f,h,p){for(var d=c.length,v=[],m=0;m>1,_=f[2*w+1];if(_===v)return w;v<_?g=w:m=w+1}return m}function u(c,f,h,p){for(var d=c.length,v=[],m=0;m>1,_=f[2*w+1];if(_===v)return w;v<_?g=w:m=w+1}return m}function u(c,f,h,p){for(var d=c.length,v=[],m=0;m>1,_=f[2*w+1];if(_===v)return w;v<_?g=w:m=w+1}return m}function u(c,f,h,p){for(var d=c.length,v=[],m=0;m>1,P=p(E[L],M);P<=0?(P===0&&(D=L),C=L+1):P>0&&(k=L-1)}return D}s=g;function w(E,M){for(var C=new Array(E.length),k=0,D=C.length;k=E.length||p(E[Y],L)!==0););}return C}s=w;function _(E,M){if(!M)return w(m(S(E,0)),E,0);for(var C=new Array(M),k=0;k>>I&1&&F.push(D[I]);M.push(F)}return v(M)}s=b;function S(E,M){if(M<0)return[];for(var C=[],k=(1<0)-(u<0)},a.abs=function(u){var c=u>>o-1;return(u^c)-c},a.min=function(u,c){return c^(u^c)&-(u65535)<<4,u>>>=c,f=(u>255)<<3,u>>>=f,c|=f,f=(u>15)<<2,u>>>=f,c|=f,f=(u>3)<<1,u>>>=f,c|=f,c|u>>1},a.log10=function(u){return u>=1e9?9:u>=1e8?8:u>=1e7?7:u>=1e6?6:u>=1e5?5:u>=1e4?4:u>=1e3?3:u>=100?2:u>=10?1:0},a.popCount=function(u){return u=u-(u>>>1&1431655765),u=(u&858993459)+(u>>>2&858993459),(u+(u>>>4)&252645135)*16843009>>>24};function s(u){var c=32;return u&=-u,u&&c--,u&65535&&(c-=16),u&16711935&&(c-=8),u&252645135&&(c-=4),u&858993459&&(c-=2),u&1431655765&&(c-=1),c}a.countTrailingZeros=s,a.nextPow2=function(u){return u+=u===0,--u,u|=u>>>1,u|=u>>>2,u|=u>>>4,u|=u>>>8,u|=u>>>16,u+1},a.prevPow2=function(u){return u|=u>>>1,u|=u>>>2,u|=u>>>4,u|=u>>>8,u|=u>>>16,u-(u>>>1)},a.parity=function(u){return u^=u>>>16,u^=u>>>8,u^=u>>>4,u&=15,27030>>>u&1};var l=new Array(256);(function(u){for(var c=0;c<256;++c){var f=c,h=c,p=7;for(f>>>=1;f;f>>>=1)h<<=1,h|=f&1,--p;u[c]=h<>>8&255]<<16|l[u>>>16&255]<<8|l[u>>>24&255]},a.interleave2=function(u,c){return u&=65535,u=(u|u<<8)&16711935,u=(u|u<<4)&252645135,u=(u|u<<2)&858993459,u=(u|u<<1)&1431655765,c&=65535,c=(c|c<<8)&16711935,c=(c|c<<4)&252645135,c=(c|c<<2)&858993459,c=(c|c<<1)&1431655765,u|c<<1},a.deinterleave2=function(u,c){return u=u>>>c&1431655765,u=(u|u>>>1)&858993459,u=(u|u>>>2)&252645135,u=(u|u>>>4)&16711935,u=(u|u>>>16)&65535,u<<16>>16},a.interleave3=function(u,c,f){return u&=1023,u=(u|u<<16)&4278190335,u=(u|u<<8)&251719695,u=(u|u<<4)&3272356035,u=(u|u<<2)&1227133513,c&=1023,c=(c|c<<16)&4278190335,c=(c|c<<8)&251719695,c=(c|c<<4)&3272356035,c=(c|c<<2)&1227133513,u|=c<<1,f&=1023,f=(f|f<<16)&4278190335,f=(f|f<<8)&251719695,f=(f|f<<4)&3272356035,f=(f|f<<2)&1227133513,u|f<<2},a.deinterleave3=function(u,c){return u=u>>>c&1227133513,u=(u|u>>>2)&3272356035,u=(u|u>>>4)&251719695,u=(u|u>>>8)&4278190335,u=(u|u>>>16)&1023,u<<22>>22},a.nextCombination=function(u){var c=u|u-1;return c+1|(~c&-~c)-1>>>s(u)+1}},2014(n,a,o){"use strict";"use restrict";var s=o(3105),l=o(4623);function u(y){for(var E=0,M=Math.max,C=0,k=y.length;C>1,L=h(y[D],E);L<=0?(L===0&&(k=D),M=D+1):L>0&&(C=D-1)}return k}a.findCell=m;function g(y,E){for(var M=new Array(y.length),C=0,k=M.length;C=y.length||h(y[$],D)!==0););}return M}a.incidence=g;function w(y,E){if(!E)return g(v(b(y,0)),y,0);for(var M=new Array(E),C=0;C>>F&1&&R.push(k[F]);E.push(R)}return d(E)}a.explode=_;function b(y,E){if(E<0)return[];for(var M=[],C=(1<>1:(q>>1)-1}function C(q){for(var Q=E(q);;){var U=Q,V=2*q+1,X=2*(q+1),G=q;if(V0;){var U=M(q);if(U>=0){var V=E(U);if(Q0){var q=R[0];return y(0,B-1),B-=1,C(0),q}return-1}function L(q,Q){var U=R[q];return w[U]===Q?q:(w[U]=-1/0,k(q),D(),w[U]=Q,B+=1,k(B-1))}function P(q){if(!_[q]){_[q]=!0;var Q=m[q],U=g[q];m[U]>=0&&(m[U]=Q),g[Q]>=0&&(g[Q]=U),F[Q]>=0&&L(F[Q],A(Q)),F[U]>=0&&L(F[U],A(U))}}for(var R=[],F=new Array(d),b=0;b>1;b>=0;--b)C(b);for(;;){var O=D();if(O<0||w[O]>p)break;P(O)}for(var $=[],b=0;b=0&&U>=0&&Q!==U){var V=F[Q],X=F[U];V!==X&&j.push([V,X])}}),l.unique(l.normalize(j)),{positions:$,edges:j}}},1303(n,a,o){"use strict";n.exports=u;var s=o(3250);function l(c,f){var h,p;if(f[0][0]f[1][0])h=f[1],p=f[0];else{var d=Math.min(c[0][1],c[1][1]),v=Math.max(c[0][1],c[1][1]),m=Math.min(f[0][1],f[1][1]),g=Math.max(f[0][1],f[1][1]);return vg?d-g:v-g}var w,_;c[0][1]f[1][0])h=f[1],p=f[0];else return l(f,c);var d,v;if(c[0][0]c[1][0])d=c[1],v=c[0];else return-l(c,f);var m=s(h,p,v),g=s(h,p,d);if(m<0){if(g<=0)return m}else if(m>0){if(g>=0)return m}else if(g)return g;if(m=s(v,d,p),g=s(v,d,h),m<0){if(g<=0)return m}else if(m>0){if(g>=0)return m}else if(g)return g;return p[0]-v[0]}},4209(n,a,o){"use strict";n.exports=g;var s=o(2478),l=o(3840),u=o(3250),c=o(1303);function f(w,_,b){this.slabs=w,this.coordinates=_,this.horizontal=b}var h=f.prototype;function p(w,_){return w.y-_}function d(w,_){for(var b=null;w;){var S=w.key,x,T;S[0][0]0)if(_[0]!==S[1][0])b=w,w=w.right;else{var y=d(w.right,_);if(y)return y;w=w.left}else{if(_[0]!==S[1][0])return w;var y=d(w.right,_);if(y)return y;w=w.left}}return b}h.castUp=function(w){var _=s.le(this.coordinates,w[0]);if(_<0)return-1;var b=this.slabs[_],S=d(this.slabs[_],w),x=-1;if(S&&(x=S.value),this.coordinates[_]===w[0]){var T=null;if(S&&(T=S.key),_>0){var A=d(this.slabs[_-1],w);A&&(T?c(A.key,T)>0&&(T=A.key,x=A.value):(x=A.value,T=A.key))}var y=this.horizontal[_];if(y.length>0){var E=s.ge(y,w[1],p);if(E=y.length)return x;M=y[E]}}if(M.start)if(T){var C=u(T[0],T[1],[w[0],M.y]);T[0][0]>T[1][0]&&(C=-C),C>0&&(x=M.index)}else x=M.index;else M.y!==w[1]&&(x=M.index)}}}return x};function v(w,_,b,S){this.y=w,this.index=_,this.start=b,this.closed=S}function m(w,_,b,S){this.x=w,this.segment=_,this.create=b,this.index=S}function g(w){for(var _=w.length,b=2*_,S=new Array(b),x=0;x<_;++x){var T=w[x],A=T[0][0]1&&(_=1);for(var b=1-_,S=d.length,x=new Array(S),T=0;T0||w>0&&x<0){var T=c(_,x,b,w);m.push(T),g.push(T.slice())}x<0?g.push(b.slice()):x>0?m.push(b.slice()):(m.push(b.slice()),g.push(b.slice())),w=x}return{positive:m,negative:g}}function h(d,v){for(var m=[],g=u(d[d.length-1],v),w=d[d.length-1],_=d[0],b=0;b0||g>0&&S<0)&&m.push(c(w,S,_,g)),S>=0&&m.push(_.slice()),g=S}return m}function p(d,v){for(var m=[],g=u(d[d.length-1],v),w=d[d.length-1],_=d[0],b=0;b0||g>0&&S<0)&&m.push(c(w,S,_,g)),S<=0&&m.push(_.slice()),g=S}return m}},3387(n,a,o){var s;(function(){"use strict";var l={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 u(d){return f(p(d),arguments)}function c(d,v){return u.apply(null,[d].concat(v||[]))}function f(d,v){var m=1,g=d.length,w,_="",b,S,x,T,A,y,E,M;for(b=0;b=0),x.type){case"b":w=parseInt(w,10).toString(2);break;case"c":w=String.fromCharCode(parseInt(w,10));break;case"d":case"i":w=parseInt(w,10);break;case"j":w=JSON.stringify(w,null,x.width?parseInt(x.width):0);break;case"e":w=x.precision?parseFloat(w).toExponential(x.precision):parseFloat(w).toExponential();break;case"f":w=x.precision?parseFloat(w).toFixed(x.precision):parseFloat(w);break;case"g":w=x.precision?String(Number(w.toPrecision(x.precision))):parseFloat(w);break;case"o":w=(parseInt(w,10)>>>0).toString(8);break;case"s":w=String(w),w=x.precision?w.substring(0,x.precision):w;break;case"t":w=String(!!w),w=x.precision?w.substring(0,x.precision):w;break;case"T":w=Object.prototype.toString.call(w).slice(8,-1).toLowerCase(),w=x.precision?w.substring(0,x.precision):w;break;case"u":w=parseInt(w,10)>>>0;break;case"v":w=w.valueOf(),w=x.precision?w.substring(0,x.precision):w;break;case"x":w=(parseInt(w,10)>>>0).toString(16);break;case"X":w=(parseInt(w,10)>>>0).toString(16).toUpperCase();break}l.json.test(x.type)?_+=w:(l.number.test(x.type)&&(!E||x.sign)?(M=E?"+":"-",w=w.toString().replace(l.sign,"")):M="",A=x.pad_char?x.pad_char==="0"?"0":x.pad_char.charAt(1):" ",y=x.width-(M+w).length,T=x.width&&y>0?A.repeat(y):"",_+=x.align?M+w+T:A==="0"?M+T+w:T+M+w)}return _}var h=Object.create(null);function p(d){if(h[d])return h[d];for(var v=d,m,g=[],w=0;v;){if((m=l.text.exec(v))!==null)g.push(m[0]);else if((m=l.modulo.exec(v))!==null)g.push("%");else if((m=l.placeholder.exec(v))!==null){if(m[2]){w|=1;var _=[],b=m[2],S=[];if((S=l.key.exec(b))!==null)for(_.push(S[1]);(b=b.substring(S[0].length))!=="";)if((S=l.key_access.exec(b))!==null)_.push(S[1]);else if((S=l.index_access.exec(b))!==null)_.push(S[1]);else throw new SyntaxError("[sprintf] failed to parse named argument key");else throw new SyntaxError("[sprintf] failed to parse named argument key");m[2]=_}else w|=2;if(w===3)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");g.push({placeholder:m[0],param_no:m[1],keys:m[2],sign:m[3],pad_char:m[4],align:m[5],width:m[6],precision:m[7],type:m[8]})}else throw new SyntaxError("[sprintf] unexpected placeholder");v=v.substring(m[0].length)}return h[d]=g}a.sprintf=u,a.vsprintf=c,typeof window!="undefined"&&(window.sprintf=u,window.vsprintf=c,s=(function(){return{sprintf:u,vsprintf:c}}).call(a,o,a,n),s!==void 0&&(n.exports=s))})()},3711(n,a,o){"use strict";n.exports=p;var s=o(2640),l=o(781),u={"2d":function(d,v,m){var g=d({order:v,scalarArguments:3,getters:m==="generic"?[0]:void 0,phase:function(_,b,S,x){return _>x|0},vertex:function(_,b,S,x,T,A,y,E,M,C,k,D,L){var P=(y<<0)+(E<<1)+(M<<2)+(C<<3)|0;if(!(P===0||P===15))switch(P){case 0:k.push([_-.5,b-.5]);break;case 1:k.push([_-.25-.25*(x+S-2*L)/(S-x),b-.25-.25*(T+S-2*L)/(S-T)]);break;case 2:k.push([_-.75-.25*(-x-S+2*L)/(x-S),b-.25-.25*(A+x-2*L)/(x-A)]);break;case 3:k.push([_-.5,b-.5-.5*(T+S+A+x-4*L)/(S-T+x-A)]);break;case 4:k.push([_-.25-.25*(A+T-2*L)/(T-A),b-.75-.25*(-T-S+2*L)/(T-S)]);break;case 5:k.push([_-.5-.5*(x+S+A+T-4*L)/(S-x+T-A),b-.5]);break;case 6:k.push([_-.5-.25*(-x-S+A+T)/(x-S+T-A),b-.5-.25*(-T-S+A+x)/(T-S+x-A)]);break;case 7:k.push([_-.75-.25*(A+T-2*L)/(T-A),b-.75-.25*(A+x-2*L)/(x-A)]);break;case 8:k.push([_-.75-.25*(-A-T+2*L)/(A-T),b-.75-.25*(-A-x+2*L)/(A-x)]);break;case 9:k.push([_-.5-.25*(x+S+-A-T)/(S-x+A-T),b-.5-.25*(T+S+-A-x)/(S-T+A-x)]);break;case 10:k.push([_-.5-.5*(-x-S+-A-T+4*L)/(x-S+A-T),b-.5]);break;case 11:k.push([_-.25-.25*(-A-T+2*L)/(A-T),b-.75-.25*(T+S-2*L)/(S-T)]);break;case 12:k.push([_-.5,b-.5-.5*(-T-S+-A-x+4*L)/(T-S+A-x)]);break;case 13:k.push([_-.75-.25*(x+S-2*L)/(S-x),b-.25-.25*(-A-x+2*L)/(A-x)]);break;case 14:k.push([_-.25-.25*(-x-S+2*L)/(x-S),b-.25-.25*(-T-S+2*L)/(T-S)]);break;case 15:k.push([_-.5,b-.5]);break}},cell:function(_,b,S,x,T,A,y,E,M){T?E.push([_,b]):E.push([b,_])}});return function(w,_){var b=[],S=[];return g(w,b,S,_),{positions:b,cells:S}}}};function c(d,v){var m=d.length+"d",g=u[m];if(g)return g(s,d,v)}function f(d,v){for(var m=l(d,v),g=m.length,w=new Array(g),_=new Array(g),b=0;bMath.max(x,T)?A[2]=1:x>Math.max(S,T)?A[0]=1:A[1]=1;for(var y=0,E=0,M=0;M<3;++M)y+=b[M]*b[M],E+=A[M]*b[M];for(var M=0;M<3;++M)A[M]-=E/y*b[M];return f(A,A),A}function m(b,S,x,T,A,y,E,M){this.center=s(x),this.up=s(T),this.right=s(A),this.radius=s([y]),this.angle=s([E,M]),this.angle.bounds=[[-1/0,-Math.PI/2],[1/0,Math.PI/2]],this.setDistanceLimits(b,S),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 C=0;C<16;++C)this.computedMatrix[C]=.5;this.recalcMatrix(0)}var g=m.prototype;g.setDistanceLimits=function(b,S){b>0?b=Math.log(b):b=-1/0,S>0?S=Math.log(S):S=1/0,S=Math.max(S,b),this.radius.bounds[0][0]=b,this.radius.bounds[1][0]=S},g.getDistanceLimits=function(b){var S=this.radius.bounds[0];return b?(b[0]=Math.exp(S[0][0]),b[1]=Math.exp(S[1][0]),b):[Math.exp(S[0][0]),Math.exp(S[1][0])]},g.recalcMatrix=function(b){this.center.curve(b),this.up.curve(b),this.right.curve(b),this.radius.curve(b),this.angle.curve(b);for(var S=this.computedUp,x=this.computedRight,T=0,A=0,y=0;y<3;++y)A+=S[y]*x[y],T+=S[y]*S[y];for(var E=Math.sqrt(T),M=0,y=0;y<3;++y)x[y]-=S[y]*A/T,M+=x[y]*x[y],S[y]/=E;for(var C=Math.sqrt(M),y=0;y<3;++y)x[y]/=C;var k=this.computedToward;c(k,S,x),f(k,k);for(var D=Math.exp(this.computedRadius[0]),L=this.computedAngle[0],P=this.computedAngle[1],R=Math.cos(L),F=Math.sin(L),I=Math.cos(P),B=Math.sin(P),O=this.computedCenter,$=R*I,Y=F*I,K=B,j=-R*B,q=-F*B,Q=I,U=this.computedEye,V=this.computedMatrix,y=0;y<3;++y){var X=$*x[y]+Y*k[y]+K*S[y];V[4*y+1]=j*x[y]+q*k[y]+Q*S[y],V[4*y+2]=X,V[4*y+3]=0}var G=V[1],H=V[5],J=V[9],te=V[2],ue=V[6],ge=V[10],ke=H*ge-J*ue,_e=J*te-G*ge,he=G*ue-H*te,oe=p(ke,_e,he);ke/=oe,_e/=oe,he/=oe,V[0]=ke,V[4]=_e,V[8]=he;for(var y=0;y<3;++y)U[y]=O[y]+V[2+4*y]*D;for(var y=0;y<3;++y){for(var M=0,Me=0;Me<3;++Me)M+=V[y+4*Me]*U[Me];V[12+y]=-M}V[15]=1},g.getMatrix=function(b,S){this.recalcMatrix(b);var x=this.computedMatrix;if(S){for(var T=0;T<16;++T)S[T]=x[T];return S}return x};var w=[0,0,0];g.rotate=function(b,S,x,T){if(this.angle.move(b,S,x),T){this.recalcMatrix(b);var A=this.computedMatrix;w[0]=A[2],w[1]=A[6],w[2]=A[10];for(var y=this.computedUp,E=this.computedRight,M=this.computedToward,C=0;C<3;++C)A[4*C]=y[C],A[4*C+1]=E[C],A[4*C+2]=M[C];u(A,A,T,w);for(var C=0;C<3;++C)y[C]=A[4*C],E[C]=A[4*C+1];this.up.set(b,y[0],y[1],y[2]),this.right.set(b,E[0],E[1],E[2])}},g.pan=function(b,S,x,T){S=S||0,x=x||0,T=T||0,this.recalcMatrix(b);var A=this.computedMatrix,y=Math.exp(this.computedRadius[0]),E=A[1],M=A[5],C=A[9],k=p(E,M,C);E/=k,M/=k,C/=k;var D=A[0],L=A[4],P=A[8],R=D*E+L*M+P*C;D-=E*R,L-=M*R,P-=C*R;var F=p(D,L,P);D/=F,L/=F,P/=F;var I=D*S+E*x,B=L*S+M*x,O=P*S+C*x;this.center.move(b,I,B,O);var $=Math.exp(this.computedRadius[0]);$=Math.max(1e-4,$+T),this.radius.set(b,Math.log($))},g.translate=function(b,S,x,T){this.center.move(b,S||0,x||0,T||0)},g.setMatrix=function(b,S,x,T){var A=1;typeof x=="number"&&(A=x|0),(A<0||A>3)&&(A=1);var y=(A+2)%3,E=(A+1)%3;S||(this.recalcMatrix(b),S=this.computedMatrix);var M=S[A],C=S[A+4],k=S[A+8];if(T){var L=Math.abs(M),P=Math.abs(C),R=Math.abs(k),F=Math.max(L,P,R);L===F?(M=M<0?-1:1,C=k=0):R===F?(k=k<0?-1:1,M=C=0):(C=C<0?-1:1,M=k=0)}else{var D=p(M,C,k);M/=D,C/=D,k/=D}var I=S[y],B=S[y+4],O=S[y+8],$=I*M+B*C+O*k;I-=M*$,B-=C*$,O-=k*$;var Y=p(I,B,O);I/=Y,B/=Y,O/=Y;var K=C*O-k*B,j=k*I-M*O,q=M*B-C*I,Q=p(K,j,q);K/=Q,j/=Q,q/=Q,this.center.jump(b,xe,re,pe),this.radius.idle(b),this.up.jump(b,M,C,k),this.right.jump(b,I,B,O);var U,V;if(A===2){var X=S[1],G=S[5],H=S[9],J=X*I+G*B+H*O,te=X*K+G*j+H*q;_e<0?U=-Math.PI/2:U=Math.PI/2,V=Math.atan2(te,J)}else{var ue=S[2],ge=S[6],ke=S[10],_e=ue*M+ge*C+ke*k,he=ue*I+ge*B+ke*O,oe=ue*K+ge*j+ke*q;U=Math.asin(d(_e)),V=Math.atan2(oe,he)}this.angle.jump(b,V,U),this.recalcMatrix(b);var Me=S[2],ye=S[6],ce=S[10],ee=this.computedMatrix;l(ee,S);var ae=ee[15],xe=ee[12]/ae,re=ee[13]/ae,pe=ee[14]/ae,we=Math.exp(this.computedRadius[0]);this.center.jump(b,xe-Me*we,re-ye*we,pe-ce*we)},g.lastT=function(){return Math.max(this.center.lastT(),this.up.lastT(),this.right.lastT(),this.radius.lastT(),this.angle.lastT())},g.idle=function(b){this.center.idle(b),this.up.idle(b),this.right.idle(b),this.radius.idle(b),this.angle.idle(b)},g.flush=function(b){this.center.flush(b),this.up.flush(b),this.right.flush(b),this.radius.flush(b),this.angle.flush(b)},g.setDistance=function(b,S){S>0&&this.radius.set(b,Math.log(S))},g.lookAt=function(b,S,x,T){this.recalcMatrix(b),S=S||this.computedEye,x=x||this.computedCenter,T=T||this.computedUp;var A=T[0],y=T[1],E=T[2],M=p(A,y,E);if(!(M<1e-6)){A/=M,y/=M,E/=M;var C=S[0]-x[0],k=S[1]-x[1],D=S[2]-x[2],L=p(C,k,D);if(!(L<1e-6)){C/=L,k/=L,D/=L;var P=this.computedRight,R=P[0],F=P[1],I=P[2],B=A*R+y*F+E*I;R-=B*A,F-=B*y,I-=B*E;var O=p(R,F,I);if(!(O<.01&&(R=y*D-E*k,F=E*C-A*D,I=A*k-y*C,O=p(R,F,I),O<1e-6))){R/=O,F/=O,I/=O,this.up.set(b,A,y,E),this.right.set(b,R,F,I),this.center.set(b,x[0],x[1],x[2]),this.radius.set(b,Math.log(L));var $=y*I-E*F,Y=E*R-A*I,K=A*F-y*R,j=p($,Y,K);$/=j,Y/=j,K/=j;var q=A*C+y*k+E*D,Q=R*C+F*k+I*D,U=$*C+Y*k+K*D,V=Math.asin(d(q)),X=Math.atan2(U,Q),G=this.angle._state,H=G[G.length-1],J=G[G.length-2];H=H%(2*Math.PI);var te=Math.abs(H+2*Math.PI-X),ue=Math.abs(H-X),ge=Math.abs(H-2*Math.PI-X);te0?I.pop():new ArrayBuffer(R)}a.mallocArrayBuffer=w;function _(P){return new Uint8Array(w(P),0,P)}a.mallocUint8=_;function b(P){return new Uint16Array(w(2*P),0,P)}a.mallocUint16=b;function S(P){return new Uint32Array(w(4*P),0,P)}a.mallocUint32=S;function x(P){return new Int8Array(w(P),0,P)}a.mallocInt8=x;function T(P){return new Int16Array(w(2*P),0,P)}a.mallocInt16=T;function A(P){return new Int32Array(w(4*P),0,P)}a.mallocInt32=A;function y(P){return new Float32Array(w(4*P),0,P)}a.mallocFloat32=a.mallocFloat=y;function E(P){return new Float64Array(w(8*P),0,P)}a.mallocFloat64=a.mallocDouble=E;function M(P){return c?new Uint8ClampedArray(w(P),0,P):_(P)}a.mallocUint8Clamped=M;function C(P){return f?new BigUint64Array(w(8*P),0,P):null}a.mallocBigUint64=C;function k(P){return h?new BigInt64Array(w(8*P),0,P):null}a.mallocBigInt64=k;function D(P){return new DataView(w(P),0,P)}a.mallocDataView=D;function L(P){P=s.nextPow2(P);var R=s.log2(P),F=v[R];return F.length>0?F.pop():new u(P)}a.mallocBuffer=L,a.clearCache=function(){for(var R=0;R<32;++R)p.UINT8[R].length=0,p.UINT16[R].length=0,p.UINT32[R].length=0,p.INT8[R].length=0,p.INT16[R].length=0,p.INT32[R].length=0,p.FLOAT[R].length=0,p.DOUBLE[R].length=0,p.BIGUINT64[R].length=0,p.BIGINT64[R].length=0,p.UINT8C[R].length=0,d[R].length=0,v[R].length=0}},1755(n){"use strict";"use restrict";n.exports=a;function a(s){this.roots=new Array(s),this.ranks=new Array(s);for(var l=0;l",I="",B=F.length,O=I.length,$=L[0]===w||L[0]===S,Y=0,K=-O;Y>-1&&(Y=P.indexOf(F,Y),!(Y===-1||(K=P.indexOf(I,Y+B),K===-1)||K<=Y));){for(var j=Y;j=K)R[j]=null,P=P.substr(0,j)+" "+P.substr(j+1);else if(R[j]!==null){var q=R[j].indexOf(L[0]);q===-1?R[j]+=L:$&&(R[j]=R[j].substr(0,q+1)+(1+parseInt(R[j][q+1]))+R[j].substr(q+2))}var Q=Y+B,U=P.substr(Q,K-Q),V=U.indexOf(F);V!==-1?Y=V:Y=K+O}return R}function A(D,L,P){for(var R=L.textAlign||"start",F=L.textBaseline||"alphabetic",I=[1<<30,1<<30],B=[0,0],O=D.length,$=0;$/g,` -`):P=P.replace(/\/g," ");var B="",O=[];for(H=0;H-1?parseInt(re[1+Fe]):0,be=Ee>-1?parseInt(pe[1+Ee]):0;Ce!==be&&(we=we.replace(he(),"?px "),ue*=Math.pow(.75,be-Ce),we=we.replace("?px ",he())),te+=.25*q*(be-Ce)}if(I.superscripts===!0){var Ie=re.indexOf(w),Oe=pe.indexOf(w),Qe=Ie>-1?parseInt(re[1+Ie]):0,et=Oe>-1?parseInt(pe[1+Oe]):0;Qe!==et&&(we=we.replace(he(),"?px "),ue*=Math.pow(.75,et-Qe),we=we.replace("?px ",he())),te-=.25*q*(et-Qe)}if(I.bolds===!0){var bt=re.indexOf(d)>-1,ut=pe.indexOf(d)>-1;!bt&&ut&&(vt?we=we.replace("italic ","italic bold "):we="bold "+we),bt&&!ut&&(we=we.replace("bold ",""))}if(I.italics===!0){var vt=re.indexOf(m)>-1,Xe=pe.indexOf(m)>-1;!vt&&Xe&&(we="italic "+we),vt&&!Xe&&(we=we.replace("italic ",""))}L.font=we}for(G=0;G0&&(F=R.size),R.lineSpacing&&R.lineSpacing>0&&(I=R.lineSpacing),R.styletags&&R.styletags.breaklines&&(B.breaklines=!!R.styletags.breaklines),R.styletags&&R.styletags.bolds&&(B.bolds=!!R.styletags.bolds),R.styletags&&R.styletags.italics&&(B.italics=!!R.styletags.italics),R.styletags&&R.styletags.subscripts&&(B.subscripts=!!R.styletags.subscripts),R.styletags&&R.styletags.superscripts&&(B.superscripts=!!R.styletags.superscripts)),P.font=[R.fontStyle,R.fontVariant,R.fontWeight,F+"px",R.font].filter(function($){return $}).join(" "),P.textAlign="start",P.textBaseline="alphabetic",P.direction="ltr";var O=y(L,P,D,F,I,B);return C(O,R,F)}},1538(n){(function(){"use strict";if(typeof ses!="undefined"&&ses.ok&&!ses.ok())return;function o(M){M.permitHostObjects___&&M.permitHostObjects___(o)}typeof ses!="undefined"&&(ses.weakMapPermitHostObjects=o);var s=!1;if(typeof WeakMap=="function"){var l=WeakMap;if(!(typeof navigator!="undefined"&&/Firefox/.test(navigator.userAgent))){var u=new l,c=Object.freeze({});if(u.set(c,1),u.get(c)!==1)s=!0;else{n.exports=WeakMap;return}}}var f=Object.prototype.hasOwnProperty,h=Object.getOwnPropertyNames,p=Object.defineProperty,d=Object.isExtensible,v="weakmap:",m=v+"ident:"+Math.random()+"___";if(typeof crypto!="undefined"&&typeof crypto.getRandomValues=="function"&&typeof ArrayBuffer=="function"&&typeof Uint8Array=="function"){var g=new ArrayBuffer(25),w=new Uint8Array(g);crypto.getRandomValues(w),m=v+"rand:"+Array.prototype.map.call(w,function(M){return(M%36).toString(36)}).join("")+"___"}function _(M){return!(M.substr(0,v.length)==v&&M.substr(M.length-3)==="___")}if(p(Object,"getOwnPropertyNames",{value:function(C){return h(C).filter(_)}}),"getPropertyNames"in Object){var b=Object.getPropertyNames;p(Object,"getPropertyNames",{value:function(C){return b(C).filter(_)}})}function S(M){if(M!==Object(M))throw new TypeError("Not an object: "+M);var C=M[m];if(C&&C.key===M)return C;if(d(M)){C={key:M};try{return p(M,m,{value:C,writable:!1,enumerable:!1,configurable:!1}),C}catch(k){return}}}(function(){var M=Object.freeze;p(Object,"freeze",{value:function(L){return S(L),M(L)}});var C=Object.seal;p(Object,"seal",{value:function(L){return S(L),C(L)}});var k=Object.preventExtensions;p(Object,"preventExtensions",{value:function(L){return S(L),k(L)}})})();function x(M){return M.prototype=null,Object.freeze(M)}var T=!1;function A(){!T&&typeof console!="undefined"&&(T=!0,console.warn("WeakMap should be invoked as new WeakMap(), not WeakMap(). This will be an error in the future."))}var y=0,E=function(){this instanceof E||A();var M=[],C=[],k=y++;function D(F,I){var B,O=S(F);return O?k in O?O[k]:I:(B=M.indexOf(F),B>=0?C[B]:I)}function L(F){var I=S(F);return I?k in I:M.indexOf(F)>=0}function P(F,I){var B,O=S(F);return O?O[k]=I:(B=M.indexOf(F),B>=0?C[B]=I:(B=M.length,C[B]=I,M[B]=F)),this}function R(F){var I=S(F),B,O;return I?k in I&&delete I[k]:(B=M.indexOf(F),B<0?!1:(O=M.length-1,M[B]=void 0,C[B]=C[O],M[B]=M[O],M.length=O,C.length=O,!0))}return Object.create(E.prototype,{get___:{value:x(D)},has___:{value:x(L)},set___:{value:x(P)},delete___:{value:x(R)}})};E.prototype=Object.create(Object.prototype,{get:{value:function(C,k){return this.get___(C,k)},writable:!0,configurable:!0},has:{value:function(C){return this.has___(C)},writable:!0,configurable:!0},set:{value:function(C,k){return this.set___(C,k)},writable:!0,configurable:!0},delete:{value:function(C){return this.delete___(C)},writable:!0,configurable:!0}}),typeof l=="function"?(function(){s&&typeof Proxy!="undefined"&&(Proxy=void 0);function M(){this instanceof E||A();var C=new l,k=void 0,D=!1;function L(I,B){return k?C.has(I)?C.get(I):k.get___(I,B):C.get(I,B)}function P(I){return C.has(I)||(k?k.has___(I):!1)}var R;s?R=function(I,B){return C.set(I,B),C.has(I)||(k||(k=new E),k.set(I,B)),this}:R=function(I,B){if(D)try{C.set(I,B)}catch(O){k||(k=new E),k.set___(I,B)}else C.set(I,B);return this};function F(I){var B=!!C.delete(I);return k&&k.delete___(I)||B}return Object.create(E.prototype,{get___:{value:x(L)},has___:{value:x(P)},set___:{value:x(R)},delete___:{value:x(F)},permitHostObjects___:{value:x(function(I){if(I===o)D=!0;else throw new Error("bogus call to permitHostObjects___")})}})}M.prototype=E.prototype,n.exports=M,Object.defineProperty(WeakMap.prototype,"constructor",{value:WeakMap,enumerable:!1,configurable:!0,writable:!0})})():(typeof Proxy!="undefined"&&(Proxy=void 0),n.exports=E)})()},236(n,a,o){var s=o(8284);n.exports=l;function l(){var u={};return function(c){if((typeof c!="object"||c===null)&&typeof c!="function")throw new Error("Weakmap-shim: Key must be object");var f=c.valueOf(u);return f&&f.identity===u?f:s(c,u)}}},8284(n){n.exports=a;function a(o,s){var l={identity:s},u=o.valueOf;return Object.defineProperty(o,"valueOf",{value:function(c){return c!==s?u.apply(this,arguments):l},writable:!0}),l}},606(n,a,o){var s=o(236);n.exports=l;function l(){var u=s();return{get:function(c,f){var h=u(c);return h.hasOwnProperty("value")?h.value:f},set:function(c,f){return u(c).value=f,this},has:function(c){return"value"in u(c)},delete:function(c){return delete u(c).value}}}},3349(n){"use strict";function a(){return function(f,h,p,d,v,m){var g=f[0],w=p[0],_=[0],b=w;d|=0;var S=0,x=w;for(S=0;S=0!=A>=0&&v.push(_[0]+.5+.5*(T+A)/(T-A))}d+=x,++_[0]}}}function o(){return a()}var s=o;function l(f){var h={};return function(d,v,m){var g=d.dtype,w=d.order,_=[g,w.join()].join(),b=h[_];return b||(h[_]=b=f([g,w])),b(d.shape.slice(0),d.data,d.stride,d.offset|0,v,m)}}function u(f){return l(s.bind(void 0,f))}function c(f){return u({funcName:f.funcName})}n.exports=c({funcName:"zeroCrossings"})},781(n,a,o){"use strict";n.exports=l;var s=o(3349);function l(u,c){var f=[];return c=+c||0,s(u.hi(u.shape[0]-1),f,c),f}},7790(){}};let t={};function r(n){let a=t[n];if(a!==void 0)return a.exports;let o=t[n]={id:n,loaded:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.loaded=!0,o.exports}r.g=(function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch(n){if(typeof window=="object")return window}})(),r.nmd=n=>(n.paths=[],n.children||(n.children=[]),n);let i=r(3065);jqe.exports=i})()});var gm=W((NZr,$qe)=>{"use strict";var{normalize:Mrr}=ai();function Srr(e){return e?Mrr(e):[0,0,0,1]}$qe.exports=Srr});var mm=W((UZr,Jqe)=>{"use strict";var Zqe=un(),XI=es(),B4=ai(),Err=jl().defaultLine,Wqe=wc().isArrayOrTypedArray,kJ=B4.normalize(Err),Kqe=1;function Yqe(e,t){return[e[0],e[1],e[2],e[3]*t]}function EJ(e){return Zqe(e)||!B4.isChannelArray(e)&&!B4.isValid(e)?kJ:B4.normalize(e)}function Xqe(e){return Zqe(e)?e:Kqe}function krr(e,t,r){var i=e.color;i&&i._inputArray&&(i=i._inputArray);var n=Wqe(i),a=Wqe(t),o=XI.extractOpts(e),s=[],l,u,c,f,h;if(o.colorscale!==void 0?l=XI.makeColorScaleFuncFromTrace(e):l=EJ,n?u=(d,v)=>d[v]===void 0?kJ:o.colorscale===void 0?l(d[v]):B4.normalize(l(d[v])):u=EJ,a?c=function(d,v){return d[v]===void 0?Kqe:Xqe(d[v])}:c=Xqe,n||a)for(var p=0;pFrr});var Drr,Frr,DJ=Ci(()=>{"use strict";Drr={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]},Frr=Drr});var ZI={};Kn(ZI,{default:()=>Prr});var Lrr,Prr,KI=Ci(()=>{"use strict";Lrr={circle:"\u25CF","circle-open":"\u25CB",square:"\u25A0","square-open":"\u25A1",diamond:"\u25C6","diamond-open":"\u25C7",cross:"+",x:"\u274C"},Prr=Lrr});var eOe=W((VZr,Qqe)=>{"use strict";var Irr=xi();function FJ(e,t,r,i){if(!t||!t.visible)return null;for(var n=Irr.getComponentMethod("errorbars","makeComputeError")(t),a=new Array(e.length),o=0;o0){var f=i.c2l(u);i._lowerLogErrorBound||(i._lowerLogErrorBound=f),i._lowerErrorBound=Math.min(i._lowerLogErrorBound,f)}}else a[o]=[-s[0]*r,s[1]*r]}return a}function Rrr(e){for(var t=0;t{"use strict";var Brr=lc().gl_line3d,tOe=lc().gl_scatter3d,qrr=lc().gl_error3d,Orr=lc().gl_mesh3d,Nrr=lc().delaunay_triangulate,ym=it(),oOe=gm(),JI=mm().formatColor,Urr=AA(),LJ=(DJ(),Pt(CJ)).default,Vrr=(KI(),Pt(ZI)).default,Grr=Wi(),Hrr=rh().appendArrayPointValue,jrr=eOe();function sOe(e,t){this.scene=e,this.uid=t,this.linePlot=null,this.scatterPlot=null,this.errorBars=null,this.textMarkers=null,this.delaunayMesh=null,this.color=null,this.mode="",this.dataPoints=[],this.axesBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.textLabels=null,this.data=null}var IJ=sOe.prototype;IJ.handlePick=function(e){if(e.object&&(e.object===this.linePlot||e.object===this.delaunayMesh||e.object===this.textMarkers||e.object===this.scatterPlot)){var t=e.index=e.data.index;return e.object.highlight&&e.object.highlight(null),this.scatterPlot&&(e.object=this.scatterPlot,this.scatterPlot.highlight(e.data)),e.textLabel="",this.textLabels&&(ym.isArrayOrTypedArray(this.textLabels)?(this.textLabels[t]||this.textLabels[t]===0)&&(e.textLabel=this.textLabels[t]):e.textLabel=this.textLabels),e.traceCoordinate=[this.data.x[t],this.data.y[t],this.data.z[t]],!0}};function $rr(e,t,r){var i=(r+1)%3,n=(r+2)%3,a=[],o=[],s;for(s=0;s-1?-1:e.indexOf("right")>-1?1:0}function iOe(e){return e==null?0:e.indexOf("top")>-1?-1:e.indexOf("bottom")>-1?1:0}function Yrr(e){var t=0,r=0,i=[t,r];if(Array.isArray(e))for(var n=0;n=0){var u=$rr(s.position,s.delaunayColor,s.delaunayAxis);u.opacity=e.opacity,this.delaunayMesh?this.delaunayMesh.update(u):(u.gl=t,this.delaunayMesh=Orr(u),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)};IJ.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 Jrr(e,t){var r=new sOe(e,t.uid);return r.update(t),r}lOe.exports=Jrr});var OJ=W((HZr,dOe)=>{"use strict";var xm=Hs(),Qrr=jo(),qJ=Fo(),RJ=ws().axisHoverFormat,{hovertemplateAttrs:eir,texttemplateAttrs:tir,templatefallbackAttrs:cOe}=$a(),fOe=Ka(),rir=(DJ(),Pt(CJ)).default,iir=(KI(),Pt(ZI)).default,gv=nn().extendFlat,nir=cs().overrideAll,hOe=(Jx(),Pt(Kx)).default,air=xm.line,I_=xm.marker,oir=I_.line,sir=gv({width:air.width,dash:{valType:"enumerated",values:hOe(rir),dflt:"solid"}},qJ("line"));function zJ(e){return{show:{valType:"boolean",dflt:!1},opacity:{valType:"number",min:0,max:1,dflt:1},scale:{valType:"number",min:0,max:10,dflt:2/3}}}var BJ=dOe.exports=nir({x:xm.x,y:xm.y,z:{valType:"data_array"},text:gv({},xm.text,{}),texttemplate:tir(),texttemplatefallback:cOe({editType:"calc"}),hovertext:gv({},xm.hovertext,{}),hovertemplate:eir(),hovertemplatefallback:cOe(),xhoverformat:RJ("x"),yhoverformat:RJ("y"),zhoverformat:RJ("z"),mode:gv({},xm.mode,{dflt:"lines+markers"}),surfaceaxis:{valType:"enumerated",values:[-1,0,1,2],dflt:-1},surfacecolor:{valType:"color"},projection:{x:zJ("x"),y:zJ("y"),z:zJ("z")},connectgaps:xm.connectgaps,line:sir,marker:gv({symbol:{valType:"enumerated",values:hOe(iir),dflt:"circle",arrayOk:!0},size:gv({},I_.size,{dflt:8}),sizeref:I_.sizeref,sizemin:I_.sizemin,sizemode:I_.sizemode,opacity:gv({},I_.opacity,{arrayOk:!1}),colorbar:I_.colorbar,line:gv({width:gv({},oir.width,{arrayOk:!1})},qJ("marker.line"))},qJ("marker")),textposition:gv({},xm.textposition,{dflt:"top center"}),textfont:Qrr({noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0,editType:"calc",colorEditType:"style",arrayOk:!0,variantValues:["normal","small-caps"]}),opacity:fOe.opacity,hoverinfo:gv({},fOe.hoverinfo)},"calc","nested");BJ.x.editType=BJ.y.editType=BJ.z.editType="calc+clearAxisTypes"});var gOe=W((jZr,vOe)=>{"use strict";var pOe=xi(),lir=it(),NJ=Wo(),uir=Cd(),cir=Kp(),fir=Jp(),hir=OJ();vOe.exports=function(t,r,i,n){function a(p,d){return lir.coerce(t,r,hir,p,d)}var o=dir(t,r,a,n);if(!o){r.visible=!1;return}a("text"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback"),a("xhoverformat"),a("yhoverformat"),a("zhoverformat"),a("mode"),NJ.hasMarkers(r)&&uir(t,r,i,n,a,{noAngle:!0,noLineDash:!0,noSelect:!0}),NJ.hasLines(r)&&(a("connectgaps"),cir(t,r,i,n,a)),NJ.hasText(r)&&(a("texttemplate"),a("texttemplatefallback"),fir(t,r,n,a,{noSelect:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0}));var s=(r.line||{}).color,l=(r.marker||{}).color;a("surfaceaxis")>=0&&a("surfacecolor",s||l);for(var u=["x","y","z"],c=0;c<3;++c){var f="projection."+u[c];a(f+".show")&&(a(f+".opacity"),a(f+".scale"))}var h=pOe.getComponentMethod("errorbars","supplyDefaults");h(t,r,s||l||i,{axis:"z"}),h(t,r,s||l||i,{axis:"y",inherit:"z"}),h(t,r,s||l||i,{axis:"x",inherit:"z"})};function dir(e,t,r,i){var n=0,a=r("x"),o=r("y"),s=r("z"),l=pOe.getComponentMethod("calendars","handleTraceDefaults");return l(e,t,["x","y","z"],i),a&&o&&s&&(n=Math.min(a.length,o.length,s.length),t._length=t._xlength=t._ylength=t._zlength=n),n}});var yOe=W(($Zr,mOe)=>{"use strict";var pir=k1(),vir=Dd();mOe.exports=function(t,r){var i=[{x:!1,y:!1,trace:r,t:{}}];return pir(i,r),vir(t,r),i}});var bOe=W((WZr,xOe)=>{xOe.exports=gir;function gir(e,t){if(typeof e!="string")throw new TypeError("must specify type string");if(t=t||{},typeof document=="undefined"&&!t.canvas)return null;var r=t.canvas||document.createElement("canvas");typeof t.width=="number"&&(r.width=t.width),typeof t.height=="number"&&(r.height=t.height);var i=t,n;try{var a=[e];e.indexOf("webgl")===0&&a.push("experimental-"+e);for(var o=0;o{var mir=bOe();_Oe.exports=function(t){return mir("webgl",t)}});var UJ=W((XZr,AOe)=>{"use strict";var TOe=ai(),yir=function(){};AOe.exports=function(t){for(var r in t)typeof t[r]=="function"&&(t[r]=yir);t.destroy=function(){t.container.parentNode.removeChild(t.container)};var i=document.createElement("div");i.className="no-webgl",i.style.cursor="pointer",i.style.fontSize="24px",i.style.color=TOe.defaults[0],i.style.position="absolute",i.style.left=i.style.top="0px",i.style.width=i.style.height="100%",i.style["background-color"]=TOe.lightLine,i.style["z-index"]=30;var n=document.createElement("p");return n.textContent="WebGL is not supported by your browser - visit https://get.webgl.org for more info",n.style.position="relative",n.style.top="50%",n.style.left="50%",n.style.height="30%",n.style.width="50%",n.style.margin="-15% 0 0 -25%",i.appendChild(n),t.container.appendChild(i),t.container.style.background="#FFFFFF",t.container.onclick=function(){window.open("https://get.webgl.org")},!1}});var EOe=W((ZZr,SOe)=>{"use strict";var R_=gm(),xir=it(),bir=["xaxis","yaxis","zaxis"];function MOe(){this.bounds=[[-10,-10,-10],[10,10,10]],this.ticks=[[],[],[]],this.tickEnable=[!0,!0,!0],this.tickFont=["sans-serif","sans-serif","sans-serif"],this.tickSize=[12,12,12],this.tickFontWeight=["normal","normal","normal","normal"],this.tickFontStyle=["normal","normal","normal","normal"],this.tickFontVariant=["normal","normal","normal","normal"],this.tickAngle=[0,0,0],this.tickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.tickPad=[18,18,18],this.labels=["x","y","z"],this.labelEnable=[!0,!0,!0],this.labelFont=["Open Sans","Open Sans","Open Sans"],this.labelSize=[20,20,20],this.labelFontWeight=["normal","normal","normal","normal"],this.labelFontStyle=["normal","normal","normal","normal"],this.labelFontVariant=["normal","normal","normal","normal"],this.labelColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.labelPad=[30,30,30],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=[10,10,10],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=[!0,!0,!0],this.backgroundColor=[[.8,.8,.8,.5],[.8,.8,.8,.5],[.8,.8,.8,.5]],this._defaultTickPad=this.tickPad.slice(),this._defaultLabelPad=this.labelPad.slice(),this._defaultLineTickLength=this.lineTickLength.slice()}var _ir=MOe.prototype;_ir.merge=function(e,t){for(var r=this,i=0;i<3;++i){var n=t[bir[i]];if(!n.visible){r.tickEnable[i]=!1,r.labelEnable[i]=!1,r.lineEnable[i]=!1,r.lineTickEnable[i]=!1,r.gridEnable[i]=!1,r.zeroEnable[i]=!1,r.backgroundEnable[i]=!1;continue}r.labels[i]=e._meta?xir.templateString(n.title.text,e._meta):n.title.text,"font"in n.title&&(n.title.font.color&&(r.labelColor[i]=R_(n.title.font.color)),n.title.font.family&&(r.labelFont[i]=n.title.font.family),n.title.font.size&&(r.labelSize[i]=n.title.font.size),n.title.font.weight&&(r.labelFontWeight[i]=n.title.font.weight),n.title.font.style&&(r.labelFontStyle[i]=n.title.font.style),n.title.font.variant&&(r.labelFontVariant[i]=n.title.font.variant)),"showline"in n&&(r.lineEnable[i]=n.showline),"linecolor"in n&&(r.lineColor[i]=R_(n.linecolor)),"linewidth"in n&&(r.lineWidth[i]=n.linewidth),"showgrid"in n&&(r.gridEnable[i]=n.showgrid),"gridcolor"in n&&(r.gridColor[i]=R_(n.gridcolor)),"gridwidth"in n&&(r.gridWidth[i]=n.gridwidth),n.type==="log"?r.zeroEnable[i]=!1:"zeroline"in n&&(r.zeroEnable[i]=n.zeroline),"zerolinecolor"in n&&(r.zeroLineColor[i]=R_(n.zerolinecolor)),"zerolinewidth"in n&&(r.zeroLineWidth[i]=n.zerolinewidth),"ticks"in n&&n.ticks?r.lineTickEnable[i]=!0:r.lineTickEnable[i]=!1,"ticklen"in n&&(r.lineTickLength[i]=r._defaultLineTickLength[i]=n.ticklen),"tickcolor"in n&&(r.lineTickColor[i]=R_(n.tickcolor)),"tickwidth"in n&&(r.lineTickWidth[i]=n.tickwidth),"tickangle"in n&&(r.tickAngle[i]=n.tickangle==="auto"?-3600:Math.PI*-n.tickangle/180),"showticklabels"in n&&(r.tickEnable[i]=n.showticklabels),"tickfont"in n&&(n.tickfont.color&&(r.tickColor[i]=R_(n.tickfont.color)),n.tickfont.family&&(r.tickFont[i]=n.tickfont.family),n.tickfont.size&&(r.tickSize[i]=n.tickfont.size),n.tickfont.weight&&(r.tickFontWeight[i]=n.tickfont.weight),n.tickfont.style&&(r.tickFontStyle[i]=n.tickfont.style),n.tickfont.variant&&(r.tickFontVariant[i]=n.tickfont.variant)),"mirror"in n?["ticks","all","allticks"].indexOf(n.mirror)!==-1?(r.lineTickMirror[i]=!0,r.lineMirror[i]=!0):n.mirror===!0?(r.lineTickMirror[i]=!1,r.lineMirror[i]=!0):(r.lineTickMirror[i]=!1,r.lineMirror[i]=!1):r.lineMirror[i]=!1,"showbackground"in n&&n.showbackground!==!1?(r.backgroundEnable[i]=!0,r.backgroundColor[i]=R_(n.backgroundcolor)):r.backgroundEnable[i]=!1}};function wir(e,t){var r=new MOe;return r.merge(e,t),r}SOe.exports=wir});var DOe=W((KZr,COe)=>{"use strict";var Tir=gm(),Air=["xaxis","yaxis","zaxis"];function kOe(){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 Mir=kOe.prototype;Mir.merge=function(e){for(var t=0;t<3;++t){var r=e[Air[t]];if(!r.visible){this.enabled[t]=!1,this.drawSides[t]=!1;continue}this.enabled[t]=r.showspikes,this.colors[t]=Tir(r.spikecolor),this.drawSides[t]=r.spikesides,this.lineWidth[t]=r.spikethickness}};function Sir(e){var t=new kOe;return t.merge(e),t}COe.exports=Sir});var POe=W((JZr,LOe)=>{"use strict";LOe.exports=Fir;var FOe=Wi(),Eir=it(),kir=["xaxis","yaxis","zaxis"],Cir=[0,0,0];function Dir(e){for(var t=new Array(3),r=0;r<3;++r){for(var i=e[r],n=new Array(i.length),a=0;a/g," "));n[a]=u,o.tickmode=s}}t.ticks=n;for(var a=0;a<3;++a){Cir[a]=.5*(e.glplot.bounds[0][a]+e.glplot.bounds[1][a]);for(var c=0;c<2;++c)t.bounds[c][a]=e.glplot.bounds[c][a]}e.contourLevels=Dir(n)}});var NOe=W((QZr,OOe)=>{"use strict";var zOe=lc().gl_plot3d,Lir=zOe.createCamera,IOe=zOe.createScene,Pir=wOe(),Iir=T7(),tR=xi(),uh=it(),eR=uh.preserveDrawingBuffer(),rR=Wi(),mv=Ls(),Rir=gm(),zir=UJ(),Bir=X$(),qir=EOe(),Oir=DOe(),Nir=POe(),Uir=jp().applyAutorangeOptions,TE,QI,BOe=!1;function qOe(e,t){var r=document.createElement("div"),i=e.container;this.graphDiv=e.graphDiv;var n=document.createElementNS("http://www.w3.org/2000/svg","svg");n.style.position="absolute",n.style.top=n.style.left="0px",n.style.width=n.style.height="100%",n.style["z-index"]=20,n.style["pointer-events"]="none",r.appendChild(n),this.svgContainer=n,r.id=e.id,r.style.position="absolute",r.style.top=r.style.left="0px",r.style.width=r.style.height="100%",i.appendChild(r),this.fullLayout=t,this.id=e.id||"scene",this.fullSceneLayout=t[this.id],this.plotArgs=[[],{},{}],this.axesOptions=qir(t,t[this.id]),this.spikeOptions=Oir(t[this.id]),this.container=r,this.staticMode=!!e.staticPlot,this.pixelRatio=this.pixelRatio||e.plotGlPixelRatio||2,this.dataScale=[1,1,1],this.contourLevels=[[],[],[]],this.convertAnnotations=tR.getComponentMethod("annotations3d","convert"),this.drawAnnotations=tR.getComponentMethod("annotations3d","draw"),this.initializeGLPlot()}var uf=qOe.prototype;uf.prepareOptions=function(){var e=this,t={canvas:e.canvas,gl:e.gl,glOptions:{preserveDrawingBuffer:eR,premultipliedAlpha:!0,antialias:!0},container:e.container,axes:e.axesOptions,spikes:e.spikeOptions,pickRadius:10,snapToData:!0,autoScale:!0,autoBounds:!1,cameraObject:e.camera,pixelRatio:e.pixelRatio};if(e.staticMode){if(!QI&&(TE=document.createElement("canvas"),QI=Pir({canvas:TE,preserveDrawingBuffer:!0,premultipliedAlpha:!0,antialias:!0}),!QI))throw new Error("error creating static canvas/context for image server");t.gl=QI,t.canvas=TE}return t};var ROe=!0;uf.tryCreatePlot=function(){var e=this,t=e.prepareOptions(),r=!0;try{e.glplot=IOe(t)}catch(i){if(e.staticMode||!ROe||eR)r=!1;else{uh.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{eR=t.glOptions.preserveDrawingBuffer=!0,e.glplot=IOe(t)}catch(n){eR=t.glOptions.preserveDrawingBuffer=!1,r=!1}}}return ROe=!1,r};uf.initializeGLCamera=function(){var e=this,t=e.fullSceneLayout.camera,r=t.projection.type==="orthographic";e.camera=Lir(e.container,{center:[t.center.x,t.center.y,t.center.z],eye:[t.eye.x,t.eye.y,t.eye.z],up:[t.up.x,t.up.y,t.up.z],_ortho:r,zoomMin:.01,zoomMax:100,mode:"orbit"})};uf.initializeGLPlot=function(){var e=this;e.initializeGLCamera();var t=e.tryCreatePlot();if(!t)return zir(e);e.traces={},e.make4thDimension();var r=e.graphDiv,i=r.layout,n=function(){var o={};return e.isCameraChanged(i)&&(o[e.id+".camera"]=e.getCamera()),e.isAspectChanged(i)&&(o[e.id+".aspectratio"]=e.glplot.getAspectratio(),i[e.id].aspectmode!=="manual"&&(e.fullSceneLayout.aspectmode=i[e.id].aspectmode=o[e.id+".aspectmode"]="manual")),o},a=function(o){if(o.fullSceneLayout.dragmode!==!1){var s=n();o.saveLayout(i),o.graphDiv.emit("plotly_relayout",s)}};return e.glplot.canvas&&(e.glplot.canvas.addEventListener("mouseup",function(){a(e)}),e.glplot.canvas.addEventListener("touchstart",function(){BOe=!0}),e.glplot.canvas.addEventListener("wheel",function(o){if(r._context._scrollZoom.gl3d){if(e.camera._ortho){var s=o.deltaX>o.deltaY?1.1:.9090909090909091,l=e.glplot.getAspectratio();e.glplot.setAspectratio({x:s*l.x,y:s*l.y,z:s*l.z})}a(e)}},Iir?{passive:!1}:!1),e.glplot.canvas.addEventListener("mousemove",function(){if(e.fullSceneLayout.dragmode!==!1&&e.camera.mouseListener.buttons!==0){var o=n();e.graphDiv.emit("plotly_relayouting",o)}}),e.staticMode||e.glplot.canvas.addEventListener("webglcontextlost",function(o){r&&r.emit&&r.emit("plotly_webglcontextlost",{event:o,layer:e.id})},!1)),e.glplot.oncontextloss=function(){e.recoverContext()},e.glplot.onrender=function(){e.render()},!0};uf.render=function(){var e=this,t=e.graphDiv,r,i=e.svgContainer,n=e.container.getBoundingClientRect();t._fullLayout._calcInverseTransform(t);var a=t._fullLayout._invScaleX,o=t._fullLayout._invScaleY,s=n.width*a,l=n.height*o;i.setAttributeNS(null,"viewBox","0 0 "+s+" "+l),i.setAttributeNS(null,"width",s),i.setAttributeNS(null,"height",l),Nir(e),e.glplot.axes.update(e.axesOptions);for(var u=Object.keys(e.traces),c=null,f=e.glplot.selection,h=0;h")):r.type==="isosurface"||r.type==="volume"?(g.valueLabel=rR.hoverLabelText(e._mockAxis,e._mockAxis.d2l(f.traceCoordinate[3]),r.valuehoverformat),x.push("value: "+g.valueLabel),f.textLabel&&x.push(f.textLabel),S=x.join("
")):S=f.textLabel;var T={x:f.traceCoordinate[0],y:f.traceCoordinate[1],z:f.traceCoordinate[2],data:v._input,fullData:v,curveNumber:v.index,pointNumber:m};mv.appendArrayPointValue(T,v,m),r._module.eventData&&(T=v._module.eventData(T,f,v,{},m));var A={points:[T]};if(e.fullSceneLayout.hovermode){var y=[];mv.loneHover({trace:v,x:(.5+.5*d[0]/d[3])*s,y:(.5-.5*d[1]/d[3])*l,xLabel:g.xLabel,yLabel:g.yLabel,zLabel:g.zLabel,text:S,name:c.name,color:mv.castHoverOption(v,m,"bgcolor")||c.color,borderColor:mv.castHoverOption(v,m,"bordercolor"),fontFamily:mv.castHoverOption(v,m,"font.family"),fontSize:mv.castHoverOption(v,m,"font.size"),fontColor:mv.castHoverOption(v,m,"font.color"),nameLength:mv.castHoverOption(v,m,"namelength"),textAlign:mv.castHoverOption(v,m,"align"),hovertemplate:uh.castOption(v,m,"hovertemplate"),hovertemplateLabels:uh.extendFlat({},T,g),eventData:[T]},{container:i,gd:t,inOut_bbox:y}),T.bbox=y[0]}f.distance<5&&(f.buttons||BOe)?t.emit("plotly_click",A):t.emit("plotly_hover",A),this.oldEventData=A}else mv.loneUnhover(i),this.oldEventData&&t.emit("plotly_unhover",this.oldEventData),this.oldEventData=void 0;e.drawAnnotations(e)};uf.recoverContext=function(){var e=this;e.glplot.dispose();var t=function(){if(e.glplot.gl.isContextLost()){requestAnimationFrame(t);return}if(!e.initializeGLPlot()){uh.error("Catastrophic and unrecoverable WebGL error. Context lost.");return}e.plot.apply(e,e.plotArgs)};requestAnimationFrame(t)};var AE=["xaxis","yaxis","zaxis"];function Vir(e,t,r){for(var i=e.fullSceneLayout,n=0;n<3;n++){var a=AE[n],o=a.charAt(0),s=i[a],l=t[o],u=t[o+"calendar"],c=t["_"+o+"length"];if(!uh.isArrayOrTypedArray(l))r[0][n]=Math.min(r[0][n],0),r[1][n]=Math.max(r[1][n],c-1);else for(var f,h=0;h<(c||l.length);h++)if(uh.isArrayOrTypedArray(l[h]))for(var p=0;pv[1][o])v[0][o]=-1,v[1][o]=1;else{var M=v[1][o]-v[0][o];v[0][o]-=M/32,v[1][o]+=M/32}if(w=[v[0][o],v[1][o]],w=Uir(w,l),v[0][o]=w[0],v[1][o]=w[1],l.isReversed()){var C=v[0][o];v[0][o]=v[1][o],v[1][o]=C}}else w=l.range,v[0][o]=l.r2l(w[0]),v[1][o]=l.r2l(w[1]);v[0][o]===v[1][o]&&(v[0][o]-=1,v[1][o]+=1),m[o]=v[1][o]-v[0][o],l.range=[v[0][o],v[1][o]],l.limitRange(),i.glplot.setBounds(o,{min:l.range[0]*p[o],max:l.range[1]*p[o]})}var k,D=c.aspectmode;if(D==="cube")k=[1,1,1];else if(D==="manual"){var L=c.aspectratio;k=[L.x,L.y,L.z]}else if(D==="auto"||D==="data"){var P=[1,1,1];for(o=0;o<3;++o){l=c[AE[o]],u=l.type;var R=g[u];P[o]=Math.pow(R.acc,1/R.count)/p[o]}D==="data"||Math.max.apply(null,P)/Math.min.apply(null,P)<=4?k=P:k=[1,1,1]}else throw new Error("scene.js aspectRatio was not one of the enumerated types");c.aspectratio.x=f.aspectratio.x=k[0],c.aspectratio.y=f.aspectratio.y=k[1],c.aspectratio.z=f.aspectratio.z=k[2],i.glplot.setAspectratio(c.aspectratio),i.viewInitial.aspectratio||(i.viewInitial.aspectratio={x:c.aspectratio.x,y:c.aspectratio.y,z:c.aspectratio.z}),i.viewInitial.aspectmode||(i.viewInitial.aspectmode=c.aspectmode);var F=c.domain||null,I=t._size||null;if(F&&I){var B=i.container.style;B.position="absolute",B.left=I.l+F.x[0]*I.w+"px",B.top=I.t+(1-F.y[1])*I.h+"px",B.width=I.w*(F.x[1]-F.x[0])+"px",B.height=I.h*(F.y[1]-F.y[0])+"px"}i.glplot.redraw()}};uf.destroy=function(){var e=this;e.glplot&&(e.camera.mouseListener.enabled=!1,e.container.removeEventListener("wheel",e.camera.wheelListener),e.camera=null,e.glplot.dispose(),e.container.parentNode.removeChild(e.container),e.glplot=null)};function Hir(e){return[[e.eye.x,e.eye.y,e.eye.z],[e.center.x,e.center.y,e.center.z],[e.up.x,e.up.y,e.up.z]]}function jir(e){return{up:{x:e.up[0],y:e.up[1],z:e.up[2]},center:{x:e.center[0],y:e.center[1],z:e.center[2]},eye:{x:e.eye[0],y:e.eye[1],z:e.eye[2]},projection:{type:e._ortho===!0?"orthographic":"perspective"}}}uf.getCamera=function(){var e=this;return e.camera.view.recalcMatrix(e.camera.view.lastT()),jir(e.camera)};uf.setViewport=function(e){var t=this,r=e.camera;t.camera.lookAt.apply(this,Hir(r)),t.glplot.setAspectratio(e.aspectratio);var i=r.projection.type==="orthographic",n=t.camera._ortho;i!==n&&(t.glplot.redraw(),t.glplot.clearRGBA(),t.glplot.dispose(),t.initializeGLPlot())};uf.isCameraChanged=function(e){var t=this,r=t.getCamera(),i=uh.nestedProperty(e,t.id+".camera"),n=i.get();function a(u,c,f,h){var p=["up","center","eye"],d=["x","y","z"];return c[p[f]]&&u[p[f]][d[h]]===c[p[f]][d[h]]}var o=!1;if(n===void 0)o=!0;else{for(var s=0;s<3;s++)for(var l=0;l<3;l++)if(!a(r,n,s,l)){o=!0;break}(!n.projection||r.projection&&r.projection.type!==n.projection.type)&&(o=!0)}return o};uf.isAspectChanged=function(e){var t=this,r=t.glplot.getAspectratio(),i=uh.nestedProperty(e,t.id+".aspectratio"),n=i.get();return n===void 0||n.x!==r.x||n.y!==r.y||n.z!==r.z};uf.saveLayout=function(e){var t=this,r=t.fullLayout,i,n,a,o,s,l,u=t.isCameraChanged(e),c=t.isAspectChanged(e),f=u||c;if(f){var h={};if(u&&(i=t.getCamera(),n=uh.nestedProperty(e,t.id+".camera"),a=n.get(),h[t.id+".camera"]=a),c&&(o=t.glplot.getAspectratio(),s=uh.nestedProperty(e,t.id+".aspectratio"),l=s.get(),h[t.id+".aspectratio"]=l),tR.call("_storeDirectGUIEdit",e,r._preGUI,h),u){n.set(i);var p=uh.nestedProperty(r,t.id+".camera");p.set(i)}if(c){s.set(o);var d=uh.nestedProperty(r,t.id+".aspectratio");d.set(o),t.glplot.redraw()}}return f};uf.updateFx=function(e,t){var r=this,i=r.camera;if(i)if(e==="orbit")i.mode="orbit",i.keyBindingMode="rotate";else if(e==="turntable"){i.up=[0,0,1],i.mode="turntable",i.keyBindingMode="rotate";var n=r.graphDiv,a=n._fullLayout,o=r.fullSceneLayout.camera,s=o.up.x,l=o.up.y,u=o.up.z;if(u/Math.sqrt(s*s+l*l+u*u)<.999){var c=r.id+".camera.up",f={x:0,y:0,z:1},h={};h[c]=f;var p=n.layout;tR.call("_storeDirectGUIEdit",p,a._preGUI,h),o.up=f,uh.nestedProperty(p,c).set(f)}}else i.keyBindingMode=e;r.fullSceneLayout.hovermode=t};function $ir(e,t,r){for(var i=0,n=r-1;i0)for(var s=255/o,l=0;l<3;++l)e[a+l]=Math.min(s*e[a+l],255)}}uf.toImage=function(e){var t=this;e||(e="png"),t.staticMode&&t.container.appendChild(TE),t.glplot.redraw();var r=t.glplot.gl,i=r.drawingBufferWidth,n=r.drawingBufferHeight;r.bindFramebuffer(r.FRAMEBUFFER,null);var a=new Uint8Array(i*n*4);r.readPixels(0,0,i,n,r.RGBA,r.UNSIGNED_BYTE,a),$ir(a,i,n),Wir(a,i,n);var o=document.createElement("canvas");o.width=i,o.height=n;var s=o.getContext("2d",{willReadFrequently:!0}),l=s.createImageData(i,n);l.data.set(a),s.putImageData(l,0,0);var u;switch(e){case"jpeg":u=o.toDataURL("image/jpeg");break;case"webp":u=o.toDataURL("image/webp");break;default:u=o.toDataURL("image/png")}return t.staticMode&&t.container.removeChild(TE),u};uf.setConvert=function(){for(var e=this,t=0;t<3;t++){var r=e.fullSceneLayout[AE[t]];rR.setConvert(r,e.fullLayout),r.setScale=uh.noop}};uf.make4thDimension=function(){var e=this,t=e.graphDiv,r=t._fullLayout;e._mockAxis={type:"linear",showexponent:"all",exponentformat:"B"},rR.setConvert(e._mockAxis,r)};OOe.exports=qOe});var VOe=W((eKr,UOe)=>{"use strict";UOe.exports={scene:{valType:"subplotid",dflt:"scene",editType:"calc+clearAxisTypes"}}});var GJ=W((tKr,GOe)=>{"use strict";var Yir=ai(),Jn=nc(),VJ=nn().extendFlat,Xir=cs().overrideAll;GOe.exports=Xir({visible:Jn.visible,showspikes:{valType:"boolean",dflt:!0},spikesides:{valType:"boolean",dflt:!0},spikethickness:{valType:"number",min:0,dflt:2},spikecolor:{valType:"color",dflt:Yir.defaultLine},showbackground:{valType:"boolean",dflt:!1},backgroundcolor:{valType:"color",dflt:"rgba(204, 204, 204, 0.5)"},showaxeslabels:{valType:"boolean",dflt:!0},color:Jn.color,categoryorder:Jn.categoryorder,categoryarray:Jn.categoryarray,title:{text:Jn.title.text,font:Jn.title.font},type:VJ({},Jn.type,{values:["-","linear","log","date","category"]}),autotypenumbers:Jn.autotypenumbers,autorange:Jn.autorange,autorangeoptions:{minallowed:Jn.autorangeoptions.minallowed,maxallowed:Jn.autorangeoptions.maxallowed,clipmin:Jn.autorangeoptions.clipmin,clipmax:Jn.autorangeoptions.clipmax,include:Jn.autorangeoptions.include,editType:"plot"},rangemode:Jn.rangemode,minallowed:Jn.minallowed,maxallowed:Jn.maxallowed,range:VJ({},Jn.range,{items:[{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}}],anim:!1}),tickmode:Jn.minor.tickmode,nticks:Jn.nticks,tick0:Jn.tick0,dtick:Jn.dtick,tickvals:Jn.tickvals,ticktext:Jn.ticktext,ticks:Jn.ticks,mirror:Jn.mirror,ticklen:Jn.ticklen,tickwidth:Jn.tickwidth,tickcolor:Jn.tickcolor,showticklabels:Jn.showticklabels,labelalias:Jn.labelalias,tickfont:Jn.tickfont,tickangle:Jn.tickangle,tickprefix:Jn.tickprefix,showtickprefix:Jn.showtickprefix,ticksuffix:Jn.ticksuffix,showticksuffix:Jn.showticksuffix,showexponent:Jn.showexponent,exponentformat:Jn.exponentformat,minexponent:Jn.minexponent,separatethousands:Jn.separatethousands,tickformat:Jn.tickformat,tickformatstops:Jn.tickformatstops,hoverformat:Jn.hoverformat,showline:Jn.showline,linecolor:Jn.linecolor,linewidth:Jn.linewidth,showgrid:Jn.showgrid,gridcolor:VJ({},Jn.gridcolor,{dflt:"rgb(204, 204, 204)"}),gridwidth:Jn.gridwidth,zeroline:Jn.zeroline,zerolinecolor:Jn.zerolinecolor,zerolinewidth:Jn.zerolinewidth},"plot","from-root")});var WJ=W((rKr,HOe)=>{"use strict";var HJ=GJ(),Zir=fs().attributes,jJ=nn().extendFlat,Kir=it().counterRegex;function $J(e,t,r){return{x:{valType:"number",dflt:e,editType:"camera"},y:{valType:"number",dflt:t,editType:"camera"},z:{valType:"number",dflt:r,editType:"camera"},editType:"camera"}}HOe.exports={_arrayAttrRegexps:[Kir("scene",".annotations",!0)],bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"plot"},camera:{up:jJ($J(0,0,1),{}),center:jJ($J(0,0,0),{}),eye:jJ($J(1.25,1.25,1.25),{}),projection:{type:{valType:"enumerated",values:["perspective","orthographic"],dflt:"perspective",editType:"calc"},editType:"calc"},editType:"camera"},domain:Zir({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:HJ,yaxis:HJ,zaxis:HJ,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"}});var YOe=W((iKr,WOe)=>{"use strict";var Jir=ai(),jOe=it(),Qir=Ia(),enr=GJ(),tnr=P$(),rnr=LM(),$Oe=["xaxis","yaxis","zaxis"],inr=13600/187;WOe.exports=function(t,r,i){var n,a;function o(u,c){return jOe.coerce(n,a,enr,u,c)}for(var s=0;s<$Oe.length;s++){var l=$Oe[s];n=t[l]||{},a=Qir.newContainer(r,l),a._id=l[0]+i.scene,a._name=l,tnr(n,a,o,i),rnr(n,a,o,{font:i.font,letter:l[0],data:i.data,showGrid:!0,noAutotickangles:!0,noMinorloglabels:!0,noTicklabelindex:!0,noTickson:!0,noTicklabelmode:!0,noTicklabelshift:!0,noTicklabelstandoff:!0,noTicklabelstep:!0,noTicklabelposition:!0,noTicklabeloverflow:!0,noInsiderange:!0,noUnifiedhovertitle:!0,bgColor:i.bgColor,calendar:i.calendar},i.fullLayout),o("gridcolor",Jir.mix(a.color,i.bgColor,inr)),o("title.text",l[0]),a.setScale=jOe.noop,o("showspikes")&&(o("spikesides"),o("spikethickness"),o("spikecolor",a.color)),o("showaxeslabels"),o("showbackground")&&o("backgroundcolor")}}});var JOe=W((nKr,KOe)=>{"use strict";var nnr=it(),anr=ai(),onr=xi(),snr=Kb(),lnr=YOe(),XOe=WJ(),unr=Ac().getSubplotData,ZOe="gl3d";KOe.exports=function(t,r,i){var n=r._basePlotModules.length>1;function a(o){if(!n){var s=nnr.validate(t[o],XOe[o]);if(s)return t[o]}}snr(t,r,i,{type:ZOe,attributes:XOe,handleDefaults:cnr,fullLayout:r,font:r.font,fullData:i,getDfltFromLayout:a,autotypenumbersDflt:r.autotypenumbers,paper_bgcolor:r.paper_bgcolor,calendar:r.calendar})};function cnr(e,t,r,i){for(var n=r("bgcolor"),a=anr.combine(n,i.paper_bgcolor),o=["up","center","eye"],s=0;s.999)&&(h="turntable")}else h="turntable";r("dragmode",h),r("hovermode",i.getDfltFromLayout("hovermode"))}});var F2=W(ch=>{"use strict";var fnr=cs().overrideAll,hnr=py(),dnr=NOe(),pnr=Ac().getSubplotData,vnr=it(),gnr=(vd(),Pt(pd)),q4="gl3d",YJ="scene";ch.name=q4;ch.attr=YJ;ch.idRoot=YJ;ch.idRegex=ch.attrRegex=vnr.counterRegex("scene");ch.attributes=VOe();ch.layoutAttributes=WJ();ch.baseLayoutAttrOverrides=fnr({hoverlabel:hnr.hoverlabel},"plot","nested");ch.supplyLayoutDefaults=JOe();ch.plot=function(t){for(var r=t._fullLayout,i=t._fullData,n=r._subplots[q4],a=0;a{"use strict";QOe.exports={plot:uOe(),attributes:OJ(),markerSymbols:(KI(),Pt(ZI)).default,supplyDefaults:gOe(),colorbar:[{container:"marker",min:"cmin",max:"cmax"},{container:"line",min:"cmin",max:"cmax"}],calc:yOe(),moduleType:"trace",name:"scatter3d",basePlotModule:F2(),categories:["gl3d","symbols","showLegend","scatter-like"],meta:{}}});var rNe=W((sKr,tNe)=>{"use strict";tNe.exports=eNe()});var ME=W((lKr,aNe)=>{"use strict";var iNe=ai(),mnr=Fo(),XJ=ws().axisHoverFormat,{hovertemplateAttrs:ynr,templatefallbackAttrs:xnr}=$a(),nNe=Ka(),ZJ=nn().extendFlat,bnr=cs().overrideAll;function KJ(e){return{valType:"boolean",dflt:!1}}function JJ(e){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:KJ("x"),y:KJ("y"),z:KJ("z")},color:{valType:"color",dflt:iNe.defaultLine},usecolormap:{valType:"boolean",dflt:!1},width:{valType:"number",min:1,max:16,dflt:2},highlight:{valType:"boolean",dflt:!0},highlightcolor:{valType:"color",dflt:iNe.defaultLine},highlightwidth:{valType:"number",min:1,max:16,dflt:2}}}var QJ=aNe.exports=bnr(ZJ({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:ynr(),hovertemplatefallback:xnr(),xhoverformat:XJ("x"),yhoverformat:XJ("y"),zhoverformat:XJ("z"),connectgaps:{valType:"boolean",dflt:!1,editType:"calc"},surfacecolor:{valType:"data_array"}},mnr("",{colorAttr:"z or surfacecolor",showScaleDflt:!0,autoColorDflt:!1,editTypeOverride:"calc"}),{contours:{x:JJ("x"),y:JJ("y"),z:JJ("z")},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,description:"Represents the level that incident rays are reflected in a single direction, causing shine."},roughness:{valType:"number",min:0,max:1,dflt:.5,description:"Alters specular reflection; the rougher the surface, the wider and less contrasty the shine."},fresnel:{valType:"number",min:0,max:5,dflt:.2}},opacity:{valType:"number",min:0,max:1,dflt:1},opacityscale:{valType:"any",editType:"calc"},hoverinfo:ZJ({},nNe.hoverinfo),showlegend:ZJ({},nNe.showlegend,{dflt:!1})}),"calc","nested");QJ.x.editType=QJ.y.editType=QJ.z.editType="calc+clearAxisTypes"});var tQ=W((uKr,lNe)=>{"use strict";var _nr=xi(),oNe=it(),wnr=zu(),Tnr=ME(),eQ=.1;function Anr(e,t){for(var r=[],i=32,n=0;n{"use strict";var uNe=tf();cNe.exports=function(t,r){r.surfacecolor?uNe(t,r,{vals:r.surfacecolor,containerStr:"",cLetter:"c"}):uNe(t,r,{vals:r.z,containerStr:"",cLetter:"c"})}});var mNe=W((fKr,gNe)=>{"use strict";var Enr=lc().gl_surface3d,O4=lc().ndarray,knr=lc().ndarray_linear_interpolate.d2,Cnr=KL(),Dnr=JL(),SE=it().isArrayOrTypedArray,Fnr=mm().parseColorScale,hNe=gm(),Lnr=es().extractOpts;function pNe(e,t,r){this.scene=e,this.uid=r,this.surface=t,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 yv=pNe.prototype;yv.getXat=function(e,t,r,i){var n=SE(this.data.x)?SE(this.data.x[0])?this.data.x[t][e]:this.data.x[e]:e;return r===void 0?n:i.d2l(n,0,r)};yv.getYat=function(e,t,r,i){var n=SE(this.data.y)?SE(this.data.y[0])?this.data.y[t][e]:this.data.y[t]:t;return r===void 0?n:i.d2l(n,0,r)};yv.getZat=function(e,t,r,i){var n=this.data.z[t][e];return n===null&&this.data.connectgaps&&this.data._interpolatedZ&&(n=this.data._interpolatedZ[t][e]),r===void 0?n:i.d2l(n,0,r)};yv.handlePick=function(e){if(e.object===this.surface){var t=(e.data.index[0]-1)/this.dataScaleX-1,r=(e.data.index[1]-1)/this.dataScaleY-1,i=Math.max(Math.min(Math.round(t),this.data.z[0].length-1),0),n=Math.max(Math.min(Math.round(r),this.data._ylength-1),0);e.index=[i,n],e.traceCoordinate=[this.getXat(i,n),this.getYat(i,n),this.getZat(i,n)],e.dataCoordinate=[this.getXat(i,n,this.data.xcalendar,this.scene.fullSceneLayout.xaxis),this.getYat(i,n,this.data.ycalendar,this.scene.fullSceneLayout.yaxis),this.getZat(i,n,this.data.zcalendar,this.scene.fullSceneLayout.zaxis)];for(var a=0;a<3;a++){var o=e.dataCoordinate[a];o!=null&&(e.dataCoordinate[a]*=this.scene.dataScale[a])}var s=this.data.hovertext||this.data.text;return SE(s)&&s[n]&&s[n][i]!==void 0?e.textLabel=s[n][i]:s?e.textLabel=s:e.textLabel="",e.data.dataCoordinate=e.dataCoordinate.slice(),this.surface.highlight(e.data),this.scene.glplot.spikes.position=e.dataCoordinate,!0}};function Pnr(e){var t=e[0].rgb,r=e[e.length-1].rgb;return t[0]===r[0]&&t[1]===r[1]&&t[2]===r[2]&&t[3]===r[3]}var N4=[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 Inr(e,t){if(e0){r=N4[i];break}return r}function znr(e,t){if(!(e<1||t<1)){for(var r=rQ(e),i=rQ(t),n=1,a=0;aiR;)i--,i/=Rnr(i),i++,i1?n:1};function qnr(e,t,r){var i=r[8]+r[2]*t[0]+r[5]*t[1];return e[0]=(r[6]+r[0]*t[0]+r[3]*t[1])/i,e[1]=(r[7]+r[1]*t[0]+r[4]*t[1])/i,e}function Onr(e,t,r){return Nnr(e,t,qnr,r),e}function Nnr(e,t,r,i){for(var n=[0,0],a=e.shape[0],o=e.shape[1],s=0;s0&&this.contourStart[i]!==null&&this.contourEnd[i]!==null&&this.contourEnd[i]>this.contourStart[i]))for(t[i]=!0,n=this.contourStart[i];nh&&(this.minValues[u]=h),this.maxValues[u]{"use strict";yNe.exports={attributes:ME(),supplyDefaults:tQ().supplyDefaults,colorbar:{min:"cmin",max:"cmax"},calc:fNe(),plot:mNe(),moduleType:"trace",name:"surface",basePlotModule:F2(),categories:["gl3d","2dMap","showLegend"],meta:{}}});var _Ne=W((dKr,bNe)=>{"use strict";bNe.exports=xNe()});var U4=W((pKr,TNe)=>{"use strict";var Gnr=Fo(),iQ=ws().axisHoverFormat,{hovertemplateAttrs:Hnr,templatefallbackAttrs:jnr}=$a(),L2=ME(),wNe=Ka(),P2=nn().extendFlat;TNe.exports=P2({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:Hnr({editType:"calc"}),hovertemplatefallback:jnr({editType:"calc"}),xhoverformat:iQ("x"),yhoverformat:iQ("y"),zhoverformat:iQ("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"}},Gnr("",{colorAttr:"`intensity`",showScaleDflt:!0,editTypeOverride:"calc"}),{opacity:L2.opacity,flatshading:{valType:"boolean",dflt:!1,editType:"calc"},contour:{show:P2({},L2.contours.x.show,{}),color:L2.contours.x.color,width:L2.contours.x.width,editType:"calc"},lightposition:{x:P2({},L2.lightposition.x,{dflt:1e5}),y:P2({},L2.lightposition.y,{dflt:1e5}),z:P2({},L2.lightposition.z,{dflt:0}),editType:"calc"},lighting:P2({vertexnormalsepsilon:{valType:"number",min:0,max:1,dflt:1e-12,editType:"calc",description:"Epsilon for vertex normals calculation avoids math issues arising from degenerate geometry."},facenormalsepsilon:{valType:"number",min:0,max:1,dflt:1e-6,editType:"calc",description:"Epsilon for face normals calculation avoids math issues arising from degenerate geometry."},editType:"calc"},L2.lighting),hoverinfo:P2({},wNe.hoverinfo,{editType:"calc"}),showlegend:P2({},wNe.showlegend,{dflt:!1})})});var aR=W((vKr,MNe)=>{"use strict";var $nr=Fo(),nR=ws().axisHoverFormat,{hovertemplateAttrs:Wnr,templatefallbackAttrs:Ynr}=$a(),EE=U4(),ANe=Ka(),nQ=nn().extendFlat,Xnr=cs().overrideAll;function aQ(e){return{show:{valType:"boolean",dflt:!1},locations:{valType:"data_array",dflt:[]},fill:{valType:"number",min:0,max:1,dflt:1}}}function oQ(e){return{show:{valType:"boolean",dflt:!0},fill:{valType:"number",min:0,max:1,dflt:1}}}var V4=MNe.exports=Xnr(nQ({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:aQ("x"),y:aQ("y"),z:aQ("z")},caps:{x:oQ("x"),y:oQ("y"),z:oQ("z")},text:{valType:"string",dflt:"",arrayOk:!0},hovertext:{valType:"string",dflt:"",arrayOk:!0},hovertemplate:Wnr(),hovertemplatefallback:Ynr(),xhoverformat:nR("x"),yhoverformat:nR("y"),zhoverformat:nR("z"),valuehoverformat:nR("value",1),showlegend:nQ({},ANe.showlegend,{dflt:!1})},$nr("",{colorAttr:"`value`",showScaleDflt:!0,editTypeOverride:"calc"}),{opacity:EE.opacity,lightposition:EE.lightposition,lighting:EE.lighting,flatshading:EE.flatshading,contour:EE.contour,hoverinfo:nQ({},ANe.hoverinfo)}),"calc","nested");V4.flatshading.dflt=!0;V4.lighting.facenormalsepsilon.dflt=0;V4.x.editType=V4.y.editType=V4.z.editType=V4.value.editType="calc+clearAxisTypes"});var sQ=W((gKr,ENe)=>{"use strict";var Znr=it(),Knr=xi(),Jnr=aR(),Qnr=zu();function ear(e,t,r,i){function n(a,o){return Znr.coerce(e,t,Jnr,a,o)}SNe(e,t,r,i,n)}function SNe(e,t,r,i,n){var a=n("isomin"),o=n("isomax");o!=null&&a!==void 0&&a!==null&&a>o&&(t.isomin=null,t.isomax=null);var s=n("x"),l=n("y"),u=n("z"),c=n("value");if(!s||!s.length||!l||!l.length||!u||!u.length||!c||!c.length){t.visible=!1;return}var f=Knr.getComponentMethod("calendars","handleTraceDefaults");f(e,t,["x","y","z"],i),n("valuehoverformat"),["x","y","z"].forEach(function(v){n(v+"hoverformat");var m="caps."+v,g=n(m+".show");g&&n(m+".fill");var w="slices."+v,_=n(w+".show");_&&(n(w+".fill"),n(w+".locations"))});var h=n("spaceframe.show");h&&n("spaceframe.fill");var p=n("surface.show");p&&(n("surface.count"),n("surface.fill"),n("surface.pattern"));var d=n("contour.show");d&&(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(v){n(v)}),Qnr(e,t,i,n,{prefix:"",cLetter:"c"}),t._length=null}ENe.exports={supplyDefaults:ear,supplyIsoDefaults:SNe}});var oR=W((mKr,CNe)=>{"use strict";var uQ=it(),tar=tf();function rar(e,t){t._len=Math.min(t.u.length,t.v.length,t.w.length,t.x.length,t.y.length,t.z.length),t._u=j1(t.u,t._len),t._v=j1(t.v,t._len),t._w=j1(t.w,t._len),t._x=j1(t.x,t._len),t._y=j1(t.y,t._len),t._z=j1(t.z,t._len);var r=kNe(t);t._gridFill=r.fill,t._Xs=r.Xs,t._Ys=r.Ys,t._Zs=r.Zs,t._len=r.len;var i=0,n,a,o;t.starts&&(n=j1(t.starts.x||[]),a=j1(t.starts.y||[]),o=j1(t.starts.z||[]),i=Math.min(n.length,a.length,o.length)),t._startsX=n||[],t._startsY=a||[],t._startsZ=o||[];var s=0,l=1/0,u;for(u=0;u1&&(_=t[n-1],S=r[n-1],T=i[n-1]),a=0;a_?"-":"+")+"x"),d=d.replace("y",(b>S?"-":"+")+"y"),d=d.replace("z",(x>T?"-":"+")+"z");var M=function(){n=0,A=[],y=[],E=[]};(!n||n{"use strict";var iar=tf(),nar=oR().processGrid,sR=oR().filter;DNe.exports=function(t,r){r._len=Math.min(r.x.length,r.y.length,r.z.length,r.value.length),r._x=sR(r.x,r._len),r._y=sR(r.y,r._len),r._z=sR(r.z,r._len),r._value=sR(r.value,r._len);var i=nar(r);r._gridFill=i.fill,r._Xs=i.Xs,r._Ys=i.Ys,r._Zs=i.Zs,r._len=i.len;for(var n=1/0,a=-1/0,o=0;o{"use strict";FNe.exports=function(t,r,i,n){n=n||t.length;for(var a=new Array(n),o=0;o{"use strict";var aar=lc().gl_mesh3d,oar=mm().parseColorScale,sar=it().isArrayOrTypedArray,lar=gm(),uar=es().extractOpts,LNe=G4(),kE=function(e,t){for(var r=t.length-1;r>0;r--){var i=Math.min(t[r],t[r-1]),n=Math.max(t[r],t[r-1]);if(n>i&&i-1}function O(we,Fe){return we===null?Fe:we}function $(we,Fe,Ee){M();var Ce=[Fe],be=[Ee];if(R>=1)Ce=[Fe],be=[Ee];else if(R>0){var Ie=I(Fe,Ee);Ce=Ie.xyzv,be=Ie.abc}for(var Oe=0;Oe-1?Ee[et]:E(bt,ut,vt);mt>-1?Qe[et]=mt:Qe[et]=k(bt,ut,vt,O(we,Xe))}D(Qe[0],Qe[1],Qe[2])}}function Y(we,Fe,Ee){var Ce=function(be,Ie,Oe){$(we,[Fe[be],Fe[Ie],Fe[Oe]],[Ee[be],Ee[Ie],Ee[Oe]])};Ce(0,1,2),Ce(2,3,0)}function K(we,Fe,Ee){var Ce=function(be,Ie,Oe){$(we,[Fe[be],Fe[Ie],Fe[Oe]],[Ee[be],Ee[Ie],Ee[Oe]])};Ce(0,1,2),Ce(3,0,1),Ce(2,3,0),Ce(1,2,3)}function j(we,Fe,Ee,Ce){var be=we[3];beCe&&(be=Ce);for(var Ie=(we[3]-be)/(we[3]-Fe[3]+1e-9),Oe=[],Qe=0;Qe<4;Qe++)Oe[Qe]=(1-Ie)*we[Qe]+Ie*Fe[Qe];return Oe}function q(we,Fe,Ee){return we>=Fe&&we<=Ee}function Q(we){var Fe=.001*(S-b);return we>=b-Fe&&we<=S+Fe}function U(we){for(var Fe=[],Ee=0;Ee<4;Ee++){var Ce=we[Ee];Fe.push([e._x[Ce],e._y[Ce],e._z[Ce],e._value[Ce]])}return Fe}var V=3;function X(we,Fe,Ee,Ce,be,Ie){Ie||(Ie=1),Ee=[-1,-1,-1];var Oe=!1,Qe=[q(Fe[0][3],Ce,be),q(Fe[1][3],Ce,be),q(Fe[2][3],Ce,be)];if(!Qe[0]&&!Qe[1]&&!Qe[2])return!1;var et=function(ut,vt,Xe){return Q(vt[0][3])&&Q(vt[1][3])&&Q(vt[2][3])?($(ut,vt,Xe),!0):IeQe?[w,Ie]:[Ie,_];ye(Fe,et[0],et[1])}}var bt=[[Math.min(b,_),Math.max(b,_)],[Math.min(w,S),Math.max(w,S)]];["x","y","z"].forEach(function(ut){for(var vt=[],Xe=0;Xe0&&(je.push(ct.id),ut==="x"?Re.push([ct.distRatio,0,0]):ut==="y"?Re.push([0,ct.distRatio,0]):Re.push([0,0,ct.distRatio]))}else ut==="x"?Ge=xe(1,p-1):ut==="y"?Ge=xe(1,d-1):Ge=xe(1,v-1);je.length>0&&(ut==="x"?vt[mt]=ce(we,je,_t,Ne,Re,vt[mt]):ut==="y"?vt[mt]=ee(we,je,_t,Ne,Re,vt[mt]):vt[mt]=ae(we,je,_t,Ne,Re,vt[mt]),mt++),Ge.length>0&&(ut==="x"?vt[mt]=ke(we,Ge,_t,Ne,vt[mt]):ut==="y"?vt[mt]=_e(we,Ge,_t,Ne,vt[mt]):vt[mt]=he(we,Ge,_t,Ne,vt[mt]),mt++)}var Tt=e.caps[ut];Tt.show&&Tt.fill&&(F(Tt.fill),ut==="x"?vt[mt]=ke(we,[0,p-1],_t,Ne,vt[mt]):ut==="y"?vt[mt]=_e(we,[0,d-1],_t,Ne,vt[mt]):vt[mt]=he(we,[0,v-1],_t,Ne,vt[mt]),mt++)}}),s===0&&C(),e._meshX=x,e._meshY=T,e._meshZ=A,e._meshIntensity=y,e._Xs=c,e._Ys=f,e._Zs=h}return pe(),e}function far(e,t){var r=e.glplot.gl,i=aar({gl:r}),n=new PNe(e,i,t.uid);return i._trace=n,n.update(t),e.glplot.add(i),n}RNe.exports={findNearestOnAxis:kE,generateIsoMeshes:INe,createIsosurfaceTrace:far}});var BNe=W((_Kr,zNe)=>{"use strict";zNe.exports={attributes:aR(),supplyDefaults:sQ().supplyDefaults,calc:cQ(),colorbar:{min:"cmin",max:"cmax"},plot:lR().createIsosurfaceTrace,moduleType:"trace",name:"isosurface",basePlotModule:F2(),categories:["gl3d","showLegend"],meta:{}}});var ONe=W((wKr,qNe)=>{"use strict";qNe.exports=BNe()});var dQ=W((TKr,UNe)=>{"use strict";var har=Fo(),zl=aR(),dar=ME(),NNe=Ka(),hQ=nn().extendFlat,par=cs().overrideAll,uR=UNe.exports=par(hQ({x:zl.x,y:zl.y,z:zl.z,value:zl.value,isomin:zl.isomin,isomax:zl.isomax,surface:zl.surface,spaceframe:{show:{valType:"boolean",dflt:!1},fill:{valType:"number",min:0,max:1,dflt:1}},slices:zl.slices,caps:zl.caps,text:zl.text,hovertext:zl.hovertext,xhoverformat:zl.xhoverformat,yhoverformat:zl.yhoverformat,zhoverformat:zl.zhoverformat,valuehoverformat:zl.valuehoverformat,hovertemplate:zl.hovertemplate,hovertemplatefallback:zl.hovertemplatefallback},har("",{colorAttr:"`value`",showScaleDflt:!0,editTypeOverride:"calc"}),{colorbar:zl.colorbar,opacity:zl.opacity,opacityscale:dar.opacityscale,lightposition:zl.lightposition,lighting:zl.lighting,flatshading:zl.flatshading,contour:zl.contour,hoverinfo:hQ({},NNe.hoverinfo),showlegend:hQ({},NNe.showlegend,{dflt:!1})}),"calc","nested");uR.x.editType=uR.y.editType=uR.z.editType=uR.value.editType="calc+clearAxisTypes"});var GNe=W((AKr,VNe)=>{"use strict";var gar=it(),mar=dQ(),yar=sQ().supplyIsoDefaults,xar=tQ().opacityscaleDefaults;VNe.exports=function(t,r,i,n){function a(o,s){return gar.coerce(t,r,mar,o,s)}yar(t,r,i,n,a),xar(t,r,n,a)}});var WNe=W((MKr,$Ne)=>{"use strict";var bar=lc().gl_mesh3d,_ar=mm().parseColorScale,war=it().isArrayOrTypedArray,Tar=gm(),Aar=es().extractOpts,HNe=G4(),pQ=lR().findNearestOnAxis,Mar=lR().generateIsoMeshes;function jNe(e,t,r){this.scene=e,this.uid=r,this.mesh=t,this.name="",this.data=null,this.showContour=!1}var vQ=jNe.prototype;vQ.handlePick=function(e){if(e.object===this.mesh){var t=e.data.index,r=this.data._meshX[t],i=this.data._meshY[t],n=this.data._meshZ[t],a=this.data._Ys.length,o=this.data._Zs.length,s=pQ(r,this.data._Xs).id,l=pQ(i,this.data._Ys).id,u=pQ(n,this.data._Zs).id,c=e.index=u+o*l+o*a*s;e.traceCoordinate=[this.data._meshX[c],this.data._meshY[c],this.data._meshZ[c],this.data._value[c]];var f=this.data.hovertext||this.data.text;return war(f)&&f[c]!==void 0?e.textLabel=f[c]:f&&(e.textLabel=f),!0}};vQ.update=function(e){var t=this.scene,r=t.fullSceneLayout;this.data=Mar(e);function i(l,u,c,f){return u.map(function(h){return l.d2l(h,0,f)*c})}var n=HNe(i(r.xaxis,e._meshX,t.dataScale[0],e.xcalendar),i(r.yaxis,e._meshY,t.dataScale[1],e.ycalendar),i(r.zaxis,e._meshZ,t.dataScale[2],e.zcalendar)),a=HNe(e._meshI,e._meshJ,e._meshK),o={positions:n,cells:a,lightPosition:[e.lightposition.x,e.lightposition.y,e.lightposition.z],ambient:e.lighting.ambient,diffuse:e.lighting.diffuse,specular:e.lighting.specular,roughness:e.lighting.roughness,fresnel:e.lighting.fresnel,vertexNormalsEpsilon:e.lighting.vertexnormalsepsilon,faceNormalsEpsilon:e.lighting.facenormalsepsilon,opacity:e.opacity,opacityscale:e.opacityscale,contourEnable:e.contour.show,contourColor:Tar(e.contour.color).slice(0,3),contourWidth:e.contour.width,useFacetNormals:e.flatshading},s=Aar(e);o.vertexIntensity=e._meshIntensity,o.vertexIntensityBounds=[s.min,s.max],o.colormap=_ar(e),this.mesh.update(o)};vQ.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()};function Sar(e,t){var r=e.glplot.gl,i=bar({gl:r}),n=new jNe(e,i,t.uid);return i._trace=n,n.update(t),e.glplot.add(i),n}$Ne.exports=Sar});var XNe=W((SKr,YNe)=>{"use strict";YNe.exports={attributes:dQ(),supplyDefaults:GNe(),calc:cQ(),colorbar:{min:"cmin",max:"cmax"},plot:WNe(),moduleType:"trace",name:"volume",basePlotModule:F2(),categories:["gl3d","showLegend"],meta:{}}});var KNe=W((EKr,ZNe)=>{"use strict";ZNe.exports=XNe()});var eUe=W((kKr,QNe)=>{"use strict";var Ear=xi(),JNe=it(),kar=zu(),Car=U4();QNe.exports=function(t,r,i,n){function a(c,f){return JNe.coerce(t,r,Car,c,f)}function o(c){var f=c.map(function(h){var p=a(h);return p&&JNe.isArrayOrTypedArray(p)?p:null});return f.every(function(h){return h&&h.length===f[0].length})&&f}var s=o(["x","y","z"]);if(!s){r.visible=!1;return}if(o(["i","j","k"]),r.i&&(!r.j||!r.k)||r.j&&(!r.k||!r.i)||r.k&&(!r.i||!r.j)){r.visible=!1;return}var l=Ear.getComponentMethod("calendars","handleTraceDefaults");l(t,r,["x","y","z"],n),["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(c){a(c)});var u=a("contour.show");u&&(a("contour.color"),a("contour.width")),"intensity"in t?(a("intensity"),a("intensitymode"),kar(t,r,n,a,{prefix:"",cLetter:"c"})):(r.showscale=!1,"facecolor"in t?a("facecolor"):"vertexcolor"in t?a("vertexcolor"):a("color",i)),a("text"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback"),a("xhoverformat"),a("yhoverformat"),a("zhoverformat"),r._length=null}});var rUe=W((CKr,tUe)=>{"use strict";var Dar=tf();tUe.exports=function(t,r){r.intensity&&Dar(t,r,{vals:r.intensity,containerStr:"",cLetter:"c"})}});var sUe=W((DKr,oUe)=>{"use strict";var Far=lc().gl_mesh3d,Lar=lc().delaunay_triangulate,Par=lc().alpha_shape,Iar=lc().convex_hull,Rar=mm().parseColorScale,zar=it().isArrayOrTypedArray,xQ=gm(),Bar=es().extractOpts,iUe=G4();function aUe(e,t,r){this.scene=e,this.uid=r,this.mesh=t,this.name="",this.color="#fff",this.data=null,this.showContour=!1}var bQ=aUe.prototype;bQ.handlePick=function(e){if(e.object===this.mesh){var t=e.index=e.data.index;e.data._cellCenter?e.traceCoordinate=e.data.dataCoordinate:e.traceCoordinate=[this.data.x[t],this.data.y[t],this.data.z[t]];var r=this.data.hovertext||this.data.text;return zar(r)&&r[t]!==void 0?e.textLabel=r[t]:r&&(e.textLabel=r),!0}};function nUe(e){for(var t=[],r=e.length,i=0;i=t-.5)return!1;return!0}bQ.update=function(e){var t=this.scene,r=t.fullSceneLayout;this.data=e;var i=e.x.length,n=iUe(gQ(r.xaxis,e.x,t.dataScale[0],e.xcalendar),gQ(r.yaxis,e.y,t.dataScale[1],e.ycalendar),gQ(r.zaxis,e.z,t.dataScale[2],e.zcalendar)),a;if(e.i&&e.j&&e.k){if(e.i.length!==e.j.length||e.j.length!==e.k.length||!yQ(e.i,i)||!yQ(e.j,i)||!yQ(e.k,i))return;a=iUe(mQ(e.i),mQ(e.j),mQ(e.k))}else e.alphahull===0?a=Iar(n):e.alphahull>0?a=Par(e.alphahull,n):a=qar(e.delaunayaxis,n);var o={positions:n,cells:a,lightPosition:[e.lightposition.x,e.lightposition.y,e.lightposition.z],ambient:e.lighting.ambient,diffuse:e.lighting.diffuse,specular:e.lighting.specular,roughness:e.lighting.roughness,fresnel:e.lighting.fresnel,vertexNormalsEpsilon:e.lighting.vertexnormalsepsilon,faceNormalsEpsilon:e.lighting.facenormalsepsilon,opacity:e.opacity,contourEnable:e.contour.show,contourColor:xQ(e.contour.color).slice(0,3),contourWidth:e.contour.width,useFacetNormals:e.flatshading};if(e.intensity){var s=Bar(e);this.color="#fff";var l=e.intensitymode;o[l+"Intensity"]=e.intensity,o[l+"IntensityBounds"]=[s.min,s.max],o.colormap=Rar(e)}else e.vertexcolor?(this.color=e.vertexcolor[0],o.vertexColors=nUe(e.vertexcolor)):e.facecolor?(this.color=e.facecolor[0],o.cellColors=nUe(e.facecolor)):(this.color=e.color,o.meshColor=xQ(e.color));this.mesh.update(o)};bQ.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()};function Oar(e,t){var r=e.glplot.gl,i=Far({gl:r}),n=new aUe(e,i,t.uid);return i._trace=n,n.update(t),e.glplot.add(i),n}oUe.exports=Oar});var uUe=W((FKr,lUe)=>{"use strict";lUe.exports={attributes:U4(),supplyDefaults:eUe(),calc:rUe(),colorbar:{min:"cmin",max:"cmax"},plot:sUe(),moduleType:"trace",name:"mesh3d",basePlotModule:F2(),categories:["gl3d","showLegend"],meta:{}}});var fUe=W((LKr,cUe)=>{"use strict";cUe.exports=uUe()});var wQ=W((PKr,dUe)=>{"use strict";var Nar=Fo(),H4=ws().axisHoverFormat,{hovertemplateAttrs:Uar,templatefallbackAttrs:Var}=$a(),Gar=U4(),hUe=Ka(),_Q=nn().extendFlat,cR={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","raw"],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:Uar({editType:"calc"},{keys:["norm"]}),hovertemplatefallback:Var({editType:"calc"}),uhoverformat:H4("u",1),vhoverformat:H4("v",1),whoverformat:H4("w",1),xhoverformat:H4("x"),yhoverformat:H4("y"),zhoverformat:H4("z"),showlegend:_Q({},hUe.showlegend,{dflt:!1})};_Q(cR,Nar("",{colorAttr:"u/v/w norm",showScaleDflt:!0,editTypeOverride:"calc"}));var Har=["opacity","lightposition","lighting"];Har.forEach(function(e){cR[e]=Gar[e]});cR.hoverinfo=_Q({},hUe.hoverinfo,{editType:"calc",flags:["x","y","z","u","v","w","norm","text","name"],dflt:"x+y+z+norm+text+name"});dUe.exports=cR});var vUe=W((IKr,pUe)=>{"use strict";var jar=it(),$ar=zu(),War=wQ();pUe.exports=function(t,r,i,n){function a(p,d){return jar.coerce(t,r,War,p,d)}var o=a("u"),s=a("v"),l=a("w"),u=a("x"),c=a("y"),f=a("z");if(!o||!o.length||!s||!s.length||!l||!l.length||!u||!u.length||!c||!c.length||!f||!f.length){r.visible=!1;return}var h=a("sizemode");a("sizeref",h==="raw"?1:.5),a("anchor"),a("lighting.ambient"),a("lighting.diffuse"),a("lighting.specular"),a("lighting.roughness"),a("lighting.fresnel"),a("lightposition.x"),a("lightposition.y"),a("lightposition.z"),$ar(t,r,n,a,{prefix:"",cLetter:"c"}),a("text"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback"),a("uhoverformat"),a("vhoverformat"),a("whoverformat"),a("xhoverformat"),a("yhoverformat"),a("zhoverformat"),r._length=null}});var mUe=W((RKr,gUe)=>{"use strict";var Yar=tf();gUe.exports=function(t,r){for(var i=r.u,n=r.v,a=r.w,o=Math.min(r.x.length,r.y.length,r.z.length,i.length,n.length,a.length),s=-1/0,l=1/0,u=0;u{"use strict";var Xar=lc().gl_cone3d,Zar=lc().gl_cone3d.createConeMesh,Kar=it().simpleMap,Jar=mm().parseColorScale,Qar=es().extractOpts,eor=it().isArrayOrTypedArray,yUe=G4();function xUe(e,t){this.scene=e,this.uid=t,this.mesh=null,this.data=null}var TQ=xUe.prototype;TQ.handlePick=function(e){if(e.object===this.mesh){var t=e.index=e.data.index,r=this.data.x[t],i=this.data.y[t],n=this.data.z[t],a=this.data.u[t],o=this.data.v[t],s=this.data.w[t];e.traceCoordinate=[r,i,n,a,o,s,Math.sqrt(a*a+o*o+s*s)];var l=this.data.hovertext||this.data.text;return eor(l)&&l[t]!==void 0?e.textLabel=l[t]:l&&(e.textLabel=l),!0}};var tor={xaxis:0,yaxis:1,zaxis:2},ror={tip:1,tail:0,cm:.25,center:.5},ior={tip:1,tail:1,cm:.75,center:.5};function bUe(e,t){var r=e.fullSceneLayout,i=e.dataScale,n={};function a(c,f){var h=r[f],p=i[tor[f]];return Kar(c,function(d){return h.d2l(d)*p})}n.vectors=yUe(a(t.u,"xaxis"),a(t.v,"yaxis"),a(t.w,"zaxis"),t._len),n.positions=yUe(a(t.x,"xaxis"),a(t.y,"yaxis"),a(t.z,"zaxis"),t._len);var o=Qar(t);n.colormap=Jar(t),n.vertexIntensityBounds=[o.min/t._normMax,o.max/t._normMax],n.coneOffset=ror[t.anchor];var s=t.sizemode;s==="scaled"?n.coneSize=t.sizeref||.5:s==="absolute"?n.coneSize=t.sizeref&&t._normMax?t.sizeref/t._normMax:.5:s==="raw"&&(n.coneSize=t.sizeref),n.coneSizemode=s;var l=Xar(n),u=t.lightposition;return l.lightPosition=[u.x,u.y,u.z],l.ambient=t.lighting.ambient,l.diffuse=t.lighting.diffuse,l.specular=t.lighting.specular,l.roughness=t.lighting.roughness,l.fresnel=t.lighting.fresnel,l.opacity=t.opacity,t._pad=ior[t.anchor]*l.vectorScale*l.coneScale*t._normMax,l}TQ.update=function(e){this.data=e;var t=bUe(this.scene,e);this.mesh.update(t)};TQ.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()};function nor(e,t){var r=e.glplot.gl,i=bUe(e,t),n=Zar(r,i),a=new xUe(e,t.uid);return a.mesh=n,a.data=t,n._trace=a,e.glplot.add(n),a}_Ue.exports=nor});var AUe=W((BKr,TUe)=>{"use strict";TUe.exports={moduleType:"trace",name:"cone",basePlotModule:F2(),categories:["gl3d","showLegend"],attributes:wQ(),supplyDefaults:vUe(),colorbar:{min:"cmin",max:"cmax"},calc:mUe(),plot:wUe(),eventData:function(e,t){return e.norm=t.traceCoordinate[6],e},meta:{}}});var SUe=W((qKr,MUe)=>{"use strict";MUe.exports=AUe()});var MQ=W((OKr,kUe)=>{"use strict";var aor=Fo(),j4=ws().axisHoverFormat,{hovertemplateAttrs:oor,templatefallbackAttrs:sor}=$a(),lor=U4(),EUe=Ka(),AQ=nn().extendFlat,fR={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"},starts:{x:{valType:"data_array",editType:"calc"},y:{valType:"data_array",editType:"calc"},z:{valType:"data_array",editType:"calc"},editType:"calc"},maxdisplayed:{valType:"integer",min:0,dflt:1e3,editType:"calc"},sizeref:{valType:"number",editType:"calc",min:0,dflt:1},text:{valType:"string",dflt:"",editType:"calc"},hovertext:{valType:"string",dflt:"",editType:"calc"},hovertemplate:oor({editType:"calc"},{keys:["tubex","tubey","tubez","tubeu","tubev","tubew","norm","divergence"]}),hovertemplatefallback:sor({editType:"calc"}),uhoverformat:j4("u",1),vhoverformat:j4("v",1),whoverformat:j4("w",1),xhoverformat:j4("x"),yhoverformat:j4("y"),zhoverformat:j4("z"),showlegend:AQ({},EUe.showlegend,{dflt:!1})};AQ(fR,aor("",{colorAttr:"u/v/w norm",showScaleDflt:!0,editTypeOverride:"calc"}));var uor=["opacity","lightposition","lighting"];uor.forEach(function(e){fR[e]=lor[e]});fR.hoverinfo=AQ({},EUe.hoverinfo,{editType:"calc",flags:["x","y","z","u","v","w","norm","divergence","text","name"],dflt:"x+y+z+norm+text+name"});kUe.exports=fR});var DUe=W((NKr,CUe)=>{"use strict";var cor=it(),hor=zu(),dor=MQ();CUe.exports=function(t,r,i,n){function a(h,p){return cor.coerce(t,r,dor,h,p)}var o=a("u"),s=a("v"),l=a("w"),u=a("x"),c=a("y"),f=a("z");if(!o||!o.length||!s||!s.length||!l||!l.length||!u||!u.length||!c||!c.length||!f||!f.length){r.visible=!1;return}a("starts.x"),a("starts.y"),a("starts.z"),a("maxdisplayed"),a("sizeref"),a("lighting.ambient"),a("lighting.diffuse"),a("lighting.specular"),a("lighting.roughness"),a("lighting.fresnel"),a("lightposition.x"),a("lightposition.y"),a("lightposition.z"),hor(t,r,n,a,{prefix:"",cLetter:"c"}),a("text"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback"),a("uhoverformat"),a("vhoverformat"),a("whoverformat"),a("xhoverformat"),a("yhoverformat"),a("zhoverformat"),r._length=null}});var qUe=W((UKr,BUe)=>{"use strict";var PUe=lc().gl_streamtube3d,por=PUe.createTubeMesh,vor=it(),gor=mm().parseColorScale,mor=es().extractOpts,FUe=G4(),IUe={xaxis:0,yaxis:1,zaxis:2};function RUe(e,t){this.scene=e,this.uid=t,this.mesh=null,this.data=null}var EQ=RUe.prototype;EQ.handlePick=function(e){var t=this.scene.fullSceneLayout,r=this.scene.dataScale;function i(o,s){var l=t[s],u=r[IUe[s]];return l.l2c(o)/u}if(e.object===this.mesh){var n=e.data.position,a=e.data.velocity;return e.traceCoordinate=[i(n[0],"xaxis"),i(n[1],"yaxis"),i(n[2],"zaxis"),i(a[0],"xaxis"),i(a[1],"yaxis"),i(a[2],"zaxis"),e.data.intensity*this.data._normMax,e.data.divergence],e.textLabel=this.data.hovertext||this.data.text,!0}};function LUe(e){var t=e.length,r;return t>2?r=e.slice(1,t-1):t===2?r=[(e[0]+e[1])/2]:r=e,r}function SQ(e){var t=e.length;return t===1?[.5,.5]:[e[1]-e[0],e[t-1]-e[t-2]]}function zUe(e,t){var r=e.fullSceneLayout,i=e.dataScale,n=t._len,a={};function o(C,k){var D=r[k],L=i[IUe[k]];return vor.simpleMap(C,function(P){return D.d2l(P)*L})}if(a.vectors=FUe(o(t._u,"xaxis"),o(t._v,"yaxis"),o(t._w,"zaxis"),n),!n)return{positions:[],cells:[]};var s=o(t._Xs,"xaxis"),l=o(t._Ys,"yaxis"),u=o(t._Zs,"zaxis");a.meshgrid=[s,l,u],a.gridFill=t._gridFill;var c=t._slen;if(c)a.startingPositions=FUe(o(t._startsX,"xaxis"),o(t._startsY,"yaxis"),o(t._startsZ,"zaxis"));else{for(var f=l[0],h=LUe(s),p=LUe(u),d=new Array(h.length*p.length),v=0,m=0;m{"use strict";OUe.exports={moduleType:"trace",name:"streamtube",basePlotModule:F2(),categories:["gl3d","showLegend"],attributes:MQ(),supplyDefaults:DUe(),colorbar:{min:"cmin",max:"cmax"},calc:oR().calc,plot:qUe(),eventData:function(e,t){return e.tubex=e.x,e.tubey=e.y,e.tubez=e.z,e.tubeu=t.traceCoordinate[3],e.tubev=t.traceCoordinate[4],e.tubew=t.traceCoordinate[5],e.norm=t.traceCoordinate[6],e.divergence=t.traceCoordinate[7],delete e.x,delete e.y,delete e.z,e},meta:{}}});var VUe=W((GKr,UUe)=>{"use strict";UUe.exports=NUe()});var $4=W((HKr,WUe)=>{"use strict";var{hovertemplateAttrs:xor,texttemplateAttrs:bor,templatefallbackAttrs:GUe}=$a(),_or=M1(),$1=Hs(),wor=Ka(),HUe=Fo(),Tor=Ru().dash,z_=nn().extendFlat,Aor=cs().overrideAll,Xd=$1.marker,jUe=$1.line,$Ue=Xd.line;WUe.exports=Aor({lon:{valType:"data_array"},lat:{valType:"data_array"},locations:{valType:"data_array"},locationmode:{valType:"enumerated",values:["ISO-3","USA-states","country names","geojson-id"],dflt:"ISO-3"},geojson:{valType:"any",editType:"calc"},featureidkey:{valType:"string",editType:"calc",dflt:"id"},mode:z_({},$1.mode,{dflt:"markers"}),text:z_({},$1.text,{}),texttemplate:bor({editType:"plot"},{keys:["lat","lon","location","text"]}),texttemplatefallback:GUe({editType:"plot"}),hovertext:z_({},$1.hovertext,{}),textfont:$1.textfont,textposition:$1.textposition,line:{color:jUe.color,width:jUe.width,dash:Tor},connectgaps:$1.connectgaps,marker:z_({symbol:Xd.symbol,opacity:Xd.opacity,angle:Xd.angle,angleref:z_({},Xd.angleref,{values:["previous","up","north"]}),standoff:Xd.standoff,size:Xd.size,sizeref:Xd.sizeref,sizemin:Xd.sizemin,sizemode:Xd.sizemode,colorbar:Xd.colorbar,line:z_({width:$Ue.width,dash:$Ue.dash},HUe("marker.line")),gradient:Xd.gradient},HUe("marker")),fill:{valType:"enumerated",values:["none","toself"],dflt:"none"},fillcolor:_or(),selected:$1.selected,unselected:$1.unselected,hoverinfo:z_({},wor.hoverinfo,{flags:["lon","lat","location","text","name"]}),hovertemplate:xor(),hovertemplatefallback:GUe()},"calc","nested")});var XUe=W((jKr,YUe)=>{"use strict";var kQ=it(),CQ=Wo(),Mor=Cd(),Sor=Kp(),Eor=Jp(),kor=E1(),Cor=$4();YUe.exports=function(t,r,i,n){function a(p,d){return kQ.coerce(t,r,Cor,p,d)}var o=a("locations"),s;if(o&&o.length){var l=a("geojson"),u;(typeof l=="string"&&l!==""||kQ.isPlainObject(l))&&(u="geojson-id");var c=a("locationmode",u);c==="geojson-id"&&a("featureidkey"),s=o.length}else{var f=a("lon")||[],h=a("lat")||[];s=Math.min(f.length,h.length)}if(!s){r.visible=!1;return}r._length=s,a("text"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback"),a("mode"),CQ.hasMarkers(r)&&Mor(t,r,i,n,a,{gradient:!0}),CQ.hasLines(r)&&(Sor(t,r,i,n,a),a("connectgaps")),CQ.hasText(r)&&(a("texttemplate"),a("texttemplatefallback"),Eor(t,r,n,a)),a("fill"),r.fill!=="none"&&kor(t,r,i,a),kQ.coerceSelectionMarkerOpacity(r,a)}});var JUe=W(($Kr,KUe)=>{"use strict";var ZUe=Wi();KUe.exports=function(t,r,i){var n={},a=i[r.geo]._subplot,o=a.mockAxis,s=t.lonlat;return n.lonLabel=ZUe.tickText(o,o.c2l(s[0]),!0).text,n.latLabel=ZUe.tickText(o,o.c2l(s[1]),!0).text,n}});var FQ=W((WKr,rVe)=>{"use strict";var DQ=un(),QUe=(ta(),Pt(ra)).BADNUM,Dor=Dd(),For=k1(),Lor=E0(),Por=it().isArrayOrTypedArray,eVe=it()._;function tVe(e){return e&&typeof e=="string"}rVe.exports=function(t,r){var i=Por(r.locations),n=i?r.locations.length:r._length,a=new Array(n),o;r.geojson?o=function(h){return tVe(h)||DQ(h)}:o=tVe;for(var s=0;sRor,clipPad:()=>Nor,fillLayers:()=>$or,fitboundsIncompatible:()=>qor,landColor:()=>Vor,lataxisSpan:()=>Bor,layerNameToAdjective:()=>Zor,layers:()=>Yor,layersForChoropleth:()=>Xor,lineLayers:()=>Wor,locationmodeToLayer:()=>Hor,lonaxisSpan:()=>zor,precision:()=>Uor,projNames:()=>Ior,scopeDefaults:()=>Oor,sphereSVG:()=>jor,waterColor:()=>Gor});var Ior,Ror,zor,Bor,qor,Oor,Nor,Uor,Vor,Gor,Hor,jor,$or,Wor,Yor,Xor,Zor,DE=Ci(()=>{"use strict";Ior={airy:"airy",aitoff:"aitoff","albers usa":"albersUsa",albers:"albers",august:"august","azimuthal equal area":"azimuthalEqualArea","azimuthal equidistant":"azimuthalEquidistant",baker:"baker",bertin1953:"bertin1953",boggs:"boggs",bonne:"bonne",bottomley:"bottomley",bromley:"bromley",collignon:"collignon","conic conformal":"conicConformal","conic equal area":"conicEqualArea","conic equidistant":"conicEquidistant",craig:"craig",craster:"craster","cylindrical equal area":"cylindricalEqualArea","cylindrical stereographic":"cylindricalStereographic",eckert1:"eckert1",eckert2:"eckert2",eckert3:"eckert3",eckert4:"eckert4",eckert5:"eckert5",eckert6:"eckert6",eisenlohr:"eisenlohr","equal earth":"equalEarth",equirectangular:"equirectangular",fahey:"fahey","foucaut sinusoidal":"foucautSinusoidal",foucaut:"foucaut",ginzburg4:"ginzburg4",ginzburg5:"ginzburg5",ginzburg6:"ginzburg6",ginzburg8:"ginzburg8",ginzburg9:"ginzburg9",gnomonic:"gnomonic","gringorten quincuncial":"gringortenQuincuncial",gringorten:"gringorten",guyou:"guyou",hammer:"hammer",hill:"hill",homolosine:"homolosine",hufnagel:"hufnagel",hyperelliptical:"hyperelliptical",kavrayskiy7:"kavrayskiy7",lagrange:"lagrange",larrivee:"larrivee",laskowski:"laskowski",loximuthal:"loximuthal",mercator:"mercator",miller:"miller",mollweide:"mollweide","mt flat polar parabolic":"mtFlatPolarParabolic","mt flat polar quartic":"mtFlatPolarQuartic","mt flat polar sinusoidal":"mtFlatPolarSinusoidal","natural earth":"naturalEarth","natural earth1":"naturalEarth1","natural earth2":"naturalEarth2","nell hammer":"nellHammer",nicolosi:"nicolosi",orthographic:"orthographic",patterson:"patterson","peirce quincuncial":"peirceQuincuncial",polyconic:"polyconic","rectangular polyconic":"rectangularPolyconic",robinson:"robinson",satellite:"satellite","sinu mollweide":"sinuMollweide",sinusoidal:"sinusoidal",stereographic:"stereographic",times:"times","transverse mercator":"transverseMercator","van der grinten":"vanDerGrinten","van der grinten2":"vanDerGrinten2","van der grinten3":"vanDerGrinten3","van der grinten4":"vanDerGrinten4",wagner4:"wagner4",wagner6:"wagner6",wiechel:"wiechel","winkel tripel":"winkel3",winkel3:"winkel3"},Ror=["lonaxis","lataxis"],zor={orthographic:180,"azimuthal equal area":360,"azimuthal equidistant":360,"conic conformal":180,gnomonic:160,stereographic:180,"transverse mercator":180,"*":360},Bor={"conic conformal":150,stereographic:179.5,"*":180},qor=new Set(["albers usa","craig","peirce quincuncial","satellite"]),Oor={world:{lonaxisRange:[-180,180],lataxisRange:[-90,90],projType:"equirectangular",projRotate:[0,0,0]},usa:{lonaxisRange:[-180,-50],lataxisRange:[15,80],projType:"albers usa"},europe:{lonaxisRange:[-30,60],lataxisRange:[30,85],projType:"conic conformal",projRotate:[15,0,0],projParallels:[0,60]},asia:{lonaxisRange:[22,160],lataxisRange:[-15,55],projType:"mercator",projRotate:[0,0,0]},africa:{lonaxisRange:[-30,60],lataxisRange:[-40,40],projType:"mercator",projRotate:[0,0,0]},"north america":{lonaxisRange:[-180,-45],lataxisRange:[5,85],projType:"conic conformal",projRotate:[-100,0,0],projParallels:[29.5,45.5]},"south america":{lonaxisRange:[-100,-30],lataxisRange:[-60,15],projType:"mercator",projRotate:[0,0,0]},antarctica:{lonaxisRange:[-180,180],lataxisRange:[-90,-60],projType:"equirectangular",projRotate:[0,0,0]},oceania:{lonaxisRange:[-180,180],lataxisRange:[-50,25],projType:"equirectangular",projRotate:[0,0,0]}},Nor=.001,Uor=.1,Vor="#F0DC82",Gor="#3399FF",Hor={"ISO-3":"countries","USA-states":"subunits","country names":"countries"},jor={type:"Sphere"},$or={ocean:1,land:1,lakes:1},Wor={subunits:1,countries:1,coastlines:1,rivers:1,frame:1},Yor=["bg","ocean","land","lakes","subunits","countries","coastlines","rivers","lataxis","lonaxis","frame","backplot","frontplot"],Xor=["bg","ocean","land","subunits","countries","coastlines","lataxis","lonaxis","frame","backplot","lakes","rivers","frontplot"],Zor={ocean:"ocean",land:"land",lakes:"lake",subunits:"subunit",countries:"country",coastlines:"coastline",rivers:"river",frame:"frame"}});var LQ=W((hR,iVe)=>{(function(e,t){typeof hR=="object"&&typeof iVe!="undefined"?t(hR):(e=e||self,t(e.topojson=e.topojson||{}))})(hR,function(e){"use strict";function t(_){return _}function r(_){if(_==null)return t;var b,S,x=_.scale[0],T=_.scale[1],A=_.translate[0],y=_.translate[1];return function(E,M){M||(b=S=0);var C=2,k=E.length,D=new Array(k);for(D[0]=(b+=E[0])*x+A,D[1]=(S+=E[1])*T+y;CA&&(A=C[0]),C[1]y&&(y=C[1])}function M(C){switch(C.type){case"GeometryCollection":C.geometries.forEach(M);break;case"Point":E(C.coordinates);break;case"MultiPoint":C.coordinates.forEach(E);break}}_.arcs.forEach(function(C){for(var k=-1,D=C.length,L;++kA&&(A=L[0]),L[1]y&&(y=L[1])});for(S in _.objects)M(_.objects[S]);return[x,T,A,y]}function n(_,b){for(var S,x=_.length,T=x-b;T<--x;)S=_[T],_[T++]=_[x],_[x]=S}function a(_,b){return typeof b=="string"&&(b=_.objects[b]),b.type==="GeometryCollection"?{type:"FeatureCollection",features:b.geometries.map(function(S){return o(_,S)})}:o(_,b)}function o(_,b){var S=b.id,x=b.bbox,T=b.properties==null?{}:b.properties,A=s(_,b);return S==null&&x==null?{type:"Feature",properties:T,geometry:A}:x==null?{type:"Feature",id:S,properties:T,geometry:A}:{type:"Feature",id:S,bbox:x,properties:T,geometry:A}}function s(_,b){var S=r(_.transform),x=_.arcs;function T(k,D){D.length&&D.pop();for(var L=x[k<0?~k:k],P=0,R=L.length;P1)x=f(_,b,S);else for(T=0,x=new Array(A=_.arcs.length);T1)for(var D=1,L=E(C[0]),P,R;DL&&(R=C[0],C[0]=C[D],C[D]=R,L=P);return C}).filter(function(M){return M.length>0})}}function v(_,b){for(var S=0,x=_.length;S>>1;_[T]=2))throw new Error("n must be \u22652");M=_.bbox||i(_);var S=M[0],x=M[1],T=M[2],A=M[3],y;b={scale:[T-S?(T-S)/(y-1):1,A-x?(A-x)/(y-1):1],translate:[S,x]}}else M=_.bbox;var E=g(b),M,C,k=_.objects,D={};function L(F){return E(F)}function P(F){var I;switch(F.type){case"GeometryCollection":I={type:"GeometryCollection",geometries:F.geometries.map(P)};break;case"Point":I={type:"Point",coordinates:L(F.coordinates)};break;case"MultiPoint":I={type:"MultiPoint",coordinates:F.coordinates.map(L)};break;default:return F}return F.id!=null&&(I.id=F.id),F.bbox!=null&&(I.bbox=F.bbox),F.properties!=null&&(I.properties=F.properties),I}function R(F){var I=0,B=1,O=F.length,$,Y=new Array(O);for(Y[0]=E(F[0],0);++I{"use strict";var PQ=nVe.exports={},Kor=(DE(),Pt(CE)).locationmodeToLayer,Jor=LQ().feature;PQ.getTopojsonName=function(e){return[e.scope.replace(/ /g,"-"),"_",e.resolution.toString(),"m"].join("")};PQ.getTopojsonPath=function(e,t){return e+=e.endsWith("/")?"":"/",`${e}${t}.json`};PQ.getTopojsonFeatures=function(e,t){var r=Kor[e.locationmode],i=t.objects[r];return Jor(t,i).features}});var LE=W(FE=>{"use strict";var Qor=(ta(),Pt(ra)).BADNUM;FE.calcTraceToLineCoords=function(e){for(var t=e[0].trace,r=t.connectgaps,i=[],n=[],a=0;a0&&(i.push(n),n=[])}return n.length>0&&i.push(n),i};FE.makeLine=function(e){return e.length===1?{type:"LineString",coordinates:e[0]}:{type:"MultiLineString",coordinates:e}};FE.makePolygon=function(e){if(e.length===1)return{type:"Polygon",coordinates:e};for(var t=new Array(e.length),r=0;r{"use strict";var RQ=Object.defineProperty,esr=Object.getOwnPropertyDescriptor,tsr=Object.getOwnPropertyNames,rsr=Object.prototype.hasOwnProperty,isr=(e,t)=>{for(var r in t)RQ(e,r,{get:t[r],enumerable:!0})},nsr=(e,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of tsr(t))!rsr.call(e,n)&&n!==r&&RQ(e,n,{get:()=>t[n],enumerable:!(i=esr(t,n))||i.enumerable});return e},asr=e=>nsr(RQ({},"__esModule",{value:!0}),e),aVe={};isr(aVe,{COUNTRIES:()=>oVe,byAlpha2:()=>usr,byAlpha3:()=>lsr,byM49:()=>csr,createLookup:()=>sVe,lookup:()=>osr,lookupAlpha3:()=>ssr,sanitize:()=>IQ});lVe.exports=asr(aVe);var oVe=[{iso3:"ABW",iso2:"AW",m49:"533",name:"Aruba",aliases:["\u{1F1E6}\u{1F1FC}","country of aruba","land aruba","pais aruba"]},{iso3:"AFG",iso2:"AF",m49:"004",name:"Afghanistan",aliases:["\u{1F1E6}\u{1F1EB}","affghanistan","affghanisthan","affghaunistan","afghania","afghanisthan","afghaunistan","afghaunistaun","afgoniston","de afghanistan islami jumhuriyat","owganystan","\u0430\u0444\u0493\u043E\u043D\u0438\u0441\u0442\u043E\u043D","\u0623\u0641\u063A\u0627\u0646\u0633\u062A\u0627\u0646","\u0627\u0641\u063A\u0627\u0646\u0633\u062A\u0627\u0646","\u062F \u0627\u0641\u063A\u0627\u0646\u0633\u062A\u0627\u0646 \u0627\u0633\u0644\u0627\u0645\u06CC \u062C\u0645\u0647\u0648\u0631\u06CC\u062A"]},{iso3:"AGO",iso2:"AO",m49:"024",name:"Angola",aliases:["\u{1F1E6}\u{1F1F4}","republic of angola","republica de angola"]},{iso3:"AIA",iso2:"AI",m49:"660",name:"Anguilla",aliases:["\u{1F1E6}\u{1F1EE}","malliouhana"]},{iso3:"ALA",iso2:"AX",m49:"248",name:"\xC5land Islands",aliases:["\u{1F1E6}\u{1F1FD}","aaland","aaland islands","ahvenanmaa","aland","aland isles","aland region","alands lan","landskapet aland"]},{iso3:"ALB",iso2:"AL",m49:"008",name:"Albania",aliases:["\u{1F1E6}\u{1F1F1}","peoples republic of albania","peoples socialist republic of albania","republic of albania","republika e shqiperise","shqiperi","shqiperia","shqiperise","socialist republic of albania"]},{iso3:"AND",iso2:"AD",m49:"020",name:"Andorra",aliases:["\u{1F1E6}\u{1F1E9}","el pais dels pirineus","les valls dandorra","principality of andorra","principality of the valleys of andorra","principat dandorra","valls dandorra"]},{iso3:"ARE",iso2:"AE",m49:"784",name:"United Arab Emirates",aliases:["\u{1F1E6}\u{1F1EA}","emirates","uae","\u0627\u0644\u0625\u0645\u0627\u0631\u0627\u062A","\u0627\u0644\u0625\u0645\u0627\u0631\u0627\u062A \u0627\u0644\u0639\u0631\u0628\u064A\u0629 \u0627\u0644\u0645\u062A\u062D\u062F\u0629","\u0627\u0644\u0627\u0645\u0627\u0631\u0627\u062A","\u0627\u0644\u0627\u0645\u0627\u0631\u0627\u062A \u0627\u0644\u0639\u0631\u0628\u064A\u0629 \u0627\u0644\u0645\u062A\u062D\u062F\u0629","\u062F\u0648\u0644\u0629 \u0627\u0644\u0625\u0645\u0627\u0631\u0627\u062A \u0627\u0644\u0639\u0631\u0628\u064A\u0629 \u0627\u0644\u0645\u062A\u062D\u062F\u0629"]},{iso3:"ARG",iso2:"AR",m49:"032",name:"Argentina",aliases:["\u{1F1E6}\u{1F1F7}","argentine republic","nacion argentina","republic of argentina","republica argentina"]},{iso3:"ARM",iso2:"AM",m49:"051",name:"Armenia",aliases:["\u{1F1E6}\u{1F1F2}","hayastan","hayastani hanrapetutyun","republic of armenia","\u0570\u0561\u0575\u0561\u057D\u057F\u0561\u0576","\u0570\u0561\u0575\u0561\u057D\u057F\u0561\u0576\u056B \u0570\u0561\u0576\u0580\u0561\u057A\u0565\u057F\u0578\u0582\u0569\u0575\u0578\u0582\u0576","\u0570\u0561\u0575\u0584","\u0570\u0570"]},{iso3:"ASM",iso2:"AS",m49:"016",name:"American Samoa",aliases:["\u{1F1E6}\u{1F1F8}","amerika samoa","east samoa","samoa american","samoa united states","territory of american samoa","us samoa"]},{iso3:"ATA",iso2:"AQ",m49:"010",name:"Antarctica",aliases:["\u{1F1E6}\u{1F1F6}","antarctica treaty area"]},{iso3:"ATF",iso2:"TF",m49:"260",name:"French Southern Territories",aliases:["\u{1F1F9}\u{1F1EB}","taaf","terres australes et antarctiques francaises","terres australes francaises","terres australes francaises les","territoire des terres australes et antarctiques francaises"]},{iso3:"ATG",iso2:"AG",m49:"028",name:"Antigua and Barbuda",aliases:["\u{1F1E6}\u{1F1EC}","antigua","antigua barbuda","barbuda"]},{iso3:"AUS",iso2:"AU",m49:"036",name:"Australia",aliases:["\u{1F1E6}\u{1F1FA}","commonwealth of australia","new holland","new hollandia","nova hollandia"]},{iso3:"AUT",iso2:"AT",m49:"040",name:"Austria",aliases:["\u{1F1E6}\u{1F1F9}","osterreich","republic of austria","republik osterreich","zweite republik"]},{iso3:"AZE",iso2:"AZ",m49:"031",name:"Azerbaijan",aliases:["\u{1F1E6}\u{1F1FF}","az\u0259rbaycan","az\u0259rbaycan respublikas\u0131","republic of azerbaijan"]},{iso3:"BDI",iso2:"BI",m49:"108",name:"Burundi",aliases:["\u{1F1E7}\u{1F1EE}","gouvernement du burundi","la republique du burundi","republic of burundi","republika yu burundi","republika yuburundi","republique du burundi","repuburika yuburundi","uburundi"]},{iso3:"BEL",iso2:"BE",m49:"056",name:"Belgium",aliases:["\u{1F1E7}\u{1F1EA}","belg","belgie","belgien","belgique","kingdom of belgium","konigreich belgien","koninkrijk belgie","royaume de belgique"]},{iso3:"BEN",iso2:"BJ",m49:"204",name:"Benin",aliases:["\u{1F1E7}\u{1F1EF}","dahomey","la republique du benin","republic of benin","republique du benin"]},{iso3:"BES",iso2:"BQ",m49:"535",name:"Bonaire, Sint Eustatius and Saba",aliases:["\u{1F1E7}\u{1F1F6}","bes eilanden","bes islands","bijzondere gemeente","bonaire","bonaire saint eustatius and saba","bonaire sint eustatius en saba","caraibisch nederland","caribbean netherlands","caribisch nederland","hulanda karibense","islanan bes","netherlands antilles","saba","sint eustatius"]},{iso3:"BFA",iso2:"BF",m49:"854",name:"Burkina Faso",aliases:["\u{1F1E7}\u{1F1EB}","republic of burkina faso","republic of upper volta"]},{iso3:"BGD",iso2:"BD",m49:"050",name:"Bangladesh",aliases:["\u{1F1E7}\u{1F1E9}","bangla desh","east pakistan","gonaoprojatontri bangladesh","peoples republic of bangladesh","\u0997\u09A3\u09AA\u09CD\u09B0\u099C\u09BE\u09A4\u09A8\u09CD\u09A4\u09CD\u09B0\u09C0 \u09AC\u09BE\u0982\u09B2\u09BE\u09A6\u09C7\u09B6","\u09AC\u09BE\u0982\u09B2\u09BE \u09A6\u09C7\u09B6","\u09AC\u09BE\u0982\u09B2\u09BE\u09A6\u09C7\u09B6","\u09AC\u09BF\u09A1\u09BF"]},{iso3:"BGR",iso2:"BG",m49:"100",name:"Bulgaria",aliases:["\u{1F1E7}\u{1F1EC}","bulgarian republic","republic of bulgaria","republika bulgaria","republika bulgariya","\u0431\u0433","\u0431\u044A\u043B\u0433\u0430\u0440\u0438\u044F","\u0440\u0435\u043F\u0443\u0431\u043B\u0438\u043A\u0430 \u0431\u044A\u043B\u0433\u0430\u0440\u0438\u044F"]},{iso3:"BHR",iso2:"BH",m49:"048",name:"Bahrain",aliases:["\u{1F1E7}\u{1F1ED}","bahrein islands","kingdom of bahrain","\u0627\u0644\u0628\u062D\u0631\u064A\u0646","\u062F\u0648\u0644\u0629 \u0627\u0644\u0628\u062D\u0631\u064A\u0646","\u0645\u0645\u0644\u0643\u0629 \u0627\u0644\u0628\u062D\u0631\u064A\u0646"]},{iso3:"BHS",iso2:"BS",m49:"044",name:"Bahamas",aliases:["\u{1F1E7}\u{1F1F8}","bahama islands","bahamas the","commonwealth of the bahamas"]},{iso3:"BIH",iso2:"BA",m49:"070",name:"Bosnia and Herzegovina",aliases:["\u{1F1E7}\u{1F1E6}","bosna","bosna i hercegovina","bosnia","bosnia and hercegovina","bosnia herzegovina","hercegovina","herzegovina","\u0431\u0438\u0445","\u0431\u043E\u0441\u043D\u0430","\u0431\u043E\u0441\u043D\u0430 \u0438 \u0445\u0435\u0440\u0446\u0435\u0433\u043E\u0432\u0438\u043D\u0430","\u0431\u0445"]},{iso3:"BLM",iso2:"BL",m49:"652",name:"Saint Barth\xE9lemy",aliases:["\u{1F1E7}\u{1F1F1}","collectivite doutre mer de saint barthelemy","collectivite territoriale de saint barthelemy","collectivity of saint barthelemy","saint barth","saint barths","saint barts","saint bartz"]},{iso3:"BLR",iso2:"BY",m49:"112",name:"Belarus",aliases:["\u{1F1E7}\u{1F1FE}","republic of belarus","respublika belarus","respublika byelarus","\u0431\u0435\u043B\u0430\u0440\u0443\u0441\u043A\u0430\u044F \u0440\u044D\u0441\u043F\u0443\u0431\u043B\u0456\u043A\u0430","\u0431\u0435\u043B\u0430\u0440\u0443\u0441\u044C","\u0431\u0435\u043B\u0430\u044F \u0440\u0443\u0441\u044C","\u0431\u0435\u043B\u043E\u0440\u0443\u0441\u0441\u0438\u044F","\u0440\u0431","\u0440\u0435\u0441\u043F\u0443\u0431\u043B\u0438\u043A\u0430 \u0431\u0435\u043B\u0430\u0440\u0443\u0441\u044C","\u0440\u044D\u0441\u043F\u0443\u0431\u043B\u0456\u043A\u0430 \u0431\u0435\u043B\u0430\u0440\u0443\u0441\u044C"]},{iso3:"BLZ",iso2:"BZ",m49:"084",name:"Belize",aliases:["\u{1F1E7}\u{1F1FF}"]},{iso3:"BMU",iso2:"BM",m49:"060",name:"Bermuda",aliases:["\u{1F1E7}\u{1F1F2}","barmuda","barmuda i","barmuda isl","barmuda islands","barmudas","bermoothes","bermuda islands","bermudas","bermudian islands","colony of bermuda","devils isles","isle of devils","somers islands","somers isles","summers isles","territory of bermuda","virgineola"]},{iso3:"BOL",iso2:"BO",m49:"068",name:"Bolivia (Plurinational State of)",aliases:["\u{1F1E7}\u{1F1F4}","bolivia","bulibiya","estado plurinacional de bolivia","plurinational state of bolivia","puliwya","republic of bolivia","republica de bolivia","volivia","wuliwiya","wuliwya"]},{iso3:"BRA",iso2:"BR",m49:"076",name:"Brazil",aliases:["\u{1F1E7}\u{1F1F7}","brasil","federative republic of brazil","pindorama","republica federativa do brasil"]},{iso3:"BRB",iso2:"BB",m49:"052",name:"Barbados",aliases:["\u{1F1E7}\u{1F1E7}","barbadoes"]},{iso3:"BRN",iso2:"BN",m49:"096",name:"Brunei Darussalam",aliases:["\u{1F1E7}\u{1F1F3}","brunei","nation of brunei the abode of peace","negara brunei darussalam"]},{iso3:"BTN",iso2:"BT",m49:"064",name:"Bhutan",aliases:["\u{1F1E7}\u{1F1F9}","kingdom of bhutan","\u0F60\u0F56\u0FB2\u0F74\u0F42","\u0F60\u0F56\u0FB2\u0F74\u0F42\u0F0B\u0F61\u0F74\u0F63\u0F0B","\u0F60\u0F56\u0FB2\u0F74\u0F42\u0F61\u0F74\u0F63\u0F0B\u0F0B"]},{iso3:"BVT",iso2:"BV",m49:"074",name:"Bouvet Island",aliases:["\u{1F1E7}\u{1F1FB}"]},{iso3:"BWA",iso2:"BW",m49:"072",name:"Botswana",aliases:["\u{1F1E7}\u{1F1FC}","lefatshe la botswana","republic of botswana"]},{iso3:"CAF",iso2:"CF",m49:"140",name:"Central African Republic",aliases:["\u{1F1E8}\u{1F1EB}","centrafricaine republique","centrafrique","central africa","kodorosese ti beafrika","la republique","rep centrafrique","republique centrafricaine"]},{iso3:"CAN",iso2:"CA",m49:"124",name:"Canada",aliases:["\u{1F1E8}\u{1F1E6}","le canada"]},{iso3:"CCK",iso2:"CC",m49:"166",name:"Cocos (Keeling) Islands",aliases:["\u{1F1E8}\u{1F1E8}","cocos islands","keeling islands","territory of the cocos keeling islands"]},{iso3:"CHE",iso2:"CH",m49:"756",name:"Switzerland",aliases:["\u{1F1E8}\u{1F1ED}","confederation helvetique","confederation suisse","confederazione elvetica","confederazione svizzera","confederaziun svizra","confoederatio helvetica","conf\u0153deratio helvetica","eidgenossenschaft","elvezia","helvetie","la confederation suisse","schweiz","schweizerische eidgenossenschaft","suisse","svizra","svizzera","swiss","swiss confederation"]},{iso3:"CHL",iso2:"CL",m49:"152",name:"Chile",aliases:["\u{1F1E8}\u{1F1F1}","republic of chile","republica de chile"]},{iso3:"CHN",iso2:"CN",m49:"156",name:"China",aliases:["\u{1F1E8}\u{1F1F3}","china pr","peoples republic of china","pr china","prc","\u4E2D\u534E\u4EBA\u6C11\u5171\u548C\u56FD","\u4E2D\u56FD"]},{iso3:"CIV",iso2:"CI",m49:"384",name:"C\xF4te d'Ivoire",aliases:["\u{1F1E8}\u{1F1EE}","cote ivoire","ivory coast","republic of cote divoire","republic of ivory coast","republic of the ivory coast","republique de cote divoire"]},{iso3:"CMR",iso2:"CM",m49:"120",name:"Cameroon",aliases:["\u{1F1E8}\u{1F1F2}","cameroun","la republique du cameroun","republic of cameroon","republique du cameroun"]},{iso3:"COD",iso2:"CD",m49:"180",name:"Democratic Republic of the Congo",aliases:["\u{1F1E8}\u{1F1E9}","congo belge","congo democratic republic of the","congo kinshasa","dem rep congo","dem republic of congo","dem republic of the congo","democratic republic of congo","dr congo","drc","rd congo","rep demcongo","republic of the congo","republique democratique du congo","republique du zaire","zaire"]},{iso3:"COG",iso2:"CG",m49:"178",name:"Congo",aliases:["\u{1F1E8}\u{1F1EC}","congo brazza","congo brazzaville","congo republic","rep congo","republic of congo","republique du congo"]},{iso3:"COK",iso2:"CK",m49:"184",name:"Cook Islands",aliases:["\u{1F1E8}\u{1F1F0}","cook group","hervey islands"]},{iso3:"COL",iso2:"CO",m49:"170",name:"Colombia",aliases:["\u{1F1E8}\u{1F1F4}","republic of colombia","republica de colombia"]},{iso3:"COM",iso2:"KM",m49:"174",name:"Comoros",aliases:["\u{1F1F0}\u{1F1F2}","comores","comores archipel","etat comorien","lunion des comores","republique des comores","republique federale et islamique des comores","republique federale islamique des comores","territoire des comores","union des comores","union of the comoros","\u0625\u062A\u062D\u0627\u062F \u0627\u0644\u0642\u0645\u0631","\u0627\u062A\u062D\u0627\u062F \u062C\u0632\u0631 \u0627\u0644\u0642\u0645\u0631","\u0627\u0644\u0627\u062A\u062D\u0627\u062F \u0627\u0644\u0642\u0645\u0631\u064A","\u0627\u0644\u0642\u0645\u0631","\u062C\u0632\u0631 \u0627\u0644\u0642\u0645\u0631","\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u0627\u0644\u0642\u0645\u0631 \u0627\u0644\u0645\u062A\u062D\u062F\u0629","\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u062C\u0632\u0631 \u0627\u0644\u0642\u0645\u0631 \u0627\u0644\u0627\u062A\u062D\u0627\u062F\u064A\u0629 \u0627\u0644\u0625\u0633\u0644\u0627\u0645\u064A\u0629","\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u062C\u0632\u0631\u0627\u0644\u0642\u0645\u0631 \u0627\u0644\u0645\u062A\u062D\u062F\u0629"]},{iso3:"CPV",iso2:"CV",m49:"132",name:"Cabo Verde",aliases:["\u{1F1E8}\u{1F1FB}","cape verde","cape verde islands","kab verd","kabu verdi","kauberdi","republic of cabo verde","republic of cape verde","republica de cabo verde"]},{iso3:"CRI",iso2:"CR",m49:"188",name:"Costa Rica",aliases:["\u{1F1E8}\u{1F1F7}","republic of costa rica","republica de costa rica"]},{iso3:"CUB",iso2:"CU",m49:"192",name:"Cuba",aliases:["\u{1F1E8}\u{1F1FA}","isla juana","republic of cuba","republica de cuba"]},{iso3:"CUW",iso2:"CW",m49:"531",name:"Cura\xE7ao",aliases:["\u{1F1E8}\u{1F1FC}","corsou","corsouw","corsow","country of curacao","curacau","curacoa","curazao","cura\u03C2ao","curocao","island territory of curacao","korsou","land curacao","pais korsou"]},{iso3:"CXR",iso2:"CX",m49:"162",name:"Christmas Island",aliases:["\u{1F1E8}\u{1F1FD}","christmas island other territories","christmas island other territories australia","territory of christmas island"]},{iso3:"CYM",iso2:"KY",m49:"136",name:"Cayman Islands",aliases:["\u{1F1F0}\u{1F1FE}","caymans"]},{iso3:"CYP",iso2:"CY",m49:"196",name:"Cyprus",aliases:["\u{1F1E8}\u{1F1FE}","greek administration of southern cyprus","greek cypriot state","guney k\u0131br\u0131s","guney k\u0131br\u0131s rum cumhuriyeti","guney k\u0131br\u0131s rum kesimi","guney k\u0131br\u0131s rum yonetimi","kipriaki dhimokratia","k\u0131br\u0131s","k\u0131br\u0131s cumhuriyeti","k\u0131br\u0131s rum kesimi","kypriaki dimokratia","kypros","republic of cyprus","\u03BA\u03C5\u03C0\u03C1\u03B9\u03B1\u03BA\u03B7 \u03B4\u03B7\u03BC\u03BF\u03BA\u03C1\u03B1\u03C4\u03B9\u03B1","\u03BA\u03C5\u03C0\u03C1\u03BF\u03C2"]},{iso3:"CZE",iso2:"CZ",m49:"203",name:"Czechia",aliases:["\u{1F1E8}\u{1F1FF}","ceska republika","ceske kraje","ceske uzemi","ceske zeme","cesko","cr","czech republic"]},{iso3:"DEU",iso2:"DE",m49:"276",name:"Germany",aliases:["\u{1F1E9}\u{1F1EA}","br deutschland","bundesrepublik","bundesrepublik deutschland","deutschland","federal republic of germany"]},{iso3:"DJI",iso2:"DJ",m49:"262",name:"Djibouti",aliases:["\u{1F1E9}\u{1F1EF}","la republique de djibouti","republic of djibouti","republique de djibouti","\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u062C\u064A\u0628\u0648\u062A\u064A","\u062C\u064A\u0628\u0648\u062A\u064A"]},{iso3:"DMA",iso2:"DM",m49:"212",name:"Dominica",aliases:["\u{1F1E9}\u{1F1F2}","commonwealth of dominica","island of dominica","waitu kubuli"]},{iso3:"DNK",iso2:"DK",m49:"208",name:"Denmark",aliases:["\u{1F1E9}\u{1F1F0}","dania","danmark","denmark proper","kongeriget danmark","metropolitan denmark"]},{iso3:"DOM",iso2:"DO",m49:"214",name:"Dominican Republic",aliases:["\u{1F1E9}\u{1F1F4}","dominicana","domrep","haiti espanol","quisqueya","republica de santo domingo","republica dominicana","santo domingo"]},{iso3:"DZA",iso2:"DZ",m49:"012",name:"Algeria",aliases:["\u{1F1E9}\u{1F1FF}","peoples democratic republic of algeria","\u0627\u0644\u062C\u0632\u0627\u0626\u0631","\u0627\u0644\u062C\u0632\u0627\u064A\u0631","\u0627\u0644\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u0627\u0644\u062C\u0632\u0627\u0626\u0631\u064A\u0629 \u0627\u0644\u062F\u064A\u0645\u0642\u0631\u0627\u0637\u064A\u0629 \u0627\u0644\u0634\u0639\u0628\u064A\u0629","\u0627\u0644\u062F\u0632\u0627\u064A\u0631","\u062F\u0632\u0627\u064A\u0631"]},{iso3:"ECU",iso2:"EC",m49:"218",name:"Ecuador",aliases:["\u{1F1EA}\u{1F1E8}","ecuadorian state","el ecuador","estado ecuatoriano","republic of ecuador","republic of equator","republic of the equator","republica del ecuador"]},{iso3:"EGY",iso2:"EG",m49:"818",name:"Egypt",aliases:["\u{1F1EA}\u{1F1EC}","arab rep egypt","arab republic of egypt","rep egypt","republic of egypt","\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u0645\u0635\u0631 \u0627\u0644\u0639\u0631\u0628\u064A\u0629","\u0645\u0635\u0631"]},{iso3:"ERI",iso2:"ER",m49:"232",name:"Eritrea",aliases:["\u{1F1EA}\u{1F1F7}","ertra","hagere ertra","hagere iertra","iertra","iritriya","state of eritrea","\u0625\u0631\u062A\u0631\u064A\u0627","\u0625\u0631\u064A\u062A\u0631\u064A\u0627","\u0627\u0631\u062A\u0631\u064A\u0627","\u0627\u0631\u062A\u064A\u0631\u064A\u0627","\u0627\u0631\u064A\u062A\u0631\u064A\u0627","\u062F\u0648\u0644\u0629 \u0625\u0631\u062A\u0631\u064A\u0627","\u062F\u0648\u0644\u0629 \u0625\u0631\u064A\u062A\u0631\u064A\u0627","\u1203\u1308\u1228 \u12A4\u122D\u1275\u122B","\u12A4\u122D\u1275\u122B"]},{iso3:"ESH",iso2:"EH",m49:"732",name:"Western Sahara",aliases:["\u{1F1EA}\u{1F1ED}","southern provinces","spanish sahara","west sahara"]},{iso3:"ESP",iso2:"ES",m49:"724",name:"Spain",aliases:["\u{1F1EA}\u{1F1F8}","espana","estado espanol","kingdom of spain","reino de espana"]},{iso3:"EST",iso2:"EE",m49:"233",name:"Estonia",aliases:["\u{1F1EA}\u{1F1EA}","eesti","eesti noukogude sotsialistlik vabariik","eesti vabariik","estland","republic of estonia"]},{iso3:"ETH",iso2:"ET",m49:"231",name:"Ethiopia",aliases:["\u{1F1EA}\u{1F1F9}","federal democratic republic of ethiopia","ityopiya","yeityopiya federalawi demokrasiyawi ripeblik","yeityopiya hizbawi dimokrasiyawi ripublik","\u12A2\u1275\u12EE\u1335\u12EB","\u12E8\u12A2\u1275\u12EE\u1335\u12EB \u134C\u12F4\u122B\u120B\u12CA \u12F4\u121E\u12AD\u122B\u1232\u12EB\u12CA \u122A\u1350\u1265\u120A\u12AD"]},{iso3:"FIN",iso2:"FI",m49:"246",name:"Finland",aliases:["\u{1F1EB}\u{1F1EE}","republic of finland","republiken finland","suomen tasavalta","suomi"]},{iso3:"FJI",iso2:"FJ",m49:"242",name:"Fiji",aliases:["\u{1F1EB}\u{1F1EF}","fiji ganarajya","matanitu ko viti","matanitu tugalala o viti","republic of fiji","republic of the fiji islands","viti"]},{iso3:"FLK",iso2:"FK",m49:"238",name:"Falkland Islands (Malvinas)",aliases:["\u{1F1EB}\u{1F1F0}","colony of the falkland islands","falkland islands","falklands","islas malvinas","malvinas","malvinas islands"]},{iso3:"FRA",iso2:"FR",m49:"250",name:"France",aliases:["\u{1F1EB}\u{1F1F7}","fr","french republic","la france","la republique francaise","lhexagone","republique francaise"]},{iso3:"FRO",iso2:"FO",m49:"234",name:"Faroe Islands",aliases:["\u{1F1EB}\u{1F1F4}","faer oer","f\xE6r\xF8","faeroe is","faeroe islands","faeroe isles","f\xE6r\xF8erne","faeroes","far oer","faroe island","faroe isles","faroes","faroese islands","f\xF8roya","f\xF8royar","f\xF8royum"]},{iso3:"FSM",iso2:"FM",m49:"583",name:"Micronesia (Federated States of)",aliases:["\u{1F1EB}\u{1F1F2}","fed sts micronesia","fed sts of micronesia","federated states of micronesia","federated states of micronesia fsm","micronesia"]},{iso3:"GAB",iso2:"GA",m49:"266",name:"Gabon",aliases:["\u{1F1EC}\u{1F1E6}","gabonese republic","la republique gabonaise","le gabon","republique du gabon","republique gabonaise"]},{iso3:"GBR",iso2:"GB",m49:"826",name:"United Kingdom of Great Britain and Northern Ireland",aliases:["\u{1F1EC}\u{1F1E7}","britain","england","great britain","great britain and northern ireland","northern ireland","scotland","uk","united kingdom","wales"]},{iso3:"GEO",iso2:"GE",m49:"268",name:"Georgia",aliases:["\u{1F1EC}\u{1F1EA}","georgia country","republic of georgia","sakartvelo","\u049B\u044B\u0440\u04AD\u0442\u04D9\u044B\u043B\u0430","\u10E1\u10D0\u10E5\u10D0\u10E0\u10D7\u10D5\u10D4\u10DA\u10DD","\u10E1\u10D0\u10E5\u10D0\u10E0\u10D7\u10D5\u10D4\u10DA\u10DD\u10E1 \u10E0\u10D4\u10E1\u10DE\u10E3\u10D1\u10DA\u10D8\u10D9\u10D0"]},{iso3:"GGY",iso2:"GG",m49:"831",name:"Guernsey",aliases:["\u{1F1EC}\u{1F1EC}","bailiwick of guernsey","bailliage de guernesey","bailliage de guernesi","giernesi","great britain guernsey","guernesey","lisia"]},{iso3:"GHA",iso2:"GH",m49:"288",name:"Ghana",aliases:["\u{1F1EC}\u{1F1ED}","republic of ghana"]},{iso3:"GIB",iso2:"GI",m49:"292",name:"Gibraltar",aliases:["\u{1F1EC}\u{1F1EE}","rock of gibraltar"]},{iso3:"GIN",iso2:"GN",m49:"324",name:"Guinea",aliases:["\u{1F1EC}\u{1F1F3}","guinee","guinee conakry","republic of guinea","republique de guinee"]},{iso3:"GLP",iso2:"GP",m49:"312",name:"Guadeloupe",aliases:["\u{1F1EC}\u{1F1F5}"]},{iso3:"GMB",iso2:"GM",m49:"270",name:"Gambia",aliases:["\u{1F1EC}\u{1F1F2}","islamic republic of the gambia","republic of the gambia"]},{iso3:"GNB",iso2:"GW",m49:"624",name:"Guinea-Bissau",aliases:["\u{1F1EC}\u{1F1FC}","guine bissau","republic of guinea bissau","republica da guine bissau"]},{iso3:"GNQ",iso2:"GQ",m49:"226",name:"Equatorial Guinea",aliases:["\u{1F1EC}\u{1F1F6}","guine equatorial","guinea ecuatorial","guinea espanola","guinee equat","guinee equatoriale","la republique de guinee equatoriale","posesiones espanolas del golfo de guinea","provincia de la guinea ecuatorial","republic of equatorial guinea","republica da guine equatorial","republica de guinea ecuatorial","territorios espanoles del golfo de guinea"]},{iso3:"GRC",iso2:"GR",m49:"300",name:"Greece",aliases:["\u{1F1EC}\u{1F1F7}","ellada","ellas","elliniki dhimokratia","elliniki dimokratia","greek republic","hellas","hellas greece","hellenic republic","vasilion tis ellados","\u03B4\u03B7\u03BC\u03BF\u03BA\u03C1\u03B1\u03C4\u03B9\u03B1 \u03C4\u03B7\u03C2 \u03B5\u03BB\u03BB\u03B1\u03B4\u03B1\u03C2","\u03B4\u03B7\u03BC\u03BF\u03BA\u03C1\u03B1\u03C4\u03B9\u03B1 \u03C4\u03B7\u03C2 \u03B5\u03BB\u03BB\u03B1\u03B4\u03BF\u03C2","\u03B5\u03BB\u03BB\u03B1\u03B4\u03B1","\u03B5\u03BB\u03BB\u03B1\u03C2","\u03B5\u03BB\u03BB\u03B1\u03C2 \u03B5\u03BB\u03BB\u03B1\u03B4\u03B1","\u03B5\u03BB\u03BB\u03B7\u03BD\u03B9\u03BA\u03B7 \u03B4\u03B7\u03BC\u03BF\u03BA\u03C1\u03B1\u03C4\u03B9\u03B1"]},{iso3:"GRD",iso2:"GD",m49:"308",name:"Grenada",aliases:["\u{1F1EC}\u{1F1E9}"]},{iso3:"GRL",iso2:"GL",m49:"304",name:"Greenland",aliases:["\u{1F1EC}\u{1F1F1}","kalaallit nunaat"]},{iso3:"GTM",iso2:"GT",m49:"320",name:"Guatemala",aliases:["\u{1F1EC}\u{1F1F9}","republic of guatemala","republica de guatemala"]},{iso3:"GUF",iso2:"GF",m49:"254",name:"French Guiana",aliases:["\u{1F1EC}\u{1F1EB}","fr 973","guiana","guiana france","guyane","guyane francaise","gwiyann","gwiyann franse","lagwiyann"]},{iso3:"GUM",iso2:"GU",m49:"316",name:"Guam",aliases:["\u{1F1EC}\u{1F1FA}","guahan","guam usa","islan guahan","island of guam","territory of guam"]},{iso3:"GUY",iso2:"GY",m49:"328",name:"Guyana",aliases:["\u{1F1EC}\u{1F1FE}","co operative republic of guyana","republic of guyana"]},{iso3:"HKG",iso2:"HK",m49:"344",name:"Hong Kong",aliases:["\u{1F1ED}\u{1F1F0}","hksar","hong kong sar","hong kong special administrative region","hong kong special administrative region of the peoples republic of china","hongkong"]},{iso3:"HMD",iso2:"HM",m49:"334",name:"Heard Island and McDonald Islands",aliases:["\u{1F1ED}\u{1F1F2}","heard","heard & mcdonald islands","heard and macdonald islands","heard island","himi","mcdonald","mcdonald island","territory of heard island and mcdonald islands"]},{iso3:"HND",iso2:"HN",m49:"340",name:"Honduras",aliases:["\u{1F1ED}\u{1F1F3}","guaymuras","higueras","honduran republic","republic of honduras","republica de honduras"]},{iso3:"HRV",iso2:"HR",m49:"191",name:"Croatia",aliases:["\u{1F1ED}\u{1F1F7}","hrvatska","republic of croatia","republika hrvatska"]},{iso3:"HTI",iso2:"HT",m49:"332",name:"Haiti",aliases:["\u{1F1ED}\u{1F1F9}","ayiti","haitian republic","la republique dhaiti","repiblik d ayiti","republic of haiti","republique dhaiti"]},{iso3:"HUN",iso2:"HU",m49:"348",name:"Hungary",aliases:["\u{1F1ED}\u{1F1FA}","a magyar koztarsasag","a magyar nepkoztarsasag","harmadik magyar koztarsasag","magyar koztarsasag","magyar nepkoztarsasag","magyarorszag","mo"]},{iso3:"IDN",iso2:"ID",m49:"360",name:"Indonesia",aliases:["\u{1F1EE}\u{1F1E9}","negara kesatuan republik indonesia","nkri","republic of indonesia","republik indonesia"]},{iso3:"IMN",iso2:"IM",m49:"833",name:"Isle of Man",aliases:["\u{1F1EE}\u{1F1F2}","ellan vannin","i man","i mann","i mannin","isle of mann","mann","mannin","manx"]},{iso3:"IND",iso2:"IN",m49:"356",name:"India",aliases:["\u{1F1EE}\u{1F1F3}","al hind","bharat","bharat ganarajya","bharata","bharatvarsh","hindoostan","hindustan","indostan","republic of india","tenjiku","tianzhu","\u0906\u0930\u094D\u092F\u0935\u0930\u094D\u0924","\u0907\u0902\u0921\u093F\u092F\u093E","\u0907\u0923\u094D\u0921\u093F\u092F\u093E","\u092D\u093E\u0930\u0924","\u092D\u093E\u0930\u0924 \u0917\u0923\u0930\u093E\u091C\u094D\u092F","\u092D\u093E\u0930\u0924\u0935\u0930\u094D\u0937","\u0939\u093F\u0902\u0926\u0941\u0938\u094D\u0924\u093E\u0928","\u0939\u093F\u0928\u094D\u0926\u0941\u0938\u094D\u0924\u093E\u0928","\u0939\u093F\u0928\u094D\u0926\u094B\u0938\u094D\u0924\u093E\u0928"]},{iso3:"IOT",iso2:"IO",m49:"086",name:"British Indian Ocean Territory",aliases:["\u{1F1EE}\u{1F1F4}","biot"]},{iso3:"IRL",iso2:"IE",m49:"372",name:"Ireland",aliases:["\u{1F1EE}\u{1F1EA}","eire","hibernia","irish republic","poblacht na heireann","republic of ireland","southern ireland"]},{iso3:"IRN",iso2:"IR",m49:"364",name:"Iran (Islamic Republic of)",aliases:["\u{1F1EE}\u{1F1F7}","iran","islamic rep iran","islamic republic of iran","persia","\u0627\u06CC\u0631\u0627\u0646","\u0627\u06CC\u0631\u0627\u0646\u0632\u0645\u06CC\u0646","\u067E\u0627\u0631\u0633","\u062C\u0645\u0647\u0648\u0631\u06CC \u0627\u0633\u0644\u0627\u0645\u06CC \u0627\u064A\u0631\u0627\u0646","\u062C\u0645\u0647\u0648\u0631\u06CC \u0627\u0633\u0644\u0627\u0645\u06CC \u0627\u06CC\u0631\u0627\u0646","\u0643\u0634\u0648\u0631 \u0634\u0627\u0647\u0646\u0634\u0627\u0647\u06CC \u0627\u064A\u0631\u0627\u0646"]},{iso3:"IRQ",iso2:"IQ",m49:"368",name:"Iraq",aliases:["\u{1F1EE}\u{1F1F6}","eraq","iraqe","komar i eraq","republic of iraq","\u0627\u0644\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u0627\u0644\u0639\u0631\u0627\u0642\u064A\u0629","\u0627\u0644\u0639\u0631\u0627\u0642","\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u0627\u0644\u0639\u0631\u0627\u0642","\u0639\u0631\u0627\u0642","\u0639\u06CE\u0631\u0627\u0642"]},{iso3:"ISL",iso2:"IS",m49:"352",name:"Iceland",aliases:["\u{1F1EE}\u{1F1F8}","icelandic republic","island","ly\xF0veldi\xF0 island","republic of iceland","ysland"]},{iso3:"ISR",iso2:"IL",m49:"376",name:"Israel",aliases:["\u{1F1EE}\u{1F1F1}","erez yisrael","medinat yisrael","state of israel","yisrael","\u05D9\u05E9\u05E8\u05D0\u05DC","\u05DE\u05D3\u05D9\u05E0\u05EA \u05D9\u05E9\u05E8\u05D0\u05DC"]},{iso3:"ITA",iso2:"IT",m49:"380",name:"Italy",aliases:["\u{1F1EE}\u{1F1F9}","il bel paese","italia","italian republic","repubblica italiana","republic of italy"]},{iso3:"JAM",iso2:"JM",m49:"388",name:"Jamaica",aliases:["\u{1F1EF}\u{1F1F2}","commonwealth of jamaica","jamieka","jomieka","jumieka"]},{iso3:"JEY",iso2:"JE",m49:"832",name:"Jersey",aliases:["\u{1F1EF}\u{1F1EA}","bailliage de jerri","bailliage de jersey","balliwick of jersey","i iersey","i jersey","iersey","iersey i","isle of jersey","jerri","jersey i","jersey island"]},{iso3:"JOR",iso2:"JO",m49:"400",name:"Jordan",aliases:["\u{1F1EF}\u{1F1F4}","giordania","hashemite kingdom of jordan","kingdom of jordan","state of jordan","yarden","\u0627\u0644\u0623\u0631\u062F\u0646","\u0627\u0644\u0627\u0631\u062F\u0646","\u0627\u0644\u0645\u0645\u0644\u0643\u0629 \u0627\u0644\u0623\u0631\u062F\u0646\u064A\u0629 \u0627\u0644\u0647\u0627\u0634\u0645\u064A\u0629","\u0627\u0644\u0645\u0645\u0644\u0643\u0629 \u0627\u0644\u0627\u0631\u062F\u0646\u064A\u0629 \u0627\u0644\u0647\u0627\u0634\u0645\u064A\u0629"]},{iso3:"JPN",iso2:"JP",m49:"392",name:"Japan",aliases:["\u{1F1EF}\u{1F1F5}","state of japan","\u3042\u304D\u3064\u3057\u307E","\u304A\u304A\u3084\u3057\u307E","\u3057\u304D\u3057\u307E","\u30B8\u30E3\u30D1\u30F3","\u3057\u3093\u3057\u3085\u3046","\u306B\u3063\u307D\u3093","\u306B\u3063\u307D\u3093\u3053\u304F","\u306B\u307B\u3093","\u306B\u307B\u3093\u3053\u304F","\u3072\u3044\u305A\u308B\u304F\u306B","\u3075\u305D\u3046","\u5927\u516B\u5DDE","\u6276\u6728\u4E4B\u5730","\u6276\u6851","\u6276\u6851\u56FD","\u6577\u5CF6","\u65E5\u51FA\u308B\u56FD","\u65E5\u672C","\u6991\u6728\u4E4B\u5730","\u745E\u7A42\u56FD","\u795E\u5DDE","\u79CB\u6D25\u5CF6","\u8466\u539F\u4E2D\u56FD"]},{iso3:"KAZ",iso2:"KZ",m49:"398",name:"Kazakhstan",aliases:["\u{1F1F0}\u{1F1FF}","qazaqstan","qazaqstan respublikasy","republic of kazakhstan","\u043A\u0430\u0437\u0430\u0445\u0441\u0442\u0430\u043D","\u049B\u0430\u0437\u0430\u049B\u0441\u0442\u0430\u043D","\u049B\u0430\u0437\u0430\u049B\u0441\u0442\u0430\u043D \u0440\u0435\u0441\u043F\u0443\u0431\u043B\u0438\u043A\u0430\u0441\u044B","\u0440\u0435\u0441\u043F\u0443\u0431\u043B\u0438\u043A\u0430 \u043A\u0430\u0437\u0430\u0445\u0441\u0442\u0430\u043D","\u0440\u043A"]},{iso3:"KEN",iso2:"KE",m49:"404",name:"Kenya",aliases:["\u{1F1F0}\u{1F1EA}","jamhuri ya kenya","republic of kenya"]},{iso3:"KGZ",iso2:"KG",m49:"417",name:"Kyrgyzstan",aliases:["\u{1F1F0}\u{1F1EC}","kyrgyz republic","kyrgyz respublikasy","kyrgyzstan respublikasy","\u043A\u0440","\u043A\u044B\u0440\u0433\u044B\u0437 \u0440\u0435\u0441\u043F\u0443\u0431\u043B\u0438\u043A\u0430\u0441\u044B","\u043A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D"]},{iso3:"KHM",iso2:"KH",m49:"116",name:"Cambodia",aliases:["\u{1F1F0}\u{1F1ED}","camboya","campuchia","kambodzha","kamboja","kampuchea","kingdom of cambodia","\u1780\u1798\u17D2\u1796\u17BB\u1787\u17B6","\u1796\u17D2\u179A\u17C7\u179A\u17B6\u1787\u17B6\u178E\u17B6\u1785\u1780\u17D2\u179A\u1780\u1798\u17D2\u1796\u17BB\u1787\u17B6"]},{iso3:"KIR",iso2:"KI",m49:"296",name:"Kiribati",aliases:["\u{1F1F0}\u{1F1EE}","republic of kiribati"]},{iso3:"KNA",iso2:"KN",m49:"659",name:"Saint Kitts and Nevis",aliases:["\u{1F1F0}\u{1F1F3}","federation of saint christopher and nevis","federation of saint kitts and nevis","kitts & nevis","nevis","saint christopher","saint christopher and nevis","saint kitts"]},{iso3:"KOR",iso2:"KR",m49:"410",name:"Republic of Korea",aliases:["\u{1F1F0}\u{1F1F7}","korea","korea republic","korea republic of","korea south","rep korea","s korea","south korea","taehan minguk","\uB0A8\uC870\uC120","\uB0A8\uD55C","\uB300\uD55C","\uB300\uD55C\uBBFC\uAD6D","\uCF54\uB9AC\uC544","\uD55C\uAD6D"]},{iso3:"KWT",iso2:"KW",m49:"414",name:"Kuwait",aliases:["\u{1F1F0}\u{1F1FC}","state of kuwait","\u0627\u0644\u0643\u0648\u064A\u062A","\u062F\u0648\u0644\u0629 \u0627\u0644\u0643\u0648\u064A\u062A"]},{iso3:"LAO",iso2:"LA",m49:"418",name:"Lao People's Democratic Republic",aliases:["\u{1F1F1}\u{1F1E6}","laos","sathalanalat paxathipatai paxaxon lao","\u0EAA\u0EB2\u0E97\u0EB2\u0EA5\u0EB0\u0E99\u0EB0\u0EA5\u0EB1\u0E94 \u0E9B\u0EB0\u0E8A\u0EB2\u0E97\u0EB4\u0E9B\u0EB0\u0EC4\u0E95 \u0E9B\u0EB0\u0E8A\u0EB2\u0E8A\u0EBB\u0E99\u0EA5\u0EB2\u0EA7","\u0E9B\u0EB0\u0EC0\u0E97\u0E94\u0EA5\u0EB2\u0EA7","\u0EA5\u0EB2\u0EA7"]},{iso3:"LBN",iso2:"LB",m49:"422",name:"Lebanon",aliases:["\u{1F1F1}\u{1F1E7}","lebanese republic","republic of lebanon","state of lebanon","\u0627\u0644\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u0627\u0644\u0644\u0628\u0646\u0627\u0646\u064A\u0629","\u0644\u0628\u0646\u0627\u0646"]},{iso3:"LBR",iso2:"LR",m49:"430",name:"Liberia",aliases:["\u{1F1F1}\u{1F1F7}","liber","republic of liberia"]},{iso3:"LBY",iso2:"LY",m49:"434",name:"Libya",aliases:["\u{1F1F1}\u{1F1FE}","state of libya","\u0627\u0644\u062C\u0645\u0627\u0647\u064A\u0631\u064A\u0629 \u0627\u0644\u0639\u0631\u0628\u064A\u0629 \u0627\u0644\u0644\u064A\u0628\u064A\u0629 \u0627\u0644\u0634\u0639\u0628\u064A\u0629 \u0627\u0644\u0625\u0634\u062A\u0631\u0627\u0643\u064A\u0629","\u0627\u0644\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u0627\u0644\u0644\u064A\u0628\u064A\u0629","\u0627\u0644\u0644\u064A\u0628\u064A","\u0627\u0644\u0644\u064A\u0628\u064A\u0629","\u0627\u0644\u0644\u064A\u0628\u064A\u0646","\u062F\u0648\u0644\u0629 \u0644\u064A\u0628\u064A\u0627","\u0644\u064A\u0628\u0628\u064A\u0627","\u0644\u064A\u0628\u064A","\u0644\u064A\u0628\u064A\u0627","\u0644\u064A\u0628\u064A\u0629"]},{iso3:"LCA",iso2:"LC",m49:"662",name:"Saint Lucia",aliases:["\u{1F1F1}\u{1F1E8}","hewanorra","iyonola"]},{iso3:"LIE",iso2:"LI",m49:"438",name:"Liechtenstein",aliases:["\u{1F1F1}\u{1F1EE}","furstentum lichtenstein","furstentum liechtenstein","principality of liechtenstein"]},{iso3:"LKA",iso2:"LK",m49:"144",name:"Sri Lanka",aliases:["\u{1F1F1}\u{1F1F0}","ceylan","ceylon","democratic socialist republic of sri lanka","ilankaic cananayaka cocalicak kutiyarcu","lankava","prajatantravadi samajavadi janarajaya sri lanka","serendib","srilanka","taprobane","\u0B87\u0BB2\u0B99\u0BCD\u0B95\u0BC8","\u0B87\u0BB2\u0B99\u0BCD\u0B95\u0BC8 \u0B9A\u0BA9\u0BA8\u0BBE\u0BAF\u0B95 \u0B9A\u0BCB\u0B9A\u0BB2\u0BBF\u0B9A\u0B95\u0BCD \u0B95\u0BC1\u0B9F\u0BBF\u0BAF\u0BB0\u0B9A\u0BC1","\u0B87\u0BB2\u0B99\u0BCD\u0B95\u0BC8 \u0B9A\u0BA9\u0BA8\u0BBE\u0BAF\u0B95 \u0B9A\u0BCB\u0BB7\u0BB2\u0BBF\u0B9A\u0B95\u0BCD \u0B95\u0BC1\u0B9F\u0BBF\u0BAF\u0BB0\u0B9A\u0BC1","\u0B88\u0BB4\u0BAE\u0BCD","\u0B9A\u0BBF\u0BB2\u0BCB\u0BA9\u0BCD","\u0DBD\u0D82\u0D9A\u0DCF\u0DC0","\u0DC1\u0DCA\u0DBB\u0DD3 \u0DBD\u0D82\u0D9A\u0DCF \u0DB4\u0DCA\u0DBB\u0DA2\u0DCF\u0DAD\u0DB1\u0DCA\u0DAD\u0DCA\u0DBB\u0DC0\u0DCF\u0DAF\u0DD3 \u0DC3\u0DB8\u0DCF\u0DA2\u0DC0\u0DCF\u0DAF\u0DD3 \u0DA2\u0DB1\u0DBB\u0DA2\u0DBA","\u0DC1\u0DCA\u0DBB\u0DD3 \u0DBD\u0D82\u0D9A\u0DCF\u0DC0","\u0DC1\u0DCA\u200D\u0DBB\u0DD3 \u0DBD\u0D82\u0D9A\u0DCF\u0DC0"]},{iso3:"LSO",iso2:"LS",m49:"426",name:"Lesotho",aliases:["\u{1F1F1}\u{1F1F8}","kingdom of lesotho","mmuso wa lesotho","mountain kingdom"]},{iso3:"LTU",iso2:"LT",m49:"440",name:"Lithuania",aliases:["\u{1F1F1}\u{1F1F9}","lietuva","lietuvos respublika","republic of lithuania"]},{iso3:"LUX",iso2:"LU",m49:"442",name:"Luxembourg",aliases:["\u{1F1F1}\u{1F1FA}","grand duche","grand duche de luxembourg","grand duchy of luxembourg","gro\xDFherzogtum luxemburg","groussherzogtum letzebuerg","le grand duche de luxembourg","letzebuerg","letzebuerger land","lux","luxemburg"]},{iso3:"LVA",iso2:"LV",m49:"428",name:"Latvia",aliases:["\u{1F1F1}\u{1F1FB}","latveja","latvejas republika","latvian republic","latvija","latvijas republika","letm\u043E","letm\u043E vabam\u043E","republic of latvia"]},{iso3:"MAC",iso2:"MO",m49:"446",name:"Macao",aliases:["\u{1F1F2}\u{1F1F4}","aomen","macao sar","macao special administrative region","macao special administrative region of the peoples republic of china","macau","macau rae da china","macau sar","macau special administrative region","macau special administrative region of the peoples republic of china","raem","regiao administrativa especial de macau","regiao administrativa especial de macau da republica popular da china","\u4E2D\u570B\u6FB3\u9580\u7279\u5225\u884C\u653F\u5340","\u6FB3\u9580"]},{iso3:"MAF",iso2:"MF",m49:"663",name:"Saint Martin (French Part)",aliases:["\u{1F1F2}\u{1F1EB}","collectivite de saint martin","collectivity of saint martin","saint martin","saint martin antilles francaises","saint martin france"]},{iso3:"MAR",iso2:"MA",m49:"504",name:"Morocco",aliases:["\u{1F1F2}\u{1F1E6}","kingdom of morocco","\u0627\u0644\u0645\u063A\u0631\u0628","\u0627\u0644\u0645\u0645\u0644\u0643\u0629 \u0627\u0644\u0645\u063A\u0631\u0628\u064A\u0629","\u2D30\u2D4E\u2D53\u2D54 \u2D4F \u2D61\u2D30\u2D3D\u2D53\u2D5B","\u2D30\u2D4E\u2D55\u2D55\u2D53\u2D3D","\u2D4D\u2D4E\u2D55\u2D55\u2D53\u2D3D","\u2D4D\u2D4E\u2D56\u2D54\u2D49\u2D31","\u2D5C\u2D30\u2D33\u2D4D\u2D37\u2D49\u2D5C \u2D4F \u2D4D\u2D4E\u2D56\u2D54\u2D49\u2D31"]},{iso3:"MCO",iso2:"MC",m49:"492",name:"Monaco",aliases:["\u{1F1F2}\u{1F1E8}","fort hercule","la principaute de monaco","monaco rattachee au district de menton en 1793","munegu","principality and diocese of monaco","principality of monaco","principatu de munegu","principaute de monaco"]},{iso3:"MDA",iso2:"MD",m49:"498",name:"Republic of Moldova",aliases:["\u{1F1F2}\u{1F1E9}","moldavia","moldova","moldova republic of","moldova republica","r moldova","rep moldova","republica moldova","\u043C\u043E\u043B\u0434\u043E\u0432\u0430"]},{iso3:"MDG",iso2:"MG",m49:"450",name:"Madagascar",aliases:["\u{1F1F2}\u{1F1EC}","la republique de madagascar","madagasikara","repoblikani madagasikara","republic of madagascar","republique de madagascar"]},{iso3:"MDV",iso2:"MV",m49:"462",name:"Maldives",aliases:["\u{1F1F2}\u{1F1FB}","dhivehi raajjeyge jumhooriyyaa","republic of maldives","\u078B\u07A8\u0788\u07AC\u0780\u07A8 \u0783\u07A7\u0787\u07B0\u0796\u07AC","\u078B\u07A8\u0788\u07AC\u0780\u07A8\u0783\u07A7\u0787\u07B0\u0796\u07AC","\u078B\u07A8\u0788\u07AC\u0780\u07A8\u0783\u07A7\u0787\u07B0\u0796\u07AD\u078E\u07AC \u0796\u07AA\u0789\u07AA\u0780\u07AB\u0783\u07A8\u0787\u07B0\u0794\u07A7","\u078B\u07A8\u0788\u07AC\u0780\u07A8\u0783\u07A7\u0787\u07B0\u0796\u07AD\u078E\u07AC \u0796\u07AA\u0789\u07B0\u0780\u07AB\u0783\u07A8\u0787\u07B0\u0794\u07A7"]},{iso3:"MEX",iso2:"MX",m49:"484",name:"Mexico",aliases:["\u{1F1F2}\u{1F1FD}","estados unidos mejicanos","estados unidos mexicanos","mejico","mexican republic","mexican united states","mexihco","mexihko","mexika sentik wexteyowalko","mexiko","mexko","mexko axkayotl","mexko tlalli","nueva espana","republica mejicana","republica mexicana","united mexican states","united states of mexico"]},{iso3:"MHL",iso2:"MH",m49:"584",name:"Marshall Islands",aliases:["\u{1F1F2}\u{1F1ED}","aelon kein ad","aolepan aorokin majel","jolet jen anij","majel","majol","republic of the marshall islands"]},{iso3:"MKD",iso2:"MK",m49:"807",name:"North Macedonia",aliases:["\u{1F1F2}\u{1F1F0}","former yugoslav republic of macedonia","fyr macedonia","fyrom","irjm","ish republika jugosllave e maqedonise","macedonia","macedonia former yugoslav republic of","macedonia fyr","maqedoni","maqedonia","maqedonia e veriut","republic of macedonia","republic of north macedonia","republika e maqedonise","republika e maqedonise se veriut","\u043C\u0430\u043A\u0435\u0434\u043E\u043D\u0438\u0458\u0430","\u0440\u0435\u043F\u0443\u0431\u043B\u0438\u043A\u0430 \u043C\u0430\u043A\u0435\u0434\u043E\u043D\u0438\u0458\u0430","\u0440\u0435\u043F\u0443\u0431\u043B\u0438\u043A\u0430 \u0441\u0435\u0432\u0435\u0440\u043D\u0430 \u043C\u0430\u043A\u0435\u0434\u043E\u043D\u0438\u0458\u0430","\u0440\u043C","\u0440\u0441\u043C","\u0441\u0435\u0432\u0435\u0440\u043D\u0430 \u043C\u0430\u043A\u0435\u0434\u043E\u043D\u0438\u0458\u0430"]},{iso3:"MLI",iso2:"ML",m49:"466",name:"Mali",aliases:["\u{1F1F2}\u{1F1F1}","maali","republic of mali"]},{iso3:"MLT",iso2:"MT",m49:"470",name:"Malta",aliases:["\u{1F1F2}\u{1F1F9}","malta island","repubblika ta malta","republic of malta"]},{iso3:"MMR",iso2:"MM",m49:"104",name:"Myanmar",aliases:["\u{1F1F2}\u{1F1F2}","burma","pyidaungzu myanma naingngandaw","pyidaungzu thammada myanma naingngandaw","republic of the union of myanmar","union of burma","\u1015\u103C\u100A\u103A\u1011\u1031\u102C\u1004\u103A\u1005\u102F \u1019\u103C\u1014\u103A\u1019\u102C\u1014\u102D\u102F\u1004\u103A\u1004\u1036","\u1015\u103C\u100A\u103A\u1011\u1031\u102C\u1004\u103A\u1005\u102F \u1019\u103C\u1014\u103A\u1019\u102C\u1014\u102D\u102F\u1004\u103A\u1004\u1036\u1010\u1031\u102C\u103A","\u1015\u103C\u100A\u103A\u1011\u1031\u102C\u1004\u103A\u1005\u102F \u101E\u1019\u1039\u1019\u1010 \u1019\u103C\u1014\u103A\u1019\u102C\u1014\u102D\u102F\u1004\u103A\u1004\u1036","\u1015\u103C\u100A\u103A\u1011\u1031\u102C\u1004\u103A\u1005\u102F \u101E\u1019\u1039\u1019\u1010 \u1019\u103C\u1014\u103A\u1019\u102C\u1014\u102D\u102F\u1004\u103A\u1004\u1036\u1010\u1031\u102C\u103A","\u1015\u103C\u100A\u103A\u1011\u1031\u102C\u1004\u103A\u1005\u102F\u1019\u103C\u1014\u103A\u1019\u102C\u1014\u102D\u102F\u1004\u103A\u1004\u1036\u1010\u1031\u102C\u103A","\u1015\u103C\u100A\u103A\u1011\u1031\u102C\u1004\u103A\u1005\u102F\u101E\u1019\u1039\u1019\u1010\u1019\u103C\u1014\u103A\u1019\u102C\u1014\u102D\u102F\u1004\u103A\u1004\u1036","\u1015\u103C\u200C\u100A\u103A\u1011\u1031\u102C\u1004\u103A\u1005\u102F\u101E\u1019\u1039\u1019\u1010\u1019\u103C\u1014\u103A\u1019\u102C\u1014\u102D\u102F\u1004\u103A\u1004\u1036","\u1015\u103C\u100A\u103A\u1011\u1031\u102C\u1004\u103A\u1005\u102F\u101E\u1019\u1039\u1019\u1010\u1019\u103C\u1014\u103A\u1019\u102C\u1014\u102D\u102F\u1004\u103A\u1004\u1036\u1010\u1031\u102C\u103A","\u1017\u1019\u102C\u1015\u103C\u100A\u103A","\u1019\u103C\u1014\u103A\u1019\u102C","\u1019\u103C\u1014\u103A\u1019\u102C\u1014\u102D\u102F\u1004\u103A\u1004\u1036","\u1019\u103C\u1014\u103A\u1019\u102C\u1014\u102D\u102F\u1004\u103A\u1004\u1036\u1010\u1031\u102C\u103A","\u1019\u103C\u1014\u103A\u1019\u102C\u1015\u103C\u100A\u103A"]},{iso3:"MNE",iso2:"ME",m49:"499",name:"Montenegro",aliases:["\u{1F1F2}\u{1F1EA}","crna cora","\u0446\u0440\u043D\u0430 \u0433\u043E\u0440\u0430"]},{iso3:"MNG",iso2:"MN",m49:"496",name:"Mongolia",aliases:["\u{1F1F2}\u{1F1F3}","bugd nayramdah mongol ard uls","mongol uls","state of mongolia","\u043C\u043E\u043D\u0433\u043E\u043B","\u043C\u043E\u043D\u0433\u043E\u043B \u0443\u043B\u0441","\u182E\u1824\u1829\u182D\u1824\u182F \u1824\u182F\u1824\u1830"]},{iso3:"MNP",iso2:"MP",m49:"580",name:"Northern Mariana Islands",aliases:["\u{1F1F2}\u{1F1F5}","cnmi","commonwealth of the northern maria islands","commonwealth of the northern mariana islands","northern marianas","notte marianas","sankattan siha na islas marianas"]},{iso3:"MOZ",iso2:"MZ",m49:"508",name:"Mozambique",aliases:["\u{1F1F2}\u{1F1FF}","mocambique","republic of mozambique","republica de mocambique"]},{iso3:"MRT",iso2:"MR",m49:"478",name:"Mauritania",aliases:["\u{1F1F2}\u{1F1F7}","islamic republic of mauritania","\u0627\u0644\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u0627\u0644\u0625\u0633\u0644\u0627\u0645\u064A\u0629 \u0627\u0644\u0645\u0648\u0631\u064A\u062A\u0627\u0646\u064A\u0629","\u0645\u0648\u0631\u064A\u062A\u0627\u0646\u064A\u0627"]},{iso3:"MSR",iso2:"MS",m49:"500",name:"Montserrat",aliases:["\u{1F1F2}\u{1F1F8}","island of montserrat"]},{iso3:"MTQ",iso2:"MQ",m49:"474",name:"Martinique",aliases:["\u{1F1F2}\u{1F1F6}","territorial collectivity of martinique"]},{iso3:"MUS",iso2:"MU",m49:"480",name:"Mauritius",aliases:["\u{1F1F2}\u{1F1FA}","ile maurice","la republique de maurice","maurice","moris","republic of mauritius","republique de maurice"]},{iso3:"MWI",iso2:"MW",m49:"454",name:"Malawi",aliases:["\u{1F1F2}\u{1F1FC}","republic of malawi"]},{iso3:"MYS",iso2:"MY",m49:"458",name:"Malaysia",aliases:["\u{1F1F2}\u{1F1FE}","federation of malaysia","malaysia federation","negara seberang tambak","persekutuan malaysia"]},{iso3:"MYT",iso2:"YT",m49:"175",name:"Mayotte",aliases:["\u{1F1FE}\u{1F1F9}","departement de mayotte","departement region de mayotte","department of mayotte"]},{iso3:"NAM",iso2:"NA",m49:"516",name:"Namibia",aliases:["\u{1F1F3}\u{1F1E6}","republic of namibia"]},{iso3:"NCL",iso2:"NC",m49:"540",name:"New Caledonia",aliases:["\u{1F1F3}\u{1F1E8}","caledonie","kanaky","kanaky nouvelle caledonie","nouvelle caledonie","territoire de la nouvelle caledonie et dependances","territoire des nouvelle caledonie et dependances","territory of new caledonia and dependencies"]},{iso3:"NER",iso2:"NE",m49:"562",name:"Niger",aliases:["\u{1F1F3}\u{1F1EA}","jamhuriyar nijar","nijar","republic niger","republic of niger","republic of the niger"]},{iso3:"NFK",iso2:"NF",m49:"574",name:"Norfolk Island",aliases:["\u{1F1F3}\u{1F1EB}","norfolk island australia","norfolk island other territories","norfolk island other territories australia","territory of norfolk island"]},{iso3:"NGA",iso2:"NG",m49:"566",name:"Nigeria",aliases:["\u{1F1F3}\u{1F1EC}","federal republic of nigeria","naija"]},{iso3:"NIC",iso2:"NI",m49:"558",name:"Nicaragua",aliases:["\u{1F1F3}\u{1F1EE}","republic of nicaragua","republica de nicaragua"]},{iso3:"NIU",iso2:"NU",m49:"570",name:"Niue",aliases:["\u{1F1F3}\u{1F1FA}"]},{iso3:"NLD",iso2:"NL",m49:"528",name:"Kingdom of the Netherlands",aliases:["\u{1F1F3}\u{1F1F1}","hollandt","kingdom of netherlands","koninkrijk der nederlanden","nederland","nederlanden","nederlandt","netherlands","netherlands kingdom of the"]},{iso3:"NOR",iso2:"NO",m49:"578",name:"Norway",aliases:["\u{1F1F3}\u{1F1F4}","kingdom of norway","kongeriket noreg","kongeriket norge","noreg","norge"]},{iso3:"NPL",iso2:"NP",m49:"524",name:"Nepal",aliases:["\u{1F1F3}\u{1F1F5}","bal bo","bal poi yul","bal yul","balbo","balpo","balpo yul","nipal","sanghiya loktantrik ganatantra nepal","\u0928\u0947\u092A\u093E\u0932","\u0938\u0902\u0918\u093F\u092F \u0932\u094B\u0915\u0924\u093E\u0928\u094D\u0924\u094D\u0930\u093F\u0915 \u0917\u0923\u0924\u0928\u094D\u0924\u094D\u0930 \u0928\u0947\u092A\u093E\u0932","\u0938\u0902\u0918\u093F\u092F \u0932\u094B\u0915\u0924\u093E\u0928\u094D\u0924\u094D\u0930\u093F\u0915 \u0917\u0923\u0924\u0928\u094D\u0924\u094D\u0930\u093E\u0924\u094D\u092E\u0915 \u0928\u0947\u092A\u093E\u0932","\u0938\u0902\u0918\u0940\u092F \u0932\u094B\u0915\u0924\u093E\u0928\u094D\u0924\u094D\u0930\u093F\u0915 \u0917\u0923\u0924\u0928\u094D\u0924\u094D\u0930 \u0928\u0947\u092A\u093E\u0932"]},{iso3:"NRU",iso2:"NR",m49:"520",name:"Naoero",aliases:["\u{1F1F3}\u{1F1F7}","nauru","pleasant island","republic of naoero","republic of nauru"]},{iso3:"NZL",iso2:"NZ",m49:"554",name:"New Zealand",aliases:["\u{1F1F3}\u{1F1FF}","aotearoa","aotearoa new zealand","dominion of new zealand"]},{iso3:"OMN",iso2:"OM",m49:"512",name:"Oman",aliases:["\u{1F1F4}\u{1F1F2}","sultanate of oman","uman","\u0633\u0644\u0637\u0646\u0629 \u0639\u0645\u0627\u0646","\u0639\u0645\u0627\u0646"]},{iso3:"PAK",iso2:"PK",m49:"586",name:"Pakistan",aliases:["\u{1F1F5}\u{1F1F0}","hoi quoc","islamic republic of pakistan","republic of pakistan","tay hoi","\u0627\u0633\u0644\u0627\u0645\u06CC \u062C\u0645\u06C1\u0648\u0631\u06CC\u06C1 \u067E\u0627\u06A9\u0633\u062A\u0627\u0646","\u0628\u0627\u06A9\u0633\u062A\u0627\u0646","\u067E\u0627\u06A9\u0633\u062A\u0627\u0646"]},{iso3:"PAN",iso2:"PA",m49:"591",name:"Panama",aliases:["\u{1F1F5}\u{1F1E6}","republic of panama","republica de panama"]},{iso3:"PCN",iso2:"PN",m49:"612",name:"Pitcairn",aliases:["\u{1F1F5}\u{1F1F3}","occas island","pisskern ali\u0435n","pitcairn henderson ducie and oeno islands","pitcairn island","pitcairn islands","pitkern ailen"]},{iso3:"PER",iso2:"PE",m49:"604",name:"Peru",aliases:["\u{1F1F5}\u{1F1EA}","piruw","piruw ripuwlika","republic of peru","republica del peru"]},{iso3:"PHL",iso2:"PH",m49:"608",name:"Philippines",aliases:["\u{1F1F5}\u{1F1ED}","philippine islands","republic of the philippines"]},{iso3:"PLW",iso2:"PW",m49:"585",name:"Palau",aliases:["\u{1F1F5}\u{1F1FC}","belau","peeloo","pelew","pelew islands","pellew","republic of belau","republic of palau","\u30D1\u30E9\u30AA","\u30D1\u30E9\u30AA\u5171\u548C\u56FD"]},{iso3:"PNG",iso2:"PG",m49:"598",name:"Papua New Guinea",aliases:["\u{1F1F5}\u{1F1EC}","independent state of papua new guinea","papua niugini"]},{iso3:"POL",iso2:"PL",m49:"616",name:"Poland",aliases:["\u{1F1F5}\u{1F1F1}","polska","republic of poland","rzeczpospolita polska"]},{iso3:"PRI",iso2:"PR",m49:"630",name:"Puerto Rico",aliases:["\u{1F1F5}\u{1F1F7}","boriken","borinquen","boriquen","commonwealth of puerto rico","estado libre asociado de puerto rico","free associated state of puerto rico","isla del encanto","island of enchantment","isle of enchantment","mancomunidad de puerto rico","porto rico","territorio de puerto rico","territorio estadounidense de puerto rico","territory of porto rico","territory of puerto rico"]},{iso3:"PRK",iso2:"KP",m49:"408",name:"Democratic People's Republic of Korea",aliases:["\u{1F1F0}\u{1F1F5}","choson minjujuui inmin konghwaguk","dpr korea","dprk","korea democratic peoples republic of","n korea","north korea","\uACF5\uD654\uAD6D","\uBD81\uC870\uC120","\uBD81\uD55C","\uC870\uC120","\uC870\uC120\uBBFC\uC8FC\uC8FC\uC758\uC778\uBBFC\uACF5\uD654\uAD6D"]},{iso3:"PRT",iso2:"PT",m49:"620",name:"Portugal",aliases:["\u{1F1F5}\u{1F1F9}","republica portuguesa"]},{iso3:"PRY",iso2:"PY",m49:"600",name:"Paraguay",aliases:["\u{1F1F5}\u{1F1FE}","paraguai","republic of paraguay","republica del paraguay","teta paraguai"]},{iso3:"PSE",iso2:"PS",m49:"275",name:"State of Palestine",aliases:["\u{1F1F5}\u{1F1F8}","palestine","palestine state of","palestinian authority","palestinian national authority","palestinian territory","west bank and gaza","\u0623\u0631\u0627\u0636\u064A \u0641\u0644\u0633\u0637\u064A\u0646\u064A\u0629","\u0627\u0644\u0623\u0631\u0627\u0636\u064A \u0627\u0644\u0641\u0644\u0633\u0637\u064A\u0646\u064A\u0629","\u0627\u0644\u062F\u0648\u0644\u0629 \u0627\u0644\u0641\u0644\u0633\u0637\u064A\u0646\u064A\u0629","\u0627\u0644\u0633\u0644\u0637\u0629 \u0627\u0644\u0641\u0644\u0633\u0637\u064A\u0646\u064A\u0629","\u0627\u0644\u0633\u0644\u0637\u0629 \u0627\u0644\u0648\u0637\u0646\u064A\u0629 \u0627\u0644\u0641\u0644\u0633\u0637\u064A\u0646\u064A\u0629","\u0627\u0644\u0636\u0641\u0629 \u0627\u0644\u063A\u0631\u0628\u064A\u0629 \u0648\u0642\u0637\u0627\u0639 \u063A\u0632\u0629","\u062F\u0648\u0644\u0629 \u0641\u0644\u0633\u0637\u064A\u0646","\u0641\u0644\u0633\u0637\u064A\u0646"]},{iso3:"PYF",iso2:"PF",m49:"258",name:"French Polynesia",aliases:["\u{1F1F5}\u{1F1EB}","f oh","french establishments in oceania","french oceania","french settlements in oceania","polynesie francaise","territoire de la polynesie francaise","territory of french polynesia"]},{iso3:"QAT",iso2:"QA",m49:"634",name:"Qatar",aliases:["\u{1F1F6}\u{1F1E6}","state of qatar","\u0625\u0645\u0627\u0631\u0629 \u0642\u0637\u0631","\u062F\u0648\u0644\u0629 \u0642\u0637\u0631","\u0642\u0637\u0631"]},{iso3:"REU",iso2:"RE",m49:"638",name:"R\xE9union",aliases:["\u{1F1F7}\u{1F1EA}","ile bourbon","ile de la reunion","la reunion","re","region reunion","reunion island"]},{iso3:"ROU",iso2:"RO",m49:"642",name:"Romania",aliases:["\u{1F1F7}\u{1F1F4}"]},{iso3:"RUS",iso2:"RU",m49:"643",name:"Russian Federation",aliases:["\u{1F1F7}\u{1F1FA}","federation of russia","russia","\u0440\u043E\u0441\u0441\u0438\u0438\u0441\u043A\u0430\u044F \u0444\u0435\u0434\u0435\u0440\u0430\u0446\u0438\u044F","\u0440\u043E\u0441\u0441\u0438\u044F","\u0440\u0444"]},{iso3:"RWA",iso2:"RW",m49:"646",name:"Rwanda",aliases:["\u{1F1F7}\u{1F1FC}","igihugu cyimisozi igihumbi","jamhuri ya rwanda","la republique du rwanda","land of a thousand hills","republic of rwanda","republika yu rwanda","republique du rwanda","republique rwandaise","repubulika yu rwanda","u rwanda"]},{iso3:"SAU",iso2:"SA",m49:"682",name:"Saudi Arabia",aliases:["\u{1F1F8}\u{1F1E6}","kingdom of saudi arabia","\u0627\u0644\u062F\u0648\u0644\u0629 \u0627\u0644\u0633\u0639\u0648\u062F\u064A\u0629","\u0627\u0644\u062F\u0648\u0644\u0647 \u0627\u0644\u0633\u0639\u0648\u062F\u064A\u0647","\u0627\u0644\u0633\u0639\u0648\u062F\u064A\u0629","\u0627\u0644\u0633\u0639\u0648\u062F\u064A\u0647","\u0627\u0644\u0639\u0631\u0628\u064A\u0629 \u0627\u0644\u0633\u0639\u0648\u062F\u064A\u0629","\u0627\u0644\u0645\u0645\u0644\u0643\u0629","\u0627\u0644\u0645\u0645\u0644\u0643\u0629 \u0627\u0644\u0633\u0639\u0648\u062F\u064A\u0629","\u0627\u0644\u0645\u0645\u0644\u0643\u0629 \u0627\u0644\u0639\u0631\u0628\u064A\u0629","\u0627\u0644\u0645\u0645\u0644\u0643\u0629 \u0627\u0644\u0639\u0631\u0628\u064A\u0629 \u0627\u0644\u0633\u0639\u0648\u062F\u064A\u0629","\u0627\u0644\u0645\u0645\u0644\u0643\u0647","\u0627\u0644\u0645\u0645\u0644\u0643\u0647 \u0627\u0644\u0639\u0631\u0628\u064A\u0647 \u0627\u0644\u0633\u0639\u0648\u062F\u064A\u0647","\u0628\u0644\u0627\u062F \u0627\u0644\u062D\u0631\u0645\u064A\u0646 \u0627\u0644\u0634\u0631\u064A\u0641\u064A\u0646","\u062F\u0648\u0644\u0629 \u0622\u0644 \u0633\u0639\u0648\u062F","\u0633\u0639\u0648\u062F\u064A\u0629","\u0633\u0639\u0648\u062F\u064A\u0647","\u0645\u0646\u0628\u0639 \u0627\u0644\u0631\u0633\u0627\u0644\u0629","\u0645\u0647\u0628\u0637 \u0627\u0644\u0648\u062D\u064A"]},{iso3:"SDN",iso2:"SD",m49:"729",name:"Sudan",aliases:["\u{1F1F8}\u{1F1E9}","al sudan","as sudan","north sudan","republic of sudan","republic of the sudan","soudan","\u0627\u0644\u0633\u0648\u062F\u0627\u0646","\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u0627\u0644\u0633\u0648\u062F\u0627\u0646"]},{iso3:"SEN",iso2:"SN",m49:"686",name:"Senegal",aliases:["\u{1F1F8}\u{1F1F3}","la republique du senegal","republic of senegal","republique du senegal","sen","senegaal"]},{iso3:"SGP",iso2:"SG",m49:"702",name:"Singapore",aliases:["\u{1F1F8}\u{1F1EC}","garden city","lion city","republic of singapore","republik singapura","singapore city","singapura","spore","\u0B9A\u0BBF\u0B99\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0BC2\u0BB0\u0BCD","\u0B9A\u0BBF\u0B99\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0BC2\u0BB0\u0BCD \u0B95\u0BC1\u0B9F\u0BBF\u0BAF\u0BB0\u0B9A\u0BC1","\u0B9A\u0BBF\u0B99\u0BCD\u0B95\u0BC8","\u0BB8\u0BBF\u0B99\u0BCD\u0B95\u0BAA\u0BC2\u0BB0\u0BCD"]},{iso3:"SGS",iso2:"GS",m49:"239",name:"South Georgia and the South Sandwich Islands",aliases:["\u{1F1EC}\u{1F1F8}","falkland islands dependencies","sgssi","south georgia","south georgia & south sandwich islands","south sandwich islands"]},{iso3:"SHN",iso2:"SH",m49:"654",name:"Saint Helena",aliases:["\u{1F1F8}\u{1F1ED}","ascension","saint helena and dependencies","saint helena ascension and tristan da cunha","tristan da cunha"]},{iso3:"SJM",iso2:"SJ",m49:"744",name:"Svalbard and Jan Mayen Islands",aliases:["\u{1F1F8}\u{1F1EF}","jan mayen","svalbard","svalbard and jan mayen","svalbard og jan mayen"]},{iso3:"SLB",iso2:"SB",m49:"090",name:"Solomon Islands",aliases:["\u{1F1F8}\u{1F1E7}"]},{iso3:"SLE",iso2:"SL",m49:"694",name:"Sierra Leone",aliases:["\u{1F1F8}\u{1F1F1}","republic of sierra leone"]},{iso3:"SLV",iso2:"SV",m49:"222",name:"El Salvador",aliases:["\u{1F1F8}\u{1F1FB}","republic of el salvador","republica de el salvador","salvador"]},{iso3:"SMR",iso2:"SM",m49:"674",name:"San Marino",aliases:["\u{1F1F8}\u{1F1F2}","most serene republic of san marino","repubblica di san marino","serenissima repubblica di san marino"]},{iso3:"SOM",iso2:"SO",m49:"706",name:"Somalia",aliases:["\u{1F1F8}\u{1F1F4}","as sumal","federal republic of somalia","jamhuuriyadda federaalka soomaaliya","jamhuuriyadda soomaaliyeed","soomaaliya","soomaaliyeey toosoo","\u0627\u0644\u0635\u0648\u0645\u0627\u0644","\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u0627\u0644\u0635\u0648\u0645\u0627\u0644","\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u0627\u0644\u0635\u0648\u0645\u0627\u0644 \u0627\u0644\u062F\u064A\u0645\u0648\u0642\u0631\u0627\u0637\u064A\u0629","\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u0627\u0644\u0635\u0648\u0645\u0627\u0644 \u0627\u0644\u0641\u064A\u062F\u0631\u0627\u0644\u064A\u0629","\u0635\u0648\u0645\u0627\u0644"]},{iso3:"SPM",iso2:"PM",m49:"666",name:"Saint Pierre and Miquelon",aliases:["\u{1F1F5}\u{1F1F2}","collectivite territoriale de saint pierre et miquelon","miquelon","saint pierre","saint pierre et miquelon","territorial collectivity of saint pierre and miquelon"]},{iso3:"SRB",iso2:"RS",m49:"688",name:"Serbia",aliases:["\u{1F1F7}\u{1F1F8}","republic of serbia","republika srbija","\u0440\u0435\u043F\u0443\u0431\u043B\u0438\u043A\u0430 \u0441\u0440\u0431\u0438\u0458\u0430","\u0441\u0440\u0431\u0438\u0458\u0430"]},{iso3:"SSD",iso2:"SS",m49:"728",name:"South Sudan",aliases:["\u{1F1F8}\u{1F1F8}","republic of south sudan","southern sudan"]},{iso3:"STP",iso2:"ST",m49:"678",name:"Sao Tome and Principe",aliases:["\u{1F1F8}\u{1F1F9}","democratic republic of sao tome and principe","principe","republica democratica de sao tome e principe","sao tome","sao tome e principe","sao tome og principe"]},{iso3:"SUR",iso2:"SR",m49:"740",name:"Suriname",aliases:["\u{1F1F8}\u{1F1F7}","dutch guiana","republic of surinam","republic of suriname","republiek suriname","surinam","surrinam"]},{iso3:"SVK",iso2:"SK",m49:"703",name:"Slovakia",aliases:["\u{1F1F8}\u{1F1F0}","slovak republic","slovenska republika","slovensko"]},{iso3:"SVN",iso2:"SI",m49:"705",name:"Slovenia",aliases:["\u{1F1F8}\u{1F1EE}","republic of slovenia","republika slovenija","slovenija"]},{iso3:"SWE",iso2:"SE",m49:"752",name:"Sweden",aliases:["\u{1F1F8}\u{1F1EA}","kingdom of sweden","konungadomet sverige","konungariket sverige","kungadomet sverige","kungariket sverige","sverige","swedish kingdom"]},{iso3:"SWZ",iso2:"SZ",m49:"748",name:"Eswatini",aliases:["\u{1F1F8}\u{1F1FF}","kingdom of eswatini","kingdom of swaziland","swaziland","umbuso weswatini"]},{iso3:"SXM",iso2:"SX",m49:"534",name:"Sint Maarten (Dutch part)",aliases:["\u{1F1F8}\u{1F1FD}","country of sint maarten","eilandgebied sint maarten","land sint maarten","saint maarten","saint martin dutch part","sint maarten","sint martin"]},{iso3:"SYC",iso2:"SC",m49:"690",name:"Seychelles",aliases:["\u{1F1F8}\u{1F1E8}","la republique des seychelles","repiblik sesel","republic of seychelles","republique des seychelles"]},{iso3:"SYR",iso2:"SY",m49:"760",name:"Syrian Arab Republic",aliases:["\u{1F1F8}\u{1F1FE}","surya","syria","\u0627\u0644\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u0627\u0644\u0639\u0631\u0628\u064A\u0629 \u0627\u0644\u0633\u0648\u0631\u064A\u0629","\u0627\u0644\u0634\u0627\u0645","\u0633\u0648\u0631\u064A\u0627","\u0633\u0648\u0631\u064A\u0629"]},{iso3:"TCA",iso2:"TC",m49:"796",name:"Turks and Caicos Islands",aliases:["\u{1F1F9}\u{1F1E8}","caicos","caicos islands","turks","turks & caicos","turks islands"]},{iso3:"TCD",iso2:"TD",m49:"148",name:"Chad",aliases:["\u{1F1F9}\u{1F1E9}","la republique du tchad","republic of chad","republique du tchad","tchad","\u062A\u0634\u0627\u062F","\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u062A\u0634\u0627\u062F"]},{iso3:"TGO",iso2:"TG",m49:"768",name:"Togo",aliases:["\u{1F1F9}\u{1F1EC}","la republique togolaise","republique togolaise","togolese republic"]},{iso3:"THA",iso2:"TH",m49:"764",name:"Thailand",aliases:["\u{1F1F9}\u{1F1ED}","kingdom of siam","kingdom of thailand","siam","thai","\u0E44\u0E17\u0E22","\u0E1B\u0E23\u0E30\u0E40\u0E17\u0E28\u0E44\u0E17\u0E22","\u0E1B\u0E23\u0E30\u0E40\u0E17\u0E28\u0E2A\u0E22\u0E32\u0E21","\u0E40\u0E21\u0E37\u0E2D\u0E07\u0E44\u0E17\u0E22","\u0E23\u0E32\u0E0A\u0E2D\u0E32\u0E13\u0E32\u0E08\u0E31\u0E01\u0E23\u0E44\u0E17\u0E22","\u0E23\u0E32\u0E0A\u0E2D\u0E32\u0E13\u0E32\u0E08\u0E31\u0E01\u0E23\u0E2A\u0E22\u0E32\u0E21","\u0E2A\u0E22\u0E32\u0E21"]},{iso3:"TJK",iso2:"TJ",m49:"762",name:"Tajikistan",aliases:["\u{1F1F9}\u{1F1EF}","jumhurii tojikiston","republic of tajikistan","\u0442\u043E\u04B7\u0438\u043A\u0438\u0441\u0442\u043E\u043D","\u0442\u04B7","\u0442\u04B7\u043A","\u04B7\u0442","\u04B7\u0443\u043C\u04B3\u0443\u0440\u0438\u0438 \u0442\u043E\u04B7\u0438\u043A\u0438\u0441\u0442\u043E\u043D"]},{iso3:"TKL",iso2:"TK",m49:"772",name:"Tokelau",aliases:["\u{1F1F9}\u{1F1F0}","tokelau islands","union islands"]},{iso3:"TKM",iso2:"TM",m49:"795",name:"Turkmenistan",aliases:["\u{1F1F9}\u{1F1F2}"]},{iso3:"TLS",iso2:"TL",m49:"626",name:"Timor-Leste",aliases:["\u{1F1F9}\u{1F1F1}","democratic republic of timor leste","east timor","republica democratica de timor leste","republika demokratika timor lorosae","timor loro sae","timor lorosae"]},{iso3:"TON",iso2:"TO",m49:"776",name:"Tonga",aliases:["\u{1F1F9}\u{1F1F4}","friendly islands","kingdom of tonga","puleanga fakatui o tonga","tonga islands"]},{iso3:"TTO",iso2:"TT",m49:"780",name:"Trinidad and Tobago",aliases:["\u{1F1F9}\u{1F1F9}","republic of trinidad and tobago","tobago","trinidad"]},{iso3:"TUN",iso2:"TN",m49:"788",name:"Tunisia",aliases:["\u{1F1F9}\u{1F1F3}","republic of tunisia","tunisian republic","\u0627\u0644\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u0627\u0644\u062A\u0648\u0646\u0633\u064A\u0629","\u062A\u0648\u0646\u0633","\u062A\u0648\u0646\u0633 \u0627\u0644\u062E\u0636\u0631\u0627\u0621"]},{iso3:"TUR",iso2:"TR",m49:"792",name:"T\xFCrkiye",aliases:["\u{1F1F9}\u{1F1F7}","republic of turkey","republic of turkiye","turkey","turkiye cumhuriyeti"]},{iso3:"TUV",iso2:"TV",m49:"798",name:"Tuvalu",aliases:["\u{1F1F9}\u{1F1FB}","ellice islands"]},{iso3:"TWN",iso2:"TW",m49:"158",name:"Taiwan",aliases:["\u{1F1F9}\u{1F1FC}","chinese republic","chinese taipei","chunghwa minkuo","chunghwa minkwo","conghwaminku","cunghwa minkwo","cyukamingkok","formosa","nanasian","nationalist china","republic of china","republic of china taiwan","roc","taivang","taiwan province of china","taiwan roc","taywan","taywang","teywan","\u4E2D\u83EF\u6C11\u570B","\u4E2D\u83EF\u6C11\u570B\uFF08\u81FA\u7063\uFF09","\u4E2D\u83EF\u81FA\u5317","\u53F0\u7063","\u81FA\u6F8E\u91D1\u99AC","\u81FA\u7063"]},{iso3:"TZA",iso2:"TZ",m49:"834",name:"United Republic of Tanzania",aliases:["\u{1F1F9}\u{1F1FF}","jamhuri ya muungano wa tanganyika na zanzibar","jamhuri ya muungano wa tanzania","tanzania","tanzania jamhuri ya muungano wa","tanzania united republic of","united republic of tanganyika and zanzibar"]},{iso3:"UGA",iso2:"UG",m49:"800",name:"Uganda",aliases:["\u{1F1FA}\u{1F1EC}","jamhuri ya uganda","lulu ya afrika","ouganda","pearl of africa","republic of uganda","ugandah"]},{iso3:"UKR",iso2:"UA",m49:"804",name:"Ukraine",aliases:["\u{1F1FA}\u{1F1E6}","ukr","ukraina","ukrainia","ukrayina","\u0432\u043A\u0440\u0430\u0456\u043D\u0430","\u0443\u043A\u0440\u0430\u0456\u043D\u0430"]},{iso3:"UMI",iso2:"UM",m49:"581",name:"United States Minor Outlying Islands",aliases:["\u{1F1FA}\u{1F1F2}","us minor outlying islands","us outlying islands","usmoi"]},{iso3:"URY",iso2:"UY",m49:"858",name:"Uruguay",aliases:["\u{1F1FA}\u{1F1FE}","eastern republic of uruguay","oriental republic of uruguay"]},{iso3:"USA",iso2:"US",m49:"840",name:"United States of America",aliases:["\u{1F1FA}\u{1F1F8}","amelika","amelika hui pu ia","amelika huipuia","amelika mokuaina hui pu ia","america","eeuu","eeuu de america","estados unidos","estados unidos de america","los estados","los estados unidos","los estados unidos de america","mokuaina hui pu ia","union americana","united states","us","us of a","us of america","usa"]},{iso3:"UZB",iso2:"UZ",m49:"860",name:"Uzbekistan",aliases:["\u{1F1FA}\u{1F1FF}","ozbek","ozbekiston","ozbekiston respublikasi","republic of uzbekistan","uzbekiston respublikasi"]},{iso3:"VAT",iso2:"VA",m49:"336",name:"Holy See",aliases:["\u{1F1FB}\u{1F1E6}","citta del vaticano","civitas vaticana","colle vaticano","papal state","santa sede citta del vaticano","state of vatican city","stato della citta del vaticano","status civitatis vaticanae","status civitatis vatican\xE6","vatican","vatican city","vatican city state","vaticano"]},{iso3:"VCT",iso2:"VC",m49:"670",name:"Saint Vincent and the Grenadines",aliases:["\u{1F1FB}\u{1F1E8}","grenadines","saint vincent","saint vincent and grenadines"]},{iso3:"VEN",iso2:"VE",m49:"862",name:"Venezuela (Bolivarian Republic of)",aliases:["\u{1F1FB}\u{1F1EA}","bolivarian republic of venezuela","br venezuela","estados unidos de venezuela","rb venezuela","republic of venezuela","republica bolivariana de venezuela","republica de venezuela","venezuela"]},{iso3:"VGB",iso2:"VG",m49:"092",name:"British Virgin Islands",aliases:["\u{1F1FB}\u{1F1EC}","bvi","virgin islands british","virgin islands of the united kingdom","virgin islands united kingdom"]},{iso3:"VIR",iso2:"VI",m49:"850",name:"United States Virgin Islands",aliases:["\u{1F1FB}\u{1F1EE}","american virgin islands","us virgin islands","virgin islands of the united states","virgin islands us"]},{iso3:"VNM",iso2:"VN",m49:"704",name:"Viet Nam",aliases:["\u{1F1FB}\u{1F1F3}","chxhcn viet nam","chxhcnvn","cong hoa xa hoi chu nghia viet nam","socialist republic of viet nam","socialist republic of vietnam","vietnam"]},{iso3:"VUT",iso2:"VU",m49:"548",name:"Vanuatu",aliases:["\u{1F1FB}\u{1F1FA}","la republique du vanuatu","republic of vanuatu","republique de vanuatu","ripablik blong vanuatu"]},{iso3:"WLF",iso2:"WF",m49:"876",name:"Wallis and Futuna Islands",aliases:["\u{1F1FC}\u{1F1EB}","collectivite des iles wallis et futuna","emeni simete","futuna","iles wallis et futuna","makape papilio","territoire de wallis et futuna","territoire des iles wallis et futuna","wallis","wallis & futuna","wallis et futuna"]},{iso3:"WSM",iso2:"WS",m49:"882",name:"Samoa",aliases:["\u{1F1FC}\u{1F1F8}","independent state of samoa","malo saoloto tutoatasi o samoa","samoa i sisifo","western samoa"]},{iso3:"YEM",iso2:"YE",m49:"887",name:"Yemen",aliases:["\u{1F1FE}\u{1F1EA}","rep yemen","republic of yemen","\u0627\u0644\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u0627\u0644\u064A\u0645\u0646\u064A\u0629","\u0627\u0644\u064A\u0645\u0646","\u062F\u0648\u0644\u0629 \u0627\u0644\u064A\u0645\u0646"]},{iso3:"ZAF",iso2:"ZA",m49:"710",name:"South Africa",aliases:["\u{1F1FF}\u{1F1E6}","aferika borwa","aforika borwa","afrika boroa","afrika borwa","afrika dzonga","afurika tshipembe","emzantsi afrika","iningizimu afrika","iriphabhulikhi ye ningizimu afrika","iriphabhulikhi yeningizimu afrika","iriphabhuliki yase ningizimu afrika","iriphabliki yasemzantsi afrika","iriphabliki yaseningizimu afrika","iriphabliki yom zantsi afrika","isewula afrika","repabliki ya afrika borwa","rephaboliki ya aforika borwa","rephaboliki ya afrika borwa","republic of south africa","republiek van suid afrika","riphabliki ra afrika dzonga","rsa","suid afrika","umzansi","umzantsi afrika","unie van suid afrika","union of south africa"]},{iso3:"ZMB",iso2:"ZM",m49:"894",name:"Zambia",aliases:["\u{1F1FF}\u{1F1F2}","northern rhodesia","republic of zambia"]},{iso3:"ZWE",iso2:"ZW",m49:"716",name:"Zimbabwe",aliases:["\u{1F1FF}\u{1F1FC}","ezimbabwe","izimbabwe","republic of zimbabwe","rhodesia","southern rhodesia","zimbabwe rhodesia","zimbagwe"]}];function IQ(e){return e.normalize("NFD").replace(/[\u0300-\u036F]/g,"").normalize("NFC").toLowerCase().replace(/[\u064B-\u065F]/g,"").replace(/['\u2018\u2019\u02BB\u02BC\u02BD\u02C8\u2032`]/g,"").replace(/&/g," and ").replace(/([,(])\s*the\b/g,"$1").replace(/[.(),[\]]/g,"").replace(/[-\u2013\u2014]/g," ").replace(/\bst\b/g,"saint").trim().replace(/\s+/g," ").replace(/^the\s+/,"")}function sVe(e){let t=new Map,r=new Map,i=new Map;for(let s of e)t.set(s.iso3,s),s.iso2&&r.set(s.iso2,s),s.m49&&i.set(s.m49,s);let n=new Map;for(let s of e)for(let l of[s.name,...s.aliases]){let u=IQ(l),c=n.get(u);if(c!==void 0&&c!==s.iso3)throw new Error(`Duplicate name/alias "${u}": ${c} vs ${s.iso3}`);n.set(u,s.iso3)}function a(s){if(s==null)return;let l=String(s).trim();if(!l)return;if(/^\d+$/.test(l)){let c=i.get(String(parseInt(l,10)).padStart(3,"0"));if(c)return c}if(/^[A-Za-z]{2}$/.test(l)){let c=r.get(l.toUpperCase());if(c)return c}if(/^[A-Za-z]{3}$/.test(l)){let c=t.get(l.toUpperCase());if(c)return c}let u=n.get(IQ(l));return u===void 0?void 0:t.get(u)}function o(s){var l;return(l=a(s))==null?void 0:l.iso3}return{lookup:a,lookupAlpha3:o,byAlpha3:t,byAlpha2:r,byM49:i}}var PE=sVe(oVe),osr=PE.lookup,ssr=PE.lookupAlpha3,lsr=PE.byAlpha3,usr=PE.byAlpha2,csr=PE.byM49});var mR=W(Po=>{"use strict";Object.defineProperty(Po,"__esModule",{value:!0});var Bl=63710088e-1,BQ={centimeters:Bl*100,centimetres:Bl*100,cm:Bl*100,degrees:360/(2*Math.PI),deg:360/(2*Math.PI),feet:Bl*3.28084,ft:Bl*3.28084,inches:Bl*39.37,in:Bl*39.37,kilometers:Bl/1e3,kilometres:Bl/1e3,km:Bl/1e3,meters:Bl,metres:Bl,m:Bl,miles:Bl/1609.344,mi:Bl/1609.344,millimeters:Bl*1e3,millimetres:Bl*1e3,mm:Bl*1e3,nauticalmiles:Bl/1852,nmi:Bl/1852,radians:1,rad:1,yards:Bl*1.0936,yd:Bl*1.0936},zQ={acres:247105e-9,ac:247105e-9,centimeters:1e4,centimetres:1e4,cm:1e4,feet:10.763910417,ft:10.763910417,hectares:1e-4,ha:1e-4,inches:1550.003100006,in:1550.003100006,kilometers:1e-6,kilometres:1e-6,km:1e-6,meters:1,metres:1,m:1,miles:386e-9,mi:386e-9,nauticalmiles:29155334959812285e-23,nmi:29155334959812285e-23,millimeters:1e6,millimetres:1e6,mm:1e6,yards:1.195990046,yd:1.195990046};function I2(e,t,r={}){let i={type:"Feature"};return(r.id===0||r.id)&&(i.id=r.id),r.bbox&&(i.bbox=r.bbox),i.properties=t||{},i.geometry=e,i}function fsr(e,t,r={}){switch(e){case"Point":return qQ(t).geometry;case"LineString":return NQ(t).geometry;case"Polygon":return OQ(t).geometry;case"MultiPoint":return fVe(t).geometry;case"MultiLineString":return cVe(t).geometry;case"MultiPolygon":return hVe(t).geometry;default:throw new Error(e+" is invalid")}}function qQ(e,t,r={}){if(!e)throw new Error("coordinates is required");if(!Array.isArray(e))throw new Error("coordinates must be an Array");if(e.length<2)throw new Error("coordinates must be at least 2 numbers long");if(!vR(e[0])||!vR(e[1]))throw new Error("coordinates must contain numbers");return I2({type:"Point",coordinates:e},t,r)}function hsr(e,t,r={}){return gR(e.map(i=>qQ(i,t)),r)}function OQ(e,t,r={}){for(let n of e){if(n.length<4)throw new Error("Each LinearRing of a Polygon must have 4 or more Positions.");if(n[n.length-1].length!==n[0].length)throw new Error("First and last Position are not equivalent.");for(let a=0;aOQ(i,t)),r)}function NQ(e,t,r={}){if(e.length<2)throw new Error("coordinates must be an array of two or more positions");return I2({type:"LineString",coordinates:e},t,r)}function psr(e,t,r={}){return gR(e.map(i=>NQ(i,t)),r)}function gR(e,t={}){let r={type:"FeatureCollection"};return t.id&&(r.id=t.id),t.bbox&&(r.bbox=t.bbox),r.features=e,r}function cVe(e,t,r={}){return I2({type:"MultiLineString",coordinates:e},t,r)}function fVe(e,t,r={}){return I2({type:"MultiPoint",coordinates:e},t,r)}function hVe(e,t,r={}){return I2({type:"MultiPolygon",coordinates:e},t,r)}function vsr(e,t,r={}){return I2({type:"GeometryCollection",geometries:e},t,r)}function gsr(e,t=0){if(t&&!(t>=0))throw new Error("precision must be a positive number");let r=Math.pow(10,t||0);return Math.round(e*r)/r}function dVe(e,t="kilometers"){let r=BQ[t];if(!r)throw new Error(t+" units is invalid");return e*r}function UQ(e,t="kilometers"){let r=BQ[t];if(!r)throw new Error(t+" units is invalid");return e/r}function msr(e,t){return pVe(UQ(e,t))}function ysr(e){let t=e%360;return t<0&&(t+=360),t}function xsr(e){return e=e%360,e>180?e-360:e<-180?e+360:e}function pVe(e){return e%(2*Math.PI)*180/Math.PI}function bsr(e){return e%360*Math.PI/180}function _sr(e,t="kilometers",r="kilometers"){if(!(e>=0))throw new Error("length must be a positive number");return dVe(UQ(e,t),r)}function wsr(e,t="meters",r="kilometers"){if(!(e>=0))throw new Error("area must be a positive number");let i=zQ[t];if(!i)throw new Error("invalid original units");let n=zQ[r];if(!n)throw new Error("invalid final units");return e/i*n}function vR(e){return!isNaN(e)&&e!==null&&!Array.isArray(e)}function Tsr(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function pR(e){delete e.bbox,e.type==="Feature"?e.geometry&&pR(e.geometry):e.type==="FeatureCollection"?e.features.forEach(pR):e.type==="GeometryCollection"&&e.geometries.forEach(pR)}function Asr(e){if(!e)throw new Error("bbox is required");if(!Array.isArray(e))throw new Error("bbox must be an Array");if(e.length!==4&&e.length!==6)throw new Error("bbox must be an Array of 4 or 6 numbers");e.forEach(t=>{if(!vR(t))throw new Error("bbox must only contain numbers")})}function Msr(e){if(!e)throw new Error("id is required");if(["string","number"].indexOf(typeof e)===-1)throw new Error("id must be a number or a string")}Po.areaFactors=zQ;Po.azimuthToBearing=xsr;Po.bearingToAzimuth=ysr;Po.convertArea=wsr;Po.convertLength=_sr;Po.degreesToRadians=bsr;Po.earthRadius=Bl;Po.factors=BQ;Po.feature=I2;Po.featureCollection=gR;Po.geometry=fsr;Po.geometryCollection=vsr;Po.isNumber=vR;Po.isObject=Tsr;Po.lengthToDegrees=msr;Po.lengthToRadians=UQ;Po.lineString=NQ;Po.lineStrings=psr;Po.multiLineString=cVe;Po.multiPoint=fVe;Po.multiPolygon=hVe;Po.point=qQ;Po.points=hsr;Po.polygon=OQ;Po.polygons=dsr;Po.radiansToDegrees=pVe;Po.radiansToLength=dVe;Po.removeBbox=pR;Po.round=gsr;Po.validateBBox=Asr;Po.validateId=Msr});var xR=W(uc=>{"use strict";Object.defineProperty(uc,"__esModule",{value:!0});var If=mR();function IE(e,t,r){if(e!==null)for(var i,n,a,o,s,l,u,c=0,f=0,h,p=e.type,d=p==="FeatureCollection",v=p==="Feature",m=d?e.features.length:1,g=0;gl||d>u||v>c){s=f,l=i,u=d,c=v,a=0;return}var m=If.lineString.call(void 0,[s,f],r.properties);if(t(m,i,n,v,a)===!1)return!1;a++,s=f})===!1)return!1}}})}function Lsr(e,t,r){var i=r,n=!1;return mVe(e,function(a,o,s,l,u){n===!1&&r===void 0?i=a:i=t(i,a,o,s,l,u),n=!0}),i}function yVe(e,t){if(!e)throw new Error("geojson is required");yR(e,function(r,i,n){if(r.geometry!==null){var a=r.geometry.type,o=r.geometry.coordinates;switch(a){case"LineString":if(t(r,i,n,0,0)===!1)return!1;break;case"Polygon":for(var s=0;s{"use strict";Object.defineProperty(bR,"__esModule",{value:!0});var xVe=mR(),zsr=xR();function wVe(e){return zsr.geomReduce.call(void 0,e,(t,r)=>t+Bsr(r),0)}function Bsr(e){let t=0,r;switch(e.type){case"Polygon":return bVe(e.coordinates);case"MultiPolygon":for(r=0;r0){t+=Math.abs(_Ve(e[0]));for(let r=1;r=t?(i+2)%t:i+2],s=n[0]*GQ,l=a[1]*GQ,u=o[0]*GQ;r+=(u-s)*Math.sin(l),i++}return r*qsr}var Osr=wVe;bR.area=wVe;bR.default=Osr});var MVe=W(_R=>{"use strict";Object.defineProperty(_R,"__esModule",{value:!0});var Nsr=mR(),Usr=xR();function AVe(e,t={}){let r=0,i=0,n=0;return Usr.coordEach.call(void 0,e,function(a){r+=a[0],i+=a[1],n++},!0),Nsr.point.call(void 0,[r/n,i/n],t.properties)}var Vsr=AVe;_R.centroid=AVe;_R.default=Vsr});var EVe=W((wR,SVe)=>{(function(e,t){t(typeof wR=="object"&&typeof SVe!="undefined"?wR:e.d3=e.d3||{})})(wR,(function(e){"use strict";function t(U,V){return UV?1:U>=V?0:NaN}function r(U){return U.length===1&&(U=i(U)),{left:function(V,X,G,H){for(G==null&&(G=0),H==null&&(H=V.length);G>>1;U(V[J],X)<0?G=J+1:H=J}return G},right:function(V,X,G,H){for(G==null&&(G=0),H==null&&(H=V.length);G>>1;U(V[J],X)>0?H=J:G=J+1}return G}}}function i(U){return function(V,X){return t(U(V),X)}}var n=r(t),a=n.right,o=n.left;function s(U,V){V==null&&(V=l);for(var X=0,G=U.length-1,H=U[0],J=new Array(G<0?0:G);XU?1:V>=U?0:NaN}function f(U){return U===null?NaN:+U}function h(U,V){var X=U.length,G=0,H=-1,J=0,te,ue,ge=0;if(V==null)for(;++H1)return ge/(G-1)}function p(U,V){var X=h(U,V);return X&&Math.sqrt(X)}function d(U,V){var X=U.length,G=-1,H,J,te;if(V==null){for(;++G=H)for(J=te=H;++GH&&(J=H),te=H)for(J=te=H;++GH&&(J=H),te0)return[U];if((G=V0)for(U=Math.ceil(U/ue),V=Math.floor(V/ue),te=new Array(J=Math.ceil(V-U+1));++H=0?(J>=S?10:J>=x?5:J>=T?2:1)*Math.pow(10,H):-Math.pow(10,-H)/(J>=S?10:J>=x?5:J>=T?2:1)}function E(U,V,X){var G=Math.abs(V-U)/Math.max(0,X),H=Math.pow(10,Math.floor(Math.log(G)/Math.LN10)),J=G/H;return J>=S?H*=10:J>=x?H*=5:J>=T&&(H*=2),Vhe;)oe.pop(),--Me;var ye=new Array(Me+1),ce;for(J=0;J<=Me;++J)ce=ye[J]=[],ce.x0=J>0?oe[J-1]:_e,ce.x1=J=1)return+X(U[G-1],G-1,U);var G,H=(G-1)*V,J=Math.floor(H),te=+X(U[J],J,U),ue=+X(U[J+1],J+1,U);return te+(ue-te)*(H-J)}}function D(U,V,X){return U=g.call(U,f).sort(t),Math.ceil((X-V)/(2*(k(U,.75)-k(U,.25))*Math.pow(U.length,-1/3)))}function L(U,V,X){return Math.ceil((X-V)/(3.5*p(U)*Math.pow(U.length,-1/3)))}function P(U,V){var X=U.length,G=-1,H,J;if(V==null){for(;++G=H)for(J=H;++GJ&&(J=H)}else for(;++G=H)for(J=H;++GJ&&(J=H);return J}function R(U,V){var X=U.length,G=X,H=-1,J,te=0;if(V==null)for(;++H=0;)for(te=U[V],X=te.length;--X>=0;)J[--H]=te[X];return J}function B(U,V){var X=U.length,G=-1,H,J;if(V==null){for(;++G=H)for(J=H;++GH&&(J=H)}else for(;++G=H)for(J=H;++GH&&(J=H);return J}function O(U,V){for(var X=V.length,G=new Array(X);X--;)G[X]=U[V[X]];return G}function $(U,V){if(X=U.length){var X,G=0,H=0,J,te=U[H];for(V==null&&(V=t);++G{(function(e,t){typeof TR=="object"&&typeof kVe!="undefined"?t(TR,EVe()):(e=e||self,t(e.d3=e.d3||{},e.d3))})(TR,(function(e,t){"use strict";function r(){return new i}function i(){this.reset()}i.prototype={constructor:i,reset:function(){this.s=this.t=0},add:function(Te){a(n,Te,this.t),a(this,n.s,this.s),this.s?this.t+=n.t:this.s=n.t},valueOf:function(){return this.s}};var n=new i;function a(Te,qe,rt){var Ye=Te.s=qe+rt,At=Ye-qe,Ht=Ye-At;Te.t=qe-Ht+(rt-At)}var o=1e-6,s=1e-12,l=Math.PI,u=l/2,c=l/4,f=l*2,h=180/l,p=l/180,d=Math.abs,v=Math.atan,m=Math.atan2,g=Math.cos,w=Math.ceil,_=Math.exp,b=Math.log,S=Math.pow,x=Math.sin,T=Math.sign||function(Te){return Te>0?1:Te<0?-1:0},A=Math.sqrt,y=Math.tan;function E(Te){return Te>1?0:Te<-1?l:Math.acos(Te)}function M(Te){return Te>1?u:Te<-1?-u:Math.asin(Te)}function C(Te){return(Te=x(Te/2))*Te}function k(){}function D(Te,qe){Te&&P.hasOwnProperty(Te.type)&&P[Te.type](Te,qe)}var L={Feature:function(Te,qe){D(Te.geometry,qe)},FeatureCollection:function(Te,qe){for(var rt=Te.features,Ye=-1,At=rt.length;++Ye=0?1:-1,At=Ye*rt,Ht=g(qe),Jt=x(qe),fr=q*Jt,yr=j*Ht+fr*g(At),Ir=fr*Ye*x(At);B.add(m(Ir,yr)),K=Te,j=Ht,q=Jt}function H(Te){return O.reset(),I(Te,Q),O*2}function J(Te){return[m(Te[1],Te[0]),M(Te[2])]}function te(Te){var qe=Te[0],rt=Te[1],Ye=g(rt);return[Ye*g(qe),Ye*x(qe),x(rt)]}function ue(Te,qe){return Te[0]*qe[0]+Te[1]*qe[1]+Te[2]*qe[2]}function ge(Te,qe){return[Te[1]*qe[2]-Te[2]*qe[1],Te[2]*qe[0]-Te[0]*qe[2],Te[0]*qe[1]-Te[1]*qe[0]]}function ke(Te,qe){Te[0]+=qe[0],Te[1]+=qe[1],Te[2]+=qe[2]}function _e(Te,qe){return[Te[0]*qe,Te[1]*qe,Te[2]*qe]}function he(Te){var qe=A(Te[0]*Te[0]+Te[1]*Te[1]+Te[2]*Te[2]);Te[0]/=qe,Te[1]/=qe,Te[2]/=qe}var oe,Me,ye,ce,ee,ae,xe,re,pe=r(),we,Fe,Ee={point:Ce,lineStart:Ie,lineEnd:Oe,polygonStart:function(){Ee.point=Qe,Ee.lineStart=et,Ee.lineEnd=bt,pe.reset(),Q.polygonStart()},polygonEnd:function(){Q.polygonEnd(),Ee.point=Ce,Ee.lineStart=Ie,Ee.lineEnd=Oe,B<0?(oe=-(ye=180),Me=-(ce=90)):pe>o?ce=90:pe<-o&&(Me=-90),Fe[0]=oe,Fe[1]=ye},sphere:function(){oe=-(ye=180),Me=-(ce=90)}};function Ce(Te,qe){we.push(Fe=[oe=Te,ye=Te]),qece&&(ce=qe)}function be(Te,qe){var rt=te([Te*p,qe*p]);if(re){var Ye=ge(re,rt),At=[Ye[1],-Ye[0],0],Ht=ge(At,Ye);he(Ht),Ht=J(Ht);var Jt=Te-ee,fr=Jt>0?1:-1,yr=Ht[0]*h*fr,Ir,ir=d(Jt)>180;ir^(fr*eece&&(ce=Ir)):(yr=(yr+360)%360-180,ir^(fr*eece&&(ce=qe))),ir?Teut(oe,ye)&&(ye=Te):ut(Te,ye)>ut(oe,ye)&&(oe=Te):ye>=oe?(Teye&&(ye=Te)):Te>ee?ut(oe,Te)>ut(oe,ye)&&(ye=Te):ut(Te,ye)>ut(oe,ye)&&(oe=Te)}else we.push(Fe=[oe=Te,ye=Te]);qece&&(ce=qe),re=rt,ee=Te}function Ie(){Ee.point=be}function Oe(){Fe[0]=oe,Fe[1]=ye,Ee.point=Ce,re=null}function Qe(Te,qe){if(re){var rt=Te-ee;pe.add(d(rt)>180?rt+(rt>0?360:-360):rt)}else ae=Te,xe=qe;Q.point(Te,qe),be(Te,qe)}function et(){Q.lineStart()}function bt(){Qe(ae,xe),Q.lineEnd(),d(pe)>o&&(oe=-(ye=180)),Fe[0]=oe,Fe[1]=ye,re=null}function ut(Te,qe){return(qe-=Te)<0?qe+360:qe}function vt(Te,qe){return Te[0]-qe[0]}function Xe(Te,qe){return Te[0]<=Te[1]?Te[0]<=qe&&qe<=Te[1]:qeut(Ye[0],Ye[1])&&(Ye[1]=At[1]),ut(At[0],Ye[1])>ut(Ye[0],Ye[1])&&(Ye[0]=At[0])):Ht.push(Ye=At);for(Jt=-1/0,rt=Ht.length-1,qe=0,Ye=Ht[rt];qe<=rt;Ye=At,++qe)At=Ht[qe],(fr=ut(Ye[1],At[0]))>Jt&&(Jt=fr,oe=At[0],ye=Ye[1])}return we=Fe=null,oe===1/0||Me===1/0?[[NaN,NaN],[NaN,NaN]]:[[oe,Me],[ye,ce]]}var _t,Ne,Ue,Ge,je,Re,Ve,ct,Tt,Zt,Gt,ur,cr,qt,Kt,Cr,$e={sphere:k,point:tt,lineStart:xt,lineEnd:nr,polygonStart:function(){$e.lineStart=dr,$e.lineEnd=Vr},polygonEnd:function(){$e.lineStart=xt,$e.lineEnd=nr}};function tt(Te,qe){Te*=p,qe*=p;var rt=g(qe);st(rt*g(Te),rt*x(Te),x(qe))}function st(Te,qe,rt){++_t,Ue+=(Te-Ue)/_t,Ge+=(qe-Ge)/_t,je+=(rt-je)/_t}function xt(){$e.point=Je}function Je(Te,qe){Te*=p,qe*=p;var rt=g(qe);qt=rt*g(Te),Kt=rt*x(Te),Cr=x(qe),$e.point=Ct,st(qt,Kt,Cr)}function Ct(Te,qe){Te*=p,qe*=p;var rt=g(qe),Ye=rt*g(Te),At=rt*x(Te),Ht=x(qe),Jt=m(A((Jt=Kt*Ht-Cr*At)*Jt+(Jt=Cr*Ye-qt*Ht)*Jt+(Jt=qt*At-Kt*Ye)*Jt),qt*Ye+Kt*At+Cr*Ht);Ne+=Jt,Re+=Jt*(qt+(qt=Ye)),Ve+=Jt*(Kt+(Kt=At)),ct+=Jt*(Cr+(Cr=Ht)),st(qt,Kt,Cr)}function nr(){$e.point=tt}function dr(){$e.point=ui}function Vr(){ti(ur,cr),$e.point=tt}function ui(Te,qe){ur=Te,cr=qe,Te*=p,qe*=p,$e.point=ti;var rt=g(qe);qt=rt*g(Te),Kt=rt*x(Te),Cr=x(qe),st(qt,Kt,Cr)}function ti(Te,qe){Te*=p,qe*=p;var rt=g(qe),Ye=rt*g(Te),At=rt*x(Te),Ht=x(qe),Jt=Kt*Ht-Cr*At,fr=Cr*Ye-qt*Ht,yr=qt*At-Kt*Ye,Ir=A(Jt*Jt+fr*fr+yr*yr),ir=M(Ir),hr=Ir&&-ir/Ir;Tt+=hr*Jt,Zt+=hr*fr,Gt+=hr*yr,Ne+=ir,Re+=ir*(qt+(qt=Ye)),Ve+=ir*(Kt+(Kt=At)),ct+=ir*(Cr+(Cr=Ht)),st(qt,Kt,Cr)}function Pr(Te){_t=Ne=Ue=Ge=je=Re=Ve=ct=Tt=Zt=Gt=0,I(Te,$e);var qe=Tt,rt=Zt,Ye=Gt,At=qe*qe+rt*rt+Ye*Ye;return Atl?Te+Math.round(-Te/f)*f:Te,qe]}vn.invert=vn;function aa(Te,qe,rt){return(Te%=f)?qe||rt?Sn(gn(Te),Hn(qe,rt)):gn(Te):qe||rt?Hn(qe,rt):vn}function va(Te){return function(qe,rt){return qe+=Te,[qe>l?qe-f:qe<-l?qe+f:qe,rt]}}function gn(Te){var qe=va(Te);return qe.invert=va(-Te),qe}function Hn(Te,qe){var rt=g(Te),Ye=x(Te),At=g(qe),Ht=x(qe);function Jt(fr,yr){var Ir=g(yr),ir=g(fr)*Ir,hr=x(fr)*Ir,vr=x(yr),Fr=vr*rt+ir*Ye;return[m(hr*At-Fr*Ht,ir*rt-vr*Ye),M(Fr*At+hr*Ht)]}return Jt.invert=function(fr,yr){var Ir=g(yr),ir=g(fr)*Ir,hr=x(fr)*Ir,vr=x(yr),Fr=vr*At-hr*Ht;return[m(hr*At+vr*Ht,ir*rt+Fr*Ye),M(Fr*rt-ir*Ye)]},Jt}function oa(Te){Te=aa(Te[0]*p,Te[1]*p,Te.length>2?Te[2]*p:0);function qe(rt){return rt=Te(rt[0]*p,rt[1]*p),rt[0]*=h,rt[1]*=h,rt}return qe.invert=function(rt){return rt=Te.invert(rt[0]*p,rt[1]*p),rt[0]*=h,rt[1]*=h,rt},qe}function vs(Te,qe,rt,Ye,At,Ht){if(rt){var Jt=g(qe),fr=x(qe),yr=Ye*rt;At==null?(At=qe+Ye*f,Ht=qe-yr/2):(At=bo(Jt,At),Ht=bo(Jt,Ht),(Ye>0?AtHt)&&(At+=Ye*f));for(var Ir,ir=At;Ye>0?ir>Ht:ir1&&Te.push(Te.pop().concat(Te.shift()))},result:function(){var rt=Te;return Te=[],qe=null,rt}}}function La(Te,qe){return d(Te[0]-qe[0])=0;--fr)At.point((hr=ir[fr])[0],hr[1]);else Ye(vr.x,vr.p.x,-1,At);vr=vr.p}vr=vr.o,ir=vr.z,Fr=!Fr}while(!vr.v);At.lineEnd()}}}function Aa(Te){if(qe=Te.length){for(var qe,rt=0,Ye=Te[0],At;++rt=0?1:-1,Pa=Za*ba,wo=Pa>l,ua=qi*ln;if(Ks.add(m(ua*Za*x(Pa),Di*Cn+ua*g(Pa))),Jt+=wo?ba+Za*f:ba,wo^Fr>=rt^Xr>=rt){var dl=ge(te(vr),te(Ji));he(dl);var os=ge(Ht,dl);he(os);var mo=(wo^ba>=0?-1:1)*M(os[2]);(Ye>mo||Ye===mo&&(dl[0]||dl[1]))&&(fr+=wo^ba>=0?1:-1)}}return(Jt<-o||Jt0){for(yr||(At.polygonStart(),yr=!0),At.lineStart(),Cn=0;Cn1&&oi&2&&ln.push(ln.pop().concat(ln.shift())),ir.push(ln.filter(Le))}}return vr}}function Le(Te){return Te.length>1}function ot(Te,qe){return((Te=Te.x)[0]<0?Te[1]-u-o:u-Te[1])-((qe=qe.x)[0]<0?qe[1]-u-o:u-qe[1])}var lt=fl(function(){return!0},kt,zt,[-l,-u]);function kt(Te){var qe=NaN,rt=NaN,Ye=NaN,At;return{lineStart:function(){Te.lineStart(),At=1},point:function(Ht,Jt){var fr=Ht>0?l:-l,yr=d(Ht-qe);d(yr-l)0?u:-u),Te.point(Ye,rt),Te.lineEnd(),Te.lineStart(),Te.point(fr,rt),Te.point(Ht,rt),At=0):Ye!==fr&&yr>=l&&(d(qe-Ye)o?v((x(qe)*(Ht=g(Ye))*x(rt)-x(Ye)*(At=g(qe))*x(Te))/(At*Ht*Jt)):(qe+Ye)/2}function zt(Te,qe,rt,Ye){var At;if(Te==null)At=rt*u,Ye.point(-l,At),Ye.point(0,At),Ye.point(l,At),Ye.point(l,0),Ye.point(l,-At),Ye.point(0,-At),Ye.point(-l,-At),Ye.point(-l,0),Ye.point(-l,At);else if(d(Te[0]-qe[0])>o){var Ht=Te[0]0,At=d(qe)>o;function Ht(ir,hr,vr,Fr){vs(Fr,Te,rt,vr,ir,hr)}function Jt(ir,hr){return g(ir)*g(hr)>qe}function fr(ir){var hr,vr,Fr,jr,qi;return{lineStart:function(){jr=Fr=!1,qi=1},point:function(Di,Hi){var Ji=[Di,Hi],Xr,oi=Jt(Di,Hi),ln=Ye?oi?0:Ir(Di,Hi):oi?Ir(Di+(Di<0?l:-l),Hi):0;if(!hr&&(jr=Fr=oi)&&ir.lineStart(),oi!==Fr&&(Xr=yr(hr,Ji),(!Xr||La(hr,Xr)||La(Ji,Xr))&&(Ji[2]=1)),oi!==Fr)qi=0,oi?(ir.lineStart(),Xr=yr(Ji,hr),ir.point(Xr[0],Xr[1])):(Xr=yr(hr,Ji),ir.point(Xr[0],Xr[1],2),ir.lineEnd()),hr=Xr;else if(At&&hr&&Ye^oi){var Cn;!(ln&vr)&&(Cn=yr(Ji,hr,!0))&&(qi=0,Ye?(ir.lineStart(),ir.point(Cn[0][0],Cn[0][1]),ir.point(Cn[1][0],Cn[1][1]),ir.lineEnd()):(ir.point(Cn[1][0],Cn[1][1]),ir.lineEnd(),ir.lineStart(),ir.point(Cn[0][0],Cn[0][1],3)))}oi&&(!hr||!La(hr,Ji))&&ir.point(Ji[0],Ji[1]),hr=Ji,Fr=oi,vr=ln},lineEnd:function(){Fr&&ir.lineEnd(),hr=null},clean:function(){return qi|(jr&&Fr)<<1}}}function yr(ir,hr,vr){var Fr=te(ir),jr=te(hr),qi=[1,0,0],Di=ge(Fr,jr),Hi=ue(Di,Di),Ji=Di[0],Xr=Hi-Ji*Ji;if(!Xr)return!vr&&ir;var oi=qe*Hi/Xr,ln=-qe*Ji/Xr,Cn=ge(qi,Di),ba=_e(qi,oi),Za=_e(Di,ln);ke(ba,Za);var Pa=Cn,wo=ue(ba,Pa),ua=ue(Pa,Pa),dl=wo*wo-ua*(ue(ba,ba)-1);if(!(dl<0)){var os=A(dl),mo=_e(Pa,(-wo-os)/ua);if(ke(mo,ba),mo=J(mo),!vr)return mo;var pi=ir[0],Ca=hr[0],Ds=ir[1],Tl=hr[1],Cu;Ca0^mo[1]<(d(mo[0]-pi)l^(pi<=mo[0]&&mo[0]<=Ca)){var Ju=_e(Pa,(-wo+os)/ua);return ke(Ju,ba),[mo,J(Ju)]}}}function Ir(ir,hr){var vr=Ye?Te:l-Te,Fr=0;return ir<-vr?Fr|=1:ir>vr&&(Fr|=2),hr<-vr?Fr|=4:hr>vr&&(Fr|=8),Fr}return fl(Jt,fr,Ht,Ye?[0,-Te]:[-l,Te-l])}function Yt(Te,qe,rt,Ye,At,Ht){var Jt=Te[0],fr=Te[1],yr=qe[0],Ir=qe[1],ir=0,hr=1,vr=yr-Jt,Fr=Ir-fr,jr;if(jr=rt-Jt,!(!vr&&jr>0)){if(jr/=vr,vr<0){if(jr0){if(jr>hr)return;jr>ir&&(ir=jr)}if(jr=At-Jt,!(!vr&&jr<0)){if(jr/=vr,vr<0){if(jr>hr)return;jr>ir&&(ir=jr)}else if(vr>0){if(jr0)){if(jr/=Fr,Fr<0){if(jr0){if(jr>hr)return;jr>ir&&(ir=jr)}if(jr=Ht-fr,!(!Fr&&jr<0)){if(jr/=Fr,Fr<0){if(jr>hr)return;jr>ir&&(ir=jr)}else if(Fr>0){if(jr0&&(Te[0]=Jt+ir*vr,Te[1]=fr+ir*Fr),hr<1&&(qe[0]=Jt+hr*vr,qe[1]=fr+hr*Fr),!0}}}}}var wr=1e9,Zr=-wr;function ri(Te,qe,rt,Ye){function At(Ir,ir){return Te<=Ir&&Ir<=rt&&qe<=ir&&ir<=Ye}function Ht(Ir,ir,hr,vr){var Fr=0,jr=0;if(Ir==null||(Fr=Jt(Ir,hr))!==(jr=Jt(ir,hr))||yr(Ir,ir)<0^hr>0)do vr.point(Fr===0||Fr===3?Te:rt,Fr>1?Ye:qe);while((Fr=(Fr+hr+4)%4)!==jr);else vr.point(ir[0],ir[1])}function Jt(Ir,ir){return d(Ir[0]-Te)0?0:3:d(Ir[0]-rt)0?2:1:d(Ir[1]-qe)0?1:0:ir>0?3:2}function fr(Ir,ir){return yr(Ir.x,ir.x)}function yr(Ir,ir){var hr=Jt(Ir,1),vr=Jt(ir,1);return hr!==vr?hr-vr:hr===0?ir[1]-Ir[1]:hr===1?Ir[0]-ir[0]:hr===2?Ir[1]-ir[1]:ir[0]-Ir[0]}return function(Ir){var ir=Ir,hr=go(),vr,Fr,jr,qi,Di,Hi,Ji,Xr,oi,ln,Cn,ba={point:Za,lineStart:dl,lineEnd:os,polygonStart:wo,polygonEnd:ua};function Za(pi,Ca){At(pi,Ca)&&ir.point(pi,Ca)}function Pa(){for(var pi=0,Ca=0,Ds=Fr.length;CaYe&&(Eh-Xf)*(Ye-Ju)>(kh-Ju)*(Te-Xf)&&++pi:kh<=Ye&&(Eh-Xf)*(Ye-Ju)<(kh-Ju)*(Te-Xf)&&--pi;return pi}function wo(){ir=hr,vr=[],Fr=[],Cn=!0}function ua(){var pi=Pa(),Ca=Cn&&pi,Ds=(vr=t.merge(vr)).length;(Ca||Ds)&&(Ir.polygonStart(),Ca&&(Ir.lineStart(),Ht(null,null,1,Ir),Ir.lineEnd()),Ds&&Ns(vr,fr,pi,Ht,Ir),Ir.polygonEnd()),ir=Ir,vr=Fr=jr=null}function dl(){ba.point=mo,Fr&&Fr.push(jr=[]),ln=!0,oi=!1,Ji=Xr=NaN}function os(){vr&&(mo(qi,Di),Hi&&oi&&hr.rejoin(),vr.push(hr.result())),ba.point=Za,oi&&ir.lineEnd()}function mo(pi,Ca){var Ds=At(pi,Ca);if(Fr&&jr.push([pi,Ca]),ln)qi=pi,Di=Ca,Hi=Ds,ln=!1,Ds&&(ir.lineStart(),ir.point(pi,Ca));else if(Ds&&oi)ir.point(pi,Ca);else{var Tl=[Ji=Math.max(Zr,Math.min(wr,Ji)),Xr=Math.max(Zr,Math.min(wr,Xr))],Cu=[pi=Math.max(Zr,Math.min(wr,pi)),Ca=Math.max(Zr,Math.min(wr,Ca))];Yt(Tl,Cu,Te,qe,rt,Ye)?(oi||(ir.lineStart(),ir.point(Tl[0],Tl[1])),ir.point(Cu[0],Cu[1]),Ds||ir.lineEnd(),Cn=!1):Ds&&(ir.lineStart(),ir.point(pi,Ca),Cn=!1)}Ji=pi,Xr=Ca,oi=Ds}return ba}}function Si(){var Te=0,qe=0,rt=960,Ye=500,At,Ht,Jt;return Jt={stream:function(fr){return At&&Ht===fr?At:At=ri(Te,qe,rt,Ye)(Ht=fr)},extent:function(fr){return arguments.length?(Te=+fr[0][0],qe=+fr[0][1],rt=+fr[1][0],Ye=+fr[1][1],At=Ht=null,Jt):[[Te,qe],[rt,Ye]]}}}var sn=r(),jn,bn,ga,Xn={sphere:k,point:k,lineStart:to,lineEnd:k,polygonStart:k,polygonEnd:k};function to(){Xn.point=ko,Xn.lineEnd=uo}function uo(){Xn.point=Xn.lineEnd=k}function ko(Te,qe){Te*=p,qe*=p,jn=Te,bn=x(qe),ga=g(qe),Xn.point=Oo}function Oo(Te,qe){Te*=p,qe*=p;var rt=x(qe),Ye=g(qe),At=d(Te-jn),Ht=g(At),Jt=x(At),fr=Ye*Jt,yr=ga*rt-bn*Ye*Ht,Ir=bn*rt+ga*Ye*Ht;sn.add(m(A(fr*fr+yr*yr),Ir)),jn=Te,bn=rt,ga=Ye}function gs(Te){return sn.reset(),I(Te,Xn),+sn}var ns=[null,null],Co={type:"LineString",coordinates:ns};function as(Te,qe){return ns[0]=Te,ns[1]=qe,gs(Co)}var No={Feature:function(Te,qe){return co(Te.geometry,qe)},FeatureCollection:function(Te,qe){for(var rt=Te.features,Ye=-1,At=rt.length;++Ye0&&(At=as(Te[Ht],Te[Ht-1]),At>0&&rt<=At&&Ye<=At&&(rt+Ye-At)*(1-Math.pow((rt-Ye)/At,2))o}).map(vr)).concat(t.range(w(Ht/Ir)*Ir,At,Ir).filter(function(Xr){return d(Xr%hr)>o}).map(Fr))}return Hi.lines=function(){return Ji().map(function(Xr){return{type:"LineString",coordinates:Xr}})},Hi.outline=function(){return{type:"Polygon",coordinates:[jr(Ye).concat(qi(Jt).slice(1),jr(rt).reverse().slice(1),qi(fr).reverse().slice(1))]}},Hi.extent=function(Xr){return arguments.length?Hi.extentMajor(Xr).extentMinor(Xr):Hi.extentMinor()},Hi.extentMajor=function(Xr){return arguments.length?(Ye=+Xr[0][0],rt=+Xr[1][0],fr=+Xr[0][1],Jt=+Xr[1][1],Ye>rt&&(Xr=Ye,Ye=rt,rt=Xr),fr>Jt&&(Xr=fr,fr=Jt,Jt=Xr),Hi.precision(Di)):[[Ye,fr],[rt,Jt]]},Hi.extentMinor=function(Xr){return arguments.length?(qe=+Xr[0][0],Te=+Xr[1][0],Ht=+Xr[0][1],At=+Xr[1][1],qe>Te&&(Xr=qe,qe=Te,Te=Xr),Ht>At&&(Xr=Ht,Ht=At,At=Xr),Hi.precision(Di)):[[qe,Ht],[Te,At]]},Hi.step=function(Xr){return arguments.length?Hi.stepMajor(Xr).stepMinor(Xr):Hi.stepMinor()},Hi.stepMajor=function(Xr){return arguments.length?(ir=+Xr[0],hr=+Xr[1],Hi):[ir,hr]},Hi.stepMinor=function(Xr){return arguments.length?(yr=+Xr[0],Ir=+Xr[1],Hi):[yr,Ir]},Hi.precision=function(Xr){return arguments.length?(Di=+Xr,vr=el(Ht,At,90),Fr=cu(qe,Te,Di),jr=el(fr,Jt,90),qi=cu(Ye,rt,Di),Hi):Di},Hi.extentMajor([[-180,-90+o],[180,90-o]]).extentMinor([[-180,-80-o],[180,80+o]])}function Mu(){return Au()()}function mc(Te,qe){var rt=Te[0]*p,Ye=Te[1]*p,At=qe[0]*p,Ht=qe[1]*p,Jt=g(Ye),fr=x(Ye),yr=g(Ht),Ir=x(Ht),ir=Jt*g(rt),hr=Jt*x(rt),vr=yr*g(At),Fr=yr*x(At),jr=2*M(A(C(Ht-Ye)+Jt*yr*C(At-rt))),qi=x(jr),Di=jr?function(Hi){var Ji=x(Hi*=jr)/qi,Xr=x(jr-Hi)/qi,oi=Xr*ir+Ji*vr,ln=Xr*hr+Ji*Fr,Cn=Xr*fr+Ji*Ir;return[m(ln,oi)*h,m(Cn,A(oi*oi+ln*ln))*h]}:function(){return[rt*h,Ye*h]};return Di.distance=jr,Di}function Gl(Te){return Te}var Xa=r(),Su=r(),Yu,ks,fu,yh,_o={point:k,lineStart:k,lineEnd:k,polygonStart:function(){_o.lineStart=hu,_o.lineEnd=zv},polygonEnd:function(){_o.lineStart=_o.lineEnd=_o.point=k,Xa.add(d(Su)),Su.reset()},result:function(){var Te=Xa/2;return Xa.reset(),Te}};function hu(){_o.point=Jo}function Jo(Te,qe){_o.point=du,Yu=fu=Te,ks=yh=qe}function du(Te,qe){Su.add(yh*Te-fu*qe),fu=Te,yh=qe}function zv(){du(Yu,ks)}var jc=1/0,s0=jc,Hf=-jc,xh=Hf,jf={point:l0,lineStart:k,lineEnd:k,polygonStart:k,polygonEnd:k,result:function(){var Te=[[jc,s0],[Hf,xh]];return Hf=xh=-(s0=jc=1/0),Te}};function l0(Te,qe){TeHf&&(Hf=Te),qexh&&(xh=qe)}var Bv=0,bh=0,gp=0,u0=0,Q0=0,ed=0,qv=0,Ov=0,$c=0,mp,_h,Xu,Cs,Ho={point:Eu,lineStart:td,lineEnd:Nv,polygonStart:function(){Ho.lineStart=yg,Ho.lineEnd=ey},polygonEnd:function(){Ho.point=Eu,Ho.lineStart=td,Ho.lineEnd=Nv},result:function(){var Te=$c?[qv/$c,Ov/$c]:ed?[u0/ed,Q0/ed]:gp?[Bv/gp,bh/gp]:[NaN,NaN];return Bv=bh=gp=u0=Q0=ed=qv=Ov=$c=0,Te}};function Eu(Te,qe){Bv+=Te,bh+=qe,++gp}function td(){Ho.point=wh}function wh(Te,qe){Ho.point=c0,Eu(Xu=Te,Cs=qe)}function c0(Te,qe){var rt=Te-Xu,Ye=qe-Cs,At=A(rt*rt+Ye*Ye);u0+=At*(Xu+Te)/2,Q0+=At*(Cs+qe)/2,ed+=At,Eu(Xu=Te,Cs=qe)}function Nv(){Ho.point=Eu}function yg(){Ho.point=zx}function ey(){Th(mp,_h)}function zx(Te,qe){Ho.point=Th,Eu(mp=Xu=Te,_h=Cs=qe)}function Th(Te,qe){var rt=Te-Xu,Ye=qe-Cs,At=A(rt*rt+Ye*Ye);u0+=At*(Xu+Te)/2,Q0+=At*(Cs+qe)/2,ed+=At,At=Cs*Te-Xu*qe,qv+=At*(Xu+Te),Ov+=At*(Cs+qe),$c+=At*3,Eu(Xu=Te,Cs=qe)}function Us(Te){this._context=Te}Us.prototype={_radius:4.5,pointRadius:function(Te){return this._radius=Te,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(Te,qe){switch(this._point){case 0:{this._context.moveTo(Te,qe),this._point=1;break}case 1:{this._context.lineTo(Te,qe);break}default:{this._context.moveTo(Te+this._radius,qe),this._context.arc(Te,qe,this._radius,0,f);break}}},result:k};var Uv=r(),Vv,Ah,xg,rd,yp,gf={point:k,lineStart:function(){gf.point=Gv},lineEnd:function(){Vv&&xp(Ah,xg),gf.point=k},polygonStart:function(){Vv=!0},polygonEnd:function(){Vv=null},result:function(){var Te=+Uv;return Uv.reset(),Te}};function Gv(Te,qe){gf.point=xp,Ah=rd=Te,xg=yp=qe}function xp(Te,qe){rd-=Te,yp-=qe,Uv.add(A(rd*rd+yp*yp)),rd=Te,yp=qe}function id(){this._string=[]}id.prototype={_radius:4.5,_circle:bg(4.5),pointRadius:function(Te){return(Te=+Te)!==this._radius&&(this._radius=Te,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(Te,qe){switch(this._point){case 0:{this._string.push("M",Te,",",qe),this._point=1;break}case 1:{this._string.push("L",Te,",",qe);break}default:{this._circle==null&&(this._circle=bg(this._radius)),this._string.push("M",Te,",",qe,this._circle);break}}},result:function(){if(this._string.length){var Te=this._string.join("");return this._string=[],Te}else return null}};function bg(Te){return"m0,"+Te+"a"+Te+","+Te+" 0 1,1 0,"+-2*Te+"a"+Te+","+Te+" 0 1,1 0,"+2*Te+"z"}function _g(Te,qe){var rt=4.5,Ye,At;function Ht(Jt){return Jt&&(typeof rt=="function"&&At.pointRadius(+rt.apply(this,arguments)),I(Jt,Ye(At))),At.result()}return Ht.area=function(Jt){return I(Jt,Ye(_o)),_o.result()},Ht.measure=function(Jt){return I(Jt,Ye(gf)),gf.result()},Ht.bounds=function(Jt){return I(Jt,Ye(jf)),jf.result()},Ht.centroid=function(Jt){return I(Jt,Ye(Ho)),Ho.result()},Ht.projection=function(Jt){return arguments.length?(Ye=Jt==null?(Te=null,Gl):(Te=Jt).stream,Ht):Te},Ht.context=function(Jt){return arguments.length?(At=Jt==null?(qe=null,new id):new Us(qe=Jt),typeof rt!="function"&&At.pointRadius(rt),Ht):qe},Ht.pointRadius=function(Jt){return arguments.length?(rt=typeof Jt=="function"?Jt:(At.pointRadius(+Jt),+Jt),Ht):rt},Ht.projection(Te).context(qe)}function ty(Te){return{stream:$f(Te)}}function $f(Te){return function(qe){var rt=new Hv;for(var Ye in Te)rt[Ye]=Te[Ye];return rt.stream=qe,rt}}function Hv(){}Hv.prototype={constructor:Hv,point:function(Te,qe){this.stream.point(Te,qe)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};function Wf(Te,qe,rt){var Ye=Te.clipExtent&&Te.clipExtent();return Te.scale(150).translate([0,0]),Ye!=null&&Te.clipExtent(null),I(rt,Te.stream(jf)),qe(jf.result()),Ye!=null&&Te.clipExtent(Ye),Te}function bp(Te,qe,rt){return Wf(Te,function(Ye){var At=qe[1][0]-qe[0][0],Ht=qe[1][1]-qe[0][1],Jt=Math.min(At/(Ye[1][0]-Ye[0][0]),Ht/(Ye[1][1]-Ye[0][1])),fr=+qe[0][0]+(At-Jt*(Ye[1][0]+Ye[0][0]))/2,yr=+qe[0][1]+(Ht-Jt*(Ye[1][1]+Ye[0][1]))/2;Te.scale(150*Jt).translate([fr,yr])},rt)}function yc(Te,qe,rt){return bp(Te,[[0,0],qe],rt)}function nd(Te,qe,rt){return Wf(Te,function(Ye){var At=+qe,Ht=At/(Ye[1][0]-Ye[0][0]),Jt=(At-Ht*(Ye[1][0]+Ye[0][0]))/2,fr=-Ht*Ye[0][1];Te.scale(150*Ht).translate([Jt,fr])},rt)}function Yf(Te,qe,rt){return Wf(Te,function(Ye){var At=+qe,Ht=At/(Ye[1][1]-Ye[0][1]),Jt=-Ht*Ye[0][0],fr=(At-Ht*(Ye[1][1]+Ye[0][1]))/2;Te.scale(150*Ht).translate([Jt,fr])},rt)}var wg=16,jv=g(30*p);function Tg(Te,qe){return+qe?_p(Te,qe):$v(Te)}function $v(Te){return $f({point:function(qe,rt){qe=Te(qe,rt),this.stream.point(qe[0],qe[1])}})}function _p(Te,qe){function rt(Ye,At,Ht,Jt,fr,yr,Ir,ir,hr,vr,Fr,jr,qi,Di){var Hi=Ir-Ye,Ji=ir-At,Xr=Hi*Hi+Ji*Ji;if(Xr>4*qe&&qi--){var oi=Jt+vr,ln=fr+Fr,Cn=yr+jr,ba=A(oi*oi+ln*ln+Cn*Cn),Za=M(Cn/=ba),Pa=d(d(Cn)-1)qe||d((Hi*os+Ji*mo)/Xr-.5)>.3||Jt*vr+fr*Fr+yr*jr2?pi[2]%360*p:0,os()):[fr*h,yr*h,Ir*h]},ua.angle=function(pi){return arguments.length?(hr=pi%360*p,os()):hr*h},ua.reflectX=function(pi){return arguments.length?(vr=pi?-1:1,os()):vr<0},ua.reflectY=function(pi){return arguments.length?(Fr=pi?-1:1,os()):Fr<0},ua.precision=function(pi){return arguments.length?(Cn=Tg(ba,ln=pi*pi),mo()):A(ln)},ua.fitExtent=function(pi,Ca){return bp(ua,pi,Ca)},ua.fitSize=function(pi,Ca){return yc(ua,pi,Ca)},ua.fitWidth=function(pi,Ca){return nd(ua,pi,Ca)},ua.fitHeight=function(pi,Ca){return Yf(ua,pi,Ca)};function os(){var pi=Zu(rt,0,0,vr,Fr,hr).apply(null,qe(Ht,Jt)),Ca=(hr?Zu:ry)(rt,Ye-pi[0],At-pi[1],vr,Fr,hr);return ir=aa(fr,yr,Ir),ba=Sn(qe,Ca),Za=Sn(ir,ba),Cn=Tg(ba,ln),mo()}function mo(){return Pa=wo=null,ua}return function(){return qe=Te.apply(this,arguments),ua.invert=qe.invert&&dl,os()}}function ku(Te){var qe=0,rt=l/3,Ye=Ag(Te),At=Ye(qe,rt);return At.parallels=function(Ht){return arguments.length?Ye(qe=Ht[0]*p,rt=Ht[1]*p):[qe*h,rt*h]},At}function wp(Te){var qe=g(Te);function rt(Ye,At){return[Ye*qe,x(At)/qe]}return rt.invert=function(Ye,At){return[Ye/qe,M(At*qe)]},rt}function f0(Te,qe){var rt=x(Te),Ye=(rt+x(qe))/2;if(d(Ye)=.12&&Di<.234&&qi>=-.425&&qi<-.214?At:Di>=.166&&Di<.234&&qi>=-.214&&qi<-.115?Jt:rt).invert(vr)},ir.stream=function(vr){return Te&&qe===vr?Te:Te=iy([rt.stream(qe=vr),At.stream(vr),Jt.stream(vr)])},ir.precision=function(vr){return arguments.length?(rt.precision(vr),At.precision(vr),Jt.precision(vr),hr()):rt.precision()},ir.scale=function(vr){return arguments.length?(rt.scale(vr),At.scale(vr*.35),Jt.scale(vr),ir.translate(rt.translate())):rt.scale()},ir.translate=function(vr){if(!arguments.length)return rt.translate();var Fr=rt.scale(),jr=+vr[0],qi=+vr[1];return Ye=rt.translate(vr).clipExtent([[jr-.455*Fr,qi-.238*Fr],[jr+.455*Fr,qi+.238*Fr]]).stream(Ir),Ht=At.translate([jr-.307*Fr,qi+.201*Fr]).clipExtent([[jr-.425*Fr+o,qi+.12*Fr+o],[jr-.214*Fr-o,qi+.234*Fr-o]]).stream(Ir),fr=Jt.translate([jr-.205*Fr,qi+.212*Fr]).clipExtent([[jr-.214*Fr+o,qi+.166*Fr+o],[jr-.115*Fr-o,qi+.234*Fr-o]]).stream(Ir),hr()},ir.fitExtent=function(vr,Fr){return bp(ir,vr,Fr)},ir.fitSize=function(vr,Fr){return yc(ir,vr,Fr)},ir.fitWidth=function(vr,Fr){return nd(ir,vr,Fr)},ir.fitHeight=function(vr,Fr){return Yf(ir,vr,Fr)};function hr(){return Te=qe=null,ir}return ir.scale(1070)}function mf(Te){return function(qe,rt){var Ye=g(qe),At=g(rt),Ht=Te(Ye*At);return[Ht*At*x(qe),Ht*x(rt)]}}function yf(Te){return function(qe,rt){var Ye=A(qe*qe+rt*rt),At=Te(Ye),Ht=x(At),Jt=g(At);return[m(qe*Ht,Ye*Jt),M(Ye&&rt*Ht/Ye)]}}var Ku=mf(function(Te){return A(2/(1+Te))});Ku.invert=yf(function(Te){return 2*M(Te/2)});function Bx(){return Wc(Ku).scale(124.75).clipAngle(180-.001)}var ad=mf(function(Te){return(Te=E(Te))&&Te/x(Te)});ad.invert=yf(function(Te){return Te});function ay(){return Wc(ad).scale(79.4188).clipAngle(180-.001)}function xc(Te,qe){return[Te,b(y((u+qe)/2))]}xc.invert=function(Te,qe){return[Te,2*v(_(qe))-u]};function Xv(){return Tp(xc).scale(961/f)}function Tp(Te){var qe=Wc(Te),rt=qe.center,Ye=qe.scale,At=qe.translate,Ht=qe.clipExtent,Jt=null,fr,yr,Ir;qe.scale=function(hr){return arguments.length?(Ye(hr),ir()):Ye()},qe.translate=function(hr){return arguments.length?(At(hr),ir()):At()},qe.center=function(hr){return arguments.length?(rt(hr),ir()):rt()},qe.clipExtent=function(hr){return arguments.length?(hr==null?Jt=fr=yr=Ir=null:(Jt=+hr[0][0],fr=+hr[0][1],yr=+hr[1][0],Ir=+hr[1][1]),ir()):Jt==null?null:[[Jt,fr],[yr,Ir]]};function ir(){var hr=l*Ye(),vr=qe(oa(qe.rotate()).invert([0,0]));return Ht(Jt==null?[[vr[0]-hr,vr[1]-hr],[vr[0]+hr,vr[1]+hr]]:Te===xc?[[Math.max(vr[0]-hr,Jt),fr],[Math.min(vr[0]+hr,yr),Ir]]:[[Jt,Math.max(vr[1]-hr,fr)],[yr,Math.min(vr[1]+hr,Ir)]])}return ir()}function Ap(Te){return y((u+Te)/2)}function oy(Te,qe){var rt=g(Te),Ye=Te===qe?x(Te):b(rt/g(qe))/b(Ap(qe)/Ap(Te)),At=rt*S(Ap(Te),Ye)/Ye;if(!Ye)return xc;function Ht(Jt,fr){At>0?fr<-u+o&&(fr=-u+o):fr>u-o&&(fr=u-o);var yr=At/S(Ap(fr),Ye);return[yr*x(Ye*Jt),At-yr*g(Ye*Jt)]}return Ht.invert=function(Jt,fr){var yr=At-fr,Ir=T(Ye)*A(Jt*Jt+yr*yr),ir=m(Jt,d(yr))*T(yr);return yr*Ye<0&&(ir-=l*T(Jt)*T(yr)),[ir/Ye,2*v(S(At/Ir,1/Ye))-u]},Ht}function Mp(){return ku(oy).scale(109.5).parallels([30,30])}function Sh(Te,qe){return[Te,qe]}Sh.invert=Sh;function od(){return Wc(Sh).scale(152.63)}function Sp(Te,qe){var rt=g(Te),Ye=Te===qe?x(Te):(rt-g(qe))/(qe-Te),At=rt/Ye+Te;if(d(Ye)o&&--Ye>0);return[Te/(.8707+(Ht=rt*rt)*(-.131979+Ht*(-.013791+Ht*Ht*Ht*(.003971-.001529*Ht)))),rt]};function Kv(){return Wc(Eg).scale(175.295)}function hl(Te,qe){return[g(qe)*x(Te),x(qe)]}hl.invert=yf(M);function Yc(){return Wc(hl).scale(249.5).clipAngle(90+o)}function Dp(Te,qe){var rt=g(qe),Ye=1+g(Te)*rt;return[rt*x(Te)/Ye,x(qe)/Ye]}Dp.invert=yf(function(Te){return 2*v(Te)});function kg(){return Wc(Dp).scale(250).clipAngle(142)}function Fp(Te,qe){return[b(y((u+qe)/2)),-Te]}Fp.invert=function(Te,qe){return[-qe,2*v(_(Te))-u]};function Lp(){var Te=Tp(Fp),qe=Te.center,rt=Te.rotate;return Te.center=function(Ye){return arguments.length?qe([-Ye[1],Ye[0]]):(Ye=qe(),[Ye[1],-Ye[0]])},Te.rotate=function(Ye){return arguments.length?rt([Ye[0],Ye[1],Ye.length>2?Ye[2]+90:90]):(Ye=rt(),[Ye[0],Ye[1],Ye[2]-90])},rt([0,0,90]).scale(159.155)}e.geoAlbers=Mg,e.geoAlbersUsa=ny,e.geoArea=H,e.geoAzimuthalEqualArea=Bx,e.geoAzimuthalEqualAreaRaw=Ku,e.geoAzimuthalEquidistant=ay,e.geoAzimuthalEquidistantRaw=ad,e.geoBounds=mt,e.geoCentroid=Pr,e.geoCircle=Os,e.geoClipAntimeridian=lt,e.geoClipCircle=Ar,e.geoClipExtent=Si,e.geoClipRectangle=ri,e.geoConicConformal=Mp,e.geoConicConformalRaw=oy,e.geoConicEqualArea=Mh,e.geoConicEqualAreaRaw=f0,e.geoConicEquidistant=sy,e.geoConicEquidistantRaw=Sp,e.geoContains=Vl,e.geoDistance=as,e.geoEqualEarth=Sg,e.geoEqualEarthRaw=Cp,e.geoEquirectangular=od,e.geoEquirectangularRaw=Sh,e.geoGnomonic=ly,e.geoGnomonicRaw=Zv,e.geoGraticule=Au,e.geoGraticule10=Mu,e.geoIdentity=uy,e.geoInterpolate=mc,e.geoLength=gs,e.geoMercator=Xv,e.geoMercatorRaw=xc,e.geoNaturalEarth1=Kv,e.geoNaturalEarth1Raw=Eg,e.geoOrthographic=Yc,e.geoOrthographicRaw=hl,e.geoPath=_g,e.geoProjection=Wc,e.geoProjectionMutator=Ag,e.geoRotation=oa,e.geoStereographic=kg,e.geoStereographicRaw=Dp,e.geoStream=I,e.geoTransform=ty,e.geoTransverseMercator=Lp,e.geoTransverseMercatorRaw=Fp,Object.defineProperty(e,"__esModule",{value:!0})}))});var FVe=W((tJr,DVe)=>{"use strict";var CVe={alabama:"AL",alaska:"AK",arizona:"AZ",arkansas:"AR",california:"CA",colorado:"CO",connecticut:"CT",delaware:"DE","district of columbia":"DC",florida:"FL",georgia:"GA",hawaii:"HI",idaho:"ID",illinois:"IL",indiana:"IN",iowa:"IA",kansas:"KS",kentucky:"KY",louisiana:"LA",maine:"ME",maryland:"MD",massachusetts:"MA",michigan:"MI",minnesota:"MN",mississippi:"MS",missouri:"MO",montana:"MT",nebraska:"NE",nevada:"NV","new hampshire":"NH","new jersey":"NJ","new mexico":"NM","new york":"NY","north carolina":"NC","north dakota":"ND",ohio:"OH",oklahoma:"OK",oregon:"OR",pennsylvania:"PA","rhode island":"RI","south carolina":"SC","south dakota":"SD",tennessee:"TN",texas:"TX",utah:"UT",vermont:"VT",virginia:"VA",washington:"WA","washington dc":"DC","washington d.c.":"DC","west virginia":"WV",wisconsin:"WI",wyoming:"WY"},Gsr=new Set(Object.values(CVe));DVe.exports={usaLocationAbbreviations:Gsr,usaLocationList:CVe}});var LVe={};Kn(LVe,{COUNTRIES_X:()=>Hsr});var Hsr,PVe=Ci(()=>{"use strict";Hsr=[{iso3:"XAC",iso2:"",m49:"",name:"Aksai Chin",aliases:[]},{iso3:"XAP",iso2:"",m49:"",name:"Arunachal Pradesh",aliases:[]},{iso3:"XBT",iso2:"",m49:"",name:"Bir Tawil",aliases:[]},{iso3:"XHT",iso2:"",m49:"",name:"Halaib Triangle",aliases:[]},{iso3:"XIT",iso2:"",m49:"",name:"Ilemi Triangle",aliases:[]},{iso3:"XJK",iso2:"",m49:"",name:"Jammu and Kashmir",aliases:[]}]});var bm=W((rJr,zVe)=>{"use strict";var jsr=gi(),{COUNTRIES:$sr,createLookup:Wsr}=uVe(),{area:Ysr}=TVe(),{centroid:Xsr}=MVe(),{coordAll:Zsr}=xR(),{geoBounds:Ksr}=AR(),Jsr=vA(),R2=zg(),Qsr=dy(),elr=NT(),MR=iM(),{usaLocationAbbreviations:tlr,usaLocationList:rlr}=FVe(),{COUNTRIES_X:ilr}=(PVe(),Pt(LVe)),{lookupAlpha3:nlr}=Wsr([...$sr,...ilr]),alr={"ISO-3":Jsr,"USA-states":slr,"country names":olr};function olr(e){let t=nlr(e);return t||(R2.log("Unrecognized country name: "+e+"."),!1)}function slr(e){e=e.trim();let t=tlr.has(e.toUpperCase())?e.toUpperCase():rlr[e.toLowerCase()];return t||(R2.log("Unrecognized US location: "+e+"."),!1)}function llr(e,t,r){var n;if(!t||typeof t!="string")return!1;let i=alr[e](t);if(i){let a;if(e==="USA-states"){a=[];for(let o of r)((n=o==null?void 0:o.properties)==null?void 0:n.gu)==="USA"&&a.push(o)}else a=r;for(let o of a)if(o.id===i)return o;R2.log(`Location with id ${i} does not have a matching topojson feature at this resolution.`)}return!1}var SR=360;function HQ(e){for(let t=0;t0&&e[t+1][0]<0)return t;return null}function ulr(e){var t=e.geometry,r=t.coordinates,i=e.id,n=[],a,o,s,l;switch(i==="RUS"||i==="FJI"?a=function(u){var c;if(HQ(u)===null)c=u;else for(c=new Array(u.length),l=0;lc?f[h++]=[u[l][0]+SR,u[l][1]]:l===c?(f[h++]=u[l],f[h++]=[u[l][0],-90]):f[h++]=u[l];var p=MR.tester(f);p.pts.pop(),n.push(p)}:a=function(u){n.push(MR.tester(u))},t.type){case"MultiPolygon":for(o=0;on&&(n=s,r=o)}else r=t;return!r||!r.coordinates.some(l=>l.length>0)?[NaN,NaN]:Xsr(r).geometry.coordinates}function hlr(e){var t=window.PlotlyGeoAssets||{},r=[];function i(l){return new Promise(function(u,c){jsr.json(l,function(f,h){if(f){delete t[l];var p=f.status===404?'GeoJSON at URL "'+l+'" does not exist.':"Unexpected error while fetching from "+l;return c(new Error(p))}return t[l]=h,u(h)})})}function n(l){return new Promise(function(u,c){var f=0,h=setInterval(function(){if(t[l]&&t[l]!=="pending")return clearInterval(h),u(t[l]);if(f>100)return clearInterval(h),c("Unexpected error while fetching from "+l);f++},50)})}for(var a=0;aWQ($Q(e));function $Q(e){try{return Zsr(e)}catch(t){return[]}}function WQ(e){if(e.length===0)return null;if(e.length===1){let[a,o]=e[0];return[a,o,a,o]}let[[t,r],[i,n]]=Ksr({type:"MultiPoint",coordinates:e});return[t,r,RVe([t,i])[1],n]}var plr=(e,t)=>t.fitbounds==="geojson"&&e.locationmode==="geojson-id",IVe=(e,t)=>plr(e,t)?$Q(jQ(e)):[],vlr=(e,t)=>WQ(IVe(e,t));function RVe([e,t]){return[e,e>t?t+SR:t]}zVe.exports={locationToFeature:llr,feature2polygons:ulr,getTraceGeojson:jQ,extractTraceFeature:clr,fetchTraceGeoData:hlr,boundsOfCoords:WQ,computeBbox:dlr,coordsOf:$Q,doesCrossAntiMeridian:HQ,fitGeojsonBbox:vlr,fitGeojsonCoords:IVe,unwrapLonRange:RVe,ANTIMERIDIAN_LON_SHIFT:SR}});var YQ=W((iJr,OVe)=>{"use strict";var glr=gi(),mlr=en(),BVe=ai(),qVe=oh(),ylr=qVe.stylePoints,xlr=qVe.styleText;OVe.exports=function(t,r){r&&blr(t,r)};function blr(e,t){var r=t[0].trace,i=t[0].node3;i.style("opacity",t[0].trace.opacity),ylr(i,r,e),xlr(i,r,e),i.selectAll("path.js-line").style("fill","none").each(function(n){var a=glr.select(this),o=n.trace,s=o.line||{};a.call(BVe.stroke,s.color).call(mlr.dashLine,s.dash||"",s.width||0),o.fill!=="none"&&a.call(BVe.fill,o.fillcolor)})}});var CR=W((nJr,VVe)=>{"use strict";var NVe=gi(),ER=it(),_lr=dR().getTopojsonFeatures,XQ=LE(),kR=bm(),UVe=jp().findExtremes,KQ=(ta(),Pt(ra)).BADNUM,wlr=Fd().calcMarkerSize,ZQ=Wo(),Tlr=YQ();function Alr(e,t,r){var i=t.layers.frontplot.select(".scatterlayer"),n=ER.makeTraceGroups(i,r,"trace scattergeo");function a(o,s){o.lonlat[0]===KQ&&NVe.select(s).remove()}n.selectAll("*").remove(),n.each(function(o){var s=NVe.select(this),l=o[0].trace;if(ZQ.hasLines(l)||l.fill!=="none"){var u=XQ.calcTraceToLineCoords(o),c=l.fill!=="none"?XQ.makePolygon(u):XQ.makeLine(u);s.selectAll("path.js-line").data([{geojson:c,trace:l}]).enter().append("path").classed("js-line",!0).style("stroke-miterlimit",2)}ZQ.hasMarkers(l)&&s.selectAll("path.point").data(ER.identity).enter().append("path").classed("point",!0).each(function(f){a(f,this)}),ZQ.hasText(l)&&s.selectAll("g").data(ER.identity).enter().append("g").append("text").each(function(f){a(f,this)}),Tlr(e,o)})}function Mlr(e,t){var r=e[0].trace,i=t[r.geo],n=i._subplot,a=r._length,o,s;if(ER.isArrayOrTypedArray(r.locations)){var l=r.locationmode,u=l==="geojson-id"?kR.extractTraceFeature(e):_lr(r,n.topojson);for(o=0;o{"use strict";var Elr=Ls(),klr=(ta(),Pt(ra)).BADNUM,Clr=o5(),Dlr=it().fillText,Flr=$4();GVe.exports=function(t,r,i){var n=t.cd,a=n[0].trace,o=t.xa,s=t.ya,l=t.subplot,u=l.projection.isLonLatOverEdges,c=l.project;function f(w){var _=w.lonlat;if(_[0]===klr||u(_))return 1/0;var b=c(_),S=c([r,i]),x=Math.abs(b[0]-S[0]),T=Math.abs(b[1]-S[1]),A=Math.max(3,w.mrc||0);return Math.max(Math.sqrt(x*x+T*T)-A,1-3/A)}if(Elr.getClosest(n,f,t),t.index!==!1){var h=n[t.index],p=h.lonlat,d=[o.c2p(p),s.c2p(p)],v=h.mrc||1;t.x0=d[0]-v,t.x1=d[0]+v,t.y0=d[1]-v,t.y1=d[1]+v,t.loc=h.loc,t.lon=p[0],t.lat=p[1];var m={};m[a.geo]={_subplot:l};var g=a._module.formatLabels(h,a,m);return t.lonLabel=g.lonLabel,t.latLabel=g.latLabel,t.color=Clr(a,h),t.extraText=Llr(a,h,t,n[0].t.labels),t.hovertemplate=a.hovertemplate,[t]}};function Llr(e,t,r,i){if(e.hovertemplate)return;var n=t.hi||e.hoverinfo,a=n==="all"?Flr.hoverinfo.flags:n.split("+"),o=a.indexOf("location")!==-1&&Array.isArray(e.locations),s=a.indexOf("lon")!==-1,l=a.indexOf("lat")!==-1,u=a.indexOf("text")!==-1,c=[];function f(h){return h+"\xB0"}return o?c.push(t.loc):s&&l?c.push("("+f(r.latLabel)+", "+f(r.lonLabel)+")"):s?c.push(i.lon+f(r.lonLabel)):l&&c.push(i.lat+f(r.latLabel)),u&&Dlr(t,e,c),c.join("
")}});var $Ve=W((oJr,jVe)=>{"use strict";jVe.exports=function(t,r,i,n,a){t.lon=r.lon,t.lat=r.lat,t.location=r.loc?r.loc:null;var o=n[a];return o.fIn&&o.fIn.properties&&(t.properties=o.fIn.properties),t}});var XVe=W((sJr,YVe)=>{"use strict";var WVe=Wo(),Plr=(ta(),Pt(ra)).BADNUM;YVe.exports=function(t,r){var i=t.cd,n=t.xaxis,a=t.yaxis,o=[],s=i[0].trace,l,u,c,f,h,p=!WVe.hasMarkers(s)&&!WVe.hasText(s);if(p)return[];if(r===!1)for(h=0;h{(function(e,t){t(typeof DR=="object"&&typeof ZVe!="undefined"?DR:e.d3=e.d3||{})})(DR,(function(e){"use strict";function t(U,V){return UV?1:U>=V?0:NaN}function r(U){return U.length===1&&(U=i(U)),{left:function(V,X,G,H){for(G==null&&(G=0),H==null&&(H=V.length);G>>1;U(V[J],X)<0?G=J+1:H=J}return G},right:function(V,X,G,H){for(G==null&&(G=0),H==null&&(H=V.length);G>>1;U(V[J],X)>0?H=J:G=J+1}return G}}}function i(U){return function(V,X){return t(U(V),X)}}var n=r(t),a=n.right,o=n.left;function s(U,V){V==null&&(V=l);for(var X=0,G=U.length-1,H=U[0],J=new Array(G<0?0:G);XU?1:V>=U?0:NaN}function f(U){return U===null?NaN:+U}function h(U,V){var X=U.length,G=0,H=-1,J=0,te,ue,ge=0;if(V==null)for(;++H1)return ge/(G-1)}function p(U,V){var X=h(U,V);return X&&Math.sqrt(X)}function d(U,V){var X=U.length,G=-1,H,J,te;if(V==null){for(;++G=H)for(J=te=H;++GH&&(J=H),te=H)for(J=te=H;++GH&&(J=H),te0)return[U];if((G=V0)for(U=Math.ceil(U/ue),V=Math.floor(V/ue),te=new Array(J=Math.ceil(V-U+1));++H=0?(J>=S?10:J>=x?5:J>=T?2:1)*Math.pow(10,H):-Math.pow(10,-H)/(J>=S?10:J>=x?5:J>=T?2:1)}function E(U,V,X){var G=Math.abs(V-U)/Math.max(0,X),H=Math.pow(10,Math.floor(Math.log(G)/Math.LN10)),J=G/H;return J>=S?H*=10:J>=x?H*=5:J>=T&&(H*=2),Vhe;)oe.pop(),--Me;var ye=new Array(Me+1),ce;for(J=0;J<=Me;++J)ce=ye[J]=[],ce.x0=J>0?oe[J-1]:_e,ce.x1=J=1)return+X(U[G-1],G-1,U);var G,H=(G-1)*V,J=Math.floor(H),te=+X(U[J],J,U),ue=+X(U[J+1],J+1,U);return te+(ue-te)*(H-J)}}function D(U,V,X){return U=g.call(U,f).sort(t),Math.ceil((X-V)/(2*(k(U,.75)-k(U,.25))*Math.pow(U.length,-1/3)))}function L(U,V,X){return Math.ceil((X-V)/(3.5*p(U)*Math.pow(U.length,-1/3)))}function P(U,V){var X=U.length,G=-1,H,J;if(V==null){for(;++G=H)for(J=H;++GJ&&(J=H)}else for(;++G=H)for(J=H;++GJ&&(J=H);return J}function R(U,V){var X=U.length,G=X,H=-1,J,te=0;if(V==null)for(;++H=0;)for(te=U[V],X=te.length;--X>=0;)J[--H]=te[X];return J}function B(U,V){var X=U.length,G=-1,H,J;if(V==null){for(;++G=H)for(J=H;++GH&&(J=H)}else for(;++G=H)for(J=H;++GH&&(J=H);return J}function O(U,V){for(var X=V.length,G=new Array(X);X--;)G[X]=U[V[X]];return G}function $(U,V){if(X=U.length){var X,G=0,H=0,J,te=U[H];for(V==null&&(V=t);++G{(function(e,t){typeof FR=="object"&&typeof JVe!="undefined"?t(FR,AR(),KVe()):t(e.d3=e.d3||{},e.d3,e.d3)})(FR,(function(e,t,r){"use strict";var i=Math.abs,n=Math.atan,a=Math.atan2,o=Math.cos,s=Math.exp,l=Math.floor,u=Math.log,c=Math.max,f=Math.min,h=Math.pow,p=Math.round,d=Math.sign||function(ie){return ie>0?1:ie<0?-1:0},v=Math.sin,m=Math.tan,g=1e-6,w=1e-12,_=Math.PI,b=_/2,S=_/4,x=Math.SQRT1_2,T=L(2),A=L(_),y=_*2,E=180/_,M=_/180;function C(ie){return ie?ie/Math.sin(ie):1}function k(ie){return ie>1?b:ie<-1?-b:Math.asin(ie)}function D(ie){return ie>1?0:ie<-1?_:Math.acos(ie)}function L(ie){return ie>0?Math.sqrt(ie):0}function P(ie){return ie=s(2*ie),(ie-1)/(ie+1)}function R(ie){return(s(ie)-s(-ie))/2}function F(ie){return(s(ie)+s(-ie))/2}function I(ie){return u(ie+L(ie*ie+1))}function B(ie){return u(ie+L(ie*ie-1))}function O(ie){var se=m(ie/2),de=2*u(o(ie/2))/(se*se);function ve(Se,Ae){var Pe=o(Se),Ke=o(Ae),nt=v(Ae),Ze=Ke*Pe,at=-((1-Ze?u((1+Ze)/2)/(1-Ze):-.5)+de/(1+Ze));return[at*Ke*v(Se),at*nt]}return ve.invert=function(Se,Ae){var Pe=L(Se*Se+Ae*Ae),Ke=-ie/2,nt=50,Ze;if(!Pe)return[0,0];do{var at=Ke/2,yt=o(at),It=v(at),Vt=It/yt,or=-u(i(yt));Ke-=Ze=(2/Vt*or-de*Vt-Pe)/(-or/(It*It)+1-de/(2*yt*yt))*(yt<0?.7:1)}while(i(Ze)>g&&--nt>0);var Mr=v(Ke);return[a(Se*Mr,Pe*o(Ke)),k(Ae*Mr/Pe)]},ve}function $(){var ie=b,se=t.geoProjectionMutator(O),de=se(ie);return de.radius=function(ve){return arguments.length?se(ie=ve*M):ie*E},de.scale(179.976).clipAngle(147)}function Y(ie,se){var de=o(se),ve=C(D(de*o(ie/=2)));return[2*de*v(ie)*ve,v(se)*ve]}Y.invert=function(ie,se){if(!(ie*ie+4*se*se>_*_+g)){var de=ie,ve=se,Se=25;do{var Ae=v(de),Pe=v(de/2),Ke=o(de/2),nt=v(ve),Ze=o(ve),at=v(2*ve),yt=nt*nt,It=Ze*Ze,Vt=Pe*Pe,or=1-It*Ke*Ke,Mr=or?D(Ze*Ke)*L(Gr=1/or):Gr=0,Gr,_i=2*Mr*Ze*Pe-ie,an=Mr*nt-se,hn=Gr*(It*Vt+Mr*Ze*Ke*yt),_n=Gr*(.5*Ae*at-Mr*2*nt*Pe),Ln=Gr*.25*(at*Pe-Mr*nt*It*Ae),ro=Gr*(yt*Ke+Mr*Vt*Ze),Do=_n*Ln-ro*hn;if(!Do)break;var ca=(an*_n-_i*ro)/Do,ss=(_i*Ln-an*hn)/Do;de-=ca,ve-=ss}while((i(ca)>g||i(ss)>g)&&--Se>0);return[de,ve]}};function K(){return t.geoProjection(Y).scale(152.63)}function j(ie){var se=v(ie),de=o(ie),ve=ie>=0?1:-1,Se=m(ve*ie),Ae=(1+se-de)/2;function Pe(Ke,nt){var Ze=o(nt),at=o(Ke/=2);return[(1+Ze)*v(Ke),(ve*nt>-a(at,Se)-.001?0:-ve*10)+Ae+v(nt)*de-(1+Ze)*se*at]}return Pe.invert=function(Ke,nt){var Ze=0,at=0,yt=50;do{var It=o(Ze),Vt=v(Ze),or=o(at),Mr=v(at),Gr=1+or,_i=Gr*Vt-Ke,an=Ae+Mr*de-Gr*se*It-nt,hn=Gr*It/2,_n=-Vt*Mr,Ln=se*Gr*Vt/2,ro=de*or+se*It*Mr,Do=_n*Ln-ro*hn,ca=(an*_n-_i*ro)/Do/2,ss=(_i*Ln-an*hn)/Do;i(ss)>2&&(ss/=2),Ze-=ca,at-=ss}while((i(ca)>g||i(ss)>g)&&--yt>0);return ve*at>-a(o(Ze),Se)-.001?[Ze*2,at]:null},Pe}function q(){var ie=20*M,se=ie>=0?1:-1,de=m(se*ie),ve=t.geoProjectionMutator(j),Se=ve(ie),Ae=Se.stream;return Se.parallel=function(Pe){return arguments.length?(de=m((se=(ie=Pe*M)>=0?1:-1)*ie),ve(ie)):ie*E},Se.stream=function(Pe){var Ke=Se.rotate(),nt=Ae(Pe),Ze=(Se.rotate([0,0]),Ae(Pe)),at=Se.precision();return Se.rotate(Ke),nt.sphere=function(){Ze.polygonStart(),Ze.lineStart();for(var yt=se*-180;se*yt<180;yt+=se*90)Ze.point(yt,se*90);if(ie)for(;se*(yt-=3*se*at)>=-180;)Ze.point(yt,se*-a(o(yt*M/2),de)*E);Ze.lineEnd(),Ze.polygonEnd()},nt},Se.scale(218.695).center([0,28.0974])}function Q(ie,se){var de=m(se/2),ve=L(1-de*de),Se=1+ve*o(ie/=2),Ae=v(ie)*ve/Se,Pe=de/Se,Ke=Ae*Ae,nt=Pe*Pe;return[4/3*Ae*(3+Ke-3*nt),4/3*Pe*(3+3*Ke-nt)]}Q.invert=function(ie,se){if(ie*=3/8,se*=3/8,!ie&&i(se)>1)return null;var de=ie*ie,ve=se*se,Se=1+de+ve,Ae=L((Se-L(Se*Se-4*se*se))/2),Pe=k(Ae)/3,Ke=Ae?B(i(se/Ae))/3:I(i(ie))/3,nt=o(Pe),Ze=F(Ke),at=Ze*Ze-nt*nt;return[d(ie)*2*a(R(Ke)*nt,.25-at),d(se)*2*a(Ze*v(Pe),.25+at)]};function U(){return t.geoProjection(Q).scale(66.1603)}var V=L(8),X=u(1+T);function G(ie,se){var de=i(se);return dew&&--ve>0);return[ie/(o(de)*(V-1/v(de))),d(se)*de]};function H(){return t.geoProjection(G).scale(112.314)}function J(ie){var se=2*_/ie;function de(ve,Se){var Ae=t.geoAzimuthalEquidistantRaw(ve,Se);if(i(ve)>b){var Pe=a(Ae[1],Ae[0]),Ke=L(Ae[0]*Ae[0]+Ae[1]*Ae[1]),nt=se*p((Pe-b)/se)+b,Ze=a(v(Pe-=nt),2-o(Pe));Pe=nt+k(_/Ke*v(Ze))-Ze,Ae[0]=Ke*o(Pe),Ae[1]=Ke*v(Pe)}return Ae}return de.invert=function(ve,Se){var Ae=L(ve*ve+Se*Se);if(Ae>b){var Pe=a(Se,ve),Ke=se*p((Pe-b)/se)+b,nt=Pe>Ke?-1:1,Ze=Ae*o(Ke-Pe),at=1/m(nt*D((Ze-_)/L(_*(_-2*Ze)+Ae*Ae)));Pe=Ke+2*n((at+nt*L(at*at-3))/3),ve=Ae*o(Pe),Se=Ae*v(Pe)}return t.geoAzimuthalEquidistantRaw.invert(ve,Se)},de}function te(){var ie=5,se=t.geoProjectionMutator(J),de=se(ie),ve=de.stream,Se=.01,Ae=-o(Se*M),Pe=v(Se*M);return de.lobes=function(Ke){return arguments.length?se(ie=+Ke):ie},de.stream=function(Ke){var nt=de.rotate(),Ze=ve(Ke),at=(de.rotate([0,0]),ve(Ke));return de.rotate(nt),Ze.sphere=function(){at.polygonStart(),at.lineStart();for(var yt=0,It=360/ie,Vt=2*_/ie,or=90-180/ie,Mr=b;yt0&&i(Se)>g);return ve<0?NaN:de}function he(ie,se,de){return se===void 0&&(se=40),de===void 0&&(de=w),function(ve,Se,Ae,Pe){var Ke,nt,Ze;Ae=Ae===void 0?0:+Ae,Pe=Pe===void 0?0:+Pe;for(var at=0;atKe){Ae-=nt/=2,Pe-=Ze/=2;continue}Ke=or;var Mr=(Ae>0?-1:1)*de,Gr=(Pe>0?-1:1)*de,_i=ie(Ae+Mr,Pe),an=ie(Ae,Pe+Gr),hn=(_i[0]-yt[0])/Mr,_n=(_i[1]-yt[1])/Mr,Ln=(an[0]-yt[0])/Gr,ro=(an[1]-yt[1])/Gr,Do=ro*hn-_n*Ln,ca=(i(Do)<.5?.5:1)/Do;if(nt=(Vt*Ln-It*ro)*ca,Ze=(It*_n-Vt*hn)*ca,Ae+=nt,Pe+=Ze,i(nt)0&&(Ke[1]*=1+nt/1.5*Ke[0]*Ke[0]),Ke}return ve.invert=he(ve),ve}function Me(){return t.geoProjection(oe()).rotate([-16.5,-42]).scale(176.57).center([7.93,.09])}function ye(ie,se){var de=ie*v(se),ve=30,Se;do se-=Se=(se+v(se)-de)/(1+o(se));while(i(Se)>g&&--ve>0);return se/2}function ce(ie,se,de){function ve(Se,Ae){return[ie*Se*o(Ae=ye(de,Ae)),se*v(Ae)]}return ve.invert=function(Se,Ae){return Ae=k(Ae/se),[Se/(ie*o(Ae)),k((2*Ae+v(2*Ae))/de)]},ve}var ee=ce(T/b,T,_);function ae(){return t.geoProjection(ee).scale(169.529)}var xe=2.00276,re=1.11072;function pe(ie,se){var de=ye(_,se);return[xe*ie/(1/o(se)+re/o(de)),(se+T*v(de))/xe]}pe.invert=function(ie,se){var de=xe*se,ve=se<0?-S:S,Se=25,Ae,Pe;do Pe=de-T*v(ve),ve-=Ae=(v(2*ve)+2*ve-_*v(Pe))/(2*o(2*ve)+2+_*o(Pe)*T*o(ve));while(i(Ae)>g&&--Se>0);return Pe=de-T*v(ve),[ie*(1/o(Pe)+re/o(ve))/xe,Pe]};function we(){return t.geoProjection(pe).scale(160.857)}function Fe(ie){var se=0,de=t.geoProjectionMutator(ie),ve=de(se);return ve.parallel=function(Se){return arguments.length?de(se=Se*M):se*E},ve}function Ee(ie,se){return[ie*o(se),se]}Ee.invert=function(ie,se){return[ie/o(se),se]};function Ce(){return t.geoProjection(Ee).scale(152.63)}function be(ie){if(!ie)return Ee;var se=1/m(ie);function de(ve,Se){var Ae=se+ie-Se,Pe=Ae&&ve*o(Se)/Ae;return[Ae*v(Pe),se-Ae*o(Pe)]}return de.invert=function(ve,Se){var Ae=L(ve*ve+(Se=se-Se)*Se),Pe=se+ie-Ae;return[Ae/o(Pe)*a(ve,Se),Pe]},de}function Ie(){return Fe(be).scale(123.082).center([0,26.1441]).parallel(45)}function Oe(ie){function se(de,ve){var Se=b-ve,Ae=Se&&de*ie*v(Se)/Se;return[Se*v(Ae)/ie,b-Se*o(Ae)]}return se.invert=function(de,ve){var Se=de*ie,Ae=b-ve,Pe=L(Se*Se+Ae*Ae),Ke=a(Se,Ae);return[(Pe?Pe/v(Pe):1)*Ke/ie,b-Pe]},se}function Qe(){var ie=.5,se=t.geoProjectionMutator(Oe),de=se(ie);return de.fraction=function(ve){return arguments.length?se(ie=+ve):ie},de.scale(158.837)}var et=ce(1,4/_,_);function bt(){return t.geoProjection(et).scale(152.63)}function ut(ie,se,de,ve,Se,Ae){var Pe=o(Ae),Ke;if(i(ie)>1||i(Ae)>1)Ke=D(de*Se+se*ve*Pe);else{var nt=v(ie/2),Ze=v(Ae/2);Ke=2*k(L(nt*nt+se*ve*Ze*Ze))}return i(Ke)>g?[Ke,a(ve*v(Ae),se*Se-de*ve*Pe)]:[0,0]}function vt(ie,se,de){return D((ie*ie+se*se-de*de)/(2*ie*se))}function Xe(ie){return ie-2*_*l((ie+_)/(2*_))}function mt(ie,se,de){for(var ve=[[ie[0],ie[1],v(ie[1]),o(ie[1])],[se[0],se[1],v(se[1]),o(se[1])],[de[0],de[1],v(de[1]),o(de[1])]],Se=ve[2],Ae,Pe=0;Pe<3;++Pe,Se=Ae)Ae=ve[Pe],Se.v=ut(Ae[1]-Se[1],Se[3],Se[2],Ae[3],Ae[2],Ae[0]-Se[0]),Se.point=[0,0];var Ke=vt(ve[0].v[0],ve[2].v[0],ve[1].v[0]),nt=vt(ve[0].v[0],ve[1].v[0],ve[2].v[0]),Ze=_-Ke;ve[2].point[1]=0,ve[0].point[0]=-(ve[1].point[0]=ve[0].v[0]/2);var at=[ve[2].point[0]=ve[0].point[0]+ve[2].v[0]*o(Ke),2*(ve[0].point[1]=ve[1].point[1]=ve[2].v[0]*v(Ke))];function yt(It,Vt){var or=v(Vt),Mr=o(Vt),Gr=new Array(3),_i;for(_i=0;_i<3;++_i){var an=ve[_i];if(Gr[_i]=ut(Vt-an[1],an[3],an[2],Mr,or,It-an[0]),!Gr[_i][0])return an.point;Gr[_i][1]=Xe(Gr[_i][1]-an.v[1])}var hn=at.slice();for(_i=0;_i<3;++_i){var _n=_i==2?0:_i+1,Ln=vt(ve[_i].v[0],Gr[_i][0],Gr[_n][0]);Gr[_i][1]<0&&(Ln=-Ln),_i?_i==1?(Ln=nt-Ln,hn[0]-=Gr[_i][0]*o(Ln),hn[1]-=Gr[_i][0]*v(Ln)):(Ln=Ze-Ln,hn[0]+=Gr[_i][0]*o(Ln),hn[1]+=Gr[_i][0]*v(Ln)):(hn[0]+=Gr[_i][0]*o(Ln),hn[1]-=Gr[_i][0]*v(Ln))}return hn[0]/=3,hn[1]/=3,hn}return yt}function _t(ie){return ie[0]*=M,ie[1]*=M,ie}function Ne(){return Ue([0,22],[45,22],[22.5,-22]).scale(380).center([22.5,2])}function Ue(ie,se,de){var ve=t.geoCentroid({type:"MultiPoint",coordinates:[ie,se,de]}),Se=[-ve[0],-ve[1]],Ae=t.geoRotation(Se),Pe=mt(_t(Ae(ie)),_t(Ae(se)),_t(Ae(de)));Pe.invert=he(Pe);var Ke=t.geoProjection(Pe).rotate(Se),nt=Ke.center;return delete Ke.rotate,Ke.center=function(Ze){return arguments.length?nt(Ae(Ze)):Ae.invert(nt())},Ke.clipAngle(90)}function Ge(ie,se){var de=L(1-v(se));return[2/A*ie*de,A*(1-de)]}Ge.invert=function(ie,se){var de=(de=se/A-1)*de;return[de>0?ie*L(_/de)/2:0,k(1-de)]};function je(){return t.geoProjection(Ge).scale(95.6464).center([0,30])}function Re(ie){var se=m(ie);function de(ve,Se){return[ve,(ve?ve/v(ve):1)*(v(Se)*o(ve)-se*o(Se))]}return de.invert=se?function(ve,Se){ve&&(Se*=v(ve)/ve);var Ae=o(ve);return[ve,2*a(L(Ae*Ae+se*se-Se*Se)-Ae,se-Se)]}:function(ve,Se){return[ve,k(ve?Se*m(ve)/ve:Se)]},de}function Ve(){return Fe(Re).scale(249.828).clipAngle(90)}var ct=L(3);function Tt(ie,se){return[ct*ie*(2*o(2*se/3)-1)/A,ct*A*v(se/3)]}Tt.invert=function(ie,se){var de=3*k(se/(ct*A));return[A*ie/(ct*(2*o(2*de/3)-1)),de]};function Zt(){return t.geoProjection(Tt).scale(156.19)}function Gt(ie){var se=o(ie);function de(ve,Se){return[ve*se,v(Se)/se]}return de.invert=function(ve,Se){return[ve/se,k(Se*se)]},de}function ur(){return Fe(Gt).parallel(38.58).scale(195.044)}function cr(ie){var se=o(ie);function de(ve,Se){return[ve*se,(1+se)*m(Se/2)]}return de.invert=function(ve,Se){return[ve/se,n(Se/(1+se))*2]},de}function qt(){return Fe(cr).scale(124.75)}function Kt(ie,se){var de=L(8/(3*_));return[de*ie*(1-i(se)/_),de*se]}Kt.invert=function(ie,se){var de=L(8/(3*_)),ve=se/de;return[ie/(de*(1-i(ve)/_)),ve]};function Cr(){return t.geoProjection(Kt).scale(165.664)}function $e(ie,se){var de=L(4-3*v(i(se)));return[2/L(6*_)*ie*de,d(se)*L(2*_/3)*(2-de)]}$e.invert=function(ie,se){var de=2-i(se)/L(2*_/3);return[ie*L(6*_)/(2*de),d(se)*k((4-de*de)/3)]};function tt(){return t.geoProjection($e).scale(165.664)}function st(ie,se){var de=L(_*(4+_));return[2/de*ie*(1+L(1-4*se*se/(_*_))),4/de*se]}st.invert=function(ie,se){var de=L(_*(4+_))/2;return[ie*de/(1+L(1-se*se*(4+_)/(4*_))),se*de/2]};function xt(){return t.geoProjection(st).scale(180.739)}function Je(ie,se){var de=(2+b)*v(se);se/=2;for(var ve=0,Se=1/0;ve<10&&i(Se)>g;ve++){var Ae=o(se);se-=Se=(se+v(se)*(Ae+2)-de)/(2*Ae*(1+Ae))}return[2/L(_*(4+_))*ie*(1+o(se)),2*L(_/(4+_))*v(se)]}Je.invert=function(ie,se){var de=se*L((4+_)/_)/2,ve=k(de),Se=o(ve);return[ie/(2/L(_*(4+_))*(1+Se)),k((ve+de*(Se+2))/(2+b))]};function Ct(){return t.geoProjection(Je).scale(180.739)}function nr(ie,se){return[ie*(1+o(se))/L(2+_),2*se/L(2+_)]}nr.invert=function(ie,se){var de=L(2+_),ve=se*de/2;return[de*ie/(1+o(ve)),ve]};function dr(){return t.geoProjection(nr).scale(173.044)}function Vr(ie,se){for(var de=(1+b)*v(se),ve=0,Se=1/0;ve<10&&i(Se)>g;ve++)se-=Se=(se+v(se)-de)/(1+o(se));return de=L(2+_),[ie*(1+o(se))/de,2*se/de]}Vr.invert=function(ie,se){var de=1+b,ve=L(de/2);return[ie*2*ve/(1+o(se*=ve)),k((se+v(se))/de)]};function ui(){return t.geoProjection(Vr).scale(173.044)}var ti=3+2*T;function Pr(ie,se){var de=v(ie/=2),ve=o(ie),Se=L(o(se)),Ae=o(se/=2),Pe=v(se)/(Ae+T*ve*Se),Ke=L(2/(1+Pe*Pe)),nt=L((T*Ae+(ve+de)*Se)/(T*Ae+(ve-de)*Se));return[ti*(Ke*(nt-1/nt)-2*u(nt)),ti*(Ke*Pe*(nt+1/nt)-2*n(Pe))]}Pr.invert=function(ie,se){if(!(Ae=Q.invert(ie/1.2,se*1.065)))return null;var de=Ae[0],ve=Ae[1],Se=20,Ae;ie/=ti,se/=ti;do{var Pe=de/2,Ke=ve/2,nt=v(Pe),Ze=o(Pe),at=v(Ke),yt=o(Ke),It=o(ve),Vt=L(It),or=at/(yt+T*Ze*Vt),Mr=or*or,Gr=L(2/(1+Mr)),_i=T*yt+(Ze+nt)*Vt,an=T*yt+(Ze-nt)*Vt,hn=_i/an,_n=L(hn),Ln=_n-1/_n,ro=_n+1/_n,Do=Gr*Ln-2*u(_n)-ie,ca=Gr*or*ro-2*n(or)-se,ss=at&&x*Vt*nt*Mr/at,Al=(T*Ze*yt+Vt)/(2*(yt+T*Ze*Vt)*(yt+T*Ze*Vt)*Vt),Qu=-.5*or*Gr*Gr*Gr,Zf=Qu*ss,p0=Qu*Al,pu=(pu=2*yt+T*Vt*(Ze-nt))*pu*_n,Hl=(T*Ze*yt*Vt+It)/pu,Kc=-(T*nt*at)/(Vt*pu),Kf=Ln*Zf-2*Hl/_n+Gr*(Hl+Hl/hn),Jf=Ln*p0-2*Kc/_n+Gr*(Kc+Kc/hn),Qf=or*ro*Zf-2*ss/(1+Mr)+Gr*ro*ss+Gr*or*(Hl-Hl/hn),Dh=or*ro*p0-2*Al/(1+Mr)+Gr*ro*Al+Gr*or*(Kc-Kc/hn),bf=Jf*Qf-Dh*Kf;if(!bf)break;var v0=(ca*Jf-Do*Dh)/bf,Bp=(Do*Qf-ca*Kf)/bf;de-=v0,ve=c(-b,f(b,ve-Bp))}while((i(v0)>g||i(Bp)>g)&&--Se>0);return i(i(ve)-b)ve){var yt=L(at),It=a(Ze,nt),Vt=de*p(It/de),or=It-Vt,Mr=ie*o(or),Gr=(ie*v(or)-or*v(Mr))/(b-Mr),_i=La(or,Gr),an=(_-ie)/lo(_i,Mr,_);nt=yt;var hn=50,_n;do nt-=_n=(ie+lo(_i,Mr,nt)*an-yt)/(_i(nt)*an);while(i(_n)>g&&--hn>0);Ze=or*v(nt),ntve){var nt=L(Ke),Ze=a(Pe,Ae),at=de*p(Ze/de),yt=Ze-at;Ae=nt*o(yt),Pe=nt*v(yt);for(var It=Ae-b,Vt=v(Ae),or=Pe/Vt,Mr=Aeg||i(or)>g)&&--Mr>0);return[yt,It]},nt}var Ks=Aa(2.8284,-1.6988,.75432,-.18071,1.76003,-.38914,.042555);function wl(){return t.geoProjection(Ks).scale(149.995)}var Tu=Aa(2.583819,-.835827,.170354,-.038094,1.543313,-.411435,.082742);function fl(){return t.geoProjection(Tu).scale(153.93)}var Le=Aa(5/6*_,-.62636,-.0344,0,1.3493,-.05524,0,.045);function ot(){return t.geoProjection(Le).scale(130.945)}function lt(ie,se){var de=ie*ie,ve=se*se;return[ie*(1-.162388*ve)*(.87-952426e-9*de*de),se*(1+ve/12)]}lt.invert=function(ie,se){var de=ie,ve=se,Se=50,Ae;do{var Pe=ve*ve;ve-=Ae=(ve*(1+Pe/12)-se)/(1+Pe/4)}while(i(Ae)>g&&--Se>0);Se=50,ie/=1-.162388*Pe;do{var Ke=(Ke=de*de)*Ke;de-=Ae=(de*(.87-952426e-9*Ke)-ie)/(.87-.00476213*Ke)}while(i(Ae)>g&&--Se>0);return[de,ve]};function kt(){return t.geoProjection(lt).scale(131.747)}var Qt=Aa(2.6516,-.76534,.19123,-.047094,1.36289,-.13965,.031762);function zt(){return t.geoProjection(Qt).scale(131.087)}function Ar(ie){var se=ie(b,0)[0]-ie(-b,0)[0];function de(ve,Se){var Ae=ve>0?-.5:.5,Pe=ie(ve+Ae*_,Se);return Pe[0]-=Ae*se,Pe}return ie.invert&&(de.invert=function(ve,Se){var Ae=ve>0?-.5:.5,Pe=ie.invert(ve+Ae*se,Se),Ke=Pe[0]-Ae*_;return Ke<-_?Ke+=2*_:Ke>_&&(Ke-=2*_),Pe[0]=Ke,Pe}),de}function Yt(ie,se){var de=d(ie),ve=d(se),Se=o(se),Ae=o(ie)*Se,Pe=v(ie)*Se,Ke=v(ve*se);ie=i(a(Pe,Ke)),se=k(Ae),i(ie-b)>g&&(ie%=b);var nt=wr(ie>_/4?b-ie:ie,se);return ie>_/4&&(Ke=nt[0],nt[0]=-nt[1],nt[1]=-Ke),nt[0]*=de,nt[1]*=-ve,nt}Yt.invert=function(ie,se){i(ie)>1&&(ie=d(ie)*2-ie),i(se)>1&&(se=d(se)*2-se);var de=d(ie),ve=d(se),Se=-de*ie,Ae=-ve*se,Pe=Ae/Se<1,Ke=Zr(Pe?Ae:Se,Pe?Se:Ae),nt=Ke[0],Ze=Ke[1],at=o(Ze);return Pe&&(nt=-b-nt),[de*(a(v(nt)*at,-v(Ze))+_),ve*k(o(nt)*at)]};function wr(ie,se){if(se===b)return[0,0];var de=v(se),ve=de*de,Se=ve*ve,Ae=1+Se,Pe=1+3*Se,Ke=1-Se,nt=k(1/L(Ae)),Ze=Ke+ve*Ae*nt,at=(1-de)/Ze,yt=L(at),It=at*Ae,Vt=L(It),or=yt*Ke,Mr,Gr;if(ie===0)return[0,-(or+ve*Vt)];var _i=o(se),an=1/_i,hn=2*de*_i,_n=(-3*ve+nt*Pe)*hn,Ln=(-Ze*_i-(1-de)*_n)/(Ze*Ze),ro=.5*Ln/yt,Do=Ke*ro-2*ve*yt*hn,ca=ve*Ae*Ln+at*Pe*hn,ss=-an*hn,Al=-an*ca,Qu=-2*an*Do,Zf=4*ie/_,p0;if(ie>.222*_||se<_/4&&ie>.175*_){if(Mr=(or+ve*L(It*(1+Se)-or*or))/(1+Se),ie>_/4)return[Mr,Mr];var pu=Mr,Hl=.5*Mr;Mr=.5*(Hl+pu),Gr=50;do{var Kc=L(It-Mr*Mr),Kf=Mr*(Qu+ss*Kc)+Al*k(Mr/Vt)-Zf;if(!Kf)break;Kf<0?Hl=Mr:pu=Mr,Mr=.5*(Hl+pu)}while(i(pu-Hl)>g&&--Gr>0)}else{Mr=g,Gr=25;do{var Jf=Mr*Mr,Qf=L(It-Jf),Dh=Qu+ss*Qf,bf=Mr*Dh+Al*k(Mr/Vt)-Zf,v0=Dh+(Al-ss*Jf)/Qf;Mr-=p0=Qf?bf/v0:0}while(i(p0)>g&&--Gr>0)}return[Mr,-or-ve*L(It-Mr*Mr)]}function Zr(ie,se){for(var de=0,ve=1,Se=.5,Ae=50;;){var Pe=Se*Se,Ke=L(Se),nt=k(1/L(1+Pe)),Ze=1-Pe+Se*(1+Pe)*nt,at=(1-Ke)/Ze,yt=L(at),It=at*(1+Pe),Vt=yt*(1-Pe),or=It-ie*ie,Mr=L(or),Gr=se+Vt+Se*Mr;if(i(ve-de)0?de=Se:ve=Se,Se=.5*(de+ve)}if(!Ae)return null;var _i=k(Ke),an=o(_i),hn=1/an,_n=2*Ke*an,Ln=(-3*Se+nt*(1+3*Pe))*_n,ro=(-Ze*an-(1-Ke)*Ln)/(Ze*Ze),Do=.5*ro/yt,ca=(1-Pe)*Do-2*Se*yt*_n,ss=-2*hn*ca,Al=-hn*_n,Qu=-hn*(Se*(1+Pe)*ro+at*(1+3*Pe)*_n);return[_/4*(ie*(ss+Al*Mr)+Qu*k(ie/L(It))),_i]}function ri(){return t.geoProjection(Ar(Yt)).scale(239.75)}function Si(ie,se,de){var ve,Se,Ae;return ie?(ve=sn(ie,de),se?(Se=sn(se,1-de),Ae=Se[1]*Se[1]+de*ve[0]*ve[0]*Se[0]*Se[0],[[ve[0]*Se[2]/Ae,ve[1]*ve[2]*Se[0]*Se[1]/Ae],[ve[1]*Se[1]/Ae,-ve[0]*ve[2]*Se[0]*Se[2]/Ae],[ve[2]*Se[1]*Se[2]/Ae,-de*ve[0]*ve[1]*Se[0]/Ae]]):[[ve[0],0],[ve[1],0],[ve[2],0]]):(Se=sn(se,1-de),[[0,Se[0]/Se[1]],[1/Se[1],0],[Se[2]/Se[1],0]])}function sn(ie,se){var de,ve,Se,Ae,Pe;if(se=1-g)return de=(1-se)/4,ve=F(ie),Ae=P(ie),Se=1/ve,Pe=ve*R(ie),[Ae+de*(Pe-ie)/(ve*ve),Se-de*Ae*Se*(Pe-ie),Se+de*Ae*Se*(Pe+ie),2*n(s(ie))-b+de*(Pe-ie)/ve];var Ke=[1,0,0,0,0,0,0,0,0],nt=[L(se),0,0,0,0,0,0,0,0],Ze=0;for(ve=L(1-se),Pe=1;i(nt[Ze]/Ke[Ze])>g&&Ze<8;)de=Ke[Ze++],nt[Ze]=(de-ve)/2,Ke[Ze]=(de+ve)/2,ve=L(de*ve),Pe*=2;Se=Pe*Ke[Ze]*ie;do Ae=nt[Ze]*v(ve=Se)/Ke[Ze],Se=(k(Ae)+Se)/2;while(--Ze);return[v(Se),Ae=o(Se),Ae/o(Se-ve),Se]}function jn(ie,se,de){var ve=i(ie),Se=i(se),Ae=R(Se);if(ve){var Pe=1/v(ve),Ke=1/(m(ve)*m(ve)),nt=-(Ke+de*(Ae*Ae*Pe*Pe)-1+de),Ze=(de-1)*Ke,at=(-nt+L(nt*nt-4*Ze))/2;return[bn(n(1/L(at)),de)*d(ie),bn(n(L((at/Ke-1)/de)),1-de)*d(se)]}return[0,bn(n(Ae),1-de)*d(se)]}function bn(ie,se){if(!se)return ie;if(se===1)return u(m(ie/2+S));for(var de=1,ve=L(1-se),Se=L(se),Ae=0;i(Se)>g;Ae++){if(ie%_){var Pe=n(ve*m(ie)/de);Pe<0&&(Pe+=_),ie+=Pe+~~(ie/_)*_}else ie+=ie;Se=(de+ve)/2,ve=L(de*ve),Se=((de=Se)-ve)/2}return ie/(h(2,Ae)*de)}function ga(ie,se){var de=(T-1)/(T+1),ve=L(1-de*de),Se=bn(b,ve*ve),Ae=-1,Pe=u(m(_/4+i(se)/2)),Ke=s(Ae*Pe)/L(de),nt=Xn(Ke*o(Ae*ie),Ke*v(Ae*ie)),Ze=jn(nt[0],nt[1],ve*ve);return[-Ze[1],(se>=0?1:-1)*(.5*Se-Ze[0])]}function Xn(ie,se){var de=ie*ie,ve=se+1,Se=1-de-se*se;return[.5*((ie>=0?b:-b)-a(Se,2*ie)),-.25*u(Se*Se+4*de)+.5*u(ve*ve+de)]}function to(ie,se){var de=se[0]*se[0]+se[1]*se[1];return[(ie[0]*se[0]+ie[1]*se[1])/de,(ie[1]*se[0]-ie[0]*se[1])/de]}ga.invert=function(ie,se){var de=(T-1)/(T+1),ve=L(1-de*de),Se=bn(b,ve*ve),Ae=-1,Pe=Si(.5*Se-se,-ie,ve*ve),Ke=to(Pe[0],Pe[1]),nt=a(Ke[1],Ke[0])/Ae;return[nt,2*n(s(.5/Ae*u(de*Ke[0]*Ke[0]+de*Ke[1]*Ke[1])))-b]};function uo(){return t.geoProjection(Ar(ga)).scale(151.496)}function ko(ie){var se=v(ie),de=o(ie),ve=Oo(ie);ve.invert=Oo(-ie);function Se(Ae,Pe){var Ke=ve(Ae,Pe);Ae=Ke[0],Pe=Ke[1];var nt=v(Pe),Ze=o(Pe),at=o(Ae),yt=D(se*nt+de*Ze*at),It=v(yt),Vt=i(It)>g?yt/It:1;return[Vt*de*v(Ae),(i(Ae)>b?Vt:-Vt)*(se*Ze-de*nt*at)]}return Se.invert=function(Ae,Pe){var Ke=L(Ae*Ae+Pe*Pe),nt=-v(Ke),Ze=o(Ke),at=Ke*Ze,yt=-Pe*nt,It=Ke*se,Vt=L(at*at+yt*yt-It*It),or=a(at*It+yt*Vt,yt*It-at*Vt),Mr=(Ke>b?-1:1)*a(Ae*nt,Ke*o(or)*Ze+Pe*v(or)*nt);return ve.invert(Mr,or)},Se}function Oo(ie){var se=v(ie),de=o(ie);return function(ve,Se){var Ae=o(Se),Pe=o(ve)*Ae,Ke=v(ve)*Ae,nt=v(Se);return[a(Ke,Pe*de-nt*se),k(nt*de+Pe*se)]}}function gs(){var ie=0,se=t.geoProjectionMutator(ko),de=se(ie),ve=de.rotate,Se=de.stream,Ae=t.geoCircle();return de.parallel=function(Pe){if(!arguments.length)return ie*E;var Ke=de.rotate();return se(ie=Pe*M).rotate(Ke)},de.rotate=function(Pe){return arguments.length?(ve.call(de,[Pe[0],Pe[1]-ie*E]),Ae.center([-Pe[0],-Pe[1]]),de):(Pe=ve.call(de),Pe[1]+=ie*E,Pe)},de.stream=function(Pe){return Pe=Se(Pe),Pe.sphere=function(){Pe.polygonStart();var Ke=.01,nt=Ae.radius(90-Ke)().coordinates[0],Ze=nt.length-1,at=-1,yt;for(Pe.lineStart();++at=0;)Pe.point((yt=nt[at])[0],yt[1]);Pe.lineEnd(),Pe.polygonEnd()},Pe},de.scale(79.4187).parallel(45).clipAngle(180-.001)}var ns=3,Co=k(1-1/ns)*E,as=Gt(0);function No(ie){var se=Co*M,de=Ge(_,se)[0]-Ge(-_,se)[0],ve=as(0,se)[1],Se=Ge(0,se)[1],Ae=A-Se,Pe=y/ie,Ke=4/y,nt=ve+Ae*Ae*4/y;function Ze(at,yt){var It,Vt=i(yt);if(Vt>se){var or=f(ie-1,c(0,l((at+_)/Pe)));at+=_*(ie-1)/ie-or*Pe,It=Ge(at,Vt),It[0]=It[0]*y/de-y*(ie-1)/(2*ie)+or*y/ie,It[1]=ve+(It[1]-Se)*4*Ae/y,yt<0&&(It[1]=-It[1])}else It=as(at,yt);return It[0]*=Ke,It[1]/=nt,It}return Ze.invert=function(at,yt){at/=Ke,yt*=nt;var It=i(yt);if(It>ve){var Vt=f(ie-1,c(0,l((at+_)/Pe)));at=(at+_*(ie-1)/ie-Vt*Pe)*de/y;var or=Ge.invert(at,.25*(It-ve)*y/Ae+Se);return or[0]-=_*(ie-1)/ie-Vt*Pe,yt<0&&(or[1]=-or[1]),or}return as.invert(at,yt)},Ze}function Go(ie,se){return[ie,se&1?90-g:Co]}function co(ie,se){return[ie,se&1?-90+g:-Co]}function zn(ie){return[ie[0]*(1-g),ie[1]]}function xa(ie){var se=[].concat(r.range(-180,180+ie/2,ie).map(Go),r.range(180,-180-ie/2,-ie).map(co));return{type:"Polygon",coordinates:[ie===180?se.map(zn):se]}}function ms(){var ie=4,se=t.geoProjectionMutator(No),de=se(ie),ve=de.stream;return de.lobes=function(Se){return arguments.length?se(ie=+Se):ie},de.stream=function(Se){var Ae=de.rotate(),Pe=ve(Se),Ke=(de.rotate([0,0]),ve(Se));return de.rotate(Ae),Pe.sphere=function(){t.geoStream(xa(180/ie),Ke)},Pe},de.scale(239.75)}function Js(ie){var se=1+ie,de=v(1/se),ve=k(de),Se=2*L(_/(Ae=_+4*ve*se)),Ae,Pe=.5*Se*(se+L(ie*(2+ie))),Ke=ie*ie,nt=se*se;function Ze(at,yt){var It=1-v(yt),Vt,or;if(It&&It<2){var Mr=b-yt,Gr=25,_i;do{var an=v(Mr),hn=o(Mr),_n=ve+a(an,se-hn),Ln=1+nt-2*se*hn;Mr-=_i=(Mr-Ke*ve-se*an+Ln*_n-.5*It*Ae)/(2*se*an*_n)}while(i(_i)>w&&--Gr>0);Vt=Se*L(Ln),or=at*_n/_}else Vt=Se*(ie+It),or=at*ve/_;return[Vt*v(or),Pe-Vt*o(or)]}return Ze.invert=function(at,yt){var It=at*at+(yt-=Pe)*yt,Vt=(1+nt-It/(Se*Se))/(2*se),or=D(Vt),Mr=v(or),Gr=ve+a(Mr,se-Vt);return[k(at/L(It))*_/Gr,k(1-2*(or-Ke*ve-se*Mr+(1+nt-2*se*Vt)*Gr)/Ae)]},Ze}function Qs(){var ie=1,se=t.geoProjectionMutator(Js),de=se(ie);return de.ratio=function(ve){return arguments.length?se(ie=+ve):ie},de.scale(167.774).center([0,18.67])}var Vl=.7109889596207567,el=.0528035274542;function cu(ie,se){return se>-Vl?(ie=ee(ie,se),ie[1]+=el,ie):Ee(ie,se)}cu.invert=function(ie,se){return se>-Vl?ee.invert(ie,se-el):Ee.invert(ie,se)};function Au(){return t.geoProjection(cu).rotate([-20,-55]).scale(164.263).center([0,-5.4036])}function Mu(ie,se){return i(se)>Vl?(ie=ee(ie,se),ie[1]-=se>0?el:-el,ie):Ee(ie,se)}Mu.invert=function(ie,se){return i(se)>Vl?ee.invert(ie,se+(se>0?el:-el)):Ee.invert(ie,se)};function mc(){return t.geoProjection(Mu).scale(152.63)}function Gl(ie,se,de,ve){var Se=L(4*_/(2*de+(1+ie-se/2)*v(2*de)+(ie+se)/2*v(4*de)+se/2*v(6*de))),Ae=L(ve*v(de)*L((1+ie*o(2*de)+se*o(4*de))/(1+ie+se))),Pe=de*nt(1);function Ke(yt){return L(1+ie*o(2*yt)+se*o(4*yt))}function nt(yt){var It=yt*de;return(2*It+(1+ie-se/2)*v(2*It)+(ie+se)/2*v(4*It)+se/2*v(6*It))/de}function Ze(yt){return Ke(yt)*v(yt)}var at=function(yt,It){var Vt=de*_e(nt,Pe*v(It)/de,It/_);isNaN(Vt)&&(Vt=de*d(It));var or=Se*Ke(Vt);return[or*Ae*yt/_*o(Vt),or/Ae*v(Vt)]};return at.invert=function(yt,It){var Vt=_e(Ze,It*Ae/Se);return[yt*_/(o(Vt)*Se*Ae*Ke(Vt)),k(de*nt(Vt/de)/Pe)]},de===0&&(Se=L(ve/_),at=function(yt,It){return[yt*Se,v(It)/Se]},at.invert=function(yt,It){return[yt/Se,k(It*Se)]}),at}function Xa(){var ie=1,se=0,de=45*M,ve=2,Se=t.geoProjectionMutator(Gl),Ae=Se(ie,se,de,ve);return Ae.a=function(Pe){return arguments.length?Se(ie=+Pe,se,de,ve):ie},Ae.b=function(Pe){return arguments.length?Se(ie,se=+Pe,de,ve):se},Ae.psiMax=function(Pe){return arguments.length?Se(ie,se,de=+Pe*M,ve):de*E},Ae.ratio=function(Pe){return arguments.length?Se(ie,se,de,ve=+Pe):ve},Ae.scale(180.739)}function Su(ie,se,de,ve,Se,Ae,Pe,Ke,nt,Ze,at){if(at.nanEncountered)return NaN;var yt,It,Vt,or,Mr,Gr,_i,an,hn,_n;if(yt=de-se,It=ie(se+yt*.25),Vt=ie(de-yt*.25),isNaN(It)){at.nanEncountered=!0;return}if(isNaN(Vt)){at.nanEncountered=!0;return}return or=yt*(ve+4*It+Se)/12,Mr=yt*(Se+4*Vt+Ae)/12,Gr=or+Mr,_n=(Gr-Pe)/15,Ze>nt?(at.maxDepthCount++,Gr+_n):Math.abs(_n)>1;do nt[Gr]>Vt?Mr=Gr:or=Gr,Gr=or+Mr>>1;while(Gr>or);var _i=nt[Gr+1]-nt[Gr];return _i&&(_i=(Vt-nt[Gr+1])/_i),(Gr+1+_i)/Pe}var yt=2*at(1)/_*Ae/de,It=function(Vt,or){var Mr=at(i(v(or))),Gr=ve(Mr)*Vt;return Mr/=yt,[Gr,or>=0?Mr:-Mr]};return It.invert=function(Vt,or){var Mr;return or*=yt,i(or)<1&&(Mr=d(or)*k(Se(i(or))*Ae)),[Vt/ve(i(or)),Mr]},It}function fu(){var ie=0,se=2.5,de=1.183136,ve=t.geoProjectionMutator(ks),Se=ve(ie,se,de);return Se.alpha=function(Ae){return arguments.length?ve(ie=+Ae,se,de):ie},Se.k=function(Ae){return arguments.length?ve(ie,se=+Ae,de):se},Se.gamma=function(Ae){return arguments.length?ve(ie,se,de=+Ae):de},Se.scale(152.63)}function yh(ie,se){return i(ie[0]-se[0])=0;--nt)de=ie[1][nt],ve=de[0][0],Se=de[0][1],Ae=de[1][1],Pe=de[2][0],Ke=de[2][1],se.push(_o([[Pe-g,Ke-g],[Pe-g,Ae+g],[ve+g,Ae+g],[ve+g,Se-g]],30));return{type:"Polygon",coordinates:[r.merge(se)]}}function Jo(ie,se,de){var ve,Se;function Ae(nt,Ze){for(var at=Ze<0?-1:1,yt=se[+(Ze<0)],It=0,Vt=yt.length-1;Ityt[It][2][0];++It);var or=ie(nt-yt[It][1][0],Ze);return or[0]+=ie(yt[It][1][0],at*Ze>at*yt[It][0][1]?yt[It][0][1]:Ze)[0],or}de?Ae.invert=de(Ae):ie.invert&&(Ae.invert=function(nt,Ze){for(var at=Se[+(Ze<0)],yt=se[+(Ze<0)],It=0,Vt=at.length;Itor&&(Mr=Vt,Vt=or,or=Mr),[[yt,Vt],[It,or]]})}),Pe):se.map(function(Ze){return Ze.map(function(at){return[[at[0][0]*E,at[0][1]*E],[at[1][0]*E,at[1][1]*E],[at[2][0]*E,at[2][1]*E]]})})},se!=null&&Pe.lobes(se),Pe}var du=[[[[-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 zv(){return Jo(pe,du).scale(160.857)}var jc=[[[[-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 s0(){return Jo(Mu,jc).scale(152.63)}var Hf=[[[[-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 xh(){return Jo(ee,Hf).scale(169.529)}var jf=[[[[-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 l0(){return Jo(ee,jf).scale(169.529).rotate([20,0])}var Bv=[[[[-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 bh(){return Jo(cu,Bv,he).rotate([-20,-55]).scale(164.263).center([0,-5.4036])}var gp=[[[[-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 u0(){return Jo(Ee,gp).scale(152.63).rotate([-20,0])}function Q0(ie,se){return[3/y*ie*L(_*_/3-se*se),se]}Q0.invert=function(ie,se){return[y/3*ie/L(_*_/3-se*se),se]};function ed(){return t.geoProjection(Q0).scale(158.837)}function qv(ie){function se(de,ve){if(i(i(ve)-b)2)return null;de/=2,ve/=2;var Ae=de*de,Pe=ve*ve,Ke=2*ve/(1+Ae+Pe);return Ke=h((1+Ke)/(1-Ke),1/ie),[a(2*de,1-Ae-Pe)/ie,k((Ke-1)/(Ke+1))]},se}function Ov(){var ie=.5,se=t.geoProjectionMutator(qv),de=se(ie);return de.spacing=function(ve){return arguments.length?se(ie=+ve):ie},de.scale(124.75)}var $c=_/T;function mp(ie,se){return[ie*(1+L(o(se)))/2,se/(o(se/2)*o(ie/6))]}mp.invert=function(ie,se){var de=i(ie),ve=i(se),Se=g,Ae=b;ve<$c?Ae*=ve/$c:Se+=6*D($c/ve);for(var Pe=0;Pe<25;Pe++){var Ke=v(Ae),nt=L(o(Ae)),Ze=v(Ae/2),at=o(Ae/2),yt=v(Se/6),It=o(Se/6),Vt=.5*Se*(1+nt)-de,or=Ae/(at*It)-ve,Mr=nt?-.25*Se*Ke/nt:0,Gr=.5*(1+nt),_i=(1+.5*Ae*Ze/at)/(at*It),an=Ae/at*(yt/6)/(It*It),hn=Mr*an-_i*Gr,_n=(Vt*an-or*Gr)/hn,Ln=(or*Mr-Vt*_i)/hn;if(Ae-=_n,Se-=Ln,i(_n)g||i(Gr)>g)&&--Se>0);return Se&&[de,ve]};function Cs(){return t.geoProjection(Xu).scale(139.98)}function Ho(ie,se){return[v(ie)/o(se),m(se)*o(ie)]}Ho.invert=function(ie,se){var de=ie*ie,ve=se*se,Se=ve+1,Ae=de+Se,Pe=ie?x*L((Ae-L(Ae*Ae-4*de))/de):1/L(Se);return[k(ie*Pe),d(se)*D(Pe)]};function Eu(){return t.geoProjection(Ho).scale(144.049).clipAngle(90-.001)}function td(ie){var se=o(ie),de=m(S+ie/2);function ve(Se,Ae){var Pe=Ae-ie,Ke=i(Pe)=0;)at=ie[Ze],yt=at[0]+Ke*(Vt=yt)-nt*It,It=at[1]+Ke*It+nt*Vt;return yt=Ke*(Vt=yt)-nt*It,It=Ke*It+nt*Vt,[yt,It]}return de.invert=function(ve,Se){var Ae=20,Pe=ve,Ke=Se;do{for(var nt=se,Ze=ie[nt],at=Ze[0],yt=Ze[1],It=0,Vt=0,or;--nt>=0;)Ze=ie[nt],It=at+Pe*(or=It)-Ke*Vt,Vt=yt+Pe*Vt+Ke*or,at=Ze[0]+Pe*(or=at)-Ke*yt,yt=Ze[1]+Pe*yt+Ke*or;It=at+Pe*(or=It)-Ke*Vt,Vt=yt+Pe*Vt+Ke*or,at=Pe*(or=at)-Ke*yt-ve,yt=Pe*yt+Ke*or-Se;var Mr=It*It+Vt*Vt,Gr,_i;Pe-=Gr=(at*It+yt*Vt)/Mr,Ke-=_i=(yt*It-at*Vt)/Mr}while(i(Gr)+i(_i)>g*g&&--Ae>0);if(Ae){var an=L(Pe*Pe+Ke*Ke),hn=2*n(an*.5),_n=v(hn);return[a(Pe*_n,an*o(hn)),an?k(Ke*_n/an):0]}},de}var ey=[[.9972523,0],[.0052513,-.0041175],[.0074606,.0048125],[-.0153783,-.1968253],[.0636871,-.1408027],[.3660976,-.2937382]],zx=[[.98879,0],[0,0],[-.050909,0],[0,0],[.075528,0]],Th=[[.984299,0],[.0211642,.0037608],[-.1036018,-.0575102],[-.0329095,-.0320119],[.0499471,.1223335],[.026046,.0899805],[7388e-7,-.1435792],[.0075848,-.1334108],[-.0216473,.0776645],[-.0225161,.0853673]],Us=[[.9245,0],[0,0],[.01943,0]],Uv=[[.721316,0],[0,0],[-.00881625,-.00617325]];function Vv(){return gf(ey,[152,-64]).scale(1400).center([-160.908,62.4864]).clipAngle(30).angle(7.8)}function Ah(){return gf(zx,[95,-38]).scale(1e3).clipAngle(55).center([-96.5563,38.8675])}function xg(){return gf(Th,[120,-45]).scale(359.513).clipAngle(55).center([-117.474,53.0628])}function rd(){return gf(Us,[-20,-18]).scale(209.091).center([20,16.7214]).clipAngle(82)}function yp(){return gf(Uv,[165,10]).scale(250).clipAngle(130).center([-165,-10])}function gf(ie,se){var de=t.geoProjection(yg(ie)).rotate(se).clipAngle(90),ve=t.geoRotation(se),Se=de.center;return delete de.rotate,de.center=function(Ae){return arguments.length?Se(ve(Ae)):ve.invert(Se())},de}var Gv=L(6),xp=L(7);function id(ie,se){var de=k(7*v(se)/(3*Gv));return[Gv*ie*(2*o(2*de/3)-1)/xp,9*v(de/3)/xp]}id.invert=function(ie,se){var de=3*k(se*xp/9);return[ie*xp/(Gv*(2*o(2*de/3)-1)),k(v(de)*3*Gv/7)]};function bg(){return t.geoProjection(id).scale(164.859)}function _g(ie,se){for(var de=(1+x)*v(se),ve=se,Se=0,Ae;Se<25&&(ve-=Ae=(v(ve/2)+v(ve)-de)/(.5*o(ve/2)+o(ve)),!(i(Ae)w&&--ve>0);return Ae=de*de,Pe=Ae*Ae,Ke=Ae*Pe,[ie/(.84719-.13063*Ae+Ke*Ke*(-.04515+.05494*Ae-.02326*Pe+.00331*Ke)),de]};function bp(){return t.geoProjection(Wf).scale(175.295)}function yc(ie,se){return[ie*(1+o(se))/2,2*(se-m(se/2))]}yc.invert=function(ie,se){for(var de=se/2,ve=0,Se=1/0;ve<10&&i(Se)>g;++ve){var Ae=o(se/2);se-=Se=(se-m(se/2)-de)/(1-.5/(Ae*Ae))}return[2*ie/(1+o(se)),se]};function nd(){return t.geoProjection(yc).scale(152.63)}var Yf=[[[[-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 wg(){return Jo(ue(1/0),Yf).rotate([20,0]).scale(152.63)}function jv(ie,se){var de=v(se),ve=o(se),Se=d(ie);if(ie===0||i(se)===b)return[0,se];if(se===0)return[ie,0];if(i(ie)===b)return[ie*ve,b*de];var Ae=_/(2*ie)-2*ie/_,Pe=2*se/_,Ke=(1-Pe*Pe)/(de-Pe),nt=Ae*Ae,Ze=Ke*Ke,at=1+nt/Ze,yt=1+Ze/nt,It=(Ae*de/Ke-Ae/2)/at,Vt=(Ze*de/nt+Ke/2)/yt,or=It*It+ve*ve/at,Mr=Vt*Vt-(Ze*de*de/nt+Ke*de-1)/yt;return[b*(It+L(or)*Se),b*(Vt+L(Mr<0?0:Mr)*d(-se*Ae)*Se)]}jv.invert=function(ie,se){ie/=b,se/=b;var de=ie*ie,ve=se*se,Se=de+ve,Ae=_*_;return[ie?(Se-1+L((1-Se)*(1-Se)+4*de))/(2*ie)*b:0,_e(function(Pe){return Se*(_*v(Pe)-2*Pe)*_+4*Pe*Pe*(se-v(Pe))+2*_*Pe-Ae*se},0)]};function Tg(){return t.geoProjection(jv).scale(127.267)}var $v=1.0148,_p=.23185,Wv=-.14499,Yv=.02406,ry=$v,Zu=5*_p,Wc=7*Wv,Ag=9*Yv,ku=1.790857183;function wp(ie,se){var de=se*se;return[ie,se*($v+de*de*(_p+de*(Wv+Yv*de)))]}wp.invert=function(ie,se){se>ku?se=ku:se<-ku&&(se=-ku);var de=se,ve;do{var Se=de*de;de-=ve=(de*($v+Se*Se*(_p+Se*(Wv+Yv*Se)))-se)/(ry+Se*Se*(Zu+Se*(Wc+Ag*Se)))}while(i(ve)>g);return[ie,de]};function f0(){return t.geoProjection(wp).scale(139.319)}function Mh(ie,se){if(i(se)g&&--Se>0);return Pe=m(ve),[(i(se)=0;)if(ve=se[Ke],de[0]===ve[0]&&de[1]===ve[1]){if(Ae)return[Ae,de];Ae=de}}}function Tp(ie){for(var se=ie.length,de=[],ve=ie[se-1],Se=0;Se0?[-ve[0],0]:[180-ve[0],180])};var se=Mp.map(function(de){return{face:de,project:ie(de)}});return[-1,0,0,1,0,1,4,5].forEach(function(de,ve){var Se=se[de];Se&&(Se.children||(Se.children=[])).push(se[ve])}),ad(se[0],function(de,ve){return se[de<-_/2?ve<0?6:4:de<0?ve<0?2:0:de<_/2?ve<0?3:1:ve<0?7:5]}).angle(-30).scale(121.906).center([0,48.5904])}function Ep(ie){ie=ie||function(Pe){var Ke=Pe.length===6?t.geoCentroid({type:"MultiPoint",coordinates:Pe}):Pe[0];return t.geoGnomonic().scale(1).translate([0,0]).rotate([-Ke[0],-Ke[1]])};var se=Mp.map(function(Pe){for(var Ke=Pe.map(sd),nt=Ke.length,Ze=Ke[nt-1],at,yt=[],It=0;Itve^Vt>ve&&de<(It-Ze)*(ve-at)/(Vt-at)+Ze&&(Se=!Se)}return Se}function Zv(ie,se){var de=se.stream,ve;if(!de)throw new Error("invalid projection");switch(ie&&ie.type){case"Feature":ve=uy;break;case"FeatureCollection":ve=ly;break;default:ve=Kv;break}return ve(ie,de)}function ly(ie,se){return{type:"FeatureCollection",features:ie.features.map(function(de){return uy(de,se)})}}function uy(ie,se){return{type:"Feature",id:ie.id,properties:ie.properties,geometry:Kv(ie.geometry,se)}}function Eg(ie,se){return{type:"GeometryCollection",geometries:ie.geometries.map(function(de){return Kv(de,se)})}}function Kv(ie,se){if(!ie)return null;if(ie.type==="GeometryCollection")return Eg(ie,se);var de;switch(ie.type){case"Point":de=Dp;break;case"MultiPoint":de=Dp;break;case"LineString":de=kg;break;case"MultiLineString":de=kg;break;case"Polygon":de=Fp;break;case"MultiPolygon":de=Fp;break;case"Sphere":de=Fp;break;default:return null}return t.geoStream(ie,se(de)),de.result()}var hl=[],Yc=[],Dp={point:function(ie,se){hl.push([ie,se])},result:function(){var ie=hl.length?hl.length<2?{type:"Point",coordinates:hl[0]}:{type:"MultiPoint",coordinates:hl}:null;return hl=[],ie}},kg={lineStart:ld,point:function(ie,se){hl.push([ie,se])},lineEnd:function(){hl.length&&(Yc.push(hl),hl=[])},result:function(){var ie=Yc.length?Yc.length<2?{type:"LineString",coordinates:Yc[0]}:{type:"MultiLineString",coordinates:Yc}:null;return Yc=[],ie}},Fp={polygonStart:ld,lineStart:ld,point:function(ie,se){hl.push([ie,se])},lineEnd:function(){var ie=hl.length;if(ie){do hl.push(hl[0].slice());while(++ie<4);Yc.push(hl),hl=[]}},polygonEnd:ld,result:function(){if(!Yc.length)return null;var ie=[],se=[];return Yc.forEach(function(de){Cp(de)?ie.push([de]):se.push(de)}),se.forEach(function(de){var ve=de[0];ie.some(function(Se){if(Sg(Se[0],ve))return Se.push(de),!0})||ie.push([de])}),Yc=[],ie.length?ie.length>1?{type:"MultiPolygon",coordinates:ie}:{type:"Polygon",coordinates:ie[0]}:null}};function Lp(ie){var se=ie(b,0)[0]-ie(-b,0)[0];function de(ve,Se){var Ae=i(ve)0?ve-_:ve+_,Se),Ke=(Pe[0]-Pe[1])*x,nt=(Pe[0]+Pe[1])*x;if(Ae)return[Ke,nt];var Ze=se*x,at=Ke>0^nt>0?-1:1;return[at*Ke-d(nt)*Ze,at*nt-d(Ke)*Ze]}return ie.invert&&(de.invert=function(ve,Se){var Ae=(ve+Se)*x,Pe=(Se-ve)*x,Ke=i(Ae)<.5*se&&i(Pe)<.5*se;if(!Ke){var nt=se*x,Ze=Ae>0^Pe>0?-1:1,at=-Ze*ve+(Pe>0?1:-1)*nt,yt=-Ze*Se+(Ae>0?1:-1)*nt;Ae=(-at-yt)*x,Pe=(at-yt)*x}var It=ie.invert(Ae,Pe);return Ke||(It[0]+=Ae>0?_:-_),It}),t.geoProjection(de).rotate([-90,-90,45]).clipAngle(180-.001)}function Te(){return Lp(Yt).scale(176.423)}function qe(){return Lp(ga).scale(111.48)}function rt(ie,se){if(!(0<=(se=+se)&&se<=20))throw new Error("invalid digits");function de(Ze){var at=Ze.length,yt=2,It=new Array(at);for(It[0]=+Ze[0].toFixed(se),It[1]=+Ze[1].toFixed(se);yt2||Vt[0]!=at[0]||Vt[1]!=at[1])&&(yt.push(Vt),at=Vt)}return yt.length===1&&Ze.length>1&&yt.push(de(Ze[Ze.length-1])),yt}function Ae(Ze){return Ze.map(Se)}function Pe(Ze){if(Ze==null)return Ze;var at;switch(Ze.type){case"GeometryCollection":at={type:"GeometryCollection",geometries:Ze.geometries.map(Pe)};break;case"Point":at={type:"Point",coordinates:de(Ze.coordinates)};break;case"MultiPoint":at={type:Ze.type,coordinates:ve(Ze.coordinates)};break;case"LineString":at={type:Ze.type,coordinates:Se(Ze.coordinates)};break;case"MultiLineString":case"Polygon":at={type:Ze.type,coordinates:Ae(Ze.coordinates)};break;case"MultiPolygon":at={type:"MultiPolygon",coordinates:Ze.coordinates.map(Ae)};break;default:return Ze}return Ze.bbox!=null&&(at.bbox=Ze.bbox),at}function Ke(Ze){var at={type:"Feature",properties:Ze.properties,geometry:Pe(Ze.geometry)};return Ze.id!=null&&(at.id=Ze.id),Ze.bbox!=null&&(at.bbox=Ze.bbox),at}if(ie!=null)switch(ie.type){case"Feature":return Ke(ie);case"FeatureCollection":{var nt={type:"FeatureCollection",features:ie.features.map(Ke)};return ie.bbox!=null&&(nt.bbox=ie.bbox),nt}default:return Pe(ie)}return ie}function Ye(ie){var se=v(ie);function de(ve,Se){var Ae=se?m(ve*se/2)/se:ve/2;if(!Se)return[2*Ae,-ie];var Pe=2*n(Ae*v(Se)),Ke=1/m(Se);return[v(Pe)*Ke,Se+(1-o(Pe))*Ke-ie]}return de.invert=function(ve,Se){if(i(Se+=ie)g&&--Ke>0);var It=ve*(Ze=m(Pe)),Vt=m(i(Se)0?b:-b)*(nt+Se*(at-Pe)/2+Se*Se*(at-2*nt+Pe)/2)]}Jt.invert=function(ie,se){var de=se/b,ve=de*90,Se=f(18,i(ve/5)),Ae=c(0,l(Se));do{var Pe=Ht[Ae][1],Ke=Ht[Ae+1][1],nt=Ht[f(19,Ae+2)][1],Ze=nt-Pe,at=nt-2*Ke+Pe,yt=2*(i(de)-Ke)/Ze,It=at/Ze,Vt=yt*(1-It*yt*(1-2*It*yt));if(Vt>=0||Ae===1){ve=(se>=0?5:-5)*(Vt+Se);var or=50,Mr;do Se=f(18,i(ve)/5),Ae=l(Se),Vt=Se-Ae,Pe=Ht[Ae][1],Ke=Ht[Ae+1][1],nt=Ht[f(19,Ae+2)][1],ve-=(Mr=(se>=0?b:-b)*(Ke+Vt*(nt-Pe)/2+Vt*Vt*(nt-2*Ke+Pe)/2)-se)*E;while(i(Mr)>w&&--or>0);break}}while(--Ae>=0);var Gr=Ht[Ae][0],_i=Ht[Ae+1][0],an=Ht[f(19,Ae+2)][0];return[ie/(_i+Vt*(an-Gr)/2+Vt*Vt*(an-2*_i+Gr)/2),ve*M]};function fr(){return t.geoProjection(Jt).scale(152.63)}function yr(ie){function se(de,ve){var Se=o(ve),Ae=(ie-1)/(ie-Se*o(de));return[Ae*Se*v(de),Ae*v(ve)]}return se.invert=function(de,ve){var Se=de*de+ve*ve,Ae=L(Se),Pe=(ie-L(1-Se*(ie+1)/(ie-1)))/((ie-1)/Ae+Ae/(ie-1));return[a(de*Pe,Ae*L(1-Pe*Pe)),Ae?k(ve*Pe/Ae):0]},se}function Ir(ie,se){var de=yr(ie);if(!se)return de;var ve=o(se),Se=v(se);function Ae(Pe,Ke){var nt=de(Pe,Ke),Ze=nt[1],at=Ze*Se/(ie-1)+ve;return[nt[0]*ve/at,Ze/at]}return Ae.invert=function(Pe,Ke){var nt=(ie-1)/(ie-1-Ke*Se);return de.invert(nt*Pe,nt*Ke*ve)},Ae}function ir(){var ie=2,se=0,de=t.geoProjectionMutator(Ir),ve=de(ie,se);return ve.distance=function(Se){return arguments.length?de(ie=+Se,se):ie},ve.tilt=function(Se){return arguments.length?de(ie,se=Se*M):se*E},ve.scale(432.147).clipAngle(D(1/ie)*E-1e-6)}var hr=1e-4,vr=1e4,Fr=-180,jr=Fr+hr,qi=180,Di=qi-hr,Hi=-90,Ji=Hi+hr,Xr=90,oi=Xr-hr;function ln(ie){return ie.length>0}function Cn(ie){return Math.floor(ie*vr)/vr}function ba(ie){return ie===Hi||ie===Xr?[0,ie]:[Fr,Cn(ie)]}function Za(ie){var se=ie[0],de=ie[1],ve=!1;return se<=jr?(se=Fr,ve=!0):se>=Di&&(se=qi,ve=!0),de<=Ji?(de=Hi,ve=!0):de>=oi&&(de=Xr,ve=!0),ve?[se,de]:ie}function Pa(ie){return ie.map(Za)}function wo(ie,se,de){for(var ve=0,Se=ie.length;ve=Di||at<=Ji||at>=oi){Ae[Pe]=Za(nt);for(var yt=Pe+1;ytjr&&VtJi&&or=Ke)break;de.push({index:-1,polygon:se,ring:Ae=Ae.slice(yt-1)}),Ae[0]=ba(Ae[0][1]),Pe=-1,Ke=Ae.length}}}}function ua(ie){var se,de=ie.length,ve={},Se={},Ae,Pe,Ke,nt,Ze;for(se=0;se0?_-Ke:Ke)*E],Ze=t.geoProjection(ie(Pe)).rotate(nt),at=t.geoRotation(nt),yt=Ze.center;return delete Ze.rotate,Ze.center=function(It){return arguments.length?yt(at(It)):at.invert(yt())},Ze.clipAngle(90)}function Tl(ie){var se=o(ie);function de(ve,Se){var Ae=t.geoGnomonicRaw(ve,Se);return Ae[0]*=se,Ae}return de.invert=function(ve,Se){return t.geoGnomonicRaw.invert(ve/se,Se)},de}function Cu(){return xf([-158,21.5],[-77,39]).clipAngle(60).scale(400)}function xf(ie,se){return Ds(Tl,ie,se)}function Xc(ie){if(!(ie*=2))return t.geoAzimuthalEquidistantRaw;var se=-ie/2,de=-se,ve=ie*ie,Se=m(de),Ae=.5/v(de);function Pe(Ke,nt){var Ze=D(o(nt)*o(Ke-se)),at=D(o(nt)*o(Ke-de)),yt=nt<0?-1:1;return Ze*=Ze,at*=at,[(Ze-at)/(2*ie),yt*L(4*ve*at-(ve-Ze+at)*(ve-Ze+at))/(2*ie)]}return Pe.invert=function(Ke,nt){var Ze=nt*nt,at=o(L(Ze+(It=Ke+se)*It)),yt=o(L(Ze+(It=Ke+de)*It)),It,Vt;return[a(Vt=at-yt,It=(at+yt)*Se),(nt<0?-1:1)*D(L(It*It+Vt*Vt)*Ae)]},Pe}function Xf(){return Ju([-158,21.5],[-77,39]).clipAngle(130).scale(122.571)}function Ju(ie,se){return Ds(Xc,ie,se)}function Eh(ie,se){if(i(se)g&&--Ke>0);return[d(ie)*(L(Se*Se+4)+Se)*_/4,b*Pe]};function Zc(){return t.geoProjection(Qv).scale(127.16)}function cy(ie,se,de,ve,Se){function Ae(Pe,Ke){var nt=de*v(ve*Ke),Ze=L(1-nt*nt),at=L(2/(1+Ze*o(Pe*=Se)));return[ie*Ze*at*v(Pe),se*nt*at]}return Ae.invert=function(Pe,Ke){var nt=Pe/ie,Ze=Ke/se,at=L(nt*nt+Ze*Ze),yt=2*k(at/2);return[a(Pe*m(yt),ie*at)/Se,at&&k(Ke*v(yt)/(se*de*at))/ve]},Ae}function e1(ie,se,de,ve){var Se=_/3;ie=c(ie,g),se=c(se,g),ie=f(ie,b),se=f(se,_-g),de=c(de,0),de=f(de,100-g),ve=c(ve,g);var Ae=de/100+1,Pe=ve/100,Ke=D(Ae*o(Se))/Se,nt=v(ie)/v(Ke*b),Ze=se/_,at=L(Pe*v(ie/2)/v(se/2)),yt=at/L(Ze*nt*Ke),It=1/(at*L(Ze*nt*Ke));return cy(yt,It,nt,Ke,Ze)}function Dg(){var ie=65*M,se=60*M,de=20,ve=200,Se=t.geoProjectionMutator(e1),Ae=Se(ie,se,de,ve);return Ae.poleline=function(Pe){return arguments.length?Se(ie=+Pe*M,se,de,ve):ie*E},Ae.parallels=function(Pe){return arguments.length?Se(ie,se=+Pe*M,de,ve):se*E},Ae.inflation=function(Pe){return arguments.length?Se(ie,se,de=+Pe,ve):de},Ae.ratio=function(Pe){return arguments.length?Se(ie,se,de,ve=+Pe):ve},Ae.scale(163.775)}function t1(){return Dg().poleline(65).parallels(60).inflation(0).ratio(200).scale(172.633)}var Ch=4*_+3*L(3),Fg=2*L(2*_*L(3)/Ch),Ip=ce(Fg*L(3)/_,Fg,Ch/6);function Rp(){return t.geoProjection(Ip).scale(176.84)}function ud(ie,se){return[ie*L(1-3*se*se/(_*_)),se]}ud.invert=function(ie,se){return[ie/L(1-3*se*se/(_*_)),se]};function zp(){return t.geoProjection(ud).scale(152.63)}function cd(ie,se){var de=o(se),ve=o(ie)*de,Se=1-ve,Ae=o(ie=a(v(ie)*de,-v(se))),Pe=v(ie);return de=L(1-ve*ve),[Pe*de-Ae*Se,-Ae*de-Pe*Se]}cd.invert=function(ie,se){var de=(ie*ie+se*se)/-2,ve=L(-de*(2+de)),Se=se*de+ie*ve,Ae=ie*de-se*ve,Pe=L(Ae*Ae+Se*Se);return[a(ve*Se,Pe*(1+de)),Pe?-k(ve*Ae/Pe):0]};function r1(){return t.geoProjection(cd).rotate([0,-90,45]).scale(124.75).clipAngle(180-.001)}function Lg(ie,se){var de=Y(ie,se);return[(de[0]+ie/b)/2,(de[1]+se)/2]}Lg.invert=function(ie,se){var de=ie,ve=se,Se=25;do{var Ae=o(ve),Pe=v(ve),Ke=v(2*ve),nt=Pe*Pe,Ze=Ae*Ae,at=v(de),yt=o(de/2),It=v(de/2),Vt=It*It,or=1-Ze*yt*yt,Mr=or?D(Ae*yt)*L(Gr=1/or):Gr=0,Gr,_i=.5*(2*Mr*Ae*It+de/b)-ie,an=.5*(Mr*Pe+ve)-se,hn=.5*Gr*(Ze*Vt+Mr*Ae*yt*nt)+.5/b,_n=Gr*(at*Ke/4-Mr*Pe*It),Ln=.125*Gr*(Ke*It-Mr*Pe*Ze*at),ro=.5*Gr*(nt*yt+Mr*Vt*Ae)+.5,Do=_n*Ln-ro*hn,ca=(an*_n-_i*ro)/Do,ss=(_i*Ln-an*hn)/Do;de-=ca,ve-=ss}while((i(ca)>g||i(ss)>g)&&--Se>0);return[de,ve]};function bc(){return t.geoProjection(Lg).scale(158.837)}e.geoNaturalEarth=t.geoNaturalEarth1,e.geoNaturalEarthRaw=t.geoNaturalEarth1Raw,e.geoAiry=$,e.geoAiryRaw=O,e.geoAitoff=K,e.geoAitoffRaw=Y,e.geoArmadillo=q,e.geoArmadilloRaw=j,e.geoAugust=U,e.geoAugustRaw=Q,e.geoBaker=H,e.geoBakerRaw=G,e.geoBerghaus=te,e.geoBerghausRaw=J,e.geoBertin1953=Me,e.geoBertin1953Raw=oe,e.geoBoggs=we,e.geoBoggsRaw=pe,e.geoBonne=Ie,e.geoBonneRaw=be,e.geoBottomley=Qe,e.geoBottomleyRaw=Oe,e.geoBromley=bt,e.geoBromleyRaw=et,e.geoChamberlin=Ue,e.geoChamberlinRaw=mt,e.geoChamberlinAfrica=Ne,e.geoCollignon=je,e.geoCollignonRaw=Ge,e.geoCraig=Ve,e.geoCraigRaw=Re,e.geoCraster=Zt,e.geoCrasterRaw=Tt,e.geoCylindricalEqualArea=ur,e.geoCylindricalEqualAreaRaw=Gt,e.geoCylindricalStereographic=qt,e.geoCylindricalStereographicRaw=cr,e.geoEckert1=Cr,e.geoEckert1Raw=Kt,e.geoEckert2=tt,e.geoEckert2Raw=$e,e.geoEckert3=xt,e.geoEckert3Raw=st,e.geoEckert4=Ct,e.geoEckert4Raw=Je,e.geoEckert5=dr,e.geoEckert5Raw=nr,e.geoEckert6=ui,e.geoEckert6Raw=Vr,e.geoEisenlohr=Xi,e.geoEisenlohrRaw=Pr,e.geoFahey=aa,e.geoFaheyRaw=vn,e.geoFoucaut=gn,e.geoFoucautRaw=va,e.geoFoucautSinusoidal=oa,e.geoFoucautSinusoidalRaw=Hn,e.geoGilbert=Os,e.geoGingery=Ns,e.geoGingeryRaw=go,e.geoGinzburg4=wl,e.geoGinzburg4Raw=Ks,e.geoGinzburg5=fl,e.geoGinzburg5Raw=Tu,e.geoGinzburg6=ot,e.geoGinzburg6Raw=Le,e.geoGinzburg8=kt,e.geoGinzburg8Raw=lt,e.geoGinzburg9=zt,e.geoGinzburg9Raw=Qt,e.geoGringorten=ri,e.geoGringortenRaw=Yt,e.geoGuyou=uo,e.geoGuyouRaw=ga,e.geoHammer=ke,e.geoHammerRaw=ue,e.geoHammerRetroazimuthal=gs,e.geoHammerRetroazimuthalRaw=ko,e.geoHealpix=ms,e.geoHealpixRaw=No,e.geoHill=Qs,e.geoHillRaw=Js,e.geoHomolosine=mc,e.geoHomolosineRaw=Mu,e.geoHufnagel=Xa,e.geoHufnagelRaw=Gl,e.geoHyperelliptical=fu,e.geoHyperellipticalRaw=ks,e.geoInterrupt=Jo,e.geoInterruptedBoggs=zv,e.geoInterruptedHomolosine=s0,e.geoInterruptedMollweide=xh,e.geoInterruptedMollweideHemispheres=l0,e.geoInterruptedSinuMollweide=bh,e.geoInterruptedSinusoidal=u0,e.geoKavrayskiy7=ed,e.geoKavrayskiy7Raw=Q0,e.geoLagrange=Ov,e.geoLagrangeRaw=qv,e.geoLarrivee=_h,e.geoLarriveeRaw=mp,e.geoLaskowski=Cs,e.geoLaskowskiRaw=Xu,e.geoLittrow=Eu,e.geoLittrowRaw=Ho,e.geoLoximuthal=wh,e.geoLoximuthalRaw=td,e.geoMiller=Nv,e.geoMillerRaw=c0,e.geoModifiedStereographic=gf,e.geoModifiedStereographicRaw=yg,e.geoModifiedStereographicAlaska=Vv,e.geoModifiedStereographicGs48=Ah,e.geoModifiedStereographicGs50=xg,e.geoModifiedStereographicMiller=rd,e.geoModifiedStereographicLee=yp,e.geoMollweide=ae,e.geoMollweideRaw=ee,e.geoMtFlatPolarParabolic=bg,e.geoMtFlatPolarParabolicRaw=id,e.geoMtFlatPolarQuartic=ty,e.geoMtFlatPolarQuarticRaw=_g,e.geoMtFlatPolarSinusoidal=Hv,e.geoMtFlatPolarSinusoidalRaw=$f,e.geoNaturalEarth2=bp,e.geoNaturalEarth2Raw=Wf,e.geoNellHammer=nd,e.geoNellHammerRaw=yc,e.geoInterruptedQuarticAuthalic=wg,e.geoNicolosi=Tg,e.geoNicolosiRaw=jv,e.geoPatterson=f0,e.geoPattersonRaw=wp,e.geoPolyconic=Mg,e.geoPolyconicRaw=Mh,e.geoPolyhedral=ad,e.geoPolyhedralButterfly=Sh,e.geoPolyhedralCollignon=sy,e.geoPolyhedralWaterman=Ep,e.geoProject=Zv,e.geoGringortenQuincuncial=Te,e.geoPeirceQuincuncial=qe,e.geoPierceQuincuncial=qe,e.geoQuantize=rt,e.geoQuincuncial=Lp,e.geoRectangularPolyconic=At,e.geoRectangularPolyconicRaw=Ye,e.geoRobinson=fr,e.geoRobinsonRaw=Jt,e.geoSatellite=ir,e.geoSatelliteRaw=Ir,e.geoSinuMollweide=Au,e.geoSinuMollweideRaw=cu,e.geoSinusoidal=Ce,e.geoSinusoidalRaw=Ee,e.geoStitch=mo,e.geoTimes=Ca,e.geoTimesRaw=pi,e.geoTwoPointAzimuthal=xf,e.geoTwoPointAzimuthalRaw=Tl,e.geoTwoPointAzimuthalUsa=Cu,e.geoTwoPointEquidistant=Ju,e.geoTwoPointEquidistantRaw=Xc,e.geoTwoPointEquidistantUsa=Xf,e.geoVanDerGrinten=kh,e.geoVanDerGrintenRaw=Eh,e.geoVanDerGrinten2=Cg,e.geoVanDerGrinten2Raw=Pp,e.geoVanDerGrinten3=qx,e.geoVanDerGrinten3Raw=Jv,e.geoVanDerGrinten4=Zc,e.geoVanDerGrinten4Raw=Qv,e.geoWagner=Dg,e.geoWagner7=t1,e.geoWagnerRaw=e1,e.geoWagner4=Rp,e.geoWagner4Raw=Ip,e.geoWagner6=zp,e.geoWagner6Raw=ud,e.geoWiechel=r1,e.geoWiechelRaw=cd,e.geoWinkel3=bc,e.geoWinkel3Raw=Lg,Object.defineProperty(e,"__esModule",{value:!0})}))});var nGe=W((lJr,iGe)=>{"use strict";var ol=gi(),JQ=it(),Ilr=xi(),W4=Math.PI/180,B_=180/Math.PI,eee={cursor:"pointer"},tee={cursor:"auto"};function Rlr(e,t){var r=e.projection,i;return t._isScoped?i=zlr:t._isClipped?i=qlr:i=Blr,i(e,r)}iGe.exports=Rlr;function ree(e,t){return ol.behavior.zoom().translate(t.translate()).scaleExtent(t.scaleExtent()).scale(t.scale())}function iee(e,t,r){var i=e.id,n=e.graphDiv,a=n.layout,o=a[i],s=n._fullLayout,l=s[i],u={},c={};function f(h,p){u[i+"."+h]=JQ.nestedProperty(o,h).get(),Ilr.call("_storeDirectGUIEdit",a,s._preGUI,u);var d=JQ.nestedProperty(l,h);d.get()!==p&&(d.set(p),JQ.nestedProperty(o,h).set(p),c[i+"."+h]=p)}r(f),f("projection.scale",t.scale()/e.fitScale),f("fitbounds",!1),n.emit("plotly_relayout",c)}function zlr(e,t){var r=ree(e,t);function i(){ol.select(this).style(eee)}function n(){t.scale(ol.event.scale).translate(ol.event.translate),e.render(!0);var s=t.invert(e.midPt);e.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":t.scale()/e.fitScale,"geo.center.lon":s[0],"geo.center.lat":s[1]})}function a(s){var l=t.invert(e.midPt);s("center.lon",l[0]),s("center.lat",l[1])}function o(){ol.select(this).style(tee),iee(e,t,a)}return r.on("zoomstart",i).on("zoom",n).on("zoomend",o),r}function Blr(e,t){var r=ree(e,t),i=2,n,a,o,s,l,u,c,f,h;function p(_){return t.invert(_)}function d(_){var b=p(_);if(!b)return!0;var S=t(b);return Math.abs(S[0]-_[0])>i||Math.abs(S[1]-_[1])>i}function v(){ol.select(this).style(eee);let{x:_,y:b,width:S,height:x}=this.getBBox();n=ol.event.sourceEvent?ol.mouse(this):[_+S/2,b+x/2],a=t.rotate(),o=t.translate(),s=a,l=p(n)}function m(){let{x:_,y:b,width:S,height:x}=this.getBBox();if(u=ol.event.sourceEvent?ol.mouse(this):[_+S/2,b+x/2],d(n)){r.scale(t.scale()),r.translate(t.translate());return}t.scale(ol.event.scale),t.translate([o[0],ol.event.translate[1]]),l?p(u)&&(f=p(u),c=[s[0]+(f[0]-l[0]),a[1],a[2]],t.rotate(c),s=c):(n=u,l=p(n)),h=!0,e.render(!0);var T=t.rotate(),A=t.invert(e.midPt);e.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":t.scale()/e.fitScale,"geo.center.lon":A[0],"geo.center.lat":A[1],"geo.projection.rotation.lon":-T[0]})}function g(){ol.select(this).style(tee),h&&iee(e,t,w)}function w(_){var b=t.rotate(),S=t.invert(e.midPt);_("projection.rotation.lon",-b[0]),_("center.lon",S[0]),_("center.lat",S[1])}return r.on("zoomstart",v).on("zoom",m).on("zoomend",g),r}function qlr(e,t){var r={r:t.rotate(),k:t.scale()},i=ree(e,t),n=$lr(i,"zoomstart","zoom","zoomend"),a=0,o=i.on,s;i.on("zoomstart",function(){ol.select(this).style(eee);let{x:h,y:p,width:d,height:v}=this.getBBox(),m=ol.event.sourceEvent?ol.mouse(this):[h+d/2,p+v/2],g=t.rotate(),w=g,_=t.translate(),b=Olr(g);s=LR(t,m),o.call(i,"zoom",function(){let{x:S,y:x,width:T,height:A}=this.getBBox(),y=ol.event.sourceEvent?ol.mouse(this):[S+T/2,x+A/2];if(t.scale(r.k=ol.event.scale),!s)m=y,s=LR(t,m);else if(LR(t,y)){t.rotate(g).translate(_);var E=LR(t,y),M=Ulr(s,E),C=Glr(Nlr(b,M)),k=r.r=Vlr(C,s,w);(!isFinite(k[0])||!isFinite(k[1])||!isFinite(k[2]))&&(k=w),t.rotate(k),w=k}u(n.of(this,arguments))}),l(n.of(this,arguments))}).on("zoomend",function(){ol.select(this).style(tee),o.call(i,"zoom",null),c(n.of(this,arguments)),iee(e,t,f)}).on("zoom.redraw",function(){e.render(!0);var h=t.rotate();e.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":t.scale()/e.fitScale,"geo.projection.rotation.lon":-h[0],"geo.projection.rotation.lat":-h[1]})});function l(h){a++||h({type:"zoomstart"})}function u(h){h({type:"zoom"})}function c(h){--a||h({type:"zoomend"})}function f(h){var p=t.rotate();h("projection.rotation.lon",-p[0]),h("projection.rotation.lat",-p[1])}return ol.rebind(i,n,"on")}function LR(e,t){var r=e.invert(t);return r&&isFinite(r[0])&&isFinite(r[1])&&Hlr(r)}function Olr(e){var t=.5*e[0]*W4,r=.5*e[1]*W4,i=.5*e[2]*W4,n=Math.sin(t),a=Math.cos(t),o=Math.sin(r),s=Math.cos(r),l=Math.sin(i),u=Math.cos(i);return[a*s*u+n*o*l,n*s*u-a*o*l,a*o*u+n*s*l,a*s*l-n*o*u]}function Nlr(e,t){var r=e[0],i=e[1],n=e[2],a=e[3],o=t[0],s=t[1],l=t[2],u=t[3];return[r*o-i*s-n*l-a*u,r*s+i*o+n*u-a*l,r*l-i*u+n*o+a*s,r*u+i*l-n*s+a*o]}function Ulr(e,t){if(!(!e||!t)){var r=jlr(e,t),i=Math.sqrt(rGe(r,r)),n=.5*Math.acos(Math.max(-1,Math.min(1,rGe(e,t)))),a=Math.sin(n)/i;return i&&[Math.cos(n),r[2]*a,-r[1]*a,r[0]*a]}}function Vlr(e,t,r){var i=QQ(t,2,e[0]);i=QQ(i,1,e[1]),i=QQ(i,0,e[2]-r[2]);var n=t[0],a=t[1],o=t[2],s=i[0],l=i[1],u=i[2],c=Math.atan2(a,n)*B_,f=Math.sqrt(n*n+a*a),h,p;Math.abs(l)>f?(p=(l>0?90:-90)-c,h=0):(p=Math.asin(l/f)*B_-c,h=Math.sqrt(f*f-l*l));var d=180-p-2*c,v=(Math.atan2(u,s)-Math.atan2(o,h))*B_,m=(Math.atan2(u,s)-Math.atan2(o,-h))*B_,g=eGe(r[0],r[1],p,v),w=eGe(r[0],r[1],d,m);return g<=w?[p,v,r[2]]:[d,m,r[2]]}function eGe(e,t,r,i){var n=tGe(r-e),a=tGe(i-t);return Math.sqrt(n*n+a*a)}function tGe(e){return(e%360+540)%360-180}function QQ(e,t,r){var i=r*W4,n=e.slice(),a=t===0?1:0,o=t===2?1:2,s=Math.cos(i),l=Math.sin(i);return n[a]=e[a]*s-e[o]*l,n[o]=e[o]*s+e[a]*l,n}function Glr(e){return[Math.atan2(2*(e[0]*e[1]+e[2]*e[3]),1-2*(e[1]*e[1]+e[2]*e[2]))*B_,Math.asin(Math.max(-1,Math.min(1,2*(e[0]*e[2]-e[3]*e[1]))))*B_,Math.atan2(2*(e[0]*e[3]+e[1]*e[2]),1-2*(e[2]*e[2]+e[3]*e[3]))*B_]}function Hlr(e){var t=e[0]*W4,r=e[1]*W4,i=Math.cos(r);return[i*Math.cos(t),i*Math.sin(t),Math.sin(r)]}function rGe(e,t){for(var r=0,i=0,n=e.length;i{"use strict";var W1=gi(),oee=AR(),Wlr=oee.geoPath,Ylr=oee.geoDistance,Xlr=QVe(),Zlr=xi(),zE=it(),Klr=zE.strTranslate,PR=ai(),RE=en(),aGe=Ls(),Jlr=Qo(),aee=Wi(),{concatExtremes:Qlr,getAutoRange:oGe,makePadFn:sGe}=jp(),nee=Mf(),eur=yu().prepSelect,tur=yu().clearOutline,rur=yu().selectOnClick,iur=nGe(),fh=(DE(),Pt(CE)),see=bm(),{unwrapLonRange:nur}=see,uGe=dR(),aur=LQ().feature;function cGe(e){this.id=e.id,this.graphDiv=e.graphDiv,this.container=e.container,this.topojsonURL=e.topojsonURL,this.isStatic=e.staticPlot,this.topojsonName=null,this.topojson=null,this.projection=null,this.scope=null,this.viewInitial=null,this.fitScale=null,this.bounds=null,this.midPt=null,this.hasChoropleth=!1,this.traceHash={},this.layers={},this.basePaths={},this.dataPaths={},this.dataPoints={},this.clipDef=null,this.clipRect=null,this.bgRect=null,this.makeFramework()}var xv=cGe.prototype;fGe.exports=function(t){return new cGe(t)};xv.plot=function(e,t,r,i){var n=this;if(i)return n.update(e,t,!0);n._geoCalcData=e,n._fullLayout=t;var a=t[this.id],o=[],s=!1;for(var l in fh.layerNameToAdjective)if(l!=="frame"&&a["show"+l]){s=!0;break}for(var u=!1,c=0;c0&&o._module.calcGeoJSON(a,t)}if(!r){var s=this.updateProjection(e,t);if(s)return;(!this.viewInitial||this.scope!==i.scope)&&this.saveViewInitial(i)}this.scope=i.scope,this.updateBaseLayers(t,i),this.updateDims(t,i),this.updateFx(t,i),Jlr.generalUpdatePerTraceModule(this.graphDiv,this,e,i);var l=this.layers.frontplot.select(".scatterlayer");this.dataPoints.point=l.selectAll(".point"),this.dataPoints.text=l.selectAll("text"),this.dataPaths.line=l.selectAll(".js-line");var u=this.layers.backplot.select(".choroplethlayer");this.dataPaths.choropleth=u.selectAll("path"),this._render()};xv.updateProjection=function(e,t){var r=this.graphDiv,i=t[this.id],n=t._size,a=i.domain,o=i.projection,s=i.lonaxis,l=i.lataxis,u=s._ax,c=l._ax,f=this.projection=our(i),h=[[n.l+n.w*a.x[0],n.t+n.h*(1-a.y[1])],[n.l+n.w*a.x[1],n.t+n.h*(1-a.y[0])]],p=i.center||{},d=o.rotation||{},v=s.range||[],m=l.range||[];if(i.fitbounds){u._length=h[1][0]-h[0][0],c._length=h[1][1]-h[0][1],u.range=oGe(r,u),c.range=oGe(r,c);let L=[];for(let j of e){let q=j[0].trace;q.visible===!0&&q._module.fitCoords&&L.push(q._module.fitCoords(j,i))}let P=Qlr(r,u),R=P.min.reduce((j,{val:q})=>Math.min(j,q),1/0),I=P.max.reduce((j,{val:q})=>Math.max(j,q),-1/0)-R,B=see.boundsOfCoords(L.flat()),[O,,$]=B||[],Y=$-O;if(!!B&&(I>360||I<360&&YMath.max(H,j(J)),0),U=P.max.reduce((H,J)=>Math.max(H,q(J)),0),V=u._length-Q-U,X=V>u._length/10?Y*u._length/V:Y,G=(O+$)/2;u.range=[G-X/2,G+X/2]}var g=(u.range[0]+u.range[1])/2,w=(c.range[0]+c.range[1])/2;if(i._isScoped)p={lon:g,lat:w};else if(i._isClipped){p={lon:g,lat:w},d={lon:g,lat:w,roll:d.roll};var _=o.type,b=fh.lonaxisSpan[_]/2||180,S=fh.lataxisSpan[_]/2||90;v=[g-b,g+b],m=[w-S,w+S]}else p={lon:g,lat:w},d={lon:g,lat:d.lat,roll:d.roll}}f.center([p.lon-d.lon,p.lat-d.lat]).rotate([-d.lon,-d.lat,d.roll]).parallels(o.parallels);var x=lGe(v,m);f.fitExtent(h,x);var T=this.bounds=f.getBounds(x),A=this.fitScale=f.scale(),y=f.translate();if(f.scaleExtent=()=>{var R;let{minscale:L}=o,P=(R=o.maxscale)!=null?R:1/0;return[A*Math.min(L,P),A*Math.max(L,P)]},i.fitbounds){var E=f.getBounds(lGe(u.range,c.range)),M=Math.min((T[1][0]-T[0][0])/(E[1][0]-E[0][0]),(T[1][1]-T[0][1])/(E[1][1]-E[0][1]));isFinite(M)?f.scale(M*A):zE.warn("Something went wrong during"+this.id+"fitbounds computations.")}else f.scale(o.scale*A);var C=this.midPt=[(T[0][0]+T[1][0])/2,(T[0][1]+T[1][1])/2];if(f.translate([y[0]+(C[0]-y[0]),y[1]+(C[1]-y[1])]).clipExtent(T),i._isAlbersUsa){var k=f([p.lon,p.lat]);if(k){var D=f.translate();f.translate([D[0]-(k[0]-D[0]),D[1]-(k[1]-D[1])])}}};xv.updateBaseLayers=function(e,t){var r=this,i=r.topojson,n=r.layers,a=r.basePaths;function o(h){return h==="lonaxis"||h==="lataxis"}function s(h){return!!fh.lineLayers[h]}function l(h){return!!fh.fillLayers[h]}var u=this.hasChoropleth?fh.layersForChoropleth:fh.layers,c=u.filter(function(h){return s(h)||l(h)?t["show"+h]:o(h)?t[h].showgrid:!0}),f=r.framework.selectAll(".layer").data(c,String);f.exit().each(function(h){delete n[h],delete a[h],W1.select(this).remove()}),f.enter().append("g").attr("class",function(h){return"layer "+h}).each(function(h){var p=n[h]=W1.select(this);h==="bg"?r.bgRect=p.append("rect").style("pointer-events","all"):o(h)?a[h]=p.append("path").style("fill","none"):h==="backplot"?p.append("g").classed("choroplethlayer",!0):h==="frontplot"?p.append("g").classed("scatterlayer",!0):s(h)?a[h]=p.append("path").style("fill","none").style("stroke-miterlimit",2):l(h)&&(a[h]=p.append("path").style("stroke","none"))}),f.order(),f.each(function(h){var p=a[h],d=fh.layerNameToAdjective[h];h==="frame"?p.datum(fh.sphereSVG):s(h)||l(h)?p.datum(aur(i,i.objects[h])):o(h)&&p.datum(sur(h,t,e)).call(PR.stroke,t[h].gridcolor).call(RE.dashLine,t[h].griddash,t[h].gridwidth),s(h)?p.call(PR.stroke,t[d+"color"]).call(RE.dashLine,"",t[d+"width"]):l(h)&&p.call(PR.fill,t[d+"color"])})};xv.updateDims=function(e,t){var r=this.bounds,i=(t.framewidth||0)/2,n=r[0][0]-i,a=r[0][1]-i,o=r[1][0]-n+i,s=r[1][1]-a+i;RE.setRect(this.clipRect,n,a,o,s),this.bgRect.call(RE.setRect,n,a,o,s).call(PR.fill,t.bgcolor),this.xaxis._offset=n,this.xaxis._length=o,this.yaxis._offset=a,this.yaxis._length=s};xv.updateFx=function(e,t){var r=this,i=r.graphDiv,n=r.bgRect,a=e.dragmode,o=e.clickmode;if(r.isStatic)return;function s(){var f=r.viewInitial,h={};for(var p in f)h[r.id+"."+p]=f[p];Zlr.call("_guiRelayout",i,h),i.emit("plotly_doubleclick",null)}function l(f){return r.projection.invert([f[0]+r.xaxis._offset,f[1]+r.yaxis._offset])}var u=function(f,h){if(h.isRect){var p=f.range={};p[r.id]=[l([h.xmin,h.ymin]),l([h.xmax,h.ymax])]}else{var d=f.lassoPoints={};d[r.id]=h.map(l)}},c={element:r.bgRect.node(),gd:i,plotinfo:{id:r.id,xaxis:r.xaxis,yaxis:r.yaxis,fillRangeItems:u},xaxes:[r.xaxis],yaxes:[r.yaxis],subplot:r.id,clickFn:function(f){f===2&&tur(i)}};if(a==="pan"){n.node().onmousedown=null;let f=iur(r,t);if(n.call(f),!W1.event){let h=r.projection.scale(),[p,d]=r.projection.scaleExtent();(hd)&&f.event(n)}n.on("dblclick.zoom",s),i._context._scrollZoom.geo||n.on("wheel.zoom",null)}else(a==="select"||a==="lasso")&&(n.on(".zoom",null),c.prepFn=function(f,h,p){eur(f,h,p,c,a)},nee.init(c));n.on("mousemove",function(){var f=r.projection.invert(zE.getPositionFromD3Event());if(!f)return nee.unhover(i,W1.event);r.xaxis.p2c=function(){return f[0]},r.yaxis.p2c=function(){return f[1]},aGe.hover(i,W1.event,r.id)}),n.on("mouseout",function(){i._dragging||nee.unhover(i,W1.event)}),n.on("click",function(){a!=="select"&&a!=="lasso"&&(o.indexOf("select")>-1&&rur(W1.event,i,[r.xaxis],[r.yaxis],r.id,c),o.indexOf("event")>-1&&aGe.click(i,W1.event))})};xv.makeFramework=function(){var e=this,t=e.graphDiv,r=t._fullLayout,i="clip"+r._uid+e.id;e.clipDef=r._clips.append("clipPath").attr("id",i),e.clipRect=e.clipDef.append("rect"),e.framework=W1.select(e.container).append("g").attr("class","geo "+e.id).call(RE.setClipUrl,i,t),e.project=function(n){var a=e.projection(n);return a?[a[0]-e.xaxis._offset,a[1]-e.yaxis._offset]:[null,null]},e.xaxis={_id:"x",c2p:function(n){return e.project(n)[0]}},e.yaxis={_id:"y",c2p:function(n){return e.project(n)[1]}},e.mockAxis={type:"linear",showexponent:"all",exponentformat:"B"},aee.setConvert(e.mockAxis,r)};xv.saveViewInitial=function(e){var t=e.center||{},r=e.projection,i=r.rotation||{};this.viewInitial={fitbounds:e.fitbounds,"projection.scale":r.scale};var n;e._isScoped?n={"center.lon":t.lon,"center.lat":t.lat}:e._isClipped?n={"projection.rotation.lon":i.lon,"projection.rotation.lat":i.lat,"center.lon":t.lon,"center.lat":t.lat}:n={"center.lon":t.lon,"center.lat":t.lat,"projection.rotation.lon":i.lon},zE.extendFlat(this.viewInitial,n)};xv.render=function(e){this._hasMarkerAngles&&e?this.plot(this._geoCalcData,this._fullLayout,[],!0):this._render()};xv._render=function(){var e=this.projection,t=e.getPath(),r;function i(a){var o=e(a.lonlat);return o?Klr(o[0],o[1]):null}function n(a){return e.isLonLatOverEdges(a.lonlat)?"none":null}for(r in this.basePaths)this.basePaths[r].attr("d",t);for(r in this.dataPaths)this.dataPaths[r].attr("d",function(a){return t(a.geojson)});for(r in this.dataPoints)this.dataPoints[r].attr("display",n).attr("transform",i)};function our(e){var t=e.projection,r=t.type,i=fh.projNames[r];i="geo"+zE.titleCase(i);for(var n=oee[i]||Xlr[i],a=n(),o=e._isSatellite?Math.acos(1/t.distance)*180/Math.PI:e._isClipped?fh.lonaxisSpan[r]/2:null,s=["center","rotate","parallels","clipExtent"],l=function(f){return f?a:[]},u=0;ud}else return!1},a.getPath=function(){return Wlr().projection(a)},a.getBounds=function(f){return a.getPath().bounds(f)},a.precision(fh.precision),e._isSatellite&&a.tilt(t.tilt).distance(t.distance),o&&a.clipAngle(o-fh.clipPad),a}function sur(e,t,r){var i=1e-6,n=2.5,a=t[e],o=fh.scopeDefaults[t.scope],s,l,u;e==="lonaxis"?(s=o.lonaxisRange,l=o.lataxisRange,u=function(w,_){return[w,_]}):e==="lataxis"&&(s=o.lataxisRange,l=o.lonaxisRange,u=function(w,_){return[_,w]});var c={type:"linear",range:[s[0],s[1]-i],tick0:a.tick0,dtick:a.dtick};aee.setConvert(c,r);var f=aee.calcTicks(c);!t.isScoped&&e==="lonaxis"&&f.pop();for(var h=f.length,p=new Array(h),d=0;d{"use strict";var X4=jl(),lur=fs().attributes,uur=Ru().dash,Y4=(DE(),Pt(CE)),cur=cs().overrideAll,dGe=(Jx(),Pt(Kx)).default,pGe={range:{valType:"info_array",items:[{valType:"number"},{valType:"number"}]},showgrid:{valType:"boolean",dflt:!1},tick0:{valType:"number",dflt:0},dtick:{valType:"number"},gridcolor:{valType:"color",dflt:X4.lightLine},gridwidth:{valType:"number",min:0,dflt:1},griddash:uur},fur=vGe.exports=cur({domain:lur({name:"geo"},{}),fitbounds:{valType:"enumerated",values:[!1,"locations","geojson"],dflt:"locations",editType:"plot"},resolution:{valType:"enumerated",values:[110,50],dflt:110,coerceNumber:!0},scope:{valType:"enumerated",values:dGe(Y4.scopeDefaults),dflt:"world"},projection:{type:{valType:"enumerated",values:dGe(Y4.projNames)},rotation:{lon:{valType:"number"},lat:{valType:"number"},roll:{valType:"number"}},tilt:{valType:"number",dflt:0},distance:{valType:"number",min:1.001,dflt:2},parallels:{valType:"info_array",items:[{valType:"number"},{valType:"number"}]},scale:{valType:"number",min:0,dflt:1},minscale:{valType:"number",min:0,dflt:0},maxscale:{valType:"number",min:0,dflt:null}},center:{lon:{valType:"number"},lat:{valType:"number"}},visible:{valType:"boolean",dflt:!0},showcoastlines:{valType:"boolean"},coastlinecolor:{valType:"color",dflt:X4.defaultLine},coastlinewidth:{valType:"number",min:0,dflt:1},showland:{valType:"boolean",dflt:!1},landcolor:{valType:"color",dflt:Y4.landColor},showocean:{valType:"boolean",dflt:!1},oceancolor:{valType:"color",dflt:Y4.waterColor},showlakes:{valType:"boolean",dflt:!1},lakecolor:{valType:"color",dflt:Y4.waterColor},showrivers:{valType:"boolean",dflt:!1},rivercolor:{valType:"color",dflt:Y4.waterColor},riverwidth:{valType:"number",min:0,dflt:1},showcountries:{valType:"boolean"},countrycolor:{valType:"color",dflt:X4.defaultLine},countrywidth:{valType:"number",min:0,dflt:1},showsubunits:{valType:"boolean"},subunitcolor:{valType:"color",dflt:X4.defaultLine},subunitwidth:{valType:"number",min:0,dflt:1},showframe:{valType:"boolean"},framecolor:{valType:"color",dflt:X4.defaultLine},framewidth:{valType:"number",min:0,dflt:1},bgcolor:{valType:"color",dflt:X4.background},lonaxis:pGe,lataxis:pGe},"plot","from-root");fur.uirevision={valType:"any",editType:"none"}});var yGe=W((fJr,mGe)=>{"use strict";var IR=it(),hur=Kb(),dur=Ac().getSubplotData,{unwrapLonRange:pur}=bm(),BE=(DE(),Pt(CE)),vur=lee(),gGe=BE.axesNames;mGe.exports=function(t,r,i){hur(t,r,i,{type:"geo",attributes:vur,handleDefaults:gur,fullData:i,partition:"y"})};function gur(e,t,r,i){var n=dur(i.fullData,"geo",i.id),a=n.map(function(B){return B.index}),o=r("resolution"),s=r("scope"),l=BE.scopeDefaults[s],u=r("projection.type",l.projType),c=t._isAlbersUsa=u==="albers usa";c&&(s=t.scope="usa");var f=t._isScoped=s!=="world",h=t._isSatellite=u==="satellite",p=t._isConic=u.indexOf("conic")!==-1||u==="albers",d=t._isClipped=!!BE.lonaxisSpan[u];if(e.visible===!1){var v=IR.extendDeep({},t._template);v.showcoastlines=!1,v.showcountries=!1,v.showframe=!1,v.showlakes=!1,v.showland=!1,v.showocean=!1,v.showrivers=!1,v.showsubunits=!1,v.lonaxis&&(v.lonaxis.showgrid=!1),v.lataxis&&(v.lataxis.showgrid=!1),t._template=v}for(var m=r("visible"),g,w=0;wQ[U]!=null)||BE.fitboundsIncompatible.has(u)?t.fitbounds=!1:j.forEach(({dst:Q,key:U})=>Q&&(Q[U]=null))}}});var uee=W((hJr,_Ge)=>{"use strict";var mur=Ac().getSubplotCalcData,yur=it().counterRegex,xur=hGe(),Y1="geo",xGe=yur(Y1),bGe={};bGe[Y1]={valType:"subplotid",dflt:Y1,editType:"calc"};function bur(e){for(var t=e._fullLayout,r=e.calcdata,i=t._subplots[Y1],n=0;n{"use strict";wGe.exports={attributes:$4(),supplyDefaults:XUe(),colorbar:kc(),formatLabels:JUe(),calc:FQ(),calcGeoJSON:CR().calcGeoJSON,fitCoords:CR().fitCoords,plot:CR().plot,style:YQ(),styleOnSelect:oh().styleOnSelect,hoverPoints:HVe(),eventData:$Ve(),selectPoints:XVe(),moduleType:"trace",name:"scattergeo",basePlotModule:uee(),categories:["geo","symbols","showLegend","scatter-like"],meta:{}}});var MGe=W((pJr,AGe)=>{"use strict";AGe.exports=TGe()});var qE=W((vJr,kGe)=>{"use strict";var{hovertemplateAttrs:Tur,templatefallbackAttrs:Aur}=$a(),B2=$4(),Mur=Fo(),SGe=Ka(),Sur=jl().defaultLine,z2=nn().extendFlat,EGe=B2.marker.line;kGe.exports=z2({locations:{valType:"data_array",editType:"calc"},locationmode:B2.locationmode,z:{valType:"data_array",editType:"calc"},geojson:z2({},B2.geojson,{}),featureidkey:B2.featureidkey,text:z2({},B2.text,{}),hovertext:z2({},B2.hovertext,{}),marker:{line:{color:z2({},EGe.color,{dflt:Sur}),width:z2({},EGe.width,{dflt:1}),editType:"calc"},opacity:{valType:"number",arrayOk:!0,min:0,max:1,dflt:1,editType:"style"},editType:"calc"},selected:{marker:{opacity:B2.selected.marker.opacity,editType:"plot"},editType:"plot"},unselected:{marker:{opacity:B2.unselected.marker.opacity,editType:"plot"},editType:"plot"},hoverinfo:z2({},SGe.hoverinfo,{editType:"calc",flags:["location","z","text","name"]}),hovertemplate:Tur(),hovertemplatefallback:Aur(),showlegend:z2({},SGe.showlegend,{dflt:!1})},Mur("",{cLetter:"z",editTypeOverride:"calc"}))});var DGe=W((gJr,CGe)=>{"use strict";var RR=it(),Eur=zu(),kur=qE();CGe.exports=function(t,r,i,n){function a(h,p){return RR.coerce(t,r,kur,h,p)}var o=a("locations"),s=a("z");if(!(o&&o.length&&RR.isArrayOrTypedArray(s)&&s.length)){r.visible=!1;return}r._length=Math.min(o.length,s.length);var l=a("geojson"),u;(typeof l=="string"&&l!==""||RR.isPlainObject(l))&&(u="geojson-id");var c=a("locationmode",u);c==="geojson-id"&&a("featureidkey"),a("text"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback");var f=a("marker.line.width");f&&a("marker.line.color"),a("marker.opacity"),Eur(t,r,n,a,{prefix:"",cLetter:"z"}),RR.coerceSelectionMarkerOpacity(r,a)}});var cee=W((mJr,PGe)=>{"use strict";var FGe=un(),Cur=(ta(),Pt(ra)).BADNUM,Dur=tf(),Fur=k1(),Lur=E0();function LGe(e){return e&&typeof e=="string"}PGe.exports=function(t,r){var i=r._length,n=new Array(i),a;r.geojson?a=function(c){return LGe(c)||FGe(c)}:a=LGe;for(var o=0;o{"use strict";var Pur=gi(),Iur=ai(),fee=en(),Rur=es();function zur(e,t){t&&IGe(e,t)}function IGe(e,t){var r=t[0].trace,i=t[0].node3,n=i.selectAll(".choroplethlocation"),a=r.marker||{},o=a.line||{},s=Rur.makeColorScaleFuncFromTrace(r);n.each(function(l){Pur.select(this).attr("fill",s(l.z)).call(Iur.stroke,l.mlc||o.color).call(fee.dashLine,"",l.mlw||o.width||0).style("opacity",a.opacity)}),fee.selectedPointStyle(n,r)}function Bur(e,t){var r=t[0].node3,i=t[0].trace;i.selectedpoints?fee.selectedPointStyle(r.selectAll(".choroplethlocation"),i):IGe(e,t)}RGe.exports={style:zur,styleOnSelect:Bur}});var BR=W((xJr,qGe)=>{"use strict";var qur=gi(),zGe=it(),q_=bm(),Our=dR().getTopojsonFeatures,BGe=jp().findExtremes,Nur=zR().style;function Uur(e,t,r){var i=t.layers.backplot.select(".choroplethlayer");zGe.makeTraceGroups(i,r,"trace choropleth").each(function(n){var a=qur.select(this),o=a.selectAll("path.choroplethlocation").data(zGe.identity);o.enter().append("path").classed("choroplethlocation",!0),o.exit().remove(),Nur(e,n)})}function Vur(e,t){var r=e[0].trace,i=t[r.geo],n=i._subplot,a=r.locationmode,o=r._length,s=a==="geojson-id"?q_.extractTraceFeature(e):Our(r,n.topojson);let l=q_.fitGeojsonBbox(r,i);for(var u=[],c=[],f=0;f{"use strict";var Hur=Wi(),jur=qE(),$ur=it().fillText,{ANTIMERIDIAN_LON_SHIFT:Wur}=bm();OGe.exports=function(t,r,i){var n=t.cd,a=n[0].trace,o=t.subplot,s,l,u,c,f=[r,i];let h=[r+Wur,i];for(l=0;l")}}});var dee=W((_Jr,NGe)=>{"use strict";NGe.exports=function(t,r,i,n,a){t.location=r.location,t.z=r.z;var o=n[a];return o.fIn&&o.fIn.properties&&(t.properties=o.fIn.properties),t.ct=o.ct,t}});var pee=W((wJr,UGe)=>{"use strict";UGe.exports=function(t,r){var i=t.cd,n=t.xaxis,a=t.yaxis,o=[],s,l,u,c,f;if(r===!1)for(s=0;s{"use strict";VGe.exports={attributes:qE(),supplyDefaults:DGe(),colorbar:D5(),calc:cee(),calcGeoJSON:BR().calcGeoJSON,fitCoords:BR().fitCoords,plot:BR().plot,style:zR().style,styleOnSelect:zR().styleOnSelect,hoverPoints:hee(),eventData:dee(),selectPoints:pee(),moduleType:"trace",name:"choropleth",basePlotModule:uee(),categories:["geo","noOpacity","showLegend"],meta:{}}});var jGe=W((AJr,HGe)=>{"use strict";HGe.exports=GGe()});var qR=W((MJr,WGe)=>{"use strict";var Xur=xi(),O0=it(),Zur=o5(),Kur=en();function Jur(e,t,r,i){var n=e.cd,a=n[0].t,o=n[0].trace,s=e.xa,l=e.ya,u=a.x,c=a.y,f=s.c2p(t),h=l.c2p(r),p=e.distance,d;if(a.tree){var v=s.p2c(f-p),m=s.p2c(f+p),g=l.p2c(h-p),w=l.p2c(h+p);i==="x"?d=a.tree.range(Math.min(v,m),Math.min(l._rl[0],l._rl[1]),Math.max(v,m),Math.max(l._rl[0],l._rl[1])):d=a.tree.range(Math.min(v,m),Math.min(g,w),Math.max(v,m),Math.max(g,w))}else d=a.ids;var _,b,S,x,T,A,y,E,M,C=p;if(i==="x"){var k=!!o.xperiodalignment,D=!!o.yperiodalignment;for(T=0;T=Math.min(L,P)&&f<=Math.max(L,P)?0:1/0}if(A<=C){if(C=A,x=c[_],y=l.c2p(x)-h,D){var R=l.c2p(o._yStarts[_]),F=l.c2p(o._yEnds[_]);y=h>=Math.min(R,F)&&h<=Math.max(R,F)?0:1/0}M=Math.sqrt(A*A+y*y),b=d[T]}}}else for(T=0;Tacr,DOT_RE:()=>icr,OPEN_RE:()=>ncr,SYMBOL_SDF_SIZE:()=>ecr,SYMBOL_SIZE:()=>tcr,SYMBOL_STROKE:()=>rcr,TOO_MANY_POINTS:()=>Qur});var Qur,ecr,tcr,rcr,icr,ncr,acr,O2=Ci(()=>{"use strict";Qur=1e5,ecr=200,tcr=20,rcr=1,icr=/-dot/,ncr=/-open/,acr={solid:[1],dot:[1,1],dash:[4,1],longdash:[8,1],dashdot:[4,1,1,1],longdashdot:[8,1,1,1]}});var OE=W((SJr,KGe)=>{"use strict";var ocr=Ka(),scr=jo(),lcr=M1(),Is=Hs(),YGe=ws().axisHoverFormat,XGe=Fo(),ucr=(Jx(),Pt(Kx)).default,vee=nn().extendFlat,ccr=cs().overrideAll,fcr=(O2(),Pt(q2)).DASHES,ZGe=Is.line,_m=Is.marker,hcr=_m.line,N2=KGe.exports=ccr({x:Is.x,x0:Is.x0,dx:Is.dx,y:Is.y,y0:Is.y0,dy:Is.dy,xperiod:Is.xperiod,yperiod:Is.yperiod,xperiod0:Is.xperiod0,yperiod0:Is.yperiod0,xperiodalignment:Is.xperiodalignment,yperiodalignment:Is.yperiodalignment,xhoverformat:YGe("x"),yhoverformat:YGe("y"),text:Is.text,hovertext:Is.hovertext,textposition:Is.textposition,textfont:scr({noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0,editType:"calc",colorEditType:"style",arrayOk:!0,noNumericWeightValues:!0,variantValues:["normal","small-caps"]}),mode:{valType:"flaglist",flags:["lines","markers","text"],extras:["none"]},line:{color:ZGe.color,width:ZGe.width,shape:{valType:"enumerated",values:["linear","hv","vh","hvh","vhv"],dflt:"linear",editType:"plot"},dash:{valType:"enumerated",values:ucr(fcr),dflt:"solid"}},marker:vee({},XGe("marker"),{symbol:_m.symbol,angle:_m.angle,size:_m.size,sizeref:_m.sizeref,sizemin:_m.sizemin,sizemode:_m.sizemode,opacity:_m.opacity,colorbar:_m.colorbar,line:vee({},XGe("marker.line"),{width:hcr.width})}),connectgaps:Is.connectgaps,fill:vee({},Is.fill,{dflt:"none"}),fillcolor:lcr(),selected:{marker:Is.selected.marker,textfont:Is.selected.textfont},unselected:{marker:Is.unselected.marker,textfont:Is.unselected.textfont},opacity:ocr.opacity},"calc","nested");N2.x.editType=N2.y.editType=N2.x0.editType=N2.y0.editType="calc+clearAxisTypes";N2.hovertemplate=Is.hovertemplate;N2.hovertemplatefallback=Is.hovertemplatefallback;N2.texttemplate=Is.texttemplate;N2.texttemplatefallback=Is.texttemplatefallback});var OR=W(gee=>{"use strict";var JGe=(O2(),Pt(q2));gee.isOpenSymbol=function(e){return typeof e=="string"?JGe.OPEN_RE.test(e):e%200>100};gee.isDotSymbol=function(e){return typeof e=="string"?JGe.DOT_RE.test(e):e>200}});var tHe=W((kJr,eHe)=>{"use strict";var QGe=it(),dcr=xi(),pcr=OR(),vcr=OE(),gcr=(A1(),Pt(T1)),NR=Wo(),mcr=Lb(),ycr=Zp(),xcr=Cd(),bcr=Kp(),_cr=E1(),wcr=Jp();eHe.exports=function(t,r,i,n){function a(p,d){return QGe.coerce(t,r,vcr,p,d)}var o=t.marker?pcr.isOpenSymbol(t.marker.symbol):!1,s=NR.isBubble(t),l=mcr(t,r,n,a);if(!l){r.visible=!1;return}ycr(t,r,n,a),a("xhoverformat"),a("yhoverformat");var u=l{"use strict";var Tcr=$F();rHe.exports=function(t,r,i){var n=t.i;return"x"in t||(t.x=r._x[n]),"y"in t||(t.y=r._y[n]),Tcr(t,r,i)}});var aHe=W((DJr,nHe)=>{"use strict";function Acr(e,t,r,i,n){for(var a=n+1;i<=n;){var o=i+n>>>1,s=e[o],l=r!==void 0?r(s,t):s-t;l>=0?(a=o,n=o-1):i=o+1}return a}function Mcr(e,t,r,i,n){for(var a=n+1;i<=n;){var o=i+n>>>1,s=e[o],l=r!==void 0?r(s,t):s-t;l>0?(a=o,n=o-1):i=o+1}return a}function Scr(e,t,r,i,n){for(var a=i-1;i<=n;){var o=i+n>>>1,s=e[o],l=r!==void 0?r(s,t):s-t;l<0?(a=o,i=o+1):n=o-1}return a}function Ecr(e,t,r,i,n){for(var a=i-1;i<=n;){var o=i+n>>>1,s=e[o],l=r!==void 0?r(s,t):s-t;l<=0?(a=o,i=o+1):n=o-1}return a}function kcr(e,t,r,i,n){for(;i<=n;){var a=i+n>>>1,o=e[a],s=r!==void 0?r(o,t):o-t;if(s===0)return a;s<=0?i=a+1:n=a-1}return-1}function NE(e,t,r,i,n,a){return typeof r=="function"?a(e,t,r,i===void 0?0:i|0,n===void 0?e.length-1:n|0):a(e,t,void 0,r===void 0?0:r|0,i===void 0?e.length-1:i|0)}nHe.exports={ge:function(e,t,r,i,n){return NE(e,t,r,i,n,Acr)},gt:function(e,t,r,i,n){return NE(e,t,r,i,n,Mcr)},lt:function(e,t,r,i,n){return NE(e,t,r,i,n,Scr)},le:function(e,t,r,i,n){return NE(e,t,r,i,n,Ecr)},eq:function(e,t,r,i,n){return NE(e,t,r,i,n,kcr)}}});var mee=W((FJr,oHe)=>{oHe.exports=Ccr;function Ccr(e,t,r){return tr?r:e:et?t:e}});var X1=W((LJr,lHe)=>{"use strict";lHe.exports=function(t,r,i){var n={},a,o;if(typeof r=="string"&&(r=sHe(r)),Array.isArray(r)){var s={};for(o=0;o{"use strict";var Dcr=X1();uHe.exports=Fcr;function Fcr(e){var t;return arguments.length>1&&(e=arguments),typeof e=="string"?e=e.split(/\s/).map(parseFloat):typeof e=="number"&&(e=[e]),e.length&&typeof e[0]=="number"?e.length===1?t={width:e[0],height:e[0],x:0,y:0}:e.length===2?t={width:e[0],height:e[1],x:0,y:0}:t={x:e[0],y:e[1],width:e[2]-e[0]||0,height:e[3]-e[1]||0}:e&&(e=Dcr(e,{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"}),t={x:e.left||0,y:e.top||0},e.width==null?e.right?t.width=e.right-t.x:t.width=0:t.width=e.width,e.height==null?e.bottom?t.height=e.bottom-t.y:t.height=0:t.height=e.height),t}});var O_=W((IJr,cHe)=>{"use strict";cHe.exports=Lcr;function Lcr(e,t){if(!e||e.length==null)throw Error("Argument should be an array");t==null?t=1:t=Math.floor(t);for(var r=Array(t*2),i=0;in&&(n=e[o]),e[o]{"use strict";fHe.exports=function(){for(var t=0;t{dHe.exports=function(e){switch(e){case"int8":return Int8Array;case"int16":return Int16Array;case"int32":return Int32Array;case"uint8":return Uint8Array;case"uint16":return Uint16Array;case"uint32":return Uint32Array;case"float32":return Float32Array;case"float64":return Float64Array;case"array":return Array;case"uint8_clamped":return Uint8ClampedArray}}});var N_=W((BJr,vHe)=>{var pHe=UR();vHe.exports=Pcr;function Pcr(e,t,r){if(!e)throw new TypeError("must specify data as first parameter");if(r=+(r||0)|0,Array.isArray(e)&&e[0]&&typeof e[0][0]=="number"){var i=e[0].length,n=e.length*i,a,o,s,l;(!t||typeof t=="string")&&(t=new(pHe(t||"float32"))(n+r));var u=t.length-r;if(n!==u)throw new Error("source length "+n+" ("+i+"x"+e.length+") does not match destination length "+u);for(a=0,s=r;a{"use strict";gHe.exports=function(e){var t=typeof e;return e!==null&&(t==="object"||t==="function")}});var xHe=W((OJr,yHe)=>{"use strict";yHe.exports=Math.log2||function(e){return Math.log(e)*Math.LOG2E}});var SHe=W((NJr,MHe)=>{"use strict";var bHe=aHe(),_He=mee(),Icr=Z4(),Rcr=O_(),wHe=X1(),xee=hHe(),zcr=N_(),Bcr=mHe(),qcr=UR(),THe=xHe(),Ocr=1073741824;MHe.exports=function(t,r){r||(r={}),t=zcr(t,"float64"),r=wHe(r,{bounds:"range bounds dataBox databox",maxDepth:"depth maxDepth maxdepth level maxLevel maxlevel levels",dtype:"type dtype format out dst output destination"});let i=xee(r.maxDepth,255),n=xee(r.bounds,Rcr(t,2));n[0]===n[2]&&n[2]++,n[1]===n[3]&&n[3]++;let a=AHe(t,n),o=t.length>>>1,s;r.dtype||(r.dtype="array"),typeof r.dtype=="string"?s=new(qcr(r.dtype))(o):r.dtype&&(s=r.dtype,Array.isArray(s)&&(s.length=o));for(let g=0;gi||x>Ocr){for(let F=0;F$||y>Y||E=C||B===O)return;let K=l[I];O===void 0&&(O=K.length);for(let J=B;J=b&&ue<=x&&ge>=S&&ge<=T&&k.push(te)}let j=u[I],q=j[B*4+0],Q=j[B*4+1],U=j[B*4+2],V=j[B*4+3],X=L(j,B+1),G=F*.5,H=I+1;D(P,R,G,H,q,Q||U||V||X),D(P,R+G,G,H,Q,U||V||X),D(P+G,R,G,H,U,V||X),D(P+G,R+G,G,H,V,X)}function L(P,R){let F=null,I=0;for(;F===null;)if(F=P[R*4+I],I++,I>P.length)return null;return F}return k}function v(g,w,_,b,S){let x=[];for(let T=0;T{"use strict";EHe.exports=SHe()});var CHe=W((VJr,kHe)=>{kHe.exports=Ucr;var bee={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},Ncr=/([astvzqmhlc])([^astvzqmhlc]*)/ig;function Ucr(e){var t=[];return e.replace(Ncr,function(r,i,n){var a=i.toLowerCase();for(n=Gcr(n),a=="m"&&n.length>2&&(t.push([i].concat(n.splice(0,2))),a="l",i=i=="m"?"l":"L");;){if(n.length==bee[a])return n.unshift(i),t.push(n);if(n.length{DHe.exports=Hcr;function Hcr(e){var t=0,r=0,i=0,n=0;return e.map(function(a){a=a.slice();var o=a[0],s=o.toUpperCase();if(o!=s)switch(a[0]=s,o){case"a":a[6]+=i,a[7]+=n;break;case"v":a[1]+=n;break;case"h":a[1]+=i;break;default:for(var l=1;l{"use strict";Object.defineProperty(GR,"__esModule",{value:!0});var jcr=(function(){function e(t,r){var i=[],n=!0,a=!1,o=void 0;try{for(var s=t[Symbol.iterator](),l;!(n=(l=s.next()).done)&&(i.push(l.value),!(r&&i.length===r));n=!0);}catch(u){a=!0,o=u}finally{try{!n&&s.return&&s.return()}finally{if(a)throw o}}return i}return function(t,r){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),UE=Math.PI*2,_ee=function(t,r,i,n,a,o,s){var l=t.x,u=t.y;l*=r,u*=i;var c=n*l-a*u,f=a*l+n*u;return{x:c+o,y:f+s}},$cr=function(t,r){var i=r===1.5707963267948966?.551915024494:r===-1.5707963267948966?-.551915024494:1.3333333333333333*Math.tan(r/4),n=Math.cos(t),a=Math.sin(t),o=Math.cos(t+r),s=Math.sin(t+r);return[{x:n-a*i,y:a+n*i},{x:o+s*i,y:s-o*i},{x:o,y:s}]},LHe=function(t,r,i,n){var a=t*n-r*i<0?-1:1,o=t*i+r*n;return o>1&&(o=1),o<-1&&(o=-1),a*Math.acos(o)},Wcr=function(t,r,i,n,a,o,s,l,u,c,f,h){var p=Math.pow(a,2),d=Math.pow(o,2),v=Math.pow(f,2),m=Math.pow(h,2),g=p*d-p*m-d*v;g<0&&(g=0),g/=p*m+d*v,g=Math.sqrt(g)*(s===l?-1:1);var w=g*a/o*h,_=g*-o/a*f,b=c*w-u*_+(t+i)/2,S=u*w+c*_+(r+n)/2,x=(f-w)/a,T=(h-_)/o,A=(-f-w)/a,y=(-h-_)/o,E=LHe(1,0,x,T),M=LHe(x,T,A,y);return l===0&&M>0&&(M-=UE),l===1&&M<0&&(M+=UE),[b,S,E,M]},Ycr=function(t){var r=t.px,i=t.py,n=t.cx,a=t.cy,o=t.rx,s=t.ry,l=t.xAxisRotation,u=l===void 0?0:l,c=t.largeArcFlag,f=c===void 0?0:c,h=t.sweepFlag,p=h===void 0?0:h,d=[];if(o===0||s===0)return[];var v=Math.sin(u*UE/360),m=Math.cos(u*UE/360),g=m*(r-n)/2+v*(i-a)/2,w=-v*(r-n)/2+m*(i-a)/2;if(g===0&&w===0)return[];o=Math.abs(o),s=Math.abs(s);var _=Math.pow(g,2)/Math.pow(o,2)+Math.pow(w,2)/Math.pow(s,2);_>1&&(o*=Math.sqrt(_),s*=Math.sqrt(_));var b=Wcr(r,i,n,a,o,s,f,p,v,m,g,w),S=jcr(b,4),x=S[0],T=S[1],A=S[2],y=S[3],E=Math.abs(y)/(UE/4);Math.abs(1-E)<1e-7&&(E=1);var M=Math.max(Math.ceil(E),1);y/=M;for(var C=0;C{"use strict";zHe.exports=Zcr;var Xcr=IHe();function Zcr(e){for(var t,r=[],i=0,n=0,a=0,o=0,s=null,l=null,u=0,c=0,f=0,h=e.length;f4?(i=p[p.length-4],n=p[p.length-3]):(i=u,n=c),r.push(p)}return r}function HR(e,t,r,i){return["C",e,t,r,i,r,i]}function RHe(e,t,r,i,n,a){return["C",e/3+2/3*r,t/3+2/3*i,n/3+2/3*r,a/3+2/3*i,n,a]}});var wee=W((jJr,qHe)=>{"use strict";qHe.exports=function(t){return typeof t!="string"?!1:(t=t.trim(),!!(/^[mzlhvcsqta]\s*[-+.0-9][^mlhvzcsqta]+/i.test(t)&&/[\dz]$/i.test(t)&&t.length>4))}});var NHe=W(($Jr,OHe)=>{"use strict";var Kcr=CHe(),Jcr=FHe(),Qcr=BHe(),efr=wee();OHe.exports=tfr;function tfr(e){if(Array.isArray(e)&&e.length===1&&typeof e[0]=="string"&&(e=e[0]),typeof e=="string"){if(!efr(e))throw Error("String is not an SVG path.");e=Kcr(e)}if(!Array.isArray(e))throw Error("Argument should be a string or an array of path segments.");if(e=Jcr(e),e=Qcr(e),!e.length)return[0,0,0,0];for(var t=[1/0,1/0,-1/0,-1/0],r=0,i=e.length;rt[2]&&(t[2]=n[a+0]),n[a+1]>t[3]&&(t[3]=n[a+1]);return t}});var HHe=W((WJr,GHe)=>{"use strict";GHe.exports=rfr;var VE=1e20;function rfr(e,t){t||(t={});var r=t.cutoff==null?.25:t.cutoff,i=t.radius==null?8:t.radius,n=t.channel||0,a,o,s,l,u,c,f,h,p,d,v;if(ArrayBuffer.isView(e)||Array.isArray(e)){if(!t.width||!t.height)throw Error("For raw data width and height should be provided by options");a=t.width,o=t.height,l=e,t.stride?c=t.stride:c=Math.floor(e.length/a/o)}else window.HTMLCanvasElement&&e instanceof window.HTMLCanvasElement?(h=e,f=h.getContext("2d"),a=h.width,o=h.height,p=f.getImageData(0,0,a,o),l=p.data,c=4):window.CanvasRenderingContext2D&&e instanceof window.CanvasRenderingContext2D?(h=e.canvas,f=e,a=h.width,o=h.height,p=f.getImageData(0,0,a,o),l=p.data,c=4):window.ImageData&&e instanceof window.ImageData&&(p=e,a=e.width,o=e.height,l=p.data,c=4);if(s=Math.max(a,o),window.Uint8ClampedArray&&l instanceof window.Uint8ClampedArray||window.Uint8Array&&l instanceof window.Uint8Array)for(u=l,l=Array(a*o),d=0,v=Math.floor(u.length/c);dYHe});function YHe(e,t={}){if(!(0,$He.default)(e))throw Error("Invalid SVG path");let r,i;t.shape||Array.isArray(t)?[r,i]=t.shape||t:(r=Tee.width=t.width||t.w||200,i=Tee.height=t.height||t.h||200);let n=Math.min(r,i),a=t.stroke||0,o=t.viewbox||t.viewBox||(0,jHe.default)(e),s=[r/(o[2]-o[0]),i/(o[3]-o[1])],l=Math.min(s[0]||0,s[1]||0)/2;bv.fillStyle="black",bv.fillRect(0,0,r,i),bv.fillStyle="white",a&&(typeof a!="number"&&(a=1),bv.strokeStyle=a>0?"white":"black",bv.lineWidth=Math.abs(a)),bv.translate(r*.5,i*.5),bv.scale(l,l);let u=new Path2D(e);return bv.fill(u),a&&bv.stroke(u),bv.setTransform(1,0,0,1,0,0),(0,WHe.default)(bv,{cutoff:t.cutoff!=null?t.cutoff:.5,radius:t.radius!=null?t.radius:n*.5})}var jHe,$He,WHe,Tee,bv,ZHe=Ci(()=>{jHe=i1(NHe()),$He=i1(wee()),WHe=i1(HHe()),Tee=document.createElement("canvas"),bv=Tee.getContext("2d",{willReadFrequently:!0})});var V_=W((YJr,sje)=>{"use strict";var $R=un(),ifr=(ZHe(),Pt(XHe)).default,{normalize:jR}=ai(),nfr=xi(),Q4=it(),ql=Q4.isArrayOrTypedArray,K4=en(),KHe=Fs(),JHe=mm().formatColor,J4=Wo(),afr=AA(),Mee=OR(),GE=(O2(),Pt(q2)),ofr=(qg(),Pt(Bg)).DESELECTDIM,QHe={start:1,left:1,end:-1,right:-1,middle:0,center:0,bottom:1,top:-1},sfr=rh().appendArrayPointValue;function lfr(e,t){var r,i={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},n=e._context.plotGlPixelRatio;if(t.visible!==!0)return i;if(J4.hasText(t)&&(i.text=oje(e,t),i.textSel=tje(e,t,t.selected),i.textUnsel=tje(e,t,t.unselected)),J4.hasMarkers(t)&&(i.marker=Eee(e,t),i.markerSel=See(e,t,t.selected),i.markerUnsel=See(e,t,t.unselected),!t.unselected&&ql(t.marker.opacity))){var a=t.marker.opacity;for(i.markerUnsel.opacity=new Array(a.length),r=0;r500?"bold":"normal":e}function Eee(e,t){var r=t._length,i=t.marker,n={},a,o=ql(i.symbol),s=ql(i.angle),l=ql(i.color),u=ql(i.line.color),c=ql(i.opacity),f=ql(i.size),h=ql(i.line.width),p;if(o||(p=Mee.isOpenSymbol(i.symbol)),o||l||u||c||s){n.symbols=new Array(r),n.angles=new Array(r),n.colors=new Array(r),n.borderColors=new Array(r);var d=i.symbol,v=i.angle,m=JHe(i,i.opacity,r),g=JHe(i.line,i.opacity,r);if(!ql(g[0])){var w=g;for(g=Array(r),a=0;aGE.TOO_MANY_POINTS||J4.hasMarkers(t)?"rect":"round";if(u&&t.connectgaps){var f=a[0],h=a[1];for(o=0;o1?l[o]:l[0]:l,p=ql(u)?u.length>1?u[o]:u[0]:u,d=QHe[h],v=QHe[p],m=c?c/.8+1:0,g=-v*m-v*.5;a.offset[o]=[d*m/f,g/f]}}return a}sje.exports={style:lfr,markerStyle:Eee,markerSelection:See,linePositions:cfr,errorBarPositions:ffr,textPosition:hfr}});var kee=W((XJr,lje)=>{"use strict";var WR=it();lje.exports=function(t,r){var i=r._scene,n={count:0,dirty:!0,lineOptions:[],fillOptions:[],markerOptions:[],markerSelectedOptions:[],markerUnselectedOptions:[],errorXOptions:[],errorYOptions:[],textOptions:[],textSelectedOptions:[],textUnselectedOptions:[],selectBatch:[],unselectBatch:[]},a={fill2d:!1,scatter2d:!1,error2d:!1,line2d:!1,glText:!1,select2d:!1};return r._scene||(i=r._scene={},i.init=function(){WR.extendFlat(i,a,n)},i.init(),i.update=function(s){var l=WR.repeat(s,i.count);if(i.fill2d&&i.fill2d.update(l),i.scatter2d&&i.scatter2d.update(l),i.line2d&&i.line2d.update(l),i.error2d&&i.error2d.update(l.concat(l)),i.select2d&&i.select2d.update(l),i.glText)for(var u=0;u{"use strict";var dfr=VR(),e6=it(),uje=Fs(),pfr=jp().findExtremes,cje=Qp(),Cee=Fd(),vfr=Cee.calcMarkerSize,gfr=Cee.calcAxisExpansion,mfr=Cee.setFirstScatter,yfr=Dd(),t6=V_(),xfr=kee(),fje=(ta(),Pt(ra)).BADNUM,bfr=(O2(),Pt(q2)).TOO_MANY_POINTS;dje.exports=function(t,r){var i=t._fullLayout,n=r._xA=uje.getFromId(t,r.xaxis,"x"),a=r._yA=uje.getFromId(t,r.yaxis,"y"),o=i._plots[r.xaxis+r.yaxis],s=r._length,l=s>=bfr,u=s*2,c={},f,h=n.makeCalcdata(r,"x"),p=a.makeCalcdata(r,"y"),d=cje(r,n,"x",h),v=cje(r,a,"y",p),m=d.vals,g=v.vals;r._x=m,r._y=g,r.xperiodalignment&&(r._origX=h,r._xStarts=d.starts,r._xEnds=d.ends),r.yperiodalignment&&(r._origY=p,r._yStarts=v.starts,r._yEnds=v.ends);var w=new Array(u),_=new Array(s);for(f=0;f1&&e6.extendFlat(o.line,t6.linePositions(e,r,i)),o.errorX||o.errorY){var s=t6.errorBarPositions(e,r,i,n,a);o.errorX&&e6.extendFlat(o.errorX,s.x),o.errorY&&e6.extendFlat(o.errorY,s.y)}return o.text&&(e6.extendFlat(o.text,{positions:i},t6.textPosition(e,r,o.text,o.marker)),e6.extendFlat(o.textSel,{positions:i},t6.textPosition(e,r,o.text,o.markerSel)),e6.extendFlat(o.textUnsel,{positions:i},t6.textPosition(e,r,o.text,o.markerUnsel))),o}});var Dee=W((KJr,gje)=>{"use strict";var vje=it(),wfr=ai(),Tfr=(qg(),Pt(Bg)).DESELECTDIM;function Afr(e){var t=e[0],r=t.trace,i=t.t,n=i._scene,a=i.index,o=n.selectBatch[a],s=n.unselectBatch[a],l=n.textOptions[a],u=n.textSelectedOptions[a]||{},c=n.textUnselectedOptions[a]||{},f=vje.extendFlat({},l),h,p;if(o.length||s.length){var d=u.color,v=c.color,m=l.color,g=vje.isArrayOrTypedArray(m);for(f.color=new Array(r._length),h=0;h{"use strict";var mje=Wo(),Mfr=Dee().styleTextSelection;yje.exports=function(t,r){var i=t.cd,n=t.xaxis,a=t.yaxis,o=[],s=i[0].trace,l=i[0].t,u=s._length,c=l.x,f=l.y,h=l._scene,p=l.index;if(!h)return o;var d=mje.hasText(s),v=mje.hasMarkers(s),m=!v&&!d;if(s.visible!==!0||m)return o;var g=[],w=[];if(r!==!1&&!r.degenerate)for(var _=0;_{"use strict";var Sfr=qR();xje.exports={moduleType:"trace",name:"scattergl",basePlotModule:vl(),categories:["gl","regl","cartesian","symbols","errorBarsOK","showLegend","scatter-like"],attributes:OE(),supplyDefaults:tHe(),crossTraceDefaults:h$(),colorbar:kc(),formatLabels:iHe(),calc:pje(),hoverPoints:Sfr.hoverPoints,selectPoints:Fee(),meta:{}}});var wje=W((eQr,_je)=>{"use strict";_je.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 Sje=W((tQr,Mje)=>{"use strict";var Tje=wje();Mje.exports=Efr;var Aje={red:0,orange:60,yellow:120,green:180,blue:240,purple:300};function Efr(e){var t,r=[],i=1,n;if(typeof e=="string")if(e=e.toLowerCase(),Tje[e])r=Tje[e].slice(),n="rgb";else if(e==="transparent")i=0,n="rgb",r=[0,0,0];else if(/^#[A-Fa-f0-9]+$/.test(e)){var a=e.slice(1),o=a.length,s=o<=4;i=1,s?(r=[parseInt(a[0]+a[0],16),parseInt(a[1]+a[1],16),parseInt(a[2]+a[2],16)],o===4&&(i=parseInt(a[3]+a[3],16)/255)):(r=[parseInt(a[0]+a[1],16),parseInt(a[2]+a[3],16),parseInt(a[4]+a[5],16)],o===8&&(i=parseInt(a[6]+a[7],16)/255)),r[0]||(r[0]=0),r[1]||(r[1]=0),r[2]||(r[2]=0),n="rgb"}else if(t=/^((?:rgb|hs[lvb]|hwb|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms)a?)\s*\(([^\)]*)\)/.exec(e)){var l=t[1],u=l==="rgb",a=l.replace(/a$/,"");n=a;var o=a==="cmyk"?4:a==="gray"?1:3;r=t[2].trim().split(/\s*[,\/]\s*|\s+/).map(function(h,p){if(/%$/.test(h))return p===o?parseFloat(h)/100:a==="rgb"?parseFloat(h)*255/100:parseFloat(h);if(a[p]==="h"){if(/deg$/.test(h))return parseFloat(h);if(Aje[h]!==void 0)return Aje[h]}return parseFloat(h)}),l===a&&r.push(1),i=u||r[o]===void 0?1:r[o],r=r.slice(0,o)}else e.length>10&&/[0-9](?:\s|\/)/.test(e)&&(r=e.match(/([0-9]+)/g).map(function(c){return parseFloat(c)}),n=e.match(/([a-z])/ig).join("").toLowerCase());else isNaN(e)?Array.isArray(e)||e.length?(r=[e[0],e[1],e[2]],n="rgb",i=e.length===4?e[3]:1):e instanceof Object&&(e.r!=null||e.red!=null||e.R!=null?(n="rgb",r=[e.r||e.red||e.R||0,e.g||e.green||e.G||0,e.b||e.blue||e.B||0]):(n="hsl",r=[e.h||e.hue||e.H||0,e.s||e.saturation||e.S||0,e.l||e.lightness||e.L||e.b||e.brightness]),i=e.a||e.alpha||e.opacity||1,e.opacity!=null&&(i/=100)):(n="rgb",r=[e>>>16,(e&65280)>>>8,e&255]);return{space:n,values:r,alpha:i}}});var kje=W((rQr,Eje)=>{"use strict";var kfr=Sje();Eje.exports=function(t){Array.isArray(t)&&t.raw&&(t=String.raw.apply(null,arguments));var r,i,n,a=kfr(t);if(!a.space)return[];var o=[0,0,0],s=a.space[0]==="h"?[360,100,100]:[255,255,255];return r=Array(3),r[0]=Math.min(Math.max(a.values[0],o[0]),s[0]),r[1]=Math.min(Math.max(a.values[1],o[1]),s[1]),r[2]=Math.min(Math.max(a.values[2],o[2]),s[2]),a.space[0]==="h"&&(r=Cfr(r)),r.push(Math.min(Math.max(a.alpha,0),1)),r};function Cfr(e){var t=e[0]/360,r=e[1]/100,i=e[2]/100,n,a,o,s,l,u=0;if(r===0)return l=i*255,[l,l,l];for(a=i<.5?i*(1+r):i+r-i*r,n=2*i-a,s=[0,0,0];u<3;)o=t+1/3*-(u-1),o<0?o++:o>1&&o--,l=6*o<1?n+(a-n)*6*o:2*o<1?a:3*o<2?n+(a-n)*(2/3-o)*6:n,s[u++]=l*255;return s}});var HE=W((iQr,Cje)=>{"use strict";var Dfr=kje(),Ffr=UR();Cje.exports=function(t,r){(r==="float"||!r)&&(r="array"),r==="uint"&&(r="uint8"),r==="uint_clamped"&&(r="uint8_clamped");var i=Ffr(r),n=new i(4),a=r!=="uint8"&&r!=="uint8_clamped";return(!t.length||typeof t=="string")&&(t=Dfr(t),t[0]/=255,t[1]/=255,t[2]/=255),Lfr(t)?(n[0]=t[0],n[1]=t[1],n[2]=t[2],n[3]=t[3]!=null?t[3]:255,a&&(n[0]/=255,n[1]/=255,n[2]/=255,n[3]/=255),n):(a?(n[0]=t[0],n[1]=t[1],n[2]=t[2],n[3]=t[3]!=null?t[3]:1):(n[0]=Math.min(Math.max(Math.floor(t[0]*255),0),255),n[1]=Math.min(Math.max(Math.floor(t[1]*255),0),255),n[2]=Math.min(Math.max(Math.floor(t[2]*255),0),255),n[3]=t[3]==null?255:Math.min(Math.max(Math.floor(t[3]*255),0),255)),n)};function Lfr(e){return!!(e instanceof Uint8Array||e instanceof Uint8ClampedArray||Array.isArray(e)&&(e[0]>1||e[0]===0)&&(e[1]>1||e[1]===0)&&(e[2]>1||e[2]===0)&&(!e[3]||e[3]>1))}});var Fje=W((nQr,XR)=>{"use strict";var YR=mee();XR.exports=Dje;XR.exports.to=Dje;XR.exports.from=Pfr;function Dje(e,t){t==null&&(t=!0);var r=e[0],i=e[1],n=e[2],a=e[3];a==null&&(a=t?1:255),t&&(r*=255,i*=255,n*=255,a*=255),r=YR(r,0,255)&255,i=YR(i,0,255)&255,n=YR(n,0,255)&255,a=YR(a,0,255)&255;var o=r*16777216+(i<<16)+(n<<8)+a;return o}function Pfr(e,t){e=+e;var r=e>>>24,i=(e&16711680)>>>16,n=(e&65280)>>>8,a=e&255;return t===!1?[r,i,n,a]:[r/255,i/255,n/255,a/255]}});var Pje=W((aQr,Lje)=>{Lje.exports=function(e){typeof e=="string"&&(e=[e]);for(var t=[].slice.call(arguments,1),r=[],i=0;i{"use strict";Ije.exports=function(t,r,i){Array.isArray(i)||(i=[].slice.call(arguments,2));for(var n=0,a=i.length;n{"use strict";r6.exports=jE;r6.exports.float32=r6.exports.float=jE;r6.exports.fract32=r6.exports.fract=Ifr;var Rje=new Float32Array(1);function Ifr(e,t){if(e.length){if(e instanceof Float32Array)return new Float32Array(e.length);t instanceof Float32Array||(t=jE(e));for(var r=0,i=t.length;r{"use strict";var Rfr=HE(),zfr=O_(),Bfr=Fje(),qfr=VR(),KR=Pje(),Ofr=X1(),Nfr=Lee(),Ufr=N_(),JR=ZR(),Vfr=Z4(),Gfr=Ic;function Ic(e,t){if(!(this instanceof Ic))return new Ic(e,t);typeof e=="function"?(t||(t={}),t.regl=e):(t=e,e=null),t&&t.length&&(t.positions=t),e=t.regl;let r=e._gl,i,n=[],a={},o=[],s=[null],l=[null],u=255,c=100;this.tooManyColors=!1,i=e.texture({data:new Uint8Array(u*4),width:u,height:1,type:"uint8",format:"rgba",wrapS:"clamp",wrapT:"clamp",mag:"nearest",min:"nearest"}),Object.assign(this,{regl:e,gl:r,groups:o,markerCache:l,markerTextures:s,palette:n,paletteIds:a,paletteTexture:i,maxColors:u,maxSize:c,canvas:r.canvas}),this.update(t);let f={uniforms:{constPointSize:!!t.constPointSize,opacity:e.prop("opacity"),paletteSize:(d,v)=>[this.tooManyColors?0:u,i.height],pixelRatio:e.context("pixelRatio"),scale:e.prop("scale"),scaleFract:e.prop("scaleFract"),translate:e.prop("translate"),translateFract:e.prop("translateFract"),markerTexture:e.prop("markerTexture"),paletteTexture:i},attributes:{x:(d,v)=>v.xAttr||{buffer:v.positionBuffer,stride:8,offset:0},y:(d,v)=>v.yAttr||{buffer:v.positionBuffer,stride:8,offset:4},xFract:(d,v)=>v.xAttr?{constant:[0,0]}:{buffer:v.positionFractBuffer,stride:8,offset:0},yFract:(d,v)=>v.yAttr?{constant:[0,0]}:{buffer:v.positionFractBuffer,stride:8,offset:4},size:(d,v)=>v.size.length?{buffer:v.sizeBuffer,stride:2,offset:0}:{constant:[Math.round(v.size*255/this.maxSize)]},borderSize:(d,v)=>v.borderSize.length?{buffer:v.sizeBuffer,stride:2,offset:1}:{constant:[Math.round(v.borderSize*255/this.maxSize)]},colorId:(d,v)=>v.color.length?{buffer:v.colorBuffer,stride:this.tooManyColors?8:4,offset:0}:{constant:this.tooManyColors?n.slice(v.color*4,v.color*4+4):[v.color]},borderColorId:(d,v)=>v.borderColor.length?{buffer:v.colorBuffer,stride:this.tooManyColors?8:4,offset:this.tooManyColors?4:2}:{constant:this.tooManyColors?n.slice(v.borderColor*4,v.borderColor*4+4):[v.borderColor]},isActive:(d,v)=>v.activation===!0?{constant:[1]}:v.activation?v.activation:{constant:[0]}},blend:{enable:!0,color:[0,0,0,1],func:{srcRGB:"src alpha",dstRGB:"one minus src alpha",srcAlpha:"one minus dst alpha",dstAlpha:"one"}},scissor:{enable:!0,box:e.prop("viewport")},viewport:e.prop("viewport"),stencil:{enable:!1},depth:{enable:!1},elements:e.prop("elements"),count:e.prop("count"),offset:e.prop("offset"),primitive:"points"},h=Object.assign({},f);h.frag=KR([`precision highp float; +`]);a.createShader=function(p){var d=s(p,u,c,null,[{name:"uv",type:"vec4"},{name:"f",type:"vec3"},{name:"normal",type:"vec3"}]);return d.attributes.uv.location=0,d.attributes.f.location=1,d.attributes.normal.location=2,d},a.createPickShader=function(p){var d=s(p,u,h,null,[{name:"uv",type:"vec4"},{name:"f",type:"vec3"},{name:"normal",type:"vec3"}]);return d.attributes.uv.location=0,d.attributes.f.location=1,d.attributes.normal.location=2,d},a.createContourShader=function(p){var d=s(p,f,c,null,[{name:"uv",type:"vec4"},{name:"f",type:"float"}]);return d.attributes.uv.location=0,d.attributes.f.location=1,d},a.createPickContourShader=function(p){var d=s(p,f,h,null,[{name:"uv",type:"vec4"},{name:"f",type:"float"}]);return d.attributes.uv.location=0,d.attributes.f.location=1,d}},9499(n,a,o){"use strict";n.exports=Y;var s=o(8828),l=o(2762),u=o(8116),c=o(7766),f=o(1888),h=o(6729),p=o(5298),d=o(9994),v=o(9618),m=o(3711),g=o(6760),w=o(7608),_=o(2478),b=o(6199),S=o(990),x=S.createShader,A=S.createContourShader,T=S.createPickShader,y=S.createPickContourShader,E=40,M=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],C=[[0,0],[0,1],[1,0],[1,1],[1,0],[0,1]],k=[[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 H=0;H<3;++H){var j=k[H],Q=(H+1)%3,te=(H+2)%3;j[Q+0]=1,j[te+3]=1,j[H+6]=1}})();function D(H,j,Q,te,ue){this.position=H,this.index=j,this.uv=Q,this.level=te,this.dataCoordinate=ue}var F=256;function P(H,j,Q,te,ue,ge,Ee,xe,ce,oe,Se,be,fe,ee,ae){this.gl=H,this.shape=j,this.bounds=Q,this.objectOffset=ae,this.intensityBounds=[],this._shader=te,this._pickShader=ue,this._coordinateBuffer=ge,this._vao=Ee,this._colorMap=xe,this._contourShader=ce,this._contourPickShader=oe,this._contourBuffer=Se,this._contourVAO=be,this._contourOffsets=[[],[],[]],this._contourCounts=[[],[],[]],this._vertexCount=0,this._pickResult=new D([0,0,0],[0,0],[0,0],[0,0,0],[0,0,0]),this._dynamicBuffer=fe,this._dynamicVAO=ee,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=[v(f.mallocFloat(1024),[0,0]),v(f.mallocFloat(1024),[0,0]),v(f.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 R=P.prototype;R.genColormap=function(H,j){var Q=!1,te=d([h({colormap:H,nshades:F,format:"rgba"}).map(function(ue,ge){var Ee=j?L(ge/255,j):ue[3];return Ee<1&&(Q=!0),[ue[0],ue[1],ue[2],255*Ee]})]);return p.divseq(te,255),this.hasAlphaScale=Q,te},R.isTransparent=function(){return this.opacity<1||this.hasAlphaScale},R.isOpaque=function(){return!this.isTransparent()},R.pickSlots=1,R.setPickBase=function(H){this.pickId=H};function L(H,j){if(!j||!j.length)return 1;for(var Q=0;QH&&Q>0){var te=(j[Q][0]-H)/(j[Q][0]-j[Q-1][0]);return j[Q][1]*(1-te)+te*j[Q-1][1]}}return 1}var I=[0,0,0],B={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 O(H,j){var Q,te,ue,ge=j.axes&&j.axes.lastCubeProps.axis||I,Ee=j.showSurface,xe=j.showContour;for(Q=0;Q<3;++Q)for(Ee=Ee||j.surfaceProject[Q],te=0;te<3;++te)xe=xe||j.contourProject[Q][te];for(Q=0;Q<3;++Q){var ce=B.projections[Q];for(te=0;te<16;++te)ce[te]=0;for(te=0;te<4;++te)ce[5*te]=1;ce[5*Q]=0,ce[12+Q]=j.axesBounds[+(ge[Q]>0)][Q],g(ce,H.model,ce);var oe=B.clipBounds[Q];for(ue=0;ue<2;++ue)for(te=0;te<3;++te)oe[ue][te]=H.clipBounds[ue][te];oe[0][Q]=-1e8,oe[1][Q]=1e8}return B.showSurface=Ee,B.showContour=xe,B}var $={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},X=M.slice(),K=[1,0,0,0,1,0,0,0,1];function G(H,j){H=H||{};var Q=this.gl;Q.disable(Q.CULL_FACE),this._colorMap.bind(0);var te=$;te.model=H.model||M,te.view=H.view||M,te.projection=H.projection||M,te.lowerBound=[this.bounds[0][0],this.bounds[0][1],this.colorBounds[0]||this.bounds[0][2]],te.upperBound=[this.bounds[1][0],this.bounds[1][1],this.colorBounds[1]||this.bounds[1][2]],te.objectOffset=this.objectOffset,te.contourColor=this.contourColor[0],te.inverseModel=w(te.inverseModel,te.model);for(var ue=0;ue<2;++ue)for(var ge=te.clipBounds[ue],Ee=0;Ee<3;++Ee)ge[Ee]=Math.min(Math.max(this.clipBounds[ue][Ee],-1e8),1e8);te.kambient=this.ambientLight,te.kdiffuse=this.diffuseLight,te.kspecular=this.specularLight,te.roughness=this.roughness,te.fresnel=this.fresnel,te.opacity=this.opacity,te.height=0,te.permutation=K,te.vertexColor=this.vertexColor;var xe=X;for(g(xe,te.view,te.model),g(xe,te.projection,xe),w(xe,xe),ue=0;ue<3;++ue)te.eyePosition[ue]=xe[12+ue]/xe[15];var ce=xe[15];for(ue=0;ue<3;++ue)ce+=this.lightPosition[ue]*xe[4*ue+3];for(ue=0;ue<3;++ue){var oe=xe[12+ue];for(Ee=0;Ee<3;++Ee)oe+=xe[4*Ee+ue]*this.lightPosition[Ee];te.lightPosition[ue]=oe/ce}var Se=O(te,this);if(Se.showSurface){for(this._shader.bind(),this._shader.uniforms=te,this._vao.bind(),this.showSurface&&this._vertexCount&&this._vao.draw(Q.TRIANGLES,this._vertexCount),ue=0;ue<3;++ue)!this.surfaceProject[ue]||!this.vertexCount||(this._shader.uniforms.model=Se.projections[ue],this._shader.uniforms.clipBounds=Se.clipBounds[ue],this._vao.draw(Q.TRIANGLES,this._vertexCount));this._vao.unbind()}if(Se.showContour){var be=this._contourShader;te.kambient=1,te.kdiffuse=0,te.kspecular=0,te.opacity=1,be.bind(),be.uniforms=te;var fe=this._contourVAO;for(fe.bind(),ue=0;ue<3;++ue)for(be.uniforms.permutation=k[ue],Q.lineWidth(this.contourWidth[ue]*this.pixelRatio),Ee=0;Ee>4)/16)/255,ue=Math.floor(te),ge=te-ue,Ee=j[1]*(H.value[1]+(H.value[2]&15)/16)/255,xe=Math.floor(Ee),ce=Ee-xe;ue+=1,xe+=1;var oe=Q.position;oe[0]=oe[1]=oe[2]=0;for(var Se=0;Se<2;++Se)for(var be=Se?ge:1-ge,fe=0;fe<2;++fe)for(var ee=fe?ce:1-ce,ae=ue+Se,_e=xe+fe,re=be*ee,pe=0;pe<3;++pe)oe[pe]+=this._field[pe].get(ae,_e)*re;for(var Te=this._pickResult.level,Ce=0;Ce<3;++Ce)if(Te[Ce]=_.le(this.contourLevels[Ce],oe[Ce]),Te[Ce]<0)this.contourLevels[Ce].length>0&&(Te[Ce]=0);else if(Te[Ce]Math.abs(we-oe[Ce])&&(Te[Ce]+=1)}for(Q.index[0]=ge<.5?ue:ue+1,Q.index[1]=ce<.5?xe:xe+1,Q.uv[0]=te/j[0],Q.uv[1]=Ee/j[1],pe=0;pe<3;++pe)Q.dataCoordinate[pe]=this._field[pe].get(Q.index[0],Q.index[1]);return Q},R.padField=function(H,j){var Q=j.shape.slice(),te=H.shape.slice();p.assign(H.lo(1,1).hi(Q[0],Q[1]),j),p.assign(H.lo(1).hi(Q[0],1),j.hi(Q[0],1)),p.assign(H.lo(1,te[1]-1).hi(Q[0],1),j.lo(0,Q[1]-1).hi(Q[0],1)),p.assign(H.lo(0,1).hi(1,Q[1]),j.hi(1)),p.assign(H.lo(te[0]-1,1).hi(1,Q[1]),j.lo(Q[0]-1)),H.set(0,0,j.get(0,0)),H.set(0,te[1]-1,j.get(0,Q[1]-1)),H.set(te[0]-1,0,j.get(Q[0]-1,0)),H.set(te[0]-1,te[1]-1,j.get(Q[0]-1,Q[1]-1))};function J(H,j){return Array.isArray(H)?[j(H[0]),j(H[1]),j(H[2])]:[j(H),j(H),j(H)]}function N(H){return Array.isArray(H)?H.length===3?[H[0],H[1],H[2],1]:[H[0],H[1],H[2],H[3]]:[0,0,0,1]}function V(H){if(Array.isArray(H)){if(Array.isArray(H))return[N(H[0]),N(H[1]),N(H[2])];var j=N(H);return[j.slice(),j.slice(),j.slice()]}}R.update=function(H){H=H||{},this.objectOffset=H.objectOffset||this.objectOffset,this.dirty=!0,"contourWidth"in H&&(this.contourWidth=J(H.contourWidth,Number)),"showContour"in H&&(this.showContour=J(H.showContour,Boolean)),"showSurface"in H&&(this.showSurface=!!H.showSurface),"contourTint"in H&&(this.contourTint=J(H.contourTint,Boolean)),"contourColor"in H&&(this.contourColor=V(H.contourColor)),"contourProject"in H&&(this.contourProject=J(H.contourProject,function(gn){return J(gn,Boolean)})),"surfaceProject"in H&&(this.surfaceProject=H.surfaceProject),"dynamicColor"in H&&(this.dynamicColor=V(H.dynamicColor)),"dynamicTint"in H&&(this.dynamicTint=J(H.dynamicTint,Number)),"dynamicWidth"in H&&(this.dynamicWidth=J(H.dynamicWidth,Number)),"opacity"in H&&(this.opacity=H.opacity),"opacityscale"in H&&(this.opacityscale=H.opacityscale),"colorBounds"in H&&(this.colorBounds=H.colorBounds),"vertexColor"in H&&(this.vertexColor=H.vertexColor?1:0),"colormap"in H&&this._colorMap.setPixels(this.genColormap(H.colormap,this.opacityscale));var j=H.field||H.coords&&H.coords[2]||null,Q=!1;if(j||(this._field[2].shape[0]||this._field[2].shape[2]?j=this._field[2].lo(1,1).hi(this._field[2].shape[0]-2,this._field[2].shape[1]-2):j=this._field[2].hi(0,0)),"field"in H||"coords"in H){var te=(j.shape[0]+2)*(j.shape[1]+2);te>this._field[2].data.length&&(f.freeFloat(this._field[2].data),this._field[2].data=f.mallocFloat(s.nextPow2(te))),this._field[2]=v(this._field[2].data,[j.shape[0]+2,j.shape[1]+2]),this.padField(this._field[2],j),this.shape=j.shape.slice();for(var ue=this.shape,ge=0;ge<2;++ge)this._field[2].size>this._field[ge].data.length&&(f.freeFloat(this._field[ge].data),this._field[ge].data=f.mallocFloat(this._field[2].size)),this._field[ge]=v(this._field[ge].data,[ue[0]+2,ue[1]+2]);if(H.coords){var Ee=H.coords;if(!Array.isArray(Ee)||Ee.length!==3)throw new Error("gl-surface: invalid coordinates for x/y");for(ge=0;ge<2;++ge){var xe=Ee[ge];for(fe=0;fe<2;++fe)if(xe.shape[fe]!==ue[fe])throw new Error("gl-surface: coords have incorrect shape");this.padField(this._field[ge],xe)}}else if(H.ticks){var ce=H.ticks;if(!Array.isArray(ce)||ce.length!==2)throw new Error("gl-surface: invalid ticks");for(ge=0;ge<2;++ge){var oe=ce[ge];if((Array.isArray(oe)||oe.length)&&(oe=v(oe)),oe.shape[0]!==ue[ge])throw new Error("gl-surface: invalid tick length");var Se=v(oe.data,ue);Se.stride[ge]=oe.stride[0],Se.stride[ge^1]=0,this.padField(this._field[ge],Se)}}else{for(ge=0;ge<2;++ge){var be=[0,0];be[ge]=1,this._field[ge]=v(this._field[ge].data,[ue[0]+2,ue[1]+2],be,0)}this._field[0].set(0,0,0);for(var fe=0;fe0){for(var pn=0;pn<5;++pn)lr.pop();Oe-=1}continue e}}}Ge.push(Oe)}this._contourOffsets[Ot]=Cr,this._contourCounts[Ot]=Ge}var zn=f.mallocFloat(lr.length);for(ge=0;geD||C<0||C>D)throw new Error("gl-texture2d: Invalid texture size");return E._shape=[M,C],E.bind(),k.texImage2D(k.TEXTURE_2D,0,E.format,M,C,0,E.format,E.type,null),E._mipLevels=[0],E}function g(E,M,C,k,D,F){this.gl=E,this.handle=M,this.format=D,this.type=F,this._shape=[C,k],this._mipLevels=[0],this._magFilter=E.NEAREST,this._minFilter=E.NEAREST,this._wrapS=E.CLAMP_TO_EDGE,this._wrapT=E.CLAMP_TO_EDGE,this._anisoSamples=1;var P=this,R=[this._wrapS,this._wrapT];Object.defineProperties(R,[{get:function(){return P._wrapS},set:function(I){return P.wrapS=I}},{get:function(){return P._wrapT},set:function(I){return P.wrapT=I}}]),this._wrapVector=R;var L=[this._shape[0],this._shape[1]];Object.defineProperties(L,[{get:function(){return P._shape[0]},set:function(I){return P.width=I}},{get:function(){return P._shape[1]},set:function(I){return P.height=I}}]),this._shapeVector=L}var w=g.prototype;Object.defineProperties(w,{minFilter:{get:function(){return this._minFilter},set:function(E){this.bind();var M=this.gl;if(this.type===M.FLOAT&&c.indexOf(E)>=0&&(M.getExtension("OES_texture_float_linear")||(E=M.NEAREST)),f.indexOf(E)<0)throw new Error("gl-texture2d: Unknown filter mode "+E);return M.texParameteri(M.TEXTURE_2D,M.TEXTURE_MIN_FILTER,E),this._minFilter=E}},magFilter:{get:function(){return this._magFilter},set:function(E){this.bind();var M=this.gl;if(this.type===M.FLOAT&&c.indexOf(E)>=0&&(M.getExtension("OES_texture_float_linear")||(E=M.NEAREST)),f.indexOf(E)<0)throw new Error("gl-texture2d: Unknown filter mode "+E);return M.texParameteri(M.TEXTURE_2D,M.TEXTURE_MAG_FILTER,E),this._magFilter=E}},mipSamples:{get:function(){return this._anisoSamples},set:function(E){var M=this._anisoSamples;if(this._anisoSamples=Math.max(E,1)|0,M!==this._anisoSamples){var C=this.gl.getExtension("EXT_texture_filter_anisotropic");C&&this.gl.texParameterf(this.gl.TEXTURE_2D,C.TEXTURE_MAX_ANISOTROPY_EXT,this._anisoSamples)}return this._anisoSamples}},wrapS:{get:function(){return this._wrapS},set:function(E){if(this.bind(),h.indexOf(E)<0)throw new Error("gl-texture2d: Unknown wrap mode "+E);return this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_WRAP_S,E),this._wrapS=E}},wrapT:{get:function(){return this._wrapT},set:function(E){if(this.bind(),h.indexOf(E)<0)throw new Error("gl-texture2d: Unknown wrap mode "+E);return this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_WRAP_T,E),this._wrapT=E}},wrap:{get:function(){return this._wrapVector},set:function(E){if(Array.isArray(E)||(E=[E,E]),E.length!==2)throw new Error("gl-texture2d: Must specify wrap mode for rows and columns");for(var M=0;M<2;++M)if(h.indexOf(E[M])<0)throw new Error("gl-texture2d: Unknown wrap mode "+E);this._wrapS=E[0],this._wrapT=E[1];var C=this.gl;return this.bind(),C.texParameteri(C.TEXTURE_2D,C.TEXTURE_WRAP_S,this._wrapS),C.texParameteri(C.TEXTURE_2D,C.TEXTURE_WRAP_T,this._wrapT),E}},shape:{get:function(){return this._shapeVector},set:function(E){if(!Array.isArray(E))E=[E|0,E|0];else if(E.length!==2)throw new Error("gl-texture2d: Invalid texture shape");return m(this,E[0]|0,E[1]|0),[E[0]|0,E[1]|0]}},width:{get:function(){return this._shape[0]},set:function(E){return E=E|0,m(this,E,this._shape[1]),E}},height:{get:function(){return this._shape[1]},set:function(E){return E=E|0,m(this,this._shape[0],E),E}}}),w.bind=function(E){var M=this.gl;return E!==void 0&&M.activeTexture(M.TEXTURE0+(E|0)),M.bindTexture(M.TEXTURE_2D,this.handle),E!==void 0?E|0:M.getParameter(M.ACTIVE_TEXTURE)-M.TEXTURE0},w.dispose=function(){this.gl.deleteTexture(this.handle)},w.generateMipmap=function(){this.bind(),this.gl.generateMipmap(this.gl.TEXTURE_2D);for(var E=Math.min(this._shape[0],this._shape[1]),M=0;E>0;++M,E>>>=1)this._mipLevels.indexOf(M)<0&&this._mipLevels.push(M)},w.setPixels=function(E,M,C,k){var D=this.gl;this.bind(),Array.isArray(M)?(k=C,C=M[1]|0,M=M[0]|0):(M=M||0,C=C||0),k=k||0;var F=d(E)?E:E.raw;if(F){var P=this._mipLevels.indexOf(k)<0;P?(D.texImage2D(D.TEXTURE_2D,0,this.format,this.format,this.type,F),this._mipLevels.push(k)):D.texSubImage2D(D.TEXTURE_2D,k,M,C,this.format,this.type,F)}else if(E.shape&&E.stride&&E.data){if(E.shape.length<2||M+E.shape[1]>this._shape[1]>>>k||C+E.shape[0]>this._shape[0]>>>k||M<0||C<0)throw new Error("gl-texture2d: Texture dimensions are out of bounds");b(D,M,C,k,this.format,this.type,this._mipLevels,E)}else throw new Error("gl-texture2d: Unsupported data type")};function _(E,M){return E.length===3?M[2]===1&&M[1]===E[0]*E[2]&&M[0]===E[2]:M[0]===1&&M[1]===E[0]}function b(E,M,C,k,D,F,P,R){var L=R.dtype,I=R.shape.slice();if(I.length<2||I.length>3)throw new Error("gl-texture2d: Invalid ndarray, must be 2d or 3d");var B=0,O=0,$=_(I,R.stride.slice());L==="float32"?B=E.FLOAT:L==="float64"?(B=E.FLOAT,$=!1,L="float32"):L==="uint8"?B=E.UNSIGNED_BYTE:(B=E.UNSIGNED_BYTE,$=!1,L="uint8");var X=1;if(I.length===2)O=E.LUMINANCE,I=[I[0],I[1],1],R=s(R.data,I,[R.stride[0],R.stride[1],1],R.offset);else if(I.length===3){if(I[2]===1)O=E.ALPHA;else if(I[2]===2)O=E.LUMINANCE_ALPHA;else if(I[2]===3)O=E.RGB;else if(I[2]===4)O=E.RGBA;else throw new Error("gl-texture2d: Invalid shape for pixel coords");X=I[2]}else throw new Error("gl-texture2d: Invalid shape for texture");if((O===E.LUMINANCE||O===E.ALPHA)&&(D===E.LUMINANCE||D===E.ALPHA)&&(O=D),O!==D)throw new Error("gl-texture2d: Incompatible texture format for setPixels");var K=R.size,G=P.indexOf(k)<0;if(G&&P.push(k),B===F&&$)R.offset===0&&R.data.length===K?G?E.texImage2D(E.TEXTURE_2D,k,D,I[0],I[1],0,D,F,R.data):E.texSubImage2D(E.TEXTURE_2D,k,M,C,I[0],I[1],D,F,R.data):G?E.texImage2D(E.TEXTURE_2D,k,D,I[0],I[1],0,D,F,R.data.subarray(R.offset,R.offset+K)):E.texSubImage2D(E.TEXTURE_2D,k,M,C,I[0],I[1],D,F,R.data.subarray(R.offset,R.offset+K));else{var q;F===E.FLOAT?q=u.mallocFloat32(K):q=u.mallocUint8(K);var J=s(q,I,[I[2],I[2]*I[0],1]);B===E.FLOAT&&F===E.UNSIGNED_BYTE?v(J,R):l.assign(J,R),G?E.texImage2D(E.TEXTURE_2D,k,D,I[0],I[1],0,D,F,q.subarray(0,K)):E.texSubImage2D(E.TEXTURE_2D,k,M,C,I[0],I[1],D,F,q.subarray(0,K)),F===E.FLOAT?u.freeFloat32(q):u.freeUint8(q)}}function S(E){var M=E.createTexture();return E.bindTexture(E.TEXTURE_2D,M),E.texParameteri(E.TEXTURE_2D,E.TEXTURE_MIN_FILTER,E.NEAREST),E.texParameteri(E.TEXTURE_2D,E.TEXTURE_MAG_FILTER,E.NEAREST),E.texParameteri(E.TEXTURE_2D,E.TEXTURE_WRAP_S,E.CLAMP_TO_EDGE),E.texParameteri(E.TEXTURE_2D,E.TEXTURE_WRAP_T,E.CLAMP_TO_EDGE),M}function x(E,M,C,k,D){var F=E.getParameter(E.MAX_TEXTURE_SIZE);if(M<0||M>F||C<0||C>F)throw new Error("gl-texture2d: Invalid texture shape");if(D===E.FLOAT&&!E.getExtension("OES_texture_float"))throw new Error("gl-texture2d: Floating point textures not supported on this platform");var P=S(E);return E.texImage2D(E.TEXTURE_2D,0,k,M,C,0,k,D,null),new g(E,P,M,C,k,D)}function A(E,M,C,k,D,F){var P=S(E);return E.texImage2D(E.TEXTURE_2D,0,D,D,F,M),new g(E,P,C,k,D,F)}function T(E,M){var C=M.dtype,k=M.shape.slice(),D=E.getParameter(E.MAX_TEXTURE_SIZE);if(k[0]<0||k[0]>D||k[1]<0||k[1]>D)throw new Error("gl-texture2d: Invalid texture size");var F=_(k,M.stride.slice()),P=0;C==="float32"?P=E.FLOAT:C==="float64"?(P=E.FLOAT,F=!1,C="float32"):C==="uint8"?P=E.UNSIGNED_BYTE:(P=E.UNSIGNED_BYTE,F=!1,C="uint8");var R=0;if(k.length===2)R=E.LUMINANCE,k=[k[0],k[1],1],M=s(M.data,k,[M.stride[0],M.stride[1],1],M.offset);else if(k.length===3)if(k[2]===1)R=E.ALPHA;else if(k[2]===2)R=E.LUMINANCE_ALPHA;else if(k[2]===3)R=E.RGB;else if(k[2]===4)R=E.RGBA;else throw new Error("gl-texture2d: Invalid shape for pixel coords");else throw new Error("gl-texture2d: Invalid shape for texture");P===E.FLOAT&&!E.getExtension("OES_texture_float")&&(P=E.UNSIGNED_BYTE,F=!1);var L,I,B=M.size;if(F)M.offset===0&&M.data.length===B?L=M.data:L=M.data.subarray(M.offset,M.offset+B);else{var O=[k[2],k[2]*k[0],1];I=u.malloc(B,C);var $=s(I,k,O,0);(C==="float32"||C==="float64")&&P===E.UNSIGNED_BYTE?v($,M):l.assign($,M),L=I.subarray(0,B)}var X=S(E);return E.texImage2D(E.TEXTURE_2D,0,R,k[0],k[1],0,R,P,L),F||u.free(I),new g(E,X,k[0],k[1],R,P)}function y(E){if(arguments.length<=1)throw new Error("gl-texture2d: Missing arguments for texture2d constructor");if(c||p(E),typeof arguments[1]=="number")return x(E,arguments[1],arguments[2],arguments[3]||E.RGBA,arguments[4]||E.UNSIGNED_BYTE);if(Array.isArray(arguments[1]))return x(E,arguments[1][0]|0,arguments[1][1]|0,arguments[2]||E.RGBA,arguments[3]||E.UNSIGNED_BYTE);if(typeof arguments[1]=="object"){var M=arguments[1],C=d(M)?M:M.raw;if(C)return A(E,C,M.width|0,M.height|0,arguments[2]||E.RGBA,arguments[3]||E.UNSIGNED_BYTE);if(M.shape&&M.data&&M.stride)return T(E,M)}throw new Error("gl-texture2d: Invalid arguments for texture2d constructor")}},1433(n){"use strict";function a(o,s,l){s?s.bind():o.bindBuffer(o.ELEMENT_ARRAY_BUFFER,null);var u=o.getParameter(o.MAX_VERTEX_ATTRIBS)|0;if(l){if(l.length>u)throw new Error("gl-vao: Too many vertex attributes");for(var c=0;c1?0:Math.acos(v)}},9226(n){n.exports=a;function a(o,s){return o[0]=Math.ceil(s[0]),o[1]=Math.ceil(s[1]),o[2]=Math.ceil(s[2]),o}},3126(n){n.exports=a;function a(o){var s=new Float32Array(3);return s[0]=o[0],s[1]=o[1],s[2]=o[2],s}},3990(n){n.exports=a;function a(o,s){return o[0]=s[0],o[1]=s[1],o[2]=s[2],o}},1091(n){n.exports=a;function a(){var o=new Float32Array(3);return o[0]=0,o[1]=0,o[2]=0,o}},5911(n){n.exports=a;function a(o,s,l){var u=s[0],c=s[1],f=s[2],h=l[0],p=l[1],d=l[2];return o[0]=c*d-f*p,o[1]=f*h-u*d,o[2]=u*p-c*h,o}},5455(n,a,o){n.exports=o(7056)},7056(n){n.exports=a;function a(o,s){var l=s[0]-o[0],u=s[1]-o[1],c=s[2]-o[2];return Math.sqrt(l*l+u*u+c*c)}},4008(n,a,o){n.exports=o(6690)},6690(n){n.exports=a;function a(o,s,l){return o[0]=s[0]/l[0],o[1]=s[1]/l[1],o[2]=s[2]/l[2],o}},244(n){n.exports=a;function a(o,s){return o[0]*s[0]+o[1]*s[1]+o[2]*s[2]}},2613(n){n.exports=1e-6},9922(n,a,o){n.exports=l;var s=o(2613);function l(u,c){var f=u[0],h=u[1],p=u[2],d=c[0],v=c[1],m=c[2];return Math.abs(f-d)<=s*Math.max(1,Math.abs(f),Math.abs(d))&&Math.abs(h-v)<=s*Math.max(1,Math.abs(h),Math.abs(v))&&Math.abs(p-m)<=s*Math.max(1,Math.abs(p),Math.abs(m))}},9265(n){n.exports=a;function a(o,s){return o[0]===s[0]&&o[1]===s[1]&&o[2]===s[2]}},2681(n){n.exports=a;function a(o,s){return o[0]=Math.floor(s[0]),o[1]=Math.floor(s[1]),o[2]=Math.floor(s[2]),o}},5137(n,a,o){n.exports=l;var s=o(1091)();function l(u,c,f,h,p,d){var v,m;for(c||(c=3),f||(f=0),h?m=Math.min(h*c+f,u.length):m=u.length,v=f;v0&&(f=1/Math.sqrt(f),o[0]=s[0]*f,o[1]=s[1]*f,o[2]=s[2]*f),o}},7636(n){n.exports=a;function a(o,s){s=s||1;var l=Math.random()*2*Math.PI,u=Math.random()*2-1,c=Math.sqrt(1-u*u)*s;return o[0]=Math.cos(l)*c,o[1]=Math.sin(l)*c,o[2]=u*s,o}},6894(n){n.exports=a;function a(o,s,l,u){var c=l[1],f=l[2],h=s[1]-c,p=s[2]-f,d=Math.sin(u),v=Math.cos(u);return o[0]=s[0],o[1]=c+h*v-p*d,o[2]=f+h*d+p*v,o}},109(n){n.exports=a;function a(o,s,l,u){var c=l[0],f=l[2],h=s[0]-c,p=s[2]-f,d=Math.sin(u),v=Math.cos(u);return o[0]=c+p*d+h*v,o[1]=s[1],o[2]=f+p*v-h*d,o}},8692(n){n.exports=a;function a(o,s,l,u){var c=l[0],f=l[1],h=s[0]-c,p=s[1]-f,d=Math.sin(u),v=Math.cos(u);return o[0]=c+h*v-p*d,o[1]=f+h*d+p*v,o[2]=s[2],o}},2447(n){n.exports=a;function a(o,s){return o[0]=Math.round(s[0]),o[1]=Math.round(s[1]),o[2]=Math.round(s[2]),o}},6621(n){n.exports=a;function a(o,s,l){return o[0]=s[0]*l,o[1]=s[1]*l,o[2]=s[2]*l,o}},8489(n){n.exports=a;function a(o,s,l,u){return o[0]=s[0]+l[0]*u,o[1]=s[1]+l[1]*u,o[2]=s[2]+l[2]*u,o}},1463(n){n.exports=a;function a(o,s,l,u){return o[0]=s,o[1]=l,o[2]=u,o}},6141(n,a,o){n.exports=o(2953)},5486(n,a,o){n.exports=o(3066)},2953(n){n.exports=a;function a(o,s){var l=s[0]-o[0],u=s[1]-o[1],c=s[2]-o[2];return l*l+u*u+c*c}},3066(n){n.exports=a;function a(o){var s=o[0],l=o[1],u=o[2];return s*s+l*l+u*u}},2229(n,a,o){n.exports=o(6843)},6843(n){n.exports=a;function a(o,s,l){return o[0]=s[0]-l[0],o[1]=s[1]-l[1],o[2]=s[2]-l[2],o}},492(n){n.exports=a;function a(o,s,l){var u=s[0],c=s[1],f=s[2];return o[0]=u*l[0]+c*l[3]+f*l[6],o[1]=u*l[1]+c*l[4]+f*l[7],o[2]=u*l[2]+c*l[5]+f*l[8],o}},5673(n){n.exports=a;function a(o,s,l){var u=s[0],c=s[1],f=s[2],h=l[3]*u+l[7]*c+l[11]*f+l[15];return h=h||1,o[0]=(l[0]*u+l[4]*c+l[8]*f+l[12])/h,o[1]=(l[1]*u+l[5]*c+l[9]*f+l[13])/h,o[2]=(l[2]*u+l[6]*c+l[10]*f+l[14])/h,o}},264(n){n.exports=a;function a(o,s,l){var u=s[0],c=s[1],f=s[2],h=l[0],p=l[1],d=l[2],v=l[3],m=p*f-d*c,g=d*u-h*f,w=h*c-p*u;return m*=2,g*=2,w*=2,o[0]=u+v*m+p*w-d*g,o[1]=c+v*g+d*m-h*w,o[2]=f+v*w+h*g-p*m,o}},4361(n){n.exports=a;function a(o,s,l){return o[0]=s[0]+l[0],o[1]=s[1]+l[1],o[2]=s[2]+l[2],o[3]=s[3]+l[3],o}},2335(n){n.exports=a;function a(o){var s=new Float32Array(4);return s[0]=o[0],s[1]=o[1],s[2]=o[2],s[3]=o[3],s}},2933(n){n.exports=a;function a(o,s){return o[0]=s[0],o[1]=s[1],o[2]=s[2],o[3]=s[3],o}},7536(n){n.exports=a;function a(){var o=new Float32Array(4);return o[0]=0,o[1]=0,o[2]=0,o[3]=0,o}},4691(n){n.exports=a;function a(o,s){var l=s[0]-o[0],u=s[1]-o[1],c=s[2]-o[2],f=s[3]-o[3];return Math.sqrt(l*l+u*u+c*c+f*f)}},1373(n){n.exports=a;function a(o,s,l){return o[0]=s[0]/l[0],o[1]=s[1]/l[1],o[2]=s[2]/l[2],o[3]=s[3]/l[3],o}},3750(n){n.exports=a;function a(o,s){return o[0]*s[0]+o[1]*s[1]+o[2]*s[2]+o[3]*s[3]}},3390(n){n.exports=a;function a(o,s,l,u){var c=new Float32Array(4);return c[0]=o,c[1]=s,c[2]=l,c[3]=u,c}},9970(n,a,o){n.exports={create:o(7536),clone:o(2335),fromValues:o(3390),copy:o(2933),set:o(4578),add:o(4361),subtract:o(6860),multiply:o(3576),divide:o(1373),min:o(2334),max:o(160),scale:o(9288),scaleAndAdd:o(4844),distance:o(4691),squaredDistance:o(7960),length:o(6808),squaredLength:o(483),negate:o(1498),inverse:o(4494),normalize:o(5177),dot:o(3750),lerp:o(2573),random:o(9131),transformMat4:o(5352),transformQuat:o(4041)}},4494(n){n.exports=a;function a(o,s){return o[0]=1/s[0],o[1]=1/s[1],o[2]=1/s[2],o[3]=1/s[3],o}},6808(n){n.exports=a;function a(o){var s=o[0],l=o[1],u=o[2],c=o[3];return Math.sqrt(s*s+l*l+u*u+c*c)}},2573(n){n.exports=a;function a(o,s,l,u){var c=s[0],f=s[1],h=s[2],p=s[3];return o[0]=c+u*(l[0]-c),o[1]=f+u*(l[1]-f),o[2]=h+u*(l[2]-h),o[3]=p+u*(l[3]-p),o}},160(n){n.exports=a;function a(o,s,l){return o[0]=Math.max(s[0],l[0]),o[1]=Math.max(s[1],l[1]),o[2]=Math.max(s[2],l[2]),o[3]=Math.max(s[3],l[3]),o}},2334(n){n.exports=a;function a(o,s,l){return o[0]=Math.min(s[0],l[0]),o[1]=Math.min(s[1],l[1]),o[2]=Math.min(s[2],l[2]),o[3]=Math.min(s[3],l[3]),o}},3576(n){n.exports=a;function a(o,s,l){return o[0]=s[0]*l[0],o[1]=s[1]*l[1],o[2]=s[2]*l[2],o[3]=s[3]*l[3],o}},1498(n){n.exports=a;function a(o,s){return o[0]=-s[0],o[1]=-s[1],o[2]=-s[2],o[3]=-s[3],o}},5177(n){n.exports=a;function a(o,s){var l=s[0],u=s[1],c=s[2],f=s[3],h=l*l+u*u+c*c+f*f;return h>0&&(h=1/Math.sqrt(h),o[0]=l*h,o[1]=u*h,o[2]=c*h,o[3]=f*h),o}},9131(n,a,o){var s=o(5177),l=o(9288);n.exports=u;function u(c,f){return f=f||1,c[0]=Math.random(),c[1]=Math.random(),c[2]=Math.random(),c[3]=Math.random(),s(c,c),l(c,c,f),c}},9288(n){n.exports=a;function a(o,s,l){return o[0]=s[0]*l,o[1]=s[1]*l,o[2]=s[2]*l,o[3]=s[3]*l,o}},4844(n){n.exports=a;function a(o,s,l,u){return o[0]=s[0]+l[0]*u,o[1]=s[1]+l[1]*u,o[2]=s[2]+l[2]*u,o[3]=s[3]+l[3]*u,o}},4578(n){n.exports=a;function a(o,s,l,u,c){return o[0]=s,o[1]=l,o[2]=u,o[3]=c,o}},7960(n){n.exports=a;function a(o,s){var l=s[0]-o[0],u=s[1]-o[1],c=s[2]-o[2],f=s[3]-o[3];return l*l+u*u+c*c+f*f}},483(n){n.exports=a;function a(o){var s=o[0],l=o[1],u=o[2],c=o[3];return s*s+l*l+u*u+c*c}},6860(n){n.exports=a;function a(o,s,l){return o[0]=s[0]-l[0],o[1]=s[1]-l[1],o[2]=s[2]-l[2],o[3]=s[3]-l[3],o}},5352(n){n.exports=a;function a(o,s,l){var u=s[0],c=s[1],f=s[2],h=s[3];return o[0]=l[0]*u+l[4]*c+l[8]*f+l[12]*h,o[1]=l[1]*u+l[5]*c+l[9]*f+l[13]*h,o[2]=l[2]*u+l[6]*c+l[10]*f+l[14]*h,o[3]=l[3]*u+l[7]*c+l[11]*f+l[15]*h,o}},4041(n){n.exports=a;function a(o,s,l){var u=s[0],c=s[1],f=s[2],h=l[0],p=l[1],d=l[2],v=l[3],m=v*u+p*f-d*c,g=v*c+d*u-h*f,w=v*f+h*c-p*u,_=-h*u-p*c-d*f;return o[0]=m*v+_*-h+g*-d-w*-p,o[1]=g*v+_*-p+w*-h-m*-d,o[2]=w*v+_*-d+m*-p-g*-h,o[3]=s[3],o}},1848(n,a,o){var s=o(4905),l=o(6468);n.exports=u;function u(c){for(var f=Array.isArray(c)?c:s(c),h=0;h0)continue;Ce=re.slice(0,1).join("")}return Q(Ce),K+=Ce.length,L=L.slice(Ce.length),L.length}while(!0)}function fe(){return/[^a-fA-F0-9]/.test(P)?(Q(L.join("")),F=h,k):(L.push(P),R=P,k+1)}function ee(){return P==="."||/[eE]/.test(P)?(L.push(P),F=_,R=P,k+1):P==="x"&&L.length===1&&L[0]==="0"?(F=y,L.push(P),R=P,k+1):/[^\d]/.test(P)?(Q(L.join("")),F=h,k):(L.push(P),R=P,k+1)}function ae(){return P==="f"&&(L.push(P),R=P,k+=1),/[eE]/.test(P)||(P==="-"||P==="+")&&/[eE]/.test(R)?(L.push(P),R=P,k+1):/[^\d]/.test(P)?(Q(L.join("")),F=h,k):(L.push(P),R=P,k+1)}function _e(){if(/[^\d\w_]/.test(P)){var re=L.join("");return j[re]?F=x:H[re]?F=S:F=b,Q(L.join("")),F=h,k}return L.push(P),R=P,k+1}}},3508(n,a,o){var s=o(6852);s=s.slice().filter(function(l){return!/^(gl\_|texture)/.test(l)}),n.exports=s.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"])},6852(n){n.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"]},7932(n,a,o){var s=o(620);n.exports=s.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"])},620(n){n.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"]},7827(n){n.exports=["<<=",">>=","++","--","<<",">>","<=",">=","==","!=","&&","||","+=","-=","*=","/=","%=","&=","^^","^=","|=","(",")","[","]",".","!","~","*","/","%","+","-","<",">","&","^","|","?",":","=",",",";","{","}"]},4905(n,a,o){var s=o(5874);n.exports=l;function l(u,c){var f=s(c),h=[];return h=h.concat(f(u)),h=h.concat(f(null)),h}},3236(n){n.exports=function(a){typeof a=="string"&&(a=[a]);for(var o=[].slice.call(arguments,1),s=[],l=0;l>1,m=-7,g=l?c-1:0,w=l?-1:1,_=o[s+g];for(g+=w,f=_&(1<<-m)-1,_>>=-m,m+=p;m>0;f=f*256+o[s+g],g+=w,m-=8);for(h=f&(1<<-m)-1,f>>=-m,m+=u;m>0;h=h*256+o[s+g],g+=w,m-=8);if(f===0)f=1-v;else{if(f===d)return h?NaN:(_?-1:1)*(1/0);h=h+Math.pow(2,u),f=f-v}return(_?-1:1)*h*Math.pow(2,f-u)},a.write=function(o,s,l,u,c,f){var h,p,d,v=f*8-c-1,m=(1<>1,w=c===23?Math.pow(2,-24)-Math.pow(2,-77):0,_=u?0:f-1,b=u?1:-1,S=s<0||s===0&&1/s<0?1:0;for(s=Math.abs(s),isNaN(s)||s===1/0?(p=isNaN(s)?1:0,h=m):(h=Math.floor(Math.log(s)/Math.LN2),s*(d=Math.pow(2,-h))<1&&(h--,d*=2),h+g>=1?s+=w/d:s+=w*Math.pow(2,1-g),s*d>=2&&(h++,d/=2),h+g>=m?(p=0,h=m):h+g>=1?(p=(s*d-1)*Math.pow(2,c),h=h+g):(p=s*Math.pow(2,g-1)*Math.pow(2,c),h=0));c>=8;o[l+_]=p&255,_+=b,p/=256,c-=8);for(h=h<0;o[l+_]=h&255,_+=b,h/=256,v-=8);o[l+_-b]|=S*128}},8954(n,a,o){"use strict";n.exports=g;var s=o(3250),l=o(6803).Fw;function u(w,_,b){this.vertices=w,this.adjacent=_,this.boundary=b,this.lastVisited=-1}u.prototype.flip=function(){var w=this.vertices[0];this.vertices[0]=this.vertices[1],this.vertices[1]=w;var _=this.adjacent[0];this.adjacent[0]=this.adjacent[1],this.adjacent[1]=_};function c(w,_,b){this.vertices=w,this.cell=_,this.index=b}function f(w,_){return l(w.vertices,_.vertices)}function h(w){return function(){var _=this.tuple;return w.apply(this,_)}}function p(w){var _=s[w+1];return _||(_=s),h(_)}var d=[];function v(w,_,b){this.dimension=w,this.vertices=_,this.simplices=b,this.interior=b.filter(function(A){return!A.boundary}),this.tuple=new Array(w+1);for(var S=0;S<=w;++S)this.tuple[S]=this.vertices[S];var x=d[w];x||(x=d[w]=p(w)),this.orient=x}var m=v.prototype;m.handleBoundaryDegeneracy=function(w,_){var b=this.dimension,S=this.vertices.length-1,x=this.tuple,A=this.vertices,T=[w];for(w.lastVisited=-S;T.length>0;){w=T.pop();for(var y=w.adjacent,E=0;E<=b;++E){var M=y[E];if(!(!M.boundary||M.lastVisited<=-S)){for(var C=M.vertices,k=0;k<=b;++k){var D=C[k];D<0?x[k]=_:x[k]=A[D]}var F=this.orient();if(F>0)return M;M.lastVisited=-S,F===0&&T.push(M)}}}return null},m.walk=function(w,_){var b=this.vertices.length-1,S=this.dimension,x=this.vertices,A=this.tuple,T=_?this.interior.length*Math.random()|0:this.interior.length-1,y=this.interior[T];e:for(;!y.boundary;){for(var E=y.vertices,M=y.adjacent,C=0;C<=S;++C)A[C]=x[E[C]];y.lastVisited=b;for(var C=0;C<=S;++C){var k=M[C];if(!(k.lastVisited>=b)){var D=A[C];A[C]=w;var F=this.orient();if(A[C]=D,F<0){y=k;continue e}else k.boundary?k.lastVisited=-b:k.lastVisited=b}}return}return y},m.addPeaks=function(w,_){var b=this.vertices.length-1,S=this.dimension,x=this.vertices,A=this.tuple,T=this.interior,y=this.simplices,E=[_];_.lastVisited=b,_.vertices[_.vertices.indexOf(-1)]=b,_.boundary=!1,T.push(_);for(var M=[];E.length>0;){var _=E.pop(),C=_.vertices,k=_.adjacent,D=C.indexOf(b);if(!(D<0)){for(var F=0;F<=S;++F)if(F!==D){var P=k[F];if(!(!P.boundary||P.lastVisited>=b)){var R=P.vertices;if(P.lastVisited!==-b){for(var L=0,I=0;I<=S;++I)R[I]<0?(L=I,A[I]=w):A[I]=x[R[I]];var B=this.orient();if(B>0){R[L]=b,P.boundary=!1,T.push(P),E.push(P),P.lastVisited=b;continue}else P.lastVisited=-b}var O=P.adjacent,$=C.slice(),X=k.slice(),K=new u($,X,!0);y.push(K);var G=O.indexOf(_);if(!(G<0)){O[G]=K,X[D]=P,$[F]=-1,X[F]=_,k[F]=K,K.flip();for(var I=0;I<=S;++I){var q=$[I];if(!(q<0||q===b)){for(var J=new Array(S-1),N=0,V=0;V<=S;++V){var Y=$[V];Y<0||V===I||(J[N++]=Y)}M.push(new c(J,K,I))}}}}}}}M.sort(f);for(var F=0;F+1=0?T[E++]=y[C]:M=C&1;if(M===(w&1)){var k=T[0];T[0]=T[1],T[1]=k}_.push(T)}}return _};function g(w,_){var b=w.length;if(b===0)throw new Error("Must have at least d+1 points");var S=w[0].length;if(b<=S)throw new Error("Must input at least d+1 points");var x=w.slice(0,S+1),A=s.apply(void 0,x);if(A===0)throw new Error("Input not in general position");for(var T=new Array(S+1),y=0;y<=S;++y)T[y]=y;A<0&&(T[0]=1,T[1]=0);for(var E=new u(T,new Array(S+1),!1),M=E.adjacent,C=new Array(S+2),y=0;y<=S;++y){for(var k=T.slice(),D=0;D<=S;++D)D===y&&(k[D]=-1);var F=k[0];k[0]=k[1],k[1]=F;var P=new u(k,new Array(S+1),!0);M[y]=P,C[y]=P}C[S+1]=E;for(var y=0;y<=S;++y)for(var k=M[y].vertices,R=M[y].adjacent,D=0;D<=S;++D){var L=k[D];if(L<0){R[D]=E;continue}for(var I=0;I<=S;++I)M[I].vertices.indexOf(L)<0&&(R[D]=M[I])}for(var B=new v(S,x,C),O=!!_,y=S+1;y3*(C+1)?v(this,M):this.left.insert(M):this.left=A([M]);else if(M[0]>this.mid)this.right?4*(this.right.count+1)>3*(C+1)?v(this,M):this.right.insert(M):this.right=A([M]);else{var k=s.ge(this.leftPoints,M,S),D=s.ge(this.rightPoints,M,x);this.leftPoints.splice(k,0,M),this.rightPoints.splice(D,0,M)}},h.remove=function(M){var C=this.count-this.leftPoints;if(M[1]3*(C-1))return m(this,M);var D=this.left.remove(M);return D===c?(this.left=null,this.count-=1,u):(D===u&&(this.count-=1),D)}else if(M[0]>this.mid){if(!this.right)return l;var F=this.left?this.left.count:0;if(4*F>3*(C-1))return m(this,M);var D=this.right.remove(M);return D===c?(this.right=null,this.count-=1,u):(D===u&&(this.count-=1),D)}else{if(this.count===1)return this.leftPoints[0]===M?c:l;if(this.leftPoints.length===1&&this.leftPoints[0]===M){if(this.left&&this.right){for(var P=this,R=this.left;R.right;)P=R,R=R.right;if(P===this)R.right=this.right;else{var L=this.left,D=this.right;P.count-=R.count,P.right=R.left,R.left=L,R.right=D}p(this,R),this.count=(this.left?this.left.count:0)+(this.right?this.right.count:0)+this.leftPoints.length}else this.left?p(this,this.left):p(this,this.right);return u}for(var L=s.ge(this.leftPoints,M,S);L=0&&M[D][1]>=C;--D){var F=k(M[D]);if(F)return F}}function _(M,C){for(var k=0;kthis.mid){if(this.right){var k=this.right.queryPoint(M,C);if(k)return k}return w(this.rightPoints,M,C)}else return _(this.leftPoints,C)},h.queryInterval=function(M,C,k){if(Mthis.mid&&this.right){var D=this.right.queryInterval(M,C,k);if(D)return D}return Cthis.mid?w(this.rightPoints,M,k):_(this.leftPoints,k)};function b(M,C){return M-C}function S(M,C){var k=M[0]-C[0];return k||M[1]-C[1]}function x(M,C){var k=M[1]-C[1];return k||M[0]-C[0]}function A(M){if(M.length===0)return null;for(var C=[],k=0;k>1],F=[],P=[],R=[],k=0;k1&&c.indexOf("Macintosh")!==-1&&c.indexOf("Safari")!==-1&&(f=!0),f}},5219(n){"use strict";n.exports=function(a){for(var o=a.length,s,l=0;l13)&&s!==32&&s!==133&&s!==160&&s!==5760&&s!==6158&&(s<8192||s>8205)&&s!==8232&&s!==8233&&s!==8239&&s!==8287&&s!==8288&&s!==12288&&s!==65279)return!1;return!0}},395(n){function a(o,s,l){return o*(1-l)+s*l}n.exports=a},2652(n,a,o){var s=o(4335),l=o(6864),u=o(1903),c=o(9921),f=o(7608),h=o(5665),p={length:o(1387),normalize:o(3536),dot:o(244),cross:o(5911)},d=l(),v=l(),m=[0,0,0,0],g=[[0,0,0],[0,0,0],[0,0,0]],w=[0,0,0];n.exports=function(A,T,y,E,M,C){if(T||(T=[0,0,0]),y||(y=[0,0,0]),E||(E=[0,0,0]),M||(M=[0,0,0,1]),C||(C=[0,0,0,1]),!s(d,A)||(u(v,d),v[3]=0,v[7]=0,v[11]=0,v[15]=1,Math.abs(c(v)<1e-8)))return!1;var k=d[3],D=d[7],F=d[11],P=d[12],R=d[13],L=d[14],I=d[15];if(k!==0||D!==0||F!==0){m[0]=k,m[1]=D,m[2]=F,m[3]=I;var B=f(v,v);if(!B)return!1;h(v,v),_(M,m,v)}else M[0]=M[1]=M[2]=0,M[3]=1;if(T[0]=P,T[1]=R,T[2]=L,b(g,d),y[0]=p.length(g[0]),p.normalize(g[0],g[0]),E[0]=p.dot(g[0],g[1]),S(g[1],g[1],g[0],1,-E[0]),y[1]=p.length(g[1]),p.normalize(g[1],g[1]),E[0]/=y[1],E[1]=p.dot(g[0],g[2]),S(g[2],g[2],g[0],1,-E[1]),E[2]=p.dot(g[1],g[2]),S(g[2],g[2],g[1],1,-E[2]),y[2]=p.length(g[2]),p.normalize(g[2],g[2]),E[1]/=y[2],E[2]/=y[2],p.cross(w,g[1],g[2]),p.dot(g[0],w)<0)for(var O=0;O<3;O++)y[O]*=-1,g[O][0]*=-1,g[O][1]*=-1,g[O][2]*=-1;return C[0]=.5*Math.sqrt(Math.max(1+g[0][0]-g[1][1]-g[2][2],0)),C[1]=.5*Math.sqrt(Math.max(1-g[0][0]+g[1][1]-g[2][2],0)),C[2]=.5*Math.sqrt(Math.max(1-g[0][0]-g[1][1]+g[2][2],0)),C[3]=.5*Math.sqrt(Math.max(1+g[0][0]+g[1][1]+g[2][2],0)),g[2][1]>g[1][2]&&(C[0]=-C[0]),g[0][2]>g[2][0]&&(C[1]=-C[1]),g[1][0]>g[0][1]&&(C[2]=-C[2]),!0};function _(x,A,T){var y=A[0],E=A[1],M=A[2],C=A[3];return x[0]=T[0]*y+T[4]*E+T[8]*M+T[12]*C,x[1]=T[1]*y+T[5]*E+T[9]*M+T[13]*C,x[2]=T[2]*y+T[6]*E+T[10]*M+T[14]*C,x[3]=T[3]*y+T[7]*E+T[11]*M+T[15]*C,x}function b(x,A){x[0][0]=A[0],x[0][1]=A[1],x[0][2]=A[2],x[1][0]=A[4],x[1][1]=A[5],x[1][2]=A[6],x[2][0]=A[8],x[2][1]=A[9],x[2][2]=A[10]}function S(x,A,T,y,E){x[0]=A[0]*y+T[0]*E,x[1]=A[1]*y+T[1]*E,x[2]=A[2]*y+T[2]*E}},4335(n){n.exports=function(o,s){var l=s[15];if(l===0)return!1;for(var u=1/l,c=0;c<16;c++)o[c]=s[c]*u;return!0}},7442(n,a,o){var s=o(6658),l=o(7182),u=o(2652),c=o(9921),f=o(8648),h=m(),p=m(),d=m();n.exports=v;function v(_,b,S,x){if(c(b)===0||c(S)===0)return!1;var A=u(b,h.translate,h.scale,h.skew,h.perspective,h.quaternion),T=u(S,p.translate,p.scale,p.skew,p.perspective,p.quaternion);return!A||!T?!1:(s(d.translate,h.translate,p.translate,x),s(d.skew,h.skew,p.skew,x),s(d.scale,h.scale,p.scale,x),s(d.perspective,h.perspective,p.perspective,x),f(d.quaternion,h.quaternion,p.quaternion,x),l(_,d.translate,d.scale,d.skew,d.perspective,d.quaternion),!0)}function m(){return{translate:g(),scale:g(1),skew:g(),perspective:w(),quaternion:w()}}function g(_){return[_||0,_||0,_||0]}function w(){return[0,0,0,1]}},7182(n,a,o){var s={identity:o(7894),translate:o(7656),multiply:o(6760),create:o(6864),scale:o(2504),fromRotationTranslation:o(6743)},l=s.create(),u=s.create();n.exports=function(f,h,p,d,v,m){return s.identity(f),s.fromRotationTranslation(f,m,h),f[3]=v[0],f[7]=v[1],f[11]=v[2],f[15]=v[3],s.identity(u),d[2]!==0&&(u[9]=d[2],s.multiply(f,f,u)),d[1]!==0&&(u[9]=0,u[8]=d[1],s.multiply(f,f,u)),d[0]!==0&&(u[8]=0,u[4]=d[0],s.multiply(f,f,u)),s.scale(f,f,p),f}},1811(n,a,o){"use strict";var s=o(2478),l=o(7442),u=o(7608),c=o(5567),f=o(2408),h=o(7089),p=o(6582),d=o(7656),v=o(2504),m=o(3536),g=[0,0,0];n.exports=S;function w(x){this._components=x.slice(),this._time=[0],this.prevMatrix=x.slice(),this.nextMatrix=x.slice(),this.computedMatrix=x.slice(),this.computedInverse=x.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 _=w.prototype;_.recalcMatrix=function(x){var A=this._time,T=s.le(A,x),y=this.computedMatrix;if(!(T<0)){var E=this._components;if(T===A.length-1)for(var M=16*T,C=0;C<16;++C)y[C]=E[M++];else{for(var k=A[T+1]-A[T],M=16*T,D=this.prevMatrix,F=!0,C=0;C<16;++C)D[C]=E[M++];for(var P=this.nextMatrix,C=0;C<16;++C)P[C]=E[M++],F=F&&D[C]===P[C];if(k<1e-6||F)for(var C=0;C<16;++C)y[C]=D[C];else l(y,D,P,(x-A[T])/k)}var R=this.computedUp;R[0]=y[1],R[1]=y[5],R[2]=y[9],m(R,R);var L=this.computedInverse;u(L,y);var I=this.computedEye,B=L[15];I[0]=L[12]/B,I[1]=L[13]/B,I[2]=L[14]/B;for(var O=this.computedCenter,$=Math.exp(this.computedRadius[0]),C=0;C<3;++C)O[C]=I[C]-y[2+4*C]*$}},_.idle=function(x){if(!(x1&&s(u[p[g-2]],u[p[g-1]],m)<=0;)g-=1,p.pop();for(p.push(v),g=d.length;g>1&&s(u[d[g-2]],u[d[g-1]],m)>=0;)g-=1,d.pop();d.push(v)}for(var w=new Array(d.length+p.length-2),_=0,f=0,b=p.length;f0;--S)w[_++]=d[S];return w}},351(n,a,o){"use strict";n.exports=l;var s=o(4687);function l(u,c){c||(c=u,u=window);var f=0,h=0,p=0,d={shift:!1,alt:!1,control:!1,meta:!1},v=!1;function m(M){var C=!1;return"altKey"in M&&(C=C||M.altKey!==d.alt,d.alt=!!M.altKey),"shiftKey"in M&&(C=C||M.shiftKey!==d.shift,d.shift=!!M.shiftKey),"ctrlKey"in M&&(C=C||M.ctrlKey!==d.control,d.control=!!M.ctrlKey),"metaKey"in M&&(C=C||M.metaKey!==d.meta,d.meta=!!M.metaKey),C}function g(M,C){var k=s.x(C),D=s.y(C);"buttons"in C&&(M=C.buttons|0),(M!==f||k!==h||D!==p||m(C))&&(f=M|0,h=k||0,p=D||0,c&&c(f,h,p,d))}function w(M){g(0,M)}function _(){(f||h||p||d.shift||d.alt||d.meta||d.control)&&(h=p=0,f=0,d.shift=d.alt=d.control=d.meta=!1,c&&c(0,0,0,d))}function b(M){m(M)&&c&&c(f,h,p,d)}function S(M){s.buttons(M)===0?g(0,M):g(f,M)}function x(M){g(f|s.buttons(M),M)}function A(M){g(f&~s.buttons(M),M)}function T(){v||(v=!0,u.addEventListener("mousemove",S),u.addEventListener("mousedown",x),u.addEventListener("mouseup",A),u.addEventListener("mouseleave",w),u.addEventListener("mouseenter",w),u.addEventListener("mouseout",w),u.addEventListener("mouseover",w),u.addEventListener("blur",_),u.addEventListener("keyup",b),u.addEventListener("keydown",b),u.addEventListener("keypress",b),u!==window&&(window.addEventListener("blur",_),window.addEventListener("keyup",b),window.addEventListener("keydown",b),window.addEventListener("keypress",b)))}function y(){v&&(v=!1,u.removeEventListener("mousemove",S),u.removeEventListener("mousedown",x),u.removeEventListener("mouseup",A),u.removeEventListener("mouseleave",w),u.removeEventListener("mouseenter",w),u.removeEventListener("mouseout",w),u.removeEventListener("mouseover",w),u.removeEventListener("blur",_),u.removeEventListener("keyup",b),u.removeEventListener("keydown",b),u.removeEventListener("keypress",b),u!==window&&(window.removeEventListener("blur",_),window.removeEventListener("keyup",b),window.removeEventListener("keydown",b),window.removeEventListener("keypress",b)))}T();var E={element:u};return Object.defineProperties(E,{enabled:{get:function(){return v},set:function(M){M?T():y()},enumerable:!0},buttons:{get:function(){return f},enumerable:!0},x:{get:function(){return h},enumerable:!0},y:{get:function(){return p},enumerable:!0},mods:{get:function(){return d},enumerable:!0}}),E}},24(n){var a={left:0,top:0};n.exports=o;function o(l,u,c){u=u||l.currentTarget||l.srcElement,Array.isArray(c)||(c=[0,0]);var f=l.clientX||0,h=l.clientY||0,p=s(u);return c[0]=f-p.left,c[1]=h-p.top,c}function s(l){return l===window||l===document||l===document.body?a:l.getBoundingClientRect()}},4687(n,a){"use strict";function o(c){if(typeof c=="object"){if("buttons"in c)return c.buttons;if("which"in c){var f=c.which;if(f===2)return 4;if(f===3)return 2;if(f>0)return 1<=0)return 1<0){if(X=1,q[N++]=d(T[C],_,b,S),C+=B,x>0)for($=1,k=T[C],V=q[N]=d(k,_,b,S),j=q[N+Y],ue=q[N+Q],xe=q[N+ge],(V!==j||V!==ue||V!==xe)&&(F=T[C+D],R=T[C+P],I=T[C+L],h($,X,k,F,R,I,V,j,ue,xe,_,b,S),ce=J[N]=K++),N+=1,C+=B,$=2;$0)for($=1,k=T[C],V=q[N]=d(k,_,b,S),j=q[N+Y],ue=q[N+Q],xe=q[N+ge],(V!==j||V!==ue||V!==xe)&&(F=T[C+D],R=T[C+P],I=T[C+L],h($,X,k,F,R,I,V,j,ue,xe,_,b,S),ce=J[N]=K++,xe!==ue&&p(J[N+Q],ce,R,I,ue,xe,_,b,S)),N+=1,C+=B,$=2;$0){if($=1,q[N++]=d(T[C],_,b,S),C+=B,A>0)for(X=1,k=T[C],V=q[N]=d(k,_,b,S),ue=q[N+Q],j=q[N+Y],xe=q[N+ge],(V!==ue||V!==j||V!==xe)&&(F=T[C+D],R=T[C+P],I=T[C+L],h($,X,k,F,R,I,V,ue,j,xe,_,b,S),ce=J[N]=K++),N+=1,C+=B,X=2;X0)for(X=1,k=T[C],V=q[N]=d(k,_,b,S),ue=q[N+Q],j=q[N+Y],xe=q[N+ge],(V!==ue||V!==j||V!==xe)&&(F=T[C+D],R=T[C+P],I=T[C+L],h($,X,k,F,R,I,V,ue,j,xe,_,b,S),ce=J[N]=K++,xe!==ue&&p(J[N+Q],ce,I,F,xe,ue,_,b,S)),N+=1,C+=B,X=2;X 0"),typeof f.vertex!="function"&&h("Must specify vertex creation function"),typeof f.cell!="function"&&h("Must specify cell creation function"),typeof f.phase!="function"&&h("Must specify phase function");for(var m=f.getters||[],g=new Array(d),w=0;w=0?g[w]=!0:g[w]=!1;return u(f.vertex,f.cell,f.phase,v,p,g)}},6199(n,a,o){"use strict";var s=o(1338),l={zero:function(S,x,A,T){var y=S[0],E=A[0];T|=0;var M=0,C=E;for(M=0;M2&&M[1]>2&&T(E.pick(-1,-1).lo(1,1).hi(M[0]-2,M[1]-2),y.pick(-1,-1,0).lo(1,1).hi(M[0]-2,M[1]-2),y.pick(-1,-1,1).lo(1,1).hi(M[0]-2,M[1]-2)),M[1]>2&&(A(E.pick(0,-1).lo(1).hi(M[1]-2),y.pick(0,-1,1).lo(1).hi(M[1]-2)),x(y.pick(0,-1,0).lo(1).hi(M[1]-2))),M[1]>2&&(A(E.pick(M[0]-1,-1).lo(1).hi(M[1]-2),y.pick(M[0]-1,-1,1).lo(1).hi(M[1]-2)),x(y.pick(M[0]-1,-1,0).lo(1).hi(M[1]-2))),M[0]>2&&(A(E.pick(-1,0).lo(1).hi(M[0]-2),y.pick(-1,0,0).lo(1).hi(M[0]-2)),x(y.pick(-1,0,1).lo(1).hi(M[0]-2))),M[0]>2&&(A(E.pick(-1,M[1]-1).lo(1).hi(M[0]-2),y.pick(-1,M[1]-1,0).lo(1).hi(M[0]-2)),x(y.pick(-1,M[1]-1,1).lo(1).hi(M[0]-2))),y.set(0,0,0,0),y.set(0,0,1,0),y.set(M[0]-1,0,0,0),y.set(M[0]-1,0,1,0),y.set(0,M[1]-1,0,0),y.set(0,M[1]-1,1,0),y.set(M[0]-1,M[1]-1,0,0),y.set(M[0]-1,M[1]-1,1,0),y}}function b(S){var x=S.join(),M=d[x];if(M)return M;for(var A=S.length,T=[m,g],y=1;y<=A;++y)T.push(w(y));var E=_,M=E.apply(void 0,T);return d[x]=M,M}n.exports=function(x,A,T){if(Array.isArray(T)||(typeof T=="string"?T=s(A.dimension,T):T=s(A.dimension,"clamp")),A.size===0)return x;if(A.dimension===0)return x.set(0),x;var y=b(T);return y(x,A)}},4317(n){"use strict";function a(c,f){var h=Math.floor(f),p=f-h,d=0<=h&&h0;){R<64?(x=R,R=0):(x=64,R-=64);for(var L=d[1]|0;L>0;){L<64?(A=L,L=0):(A=64,L-=64),g=F+R*y+L*E,b=P+R*C+L*k;var I=0,B=0,O=0,$=M,X=y-T*M,K=E-x*y,G=D,q=C-T*D,J=k-x*C;for(O=0;O0;){k<64?(x=k,k=0):(x=64,k-=64);for(var D=d[0]|0;D>0;){D<64?(S=D,D=0):(S=64,D-=64),g=M+k*T+D*A,b=C+k*E+D*y;var F=0,P=0,R=T,L=A-x*T,I=E,B=y-x*E;for(P=0;P0;){P<64?(A=P,P=0):(A=64,P-=64);for(var R=d[0]|0;R>0;){R<64?(S=R,R=0):(S=64,R-=64);for(var L=d[1]|0;L>0;){L<64?(x=L,L=0):(x=64,L-=64),g=D+P*E+R*T+L*y,b=F+P*k+R*M+L*C;var I=0,B=0,O=0,$=E,X=T-A*E,K=y-S*T,G=k,q=M-A*k,J=C-S*M;for(O=0;Ow;){I=0,B=F-x;t:for(R=0;R$)break t;B+=M,I+=C}for(I=F,B=F-x,R=0;R>1,L=R-D,I=R+D,B=F,O=L,$=R,X=I,K=P,G=_+1,q=b-1,J=!0,N,V,Y,H,j,Q,te,ue,ge,Ee=0,xe=0,ce=0,oe,Se,be,fe,ee,ae,_e,re,pe,Te,Ce,ze,we,me,Le,Ne,Je=E,rt=m(Je),mt=m(Je);Se=A*B,be=A*O,Ne=x;e:for(oe=0;oe0){V=B,B=O,O=V;break e}if(ce<0)break e;Ne+=C}Se=A*X,be=A*K,Ne=x;e:for(oe=0;oe0){V=X,X=K,K=V;break e}if(ce<0)break e;Ne+=C}Se=A*B,be=A*$,Ne=x;e:for(oe=0;oe0){V=B,B=$,$=V;break e}if(ce<0)break e;Ne+=C}Se=A*O,be=A*$,Ne=x;e:for(oe=0;oe0){V=O,O=$,$=V;break e}if(ce<0)break e;Ne+=C}Se=A*B,be=A*X,Ne=x;e:for(oe=0;oe0){V=B,B=X,X=V;break e}if(ce<0)break e;Ne+=C}Se=A*$,be=A*X,Ne=x;e:for(oe=0;oe0){V=$,$=X,X=V;break e}if(ce<0)break e;Ne+=C}Se=A*O,be=A*K,Ne=x;e:for(oe=0;oe0){V=O,O=K,K=V;break e}if(ce<0)break e;Ne+=C}Se=A*O,be=A*$,Ne=x;e:for(oe=0;oe0){V=O,O=$,$=V;break e}if(ce<0)break e;Ne+=C}Se=A*X,be=A*K,Ne=x;e:for(oe=0;oe0){V=X,X=K,K=V;break e}if(ce<0)break e;Ne+=C}for(Se=A*B,be=A*O,fe=A*$,ee=A*X,ae=A*K,_e=A*F,re=A*R,pe=A*P,Le=0,Ne=x,oe=0;oe0)q--;else if(ce<0){for(Se=A*Q,be=A*G,fe=A*q,Ne=x,oe=0;oe0)for(;;){te=x+q*A,Le=0;e:for(oe=0;oe0){if(--qP){e:for(;;){for(te=x+G*A,Le=0,Ne=x,oe=0;oe1&&w?b(g,w[0],w[1]):b(g)}var p={"uint32,1,0":function(v,m){return function(g){var w=g.data,_=g.offset|0,b=g.shape,S=g.stride,x=S[0]|0,A=b[0]|0,T=S[1]|0,y=b[1]|0,E=T,M=T,C=1;A<=32?v(0,A-1,w,_,x,T,A,y,E,M,C):m(0,A-1,w,_,x,T,A,y,E,M,C)}}};function d(v,m){var g=[m,v].join(","),w=p[g],_=c(v,m),b=h(v,m,_);return w(_,b)}n.exports=d},446(n,a,o){"use strict";var s=o(7640),l={};function u(c){var f=c.order,h=c.dtype,p=[f,h],d=p.join(":"),v=l[d];return v||(l[d]=v=s(f,h)),v(c),c}n.exports=u},9618(n,a,o){var s=o(7163),l=typeof Float64Array!="undefined";function u(m,g){return m[0]-g[0]}function c(){var m=this.stride,g=new Array(m.length),w;for(w=0;w=0&&(T=x|0,A+=E*T,y-=T),new _(this.data,y,E,A)},b.step=function(x){var A=this.shape[0],T=this.stride[0],y=this.offset,E=0,M=Math.ceil;return typeof x=="number"&&(E=x|0,E<0?(y+=T*(A-1),A=M(-A/E)):A=M(A/E),T*=E),new _(this.data,A,T,y)},b.transpose=function(x){x=x===void 0?0:x|0;var A=this.shape,T=this.stride;return new _(this.data,A[x],T[x],this.offset)},b.pick=function(x){var A=[],T=[],y=this.offset;typeof x=="number"&&x>=0?y=y+this.stride[0]*x|0:(A.push(this.shape[0]),T.push(this.stride[0]));var E=g[A.length+1];return E(this.data,A,T,y)},function(x,A,T,y){return new _(x,A[0],T[0],y)}},2:function(m,g,w){function _(S,x,A,T,y,E){this.data=S,this.shape=[x,A],this.stride=[T,y],this.offset=E|0}var b=_.prototype;return b.dtype=m,b.dimension=2,Object.defineProperty(b,"size",{get:function(){return this.shape[0]*this.shape[1]}}),Object.defineProperty(b,"order",{get:function(){return Math.abs(this.stride[0])>Math.abs(this.stride[1])?[1,0]:[0,1]}}),b.set=function(x,A,T){return m==="generic"?this.data.set(this.offset+this.stride[0]*x+this.stride[1]*A,T):this.data[this.offset+this.stride[0]*x+this.stride[1]*A]=T},b.get=function(x,A){return m==="generic"?this.data.get(this.offset+this.stride[0]*x+this.stride[1]*A):this.data[this.offset+this.stride[0]*x+this.stride[1]*A]},b.index=function(x,A){return this.offset+this.stride[0]*x+this.stride[1]*A},b.hi=function(x,A){return new _(this.data,typeof x!="number"||x<0?this.shape[0]:x|0,typeof A!="number"||A<0?this.shape[1]:A|0,this.stride[0],this.stride[1],this.offset)},b.lo=function(x,A){var T=this.offset,y=0,E=this.shape[0],M=this.shape[1],C=this.stride[0],k=this.stride[1];return typeof x=="number"&&x>=0&&(y=x|0,T+=C*y,E-=y),typeof A=="number"&&A>=0&&(y=A|0,T+=k*y,M-=y),new _(this.data,E,M,C,k,T)},b.step=function(x,A){var T=this.shape[0],y=this.shape[1],E=this.stride[0],M=this.stride[1],C=this.offset,k=0,D=Math.ceil;return typeof x=="number"&&(k=x|0,k<0?(C+=E*(T-1),T=D(-T/k)):T=D(T/k),E*=k),typeof A=="number"&&(k=A|0,k<0?(C+=M*(y-1),y=D(-y/k)):y=D(y/k),M*=k),new _(this.data,T,y,E,M,C)},b.transpose=function(x,A){x=x===void 0?0:x|0,A=A===void 0?1:A|0;var T=this.shape,y=this.stride;return new _(this.data,T[x],T[A],y[x],y[A],this.offset)},b.pick=function(x,A){var T=[],y=[],E=this.offset;typeof x=="number"&&x>=0?E=E+this.stride[0]*x|0:(T.push(this.shape[0]),y.push(this.stride[0])),typeof A=="number"&&A>=0?E=E+this.stride[1]*A|0:(T.push(this.shape[1]),y.push(this.stride[1]));var M=g[T.length+1];return M(this.data,T,y,E)},function(x,A,T,y){return new _(x,A[0],A[1],T[0],T[1],y)}},3:function(m,g,w){function _(S,x,A,T,y,E,M,C){this.data=S,this.shape=[x,A,T],this.stride=[y,E,M],this.offset=C|0}var b=_.prototype;return b.dtype=m,b.dimension=3,Object.defineProperty(b,"size",{get:function(){return this.shape[0]*this.shape[1]*this.shape[2]}}),Object.defineProperty(b,"order",{get:function(){var x=Math.abs(this.stride[0]),A=Math.abs(this.stride[1]),T=Math.abs(this.stride[2]);return x>A?A>T?[2,1,0]:x>T?[1,2,0]:[1,0,2]:x>T?[2,0,1]:T>A?[0,1,2]:[0,2,1]}}),b.set=function(x,A,T,y){return m==="generic"?this.data.set(this.offset+this.stride[0]*x+this.stride[1]*A+this.stride[2]*T,y):this.data[this.offset+this.stride[0]*x+this.stride[1]*A+this.stride[2]*T]=y},b.get=function(x,A,T){return m==="generic"?this.data.get(this.offset+this.stride[0]*x+this.stride[1]*A+this.stride[2]*T):this.data[this.offset+this.stride[0]*x+this.stride[1]*A+this.stride[2]*T]},b.index=function(x,A,T){return this.offset+this.stride[0]*x+this.stride[1]*A+this.stride[2]*T},b.hi=function(x,A,T){return new _(this.data,typeof x!="number"||x<0?this.shape[0]:x|0,typeof A!="number"||A<0?this.shape[1]:A|0,typeof T!="number"||T<0?this.shape[2]:T|0,this.stride[0],this.stride[1],this.stride[2],this.offset)},b.lo=function(x,A,T){var y=this.offset,E=0,M=this.shape[0],C=this.shape[1],k=this.shape[2],D=this.stride[0],F=this.stride[1],P=this.stride[2];return typeof x=="number"&&x>=0&&(E=x|0,y+=D*E,M-=E),typeof A=="number"&&A>=0&&(E=A|0,y+=F*E,C-=E),typeof T=="number"&&T>=0&&(E=T|0,y+=P*E,k-=E),new _(this.data,M,C,k,D,F,P,y)},b.step=function(x,A,T){var y=this.shape[0],E=this.shape[1],M=this.shape[2],C=this.stride[0],k=this.stride[1],D=this.stride[2],F=this.offset,P=0,R=Math.ceil;return typeof x=="number"&&(P=x|0,P<0?(F+=C*(y-1),y=R(-y/P)):y=R(y/P),C*=P),typeof A=="number"&&(P=A|0,P<0?(F+=k*(E-1),E=R(-E/P)):E=R(E/P),k*=P),typeof T=="number"&&(P=T|0,P<0?(F+=D*(M-1),M=R(-M/P)):M=R(M/P),D*=P),new _(this.data,y,E,M,C,k,D,F)},b.transpose=function(x,A,T){x=x===void 0?0:x|0,A=A===void 0?1:A|0,T=T===void 0?2:T|0;var y=this.shape,E=this.stride;return new _(this.data,y[x],y[A],y[T],E[x],E[A],E[T],this.offset)},b.pick=function(x,A,T){var y=[],E=[],M=this.offset;typeof x=="number"&&x>=0?M=M+this.stride[0]*x|0:(y.push(this.shape[0]),E.push(this.stride[0])),typeof A=="number"&&A>=0?M=M+this.stride[1]*A|0:(y.push(this.shape[1]),E.push(this.stride[1])),typeof T=="number"&&T>=0?M=M+this.stride[2]*T|0:(y.push(this.shape[2]),E.push(this.stride[2]));var C=g[y.length+1];return C(this.data,y,E,M)},function(x,A,T,y){return new _(x,A[0],A[1],A[2],T[0],T[1],T[2],y)}},4:function(m,g,w){function _(S,x,A,T,y,E,M,C,k,D){this.data=S,this.shape=[x,A,T,y],this.stride=[E,M,C,k],this.offset=D|0}var b=_.prototype;return b.dtype=m,b.dimension=4,Object.defineProperty(b,"size",{get:function(){return this.shape[0]*this.shape[1]*this.shape[2]*this.shape[3]}}),Object.defineProperty(b,"order",{get:w}),b.set=function(x,A,T,y,E){return m==="generic"?this.data.set(this.offset+this.stride[0]*x+this.stride[1]*A+this.stride[2]*T+this.stride[3]*y,E):this.data[this.offset+this.stride[0]*x+this.stride[1]*A+this.stride[2]*T+this.stride[3]*y]=E},b.get=function(x,A,T,y){return m==="generic"?this.data.get(this.offset+this.stride[0]*x+this.stride[1]*A+this.stride[2]*T+this.stride[3]*y):this.data[this.offset+this.stride[0]*x+this.stride[1]*A+this.stride[2]*T+this.stride[3]*y]},b.index=function(x,A,T,y){return this.offset+this.stride[0]*x+this.stride[1]*A+this.stride[2]*T+this.stride[3]*y},b.hi=function(x,A,T,y){return new _(this.data,typeof x!="number"||x<0?this.shape[0]:x|0,typeof A!="number"||A<0?this.shape[1]:A|0,typeof T!="number"||T<0?this.shape[2]:T|0,typeof y!="number"||y<0?this.shape[3]:y|0,this.stride[0],this.stride[1],this.stride[2],this.stride[3],this.offset)},b.lo=function(x,A,T,y){var E=this.offset,M=0,C=this.shape[0],k=this.shape[1],D=this.shape[2],F=this.shape[3],P=this.stride[0],R=this.stride[1],L=this.stride[2],I=this.stride[3];return typeof x=="number"&&x>=0&&(M=x|0,E+=P*M,C-=M),typeof A=="number"&&A>=0&&(M=A|0,E+=R*M,k-=M),typeof T=="number"&&T>=0&&(M=T|0,E+=L*M,D-=M),typeof y=="number"&&y>=0&&(M=y|0,E+=I*M,F-=M),new _(this.data,C,k,D,F,P,R,L,I,E)},b.step=function(x,A,T,y){var E=this.shape[0],M=this.shape[1],C=this.shape[2],k=this.shape[3],D=this.stride[0],F=this.stride[1],P=this.stride[2],R=this.stride[3],L=this.offset,I=0,B=Math.ceil;return typeof x=="number"&&(I=x|0,I<0?(L+=D*(E-1),E=B(-E/I)):E=B(E/I),D*=I),typeof A=="number"&&(I=A|0,I<0?(L+=F*(M-1),M=B(-M/I)):M=B(M/I),F*=I),typeof T=="number"&&(I=T|0,I<0?(L+=P*(C-1),C=B(-C/I)):C=B(C/I),P*=I),typeof y=="number"&&(I=y|0,I<0?(L+=R*(k-1),k=B(-k/I)):k=B(k/I),R*=I),new _(this.data,E,M,C,k,D,F,P,R,L)},b.transpose=function(x,A,T,y){x=x===void 0?0:x|0,A=A===void 0?1:A|0,T=T===void 0?2:T|0,y=y===void 0?3:y|0;var E=this.shape,M=this.stride;return new _(this.data,E[x],E[A],E[T],E[y],M[x],M[A],M[T],M[y],this.offset)},b.pick=function(x,A,T,y){var E=[],M=[],C=this.offset;typeof x=="number"&&x>=0?C=C+this.stride[0]*x|0:(E.push(this.shape[0]),M.push(this.stride[0])),typeof A=="number"&&A>=0?C=C+this.stride[1]*A|0:(E.push(this.shape[1]),M.push(this.stride[1])),typeof T=="number"&&T>=0?C=C+this.stride[2]*T|0:(E.push(this.shape[2]),M.push(this.stride[2])),typeof y=="number"&&y>=0?C=C+this.stride[3]*y|0:(E.push(this.shape[3]),M.push(this.stride[3]));var k=g[E.length+1];return k(this.data,E,M,C)},function(x,A,T,y){return new _(x,A[0],A[1],A[2],A[3],T[0],T[1],T[2],T[3],y)}},5:function(g,w,_){function b(x,A,T,y,E,M,C,k,D,F,P,R){this.data=x,this.shape=[A,T,y,E,M],this.stride=[C,k,D,F,P],this.offset=R|0}var S=b.prototype;return S.dtype=g,S.dimension=5,Object.defineProperty(S,"size",{get:function(){return this.shape[0]*this.shape[1]*this.shape[2]*this.shape[3]*this.shape[4]}}),Object.defineProperty(S,"order",{get:_}),S.set=function(A,T,y,E,M,C){return g==="generic"?this.data.set(this.offset+this.stride[0]*A+this.stride[1]*T+this.stride[2]*y+this.stride[3]*E+this.stride[4]*M,C):this.data[this.offset+this.stride[0]*A+this.stride[1]*T+this.stride[2]*y+this.stride[3]*E+this.stride[4]*M]=C},S.get=function(A,T,y,E,M){return g==="generic"?this.data.get(this.offset+this.stride[0]*A+this.stride[1]*T+this.stride[2]*y+this.stride[3]*E+this.stride[4]*M):this.data[this.offset+this.stride[0]*A+this.stride[1]*T+this.stride[2]*y+this.stride[3]*E+this.stride[4]*M]},S.index=function(A,T,y,E,M){return this.offset+this.stride[0]*A+this.stride[1]*T+this.stride[2]*y+this.stride[3]*E+this.stride[4]*M},S.hi=function(A,T,y,E,M){return new b(this.data,typeof A!="number"||A<0?this.shape[0]:A|0,typeof T!="number"||T<0?this.shape[1]:T|0,typeof y!="number"||y<0?this.shape[2]:y|0,typeof E!="number"||E<0?this.shape[3]:E|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)},S.lo=function(A,T,y,E,M){var C=this.offset,k=0,D=this.shape[0],F=this.shape[1],P=this.shape[2],R=this.shape[3],L=this.shape[4],I=this.stride[0],B=this.stride[1],O=this.stride[2],$=this.stride[3],X=this.stride[4];return typeof A=="number"&&A>=0&&(k=A|0,C+=I*k,D-=k),typeof T=="number"&&T>=0&&(k=T|0,C+=B*k,F-=k),typeof y=="number"&&y>=0&&(k=y|0,C+=O*k,P-=k),typeof E=="number"&&E>=0&&(k=E|0,C+=$*k,R-=k),typeof M=="number"&&M>=0&&(k=M|0,C+=X*k,L-=k),new b(this.data,D,F,P,R,L,I,B,O,$,X,C)},S.step=function(A,T,y,E,M){var C=this.shape[0],k=this.shape[1],D=this.shape[2],F=this.shape[3],P=this.shape[4],R=this.stride[0],L=this.stride[1],I=this.stride[2],B=this.stride[3],O=this.stride[4],$=this.offset,X=0,K=Math.ceil;return typeof A=="number"&&(X=A|0,X<0?($+=R*(C-1),C=K(-C/X)):C=K(C/X),R*=X),typeof T=="number"&&(X=T|0,X<0?($+=L*(k-1),k=K(-k/X)):k=K(k/X),L*=X),typeof y=="number"&&(X=y|0,X<0?($+=I*(D-1),D=K(-D/X)):D=K(D/X),I*=X),typeof E=="number"&&(X=E|0,X<0?($+=B*(F-1),F=K(-F/X)):F=K(F/X),B*=X),typeof M=="number"&&(X=M|0,X<0?($+=O*(P-1),P=K(-P/X)):P=K(P/X),O*=X),new b(this.data,C,k,D,F,P,R,L,I,B,O,$)},S.transpose=function(A,T,y,E,M){A=A===void 0?0:A|0,T=T===void 0?1:T|0,y=y===void 0?2:y|0,E=E===void 0?3:E|0,M=M===void 0?4:M|0;var C=this.shape,k=this.stride;return new b(this.data,C[A],C[T],C[y],C[E],C[M],k[A],k[T],k[y],k[E],k[M],this.offset)},S.pick=function(A,T,y,E,M){var C=[],k=[],D=this.offset;typeof A=="number"&&A>=0?D=D+this.stride[0]*A|0:(C.push(this.shape[0]),k.push(this.stride[0])),typeof T=="number"&&T>=0?D=D+this.stride[1]*T|0:(C.push(this.shape[1]),k.push(this.stride[1])),typeof y=="number"&&y>=0?D=D+this.stride[2]*y|0:(C.push(this.shape[2]),k.push(this.stride[2])),typeof E=="number"&&E>=0?D=D+this.stride[3]*E|0:(C.push(this.shape[3]),k.push(this.stride[3])),typeof M=="number"&&M>=0?D=D+this.stride[4]*M|0:(C.push(this.shape[4]),k.push(this.stride[4]));var F=w[C.length+1];return F(this.data,C,k,D)},function(A,T,y,E){return new b(A,T[0],T[1],T[2],T[3],T[4],y[0],y[1],y[2],y[3],y[4],E)}}};function h(m,g){var w=g===-1?"T":String(g),_=f[w];return g===-1?_(m):g===0?_(m,d[m][0]):_(m,d[m],c)}function p(m){if(s(m))return"buffer";if(l)switch(Object.prototype.toString.call(m)){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(m)?"array":"generic"}var d={generic:[],buffer:[],array:[],float32:[],float64:[],int8:[],int16:[],int32:[],uint8_clamped:[],uint8:[],uint16:[],uint32:[],bigint64:[],biguint64:[]};function v(m,g,w,_){if(m===void 0){var y=d.array[0];return y([])}else typeof m=="number"&&(m=[m]);g===void 0&&(g=[m.length]);var b=g.length;if(w===void 0){w=new Array(b);for(var S=b-1,x=1;S>=0;--S)w[S]=x,x*=g[S]}if(_===void 0){_=0;for(var S=0;S>>0;n.exports=c;function c(f,h){if(isNaN(f)||isNaN(h))return NaN;if(f===h)return f;if(f===0)return h<0?-l:l;var p=s.hi(f),d=s.lo(f);return h>f==f>0?d===u?(p+=1,d=0):d+=1:d===0?(d=u,p-=1):d-=1,s.pack(d,p)}},8406(n,a){var o=1e-6,s=1e-6;a.vertexNormals=function(l,u,c){for(var f=u.length,h=new Array(f),p=c===void 0?o:c,d=0;dp)for(var C=h[g],k=1/Math.sqrt(T*E),M=0;M<3;++M){var D=(M+1)%3,F=(M+2)%3;C[M]+=k*(y[D]*A[F]-y[F]*A[D])}}for(var d=0;dp)for(var k=1/Math.sqrt(P),M=0;M<3;++M)C[M]*=k;else for(var M=0;M<3;++M)C[M]=0}return h},a.faceNormals=function(l,u,c){for(var f=l.length,h=new Array(f),p=c===void 0?s:c,d=0;dp?S=1/Math.sqrt(S):S=0;for(var g=0;g<3;++g)b[g]*=S;h[d]=b}return h}},4081(n){"use strict";n.exports=a;function a(o,s,l,u,c,f,h,p,d,v){var m=s+f+v;if(g>0){var g=Math.sqrt(m+1);o[0]=.5*(h-d)/g,o[1]=.5*(p-u)/g,o[2]=.5*(l-f)/g,o[3]=.5*g}else{var w=Math.max(s,f,v),g=Math.sqrt(2*w-m+1);s>=w?(o[0]=.5*g,o[1]=.5*(c+l)/g,o[2]=.5*(p+u)/g,o[3]=.5*(h-d)/g):f>=w?(o[0]=.5*(l+c)/g,o[1]=.5*g,o[2]=.5*(d+h)/g,o[3]=.5*(p-u)/g):(o[0]=.5*(u+p)/g,o[1]=.5*(h+d)/g,o[2]=.5*g,o[3]=.5*(l-c)/g)}return o}},9977(n,a,o){"use strict";n.exports=g;var s=o(9215),l=o(6582),u=o(7399),c=o(7608),f=o(4081);function h(w,_,b){return Math.sqrt(Math.pow(w,2)+Math.pow(_,2)+Math.pow(b,2))}function p(w,_,b,S){return Math.sqrt(Math.pow(w,2)+Math.pow(_,2)+Math.pow(b,2)+Math.pow(S,2))}function d(w,_){var b=_[0],S=_[1],x=_[2],A=_[3],T=p(b,S,x,A);T>1e-6?(w[0]=b/T,w[1]=S/T,w[2]=x/T,w[3]=A/T):(w[0]=w[1]=w[2]=0,w[3]=1)}function v(w,_,b){this.radius=s([b]),this.center=s(_),this.rotation=s(w),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 m=v.prototype;m.lastT=function(){return Math.max(this.radius.lastT(),this.center.lastT(),this.rotation.lastT())},m.recalcMatrix=function(w){this.radius.curve(w),this.center.curve(w),this.rotation.curve(w);var _=this.computedRotation;d(_,_);var b=this.computedMatrix;u(b,_);var S=this.computedCenter,x=this.computedEye,A=this.computedUp,T=Math.exp(this.computedRadius[0]);x[0]=S[0]+T*b[2],x[1]=S[1]+T*b[6],x[2]=S[2]+T*b[10],A[0]=b[1],A[1]=b[5],A[2]=b[9];for(var y=0;y<3;++y){for(var E=0,M=0;M<3;++M)E+=b[y+4*M]*x[M];b[12+y]=-E}},m.getMatrix=function(w,_){this.recalcMatrix(w);var b=this.computedMatrix;if(_){for(var S=0;S<16;++S)_[S]=b[S];return _}return b},m.idle=function(w){this.center.idle(w),this.radius.idle(w),this.rotation.idle(w)},m.flush=function(w){this.center.flush(w),this.radius.flush(w),this.rotation.flush(w)},m.pan=function(w,_,b,S){_=_||0,b=b||0,S=S||0,this.recalcMatrix(w);var x=this.computedMatrix,A=x[1],T=x[5],y=x[9],E=h(A,T,y);A/=E,T/=E,y/=E;var M=x[0],C=x[4],k=x[8],D=M*A+C*T+k*y;M-=A*D,C-=T*D,k-=y*D;var F=h(M,C,k);M/=F,C/=F,k/=F;var P=x[2],R=x[6],L=x[10],I=P*A+R*T+L*y,B=P*M+R*C+L*k;P-=I*A+B*M,R-=I*T+B*C,L-=I*y+B*k;var O=h(P,R,L);P/=O,R/=O,L/=O;var $=M*_+A*b,X=C*_+T*b,K=k*_+y*b;this.center.move(w,$,X,K);var G=Math.exp(this.computedRadius[0]);G=Math.max(1e-4,G+S),this.radius.set(w,Math.log(G))},m.rotate=function(w,_,b,S){this.recalcMatrix(w),_=_||0,b=b||0;var x=this.computedMatrix,A=x[0],T=x[4],y=x[8],E=x[1],M=x[5],C=x[9],k=x[2],D=x[6],F=x[10],P=_*A+b*E,R=_*T+b*M,L=_*y+b*C,I=-(D*L-F*R),B=-(F*P-k*L),O=-(k*R-D*P),$=Math.sqrt(Math.max(0,1-Math.pow(I,2)-Math.pow(B,2)-Math.pow(O,2))),X=p(I,B,O,$);X>1e-6?(I/=X,B/=X,O/=X,$/=X):(I=B=O=0,$=1);var K=this.computedRotation,G=K[0],q=K[1],J=K[2],N=K[3],V=G*$+N*I+q*O-J*B,Y=q*$+N*B+J*I-G*O,H=J*$+N*O+G*B-q*I,j=N*$-G*I-q*B-J*O;if(S){I=k,B=D,O=F;var Q=Math.sin(S)/h(I,B,O);I*=Q,B*=Q,O*=Q,$=Math.cos(_),V=V*$+j*I+Y*O-H*B,Y=Y*$+j*B+H*I-V*O,H=H*$+j*O+V*B-Y*I,j=j*$-V*I-Y*B-H*O}var te=p(V,Y,H,j);te>1e-6?(V/=te,Y/=te,H/=te,j/=te):(V=Y=H=0,j=1),this.rotation.set(w,V,Y,H,j)},m.lookAt=function(w,_,b,S){this.recalcMatrix(w),b=b||this.computedCenter,_=_||this.computedEye,S=S||this.computedUp;var x=this.computedMatrix;l(x,_,b,S);var A=this.computedRotation;f(A,x[0],x[1],x[2],x[4],x[5],x[6],x[8],x[9],x[10]),d(A,A),this.rotation.set(w,A[0],A[1],A[2],A[3]);for(var T=0,y=0;y<3;++y)T+=Math.pow(b[y]-_[y],2);this.radius.set(w,.5*Math.log(Math.max(T,1e-6))),this.center.set(w,b[0],b[1],b[2])},m.translate=function(w,_,b,S){this.center.move(w,_||0,b||0,S||0)},m.setMatrix=function(w,_){var b=this.computedRotation;f(b,_[0],_[1],_[2],_[4],_[5],_[6],_[8],_[9],_[10]),d(b,b),this.rotation.set(w,b[0],b[1],b[2],b[3]);var S=this.computedMatrix;c(S,_);var x=S[15];if(Math.abs(x)>1e-6){var A=S[12]/x,T=S[13]/x,y=S[14]/x;this.recalcMatrix(w);var E=Math.exp(this.computedRadius[0]);this.center.set(w,A-S[2]*E,T-S[6]*E,y-S[10]*E),this.radius.idle(w)}else this.center.idle(w),this.radius.idle(w)},m.setDistance=function(w,_){_>0&&this.radius.set(w,Math.log(_))},m.setDistanceLimits=function(w,_){w>0?w=Math.log(w):w=-1/0,_>0?_=Math.log(_):_=1/0,_=Math.max(_,w),this.radius.bounds[0][0]=w,this.radius.bounds[1][0]=_},m.getDistanceLimits=function(w){var _=this.radius.bounds;return w?(w[0]=Math.exp(_[0][0]),w[1]=Math.exp(_[1][0]),w):[Math.exp(_[0][0]),Math.exp(_[1][0])]},m.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]}},m.fromJSON=function(w){var _=this.lastT(),b=w.center;b&&this.center.set(_,b[0],b[1],b[2]);var S=w.rotation;S&&this.rotation.set(_,S[0],S[1],S[2],S[3]);var x=w.distance;x&&x>0&&this.radius.set(_,Math.log(x)),this.setDistanceLimits(w.zoomMin,w.zoomMax)};function g(w){w=w||{};var _=w.center||[0,0,0],b=w.rotation||[0,0,0,1],S=w.radius||1;_=[].slice.call(_,0,3),b=[].slice.call(b,0,4),d(b,b);var x=new v(b,_,Math.log(S));return x.setDistanceLimits(w.zoomMin,w.zoomMax),("eye"in w||"up"in w)&&x.lookAt(0,w.eye,w.center,w.up),x}},1371(n,a,o){"use strict";var s=o(3233);n.exports=function(u,c,f){return f=typeof f!="undefined"?f+"":" ",s(f,c)+u}},3202(n){n.exports=function(o,s){s||(s=[0,""]),o=String(o);var l=parseFloat(o,10);return s[0]=l,s[1]=o.match(/[\d.\-\+]*\s*(.*)/)[1]||"",s}},3088(n,a,o){"use strict";n.exports=l;var s=o(3140);function l(u,c){for(var f=c.length|0,h=u.length,p=[new Array(f),new Array(f)],d=0;d0){C=p[F][E][0],D=F;break}k=C[D^1];for(var P=0;P<2;++P)for(var R=p[P][E],L=0;L0&&(C=I,k=B,D=P)}return M||C&&g(C,D),k}function _(y,E){var M=p[E][y][0],C=[y];g(M,E);for(var k=M[E^1],D=E;;){for(;k!==y;)C.push(k),k=w(C[C.length-2],k,!1);if(p[0][y].length+p[1][y].length===0)break;var F=C[C.length-1],P=y,R=C[1],L=w(F,P,!0);if(s(c[F],c[P],c[R],c[L])<0)break;C.push(y),k=w(F,P)}return C}function b(y,E){return E[1]===E[E.length-1]}for(var d=0;d0;){var A=p[0][d].length,T=_(d,S);b(x,T)?x.push.apply(x,T):(x.length>0&&m.push(x),x=T)}x.length>0&&m.push(x)}return m}},5609(n,a,o){"use strict";n.exports=l;var s=o(3134);function l(u,c){for(var f=s(u,c.length),h=new Array(c.length),p=new Array(c.length),d=[],v=0;v0;){var g=d.pop();h[g]=!1;for(var w=f[g],v=0;v0}A=A.filter(T);for(var y=A.length,E=new Array(y),M=new Array(y),x=0;x0;){var te=H.pop(),ue=X[te];h(ue,function(oe,Se){return oe-Se});var ge=ue.length,Ee=j[te],xe;if(Ee===0){var R=A[te];xe=[R]}for(var x=0;x=0)&&(j[ce]=Ee^1,H.push(ce),Ee===0)){var R=A[ce];Y(R)||(R.reverse(),xe.push(R))}}Ee===0&&Q.push(xe)}return Q}},5085(n,a,o){n.exports=w;var s=o(3250)[3],l=o(4209),u=o(3352),c=o(2478);function f(){return!0}function h(_){return function(b,S){var x=_[b];return x?!!x.queryPoint(S,f):!1}}function p(_){for(var b={},S=0;S<_.length;++S){var x=_[S],A=x[0][0],T=x[0][1],y=x[1][1],E=[Math.min(T,y),Math.max(T,y)];A in b?b[A].push(E):b[A]=[E]}for(var M={},C=Object.keys(b),S=0;S0&&b[x]===S[0])A=_[x-1];else return 1;for(var T=1;A;){var y=A.key,E=s(S,y[0],y[1]);if(y[0][0]0)T=-1,A=A.right;else return 0;else if(E>0)A=A.left;else if(E<0)T=1,A=A.right;else return 0}return T}}function v(_){return 1}function m(_){return function(S){return _(S[0],S[1])?0:1}}function g(_,b){return function(x){return _(x[0],x[1])?0:b(x)}}function w(_){for(var b=_.length,S=[],x=[],A=0,T=0;T=v?(y=1,M=v+2*w+b):(y=-w/v,M=w*y+b)):(y=0,_>=0?(E=0,M=b):-_>=g?(E=1,M=g+2*_+b):(E=-_/g,M=_*E+b));else if(E<0)E=0,w>=0?(y=0,M=b):-w>=v?(y=1,M=v+2*w+b):(y=-w/v,M=w*y+b);else{var C=1/T;y*=C,E*=C,M=y*(v*y+m*E+2*w)+E*(m*y+g*E+2*_)+b}else{var k,D,F,P;y<0?(k=m+w,D=g+_,D>k?(F=D-k,P=v-2*m+g,F>=P?(y=1,E=0,M=v+2*w+b):(y=F/P,E=1-y,M=y*(v*y+m*E+2*w)+E*(m*y+g*E+2*_)+b)):(y=0,D<=0?(E=1,M=g+2*_+b):_>=0?(E=0,M=b):(E=-_/g,M=_*E+b))):E<0?(k=m+_,D=v+w,D>k?(F=D-k,P=v-2*m+g,F>=P?(E=1,y=0,M=g+2*_+b):(E=F/P,y=1-E,M=y*(v*y+m*E+2*w)+E*(m*y+g*E+2*_)+b)):(E=0,D<=0?(y=1,M=v+2*w+b):w>=0?(y=0,M=b):(y=-w/v,M=w*y+b))):(F=g+_-m-w,F<=0?(y=0,E=1,M=g+2*_+b):(P=v-2*m+g,F>=P?(y=1,E=0,M=v+2*w+b):(y=F/P,E=1-y,M=y*(v*y+m*E+2*w)+E*(m*y+g*E+2*_)+b)))}for(var R=1-y-E,d=0;d0){var g=f[p-1];if(s(v,g)===0&&u(g)!==m){p-=1;continue}}f[p++]=v}}return f.length=p,f}},3233(n){"use strict";var a="",o;n.exports=s;function s(l,u){if(typeof l!="string")throw new TypeError("expected a string");if(u===1)return l;if(u===2)return l+l;var c=l.length*u;if(o!==l||typeof o=="undefined")o=l,a="";else if(a.length>=c)return a.substr(0,c);for(;c>a.length&&u>1;)u&1&&(a+=l),u>>=1,l+=l;return a+=l,a=a.substr(0,c),a}},3025(n,a,o){n.exports=o.g.performance&&o.g.performance.now?function(){return performance.now()}:Date.now||function(){return+new Date}},7004(n){"use strict";n.exports=a;function a(o){for(var s=o.length,l=o[o.length-1],u=s,c=s-2;c>=0;--c){var f=l,h=o[c];l=f+h;var p=l-f,d=h-p;d&&(o[--u]=l,l=d)}for(var v=0,c=u;c0){if(D<=0)return F;P=k+D}else if(k<0){if(D>=0)return F;P=-(k+D)}else return F;var R=p*P;return F>=R||F<=-R?F:_(E,M,C)},function(E,M,C,k){var D=E[0]-k[0],F=M[0]-k[0],P=C[0]-k[0],R=E[1]-k[1],L=M[1]-k[1],I=C[1]-k[1],B=E[2]-k[2],O=M[2]-k[2],$=C[2]-k[2],X=F*I,K=P*L,G=P*R,q=D*I,J=D*L,N=F*R,V=B*(X-K)+O*(G-q)+$*(J-N),Y=(Math.abs(X)+Math.abs(K))*Math.abs(B)+(Math.abs(G)+Math.abs(q))*Math.abs(O)+(Math.abs(J)+Math.abs(N))*Math.abs($),H=d*Y;return V>H||-V>H?V:b(E,M,C,k)}];function x(y){var E=S[y.length];return E||(E=S[y.length]=w(y.length)),E.apply(void 0,y)}function A(y,E,M,C,k,D,F){return function(R,L,I,B,O){switch(arguments.length){case 0:case 1:return 0;case 2:return C(R,L);case 3:return k(R,L,I);case 4:return D(R,L,I,B);case 5:return F(R,L,I,B,O)}for(var $=new Array(arguments.length),X=0;X0&&v>0||d<0&&v<0)return!1;var m=s(h,c,f),g=s(p,c,f);return m>0&&g>0||m<0&&g<0?!1:d===0&&v===0&&m===0&&g===0?l(c,f,h,p):!0}},8545(n){"use strict";n.exports=o;function a(s,l){var u=s+l,c=u-s,f=u-c,h=l-c,p=s-f,d=p+h;return d?[d,u]:[u]}function o(s,l){var u=s.length|0,c=l.length|0;if(u===1&&c===1)return a(s[0],-l[0]);var f=u+c,h=new Array(f),p=0,d=0,v=0,m=Math.abs,g=s[d],w=m(g),_=-l[v],b=m(_),S,x;w=c?(S=g,d+=1,d=c?(S=g,d+=1,d>1,_=f[2*w+1];if(_===v)return w;v<_?g=w:m=w+1}return m}function u(c,f,h,p){for(var d=c.length,v=[],m=0;m>1,_=f[2*w+1];if(_===v)return w;v<_?g=w:m=w+1}return m}function u(c,f,h,p){for(var d=c.length,v=[],m=0;m>1,_=f[2*w+1];if(_===v)return w;v<_?g=w:m=w+1}return m}function u(c,f,h,p){for(var d=c.length,v=[],m=0;m>1,_=f[2*w+1];if(_===v)return w;v<_?g=w:m=w+1}return m}function u(c,f,h,p){for(var d=c.length,v=[],m=0;m>1,P=p(E[F],M);P<=0?(P===0&&(D=F),C=F+1):P>0&&(k=F-1)}return D}s=g;function w(E,M){for(var C=new Array(E.length),k=0,D=C.length;k=E.length||p(E[X],F)!==0););}return C}s=w;function _(E,M){if(!M)return w(m(S(E,0)),E,0);for(var C=new Array(M),k=0;k>>I&1&&L.push(D[I]);M.push(L)}return v(M)}s=b;function S(E,M){if(M<0)return[];for(var C=[],k=(1<0)-(u<0)},a.abs=function(u){var c=u>>o-1;return(u^c)-c},a.min=function(u,c){return c^(u^c)&-(u65535)<<4,u>>>=c,f=(u>255)<<3,u>>>=f,c|=f,f=(u>15)<<2,u>>>=f,c|=f,f=(u>3)<<1,u>>>=f,c|=f,c|u>>1},a.log10=function(u){return u>=1e9?9:u>=1e8?8:u>=1e7?7:u>=1e6?6:u>=1e5?5:u>=1e4?4:u>=1e3?3:u>=100?2:u>=10?1:0},a.popCount=function(u){return u=u-(u>>>1&1431655765),u=(u&858993459)+(u>>>2&858993459),(u+(u>>>4)&252645135)*16843009>>>24};function s(u){var c=32;return u&=-u,u&&c--,u&65535&&(c-=16),u&16711935&&(c-=8),u&252645135&&(c-=4),u&858993459&&(c-=2),u&1431655765&&(c-=1),c}a.countTrailingZeros=s,a.nextPow2=function(u){return u+=u===0,--u,u|=u>>>1,u|=u>>>2,u|=u>>>4,u|=u>>>8,u|=u>>>16,u+1},a.prevPow2=function(u){return u|=u>>>1,u|=u>>>2,u|=u>>>4,u|=u>>>8,u|=u>>>16,u-(u>>>1)},a.parity=function(u){return u^=u>>>16,u^=u>>>8,u^=u>>>4,u&=15,27030>>>u&1};var l=new Array(256);(function(u){for(var c=0;c<256;++c){var f=c,h=c,p=7;for(f>>>=1;f;f>>>=1)h<<=1,h|=f&1,--p;u[c]=h<>>8&255]<<16|l[u>>>16&255]<<8|l[u>>>24&255]},a.interleave2=function(u,c){return u&=65535,u=(u|u<<8)&16711935,u=(u|u<<4)&252645135,u=(u|u<<2)&858993459,u=(u|u<<1)&1431655765,c&=65535,c=(c|c<<8)&16711935,c=(c|c<<4)&252645135,c=(c|c<<2)&858993459,c=(c|c<<1)&1431655765,u|c<<1},a.deinterleave2=function(u,c){return u=u>>>c&1431655765,u=(u|u>>>1)&858993459,u=(u|u>>>2)&252645135,u=(u|u>>>4)&16711935,u=(u|u>>>16)&65535,u<<16>>16},a.interleave3=function(u,c,f){return u&=1023,u=(u|u<<16)&4278190335,u=(u|u<<8)&251719695,u=(u|u<<4)&3272356035,u=(u|u<<2)&1227133513,c&=1023,c=(c|c<<16)&4278190335,c=(c|c<<8)&251719695,c=(c|c<<4)&3272356035,c=(c|c<<2)&1227133513,u|=c<<1,f&=1023,f=(f|f<<16)&4278190335,f=(f|f<<8)&251719695,f=(f|f<<4)&3272356035,f=(f|f<<2)&1227133513,u|f<<2},a.deinterleave3=function(u,c){return u=u>>>c&1227133513,u=(u|u>>>2)&3272356035,u=(u|u>>>4)&251719695,u=(u|u>>>8)&4278190335,u=(u|u>>>16)&1023,u<<22>>22},a.nextCombination=function(u){var c=u|u-1;return c+1|(~c&-~c)-1>>>s(u)+1}},2014(n,a,o){"use strict";"use restrict";var s=o(3105),l=o(4623);function u(y){for(var E=0,M=Math.max,C=0,k=y.length;C>1,F=h(y[D],E);F<=0?(F===0&&(k=D),M=D+1):F>0&&(C=D-1)}return k}a.findCell=m;function g(y,E){for(var M=new Array(y.length),C=0,k=M.length;C=y.length||h(y[$],D)!==0););}return M}a.incidence=g;function w(y,E){if(!E)return g(v(b(y,0)),y,0);for(var M=new Array(E),C=0;C>>L&1&&R.push(k[L]);E.push(R)}return d(E)}a.explode=_;function b(y,E){if(E<0)return[];for(var M=[],C=(1<>1:(q>>1)-1}function C(q){for(var J=E(q);;){var N=J,V=2*q+1,Y=2*(q+1),H=q;if(V0;){var N=M(q);if(N>=0){var V=E(N);if(J0){var q=R[0];return y(0,B-1),B-=1,C(0),q}return-1}function F(q,J){var N=R[q];return w[N]===J?q:(w[N]=-1/0,k(q),D(),w[N]=J,B+=1,k(B-1))}function P(q){if(!_[q]){_[q]=!0;var J=m[q],N=g[q];m[N]>=0&&(m[N]=J),g[J]>=0&&(g[J]=N),L[J]>=0&&F(L[J],T(J)),L[N]>=0&&F(L[N],T(N))}}for(var R=[],L=new Array(d),b=0;b>1;b>=0;--b)C(b);for(;;){var O=D();if(O<0||w[O]>p)break;P(O)}for(var $=[],b=0;b=0&&N>=0&&J!==N){var V=L[J],Y=L[N];V!==Y&&G.push([V,Y])}}),l.unique(l.normalize(G)),{positions:$,edges:G}}},1303(n,a,o){"use strict";n.exports=u;var s=o(3250);function l(c,f){var h,p;if(f[0][0]f[1][0])h=f[1],p=f[0];else{var d=Math.min(c[0][1],c[1][1]),v=Math.max(c[0][1],c[1][1]),m=Math.min(f[0][1],f[1][1]),g=Math.max(f[0][1],f[1][1]);return vg?d-g:v-g}var w,_;c[0][1]f[1][0])h=f[1],p=f[0];else return l(f,c);var d,v;if(c[0][0]c[1][0])d=c[1],v=c[0];else return-l(c,f);var m=s(h,p,v),g=s(h,p,d);if(m<0){if(g<=0)return m}else if(m>0){if(g>=0)return m}else if(g)return g;if(m=s(v,d,p),g=s(v,d,h),m<0){if(g<=0)return m}else if(m>0){if(g>=0)return m}else if(g)return g;return p[0]-v[0]}},4209(n,a,o){"use strict";n.exports=g;var s=o(2478),l=o(3840),u=o(3250),c=o(1303);function f(w,_,b){this.slabs=w,this.coordinates=_,this.horizontal=b}var h=f.prototype;function p(w,_){return w.y-_}function d(w,_){for(var b=null;w;){var S=w.key,x,A;S[0][0]0)if(_[0]!==S[1][0])b=w,w=w.right;else{var y=d(w.right,_);if(y)return y;w=w.left}else{if(_[0]!==S[1][0])return w;var y=d(w.right,_);if(y)return y;w=w.left}}return b}h.castUp=function(w){var _=s.le(this.coordinates,w[0]);if(_<0)return-1;var b=this.slabs[_],S=d(this.slabs[_],w),x=-1;if(S&&(x=S.value),this.coordinates[_]===w[0]){var A=null;if(S&&(A=S.key),_>0){var T=d(this.slabs[_-1],w);T&&(A?c(T.key,A)>0&&(A=T.key,x=T.value):(x=T.value,A=T.key))}var y=this.horizontal[_];if(y.length>0){var E=s.ge(y,w[1],p);if(E=y.length)return x;M=y[E]}}if(M.start)if(A){var C=u(A[0],A[1],[w[0],M.y]);A[0][0]>A[1][0]&&(C=-C),C>0&&(x=M.index)}else x=M.index;else M.y!==w[1]&&(x=M.index)}}}return x};function v(w,_,b,S){this.y=w,this.index=_,this.start=b,this.closed=S}function m(w,_,b,S){this.x=w,this.segment=_,this.create=b,this.index=S}function g(w){for(var _=w.length,b=2*_,S=new Array(b),x=0;x<_;++x){var A=w[x],T=A[0][0]1&&(_=1);for(var b=1-_,S=d.length,x=new Array(S),A=0;A0||w>0&&x<0){var A=c(_,x,b,w);m.push(A),g.push(A.slice())}x<0?g.push(b.slice()):x>0?m.push(b.slice()):(m.push(b.slice()),g.push(b.slice())),w=x}return{positive:m,negative:g}}function h(d,v){for(var m=[],g=u(d[d.length-1],v),w=d[d.length-1],_=d[0],b=0;b0||g>0&&S<0)&&m.push(c(w,S,_,g)),S>=0&&m.push(_.slice()),g=S}return m}function p(d,v){for(var m=[],g=u(d[d.length-1],v),w=d[d.length-1],_=d[0],b=0;b0||g>0&&S<0)&&m.push(c(w,S,_,g)),S<=0&&m.push(_.slice()),g=S}return m}},3387(n,a,o){var s;(function(){"use strict";var l={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 u(d){return f(p(d),arguments)}function c(d,v){return u.apply(null,[d].concat(v||[]))}function f(d,v){var m=1,g=d.length,w,_="",b,S,x,A,T,y,E,M;for(b=0;b=0),x.type){case"b":w=parseInt(w,10).toString(2);break;case"c":w=String.fromCharCode(parseInt(w,10));break;case"d":case"i":w=parseInt(w,10);break;case"j":w=JSON.stringify(w,null,x.width?parseInt(x.width):0);break;case"e":w=x.precision?parseFloat(w).toExponential(x.precision):parseFloat(w).toExponential();break;case"f":w=x.precision?parseFloat(w).toFixed(x.precision):parseFloat(w);break;case"g":w=x.precision?String(Number(w.toPrecision(x.precision))):parseFloat(w);break;case"o":w=(parseInt(w,10)>>>0).toString(8);break;case"s":w=String(w),w=x.precision?w.substring(0,x.precision):w;break;case"t":w=String(!!w),w=x.precision?w.substring(0,x.precision):w;break;case"T":w=Object.prototype.toString.call(w).slice(8,-1).toLowerCase(),w=x.precision?w.substring(0,x.precision):w;break;case"u":w=parseInt(w,10)>>>0;break;case"v":w=w.valueOf(),w=x.precision?w.substring(0,x.precision):w;break;case"x":w=(parseInt(w,10)>>>0).toString(16);break;case"X":w=(parseInt(w,10)>>>0).toString(16).toUpperCase();break}l.json.test(x.type)?_+=w:(l.number.test(x.type)&&(!E||x.sign)?(M=E?"+":"-",w=w.toString().replace(l.sign,"")):M="",T=x.pad_char?x.pad_char==="0"?"0":x.pad_char.charAt(1):" ",y=x.width-(M+w).length,A=x.width&&y>0?T.repeat(y):"",_+=x.align?M+w+A:T==="0"?M+A+w:A+M+w)}return _}var h=Object.create(null);function p(d){if(h[d])return h[d];for(var v=d,m,g=[],w=0;v;){if((m=l.text.exec(v))!==null)g.push(m[0]);else if((m=l.modulo.exec(v))!==null)g.push("%");else if((m=l.placeholder.exec(v))!==null){if(m[2]){w|=1;var _=[],b=m[2],S=[];if((S=l.key.exec(b))!==null)for(_.push(S[1]);(b=b.substring(S[0].length))!=="";)if((S=l.key_access.exec(b))!==null)_.push(S[1]);else if((S=l.index_access.exec(b))!==null)_.push(S[1]);else throw new SyntaxError("[sprintf] failed to parse named argument key");else throw new SyntaxError("[sprintf] failed to parse named argument key");m[2]=_}else w|=2;if(w===3)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");g.push({placeholder:m[0],param_no:m[1],keys:m[2],sign:m[3],pad_char:m[4],align:m[5],width:m[6],precision:m[7],type:m[8]})}else throw new SyntaxError("[sprintf] unexpected placeholder");v=v.substring(m[0].length)}return h[d]=g}a.sprintf=u,a.vsprintf=c,typeof window!="undefined"&&(window.sprintf=u,window.vsprintf=c,s=(function(){return{sprintf:u,vsprintf:c}}).call(a,o,a,n),s!==void 0&&(n.exports=s))})()},3711(n,a,o){"use strict";n.exports=p;var s=o(2640),l=o(781),u={"2d":function(d,v,m){var g=d({order:v,scalarArguments:3,getters:m==="generic"?[0]:void 0,phase:function(_,b,S,x){return _>x|0},vertex:function(_,b,S,x,A,T,y,E,M,C,k,D,F){var P=(y<<0)+(E<<1)+(M<<2)+(C<<3)|0;if(!(P===0||P===15))switch(P){case 0:k.push([_-.5,b-.5]);break;case 1:k.push([_-.25-.25*(x+S-2*F)/(S-x),b-.25-.25*(A+S-2*F)/(S-A)]);break;case 2:k.push([_-.75-.25*(-x-S+2*F)/(x-S),b-.25-.25*(T+x-2*F)/(x-T)]);break;case 3:k.push([_-.5,b-.5-.5*(A+S+T+x-4*F)/(S-A+x-T)]);break;case 4:k.push([_-.25-.25*(T+A-2*F)/(A-T),b-.75-.25*(-A-S+2*F)/(A-S)]);break;case 5:k.push([_-.5-.5*(x+S+T+A-4*F)/(S-x+A-T),b-.5]);break;case 6:k.push([_-.5-.25*(-x-S+T+A)/(x-S+A-T),b-.5-.25*(-A-S+T+x)/(A-S+x-T)]);break;case 7:k.push([_-.75-.25*(T+A-2*F)/(A-T),b-.75-.25*(T+x-2*F)/(x-T)]);break;case 8:k.push([_-.75-.25*(-T-A+2*F)/(T-A),b-.75-.25*(-T-x+2*F)/(T-x)]);break;case 9:k.push([_-.5-.25*(x+S+-T-A)/(S-x+T-A),b-.5-.25*(A+S+-T-x)/(S-A+T-x)]);break;case 10:k.push([_-.5-.5*(-x-S+-T-A+4*F)/(x-S+T-A),b-.5]);break;case 11:k.push([_-.25-.25*(-T-A+2*F)/(T-A),b-.75-.25*(A+S-2*F)/(S-A)]);break;case 12:k.push([_-.5,b-.5-.5*(-A-S+-T-x+4*F)/(A-S+T-x)]);break;case 13:k.push([_-.75-.25*(x+S-2*F)/(S-x),b-.25-.25*(-T-x+2*F)/(T-x)]);break;case 14:k.push([_-.25-.25*(-x-S+2*F)/(x-S),b-.25-.25*(-A-S+2*F)/(A-S)]);break;case 15:k.push([_-.5,b-.5]);break}},cell:function(_,b,S,x,A,T,y,E,M){A?E.push([_,b]):E.push([b,_])}});return function(w,_){var b=[],S=[];return g(w,b,S,_),{positions:b,cells:S}}}};function c(d,v){var m=d.length+"d",g=u[m];if(g)return g(s,d,v)}function f(d,v){for(var m=l(d,v),g=m.length,w=new Array(g),_=new Array(g),b=0;bMath.max(x,A)?T[2]=1:x>Math.max(S,A)?T[0]=1:T[1]=1;for(var y=0,E=0,M=0;M<3;++M)y+=b[M]*b[M],E+=T[M]*b[M];for(var M=0;M<3;++M)T[M]-=E/y*b[M];return f(T,T),T}function m(b,S,x,A,T,y,E,M){this.center=s(x),this.up=s(A),this.right=s(T),this.radius=s([y]),this.angle=s([E,M]),this.angle.bounds=[[-1/0,-Math.PI/2],[1/0,Math.PI/2]],this.setDistanceLimits(b,S),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 C=0;C<16;++C)this.computedMatrix[C]=.5;this.recalcMatrix(0)}var g=m.prototype;g.setDistanceLimits=function(b,S){b>0?b=Math.log(b):b=-1/0,S>0?S=Math.log(S):S=1/0,S=Math.max(S,b),this.radius.bounds[0][0]=b,this.radius.bounds[1][0]=S},g.getDistanceLimits=function(b){var S=this.radius.bounds[0];return b?(b[0]=Math.exp(S[0][0]),b[1]=Math.exp(S[1][0]),b):[Math.exp(S[0][0]),Math.exp(S[1][0])]},g.recalcMatrix=function(b){this.center.curve(b),this.up.curve(b),this.right.curve(b),this.radius.curve(b),this.angle.curve(b);for(var S=this.computedUp,x=this.computedRight,A=0,T=0,y=0;y<3;++y)T+=S[y]*x[y],A+=S[y]*S[y];for(var E=Math.sqrt(A),M=0,y=0;y<3;++y)x[y]-=S[y]*T/A,M+=x[y]*x[y],S[y]/=E;for(var C=Math.sqrt(M),y=0;y<3;++y)x[y]/=C;var k=this.computedToward;c(k,S,x),f(k,k);for(var D=Math.exp(this.computedRadius[0]),F=this.computedAngle[0],P=this.computedAngle[1],R=Math.cos(F),L=Math.sin(F),I=Math.cos(P),B=Math.sin(P),O=this.computedCenter,$=R*I,X=L*I,K=B,G=-R*B,q=-L*B,J=I,N=this.computedEye,V=this.computedMatrix,y=0;y<3;++y){var Y=$*x[y]+X*k[y]+K*S[y];V[4*y+1]=G*x[y]+q*k[y]+J*S[y],V[4*y+2]=Y,V[4*y+3]=0}var H=V[1],j=V[5],Q=V[9],te=V[2],ue=V[6],ge=V[10],Ee=j*ge-Q*ue,xe=Q*te-H*ge,ce=H*ue-j*te,oe=p(Ee,xe,ce);Ee/=oe,xe/=oe,ce/=oe,V[0]=Ee,V[4]=xe,V[8]=ce;for(var y=0;y<3;++y)N[y]=O[y]+V[2+4*y]*D;for(var y=0;y<3;++y){for(var M=0,Se=0;Se<3;++Se)M+=V[y+4*Se]*N[Se];V[12+y]=-M}V[15]=1},g.getMatrix=function(b,S){this.recalcMatrix(b);var x=this.computedMatrix;if(S){for(var A=0;A<16;++A)S[A]=x[A];return S}return x};var w=[0,0,0];g.rotate=function(b,S,x,A){if(this.angle.move(b,S,x),A){this.recalcMatrix(b);var T=this.computedMatrix;w[0]=T[2],w[1]=T[6],w[2]=T[10];for(var y=this.computedUp,E=this.computedRight,M=this.computedToward,C=0;C<3;++C)T[4*C]=y[C],T[4*C+1]=E[C],T[4*C+2]=M[C];u(T,T,A,w);for(var C=0;C<3;++C)y[C]=T[4*C],E[C]=T[4*C+1];this.up.set(b,y[0],y[1],y[2]),this.right.set(b,E[0],E[1],E[2])}},g.pan=function(b,S,x,A){S=S||0,x=x||0,A=A||0,this.recalcMatrix(b);var T=this.computedMatrix,y=Math.exp(this.computedRadius[0]),E=T[1],M=T[5],C=T[9],k=p(E,M,C);E/=k,M/=k,C/=k;var D=T[0],F=T[4],P=T[8],R=D*E+F*M+P*C;D-=E*R,F-=M*R,P-=C*R;var L=p(D,F,P);D/=L,F/=L,P/=L;var I=D*S+E*x,B=F*S+M*x,O=P*S+C*x;this.center.move(b,I,B,O);var $=Math.exp(this.computedRadius[0]);$=Math.max(1e-4,$+A),this.radius.set(b,Math.log($))},g.translate=function(b,S,x,A){this.center.move(b,S||0,x||0,A||0)},g.setMatrix=function(b,S,x,A){var T=1;typeof x=="number"&&(T=x|0),(T<0||T>3)&&(T=1);var y=(T+2)%3,E=(T+1)%3;S||(this.recalcMatrix(b),S=this.computedMatrix);var M=S[T],C=S[T+4],k=S[T+8];if(A){var F=Math.abs(M),P=Math.abs(C),R=Math.abs(k),L=Math.max(F,P,R);F===L?(M=M<0?-1:1,C=k=0):R===L?(k=k<0?-1:1,M=C=0):(C=C<0?-1:1,M=k=0)}else{var D=p(M,C,k);M/=D,C/=D,k/=D}var I=S[y],B=S[y+4],O=S[y+8],$=I*M+B*C+O*k;I-=M*$,B-=C*$,O-=k*$;var X=p(I,B,O);I/=X,B/=X,O/=X;var K=C*O-k*B,G=k*I-M*O,q=M*B-C*I,J=p(K,G,q);K/=J,G/=J,q/=J,this.center.jump(b,_e,re,pe),this.radius.idle(b),this.up.jump(b,M,C,k),this.right.jump(b,I,B,O);var N,V;if(T===2){var Y=S[1],H=S[5],j=S[9],Q=Y*I+H*B+j*O,te=Y*K+H*G+j*q;xe<0?N=-Math.PI/2:N=Math.PI/2,V=Math.atan2(te,Q)}else{var ue=S[2],ge=S[6],Ee=S[10],xe=ue*M+ge*C+Ee*k,ce=ue*I+ge*B+Ee*O,oe=ue*K+ge*G+Ee*q;N=Math.asin(d(xe)),V=Math.atan2(oe,ce)}this.angle.jump(b,V,N),this.recalcMatrix(b);var Se=S[2],be=S[6],fe=S[10],ee=this.computedMatrix;l(ee,S);var ae=ee[15],_e=ee[12]/ae,re=ee[13]/ae,pe=ee[14]/ae,Te=Math.exp(this.computedRadius[0]);this.center.jump(b,_e-Se*Te,re-be*Te,pe-fe*Te)},g.lastT=function(){return Math.max(this.center.lastT(),this.up.lastT(),this.right.lastT(),this.radius.lastT(),this.angle.lastT())},g.idle=function(b){this.center.idle(b),this.up.idle(b),this.right.idle(b),this.radius.idle(b),this.angle.idle(b)},g.flush=function(b){this.center.flush(b),this.up.flush(b),this.right.flush(b),this.radius.flush(b),this.angle.flush(b)},g.setDistance=function(b,S){S>0&&this.radius.set(b,Math.log(S))},g.lookAt=function(b,S,x,A){this.recalcMatrix(b),S=S||this.computedEye,x=x||this.computedCenter,A=A||this.computedUp;var T=A[0],y=A[1],E=A[2],M=p(T,y,E);if(!(M<1e-6)){T/=M,y/=M,E/=M;var C=S[0]-x[0],k=S[1]-x[1],D=S[2]-x[2],F=p(C,k,D);if(!(F<1e-6)){C/=F,k/=F,D/=F;var P=this.computedRight,R=P[0],L=P[1],I=P[2],B=T*R+y*L+E*I;R-=B*T,L-=B*y,I-=B*E;var O=p(R,L,I);if(!(O<.01&&(R=y*D-E*k,L=E*C-T*D,I=T*k-y*C,O=p(R,L,I),O<1e-6))){R/=O,L/=O,I/=O,this.up.set(b,T,y,E),this.right.set(b,R,L,I),this.center.set(b,x[0],x[1],x[2]),this.radius.set(b,Math.log(F));var $=y*I-E*L,X=E*R-T*I,K=T*L-y*R,G=p($,X,K);$/=G,X/=G,K/=G;var q=T*C+y*k+E*D,J=R*C+L*k+I*D,N=$*C+X*k+K*D,V=Math.asin(d(q)),Y=Math.atan2(N,J),H=this.angle._state,j=H[H.length-1],Q=H[H.length-2];j=j%(2*Math.PI);var te=Math.abs(j+2*Math.PI-Y),ue=Math.abs(j-Y),ge=Math.abs(j-2*Math.PI-Y);te0?I.pop():new ArrayBuffer(R)}a.mallocArrayBuffer=w;function _(P){return new Uint8Array(w(P),0,P)}a.mallocUint8=_;function b(P){return new Uint16Array(w(2*P),0,P)}a.mallocUint16=b;function S(P){return new Uint32Array(w(4*P),0,P)}a.mallocUint32=S;function x(P){return new Int8Array(w(P),0,P)}a.mallocInt8=x;function A(P){return new Int16Array(w(2*P),0,P)}a.mallocInt16=A;function T(P){return new Int32Array(w(4*P),0,P)}a.mallocInt32=T;function y(P){return new Float32Array(w(4*P),0,P)}a.mallocFloat32=a.mallocFloat=y;function E(P){return new Float64Array(w(8*P),0,P)}a.mallocFloat64=a.mallocDouble=E;function M(P){return c?new Uint8ClampedArray(w(P),0,P):_(P)}a.mallocUint8Clamped=M;function C(P){return f?new BigUint64Array(w(8*P),0,P):null}a.mallocBigUint64=C;function k(P){return h?new BigInt64Array(w(8*P),0,P):null}a.mallocBigInt64=k;function D(P){return new DataView(w(P),0,P)}a.mallocDataView=D;function F(P){P=s.nextPow2(P);var R=s.log2(P),L=v[R];return L.length>0?L.pop():new u(P)}a.mallocBuffer=F,a.clearCache=function(){for(var R=0;R<32;++R)p.UINT8[R].length=0,p.UINT16[R].length=0,p.UINT32[R].length=0,p.INT8[R].length=0,p.INT16[R].length=0,p.INT32[R].length=0,p.FLOAT[R].length=0,p.DOUBLE[R].length=0,p.BIGUINT64[R].length=0,p.BIGINT64[R].length=0,p.UINT8C[R].length=0,d[R].length=0,v[R].length=0}},1755(n){"use strict";"use restrict";n.exports=a;function a(s){this.roots=new Array(s),this.ranks=new Array(s);for(var l=0;l",I="",B=L.length,O=I.length,$=F[0]===w||F[0]===S,X=0,K=-O;X>-1&&(X=P.indexOf(L,X),!(X===-1||(K=P.indexOf(I,X+B),K===-1)||K<=X));){for(var G=X;G=K)R[G]=null,P=P.substr(0,G)+" "+P.substr(G+1);else if(R[G]!==null){var q=R[G].indexOf(F[0]);q===-1?R[G]+=F:$&&(R[G]=R[G].substr(0,q+1)+(1+parseInt(R[G][q+1]))+R[G].substr(q+2))}var J=X+B,N=P.substr(J,K-J),V=N.indexOf(L);V!==-1?X=V:X=K+O}return R}function T(D,F,P){for(var R=F.textAlign||"start",L=F.textBaseline||"alphabetic",I=[1<<30,1<<30],B=[0,0],O=D.length,$=0;$/g,` +`):P=P.replace(/\/g," ");var B="",O=[];for(j=0;j-1?parseInt(re[1+Ce]):0,me=ze>-1?parseInt(pe[1+ze]):0;we!==me&&(Te=Te.replace(ce(),"?px "),ue*=Math.pow(.75,me-we),Te=Te.replace("?px ",ce())),te+=.25*q*(me-we)}if(I.superscripts===!0){var Le=re.indexOf(w),Ne=pe.indexOf(w),Je=Le>-1?parseInt(re[1+Le]):0,rt=Ne>-1?parseInt(pe[1+Ne]):0;Je!==rt&&(Te=Te.replace(ce(),"?px "),ue*=Math.pow(.75,rt-Je),Te=Te.replace("?px ",ce())),te-=.25*q*(rt-Je)}if(I.bolds===!0){var mt=re.indexOf(d)>-1,dt=pe.indexOf(d)>-1;!mt&&dt&&(St?Te=Te.replace("italic ","italic bold "):Te="bold "+Te),mt&&!dt&&(Te=Te.replace("bold ",""))}if(I.italics===!0){var St=re.indexOf(m)>-1,Ke=pe.indexOf(m)>-1;!St&&Ke&&(Te="italic "+Te),St&&!Ke&&(Te=Te.replace("italic ",""))}F.font=Te}for(H=0;H0&&(L=R.size),R.lineSpacing&&R.lineSpacing>0&&(I=R.lineSpacing),R.styletags&&R.styletags.breaklines&&(B.breaklines=!!R.styletags.breaklines),R.styletags&&R.styletags.bolds&&(B.bolds=!!R.styletags.bolds),R.styletags&&R.styletags.italics&&(B.italics=!!R.styletags.italics),R.styletags&&R.styletags.subscripts&&(B.subscripts=!!R.styletags.subscripts),R.styletags&&R.styletags.superscripts&&(B.superscripts=!!R.styletags.superscripts)),P.font=[R.fontStyle,R.fontVariant,R.fontWeight,L+"px",R.font].filter(function($){return $}).join(" "),P.textAlign="start",P.textBaseline="alphabetic",P.direction="ltr";var O=y(F,P,D,L,I,B);return C(O,R,L)}},1538(n){(function(){"use strict";if(typeof ses!="undefined"&&ses.ok&&!ses.ok())return;function o(M){M.permitHostObjects___&&M.permitHostObjects___(o)}typeof ses!="undefined"&&(ses.weakMapPermitHostObjects=o);var s=!1;if(typeof WeakMap=="function"){var l=WeakMap;if(!(typeof navigator!="undefined"&&/Firefox/.test(navigator.userAgent))){var u=new l,c=Object.freeze({});if(u.set(c,1),u.get(c)!==1)s=!0;else{n.exports=WeakMap;return}}}var f=Object.prototype.hasOwnProperty,h=Object.getOwnPropertyNames,p=Object.defineProperty,d=Object.isExtensible,v="weakmap:",m=v+"ident:"+Math.random()+"___";if(typeof crypto!="undefined"&&typeof crypto.getRandomValues=="function"&&typeof ArrayBuffer=="function"&&typeof Uint8Array=="function"){var g=new ArrayBuffer(25),w=new Uint8Array(g);crypto.getRandomValues(w),m=v+"rand:"+Array.prototype.map.call(w,function(M){return(M%36).toString(36)}).join("")+"___"}function _(M){return!(M.substr(0,v.length)==v&&M.substr(M.length-3)==="___")}if(p(Object,"getOwnPropertyNames",{value:function(C){return h(C).filter(_)}}),"getPropertyNames"in Object){var b=Object.getPropertyNames;p(Object,"getPropertyNames",{value:function(C){return b(C).filter(_)}})}function S(M){if(M!==Object(M))throw new TypeError("Not an object: "+M);var C=M[m];if(C&&C.key===M)return C;if(d(M)){C={key:M};try{return p(M,m,{value:C,writable:!1,enumerable:!1,configurable:!1}),C}catch(k){return}}}(function(){var M=Object.freeze;p(Object,"freeze",{value:function(F){return S(F),M(F)}});var C=Object.seal;p(Object,"seal",{value:function(F){return S(F),C(F)}});var k=Object.preventExtensions;p(Object,"preventExtensions",{value:function(F){return S(F),k(F)}})})();function x(M){return M.prototype=null,Object.freeze(M)}var A=!1;function T(){!A&&typeof console!="undefined"&&(A=!0,console.warn("WeakMap should be invoked as new WeakMap(), not WeakMap(). This will be an error in the future."))}var y=0,E=function(){this instanceof E||T();var M=[],C=[],k=y++;function D(L,I){var B,O=S(L);return O?k in O?O[k]:I:(B=M.indexOf(L),B>=0?C[B]:I)}function F(L){var I=S(L);return I?k in I:M.indexOf(L)>=0}function P(L,I){var B,O=S(L);return O?O[k]=I:(B=M.indexOf(L),B>=0?C[B]=I:(B=M.length,C[B]=I,M[B]=L)),this}function R(L){var I=S(L),B,O;return I?k in I&&delete I[k]:(B=M.indexOf(L),B<0?!1:(O=M.length-1,M[B]=void 0,C[B]=C[O],M[B]=M[O],M.length=O,C.length=O,!0))}return Object.create(E.prototype,{get___:{value:x(D)},has___:{value:x(F)},set___:{value:x(P)},delete___:{value:x(R)}})};E.prototype=Object.create(Object.prototype,{get:{value:function(C,k){return this.get___(C,k)},writable:!0,configurable:!0},has:{value:function(C){return this.has___(C)},writable:!0,configurable:!0},set:{value:function(C,k){return this.set___(C,k)},writable:!0,configurable:!0},delete:{value:function(C){return this.delete___(C)},writable:!0,configurable:!0}}),typeof l=="function"?(function(){s&&typeof Proxy!="undefined"&&(Proxy=void 0);function M(){this instanceof E||T();var C=new l,k=void 0,D=!1;function F(I,B){return k?C.has(I)?C.get(I):k.get___(I,B):C.get(I,B)}function P(I){return C.has(I)||(k?k.has___(I):!1)}var R;s?R=function(I,B){return C.set(I,B),C.has(I)||(k||(k=new E),k.set(I,B)),this}:R=function(I,B){if(D)try{C.set(I,B)}catch(O){k||(k=new E),k.set___(I,B)}else C.set(I,B);return this};function L(I){var B=!!C.delete(I);return k&&k.delete___(I)||B}return Object.create(E.prototype,{get___:{value:x(F)},has___:{value:x(P)},set___:{value:x(R)},delete___:{value:x(L)},permitHostObjects___:{value:x(function(I){if(I===o)D=!0;else throw new Error("bogus call to permitHostObjects___")})}})}M.prototype=E.prototype,n.exports=M,Object.defineProperty(WeakMap.prototype,"constructor",{value:WeakMap,enumerable:!1,configurable:!0,writable:!0})})():(typeof Proxy!="undefined"&&(Proxy=void 0),n.exports=E)})()},236(n,a,o){var s=o(8284);n.exports=l;function l(){var u={};return function(c){if((typeof c!="object"||c===null)&&typeof c!="function")throw new Error("Weakmap-shim: Key must be object");var f=c.valueOf(u);return f&&f.identity===u?f:s(c,u)}}},8284(n){n.exports=a;function a(o,s){var l={identity:s},u=o.valueOf;return Object.defineProperty(o,"valueOf",{value:function(c){return c!==s?u.apply(this,arguments):l},writable:!0}),l}},606(n,a,o){var s=o(236);n.exports=l;function l(){var u=s();return{get:function(c,f){var h=u(c);return h.hasOwnProperty("value")?h.value:f},set:function(c,f){return u(c).value=f,this},has:function(c){return"value"in u(c)},delete:function(c){return delete u(c).value}}}},3349(n){"use strict";function a(){return function(f,h,p,d,v,m){var g=f[0],w=p[0],_=[0],b=w;d|=0;var S=0,x=w;for(S=0;S=0!=T>=0&&v.push(_[0]+.5+.5*(A+T)/(A-T))}d+=x,++_[0]}}}function o(){return a()}var s=o;function l(f){var h={};return function(d,v,m){var g=d.dtype,w=d.order,_=[g,w.join()].join(),b=h[_];return b||(h[_]=b=f([g,w])),b(d.shape.slice(0),d.data,d.stride,d.offset|0,v,m)}}function u(f){return l(s.bind(void 0,f))}function c(f){return u({funcName:f.funcName})}n.exports=c({funcName:"zeroCrossings"})},781(n,a,o){"use strict";n.exports=l;var s=o(3349);function l(u,c){var f=[];return c=+c||0,s(u.hi(u.shape[0]-1),f,c),f}},7790(){}};let t={};function r(n){let a=t[n];if(a!==void 0)return a.exports;let o=t[n]={id:n,loaded:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.loaded=!0,o.exports}r.g=(function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch(n){if(typeof window=="object")return window}})(),r.nmd=n=>(n.paths=[],n.children||(n.children=[]),n);let i=r(3065);Qqe.exports=i})()});var bm=W((QZr,eOe)=>{"use strict";var{normalize:Brr}=ti();function qrr(e){return e?Brr(e):[0,0,0,1]}eOe.exports=qrr});var _m=W((eKr,oOe)=>{"use strict";var nOe=hn(),tR=es(),q4=ti(),Orr=Yl().defaultLine,tOe=Tc().isArrayOrTypedArray,zJ=q4.normalize(Orr),aOe=1;function rOe(e,t){return[e[0],e[1],e[2],e[3]*t]}function RJ(e){return nOe(e)||!q4.isChannelArray(e)&&!q4.isValid(e)?zJ:q4.normalize(e)}function iOe(e){return nOe(e)?e:aOe}function Nrr(e,t,r){var i=e.color;i&&i._inputArray&&(i=i._inputArray);var n=tOe(i),a=tOe(t),o=tR.extractOpts(e),s=[],l,u,c,f,h;if(o.colorscale!==void 0?l=tR.makeColorScaleFuncFromTrace(e):l=RJ,n?u=(d,v)=>d[v]===void 0?zJ:o.colorscale===void 0?l(d[v]):q4.normalize(l(d[v])):u=RJ,a?c=function(d,v){return d[v]===void 0?aOe:iOe(d[v])}:c=iOe,n||a)for(var p=0;pGrr});var Vrr,Grr,qJ=Ci(()=>{"use strict";Vrr={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]},Grr=Vrr});var rR={};Jn(rR,{default:()=>jrr});var Hrr,jrr,iR=Ci(()=>{"use strict";Hrr={circle:"\u25CF","circle-open":"\u25CB",square:"\u25A0","square-open":"\u25A1",diamond:"\u25C6","diamond-open":"\u25C7",cross:"+",x:"\u274C"},jrr=Hrr});var lOe=W((tKr,sOe)=>{"use strict";var $rr=xi();function OJ(e,t,r,i){if(!t||!t.visible)return null;for(var n=$rr.getComponentMethod("errorbars","makeComputeError")(t),a=new Array(e.length),o=0;o0){var f=i.c2l(u);i._lowerLogErrorBound||(i._lowerLogErrorBound=f),i._lowerErrorBound=Math.min(i._lowerLogErrorBound,f)}}else a[o]=[-s[0]*r,s[1]*r]}return a}function Wrr(e){for(var t=0;t{"use strict";var Xrr=uc().gl_line3d,uOe=uc().gl_scatter3d,Zrr=uc().gl_error3d,Krr=uc().gl_mesh3d,Jrr=uc().delaunay_triangulate,wm=tt(),pOe=bm(),nR=_m().formatColor,Qrr=MA(),NJ=(qJ(),Pt(BJ)).default,eir=(iR(),Pt(rR)).default,tir=Yi(),rir=ah().appendArrayPointValue,iir=lOe();function vOe(e,t){this.scene=e,this.uid=t,this.linePlot=null,this.scatterPlot=null,this.errorBars=null,this.textMarkers=null,this.delaunayMesh=null,this.color=null,this.mode="",this.dataPoints=[],this.axesBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.textLabels=null,this.data=null}var VJ=vOe.prototype;VJ.handlePick=function(e){if(e.object&&(e.object===this.linePlot||e.object===this.delaunayMesh||e.object===this.textMarkers||e.object===this.scatterPlot)){var t=e.index=e.data.index;return e.object.highlight&&e.object.highlight(null),this.scatterPlot&&(e.object=this.scatterPlot,this.scatterPlot.highlight(e.data)),e.textLabel="",this.textLabels&&(wm.isArrayOrTypedArray(this.textLabels)?(this.textLabels[t]||this.textLabels[t]===0)&&(e.textLabel=this.textLabels[t]):e.textLabel=this.textLabels),e.traceCoordinate=[this.data.x[t],this.data.y[t],this.data.z[t]],!0}};function nir(e,t,r){var i=(r+1)%3,n=(r+2)%3,a=[],o=[],s;for(s=0;s-1?-1:e.indexOf("right")>-1?1:0}function fOe(e){return e==null?0:e.indexOf("top")>-1?-1:e.indexOf("bottom")>-1?1:0}function oir(e){var t=0,r=0,i=[t,r];if(Array.isArray(e))for(var n=0;n=0){var u=nir(s.position,s.delaunayColor,s.delaunayAxis);u.opacity=e.opacity,this.delaunayMesh?this.delaunayMesh.update(u):(u.gl=t,this.delaunayMesh=Krr(u),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)};VJ.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 cir(e,t){var r=new vOe(e,t.uid);return r.update(t),r}gOe.exports=cir});var WJ=W((iKr,_Oe)=>{"use strict";var Tm=Ws(),fir=jo(),$J=Fo(),GJ=Ts().axisHoverFormat,{hovertemplateAttrs:hir,texttemplateAttrs:dir,templatefallbackAttrs:yOe}=Wa(),xOe=Ja(),pir=(qJ(),Pt(BJ)).default,vir=(iR(),Pt(rR)).default,bv=an().extendFlat,gir=hs().overrideAll,bOe=(Qx(),Pt(Jx)).default,mir=Tm.line,I_=Tm.marker,yir=I_.line,xir=bv({width:mir.width,dash:{valType:"enumerated",values:bOe(pir),dflt:"solid"}},$J("line"));function HJ(e){return{show:{valType:"boolean",dflt:!1},opacity:{valType:"number",min:0,max:1,dflt:1},scale:{valType:"number",min:0,max:10,dflt:2/3}}}var jJ=_Oe.exports=gir({x:Tm.x,y:Tm.y,z:{valType:"data_array"},text:bv({},Tm.text,{}),texttemplate:dir(),texttemplatefallback:yOe({editType:"calc"}),hovertext:bv({},Tm.hovertext,{}),hovertemplate:hir(),hovertemplatefallback:yOe(),xhoverformat:GJ("x"),yhoverformat:GJ("y"),zhoverformat:GJ("z"),mode:bv({},Tm.mode,{dflt:"lines+markers"}),surfaceaxis:{valType:"enumerated",values:[-1,0,1,2],dflt:-1},surfacecolor:{valType:"color"},projection:{x:HJ("x"),y:HJ("y"),z:HJ("z")},connectgaps:Tm.connectgaps,line:xir,marker:bv({symbol:{valType:"enumerated",values:bOe(vir),dflt:"circle",arrayOk:!0},size:bv({},I_.size,{dflt:8}),sizeref:I_.sizeref,sizemin:I_.sizemin,sizemode:I_.sizemode,opacity:bv({},I_.opacity,{arrayOk:!1}),colorbar:I_.colorbar,line:bv({width:bv({},yir.width,{arrayOk:!1})},$J("marker.line"))},$J("marker")),textposition:bv({},Tm.textposition,{dflt:"top center"}),textfont:fir({noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0,editType:"calc",colorEditType:"style",arrayOk:!0,variantValues:["normal","small-caps"]}),opacity:xOe.opacity,hoverinfo:bv({},xOe.hoverinfo)},"calc","nested");jJ.x.editType=jJ.y.editType=jJ.z.editType="calc+clearAxisTypes"});var AOe=W((nKr,TOe)=>{"use strict";var wOe=xi(),bir=tt(),YJ=Wo(),_ir=Dd(),wir=ev(),Tir=tv(),Air=WJ();TOe.exports=function(t,r,i,n){function a(p,d){return bir.coerce(t,r,Air,p,d)}var o=Mir(t,r,a,n);if(!o){r.visible=!1;return}a("text"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback"),a("xhoverformat"),a("yhoverformat"),a("zhoverformat"),a("mode"),YJ.hasMarkers(r)&&_ir(t,r,i,n,a,{noAngle:!0,noLineDash:!0,noSelect:!0}),YJ.hasLines(r)&&(a("connectgaps"),wir(t,r,i,n,a)),YJ.hasText(r)&&(a("texttemplate"),a("texttemplatefallback"),Tir(t,r,n,a,{noSelect:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0}));var s=(r.line||{}).color,l=(r.marker||{}).color;a("surfaceaxis")>=0&&a("surfacecolor",s||l);for(var u=["x","y","z"],c=0;c<3;++c){var f="projection."+u[c];a(f+".show")&&(a(f+".opacity"),a(f+".scale"))}var h=wOe.getComponentMethod("errorbars","supplyDefaults");h(t,r,s||l||i,{axis:"z"}),h(t,r,s||l||i,{axis:"y",inherit:"z"}),h(t,r,s||l||i,{axis:"x",inherit:"z"})};function Mir(e,t,r,i){var n=0,a=r("x"),o=r("y"),s=r("z"),l=wOe.getComponentMethod("calendars","handleTraceDefaults");return l(e,t,["x","y","z"],i),a&&o&&s&&(n=Math.min(a.length,o.length,s.length),t._length=t._xlength=t._ylength=t._zlength=n),n}});var SOe=W((aKr,MOe)=>{"use strict";var Sir=L1(),Eir=Fd();MOe.exports=function(t,r){var i=[{x:!1,y:!1,trace:r,t:{}}];return Sir(i,r),Eir(t,r),i}});var kOe=W((oKr,EOe)=>{EOe.exports=kir;function kir(e,t){if(typeof e!="string")throw new TypeError("must specify type string");if(t=t||{},typeof document=="undefined"&&!t.canvas)return null;var r=t.canvas||document.createElement("canvas");typeof t.width=="number"&&(r.width=t.width),typeof t.height=="number"&&(r.height=t.height);var i=t,n;try{var a=[e];e.indexOf("webgl")===0&&a.push("experimental-"+e);for(var o=0;o{var Cir=kOe();COe.exports=function(t){return Cir("webgl",t)}});var XJ=W((lKr,LOe)=>{"use strict";var FOe=ti(),Dir=function(){};LOe.exports=function(t){for(var r in t)typeof t[r]=="function"&&(t[r]=Dir);t.destroy=function(){t.container.parentNode.removeChild(t.container)};var i=document.createElement("div");i.className="no-webgl",i.style.cursor="pointer",i.style.fontSize="24px",i.style.color=FOe.defaults[0],i.style.position="absolute",i.style.left=i.style.top="0px",i.style.width=i.style.height="100%",i.style["background-color"]=FOe.lightLine,i.style["z-index"]=30;var n=document.createElement("p");return n.textContent="WebGL is not supported by your browser - visit https://get.webgl.org for more info",n.style.position="relative",n.style.top="50%",n.style.left="50%",n.style.height="30%",n.style.width="50%",n.style.margin="-15% 0 0 -25%",i.appendChild(n),t.container.appendChild(i),t.container.style.background="#FFFFFF",t.container.onclick=function(){window.open("https://get.webgl.org")},!1}});var ROe=W((uKr,IOe)=>{"use strict";var R_=bm(),Fir=tt(),Lir=["xaxis","yaxis","zaxis"];function POe(){this.bounds=[[-10,-10,-10],[10,10,10]],this.ticks=[[],[],[]],this.tickEnable=[!0,!0,!0],this.tickFont=["sans-serif","sans-serif","sans-serif"],this.tickSize=[12,12,12],this.tickFontWeight=["normal","normal","normal","normal"],this.tickFontStyle=["normal","normal","normal","normal"],this.tickFontVariant=["normal","normal","normal","normal"],this.tickAngle=[0,0,0],this.tickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.tickPad=[18,18,18],this.labels=["x","y","z"],this.labelEnable=[!0,!0,!0],this.labelFont=["Open Sans","Open Sans","Open Sans"],this.labelSize=[20,20,20],this.labelFontWeight=["normal","normal","normal","normal"],this.labelFontStyle=["normal","normal","normal","normal"],this.labelFontVariant=["normal","normal","normal","normal"],this.labelColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.labelPad=[30,30,30],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=[10,10,10],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=[!0,!0,!0],this.backgroundColor=[[.8,.8,.8,.5],[.8,.8,.8,.5],[.8,.8,.8,.5]],this._defaultTickPad=this.tickPad.slice(),this._defaultLabelPad=this.labelPad.slice(),this._defaultLineTickLength=this.lineTickLength.slice()}var Pir=POe.prototype;Pir.merge=function(e,t){for(var r=this,i=0;i<3;++i){var n=t[Lir[i]];if(!n.visible){r.tickEnable[i]=!1,r.labelEnable[i]=!1,r.lineEnable[i]=!1,r.lineTickEnable[i]=!1,r.gridEnable[i]=!1,r.zeroEnable[i]=!1,r.backgroundEnable[i]=!1;continue}r.labels[i]=e._meta?Fir.templateString(n.title.text,e._meta):n.title.text,"font"in n.title&&(n.title.font.color&&(r.labelColor[i]=R_(n.title.font.color)),n.title.font.family&&(r.labelFont[i]=n.title.font.family),n.title.font.size&&(r.labelSize[i]=n.title.font.size),n.title.font.weight&&(r.labelFontWeight[i]=n.title.font.weight),n.title.font.style&&(r.labelFontStyle[i]=n.title.font.style),n.title.font.variant&&(r.labelFontVariant[i]=n.title.font.variant)),"showline"in n&&(r.lineEnable[i]=n.showline),"linecolor"in n&&(r.lineColor[i]=R_(n.linecolor)),"linewidth"in n&&(r.lineWidth[i]=n.linewidth),"showgrid"in n&&(r.gridEnable[i]=n.showgrid),"gridcolor"in n&&(r.gridColor[i]=R_(n.gridcolor)),"gridwidth"in n&&(r.gridWidth[i]=n.gridwidth),n.type==="log"?r.zeroEnable[i]=!1:"zeroline"in n&&(r.zeroEnable[i]=n.zeroline),"zerolinecolor"in n&&(r.zeroLineColor[i]=R_(n.zerolinecolor)),"zerolinewidth"in n&&(r.zeroLineWidth[i]=n.zerolinewidth),"ticks"in n&&n.ticks?r.lineTickEnable[i]=!0:r.lineTickEnable[i]=!1,"ticklen"in n&&(r.lineTickLength[i]=r._defaultLineTickLength[i]=n.ticklen),"tickcolor"in n&&(r.lineTickColor[i]=R_(n.tickcolor)),"tickwidth"in n&&(r.lineTickWidth[i]=n.tickwidth),"tickangle"in n&&(r.tickAngle[i]=n.tickangle==="auto"?-3600:Math.PI*-n.tickangle/180),"showticklabels"in n&&(r.tickEnable[i]=n.showticklabels),"tickfont"in n&&(n.tickfont.color&&(r.tickColor[i]=R_(n.tickfont.color)),n.tickfont.family&&(r.tickFont[i]=n.tickfont.family),n.tickfont.size&&(r.tickSize[i]=n.tickfont.size),n.tickfont.weight&&(r.tickFontWeight[i]=n.tickfont.weight),n.tickfont.style&&(r.tickFontStyle[i]=n.tickfont.style),n.tickfont.variant&&(r.tickFontVariant[i]=n.tickfont.variant)),"mirror"in n?["ticks","all","allticks"].indexOf(n.mirror)!==-1?(r.lineTickMirror[i]=!0,r.lineMirror[i]=!0):n.mirror===!0?(r.lineTickMirror[i]=!1,r.lineMirror[i]=!0):(r.lineTickMirror[i]=!1,r.lineMirror[i]=!1):r.lineMirror[i]=!1,"showbackground"in n&&n.showbackground!==!1?(r.backgroundEnable[i]=!0,r.backgroundColor[i]=R_(n.backgroundcolor)):r.backgroundEnable[i]=!1}};function Iir(e,t){var r=new POe;return r.merge(e,t),r}IOe.exports=Iir});var qOe=W((cKr,BOe)=>{"use strict";var Rir=bm(),zir=["xaxis","yaxis","zaxis"];function zOe(){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 Bir=zOe.prototype;Bir.merge=function(e){for(var t=0;t<3;++t){var r=e[zir[t]];if(!r.visible){this.enabled[t]=!1,this.drawSides[t]=!1;continue}this.enabled[t]=r.showspikes,this.colors[t]=Rir(r.spikecolor),this.drawSides[t]=r.spikesides,this.lineWidth[t]=r.spikethickness}};function qir(e){var t=new zOe;return t.merge(e),t}BOe.exports=qir});var UOe=W((fKr,NOe)=>{"use strict";NOe.exports=Gir;var OOe=Yi(),Oir=tt(),Nir=["xaxis","yaxis","zaxis"],Uir=[0,0,0];function Vir(e){for(var t=new Array(3),r=0;r<3;++r){for(var i=e[r],n=new Array(i.length),a=0;a/g," "));n[a]=u,o.tickmode=s}}t.ticks=n;for(var a=0;a<3;++a){Uir[a]=.5*(e.glplot.bounds[0][a]+e.glplot.bounds[1][a]);for(var c=0;c<2;++c)t.bounds[c][a]=e.glplot.bounds[c][a]}e.contourLevels=Vir(n)}});var YOe=W((hKr,WOe)=>{"use strict";var HOe=uc().gl_plot3d,Hir=HOe.createCamera,VOe=HOe.createScene,jir=DOe(),$ir=M7(),sR=xi(),hh=tt(),oR=hh.preserveDrawingBuffer(),lR=Yi(),_v=Is(),Wir=bm(),Yir=XJ(),Xir=nW(),Zir=ROe(),Kir=qOe(),Jir=UOe(),Qir=Yp().applyAutorangeOptions,ME,aR,jOe=!1;function $Oe(e,t){var r=document.createElement("div"),i=e.container;this.graphDiv=e.graphDiv;var n=document.createElementNS("http://www.w3.org/2000/svg","svg");n.style.position="absolute",n.style.top=n.style.left="0px",n.style.width=n.style.height="100%",n.style["z-index"]=20,n.style["pointer-events"]="none",r.appendChild(n),this.svgContainer=n,r.id=e.id,r.style.position="absolute",r.style.top=r.style.left="0px",r.style.width=r.style.height="100%",i.appendChild(r),this.fullLayout=t,this.id=e.id||"scene",this.fullSceneLayout=t[this.id],this.plotArgs=[[],{},{}],this.axesOptions=Zir(t,t[this.id]),this.spikeOptions=Kir(t[this.id]),this.container=r,this.staticMode=!!e.staticPlot,this.pixelRatio=this.pixelRatio||e.plotGlPixelRatio||2,this.dataScale=[1,1,1],this.contourLevels=[[],[],[]],this.convertAnnotations=sR.getComponentMethod("annotations3d","convert"),this.drawAnnotations=sR.getComponentMethod("annotations3d","draw"),this.initializeGLPlot()}var cf=$Oe.prototype;cf.prepareOptions=function(){var e=this,t={canvas:e.canvas,gl:e.gl,glOptions:{preserveDrawingBuffer:oR,premultipliedAlpha:!0,antialias:!0},container:e.container,axes:e.axesOptions,spikes:e.spikeOptions,pickRadius:10,snapToData:!0,autoScale:!0,autoBounds:!1,cameraObject:e.camera,pixelRatio:e.pixelRatio};if(e.staticMode){if(!aR&&(ME=document.createElement("canvas"),aR=jir({canvas:ME,preserveDrawingBuffer:!0,premultipliedAlpha:!0,antialias:!0}),!aR))throw new Error("error creating static canvas/context for image server");t.gl=aR,t.canvas=ME}return t};var GOe=!0;cf.tryCreatePlot=function(){var e=this,t=e.prepareOptions(),r=!0;try{e.glplot=VOe(t)}catch(i){if(e.staticMode||!GOe||oR)r=!1;else{hh.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{oR=t.glOptions.preserveDrawingBuffer=!0,e.glplot=VOe(t)}catch(n){oR=t.glOptions.preserveDrawingBuffer=!1,r=!1}}}return GOe=!1,r};cf.initializeGLCamera=function(){var e=this,t=e.fullSceneLayout.camera,r=t.projection.type==="orthographic";e.camera=Hir(e.container,{center:[t.center.x,t.center.y,t.center.z],eye:[t.eye.x,t.eye.y,t.eye.z],up:[t.up.x,t.up.y,t.up.z],_ortho:r,zoomMin:.01,zoomMax:100,mode:"orbit"})};cf.initializeGLPlot=function(){var e=this;e.initializeGLCamera();var t=e.tryCreatePlot();if(!t)return Yir(e);e.traces={},e.make4thDimension();var r=e.graphDiv,i=r.layout,n=function(){var o={};return e.isCameraChanged(i)&&(o[e.id+".camera"]=e.getCamera()),e.isAspectChanged(i)&&(o[e.id+".aspectratio"]=e.glplot.getAspectratio(),i[e.id].aspectmode!=="manual"&&(e.fullSceneLayout.aspectmode=i[e.id].aspectmode=o[e.id+".aspectmode"]="manual")),o},a=function(o){if(o.fullSceneLayout.dragmode!==!1){var s=n();o.saveLayout(i),o.graphDiv.emit("plotly_relayout",s)}};return e.glplot.canvas&&(e.glplot.canvas.addEventListener("mouseup",function(){a(e)}),e.glplot.canvas.addEventListener("touchstart",function(){jOe=!0}),e.glplot.canvas.addEventListener("wheel",function(o){if(r._context._scrollZoom.gl3d){if(e.camera._ortho){var s=o.deltaX>o.deltaY?1.1:.9090909090909091,l=e.glplot.getAspectratio();e.glplot.setAspectratio({x:s*l.x,y:s*l.y,z:s*l.z})}a(e)}},$ir?{passive:!1}:!1),e.glplot.canvas.addEventListener("mousemove",function(){if(e.fullSceneLayout.dragmode!==!1&&e.camera.mouseListener.buttons!==0){var o=n();e.graphDiv.emit("plotly_relayouting",o)}}),e.staticMode||e.glplot.canvas.addEventListener("webglcontextlost",function(o){r&&r.emit&&r.emit("plotly_webglcontextlost",{event:o,layer:e.id})},!1)),e.glplot.oncontextloss=function(){e.recoverContext()},e.glplot.onrender=function(){e.render()},!0};cf.render=function(){var e=this,t=e.graphDiv,r,i=e.svgContainer,n=e.container.getBoundingClientRect();t._fullLayout._calcInverseTransform(t);var a=t._fullLayout._invScaleX,o=t._fullLayout._invScaleY,s=n.width*a,l=n.height*o;i.setAttributeNS(null,"viewBox","0 0 "+s+" "+l),i.setAttributeNS(null,"width",s),i.setAttributeNS(null,"height",l),Jir(e),e.glplot.axes.update(e.axesOptions);for(var u=Object.keys(e.traces),c=null,f=e.glplot.selection,h=0;h")):r.type==="isosurface"||r.type==="volume"?(g.valueLabel=lR.hoverLabelText(e._mockAxis,e._mockAxis.d2l(f.traceCoordinate[3]),r.valuehoverformat),x.push("value: "+g.valueLabel),f.textLabel&&x.push(f.textLabel),S=x.join("
")):S=f.textLabel;var A={x:f.traceCoordinate[0],y:f.traceCoordinate[1],z:f.traceCoordinate[2],data:v._input,fullData:v,curveNumber:v.index,pointNumber:m};_v.appendArrayPointValue(A,v,m),r._module.eventData&&(A=v._module.eventData(A,f,v,{},m));var T={points:[A]};if(e.fullSceneLayout.hovermode){var y=[];_v.loneHover({trace:v,x:(.5+.5*d[0]/d[3])*s,y:(.5-.5*d[1]/d[3])*l,xLabel:g.xLabel,yLabel:g.yLabel,zLabel:g.zLabel,text:S,name:c.name,color:_v.castHoverOption(v,m,"bgcolor")||c.color,borderColor:_v.castHoverOption(v,m,"bordercolor"),fontFamily:_v.castHoverOption(v,m,"font.family"),fontSize:_v.castHoverOption(v,m,"font.size"),fontColor:_v.castHoverOption(v,m,"font.color"),nameLength:_v.castHoverOption(v,m,"namelength"),textAlign:_v.castHoverOption(v,m,"align"),hovertemplate:hh.castOption(v,m,"hovertemplate"),hovertemplateLabels:hh.extendFlat({},A,g),eventData:[A]},{container:i,gd:t,inOut_bbox:y}),A.bbox=y[0]}f.distance<5&&(f.buttons||jOe)?t.emit("plotly_click",T):t.emit("plotly_hover",T),this.oldEventData=T}else _v.loneUnhover(i),this.oldEventData&&t.emit("plotly_unhover",this.oldEventData),this.oldEventData=void 0;e.drawAnnotations(e)};cf.recoverContext=function(){var e=this;e.glplot.dispose();var t=function(){if(e.glplot.gl.isContextLost()){requestAnimationFrame(t);return}if(!e.initializeGLPlot()){hh.error("Catastrophic and unrecoverable WebGL error. Context lost.");return}e.plot.apply(e,e.plotArgs)};requestAnimationFrame(t)};var SE=["xaxis","yaxis","zaxis"];function enr(e,t,r){for(var i=e.fullSceneLayout,n=0;n<3;n++){var a=SE[n],o=a.charAt(0),s=i[a],l=t[o],u=t[o+"calendar"],c=t["_"+o+"length"];if(!hh.isArrayOrTypedArray(l))r[0][n]=Math.min(r[0][n],0),r[1][n]=Math.max(r[1][n],c-1);else for(var f,h=0;h<(c||l.length);h++)if(hh.isArrayOrTypedArray(l[h]))for(var p=0;pv[1][o])v[0][o]=-1,v[1][o]=1;else{var M=v[1][o]-v[0][o];v[0][o]-=M/32,v[1][o]+=M/32}if(w=[v[0][o],v[1][o]],w=Qir(w,l),v[0][o]=w[0],v[1][o]=w[1],l.isReversed()){var C=v[0][o];v[0][o]=v[1][o],v[1][o]=C}}else w=l.range,v[0][o]=l.r2l(w[0]),v[1][o]=l.r2l(w[1]);v[0][o]===v[1][o]&&(v[0][o]-=1,v[1][o]+=1),m[o]=v[1][o]-v[0][o],l.range=[v[0][o],v[1][o]],l.limitRange(),i.glplot.setBounds(o,{min:l.range[0]*p[o],max:l.range[1]*p[o]})}var k,D=c.aspectmode;if(D==="cube")k=[1,1,1];else if(D==="manual"){var F=c.aspectratio;k=[F.x,F.y,F.z]}else if(D==="auto"||D==="data"){var P=[1,1,1];for(o=0;o<3;++o){l=c[SE[o]],u=l.type;var R=g[u];P[o]=Math.pow(R.acc,1/R.count)/p[o]}D==="data"||Math.max.apply(null,P)/Math.min.apply(null,P)<=4?k=P:k=[1,1,1]}else throw new Error("scene.js aspectRatio was not one of the enumerated types");c.aspectratio.x=f.aspectratio.x=k[0],c.aspectratio.y=f.aspectratio.y=k[1],c.aspectratio.z=f.aspectratio.z=k[2],i.glplot.setAspectratio(c.aspectratio),i.viewInitial.aspectratio||(i.viewInitial.aspectratio={x:c.aspectratio.x,y:c.aspectratio.y,z:c.aspectratio.z}),i.viewInitial.aspectmode||(i.viewInitial.aspectmode=c.aspectmode);var L=c.domain||null,I=t._size||null;if(L&&I){var B=i.container.style;B.position="absolute",B.left=I.l+L.x[0]*I.w+"px",B.top=I.t+(1-L.y[1])*I.h+"px",B.width=I.w*(L.x[1]-L.x[0])+"px",B.height=I.h*(L.y[1]-L.y[0])+"px"}i.glplot.redraw()}};cf.destroy=function(){var e=this;e.glplot&&(e.camera.mouseListener.enabled=!1,e.container.removeEventListener("wheel",e.camera.wheelListener),e.camera=null,e.glplot.dispose(),e.container.parentNode.removeChild(e.container),e.glplot=null)};function rnr(e){return[[e.eye.x,e.eye.y,e.eye.z],[e.center.x,e.center.y,e.center.z],[e.up.x,e.up.y,e.up.z]]}function inr(e){return{up:{x:e.up[0],y:e.up[1],z:e.up[2]},center:{x:e.center[0],y:e.center[1],z:e.center[2]},eye:{x:e.eye[0],y:e.eye[1],z:e.eye[2]},projection:{type:e._ortho===!0?"orthographic":"perspective"}}}cf.getCamera=function(){var e=this;return e.camera.view.recalcMatrix(e.camera.view.lastT()),inr(e.camera)};cf.setViewport=function(e){var t=this,r=e.camera;t.camera.lookAt.apply(this,rnr(r)),t.glplot.setAspectratio(e.aspectratio);var i=r.projection.type==="orthographic",n=t.camera._ortho;i!==n&&(t.glplot.redraw(),t.glplot.clearRGBA(),t.glplot.dispose(),t.initializeGLPlot())};cf.isCameraChanged=function(e){var t=this,r=t.getCamera(),i=hh.nestedProperty(e,t.id+".camera"),n=i.get();function a(u,c,f,h){var p=["up","center","eye"],d=["x","y","z"];return c[p[f]]&&u[p[f]][d[h]]===c[p[f]][d[h]]}var o=!1;if(n===void 0)o=!0;else{for(var s=0;s<3;s++)for(var l=0;l<3;l++)if(!a(r,n,s,l)){o=!0;break}(!n.projection||r.projection&&r.projection.type!==n.projection.type)&&(o=!0)}return o};cf.isAspectChanged=function(e){var t=this,r=t.glplot.getAspectratio(),i=hh.nestedProperty(e,t.id+".aspectratio"),n=i.get();return n===void 0||n.x!==r.x||n.y!==r.y||n.z!==r.z};cf.saveLayout=function(e){var t=this,r=t.fullLayout,i,n,a,o,s,l,u=t.isCameraChanged(e),c=t.isAspectChanged(e),f=u||c;if(f){var h={};if(u&&(i=t.getCamera(),n=hh.nestedProperty(e,t.id+".camera"),a=n.get(),h[t.id+".camera"]=a),c&&(o=t.glplot.getAspectratio(),s=hh.nestedProperty(e,t.id+".aspectratio"),l=s.get(),h[t.id+".aspectratio"]=l),sR.call("_storeDirectGUIEdit",e,r._preGUI,h),u){n.set(i);var p=hh.nestedProperty(r,t.id+".camera");p.set(i)}if(c){s.set(o);var d=hh.nestedProperty(r,t.id+".aspectratio");d.set(o),t.glplot.redraw()}}return f};cf.updateFx=function(e,t){var r=this,i=r.camera;if(i)if(e==="orbit")i.mode="orbit",i.keyBindingMode="rotate";else if(e==="turntable"){i.up=[0,0,1],i.mode="turntable",i.keyBindingMode="rotate";var n=r.graphDiv,a=n._fullLayout,o=r.fullSceneLayout.camera,s=o.up.x,l=o.up.y,u=o.up.z;if(u/Math.sqrt(s*s+l*l+u*u)<.999){var c=r.id+".camera.up",f={x:0,y:0,z:1},h={};h[c]=f;var p=n.layout;sR.call("_storeDirectGUIEdit",p,a._preGUI,h),o.up=f,hh.nestedProperty(p,c).set(f)}}else i.keyBindingMode=e;r.fullSceneLayout.hovermode=t};function nnr(e,t,r){for(var i=0,n=r-1;i0)for(var s=255/o,l=0;l<3;++l)e[a+l]=Math.min(s*e[a+l],255)}}cf.toImage=function(e){var t=this;e||(e="png"),t.staticMode&&t.container.appendChild(ME),t.glplot.redraw();var r=t.glplot.gl,i=r.drawingBufferWidth,n=r.drawingBufferHeight;r.bindFramebuffer(r.FRAMEBUFFER,null);var a=new Uint8Array(i*n*4);r.readPixels(0,0,i,n,r.RGBA,r.UNSIGNED_BYTE,a),nnr(a,i,n),anr(a,i,n);var o=document.createElement("canvas");o.width=i,o.height=n;var s=o.getContext("2d",{willReadFrequently:!0}),l=s.createImageData(i,n);l.data.set(a),s.putImageData(l,0,0);var u;switch(e){case"jpeg":u=o.toDataURL("image/jpeg");break;case"webp":u=o.toDataURL("image/webp");break;default:u=o.toDataURL("image/png")}return t.staticMode&&t.container.removeChild(ME),u};cf.setConvert=function(){for(var e=this,t=0;t<3;t++){var r=e.fullSceneLayout[SE[t]];lR.setConvert(r,e.fullLayout),r.setScale=hh.noop}};cf.make4thDimension=function(){var e=this,t=e.graphDiv,r=t._fullLayout;e._mockAxis={type:"linear",showexponent:"all",exponentformat:"B"},lR.setConvert(e._mockAxis,r)};WOe.exports=$Oe});var ZOe=W((dKr,XOe)=>{"use strict";XOe.exports={scene:{valType:"subplotid",dflt:"scene",editType:"calc+clearAxisTypes"}}});var KJ=W((pKr,KOe)=>{"use strict";var onr=ti(),Qn=ac(),ZJ=an().extendFlat,snr=hs().overrideAll;KOe.exports=snr({visible:Qn.visible,showspikes:{valType:"boolean",dflt:!0},spikesides:{valType:"boolean",dflt:!0},spikethickness:{valType:"number",min:0,dflt:2},spikecolor:{valType:"color",dflt:onr.defaultLine},showbackground:{valType:"boolean",dflt:!1},backgroundcolor:{valType:"color",dflt:"rgba(204, 204, 204, 0.5)"},showaxeslabels:{valType:"boolean",dflt:!0},color:Qn.color,categoryorder:Qn.categoryorder,categoryarray:Qn.categoryarray,title:{text:Qn.title.text,font:Qn.title.font},type:ZJ({},Qn.type,{values:["-","linear","log","date","category"]}),autotypenumbers:Qn.autotypenumbers,autorange:Qn.autorange,autorangeoptions:{minallowed:Qn.autorangeoptions.minallowed,maxallowed:Qn.autorangeoptions.maxallowed,clipmin:Qn.autorangeoptions.clipmin,clipmax:Qn.autorangeoptions.clipmax,include:Qn.autorangeoptions.include,editType:"plot"},rangemode:Qn.rangemode,minallowed:Qn.minallowed,maxallowed:Qn.maxallowed,range:ZJ({},Qn.range,{items:[{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}}],anim:!1}),tickmode:Qn.minor.tickmode,nticks:Qn.nticks,tick0:Qn.tick0,dtick:Qn.dtick,tickvals:Qn.tickvals,ticktext:Qn.ticktext,ticks:Qn.ticks,mirror:Qn.mirror,ticklen:Qn.ticklen,tickwidth:Qn.tickwidth,tickcolor:Qn.tickcolor,showticklabels:Qn.showticklabels,labelalias:Qn.labelalias,tickfont:Qn.tickfont,tickangle:Qn.tickangle,tickprefix:Qn.tickprefix,showtickprefix:Qn.showtickprefix,ticksuffix:Qn.ticksuffix,showticksuffix:Qn.showticksuffix,showexponent:Qn.showexponent,exponentformat:Qn.exponentformat,minexponent:Qn.minexponent,separatethousands:Qn.separatethousands,tickformat:Qn.tickformat,tickformatstops:Qn.tickformatstops,hoverformat:Qn.hoverformat,showline:Qn.showline,linecolor:Qn.linecolor,linewidth:Qn.linewidth,showgrid:Qn.showgrid,gridcolor:ZJ({},Qn.gridcolor,{dflt:"rgb(204, 204, 204)"}),gridwidth:Qn.gridwidth,zeroline:Qn.zeroline,zerolinecolor:Qn.zerolinecolor,zerolinewidth:Qn.zerolinewidth},"plot","from-root")});var tQ=W((vKr,JOe)=>{"use strict";var JJ=KJ(),lnr=ds().attributes,QJ=an().extendFlat,unr=tt().counterRegex;function eQ(e,t,r){return{x:{valType:"number",dflt:e,editType:"camera"},y:{valType:"number",dflt:t,editType:"camera"},z:{valType:"number",dflt:r,editType:"camera"},editType:"camera"}}JOe.exports={_arrayAttrRegexps:[unr("scene",".annotations",!0)],bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"plot"},camera:{up:QJ(eQ(0,0,1),{}),center:QJ(eQ(0,0,0),{}),eye:QJ(eQ(1.25,1.25,1.25),{}),projection:{type:{valType:"enumerated",values:["perspective","orthographic"],dflt:"perspective",editType:"calc"},editType:"calc"},editType:"camera"},domain:lnr({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:JJ,yaxis:JJ,zaxis:JJ,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"}});var rNe=W((gKr,tNe)=>{"use strict";var cnr=ti(),QOe=tt(),fnr=Ra(),hnr=KJ(),dnr=V$(),pnr=PM(),eNe=["xaxis","yaxis","zaxis"],vnr=13600/187;tNe.exports=function(t,r,i){var n,a;function o(u,c){return QOe.coerce(n,a,hnr,u,c)}for(var s=0;s{"use strict";var gnr=tt(),mnr=ti(),ynr=xi(),xnr=Kb(),bnr=rNe(),iNe=tQ(),_nr=Mc().getSubplotData,nNe="gl3d";aNe.exports=function(t,r,i){var n=r._basePlotModules.length>1;function a(o){if(!n){var s=gnr.validate(t[o],iNe[o]);if(s)return t[o]}}xnr(t,r,i,{type:nNe,attributes:iNe,handleDefaults:wnr,fullLayout:r,font:r.font,fullData:i,getDfltFromLayout:a,autotypenumbersDflt:r.autotypenumbers,paper_bgcolor:r.paper_bgcolor,calendar:r.calendar})};function wnr(e,t,r,i){for(var n=r("bgcolor"),a=mnr.combine(n,i.paper_bgcolor),o=["up","center","eye"],s=0;s.999)&&(h="turntable")}else h="turntable";r("dragmode",h),r("hovermode",i.getDfltFromLayout("hovermode"))}});var I2=W(dh=>{"use strict";var Tnr=hs().overrideAll,Anr=yy(),Mnr=YOe(),Snr=Mc().getSubplotData,Enr=tt(),knr=(md(),Pt(gd)),O4="gl3d",rQ="scene";dh.name=O4;dh.attr=rQ;dh.idRoot=rQ;dh.idRegex=dh.attrRegex=Enr.counterRegex("scene");dh.attributes=ZOe();dh.layoutAttributes=tQ();dh.baseLayoutAttrOverrides=Tnr({hoverlabel:Anr.hoverlabel},"plot","nested");dh.supplyLayoutDefaults=oNe();dh.plot=function(t){for(var r=t._fullLayout,i=t._fullData,n=r._subplots[O4],a=0;a{"use strict";sNe.exports={plot:mOe(),attributes:WJ(),markerSymbols:(iR(),Pt(rR)).default,supplyDefaults:AOe(),colorbar:[{container:"marker",min:"cmin",max:"cmax"},{container:"line",min:"cmin",max:"cmax"}],calc:SOe(),moduleType:"trace",name:"scatter3d",basePlotModule:I2(),categories:["gl3d","symbols","showLegend","scatter-like"],meta:{}}});var cNe=W((bKr,uNe)=>{"use strict";uNe.exports=lNe()});var EE=W((_Kr,dNe)=>{"use strict";var fNe=ti(),Cnr=Fo(),iQ=Ts().axisHoverFormat,{hovertemplateAttrs:Dnr,templatefallbackAttrs:Fnr}=Wa(),hNe=Ja(),nQ=an().extendFlat,Lnr=hs().overrideAll;function aQ(e){return{valType:"boolean",dflt:!1}}function oQ(e){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:aQ("x"),y:aQ("y"),z:aQ("z")},color:{valType:"color",dflt:fNe.defaultLine},usecolormap:{valType:"boolean",dflt:!1},width:{valType:"number",min:1,max:16,dflt:2},highlight:{valType:"boolean",dflt:!0},highlightcolor:{valType:"color",dflt:fNe.defaultLine},highlightwidth:{valType:"number",min:1,max:16,dflt:2}}}var sQ=dNe.exports=Lnr(nQ({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:Dnr(),hovertemplatefallback:Fnr(),xhoverformat:iQ("x"),yhoverformat:iQ("y"),zhoverformat:iQ("z"),connectgaps:{valType:"boolean",dflt:!1,editType:"calc"},surfacecolor:{valType:"data_array"}},Cnr("",{colorAttr:"z or surfacecolor",showScaleDflt:!0,autoColorDflt:!1,editTypeOverride:"calc"}),{contours:{x:oQ("x"),y:oQ("y"),z:oQ("z")},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,description:"Represents the level that incident rays are reflected in a single direction, causing shine."},roughness:{valType:"number",min:0,max:1,dflt:.5,description:"Alters specular reflection; the rougher the surface, the wider and less contrasty the shine."},fresnel:{valType:"number",min:0,max:5,dflt:.2}},opacity:{valType:"number",min:0,max:1,dflt:1},opacityscale:{valType:"any",editType:"calc"},hoverinfo:nQ({},hNe.hoverinfo),showlegend:nQ({},hNe.showlegend,{dflt:!1})}),"calc","nested");sQ.x.editType=sQ.y.editType=sQ.z.editType="calc+clearAxisTypes"});var uQ=W((wKr,gNe)=>{"use strict";var Pnr=xi(),pNe=tt(),Inr=Bu(),Rnr=EE(),lQ=.1;function znr(e,t){for(var r=[],i=32,n=0;n{"use strict";var mNe=rf();yNe.exports=function(t,r){r.surfacecolor?mNe(t,r,{vals:r.surfacecolor,containerStr:"",cLetter:"c"}):mNe(t,r,{vals:r.z,containerStr:"",cLetter:"c"})}});var MNe=W((AKr,ANe)=>{"use strict";var Onr=uc().gl_surface3d,N4=uc().ndarray,Nnr=uc().ndarray_linear_interpolate.d2,Unr=nP(),Vnr=aP(),kE=tt().isArrayOrTypedArray,Gnr=_m().parseColorScale,bNe=bm(),Hnr=es().extractOpts;function wNe(e,t,r){this.scene=e,this.uid=r,this.surface=t,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 wv=wNe.prototype;wv.getXat=function(e,t,r,i){var n=kE(this.data.x)?kE(this.data.x[0])?this.data.x[t][e]:this.data.x[e]:e;return r===void 0?n:i.d2l(n,0,r)};wv.getYat=function(e,t,r,i){var n=kE(this.data.y)?kE(this.data.y[0])?this.data.y[t][e]:this.data.y[t]:t;return r===void 0?n:i.d2l(n,0,r)};wv.getZat=function(e,t,r,i){var n=this.data.z[t][e];return n===null&&this.data.connectgaps&&this.data._interpolatedZ&&(n=this.data._interpolatedZ[t][e]),r===void 0?n:i.d2l(n,0,r)};wv.handlePick=function(e){if(e.object===this.surface){var t=(e.data.index[0]-1)/this.dataScaleX-1,r=(e.data.index[1]-1)/this.dataScaleY-1,i=Math.max(Math.min(Math.round(t),this.data.z[0].length-1),0),n=Math.max(Math.min(Math.round(r),this.data._ylength-1),0);e.index=[i,n],e.traceCoordinate=[this.getXat(i,n),this.getYat(i,n),this.getZat(i,n)],e.dataCoordinate=[this.getXat(i,n,this.data.xcalendar,this.scene.fullSceneLayout.xaxis),this.getYat(i,n,this.data.ycalendar,this.scene.fullSceneLayout.yaxis),this.getZat(i,n,this.data.zcalendar,this.scene.fullSceneLayout.zaxis)];for(var a=0;a<3;a++){var o=e.dataCoordinate[a];o!=null&&(e.dataCoordinate[a]*=this.scene.dataScale[a])}var s=this.data.hovertext||this.data.text;return kE(s)&&s[n]&&s[n][i]!==void 0?e.textLabel=s[n][i]:s?e.textLabel=s:e.textLabel="",e.data.dataCoordinate=e.dataCoordinate.slice(),this.surface.highlight(e.data),this.scene.glplot.spikes.position=e.dataCoordinate,!0}};function jnr(e){var t=e[0].rgb,r=e[e.length-1].rgb;return t[0]===r[0]&&t[1]===r[1]&&t[2]===r[2]&&t[3]===r[3]}var U4=[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 $nr(e,t){if(e0){r=U4[i];break}return r}function Ynr(e,t){if(!(e<1||t<1)){for(var r=cQ(e),i=cQ(t),n=1,a=0;auR;)i--,i/=Wnr(i),i++,i<_Ne&&(i=uR);var n=Math.round(i/e);return n>1?n:1};function Znr(e,t,r){var i=r[8]+r[2]*t[0]+r[5]*t[1];return e[0]=(r[6]+r[0]*t[0]+r[3]*t[1])/i,e[1]=(r[7]+r[1]*t[0]+r[4]*t[1])/i,e}function Knr(e,t,r){return Jnr(e,t,Znr,r),e}function Jnr(e,t,r,i){for(var n=[0,0],a=e.shape[0],o=e.shape[1],s=0;s0&&this.contourStart[i]!==null&&this.contourEnd[i]!==null&&this.contourEnd[i]>this.contourStart[i]))for(t[i]=!0,n=this.contourStart[i];nh&&(this.minValues[u]=h),this.maxValues[u]{"use strict";SNe.exports={attributes:EE(),supplyDefaults:uQ().supplyDefaults,colorbar:{min:"cmin",max:"cmax"},calc:xNe(),plot:MNe(),moduleType:"trace",name:"surface",basePlotModule:I2(),categories:["gl3d","2dMap","showLegend"],meta:{}}});var CNe=W((SKr,kNe)=>{"use strict";kNe.exports=ENe()});var V4=W((EKr,FNe)=>{"use strict";var tar=Fo(),fQ=Ts().axisHoverFormat,{hovertemplateAttrs:rar,templatefallbackAttrs:iar}=Wa(),R2=EE(),DNe=Ja(),z2=an().extendFlat;FNe.exports=z2({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:rar({editType:"calc"}),hovertemplatefallback:iar({editType:"calc"}),xhoverformat:fQ("x"),yhoverformat:fQ("y"),zhoverformat:fQ("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"}},tar("",{colorAttr:"`intensity`",showScaleDflt:!0,editTypeOverride:"calc"}),{opacity:R2.opacity,flatshading:{valType:"boolean",dflt:!1,editType:"calc"},contour:{show:z2({},R2.contours.x.show,{}),color:R2.contours.x.color,width:R2.contours.x.width,editType:"calc"},lightposition:{x:z2({},R2.lightposition.x,{dflt:1e5}),y:z2({},R2.lightposition.y,{dflt:1e5}),z:z2({},R2.lightposition.z,{dflt:0}),editType:"calc"},lighting:z2({vertexnormalsepsilon:{valType:"number",min:0,max:1,dflt:1e-12,editType:"calc",description:"Epsilon for vertex normals calculation avoids math issues arising from degenerate geometry."},facenormalsepsilon:{valType:"number",min:0,max:1,dflt:1e-6,editType:"calc",description:"Epsilon for face normals calculation avoids math issues arising from degenerate geometry."},editType:"calc"},R2.lighting),hoverinfo:z2({},DNe.hoverinfo,{editType:"calc"}),showlegend:z2({},DNe.showlegend,{dflt:!1})})});var fR=W((kKr,PNe)=>{"use strict";var nar=Fo(),cR=Ts().axisHoverFormat,{hovertemplateAttrs:aar,templatefallbackAttrs:oar}=Wa(),CE=V4(),LNe=Ja(),hQ=an().extendFlat,sar=hs().overrideAll;function dQ(e){return{show:{valType:"boolean",dflt:!1},locations:{valType:"data_array",dflt:[]},fill:{valType:"number",min:0,max:1,dflt:1}}}function pQ(e){return{show:{valType:"boolean",dflt:!0},fill:{valType:"number",min:0,max:1,dflt:1}}}var G4=PNe.exports=sar(hQ({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:dQ("x"),y:dQ("y"),z:dQ("z")},caps:{x:pQ("x"),y:pQ("y"),z:pQ("z")},text:{valType:"string",dflt:"",arrayOk:!0},hovertext:{valType:"string",dflt:"",arrayOk:!0},hovertemplate:aar(),hovertemplatefallback:oar(),xhoverformat:cR("x"),yhoverformat:cR("y"),zhoverformat:cR("z"),valuehoverformat:cR("value",1),showlegend:hQ({},LNe.showlegend,{dflt:!1})},nar("",{colorAttr:"`value`",showScaleDflt:!0,editTypeOverride:"calc"}),{opacity:CE.opacity,lightposition:CE.lightposition,lighting:CE.lighting,flatshading:CE.flatshading,contour:CE.contour,hoverinfo:hQ({},LNe.hoverinfo)}),"calc","nested");G4.flatshading.dflt=!0;G4.lighting.facenormalsepsilon.dflt=0;G4.x.editType=G4.y.editType=G4.z.editType=G4.value.editType="calc+clearAxisTypes"});var vQ=W((CKr,RNe)=>{"use strict";var lar=tt(),uar=xi(),car=fR(),far=Bu();function har(e,t,r,i){function n(a,o){return lar.coerce(e,t,car,a,o)}INe(e,t,r,i,n)}function INe(e,t,r,i,n){var a=n("isomin"),o=n("isomax");o!=null&&a!==void 0&&a!==null&&a>o&&(t.isomin=null,t.isomax=null);var s=n("x"),l=n("y"),u=n("z"),c=n("value");if(!s||!s.length||!l||!l.length||!u||!u.length||!c||!c.length){t.visible=!1;return}var f=uar.getComponentMethod("calendars","handleTraceDefaults");f(e,t,["x","y","z"],i),n("valuehoverformat"),["x","y","z"].forEach(function(v){n(v+"hoverformat");var m="caps."+v,g=n(m+".show");g&&n(m+".fill");var w="slices."+v,_=n(w+".show");_&&(n(w+".fill"),n(w+".locations"))});var h=n("spaceframe.show");h&&n("spaceframe.fill");var p=n("surface.show");p&&(n("surface.count"),n("surface.fill"),n("surface.pattern"));var d=n("contour.show");d&&(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(v){n(v)}),far(e,t,i,n,{prefix:"",cLetter:"c"}),t._length=null}RNe.exports={supplyDefaults:har,supplyIsoDefaults:INe}});var hR=W((DKr,BNe)=>{"use strict";var mQ=tt(),dar=rf();function par(e,t){t._len=Math.min(t.u.length,t.v.length,t.w.length,t.x.length,t.y.length,t.z.length),t._u=W1(t.u,t._len),t._v=W1(t.v,t._len),t._w=W1(t.w,t._len),t._x=W1(t.x,t._len),t._y=W1(t.y,t._len),t._z=W1(t.z,t._len);var r=zNe(t);t._gridFill=r.fill,t._Xs=r.Xs,t._Ys=r.Ys,t._Zs=r.Zs,t._len=r.len;var i=0,n,a,o;t.starts&&(n=W1(t.starts.x||[]),a=W1(t.starts.y||[]),o=W1(t.starts.z||[]),i=Math.min(n.length,a.length,o.length)),t._startsX=n||[],t._startsY=a||[],t._startsZ=o||[];var s=0,l=1/0,u;for(u=0;u1&&(_=t[n-1],S=r[n-1],A=i[n-1]),a=0;a_?"-":"+")+"x"),d=d.replace("y",(b>S?"-":"+")+"y"),d=d.replace("z",(x>A?"-":"+")+"z");var M=function(){n=0,T=[],y=[],E=[]};(!n||n{"use strict";var gar=rf(),mar=hR().processGrid,dR=hR().filter;qNe.exports=function(t,r){r._len=Math.min(r.x.length,r.y.length,r.z.length,r.value.length),r._x=dR(r.x,r._len),r._y=dR(r.y,r._len),r._z=dR(r.z,r._len),r._value=dR(r.value,r._len);var i=mar(r);r._gridFill=i.fill,r._Xs=i.Xs,r._Ys=i.Ys,r._Zs=i.Zs,r._len=i.len;for(var n=1/0,a=-1/0,o=0;o{"use strict";ONe.exports=function(t,r,i,n){n=n||t.length;for(var a=new Array(n),o=0;o{"use strict";var yar=uc().gl_mesh3d,xar=_m().parseColorScale,bar=tt().isArrayOrTypedArray,_ar=bm(),war=es().extractOpts,NNe=H4(),DE=function(e,t){for(var r=t.length-1;r>0;r--){var i=Math.min(t[r],t[r-1]),n=Math.max(t[r],t[r-1]);if(n>i&&i-1}function O(Te,Ce){return Te===null?Ce:Te}function $(Te,Ce,ze){M();var we=[Ce],me=[ze];if(R>=1)we=[Ce],me=[ze];else if(R>0){var Le=I(Ce,ze);we=Le.xyzv,me=Le.abc}for(var Ne=0;Ne-1?ze[rt]:E(mt,dt,St);bt>-1?Je[rt]=bt:Je[rt]=k(mt,dt,St,O(Te,Ke))}D(Je[0],Je[1],Je[2])}}function X(Te,Ce,ze){var we=function(me,Le,Ne){$(Te,[Ce[me],Ce[Le],Ce[Ne]],[ze[me],ze[Le],ze[Ne]])};we(0,1,2),we(2,3,0)}function K(Te,Ce,ze){var we=function(me,Le,Ne){$(Te,[Ce[me],Ce[Le],Ce[Ne]],[ze[me],ze[Le],ze[Ne]])};we(0,1,2),we(3,0,1),we(2,3,0),we(1,2,3)}function G(Te,Ce,ze,we){var me=Te[3];mewe&&(me=we);for(var Le=(Te[3]-me)/(Te[3]-Ce[3]+1e-9),Ne=[],Je=0;Je<4;Je++)Ne[Je]=(1-Le)*Te[Je]+Le*Ce[Je];return Ne}function q(Te,Ce,ze){return Te>=Ce&&Te<=ze}function J(Te){var Ce=.001*(S-b);return Te>=b-Ce&&Te<=S+Ce}function N(Te){for(var Ce=[],ze=0;ze<4;ze++){var we=Te[ze];Ce.push([e._x[we],e._y[we],e._z[we],e._value[we]])}return Ce}var V=3;function Y(Te,Ce,ze,we,me,Le){Le||(Le=1),ze=[-1,-1,-1];var Ne=!1,Je=[q(Ce[0][3],we,me),q(Ce[1][3],we,me),q(Ce[2][3],we,me)];if(!Je[0]&&!Je[1]&&!Je[2])return!1;var rt=function(dt,St,Ke){return J(St[0][3])&&J(St[1][3])&&J(St[2][3])?($(dt,St,Ke),!0):LeJe?[w,Le]:[Le,_];be(Ce,rt[0],rt[1])}}var mt=[[Math.min(b,_),Math.max(b,_)],[Math.min(w,S),Math.max(w,S)]];["x","y","z"].forEach(function(dt){for(var St=[],Ke=0;Ke0&&($e.push(st.id),dt==="x"?Ie.push([st.distRatio,0,0]):dt==="y"?Ie.push([0,st.distRatio,0]):Ie.push([0,0,st.distRatio]))}else dt==="x"?je=_e(1,p-1):dt==="y"?je=_e(1,d-1):je=_e(1,v-1);$e.length>0&&(dt==="x"?St[bt]=fe(Te,$e,pt,Oe,Ie,St[bt]):dt==="y"?St[bt]=ee(Te,$e,pt,Oe,Ie,St[bt]):St[bt]=ae(Te,$e,pt,Oe,Ie,St[bt]),bt++),je.length>0&&(dt==="x"?St[bt]=Ee(Te,je,pt,Oe,St[bt]):dt==="y"?St[bt]=xe(Te,je,pt,Oe,St[bt]):St[bt]=ce(Te,je,pt,Oe,St[bt]),bt++)}var _t=e.caps[dt];_t.show&&_t.fill&&(L(_t.fill),dt==="x"?St[bt]=Ee(Te,[0,p-1],pt,Oe,St[bt]):dt==="y"?St[bt]=xe(Te,[0,d-1],pt,Oe,St[bt]):St[bt]=ce(Te,[0,v-1],pt,Oe,St[bt]),bt++)}}),s===0&&C(),e._meshX=x,e._meshY=A,e._meshZ=T,e._meshIntensity=y,e._Xs=c,e._Ys=f,e._Zs=h}return pe(),e}function Aar(e,t){var r=e.glplot.gl,i=yar({gl:r}),n=new UNe(e,i,t.uid);return i._trace=n,n.update(t),e.glplot.add(i),n}GNe.exports={findNearestOnAxis:DE,generateIsoMeshes:VNe,createIsosurfaceTrace:Aar}});var jNe=W((IKr,HNe)=>{"use strict";HNe.exports={attributes:fR(),supplyDefaults:vQ().supplyDefaults,calc:yQ(),colorbar:{min:"cmin",max:"cmax"},plot:pR().createIsosurfaceTrace,moduleType:"trace",name:"isosurface",basePlotModule:I2(),categories:["gl3d","showLegend"],meta:{}}});var WNe=W((RKr,$Ne)=>{"use strict";$Ne.exports=jNe()});var _Q=W((zKr,XNe)=>{"use strict";var Mar=Fo(),Ol=fR(),Sar=EE(),YNe=Ja(),bQ=an().extendFlat,Ear=hs().overrideAll,vR=XNe.exports=Ear(bQ({x:Ol.x,y:Ol.y,z:Ol.z,value:Ol.value,isomin:Ol.isomin,isomax:Ol.isomax,surface:Ol.surface,spaceframe:{show:{valType:"boolean",dflt:!1},fill:{valType:"number",min:0,max:1,dflt:1}},slices:Ol.slices,caps:Ol.caps,text:Ol.text,hovertext:Ol.hovertext,xhoverformat:Ol.xhoverformat,yhoverformat:Ol.yhoverformat,zhoverformat:Ol.zhoverformat,valuehoverformat:Ol.valuehoverformat,hovertemplate:Ol.hovertemplate,hovertemplatefallback:Ol.hovertemplatefallback},Mar("",{colorAttr:"`value`",showScaleDflt:!0,editTypeOverride:"calc"}),{colorbar:Ol.colorbar,opacity:Ol.opacity,opacityscale:Sar.opacityscale,lightposition:Ol.lightposition,lighting:Ol.lighting,flatshading:Ol.flatshading,contour:Ol.contour,hoverinfo:bQ({},YNe.hoverinfo),showlegend:bQ({},YNe.showlegend,{dflt:!1})}),"calc","nested");vR.x.editType=vR.y.editType=vR.z.editType=vR.value.editType="calc+clearAxisTypes"});var KNe=W((BKr,ZNe)=>{"use strict";var kar=tt(),Car=_Q(),Dar=vQ().supplyIsoDefaults,Far=uQ().opacityscaleDefaults;ZNe.exports=function(t,r,i,n){function a(o,s){return kar.coerce(t,r,Car,o,s)}Dar(t,r,i,n,a),Far(t,r,n,a)}});var tUe=W((qKr,eUe)=>{"use strict";var Lar=uc().gl_mesh3d,Par=_m().parseColorScale,Iar=tt().isArrayOrTypedArray,Rar=bm(),zar=es().extractOpts,JNe=H4(),wQ=pR().findNearestOnAxis,Bar=pR().generateIsoMeshes;function QNe(e,t,r){this.scene=e,this.uid=r,this.mesh=t,this.name="",this.data=null,this.showContour=!1}var TQ=QNe.prototype;TQ.handlePick=function(e){if(e.object===this.mesh){var t=e.data.index,r=this.data._meshX[t],i=this.data._meshY[t],n=this.data._meshZ[t],a=this.data._Ys.length,o=this.data._Zs.length,s=wQ(r,this.data._Xs).id,l=wQ(i,this.data._Ys).id,u=wQ(n,this.data._Zs).id,c=e.index=u+o*l+o*a*s;e.traceCoordinate=[this.data._meshX[c],this.data._meshY[c],this.data._meshZ[c],this.data._value[c]];var f=this.data.hovertext||this.data.text;return Iar(f)&&f[c]!==void 0?e.textLabel=f[c]:f&&(e.textLabel=f),!0}};TQ.update=function(e){var t=this.scene,r=t.fullSceneLayout;this.data=Bar(e);function i(l,u,c,f){return u.map(function(h){return l.d2l(h,0,f)*c})}var n=JNe(i(r.xaxis,e._meshX,t.dataScale[0],e.xcalendar),i(r.yaxis,e._meshY,t.dataScale[1],e.ycalendar),i(r.zaxis,e._meshZ,t.dataScale[2],e.zcalendar)),a=JNe(e._meshI,e._meshJ,e._meshK),o={positions:n,cells:a,lightPosition:[e.lightposition.x,e.lightposition.y,e.lightposition.z],ambient:e.lighting.ambient,diffuse:e.lighting.diffuse,specular:e.lighting.specular,roughness:e.lighting.roughness,fresnel:e.lighting.fresnel,vertexNormalsEpsilon:e.lighting.vertexnormalsepsilon,faceNormalsEpsilon:e.lighting.facenormalsepsilon,opacity:e.opacity,opacityscale:e.opacityscale,contourEnable:e.contour.show,contourColor:Rar(e.contour.color).slice(0,3),contourWidth:e.contour.width,useFacetNormals:e.flatshading},s=zar(e);o.vertexIntensity=e._meshIntensity,o.vertexIntensityBounds=[s.min,s.max],o.colormap=Par(e),this.mesh.update(o)};TQ.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()};function qar(e,t){var r=e.glplot.gl,i=Lar({gl:r}),n=new QNe(e,i,t.uid);return i._trace=n,n.update(t),e.glplot.add(i),n}eUe.exports=qar});var iUe=W((OKr,rUe)=>{"use strict";rUe.exports={attributes:_Q(),supplyDefaults:KNe(),calc:yQ(),colorbar:{min:"cmin",max:"cmax"},plot:tUe(),moduleType:"trace",name:"volume",basePlotModule:I2(),categories:["gl3d","showLegend"],meta:{}}});var aUe=W((NKr,nUe)=>{"use strict";nUe.exports=iUe()});var lUe=W((UKr,sUe)=>{"use strict";var Oar=xi(),oUe=tt(),Nar=Bu(),Uar=V4();sUe.exports=function(t,r,i,n){function a(c,f){return oUe.coerce(t,r,Uar,c,f)}function o(c){var f=c.map(function(h){var p=a(h);return p&&oUe.isArrayOrTypedArray(p)?p:null});return f.every(function(h){return h&&h.length===f[0].length})&&f}var s=o(["x","y","z"]);if(!s){r.visible=!1;return}if(o(["i","j","k"]),r.i&&(!r.j||!r.k)||r.j&&(!r.k||!r.i)||r.k&&(!r.i||!r.j)){r.visible=!1;return}var l=Oar.getComponentMethod("calendars","handleTraceDefaults");l(t,r,["x","y","z"],n),["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(c){a(c)});var u=a("contour.show");u&&(a("contour.color"),a("contour.width")),"intensity"in t?(a("intensity"),a("intensitymode"),Nar(t,r,n,a,{prefix:"",cLetter:"c"})):(r.showscale=!1,"facecolor"in t?a("facecolor"):"vertexcolor"in t?a("vertexcolor"):a("color",i)),a("text"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback"),a("xhoverformat"),a("yhoverformat"),a("zhoverformat"),r._length=null}});var cUe=W((VKr,uUe)=>{"use strict";var Var=rf();uUe.exports=function(t,r){r.intensity&&Var(t,r,{vals:r.intensity,containerStr:"",cLetter:"c"})}});var vUe=W((GKr,pUe)=>{"use strict";var Gar=uc().gl_mesh3d,Har=uc().delaunay_triangulate,jar=uc().alpha_shape,$ar=uc().convex_hull,War=_m().parseColorScale,Yar=tt().isArrayOrTypedArray,EQ=bm(),Xar=es().extractOpts,fUe=H4();function dUe(e,t,r){this.scene=e,this.uid=r,this.mesh=t,this.name="",this.color="#fff",this.data=null,this.showContour=!1}var kQ=dUe.prototype;kQ.handlePick=function(e){if(e.object===this.mesh){var t=e.index=e.data.index;e.data._cellCenter?e.traceCoordinate=e.data.dataCoordinate:e.traceCoordinate=[this.data.x[t],this.data.y[t],this.data.z[t]];var r=this.data.hovertext||this.data.text;return Yar(r)&&r[t]!==void 0?e.textLabel=r[t]:r&&(e.textLabel=r),!0}};function hUe(e){for(var t=[],r=e.length,i=0;i=t-.5)return!1;return!0}kQ.update=function(e){var t=this.scene,r=t.fullSceneLayout;this.data=e;var i=e.x.length,n=fUe(AQ(r.xaxis,e.x,t.dataScale[0],e.xcalendar),AQ(r.yaxis,e.y,t.dataScale[1],e.ycalendar),AQ(r.zaxis,e.z,t.dataScale[2],e.zcalendar)),a;if(e.i&&e.j&&e.k){if(e.i.length!==e.j.length||e.j.length!==e.k.length||!SQ(e.i,i)||!SQ(e.j,i)||!SQ(e.k,i))return;a=fUe(MQ(e.i),MQ(e.j),MQ(e.k))}else e.alphahull===0?a=$ar(n):e.alphahull>0?a=jar(e.alphahull,n):a=Zar(e.delaunayaxis,n);var o={positions:n,cells:a,lightPosition:[e.lightposition.x,e.lightposition.y,e.lightposition.z],ambient:e.lighting.ambient,diffuse:e.lighting.diffuse,specular:e.lighting.specular,roughness:e.lighting.roughness,fresnel:e.lighting.fresnel,vertexNormalsEpsilon:e.lighting.vertexnormalsepsilon,faceNormalsEpsilon:e.lighting.facenormalsepsilon,opacity:e.opacity,contourEnable:e.contour.show,contourColor:EQ(e.contour.color).slice(0,3),contourWidth:e.contour.width,useFacetNormals:e.flatshading};if(e.intensity){var s=Xar(e);this.color="#fff";var l=e.intensitymode;o[l+"Intensity"]=e.intensity,o[l+"IntensityBounds"]=[s.min,s.max],o.colormap=War(e)}else e.vertexcolor?(this.color=e.vertexcolor[0],o.vertexColors=hUe(e.vertexcolor)):e.facecolor?(this.color=e.facecolor[0],o.cellColors=hUe(e.facecolor)):(this.color=e.color,o.meshColor=EQ(e.color));this.mesh.update(o)};kQ.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()};function Kar(e,t){var r=e.glplot.gl,i=Gar({gl:r}),n=new dUe(e,i,t.uid);return i._trace=n,n.update(t),e.glplot.add(i),n}pUe.exports=Kar});var mUe=W((HKr,gUe)=>{"use strict";gUe.exports={attributes:V4(),supplyDefaults:lUe(),calc:cUe(),colorbar:{min:"cmin",max:"cmax"},plot:vUe(),moduleType:"trace",name:"mesh3d",basePlotModule:I2(),categories:["gl3d","showLegend"],meta:{}}});var xUe=W((jKr,yUe)=>{"use strict";yUe.exports=mUe()});var DQ=W(($Kr,_Ue)=>{"use strict";var Jar=Fo(),j4=Ts().axisHoverFormat,{hovertemplateAttrs:Qar,templatefallbackAttrs:eor}=Wa(),tor=V4(),bUe=Ja(),CQ=an().extendFlat,gR={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","raw"],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:Qar({editType:"calc"},{keys:["norm"]}),hovertemplatefallback:eor({editType:"calc"}),uhoverformat:j4("u",1),vhoverformat:j4("v",1),whoverformat:j4("w",1),xhoverformat:j4("x"),yhoverformat:j4("y"),zhoverformat:j4("z"),showlegend:CQ({},bUe.showlegend,{dflt:!1})};CQ(gR,Jar("",{colorAttr:"u/v/w norm",showScaleDflt:!0,editTypeOverride:"calc"}));var ror=["opacity","lightposition","lighting"];ror.forEach(function(e){gR[e]=tor[e]});gR.hoverinfo=CQ({},bUe.hoverinfo,{editType:"calc",flags:["x","y","z","u","v","w","norm","text","name"],dflt:"x+y+z+norm+text+name"});_Ue.exports=gR});var TUe=W((WKr,wUe)=>{"use strict";var ior=tt(),nor=Bu(),aor=DQ();wUe.exports=function(t,r,i,n){function a(p,d){return ior.coerce(t,r,aor,p,d)}var o=a("u"),s=a("v"),l=a("w"),u=a("x"),c=a("y"),f=a("z");if(!o||!o.length||!s||!s.length||!l||!l.length||!u||!u.length||!c||!c.length||!f||!f.length){r.visible=!1;return}var h=a("sizemode");a("sizeref",h==="raw"?1:.5),a("anchor"),a("lighting.ambient"),a("lighting.diffuse"),a("lighting.specular"),a("lighting.roughness"),a("lighting.fresnel"),a("lightposition.x"),a("lightposition.y"),a("lightposition.z"),nor(t,r,n,a,{prefix:"",cLetter:"c"}),a("text"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback"),a("uhoverformat"),a("vhoverformat"),a("whoverformat"),a("xhoverformat"),a("yhoverformat"),a("zhoverformat"),r._length=null}});var MUe=W((YKr,AUe)=>{"use strict";var oor=rf();AUe.exports=function(t,r){for(var i=r.u,n=r.v,a=r.w,o=Math.min(r.x.length,r.y.length,r.z.length,i.length,n.length,a.length),s=-1/0,l=1/0,u=0;u{"use strict";var sor=uc().gl_cone3d,lor=uc().gl_cone3d.createConeMesh,uor=tt().simpleMap,cor=_m().parseColorScale,hor=es().extractOpts,dor=tt().isArrayOrTypedArray,SUe=H4();function EUe(e,t){this.scene=e,this.uid=t,this.mesh=null,this.data=null}var FQ=EUe.prototype;FQ.handlePick=function(e){if(e.object===this.mesh){var t=e.index=e.data.index,r=this.data.x[t],i=this.data.y[t],n=this.data.z[t],a=this.data.u[t],o=this.data.v[t],s=this.data.w[t];e.traceCoordinate=[r,i,n,a,o,s,Math.sqrt(a*a+o*o+s*s)];var l=this.data.hovertext||this.data.text;return dor(l)&&l[t]!==void 0?e.textLabel=l[t]:l&&(e.textLabel=l),!0}};var por={xaxis:0,yaxis:1,zaxis:2},vor={tip:1,tail:0,cm:.25,center:.5},gor={tip:1,tail:1,cm:.75,center:.5};function kUe(e,t){var r=e.fullSceneLayout,i=e.dataScale,n={};function a(c,f){var h=r[f],p=i[por[f]];return uor(c,function(d){return h.d2l(d)*p})}n.vectors=SUe(a(t.u,"xaxis"),a(t.v,"yaxis"),a(t.w,"zaxis"),t._len),n.positions=SUe(a(t.x,"xaxis"),a(t.y,"yaxis"),a(t.z,"zaxis"),t._len);var o=hor(t);n.colormap=cor(t),n.vertexIntensityBounds=[o.min/t._normMax,o.max/t._normMax],n.coneOffset=vor[t.anchor];var s=t.sizemode;s==="scaled"?n.coneSize=t.sizeref||.5:s==="absolute"?n.coneSize=t.sizeref&&t._normMax?t.sizeref/t._normMax:.5:s==="raw"&&(n.coneSize=t.sizeref),n.coneSizemode=s;var l=sor(n),u=t.lightposition;return l.lightPosition=[u.x,u.y,u.z],l.ambient=t.lighting.ambient,l.diffuse=t.lighting.diffuse,l.specular=t.lighting.specular,l.roughness=t.lighting.roughness,l.fresnel=t.lighting.fresnel,l.opacity=t.opacity,t._pad=gor[t.anchor]*l.vectorScale*l.coneScale*t._normMax,l}FQ.update=function(e){this.data=e;var t=kUe(this.scene,e);this.mesh.update(t)};FQ.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()};function mor(e,t){var r=e.glplot.gl,i=kUe(e,t),n=lor(r,i),a=new EUe(e,t.uid);return a.mesh=n,a.data=t,n._trace=a,e.glplot.add(n),a}CUe.exports=mor});var LUe=W((ZKr,FUe)=>{"use strict";FUe.exports={moduleType:"trace",name:"cone",basePlotModule:I2(),categories:["gl3d","showLegend"],attributes:DQ(),supplyDefaults:TUe(),colorbar:{min:"cmin",max:"cmax"},calc:MUe(),plot:DUe(),eventData:function(e,t){return e.norm=t.traceCoordinate[6],e},meta:{}}});var IUe=W((KKr,PUe)=>{"use strict";PUe.exports=LUe()});var PQ=W((JKr,zUe)=>{"use strict";var yor=Fo(),$4=Ts().axisHoverFormat,{hovertemplateAttrs:xor,templatefallbackAttrs:bor}=Wa(),_or=V4(),RUe=Ja(),LQ=an().extendFlat,mR={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"},starts:{x:{valType:"data_array",editType:"calc"},y:{valType:"data_array",editType:"calc"},z:{valType:"data_array",editType:"calc"},editType:"calc"},maxdisplayed:{valType:"integer",min:0,dflt:1e3,editType:"calc"},sizeref:{valType:"number",editType:"calc",min:0,dflt:1},text:{valType:"string",dflt:"",editType:"calc"},hovertext:{valType:"string",dflt:"",editType:"calc"},hovertemplate:xor({editType:"calc"},{keys:["tubex","tubey","tubez","tubeu","tubev","tubew","norm","divergence"]}),hovertemplatefallback:bor({editType:"calc"}),uhoverformat:$4("u",1),vhoverformat:$4("v",1),whoverformat:$4("w",1),xhoverformat:$4("x"),yhoverformat:$4("y"),zhoverformat:$4("z"),showlegend:LQ({},RUe.showlegend,{dflt:!1})};LQ(mR,yor("",{colorAttr:"u/v/w norm",showScaleDflt:!0,editTypeOverride:"calc"}));var wor=["opacity","lightposition","lighting"];wor.forEach(function(e){mR[e]=_or[e]});mR.hoverinfo=LQ({},RUe.hoverinfo,{editType:"calc",flags:["x","y","z","u","v","w","norm","divergence","text","name"],dflt:"x+y+z+norm+text+name"});zUe.exports=mR});var qUe=W((QKr,BUe)=>{"use strict";var Tor=tt(),Aor=Bu(),Mor=PQ();BUe.exports=function(t,r,i,n){function a(h,p){return Tor.coerce(t,r,Mor,h,p)}var o=a("u"),s=a("v"),l=a("w"),u=a("x"),c=a("y"),f=a("z");if(!o||!o.length||!s||!s.length||!l||!l.length||!u||!u.length||!c||!c.length||!f||!f.length){r.visible=!1;return}a("starts.x"),a("starts.y"),a("starts.z"),a("maxdisplayed"),a("sizeref"),a("lighting.ambient"),a("lighting.diffuse"),a("lighting.specular"),a("lighting.roughness"),a("lighting.fresnel"),a("lightposition.x"),a("lightposition.y"),a("lightposition.z"),Aor(t,r,n,a,{prefix:"",cLetter:"c"}),a("text"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback"),a("uhoverformat"),a("vhoverformat"),a("whoverformat"),a("xhoverformat"),a("yhoverformat"),a("zhoverformat"),r._length=null}});var $Ue=W((eJr,jUe)=>{"use strict";var UUe=uc().gl_streamtube3d,Sor=UUe.createTubeMesh,Eor=tt(),kor=_m().parseColorScale,Cor=es().extractOpts,OUe=H4(),VUe={xaxis:0,yaxis:1,zaxis:2};function GUe(e,t){this.scene=e,this.uid=t,this.mesh=null,this.data=null}var RQ=GUe.prototype;RQ.handlePick=function(e){var t=this.scene.fullSceneLayout,r=this.scene.dataScale;function i(o,s){var l=t[s],u=r[VUe[s]];return l.l2c(o)/u}if(e.object===this.mesh){var n=e.data.position,a=e.data.velocity;return e.traceCoordinate=[i(n[0],"xaxis"),i(n[1],"yaxis"),i(n[2],"zaxis"),i(a[0],"xaxis"),i(a[1],"yaxis"),i(a[2],"zaxis"),e.data.intensity*this.data._normMax,e.data.divergence],e.textLabel=this.data.hovertext||this.data.text,!0}};function NUe(e){var t=e.length,r;return t>2?r=e.slice(1,t-1):t===2?r=[(e[0]+e[1])/2]:r=e,r}function IQ(e){var t=e.length;return t===1?[.5,.5]:[e[1]-e[0],e[t-1]-e[t-2]]}function HUe(e,t){var r=e.fullSceneLayout,i=e.dataScale,n=t._len,a={};function o(C,k){var D=r[k],F=i[VUe[k]];return Eor.simpleMap(C,function(P){return D.d2l(P)*F})}if(a.vectors=OUe(o(t._u,"xaxis"),o(t._v,"yaxis"),o(t._w,"zaxis"),n),!n)return{positions:[],cells:[]};var s=o(t._Xs,"xaxis"),l=o(t._Ys,"yaxis"),u=o(t._Zs,"zaxis");a.meshgrid=[s,l,u],a.gridFill=t._gridFill;var c=t._slen;if(c)a.startingPositions=OUe(o(t._startsX,"xaxis"),o(t._startsY,"yaxis"),o(t._startsZ,"zaxis"));else{for(var f=l[0],h=NUe(s),p=NUe(u),d=new Array(h.length*p.length),v=0,m=0;m{"use strict";WUe.exports={moduleType:"trace",name:"streamtube",basePlotModule:I2(),categories:["gl3d","showLegend"],attributes:PQ(),supplyDefaults:qUe(),colorbar:{min:"cmin",max:"cmax"},calc:hR().calc,plot:$Ue(),eventData:function(e,t){return e.tubex=e.x,e.tubey=e.y,e.tubez=e.z,e.tubeu=t.traceCoordinate[3],e.tubev=t.traceCoordinate[4],e.tubew=t.traceCoordinate[5],e.norm=t.traceCoordinate[6],e.divergence=t.traceCoordinate[7],delete e.x,delete e.y,delete e.z,e},meta:{}}});var ZUe=W((rJr,XUe)=>{"use strict";XUe.exports=YUe()});var W4=W((iJr,tVe)=>{"use strict";var{hovertemplateAttrs:For,texttemplateAttrs:Lor,templatefallbackAttrs:KUe}=Wa(),Por=C1(),Y1=Ws(),Ior=Ja(),JUe=Fo(),Ror=zu().dash,z_=an().extendFlat,zor=hs().overrideAll,Jd=Y1.marker,QUe=Y1.line,eVe=Jd.line;tVe.exports=zor({lon:{valType:"data_array"},lat:{valType:"data_array"},locations:{valType:"data_array"},locationmode:{valType:"enumerated",values:["ISO-3","USA-states","country names","geojson-id"],dflt:"ISO-3"},geojson:{valType:"any",editType:"calc"},featureidkey:{valType:"string",editType:"calc",dflt:"id"},mode:z_({},Y1.mode,{dflt:"markers"}),text:z_({},Y1.text,{}),texttemplate:Lor({editType:"plot"},{keys:["lat","lon","location","text"]}),texttemplatefallback:KUe({editType:"plot"}),hovertext:z_({},Y1.hovertext,{}),textfont:Y1.textfont,textposition:Y1.textposition,line:{color:QUe.color,width:QUe.width,dash:Ror},connectgaps:Y1.connectgaps,marker:z_({symbol:Jd.symbol,opacity:Jd.opacity,angle:Jd.angle,angleref:z_({},Jd.angleref,{values:["previous","up","north"]}),standoff:Jd.standoff,size:Jd.size,sizeref:Jd.sizeref,sizemin:Jd.sizemin,sizemode:Jd.sizemode,colorbar:Jd.colorbar,line:z_({width:eVe.width,dash:eVe.dash},JUe("marker.line")),gradient:Jd.gradient},JUe("marker")),fill:{valType:"enumerated",values:["none","toself"],dflt:"none"},fillcolor:Por(),selected:Y1.selected,unselected:Y1.unselected,hoverinfo:z_({},Ior.hoverinfo,{flags:["lon","lat","location","text","name"]}),hovertemplate:For(),hovertemplatefallback:KUe()},"calc","nested")});var iVe=W((nJr,rVe)=>{"use strict";var zQ=tt(),BQ=Wo(),Bor=Dd(),qor=ev(),Oor=tv(),Nor=F1(),Uor=W4();rVe.exports=function(t,r,i,n){function a(p,d){return zQ.coerce(t,r,Uor,p,d)}var o=a("locations"),s;if(o&&o.length){var l=a("geojson"),u;(typeof l=="string"&&l!==""||zQ.isPlainObject(l))&&(u="geojson-id");var c=a("locationmode",u);c==="geojson-id"&&a("featureidkey"),s=o.length}else{var f=a("lon")||[],h=a("lat")||[];s=Math.min(f.length,h.length)}if(!s){r.visible=!1;return}r._length=s,a("text"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback"),a("mode"),BQ.hasMarkers(r)&&Bor(t,r,i,n,a,{gradient:!0}),BQ.hasLines(r)&&(qor(t,r,i,n,a),a("connectgaps")),BQ.hasText(r)&&(a("texttemplate"),a("texttemplatefallback"),Oor(t,r,n,a)),a("fill"),r.fill!=="none"&&Nor(t,r,i,a),zQ.coerceSelectionMarkerOpacity(r,a)}});var oVe=W((aJr,aVe)=>{"use strict";var nVe=Yi();aVe.exports=function(t,r,i){var n={},a=i[r.geo]._subplot,o=a.mockAxis,s=t.lonlat;return n.lonLabel=nVe.tickText(o,o.c2l(s[0]),!0).text,n.latLabel=nVe.tickText(o,o.c2l(s[1]),!0).text,n}});var OQ=W((oJr,cVe)=>{"use strict";var qQ=hn(),sVe=(ra(),Pt(ia)).BADNUM,Vor=Fd(),Gor=L1(),Hor=C0(),jor=tt().isArrayOrTypedArray,lVe=tt()._;function uVe(e){return e&&typeof e=="string"}cVe.exports=function(t,r){var i=jor(r.locations),n=i?r.locations.length:r._length,a=new Array(n),o;r.geojson?o=function(h){return uVe(h)||qQ(h)}:o=uVe;for(var s=0;sWor,clipPad:()=>Jor,fillLayers:()=>nsr,fitboundsIncompatible:()=>Zor,landColor:()=>esr,lataxisSpan:()=>Xor,layerNameToAdjective:()=>lsr,layers:()=>osr,layersForChoropleth:()=>ssr,lineLayers:()=>asr,locationmodeToLayer:()=>rsr,lonaxisSpan:()=>Yor,precision:()=>Qor,projNames:()=>$or,scopeDefaults:()=>Kor,sphereSVG:()=>isr,waterColor:()=>tsr});var $or,Wor,Yor,Xor,Zor,Kor,Jor,Qor,esr,tsr,rsr,isr,nsr,asr,osr,ssr,lsr,LE=Ci(()=>{"use strict";$or={airy:"airy",aitoff:"aitoff","albers usa":"albersUsa",albers:"albers",august:"august","azimuthal equal area":"azimuthalEqualArea","azimuthal equidistant":"azimuthalEquidistant",baker:"baker",bertin1953:"bertin1953",boggs:"boggs",bonne:"bonne",bottomley:"bottomley",bromley:"bromley",collignon:"collignon","conic conformal":"conicConformal","conic equal area":"conicEqualArea","conic equidistant":"conicEquidistant",craig:"craig",craster:"craster","cylindrical equal area":"cylindricalEqualArea","cylindrical stereographic":"cylindricalStereographic",eckert1:"eckert1",eckert2:"eckert2",eckert3:"eckert3",eckert4:"eckert4",eckert5:"eckert5",eckert6:"eckert6",eisenlohr:"eisenlohr","equal earth":"equalEarth",equirectangular:"equirectangular",fahey:"fahey","foucaut sinusoidal":"foucautSinusoidal",foucaut:"foucaut",ginzburg4:"ginzburg4",ginzburg5:"ginzburg5",ginzburg6:"ginzburg6",ginzburg8:"ginzburg8",ginzburg9:"ginzburg9",gnomonic:"gnomonic","gringorten quincuncial":"gringortenQuincuncial",gringorten:"gringorten",guyou:"guyou",hammer:"hammer",hill:"hill",homolosine:"homolosine",hufnagel:"hufnagel",hyperelliptical:"hyperelliptical",kavrayskiy7:"kavrayskiy7",lagrange:"lagrange",larrivee:"larrivee",laskowski:"laskowski",loximuthal:"loximuthal",mercator:"mercator",miller:"miller",mollweide:"mollweide","mt flat polar parabolic":"mtFlatPolarParabolic","mt flat polar quartic":"mtFlatPolarQuartic","mt flat polar sinusoidal":"mtFlatPolarSinusoidal","natural earth":"naturalEarth","natural earth1":"naturalEarth1","natural earth2":"naturalEarth2","nell hammer":"nellHammer",nicolosi:"nicolosi",orthographic:"orthographic",patterson:"patterson","peirce quincuncial":"peirceQuincuncial",polyconic:"polyconic","rectangular polyconic":"rectangularPolyconic",robinson:"robinson",satellite:"satellite","sinu mollweide":"sinuMollweide",sinusoidal:"sinusoidal",stereographic:"stereographic",times:"times","transverse mercator":"transverseMercator","van der grinten":"vanDerGrinten","van der grinten2":"vanDerGrinten2","van der grinten3":"vanDerGrinten3","van der grinten4":"vanDerGrinten4",wagner4:"wagner4",wagner6:"wagner6",wiechel:"wiechel","winkel tripel":"winkel3",winkel3:"winkel3"},Wor=["lonaxis","lataxis"],Yor={orthographic:180,"azimuthal equal area":360,"azimuthal equidistant":360,"conic conformal":180,gnomonic:160,stereographic:180,"transverse mercator":180,"*":360},Xor={"conic conformal":150,stereographic:179.5,"*":180},Zor=new Set(["albers usa","craig","peirce quincuncial","satellite"]),Kor={world:{lonaxisRange:[-180,180],lataxisRange:[-90,90],projType:"equirectangular",projRotate:[0,0,0]},usa:{lonaxisRange:[-180,-50],lataxisRange:[15,80],projType:"albers usa"},europe:{lonaxisRange:[-30,60],lataxisRange:[30,85],projType:"conic conformal",projRotate:[15,0,0],projParallels:[0,60]},asia:{lonaxisRange:[22,160],lataxisRange:[-15,55],projType:"mercator",projRotate:[0,0,0]},africa:{lonaxisRange:[-30,60],lataxisRange:[-40,40],projType:"mercator",projRotate:[0,0,0]},"north america":{lonaxisRange:[-180,-45],lataxisRange:[5,85],projType:"conic conformal",projRotate:[-100,0,0],projParallels:[29.5,45.5]},"south america":{lonaxisRange:[-100,-30],lataxisRange:[-60,15],projType:"mercator",projRotate:[0,0,0]},antarctica:{lonaxisRange:[-180,180],lataxisRange:[-90,-60],projType:"equirectangular",projRotate:[0,0,0]},oceania:{lonaxisRange:[-180,180],lataxisRange:[-50,25],projType:"equirectangular",projRotate:[0,0,0]}},Jor=.001,Qor=.1,esr="#F0DC82",tsr="#3399FF",rsr={"ISO-3":"countries","USA-states":"subunits","country names":"countries"},isr={type:"Sphere"},nsr={ocean:1,land:1,lakes:1},asr={subunits:1,countries:1,coastlines:1,rivers:1,frame:1},osr=["bg","ocean","land","lakes","subunits","countries","coastlines","rivers","lataxis","lonaxis","frame","backplot","frontplot"],ssr=["bg","ocean","land","subunits","countries","coastlines","lataxis","lonaxis","frame","backplot","lakes","rivers","frontplot"],lsr={ocean:"ocean",land:"land",lakes:"lake",subunits:"subunit",countries:"country",coastlines:"coastline",rivers:"river",frame:"frame"}});var NQ=W((yR,fVe)=>{(function(e,t){typeof yR=="object"&&typeof fVe!="undefined"?t(yR):(e=e||self,t(e.topojson=e.topojson||{}))})(yR,function(e){"use strict";function t(_){return _}function r(_){if(_==null)return t;var b,S,x=_.scale[0],A=_.scale[1],T=_.translate[0],y=_.translate[1];return function(E,M){M||(b=S=0);var C=2,k=E.length,D=new Array(k);for(D[0]=(b+=E[0])*x+T,D[1]=(S+=E[1])*A+y;CT&&(T=C[0]),C[1]y&&(y=C[1])}function M(C){switch(C.type){case"GeometryCollection":C.geometries.forEach(M);break;case"Point":E(C.coordinates);break;case"MultiPoint":C.coordinates.forEach(E);break}}_.arcs.forEach(function(C){for(var k=-1,D=C.length,F;++kT&&(T=F[0]),F[1]y&&(y=F[1])});for(S in _.objects)M(_.objects[S]);return[x,A,T,y]}function n(_,b){for(var S,x=_.length,A=x-b;A<--x;)S=_[A],_[A++]=_[x],_[x]=S}function a(_,b){return typeof b=="string"&&(b=_.objects[b]),b.type==="GeometryCollection"?{type:"FeatureCollection",features:b.geometries.map(function(S){return o(_,S)})}:o(_,b)}function o(_,b){var S=b.id,x=b.bbox,A=b.properties==null?{}:b.properties,T=s(_,b);return S==null&&x==null?{type:"Feature",properties:A,geometry:T}:x==null?{type:"Feature",id:S,properties:A,geometry:T}:{type:"Feature",id:S,bbox:x,properties:A,geometry:T}}function s(_,b){var S=r(_.transform),x=_.arcs;function A(k,D){D.length&&D.pop();for(var F=x[k<0?~k:k],P=0,R=F.length;P1)x=f(_,b,S);else for(A=0,x=new Array(T=_.arcs.length);A1)for(var D=1,F=E(C[0]),P,R;DF&&(R=C[0],C[0]=C[D],C[D]=R,F=P);return C}).filter(function(M){return M.length>0})}}function v(_,b){for(var S=0,x=_.length;S>>1;_[A]=2))throw new Error("n must be \u22652");M=_.bbox||i(_);var S=M[0],x=M[1],A=M[2],T=M[3],y;b={scale:[A-S?(A-S)/(y-1):1,T-x?(T-x)/(y-1):1],translate:[S,x]}}else M=_.bbox;var E=g(b),M,C,k=_.objects,D={};function F(L){return E(L)}function P(L){var I;switch(L.type){case"GeometryCollection":I={type:"GeometryCollection",geometries:L.geometries.map(P)};break;case"Point":I={type:"Point",coordinates:F(L.coordinates)};break;case"MultiPoint":I={type:"MultiPoint",coordinates:L.coordinates.map(F)};break;default:return L}return L.id!=null&&(I.id=L.id),L.bbox!=null&&(I.bbox=L.bbox),L.properties!=null&&(I.properties=L.properties),I}function R(L){var I=0,B=1,O=L.length,$,X=new Array(O);for(X[0]=E(L[0],0);++I{"use strict";var UQ=hVe.exports={},usr=(LE(),Pt(FE)).locationmodeToLayer,csr=NQ().feature;UQ.getTopojsonName=function(e){return[e.scope.replace(/ /g,"-"),"_",e.resolution.toString(),"m"].join("")};UQ.getTopojsonPath=function(e,t){return e+=e.endsWith("/")?"":"/",`${e}${t}.json`};UQ.getTopojsonFeatures=function(e,t){var r=usr[e.locationmode],i=t.objects[r];return csr(t,i).features}});var IE=W(PE=>{"use strict";var fsr=(ra(),Pt(ia)).BADNUM;PE.calcTraceToLineCoords=function(e){for(var t=e[0].trace,r=t.connectgaps,i=[],n=[],a=0;a0&&(i.push(n),n=[])}return n.length>0&&i.push(n),i};PE.makeLine=function(e){return e.length===1?{type:"LineString",coordinates:e[0]}:{type:"MultiLineString",coordinates:e}};PE.makePolygon=function(e){if(e.length===1)return{type:"Polygon",coordinates:e};for(var t=new Array(e.length),r=0;r{"use strict";var GQ=Object.defineProperty,hsr=Object.getOwnPropertyDescriptor,dsr=Object.getOwnPropertyNames,psr=Object.prototype.hasOwnProperty,vsr=(e,t)=>{for(var r in t)GQ(e,r,{get:t[r],enumerable:!0})},gsr=(e,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of dsr(t))!psr.call(e,n)&&n!==r&&GQ(e,n,{get:()=>t[n],enumerable:!(i=hsr(t,n))||i.enumerable});return e},msr=e=>gsr(GQ({},"__esModule",{value:!0}),e),dVe={};vsr(dVe,{COUNTRIES:()=>pVe,byAlpha2:()=>_sr,byAlpha3:()=>bsr,byM49:()=>wsr,createLookup:()=>vVe,lookup:()=>ysr,lookupAlpha3:()=>xsr,sanitize:()=>VQ});gVe.exports=msr(dVe);var pVe=[{iso3:"ABW",iso2:"AW",m49:"533",name:"Aruba",aliases:["\u{1F1E6}\u{1F1FC}","country of aruba","land aruba","pais aruba"]},{iso3:"AFG",iso2:"AF",m49:"004",name:"Afghanistan",aliases:["\u{1F1E6}\u{1F1EB}","affghanistan","affghanisthan","affghaunistan","afghania","afghanisthan","afghaunistan","afghaunistaun","afgoniston","de afghanistan islami jumhuriyat","owganystan","\u0430\u0444\u0493\u043E\u043D\u0438\u0441\u0442\u043E\u043D","\u0623\u0641\u063A\u0627\u0646\u0633\u062A\u0627\u0646","\u0627\u0641\u063A\u0627\u0646\u0633\u062A\u0627\u0646","\u062F \u0627\u0641\u063A\u0627\u0646\u0633\u062A\u0627\u0646 \u0627\u0633\u0644\u0627\u0645\u06CC \u062C\u0645\u0647\u0648\u0631\u06CC\u062A"]},{iso3:"AGO",iso2:"AO",m49:"024",name:"Angola",aliases:["\u{1F1E6}\u{1F1F4}","republic of angola","republica de angola"]},{iso3:"AIA",iso2:"AI",m49:"660",name:"Anguilla",aliases:["\u{1F1E6}\u{1F1EE}","malliouhana"]},{iso3:"ALA",iso2:"AX",m49:"248",name:"\xC5land Islands",aliases:["\u{1F1E6}\u{1F1FD}","aaland","aaland islands","ahvenanmaa","aland","aland isles","aland region","alands lan","landskapet aland"]},{iso3:"ALB",iso2:"AL",m49:"008",name:"Albania",aliases:["\u{1F1E6}\u{1F1F1}","peoples republic of albania","peoples socialist republic of albania","republic of albania","republika e shqiperise","shqiperi","shqiperia","shqiperise","socialist republic of albania"]},{iso3:"AND",iso2:"AD",m49:"020",name:"Andorra",aliases:["\u{1F1E6}\u{1F1E9}","el pais dels pirineus","les valls dandorra","principality of andorra","principality of the valleys of andorra","principat dandorra","valls dandorra"]},{iso3:"ARE",iso2:"AE",m49:"784",name:"United Arab Emirates",aliases:["\u{1F1E6}\u{1F1EA}","emirates","uae","\u0627\u0644\u0625\u0645\u0627\u0631\u0627\u062A","\u0627\u0644\u0625\u0645\u0627\u0631\u0627\u062A \u0627\u0644\u0639\u0631\u0628\u064A\u0629 \u0627\u0644\u0645\u062A\u062D\u062F\u0629","\u0627\u0644\u0627\u0645\u0627\u0631\u0627\u062A","\u0627\u0644\u0627\u0645\u0627\u0631\u0627\u062A \u0627\u0644\u0639\u0631\u0628\u064A\u0629 \u0627\u0644\u0645\u062A\u062D\u062F\u0629","\u062F\u0648\u0644\u0629 \u0627\u0644\u0625\u0645\u0627\u0631\u0627\u062A \u0627\u0644\u0639\u0631\u0628\u064A\u0629 \u0627\u0644\u0645\u062A\u062D\u062F\u0629"]},{iso3:"ARG",iso2:"AR",m49:"032",name:"Argentina",aliases:["\u{1F1E6}\u{1F1F7}","argentine republic","nacion argentina","republic of argentina","republica argentina"]},{iso3:"ARM",iso2:"AM",m49:"051",name:"Armenia",aliases:["\u{1F1E6}\u{1F1F2}","hayastan","hayastani hanrapetutyun","republic of armenia","\u0570\u0561\u0575\u0561\u057D\u057F\u0561\u0576","\u0570\u0561\u0575\u0561\u057D\u057F\u0561\u0576\u056B \u0570\u0561\u0576\u0580\u0561\u057A\u0565\u057F\u0578\u0582\u0569\u0575\u0578\u0582\u0576","\u0570\u0561\u0575\u0584","\u0570\u0570"]},{iso3:"ASM",iso2:"AS",m49:"016",name:"American Samoa",aliases:["\u{1F1E6}\u{1F1F8}","amerika samoa","east samoa","samoa american","samoa united states","territory of american samoa","us samoa"]},{iso3:"ATA",iso2:"AQ",m49:"010",name:"Antarctica",aliases:["\u{1F1E6}\u{1F1F6}","antarctica treaty area"]},{iso3:"ATF",iso2:"TF",m49:"260",name:"French Southern Territories",aliases:["\u{1F1F9}\u{1F1EB}","taaf","terres australes et antarctiques francaises","terres australes francaises","terres australes francaises les","territoire des terres australes et antarctiques francaises"]},{iso3:"ATG",iso2:"AG",m49:"028",name:"Antigua and Barbuda",aliases:["\u{1F1E6}\u{1F1EC}","antigua","antigua barbuda","barbuda"]},{iso3:"AUS",iso2:"AU",m49:"036",name:"Australia",aliases:["\u{1F1E6}\u{1F1FA}","commonwealth of australia","new holland","new hollandia","nova hollandia"]},{iso3:"AUT",iso2:"AT",m49:"040",name:"Austria",aliases:["\u{1F1E6}\u{1F1F9}","osterreich","republic of austria","republik osterreich","zweite republik"]},{iso3:"AZE",iso2:"AZ",m49:"031",name:"Azerbaijan",aliases:["\u{1F1E6}\u{1F1FF}","az\u0259rbaycan","az\u0259rbaycan respublikas\u0131","republic of azerbaijan"]},{iso3:"BDI",iso2:"BI",m49:"108",name:"Burundi",aliases:["\u{1F1E7}\u{1F1EE}","gouvernement du burundi","la republique du burundi","republic of burundi","republika yu burundi","republika yuburundi","republique du burundi","repuburika yuburundi","uburundi"]},{iso3:"BEL",iso2:"BE",m49:"056",name:"Belgium",aliases:["\u{1F1E7}\u{1F1EA}","belg","belgie","belgien","belgique","kingdom of belgium","konigreich belgien","koninkrijk belgie","royaume de belgique"]},{iso3:"BEN",iso2:"BJ",m49:"204",name:"Benin",aliases:["\u{1F1E7}\u{1F1EF}","dahomey","la republique du benin","republic of benin","republique du benin"]},{iso3:"BES",iso2:"BQ",m49:"535",name:"Bonaire, Sint Eustatius and Saba",aliases:["\u{1F1E7}\u{1F1F6}","bes eilanden","bes islands","bijzondere gemeente","bonaire","bonaire saint eustatius and saba","bonaire sint eustatius en saba","caraibisch nederland","caribbean netherlands","caribisch nederland","hulanda karibense","islanan bes","netherlands antilles","saba","sint eustatius"]},{iso3:"BFA",iso2:"BF",m49:"854",name:"Burkina Faso",aliases:["\u{1F1E7}\u{1F1EB}","republic of burkina faso","republic of upper volta"]},{iso3:"BGD",iso2:"BD",m49:"050",name:"Bangladesh",aliases:["\u{1F1E7}\u{1F1E9}","bangla desh","east pakistan","gonaoprojatontri bangladesh","peoples republic of bangladesh","\u0997\u09A3\u09AA\u09CD\u09B0\u099C\u09BE\u09A4\u09A8\u09CD\u09A4\u09CD\u09B0\u09C0 \u09AC\u09BE\u0982\u09B2\u09BE\u09A6\u09C7\u09B6","\u09AC\u09BE\u0982\u09B2\u09BE \u09A6\u09C7\u09B6","\u09AC\u09BE\u0982\u09B2\u09BE\u09A6\u09C7\u09B6","\u09AC\u09BF\u09A1\u09BF"]},{iso3:"BGR",iso2:"BG",m49:"100",name:"Bulgaria",aliases:["\u{1F1E7}\u{1F1EC}","bulgarian republic","republic of bulgaria","republika bulgaria","republika bulgariya","\u0431\u0433","\u0431\u044A\u043B\u0433\u0430\u0440\u0438\u044F","\u0440\u0435\u043F\u0443\u0431\u043B\u0438\u043A\u0430 \u0431\u044A\u043B\u0433\u0430\u0440\u0438\u044F"]},{iso3:"BHR",iso2:"BH",m49:"048",name:"Bahrain",aliases:["\u{1F1E7}\u{1F1ED}","bahrein islands","kingdom of bahrain","\u0627\u0644\u0628\u062D\u0631\u064A\u0646","\u062F\u0648\u0644\u0629 \u0627\u0644\u0628\u062D\u0631\u064A\u0646","\u0645\u0645\u0644\u0643\u0629 \u0627\u0644\u0628\u062D\u0631\u064A\u0646"]},{iso3:"BHS",iso2:"BS",m49:"044",name:"Bahamas",aliases:["\u{1F1E7}\u{1F1F8}","bahama islands","bahamas the","commonwealth of the bahamas"]},{iso3:"BIH",iso2:"BA",m49:"070",name:"Bosnia and Herzegovina",aliases:["\u{1F1E7}\u{1F1E6}","bosna","bosna i hercegovina","bosnia","bosnia and hercegovina","bosnia herzegovina","hercegovina","herzegovina","\u0431\u0438\u0445","\u0431\u043E\u0441\u043D\u0430","\u0431\u043E\u0441\u043D\u0430 \u0438 \u0445\u0435\u0440\u0446\u0435\u0433\u043E\u0432\u0438\u043D\u0430","\u0431\u0445"]},{iso3:"BLM",iso2:"BL",m49:"652",name:"Saint Barth\xE9lemy",aliases:["\u{1F1E7}\u{1F1F1}","collectivite doutre mer de saint barthelemy","collectivite territoriale de saint barthelemy","collectivity of saint barthelemy","saint barth","saint barths","saint barts","saint bartz"]},{iso3:"BLR",iso2:"BY",m49:"112",name:"Belarus",aliases:["\u{1F1E7}\u{1F1FE}","republic of belarus","respublika belarus","respublika byelarus","\u0431\u0435\u043B\u0430\u0440\u0443\u0441\u043A\u0430\u044F \u0440\u044D\u0441\u043F\u0443\u0431\u043B\u0456\u043A\u0430","\u0431\u0435\u043B\u0430\u0440\u0443\u0441\u044C","\u0431\u0435\u043B\u0430\u044F \u0440\u0443\u0441\u044C","\u0431\u0435\u043B\u043E\u0440\u0443\u0441\u0441\u0438\u044F","\u0440\u0431","\u0440\u0435\u0441\u043F\u0443\u0431\u043B\u0438\u043A\u0430 \u0431\u0435\u043B\u0430\u0440\u0443\u0441\u044C","\u0440\u044D\u0441\u043F\u0443\u0431\u043B\u0456\u043A\u0430 \u0431\u0435\u043B\u0430\u0440\u0443\u0441\u044C"]},{iso3:"BLZ",iso2:"BZ",m49:"084",name:"Belize",aliases:["\u{1F1E7}\u{1F1FF}"]},{iso3:"BMU",iso2:"BM",m49:"060",name:"Bermuda",aliases:["\u{1F1E7}\u{1F1F2}","barmuda","barmuda i","barmuda isl","barmuda islands","barmudas","bermoothes","bermuda islands","bermudas","bermudian islands","colony of bermuda","devils isles","isle of devils","somers islands","somers isles","summers isles","territory of bermuda","virgineola"]},{iso3:"BOL",iso2:"BO",m49:"068",name:"Bolivia (Plurinational State of)",aliases:["\u{1F1E7}\u{1F1F4}","bolivia","bulibiya","estado plurinacional de bolivia","plurinational state of bolivia","puliwya","republic of bolivia","republica de bolivia","volivia","wuliwiya","wuliwya"]},{iso3:"BRA",iso2:"BR",m49:"076",name:"Brazil",aliases:["\u{1F1E7}\u{1F1F7}","brasil","federative republic of brazil","pindorama","republica federativa do brasil"]},{iso3:"BRB",iso2:"BB",m49:"052",name:"Barbados",aliases:["\u{1F1E7}\u{1F1E7}","barbadoes"]},{iso3:"BRN",iso2:"BN",m49:"096",name:"Brunei Darussalam",aliases:["\u{1F1E7}\u{1F1F3}","brunei","nation of brunei the abode of peace","negara brunei darussalam"]},{iso3:"BTN",iso2:"BT",m49:"064",name:"Bhutan",aliases:["\u{1F1E7}\u{1F1F9}","kingdom of bhutan","\u0F60\u0F56\u0FB2\u0F74\u0F42","\u0F60\u0F56\u0FB2\u0F74\u0F42\u0F0B\u0F61\u0F74\u0F63\u0F0B","\u0F60\u0F56\u0FB2\u0F74\u0F42\u0F61\u0F74\u0F63\u0F0B\u0F0B"]},{iso3:"BVT",iso2:"BV",m49:"074",name:"Bouvet Island",aliases:["\u{1F1E7}\u{1F1FB}"]},{iso3:"BWA",iso2:"BW",m49:"072",name:"Botswana",aliases:["\u{1F1E7}\u{1F1FC}","lefatshe la botswana","republic of botswana"]},{iso3:"CAF",iso2:"CF",m49:"140",name:"Central African Republic",aliases:["\u{1F1E8}\u{1F1EB}","centrafricaine republique","centrafrique","central africa","kodorosese ti beafrika","la republique","rep centrafrique","republique centrafricaine"]},{iso3:"CAN",iso2:"CA",m49:"124",name:"Canada",aliases:["\u{1F1E8}\u{1F1E6}","le canada"]},{iso3:"CCK",iso2:"CC",m49:"166",name:"Cocos (Keeling) Islands",aliases:["\u{1F1E8}\u{1F1E8}","cocos islands","keeling islands","territory of the cocos keeling islands"]},{iso3:"CHE",iso2:"CH",m49:"756",name:"Switzerland",aliases:["\u{1F1E8}\u{1F1ED}","confederation helvetique","confederation suisse","confederazione elvetica","confederazione svizzera","confederaziun svizra","confoederatio helvetica","conf\u0153deratio helvetica","eidgenossenschaft","elvezia","helvetie","la confederation suisse","schweiz","schweizerische eidgenossenschaft","suisse","svizra","svizzera","swiss","swiss confederation"]},{iso3:"CHL",iso2:"CL",m49:"152",name:"Chile",aliases:["\u{1F1E8}\u{1F1F1}","republic of chile","republica de chile"]},{iso3:"CHN",iso2:"CN",m49:"156",name:"China",aliases:["\u{1F1E8}\u{1F1F3}","china pr","peoples republic of china","pr china","prc","\u4E2D\u534E\u4EBA\u6C11\u5171\u548C\u56FD","\u4E2D\u56FD"]},{iso3:"CIV",iso2:"CI",m49:"384",name:"C\xF4te d'Ivoire",aliases:["\u{1F1E8}\u{1F1EE}","cote ivoire","ivory coast","republic of cote divoire","republic of ivory coast","republic of the ivory coast","republique de cote divoire"]},{iso3:"CMR",iso2:"CM",m49:"120",name:"Cameroon",aliases:["\u{1F1E8}\u{1F1F2}","cameroun","la republique du cameroun","republic of cameroon","republique du cameroun"]},{iso3:"COD",iso2:"CD",m49:"180",name:"Democratic Republic of the Congo",aliases:["\u{1F1E8}\u{1F1E9}","congo belge","congo democratic republic of the","congo kinshasa","dem rep congo","dem republic of congo","dem republic of the congo","democratic republic of congo","dr congo","drc","rd congo","rep demcongo","republic of the congo","republique democratique du congo","republique du zaire","zaire"]},{iso3:"COG",iso2:"CG",m49:"178",name:"Congo",aliases:["\u{1F1E8}\u{1F1EC}","congo brazza","congo brazzaville","congo republic","rep congo","republic of congo","republique du congo"]},{iso3:"COK",iso2:"CK",m49:"184",name:"Cook Islands",aliases:["\u{1F1E8}\u{1F1F0}","cook group","hervey islands"]},{iso3:"COL",iso2:"CO",m49:"170",name:"Colombia",aliases:["\u{1F1E8}\u{1F1F4}","republic of colombia","republica de colombia"]},{iso3:"COM",iso2:"KM",m49:"174",name:"Comoros",aliases:["\u{1F1F0}\u{1F1F2}","comores","comores archipel","etat comorien","lunion des comores","republique des comores","republique federale et islamique des comores","republique federale islamique des comores","territoire des comores","union des comores","union of the comoros","\u0625\u062A\u062D\u0627\u062F \u0627\u0644\u0642\u0645\u0631","\u0627\u062A\u062D\u0627\u062F \u062C\u0632\u0631 \u0627\u0644\u0642\u0645\u0631","\u0627\u0644\u0627\u062A\u062D\u0627\u062F \u0627\u0644\u0642\u0645\u0631\u064A","\u0627\u0644\u0642\u0645\u0631","\u062C\u0632\u0631 \u0627\u0644\u0642\u0645\u0631","\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u0627\u0644\u0642\u0645\u0631 \u0627\u0644\u0645\u062A\u062D\u062F\u0629","\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u062C\u0632\u0631 \u0627\u0644\u0642\u0645\u0631 \u0627\u0644\u0627\u062A\u062D\u0627\u062F\u064A\u0629 \u0627\u0644\u0625\u0633\u0644\u0627\u0645\u064A\u0629","\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u062C\u0632\u0631\u0627\u0644\u0642\u0645\u0631 \u0627\u0644\u0645\u062A\u062D\u062F\u0629"]},{iso3:"CPV",iso2:"CV",m49:"132",name:"Cabo Verde",aliases:["\u{1F1E8}\u{1F1FB}","cape verde","cape verde islands","kab verd","kabu verdi","kauberdi","republic of cabo verde","republic of cape verde","republica de cabo verde"]},{iso3:"CRI",iso2:"CR",m49:"188",name:"Costa Rica",aliases:["\u{1F1E8}\u{1F1F7}","republic of costa rica","republica de costa rica"]},{iso3:"CUB",iso2:"CU",m49:"192",name:"Cuba",aliases:["\u{1F1E8}\u{1F1FA}","isla juana","republic of cuba","republica de cuba"]},{iso3:"CUW",iso2:"CW",m49:"531",name:"Cura\xE7ao",aliases:["\u{1F1E8}\u{1F1FC}","corsou","corsouw","corsow","country of curacao","curacau","curacoa","curazao","cura\u03C2ao","curocao","island territory of curacao","korsou","land curacao","pais korsou"]},{iso3:"CXR",iso2:"CX",m49:"162",name:"Christmas Island",aliases:["\u{1F1E8}\u{1F1FD}","christmas island other territories","christmas island other territories australia","territory of christmas island"]},{iso3:"CYM",iso2:"KY",m49:"136",name:"Cayman Islands",aliases:["\u{1F1F0}\u{1F1FE}","caymans"]},{iso3:"CYP",iso2:"CY",m49:"196",name:"Cyprus",aliases:["\u{1F1E8}\u{1F1FE}","greek administration of southern cyprus","greek cypriot state","guney k\u0131br\u0131s","guney k\u0131br\u0131s rum cumhuriyeti","guney k\u0131br\u0131s rum kesimi","guney k\u0131br\u0131s rum yonetimi","kipriaki dhimokratia","k\u0131br\u0131s","k\u0131br\u0131s cumhuriyeti","k\u0131br\u0131s rum kesimi","kypriaki dimokratia","kypros","republic of cyprus","\u03BA\u03C5\u03C0\u03C1\u03B9\u03B1\u03BA\u03B7 \u03B4\u03B7\u03BC\u03BF\u03BA\u03C1\u03B1\u03C4\u03B9\u03B1","\u03BA\u03C5\u03C0\u03C1\u03BF\u03C2"]},{iso3:"CZE",iso2:"CZ",m49:"203",name:"Czechia",aliases:["\u{1F1E8}\u{1F1FF}","ceska republika","ceske kraje","ceske uzemi","ceske zeme","cesko","cr","czech republic"]},{iso3:"DEU",iso2:"DE",m49:"276",name:"Germany",aliases:["\u{1F1E9}\u{1F1EA}","br deutschland","bundesrepublik","bundesrepublik deutschland","deutschland","federal republic of germany"]},{iso3:"DJI",iso2:"DJ",m49:"262",name:"Djibouti",aliases:["\u{1F1E9}\u{1F1EF}","la republique de djibouti","republic of djibouti","republique de djibouti","\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u062C\u064A\u0628\u0648\u062A\u064A","\u062C\u064A\u0628\u0648\u062A\u064A"]},{iso3:"DMA",iso2:"DM",m49:"212",name:"Dominica",aliases:["\u{1F1E9}\u{1F1F2}","commonwealth of dominica","island of dominica","waitu kubuli"]},{iso3:"DNK",iso2:"DK",m49:"208",name:"Denmark",aliases:["\u{1F1E9}\u{1F1F0}","dania","danmark","denmark proper","kongeriget danmark","metropolitan denmark"]},{iso3:"DOM",iso2:"DO",m49:"214",name:"Dominican Republic",aliases:["\u{1F1E9}\u{1F1F4}","dominicana","domrep","haiti espanol","quisqueya","republica de santo domingo","republica dominicana","santo domingo"]},{iso3:"DZA",iso2:"DZ",m49:"012",name:"Algeria",aliases:["\u{1F1E9}\u{1F1FF}","peoples democratic republic of algeria","\u0627\u0644\u062C\u0632\u0627\u0626\u0631","\u0627\u0644\u062C\u0632\u0627\u064A\u0631","\u0627\u0644\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u0627\u0644\u062C\u0632\u0627\u0626\u0631\u064A\u0629 \u0627\u0644\u062F\u064A\u0645\u0642\u0631\u0627\u0637\u064A\u0629 \u0627\u0644\u0634\u0639\u0628\u064A\u0629","\u0627\u0644\u062F\u0632\u0627\u064A\u0631","\u062F\u0632\u0627\u064A\u0631"]},{iso3:"ECU",iso2:"EC",m49:"218",name:"Ecuador",aliases:["\u{1F1EA}\u{1F1E8}","ecuadorian state","el ecuador","estado ecuatoriano","republic of ecuador","republic of equator","republic of the equator","republica del ecuador"]},{iso3:"EGY",iso2:"EG",m49:"818",name:"Egypt",aliases:["\u{1F1EA}\u{1F1EC}","arab rep egypt","arab republic of egypt","rep egypt","republic of egypt","\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u0645\u0635\u0631 \u0627\u0644\u0639\u0631\u0628\u064A\u0629","\u0645\u0635\u0631"]},{iso3:"ERI",iso2:"ER",m49:"232",name:"Eritrea",aliases:["\u{1F1EA}\u{1F1F7}","ertra","hagere ertra","hagere iertra","iertra","iritriya","state of eritrea","\u0625\u0631\u062A\u0631\u064A\u0627","\u0625\u0631\u064A\u062A\u0631\u064A\u0627","\u0627\u0631\u062A\u0631\u064A\u0627","\u0627\u0631\u062A\u064A\u0631\u064A\u0627","\u0627\u0631\u064A\u062A\u0631\u064A\u0627","\u062F\u0648\u0644\u0629 \u0625\u0631\u062A\u0631\u064A\u0627","\u062F\u0648\u0644\u0629 \u0625\u0631\u064A\u062A\u0631\u064A\u0627","\u1203\u1308\u1228 \u12A4\u122D\u1275\u122B","\u12A4\u122D\u1275\u122B"]},{iso3:"ESH",iso2:"EH",m49:"732",name:"Western Sahara",aliases:["\u{1F1EA}\u{1F1ED}","southern provinces","spanish sahara","west sahara"]},{iso3:"ESP",iso2:"ES",m49:"724",name:"Spain",aliases:["\u{1F1EA}\u{1F1F8}","espana","estado espanol","kingdom of spain","reino de espana"]},{iso3:"EST",iso2:"EE",m49:"233",name:"Estonia",aliases:["\u{1F1EA}\u{1F1EA}","eesti","eesti noukogude sotsialistlik vabariik","eesti vabariik","estland","republic of estonia"]},{iso3:"ETH",iso2:"ET",m49:"231",name:"Ethiopia",aliases:["\u{1F1EA}\u{1F1F9}","federal democratic republic of ethiopia","ityopiya","yeityopiya federalawi demokrasiyawi ripeblik","yeityopiya hizbawi dimokrasiyawi ripublik","\u12A2\u1275\u12EE\u1335\u12EB","\u12E8\u12A2\u1275\u12EE\u1335\u12EB \u134C\u12F4\u122B\u120B\u12CA \u12F4\u121E\u12AD\u122B\u1232\u12EB\u12CA \u122A\u1350\u1265\u120A\u12AD"]},{iso3:"FIN",iso2:"FI",m49:"246",name:"Finland",aliases:["\u{1F1EB}\u{1F1EE}","republic of finland","republiken finland","suomen tasavalta","suomi"]},{iso3:"FJI",iso2:"FJ",m49:"242",name:"Fiji",aliases:["\u{1F1EB}\u{1F1EF}","fiji ganarajya","matanitu ko viti","matanitu tugalala o viti","republic of fiji","republic of the fiji islands","viti"]},{iso3:"FLK",iso2:"FK",m49:"238",name:"Falkland Islands (Malvinas)",aliases:["\u{1F1EB}\u{1F1F0}","colony of the falkland islands","falkland islands","falklands","islas malvinas","malvinas","malvinas islands"]},{iso3:"FRA",iso2:"FR",m49:"250",name:"France",aliases:["\u{1F1EB}\u{1F1F7}","fr","french republic","la france","la republique francaise","lhexagone","republique francaise"]},{iso3:"FRO",iso2:"FO",m49:"234",name:"Faroe Islands",aliases:["\u{1F1EB}\u{1F1F4}","faer oer","f\xE6r\xF8","faeroe is","faeroe islands","faeroe isles","f\xE6r\xF8erne","faeroes","far oer","faroe island","faroe isles","faroes","faroese islands","f\xF8roya","f\xF8royar","f\xF8royum"]},{iso3:"FSM",iso2:"FM",m49:"583",name:"Micronesia (Federated States of)",aliases:["\u{1F1EB}\u{1F1F2}","fed sts micronesia","fed sts of micronesia","federated states of micronesia","federated states of micronesia fsm","micronesia"]},{iso3:"GAB",iso2:"GA",m49:"266",name:"Gabon",aliases:["\u{1F1EC}\u{1F1E6}","gabonese republic","la republique gabonaise","le gabon","republique du gabon","republique gabonaise"]},{iso3:"GBR",iso2:"GB",m49:"826",name:"United Kingdom of Great Britain and Northern Ireland",aliases:["\u{1F1EC}\u{1F1E7}","britain","england","great britain","great britain and northern ireland","northern ireland","scotland","uk","united kingdom","wales"]},{iso3:"GEO",iso2:"GE",m49:"268",name:"Georgia",aliases:["\u{1F1EC}\u{1F1EA}","georgia country","republic of georgia","sakartvelo","\u049B\u044B\u0440\u04AD\u0442\u04D9\u044B\u043B\u0430","\u10E1\u10D0\u10E5\u10D0\u10E0\u10D7\u10D5\u10D4\u10DA\u10DD","\u10E1\u10D0\u10E5\u10D0\u10E0\u10D7\u10D5\u10D4\u10DA\u10DD\u10E1 \u10E0\u10D4\u10E1\u10DE\u10E3\u10D1\u10DA\u10D8\u10D9\u10D0"]},{iso3:"GGY",iso2:"GG",m49:"831",name:"Guernsey",aliases:["\u{1F1EC}\u{1F1EC}","bailiwick of guernsey","bailliage de guernesey","bailliage de guernesi","giernesi","great britain guernsey","guernesey","lisia"]},{iso3:"GHA",iso2:"GH",m49:"288",name:"Ghana",aliases:["\u{1F1EC}\u{1F1ED}","republic of ghana"]},{iso3:"GIB",iso2:"GI",m49:"292",name:"Gibraltar",aliases:["\u{1F1EC}\u{1F1EE}","rock of gibraltar"]},{iso3:"GIN",iso2:"GN",m49:"324",name:"Guinea",aliases:["\u{1F1EC}\u{1F1F3}","guinee","guinee conakry","republic of guinea","republique de guinee"]},{iso3:"GLP",iso2:"GP",m49:"312",name:"Guadeloupe",aliases:["\u{1F1EC}\u{1F1F5}"]},{iso3:"GMB",iso2:"GM",m49:"270",name:"Gambia",aliases:["\u{1F1EC}\u{1F1F2}","islamic republic of the gambia","republic of the gambia"]},{iso3:"GNB",iso2:"GW",m49:"624",name:"Guinea-Bissau",aliases:["\u{1F1EC}\u{1F1FC}","guine bissau","republic of guinea bissau","republica da guine bissau"]},{iso3:"GNQ",iso2:"GQ",m49:"226",name:"Equatorial Guinea",aliases:["\u{1F1EC}\u{1F1F6}","guine equatorial","guinea ecuatorial","guinea espanola","guinee equat","guinee equatoriale","la republique de guinee equatoriale","posesiones espanolas del golfo de guinea","provincia de la guinea ecuatorial","republic of equatorial guinea","republica da guine equatorial","republica de guinea ecuatorial","territorios espanoles del golfo de guinea"]},{iso3:"GRC",iso2:"GR",m49:"300",name:"Greece",aliases:["\u{1F1EC}\u{1F1F7}","ellada","ellas","elliniki dhimokratia","elliniki dimokratia","greek republic","hellas","hellas greece","hellenic republic","vasilion tis ellados","\u03B4\u03B7\u03BC\u03BF\u03BA\u03C1\u03B1\u03C4\u03B9\u03B1 \u03C4\u03B7\u03C2 \u03B5\u03BB\u03BB\u03B1\u03B4\u03B1\u03C2","\u03B4\u03B7\u03BC\u03BF\u03BA\u03C1\u03B1\u03C4\u03B9\u03B1 \u03C4\u03B7\u03C2 \u03B5\u03BB\u03BB\u03B1\u03B4\u03BF\u03C2","\u03B5\u03BB\u03BB\u03B1\u03B4\u03B1","\u03B5\u03BB\u03BB\u03B1\u03C2","\u03B5\u03BB\u03BB\u03B1\u03C2 \u03B5\u03BB\u03BB\u03B1\u03B4\u03B1","\u03B5\u03BB\u03BB\u03B7\u03BD\u03B9\u03BA\u03B7 \u03B4\u03B7\u03BC\u03BF\u03BA\u03C1\u03B1\u03C4\u03B9\u03B1"]},{iso3:"GRD",iso2:"GD",m49:"308",name:"Grenada",aliases:["\u{1F1EC}\u{1F1E9}"]},{iso3:"GRL",iso2:"GL",m49:"304",name:"Greenland",aliases:["\u{1F1EC}\u{1F1F1}","kalaallit nunaat"]},{iso3:"GTM",iso2:"GT",m49:"320",name:"Guatemala",aliases:["\u{1F1EC}\u{1F1F9}","republic of guatemala","republica de guatemala"]},{iso3:"GUF",iso2:"GF",m49:"254",name:"French Guiana",aliases:["\u{1F1EC}\u{1F1EB}","fr 973","guiana","guiana france","guyane","guyane francaise","gwiyann","gwiyann franse","lagwiyann"]},{iso3:"GUM",iso2:"GU",m49:"316",name:"Guam",aliases:["\u{1F1EC}\u{1F1FA}","guahan","guam usa","islan guahan","island of guam","territory of guam"]},{iso3:"GUY",iso2:"GY",m49:"328",name:"Guyana",aliases:["\u{1F1EC}\u{1F1FE}","co operative republic of guyana","republic of guyana"]},{iso3:"HKG",iso2:"HK",m49:"344",name:"Hong Kong",aliases:["\u{1F1ED}\u{1F1F0}","hksar","hong kong sar","hong kong special administrative region","hong kong special administrative region of the peoples republic of china","hongkong"]},{iso3:"HMD",iso2:"HM",m49:"334",name:"Heard Island and McDonald Islands",aliases:["\u{1F1ED}\u{1F1F2}","heard","heard & mcdonald islands","heard and macdonald islands","heard island","himi","mcdonald","mcdonald island","territory of heard island and mcdonald islands"]},{iso3:"HND",iso2:"HN",m49:"340",name:"Honduras",aliases:["\u{1F1ED}\u{1F1F3}","guaymuras","higueras","honduran republic","republic of honduras","republica de honduras"]},{iso3:"HRV",iso2:"HR",m49:"191",name:"Croatia",aliases:["\u{1F1ED}\u{1F1F7}","hrvatska","republic of croatia","republika hrvatska"]},{iso3:"HTI",iso2:"HT",m49:"332",name:"Haiti",aliases:["\u{1F1ED}\u{1F1F9}","ayiti","haitian republic","la republique dhaiti","repiblik d ayiti","republic of haiti","republique dhaiti"]},{iso3:"HUN",iso2:"HU",m49:"348",name:"Hungary",aliases:["\u{1F1ED}\u{1F1FA}","a magyar koztarsasag","a magyar nepkoztarsasag","harmadik magyar koztarsasag","magyar koztarsasag","magyar nepkoztarsasag","magyarorszag","mo"]},{iso3:"IDN",iso2:"ID",m49:"360",name:"Indonesia",aliases:["\u{1F1EE}\u{1F1E9}","negara kesatuan republik indonesia","nkri","republic of indonesia","republik indonesia"]},{iso3:"IMN",iso2:"IM",m49:"833",name:"Isle of Man",aliases:["\u{1F1EE}\u{1F1F2}","ellan vannin","i man","i mann","i mannin","isle of mann","mann","mannin","manx"]},{iso3:"IND",iso2:"IN",m49:"356",name:"India",aliases:["\u{1F1EE}\u{1F1F3}","al hind","bharat","bharat ganarajya","bharata","bharatvarsh","hindoostan","hindustan","indostan","republic of india","tenjiku","tianzhu","\u0906\u0930\u094D\u092F\u0935\u0930\u094D\u0924","\u0907\u0902\u0921\u093F\u092F\u093E","\u0907\u0923\u094D\u0921\u093F\u092F\u093E","\u092D\u093E\u0930\u0924","\u092D\u093E\u0930\u0924 \u0917\u0923\u0930\u093E\u091C\u094D\u092F","\u092D\u093E\u0930\u0924\u0935\u0930\u094D\u0937","\u0939\u093F\u0902\u0926\u0941\u0938\u094D\u0924\u093E\u0928","\u0939\u093F\u0928\u094D\u0926\u0941\u0938\u094D\u0924\u093E\u0928","\u0939\u093F\u0928\u094D\u0926\u094B\u0938\u094D\u0924\u093E\u0928"]},{iso3:"IOT",iso2:"IO",m49:"086",name:"British Indian Ocean Territory",aliases:["\u{1F1EE}\u{1F1F4}","biot"]},{iso3:"IRL",iso2:"IE",m49:"372",name:"Ireland",aliases:["\u{1F1EE}\u{1F1EA}","eire","hibernia","irish republic","poblacht na heireann","republic of ireland","southern ireland"]},{iso3:"IRN",iso2:"IR",m49:"364",name:"Iran (Islamic Republic of)",aliases:["\u{1F1EE}\u{1F1F7}","iran","islamic rep iran","islamic republic of iran","persia","\u0627\u06CC\u0631\u0627\u0646","\u0627\u06CC\u0631\u0627\u0646\u0632\u0645\u06CC\u0646","\u067E\u0627\u0631\u0633","\u062C\u0645\u0647\u0648\u0631\u06CC \u0627\u0633\u0644\u0627\u0645\u06CC \u0627\u064A\u0631\u0627\u0646","\u062C\u0645\u0647\u0648\u0631\u06CC \u0627\u0633\u0644\u0627\u0645\u06CC \u0627\u06CC\u0631\u0627\u0646","\u0643\u0634\u0648\u0631 \u0634\u0627\u0647\u0646\u0634\u0627\u0647\u06CC \u0627\u064A\u0631\u0627\u0646"]},{iso3:"IRQ",iso2:"IQ",m49:"368",name:"Iraq",aliases:["\u{1F1EE}\u{1F1F6}","eraq","iraqe","komar i eraq","republic of iraq","\u0627\u0644\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u0627\u0644\u0639\u0631\u0627\u0642\u064A\u0629","\u0627\u0644\u0639\u0631\u0627\u0642","\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u0627\u0644\u0639\u0631\u0627\u0642","\u0639\u0631\u0627\u0642","\u0639\u06CE\u0631\u0627\u0642"]},{iso3:"ISL",iso2:"IS",m49:"352",name:"Iceland",aliases:["\u{1F1EE}\u{1F1F8}","icelandic republic","island","ly\xF0veldi\xF0 island","republic of iceland","ysland"]},{iso3:"ISR",iso2:"IL",m49:"376",name:"Israel",aliases:["\u{1F1EE}\u{1F1F1}","erez yisrael","medinat yisrael","state of israel","yisrael","\u05D9\u05E9\u05E8\u05D0\u05DC","\u05DE\u05D3\u05D9\u05E0\u05EA \u05D9\u05E9\u05E8\u05D0\u05DC"]},{iso3:"ITA",iso2:"IT",m49:"380",name:"Italy",aliases:["\u{1F1EE}\u{1F1F9}","il bel paese","italia","italian republic","repubblica italiana","republic of italy"]},{iso3:"JAM",iso2:"JM",m49:"388",name:"Jamaica",aliases:["\u{1F1EF}\u{1F1F2}","commonwealth of jamaica","jamieka","jomieka","jumieka"]},{iso3:"JEY",iso2:"JE",m49:"832",name:"Jersey",aliases:["\u{1F1EF}\u{1F1EA}","bailliage de jerri","bailliage de jersey","balliwick of jersey","i iersey","i jersey","iersey","iersey i","isle of jersey","jerri","jersey i","jersey island"]},{iso3:"JOR",iso2:"JO",m49:"400",name:"Jordan",aliases:["\u{1F1EF}\u{1F1F4}","giordania","hashemite kingdom of jordan","kingdom of jordan","state of jordan","yarden","\u0627\u0644\u0623\u0631\u062F\u0646","\u0627\u0644\u0627\u0631\u062F\u0646","\u0627\u0644\u0645\u0645\u0644\u0643\u0629 \u0627\u0644\u0623\u0631\u062F\u0646\u064A\u0629 \u0627\u0644\u0647\u0627\u0634\u0645\u064A\u0629","\u0627\u0644\u0645\u0645\u0644\u0643\u0629 \u0627\u0644\u0627\u0631\u062F\u0646\u064A\u0629 \u0627\u0644\u0647\u0627\u0634\u0645\u064A\u0629"]},{iso3:"JPN",iso2:"JP",m49:"392",name:"Japan",aliases:["\u{1F1EF}\u{1F1F5}","state of japan","\u3042\u304D\u3064\u3057\u307E","\u304A\u304A\u3084\u3057\u307E","\u3057\u304D\u3057\u307E","\u30B8\u30E3\u30D1\u30F3","\u3057\u3093\u3057\u3085\u3046","\u306B\u3063\u307D\u3093","\u306B\u3063\u307D\u3093\u3053\u304F","\u306B\u307B\u3093","\u306B\u307B\u3093\u3053\u304F","\u3072\u3044\u305A\u308B\u304F\u306B","\u3075\u305D\u3046","\u5927\u516B\u5DDE","\u6276\u6728\u4E4B\u5730","\u6276\u6851","\u6276\u6851\u56FD","\u6577\u5CF6","\u65E5\u51FA\u308B\u56FD","\u65E5\u672C","\u6991\u6728\u4E4B\u5730","\u745E\u7A42\u56FD","\u795E\u5DDE","\u79CB\u6D25\u5CF6","\u8466\u539F\u4E2D\u56FD"]},{iso3:"KAZ",iso2:"KZ",m49:"398",name:"Kazakhstan",aliases:["\u{1F1F0}\u{1F1FF}","qazaqstan","qazaqstan respublikasy","republic of kazakhstan","\u043A\u0430\u0437\u0430\u0445\u0441\u0442\u0430\u043D","\u049B\u0430\u0437\u0430\u049B\u0441\u0442\u0430\u043D","\u049B\u0430\u0437\u0430\u049B\u0441\u0442\u0430\u043D \u0440\u0435\u0441\u043F\u0443\u0431\u043B\u0438\u043A\u0430\u0441\u044B","\u0440\u0435\u0441\u043F\u0443\u0431\u043B\u0438\u043A\u0430 \u043A\u0430\u0437\u0430\u0445\u0441\u0442\u0430\u043D","\u0440\u043A"]},{iso3:"KEN",iso2:"KE",m49:"404",name:"Kenya",aliases:["\u{1F1F0}\u{1F1EA}","jamhuri ya kenya","republic of kenya"]},{iso3:"KGZ",iso2:"KG",m49:"417",name:"Kyrgyzstan",aliases:["\u{1F1F0}\u{1F1EC}","kyrgyz republic","kyrgyz respublikasy","kyrgyzstan respublikasy","\u043A\u0440","\u043A\u044B\u0440\u0433\u044B\u0437 \u0440\u0435\u0441\u043F\u0443\u0431\u043B\u0438\u043A\u0430\u0441\u044B","\u043A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D"]},{iso3:"KHM",iso2:"KH",m49:"116",name:"Cambodia",aliases:["\u{1F1F0}\u{1F1ED}","camboya","campuchia","kambodzha","kamboja","kampuchea","kingdom of cambodia","\u1780\u1798\u17D2\u1796\u17BB\u1787\u17B6","\u1796\u17D2\u179A\u17C7\u179A\u17B6\u1787\u17B6\u178E\u17B6\u1785\u1780\u17D2\u179A\u1780\u1798\u17D2\u1796\u17BB\u1787\u17B6"]},{iso3:"KIR",iso2:"KI",m49:"296",name:"Kiribati",aliases:["\u{1F1F0}\u{1F1EE}","republic of kiribati"]},{iso3:"KNA",iso2:"KN",m49:"659",name:"Saint Kitts and Nevis",aliases:["\u{1F1F0}\u{1F1F3}","federation of saint christopher and nevis","federation of saint kitts and nevis","kitts & nevis","nevis","saint christopher","saint christopher and nevis","saint kitts"]},{iso3:"KOR",iso2:"KR",m49:"410",name:"Republic of Korea",aliases:["\u{1F1F0}\u{1F1F7}","korea","korea republic","korea republic of","korea south","rep korea","s korea","south korea","taehan minguk","\uB0A8\uC870\uC120","\uB0A8\uD55C","\uB300\uD55C","\uB300\uD55C\uBBFC\uAD6D","\uCF54\uB9AC\uC544","\uD55C\uAD6D"]},{iso3:"KWT",iso2:"KW",m49:"414",name:"Kuwait",aliases:["\u{1F1F0}\u{1F1FC}","state of kuwait","\u0627\u0644\u0643\u0648\u064A\u062A","\u062F\u0648\u0644\u0629 \u0627\u0644\u0643\u0648\u064A\u062A"]},{iso3:"LAO",iso2:"LA",m49:"418",name:"Lao People's Democratic Republic",aliases:["\u{1F1F1}\u{1F1E6}","laos","sathalanalat paxathipatai paxaxon lao","\u0EAA\u0EB2\u0E97\u0EB2\u0EA5\u0EB0\u0E99\u0EB0\u0EA5\u0EB1\u0E94 \u0E9B\u0EB0\u0E8A\u0EB2\u0E97\u0EB4\u0E9B\u0EB0\u0EC4\u0E95 \u0E9B\u0EB0\u0E8A\u0EB2\u0E8A\u0EBB\u0E99\u0EA5\u0EB2\u0EA7","\u0E9B\u0EB0\u0EC0\u0E97\u0E94\u0EA5\u0EB2\u0EA7","\u0EA5\u0EB2\u0EA7"]},{iso3:"LBN",iso2:"LB",m49:"422",name:"Lebanon",aliases:["\u{1F1F1}\u{1F1E7}","lebanese republic","republic of lebanon","state of lebanon","\u0627\u0644\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u0627\u0644\u0644\u0628\u0646\u0627\u0646\u064A\u0629","\u0644\u0628\u0646\u0627\u0646"]},{iso3:"LBR",iso2:"LR",m49:"430",name:"Liberia",aliases:["\u{1F1F1}\u{1F1F7}","liber","republic of liberia"]},{iso3:"LBY",iso2:"LY",m49:"434",name:"Libya",aliases:["\u{1F1F1}\u{1F1FE}","state of libya","\u0627\u0644\u062C\u0645\u0627\u0647\u064A\u0631\u064A\u0629 \u0627\u0644\u0639\u0631\u0628\u064A\u0629 \u0627\u0644\u0644\u064A\u0628\u064A\u0629 \u0627\u0644\u0634\u0639\u0628\u064A\u0629 \u0627\u0644\u0625\u0634\u062A\u0631\u0627\u0643\u064A\u0629","\u0627\u0644\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u0627\u0644\u0644\u064A\u0628\u064A\u0629","\u0627\u0644\u0644\u064A\u0628\u064A","\u0627\u0644\u0644\u064A\u0628\u064A\u0629","\u0627\u0644\u0644\u064A\u0628\u064A\u0646","\u062F\u0648\u0644\u0629 \u0644\u064A\u0628\u064A\u0627","\u0644\u064A\u0628\u0628\u064A\u0627","\u0644\u064A\u0628\u064A","\u0644\u064A\u0628\u064A\u0627","\u0644\u064A\u0628\u064A\u0629"]},{iso3:"LCA",iso2:"LC",m49:"662",name:"Saint Lucia",aliases:["\u{1F1F1}\u{1F1E8}","hewanorra","iyonola"]},{iso3:"LIE",iso2:"LI",m49:"438",name:"Liechtenstein",aliases:["\u{1F1F1}\u{1F1EE}","furstentum lichtenstein","furstentum liechtenstein","principality of liechtenstein"]},{iso3:"LKA",iso2:"LK",m49:"144",name:"Sri Lanka",aliases:["\u{1F1F1}\u{1F1F0}","ceylan","ceylon","democratic socialist republic of sri lanka","ilankaic cananayaka cocalicak kutiyarcu","lankava","prajatantravadi samajavadi janarajaya sri lanka","serendib","srilanka","taprobane","\u0B87\u0BB2\u0B99\u0BCD\u0B95\u0BC8","\u0B87\u0BB2\u0B99\u0BCD\u0B95\u0BC8 \u0B9A\u0BA9\u0BA8\u0BBE\u0BAF\u0B95 \u0B9A\u0BCB\u0B9A\u0BB2\u0BBF\u0B9A\u0B95\u0BCD \u0B95\u0BC1\u0B9F\u0BBF\u0BAF\u0BB0\u0B9A\u0BC1","\u0B87\u0BB2\u0B99\u0BCD\u0B95\u0BC8 \u0B9A\u0BA9\u0BA8\u0BBE\u0BAF\u0B95 \u0B9A\u0BCB\u0BB7\u0BB2\u0BBF\u0B9A\u0B95\u0BCD \u0B95\u0BC1\u0B9F\u0BBF\u0BAF\u0BB0\u0B9A\u0BC1","\u0B88\u0BB4\u0BAE\u0BCD","\u0B9A\u0BBF\u0BB2\u0BCB\u0BA9\u0BCD","\u0DBD\u0D82\u0D9A\u0DCF\u0DC0","\u0DC1\u0DCA\u0DBB\u0DD3 \u0DBD\u0D82\u0D9A\u0DCF \u0DB4\u0DCA\u0DBB\u0DA2\u0DCF\u0DAD\u0DB1\u0DCA\u0DAD\u0DCA\u0DBB\u0DC0\u0DCF\u0DAF\u0DD3 \u0DC3\u0DB8\u0DCF\u0DA2\u0DC0\u0DCF\u0DAF\u0DD3 \u0DA2\u0DB1\u0DBB\u0DA2\u0DBA","\u0DC1\u0DCA\u0DBB\u0DD3 \u0DBD\u0D82\u0D9A\u0DCF\u0DC0","\u0DC1\u0DCA\u200D\u0DBB\u0DD3 \u0DBD\u0D82\u0D9A\u0DCF\u0DC0"]},{iso3:"LSO",iso2:"LS",m49:"426",name:"Lesotho",aliases:["\u{1F1F1}\u{1F1F8}","kingdom of lesotho","mmuso wa lesotho","mountain kingdom"]},{iso3:"LTU",iso2:"LT",m49:"440",name:"Lithuania",aliases:["\u{1F1F1}\u{1F1F9}","lietuva","lietuvos respublika","republic of lithuania"]},{iso3:"LUX",iso2:"LU",m49:"442",name:"Luxembourg",aliases:["\u{1F1F1}\u{1F1FA}","grand duche","grand duche de luxembourg","grand duchy of luxembourg","gro\xDFherzogtum luxemburg","groussherzogtum letzebuerg","le grand duche de luxembourg","letzebuerg","letzebuerger land","lux","luxemburg"]},{iso3:"LVA",iso2:"LV",m49:"428",name:"Latvia",aliases:["\u{1F1F1}\u{1F1FB}","latveja","latvejas republika","latvian republic","latvija","latvijas republika","letm\u043E","letm\u043E vabam\u043E","republic of latvia"]},{iso3:"MAC",iso2:"MO",m49:"446",name:"Macao",aliases:["\u{1F1F2}\u{1F1F4}","aomen","macao sar","macao special administrative region","macao special administrative region of the peoples republic of china","macau","macau rae da china","macau sar","macau special administrative region","macau special administrative region of the peoples republic of china","raem","regiao administrativa especial de macau","regiao administrativa especial de macau da republica popular da china","\u4E2D\u570B\u6FB3\u9580\u7279\u5225\u884C\u653F\u5340","\u6FB3\u9580"]},{iso3:"MAF",iso2:"MF",m49:"663",name:"Saint Martin (French Part)",aliases:["\u{1F1F2}\u{1F1EB}","collectivite de saint martin","collectivity of saint martin","saint martin","saint martin antilles francaises","saint martin france"]},{iso3:"MAR",iso2:"MA",m49:"504",name:"Morocco",aliases:["\u{1F1F2}\u{1F1E6}","kingdom of morocco","\u0627\u0644\u0645\u063A\u0631\u0628","\u0627\u0644\u0645\u0645\u0644\u0643\u0629 \u0627\u0644\u0645\u063A\u0631\u0628\u064A\u0629","\u2D30\u2D4E\u2D53\u2D54 \u2D4F \u2D61\u2D30\u2D3D\u2D53\u2D5B","\u2D30\u2D4E\u2D55\u2D55\u2D53\u2D3D","\u2D4D\u2D4E\u2D55\u2D55\u2D53\u2D3D","\u2D4D\u2D4E\u2D56\u2D54\u2D49\u2D31","\u2D5C\u2D30\u2D33\u2D4D\u2D37\u2D49\u2D5C \u2D4F \u2D4D\u2D4E\u2D56\u2D54\u2D49\u2D31"]},{iso3:"MCO",iso2:"MC",m49:"492",name:"Monaco",aliases:["\u{1F1F2}\u{1F1E8}","fort hercule","la principaute de monaco","monaco rattachee au district de menton en 1793","munegu","principality and diocese of monaco","principality of monaco","principatu de munegu","principaute de monaco"]},{iso3:"MDA",iso2:"MD",m49:"498",name:"Republic of Moldova",aliases:["\u{1F1F2}\u{1F1E9}","moldavia","moldova","moldova republic of","moldova republica","r moldova","rep moldova","republica moldova","\u043C\u043E\u043B\u0434\u043E\u0432\u0430"]},{iso3:"MDG",iso2:"MG",m49:"450",name:"Madagascar",aliases:["\u{1F1F2}\u{1F1EC}","la republique de madagascar","madagasikara","repoblikani madagasikara","republic of madagascar","republique de madagascar"]},{iso3:"MDV",iso2:"MV",m49:"462",name:"Maldives",aliases:["\u{1F1F2}\u{1F1FB}","dhivehi raajjeyge jumhooriyyaa","republic of maldives","\u078B\u07A8\u0788\u07AC\u0780\u07A8 \u0783\u07A7\u0787\u07B0\u0796\u07AC","\u078B\u07A8\u0788\u07AC\u0780\u07A8\u0783\u07A7\u0787\u07B0\u0796\u07AC","\u078B\u07A8\u0788\u07AC\u0780\u07A8\u0783\u07A7\u0787\u07B0\u0796\u07AD\u078E\u07AC \u0796\u07AA\u0789\u07AA\u0780\u07AB\u0783\u07A8\u0787\u07B0\u0794\u07A7","\u078B\u07A8\u0788\u07AC\u0780\u07A8\u0783\u07A7\u0787\u07B0\u0796\u07AD\u078E\u07AC \u0796\u07AA\u0789\u07B0\u0780\u07AB\u0783\u07A8\u0787\u07B0\u0794\u07A7"]},{iso3:"MEX",iso2:"MX",m49:"484",name:"Mexico",aliases:["\u{1F1F2}\u{1F1FD}","estados unidos mejicanos","estados unidos mexicanos","mejico","mexican republic","mexican united states","mexihco","mexihko","mexika sentik wexteyowalko","mexiko","mexko","mexko axkayotl","mexko tlalli","nueva espana","republica mejicana","republica mexicana","united mexican states","united states of mexico"]},{iso3:"MHL",iso2:"MH",m49:"584",name:"Marshall Islands",aliases:["\u{1F1F2}\u{1F1ED}","aelon kein ad","aolepan aorokin majel","jolet jen anij","majel","majol","republic of the marshall islands"]},{iso3:"MKD",iso2:"MK",m49:"807",name:"North Macedonia",aliases:["\u{1F1F2}\u{1F1F0}","former yugoslav republic of macedonia","fyr macedonia","fyrom","irjm","ish republika jugosllave e maqedonise","macedonia","macedonia former yugoslav republic of","macedonia fyr","maqedoni","maqedonia","maqedonia e veriut","republic of macedonia","republic of north macedonia","republika e maqedonise","republika e maqedonise se veriut","\u043C\u0430\u043A\u0435\u0434\u043E\u043D\u0438\u0458\u0430","\u0440\u0435\u043F\u0443\u0431\u043B\u0438\u043A\u0430 \u043C\u0430\u043A\u0435\u0434\u043E\u043D\u0438\u0458\u0430","\u0440\u0435\u043F\u0443\u0431\u043B\u0438\u043A\u0430 \u0441\u0435\u0432\u0435\u0440\u043D\u0430 \u043C\u0430\u043A\u0435\u0434\u043E\u043D\u0438\u0458\u0430","\u0440\u043C","\u0440\u0441\u043C","\u0441\u0435\u0432\u0435\u0440\u043D\u0430 \u043C\u0430\u043A\u0435\u0434\u043E\u043D\u0438\u0458\u0430"]},{iso3:"MLI",iso2:"ML",m49:"466",name:"Mali",aliases:["\u{1F1F2}\u{1F1F1}","maali","republic of mali"]},{iso3:"MLT",iso2:"MT",m49:"470",name:"Malta",aliases:["\u{1F1F2}\u{1F1F9}","malta island","repubblika ta malta","republic of malta"]},{iso3:"MMR",iso2:"MM",m49:"104",name:"Myanmar",aliases:["\u{1F1F2}\u{1F1F2}","burma","pyidaungzu myanma naingngandaw","pyidaungzu thammada myanma naingngandaw","republic of the union of myanmar","union of burma","\u1015\u103C\u100A\u103A\u1011\u1031\u102C\u1004\u103A\u1005\u102F \u1019\u103C\u1014\u103A\u1019\u102C\u1014\u102D\u102F\u1004\u103A\u1004\u1036","\u1015\u103C\u100A\u103A\u1011\u1031\u102C\u1004\u103A\u1005\u102F \u1019\u103C\u1014\u103A\u1019\u102C\u1014\u102D\u102F\u1004\u103A\u1004\u1036\u1010\u1031\u102C\u103A","\u1015\u103C\u100A\u103A\u1011\u1031\u102C\u1004\u103A\u1005\u102F \u101E\u1019\u1039\u1019\u1010 \u1019\u103C\u1014\u103A\u1019\u102C\u1014\u102D\u102F\u1004\u103A\u1004\u1036","\u1015\u103C\u100A\u103A\u1011\u1031\u102C\u1004\u103A\u1005\u102F \u101E\u1019\u1039\u1019\u1010 \u1019\u103C\u1014\u103A\u1019\u102C\u1014\u102D\u102F\u1004\u103A\u1004\u1036\u1010\u1031\u102C\u103A","\u1015\u103C\u100A\u103A\u1011\u1031\u102C\u1004\u103A\u1005\u102F\u1019\u103C\u1014\u103A\u1019\u102C\u1014\u102D\u102F\u1004\u103A\u1004\u1036\u1010\u1031\u102C\u103A","\u1015\u103C\u100A\u103A\u1011\u1031\u102C\u1004\u103A\u1005\u102F\u101E\u1019\u1039\u1019\u1010\u1019\u103C\u1014\u103A\u1019\u102C\u1014\u102D\u102F\u1004\u103A\u1004\u1036","\u1015\u103C\u200C\u100A\u103A\u1011\u1031\u102C\u1004\u103A\u1005\u102F\u101E\u1019\u1039\u1019\u1010\u1019\u103C\u1014\u103A\u1019\u102C\u1014\u102D\u102F\u1004\u103A\u1004\u1036","\u1015\u103C\u100A\u103A\u1011\u1031\u102C\u1004\u103A\u1005\u102F\u101E\u1019\u1039\u1019\u1010\u1019\u103C\u1014\u103A\u1019\u102C\u1014\u102D\u102F\u1004\u103A\u1004\u1036\u1010\u1031\u102C\u103A","\u1017\u1019\u102C\u1015\u103C\u100A\u103A","\u1019\u103C\u1014\u103A\u1019\u102C","\u1019\u103C\u1014\u103A\u1019\u102C\u1014\u102D\u102F\u1004\u103A\u1004\u1036","\u1019\u103C\u1014\u103A\u1019\u102C\u1014\u102D\u102F\u1004\u103A\u1004\u1036\u1010\u1031\u102C\u103A","\u1019\u103C\u1014\u103A\u1019\u102C\u1015\u103C\u100A\u103A"]},{iso3:"MNE",iso2:"ME",m49:"499",name:"Montenegro",aliases:["\u{1F1F2}\u{1F1EA}","crna cora","\u0446\u0440\u043D\u0430 \u0433\u043E\u0440\u0430"]},{iso3:"MNG",iso2:"MN",m49:"496",name:"Mongolia",aliases:["\u{1F1F2}\u{1F1F3}","bugd nayramdah mongol ard uls","mongol uls","state of mongolia","\u043C\u043E\u043D\u0433\u043E\u043B","\u043C\u043E\u043D\u0433\u043E\u043B \u0443\u043B\u0441","\u182E\u1824\u1829\u182D\u1824\u182F \u1824\u182F\u1824\u1830"]},{iso3:"MNP",iso2:"MP",m49:"580",name:"Northern Mariana Islands",aliases:["\u{1F1F2}\u{1F1F5}","cnmi","commonwealth of the northern maria islands","commonwealth of the northern mariana islands","northern marianas","notte marianas","sankattan siha na islas marianas"]},{iso3:"MOZ",iso2:"MZ",m49:"508",name:"Mozambique",aliases:["\u{1F1F2}\u{1F1FF}","mocambique","republic of mozambique","republica de mocambique"]},{iso3:"MRT",iso2:"MR",m49:"478",name:"Mauritania",aliases:["\u{1F1F2}\u{1F1F7}","islamic republic of mauritania","\u0627\u0644\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u0627\u0644\u0625\u0633\u0644\u0627\u0645\u064A\u0629 \u0627\u0644\u0645\u0648\u0631\u064A\u062A\u0627\u0646\u064A\u0629","\u0645\u0648\u0631\u064A\u062A\u0627\u0646\u064A\u0627"]},{iso3:"MSR",iso2:"MS",m49:"500",name:"Montserrat",aliases:["\u{1F1F2}\u{1F1F8}","island of montserrat"]},{iso3:"MTQ",iso2:"MQ",m49:"474",name:"Martinique",aliases:["\u{1F1F2}\u{1F1F6}","territorial collectivity of martinique"]},{iso3:"MUS",iso2:"MU",m49:"480",name:"Mauritius",aliases:["\u{1F1F2}\u{1F1FA}","ile maurice","la republique de maurice","maurice","moris","republic of mauritius","republique de maurice"]},{iso3:"MWI",iso2:"MW",m49:"454",name:"Malawi",aliases:["\u{1F1F2}\u{1F1FC}","republic of malawi"]},{iso3:"MYS",iso2:"MY",m49:"458",name:"Malaysia",aliases:["\u{1F1F2}\u{1F1FE}","federation of malaysia","malaysia federation","negara seberang tambak","persekutuan malaysia"]},{iso3:"MYT",iso2:"YT",m49:"175",name:"Mayotte",aliases:["\u{1F1FE}\u{1F1F9}","departement de mayotte","departement region de mayotte","department of mayotte"]},{iso3:"NAM",iso2:"NA",m49:"516",name:"Namibia",aliases:["\u{1F1F3}\u{1F1E6}","republic of namibia"]},{iso3:"NCL",iso2:"NC",m49:"540",name:"New Caledonia",aliases:["\u{1F1F3}\u{1F1E8}","caledonie","kanaky","kanaky nouvelle caledonie","nouvelle caledonie","territoire de la nouvelle caledonie et dependances","territoire des nouvelle caledonie et dependances","territory of new caledonia and dependencies"]},{iso3:"NER",iso2:"NE",m49:"562",name:"Niger",aliases:["\u{1F1F3}\u{1F1EA}","jamhuriyar nijar","nijar","republic niger","republic of niger","republic of the niger"]},{iso3:"NFK",iso2:"NF",m49:"574",name:"Norfolk Island",aliases:["\u{1F1F3}\u{1F1EB}","norfolk island australia","norfolk island other territories","norfolk island other territories australia","territory of norfolk island"]},{iso3:"NGA",iso2:"NG",m49:"566",name:"Nigeria",aliases:["\u{1F1F3}\u{1F1EC}","federal republic of nigeria","naija"]},{iso3:"NIC",iso2:"NI",m49:"558",name:"Nicaragua",aliases:["\u{1F1F3}\u{1F1EE}","republic of nicaragua","republica de nicaragua"]},{iso3:"NIU",iso2:"NU",m49:"570",name:"Niue",aliases:["\u{1F1F3}\u{1F1FA}"]},{iso3:"NLD",iso2:"NL",m49:"528",name:"Kingdom of the Netherlands",aliases:["\u{1F1F3}\u{1F1F1}","hollandt","kingdom of netherlands","koninkrijk der nederlanden","nederland","nederlanden","nederlandt","netherlands","netherlands kingdom of the"]},{iso3:"NOR",iso2:"NO",m49:"578",name:"Norway",aliases:["\u{1F1F3}\u{1F1F4}","kingdom of norway","kongeriket noreg","kongeriket norge","noreg","norge"]},{iso3:"NPL",iso2:"NP",m49:"524",name:"Nepal",aliases:["\u{1F1F3}\u{1F1F5}","bal bo","bal poi yul","bal yul","balbo","balpo","balpo yul","nipal","sanghiya loktantrik ganatantra nepal","\u0928\u0947\u092A\u093E\u0932","\u0938\u0902\u0918\u093F\u092F \u0932\u094B\u0915\u0924\u093E\u0928\u094D\u0924\u094D\u0930\u093F\u0915 \u0917\u0923\u0924\u0928\u094D\u0924\u094D\u0930 \u0928\u0947\u092A\u093E\u0932","\u0938\u0902\u0918\u093F\u092F \u0932\u094B\u0915\u0924\u093E\u0928\u094D\u0924\u094D\u0930\u093F\u0915 \u0917\u0923\u0924\u0928\u094D\u0924\u094D\u0930\u093E\u0924\u094D\u092E\u0915 \u0928\u0947\u092A\u093E\u0932","\u0938\u0902\u0918\u0940\u092F \u0932\u094B\u0915\u0924\u093E\u0928\u094D\u0924\u094D\u0930\u093F\u0915 \u0917\u0923\u0924\u0928\u094D\u0924\u094D\u0930 \u0928\u0947\u092A\u093E\u0932"]},{iso3:"NRU",iso2:"NR",m49:"520",name:"Naoero",aliases:["\u{1F1F3}\u{1F1F7}","nauru","pleasant island","republic of naoero","republic of nauru"]},{iso3:"NZL",iso2:"NZ",m49:"554",name:"New Zealand",aliases:["\u{1F1F3}\u{1F1FF}","aotearoa","aotearoa new zealand","dominion of new zealand"]},{iso3:"OMN",iso2:"OM",m49:"512",name:"Oman",aliases:["\u{1F1F4}\u{1F1F2}","sultanate of oman","uman","\u0633\u0644\u0637\u0646\u0629 \u0639\u0645\u0627\u0646","\u0639\u0645\u0627\u0646"]},{iso3:"PAK",iso2:"PK",m49:"586",name:"Pakistan",aliases:["\u{1F1F5}\u{1F1F0}","hoi quoc","islamic republic of pakistan","republic of pakistan","tay hoi","\u0627\u0633\u0644\u0627\u0645\u06CC \u062C\u0645\u06C1\u0648\u0631\u06CC\u06C1 \u067E\u0627\u06A9\u0633\u062A\u0627\u0646","\u0628\u0627\u06A9\u0633\u062A\u0627\u0646","\u067E\u0627\u06A9\u0633\u062A\u0627\u0646"]},{iso3:"PAN",iso2:"PA",m49:"591",name:"Panama",aliases:["\u{1F1F5}\u{1F1E6}","republic of panama","republica de panama"]},{iso3:"PCN",iso2:"PN",m49:"612",name:"Pitcairn",aliases:["\u{1F1F5}\u{1F1F3}","occas island","pisskern ali\u0435n","pitcairn henderson ducie and oeno islands","pitcairn island","pitcairn islands","pitkern ailen"]},{iso3:"PER",iso2:"PE",m49:"604",name:"Peru",aliases:["\u{1F1F5}\u{1F1EA}","piruw","piruw ripuwlika","republic of peru","republica del peru"]},{iso3:"PHL",iso2:"PH",m49:"608",name:"Philippines",aliases:["\u{1F1F5}\u{1F1ED}","philippine islands","republic of the philippines"]},{iso3:"PLW",iso2:"PW",m49:"585",name:"Palau",aliases:["\u{1F1F5}\u{1F1FC}","belau","peeloo","pelew","pelew islands","pellew","republic of belau","republic of palau","\u30D1\u30E9\u30AA","\u30D1\u30E9\u30AA\u5171\u548C\u56FD"]},{iso3:"PNG",iso2:"PG",m49:"598",name:"Papua New Guinea",aliases:["\u{1F1F5}\u{1F1EC}","independent state of papua new guinea","papua niugini"]},{iso3:"POL",iso2:"PL",m49:"616",name:"Poland",aliases:["\u{1F1F5}\u{1F1F1}","polska","republic of poland","rzeczpospolita polska"]},{iso3:"PRI",iso2:"PR",m49:"630",name:"Puerto Rico",aliases:["\u{1F1F5}\u{1F1F7}","boriken","borinquen","boriquen","commonwealth of puerto rico","estado libre asociado de puerto rico","free associated state of puerto rico","isla del encanto","island of enchantment","isle of enchantment","mancomunidad de puerto rico","porto rico","territorio de puerto rico","territorio estadounidense de puerto rico","territory of porto rico","territory of puerto rico"]},{iso3:"PRK",iso2:"KP",m49:"408",name:"Democratic People's Republic of Korea",aliases:["\u{1F1F0}\u{1F1F5}","choson minjujuui inmin konghwaguk","dpr korea","dprk","korea democratic peoples republic of","n korea","north korea","\uACF5\uD654\uAD6D","\uBD81\uC870\uC120","\uBD81\uD55C","\uC870\uC120","\uC870\uC120\uBBFC\uC8FC\uC8FC\uC758\uC778\uBBFC\uACF5\uD654\uAD6D"]},{iso3:"PRT",iso2:"PT",m49:"620",name:"Portugal",aliases:["\u{1F1F5}\u{1F1F9}","republica portuguesa"]},{iso3:"PRY",iso2:"PY",m49:"600",name:"Paraguay",aliases:["\u{1F1F5}\u{1F1FE}","paraguai","republic of paraguay","republica del paraguay","teta paraguai"]},{iso3:"PSE",iso2:"PS",m49:"275",name:"State of Palestine",aliases:["\u{1F1F5}\u{1F1F8}","palestine","palestine state of","palestinian authority","palestinian national authority","palestinian territory","west bank and gaza","\u0623\u0631\u0627\u0636\u064A \u0641\u0644\u0633\u0637\u064A\u0646\u064A\u0629","\u0627\u0644\u0623\u0631\u0627\u0636\u064A \u0627\u0644\u0641\u0644\u0633\u0637\u064A\u0646\u064A\u0629","\u0627\u0644\u062F\u0648\u0644\u0629 \u0627\u0644\u0641\u0644\u0633\u0637\u064A\u0646\u064A\u0629","\u0627\u0644\u0633\u0644\u0637\u0629 \u0627\u0644\u0641\u0644\u0633\u0637\u064A\u0646\u064A\u0629","\u0627\u0644\u0633\u0644\u0637\u0629 \u0627\u0644\u0648\u0637\u0646\u064A\u0629 \u0627\u0644\u0641\u0644\u0633\u0637\u064A\u0646\u064A\u0629","\u0627\u0644\u0636\u0641\u0629 \u0627\u0644\u063A\u0631\u0628\u064A\u0629 \u0648\u0642\u0637\u0627\u0639 \u063A\u0632\u0629","\u062F\u0648\u0644\u0629 \u0641\u0644\u0633\u0637\u064A\u0646","\u0641\u0644\u0633\u0637\u064A\u0646"]},{iso3:"PYF",iso2:"PF",m49:"258",name:"French Polynesia",aliases:["\u{1F1F5}\u{1F1EB}","f oh","french establishments in oceania","french oceania","french settlements in oceania","polynesie francaise","territoire de la polynesie francaise","territory of french polynesia"]},{iso3:"QAT",iso2:"QA",m49:"634",name:"Qatar",aliases:["\u{1F1F6}\u{1F1E6}","state of qatar","\u0625\u0645\u0627\u0631\u0629 \u0642\u0637\u0631","\u062F\u0648\u0644\u0629 \u0642\u0637\u0631","\u0642\u0637\u0631"]},{iso3:"REU",iso2:"RE",m49:"638",name:"R\xE9union",aliases:["\u{1F1F7}\u{1F1EA}","ile bourbon","ile de la reunion","la reunion","re","region reunion","reunion island"]},{iso3:"ROU",iso2:"RO",m49:"642",name:"Romania",aliases:["\u{1F1F7}\u{1F1F4}"]},{iso3:"RUS",iso2:"RU",m49:"643",name:"Russian Federation",aliases:["\u{1F1F7}\u{1F1FA}","federation of russia","russia","\u0440\u043E\u0441\u0441\u0438\u0438\u0441\u043A\u0430\u044F \u0444\u0435\u0434\u0435\u0440\u0430\u0446\u0438\u044F","\u0440\u043E\u0441\u0441\u0438\u044F","\u0440\u0444"]},{iso3:"RWA",iso2:"RW",m49:"646",name:"Rwanda",aliases:["\u{1F1F7}\u{1F1FC}","igihugu cyimisozi igihumbi","jamhuri ya rwanda","la republique du rwanda","land of a thousand hills","republic of rwanda","republika yu rwanda","republique du rwanda","republique rwandaise","repubulika yu rwanda","u rwanda"]},{iso3:"SAU",iso2:"SA",m49:"682",name:"Saudi Arabia",aliases:["\u{1F1F8}\u{1F1E6}","kingdom of saudi arabia","\u0627\u0644\u062F\u0648\u0644\u0629 \u0627\u0644\u0633\u0639\u0648\u062F\u064A\u0629","\u0627\u0644\u062F\u0648\u0644\u0647 \u0627\u0644\u0633\u0639\u0648\u062F\u064A\u0647","\u0627\u0644\u0633\u0639\u0648\u062F\u064A\u0629","\u0627\u0644\u0633\u0639\u0648\u062F\u064A\u0647","\u0627\u0644\u0639\u0631\u0628\u064A\u0629 \u0627\u0644\u0633\u0639\u0648\u062F\u064A\u0629","\u0627\u0644\u0645\u0645\u0644\u0643\u0629","\u0627\u0644\u0645\u0645\u0644\u0643\u0629 \u0627\u0644\u0633\u0639\u0648\u062F\u064A\u0629","\u0627\u0644\u0645\u0645\u0644\u0643\u0629 \u0627\u0644\u0639\u0631\u0628\u064A\u0629","\u0627\u0644\u0645\u0645\u0644\u0643\u0629 \u0627\u0644\u0639\u0631\u0628\u064A\u0629 \u0627\u0644\u0633\u0639\u0648\u062F\u064A\u0629","\u0627\u0644\u0645\u0645\u0644\u0643\u0647","\u0627\u0644\u0645\u0645\u0644\u0643\u0647 \u0627\u0644\u0639\u0631\u0628\u064A\u0647 \u0627\u0644\u0633\u0639\u0648\u062F\u064A\u0647","\u0628\u0644\u0627\u062F \u0627\u0644\u062D\u0631\u0645\u064A\u0646 \u0627\u0644\u0634\u0631\u064A\u0641\u064A\u0646","\u062F\u0648\u0644\u0629 \u0622\u0644 \u0633\u0639\u0648\u062F","\u0633\u0639\u0648\u062F\u064A\u0629","\u0633\u0639\u0648\u062F\u064A\u0647","\u0645\u0646\u0628\u0639 \u0627\u0644\u0631\u0633\u0627\u0644\u0629","\u0645\u0647\u0628\u0637 \u0627\u0644\u0648\u062D\u064A"]},{iso3:"SDN",iso2:"SD",m49:"729",name:"Sudan",aliases:["\u{1F1F8}\u{1F1E9}","al sudan","as sudan","north sudan","republic of sudan","republic of the sudan","soudan","\u0627\u0644\u0633\u0648\u062F\u0627\u0646","\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u0627\u0644\u0633\u0648\u062F\u0627\u0646"]},{iso3:"SEN",iso2:"SN",m49:"686",name:"Senegal",aliases:["\u{1F1F8}\u{1F1F3}","la republique du senegal","republic of senegal","republique du senegal","sen","senegaal"]},{iso3:"SGP",iso2:"SG",m49:"702",name:"Singapore",aliases:["\u{1F1F8}\u{1F1EC}","garden city","lion city","republic of singapore","republik singapura","singapore city","singapura","spore","\u0B9A\u0BBF\u0B99\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0BC2\u0BB0\u0BCD","\u0B9A\u0BBF\u0B99\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0BC2\u0BB0\u0BCD \u0B95\u0BC1\u0B9F\u0BBF\u0BAF\u0BB0\u0B9A\u0BC1","\u0B9A\u0BBF\u0B99\u0BCD\u0B95\u0BC8","\u0BB8\u0BBF\u0B99\u0BCD\u0B95\u0BAA\u0BC2\u0BB0\u0BCD"]},{iso3:"SGS",iso2:"GS",m49:"239",name:"South Georgia and the South Sandwich Islands",aliases:["\u{1F1EC}\u{1F1F8}","falkland islands dependencies","sgssi","south georgia","south georgia & south sandwich islands","south sandwich islands"]},{iso3:"SHN",iso2:"SH",m49:"654",name:"Saint Helena",aliases:["\u{1F1F8}\u{1F1ED}","ascension","saint helena and dependencies","saint helena ascension and tristan da cunha","tristan da cunha"]},{iso3:"SJM",iso2:"SJ",m49:"744",name:"Svalbard and Jan Mayen Islands",aliases:["\u{1F1F8}\u{1F1EF}","jan mayen","svalbard","svalbard and jan mayen","svalbard og jan mayen"]},{iso3:"SLB",iso2:"SB",m49:"090",name:"Solomon Islands",aliases:["\u{1F1F8}\u{1F1E7}"]},{iso3:"SLE",iso2:"SL",m49:"694",name:"Sierra Leone",aliases:["\u{1F1F8}\u{1F1F1}","republic of sierra leone"]},{iso3:"SLV",iso2:"SV",m49:"222",name:"El Salvador",aliases:["\u{1F1F8}\u{1F1FB}","republic of el salvador","republica de el salvador","salvador"]},{iso3:"SMR",iso2:"SM",m49:"674",name:"San Marino",aliases:["\u{1F1F8}\u{1F1F2}","most serene republic of san marino","repubblica di san marino","serenissima repubblica di san marino"]},{iso3:"SOM",iso2:"SO",m49:"706",name:"Somalia",aliases:["\u{1F1F8}\u{1F1F4}","as sumal","federal republic of somalia","jamhuuriyadda federaalka soomaaliya","jamhuuriyadda soomaaliyeed","soomaaliya","soomaaliyeey toosoo","\u0627\u0644\u0635\u0648\u0645\u0627\u0644","\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u0627\u0644\u0635\u0648\u0645\u0627\u0644","\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u0627\u0644\u0635\u0648\u0645\u0627\u0644 \u0627\u0644\u062F\u064A\u0645\u0648\u0642\u0631\u0627\u0637\u064A\u0629","\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u0627\u0644\u0635\u0648\u0645\u0627\u0644 \u0627\u0644\u0641\u064A\u062F\u0631\u0627\u0644\u064A\u0629","\u0635\u0648\u0645\u0627\u0644"]},{iso3:"SPM",iso2:"PM",m49:"666",name:"Saint Pierre and Miquelon",aliases:["\u{1F1F5}\u{1F1F2}","collectivite territoriale de saint pierre et miquelon","miquelon","saint pierre","saint pierre et miquelon","territorial collectivity of saint pierre and miquelon"]},{iso3:"SRB",iso2:"RS",m49:"688",name:"Serbia",aliases:["\u{1F1F7}\u{1F1F8}","republic of serbia","republika srbija","\u0440\u0435\u043F\u0443\u0431\u043B\u0438\u043A\u0430 \u0441\u0440\u0431\u0438\u0458\u0430","\u0441\u0440\u0431\u0438\u0458\u0430"]},{iso3:"SSD",iso2:"SS",m49:"728",name:"South Sudan",aliases:["\u{1F1F8}\u{1F1F8}","republic of south sudan","southern sudan"]},{iso3:"STP",iso2:"ST",m49:"678",name:"Sao Tome and Principe",aliases:["\u{1F1F8}\u{1F1F9}","democratic republic of sao tome and principe","principe","republica democratica de sao tome e principe","sao tome","sao tome e principe","sao tome og principe"]},{iso3:"SUR",iso2:"SR",m49:"740",name:"Suriname",aliases:["\u{1F1F8}\u{1F1F7}","dutch guiana","republic of surinam","republic of suriname","republiek suriname","surinam","surrinam"]},{iso3:"SVK",iso2:"SK",m49:"703",name:"Slovakia",aliases:["\u{1F1F8}\u{1F1F0}","slovak republic","slovenska republika","slovensko"]},{iso3:"SVN",iso2:"SI",m49:"705",name:"Slovenia",aliases:["\u{1F1F8}\u{1F1EE}","republic of slovenia","republika slovenija","slovenija"]},{iso3:"SWE",iso2:"SE",m49:"752",name:"Sweden",aliases:["\u{1F1F8}\u{1F1EA}","kingdom of sweden","konungadomet sverige","konungariket sverige","kungadomet sverige","kungariket sverige","sverige","swedish kingdom"]},{iso3:"SWZ",iso2:"SZ",m49:"748",name:"Eswatini",aliases:["\u{1F1F8}\u{1F1FF}","kingdom of eswatini","kingdom of swaziland","swaziland","umbuso weswatini"]},{iso3:"SXM",iso2:"SX",m49:"534",name:"Sint Maarten (Dutch part)",aliases:["\u{1F1F8}\u{1F1FD}","country of sint maarten","eilandgebied sint maarten","land sint maarten","saint maarten","saint martin dutch part","sint maarten","sint martin"]},{iso3:"SYC",iso2:"SC",m49:"690",name:"Seychelles",aliases:["\u{1F1F8}\u{1F1E8}","la republique des seychelles","repiblik sesel","republic of seychelles","republique des seychelles"]},{iso3:"SYR",iso2:"SY",m49:"760",name:"Syrian Arab Republic",aliases:["\u{1F1F8}\u{1F1FE}","surya","syria","\u0627\u0644\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u0627\u0644\u0639\u0631\u0628\u064A\u0629 \u0627\u0644\u0633\u0648\u0631\u064A\u0629","\u0627\u0644\u0634\u0627\u0645","\u0633\u0648\u0631\u064A\u0627","\u0633\u0648\u0631\u064A\u0629"]},{iso3:"TCA",iso2:"TC",m49:"796",name:"Turks and Caicos Islands",aliases:["\u{1F1F9}\u{1F1E8}","caicos","caicos islands","turks","turks & caicos","turks islands"]},{iso3:"TCD",iso2:"TD",m49:"148",name:"Chad",aliases:["\u{1F1F9}\u{1F1E9}","la republique du tchad","republic of chad","republique du tchad","tchad","\u062A\u0634\u0627\u062F","\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u062A\u0634\u0627\u062F"]},{iso3:"TGO",iso2:"TG",m49:"768",name:"Togo",aliases:["\u{1F1F9}\u{1F1EC}","la republique togolaise","republique togolaise","togolese republic"]},{iso3:"THA",iso2:"TH",m49:"764",name:"Thailand",aliases:["\u{1F1F9}\u{1F1ED}","kingdom of siam","kingdom of thailand","siam","thai","\u0E44\u0E17\u0E22","\u0E1B\u0E23\u0E30\u0E40\u0E17\u0E28\u0E44\u0E17\u0E22","\u0E1B\u0E23\u0E30\u0E40\u0E17\u0E28\u0E2A\u0E22\u0E32\u0E21","\u0E40\u0E21\u0E37\u0E2D\u0E07\u0E44\u0E17\u0E22","\u0E23\u0E32\u0E0A\u0E2D\u0E32\u0E13\u0E32\u0E08\u0E31\u0E01\u0E23\u0E44\u0E17\u0E22","\u0E23\u0E32\u0E0A\u0E2D\u0E32\u0E13\u0E32\u0E08\u0E31\u0E01\u0E23\u0E2A\u0E22\u0E32\u0E21","\u0E2A\u0E22\u0E32\u0E21"]},{iso3:"TJK",iso2:"TJ",m49:"762",name:"Tajikistan",aliases:["\u{1F1F9}\u{1F1EF}","jumhurii tojikiston","republic of tajikistan","\u0442\u043E\u04B7\u0438\u043A\u0438\u0441\u0442\u043E\u043D","\u0442\u04B7","\u0442\u04B7\u043A","\u04B7\u0442","\u04B7\u0443\u043C\u04B3\u0443\u0440\u0438\u0438 \u0442\u043E\u04B7\u0438\u043A\u0438\u0441\u0442\u043E\u043D"]},{iso3:"TKL",iso2:"TK",m49:"772",name:"Tokelau",aliases:["\u{1F1F9}\u{1F1F0}","tokelau islands","union islands"]},{iso3:"TKM",iso2:"TM",m49:"795",name:"Turkmenistan",aliases:["\u{1F1F9}\u{1F1F2}"]},{iso3:"TLS",iso2:"TL",m49:"626",name:"Timor-Leste",aliases:["\u{1F1F9}\u{1F1F1}","democratic republic of timor leste","east timor","republica democratica de timor leste","republika demokratika timor lorosae","timor loro sae","timor lorosae"]},{iso3:"TON",iso2:"TO",m49:"776",name:"Tonga",aliases:["\u{1F1F9}\u{1F1F4}","friendly islands","kingdom of tonga","puleanga fakatui o tonga","tonga islands"]},{iso3:"TTO",iso2:"TT",m49:"780",name:"Trinidad and Tobago",aliases:["\u{1F1F9}\u{1F1F9}","republic of trinidad and tobago","tobago","trinidad"]},{iso3:"TUN",iso2:"TN",m49:"788",name:"Tunisia",aliases:["\u{1F1F9}\u{1F1F3}","republic of tunisia","tunisian republic","\u0627\u0644\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u0627\u0644\u062A\u0648\u0646\u0633\u064A\u0629","\u062A\u0648\u0646\u0633","\u062A\u0648\u0646\u0633 \u0627\u0644\u062E\u0636\u0631\u0627\u0621"]},{iso3:"TUR",iso2:"TR",m49:"792",name:"T\xFCrkiye",aliases:["\u{1F1F9}\u{1F1F7}","republic of turkey","republic of turkiye","turkey","turkiye cumhuriyeti"]},{iso3:"TUV",iso2:"TV",m49:"798",name:"Tuvalu",aliases:["\u{1F1F9}\u{1F1FB}","ellice islands"]},{iso3:"TWN",iso2:"TW",m49:"158",name:"Taiwan",aliases:["\u{1F1F9}\u{1F1FC}","chinese republic","chinese taipei","chunghwa minkuo","chunghwa minkwo","conghwaminku","cunghwa minkwo","cyukamingkok","formosa","nanasian","nationalist china","republic of china","republic of china taiwan","roc","taivang","taiwan province of china","taiwan roc","taywan","taywang","teywan","\u4E2D\u83EF\u6C11\u570B","\u4E2D\u83EF\u6C11\u570B\uFF08\u81FA\u7063\uFF09","\u4E2D\u83EF\u81FA\u5317","\u53F0\u7063","\u81FA\u6F8E\u91D1\u99AC","\u81FA\u7063"]},{iso3:"TZA",iso2:"TZ",m49:"834",name:"United Republic of Tanzania",aliases:["\u{1F1F9}\u{1F1FF}","jamhuri ya muungano wa tanganyika na zanzibar","jamhuri ya muungano wa tanzania","tanzania","tanzania jamhuri ya muungano wa","tanzania united republic of","united republic of tanganyika and zanzibar"]},{iso3:"UGA",iso2:"UG",m49:"800",name:"Uganda",aliases:["\u{1F1FA}\u{1F1EC}","jamhuri ya uganda","lulu ya afrika","ouganda","pearl of africa","republic of uganda","ugandah"]},{iso3:"UKR",iso2:"UA",m49:"804",name:"Ukraine",aliases:["\u{1F1FA}\u{1F1E6}","ukr","ukraina","ukrainia","ukrayina","\u0432\u043A\u0440\u0430\u0456\u043D\u0430","\u0443\u043A\u0440\u0430\u0456\u043D\u0430"]},{iso3:"UMI",iso2:"UM",m49:"581",name:"United States Minor Outlying Islands",aliases:["\u{1F1FA}\u{1F1F2}","us minor outlying islands","us outlying islands","usmoi"]},{iso3:"URY",iso2:"UY",m49:"858",name:"Uruguay",aliases:["\u{1F1FA}\u{1F1FE}","eastern republic of uruguay","oriental republic of uruguay"]},{iso3:"USA",iso2:"US",m49:"840",name:"United States of America",aliases:["\u{1F1FA}\u{1F1F8}","amelika","amelika hui pu ia","amelika huipuia","amelika mokuaina hui pu ia","america","eeuu","eeuu de america","estados unidos","estados unidos de america","los estados","los estados unidos","los estados unidos de america","mokuaina hui pu ia","union americana","united states","us","us of a","us of america","usa"]},{iso3:"UZB",iso2:"UZ",m49:"860",name:"Uzbekistan",aliases:["\u{1F1FA}\u{1F1FF}","ozbek","ozbekiston","ozbekiston respublikasi","republic of uzbekistan","uzbekiston respublikasi"]},{iso3:"VAT",iso2:"VA",m49:"336",name:"Holy See",aliases:["\u{1F1FB}\u{1F1E6}","citta del vaticano","civitas vaticana","colle vaticano","papal state","santa sede citta del vaticano","state of vatican city","stato della citta del vaticano","status civitatis vaticanae","status civitatis vatican\xE6","vatican","vatican city","vatican city state","vaticano"]},{iso3:"VCT",iso2:"VC",m49:"670",name:"Saint Vincent and the Grenadines",aliases:["\u{1F1FB}\u{1F1E8}","grenadines","saint vincent","saint vincent and grenadines"]},{iso3:"VEN",iso2:"VE",m49:"862",name:"Venezuela (Bolivarian Republic of)",aliases:["\u{1F1FB}\u{1F1EA}","bolivarian republic of venezuela","br venezuela","estados unidos de venezuela","rb venezuela","republic of venezuela","republica bolivariana de venezuela","republica de venezuela","venezuela"]},{iso3:"VGB",iso2:"VG",m49:"092",name:"British Virgin Islands",aliases:["\u{1F1FB}\u{1F1EC}","bvi","virgin islands british","virgin islands of the united kingdom","virgin islands united kingdom"]},{iso3:"VIR",iso2:"VI",m49:"850",name:"United States Virgin Islands",aliases:["\u{1F1FB}\u{1F1EE}","american virgin islands","us virgin islands","virgin islands of the united states","virgin islands us"]},{iso3:"VNM",iso2:"VN",m49:"704",name:"Viet Nam",aliases:["\u{1F1FB}\u{1F1F3}","chxhcn viet nam","chxhcnvn","cong hoa xa hoi chu nghia viet nam","socialist republic of viet nam","socialist republic of vietnam","vietnam"]},{iso3:"VUT",iso2:"VU",m49:"548",name:"Vanuatu",aliases:["\u{1F1FB}\u{1F1FA}","la republique du vanuatu","republic of vanuatu","republique de vanuatu","ripablik blong vanuatu"]},{iso3:"WLF",iso2:"WF",m49:"876",name:"Wallis and Futuna Islands",aliases:["\u{1F1FC}\u{1F1EB}","collectivite des iles wallis et futuna","emeni simete","futuna","iles wallis et futuna","makape papilio","territoire de wallis et futuna","territoire des iles wallis et futuna","wallis","wallis & futuna","wallis et futuna"]},{iso3:"WSM",iso2:"WS",m49:"882",name:"Samoa",aliases:["\u{1F1FC}\u{1F1F8}","independent state of samoa","malo saoloto tutoatasi o samoa","samoa i sisifo","western samoa"]},{iso3:"YEM",iso2:"YE",m49:"887",name:"Yemen",aliases:["\u{1F1FE}\u{1F1EA}","rep yemen","republic of yemen","\u0627\u0644\u062C\u0645\u0647\u0648\u0631\u064A\u0629 \u0627\u0644\u064A\u0645\u0646\u064A\u0629","\u0627\u0644\u064A\u0645\u0646","\u062F\u0648\u0644\u0629 \u0627\u0644\u064A\u0645\u0646"]},{iso3:"ZAF",iso2:"ZA",m49:"710",name:"South Africa",aliases:["\u{1F1FF}\u{1F1E6}","aferika borwa","aforika borwa","afrika boroa","afrika borwa","afrika dzonga","afurika tshipembe","emzantsi afrika","iningizimu afrika","iriphabhulikhi ye ningizimu afrika","iriphabhulikhi yeningizimu afrika","iriphabhuliki yase ningizimu afrika","iriphabliki yasemzantsi afrika","iriphabliki yaseningizimu afrika","iriphabliki yom zantsi afrika","isewula afrika","repabliki ya afrika borwa","rephaboliki ya aforika borwa","rephaboliki ya afrika borwa","republic of south africa","republiek van suid afrika","riphabliki ra afrika dzonga","rsa","suid afrika","umzansi","umzantsi afrika","unie van suid afrika","union of south africa"]},{iso3:"ZMB",iso2:"ZM",m49:"894",name:"Zambia",aliases:["\u{1F1FF}\u{1F1F2}","northern rhodesia","republic of zambia"]},{iso3:"ZWE",iso2:"ZW",m49:"716",name:"Zimbabwe",aliases:["\u{1F1FF}\u{1F1FC}","ezimbabwe","izimbabwe","republic of zimbabwe","rhodesia","southern rhodesia","zimbabwe rhodesia","zimbagwe"]}];function VQ(e){return e.normalize("NFD").replace(/[\u0300-\u036F]/g,"").normalize("NFC").toLowerCase().replace(/[\u064B-\u065F]/g,"").replace(/['\u2018\u2019\u02BB\u02BC\u02BD\u02C8\u2032`]/g,"").replace(/&/g," and ").replace(/([,(])\s*the\b/g,"$1").replace(/[.(),[\]]/g,"").replace(/[-\u2013\u2014]/g," ").replace(/\bst\b/g,"saint").trim().replace(/\s+/g," ").replace(/^the\s+/,"")}function vVe(e){let t=new Map,r=new Map,i=new Map;for(let s of e)t.set(s.iso3,s),s.iso2&&r.set(s.iso2,s),s.m49&&i.set(s.m49,s);let n=new Map;for(let s of e)for(let l of[s.name,...s.aliases]){let u=VQ(l),c=n.get(u);if(c!==void 0&&c!==s.iso3)throw new Error(`Duplicate name/alias "${u}": ${c} vs ${s.iso3}`);n.set(u,s.iso3)}function a(s){if(s==null)return;let l=String(s).trim();if(!l)return;if(/^\d+$/.test(l)){let c=i.get(String(parseInt(l,10)).padStart(3,"0"));if(c)return c}if(/^[A-Za-z]{2}$/.test(l)){let c=r.get(l.toUpperCase());if(c)return c}if(/^[A-Za-z]{3}$/.test(l)){let c=t.get(l.toUpperCase());if(c)return c}let u=n.get(VQ(l));return u===void 0?void 0:t.get(u)}function o(s){var l;return(l=a(s))==null?void 0:l.iso3}return{lookup:a,lookupAlpha3:o,byAlpha3:t,byAlpha2:r,byM49:i}}var RE=vVe(pVe),ysr=RE.lookup,xsr=RE.lookupAlpha3,bsr=RE.byAlpha3,_sr=RE.byAlpha2,wsr=RE.byM49});var TR=W(Po=>{"use strict";Object.defineProperty(Po,"__esModule",{value:!0});var Nl=63710088e-1,jQ={centimeters:Nl*100,centimetres:Nl*100,cm:Nl*100,degrees:360/(2*Math.PI),deg:360/(2*Math.PI),feet:Nl*3.28084,ft:Nl*3.28084,inches:Nl*39.37,in:Nl*39.37,kilometers:Nl/1e3,kilometres:Nl/1e3,km:Nl/1e3,meters:Nl,metres:Nl,m:Nl,miles:Nl/1609.344,mi:Nl/1609.344,millimeters:Nl*1e3,millimetres:Nl*1e3,mm:Nl*1e3,nauticalmiles:Nl/1852,nmi:Nl/1852,radians:1,rad:1,yards:Nl*1.0936,yd:Nl*1.0936},HQ={acres:247105e-9,ac:247105e-9,centimeters:1e4,centimetres:1e4,cm:1e4,feet:10.763910417,ft:10.763910417,hectares:1e-4,ha:1e-4,inches:1550.003100006,in:1550.003100006,kilometers:1e-6,kilometres:1e-6,km:1e-6,meters:1,metres:1,m:1,miles:386e-9,mi:386e-9,nauticalmiles:29155334959812285e-23,nmi:29155334959812285e-23,millimeters:1e6,millimetres:1e6,mm:1e6,yards:1.195990046,yd:1.195990046};function B2(e,t,r={}){let i={type:"Feature"};return(r.id===0||r.id)&&(i.id=r.id),r.bbox&&(i.bbox=r.bbox),i.properties=t||{},i.geometry=e,i}function Tsr(e,t,r={}){switch(e){case"Point":return $Q(t).geometry;case"LineString":return YQ(t).geometry;case"Polygon":return WQ(t).geometry;case"MultiPoint":return xVe(t).geometry;case"MultiLineString":return yVe(t).geometry;case"MultiPolygon":return bVe(t).geometry;default:throw new Error(e+" is invalid")}}function $Q(e,t,r={}){if(!e)throw new Error("coordinates is required");if(!Array.isArray(e))throw new Error("coordinates must be an Array");if(e.length<2)throw new Error("coordinates must be at least 2 numbers long");if(!_R(e[0])||!_R(e[1]))throw new Error("coordinates must contain numbers");return B2({type:"Point",coordinates:e},t,r)}function Asr(e,t,r={}){return wR(e.map(i=>$Q(i,t)),r)}function WQ(e,t,r={}){for(let n of e){if(n.length<4)throw new Error("Each LinearRing of a Polygon must have 4 or more Positions.");if(n[n.length-1].length!==n[0].length)throw new Error("First and last Position are not equivalent.");for(let a=0;aWQ(i,t)),r)}function YQ(e,t,r={}){if(e.length<2)throw new Error("coordinates must be an array of two or more positions");return B2({type:"LineString",coordinates:e},t,r)}function Ssr(e,t,r={}){return wR(e.map(i=>YQ(i,t)),r)}function wR(e,t={}){let r={type:"FeatureCollection"};return t.id&&(r.id=t.id),t.bbox&&(r.bbox=t.bbox),r.features=e,r}function yVe(e,t,r={}){return B2({type:"MultiLineString",coordinates:e},t,r)}function xVe(e,t,r={}){return B2({type:"MultiPoint",coordinates:e},t,r)}function bVe(e,t,r={}){return B2({type:"MultiPolygon",coordinates:e},t,r)}function Esr(e,t,r={}){return B2({type:"GeometryCollection",geometries:e},t,r)}function ksr(e,t=0){if(t&&!(t>=0))throw new Error("precision must be a positive number");let r=Math.pow(10,t||0);return Math.round(e*r)/r}function _Ve(e,t="kilometers"){let r=jQ[t];if(!r)throw new Error(t+" units is invalid");return e*r}function XQ(e,t="kilometers"){let r=jQ[t];if(!r)throw new Error(t+" units is invalid");return e/r}function Csr(e,t){return wVe(XQ(e,t))}function Dsr(e){let t=e%360;return t<0&&(t+=360),t}function Fsr(e){return e=e%360,e>180?e-360:e<-180?e+360:e}function wVe(e){return e%(2*Math.PI)*180/Math.PI}function Lsr(e){return e%360*Math.PI/180}function Psr(e,t="kilometers",r="kilometers"){if(!(e>=0))throw new Error("length must be a positive number");return _Ve(XQ(e,t),r)}function Isr(e,t="meters",r="kilometers"){if(!(e>=0))throw new Error("area must be a positive number");let i=HQ[t];if(!i)throw new Error("invalid original units");let n=HQ[r];if(!n)throw new Error("invalid final units");return e/i*n}function _R(e){return!isNaN(e)&&e!==null&&!Array.isArray(e)}function Rsr(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function bR(e){delete e.bbox,e.type==="Feature"?e.geometry&&bR(e.geometry):e.type==="FeatureCollection"?e.features.forEach(bR):e.type==="GeometryCollection"&&e.geometries.forEach(bR)}function zsr(e){if(!e)throw new Error("bbox is required");if(!Array.isArray(e))throw new Error("bbox must be an Array");if(e.length!==4&&e.length!==6)throw new Error("bbox must be an Array of 4 or 6 numbers");e.forEach(t=>{if(!_R(t))throw new Error("bbox must only contain numbers")})}function Bsr(e){if(!e)throw new Error("id is required");if(["string","number"].indexOf(typeof e)===-1)throw new Error("id must be a number or a string")}Po.areaFactors=HQ;Po.azimuthToBearing=Fsr;Po.bearingToAzimuth=Dsr;Po.convertArea=Isr;Po.convertLength=Psr;Po.degreesToRadians=Lsr;Po.earthRadius=Nl;Po.factors=jQ;Po.feature=B2;Po.featureCollection=wR;Po.geometry=Tsr;Po.geometryCollection=Esr;Po.isNumber=_R;Po.isObject=Rsr;Po.lengthToDegrees=Csr;Po.lengthToRadians=XQ;Po.lineString=YQ;Po.lineStrings=Ssr;Po.multiLineString=yVe;Po.multiPoint=xVe;Po.multiPolygon=bVe;Po.point=$Q;Po.points=Asr;Po.polygon=WQ;Po.polygons=Msr;Po.radiansToDegrees=wVe;Po.radiansToLength=_Ve;Po.removeBbox=bR;Po.round=ksr;Po.validateBBox=zsr;Po.validateId=Bsr});var MR=W(cc=>{"use strict";Object.defineProperty(cc,"__esModule",{value:!0});var Bf=TR();function zE(e,t,r){if(e!==null)for(var i,n,a,o,s,l,u,c=0,f=0,h,p=e.type,d=p==="FeatureCollection",v=p==="Feature",m=d?e.features.length:1,g=0;gl||d>u||v>c){s=f,l=i,u=d,c=v,a=0;return}var m=Bf.lineString.call(void 0,[s,f],r.properties);if(t(m,i,n,v,a)===!1)return!1;a++,s=f})===!1)return!1}}})}function Hsr(e,t,r){var i=r,n=!1;return MVe(e,function(a,o,s,l,u){n===!1&&r===void 0?i=a:i=t(i,a,o,s,l,u),n=!0}),i}function SVe(e,t){if(!e)throw new Error("geojson is required");AR(e,function(r,i,n){if(r.geometry!==null){var a=r.geometry.type,o=r.geometry.coordinates;switch(a){case"LineString":if(t(r,i,n,0,0)===!1)return!1;break;case"Polygon":for(var s=0;s{"use strict";Object.defineProperty(SR,"__esModule",{value:!0});var EVe=TR(),Ysr=MR();function DVe(e){return Ysr.geomReduce.call(void 0,e,(t,r)=>t+Xsr(r),0)}function Xsr(e){let t=0,r;switch(e.type){case"Polygon":return kVe(e.coordinates);case"MultiPolygon":for(r=0;r0){t+=Math.abs(CVe(e[0]));for(let r=1;r=t?(i+2)%t:i+2],s=n[0]*KQ,l=a[1]*KQ,u=o[0]*KQ;r+=(u-s)*Math.sin(l),i++}return r*Zsr}var Ksr=DVe;SR.area=DVe;SR.default=Ksr});var PVe=W(ER=>{"use strict";Object.defineProperty(ER,"__esModule",{value:!0});var Jsr=TR(),Qsr=MR();function LVe(e,t={}){let r=0,i=0,n=0;return Qsr.coordEach.call(void 0,e,function(a){r+=a[0],i+=a[1],n++},!0),Jsr.point.call(void 0,[r/n,i/n],t.properties)}var elr=LVe;ER.centroid=LVe;ER.default=elr});var RVe=W((kR,IVe)=>{(function(e,t){t(typeof kR=="object"&&typeof IVe!="undefined"?kR:e.d3=e.d3||{})})(kR,(function(e){"use strict";function t(N,V){return NV?1:N>=V?0:NaN}function r(N){return N.length===1&&(N=i(N)),{left:function(V,Y,H,j){for(H==null&&(H=0),j==null&&(j=V.length);H>>1;N(V[Q],Y)<0?H=Q+1:j=Q}return H},right:function(V,Y,H,j){for(H==null&&(H=0),j==null&&(j=V.length);H>>1;N(V[Q],Y)>0?j=Q:H=Q+1}return H}}}function i(N){return function(V,Y){return t(N(V),Y)}}var n=r(t),a=n.right,o=n.left;function s(N,V){V==null&&(V=l);for(var Y=0,H=N.length-1,j=N[0],Q=new Array(H<0?0:H);YN?1:V>=N?0:NaN}function f(N){return N===null?NaN:+N}function h(N,V){var Y=N.length,H=0,j=-1,Q=0,te,ue,ge=0;if(V==null)for(;++j1)return ge/(H-1)}function p(N,V){var Y=h(N,V);return Y&&Math.sqrt(Y)}function d(N,V){var Y=N.length,H=-1,j,Q,te;if(V==null){for(;++H=j)for(Q=te=j;++Hj&&(Q=j),te=j)for(Q=te=j;++Hj&&(Q=j),te0)return[N];if((H=V0)for(N=Math.ceil(N/ue),V=Math.floor(V/ue),te=new Array(Q=Math.ceil(V-N+1));++j=0?(Q>=S?10:Q>=x?5:Q>=A?2:1)*Math.pow(10,j):-Math.pow(10,-j)/(Q>=S?10:Q>=x?5:Q>=A?2:1)}function E(N,V,Y){var H=Math.abs(V-N)/Math.max(0,Y),j=Math.pow(10,Math.floor(Math.log(H)/Math.LN10)),Q=H/j;return Q>=S?j*=10:Q>=x?j*=5:Q>=A&&(j*=2),Vce;)oe.pop(),--Se;var be=new Array(Se+1),fe;for(Q=0;Q<=Se;++Q)fe=be[Q]=[],fe.x0=Q>0?oe[Q-1]:xe,fe.x1=Q=1)return+Y(N[H-1],H-1,N);var H,j=(H-1)*V,Q=Math.floor(j),te=+Y(N[Q],Q,N),ue=+Y(N[Q+1],Q+1,N);return te+(ue-te)*(j-Q)}}function D(N,V,Y){return N=g.call(N,f).sort(t),Math.ceil((Y-V)/(2*(k(N,.75)-k(N,.25))*Math.pow(N.length,-1/3)))}function F(N,V,Y){return Math.ceil((Y-V)/(3.5*p(N)*Math.pow(N.length,-1/3)))}function P(N,V){var Y=N.length,H=-1,j,Q;if(V==null){for(;++H=j)for(Q=j;++HQ&&(Q=j)}else for(;++H=j)for(Q=j;++HQ&&(Q=j);return Q}function R(N,V){var Y=N.length,H=Y,j=-1,Q,te=0;if(V==null)for(;++j=0;)for(te=N[V],Y=te.length;--Y>=0;)Q[--j]=te[Y];return Q}function B(N,V){var Y=N.length,H=-1,j,Q;if(V==null){for(;++H=j)for(Q=j;++Hj&&(Q=j)}else for(;++H=j)for(Q=j;++Hj&&(Q=j);return Q}function O(N,V){for(var Y=V.length,H=new Array(Y);Y--;)H[Y]=N[V[Y]];return H}function $(N,V){if(Y=N.length){var Y,H=0,j=0,Q,te=N[j];for(V==null&&(V=t);++H{(function(e,t){typeof CR=="object"&&typeof zVe!="undefined"?t(CR,RVe()):(e=e||self,t(e.d3=e.d3||{},e.d3))})(CR,(function(e,t){"use strict";function r(){return new i}function i(){this.reset()}i.prototype={constructor:i,reset:function(){this.s=this.t=0},add:function(Ae){a(n,Ae,this.t),a(this,n.s,this.s),this.s?this.t+=n.t:this.s=n.t},valueOf:function(){return this.s}};var n=new i;function a(Ae,qe,et){var Ye=Ae.s=qe+et,Tt=Ye-qe,jt=Ye-Tt;Ae.t=qe-jt+(et-Tt)}var o=1e-6,s=1e-12,l=Math.PI,u=l/2,c=l/4,f=l*2,h=180/l,p=l/180,d=Math.abs,v=Math.atan,m=Math.atan2,g=Math.cos,w=Math.ceil,_=Math.exp,b=Math.log,S=Math.pow,x=Math.sin,A=Math.sign||function(Ae){return Ae>0?1:Ae<0?-1:0},T=Math.sqrt,y=Math.tan;function E(Ae){return Ae>1?0:Ae<-1?l:Math.acos(Ae)}function M(Ae){return Ae>1?u:Ae<-1?-u:Math.asin(Ae)}function C(Ae){return(Ae=x(Ae/2))*Ae}function k(){}function D(Ae,qe){Ae&&P.hasOwnProperty(Ae.type)&&P[Ae.type](Ae,qe)}var F={Feature:function(Ae,qe){D(Ae.geometry,qe)},FeatureCollection:function(Ae,qe){for(var et=Ae.features,Ye=-1,Tt=et.length;++Ye=0?1:-1,Tt=Ye*et,jt=g(qe),Qt=x(qe),cr=q*Qt,yr=G*jt+cr*g(Tt),Rr=cr*Ye*x(Tt);B.add(m(Rr,yr)),K=Ae,G=jt,q=Qt}function j(Ae){return O.reset(),I(Ae,J),O*2}function Q(Ae){return[m(Ae[1],Ae[0]),M(Ae[2])]}function te(Ae){var qe=Ae[0],et=Ae[1],Ye=g(et);return[Ye*g(qe),Ye*x(qe),x(et)]}function ue(Ae,qe){return Ae[0]*qe[0]+Ae[1]*qe[1]+Ae[2]*qe[2]}function ge(Ae,qe){return[Ae[1]*qe[2]-Ae[2]*qe[1],Ae[2]*qe[0]-Ae[0]*qe[2],Ae[0]*qe[1]-Ae[1]*qe[0]]}function Ee(Ae,qe){Ae[0]+=qe[0],Ae[1]+=qe[1],Ae[2]+=qe[2]}function xe(Ae,qe){return[Ae[0]*qe,Ae[1]*qe,Ae[2]*qe]}function ce(Ae){var qe=T(Ae[0]*Ae[0]+Ae[1]*Ae[1]+Ae[2]*Ae[2]);Ae[0]/=qe,Ae[1]/=qe,Ae[2]/=qe}var oe,Se,be,fe,ee,ae,_e,re,pe=r(),Te,Ce,ze={point:we,lineStart:Le,lineEnd:Ne,polygonStart:function(){ze.point=Je,ze.lineStart=rt,ze.lineEnd=mt,pe.reset(),J.polygonStart()},polygonEnd:function(){J.polygonEnd(),ze.point=we,ze.lineStart=Le,ze.lineEnd=Ne,B<0?(oe=-(be=180),Se=-(fe=90)):pe>o?fe=90:pe<-o&&(Se=-90),Ce[0]=oe,Ce[1]=be},sphere:function(){oe=-(be=180),Se=-(fe=90)}};function we(Ae,qe){Te.push(Ce=[oe=Ae,be=Ae]),qefe&&(fe=qe)}function me(Ae,qe){var et=te([Ae*p,qe*p]);if(re){var Ye=ge(re,et),Tt=[Ye[1],-Ye[0],0],jt=ge(Tt,Ye);ce(jt),jt=Q(jt);var Qt=Ae-ee,cr=Qt>0?1:-1,yr=jt[0]*h*cr,Rr,nr=d(Qt)>180;nr^(cr*eefe&&(fe=Rr)):(yr=(yr+360)%360-180,nr^(cr*eefe&&(fe=qe))),nr?Aedt(oe,be)&&(be=Ae):dt(Ae,be)>dt(oe,be)&&(oe=Ae):be>=oe?(Aebe&&(be=Ae)):Ae>ee?dt(oe,Ae)>dt(oe,be)&&(be=Ae):dt(Ae,be)>dt(oe,be)&&(oe=Ae)}else Te.push(Ce=[oe=Ae,be=Ae]);qefe&&(fe=qe),re=et,ee=Ae}function Le(){ze.point=me}function Ne(){Ce[0]=oe,Ce[1]=be,ze.point=we,re=null}function Je(Ae,qe){if(re){var et=Ae-ee;pe.add(d(et)>180?et+(et>0?360:-360):et)}else ae=Ae,_e=qe;J.point(Ae,qe),me(Ae,qe)}function rt(){J.lineStart()}function mt(){Je(ae,_e),J.lineEnd(),d(pe)>o&&(oe=-(be=180)),Ce[0]=oe,Ce[1]=be,re=null}function dt(Ae,qe){return(qe-=Ae)<0?qe+360:qe}function St(Ae,qe){return Ae[0]-qe[0]}function Ke(Ae,qe){return Ae[0]<=Ae[1]?Ae[0]<=qe&&qe<=Ae[1]:qedt(Ye[0],Ye[1])&&(Ye[1]=Tt[1]),dt(Tt[0],Ye[1])>dt(Ye[0],Ye[1])&&(Ye[0]=Tt[0])):jt.push(Ye=Tt);for(Qt=-1/0,et=jt.length-1,qe=0,Ye=jt[et];qe<=et;Ye=Tt,++qe)Tt=jt[qe],(cr=dt(Ye[1],Tt[0]))>Qt&&(Qt=cr,oe=Tt[0],be=Ye[1])}return Te=Ce=null,oe===1/0||Se===1/0?[[NaN,NaN],[NaN,NaN]]:[[oe,Se],[be,fe]]}var pt,Oe,Ue,je,$e,Ie,Ve,st,_t,Wt,Ht,fr,lr,Ot,Jt,Cr,Ge={sphere:k,point:Qe,lineStart:gt,lineEnd:hr,polygonStart:function(){Ge.lineStart=Ut,Ge.lineEnd=Lr},polygonEnd:function(){Ge.lineStart=gt,Ge.lineEnd=hr}};function Qe(Ae,qe){Ae*=p,qe*=p;var et=g(qe);nt(et*g(Ae),et*x(Ae),x(qe))}function nt(Ae,qe,et){++pt,Ue+=(Ae-Ue)/pt,je+=(qe-je)/pt,$e+=(et-$e)/pt}function gt(){Ge.point=ht}function ht(Ae,qe){Ae*=p,qe*=p;var et=g(qe);Ot=et*g(Ae),Jt=et*x(Ae),Cr=x(qe),Ge.point=Ft,nt(Ot,Jt,Cr)}function Ft(Ae,qe){Ae*=p,qe*=p;var et=g(qe),Ye=et*g(Ae),Tt=et*x(Ae),jt=x(qe),Qt=m(T((Qt=Jt*jt-Cr*Tt)*Qt+(Qt=Cr*Ye-Ot*jt)*Qt+(Qt=Ot*Tt-Jt*Ye)*Qt),Ot*Ye+Jt*Tt+Cr*jt);Oe+=Qt,Ie+=Qt*(Ot+(Ot=Ye)),Ve+=Qt*(Jt+(Jt=Tt)),st+=Qt*(Cr+(Cr=jt)),nt(Ot,Jt,Cr)}function hr(){Ge.point=Qe}function Ut(){Ge.point=jr}function Lr(){ii(fr,lr),Ge.point=Qe}function jr(Ae,qe){fr=Ae,lr=qe,Ae*=p,qe*=p,Ge.point=ii;var et=g(qe);Ot=et*g(Ae),Jt=et*x(Ae),Cr=x(qe),nt(Ot,Jt,Cr)}function ii(Ae,qe){Ae*=p,qe*=p;var et=g(qe),Ye=et*g(Ae),Tt=et*x(Ae),jt=x(qe),Qt=Jt*jt-Cr*Tt,cr=Cr*Ye-Ot*jt,yr=Ot*Tt-Jt*Ye,Rr=T(Qt*Qt+cr*cr+yr*yr),nr=M(Rr),dr=Rr&&-nr/Rr;_t+=dr*Qt,Wt+=dr*cr,Ht+=dr*yr,Oe+=nr,Ie+=nr*(Ot+(Ot=Ye)),Ve+=nr*(Jt+(Jt=Tt)),st+=nr*(Cr+(Cr=jt)),nt(Ot,Jt,Cr)}function Fr(Ae){pt=Oe=Ue=je=$e=Ie=Ve=st=_t=Wt=Ht=0,I(Ae,Ge);var qe=_t,et=Wt,Ye=Ht,Tt=qe*qe+et*et+Ye*Ye;return Ttl?Ae+Math.round(-Ae/f)*f:Ae,qe]}ln.invert=ln;function la(Ae,qe,et){return(Ae%=f)?qe||et?Xi(pn(Ae),zn(qe,et)):pn(Ae):qe||et?zn(qe,et):ln}function mo(Ae){return function(qe,et){return qe+=Ae,[qe>l?qe-f:qe<-l?qe+f:qe,et]}}function pn(Ae){var qe=mo(Ae);return qe.invert=mo(-Ae),qe}function zn(Ae,qe){var et=g(Ae),Ye=x(Ae),Tt=g(qe),jt=x(qe);function Qt(cr,yr){var Rr=g(yr),nr=g(cr)*Rr,dr=x(cr)*Rr,vr=x(yr),Pr=vr*et+nr*Ye;return[m(dr*Tt-Pr*jt,nr*et-vr*Ye),M(Pr*Tt+dr*jt)]}return Qt.invert=function(cr,yr){var Rr=g(yr),nr=g(cr)*Rr,dr=x(cr)*Rr,vr=x(yr),Pr=vr*Tt-dr*jt;return[m(dr*Tt+vr*jt,nr*et+Pr*Ye),M(Pr*et-nr*Ye)]},Qt}function gn(Ae){Ae=la(Ae[0]*p,Ae[1]*p,Ae.length>2?Ae[2]*p:0);function qe(et){return et=Ae(et[0]*p,et[1]*p),et[0]*=h,et[1]*=h,et}return qe.invert=function(et){return et=Ae.invert(et[0]*p,et[1]*p),et[0]*=h,et[1]*=h,et},qe}function ns(Ae,qe,et,Ye,Tt,jt){if(et){var Qt=g(qe),cr=x(qe),yr=Ye*et;Tt==null?(Tt=qe+Ye*f,jt=qe-yr/2):(Tt=ua(Qt,Tt),jt=ua(Qt,jt),(Ye>0?Ttjt)&&(Tt+=Ye*f));for(var Rr,nr=Tt;Ye>0?nr>jt:nr1&&Ae.push(Ae.pop().concat(Ae.shift()))},result:function(){var et=Ae;return Ae=[],qe=null,et}}}function ba(Ae,qe){return d(Ae[0]-qe[0])=0;--cr)Tt.point((dr=nr[cr])[0],dr[1]);else Ye(vr.x,vr.p.x,-1,Tt);vr=vr.p}vr=vr.o,nr=vr.z,Pr=!Pr}while(!vr.v);Tt.lineEnd()}}}function Ma(Ae){if(qe=Ae.length){for(var qe,et=0,Ye=Ae[0],Tt;++et=0?1:-1,Ia=Ka*wa,_o=Ia>l,ca=Oi*cn;if(el.add(m(ca*Ka*x(Ia),Di*Dn+ca*g(Ia))),Qt+=_o?wa+Ka*f:wa,_o^Pr>=et^Zr>=et){var vl=ge(te(vr),te(en));ce(vl);var ls=ge(jt,vl);ce(ls);var yo=(_o^wa>=0?-1:1)*M(ls[2]);(Ye>yo||Ye===yo&&(vl[0]||vl[1]))&&(cr+=_o^wa>=0?1:-1)}}return(Qt<-o||Qt0){for(yr||(Tt.polygonStart(),yr=!0),Tt.lineStart(),Dn=0;Dn1&&si&2&&cn.push(cn.pop().concat(cn.shift())),nr.push(cn.filter(Fe))}}return vr}}function Fe(Ae){return Ae.length>1}function ot(Ae,qe){return((Ae=Ae.x)[0]<0?Ae[1]-u-o:u-Ae[1])-((qe=qe.x)[0]<0?qe[1]-u-o:u-qe[1])}var lt=dl(function(){return!0},kt,zt,[-l,-u]);function kt(Ae){var qe=NaN,et=NaN,Ye=NaN,Tt;return{lineStart:function(){Ae.lineStart(),Tt=1},point:function(jt,Qt){var cr=jt>0?l:-l,yr=d(jt-qe);d(yr-l)0?u:-u),Ae.point(Ye,et),Ae.lineEnd(),Ae.lineStart(),Ae.point(cr,et),Ae.point(jt,et),Tt=0):Ye!==cr&&yr>=l&&(d(qe-Ye)o?v((x(qe)*(jt=g(Ye))*x(et)-x(Ye)*(Tt=g(qe))*x(Ae))/(Tt*jt*Qt)):(qe+Ye)/2}function zt(Ae,qe,et,Ye){var Tt;if(Ae==null)Tt=et*u,Ye.point(-l,Tt),Ye.point(0,Tt),Ye.point(l,Tt),Ye.point(l,0),Ye.point(l,-Tt),Ye.point(0,-Tt),Ye.point(-l,-Tt),Ye.point(-l,0),Ye.point(-l,Tt);else if(d(Ae[0]-qe[0])>o){var jt=Ae[0]0,Tt=d(qe)>o;function jt(nr,dr,vr,Pr){ns(Pr,Ae,et,vr,nr,dr)}function Qt(nr,dr){return g(nr)*g(dr)>qe}function cr(nr){var dr,vr,Pr,$r,Oi;return{lineStart:function(){$r=Pr=!1,Oi=1},point:function(Di,ji){var en=[Di,ji],Zr,si=Qt(Di,ji),cn=Ye?si?0:Rr(Di,ji):si?Rr(Di+(Di<0?l:-l),ji):0;if(!dr&&($r=Pr=si)&&nr.lineStart(),si!==Pr&&(Zr=yr(dr,en),(!Zr||ba(dr,Zr)||ba(en,Zr))&&(en[2]=1)),si!==Pr)Oi=0,si?(nr.lineStart(),Zr=yr(en,dr),nr.point(Zr[0],Zr[1])):(Zr=yr(dr,en),nr.point(Zr[0],Zr[1],2),nr.lineEnd()),dr=Zr;else if(Tt&&dr&&Ye^si){var Dn;!(cn&vr)&&(Dn=yr(en,dr,!0))&&(Oi=0,Ye?(nr.lineStart(),nr.point(Dn[0][0],Dn[0][1]),nr.point(Dn[1][0],Dn[1][1]),nr.lineEnd()):(nr.point(Dn[1][0],Dn[1][1]),nr.lineEnd(),nr.lineStart(),nr.point(Dn[0][0],Dn[0][1],3)))}si&&(!dr||!ba(dr,en))&&nr.point(en[0],en[1]),dr=en,Pr=si,vr=cn},lineEnd:function(){Pr&&nr.lineEnd(),dr=null},clean:function(){return Oi|($r&&Pr)<<1}}}function yr(nr,dr,vr){var Pr=te(nr),$r=te(dr),Oi=[1,0,0],Di=ge(Pr,$r),ji=ue(Di,Di),en=Di[0],Zr=ji-en*en;if(!Zr)return!vr&&nr;var si=qe*ji/Zr,cn=-qe*en/Zr,Dn=ge(Oi,Di),wa=xe(Oi,si),Ka=xe(Di,cn);Ee(wa,Ka);var Ia=Dn,_o=ue(wa,Ia),ca=ue(Ia,Ia),vl=_o*_o-ca*(ue(wa,wa)-1);if(!(vl<0)){var ls=T(vl),yo=xe(Ia,(-_o-ls)/ca);if(Ee(yo,wa),yo=Q(yo),!vr)return yo;var pi=nr[0],Da=dr[0],Fs=nr[1],Sl=dr[1],Du;Da0^yo[1]<(d(yo[0]-pi)l^(pi<=yo[0]&&yo[0]<=Da)){var Qu=xe(Ia,(-_o+ls)/ca);return Ee(Qu,wa),[yo,Q(Qu)]}}}function Rr(nr,dr){var vr=Ye?Ae:l-Ae,Pr=0;return nr<-vr?Pr|=1:nr>vr&&(Pr|=2),dr<-vr?Pr|=4:dr>vr&&(Pr|=8),Pr}return dl(Qt,cr,jt,Ye?[0,-Ae]:[-l,Ae-l])}function Zt(Ae,qe,et,Ye,Tt,jt){var Qt=Ae[0],cr=Ae[1],yr=qe[0],Rr=qe[1],nr=0,dr=1,vr=yr-Qt,Pr=Rr-cr,$r;if($r=et-Qt,!(!vr&&$r>0)){if($r/=vr,vr<0){if($r0){if($r>dr)return;$r>nr&&(nr=$r)}if($r=Tt-Qt,!(!vr&&$r<0)){if($r/=vr,vr<0){if($r>dr)return;$r>nr&&(nr=$r)}else if(vr>0){if($r0)){if($r/=Pr,Pr<0){if($r0){if($r>dr)return;$r>nr&&(nr=$r)}if($r=jt-cr,!(!Pr&&$r<0)){if($r/=Pr,Pr<0){if($r>dr)return;$r>nr&&(nr=$r)}else if(Pr>0){if($r0&&(Ae[0]=Qt+nr*vr,Ae[1]=cr+nr*Pr),dr<1&&(qe[0]=Qt+dr*vr,qe[1]=cr+dr*Pr),!0}}}}}var wr=1e9,Kr=-wr;function ni(Ae,qe,et,Ye){function Tt(Rr,nr){return Ae<=Rr&&Rr<=et&&qe<=nr&&nr<=Ye}function jt(Rr,nr,dr,vr){var Pr=0,$r=0;if(Rr==null||(Pr=Qt(Rr,dr))!==($r=Qt(nr,dr))||yr(Rr,nr)<0^dr>0)do vr.point(Pr===0||Pr===3?Ae:et,Pr>1?Ye:qe);while((Pr=(Pr+dr+4)%4)!==$r);else vr.point(nr[0],nr[1])}function Qt(Rr,nr){return d(Rr[0]-Ae)0?0:3:d(Rr[0]-et)0?2:1:d(Rr[1]-qe)0?1:0:nr>0?3:2}function cr(Rr,nr){return yr(Rr.x,nr.x)}function yr(Rr,nr){var dr=Qt(Rr,1),vr=Qt(nr,1);return dr!==vr?dr-vr:dr===0?nr[1]-Rr[1]:dr===1?Rr[0]-nr[0]:dr===2?Rr[1]-nr[1]:nr[0]-Rr[0]}return function(Rr){var nr=Rr,dr=ro(),vr,Pr,$r,Oi,Di,ji,en,Zr,si,cn,Dn,wa={point:Ka,lineStart:vl,lineEnd:ls,polygonStart:_o,polygonEnd:ca};function Ka(pi,Da){Tt(pi,Da)&&nr.point(pi,Da)}function Ia(){for(var pi=0,Da=0,Fs=Pr.length;DaYe&&(Dh-Jf)*(Ye-Qu)>(Fh-Qu)*(Ae-Jf)&&++pi:Fh<=Ye&&(Dh-Jf)*(Ye-Qu)<(Fh-Qu)*(Ae-Jf)&&--pi;return pi}function _o(){nr=dr,vr=[],Pr=[],Dn=!0}function ca(){var pi=Ia(),Da=Dn&&pi,Fs=(vr=t.merge(vr)).length;(Da||Fs)&&(Rr.polygonStart(),Da&&(Rr.lineStart(),jt(null,null,1,Rr),Rr.lineEnd()),Fs&&Us(vr,cr,pi,jt,Rr),Rr.polygonEnd()),nr=Rr,vr=Pr=$r=null}function vl(){wa.point=yo,Pr&&Pr.push($r=[]),cn=!0,si=!1,en=Zr=NaN}function ls(){vr&&(yo(Oi,Di),ji&&si&&dr.rejoin(),vr.push(dr.result())),wa.point=Ka,si&&nr.lineEnd()}function yo(pi,Da){var Fs=Tt(pi,Da);if(Pr&&$r.push([pi,Da]),cn)Oi=pi,Di=Da,ji=Fs,cn=!1,Fs&&(nr.lineStart(),nr.point(pi,Da));else if(Fs&&si)nr.point(pi,Da);else{var Sl=[en=Math.max(Kr,Math.min(wr,en)),Zr=Math.max(Kr,Math.min(wr,Zr))],Du=[pi=Math.max(Kr,Math.min(wr,pi)),Da=Math.max(Kr,Math.min(wr,Da))];Zt(Sl,Du,Ae,qe,et,Ye)?(si||(nr.lineStart(),nr.point(Sl[0],Sl[1])),nr.point(Du[0],Du[1]),Fs||nr.lineEnd(),Dn=!1):Fs&&(nr.lineStart(),nr.point(pi,Da),Dn=!1)}en=pi,Zr=Da,si=Fs}return wa}}function Si(){var Ae=0,qe=0,et=960,Ye=500,Tt,jt,Qt;return Qt={stream:function(cr){return Tt&&jt===cr?Tt:Tt=ni(Ae,qe,et,Ye)(jt=cr)},extent:function(cr){return arguments.length?(Ae=+cr[0][0],qe=+cr[0][1],et=+cr[1][0],Ye=+cr[1][1],Tt=jt=null,Qt):[[Ae,qe],[et,Ye]]}}}var un=r(),$n,wn,ma,Zn={sphere:k,point:k,lineStart:io,lineEnd:k,polygonStart:k,polygonEnd:k};function io(){Zn.point=ko,Zn.lineEnd=fo}function fo(){Zn.point=Zn.lineEnd=k}function ko(Ae,qe){Ae*=p,qe*=p,$n=Ae,wn=x(qe),ma=g(qe),Zn.point=Oo}function Oo(Ae,qe){Ae*=p,qe*=p;var et=x(qe),Ye=g(qe),Tt=d(Ae-$n),jt=g(Tt),Qt=x(Tt),cr=Ye*Qt,yr=ma*et-wn*Ye*jt,Rr=wn*et+ma*Ye*jt;un.add(m(T(cr*cr+yr*yr),Rr)),$n=Ae,wn=et,ma=Ye}function ms(Ae){return un.reset(),I(Ae,Zn),+un}var os=[null,null],Co={type:"LineString",coordinates:os};function ss(Ae,qe){return os[0]=Ae,os[1]=qe,ms(Co)}var No={Feature:function(Ae,qe){return ho(Ae.geometry,qe)},FeatureCollection:function(Ae,qe){for(var et=Ae.features,Ye=-1,Tt=et.length;++Ye0&&(Tt=ss(Ae[jt],Ae[jt-1]),Tt>0&&et<=Tt&&Ye<=Tt&&(et+Ye-Tt)*(1-Math.pow((et-Ye)/Tt,2))o}).map(vr)).concat(t.range(w(jt/Rr)*Rr,Tt,Rr).filter(function(Zr){return d(Zr%dr)>o}).map(Pr))}return ji.lines=function(){return en().map(function(Zr){return{type:"LineString",coordinates:Zr}})},ji.outline=function(){return{type:"Polygon",coordinates:[$r(Ye).concat(Oi(Qt).slice(1),$r(et).reverse().slice(1),Oi(cr).reverse().slice(1))]}},ji.extent=function(Zr){return arguments.length?ji.extentMajor(Zr).extentMinor(Zr):ji.extentMinor()},ji.extentMajor=function(Zr){return arguments.length?(Ye=+Zr[0][0],et=+Zr[1][0],cr=+Zr[0][1],Qt=+Zr[1][1],Ye>et&&(Zr=Ye,Ye=et,et=Zr),cr>Qt&&(Zr=cr,cr=Qt,Qt=Zr),ji.precision(Di)):[[Ye,cr],[et,Qt]]},ji.extentMinor=function(Zr){return arguments.length?(qe=+Zr[0][0],Ae=+Zr[1][0],jt=+Zr[0][1],Tt=+Zr[1][1],qe>Ae&&(Zr=qe,qe=Ae,Ae=Zr),jt>Tt&&(Zr=jt,jt=Tt,Tt=Zr),ji.precision(Di)):[[qe,jt],[Ae,Tt]]},ji.step=function(Zr){return arguments.length?ji.stepMajor(Zr).stepMinor(Zr):ji.stepMinor()},ji.stepMajor=function(Zr){return arguments.length?(nr=+Zr[0],dr=+Zr[1],ji):[nr,dr]},ji.stepMinor=function(Zr){return arguments.length?(yr=+Zr[0],Rr=+Zr[1],ji):[yr,Rr]},ji.precision=function(Zr){return arguments.length?(Di=+Zr,vr=il(jt,Tt,90),Pr=hu(qe,Ae,Di),$r=il(cr,Qt,90),Oi=hu(Ye,et,Di),ji):Di},ji.extentMajor([[-180,-90+o],[180,90-o]]).extentMinor([[-180,-80-o],[180,80+o]])}function Su(){return Mu()()}function yc(Ae,qe){var et=Ae[0]*p,Ye=Ae[1]*p,Tt=qe[0]*p,jt=qe[1]*p,Qt=g(Ye),cr=x(Ye),yr=g(jt),Rr=x(jt),nr=Qt*g(et),dr=Qt*x(et),vr=yr*g(Tt),Pr=yr*x(Tt),$r=2*M(T(C(jt-Ye)+Qt*yr*C(Tt-et))),Oi=x($r),Di=$r?function(ji){var en=x(ji*=$r)/Oi,Zr=x($r-ji)/Oi,si=Zr*nr+en*vr,cn=Zr*dr+en*Pr,Dn=Zr*cr+en*Rr;return[m(cn,si)*h,m(Dn,T(si*si+cn*cn))*h]}:function(){return[et*h,Ye*h]};return Di.distance=$r,Di}function $l(Ae){return Ae}var Za=r(),Eu=r(),Xu,Cs,du,_h,bo={point:k,lineStart:k,lineEnd:k,polygonStart:function(){bo.lineStart=pu,bo.lineEnd=Nv},polygonEnd:function(){bo.lineStart=bo.lineEnd=bo.point=k,Za.add(d(Eu)),Eu.reset()},result:function(){var Ae=Za/2;return Za.reset(),Ae}};function pu(){bo.point=Jo}function Jo(Ae,qe){bo.point=vu,Xu=du=Ae,Cs=_h=qe}function vu(Ae,qe){Eu.add(_h*Ae-du*qe),du=Ae,_h=qe}function Nv(){vu(Xu,Cs)}var $c=1/0,c0=$c,Wf=-$c,wh=Wf,Yf={point:f0,lineStart:k,lineEnd:k,polygonStart:k,polygonEnd:k,result:function(){var Ae=[[$c,c0],[Wf,wh]];return Wf=wh=-(c0=$c=1/0),Ae}};function f0(Ae,qe){Ae<$c&&($c=Ae),Ae>Wf&&(Wf=Ae),qewh&&(wh=qe)}var Uv=0,Th=0,xp=0,h0=0,td=0,rd=0,Vv=0,Gv=0,Wc=0,bp,Ah,Zu,Ds,Ho={point:ku,lineStart:id,lineEnd:Hv,polygonStart:function(){Ho.lineStart=bg,Ho.lineEnd=ny},polygonEnd:function(){Ho.point=ku,Ho.lineStart=id,Ho.lineEnd=Hv},result:function(){var Ae=Wc?[Vv/Wc,Gv/Wc]:rd?[h0/rd,td/rd]:xp?[Uv/xp,Th/xp]:[NaN,NaN];return Uv=Th=xp=h0=td=rd=Vv=Gv=Wc=0,Ae}};function ku(Ae,qe){Uv+=Ae,Th+=qe,++xp}function id(){Ho.point=Mh}function Mh(Ae,qe){Ho.point=d0,ku(Zu=Ae,Ds=qe)}function d0(Ae,qe){var et=Ae-Zu,Ye=qe-Ds,Tt=T(et*et+Ye*Ye);h0+=Tt*(Zu+Ae)/2,td+=Tt*(Ds+qe)/2,rd+=Tt,ku(Zu=Ae,Ds=qe)}function Hv(){Ho.point=ku}function bg(){Ho.point=Bx}function ny(){Sh(bp,Ah)}function Bx(Ae,qe){Ho.point=Sh,ku(bp=Zu=Ae,Ah=Ds=qe)}function Sh(Ae,qe){var et=Ae-Zu,Ye=qe-Ds,Tt=T(et*et+Ye*Ye);h0+=Tt*(Zu+Ae)/2,td+=Tt*(Ds+qe)/2,rd+=Tt,Tt=Ds*Ae-Zu*qe,Vv+=Tt*(Zu+Ae),Gv+=Tt*(Ds+qe),Wc+=Tt*3,ku(Zu=Ae,Ds=qe)}function Vs(Ae){this._context=Ae}Vs.prototype={_radius:4.5,pointRadius:function(Ae){return this._radius=Ae,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(Ae,qe){switch(this._point){case 0:{this._context.moveTo(Ae,qe),this._point=1;break}case 1:{this._context.lineTo(Ae,qe);break}default:{this._context.moveTo(Ae+this._radius,qe),this._context.arc(Ae,qe,this._radius,0,f);break}}},result:k};var jv=r(),$v,Eh,_g,nd,_p,mf={point:k,lineStart:function(){mf.point=Wv},lineEnd:function(){$v&&wp(Eh,_g),mf.point=k},polygonStart:function(){$v=!0},polygonEnd:function(){$v=null},result:function(){var Ae=+jv;return jv.reset(),Ae}};function Wv(Ae,qe){mf.point=wp,Eh=nd=Ae,_g=_p=qe}function wp(Ae,qe){nd-=Ae,_p-=qe,jv.add(T(nd*nd+_p*_p)),nd=Ae,_p=qe}function ad(){this._string=[]}ad.prototype={_radius:4.5,_circle:wg(4.5),pointRadius:function(Ae){return(Ae=+Ae)!==this._radius&&(this._radius=Ae,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(Ae,qe){switch(this._point){case 0:{this._string.push("M",Ae,",",qe),this._point=1;break}case 1:{this._string.push("L",Ae,",",qe);break}default:{this._circle==null&&(this._circle=wg(this._radius)),this._string.push("M",Ae,",",qe,this._circle);break}}},result:function(){if(this._string.length){var Ae=this._string.join("");return this._string=[],Ae}else return null}};function wg(Ae){return"m0,"+Ae+"a"+Ae+","+Ae+" 0 1,1 0,"+-2*Ae+"a"+Ae+","+Ae+" 0 1,1 0,"+2*Ae+"z"}function Tg(Ae,qe){var et=4.5,Ye,Tt;function jt(Qt){return Qt&&(typeof et=="function"&&Tt.pointRadius(+et.apply(this,arguments)),I(Qt,Ye(Tt))),Tt.result()}return jt.area=function(Qt){return I(Qt,Ye(bo)),bo.result()},jt.measure=function(Qt){return I(Qt,Ye(mf)),mf.result()},jt.bounds=function(Qt){return I(Qt,Ye(Yf)),Yf.result()},jt.centroid=function(Qt){return I(Qt,Ye(Ho)),Ho.result()},jt.projection=function(Qt){return arguments.length?(Ye=Qt==null?(Ae=null,$l):(Ae=Qt).stream,jt):Ae},jt.context=function(Qt){return arguments.length?(Tt=Qt==null?(qe=null,new ad):new Vs(qe=Qt),typeof et!="function"&&Tt.pointRadius(et),jt):qe},jt.pointRadius=function(Qt){return arguments.length?(et=typeof Qt=="function"?Qt:(Tt.pointRadius(+Qt),+Qt),jt):et},jt.projection(Ae).context(qe)}function ay(Ae){return{stream:Xf(Ae)}}function Xf(Ae){return function(qe){var et=new Yv;for(var Ye in Ae)et[Ye]=Ae[Ye];return et.stream=qe,et}}function Yv(){}Yv.prototype={constructor:Yv,point:function(Ae,qe){this.stream.point(Ae,qe)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};function Zf(Ae,qe,et){var Ye=Ae.clipExtent&&Ae.clipExtent();return Ae.scale(150).translate([0,0]),Ye!=null&&Ae.clipExtent(null),I(et,Ae.stream(Yf)),qe(Yf.result()),Ye!=null&&Ae.clipExtent(Ye),Ae}function Tp(Ae,qe,et){return Zf(Ae,function(Ye){var Tt=qe[1][0]-qe[0][0],jt=qe[1][1]-qe[0][1],Qt=Math.min(Tt/(Ye[1][0]-Ye[0][0]),jt/(Ye[1][1]-Ye[0][1])),cr=+qe[0][0]+(Tt-Qt*(Ye[1][0]+Ye[0][0]))/2,yr=+qe[0][1]+(jt-Qt*(Ye[1][1]+Ye[0][1]))/2;Ae.scale(150*Qt).translate([cr,yr])},et)}function xc(Ae,qe,et){return Tp(Ae,[[0,0],qe],et)}function od(Ae,qe,et){return Zf(Ae,function(Ye){var Tt=+qe,jt=Tt/(Ye[1][0]-Ye[0][0]),Qt=(Tt-jt*(Ye[1][0]+Ye[0][0]))/2,cr=-jt*Ye[0][1];Ae.scale(150*jt).translate([Qt,cr])},et)}function Kf(Ae,qe,et){return Zf(Ae,function(Ye){var Tt=+qe,jt=Tt/(Ye[1][1]-Ye[0][1]),Qt=-jt*Ye[0][0],cr=(Tt-jt*(Ye[1][1]+Ye[0][1]))/2;Ae.scale(150*jt).translate([Qt,cr])},et)}var Ag=16,Xv=g(30*p);function Mg(Ae,qe){return+qe?Ap(Ae,qe):Zv(Ae)}function Zv(Ae){return Xf({point:function(qe,et){qe=Ae(qe,et),this.stream.point(qe[0],qe[1])}})}function Ap(Ae,qe){function et(Ye,Tt,jt,Qt,cr,yr,Rr,nr,dr,vr,Pr,$r,Oi,Di){var ji=Rr-Ye,en=nr-Tt,Zr=ji*ji+en*en;if(Zr>4*qe&&Oi--){var si=Qt+vr,cn=cr+Pr,Dn=yr+$r,wa=T(si*si+cn*cn+Dn*Dn),Ka=M(Dn/=wa),Ia=d(d(Dn)-1)qe||d((ji*ls+en*yo)/Zr-.5)>.3||Qt*vr+cr*Pr+yr*$r2?pi[2]%360*p:0,ls()):[cr*h,yr*h,Rr*h]},ca.angle=function(pi){return arguments.length?(dr=pi%360*p,ls()):dr*h},ca.reflectX=function(pi){return arguments.length?(vr=pi?-1:1,ls()):vr<0},ca.reflectY=function(pi){return arguments.length?(Pr=pi?-1:1,ls()):Pr<0},ca.precision=function(pi){return arguments.length?(Dn=Mg(wa,cn=pi*pi),yo()):T(cn)},ca.fitExtent=function(pi,Da){return Tp(ca,pi,Da)},ca.fitSize=function(pi,Da){return xc(ca,pi,Da)},ca.fitWidth=function(pi,Da){return od(ca,pi,Da)},ca.fitHeight=function(pi,Da){return Kf(ca,pi,Da)};function ls(){var pi=Ku(et,0,0,vr,Pr,dr).apply(null,qe(jt,Qt)),Da=(dr?Ku:oy)(et,Ye-pi[0],Tt-pi[1],vr,Pr,dr);return nr=la(cr,yr,Rr),wa=Xi(qe,Da),Ka=Xi(nr,wa),Dn=Mg(wa,cn),yo()}function yo(){return Ia=_o=null,ca}return function(){return qe=Ae.apply(this,arguments),ca.invert=qe.invert&&vl,ls()}}function Cu(Ae){var qe=0,et=l/3,Ye=Sg(Ae),Tt=Ye(qe,et);return Tt.parallels=function(jt){return arguments.length?Ye(qe=jt[0]*p,et=jt[1]*p):[qe*h,et*h]},Tt}function Mp(Ae){var qe=g(Ae);function et(Ye,Tt){return[Ye*qe,x(Tt)/qe]}return et.invert=function(Ye,Tt){return[Ye/qe,M(Tt*qe)]},et}function p0(Ae,qe){var et=x(Ae),Ye=(et+x(qe))/2;if(d(Ye)=.12&&Di<.234&&Oi>=-.425&&Oi<-.214?Tt:Di>=.166&&Di<.234&&Oi>=-.214&&Oi<-.115?Qt:et).invert(vr)},nr.stream=function(vr){return Ae&&qe===vr?Ae:Ae=sy([et.stream(qe=vr),Tt.stream(vr),Qt.stream(vr)])},nr.precision=function(vr){return arguments.length?(et.precision(vr),Tt.precision(vr),Qt.precision(vr),dr()):et.precision()},nr.scale=function(vr){return arguments.length?(et.scale(vr),Tt.scale(vr*.35),Qt.scale(vr),nr.translate(et.translate())):et.scale()},nr.translate=function(vr){if(!arguments.length)return et.translate();var Pr=et.scale(),$r=+vr[0],Oi=+vr[1];return Ye=et.translate(vr).clipExtent([[$r-.455*Pr,Oi-.238*Pr],[$r+.455*Pr,Oi+.238*Pr]]).stream(Rr),jt=Tt.translate([$r-.307*Pr,Oi+.201*Pr]).clipExtent([[$r-.425*Pr+o,Oi+.12*Pr+o],[$r-.214*Pr-o,Oi+.234*Pr-o]]).stream(Rr),cr=Qt.translate([$r-.205*Pr,Oi+.212*Pr]).clipExtent([[$r-.214*Pr+o,Oi+.166*Pr+o],[$r-.115*Pr-o,Oi+.234*Pr-o]]).stream(Rr),dr()},nr.fitExtent=function(vr,Pr){return Tp(nr,vr,Pr)},nr.fitSize=function(vr,Pr){return xc(nr,vr,Pr)},nr.fitWidth=function(vr,Pr){return od(nr,vr,Pr)},nr.fitHeight=function(vr,Pr){return Kf(nr,vr,Pr)};function dr(){return Ae=qe=null,nr}return nr.scale(1070)}function yf(Ae){return function(qe,et){var Ye=g(qe),Tt=g(et),jt=Ae(Ye*Tt);return[jt*Tt*x(qe),jt*x(et)]}}function xf(Ae){return function(qe,et){var Ye=T(qe*qe+et*et),Tt=Ae(Ye),jt=x(Tt),Qt=g(Tt);return[m(qe*jt,Ye*Qt),M(Ye&&et*jt/Ye)]}}var Ju=yf(function(Ae){return T(2/(1+Ae))});Ju.invert=xf(function(Ae){return 2*M(Ae/2)});function qx(){return Yc(Ju).scale(124.75).clipAngle(180-.001)}var sd=yf(function(Ae){return(Ae=E(Ae))&&Ae/x(Ae)});sd.invert=xf(function(Ae){return Ae});function uy(){return Yc(sd).scale(79.4188).clipAngle(180-.001)}function bc(Ae,qe){return[Ae,b(y((u+qe)/2))]}bc.invert=function(Ae,qe){return[Ae,2*v(_(qe))-u]};function Qv(){return Sp(bc).scale(961/f)}function Sp(Ae){var qe=Yc(Ae),et=qe.center,Ye=qe.scale,Tt=qe.translate,jt=qe.clipExtent,Qt=null,cr,yr,Rr;qe.scale=function(dr){return arguments.length?(Ye(dr),nr()):Ye()},qe.translate=function(dr){return arguments.length?(Tt(dr),nr()):Tt()},qe.center=function(dr){return arguments.length?(et(dr),nr()):et()},qe.clipExtent=function(dr){return arguments.length?(dr==null?Qt=cr=yr=Rr=null:(Qt=+dr[0][0],cr=+dr[0][1],yr=+dr[1][0],Rr=+dr[1][1]),nr()):Qt==null?null:[[Qt,cr],[yr,Rr]]};function nr(){var dr=l*Ye(),vr=qe(gn(qe.rotate()).invert([0,0]));return jt(Qt==null?[[vr[0]-dr,vr[1]-dr],[vr[0]+dr,vr[1]+dr]]:Ae===bc?[[Math.max(vr[0]-dr,Qt),cr],[Math.min(vr[0]+dr,yr),Rr]]:[[Qt,Math.max(vr[1]-dr,cr)],[yr,Math.min(vr[1]+dr,Rr)]])}return nr()}function Ep(Ae){return y((u+Ae)/2)}function cy(Ae,qe){var et=g(Ae),Ye=Ae===qe?x(Ae):b(et/g(qe))/b(Ep(qe)/Ep(Ae)),Tt=et*S(Ep(Ae),Ye)/Ye;if(!Ye)return bc;function jt(Qt,cr){Tt>0?cr<-u+o&&(cr=-u+o):cr>u-o&&(cr=u-o);var yr=Tt/S(Ep(cr),Ye);return[yr*x(Ye*Qt),Tt-yr*g(Ye*Qt)]}return jt.invert=function(Qt,cr){var yr=Tt-cr,Rr=A(Ye)*T(Qt*Qt+yr*yr),nr=m(Qt,d(yr))*A(yr);return yr*Ye<0&&(nr-=l*A(Qt)*A(yr)),[nr/Ye,2*v(S(Tt/Rr,1/Ye))-u]},jt}function kp(){return Cu(cy).scale(109.5).parallels([30,30])}function Ch(Ae,qe){return[Ae,qe]}Ch.invert=Ch;function ld(){return Yc(Ch).scale(152.63)}function Cp(Ae,qe){var et=g(Ae),Ye=Ae===qe?x(Ae):(et-g(qe))/(qe-Ae),Tt=et/Ye+Ae;if(d(Ye)o&&--Ye>0);return[Ae/(.8707+(jt=et*et)*(-.131979+jt*(-.013791+jt*jt*jt*(.003971-.001529*jt)))),et]};function t1(){return Yc(Cg).scale(175.295)}function pl(Ae,qe){return[g(qe)*x(Ae),x(qe)]}pl.invert=xf(M);function Xc(){return Yc(pl).scale(249.5).clipAngle(90+o)}function Pp(Ae,qe){var et=g(qe),Ye=1+g(Ae)*et;return[et*x(Ae)/Ye,x(qe)/Ye]}Pp.invert=xf(function(Ae){return 2*v(Ae)});function Dg(){return Yc(Pp).scale(250).clipAngle(142)}function Ip(Ae,qe){return[b(y((u+qe)/2)),-Ae]}Ip.invert=function(Ae,qe){return[-qe,2*v(_(Ae))-u]};function Rp(){var Ae=Sp(Ip),qe=Ae.center,et=Ae.rotate;return Ae.center=function(Ye){return arguments.length?qe([-Ye[1],Ye[0]]):(Ye=qe(),[Ye[1],-Ye[0]])},Ae.rotate=function(Ye){return arguments.length?et([Ye[0],Ye[1],Ye.length>2?Ye[2]+90:90]):(Ye=et(),[Ye[0],Ye[1],Ye[2]-90])},et([0,0,90]).scale(159.155)}e.geoAlbers=Eg,e.geoAlbersUsa=ly,e.geoArea=j,e.geoAzimuthalEqualArea=qx,e.geoAzimuthalEqualAreaRaw=Ju,e.geoAzimuthalEquidistant=uy,e.geoAzimuthalEquidistantRaw=sd,e.geoBounds=bt,e.geoCentroid=Fr,e.geoCircle=as,e.geoClipAntimeridian=lt,e.geoClipCircle=Ar,e.geoClipExtent=Si,e.geoClipRectangle=ni,e.geoConicConformal=kp,e.geoConicConformalRaw=cy,e.geoConicEqualArea=kh,e.geoConicEqualAreaRaw=p0,e.geoConicEquidistant=fy,e.geoConicEquidistantRaw=Cp,e.geoContains=jl,e.geoDistance=ss,e.geoEqualEarth=kg,e.geoEqualEarthRaw=Lp,e.geoEquirectangular=ld,e.geoEquirectangularRaw=Ch,e.geoGnomonic=hy,e.geoGnomonicRaw=e1,e.geoGraticule=Mu,e.geoGraticule10=Su,e.geoIdentity=dy,e.geoInterpolate=yc,e.geoLength=ms,e.geoMercator=Qv,e.geoMercatorRaw=bc,e.geoNaturalEarth1=t1,e.geoNaturalEarth1Raw=Cg,e.geoOrthographic=Xc,e.geoOrthographicRaw=pl,e.geoPath=Tg,e.geoProjection=Yc,e.geoProjectionMutator=Sg,e.geoRotation=gn,e.geoStereographic=Dg,e.geoStereographicRaw=Pp,e.geoStream=I,e.geoTransform=ay,e.geoTransverseMercator=Rp,e.geoTransverseMercatorRaw=Ip,Object.defineProperty(e,"__esModule",{value:!0})}))});var OVe=W((pJr,qVe)=>{"use strict";var BVe={alabama:"AL",alaska:"AK",arizona:"AZ",arkansas:"AR",california:"CA",colorado:"CO",connecticut:"CT",delaware:"DE","district of columbia":"DC",florida:"FL",georgia:"GA",hawaii:"HI",idaho:"ID",illinois:"IL",indiana:"IN",iowa:"IA",kansas:"KS",kentucky:"KY",louisiana:"LA",maine:"ME",maryland:"MD",massachusetts:"MA",michigan:"MI",minnesota:"MN",mississippi:"MS",missouri:"MO",montana:"MT",nebraska:"NE",nevada:"NV","new hampshire":"NH","new jersey":"NJ","new mexico":"NM","new york":"NY","north carolina":"NC","north dakota":"ND",ohio:"OH",oklahoma:"OK",oregon:"OR",pennsylvania:"PA","rhode island":"RI","south carolina":"SC","south dakota":"SD",tennessee:"TN",texas:"TX",utah:"UT",vermont:"VT",virginia:"VA",washington:"WA","washington dc":"DC","washington d.c.":"DC","west virginia":"WV",wisconsin:"WI",wyoming:"WY"},tlr=new Set(Object.values(BVe));qVe.exports={usaLocationAbbreviations:tlr,usaLocationList:BVe}});var NVe={};Jn(NVe,{COUNTRIES_X:()=>rlr});var rlr,UVe=Ci(()=>{"use strict";rlr=[{iso3:"XAC",iso2:"",m49:"",name:"Aksai Chin",aliases:[]},{iso3:"XAP",iso2:"",m49:"",name:"Arunachal Pradesh",aliases:[]},{iso3:"XBT",iso2:"",m49:"",name:"Bir Tawil",aliases:[]},{iso3:"XHT",iso2:"",m49:"",name:"Halaib Triangle",aliases:[]},{iso3:"XIT",iso2:"",m49:"",name:"Ilemi Triangle",aliases:[]},{iso3:"XJK",iso2:"",m49:"",name:"Jammu and Kashmir",aliases:[]}]});var Am=W((vJr,HVe)=>{"use strict";var ilr=gi(),{COUNTRIES:nlr,createLookup:alr}=mVe(),{area:olr}=FVe(),{centroid:slr}=PVe(),{coordAll:llr}=MR(),{geoBounds:ulr}=DR(),clr=gA(),q2=qg(),flr=my(),hlr=U6(),FR=nM(),{usaLocationAbbreviations:dlr,usaLocationList:plr}=OVe(),{COUNTRIES_X:vlr}=(UVe(),Pt(NVe)),{lookupAlpha3:glr}=alr([...nlr,...vlr]),mlr={"ISO-3":clr,"USA-states":xlr,"country names":ylr};function ylr(e){let t=glr(e);return t||(q2.log("Unrecognized country name: "+e+"."),!1)}function xlr(e){e=e.trim();let t=dlr.has(e.toUpperCase())?e.toUpperCase():plr[e.toLowerCase()];return t||(q2.log("Unrecognized US location: "+e+"."),!1)}function blr(e,t,r){var n;if(!t||typeof t!="string")return!1;let i=mlr[e](t);if(i){let a;if(e==="USA-states"){a=[];for(let o of r)((n=o==null?void 0:o.properties)==null?void 0:n.gu)==="USA"&&a.push(o)}else a=r;for(let o of a)if(o.id===i)return o;q2.log(`Location with id ${i} does not have a matching topojson feature at this resolution.`)}return!1}var LR=360;function JQ(e){for(let t=0;t0&&e[t+1][0]<0)return t;return null}function _lr(e){var t=e.geometry,r=t.coordinates,i=e.id,n=[],a,o,s,l;switch(i==="RUS"||i==="FJI"?a=function(u){var c;if(JQ(u)===null)c=u;else for(c=new Array(u.length),l=0;lc?f[h++]=[u[l][0]+LR,u[l][1]]:l===c?(f[h++]=u[l],f[h++]=[u[l][0],-90]):f[h++]=u[l];var p=FR.tester(f);p.pts.pop(),n.push(p)}:a=function(u){n.push(FR.tester(u))},t.type){case"MultiPolygon":for(o=0;on&&(n=s,r=o)}else r=t;return!r||!r.coordinates.some(l=>l.length>0)?[NaN,NaN]:slr(r).geometry.coordinates}function Alr(e){var t=window.PlotlyGeoAssets||{},r=[];function i(l){return new Promise(function(u,c){ilr.json(l,function(f,h){if(f){delete t[l];var p=f.status===404?'GeoJSON at URL "'+l+'" does not exist.':"Unexpected error while fetching from "+l;return c(new Error(p))}return t[l]=h,u(h)})})}function n(l){return new Promise(function(u,c){var f=0,h=setInterval(function(){if(t[l]&&t[l]!=="pending")return clearInterval(h),u(t[l]);if(f>100)return clearInterval(h),c("Unexpected error while fetching from "+l);f++},50)})}for(var a=0;atee(eee(e));function eee(e){try{return llr(e)}catch(t){return[]}}function tee(e){if(e.length===0)return null;if(e.length===1){let[a,o]=e[0];return[a,o,a,o]}let[[t,r],[i,n]]=ulr({type:"MultiPoint",coordinates:e});return[t,r,GVe([t,i])[1],n]}var Slr=(e,t)=>t.fitbounds==="geojson"&&e.locationmode==="geojson-id",VVe=(e,t)=>Slr(e,t)?eee(QQ(e)):[],Elr=(e,t)=>tee(VVe(e,t));function GVe([e,t]){return[e,e>t?t+LR:t]}HVe.exports={locationToFeature:blr,feature2polygons:_lr,getTraceGeojson:QQ,extractTraceFeature:wlr,fetchTraceGeoData:Alr,boundsOfCoords:tee,computeBbox:Mlr,coordsOf:eee,doesCrossAntiMeridian:JQ,fitGeojsonBbox:Elr,fitGeojsonCoords:VVe,unwrapLonRange:GVe,ANTIMERIDIAN_LON_SHIFT:LR}});var ree=W((gJr,WVe)=>{"use strict";var klr=gi(),Clr=Qi(),jVe=ti(),$Ve=lh(),Dlr=$Ve.stylePoints,Flr=$Ve.styleText;WVe.exports=function(t,r){r&&Llr(t,r)};function Llr(e,t){var r=t[0].trace,i=t[0].node3;i.style("opacity",t[0].trace.opacity),Dlr(i,r,e),Flr(i,r,e),i.selectAll("path.js-line").style("fill","none").each(function(n){var a=klr.select(this),o=n.trace,s=o.line||{};a.call(jVe.stroke,s.color).call(Clr.dashLine,s.dash||"",s.width||0),o.fill!=="none"&&a.call(jVe.fill,o.fillcolor)})}});var RR=W((mJr,ZVe)=>{"use strict";var YVe=gi(),PR=tt(),Plr=xR().getTopojsonFeatures,iee=IE(),IR=Am(),XVe=Yp().findExtremes,aee=(ra(),Pt(ia)).BADNUM,Ilr=Ld().calcMarkerSize,nee=Wo(),Rlr=ree();function zlr(e,t,r){var i=t.layers.frontplot.select(".scatterlayer"),n=PR.makeTraceGroups(i,r,"trace scattergeo");function a(o,s){o.lonlat[0]===aee&&YVe.select(s).remove()}n.selectAll("*").remove(),n.each(function(o){var s=YVe.select(this),l=o[0].trace;if(nee.hasLines(l)||l.fill!=="none"){var u=iee.calcTraceToLineCoords(o),c=l.fill!=="none"?iee.makePolygon(u):iee.makeLine(u);s.selectAll("path.js-line").data([{geojson:c,trace:l}]).enter().append("path").classed("js-line",!0).style("stroke-miterlimit",2)}nee.hasMarkers(l)&&s.selectAll("path.point").data(PR.identity).enter().append("path").classed("point",!0).each(function(f){a(f,this)}),nee.hasText(l)&&s.selectAll("g").data(PR.identity).enter().append("g").append("text").each(function(f){a(f,this)}),Rlr(e,o)})}function Blr(e,t){var r=e[0].trace,i=t[r.geo],n=i._subplot,a=r._length,o,s;if(PR.isArrayOrTypedArray(r.locations)){var l=r.locationmode,u=l==="geojson-id"?IR.extractTraceFeature(e):Plr(r,n.topojson);for(o=0;o{"use strict";var Olr=Is(),Nlr=(ra(),Pt(ia)).BADNUM,Ulr=s5(),Vlr=tt().fillText,Glr=W4();KVe.exports=function(t,r,i){var n=t.cd,a=n[0].trace,o=t.xa,s=t.ya,l=t.subplot,u=l.projection.isLonLatOverEdges,c=l.project;function f(w){var _=w.lonlat;if(_[0]===Nlr||u(_))return 1/0;var b=c(_),S=c([r,i]),x=Math.abs(b[0]-S[0]),A=Math.abs(b[1]-S[1]),T=Math.max(3,w.mrc||0);return Math.max(Math.sqrt(x*x+A*A)-T,1-3/T)}if(Olr.getClosest(n,f,t),t.index!==!1){var h=n[t.index],p=h.lonlat,d=[o.c2p(p),s.c2p(p)],v=h.mrc||1;t.x0=d[0]-v,t.x1=d[0]+v,t.y0=d[1]-v,t.y1=d[1]+v,t.loc=h.loc,t.lon=p[0],t.lat=p[1];var m={};m[a.geo]={_subplot:l};var g=a._module.formatLabels(h,a,m);return t.lonLabel=g.lonLabel,t.latLabel=g.latLabel,t.color=Ulr(a,h),t.extraText=Hlr(a,h,t,n[0].t.labels),t.hovertemplate=a.hovertemplate,[t]}};function Hlr(e,t,r,i){if(e.hovertemplate)return;var n=t.hi||e.hoverinfo,a=n==="all"?Glr.hoverinfo.flags:n.split("+"),o=a.indexOf("location")!==-1&&Array.isArray(e.locations),s=a.indexOf("lon")!==-1,l=a.indexOf("lat")!==-1,u=a.indexOf("text")!==-1,c=[];function f(h){return h+"\xB0"}return o?c.push(t.loc):s&&l?c.push("("+f(r.latLabel)+", "+f(r.lonLabel)+")"):s?c.push(i.lon+f(r.lonLabel)):l&&c.push(i.lat+f(r.latLabel)),u&&Vlr(t,e,c),c.join("
")}});var eGe=W((xJr,QVe)=>{"use strict";QVe.exports=function(t,r,i,n,a){t.lon=r.lon,t.lat=r.lat,t.location=r.loc?r.loc:null;var o=n[a];return o.fIn&&o.fIn.properties&&(t.properties=o.fIn.properties),t}});var iGe=W((bJr,rGe)=>{"use strict";var tGe=Wo(),jlr=(ra(),Pt(ia)).BADNUM;rGe.exports=function(t,r){var i=t.cd,n=t.xaxis,a=t.yaxis,o=[],s=i[0].trace,l,u,c,f,h,p=!tGe.hasMarkers(s)&&!tGe.hasText(s);if(p)return[];if(r===!1)for(h=0;h{(function(e,t){t(typeof zR=="object"&&typeof nGe!="undefined"?zR:e.d3=e.d3||{})})(zR,(function(e){"use strict";function t(N,V){return NV?1:N>=V?0:NaN}function r(N){return N.length===1&&(N=i(N)),{left:function(V,Y,H,j){for(H==null&&(H=0),j==null&&(j=V.length);H>>1;N(V[Q],Y)<0?H=Q+1:j=Q}return H},right:function(V,Y,H,j){for(H==null&&(H=0),j==null&&(j=V.length);H>>1;N(V[Q],Y)>0?j=Q:H=Q+1}return H}}}function i(N){return function(V,Y){return t(N(V),Y)}}var n=r(t),a=n.right,o=n.left;function s(N,V){V==null&&(V=l);for(var Y=0,H=N.length-1,j=N[0],Q=new Array(H<0?0:H);YN?1:V>=N?0:NaN}function f(N){return N===null?NaN:+N}function h(N,V){var Y=N.length,H=0,j=-1,Q=0,te,ue,ge=0;if(V==null)for(;++j1)return ge/(H-1)}function p(N,V){var Y=h(N,V);return Y&&Math.sqrt(Y)}function d(N,V){var Y=N.length,H=-1,j,Q,te;if(V==null){for(;++H=j)for(Q=te=j;++Hj&&(Q=j),te=j)for(Q=te=j;++Hj&&(Q=j),te0)return[N];if((H=V0)for(N=Math.ceil(N/ue),V=Math.floor(V/ue),te=new Array(Q=Math.ceil(V-N+1));++j=0?(Q>=S?10:Q>=x?5:Q>=A?2:1)*Math.pow(10,j):-Math.pow(10,-j)/(Q>=S?10:Q>=x?5:Q>=A?2:1)}function E(N,V,Y){var H=Math.abs(V-N)/Math.max(0,Y),j=Math.pow(10,Math.floor(Math.log(H)/Math.LN10)),Q=H/j;return Q>=S?j*=10:Q>=x?j*=5:Q>=A&&(j*=2),Vce;)oe.pop(),--Se;var be=new Array(Se+1),fe;for(Q=0;Q<=Se;++Q)fe=be[Q]=[],fe.x0=Q>0?oe[Q-1]:xe,fe.x1=Q=1)return+Y(N[H-1],H-1,N);var H,j=(H-1)*V,Q=Math.floor(j),te=+Y(N[Q],Q,N),ue=+Y(N[Q+1],Q+1,N);return te+(ue-te)*(j-Q)}}function D(N,V,Y){return N=g.call(N,f).sort(t),Math.ceil((Y-V)/(2*(k(N,.75)-k(N,.25))*Math.pow(N.length,-1/3)))}function F(N,V,Y){return Math.ceil((Y-V)/(3.5*p(N)*Math.pow(N.length,-1/3)))}function P(N,V){var Y=N.length,H=-1,j,Q;if(V==null){for(;++H=j)for(Q=j;++HQ&&(Q=j)}else for(;++H=j)for(Q=j;++HQ&&(Q=j);return Q}function R(N,V){var Y=N.length,H=Y,j=-1,Q,te=0;if(V==null)for(;++j=0;)for(te=N[V],Y=te.length;--Y>=0;)Q[--j]=te[Y];return Q}function B(N,V){var Y=N.length,H=-1,j,Q;if(V==null){for(;++H=j)for(Q=j;++Hj&&(Q=j)}else for(;++H=j)for(Q=j;++Hj&&(Q=j);return Q}function O(N,V){for(var Y=V.length,H=new Array(Y);Y--;)H[Y]=N[V[Y]];return H}function $(N,V){if(Y=N.length){var Y,H=0,j=0,Q,te=N[j];for(V==null&&(V=t);++H{(function(e,t){typeof BR=="object"&&typeof oGe!="undefined"?t(BR,DR(),aGe()):t(e.d3=e.d3||{},e.d3,e.d3)})(BR,(function(e,t,r){"use strict";var i=Math.abs,n=Math.atan,a=Math.atan2,o=Math.cos,s=Math.exp,l=Math.floor,u=Math.log,c=Math.max,f=Math.min,h=Math.pow,p=Math.round,d=Math.sign||function(ie){return ie>0?1:ie<0?-1:0},v=Math.sin,m=Math.tan,g=1e-6,w=1e-12,_=Math.PI,b=_/2,S=_/4,x=Math.SQRT1_2,A=F(2),T=F(_),y=_*2,E=180/_,M=_/180;function C(ie){return ie?ie/Math.sin(ie):1}function k(ie){return ie>1?b:ie<-1?-b:Math.asin(ie)}function D(ie){return ie>1?0:ie<-1?_:Math.acos(ie)}function F(ie){return ie>0?Math.sqrt(ie):0}function P(ie){return ie=s(2*ie),(ie-1)/(ie+1)}function R(ie){return(s(ie)-s(-ie))/2}function L(ie){return(s(ie)+s(-ie))/2}function I(ie){return u(ie+F(ie*ie+1))}function B(ie){return u(ie+F(ie*ie-1))}function O(ie){var se=m(ie/2),de=2*u(o(ie/2))/(se*se);function ve(ke,Me){var Pe=o(ke),Ze=o(Me),it=v(Me),Xe=Ze*Pe,at=-((1-Xe?u((1+Xe)/2)/(1-Xe):-.5)+de/(1+Xe));return[at*Ze*v(ke),at*it]}return ve.invert=function(ke,Me){var Pe=F(ke*ke+Me*Me),Ze=-ie/2,it=50,Xe;if(!Pe)return[0,0];do{var at=Ze/2,xt=o(at),It=v(at),Gt=It/xt,or=-u(i(xt));Ze-=Xe=(2/Gt*or-de*Gt-Pe)/(-or/(It*It)+1-de/(2*xt*xt))*(xt<0?.7:1)}while(i(Xe)>g&&--it>0);var Mr=v(Ze);return[a(ke*Mr,Pe*o(Ze)),k(Me*Mr/Pe)]},ve}function $(){var ie=b,se=t.geoProjectionMutator(O),de=se(ie);return de.radius=function(ve){return arguments.length?se(ie=ve*M):ie*E},de.scale(179.976).clipAngle(147)}function X(ie,se){var de=o(se),ve=C(D(de*o(ie/=2)));return[2*de*v(ie)*ve,v(se)*ve]}X.invert=function(ie,se){if(!(ie*ie+4*se*se>_*_+g)){var de=ie,ve=se,ke=25;do{var Me=v(de),Pe=v(de/2),Ze=o(de/2),it=v(ve),Xe=o(ve),at=v(2*ve),xt=it*it,It=Xe*Xe,Gt=Pe*Pe,or=1-It*Ze*Ze,Mr=or?D(Xe*Ze)*F(Gr=1/or):Gr=0,Gr,_i=2*Mr*Xe*Pe-ie,on=Mr*it-se,mn=Gr*(It*Gt+Mr*Xe*Ze*xt),Tn=Gr*(.5*Me*at-Mr*2*it*Pe),Pn=Gr*.25*(at*Pe-Mr*it*It*Me),no=Gr*(xt*Ze+Mr*Gt*Xe),Do=Tn*Pn-no*mn;if(!Do)break;var fa=(on*Tn-_i*no)/Do,us=(_i*Pn-on*mn)/Do;de-=fa,ve-=us}while((i(fa)>g||i(us)>g)&&--ke>0);return[de,ve]}};function K(){return t.geoProjection(X).scale(152.63)}function G(ie){var se=v(ie),de=o(ie),ve=ie>=0?1:-1,ke=m(ve*ie),Me=(1+se-de)/2;function Pe(Ze,it){var Xe=o(it),at=o(Ze/=2);return[(1+Xe)*v(Ze),(ve*it>-a(at,ke)-.001?0:-ve*10)+Me+v(it)*de-(1+Xe)*se*at]}return Pe.invert=function(Ze,it){var Xe=0,at=0,xt=50;do{var It=o(Xe),Gt=v(Xe),or=o(at),Mr=v(at),Gr=1+or,_i=Gr*Gt-Ze,on=Me+Mr*de-Gr*se*It-it,mn=Gr*It/2,Tn=-Gt*Mr,Pn=se*Gr*Gt/2,no=de*or+se*It*Mr,Do=Tn*Pn-no*mn,fa=(on*Tn-_i*no)/Do/2,us=(_i*Pn-on*mn)/Do;i(us)>2&&(us/=2),Xe-=fa,at-=us}while((i(fa)>g||i(us)>g)&&--xt>0);return ve*at>-a(o(Xe),ke)-.001?[Xe*2,at]:null},Pe}function q(){var ie=20*M,se=ie>=0?1:-1,de=m(se*ie),ve=t.geoProjectionMutator(G),ke=ve(ie),Me=ke.stream;return ke.parallel=function(Pe){return arguments.length?(de=m((se=(ie=Pe*M)>=0?1:-1)*ie),ve(ie)):ie*E},ke.stream=function(Pe){var Ze=ke.rotate(),it=Me(Pe),Xe=(ke.rotate([0,0]),Me(Pe)),at=ke.precision();return ke.rotate(Ze),it.sphere=function(){Xe.polygonStart(),Xe.lineStart();for(var xt=se*-180;se*xt<180;xt+=se*90)Xe.point(xt,se*90);if(ie)for(;se*(xt-=3*se*at)>=-180;)Xe.point(xt,se*-a(o(xt*M/2),de)*E);Xe.lineEnd(),Xe.polygonEnd()},it},ke.scale(218.695).center([0,28.0974])}function J(ie,se){var de=m(se/2),ve=F(1-de*de),ke=1+ve*o(ie/=2),Me=v(ie)*ve/ke,Pe=de/ke,Ze=Me*Me,it=Pe*Pe;return[4/3*Me*(3+Ze-3*it),4/3*Pe*(3+3*Ze-it)]}J.invert=function(ie,se){if(ie*=3/8,se*=3/8,!ie&&i(se)>1)return null;var de=ie*ie,ve=se*se,ke=1+de+ve,Me=F((ke-F(ke*ke-4*se*se))/2),Pe=k(Me)/3,Ze=Me?B(i(se/Me))/3:I(i(ie))/3,it=o(Pe),Xe=L(Ze),at=Xe*Xe-it*it;return[d(ie)*2*a(R(Ze)*it,.25-at),d(se)*2*a(Xe*v(Pe),.25+at)]};function N(){return t.geoProjection(J).scale(66.1603)}var V=F(8),Y=u(1+A);function H(ie,se){var de=i(se);return dew&&--ve>0);return[ie/(o(de)*(V-1/v(de))),d(se)*de]};function j(){return t.geoProjection(H).scale(112.314)}function Q(ie){var se=2*_/ie;function de(ve,ke){var Me=t.geoAzimuthalEquidistantRaw(ve,ke);if(i(ve)>b){var Pe=a(Me[1],Me[0]),Ze=F(Me[0]*Me[0]+Me[1]*Me[1]),it=se*p((Pe-b)/se)+b,Xe=a(v(Pe-=it),2-o(Pe));Pe=it+k(_/Ze*v(Xe))-Xe,Me[0]=Ze*o(Pe),Me[1]=Ze*v(Pe)}return Me}return de.invert=function(ve,ke){var Me=F(ve*ve+ke*ke);if(Me>b){var Pe=a(ke,ve),Ze=se*p((Pe-b)/se)+b,it=Pe>Ze?-1:1,Xe=Me*o(Ze-Pe),at=1/m(it*D((Xe-_)/F(_*(_-2*Xe)+Me*Me)));Pe=Ze+2*n((at+it*F(at*at-3))/3),ve=Me*o(Pe),ke=Me*v(Pe)}return t.geoAzimuthalEquidistantRaw.invert(ve,ke)},de}function te(){var ie=5,se=t.geoProjectionMutator(Q),de=se(ie),ve=de.stream,ke=.01,Me=-o(ke*M),Pe=v(ke*M);return de.lobes=function(Ze){return arguments.length?se(ie=+Ze):ie},de.stream=function(Ze){var it=de.rotate(),Xe=ve(Ze),at=(de.rotate([0,0]),ve(Ze));return de.rotate(it),Xe.sphere=function(){at.polygonStart(),at.lineStart();for(var xt=0,It=360/ie,Gt=2*_/ie,or=90-180/ie,Mr=b;xt0&&i(ke)>g);return ve<0?NaN:de}function ce(ie,se,de){return se===void 0&&(se=40),de===void 0&&(de=w),function(ve,ke,Me,Pe){var Ze,it,Xe;Me=Me===void 0?0:+Me,Pe=Pe===void 0?0:+Pe;for(var at=0;atZe){Me-=it/=2,Pe-=Xe/=2;continue}Ze=or;var Mr=(Me>0?-1:1)*de,Gr=(Pe>0?-1:1)*de,_i=ie(Me+Mr,Pe),on=ie(Me,Pe+Gr),mn=(_i[0]-xt[0])/Mr,Tn=(_i[1]-xt[1])/Mr,Pn=(on[0]-xt[0])/Gr,no=(on[1]-xt[1])/Gr,Do=no*mn-Tn*Pn,fa=(i(Do)<.5?.5:1)/Do;if(it=(Gt*Pn-It*no)*fa,Xe=(It*Tn-Gt*mn)*fa,Me+=it,Pe+=Xe,i(it)0&&(Ze[1]*=1+it/1.5*Ze[0]*Ze[0]),Ze}return ve.invert=ce(ve),ve}function Se(){return t.geoProjection(oe()).rotate([-16.5,-42]).scale(176.57).center([7.93,.09])}function be(ie,se){var de=ie*v(se),ve=30,ke;do se-=ke=(se+v(se)-de)/(1+o(se));while(i(ke)>g&&--ve>0);return se/2}function fe(ie,se,de){function ve(ke,Me){return[ie*ke*o(Me=be(de,Me)),se*v(Me)]}return ve.invert=function(ke,Me){return Me=k(Me/se),[ke/(ie*o(Me)),k((2*Me+v(2*Me))/de)]},ve}var ee=fe(A/b,A,_);function ae(){return t.geoProjection(ee).scale(169.529)}var _e=2.00276,re=1.11072;function pe(ie,se){var de=be(_,se);return[_e*ie/(1/o(se)+re/o(de)),(se+A*v(de))/_e]}pe.invert=function(ie,se){var de=_e*se,ve=se<0?-S:S,ke=25,Me,Pe;do Pe=de-A*v(ve),ve-=Me=(v(2*ve)+2*ve-_*v(Pe))/(2*o(2*ve)+2+_*o(Pe)*A*o(ve));while(i(Me)>g&&--ke>0);return Pe=de-A*v(ve),[ie*(1/o(Pe)+re/o(ve))/_e,Pe]};function Te(){return t.geoProjection(pe).scale(160.857)}function Ce(ie){var se=0,de=t.geoProjectionMutator(ie),ve=de(se);return ve.parallel=function(ke){return arguments.length?de(se=ke*M):se*E},ve}function ze(ie,se){return[ie*o(se),se]}ze.invert=function(ie,se){return[ie/o(se),se]};function we(){return t.geoProjection(ze).scale(152.63)}function me(ie){if(!ie)return ze;var se=1/m(ie);function de(ve,ke){var Me=se+ie-ke,Pe=Me&&ve*o(ke)/Me;return[Me*v(Pe),se-Me*o(Pe)]}return de.invert=function(ve,ke){var Me=F(ve*ve+(ke=se-ke)*ke),Pe=se+ie-Me;return[Me/o(Pe)*a(ve,ke),Pe]},de}function Le(){return Ce(me).scale(123.082).center([0,26.1441]).parallel(45)}function Ne(ie){function se(de,ve){var ke=b-ve,Me=ke&&de*ie*v(ke)/ke;return[ke*v(Me)/ie,b-ke*o(Me)]}return se.invert=function(de,ve){var ke=de*ie,Me=b-ve,Pe=F(ke*ke+Me*Me),Ze=a(ke,Me);return[(Pe?Pe/v(Pe):1)*Ze/ie,b-Pe]},se}function Je(){var ie=.5,se=t.geoProjectionMutator(Ne),de=se(ie);return de.fraction=function(ve){return arguments.length?se(ie=+ve):ie},de.scale(158.837)}var rt=fe(1,4/_,_);function mt(){return t.geoProjection(rt).scale(152.63)}function dt(ie,se,de,ve,ke,Me){var Pe=o(Me),Ze;if(i(ie)>1||i(Me)>1)Ze=D(de*ke+se*ve*Pe);else{var it=v(ie/2),Xe=v(Me/2);Ze=2*k(F(it*it+se*ve*Xe*Xe))}return i(Ze)>g?[Ze,a(ve*v(Me),se*ke-de*ve*Pe)]:[0,0]}function St(ie,se,de){return D((ie*ie+se*se-de*de)/(2*ie*se))}function Ke(ie){return ie-2*_*l((ie+_)/(2*_))}function bt(ie,se,de){for(var ve=[[ie[0],ie[1],v(ie[1]),o(ie[1])],[se[0],se[1],v(se[1]),o(se[1])],[de[0],de[1],v(de[1]),o(de[1])]],ke=ve[2],Me,Pe=0;Pe<3;++Pe,ke=Me)Me=ve[Pe],ke.v=dt(Me[1]-ke[1],ke[3],ke[2],Me[3],Me[2],Me[0]-ke[0]),ke.point=[0,0];var Ze=St(ve[0].v[0],ve[2].v[0],ve[1].v[0]),it=St(ve[0].v[0],ve[1].v[0],ve[2].v[0]),Xe=_-Ze;ve[2].point[1]=0,ve[0].point[0]=-(ve[1].point[0]=ve[0].v[0]/2);var at=[ve[2].point[0]=ve[0].point[0]+ve[2].v[0]*o(Ze),2*(ve[0].point[1]=ve[1].point[1]=ve[2].v[0]*v(Ze))];function xt(It,Gt){var or=v(Gt),Mr=o(Gt),Gr=new Array(3),_i;for(_i=0;_i<3;++_i){var on=ve[_i];if(Gr[_i]=dt(Gt-on[1],on[3],on[2],Mr,or,It-on[0]),!Gr[_i][0])return on.point;Gr[_i][1]=Ke(Gr[_i][1]-on.v[1])}var mn=at.slice();for(_i=0;_i<3;++_i){var Tn=_i==2?0:_i+1,Pn=St(ve[_i].v[0],Gr[_i][0],Gr[Tn][0]);Gr[_i][1]<0&&(Pn=-Pn),_i?_i==1?(Pn=it-Pn,mn[0]-=Gr[_i][0]*o(Pn),mn[1]-=Gr[_i][0]*v(Pn)):(Pn=Xe-Pn,mn[0]+=Gr[_i][0]*o(Pn),mn[1]+=Gr[_i][0]*v(Pn)):(mn[0]+=Gr[_i][0]*o(Pn),mn[1]-=Gr[_i][0]*v(Pn))}return mn[0]/=3,mn[1]/=3,mn}return xt}function pt(ie){return ie[0]*=M,ie[1]*=M,ie}function Oe(){return Ue([0,22],[45,22],[22.5,-22]).scale(380).center([22.5,2])}function Ue(ie,se,de){var ve=t.geoCentroid({type:"MultiPoint",coordinates:[ie,se,de]}),ke=[-ve[0],-ve[1]],Me=t.geoRotation(ke),Pe=bt(pt(Me(ie)),pt(Me(se)),pt(Me(de)));Pe.invert=ce(Pe);var Ze=t.geoProjection(Pe).rotate(ke),it=Ze.center;return delete Ze.rotate,Ze.center=function(Xe){return arguments.length?it(Me(Xe)):Me.invert(it())},Ze.clipAngle(90)}function je(ie,se){var de=F(1-v(se));return[2/T*ie*de,T*(1-de)]}je.invert=function(ie,se){var de=(de=se/T-1)*de;return[de>0?ie*F(_/de)/2:0,k(1-de)]};function $e(){return t.geoProjection(je).scale(95.6464).center([0,30])}function Ie(ie){var se=m(ie);function de(ve,ke){return[ve,(ve?ve/v(ve):1)*(v(ke)*o(ve)-se*o(ke))]}return de.invert=se?function(ve,ke){ve&&(ke*=v(ve)/ve);var Me=o(ve);return[ve,2*a(F(Me*Me+se*se-ke*ke)-Me,se-ke)]}:function(ve,ke){return[ve,k(ve?ke*m(ve)/ve:ke)]},de}function Ve(){return Ce(Ie).scale(249.828).clipAngle(90)}var st=F(3);function _t(ie,se){return[st*ie*(2*o(2*se/3)-1)/T,st*T*v(se/3)]}_t.invert=function(ie,se){var de=3*k(se/(st*T));return[T*ie/(st*(2*o(2*de/3)-1)),de]};function Wt(){return t.geoProjection(_t).scale(156.19)}function Ht(ie){var se=o(ie);function de(ve,ke){return[ve*se,v(ke)/se]}return de.invert=function(ve,ke){return[ve/se,k(ke*se)]},de}function fr(){return Ce(Ht).parallel(38.58).scale(195.044)}function lr(ie){var se=o(ie);function de(ve,ke){return[ve*se,(1+se)*m(ke/2)]}return de.invert=function(ve,ke){return[ve/se,n(ke/(1+se))*2]},de}function Ot(){return Ce(lr).scale(124.75)}function Jt(ie,se){var de=F(8/(3*_));return[de*ie*(1-i(se)/_),de*se]}Jt.invert=function(ie,se){var de=F(8/(3*_)),ve=se/de;return[ie/(de*(1-i(ve)/_)),ve]};function Cr(){return t.geoProjection(Jt).scale(165.664)}function Ge(ie,se){var de=F(4-3*v(i(se)));return[2/F(6*_)*ie*de,d(se)*F(2*_/3)*(2-de)]}Ge.invert=function(ie,se){var de=2-i(se)/F(2*_/3);return[ie*F(6*_)/(2*de),d(se)*k((4-de*de)/3)]};function Qe(){return t.geoProjection(Ge).scale(165.664)}function nt(ie,se){var de=F(_*(4+_));return[2/de*ie*(1+F(1-4*se*se/(_*_))),4/de*se]}nt.invert=function(ie,se){var de=F(_*(4+_))/2;return[ie*de/(1+F(1-se*se*(4+_)/(4*_))),se*de/2]};function gt(){return t.geoProjection(nt).scale(180.739)}function ht(ie,se){var de=(2+b)*v(se);se/=2;for(var ve=0,ke=1/0;ve<10&&i(ke)>g;ve++){var Me=o(se);se-=ke=(se+v(se)*(Me+2)-de)/(2*Me*(1+Me))}return[2/F(_*(4+_))*ie*(1+o(se)),2*F(_/(4+_))*v(se)]}ht.invert=function(ie,se){var de=se*F((4+_)/_)/2,ve=k(de),ke=o(ve);return[ie/(2/F(_*(4+_))*(1+ke)),k((ve+de*(ke+2))/(2+b))]};function Ft(){return t.geoProjection(ht).scale(180.739)}function hr(ie,se){return[ie*(1+o(se))/F(2+_),2*se/F(2+_)]}hr.invert=function(ie,se){var de=F(2+_),ve=se*de/2;return[de*ie/(1+o(ve)),ve]};function Ut(){return t.geoProjection(hr).scale(173.044)}function Lr(ie,se){for(var de=(1+b)*v(se),ve=0,ke=1/0;ve<10&&i(ke)>g;ve++)se-=ke=(se+v(se)-de)/(1+o(se));return de=F(2+_),[ie*(1+o(se))/de,2*se/de]}Lr.invert=function(ie,se){var de=1+b,ve=F(de/2);return[ie*2*ve/(1+o(se*=ve)),k((se+v(se))/de)]};function jr(){return t.geoProjection(Lr).scale(173.044)}var ii=3+2*A;function Fr(ie,se){var de=v(ie/=2),ve=o(ie),ke=F(o(se)),Me=o(se/=2),Pe=v(se)/(Me+A*ve*ke),Ze=F(2/(1+Pe*Pe)),it=F((A*Me+(ve+de)*ke)/(A*Me+(ve-de)*ke));return[ii*(Ze*(it-1/it)-2*u(it)),ii*(Ze*Pe*(it+1/it)-2*n(Pe))]}Fr.invert=function(ie,se){if(!(Me=J.invert(ie/1.2,se*1.065)))return null;var de=Me[0],ve=Me[1],ke=20,Me;ie/=ii,se/=ii;do{var Pe=de/2,Ze=ve/2,it=v(Pe),Xe=o(Pe),at=v(Ze),xt=o(Ze),It=o(ve),Gt=F(It),or=at/(xt+A*Xe*Gt),Mr=or*or,Gr=F(2/(1+Mr)),_i=A*xt+(Xe+it)*Gt,on=A*xt+(Xe-it)*Gt,mn=_i/on,Tn=F(mn),Pn=Tn-1/Tn,no=Tn+1/Tn,Do=Gr*Pn-2*u(Tn)-ie,fa=Gr*or*no-2*n(or)-se,us=at&&x*Gt*it*Mr/at,El=(A*Xe*xt+Gt)/(2*(xt+A*Xe*Gt)*(xt+A*Xe*Gt)*Gt),ec=-.5*or*Gr*Gr*Gr,Qf=ec*us,m0=ec*El,gu=(gu=2*xt+A*Gt*(Xe-it))*gu*Tn,Wl=(A*Xe*xt*Gt+It)/gu,Jc=-(A*it*at)/(Gt*gu),eh=Pn*Qf-2*Wl/Tn+Gr*(Wl+Wl/mn),th=Pn*m0-2*Jc/Tn+Gr*(Jc+Jc/mn),rh=or*no*Qf-2*us/(1+Mr)+Gr*no*us+Gr*or*(Wl-Wl/mn),Ph=or*no*m0-2*El/(1+Mr)+Gr*no*El+Gr*or*(Jc-Jc/mn),_f=th*rh-Ph*eh;if(!_f)break;var y0=(fa*th-Do*Ph)/_f,Np=(Do*rh-fa*eh)/_f;de-=y0,ve=c(-b,f(b,ve-Np))}while((i(y0)>g||i(Np)>g)&&--ke>0);return i(i(ve)-b)ve){var xt=F(at),It=a(Xe,it),Gt=de*p(It/de),or=It-Gt,Mr=ie*o(or),Gr=(ie*v(or)-or*v(Mr))/(b-Mr),_i=ba(or,Gr),on=(_-ie)/co(_i,Mr,_);it=xt;var mn=50,Tn;do it-=Tn=(ie+co(_i,Mr,it)*on-xt)/(_i(it)*on);while(i(Tn)>g&&--mn>0);Xe=or*v(it),itve){var it=F(Ze),Xe=a(Pe,Me),at=de*p(Xe/de),xt=Xe-at;Me=it*o(xt),Pe=it*v(xt);for(var It=Me-b,Gt=v(Me),or=Pe/Gt,Mr=Meg||i(or)>g)&&--Mr>0);return[xt,It]},it}var el=Ma(2.8284,-1.6988,.75432,-.18071,1.76003,-.38914,.042555);function Ml(){return t.geoProjection(el).scale(149.995)}var Au=Ma(2.583819,-.835827,.170354,-.038094,1.543313,-.411435,.082742);function dl(){return t.geoProjection(Au).scale(153.93)}var Fe=Ma(5/6*_,-.62636,-.0344,0,1.3493,-.05524,0,.045);function ot(){return t.geoProjection(Fe).scale(130.945)}function lt(ie,se){var de=ie*ie,ve=se*se;return[ie*(1-.162388*ve)*(.87-952426e-9*de*de),se*(1+ve/12)]}lt.invert=function(ie,se){var de=ie,ve=se,ke=50,Me;do{var Pe=ve*ve;ve-=Me=(ve*(1+Pe/12)-se)/(1+Pe/4)}while(i(Me)>g&&--ke>0);ke=50,ie/=1-.162388*Pe;do{var Ze=(Ze=de*de)*Ze;de-=Me=(de*(.87-952426e-9*Ze)-ie)/(.87-.00476213*Ze)}while(i(Me)>g&&--ke>0);return[de,ve]};function kt(){return t.geoProjection(lt).scale(131.747)}var er=Ma(2.6516,-.76534,.19123,-.047094,1.36289,-.13965,.031762);function zt(){return t.geoProjection(er).scale(131.087)}function Ar(ie){var se=ie(b,0)[0]-ie(-b,0)[0];function de(ve,ke){var Me=ve>0?-.5:.5,Pe=ie(ve+Me*_,ke);return Pe[0]-=Me*se,Pe}return ie.invert&&(de.invert=function(ve,ke){var Me=ve>0?-.5:.5,Pe=ie.invert(ve+Me*se,ke),Ze=Pe[0]-Me*_;return Ze<-_?Ze+=2*_:Ze>_&&(Ze-=2*_),Pe[0]=Ze,Pe}),de}function Zt(ie,se){var de=d(ie),ve=d(se),ke=o(se),Me=o(ie)*ke,Pe=v(ie)*ke,Ze=v(ve*se);ie=i(a(Pe,Ze)),se=k(Me),i(ie-b)>g&&(ie%=b);var it=wr(ie>_/4?b-ie:ie,se);return ie>_/4&&(Ze=it[0],it[0]=-it[1],it[1]=-Ze),it[0]*=de,it[1]*=-ve,it}Zt.invert=function(ie,se){i(ie)>1&&(ie=d(ie)*2-ie),i(se)>1&&(se=d(se)*2-se);var de=d(ie),ve=d(se),ke=-de*ie,Me=-ve*se,Pe=Me/ke<1,Ze=Kr(Pe?Me:ke,Pe?ke:Me),it=Ze[0],Xe=Ze[1],at=o(Xe);return Pe&&(it=-b-it),[de*(a(v(it)*at,-v(Xe))+_),ve*k(o(it)*at)]};function wr(ie,se){if(se===b)return[0,0];var de=v(se),ve=de*de,ke=ve*ve,Me=1+ke,Pe=1+3*ke,Ze=1-ke,it=k(1/F(Me)),Xe=Ze+ve*Me*it,at=(1-de)/Xe,xt=F(at),It=at*Me,Gt=F(It),or=xt*Ze,Mr,Gr;if(ie===0)return[0,-(or+ve*Gt)];var _i=o(se),on=1/_i,mn=2*de*_i,Tn=(-3*ve+it*Pe)*mn,Pn=(-Xe*_i-(1-de)*Tn)/(Xe*Xe),no=.5*Pn/xt,Do=Ze*no-2*ve*xt*mn,fa=ve*Me*Pn+at*Pe*mn,us=-on*mn,El=-on*fa,ec=-2*on*Do,Qf=4*ie/_,m0;if(ie>.222*_||se<_/4&&ie>.175*_){if(Mr=(or+ve*F(It*(1+ke)-or*or))/(1+ke),ie>_/4)return[Mr,Mr];var gu=Mr,Wl=.5*Mr;Mr=.5*(Wl+gu),Gr=50;do{var Jc=F(It-Mr*Mr),eh=Mr*(ec+us*Jc)+El*k(Mr/Gt)-Qf;if(!eh)break;eh<0?Wl=Mr:gu=Mr,Mr=.5*(Wl+gu)}while(i(gu-Wl)>g&&--Gr>0)}else{Mr=g,Gr=25;do{var th=Mr*Mr,rh=F(It-th),Ph=ec+us*rh,_f=Mr*Ph+El*k(Mr/Gt)-Qf,y0=Ph+(El-us*th)/rh;Mr-=m0=rh?_f/y0:0}while(i(m0)>g&&--Gr>0)}return[Mr,-or-ve*F(It-Mr*Mr)]}function Kr(ie,se){for(var de=0,ve=1,ke=.5,Me=50;;){var Pe=ke*ke,Ze=F(ke),it=k(1/F(1+Pe)),Xe=1-Pe+ke*(1+Pe)*it,at=(1-Ze)/Xe,xt=F(at),It=at*(1+Pe),Gt=xt*(1-Pe),or=It-ie*ie,Mr=F(or),Gr=se+Gt+ke*Mr;if(i(ve-de)0?de=ke:ve=ke,ke=.5*(de+ve)}if(!Me)return null;var _i=k(Ze),on=o(_i),mn=1/on,Tn=2*Ze*on,Pn=(-3*ke+it*(1+3*Pe))*Tn,no=(-Xe*on-(1-Ze)*Pn)/(Xe*Xe),Do=.5*no/xt,fa=(1-Pe)*Do-2*ke*xt*Tn,us=-2*mn*fa,El=-mn*Tn,ec=-mn*(ke*(1+Pe)*no+at*(1+3*Pe)*Tn);return[_/4*(ie*(us+El*Mr)+ec*k(ie/F(It))),_i]}function ni(){return t.geoProjection(Ar(Zt)).scale(239.75)}function Si(ie,se,de){var ve,ke,Me;return ie?(ve=un(ie,de),se?(ke=un(se,1-de),Me=ke[1]*ke[1]+de*ve[0]*ve[0]*ke[0]*ke[0],[[ve[0]*ke[2]/Me,ve[1]*ve[2]*ke[0]*ke[1]/Me],[ve[1]*ke[1]/Me,-ve[0]*ve[2]*ke[0]*ke[2]/Me],[ve[2]*ke[1]*ke[2]/Me,-de*ve[0]*ve[1]*ke[0]/Me]]):[[ve[0],0],[ve[1],0],[ve[2],0]]):(ke=un(se,1-de),[[0,ke[0]/ke[1]],[1/ke[1],0],[ke[2]/ke[1],0]])}function un(ie,se){var de,ve,ke,Me,Pe;if(se=1-g)return de=(1-se)/4,ve=L(ie),Me=P(ie),ke=1/ve,Pe=ve*R(ie),[Me+de*(Pe-ie)/(ve*ve),ke-de*Me*ke*(Pe-ie),ke+de*Me*ke*(Pe+ie),2*n(s(ie))-b+de*(Pe-ie)/ve];var Ze=[1,0,0,0,0,0,0,0,0],it=[F(se),0,0,0,0,0,0,0,0],Xe=0;for(ve=F(1-se),Pe=1;i(it[Xe]/Ze[Xe])>g&&Xe<8;)de=Ze[Xe++],it[Xe]=(de-ve)/2,Ze[Xe]=(de+ve)/2,ve=F(de*ve),Pe*=2;ke=Pe*Ze[Xe]*ie;do Me=it[Xe]*v(ve=ke)/Ze[Xe],ke=(k(Me)+ke)/2;while(--Xe);return[v(ke),Me=o(ke),Me/o(ke-ve),ke]}function $n(ie,se,de){var ve=i(ie),ke=i(se),Me=R(ke);if(ve){var Pe=1/v(ve),Ze=1/(m(ve)*m(ve)),it=-(Ze+de*(Me*Me*Pe*Pe)-1+de),Xe=(de-1)*Ze,at=(-it+F(it*it-4*Xe))/2;return[wn(n(1/F(at)),de)*d(ie),wn(n(F((at/Ze-1)/de)),1-de)*d(se)]}return[0,wn(n(Me),1-de)*d(se)]}function wn(ie,se){if(!se)return ie;if(se===1)return u(m(ie/2+S));for(var de=1,ve=F(1-se),ke=F(se),Me=0;i(ke)>g;Me++){if(ie%_){var Pe=n(ve*m(ie)/de);Pe<0&&(Pe+=_),ie+=Pe+~~(ie/_)*_}else ie+=ie;ke=(de+ve)/2,ve=F(de*ve),ke=((de=ke)-ve)/2}return ie/(h(2,Me)*de)}function ma(ie,se){var de=(A-1)/(A+1),ve=F(1-de*de),ke=wn(b,ve*ve),Me=-1,Pe=u(m(_/4+i(se)/2)),Ze=s(Me*Pe)/F(de),it=Zn(Ze*o(Me*ie),Ze*v(Me*ie)),Xe=$n(it[0],it[1],ve*ve);return[-Xe[1],(se>=0?1:-1)*(.5*ke-Xe[0])]}function Zn(ie,se){var de=ie*ie,ve=se+1,ke=1-de-se*se;return[.5*((ie>=0?b:-b)-a(ke,2*ie)),-.25*u(ke*ke+4*de)+.5*u(ve*ve+de)]}function io(ie,se){var de=se[0]*se[0]+se[1]*se[1];return[(ie[0]*se[0]+ie[1]*se[1])/de,(ie[1]*se[0]-ie[0]*se[1])/de]}ma.invert=function(ie,se){var de=(A-1)/(A+1),ve=F(1-de*de),ke=wn(b,ve*ve),Me=-1,Pe=Si(.5*ke-se,-ie,ve*ve),Ze=io(Pe[0],Pe[1]),it=a(Ze[1],Ze[0])/Me;return[it,2*n(s(.5/Me*u(de*Ze[0]*Ze[0]+de*Ze[1]*Ze[1])))-b]};function fo(){return t.geoProjection(Ar(ma)).scale(151.496)}function ko(ie){var se=v(ie),de=o(ie),ve=Oo(ie);ve.invert=Oo(-ie);function ke(Me,Pe){var Ze=ve(Me,Pe);Me=Ze[0],Pe=Ze[1];var it=v(Pe),Xe=o(Pe),at=o(Me),xt=D(se*it+de*Xe*at),It=v(xt),Gt=i(It)>g?xt/It:1;return[Gt*de*v(Me),(i(Me)>b?Gt:-Gt)*(se*Xe-de*it*at)]}return ke.invert=function(Me,Pe){var Ze=F(Me*Me+Pe*Pe),it=-v(Ze),Xe=o(Ze),at=Ze*Xe,xt=-Pe*it,It=Ze*se,Gt=F(at*at+xt*xt-It*It),or=a(at*It+xt*Gt,xt*It-at*Gt),Mr=(Ze>b?-1:1)*a(Me*it,Ze*o(or)*Xe+Pe*v(or)*it);return ve.invert(Mr,or)},ke}function Oo(ie){var se=v(ie),de=o(ie);return function(ve,ke){var Me=o(ke),Pe=o(ve)*Me,Ze=v(ve)*Me,it=v(ke);return[a(Ze,Pe*de-it*se),k(it*de+Pe*se)]}}function ms(){var ie=0,se=t.geoProjectionMutator(ko),de=se(ie),ve=de.rotate,ke=de.stream,Me=t.geoCircle();return de.parallel=function(Pe){if(!arguments.length)return ie*E;var Ze=de.rotate();return se(ie=Pe*M).rotate(Ze)},de.rotate=function(Pe){return arguments.length?(ve.call(de,[Pe[0],Pe[1]-ie*E]),Me.center([-Pe[0],-Pe[1]]),de):(Pe=ve.call(de),Pe[1]+=ie*E,Pe)},de.stream=function(Pe){return Pe=ke(Pe),Pe.sphere=function(){Pe.polygonStart();var Ze=.01,it=Me.radius(90-Ze)().coordinates[0],Xe=it.length-1,at=-1,xt;for(Pe.lineStart();++at=0;)Pe.point((xt=it[at])[0],xt[1]);Pe.lineEnd(),Pe.polygonEnd()},Pe},de.scale(79.4187).parallel(45).clipAngle(180-.001)}var os=3,Co=k(1-1/os)*E,ss=Ht(0);function No(ie){var se=Co*M,de=je(_,se)[0]-je(-_,se)[0],ve=ss(0,se)[1],ke=je(0,se)[1],Me=T-ke,Pe=y/ie,Ze=4/y,it=ve+Me*Me*4/y;function Xe(at,xt){var It,Gt=i(xt);if(Gt>se){var or=f(ie-1,c(0,l((at+_)/Pe)));at+=_*(ie-1)/ie-or*Pe,It=je(at,Gt),It[0]=It[0]*y/de-y*(ie-1)/(2*ie)+or*y/ie,It[1]=ve+(It[1]-ke)*4*Me/y,xt<0&&(It[1]=-It[1])}else It=ss(at,xt);return It[0]*=Ze,It[1]/=it,It}return Xe.invert=function(at,xt){at/=Ze,xt*=it;var It=i(xt);if(It>ve){var Gt=f(ie-1,c(0,l((at+_)/Pe)));at=(at+_*(ie-1)/ie-Gt*Pe)*de/y;var or=je.invert(at,.25*(It-ve)*y/Me+ke);return or[0]-=_*(ie-1)/ie-Gt*Pe,xt<0&&(or[1]=-or[1]),or}return ss.invert(at,xt)},Xe}function Go(ie,se){return[ie,se&1?90-g:Co]}function ho(ie,se){return[ie,se&1?-90+g:-Co]}function qn(ie){return[ie[0]*(1-g),ie[1]]}function _a(ie){var se=[].concat(r.range(-180,180+ie/2,ie).map(Go),r.range(180,-180-ie/2,-ie).map(ho));return{type:"Polygon",coordinates:[ie===180?se.map(qn):se]}}function ys(){var ie=4,se=t.geoProjectionMutator(No),de=se(ie),ve=de.stream;return de.lobes=function(ke){return arguments.length?se(ie=+ke):ie},de.stream=function(ke){var Me=de.rotate(),Pe=ve(ke),Ze=(de.rotate([0,0]),ve(ke));return de.rotate(Me),Pe.sphere=function(){t.geoStream(_a(180/ie),Ze)},Pe},de.scale(239.75)}function tl(ie){var se=1+ie,de=v(1/se),ve=k(de),ke=2*F(_/(Me=_+4*ve*se)),Me,Pe=.5*ke*(se+F(ie*(2+ie))),Ze=ie*ie,it=se*se;function Xe(at,xt){var It=1-v(xt),Gt,or;if(It&&It<2){var Mr=b-xt,Gr=25,_i;do{var on=v(Mr),mn=o(Mr),Tn=ve+a(on,se-mn),Pn=1+it-2*se*mn;Mr-=_i=(Mr-Ze*ve-se*on+Pn*Tn-.5*It*Me)/(2*se*on*Tn)}while(i(_i)>w&&--Gr>0);Gt=ke*F(Pn),or=at*Tn/_}else Gt=ke*(ie+It),or=at*ve/_;return[Gt*v(or),Pe-Gt*o(or)]}return Xe.invert=function(at,xt){var It=at*at+(xt-=Pe)*xt,Gt=(1+it-It/(ke*ke))/(2*se),or=D(Gt),Mr=v(or),Gr=ve+a(Mr,se-Gt);return[k(at/F(It))*_/Gr,k(1-2*(or-Ze*ve-se*Mr+(1+it-2*se*Gt)*Gr)/Me)]},Xe}function rl(){var ie=1,se=t.geoProjectionMutator(tl),de=se(ie);return de.ratio=function(ve){return arguments.length?se(ie=+ve):ie},de.scale(167.774).center([0,18.67])}var jl=.7109889596207567,il=.0528035274542;function hu(ie,se){return se>-jl?(ie=ee(ie,se),ie[1]+=il,ie):ze(ie,se)}hu.invert=function(ie,se){return se>-jl?ee.invert(ie,se-il):ze.invert(ie,se)};function Mu(){return t.geoProjection(hu).rotate([-20,-55]).scale(164.263).center([0,-5.4036])}function Su(ie,se){return i(se)>jl?(ie=ee(ie,se),ie[1]-=se>0?il:-il,ie):ze(ie,se)}Su.invert=function(ie,se){return i(se)>jl?ee.invert(ie,se+(se>0?il:-il)):ze.invert(ie,se)};function yc(){return t.geoProjection(Su).scale(152.63)}function $l(ie,se,de,ve){var ke=F(4*_/(2*de+(1+ie-se/2)*v(2*de)+(ie+se)/2*v(4*de)+se/2*v(6*de))),Me=F(ve*v(de)*F((1+ie*o(2*de)+se*o(4*de))/(1+ie+se))),Pe=de*it(1);function Ze(xt){return F(1+ie*o(2*xt)+se*o(4*xt))}function it(xt){var It=xt*de;return(2*It+(1+ie-se/2)*v(2*It)+(ie+se)/2*v(4*It)+se/2*v(6*It))/de}function Xe(xt){return Ze(xt)*v(xt)}var at=function(xt,It){var Gt=de*xe(it,Pe*v(It)/de,It/_);isNaN(Gt)&&(Gt=de*d(It));var or=ke*Ze(Gt);return[or*Me*xt/_*o(Gt),or/Me*v(Gt)]};return at.invert=function(xt,It){var Gt=xe(Xe,It*Me/ke);return[xt*_/(o(Gt)*ke*Me*Ze(Gt)),k(de*it(Gt/de)/Pe)]},de===0&&(ke=F(ve/_),at=function(xt,It){return[xt*ke,v(It)/ke]},at.invert=function(xt,It){return[xt/ke,k(It*ke)]}),at}function Za(){var ie=1,se=0,de=45*M,ve=2,ke=t.geoProjectionMutator($l),Me=ke(ie,se,de,ve);return Me.a=function(Pe){return arguments.length?ke(ie=+Pe,se,de,ve):ie},Me.b=function(Pe){return arguments.length?ke(ie,se=+Pe,de,ve):se},Me.psiMax=function(Pe){return arguments.length?ke(ie,se,de=+Pe*M,ve):de*E},Me.ratio=function(Pe){return arguments.length?ke(ie,se,de,ve=+Pe):ve},Me.scale(180.739)}function Eu(ie,se,de,ve,ke,Me,Pe,Ze,it,Xe,at){if(at.nanEncountered)return NaN;var xt,It,Gt,or,Mr,Gr,_i,on,mn,Tn;if(xt=de-se,It=ie(se+xt*.25),Gt=ie(de-xt*.25),isNaN(It)){at.nanEncountered=!0;return}if(isNaN(Gt)){at.nanEncountered=!0;return}return or=xt*(ve+4*It+ke)/12,Mr=xt*(ke+4*Gt+Me)/12,Gr=or+Mr,Tn=(Gr-Pe)/15,Xe>it?(at.maxDepthCount++,Gr+Tn):Math.abs(Tn)>1;do it[Gr]>Gt?Mr=Gr:or=Gr,Gr=or+Mr>>1;while(Gr>or);var _i=it[Gr+1]-it[Gr];return _i&&(_i=(Gt-it[Gr+1])/_i),(Gr+1+_i)/Pe}var xt=2*at(1)/_*Me/de,It=function(Gt,or){var Mr=at(i(v(or))),Gr=ve(Mr)*Gt;return Mr/=xt,[Gr,or>=0?Mr:-Mr]};return It.invert=function(Gt,or){var Mr;return or*=xt,i(or)<1&&(Mr=d(or)*k(ke(i(or))*Me)),[Gt/ve(i(or)),Mr]},It}function du(){var ie=0,se=2.5,de=1.183136,ve=t.geoProjectionMutator(Cs),ke=ve(ie,se,de);return ke.alpha=function(Me){return arguments.length?ve(ie=+Me,se,de):ie},ke.k=function(Me){return arguments.length?ve(ie,se=+Me,de):se},ke.gamma=function(Me){return arguments.length?ve(ie,se,de=+Me):de},ke.scale(152.63)}function _h(ie,se){return i(ie[0]-se[0])=0;--it)de=ie[1][it],ve=de[0][0],ke=de[0][1],Me=de[1][1],Pe=de[2][0],Ze=de[2][1],se.push(bo([[Pe-g,Ze-g],[Pe-g,Me+g],[ve+g,Me+g],[ve+g,ke-g]],30));return{type:"Polygon",coordinates:[r.merge(se)]}}function Jo(ie,se,de){var ve,ke;function Me(it,Xe){for(var at=Xe<0?-1:1,xt=se[+(Xe<0)],It=0,Gt=xt.length-1;Itxt[It][2][0];++It);var or=ie(it-xt[It][1][0],Xe);return or[0]+=ie(xt[It][1][0],at*Xe>at*xt[It][0][1]?xt[It][0][1]:Xe)[0],or}de?Me.invert=de(Me):ie.invert&&(Me.invert=function(it,Xe){for(var at=ke[+(Xe<0)],xt=se[+(Xe<0)],It=0,Gt=at.length;Itor&&(Mr=Gt,Gt=or,or=Mr),[[xt,Gt],[It,or]]})}),Pe):se.map(function(Xe){return Xe.map(function(at){return[[at[0][0]*E,at[0][1]*E],[at[1][0]*E,at[1][1]*E],[at[2][0]*E,at[2][1]*E]]})})},se!=null&&Pe.lobes(se),Pe}var vu=[[[[-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 Nv(){return Jo(pe,vu).scale(160.857)}var $c=[[[[-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 c0(){return Jo(Su,$c).scale(152.63)}var Wf=[[[[-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 wh(){return Jo(ee,Wf).scale(169.529)}var Yf=[[[[-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 f0(){return Jo(ee,Yf).scale(169.529).rotate([20,0])}var Uv=[[[[-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 Th(){return Jo(hu,Uv,ce).rotate([-20,-55]).scale(164.263).center([0,-5.4036])}var xp=[[[[-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 h0(){return Jo(ze,xp).scale(152.63).rotate([-20,0])}function td(ie,se){return[3/y*ie*F(_*_/3-se*se),se]}td.invert=function(ie,se){return[y/3*ie/F(_*_/3-se*se),se]};function rd(){return t.geoProjection(td).scale(158.837)}function Vv(ie){function se(de,ve){if(i(i(ve)-b)2)return null;de/=2,ve/=2;var Me=de*de,Pe=ve*ve,Ze=2*ve/(1+Me+Pe);return Ze=h((1+Ze)/(1-Ze),1/ie),[a(2*de,1-Me-Pe)/ie,k((Ze-1)/(Ze+1))]},se}function Gv(){var ie=.5,se=t.geoProjectionMutator(Vv),de=se(ie);return de.spacing=function(ve){return arguments.length?se(ie=+ve):ie},de.scale(124.75)}var Wc=_/A;function bp(ie,se){return[ie*(1+F(o(se)))/2,se/(o(se/2)*o(ie/6))]}bp.invert=function(ie,se){var de=i(ie),ve=i(se),ke=g,Me=b;veg||i(Gr)>g)&&--ke>0);return ke&&[de,ve]};function Ds(){return t.geoProjection(Zu).scale(139.98)}function Ho(ie,se){return[v(ie)/o(se),m(se)*o(ie)]}Ho.invert=function(ie,se){var de=ie*ie,ve=se*se,ke=ve+1,Me=de+ke,Pe=ie?x*F((Me-F(Me*Me-4*de))/de):1/F(ke);return[k(ie*Pe),d(se)*D(Pe)]};function ku(){return t.geoProjection(Ho).scale(144.049).clipAngle(90-.001)}function id(ie){var se=o(ie),de=m(S+ie/2);function ve(ke,Me){var Pe=Me-ie,Ze=i(Pe)=0;)at=ie[Xe],xt=at[0]+Ze*(Gt=xt)-it*It,It=at[1]+Ze*It+it*Gt;return xt=Ze*(Gt=xt)-it*It,It=Ze*It+it*Gt,[xt,It]}return de.invert=function(ve,ke){var Me=20,Pe=ve,Ze=ke;do{for(var it=se,Xe=ie[it],at=Xe[0],xt=Xe[1],It=0,Gt=0,or;--it>=0;)Xe=ie[it],It=at+Pe*(or=It)-Ze*Gt,Gt=xt+Pe*Gt+Ze*or,at=Xe[0]+Pe*(or=at)-Ze*xt,xt=Xe[1]+Pe*xt+Ze*or;It=at+Pe*(or=It)-Ze*Gt,Gt=xt+Pe*Gt+Ze*or,at=Pe*(or=at)-Ze*xt-ve,xt=Pe*xt+Ze*or-ke;var Mr=It*It+Gt*Gt,Gr,_i;Pe-=Gr=(at*It+xt*Gt)/Mr,Ze-=_i=(xt*It-at*Gt)/Mr}while(i(Gr)+i(_i)>g*g&&--Me>0);if(Me){var on=F(Pe*Pe+Ze*Ze),mn=2*n(on*.5),Tn=v(mn);return[a(Pe*Tn,on*o(mn)),on?k(Ze*Tn/on):0]}},de}var ny=[[.9972523,0],[.0052513,-.0041175],[.0074606,.0048125],[-.0153783,-.1968253],[.0636871,-.1408027],[.3660976,-.2937382]],Bx=[[.98879,0],[0,0],[-.050909,0],[0,0],[.075528,0]],Sh=[[.984299,0],[.0211642,.0037608],[-.1036018,-.0575102],[-.0329095,-.0320119],[.0499471,.1223335],[.026046,.0899805],[7388e-7,-.1435792],[.0075848,-.1334108],[-.0216473,.0776645],[-.0225161,.0853673]],Vs=[[.9245,0],[0,0],[.01943,0]],jv=[[.721316,0],[0,0],[-.00881625,-.00617325]];function $v(){return mf(ny,[152,-64]).scale(1400).center([-160.908,62.4864]).clipAngle(30).angle(7.8)}function Eh(){return mf(Bx,[95,-38]).scale(1e3).clipAngle(55).center([-96.5563,38.8675])}function _g(){return mf(Sh,[120,-45]).scale(359.513).clipAngle(55).center([-117.474,53.0628])}function nd(){return mf(Vs,[-20,-18]).scale(209.091).center([20,16.7214]).clipAngle(82)}function _p(){return mf(jv,[165,10]).scale(250).clipAngle(130).center([-165,-10])}function mf(ie,se){var de=t.geoProjection(bg(ie)).rotate(se).clipAngle(90),ve=t.geoRotation(se),ke=de.center;return delete de.rotate,de.center=function(Me){return arguments.length?ke(ve(Me)):ve.invert(ke())},de}var Wv=F(6),wp=F(7);function ad(ie,se){var de=k(7*v(se)/(3*Wv));return[Wv*ie*(2*o(2*de/3)-1)/wp,9*v(de/3)/wp]}ad.invert=function(ie,se){var de=3*k(se*wp/9);return[ie*wp/(Wv*(2*o(2*de/3)-1)),k(v(de)*3*Wv/7)]};function wg(){return t.geoProjection(ad).scale(164.859)}function Tg(ie,se){for(var de=(1+x)*v(se),ve=se,ke=0,Me;ke<25&&(ve-=Me=(v(ve/2)+v(ve)-de)/(.5*o(ve/2)+o(ve)),!(i(Me)w&&--ve>0);return Me=de*de,Pe=Me*Me,Ze=Me*Pe,[ie/(.84719-.13063*Me+Ze*Ze*(-.04515+.05494*Me-.02326*Pe+.00331*Ze)),de]};function Tp(){return t.geoProjection(Zf).scale(175.295)}function xc(ie,se){return[ie*(1+o(se))/2,2*(se-m(se/2))]}xc.invert=function(ie,se){for(var de=se/2,ve=0,ke=1/0;ve<10&&i(ke)>g;++ve){var Me=o(se/2);se-=ke=(se-m(se/2)-de)/(1-.5/(Me*Me))}return[2*ie/(1+o(se)),se]};function od(){return t.geoProjection(xc).scale(152.63)}var Kf=[[[[-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 Ag(){return Jo(ue(1/0),Kf).rotate([20,0]).scale(152.63)}function Xv(ie,se){var de=v(se),ve=o(se),ke=d(ie);if(ie===0||i(se)===b)return[0,se];if(se===0)return[ie,0];if(i(ie)===b)return[ie*ve,b*de];var Me=_/(2*ie)-2*ie/_,Pe=2*se/_,Ze=(1-Pe*Pe)/(de-Pe),it=Me*Me,Xe=Ze*Ze,at=1+it/Xe,xt=1+Xe/it,It=(Me*de/Ze-Me/2)/at,Gt=(Xe*de/it+Ze/2)/xt,or=It*It+ve*ve/at,Mr=Gt*Gt-(Xe*de*de/it+Ze*de-1)/xt;return[b*(It+F(or)*ke),b*(Gt+F(Mr<0?0:Mr)*d(-se*Me)*ke)]}Xv.invert=function(ie,se){ie/=b,se/=b;var de=ie*ie,ve=se*se,ke=de+ve,Me=_*_;return[ie?(ke-1+F((1-ke)*(1-ke)+4*de))/(2*ie)*b:0,xe(function(Pe){return ke*(_*v(Pe)-2*Pe)*_+4*Pe*Pe*(se-v(Pe))+2*_*Pe-Me*se},0)]};function Mg(){return t.geoProjection(Xv).scale(127.267)}var Zv=1.0148,Ap=.23185,Kv=-.14499,Jv=.02406,oy=Zv,Ku=5*Ap,Yc=7*Kv,Sg=9*Jv,Cu=1.790857183;function Mp(ie,se){var de=se*se;return[ie,se*(Zv+de*de*(Ap+de*(Kv+Jv*de)))]}Mp.invert=function(ie,se){se>Cu?se=Cu:se<-Cu&&(se=-Cu);var de=se,ve;do{var ke=de*de;de-=ve=(de*(Zv+ke*ke*(Ap+ke*(Kv+Jv*ke)))-se)/(oy+ke*ke*(Ku+ke*(Yc+Sg*ke)))}while(i(ve)>g);return[ie,de]};function p0(){return t.geoProjection(Mp).scale(139.319)}function kh(ie,se){if(i(se)g&&--ke>0);return Pe=m(ve),[(i(se)=0;)if(ve=se[Ze],de[0]===ve[0]&&de[1]===ve[1]){if(Me)return[Me,de];Me=de}}}function Sp(ie){for(var se=ie.length,de=[],ve=ie[se-1],ke=0;ke0?[-ve[0],0]:[180-ve[0],180])};var se=kp.map(function(de){return{face:de,project:ie(de)}});return[-1,0,0,1,0,1,4,5].forEach(function(de,ve){var ke=se[de];ke&&(ke.children||(ke.children=[])).push(se[ve])}),sd(se[0],function(de,ve){return se[de<-_/2?ve<0?6:4:de<0?ve<0?2:0:de<_/2?ve<0?3:1:ve<0?7:5]}).angle(-30).scale(121.906).center([0,48.5904])}function Dp(ie){ie=ie||function(Pe){var Ze=Pe.length===6?t.geoCentroid({type:"MultiPoint",coordinates:Pe}):Pe[0];return t.geoGnomonic().scale(1).translate([0,0]).rotate([-Ze[0],-Ze[1]])};var se=kp.map(function(Pe){for(var Ze=Pe.map(ud),it=Ze.length,Xe=Ze[it-1],at,xt=[],It=0;Itve^Gt>ve&&de<(It-Xe)*(ve-at)/(Gt-at)+Xe&&(ke=!ke)}return ke}function e1(ie,se){var de=se.stream,ve;if(!de)throw new Error("invalid projection");switch(ie&&ie.type){case"Feature":ve=dy;break;case"FeatureCollection":ve=hy;break;default:ve=t1;break}return ve(ie,de)}function hy(ie,se){return{type:"FeatureCollection",features:ie.features.map(function(de){return dy(de,se)})}}function dy(ie,se){return{type:"Feature",id:ie.id,properties:ie.properties,geometry:t1(ie.geometry,se)}}function Cg(ie,se){return{type:"GeometryCollection",geometries:ie.geometries.map(function(de){return t1(de,se)})}}function t1(ie,se){if(!ie)return null;if(ie.type==="GeometryCollection")return Cg(ie,se);var de;switch(ie.type){case"Point":de=Pp;break;case"MultiPoint":de=Pp;break;case"LineString":de=Dg;break;case"MultiLineString":de=Dg;break;case"Polygon":de=Ip;break;case"MultiPolygon":de=Ip;break;case"Sphere":de=Ip;break;default:return null}return t.geoStream(ie,se(de)),de.result()}var pl=[],Xc=[],Pp={point:function(ie,se){pl.push([ie,se])},result:function(){var ie=pl.length?pl.length<2?{type:"Point",coordinates:pl[0]}:{type:"MultiPoint",coordinates:pl}:null;return pl=[],ie}},Dg={lineStart:cd,point:function(ie,se){pl.push([ie,se])},lineEnd:function(){pl.length&&(Xc.push(pl),pl=[])},result:function(){var ie=Xc.length?Xc.length<2?{type:"LineString",coordinates:Xc[0]}:{type:"MultiLineString",coordinates:Xc}:null;return Xc=[],ie}},Ip={polygonStart:cd,lineStart:cd,point:function(ie,se){pl.push([ie,se])},lineEnd:function(){var ie=pl.length;if(ie){do pl.push(pl[0].slice());while(++ie<4);Xc.push(pl),pl=[]}},polygonEnd:cd,result:function(){if(!Xc.length)return null;var ie=[],se=[];return Xc.forEach(function(de){Lp(de)?ie.push([de]):se.push(de)}),se.forEach(function(de){var ve=de[0];ie.some(function(ke){if(kg(ke[0],ve))return ke.push(de),!0})||ie.push([de])}),Xc=[],ie.length?ie.length>1?{type:"MultiPolygon",coordinates:ie}:{type:"Polygon",coordinates:ie[0]}:null}};function Rp(ie){var se=ie(b,0)[0]-ie(-b,0)[0];function de(ve,ke){var Me=i(ve)0?ve-_:ve+_,ke),Ze=(Pe[0]-Pe[1])*x,it=(Pe[0]+Pe[1])*x;if(Me)return[Ze,it];var Xe=se*x,at=Ze>0^it>0?-1:1;return[at*Ze-d(it)*Xe,at*it-d(Ze)*Xe]}return ie.invert&&(de.invert=function(ve,ke){var Me=(ve+ke)*x,Pe=(ke-ve)*x,Ze=i(Me)<.5*se&&i(Pe)<.5*se;if(!Ze){var it=se*x,Xe=Me>0^Pe>0?-1:1,at=-Xe*ve+(Pe>0?1:-1)*it,xt=-Xe*ke+(Me>0?1:-1)*it;Me=(-at-xt)*x,Pe=(at-xt)*x}var It=ie.invert(Me,Pe);return Ze||(It[0]+=Me>0?_:-_),It}),t.geoProjection(de).rotate([-90,-90,45]).clipAngle(180-.001)}function Ae(){return Rp(Zt).scale(176.423)}function qe(){return Rp(ma).scale(111.48)}function et(ie,se){if(!(0<=(se=+se)&&se<=20))throw new Error("invalid digits");function de(Xe){var at=Xe.length,xt=2,It=new Array(at);for(It[0]=+Xe[0].toFixed(se),It[1]=+Xe[1].toFixed(se);xt2||Gt[0]!=at[0]||Gt[1]!=at[1])&&(xt.push(Gt),at=Gt)}return xt.length===1&&Xe.length>1&&xt.push(de(Xe[Xe.length-1])),xt}function Me(Xe){return Xe.map(ke)}function Pe(Xe){if(Xe==null)return Xe;var at;switch(Xe.type){case"GeometryCollection":at={type:"GeometryCollection",geometries:Xe.geometries.map(Pe)};break;case"Point":at={type:"Point",coordinates:de(Xe.coordinates)};break;case"MultiPoint":at={type:Xe.type,coordinates:ve(Xe.coordinates)};break;case"LineString":at={type:Xe.type,coordinates:ke(Xe.coordinates)};break;case"MultiLineString":case"Polygon":at={type:Xe.type,coordinates:Me(Xe.coordinates)};break;case"MultiPolygon":at={type:"MultiPolygon",coordinates:Xe.coordinates.map(Me)};break;default:return Xe}return Xe.bbox!=null&&(at.bbox=Xe.bbox),at}function Ze(Xe){var at={type:"Feature",properties:Xe.properties,geometry:Pe(Xe.geometry)};return Xe.id!=null&&(at.id=Xe.id),Xe.bbox!=null&&(at.bbox=Xe.bbox),at}if(ie!=null)switch(ie.type){case"Feature":return Ze(ie);case"FeatureCollection":{var it={type:"FeatureCollection",features:ie.features.map(Ze)};return ie.bbox!=null&&(it.bbox=ie.bbox),it}default:return Pe(ie)}return ie}function Ye(ie){var se=v(ie);function de(ve,ke){var Me=se?m(ve*se/2)/se:ve/2;if(!ke)return[2*Me,-ie];var Pe=2*n(Me*v(ke)),Ze=1/m(ke);return[v(Pe)*Ze,ke+(1-o(Pe))*Ze-ie]}return de.invert=function(ve,ke){if(i(ke+=ie)g&&--Ze>0);var It=ve*(Xe=m(Pe)),Gt=m(i(ke)0?b:-b)*(it+ke*(at-Pe)/2+ke*ke*(at-2*it+Pe)/2)]}Qt.invert=function(ie,se){var de=se/b,ve=de*90,ke=f(18,i(ve/5)),Me=c(0,l(ke));do{var Pe=jt[Me][1],Ze=jt[Me+1][1],it=jt[f(19,Me+2)][1],Xe=it-Pe,at=it-2*Ze+Pe,xt=2*(i(de)-Ze)/Xe,It=at/Xe,Gt=xt*(1-It*xt*(1-2*It*xt));if(Gt>=0||Me===1){ve=(se>=0?5:-5)*(Gt+ke);var or=50,Mr;do ke=f(18,i(ve)/5),Me=l(ke),Gt=ke-Me,Pe=jt[Me][1],Ze=jt[Me+1][1],it=jt[f(19,Me+2)][1],ve-=(Mr=(se>=0?b:-b)*(Ze+Gt*(it-Pe)/2+Gt*Gt*(it-2*Ze+Pe)/2)-se)*E;while(i(Mr)>w&&--or>0);break}}while(--Me>=0);var Gr=jt[Me][0],_i=jt[Me+1][0],on=jt[f(19,Me+2)][0];return[ie/(_i+Gt*(on-Gr)/2+Gt*Gt*(on-2*_i+Gr)/2),ve*M]};function cr(){return t.geoProjection(Qt).scale(152.63)}function yr(ie){function se(de,ve){var ke=o(ve),Me=(ie-1)/(ie-ke*o(de));return[Me*ke*v(de),Me*v(ve)]}return se.invert=function(de,ve){var ke=de*de+ve*ve,Me=F(ke),Pe=(ie-F(1-ke*(ie+1)/(ie-1)))/((ie-1)/Me+Me/(ie-1));return[a(de*Pe,Me*F(1-Pe*Pe)),Me?k(ve*Pe/Me):0]},se}function Rr(ie,se){var de=yr(ie);if(!se)return de;var ve=o(se),ke=v(se);function Me(Pe,Ze){var it=de(Pe,Ze),Xe=it[1],at=Xe*ke/(ie-1)+ve;return[it[0]*ve/at,Xe/at]}return Me.invert=function(Pe,Ze){var it=(ie-1)/(ie-1-Ze*ke);return de.invert(it*Pe,it*Ze*ve)},Me}function nr(){var ie=2,se=0,de=t.geoProjectionMutator(Rr),ve=de(ie,se);return ve.distance=function(ke){return arguments.length?de(ie=+ke,se):ie},ve.tilt=function(ke){return arguments.length?de(ie,se=ke*M):se*E},ve.scale(432.147).clipAngle(D(1/ie)*E-1e-6)}var dr=1e-4,vr=1e4,Pr=-180,$r=Pr+dr,Oi=180,Di=Oi-dr,ji=-90,en=ji+dr,Zr=90,si=Zr-dr;function cn(ie){return ie.length>0}function Dn(ie){return Math.floor(ie*vr)/vr}function wa(ie){return ie===ji||ie===Zr?[0,ie]:[Pr,Dn(ie)]}function Ka(ie){var se=ie[0],de=ie[1],ve=!1;return se<=$r?(se=Pr,ve=!0):se>=Di&&(se=Oi,ve=!0),de<=en?(de=ji,ve=!0):de>=si&&(de=Zr,ve=!0),ve?[se,de]:ie}function Ia(ie){return ie.map(Ka)}function _o(ie,se,de){for(var ve=0,ke=ie.length;ve=Di||at<=en||at>=si){Me[Pe]=Ka(it);for(var xt=Pe+1;xt$r&&Gten&&or=Ze)break;de.push({index:-1,polygon:se,ring:Me=Me.slice(xt-1)}),Me[0]=wa(Me[0][1]),Pe=-1,Ze=Me.length}}}}function ca(ie){var se,de=ie.length,ve={},ke={},Me,Pe,Ze,it,Xe;for(se=0;se0?_-Ze:Ze)*E],Xe=t.geoProjection(ie(Pe)).rotate(it),at=t.geoRotation(it),xt=Xe.center;return delete Xe.rotate,Xe.center=function(It){return arguments.length?xt(at(It)):at.invert(xt())},Xe.clipAngle(90)}function Sl(ie){var se=o(ie);function de(ve,ke){var Me=t.geoGnomonicRaw(ve,ke);return Me[0]*=se,Me}return de.invert=function(ve,ke){return t.geoGnomonicRaw.invert(ve/se,ke)},de}function Du(){return bf([-158,21.5],[-77,39]).clipAngle(60).scale(400)}function bf(ie,se){return Fs(Sl,ie,se)}function Zc(ie){if(!(ie*=2))return t.geoAzimuthalEquidistantRaw;var se=-ie/2,de=-se,ve=ie*ie,ke=m(de),Me=.5/v(de);function Pe(Ze,it){var Xe=D(o(it)*o(Ze-se)),at=D(o(it)*o(Ze-de)),xt=it<0?-1:1;return Xe*=Xe,at*=at,[(Xe-at)/(2*ie),xt*F(4*ve*at-(ve-Xe+at)*(ve-Xe+at))/(2*ie)]}return Pe.invert=function(Ze,it){var Xe=it*it,at=o(F(Xe+(It=Ze+se)*It)),xt=o(F(Xe+(It=Ze+de)*It)),It,Gt;return[a(Gt=at-xt,It=(at+xt)*ke),(it<0?-1:1)*D(F(It*It+Gt*Gt)*Me)]},Pe}function Jf(){return Qu([-158,21.5],[-77,39]).clipAngle(130).scale(122.571)}function Qu(ie,se){return Fs(Zc,ie,se)}function Dh(ie,se){if(i(se)g&&--Ze>0);return[d(ie)*(F(ke*ke+4)+ke)*_/4,b*Pe]};function Kc(){return t.geoProjection(i1).scale(127.16)}function py(ie,se,de,ve,ke){function Me(Pe,Ze){var it=de*v(ve*Ze),Xe=F(1-it*it),at=F(2/(1+Xe*o(Pe*=ke)));return[ie*Xe*at*v(Pe),se*it*at]}return Me.invert=function(Pe,Ze){var it=Pe/ie,Xe=Ze/se,at=F(it*it+Xe*Xe),xt=2*k(at/2);return[a(Pe*m(xt),ie*at)/ke,at&&k(Ze*v(xt)/(se*de*at))/ve]},Me}function n1(ie,se,de,ve){var ke=_/3;ie=c(ie,g),se=c(se,g),ie=f(ie,b),se=f(se,_-g),de=c(de,0),de=f(de,100-g),ve=c(ve,g);var Me=de/100+1,Pe=ve/100,Ze=D(Me*o(ke))/ke,it=v(ie)/v(Ze*b),Xe=se/_,at=F(Pe*v(ie/2)/v(se/2)),xt=at/F(Xe*it*Ze),It=1/(at*F(Xe*it*Ze));return py(xt,It,it,Ze,Xe)}function Lg(){var ie=65*M,se=60*M,de=20,ve=200,ke=t.geoProjectionMutator(n1),Me=ke(ie,se,de,ve);return Me.poleline=function(Pe){return arguments.length?ke(ie=+Pe*M,se,de,ve):ie*E},Me.parallels=function(Pe){return arguments.length?ke(ie,se=+Pe*M,de,ve):se*E},Me.inflation=function(Pe){return arguments.length?ke(ie,se,de=+Pe,ve):de},Me.ratio=function(Pe){return arguments.length?ke(ie,se,de,ve=+Pe):ve},Me.scale(163.775)}function a1(){return Lg().poleline(65).parallels(60).inflation(0).ratio(200).scale(172.633)}var Lh=4*_+3*F(3),Pg=2*F(2*_*F(3)/Lh),Bp=fe(Pg*F(3)/_,Pg,Lh/6);function qp(){return t.geoProjection(Bp).scale(176.84)}function fd(ie,se){return[ie*F(1-3*se*se/(_*_)),se]}fd.invert=function(ie,se){return[ie/F(1-3*se*se/(_*_)),se]};function Op(){return t.geoProjection(fd).scale(152.63)}function hd(ie,se){var de=o(se),ve=o(ie)*de,ke=1-ve,Me=o(ie=a(v(ie)*de,-v(se))),Pe=v(ie);return de=F(1-ve*ve),[Pe*de-Me*ke,-Me*de-Pe*ke]}hd.invert=function(ie,se){var de=(ie*ie+se*se)/-2,ve=F(-de*(2+de)),ke=se*de+ie*ve,Me=ie*de-se*ve,Pe=F(Me*Me+ke*ke);return[a(ve*ke,Pe*(1+de)),Pe?-k(ve*Me/Pe):0]};function o1(){return t.geoProjection(hd).rotate([0,-90,45]).scale(124.75).clipAngle(180-.001)}function Ig(ie,se){var de=X(ie,se);return[(de[0]+ie/b)/2,(de[1]+se)/2]}Ig.invert=function(ie,se){var de=ie,ve=se,ke=25;do{var Me=o(ve),Pe=v(ve),Ze=v(2*ve),it=Pe*Pe,Xe=Me*Me,at=v(de),xt=o(de/2),It=v(de/2),Gt=It*It,or=1-Xe*xt*xt,Mr=or?D(Me*xt)*F(Gr=1/or):Gr=0,Gr,_i=.5*(2*Mr*Me*It+de/b)-ie,on=.5*(Mr*Pe+ve)-se,mn=.5*Gr*(Xe*Gt+Mr*Me*xt*it)+.5/b,Tn=Gr*(at*Ze/4-Mr*Pe*It),Pn=.125*Gr*(Ze*It-Mr*Pe*Xe*at),no=.5*Gr*(it*xt+Mr*Gt*Me)+.5,Do=Tn*Pn-no*mn,fa=(on*Tn-_i*no)/Do,us=(_i*Pn-on*mn)/Do;de-=fa,ve-=us}while((i(fa)>g||i(us)>g)&&--ke>0);return[de,ve]};function _c(){return t.geoProjection(Ig).scale(158.837)}e.geoNaturalEarth=t.geoNaturalEarth1,e.geoNaturalEarthRaw=t.geoNaturalEarth1Raw,e.geoAiry=$,e.geoAiryRaw=O,e.geoAitoff=K,e.geoAitoffRaw=X,e.geoArmadillo=q,e.geoArmadilloRaw=G,e.geoAugust=N,e.geoAugustRaw=J,e.geoBaker=j,e.geoBakerRaw=H,e.geoBerghaus=te,e.geoBerghausRaw=Q,e.geoBertin1953=Se,e.geoBertin1953Raw=oe,e.geoBoggs=Te,e.geoBoggsRaw=pe,e.geoBonne=Le,e.geoBonneRaw=me,e.geoBottomley=Je,e.geoBottomleyRaw=Ne,e.geoBromley=mt,e.geoBromleyRaw=rt,e.geoChamberlin=Ue,e.geoChamberlinRaw=bt,e.geoChamberlinAfrica=Oe,e.geoCollignon=$e,e.geoCollignonRaw=je,e.geoCraig=Ve,e.geoCraigRaw=Ie,e.geoCraster=Wt,e.geoCrasterRaw=_t,e.geoCylindricalEqualArea=fr,e.geoCylindricalEqualAreaRaw=Ht,e.geoCylindricalStereographic=Ot,e.geoCylindricalStereographicRaw=lr,e.geoEckert1=Cr,e.geoEckert1Raw=Jt,e.geoEckert2=Qe,e.geoEckert2Raw=Ge,e.geoEckert3=gt,e.geoEckert3Raw=nt,e.geoEckert4=Ft,e.geoEckert4Raw=ht,e.geoEckert5=Ut,e.geoEckert5Raw=hr,e.geoEckert6=jr,e.geoEckert6Raw=Lr,e.geoEisenlohr=Ii,e.geoEisenlohrRaw=Fr,e.geoFahey=la,e.geoFaheyRaw=ln,e.geoFoucaut=pn,e.geoFoucautRaw=mo,e.geoFoucautSinusoidal=gn,e.geoFoucautSinusoidalRaw=zn,e.geoGilbert=as,e.geoGingery=Us,e.geoGingeryRaw=ro,e.geoGinzburg4=Ml,e.geoGinzburg4Raw=el,e.geoGinzburg5=dl,e.geoGinzburg5Raw=Au,e.geoGinzburg6=ot,e.geoGinzburg6Raw=Fe,e.geoGinzburg8=kt,e.geoGinzburg8Raw=lt,e.geoGinzburg9=zt,e.geoGinzburg9Raw=er,e.geoGringorten=ni,e.geoGringortenRaw=Zt,e.geoGuyou=fo,e.geoGuyouRaw=ma,e.geoHammer=Ee,e.geoHammerRaw=ue,e.geoHammerRetroazimuthal=ms,e.geoHammerRetroazimuthalRaw=ko,e.geoHealpix=ys,e.geoHealpixRaw=No,e.geoHill=rl,e.geoHillRaw=tl,e.geoHomolosine=yc,e.geoHomolosineRaw=Su,e.geoHufnagel=Za,e.geoHufnagelRaw=$l,e.geoHyperelliptical=du,e.geoHyperellipticalRaw=Cs,e.geoInterrupt=Jo,e.geoInterruptedBoggs=Nv,e.geoInterruptedHomolosine=c0,e.geoInterruptedMollweide=wh,e.geoInterruptedMollweideHemispheres=f0,e.geoInterruptedSinuMollweide=Th,e.geoInterruptedSinusoidal=h0,e.geoKavrayskiy7=rd,e.geoKavrayskiy7Raw=td,e.geoLagrange=Gv,e.geoLagrangeRaw=Vv,e.geoLarrivee=Ah,e.geoLarriveeRaw=bp,e.geoLaskowski=Ds,e.geoLaskowskiRaw=Zu,e.geoLittrow=ku,e.geoLittrowRaw=Ho,e.geoLoximuthal=Mh,e.geoLoximuthalRaw=id,e.geoMiller=Hv,e.geoMillerRaw=d0,e.geoModifiedStereographic=mf,e.geoModifiedStereographicRaw=bg,e.geoModifiedStereographicAlaska=$v,e.geoModifiedStereographicGs48=Eh,e.geoModifiedStereographicGs50=_g,e.geoModifiedStereographicMiller=nd,e.geoModifiedStereographicLee=_p,e.geoMollweide=ae,e.geoMollweideRaw=ee,e.geoMtFlatPolarParabolic=wg,e.geoMtFlatPolarParabolicRaw=ad,e.geoMtFlatPolarQuartic=ay,e.geoMtFlatPolarQuarticRaw=Tg,e.geoMtFlatPolarSinusoidal=Yv,e.geoMtFlatPolarSinusoidalRaw=Xf,e.geoNaturalEarth2=Tp,e.geoNaturalEarth2Raw=Zf,e.geoNellHammer=od,e.geoNellHammerRaw=xc,e.geoInterruptedQuarticAuthalic=Ag,e.geoNicolosi=Mg,e.geoNicolosiRaw=Xv,e.geoPatterson=p0,e.geoPattersonRaw=Mp,e.geoPolyconic=Eg,e.geoPolyconicRaw=kh,e.geoPolyhedral=sd,e.geoPolyhedralButterfly=Ch,e.geoPolyhedralCollignon=fy,e.geoPolyhedralWaterman=Dp,e.geoProject=e1,e.geoGringortenQuincuncial=Ae,e.geoPeirceQuincuncial=qe,e.geoPierceQuincuncial=qe,e.geoQuantize=et,e.geoQuincuncial=Rp,e.geoRectangularPolyconic=Tt,e.geoRectangularPolyconicRaw=Ye,e.geoRobinson=cr,e.geoRobinsonRaw=Qt,e.geoSatellite=nr,e.geoSatelliteRaw=Rr,e.geoSinuMollweide=Mu,e.geoSinuMollweideRaw=hu,e.geoSinusoidal=we,e.geoSinusoidalRaw=ze,e.geoStitch=yo,e.geoTimes=Da,e.geoTimesRaw=pi,e.geoTwoPointAzimuthal=bf,e.geoTwoPointAzimuthalRaw=Sl,e.geoTwoPointAzimuthalUsa=Du,e.geoTwoPointEquidistant=Qu,e.geoTwoPointEquidistantRaw=Zc,e.geoTwoPointEquidistantUsa=Jf,e.geoVanDerGrinten=Fh,e.geoVanDerGrintenRaw=Dh,e.geoVanDerGrinten2=Fg,e.geoVanDerGrinten2Raw=zp,e.geoVanDerGrinten3=Ox,e.geoVanDerGrinten3Raw=r1,e.geoVanDerGrinten4=Kc,e.geoVanDerGrinten4Raw=i1,e.geoWagner=Lg,e.geoWagner7=a1,e.geoWagnerRaw=n1,e.geoWagner4=qp,e.geoWagner4Raw=Bp,e.geoWagner6=Op,e.geoWagner6Raw=fd,e.geoWiechel=o1,e.geoWiechelRaw=hd,e.geoWinkel3=_c,e.geoWinkel3Raw=Ig,Object.defineProperty(e,"__esModule",{value:!0})}))});var hGe=W((_Jr,fGe)=>{"use strict";var ll=gi(),oee=tt(),$lr=xi(),Y4=Math.PI/180,B_=180/Math.PI,lee={cursor:"pointer"},uee={cursor:"auto"};function Wlr(e,t){var r=e.projection,i;return t._isScoped?i=Ylr:t._isClipped?i=Zlr:i=Xlr,i(e,r)}fGe.exports=Wlr;function cee(e,t){return ll.behavior.zoom().translate(t.translate()).scaleExtent(t.scaleExtent()).scale(t.scale())}function fee(e,t,r){var i=e.id,n=e.graphDiv,a=n.layout,o=a[i],s=n._fullLayout,l=s[i],u={},c={};function f(h,p){u[i+"."+h]=oee.nestedProperty(o,h).get(),$lr.call("_storeDirectGUIEdit",a,s._preGUI,u);var d=oee.nestedProperty(l,h);d.get()!==p&&(d.set(p),oee.nestedProperty(o,h).set(p),c[i+"."+h]=p)}r(f),f("projection.scale",t.scale()/e.fitScale),f("fitbounds",!1),n.emit("plotly_relayout",c)}function Ylr(e,t){var r=cee(e,t);function i(){ll.select(this).style(lee)}function n(){t.scale(ll.event.scale).translate(ll.event.translate),e.render(!0);var s=t.invert(e.midPt);e.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":t.scale()/e.fitScale,"geo.center.lon":s[0],"geo.center.lat":s[1]})}function a(s){var l=t.invert(e.midPt);s("center.lon",l[0]),s("center.lat",l[1])}function o(){ll.select(this).style(uee),fee(e,t,a)}return r.on("zoomstart",i).on("zoom",n).on("zoomend",o),r}function Xlr(e,t){var r=cee(e,t),i=2,n,a,o,s,l,u,c,f,h;function p(_){return t.invert(_)}function d(_){var b=p(_);if(!b)return!0;var S=t(b);return Math.abs(S[0]-_[0])>i||Math.abs(S[1]-_[1])>i}function v(){ll.select(this).style(lee);let{x:_,y:b,width:S,height:x}=this.getBBox();n=ll.event.sourceEvent?ll.mouse(this):[_+S/2,b+x/2],a=t.rotate(),o=t.translate(),s=a,l=p(n)}function m(){let{x:_,y:b,width:S,height:x}=this.getBBox();if(u=ll.event.sourceEvent?ll.mouse(this):[_+S/2,b+x/2],d(n)){r.scale(t.scale()),r.translate(t.translate());return}t.scale(ll.event.scale),t.translate([o[0],ll.event.translate[1]]),l?p(u)&&(f=p(u),c=[s[0]+(f[0]-l[0]),a[1],a[2]],t.rotate(c),s=c):(n=u,l=p(n)),h=!0,e.render(!0);var A=t.rotate(),T=t.invert(e.midPt);e.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":t.scale()/e.fitScale,"geo.center.lon":T[0],"geo.center.lat":T[1],"geo.projection.rotation.lon":-A[0]})}function g(){ll.select(this).style(uee),h&&fee(e,t,w)}function w(_){var b=t.rotate(),S=t.invert(e.midPt);_("projection.rotation.lon",-b[0]),_("center.lon",S[0]),_("center.lat",S[1])}return r.on("zoomstart",v).on("zoom",m).on("zoomend",g),r}function Zlr(e,t){var r={r:t.rotate(),k:t.scale()},i=cee(e,t),n=nur(i,"zoomstart","zoom","zoomend"),a=0,o=i.on,s;i.on("zoomstart",function(){ll.select(this).style(lee);let{x:h,y:p,width:d,height:v}=this.getBBox(),m=ll.event.sourceEvent?ll.mouse(this):[h+d/2,p+v/2],g=t.rotate(),w=g,_=t.translate(),b=Klr(g);s=qR(t,m),o.call(i,"zoom",function(){let{x:S,y:x,width:A,height:T}=this.getBBox(),y=ll.event.sourceEvent?ll.mouse(this):[S+A/2,x+T/2];if(t.scale(r.k=ll.event.scale),!s)m=y,s=qR(t,m);else if(qR(t,y)){t.rotate(g).translate(_);var E=qR(t,y),M=Qlr(s,E),C=tur(Jlr(b,M)),k=r.r=eur(C,s,w);(!isFinite(k[0])||!isFinite(k[1])||!isFinite(k[2]))&&(k=w),t.rotate(k),w=k}u(n.of(this,arguments))}),l(n.of(this,arguments))}).on("zoomend",function(){ll.select(this).style(uee),o.call(i,"zoom",null),c(n.of(this,arguments)),fee(e,t,f)}).on("zoom.redraw",function(){e.render(!0);var h=t.rotate();e.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":t.scale()/e.fitScale,"geo.projection.rotation.lon":-h[0],"geo.projection.rotation.lat":-h[1]})});function l(h){a++||h({type:"zoomstart"})}function u(h){h({type:"zoom"})}function c(h){--a||h({type:"zoomend"})}function f(h){var p=t.rotate();h("projection.rotation.lon",-p[0]),h("projection.rotation.lat",-p[1])}return ll.rebind(i,n,"on")}function qR(e,t){var r=e.invert(t);return r&&isFinite(r[0])&&isFinite(r[1])&&rur(r)}function Klr(e){var t=.5*e[0]*Y4,r=.5*e[1]*Y4,i=.5*e[2]*Y4,n=Math.sin(t),a=Math.cos(t),o=Math.sin(r),s=Math.cos(r),l=Math.sin(i),u=Math.cos(i);return[a*s*u+n*o*l,n*s*u-a*o*l,a*o*u+n*s*l,a*s*l-n*o*u]}function Jlr(e,t){var r=e[0],i=e[1],n=e[2],a=e[3],o=t[0],s=t[1],l=t[2],u=t[3];return[r*o-i*s-n*l-a*u,r*s+i*o+n*u-a*l,r*l-i*u+n*o+a*s,r*u+i*l-n*s+a*o]}function Qlr(e,t){if(!(!e||!t)){var r=iur(e,t),i=Math.sqrt(cGe(r,r)),n=.5*Math.acos(Math.max(-1,Math.min(1,cGe(e,t)))),a=Math.sin(n)/i;return i&&[Math.cos(n),r[2]*a,-r[1]*a,r[0]*a]}}function eur(e,t,r){var i=see(t,2,e[0]);i=see(i,1,e[1]),i=see(i,0,e[2]-r[2]);var n=t[0],a=t[1],o=t[2],s=i[0],l=i[1],u=i[2],c=Math.atan2(a,n)*B_,f=Math.sqrt(n*n+a*a),h,p;Math.abs(l)>f?(p=(l>0?90:-90)-c,h=0):(p=Math.asin(l/f)*B_-c,h=Math.sqrt(f*f-l*l));var d=180-p-2*c,v=(Math.atan2(u,s)-Math.atan2(o,h))*B_,m=(Math.atan2(u,s)-Math.atan2(o,-h))*B_,g=lGe(r[0],r[1],p,v),w=lGe(r[0],r[1],d,m);return g<=w?[p,v,r[2]]:[d,m,r[2]]}function lGe(e,t,r,i){var n=uGe(r-e),a=uGe(i-t);return Math.sqrt(n*n+a*a)}function uGe(e){return(e%360+540)%360-180}function see(e,t,r){var i=r*Y4,n=e.slice(),a=t===0?1:0,o=t===2?1:2,s=Math.cos(i),l=Math.sin(i);return n[a]=e[a]*s-e[o]*l,n[o]=e[o]*s+e[a]*l,n}function tur(e){return[Math.atan2(2*(e[0]*e[1]+e[2]*e[3]),1-2*(e[1]*e[1]+e[2]*e[2]))*B_,Math.asin(Math.max(-1,Math.min(1,2*(e[0]*e[2]-e[3]*e[1]))))*B_,Math.atan2(2*(e[0]*e[3]+e[1]*e[2]),1-2*(e[2]*e[2]+e[3]*e[3]))*B_]}function rur(e){var t=e[0]*Y4,r=e[1]*Y4,i=Math.cos(r);return[i*Math.cos(t),i*Math.sin(t),Math.sin(r)]}function cGe(e,t){for(var r=0,i=0,n=e.length;i{"use strict";var X1=gi(),pee=DR(),aur=pee.geoPath,our=pee.geoDistance,sur=sGe(),lur=xi(),qE=tt(),uur=qE.strTranslate,OR=ti(),BE=Qi(),dGe=Is(),cur=Qo(),dee=Yi(),{concatExtremes:fur,getAutoRange:pGe,makePadFn:vGe}=Yp(),hee=Ef(),hur=xu().prepSelect,dur=xu().clearOutline,pur=xu().selectOnClick,vur=hGe(),ph=(LE(),Pt(FE)),vee=Am(),{unwrapLonRange:gur}=vee,mGe=xR(),mur=NQ().feature;function yGe(e){this.id=e.id,this.graphDiv=e.graphDiv,this.container=e.container,this.topojsonURL=e.topojsonURL,this.isStatic=e.staticPlot,this.topojsonName=null,this.topojson=null,this.projection=null,this.scope=null,this.viewInitial=null,this.fitScale=null,this.bounds=null,this.midPt=null,this.hasChoropleth=!1,this.traceHash={},this.layers={},this.basePaths={},this.dataPaths={},this.dataPoints={},this.clipDef=null,this.clipRect=null,this.bgRect=null,this.makeFramework()}var Tv=yGe.prototype;xGe.exports=function(t){return new yGe(t)};Tv.plot=function(e,t,r,i){var n=this;if(i)return n.update(e,t,!0);n._geoCalcData=e,n._fullLayout=t;var a=t[this.id],o=[],s=!1;for(var l in ph.layerNameToAdjective)if(l!=="frame"&&a["show"+l]){s=!0;break}for(var u=!1,c=0;c0&&o._module.calcGeoJSON(a,t)}if(!r){var s=this.updateProjection(e,t);if(s)return;(!this.viewInitial||this.scope!==i.scope)&&this.saveViewInitial(i)}this.scope=i.scope,this.updateBaseLayers(t,i),this.updateDims(t,i),this.updateFx(t,i),cur.generalUpdatePerTraceModule(this.graphDiv,this,e,i);var l=this.layers.frontplot.select(".scatterlayer");this.dataPoints.point=l.selectAll(".point"),this.dataPoints.text=l.selectAll("text"),this.dataPaths.line=l.selectAll(".js-line");var u=this.layers.backplot.select(".choroplethlayer");this.dataPaths.choropleth=u.selectAll("path"),this._render()};Tv.updateProjection=function(e,t){var r=this.graphDiv,i=t[this.id],n=t._size,a=i.domain,o=i.projection,s=i.lonaxis,l=i.lataxis,u=s._ax,c=l._ax,f=this.projection=yur(i),h=[[n.l+n.w*a.x[0],n.t+n.h*(1-a.y[1])],[n.l+n.w*a.x[1],n.t+n.h*(1-a.y[0])]],p=i.center||{},d=o.rotation||{},v=s.range||[],m=l.range||[];if(i.fitbounds){u._length=h[1][0]-h[0][0],c._length=h[1][1]-h[0][1],u.range=pGe(r,u),c.range=pGe(r,c);let F=[];for(let G of e){let q=G[0].trace;q.visible===!0&&q._module.fitCoords&&F.push(q._module.fitCoords(G,i))}let P=fur(r,u),R=P.min.reduce((G,{val:q})=>Math.min(G,q),1/0),I=P.max.reduce((G,{val:q})=>Math.max(G,q),-1/0)-R,B=vee.boundsOfCoords(F.flat()),[O,,$]=B||[],X=$-O;if(!!B&&(I>360||I<360&&XMath.max(j,G(Q)),0),N=P.max.reduce((j,Q)=>Math.max(j,q(Q)),0),V=u._length-J-N,Y=V>u._length/10?X*u._length/V:X,H=(O+$)/2;u.range=[H-Y/2,H+Y/2]}var g=(u.range[0]+u.range[1])/2,w=(c.range[0]+c.range[1])/2;if(i._isScoped)p={lon:g,lat:w};else if(i._isClipped){p={lon:g,lat:w},d={lon:g,lat:w,roll:d.roll};var _=o.type,b=ph.lonaxisSpan[_]/2||180,S=ph.lataxisSpan[_]/2||90;v=[g-b,g+b],m=[w-S,w+S]}else p={lon:g,lat:w},d={lon:g,lat:d.lat,roll:d.roll}}f.center([p.lon-d.lon,p.lat-d.lat]).rotate([-d.lon,-d.lat,d.roll]).parallels(o.parallels);var x=gGe(v,m);f.fitExtent(h,x);var A=this.bounds=f.getBounds(x),T=this.fitScale=f.scale(),y=f.translate();if(f.scaleExtent=()=>{var R;let{minscale:F}=o,P=(R=o.maxscale)!=null?R:1/0;return[T*Math.min(F,P),T*Math.max(F,P)]},i.fitbounds){var E=f.getBounds(gGe(u.range,c.range)),M=Math.min((A[1][0]-A[0][0])/(E[1][0]-E[0][0]),(A[1][1]-A[0][1])/(E[1][1]-E[0][1]));isFinite(M)?f.scale(M*T):qE.warn("Something went wrong during"+this.id+"fitbounds computations.")}else f.scale(o.scale*T);var C=this.midPt=[(A[0][0]+A[1][0])/2,(A[0][1]+A[1][1])/2];if(f.translate([y[0]+(C[0]-y[0]),y[1]+(C[1]-y[1])]).clipExtent(A),i._isAlbersUsa){var k=f([p.lon,p.lat]);if(k){var D=f.translate();f.translate([D[0]-(k[0]-D[0]),D[1]-(k[1]-D[1])])}}};Tv.updateBaseLayers=function(e,t){var r=this,i=r.topojson,n=r.layers,a=r.basePaths;function o(h){return h==="lonaxis"||h==="lataxis"}function s(h){return!!ph.lineLayers[h]}function l(h){return!!ph.fillLayers[h]}var u=this.hasChoropleth?ph.layersForChoropleth:ph.layers,c=u.filter(function(h){return s(h)||l(h)?t["show"+h]:o(h)?t[h].showgrid:!0}),f=r.framework.selectAll(".layer").data(c,String);f.exit().each(function(h){delete n[h],delete a[h],X1.select(this).remove()}),f.enter().append("g").attr("class",function(h){return"layer "+h}).each(function(h){var p=n[h]=X1.select(this);h==="bg"?r.bgRect=p.append("rect").style("pointer-events","all"):o(h)?a[h]=p.append("path").style("fill","none"):h==="backplot"?p.append("g").classed("choroplethlayer",!0):h==="frontplot"?p.append("g").classed("scatterlayer",!0):s(h)?a[h]=p.append("path").style("fill","none").style("stroke-miterlimit",2):l(h)&&(a[h]=p.append("path").style("stroke","none"))}),f.order(),f.each(function(h){var p=a[h],d=ph.layerNameToAdjective[h];h==="frame"?p.datum(ph.sphereSVG):s(h)||l(h)?p.datum(mur(i,i.objects[h])):o(h)&&p.datum(xur(h,t,e)).call(OR.stroke,t[h].gridcolor).call(BE.dashLine,t[h].griddash,t[h].gridwidth),s(h)?p.call(OR.stroke,t[d+"color"]).call(BE.dashLine,"",t[d+"width"]):l(h)&&p.call(OR.fill,t[d+"color"])})};Tv.updateDims=function(e,t){var r=this.bounds,i=(t.framewidth||0)/2,n=r[0][0]-i,a=r[0][1]-i,o=r[1][0]-n+i,s=r[1][1]-a+i;BE.setRect(this.clipRect,n,a,o,s),this.bgRect.call(BE.setRect,n,a,o,s).call(OR.fill,t.bgcolor),this.xaxis._offset=n,this.xaxis._length=o,this.yaxis._offset=a,this.yaxis._length=s};Tv.updateFx=function(e,t){var r=this,i=r.graphDiv,n=r.bgRect,a=e.dragmode,o=e.clickmode;if(r.isStatic)return;function s(){var f=r.viewInitial,h={};for(var p in f)h[r.id+"."+p]=f[p];lur.call("_guiRelayout",i,h),i.emit("plotly_doubleclick",null)}function l(f){return r.projection.invert([f[0]+r.xaxis._offset,f[1]+r.yaxis._offset])}var u=function(f,h){if(h.isRect){var p=f.range={};p[r.id]=[l([h.xmin,h.ymin]),l([h.xmax,h.ymax])]}else{var d=f.lassoPoints={};d[r.id]=h.map(l)}},c={element:r.bgRect.node(),gd:i,plotinfo:{id:r.id,xaxis:r.xaxis,yaxis:r.yaxis,fillRangeItems:u},xaxes:[r.xaxis],yaxes:[r.yaxis],subplot:r.id,clickFn:function(f){f===2&&dur(i)}};if(a==="pan"){n.node().onmousedown=null;let f=vur(r,t);if(n.call(f),!X1.event){let h=r.projection.scale(),[p,d]=r.projection.scaleExtent();(hd)&&f.event(n)}n.on("dblclick.zoom",s),i._context._scrollZoom.geo||n.on("wheel.zoom",null)}else(a==="select"||a==="lasso")&&(n.on(".zoom",null),c.prepFn=function(f,h,p){hur(f,h,p,c,a)},hee.init(c));n.on("mousemove",function(){var f=r.projection.invert(qE.getPositionFromD3Event());if(!f)return hee.unhover(i,X1.event);r.xaxis.p2c=function(){return f[0]},r.yaxis.p2c=function(){return f[1]},dGe.hover(i,X1.event,r.id)}),n.on("mouseout",function(){i._dragging||hee.unhover(i,X1.event)}),n.on("click",function(){a!=="select"&&a!=="lasso"&&(o.indexOf("select")>-1&&pur(X1.event,i,[r.xaxis],[r.yaxis],r.id,c),o.indexOf("event")>-1&&dGe.click(i,X1.event))})};Tv.makeFramework=function(){var e=this,t=e.graphDiv,r=t._fullLayout,i="clip"+r._uid+e.id;e.clipDef=r._clips.append("clipPath").attr("id",i),e.clipRect=e.clipDef.append("rect"),e.framework=X1.select(e.container).append("g").attr("class","geo "+e.id).call(BE.setClipUrl,i,t),e.project=function(n){var a=e.projection(n);return a?[a[0]-e.xaxis._offset,a[1]-e.yaxis._offset]:[null,null]},e.xaxis={_id:"x",c2p:function(n){return e.project(n)[0]}},e.yaxis={_id:"y",c2p:function(n){return e.project(n)[1]}},e.mockAxis={type:"linear",showexponent:"all",exponentformat:"B"},dee.setConvert(e.mockAxis,r)};Tv.saveViewInitial=function(e){var t=e.center||{},r=e.projection,i=r.rotation||{};this.viewInitial={fitbounds:e.fitbounds,"projection.scale":r.scale};var n;e._isScoped?n={"center.lon":t.lon,"center.lat":t.lat}:e._isClipped?n={"projection.rotation.lon":i.lon,"projection.rotation.lat":i.lat,"center.lon":t.lon,"center.lat":t.lat}:n={"center.lon":t.lon,"center.lat":t.lat,"projection.rotation.lon":i.lon},qE.extendFlat(this.viewInitial,n)};Tv.render=function(e){this._hasMarkerAngles&&e?this.plot(this._geoCalcData,this._fullLayout,[],!0):this._render()};Tv._render=function(){var e=this.projection,t=e.getPath(),r;function i(a){var o=e(a.lonlat);return o?uur(o[0],o[1]):null}function n(a){return e.isLonLatOverEdges(a.lonlat)?"none":null}for(r in this.basePaths)this.basePaths[r].attr("d",t);for(r in this.dataPaths)this.dataPaths[r].attr("d",function(a){return t(a.geojson)});for(r in this.dataPoints)this.dataPoints[r].attr("display",n).attr("transform",i)};function yur(e){var t=e.projection,r=t.type,i=ph.projNames[r];i="geo"+qE.titleCase(i);for(var n=pee[i]||sur[i],a=n(),o=e._isSatellite?Math.acos(1/t.distance)*180/Math.PI:e._isClipped?ph.lonaxisSpan[r]/2:null,s=["center","rotate","parallels","clipExtent"],l=function(f){return f?a:[]},u=0;ud}else return!1},a.getPath=function(){return aur().projection(a)},a.getBounds=function(f){return a.getPath().bounds(f)},a.precision(ph.precision),e._isSatellite&&a.tilt(t.tilt).distance(t.distance),o&&a.clipAngle(o-ph.clipPad),a}function xur(e,t,r){var i=1e-6,n=2.5,a=t[e],o=ph.scopeDefaults[t.scope],s,l,u;e==="lonaxis"?(s=o.lonaxisRange,l=o.lataxisRange,u=function(w,_){return[w,_]}):e==="lataxis"&&(s=o.lataxisRange,l=o.lonaxisRange,u=function(w,_){return[_,w]});var c={type:"linear",range:[s[0],s[1]-i],tick0:a.tick0,dtick:a.dtick};dee.setConvert(c,r);var f=dee.calcTicks(c);!t.isScoped&&e==="lonaxis"&&f.pop();for(var h=f.length,p=new Array(h),d=0;d{"use strict";var Z4=Yl(),bur=ds().attributes,_ur=zu().dash,X4=(LE(),Pt(FE)),wur=hs().overrideAll,_Ge=(Qx(),Pt(Jx)).default,wGe={range:{valType:"info_array",items:[{valType:"number"},{valType:"number"}]},showgrid:{valType:"boolean",dflt:!1},tick0:{valType:"number",dflt:0},dtick:{valType:"number"},gridcolor:{valType:"color",dflt:Z4.lightLine},gridwidth:{valType:"number",min:0,dflt:1},griddash:_ur},Tur=TGe.exports=wur({domain:bur({name:"geo"},{}),fitbounds:{valType:"enumerated",values:[!1,"locations","geojson"],dflt:"locations",editType:"plot"},resolution:{valType:"enumerated",values:[110,50],dflt:110,coerceNumber:!0},scope:{valType:"enumerated",values:_Ge(X4.scopeDefaults),dflt:"world"},projection:{type:{valType:"enumerated",values:_Ge(X4.projNames)},rotation:{lon:{valType:"number"},lat:{valType:"number"},roll:{valType:"number"}},tilt:{valType:"number",dflt:0},distance:{valType:"number",min:1.001,dflt:2},parallels:{valType:"info_array",items:[{valType:"number"},{valType:"number"}]},scale:{valType:"number",min:0,dflt:1},minscale:{valType:"number",min:0,dflt:0},maxscale:{valType:"number",min:0,dflt:null}},center:{lon:{valType:"number"},lat:{valType:"number"}},visible:{valType:"boolean",dflt:!0},showcoastlines:{valType:"boolean"},coastlinecolor:{valType:"color",dflt:Z4.defaultLine},coastlinewidth:{valType:"number",min:0,dflt:1},showland:{valType:"boolean",dflt:!1},landcolor:{valType:"color",dflt:X4.landColor},showocean:{valType:"boolean",dflt:!1},oceancolor:{valType:"color",dflt:X4.waterColor},showlakes:{valType:"boolean",dflt:!1},lakecolor:{valType:"color",dflt:X4.waterColor},showrivers:{valType:"boolean",dflt:!1},rivercolor:{valType:"color",dflt:X4.waterColor},riverwidth:{valType:"number",min:0,dflt:1},showcountries:{valType:"boolean"},countrycolor:{valType:"color",dflt:Z4.defaultLine},countrywidth:{valType:"number",min:0,dflt:1},showsubunits:{valType:"boolean"},subunitcolor:{valType:"color",dflt:Z4.defaultLine},subunitwidth:{valType:"number",min:0,dflt:1},showframe:{valType:"boolean"},framecolor:{valType:"color",dflt:Z4.defaultLine},framewidth:{valType:"number",min:0,dflt:1},bgcolor:{valType:"color",dflt:Z4.background},lonaxis:wGe,lataxis:wGe},"plot","from-root");Tur.uirevision={valType:"any",editType:"none"}});var SGe=W((AJr,MGe)=>{"use strict";var NR=tt(),Aur=Kb(),Mur=Mc().getSubplotData,{unwrapLonRange:Sur}=Am(),OE=(LE(),Pt(FE)),Eur=gee(),AGe=OE.axesNames;MGe.exports=function(t,r,i){Aur(t,r,i,{type:"geo",attributes:Eur,handleDefaults:kur,fullData:i,partition:"y"})};function kur(e,t,r,i){var n=Mur(i.fullData,"geo",i.id),a=n.map(function(B){return B.index}),o=r("resolution"),s=r("scope"),l=OE.scopeDefaults[s],u=r("projection.type",l.projType),c=t._isAlbersUsa=u==="albers usa";c&&(s=t.scope="usa");var f=t._isScoped=s!=="world",h=t._isSatellite=u==="satellite",p=t._isConic=u.indexOf("conic")!==-1||u==="albers",d=t._isClipped=!!OE.lonaxisSpan[u];if(e.visible===!1){var v=NR.extendDeep({},t._template);v.showcoastlines=!1,v.showcountries=!1,v.showframe=!1,v.showlakes=!1,v.showland=!1,v.showocean=!1,v.showrivers=!1,v.showsubunits=!1,v.lonaxis&&(v.lonaxis.showgrid=!1),v.lataxis&&(v.lataxis.showgrid=!1),t._template=v}for(var m=r("visible"),g,w=0;wJ[N]!=null)||OE.fitboundsIncompatible.has(u)?t.fitbounds=!1:G.forEach(({dst:J,key:N})=>J&&(J[N]=null))}}});var mee=W((MJr,CGe)=>{"use strict";var Cur=Mc().getSubplotCalcData,Dur=tt().counterRegex,Fur=bGe(),Z1="geo",EGe=Dur(Z1),kGe={};kGe[Z1]={valType:"subplotid",dflt:Z1,editType:"calc"};function Lur(e){for(var t=e._fullLayout,r=e.calcdata,i=t._subplots[Z1],n=0;n{"use strict";DGe.exports={attributes:W4(),supplyDefaults:iVe(),colorbar:Cc(),formatLabels:oVe(),calc:OQ(),calcGeoJSON:RR().calcGeoJSON,fitCoords:RR().fitCoords,plot:RR().plot,style:ree(),styleOnSelect:lh().styleOnSelect,hoverPoints:JVe(),eventData:eGe(),selectPoints:iGe(),moduleType:"trace",name:"scattergeo",basePlotModule:mee(),categories:["geo","symbols","showLegend","scatter-like"],meta:{}}});var PGe=W((EJr,LGe)=>{"use strict";LGe.exports=FGe()});var NE=W((kJr,zGe)=>{"use strict";var{hovertemplateAttrs:Rur,templatefallbackAttrs:zur}=Wa(),N2=W4(),Bur=Fo(),IGe=Ja(),qur=Yl().defaultLine,O2=an().extendFlat,RGe=N2.marker.line;zGe.exports=O2({locations:{valType:"data_array",editType:"calc"},locationmode:N2.locationmode,z:{valType:"data_array",editType:"calc"},geojson:O2({},N2.geojson,{}),featureidkey:N2.featureidkey,text:O2({},N2.text,{}),hovertext:O2({},N2.hovertext,{}),marker:{line:{color:O2({},RGe.color,{dflt:qur}),width:O2({},RGe.width,{dflt:1}),editType:"calc"},opacity:{valType:"number",arrayOk:!0,min:0,max:1,dflt:1,editType:"style"},editType:"calc"},selected:{marker:{opacity:N2.selected.marker.opacity,editType:"plot"},editType:"plot"},unselected:{marker:{opacity:N2.unselected.marker.opacity,editType:"plot"},editType:"plot"},hoverinfo:O2({},IGe.hoverinfo,{editType:"calc",flags:["location","z","text","name"]}),hovertemplate:Rur(),hovertemplatefallback:zur(),showlegend:O2({},IGe.showlegend,{dflt:!1})},Bur("",{cLetter:"z",editTypeOverride:"calc"}))});var qGe=W((CJr,BGe)=>{"use strict";var UR=tt(),Our=Bu(),Nur=NE();BGe.exports=function(t,r,i,n){function a(h,p){return UR.coerce(t,r,Nur,h,p)}var o=a("locations"),s=a("z");if(!(o&&o.length&&UR.isArrayOrTypedArray(s)&&s.length)){r.visible=!1;return}r._length=Math.min(o.length,s.length);var l=a("geojson"),u;(typeof l=="string"&&l!==""||UR.isPlainObject(l))&&(u="geojson-id");var c=a("locationmode",u);c==="geojson-id"&&a("featureidkey"),a("text"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback");var f=a("marker.line.width");f&&a("marker.line.color"),a("marker.opacity"),Our(t,r,n,a,{prefix:"",cLetter:"z"}),UR.coerceSelectionMarkerOpacity(r,a)}});var yee=W((DJr,UGe)=>{"use strict";var OGe=hn(),Uur=(ra(),Pt(ia)).BADNUM,Vur=rf(),Gur=L1(),Hur=C0();function NGe(e){return e&&typeof e=="string"}UGe.exports=function(t,r){var i=r._length,n=new Array(i),a;r.geojson?a=function(c){return NGe(c)||OGe(c)}:a=NGe;for(var o=0;o{"use strict";var jur=gi(),$ur=ti(),xee=Qi(),Wur=es();function Yur(e,t){t&&VGe(e,t)}function VGe(e,t){var r=t[0].trace,i=t[0].node3,n=i.selectAll(".choroplethlocation"),a=r.marker||{},o=a.line||{},s=Wur.makeColorScaleFuncFromTrace(r);n.each(function(l){jur.select(this).attr("fill",s(l.z)).call($ur.stroke,l.mlc||o.color).call(xee.dashLine,"",l.mlw||o.width||0).style("opacity",a.opacity)}),xee.selectedPointStyle(n,r)}function Xur(e,t){var r=t[0].node3,i=t[0].trace;i.selectedpoints?xee.selectedPointStyle(r.selectAll(".choroplethlocation"),i):VGe(e,t)}GGe.exports={style:Yur,styleOnSelect:Xur}});var GR=W((LJr,$Ge)=>{"use strict";var Zur=gi(),HGe=tt(),q_=Am(),Kur=xR().getTopojsonFeatures,jGe=Yp().findExtremes,Jur=VR().style;function Qur(e,t,r){var i=t.layers.backplot.select(".choroplethlayer");HGe.makeTraceGroups(i,r,"trace choropleth").each(function(n){var a=Zur.select(this),o=a.selectAll("path.choroplethlocation").data(HGe.identity);o.enter().append("path").classed("choroplethlocation",!0),o.exit().remove(),Jur(e,n)})}function ecr(e,t){var r=e[0].trace,i=t[r.geo],n=i._subplot,a=r.locationmode,o=r._length,s=a==="geojson-id"?q_.extractTraceFeature(e):Kur(r,n.topojson);let l=q_.fitGeojsonBbox(r,i);for(var u=[],c=[],f=0;f{"use strict";var rcr=Yi(),icr=NE(),ncr=tt().fillText,{ANTIMERIDIAN_LON_SHIFT:acr}=Am();WGe.exports=function(t,r,i){var n=t.cd,a=n[0].trace,o=t.subplot,s,l,u,c,f=[r,i];let h=[r+acr,i];for(l=0;l")}}});var _ee=W((IJr,YGe)=>{"use strict";YGe.exports=function(t,r,i,n,a){t.location=r.location,t.z=r.z;var o=n[a];return o.fIn&&o.fIn.properties&&(t.properties=o.fIn.properties),t.ct=o.ct,t}});var wee=W((RJr,XGe)=>{"use strict";XGe.exports=function(t,r){var i=t.cd,n=t.xaxis,a=t.yaxis,o=[],s,l,u,c,f;if(r===!1)for(s=0;s{"use strict";ZGe.exports={attributes:NE(),supplyDefaults:qGe(),colorbar:F5(),calc:yee(),calcGeoJSON:GR().calcGeoJSON,fitCoords:GR().fitCoords,plot:GR().plot,style:VR().style,styleOnSelect:VR().styleOnSelect,hoverPoints:bee(),eventData:_ee(),selectPoints:wee(),moduleType:"trace",name:"choropleth",basePlotModule:mee(),categories:["geo","noOpacity","showLegend"],meta:{}}});var QGe=W((BJr,JGe)=>{"use strict";JGe.exports=KGe()});var HR=W((qJr,tHe)=>{"use strict";var scr=xi(),U0=tt(),lcr=s5(),ucr=Qi();function ccr(e,t,r,i){var n=e.cd,a=n[0].t,o=n[0].trace,s=e.xa,l=e.ya,u=a.x,c=a.y,f=s.c2p(t),h=l.c2p(r),p=e.distance,d;if(a.tree){var v=s.p2c(f-p),m=s.p2c(f+p),g=l.p2c(h-p),w=l.p2c(h+p);i==="x"?d=a.tree.range(Math.min(v,m),Math.min(l._rl[0],l._rl[1]),Math.max(v,m),Math.max(l._rl[0],l._rl[1])):d=a.tree.range(Math.min(v,m),Math.min(g,w),Math.max(v,m),Math.max(g,w))}else d=a.ids;var _,b,S,x,A,T,y,E,M,C=p;if(i==="x"){var k=!!o.xperiodalignment,D=!!o.yperiodalignment;for(A=0;A=Math.min(F,P)&&f<=Math.max(F,P)?0:1/0}if(T<=C){if(C=T,x=c[_],y=l.c2p(x)-h,D){var R=l.c2p(o._yStarts[_]),L=l.c2p(o._yEnds[_]);y=h>=Math.min(R,L)&&h<=Math.max(R,L)?0:1/0}M=Math.sqrt(T*T+y*y),b=d[A]}}}else for(A=0;Avcr,SYMBOL_SDF_SIZE:()=>hcr,SYMBOL_SIZE:()=>dcr,SYMBOL_STROKE:()=>pcr,TOO_MANY_POINTS:()=>fcr});var fcr,hcr,dcr,pcr,vcr,N_=Ci(()=>{"use strict";fcr=1e5,hcr=200,dcr=20,pcr=1,vcr={solid:[1],dot:[1,1],dash:[4,1],longdash:[8,1],dashdot:[4,1,1,1],longdashdot:[8,1,1,1]}});var UE=W((OJr,aHe)=>{"use strict";var gcr=Ja(),mcr=jo(),ycr=C1(),zs=Ws(),rHe=Ts().axisHoverFormat,iHe=Fo(),xcr=(Qx(),Pt(Jx)).default,Tee=an().extendFlat,bcr=hs().overrideAll,_cr=(N_(),Pt(O_)).DASHES,nHe=zs.line,Mm=zs.marker,wcr=Mm.line,U2=aHe.exports=bcr({x:zs.x,x0:zs.x0,dx:zs.dx,y:zs.y,y0:zs.y0,dy:zs.dy,xperiod:zs.xperiod,yperiod:zs.yperiod,xperiod0:zs.xperiod0,yperiod0:zs.yperiod0,xperiodalignment:zs.xperiodalignment,yperiodalignment:zs.yperiodalignment,xhoverformat:rHe("x"),yhoverformat:rHe("y"),text:zs.text,hovertext:zs.hovertext,textposition:zs.textposition,textfont:mcr({noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0,editType:"calc",colorEditType:"style",arrayOk:!0,noNumericWeightValues:!0,variantValues:["normal","small-caps"]}),mode:{valType:"flaglist",flags:["lines","markers","text"],extras:["none"]},line:{color:nHe.color,width:nHe.width,shape:{valType:"enumerated",values:["linear","hv","vh","hvh","vhv"],dflt:"linear",editType:"plot"},dash:{valType:"enumerated",values:xcr(_cr),dflt:"solid"}},marker:Tee({},iHe("marker"),{symbol:Mm.symbol,angle:Mm.angle,size:Mm.size,sizeref:Mm.sizeref,sizemin:Mm.sizemin,sizemode:Mm.sizemode,opacity:Mm.opacity,colorbar:Mm.colorbar,line:Tee({},iHe("marker.line"),{width:wcr.width})}),connectgaps:zs.connectgaps,fill:Tee({},zs.fill,{dflt:"none"}),fillcolor:ycr(),selected:{marker:zs.selected.marker,textfont:zs.selected.textfont},unselected:{marker:zs.unselected.marker,textfont:zs.unselected.textfont},opacity:gcr.opacity},"calc","nested");U2.x.editType=U2.y.editType=U2.x0.editType=U2.y0.editType="calc+clearAxisTypes";U2.hovertemplate=zs.hovertemplate;U2.hovertemplatefallback=zs.hovertemplatefallback;U2.texttemplate=zs.texttemplate;U2.texttemplatefallback=zs.texttemplatefallback});var jR=W(Aee=>{"use strict";var{symbolNumber:oHe}=Qi();Aee.isOpenSymbol=e=>oHe(e)%200>=100;Aee.isDotSymbol=e=>oHe(e)>=200});var uHe=W((UJr,lHe)=>{"use strict";var sHe=tt(),Tcr=xi(),Acr=jR(),Mcr=UE(),Scr=(k1(),Pt(E1)),$R=Wo(),Ecr=Lb(),kcr=Qp(),Ccr=Dd(),Dcr=ev(),Fcr=F1(),Lcr=tv();lHe.exports=function(t,r,i,n){function a(p,d){return sHe.coerce(t,r,Mcr,p,d)}var o=t.marker?Acr.isOpenSymbol(t.marker.symbol):!1,s=$R.isBubble(t),l=Ecr(t,r,n,a);if(!l){r.visible=!1;return}kcr(t,r,n,a),a("xhoverformat"),a("yhoverformat");var u=l{"use strict";var Pcr=QF();cHe.exports=function(t,r,i){var n=t.i;return"x"in t||(t.x=r._x[n]),"y"in t||(t.y=r._y[n]),Pcr(t,r,i)}});var dHe=W((GJr,hHe)=>{"use strict";function Icr(e,t,r,i,n){for(var a=n+1;i<=n;){var o=i+n>>>1,s=e[o],l=r!==void 0?r(s,t):s-t;l>=0?(a=o,n=o-1):i=o+1}return a}function Rcr(e,t,r,i,n){for(var a=n+1;i<=n;){var o=i+n>>>1,s=e[o],l=r!==void 0?r(s,t):s-t;l>0?(a=o,n=o-1):i=o+1}return a}function zcr(e,t,r,i,n){for(var a=i-1;i<=n;){var o=i+n>>>1,s=e[o],l=r!==void 0?r(s,t):s-t;l<0?(a=o,i=o+1):n=o-1}return a}function Bcr(e,t,r,i,n){for(var a=i-1;i<=n;){var o=i+n>>>1,s=e[o],l=r!==void 0?r(s,t):s-t;l<=0?(a=o,i=o+1):n=o-1}return a}function qcr(e,t,r,i,n){for(;i<=n;){var a=i+n>>>1,o=e[a],s=r!==void 0?r(o,t):o-t;if(s===0)return a;s<=0?i=a+1:n=a-1}return-1}function VE(e,t,r,i,n,a){return typeof r=="function"?a(e,t,r,i===void 0?0:i|0,n===void 0?e.length-1:n|0):a(e,t,void 0,r===void 0?0:r|0,i===void 0?e.length-1:i|0)}hHe.exports={ge:function(e,t,r,i,n){return VE(e,t,r,i,n,Icr)},gt:function(e,t,r,i,n){return VE(e,t,r,i,n,Rcr)},lt:function(e,t,r,i,n){return VE(e,t,r,i,n,zcr)},le:function(e,t,r,i,n){return VE(e,t,r,i,n,Bcr)},eq:function(e,t,r,i,n){return VE(e,t,r,i,n,qcr)}}});var Mee=W((HJr,pHe)=>{pHe.exports=Ocr;function Ocr(e,t,r){return tr?r:e:et?t:e}});var K1=W((jJr,gHe)=>{"use strict";gHe.exports=function(t,r,i){var n={},a,o;if(typeof r=="string"&&(r=vHe(r)),Array.isArray(r)){var s={};for(o=0;o{"use strict";var Ncr=K1();mHe.exports=Ucr;function Ucr(e){var t;return arguments.length>1&&(e=arguments),typeof e=="string"?e=e.split(/\s/).map(parseFloat):typeof e=="number"&&(e=[e]),e.length&&typeof e[0]=="number"?e.length===1?t={width:e[0],height:e[0],x:0,y:0}:e.length===2?t={width:e[0],height:e[1],x:0,y:0}:t={x:e[0],y:e[1],width:e[2]-e[0]||0,height:e[3]-e[1]||0}:e&&(e=Ncr(e,{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"}),t={x:e.left||0,y:e.top||0},e.width==null?e.right?t.width=e.right-t.x:t.width=0:t.width=e.width,e.height==null?e.bottom?t.height=e.bottom-t.y:t.height=0:t.height=e.height),t}});var U_=W((WJr,yHe)=>{"use strict";yHe.exports=Vcr;function Vcr(e,t){if(!e||e.length==null)throw Error("Argument should be an array");t==null?t=1:t=Math.floor(t);for(var r=Array(t*2),i=0;in&&(n=e[o]),e[o]{"use strict";xHe.exports=function(){for(var t=0;t{_He.exports=function(e){switch(e){case"int8":return Int8Array;case"int16":return Int16Array;case"int32":return Int32Array;case"uint8":return Uint8Array;case"uint16":return Uint16Array;case"uint32":return Uint32Array;case"float32":return Float32Array;case"float64":return Float64Array;case"array":return Array;case"uint8_clamped":return Uint8ClampedArray}}});var V_=W((ZJr,THe)=>{var wHe=WR();THe.exports=Gcr;function Gcr(e,t,r){if(!e)throw new TypeError("must specify data as first parameter");if(r=+(r||0)|0,Array.isArray(e)&&e[0]&&typeof e[0][0]=="number"){var i=e[0].length,n=e.length*i,a,o,s,l;(!t||typeof t=="string")&&(t=new(wHe(t||"float32"))(n+r));var u=t.length-r;if(n!==u)throw new Error("source length "+n+" ("+i+"x"+e.length+") does not match destination length "+u);for(a=0,s=r;a{"use strict";AHe.exports=function(e){var t=typeof e;return e!==null&&(t==="object"||t==="function")}});var EHe=W((JJr,SHe)=>{"use strict";SHe.exports=Math.log2||function(e){return Math.log(e)*Math.LOG2E}});var IHe=W((QJr,PHe)=>{"use strict";var kHe=dHe(),CHe=Mee(),Hcr=K4(),jcr=U_(),DHe=K1(),Eee=bHe(),$cr=V_(),Wcr=MHe(),Ycr=WR(),FHe=EHe(),Xcr=1073741824;PHe.exports=function(t,r){r||(r={}),t=$cr(t,"float64"),r=DHe(r,{bounds:"range bounds dataBox databox",maxDepth:"depth maxDepth maxdepth level maxLevel maxlevel levels",dtype:"type dtype format out dst output destination"});let i=Eee(r.maxDepth,255),n=Eee(r.bounds,jcr(t,2));n[0]===n[2]&&n[2]++,n[1]===n[3]&&n[3]++;let a=LHe(t,n),o=t.length>>>1,s;r.dtype||(r.dtype="array"),typeof r.dtype=="string"?s=new(Ycr(r.dtype))(o):r.dtype&&(s=r.dtype,Array.isArray(s)&&(s.length=o));for(let g=0;gi||x>Xcr){for(let L=0;L$||y>X||E=C||B===O)return;let K=l[I];O===void 0&&(O=K.length);for(let Q=B;Q=b&&ue<=x&&ge>=S&&ge<=A&&k.push(te)}let G=u[I],q=G[B*4+0],J=G[B*4+1],N=G[B*4+2],V=G[B*4+3],Y=F(G,B+1),H=L*.5,j=I+1;D(P,R,H,j,q,J||N||V||Y),D(P,R+H,H,j,J,N||V||Y),D(P+H,R,H,j,N,V||Y),D(P+H,R+H,H,j,V,Y)}function F(P,R){let L=null,I=0;for(;L===null;)if(L=P[R*4+I],I++,I>P.length)return null;return L}return k}function v(g,w,_,b,S){let x=[];for(let A=0;A{"use strict";RHe.exports=IHe()});var BHe=W((tQr,zHe)=>{zHe.exports=Kcr;var kee={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},Zcr=/([astvzqmhlc])([^astvzqmhlc]*)/ig;function Kcr(e){var t=[];return e.replace(Zcr,function(r,i,n){var a=i.toLowerCase();for(n=Qcr(n),a=="m"&&n.length>2&&(t.push([i].concat(n.splice(0,2))),a="l",i=i=="m"?"l":"L");;){if(n.length==kee[a])return n.unshift(i),t.push(n);if(n.length{qHe.exports=efr;function efr(e){var t=0,r=0,i=0,n=0;return e.map(function(a){a=a.slice();var o=a[0],s=o.toUpperCase();if(o!=s)switch(a[0]=s,o){case"a":a[6]+=i,a[7]+=n;break;case"v":a[1]+=n;break;case"h":a[1]+=i;break;default:for(var l=1;l{"use strict";Object.defineProperty(XR,"__esModule",{value:!0});var tfr=(function(){function e(t,r){var i=[],n=!0,a=!1,o=void 0;try{for(var s=t[Symbol.iterator](),l;!(n=(l=s.next()).done)&&(i.push(l.value),!(r&&i.length===r));n=!0);}catch(u){a=!0,o=u}finally{try{!n&&s.return&&s.return()}finally{if(a)throw o}}return i}return function(t,r){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),GE=Math.PI*2,Cee=function(t,r,i,n,a,o,s){var l=t.x,u=t.y;l*=r,u*=i;var c=n*l-a*u,f=a*l+n*u;return{x:c+o,y:f+s}},rfr=function(t,r){var i=r===1.5707963267948966?.551915024494:r===-1.5707963267948966?-.551915024494:1.3333333333333333*Math.tan(r/4),n=Math.cos(t),a=Math.sin(t),o=Math.cos(t+r),s=Math.sin(t+r);return[{x:n-a*i,y:a+n*i},{x:o+s*i,y:s-o*i},{x:o,y:s}]},NHe=function(t,r,i,n){var a=t*n-r*i<0?-1:1,o=t*i+r*n;return o>1&&(o=1),o<-1&&(o=-1),a*Math.acos(o)},ifr=function(t,r,i,n,a,o,s,l,u,c,f,h){var p=Math.pow(a,2),d=Math.pow(o,2),v=Math.pow(f,2),m=Math.pow(h,2),g=p*d-p*m-d*v;g<0&&(g=0),g/=p*m+d*v,g=Math.sqrt(g)*(s===l?-1:1);var w=g*a/o*h,_=g*-o/a*f,b=c*w-u*_+(t+i)/2,S=u*w+c*_+(r+n)/2,x=(f-w)/a,A=(h-_)/o,T=(-f-w)/a,y=(-h-_)/o,E=NHe(1,0,x,A),M=NHe(x,A,T,y);return l===0&&M>0&&(M-=GE),l===1&&M<0&&(M+=GE),[b,S,E,M]},nfr=function(t){var r=t.px,i=t.py,n=t.cx,a=t.cy,o=t.rx,s=t.ry,l=t.xAxisRotation,u=l===void 0?0:l,c=t.largeArcFlag,f=c===void 0?0:c,h=t.sweepFlag,p=h===void 0?0:h,d=[];if(o===0||s===0)return[];var v=Math.sin(u*GE/360),m=Math.cos(u*GE/360),g=m*(r-n)/2+v*(i-a)/2,w=-v*(r-n)/2+m*(i-a)/2;if(g===0&&w===0)return[];o=Math.abs(o),s=Math.abs(s);var _=Math.pow(g,2)/Math.pow(o,2)+Math.pow(w,2)/Math.pow(s,2);_>1&&(o*=Math.sqrt(_),s*=Math.sqrt(_));var b=ifr(r,i,n,a,o,s,f,p,v,m,g,w),S=tfr(b,4),x=S[0],A=S[1],T=S[2],y=S[3],E=Math.abs(y)/(GE/4);Math.abs(1-E)<1e-7&&(E=1);var M=Math.max(Math.ceil(E),1);y/=M;for(var C=0;C{"use strict";HHe.exports=ofr;var afr=VHe();function ofr(e){for(var t,r=[],i=0,n=0,a=0,o=0,s=null,l=null,u=0,c=0,f=0,h=e.length;f4?(i=p[p.length-4],n=p[p.length-3]):(i=u,n=c),r.push(p)}return r}function ZR(e,t,r,i){return["C",e,t,r,i,r,i]}function GHe(e,t,r,i,n,a){return["C",e/3+2/3*r,t/3+2/3*i,n/3+2/3*r,a/3+2/3*i,n,a]}});var Dee=W((nQr,$He)=>{"use strict";$He.exports=function(t){return typeof t!="string"?!1:(t=t.trim(),!!(/^[mzlhvcsqta]\s*[-+.0-9][^mlhvzcsqta]+/i.test(t)&&/[\dz]$/i.test(t)&&t.length>4))}});var YHe=W((aQr,WHe)=>{"use strict";var sfr=BHe(),lfr=OHe(),ufr=jHe(),cfr=Dee();WHe.exports=ffr;function ffr(e){if(Array.isArray(e)&&e.length===1&&typeof e[0]=="string"&&(e=e[0]),typeof e=="string"){if(!cfr(e))throw Error("String is not an SVG path.");e=sfr(e)}if(!Array.isArray(e))throw Error("Argument should be a string or an array of path segments.");if(e=lfr(e),e=ufr(e),!e.length)return[0,0,0,0];for(var t=[1/0,1/0,-1/0,-1/0],r=0,i=e.length;rt[2]&&(t[2]=n[a+0]),n[a+1]>t[3]&&(t[3]=n[a+1]);return t}});var JHe=W((oQr,KHe)=>{"use strict";KHe.exports=hfr;var HE=1e20;function hfr(e,t){t||(t={});var r=t.cutoff==null?.25:t.cutoff,i=t.radius==null?8:t.radius,n=t.channel||0,a,o,s,l,u,c,f,h,p,d,v;if(ArrayBuffer.isView(e)||Array.isArray(e)){if(!t.width||!t.height)throw Error("For raw data width and height should be provided by options");a=t.width,o=t.height,l=e,t.stride?c=t.stride:c=Math.floor(e.length/a/o)}else window.HTMLCanvasElement&&e instanceof window.HTMLCanvasElement?(h=e,f=h.getContext("2d"),a=h.width,o=h.height,p=f.getImageData(0,0,a,o),l=p.data,c=4):window.CanvasRenderingContext2D&&e instanceof window.CanvasRenderingContext2D?(h=e.canvas,f=e,a=h.width,o=h.height,p=f.getImageData(0,0,a,o),l=p.data,c=4):window.ImageData&&e instanceof window.ImageData&&(p=e,a=e.width,o=e.height,l=p.data,c=4);if(s=Math.max(a,o),window.Uint8ClampedArray&&l instanceof window.Uint8ClampedArray||window.Uint8Array&&l instanceof window.Uint8Array)for(u=l,l=Array(a*o),d=0,v=Math.floor(u.length/c);drje});function rje(e,t={}){if(!(0,eje.default)(e))throw Error("Invalid SVG path");let r,i;t.shape||Array.isArray(t)?[r,i]=t.shape||t:(r=Fee.width=t.width||t.w||200,i=Fee.height=t.height||t.h||200);let n=Math.min(r,i),a=t.stroke||0,o=t.viewbox||t.viewBox||(0,QHe.default)(e),s=[r/(o[2]-o[0]),i/(o[3]-o[1])],l=Math.min(s[0]||0,s[1]||0)/2;Av.fillStyle="black",Av.fillRect(0,0,r,i),Av.fillStyle="white",a&&(typeof a!="number"&&(a=1),Av.strokeStyle=a>0?"white":"black",Av.lineWidth=Math.abs(a)),Av.translate(r*.5,i*.5),Av.scale(l,l);let u=new Path2D(e);return Av.fill(u),a&&Av.stroke(u),Av.setTransform(1,0,0,1,0,0),(0,tje.default)(Av,{cutoff:t.cutoff!=null?t.cutoff:.5,radius:t.radius!=null?t.radius:n*.5})}var QHe,eje,tje,Fee,Av,nje=Ci(()=>{QHe=s1(YHe()),eje=s1(Dee()),tje=s1(JHe()),Fee=document.createElement("canvas"),Av=Fee.getContext("2d",{willReadFrequently:!0})});var j_=W((sQr,vje)=>{"use strict";var JR=hn(),dfr=(nje(),Pt(ije)).default,{normalize:KR,rgbaString:H_}=ti(),pfr=xi(),eT=tt(),Ul=eT.isArrayOrTypedArray,J4=Qi(),aje=Ls(),oje=_m().formatColor,Q4=Wo(),vfr=MA(),Pee=jR(),jE=(N_(),Pt(O_)),gfr=(Ng(),Pt(Og)).DESELECTDIM,sje={start:1,left:1,end:-1,right:-1,middle:0,center:0,bottom:1,top:-1},mfr=ah().appendArrayPointValue;function yfr(e,t){var r,i={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},n=e._context.plotGlPixelRatio;if(t.visible!==!0)return i;if(Q4.hasText(t)&&(i.text=pje(e,t),i.textSel=uje(e,t,t.selected),i.textUnsel=uje(e,t,t.unselected)),Q4.hasMarkers(t)&&(i.marker=Ree(e,t),i.markerSel=Iee(e,t,t.selected),i.markerUnsel=Iee(e,t,t.unselected),!t.unselected&&Ul(t.marker.opacity))){var a=t.marker.opacity;for(i.markerUnsel.opacity=new Array(a.length),r=0;r500?"bold":"normal":e}function Ree(e,t){var r=t._length,i=t.marker,n={},a,o=Ul(i.symbol),s=Ul(i.angle),l=Ul(i.color),u=Ul(i.line.color),c=Ul(i.opacity),f=Ul(i.size),h=Ul(i.line.width),p;if(o||(p=Pee.isOpenSymbol(i.symbol)),o||l||u||c||s){n.symbols=new Array(r),n.angles=new Array(r),n.colors=new Array(r),n.borderColors=new Array(r);var d=i.symbol,v=i.angle,m=oje(i,i.opacity,r),g=oje(i.line,i.opacity,r);if(!Ul(g[0])){var w=g;for(g=Array(r),a=0;ajE.TOO_MANY_POINTS||Q4.hasMarkers(t)?"rect":"round";if(u&&t.connectgaps){var f=a[0],h=a[1];for(o=0;o1?l[o]:l[0]:l,p=Ul(u)?u.length>1?u[o]:u[0]:u,d=sje[h],v=sje[p],m=c?c/.8+1:0,g=-v*m-v*.5;a.offset[o]=[d*m/f,g/f]}}return a}vje.exports={style:yfr,markerStyle:Ree,markerSelection:Iee,linePositions:bfr,errorBarPositions:_fr,textPosition:wfr}});var zee=W((uQr,gje)=>{"use strict";var QR=tt();gje.exports=function(t,r){var i=r._scene,n={count:0,dirty:!0,lineOptions:[],fillOptions:[],markerOptions:[],markerSelectedOptions:[],markerUnselectedOptions:[],errorXOptions:[],errorYOptions:[],textOptions:[],textSelectedOptions:[],textUnselectedOptions:[],selectBatch:[],unselectBatch:[]},a={fill2d:!1,scatter2d:!1,error2d:!1,line2d:!1,glText:!1,select2d:!1};return r._scene||(i=r._scene={},i.init=function(){QR.extendFlat(i,a,n)},i.init(),i.update=function(s){var l=QR.repeat(s,i.count);if(i.fill2d&&i.fill2d.update(l),i.scatter2d&&i.scatter2d.update(l),i.line2d&&i.line2d.update(l),i.error2d&&i.error2d.update(l.concat(l)),i.select2d&&i.select2d.update(l),i.glText)for(var u=0;u{"use strict";var Tfr=YR(),tT=tt(),mje=Ls(),Afr=Yp().findExtremes,yje=rv(),Bee=Ld(),Mfr=Bee.calcMarkerSize,Sfr=Bee.calcAxisExpansion,Efr=Bee.setFirstScatter,kfr=Fd(),rT=j_(),Cfr=zee(),xje=(ra(),Pt(ia)).BADNUM,Dfr=(N_(),Pt(O_)).TOO_MANY_POINTS;_je.exports=function(t,r){var i=t._fullLayout,n=r._xA=mje.getFromId(t,r.xaxis,"x"),a=r._yA=mje.getFromId(t,r.yaxis,"y"),o=i._plots[r.xaxis+r.yaxis],s=r._length,l=s>=Dfr,u=s*2,c={},f,h=n.makeCalcdata(r,"x"),p=a.makeCalcdata(r,"y"),d=yje(r,n,"x",h),v=yje(r,a,"y",p),m=d.vals,g=v.vals;r._x=m,r._y=g,r.xperiodalignment&&(r._origX=h,r._xStarts=d.starts,r._xEnds=d.ends),r.yperiodalignment&&(r._origY=p,r._yStarts=v.starts,r._yEnds=v.ends);var w=new Array(u),_=new Array(s);for(f=0;f1&&tT.extendFlat(o.line,rT.linePositions(e,r,i)),o.errorX||o.errorY){var s=rT.errorBarPositions(e,r,i,n,a);o.errorX&&tT.extendFlat(o.errorX,s.x),o.errorY&&tT.extendFlat(o.errorY,s.y)}return o.text&&(tT.extendFlat(o.text,{positions:i},rT.textPosition(e,r,o.text,o.marker)),tT.extendFlat(o.textSel,{positions:i},rT.textPosition(e,r,o.text,o.markerSel)),tT.extendFlat(o.textUnsel,{positions:i},rT.textPosition(e,r,o.text,o.markerUnsel))),o}});var qee=W((fQr,Aje)=>{"use strict";var Tje=tt(),Lfr=ti(),Pfr=(Ng(),Pt(Og)).DESELECTDIM;function Ifr(e){var t=e[0],r=t.trace,i=t.t,n=i._scene,a=i.index,o=n.selectBatch[a],s=n.unselectBatch[a],l=n.textOptions[a],u=n.textSelectedOptions[a]||{},c=n.textUnselectedOptions[a]||{},f=Tje.extendFlat({},l),h,p;if(o.length||s.length){var d=u.color,v=c.color,m=l.color,g=Tje.isArrayOrTypedArray(m);for(f.color=new Array(r._length),h=0;h{"use strict";var Mje=Wo(),Rfr=qee().styleTextSelection;Sje.exports=function(t,r){var i=t.cd,n=t.xaxis,a=t.yaxis,o=[],s=i[0].trace,l=i[0].t,u=s._length,c=l.x,f=l.y,h=l._scene,p=l.index;if(!h)return o;var d=Mje.hasText(s),v=Mje.hasMarkers(s),m=!v&&!d;if(s.visible!==!0||m)return o;var g=[],w=[];if(r!==!1&&!r.degenerate)for(var _=0;_{"use strict";var zfr=HR();Eje.exports={moduleType:"trace",name:"scattergl",basePlotModule:xl(),categories:["gl","regl","cartesian","symbols","errorBarsOK","showLegend","scatter-like"],attributes:UE(),supplyDefaults:uHe(),crossTraceDefaults:_$(),colorbar:Cc(),formatLabels:fHe(),calc:wje(),hoverPoints:zfr.hoverPoints,selectPoints:Oee(),meta:{}}});var Dje=W((pQr,Cje)=>{"use strict";Cje.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 Ije=W((vQr,Pje)=>{"use strict";var Fje=Dje();Pje.exports=Bfr;var Lje={red:0,orange:60,yellow:120,green:180,blue:240,purple:300};function Bfr(e){var t,r=[],i=1,n;if(typeof e=="string")if(e=e.toLowerCase(),Fje[e])r=Fje[e].slice(),n="rgb";else if(e==="transparent")i=0,n="rgb",r=[0,0,0];else if(/^#[A-Fa-f0-9]+$/.test(e)){var a=e.slice(1),o=a.length,s=o<=4;i=1,s?(r=[parseInt(a[0]+a[0],16),parseInt(a[1]+a[1],16),parseInt(a[2]+a[2],16)],o===4&&(i=parseInt(a[3]+a[3],16)/255)):(r=[parseInt(a[0]+a[1],16),parseInt(a[2]+a[3],16),parseInt(a[4]+a[5],16)],o===8&&(i=parseInt(a[6]+a[7],16)/255)),r[0]||(r[0]=0),r[1]||(r[1]=0),r[2]||(r[2]=0),n="rgb"}else if(t=/^((?:rgb|hs[lvb]|hwb|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms)a?)\s*\(([^\)]*)\)/.exec(e)){var l=t[1],u=l==="rgb",a=l.replace(/a$/,"");n=a;var o=a==="cmyk"?4:a==="gray"?1:3;r=t[2].trim().split(/\s*[,\/]\s*|\s+/).map(function(h,p){if(/%$/.test(h))return p===o?parseFloat(h)/100:a==="rgb"?parseFloat(h)*255/100:parseFloat(h);if(a[p]==="h"){if(/deg$/.test(h))return parseFloat(h);if(Lje[h]!==void 0)return Lje[h]}return parseFloat(h)}),l===a&&r.push(1),i=u||r[o]===void 0?1:r[o],r=r.slice(0,o)}else e.length>10&&/[0-9](?:\s|\/)/.test(e)&&(r=e.match(/([0-9]+)/g).map(function(c){return parseFloat(c)}),n=e.match(/([a-z])/ig).join("").toLowerCase());else isNaN(e)?Array.isArray(e)||e.length?(r=[e[0],e[1],e[2]],n="rgb",i=e.length===4?e[3]:1):e instanceof Object&&(e.r!=null||e.red!=null||e.R!=null?(n="rgb",r=[e.r||e.red||e.R||0,e.g||e.green||e.G||0,e.b||e.blue||e.B||0]):(n="hsl",r=[e.h||e.hue||e.H||0,e.s||e.saturation||e.S||0,e.l||e.lightness||e.L||e.b||e.brightness]),i=e.a||e.alpha||e.opacity||1,e.opacity!=null&&(i/=100)):(n="rgb",r=[e>>>16,(e&65280)>>>8,e&255]);return{space:n,values:r,alpha:i}}});var zje=W((gQr,Rje)=>{"use strict";var qfr=Ije();Rje.exports=function(t){Array.isArray(t)&&t.raw&&(t=String.raw.apply(null,arguments));var r,i,n,a=qfr(t);if(!a.space)return[];var o=[0,0,0],s=a.space[0]==="h"?[360,100,100]:[255,255,255];return r=Array(3),r[0]=Math.min(Math.max(a.values[0],o[0]),s[0]),r[1]=Math.min(Math.max(a.values[1],o[1]),s[1]),r[2]=Math.min(Math.max(a.values[2],o[2]),s[2]),a.space[0]==="h"&&(r=Ofr(r)),r.push(Math.min(Math.max(a.alpha,0),1)),r};function Ofr(e){var t=e[0]/360,r=e[1]/100,i=e[2]/100,n,a,o,s,l,u=0;if(r===0)return l=i*255,[l,l,l];for(a=i<.5?i*(1+r):i+r-i*r,n=2*i-a,s=[0,0,0];u<3;)o=t+1/3*-(u-1),o<0?o++:o>1&&o--,l=6*o<1?n+(a-n)*6*o:2*o<1?a:3*o<2?n+(a-n)*(2/3-o)*6:n,s[u++]=l*255;return s}});var $E=W((mQr,Bje)=>{"use strict";var Nfr=zje(),Ufr=WR();Bje.exports=function(t,r){(r==="float"||!r)&&(r="array"),r==="uint"&&(r="uint8"),r==="uint_clamped"&&(r="uint8_clamped");var i=Ufr(r),n=new i(4),a=r!=="uint8"&&r!=="uint8_clamped";return(!t.length||typeof t=="string")&&(t=Nfr(t),t[0]/=255,t[1]/=255,t[2]/=255),Vfr(t)?(n[0]=t[0],n[1]=t[1],n[2]=t[2],n[3]=t[3]!=null?t[3]:255,a&&(n[0]/=255,n[1]/=255,n[2]/=255,n[3]/=255),n):(a?(n[0]=t[0],n[1]=t[1],n[2]=t[2],n[3]=t[3]!=null?t[3]:1):(n[0]=Math.min(Math.max(Math.floor(t[0]*255),0),255),n[1]=Math.min(Math.max(Math.floor(t[1]*255),0),255),n[2]=Math.min(Math.max(Math.floor(t[2]*255),0),255),n[3]=t[3]==null?255:Math.min(Math.max(Math.floor(t[3]*255),0),255)),n)};function Vfr(e){return!!(e instanceof Uint8Array||e instanceof Uint8ClampedArray||Array.isArray(e)&&(e[0]>1||e[0]===0)&&(e[1]>1||e[1]===0)&&(e[2]>1||e[2]===0)&&(!e[3]||e[3]>1))}});var Oje=W((yQr,tz)=>{"use strict";var ez=Mee();tz.exports=qje;tz.exports.to=qje;tz.exports.from=Gfr;function qje(e,t){t==null&&(t=!0);var r=e[0],i=e[1],n=e[2],a=e[3];a==null&&(a=t?1:255),t&&(r*=255,i*=255,n*=255,a*=255),r=ez(r,0,255)&255,i=ez(i,0,255)&255,n=ez(n,0,255)&255,a=ez(a,0,255)&255;var o=r*16777216+(i<<16)+(n<<8)+a;return o}function Gfr(e,t){e=+e;var r=e>>>24,i=(e&16711680)>>>16,n=(e&65280)>>>8,a=e&255;return t===!1?[r,i,n,a]:[r/255,i/255,n/255,a/255]}});var Uje=W((xQr,Nje)=>{Nje.exports=function(e){typeof e=="string"&&(e=[e]);for(var t=[].slice.call(arguments,1),r=[],i=0;i{"use strict";Vje.exports=function(t,r,i){Array.isArray(i)||(i=[].slice.call(arguments,2));for(var n=0,a=i.length;n{"use strict";iT.exports=WE;iT.exports.float32=iT.exports.float=WE;iT.exports.fract32=iT.exports.fract=Hfr;var Gje=new Float32Array(1);function Hfr(e,t){if(e.length){if(e instanceof Float32Array)return new Float32Array(e.length);t instanceof Float32Array||(t=WE(e));for(var r=0,i=t.length;r{"use strict";var jfr=$E(),$fr=U_(),Wfr=Oje(),Yfr=YR(),iz=Uje(),Xfr=K1(),Zfr=Nee(),Kfr=V_(),nz=rz(),Jfr=K4(),Qfr=Rc;function Rc(e,t){if(!(this instanceof Rc))return new Rc(e,t);typeof e=="function"?(t||(t={}),t.regl=e):(t=e,e=null),t&&t.length&&(t.positions=t),e=t.regl;let r=e._gl,i,n=[],a={},o=[],s=[null],l=[null],u=255,c=100;this.tooManyColors=!1,i=e.texture({data:new Uint8Array(u*4),width:u,height:1,type:"uint8",format:"rgba",wrapS:"clamp",wrapT:"clamp",mag:"nearest",min:"nearest"}),Object.assign(this,{regl:e,gl:r,groups:o,markerCache:l,markerTextures:s,palette:n,paletteIds:a,paletteTexture:i,maxColors:u,maxSize:c,canvas:r.canvas}),this.update(t);let f={uniforms:{constPointSize:!!t.constPointSize,opacity:e.prop("opacity"),paletteSize:(d,v)=>[this.tooManyColors?0:u,i.height],pixelRatio:e.context("pixelRatio"),scale:e.prop("scale"),scaleFract:e.prop("scaleFract"),translate:e.prop("translate"),translateFract:e.prop("translateFract"),markerTexture:e.prop("markerTexture"),paletteTexture:i},attributes:{x:(d,v)=>v.xAttr||{buffer:v.positionBuffer,stride:8,offset:0},y:(d,v)=>v.yAttr||{buffer:v.positionBuffer,stride:8,offset:4},xFract:(d,v)=>v.xAttr?{constant:[0,0]}:{buffer:v.positionFractBuffer,stride:8,offset:0},yFract:(d,v)=>v.yAttr?{constant:[0,0]}:{buffer:v.positionFractBuffer,stride:8,offset:4},size:(d,v)=>v.size.length?{buffer:v.sizeBuffer,stride:2,offset:0}:{constant:[Math.round(v.size*255/this.maxSize)]},borderSize:(d,v)=>v.borderSize.length?{buffer:v.sizeBuffer,stride:2,offset:1}:{constant:[Math.round(v.borderSize*255/this.maxSize)]},colorId:(d,v)=>v.color.length?{buffer:v.colorBuffer,stride:this.tooManyColors?8:4,offset:0}:{constant:this.tooManyColors?n.slice(v.color*4,v.color*4+4):[v.color]},borderColorId:(d,v)=>v.borderColor.length?{buffer:v.colorBuffer,stride:this.tooManyColors?8:4,offset:this.tooManyColors?4:2}:{constant:this.tooManyColors?n.slice(v.borderColor*4,v.borderColor*4+4):[v.borderColor]},isActive:(d,v)=>v.activation===!0?{constant:[1]}:v.activation?v.activation:{constant:[0]}},blend:{enable:!0,color:[0,0,0,1],func:{srcRGB:"src alpha",dstRGB:"one minus src alpha",srcAlpha:"one minus dst alpha",dstAlpha:"one"}},scissor:{enable:!0,box:e.prop("viewport")},viewport:e.prop("viewport"),stencil:{enable:!1},depth:{enable:!1},elements:e.prop("elements"),count:e.prop("count"),offset:e.prop("offset"),primitive:"points"},h=Object.assign({},f);h.frag=iz([`precision highp float; #define GLSLIFY 1 uniform float opacity; @@ -2045,7 +2045,7 @@ void main() { } } -`]),h.vert=KR([`precision highp float; +`]),h.vert=iz([`precision highp float; #define GLSLIFY 1 attribute float x, y, xFract, yFract; @@ -2113,7 +2113,7 @@ void main() { fragBorderColorLevel = clamp(borderLevel - borderLevel * borderSize / size, 0., 1.); fragColorLevel = clamp(borderLevel + (1. - borderLevel) * borderSize / size, 0., 1.); } -`]),this.drawMarker=e(h);let p=Object.assign({},f);p.frag=KR([`precision highp float; +`]),this.drawMarker=e(h);let p=Object.assign({},f);p.frag=iz([`precision highp float; #define GLSLIFY 1 varying vec4 fragColor, fragBorderColor; @@ -2144,7 +2144,7 @@ void main() { color.a *= alpha * opacity; gl_FragColor = color; } -`]),p.vert=KR([`precision highp float; +`]),p.vert=iz([`precision highp float; #define GLSLIFY 1 attribute float x, y, xFract, yFract; @@ -2208,8 +2208,8 @@ void main() { fragBorderColor = borderColor.a == 0. || borderSize == 0. ? vec4(color.rgb, 0.) : borderColor; fragWidth = 1. / gl_PointSize; } -`]),this.drawCircle=e(p)}Ic.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};Ic.prototype.render=function(){return arguments.length&&this.update(...arguments),this.draw(),this};Ic.prototype.draw=function(){for(var e=arguments.length,t=new Array(e),r=0;r{this.drawItem(a)});return this};Ic.prototype.drawItem=function(e,t){let{groups:r}=this,i=r[e];if(typeof t=="number"&&(e=t,i=r[t],t=null),!(i&&i.count&&i.opacity))return;i.activation[0]&&this.drawCircle(this.getMarkerDrawOptions(0,i,t));let n=[];for(let a=1;a{let f=i[c];if(u===void 0)return f;u===null?u={positions:null}:typeof u=="function"?u={ondraw:u}:typeof u[0]=="number"&&(u={positions:u}),u=Ofr(u,{positions:"positions data points",snap:"snap cluster lod tree",size:"sizes size radius",borderSize:"borderSizes borderSize border-size bordersize borderWidth borderWidths border-width borderwidth stroke-width strokeWidth strokewidth outline",color:"colors color fill fill-color fillColor",borderColor:"borderColors borderColor stroke stroke-color strokeColor",marker:"markers marker shape",range:"range dataBox databox",viewport:"viewport viewPort viewBox viewbox",opacity:"opacity alpha transparency",bounds:"bound bounds boundaries limits",tooManyColors:"tooManyColors palette paletteMode optimizePalette enablePalette"}),u.positions===null&&(u.positions=[]),u.tooManyColors!=null&&(this.tooManyColors=u.tooManyColors),f||(i[c]=f={id:c,scale:null,translate:null,scaleFract:null,translateFract:null,activation:[],selectionBuffer:a.buffer({data:new Uint8Array(0),usage:"stream",type:"uint8"}),sizeBuffer:a.buffer({data:new Uint8Array(0),usage:"dynamic",type:"uint8"}),colorBuffer:a.buffer({data:new Uint8Array(0),usage:"dynamic",type:"uint8"}),positionBuffer:a.buffer({data:new Uint8Array(0),usage:"dynamic",type:"float"}),positionFractBuffer:a.buffer({data:new Uint8Array(0),usage:"dynamic",type:"float"})},u=Object.assign({},Ic.defaults,u)),u.positions&&!("marker"in u)&&(u.marker=f.marker,delete f.marker),u.marker&&!("positions"in u)&&(u.positions=f.positions,delete f.positions);let h=0,p=0;if(Nfr(f,u,[{snap:!0,size:(d,v)=>(d==null&&(d=Ic.defaults.size),h+=d&&d.length?1:0,d),borderSize:(d,v)=>(d==null&&(d=Ic.defaults.borderSize),h+=d&&d.length?1:0,d),opacity:parseFloat,color:(d,v)=>(d==null&&(d=Ic.defaults.color),d=this.updateColor(d),p++,d),borderColor:(d,v)=>(d==null&&(d=Ic.defaults.borderColor),d=this.updateColor(d),p++,d),bounds:(d,v,m)=>("range"in m||(m.range=null),d),positions:(d,v,m)=>{let{snap:g}=v,{positionBuffer:w,positionFractBuffer:_,selectionBuffer:b}=v;if(d.x||d.y)return d.x.length?v.xAttr={buffer:a.buffer(d.x),offset:0,stride:4,count:d.x.length}:v.xAttr={buffer:d.x.buffer,offset:d.x.offset*4||0,stride:(d.x.stride||1)*4,count:d.x.count},d.y.length?v.yAttr={buffer:a.buffer(d.y),offset:0,stride:4,count:d.y.length}:v.yAttr={buffer:d.y.buffer,offset:d.y.offset*4||0,stride:(d.y.stride||1)*4,count:d.y.count},v.count=Math.max(v.xAttr.count,v.yAttr.count),d;d=Ufr(d,"float64");let S=v.count=Math.floor(d.length/2),x=v.bounds=S?zfr(d,2):null;if(!m.range&&!v.range&&(delete v.range,m.range=x),!m.marker&&!v.marker&&(delete v.marker,m.marker=null),g&&(g===!0||S>g)?v.tree=qfr(d,{bounds:x}):g&&g.length&&(v.tree=g),v.tree){let y={primitive:"points",usage:"static",data:v.tree,type:"uint32"};v.elements?v.elements(y):v.elements=a.elements(y)}var T=JR.float32(d);w({data:T,usage:"dynamic"});var A=JR.fract32(d,T);return _({data:A,usage:"dynamic"}),b({data:new Uint8Array(S),type:"uint8",usage:"stream"}),d}},{marker:(d,v,m)=>{let{activation:g}=v;if(g.forEach(w=>w&&w.destroy&&w.destroy()),g.length=0,!d||typeof d[0]=="number"){let w=this.addMarker(d);g[w]=!0}else{let w=[];for(let _=0,b=Math.min(d.length,v.count);_{let g=v.bounds;if(g)return d||(d=g),v.scale=[1/(d[2]-d[0]),1/(d[3]-d[1])],v.translate=[-d[0],-d[1]],v.scaleFract=JR.fract(v.scale),v.translateFract=JR.fract(v.translate),d},viewport:d=>Vfr(d||[n.drawingBufferWidth,n.drawingBufferHeight])}]),h){let{count:d,size:v,borderSize:m,sizeBuffer:g}=f,w=new Uint8Array(d*2);if(v.length||m.length)for(let _=0;_=0)return n;let a;if(e instanceof Uint8Array||e instanceof Uint8ClampedArray)a=e;else{a=new Uint8Array(e.length);for(let s=0,l=e.length;si*4&&(this.tooManyColors=!0),this.updatePalette(r),n.length===1?n[0]:n};Ic.prototype.updatePalette=function(e){if(this.tooManyColors)return;let{maxColors:t,paletteTexture:r}=this,i=Math.ceil(e.length*.25/t);if(i>1){e=e.slice();for(let n=e.length*.25%t;n{e.sizeBuffer.destroy(),e.positionBuffer.destroy(),e.positionFractBuffer.destroy(),e.colorBuffer.destroy(),e.activation.forEach(t=>t&&t.destroy&&t.destroy()),e.selectionBuffer.destroy(),e.elements&&e.elements.destroy()}),this.groups.length=0,this.paletteTexture.destroy(),this.markerTextures.forEach(e=>e&&e.destroy&&e.destroy()),this};var Hfr=function(e,t){var r=new Gfr(e,t),i=r.render.bind(r);return Object.assign(i,{render:i,update:r.update.bind(r),draw:r.draw.bind(r),destroy:r.destroy.bind(r),regl:r.regl,gl:r.gl,canvas:r.gl.canvas,groups:r.groups,markers:r.markerCache,palette:r.palette}),i};zje.exports=Hfr});var Gu=W((uQr,qje)=>{"use strict";var Bje=Object.getOwnPropertySymbols,jfr=Object.prototype.hasOwnProperty,$fr=Object.prototype.propertyIsEnumerable;function Wfr(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function Yfr(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;var i=Object.getOwnPropertyNames(t).map(function(a){return t[a]});if(i.join("")!=="0123456789")return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach(function(a){n[a]=a}),Object.keys(Object.assign({},n)).join("")==="abcdefghijklmnopqrst"}catch(a){return!1}}qje.exports=Yfr()?Object.assign:function(e,t){for(var r,i=Wfr(e),n,a=1;a{"use strict";Bee.exports=tz;Bee.exports.default=tz;function tz(e,t,r){r=r||2;var i=t&&t.length,n=i?t[0]*r:e.length,a=Nje(e,0,n,r,!0),o=[];if(!a||a.next===a.prev)return o;var s,l,u,c,f,h,p;if(i&&(a=Qfr(e,t,a,r)),e.length>80*r){s=u=e[0],l=c=e[1];for(var d=r;du&&(u=f),h>c&&(c=h);p=Math.max(u-s,c-l),p=p!==0?32767/p:0}return $E(a,o,r,s,l,p,0),o}function Nje(e,t,r,i,n){var a,o;if(n===zee(e,t,r,i)>0)for(a=t;a=t;a-=i)o=Oje(a,e[a],e[a+1],o);return o&&rz(o,o.next)&&(YE(o),o=o.next),o}function G_(e,t){if(!e)return e;t||(t=e);var r=e,i;do if(i=!1,!r.steiner&&(rz(r,r.next)||Ol(r.prev,r,r.next)===0)){if(YE(r),r=t=r.prev,r===r.next)break;i=!0}else r=r.next;while(i||r!==t);return t}function $E(e,t,r,i,n,a,o){if(e){!o&&a&&nhr(e,i,n,a);for(var s=e,l,u;e.prev!==e.next;){if(l=e.prev,u=e.next,a?Zfr(e,i,n,a):Xfr(e)){t.push(l.i/r|0),t.push(e.i/r|0),t.push(u.i/r|0),YE(e),e=u.next,s=u.next;continue}if(e=u,e===s){o?o===1?(e=Kfr(G_(e),t,r),$E(e,t,r,i,n,a,2)):o===2&&Jfr(e,t,r,i,n,a):$E(G_(e),t,r,i,n,a,1);break}}}}function Xfr(e){var t=e.prev,r=e,i=e.next;if(Ol(t,r,i)>=0)return!1;for(var n=t.x,a=r.x,o=i.x,s=t.y,l=r.y,u=i.y,c=na?n>o?n:o:a>o?a:o,p=s>l?s>u?s:u:l>u?l:u,d=i.next;d!==t;){if(d.x>=c&&d.x<=h&&d.y>=f&&d.y<=p&&i6(n,s,a,l,o,u,d.x,d.y)&&Ol(d.prev,d,d.next)>=0)return!1;d=d.next}return!0}function Zfr(e,t,r,i){var n=e.prev,a=e,o=e.next;if(Ol(n,a,o)>=0)return!1;for(var s=n.x,l=a.x,u=o.x,c=n.y,f=a.y,h=o.y,p=sl?s>u?s:u:l>u?l:u,m=c>f?c>h?c:h:f>h?f:h,g=Iee(p,d,t,r,i),w=Iee(v,m,t,r,i),_=e.prevZ,b=e.nextZ;_&&_.z>=g&&b&&b.z<=w;){if(_.x>=p&&_.x<=v&&_.y>=d&&_.y<=m&&_!==n&&_!==o&&i6(s,c,l,f,u,h,_.x,_.y)&&Ol(_.prev,_,_.next)>=0||(_=_.prevZ,b.x>=p&&b.x<=v&&b.y>=d&&b.y<=m&&b!==n&&b!==o&&i6(s,c,l,f,u,h,b.x,b.y)&&Ol(b.prev,b,b.next)>=0))return!1;b=b.nextZ}for(;_&&_.z>=g;){if(_.x>=p&&_.x<=v&&_.y>=d&&_.y<=m&&_!==n&&_!==o&&i6(s,c,l,f,u,h,_.x,_.y)&&Ol(_.prev,_,_.next)>=0)return!1;_=_.prevZ}for(;b&&b.z<=w;){if(b.x>=p&&b.x<=v&&b.y>=d&&b.y<=m&&b!==n&&b!==o&&i6(s,c,l,f,u,h,b.x,b.y)&&Ol(b.prev,b,b.next)>=0)return!1;b=b.nextZ}return!0}function Kfr(e,t,r){var i=e;do{var n=i.prev,a=i.next.next;!rz(n,a)&&Uje(n,i,i.next,a)&&WE(n,a)&&WE(a,n)&&(t.push(n.i/r|0),t.push(i.i/r|0),t.push(a.i/r|0),YE(i),YE(i.next),i=e=a),i=i.next}while(i!==e);return G_(i)}function Jfr(e,t,r,i,n,a){var o=e;do{for(var s=o.next.next;s!==o.prev;){if(o.i!==s.i&&shr(o,s)){var l=Vje(o,s);o=G_(o,o.next),l=G_(l,l.next),$E(o,t,r,i,n,a,0),$E(l,t,r,i,n,a,0);return}s=s.next}o=o.next}while(o!==e)}function Qfr(e,t,r,i){var n=[],a,o,s,l,u;for(a=0,o=t.length;a=r.next.y&&r.next.y!==r.y){var s=r.x+(n-r.y)*(r.next.x-r.x)/(r.next.y-r.y);if(s<=i&&s>a&&(a=s,o=r.x=r.x&&r.x>=u&&i!==r.x&&i6(no.x||r.x===o.x&&ihr(o,r)))&&(o=r,f=h)),r=r.next;while(r!==l);return o}function ihr(e,t){return Ol(e.prev,e,t.prev)<0&&Ol(t.next,e,e.next)<0}function nhr(e,t,r,i){var n=e;do n.z===0&&(n.z=Iee(n.x,n.y,t,r,i)),n.prevZ=n.prev,n.nextZ=n.next,n=n.next;while(n!==e);n.prevZ.nextZ=null,n.prevZ=null,ahr(n)}function ahr(e){var t,r,i,n,a,o,s,l,u=1;do{for(r=e,e=null,a=null,o=0;r;){for(o++,i=r,s=0,t=0;t0||l>0&&i;)s!==0&&(l===0||!i||r.z<=i.z)?(n=r,r=r.nextZ,s--):(n=i,i=i.nextZ,l--),a?a.nextZ=n:e=n,n.prevZ=a,a=n;r=i}a.nextZ=null,u*=2}while(o>1);return e}function Iee(e,t,r,i,n){return e=(e-r)*n|0,t=(t-i)*n|0,e=(e|e<<8)&16711935,e=(e|e<<4)&252645135,e=(e|e<<2)&858993459,e=(e|e<<1)&1431655765,t=(t|t<<8)&16711935,t=(t|t<<4)&252645135,t=(t|t<<2)&858993459,t=(t|t<<1)&1431655765,e|t<<1}function ohr(e){var t=e,r=e;do(t.x=(e-o)*(a-s)&&(e-o)*(i-s)>=(r-o)*(t-s)&&(r-o)*(a-s)>=(n-o)*(i-s)}function shr(e,t){return e.next.i!==t.i&&e.prev.i!==t.i&&!lhr(e,t)&&(WE(e,t)&&WE(t,e)&&uhr(e,t)&&(Ol(e.prev,e,t.prev)||Ol(e,t.prev,t))||rz(e,t)&&Ol(e.prev,e,e.next)>0&&Ol(t.prev,t,t.next)>0)}function Ol(e,t,r){return(t.y-e.y)*(r.x-t.x)-(t.x-e.x)*(r.y-t.y)}function rz(e,t){return e.x===t.x&&e.y===t.y}function Uje(e,t,r,i){var n=ez(Ol(e,t,r)),a=ez(Ol(e,t,i)),o=ez(Ol(r,i,e)),s=ez(Ol(r,i,t));return!!(n!==a&&o!==s||n===0&&QR(e,r,t)||a===0&&QR(e,i,t)||o===0&&QR(r,e,i)||s===0&&QR(r,t,i))}function QR(e,t,r){return t.x<=Math.max(e.x,r.x)&&t.x>=Math.min(e.x,r.x)&&t.y<=Math.max(e.y,r.y)&&t.y>=Math.min(e.y,r.y)}function ez(e){return e>0?1:e<0?-1:0}function lhr(e,t){var r=e;do{if(r.i!==e.i&&r.next.i!==e.i&&r.i!==t.i&&r.next.i!==t.i&&Uje(r,r.next,e,t))return!0;r=r.next}while(r!==e);return!1}function WE(e,t){return Ol(e.prev,e,e.next)<0?Ol(e,t,e.next)>=0&&Ol(e,e.prev,t)>=0:Ol(e,t,e.prev)<0||Ol(e,e.next,t)<0}function uhr(e,t){var r=e,i=!1,n=(e.x+t.x)/2,a=(e.y+t.y)/2;do r.y>a!=r.next.y>a&&r.next.y!==r.y&&n<(r.next.x-r.x)*(a-r.y)/(r.next.y-r.y)+r.x&&(i=!i),r=r.next;while(r!==e);return i}function Vje(e,t){var r=new Ree(e.i,e.x,e.y),i=new Ree(t.i,t.x,t.y),n=e.next,a=t.prev;return e.next=t,t.prev=e,r.next=n,n.prev=r,i.next=r,r.prev=i,a.next=i,i.prev=a,i}function Oje(e,t,r,i){var n=new Ree(e,t,r);return i?(n.next=i.next,n.prev=i,i.next.prev=n,i.next=n):(n.prev=n,n.next=n),n}function YE(e){e.next.prev=e.prev,e.prev.next=e.next,e.prevZ&&(e.prevZ.nextZ=e.nextZ),e.nextZ&&(e.nextZ.prevZ=e.prevZ)}function Ree(e,t,r){this.i=e,this.x=t,this.y=r,this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1}tz.deviation=function(e,t,r,i){var n=t&&t.length,a=n?t[0]*r:e.length,o=Math.abs(zee(e,0,a,r));if(n)for(var s=0,l=t.length;s0&&(i+=e[n-1].length,r.holes.push(i))}return r}});var jje=W((fQr,Hje)=>{"use strict";var chr=O_();Hje.exports=fhr;function fhr(e,t,r){if(!e||e.length==null)throw Error("Argument should be an array");t==null&&(t=1),r==null&&(r=chr(e,t));for(var i=0;i{"use strict";$je.exports=function(){var e,t;if(typeof WeakMap!="function")return!1;try{e=new WeakMap([[t={},"one"],[{},"two"],[{},"three"]])}catch(r){return!1}return!(String(e)!=="[object WeakMap]"||typeof e.set!="function"||e.set({},1)!==e||typeof e.delete!="function"||typeof e.has!="function"||e.get(t)!=="one")}});var Xje=W((dQr,Yje)=>{"use strict";Yje.exports=function(){}});var U2=W((pQr,Zje)=>{"use strict";var hhr=Xje()();Zje.exports=function(e){return e!==hhr&&e!==null}});var qee=W((vQr,Jje)=>{"use strict";var dhr=Object.create,phr=Object.getPrototypeOf,Kje={};Jje.exports=function(){var e=Object.setPrototypeOf,t=arguments[0]||dhr;return typeof e!="function"?!1:phr(e(t(null),Kje))===Kje}});var Oee=W((gQr,Qje)=>{"use strict";var vhr=U2(),ghr={function:!0,object:!0};Qje.exports=function(e){return vhr(e)&&ghr[typeof e]||!1}});var wm=W((mQr,e$e)=>{"use strict";var mhr=U2();e$e.exports=function(e){if(!mhr(e))throw new TypeError("Cannot use null or undefined");return e}});var r$e=W((yQr,t$e)=>{"use strict";var Nee=Object.create,iz;qee()()||(iz=Uee());t$e.exports=(function(){var e,t,r;return!iz||iz.level!==1?Nee:(e={},t={},r={configurable:!1,enumerable:!1,writable:!0,value:void 0},Object.getOwnPropertyNames(Object.prototype).forEach(function(i){if(i==="__proto__"){t[i]={configurable:!0,enumerable:!1,writable:!0,value:void 0};return}t[i]=r}),Object.defineProperties(e,t),Object.defineProperty(iz,"nullPolyfill",{configurable:!1,enumerable:!1,writable:!1,value:e}),function(i,n){return Nee(i===null?e:i,n)})})()});var Uee=W((xQr,i$e)=>{"use strict";var yhr=Oee(),xhr=wm(),bhr=Object.prototype.isPrototypeOf,_hr=Object.defineProperty,whr={configurable:!0,enumerable:!1,writable:!0,value:void 0},nz;nz=function(e,t){if(xhr(e),t===null||yhr(t))return e;throw new TypeError("Prototype must be null or an object")};i$e.exports=(function(e){var t,r;return e?(e.level===2?e.set?(r=e.set,t=function(i,n){return r.call(nz(i,n),n),i}):t=function(i,n){return nz(i,n).__proto__=n,i}:t=function i(n,a){var o;return nz(n,a),o=bhr.call(i.nullPolyfill,n),o&&delete i.nullPolyfill.__proto__,a===null&&(a=i.nullPolyfill),n.__proto__=a,o&&_hr(i.nullPolyfill,"__proto__",whr),n},Object.defineProperty(t,"level",{configurable:!1,enumerable:!1,writable:!1,value:e.level})):null})((function(){var e=Object.create(null),t={},r,i=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__");if(i){try{r=i.set,r.call(e,t)}catch(n){}if(Object.getPrototypeOf(e)===t)return{set:r,level:2}}return e.__proto__=t,Object.getPrototypeOf(e)===t?{level:2}:(e={},e.__proto__=t,Object.getPrototypeOf(e)===t?{level:1}:!1)})());r$e()});var az=W((bQr,n$e)=>{"use strict";n$e.exports=qee()()?Object.setPrototypeOf:Uee()});var o$e=W((_Qr,a$e)=>{"use strict";var Thr=Oee();a$e.exports=function(e){if(!Thr(e))throw new TypeError(e+" is not an Object");return e}});var l$e=W((wQr,s$e)=>{"use strict";var Ahr=Object.create(null),Mhr=Math.random;s$e.exports=function(){var e;do e=Mhr().toString(36).slice(2);while(Ahr[e]);return e}});var H_=W((TQr,u$e)=>{"use strict";var Shr=void 0;u$e.exports=function(e){return e!==Shr&&e!==null}});var Vee=W((AQr,c$e)=>{"use strict";var Ehr=H_(),khr={object:!0,function:!0,undefined:!0};c$e.exports=function(e){return Ehr(e)?hasOwnProperty.call(khr,typeof e):!1}});var h$e=W((MQr,f$e)=>{"use strict";var Chr=Vee();f$e.exports=function(e){if(!Chr(e))return!1;try{return e.constructor?e.constructor.prototype===e:!1}catch(t){return!1}}});var p$e=W((SQr,d$e)=>{"use strict";var Dhr=h$e();d$e.exports=function(e){if(typeof e!="function"||!hasOwnProperty.call(e,"length"))return!1;try{if(typeof e.length!="number"||typeof e.call!="function"||typeof e.apply!="function")return!1}catch(t){return!1}return!Dhr(e)}});var Gee=W((EQr,v$e)=>{"use strict";var Fhr=p$e(),Lhr=/^\s*class[\s{/}]/,Phr=Function.prototype.toString;v$e.exports=function(e){return!(!Fhr(e)||Lhr.test(Phr.call(e)))}});var m$e=W((kQr,g$e)=>{"use strict";g$e.exports=function(){var e=Object.assign,t;return typeof e!="function"?!1:(t={foo:"raz"},e(t,{bar:"dwa"},{trzy:"trzy"}),t.foo+t.bar+t.trzy==="razdwatrzy")}});var x$e=W((CQr,y$e)=>{"use strict";y$e.exports=function(){try{return Object.keys("primitive"),!0}catch(e){return!1}}});var _$e=W((DQr,b$e)=>{"use strict";var Ihr=U2(),Rhr=Object.keys;b$e.exports=function(e){return Rhr(Ihr(e)?Object(e):e)}});var T$e=W((FQr,w$e)=>{"use strict";w$e.exports=x$e()()?Object.keys:_$e()});var M$e=W((LQr,A$e)=>{"use strict";var zhr=T$e(),Bhr=wm(),qhr=Math.max;A$e.exports=function(e,t){var r,i,n=qhr(arguments.length,2),a;for(e=Object(Bhr(e)),a=function(o){try{e[o]=t[o]}catch(s){r||(r=s)}},i=1;i{"use strict";S$e.exports=m$e()()?Object.assign:M$e()});var Hee=W((IQr,E$e)=>{"use strict";var Ohr=U2(),Nhr=Array.prototype.forEach,Uhr=Object.create,Vhr=function(e,t){var r;for(r in e)t[r]=e[r]};E$e.exports=function(e){var t=Uhr(null);return Nhr.call(arguments,function(r){Ohr(r)&&Vhr(Object(r),t)}),t}});var C$e=W((RQr,k$e)=>{"use strict";var jee="razdwatrzy";k$e.exports=function(){return typeof jee.contains!="function"?!1:jee.contains("dwa")===!0&&jee.contains("foo")===!1}});var F$e=W((zQr,D$e)=>{"use strict";var Ghr=String.prototype.indexOf;D$e.exports=function(e){return Ghr.call(this,e,arguments[1])>-1}});var $ee=W((BQr,L$e)=>{"use strict";L$e.exports=C$e()()?String.prototype.contains:F$e()});var Tm=W((qQr,z$e)=>{"use strict";var sz=H_(),P$e=Gee(),I$e=oz(),R$e=Hee(),XE=$ee(),Hhr=z$e.exports=function(e,t){var r,i,n,a,o;return arguments.length<2||typeof e!="string"?(a=t,t=e,e=null):a=arguments[2],sz(e)?(r=XE.call(e,"c"),i=XE.call(e,"e"),n=XE.call(e,"w")):(r=n=!0,i=!1),o={value:t,configurable:r,enumerable:i,writable:n},a?I$e(R$e(a),o):o};Hhr.gs=function(e,t,r){var i,n,a,o;return typeof e!="string"?(a=r,r=t,t=e,e=null):a=arguments[3],sz(t)?P$e(t)?sz(r)?P$e(r)||(a=r,r=void 0):r=void 0:(a=t,t=r=void 0):t=void 0,sz(e)?(i=XE.call(e,"c"),n=XE.call(e,"e")):(i=!0,n=!1),o={get:t,set:r,configurable:i,enumerable:n},a?I$e(R$e(a),o):o}});var ZE=W((OQr,q$e)=>{"use strict";var B$e=Object.prototype.toString,jhr=B$e.call((function(){return arguments})());q$e.exports=function(e){return B$e.call(e)===jhr}});var KE=W((NQr,N$e)=>{"use strict";var O$e=Object.prototype.toString,$hr=O$e.call("");N$e.exports=function(e){return typeof e=="string"||e&&typeof e=="object"&&(e instanceof String||O$e.call(e)===$hr)||!1}});var V$e=W((UQr,U$e)=>{"use strict";U$e.exports=function(){return typeof globalThis!="object"||!globalThis?!1:globalThis.Array===Array}});var j$e=W((VQr,H$e)=>{var G$e=function(){if(typeof self=="object"&&self)return self;if(typeof window=="object"&&window)return window;throw new Error("Unable to resolve global `this`")};H$e.exports=(function(){if(this)return this;try{Object.defineProperty(Object.prototype,"__global__",{get:function(){return this},configurable:!0})}catch(e){return G$e()}try{return __global__||G$e()}finally{delete Object.prototype.__global__}})()});var JE=W((GQr,$$e)=>{"use strict";$$e.exports=V$e()()?globalThis:j$e()});var Y$e=W((HQr,W$e)=>{"use strict";var Whr=JE(),Wee={object:!0,symbol:!0};W$e.exports=function(){var e=Whr.Symbol,t;if(typeof e!="function")return!1;t=e("test symbol");try{String(t)}catch(r){return!1}return!(!Wee[typeof e.iterator]||!Wee[typeof e.toPrimitive]||!Wee[typeof e.toStringTag])}});var Z$e=W((jQr,X$e)=>{"use strict";X$e.exports=function(e){return e?typeof e=="symbol"?!0:!e.constructor||e.constructor.name!=="Symbol"?!1:e[e.constructor.toStringTag]==="Symbol":!1}});var Yee=W(($Qr,K$e)=>{"use strict";var Yhr=Z$e();K$e.exports=function(e){if(!Yhr(e))throw new TypeError(e+" is not a symbol");return e}});var rWe=W((WQr,tWe)=>{"use strict";var J$e=Tm(),Xhr=Object.create,Q$e=Object.defineProperty,Zhr=Object.prototype,eWe=Xhr(null);tWe.exports=function(e){for(var t=0,r,i;eWe[e+(t||"")];)++t;return e+=t||"",eWe[e]=!0,r="@@"+e,Q$e(Zhr,r,J$e.gs(null,function(n){i||(i=!0,Q$e(this,r,J$e(n)),i=!1)})),r}});var nWe=W((YQr,iWe)=>{"use strict";var _v=Tm(),eu=JE().Symbol;iWe.exports=function(e){return Object.defineProperties(e,{hasInstance:_v("",eu&&eu.hasInstance||e("hasInstance")),isConcatSpreadable:_v("",eu&&eu.isConcatSpreadable||e("isConcatSpreadable")),iterator:_v("",eu&&eu.iterator||e("iterator")),match:_v("",eu&&eu.match||e("match")),replace:_v("",eu&&eu.replace||e("replace")),search:_v("",eu&&eu.search||e("search")),species:_v("",eu&&eu.species||e("species")),split:_v("",eu&&eu.split||e("split")),toPrimitive:_v("",eu&&eu.toPrimitive||e("toPrimitive")),toStringTag:_v("",eu&&eu.toStringTag||e("toStringTag")),unscopables:_v("",eu&&eu.unscopables||e("unscopables"))})}});var sWe=W((XQr,oWe)=>{"use strict";var aWe=Tm(),Khr=Yee(),QE=Object.create(null);oWe.exports=function(e){return Object.defineProperties(e,{for:aWe(function(t){return QE[t]?QE[t]:QE[t]=e(String(t))}),keyFor:aWe(function(t){var r;Khr(t);for(r in QE)if(QE[r]===t)return r})})}});var cWe=W((ZQr,uWe)=>{"use strict";var Z1=Tm(),Xee=Yee(),lz=JE().Symbol,Jhr=rWe(),Qhr=nWe(),e0r=sWe(),t0r=Object.create,Zee=Object.defineProperties,uz=Object.defineProperty,Rf,n6,lWe;if(typeof lz=="function")try{String(lz()),lWe=!0}catch(e){}else lz=null;n6=function(t){if(this instanceof n6)throw new TypeError("Symbol is not a constructor");return Rf(t)};uWe.exports=Rf=function e(t){var r;if(this instanceof e)throw new TypeError("Symbol is not a constructor");return lWe?lz(t):(r=t0r(n6.prototype),t=t===void 0?"":String(t),Zee(r,{__description__:Z1("",t),__name__:Z1("",Jhr(t))}))};Qhr(Rf);e0r(Rf);Zee(n6.prototype,{constructor:Z1(Rf),toString:Z1("",function(){return this.__name__})});Zee(Rf.prototype,{toString:Z1(function(){return"Symbol ("+Xee(this).__description__+")"}),valueOf:Z1(function(){return Xee(this)})});uz(Rf.prototype,Rf.toPrimitive,Z1("",function(){var e=Xee(this);return typeof e=="symbol"?e:e.toString()}));uz(Rf.prototype,Rf.toStringTag,Z1("c","Symbol"));uz(n6.prototype,Rf.toStringTag,Z1("c",Rf.prototype[Rf.toStringTag]));uz(n6.prototype,Rf.toPrimitive,Z1("c",Rf.prototype[Rf.toPrimitive]))});var V2=W((KQr,fWe)=>{"use strict";fWe.exports=Y$e()()?JE().Symbol:cWe()});var dWe=W((JQr,hWe)=>{"use strict";var r0r=wm();hWe.exports=function(){return r0r(this).length=0,this}});var a6=W((QQr,pWe)=>{"use strict";pWe.exports=function(e){if(typeof e!="function")throw new TypeError(e+" is not a function");return e}});var gWe=W((eei,vWe)=>{"use strict";var i0r=H_(),n0r=Vee(),a0r=Object.prototype.toString;vWe.exports=function(e){if(!i0r(e))return null;if(n0r(e)){var t=e.toString;if(typeof t!="function"||t===a0r)return null}try{return""+e}catch(r){return null}}});var yWe=W((tei,mWe)=>{"use strict";mWe.exports=function(e){try{return e.toString()}catch(t){try{return String(e)}catch(r){return null}}}});var bWe=W((rei,xWe)=>{"use strict";var o0r=yWe(),s0r=/[\n\r\u2028\u2029]/g;xWe.exports=function(e){var t=o0r(e);return t===null?"":(t.length>100&&(t=t.slice(0,99)+"\u2026"),t=t.replace(s0r,function(r){switch(r){case` -`:return"\\n";case"\r":return"\\r";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw new Error("Unexpected character")}}),t)}});var wWe=W((iei,_We)=>{"use strict";var l0r=gWe(),u0r=bWe();_We.exports=function(e,t,r){r&&r.errorMessage&&(e=l0r(r.errorMessage));var i=e.indexOf("%v"),n=i>-1?u0r(t):null;if(r&&r.name){var a=e.indexOf("%n");if(a>-1){if(i>-1){var o,s,l,u;return a>i?(o=n,l=i,s=r.name,u=a):(o=r.name,l=a,s=n,u=i),e.slice(0,l)+o+e.slice(l+2,u)+s+e.slice(u+2)}return e.slice(0,a)+r.name+e.slice(a+2)}}return i>-1?e.slice(0,i)+n+e.slice(i+2):e}});var Kee=W((nei,TWe)=>{"use strict";var c0r=H_(),f0r=wWe();TWe.exports=function(e,t,r){if(r&&!c0r(e)){if("default"in r)return r.default;if(r.isOptional)return null}var i=r&&r.Error||TypeError,n=new i(f0r(t,e,r));throw r&&r.errorCode&&(n.code=r.errorCode),n}});var MWe=W((aei,AWe)=>{"use strict";var h0r=Kee(),d0r=H_();AWe.exports=function(e){if(d0r(e))return e;var t=arguments[1],r=t&&t.name?"Expected a value for %n, received %v":"Cannot use %v";return h0r(e,r,t)}});var EWe=W((oei,SWe)=>{"use strict";var p0r=Kee(),v0r=Gee();SWe.exports=function(e){if(v0r(e))return e;var t=arguments[1],r=t&&t.name?"Expected a plain function for %n, received %v":"%v is not a plain function";return p0r(e,r,t)}});var CWe=W((sei,kWe)=>{"use strict";kWe.exports=function(){var e=Array.from,t,r;return typeof e!="function"?!1:(t=["raz","dwa"],r=e(t),!!(r&&r!==t&&r[1]==="dwa"))}});var FWe=W((lei,DWe)=>{"use strict";var g0r=Object.prototype.toString,m0r=RegExp.prototype.test.bind(/^[object [A-Za-z0-9]*Function]$/);DWe.exports=function(e){return typeof e=="function"&&m0r(g0r.call(e))}});var PWe=W((uei,LWe)=>{"use strict";LWe.exports=function(){var e=Math.sign;return typeof e!="function"?!1:e(10)===1&&e(-20)===-1}});var RWe=W((cei,IWe)=>{"use strict";IWe.exports=function(e){return e=Number(e),isNaN(e)||e===0?e:e>0?1:-1}});var BWe=W((fei,zWe)=>{"use strict";zWe.exports=PWe()()?Math.sign:RWe()});var OWe=W((hei,qWe)=>{"use strict";var y0r=BWe(),x0r=Math.abs,b0r=Math.floor;qWe.exports=function(e){return isNaN(e)?0:(e=Number(e),e===0||!isFinite(e)?e:y0r(e)*b0r(x0r(e)))}});var UWe=W((dei,NWe)=>{"use strict";var _0r=OWe(),w0r=Math.max;NWe.exports=function(e){return w0r(0,_0r(e))}});var jWe=W((pei,HWe)=>{"use strict";var T0r=V2().iterator,A0r=ZE(),M0r=FWe(),S0r=UWe(),VWe=a6(),E0r=wm(),k0r=U2(),C0r=KE(),GWe=Array.isArray,Jee=Function.prototype.call,j_={configurable:!0,enumerable:!0,writable:!0,value:null},Qee=Object.defineProperty;HWe.exports=function(e){var t=arguments[1],r=arguments[2],i,n,a,o,s,l,u,c,f,h;if(e=Object(E0r(e)),k0r(t)&&VWe(t),!this||this===Array||!M0r(this)){if(!t){if(A0r(e))return s=e.length,s!==1?Array.apply(null,e):(o=new Array(1),o[0]=e[0],o);if(GWe(e)){for(o=new Array(s=e.length),n=0;n=55296&&l<=56319&&(h+=e[++n])),h=t?Jee.call(t,r,h,a):h,i?(j_.value=h,Qee(o,a,j_)):o[a]=h,++a;s=a}}if(s===void 0)for(s=S0r(e.length),i&&(o=new i(s)),n=0;n{"use strict";$We.exports=CWe()()?Array.from:jWe()});var XWe=W((gei,YWe)=>{"use strict";var D0r=WWe(),F0r=oz(),L0r=wm();YWe.exports=function(e){var t=Object(L0r(e)),r=arguments[1],i=Object(arguments[2]);if(t!==e&&!r)return t;var n={};return r?D0r(r,function(a){(i.ensure||a in e)&&(n[a]=e[a])}):F0r(n,e),n}});var JWe=W((mei,KWe)=>{"use strict";var P0r=a6(),I0r=wm(),R0r=Function.prototype.bind,ZWe=Function.prototype.call,z0r=Object.keys,B0r=Object.prototype.propertyIsEnumerable;KWe.exports=function(e,t){return function(r,i){var n,a=arguments[2],o=arguments[3];return r=Object(I0r(r)),P0r(i),n=z0r(r),o&&n.sort(typeof o=="function"?R0r.call(o,r):void 0),typeof e!="function"&&(e=n[e]),ZWe.call(e,n,function(s,l){return B0r.call(r,s)?ZWe.call(i,a,r[s],s,r,l):t})}}});var eYe=W((yei,QWe)=>{"use strict";QWe.exports=JWe()("forEach")});var rYe=W((xei,tYe)=>{"use strict";var q0r=a6(),O0r=eYe(),N0r=Function.prototype.call;tYe.exports=function(e,t){var r={},i=arguments[2];return q0r(t),O0r(e,function(n,a,o,s){r[a]=N0r.call(t,i,n,a,o,s)}),r}});var oYe=W((bei,aYe)=>{"use strict";var U0r=H_(),V0r=MWe(),iYe=EWe(),G0r=XWe(),H0r=Hee(),j0r=rYe(),$0r=Function.prototype.bind,W0r=Object.defineProperty,Y0r=Object.prototype.hasOwnProperty,nYe;nYe=function(e,t,r){var i=V0r(t)&&iYe(t.value),n;return n=G0r(t),delete n.writable,delete n.value,n.get=function(){return!r.overwriteDefinition&&Y0r.call(this,e)?i:(t.value=$0r.call(i,r.resolveContext?r.resolveContext(this):this),W0r(this,e,t),this[e])},n};aYe.exports=function(e){var t=H0r(arguments[1]);return U0r(t.resolveContext)&&iYe(t.resolveContext),j0r(e,function(r,i){return nYe(i,r,t)})}});var ete=W((_ei,cYe)=>{"use strict";var X0r=dWe(),Z0r=oz(),K0r=a6(),J0r=wm(),Kh=Tm(),Q0r=oYe(),sYe=V2(),lYe=Object.defineProperty,uYe=Object.defineProperties,ek;cYe.exports=ek=function(e,t){if(!(this instanceof ek))throw new TypeError("Constructor requires 'new'");uYe(this,{__list__:Kh("w",J0r(e)),__context__:Kh("w",t),__nextIndex__:Kh("w",0)}),t&&(K0r(t.on),t.on("_add",this._onAdd),t.on("_delete",this._onDelete),t.on("_clear",this._onClear))};delete ek.prototype.constructor;uYe(ek.prototype,Z0r({_next:Kh(function(){var e;if(this.__list__){if(this.__redo__&&(e=this.__redo__.shift(),e!==void 0))return e;if(this.__nextIndex__=this.__nextIndex__)){if(++this.__nextIndex__,!this.__redo__){lYe(this,"__redo__",Kh("c",[e]));return}this.__redo__.forEach(function(t,r){t>=e&&(this.__redo__[r]=++t)},this),this.__redo__.push(e)}}),_onDelete:Kh(function(e){var t;e>=this.__nextIndex__||(--this.__nextIndex__,this.__redo__&&(t=this.__redo__.indexOf(e),t!==-1&&this.__redo__.splice(t,1),this.__redo__.forEach(function(r,i){r>e&&(this.__redo__[i]=--r)},this)))}),_onClear:Kh(function(){this.__redo__&&X0r.call(this.__redo__),this.__nextIndex__=0})})));lYe(ek.prototype,sYe.iterator,Kh(function(){return this}))});var vYe=W((wei,pYe)=>{"use strict";var fYe=az(),hYe=$ee(),tte=Tm(),edr=V2(),rte=ete(),dYe=Object.defineProperty,o6;o6=pYe.exports=function(e,t){if(!(this instanceof o6))throw new TypeError("Constructor requires 'new'");rte.call(this,e),t?hYe.call(t,"key+value")?t="key+value":hYe.call(t,"key")?t="key":t="value":t="value",dYe(this,"__kind__",tte("",t))};fYe&&fYe(o6,rte);delete o6.prototype.constructor;o6.prototype=Object.create(rte.prototype,{_resolve:tte(function(e){return this.__kind__==="value"?this.__list__[e]:this.__kind__==="key+value"?[e,this.__list__[e]]:e})});dYe(o6.prototype,edr.toStringTag,tte("c","Array Iterator"))});var xYe=W((Tei,yYe)=>{"use strict";var gYe=az(),cz=Tm(),tdr=V2(),ite=ete(),mYe=Object.defineProperty,s6;s6=yYe.exports=function(e){if(!(this instanceof s6))throw new TypeError("Constructor requires 'new'");e=String(e),ite.call(this,e),mYe(this,"__length__",cz("",e.length))};gYe&&gYe(s6,ite);delete s6.prototype.constructor;s6.prototype=Object.create(ite.prototype,{_next:cz(function(){if(this.__list__){if(this.__nextIndex__=55296&&r<=56319?t+this.__list__[this.__nextIndex__++]:t)})});mYe(s6.prototype,tdr.toStringTag,cz("c","String Iterator"))});var _Ye=W((Aei,bYe)=>{"use strict";var rdr=ZE(),idr=U2(),ndr=KE(),adr=V2().iterator,odr=Array.isArray;bYe.exports=function(e){return idr(e)?odr(e)||ndr(e)||rdr(e)?!0:typeof e[adr]=="function":!1}});var TYe=W((Mei,wYe)=>{"use strict";var sdr=_Ye();wYe.exports=function(e){if(!sdr(e))throw new TypeError(e+" is not iterable");return e}});var nte=W((Sei,SYe)=>{"use strict";var ldr=ZE(),udr=KE(),AYe=vYe(),cdr=xYe(),fdr=TYe(),MYe=V2().iterator;SYe.exports=function(e){return typeof fdr(e)[MYe]=="function"?e[MYe]():ldr(e)?new AYe(e):udr(e)?new cdr(e):new AYe(e)}});var kYe=W((Eei,EYe)=>{"use strict";var hdr=ZE(),ddr=a6(),pdr=KE(),vdr=nte(),gdr=Array.isArray,ate=Function.prototype.call,mdr=Array.prototype.some;EYe.exports=function(e,t){var r,i=arguments[2],n,a,o,s,l,u,c;if(gdr(e)||hdr(e)?r="array":pdr(e)?r="string":e=vdr(e),ddr(t),a=function(){o=!0},r==="array"){mdr.call(e,function(f){return ate.call(t,i,f,a),o});return}if(r==="string"){for(l=e.length,s=0;s=55296&&c<=56319&&(u+=e[++s])),ate.call(t,i,u,a),!o);++s);return}for(n=e.next();!n.done;){if(ate.call(t,i,n.value,a),o)return;n=e.next()}}});var DYe=W((kei,CYe)=>{"use strict";CYe.exports=(function(){return typeof WeakMap!="function"?!1:Object.prototype.toString.call(new WeakMap)==="[object WeakMap]"})()});var PYe=W((Cei,LYe)=>{"use strict";var ydr=U2(),hz=az(),fz=o$e(),xdr=wm(),bdr=l$e(),Am=Tm(),_dr=nte(),wdr=kYe(),Tdr=V2().toStringTag,FYe=DYe(),Adr=Array.isArray,ste=Object.defineProperty,ote=Object.prototype.hasOwnProperty,Mdr=Object.getPrototypeOf,G2;LYe.exports=G2=function(){var e=arguments[0],t;if(!(this instanceof G2))throw new TypeError("Constructor requires 'new'");return t=FYe&&hz&&WeakMap!==G2?hz(new WeakMap,Mdr(this)):this,ydr(e)&&(Adr(e)||(e=_dr(e))),ste(t,"__weakMapData__",Am("c","$weakMap$"+bdr())),e&&wdr(e,function(r){xdr(r),t.set(r[0],r[1])}),t};FYe&&(hz&&hz(G2,WeakMap),G2.prototype=Object.create(WeakMap.prototype,{constructor:Am(G2)}));Object.defineProperties(G2.prototype,{delete:Am(function(e){return ote.call(fz(e),this.__weakMapData__)?(delete e[this.__weakMapData__],!0):!1}),get:Am(function(e){if(ote.call(fz(e),this.__weakMapData__))return e[this.__weakMapData__]}),has:Am(function(e){return ote.call(fz(e),this.__weakMapData__)}),set:Am(function(e,t){return ste(fz(e),this.__weakMapData__,Am("c",t)),this}),toString:Am(function(){return"[object WeakMap]"})});ste(G2.prototype,Tdr,Am("c","WeakMap"))});var lte=W((Dei,IYe)=>{"use strict";IYe.exports=Wje()()?WeakMap:PYe()});var zYe=W((Fei,RYe)=>{"use strict";RYe.exports=function(e,t,r){if(typeof Array.prototype.findIndex=="function")return e.findIndex(t,r);if(typeof t!="function")throw new TypeError("predicate must be a function");var i=Object(e),n=i.length;if(n===0)return-1;for(var a=0;a{"use strict";var dz=HE(),Sdr=O_(),cte=Gu(),Edr=X1(),kdr=N_(),BYe=Gje(),Cdr=jje(),{float32:Ddr,fract32:ute}=ZR(),Fdr=lte(),qYe=Z4(),Ldr=zYe(),Pdr=` +`]),this.drawCircle=e(p)}Rc.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};Rc.prototype.render=function(){return arguments.length&&this.update(...arguments),this.draw(),this};Rc.prototype.draw=function(){for(var e=arguments.length,t=new Array(e),r=0;r{this.drawItem(a)});return this};Rc.prototype.drawItem=function(e,t){let{groups:r}=this,i=r[e];if(typeof t=="number"&&(e=t,i=r[t],t=null),!(i&&i.count&&i.opacity))return;i.activation[0]&&this.drawCircle(this.getMarkerDrawOptions(0,i,t));let n=[];for(let a=1;a{let f=i[c];if(u===void 0)return f;u===null?u={positions:null}:typeof u=="function"?u={ondraw:u}:typeof u[0]=="number"&&(u={positions:u}),u=Xfr(u,{positions:"positions data points",snap:"snap cluster lod tree",size:"sizes size radius",borderSize:"borderSizes borderSize border-size bordersize borderWidth borderWidths border-width borderwidth stroke-width strokeWidth strokewidth outline",color:"colors color fill fill-color fillColor",borderColor:"borderColors borderColor stroke stroke-color strokeColor",marker:"markers marker shape",range:"range dataBox databox",viewport:"viewport viewPort viewBox viewbox",opacity:"opacity alpha transparency",bounds:"bound bounds boundaries limits",tooManyColors:"tooManyColors palette paletteMode optimizePalette enablePalette"}),u.positions===null&&(u.positions=[]),u.tooManyColors!=null&&(this.tooManyColors=u.tooManyColors),f||(i[c]=f={id:c,scale:null,translate:null,scaleFract:null,translateFract:null,activation:[],selectionBuffer:a.buffer({data:new Uint8Array(0),usage:"stream",type:"uint8"}),sizeBuffer:a.buffer({data:new Uint8Array(0),usage:"dynamic",type:"uint8"}),colorBuffer:a.buffer({data:new Uint8Array(0),usage:"dynamic",type:"uint8"}),positionBuffer:a.buffer({data:new Uint8Array(0),usage:"dynamic",type:"float"}),positionFractBuffer:a.buffer({data:new Uint8Array(0),usage:"dynamic",type:"float"})},u=Object.assign({},Rc.defaults,u)),u.positions&&!("marker"in u)&&(u.marker=f.marker,delete f.marker),u.marker&&!("positions"in u)&&(u.positions=f.positions,delete f.positions);let h=0,p=0;if(Zfr(f,u,[{snap:!0,size:(d,v)=>(d==null&&(d=Rc.defaults.size),h+=d&&d.length?1:0,d),borderSize:(d,v)=>(d==null&&(d=Rc.defaults.borderSize),h+=d&&d.length?1:0,d),opacity:parseFloat,color:(d,v)=>(d==null&&(d=Rc.defaults.color),d=this.updateColor(d),p++,d),borderColor:(d,v)=>(d==null&&(d=Rc.defaults.borderColor),d=this.updateColor(d),p++,d),bounds:(d,v,m)=>("range"in m||(m.range=null),d),positions:(d,v,m)=>{let{snap:g}=v,{positionBuffer:w,positionFractBuffer:_,selectionBuffer:b}=v;if(d.x||d.y)return d.x.length?v.xAttr={buffer:a.buffer(d.x),offset:0,stride:4,count:d.x.length}:v.xAttr={buffer:d.x.buffer,offset:d.x.offset*4||0,stride:(d.x.stride||1)*4,count:d.x.count},d.y.length?v.yAttr={buffer:a.buffer(d.y),offset:0,stride:4,count:d.y.length}:v.yAttr={buffer:d.y.buffer,offset:d.y.offset*4||0,stride:(d.y.stride||1)*4,count:d.y.count},v.count=Math.max(v.xAttr.count,v.yAttr.count),d;d=Kfr(d,"float64");let S=v.count=Math.floor(d.length/2),x=v.bounds=S?$fr(d,2):null;if(!m.range&&!v.range&&(delete v.range,m.range=x),!m.marker&&!v.marker&&(delete v.marker,m.marker=null),g&&(g===!0||S>g)?v.tree=Yfr(d,{bounds:x}):g&&g.length&&(v.tree=g),v.tree){let y={primitive:"points",usage:"static",data:v.tree,type:"uint32"};v.elements?v.elements(y):v.elements=a.elements(y)}var A=nz.float32(d);w({data:A,usage:"dynamic"});var T=nz.fract32(d,A);return _({data:T,usage:"dynamic"}),b({data:new Uint8Array(S),type:"uint8",usage:"stream"}),d}},{marker:(d,v,m)=>{let{activation:g}=v;if(g.forEach(w=>w&&w.destroy&&w.destroy()),g.length=0,!d||typeof d[0]=="number"){let w=this.addMarker(d);g[w]=!0}else{let w=[];for(let _=0,b=Math.min(d.length,v.count);_{let g=v.bounds;if(g)return d||(d=g),v.scale=[1/(d[2]-d[0]),1/(d[3]-d[1])],v.translate=[-d[0],-d[1]],v.scaleFract=nz.fract(v.scale),v.translateFract=nz.fract(v.translate),d},viewport:d=>Jfr(d||[n.drawingBufferWidth,n.drawingBufferHeight])}]),h){let{count:d,size:v,borderSize:m,sizeBuffer:g}=f,w=new Uint8Array(d*2);if(v.length||m.length)for(let _=0;_=0)return n;let a;if(e instanceof Uint8Array||e instanceof Uint8ClampedArray)a=e;else{a=new Uint8Array(e.length);for(let s=0,l=e.length;si*4&&(this.tooManyColors=!0),this.updatePalette(r),n.length===1?n[0]:n};Rc.prototype.updatePalette=function(e){if(this.tooManyColors)return;let{maxColors:t,paletteTexture:r}=this,i=Math.ceil(e.length*.25/t);if(i>1){e=e.slice();for(let n=e.length*.25%t;n{e.sizeBuffer.destroy(),e.positionBuffer.destroy(),e.positionFractBuffer.destroy(),e.colorBuffer.destroy(),e.activation.forEach(t=>t&&t.destroy&&t.destroy()),e.selectionBuffer.destroy(),e.elements&&e.elements.destroy()}),this.groups.length=0,this.paletteTexture.destroy(),this.markerTextures.forEach(e=>e&&e.destroy&&e.destroy()),this};var ehr=function(e,t){var r=new Qfr(e,t),i=r.render.bind(r);return Object.assign(i,{render:i,update:r.update.bind(r),draw:r.draw.bind(r),destroy:r.destroy.bind(r),regl:r.regl,gl:r.gl,canvas:r.gl.canvas,groups:r.groups,markers:r.markerCache,palette:r.palette}),i};Hje.exports=ehr});var Hu=W((TQr,$je)=>{"use strict";var jje=Object.getOwnPropertySymbols,thr=Object.prototype.hasOwnProperty,rhr=Object.prototype.propertyIsEnumerable;function ihr(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function nhr(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;var i=Object.getOwnPropertyNames(t).map(function(a){return t[a]});if(i.join("")!=="0123456789")return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach(function(a){n[a]=a}),Object.keys(Object.assign({},n)).join("")==="abcdefghijklmnopqrst"}catch(a){return!1}}$je.exports=nhr()?Object.assign:function(e,t){for(var r,i=ihr(e),n,a=1;a{"use strict";jee.exports=sz;jee.exports.default=sz;function sz(e,t,r){r=r||2;var i=t&&t.length,n=i?t[0]*r:e.length,a=Yje(e,0,n,r,!0),o=[];if(!a||a.next===a.prev)return o;var s,l,u,c,f,h,p;if(i&&(a=uhr(e,t,a,r)),e.length>80*r){s=u=e[0],l=c=e[1];for(var d=r;du&&(u=f),h>c&&(c=h);p=Math.max(u-s,c-l),p=p!==0?32767/p:0}return YE(a,o,r,s,l,p,0),o}function Yje(e,t,r,i,n){var a,o;if(n===Hee(e,t,r,i)>0)for(a=t;a=t;a-=i)o=Wje(a,e[a],e[a+1],o);return o&&lz(o,o.next)&&(ZE(o),o=o.next),o}function $_(e,t){if(!e)return e;t||(t=e);var r=e,i;do if(i=!1,!r.steiner&&(lz(r,r.next)||Vl(r.prev,r,r.next)===0)){if(ZE(r),r=t=r.prev,r===r.next)break;i=!0}else r=r.next;while(i||r!==t);return t}function YE(e,t,r,i,n,a,o){if(e){!o&&a&&phr(e,i,n,a);for(var s=e,l,u;e.prev!==e.next;){if(l=e.prev,u=e.next,a?ohr(e,i,n,a):ahr(e)){t.push(l.i/r|0),t.push(e.i/r|0),t.push(u.i/r|0),ZE(e),e=u.next,s=u.next;continue}if(e=u,e===s){o?o===1?(e=shr($_(e),t,r),YE(e,t,r,i,n,a,2)):o===2&&lhr(e,t,r,i,n,a):YE($_(e),t,r,i,n,a,1);break}}}}function ahr(e){var t=e.prev,r=e,i=e.next;if(Vl(t,r,i)>=0)return!1;for(var n=t.x,a=r.x,o=i.x,s=t.y,l=r.y,u=i.y,c=na?n>o?n:o:a>o?a:o,p=s>l?s>u?s:u:l>u?l:u,d=i.next;d!==t;){if(d.x>=c&&d.x<=h&&d.y>=f&&d.y<=p&&nT(n,s,a,l,o,u,d.x,d.y)&&Vl(d.prev,d,d.next)>=0)return!1;d=d.next}return!0}function ohr(e,t,r,i){var n=e.prev,a=e,o=e.next;if(Vl(n,a,o)>=0)return!1;for(var s=n.x,l=a.x,u=o.x,c=n.y,f=a.y,h=o.y,p=sl?s>u?s:u:l>u?l:u,m=c>f?c>h?c:h:f>h?f:h,g=Vee(p,d,t,r,i),w=Vee(v,m,t,r,i),_=e.prevZ,b=e.nextZ;_&&_.z>=g&&b&&b.z<=w;){if(_.x>=p&&_.x<=v&&_.y>=d&&_.y<=m&&_!==n&&_!==o&&nT(s,c,l,f,u,h,_.x,_.y)&&Vl(_.prev,_,_.next)>=0||(_=_.prevZ,b.x>=p&&b.x<=v&&b.y>=d&&b.y<=m&&b!==n&&b!==o&&nT(s,c,l,f,u,h,b.x,b.y)&&Vl(b.prev,b,b.next)>=0))return!1;b=b.nextZ}for(;_&&_.z>=g;){if(_.x>=p&&_.x<=v&&_.y>=d&&_.y<=m&&_!==n&&_!==o&&nT(s,c,l,f,u,h,_.x,_.y)&&Vl(_.prev,_,_.next)>=0)return!1;_=_.prevZ}for(;b&&b.z<=w;){if(b.x>=p&&b.x<=v&&b.y>=d&&b.y<=m&&b!==n&&b!==o&&nT(s,c,l,f,u,h,b.x,b.y)&&Vl(b.prev,b,b.next)>=0)return!1;b=b.nextZ}return!0}function shr(e,t,r){var i=e;do{var n=i.prev,a=i.next.next;!lz(n,a)&&Xje(n,i,i.next,a)&&XE(n,a)&&XE(a,n)&&(t.push(n.i/r|0),t.push(i.i/r|0),t.push(a.i/r|0),ZE(i),ZE(i.next),i=e=a),i=i.next}while(i!==e);return $_(i)}function lhr(e,t,r,i,n,a){var o=e;do{for(var s=o.next.next;s!==o.prev;){if(o.i!==s.i&&mhr(o,s)){var l=Zje(o,s);o=$_(o,o.next),l=$_(l,l.next),YE(o,t,r,i,n,a,0),YE(l,t,r,i,n,a,0);return}s=s.next}o=o.next}while(o!==e)}function uhr(e,t,r,i){var n=[],a,o,s,l,u;for(a=0,o=t.length;a=r.next.y&&r.next.y!==r.y){var s=r.x+(n-r.y)*(r.next.x-r.x)/(r.next.y-r.y);if(s<=i&&s>a&&(a=s,o=r.x=r.x&&r.x>=u&&i!==r.x&&nT(no.x||r.x===o.x&&dhr(o,r)))&&(o=r,f=h)),r=r.next;while(r!==l);return o}function dhr(e,t){return Vl(e.prev,e,t.prev)<0&&Vl(t.next,e,e.next)<0}function phr(e,t,r,i){var n=e;do n.z===0&&(n.z=Vee(n.x,n.y,t,r,i)),n.prevZ=n.prev,n.nextZ=n.next,n=n.next;while(n!==e);n.prevZ.nextZ=null,n.prevZ=null,vhr(n)}function vhr(e){var t,r,i,n,a,o,s,l,u=1;do{for(r=e,e=null,a=null,o=0;r;){for(o++,i=r,s=0,t=0;t0||l>0&&i;)s!==0&&(l===0||!i||r.z<=i.z)?(n=r,r=r.nextZ,s--):(n=i,i=i.nextZ,l--),a?a.nextZ=n:e=n,n.prevZ=a,a=n;r=i}a.nextZ=null,u*=2}while(o>1);return e}function Vee(e,t,r,i,n){return e=(e-r)*n|0,t=(t-i)*n|0,e=(e|e<<8)&16711935,e=(e|e<<4)&252645135,e=(e|e<<2)&858993459,e=(e|e<<1)&1431655765,t=(t|t<<8)&16711935,t=(t|t<<4)&252645135,t=(t|t<<2)&858993459,t=(t|t<<1)&1431655765,e|t<<1}function ghr(e){var t=e,r=e;do(t.x=(e-o)*(a-s)&&(e-o)*(i-s)>=(r-o)*(t-s)&&(r-o)*(a-s)>=(n-o)*(i-s)}function mhr(e,t){return e.next.i!==t.i&&e.prev.i!==t.i&&!yhr(e,t)&&(XE(e,t)&&XE(t,e)&&xhr(e,t)&&(Vl(e.prev,e,t.prev)||Vl(e,t.prev,t))||lz(e,t)&&Vl(e.prev,e,e.next)>0&&Vl(t.prev,t,t.next)>0)}function Vl(e,t,r){return(t.y-e.y)*(r.x-t.x)-(t.x-e.x)*(r.y-t.y)}function lz(e,t){return e.x===t.x&&e.y===t.y}function Xje(e,t,r,i){var n=oz(Vl(e,t,r)),a=oz(Vl(e,t,i)),o=oz(Vl(r,i,e)),s=oz(Vl(r,i,t));return!!(n!==a&&o!==s||n===0&&az(e,r,t)||a===0&&az(e,i,t)||o===0&&az(r,e,i)||s===0&&az(r,t,i))}function az(e,t,r){return t.x<=Math.max(e.x,r.x)&&t.x>=Math.min(e.x,r.x)&&t.y<=Math.max(e.y,r.y)&&t.y>=Math.min(e.y,r.y)}function oz(e){return e>0?1:e<0?-1:0}function yhr(e,t){var r=e;do{if(r.i!==e.i&&r.next.i!==e.i&&r.i!==t.i&&r.next.i!==t.i&&Xje(r,r.next,e,t))return!0;r=r.next}while(r!==e);return!1}function XE(e,t){return Vl(e.prev,e,e.next)<0?Vl(e,t,e.next)>=0&&Vl(e,e.prev,t)>=0:Vl(e,t,e.prev)<0||Vl(e,e.next,t)<0}function xhr(e,t){var r=e,i=!1,n=(e.x+t.x)/2,a=(e.y+t.y)/2;do r.y>a!=r.next.y>a&&r.next.y!==r.y&&n<(r.next.x-r.x)*(a-r.y)/(r.next.y-r.y)+r.x&&(i=!i),r=r.next;while(r!==e);return i}function Zje(e,t){var r=new Gee(e.i,e.x,e.y),i=new Gee(t.i,t.x,t.y),n=e.next,a=t.prev;return e.next=t,t.prev=e,r.next=n,n.prev=r,i.next=r,r.prev=i,a.next=i,i.prev=a,i}function Wje(e,t,r,i){var n=new Gee(e,t,r);return i?(n.next=i.next,n.prev=i,i.next.prev=n,i.next=n):(n.prev=n,n.next=n),n}function ZE(e){e.next.prev=e.prev,e.prev.next=e.next,e.prevZ&&(e.prevZ.nextZ=e.nextZ),e.nextZ&&(e.nextZ.prevZ=e.prevZ)}function Gee(e,t,r){this.i=e,this.x=t,this.y=r,this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1}sz.deviation=function(e,t,r,i){var n=t&&t.length,a=n?t[0]*r:e.length,o=Math.abs(Hee(e,0,a,r));if(n)for(var s=0,l=t.length;s0&&(i+=e[n-1].length,r.holes.push(i))}return r}});var Qje=W((MQr,Jje)=>{"use strict";var bhr=U_();Jje.exports=_hr;function _hr(e,t,r){if(!e||e.length==null)throw Error("Argument should be an array");t==null&&(t=1),r==null&&(r=bhr(e,t));for(var i=0;i{"use strict";e$e.exports=function(){var e,t;if(typeof WeakMap!="function")return!1;try{e=new WeakMap([[t={},"one"],[{},"two"],[{},"three"]])}catch(r){return!1}return!(String(e)!=="[object WeakMap]"||typeof e.set!="function"||e.set({},1)!==e||typeof e.delete!="function"||typeof e.has!="function"||e.get(t)!=="one")}});var i$e=W((EQr,r$e)=>{"use strict";r$e.exports=function(){}});var V2=W((kQr,n$e)=>{"use strict";var whr=i$e()();n$e.exports=function(e){return e!==whr&&e!==null}});var $ee=W((CQr,o$e)=>{"use strict";var Thr=Object.create,Ahr=Object.getPrototypeOf,a$e={};o$e.exports=function(){var e=Object.setPrototypeOf,t=arguments[0]||Thr;return typeof e!="function"?!1:Ahr(e(t(null),a$e))===a$e}});var Wee=W((DQr,s$e)=>{"use strict";var Mhr=V2(),Shr={function:!0,object:!0};s$e.exports=function(e){return Mhr(e)&&Shr[typeof e]||!1}});var Sm=W((FQr,l$e)=>{"use strict";var Ehr=V2();l$e.exports=function(e){if(!Ehr(e))throw new TypeError("Cannot use null or undefined");return e}});var c$e=W((LQr,u$e)=>{"use strict";var Yee=Object.create,uz;$ee()()||(uz=Xee());u$e.exports=(function(){var e,t,r;return!uz||uz.level!==1?Yee:(e={},t={},r={configurable:!1,enumerable:!1,writable:!0,value:void 0},Object.getOwnPropertyNames(Object.prototype).forEach(function(i){if(i==="__proto__"){t[i]={configurable:!0,enumerable:!1,writable:!0,value:void 0};return}t[i]=r}),Object.defineProperties(e,t),Object.defineProperty(uz,"nullPolyfill",{configurable:!1,enumerable:!1,writable:!1,value:e}),function(i,n){return Yee(i===null?e:i,n)})})()});var Xee=W((PQr,f$e)=>{"use strict";var khr=Wee(),Chr=Sm(),Dhr=Object.prototype.isPrototypeOf,Fhr=Object.defineProperty,Lhr={configurable:!0,enumerable:!1,writable:!0,value:void 0},cz;cz=function(e,t){if(Chr(e),t===null||khr(t))return e;throw new TypeError("Prototype must be null or an object")};f$e.exports=(function(e){var t,r;return e?(e.level===2?e.set?(r=e.set,t=function(i,n){return r.call(cz(i,n),n),i}):t=function(i,n){return cz(i,n).__proto__=n,i}:t=function i(n,a){var o;return cz(n,a),o=Dhr.call(i.nullPolyfill,n),o&&delete i.nullPolyfill.__proto__,a===null&&(a=i.nullPolyfill),n.__proto__=a,o&&Fhr(i.nullPolyfill,"__proto__",Lhr),n},Object.defineProperty(t,"level",{configurable:!1,enumerable:!1,writable:!1,value:e.level})):null})((function(){var e=Object.create(null),t={},r,i=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__");if(i){try{r=i.set,r.call(e,t)}catch(n){}if(Object.getPrototypeOf(e)===t)return{set:r,level:2}}return e.__proto__=t,Object.getPrototypeOf(e)===t?{level:2}:(e={},e.__proto__=t,Object.getPrototypeOf(e)===t?{level:1}:!1)})());c$e()});var fz=W((IQr,h$e)=>{"use strict";h$e.exports=$ee()()?Object.setPrototypeOf:Xee()});var p$e=W((RQr,d$e)=>{"use strict";var Phr=Wee();d$e.exports=function(e){if(!Phr(e))throw new TypeError(e+" is not an Object");return e}});var g$e=W((zQr,v$e)=>{"use strict";var Ihr=Object.create(null),Rhr=Math.random;v$e.exports=function(){var e;do e=Rhr().toString(36).slice(2);while(Ihr[e]);return e}});var W_=W((BQr,m$e)=>{"use strict";var zhr=void 0;m$e.exports=function(e){return e!==zhr&&e!==null}});var Zee=W((qQr,y$e)=>{"use strict";var Bhr=W_(),qhr={object:!0,function:!0,undefined:!0};y$e.exports=function(e){return Bhr(e)?hasOwnProperty.call(qhr,typeof e):!1}});var b$e=W((OQr,x$e)=>{"use strict";var Ohr=Zee();x$e.exports=function(e){if(!Ohr(e))return!1;try{return e.constructor?e.constructor.prototype===e:!1}catch(t){return!1}}});var w$e=W((NQr,_$e)=>{"use strict";var Nhr=b$e();_$e.exports=function(e){if(typeof e!="function"||!hasOwnProperty.call(e,"length"))return!1;try{if(typeof e.length!="number"||typeof e.call!="function"||typeof e.apply!="function")return!1}catch(t){return!1}return!Nhr(e)}});var Kee=W((UQr,T$e)=>{"use strict";var Uhr=w$e(),Vhr=/^\s*class[\s{/}]/,Ghr=Function.prototype.toString;T$e.exports=function(e){return!(!Uhr(e)||Vhr.test(Ghr.call(e)))}});var M$e=W((VQr,A$e)=>{"use strict";A$e.exports=function(){var e=Object.assign,t;return typeof e!="function"?!1:(t={foo:"raz"},e(t,{bar:"dwa"},{trzy:"trzy"}),t.foo+t.bar+t.trzy==="razdwatrzy")}});var E$e=W((GQr,S$e)=>{"use strict";S$e.exports=function(){try{return Object.keys("primitive"),!0}catch(e){return!1}}});var C$e=W((HQr,k$e)=>{"use strict";var Hhr=V2(),jhr=Object.keys;k$e.exports=function(e){return jhr(Hhr(e)?Object(e):e)}});var F$e=W((jQr,D$e)=>{"use strict";D$e.exports=E$e()()?Object.keys:C$e()});var P$e=W(($Qr,L$e)=>{"use strict";var $hr=F$e(),Whr=Sm(),Yhr=Math.max;L$e.exports=function(e,t){var r,i,n=Yhr(arguments.length,2),a;for(e=Object(Whr(e)),a=function(o){try{e[o]=t[o]}catch(s){r||(r=s)}},i=1;i{"use strict";I$e.exports=M$e()()?Object.assign:P$e()});var Jee=W((YQr,R$e)=>{"use strict";var Xhr=V2(),Zhr=Array.prototype.forEach,Khr=Object.create,Jhr=function(e,t){var r;for(r in e)t[r]=e[r]};R$e.exports=function(e){var t=Khr(null);return Zhr.call(arguments,function(r){Xhr(r)&&Jhr(Object(r),t)}),t}});var B$e=W((XQr,z$e)=>{"use strict";var Qee="razdwatrzy";z$e.exports=function(){return typeof Qee.contains!="function"?!1:Qee.contains("dwa")===!0&&Qee.contains("foo")===!1}});var O$e=W((ZQr,q$e)=>{"use strict";var Qhr=String.prototype.indexOf;q$e.exports=function(e){return Qhr.call(this,e,arguments[1])>-1}});var ete=W((KQr,N$e)=>{"use strict";N$e.exports=B$e()()?String.prototype.contains:O$e()});var Em=W((JQr,H$e)=>{"use strict";var dz=W_(),U$e=Kee(),V$e=hz(),G$e=Jee(),KE=ete(),e0r=H$e.exports=function(e,t){var r,i,n,a,o;return arguments.length<2||typeof e!="string"?(a=t,t=e,e=null):a=arguments[2],dz(e)?(r=KE.call(e,"c"),i=KE.call(e,"e"),n=KE.call(e,"w")):(r=n=!0,i=!1),o={value:t,configurable:r,enumerable:i,writable:n},a?V$e(G$e(a),o):o};e0r.gs=function(e,t,r){var i,n,a,o;return typeof e!="string"?(a=r,r=t,t=e,e=null):a=arguments[3],dz(t)?U$e(t)?dz(r)?U$e(r)||(a=r,r=void 0):r=void 0:(a=t,t=r=void 0):t=void 0,dz(e)?(i=KE.call(e,"c"),n=KE.call(e,"e")):(i=!0,n=!1),o={get:t,set:r,configurable:i,enumerable:n},a?V$e(G$e(a),o):o}});var JE=W((QQr,$$e)=>{"use strict";var j$e=Object.prototype.toString,t0r=j$e.call((function(){return arguments})());$$e.exports=function(e){return j$e.call(e)===t0r}});var QE=W((eei,Y$e)=>{"use strict";var W$e=Object.prototype.toString,r0r=W$e.call("");Y$e.exports=function(e){return typeof e=="string"||e&&typeof e=="object"&&(e instanceof String||W$e.call(e)===r0r)||!1}});var Z$e=W((tei,X$e)=>{"use strict";X$e.exports=function(){return typeof globalThis!="object"||!globalThis?!1:globalThis.Array===Array}});var Q$e=W((rei,J$e)=>{var K$e=function(){if(typeof self=="object"&&self)return self;if(typeof window=="object"&&window)return window;throw new Error("Unable to resolve global `this`")};J$e.exports=(function(){if(this)return this;try{Object.defineProperty(Object.prototype,"__global__",{get:function(){return this},configurable:!0})}catch(e){return K$e()}try{return __global__||K$e()}finally{delete Object.prototype.__global__}})()});var ek=W((iei,eWe)=>{"use strict";eWe.exports=Z$e()()?globalThis:Q$e()});var rWe=W((nei,tWe)=>{"use strict";var i0r=ek(),tte={object:!0,symbol:!0};tWe.exports=function(){var e=i0r.Symbol,t;if(typeof e!="function")return!1;t=e("test symbol");try{String(t)}catch(r){return!1}return!(!tte[typeof e.iterator]||!tte[typeof e.toPrimitive]||!tte[typeof e.toStringTag])}});var nWe=W((aei,iWe)=>{"use strict";iWe.exports=function(e){return e?typeof e=="symbol"?!0:!e.constructor||e.constructor.name!=="Symbol"?!1:e[e.constructor.toStringTag]==="Symbol":!1}});var rte=W((oei,aWe)=>{"use strict";var n0r=nWe();aWe.exports=function(e){if(!n0r(e))throw new TypeError(e+" is not a symbol");return e}});var cWe=W((sei,uWe)=>{"use strict";var oWe=Em(),a0r=Object.create,sWe=Object.defineProperty,o0r=Object.prototype,lWe=a0r(null);uWe.exports=function(e){for(var t=0,r,i;lWe[e+(t||"")];)++t;return e+=t||"",lWe[e]=!0,r="@@"+e,sWe(o0r,r,oWe.gs(null,function(n){i||(i=!0,sWe(this,r,oWe(n)),i=!1)})),r}});var hWe=W((lei,fWe)=>{"use strict";var Mv=Em(),ru=ek().Symbol;fWe.exports=function(e){return Object.defineProperties(e,{hasInstance:Mv("",ru&&ru.hasInstance||e("hasInstance")),isConcatSpreadable:Mv("",ru&&ru.isConcatSpreadable||e("isConcatSpreadable")),iterator:Mv("",ru&&ru.iterator||e("iterator")),match:Mv("",ru&&ru.match||e("match")),replace:Mv("",ru&&ru.replace||e("replace")),search:Mv("",ru&&ru.search||e("search")),species:Mv("",ru&&ru.species||e("species")),split:Mv("",ru&&ru.split||e("split")),toPrimitive:Mv("",ru&&ru.toPrimitive||e("toPrimitive")),toStringTag:Mv("",ru&&ru.toStringTag||e("toStringTag")),unscopables:Mv("",ru&&ru.unscopables||e("unscopables"))})}});var vWe=W((uei,pWe)=>{"use strict";var dWe=Em(),s0r=rte(),tk=Object.create(null);pWe.exports=function(e){return Object.defineProperties(e,{for:dWe(function(t){return tk[t]?tk[t]:tk[t]=e(String(t))}),keyFor:dWe(function(t){var r;s0r(t);for(r in tk)if(tk[r]===t)return r})})}});var yWe=W((cei,mWe)=>{"use strict";var J1=Em(),ite=rte(),pz=ek().Symbol,l0r=cWe(),u0r=hWe(),c0r=vWe(),f0r=Object.create,nte=Object.defineProperties,vz=Object.defineProperty,qf,aT,gWe;if(typeof pz=="function")try{String(pz()),gWe=!0}catch(e){}else pz=null;aT=function(t){if(this instanceof aT)throw new TypeError("Symbol is not a constructor");return qf(t)};mWe.exports=qf=function e(t){var r;if(this instanceof e)throw new TypeError("Symbol is not a constructor");return gWe?pz(t):(r=f0r(aT.prototype),t=t===void 0?"":String(t),nte(r,{__description__:J1("",t),__name__:J1("",l0r(t))}))};u0r(qf);c0r(qf);nte(aT.prototype,{constructor:J1(qf),toString:J1("",function(){return this.__name__})});nte(qf.prototype,{toString:J1(function(){return"Symbol ("+ite(this).__description__+")"}),valueOf:J1(function(){return ite(this)})});vz(qf.prototype,qf.toPrimitive,J1("",function(){var e=ite(this);return typeof e=="symbol"?e:e.toString()}));vz(qf.prototype,qf.toStringTag,J1("c","Symbol"));vz(aT.prototype,qf.toStringTag,J1("c",qf.prototype[qf.toStringTag]));vz(aT.prototype,qf.toPrimitive,J1("c",qf.prototype[qf.toPrimitive]))});var G2=W((fei,xWe)=>{"use strict";xWe.exports=rWe()()?ek().Symbol:yWe()});var _We=W((hei,bWe)=>{"use strict";var h0r=Sm();bWe.exports=function(){return h0r(this).length=0,this}});var oT=W((dei,wWe)=>{"use strict";wWe.exports=function(e){if(typeof e!="function")throw new TypeError(e+" is not a function");return e}});var AWe=W((pei,TWe)=>{"use strict";var d0r=W_(),p0r=Zee(),v0r=Object.prototype.toString;TWe.exports=function(e){if(!d0r(e))return null;if(p0r(e)){var t=e.toString;if(typeof t!="function"||t===v0r)return null}try{return""+e}catch(r){return null}}});var SWe=W((vei,MWe)=>{"use strict";MWe.exports=function(e){try{return e.toString()}catch(t){try{return String(e)}catch(r){return null}}}});var kWe=W((gei,EWe)=>{"use strict";var g0r=SWe(),m0r=/[\n\r\u2028\u2029]/g;EWe.exports=function(e){var t=g0r(e);return t===null?"":(t.length>100&&(t=t.slice(0,99)+"\u2026"),t=t.replace(m0r,function(r){switch(r){case` +`:return"\\n";case"\r":return"\\r";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw new Error("Unexpected character")}}),t)}});var DWe=W((mei,CWe)=>{"use strict";var y0r=AWe(),x0r=kWe();CWe.exports=function(e,t,r){r&&r.errorMessage&&(e=y0r(r.errorMessage));var i=e.indexOf("%v"),n=i>-1?x0r(t):null;if(r&&r.name){var a=e.indexOf("%n");if(a>-1){if(i>-1){var o,s,l,u;return a>i?(o=n,l=i,s=r.name,u=a):(o=r.name,l=a,s=n,u=i),e.slice(0,l)+o+e.slice(l+2,u)+s+e.slice(u+2)}return e.slice(0,a)+r.name+e.slice(a+2)}}return i>-1?e.slice(0,i)+n+e.slice(i+2):e}});var ate=W((yei,FWe)=>{"use strict";var b0r=W_(),_0r=DWe();FWe.exports=function(e,t,r){if(r&&!b0r(e)){if("default"in r)return r.default;if(r.isOptional)return null}var i=r&&r.Error||TypeError,n=new i(_0r(t,e,r));throw r&&r.errorCode&&(n.code=r.errorCode),n}});var PWe=W((xei,LWe)=>{"use strict";var w0r=ate(),T0r=W_();LWe.exports=function(e){if(T0r(e))return e;var t=arguments[1],r=t&&t.name?"Expected a value for %n, received %v":"Cannot use %v";return w0r(e,r,t)}});var RWe=W((bei,IWe)=>{"use strict";var A0r=ate(),M0r=Kee();IWe.exports=function(e){if(M0r(e))return e;var t=arguments[1],r=t&&t.name?"Expected a plain function for %n, received %v":"%v is not a plain function";return A0r(e,r,t)}});var BWe=W((_ei,zWe)=>{"use strict";zWe.exports=function(){var e=Array.from,t,r;return typeof e!="function"?!1:(t=["raz","dwa"],r=e(t),!!(r&&r!==t&&r[1]==="dwa"))}});var OWe=W((wei,qWe)=>{"use strict";var S0r=Object.prototype.toString,E0r=RegExp.prototype.test.bind(/^[object [A-Za-z0-9]*Function]$/);qWe.exports=function(e){return typeof e=="function"&&E0r(S0r.call(e))}});var UWe=W((Tei,NWe)=>{"use strict";NWe.exports=function(){var e=Math.sign;return typeof e!="function"?!1:e(10)===1&&e(-20)===-1}});var GWe=W((Aei,VWe)=>{"use strict";VWe.exports=function(e){return e=Number(e),isNaN(e)||e===0?e:e>0?1:-1}});var jWe=W((Mei,HWe)=>{"use strict";HWe.exports=UWe()()?Math.sign:GWe()});var WWe=W((Sei,$We)=>{"use strict";var k0r=jWe(),C0r=Math.abs,D0r=Math.floor;$We.exports=function(e){return isNaN(e)?0:(e=Number(e),e===0||!isFinite(e)?e:k0r(e)*D0r(C0r(e)))}});var XWe=W((Eei,YWe)=>{"use strict";var F0r=WWe(),L0r=Math.max;YWe.exports=function(e){return L0r(0,F0r(e))}});var QWe=W((kei,JWe)=>{"use strict";var P0r=G2().iterator,I0r=JE(),R0r=OWe(),z0r=XWe(),ZWe=oT(),B0r=Sm(),q0r=V2(),O0r=QE(),KWe=Array.isArray,ote=Function.prototype.call,Y_={configurable:!0,enumerable:!0,writable:!0,value:null},ste=Object.defineProperty;JWe.exports=function(e){var t=arguments[1],r=arguments[2],i,n,a,o,s,l,u,c,f,h;if(e=Object(B0r(e)),q0r(t)&&ZWe(t),!this||this===Array||!R0r(this)){if(!t){if(I0r(e))return s=e.length,s!==1?Array.apply(null,e):(o=new Array(1),o[0]=e[0],o);if(KWe(e)){for(o=new Array(s=e.length),n=0;n=55296&&l<=56319&&(h+=e[++n])),h=t?ote.call(t,r,h,a):h,i?(Y_.value=h,ste(o,a,Y_)):o[a]=h,++a;s=a}}if(s===void 0)for(s=z0r(e.length),i&&(o=new i(s)),n=0;n{"use strict";eYe.exports=BWe()()?Array.from:QWe()});var iYe=W((Dei,rYe)=>{"use strict";var N0r=tYe(),U0r=hz(),V0r=Sm();rYe.exports=function(e){var t=Object(V0r(e)),r=arguments[1],i=Object(arguments[2]);if(t!==e&&!r)return t;var n={};return r?N0r(r,function(a){(i.ensure||a in e)&&(n[a]=e[a])}):U0r(n,e),n}});var oYe=W((Fei,aYe)=>{"use strict";var G0r=oT(),H0r=Sm(),j0r=Function.prototype.bind,nYe=Function.prototype.call,$0r=Object.keys,W0r=Object.prototype.propertyIsEnumerable;aYe.exports=function(e,t){return function(r,i){var n,a=arguments[2],o=arguments[3];return r=Object(H0r(r)),G0r(i),n=$0r(r),o&&n.sort(typeof o=="function"?j0r.call(o,r):void 0),typeof e!="function"&&(e=n[e]),nYe.call(e,n,function(s,l){return W0r.call(r,s)?nYe.call(i,a,r[s],s,r,l):t})}}});var lYe=W((Lei,sYe)=>{"use strict";sYe.exports=oYe()("forEach")});var cYe=W((Pei,uYe)=>{"use strict";var Y0r=oT(),X0r=lYe(),Z0r=Function.prototype.call;uYe.exports=function(e,t){var r={},i=arguments[2];return Y0r(t),X0r(e,function(n,a,o,s){r[a]=Z0r.call(t,i,n,a,o,s)}),r}});var pYe=W((Iei,dYe)=>{"use strict";var K0r=W_(),J0r=PWe(),fYe=RWe(),Q0r=iYe(),edr=Jee(),tdr=cYe(),rdr=Function.prototype.bind,idr=Object.defineProperty,ndr=Object.prototype.hasOwnProperty,hYe;hYe=function(e,t,r){var i=J0r(t)&&fYe(t.value),n;return n=Q0r(t),delete n.writable,delete n.value,n.get=function(){return!r.overwriteDefinition&&ndr.call(this,e)?i:(t.value=rdr.call(i,r.resolveContext?r.resolveContext(this):this),idr(this,e,t),this[e])},n};dYe.exports=function(e){var t=edr(arguments[1]);return K0r(t.resolveContext)&&fYe(t.resolveContext),tdr(e,function(r,i){return hYe(i,r,t)})}});var lte=W((Rei,yYe)=>{"use strict";var adr=_We(),odr=hz(),sdr=oT(),ldr=Sm(),e0=Em(),udr=pYe(),vYe=G2(),gYe=Object.defineProperty,mYe=Object.defineProperties,rk;yYe.exports=rk=function(e,t){if(!(this instanceof rk))throw new TypeError("Constructor requires 'new'");mYe(this,{__list__:e0("w",ldr(e)),__context__:e0("w",t),__nextIndex__:e0("w",0)}),t&&(sdr(t.on),t.on("_add",this._onAdd),t.on("_delete",this._onDelete),t.on("_clear",this._onClear))};delete rk.prototype.constructor;mYe(rk.prototype,odr({_next:e0(function(){var e;if(this.__list__){if(this.__redo__&&(e=this.__redo__.shift(),e!==void 0))return e;if(this.__nextIndex__=this.__nextIndex__)){if(++this.__nextIndex__,!this.__redo__){gYe(this,"__redo__",e0("c",[e]));return}this.__redo__.forEach(function(t,r){t>=e&&(this.__redo__[r]=++t)},this),this.__redo__.push(e)}}),_onDelete:e0(function(e){var t;e>=this.__nextIndex__||(--this.__nextIndex__,this.__redo__&&(t=this.__redo__.indexOf(e),t!==-1&&this.__redo__.splice(t,1),this.__redo__.forEach(function(r,i){r>e&&(this.__redo__[i]=--r)},this)))}),_onClear:e0(function(){this.__redo__&&adr.call(this.__redo__),this.__nextIndex__=0})})));gYe(rk.prototype,vYe.iterator,e0(function(){return this}))});var TYe=W((zei,wYe)=>{"use strict";var xYe=fz(),bYe=ete(),ute=Em(),cdr=G2(),cte=lte(),_Ye=Object.defineProperty,sT;sT=wYe.exports=function(e,t){if(!(this instanceof sT))throw new TypeError("Constructor requires 'new'");cte.call(this,e),t?bYe.call(t,"key+value")?t="key+value":bYe.call(t,"key")?t="key":t="value":t="value",_Ye(this,"__kind__",ute("",t))};xYe&&xYe(sT,cte);delete sT.prototype.constructor;sT.prototype=Object.create(cte.prototype,{_resolve:ute(function(e){return this.__kind__==="value"?this.__list__[e]:this.__kind__==="key+value"?[e,this.__list__[e]]:e})});_Ye(sT.prototype,cdr.toStringTag,ute("c","Array Iterator"))});var EYe=W((Bei,SYe)=>{"use strict";var AYe=fz(),gz=Em(),fdr=G2(),fte=lte(),MYe=Object.defineProperty,lT;lT=SYe.exports=function(e){if(!(this instanceof lT))throw new TypeError("Constructor requires 'new'");e=String(e),fte.call(this,e),MYe(this,"__length__",gz("",e.length))};AYe&&AYe(lT,fte);delete lT.prototype.constructor;lT.prototype=Object.create(fte.prototype,{_next:gz(function(){if(this.__list__){if(this.__nextIndex__=55296&&r<=56319?t+this.__list__[this.__nextIndex__++]:t)})});MYe(lT.prototype,fdr.toStringTag,gz("c","String Iterator"))});var CYe=W((qei,kYe)=>{"use strict";var hdr=JE(),ddr=V2(),pdr=QE(),vdr=G2().iterator,gdr=Array.isArray;kYe.exports=function(e){return ddr(e)?gdr(e)||pdr(e)||hdr(e)?!0:typeof e[vdr]=="function":!1}});var FYe=W((Oei,DYe)=>{"use strict";var mdr=CYe();DYe.exports=function(e){if(!mdr(e))throw new TypeError(e+" is not iterable");return e}});var hte=W((Nei,IYe)=>{"use strict";var ydr=JE(),xdr=QE(),LYe=TYe(),bdr=EYe(),_dr=FYe(),PYe=G2().iterator;IYe.exports=function(e){return typeof _dr(e)[PYe]=="function"?e[PYe]():ydr(e)?new LYe(e):xdr(e)?new bdr(e):new LYe(e)}});var zYe=W((Uei,RYe)=>{"use strict";var wdr=JE(),Tdr=oT(),Adr=QE(),Mdr=hte(),Sdr=Array.isArray,dte=Function.prototype.call,Edr=Array.prototype.some;RYe.exports=function(e,t){var r,i=arguments[2],n,a,o,s,l,u,c;if(Sdr(e)||wdr(e)?r="array":Adr(e)?r="string":e=Mdr(e),Tdr(t),a=function(){o=!0},r==="array"){Edr.call(e,function(f){return dte.call(t,i,f,a),o});return}if(r==="string"){for(l=e.length,s=0;s=55296&&c<=56319&&(u+=e[++s])),dte.call(t,i,u,a),!o);++s);return}for(n=e.next();!n.done;){if(dte.call(t,i,n.value,a),o)return;n=e.next()}}});var qYe=W((Vei,BYe)=>{"use strict";BYe.exports=(function(){return typeof WeakMap!="function"?!1:Object.prototype.toString.call(new WeakMap)==="[object WeakMap]"})()});var UYe=W((Gei,NYe)=>{"use strict";var kdr=V2(),yz=fz(),mz=p$e(),Cdr=Sm(),Ddr=g$e(),km=Em(),Fdr=hte(),Ldr=zYe(),Pdr=G2().toStringTag,OYe=qYe(),Idr=Array.isArray,vte=Object.defineProperty,pte=Object.prototype.hasOwnProperty,Rdr=Object.getPrototypeOf,H2;NYe.exports=H2=function(){var e=arguments[0],t;if(!(this instanceof H2))throw new TypeError("Constructor requires 'new'");return t=OYe&&yz&&WeakMap!==H2?yz(new WeakMap,Rdr(this)):this,kdr(e)&&(Idr(e)||(e=Fdr(e))),vte(t,"__weakMapData__",km("c","$weakMap$"+Ddr())),e&&Ldr(e,function(r){Cdr(r),t.set(r[0],r[1])}),t};OYe&&(yz&&yz(H2,WeakMap),H2.prototype=Object.create(WeakMap.prototype,{constructor:km(H2)}));Object.defineProperties(H2.prototype,{delete:km(function(e){return pte.call(mz(e),this.__weakMapData__)?(delete e[this.__weakMapData__],!0):!1}),get:km(function(e){if(pte.call(mz(e),this.__weakMapData__))return e[this.__weakMapData__]}),has:km(function(e){return pte.call(mz(e),this.__weakMapData__)}),set:km(function(e,t){return vte(mz(e),this.__weakMapData__,km("c",t)),this}),toString:km(function(){return"[object WeakMap]"})});vte(H2.prototype,Pdr,km("c","WeakMap"))});var gte=W((Hei,VYe)=>{"use strict";VYe.exports=t$e()()?WeakMap:UYe()});var HYe=W((jei,GYe)=>{"use strict";GYe.exports=function(e,t,r){if(typeof Array.prototype.findIndex=="function")return e.findIndex(t,r);if(typeof t!="function")throw new TypeError("predicate must be a function");var i=Object(e),n=i.length;if(n===0)return-1;for(var a=0;a{"use strict";var xz=$E(),zdr=U_(),yte=Hu(),Bdr=K1(),qdr=V_(),jYe=Kje(),Odr=Qje(),{float32:Ndr,fract32:mte}=rz(),Udr=gte(),$Ye=K4(),Vdr=HYe(),Gdr=` precision highp float; attribute vec2 aCoord, bCoord, aCoordFract, bCoordFract; @@ -2248,7 +2248,7 @@ void main() { fragColor = color / 255.; } -`,Idr=` +`,Hdr=` precision highp float; uniform float dashLength, pixelRatio, thickness, opacity, id; @@ -2266,7 +2266,7 @@ void main() { gl_FragColor = fragColor; gl_FragColor.a *= alpha * opacity * dash; } -`,Rdr=` +`,jdr=` precision highp float; attribute vec2 position, positionFract; @@ -2294,14 +2294,14 @@ void main() { fragColor = color / 255.; fragColor.a *= opacity; } -`,zdr=` +`,$dr=` precision highp float; varying vec4 fragColor; void main() { gl_FragColor = fragColor; } -`,Bdr=` +`,Wdr=` precision highp float; attribute vec2 aCoord, bCoord, nextCoord, prevCoord; @@ -2505,7 +2505,7 @@ void main() { } } } -`,qdr=` +`,Ydr=` precision highp float; uniform float dashLength, pixelRatio, thickness, opacity, id, miterMode; @@ -2585,7 +2585,7 @@ void main() { gl_FragColor = fragColor; gl_FragColor.a *= alpha * opacity * dash; } -`;OYe.exports=ds;function ds(e,t){if(!(this instanceof ds))return new ds(e,t);if(typeof e=="function"?(t||(t={}),t.regl=e):t=e,t.length&&(t.positions=t),e=t.regl,!e.hasExtension("ANGLE_instanced_arrays"))throw Error("regl-error2d: `ANGLE_instanced_arrays` extension should be enabled");this.gl=e._gl,this.regl=e,this.passes=[],this.shaders=ds.shaders.has(e)?ds.shaders.get(e):ds.shaders.set(e,ds.createShaders(e)).get(e),this.update(t)}ds.dashMult=2;ds.maxPatternLength=256;ds.precisionThreshold=3e6;ds.maxPoints=1e4;ds.maxLines=2048;ds.shaders=new Fdr;ds.createShaders=function(e){let t=e.buffer({usage:"static",type:"float",data:[0,1,0,0,1,1,1,0]}),r={primitive:"triangle strip",instances:e.prop("count"),count:4,offset:0,uniforms:{miterMode:(o,s)=>s.join==="round"?2:1,miterLimit:e.prop("miterLimit"),scale:e.prop("scale"),scaleFract:e.prop("scaleFract"),translateFract:e.prop("translateFract"),translate:e.prop("translate"),thickness:e.prop("thickness"),dashTexture:e.prop("dashTexture"),opacity:e.prop("opacity"),pixelRatio:e.context("pixelRatio"),id:e.prop("id"),dashLength:e.prop("dashLength"),viewport:(o,s)=>[s.viewport.x,s.viewport.y,o.viewportWidth,o.viewportHeight],depth:e.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:(o,s)=>!s.overlay},stencil:{enable:!1},scissor:{enable:!0,box:e.prop("viewport")},viewport:e.prop("viewport")},i=e(cte({vert:Pdr,frag:Idr,attributes:{lineEnd:{buffer:t,divisor:0,stride:8,offset:0},lineTop:{buffer:t,divisor:0,stride:8,offset:4},aCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:8,divisor:1},bCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:16,divisor:1},aCoordFract:{buffer:e.prop("positionFractBuffer"),stride:8,offset:8,divisor:1},bCoordFract:{buffer:e.prop("positionFractBuffer"),stride:8,offset:16,divisor:1},color:{buffer:e.prop("colorBuffer"),stride:4,offset:0,divisor:1}}},r)),n;try{n=e(cte({cull:{enable:!0,face:"back"},vert:Bdr,frag:qdr,attributes:{lineEnd:{buffer:t,divisor:0,stride:8,offset:0},lineTop:{buffer:t,divisor:0,stride:8,offset:4},aColor:{buffer:e.prop("colorBuffer"),stride:4,offset:0,divisor:1},bColor:{buffer:e.prop("colorBuffer"),stride:4,offset:4,divisor:1},prevCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:0,divisor:1},aCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:8,divisor:1},bCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:16,divisor:1},nextCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:24,divisor:1}}},r))}catch(o){n=i}return{fill:e({primitive:"triangle",elements:(o,s)=>s.triangles,offset:0,vert:Rdr,frag:zdr,uniforms:{scale:e.prop("scale"),color:e.prop("fill"),scaleFract:e.prop("scaleFract"),translateFract:e.prop("translateFract"),translate:e.prop("translate"),opacity:e.prop("opacity"),pixelRatio:e.context("pixelRatio"),id:e.prop("id"),viewport:(o,s)=>[s.viewport.x,s.viewport.y,o.viewportWidth,o.viewportHeight]},attributes:{position:{buffer:e.prop("positionBuffer"),stride:8,offset:8},positionFract:{buffer:e.prop("positionFractBuffer"),stride:8,offset:8}},blend:r.blend,depth:{enable:!1},scissor:r.scissor,stencil:r.stencil,viewport:r.viewport}),rect:i,miter:n}};ds.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};ds.prototype.render=function(...e){e.length&&this.update(...e),this.draw()};ds.prototype.draw=function(...e){return(e.length?e:this.passes).forEach((t,r)=>{if(t&&Array.isArray(t))return this.draw(...t);typeof t=="number"&&(t=this.passes[t]),t&&t.count>1&&t.opacity&&(this.regl._refresh(),t.fill&&t.triangles&&t.triangles.length>2&&this.shaders.fill(t),t.thickness&&(t.scale[0]*t.viewport.width>ds.precisionThreshold||t.scale[1]*t.viewport.height>ds.precisionThreshold?this.shaders.rect(t):t.join==="rect"||!t.join&&(t.thickness<=2||t.count>=ds.maxPoints)?this.shaders.rect(t):this.shaders.miter(t)))}),this};ds.prototype.update=function(e){if(!e)return;e.length!=null?typeof e[0]=="number"&&(e=[{positions:e}]):Array.isArray(e)||(e=[e]);let{regl:t,gl:r}=this;if(e.forEach((n,a)=>{let o=this.passes[a];if(n!==void 0){if(n===null){this.passes[a]=null;return}if(typeof n[0]=="number"&&(n={positions:n}),n=Edr(n,{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"}),o||(this.passes[a]=o={id:a,scale:null,scaleFract:null,translate:null,translateFract:null,count:0,hole:[],depth:0,dashLength:1,dashTexture:t.texture({channels:1,data:new Uint8Array([255]),width:1,height:1,mag:"linear",min:"linear"}),colorBuffer:t.buffer({usage:"dynamic",type:"uint8",data:new Uint8Array}),positionBuffer:t.buffer({usage:"dynamic",type:"float",data:new Uint8Array}),positionFractBuffer:t.buffer({usage:"dynamic",type:"float",data:new Uint8Array})},n=cte({},ds.defaults,n)),n.thickness!=null&&(o.thickness=parseFloat(n.thickness)),n.opacity!=null&&(o.opacity=parseFloat(n.opacity)),n.miterLimit!=null&&(o.miterLimit=parseFloat(n.miterLimit)),n.overlay!=null&&(o.overlay=!!n.overlay,ah[0]||(h[2]=h[0]+1e-155),h[3]>h[1]||(h[3]=h[1]+1e-155)),o.normBounds=h,o.fill){let m=[],g={},w=0;for(let _=0,b=0,S=o.count;_T-A),b=[],S=0,x=o.hole!=null?o.hole[0]:null;if(x!=null){let T=Ldr(_,A=>A>=x);_=_.slice(0,T),_.push(x)}for(let T=0;T<_.length;T++){let A=m.slice(S*2,_[T]*2).concat(x?m.slice(x*2):[]),y=(o.hole||[]).map(M=>M-x+(_[T]-S)),E=BYe(A,y);E=E.map(M=>M+S+(M+S<_[T]?0:x-_[T])),b.push(...E),S=_[T]+1}for(let T=0,A=b.length;T{e.colorBuffer.destroy(),e.positionBuffer.destroy(),e.dashTexture.destroy()}),this.passes.length=0,this}});var HYe=W((Pei,GYe)=>{"use strict";var Odr=O_(),Ndr=HE(),Udr=Lee(),Vdr=X1(),NYe=Gu(),UYe=N_(),{float32:Gdr,fract32:hte}=ZR();GYe.exports=Hdr;var VYe=[[1,0,0,1,0,0],[1,0,0,-1,0,0],[-1,0,0,-1,0,0],[-1,0,0,-1,0,0],[-1,0,0,1,0,0],[1,0,0,1,0,0],[1,0,-1,0,0,1],[1,0,-1,0,0,-1],[1,0,1,0,0,-1],[1,0,1,0,0,-1],[1,0,1,0,0,1],[1,0,-1,0,0,1],[-1,0,-1,0,0,1],[-1,0,-1,0,0,-1],[-1,0,1,0,0,-1],[-1,0,1,0,0,-1],[-1,0,1,0,0,1],[-1,0,-1,0,0,1],[0,1,1,0,0,0],[0,1,-1,0,0,0],[0,-1,-1,0,0,0],[0,-1,-1,0,0,0],[0,1,1,0,0,0],[0,-1,1,0,0,0],[0,1,0,-1,1,0],[0,1,0,-1,-1,0],[0,1,0,1,-1,0],[0,1,0,1,1,0],[0,1,0,-1,1,0],[0,1,0,1,-1,0],[0,-1,0,-1,1,0],[0,-1,0,-1,-1,0],[0,-1,0,1,-1,0],[0,-1,0,1,1,0],[0,-1,0,-1,1,0],[0,-1,0,1,-1,0]];function Hdr(e,t){if(typeof e=="function"?(t||(t={}),t.regl=e):t=e,t.length&&(t.positions=t),e=t.regl,!e.hasExtension("ANGLE_instanced_arrays"))throw Error("regl-error2d: `ANGLE_instanced_arrays` extension should be enabled");let r=e._gl,i,n,a,o,s,l,u={color:"black",capSize:5,lineWidth:1,opacity:1,viewport:null,range:null,offset:0,count:0,bounds:null,positions:[],errors:[]},c=[];return o=e.buffer({usage:"dynamic",type:"uint8",data:new Uint8Array(0)}),n=e.buffer({usage:"dynamic",type:"float",data:new Uint8Array(0)}),a=e.buffer({usage:"dynamic",type:"float",data:new Uint8Array(0)}),s=e.buffer({usage:"dynamic",type:"float",data:new Uint8Array(0)}),l=e.buffer({usage:"static",type:"float",data:VYe}),d(t),i=e({vert:` +`;WYe.exports=vs;function vs(e,t){if(!(this instanceof vs))return new vs(e,t);if(typeof e=="function"?(t||(t={}),t.regl=e):t=e,t.length&&(t.positions=t),e=t.regl,!e.hasExtension("ANGLE_instanced_arrays"))throw Error("regl-error2d: `ANGLE_instanced_arrays` extension should be enabled");this.gl=e._gl,this.regl=e,this.passes=[],this.shaders=vs.shaders.has(e)?vs.shaders.get(e):vs.shaders.set(e,vs.createShaders(e)).get(e),this.update(t)}vs.dashMult=2;vs.maxPatternLength=256;vs.precisionThreshold=3e6;vs.maxPoints=1e4;vs.maxLines=2048;vs.shaders=new Udr;vs.createShaders=function(e){let t=e.buffer({usage:"static",type:"float",data:[0,1,0,0,1,1,1,0]}),r={primitive:"triangle strip",instances:e.prop("count"),count:4,offset:0,uniforms:{miterMode:(o,s)=>s.join==="round"?2:1,miterLimit:e.prop("miterLimit"),scale:e.prop("scale"),scaleFract:e.prop("scaleFract"),translateFract:e.prop("translateFract"),translate:e.prop("translate"),thickness:e.prop("thickness"),dashTexture:e.prop("dashTexture"),opacity:e.prop("opacity"),pixelRatio:e.context("pixelRatio"),id:e.prop("id"),dashLength:e.prop("dashLength"),viewport:(o,s)=>[s.viewport.x,s.viewport.y,o.viewportWidth,o.viewportHeight],depth:e.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:(o,s)=>!s.overlay},stencil:{enable:!1},scissor:{enable:!0,box:e.prop("viewport")},viewport:e.prop("viewport")},i=e(yte({vert:Gdr,frag:Hdr,attributes:{lineEnd:{buffer:t,divisor:0,stride:8,offset:0},lineTop:{buffer:t,divisor:0,stride:8,offset:4},aCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:8,divisor:1},bCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:16,divisor:1},aCoordFract:{buffer:e.prop("positionFractBuffer"),stride:8,offset:8,divisor:1},bCoordFract:{buffer:e.prop("positionFractBuffer"),stride:8,offset:16,divisor:1},color:{buffer:e.prop("colorBuffer"),stride:4,offset:0,divisor:1}}},r)),n;try{n=e(yte({cull:{enable:!0,face:"back"},vert:Wdr,frag:Ydr,attributes:{lineEnd:{buffer:t,divisor:0,stride:8,offset:0},lineTop:{buffer:t,divisor:0,stride:8,offset:4},aColor:{buffer:e.prop("colorBuffer"),stride:4,offset:0,divisor:1},bColor:{buffer:e.prop("colorBuffer"),stride:4,offset:4,divisor:1},prevCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:0,divisor:1},aCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:8,divisor:1},bCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:16,divisor:1},nextCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:24,divisor:1}}},r))}catch(o){n=i}return{fill:e({primitive:"triangle",elements:(o,s)=>s.triangles,offset:0,vert:jdr,frag:$dr,uniforms:{scale:e.prop("scale"),color:e.prop("fill"),scaleFract:e.prop("scaleFract"),translateFract:e.prop("translateFract"),translate:e.prop("translate"),opacity:e.prop("opacity"),pixelRatio:e.context("pixelRatio"),id:e.prop("id"),viewport:(o,s)=>[s.viewport.x,s.viewport.y,o.viewportWidth,o.viewportHeight]},attributes:{position:{buffer:e.prop("positionBuffer"),stride:8,offset:8},positionFract:{buffer:e.prop("positionFractBuffer"),stride:8,offset:8}},blend:r.blend,depth:{enable:!1},scissor:r.scissor,stencil:r.stencil,viewport:r.viewport}),rect:i,miter:n}};vs.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};vs.prototype.render=function(...e){e.length&&this.update(...e),this.draw()};vs.prototype.draw=function(...e){return(e.length?e:this.passes).forEach((t,r)=>{if(t&&Array.isArray(t))return this.draw(...t);typeof t=="number"&&(t=this.passes[t]),t&&t.count>1&&t.opacity&&(this.regl._refresh(),t.fill&&t.triangles&&t.triangles.length>2&&this.shaders.fill(t),t.thickness&&(t.scale[0]*t.viewport.width>vs.precisionThreshold||t.scale[1]*t.viewport.height>vs.precisionThreshold?this.shaders.rect(t):t.join==="rect"||!t.join&&(t.thickness<=2||t.count>=vs.maxPoints)?this.shaders.rect(t):this.shaders.miter(t)))}),this};vs.prototype.update=function(e){if(!e)return;e.length!=null?typeof e[0]=="number"&&(e=[{positions:e}]):Array.isArray(e)||(e=[e]);let{regl:t,gl:r}=this;if(e.forEach((n,a)=>{let o=this.passes[a];if(n!==void 0){if(n===null){this.passes[a]=null;return}if(typeof n[0]=="number"&&(n={positions:n}),n=Bdr(n,{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"}),o||(this.passes[a]=o={id:a,scale:null,scaleFract:null,translate:null,translateFract:null,count:0,hole:[],depth:0,dashLength:1,dashTexture:t.texture({channels:1,data:new Uint8Array([255]),width:1,height:1,mag:"linear",min:"linear"}),colorBuffer:t.buffer({usage:"dynamic",type:"uint8",data:new Uint8Array}),positionBuffer:t.buffer({usage:"dynamic",type:"float",data:new Uint8Array}),positionFractBuffer:t.buffer({usage:"dynamic",type:"float",data:new Uint8Array})},n=yte({},vs.defaults,n)),n.thickness!=null&&(o.thickness=parseFloat(n.thickness)),n.opacity!=null&&(o.opacity=parseFloat(n.opacity)),n.miterLimit!=null&&(o.miterLimit=parseFloat(n.miterLimit)),n.overlay!=null&&(o.overlay=!!n.overlay,ah[0]||(h[2]=h[0]+1e-155),h[3]>h[1]||(h[3]=h[1]+1e-155)),o.normBounds=h,o.fill){let m=[],g={},w=0;for(let _=0,b=0,S=o.count;_A-T),b=[],S=0,x=o.hole!=null?o.hole[0]:null;if(x!=null){let A=Vdr(_,T=>T>=x);_=_.slice(0,A),_.push(x)}for(let A=0;A<_.length;A++){let T=m.slice(S*2,_[A]*2).concat(x?m.slice(x*2):[]),y=(o.hole||[]).map(M=>M-x+(_[A]-S)),E=jYe(T,y);E=E.map(M=>M+S+(M+S<_[A]?0:x-_[A])),b.push(...E),S=_[A]+1}for(let A=0,T=b.length;A{e.colorBuffer.destroy(),e.positionBuffer.destroy(),e.dashTexture.destroy()}),this.passes.length=0,this}});var JYe=W((Wei,KYe)=>{"use strict";var Xdr=U_(),Zdr=$E(),Kdr=Nee(),Jdr=K1(),YYe=Hu(),XYe=V_(),{float32:Qdr,fract32:bte}=rz();KYe.exports=epr;var ZYe=[[1,0,0,1,0,0],[1,0,0,-1,0,0],[-1,0,0,-1,0,0],[-1,0,0,-1,0,0],[-1,0,0,1,0,0],[1,0,0,1,0,0],[1,0,-1,0,0,1],[1,0,-1,0,0,-1],[1,0,1,0,0,-1],[1,0,1,0,0,-1],[1,0,1,0,0,1],[1,0,-1,0,0,1],[-1,0,-1,0,0,1],[-1,0,-1,0,0,-1],[-1,0,1,0,0,-1],[-1,0,1,0,0,-1],[-1,0,1,0,0,1],[-1,0,-1,0,0,1],[0,1,1,0,0,0],[0,1,-1,0,0,0],[0,-1,-1,0,0,0],[0,-1,-1,0,0,0],[0,1,1,0,0,0],[0,-1,1,0,0,0],[0,1,0,-1,1,0],[0,1,0,-1,-1,0],[0,1,0,1,-1,0],[0,1,0,1,1,0],[0,1,0,-1,1,0],[0,1,0,1,-1,0],[0,-1,0,-1,1,0],[0,-1,0,-1,-1,0],[0,-1,0,1,-1,0],[0,-1,0,1,1,0],[0,-1,0,-1,1,0],[0,-1,0,1,-1,0]];function epr(e,t){if(typeof e=="function"?(t||(t={}),t.regl=e):t=e,t.length&&(t.positions=t),e=t.regl,!e.hasExtension("ANGLE_instanced_arrays"))throw Error("regl-error2d: `ANGLE_instanced_arrays` extension should be enabled");let r=e._gl,i,n,a,o,s,l,u={color:"black",capSize:5,lineWidth:1,opacity:1,viewport:null,range:null,offset:0,count:0,bounds:null,positions:[],errors:[]},c=[];return o=e.buffer({usage:"dynamic",type:"uint8",data:new Uint8Array(0)}),n=e.buffer({usage:"dynamic",type:"float",data:new Uint8Array(0)}),a=e.buffer({usage:"dynamic",type:"float",data:new Uint8Array(0)}),s=e.buffer({usage:"dynamic",type:"float",data:new Uint8Array(0)}),l=e.buffer({usage:"static",type:"float",data:ZYe}),d(t),i=e({vert:` precision highp float; attribute vec2 position, positionFract; @@ -2629,10 +2629,10 @@ void main() { gl_FragColor = fragColor; gl_FragColor.a *= opacity; } - `,uniforms:{range:e.prop("range"),lineWidth:e.prop("lineWidth"),capSize:e.prop("capSize"),opacity:e.prop("opacity"),scale:e.prop("scale"),translate:e.prop("translate"),scaleFract:e.prop("scaleFract"),translateFract:e.prop("translateFract"),viewport:(m,g)=>[g.viewport.x,g.viewport.y,m.viewportWidth,m.viewportHeight]},attributes:{color:{buffer:o,offset:(m,g)=>g.offset*4,divisor:1},position:{buffer:n,offset:(m,g)=>g.offset*8,divisor:1},positionFract:{buffer:a,offset:(m,g)=>g.offset*8,divisor:1},error:{buffer:s,offset:(m,g)=>g.offset*16,divisor:1},direction:{buffer:l,stride:24,offset:0},lineOffset:{buffer:l,stride:24,offset:8},capOffset:{buffer:l,stride:24,offset:16}},primitive:"triangles",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:!1},scissor:{enable:!0,box:e.prop("viewport")},viewport:e.prop("viewport"),stencil:!1,instances:e.prop("count"),count:VYe.length}),NYe(f,{update:d,draw:h,destroy:v,regl:e,gl:r,canvas:r.canvas,groups:c}),f;function f(m){m?d(m):m===null&&v(),h()}function h(m){if(typeof m=="number")return p(m);m&&!Array.isArray(m)&&(m=[m]),e._refresh(),c.forEach((g,w)=>{if(g){if(m&&(m[w]?g.draw=!0:g.draw=!1),!g.draw){g.draw=!0;return}p(w)}})}function p(m){typeof m=="number"&&(m=c[m]),m!=null&&m&&m.count&&m.color&&m.opacity&&m.positions&&m.positions.length>1&&(m.scaleRatio=[m.scale[0]*m.viewport.width,m.scale[1]*m.viewport.height],i(m),m.after&&m.after(m))}function d(m){if(!m)return;m.length!=null?typeof m[0]=="number"&&(m=[{positions:m}]):Array.isArray(m)||(m=[m]);let g=0,w=0;if(f.groups=c=m.map((S,x)=>{let T=c[x];if(S)typeof S=="function"?S={after:S}:typeof S[0]=="number"&&(S={positions:S});else return T;return S=Vdr(S,{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"}),T||(c[x]=T={id:x,scale:null,translate:null,scaleFract:null,translateFract:null,draw:!0},S=NYe({},u,S)),Udr(T,S,[{lineWidth:A=>+A*.5,capSize:A=>+A*.5,opacity:parseFloat,errors:A=>(A=UYe(A),w+=A.length,A),positions:(A,y)=>(A=UYe(A,"float64"),y.count=Math.floor(A.length/2),y.bounds=Odr(A,2),y.offset=g,g+=y.count,A)},{color:(A,y)=>{let E=y.count;if(A||(A="transparent"),!Array.isArray(A)||typeof A[0]=="number"){let C=A;A=Array(E);for(let k=0;k{let M=y.bounds;return A||(A=M),y.scale=[1/(A[2]-A[0]),1/(A[3]-A[1])],y.translate=[-A[0],-A[1]],y.scaleFract=hte(y.scale),y.translateFract=hte(y.translate),A},viewport:A=>{let y;return Array.isArray(A)?y={x:A[0],y:A[1],width:A[2]-A[0],height:A[3]-A[1]}:A?(y={x:A.x||A.left||0,y:A.y||A.top||0},A.right?y.width=A.right-y.x:y.width=A.w||A.width||0,A.bottom?y.height=A.bottom-y.y:y.height=A.h||A.height||0):y={x:0,y:0,width:r.drawingBufferWidth,height:r.drawingBufferHeight},y}}]),T}),g||w){let S=c.reduce((y,E,M)=>y+(E?E.count:0),0),x=new Float64Array(S*2),T=new Uint8Array(S*4),A=new Float32Array(S*4);c.forEach((y,E)=>{if(!y)return;let{positions:M,count:C,offset:k,color:D,errors:L}=y;C&&(T.set(D,k*4),A.set(L,k*4),x.set(M,k*2))});var _=Gdr(x);n(_);var b=hte(x,_);a(b),o(T),s(A)}}function v(){n.destroy(),a.destroy(),o.destroy(),s.destroy(),l.destroy()}}});var WYe=W((Iei,$Ye)=>{var jYe=/[\'\"]/;$Ye.exports=function(t){return t?(jYe.test(t.charAt(0))&&(t=t.substr(1)),jYe.test(t.charAt(t.length-1))&&(t=t.substr(0,t.length-1)),t):""}});var dte=W((Rei,jdr)=>{jdr.exports=["inherit","initial","unset"]});var pte=W((zei,$dr)=>{$dr.exports=["caption","icon","menu","message-box","small-caption","status-bar"]});var vte=W((Bei,Wdr)=>{Wdr.exports=["normal","bold","bolder","lighter","100","200","300","400","500","600","700","800","900"]});var gte=W((qei,Ydr)=>{Ydr.exports=["normal","italic","oblique"]});var mte=W((Oei,Xdr)=>{Xdr.exports=["normal","condensed","semi-condensed","extra-condensed","ultra-condensed","expanded","semi-expanded","extra-expanded","ultra-expanded"]});var KYe=W((Nei,ZYe)=>{"use strict";function YYe(e,t){if(typeof e!="string")return[e];var r=[e];typeof t=="string"||Array.isArray(t)?t={brackets:t}:t||(t={});var i=t.brackets?Array.isArray(t.brackets)?t.brackets:[t.brackets]:["{}","[]","()"],n=t.escape||"___",a=!!t.flat;i.forEach(function(l){var u=new RegExp(["\\",l[0],"[^\\",l[0],"\\",l[1],"]*\\",l[1]].join("")),c=[];function f(h,p,d){var v=r.push(h.slice(l[0].length,-l[1].length))-1;return c.push(v),n+v+n}r.forEach(function(h,p){for(var d,v=0;h!=d;)if(d=h,h=h.replace(u,f),v++>1e4)throw Error("References have circular dependency. Please, check them.");r[p]=h}),c=c.reverse(),r=r.map(function(h){return c.forEach(function(p){h=h.replace(new RegExp("(\\"+n+p+"\\"+n+")","g"),l[0]+"$1"+l[1])}),h})});var o=new RegExp("\\"+n+"([0-9]+)\\"+n);function s(l,u,c){for(var f=[],h,p=0;h=o.exec(l);){if(p++>1e4)throw Error("Circular references in parenthesis");f.push(l.slice(0,h.index)),f.push(s(u[h[1]],u)),l=l.slice(h.index+h[0].length)}return f.push(l),f}return a?r:s(r[0],r)}function XYe(e,t){if(t&&t.flat){var r=t&&t.escape||"___",i=e[0],n;if(!i)return"";for(var a=new RegExp("\\"+r+"([0-9]+)\\"+r),o=0;i!=n;){if(o++>1e4)throw Error("Circular references in "+e);n=i,i=i.replace(a,s)}return i}return e.reduce(function l(u,c){return Array.isArray(c)&&(c=c.reduce(l,"")),u+c},"");function s(l,u){if(e[u]==null)throw Error("Reference "+u+"is undefined");return e[u]}}function yte(e,t){return Array.isArray(e)?XYe(e,t):YYe(e,t)}yte.parse=YYe;yte.stringify=XYe;ZYe.exports=yte});var eXe=W((Uei,QYe)=>{"use strict";var JYe=KYe();QYe.exports=function(t,r,i){if(t==null)throw Error("First argument should be a string");if(r==null)throw Error("Separator should be a string or a RegExp");i?(typeof i=="string"||Array.isArray(i))&&(i={ignore:i}):i={},i.escape==null&&(i.escape=!0),i.ignore==null?i.ignore=["[]","()","{}","<>",'""',"''","``","\u201C\u201D","\xAB\xBB"]:(typeof i.ignore=="string"&&(i.ignore=[i.ignore]),i.ignore=i.ignore.map(function(f){return f.length===1&&(f=f+f),f}));var n=JYe.parse(t,{flat:!0,brackets:i.ignore}),a=n[0],o=a.split(r);if(i.escape){for(var s=[],l=0;l{Zdr.exports=["xx-small","x-small","small","medium","large","x-large","xx-large","larger","smaller"]});var xte=W((Gei,rXe)=>{"use strict";var Kdr=tXe();rXe.exports={isSize:function(t){return/^[\d\.]/.test(t)||t.indexOf("/")!==-1||Kdr.indexOf(t)!==-1}}});var oXe=W((Hei,aXe)=>{"use strict";var Jdr=WYe(),Qdr=dte(),epr=pte(),tpr=vte(),rpr=gte(),ipr=mte(),bte=eXe(),npr=xte().isSize;aXe.exports=nXe;var tk=nXe.cache={};function nXe(e){if(typeof e!="string")throw new Error("Font argument must be a string.");if(tk[e])return tk[e];if(e==="")throw new Error("Cannot parse an empty string.");if(epr.indexOf(e)!==-1)return tk[e]={system:e};for(var t={style:"normal",variant:"normal",weight:"normal",stretch:"normal",lineHeight:"normal",size:"1rem",family:["serif"]},r=bte(e,/\s+/),i;i=r.shift();){if(Qdr.indexOf(i)!==-1)return["style","variant","weight","stretch"].forEach(function(a){t[a]=i}),tk[e]=t;if(rpr.indexOf(i)!==-1){t.style=i;continue}if(i==="normal"||i==="small-caps"){t.variant=i;continue}if(ipr.indexOf(i)!==-1){t.stretch=i;continue}if(tpr.indexOf(i)!==-1){t.weight=i;continue}if(npr(i)){var n=bte(i,"/");if(t.size=n[0],n[1]!=null?t.lineHeight=iXe(n[1]):r[0]==="/"&&(r.shift(),t.lineHeight=iXe(r.shift())),!r.length)throw new Error("Missing required font-family.");return t.family=bte(r.join(" "),/\s*,\s*/).map(Jdr),tk[e]=t}throw new Error("Unknown or unsupported font token: "+i)}throw new Error("Missing required font-size.")}function iXe(e){var t=parseFloat(e);return t.toString()===e?t:e}});var wte=W((jei,sXe)=>{"use strict";var apr=X1(),opr=xte().isSize,spr=ik(dte()),lpr=ik(pte()),upr=ik(vte()),cpr=ik(gte()),fpr=ik(mte()),hpr={normal:1,"small-caps":1},dpr={serif:1,"sans-serif":1,monospace:1,cursive:1,fantasy:1,"system-ui":1},_te={style:"normal",variant:"normal",weight:"normal",stretch:"normal",size:"1rem",lineHeight:"normal",family:"serif"};sXe.exports=function(t){if(t=apr(t,{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"}),t.system)return t.system&&rk(t.system,lpr),t.system;if(rk(t.style,cpr),rk(t.variant,hpr),rk(t.weight,upr),rk(t.stretch,fpr),t.size==null&&(t.size=_te.size),typeof t.size=="number"&&(t.size+="px"),!opr)throw Error("Bad size value `"+t.size+"`");t.family||(t.family=_te.family),Array.isArray(t.family)&&(t.family.length||(t.family=[_te.family]),t.family=t.family.map(function(i){return dpr[i]?i:'"'+i+'"'}).join(", "));var r=[];return r.push(t.style),t.variant!==t.style&&r.push(t.variant),t.weight!==t.variant&&t.weight!==t.style&&r.push(t.weight),t.stretch!==t.weight&&t.stretch!==t.variant&&t.stretch!==t.style&&r.push(t.stretch),r.push(t.size+(t.lineHeight==null||t.lineHeight==="normal"||t.lineHeight+""=="1"?"":"/"+t.lineHeight)),r.push(t.family),r.filter(Boolean).join(" ")};function rk(e,t){if(e&&!t[e]&&!spr[e])throw Error("Unknown keyword `"+e+"`");return e}function ik(e){for(var t={},r=0;r{"use strict";lXe.exports={parse:oXe(),stringify:wte()}});var Mte=W((Tte,Ate)=>{(function(e,t){typeof Tte=="object"&&typeof Ate!="undefined"?Ate.exports=t():e.createREGL=t()})(Tte,(function(){"use strict";var e=function(Be,gt){for(var Mt=Object.keys(gt),sr=0;sr1&>===Mt&&(gt==='"'||gt==="'"))return['"'+o(Be.substr(1,Be.length-2))+'"'];var sr=/\[(false|true|null|\d+|'[^']*'|"[^"]*")\]/.exec(Be);if(sr)return s(Be.substr(0,sr.index)).concat(s(sr[1])).concat(s(Be.substr(sr.index+sr[0].length)));var gr=Be.split(".");if(gr.length===1)return['"'+o(Be)+'"'];for(var Tr=[],pr=0;pr65535)<<4,Be>>>=gt,Mt=(Be>255)<<3,Be>>>=Mt,gt|=Mt,Mt=(Be>15)<<2,Be>>>=Mt,gt|=Mt,Mt=(Be>3)<<1,Be>>>=Mt,gt|=Mt,gt|Be>>1}function F(){var Be=A(8,function(){return[]});function gt(Tr){var pr=P(Tr),qr=Be[R(pr)>>2];return qr.length>0?qr.pop():new ArrayBuffer(pr)}function Mt(Tr){Be[R(Tr.byteLength)>>2].push(Tr)}function sr(Tr,pr){var qr=null;switch(Tr){case y:qr=new Int8Array(gt(pr),0,pr);break;case E:qr=new Uint8Array(gt(pr),0,pr);break;case M:qr=new Int16Array(gt(2*pr),0,pr);break;case C:qr=new Uint16Array(gt(2*pr),0,pr);break;case k:qr=new Int32Array(gt(4*pr),0,pr);break;case D:qr=new Uint32Array(gt(4*pr),0,pr);break;case L:qr=new Float32Array(gt(4*pr),0,pr);break;default:return null}return qr.length!==pr?qr.subarray(0,pr):qr}function gr(Tr){Mt(Tr.buffer)}return{alloc:gt,free:Mt,allocType:sr,freeType:gr}}var I=F();I.zero=F();var B=3408,O=3410,$=3411,Y=3412,K=3413,j=3414,q=3415,Q=33901,U=33902,V=3379,X=3386,G=34921,H=36347,J=36348,te=35661,ue=35660,ge=34930,ke=36349,_e=34076,he=34024,oe=7936,Me=7937,ye=7938,ce=35724,ee=34047,ae=36063,xe=34852,re=3553,pe=34067,we=34069,Fe=33984,Ee=6408,Ce=5126,be=5121,Ie=36160,Oe=36053,Qe=36064,et=16384,bt=function(Be,gt){var Mt=1;gt.ext_texture_filter_anisotropic&&(Mt=Be.getParameter(ee));var sr=1,gr=1;gt.webgl_draw_buffers&&(sr=Be.getParameter(xe),gr=Be.getParameter(ae));var Tr=!!gt.oes_texture_float;if(Tr){var pr=Be.createTexture();Be.bindTexture(re,pr),Be.texImage2D(re,0,Ee,1,1,0,Ee,Ce,null);var qr=Be.createFramebuffer();if(Be.bindFramebuffer(Ie,qr),Be.framebufferTexture2D(Ie,Qe,re,pr,0),Be.bindTexture(re,null),Be.checkFramebufferStatus(Ie)!==Oe)Tr=!1;else{Be.viewport(0,0,1,1),Be.clearColor(1,0,0,1),Be.clear(et);var Kr=I.allocType(Ce,4);Be.readPixels(0,0,1,1,Ee,Ce,Kr),Be.getError()?Tr=!1:(Be.deleteFramebuffer(qr),Be.deleteTexture(pr),Tr=Kr[0]===1),I.freeType(Kr)}}var Jr=typeof navigator!="undefined"&&(/MSIE/.test(navigator.userAgent)||/Trident\//.test(navigator.appVersion)||/Edge/.test(navigator.userAgent)),Qr=!0;if(!Jr){var fn=Be.createTexture(),Ui=I.allocType(be,36);Be.activeTexture(Fe),Be.bindTexture(pe,fn),Be.texImage2D(we,0,Ee,3,3,0,Ee,be,Ui),I.freeType(Ui),Be.bindTexture(pe,null),Be.deleteTexture(fn),Qr=!Be.getError()}return{colorBits:[Be.getParameter(O),Be.getParameter($),Be.getParameter(Y),Be.getParameter(K)],depthBits:Be.getParameter(j),stencilBits:Be.getParameter(q),subpixelBits:Be.getParameter(B),extensions:Object.keys(gt).filter(function(yi){return!!gt[yi]}),maxAnisotropic:Mt,maxDrawbuffers:sr,maxColorAttachments:gr,pointSizeDims:Be.getParameter(Q),lineWidthDims:Be.getParameter(U),maxViewportDims:Be.getParameter(X),maxCombinedTextureUnits:Be.getParameter(te),maxCubeMapSize:Be.getParameter(_e),maxRenderbufferSize:Be.getParameter(he),maxTextureUnits:Be.getParameter(ge),maxTextureSize:Be.getParameter(V),maxAttributes:Be.getParameter(G),maxVertexUniforms:Be.getParameter(H),maxVertexTextureUnits:Be.getParameter(ue),maxVaryingVectors:Be.getParameter(J),maxFragmentUniforms:Be.getParameter(ke),glsl:Be.getParameter(ce),renderer:Be.getParameter(Me),vendor:Be.getParameter(oe),version:Be.getParameter(ye),readFloat:Tr,npotTextureCube:Qr}},ut=function(Be){return Be instanceof Uint8Array||Be instanceof Uint16Array||Be instanceof Uint32Array||Be instanceof Int8Array||Be instanceof Int16Array||Be instanceof Int32Array||Be instanceof Float32Array||Be instanceof Float64Array||Be instanceof Uint8ClampedArray};function vt(Be){return!!Be&&typeof Be=="object"&&Array.isArray(Be.shape)&&Array.isArray(Be.stride)&&typeof Be.offset=="number"&&Be.shape.length===Be.stride.length&&(Array.isArray(Be.data)||ut(Be.data))}var Xe=function(Be){return Object.keys(Be).map(function(gt){return Be[gt]})},mt={shape:Re,flatten:je};function _t(Be,gt,Mt){for(var sr=0;sr0){var mn;if(Array.isArray(Er[0])){bi=Je(Er);for(var Or=1,Rr=1;Rr0){if(typeof Or[0]=="number"){var ci=I.allocType(Ur.dtype,Or.length);Pr(ci,Or),bi(ci,zi),I.freeType(ci)}else if(Array.isArray(Or[0])||ut(Or[0])){mi=Je(Or);var di=xt(Or,mi,Ur.dtype);bi(di,zi),I.freeType(di)}}}else if(vt(Or)){mi=Or.shape;var Bi=Or.stride,yn=0,$n=0,Ti=0,$i=0;mi.length===1?(yn=mi[0],$n=1,Ti=Bi[0],$i=0):mi.length===2&&(yn=mi[0],$n=mi[1],Ti=Bi[0],$i=Bi[1]);var On=Array.isArray(Or.data)?Ur.dtype:ti(Or.data),Nn=I.allocType(On,yn*$n);Xi(Nn,Or.data,yn,$n,Ti,$i,Or.offset),bi(Nn,zi),I.freeType(Nn)}return Mi}return $r||Mi(er),Mi._reglType="buffer",Mi._buffer=Ur,Mi.subdata=mn,Mt.profile&&(Mi.stats=Ur.stats),Mi.destroy=function(){Ui(Ur)},Mi}function Lr(){Xe(Tr).forEach(function(er){er.buffer=Be.createBuffer(),Be.bindBuffer(er.type,er.buffer),Be.bufferData(er.type,er.persistentData||er.byteLength,er.usage)})}return Mt.profile&&(gt.getTotalBufferSize=function(){var er=0;return Object.keys(Tr).forEach(function(Er){er+=Tr[Er].stats.size}),er}),{create:yi,createStream:Kr,destroyStream:Jr,clear:function(){Xe(Tr).forEach(Ui),qr.forEach(Ui)},getBuffer:function(er){return er&&er._buffer instanceof pr?er._buffer:null},restore:Lr,_initBuffer:fn}}var vn=0,aa=0,va=1,gn=1,Hn=4,oa=4,vs={points:vn,point:aa,lines:va,line:gn,triangles:Hn,triangle:oa,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},bo=0,Os=1,go=4,La=5120,lo=5121,Ns=5122,Aa=5123,Ks=5124,wl=5125,Tu=34963,fl=35040,Le=35044;function ot(Be,gt,Mt,sr){var gr={},Tr=0,pr={uint8:lo,uint16:Aa};gt.oes_element_index_uint&&(pr.uint32=wl);function qr(Lr){this.id=Tr++,gr[this.id]=this,this.buffer=Lr,this.primType=go,this.vertCount=0,this.type=0}qr.prototype.bind=function(){this.buffer.bind()};var Kr=[];function Jr(Lr){var er=Kr.pop();return er||(er=new qr(Mt.create(null,Tu,!0,!1)._buffer)),fn(er,Lr,fl,-1,-1,0,0),er}function Qr(Lr){Kr.push(Lr)}function fn(Lr,er,Er,$r,ni,Ur,Mi){Lr.buffer.bind();var bi;if(er){var mn=Mi;!Mi&&(!ut(er)||vt(er)&&!ut(er.data))&&(mn=gt.oes_element_index_uint?wl:Aa),Mt._initBuffer(Lr.buffer,er,Er,mn,3)}else Be.bufferData(Tu,Ur,Er),Lr.buffer.dtype=bi||lo,Lr.buffer.usage=Er,Lr.buffer.dimension=3,Lr.buffer.byteLength=Ur;if(bi=Mi,!Mi){switch(Lr.buffer.dtype){case lo:case La:bi=lo;break;case Aa:case Ns:bi=Aa;break;case wl:case Ks:bi=wl;break;default:}Lr.buffer.dtype=bi}Lr.type=bi;var Or=ni;Or<0&&(Or=Lr.buffer.byteLength,bi===Aa?Or>>=1:bi===wl&&(Or>>=2)),Lr.vertCount=Or;var Rr=$r;if($r<0){Rr=go;var zi=Lr.buffer.dimension;zi===1&&(Rr=bo),zi===2&&(Rr=Os),zi===3&&(Rr=go)}Lr.primType=Rr}function Ui(Lr){sr.elementsCount--,delete gr[Lr.id],Lr.buffer.destroy(),Lr.buffer=null}function yi(Lr,er){var Er=Mt.create(null,Tu,!0),$r=new qr(Er._buffer);sr.elementsCount++;function ni(Ur){if(!Ur)Er(),$r.primType=go,$r.vertCount=0,$r.type=lo;else if(typeof Ur=="number")Er(Ur),$r.primType=go,$r.vertCount=Ur|0,$r.type=lo;else{var Mi=null,bi=Le,mn=-1,Or=-1,Rr=0,zi=0;Array.isArray(Ur)||ut(Ur)||vt(Ur)?Mi=Ur:("data"in Ur&&(Mi=Ur.data),"usage"in Ur&&(bi=st[Ur.usage]),"primitive"in Ur&&(mn=vs[Ur.primitive]),"count"in Ur&&(Or=Ur.count|0),"type"in Ur&&(zi=pr[Ur.type]),"length"in Ur?Rr=Ur.length|0:(Rr=Or,zi===Aa||zi===Ns?Rr*=2:(zi===wl||zi===Ks)&&(Rr*=4))),fn($r,Mi,bi,mn,Or,Rr,zi)}return ni}return ni(Lr),ni._reglType="elements",ni._elements=$r,ni.subdata=function(Ur,Mi){return Er.subdata(Ur,Mi),ni},ni.destroy=function(){Ui($r)},ni}return{create:yi,createStream:Jr,destroyStream:Qr,getElements:function(Lr){return typeof Lr=="function"&&Lr._elements instanceof qr?Lr._elements:null},clear:function(){Xe(gr).forEach(Ui)}}}var lt=new Float32Array(1),kt=new Uint32Array(lt.buffer),Qt=5123;function zt(Be){for(var gt=I.allocType(Qt,Be.length),Mt=0;Mt>>31<<15,Tr=(sr<<1>>>24)-127,pr=sr>>13&1023;if(Tr<-24)gt[Mt]=gr;else if(Tr<-14){var qr=-14-Tr;gt[Mt]=gr+(pr+1024>>qr)}else Tr>15?gt[Mt]=gr+31744:gt[Mt]=gr+(Tr+15<<10)+pr}return gt}function Ar(Be){return Array.isArray(Be)||ut(Be)}var Yt=34467,wr=3553,Zr=34067,ri=34069,Si=6408,sn=6406,jn=6407,bn=6409,ga=6410,Xn=32854,to=32855,uo=36194,ko=32819,Oo=32820,gs=33635,ns=34042,Co=6402,as=34041,No=35904,Go=35906,co=36193,zn=33776,xa=33777,ms=33778,Js=33779,Qs=35986,Vl=35987,el=34798,cu=35840,Au=35841,Mu=35842,mc=35843,Gl=36196,Xa=5121,Su=5123,Yu=5125,ks=5126,fu=10242,yh=10243,_o=10497,hu=33071,Jo=33648,du=10240,zv=10241,jc=9728,s0=9729,Hf=9984,xh=9985,jf=9986,l0=9987,Bv=33170,bh=4352,gp=4353,u0=4354,Q0=34046,ed=3317,qv=37440,Ov=37441,$c=37443,mp=37444,_h=33984,Xu=[Hf,jf,xh,l0],Cs=[0,bn,ga,jn,Si],Ho={};Ho[bn]=Ho[sn]=Ho[Co]=1,Ho[as]=Ho[ga]=2,Ho[jn]=Ho[No]=3,Ho[Si]=Ho[Go]=4;function Eu(Be){return"[object "+Be+"]"}var td=Eu("HTMLCanvasElement"),wh=Eu("OffscreenCanvas"),c0=Eu("CanvasRenderingContext2D"),Nv=Eu("ImageBitmap"),yg=Eu("HTMLImageElement"),ey=Eu("HTMLVideoElement"),zx=Object.keys(Ve).concat([td,wh,c0,Nv,yg,ey]),Th=[];Th[Xa]=1,Th[ks]=4,Th[co]=2,Th[Su]=2,Th[Yu]=4;var Us=[];Us[Xn]=2,Us[to]=2,Us[uo]=2,Us[as]=4,Us[zn]=.5,Us[xa]=.5,Us[ms]=1,Us[Js]=1,Us[Qs]=.5,Us[Vl]=1,Us[el]=1,Us[cu]=.5,Us[Au]=.25,Us[Mu]=.5,Us[mc]=.25,Us[Gl]=.5;function Uv(Be){return Array.isArray(Be)&&(Be.length===0||typeof Be[0]=="number")}function Vv(Be){if(!Array.isArray(Be))return!1;var gt=Be.length;return!(gt===0||!Ar(Be[0]))}function Ah(Be){return Object.prototype.toString.call(Be)}function xg(Be){return Ah(Be)===td}function rd(Be){return Ah(Be)===wh}function yp(Be){return Ah(Be)===c0}function gf(Be){return Ah(Be)===Nv}function Gv(Be){return Ah(Be)===yg}function xp(Be){return Ah(Be)===ey}function id(Be){if(!Be)return!1;var gt=Ah(Be);return zx.indexOf(gt)>=0?!0:Uv(Be)||Vv(Be)||vt(Be)}function bg(Be){return Ve[Object.prototype.toString.call(Be)]|0}function _g(Be,gt){var Mt=gt.length;switch(Be.type){case Xa:case Su:case Yu:case ks:var sr=I.allocType(Be.type,Mt);sr.set(gt),Be.data=sr;break;case co:Be.data=zt(gt);break;default:}}function ty(Be,gt){return I.allocType(Be.type===co?ks:Be.type,gt)}function $f(Be,gt){Be.type===co?(Be.data=zt(gt),I.freeType(gt)):Be.data=gt}function Hv(Be,gt,Mt,sr,gr,Tr){for(var pr=Be.width,qr=Be.height,Kr=Be.channels,Jr=pr*qr*Kr,Qr=ty(Be,Jr),fn=0,Ui=0;Ui=1;)qr+=pr*Kr*Kr,Kr/=2;return qr}else return pr*Mt*sr}function bp(Be,gt,Mt,sr,gr,Tr,pr){var qr={"don't care":bh,"dont care":bh,nice:u0,fast:gp},Kr={repeat:_o,clamp:hu,mirror:Jo},Jr={nearest:jc,linear:s0},Qr=e({mipmap:l0,"nearest mipmap nearest":Hf,"linear mipmap nearest":xh,"nearest mipmap linear":jf,"linear mipmap linear":l0},Jr),fn={none:0,browser:mp},Ui={uint8:Xa,rgba4:ko,rgb565:gs,"rgb5 a1":Oo},yi={alpha:sn,luminance:bn,"luminance alpha":ga,rgb:jn,rgba:Si,rgba4:Xn,"rgb5 a1":to,rgb565:uo},Lr={};gt.ext_srgb&&(yi.srgb=No,yi.srgba=Go),gt.oes_texture_float&&(Ui.float32=Ui.float=ks),gt.oes_texture_half_float&&(Ui.float16=Ui["half float"]=co),gt.webgl_depth_texture&&(e(yi,{depth:Co,"depth stencil":as}),e(Ui,{uint16:Su,uint32:Yu,"depth stencil":ns})),gt.webgl_compressed_texture_s3tc&&e(Lr,{"rgb s3tc dxt1":zn,"rgba s3tc dxt1":xa,"rgba s3tc dxt3":ms,"rgba s3tc dxt5":Js}),gt.webgl_compressed_texture_atc&&e(Lr,{"rgb atc":Qs,"rgba atc explicit alpha":Vl,"rgba atc interpolated alpha":el}),gt.webgl_compressed_texture_pvrtc&&e(Lr,{"rgb pvrtc 4bppv1":cu,"rgb pvrtc 2bppv1":Au,"rgba pvrtc 4bppv1":Mu,"rgba pvrtc 2bppv1":mc}),gt.webgl_compressed_texture_etc1&&(Lr["rgb etc1"]=Gl);var er=Array.prototype.slice.call(Be.getParameter(Yt));Object.keys(Lr).forEach(function(wt){var xr=Lr[wt];er.indexOf(xr)>=0&&(yi[wt]=xr)});var Er=Object.keys(yi);Mt.textureFormats=Er;var $r=[];Object.keys(yi).forEach(function(wt){var xr=yi[wt];$r[xr]=wt});var ni=[];Object.keys(Ui).forEach(function(wt){var xr=Ui[wt];ni[xr]=wt});var Ur=[];Object.keys(Jr).forEach(function(wt){var xr=Jr[wt];Ur[xr]=wt});var Mi=[];Object.keys(Qr).forEach(function(wt){var xr=Qr[wt];Mi[xr]=wt});var bi=[];Object.keys(Kr).forEach(function(wt){var xr=Kr[wt];bi[xr]=wt});var mn=Er.reduce(function(wt,xr){var br=yi[xr];return br===bn||br===sn||br===bn||br===ga||br===Co||br===as||gt.ext_srgb&&(br===No||br===Go)?wt[br]=br:br===to||xr.indexOf("rgba")>=0?wt[br]=Si:wt[br]=jn,wt},{});function Or(){this.internalformat=Si,this.format=Si,this.type=Xa,this.compressed=!1,this.premultiplyAlpha=!1,this.flipY=!1,this.unpackAlignment=1,this.colorSpace=mp,this.width=0,this.height=0,this.channels=0}function Rr(wt,xr){wt.internalformat=xr.internalformat,wt.format=xr.format,wt.type=xr.type,wt.compressed=xr.compressed,wt.premultiplyAlpha=xr.premultiplyAlpha,wt.flipY=xr.flipY,wt.unpackAlignment=xr.unpackAlignment,wt.colorSpace=xr.colorSpace,wt.width=xr.width,wt.height=xr.height,wt.channels=xr.channels}function zi(wt,xr){if(!(typeof xr!="object"||!xr)){if("premultiplyAlpha"in xr&&(wt.premultiplyAlpha=xr.premultiplyAlpha),"flipY"in xr&&(wt.flipY=xr.flipY),"alignment"in xr&&(wt.unpackAlignment=xr.alignment),"colorSpace"in xr&&(wt.colorSpace=fn[xr.colorSpace]),"type"in xr){var br=xr.type;wt.type=Ui[br]}var Qi=wt.width,Va=wt.height,us=wt.channels,Zi=!1;"shape"in xr?(Qi=xr.shape[0],Va=xr.shape[1],xr.shape.length===3&&(us=xr.shape[2],Zi=!0)):("radius"in xr&&(Qi=Va=xr.radius),"width"in xr&&(Qi=xr.width),"height"in xr&&(Va=xr.height),"channels"in xr&&(us=xr.channels,Zi=!0)),wt.width=Qi|0,wt.height=Va|0,wt.channels=us|0;var dt=!1;if("format"in xr){var St=xr.format,Rt=wt.internalformat=yi[St];wt.format=mn[Rt],St in Ui&&("type"in xr||(wt.type=Ui[St])),St in Lr&&(wt.compressed=!0),dt=!0}!Zi&&dt?wt.channels=Ho[wt.format]:Zi&&!dt&&wt.channels!==Cs[wt.format]&&(wt.format=wt.internalformat=Cs[wt.channels])}}function mi(wt){Be.pixelStorei(qv,wt.flipY),Be.pixelStorei(Ov,wt.premultiplyAlpha),Be.pixelStorei($c,wt.colorSpace),Be.pixelStorei(ed,wt.unpackAlignment)}function ci(){Or.call(this),this.xOffset=0,this.yOffset=0,this.data=null,this.needsFree=!1,this.element=null,this.needsCopy=!1}function di(wt,xr){var br=null;if(id(xr)?br=xr:xr&&(zi(wt,xr),"x"in xr&&(wt.xOffset=xr.x|0),"y"in xr&&(wt.yOffset=xr.y|0),id(xr.data)&&(br=xr.data)),xr.copy){var Qi=gr.viewportWidth,Va=gr.viewportHeight;wt.width=wt.width||Qi-wt.xOffset,wt.height=wt.height||Va-wt.yOffset,wt.needsCopy=!0}else if(!br)wt.width=wt.width||1,wt.height=wt.height||1,wt.channels=wt.channels||4;else if(ut(br))wt.channels=wt.channels||4,wt.data=br,!("type"in xr)&&wt.type===Xa&&(wt.type=bg(br));else if(Uv(br))wt.channels=wt.channels||4,_g(wt,br),wt.alignment=1,wt.needsFree=!0;else if(vt(br)){var us=br.data;!Array.isArray(us)&&wt.type===Xa&&(wt.type=bg(us));var Zi=br.shape,dt=br.stride,St,Rt,mr,Sr,ar,rr;Zi.length===3?(mr=Zi[2],rr=dt[2]):(mr=1,rr=1),St=Zi[0],Rt=Zi[1],Sr=dt[0],ar=dt[1],wt.alignment=1,wt.width=St,wt.height=Rt,wt.channels=mr,wt.format=wt.internalformat=Cs[mr],wt.needsFree=!0,Hv(wt,us,Sr,ar,rr,br.offset)}else if(xg(br)||rd(br)||yp(br))xg(br)||rd(br)?wt.element=br:wt.element=br.canvas,wt.width=wt.element.width,wt.height=wt.element.height,wt.channels=4;else if(gf(br))wt.element=br,wt.width=br.width,wt.height=br.height,wt.channels=4;else if(Gv(br))wt.element=br,wt.width=br.naturalWidth,wt.height=br.naturalHeight,wt.channels=4;else if(xp(br))wt.element=br,wt.width=br.videoWidth,wt.height=br.videoHeight,wt.channels=4;else if(Vv(br)){var jt=wt.width||br[0].length,Ft=wt.height||br.length,Ut=wt.channels;Ar(br[0][0])?Ut=Ut||br[0][0].length:Ut=Ut||1;for(var Et=mt.shape(br),lr=1,kr=0;kr>=Va,br.height>>=Va,di(br,Qi[Va]),wt.mipmask|=1<=0&&!("faces"in xr)&&(wt.genMipmaps=!0)}if("mag"in xr){var Qi=xr.mag;wt.magFilter=Jr[Qi]}var Va=wt.wrapS,us=wt.wrapT;if("wrap"in xr){var Zi=xr.wrap;typeof Zi=="string"?Va=us=Kr[Zi]:Array.isArray(Zi)&&(Va=Kr[Zi[0]],us=Kr[Zi[1]])}else{if("wrapS"in xr){var dt=xr.wrapS;Va=Kr[dt]}if("wrapT"in xr){var St=xr.wrapT;us=Kr[St]}}if(wt.wrapS=Va,wt.wrapT=us,"anisotropic"in xr){var Rt=xr.anisotropic;wt.anisotropic=xr.anisotropic}if("mipmap"in xr){var mr=!1;switch(typeof xr.mipmap){case"string":wt.mipmapHint=qr[xr.mipmap],wt.genMipmaps=!0,mr=!0;break;case"boolean":mr=wt.genMipmaps=xr.mipmap;break;case"object":wt.genMipmaps=!1,mr=!0;break;default:}mr&&!("min"in xr)&&(wt.minFilter=Hf)}}function eh(wt,xr){Be.texParameteri(xr,zv,wt.minFilter),Be.texParameteri(xr,du,wt.magFilter),Be.texParameteri(xr,fu,wt.wrapS),Be.texParameteri(xr,yh,wt.wrapT),gt.ext_texture_filter_anisotropic&&Be.texParameteri(xr,Q0,wt.anisotropic),wt.genMipmaps&&(Be.hint(Bv,wt.mipmapHint),Be.generateMipmap(xr))}var Lh=0,Fu={},Lu=Mt.maxTextureUnits,rc=Array(Lu).map(function(){return null});function fa(wt){Or.call(this),this.mipmask=0,this.internalformat=Si,this.id=Lh++,this.refCount=1,this.target=wt,this.texture=Be.createTexture(),this.unit=-1,this.bindCount=0,this.texInfo=new ls,pr.profile&&(this.stats={size:0})}function _c(wt){Be.activeTexture(_h),Be.bindTexture(wt.target,wt.texture)}function xs(){var wt=rc[0];wt?Be.bindTexture(wt.target,wt.texture):Be.bindTexture(wr,null)}function th(wt){var xr=wt.texture,br=wt.unit,Qi=wt.target;br>=0&&(Be.activeTexture(_h+br),Be.bindTexture(Qi,null),rc[br]=null),Be.deleteTexture(xr),wt.texture=null,wt.params=null,wt.pixels=null,wt.refCount=0,delete Fu[wt.id],Tr.textureCount--}e(fa.prototype,{bind:function(){var wt=this;wt.bindCount+=1;var xr=wt.unit;if(xr<0){for(var br=0;br0)continue;Qi.unit=-1}rc[br]=wt,xr=br;break}xr>=Lu,pr.profile&&Tr.maxTextureUnits>ar)-mr,rr.height=rr.height||(br.height>>ar)-Sr,_c(br),yn(rr,wr,mr,Sr,ar),xs(),$i(rr),Qi}function us(Zi,dt){var St=Zi|0,Rt=dt|0||St;if(St===br.width&&Rt===br.height)return Qi;Qi.width=br.width=St,Qi.height=br.height=Rt,_c(br);for(var mr=0;br.mipmask>>mr;++mr){var Sr=St>>mr,ar=Rt>>mr;if(!Sr||!ar)break;Be.texImage2D(wr,mr,br.format,Sr,ar,0,br.format,br.type,null)}return xs(),pr.profile&&(br.stats.size=Wf(br.internalformat,br.type,St,Rt,!1,!1)),Qi}return Qi(wt,xr),Qi.subimage=Va,Qi.resize=us,Qi._reglType="texture2d",Qi._texture=br,pr.profile&&(Qi.stats=br.stats),Qi.destroy=function(){br.decRef()},Qi}function Ih(wt,xr,br,Qi,Va,us){var Zi=new fa(Zr);Fu[Zi.id]=Zi,Tr.cubeCount++;var dt=new Array(6);function St(Sr,ar,rr,jt,Ft,Ut){var Et,lr=Zi.texInfo;for(ls.call(lr),Et=0;Et<6;++Et)dt[Et]=za();if(typeof Sr=="number"||!Sr){var kr=Sr|0||1;for(Et=0;Et<6;++Et)Nn(dt[Et],kr,kr)}else if(typeof Sr=="object")if(ar)Ma(dt[0],Sr),Ma(dt[1],ar),Ma(dt[2],rr),Ma(dt[3],jt),Ma(dt[4],Ft),Ma(dt[5],Ut);else if(_f(lr,Sr),zi(Zi,Sr),"faces"in Sr){var Yr=Sr.faces;for(Et=0;Et<6;++Et)Rr(dt[Et],Zi),Ma(dt[Et],Yr[Et])}else for(Et=0;Et<6;++Et)Ma(dt[Et],Sr);for(Rr(Zi,dt[0]),lr.genMipmaps?Zi.mipmask=(dt[0].width<<1)-1:Zi.mipmask=dt[0].mipmask,Zi.internalformat=dt[0].internalformat,St.width=dt[0].width,St.height=dt[0].height,_c(Zi),Et=0;Et<6;++Et)Sl(dt[Et],ri+Et);for(eh(lr,Zr),xs(),pr.profile&&(Zi.stats.size=Wf(Zi.internalformat,Zi.type,St.width,St.height,lr.genMipmaps,!0)),St.format=$r[Zi.internalformat],St.type=ni[Zi.type],St.mag=Ur[lr.magFilter],St.min=Mi[lr.minFilter],St.wrapS=bi[lr.wrapS],St.wrapT=bi[lr.wrapT],Et=0;Et<6;++Et)Fh(dt[Et]);return St}function Rt(Sr,ar,rr,jt,Ft){var Ut=rr|0,Et=jt|0,lr=Ft|0,kr=Ti();return Rr(kr,Zi),kr.width=0,kr.height=0,di(kr,ar),kr.width=kr.width||(Zi.width>>lr)-Ut,kr.height=kr.height||(Zi.height>>lr)-Et,_c(Zi),yn(kr,ri+Sr,Ut,Et,lr),xs(),$i(kr),St}function mr(Sr){var ar=Sr|0;if(ar!==Zi.width){St.width=Zi.width=ar,St.height=Zi.height=ar,_c(Zi);for(var rr=0;rr<6;++rr)for(var jt=0;Zi.mipmask>>jt;++jt)Be.texImage2D(ri+rr,jt,Zi.format,ar>>jt,ar>>jt,0,Zi.format,Zi.type,null);return xs(),pr.profile&&(Zi.stats.size=Wf(Zi.internalformat,Zi.type,St.width,St.height,!1,!0)),St}}return St(wt,xr,br,Qi,Va,us),St.subimage=Rt,St.resize=mr,St._reglType="textureCube",St._texture=Zi,pr.profile&&(St.stats=Zi.stats),St.destroy=function(){Zi.decRef()},St}function ea(){for(var wt=0;wt>Qi,br.height>>Qi,0,br.internalformat,br.type,null);else for(var Va=0;Va<6;++Va)Be.texImage2D(ri+Va,Qi,br.internalformat,br.width>>Qi,br.height>>Qi,0,br.internalformat,br.type,null);eh(br.texInfo,br.target)})}function Vs(){for(var wt=0;wt=0?Fh=!0:Kr.indexOf(ls)>=0&&(Fh=!1))),("depthTexture"in fa||"depthStencilTexture"in fa)&&(rc=!!(fa.depthTexture||fa.depthStencilTexture)),"depth"in fa&&(typeof fa.depth=="boolean"?Sl=fa.depth:(Lh=fa.depth,tc=!1)),"stencil"in fa&&(typeof fa.stencil=="boolean"?tc=fa.stencil:(Fu=fa.stencil,Sl=!1)),"depthStencil"in fa&&(typeof fa.depthStencil=="boolean"?Sl=tc=fa.depthStencil:(Lu=fa.depthStencil,Sl=!1,tc=!1))}var xs=null,th=null,Ph=null,Ih=null;if(Array.isArray(za))xs=za.map(Lr);else if(za)xs=[Lr(za)];else for(xs=new Array(eh),On=0;On0&&($i.depth=di[0].depth,$i.stencil=di[0].stencil,$i.depthStencil=di[0].depthStencil),di[Ti]?di[Ti]($i):di[Ti]=Rr($i)}return e(Bi,{width:On,height:On,color:ls})}function yn($n){var Ti,$i=$n|0;if($i===Bi.width)return Bi;var On=Bi.color;for(Ti=0;Ti=On.byteLength?Nn.subdata(On):(Nn.destroy(),Rr.buffers[$n]=null)),Rr.buffers[$n]||(Nn=Rr.buffers[$n]=gr.create(Ti,Mp,!1,!0)),$i.buffer=gr.getBuffer(Nn),$i.size=$i.buffer.dimension|0,$i.normalized=!1,$i.type=$i.buffer.dtype,$i.offset=0,$i.stride=0,$i.divisor=0,$i.state=1,Bi[$n]=1}else gr.getBuffer(Ti)?($i.buffer=gr.getBuffer(Ti),$i.size=$i.buffer.dimension|0,$i.normalized=!1,$i.type=$i.buffer.dtype,$i.offset=0,$i.stride=0,$i.divisor=0,$i.state=1):gr.getBuffer(Ti.buffer)?($i.buffer=gr.getBuffer(Ti.buffer),$i.size=(+Ti.size||$i.buffer.dimension)|0,$i.normalized=!!Ti.normalized||!1,"type"in Ti?$i.type=Cr[Ti.type]:$i.type=$i.buffer.dtype,$i.offset=(Ti.offset||0)|0,$i.stride=(Ti.stride||0)|0,$i.divisor=(Ti.divisor||0)|0,$i.state=1):"x"in Ti&&($i.x=+Ti.x||0,$i.y=+Ti.y||0,$i.z=+Ti.z||0,$i.w=+Ti.w||0,$i.state=2)}for(var Ma=0;Ma1)for(var mi=0;mier&&(er=Er.stats.uniformsCount)}),er},Mt.getMaxAttributesCount=function(){var er=0;return Qr.forEach(function(Er){Er.stats.attributesCount>er&&(er=Er.stats.attributesCount)}),er});function Lr(){gr={},Tr={};for(var er=0;er16&&(Mt=ir(Mt,Be.length*8));for(var sr=Array(16),gr=Array(16),Tr=0;Tr<16;Tr++)sr[Tr]=Mt[Tr]^909522486,gr[Tr]=Mt[Tr]^1549556828;var pr=ir(sr.concat(Lp(gt)),512+gt.length*8);return Te(ir(gr.concat(pr),768))}function Yc(Be){for(var gt=ly?"0123456789ABCDEF":"0123456789abcdef",Mt="",sr,gr=0;gr>>4&15)+gt.charAt(sr&15);return Mt}function Dp(Be){for(var gt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Mt="",sr=Be.length,gr=0;grBe.length*8?Mt+=uy:Mt+=gt.charAt(Tr>>>6*(3-pr)&63);return Mt}function kg(Be,gt){var Mt=gt.length,sr=Array(),gr,Tr,pr,qr,Kr=Array(Math.ceil(Be.length/2));for(gr=0;gr0;){for(qr=Array(),pr=0,gr=0;gr0||Tr>0)&&(qr[qr.length]=Tr);sr[sr.length]=pr,Kr=qr}var Jr="";for(gr=sr.length-1;gr>=0;gr--)Jr+=gt.charAt(sr[gr]);var Qr=Math.ceil(Be.length*8/(Math.log(gt.length)/Math.log(2)));for(gr=Jr.length;gr>>6&31,128|sr&63):sr<=65535?gt+=String.fromCharCode(224|sr>>>12&15,128|sr>>>6&63,128|sr&63):sr<=2097151&&(gt+=String.fromCharCode(240|sr>>>18&7,128|sr>>>12&63,128|sr>>>6&63,128|sr&63));return gt}function Lp(Be){for(var gt=Array(Be.length>>2),Mt=0;Mt>5]|=(Be.charCodeAt(Mt/8)&255)<<24-Mt%32;return gt}function Te(Be){for(var gt="",Mt=0;Mt>5]>>>24-Mt%32&255);return gt}function qe(Be,gt){return Be>>>gt|Be<<32-gt}function rt(Be,gt){return Be>>>gt}function Ye(Be,gt,Mt){return Be>^~Be&Mt}function At(Be,gt,Mt){return Be>^Be&Mt^gt&Mt}function Ht(Be){return qe(Be,2)^qe(Be,13)^qe(Be,22)}function Jt(Be){return qe(Be,6)^qe(Be,11)^qe(Be,25)}function fr(Be){return qe(Be,7)^qe(Be,18)^rt(Be,3)}function yr(Be){return qe(Be,17)^qe(Be,19)^rt(Be,10)}var Ir=new Array(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);function ir(Be,gt){var Mt=new Array(1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225),sr=new Array(64),gr,Tr,pr,qr,Kr,Jr,Qr,fn,Ui,yi,Lr,er;for(Be[gt>>5]|=128<<24-gt%32,Be[(gt+64>>9<<4)+15]=gt,Ui=0;Ui>16)+(gt>>16)+(Mt>>16);return sr<<16|Mt&65535}function vr(Be){return Array.prototype.slice.call(Be)}function Fr(Be){return vr(Be).join("")}function jr(Be){var gt=Be&&Be.cache,Mt=0,sr=[],gr=[],Tr=[];function pr(Lr,er){var Er=er&&er.stable;if(!Er){for(var $r=0;$r0&&(Lr.push(ni,"="),Lr.push.apply(Lr,vr(arguments)),Lr.push(";")),ni}return e(er,{def:$r,toString:function(){return Fr([Er.length>0?"var "+Er.join(",")+";":"",Fr(Lr)])}})}function Kr(){var Lr=qr(),er=qr(),Er=Lr.toString,$r=er.toString;function ni(Ur,Mi){er(Ur,Mi,"=",Lr.def(Ur,Mi),";")}return e(function(){Lr.apply(Lr,vr(arguments))},{def:Lr.def,entry:Lr,exit:er,save:ni,set:function(Ur,Mi,bi){ni(Ur,Mi),Lr(Ur,Mi,"=",bi,";")},toString:function(){return Er()+$r()}})}function Jr(){var Lr=Fr(arguments),er=Kr(),Er=Kr(),$r=er.toString,ni=Er.toString;return e(er,{then:function(){return er.apply(er,vr(arguments)),this},else:function(){return Er.apply(Er,vr(arguments)),this},toString:function(){var Ur=ni();return Ur&&(Ur="else{"+Ur+"}"),Fr(["if(",Lr,"){",$r(),"}",Ur])}})}var Qr=qr(),fn={};function Ui(Lr,er){var Er=[];function $r(){var mn="a"+Er.length;return Er.push(mn),mn}er=er||0;for(var ni=0;ni[g.viewport.x,g.viewport.y,m.viewportWidth,m.viewportHeight]},attributes:{color:{buffer:o,offset:(m,g)=>g.offset*4,divisor:1},position:{buffer:n,offset:(m,g)=>g.offset*8,divisor:1},positionFract:{buffer:a,offset:(m,g)=>g.offset*8,divisor:1},error:{buffer:s,offset:(m,g)=>g.offset*16,divisor:1},direction:{buffer:l,stride:24,offset:0},lineOffset:{buffer:l,stride:24,offset:8},capOffset:{buffer:l,stride:24,offset:16}},primitive:"triangles",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:!1},scissor:{enable:!0,box:e.prop("viewport")},viewport:e.prop("viewport"),stencil:!1,instances:e.prop("count"),count:ZYe.length}),YYe(f,{update:d,draw:h,destroy:v,regl:e,gl:r,canvas:r.canvas,groups:c}),f;function f(m){m?d(m):m===null&&v(),h()}function h(m){if(typeof m=="number")return p(m);m&&!Array.isArray(m)&&(m=[m]),e._refresh(),c.forEach((g,w)=>{if(g){if(m&&(m[w]?g.draw=!0:g.draw=!1),!g.draw){g.draw=!0;return}p(w)}})}function p(m){typeof m=="number"&&(m=c[m]),m!=null&&m&&m.count&&m.color&&m.opacity&&m.positions&&m.positions.length>1&&(m.scaleRatio=[m.scale[0]*m.viewport.width,m.scale[1]*m.viewport.height],i(m),m.after&&m.after(m))}function d(m){if(!m)return;m.length!=null?typeof m[0]=="number"&&(m=[{positions:m}]):Array.isArray(m)||(m=[m]);let g=0,w=0;if(f.groups=c=m.map((S,x)=>{let A=c[x];if(S)typeof S=="function"?S={after:S}:typeof S[0]=="number"&&(S={positions:S});else return A;return S=Jdr(S,{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"}),A||(c[x]=A={id:x,scale:null,translate:null,scaleFract:null,translateFract:null,draw:!0},S=YYe({},u,S)),Kdr(A,S,[{lineWidth:T=>+T*.5,capSize:T=>+T*.5,opacity:parseFloat,errors:T=>(T=XYe(T),w+=T.length,T),positions:(T,y)=>(T=XYe(T,"float64"),y.count=Math.floor(T.length/2),y.bounds=Xdr(T,2),y.offset=g,g+=y.count,T)},{color:(T,y)=>{let E=y.count;if(T||(T="transparent"),!Array.isArray(T)||typeof T[0]=="number"){let C=T;T=Array(E);for(let k=0;k{let M=y.bounds;return T||(T=M),y.scale=[1/(T[2]-T[0]),1/(T[3]-T[1])],y.translate=[-T[0],-T[1]],y.scaleFract=bte(y.scale),y.translateFract=bte(y.translate),T},viewport:T=>{let y;return Array.isArray(T)?y={x:T[0],y:T[1],width:T[2]-T[0],height:T[3]-T[1]}:T?(y={x:T.x||T.left||0,y:T.y||T.top||0},T.right?y.width=T.right-y.x:y.width=T.w||T.width||0,T.bottom?y.height=T.bottom-y.y:y.height=T.h||T.height||0):y={x:0,y:0,width:r.drawingBufferWidth,height:r.drawingBufferHeight},y}}]),A}),g||w){let S=c.reduce((y,E,M)=>y+(E?E.count:0),0),x=new Float64Array(S*2),A=new Uint8Array(S*4),T=new Float32Array(S*4);c.forEach((y,E)=>{if(!y)return;let{positions:M,count:C,offset:k,color:D,errors:F}=y;C&&(A.set(D,k*4),T.set(F,k*4),x.set(M,k*2))});var _=Qdr(x);n(_);var b=bte(x,_);a(b),o(A),s(T)}}function v(){n.destroy(),a.destroy(),o.destroy(),s.destroy(),l.destroy()}}});var tXe=W((Yei,eXe)=>{var QYe=/[\'\"]/;eXe.exports=function(t){return t?(QYe.test(t.charAt(0))&&(t=t.substr(1)),QYe.test(t.charAt(t.length-1))&&(t=t.substr(0,t.length-1)),t):""}});var _te=W((Xei,tpr)=>{tpr.exports=["inherit","initial","unset"]});var wte=W((Zei,rpr)=>{rpr.exports=["caption","icon","menu","message-box","small-caption","status-bar"]});var Tte=W((Kei,ipr)=>{ipr.exports=["normal","bold","bolder","lighter","100","200","300","400","500","600","700","800","900"]});var Ate=W((Jei,npr)=>{npr.exports=["normal","italic","oblique"]});var Mte=W((Qei,apr)=>{apr.exports=["normal","condensed","semi-condensed","extra-condensed","ultra-condensed","expanded","semi-expanded","extra-expanded","ultra-expanded"]});var aXe=W((eti,nXe)=>{"use strict";function rXe(e,t){if(typeof e!="string")return[e];var r=[e];typeof t=="string"||Array.isArray(t)?t={brackets:t}:t||(t={});var i=t.brackets?Array.isArray(t.brackets)?t.brackets:[t.brackets]:["{}","[]","()"],n=t.escape||"___",a=!!t.flat;i.forEach(function(l){var u=new RegExp(["\\",l[0],"[^\\",l[0],"\\",l[1],"]*\\",l[1]].join("")),c=[];function f(h,p,d){var v=r.push(h.slice(l[0].length,-l[1].length))-1;return c.push(v),n+v+n}r.forEach(function(h,p){for(var d,v=0;h!=d;)if(d=h,h=h.replace(u,f),v++>1e4)throw Error("References have circular dependency. Please, check them.");r[p]=h}),c=c.reverse(),r=r.map(function(h){return c.forEach(function(p){h=h.replace(new RegExp("(\\"+n+p+"\\"+n+")","g"),l[0]+"$1"+l[1])}),h})});var o=new RegExp("\\"+n+"([0-9]+)\\"+n);function s(l,u,c){for(var f=[],h,p=0;h=o.exec(l);){if(p++>1e4)throw Error("Circular references in parenthesis");f.push(l.slice(0,h.index)),f.push(s(u[h[1]],u)),l=l.slice(h.index+h[0].length)}return f.push(l),f}return a?r:s(r[0],r)}function iXe(e,t){if(t&&t.flat){var r=t&&t.escape||"___",i=e[0],n;if(!i)return"";for(var a=new RegExp("\\"+r+"([0-9]+)\\"+r),o=0;i!=n;){if(o++>1e4)throw Error("Circular references in "+e);n=i,i=i.replace(a,s)}return i}return e.reduce(function l(u,c){return Array.isArray(c)&&(c=c.reduce(l,"")),u+c},"");function s(l,u){if(e[u]==null)throw Error("Reference "+u+"is undefined");return e[u]}}function Ste(e,t){return Array.isArray(e)?iXe(e,t):rXe(e,t)}Ste.parse=rXe;Ste.stringify=iXe;nXe.exports=Ste});var lXe=W((tti,sXe)=>{"use strict";var oXe=aXe();sXe.exports=function(t,r,i){if(t==null)throw Error("First argument should be a string");if(r==null)throw Error("Separator should be a string or a RegExp");i?(typeof i=="string"||Array.isArray(i))&&(i={ignore:i}):i={},i.escape==null&&(i.escape=!0),i.ignore==null?i.ignore=["[]","()","{}","<>",'""',"''","``","\u201C\u201D","\xAB\xBB"]:(typeof i.ignore=="string"&&(i.ignore=[i.ignore]),i.ignore=i.ignore.map(function(f){return f.length===1&&(f=f+f),f}));var n=oXe.parse(t,{flat:!0,brackets:i.ignore}),a=n[0],o=a.split(r);if(i.escape){for(var s=[],l=0;l{opr.exports=["xx-small","x-small","small","medium","large","x-large","xx-large","larger","smaller"]});var Ete=W((iti,cXe)=>{"use strict";var spr=uXe();cXe.exports={isSize:function(t){return/^[\d\.]/.test(t)||t.indexOf("/")!==-1||spr.indexOf(t)!==-1}}});var pXe=W((nti,dXe)=>{"use strict";var lpr=tXe(),upr=_te(),cpr=wte(),fpr=Tte(),hpr=Ate(),dpr=Mte(),kte=lXe(),ppr=Ete().isSize;dXe.exports=hXe;var ik=hXe.cache={};function hXe(e){if(typeof e!="string")throw new Error("Font argument must be a string.");if(ik[e])return ik[e];if(e==="")throw new Error("Cannot parse an empty string.");if(cpr.indexOf(e)!==-1)return ik[e]={system:e};for(var t={style:"normal",variant:"normal",weight:"normal",stretch:"normal",lineHeight:"normal",size:"1rem",family:["serif"]},r=kte(e,/\s+/),i;i=r.shift();){if(upr.indexOf(i)!==-1)return["style","variant","weight","stretch"].forEach(function(a){t[a]=i}),ik[e]=t;if(hpr.indexOf(i)!==-1){t.style=i;continue}if(i==="normal"||i==="small-caps"){t.variant=i;continue}if(dpr.indexOf(i)!==-1){t.stretch=i;continue}if(fpr.indexOf(i)!==-1){t.weight=i;continue}if(ppr(i)){var n=kte(i,"/");if(t.size=n[0],n[1]!=null?t.lineHeight=fXe(n[1]):r[0]==="/"&&(r.shift(),t.lineHeight=fXe(r.shift())),!r.length)throw new Error("Missing required font-family.");return t.family=kte(r.join(" "),/\s*,\s*/).map(lpr),ik[e]=t}throw new Error("Unknown or unsupported font token: "+i)}throw new Error("Missing required font-size.")}function fXe(e){var t=parseFloat(e);return t.toString()===e?t:e}});var Dte=W((ati,vXe)=>{"use strict";var vpr=K1(),gpr=Ete().isSize,mpr=ak(_te()),ypr=ak(wte()),xpr=ak(Tte()),bpr=ak(Ate()),_pr=ak(Mte()),wpr={normal:1,"small-caps":1},Tpr={serif:1,"sans-serif":1,monospace:1,cursive:1,fantasy:1,"system-ui":1},Cte={style:"normal",variant:"normal",weight:"normal",stretch:"normal",size:"1rem",lineHeight:"normal",family:"serif"};vXe.exports=function(t){if(t=vpr(t,{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"}),t.system)return t.system&&nk(t.system,ypr),t.system;if(nk(t.style,bpr),nk(t.variant,wpr),nk(t.weight,xpr),nk(t.stretch,_pr),t.size==null&&(t.size=Cte.size),typeof t.size=="number"&&(t.size+="px"),!gpr)throw Error("Bad size value `"+t.size+"`");t.family||(t.family=Cte.family),Array.isArray(t.family)&&(t.family.length||(t.family=[Cte.family]),t.family=t.family.map(function(i){return Tpr[i]?i:'"'+i+'"'}).join(", "));var r=[];return r.push(t.style),t.variant!==t.style&&r.push(t.variant),t.weight!==t.variant&&t.weight!==t.style&&r.push(t.weight),t.stretch!==t.weight&&t.stretch!==t.variant&&t.stretch!==t.style&&r.push(t.stretch),r.push(t.size+(t.lineHeight==null||t.lineHeight==="normal"||t.lineHeight+""=="1"?"":"/"+t.lineHeight)),r.push(t.family),r.filter(Boolean).join(" ")};function nk(e,t){if(e&&!t[e]&&!mpr[e])throw Error("Unknown keyword `"+e+"`");return e}function ak(e){for(var t={},r=0;r{"use strict";gXe.exports={parse:pXe(),stringify:Dte()}});var Pte=W((Fte,Lte)=>{(function(e,t){typeof Fte=="object"&&typeof Lte!="undefined"?Lte.exports=t():e.createREGL=t()})(Fte,(function(){"use strict";var e=function(Be,yt){for(var At=Object.keys(yt),sr=0;sr1&&yt===At&&(yt==='"'||yt==="'"))return['"'+o(Be.substr(1,Be.length-2))+'"'];var sr=/\[(false|true|null|\d+|'[^']*'|"[^"]*")\]/.exec(Be);if(sr)return s(Be.substr(0,sr.index)).concat(s(sr[1])).concat(s(Be.substr(sr.index+sr[0].length)));var gr=Be.split(".");if(gr.length===1)return['"'+o(Be)+'"'];for(var Tr=[],pr=0;pr65535)<<4,Be>>>=yt,At=(Be>255)<<3,Be>>>=At,yt|=At,At=(Be>15)<<2,Be>>>=At,yt|=At,At=(Be>3)<<1,Be>>>=At,yt|=At,yt|Be>>1}function L(){var Be=T(8,function(){return[]});function yt(Tr){var pr=P(Tr),Or=Be[R(pr)>>2];return Or.length>0?Or.pop():new ArrayBuffer(pr)}function At(Tr){Be[R(Tr.byteLength)>>2].push(Tr)}function sr(Tr,pr){var Or=null;switch(Tr){case y:Or=new Int8Array(yt(pr),0,pr);break;case E:Or=new Uint8Array(yt(pr),0,pr);break;case M:Or=new Int16Array(yt(2*pr),0,pr);break;case C:Or=new Uint16Array(yt(2*pr),0,pr);break;case k:Or=new Int32Array(yt(4*pr),0,pr);break;case D:Or=new Uint32Array(yt(4*pr),0,pr);break;case F:Or=new Float32Array(yt(4*pr),0,pr);break;default:return null}return Or.length!==pr?Or.subarray(0,pr):Or}function gr(Tr){At(Tr.buffer)}return{alloc:yt,free:At,allocType:sr,freeType:gr}}var I=L();I.zero=L();var B=3408,O=3410,$=3411,X=3412,K=3413,G=3414,q=3415,J=33901,N=33902,V=3379,Y=3386,H=34921,j=36347,Q=36348,te=35661,ue=35660,ge=34930,Ee=36349,xe=34076,ce=34024,oe=7936,Se=7937,be=7938,fe=35724,ee=34047,ae=36063,_e=34852,re=3553,pe=34067,Te=34069,Ce=33984,ze=6408,we=5126,me=5121,Le=36160,Ne=36053,Je=36064,rt=16384,mt=function(Be,yt){var At=1;yt.ext_texture_filter_anisotropic&&(At=Be.getParameter(ee));var sr=1,gr=1;yt.webgl_draw_buffers&&(sr=Be.getParameter(_e),gr=Be.getParameter(ae));var Tr=!!yt.oes_texture_float;if(Tr){var pr=Be.createTexture();Be.bindTexture(re,pr),Be.texImage2D(re,0,ze,1,1,0,ze,we,null);var Or=Be.createFramebuffer();if(Be.bindFramebuffer(Le,Or),Be.framebufferTexture2D(Le,Je,re,pr,0),Be.bindTexture(re,null),Be.checkFramebufferStatus(Le)!==Ne)Tr=!1;else{Be.viewport(0,0,1,1),Be.clearColor(1,0,0,1),Be.clear(rt);var Jr=I.allocType(we,4);Be.readPixels(0,0,1,1,ze,we,Jr),Be.getError()?Tr=!1:(Be.deleteFramebuffer(Or),Be.deleteTexture(pr),Tr=Jr[0]===1),I.freeType(Jr)}}var Qr=typeof navigator!="undefined"&&(/MSIE/.test(navigator.userAgent)||/Trident\//.test(navigator.appVersion)||/Edge/.test(navigator.userAgent)),ei=!0;if(!Qr){var vn=Be.createTexture(),Vi=I.allocType(me,36);Be.activeTexture(Ce),Be.bindTexture(pe,vn),Be.texImage2D(Te,0,ze,3,3,0,ze,me,Vi),I.freeType(Vi),Be.bindTexture(pe,null),Be.deleteTexture(vn),ei=!Be.getError()}return{colorBits:[Be.getParameter(O),Be.getParameter($),Be.getParameter(X),Be.getParameter(K)],depthBits:Be.getParameter(G),stencilBits:Be.getParameter(q),subpixelBits:Be.getParameter(B),extensions:Object.keys(yt).filter(function(yi){return!!yt[yi]}),maxAnisotropic:At,maxDrawbuffers:sr,maxColorAttachments:gr,pointSizeDims:Be.getParameter(J),lineWidthDims:Be.getParameter(N),maxViewportDims:Be.getParameter(Y),maxCombinedTextureUnits:Be.getParameter(te),maxCubeMapSize:Be.getParameter(xe),maxRenderbufferSize:Be.getParameter(ce),maxTextureUnits:Be.getParameter(ge),maxTextureSize:Be.getParameter(V),maxAttributes:Be.getParameter(H),maxVertexUniforms:Be.getParameter(j),maxVertexTextureUnits:Be.getParameter(ue),maxVaryingVectors:Be.getParameter(Q),maxFragmentUniforms:Be.getParameter(Ee),glsl:Be.getParameter(fe),renderer:Be.getParameter(Se),vendor:Be.getParameter(oe),version:Be.getParameter(be),readFloat:Tr,npotTextureCube:ei}},dt=function(Be){return Be instanceof Uint8Array||Be instanceof Uint16Array||Be instanceof Uint32Array||Be instanceof Int8Array||Be instanceof Int16Array||Be instanceof Int32Array||Be instanceof Float32Array||Be instanceof Float64Array||Be instanceof Uint8ClampedArray};function St(Be){return!!Be&&typeof Be=="object"&&Array.isArray(Be.shape)&&Array.isArray(Be.stride)&&typeof Be.offset=="number"&&Be.shape.length===Be.stride.length&&(Array.isArray(Be.data)||dt(Be.data))}var Ke=function(Be){return Object.keys(Be).map(function(yt){return Be[yt]})},bt={shape:Ie,flatten:$e};function pt(Be,yt,At){for(var sr=0;sr0){var xn;if(Array.isArray(Er[0])){bi=ht(Er);for(var Nr=1,zr=1;zr0){if(typeof Nr[0]=="number"){var ci=I.allocType(Vr.dtype,Nr.length);Fr(ci,Nr),bi(ci,Bi),I.freeType(ci)}else if(Array.isArray(Nr[0])||dt(Nr[0])){mi=ht(Nr);var hi=gt(Nr,mi,Vr.dtype);bi(hi,Bi),I.freeType(hi)}}}else if(St(Nr)){mi=Nr.shape;var qi=Nr.stride,bn=0,Wn=0,Ti=0,Wi=0;mi.length===1?(bn=mi[0],Wn=1,Ti=qi[0],Wi=0):mi.length===2&&(bn=mi[0],Wn=mi[1],Ti=qi[0],Wi=qi[1]);var Un=Array.isArray(Nr.data)?Vr.dtype:ii(Nr.data),Vn=I.allocType(Un,bn*Wn);Ii(Vn,Nr.data,bn,Wn,Ti,Wi,Nr.offset),bi(Vn,Bi),I.freeType(Vn)}return Mi}return Wr||Mi(tr),Mi._reglType="buffer",Mi._buffer=Vr,Mi.subdata=xn,At.profile&&(Mi.stats=Vr.stats),Mi.destroy=function(){Vi(Vr)},Mi}function Ir(){Ke(Tr).forEach(function(tr){tr.buffer=Be.createBuffer(),Be.bindBuffer(tr.type,tr.buffer),Be.bufferData(tr.type,tr.persistentData||tr.byteLength,tr.usage)})}return At.profile&&(yt.getTotalBufferSize=function(){var tr=0;return Object.keys(Tr).forEach(function(Er){tr+=Tr[Er].stats.size}),tr}),{create:yi,createStream:Jr,destroyStream:Qr,clear:function(){Ke(Tr).forEach(Vi),Or.forEach(Vi)},getBuffer:function(tr){return tr&&tr._buffer instanceof pr?tr._buffer:null},restore:Ir,_initBuffer:vn}}var ln=0,la=0,mo=1,pn=1,zn=4,gn=4,ns={points:ln,point:la,lines:mo,line:pn,triangles:zn,triangle:gn,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},ua=0,as=1,ro=4,ba=5120,co=5121,Us=5122,Ma=5123,el=5124,Ml=5125,Au=34963,dl=35040,Fe=35044;function ot(Be,yt,At,sr){var gr={},Tr=0,pr={uint8:co,uint16:Ma};yt.oes_element_index_uint&&(pr.uint32=Ml);function Or(Ir){this.id=Tr++,gr[this.id]=this,this.buffer=Ir,this.primType=ro,this.vertCount=0,this.type=0}Or.prototype.bind=function(){this.buffer.bind()};var Jr=[];function Qr(Ir){var tr=Jr.pop();return tr||(tr=new Or(At.create(null,Au,!0,!1)._buffer)),vn(tr,Ir,dl,-1,-1,0,0),tr}function ei(Ir){Jr.push(Ir)}function vn(Ir,tr,Er,Wr,oi,Vr,Mi){Ir.buffer.bind();var bi;if(tr){var xn=Mi;!Mi&&(!dt(tr)||St(tr)&&!dt(tr.data))&&(xn=yt.oes_element_index_uint?Ml:Ma),At._initBuffer(Ir.buffer,tr,Er,xn,3)}else Be.bufferData(Au,Vr,Er),Ir.buffer.dtype=bi||co,Ir.buffer.usage=Er,Ir.buffer.dimension=3,Ir.buffer.byteLength=Vr;if(bi=Mi,!Mi){switch(Ir.buffer.dtype){case co:case ba:bi=co;break;case Ma:case Us:bi=Ma;break;case Ml:case el:bi=Ml;break;default:}Ir.buffer.dtype=bi}Ir.type=bi;var Nr=oi;Nr<0&&(Nr=Ir.buffer.byteLength,bi===Ma?Nr>>=1:bi===Ml&&(Nr>>=2)),Ir.vertCount=Nr;var zr=Wr;if(Wr<0){zr=ro;var Bi=Ir.buffer.dimension;Bi===1&&(zr=ua),Bi===2&&(zr=as),Bi===3&&(zr=ro)}Ir.primType=zr}function Vi(Ir){sr.elementsCount--,delete gr[Ir.id],Ir.buffer.destroy(),Ir.buffer=null}function yi(Ir,tr){var Er=At.create(null,Au,!0),Wr=new Or(Er._buffer);sr.elementsCount++;function oi(Vr){if(!Vr)Er(),Wr.primType=ro,Wr.vertCount=0,Wr.type=co;else if(typeof Vr=="number")Er(Vr),Wr.primType=ro,Wr.vertCount=Vr|0,Wr.type=co;else{var Mi=null,bi=Fe,xn=-1,Nr=-1,zr=0,Bi=0;Array.isArray(Vr)||dt(Vr)||St(Vr)?Mi=Vr:("data"in Vr&&(Mi=Vr.data),"usage"in Vr&&(bi=nt[Vr.usage]),"primitive"in Vr&&(xn=ns[Vr.primitive]),"count"in Vr&&(Nr=Vr.count|0),"type"in Vr&&(Bi=pr[Vr.type]),"length"in Vr?zr=Vr.length|0:(zr=Nr,Bi===Ma||Bi===Us?zr*=2:(Bi===Ml||Bi===el)&&(zr*=4))),vn(Wr,Mi,bi,xn,Nr,zr,Bi)}return oi}return oi(Ir),oi._reglType="elements",oi._elements=Wr,oi.subdata=function(Vr,Mi){return Er.subdata(Vr,Mi),oi},oi.destroy=function(){Vi(Wr)},oi}return{create:yi,createStream:Qr,destroyStream:ei,getElements:function(Ir){return typeof Ir=="function"&&Ir._elements instanceof Or?Ir._elements:null},clear:function(){Ke(gr).forEach(Vi)}}}var lt=new Float32Array(1),kt=new Uint32Array(lt.buffer),er=5123;function zt(Be){for(var yt=I.allocType(er,Be.length),At=0;At>>31<<15,Tr=(sr<<1>>>24)-127,pr=sr>>13&1023;if(Tr<-24)yt[At]=gr;else if(Tr<-14){var Or=-14-Tr;yt[At]=gr+(pr+1024>>Or)}else Tr>15?yt[At]=gr+31744:yt[At]=gr+(Tr+15<<10)+pr}return yt}function Ar(Be){return Array.isArray(Be)||dt(Be)}var Zt=34467,wr=3553,Kr=34067,ni=34069,Si=6408,un=6406,$n=6407,wn=6409,ma=6410,Zn=32854,io=32855,fo=36194,ko=32819,Oo=32820,ms=33635,os=34042,Co=6402,ss=34041,No=35904,Go=35906,ho=36193,qn=33776,_a=33777,ys=33778,tl=33779,rl=35986,jl=35987,il=34798,hu=35840,Mu=35841,Su=35842,yc=35843,$l=36196,Za=5121,Eu=5123,Xu=5125,Cs=5126,du=10242,_h=10243,bo=10497,pu=33071,Jo=33648,vu=10240,Nv=10241,$c=9728,c0=9729,Wf=9984,wh=9985,Yf=9986,f0=9987,Uv=33170,Th=4352,xp=4353,h0=4354,td=34046,rd=3317,Vv=37440,Gv=37441,Wc=37443,bp=37444,Ah=33984,Zu=[Wf,Yf,wh,f0],Ds=[0,wn,ma,$n,Si],Ho={};Ho[wn]=Ho[un]=Ho[Co]=1,Ho[ss]=Ho[ma]=2,Ho[$n]=Ho[No]=3,Ho[Si]=Ho[Go]=4;function ku(Be){return"[object "+Be+"]"}var id=ku("HTMLCanvasElement"),Mh=ku("OffscreenCanvas"),d0=ku("CanvasRenderingContext2D"),Hv=ku("ImageBitmap"),bg=ku("HTMLImageElement"),ny=ku("HTMLVideoElement"),Bx=Object.keys(Ve).concat([id,Mh,d0,Hv,bg,ny]),Sh=[];Sh[Za]=1,Sh[Cs]=4,Sh[ho]=2,Sh[Eu]=2,Sh[Xu]=4;var Vs=[];Vs[Zn]=2,Vs[io]=2,Vs[fo]=2,Vs[ss]=4,Vs[qn]=.5,Vs[_a]=.5,Vs[ys]=1,Vs[tl]=1,Vs[rl]=.5,Vs[jl]=1,Vs[il]=1,Vs[hu]=.5,Vs[Mu]=.25,Vs[Su]=.5,Vs[yc]=.25,Vs[$l]=.5;function jv(Be){return Array.isArray(Be)&&(Be.length===0||typeof Be[0]=="number")}function $v(Be){if(!Array.isArray(Be))return!1;var yt=Be.length;return!(yt===0||!Ar(Be[0]))}function Eh(Be){return Object.prototype.toString.call(Be)}function _g(Be){return Eh(Be)===id}function nd(Be){return Eh(Be)===Mh}function _p(Be){return Eh(Be)===d0}function mf(Be){return Eh(Be)===Hv}function Wv(Be){return Eh(Be)===bg}function wp(Be){return Eh(Be)===ny}function ad(Be){if(!Be)return!1;var yt=Eh(Be);return Bx.indexOf(yt)>=0?!0:jv(Be)||$v(Be)||St(Be)}function wg(Be){return Ve[Object.prototype.toString.call(Be)]|0}function Tg(Be,yt){var At=yt.length;switch(Be.type){case Za:case Eu:case Xu:case Cs:var sr=I.allocType(Be.type,At);sr.set(yt),Be.data=sr;break;case ho:Be.data=zt(yt);break;default:}}function ay(Be,yt){return I.allocType(Be.type===ho?Cs:Be.type,yt)}function Xf(Be,yt){Be.type===ho?(Be.data=zt(yt),I.freeType(yt)):Be.data=yt}function Yv(Be,yt,At,sr,gr,Tr){for(var pr=Be.width,Or=Be.height,Jr=Be.channels,Qr=pr*Or*Jr,ei=ay(Be,Qr),vn=0,Vi=0;Vi=1;)Or+=pr*Jr*Jr,Jr/=2;return Or}else return pr*At*sr}function Tp(Be,yt,At,sr,gr,Tr,pr){var Or={"don't care":Th,"dont care":Th,nice:h0,fast:xp},Jr={repeat:bo,clamp:pu,mirror:Jo},Qr={nearest:$c,linear:c0},ei=e({mipmap:f0,"nearest mipmap nearest":Wf,"linear mipmap nearest":wh,"nearest mipmap linear":Yf,"linear mipmap linear":f0},Qr),vn={none:0,browser:bp},Vi={uint8:Za,rgba4:ko,rgb565:ms,"rgb5 a1":Oo},yi={alpha:un,luminance:wn,"luminance alpha":ma,rgb:$n,rgba:Si,rgba4:Zn,"rgb5 a1":io,rgb565:fo},Ir={};yt.ext_srgb&&(yi.srgb=No,yi.srgba=Go),yt.oes_texture_float&&(Vi.float32=Vi.float=Cs),yt.oes_texture_half_float&&(Vi.float16=Vi["half float"]=ho),yt.webgl_depth_texture&&(e(yi,{depth:Co,"depth stencil":ss}),e(Vi,{uint16:Eu,uint32:Xu,"depth stencil":os})),yt.webgl_compressed_texture_s3tc&&e(Ir,{"rgb s3tc dxt1":qn,"rgba s3tc dxt1":_a,"rgba s3tc dxt3":ys,"rgba s3tc dxt5":tl}),yt.webgl_compressed_texture_atc&&e(Ir,{"rgb atc":rl,"rgba atc explicit alpha":jl,"rgba atc interpolated alpha":il}),yt.webgl_compressed_texture_pvrtc&&e(Ir,{"rgb pvrtc 4bppv1":hu,"rgb pvrtc 2bppv1":Mu,"rgba pvrtc 4bppv1":Su,"rgba pvrtc 2bppv1":yc}),yt.webgl_compressed_texture_etc1&&(Ir["rgb etc1"]=$l);var tr=Array.prototype.slice.call(Be.getParameter(Zt));Object.keys(Ir).forEach(function(wt){var xr=Ir[wt];tr.indexOf(xr)>=0&&(yi[wt]=xr)});var Er=Object.keys(yi);At.textureFormats=Er;var Wr=[];Object.keys(yi).forEach(function(wt){var xr=yi[wt];Wr[xr]=wt});var oi=[];Object.keys(Vi).forEach(function(wt){var xr=Vi[wt];oi[xr]=wt});var Vr=[];Object.keys(Qr).forEach(function(wt){var xr=Qr[wt];Vr[xr]=wt});var Mi=[];Object.keys(ei).forEach(function(wt){var xr=ei[wt];Mi[xr]=wt});var bi=[];Object.keys(Jr).forEach(function(wt){var xr=Jr[wt];bi[xr]=wt});var xn=Er.reduce(function(wt,xr){var br=yi[xr];return br===wn||br===un||br===wn||br===ma||br===Co||br===ss||yt.ext_srgb&&(br===No||br===Go)?wt[br]=br:br===io||xr.indexOf("rgba")>=0?wt[br]=Si:wt[br]=$n,wt},{});function Nr(){this.internalformat=Si,this.format=Si,this.type=Za,this.compressed=!1,this.premultiplyAlpha=!1,this.flipY=!1,this.unpackAlignment=1,this.colorSpace=bp,this.width=0,this.height=0,this.channels=0}function zr(wt,xr){wt.internalformat=xr.internalformat,wt.format=xr.format,wt.type=xr.type,wt.compressed=xr.compressed,wt.premultiplyAlpha=xr.premultiplyAlpha,wt.flipY=xr.flipY,wt.unpackAlignment=xr.unpackAlignment,wt.colorSpace=xr.colorSpace,wt.width=xr.width,wt.height=xr.height,wt.channels=xr.channels}function Bi(wt,xr){if(!(typeof xr!="object"||!xr)){if("premultiplyAlpha"in xr&&(wt.premultiplyAlpha=xr.premultiplyAlpha),"flipY"in xr&&(wt.flipY=xr.flipY),"alignment"in xr&&(wt.unpackAlignment=xr.alignment),"colorSpace"in xr&&(wt.colorSpace=vn[xr.colorSpace]),"type"in xr){var br=xr.type;wt.type=Vi[br]}var tn=wt.width,Ga=wt.height,fs=wt.channels,Ki=!1;"shape"in xr?(tn=xr.shape[0],Ga=xr.shape[1],xr.shape.length===3&&(fs=xr.shape[2],Ki=!0)):("radius"in xr&&(tn=Ga=xr.radius),"width"in xr&&(tn=xr.width),"height"in xr&&(Ga=xr.height),"channels"in xr&&(fs=xr.channels,Ki=!0)),wt.width=tn|0,wt.height=Ga|0,wt.channels=fs|0;var ft=!1;if("format"in xr){var Mt=xr.format,Rt=wt.internalformat=yi[Mt];wt.format=xn[Rt],Mt in Vi&&("type"in xr||(wt.type=Vi[Mt])),Mt in Ir&&(wt.compressed=!0),ft=!0}!Ki&&ft?wt.channels=Ho[wt.format]:Ki&&!ft&&wt.channels!==Ds[wt.format]&&(wt.format=wt.internalformat=Ds[wt.channels])}}function mi(wt){Be.pixelStorei(Vv,wt.flipY),Be.pixelStorei(Gv,wt.premultiplyAlpha),Be.pixelStorei(Wc,wt.colorSpace),Be.pixelStorei(rd,wt.unpackAlignment)}function ci(){Nr.call(this),this.xOffset=0,this.yOffset=0,this.data=null,this.needsFree=!1,this.element=null,this.needsCopy=!1}function hi(wt,xr){var br=null;if(ad(xr)?br=xr:xr&&(Bi(wt,xr),"x"in xr&&(wt.xOffset=xr.x|0),"y"in xr&&(wt.yOffset=xr.y|0),ad(xr.data)&&(br=xr.data)),xr.copy){var tn=gr.viewportWidth,Ga=gr.viewportHeight;wt.width=wt.width||tn-wt.xOffset,wt.height=wt.height||Ga-wt.yOffset,wt.needsCopy=!0}else if(!br)wt.width=wt.width||1,wt.height=wt.height||1,wt.channels=wt.channels||4;else if(dt(br))wt.channels=wt.channels||4,wt.data=br,!("type"in xr)&&wt.type===Za&&(wt.type=wg(br));else if(jv(br))wt.channels=wt.channels||4,Tg(wt,br),wt.alignment=1,wt.needsFree=!0;else if(St(br)){var fs=br.data;!Array.isArray(fs)&&wt.type===Za&&(wt.type=wg(fs));var Ki=br.shape,ft=br.stride,Mt,Rt,mr,Sr,ar,ir;Ki.length===3?(mr=Ki[2],ir=ft[2]):(mr=1,ir=1),Mt=Ki[0],Rt=Ki[1],Sr=ft[0],ar=ft[1],wt.alignment=1,wt.width=Mt,wt.height=Rt,wt.channels=mr,wt.format=wt.internalformat=Ds[mr],wt.needsFree=!0,Yv(wt,fs,Sr,ar,ir,br.offset)}else if(_g(br)||nd(br)||_p(br))_g(br)||nd(br)?wt.element=br:wt.element=br.canvas,wt.width=wt.element.width,wt.height=wt.element.height,wt.channels=4;else if(mf(br))wt.element=br,wt.width=br.width,wt.height=br.height,wt.channels=4;else if(Wv(br))wt.element=br,wt.width=br.naturalWidth,wt.height=br.naturalHeight,wt.channels=4;else if(wp(br))wt.element=br,wt.width=br.videoWidth,wt.height=br.videoHeight,wt.channels=4;else if($v(br)){var $t=wt.width||br[0].length,Dt=wt.height||br.length,Vt=wt.channels;Ar(br[0][0])?Vt=Vt||br[0][0].length:Vt=Vt||1;for(var Et=bt.shape(br),ur=1,kr=0;kr>=Ga,br.height>>=Ga,hi(br,tn[Ga]),wt.mipmask|=1<=0&&!("faces"in xr)&&(wt.genMipmaps=!0)}if("mag"in xr){var tn=xr.mag;wt.magFilter=Qr[tn]}var Ga=wt.wrapS,fs=wt.wrapT;if("wrap"in xr){var Ki=xr.wrap;typeof Ki=="string"?Ga=fs=Jr[Ki]:Array.isArray(Ki)&&(Ga=Jr[Ki[0]],fs=Jr[Ki[1]])}else{if("wrapS"in xr){var ft=xr.wrapS;Ga=Jr[ft]}if("wrapT"in xr){var Mt=xr.wrapT;fs=Jr[Mt]}}if(wt.wrapS=Ga,wt.wrapT=fs,"anisotropic"in xr){var Rt=xr.anisotropic;wt.anisotropic=xr.anisotropic}if("mipmap"in xr){var mr=!1;switch(typeof xr.mipmap){case"string":wt.mipmapHint=Or[xr.mipmap],wt.genMipmaps=!0,mr=!0;break;case"boolean":mr=wt.genMipmaps=xr.mipmap;break;case"object":wt.genMipmaps=!1,mr=!0;break;default:}mr&&!("min"in xr)&&(wt.minFilter=Wf)}}function ih(wt,xr){Be.texParameteri(xr,Nv,wt.minFilter),Be.texParameteri(xr,vu,wt.magFilter),Be.texParameteri(xr,du,wt.wrapS),Be.texParameteri(xr,_h,wt.wrapT),yt.ext_texture_filter_anisotropic&&Be.texParameteri(xr,td,wt.anisotropic),wt.genMipmaps&&(Be.hint(Uv,wt.mipmapHint),Be.generateMipmap(xr))}var Rh=0,Lu={},Pu=At.maxTextureUnits,ic=Array(Pu).map(function(){return null});function ha(wt){Nr.call(this),this.mipmask=0,this.internalformat=Si,this.id=Rh++,this.refCount=1,this.target=wt,this.texture=Be.createTexture(),this.unit=-1,this.bindCount=0,this.texInfo=new cs,pr.profile&&(this.stats={size:0})}function wc(wt){Be.activeTexture(Ah),Be.bindTexture(wt.target,wt.texture)}function bs(){var wt=ic[0];wt?Be.bindTexture(wt.target,wt.texture):Be.bindTexture(wr,null)}function nh(wt){var xr=wt.texture,br=wt.unit,tn=wt.target;br>=0&&(Be.activeTexture(Ah+br),Be.bindTexture(tn,null),ic[br]=null),Be.deleteTexture(xr),wt.texture=null,wt.params=null,wt.pixels=null,wt.refCount=0,delete Lu[wt.id],Tr.textureCount--}e(ha.prototype,{bind:function(){var wt=this;wt.bindCount+=1;var xr=wt.unit;if(xr<0){for(var br=0;br0)continue;tn.unit=-1}ic[br]=wt,xr=br;break}xr>=Pu,pr.profile&&Tr.maxTextureUnits>ar)-mr,ir.height=ir.height||(br.height>>ar)-Sr,wc(br),bn(ir,wr,mr,Sr,ar),bs(),Wi(ir),tn}function fs(Ki,ft){var Mt=Ki|0,Rt=ft|0||Mt;if(Mt===br.width&&Rt===br.height)return tn;tn.width=br.width=Mt,tn.height=br.height=Rt,wc(br);for(var mr=0;br.mipmask>>mr;++mr){var Sr=Mt>>mr,ar=Rt>>mr;if(!Sr||!ar)break;Be.texImage2D(wr,mr,br.format,Sr,ar,0,br.format,br.type,null)}return bs(),pr.profile&&(br.stats.size=Zf(br.internalformat,br.type,Mt,Rt,!1,!1)),tn}return tn(wt,xr),tn.subimage=Ga,tn.resize=fs,tn._reglType="texture2d",tn._texture=br,pr.profile&&(tn.stats=br.stats),tn.destroy=function(){br.decRef()},tn}function Bh(wt,xr,br,tn,Ga,fs){var Ki=new ha(Kr);Lu[Ki.id]=Ki,Tr.cubeCount++;var ft=new Array(6);function Mt(Sr,ar,ir,$t,Dt,Vt){var Et,ur=Ki.texInfo;for(cs.call(ur),Et=0;Et<6;++Et)ft[Et]=Ba();if(typeof Sr=="number"||!Sr){var kr=Sr|0||1;for(Et=0;Et<6;++Et)Vn(ft[Et],kr,kr)}else if(typeof Sr=="object")if(ar)Sa(ft[0],Sr),Sa(ft[1],ar),Sa(ft[2],ir),Sa(ft[3],$t),Sa(ft[4],Dt),Sa(ft[5],Vt);else if(wf(ur,Sr),Bi(Ki,Sr),"faces"in Sr){var Xr=Sr.faces;for(Et=0;Et<6;++Et)zr(ft[Et],Ki),Sa(ft[Et],Xr[Et])}else for(Et=0;Et<6;++Et)Sa(ft[Et],Sr);for(zr(Ki,ft[0]),ur.genMipmaps?Ki.mipmask=(ft[0].width<<1)-1:Ki.mipmask=ft[0].mipmask,Ki.internalformat=ft[0].internalformat,Mt.width=ft[0].width,Mt.height=ft[0].height,wc(Ki),Et=0;Et<6;++Et)Cl(ft[Et],ni+Et);for(ih(ur,Kr),bs(),pr.profile&&(Ki.stats.size=Zf(Ki.internalformat,Ki.type,Mt.width,Mt.height,ur.genMipmaps,!0)),Mt.format=Wr[Ki.internalformat],Mt.type=oi[Ki.type],Mt.mag=Vr[ur.magFilter],Mt.min=Mi[ur.minFilter],Mt.wrapS=bi[ur.wrapS],Mt.wrapT=bi[ur.wrapT],Et=0;Et<6;++Et)Ih(ft[Et]);return Mt}function Rt(Sr,ar,ir,$t,Dt){var Vt=ir|0,Et=$t|0,ur=Dt|0,kr=Ti();return zr(kr,Ki),kr.width=0,kr.height=0,hi(kr,ar),kr.width=kr.width||(Ki.width>>ur)-Vt,kr.height=kr.height||(Ki.height>>ur)-Et,wc(Ki),bn(kr,ni+Sr,Vt,Et,ur),bs(),Wi(kr),Mt}function mr(Sr){var ar=Sr|0;if(ar!==Ki.width){Mt.width=Ki.width=ar,Mt.height=Ki.height=ar,wc(Ki);for(var ir=0;ir<6;++ir)for(var $t=0;Ki.mipmask>>$t;++$t)Be.texImage2D(ni+ir,$t,Ki.format,ar>>$t,ar>>$t,0,Ki.format,Ki.type,null);return bs(),pr.profile&&(Ki.stats.size=Zf(Ki.internalformat,Ki.type,Mt.width,Mt.height,!1,!0)),Mt}}return Mt(wt,xr,br,tn,Ga,fs),Mt.subimage=Rt,Mt.resize=mr,Mt._reglType="textureCube",Mt._texture=Ki,pr.profile&&(Mt.stats=Ki.stats),Mt.destroy=function(){Ki.decRef()},Mt}function ta(){for(var wt=0;wt>tn,br.height>>tn,0,br.internalformat,br.type,null);else for(var Ga=0;Ga<6;++Ga)Be.texImage2D(ni+Ga,tn,br.internalformat,br.width>>tn,br.height>>tn,0,br.internalformat,br.type,null);ih(br.texInfo,br.target)})}function Gs(){for(var wt=0;wt=0?Ih=!0:Jr.indexOf(cs)>=0&&(Ih=!1))),("depthTexture"in ha||"depthStencilTexture"in ha)&&(ic=!!(ha.depthTexture||ha.depthStencilTexture)),"depth"in ha&&(typeof ha.depth=="boolean"?Cl=ha.depth:(Rh=ha.depth,rc=!1)),"stencil"in ha&&(typeof ha.stencil=="boolean"?rc=ha.stencil:(Lu=ha.stencil,Cl=!1)),"depthStencil"in ha&&(typeof ha.depthStencil=="boolean"?Cl=rc=ha.depthStencil:(Pu=ha.depthStencil,Cl=!1,rc=!1))}var bs=null,nh=null,zh=null,Bh=null;if(Array.isArray(Ba))bs=Ba.map(Ir);else if(Ba)bs=[Ir(Ba)];else for(bs=new Array(ih),Un=0;Un0&&(Wi.depth=hi[0].depth,Wi.stencil=hi[0].stencil,Wi.depthStencil=hi[0].depthStencil),hi[Ti]?hi[Ti](Wi):hi[Ti]=zr(Wi)}return e(qi,{width:Un,height:Un,color:cs})}function bn(Wn){var Ti,Wi=Wn|0;if(Wi===qi.width)return qi;var Un=qi.color;for(Ti=0;Ti=Un.byteLength?Vn.subdata(Un):(Vn.destroy(),zr.buffers[Wn]=null)),zr.buffers[Wn]||(Vn=zr.buffers[Wn]=gr.create(Ti,kp,!1,!0)),Wi.buffer=gr.getBuffer(Vn),Wi.size=Wi.buffer.dimension|0,Wi.normalized=!1,Wi.type=Wi.buffer.dtype,Wi.offset=0,Wi.stride=0,Wi.divisor=0,Wi.state=1,qi[Wn]=1}else gr.getBuffer(Ti)?(Wi.buffer=gr.getBuffer(Ti),Wi.size=Wi.buffer.dimension|0,Wi.normalized=!1,Wi.type=Wi.buffer.dtype,Wi.offset=0,Wi.stride=0,Wi.divisor=0,Wi.state=1):gr.getBuffer(Ti.buffer)?(Wi.buffer=gr.getBuffer(Ti.buffer),Wi.size=(+Ti.size||Wi.buffer.dimension)|0,Wi.normalized=!!Ti.normalized||!1,"type"in Ti?Wi.type=Cr[Ti.type]:Wi.type=Wi.buffer.dtype,Wi.offset=(Ti.offset||0)|0,Wi.stride=(Ti.stride||0)|0,Wi.divisor=(Ti.divisor||0)|0,Wi.state=1):"x"in Ti&&(Wi.x=+Ti.x||0,Wi.y=+Ti.y||0,Wi.z=+Ti.z||0,Wi.w=+Ti.w||0,Wi.state=2)}for(var Sa=0;Sa1)for(var mi=0;mitr&&(tr=Er.stats.uniformsCount)}),tr},At.getMaxAttributesCount=function(){var tr=0;return ei.forEach(function(Er){Er.stats.attributesCount>tr&&(tr=Er.stats.attributesCount)}),tr});function Ir(){gr={},Tr={};for(var tr=0;tr16&&(At=nr(At,Be.length*8));for(var sr=Array(16),gr=Array(16),Tr=0;Tr<16;Tr++)sr[Tr]=At[Tr]^909522486,gr[Tr]=At[Tr]^1549556828;var pr=nr(sr.concat(Rp(yt)),512+yt.length*8);return Ae(nr(gr.concat(pr),768))}function Xc(Be){for(var yt=hy?"0123456789ABCDEF":"0123456789abcdef",At="",sr,gr=0;gr>>4&15)+yt.charAt(sr&15);return At}function Pp(Be){for(var yt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",At="",sr=Be.length,gr=0;grBe.length*8?At+=dy:At+=yt.charAt(Tr>>>6*(3-pr)&63);return At}function Dg(Be,yt){var At=yt.length,sr=Array(),gr,Tr,pr,Or,Jr=Array(Math.ceil(Be.length/2));for(gr=0;gr0;){for(Or=Array(),pr=0,gr=0;gr0||Tr>0)&&(Or[Or.length]=Tr);sr[sr.length]=pr,Jr=Or}var Qr="";for(gr=sr.length-1;gr>=0;gr--)Qr+=yt.charAt(sr[gr]);var ei=Math.ceil(Be.length*8/(Math.log(yt.length)/Math.log(2)));for(gr=Qr.length;gr>>6&31,128|sr&63):sr<=65535?yt+=String.fromCharCode(224|sr>>>12&15,128|sr>>>6&63,128|sr&63):sr<=2097151&&(yt+=String.fromCharCode(240|sr>>>18&7,128|sr>>>12&63,128|sr>>>6&63,128|sr&63));return yt}function Rp(Be){for(var yt=Array(Be.length>>2),At=0;At>5]|=(Be.charCodeAt(At/8)&255)<<24-At%32;return yt}function Ae(Be){for(var yt="",At=0;At>5]>>>24-At%32&255);return yt}function qe(Be,yt){return Be>>>yt|Be<<32-yt}function et(Be,yt){return Be>>>yt}function Ye(Be,yt,At){return Be&yt^~Be&At}function Tt(Be,yt,At){return Be&yt^Be&At^yt&At}function jt(Be){return qe(Be,2)^qe(Be,13)^qe(Be,22)}function Qt(Be){return qe(Be,6)^qe(Be,11)^qe(Be,25)}function cr(Be){return qe(Be,7)^qe(Be,18)^et(Be,3)}function yr(Be){return qe(Be,17)^qe(Be,19)^et(Be,10)}var Rr=new Array(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);function nr(Be,yt){var At=new Array(1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225),sr=new Array(64),gr,Tr,pr,Or,Jr,Qr,ei,vn,Vi,yi,Ir,tr;for(Be[yt>>5]|=128<<24-yt%32,Be[(yt+64>>9<<4)+15]=yt,Vi=0;Vi>16)+(yt>>16)+(At>>16);return sr<<16|At&65535}function vr(Be){return Array.prototype.slice.call(Be)}function Pr(Be){return vr(Be).join("")}function $r(Be){var yt=Be&&Be.cache,At=0,sr=[],gr=[],Tr=[];function pr(Ir,tr){var Er=tr&&tr.stable;if(!Er){for(var Wr=0;Wr0&&(Ir.push(oi,"="),Ir.push.apply(Ir,vr(arguments)),Ir.push(";")),oi}return e(tr,{def:Wr,toString:function(){return Pr([Er.length>0?"var "+Er.join(",")+";":"",Pr(Ir)])}})}function Jr(){var Ir=Or(),tr=Or(),Er=Ir.toString,Wr=tr.toString;function oi(Vr,Mi){tr(Vr,Mi,"=",Ir.def(Vr,Mi),";")}return e(function(){Ir.apply(Ir,vr(arguments))},{def:Ir.def,entry:Ir,exit:tr,save:oi,set:function(Vr,Mi,bi){oi(Vr,Mi),Ir(Vr,Mi,"=",bi,";")},toString:function(){return Er()+Wr()}})}function Qr(){var Ir=Pr(arguments),tr=Jr(),Er=Jr(),Wr=tr.toString,oi=Er.toString;return e(tr,{then:function(){return tr.apply(tr,vr(arguments)),this},else:function(){return Er.apply(Er,vr(arguments)),this},toString:function(){var Vr=oi();return Vr&&(Vr="else{"+Vr+"}"),Pr(["if(",Ir,"){",Wr(),"}",Vr])}})}var ei=Or(),vn={};function Vi(Ir,tr){var Er=[];function Wr(){var xn="a"+Er.length;return Er.push(xn),xn}tr=tr||0;for(var oi=0;oi":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},Dt={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},Bt={cw:Z,ccw:ne};function Wt(Be){return Array.isArray(Be)||ut(Be)||vt(Be)}function Xt(Be){return Be.sort(function(gt,Mt){return gt===Ch?-1:Mt===Ch?1:gt=1,sr>=2,gt)}else if(Mt===ba){var gr=Be.data;return new Lt(gr.thisDep,gr.contextDep,gr.propDep,gt)}else{if(Mt===Za)return new Lt(!1,!1,!1,gt);if(Mt===Pa){for(var Tr=!1,pr=!1,qr=!1,Kr=0;Kr=1&&(pr=!0),Qr>=2&&(qr=!0)}else Jr.type===ba&&(Tr=Tr||Jr.data.thisDep,pr=pr||Jr.data.contextDep,qr=qr||Jr.data.propDep)}return new Lt(Tr,pr,qr,gt)}else return new Lt(Mt===Cn,Mt===ln,Mt===oi,gt)}}var vi=new Lt(!1,!1,!1,function(){});function Ii(Be,gt,Mt,sr,gr,Tr,pr,qr,Kr,Jr,Qr,fn,Ui,yi,Lr,er){var Er=Jr.Record,$r={add:32774,subtract:32778,"reverse subtract":32779};Mt.ext_blend_minmax&&($r.min=le,$r.max=fe);var ni=Mt.angle_instanced_arrays,Ur=Mt.webgl_draw_buffers,Mi=Mt.oes_vertex_array_object,bi={dirty:!0,profile:er.profile},mn={},Or=[],Rr={},zi={};function mi(dt){return dt.replace(".","_")}function ci(dt,St,Rt){var mr=mi(dt);Or.push(dt),mn[mr]=bi[mr]=!!Rt,Rr[mr]=St}function di(dt,St,Rt){var mr=mi(dt);Or.push(dt),Array.isArray(Rt)?(bi[mr]=Rt.slice(),mn[mr]=Rt.slice()):bi[mr]=mn[mr]=Rt,zi[mr]=St}function Bi(dt){return!!isNaN(dt)}ci(wo,Mr),ci(ua,or),di(dl,"blendColor",[0,0,0,0]),di(os,"blendEquationSeparate",[We,We]),di(mo,"blendFuncSeparate",[He,ze,He,ze]),ci(pi,_i,!0),di(Ca,"depthFunc",ft),di(Ds,"depthRange",[0,1]),di(Tl,"depthMask",!0),di(Cu,Cu,[!0,!0,!0,!0]),ci(xf,Vt),di(Xc,"cullFace",N),di(Xf,Xf,ne),di(Ju,Ju,1),ci(Eh,hn),di(kh,"polygonOffset",[0,0]),ci(Pp,_n),ci(Cg,Ln),di(Jv,"sampleCoverage",[1,!1]),ci(qx,Gr),di(Qv,"stencilMask",-1),di(Zc,"stencilFunc",[De,0,-1]),di(cy,"stencilOpSeparate",[z,me,me,me]),di(e1,"stencilOpSeparate",[N,me,me,me]),ci(Dg,an),di(t1,"scissor",[0,0,Be.drawingBufferWidth,Be.drawingBufferHeight]),di(Ch,Ch,[0,0,Be.drawingBufferWidth,Be.drawingBufferHeight]);var yn={gl:Be,context:Ui,strings:gt,next:mn,current:bi,draw:fn,elements:Tr,buffer:gr,shader:Qr,attributes:Jr.state,vao:Jr,uniforms:Kr,framebuffer:qr,extensions:Mt,timer:yi,isBufferArgs:Wt},$n={primTypes:vs,compareFuncs:pt,blendFuncs:$t,blendEquations:$r,stencilOps:Dt,glTypes:Cr,orientationType:Bt};Ur&&($n.backBuffer=[N],$n.drawBuffer=A(sr.maxDrawbuffers,function(dt){return dt===0?[0]:A(dt,function(St){return Nt+St})}));var Ti=0;function $i(){var dt=jr({cache:Lr}),St=dt.link,Rt=dt.global;dt.id=Ti++,dt.batchId="0";var mr=St(yn),Sr=dt.shared={props:"a0"};Object.keys(yn).forEach(function(Ut){Sr[Ut]=Rt.def(mr,".",Ut)});var ar=dt.next={},rr=dt.current={};Object.keys(zi).forEach(function(Ut){Array.isArray(bi[Ut])&&(ar[Ut]=Rt.def(Sr.next,".",Ut),rr[Ut]=Rt.def(Sr.current,".",Ut))});var jt=dt.constants={};Object.keys($n).forEach(function(Ut){jt[Ut]=Rt.def(JSON.stringify($n[Ut]))}),dt.invoke=function(Ut,Et){switch(Et.type){case Xr:var lr=["this",Sr.context,Sr.props,dt.batchId];return Ut.def(St(Et.data),".call(",lr.slice(0,Math.max(Et.data.length+1,4)),")");case oi:return Ut.def(Sr.props,Et.data);case ln:return Ut.def(Sr.context,Et.data);case Cn:return Ut.def("this",Et.data);case ba:return Et.data.append(dt,Ut),Et.data.ref;case Za:return Et.data.toString();case Pa:return Et.data.map(function(kr){return dt.invoke(Ut,kr)})}},dt.attribCache={};var Ft={};return dt.scopeAttrib=function(Ut){var Et=gt.id(Ut);if(Et in Ft)return Ft[Et];var lr=Jr.scope[Et];lr||(lr=Jr.scope[Et]=new Er);var kr=Ft[Et]=St(lr);return kr},dt}function On(dt){var St=dt.static,Rt=dt.dynamic,mr;if(Fg in St){var Sr=!!St[Fg];mr=Hr(function(rr,jt){return Sr}),mr.enable=Sr}else if(Fg in Rt){var ar=Rt[Fg];mr=ii(ar,function(rr,jt){return rr.invoke(jt,ar)})}return mr}function Nn(dt,St){var Rt=dt.static,mr=dt.dynamic;if(Ip in Rt){var Sr=Rt[Ip];return Sr?(Sr=qr.getFramebuffer(Sr),Hr(function(rr,jt){var Ft=rr.link(Sr),Ut=rr.shared;jt.set(Ut.framebuffer,".next",Ft);var Et=Ut.context;return jt.set(Et,"."+ve,Ft+".width"),jt.set(Et,"."+Se,Ft+".height"),Ft})):Hr(function(rr,jt){var Ft=rr.shared;jt.set(Ft.framebuffer,".next","null");var Ut=Ft.context;return jt.set(Ut,"."+ve,Ut+"."+nt),jt.set(Ut,"."+Se,Ut+"."+Ze),"null"})}else if(Ip in mr){var ar=mr[Ip];return ii(ar,function(rr,jt){var Ft=rr.invoke(jt,ar),Ut=rr.shared,Et=Ut.framebuffer,lr=jt.def(Et,".getFramebuffer(",Ft,")");jt.set(Et,".next",lr);var kr=Ut.context;return jt.set(kr,"."+ve,lr+"?"+lr+".width:"+kr+"."+nt),jt.set(kr,"."+Se,lr+"?"+lr+".height:"+kr+"."+Ze),lr})}else return null}function Ma(dt,St,Rt){var mr=dt.static,Sr=dt.dynamic;function ar(Ft){if(Ft in mr){var Ut=mr[Ft],Et=!0,lr=Ut.x|0,kr=Ut.y|0,Yr,wn;return"width"in Ut?Yr=Ut.width|0:Et=!1,"height"in Ut?wn=Ut.height|0:Et=!1,new Lt(!Et&&St&&St.thisDep,!Et&&St&&St.contextDep,!Et&&St&&St.propDep,function(xn,on){var rn=xn.shared.context,Li=Yr;"width"in Ut||(Li=on.def(rn,".",ve,"-",lr));var Ki=wn;return"height"in Ut||(Ki=on.def(rn,".",Se,"-",kr)),[lr,kr,Li,Ki]})}else if(Ft in Sr){var Ni=Sr[Ft],Fi=ii(Ni,function(xn,on){var rn=xn.invoke(on,Ni),Li=xn.shared.context,Ki=on.def(rn,".x|0"),tn=on.def(rn,".y|0"),Wn=on.def('"width" in ',rn,"?",rn,".width|0:","(",Li,".",ve,"-",Ki,")"),Gs=on.def('"height" in ',rn,"?",rn,".height|0:","(",Li,".",Se,"-",tn,")");return[Ki,tn,Wn,Gs]});return St&&(Fi.thisDep=Fi.thisDep||St.thisDep,Fi.contextDep=Fi.contextDep||St.contextDep,Fi.propDep=Fi.propDep||St.propDep),Fi}else return St?new Lt(St.thisDep,St.contextDep,St.propDep,function(xn,on){var rn=xn.shared.context;return[0,0,on.def(rn,".",ve),on.def(rn,".",Se)]}):null}var rr=ar(Ch);if(rr){var jt=rr;rr=new Lt(rr.thisDep,rr.contextDep,rr.propDep,function(Ft,Ut){var Et=jt.append(Ft,Ut),lr=Ft.shared.context;return Ut.set(lr,"."+Ae,Et[2]),Ut.set(lr,"."+Pe,Et[3]),Et})}return{viewport:rr,scissor_box:ar(t1)}}function Sl(dt,St){var Rt=dt.static,mr=typeof Rt[ud]=="string"&&typeof Rt[Rp]=="string";if(mr){if(Object.keys(St.dynamic).length>0)return null;var Sr=St.static,ar=Object.keys(Sr);if(ar.length>0&&typeof Sr[ar[0]]=="number"){for(var rr=[],jt=0;jt"+Ki+"?"+Et+".constant["+Ki+"]:0;"}).join(""),"}}else{","if(",Yr,"(",Et,".buffer)){",xn,"=",wn,".createStream(",yt,",",Et,".buffer);","}else{",xn,"=",wn,".getBuffer(",Et,".buffer);","}",on,'="type" in ',Et,"?",kr.glTypes,"[",Et,".type]:",xn,".dtype;",Ni.normalized,"=!!",Et,".normalized;");function rn(Li){Ut(Ni[Li],"=",Et,".",Li,"|0;")}return rn("size"),rn("offset"),rn("stride"),rn("divisor"),Ut("}}"),Ut.exit("if(",Ni.isStream,"){",wn,".destroyStream(",xn,");","}"),Ni}Sr[ar]=ii(rr,jt)}),Sr}function eh(dt){var St=dt.static,Rt=dt.dynamic,mr={};return Object.keys(St).forEach(function(Sr){var ar=St[Sr];mr[Sr]=Hr(function(rr,jt){return typeof ar=="number"||typeof ar=="boolean"?""+ar:rr.link(ar)})}),Object.keys(Rt).forEach(function(Sr){var ar=Rt[Sr];mr[Sr]=ii(ar,function(rr,jt){return rr.invoke(jt,ar)})}),mr}function Lh(dt,St,Rt,mr,Sr){var ar=dt.static,rr=dt.dynamic,jt=Sl(dt,St),Ft=Nn(dt,Sr),Ut=Ma(dt,Ft,Sr),Et=za(dt,Sr),lr=Fh(dt,Sr),kr=tc(dt,Sr,jt);function Yr(rn){var Li=Ut[rn];Li&&(lr[rn]=Li)}Yr(Ch),Yr(mi(t1));var wn=Object.keys(lr).length>0,Ni={framebuffer:Ft,draw:Et,shader:kr,state:lr,dirty:wn,scopeVAO:null,drawVAO:null,useVAO:!1,attributes:{}};if(Ni.profile=On(dt,Sr),Ni.uniforms=ls(Rt,Sr),Ni.drawVAO=Ni.scopeVAO=Et.vao,!Ni.drawVAO&&kr.program&&!jt&&Mt.angle_instanced_arrays&&Et.static.elements){var Fi=!0,xn=kr.program.attributes.map(function(rn){var Li=St.static[rn];return Fi=Fi&&!!Li,Li});if(Fi&&xn.length>0){var on=Jr.getVAO(Jr.createVAO({attributes:xn,elements:Et.static.elements}));Ni.drawVAO=new Lt(null,null,null,function(rn,Li){return rn.link(on)}),Ni.useVAO=!0}}return jt?Ni.useVAO=!0:Ni.attributes=_f(St,Sr),Ni.context=eh(mr,Sr),Ni}function Fu(dt,St,Rt){var mr=dt.shared,Sr=mr.context,ar=dt.scope();Object.keys(Rt).forEach(function(rr){St.save(Sr,"."+rr);var jt=Rt[rr],Ft=jt.append(dt,St);Array.isArray(Ft)?ar(Sr,".",rr,"=[",Ft.join(),"];"):ar(Sr,".",rr,"=",Ft,";")}),St(ar)}function Lu(dt,St,Rt,mr){var Sr=dt.shared,ar=Sr.gl,rr=Sr.framebuffer,jt;Ur&&(jt=St.def(Sr.extensions,".webgl_draw_buffers"));var Ft=dt.constants,Ut=Ft.drawBuffer,Et=Ft.backBuffer,lr;Rt?lr=Rt.append(dt,St):lr=St.def(rr,".next"),mr||St("if(",lr,"!==",rr,".cur){"),St("if(",lr,"){",ar,".bindFramebuffer(",ht,",",lr,".framebuffer);"),Ur&&St(jt,".drawBuffersWEBGL(",Ut,"[",lr,".colorAttachments.length]);"),St("}else{",ar,".bindFramebuffer(",ht,",null);"),Ur&&St(jt,".drawBuffersWEBGL(",Et,");"),St("}",rr,".cur=",lr,";"),mr||St("}")}function rc(dt,St,Rt){var mr=dt.shared,Sr=mr.gl,ar=dt.current,rr=dt.next,jt=mr.current,Ft=mr.next,Ut=dt.cond(jt,".dirty");Or.forEach(function(Et){var lr=mi(Et);if(!(lr in Rt.state)){var kr,Yr;if(lr in rr){kr=rr[lr],Yr=ar[lr];var wn=A(bi[lr].length,function(Fi){return Ut.def(kr,"[",Fi,"]")});Ut(dt.cond(wn.map(function(Fi,xn){return Fi+"!=="+Yr+"["+xn+"]"}).join("||")).then(Sr,".",zi[lr],"(",wn,");",wn.map(function(Fi,xn){return Yr+"["+xn+"]="+Fi}).join(";"),";"))}else{kr=Ut.def(Ft,".",lr);var Ni=dt.cond(kr,"!==",jt,".",lr);Ut(Ni),lr in Rr?Ni(dt.cond(kr).then(Sr,".enable(",Rr[lr],");").else(Sr,".disable(",Rr[lr],");"),jt,".",lr,"=",kr,";"):Ni(Sr,".",zi[lr],"(",kr,");",jt,".",lr,"=",kr,";")}}}),Object.keys(Rt.state).length===0&&Ut(jt,".dirty=false;"),St(Ut)}function fa(dt,St,Rt,mr){var Sr=dt.shared,ar=dt.current,rr=Sr.current,jt=Sr.gl,Ft;Xt(Object.keys(Rt)).forEach(function(Ut){var Et=Rt[Ut];if(!(mr&&!mr(Et))){var lr=Et.append(dt,St);if(Rr[Ut]){var kr=Rr[Ut];Dr(Et)?(Ft=dt.link(lr,{stable:!0}),St(dt.cond(Ft).then(jt,".enable(",kr,");").else(jt,".disable(",kr,");")),St(rr,".",Ut,"=",Ft,";")):(St(dt.cond(lr).then(jt,".enable(",kr,");").else(jt,".disable(",kr,");")),St(rr,".",Ut,"=",lr,";"))}else if(Ar(lr)){var Yr=ar[Ut];St(jt,".",zi[Ut],"(",lr,");",lr.map(function(wn,Ni){return Yr+"["+Ni+"]="+wn}).join(";"),";")}else Dr(Et)?(Ft=dt.link(lr,{stable:!0}),St(jt,".",zi[Ut],"(",Ft,");",rr,".",Ut,"=",Ft,";")):St(jt,".",zi[Ut],"(",lr,");",rr,".",Ut,"=",lr,";")}})}function _c(dt,St){ni&&(dt.instancing=St.def(dt.shared.extensions,".angle_instanced_arrays"))}function xs(dt,St,Rt,mr,Sr){var ar=dt.shared,rr=dt.stats,jt=ar.current,Ft=ar.timer,Ut=Rt.profile;function Et(){return typeof performance=="undefined"?"Date.now()":"performance.now()"}var lr,kr;function Yr(rn){lr=St.def(),rn(lr,"=",Et(),";"),typeof Sr=="string"?rn(rr,".count+=",Sr,";"):rn(rr,".count++;"),yi&&(mr?(kr=St.def(),rn(kr,"=",Ft,".getNumPendingQueries();")):rn(Ft,".beginQuery(",rr,");"))}function wn(rn){rn(rr,".cpuTime+=",Et(),"-",lr,";"),yi&&(mr?rn(Ft,".pushScopeStats(",kr,",",Ft,".getNumPendingQueries(),",rr,");"):rn(Ft,".endQuery();"))}function Ni(rn){var Li=St.def(jt,".profile");St(jt,".profile=",rn,";"),St.exit(jt,".profile=",Li,";")}var Fi;if(Ut){if(Dr(Ut)){Ut.enable?(Yr(St),wn(St.exit),Ni("true")):Ni("false");return}Fi=Ut.append(dt,St),Ni(Fi)}else Fi=St.def(jt,".profile");var xn=dt.block();Yr(xn),St("if(",Fi,"){",xn,"}");var on=dt.block();wn(on),St.exit("if(",Fi,"){",on,"}")}function th(dt,St,Rt,mr,Sr){var ar=dt.shared;function rr(Ft){switch(Ft){case Do:case Qu:case Hl:return 2;case ca:case Zf:case Kc:return 3;case ss:case p0:case Kf:return 4;default:return 1}}function jt(Ft,Ut,Et){var lr=ar.gl,kr=St.def(Ft,".location"),Yr=St.def(ar.attributes,"[",kr,"]"),wn=Et.state,Ni=Et.buffer,Fi=[Et.x,Et.y,Et.z,Et.w],xn=["buffer","normalized","offset","stride"];function on(){St("if(!",Yr,".buffer){",lr,".enableVertexAttribArray(",kr,");}");var Li=Et.type,Ki;if(Et.size?Ki=St.def(Et.size,"||",Ut):Ki=Ut,St("if(",Yr,".type!==",Li,"||",Yr,".size!==",Ki,"||",xn.map(function(Wn){return Yr+"."+Wn+"!=="+Et[Wn]}).join("||"),"){",lr,".bindBuffer(",yt,",",Ni,".buffer);",lr,".vertexAttribPointer(",[kr,Ki,Li,Et.normalized,Et.stride,Et.offset],");",Yr,".type=",Li,";",Yr,".size=",Ki,";",xn.map(function(Wn){return Yr+"."+Wn+"="+Et[Wn]+";"}).join(""),"}"),ni){var tn=Et.divisor;St("if(",Yr,".divisor!==",tn,"){",dt.instancing,".vertexAttribDivisorANGLE(",[kr,tn],");",Yr,".divisor=",tn,";}")}}function rn(){St("if(",Yr,".buffer){",lr,".disableVertexAttribArray(",kr,");",Yr,".buffer=null;","}if(",qi.map(function(Li,Ki){return Yr+"."+Li+"!=="+Fi[Ki]}).join("||"),"){",lr,".vertexAttrib4f(",kr,",",Fi,");",qi.map(function(Li,Ki){return Yr+"."+Li+"="+Fi[Ki]+";"}).join(""),"}")}wn===Hi?on():wn===Ji?rn():(St("if(",wn,"===",Hi,"){"),on(),St("}else{"),rn(),St("}"))}mr.forEach(function(Ft){var Ut=Ft.name,Et=Rt.attributes[Ut],lr;if(Et){if(!Sr(Et))return;lr=Et.append(dt,St)}else{if(!Sr(vi))return;var kr=dt.scopeAttrib(Ut);lr={},Object.keys(new Er).forEach(function(Yr){lr[Yr]=St.def(kr,".",Yr)})}jt(dt.link(Ft),rr(Ft.info.type),lr)})}function Ph(dt,St,Rt,mr,Sr,ar){for(var rr=dt.shared,jt=rr.gl,Ft,Ut=0;Ut1){for(var Rh=[],Pg=[],fy=0;fy>1)",Ni],");")}function tn(){Rt(Fi,".drawArraysInstancedANGLE(",[kr,Yr,wn,Ni],");")}Et&&Et!=="null"?on?Ki():(Rt("if(",Et,"){"),Ki(),Rt("}else{"),tn(),Rt("}")):tn()}function Li(){function Ki(){Rt(ar+".drawElements("+[kr,wn,xn,Yr+"<<(("+xn+"-"+Di+")>>1)"]+");")}function tn(){Rt(ar+".drawArrays("+[kr,Yr,wn]+");")}Et&&Et!=="null"?on?Ki():(Rt("if(",Et,"){"),Ki(),Rt("}else{"),tn(),Rt("}")):tn()}ni&&(typeof Ni!="number"||Ni>=0)?typeof Ni=="string"?(Rt("if(",Ni,">0){"),rn(),Rt("}else if(",Ni,"<0){"),Li(),Rt("}")):rn():Li()}function ea(dt,St,Rt,mr,Sr){var ar=$i(),rr=ar.proc("body",Sr);return ni&&(ar.instancing=rr.def(ar.shared.extensions,".angle_instanced_arrays")),dt(ar,rr,Rt,mr),ar.compile().body}function ja(dt,St,Rt,mr){_c(dt,St),Rt.useVAO?Rt.drawVAO?St(dt.shared.vao,".setVAO(",Rt.drawVAO.append(dt,St),");"):St(dt.shared.vao,".setVAO(",dt.shared.vao,".targetVAO);"):(St(dt.shared.vao,".setVAO(null);"),th(dt,St,Rt,mr.attributes,function(){return!0})),Ph(dt,St,Rt,mr.uniforms,function(){return!0},!1),Ih(dt,St,St,Rt)}function Vs(dt,St){var Rt=dt.proc("draw",1);_c(dt,Rt),Fu(dt,Rt,St.context),Lu(dt,Rt,St.framebuffer),rc(dt,Rt,St),fa(dt,Rt,St.state),xs(dt,Rt,St,!1,!0);var mr=St.shader.progVar.append(dt,Rt);if(Rt(dt.shared.gl,".useProgram(",mr,".program);"),St.shader.program)ja(dt,Rt,St,St.shader.program);else{Rt(dt.shared.vao,".setVAO(null);");var Sr=dt.global.def("{}"),ar=Rt.def(mr,".id"),rr=Rt.def(Sr,"[",ar,"]");Rt(dt.cond(rr).then(rr,".call(this,a0);").else(rr,"=",Sr,"[",ar,"]=",dt.link(function(jt){return ea(ja,dt,St,jt,1)}),"(",mr,");",rr,".call(this,a0);"))}Object.keys(St.state).length>0&&Rt(dt.shared.current,".dirty=true;"),dt.shared.vao&&Rt(dt.shared.vao,".setVAO(null);")}function wt(dt,St,Rt,mr){dt.batchId="a1",_c(dt,St);function Sr(){return!0}th(dt,St,Rt,mr.attributes,Sr),Ph(dt,St,Rt,mr.uniforms,Sr,!1),Ih(dt,St,St,Rt)}function xr(dt,St,Rt,mr){_c(dt,St);var Sr=Rt.contextDep,ar=St.def(),rr="a0",jt="a1",Ft=St.def();dt.shared.props=Ft,dt.batchId=ar;var Ut=dt.scope(),Et=dt.scope();St(Ut.entry,"for(",ar,"=0;",ar,"<",jt,";++",ar,"){",Ft,"=",rr,"[",ar,"];",Et,"}",Ut.exit);function lr(xn){return xn.contextDep&&Sr||xn.propDep}function kr(xn){return!lr(xn)}if(Rt.needsContext&&Fu(dt,Et,Rt.context),Rt.needsFramebuffer&&Lu(dt,Et,Rt.framebuffer),fa(dt,Et,Rt.state,lr),Rt.profile&&lr(Rt.profile)&&xs(dt,Et,Rt,!1,!0),mr)Rt.useVAO?Rt.drawVAO?lr(Rt.drawVAO)?Et(dt.shared.vao,".setVAO(",Rt.drawVAO.append(dt,Et),");"):Ut(dt.shared.vao,".setVAO(",Rt.drawVAO.append(dt,Ut),");"):Ut(dt.shared.vao,".setVAO(",dt.shared.vao,".targetVAO);"):(Ut(dt.shared.vao,".setVAO(null);"),th(dt,Ut,Rt,mr.attributes,kr),th(dt,Et,Rt,mr.attributes,lr)),Ph(dt,Ut,Rt,mr.uniforms,kr,!1),Ph(dt,Et,Rt,mr.uniforms,lr,!0),Ih(dt,Ut,Et,Rt);else{var Yr=dt.global.def("{}"),wn=Rt.shader.progVar.append(dt,Et),Ni=Et.def(wn,".id"),Fi=Et.def(Yr,"[",Ni,"]");Et(dt.shared.gl,".useProgram(",wn,".program);","if(!",Fi,"){",Fi,"=",Yr,"[",Ni,"]=",dt.link(function(xn){return ea(wt,dt,Rt,xn,2)}),"(",wn,");}",Fi,".call(this,a0[",ar,"],",ar,");")}}function br(dt,St){var Rt=dt.proc("batch",2);dt.batchId="0",_c(dt,Rt);var mr=!1,Sr=!0;Object.keys(St.context).forEach(function(Yr){mr=mr||St.context[Yr].propDep}),mr||(Fu(dt,Rt,St.context),Sr=!1);var ar=St.framebuffer,rr=!1;ar?(ar.propDep?mr=rr=!0:ar.contextDep&&mr&&(rr=!0),rr||Lu(dt,Rt,ar)):Lu(dt,Rt,null),St.state.viewport&&St.state.viewport.propDep&&(mr=!0);function jt(Yr){return Yr.contextDep&&mr||Yr.propDep}rc(dt,Rt,St),fa(dt,Rt,St.state,function(Yr){return!jt(Yr)}),(!St.profile||!jt(St.profile))&&xs(dt,Rt,St,!1,"a1"),St.contextDep=mr,St.needsContext=Sr,St.needsFramebuffer=rr;var Ft=St.shader.progVar;if(Ft.contextDep&&mr||Ft.propDep)xr(dt,Rt,St,null);else{var Ut=Ft.append(dt,Rt);if(Rt(dt.shared.gl,".useProgram(",Ut,".program);"),St.shader.program)xr(dt,Rt,St,St.shader.program);else{Rt(dt.shared.vao,".setVAO(null);");var Et=dt.global.def("{}"),lr=Rt.def(Ut,".id"),kr=Rt.def(Et,"[",lr,"]");Rt(dt.cond(kr).then(kr,".call(this,a0,a1);").else(kr,"=",Et,"[",lr,"]=",dt.link(function(Yr){return ea(xr,dt,St,Yr,2)}),"(",Ut,");",kr,".call(this,a0,a1);"))}}Object.keys(St.state).length>0&&Rt(dt.shared.current,".dirty=true;"),dt.shared.vao&&Rt(dt.shared.vao,".setVAO(null);")}function Qi(dt,St){var Rt=dt.proc("scope",3);dt.batchId="a2";var mr=dt.shared,Sr=mr.current;if(Fu(dt,Rt,St.context),St.framebuffer&&St.framebuffer.append(dt,Rt),Xt(Object.keys(St.state)).forEach(function(jt){var Ft=St.state[jt],Ut=Ft.append(dt,Rt);Ar(Ut)?Ut.forEach(function(Et,lr){Bi(Et)?Rt.set(dt.next[jt],"["+lr+"]",Et):Rt.set(dt.next[jt],"["+lr+"]",dt.link(Et,{stable:!0}))}):Dr(Ft)?Rt.set(mr.next,"."+jt,dt.link(Ut,{stable:!0})):Rt.set(mr.next,"."+jt,Ut)}),xs(dt,Rt,St,!0,!0),[zp,Lg,r1,bc,cd].forEach(function(jt){var Ft=St.draw[jt];if(Ft){var Ut=Ft.append(dt,Rt);Bi(Ut)?Rt.set(mr.draw,"."+jt,Ut):Rt.set(mr.draw,"."+jt,dt.link(Ut),{stable:!0})}}),Object.keys(St.uniforms).forEach(function(jt){var Ft=St.uniforms[jt].append(dt,Rt);Array.isArray(Ft)&&(Ft="["+Ft.map(function(Ut){return Bi(Ut)?Ut:dt.link(Ut,{stable:!0})})+"]"),Rt.set(mr.uniforms,"["+dt.link(gt.id(jt),{stable:!0})+"]",Ft)}),Object.keys(St.attributes).forEach(function(jt){var Ft=St.attributes[jt].append(dt,Rt),Ut=dt.scopeAttrib(jt);Object.keys(new Er).forEach(function(Et){Rt.set(Ut,"."+Et,Ft[Et])})}),St.scopeVAO){var ar=St.scopeVAO.append(dt,Rt);Bi(ar)?Rt.set(mr.vao,".targetVAO",ar):Rt.set(mr.vao,".targetVAO",dt.link(ar,{stable:!0}))}function rr(jt){var Ft=St.shader[jt];if(Ft){var Ut=Ft.append(dt,Rt);Bi(Ut)?Rt.set(mr.shader,"."+jt,Ut):Rt.set(mr.shader,"."+jt,dt.link(Ut,{stable:!0}))}}rr(Rp),rr(ud),Object.keys(St.state).length>0&&(Rt(Sr,".dirty=true;"),Rt.exit(Sr,".dirty=true;")),Rt("a1(",dt.shared.context,",a0,",dt.batchId,");")}function Va(dt){if(!(typeof dt!="object"||Ar(dt))){for(var St=Object.keys(dt),Rt=0;Rt=0;--ea){var ja=yn[ea];ja&&ja(Lr,null,0)}Mt.flush(),Qr&&Qr.update()}function Ma(){!On&&yn.length>0&&(On=p.next(Nn))}function Sl(){On&&(p.cancel(Nn),On=null)}function tc(ea){ea.preventDefault(),gr=!0,Sl(),$n.forEach(function(ja){ja()})}function za(ea){Mt.getError(),gr=!1,Tr.restore(),mn.restore(),ni.restore(),Or.restore(),Rr.restore(),zi.restore(),Mi.restore(),Qr&&Qr.restore(),mi.procs.refresh(),Ma(),Ti.forEach(function(ja){ja()})}Bi&&(Bi.addEventListener(Zn,tc,!1),Bi.addEventListener(Ua,za,!1));function Fh(){yn.length=0,Sl(),Bi&&(Bi.removeEventListener(Zn,tc),Bi.removeEventListener(Ua,za)),mn.clear(),zi.clear(),Rr.clear(),Mi.clear(),Or.clear(),Ur.clear(),ni.clear(),Qr&&Qr.clear(),$i.forEach(function(ea){ea()})}function ls(ea){function ja(ar){var rr=e({},ar);delete rr.uniforms,delete rr.attributes,delete rr.context,delete rr.vao,"stencil"in rr&&rr.stencil.op&&(rr.stencil.opBack=rr.stencil.opFront=rr.stencil.op,delete rr.stencil.op);function jt(Ft){if(Ft in rr){var Ut=rr[Ft];delete rr[Ft],Object.keys(Ut).forEach(function(Et){rr[Ft+"."+Et]=Ut[Et]})}}return jt("blend"),jt("depth"),jt("cull"),jt("stencil"),jt("polygonOffset"),jt("scissor"),jt("sample"),"vao"in ar&&(rr.vao=ar.vao),rr}function Vs(ar,rr){var jt={},Ft={};return Object.keys(ar).forEach(function(Ut){var Et=ar[Ut];if(h.isDynamic(Et)){Ft[Ut]=h.unbox(Et,Ut);return}else if(rr&&Array.isArray(Et)){for(var lr=0;lr0)return dt.call(this,mr(ar|0),ar|0)}else if(Array.isArray(ar)){if(ar.length)return dt.call(this,ar,ar.length)}else return Zi.call(this,ar)}return e(Sr,{stats:Va,destroy:function(){us.destroy()}})}var _f=zi.setFBO=ls({framebuffer:h.define.call(null,ys,"framebuffer")});function eh(ea,ja){var Vs=0;mi.procs.poll();var wt=ja.color;wt&&(Mt.clearColor(+wt[0]||0,+wt[1]||0,+wt[2]||0,+wt[3]||0),Vs|=tl),"depth"in ja&&(Mt.clearDepth(+ja.depth),Vs|=fo),"stencil"in ja&&(Mt.clearStencil(ja.stencil|0),Vs|=si),Mt.clear(Vs)}function Lh(ea){if("framebuffer"in ea)if(ea.framebuffer&&ea.framebuffer_reglType==="framebufferCube")for(var ja=0;ja<6;++ja)_f(e({framebuffer:ea.framebuffer.faces[ja]},ea),eh);else _f(ea,eh);else eh(null,ea)}function Fu(ea){yn.push(ea);function ja(){var Vs=ec(yn,ea);function wt(){var xr=ec(yn,wt);yn[xr]=yn[yn.length-1],yn.length-=1,yn.length<=0&&Sl()}yn[Vs]=wt}return Ma(),{cancel:ja}}function Lu(){var ea=di.viewport,ja=di.scissor_box;ea[0]=ea[1]=ja[0]=ja[1]=0,Lr.viewportWidth=Lr.framebufferWidth=Lr.drawingBufferWidth=ea[2]=ja[2]=Mt.drawingBufferWidth,Lr.viewportHeight=Lr.framebufferHeight=Lr.drawingBufferHeight=ea[3]=ja[3]=Mt.drawingBufferHeight}function rc(){Lr.tick+=1,Lr.time=_c(),Lu(),mi.procs.poll()}function fa(){Or.refresh(),Lu(),mi.procs.refresh(),Qr&&Qr.update()}function _c(){return(d()-fn)/1e3}fa();function xs(ea,ja){var Vs;switch(ea){case"frame":return Fu(ja);case"lost":Vs=$n;break;case"restore":Vs=Ti;break;case"destroy":Vs=$i;break;default:}return Vs.push(ja),{cancel:function(){for(var wt=0;wt=0},read:ci,destroy:Fh,_gl:Mt,_refresh:fa,poll:function(){rc(),Qr&&Qr.update()},now:_c,stats:qr,getCachedCode:th,preloadCachedCode:Ph});return gt.onDone(null,Ih),Ih}return Jc}))});var pXe=W((Wei,dXe)=>{"use strict";var ppr=X1();dXe.exports=function(t){if(t?typeof t=="string"&&(t={container:t}):t={},fXe(t)?t={container:t}:vpr(t)?t={container:t}:gpr(t)?t={gl:t}:t=ppr(t,{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),t.pixelRatio||(t.pixelRatio=window.pixelRatio||1),t.gl)return t.gl;if(t.canvas&&(t.container=t.canvas.parentNode),t.container){if(typeof t.container=="string"){var r=document.querySelector(t.container);if(!r)throw Error("Element "+t.container+" is not found");t.container=r}fXe(t.container)?(t.canvas=t.container,t.container=t.canvas.parentNode):t.canvas||(t.canvas=hXe(),t.container.appendChild(t.canvas),cXe(t))}else if(!t.canvas)if(typeof document!="undefined")t.container=document.body||document.documentElement,t.canvas=hXe(),t.container.appendChild(t.canvas),cXe(t);else throw Error("Not DOM environment. Use headless-gl.");return t.gl||["webgl","experimental-webgl","webgl-experimental"].some(function(i){try{t.gl=t.canvas.getContext(i,t.attrs)}catch(n){}return t.gl}),t.gl};function cXe(e){if(e.container)if(e.container==document.body)document.body.style.width||(e.canvas.width=e.width||e.pixelRatio*window.innerWidth),document.body.style.height||(e.canvas.height=e.height||e.pixelRatio*window.innerHeight);else{var t=e.container.getBoundingClientRect();e.canvas.width=e.width||t.right-t.left,e.canvas.height=e.height||t.bottom-t.top}}function fXe(e){return typeof e.getContext=="function"&&"width"in e&&"height"in e}function vpr(e){return typeof e.nodeName=="string"&&typeof e.appendChild=="function"&&typeof e.getBoundingClientRect=="function"}function gpr(e){return typeof e.drawArrays=="function"||typeof e.drawElements=="function"}function hXe(){var e=document.createElement("canvas");return e.style.position="absolute",e.style.top=0,e.style.left=0,e}});var gXe=W((Yei,vXe)=>{"use strict";var mpr=wte(),ypr=[32,126];vXe.exports=xpr;function xpr(e){e=e||{};var t=e.shape?e.shape:e.canvas?[e.canvas.width,e.canvas.height]:[512,512],r=e.canvas||document.createElement("canvas"),i=e.font,n=typeof e.step=="number"?[e.step,e.step]:e.step||[32,32],a=e.chars||ypr;if(i&&typeof i!="string"&&(i=mpr(i)),!Array.isArray(a))a=String(a).split("");else if(a.length===2&&typeof a[0]=="number"&&typeof a[1]=="number"){for(var o=[],s=a[0],l=0;s<=a[1];s++)o[l++]=String.fromCharCode(s);a=o}t=t.slice(),r.width=t[0],r.height=t[1];var u=r.getContext("2d");u.fillStyle="#000",u.fillRect(0,0,r.width,r.height),u.font=i,u.textAlign="center",u.textBaseline="middle",u.fillStyle="#fff";for(var c=n[0]/2,f=n[1]/2,s=0;st[0]-n[0]/2&&(c=n[0]/2,f+=n[1]);return r}});var Ete=W(tu=>{"use strict";"use restrict";var Ste=32;tu.INT_BITS=Ste;tu.INT_MAX=2147483647;tu.INT_MIN=-1<0)-(e<0)};tu.abs=function(e){var t=e>>Ste-1;return(e^t)-t};tu.min=function(e,t){return t^(e^t)&-(e65535)<<4,e>>>=t,r=(e>255)<<3,e>>>=r,t|=r,r=(e>15)<<2,e>>>=r,t|=r,r=(e>3)<<1,e>>>=r,t|=r,t|e>>1};tu.log10=function(e){return e>=1e9?9:e>=1e8?8:e>=1e7?7:e>=1e6?6:e>=1e5?5:e>=1e4?4:e>=1e3?3:e>=100?2:e>=10?1:0};tu.popCount=function(e){return e=e-(e>>>1&1431655765),e=(e&858993459)+(e>>>2&858993459),(e+(e>>>4)&252645135)*16843009>>>24};function mXe(e){var t=32;return e&=-e,e&&t--,e&65535&&(t-=16),e&16711935&&(t-=8),e&252645135&&(t-=4),e&858993459&&(t-=2),e&1431655765&&(t-=1),t}tu.countTrailingZeros=mXe;tu.nextPow2=function(e){return e+=e===0,--e,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e+1};tu.prevPow2=function(e){return e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e-(e>>>1)};tu.parity=function(e){return e^=e>>>16,e^=e>>>8,e^=e>>>4,e&=15,27030>>>e&1};var nk=new Array(256);(function(e){for(var t=0;t<256;++t){var r=t,i=t,n=7;for(r>>>=1;r;r>>>=1)i<<=1,i|=r&1,--n;e[t]=i<>>8&255]<<16|nk[e>>>16&255]<<8|nk[e>>>24&255]};tu.interleave2=function(e,t){return e&=65535,e=(e|e<<8)&16711935,e=(e|e<<4)&252645135,e=(e|e<<2)&858993459,e=(e|e<<1)&1431655765,t&=65535,t=(t|t<<8)&16711935,t=(t|t<<4)&252645135,t=(t|t<<2)&858993459,t=(t|t<<1)&1431655765,e|t<<1};tu.deinterleave2=function(e,t){return e=e>>>t&1431655765,e=(e|e>>>1)&858993459,e=(e|e>>>2)&252645135,e=(e|e>>>4)&16711935,e=(e|e>>>16)&65535,e<<16>>16};tu.interleave3=function(e,t,r){return e&=1023,e=(e|e<<16)&4278190335,e=(e|e<<8)&251719695,e=(e|e<<4)&3272356035,e=(e|e<<2)&1227133513,t&=1023,t=(t|t<<16)&4278190335,t=(t|t<<8)&251719695,t=(t|t<<4)&3272356035,t=(t|t<<2)&1227133513,e|=t<<1,r&=1023,r=(r|r<<16)&4278190335,r=(r|r<<8)&251719695,r=(r|r<<4)&3272356035,r=(r|r<<2)&1227133513,e|r<<2};tu.deinterleave3=function(e,t){return e=e>>>t&1227133513,e=(e|e>>>2)&3272356035,e=(e|e>>>4)&251719695,e=(e|e>>>8)&4278190335,e=(e|e>>>16)&1023,e<<22>>22};tu.nextCombination=function(e){var t=e|e-1;return t+1|(~t&-~t)-1>>>mXe(e)+1}});var bXe=W((Zei,xXe)=>{"use strict";function yXe(e,t,r){var i=e[r]|0;if(i<=0)return[];var n=new Array(i),a;if(r===e.length-1)for(a=0;a0)return bpr(e|0,t);break;case"object":if(typeof e.length=="number")return yXe(e,t,0);break}return[]}xXe.exports=_pr});var RXe=W(po=>{"use strict";var H2=Ete(),cf=bXe(),_Xe=t_().Buffer;window.__TYPEDARRAY_POOL||(window.__TYPEDARRAY_POOL={UINT8:cf([32,0]),UINT16:cf([32,0]),UINT32:cf([32,0]),BIGUINT64:cf([32,0]),INT8:cf([32,0]),INT16:cf([32,0]),INT32:cf([32,0]),BIGINT64:cf([32,0]),FLOAT:cf([32,0]),DOUBLE:cf([32,0]),DATA:cf([32,0]),UINT8C:cf([32,0]),BUFFER:cf([32,0])});var wpr=typeof Uint8ClampedArray!="undefined",Tpr=typeof BigUint64Array!="undefined",Apr=typeof BigInt64Array!="undefined",_u=window.__TYPEDARRAY_POOL;_u.UINT8C||(_u.UINT8C=cf([32,0]));_u.BIGUINT64||(_u.BIGUINT64=cf([32,0]));_u.BIGINT64||(_u.BIGINT64=cf([32,0]));_u.BUFFER||(_u.BUFFER=cf([32,0]));var pz=_u.DATA,vz=_u.BUFFER;po.free=function(t){if(_Xe.isBuffer(t))vz[H2.log2(t.length)].push(t);else{if(Object.prototype.toString.call(t)!=="[object ArrayBuffer]"&&(t=t.buffer),!t)return;var r=t.length||t.byteLength,i=H2.log2(r)|0;pz[i].push(t)}};function wXe(e){if(e){var t=e.length||e.byteLength,r=H2.log2(t);pz[r].push(e)}}function Mpr(e){wXe(e.buffer)}po.freeUint8=po.freeUint16=po.freeUint32=po.freeBigUint64=po.freeInt8=po.freeInt16=po.freeInt32=po.freeBigInt64=po.freeFloat32=po.freeFloat=po.freeFloat64=po.freeDouble=po.freeUint8Clamped=po.freeDataView=Mpr;po.freeArrayBuffer=wXe;po.freeBuffer=function(t){vz[H2.log2(t.length)].push(t)};po.malloc=function(t,r){if(r===void 0||r==="arraybuffer")return Jh(t);switch(r){case"uint8":return kte(t);case"uint16":return TXe(t);case"uint32":return AXe(t);case"int8":return MXe(t);case"int16":return SXe(t);case"int32":return EXe(t);case"float":case"float32":return kXe(t);case"double":case"float64":return CXe(t);case"uint8_clamped":return DXe(t);case"bigint64":return LXe(t);case"biguint64":return FXe(t);case"buffer":return IXe(t);case"data":case"dataview":return PXe(t);default:return null}return null};function Jh(t){var t=H2.nextPow2(t),r=H2.log2(t),i=pz[r];return i.length>0?i.pop():new ArrayBuffer(t)}po.mallocArrayBuffer=Jh;function kte(e){return new Uint8Array(Jh(e),0,e)}po.mallocUint8=kte;function TXe(e){return new Uint16Array(Jh(2*e),0,e)}po.mallocUint16=TXe;function AXe(e){return new Uint32Array(Jh(4*e),0,e)}po.mallocUint32=AXe;function MXe(e){return new Int8Array(Jh(e),0,e)}po.mallocInt8=MXe;function SXe(e){return new Int16Array(Jh(2*e),0,e)}po.mallocInt16=SXe;function EXe(e){return new Int32Array(Jh(4*e),0,e)}po.mallocInt32=EXe;function kXe(e){return new Float32Array(Jh(4*e),0,e)}po.mallocFloat32=po.mallocFloat=kXe;function CXe(e){return new Float64Array(Jh(8*e),0,e)}po.mallocFloat64=po.mallocDouble=CXe;function DXe(e){return wpr?new Uint8ClampedArray(Jh(e),0,e):kte(e)}po.mallocUint8Clamped=DXe;function FXe(e){return Tpr?new BigUint64Array(Jh(8*e),0,e):null}po.mallocBigUint64=FXe;function LXe(e){return Apr?new BigInt64Array(Jh(8*e),0,e):null}po.mallocBigInt64=LXe;function PXe(e){return new DataView(Jh(e),0,e)}po.mallocDataView=PXe;function IXe(e){e=H2.nextPow2(e);var t=H2.log2(e),r=vz[t];return r.length>0?r.pop():new _Xe(e)}po.mallocBuffer=IXe;po.clearCache=function(){for(var t=0;t<32;++t)_u.UINT8[t].length=0,_u.UINT16[t].length=0,_u.UINT32[t].length=0,_u.INT8[t].length=0,_u.INT16[t].length=0,_u.INT32[t].length=0,_u.FLOAT[t].length=0,_u.DOUBLE[t].length=0,_u.BIGUINT64[t].length=0,_u.BIGINT64[t].length=0,_u.UINT8C[t].length=0,pz[t].length=0,vz[t].length=0}});var BXe=W((Jei,zXe)=>{"use strict";var Spr=Object.prototype.toString;zXe.exports=function(e){var t;return Spr.call(e)==="[object Object]"&&(t=Object.getPrototypeOf(e),t===null||t===Object.getPrototypeOf({}))}});var Cte=W((Qei,qXe)=>{qXe.exports=function(t,r){r||(r=[0,""]),t=String(t);var i=parseFloat(t,10);return r[0]=i,r[1]=t.match(/[\d.\-\+]*\s*(.*)/)[1]||"",r}});var UXe=W((eti,NXe)=>{"use strict";var Epr=Cte();NXe.exports=OXe;var ak=96;function Dte(e,t){var r=Epr(getComputedStyle(e).getPropertyValue(t));return r[0]*OXe(r[1],e)}function kpr(e,t){var r=document.createElement("div");r.style["font-size"]="128"+e,t.appendChild(r);var i=Dte(r,"font-size")/128;return t.removeChild(r),i}function OXe(e,t){switch(t=t||document.body,e=(e||"px").trim().toLowerCase(),(t===window||t===document)&&(t=document.body),e){case"%":return t.clientHeight/100;case"ch":case"ex":return kpr(e,t);case"em":return Dte(t,"font-size");case"rem":return Dte(document.body,"font-size");case"vw":return window.innerWidth/100;case"vh":return window.innerHeight/100;case"vmin":return Math.min(window.innerWidth,window.innerHeight)/100;case"vmax":return Math.max(window.innerWidth,window.innerHeight)/100;case"in":return ak;case"cm":return ak/2.54;case"mm":return ak/25.4;case"pt":return ak/72;case"pc":return ak/6}return 1}});var HXe=W((tti,GXe)=>{"use strict";GXe.exports=yz;var Cpr=yz.canvas=document.createElement("canvas"),gz=Cpr.getContext("2d"),VXe=mz([32,126]);yz.createPairs=mz;yz.ascii=VXe;function yz(e,t){Array.isArray(e)&&(e=e.join(", "));var r={},i,n=16,a=.05;t&&(t.length===2&&typeof t[0]=="number"?i=mz(t):Array.isArray(t)?i=t:(t.o?i=mz(t.o):t.pairs&&(i=t.pairs),t.fontSize&&(n=t.fontSize),t.threshold!=null&&(a=t.threshold))),i||(i=VXe),gz.font=n+"px "+e;for(var o=0;on*a){var c=(u-l)/n;r[s]=c*1e3}}return r}function mz(e){for(var t=[],r=e[0];r<=e[1];r++)for(var i=String.fromCharCode(r),n=e[0];n{"use strict";WXe.exports=j2;j2.canvas=document.createElement("canvas");j2.cache={};function j2(o,t){t||(t={}),(typeof o=="string"||Array.isArray(o))&&(t.family=o);var r=Array.isArray(t.family)?t.family.join(", "):t.family;if(!r)throw Error("`family` must be defined");var i=t.size||t.fontSize||t.em||48,n=t.weight||t.fontWeight||"",a=t.style||t.fontStyle||"",o=[a,n,i].join(" ")+"px "+r,s=t.origin||"top";if(j2.cache[r]&&i<=j2.cache[r].em)return jXe(j2.cache[r],s);var l=t.canvas||j2.canvas,u=l.getContext("2d"),c={upper:t.upper!==void 0?t.upper:"H",lower:t.lower!==void 0?t.lower:"x",descent:t.descent!==void 0?t.descent:"p",ascent:t.ascent!==void 0?t.ascent:"h",tittle:t.tittle!==void 0?t.tittle:"i",overshoot:t.overshoot!==void 0?t.overshoot:"O"},f=Math.ceil(i*1.5);l.height=f,l.width=f*.5,u.font=o;var h="H",p={top:0};u.clearRect(0,0,f,f),u.textBaseline="top",u.fillStyle="black",u.fillText(h,0,0);var d=K1(u.getImageData(0,0,f,f));u.clearRect(0,0,f,f),u.textBaseline="bottom",u.fillText(h,0,f);var v=K1(u.getImageData(0,0,f,f));p.lineHeight=p.bottom=f-v+d,u.clearRect(0,0,f,f),u.textBaseline="alphabetic",u.fillText(h,0,f);var m=K1(u.getImageData(0,0,f,f)),g=f-m-1+d;p.baseline=p.alphabetic=g,u.clearRect(0,0,f,f),u.textBaseline="middle",u.fillText(h,0,f*.5);var w=K1(u.getImageData(0,0,f,f));p.median=p.middle=f-w-1+d-f*.5,u.clearRect(0,0,f,f),u.textBaseline="hanging",u.fillText(h,0,f*.5);var _=K1(u.getImageData(0,0,f,f));p.hanging=f-_-1+d-f*.5,u.clearRect(0,0,f,f),u.textBaseline="ideographic",u.fillText(h,0,f);var b=K1(u.getImageData(0,0,f,f));if(p.ideographic=f-b-1+d,c.upper&&(u.clearRect(0,0,f,f),u.textBaseline="top",u.fillText(c.upper,0,0),p.upper=K1(u.getImageData(0,0,f,f)),p.capHeight=p.baseline-p.upper),c.lower&&(u.clearRect(0,0,f,f),u.textBaseline="top",u.fillText(c.lower,0,0),p.lower=K1(u.getImageData(0,0,f,f)),p.xHeight=p.baseline-p.lower),c.tittle&&(u.clearRect(0,0,f,f),u.textBaseline="top",u.fillText(c.tittle,0,0),p.tittle=K1(u.getImageData(0,0,f,f))),c.ascent&&(u.clearRect(0,0,f,f),u.textBaseline="top",u.fillText(c.ascent,0,0),p.ascent=K1(u.getImageData(0,0,f,f))),c.descent&&(u.clearRect(0,0,f,f),u.textBaseline="top",u.fillText(c.descent,0,0),p.descent=$Xe(u.getImageData(0,0,f,f))),c.overshoot){u.clearRect(0,0,f,f),u.textBaseline="top",u.fillText(c.overshoot,0,0);var S=$Xe(u.getImageData(0,0,f,f));p.overshoot=S-g}for(var x in p)p[x]/=i;return p.em=i,j2.cache[r]=p,jXe(p,s)}function jXe(e,t){var r={};typeof t=="string"&&(t=e[t]);for(var i in e)i!=="em"&&(r[i]=e[i]-t);return r}function K1(e){for(var t=e.height,r=e.data,i=3;i0;i-=4)if(r[i]!==0)return Math.floor((i-3)*.25/t)}});var JXe=W((iti,KXe)=>{"use strict";var l6=uXe(),Dpr=X1(),Fpr=Mte(),Lpr=pXe(),Ppr=lte(),Fte=HE(),Ipr=gXe(),$2=RXe(),Rpr=Z4(),zpr=BXe(),Bpr=Cte(),qpr=UXe(),Opr=HXe(),Npr=Gu(),Upr=YXe(),Vpr=N_(),Gpr=Ete(),XXe=Gpr.nextPow2,ZXe=new Ppr,bz=!1;document.body&&(xz=document.body.appendChild(document.createElement("div")),xz.style.font="italic small-caps bold condensed 16px/2 cursive",getComputedStyle(xz).fontStretch&&(bz=!0),document.body.removeChild(xz));var xz,Zo=function(t){Hpr(t)?(t={regl:t},this.gl=t.regl._gl):this.gl=Lpr(t),this.shader=ZXe.get(this.gl),this.shader?this.regl=this.shader.regl:this.regl=t.regl||Fpr({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(),ZXe.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(zpr(t)?t:{})};Zo.prototype.createShader=function(){var t=this.regl,r=t({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:t.prop("count"),offset:t.prop("offset"),attributes:{charOffset:{offset:4,stride:8,buffer:t.this("sizeBuffer")},width:{offset:0,stride:8,buffer:t.this("sizeBuffer")},char:t.this("charBuffer"),position:t.this("position")},uniforms:{atlasSize:function(n,a){return[a.atlas.width,a.atlas.height]},atlasDim:function(n,a){return[a.atlas.cols,a.atlas.rows]},atlas:function(n,a){return a.atlas.texture},charStep:function(n,a){return a.atlas.step},em:function(n,a){return a.atlas.em},color:t.prop("color"),opacity:t.prop("opacity"),viewport:t.this("viewportArray"),scale:t.this("scale"),align:t.prop("align"),baseline:t.prop("baseline"),translate:t.this("translate"),positionOffset:t.prop("positionOffset")},primitive:"points",viewport:t.this("viewport"),vert:` +`),Er;if(yt&&(Er=Cg(tr),yt[Er]))return yt[Er].apply(null,gr);var Wr=Function.apply(null,sr.concat(tr));return yt&&(yt[Er]=Wr),Wr.apply(null,gr)}return{global:ei,link:pr,block:Or,proc:Vi,scope:Jr,cond:Qr,compile:yi}}var Oi="xyzw".split(""),Di=5121,ji=1,en=2,Zr=0,si=1,cn=2,Dn=3,wa=4,Ka=5,Ia=6,_o="dither",ca="blend.enable",vl="blend.color",ls="blend.equation",yo="blend.func",pi="depth.enable",Da="depth.func",Fs="depth.range",Sl="depth.mask",Du="colorMask",bf="cull.enable",Zc="cull.face",Jf="frontFace",Qu="lineWidth",Dh="polygonOffset.enable",Fh="polygonOffset.offset",zp="sample.alpha",Fg="sample.enable",r1="sample.coverage",Ox="stencil.enable",i1="stencil.mask",Kc="stencil.func",py="stencil.opFront",n1="stencil.opBack",Lg="scissor.enable",a1="scissor.box",Lh="viewport",Pg="profile",Bp="framebuffer",qp="vert",fd="frag",Op="elements",hd="primitive",o1="count",Ig="offset",_c="instances",ie="vao",se="Width",de="Height",ve=Bp+se,ke=Bp+de,Me=Lh+se,Pe=Lh+de,Ze="drawingBuffer",it=Ze+se,Xe=Ze+de,at=[yo,ls,Kc,py,n1,r1,Lh,a1,Fh],xt=34962,It=34963,Gt=2884,or=3042,Mr=3024,Gr=2960,_i=2929,on=3089,mn=32823,Tn=32926,Pn=32928,no=5126,Do=35664,fa=35665,us=35666,El=5124,ec=35667,Qf=35668,m0=35669,gu=35670,Wl=35671,Jc=35672,eh=35673,th=35674,rh=35675,Ph=35676,_f=35678,y0=35680,Np=4,z=1028,U=1029,Z=2304,ne=2305,le=32775,he=32776,De=519,ye=7680,Re=0,He=1,We=32774,ut=513,ct=36160,Nt=36064,Yt={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},vt={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},Bt={cw:Z,ccw:ne};function Xt(Be){return Array.isArray(Be)||dt(Be)||St(Be)}function Kt(Be){return Be.sort(function(yt,At){return yt===Lh?-1:At===Lh?1:yt=1,sr>=2,yt)}else if(At===wa){var gr=Be.data;return new Lt(gr.thisDep,gr.contextDep,gr.propDep,yt)}else{if(At===Ka)return new Lt(!1,!1,!1,yt);if(At===Ia){for(var Tr=!1,pr=!1,Or=!1,Jr=0;Jr=1&&(pr=!0),ei>=2&&(Or=!0)}else Qr.type===wa&&(Tr=Tr||Qr.data.thisDep,pr=pr||Qr.data.contextDep,Or=Or||Qr.data.propDep)}return new Lt(Tr,pr,Or,yt)}else return new Lt(At===Dn,At===cn,At===si,yt)}}var vi=new Lt(!1,!1,!1,function(){});function Ri(Be,yt,At,sr,gr,Tr,pr,Or,Jr,Qr,ei,vn,Vi,yi,Ir,tr){var Er=Qr.Record,Wr={add:32774,subtract:32778,"reverse subtract":32779};At.ext_blend_minmax&&(Wr.min=le,Wr.max=he);var oi=At.angle_instanced_arrays,Vr=At.webgl_draw_buffers,Mi=At.oes_vertex_array_object,bi={dirty:!0,profile:tr.profile},xn={},Nr=[],zr={},Bi={};function mi(ft){return ft.replace(".","_")}function ci(ft,Mt,Rt){var mr=mi(ft);Nr.push(ft),xn[mr]=bi[mr]=!!Rt,zr[mr]=Mt}function hi(ft,Mt,Rt){var mr=mi(ft);Nr.push(ft),Array.isArray(Rt)?(bi[mr]=Rt.slice(),xn[mr]=Rt.slice()):bi[mr]=xn[mr]=Rt,Bi[mr]=Mt}function qi(ft){return!!isNaN(ft)}ci(_o,Mr),ci(ca,or),hi(vl,"blendColor",[0,0,0,0]),hi(ls,"blendEquationSeparate",[We,We]),hi(yo,"blendFuncSeparate",[He,Re,He,Re]),ci(pi,_i,!0),hi(Da,"depthFunc",ut),hi(Fs,"depthRange",[0,1]),hi(Sl,"depthMask",!0),hi(Du,Du,[!0,!0,!0,!0]),ci(bf,Gt),hi(Zc,"cullFace",U),hi(Jf,Jf,ne),hi(Qu,Qu,1),ci(Dh,mn),hi(Fh,"polygonOffset",[0,0]),ci(zp,Tn),ci(Fg,Pn),hi(r1,"sampleCoverage",[1,!1]),ci(Ox,Gr),hi(i1,"stencilMask",-1),hi(Kc,"stencilFunc",[De,0,-1]),hi(py,"stencilOpSeparate",[z,ye,ye,ye]),hi(n1,"stencilOpSeparate",[U,ye,ye,ye]),ci(Lg,on),hi(a1,"scissor",[0,0,Be.drawingBufferWidth,Be.drawingBufferHeight]),hi(Lh,Lh,[0,0,Be.drawingBufferWidth,Be.drawingBufferHeight]);var bn={gl:Be,context:Vi,strings:yt,next:xn,current:bi,draw:vn,elements:Tr,buffer:gr,shader:ei,attributes:Qr.state,vao:Qr,uniforms:Jr,framebuffer:Or,extensions:At,timer:yi,isBufferArgs:Xt},Wn={primTypes:ns,compareFuncs:vt,blendFuncs:Yt,blendEquations:Wr,stencilOps:Ct,glTypes:Cr,orientationType:Bt};Vr&&(Wn.backBuffer=[U],Wn.drawBuffer=T(sr.maxDrawbuffers,function(ft){return ft===0?[0]:T(ft,function(Mt){return Nt+Mt})}));var Ti=0;function Wi(){var ft=$r({cache:Ir}),Mt=ft.link,Rt=ft.global;ft.id=Ti++,ft.batchId="0";var mr=Mt(bn),Sr=ft.shared={props:"a0"};Object.keys(bn).forEach(function(Vt){Sr[Vt]=Rt.def(mr,".",Vt)});var ar=ft.next={},ir=ft.current={};Object.keys(Bi).forEach(function(Vt){Array.isArray(bi[Vt])&&(ar[Vt]=Rt.def(Sr.next,".",Vt),ir[Vt]=Rt.def(Sr.current,".",Vt))});var $t=ft.constants={};Object.keys(Wn).forEach(function(Vt){$t[Vt]=Rt.def(JSON.stringify(Wn[Vt]))}),ft.invoke=function(Vt,Et){switch(Et.type){case Zr:var ur=["this",Sr.context,Sr.props,ft.batchId];return Vt.def(Mt(Et.data),".call(",ur.slice(0,Math.max(Et.data.length+1,4)),")");case si:return Vt.def(Sr.props,Et.data);case cn:return Vt.def(Sr.context,Et.data);case Dn:return Vt.def("this",Et.data);case wa:return Et.data.append(ft,Vt),Et.data.ref;case Ka:return Et.data.toString();case Ia:return Et.data.map(function(kr){return ft.invoke(Vt,kr)})}},ft.attribCache={};var Dt={};return ft.scopeAttrib=function(Vt){var Et=yt.id(Vt);if(Et in Dt)return Dt[Et];var ur=Qr.scope[Et];ur||(ur=Qr.scope[Et]=new Er);var kr=Dt[Et]=Mt(ur);return kr},ft}function Un(ft){var Mt=ft.static,Rt=ft.dynamic,mr;if(Pg in Mt){var Sr=!!Mt[Pg];mr=Hr(function(ir,$t){return Sr}),mr.enable=Sr}else if(Pg in Rt){var ar=Rt[Pg];mr=ai(ar,function(ir,$t){return ir.invoke($t,ar)})}return mr}function Vn(ft,Mt){var Rt=ft.static,mr=ft.dynamic;if(Bp in Rt){var Sr=Rt[Bp];return Sr?(Sr=Or.getFramebuffer(Sr),Hr(function(ir,$t){var Dt=ir.link(Sr),Vt=ir.shared;$t.set(Vt.framebuffer,".next",Dt);var Et=Vt.context;return $t.set(Et,"."+ve,Dt+".width"),$t.set(Et,"."+ke,Dt+".height"),Dt})):Hr(function(ir,$t){var Dt=ir.shared;$t.set(Dt.framebuffer,".next","null");var Vt=Dt.context;return $t.set(Vt,"."+ve,Vt+"."+it),$t.set(Vt,"."+ke,Vt+"."+Xe),"null"})}else if(Bp in mr){var ar=mr[Bp];return ai(ar,function(ir,$t){var Dt=ir.invoke($t,ar),Vt=ir.shared,Et=Vt.framebuffer,ur=$t.def(Et,".getFramebuffer(",Dt,")");$t.set(Et,".next",ur);var kr=Vt.context;return $t.set(kr,"."+ve,ur+"?"+ur+".width:"+kr+"."+it),$t.set(kr,"."+ke,ur+"?"+ur+".height:"+kr+"."+Xe),ur})}else return null}function Sa(ft,Mt,Rt){var mr=ft.static,Sr=ft.dynamic;function ar(Dt){if(Dt in mr){var Vt=mr[Dt],Et=!0,ur=Vt.x|0,kr=Vt.y|0,Xr,An;return"width"in Vt?Xr=Vt.width|0:Et=!1,"height"in Vt?An=Vt.height|0:Et=!1,new Lt(!Et&&Mt&&Mt.thisDep,!Et&&Mt&&Mt.contextDep,!Et&&Mt&&Mt.propDep,function(_n,sn){var nn=_n.shared.context,Li=Xr;"width"in Vt||(Li=sn.def(nn,".",ve,"-",ur));var Ji=An;return"height"in Vt||(Ji=sn.def(nn,".",ke,"-",kr)),[ur,kr,Li,Ji]})}else if(Dt in Sr){var Ui=Sr[Dt],Fi=ai(Ui,function(_n,sn){var nn=_n.invoke(sn,Ui),Li=_n.shared.context,Ji=sn.def(nn,".x|0"),rn=sn.def(nn,".y|0"),Yn=sn.def('"width" in ',nn,"?",nn,".width|0:","(",Li,".",ve,"-",Ji,")"),Hs=sn.def('"height" in ',nn,"?",nn,".height|0:","(",Li,".",ke,"-",rn,")");return[Ji,rn,Yn,Hs]});return Mt&&(Fi.thisDep=Fi.thisDep||Mt.thisDep,Fi.contextDep=Fi.contextDep||Mt.contextDep,Fi.propDep=Fi.propDep||Mt.propDep),Fi}else return Mt?new Lt(Mt.thisDep,Mt.contextDep,Mt.propDep,function(_n,sn){var nn=_n.shared.context;return[0,0,sn.def(nn,".",ve),sn.def(nn,".",ke)]}):null}var ir=ar(Lh);if(ir){var $t=ir;ir=new Lt(ir.thisDep,ir.contextDep,ir.propDep,function(Dt,Vt){var Et=$t.append(Dt,Vt),ur=Dt.shared.context;return Vt.set(ur,"."+Me,Et[2]),Vt.set(ur,"."+Pe,Et[3]),Et})}return{viewport:ir,scissor_box:ar(a1)}}function Cl(ft,Mt){var Rt=ft.static,mr=typeof Rt[fd]=="string"&&typeof Rt[qp]=="string";if(mr){if(Object.keys(Mt.dynamic).length>0)return null;var Sr=Mt.static,ar=Object.keys(Sr);if(ar.length>0&&typeof Sr[ar[0]]=="number"){for(var ir=[],$t=0;$t"+Ji+"?"+Et+".constant["+Ji+"]:0;"}).join(""),"}}else{","if(",Xr,"(",Et,".buffer)){",_n,"=",An,".createStream(",xt,",",Et,".buffer);","}else{",_n,"=",An,".getBuffer(",Et,".buffer);","}",sn,'="type" in ',Et,"?",kr.glTypes,"[",Et,".type]:",_n,".dtype;",Ui.normalized,"=!!",Et,".normalized;");function nn(Li){Vt(Ui[Li],"=",Et,".",Li,"|0;")}return nn("size"),nn("offset"),nn("stride"),nn("divisor"),Vt("}}"),Vt.exit("if(",Ui.isStream,"){",An,".destroyStream(",_n,");","}"),Ui}Sr[ar]=ai(ir,$t)}),Sr}function ih(ft){var Mt=ft.static,Rt=ft.dynamic,mr={};return Object.keys(Mt).forEach(function(Sr){var ar=Mt[Sr];mr[Sr]=Hr(function(ir,$t){return typeof ar=="number"||typeof ar=="boolean"?""+ar:ir.link(ar)})}),Object.keys(Rt).forEach(function(Sr){var ar=Rt[Sr];mr[Sr]=ai(ar,function(ir,$t){return ir.invoke($t,ar)})}),mr}function Rh(ft,Mt,Rt,mr,Sr){var ar=ft.static,ir=ft.dynamic,$t=Cl(ft,Mt),Dt=Vn(ft,Sr),Vt=Sa(ft,Dt,Sr),Et=Ba(ft,Sr),ur=Ih(ft,Sr),kr=rc(ft,Sr,$t);function Xr(nn){var Li=Vt[nn];Li&&(ur[nn]=Li)}Xr(Lh),Xr(mi(a1));var An=Object.keys(ur).length>0,Ui={framebuffer:Dt,draw:Et,shader:kr,state:ur,dirty:An,scopeVAO:null,drawVAO:null,useVAO:!1,attributes:{}};if(Ui.profile=Un(ft,Sr),Ui.uniforms=cs(Rt,Sr),Ui.drawVAO=Ui.scopeVAO=Et.vao,!Ui.drawVAO&&kr.program&&!$t&&At.angle_instanced_arrays&&Et.static.elements){var Fi=!0,_n=kr.program.attributes.map(function(nn){var Li=Mt.static[nn];return Fi=Fi&&!!Li,Li});if(Fi&&_n.length>0){var sn=Qr.getVAO(Qr.createVAO({attributes:_n,elements:Et.static.elements}));Ui.drawVAO=new Lt(null,null,null,function(nn,Li){return nn.link(sn)}),Ui.useVAO=!0}}return $t?Ui.useVAO=!0:Ui.attributes=wf(Mt,Sr),Ui.context=ih(mr,Sr),Ui}function Lu(ft,Mt,Rt){var mr=ft.shared,Sr=mr.context,ar=ft.scope();Object.keys(Rt).forEach(function(ir){Mt.save(Sr,"."+ir);var $t=Rt[ir],Dt=$t.append(ft,Mt);Array.isArray(Dt)?ar(Sr,".",ir,"=[",Dt.join(),"];"):ar(Sr,".",ir,"=",Dt,";")}),Mt(ar)}function Pu(ft,Mt,Rt,mr){var Sr=ft.shared,ar=Sr.gl,ir=Sr.framebuffer,$t;Vr&&($t=Mt.def(Sr.extensions,".webgl_draw_buffers"));var Dt=ft.constants,Vt=Dt.drawBuffer,Et=Dt.backBuffer,ur;Rt?ur=Rt.append(ft,Mt):ur=Mt.def(ir,".next"),mr||Mt("if(",ur,"!==",ir,".cur){"),Mt("if(",ur,"){",ar,".bindFramebuffer(",ct,",",ur,".framebuffer);"),Vr&&Mt($t,".drawBuffersWEBGL(",Vt,"[",ur,".colorAttachments.length]);"),Mt("}else{",ar,".bindFramebuffer(",ct,",null);"),Vr&&Mt($t,".drawBuffersWEBGL(",Et,");"),Mt("}",ir,".cur=",ur,";"),mr||Mt("}")}function ic(ft,Mt,Rt){var mr=ft.shared,Sr=mr.gl,ar=ft.current,ir=ft.next,$t=mr.current,Dt=mr.next,Vt=ft.cond($t,".dirty");Nr.forEach(function(Et){var ur=mi(Et);if(!(ur in Rt.state)){var kr,Xr;if(ur in ir){kr=ir[ur],Xr=ar[ur];var An=T(bi[ur].length,function(Fi){return Vt.def(kr,"[",Fi,"]")});Vt(ft.cond(An.map(function(Fi,_n){return Fi+"!=="+Xr+"["+_n+"]"}).join("||")).then(Sr,".",Bi[ur],"(",An,");",An.map(function(Fi,_n){return Xr+"["+_n+"]="+Fi}).join(";"),";"))}else{kr=Vt.def(Dt,".",ur);var Ui=ft.cond(kr,"!==",$t,".",ur);Vt(Ui),ur in zr?Ui(ft.cond(kr).then(Sr,".enable(",zr[ur],");").else(Sr,".disable(",zr[ur],");"),$t,".",ur,"=",kr,";"):Ui(Sr,".",Bi[ur],"(",kr,");",$t,".",ur,"=",kr,";")}}}),Object.keys(Rt.state).length===0&&Vt($t,".dirty=false;"),Mt(Vt)}function ha(ft,Mt,Rt,mr){var Sr=ft.shared,ar=ft.current,ir=Sr.current,$t=Sr.gl,Dt;Kt(Object.keys(Rt)).forEach(function(Vt){var Et=Rt[Vt];if(!(mr&&!mr(Et))){var ur=Et.append(ft,Mt);if(zr[Vt]){var kr=zr[Vt];Dr(Et)?(Dt=ft.link(ur,{stable:!0}),Mt(ft.cond(Dt).then($t,".enable(",kr,");").else($t,".disable(",kr,");")),Mt(ir,".",Vt,"=",Dt,";")):(Mt(ft.cond(ur).then($t,".enable(",kr,");").else($t,".disable(",kr,");")),Mt(ir,".",Vt,"=",ur,";"))}else if(Ar(ur)){var Xr=ar[Vt];Mt($t,".",Bi[Vt],"(",ur,");",ur.map(function(An,Ui){return Xr+"["+Ui+"]="+An}).join(";"),";")}else Dr(Et)?(Dt=ft.link(ur,{stable:!0}),Mt($t,".",Bi[Vt],"(",Dt,");",ir,".",Vt,"=",Dt,";")):Mt($t,".",Bi[Vt],"(",ur,");",ir,".",Vt,"=",ur,";")}})}function wc(ft,Mt){oi&&(ft.instancing=Mt.def(ft.shared.extensions,".angle_instanced_arrays"))}function bs(ft,Mt,Rt,mr,Sr){var ar=ft.shared,ir=ft.stats,$t=ar.current,Dt=ar.timer,Vt=Rt.profile;function Et(){return typeof performance=="undefined"?"Date.now()":"performance.now()"}var ur,kr;function Xr(nn){ur=Mt.def(),nn(ur,"=",Et(),";"),typeof Sr=="string"?nn(ir,".count+=",Sr,";"):nn(ir,".count++;"),yi&&(mr?(kr=Mt.def(),nn(kr,"=",Dt,".getNumPendingQueries();")):nn(Dt,".beginQuery(",ir,");"))}function An(nn){nn(ir,".cpuTime+=",Et(),"-",ur,";"),yi&&(mr?nn(Dt,".pushScopeStats(",kr,",",Dt,".getNumPendingQueries(),",ir,");"):nn(Dt,".endQuery();"))}function Ui(nn){var Li=Mt.def($t,".profile");Mt($t,".profile=",nn,";"),Mt.exit($t,".profile=",Li,";")}var Fi;if(Vt){if(Dr(Vt)){Vt.enable?(Xr(Mt),An(Mt.exit),Ui("true")):Ui("false");return}Fi=Vt.append(ft,Mt),Ui(Fi)}else Fi=Mt.def($t,".profile");var _n=ft.block();Xr(_n),Mt("if(",Fi,"){",_n,"}");var sn=ft.block();An(sn),Mt.exit("if(",Fi,"){",sn,"}")}function nh(ft,Mt,Rt,mr,Sr){var ar=ft.shared;function ir(Dt){switch(Dt){case Do:case ec:case Wl:return 2;case fa:case Qf:case Jc:return 3;case us:case m0:case eh:return 4;default:return 1}}function $t(Dt,Vt,Et){var ur=ar.gl,kr=Mt.def(Dt,".location"),Xr=Mt.def(ar.attributes,"[",kr,"]"),An=Et.state,Ui=Et.buffer,Fi=[Et.x,Et.y,Et.z,Et.w],_n=["buffer","normalized","offset","stride"];function sn(){Mt("if(!",Xr,".buffer){",ur,".enableVertexAttribArray(",kr,");}");var Li=Et.type,Ji;if(Et.size?Ji=Mt.def(Et.size,"||",Vt):Ji=Vt,Mt("if(",Xr,".type!==",Li,"||",Xr,".size!==",Ji,"||",_n.map(function(Yn){return Xr+"."+Yn+"!=="+Et[Yn]}).join("||"),"){",ur,".bindBuffer(",xt,",",Ui,".buffer);",ur,".vertexAttribPointer(",[kr,Ji,Li,Et.normalized,Et.stride,Et.offset],");",Xr,".type=",Li,";",Xr,".size=",Ji,";",_n.map(function(Yn){return Xr+"."+Yn+"="+Et[Yn]+";"}).join(""),"}"),oi){var rn=Et.divisor;Mt("if(",Xr,".divisor!==",rn,"){",ft.instancing,".vertexAttribDivisorANGLE(",[kr,rn],");",Xr,".divisor=",rn,";}")}}function nn(){Mt("if(",Xr,".buffer){",ur,".disableVertexAttribArray(",kr,");",Xr,".buffer=null;","}if(",Oi.map(function(Li,Ji){return Xr+"."+Li+"!=="+Fi[Ji]}).join("||"),"){",ur,".vertexAttrib4f(",kr,",",Fi,");",Oi.map(function(Li,Ji){return Xr+"."+Li+"="+Fi[Ji]+";"}).join(""),"}")}An===ji?sn():An===en?nn():(Mt("if(",An,"===",ji,"){"),sn(),Mt("}else{"),nn(),Mt("}"))}mr.forEach(function(Dt){var Vt=Dt.name,Et=Rt.attributes[Vt],ur;if(Et){if(!Sr(Et))return;ur=Et.append(ft,Mt)}else{if(!Sr(vi))return;var kr=ft.scopeAttrib(Vt);ur={},Object.keys(new Er).forEach(function(Xr){ur[Xr]=Mt.def(kr,".",Xr)})}$t(ft.link(Dt),ir(Dt.info.type),ur)})}function zh(ft,Mt,Rt,mr,Sr,ar){for(var ir=ft.shared,$t=ir.gl,Dt,Vt=0;Vt1){for(var qh=[],Rg=[],vy=0;vy>1)",Ui],");")}function rn(){Rt(Fi,".drawArraysInstancedANGLE(",[kr,Xr,An,Ui],");")}Et&&Et!=="null"?sn?Ji():(Rt("if(",Et,"){"),Ji(),Rt("}else{"),rn(),Rt("}")):rn()}function Li(){function Ji(){Rt(ar+".drawElements("+[kr,An,_n,Xr+"<<(("+_n+"-"+Di+")>>1)"]+");")}function rn(){Rt(ar+".drawArrays("+[kr,Xr,An]+");")}Et&&Et!=="null"?sn?Ji():(Rt("if(",Et,"){"),Ji(),Rt("}else{"),rn(),Rt("}")):rn()}oi&&(typeof Ui!="number"||Ui>=0)?typeof Ui=="string"?(Rt("if(",Ui,">0){"),nn(),Rt("}else if(",Ui,"<0){"),Li(),Rt("}")):nn():Li()}function ta(ft,Mt,Rt,mr,Sr){var ar=Wi(),ir=ar.proc("body",Sr);return oi&&(ar.instancing=ir.def(ar.shared.extensions,".angle_instanced_arrays")),ft(ar,ir,Rt,mr),ar.compile().body}function $a(ft,Mt,Rt,mr){wc(ft,Mt),Rt.useVAO?Rt.drawVAO?Mt(ft.shared.vao,".setVAO(",Rt.drawVAO.append(ft,Mt),");"):Mt(ft.shared.vao,".setVAO(",ft.shared.vao,".targetVAO);"):(Mt(ft.shared.vao,".setVAO(null);"),nh(ft,Mt,Rt,mr.attributes,function(){return!0})),zh(ft,Mt,Rt,mr.uniforms,function(){return!0},!1),Bh(ft,Mt,Mt,Rt)}function Gs(ft,Mt){var Rt=ft.proc("draw",1);wc(ft,Rt),Lu(ft,Rt,Mt.context),Pu(ft,Rt,Mt.framebuffer),ic(ft,Rt,Mt),ha(ft,Rt,Mt.state),bs(ft,Rt,Mt,!1,!0);var mr=Mt.shader.progVar.append(ft,Rt);if(Rt(ft.shared.gl,".useProgram(",mr,".program);"),Mt.shader.program)$a(ft,Rt,Mt,Mt.shader.program);else{Rt(ft.shared.vao,".setVAO(null);");var Sr=ft.global.def("{}"),ar=Rt.def(mr,".id"),ir=Rt.def(Sr,"[",ar,"]");Rt(ft.cond(ir).then(ir,".call(this,a0);").else(ir,"=",Sr,"[",ar,"]=",ft.link(function($t){return ta($a,ft,Mt,$t,1)}),"(",mr,");",ir,".call(this,a0);"))}Object.keys(Mt.state).length>0&&Rt(ft.shared.current,".dirty=true;"),ft.shared.vao&&Rt(ft.shared.vao,".setVAO(null);")}function wt(ft,Mt,Rt,mr){ft.batchId="a1",wc(ft,Mt);function Sr(){return!0}nh(ft,Mt,Rt,mr.attributes,Sr),zh(ft,Mt,Rt,mr.uniforms,Sr,!1),Bh(ft,Mt,Mt,Rt)}function xr(ft,Mt,Rt,mr){wc(ft,Mt);var Sr=Rt.contextDep,ar=Mt.def(),ir="a0",$t="a1",Dt=Mt.def();ft.shared.props=Dt,ft.batchId=ar;var Vt=ft.scope(),Et=ft.scope();Mt(Vt.entry,"for(",ar,"=0;",ar,"<",$t,";++",ar,"){",Dt,"=",ir,"[",ar,"];",Et,"}",Vt.exit);function ur(_n){return _n.contextDep&&Sr||_n.propDep}function kr(_n){return!ur(_n)}if(Rt.needsContext&&Lu(ft,Et,Rt.context),Rt.needsFramebuffer&&Pu(ft,Et,Rt.framebuffer),ha(ft,Et,Rt.state,ur),Rt.profile&&ur(Rt.profile)&&bs(ft,Et,Rt,!1,!0),mr)Rt.useVAO?Rt.drawVAO?ur(Rt.drawVAO)?Et(ft.shared.vao,".setVAO(",Rt.drawVAO.append(ft,Et),");"):Vt(ft.shared.vao,".setVAO(",Rt.drawVAO.append(ft,Vt),");"):Vt(ft.shared.vao,".setVAO(",ft.shared.vao,".targetVAO);"):(Vt(ft.shared.vao,".setVAO(null);"),nh(ft,Vt,Rt,mr.attributes,kr),nh(ft,Et,Rt,mr.attributes,ur)),zh(ft,Vt,Rt,mr.uniforms,kr,!1),zh(ft,Et,Rt,mr.uniforms,ur,!0),Bh(ft,Vt,Et,Rt);else{var Xr=ft.global.def("{}"),An=Rt.shader.progVar.append(ft,Et),Ui=Et.def(An,".id"),Fi=Et.def(Xr,"[",Ui,"]");Et(ft.shared.gl,".useProgram(",An,".program);","if(!",Fi,"){",Fi,"=",Xr,"[",Ui,"]=",ft.link(function(_n){return ta(wt,ft,Rt,_n,2)}),"(",An,");}",Fi,".call(this,a0[",ar,"],",ar,");")}}function br(ft,Mt){var Rt=ft.proc("batch",2);ft.batchId="0",wc(ft,Rt);var mr=!1,Sr=!0;Object.keys(Mt.context).forEach(function(Xr){mr=mr||Mt.context[Xr].propDep}),mr||(Lu(ft,Rt,Mt.context),Sr=!1);var ar=Mt.framebuffer,ir=!1;ar?(ar.propDep?mr=ir=!0:ar.contextDep&&mr&&(ir=!0),ir||Pu(ft,Rt,ar)):Pu(ft,Rt,null),Mt.state.viewport&&Mt.state.viewport.propDep&&(mr=!0);function $t(Xr){return Xr.contextDep&&mr||Xr.propDep}ic(ft,Rt,Mt),ha(ft,Rt,Mt.state,function(Xr){return!$t(Xr)}),(!Mt.profile||!$t(Mt.profile))&&bs(ft,Rt,Mt,!1,"a1"),Mt.contextDep=mr,Mt.needsContext=Sr,Mt.needsFramebuffer=ir;var Dt=Mt.shader.progVar;if(Dt.contextDep&&mr||Dt.propDep)xr(ft,Rt,Mt,null);else{var Vt=Dt.append(ft,Rt);if(Rt(ft.shared.gl,".useProgram(",Vt,".program);"),Mt.shader.program)xr(ft,Rt,Mt,Mt.shader.program);else{Rt(ft.shared.vao,".setVAO(null);");var Et=ft.global.def("{}"),ur=Rt.def(Vt,".id"),kr=Rt.def(Et,"[",ur,"]");Rt(ft.cond(kr).then(kr,".call(this,a0,a1);").else(kr,"=",Et,"[",ur,"]=",ft.link(function(Xr){return ta(xr,ft,Mt,Xr,2)}),"(",Vt,");",kr,".call(this,a0,a1);"))}}Object.keys(Mt.state).length>0&&Rt(ft.shared.current,".dirty=true;"),ft.shared.vao&&Rt(ft.shared.vao,".setVAO(null);")}function tn(ft,Mt){var Rt=ft.proc("scope",3);ft.batchId="a2";var mr=ft.shared,Sr=mr.current;if(Lu(ft,Rt,Mt.context),Mt.framebuffer&&Mt.framebuffer.append(ft,Rt),Kt(Object.keys(Mt.state)).forEach(function($t){var Dt=Mt.state[$t],Vt=Dt.append(ft,Rt);Ar(Vt)?Vt.forEach(function(Et,ur){qi(Et)?Rt.set(ft.next[$t],"["+ur+"]",Et):Rt.set(ft.next[$t],"["+ur+"]",ft.link(Et,{stable:!0}))}):Dr(Dt)?Rt.set(mr.next,"."+$t,ft.link(Vt,{stable:!0})):Rt.set(mr.next,"."+$t,Vt)}),bs(ft,Rt,Mt,!0,!0),[Op,Ig,o1,_c,hd].forEach(function($t){var Dt=Mt.draw[$t];if(Dt){var Vt=Dt.append(ft,Rt);qi(Vt)?Rt.set(mr.draw,"."+$t,Vt):Rt.set(mr.draw,"."+$t,ft.link(Vt),{stable:!0})}}),Object.keys(Mt.uniforms).forEach(function($t){var Dt=Mt.uniforms[$t].append(ft,Rt);Array.isArray(Dt)&&(Dt="["+Dt.map(function(Vt){return qi(Vt)?Vt:ft.link(Vt,{stable:!0})})+"]"),Rt.set(mr.uniforms,"["+ft.link(yt.id($t),{stable:!0})+"]",Dt)}),Object.keys(Mt.attributes).forEach(function($t){var Dt=Mt.attributes[$t].append(ft,Rt),Vt=ft.scopeAttrib($t);Object.keys(new Er).forEach(function(Et){Rt.set(Vt,"."+Et,Dt[Et])})}),Mt.scopeVAO){var ar=Mt.scopeVAO.append(ft,Rt);qi(ar)?Rt.set(mr.vao,".targetVAO",ar):Rt.set(mr.vao,".targetVAO",ft.link(ar,{stable:!0}))}function ir($t){var Dt=Mt.shader[$t];if(Dt){var Vt=Dt.append(ft,Rt);qi(Vt)?Rt.set(mr.shader,"."+$t,Vt):Rt.set(mr.shader,"."+$t,ft.link(Vt,{stable:!0}))}}ir(qp),ir(fd),Object.keys(Mt.state).length>0&&(Rt(Sr,".dirty=true;"),Rt.exit(Sr,".dirty=true;")),Rt("a1(",ft.shared.context,",a0,",ft.batchId,");")}function Ga(ft){if(!(typeof ft!="object"||Ar(ft))){for(var Mt=Object.keys(ft),Rt=0;Rt=0;--ta){var $a=bn[ta];$a&&$a(Ir,null,0)}At.flush(),ei&&ei.update()}function Sa(){!Un&&bn.length>0&&(Un=p.next(Vn))}function Cl(){Un&&(p.cancel(Vn),Un=null)}function rc(ta){ta.preventDefault(),gr=!0,Cl(),Wn.forEach(function($a){$a()})}function Ba(ta){At.getError(),gr=!1,Tr.restore(),xn.restore(),oi.restore(),Nr.restore(),zr.restore(),Bi.restore(),Mi.restore(),ei&&ei.restore(),mi.procs.refresh(),Sa(),Ti.forEach(function($a){$a()})}qi&&(qi.addEventListener(Kn,rc,!1),qi.addEventListener(Va,Ba,!1));function Ih(){bn.length=0,Cl(),qi&&(qi.removeEventListener(Kn,rc),qi.removeEventListener(Va,Ba)),xn.clear(),Bi.clear(),zr.clear(),Mi.clear(),Nr.clear(),Vr.clear(),oi.clear(),ei&&ei.clear(),Wi.forEach(function(ta){ta()})}function cs(ta){function $a(ar){var ir=e({},ar);delete ir.uniforms,delete ir.attributes,delete ir.context,delete ir.vao,"stencil"in ir&&ir.stencil.op&&(ir.stencil.opBack=ir.stencil.opFront=ir.stencil.op,delete ir.stencil.op);function $t(Dt){if(Dt in ir){var Vt=ir[Dt];delete ir[Dt],Object.keys(Vt).forEach(function(Et){ir[Dt+"."+Et]=Vt[Et]})}}return $t("blend"),$t("depth"),$t("cull"),$t("stencil"),$t("polygonOffset"),$t("scissor"),$t("sample"),"vao"in ar&&(ir.vao=ar.vao),ir}function Gs(ar,ir){var $t={},Dt={};return Object.keys(ar).forEach(function(Vt){var Et=ar[Vt];if(h.isDynamic(Et)){Dt[Vt]=h.unbox(Et,Vt);return}else if(ir&&Array.isArray(Et)){for(var ur=0;ur0)return ft.call(this,mr(ar|0),ar|0)}else if(Array.isArray(ar)){if(ar.length)return ft.call(this,ar,ar.length)}else return Ki.call(this,ar)}return e(Sr,{stats:Ga,destroy:function(){fs.destroy()}})}var wf=Bi.setFBO=cs({framebuffer:h.define.call(null,xs,"framebuffer")});function ih(ta,$a){var Gs=0;mi.procs.poll();var wt=$a.color;wt&&(At.clearColor(+wt[0]||0,+wt[1]||0,+wt[2]||0,+wt[3]||0),Gs|=nl),"depth"in $a&&(At.clearDepth(+$a.depth),Gs|=po),"stencil"in $a&&(At.clearStencil($a.stencil|0),Gs|=li),At.clear(Gs)}function Rh(ta){if("framebuffer"in ta)if(ta.framebuffer&&ta.framebuffer_reglType==="framebufferCube")for(var $a=0;$a<6;++$a)wf(e({framebuffer:ta.framebuffer.faces[$a]},ta),ih);else wf(ta,ih);else ih(null,ta)}function Lu(ta){bn.push(ta);function $a(){var Gs=tc(bn,ta);function wt(){var xr=tc(bn,wt);bn[xr]=bn[bn.length-1],bn.length-=1,bn.length<=0&&Cl()}bn[Gs]=wt}return Sa(),{cancel:$a}}function Pu(){var ta=hi.viewport,$a=hi.scissor_box;ta[0]=ta[1]=$a[0]=$a[1]=0,Ir.viewportWidth=Ir.framebufferWidth=Ir.drawingBufferWidth=ta[2]=$a[2]=At.drawingBufferWidth,Ir.viewportHeight=Ir.framebufferHeight=Ir.drawingBufferHeight=ta[3]=$a[3]=At.drawingBufferHeight}function ic(){Ir.tick+=1,Ir.time=wc(),Pu(),mi.procs.poll()}function ha(){Nr.refresh(),Pu(),mi.procs.refresh(),ei&&ei.update()}function wc(){return(d()-vn)/1e3}ha();function bs(ta,$a){var Gs;switch(ta){case"frame":return Lu($a);case"lost":Gs=Wn;break;case"restore":Gs=Ti;break;case"destroy":Gs=Wi;break;default:}return Gs.push($a),{cancel:function(){for(var wt=0;wt=0},read:ci,destroy:Ih,_gl:At,_refresh:ha,poll:function(){ic(),ei&&ei.update()},now:wc,stats:Or,getCachedCode:nh,preloadCachedCode:zh});return yt.onDone(null,Bh),Bh}return Qc}))});var wXe=W((sti,_Xe)=>{"use strict";var Apr=K1();_Xe.exports=function(t){if(t?typeof t=="string"&&(t={container:t}):t={},xXe(t)?t={container:t}:Mpr(t)?t={container:t}:Spr(t)?t={gl:t}:t=Apr(t,{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),t.pixelRatio||(t.pixelRatio=window.pixelRatio||1),t.gl)return t.gl;if(t.canvas&&(t.container=t.canvas.parentNode),t.container){if(typeof t.container=="string"){var r=document.querySelector(t.container);if(!r)throw Error("Element "+t.container+" is not found");t.container=r}xXe(t.container)?(t.canvas=t.container,t.container=t.canvas.parentNode):t.canvas||(t.canvas=bXe(),t.container.appendChild(t.canvas),yXe(t))}else if(!t.canvas)if(typeof document!="undefined")t.container=document.body||document.documentElement,t.canvas=bXe(),t.container.appendChild(t.canvas),yXe(t);else throw Error("Not DOM environment. Use headless-gl.");return t.gl||["webgl","experimental-webgl","webgl-experimental"].some(function(i){try{t.gl=t.canvas.getContext(i,t.attrs)}catch(n){}return t.gl}),t.gl};function yXe(e){if(e.container)if(e.container==document.body)document.body.style.width||(e.canvas.width=e.width||e.pixelRatio*window.innerWidth),document.body.style.height||(e.canvas.height=e.height||e.pixelRatio*window.innerHeight);else{var t=e.container.getBoundingClientRect();e.canvas.width=e.width||t.right-t.left,e.canvas.height=e.height||t.bottom-t.top}}function xXe(e){return typeof e.getContext=="function"&&"width"in e&&"height"in e}function Mpr(e){return typeof e.nodeName=="string"&&typeof e.appendChild=="function"&&typeof e.getBoundingClientRect=="function"}function Spr(e){return typeof e.drawArrays=="function"||typeof e.drawElements=="function"}function bXe(){var e=document.createElement("canvas");return e.style.position="absolute",e.style.top=0,e.style.left=0,e}});var AXe=W((lti,TXe)=>{"use strict";var Epr=Dte(),kpr=[32,126];TXe.exports=Cpr;function Cpr(e){e=e||{};var t=e.shape?e.shape:e.canvas?[e.canvas.width,e.canvas.height]:[512,512],r=e.canvas||document.createElement("canvas"),i=e.font,n=typeof e.step=="number"?[e.step,e.step]:e.step||[32,32],a=e.chars||kpr;if(i&&typeof i!="string"&&(i=Epr(i)),!Array.isArray(a))a=String(a).split("");else if(a.length===2&&typeof a[0]=="number"&&typeof a[1]=="number"){for(var o=[],s=a[0],l=0;s<=a[1];s++)o[l++]=String.fromCharCode(s);a=o}t=t.slice(),r.width=t[0],r.height=t[1];var u=r.getContext("2d");u.fillStyle="#000",u.fillRect(0,0,r.width,r.height),u.font=i,u.textAlign="center",u.textBaseline="middle",u.fillStyle="#fff";for(var c=n[0]/2,f=n[1]/2,s=0;st[0]-n[0]/2&&(c=n[0]/2,f+=n[1]);return r}});var Rte=W(iu=>{"use strict";"use restrict";var Ite=32;iu.INT_BITS=Ite;iu.INT_MAX=2147483647;iu.INT_MIN=-1<0)-(e<0)};iu.abs=function(e){var t=e>>Ite-1;return(e^t)-t};iu.min=function(e,t){return t^(e^t)&-(e65535)<<4,e>>>=t,r=(e>255)<<3,e>>>=r,t|=r,r=(e>15)<<2,e>>>=r,t|=r,r=(e>3)<<1,e>>>=r,t|=r,t|e>>1};iu.log10=function(e){return e>=1e9?9:e>=1e8?8:e>=1e7?7:e>=1e6?6:e>=1e5?5:e>=1e4?4:e>=1e3?3:e>=100?2:e>=10?1:0};iu.popCount=function(e){return e=e-(e>>>1&1431655765),e=(e&858993459)+(e>>>2&858993459),(e+(e>>>4)&252645135)*16843009>>>24};function MXe(e){var t=32;return e&=-e,e&&t--,e&65535&&(t-=16),e&16711935&&(t-=8),e&252645135&&(t-=4),e&858993459&&(t-=2),e&1431655765&&(t-=1),t}iu.countTrailingZeros=MXe;iu.nextPow2=function(e){return e+=e===0,--e,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e+1};iu.prevPow2=function(e){return e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e-(e>>>1)};iu.parity=function(e){return e^=e>>>16,e^=e>>>8,e^=e>>>4,e&=15,27030>>>e&1};var ok=new Array(256);(function(e){for(var t=0;t<256;++t){var r=t,i=t,n=7;for(r>>>=1;r;r>>>=1)i<<=1,i|=r&1,--n;e[t]=i<>>8&255]<<16|ok[e>>>16&255]<<8|ok[e>>>24&255]};iu.interleave2=function(e,t){return e&=65535,e=(e|e<<8)&16711935,e=(e|e<<4)&252645135,e=(e|e<<2)&858993459,e=(e|e<<1)&1431655765,t&=65535,t=(t|t<<8)&16711935,t=(t|t<<4)&252645135,t=(t|t<<2)&858993459,t=(t|t<<1)&1431655765,e|t<<1};iu.deinterleave2=function(e,t){return e=e>>>t&1431655765,e=(e|e>>>1)&858993459,e=(e|e>>>2)&252645135,e=(e|e>>>4)&16711935,e=(e|e>>>16)&65535,e<<16>>16};iu.interleave3=function(e,t,r){return e&=1023,e=(e|e<<16)&4278190335,e=(e|e<<8)&251719695,e=(e|e<<4)&3272356035,e=(e|e<<2)&1227133513,t&=1023,t=(t|t<<16)&4278190335,t=(t|t<<8)&251719695,t=(t|t<<4)&3272356035,t=(t|t<<2)&1227133513,e|=t<<1,r&=1023,r=(r|r<<16)&4278190335,r=(r|r<<8)&251719695,r=(r|r<<4)&3272356035,r=(r|r<<2)&1227133513,e|r<<2};iu.deinterleave3=function(e,t){return e=e>>>t&1227133513,e=(e|e>>>2)&3272356035,e=(e|e>>>4)&251719695,e=(e|e>>>8)&4278190335,e=(e|e>>>16)&1023,e<<22>>22};iu.nextCombination=function(e){var t=e|e-1;return t+1|(~t&-~t)-1>>>MXe(e)+1}});var kXe=W((cti,EXe)=>{"use strict";function SXe(e,t,r){var i=e[r]|0;if(i<=0)return[];var n=new Array(i),a;if(r===e.length-1)for(a=0;a0)return Dpr(e|0,t);break;case"object":if(typeof e.length=="number")return SXe(e,t,0);break}return[]}EXe.exports=Fpr});var GXe=W(vo=>{"use strict";var j2=Rte(),ff=kXe(),CXe=t_().Buffer;window.__TYPEDARRAY_POOL||(window.__TYPEDARRAY_POOL={UINT8:ff([32,0]),UINT16:ff([32,0]),UINT32:ff([32,0]),BIGUINT64:ff([32,0]),INT8:ff([32,0]),INT16:ff([32,0]),INT32:ff([32,0]),BIGINT64:ff([32,0]),FLOAT:ff([32,0]),DOUBLE:ff([32,0]),DATA:ff([32,0]),UINT8C:ff([32,0]),BUFFER:ff([32,0])});var Lpr=typeof Uint8ClampedArray!="undefined",Ppr=typeof BigUint64Array!="undefined",Ipr=typeof BigInt64Array!="undefined",wu=window.__TYPEDARRAY_POOL;wu.UINT8C||(wu.UINT8C=ff([32,0]));wu.BIGUINT64||(wu.BIGUINT64=ff([32,0]));wu.BIGINT64||(wu.BIGINT64=ff([32,0]));wu.BUFFER||(wu.BUFFER=ff([32,0]));var bz=wu.DATA,_z=wu.BUFFER;vo.free=function(t){if(CXe.isBuffer(t))_z[j2.log2(t.length)].push(t);else{if(Object.prototype.toString.call(t)!=="[object ArrayBuffer]"&&(t=t.buffer),!t)return;var r=t.length||t.byteLength,i=j2.log2(r)|0;bz[i].push(t)}};function DXe(e){if(e){var t=e.length||e.byteLength,r=j2.log2(t);bz[r].push(e)}}function Rpr(e){DXe(e.buffer)}vo.freeUint8=vo.freeUint16=vo.freeUint32=vo.freeBigUint64=vo.freeInt8=vo.freeInt16=vo.freeInt32=vo.freeBigInt64=vo.freeFloat32=vo.freeFloat=vo.freeFloat64=vo.freeDouble=vo.freeUint8Clamped=vo.freeDataView=Rpr;vo.freeArrayBuffer=DXe;vo.freeBuffer=function(t){_z[j2.log2(t.length)].push(t)};vo.malloc=function(t,r){if(r===void 0||r==="arraybuffer")return t0(t);switch(r){case"uint8":return zte(t);case"uint16":return FXe(t);case"uint32":return LXe(t);case"int8":return PXe(t);case"int16":return IXe(t);case"int32":return RXe(t);case"float":case"float32":return zXe(t);case"double":case"float64":return BXe(t);case"uint8_clamped":return qXe(t);case"bigint64":return NXe(t);case"biguint64":return OXe(t);case"buffer":return VXe(t);case"data":case"dataview":return UXe(t);default:return null}return null};function t0(t){var t=j2.nextPow2(t),r=j2.log2(t),i=bz[r];return i.length>0?i.pop():new ArrayBuffer(t)}vo.mallocArrayBuffer=t0;function zte(e){return new Uint8Array(t0(e),0,e)}vo.mallocUint8=zte;function FXe(e){return new Uint16Array(t0(2*e),0,e)}vo.mallocUint16=FXe;function LXe(e){return new Uint32Array(t0(4*e),0,e)}vo.mallocUint32=LXe;function PXe(e){return new Int8Array(t0(e),0,e)}vo.mallocInt8=PXe;function IXe(e){return new Int16Array(t0(2*e),0,e)}vo.mallocInt16=IXe;function RXe(e){return new Int32Array(t0(4*e),0,e)}vo.mallocInt32=RXe;function zXe(e){return new Float32Array(t0(4*e),0,e)}vo.mallocFloat32=vo.mallocFloat=zXe;function BXe(e){return new Float64Array(t0(8*e),0,e)}vo.mallocFloat64=vo.mallocDouble=BXe;function qXe(e){return Lpr?new Uint8ClampedArray(t0(e),0,e):zte(e)}vo.mallocUint8Clamped=qXe;function OXe(e){return Ppr?new BigUint64Array(t0(8*e),0,e):null}vo.mallocBigUint64=OXe;function NXe(e){return Ipr?new BigInt64Array(t0(8*e),0,e):null}vo.mallocBigInt64=NXe;function UXe(e){return new DataView(t0(e),0,e)}vo.mallocDataView=UXe;function VXe(e){e=j2.nextPow2(e);var t=j2.log2(e),r=_z[t];return r.length>0?r.pop():new CXe(e)}vo.mallocBuffer=VXe;vo.clearCache=function(){for(var t=0;t<32;++t)wu.UINT8[t].length=0,wu.UINT16[t].length=0,wu.UINT32[t].length=0,wu.INT8[t].length=0,wu.INT16[t].length=0,wu.INT32[t].length=0,wu.FLOAT[t].length=0,wu.DOUBLE[t].length=0,wu.BIGUINT64[t].length=0,wu.BIGINT64[t].length=0,wu.UINT8C[t].length=0,bz[t].length=0,_z[t].length=0}});var jXe=W((hti,HXe)=>{"use strict";var zpr=Object.prototype.toString;HXe.exports=function(e){var t;return zpr.call(e)==="[object Object]"&&(t=Object.getPrototypeOf(e),t===null||t===Object.getPrototypeOf({}))}});var Bte=W((dti,$Xe)=>{$Xe.exports=function(t,r){r||(r=[0,""]),t=String(t);var i=parseFloat(t,10);return r[0]=i,r[1]=t.match(/[\d.\-\+]*\s*(.*)/)[1]||"",r}});var XXe=W((pti,YXe)=>{"use strict";var Bpr=Bte();YXe.exports=WXe;var sk=96;function qte(e,t){var r=Bpr(getComputedStyle(e).getPropertyValue(t));return r[0]*WXe(r[1],e)}function qpr(e,t){var r=document.createElement("div");r.style["font-size"]="128"+e,t.appendChild(r);var i=qte(r,"font-size")/128;return t.removeChild(r),i}function WXe(e,t){switch(t=t||document.body,e=(e||"px").trim().toLowerCase(),(t===window||t===document)&&(t=document.body),e){case"%":return t.clientHeight/100;case"ch":case"ex":return qpr(e,t);case"em":return qte(t,"font-size");case"rem":return qte(document.body,"font-size");case"vw":return window.innerWidth/100;case"vh":return window.innerHeight/100;case"vmin":return Math.min(window.innerWidth,window.innerHeight)/100;case"vmax":return Math.max(window.innerWidth,window.innerHeight)/100;case"in":return sk;case"cm":return sk/2.54;case"mm":return sk/25.4;case"pt":return sk/72;case"pc":return sk/6}return 1}});var JXe=W((vti,KXe)=>{"use strict";KXe.exports=Az;var Opr=Az.canvas=document.createElement("canvas"),wz=Opr.getContext("2d"),ZXe=Tz([32,126]);Az.createPairs=Tz;Az.ascii=ZXe;function Az(e,t){Array.isArray(e)&&(e=e.join(", "));var r={},i,n=16,a=.05;t&&(t.length===2&&typeof t[0]=="number"?i=Tz(t):Array.isArray(t)?i=t:(t.o?i=Tz(t.o):t.pairs&&(i=t.pairs),t.fontSize&&(n=t.fontSize),t.threshold!=null&&(a=t.threshold))),i||(i=ZXe),wz.font=n+"px "+e;for(var o=0;on*a){var c=(u-l)/n;r[s]=c*1e3}}return r}function Tz(e){for(var t=[],r=e[0];r<=e[1];r++)for(var i=String.fromCharCode(r),n=e[0];n{"use strict";tZe.exports=$2;$2.canvas=document.createElement("canvas");$2.cache={};function $2(o,t){t||(t={}),(typeof o=="string"||Array.isArray(o))&&(t.family=o);var r=Array.isArray(t.family)?t.family.join(", "):t.family;if(!r)throw Error("`family` must be defined");var i=t.size||t.fontSize||t.em||48,n=t.weight||t.fontWeight||"",a=t.style||t.fontStyle||"",o=[a,n,i].join(" ")+"px "+r,s=t.origin||"top";if($2.cache[r]&&i<=$2.cache[r].em)return QXe($2.cache[r],s);var l=t.canvas||$2.canvas,u=l.getContext("2d"),c={upper:t.upper!==void 0?t.upper:"H",lower:t.lower!==void 0?t.lower:"x",descent:t.descent!==void 0?t.descent:"p",ascent:t.ascent!==void 0?t.ascent:"h",tittle:t.tittle!==void 0?t.tittle:"i",overshoot:t.overshoot!==void 0?t.overshoot:"O"},f=Math.ceil(i*1.5);l.height=f,l.width=f*.5,u.font=o;var h="H",p={top:0};u.clearRect(0,0,f,f),u.textBaseline="top",u.fillStyle="black",u.fillText(h,0,0);var d=Q1(u.getImageData(0,0,f,f));u.clearRect(0,0,f,f),u.textBaseline="bottom",u.fillText(h,0,f);var v=Q1(u.getImageData(0,0,f,f));p.lineHeight=p.bottom=f-v+d,u.clearRect(0,0,f,f),u.textBaseline="alphabetic",u.fillText(h,0,f);var m=Q1(u.getImageData(0,0,f,f)),g=f-m-1+d;p.baseline=p.alphabetic=g,u.clearRect(0,0,f,f),u.textBaseline="middle",u.fillText(h,0,f*.5);var w=Q1(u.getImageData(0,0,f,f));p.median=p.middle=f-w-1+d-f*.5,u.clearRect(0,0,f,f),u.textBaseline="hanging",u.fillText(h,0,f*.5);var _=Q1(u.getImageData(0,0,f,f));p.hanging=f-_-1+d-f*.5,u.clearRect(0,0,f,f),u.textBaseline="ideographic",u.fillText(h,0,f);var b=Q1(u.getImageData(0,0,f,f));if(p.ideographic=f-b-1+d,c.upper&&(u.clearRect(0,0,f,f),u.textBaseline="top",u.fillText(c.upper,0,0),p.upper=Q1(u.getImageData(0,0,f,f)),p.capHeight=p.baseline-p.upper),c.lower&&(u.clearRect(0,0,f,f),u.textBaseline="top",u.fillText(c.lower,0,0),p.lower=Q1(u.getImageData(0,0,f,f)),p.xHeight=p.baseline-p.lower),c.tittle&&(u.clearRect(0,0,f,f),u.textBaseline="top",u.fillText(c.tittle,0,0),p.tittle=Q1(u.getImageData(0,0,f,f))),c.ascent&&(u.clearRect(0,0,f,f),u.textBaseline="top",u.fillText(c.ascent,0,0),p.ascent=Q1(u.getImageData(0,0,f,f))),c.descent&&(u.clearRect(0,0,f,f),u.textBaseline="top",u.fillText(c.descent,0,0),p.descent=eZe(u.getImageData(0,0,f,f))),c.overshoot){u.clearRect(0,0,f,f),u.textBaseline="top",u.fillText(c.overshoot,0,0);var S=eZe(u.getImageData(0,0,f,f));p.overshoot=S-g}for(var x in p)p[x]/=i;return p.em=i,$2.cache[r]=p,QXe(p,s)}function QXe(e,t){var r={};typeof t=="string"&&(t=e[t]);for(var i in e)i!=="em"&&(r[i]=e[i]-t);return r}function Q1(e){for(var t=e.height,r=e.data,i=3;i0;i-=4)if(r[i]!==0)return Math.floor((i-3)*.25/t)}});var oZe=W((mti,aZe)=>{"use strict";var uT=mXe(),Npr=K1(),Upr=Pte(),Vpr=wXe(),Gpr=gte(),Ote=$E(),Hpr=AXe(),W2=GXe(),jpr=K4(),$pr=jXe(),Wpr=Bte(),Ypr=XXe(),Xpr=JXe(),Zpr=Hu(),Kpr=rZe(),Jpr=V_(),Qpr=Rte(),iZe=Qpr.nextPow2,nZe=new Gpr,Sz=!1;document.body&&(Mz=document.body.appendChild(document.createElement("div")),Mz.style.font="italic small-caps bold condensed 16px/2 cursive",getComputedStyle(Mz).fontStretch&&(Sz=!0),document.body.removeChild(Mz));var Mz,Zo=function(t){evr(t)?(t={regl:t},this.gl=t.regl._gl):this.gl=Vpr(t),this.shader=nZe.get(this.gl),this.shader?this.regl=this.shader.regl:this.regl=t.regl||Upr({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(),nZe.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($pr(t)?t:{})};Zo.prototype.createShader=function(){var t=this.regl,r=t({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:t.prop("count"),offset:t.prop("offset"),attributes:{charOffset:{offset:4,stride:8,buffer:t.this("sizeBuffer")},width:{offset:0,stride:8,buffer:t.this("sizeBuffer")},char:t.this("charBuffer"),position:t.this("position")},uniforms:{atlasSize:function(n,a){return[a.atlas.width,a.atlas.height]},atlasDim:function(n,a){return[a.atlas.cols,a.atlas.rows]},atlas:function(n,a){return a.atlas.texture},charStep:function(n,a){return a.atlas.step},em:function(n,a){return a.atlas.em},color:t.prop("color"),opacity:t.prop("opacity"),viewport:t.this("viewportArray"),scale:t.this("scale"),align:t.prop("align"),baseline:t.prop("baseline"),translate:t.this("translate"),positionOffset:t.prop("positionOffset")},primitive:"points",viewport:t.this("viewport"),vert:` precision highp float; attribute float width, charOffset, char; attribute vec2 position; @@ -2706,9 +2706,9 @@ void main() { // color.rgb += (1. - color.rgb) * (1. - mask.rgb); gl_FragColor = color; - }`}),i={};return{regl:t,draw:r,atlas:i}};Zo.prototype.update=function(t){var r=this;if(typeof t=="string")t={text:t};else if(!t)return;t=Dpr(t,{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),t.opacity!=null&&(Array.isArray(t.opacity)?this.opacity=t.opacity.map(function(K){return parseFloat(K)}):this.opacity=parseFloat(t.opacity)),t.viewport!=null&&(this.viewport=Rpr(t.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]),t.kerning!=null&&(this.kerning=t.kerning),t.offset!=null&&(typeof t.offset=="number"&&(t.offset=[t.offset,0]),this.positionOffset=Vpr(t.offset)),t.direction&&(this.direction=t.direction),t.range&&(this.range=t.range,this.scale=[1/(t.range[2]-t.range[0]),1/(t.range[3]-t.range[1])],this.translate=[-t.range[0],-t.range[1]]),t.scale&&(this.scale=t.scale),t.translate&&(this.translate=t.translate),this.scale||(this.scale=[1/this.viewport.width,1/this.viewport.height]),this.translate||(this.translate=[0,0]),!this.font.length&&!t.font&&(t.font=Zo.baseFontSize+"px sans-serif");var i=!1,n=!1;if(t.font&&(Array.isArray(t.font)?t.font:[t.font]).forEach(function(K,j){if(typeof K=="string")try{K=l6.parse(K)}catch(ue){K=l6.parse(Zo.baseFontSize+"px "+K)}else{var q=K.style,Q=K.weight,U=K.stretch,V=K.variant;K=l6.parse(l6.stringify(K)),q&&(K.style=q),Q&&(K.weight=Q),U&&(K.stretch=U),V&&(K.variant=V)}var X=l6.stringify({size:Zo.baseFontSize,family:K.family,stretch:bz?K.stretch:void 0,variant:K.variant,weight:K.weight,style:K.style}),G=Bpr(K.size),H=Math.round(G[0]*qpr(G[1]));if(H!==r.fontSize[j]&&(n=!0,r.fontSize[j]=H),(!r.font[j]||X!=r.font[j].baseString)&&(i=!0,r.font[j]=Zo.fonts[X],!r.font[j])){var J=K.family.join(", "),te=[K.style];K.style!=K.variant&&te.push(K.variant),K.variant!=K.weight&&te.push(K.weight),bz&&K.weight!=K.stretch&&te.push(K.stretch),r.font[j]={baseString:X,family:J,weight:K.weight,stretch:K.stretch,style:K.style,variant:K.variant,width:{},kerning:{},metrics:Upr(J,{origin:"top",fontSize:Zo.baseFontSize,fontStyle:te.join(" ")})},Zo.fonts[X]=r.font[j]}}),(i||n)&&this.font.forEach(function(K,j){var q=l6.stringify({size:r.fontSize[j],family:K.family,stretch:bz?K.stretch:void 0,variant:K.variant,weight:K.weight,style:K.style});if(r.fontAtlas[j]=r.shader.atlas[q],!r.fontAtlas[j]){var Q=K.metrics;r.shader.atlas[q]=r.fontAtlas[j]={fontString:q,step:Math.ceil(r.fontSize[j]*Q.bottom*.5)*2,em:r.fontSize[j],cols:0,rows:0,height:0,width:0,chars:[],ids:{},texture:r.regl.texture()}}t.text==null&&(t.text=r.text)}),typeof t.text=="string"&&t.position&&t.position.length>2){for(var a=Array(t.position.length*.5),o=0;o2){for(var u=!t.position[0].length,c=$2.mallocFloat(this.count*2),f=0,h=0;f1?r.align[j]:r.align[0]:r.align;if(typeof q=="number")return q;switch(q){case"right":case"end":return-K;case"center":case"centre":case"middle":return-K*.5}return 0})),this.baseline==null&&t.baseline==null&&(t.baseline=0),t.baseline!=null&&(this.baseline=t.baseline,Array.isArray(this.baseline)||(this.baseline=[this.baseline]),this.baselineOffset=this.baseline.map(function(K,j){var q=(r.font[j]||r.font[0]).metrics,Q=0;return Q+=q.bottom*.5,typeof K=="number"?Q+=K-q.baseline:Q+=-q[K],Q*=-1,Q})),t.color!=null)if(t.color||(t.color="transparent"),typeof t.color=="string"||!isNaN(t.color))this.color=Fte(t.color,"uint8");else{var L;if(typeof t.color[0]=="number"&&t.color.length>this.counts.length){var P=t.color.length;L=$2.mallocUint8(P);for(var R=(t.color.subarray||t.color.slice).bind(t.color),F=0;F4||this.baselineOffset.length>1||this.align&&this.align.length>1||this.fontAtlas.length>1||this.positionOffset.length>2;if(O){var $=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($);for(var Y=0;Y1?this.counts[Y]:this.counts[0],offset:this.textOffsets.length>1?this.textOffsets[Y]:this.textOffsets[0],color:this.color?this.color.length<=4?this.color:this.color.subarray(Y*4,Y*4+4):[0,0,0,255],opacity:Array.isArray(this.opacity)?this.opacity[Y]:this.opacity,baseline:this.baselineOffset[Y]!=null?this.baselineOffset[Y]:this.baselineOffset[0],align:this.align?this.alignOffset[Y]!=null?this.alignOffset[Y]:this.alignOffset[0]:0,atlas:this.fontAtlas[Y]||this.fontAtlas[0],positionOffset:this.positionOffset.length>2?this.positionOffset.subarray(Y*2,Y*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=[]}};Zo.prototype.destroy=function(){};Zo.prototype.kerning=!0;Zo.prototype.position={constant:new Float32Array(2)};Zo.prototype.translate=null;Zo.prototype.scale=null;Zo.prototype.font=null;Zo.prototype.text="";Zo.prototype.positionOffset=[0,0];Zo.prototype.opacity=1;Zo.prototype.color=new Uint8Array([0,0,0,255]);Zo.prototype.alignOffset=[0,0];Zo.maxAtlasSize=1024;Zo.atlasCanvas=document.createElement("canvas");Zo.atlasContext=Zo.atlasCanvas.getContext("2d",{alpha:!1});Zo.baseFontSize=64;Zo.fonts={};function Hpr(e){return typeof e=="function"&&e._gl&&e.prop&&e.texture&&e.buffer}KXe.exports=Zo});var _z=W((nti,QXe)=>{"use strict";var jpr=UJ(),$pr=Mte();QXe.exports=function(t,r,i){var n=t._fullLayout,a=!0;return n._glcanvas.each(function(o){if(o.regl){o.regl.preloadCachedCode(i);return}if(!(o.pick&&!n._has("parcoords"))){try{o.regl=$pr({canvas:this,attributes:{antialias:!o.pick,preserveDrawingBuffer:!0},pixelRatio:t._context.plotGlPixelRatio||window.devicePixelRatio,extensions:r||[],cachedCode:i||{}})}catch(s){a=!1}o.regl||(a=!1),a&&this.addEventListener("webglcontextlost",function(s){t&&t.emit&&t.emit("plotly_webglcontextlost",{event:s,layer:o.key})},!1)}}),a||jpr({container:n._glcontainer.node()}),a}});var Pte=W((Lte,aZe)=>{"use strict";var eZe=Pee(),tZe=fte(),Wpr=HYe(),rZe=JXe(),iZe=it(),Ypr=m1().selectMode,Xpr=_z(),Zpr=Wo(),Kpr=E$(),Jpr=Dee().styleTextSelection,nZe={};function Qpr(e,t,r,i){var n=e._size,a=e.width*i,o=e.height*i,s=n.l*i,l=n.b*i,u=n.r*i,c=n.t*i,f=n.w*i,h=n.h*i;return[s+t.domain[0]*f,l+r.domain[0]*h,a-u-(1-t.domain[1])*f,o-c-(1-r.domain[1])*h]}var Lte=aZe.exports=function(t,r,i){if(i.length){var n=t._fullLayout,a=r._scene,o=r.xaxis,s=r.yaxis,l,u;if(a){var c=Xpr(t,["ANGLE_instanced_arrays","OES_element_index_uint"],nZe);if(!c){a.init();return}var f=a.count,h=n._glcanvas.data()[0].regl;if(Kpr(t,r,i),a.dirty){if((a.line2d||a.error2d)&&!(a.scatter2d||a.fill2d||a.glText)&&h.clear({color:!0,depth:!0}),a.error2d===!0&&(a.error2d=Wpr(h)),a.line2d===!0&&(a.line2d=tZe(h)),a.scatter2d===!0&&(a.scatter2d=eZe(h)),a.fill2d===!0&&(a.fill2d=tZe(h)),a.glText===!0)for(a.glText=new Array(f),l=0;la.glText.length){var p=f-a.glText.length;for(l=0;lB&&(isNaN(I[O])||isNaN(I[O+1]));)O-=2;F.positions=I.slice(B,O+2)}return F}),a.line2d.update(a.lineOptions)),a.error2d){var m=(a.errorXOptions||[]).concat(a.errorYOptions||[]).map(function(F){return F||{positions:[],errors:[]}});a.error2d.update(m)}a.scatter2d&&a.scatter2d.update(a.markerOptions),a.fillOrder=iZe.repeat(null,f),a.fill2d&&(a.fillOptions=a.fillOptions.map(function(F,I){var B=i[I];if(!(!F||!B||!B[0]||!B[0].trace)){var O=B[0],$=O.trace,Y=O.t,K=a.lineOptions[I],j,q,Q=[];$._ownfill&&Q.push(I),$._nexttrace&&Q.push(I+1),Q.length&&(a.fillOrder[I]=Q);var U=[],V=K&&K.positions||Y.positions,X,G;if($.fill==="tozeroy"){for(X=0;XX&&isNaN(V[G+1]);)G-=2;V[X+1]!==0&&(U=[V[X],0]),U=U.concat(V.slice(X,G+2)),V[G+1]!==0&&(U=U.concat([V[G],0]))}else if($.fill==="tozerox"){for(X=0;XX&&isNaN(V[G]);)G-=2;V[X]!==0&&(U=[0,V[X+1]]),U=U.concat(V.slice(X,G+2)),V[G]!==0&&(U=U.concat([0,V[G+1]]))}else if($.fill==="toself"||$.fill==="tonext"){for(U=[],j=0,F.splitNull=!0,q=0;q-1;for(let[F]of i)if(F){var b=F.trace,S=F.t,x=S.index,T=b._length,A=S.x,y=S.y;if(b.selectedpoints||w||_){if(w||(w=!0),b.selectedpoints){var E=a.selectBatch[x]=b.selectedpoints,M={};for(u=0;u{"use strict";var oZe=bje();oZe.plot=Pte();sZe.exports=oZe});var cZe=W((oti,uZe)=>{"use strict";uZe.exports=lZe()});var Ite=W((sti,pZe)=>{"use strict";var evr=Hs(),dZe=Fo(),fZe=ws().axisHoverFormat,{hovertemplateAttrs:tvr,templatefallbackAttrs:rvr}=$a(),ok=OE(),ivr=(Wl(),Pt($l)).idRegex,nvr=Ia().templatedArray,u6=nn().extendFlat,Mm=evr.marker,avr=Mm.line,ovr=u6(dZe("marker.line",{editTypeOverride:"calc"}),{width:u6({},avr.width,{editType:"calc"}),editType:"calc"}),wz=u6(dZe("marker"),{symbol:Mm.symbol,angle:Mm.angle,size:u6({},Mm.size,{editType:"markerSize"}),sizeref:Mm.sizeref,sizemin:Mm.sizemin,sizemode:Mm.sizemode,opacity:Mm.opacity,colorbar:Mm.colorbar,line:ovr,editType:"calc"});wz.color.editType=wz.cmin.editType=wz.cmax.editType="style";function hZe(e){return{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"subplotid",regex:ivr[e],editType:"plot"}}}pZe.exports={dimensions:nvr("dimension",{visible:{valType:"boolean",dflt:!0,editType:"calc"},label:{valType:"string",editType:"calc"},values:{valType:"data_array",editType:"calc+clearAxisTypes"},axis:{type:{valType:"enumerated",values:["linear","log","date","category"],editType:"calc+clearAxisTypes"},matches:{valType:"boolean",dflt:!0,editType:"calc"},editType:"calc+clearAxisTypes"},editType:"calc+clearAxisTypes"}),text:u6({},ok.text,{}),hovertext:u6({},ok.hovertext,{}),hovertemplate:tvr(),hovertemplatefallback:rvr(),xhoverformat:fZe("x"),yhoverformat:fZe("y"),marker:wz,xaxes:hZe("x"),yaxes:hZe("y"),diagonal:{visible:{valType:"boolean",dflt:!0,editType:"calc"},editType:"calc"},showupperhalf:{valType:"boolean",dflt:!0,editType:"calc"},showlowerhalf:{valType:"boolean",dflt:!0,editType:"calc"},selected:{marker:ok.selected.marker,editType:"calc"},unselected:{marker:ok.unselected.marker,editType:"calc"},opacity:ok.opacity}});var Tz=W((lti,vZe)=>{"use strict";vZe.exports=function(e,t,r,i){i||(i=1/0);var n,a;for(n=0;n{"use strict";var Rte=it(),svr=ef(),gZe=Ite(),lvr=Wo(),uvr=Cd(),cvr=Tz(),fvr=OR().isOpenSymbol;mZe.exports=function(t,r,i,n){function a(p,d){return Rte.coerce(t,r,gZe,p,d)}var o=svr(t,r,{name:"dimensions",handleItemDefaults:hvr}),s=a("diagonal.visible"),l=a("showupperhalf"),u=a("showlowerhalf"),c=cvr(r,o,"values");if(!c||!s&&!l&&!u){r.visible=!1;return}a("text"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback"),a("xhoverformat"),a("yhoverformat"),uvr(t,r,i,n,a,{noAngleRef:!0,noLineDash:!0,noStandOff:!0});var f=fvr(r.marker.symbol),h=lvr.isBubble(r);a("marker.line.width",f||h?1:0),dvr(t,r,n,a),Rte.coerceSelectionMarkerOpacity(r,a)};function hvr(e,t){function r(n,a){return Rte.coerce(e,t,gZe.dimensions,n,a)}r("label");var i=r("values");i&&i.length?r("visible"):t.visible=!1,r("axis.type"),r("axis.matches")}function dvr(e,t,r,i){var n=t.dimensions,a=n.length,o=t.showupperhalf,s=t.showlowerhalf,l=t.diagonal.visible,u,c,f=new Array(a),h=new Array(a);for(u=0;uc&&o||u{"use strict";var xZe=it();bZe.exports=function(t,r){var i=t._fullLayout,n=r.uid,a=i._splomScenes;a||(a=i._splomScenes={});var o={dirty:!0,selectBatch:[],unselectBatch:[]},s={matrix:!1,selectBatch:[],unselectBatch:[]},l=a[r.uid];return l||(l=a[n]=xZe.extendFlat({},o,s),l.draw=function(){l.matrix&&l.matrix.draw&&(l.selectBatch.length||l.unselectBatch.length?l.matrix.draw(l.unselectBatch,l.selectBatch):l.matrix.draw()),l.dirty=!1},l.destroy=function(){l.matrix&&l.matrix.destroy&&l.matrix.destroy(),l.matrixOptions=null,l.selectBatch=null,l.unselectBatch=null,l=null}),l.dirty||xZe.extendFlat(l,o),l}});var AZe=W((fti,TZe)=>{"use strict";var zte=it(),Az=Fs(),pvr=Fd().calcMarkerSize,vvr=Fd().calcAxisExpansion,gvr=Dd(),wZe=V_().markerSelection,mvr=V_().markerStyle,yvr=_Ze(),xvr=(ta(),Pt(ra)).BADNUM,bvr=(O2(),Pt(q2)).TOO_MANY_POINTS;TZe.exports=function(t,r){var i=r.dimensions,n=r._length,a={},o=a.cdata=[],s=a.data=[],l=r._visibleDims=[],u,c,f,h,p;function d(_,b){for(var S=_.makeCalcdata({v:b.values,vcalendar:r.calendar},"v"),x=0;xbvr,g;for(m?g=a.sizeAvg||Math.max(a.size,3):g=pvr(r,n),c=0;c{(function(){var e,t,r,i,n,a;typeof performance!="undefined"&&performance!==null&&performance.now?sk.exports=function(){return performance.now()}:typeof process!="undefined"&&process!==null&&process.hrtime?(sk.exports=function(){return(e()-n)/1e6},t=process.hrtime,e=function(){var o;return o=t(),o[0]*1e9+o[1]},i=e(),a=process.uptime()*1e9,n=i-a):Date.now?(sk.exports=function(){return Date.now()-r},r=Date.now()):(sk.exports=function(){return new Date().getTime()-r},r=new Date().getTime())}).call(MZe)});var kZe=W((hti,Ez)=>{var _vr=SZe(),Sm=window,Mz=["moz","webkit"],f6="AnimationFrame",h6=Sm["request"+f6],lk=Sm["cancel"+f6]||Sm["cancelRequest"+f6];for(c6=0;!h6&&c6{CZe.exports=function(t,r){var i=typeof t=="number",n=typeof r=="number";i&&!n?(r=t,t=0):!i&&!n&&(t=0,r=0),t=t|0,r=r|0;var a=r-t;if(a<0)throw new Error("array length must be positive");for(var o=new Array(a),s=0,l=t;s{"use strict";var wvr=Pee(),Tvr=X1(),Avr=O_(),FZe=kZe(),Mvr=DZe(),qte=Z4(),Svr=N_();PZe.exports=Y2;function Y2(e,t){if(!(this instanceof Y2))return new Y2(e,t);this.traces=[],this.passes={},this.regl=e,this.scatter=wvr(e),this.canvas=this.scatter.canvas}Y2.prototype.render=function(...e){return e.length&&this.update(...e),this.regl.attributes.preserveDrawingBuffer?this.draw():(this.dirty?this.planned==null&&(this.planned=FZe(()=>{this.draw(),this.dirty=!0,this.planned=null})):(this.draw(),this.dirty=!0,FZe(()=>{this.dirty=!1})),this)};Y2.prototype.update=function(...e){if(!e.length)return;for(let i=0;im||!n.lower&&v{t[a+s]=i})}this.scatter.draw(...t)}return this};Y2.prototype.destroy=function(){return this.traces.forEach(e=>{e.buffer&&e.buffer.destroy&&e.buffer.destroy()}),this.traces=null,this.passes=null,this.scatter.destroy(),this};function Evr(e,t,r){let i=e.id!=null?e.id:e,n=t,a=r;return i<<16|(n&255)<<8|a&255}function kz(e,t,r){let i,n,a,o,s,l,u,c,f=e[t],h=e[r];return f.length>2?(i=f[0],a=f[2],n=f[1],o=f[3]):f.length?(i=n=f[0],a=o=f[1]):(i=f.x,n=f.y,a=f.x+f.width,o=f.y+f.height),h.length>2?(s=h[0],u=h[2],l=h[1],c=h[3]):h.length?(s=l=h[0],u=c=h[1]):(s=h.x,l=h.y,u=h.x+h.width,c=h.y+h.height),[s,n,u,o]}function LZe(e){if(typeof e=="number")return[e,e,e,e];if(e.length===2)return[e[0],e[1],e[0],e[1]];{let t=qte(e);return[t.x,t.y,t.x+t.width,t.y+t.height]}}});var zZe=W((vti,RZe)=>{"use strict";var kvr=IZe(),Ote=it(),Cz=Fs(),Cvr=m1().selectMode;RZe.exports=function(t,r,i){if(i.length)for(var n=0;n-1,M=Cvr(c)||!!n.selectedpoints||E,C=!0;if(M){var k=n._length;if(n.selectedpoints){o.selectBatch=n.selectedpoints;var D=n.selectedpoints,L={};for(p=0;p{"use strict";BZe.getDimIndex=function(t,r){for(var i=r._id,n=i.charAt(0),a={x:0,y:1}[n],o=t._visibleDims,s=0;s{"use strict";var qZe=Nte(),Fvr=qR().calcHover,OZe=Wi().getFromId,Lvr=nn().extendFlat;function Pvr(e,t,r,i,n){n||(n={});var a=(i||"").charAt(0)==="x",o=(i||"").charAt(0)==="y",s=NZe(e,t,r);if((a||o)&&n.hoversubplots==="axis"&&s[0])for(var l=(a?e.xa:e.ya)._subplotsWith,u=n.gd,c=Lvr({},e),f=0;f{"use strict";var $Ze=it(),GZe=$Ze.pushUnique,HZe=Wo(),jZe=Nte();WZe.exports=function(t,r){var i=t.cd,n=i[0].trace,a=i[0].t,o=t.scene,s=o.matrixOptions.cdata,l=t.xaxis,u=t.yaxis,c=[];if(!o)return c;var f=!HZe.hasMarkers(n)&&!HZe.hasText(n);if(n.visible!==!0||f)return c;var h=jZe.getDimIndex(n,l),p=jZe.getDimIndex(n,u);if(h===!1||p===!1)return c;var d=a.xpx[h],v=a.ypx[p],m=s[h],g=s[p],w=(t.scene.selectBatch||[]).slice(),_=[];if(r!==!1&&!r.degenerate)for(var b=0;b{"use strict";var XZe=it(),Ivr=Dd(),Rvr=V_().markerStyle;ZZe.exports=function(t,r){var i=r.trace,n=t._fullLayout._splomScenes[i.uid];if(n){Ivr(t,i),XZe.extendFlat(n.matrixOptions,Rvr(t,i));var a=XZe.extendFlat({},n.matrixOptions,n.viewOpts);n.matrix.update(a,null)}}});var QZe=W((bti,JZe)=>{"use strict";var zvr=xi(),Bvr=_W();JZe.exports={moduleType:"trace",name:"splom",categories:["gl","regl","cartesian","symbols","showLegend","scatter-like"],attributes:Ite(),supplyDefaults:yZe(),colorbar:kc(),calc:AZe(),plot:zZe(),hoverPoints:VZe().hoverPoints,selectPoints:YZe(),editStyle:KZe(),meta:{}};zvr.register(Bvr)});var aKe=W((_ti,nKe)=>{"use strict";var qvr=fte(),Ovr=xi(),Nvr=_z(),Uvr=Ac().getModuleCalcData,X2=vl(),eKe=Fs().getFromId,tKe=Wi().shouldShowZeroLine,rKe="splom",iKe={};function Vvr(e){var t=e._fullLayout,r=Ovr.getModule(rKe),i=Uvr(e.calcdata,r)[0],n=Nvr(e,["ANGLE_instanced_arrays","OES_element_index_uint"],iKe);n&&(t._hasOnlyLargeSploms&&Ute(e),r.plot(e,{},i))}function Gvr(e){var t=e.calcdata,r=e._fullLayout;r._hasOnlyLargeSploms&&Ute(e);for(var i=0;i{"use strict";var oKe=QZe();oKe.basePlotModule=aKe(),sKe.exports=oKe});var cKe=W((Tti,uKe)=>{"use strict";uKe.exports=lKe()});var Hte=W((Ati,fKe)=>{"use strict";var Wvr=Fo(),Vte=nc(),Gte=jo(),Yvr=fs().attributes,Dz=nn().extendFlat,Xvr=Ia().templatedArray;fKe.exports={domain:Yvr({name:"parcoords",trace:!0,editType:"plot"}),labelangle:{valType:"angle",dflt:0,editType:"plot"},labelside:{valType:"enumerated",values:["top","bottom"],dflt:"top",editType:"plot"},labelfont:Gte({editType:"plot"}),tickfont:Gte({autoShadowDflt:!0,editType:"plot"}),rangefont:Gte({editType:"plot"}),dimensions:Xvr("dimension",{label:{valType:"string",editType:"plot"},tickvals:Dz({},Vte.tickvals,{editType:"plot"}),ticktext:Dz({},Vte.ticktext,{editType:"plot"}),tickformat:Dz({},Vte.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:Dz({editType:"calc"},Wvr("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"}}});var uk={};Kn(uk,{axisExtentOffset:()=>n1r,axisTitleOffset:()=>i1r,bar:()=>a1r,blockLineCount:()=>t1r,canvasPixelRatio:()=>e1r,cn:()=>o1r,id:()=>s1r,layers:()=>r1r,maxDimensionCount:()=>Zvr,overdrag:()=>Kvr,tickDistance:()=>Qvr,verticalPadding:()=>Jvr});var Zvr,Kvr,Jvr,Qvr,e1r,t1r,r1r,i1r,n1r,a1r,o1r,s1r,ck=Ci(()=>{"use strict";Zvr=60,Kvr=45,Jvr=2,Qvr=50,e1r=1,t1r=5e3,r1r=["contextLineLayer","focusLineLayer","pickLineLayer"],i1r=28,n1r=10,a1r={width:4,captureWidth:10,fillColor:"magenta",fillOpacity:1,snapDuration:150,snapRatio:.25,snapClose:.01,strokeOpacity:1,strokeWidth:1,handleHeight:8,handleOpacity:1,handleOverlap:0},o1r={axisExtentText:"axis-extent-text",parcoordsLineLayers:"parcoords-line-layers",parcoordsLineLayer:"parcoords-lines",parcoords:"parcoords",parcoordsControlView:"parcoords-control-view",yAxis:"y-axis",axisOverlays:"axis-overlays",axis:"axis",axisHeading:"axis-heading",axisTitle:"axis-title",axisExtent:"axis-extent",axisExtentTop:"axis-extent-top",axisExtentTopText:"axis-extent-top-text",axisExtentBottom:"axis-extent-bottom",axisExtentBottomText:"axis-extent-bottom-text",axisBrush:"axis-brush"},s1r={filterBarPattern:"filter-bar-pattern"}});var J1=W((Mti,dKe)=>{"use strict";var l1r=vA();function hKe(e){return[e]}dKe.exports={keyFun:function(e){return e.key},repeat:hKe,descend:l1r,wrap:hKe,unwrap:function(e){return e[0]}}});var Wte=W((Sti,AKe)=>{"use strict";var Nl=(ck(),Pt(uk)),wv=gi(),u1r=J1().keyFun,Fz=J1().repeat,d6=it().sorterAsc,c1r=it().strTranslate,pKe=Nl.bar.snapRatio;function vKe(e,t){return e*(1-pKe)+t*pKe}var gKe=Nl.bar.snapClose;function f1r(e,t){return e*(1-gKe)+t*gKe}function Pz(e,t,r,i){if(h1r(r,i))return r;var n=e?-1:1,a=0,o=t.length-1;if(n<0){var s=a;a=o,o=s}for(var l=t[a],u=l,c=a;n*c=t[r][0]&&e<=t[r][1])return!0;return!1}function d1r(e){e.attr("x",-Nl.bar.captureWidth/2).attr("width",Nl.bar.captureWidth)}function p1r(e){e.attr("visibility","visible").style("visibility","visible").attr("fill","yellow").attr("opacity",0)}function v1r(e){if(!e.brush.filterSpecified)return"0,"+e.height;for(var t=mKe(e.brush.filter.getConsolidated(),e.height),r=[0],i,n,a,o=t.length?t[0][0]:null,s=0;se[1]+r||t=.9*e[1]+.1*e[0]?"n":t<=.9*e[0]+.1*e[1]?"s":"ns"}function yKe(){wv.select(document.body).style("cursor",null)}function $te(e){e.attr("stroke-dasharray",v1r)}function Lz(e,t){var r=wv.select(e).selectAll(".highlight, .highlight-shadow"),i=t?r.transition().duration(Nl.bar.snapDuration).each("end",t):r;$te(i)}function xKe(e,t){var r=e.brush,i=r.filterSpecified,n=NaN,a={},o;if(i){var s=e.height,l=r.filter.getConsolidated(),u=mKe(l,s),c=NaN,f=NaN,h=NaN;for(o=0;o<=u.length;o++){var p=u[o];if(p&&p[0]<=t&&t<=p[1]){c=o;break}else if(f=o?o-1:NaN,p&&p[0]>t){h=o;break}}if(n=c,isNaN(n)&&(isNaN(f)||isNaN(h)?n=isNaN(f)?h:f:n=t-u[f][1]=w[0]&&g<=w[1]){a.clickableOrdinalRange=w;break}}}return a}function m1r(e,t){wv.event.sourceEvent.stopPropagation();var r=t.height-wv.mouse(e)[1]-2*Nl.verticalPadding,i=t.unitToPaddedPx.invert(r),n=t.brush,a=xKe(t,r),o=a.interval,s=n.svgBrush;if(s.wasDragged=!1,s.grabbingBar=a.region==="ns",s.grabbingBar){var l=o.map(t.unitToPaddedPx);s.grabPoint=r-l[0]-Nl.verticalPadding,s.barLength=l[1]-l[0]}s.clickableOrdinalRange=a.clickableOrdinalRange,s.stayingIntervals=t.multiselect&&n.filterSpecified?n.filter.getConsolidated():[],o&&(s.stayingIntervals=s.stayingIntervals.filter(function(u){return u[0]!==o[0]&&u[1]!==o[1]})),s.startExtent=a.region?o[a.region==="s"?1:0]:i,t.parent.inBrushDrag=!0,s.brushStartCallback()}function bKe(e,t){wv.event.sourceEvent.stopPropagation();var r=t.height-wv.mouse(e)[1]-2*Nl.verticalPadding,i=t.brush.svgBrush;i.wasDragged=!0,i._dragging=!0,i.grabbingBar?i.newExtent=[r-i.grabPoint,r+i.barLength-i.grabPoint].map(t.unitToPaddedPx.invert):i.newExtent=[i.startExtent,t.unitToPaddedPx.invert(r)].sort(d6),t.brush.filterSpecified=!0,i.extent=i.stayingIntervals.concat([i.newExtent]),i.brushCallback(t),Lz(e.parentNode)}function y1r(e,t){var r=t.brush,i=r.filter,n=r.svgBrush;n._dragging||(_Ke(e,t),bKe(e,t),t.brush.svgBrush.wasDragged=!1),n._dragging=!1;var a=wv.event;a.sourceEvent.stopPropagation();var o=n.grabbingBar;if(n.grabbingBar=!1,n.grabLocation=void 0,t.parent.inBrushDrag=!1,yKe(),!n.wasDragged){n.wasDragged=void 0,n.clickableOrdinalRange?r.filterSpecified&&t.multiselect?n.extent.push(n.clickableOrdinalRange):(n.extent=[n.clickableOrdinalRange],r.filterSpecified=!0):o?(n.extent=n.stayingIntervals,n.extent.length===0&&jte(r)):jte(r),n.brushCallback(t),Lz(e.parentNode),n.brushEndCallback(r.filterSpecified?i.getConsolidated():[]);return}var s=function(){i.set(i.getConsolidated())};if(t.ordinal){var l=t.unitTickvals;l[l.length-1]n.newExtent[0];n.extent=n.stayingIntervals.concat(u?[n.newExtent]:[]),n.extent.length||jte(r),n.brushCallback(t),u?Lz(e.parentNode,s):(s(),Lz(e.parentNode))}else s();n.brushEndCallback(r.filterSpecified?i.getConsolidated():[])}function _Ke(e,t){var r=t.height-wv.mouse(e)[1]-2*Nl.verticalPadding,i=xKe(t,r),n="crosshair";i.clickableOrdinalRange?n="pointer":i.region&&(n=i.region+"-resize"),wv.select(document.body).style("cursor",n)}function x1r(e){e.on("mousemove",function(t){wv.event.preventDefault(),t.parent.inBrushDrag||_Ke(this,t)}).on("mouseleave",function(t){t.parent.inBrushDrag||yKe()}).call(wv.behavior.drag().on("dragstart",function(t){m1r(this,t)}).on("drag",function(t){bKe(this,t)}).on("dragend",function(t){y1r(this,t)}))}function wKe(e,t){return e[0]-t[0]}function b1r(e,t,r){var i=r._context.staticPlot,n=e.selectAll(".background").data(Fz);n.enter().append("rect").classed("background",!0).call(d1r).call(p1r).style("pointer-events",i?"none":"auto").attr("transform",c1r(0,Nl.verticalPadding)),n.call(x1r).attr("height",function(s){return s.height-Nl.verticalPadding});var a=e.selectAll(".highlight-shadow").data(Fz);a.enter().append("line").classed("highlight-shadow",!0).attr("x",-Nl.bar.width/2).attr("stroke-width",Nl.bar.width+Nl.bar.strokeWidth).attr("stroke",t).attr("opacity",Nl.bar.strokeOpacity).attr("stroke-linecap","butt"),a.attr("y1",function(s){return s.height}).call($te);var o=e.selectAll(".highlight").data(Fz);o.enter().append("line").classed("highlight",!0).attr("x",-Nl.bar.width/2).attr("stroke-width",Nl.bar.width-Nl.bar.strokeWidth).attr("stroke",Nl.bar.fillColor).attr("opacity",Nl.bar.fillOpacity).attr("stroke-linecap","butt"),o.attr("y1",function(s){return s.height}).call($te)}function _1r(e,t,r){var i=e.selectAll("."+Nl.cn.axisBrush).data(Fz,u1r);i.enter().append("g").classed(Nl.cn.axisBrush,!0),b1r(i,t,r)}function w1r(e){return e.svgBrush.extent.map(function(t){return t.slice()})}function jte(e){e.filterSpecified=!1,e.svgBrush.extent=[[-1/0,1/0]]}function T1r(e){return function(r){var i=r.brush,n=w1r(i),a=n.slice();i.filter.set(a),e()}}function TKe(e){for(var t=e.slice(),r=[],i,n=t.shift();n;){for(i=n.slice();(n=t.shift())&&n[0]<=i[1];)i[1]=Math.max(i[1],n[1]);r.push(i)}return r.length===1&&r[0][0]>r[0][1]&&(r=[]),r}function A1r(){var e=[],t,r;return{set:function(i){e=i.map(function(n){return n.slice().sort(d6)}).sort(wKe),e.length===1&&e[0][0]===-1/0&&e[0][1]===1/0&&(e=[[0,-1]]),t=TKe(e),r=e.reduce(function(n,a){return[Math.min(n[0],a[0]),Math.max(n[1],a[1])]},[1/0,-1/0])},get:function(){return e.slice()},getConsolidated:function(){return t},getBounds:function(){return r}}}function M1r(e,t,r,i,n,a){var o=A1r();return o.set(r),{filter:o,filterSpecified:t,svgBrush:{extent:[],brushStartCallback:i,brushCallback:T1r(n),brushEndCallback:a}}}function S1r(e,t){if(Array.isArray(e[0])?(e=e.map(function(i){return i.sort(d6)}),t.multiselect?e=TKe(e.sort(wKe)):e=[e[0]]):e=[e.sort(d6)],t.tickvals){var r=t.tickvals.slice().sort(d6);if(e=e.map(function(i){var n=[Pz(0,r,i[0],[]),Pz(1,r,i[1],[])];if(n[1]>n[0])return n}).filter(function(i){return i}),!e.length)return}return e.length>1?e:e[0]}AKe.exports={makeBrush:M1r,ensureAxisBrush:_1r,cleanRanges:S1r}});var EKe=W((Eti,SKe)=>{"use strict";var Z2=it(),E1r=Mc().hasColorscale,k1r=zu(),C1r=fs().defaults,D1r=ef(),F1r=Wi(),MKe=Hte(),L1r=Wte(),Yte=(ck(),Pt(uk)).maxDimensionCount,P1r=Tz();function I1r(e,t,r,i,n){var a=n("line.color",r);if(E1r(e,"line")&&Z2.isArrayOrTypedArray(a)){if(a.length)return n("line.colorscale"),k1r(e,t,i,n,{prefix:"line.",cLetter:"c"}),a.length;t.line.color=r}return 1/0}function R1r(e,t,r,i){function n(u,c){return Z2.coerce(e,t,MKe.dimensions,u,c)}var a=n("values"),o=n("visible");if(a&&a.length||(o=t.visible=!1),o){n("label"),n("tickvals"),n("ticktext"),n("tickformat");var s=n("range");t._ax={_id:"y",type:"linear",showexponent:"all",exponentformat:"B",range:s},F1r.setConvert(t._ax,i.layout),n("multiselect");var l=n("constraintrange");l&&(t.constraintrange=L1r.cleanRanges(l,t))}}SKe.exports=function(t,r,i,n){function a(c,f){return Z2.coerce(t,r,MKe,c,f)}var o=t.dimensions;Array.isArray(o)&&o.length>Yte&&(Z2.log("parcoords traces support up to "+Yte+" dimensions at the moment"),o.splice(Yte));var s=D1r(t,r,{name:"dimensions",layout:n,handleItemDefaults:R1r}),l=I1r(t,r,i,n,a);C1r(r,n,a),(!Array.isArray(s)||!s.length)&&(r.visible=!1),P1r(r,s,"values",l);var u=Z2.extendFlat({},n.font,{size:Math.round(n.font.size/1.2)});Z2.coerceFont(a,"labelfont",u),Z2.coerceFont(a,"tickfont",u,{autoShadowDflt:!0}),Z2.coerceFont(a,"rangefont",u),a("labelangle"),a("labelside"),a("unselected.line.color"),a("unselected.line.opacity")}});var CKe=W((kti,kKe)=>{"use strict";var z1r=it().isArrayOrTypedArray,Xte=es(),B1r=J1().wrap;kKe.exports=function(t,r){var i,n;return Xte.hasColorscale(r,"line")&&z1r(r.line.color)?(i=r.line.color,n=Xte.extractOpts(r.line).colorscale,Xte.calc(t,r,{vals:i,containerStr:"line",cLetter:"c"})):(i=q1r(r._length),n=[[0,r.line.color],[1,r.line.color]]),B1r({lineColor:i,cscale:n})};function q1r(e){for(var t=new Array(e),r=0;r{"use strict";var O1r=it().isTypedArray;Iz.convertTypedArray=function(e){return O1r(e)?Array.prototype.slice.call(e):e};Iz.isOrdinal=function(e){return!!e.tickvals};Iz.isVisible=function(e){return e.visible||!("visible"in e)}});var OKe=W((Dti,qKe)=>{"use strict";var N1r=["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(` -`),U1r=["precision highp float;","","varying vec4 fragColor;","","void main() {"," gl_FragColor = fragColor;","}"].join(` -`),fk=(ck(),Pt(uk)).maxDimensionCount,RKe=it(),DKe=1e-6,Rz=2048,V1r=new Uint8Array(4),FKe=new Uint8Array(4),LKe={shape:[256,1],format:"rgba",type:"uint8",mag:"nearest",min:"nearest"};function G1r(e){e.read({x:0,y:0,width:1,height:1,data:V1r})}function zKe(e,t,r,i,n){var a=e._gl;a.enable(a.SCISSOR_TEST),a.scissor(t,r,i,n),e.clear({color:[0,0,0,0],depth:1})}function H1r(e,t,r,i,n,a){var o=a.key;function s(l){var u=Math.min(i,n-l*i);l===0&&(window.cancelAnimationFrame(r.currentRafs[o]),delete r.currentRafs[o],zKe(e,a.scissorX,a.scissorY,a.scissorWidth,a.viewBoxSize[1])),!r.clearOnly&&(a.count=2*u,a.offset=2*l*i,t(a),l*i+u>>8*t)%256/255}function W1r(e,t,r){for(var i=new Array(e*(fk+4)),n=0,a=0;aP&&(P=A[C].dim1.canvasX,D=C);M===0&&zKe(n,0,0,u.canvasWidth,u.canvasHeight);var R=_(r);for(C=0;C{"use strict";var cc=gi(),Em=it(),Jte=Em.isArrayOrTypedArray,jKe=Em.numberFormat,$Ke=ai(),WKe=Wi(),J1r=Em.strRotate,Q1=Em.strTranslate,Q1r=ho(),zz=en(),NKe=es(),tre=J1(),Zd=tre.keyFun,eg=tre.repeat,YKe=tre.unwrap,p6=Zte(),qa=(ck(),Pt(uk)),XKe=Wte(),egr=OKe();function UKe(e,t,r){return Em.aggNums(e,null,t,r)}function ZKe(e,t){return rre(UKe(Math.min,e,t),UKe(Math.max,e,t))}function Bz(e){var t=e.range;return t?rre(t[0],t[1]):ZKe(e.values,e._length)}function rre(e,t){return(isNaN(e)||!isFinite(e))&&(e=0),(isNaN(t)||!isFinite(t))&&(t=0),e===t&&(e===0?(e-=1,t+=1):(e*=.9,t*=1.1)),[e,t]}function tgr(e,t){return t?function(r,i){var n=t[i];return n==null?e(r):n}:e}function rgr(e,t,r,i,n){var a=Bz(r);return i?cc.scale.ordinal().domain(i.map(tgr(jKe(r.tickformat),n))).range(i.map(function(o){var s=(o-a[0])/(a[1]-a[0]);return e-t+s*(2*t-e)})):cc.scale.linear().domain(a).range([e-t,t])}function igr(e,t){return cc.scale.linear().range([t,e-t])}function ngr(e,t){return cc.scale.linear().domain(Bz(e)).range([t,1-t])}function agr(e){if(e.tickvals){var t=Bz(e);return cc.scale.ordinal().domain(e.tickvals).range(e.tickvals.map(function(r){return(r-t[0])/(t[1]-t[0])}))}}function ogr(e){var t=e.map(function(a){return a[0]}),r=e.map(function(a){let[o,s,l]=$Ke.rgbaArray(a[1]);return cc.rgb(o,s,l)}),i=function(a){return function(o){return o[a]}},n="rgb".split("").map(function(a){return cc.scale.linear().clamp(!0).domain(t).range(r.map(i(a)))});return function(a){return n.map(function(o){return o(a)})}}function ere(e){return e.dimensions.some(function(t){return t.brush.filterSpecified})}function sgr(e,t,r){var i=YKe(t),n=i.trace,a=p6.convertTypedArray(i.lineColor),o=n.line,s={color:$Ke.normalize(n.unselected.line.color),opacity:n.unselected.line.opacity},l=NKe.extractOpts(o),u=l.reversescale?NKe.flipScale(i.cscale):i.cscale,c=n.domain,f=n.dimensions,h=e.width,p=n.labelangle,d=n.labelside,v=n.labelfont,m=n.tickfont,g=n.rangefont,w=Em.extendDeepNoArrays({},o,{color:a.map(cc.scale.linear().domain(Bz({values:a,range:[l.min,l.max],_length:n._length}))),blockLineCount:qa.blockLineCount,canvasOverdrag:qa.overdrag*qa.canvasPixelRatio}),_=Math.floor(h*(c.x[1]-c.x[0])),b=Math.floor(e.height*(c.y[1]-c.y[0])),S=e.margin||{l:80,r:80,t:100,b:80},x=_,T=b;return{key:r,colCount:f.filter(p6.isVisible).length,dimensions:f,tickDistance:qa.tickDistance,unitToColor:ogr(u),lines:w,deselectedLines:s,labelAngle:p,labelSide:d,labelFont:v,tickFont:m,rangeFont:g,layoutWidth:h,layoutHeight:e.height,domain:c,translateX:c.x[0]*h,translateY:e.height-c.y[1]*e.height,pad:S,canvasWidth:x*qa.canvasPixelRatio+2*w.canvasOverdrag,canvasHeight:T*qa.canvasPixelRatio,width:x,height:T,canvasPixelRatio:qa.canvasPixelRatio}}function lgr(e,t,r){var i=r.width,n=r.height,a=r.dimensions,o=r.canvasPixelRatio,s=function(h){return i*h/Math.max(1,r.colCount-1)},l=qa.verticalPadding/n,u=igr(n,qa.verticalPadding),c={key:r.key,xScale:s,model:r,inBrushDrag:!1},f={};return c.dimensions=a.filter(p6.isVisible).map(function(h,p){var d=ngr(h,l),v=f[h.label];f[h.label]=(v||0)+1;var m=h.label+(v?"__"+v:""),g=h.constraintrange,w=g&&g.length;w&&!Jte(g[0])&&(g=[g]);var _=w?g.map(function(k){return k.map(d)}):[[-1/0,1/0]],b=function(){var k=c;k.focusLayer&&k.focusLayer.render(k.panels,!0);var D=ere(k);!e.contextShown()&&D?(k.contextLayer&&k.contextLayer.render(k.panels,!0),e.contextShown(!0)):e.contextShown()&&!D&&(k.contextLayer&&k.contextLayer.render(k.panels,!0,!0),e.contextShown(!1))},S=h.values;S.length>h._length&&(S=S.slice(0,h._length));var x=h.tickvals,T;function A(k,D){return{val:k,text:T[D]}}function y(k,D){return k.val-D.val}if(Jte(x)&&x.length){Em.isTypedArray(x)&&(x=Array.from(x)),T=h.ticktext,!Jte(T)||!T.length?T=x.map(jKe(h.tickformat)):T.length>x.length?T=T.slice(0,x.length):x.length>T.length&&(x=x.slice(0,T.length));for(var E=1;E=D||F>=L)return;var I=C.lineLayer.readPixel(R,L-1-F),B=I[3]!==0,O=B?I[2]+256*(I[1]+256*I[0]):null,$={x:R,y:F,clientX:k.clientX,clientY:k.clientY,dataIndex:C.model.key,curveNumber:O};O!==d&&(B?n.hover($):n.unhover&&n.unhover($),d=O)}}),p.style("opacity",function(C){return C.pick?0:1}),s.style("background","rgba(255, 255, 255, 0)");var m=s.selectAll("."+qa.cn.parcoords).data(h,Zd);m.exit().remove(),m.enter().append("g").classed(qa.cn.parcoords,!0).style("shape-rendering","crispEdges").style("pointer-events","none"),m.attr("transform",function(C){return Q1(C.model.translateX,C.model.translateY)});var g=m.selectAll("."+qa.cn.parcoordsControlView).data(eg,Zd);g.enter().append("g").classed(qa.cn.parcoordsControlView,!0),g.attr("transform",function(C){return Q1(C.model.pad.l,C.model.pad.t)});var w=g.selectAll("."+qa.cn.yAxis).data(function(C){return C.dimensions},Zd);w.enter().append("g").classed(qa.cn.yAxis,!0),g.each(function(C){Qte(w,C,u)}),p.each(function(C){if(C.viewModel){!C.lineLayer||n?C.lineLayer=egr(this,C):C.lineLayer.update(C),(C.key||C.key===0)&&(C.viewModel[C.key]=C.lineLayer);var k=!C.context||n;C.lineLayer.render(C.viewModel.panels,k)}}),w.attr("transform",function(C){return Q1(C.xScale(C.xIndex),0)}),w.call(cc.behavior.drag().origin(function(C){return C}).on("drag",function(C){var k=C.parent;f.linePickActive(!1),C.x=Math.max(-qa.overdrag,Math.min(C.model.width+qa.overdrag,cc.event.x)),C.canvasX=C.x*C.model.canvasPixelRatio,w.sort(function(D,L){return D.x-L.x}).each(function(D,L){D.xIndex=L,D.x=C===D?D.x:D.xScale(D.xIndex),D.canvasX=D.x*D.model.canvasPixelRatio}),Qte(w,k,u),w.filter(function(D){return Math.abs(C.xIndex-D.xIndex)!==0}).attr("transform",function(D){return Q1(D.xScale(D.xIndex),0)}),cc.select(this).attr("transform",Q1(C.x,0)),w.each(function(D,L,P){P===C.parent.key&&(k.dimensions[L]=D)}),k.contextLayer&&k.contextLayer.render(k.panels,!1,!ere(k)),k.focusLayer.render&&k.focusLayer.render(k.panels)}).on("dragend",function(C){var k=C.parent;C.x=C.xScale(C.xIndex),C.canvasX=C.x*C.model.canvasPixelRatio,Qte(w,k,u),cc.select(this).attr("transform",function(D){return Q1(D.x,0)}),k.contextLayer&&k.contextLayer.render(k.panels,!1,!ere(k)),k.focusLayer&&k.focusLayer.render(k.panels),k.pickLayer&&k.pickLayer.render(k.panels,!0),f.linePickActive(!0),n&&n.axesMoved&&n.axesMoved(k.key,k.dimensions.map(function(D){return D.crossfilterDimensionIndex}))})),w.exit().remove();var _=w.selectAll("."+qa.cn.axisOverlays).data(eg,Zd);_.enter().append("g").classed(qa.cn.axisOverlays,!0),_.selectAll("."+qa.cn.axis).remove();var b=_.selectAll("."+qa.cn.axis).data(eg,Zd);b.enter().append("g").classed(qa.cn.axis,!0),b.each(function(C){var k=C.model.height/C.model.tickDistance,D=C.domainScale,L=D.domain();cc.select(this).call(cc.svg.axis().orient("left").tickSize(4).outerTickSize(2).ticks(k,C.tickFormat).tickValues(C.ordinal?L:null).tickFormat(function(P){return p6.isOrdinal(C)?P:KKe(C.model.dimensions[C.visibleIndex],P)}).scale(D)),zz.font(b.selectAll("text"),C.model.tickFont)}),b.selectAll(".domain, .tick>line").attr("fill","none").attr("stroke","black").attr("stroke-opacity",.25).attr("stroke-width","1px"),b.selectAll("text").style("cursor","default");var S=_.selectAll("."+qa.cn.axisHeading).data(eg,Zd);S.enter().append("g").classed(qa.cn.axisHeading,!0);var x=S.selectAll("."+qa.cn.axisTitle).data(eg,Zd);x.enter().append("text").classed(qa.cn.axisTitle,!0).attr("text-anchor","middle").style("cursor","ew-resize").style("pointer-events",a?"none":"auto"),x.text(function(C){return C.label}).each(function(C){var k=cc.select(this);zz.font(k,C.model.labelFont),Q1r.convertToTspans(k,t)}).attr("transform",function(C){var k=GKe(C.model.labelAngle,C.model.labelSide),D=qa.axisTitleOffset;return(k.dir>0?"":Q1(0,2*D+C.model.height))+J1r(k.degrees)+Q1(-D*k.dx,-D*k.dy)}).attr("text-anchor",function(C){var k=GKe(C.model.labelAngle,C.model.labelSide),D=Math.abs(k.dx),L=Math.abs(k.dy);return 2*D>L?k.dir*k.dx<0?"start":"end":"middle"});var T=_.selectAll("."+qa.cn.axisExtent).data(eg,Zd);T.enter().append("g").classed(qa.cn.axisExtent,!0);var A=T.selectAll("."+qa.cn.axisExtentTop).data(eg,Zd);A.enter().append("g").classed(qa.cn.axisExtentTop,!0),A.attr("transform",Q1(0,-qa.axisExtentOffset));var y=A.selectAll("."+qa.cn.axisExtentTopText).data(eg,Zd);y.enter().append("text").classed(qa.cn.axisExtentTopText,!0).call(VKe),y.text(function(C){return HKe(C,!0)}).each(function(C){zz.font(cc.select(this),C.model.rangeFont)});var E=T.selectAll("."+qa.cn.axisExtentBottom).data(eg,Zd);E.enter().append("g").classed(qa.cn.axisExtentBottom,!0),E.attr("transform",function(C){return Q1(0,C.model.height+qa.axisExtentOffset)});var M=E.selectAll("."+qa.cn.axisExtentBottomText).data(eg,Zd);M.enter().append("text").classed(qa.cn.axisExtentBottomText,!0).attr("dy","0.75em").call(VKe),M.text(function(C){return HKe(C,!1)}).each(function(C){zz.font(cc.select(this),C.model.rangeFont)}),XKe.ensureAxisBrush(_,c,t)}});var nre=W((ire,iJe)=>{"use strict";var fgr=QKe(),hgr=_z(),eJe=Zte().isVisible,rJe={};function tJe(e,t,r){var i=t.indexOf(r),n=e.indexOf(i);return n===-1&&(n+=t.length),n}function dgr(e,t){return function(i,n){return tJe(e,t,i)-tJe(e,t,n)}}var ire=iJe.exports=function(t,r){var i=t._fullLayout,n=hgr(t,[],rJe);if(n){var a={},o={},s={},l=i._size;r.forEach(function(p,d){var v=p[0].trace,m=s[d]=v.index;a[d]=t.data[m].dimensions,o[d]=t.data[m].dimensions.slice()});var u=function(p,d,v){var m=o[p][d],g=v.map(function(T){return T.slice()}),w="dimensions["+d+"].constraintrange",_=i._tracePreGUI[t._fullData[s[p]].uid];if(_[w]===void 0){var b=m.constraintrange;_[w]=b||null}var S=t._fullData[s[p]].dimensions[d];g.length?(g.length===1&&(g=g[0]),m.constraintrange=g,S.constraintrange=g.slice(),g=[g]):(delete m.constraintrange,delete S.constraintrange,g=null);var x={};x[w]=g,t.emit("plotly_restyle",[x,[s[p]]])},c=function(p){t.emit("plotly_hover",p)},f=function(p){t.emit("plotly_unhover",p)},h=function(p,d){var v=dgr(d,o[p].filter(eJe));a[p].sort(v),o[p].filter(function(m){return!eJe(m)}).sort(function(m){return o[p].indexOf(m)}).forEach(function(m){a[p].splice(a[p].indexOf(m),1),a[p].splice(o[p].indexOf(m),0,m)}),t.emit("plotly_restyle",[{dimensions:[a[p]]},[s[p]]])};fgr(t,r,{width:l.w,height:l.h,margin:{t:l.t,r:l.r,b:l.b,l:l.l}},{filterChanged:u,hover:c,unhover:f,axesMoved:h})}};ire.reglPrecompiled=rJe});var aJe=W(hk=>{"use strict";var nJe=gi(),pgr=Ac().getModuleCalcData,vgr=nre(),ggr=(vd(),Pt(pd));hk.name="parcoords";hk.plot=function(e){var t=pgr(e.calcdata,"parcoords")[0];t.length&&vgr(e,t)};hk.clean=function(e,t,r,i){var n=i._has&&i._has("parcoords"),a=t._has&&t._has("parcoords");n&&!a&&(i._paperdiv.selectAll(".parcoords").remove(),i._glimages.selectAll("*").remove())};hk.toSVG=function(e){var t=e._fullLayout._glimages,r=nJe.select(e).selectAll(".svg-container"),i=r.filter(function(a,o){return o===r.size()-1}).selectAll(".gl-canvas-context, .gl-canvas-focus");function n(){var a=this,o=a.toDataURL("image/png"),s=t.append("svg:image");s.attr({xmlns:ggr.svg,"xlink:href":o,preserveAspectRatio:"none",x:0,y:0,width:a.style.width,height:a.style.height})}i.each(n),window.setTimeout(function(){nJe.selectAll("#filterBarPattern").attr("id","filterBarPattern")},60)}});var sJe=W((Pti,oJe)=>{"use strict";oJe.exports={attributes:Hte(),supplyDefaults:EKe(),calc:CKe(),colorbar:{container:"line",min:"cmin",max:"cmax"},moduleType:"trace",name:"parcoords",basePlotModule:aJe(),categories:["gl","regl","noOpacity","noHover"],meta:{}}});var cJe=W((Iti,uJe)=>{"use strict";var lJe=sJe();lJe.plot=nre();uJe.exports=lJe});var hJe=W((Rti,fJe)=>{"use strict";fJe.exports=cJe()});var are=W((zti,mJe)=>{"use strict";var pJe=nn().extendFlat,mgr=Ka(),dJe=jo(),ygr=Fo(),{hovertemplateAttrs:vJe,templatefallbackAttrs:gJe}=$a(),xgr=fs().attributes,bgr=pJe({editType:"calc"},ygr("line",{editTypeOverride:"calc"}),{shape:{valType:"enumerated",values:["linear","hspline"],dflt:"linear",editType:"plot"},hovertemplate:vJe({editType:"plot",arrayOk:!1},{keys:["count","probability"]}),hovertemplatefallback:gJe({editType:"plot"})});mJe.exports={domain:xgr({name:"parcats",trace:!0,editType:"calc"}),hoverinfo:pJe({},mgr.hoverinfo,{flags:["count","probability"],editType:"plot",arrayOk:!1}),hoveron:{valType:"enumerated",values:["category","color","dimension"],dflt:"category",editType:"plot"},hovertemplate:vJe({editType:"plot",arrayOk:!1},{keys:["count","probability","category","categorycount","colorcount","bandcolorcount"]}),hovertemplatefallback:gJe({editType:"plot"}),arrangement:{valType:"enumerated",values:["perpendicular","freeform","fixed"],dflt:"perpendicular",editType:"plot"},bundlecolors:{valType:"boolean",dflt:!0,editType:"plot"},sortpaths:{valType:"enumerated",values:["forward","backward"],dflt:"forward",editType:"plot"},labelfont:dJe({editType:"calc"}),tickfont:dJe({autoShadowDflt:!0,editType:"calc"}),dimensions:{_isLinkedToArray:"dimension",label:{valType:"string",editType:"calc"},categoryorder:{valType:"enumerated",values:["trace","category ascending","category descending","array"],dflt:"trace",editType:"calc"},categoryarray:{valType:"data_array",editType:"calc"},ticktext:{valType:"data_array",editType:"calc"},values:{valType:"data_array",dflt:[],editType:"calc"},displayindex:{valType:"integer",editType:"calc"},editType:"calc",visible:{valType:"boolean",dflt:!0,editType:"calc"}},line:bgr,counts:{valType:"number",min:0,dflt:1,arrayOk:!0,editType:"calc"},customdata:void 0,hoverlabel:void 0,ids:void 0,legend:void 0,legendgroup:void 0,legendrank:void 0,opacity:void 0,selectedpoints:void 0,showlegend:void 0}});var bJe=W((Bti,xJe)=>{"use strict";var v6=it(),_gr=Mc().hasColorscale,wgr=zu(),Tgr=fs().defaults,Agr=ef(),yJe=are(),Mgr=Tz(),Sgr=wc().isTypedArraySpec;function Egr(e,t,r,i,n){n("line.shape"),n("line.hovertemplate"),n("line.hovertemplatefallback");var a=n("line.color",i.colorway[0]);if(_gr(e,"line")&&v6.isArrayOrTypedArray(a)){if(a.length)return n("line.colorscale"),wgr(e,t,i,n,{prefix:"line.",cLetter:"c"}),a.length;t.line.color=r}return 1/0}function kgr(e,t){function r(u,c){return v6.coerce(e,t,yJe.dimensions,u,c)}var i=r("values"),n=r("visible");if(i&&i.length||(n=t.visible=!1),n){r("label"),r("displayindex",t._index);var a=e.categoryarray,o=v6.isArrayOrTypedArray(a)&&a.length>0||Sgr(a),s;o&&(s="array");var l=r("categoryorder",s);l==="array"?(r("categoryarray"),r("ticktext")):(delete e.categoryarray,delete e.ticktext),!o&&l==="array"&&(t.categoryorder="trace")}}xJe.exports=function(t,r,i,n){function a(u,c){return v6.coerce(t,r,yJe,u,c)}var o=Agr(t,r,{name:"dimensions",handleItemDefaults:kgr}),s=Egr(t,r,i,n,a);Tgr(r,n,a),(!Array.isArray(o)||!o.length)&&(r.visible=!1),Mgr(r,o,"values",s),a("hoveron"),a("hovertemplate"),a("hovertemplatefallback"),a("arrangement"),a("bundlecolors"),a("sortpaths"),a("counts");var l=n.font;v6.coerceFont(a,"labelfont",l,{overrideDflt:{size:Math.round(l.size)}}),v6.coerceFont(a,"tickfont",l,{autoShadowDflt:!0,overrideDflt:{size:Math.round(l.size/1.2)}})}});var wJe=W((qti,_Je)=>{"use strict";var Cgr=J1().wrap,Dgr=Mc().hasColorscale,Fgr=tf(),Lgr=JV(),Pgr=en(),dk=it(),Igr=un();_Je.exports=function(t,r){var i=dk.filterVisible(r.dimensions);if(i.length===0)return[];var n=i.map(function(y){var E;if(y.categoryorder==="trace")E=null;else if(y.categoryorder==="array")E=y.categoryarray;else{E=Lgr(y.values);for(var M=!0,C=0;C=e.length||t[e[r]]!==void 0)return!1;t[e[r]]=!0}return!0}});var FJe=W((Oti,DJe)=>{"use strict";var Oa=gi(),jgr=(S_(),Pt(M_)).interpolateNumber,$gr=FF(),ore=ai(),gk=Ls(),K2=it(),pk=K2.strTranslate,TJe=en(),Wgr=ho();function Ygr(e,t,r,i){var n=t._context.staticPlot,a=e.map(cmr.bind(0,t,r)),o=i.selectAll("g.parcatslayer").data([null]);o.enter().append("g").attr("class","parcatslayer").style("pointer-events",n?"none":"all");var s=o.selectAll("g.trace.parcats").data(a,km),l=s.enter().append("g").attr("class","trace parcats");s.attr("transform",function(w){return pk(w.x,w.y)}),l.append("g").attr("class","paths");var u=s.select("g.paths"),c=u.selectAll("path.path").data(function(w){return w.paths},km);c.attr("fill",function(w){return w.model.color});var f=c.enter().append("path").attr("class","path").attr("stroke-opacity",0).attr("fill",function(w){return w.model.color}).attr("fill-opacity",0);ure(f),c.attr("d",function(w){return w.svgD}),f.empty()||c.sort(sre),c.exit().remove(),c.on("mouseover",Zgr).on("mouseout",Kgr).on("click",Jgr),l.append("g").attr("class","dimensions");var h=s.select("g.dimensions"),p=h.selectAll("g.dimension").data(function(w){return w.dimensions},km);p.enter().append("g").attr("class","dimension"),p.attr("transform",function(w){return pk(w.x,0)}),p.exit().remove();var d=p.selectAll("g.category").data(function(w){return w.categories},km),v=d.enter().append("g").attr("class","category");d.attr("transform",function(w){return pk(0,w.y)}),v.append("rect").attr("class","catrect").attr("pointer-events","none"),d.select("rect.catrect").attr("fill","none").attr("width",function(w){return w.width}).attr("height",function(w){return w.height}),MJe(v);var m=d.selectAll("rect.bandrect").data(function(w){return w.bands},km);m.each(function(){K2.raiseToTop(this)}),m.attr("fill",function(w){return w.color});var g=m.enter().append("rect").attr("class","bandrect").attr("stroke-opacity",0).attr("fill",function(w){return w.color}).attr("fill-opacity",0);m.attr("fill",function(w){return w.color}).attr("width",function(w){return w.width}).attr("height",function(w){return w.height}).attr("y",function(w){return w.y}).attr("cursor",function(w){return w.parcatsViewModel.arrangement==="fixed"?"default":w.parcatsViewModel.arrangement==="perpendicular"?"ns-resize":"move"}),fre(g),m.exit().remove(),v.append("text").attr("class","catlabel").attr("pointer-events","none"),d.select("text.catlabel").attr("text-anchor",function(w){return vk(w)?"start":"end"}).attr("alignment-baseline","middle").style("fill","rgb(0, 0, 0)").attr("x",function(w){return vk(w)?w.width+5:-5}).attr("y",function(w){return w.height/2}).text(function(w){return w.model.categoryLabel}).each(function(w){TJe.font(Oa.select(this),w.parcatsViewModel.categorylabelfont),Wgr.convertToTspans(Oa.select(this),t)}),v.append("text").attr("class","dimlabel"),d.select("text.dimlabel").attr("text-anchor","middle").attr("alignment-baseline","baseline").attr("cursor",function(w){return w.parcatsViewModel.arrangement==="fixed"?"default":"ew-resize"}).attr("x",function(w){return w.width/2}).attr("y",-5).text(function(w,_){return _===0?w.parcatsViewModel.model.dimensions[w.model.dimensionInd].dimensionLabel:null}).each(function(w){TJe.font(Oa.select(this),w.parcatsViewModel.labelfont)}),d.selectAll("rect.bandrect").on("mouseover",amr).on("mouseout",omr),d.exit().remove(),p.call(Oa.behavior.drag().origin(function(w){return{x:w.x,y:0}}).on("dragstart",smr).on("drag",lmr).on("dragend",umr)),s.each(function(w){w.traceSelection=Oa.select(this),w.pathSelection=Oa.select(this).selectAll("g.paths").selectAll("path.path"),w.dimensionSelection=Oa.select(this).selectAll("g.dimensions").selectAll("g.dimension")}),s.exit().remove()}DJe.exports=function(e,t,r,i){Ygr(r,e,i,t)};function km(e){return e.key}function vk(e){var t=e.parcatsViewModel.dimensions.length,r=e.parcatsViewModel.dimensions[t-1].model.dimensionInd;return e.model.dimensionInd===r}function sre(e,t){return e.model.rawColor>t.model.rawColor?1:e.model.rawColorn)return 1;if(i!==n){var a=isNaN(i),o=isNaN(n);if(a!==o)return a?1:-1}}return e.length-t.length}function Zgr(e){if(!e.parcatsViewModel.dragDimension&&e.parcatsViewModel.hoverinfoItems.indexOf("skip")===-1){K2.raiseToTop(this),cre(Oa.select(this));var t=mk(e),r=lre(e);if(e.parcatsViewModel.graphDiv.emit("plotly_hover",{points:t,event:Oa.event,constraints:r}),e.parcatsViewModel.hoverinfoItems.indexOf("none")===-1){var i=Oa.mouse(this)[0],n=e.parcatsViewModel.graphDiv,a=e.parcatsViewModel.trace,o=n._fullLayout,s=o._paperdiv.node().getBoundingClientRect(),l=e.parcatsViewModel.graphDiv.getBoundingClientRect(),u,c,f;for(f=0;f"),x=Oa.mouse(n)[0];gk.loneHover({trace:a,x:d-s.left+l.left,y:v-s.top+l.top,text:S,color:e.model.color,borderColor:"black",fontFamily:'Monaco, "Courier New", monospace',fontSize:10,fontColor:m,idealAlign:xore.mostReadable(t.model.color)).attr("stroke-width",.3)}function Qgr(e){e.select("rect.catrect").attr("stroke","black").attr("stroke-width",2.5)}function MJe(e){e.select("rect.catrect").attr("stroke","black").attr("stroke-width",1).attr("stroke-opacity",1)}function emr(e){e.attr("stroke","black").attr("stroke-width",1.5)}function fre(e){e.attr("stroke","black").attr("stroke-width",.2).attr("stroke-opacity",1).attr("fill-opacity",1)}function qz(e){var t=e.parcatsViewModel.pathSelection,r=e.categoryViewModel.model.dimensionInd,i=e.categoryViewModel.model.categoryInd;return t.filter(function(n){return n.model.categoryInds[r]===i&&n.model.color===e.color})}function tmr(e){var t=Oa.select(e.parentNode).selectAll("rect.bandrect");t.each(function(r){var i=qz(r);cre(i),i.each(function(){K2.raiseToTop(this)})}),Qgr(Oa.select(e.parentNode))}function rmr(e){var t=Oa.select(e).datum(),r=qz(t);cre(r),r.each(function(){K2.raiseToTop(this)}),Oa.select(e.parentNode).selectAll("rect.bandrect").filter(function(i){return i.color===t.color}).each(function(){K2.raiseToTop(this),emr(Oa.select(this))})}function hre(e,t,r){var i=Oa.select(e).datum(),n=i.categoryViewModel.model,a=i.parcatsViewModel.graphDiv,o=Oa.select(e.parentNode).selectAll("rect.bandrect"),s=[];o.each(function(u){var c=qz(u);c.each(function(f){Array.prototype.push.apply(s,mk(f))})});var l={};l[n.dimensionInd]=n.categoryValue,a.emit(t,{points:s,event:r,constraints:l})}function dre(e,t,r){var i=Oa.select(e).datum(),n=i.categoryViewModel.model,a=i.parcatsViewModel.graphDiv,o=qz(i),s=[];o.each(function(u){Array.prototype.push.apply(s,mk(u))});var l={};l[n.dimensionInd]=n.categoryValue,i.rawColor!==void 0&&(l.color=i.rawColor),a.emit(t,{points:s,event:r,constraints:l})}function SJe(e,t,r){e._fullLayout._calcInverseTransform(e);var i=e._fullLayout._invScaleX,n=e._fullLayout._invScaleY,a=Oa.select(r.parentNode).select("rect.catrect"),o=a.node().getBoundingClientRect(),s=a.datum(),l=s.parcatsViewModel,u=l.model.dimensions[s.model.dimensionInd],c=l.trace,f=o.top+o.height/2,h,p;l.dimensions.length>1&&u.displayInd===l.dimensions.length-1?(h=o.left,p="left"):(h=o.left+o.width,p="right");var d=s.model.count,v=s.model.categoryLabel,m=d/s.parcatsViewModel.model.count,g={countLabel:d,categoryLabel:v,probabilityLabel:m.toFixed(3)},w=[];s.parcatsViewModel.hoverinfoItems.indexOf("count")!==-1&&w.push(["Count:",g.countLabel].join(" ")),s.parcatsViewModel.hoverinfoItems.indexOf("probability")!==-1&&w.push(["P("+g.categoryLabel+"):",g.probabilityLabel].join(" "));var _=w.join("
");return{trace:c,x:i*(h-t.left),y:n*(f-t.top),text:_,color:"lightgray",borderColor:"black",fontFamily:'Monaco, "Courier New", monospace',fontSize:12,fontColor:"black",idealAlign:p,hovertemplate:c.hovertemplate,hovertemplateLabels:g,eventData:[{data:c._input,fullData:c,count:d,category:v,probability:m}]}}function imr(e,t,r){var i=[];return Oa.select(r.parentNode.parentNode).selectAll("g.category").select("rect.catrect").each(function(){var n=this;i.push(SJe(e,t,n))}),i}function nmr(e,t,r){e._fullLayout._calcInverseTransform(e);var i=e._fullLayout._invScaleX,n=e._fullLayout._invScaleY,a=r.getBoundingClientRect(),o=Oa.select(r).datum(),s=o.categoryViewModel,l=s.parcatsViewModel,u=l.model.dimensions[s.model.dimensionInd],c=l.trace,f=a.y+a.height/2,h,p;l.dimensions.length>1&&u.displayInd===l.dimensions.length-1?(h=a.left,p="left"):(h=a.left+a.width,p="right");var d=s.model.categoryLabel,v=o.parcatsViewModel.model.count,m=0;o.categoryViewModel.bands.forEach(function(E){E.color===o.color&&(m+=E.count)});var g=s.model.count,w=0;l.pathSelection.each(function(E){E.model.color===o.color&&(w+=E.model.count)});var _=m/v,b=m/w,S=m/g,x={countLabel:m,categoryLabel:d,probabilityLabel:_.toFixed(3)},T=[];s.parcatsViewModel.hoverinfoItems.indexOf("count")!==-1&&T.push(["Count:",x.countLabel].join(" ")),s.parcatsViewModel.hoverinfoItems.indexOf("probability")!==-1&&(T.push("P(color \u2229 "+d+"): "+x.probabilityLabel),T.push("P("+d+" | color): "+b.toFixed(3)),T.push("P(color | "+d+"): "+S.toFixed(3)));var A=T.join("
"),y=ore.mostReadable(o.color);return{trace:c,x:i*(h-t.left),y:n*(f-t.top),text:A,color:o.color,borderColor:"black",fontFamily:'Monaco, "Courier New", monospace',fontColor:y,fontSize:10,idealAlign:p,hovertemplate:c.hovertemplate,hovertemplateLabels:x,eventData:[{data:c._input,fullData:c,category:d,count:v,probability:_,categorycount:g,colorcount:w,bandcolorcount:m}]}}function amr(e){if(!e.parcatsViewModel.dragDimension&&e.parcatsViewModel.hoverinfoItems.indexOf("skip")===-1){var t=Oa.mouse(this)[1];if(t<-1)return;var r=e.parcatsViewModel.graphDiv,i=r._fullLayout,n=i._paperdiv.node().getBoundingClientRect(),a=e.parcatsViewModel.hoveron,o=this;if(a==="color"?(rmr(o),dre(o,"plotly_hover",Oa.event)):(tmr(o),hre(o,"plotly_hover",Oa.event)),e.parcatsViewModel.hoverinfoItems.indexOf("none")===-1){var s;a==="category"?s=SJe(r,n,o):a==="color"?s=nmr(r,n,o):a==="dimension"&&(s=imr(r,n,o)),s&&gk.loneHover(s,{container:i._hoverlayer.node(),outerContainer:i._paper.node(),gd:r})}}}function omr(e){var t=e.parcatsViewModel;if(!t.dragDimension&&(ure(t.pathSelection),MJe(t.dimensionSelection.selectAll("g.category")),fre(t.dimensionSelection.selectAll("g.category").selectAll("rect.bandrect")),gk.loneUnhover(t.graphDiv._fullLayout._hoverlayer.node()),t.pathSelection.sort(sre),t.hoverinfoItems.indexOf("skip")===-1)){var r=e.parcatsViewModel.hoveron,i=this;r==="color"?dre(i,"plotly_unhover",Oa.event):hre(i,"plotly_unhover",Oa.event)}}function smr(e){e.parcatsViewModel.arrangement!=="fixed"&&(e.dragDimensionDisplayInd=e.model.displayInd,e.initialDragDimensionDisplayInds=e.parcatsViewModel.model.dimensions.map(function(t){return t.displayInd}),e.dragHasMoved=!1,e.dragCategoryDisplayInd=null,Oa.select(this).selectAll("g.category").select("rect.catrect").each(function(t){var r=Oa.mouse(this)[0],i=Oa.mouse(this)[1];-2<=r&&r<=t.width+2&&-2<=i&&i<=t.height+2&&(e.dragCategoryDisplayInd=t.model.displayInd,e.initialDragCategoryDisplayInds=e.model.categories.map(function(n){return n.displayInd}),t.model.dragY=t.y,K2.raiseToTop(this.parentNode),Oa.select(this.parentNode).selectAll("rect.bandrect").each(function(n){n.yc.y+c.height/2&&(a.model.displayInd=c.model.displayInd,c.model.displayInd=s),e.dragCategoryDisplayInd=a.model.displayInd}if(e.dragCategoryDisplayInd===null||e.parcatsViewModel.arrangement==="freeform"){n.model.dragX=Oa.event.x;var f=e.parcatsViewModel.dimensions[r],h=e.parcatsViewModel.dimensions[i];f!==void 0&&n.model.dragXh.x&&(n.model.displayInd=h.model.displayInd,h.model.displayInd=e.dragDimensionDisplayInd),e.dragDimensionDisplayInd=n.model.displayInd}vre(e.parcatsViewModel),pre(e.parcatsViewModel),CJe(e.parcatsViewModel),kJe(e.parcatsViewModel)}}function umr(e){if(e.parcatsViewModel.arrangement!=="fixed"&&e.dragDimensionDisplayInd!==null){Oa.select(this).selectAll("text").attr("font-weight","normal");var t={},r=EJe(e.parcatsViewModel),i=e.parcatsViewModel.model.dimensions.map(function(h){return h.displayInd}),n=e.initialDragDimensionDisplayInds.some(function(h,p){return h!==i[p]});n&&i.forEach(function(h,p){var d=e.parcatsViewModel.model.dimensions[p].containerInd;t["dimensions["+d+"].displayindex"]=h});var a=!1;if(e.dragCategoryDisplayInd!==null){var o=e.model.categories.map(function(h){return h.displayInd});if(a=e.initialDragCategoryDisplayInds.some(function(h,p){return h!==o[p]}),a){var s=e.model.categories.slice().sort(function(h,p){return h.displayInd-p.displayInd}),l=s.map(function(h){return h.categoryValue}),u=s.map(function(h){return h.categoryLabel});t["dimensions["+e.model.containerInd+"].categoryarray"]=[l],t["dimensions["+e.model.containerInd+"].ticktext"]=[u],t["dimensions["+e.model.containerInd+"].categoryorder"]="array"}}if(e.parcatsViewModel.hoverinfoItems.indexOf("skip")===-1&&!e.dragHasMoved&&e.potentialClickBand&&(e.parcatsViewModel.hoveron==="color"?dre(e.potentialClickBand,"plotly_click",Oa.event.sourceEvent):hre(e.potentialClickBand,"plotly_click",Oa.event.sourceEvent)),e.model.dragX=null,e.dragCategoryDisplayInd!==null){var c=e.parcatsViewModel.dimensions[e.dragDimensionDisplayInd].categories[e.dragCategoryDisplayInd];c.model.dragY=null,e.dragCategoryDisplayInd=null}e.dragDimensionDisplayInd=null,e.parcatsViewModel.dragDimension=null,e.dragHasMoved=null,e.potentialClickBand=null,vre(e.parcatsViewModel),pre(e.parcatsViewModel);var f=Oa.transition().duration(300).ease("cubic-in-out");f.each(function(){CJe(e.parcatsViewModel,!0),kJe(e.parcatsViewModel,!0)}).each("end",function(){(n||a)&&$gr.restyle(e.parcatsViewModel.graphDiv,t,[r])})}}function EJe(e){for(var t,r=e.graphDiv._fullData,i=0;i=0;l--)u+="C"+o[l]+","+(t[l+1]+i)+" "+a[l]+","+(t[l]+i)+" "+(e[l]+r[l])+","+(t[l]+i),u+="l-"+r[l]+",0 ";return u+="Z",u}function pre(e){var t=e.dimensions,r=e.model,i=t.map(function(k){return k.categories.map(function(D){return D.y})}),n=e.model.dimensions.map(function(k){return k.categories.map(function(D){return D.displayInd})}),a=e.model.dimensions.map(function(k){return k.displayInd}),o=e.dimensions.map(function(k){return k.model.dimensionInd}),s=t.map(function(k){return k.x}),l=t.map(function(k){return k.width}),u=[];for(var c in r.paths)r.paths.hasOwnProperty(c)&&u.push(r.paths[c]);function f(k){var D=k.categoryInds.map(function(P,R){return n[R][P]}),L=o.map(function(P){return D[P]});return L}u.sort(function(k,D){var L=f(k),P=f(D);return e.sortpaths==="backward"&&(L.reverse(),P.reverse()),L.push(k.valueInds[0]),P.push(D.valueInds[0]),e.bundlecolors&&(L.unshift(k.rawColor),P.unshift(D.rawColor)),Xgr(L,P)});for(var h=new Array(u.length),p=t[0].model.count,d=t[0].categories.map(function(k){return k.height}).reduce(function(k,D){return k+D}),v=0;v0?g=d*(m.count/p):g=0;for(var w=new Array(i.length),_=0;_1?o=(e.width-2*r-i)/(n-1):o=0,s=r,l=s+o*a;var u=[],c=e.model.maxCats,f=t.categories.length,h=8,p=t.count,d=e.height-h*(c-1),v,m,g,w,_,b=(c-f)*h/2,S=t.categories.map(function(x){return{displayInd:x.displayInd,categoryInd:x.categoryInd}});for(S.sort(function(x,T){return x.displayInd-T.displayInd}),_=0;_0?v=m.count/p*d:v=0,g={key:m.valueInds[0],model:m,width:i,height:v,y:m.dragY!==null?m.dragY:b,bands:[],parcatsViewModel:e},b=b+v+h,u.push(g);return{key:t.dimensionInd,x:t.dragX!==null?t.dragX:l,y:0,width:i,model:t,categories:u,parcatsViewModel:e,dragCategoryDisplayInd:null,dragDimensionDisplayInd:null,initialDragDimensionDisplayInds:null,initialDragCategoryDisplayInds:null,dragHasMoved:null,potentialClickBand:null}}});var gre=W((Nti,LJe)=>{"use strict";var hmr=FJe();LJe.exports=function(t,r,i,n){var a=t._fullLayout,o=a._paper,s=a._size;hmr(t,o,r,{width:s.w,height:s.h,margin:{t:s.t,r:s.r,b:s.b,l:s.l}},i,n)}});var IJe=W(Oz=>{"use strict";var dmr=Ac().getModuleCalcData,pmr=gre(),PJe="parcats";Oz.name=PJe;Oz.plot=function(e,t,r,i){var n=dmr(e.calcdata,PJe);if(n.length){var a=n[0];pmr(e,a,r,i)}};Oz.clean=function(e,t,r,i){var n=i._has&&i._has("parcats"),a=t._has&&t._has("parcats");n&&!a&&i._paperdiv.selectAll(".parcats").remove()}});var zJe=W((Vti,RJe)=>{"use strict";RJe.exports={attributes:are(),supplyDefaults:bJe(),calc:wJe(),plot:gre(),colorbar:{container:"line",min:"cmin",max:"cmax"},moduleType:"trace",name:"parcats",basePlotModule:IJe(),categories:["noOpacity"],meta:{}}});var qJe=W((Gti,BJe)=>{"use strict";BJe.exports=zJe()});var NJe=W((Hti,OJe)=>{"use strict";OJe.exports={version:8,name:"orto",metadata:{"maputnik:renderer":"mlgljs"},center:[1.537786,41.837539],zoom:12,bearing:0,pitch:0,light:{anchor:"viewport",color:"white",intensity:.4,position:[1.15,45,30]},sources:{ortoEsri:{type:"raster",tiles:["https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}"],tileSize:256,maxzoom:18,attribution:"ESRI ©
ESRI"},ortoInstaMaps:{type:"raster",tiles:["https://tilemaps.icgc.cat/mapfactory/wmts/orto_8_12/CAT3857/{z}/{x}/{y}.png"],tileSize:256,maxzoom:13},ortoICGC:{type:"raster",tiles:["https://geoserveis.icgc.cat/icc_mapesmultibase/noutm/wmts/orto/GRID3857/{z}/{x}/{y}.jpeg"],tileSize:256,minzoom:13.1,maxzoom:20},openmaptiles:{type:"vector",url:"https://geoserveis.icgc.cat/contextmaps/basemap.json"}},sprite:"https://geoserveis.icgc.cat/contextmaps/sprites/sprite@1",glyphs:"https://geoserveis.icgc.cat/contextmaps/glyphs/{fontstack}/{range}.pbf",layers:[{id:"background",type:"background",paint:{"background-color":"#F4F9F4"}},{id:"ortoEsri",type:"raster",source:"ortoEsri",maxzoom:16,layout:{visibility:"visible"}},{id:"ortoICGC",type:"raster",source:"ortoICGC",minzoom:13.1,maxzoom:19,layout:{visibility:"visible"}},{id:"ortoInstaMaps",type:"raster",source:"ortoInstaMaps",maxzoom:13,layout:{visibility:"visible"}},{id:"waterway_tunnel",type:"line",source:"openmaptiles","source-layer":"waterway",minzoom:14,filter:["all",["in","class","river","stream","canal"],["==","brunnel","tunnel"]],layout:{"line-cap":"round"},paint:{"line-color":"#a0c8f0","line-width":{base:1.3,stops:[[13,.5],[20,6]]},"line-dasharray":[2,4]}},{id:"waterway-other",type:"line",metadata:{"mapbox:group":"1444849382550.77"},source:"openmaptiles","source-layer":"waterway",filter:["!in","class","canal","river","stream"],layout:{"line-cap":"round"},paint:{"line-color":"#a0c8f0","line-width":{base:1.3,stops:[[13,.5],[20,2]]}}},{id:"waterway-stream-canal",type:"line",metadata:{"mapbox:group":"1444849382550.77"},source:"openmaptiles","source-layer":"waterway",filter:["all",["in","class","canal","stream"],["!=","brunnel","tunnel"]],layout:{"line-cap":"round"},paint:{"line-color":"#a0c8f0","line-width":{base:1.3,stops:[[13,.5],[20,6]]}}},{id:"waterway-river",type:"line",metadata:{"mapbox:group":"1444849382550.77"},source:"openmaptiles","source-layer":"waterway",filter:["all",["==","class","river"],["!=","brunnel","tunnel"]],layout:{"line-cap":"round"},paint:{"line-color":"#a0c8f0","line-width":{base:1.2,stops:[[10,.8],[20,4]]},"line-opacity":.5}},{id:"water-offset",type:"fill",metadata:{"mapbox:group":"1444849382550.77"},source:"openmaptiles","source-layer":"water",maxzoom:8,filter:["==","$type","Polygon"],layout:{visibility:"visible"},paint:{"fill-opacity":0,"fill-color":"#a0c8f0","fill-translate":{base:1,stops:[[6,[2,0]],[8,[0,0]]]}}},{id:"water",type:"fill",metadata:{"mapbox:group":"1444849382550.77"},source:"openmaptiles","source-layer":"water",layout:{visibility:"visible"},paint:{"fill-color":"hsl(210, 67%, 85%)","fill-opacity":0}},{id:"water-pattern",type:"fill",metadata:{"mapbox:group":"1444849382550.77"},source:"openmaptiles","source-layer":"water",layout:{visibility:"visible"},paint:{"fill-translate":[0,2.5],"fill-pattern":"wave","fill-opacity":1}},{id:"landcover-ice-shelf",type:"fill",metadata:{"mapbox:group":"1444849382550.77"},source:"openmaptiles","source-layer":"landcover",filter:["==","subclass","ice_shelf"],layout:{visibility:"visible"},paint:{"fill-color":"#fff","fill-opacity":{base:1,stops:[[0,.9],[10,.3]]}}},{id:"tunnel-service-track-casing",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["in","class","service","track"]],layout:{"line-join":"round"},paint:{"line-color":"#cfcdca","line-dasharray":[.5,.25],"line-width":{base:1.2,stops:[[15,1],[16,4],[20,11]]}}},{id:"tunnel-minor-casing",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["==","class","minor"]],layout:{"line-join":"round"},paint:{"line-color":"#cfcdca","line-opacity":{stops:[[12,0],[12.5,1]]},"line-width":{base:1.2,stops:[[12,.5],[13,1],[14,4],[20,15]]}}},{id:"tunnel-secondary-tertiary-casing",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["in","class","secondary","tertiary"]],layout:{"line-join":"round"},paint:{"line-color":"#e9ac77","line-opacity":1,"line-width":{base:1.2,stops:[[8,1.5],[20,17]]}}},{id:"tunnel-trunk-primary-casing",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["in","class","primary","trunk"]],layout:{"line-join":"round"},paint:{"line-color":"#e9ac77","line-width":{base:1.2,stops:[[5,.4],[6,.6],[7,1.5],[20,22]]},"line-opacity":.7}},{id:"tunnel-motorway-casing",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["==","class","motorway"]],layout:{"line-join":"round",visibility:"visible"},paint:{"line-color":"#e9ac77","line-dasharray":[.5,.25],"line-width":{base:1.2,stops:[[5,.4],[6,.6],[7,1.5],[20,22]]},"line-opacity":.5}},{id:"tunnel-path",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["==","brunnel","tunnel"],["==","class","path"]]],paint:{"line-color":"#cba","line-dasharray":[1.5,.75],"line-width":{base:1.2,stops:[[15,1.2],[20,4]]}}},{id:"tunnel-service-track",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["in","class","service","track"]],layout:{"line-join":"round"},paint:{"line-color":"#fff","line-width":{base:1.2,stops:[[15.5,0],[16,2],[20,7.5]]}}},{id:"tunnel-minor",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["==","class","minor_road"]],layout:{"line-join":"round"},paint:{"line-color":"#fff","line-opacity":1,"line-width":{base:1.2,stops:[[13.5,0],[14,2.5],[20,11.5]]}}},{id:"tunnel-secondary-tertiary",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["in","class","secondary","tertiary"]],layout:{"line-join":"round"},paint:{"line-color":"#fff4c6","line-width":{base:1.2,stops:[[6.5,0],[7,.5],[20,10]]}}},{id:"tunnel-trunk-primary",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["in","class","primary","trunk"]],layout:{"line-join":"round"},paint:{"line-color":"#fff4c6","line-width":{base:1.2,stops:[[6.5,0],[7,.5],[20,18]]},"line-opacity":.5}},{id:"tunnel-motorway",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["==","class","motorway"]],layout:{"line-join":"round",visibility:"visible"},paint:{"line-color":"#ffdaa6","line-width":{base:1.2,stops:[[6.5,0],[7,.5],[20,18]]},"line-opacity":.5}},{id:"tunnel-railway",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["==","class","rail"]],paint:{"line-color":"#bbb","line-width":{base:1.4,stops:[[14,.4],[15,.75],[20,2]]},"line-dasharray":[2,2]}},{id:"ferry",type:"line",source:"openmaptiles","source-layer":"transportation",filter:["all",["in","class","ferry"]],layout:{"line-join":"round",visibility:"visible"},paint:{"line-color":"rgba(108, 159, 182, 1)","line-width":1.1,"line-dasharray":[2,2]}},{id:"aeroway-taxiway-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"aeroway",minzoom:12,filter:["all",["in","class","taxiway"]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"rgba(153, 153, 153, 1)","line-width":{base:1.5,stops:[[11,2],[17,12]]},"line-opacity":1}},{id:"aeroway-runway-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"aeroway",minzoom:12,filter:["all",["in","class","runway"]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"rgba(153, 153, 153, 1)","line-width":{base:1.5,stops:[[11,5],[17,55]]},"line-opacity":1}},{id:"aeroway-taxiway",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"aeroway",minzoom:4,filter:["all",["in","class","taxiway"],["==","$type","LineString"]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"rgba(255, 255, 255, 1)","line-width":{base:1.5,stops:[[11,1],[17,10]]},"line-opacity":{base:1,stops:[[11,0],[12,1]]}}},{id:"aeroway-runway",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"aeroway",minzoom:4,filter:["all",["in","class","runway"],["==","$type","LineString"]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"rgba(255, 255, 255, 1)","line-width":{base:1.5,stops:[[11,4],[17,50]]},"line-opacity":{base:1,stops:[[11,0],[12,1]]}}},{id:"highway-motorway-link-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",minzoom:12,filter:["all",["!in","brunnel","bridge","tunnel"],["==","class","motorway_link"]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"#e9ac77","line-opacity":1,"line-width":{base:1.2,stops:[[12,1],[13,3],[14,4],[20,15]]}}},{id:"highway-link-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",minzoom:13,filter:["all",["!in","brunnel","bridge","tunnel"],["in","class","primary_link","secondary_link","tertiary_link","trunk_link"]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"#e9ac77","line-opacity":1,"line-width":{base:1.2,stops:[[12,1],[13,3],[14,4],[20,15]]}}},{id:"highway-minor-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["!=","brunnel","tunnel"],["in","class","minor","service","track"]]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"#cfcdca","line-opacity":{stops:[[12,0],[12.5,0]]},"line-width":{base:1.2,stops:[[12,.5],[13,1],[14,4],[20,15]]}}},{id:"highway-secondary-tertiary-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["!in","brunnel","bridge","tunnel"],["in","class","secondary","tertiary"]],layout:{"line-cap":"butt","line-join":"round",visibility:"visible"},paint:{"line-color":"#e9ac77","line-opacity":.5,"line-width":{base:1.2,stops:[[8,1.5],[20,17]]}}},{id:"highway-primary-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",minzoom:5,filter:["all",["!in","brunnel","bridge","tunnel"],["in","class","primary"]],layout:{"line-cap":"butt","line-join":"round",visibility:"visible"},paint:{"line-color":"#e9ac77","line-opacity":{stops:[[7,0],[8,.6]]},"line-width":{base:1.2,stops:[[7,0],[8,.6],[9,1.5],[20,22]]}}},{id:"highway-trunk-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",minzoom:5,filter:["all",["!in","brunnel","bridge","tunnel"],["in","class","trunk"]],layout:{"line-cap":"butt","line-join":"round",visibility:"visible"},paint:{"line-color":"#e9ac77","line-opacity":{stops:[[5,0],[6,.5]]},"line-width":{base:1.2,stops:[[5,0],[6,.6],[7,1.5],[20,22]]}}},{id:"highway-motorway-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",minzoom:4,filter:["all",["!in","brunnel","bridge","tunnel"],["==","class","motorway"]],layout:{"line-cap":"butt","line-join":"round",visibility:"visible"},paint:{"line-color":"#e9ac77","line-width":{base:1.2,stops:[[4,0],[5,.4],[6,.6],[7,1.5],[20,22]]},"line-opacity":{stops:[[4,0],[5,.5]]}}},{id:"highway-path",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["!in","brunnel","bridge","tunnel"],["==","class","path"]]],paint:{"line-color":"#cba","line-dasharray":[1.5,.75],"line-width":{base:1.2,stops:[[15,1.2],[20,4]]}}},{id:"highway-motorway-link",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",minzoom:12,filter:["all",["!in","brunnel","bridge","tunnel"],["==","class","motorway_link"]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"#fc8","line-width":{base:1.2,stops:[[12.5,0],[13,1.5],[14,2.5],[20,11.5]]}}},{id:"highway-link",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",minzoom:13,filter:["all",["!in","brunnel","bridge","tunnel"],["in","class","primary_link","secondary_link","tertiary_link","trunk_link"]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"#fea","line-width":{base:1.2,stops:[[12.5,0],[13,1.5],[14,2.5],[20,11.5]]}}},{id:"highway-minor",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["!=","brunnel","tunnel"],["in","class","minor","service","track"]]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"#fff","line-opacity":.5,"line-width":{base:1.2,stops:[[13.5,0],[14,2.5],[20,11.5]]}}},{id:"highway-secondary-tertiary",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["!in","brunnel","bridge","tunnel"],["in","class","secondary","tertiary"]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"#fea","line-width":{base:1.2,stops:[[6.5,0],[8,.5],[20,13]]},"line-opacity":.5}},{id:"highway-primary",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["!in","brunnel","bridge","tunnel"],["in","class","primary"]]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"#fea","line-width":{base:1.2,stops:[[8.5,0],[9,.5],[20,18]]},"line-opacity":0}},{id:"highway-trunk",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["!in","brunnel","bridge","tunnel"],["in","class","trunk"]]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"#fea","line-width":{base:1.2,stops:[[6.5,0],[7,.5],[20,18]]},"line-opacity":.5}},{id:"highway-motorway",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",minzoom:5,filter:["all",["==","$type","LineString"],["all",["!in","brunnel","bridge","tunnel"],["==","class","motorway"]]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"#fc8","line-width":{base:1.2,stops:[[6.5,0],[7,.5],[20,18]]},"line-opacity":.5}},{id:"railway-transit",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["==","class","transit"],["!in","brunnel","tunnel"]]],layout:{visibility:"visible"},paint:{"line-color":"hsla(0, 0%, 73%, 0.77)","line-width":{base:1.4,stops:[[14,.4],[20,1]]}}},{id:"railway-transit-hatching",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["==","class","transit"],["!in","brunnel","tunnel"]]],layout:{visibility:"visible"},paint:{"line-color":"hsla(0, 0%, 73%, 0.68)","line-dasharray":[.2,8],"line-width":{base:1.4,stops:[[14.5,0],[15,2],[20,6]]}}},{id:"railway-service",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["==","class","rail"],["has","service"]]],paint:{"line-color":"hsla(0, 0%, 73%, 0.77)","line-width":{base:1.4,stops:[[14,.4],[20,1]]}}},{id:"railway-service-hatching",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["==","class","rail"],["has","service"]]],layout:{visibility:"visible"},paint:{"line-color":"hsla(0, 0%, 73%, 0.68)","line-dasharray":[.2,8],"line-width":{base:1.4,stops:[[14.5,0],[15,2],[20,6]]}}},{id:"railway",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["!has","service"],["!in","brunnel","bridge","tunnel"],["==","class","rail"]]],paint:{"line-color":"#bbb","line-width":{base:1.4,stops:[[14,.4],[15,.75],[20,2]]}}},{id:"railway-hatching",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["!has","service"],["!in","brunnel","bridge","tunnel"],["==","class","rail"]]],paint:{"line-color":"#bbb","line-dasharray":[.2,8],"line-width":{base:1.4,stops:[[14.5,0],[15,3],[20,8]]}}},{id:"bridge-motorway-link-casing",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["==","class","motorway_link"]],layout:{"line-join":"round"},paint:{"line-color":"#e9ac77","line-opacity":1,"line-width":{base:1.2,stops:[[12,1],[13,3],[14,4],[20,15]]}}},{id:"bridge-link-casing",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["in","class","primary_link","secondary_link","tertiary_link","trunk_link"]],layout:{"line-join":"round"},paint:{"line-color":"#e9ac77","line-opacity":1,"line-width":{base:1.2,stops:[[12,1],[13,3],[14,4],[20,15]]}}},{id:"bridge-secondary-tertiary-casing",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["in","class","secondary","tertiary"]],layout:{"line-join":"round"},paint:{"line-color":"#e9ac77","line-opacity":1,"line-width":{base:1.2,stops:[[8,1.5],[20,28]]}}},{id:"bridge-trunk-primary-casing",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["in","class","primary","trunk"]],layout:{"line-join":"round"},paint:{"line-color":"hsl(28, 76%, 67%)","line-width":{base:1.2,stops:[[5,.4],[6,.6],[7,1.5],[20,26]]}}},{id:"bridge-motorway-casing",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["==","class","motorway"]],layout:{"line-join":"round"},paint:{"line-color":"#e9ac77","line-width":{base:1.2,stops:[[5,.4],[6,.6],[7,1.5],[20,22]]},"line-opacity":.5}},{id:"bridge-path-casing",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["==","brunnel","bridge"],["==","class","path"]]],paint:{"line-color":"#f8f4f0","line-width":{base:1.2,stops:[[15,1.2],[20,18]]}}},{id:"bridge-path",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["==","brunnel","bridge"],["==","class","path"]]],paint:{"line-color":"#cba","line-width":{base:1.2,stops:[[15,1.2],[20,4]]},"line-dasharray":[1.5,.75]}},{id:"bridge-motorway-link",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["==","class","motorway_link"]],layout:{"line-join":"round"},paint:{"line-color":"#fc8","line-width":{base:1.2,stops:[[12.5,0],[13,1.5],[14,2.5],[20,11.5]]}}},{id:"bridge-link",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["in","class","primary_link","secondary_link","tertiary_link","trunk_link"]],layout:{"line-join":"round"},paint:{"line-color":"#fea","line-width":{base:1.2,stops:[[12.5,0],[13,1.5],[14,2.5],[20,11.5]]}}},{id:"bridge-secondary-tertiary",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["in","class","secondary","tertiary"]],layout:{"line-join":"round"},paint:{"line-color":"#fea","line-width":{base:1.2,stops:[[6.5,0],[7,.5],[20,20]]}}},{id:"bridge-trunk-primary",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["in","class","primary","trunk"]],layout:{"line-join":"round"},paint:{"line-color":"#fea","line-width":{base:1.2,stops:[[6.5,0],[7,.5],[20,18]]}}},{id:"bridge-motorway",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["==","class","motorway"]],layout:{"line-join":"round"},paint:{"line-color":"#fc8","line-width":{base:1.2,stops:[[6.5,0],[7,.5],[20,18]]},"line-opacity":.5}},{id:"bridge-railway",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["==","class","rail"]],paint:{"line-color":"#bbb","line-width":{base:1.4,stops:[[14,.4],[15,.75],[20,2]]}}},{id:"bridge-railway-hatching",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["==","class","rail"]],paint:{"line-color":"#bbb","line-dasharray":[.2,8],"line-width":{base:1.4,stops:[[14.5,0],[15,3],[20,8]]}}},{id:"cablecar",type:"line",source:"openmaptiles","source-layer":"transportation",minzoom:13,filter:["==","class","cable_car"],layout:{visibility:"visible","line-cap":"round"},paint:{"line-color":"hsl(0, 0%, 70%)","line-width":{base:1,stops:[[11,1],[19,2.5]]}}},{id:"cablecar-dash",type:"line",source:"openmaptiles","source-layer":"transportation",minzoom:13,filter:["==","class","cable_car"],layout:{visibility:"visible","line-cap":"round"},paint:{"line-color":"hsl(0, 0%, 70%)","line-width":{base:1,stops:[[11,3],[19,5.5]]},"line-dasharray":[2,3]}},{id:"boundary-land-level-4",type:"line",source:"openmaptiles","source-layer":"boundary",filter:["all",[">=","admin_level",4],["<=","admin_level",8],["!=","maritime",1]],layout:{"line-join":"round"},paint:{"line-color":"#9e9cab","line-dasharray":[3,1,1,1],"line-width":{base:1.4,stops:[[4,.4],[5,1],[12,3]]},"line-opacity":.6}},{id:"boundary-land-level-2",type:"line",source:"openmaptiles","source-layer":"boundary",filter:["all",["==","admin_level",2],["!=","maritime",1],["!=","disputed",1]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"hsl(248, 7%, 66%)","line-width":{base:1,stops:[[0,.6],[4,1.4],[5,2],[12,2]]}}},{id:"boundary-land-disputed",type:"line",source:"openmaptiles","source-layer":"boundary",filter:["all",["!=","maritime",1],["==","disputed",1]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"hsl(248, 7%, 70%)","line-dasharray":[1,3],"line-width":{base:1,stops:[[0,.6],[4,1.4],[5,2],[12,8]]}}},{id:"boundary-water",type:"line",source:"openmaptiles","source-layer":"boundary",filter:["all",["in","admin_level",2,4],["==","maritime",1]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"rgba(154, 189, 214, 1)","line-width":{base:1,stops:[[0,.6],[4,1],[5,1],[12,1]]},"line-opacity":{stops:[[6,0],[10,0]]}}},{id:"waterway-name",type:"symbol",source:"openmaptiles","source-layer":"waterway",minzoom:13,filter:["all",["==","$type","LineString"],["has","name"]],layout:{"text-font":["Noto Sans Italic"],"text-size":14,"text-field":"{name:latin} {name:nonlatin}","text-max-width":5,"text-rotation-alignment":"map","symbol-placement":"line","text-letter-spacing":.2,"symbol-spacing":350},paint:{"text-color":"#74aee9","text-halo-width":1.5,"text-halo-color":"rgba(255,255,255,0.7)"}},{id:"water-name-lakeline",type:"symbol",source:"openmaptiles","source-layer":"water_name",filter:["==","$type","LineString"],layout:{"text-font":["Noto Sans Italic"],"text-size":14,"text-field":`{name:latin} + }`}),i={};return{regl:t,draw:r,atlas:i}};Zo.prototype.update=function(t){var r=this;if(typeof t=="string")t={text:t};else if(!t)return;t=Npr(t,{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),t.opacity!=null&&(Array.isArray(t.opacity)?this.opacity=t.opacity.map(function(K){return parseFloat(K)}):this.opacity=parseFloat(t.opacity)),t.viewport!=null&&(this.viewport=jpr(t.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]),t.kerning!=null&&(this.kerning=t.kerning),t.offset!=null&&(typeof t.offset=="number"&&(t.offset=[t.offset,0]),this.positionOffset=Jpr(t.offset)),t.direction&&(this.direction=t.direction),t.range&&(this.range=t.range,this.scale=[1/(t.range[2]-t.range[0]),1/(t.range[3]-t.range[1])],this.translate=[-t.range[0],-t.range[1]]),t.scale&&(this.scale=t.scale),t.translate&&(this.translate=t.translate),this.scale||(this.scale=[1/this.viewport.width,1/this.viewport.height]),this.translate||(this.translate=[0,0]),!this.font.length&&!t.font&&(t.font=Zo.baseFontSize+"px sans-serif");var i=!1,n=!1;if(t.font&&(Array.isArray(t.font)?t.font:[t.font]).forEach(function(K,G){if(typeof K=="string")try{K=uT.parse(K)}catch(ue){K=uT.parse(Zo.baseFontSize+"px "+K)}else{var q=K.style,J=K.weight,N=K.stretch,V=K.variant;K=uT.parse(uT.stringify(K)),q&&(K.style=q),J&&(K.weight=J),N&&(K.stretch=N),V&&(K.variant=V)}var Y=uT.stringify({size:Zo.baseFontSize,family:K.family,stretch:Sz?K.stretch:void 0,variant:K.variant,weight:K.weight,style:K.style}),H=Wpr(K.size),j=Math.round(H[0]*Ypr(H[1]));if(j!==r.fontSize[G]&&(n=!0,r.fontSize[G]=j),(!r.font[G]||Y!=r.font[G].baseString)&&(i=!0,r.font[G]=Zo.fonts[Y],!r.font[G])){var Q=K.family.join(", "),te=[K.style];K.style!=K.variant&&te.push(K.variant),K.variant!=K.weight&&te.push(K.weight),Sz&&K.weight!=K.stretch&&te.push(K.stretch),r.font[G]={baseString:Y,family:Q,weight:K.weight,stretch:K.stretch,style:K.style,variant:K.variant,width:{},kerning:{},metrics:Kpr(Q,{origin:"top",fontSize:Zo.baseFontSize,fontStyle:te.join(" ")})},Zo.fonts[Y]=r.font[G]}}),(i||n)&&this.font.forEach(function(K,G){var q=uT.stringify({size:r.fontSize[G],family:K.family,stretch:Sz?K.stretch:void 0,variant:K.variant,weight:K.weight,style:K.style});if(r.fontAtlas[G]=r.shader.atlas[q],!r.fontAtlas[G]){var J=K.metrics;r.shader.atlas[q]=r.fontAtlas[G]={fontString:q,step:Math.ceil(r.fontSize[G]*J.bottom*.5)*2,em:r.fontSize[G],cols:0,rows:0,height:0,width:0,chars:[],ids:{},texture:r.regl.texture()}}t.text==null&&(t.text=r.text)}),typeof t.text=="string"&&t.position&&t.position.length>2){for(var a=Array(t.position.length*.5),o=0;o2){for(var u=!t.position[0].length,c=W2.mallocFloat(this.count*2),f=0,h=0;f1?r.align[G]:r.align[0]:r.align;if(typeof q=="number")return q;switch(q){case"right":case"end":return-K;case"center":case"centre":case"middle":return-K*.5}return 0})),this.baseline==null&&t.baseline==null&&(t.baseline=0),t.baseline!=null&&(this.baseline=t.baseline,Array.isArray(this.baseline)||(this.baseline=[this.baseline]),this.baselineOffset=this.baseline.map(function(K,G){var q=(r.font[G]||r.font[0]).metrics,J=0;return J+=q.bottom*.5,typeof K=="number"?J+=K-q.baseline:J+=-q[K],J*=-1,J})),t.color!=null)if(t.color||(t.color="transparent"),typeof t.color=="string"||!isNaN(t.color))this.color=Ote(t.color,"uint8");else{var F;if(typeof t.color[0]=="number"&&t.color.length>this.counts.length){var P=t.color.length;F=W2.mallocUint8(P);for(var R=(t.color.subarray||t.color.slice).bind(t.color),L=0;L4||this.baselineOffset.length>1||this.align&&this.align.length>1||this.fontAtlas.length>1||this.positionOffset.length>2;if(O){var $=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($);for(var X=0;X1?this.counts[X]:this.counts[0],offset:this.textOffsets.length>1?this.textOffsets[X]:this.textOffsets[0],color:this.color?this.color.length<=4?this.color:this.color.subarray(X*4,X*4+4):[0,0,0,255],opacity:Array.isArray(this.opacity)?this.opacity[X]:this.opacity,baseline:this.baselineOffset[X]!=null?this.baselineOffset[X]:this.baselineOffset[0],align:this.align?this.alignOffset[X]!=null?this.alignOffset[X]:this.alignOffset[0]:0,atlas:this.fontAtlas[X]||this.fontAtlas[0],positionOffset:this.positionOffset.length>2?this.positionOffset.subarray(X*2,X*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=[]}};Zo.prototype.destroy=function(){};Zo.prototype.kerning=!0;Zo.prototype.position={constant:new Float32Array(2)};Zo.prototype.translate=null;Zo.prototype.scale=null;Zo.prototype.font=null;Zo.prototype.text="";Zo.prototype.positionOffset=[0,0];Zo.prototype.opacity=1;Zo.prototype.color=new Uint8Array([0,0,0,255]);Zo.prototype.alignOffset=[0,0];Zo.maxAtlasSize=1024;Zo.atlasCanvas=document.createElement("canvas");Zo.atlasContext=Zo.atlasCanvas.getContext("2d",{alpha:!1});Zo.baseFontSize=64;Zo.fonts={};function evr(e){return typeof e=="function"&&e._gl&&e.prop&&e.texture&&e.buffer}aZe.exports=Zo});var Ez=W((yti,sZe)=>{"use strict";var tvr=XJ(),rvr=Pte();sZe.exports=function(t,r,i){var n=t._fullLayout,a=!0;return n._glcanvas.each(function(o){if(o.regl){o.regl.preloadCachedCode(i);return}if(!(o.pick&&!n._has("parcoords"))){try{o.regl=rvr({canvas:this,attributes:{antialias:!o.pick,preserveDrawingBuffer:!0},pixelRatio:t._context.plotGlPixelRatio||window.devicePixelRatio,extensions:r||[],cachedCode:i||{}})}catch(s){a=!1}o.regl||(a=!1),a&&this.addEventListener("webglcontextlost",function(s){t&&t.emit&&t.emit("plotly_webglcontextlost",{event:s,layer:o.key})},!1)}}),a||tvr({container:n._glcontainer.node()}),a}});var Ute=W((Nte,dZe)=>{"use strict";var lZe=Uee(),uZe=xte(),ivr=JYe(),cZe=oZe(),fZe=tt(),{rgbaString:nvr}=ti(),avr=_1().selectMode,ovr=Ez(),svr=Wo(),lvr=z$(),uvr=qee().styleTextSelection,hZe={};function cvr(e,t,r,i){var n=e._size,a=e.width*i,o=e.height*i,s=n.l*i,l=n.b*i,u=n.r*i,c=n.t*i,f=n.w*i,h=n.h*i;return[s+t.domain[0]*f,l+r.domain[0]*h,a-u-(1-t.domain[1])*f,o-c-(1-r.domain[1])*h]}var Nte=dZe.exports=function(t,r,i){if(i.length){var n=t._fullLayout,a=r._scene,o=r.xaxis,s=r.yaxis,l,u;if(a){var c=ovr(t,["ANGLE_instanced_arrays","OES_element_index_uint"],hZe);if(!c){a.init();return}var f=a.count,h=n._glcanvas.data()[0].regl;if(lvr(t,r,i),a.dirty){if((a.line2d||a.error2d)&&!(a.scatter2d||a.fill2d||a.glText)&&h.clear({color:!0,depth:!0}),a.error2d===!0&&(a.error2d=ivr(h)),a.line2d===!0&&(a.line2d=uZe(h)),a.scatter2d===!0&&(a.scatter2d=lZe(h)),a.fill2d===!0&&(a.fill2d=uZe(h)),a.glText===!0)for(a.glText=new Array(f),l=0;la.glText.length){var p=f-a.glText.length;for(l=0;lB&&(isNaN(I[O])||isNaN(I[O+1]));)O-=2;L.positions=I.slice(B,O+2)}return L}),a.line2d.update(a.lineOptions)),a.error2d){var m=(a.errorXOptions||[]).concat(a.errorYOptions||[]).map(function(L){return L||{positions:[],errors:[]}});a.error2d.update(m)}a.scatter2d&&a.scatter2d.update(a.markerOptions),a.fillOrder=fZe.repeat(null,f),a.fill2d&&(a.fillOptions=a.fillOptions.map(function(L,I){var B=i[I];if(!(!L||!B||!B[0]||!B[0].trace)){var O=B[0],$=O.trace,X=O.t,K=a.lineOptions[I],G,q,J=[];$._ownfill&&J.push(I),$._nexttrace&&J.push(I+1),J.length&&(a.fillOrder[I]=J);var N=[],V=K&&K.positions||X.positions,Y,H;if($.fill==="tozeroy"){for(Y=0;YY&&isNaN(V[H+1]);)H-=2;V[Y+1]!==0&&(N=[V[Y],0]),N=N.concat(V.slice(Y,H+2)),V[H+1]!==0&&(N=N.concat([V[H],0]))}else if($.fill==="tozerox"){for(Y=0;YY&&isNaN(V[H]);)H-=2;V[Y]!==0&&(N=[0,V[Y+1]]),N=N.concat(V.slice(Y,H+2)),V[H]!==0&&(N=N.concat([0,V[H+1]]))}else if($.fill==="toself"||$.fill==="tonext"){for(N=[],G=0,L.splitNull=!0,q=0;q-1;for(let[L]of i)if(L){var b=L.trace,S=L.t,x=S.index,A=b._length,T=S.x,y=S.y;if(b.selectedpoints||w||_){if(w||(w=!0),b.selectedpoints){var E=a.selectBatch[x]=b.selectedpoints,M={};for(u=0;u{"use strict";var pZe=kje();pZe.plot=Ute();vZe.exports=pZe});var yZe=W((bti,mZe)=>{"use strict";mZe.exports=gZe()});var Vte=W((_ti,wZe)=>{"use strict";var fvr=Ws(),_Ze=Fo(),xZe=Ts().axisHoverFormat,{hovertemplateAttrs:hvr,templatefallbackAttrs:dvr}=Wa(),lk=UE(),pvr=(Zl(),Pt(Xl)).idRegex,vvr=Ra().templatedArray,cT=an().extendFlat,Cm=fvr.marker,gvr=Cm.line,mvr=cT(_Ze("marker.line",{editTypeOverride:"calc"}),{width:cT({},gvr.width,{editType:"calc"}),editType:"calc"}),kz=cT(_Ze("marker"),{symbol:Cm.symbol,angle:Cm.angle,size:cT({},Cm.size,{editType:"markerSize"}),sizeref:Cm.sizeref,sizemin:Cm.sizemin,sizemode:Cm.sizemode,opacity:Cm.opacity,colorbar:Cm.colorbar,line:mvr,editType:"calc"});kz.color.editType=kz.cmin.editType=kz.cmax.editType="style";function bZe(e){return{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"subplotid",regex:pvr[e],editType:"plot"}}}wZe.exports={dimensions:vvr("dimension",{visible:{valType:"boolean",dflt:!0,editType:"calc"},label:{valType:"string",editType:"calc"},values:{valType:"data_array",editType:"calc+clearAxisTypes"},axis:{type:{valType:"enumerated",values:["linear","log","date","category"],editType:"calc+clearAxisTypes"},matches:{valType:"boolean",dflt:!0,editType:"calc"},editType:"calc+clearAxisTypes"},editType:"calc+clearAxisTypes"}),text:cT({},lk.text,{}),hovertext:cT({},lk.hovertext,{}),hovertemplate:hvr(),hovertemplatefallback:dvr(),xhoverformat:xZe("x"),yhoverformat:xZe("y"),marker:kz,xaxes:bZe("x"),yaxes:bZe("y"),diagonal:{visible:{valType:"boolean",dflt:!0,editType:"calc"},editType:"calc"},showupperhalf:{valType:"boolean",dflt:!0,editType:"calc"},showlowerhalf:{valType:"boolean",dflt:!0,editType:"calc"},selected:{marker:lk.selected.marker,editType:"calc"},unselected:{marker:lk.unselected.marker,editType:"calc"},opacity:lk.opacity}});var Cz=W((wti,TZe)=>{"use strict";TZe.exports=function(e,t,r,i){i||(i=1/0);var n,a;for(n=0;n{"use strict";var Gte=tt(),yvr=tf(),AZe=Vte(),xvr=Wo(),bvr=Dd(),_vr=Cz(),wvr=jR().isOpenSymbol;MZe.exports=function(t,r,i,n){function a(p,d){return Gte.coerce(t,r,AZe,p,d)}var o=yvr(t,r,{name:"dimensions",handleItemDefaults:Tvr}),s=a("diagonal.visible"),l=a("showupperhalf"),u=a("showlowerhalf"),c=_vr(r,o,"values");if(!c||!s&&!l&&!u){r.visible=!1;return}a("text"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback"),a("xhoverformat"),a("yhoverformat"),bvr(t,r,i,n,a,{noAngleRef:!0,noLineDash:!0,noStandOff:!0});var f=wvr(r.marker.symbol),h=xvr.isBubble(r);a("marker.line.width",f||h?1:0),Avr(t,r,n,a),Gte.coerceSelectionMarkerOpacity(r,a)};function Tvr(e,t){function r(n,a){return Gte.coerce(e,t,AZe.dimensions,n,a)}r("label");var i=r("values");i&&i.length?r("visible"):t.visible=!1,r("axis.type"),r("axis.matches")}function Avr(e,t,r,i){var n=t.dimensions,a=n.length,o=t.showupperhalf,s=t.showlowerhalf,l=t.diagonal.visible,u,c,f=new Array(a),h=new Array(a);for(u=0;uc&&o||u{"use strict";var EZe=tt();kZe.exports=function(t,r){var i=t._fullLayout,n=r.uid,a=i._splomScenes;a||(a=i._splomScenes={});var o={dirty:!0,selectBatch:[],unselectBatch:[]},s={matrix:!1,selectBatch:[],unselectBatch:[]},l=a[r.uid];return l||(l=a[n]=EZe.extendFlat({},o,s),l.draw=function(){l.matrix&&l.matrix.draw&&(l.selectBatch.length||l.unselectBatch.length?l.matrix.draw(l.unselectBatch,l.selectBatch):l.matrix.draw()),l.dirty=!1},l.destroy=function(){l.matrix&&l.matrix.destroy&&l.matrix.destroy(),l.matrixOptions=null,l.selectBatch=null,l.unselectBatch=null,l=null}),l.dirty||EZe.extendFlat(l,o),l}});var LZe=W((Mti,FZe)=>{"use strict";var Hte=tt(),Dz=Ls(),Mvr=Ld().calcMarkerSize,Svr=Ld().calcAxisExpansion,Evr=Fd(),DZe=j_().markerSelection,kvr=j_().markerStyle,Cvr=CZe(),Dvr=(ra(),Pt(ia)).BADNUM,Fvr=(N_(),Pt(O_)).TOO_MANY_POINTS;FZe.exports=function(t,r){var i=r.dimensions,n=r._length,a={},o=a.cdata=[],s=a.data=[],l=r._visibleDims=[],u,c,f,h,p;function d(_,b){for(var S=_.makeCalcdata({v:b.values,vcalendar:r.calendar},"v"),x=0;xFvr,g;for(m?g=a.sizeAvg||Math.max(a.size,3):g=Mvr(r,n),c=0;c{(function(){var e,t,r,i,n,a;typeof performance!="undefined"&&performance!==null&&performance.now?uk.exports=function(){return performance.now()}:typeof process!="undefined"&&process!==null&&process.hrtime?(uk.exports=function(){return(e()-n)/1e6},t=process.hrtime,e=function(){var o;return o=t(),o[0]*1e9+o[1]},i=e(),a=process.uptime()*1e9,n=i-a):Date.now?(uk.exports=function(){return Date.now()-r},r=Date.now()):(uk.exports=function(){return new Date().getTime()-r},r=new Date().getTime())}).call(PZe)});var zZe=W((Sti,Pz)=>{var Lvr=IZe(),Dm=window,Fz=["moz","webkit"],hT="AnimationFrame",dT=Dm["request"+hT],ck=Dm["cancel"+hT]||Dm["cancelRequest"+hT];for(fT=0;!dT&&fT{BZe.exports=function(t,r){var i=typeof t=="number",n=typeof r=="number";i&&!n?(r=t,t=0):!i&&!n&&(t=0,r=0),t=t|0,r=r|0;var a=r-t;if(a<0)throw new Error("array length must be positive");for(var o=new Array(a),s=0,l=t;s{"use strict";var Pvr=Uee(),Ivr=K1(),Rvr=U_(),OZe=zZe(),zvr=qZe(),$te=K4(),Bvr=V_();UZe.exports=X2;function X2(e,t){if(!(this instanceof X2))return new X2(e,t);this.traces=[],this.passes={},this.regl=e,this.scatter=Pvr(e),this.canvas=this.scatter.canvas}X2.prototype.render=function(...e){return e.length&&this.update(...e),this.regl.attributes.preserveDrawingBuffer?this.draw():(this.dirty?this.planned==null&&(this.planned=OZe(()=>{this.draw(),this.dirty=!0,this.planned=null})):(this.draw(),this.dirty=!0,OZe(()=>{this.dirty=!1})),this)};X2.prototype.update=function(...e){if(!e.length)return;for(let i=0;im||!n.lower&&v{t[a+s]=i})}this.scatter.draw(...t)}return this};X2.prototype.destroy=function(){return this.traces.forEach(e=>{e.buffer&&e.buffer.destroy&&e.buffer.destroy()}),this.traces=null,this.passes=null,this.scatter.destroy(),this};function qvr(e,t,r){let i=e.id!=null?e.id:e,n=t,a=r;return i<<16|(n&255)<<8|a&255}function Iz(e,t,r){let i,n,a,o,s,l,u,c,f=e[t],h=e[r];return f.length>2?(i=f[0],a=f[2],n=f[1],o=f[3]):f.length?(i=n=f[0],a=o=f[1]):(i=f.x,n=f.y,a=f.x+f.width,o=f.y+f.height),h.length>2?(s=h[0],u=h[2],l=h[1],c=h[3]):h.length?(s=l=h[0],u=c=h[1]):(s=h.x,l=h.y,u=h.x+h.width,c=h.y+h.height),[s,n,u,o]}function NZe(e){if(typeof e=="number")return[e,e,e,e];if(e.length===2)return[e[0],e[1],e[0],e[1]];{let t=$te(e);return[t.x,t.y,t.x+t.width,t.y+t.height]}}});var HZe=W((Cti,GZe)=>{"use strict";var Ovr=VZe(),Wte=tt(),Rz=Ls(),Nvr=_1().selectMode;GZe.exports=function(t,r,i){if(i.length)for(var n=0;n-1,M=Nvr(c)||!!n.selectedpoints||E,C=!0;if(M){var k=n._length;if(n.selectedpoints){o.selectBatch=n.selectedpoints;var D=n.selectedpoints,F={};for(p=0;p{"use strict";jZe.getDimIndex=function(t,r){for(var i=r._id,n=i.charAt(0),a={x:0,y:1}[n],o=t._visibleDims,s=0;s{"use strict";var $Ze=Yte(),Vvr=HR().calcHover,WZe=Yi().getFromId,Gvr=an().extendFlat;function Hvr(e,t,r,i,n){n||(n={});var a=(i||"").charAt(0)==="x",o=(i||"").charAt(0)==="y",s=YZe(e,t,r);if((a||o)&&n.hoversubplots==="axis"&&s[0])for(var l=(a?e.xa:e.ya)._subplotsWith,u=n.gd,c=Gvr({},e),f=0;f{"use strict";var eKe=tt(),KZe=eKe.pushUnique,JZe=Wo(),QZe=Yte();tKe.exports=function(t,r){var i=t.cd,n=i[0].trace,a=i[0].t,o=t.scene,s=o.matrixOptions.cdata,l=t.xaxis,u=t.yaxis,c=[];if(!o)return c;var f=!JZe.hasMarkers(n)&&!JZe.hasText(n);if(n.visible!==!0||f)return c;var h=QZe.getDimIndex(n,l),p=QZe.getDimIndex(n,u);if(h===!1||p===!1)return c;var d=a.xpx[h],v=a.ypx[p],m=s[h],g=s[p],w=(t.scene.selectBatch||[]).slice(),_=[];if(r!==!1&&!r.degenerate)for(var b=0;b{"use strict";var iKe=tt(),jvr=Fd(),$vr=j_().markerStyle;nKe.exports=function(t,r){var i=r.trace,n=t._fullLayout._splomScenes[i.uid];if(n){jvr(t,i),iKe.extendFlat(n.matrixOptions,$vr(t,i));var a=iKe.extendFlat({},n.matrixOptions,n.viewOpts);n.matrix.update(a,null)}}});var sKe=W((Iti,oKe)=>{"use strict";var Wvr=xi(),Yvr=DW();oKe.exports={moduleType:"trace",name:"splom",categories:["gl","regl","cartesian","symbols","showLegend","scatter-like"],attributes:Vte(),supplyDefaults:SZe(),colorbar:Cc(),calc:LZe(),plot:HZe(),hoverPoints:ZZe().hoverPoints,selectPoints:rKe(),editStyle:aKe(),meta:{}};Wvr.register(Yvr)});var dKe=W((Rti,hKe)=>{"use strict";var Xvr=xte(),Zvr=xi(),{rgbaString:Kvr}=ti(),Jvr=Ez(),Qvr=Mc().getModuleCalcData,Z2=xl(),lKe=Ls().getFromId,uKe=Yi().shouldShowZeroLine,cKe="splom",fKe={};function e1r(e){var t=e._fullLayout,r=Zvr.getModule(cKe),i=Qvr(e.calcdata,r)[0],n=Jvr(e,["ANGLE_instanced_arrays","OES_element_index_uint"],fKe);n&&(t._hasOnlyLargeSploms&&Xte(e),r.plot(e,{},i))}function t1r(e){var t=e.calcdata,r=e._fullLayout;r._hasOnlyLargeSploms&&Xte(e);for(var i=0;i{"use strict";var pKe=sKe();pKe.basePlotModule=dKe(),vKe.exports=pKe});var yKe=W((Bti,mKe)=>{"use strict";mKe.exports=gKe()});var Jte=W((qti,xKe)=>{"use strict";var a1r=Fo(),Zte=ac(),Kte=jo(),o1r=ds().attributes,zz=an().extendFlat,s1r=Ra().templatedArray;xKe.exports={domain:o1r({name:"parcoords",trace:!0,editType:"plot"}),labelangle:{valType:"angle",dflt:0,editType:"plot"},labelside:{valType:"enumerated",values:["top","bottom"],dflt:"top",editType:"plot"},labelfont:Kte({editType:"plot"}),tickfont:Kte({autoShadowDflt:!0,editType:"plot"}),rangefont:Kte({editType:"plot"}),dimensions:s1r("dimension",{label:{valType:"string",editType:"plot"},tickvals:zz({},Zte.tickvals,{editType:"plot"}),ticktext:zz({},Zte.ticktext,{editType:"plot"}),tickformat:zz({},Zte.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:zz({editType:"calc"},a1r("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"}}});var fk={};Jn(fk,{axisExtentOffset:()=>g1r,axisTitleOffset:()=>v1r,bar:()=>m1r,blockLineCount:()=>d1r,canvasPixelRatio:()=>h1r,cn:()=>y1r,id:()=>x1r,layers:()=>p1r,maxDimensionCount:()=>l1r,overdrag:()=>u1r,tickDistance:()=>f1r,verticalPadding:()=>c1r});var l1r,u1r,c1r,f1r,h1r,d1r,p1r,v1r,g1r,m1r,y1r,x1r,hk=Ci(()=>{"use strict";l1r=60,u1r=45,c1r=2,f1r=50,h1r=1,d1r=5e3,p1r=["contextLineLayer","focusLineLayer","pickLineLayer"],v1r=28,g1r=10,m1r={width:4,captureWidth:10,fillColor:"magenta",fillOpacity:1,snapDuration:150,snapRatio:.25,snapClose:.01,strokeOpacity:1,strokeWidth:1,handleHeight:8,handleOpacity:1,handleOverlap:0},y1r={axisExtentText:"axis-extent-text",parcoordsLineLayers:"parcoords-line-layers",parcoordsLineLayer:"parcoords-lines",parcoords:"parcoords",parcoordsControlView:"parcoords-control-view",yAxis:"y-axis",axisOverlays:"axis-overlays",axis:"axis",axisHeading:"axis-heading",axisTitle:"axis-title",axisExtent:"axis-extent",axisExtentTop:"axis-extent-top",axisExtentTopText:"axis-extent-top-text",axisExtentBottom:"axis-extent-bottom",axisExtentBottomText:"axis-extent-bottom-text",axisBrush:"axis-brush"},x1r={filterBarPattern:"filter-bar-pattern"}});var eg=W((Oti,_Ke)=>{"use strict";var b1r=gA();function bKe(e){return[e]}_Ke.exports={keyFun:function(e){return e.key},repeat:bKe,descend:b1r,wrap:bKe,unwrap:function(e){return e[0]}}});var tre=W((Nti,LKe)=>{"use strict";var Gl=(hk(),Pt(fk)),Sv=gi(),_1r=eg().keyFun,Bz=eg().repeat,pT=tt().sorterAsc,w1r=tt().strTranslate,wKe=Gl.bar.snapRatio;function TKe(e,t){return e*(1-wKe)+t*wKe}var AKe=Gl.bar.snapClose;function T1r(e,t){return e*(1-AKe)+t*AKe}function Oz(e,t,r,i){if(A1r(r,i))return r;var n=e?-1:1,a=0,o=t.length-1;if(n<0){var s=a;a=o,o=s}for(var l=t[a],u=l,c=a;n*c=t[r][0]&&e<=t[r][1])return!0;return!1}function M1r(e){e.attr("x",-Gl.bar.captureWidth/2).attr("width",Gl.bar.captureWidth)}function S1r(e){e.attr("visibility","visible").style("visibility","visible").attr("fill","yellow").attr("opacity",0)}function E1r(e){if(!e.brush.filterSpecified)return"0,"+e.height;for(var t=MKe(e.brush.filter.getConsolidated(),e.height),r=[0],i,n,a,o=t.length?t[0][0]:null,s=0;se[1]+r||t=.9*e[1]+.1*e[0]?"n":t<=.9*e[0]+.1*e[1]?"s":"ns"}function SKe(){Sv.select(document.body).style("cursor",null)}function ere(e){e.attr("stroke-dasharray",E1r)}function qz(e,t){var r=Sv.select(e).selectAll(".highlight, .highlight-shadow"),i=t?r.transition().duration(Gl.bar.snapDuration).each("end",t):r;ere(i)}function EKe(e,t){var r=e.brush,i=r.filterSpecified,n=NaN,a={},o;if(i){var s=e.height,l=r.filter.getConsolidated(),u=MKe(l,s),c=NaN,f=NaN,h=NaN;for(o=0;o<=u.length;o++){var p=u[o];if(p&&p[0]<=t&&t<=p[1]){c=o;break}else if(f=o?o-1:NaN,p&&p[0]>t){h=o;break}}if(n=c,isNaN(n)&&(isNaN(f)||isNaN(h)?n=isNaN(f)?h:f:n=t-u[f][1]=w[0]&&g<=w[1]){a.clickableOrdinalRange=w;break}}}return a}function C1r(e,t){Sv.event.sourceEvent.stopPropagation();var r=t.height-Sv.mouse(e)[1]-2*Gl.verticalPadding,i=t.unitToPaddedPx.invert(r),n=t.brush,a=EKe(t,r),o=a.interval,s=n.svgBrush;if(s.wasDragged=!1,s.grabbingBar=a.region==="ns",s.grabbingBar){var l=o.map(t.unitToPaddedPx);s.grabPoint=r-l[0]-Gl.verticalPadding,s.barLength=l[1]-l[0]}s.clickableOrdinalRange=a.clickableOrdinalRange,s.stayingIntervals=t.multiselect&&n.filterSpecified?n.filter.getConsolidated():[],o&&(s.stayingIntervals=s.stayingIntervals.filter(function(u){return u[0]!==o[0]&&u[1]!==o[1]})),s.startExtent=a.region?o[a.region==="s"?1:0]:i,t.parent.inBrushDrag=!0,s.brushStartCallback()}function kKe(e,t){Sv.event.sourceEvent.stopPropagation();var r=t.height-Sv.mouse(e)[1]-2*Gl.verticalPadding,i=t.brush.svgBrush;i.wasDragged=!0,i._dragging=!0,i.grabbingBar?i.newExtent=[r-i.grabPoint,r+i.barLength-i.grabPoint].map(t.unitToPaddedPx.invert):i.newExtent=[i.startExtent,t.unitToPaddedPx.invert(r)].sort(pT),t.brush.filterSpecified=!0,i.extent=i.stayingIntervals.concat([i.newExtent]),i.brushCallback(t),qz(e.parentNode)}function D1r(e,t){var r=t.brush,i=r.filter,n=r.svgBrush;n._dragging||(CKe(e,t),kKe(e,t),t.brush.svgBrush.wasDragged=!1),n._dragging=!1;var a=Sv.event;a.sourceEvent.stopPropagation();var o=n.grabbingBar;if(n.grabbingBar=!1,n.grabLocation=void 0,t.parent.inBrushDrag=!1,SKe(),!n.wasDragged){n.wasDragged=void 0,n.clickableOrdinalRange?r.filterSpecified&&t.multiselect?n.extent.push(n.clickableOrdinalRange):(n.extent=[n.clickableOrdinalRange],r.filterSpecified=!0):o?(n.extent=n.stayingIntervals,n.extent.length===0&&Qte(r)):Qte(r),n.brushCallback(t),qz(e.parentNode),n.brushEndCallback(r.filterSpecified?i.getConsolidated():[]);return}var s=function(){i.set(i.getConsolidated())};if(t.ordinal){var l=t.unitTickvals;l[l.length-1]n.newExtent[0];n.extent=n.stayingIntervals.concat(u?[n.newExtent]:[]),n.extent.length||Qte(r),n.brushCallback(t),u?qz(e.parentNode,s):(s(),qz(e.parentNode))}else s();n.brushEndCallback(r.filterSpecified?i.getConsolidated():[])}function CKe(e,t){var r=t.height-Sv.mouse(e)[1]-2*Gl.verticalPadding,i=EKe(t,r),n="crosshair";i.clickableOrdinalRange?n="pointer":i.region&&(n=i.region+"-resize"),Sv.select(document.body).style("cursor",n)}function F1r(e){e.on("mousemove",function(t){Sv.event.preventDefault(),t.parent.inBrushDrag||CKe(this,t)}).on("mouseleave",function(t){t.parent.inBrushDrag||SKe()}).call(Sv.behavior.drag().on("dragstart",function(t){C1r(this,t)}).on("drag",function(t){kKe(this,t)}).on("dragend",function(t){D1r(this,t)}))}function DKe(e,t){return e[0]-t[0]}function L1r(e,t,r){var i=r._context.staticPlot,n=e.selectAll(".background").data(Bz);n.enter().append("rect").classed("background",!0).call(M1r).call(S1r).style("pointer-events",i?"none":"auto").attr("transform",w1r(0,Gl.verticalPadding)),n.call(F1r).attr("height",function(s){return s.height-Gl.verticalPadding});var a=e.selectAll(".highlight-shadow").data(Bz);a.enter().append("line").classed("highlight-shadow",!0).attr("x",-Gl.bar.width/2).attr("stroke-width",Gl.bar.width+Gl.bar.strokeWidth).attr("stroke",t).attr("opacity",Gl.bar.strokeOpacity).attr("stroke-linecap","butt"),a.attr("y1",function(s){return s.height}).call(ere);var o=e.selectAll(".highlight").data(Bz);o.enter().append("line").classed("highlight",!0).attr("x",-Gl.bar.width/2).attr("stroke-width",Gl.bar.width-Gl.bar.strokeWidth).attr("stroke",Gl.bar.fillColor).attr("opacity",Gl.bar.fillOpacity).attr("stroke-linecap","butt"),o.attr("y1",function(s){return s.height}).call(ere)}function P1r(e,t,r){var i=e.selectAll("."+Gl.cn.axisBrush).data(Bz,_1r);i.enter().append("g").classed(Gl.cn.axisBrush,!0),L1r(i,t,r)}function I1r(e){return e.svgBrush.extent.map(function(t){return t.slice()})}function Qte(e){e.filterSpecified=!1,e.svgBrush.extent=[[-1/0,1/0]]}function R1r(e){return function(r){var i=r.brush,n=I1r(i),a=n.slice();i.filter.set(a),e()}}function FKe(e){for(var t=e.slice(),r=[],i,n=t.shift();n;){for(i=n.slice();(n=t.shift())&&n[0]<=i[1];)i[1]=Math.max(i[1],n[1]);r.push(i)}return r.length===1&&r[0][0]>r[0][1]&&(r=[]),r}function z1r(){var e=[],t,r;return{set:function(i){e=i.map(function(n){return n.slice().sort(pT)}).sort(DKe),e.length===1&&e[0][0]===-1/0&&e[0][1]===1/0&&(e=[[0,-1]]),t=FKe(e),r=e.reduce(function(n,a){return[Math.min(n[0],a[0]),Math.max(n[1],a[1])]},[1/0,-1/0])},get:function(){return e.slice()},getConsolidated:function(){return t},getBounds:function(){return r}}}function B1r(e,t,r,i,n,a){var o=z1r();return o.set(r),{filter:o,filterSpecified:t,svgBrush:{extent:[],brushStartCallback:i,brushCallback:R1r(n),brushEndCallback:a}}}function q1r(e,t){if(Array.isArray(e[0])?(e=e.map(function(i){return i.sort(pT)}),t.multiselect?e=FKe(e.sort(DKe)):e=[e[0]]):e=[e.sort(pT)],t.tickvals){var r=t.tickvals.slice().sort(pT);if(e=e.map(function(i){var n=[Oz(0,r,i[0],[]),Oz(1,r,i[1],[])];if(n[1]>n[0])return n}).filter(function(i){return i}),!e.length)return}return e.length>1?e:e[0]}LKe.exports={makeBrush:B1r,ensureAxisBrush:P1r,cleanRanges:q1r}});var RKe=W((Uti,IKe)=>{"use strict";var K2=tt(),O1r=Sc().hasColorscale,N1r=Bu(),U1r=ds().defaults,V1r=tf(),G1r=Yi(),PKe=Jte(),H1r=tre(),rre=(hk(),Pt(fk)).maxDimensionCount,j1r=Cz();function $1r(e,t,r,i,n){var a=n("line.color",r);if(O1r(e,"line")&&K2.isArrayOrTypedArray(a)){if(a.length)return n("line.colorscale"),N1r(e,t,i,n,{prefix:"line.",cLetter:"c"}),a.length;t.line.color=r}return 1/0}function W1r(e,t,r,i){function n(u,c){return K2.coerce(e,t,PKe.dimensions,u,c)}var a=n("values"),o=n("visible");if(a&&a.length||(o=t.visible=!1),o){n("label"),n("tickvals"),n("ticktext"),n("tickformat");var s=n("range");t._ax={_id:"y",type:"linear",showexponent:"all",exponentformat:"B",range:s},G1r.setConvert(t._ax,i.layout),n("multiselect");var l=n("constraintrange");l&&(t.constraintrange=H1r.cleanRanges(l,t))}}IKe.exports=function(t,r,i,n){function a(c,f){return K2.coerce(t,r,PKe,c,f)}var o=t.dimensions;Array.isArray(o)&&o.length>rre&&(K2.log("parcoords traces support up to "+rre+" dimensions at the moment"),o.splice(rre));var s=V1r(t,r,{name:"dimensions",layout:n,handleItemDefaults:W1r}),l=$1r(t,r,i,n,a);U1r(r,n,a),(!Array.isArray(s)||!s.length)&&(r.visible=!1),j1r(r,s,"values",l);var u=K2.extendFlat({},n.font,{size:Math.round(n.font.size/1.2)});K2.coerceFont(a,"labelfont",u),K2.coerceFont(a,"tickfont",u,{autoShadowDflt:!0}),K2.coerceFont(a,"rangefont",u),a("labelangle"),a("labelside"),a("unselected.line.color"),a("unselected.line.opacity")}});var BKe=W((Vti,zKe)=>{"use strict";var Y1r=tt().isArrayOrTypedArray,ire=es(),X1r=eg().wrap;zKe.exports=function(t,r){var i,n;return ire.hasColorscale(r,"line")&&Y1r(r.line.color)?(i=r.line.color,n=ire.extractOpts(r.line).colorscale,ire.calc(t,r,{vals:i,containerStr:"line",cLetter:"c"})):(i=Z1r(r._length),n=[[0,r.line.color],[1,r.line.color]]),X1r({lineColor:i,cscale:n})};function Z1r(e){for(var t=new Array(e),r=0;r{"use strict";var K1r=tt().isTypedArray;Nz.convertTypedArray=function(e){return K1r(e)?Array.prototype.slice.call(e):e};Nz.isOrdinal=function(e){return!!e.tickvals};Nz.isVisible=function(e){return e.visible||!("visible"in e)}});var WKe=W((Hti,$Ke)=>{"use strict";var J1r=["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(` +`),Q1r=["precision highp float;","","varying vec4 fragColor;","","void main() {"," gl_FragColor = fragColor;","}"].join(` +`),dk=(hk(),Pt(fk)).maxDimensionCount,GKe=tt(),qKe=1e-6,Uz=2048,egr=new Uint8Array(4),OKe=new Uint8Array(4),NKe={shape:[256,1],format:"rgba",type:"uint8",mag:"nearest",min:"nearest"};function tgr(e){e.read({x:0,y:0,width:1,height:1,data:egr})}function HKe(e,t,r,i,n){var a=e._gl;a.enable(a.SCISSOR_TEST),a.scissor(t,r,i,n),e.clear({color:[0,0,0,0],depth:1})}function rgr(e,t,r,i,n,a){var o=a.key;function s(l){var u=Math.min(i,n-l*i);l===0&&(window.cancelAnimationFrame(r.currentRafs[o]),delete r.currentRafs[o],HKe(e,a.scissorX,a.scissorY,a.scissorWidth,a.viewBoxSize[1])),!r.clearOnly&&(a.count=2*u,a.offset=2*l*i,t(a),l*i+u>>8*t)%256/255}function agr(e,t,r){for(var i=new Array(e*(dk+4)),n=0,a=0;aP&&(P=T[C].dim1.canvasX,D=C);M===0&&HKe(n,0,0,u.canvasWidth,u.canvasHeight);var R=_(r);for(C=0;C{"use strict";var fc=gi(),Fm=tt(),ore=Fm.isArrayOrTypedArray,QKe=Fm.numberFormat,eJe=ti(),tJe=Yi(),cgr=Fm.strRotate,tg=Fm.strTranslate,fgr=ao(),Vz=Qi(),YKe=es(),ure=eg(),Qd=ure.keyFun,rg=ure.repeat,rJe=ure.unwrap,vT=nre(),Oa=(hk(),Pt(fk)),iJe=tre(),hgr=WKe();function XKe(e,t,r){return Fm.aggNums(e,null,t,r)}function nJe(e,t){return cre(XKe(Math.min,e,t),XKe(Math.max,e,t))}function Gz(e){var t=e.range;return t?cre(t[0],t[1]):nJe(e.values,e._length)}function cre(e,t){return(isNaN(e)||!isFinite(e))&&(e=0),(isNaN(t)||!isFinite(t))&&(t=0),e===t&&(e===0?(e-=1,t+=1):(e*=.9,t*=1.1)),[e,t]}function dgr(e,t){return t?function(r,i){var n=t[i];return n==null?e(r):n}:e}function pgr(e,t,r,i,n){var a=Gz(r);return i?fc.scale.ordinal().domain(i.map(dgr(QKe(r.tickformat),n))).range(i.map(function(o){var s=(o-a[0])/(a[1]-a[0]);return e-t+s*(2*t-e)})):fc.scale.linear().domain(a).range([e-t,t])}function vgr(e,t){return fc.scale.linear().range([t,e-t])}function ggr(e,t){return fc.scale.linear().domain(Gz(e)).range([t,1-t])}function mgr(e){if(e.tickvals){var t=Gz(e);return fc.scale.ordinal().domain(e.tickvals).range(e.tickvals.map(function(r){return(r-t[0])/(t[1]-t[0])}))}}function ygr(e){var t=e.map(function(a){return a[0]}),r=e.map(function(a){let[o,s,l]=eJe.rgbaArray(a[1]);return fc.rgb(o,s,l)}),i=function(a){return function(o){return o[a]}},n="rgb".split("").map(function(a){return fc.scale.linear().clamp(!0).domain(t).range(r.map(i(a)))});return function(a){return n.map(function(o){return o(a)})}}function lre(e){return e.dimensions.some(function(t){return t.brush.filterSpecified})}function xgr(e,t,r){var i=rJe(t),n=i.trace,a=vT.convertTypedArray(i.lineColor),o=n.line,s={color:eJe.normalize(n.unselected.line.color),opacity:n.unselected.line.opacity},l=YKe.extractOpts(o),u=l.reversescale?YKe.flipScale(i.cscale):i.cscale,c=n.domain,f=n.dimensions,h=e.width,p=n.labelangle,d=n.labelside,v=n.labelfont,m=n.tickfont,g=n.rangefont,w=Fm.extendDeepNoArrays({},o,{color:a.map(fc.scale.linear().domain(Gz({values:a,range:[l.min,l.max],_length:n._length}))),blockLineCount:Oa.blockLineCount,canvasOverdrag:Oa.overdrag*Oa.canvasPixelRatio}),_=Math.floor(h*(c.x[1]-c.x[0])),b=Math.floor(e.height*(c.y[1]-c.y[0])),S=e.margin||{l:80,r:80,t:100,b:80},x=_,A=b;return{key:r,colCount:f.filter(vT.isVisible).length,dimensions:f,tickDistance:Oa.tickDistance,unitToColor:ygr(u),lines:w,deselectedLines:s,labelAngle:p,labelSide:d,labelFont:v,tickFont:m,rangeFont:g,layoutWidth:h,layoutHeight:e.height,domain:c,translateX:c.x[0]*h,translateY:e.height-c.y[1]*e.height,pad:S,canvasWidth:x*Oa.canvasPixelRatio+2*w.canvasOverdrag,canvasHeight:A*Oa.canvasPixelRatio,width:x,height:A,canvasPixelRatio:Oa.canvasPixelRatio}}function bgr(e,t,r){var i=r.width,n=r.height,a=r.dimensions,o=r.canvasPixelRatio,s=function(h){return i*h/Math.max(1,r.colCount-1)},l=Oa.verticalPadding/n,u=vgr(n,Oa.verticalPadding),c={key:r.key,xScale:s,model:r,inBrushDrag:!1},f={};return c.dimensions=a.filter(vT.isVisible).map(function(h,p){var d=ggr(h,l),v=f[h.label];f[h.label]=(v||0)+1;var m=h.label+(v?"__"+v:""),g=h.constraintrange,w=g&&g.length;w&&!ore(g[0])&&(g=[g]);var _=w?g.map(function(k){return k.map(d)}):[[-1/0,1/0]],b=function(){var k=c;k.focusLayer&&k.focusLayer.render(k.panels,!0);var D=lre(k);!e.contextShown()&&D?(k.contextLayer&&k.contextLayer.render(k.panels,!0),e.contextShown(!0)):e.contextShown()&&!D&&(k.contextLayer&&k.contextLayer.render(k.panels,!0,!0),e.contextShown(!1))},S=h.values;S.length>h._length&&(S=S.slice(0,h._length));var x=h.tickvals,A;function T(k,D){return{val:k,text:A[D]}}function y(k,D){return k.val-D.val}if(ore(x)&&x.length){Fm.isTypedArray(x)&&(x=Array.from(x)),A=h.ticktext,!ore(A)||!A.length?A=x.map(QKe(h.tickformat)):A.length>x.length?A=A.slice(0,x.length):x.length>A.length&&(x=x.slice(0,A.length));for(var E=1;E=D||L>=F)return;var I=C.lineLayer.readPixel(R,F-1-L),B=I[3]!==0,O=B?I[2]+256*(I[1]+256*I[0]):null,$={x:R,y:L,clientX:k.clientX,clientY:k.clientY,dataIndex:C.model.key,curveNumber:O};O!==d&&(B?n.hover($):n.unhover&&n.unhover($),d=O)}}),p.style("opacity",function(C){return C.pick?0:1}),s.style("background","rgba(255, 255, 255, 0)");var m=s.selectAll("."+Oa.cn.parcoords).data(h,Qd);m.exit().remove(),m.enter().append("g").classed(Oa.cn.parcoords,!0).style("shape-rendering","crispEdges").style("pointer-events","none"),m.attr("transform",function(C){return tg(C.model.translateX,C.model.translateY)});var g=m.selectAll("."+Oa.cn.parcoordsControlView).data(rg,Qd);g.enter().append("g").classed(Oa.cn.parcoordsControlView,!0),g.attr("transform",function(C){return tg(C.model.pad.l,C.model.pad.t)});var w=g.selectAll("."+Oa.cn.yAxis).data(function(C){return C.dimensions},Qd);w.enter().append("g").classed(Oa.cn.yAxis,!0),g.each(function(C){sre(w,C,u)}),p.each(function(C){if(C.viewModel){!C.lineLayer||n?C.lineLayer=hgr(this,C):C.lineLayer.update(C),(C.key||C.key===0)&&(C.viewModel[C.key]=C.lineLayer);var k=!C.context||n;C.lineLayer.render(C.viewModel.panels,k)}}),w.attr("transform",function(C){return tg(C.xScale(C.xIndex),0)}),w.call(fc.behavior.drag().origin(function(C){return C}).on("drag",function(C){var k=C.parent;f.linePickActive(!1),C.x=Math.max(-Oa.overdrag,Math.min(C.model.width+Oa.overdrag,fc.event.x)),C.canvasX=C.x*C.model.canvasPixelRatio,w.sort(function(D,F){return D.x-F.x}).each(function(D,F){D.xIndex=F,D.x=C===D?D.x:D.xScale(D.xIndex),D.canvasX=D.x*D.model.canvasPixelRatio}),sre(w,k,u),w.filter(function(D){return Math.abs(C.xIndex-D.xIndex)!==0}).attr("transform",function(D){return tg(D.xScale(D.xIndex),0)}),fc.select(this).attr("transform",tg(C.x,0)),w.each(function(D,F,P){P===C.parent.key&&(k.dimensions[F]=D)}),k.contextLayer&&k.contextLayer.render(k.panels,!1,!lre(k)),k.focusLayer.render&&k.focusLayer.render(k.panels)}).on("dragend",function(C){var k=C.parent;C.x=C.xScale(C.xIndex),C.canvasX=C.x*C.model.canvasPixelRatio,sre(w,k,u),fc.select(this).attr("transform",function(D){return tg(D.x,0)}),k.contextLayer&&k.contextLayer.render(k.panels,!1,!lre(k)),k.focusLayer&&k.focusLayer.render(k.panels),k.pickLayer&&k.pickLayer.render(k.panels,!0),f.linePickActive(!0),n&&n.axesMoved&&n.axesMoved(k.key,k.dimensions.map(function(D){return D.crossfilterDimensionIndex}))})),w.exit().remove();var _=w.selectAll("."+Oa.cn.axisOverlays).data(rg,Qd);_.enter().append("g").classed(Oa.cn.axisOverlays,!0),_.selectAll("."+Oa.cn.axis).remove();var b=_.selectAll("."+Oa.cn.axis).data(rg,Qd);b.enter().append("g").classed(Oa.cn.axis,!0),b.each(function(C){var k=C.model.height/C.model.tickDistance,D=C.domainScale,F=D.domain();fc.select(this).call(fc.svg.axis().orient("left").tickSize(4).outerTickSize(2).ticks(k,C.tickFormat).tickValues(C.ordinal?F:null).tickFormat(function(P){return vT.isOrdinal(C)?P:aJe(C.model.dimensions[C.visibleIndex],P)}).scale(D)),Vz.font(b.selectAll("text"),C.model.tickFont)}),b.selectAll(".domain, .tick>line").attr("fill","none").attr("stroke","black").attr("stroke-opacity",.25).attr("stroke-width","1px"),b.selectAll("text").style("cursor","default");var S=_.selectAll("."+Oa.cn.axisHeading).data(rg,Qd);S.enter().append("g").classed(Oa.cn.axisHeading,!0);var x=S.selectAll("."+Oa.cn.axisTitle).data(rg,Qd);x.enter().append("text").classed(Oa.cn.axisTitle,!0).attr("text-anchor","middle").style("cursor","ew-resize").style("pointer-events",a?"none":"auto"),x.text(function(C){return C.label}).each(function(C){var k=fc.select(this);Vz.font(k,C.model.labelFont),fgr.convertToTspans(k,t)}).attr("transform",function(C){var k=KKe(C.model.labelAngle,C.model.labelSide),D=Oa.axisTitleOffset;return(k.dir>0?"":tg(0,2*D+C.model.height))+cgr(k.degrees)+tg(-D*k.dx,-D*k.dy)}).attr("text-anchor",function(C){var k=KKe(C.model.labelAngle,C.model.labelSide),D=Math.abs(k.dx),F=Math.abs(k.dy);return 2*D>F?k.dir*k.dx<0?"start":"end":"middle"});var A=_.selectAll("."+Oa.cn.axisExtent).data(rg,Qd);A.enter().append("g").classed(Oa.cn.axisExtent,!0);var T=A.selectAll("."+Oa.cn.axisExtentTop).data(rg,Qd);T.enter().append("g").classed(Oa.cn.axisExtentTop,!0),T.attr("transform",tg(0,-Oa.axisExtentOffset));var y=T.selectAll("."+Oa.cn.axisExtentTopText).data(rg,Qd);y.enter().append("text").classed(Oa.cn.axisExtentTopText,!0).call(ZKe),y.text(function(C){return JKe(C,!0)}).each(function(C){Vz.font(fc.select(this),C.model.rangeFont)});var E=A.selectAll("."+Oa.cn.axisExtentBottom).data(rg,Qd);E.enter().append("g").classed(Oa.cn.axisExtentBottom,!0),E.attr("transform",function(C){return tg(0,C.model.height+Oa.axisExtentOffset)});var M=E.selectAll("."+Oa.cn.axisExtentBottomText).data(rg,Qd);M.enter().append("text").classed(Oa.cn.axisExtentBottomText,!0).attr("dy","0.75em").call(ZKe),M.text(function(C){return JKe(C,!1)}).each(function(C){Vz.font(fc.select(this),C.model.rangeFont)}),iJe.ensureAxisBrush(_,c,t)}});var hre=W((fre,fJe)=>{"use strict";var Tgr=sJe(),Agr=Ez(),lJe=nre().isVisible,cJe={};function uJe(e,t,r){var i=t.indexOf(r),n=e.indexOf(i);return n===-1&&(n+=t.length),n}function Mgr(e,t){return function(i,n){return uJe(e,t,i)-uJe(e,t,n)}}var fre=fJe.exports=function(t,r){var i=t._fullLayout,n=Agr(t,[],cJe);if(n){var a={},o={},s={},l=i._size;r.forEach(function(p,d){var v=p[0].trace,m=s[d]=v.index;a[d]=t.data[m].dimensions,o[d]=t.data[m].dimensions.slice()});var u=function(p,d,v){var m=o[p][d],g=v.map(function(A){return A.slice()}),w="dimensions["+d+"].constraintrange",_=i._tracePreGUI[t._fullData[s[p]].uid];if(_[w]===void 0){var b=m.constraintrange;_[w]=b||null}var S=t._fullData[s[p]].dimensions[d];g.length?(g.length===1&&(g=g[0]),m.constraintrange=g,S.constraintrange=g.slice(),g=[g]):(delete m.constraintrange,delete S.constraintrange,g=null);var x={};x[w]=g,t.emit("plotly_restyle",[x,[s[p]]])},c=function(p){t.emit("plotly_hover",p)},f=function(p){t.emit("plotly_unhover",p)},h=function(p,d){var v=Mgr(d,o[p].filter(lJe));a[p].sort(v),o[p].filter(function(m){return!lJe(m)}).sort(function(m){return o[p].indexOf(m)}).forEach(function(m){a[p].splice(a[p].indexOf(m),1),a[p].splice(o[p].indexOf(m),0,m)}),t.emit("plotly_restyle",[{dimensions:[a[p]]},[s[p]]])};Tgr(t,r,{width:l.w,height:l.h,margin:{t:l.t,r:l.r,b:l.b,l:l.l}},{filterChanged:u,hover:c,unhover:f,axesMoved:h})}};fre.reglPrecompiled=cJe});var dJe=W(pk=>{"use strict";var hJe=gi(),Sgr=Mc().getModuleCalcData,Egr=hre(),kgr=(md(),Pt(gd));pk.name="parcoords";pk.plot=function(e){var t=Sgr(e.calcdata,"parcoords")[0];t.length&&Egr(e,t)};pk.clean=function(e,t,r,i){var n=i._has&&i._has("parcoords"),a=t._has&&t._has("parcoords");n&&!a&&(i._paperdiv.selectAll(".parcoords").remove(),i._glimages.selectAll("*").remove())};pk.toSVG=function(e){var t=e._fullLayout._glimages,r=hJe.select(e).selectAll(".svg-container"),i=r.filter(function(a,o){return o===r.size()-1}).selectAll(".gl-canvas-context, .gl-canvas-focus");function n(){var a=this,o=a.toDataURL("image/png"),s=t.append("svg:image");s.attr({xmlns:kgr.svg,"xlink:href":o,preserveAspectRatio:"none",x:0,y:0,width:a.style.width,height:a.style.height})}i.each(n),window.setTimeout(function(){hJe.selectAll("#filterBarPattern").attr("id","filterBarPattern")},60)}});var vJe=W((Wti,pJe)=>{"use strict";pJe.exports={attributes:Jte(),supplyDefaults:RKe(),calc:BKe(),colorbar:{container:"line",min:"cmin",max:"cmax"},moduleType:"trace",name:"parcoords",basePlotModule:dJe(),categories:["gl","regl","noOpacity","noHover"],meta:{}}});var yJe=W((Yti,mJe)=>{"use strict";var gJe=vJe();gJe.plot=hre();mJe.exports=gJe});var bJe=W((Xti,xJe)=>{"use strict";xJe.exports=yJe()});var dre=W((Zti,MJe)=>{"use strict";var wJe=an().extendFlat,Cgr=Ja(),_Je=jo(),Dgr=Fo(),{hovertemplateAttrs:TJe,templatefallbackAttrs:AJe}=Wa(),Fgr=ds().attributes,Lgr=wJe({editType:"calc"},Dgr("line",{editTypeOverride:"calc"}),{shape:{valType:"enumerated",values:["linear","hspline"],dflt:"linear",editType:"plot"},hovertemplate:TJe({editType:"plot",arrayOk:!1},{keys:["count","probability"]}),hovertemplatefallback:AJe({editType:"plot"})});MJe.exports={domain:Fgr({name:"parcats",trace:!0,editType:"calc"}),hoverinfo:wJe({},Cgr.hoverinfo,{flags:["count","probability"],editType:"plot",arrayOk:!1}),hoveron:{valType:"enumerated",values:["category","color","dimension"],dflt:"category",editType:"plot"},hovertemplate:TJe({editType:"plot",arrayOk:!1},{keys:["count","probability","category","categorycount","colorcount","bandcolorcount"]}),hovertemplatefallback:AJe({editType:"plot"}),arrangement:{valType:"enumerated",values:["perpendicular","freeform","fixed"],dflt:"perpendicular",editType:"plot"},bundlecolors:{valType:"boolean",dflt:!0,editType:"plot"},sortpaths:{valType:"enumerated",values:["forward","backward"],dflt:"forward",editType:"plot"},labelfont:_Je({editType:"calc"}),tickfont:_Je({autoShadowDflt:!0,editType:"calc"}),dimensions:{_isLinkedToArray:"dimension",label:{valType:"string",editType:"calc"},categoryorder:{valType:"enumerated",values:["trace","category ascending","category descending","array"],dflt:"trace",editType:"calc"},categoryarray:{valType:"data_array",editType:"calc"},ticktext:{valType:"data_array",editType:"calc"},values:{valType:"data_array",dflt:[],editType:"calc"},displayindex:{valType:"integer",editType:"calc"},editType:"calc",visible:{valType:"boolean",dflt:!0,editType:"calc"}},line:Lgr,counts:{valType:"number",min:0,dflt:1,arrayOk:!0,editType:"calc"},customdata:void 0,hoverlabel:void 0,ids:void 0,legend:void 0,legendgroup:void 0,legendrank:void 0,opacity:void 0,selectedpoints:void 0,showlegend:void 0}});var kJe=W((Kti,EJe)=>{"use strict";var gT=tt(),Pgr=Sc().hasColorscale,Igr=Bu(),Rgr=ds().defaults,zgr=tf(),SJe=dre(),Bgr=Cz(),qgr=Tc().isTypedArraySpec;function Ogr(e,t,r,i,n){n("line.shape"),n("line.hovertemplate"),n("line.hovertemplatefallback");var a=n("line.color",i.colorway[0]);if(Pgr(e,"line")&&gT.isArrayOrTypedArray(a)){if(a.length)return n("line.colorscale"),Igr(e,t,i,n,{prefix:"line.",cLetter:"c"}),a.length;t.line.color=r}return 1/0}function Ngr(e,t){function r(u,c){return gT.coerce(e,t,SJe.dimensions,u,c)}var i=r("values"),n=r("visible");if(i&&i.length||(n=t.visible=!1),n){r("label"),r("displayindex",t._index);var a=e.categoryarray,o=gT.isArrayOrTypedArray(a)&&a.length>0||qgr(a),s;o&&(s="array");var l=r("categoryorder",s);l==="array"?(r("categoryarray"),r("ticktext")):(delete e.categoryarray,delete e.ticktext),!o&&l==="array"&&(t.categoryorder="trace")}}EJe.exports=function(t,r,i,n){function a(u,c){return gT.coerce(t,r,SJe,u,c)}var o=zgr(t,r,{name:"dimensions",handleItemDefaults:Ngr}),s=Ogr(t,r,i,n,a);Rgr(r,n,a),(!Array.isArray(o)||!o.length)&&(r.visible=!1),Bgr(r,o,"values",s),a("hoveron"),a("hovertemplate"),a("hovertemplatefallback"),a("arrangement"),a("bundlecolors"),a("sortpaths"),a("counts");var l=n.font;gT.coerceFont(a,"labelfont",l,{overrideDflt:{size:Math.round(l.size)}}),gT.coerceFont(a,"tickfont",l,{autoShadowDflt:!0,overrideDflt:{size:Math.round(l.size/1.2)}})}});var DJe=W((Jti,CJe)=>{"use strict";var Ugr=eg().wrap,Vgr=Sc().hasColorscale,Ggr=rf(),Hgr=nG(),jgr=Qi(),vk=tt(),$gr=hn();CJe.exports=function(t,r){var i=vk.filterVisible(r.dimensions);if(i.length===0)return[];var n=i.map(function(y){var E;if(y.categoryorder==="trace")E=null;else if(y.categoryorder==="array")E=y.categoryarray;else{E=Hgr(y.values);for(var M=!0,C=0;C=e.length||t[e[r]]!==void 0)return!1;t[e[r]]=!0}return!0}});var OJe=W((Qti,qJe)=>{"use strict";var Na=gi(),imr=(S_(),Pt(M_)).interpolateNumber,nmr=qF(),pre=ti(),yk=Is(),J2=tt(),gk=J2.strTranslate,FJe=Qi(),amr=ao();function omr(e,t,r,i){var n=t._context.staticPlot,a=e.map(wmr.bind(0,t,r)),o=i.selectAll("g.parcatslayer").data([null]);o.enter().append("g").attr("class","parcatslayer").style("pointer-events",n?"none":"all");var s=o.selectAll("g.trace.parcats").data(a,Lm),l=s.enter().append("g").attr("class","trace parcats");s.attr("transform",function(w){return gk(w.x,w.y)}),l.append("g").attr("class","paths");var u=s.select("g.paths"),c=u.selectAll("path.path").data(function(w){return w.paths},Lm);c.attr("fill",function(w){return w.model.color});var f=c.enter().append("path").attr("class","path").attr("stroke-opacity",0).attr("fill",function(w){return w.model.color}).attr("fill-opacity",0);mre(f),c.attr("d",function(w){return w.svgD}),f.empty()||c.sort(vre),c.exit().remove(),c.on("mouseover",lmr).on("mouseout",umr).on("click",cmr),l.append("g").attr("class","dimensions");var h=s.select("g.dimensions"),p=h.selectAll("g.dimension").data(function(w){return w.dimensions},Lm);p.enter().append("g").attr("class","dimension"),p.attr("transform",function(w){return gk(w.x,0)}),p.exit().remove();var d=p.selectAll("g.category").data(function(w){return w.categories},Lm),v=d.enter().append("g").attr("class","category");d.attr("transform",function(w){return gk(0,w.y)}),v.append("rect").attr("class","catrect").attr("pointer-events","none"),d.select("rect.catrect").attr("fill","none").attr("width",function(w){return w.width}).attr("height",function(w){return w.height}),PJe(v);var m=d.selectAll("rect.bandrect").data(function(w){return w.bands},Lm);m.each(function(){J2.raiseToTop(this)}),m.attr("fill",function(w){return w.color});var g=m.enter().append("rect").attr("class","bandrect").attr("stroke-opacity",0).attr("fill",function(w){return w.color}).attr("fill-opacity",0);m.attr("fill",function(w){return w.color}).attr("width",function(w){return w.width}).attr("height",function(w){return w.height}).attr("y",function(w){return w.y}).attr("cursor",function(w){return w.parcatsViewModel.arrangement==="fixed"?"default":w.parcatsViewModel.arrangement==="perpendicular"?"ns-resize":"move"}),xre(g),m.exit().remove(),v.append("text").attr("class","catlabel").attr("pointer-events","none"),d.select("text.catlabel").attr("text-anchor",function(w){return mk(w)?"start":"end"}).attr("alignment-baseline","middle").style("fill","rgb(0, 0, 0)").attr("x",function(w){return mk(w)?w.width+5:-5}).attr("y",function(w){return w.height/2}).text(function(w){return w.model.categoryLabel}).each(function(w){FJe.font(Na.select(this),w.parcatsViewModel.categorylabelfont),amr.convertToTspans(Na.select(this),t)}),v.append("text").attr("class","dimlabel"),d.select("text.dimlabel").attr("text-anchor","middle").attr("alignment-baseline","baseline").attr("cursor",function(w){return w.parcatsViewModel.arrangement==="fixed"?"default":"ew-resize"}).attr("x",function(w){return w.width/2}).attr("y",-5).text(function(w,_){return _===0?w.parcatsViewModel.model.dimensions[w.model.dimensionInd].dimensionLabel:null}).each(function(w){FJe.font(Na.select(this),w.parcatsViewModel.labelfont)}),d.selectAll("rect.bandrect").on("mouseover",mmr).on("mouseout",ymr),d.exit().remove(),p.call(Na.behavior.drag().origin(function(w){return{x:w.x,y:0}}).on("dragstart",xmr).on("drag",bmr).on("dragend",_mr)),s.each(function(w){w.traceSelection=Na.select(this),w.pathSelection=Na.select(this).selectAll("g.paths").selectAll("path.path"),w.dimensionSelection=Na.select(this).selectAll("g.dimensions").selectAll("g.dimension")}),s.exit().remove()}qJe.exports=function(e,t,r,i){omr(r,e,i,t)};function Lm(e){return e.key}function mk(e){var t=e.parcatsViewModel.dimensions.length,r=e.parcatsViewModel.dimensions[t-1].model.dimensionInd;return e.model.dimensionInd===r}function vre(e,t){return e.model.rawColor>t.model.rawColor?1:e.model.rawColorn)return 1;if(i!==n){var a=isNaN(i),o=isNaN(n);if(a!==o)return a?1:-1}}return e.length-t.length}function lmr(e){if(!e.parcatsViewModel.dragDimension&&e.parcatsViewModel.hoverinfoItems.indexOf("skip")===-1){J2.raiseToTop(this),yre(Na.select(this));var t=xk(e),r=gre(e);if(e.parcatsViewModel.graphDiv.emit("plotly_hover",{points:t,event:Na.event,constraints:r}),e.parcatsViewModel.hoverinfoItems.indexOf("none")===-1){var i=Na.mouse(this)[0],n=e.parcatsViewModel.graphDiv,a=e.parcatsViewModel.trace,o=n._fullLayout,s=o._paperdiv.node().getBoundingClientRect(),l=e.parcatsViewModel.graphDiv.getBoundingClientRect(),u,c,f;for(f=0;f"),x=Na.mouse(n)[0];yk.loneHover({trace:a,x:d-s.left+l.left,y:v-s.top+l.top,text:S,color:e.model.color,borderColor:"black",fontFamily:'Monaco, "Courier New", monospace',fontSize:10,fontColor:m,idealAlign:xpre.mostReadable(t.model.color)).attr("stroke-width",.3)}function fmr(e){e.select("rect.catrect").attr("stroke","black").attr("stroke-width",2.5)}function PJe(e){e.select("rect.catrect").attr("stroke","black").attr("stroke-width",1).attr("stroke-opacity",1)}function hmr(e){e.attr("stroke","black").attr("stroke-width",1.5)}function xre(e){e.attr("stroke","black").attr("stroke-width",.2).attr("stroke-opacity",1).attr("fill-opacity",1)}function Hz(e){var t=e.parcatsViewModel.pathSelection,r=e.categoryViewModel.model.dimensionInd,i=e.categoryViewModel.model.categoryInd;return t.filter(function(n){return n.model.categoryInds[r]===i&&n.model.color===e.color})}function dmr(e){var t=Na.select(e.parentNode).selectAll("rect.bandrect");t.each(function(r){var i=Hz(r);yre(i),i.each(function(){J2.raiseToTop(this)})}),fmr(Na.select(e.parentNode))}function pmr(e){var t=Na.select(e).datum(),r=Hz(t);yre(r),r.each(function(){J2.raiseToTop(this)}),Na.select(e.parentNode).selectAll("rect.bandrect").filter(function(i){return i.color===t.color}).each(function(){J2.raiseToTop(this),hmr(Na.select(this))})}function bre(e,t,r){var i=Na.select(e).datum(),n=i.categoryViewModel.model,a=i.parcatsViewModel.graphDiv,o=Na.select(e.parentNode).selectAll("rect.bandrect"),s=[];o.each(function(u){var c=Hz(u);c.each(function(f){Array.prototype.push.apply(s,xk(f))})});var l={};l[n.dimensionInd]=n.categoryValue,a.emit(t,{points:s,event:r,constraints:l})}function _re(e,t,r){var i=Na.select(e).datum(),n=i.categoryViewModel.model,a=i.parcatsViewModel.graphDiv,o=Hz(i),s=[];o.each(function(u){Array.prototype.push.apply(s,xk(u))});var l={};l[n.dimensionInd]=n.categoryValue,i.rawColor!==void 0&&(l.color=i.rawColor),a.emit(t,{points:s,event:r,constraints:l})}function IJe(e,t,r){e._fullLayout._calcInverseTransform(e);var i=e._fullLayout._invScaleX,n=e._fullLayout._invScaleY,a=Na.select(r.parentNode).select("rect.catrect"),o=a.node().getBoundingClientRect(),s=a.datum(),l=s.parcatsViewModel,u=l.model.dimensions[s.model.dimensionInd],c=l.trace,f=o.top+o.height/2,h,p;l.dimensions.length>1&&u.displayInd===l.dimensions.length-1?(h=o.left,p="left"):(h=o.left+o.width,p="right");var d=s.model.count,v=s.model.categoryLabel,m=d/s.parcatsViewModel.model.count,g={countLabel:d,categoryLabel:v,probabilityLabel:m.toFixed(3)},w=[];s.parcatsViewModel.hoverinfoItems.indexOf("count")!==-1&&w.push(["Count:",g.countLabel].join(" ")),s.parcatsViewModel.hoverinfoItems.indexOf("probability")!==-1&&w.push(["P("+g.categoryLabel+"):",g.probabilityLabel].join(" "));var _=w.join("
");return{trace:c,x:i*(h-t.left),y:n*(f-t.top),text:_,color:"lightgray",borderColor:"black",fontFamily:'Monaco, "Courier New", monospace',fontSize:12,fontColor:"black",idealAlign:p,hovertemplate:c.hovertemplate,hovertemplateLabels:g,eventData:[{data:c._input,fullData:c,count:d,category:v,probability:m}]}}function vmr(e,t,r){var i=[];return Na.select(r.parentNode.parentNode).selectAll("g.category").select("rect.catrect").each(function(){var n=this;i.push(IJe(e,t,n))}),i}function gmr(e,t,r){e._fullLayout._calcInverseTransform(e);var i=e._fullLayout._invScaleX,n=e._fullLayout._invScaleY,a=r.getBoundingClientRect(),o=Na.select(r).datum(),s=o.categoryViewModel,l=s.parcatsViewModel,u=l.model.dimensions[s.model.dimensionInd],c=l.trace,f=a.y+a.height/2,h,p;l.dimensions.length>1&&u.displayInd===l.dimensions.length-1?(h=a.left,p="left"):(h=a.left+a.width,p="right");var d=s.model.categoryLabel,v=o.parcatsViewModel.model.count,m=0;o.categoryViewModel.bands.forEach(function(E){E.color===o.color&&(m+=E.count)});var g=s.model.count,w=0;l.pathSelection.each(function(E){E.model.color===o.color&&(w+=E.model.count)});var _=m/v,b=m/w,S=m/g,x={countLabel:m,categoryLabel:d,probabilityLabel:_.toFixed(3)},A=[];s.parcatsViewModel.hoverinfoItems.indexOf("count")!==-1&&A.push(["Count:",x.countLabel].join(" ")),s.parcatsViewModel.hoverinfoItems.indexOf("probability")!==-1&&(A.push("P(color \u2229 "+d+"): "+x.probabilityLabel),A.push("P("+d+" | color): "+b.toFixed(3)),A.push("P(color | "+d+"): "+S.toFixed(3)));var T=A.join("
"),y=pre.mostReadable(o.color);return{trace:c,x:i*(h-t.left),y:n*(f-t.top),text:T,color:o.color,borderColor:"black",fontFamily:'Monaco, "Courier New", monospace',fontColor:y,fontSize:10,idealAlign:p,hovertemplate:c.hovertemplate,hovertemplateLabels:x,eventData:[{data:c._input,fullData:c,category:d,count:v,probability:_,categorycount:g,colorcount:w,bandcolorcount:m}]}}function mmr(e){if(!e.parcatsViewModel.dragDimension&&e.parcatsViewModel.hoverinfoItems.indexOf("skip")===-1){var t=Na.mouse(this)[1];if(t<-1)return;var r=e.parcatsViewModel.graphDiv,i=r._fullLayout,n=i._paperdiv.node().getBoundingClientRect(),a=e.parcatsViewModel.hoveron,o=this;if(a==="color"?(pmr(o),_re(o,"plotly_hover",Na.event)):(dmr(o),bre(o,"plotly_hover",Na.event)),e.parcatsViewModel.hoverinfoItems.indexOf("none")===-1){var s;a==="category"?s=IJe(r,n,o):a==="color"?s=gmr(r,n,o):a==="dimension"&&(s=vmr(r,n,o)),s&&yk.loneHover(s,{container:i._hoverlayer.node(),outerContainer:i._paper.node(),gd:r})}}}function ymr(e){var t=e.parcatsViewModel;if(!t.dragDimension&&(mre(t.pathSelection),PJe(t.dimensionSelection.selectAll("g.category")),xre(t.dimensionSelection.selectAll("g.category").selectAll("rect.bandrect")),yk.loneUnhover(t.graphDiv._fullLayout._hoverlayer.node()),t.pathSelection.sort(vre),t.hoverinfoItems.indexOf("skip")===-1)){var r=e.parcatsViewModel.hoveron,i=this;r==="color"?_re(i,"plotly_unhover",Na.event):bre(i,"plotly_unhover",Na.event)}}function xmr(e){e.parcatsViewModel.arrangement!=="fixed"&&(e.dragDimensionDisplayInd=e.model.displayInd,e.initialDragDimensionDisplayInds=e.parcatsViewModel.model.dimensions.map(function(t){return t.displayInd}),e.dragHasMoved=!1,e.dragCategoryDisplayInd=null,Na.select(this).selectAll("g.category").select("rect.catrect").each(function(t){var r=Na.mouse(this)[0],i=Na.mouse(this)[1];-2<=r&&r<=t.width+2&&-2<=i&&i<=t.height+2&&(e.dragCategoryDisplayInd=t.model.displayInd,e.initialDragCategoryDisplayInds=e.model.categories.map(function(n){return n.displayInd}),t.model.dragY=t.y,J2.raiseToTop(this.parentNode),Na.select(this.parentNode).selectAll("rect.bandrect").each(function(n){n.yc.y+c.height/2&&(a.model.displayInd=c.model.displayInd,c.model.displayInd=s),e.dragCategoryDisplayInd=a.model.displayInd}if(e.dragCategoryDisplayInd===null||e.parcatsViewModel.arrangement==="freeform"){n.model.dragX=Na.event.x;var f=e.parcatsViewModel.dimensions[r],h=e.parcatsViewModel.dimensions[i];f!==void 0&&n.model.dragXh.x&&(n.model.displayInd=h.model.displayInd,h.model.displayInd=e.dragDimensionDisplayInd),e.dragDimensionDisplayInd=n.model.displayInd}Tre(e.parcatsViewModel),wre(e.parcatsViewModel),BJe(e.parcatsViewModel),zJe(e.parcatsViewModel)}}function _mr(e){if(e.parcatsViewModel.arrangement!=="fixed"&&e.dragDimensionDisplayInd!==null){Na.select(this).selectAll("text").attr("font-weight","normal");var t={},r=RJe(e.parcatsViewModel),i=e.parcatsViewModel.model.dimensions.map(function(h){return h.displayInd}),n=e.initialDragDimensionDisplayInds.some(function(h,p){return h!==i[p]});n&&i.forEach(function(h,p){var d=e.parcatsViewModel.model.dimensions[p].containerInd;t["dimensions["+d+"].displayindex"]=h});var a=!1;if(e.dragCategoryDisplayInd!==null){var o=e.model.categories.map(function(h){return h.displayInd});if(a=e.initialDragCategoryDisplayInds.some(function(h,p){return h!==o[p]}),a){var s=e.model.categories.slice().sort(function(h,p){return h.displayInd-p.displayInd}),l=s.map(function(h){return h.categoryValue}),u=s.map(function(h){return h.categoryLabel});t["dimensions["+e.model.containerInd+"].categoryarray"]=[l],t["dimensions["+e.model.containerInd+"].ticktext"]=[u],t["dimensions["+e.model.containerInd+"].categoryorder"]="array"}}if(e.parcatsViewModel.hoverinfoItems.indexOf("skip")===-1&&!e.dragHasMoved&&e.potentialClickBand&&(e.parcatsViewModel.hoveron==="color"?_re(e.potentialClickBand,"plotly_click",Na.event.sourceEvent):bre(e.potentialClickBand,"plotly_click",Na.event.sourceEvent)),e.model.dragX=null,e.dragCategoryDisplayInd!==null){var c=e.parcatsViewModel.dimensions[e.dragDimensionDisplayInd].categories[e.dragCategoryDisplayInd];c.model.dragY=null,e.dragCategoryDisplayInd=null}e.dragDimensionDisplayInd=null,e.parcatsViewModel.dragDimension=null,e.dragHasMoved=null,e.potentialClickBand=null,Tre(e.parcatsViewModel),wre(e.parcatsViewModel);var f=Na.transition().duration(300).ease("cubic-in-out");f.each(function(){BJe(e.parcatsViewModel,!0),zJe(e.parcatsViewModel,!0)}).each("end",function(){(n||a)&&nmr.restyle(e.parcatsViewModel.graphDiv,t,[r])})}}function RJe(e){for(var t,r=e.graphDiv._fullData,i=0;i=0;l--)u+="C"+o[l]+","+(t[l+1]+i)+" "+a[l]+","+(t[l]+i)+" "+(e[l]+r[l])+","+(t[l]+i),u+="l-"+r[l]+",0 ";return u+="Z",u}function wre(e){var t=e.dimensions,r=e.model,i=t.map(function(k){return k.categories.map(function(D){return D.y})}),n=e.model.dimensions.map(function(k){return k.categories.map(function(D){return D.displayInd})}),a=e.model.dimensions.map(function(k){return k.displayInd}),o=e.dimensions.map(function(k){return k.model.dimensionInd}),s=t.map(function(k){return k.x}),l=t.map(function(k){return k.width}),u=[];for(var c in r.paths)r.paths.hasOwnProperty(c)&&u.push(r.paths[c]);function f(k){var D=k.categoryInds.map(function(P,R){return n[R][P]}),F=o.map(function(P){return D[P]});return F}u.sort(function(k,D){var F=f(k),P=f(D);return e.sortpaths==="backward"&&(F.reverse(),P.reverse()),F.push(k.valueInds[0]),P.push(D.valueInds[0]),e.bundlecolors&&(F.unshift(k.rawColor),P.unshift(D.rawColor)),smr(F,P)});for(var h=new Array(u.length),p=t[0].model.count,d=t[0].categories.map(function(k){return k.height}).reduce(function(k,D){return k+D}),v=0;v0?g=d*(m.count/p):g=0;for(var w=new Array(i.length),_=0;_1?o=(e.width-2*r-i)/(n-1):o=0,s=r,l=s+o*a;var u=[],c=e.model.maxCats,f=t.categories.length,h=8,p=t.count,d=e.height-h*(c-1),v,m,g,w,_,b=(c-f)*h/2,S=t.categories.map(function(x){return{displayInd:x.displayInd,categoryInd:x.categoryInd}});for(S.sort(function(x,A){return x.displayInd-A.displayInd}),_=0;_0?v=m.count/p*d:v=0,g={key:m.valueInds[0],model:m,width:i,height:v,y:m.dragY!==null?m.dragY:b,bands:[],parcatsViewModel:e},b=b+v+h,u.push(g);return{key:t.dimensionInd,x:t.dragX!==null?t.dragX:l,y:0,width:i,model:t,categories:u,parcatsViewModel:e,dragCategoryDisplayInd:null,dragDimensionDisplayInd:null,initialDragDimensionDisplayInds:null,initialDragCategoryDisplayInds:null,dragHasMoved:null,potentialClickBand:null}}});var Are=W((eri,NJe)=>{"use strict";var Amr=OJe();NJe.exports=function(t,r,i,n){var a=t._fullLayout,o=a._paper,s=a._size;Amr(t,o,r,{width:s.w,height:s.h,margin:{t:s.t,r:s.r,b:s.b,l:s.l}},i,n)}});var VJe=W(jz=>{"use strict";var Mmr=Mc().getModuleCalcData,Smr=Are(),UJe="parcats";jz.name=UJe;jz.plot=function(e,t,r,i){var n=Mmr(e.calcdata,UJe);if(n.length){var a=n[0];Smr(e,a,r,i)}};jz.clean=function(e,t,r,i){var n=i._has&&i._has("parcats"),a=t._has&&t._has("parcats");n&&!a&&i._paperdiv.selectAll(".parcats").remove()}});var HJe=W((rri,GJe)=>{"use strict";GJe.exports={attributes:dre(),supplyDefaults:kJe(),calc:DJe(),plot:Are(),colorbar:{container:"line",min:"cmin",max:"cmax"},moduleType:"trace",name:"parcats",basePlotModule:VJe(),categories:["noOpacity"],meta:{}}});var $Je=W((iri,jJe)=>{"use strict";jJe.exports=HJe()});var YJe=W((nri,WJe)=>{"use strict";WJe.exports={version:8,name:"orto",metadata:{"maputnik:renderer":"mlgljs"},center:[1.537786,41.837539],zoom:12,bearing:0,pitch:0,light:{anchor:"viewport",color:"white",intensity:.4,position:[1.15,45,30]},sources:{ortoEsri:{type:"raster",tiles:["https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}"],tileSize:256,maxzoom:18,attribution:"ESRI © ESRI"},ortoInstaMaps:{type:"raster",tiles:["https://tilemaps.icgc.cat/mapfactory/wmts/orto_8_12/CAT3857/{z}/{x}/{y}.png"],tileSize:256,maxzoom:13},ortoICGC:{type:"raster",tiles:["https://geoserveis.icgc.cat/icc_mapesmultibase/noutm/wmts/orto/GRID3857/{z}/{x}/{y}.jpeg"],tileSize:256,minzoom:13.1,maxzoom:20},openmaptiles:{type:"vector",url:"https://geoserveis.icgc.cat/contextmaps/basemap.json"}},sprite:"https://geoserveis.icgc.cat/contextmaps/sprites/sprite@1",glyphs:"https://geoserveis.icgc.cat/contextmaps/glyphs/{fontstack}/{range}.pbf",layers:[{id:"background",type:"background",paint:{"background-color":"#F4F9F4"}},{id:"ortoEsri",type:"raster",source:"ortoEsri",maxzoom:16,layout:{visibility:"visible"}},{id:"ortoICGC",type:"raster",source:"ortoICGC",minzoom:13.1,maxzoom:19,layout:{visibility:"visible"}},{id:"ortoInstaMaps",type:"raster",source:"ortoInstaMaps",maxzoom:13,layout:{visibility:"visible"}},{id:"waterway_tunnel",type:"line",source:"openmaptiles","source-layer":"waterway",minzoom:14,filter:["all",["in","class","river","stream","canal"],["==","brunnel","tunnel"]],layout:{"line-cap":"round"},paint:{"line-color":"#a0c8f0","line-width":{base:1.3,stops:[[13,.5],[20,6]]},"line-dasharray":[2,4]}},{id:"waterway-other",type:"line",metadata:{"mapbox:group":"1444849382550.77"},source:"openmaptiles","source-layer":"waterway",filter:["!in","class","canal","river","stream"],layout:{"line-cap":"round"},paint:{"line-color":"#a0c8f0","line-width":{base:1.3,stops:[[13,.5],[20,2]]}}},{id:"waterway-stream-canal",type:"line",metadata:{"mapbox:group":"1444849382550.77"},source:"openmaptiles","source-layer":"waterway",filter:["all",["in","class","canal","stream"],["!=","brunnel","tunnel"]],layout:{"line-cap":"round"},paint:{"line-color":"#a0c8f0","line-width":{base:1.3,stops:[[13,.5],[20,6]]}}},{id:"waterway-river",type:"line",metadata:{"mapbox:group":"1444849382550.77"},source:"openmaptiles","source-layer":"waterway",filter:["all",["==","class","river"],["!=","brunnel","tunnel"]],layout:{"line-cap":"round"},paint:{"line-color":"#a0c8f0","line-width":{base:1.2,stops:[[10,.8],[20,4]]},"line-opacity":.5}},{id:"water-offset",type:"fill",metadata:{"mapbox:group":"1444849382550.77"},source:"openmaptiles","source-layer":"water",maxzoom:8,filter:["==","$type","Polygon"],layout:{visibility:"visible"},paint:{"fill-opacity":0,"fill-color":"#a0c8f0","fill-translate":{base:1,stops:[[6,[2,0]],[8,[0,0]]]}}},{id:"water",type:"fill",metadata:{"mapbox:group":"1444849382550.77"},source:"openmaptiles","source-layer":"water",layout:{visibility:"visible"},paint:{"fill-color":"hsl(210, 67%, 85%)","fill-opacity":0}},{id:"water-pattern",type:"fill",metadata:{"mapbox:group":"1444849382550.77"},source:"openmaptiles","source-layer":"water",layout:{visibility:"visible"},paint:{"fill-translate":[0,2.5],"fill-pattern":"wave","fill-opacity":1}},{id:"landcover-ice-shelf",type:"fill",metadata:{"mapbox:group":"1444849382550.77"},source:"openmaptiles","source-layer":"landcover",filter:["==","subclass","ice_shelf"],layout:{visibility:"visible"},paint:{"fill-color":"#fff","fill-opacity":{base:1,stops:[[0,.9],[10,.3]]}}},{id:"tunnel-service-track-casing",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["in","class","service","track"]],layout:{"line-join":"round"},paint:{"line-color":"#cfcdca","line-dasharray":[.5,.25],"line-width":{base:1.2,stops:[[15,1],[16,4],[20,11]]}}},{id:"tunnel-minor-casing",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["==","class","minor"]],layout:{"line-join":"round"},paint:{"line-color":"#cfcdca","line-opacity":{stops:[[12,0],[12.5,1]]},"line-width":{base:1.2,stops:[[12,.5],[13,1],[14,4],[20,15]]}}},{id:"tunnel-secondary-tertiary-casing",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["in","class","secondary","tertiary"]],layout:{"line-join":"round"},paint:{"line-color":"#e9ac77","line-opacity":1,"line-width":{base:1.2,stops:[[8,1.5],[20,17]]}}},{id:"tunnel-trunk-primary-casing",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["in","class","primary","trunk"]],layout:{"line-join":"round"},paint:{"line-color":"#e9ac77","line-width":{base:1.2,stops:[[5,.4],[6,.6],[7,1.5],[20,22]]},"line-opacity":.7}},{id:"tunnel-motorway-casing",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["==","class","motorway"]],layout:{"line-join":"round",visibility:"visible"},paint:{"line-color":"#e9ac77","line-dasharray":[.5,.25],"line-width":{base:1.2,stops:[[5,.4],[6,.6],[7,1.5],[20,22]]},"line-opacity":.5}},{id:"tunnel-path",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["==","brunnel","tunnel"],["==","class","path"]]],paint:{"line-color":"#cba","line-dasharray":[1.5,.75],"line-width":{base:1.2,stops:[[15,1.2],[20,4]]}}},{id:"tunnel-service-track",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["in","class","service","track"]],layout:{"line-join":"round"},paint:{"line-color":"#fff","line-width":{base:1.2,stops:[[15.5,0],[16,2],[20,7.5]]}}},{id:"tunnel-minor",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["==","class","minor_road"]],layout:{"line-join":"round"},paint:{"line-color":"#fff","line-opacity":1,"line-width":{base:1.2,stops:[[13.5,0],[14,2.5],[20,11.5]]}}},{id:"tunnel-secondary-tertiary",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["in","class","secondary","tertiary"]],layout:{"line-join":"round"},paint:{"line-color":"#fff4c6","line-width":{base:1.2,stops:[[6.5,0],[7,.5],[20,10]]}}},{id:"tunnel-trunk-primary",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["in","class","primary","trunk"]],layout:{"line-join":"round"},paint:{"line-color":"#fff4c6","line-width":{base:1.2,stops:[[6.5,0],[7,.5],[20,18]]},"line-opacity":.5}},{id:"tunnel-motorway",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["==","class","motorway"]],layout:{"line-join":"round",visibility:"visible"},paint:{"line-color":"#ffdaa6","line-width":{base:1.2,stops:[[6.5,0],[7,.5],[20,18]]},"line-opacity":.5}},{id:"tunnel-railway",type:"line",metadata:{"mapbox:group":"1444849354174.1904"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","tunnel"],["==","class","rail"]],paint:{"line-color":"#bbb","line-width":{base:1.4,stops:[[14,.4],[15,.75],[20,2]]},"line-dasharray":[2,2]}},{id:"ferry",type:"line",source:"openmaptiles","source-layer":"transportation",filter:["all",["in","class","ferry"]],layout:{"line-join":"round",visibility:"visible"},paint:{"line-color":"rgba(108, 159, 182, 1)","line-width":1.1,"line-dasharray":[2,2]}},{id:"aeroway-taxiway-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"aeroway",minzoom:12,filter:["all",["in","class","taxiway"]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"rgba(153, 153, 153, 1)","line-width":{base:1.5,stops:[[11,2],[17,12]]},"line-opacity":1}},{id:"aeroway-runway-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"aeroway",minzoom:12,filter:["all",["in","class","runway"]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"rgba(153, 153, 153, 1)","line-width":{base:1.5,stops:[[11,5],[17,55]]},"line-opacity":1}},{id:"aeroway-taxiway",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"aeroway",minzoom:4,filter:["all",["in","class","taxiway"],["==","$type","LineString"]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"rgba(255, 255, 255, 1)","line-width":{base:1.5,stops:[[11,1],[17,10]]},"line-opacity":{base:1,stops:[[11,0],[12,1]]}}},{id:"aeroway-runway",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"aeroway",minzoom:4,filter:["all",["in","class","runway"],["==","$type","LineString"]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"rgba(255, 255, 255, 1)","line-width":{base:1.5,stops:[[11,4],[17,50]]},"line-opacity":{base:1,stops:[[11,0],[12,1]]}}},{id:"highway-motorway-link-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",minzoom:12,filter:["all",["!in","brunnel","bridge","tunnel"],["==","class","motorway_link"]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"#e9ac77","line-opacity":1,"line-width":{base:1.2,stops:[[12,1],[13,3],[14,4],[20,15]]}}},{id:"highway-link-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",minzoom:13,filter:["all",["!in","brunnel","bridge","tunnel"],["in","class","primary_link","secondary_link","tertiary_link","trunk_link"]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"#e9ac77","line-opacity":1,"line-width":{base:1.2,stops:[[12,1],[13,3],[14,4],[20,15]]}}},{id:"highway-minor-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["!=","brunnel","tunnel"],["in","class","minor","service","track"]]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"#cfcdca","line-opacity":{stops:[[12,0],[12.5,0]]},"line-width":{base:1.2,stops:[[12,.5],[13,1],[14,4],[20,15]]}}},{id:"highway-secondary-tertiary-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["!in","brunnel","bridge","tunnel"],["in","class","secondary","tertiary"]],layout:{"line-cap":"butt","line-join":"round",visibility:"visible"},paint:{"line-color":"#e9ac77","line-opacity":.5,"line-width":{base:1.2,stops:[[8,1.5],[20,17]]}}},{id:"highway-primary-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",minzoom:5,filter:["all",["!in","brunnel","bridge","tunnel"],["in","class","primary"]],layout:{"line-cap":"butt","line-join":"round",visibility:"visible"},paint:{"line-color":"#e9ac77","line-opacity":{stops:[[7,0],[8,.6]]},"line-width":{base:1.2,stops:[[7,0],[8,.6],[9,1.5],[20,22]]}}},{id:"highway-trunk-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",minzoom:5,filter:["all",["!in","brunnel","bridge","tunnel"],["in","class","trunk"]],layout:{"line-cap":"butt","line-join":"round",visibility:"visible"},paint:{"line-color":"#e9ac77","line-opacity":{stops:[[5,0],[6,.5]]},"line-width":{base:1.2,stops:[[5,0],[6,.6],[7,1.5],[20,22]]}}},{id:"highway-motorway-casing",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",minzoom:4,filter:["all",["!in","brunnel","bridge","tunnel"],["==","class","motorway"]],layout:{"line-cap":"butt","line-join":"round",visibility:"visible"},paint:{"line-color":"#e9ac77","line-width":{base:1.2,stops:[[4,0],[5,.4],[6,.6],[7,1.5],[20,22]]},"line-opacity":{stops:[[4,0],[5,.5]]}}},{id:"highway-path",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["!in","brunnel","bridge","tunnel"],["==","class","path"]]],paint:{"line-color":"#cba","line-dasharray":[1.5,.75],"line-width":{base:1.2,stops:[[15,1.2],[20,4]]}}},{id:"highway-motorway-link",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",minzoom:12,filter:["all",["!in","brunnel","bridge","tunnel"],["==","class","motorway_link"]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"#fc8","line-width":{base:1.2,stops:[[12.5,0],[13,1.5],[14,2.5],[20,11.5]]}}},{id:"highway-link",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",minzoom:13,filter:["all",["!in","brunnel","bridge","tunnel"],["in","class","primary_link","secondary_link","tertiary_link","trunk_link"]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"#fea","line-width":{base:1.2,stops:[[12.5,0],[13,1.5],[14,2.5],[20,11.5]]}}},{id:"highway-minor",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["!=","brunnel","tunnel"],["in","class","minor","service","track"]]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"#fff","line-opacity":.5,"line-width":{base:1.2,stops:[[13.5,0],[14,2.5],[20,11.5]]}}},{id:"highway-secondary-tertiary",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["!in","brunnel","bridge","tunnel"],["in","class","secondary","tertiary"]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"#fea","line-width":{base:1.2,stops:[[6.5,0],[8,.5],[20,13]]},"line-opacity":.5}},{id:"highway-primary",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["!in","brunnel","bridge","tunnel"],["in","class","primary"]]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"#fea","line-width":{base:1.2,stops:[[8.5,0],[9,.5],[20,18]]},"line-opacity":0}},{id:"highway-trunk",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["!in","brunnel","bridge","tunnel"],["in","class","trunk"]]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"#fea","line-width":{base:1.2,stops:[[6.5,0],[7,.5],[20,18]]},"line-opacity":.5}},{id:"highway-motorway",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",minzoom:5,filter:["all",["==","$type","LineString"],["all",["!in","brunnel","bridge","tunnel"],["==","class","motorway"]]],layout:{"line-cap":"round","line-join":"round",visibility:"visible"},paint:{"line-color":"#fc8","line-width":{base:1.2,stops:[[6.5,0],[7,.5],[20,18]]},"line-opacity":.5}},{id:"railway-transit",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["==","class","transit"],["!in","brunnel","tunnel"]]],layout:{visibility:"visible"},paint:{"line-color":"hsla(0, 0%, 73%, 0.77)","line-width":{base:1.4,stops:[[14,.4],[20,1]]}}},{id:"railway-transit-hatching",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["==","class","transit"],["!in","brunnel","tunnel"]]],layout:{visibility:"visible"},paint:{"line-color":"hsla(0, 0%, 73%, 0.68)","line-dasharray":[.2,8],"line-width":{base:1.4,stops:[[14.5,0],[15,2],[20,6]]}}},{id:"railway-service",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["==","class","rail"],["has","service"]]],paint:{"line-color":"hsla(0, 0%, 73%, 0.77)","line-width":{base:1.4,stops:[[14,.4],[20,1]]}}},{id:"railway-service-hatching",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["==","class","rail"],["has","service"]]],layout:{visibility:"visible"},paint:{"line-color":"hsla(0, 0%, 73%, 0.68)","line-dasharray":[.2,8],"line-width":{base:1.4,stops:[[14.5,0],[15,2],[20,6]]}}},{id:"railway",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["!has","service"],["!in","brunnel","bridge","tunnel"],["==","class","rail"]]],paint:{"line-color":"#bbb","line-width":{base:1.4,stops:[[14,.4],[15,.75],[20,2]]}}},{id:"railway-hatching",type:"line",metadata:{"mapbox:group":"1444849345966.4436"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["!has","service"],["!in","brunnel","bridge","tunnel"],["==","class","rail"]]],paint:{"line-color":"#bbb","line-dasharray":[.2,8],"line-width":{base:1.4,stops:[[14.5,0],[15,3],[20,8]]}}},{id:"bridge-motorway-link-casing",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["==","class","motorway_link"]],layout:{"line-join":"round"},paint:{"line-color":"#e9ac77","line-opacity":1,"line-width":{base:1.2,stops:[[12,1],[13,3],[14,4],[20,15]]}}},{id:"bridge-link-casing",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["in","class","primary_link","secondary_link","tertiary_link","trunk_link"]],layout:{"line-join":"round"},paint:{"line-color":"#e9ac77","line-opacity":1,"line-width":{base:1.2,stops:[[12,1],[13,3],[14,4],[20,15]]}}},{id:"bridge-secondary-tertiary-casing",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["in","class","secondary","tertiary"]],layout:{"line-join":"round"},paint:{"line-color":"#e9ac77","line-opacity":1,"line-width":{base:1.2,stops:[[8,1.5],[20,28]]}}},{id:"bridge-trunk-primary-casing",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["in","class","primary","trunk"]],layout:{"line-join":"round"},paint:{"line-color":"hsl(28, 76%, 67%)","line-width":{base:1.2,stops:[[5,.4],[6,.6],[7,1.5],[20,26]]}}},{id:"bridge-motorway-casing",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["==","class","motorway"]],layout:{"line-join":"round"},paint:{"line-color":"#e9ac77","line-width":{base:1.2,stops:[[5,.4],[6,.6],[7,1.5],[20,22]]},"line-opacity":.5}},{id:"bridge-path-casing",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["==","brunnel","bridge"],["==","class","path"]]],paint:{"line-color":"#f8f4f0","line-width":{base:1.2,stops:[[15,1.2],[20,18]]}}},{id:"bridge-path",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","$type","LineString"],["all",["==","brunnel","bridge"],["==","class","path"]]],paint:{"line-color":"#cba","line-width":{base:1.2,stops:[[15,1.2],[20,4]]},"line-dasharray":[1.5,.75]}},{id:"bridge-motorway-link",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["==","class","motorway_link"]],layout:{"line-join":"round"},paint:{"line-color":"#fc8","line-width":{base:1.2,stops:[[12.5,0],[13,1.5],[14,2.5],[20,11.5]]}}},{id:"bridge-link",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["in","class","primary_link","secondary_link","tertiary_link","trunk_link"]],layout:{"line-join":"round"},paint:{"line-color":"#fea","line-width":{base:1.2,stops:[[12.5,0],[13,1.5],[14,2.5],[20,11.5]]}}},{id:"bridge-secondary-tertiary",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["in","class","secondary","tertiary"]],layout:{"line-join":"round"},paint:{"line-color":"#fea","line-width":{base:1.2,stops:[[6.5,0],[7,.5],[20,20]]}}},{id:"bridge-trunk-primary",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["in","class","primary","trunk"]],layout:{"line-join":"round"},paint:{"line-color":"#fea","line-width":{base:1.2,stops:[[6.5,0],[7,.5],[20,18]]}}},{id:"bridge-motorway",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["==","class","motorway"]],layout:{"line-join":"round"},paint:{"line-color":"#fc8","line-width":{base:1.2,stops:[[6.5,0],[7,.5],[20,18]]},"line-opacity":.5}},{id:"bridge-railway",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["==","class","rail"]],paint:{"line-color":"#bbb","line-width":{base:1.4,stops:[[14,.4],[15,.75],[20,2]]}}},{id:"bridge-railway-hatching",type:"line",metadata:{"mapbox:group":"1444849334699.1902"},source:"openmaptiles","source-layer":"transportation",filter:["all",["==","brunnel","bridge"],["==","class","rail"]],paint:{"line-color":"#bbb","line-dasharray":[.2,8],"line-width":{base:1.4,stops:[[14.5,0],[15,3],[20,8]]}}},{id:"cablecar",type:"line",source:"openmaptiles","source-layer":"transportation",minzoom:13,filter:["==","class","cable_car"],layout:{visibility:"visible","line-cap":"round"},paint:{"line-color":"hsl(0, 0%, 70%)","line-width":{base:1,stops:[[11,1],[19,2.5]]}}},{id:"cablecar-dash",type:"line",source:"openmaptiles","source-layer":"transportation",minzoom:13,filter:["==","class","cable_car"],layout:{visibility:"visible","line-cap":"round"},paint:{"line-color":"hsl(0, 0%, 70%)","line-width":{base:1,stops:[[11,3],[19,5.5]]},"line-dasharray":[2,3]}},{id:"boundary-land-level-4",type:"line",source:"openmaptiles","source-layer":"boundary",filter:["all",[">=","admin_level",4],["<=","admin_level",8],["!=","maritime",1]],layout:{"line-join":"round"},paint:{"line-color":"#9e9cab","line-dasharray":[3,1,1,1],"line-width":{base:1.4,stops:[[4,.4],[5,1],[12,3]]},"line-opacity":.6}},{id:"boundary-land-level-2",type:"line",source:"openmaptiles","source-layer":"boundary",filter:["all",["==","admin_level",2],["!=","maritime",1],["!=","disputed",1]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"hsl(248, 7%, 66%)","line-width":{base:1,stops:[[0,.6],[4,1.4],[5,2],[12,2]]}}},{id:"boundary-land-disputed",type:"line",source:"openmaptiles","source-layer":"boundary",filter:["all",["!=","maritime",1],["==","disputed",1]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"hsl(248, 7%, 70%)","line-dasharray":[1,3],"line-width":{base:1,stops:[[0,.6],[4,1.4],[5,2],[12,8]]}}},{id:"boundary-water",type:"line",source:"openmaptiles","source-layer":"boundary",filter:["all",["in","admin_level",2,4],["==","maritime",1]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"rgba(154, 189, 214, 1)","line-width":{base:1,stops:[[0,.6],[4,1],[5,1],[12,1]]},"line-opacity":{stops:[[6,0],[10,0]]}}},{id:"waterway-name",type:"symbol",source:"openmaptiles","source-layer":"waterway",minzoom:13,filter:["all",["==","$type","LineString"],["has","name"]],layout:{"text-font":["Noto Sans Italic"],"text-size":14,"text-field":"{name:latin} {name:nonlatin}","text-max-width":5,"text-rotation-alignment":"map","symbol-placement":"line","text-letter-spacing":.2,"symbol-spacing":350},paint:{"text-color":"#74aee9","text-halo-width":1.5,"text-halo-color":"rgba(255,255,255,0.7)"}},{id:"water-name-lakeline",type:"symbol",source:"openmaptiles","source-layer":"water_name",filter:["==","$type","LineString"],layout:{"text-font":["Noto Sans Italic"],"text-size":14,"text-field":`{name:latin} {name:nonlatin}`,"text-max-width":5,"text-rotation-alignment":"map","symbol-placement":"line","symbol-spacing":350,"text-letter-spacing":.2},paint:{"text-color":"#74aee9","text-halo-width":1.5,"text-halo-color":"rgba(255,255,255,0.7)"}},{id:"water-name-ocean",type:"symbol",source:"openmaptiles","source-layer":"water_name",filter:["all",["==","$type","Point"],["==","class","ocean"]],layout:{"text-font":["Noto Sans Italic"],"text-size":14,"text-field":"{name:latin}","text-max-width":5,"text-rotation-alignment":"map","symbol-placement":"point","symbol-spacing":350,"text-letter-spacing":.2},paint:{"text-color":"#74aee9","text-halo-width":1.5,"text-halo-color":"rgba(255,255,255,0.7)"}},{id:"water-name-other",type:"symbol",source:"openmaptiles","source-layer":"water_name",filter:["all",["==","$type","Point"],["!in","class","ocean"]],layout:{"text-font":["Noto Sans Italic"],"text-size":{stops:[[0,10],[6,14]]},"text-field":`{name:latin} {name:nonlatin}`,"text-max-width":5,"text-rotation-alignment":"map","symbol-placement":"point","symbol-spacing":350,"text-letter-spacing":.2,visibility:"visible"},paint:{"text-color":"#74aee9","text-halo-width":1.5,"text-halo-color":"rgba(255,255,255,0.7)"}},{id:"poi-level-3",type:"symbol",source:"openmaptiles","source-layer":"poi",minzoom:16,filter:["all",["==","$type","Point"],[">=","rank",25]],layout:{"text-padding":2,"text-font":["Noto Sans Regular"],"text-anchor":"top","icon-image":"{class}_11","text-field":`{name:latin} {name:nonlatin}`,"text-offset":[0,.6],"text-size":12,"text-max-width":9},paint:{"text-halo-blur":.5,"text-color":"#666","text-halo-width":1,"text-halo-color":"#ffffff"}},{id:"poi-level-2",type:"symbol",source:"openmaptiles","source-layer":"poi",minzoom:15,filter:["all",["==","$type","Point"],["<=","rank",24],[">=","rank",15]],layout:{"text-padding":2,"text-font":["Noto Sans Regular"],"text-anchor":"top","icon-image":"{class}_11","text-field":`{name:latin} @@ -2719,10 +2719,10 @@ void main() { {name:nonlatin}`,"text-max-width":8,visibility:"visible"},paint:{"text-color":"rgba(255, 255, 255, 1)","text-halo-width":1.2,"text-halo-color":"rgba(10, 9, 9, 0.8)"}},{id:"place-town",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",filter:["==","class","town"],layout:{"text-font":["Noto Sans Regular"],"text-size":{base:1.2,stops:[[10,14],[15,24]]},"text-field":`{name:latin} {name:nonlatin}`,"text-max-width":8,visibility:"visible"},paint:{"text-color":"rgba(255, 255, 255, 1)","text-halo-width":1.2,"text-halo-color":"rgba(22, 22, 22, 0.8)"}},{id:"place-city",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",filter:["all",["!=","capital",2],["==","class","city"]],layout:{"text-font":["Noto Sans Regular"],"text-size":{base:1.2,stops:[[7,14],[11,24]]},"text-field":`{name:latin} {name:nonlatin}`,"text-max-width":8,visibility:"visible"},paint:{"text-color":"rgba(0, 0, 0, 1)","text-halo-width":1.2,"text-halo-color":"rgba(255,255,255,0.8)"}},{id:"place-city-capital",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",filter:["all",["==","capital",2],["==","class","city"]],layout:{"text-font":["Noto Sans Regular"],"text-size":{base:1.2,stops:[[7,14],[11,24]]},"text-field":`{name:latin} -{name:nonlatin}`,"text-max-width":8,"icon-image":"star_11","text-offset":[.4,0],"icon-size":.8,"text-anchor":"left",visibility:"visible"},paint:{"text-color":"#333","text-halo-width":1.2,"text-halo-color":"rgba(255,255,255,0.8)"}},{id:"place-country-other",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",filter:["all",["==","class","country"],[">=","rank",3],["!has","iso_a2"]],layout:{"text-font":["Noto Sans Italic"],"text-field":"{name:latin}","text-size":{stops:[[3,11],[7,17]]},"text-transform":"uppercase","text-max-width":6.25,visibility:"visible"},paint:{"text-halo-blur":1,"text-color":"#334","text-halo-width":2,"text-halo-color":"rgba(255,255,255,0.8)"}},{id:"place-country-3",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",filter:["all",["==","class","country"],[">=","rank",3],["has","iso_a2"]],layout:{"text-font":["Noto Sans Bold"],"text-field":"{name:latin}","text-size":{stops:[[3,11],[7,17]]},"text-transform":"uppercase","text-max-width":6.25,visibility:"visible"},paint:{"text-halo-blur":1,"text-color":"#334","text-halo-width":2,"text-halo-color":"rgba(255,255,255,0.8)"}},{id:"place-country-2",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",filter:["all",["==","class","country"],["==","rank",2],["has","iso_a2"]],layout:{"text-font":["Noto Sans Bold"],"text-field":"{name:latin}","text-size":{stops:[[2,11],[5,17]]},"text-transform":"uppercase","text-max-width":6.25,visibility:"visible"},paint:{"text-halo-blur":1,"text-color":"#334","text-halo-width":2,"text-halo-color":"rgba(255,255,255,0.8)"}},{id:"place-country-1",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",filter:["all",["==","class","country"],["==","rank",1],["has","iso_a2"]],layout:{"text-font":["Noto Sans Bold"],"text-field":"{name:latin}","text-size":{stops:[[1,11],[4,17]]},"text-transform":"uppercase","text-max-width":6.25,visibility:"visible"},paint:{"text-halo-blur":1,"text-color":"#334","text-halo-width":2,"text-halo-color":"rgba(255,255,255,0.8)"}},{id:"place-continent",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",maxzoom:1,filter:["==","class","continent"],layout:{"text-font":["Noto Sans Bold"],"text-field":"{name:latin}","text-size":14,"text-max-width":6.25,"text-transform":"uppercase",visibility:"visible"},paint:{"text-halo-blur":1,"text-color":"#334","text-halo-width":2,"text-halo-color":"rgba(255,255,255,0.8)"}}],id:"qebnlkra6"}});var VJe=W((jti,UJe)=>{"use strict";UJe.exports={version:8,name:"orto",metadata:{},center:[1.537786,41.837539],zoom:12,bearing:0,pitch:0,light:{anchor:"viewport",color:"white",intensity:.4,position:[1.15,45,30]},sources:{ortoEsri:{type:"raster",tiles:["https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}"],tileSize:256,maxzoom:18,attribution:"ESRI © ESRI"},ortoInstaMaps:{type:"raster",tiles:["https://tilemaps.icgc.cat/mapfactory/wmts/orto_8_12/CAT3857/{z}/{x}/{y}.png"],tileSize:256,maxzoom:13},ortoICGC:{type:"raster",tiles:["https://geoserveis.icgc.cat/icc_mapesmultibase/noutm/wmts/orto/GRID3857/{z}/{x}/{y}.jpeg"],tileSize:256,minzoom:13.1,maxzoom:20},openmaptiles:{type:"vector",url:"https://geoserveis.icgc.cat/contextmaps/basemap.json"}},sprite:"https://geoserveis.icgc.cat/contextmaps/sprites/sprite@1",glyphs:"https://geoserveis.icgc.cat/contextmaps/glyphs/{fontstack}/{range}.pbf",layers:[{id:"background",type:"background",paint:{"background-color":"#F4F9F4"}},{id:"ortoEsri",type:"raster",source:"ortoEsri",maxzoom:16,layout:{visibility:"visible"}},{id:"ortoICGC",type:"raster",source:"ortoICGC",minzoom:13.1,maxzoom:19,layout:{visibility:"visible"}},{id:"ortoInstaMaps",type:"raster",source:"ortoInstaMaps",maxzoom:13,layout:{visibility:"visible"}}]}});var J2=W(($ti,WJe)=>{"use strict";var vmr=(Jx(),Pt(Kx)).default,gmr=NJe(),mmr=VJe(),ymr='\xA9 OpenStreetMap contributors',GJe="https://basemaps.cartocdn.com/gl/positron-gl-style/style.json",HJe="https://basemaps.cartocdn.com/gl/dark-matter-gl-style/style.json",Nz="https://basemaps.cartocdn.com/gl/voyager-gl-style/style.json",xmr="https://basemaps.cartocdn.com/gl/positron-nolabels-gl-style/style.json",bmr="https://basemaps.cartocdn.com/gl/dark-matter-nolabels-gl-style/style.json",_mr="https://basemaps.cartocdn.com/gl/voyager-nolabels-gl-style/style.json",$Je={basic:Nz,streets:Nz,outdoors:Nz,light:GJe,dark:HJe,satellite:mmr,"satellite-streets":gmr,"open-street-map":{id:"osm",version:8,sources:{"plotly-osm-tiles":{type:"raster",attribution:ymr,tiles:["https://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":GJe,"carto-darkmatter":HJe,"carto-voyager":Nz,"carto-positron-nolabels":xmr,"carto-darkmatter-nolabels":bmr,"carto-voyager-nolabels":_mr},jJe=vmr($Je);WJe.exports={styleValueDflt:"basic",stylesMap:$Je,styleValuesMap:jJe,traceLayerPrefix:"plotly-trace-layer-",layoutLayerPrefix:"plotly-layout-layer-",missingStyleErrorMsg:["No valid maplibre style found, please set `map.style` to one of:",jJe.join(", "),"or use a tile service."].join(` -`),mapOnErrorMsg:"Map error.",fitBoundsPadding:20}});var yk=W((Wti,JJe)=>{"use strict";var YJe=it(),XJe=ai().defaultLine,wmr=fs().attributes,Tmr=jo(),Amr=Hs().textposition,Mmr=cs().overrideAll,Smr=Ia().templatedArray,ZJe=J2(),KJe=Tmr({noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0});KJe.family.dflt="Open Sans Regular, Arial Unicode MS Regular";var Emr=JJe.exports=Mmr({_arrayAttrRegexps:[YJe.counterRegex("map",".layers",!0)],domain:wmr({name:"map"}),style:{valType:"any",values:ZJe.styleValuesMap,dflt:ZJe.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},fitbounds:{valType:"enumerated",values:[!1,"locations"],dflt:"locations"},bounds:{west:{valType:"number"},east:{valType:"number"},south:{valType:"number"},north:{valType:"number"}},layers:Smr("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:XJe},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:XJe}},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:KJe,textposition:YJe.extendFlat({},Amr,{arrayOk:!1})}})},"plot","from-root");Emr.uirevision={valType:"any",editType:"none"}});var Uz=W((Yti,rQe)=>{"use strict";var{hovertemplateAttrs:kmr,texttemplateAttrs:Cmr,templatefallbackAttrs:QJe}=$a(),Dmr=M1(),xk=$4(),g6=Hs(),eQe=yk(),Fmr=Ka(),Lmr=Fo(),$_=nn().extendFlat,Pmr=cs().overrideAll,Imr=yk(),tQe=xk.line,m6=xk.marker;rQe.exports=Pmr({lon:xk.lon,lat:xk.lat,cluster:{enabled:{valType:"boolean"},maxzoom:$_({},Imr.layers.maxzoom,{}),step:{valType:"number",arrayOk:!0,dflt:-1,min:-1},size:{valType:"number",arrayOk:!0,dflt:20,min:0},color:{valType:"color",arrayOk:!0},opacity:$_({},m6.opacity,{dflt:1})},mode:$_({},g6.mode,{dflt:"markers"}),text:$_({},g6.text,{}),texttemplate:Cmr({editType:"plot"},{keys:["lat","lon","text"]}),texttemplatefallback:QJe({editType:"plot"}),hovertext:$_({},g6.hovertext,{}),line:{color:tQe.color,width:tQe.width},connectgaps:g6.connectgaps,marker:$_({symbol:{valType:"string",dflt:"circle",arrayOk:!0},angle:{valType:"number",dflt:"auto",arrayOk:!0},allowoverlap:{valType:"boolean",dflt:!1},opacity:m6.opacity,size:m6.size,sizeref:m6.sizeref,sizemin:m6.sizemin,sizemode:m6.sizemode},Lmr("marker")),fill:xk.fill,fillcolor:Dmr(),textfont:eQe.layers.symbol.textfont,textposition:eQe.layers.symbol.textposition,below:{valType:"string"},selected:{marker:g6.selected.marker},unselected:{marker:g6.unselected.marker},hoverinfo:$_({},Fmr.hoverinfo,{flags:["lon","lat","text","name"]}),hovertemplate:kmr(),hovertemplatefallback:QJe()},"calc","nested")});var mre={};Kn(mre,{isSupportedFont:()=>zmr});function zmr(e){return Rmr.indexOf(e)!==-1}var Rmr,yre=Ci(()=>{"use strict";Rmr=["Metropolis Black Italic","Metropolis Black","Metropolis Bold Italic","Metropolis Bold","Metropolis Extra Bold Italic","Metropolis Extra Bold","Metropolis Extra Light Italic","Metropolis Extra Light","Metropolis Light Italic","Metropolis Light","Metropolis Medium Italic","Metropolis Medium","Metropolis Regular Italic","Metropolis Regular","Metropolis Semi Bold Italic","Metropolis Semi Bold","Metropolis Thin Italic","Metropolis Thin","Open Sans Bold Italic","Open Sans Bold","Open Sans Extrabold Italic","Open Sans Extrabold","Open Sans Italic","Open Sans Light Italic","Open Sans Light","Open Sans Regular","Open Sans Semibold Italic","Open Sans Semibold","Klokantech Noto Sans Bold","Klokantech Noto Sans CJK Bold","Klokantech Noto Sans CJK Regular","Klokantech Noto Sans Italic","Klokantech Noto Sans Regular"]});var aQe=W((Xti,nQe)=>{"use strict";var bk=it(),xre=Wo(),Bmr=Cd(),qmr=Kp(),Omr=Jp(),Nmr=E1(),iQe=Uz(),Umr=(yre(),Pt(mre)).isSupportedFont;nQe.exports=function(t,r,i,n){function a(g,w){return bk.coerce(t,r,iQe,g,w)}function o(g,w){return bk.coerce2(t,r,iQe,g,w)}var s=Vmr(t,r,a);if(!s){r.visible=!1;return}if(a("text"),a("texttemplate"),a("texttemplatefallback"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback"),a("mode"),a("below"),xre.hasMarkers(r)){Bmr(t,r,i,n,a,{noLine:!0,noAngle:!0}),a("marker.allowoverlap"),a("marker.angle");var l=r.marker;l.symbol!=="circle"&&(bk.isArrayOrTypedArray(l.size)&&(l.size=l.size[0]),bk.isArrayOrTypedArray(l.color)&&(l.color=l.color[0]))}xre.hasLines(r)&&(qmr(t,r,i,n,a,{noDash:!0}),a("connectgaps"));var u=o("cluster.maxzoom"),c=o("cluster.step"),f=o("cluster.color",r.marker&&r.marker.color||i),h=o("cluster.size"),p=o("cluster.opacity"),d=u!==!1||c!==!1||f!==!1||h!==!1||p!==!1,v=a("cluster.enabled",d);if(v||xre.hasText(r)){var m=n.font.family;Omr(t,r,n,a,{noSelect:!0,noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0,font:{family:Umr(m)?m:"Open Sans Regular",weight:n.font.weight,style:n.font.style,size:n.font.size,color:n.font.color}})}a("fill"),r.fill!=="none"&&Nmr(t,r,i,a),bk.coerceSelectionMarkerOpacity(r,a)};function Vmr(e,t,r){var i=r("lon")||[],n=r("lat")||[],a=Math.min(i.length,n.length);return t._length=a,a}});var bre=W((Zti,sQe)=>{"use strict";var oQe=Wi();sQe.exports=function(t,r,i){var n={},a=i[r.subplot]._subplot,o=a.mockAxis,s=t.lonlat;return n.lonLabel=oQe.tickText(o,o.c2l(s[0]),!0).text,n.latLabel=oQe.tickText(o,o.c2l(s[1]),!0).text,n}});var _re=W((Kti,uQe)=>{"use strict";var lQe=it();uQe.exports=function(t,r){var i=t.split(" "),n=i[0],a=i[1],o=lQe.isArrayOrTypedArray(r)?lQe.mean(r):r,s=.5+o/100,l=1.5+o/100,u=["",""],c=[0,0];switch(n){case"top":u[0]="top",c[1]=-l;break;case"bottom":u[0]="bottom",c[1]=l;break}switch(a){case"left":u[1]="right",c[0]=-s;break;case"right":u[1]="left",c[0]=s;break}var f;return u[0]&&u[1]?f=u.join("-"):u[0]?f=u[0]:u[1]?f=u[1]:f="center",{anchor:f,offset:c}}});var vQe=W((Jti,pQe)=>{"use strict";var hQe=un(),Rc=it(),Gmr=(ta(),Pt(ra)).BADNUM,Gz=LE(),cQe=es(),Hmr=en(),jmr=AA(),Hz=Wo(),$mr=(yre(),Pt(mre)).isSupportedFont,Wmr=_re(),Ymr=rh().appendArrayPointValue,Xmr=ho().NEWLINES,Zmr=ho().BR_TAG_ALL;pQe.exports=function(t,r){var i=r[0].trace,n=i.visible===!0&&i._length!==0,a=i.fill!=="none",o=Hz.hasLines(i),s=Hz.hasMarkers(i),l=Hz.hasText(i),u=s&&i.marker.symbol==="circle",c=s&&i.marker.symbol!=="circle",f=i.cluster&&i.cluster.enabled,h=Vz("fill"),p=Vz("line"),d=Vz("circle"),v=Vz("symbol"),m={fill:h,line:p,circle:d,symbol:v};if(!n)return m;var g;if((a||o)&&(g=Gz.calcTraceToLineCoords(r)),a&&(h.geojson=Gz.makePolygon(g),h.layout.visibility="visible",Rc.extendFlat(h.paint,{"fill-color":i.fillcolor})),o&&(p.geojson=Gz.makeLine(g),p.layout.visibility="visible",Rc.extendFlat(p.paint,{"line-width":i.line.width,"line-color":i.line.color,"line-opacity":i.opacity})),u){var w=Kmr(r);d.geojson=w.geojson,d.layout.visibility="visible",f&&(d.filter=["!",["has","point_count"]],m.cluster={type:"circle",filter:["has","point_count"],layout:{visibility:"visible"},paint:{"circle-color":Tre(i.cluster.color,i.cluster.step),"circle-radius":Tre(i.cluster.size,i.cluster.step),"circle-opacity":Tre(i.cluster.opacity,i.cluster.step)}},m.clusterCount={type:"symbol",filter:["has","point_count"],paint:{},layout:{"text-field":"{point_count_abbreviated}","text-font":fQe(i),"text-size":12}}),Rc.extendFlat(d.paint,{"circle-color":w.mcc,"circle-radius":w.mrc,"circle-opacity":w.mo})}if(u&&f&&(d.filter=["!",["has","point_count"]]),(c||l)&&(v.geojson=Jmr(r,t),Rc.extendFlat(v.layout,{visibility:"visible","icon-image":"{symbol}","text-field":"{text}"}),c&&(Rc.extendFlat(v.layout,{"icon-size":i.marker.size/10}),"angle"in i.marker&&i.marker.angle!=="auto"&&Rc.extendFlat(v.layout,{"icon-rotate":{type:"identity",property:"angle"},"icon-rotation-alignment":"map"}),v.layout["icon-allow-overlap"]=i.marker.allowoverlap,Rc.extendFlat(v.paint,{"icon-opacity":i.opacity*i.marker.opacity,"icon-color":i.marker.color,"icon-halo-color":i.marker.color,"icon-halo-width":2,"icon-halo-blur":1.5})),l)){var _=(i.marker||{}).size,b=Wmr(i.textposition,_);Rc.extendFlat(v.layout,{"text-size":i.textfont.size,"text-anchor":b.anchor,"text-offset":b.offset,"text-font":fQe(i)}),Rc.extendFlat(v.paint,{"text-color":i.textfont.color,"text-opacity":i.opacity})}return m};function Vz(e){return{type:e,geojson:Gz.makeBlank(),layout:{visibility:"none"},filter:null,paint:{}}}function Kmr(e){var t=e[0].trace,r=t.marker,i=t.selectedpoints,n=Rc.isArrayOrTypedArray(r.color),a=Rc.isArrayOrTypedArray(r.size),o=Rc.isArrayOrTypedArray(r.opacity),s;function l(_){return t.opacity*_}function u(_){return _/2}var c;n&&(cQe.hasColorscale(t,"marker")?c=cQe.makeColorScaleFuncFromTrace(r):c=Rc.identity);var f;a&&(f=jmr(t));var h;o&&(h=function(_){var b=hQe(_)?+Rc.constrain(_,0,1):0;return l(b)});var p=[];for(s=0;s850?s+=" Black":n>750?s+=" Extra Bold":n>650?s+=" Bold":n>550?s+=" Semi Bold":n>450?s+=" Medium":n>350?s+=" Regular":n>250?s+=" Light":n>150?s+=" Extra Light":s+=" Thin"):a.slice(0,2).join(" ")==="Open Sans"?(s="Open Sans",n>750?s+=" Extrabold":n>650?s+=" Bold":n>550?s+=" Semibold":n>350?s+=" Regular":s+=" Light"):a.slice(0,3).join(" ")==="Klokantech Noto Sans"&&(s="Klokantech Noto Sans",a[3]==="CJK"&&(s+=" CJK"),s+=n>500?" Bold":" Regular")),o&&(s+=" Italic"),s==="Open Sans Regular Italic"?s="Open Sans Italic":s==="Open Sans Regular Bold"?s="Open Sans Bold":s==="Open Sans Regular Bold Italic"?s="Open Sans Bold Italic":s==="Klokantech Noto Sans Regular Italic"&&(s="Klokantech Noto Sans Italic"),$mr(s)||(s=r);var l=s.split(", ");return l}});var xQe=W((Qti,yQe)=>{"use strict";var Qmr=it(),gQe=vQe(),y6=J2().traceLayerPrefix,Kd={cluster:["cluster","clusterCount","circle"],nonCluster:["fill","line","circle","symbol"]};function mQe(e,t,r,i){this.type="scattermap",this.subplot=e,this.uid=t,this.clusterEnabled=r,this.isHidden=i,this.sourceIds={fill:"source-"+t+"-fill",line:"source-"+t+"-line",circle:"source-"+t+"-circle",symbol:"source-"+t+"-symbol",cluster:"source-"+t+"-circle",clusterCount:"source-"+t+"-circle"},this.layerIds={fill:y6+t+"-fill",line:y6+t+"-line",circle:y6+t+"-circle",symbol:y6+t+"-symbol",cluster:y6+t+"-cluster",clusterCount:y6+t+"-cluster-count"},this.below=null}var _k=mQe.prototype;_k.addSource=function(e,t,r){var i={type:"geojson",data:t.geojson};r&&r.enabled&&Qmr.extendFlat(i,{cluster:!0,clusterMaxZoom:r.maxzoom});var n=this.subplot.map.getSource(this.sourceIds[e]);n?n.setData(t.geojson):this.subplot.map.addSource(this.sourceIds[e],i)};_k.setSourceData=function(e,t){this.subplot.map.getSource(this.sourceIds[e]).setData(t.geojson)};_k.addLayer=function(e,t,r){var i={type:t.type,id:this.layerIds[e],source:this.sourceIds[e],layout:t.layout,paint:t.paint};t.filter&&(i.filter=t.filter);for(var n=this.layerIds[e],a,o=this.subplot.getMapLayers(),s=0;s=0;S--){var x=b[S];n.removeLayer(u.layerIds[x])}_||n.removeSource(u.sourceIds.circle)}function h(_){for(var b=Kd.nonCluster,S=0;S=0;S--){var x=b[S];n.removeLayer(u.layerIds[x]),_||n.removeSource(u.sourceIds[x])}}function d(_){l?f(_):p(_)}function v(_){s?c(_):h(_)}function m(){for(var _=s?Kd.cluster:Kd.nonCluster,b=0;b<_.length;b++){var S=_[b],x=a[S];x&&(i.setOptions(u.layerIds[S],"setLayoutProperty",x.layout),x.layout.visibility==="visible"&&(S!=="cluster"&&u.setSourceData(S,x),i.setOptions(u.layerIds[S],"setPaintProperty",x.paint)))}}var g=this.isHidden,w=r.visible!==!0;w?g||d():g?w||v():l!==s?(d(),v()):(this.below!==o&&(d(!0),v(!0)),m()),this.clusterEnabled=s,this.isHidden=w,this.below=o,t[0].trace._glTrace=this};_k.dispose=function(){for(var t=this.subplot.map,r=this.clusterEnabled?Kd.cluster:Kd.nonCluster,i=r.length-1;i>=0;i--){var n=r[i];t.removeLayer(this.layerIds[n]),t.removeSource(this.sourceIds[n])}};yQe.exports=function(t,r){var i=r[0].trace,n=i.cluster&&i.cluster.enabled,a=i.visible!==!0,o=new mQe(t,i.uid,n,a),s=gQe(t.gd,r),l=o.below=t.belowLookup["trace-"+i.uid],u,c,f;if(n)for(o.addSource("circle",s.circle,i.cluster),u=0;u{"use strict";var eyr=Ls(),Are=it(),tyr=o5(),ryr=Are.fillText,iyr=(ta(),Pt(ra)).BADNUM,nyr=J2().traceLayerPrefix;function ayr(e,t,r){var i=e.cd,n=i[0].trace,a=e.xa,o=e.ya,s=e.subplot,l=[],u=nyr+n.uid+"-circle",c=n.cluster&&n.cluster.enabled;if(c){var f=s.map.queryRenderedFeatures(null,{layers:[u]});l=f.map(function(A){return A.id})}var h=t>=0?Math.floor((t+180)/360):Math.ceil((t-180)/360),p=h*360,d=t-p;function v(A){var y=A.lonlat;if(y[0]===iyr||c&&l.indexOf(A.i+1)===-1)return 1/0;var E=Are.modHalf(y[0],360),M=y[1],C=s.project([E,M]),k=C.x-a.c2p([d,M]),D=C.y-o.c2p([E,r]),L=Math.max(3,A.mrc||0);return Math.max(Math.sqrt(k*k+D*D)-L,1-3/L)}if(eyr.getClosest(i,v,e),e.index!==!1){var m=i[e.index],g=m.lonlat,w=[Are.modHalf(g[0],360)+p,g[1]],_=a.c2p(w),b=o.c2p(w),S=m.mrc||1;e.x0=_-S,e.x1=_+S,e.y0=b-S,e.y1=b+S;var x={};x[n.subplot]={_subplot:s};var T=n._module.formatLabels(m,n,x);return e.lonLabel=T.lonLabel,e.latLabel=T.latLabel,e.color=tyr(n,m),e.extraText=bQe(n,m,i[0].t.labels),e.hovertemplate=n.hovertemplate,[e]}}function bQe(e,t,r){if(e.hovertemplate)return;var i=t.hi||e.hoverinfo,n=i.split("+"),a=n.indexOf("all")!==-1,o=n.indexOf("lon")!==-1,s=n.indexOf("lat")!==-1,l=t.lonlat,u=[];function c(f){return f+"\xB0"}return a||o&&s?u.push("("+c(l[1])+", "+c(l[0])+")"):o?u.push(r.lon+c(l[0])):s&&u.push(r.lat+c(l[1])),(a||n.indexOf("text")!==-1)&&ryr(t,e,u),u.join("
")}_Qe.exports={hoverPoints:ayr,getExtraText:bQe}});var TQe=W((tri,wQe)=>{"use strict";wQe.exports=function(t,r){return t.lon=r.lon,t.lat=r.lat,t}});var MQe=W((rri,AQe)=>{"use strict";var oyr=it(),syr=Wo(),{BADNUM:lyr}=(ta(),Pt(ra)),Wz=360,Mre=.001,Yz=(e,t,r,i)=>[e.c2p([r,i]),t.c2p([r,i])];function uyr(e,t,r,i,n){let a=Yz(e,t,r+Wz,i),o=Yz(e,t,r-Wz,i),s=a[0]-n[0],l=a[1]-n[1],u=Math.abs(s-(n[0]-o[0])){if(Math.abs(o)n?null:[Math.floor(i)-1,Math.ceil(n)+1]}AQe.exports=function(t,r){var c;let{cd:i,xaxis:n,yaxis:a}=t,{trace:o}=i[0];if(!syr.hasMarkers(o))return[];if(r===!1){for(let f of i)f.selected=0;return[]}let s=(c=n._subplot)==null?void 0:c.map,l=!!(s!=null&&s.getRenderWorldCopies())&&r.xmax>r.xmin,u=[];for(let f=0;f=1)return 1;let h=c;for(let v=0;v<8;v++){let m=((o*h+a)*h+n)*h-c;if(Math.abs(m)m?p=h:d=h,h=(p+d)*.5}return((u*h+l)*h+s)*h}}function RB(){return wk!=null||(wk=typeof OffscreenCanvas<"u"&&!!new OffscreenCanvas(1,1).getContext("2d")&&typeof createImageBitmap=="function"),wk}function rne(){if(Xz==null&&(Xz=!1,RB())){let e=new OffscreenCanvas(5,5).getContext("2d",{willReadFrequently:!0});if(e){for(let r=0;r<25;r++){let i=r*4;e.fillStyle=`rgb(${i},${i+1},${i+2})`,e.fillRect(r%5,Math.floor(r/5),1,1)}let t=e.getImageData(0,0,5,5).data;for(let r=0;r<100;r++)if(r%4!=3&&t[r]!==r){Xz=!0;break}}}return Xz||!1}function ine(){var e=new $u(9);return $u!=Float32Array&&(e[1]=0,e[2]=0,e[3]=0,e[5]=0,e[6]=0,e[7]=0),e[0]=1,e[4]=1,e[8]=1,e}function yyr(e){var t=e[0],r=e[1],i=e[2],n=e[3],a=e[4],o=e[5],s=e[6],l=e[7],u=e[8];return t*(u*a-o*l)+r*(-u*n+o*s)+i*(l*n-a*s)}function xtt(e,t){var r=Math.sin(t),i=Math.cos(t);return e[0]=i,e[1]=r,e[2]=0,e[3]=-r,e[4]=i,e[5]=0,e[6]=0,e[7]=0,e[8]=1,e}function xyr(e,t){var r=t[0],i=t[1],n=t[2],a=t[3],o=r+r,s=i+i,l=n+n,u=r*o,c=i*o,f=i*s,h=n*o,p=n*s,d=n*l,v=a*o,m=a*s,g=a*l;return e[0]=1-f-d,e[3]=c-g,e[6]=h+m,e[1]=c+g,e[4]=1-u-d,e[7]=p-v,e[2]=h-m,e[5]=p+v,e[8]=1-u-f,e}function Rm(){var e=new $u(16);return $u!=Float32Array&&(e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[11]=0,e[12]=0,e[13]=0,e[14]=0),e[0]=1,e[5]=1,e[10]=1,e[15]=1,e}function zB(e){var t=new $u(16);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}function btt(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}function op(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}function lC(e,t){var r=t[0],i=t[1],n=t[2],a=t[3],o=t[4],s=t[5],l=t[6],u=t[7],c=t[8],f=t[9],h=t[10],p=t[11],d=t[12],v=t[13],m=t[14],g=t[15],w=r*s-i*o,_=r*l-n*o,b=r*u-a*o,S=i*l-n*s,x=i*u-a*s,T=n*u-a*l,A=c*v-f*d,y=c*m-h*d,E=c*g-p*d,M=f*m-h*v,C=f*g-p*v,k=h*g-p*m,D=w*k-_*C+b*M+S*E-x*y+T*A;return D?(D=1/D,e[0]=(s*k-l*C+u*M)*D,e[1]=(n*C-i*k-a*M)*D,e[2]=(v*T-m*x+g*S)*D,e[3]=(h*x-f*T-p*S)*D,e[4]=(l*E-o*k-u*y)*D,e[5]=(r*k-n*E+a*y)*D,e[6]=(m*b-d*T-g*_)*D,e[7]=(c*T-h*b+p*_)*D,e[8]=(o*C-s*E+u*A)*D,e[9]=(i*E-r*C-a*A)*D,e[10]=(d*x-v*b+g*w)*D,e[11]=(f*b-c*x-p*w)*D,e[12]=(s*y-o*M-l*A)*D,e[13]=(r*M-i*y+n*A)*D,e[14]=(v*_-d*S-m*w)*D,e[15]=(c*S-f*_+h*w)*D,e):null}function s3(e,t,r){var i=t[0],n=t[1],a=t[2],o=t[3],s=t[4],l=t[5],u=t[6],c=t[7],f=t[8],h=t[9],p=t[10],d=t[11],v=t[12],m=t[13],g=t[14],w=t[15],_=r[0],b=r[1],S=r[2],x=r[3];return e[0]=_*i+b*s+S*f+x*v,e[1]=_*n+b*l+S*h+x*m,e[2]=_*a+b*u+S*p+x*g,e[3]=_*o+b*c+S*d+x*w,_=r[4],b=r[5],S=r[6],x=r[7],e[4]=_*i+b*s+S*f+x*v,e[5]=_*n+b*l+S*h+x*m,e[6]=_*a+b*u+S*p+x*g,e[7]=_*o+b*c+S*d+x*w,_=r[8],b=r[9],S=r[10],x=r[11],e[8]=_*i+b*s+S*f+x*v,e[9]=_*n+b*l+S*h+x*m,e[10]=_*a+b*u+S*p+x*g,e[11]=_*o+b*c+S*d+x*w,_=r[12],b=r[13],S=r[14],x=r[15],e[12]=_*i+b*s+S*f+x*v,e[13]=_*n+b*l+S*h+x*m,e[14]=_*a+b*u+S*p+x*g,e[15]=_*o+b*c+S*d+x*w,e}function ou(e,t,r){var i=r[0],n=r[1],a=r[2],o,s,l,u,c,f,h,p,d,v,m,g;return t===e?(e[12]=t[0]*i+t[4]*n+t[8]*a+t[12],e[13]=t[1]*i+t[5]*n+t[9]*a+t[13],e[14]=t[2]*i+t[6]*n+t[10]*a+t[14],e[15]=t[3]*i+t[7]*n+t[11]*a+t[15]):(o=t[0],s=t[1],l=t[2],u=t[3],c=t[4],f=t[5],h=t[6],p=t[7],d=t[8],v=t[9],m=t[10],g=t[11],e[0]=o,e[1]=s,e[2]=l,e[3]=u,e[4]=c,e[5]=f,e[6]=h,e[7]=p,e[8]=d,e[9]=v,e[10]=m,e[11]=g,e[12]=o*i+c*n+d*a+t[12],e[13]=s*i+f*n+v*a+t[13],e[14]=l*i+h*n+m*a+t[14],e[15]=u*i+p*n+g*a+t[15]),e}function Oc(e,t,r){var i=r[0],n=r[1],a=r[2];return e[0]=t[0]*i,e[1]=t[1]*i,e[2]=t[2]*i,e[3]=t[3]*i,e[4]=t[4]*n,e[5]=t[5]*n,e[6]=t[6]*n,e[7]=t[7]*n,e[8]=t[8]*a,e[9]=t[9]*a,e[10]=t[10]*a,e[11]=t[11]*a,e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}function l3(e,t,r){var i=Math.sin(r),n=Math.cos(r),a=t[4],o=t[5],s=t[6],l=t[7],u=t[8],c=t[9],f=t[10],h=t[11];return t!==e&&(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[4]=a*n+u*i,e[5]=o*n+c*i,e[6]=s*n+f*i,e[7]=l*n+h*i,e[8]=u*n-a*i,e[9]=c*n-o*i,e[10]=f*n-s*i,e[11]=h*n-l*i,e}function nne(e,t,r){var i=Math.sin(r),n=Math.cos(r),a=t[0],o=t[1],s=t[2],l=t[3],u=t[8],c=t[9],f=t[10],h=t[11];return t!==e&&(e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=a*n-u*i,e[1]=o*n-c*i,e[2]=s*n-f*i,e[3]=l*n-h*i,e[8]=a*i+u*n,e[9]=o*i+c*n,e[10]=s*i+f*n,e[11]=l*i+h*n,e}function zm(e,t,r){var i=Math.sin(r),n=Math.cos(r),a=t[0],o=t[1],s=t[2],l=t[3],u=t[4],c=t[5],f=t[6],h=t[7];return t!==e&&(e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=a*n+u*i,e[1]=o*n+c*i,e[2]=s*n+f*i,e[3]=l*n+h*i,e[4]=u*n-a*i,e[5]=c*n-o*i,e[6]=f*n-s*i,e[7]=h*n-l*i,e}function _tt(e,t){return e[0]=t[0],e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=t[1],e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=t[2],e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}function byr(e,t,r,i,n){var a=1/Math.tan(t/2);if(e[0]=a/r,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=a,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[11]=-1,e[12]=0,e[13]=0,e[15]=0,n!=null&&n!==1/0){var o=1/(i-n);e[10]=(n+i)*o,e[14]=2*n*i*o}else e[10]=-1,e[14]=-2*i;return e}function _yr(e,t,r,i,n,a,o){var s=1/(t-r),l=1/(i-n),u=1/(a-o);return e[0]=-2*s,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*l,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*u,e[11]=0,e[12]=(t+r)*s,e[13]=(n+i)*l,e[14]=(o+a)*u,e[15]=1,e}function wtt(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]&&e[3]===t[3]&&e[4]===t[4]&&e[5]===t[5]&&e[6]===t[6]&&e[7]===t[7]&&e[8]===t[8]&&e[9]===t[9]&&e[10]===t[10]&&e[11]===t[11]&&e[12]===t[12]&&e[13]===t[13]&&e[14]===t[14]&&e[15]===t[15]}function Ttt(e,t){var r=e[0],i=e[1],n=e[2],a=e[3],o=e[4],s=e[5],l=e[6],u=e[7],c=e[8],f=e[9],h=e[10],p=e[11],d=e[12],v=e[13],m=e[14],g=e[15],w=t[0],_=t[1],b=t[2],S=t[3],x=t[4],T=t[5],A=t[6],y=t[7],E=t[8],M=t[9],C=t[10],k=t[11],D=t[12],L=t[13],P=t[14],R=t[15];return Math.abs(r-w)<=1e-6*Math.max(1,Math.abs(r),Math.abs(w))&&Math.abs(i-_)<=1e-6*Math.max(1,Math.abs(i),Math.abs(_))&&Math.abs(n-b)<=1e-6*Math.max(1,Math.abs(n),Math.abs(b))&&Math.abs(a-S)<=1e-6*Math.max(1,Math.abs(a),Math.abs(S))&&Math.abs(o-x)<=1e-6*Math.max(1,Math.abs(o),Math.abs(x))&&Math.abs(s-T)<=1e-6*Math.max(1,Math.abs(s),Math.abs(T))&&Math.abs(l-A)<=1e-6*Math.max(1,Math.abs(l),Math.abs(A))&&Math.abs(u-y)<=1e-6*Math.max(1,Math.abs(u),Math.abs(y))&&Math.abs(c-E)<=1e-6*Math.max(1,Math.abs(c),Math.abs(E))&&Math.abs(f-M)<=1e-6*Math.max(1,Math.abs(f),Math.abs(M))&&Math.abs(h-C)<=1e-6*Math.max(1,Math.abs(h),Math.abs(C))&&Math.abs(p-k)<=1e-6*Math.max(1,Math.abs(p),Math.abs(k))&&Math.abs(d-D)<=1e-6*Math.max(1,Math.abs(d),Math.abs(D))&&Math.abs(v-L)<=1e-6*Math.max(1,Math.abs(v),Math.abs(L))&&Math.abs(m-P)<=1e-6*Math.max(1,Math.abs(m),Math.abs(P))&&Math.abs(g-R)<=1e-6*Math.max(1,Math.abs(g),Math.abs(R))}function Att(){var e=new $u(3);return $u!=Float32Array&&(e[0]=0,e[1]=0,e[2]=0),e}function qB(e){var t=new $u(3);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function sp(e){var t=e[0],r=e[1],i=e[2];return Math.sqrt(t*t+r*r+i*i)}function SQe(e,t,r){var i=new $u(3);return i[0]=e,i[1]=t,i[2]=r,i}function G0(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e[2]=t[2]+r[2],e}function OB(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e[2]=t[2]-r[2],e}function zs(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e[2]=t[2]*r,e}function uC(e,t,r,i){return e[0]=t[0]+r[0]*i,e[1]=t[1]+r[1]*i,e[2]=t[2]+r[2]*i,e}function Mtt(e,t){var r=t[0]-e[0],i=t[1]-e[1],n=t[2]-e[2];return Math.sqrt(r*r+i*i+n*n)}function Stt(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e}function qf(e,t){var r=t[0],i=t[1],n=t[2],a=r*r+i*i+n*n;return a>0&&(a=1/Math.sqrt(a)),e[0]=t[0]*a,e[1]=t[1]*a,e[2]=t[2]*a,e}function su(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function dh(e,t,r){var i=t[0],n=t[1],a=t[2],o=r[0],s=r[1],l=r[2];return e[0]=n*l-a*s,e[1]=a*o-i*l,e[2]=i*s-n*o,e}function Ett(e,t,r){var i=t[0],n=t[1],a=t[2],o=r[3]*i+r[7]*n+r[11]*a+r[15];return o||(o=1),e[0]=(r[0]*i+r[4]*n+r[8]*a+r[12])/o,e[1]=(r[1]*i+r[5]*n+r[9]*a+r[13])/o,e[2]=(r[2]*i+r[6]*n+r[10]*a+r[14])/o,e}function ktt(e,t,r){var i=t[0],n=t[1],a=t[2];return e[0]=i*r[0]+n*r[3]+a*r[6],e[1]=i*r[1]+n*r[4]+a*r[7],e[2]=i*r[2]+n*r[5]+a*r[8],e}function NB(e,t,r){var i=r[0],n=r[1],a=r[2],o=r[3],s=t[0],l=t[1],u=t[2],c=n*u-a*l,f=a*s-i*u,h=i*l-n*s;return c+=c,f+=f,h+=h,e[0]=s+o*c+n*h-a*f,e[1]=l+o*f+a*c-i*h,e[2]=u+o*h+i*f-n*c,e}function j6(e,t,r,i){var n=[],a=[];return n[0]=t[0]-r[0],n[1]=t[1]-r[1],n[2]=t[2]-r[2],a[0]=n[0],a[1]=n[1]*Math.cos(i)-n[2]*Math.sin(i),a[2]=n[1]*Math.sin(i)+n[2]*Math.cos(i),e[0]=a[0]+r[0],e[1]=a[1]+r[1],e[2]=a[2]+r[2],e}function u3(e,t,r,i){var n=[],a=[];return n[0]=t[0]-r[0],n[1]=t[1]-r[1],n[2]=t[2]-r[2],a[0]=n[2]*Math.sin(i)+n[0]*Math.cos(i),a[1]=n[1],a[2]=n[2]*Math.cos(i)-n[0]*Math.sin(i),e[0]=a[0]+r[0],e[1]=a[1]+r[1],e[2]=a[2]+r[2],e}function UB(e,t,r,i){var n=[],a=[];return n[0]=t[0]-r[0],n[1]=t[1]-r[1],n[2]=t[2]-r[2],a[0]=n[0]*Math.cos(i)-n[1]*Math.sin(i),a[1]=n[0]*Math.sin(i)+n[1]*Math.cos(i),a[2]=n[2],e[0]=a[0]+r[0],e[1]=a[1]+r[1],e[2]=a[2]+r[2],e}function Ctt(e){return e[0]=0,e[1]=0,e[2]=0,e}function wyr(){var e=new $u(4);return $u!=Float32Array&&(e[0]=0,e[1]=0,e[2]=0,e[3]=0),e}function Tyr(e,t,r,i){var n=new $u(4);return n[0]=e,n[1]=t,n[2]=r,n[3]=i,n}function Ayr(e,t,r){return e[0]=t[0]*r[0],e[1]=t[1]*r[1],e[2]=t[2]*r[2],e[3]=t[3]*r[3],e}function Dtt(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e[2]=t[2]*r,e[3]=t[3]*r,e}function Myr(e,t){var r=t[0],i=t[1],n=t[2],a=t[3],o=r*r+i*i+n*n+a*a;return o>0&&(o=1/Math.sqrt(o)),e[0]=r*o,e[1]=i*o,e[2]=n*o,e[3]=a*o,e}function Nc(e,t,r){var i=t[0],n=t[1],a=t[2],o=t[3];return e[0]=r[0]*i+r[4]*n+r[8]*a+r[12]*o,e[1]=r[1]*i+r[5]*n+r[9]*a+r[13]*o,e[2]=r[2]*i+r[6]*n+r[10]*a+r[14]*o,e[3]=r[3]*i+r[7]*n+r[11]*a+r[15]*o,e}function EQe(){var e=new $u(4);return $u!=Float32Array&&(e[0]=0,e[1]=0,e[2]=0),e[3]=1,e}function Syr(e,t,r){r*=.5;var i=Math.sin(r);return e[0]=i*t[0],e[1]=i*t[1],e[2]=i*t[2],e[3]=Math.cos(r),e}function Ltt(e,t,r){var i=t[0],n=t[1],a=t[2],o=t[3],s=r[0],l=r[1],u=r[2],c=r[3];return e[0]=i*c+o*s+n*u-a*l,e[1]=n*c+o*l+a*s-i*u,e[2]=a*c+o*u+i*l-n*s,e[3]=o*c-i*s-n*l-a*u,e}function qk(e,t,r,i){var n=t[0],a=t[1],o=t[2],s=t[3],l=r[0],u=r[1],c=r[2],f=r[3],h,p=n*l+a*u+o*c+s*f,d,v,m;return p<0&&(p=-p,l=-l,u=-u,c=-c,f=-f),1-p>1e-6?(h=Math.acos(p),d=Math.sin(h),v=Math.sin((1-i)*h)/d,m=Math.sin(i*h)/d):(v=1-i,m=i),e[0]=v*n+m*l,e[1]=v*a+m*u,e[2]=v*o+m*c,e[3]=v*s+m*f,e}function Eyr(e,t){var r=t[0]+t[4]+t[8],i;if(r>0)i=Math.sqrt(r+1),e[3]=.5*i,i=.5/i,e[0]=(t[5]-t[7])*i,e[1]=(t[6]-t[2])*i,e[2]=(t[1]-t[3])*i;else{var n=0;t[4]>t[0]&&(n=1),t[8]>t[n*3+n]&&(n=2);var a=(n+1)%3,o=(n+2)%3;i=Math.sqrt(t[n*3+n]-t[a*3+a]-t[o*3+o]+1),e[n]=.5*i,i=.5/i,e[3]=(t[a*3+o]-t[o*3+a])*i,e[a]=(t[a*3+n]+t[n*3+a])*i,e[o]=(t[o*3+n]+t[n*3+o])*i}return e}function VB(e,t,r,i){var n=arguments.length>4&&arguments[4]!==void 0?arguments[4]:"zyx",a=Math.PI/360;t*=a,i*=a,r*=a;var o=Math.sin(t),s=Math.cos(t),l=Math.sin(r),u=Math.cos(r),c=Math.sin(i),f=Math.cos(i);switch(n){case"xyz":e[0]=o*u*f+s*l*c,e[1]=s*l*f-o*u*c,e[2]=s*u*c+o*l*f,e[3]=s*u*f-o*l*c;break;case"xzy":e[0]=o*u*f-s*l*c,e[1]=s*l*f-o*u*c,e[2]=s*u*c+o*l*f,e[3]=s*u*f+o*l*c;break;case"yxz":e[0]=o*u*f+s*l*c,e[1]=s*l*f-o*u*c,e[2]=s*u*c-o*l*f,e[3]=s*u*f+o*l*c;break;case"yzx":e[0]=o*u*f+s*l*c,e[1]=s*l*f+o*u*c,e[2]=s*u*c-o*l*f,e[3]=s*u*f-o*l*c;break;case"zxy":e[0]=o*u*f-s*l*c,e[1]=s*l*f+o*u*c,e[2]=s*u*c+o*l*f,e[3]=s*u*f-o*l*c;break;case"zyx":e[0]=o*u*f-s*l*c,e[1]=s*l*f+o*u*c,e[2]=s*u*c-o*l*f,e[3]=s*u*f+o*l*c;break;default:throw Error("Unknown angle order "+n)}return e}function GB(){var e=new $u(2);return $u!=Float32Array&&(e[0]=0,e[1]=0),e}function CQe(e,t){var r=new $u(2);return r[0]=e,r[1]=t,r}function one(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e}function sne(e){var t=e[0],r=e[1];return Math.sqrt(t*t+r*r)}function kyr(e){var t=e[0],r=e[1];return t*t+r*r}function Cyr(e,t){return e[0]*t[0]+e[1]*t[1]}function lne(e){return e[0]=0,e[1]=0,e}function Qh(e,t,r){return t*(Br/(e.tileSize*2**(r-e.tileID.overscaledZ)))}function qc(e){return e instanceof Error?e:Error(typeof e=="string"?e:String(e))}function fx(){return new Float64Array(4)}function So(){return new Float64Array(3)}function hx(){return new Float64Array(16)}function fC(){let e=new Float64Array(16);return op(e),e}function une(){let e=new Float32Array(16);return op(e),e}function Bm(e,t,r,i,n=!1){if(!r[0]&&!r[1])return[0,0];let a=n?i==="map"?-e.bearingInRadians:0:i==="viewport"?e.bearingInRadians:0;if(a){let o=Math.sin(a),s=Math.cos(a);r=[r[0]*s-r[1]*o,r[0]*o+r[1]*s]}return[n?r[0]:Qh(t,r[0],e.zoom),n?r[1]:Qh(t,r[1],e.zoom)]}function HB(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]+e[3]}function H0(e,t,r){let i=yyr([e[0],e[1],e[2],t[0],t[1],t[2],r[0],r[1],r[2]]);if(i===0)return null;let n=dh([],[t[0],t[1],t[2]],[r[0],r[1],r[2]]),a=dh([],[r[0],r[1],r[2]],[e[0],e[1],e[2]]),o=dh([],[e[0],e[1],e[2]],[t[0],t[1],t[2]]),s=zs([],n,-e[3]);return G0(s,s,zs([],a,-t[3])),G0(s,s,zs([],o,-r[3])),zs(s,s,1/i),s}function Itt(e,t,r){let i=e[0]*r[0]+e[1]*r[1]+e[2]*r[2],n=t[0]*r[0]+t[1]*r[1]+t[2]*r[2];return n===0?null:(-i-r[3])/n}function hC(e,t,r,i){let n=Math.sqrt(e*e+t*t),a=Math.sqrt(r*r+i*i);e/=n,t/=n,r/=a,i/=a;let o=e*r+t*i,s=Math.acos(o);return-t*r+e*i>0?s:-s}function e0(e,t){let r=lx(e,360),i=lx(t,360),n=i-r,a=i>r?n-360:n+360;return Math.abs(n)l.canonical.z)),r=1/0,i=-1/0,n=1/0,a=-1/0,o=[];for(let l of e){let{x:u,y:c,z:f}=l.canonical,h=2**(t-f),p=u*h,d=c*h;o.push({id:l,x:p,y:d}),pi&&(i=p),da&&(a=d)}let s=new Set;for(let l of o)(l.x===r||l.x===i||l.y===n||l.y===a)&&s.add(l.id);return s}function Dyr(e){if(e<=0)return 0;if(e>=1)return 1;let t=e*e,r=t*e;return 4*(e<.5?r:3*(e-t)+r-.75)}function jB(e,t,r,i){return myr(e,t,r,i)}function Qn(e,t,r){return Math.min(r,Math.max(t,e))}function j0(e,t,r){let i=r-t,n=((e-t)%i+i)%i+t;return n===t?r:n}function cn(e,...t){for(let r of t)for(let i in r)e[i]=r[i];return e}function $6(e,t){let r={};for(let i of t)i in e&&(r[i]=e[i]);return r}function cne(){return Fyr++}function Lyr(e){return Math.log(e)/Math.LN2%1==0}function Btt(e){return e<=1?1:2**Math.ceil(Math.log(e)/Math.LN2)}function Of(e){return 2**e}function Uc(e){return Math.log(e)/Math.LN2}function t0(e,t,r){if(t<=0)return e;let i=1/t;return r===void 0||Math.abs(r)<1e-10?Math.round(e*i)/i:(r>0?Math.ceil(e*i-1e-9):Math.floor(e*i+1e-10))/i}function WB(e,t,r){let i={};for(let n in e)i[n]=t.call(r||this,e[n],n,e);return i}function fne(e,t,r){let i={};for(let n in e)t.call(r||this,e[n],n,e)&&(i[n]=e[n]);return i}function Sv(e,t){if(Array.isArray(e)){if(!Array.isArray(t)||e.length!==t.length)return!1;for(let r=0;r(t.y-e.y)*(r.x-e.x)}function qtt(e,t,r,i){let n=t.y-e.y,a=t.x-e.x,o=i.y-r.y,s=i.x-r.x,l=o*a-s*n;if(l===0)return null;let u=e.y-r.y,c=e.x-r.x,f=(s*u-o*c)/l;return new tr(e.x+f*a,e.y+f*n)}function Ott([e,t,r]){return t+=90,t*=Math.PI/180,r*=Math.PI/180,[e*Math.cos(t)*Math.sin(r),e*Math.sin(t)*Math.sin(r),e*Math.cos(r)]}function i3(e){return typeof WorkerGlobalScope<"u"&&e!==void 0&&e instanceof WorkerGlobalScope}function Ntt(e){let t=/(?:^|(?:\s*\,\s*))([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g,r={};if(e.replace(t,(i,n,a,o)=>{let s=a||o;return r[n]=!s||s.toLowerCase(),""}),r["max-age"]){let i=parseInt(r["max-age"],10);isNaN(i)?delete r["max-age"]:r["max-age"]=i}return r}function Utt(e){if(Sre==null){let t=e.navigator?e.navigator.userAgent:null;Sre=!!e.safari||!!(t&&(/\b(iPad|iPhone|iPod)\b/.test(t)||t.match("Safari")&&!t.match("Chrome")))}return Sre}function dx(e){return typeof ImageBitmap<"u"&&e instanceof ImageBitmap}function Pyr(e,t,r,i,n){let a=Math.max(-t,0)*4,o=(Math.max(0,r)-r)*i*4+a,s=i*4,l=Math.max(0,t),u=Math.max(0,r),c=Math.min(e.width,t+i),f=Math.min(e.height,r+n);return{rect:{x:l,y:u,width:c-l,height:f-u},layout:[{offset:o,stride:s}]}}function Htt(e,t,r,i,n){return Yi(this,null,function*(){if(typeof VideoFrame>"u")throw Error("VideoFrame not supported");let a=new VideoFrame(e,{timestamp:0});try{let o=a==null?void 0:a.format;if(!o||!(o.startsWith("BGR")||o.startsWith("RGB")))throw Error(`Unrecognized format ${o}`);let s=o.startsWith("BGR"),l=new Uint8ClampedArray(i*n*4);if(yield a.copyTo(l,Pyr(e,t,r,i,n)),s)for(let u=0;u{e.removeEventListener(t,r,i)}}}function Bs(e){return e*Math.PI/180}function Av(e){return e/Math.PI*180}function hne(e,t){return e.roll==t.roll&&e.pitch==t.pitch&&e.bearing==t.bearing}function jtt(e){let t=new Float64Array(9);xyr(t,e);let r=Av(-Math.asin(Qn(t[2],-1,1))),i,n;return Math.hypot(t[5],t[8])<.001?(i=0,n=-Av(Math.atan2(t[3],t[4]))):(i=Av(t[5]===0&&t[8]===0?0:Math.atan2(t[5],t[8])),n=Av(t[1]===0&&t[0]===0?0:Math.atan2(t[1],t[0]))),{roll:i,pitch:r+90,bearing:n}}function dne(e,t,r){let i=CQe(t.x-r.x,t.y-r.y),n=CQe(e.x-r.x,e.y-r.y),a=i[0]*n[1]-i[1]*n[0];return Av(Math.atan2(a,Cyr(i,n)))}function pne(e,t,r){let i=new Float64Array(4);return VB(i,e,t-90,r),i}function Ytt(e,t){return $tt[t]&&"touches"in e}function Xtt(e,t){var n,a;if(!Wtt[t])return!1;let r=e,i=((a=(n=r==null?void 0:r.target)==null?void 0:n.ownerDocument)==null?void 0:a.defaultView)||window;return r instanceof i.MouseEvent||r instanceof i.WheelEvent}function Ztt(e){return $tt[e]||Wtt[e]}function qm(e){return e instanceof Error&&e.name==="AbortError"}function YB(e){if(e.aborted)throw new W6(e.reason)}function vne(e){return r0.REGISTERED_PROTOCOLS[e.substring(0,e.indexOf("://"))]}function Ktt(e,t){r0.REGISTERED_PROTOCOLS[e]=t}function Jtt(e){delete r0.REGISTERED_PROTOCOLS[e]}function XB(){var e;if(i3(self))return(e=self.worker)==null?void 0:e.referrer;if(window.location.protocol==="blob:")try{return window.parent.location.href}catch(t){}return window.location.href}function Ryr(e,t){return Yi(this,null,function*(){let r=new Request(e.url,{method:e.method||"GET",body:e.body,credentials:e.credentials,headers:e.headers,cache:e.cache,referrer:XB(),referrerPolicy:e.referrerPolicy,signal:t.signal});e.type==="json"&&!r.headers.has("Accept")&&r.headers.set("Accept","application/json");let i;try{i=yield fetch(r)}catch(o){throw qm(o)?o:new R6(0,qc(o).message,e.url,new Blob)}if(!i.ok){let o=yield i.blob();throw new R6(i.status,i.statusText,e.url,o)}let n;n=e.type==="arrayBuffer"||e.type==="image"?i.arrayBuffer():e.type==="json"?i.json():i.text();let a=yield n;return YB(t.signal),{data:a,cacheControl:i.headers.get("Cache-Control"),expires:i.headers.get("Expires"),etag:i.headers.get("ETag")}})}function zyr(e,t){return new Promise((r,i)=>{var a;let n=new XMLHttpRequest;n.open(e.method||"GET",e.url,!0),(e.type==="arrayBuffer"||e.type==="image")&&(n.responseType="arraybuffer");for(let o in e.headers)n.setRequestHeader(o,e.headers[o]);e.type==="json"&&(n.responseType="text",(a=e.headers)!=null&&a.Accept||n.setRequestHeader("Accept","application/json")),n.withCredentials=e.credentials==="include",n.onerror=()=>{i(Error(n.statusText))},n.onload=()=>{if(!t.signal.aborted)if((n.status>=200&&n.status<300||n.status===0)&&n.response!==null){let o=n.response;if(e.type==="json")try{o=JSON.parse(n.response)}catch(s){i(s);return}r({data:o,cacheControl:n.getResponseHeader("Cache-Control"),expires:n.getResponseHeader("Expires"),etag:n.getResponseHeader("ETag")})}else{let o=new Blob([n.response],{type:n.getResponseHeader("Content-Type")});i(new R6(n.status,n.statusText,e.url,o))}},t.signal.addEventListener("abort",()=>{n.abort(),i(new W6(t.signal.reason))}),n.send(e.body)})}function mne(e){if(!e||e.startsWith("data:image/"))return!0;if(e.startsWith("blob:")&&(e=e.slice(5),e.startsWith("null")))return!1;if(e.indexOf("://")<=0)return!0;let t=new URL(e),r=window.location;return t.protocol===r.protocol&&t.host===r.host}function LQe(e,t,r){var i;(i=r[e])!=null&&i.includes(t)||(r[e]||(r[e]=[]),r[e].push(t))}function Ere(e,t,r){if(r!=null&&r[e]){let i=r[e].indexOf(t);i!==-1&&r[e].splice(i,1)}}function zf(e,t){return{kind:"array",itemType:e,N:t}}function xl(e){if(e.kind==="array"){let t=xl(e.itemType);return typeof e.N=="number"?`array<${t}, ${e.N}>`:e.itemType.kind==="value"?"array":`array<${t}>`}return e.kind}function Wk(e,t){if(t.kind==="error")return null;if(e.kind==="array"){if(t.kind==="array"&&(t.N===0&&t.itemType.kind==="value"||!Wk(e.itemType,t.itemType))&&(typeof e.N!="number"||e.N===t.N))return null}else{if(e.kind===t.kind)return null;if(e.kind==="value"){for(let r of qyr)if(!Wk(r,t))return null}}return`Expected ${xl(e)} but found ${xl(t)} instead.`}function yne(e,t){return t.some(r=>r.kind===e.kind)}function e3(e,t){return t.some(r=>r==="null"?e===null:r==="array"?Array.isArray(e):r==="object"?e&&!Array.isArray(e)&&typeof e=="object":r===typeof e)}function Q2(e,t){return e.kind==="array"&&t.kind==="array"?e.itemType.kind===t.itemType.kind&&typeof e.N=="number":e.kind===t.kind}function ort(e){return e%=360,e<0&&(e+=360),e}function srt([e,t,r,i]){e=kre(e),t=kre(t),r=kre(r);let n,a,o=Cre((.2225045*e+.7168786*t+.0606169*r)/1);e===t&&t===r?n=a=o:(n=Cre((.4360747*e+.3850649*t+.1430804*r)/rrt),a=Cre((.0139322*e+.0971045*t+.7141733*r)/irt));let s=116*o-16;return[s<0?0:s,500*(n-o),200*(o-a),i]}function kre(e){return e<=.04045?e/12.92:((e+.055)/1.055)**2.4}function Cre(e){return e>.008856451679035631?e**(1/3):e/art+nrt}function lrt([e,t,r,i]){let n=(e+16)/116,a=isNaN(t)?n:n+t/500,o=isNaN(r)?n:n-r/200;return n=1*Fre(n),a=rrt*Fre(a),o=irt*Fre(o),[Dre(3.1338561*a-1.6168667*n-.4906146*o),Dre(-.9787684*a+1.9161415*n+.033454*o),Dre(.0719453*a-.2289914*n+1.4052427*o),i]}function Dre(e){return e=e<=.00304?12.92*e:1.055*e**(1/2.4)-.055,e<0?0:e>1?1:e}function Fre(e){return e>jre?e*e*e:art*(e-nrt)}function Uyr(e){let[t,r,i,n]=srt(e),a=Math.sqrt(r*r+i*i);return[Math.round(a*1e4)?ort(Math.atan2(i,r)*Nyr):NaN,a,t,n]}function Vyr([e,t,r,i]){return e=isNaN(e)?0:e*Oyr,lrt([r,Math.cos(e)*t,Math.sin(e)*t,i])}function Gyr([e,t,r,i]){e=ort(e),t/=100,r/=100;function n(a){let o=(a+e/30)%12,s=t*Math.min(r,1-r);return r-s*Math.max(-1,Math.min(o-3,9-o,1))}return[n(0),n(8),n(4),i]}function Ok(e,t){return Hyr(e,t)?e[t]:void 0}function jyr(e){if(e=e.toLowerCase().trim(),e==="transparent")return[0,0,0,0];let t=Ok($yr,e);if(t){let[i,n,a]=t;return[i/255,n/255,a/255,1]}if(e.startsWith("#")&&/^#(?:[0-9a-f]{3,4}|[0-9a-f]{6}|[0-9a-f]{8})$/.test(e)){let i=e.length<6?1:2,n=1;return[Zz(e.slice(n,n+=i)),Zz(e.slice(n,n+=i)),Zz(e.slice(n,n+=i)),Zz(e.slice(n,n+i)||"ff")]}if(e.startsWith("rgb")){let i=e.match(/^rgba?\(\s*([\de.+-]+)(%)?(?:\s+|\s*(,)\s*)([\de.+-]+)(%)?(?:\s+|\s*(,)\s*)([\de.+-]+)(%)?(?:\s*([,\/])\s*([\de.+-]+)(%)?)?\s*\)$/);if(i){let[n,a,o,s,l,u,c,f,h,p,d,v]=i,m=[s||" ",c||" ",p].join("");if(m===" "||m===" /"||m===",,"||m===",,,"){let g=[o,u,h].join(""),w=g==="%%%"?100:g===""?255:0;if(w){let _=[_6(+a/w,0,1),_6(+l/w,0,1),_6(+f/w,0,1),d?PQe(+d,v):1];if(IQe(_))return _}}return}}let r=e.match(/^hsla?\(\s*([\de.+-]+)(?:deg)?(?:\s+|\s*(,)\s*)([\de.+-]+)%(?:\s+|\s*(,)\s*)([\de.+-]+)%(?:\s*([,\/])\s*([\de.+-]+)(%)?)?\s*\)$/);if(r){let[i,n,a,o,s,l,u,c,f]=r,h=[a||" ",s||" ",u].join("");if(h===" "||h===" /"||h===",,"||h===",,,"){let p=[+n,_6(+o,0,100),_6(+l,0,100),c?PQe(+c,f):1];if(IQe(p))return Gyr(p)}}}function Zz(e){return parseInt(e.padEnd(2,e),16)/255}function PQe(e,t){return _6(t?e/100:e,0,1)}function _6(e,t,r){return Math.min(Math.max(t,e),r)}function IQe(e){return!e.some(Number.isNaN)}function ox(e,t,r){return e+r*(t-e)}function z6(e,t,r){return e.map((i,n)=>ox(i,t[n],r))}function Wyr(e){return e==="rgb"||e==="hcl"||e==="lab"}function crt(e,t,r,i){return typeof e=="number"&&e>=0&&e<=255&&typeof t=="number"&&t>=0&&t<=255&&typeof r=="number"&&r>=0&&r<=255?i===void 0||typeof i=="number"&&i>=0&&i<=1?null:`Invalid rgba value [${[e,t,r,i].join(", ")}]: 'a' must be between 0 and 1.`:`Invalid rgba value [${(typeof i=="number"?[e,t,r,i]:[e,t,r]).join(", ")}]: 'r', 'g', and 'b' must be between 0 and 255.`}function B6(e){if(e===null||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||e instanceof Om||e instanceof na||e instanceof xne||e instanceof Pm||e instanceof ug||e instanceof cg||e instanceof ip||e instanceof og||e instanceof sg)return!0;if(Array.isArray(e)){for(let t of e)if(!B6(t))return!1;return!0}if(typeof e=="object"){for(let t in e)if(!B6(e[t]))return!1;return!0}return!1}function au(e){if(e===null)return mC;if(typeof e=="string")return ha;if(typeof e=="boolean")return Ra;if(typeof e=="number")return ki;if(e instanceof na)return Mv;if(e instanceof Om)return ZB;if(e instanceof xne)return KB;if(e instanceof Pm)return yC;if(e instanceof ug)return JB;if(e instanceof cg)return QB;if(e instanceof ip)return $k;if(e instanceof og)return eq;if(e instanceof sg)return xC;if(Array.isArray(e)){let t=e.length,r;for(let i of e){let n=au(i);if(!r)r=n;else{if(r===n)continue;r=ma;break}}return zf(r||ma,t)}return Q_}function Nk(e){let t=typeof e;return e===null?"":t==="string"||t==="number"||t==="boolean"?String(e):e instanceof na||e instanceof Om||e instanceof Pm||e instanceof ug||e instanceof cg||e instanceof ip||e instanceof og||e instanceof sg?e.toString():JSON.stringify(e)}function tq(e,t,r){let i=e.length-1,n=0,a=i,o=0,s,l;for(;n<=a;)if(o=Math.floor((n+a)/2),s=e[o],l=e[o+1],s<=t){if(o===i||tt)a=o-1;else throw new sl("Input is not a number.",r);return 0}function Kyr(e,t,r,i){let n=3*e,a=3*(r-e)-n,o=1-n-a,s=3*t,l=3*(i-t)-s,u=1-s-l;return function(c,f=1e-6){if(c<=0)return 0;if(c>=1)return 1;let h=c;for(let v=0;v<8;v++){let m=((o*h+a)*h+n)*h-c;if(Math.abs(m)m?p=h:d=h,h=(p+d)*.5}return((u*h+l)*h+s)*h}}function Lre(e,t,r,i){let n=i-r,a=e-r;return n===0?0:t===1?a/n:(t**+a-1)/(t**+n-1)}function grt(e,t,r=0,i=e.length-1,n=Jyr){for(;i>r;){if(i-r>600){let l=i-r+1,u=t-r+1,c=Math.log(l),f=.5*Math.exp(2*c/3),h=.5*Math.sqrt(c*f*(l-f)/l)*(u-l/2<0?-1:1);grt(e,t,Math.max(r,Math.floor(t-u*f/l+h)),Math.min(i,Math.floor(t+(l-u)*f/l+h)),n)}let a=e[t],o=r,s=i;for(Tk(e,r,t),n(e[i],a)>0&&Tk(e,r,i);o0;)s--}n(e[r],a)===0?Tk(e,r,s):(s++,Tk(e,s,i)),s<=t&&(r=s+1),t<=s&&(i=s-1)}}function Tk(e,t,r){let i=e[t];e[t]=e[r],e[r]=i}function Jyr(e,t){return et)}function rq(e,t){if(e.length<=1)return[e];let r=[],i,n;for(let a of e){let o=e2r(a);o!==0&&(a.area=Math.abs(o),n===void 0&&(n=o<0),n===o<0?(i&&r.push(i),i=[a]):i.push(a))}if(i&&r.push(i),t>1)for(let a=0;ar}function f2r(e,t,r){return t<=r}function h2r(e,t,r){return t>=r}function krt(e,t,r,i){return i.compare(t,r)===0}function d2r(e,t,r,i){return!krt(e,t,r,i)}function p2r(e,t,r,i){return i.compare(t,r)<0}function v2r(e,t,r,i){return i.compare(t,r)>0}function g2r(e,t,r,i){return i.compare(t,r)<=0}function m2r(e,t,r,i){return i.compare(t,r)>=0}function Y6(e,t,r){let i=e!=="=="&&e!=="!=";return class Crt{constructor(a,o,s,l){this.lhs=a,this.rhs=o,this.key=s,this.collator=l,this.type=Ra,this.hasUntypedArgument=a.type.kind==="value"||o.type.kind==="value"}static parse(a,o){if(a.length!==3&&a.length!==4)return o.error("Expected two or three arguments.");let s=a[0],l=o.parse(a[1],1,ma);if(!l)return null;if(!zQe(s,l.type))return o.concat(1).error(`"${s}" comparisons are not supported for type '${xl(l.type)}'.`);let u=o.parse(a[2],2,ma);if(!u)return null;if(!zQe(s,u.type))return o.concat(2).error(`"${s}" comparisons are not supported for type '${xl(u.type)}'.`);if(l.type.kind!==u.type.kind&&l.type.kind!=="value"&&u.type.kind!=="value")return o.error(`Cannot compare types '${xl(l.type)}' and '${xl(u.type)}'.`);i&&(l.type.kind==="value"&&u.type.kind!=="value"?l=new Dm(u.type,[l],o.key):l.type.kind!=="value"&&u.type.kind==="value"&&(u=new Dm(l.type,[u],o.key)));let c=null;if(a.length===4){if(l.type.kind!=="string"&&u.type.kind!=="string"&&l.type.kind!=="value"&&u.type.kind!=="value")return o.error("Cannot use collator to compare non-string types.");if(c=o.parse(a[3],3,KB),!c)return null}return new Crt(l,u,o.key,c)}evaluate(a){let o=this.lhs.evaluate(a),s=this.rhs.evaluate(a);if(i&&this.hasUntypedArgument){let l=au(o),u=au(s);if(l.kind!==u.kind||l.kind!=="string"&&l.kind!=="number")throw new sl(`Expected arguments for "${e}" to be (string, string) or (number, number), but found (${l.kind}, ${u.kind}) instead.`,this.key)}if(this.collator&&!i&&this.hasUntypedArgument){let l=au(o),u=au(s);if(l.kind!=="string"||u.kind!=="string")return t(a,o,s)}return this.collator?r(a,o,s,this.collator.evaluate(a)):t(a,o,s)}eachChild(a){a(this.lhs),a(this.rhs),this.collator&&a(this.collator)}outputDefined(){return!0}}}function E2r(e,t){let r=k2r(e[0]),i=D2r(e[1]),n=2**t.z;return[Math.round(r*n*ag),Math.round(i*n*ag)]}function _ne(e,t){let r=2**t.z,i=(e[0]/ag+t.x)/r,n=(e[1]/ag+t.y)/r;return[C2r(i),F2r(n)]}function k2r(e){return(180+e)/360}function C2r(e){return e*360-180}function D2r(e){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+e*Math.PI/360)))/360}function F2r(e){return 360/Math.PI*Math.atan(Math.exp((180-e*360)*Math.PI/180))-90}function bC(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.max(e[2],t[0]),e[3]=Math.max(e[3],t[1])}function Yk(e,t){return!(e[0]<=t[0]||e[2]>=t[2]||e[1]<=t[1]||e[3]>=t[3])}function L2r(e,t,r){return t[1]>e[1]!=r[1]>e[1]&&e[0]<(r[0]-t[0])*(e[1]-t[1])/(r[1]-t[1])+t[0]}function P2r(e,t,r){let i=e[0]-t[0],n=e[1]-t[1],a=e[0]-r[0],o=e[1]-r[1];return i*o-a*n===0&&i*a<=0&&n*o<=0}function iq(e,t,r,i){let n=[t[0]-e[0],t[1]-e[1]];return B2r([i[0]-r[0],i[1]-r[1]],n)!==0&&!!(BQe(e,t,r,i)&&BQe(r,i,e,t))}function I2r(e,t,r){for(let i of r)for(let n=0;n0&&f<0||c<0&&f>0}function wne(e,t,r){let i=[];for(let n=0;nr[2]){let n=i*.5,a=e[0]-r[0]>n?-i:r[0]-e[0]>n?i:0;a===0&&(a=e[0]-r[2]>n?-i:r[2]-e[0]>n?i:0),e[0]+=a}bC(t,e)}function q2r(e){e[0]=e[1]=1/0,e[2]=e[3]=-1/0}function qQe(e,t,r,i){let n=2**i.z*ag,a=[i.x*ag,i.y*ag],o=[];for(let s of e)for(let l of s){let u=[l.x+a[0],l.y+a[1]];Brt(u,t,r,n),o.push(u)}return o}function OQe(e,t,r,i){let n=2**i.z*ag,a=[i.x*ag,i.y*ag],o=[];for(let s of e){let l=[];for(let u of s){let c=[u.x+a[0],u.y+a[1]];bC(t,c),l.push(c)}o.push(l)}if(t[2]-t[0]<=n/2){q2r(t);for(let s of o)for(let l of s)Brt(l,t,r,n)}return o}function O2r(e,t){let r=[1/0,1/0,-1/0,-1/0],i=[1/0,1/0,-1/0,-1/0],n=e.canonicalID();if(t.type==="Polygon"){let a=wne(t.coordinates,i,n),o=qQe(e.geometry(),r,i,n);if(!Yk(r,i))return!1;for(let s of o)if(!X6(s,a))return!1}if(t.type==="MultiPolygon"){let a=zrt(t.coordinates,i,n),o=qQe(e.geometry(),r,i,n);if(!Yk(r,i))return!1;for(let s of o)if(!R2r(s,a))return!1}return!0}function N2r(e,t){let r=[1/0,1/0,-1/0,-1/0],i=[1/0,1/0,-1/0,-1/0],n=e.canonicalID();if(t.type==="Polygon"){let a=wne(t.coordinates,i,n),o=OQe(e.geometry(),r,i,n);if(!Yk(r,i))return!1;for(let s of o)if(!Rrt(s,a))return!1}if(t.type==="MultiPolygon"){let a=zrt(t.coordinates,i,n),o=OQe(e.geometry(),r,i,n);if(!Yk(r,i))return!1;for(let s of o)if(!z2r(s,a))return!1}return!0}function Ort(e,t){return t[0]-e[0]}function yB(e){return e[1]-e[0]+1}function Im(e,t){return e[1]>=e[0]&&e[1]e[1])return[null,null];let r=yB(e);if(t){if(r===2)return[e,null];let n=Math.floor(r/2);return[[e[0],e[0]+n],[e[0]+n,e[1]]]}if(r===1)return[e,null];let i=Math.floor(r/2)-1;return[[e[0],e[0]+i],[e[0]+i+1,e[1]]]}function Jre(e,t){if(!Im(t,e.length))return[1/0,1/0,-1/0,-1/0];let r=[1/0,1/0,-1/0,-1/0];for(let i=t[0];i<=t[1];++i)bC(r,e[i]);return r}function Qre(e){let t=[1/0,1/0,-1/0,-1/0];for(let r of e)for(let i of r)bC(t,i);return t}function UQe(e){return e[0]!==-1/0&&e[1]!==-1/0&&e[2]!==1/0&&e[3]!==1/0}function Mne(e,t,r){if(!UQe(e)||!UQe(t))return NaN;let i=0,n=0;return e[2]t[2]&&(i=e[0]-t[2]),e[1]>t[3]&&(n=e[1]-t[3]),e[3]=i)return i;if(Yk(n,a)){if(VQe(e,t))return 0}else if(VQe(t,e))return 0;let o=1/0;for(let s of e)for(let l=0,u=s.length,c=u-1;l0;){let l=o.pop();if(l[0]>=a)continue;let u=l[1],c=t?50:100;if(yB(u)<=c){if(!Im(u,e.length))return NaN;if(t){let f=H2r(e,u,r,i);if(isNaN(f)||f===0)return f;a=Math.min(a,f)}else for(let f=u[0];f<=u[1];++f){let h=G2r(e[f],r,i);if(a=Math.min(a,h),a===0)return 0}}else{let f=Kre(u,t);GQe(o,a,i,e,s,f[0]),GQe(o,a,i,e,s,f[1])}}return a}function bB(e,t,r,i,n,a=1/0){let o=Math.min(a,n.distance(e[0],r[0]));if(o===0)return o;let s=new qrt([[0,[0,e.length-1],[0,r.length-1]]],Ort);for(;s.length>0;){let l=s.pop();if(l[0]>=o)continue;let u=l[1],c=l[2],f=t?50:100,h=i?50:100;if(yB(u)<=f&&yB(c)<=h){if(!Im(u,e.length)&&Im(c,r.length))return NaN;let p;if(t&&i)p=U2r(e,u,r,c,n),o=Math.min(o,p);else if(t&&!i){let d=e.slice(u[0],u[1]+1);for(let v=c[0];v<=c[1];++v)if(p=K_(r[v],d,n),o=Math.min(o,p),o===0)return o}else if(!t&&i){let d=r.slice(c[0],c[1]+1);for(let v=u[0];v<=u[1];++v)if(p=K_(e[v],d,n),o=Math.min(o,p),o===0)return o}else p=V2r(e,u,r,c,n),o=Math.min(o,p)}else{let p=Kre(u,t),d=Kre(c,i);Jz(s,o,n,e,r,p[0],d[0]),Jz(s,o,n,e,r,p[0],d[1]),Jz(s,o,n,e,r,p[1],d[0]),Jz(s,o,n,e,r,p[1],d[1])}}return o}function $2r(e,t){let r=e.geometry(),i=r.flat().map(o=>_ne([o.x,o.y],e.canonical));if(r.length===0)return NaN;let n=new Ane(i[0][1]),a=1/0;for(let o of t){switch(o.type){case"Point":a=Math.min(a,bB(i,!1,[o.coordinates],!1,n,a));break;case"LineString":a=Math.min(a,bB(i,!1,o.coordinates,!0,n,a));break;case"Polygon":a=Math.min(a,xB(i,!1,o.coordinates,n,a))}if(a===0)return a}return a}function W2r(e,t){let r=e.geometry(),i=r.flat().map(o=>_ne([o.x,o.y],e.canonical));if(r.length===0)return NaN;let n=new Ane(i[0][1]),a=1/0;for(let o of t){switch(o.type){case"Point":a=Math.min(a,bB(i,!0,[o.coordinates],!1,n,a));break;case"LineString":a=Math.min(a,bB(i,!0,o.coordinates,!0,n,a));break;case"Polygon":a=Math.min(a,xB(i,!0,o.coordinates,n,a))}if(a===0)return a}return a}function Y2r(e,t){let r=e.geometry();if(r.length===0||r[0].length===0)return NaN;let i=rq(r,0).map(o=>o.map(s=>s.map(l=>_ne([l.x,l.y],e.canonical)))),n=new Ane(i[0][0][0][1]),a=1/0;for(let o of t)for(let s of i){switch(o.type){case"Point":a=Math.min(a,xB([o.coordinates],!1,s,n,a));break;case"LineString":a=Math.min(a,xB(o.coordinates,!0,s,n,a));break;case"Polygon":a=Math.min(a,j2r(s,o.coordinates,n,a))}if(a===0)return a}return a}function Pre(e){return e.type==="MultiPolygon"?e.coordinates.map(t=>({type:"Polygon",coordinates:t})):e.type==="MultiLineString"?e.coordinates.map(t=>({type:"LineString",coordinates:t})):e.type==="MultiPoint"?e.coordinates.map(t=>({type:"Point",coordinates:t})):[e]}function HQe(e,[t,r,i,n],a){t=t.evaluate(e),r=r.evaluate(e),i=i.evaluate(e);let o=n?n.evaluate(e):1,s=crt(t,r,i,o);if(s)throw new sl(s,a);return new na(t/255,r/255,i/255,o,!1)}function jQe(e,t){return e in t&&t[e]!==void 0}function Ire(e,t){let r=t[e];return r===void 0?null:r}function K2r(e,t,r,i){for(;r<=i;){let n=r+i>>1;if(t[n]===e)return!0;t[n]>e?i=n-1:r=n+1}return!1}function W_(e){return{type:e}}function J2r(e){return Array.isArray(e)?`(${e.map(xl).join(", ")})`:`(${xl(e.type)}...)`}function _B(e){if(e instanceof _rt)return _B(e.boundExpression);if(e instanceof f3&&e.name==="error"||e instanceof Drt||e instanceof Tne||e instanceof Ene||e instanceof kne)return!1;let t=e instanceof S6||e instanceof Dm,r=!0;return e.eachChild(i=>{r&&(r=t?_B(i):i instanceof q6)}),r?nq(e)&&aq(e,["zoom","heatmap-density","elevation","line-progress","accumulated","is-supported-script"]):!1}function nq(e){if(e instanceof f3&&(e.name==="get"&&e.args.length===1||e.name==="feature-state"||e.name==="has"&&e.args.length===1||e.name==="properties"||e.name==="geometry-type"||e.name==="id"||/^filter-/.test(e.name))||e instanceof Tne||e instanceof Ene)return!1;let t=!0;return e.eachChild(r=>{t&&!nq(r)&&(t=!1)}),t}function Xk(e){if(e instanceof f3&&e.name==="feature-state")return!1;let t=!0;return e.eachChild(r=>{t&&!Xk(r)&&(t=!1)}),t}function aq(e,t){if(e instanceof f3&&t.indexOf(e.name)>=0)return!1;let r=!0;return e.eachChild(i=>{r&&!aq(i,t)&&(r=!1)}),r}function O6(e){return e["property-type"]==="data-driven"||e["property-type"]==="cross-faded-data-driven"}function jrt(e){return!!e.expression&&e.expression.parameters.indexOf("zoom")>-1}function Cne(e){return!!e.expression&&e.expression.interpolated}function Zk(e,...t){for(let r of t)for(let i in r)e[i]=r[i];return e}function ka(e){return e instanceof Number?"number":e instanceof String?"string":e instanceof Boolean?"boolean":Array.isArray(e)?"array":e===null?"null":typeof e}function oq(e){return typeof e=="object"&&!!e&&!Array.isArray(e)&&au(e)===Q_}function Q2r(e){return e}function exr(e){switch(e.type){case"color":return na.parse;case"padding":return ug.parse;case"numberArray":return cg.parse;case"colorArray":return ip.parse;default:return null}}function txr(e){switch(e){case"exponential":return Wrt;case"interval":return ixr;case"categorical":return rxr;case"identity":return nxr;default:throw Error(`Unknown function type "${e}"`)}}function $rt(e,t){let r=e.stops&&typeof e.stops[0][0]=="object",i=r||e.property!==void 0,n=r||!i,a=e.type||(Cne(t)?"exponential":"interval"),o=exr(t);if(o&&(e=Zk({},e),e.stops&&(e.stops=e.stops.map(c=>[c[0],o(c[1])])),e.default?e.default=o(e.default):e.default=o(t.default)),e.colorSpace&&!Wyr(e.colorSpace))throw Error(`Unknown color space: "${e.colorSpace}"`);let s=txr(a),l,u;if(a==="categorical"){l=Object.create(null);for(let c of e.stops)l[c[0]]=c[1];u=typeof e.stops[0][0]}if(r){let c={},f=[];for(let d=0;dd[0]),evaluate({zoom:d},v){return Wrt({stops:h,base:e.base},t,d).evaluate(d,v)}}}if(n){let c=a==="exponential"?{name:"exponential",base:e.base===void 0?1:e.base}:null;return{kind:"camera",interpolationType:c,interpolationFactor:np.interpolationFactor.bind(void 0,c),zoomStops:e.stops.map(f=>f[0]),evaluate:({zoom:f})=>s(e,t,f,l,u)}}return{kind:"source",evaluate(c,f){let h=f&&f.properties?f.properties[e.property]:void 0;return h===void 0?_C(e.default,t.default):s(e,t,h,l,u)}}}function _C(e,t,r){if(e!==void 0)return e;if(t!==void 0)return t;if(r!==void 0)return r}function rxr(e,t,r,i,n){return _C(typeof r===n?i[r]:void 0,e.default,t.default)}function ixr(e,t,r){if(ka(r)!=="number")return _C(e.default,t.default);let i=e.stops.length;if(i===1||r<=e.stops[0][0])return e.stops[0][1];if(r>=e.stops[i-1][0])return e.stops[i-1][1];let n=tq(e.stops.map(a=>a[0]),r,"");return e.stops[n][1]}function Wrt(e,t,r){let i=e.base===void 0?1:e.base;if(ka(r)!=="number")return _C(e.default,t.default);let n=e.stops.length;if(n===1||r<=e.stops[0][0])return e.stops[0][1];if(r>=e.stops[n-1][0])return e.stops[n-1][1];let a=tq(e.stops.map(c=>c[0]),r,""),o=axr(r,i,e.stops[a][0],e.stops[a+1][0]),s=e.stops[a][1],l=e.stops[a+1][1],u=Ys[t.type]||Q2r;return typeof s.evaluate=="function"?{evaluate(...c){let f=s.evaluate.apply(void 0,c),h=l.evaluate.apply(void 0,c);if(f!==void 0&&h!==void 0)return u(f,h,o,e.colorSpace)}}:u(s,l,o,e.colorSpace)}function nxr(e,t,r){switch(t.type){case"color":r=na.parse(r);break;case"formatted":r=Pm.fromString(r.toString());break;case"resolvedImage":r=sg.fromString(r.toString());break;case"padding":r=ug.parse(r);break;case"colorArray":r=ip.parse(r);break;case"numberArray":r=cg.parse(r);break;default:ka(r)!==t.type&&(t.type!=="enum"||!t.values[r])&&(r=void 0)}return _C(r,e.default,t.default)}function axr(e,t,r,i){let n=i-r,a=e-r;return n===0?0:t===1?a/n:(t**+a-1)/(t**+n-1)}function eie(e){return{result:"success",value:e}}function T6(e){return{result:"error",value:e}}function Yrt(e,t,r,i){return`${e}${t}: ${r}${i==null?"":` Falling back to ${String(i)}.`}`}function Xrt(e){if(!e)throw Error('rootKey must identify the location of the expression in the style JSON, e.g. "layers[3].paint.line-width".')}function sq(e){return Array.isArray(e)&&e.length>0&&typeof e[0]=="string"&&e[0]in C6}function lq(e,t,r,i){Xrt(t);let n=new Grt(C6,_B,[],r?lxr(r):void 0),a=n.parse(e,void 0,void 0,void 0,r&&r.type==="string"?{typeAnnotation:"coerce"}:void 0);return a?eie(new Fne(a,t,r,i)):T6(n.errors)}function oxr(e){return e._styleExpression!==void 0}function Zrt(e,t,r,i){let n=lq(e,t,r,i);if(n.result==="error")return n;let a=n.value.expression,o=nq(a);if(!o&&!O6(r))return T6([new tg("","data expressions not supported")]);let s=aq(a,["zoom"]);if(!s&&!jrt(r))return T6([new tg("","zoom expressions not supported")]);let l=vB(a);if(!l&&!s)return T6([new tg("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.')]);if(l instanceof tg)return T6([l]);if(l instanceof np&&!Cne(r))return T6([new tg("",'"interpolate" expressions cannot be used with this property')]);if(!l)return eie(o?new Kk("constant",n.value,i):new Kk("source",n.value,i));let u=l instanceof np?l.interpolation:void 0;return eie(o?new wB("camera",n.value,l.labels,u,i):new wB("composite",n.value,l.labels,u,i))}function sxr(e,t,r,i){if(oq(e))return new Krt(e,t,r);if(sq(e)){let n=Zrt(e,t,r,i);if(n.result==="error")throw Error(n.value.map(a=>`${a.key}: ${a.message}`).join(", "));return n.value}{let n=e;return r.type==="color"&&typeof e=="string"?n=na.parse(e):r.type==="padding"&&(typeof e=="number"||Array.isArray(e))?n=ug.parse(e):r.type==="numberArray"&&(typeof e=="number"||Array.isArray(e))?n=cg.parse(e):r.type==="colorArray"&&(typeof e=="string"||Array.isArray(e))?n=ip.parse(e):r.type==="variableAnchorOffsetCollection"&&Array.isArray(e)?n=og.parse(e):r.type==="projectionDefinition"&&typeof e=="string"&&(n=Om.parse(e)),{globalStateRefs:new Set,_globalState:null,kind:"constant",evaluate:()=>n}}}function vB(e){let t=null;if(e instanceof xrt)t=vB(e.result);else if(e instanceof Ert){for(let r of e.args)if(t=vB(r),t)break}else(e instanceof bne||e instanceof np)&&e.input instanceof f3&&e.input.name==="zoom"&&(t=e);return t instanceof tg||e.eachChild(r=>{let i=vB(r);i instanceof tg?t=i:!t&&i?t=new tg("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.'):t&&i&&t!==i&&(t=new tg("",'Only one zoom-based "step" or "interpolate" subexpression may be used in an expression.'))}),t}function wC(e,t=new Set){return e instanceof kne&&t.add(e.key),e.eachChild(r=>{wC(r,t)}),t}function lxr(e){let t={color:Mv,string:ha,number:ki,enum:ha,boolean:Ra,formatted:yC,padding:JB,numberArray:QB,colorArray:$k,projectionDefinition:ZB,resolvedImage:xC,variableAnchorOffsetCollection:eq};return e.type==="array"?zf(t[e.value]||ma,e.length):t[e.type]}function Qrt(e){if(e.type==="color"&&oq(e.default))return new na(0,0,0,0);switch(e.type){case"color":return na.parse(e.default)||null;case"padding":return ug.parse(e.default)||null;case"numberArray":return cg.parse(e.default)||null;case"colorArray":return ip.parse(e.default)||null;case"variableAnchorOffsetCollection":return og.parse(e.default)||null;case"projectionDefinition":return Om.parse(e.default)||null;default:return e.default===void 0?null:e.default}}function N6(e,t){let{zoom:r,heatmapDensity:i,elevation:n,lineProgress:a,isSupportedScript:o,accumulated:s}=e!=null?e:{};return{zoom:r,heatmapDensity:i,elevation:n,lineProgress:a,isSupportedScript:o,accumulated:s,globalState:t}}function uxr(e){let t=!1;for(let r of e){let i=eit(r);if(i==="expression")return"expression";i==="legacy"&&(t=!0)}return t?"legacy":"neutral"}function eit(e){if(typeof e=="boolean")return"neutral";if(!Array.isArray(e)||e.length===0)return"legacy";switch(e[0]){case"has":return e.length<2||e[1]==="$id"||e[1]==="$type"?"legacy":e.length===2?"neutral":"expression";case"in":return e.length>=3&&(typeof e[1]!="string"||Array.isArray(e[2]))?"expression":"legacy";case"!in":case"!has":return"legacy";case"==":case"!=":case">":case">=":case"<":case"<=":return e.length!==3||Array.isArray(e[1])||Array.isArray(e[2])?"expression":"legacy";case"none":return"legacy";case"any":case"all":return uxr(e.slice(1));default:return"expression"}}function Lne(e){return eit(e)!=="legacy"}function $Qe(e){return e==="$type"?["geometry-type"]:e==="$id"?["id"]:["get",e]}function cxr(e){switch(e[0]){case"==":case"!=":case"<":case"<=":case">":case">=":return e.length!==3||typeof e[1]!="string"?null:[e[0],$Qe(e[1]),e[2]];case"in":case"!in":{if(e.length<2||typeof e[1]!="string")return null;let t=["in",$Qe(e[1]),["literal",e.slice(2)]];return e[0]==="!in"?["!",t]:t}case"has":case"!has":{if(e.length!==2||typeof e[1]!="string"||e[1]==="$type"||e[1]==="$id")return null;let t=["has",e[1]];return e[0]==="!has"?["!",t]:t}default:return null}}function tit(e){if((e[0]==="<"||e[0]==="<="||e[0]===">"||e[0]===">=")&&e[1]==="$type")return`"$type" cannot be use with operator "${e[0]}"`;let t=cxr(e);return t?`Mixing deprecated filter syntax with expression syntax is not supported. Replace ${JSON.stringify(e)} with ${JSON.stringify(t)}.`:`Mixing deprecated filter syntax with expression syntax is not supported. Convert ${JSON.stringify(e)} to expression syntax.`}function Rre(e,t,r){let i=r[e];return Array.isArray(i)?Lne(i)?Pne(i,t.concat(e)):{path:t.concat(e),legacyFilter:i}:null}function Pne(e,t=[]){if(!Array.isArray(e)||e.length<1)return null;switch(e[0]){case"all":case"any":case"none":for(let r=1;r"u")return;let i=r.path.map(n=>`[${n}]`).join("");console.warn(`${t}${i}: ${tit(r.legacyFilter)}`)}function U6(e,t,r){if(e==null)return{filter:()=>!0,needGeometry:!1,getGlobalStateRefs:()=>new Set};Lne(e)?fxr(e,t):e=TB(e);let i=lq(e,t,hxr,r);if(i.result==="error")throw Error(i.value.map(n=>`${n.key}: ${n.message}`).join(", "));return{filter:(n,a,o)=>i.value.evaluate(n,a,{},o),needGeometry:rit(e),getGlobalStateRefs:()=>wC(i.value.expression)}}function dxr(e,t){return et)}function rit(e){if(!Array.isArray(e))return!1;if(e[0]==="within"||e[0]==="distance")return!0;for(let t=1;t"||t==="<="||t===">="?zre(e[1],e[2],t):t==="any"?pxr(e.slice(1)):t==="all"?["all"].concat(e.slice(1).map(TB)):t==="none"?["all"].concat(e.slice(1).map(TB).map(Qz)):t==="in"?WQe(e[1],e.slice(2)):t==="!in"?Qz(WQe(e[1],e.slice(2))):t==="has"?YQe(e[1]):t!=="!has"||Qz(YQe(e[1]))}function zre(e,t,r){switch(e){case"$type":return[`filter-type-${r}`,t];case"$id":return[`filter-id-${r}`,t];default:return[`filter-${r}`,e,t]}}function pxr(e){return["any"].concat(e.map(TB))}function WQe(e,t){if(t.length===0)return!1;switch(e){case"$type":return["filter-type-in",["literal",t]];case"$id":return["filter-id-in",["literal",t]];default:return t.length>200&&!t.some(r=>typeof r!=typeof t[0])?["filter-in-large",e,["literal",t.sort(dxr)]]:["filter-in-small",e,["literal",t]]}}function YQe(e){switch(e){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",e]}}function Qz(e){return["!",e]}function iit(e){let t=e.key,r=e.value;return r?[new ei(t,r,"constants have been deprecated as of v8")]:[]}function iu(e){return e instanceof Number||e instanceof String||e instanceof Boolean?e.valueOf():e}function n3(e){if(Array.isArray(e))return e.map(n3);if(e instanceof Object&&!(e instanceof Number||e instanceof String||e instanceof Boolean)){let t={};for(let r in e)t[r]=n3(e[r]);return t}return iu(e)}function U0(e){let t=e.key,r=e.value,i=e.valueSpec||{},n=e.objectElementValidators||{},a=e.style,o=e.styleSpec,s=e.validateSpec,l=[],u=ka(r);if(u!=="object")return[new ei(t,r,`object expected, ${u} found`)];for(let c in r){let f=c.split(".")[0],h=Ok(i,f)||i["*"],p;if(Ok(n,f))p=n[f];else if(Ok(i,f)){if(r[c]===void 0)continue;p=s}else if(n["*"])p=n["*"];else if(i["*"])p=s;else{l.push(new ei(t,r[c],`unknown property "${c}"`));continue}l=l.concat(p({key:(t&&`${t}.`)+c,value:r[c],valueSpec:h,style:a,styleSpec:o,object:r,objectKey:c,validateSpec:s},r))}for(let c in i)n[c]||i[c].required&&i[c].default===void 0&&r[c]===void 0&&l.push(new ei(t,r,`missing required property "${c}"`));return l}function Ine(e){let t=e.value,r=e.valueSpec,i=e.validateSpec,n=e.style,a=e.styleSpec,o=e.key,s=e.arrayElementValidator||i;if(ka(t)!=="array")return[new ei(o,t,`array expected, ${ka(t)} found`)];if(r.length&&t.length!==r.length)return[new ei(o,t,`array length ${r.length} expected, length ${t.length} found`)];let l={type:r.value,values:r.values};a.$version<7&&(l.function=r.function),ka(r.value)==="object"&&(l=r.value);let u=[];for(let c=0;ci.maximum?[new ei(t,r,`${r} is greater than the maximum value ${i.maximum}`)]:[]:[new ei(t,r,`number expected, ${n} found`)]}function nit(e){let t=e.valueSpec,r=iu(e.value.type),i,n={},a,o,s=r!=="categorical"&&e.value.property===void 0,l=!s,u=ka(e.value.stops)==="array"&&ka(e.value.stops[0])==="array"&&ka(e.value.stops[0][0])==="object",c=U0({key:e.key,value:e.value,valueSpec:e.styleSpec.function,validateSpec:e.validateSpec,style:e.style,styleSpec:e.styleSpec,objectElementValidators:{stops:f,default:d}});return r==="identity"&&s&&c.push(new ei(e.key,e.value,'missing required property "property"')),r!=="identity"&&!e.value.stops&&c.push(new ei(e.key,e.value,'missing required property "stops"')),r==="exponential"&&e.valueSpec.expression&&!Cne(e.valueSpec)&&c.push(new ei(e.key,e.value,"exponential functions not supported")),e.styleSpec.$version>=8&&(l&&!O6(e.valueSpec)?c.push(new ei(e.key,e.value,"property functions not supported")):s&&!jrt(e.valueSpec)&&c.push(new ei(e.key,e.value,"zoom functions not supported"))),(r==="categorical"||u)&&e.value.property===void 0&&c.push(new ei(e.key,e.value,'"property" property is required')),c;function f(v){if(r==="identity")return[new ei(v.key,v.value,'identity function may not have a "stops" property')];let m=[],g=v.value;return m=m.concat(Ine({key:v.key,value:g,valueSpec:v.valueSpec,validateSpec:v.validateSpec,style:v.style,styleSpec:v.styleSpec,arrayElementValidator:h})),ka(g)==="array"&&g.length===0&&m.push(new ei(v.key,g,"array must have at least one stop")),m}function h(v){let m=[],g=v.value,w=v.key;if(ka(g)!=="array")return[new ei(w,g,`array expected, ${ka(g)} found`)];if(g.length!==2)return[new ei(w,g,`array length 2 expected, length ${g.length} found`)];if(u){if(ka(g[0])!=="object")return[new ei(w,g,`object expected, ${ka(g[0])} found`)];if(g[0].zoom===void 0)return[new ei(w,g,"object stop key must have zoom")];if(g[0].value===void 0)return[new ei(w,g,"object stop key must have value")];if(o&&o>iu(g[0].zoom))return[new ei(w,g[0].zoom,"stop zoom values must appear in ascending order")];iu(g[0].zoom)!==o&&(o=iu(g[0].zoom),a=void 0,n={}),m=m.concat(U0({key:`${w}[0]`,value:g[0],valueSpec:{zoom:{}},validateSpec:v.validateSpec,style:v.style,styleSpec:v.styleSpec,objectElementValidators:{zoom:uq,value:p}}))}else m=m.concat(p({key:`${w}[0]`,value:g[0],valueSpec:{},validateSpec:v.validateSpec,style:v.style,styleSpec:v.styleSpec},g));return sq(n3(g[1]))?m.concat([new ei(`${w}[1]`,g[1],"expressions are not allowed in function stops.")]):m.concat(v.validateSpec({key:`${w}[1]`,value:g[1],valueSpec:t,validateSpec:v.validateSpec,style:v.style,styleSpec:v.styleSpec}))}function p(v,m){let g=ka(v.value),w=iu(v.value),_=v.value===null?m:v.value;if(!i)i=g;else if(g!==i)return[new ei(v.key,_,`${g} stop domain type must match previous stop domain type ${i}`)];if(g!=="number"&&g!=="string"&&g!=="boolean")return[new ei(v.key,_,"stop domain value must be a number, string, or boolean")];if(g!=="number"&&r!=="categorical"){let b=`number expected, ${g} found`;return O6(t)&&r===void 0&&(b+='\nIf you intended to use a categorical function, specify `"type": "categorical"`.'),[new ei(v.key,_,b)]}return r==="categorical"&&g==="number"&&(!isFinite(w)||Math.floor(w)!==w)?[new ei(v.key,_,`integer expected, found ${w}`)]:r!=="categorical"&&g==="number"&&a!==void 0&&wnew ei(`${e.key}${i.key}`,e.value,i.message));let r=t.value.expression||t.value._styleExpression.expression;if(e.expressionContext==="property"&&e.propertyKey==="text-font"&&!r.outputDefined())return[new ei(e.key,e.value,`Invalid data expression for "${e.propertyKey}". Output values must be contained as literals within the expression.`)];if(e.expressionContext==="property"&&e.propertyType==="layout"&&!Xk(r))return[new ei(e.key,e.value,'"feature-state" data expressions are not supported with layout properties.')];if(e.expressionContext==="filter"&&!Xk(r))return[new ei(e.key,e.value,'"feature-state" data expressions are not supported with filters.')];if(e.expressionContext&&e.expressionContext.indexOf("cluster")===0){if(!aq(r,["zoom","feature-state"]))return[new ei(e.key,e.value,'"zoom" and "feature-state" expressions are not supported with cluster properties.')];if(e.expressionContext==="cluster-initial"&&!nq(r))return[new ei(e.key,e.value,"Feature data expressions are not supported with initial expression part of cluster properties.")]}return[]}function vxr(e){let t=e.value,r=e.key,i=ka(t);return i==="boolean"?[]:[new ei(r,t,`boolean expected, ${i} found`)]}function tie(e){let t=e.key,r=e.value,i=ka(r);return i==="string"?na.parse(String(r))?[]:[new ei(t,r,`color expected, "${r}" found`)]:[new ei(t,r,`color expected, ${i} found`)]}function Jk(e){let t=e.key,r=e.value,i=e.valueSpec,n=[];return Array.isArray(i.values)?i.values.indexOf(iu(r))===-1&&n.push(new ei(t,r,`expected one of [${i.values.join(", ")}], ${JSON.stringify(r)} found`)):Object.keys(i.values).indexOf(iu(r))===-1&&n.push(new ei(t,r,`expected one of [${Object.keys(i.values).join(", ")}], ${JSON.stringify(r)} found`)),n}function gxr(e,t){let r=e;for(let i of t)r=r[i];return r}function mxr(e,t){let r=Pne(t);return r?[new ei(`${e.key}${r.path.map(i=>`[${i}]`).join("")}`,gxr(e.value,r.path),tit(r.legacyFilter),null,"warning")]:[]}function Rne(e){let t=n3(e.value);return Lne(t)?[...mxr(e,t),...V6(Zk({},e,{expressionContext:"filter",valueSpec:{value:"boolean"}}))]:ait(e)}function ait(e){let t=e.value,r=e.key;if(ka(t)!=="array")return[new ei(r,t,`array expected, ${ka(t)} found`)];let i=e.styleSpec,n,a=[];if(t.length<1)return[new ei(r,t,"filter array must have at least 1 element")];switch(a=a.concat(Jk({key:`${r}[0]`,value:t[0],valueSpec:i.filter_operator,style:e.style,styleSpec:e.styleSpec})),iu(t[0])){case"<":case"<=":case">":case">=":t.length>=2&&iu(t[1])==="$type"&&a.push(new ei(r,t,`"$type" cannot be use with operator "${t[0]}"`));case"==":case"!=":t.length!==3&&a.push(new ei(r,t,`filter array for operator "${t[0]}" must have 3 elements`));case"in":case"!in":t.length>=2&&(n=ka(t[1]),n!=="string"&&a.push(new ei(`${r}[1]`,t[1],`string expected, ${n} found`)));for(let o=2;o{f in r&&t.push(new ei(i,r[f],`"${f}" is prohibited for ref layers`))});let c;n.layers.forEach(f=>{iu(f.id)===s&&(c=f)}),c?c.ref?t.push(new ei(i,r.ref,"ref cannot reference another ref layer")):o=iu(c.type):t.push(new ei(i,r.ref,`ref layer "${s}" not found`))}else if(o!=="background")if(!r.source)t.push(new ei(i,r,'missing required property "source"'));else{let c=n.sources&&n.sources[r.source],f=c&&iu(c.type);c?f==="vector"&&o==="raster"?t.push(new ei(i,r.source,`layer "${r.id}" requires a raster source`)):f!=="raster-dem"&&o==="hillshade"||f!=="raster-dem"&&o==="color-relief"?t.push(new ei(i,r.source,`layer "${r.id}" requires a raster-dem source`)):f==="raster"&&o!=="raster"?t.push(new ei(i,r.source,`layer "${r.id}" requires a vector source`)):f==="vector"&&!r["source-layer"]?t.push(new ei(i,r,`layer "${r.id}" must specify a "source-layer"`)):f==="raster-dem"&&o!=="hillshade"&&o!=="color-relief"?t.push(new ei(i,r.source,"raster-dem source can only be used with layer type 'hillshade' or 'color-relief'.")):o==="line"&&r.paint&&r.paint["line-gradient"]&&(f!=="geojson"||!c.lineMetrics)&&t.push(new ei(i,r,`layer "${r.id}" specifies a line-gradient, which requires a GeoJSON source with \`lineMetrics\` enabled.`)):t.push(new ei(i,r.source,`source "${r.source}" not found`))}return o==="raster"&&((l=r.paint)!=null&&l.resampling)&&((u=r.paint)!=null&&u["raster-resampling"])&&t.push(new ei(i,r.paint,`layer "${r.id}" redundantly specifies "resampling" and "raster-resampling" paint properties, but only one is allowed. It is advised to use "resampling".`)),t=t.concat(U0({key:i,value:r,valueSpec:a.layer,style:e.style,styleSpec:e.styleSpec,validateSpec:e.validateSpec,objectElementValidators:{"*"(){return[]},type(){return e.validateSpec({key:`${i}.type`,value:r.type,valueSpec:a.layer.type,style:e.style,styleSpec:e.styleSpec,validateSpec:e.validateSpec,object:r,objectKey:"type"})},filter:Rne,layout(c){return U0({layer:r,key:c.key,value:c.value,style:c.style,styleSpec:c.styleSpec,validateSpec:c.validateSpec,objectElementValidators:{"*"(f){return lit(Zk({layerType:o},f))}}})},paint(c){return U0({layer:r,key:c.key,value:c.value,style:c.style,styleSpec:c.styleSpec,validateSpec:c.validateSpec,objectElementValidators:{"*"(f){return sit(Zk({layerType:o},f))}}})}}})),t}function ux(e){let t=e.value,r=e.key,i=ka(t);return i==="string"?[]:[new ei(r,t,`string expected, ${i} found`)]}function yxr(e){var f;let t=(f=e.sourceName)!=null?f:"",r=e.value,i=e.styleSpec,n=i.source_raster_dem,a=e.style,o=[],s=ka(r);if(r===void 0)return o;if(s!=="object")return o.push(new ei("source_raster_dem",r,`object expected, ${s} found`)),o;let l=iu(r.encoding)==="custom",u=["redFactor","greenFactor","blueFactor","baseShift"],c=e.value.encoding?`"${e.value.encoding}"`:"Default";for(let h in r)!l&&u.includes(h)?o.push(new ei(h,r[h],`In "${t}": "${h}" is only valid when "encoding" is set to "custom". ${c} encoding found`)):n[h]?o=o.concat(e.validateSpec({key:h,value:r[h],valueSpec:n[h],validateSpec:e.validateSpec,style:a,styleSpec:i})):o.push(new ei(h,r[h],`unknown property "${h}"`));return o}function cit(e){let t=e.value,r=e.key,i=e.styleSpec,n=e.style,a=e.validateSpec;if(!t.type)return[new ei(r,t,'"type" is required')];let o=iu(t.type),s;switch(o){case"vector":case"raster":return s=U0({key:r,value:t,valueSpec:i[`source_${o.replace("-","_")}`],style:e.style,styleSpec:i,objectElementValidators:XQe,validateSpec:a}),s;case"raster-dem":return s=yxr({sourceName:r,value:t,style:e.style,styleSpec:i,validateSpec:a}),s;case"geojson":if(s=U0({key:r,value:t,valueSpec:i.source_geojson,style:n,styleSpec:i,validateSpec:a,objectElementValidators:XQe}),t.cluster)for(let l in t.clusterProperties){let[u,c]=t.clusterProperties[l],f=typeof u=="string"?[u,["accumulated"],["get",l]]:u;s.push(...V6({key:`${r}.${l}.map`,value:c,validateSpec:a,expressionContext:"cluster-map"})),s.push(...V6({key:`${r}.${l}.reduce`,value:f,validateSpec:a,expressionContext:"cluster-reduce"}))}return s;case"video":return U0({key:r,value:t,valueSpec:i.source_video,style:n,validateSpec:a,styleSpec:i});case"image":return U0({key:r,value:t,valueSpec:i.source_image,style:n,validateSpec:a,styleSpec:i});case"canvas":return[new ei(r,null,"Please use runtime APIs to add canvas sources, rather than including them in stylesheets.","source.canvas")];default:return Jk({key:`${r}.type`,value:t.type,valueSpec:{values:["vector","raster","raster-dem","geojson","video","image"]},style:n,validateSpec:a,styleSpec:i})}}function xxr({key:e,value:t}){if(ka(t)==="string")return ux({key:e,value:t});{let r=[];for(let i in t)r.push(...ux({key:`${e}.${i}`,value:t[i]}));return r}}function fit(e){let t=e.value,r=e.styleSpec,i=r.light,n=e.style,a=[],o=ka(t);if(t===void 0)return a;if(o!=="object")return a=a.concat([new ei("light",t,`object expected, ${o} found`)]),a;for(let s in t){let l=s.match(Dne);a=l&&i[l[1]]&&i[l[1]].transition?a.concat(e.validateSpec({key:s,value:t[s],valueSpec:r.transition,validateSpec:e.validateSpec,style:n,styleSpec:r})):i[s]?a.concat(e.validateSpec({key:s,value:t[s],valueSpec:i[s],validateSpec:e.validateSpec,style:n,styleSpec:r})):a.concat([new ei(s,t[s],`unknown property "${s}"`)])}return a}function hit(e){let t=e.value,r=e.styleSpec,i=r.sky,n=e.style,a=ka(t);if(t===void 0)return[];if(a!=="object")return[new ei("sky",t,`object expected, ${a} found`)];let o=[];for(let s in t){let l=s.match(Dne);o=l&&i[l[1]]&&i[l[1]].transition?o.concat(e.validateSpec({key:s,value:t[s],valueSpec:r.transition,style:n,styleSpec:r})):i[s]?o.concat(e.validateSpec({key:s,value:t[s],valueSpec:i[s],style:n,styleSpec:r})):o.concat([new ei(s,t[s],`unknown property "${s}"`)])}return o}function dit(e){let t=e.value,r=e.styleSpec,i=r.terrain,n=e.style,a=[],o=ka(t);if(t===void 0)return a;if(o!=="object")return a=a.concat([new ei("terrain",t,`object expected, ${o} found`)]),a;for(let s in t)a=i[s]?a.concat(e.validateSpec({key:s,value:t[s],valueSpec:i[s],validateSpec:e.validateSpec,style:n,styleSpec:r})):a.concat([new ei(s,t[s],`unknown property "${s}"`)]);return a}function bxr(e){return ux(e).length===0?[]:V6(e)}function _xr(e){return ux(e).length===0?[]:V6(e)}function wxr(e){let t=e.key,r=e.value;if(ka(r)==="array"){if(r.length<1||r.length>4)return[new ei(t,r,`padding requires 1 to 4 values; ${r.length} values found`)];let i={type:"number"},n=[];for(let a=0;a[new ei(e,t,'invalid unicode range, expected a value such as "U+26", "U+0-10FFFF" or "U+4??"')],n=r.match(Dxr);if(!n)return i();let[,a,o,s]=n;if(s!==void 0)return s.length>6?i():[];let l=parseInt(a,16),u=o===void 0?l:parseInt(o,16);return l>ZQe||u>ZQe?[new ei(e,t,"unicode range is out of bounds, the maximum code point is U+10FFFF")]:l>u?[new ei(e,t,`unicode range start must not be greater than its end, but ${r} is`)]:[]}function git(e){var s,l;let t=(s=e.key)!=null?s:"font-faces",r=e.value,i=e.validateSpec,n=(l=e.styleSpec)!=null?l:ert,a=e.style;if(!rie(r))return[new ei(t,r,`object expected, ${ka(r)} found`)];let o=[];for(let u in r){let c=r[u],f=ka(c);if(f==="string")o.push(...ux({key:`${t}.${u}`,value:c}));else if(f==="array"){let h={url:{type:"string",required:!0},"unicode-range":{type:"array",value:"string"}};for(let[p,d]of c.entries()){let v=`${t}.${u}[${p}]`;o.push(...U0({key:v,value:d,valueSpec:h,styleSpec:n,style:a,validateSpec:i}));let m=rie(d)?d["unicode-range"]:void 0;if(ka(m)==="array")for(let[g,w]of m.entries())o.push(...Fxr(`${v}.unicode-range[${g}]`,w))}}else o.push(new ei(`${t}.${u}`,c,`string or array expected, ${f} found`))}return o}function Uk(e){let t=e.value,r=e.valueSpec,i=e.styleSpec;return e.validateSpec=Uk,r.expression&&oq(iu(t))?nit(e):r.expression&&sq(n3(t))?V6(e):r.type&&KQe[r.type]?KQe[r.type](e):U0(Zk({},e,{valueSpec:r.type?i[r.type]:r}))}function mit(e){let t=e.value,r=e.key,i=ux(e);return i.length||(t.indexOf("{fontstack}")===-1&&i.push(new ei(r,t,'"glyphs" url must include a "{fontstack}" token')),t.indexOf("{range}")===-1&&i.push(new ei(r,t,'"glyphs" url must include a "{range}" token'))),i}function N0(e,t=_r){let r=[];return r=r.concat(Uk({key:"",value:e,valueSpec:t.$root,styleSpec:t,style:e,validateSpec:Uk,objectElementValidators:{glyphs:mit,"*"(){return[]}}})),e.constants&&(r=r.concat(iit({key:"constants",value:e.constants,style:e,styleSpec:t,validateSpec:Uk}))),yit(r)}function Jd(e){return function(t){return e(Object.assign({},t,{validateSpec:Uk}))}}function yit(e){return[].concat(e).sort((t,r)=>t.line-r.line)}function Qd(e){return function(...t){return yit(e.apply(this,t))}}function Ixr(e,t,r){return new Pxr(e,t,r)}function Rxr(e){var t;return Object.entries((t=e.sources)!=null?t:{}).filter(([,r])=>!zne.has(r.type)).map(([r])=>`sources.${r}`)}function Bne(e,t){let r=Rxr(t);return cq(e,ph(t).filter(({message:i})=>!r.some(n=>i.startsWith(`${n}:`)||i.startsWith(`${n}.`))))}function cq(e,t){let r=!1;for(let i of t){if(i.severity==="warning"){Fa(i.message);continue}e.fire(new An(Error(i.message))),r=!0}return r}function Z6(e,t,r,i){return(i==null?void 0:i.validate)!==!1&&cq(e,t(dn({styleSpec:_r},r)))}function Gi(e,t,r={}){if(Fm[e])throw Error(`${e} is already registered.`);Object.defineProperty(t,"_classRegistryKey",{value:e,writeable:!1}),Fm[e]={klass:t,omit:r.omit||[],shallow:r.shallow||[]}}function bit(e){var t;return e&&typeof ArrayBuffer<"u"&&(e instanceof ArrayBuffer||((t=e.constructor)==null?void 0:t.name)==="ArrayBuffer")}function qne(e){let t=e.constructor;return e.$name||t._classRegistryKey}function zxr(e){if(typeof e!="object"||!e)return!1;let t=qne(e);return t&&t!=="Object"}function _it(e){return!zxr(e)&&(e==null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||e instanceof Boolean||e instanceof Number||e instanceof String||e instanceof Date||e instanceof RegExp||e instanceof Blob||e instanceof Error||bit(e)||dx(e)||ArrayBuffer.isView(e)||e instanceof ImageData)}function Vk(e,t){if(_it(e))return(bit(e)||dx(e))&&t&&t.push(e),ArrayBuffer.isView(e)&&t&&t.push(e.buffer),e instanceof ImageData&&t&&t.push(e.data.buffer),e;if(Array.isArray(e)){let a=[];for(let o of e)a.push(Vk(o,t));return a}if(typeof e!="object")throw Error(`can't serialize object of type ${typeof e}`);let r=qne(e);if(!r)throw Error(`can't serialize object of unregistered class ${e.constructor.name}`);if(!Fm[r])throw Error(`${r} is not registered.`);let{klass:i}=Fm[r],n=i.serialize?i.serialize(e,t):{};if(i.serialize){if(n===(t==null?void 0:t[t.length-1]))throw Error("statically serialized object won't survive transfer of $name property")}else{for(let a in e){if(!e.hasOwnProperty(a)||Fm[r].omit.includes(a))continue;let o=e[a];o!==void 0&&(n[a]=Fm[r].shallow.includes(a)?o:Vk(o,t))}e instanceof Error&&(n.message=e.message)}if(n.$name)throw Error("$name property is reserved for worker serialization logic.");return r!=="Object"&&(n.$name=r),n}function Gk(e){if(_it(e))return e;if(Array.isArray(e))return e.map(Gk);if(typeof e!="object")throw Error(`can't deserialize object of type ${typeof e}`);let t=qne(e)||"Object";if(!Fm[t])throw Error(`can't deserialize unregistered class ${t}`);let{klass:r}=Fm[t];if(!r)throw Error(`can't deserialize unregistered class ${t}`);if(r.deserialize)return r.deserialize(e);let i=Object.create(r.prototype);for(let n of Object.keys(e)){if(n==="$name")continue;let a=e[n];i[n]=Fm[t].shallow.includes(n)?a:Gk(a)}return i}function eet(e){if(Array.isArray(e))return e.length;let t=e==null?void 0:e.values;return Array.isArray(t)?t.length:void 0}function wit(e,t){let r=eet(e),i=eet(t);return r!==void 0&&i!==void 0&&r!==i}function ll(e,t=1){let r=0,i=0;return{members:e.map(n=>{let a=Vxr(n.type),o=r=iet(r,Math.max(t,a)),s=n.components||1;return i=Math.max(i,a),r+=a*s,{name:n.name,type:n.type,components:s,offset:o}}),size:iet(r,Math.max(i,t)),alignment:t}}function Vxr(e){return Uxr[e].BYTES_PER_ELEMENT}function iet(e,t){return Math.ceil(e/t)*t}function oet(e,t){return e=Qn(Math.floor(e),0,255),t=Qn(Math.floor(t),0,255),256*e+t}function set(e){let t=+e;return!isNaN(t)&&t<=2**53-1?t:(0,kB.default)(String(e))}function Sie(e,t,r,i){for(;r>1],a=r-1,o=i+1;for(;;){do a++;while(e[a]n);if(a>=o)break;eB(e,a,o),eB(t,3*a,3*o),eB(t,3*a+1,3*o+1),eB(t,3*a+2,3*o+2)}o-rn.x+1||on.y+1)&&Fa("Geometry exceeds allowed extent, reduce your vector tile buffer size")}return r}function px(e,t){return{type:e.type,id:e.id,properties:e.properties,geometry:t?h3(e):[]}}function obr(e,t,r,i,n){e.emplaceBack(fet+t*8+i,fet+r*8+n)}function Gne(e,t){for(let r of e)if(G6(t,r))return!0;for(let r of t)if(G6(e,r))return!0;return Hne(e,t)}function pq(e,t,r){return G6(e,t)?!0:Cie(t,e,r)}function jit(e,t){if(e.length===1)return het(t,e[0]);for(let r of t)for(let i of r)if(G6(e,i))return!0;for(let r of e)if(het(t,r))return!0;for(let r of t)if(Hne(e,r))return!0;return!1}function sbr(e,t,r){for(let i of t){if(e.length>=3){for(let n of i)if(G6(e,n))return!0}if(lbr(e,i,r))return!0}return!1}function lbr(e,t,r){if(e.length>1){if(Hne(e,t))return!0;for(let i of t)if(Cie(i,e,r))return!0}for(let i of e)if(Cie(i,t,r))return!0;return!1}function Hne(e,t){if(e.length===0||t.length===0)return!1;for(let r=0;r1?e.distSqr(r):e.distSqr(r.sub(t)._mult(n)._add(t))}function het(e,t){let r=!1,i,n,a;for(let o of e){i=o;for(let s=0,l=i.length-1;st.y!=a.y>t.y&&t.x<(a.x-n.x)*(t.y-n.y)/(a.y-n.y)+n.x&&(r=!r)}return r}function G6(e,t){let r=!1;for(let i=0,n=e.length-1;it.y!=o.y>t.y&&t.x<(o.x-a.x)*(t.y-a.y)/(o.y-a.y)+a.x&&(r=!r)}return r}function cbr(e,t,r,i,n){for(let o of e)if(t<=o.x&&r<=o.y&&i>=o.x&&n>=o.y)return!0;let a=[new tr(t,r),new tr(t,n),new tr(i,n),new tr(i,r)];if(e.length>2){for(let o of a)if(G6(e,o))return!0}for(let o=0;on.x&&t.x>n.x||e.yn.y&&t.y>n.y)return!1;let a=nx(e,t,r[0]);return a!==nx(e,t,r[1])||a!==nx(e,t,r[2])||a!==nx(e,t,r[3])}function D6(e,t,r){let i=t.paint.get(e).value;return i.kind==="constant"?i.value:r.programConfigurations.get(t.id).getMaxValue(e)}function vq(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function gq(e,t,r,i,n){if(!t[0]&&!t[1])return e;let a=tr.convert(t)._mult(n);r==="viewport"&&a._rotate(-i);let o=[];for(let s of e)o.push(s.sub(a));return o}function hbr(e){let t=[];for(let r=0;rjne(n,t,r,i))}function $ne(e,{width:t,height:r},i,n){if(!n)n=new Uint8Array(t*r*i);else if(n instanceof Uint8ClampedArray)n=new Uint8Array(n.buffer);else if(n.length!==t*r*i)throw RangeError(`mismatched image size. expected: ${n.length} but got: ${t*r*i}`);return e.width=t,e.height=r,e.data=n,e}function Zit(e,{width:t,height:r},i){if(t===e.width&&r===e.height)return;let n=$ne({},{width:t,height:r},i);Wne(e,n,{x:0,y:0},{x:0,y:0},{width:Math.min(e.width,t),height:Math.min(e.height,r)},i),e.width=t,e.height=r,e.data=n.data}function Wne(e,t,r,i,n,a){if(n.width===0||n.height===0)return t;if(n.width>e.width||n.height>e.height||r.x>e.width-n.width||r.y>e.height-n.height)throw RangeError("out of range source coordinates for image copy");if(n.width>t.width||n.height>t.height||i.x>t.width-n.width||i.y>t.height-n.height)throw RangeError("out of range destination coordinates for image copy");let o=e.data,s=t.data;if(o===s)throw Error("srcData equals dstData, so image is already copied");for(let l=0;l{t[e.evaluationKey]=l;let u=e.expression.evaluate(t);n.setPixel(o/4/r,s/4,u)};if(e.clips)for(let o=0,s=0;o80*r){s=e[0],l=e[1];let c=s,f=l;for(let h=r;hc&&(c=p),d>f&&(f=d)}u=Math.max(c-s,f-l),u=u===0?0:32767/u}return Lie(a,o,s,l,u),o}function int(e,t,r,i,n){let a=null;if(n===Jbr(e,t,r,i)>0)for(let o=t;o=t;o-=i)a=bet(o/i|0,e[o],e[o+1],a);return a&&nC(a,a.next)&&(oC(a),a=a.next),a}function o3(e,t=e){let r=t===e,i=e,n;do n=!1,i!==i.next&&(iC.size===0||!iC.has(i))&&(nC(i,i.next)||ju(i.prev,i,i.next)===0)?((r||i===t)&&(t=i.prev),Fie=!0,oC(i),i=i.prev,n=!0):(r||i!==t)&&(i=i.next,n=!r);while(n||i!==t);return t}function Lie(e,t,r,i,n){n&&$br(e,r,i,n);let a=e,o=!1;for(;e.prev!==e.next;){let s=e.prev,l=e.next;if(ju(s,e,l)<0&&(n?zbr(e,r,i,n):Rbr(e))){t.push(s.i,e.i,l.i),oC(e),e=l,a=l;continue}if(e=l,e===a){if(Fie=!1,e=o3(e),Fie){a=e;continue}if(!o){e=Bbr(e,t),a=e,o=!0;continue}qbr(e,t,r,i,n);break}}}function Rbr(e){let t=e.prev,r=e,i=e.next,n=t.x,a=r.x,o=i.x,s=t.y,l=r.y,u=i.y,c=Math.min(n,a,o),f=Math.min(s,l,u),h=Math.max(n,a,o),p=Math.max(s,l,u),d=i.next;for(;d!==t;){if(d.x>=c&&d.x<=h&&d.y>=f&&d.y<=p&&(n!==d.x||s!==d.y)&&FB(n,s,a,l,o,u,d.x,d.y)&&ju(d.prev,d,d.next)>=0)return!1;d=d.next}return!0}function zbr(e,t,r,i){let n=e.prev,a=e,o=e.next,s=n.x,l=a.x,u=o.x,c=n.y,f=a.y,h=o.y,p=Math.min(s,l,u),d=Math.min(c,f,h),v=Math.max(s,l,u),m=Math.max(c,f,h),g=zie(p,d,t,r,i),w=zie(v,m,t,r,i),_=e.prevZ;for(;_&&_.z>=g;){if(_.x>=p&&_.x<=v&&_.y>=d&&_.y<=m&&_!==o&&(s!==_.x||c!==_.y)&&FB(s,c,l,f,u,h,_.x,_.y)&&ju(_.prev,_,_.next)>=0)return!1;_=_.prevZ}let b=e.nextZ;for(;b&&b.z<=w;){if(b.x>=p&&b.x<=v&&b.y>=d&&b.y<=m&&b!==o&&(s!==b.x||c!==b.y)&&FB(s,c,l,f,u,h,b.x,b.y)&&ju(b.prev,b,b.next)>=0)return!1;b=b.nextZ}return!0}function Bbr(e,t){let r=e,i=!1;do{let n=r.prev,a=r.next.next;ant(n,r,r.next,a,!1)&&aC(n,a)&&aC(a,n)&&(t.push(n.i,r.i,a.i),oC(r),oC(r.next),r=e=a,i=!0),r=r.next}while(r!==e);return i?o3(r):r}function qbr(e,t,r,i,n){let a=e;do{let o=a.next.next;for(;o!==a.prev;){if(a.i!==o.i&&Xbr(a,o)){let s=ont(a,o);a=o3(a,a.next),s=o3(s,s.next),Lie(a,t,r,i,n),Lie(s,t,r,i,n);return}o=o.next}a=a.next}while(a!==e)}function Obr(e,t,r,i){let n=[];for(let a=0,o=t.length;ao&&(o=r.x),r.ys&&(s=r.y),c.xo&&(o=c.x),c.ys&&(s=c.y),r=c}while(++l<16&&r!==t);Rie[i]=r;let u=i*4;ru[u]=n,ru[u+1]=a,ru[u+2]=o,ru[u+3]=s}while(r!==t)}function Gbr(e,t){let r=e.z*4;t.xru[r+2]&&(ru[r+2]=t.x),t.y>ru[r+3]&&(ru[r+3]=t.y)}function yet(e){let t=Rie[e];for(;t.prev.next!==t;)t=t.next;return Rie[e]=t,t}function xet(e){let t=Iie[e];for(;t.prev.next!==t;)t=t.next;return Iie[e]=t,t}function Hbr(e,t){let r=t,i=e.x,n=e.y,a=-1/0,o;if(nC(e,r))return r;for(let h=0,p=0;hru[p+3]||ru[p]>i||ru[p+2]<=a)continue;let d=yet(h);r=xet(h);do{if(r.prev.next===r){if(nC(e,r.next))return r.next;if(n<=r.y&&n>=r.next.y&&r.next.y!==r.y){let v=r.x+(n-r.y)*(r.next.x-r.x)/(r.next.y-r.y);if(v<=i&&v>a&&(a=v,o=r.xi||ru[p+3]c)continue;let d=yet(h);r=xet(h);do{if(r.prev.next===r&&i>=r.x&&r.x>=s&&i!==r.x&&FB(ni)&&(vo.x||r.x===o.x&&jbr(o,r)))&&(o=r,f=v)}r=r.next}while(r!==d)}return o}function jbr(e,t){return ju(e.prev,e,t.prev)<0&&ju(t.next,e,e.next)<0}function $br(e,t,r,i){let n=e,a=0;do n.z=zie(n.x,n.y,t,r,i),tp[a++]=n,n=n.next;while(n!==e);Wbr(a);let o=null;for(let s=0;s=0&&tp[n].z>i;)tp[n+1]=tp[n],n--;tp[n+1]=r}return}Y_.length>>a&255]++;let o=0;for(let s=0;s<256;s++){let l=Sk[s];Sk[s]=o,o+=l}for(let s=0;s>>a&255]++;i[u]=t[s],n[u]=l}}function zie(e,t,r,i,n){return e=(e-r)*n|0,t=(t-i)*n|0,e=(e|e<<8)&16711935,e=(e|e<<4)&252645135,e=(e|e<<2)&858993459,e=(e|e<<1)&1431655765,t=(t|t<<8)&16711935,t=(t|t<<4)&252645135,t=(t|t<<2)&858993459,t=(t|t<<1)&1431655765,e|t<<1}function Ybr(e){let t=e,r=e;do(t.x=(e-o)*(a-s)&&(e-o)*(i-s)>=(r-o)*(t-s)&&(r-o)*(a-s)>=(n-o)*(i-s)}function Xbr(e,t){let r=nC(e,t)&&ju(e.prev,e,e.next)>0&&ju(t.prev,t,t.next)>0;return e.next.i!==t.i&&(r||aC(e,t)&&aC(t,e)&&(ju(e.prev,e,t.prev)!==0||ju(e,t.prev,t)!==0))&&!Zbr(e,t)&&(r||Kbr(e,t))}function ju(e,t,r){return(t.y-e.y)*(r.x-t.x)-(t.x-e.x)*(r.y-t.y)}function nC(e,t){return e.x===t.x&&e.y===t.y}function ant(e,t,r,i,n=!0){let a=ju(e,t,r),o=ju(e,t,i),s=ju(r,i,e),l=ju(r,i,t);return(a>0&&o<0||a<0&&o>0)&&(s>0&&l<0||s<0&&l>0)?!0:n?!!(a===0&&iB(e,r,t)||o===0&&iB(e,i,t)||s===0&&iB(r,e,i)||l===0&&iB(r,t,i)):!1}function iB(e,t,r){return t.x<=Math.max(e.x,r.x)&&t.x>=Math.min(e.x,r.x)&&t.y<=Math.max(e.y,r.y)&&t.y>=Math.min(e.y,r.y)}function Zbr(e,t){let r=Math.min(e.x,t.x),i=Math.max(e.x,t.x),n=Math.min(e.y,t.y),a=Math.max(e.y,t.y),o=e;do{let s=o.next;if(o.x>i&&s.x>i||o.xa&&s.y>a||o.y=0&&ju(e,e.prev,t)>=0:ju(e,t,e.prev)<0||ju(e,e.next,t)<0}function Kbr(e,t){let r=e,i=!1,n=(e.x+t.x)/2,a=(e.y+t.y)/2;do{let o=r.next;r.y>a!=o.y>a&&n<(o.x-r.x)*(a-r.y)/(o.y-r.y)+r.x&&(i=!i),r=o}while(r!==e);return i}function ont(e,t){let r=Bie(e.i,e.x,e.y),i=Bie(t.i,t.x,t.y),n=e.next,a=t.prev;return e.next=t,t.prev=e,r.next=n,n.prev=r,i.next=r,r.prev=i,a.next=i,i.prev=a,i}function bet(e,t,r,i){let n=Bie(e,t,r);return i?(n.next=i.next,n.prev=i,i.next.prev=n,i.next=n):(n.prev=n,n.next=n),n}function oC(e){e.next.prev=e.prev,e.prev.next=e.next,e.prevZ&&(e.prevZ.nextZ=e.nextZ),e.nextZ&&(e.nextZ.prevZ=e.prevZ),Pie&&Gbr(e.prev,e.next)}function Bie(e,t,r){return{i:e,x:t,y:r,prev:null,next:null,z:0,prevZ:null,nextZ:null}}function Jbr(e,t,r,i){let n=0;for(let a=t,o=r-i;a0?(Math.floor(S/n)+1)*n:(Math.ceil(S/n)-1)*n,y=w>0?(Math.floor(x/n)+1)*n:(Math.ceil(x/n)-1)*n,E=Math.abs(S-A),M=Math.abs(x-y),C=Math.abs(S-p),k=Math.abs(x-d),D=v?E/_:1/0,L=m?M/b:1/0;if((C<=E||!v)&&(k<=M||!m))break;if(D0?(r.push(n),r.push(o),r.push(a)):(r.push(n),r.push(a),r.push(o))}return r}function i_r(e,t,r){if(t.length===0)throw Error("Subdivision vertex ring is empty.");let i=0,n=e[t[0]*2];for(let l=1;l=0?o-1:a-1,u=(s+1)%a,c=e[t[l]*2],f=e[t[l]*2+1],h=e[t[u]*2],p=e[t[u]*2+1],d=e[t[o]*2],v=e[t[o]*2+1],m=e[t[s]*2],g=e[t[s]*2+1],w=!1;if(ch)w=!1;else{let _=g-v,b=-(m-d),S=v((h-d)*_+(p-v)*b)*S&&(w=!0)}if(w){let _=t[l],b=t[o],S=t[s];_!==b&&_!==S&&b!==S&&r.push(S,b,_),o--,o<0&&(o=a-1)}else{let _=t[u],b=t[o],S=t[s];_!==b&&_!==S&&b!==S&&r.push(S,b,_),s++,s>=a&&(s=0)}if(l===u)break}}function unt(e,t,r,i,n,a,o,s,l){let u=n.length/2,c=o&&s&&l;if(uXs.MAX_VERTEX_ARRAY_LENGTH&&(u=e.createNewSegment(t,r),l=s.count,v=!0,m=!0,g=!0,c=0);let _=Hk(o,i,a,s,h,v,u),b=Hk(o,i,a,s,p,m,u),S=Hk(o,i,a,s,d,g,u);r.emplaceBack(c+_-l,c+b-l,c+S-l),u.primitiveLength++}}function a_r(e,t,r,i,n,a){let o=[];for(let f=0;fXs.MAX_VERTEX_ARRAY_LENGTH&&(u=e.createNewSegment(t,r),l=s.count,v=!0,m=!0,c=0);let w=Hk(o,i,a,s,p,v,u),_=Hk(o,i,a,s,d,m,u);r.emplaceBack(c+w-l,c+_-l),u.primitiveLength++}}function Nie(e,t){return e.x===t.x&&(e.x<0||e.x>8192)||e.y===t.y&&(e.y<0||e.y>8192)}function Tet(e){return e.every(t=>t.x<0)||e.every(t=>t.x>8192)||e.every(t=>t.y<0)||e.every(t=>t.y>8192)}function dnt(e){let t=e.length;if(t<=1)return[e];let r=[],i,n;for(let a=0;ab_r(r,t))}function x_r(e,t){let r=m_r(Br/2,Br/2,t),i=Mo.fromLngLat(r).meterInMercatorCoordinateUnits(),n=(1<1&&t[0].x===t[t.length-1].x&&t[0].y===t[t.length-1].y;)t.pop();return t}function w_r(e,t,r,i,n){let a=t.sub(r),o=i.sub(r),s=a.mag(),l=o.mag();if(s<1e-6||l<1e-6){e.push(r.clone());return}a._div(s),o._div(l);let u=a.x*o.x+a.y*o.y;if(Math.abs(u)>Math.cos(5*Math.PI/180)){e.push(r.clone());return}let c=.2,f=Math.min(n,s*c,l*c),h=r.add(a.mult(f)),p=r.add(o.mult(f)),d=Math.sqrt((1+u)/2),v=r.add(a.add(o)._unit()._mult(f/d)),m=h.sub(v).angleWith(p.sub(v)),g=Math.max(2,Math.ceil(Math.abs(m)/(Math.PI/6)-1e-6));for(let w=0;w<=g;w++)e.push(h.rotateAround(w/g*m,v))}function Ek(e,t,r,i,n,a,o,s){e.emplaceBack(t,r,Math.floor(i*Ore)*2+o,n*Ore*2,a*Ore*2,Math.round(s))}function T_r(e,t){for(let r=0;r0?t+2*e:e}function G_r(e){return/[\u0600-\u0604\u0606-\u060B\u060D-\u061A\u061C-\u061E\u0620-\u063F\u0641-\u064A\u0656-\u066F\u0671-\u06DC\u06DE-\u070D\u070F-\u074A\u074D-\u077F\u07C0-\u07FA\u07FD-\u07FF\u0840-\u085B\u085E\u0860-\u086A\u0870-\u0891\u0897-\u08E1\u08E3-\u08FF\u1800\u1801\u1804\u1806-\u1819\u1820-\u1878\u1880-\u18AA\uA840-\uA877\uFB50-\uFD3D\uFD40-\uFDCF\uFDF0-\uFDFF\uFE70-\uFE74\uFE76-\uFEFC]|\uD802[\uDEC0-\uDEE6\uDEEB-\uDEF6\uDF80-\uDF91\uDF99-\uDF9C\uDFA9-\uDFAF]|\uD803[\uDD00-\uDD27\uDD30-\uDD39\uDE60-\uDE7E\uDEC2-\uDEC7\uDED0-\uDED8\uDEFA-\uDEFF\uDF30-\uDF59\uDF70-\uDF89\uDFB0-\uDFCB]|\uD805[\uDE60-\uDE6C]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9C-\uDC9F]|\uD83A[\uDD00-\uDD4B\uDD50-\uDD59\uDD5E\uDD5F]|\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\uDEF0\uDEF1]/gim.test(String.fromCodePoint(e))}function H_r(e){return/[\u0591-\u05C7\u05D0-\u05EA\u05EF-\u05F4\u0600-\u0604\u0606-\u060B\u060D-\u061A\u061C-\u061E\u0620-\u063F\u0641-\u064A\u0656-\u066F\u0671-\u06DC\u06DE-\u070D\u070F-\u074A\u074D-\u07B1\u07C0-\u07FA\u07FD-\u082D\u0830-\u083E\u0840-\u085B\u085E\u0860-\u086A\u0870-\u0891\u0897-\u08E1\u08E3-\u08FF\uFB1D-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFD3D\uFD40-\uFDCF\uFDF0-\uFDFF\uFE70-\uFE74\uFE76-\uFEFC]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC57-\uDC9E\uDCA7-\uDCAF\uDCE0-\uDCF2\uDCF4\uDCF5\uDCFB-\uDD1B\uDD1F-\uDD39\uDD3F-\uDD59\uDD80-\uDDB7\uDDBC-\uDDCF\uDDD2-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE38-\uDE3A\uDE3F-\uDE48\uDE50-\uDE58\uDE60-\uDE9F\uDEC0-\uDEE6\uDEEB-\uDEF6\uDF00-\uDF35\uDF39-\uDF55\uDF58-\uDF72\uDF78-\uDF91\uDF99-\uDF9C\uDFA9-\uDFAF]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDCFA-\uDD27\uDD30-\uDD39\uDD40-\uDD65\uDD69-\uDD85\uDD8E\uDD8F\uDE60-\uDE7E\uDE80-\uDEA9\uDEAB-\uDEAD\uDEB0\uDEB1\uDEC2-\uDEC7\uDED0-\uDED8\uDEFA-\uDF27\uDF30-\uDF59\uDF70-\uDF89\uDFB0-\uDFCB\uDFE0-\uDFF6]|\uD83A[\uDC00-\uDCC4\uDCC7-\uDCD6\uDD00-\uDD4B\uDD50-\uDD59\uDD5E\uDD5F]|\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\uDEF0\uDEF1]/gim.test(String.fromCodePoint(e))}function Ant(e){return/[\u02EA\u02EB\u1100-\u11FF\u2E80-\u2FDF\u3000-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u4DBF\u4E00-\uA48C\uA490-\uA4C6\uA960-\uA97C\uAC00-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFE10-\uFE1F\uFE30-\uFE4F\uFF00-\uFFEF]|\uD81B[\uDFE0-\uDFFF]|[\uD81C-\uD822\uD840-\uD868\uD86A-\uD86D\uD86F-\uD872\uD874-\uD879\uD880-\uD883\uD885-\uD88C][\uDC00-\uDFFF]|\uD823[\uDC00-\uDCD5\uDCFF-\uDD1E\uDD80-\uDDF2]|\uD82B[\uDFF0-\uDFFF]|\uD82C[\uDC00-\uDEFB]|\uD83C[\uDE00-\uDEFF]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEAD\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0\uDFF0-\uDFFF]|\uD87B[\uDC00-\uDE5D]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A\uDF50-\uDFFF]|\uD88D[\uDC00-\uDC79]/gim.test(String.fromCodePoint(e))}function j_r(e){return/[\u02EA\u02EB\u2E80-\u2FDF\u2FF0-\u303F\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FD-\u30FF\u3105-\u312F\u31A0-\u4DBF\u4E00-\uA48C\uA490-\uA4C6\uF900-\uFA6D\uFA70-\uFAD9\uFE10-\uFE1F\uFE30-\uFE4F\uFF00-\uFFEF]|\uD81B[\uDFE0-\uDFFF]|[\uD81C-\uD822\uD840-\uD868\uD86A-\uD86D\uD86F-\uD872\uD874-\uD879\uD880-\uD883\uD885-\uD88C][\uDC00-\uDFFF]|\uD823[\uDC00-\uDCD5\uDCFF-\uDD1E\uDD80-\uDDF2]|\uD82B[\uDFF0-\uDFFF]|\uD82C[\uDC00-\uDEFB]|\uD83C[\uDE00-\uDEFF]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEAD\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0\uDFF0-\uDFFF]|\uD87B[\uDC00-\uDE5D]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A\uDF50-\uDFFF]|\uD88D[\uDC00-\uDC79]/gim.test(String.fromCodePoint(e))}function wq(e){return/[\u02EA\u02EB\u1100-\u11FF\u1401-\u167F\u18B0-\u18FF\u2065\u20DD-\u20E0\u20E2-\u20E4\u2B97\u2BF0-\u2BFF\u2E50\u2E51\u2E80-\u3007\u3012\u3013\u3020-\u302F\u3031-\u30FB\u30FD-\uA4CF\uA960-\uA97F\uAC00-\uD7FF\uF900-\uFAFF\uFE10-\uFE1F\uFE30-\uFE48\uFE50-\uFE57\uFE5F-\uFE62\uFE67-\uFE6F\uFF00-\uFF07\uFF0A-\uFF0C\uFF0E-\uFF19\uFF1F-\uFF3A\uFF3C\uFF3E\uFF40-\uFF5A\uFFE0-\uFFE2\uFFE4-\uFFE7\uFFF0-\uFFF8]|\uD802[\uDD80-\uDD9F]|\uD805[\uDD80-\uDDFF]|\uD806[\uDE00-\uDEBF]|[\uD80C-\uD810\uD81C-\uD822\uD83C\uD83D\uD840-\uD87E\uD880-\uD8BE][\uDC00-\uDFFF]|\uD811[\uDC00-\uDE7F]|\uD81B[\uDFE0-\uDFFF]|\uD823[\uDC00-\uDDFF]|\uD82B[\uDFF0-\uDFFF]|\uD82C[\uDC00-\uDEFF]|\uD833[\uDEC0-\uDFCF]|\uD834[\uDC00-\uDDFF\uDEE0-\uDF7F]|\uD836[\uDC00-\uDEAF]|\uD83E[\uDD00-\uDEFF]|[\uD87F\uD8BF][\uDC00-\uDFFD]/gim.test(String.fromCodePoint(e))}function $_r(e){return/[\xA7\xA9\xAE\xB1\xBC-\xBE\xD7\xF7\u2016\u2020\u2021\u2030\u2031\u203B\u203C\u2042\u2047-\u2049\u2051\u2100-\u218F\u221E\u2234\u2235\u2300-\u2307\u230C-\u231F\u2324-\u2328\u232B\u237D-\u239A\u23BE-\u23CD\u23CF\u23D1-\u23DB\u23E2-\u2422\u2424-\u24FF\u25A0-\u2619\u2620-\u2767\u2776-\u2793\u2B12-\u2B2F\u2B50-\u2B59\u2BB8-\u2BEB\u3000-\u303F\u30A0-\u30FF\uE000-\uF8FF\uFE30-\uFE6F\uFF00-\uFFEF\uFFFC\uFFFD]|[\uDB80-\uDBFF][\uDC00-\uDFFF]/gim.test(String.fromCodePoint(e))}function W_r(e){return/[\r\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0600-\u0605\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DD\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u070F\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0890\u0891\u0897-\u089F\u08CA-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D57\u0D62\u0D63\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E33-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB3-\u0EBC\u0EC8-\u0ECE\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1037\u1039-\u103E\u1056-\u1059\u105E-\u1060\u1071-\u1074\u1082\u1084-\u1086\u108D\u109D\u1100-\u11FF\u135D-\u135F\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u180F\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60\u1A62\u1A65-\u1A7C\u1A7F\u1AB0-\u1ADD\u1AE0-\u1AEB\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA953\uA960-\uA97C\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFF9E\uFF9F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDD69-\uDD6D\uDEAB\uDEAC\uDEFA-\uDEFF\uDF46-\uDF50\uDF82-\uDF85]|\uD804[\uDC00-\uDC02\uDC38-\uDC46\uDC70\uDC73\uDC74\uDC7F-\uDC82\uDCB0-\uDCBA\uDCBD\uDCC2\uDCCD\uDD00-\uDD02\uDD27-\uDD34\uDD45\uDD46\uDD73\uDD80-\uDD82\uDDB3-\uDDC0\uDDC2\uDDC3\uDDC9-\uDDCC\uDDCE\uDDCF\uDE2C-\uDE37\uDE3E\uDE41\uDEDF-\uDEEA\uDF00-\uDF03\uDF3B\uDF3C\uDF3E-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF57\uDF62\uDF63\uDF66-\uDF6C\uDF70-\uDF74\uDFB8-\uDFC0\uDFC2\uDFC5\uDFC7-\uDFCA\uDFCC-\uDFD2\uDFE1\uDFE2]|\uD805[\uDC35-\uDC46\uDC5E\uDCB0-\uDCC3\uDDAF-\uDDB5\uDDB8-\uDDC0\uDDDC\uDDDD\uDE30-\uDE40\uDEAB-\uDEB7\uDF1D-\uDF1F\uDF22-\uDF2B]|\uD806[\uDC2C-\uDC3A\uDD30-\uDD35\uDD37\uDD38\uDD3B-\uDD43\uDDD1-\uDDD7\uDDDA-\uDDE0\uDDE4\uDE01-\uDE0A\uDE33-\uDE39\uDE3B-\uDE3E\uDE47\uDE51-\uDE5B\uDE84-\uDE99\uDF60-\uDF67]|\uD807[\uDC2F-\uDC36\uDC38-\uDC3F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD8A-\uDD8E\uDD90\uDD91\uDD93-\uDD97\uDEF3-\uDEF6\uDF00-\uDF03\uDF34-\uDF3A\uDF3E-\uDF42\uDF5A]|\uD80D[\uDC40\uDC47-\uDC55]|\uD818[\uDD1E-\uDD2F]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDD63\uDD67-\uDD6A\uDF4F\uDF51-\uDF87\uDF8F-\uDF92\uDFE4\uDFF0\uDFF1]|\uD82F[\uDC9D\uDC9E]|\uD833[\uDF00-\uDF2D\uDF30-\uDF46]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDC8F\uDD30-\uDD36\uDEAE\uDEEC-\uDEEF]|\uD839[\uDCEC-\uDCEF\uDDEE\uDDEF\uDEE3\uDEE6\uDEEE\uDEEF\uDEF5]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uD83C[\uDDE6-\uDDFF\uDFFB-\uDFFF]|\uDB40[\uDC20-\uDC7F\uDD00-\uDDEF]/.test(e)}function Iet(e){return/[\u0E01-\u0E3A\u0E40-\u0E4E\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECE\u0EDC-\u0EDF\u0F00-\u0F47\u0F49-\u0F6C\u0F71-\u0F97\u0F99-\u0FBC\u0FBE-\u0FCC\u0FCE-\u0FD4\u0FD9\u0FDA\u1000-\u103F\u1050-\u108F\u109A-\u109F\u1780-\u17D3\u17D7\u17DC\u17DD\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19DE\u19DF\u1A20-\u1A5E\u1A60-\u1A7C\u1AA0-\u1AAD\u1B00-\u1B4C\u1B4E-\u1B7F\uA980-\uA9CD\uA9D0-\uA9D9\uA9DE-\uA9EF\uA9FA-\uA9FE\uAA60-\uAAC2\uAADB-\uAADF]|\uD805[\uDF00-\uDF1A\uDF1D-\uDF2B\uDF3A\uDF3B\uDF3F-\uDF46]/gim.test(String.fromCodePoint(e))}function Y_r(e,t){return/(?:[\u1039\u17D2\u1A60\u1BAB\u200D\uAAF6]|\uD802\uDE3F|\uD804[\uDD33\uDFD0]|\uD806[\uDD3E\uDE47\uDE99]|\uD807[\uDD45\uDD97\uDF42])$/.test(e)||new RegExp("^\\p{gc=Mc}","u").test(t)}function Q_r(e,t,r){let i=0;for(let n of e.split(";")){let[a,o]=n.split(",").map(l=>parseInt(l,36)),s=i+a;for(let l=s;l{let r=t.codePointAt(0);return{codePoint:r,type:e3r(r),form:null}})}function a3r(e){let t=e.filter(r=>r.type!=="T");for(let r=0;r0&&t3r(t[r-1].type),a=r+1String.fromCodePoint(l3r(r))).join("")}function c3r(e,t,r){var n;let i=t.layout.get("text-transform").evaluate(r,{});return i==="uppercase"?e=e.toLocaleUpperCase():i==="lowercase"&&(e=e.toLocaleLowerCase()),((n=LB.applyArabicShaping)!=null?n:u3r)(e)}function f3r(e,t,r){for(let i of e.sections)i.text=c3r(i.text,t,r);return e}function Nre(e,t,r){let i=r?t.last.points:t.first.points,n=r?i[i.length-1]:i[0];return`${e}:${n.x}:${n.y}`}function h3r(e){let t=e.first.points,r=t.length;for(let a=e.first.next;a;a=a.next)r+=a.points.length-1;let i=Array(r);for(let a=0;a=0&&Y_r(t[i],r)?t[i]+=r:t.push(r)}return t}function p3r(e){let t=new Set;if(Snt){Dk!=null||(Dk=new Intl.Segmenter(void 0,{granularity:"word"}));for(let{index:i}of Dk.segment(e))t.add(i);return t}let r=0;for(let i of e.split(new RegExp("\\b|(?=\\p{Ideo})","u")))t.add(r),r+=i.length;return t}function EC(e){let t=e.codePointAt(0);return e.length>(t>65535?2:1)}function Qne(e){return/\s/u.test(String.fromCodePoint(e))}function Hie(e){for(let t of e)if(wq(t.codePointAt(0)))return!0;return!1}function v3r(e){for(let t of e)if(!g3r(t.codePointAt(0)))return!1;return!0}function g3r(e){return!G_r(e)}function qet(e){return!(wq(e)||$_r(e))}function Ent(e){return new RegExp("\\p{sc=Arab}","u").test(String.fromCodePoint(e))}function knt(e){return H_r(e)}function Cnt(e){for(let t of e)if(knt(t.codePointAt(0)))return!0;return!1}function m3r(e){let t="",r={premature:!0,value:void 0},i=e[Symbol.iterator](),n=i.next(),a=e[Symbol.iterator]();a.next();let o=a.next();for(;!n.done;)(o.done||!qet(o.value.codePointAt(0))||E6[o.value])&&(r.premature||!qet(r.value.codePointAt(0))||E6[r.value])&&E6[n.value]?t+=E6[n.value]:t+=n.value,r={value:n.value,premature:!1},n=i.next(),o=a.next();return t}function Oet(e,t,r,i,n,a){var o;if("fontStack"in t){let s=(o=r[t.fontStack])==null?void 0:o.default,l=s==null?void 0:s[e];if(l)return l.metrics.advance*t.scale+n;let u=0;for(let c of e){let f=s==null?void 0:s[c];f&&(u+=f.metrics.advance*t.scale+n)}return u}{let s=i[t.imageName];return s?s.displaySize[0]*t.scale*24/a+n:0}}function Net(e,t,r,i){let n=(e-t)**2;return i?e1,1e>2,u>2,2wt>1,1>1,1ge>1,1wp>1,1j>1,f>1,hm>1,1>1,u>1,u6>1,1>1,+5,28>1,w>1,1>1,+3,b8>1,1>1,+3,1>3,-1>-1,3>1,1>1,+2,1s>1,1>1,x>1,th>1,1>1,+2,db>1,1>1,+3,3>1,1>1,+2,14qm>1,1>1,+1,4q>1,1e>2,u>2,2>1,+1",canonical:"6f1>-6dx,6dy>-6dx,6ec>-6ed,6ee>-6ed,6ww>2jj,-2ji>2jj,14r4>-1e7l,1e7m>-1e7l,1e7m>-1e5c,1e5d>-1e5b,1e5c>-14qx,14qy>-14qx,14vn>-1ecg,1ech>-1ecg,1edu>-1ecg,1eci>-1ecg,1eda>-1ecg,1eci>-1ecg,1eci>-168q,168r>-168q,168s>-14ye,14yf>-14ye"};function d(ke,_e){var he=0,oe=new Map,Me=_e&&new Map,ye;return ke.split(",").forEach(function ce(ee){if(ee.indexOf("+")!==-1)for(var ae=+ee;ae--;)ce(ye);else{ye=ee;var xe=ee.split(">"),re=xe[0],pe=xe[1];re=String.fromCodePoint(he+=parseInt(re,36)),pe=String.fromCodePoint(he+=parseInt(pe,36)),oe.set(re,pe),_e&&Me.set(pe,re)}}),{map:oe,reverseMap:Me}}var v,m,g;function w(){if(!v){var ke=d(p.pairs,!0),_e=ke.map,he=ke.reverseMap;v=_e,m=he,g=d(p.canonical,!1).map}}function _(ke){return w(),v.get(ke)||null}function b(ke){return w(),m.get(ke)||null}function S(ke){return w(),g.get(ke)||null}var x=r.L,T=r.R,A=r.EN,y=r.ES,E=r.ET,M=r.AN,C=r.CS,k=r.B,D=r.S,L=r.ON,P=r.BN,R=r.NSM,F=r.AL,I=r.LRO,B=r.RLO,O=r.LRE,$=r.RLE,Y=r.PDF,K=r.LRI,j=r.RLI,q=r.FSI,Q=r.PDI;function U(ke,_e){for(var he=125,oe=new Uint32Array(ke.length),Me=0;Me0)Oe--;else if(et>0){for(Qe=0;!be[be.length-1]._isolate;)be.pop();var _t=be[be.length-1]._isolInitIndex;_t!=null&&(ae.set(_t,bt),ae.set(bt,_t)),be.pop(),et--}Ie=be[be.length-1],ee[bt]=Ie._level,Ie._override&&ce(bt,Ie._override)}else ut&Y?(Oe===0&&(Qe>0?Qe--:!Ie._isolate&&be.length>1&&(be.pop(),Ie=be[be.length-1])),ee[bt]=Ie._level):ut&k&&(ee[bt]=re.level);else ee[bt]=Ie._level,Ie._override&&ut!==P&&ce(bt,Ie._override)}for(var Ne=[],Ue=null,Ge=re.start;Ge<=re.end;Ge++){var je=oe[Ge];if(!(je&s)){var Re=ee[Ge],Ve=je&n,ct=je===Q;Ue&&Re===Ue._level?(Ue._end=Ge,Ue._endsWithIsolInit=Ve):Ne.push(Ue={_start:Ge,_end:Ge,_level:Re,_startsWithPDI:ct,_endsWithIsolInit:Ve})}}for(var Tt=[],Zt=0;Zt=0;Je--)if(!(oe[Je]&s)){xt=ee[Je];break}var Ct=Kt[Kt.length-1],nr=ee[Ct],dr=re.level;if(!(oe[Ct]&n)){for(var Vr=Ct+1;Vr<=re.end;Vr++)if(!(oe[Vr]&s)){dr=ee[Vr];break}}Tt.push({_seqIndices:Kt,_sosType:Math.max(xt,st)%2?T:x,_eosType:Math.max(dr,nr)%2?T:x})}}for(var ui=0;ui=0;Hn--)if(!(oe[Pr[Hn]]&s)){gn=oe[Pr[Hn]];break}ce(va,gn&(n|Q)?L:gn)}}if(ye.get(A))for(var oa=0;oa=-1;bo--){var Os=bo===-1?Xi:oe[Pr[bo]];if(Os&a){Os===F&&ce(vs,M);break}}}if(ye.get(F))for(var go=0;go=0&&(Aa=oe[Pr[wl]],Aa&s);wl--);for(var Tu=lo+1;Tu=0&&oe[Pr[Le]]&(E|s);Le--)ce(Pr[Le],A);for(fl++;fl=0&&oe[Pr[kt]]&s;kt--)ce(Pr[kt],L);for(var Qt=ot+1;Qt=0;Xn--){var to=sn[Xn].char;if(to===ga||to===b(S(bn))||_(S(to))===bn){Si.push([sn[Xn].seqIndex,jn]),sn.length=Xn;break}}}Si.sort(function(_o,hu){return _o[0]-hu[0]});for(var uo=0;uo=0;co--){var zn=Pr[co];if(oe[zn]&ri){var xa=oe[zn]&Zr?T:x;Co=xa===vn?vn:xa;break}}}if(Co){if(oe[Pr[Oo]]=oe[Pr[gs]]=Co,Co!==vn){for(var ms=Oo+1;ms=0;Au--)if(oe[Pr[Au]]&s)Vl=Au;else{cu=oe[Pr[Au]]&Zr?T:x;break}for(var Mu=Sn,mc=Qs+1;mc=0&&f(ke[ks])&l;ks--)ee[ks]=re.level}}return{levels:ee,paragraphs:xe};function fu(_o,hu){for(var Jo=_o;Jo=ee&&f(ke[re])&l;re--)xe[re]=ce.level;for(var pe=ce.level,we=1/0,Fe=0;Fepe&&(pe=Ee),Ee=we;Ce--)for(var be=0;be=Ce){for(var Ie=be;be+1=Ce;)be++;be>Ie&&ye.push([Ie+ee,be+ee])}}}),ye}function ue(ke,_e,he,oe){var Me=ge(ke,_e,he,oe),ye=[].concat(ke);return Me.forEach(function(ce,ee){ye[ee]=(_e.levels[ce]&1?H(ke[ce]):null)||ke[ce]}),ye.join("")}function ge(ke,_e,he,oe){for(var Me=te(ke,_e,he,oe),ye=[],ce=0;ce=0;i--){let n=tae.getBidiCharTypeName(e[i].text[0]);A3r.has(n)?(e[i].level=t,r=!0):r&&T3r.has(n)?e[i].level=t:r=!1}}function E3r(e,t){let r=t,i=1/0;for(let{level:a}of e)a>r&&(r=a),(a|1)=i;a--)for(let o=0;o=a;)s++;for(let l=o,u=s;lt>=n.start&&t<=n.end))==null?void 0:r.level)!=null?i:0}function D3r(e,t,r,i,n){let a=M3r(e,t,i,n);S3r(a,r);let o="",s=[];for(let l of E3r(a,r)){if(w3r.test(l.text))continue;let u=k3r(l);o+=u,s.push(...Array(u.length).fill(l.index))}return{text:o,sourceIndices:s}}function F3r(e,t){let r=t.filter(a=>a>0&&aa-o),n=[];for(let a=0;a+1n.start))).map(([n,a])=>D3r(e,r,C3r(i,n),n,a))}function L3r(e,t){return Fnt(e,t).map(r=>r.text)}function P3r(e,t,r){return Fnt(e,r).map(i=>[i.text,i.sourceIndices.map(n=>{var a;return(a=t[n])!=null?a:0})])}function I3r(e,t,r){let i=r.buf,n,a;if(a=i[r.pos++],n=(a&112)>>4,a<128||(a=i[r.pos++],n|=(a&127)<<3,a<128)||(a=i[r.pos++],n|=(a&127)<<10,a<128)||(a=i[r.pos++],n|=(a&127)<<17,a<128)||(a=i[r.pos++],n|=(a&127)<<24,a<128)||(a=i[r.pos++],n|=(a&1)<<31,a<128))return R3r(e,n,t);throw Error("Expected varint not more than 10 bytes")}function R3r(e,t,r){return r?t*4294967296+(e>>>0):(t>>>0)*4294967296+(e>>>0)}function z3r(e,t,r){let i="",n=t;for(;n239?4:a>223?3:a>191?2:1;if(n+s>r)break;let l,u,c;s===1?a<128&&(o=a):s===2?(l=e[n+1],(l&192)==128&&(o=(a&31)<<6|l&63,o<=127&&(o=null))):s===3?(l=e[n+1],u=e[n+2],(l&192)==128&&(u&192)==128&&(o=(a&15)<<12|(l&63)<<6|u&63,(o<=2047||o>=55296&&o<=57343)&&(o=null))):s===4&&(l=e[n+1],u=e[n+2],c=e[n+3],(l&192)==128&&(u&192)==128&&(c&192)==128&&(o=(a&15)<<18|(l&63)<<12|(u&63)<<6|c&63,(o<=65535||o>=1114112)&&(o=null))),o===null?(o=65533,s=1):o>65535&&(o-=65536,i+=String.fromCharCode(o>>>10&1023|55296),o=56320|o&1023),i+=String.fromCharCode(o),n+=s}return i}function B3r(e,t,r){e===1&&r.readMessage(q3r,t)}function q3r(e,t,r){if(e===3){let{id:i,bitmap:n,width:a,height:o,left:s,top:l,advance:u}=r.readMessage(O3r,{});t.push({id:i,bitmap:new mq({width:a+6,height:o+6},n),metrics:{width:a,height:o,left:s,top:l,advance:u}})}}function O3r(e,t,r){e===1?t.id=r.readVarint():e===2?t.bitmap=r.readBytes():e===3?t.width=r.readVarint():e===4?t.height=r.readVarint():e===5?t.left=r.readSVarint():e===6?t.top=r.readSVarint():e===7&&(t.advance=r.readVarint())}function Pnt(e){return new Lnt(e).readFields(B3r,[])}function kC(e){return typeof(e==null?void 0:e.renderWithWebGL)=="function"}function Int(e){let{userImage:t}=e;return!(t!=null&&t.render)||!t.render()?!1:(kC(t.data)||e.data.replace(new Uint8Array(t.data.buffer)),!0)}function rae(e){let t=0,r=0;for(let o of e)t+=o.w*o.h,r=Math.max(r,o.w);e.sort((o,s)=>s.h-o.h);let i=[{x:0,y:0,w:Math.max(Math.ceil(Math.sqrt(t/.95)),r),h:1/0}],n=0,a=0;for(let o of e)for(let s=i.length-1;s>=0;s--){let l=i[s];if(!(o.w>l.w||o.h>l.h)){if(o.x=l.x,o.y=l.y,a=Math.max(a,o.y+o.h),n=Math.max(n,o.x+o.w),o.w===l.w&&o.h===l.h){let u=i.pop();u&&s=r;a--)t.push(a);r=i+1}else{for(let a=r;ae.toCodeUnitIndex(a)),i=LB.isParsed()?LB:null;if(e.sections.length===1)return i?i.processBidirectionalText(e.toString(),r).map(a=>jet(a,e.sections,[...a].map(()=>0))):L3r(e.toString(),r).map(a=>Wie([...a],e.sections,[...a].map(()=>0)));let n=H3r(e);return i?i.processStyledBidirectionalText(e.text,n,r).map(([a,o])=>jet(a,e.sections,o)):P3r(e.text,n,r).map(([a,o])=>{let s=[...a];return Wie(s,e.sections,znt(s).map(l=>{var u;return(u=o[l])!=null?u:0}))})}function Wie(e,t,r){var a;let i=new eae(e.join(""),t,[]),n=0;for(let o of i.graphemes())i.sectionIndex.push((a=r[n])!=null?a:0),n+=[...o].length;return i}function znt(e){let t=[],r=0;for(let i of e)t.push(r),r+=i.length;return t}function jet(e,t,r){let i=[...e],n=znt(i),a=G3r(i);return Wie(a.map(o=>i[o]),t,a.map(o=>{var s;return(s=r[n[o]])!=null?s:0}))}function aB(e,t,r,i,n,a,o,s,l,u,c,f,h,p,d){let v=eae.fromFeature(e,n);f===2&&v.verticalizePunctuation();let m=v.determineLineBreaks(u,a,t,i,p),g=Cnt(v.text)?j3r(v,m):V3r(v,m),w=[],_={positionedLines:w,text:v.toString(),top:c[1],bottom:c[1],left:c[0],right:c[0],writingMode:f,iconsInText:!1,verticalizable:!1};return ewr(_,t,r,i,g,o,s,l,f,u,h,d),!U3r(w)&&_}function CC(e){let t=.5,r=.5;switch(e){case"right":case"top-right":case"bottom-right":t=1;break;case"left":case"top-left":case"bottom-left":t=0}switch(e){case"bottom":case"bottom-right":case"bottom-left":r=1;break;case"top":case"top-right":case"top-left":r=0}return{horizontalAlign:t,verticalAlign:r}}function $3r(e,t,r){let i=t.getMaxScale()*24,{maxImageWidth:n,maxImageHeight:a}=t.getMaxImageSize(e),o=Math.max(i,a*r);return{verticalLineContentWidth:Math.max(i,n*r),horizontalLineContentHeight:o}}function Bnt(e){switch(e){case"top":return 0;case"center":return .5;default:return 1}}function W3r(e,t,r,i){var a,o;if(e!=null&&e.rect)return e;let n=(o=(a=t[r.fontStack])==null?void 0:a.default)==null?void 0:o[i];return n?{rect:null,metrics:n.metrics}:null}function Y3r(e,t,r){return!(e===1||!t&&!wq(r)||t&&(Qne(r)||Ent(r)))}function gB(e){return new RegExp("\\p{Nd}","u").test(String.fromCodePoint(e))}function qnt(e){return new RegExp("\\p{Lu}","u").test(String.fromCodePoint(e))}function X3r(e){return/[\p{P}\p{S}]/u.test(String.fromCodePoint(e))}function Z3r(e){let t=e.some(gB)&&e.every(i=>gB(i)||X3r(i)),r=e.length<=3&&e.every(i=>qnt(i)||gB(i));return t||r}function K3r(e){return(gB(e)||qnt(e))&&!Ent(e)}function J3r(e,t){let r=!1;for(let i=0;ia.codePointAt(0)),i=r.map(wq),n=a=>!i[a]&&!Qne(r[a])&&!("imageName"in e.getSection(a));for(let a=0;au){let h=Math.ceil(i/u);r*=h/n,n=h}return{x1:t,y1:r,x2:t+i,y2:r+n}}function $et(e,t,r,i,n,a){let o=e.image,s;if(o.content){let m=o.content,g=o.pixelRatio||1;s=[m[0]/g,m[1]/g,o.displaySize[0]-m[2]/g,o.displaySize[1]-m[3]/g]}let l=t.left*a,u=t.right*a,c,f,h,p;r==="width"||r==="both"?(p=n[0]+l-i[3],f=n[0]+u+i[1]):(p=n[0]+(l+u-o.displaySize[0])/2,f=p+o.displaySize[0]);let d=t.top*a,v=t.bottom*a;return r==="height"||r==="both"?(c=n[1]+d-i[0],h=n[1]+v+i[2]):(c=n[1]+(d+v-o.displaySize[1])/2,h=c+o.displaySize[1]),{image:o,top:c,right:f,bottom:h,left:p,collisionPadding:s}}function Yet(e,t){let{expression:r}=t;if(r.kind==="constant")return{kind:"constant",layoutSize:r.evaluate(new Io(e+1))};if(r.kind==="source")return{kind:"source"};if(r.kind==="composite"){let{minZoom:i,maxZoom:n}=owr(r.zoomStops,e);return{kind:"composite",minZoom:i,maxZoom:n,interpolationType:r.interpolationType}}{let i=swr(r),n=r.evaluate(new Io(e+1));return{kind:"camera",zoomStops:r.zoomStops,sizes:i,layoutSize:n,interpolationType:r.interpolationType}}}function owr(e,t){let r=0;for(;re.evaluate(new Io(t===-1/0?e.zoomStops[1]-1:t)))}function Aq(e,{uSize:t,uSizeT:r},{lowerSize:i,upperSize:n}){return e.kind==="source"?i/128:e.kind==="composite"?Ys.number(i/128,n/128,r):t}function DC(e,t){let r=0,i=0;return e.kind==="constant"?i=e.layoutSize:e.kind==="camera"?i=lwr(e,t):e.kind==="composite"&&(r=uwr(e,t)),{uSizeT:r,uSize:i}}function lwr({zoomStops:e,sizes:t,layoutSize:r,interpolationType:i},n){let a=e.length-1;for(;a>0&&e[a]>n;)a--;let o=Math.min(a+1,e.length-1),s=i?Qn(np.interpolationFactor(i,n,e[a],e[o]),0,1):0;return Math.min(Ys.number(t[a],t[o],s),r)}function uwr({interpolationType:e,minZoom:t,maxZoom:r},i){return e?Qn(np.interpolationFactor(e,i,t,r),0,1):0}function Unt(e,t,r,i,n){if(t.segment===void 0||r===0)return!0;let a=t,o=t.segment+1,s=0;for(;s>-r/2;){if(o--,o<0)return!1;s-=e[o].dist(a),a=e[o]}s+=e[o].dist(e[o+1]),o++;let l=[],u=0;for(;si;)u-=l.shift().angleDelta;if(u>n)return!1;o++,s+=f.dist(h)}return!0}function Vnt(e){let t=0;for(let r=0;ru){let d=(u-l)/p,v=new P6(Ys.number(f.x,h.x,d),Ys.number(f.y,h.y,d),h.angleTo(f),c);return v._round(),!o||Unt(e,v,s,o,t)?v:void 0}l+=p}}function fwr(e,t,r,i,n,a,o,s,l){let u=Gnt(i,a,o),c=Hnt(i,n),f=c*o,h=e[0].x===0||e[0].x===l||e[0].y===0||e[0].y===l;t-f=0&&b=0&&S=0&&h+u<=c){let x=new P6(b,S,w,d);x._round(),(!i||Unt(e,x,a,i,n))&&p.push(x)}}f+=g}return!s&&!p.length&&!o&&(p=jnt(e,f/2,r,i,n,a,o,!0,l)),p}function iae(e,t,r,i,n){let a=[];for(let o of e){let s;for(let l=0;l=i&&c.x>=i)&&(u.x>=i?u=new tr(i,u.y+(c.y-u.y)*((i-u.x)/(c.x-u.x)))._round():c.x>=i&&(c=new tr(i,u.y+(c.y-u.y)*((i-u.x)/(c.x-u.x)))._round()),!(u.y>=n&&c.y>=n)&&(u.y>=n?u=new tr(u.x+(c.x-u.x)*((n-u.y)/(c.y-u.y)),n)._round():c.y>=n&&(c=new tr(u.x+(c.x-u.x)*((n-u.y)/(c.y-u.y)),n)._round()),(!s||!u.equals(s[s.length-1]))&&(s=[u],a.push(s)),s.push(c)))))}}return a}function Xet(e,t,r,i){let n=[],a=e.image,o=a.pixelRatio,s=a.paddedRect.w-2,l=a.paddedRect.h-2,u={x1:e.left,y1:e.top,x2:e.right,y2:e.bottom},c=a.stretchX||[[0,s]],f=a.stretchY||[[0,l]],h=(D,L)=>D+L[1]-L[0],p=c.reduce(h,0),d=f.reduce(h,0),v=s-p,m=l-d,g=0,w=p,_=0,b=d,S=0,x=v,T=0,A=m;if(a.content&&i){let D=a.content,L=D[2]-D[0],P=D[3]-D[1];(a.textFitWidth||a.textFitHeight)&&(u=Ont(e)),g=oB(c,0,D[0]),_=oB(f,0,D[1]),w=oB(c,D[0],D[2]),b=oB(f,D[1],D[3]),S=D[0]-g,T=D[1]-_,x=L-w,A=P-b}let y=u.x1,E=u.y1,M=u.x2-y,C=u.y2-E,k=(D,L,P,R)=>{let F=sB(D.stretch-g,w,M,y),I=lB(D.fixed-S,x,D.stretch,p),B=sB(L.stretch-_,b,C,E),O=lB(L.fixed-T,A,L.stretch,d),$=sB(P.stretch-g,w,M,y),Y=lB(P.fixed-S,x,P.stretch,p),K=sB(R.stretch-_,b,C,E),j=lB(R.fixed-T,A,R.stretch,d),q=new tr(F,B),Q=new tr($,B),U=new tr($,K),V=new tr(F,K),X=new tr(I/o,O/o),G=new tr(Y/o,j/o),H=t*Math.PI/180;if(H){let ke=Math.sin(H),_e=Math.cos(H),he=[_e,-ke,ke,_e];q._matMult(he),Q._matMult(he),V._matMult(he),U._matMult(he)}let J=D.stretch+D.fixed,te=P.stretch+P.fixed,ue=L.stretch+L.fixed,ge=R.stretch+R.fixed;return{tl:q,tr:Q,bl:V,br:U,tex:{x:a.paddedRect.x+1+J,y:a.paddedRect.y+1+ue,w:te-J,h:ge-ue},writingMode:void 0,glyphOffset:[0,0],sectionIndex:0,pixelOffsetTL:X,pixelOffsetBR:G,minFontScaleX:x/o/M,minFontScaleY:A/o/C,isSDF:r}};if(!i||!a.stretchX&&!a.stretchY)n.push(k({fixed:0,stretch:-1},{fixed:0,stretch:-1},{fixed:0,stretch:s+1},{fixed:0,stretch:l+1}));else{let D=Zet(c,v,p),L=Zet(f,m,d);for(let P=0;Pf.d||!f.d)&&(f=h),!(h.max-f.d<=t)&&(n=h.h/2,a.push(new M6(h.p.x-n,h.p.y-n,n,e)),a.push(new M6(h.p.x+n,h.p.y-n,n,e)),a.push(new M6(h.p.x-n,h.p.y+n,n,e)),a.push(new M6(h.p.x+n,h.p.y+n,n,e)))}return c.d>0&&f.d-c.d<=t?c.p:f.p}function vwr(e,t){return t.max-e.max}function gwr(e,t){let r=!1,i=1/0;for(let n of t)for(let a=0,o=n.length,s=o-1;ae.y!=u.y>e.y&&e.x<(u.x-l.x)*(e.y-l.y)/(u.y-l.y)+l.x&&(r=!r),i=Math.min(i,$it(e,l,u))}return(r?1:-1)*Math.sqrt(i)}function mwr(e){let t=0,r=0,i=0,n=e[0];for(let a=0,o=n.length,s=o-1;ah*24);c.startsWith("top")?f[1]-=7:c.startsWith("bottom")&&(f[1]+=7),l[u+1]=f}return new og(l)}let a=i.get("text-variable-anchor");if(a){let s;s=e._unevaluatedLayout.getValue("text-radial-offset")===void 0?i.get("text-offset").evaluate(t,{},r).map(u=>u*24):[i.get("text-radial-offset").evaluate(t,{},r)*24,nae];let l=[];for(let u of a)l.push(u,$nt(u,s));return new og(l)}return null}function ywr(e){var c,f;e.bucket.createArrays();let t=512*e.bucket.overscaling;e.bucket.tilePixelRatio=Br/t,e.bucket.compareText={},e.bucket.iconsNeedLinear=!1;let r=e.bucket.layers[0],i=r.layout,n=r._unevaluatedLayout._values,a={layoutIconSize:n["icon-size"].possiblyEvaluate(new Io(e.bucket.zoom+1),e.canonical),layoutTextSize:n["text-size"].possiblyEvaluate(new Io(e.bucket.zoom+1),e.canonical),textMaxSize:n["text-size"].possiblyEvaluate(new Io(18))};if(e.bucket.textSizeData.kind==="composite"){let{minZoom:h,maxZoom:p}=e.bucket.textSizeData;a.compositeTextSizes=[n["text-size"].possiblyEvaluate(new Io(h),e.canonical),n["text-size"].possiblyEvaluate(new Io(p),e.canonical)]}if(e.bucket.iconSizeData.kind==="composite"){let{minZoom:h,maxZoom:p}=e.bucket.iconSizeData;a.compositeIconSizes=[n["icon-size"].possiblyEvaluate(new Io(h),e.canonical),n["icon-size"].possiblyEvaluate(new Io(p),e.canonical)]}let o=i.get("text-line-height")*24,s=i.get("text-rotation-alignment")!=="viewport"&&i.get("symbol-placement")!=="point",l=i.get("text-keep-upright"),u=i.get("text-size");for(let h of e.bucket.features){let p=i.get("text-font").evaluate(h,{},e.canonical).join(","),d=u.evaluate(h,{},e.canonical),v=a.layoutTextSize.evaluate(h,{},e.canonical),m=a.layoutIconSize.evaluate(h,{},e.canonical),g={horizontal:{},vertical:void 0},w=h.text,_=[0,0];if(w){let T=w.toString(),A=i.get("text-letter-spacing").evaluate(h,{},e.canonical)*24,y=v3r(T)?A:0,E=i.get("text-anchor").evaluate(h,{},e.canonical),M=Wnt(r,h,e.canonical);if(!M){let L=i.get("text-radial-offset").evaluate(h,{},e.canonical);_=L?$nt(E,[L*24,nae]):i.get("text-offset").evaluate(h,{},e.canonical).map(P=>P*24)}let C=s?"center":i.get("text-justify").evaluate(h,{},e.canonical),k=i.get("symbol-placement")==="point"?i.get("text-max-width").evaluate(h,{},e.canonical)*24:1/0,D=()=>{e.bucket.allowVerticalPlacement&&Hie(T)&&(g.vertical=aB(w,e.glyphMap,e.glyphPositions,e.imagePositions,p,k,o,E,"left",y,_,2,!0,v,d))};if(!s&&M){let L=new Set;if(C==="auto")for(let R=0;R{F.x<0||F.x>=8192||F.y<0||F.y>=8192||_wr(e,F,R,r,i,n,D,e.layers[0],e.collisionBoxArray,t.index,t.sourceLayerIndex,e.index,w,[x,x,x,x],y,l,b,T,E,v,t,a,u,c,o,h)};if(M==="line")for(let R of iae(t.geometry,0,0,Br,Br)){let F=J_(R,L),I=fwr(F,S,A,r.vertical||m,i,24,_,e.overscaling,Br);for(let B of I){let O=m;(!O||!wwr(e,O.text,C,B))&&P(F,B)}}else if(M==="line-center"){for(let R of t.geometry)if(R.length>1){let F=J_(R,L),I=cwr(F,A,r.vertical||m,i,24,_);I&&P(F,I)}}else if(t.type==="Polygon")for(let R of rq(t.geometry,0)){let F=pwr(R,16);P(J_(R[0],L,!0),new P6(F.x,F.y,0))}else if(t.type==="LineString")for(let R of t.geometry){let F=J_(R,L);P(F,new P6(F[0].x,F[0].y,0))}else if(t.type==="Point")for(let R of t.geometry)for(let F of R)P([F],new P6(F.x,F.y,0))}function bwr(e,t){let r=e.length,i=t==null?void 0:t.values;if((i==null?void 0:i.length)>0)for(let n=0;n32640&&Fa(`${e.layerIds[0]}: Value for "text-size" is >= 255. Reduce your "text-size".`)):g.kind==="composite"&&(w=[128*d.compositeTextSizes[0].evaluate(o,{},v),128*d.compositeTextSizes[1].evaluate(o,{},v)],(w[0]>32640||w[1]>32640)&&Fa(`${e.layerIds[0]}: Value for "text-size" is >= 255. Reduce your "text-size".`)),e.addSymbols(e.text,m,w,s,a,o,c,t,u.lineStartIndex,u.lineLength,p,v,l);for(let _ of f)h[_]=e.text.placedSymbolArray.length-1;return m.length*4}function Ynt(e){for(let t in e)return e[t];return null}function _wr(e,t,r,i,n,a,o,s,l,u,c,f,h,p,d,v,m,g,w,_,b,S,x,T,A,y){let E=e.addToLineVertexArray(t,r),M=s.layout.get("symbol-height-offset").evaluate(b,{},T);M>e.maxHeightOffset&&(e.maxHeightOffset=M);let C,k,D,L,P=0,R=0,F=0,I=0,B=-1,O=-1,$={},Y=(0,kB.default)("");if(e.allowVerticalPlacement&&i.vertical){let he=s.layout.get("text-rotate").evaluate(b,{},T)+90,oe=i.vertical;D=new uB(l,t,u,c,f,oe,h,p,d,he),o&&(L=new uB(l,t,u,c,f,o,m,g,d,he))}if(n){let he=s.layout.get("icon-rotate").evaluate(b,{}),oe=s.layout.get("icon-text-fit")!=="none",Me=Xet(n,he,x,oe),ye=o?Xet(o,he,x,oe):void 0;k=new uB(l,t,u,c,f,n,m,g,!1,he),P=Me.length*4;let ce=e.iconSizeData,ee=null;ce.kind==="source"?(ee=[128*s.layout.get("icon-size").evaluate(b,{})],ee[0]>32640&&Fa(`${e.layerIds[0]}: Value for "icon-size" is >= 255. Reduce your "icon-size".`)):ce.kind==="composite"&&(ee=[128*S.compositeIconSizes[0].evaluate(b,{},T),128*S.compositeIconSizes[1].evaluate(b,{},T)],(ee[0]>32640||ee[1]>32640)&&Fa(`${e.layerIds[0]}: Value for "icon-size" is >= 255. Reduce your "icon-size".`)),e.addSymbols(e.icon,Me,ee,_,w,b,0,t,E.lineStartIndex,E.lineLength,-1,T,M),B=e.icon.placedSymbolArray.length-1,ye&&(R=ye.length*4,e.addSymbols(e.icon,ye,ee,_,w,b,2,t,E.lineStartIndex,E.lineLength,-1,T,M),O=e.icon.placedSymbolArray.length-1)}let K=Object.keys(i.horizontal);for(let he of K){let oe=i.horizontal[he];C||(C=(Y=(0,kB.default)(oe.text),new uB(l,t,u,c,f,oe,h,p,d,s.layout.get("text-rotate").evaluate(b,{},T))));let Me=oe.positionedLines.length===1;if(F+=Ket(e,t,oe,a,s,d,b,v,M,E,i.vertical?1:3,Me?K:[he],$,B,S,T),Me)break}i.vertical&&(I+=Ket(e,t,i.vertical,a,s,d,b,v,M,E,2,["vertical"],$,O,S,T));let j=C?C.boxStartIndex:e.collisionBoxArray.length,q=C?C.boxEndIndex:e.collisionBoxArray.length,Q=D?D.boxStartIndex:e.collisionBoxArray.length,U=D?D.boxEndIndex:e.collisionBoxArray.length,V=k?k.boxStartIndex:e.collisionBoxArray.length,X=k?k.boxEndIndex:e.collisionBoxArray.length,G=L?L.boxStartIndex:e.collisionBoxArray.length,H=L?L.boxEndIndex:e.collisionBoxArray.length,J=-1,te=(he,oe)=>he!=null&&he.circleDiameter?Math.max(he.circleDiameter,oe):oe;J=te(C,J),J=te(D,J),J=te(k,J),J=te(L,J);let ue=+(J>-1);ue&&(J*=A/24),e.glyphOffsetArray.length>=e.maxGlyphs&&Fa("Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907"),b.sortKey!==void 0&&e.addToSortKeyRanges(e.symbolInstances.length,b.sortKey);let ge=Wnt(s,b,T),[ke,_e]=bwr(e.textAnchorOffsets,ge);y&&(Y=Twr(Y,b)),e.symbolInstances.emplaceBack(t.x,t.y,$.right>=0?$.right:-1,$.center>=0?$.center:-1,$.left>=0?$.left:-1,$.vertical||-1,B,O,Y,j,q,Q,U,V,X,G,H,u,F,I,P,R,ue,0,h,J,ke,_e,M)}function wwr(e,t,r,i){let n=e.compareText;if(!(t in n))n[t]=[];else{let a=n[t];for(let o=a.length-1;o>=0;o--)if(i.dist(a[o])e&&i in e?String(e[i]):"")}function Dwr(e,t,r,i=1){var a;let n=(a=e.get("icon-padding").evaluate(t,{},r))==null?void 0:a.values;return[n[0]*i,n[1]*i,n[2]*i,n[3]*i]}function Knt(e){let t=[],r=e.id;return r===void 0&&t.push(new ei(`layers.${r}`,null,'missing required property "id"')),e.render===void 0&&t.push(new ei(`layers.${r}`,null,'missing required method "render"')),e.renderingMode&&e.renderingMode!=="2d"&&e.renderingMode!=="3d"&&t.push(new ei(`layers.${r}`,null,'property "renderingMode" must be either "2d" or "3d"')),t}function Sq(e,t){if(e.type==="custom")return new Iwr(e,t);switch(e.type){case"background":return new Pwr(e,t);case"circle":return new wbr(e,t);case"color-relief":return new Lbr(e,t);case"fill":return new u_r(e,t);case"fill-extrusion":return new E_r(e,t);case"heatmap":return new Mbr(e,t);case"hillshade":return new kbr(e,t);case"line":return new O_r(e,t);case"raster":return new Nxr(e,t);case"symbol":return new Cwr(e,t)}}function Bwr(e,t,r){return!(e<0||e>25||r<0||r>=2**e||t<0||t>=2**e)}function oae(e,t){let{x:r,y:i}=Mo.fromLngLat(t);return!(e<0||e>25||i<0||i>=1||r<0||r>=1)}function t3(e,t,r,i,n){e*=2,e<0&&(e=e*-1-1);let a=1<0;n--){let a=1<>>0;return((t&255)<<24|(t&65280)<<8|t>>>8&65280|t>>>24&255)>>>0}function Hwr(e,t,r,i){let n=i,a=e[t]>>>0,o=e[t+1]>>>0;r[n++]=a>>>0&3,r[n++]=a>>>2&3,r[n++]=a>>>4&3,r[n++]=a>>>6&3,r[n++]=a>>>8&3,r[n++]=a>>>10&3,r[n++]=a>>>12&3,r[n++]=a>>>14&3,r[n++]=a>>>16&3,r[n++]=a>>>18&3,r[n++]=a>>>20&3,r[n++]=a>>>22&3,r[n++]=a>>>24&3,r[n++]=a>>>26&3,r[n++]=a>>>28&3,r[n++]=a>>>30&3,r[n++]=o>>>0&3,r[n++]=o>>>2&3,r[n++]=o>>>4&3,r[n++]=o>>>6&3,r[n++]=o>>>8&3,r[n++]=o>>>10&3,r[n++]=o>>>12&3,r[n++]=o>>>14&3,r[n++]=o>>>16&3,r[n++]=o>>>18&3,r[n++]=o>>>20&3,r[n++]=o>>>22&3,r[n++]=o>>>24&3,r[n++]=o>>>26&3,r[n++]=o>>>28&3,r[n]=o>>>30&3}function jwr(e,t,r,i){let n=i,a=e[t]>>>0,o=e[t+1]>>>0,s=e[t+2]>>>0;r[n++]=a>>>0&7,r[n++]=a>>>3&7,r[n++]=a>>>6&7,r[n++]=a>>>9&7,r[n++]=a>>>12&7,r[n++]=a>>>15&7,r[n++]=a>>>18&7,r[n++]=a>>>21&7,r[n++]=a>>>24&7,r[n++]=a>>>27&7,r[n++]=(a>>>30|(o&1)<<2)&7,r[n++]=o>>>1&7,r[n++]=o>>>4&7,r[n++]=o>>>7&7,r[n++]=o>>>10&7,r[n++]=o>>>13&7,r[n++]=o>>>16&7,r[n++]=o>>>19&7,r[n++]=o>>>22&7,r[n++]=o>>>25&7,r[n++]=o>>>28&7,r[n++]=(o>>>31|(s&3)<<1)&7,r[n++]=s>>>2&7,r[n++]=s>>>5&7,r[n++]=s>>>8&7,r[n++]=s>>>11&7,r[n++]=s>>>14&7,r[n++]=s>>>17&7,r[n++]=s>>>20&7,r[n++]=s>>>23&7,r[n++]=s>>>26&7,r[n]=s>>>29&7}function $wr(e,t,r,i){let n=i,a=e[t]>>>0,o=e[t+1]>>>0,s=e[t+2]>>>0,l=e[t+3]>>>0;r[n++]=a>>>0&15,r[n++]=a>>>4&15,r[n++]=a>>>8&15,r[n++]=a>>>12&15,r[n++]=a>>>16&15,r[n++]=a>>>20&15,r[n++]=a>>>24&15,r[n++]=a>>>28&15,r[n++]=o>>>0&15,r[n++]=o>>>4&15,r[n++]=o>>>8&15,r[n++]=o>>>12&15,r[n++]=o>>>16&15,r[n++]=o>>>20&15,r[n++]=o>>>24&15,r[n++]=o>>>28&15,r[n++]=s>>>0&15,r[n++]=s>>>4&15,r[n++]=s>>>8&15,r[n++]=s>>>12&15,r[n++]=s>>>16&15,r[n++]=s>>>20&15,r[n++]=s>>>24&15,r[n++]=s>>>28&15,r[n++]=l>>>0&15,r[n++]=l>>>4&15,r[n++]=l>>>8&15,r[n++]=l>>>12&15,r[n++]=l>>>16&15,r[n++]=l>>>20&15,r[n++]=l>>>24&15,r[n]=l>>>28&15}function Wwr(e,t,r,i){let n=i,a=e[t]>>>0,o=e[t+1]>>>0,s=e[t+2]>>>0,l=e[t+3]>>>0,u=e[t+4]>>>0;r[n++]=a>>>0&31,r[n++]=a>>>5&31,r[n++]=a>>>10&31,r[n++]=a>>>15&31,r[n++]=a>>>20&31,r[n++]=a>>>25&31,r[n++]=(a>>>30|(o&7)<<2)&31,r[n++]=o>>>3&31,r[n++]=o>>>8&31,r[n++]=o>>>13&31,r[n++]=o>>>18&31,r[n++]=o>>>23&31,r[n++]=(o>>>28|(s&1)<<4)&31,r[n++]=s>>>1&31,r[n++]=s>>>6&31,r[n++]=s>>>11&31,r[n++]=s>>>16&31,r[n++]=s>>>21&31,r[n++]=s>>>26&31,r[n++]=(s>>>31|(l&15)<<1)&31,r[n++]=l>>>4&31,r[n++]=l>>>9&31,r[n++]=l>>>14&31,r[n++]=l>>>19&31,r[n++]=l>>>24&31,r[n++]=(l>>>29|(u&3)<<3)&31,r[n++]=u>>>2&31,r[n++]=u>>>7&31,r[n++]=u>>>12&31,r[n++]=u>>>17&31,r[n++]=u>>>22&31,r[n]=u>>>27&31}function Ywr(e,t,r,i){let n=i,a=e[t]>>>0,o=e[t+1]>>>0,s=e[t+2]>>>0,l=e[t+3]>>>0,u=e[t+4]>>>0,c=e[t+5]>>>0;r[n++]=a>>>0&63,r[n++]=a>>>6&63,r[n++]=a>>>12&63,r[n++]=a>>>18&63,r[n++]=a>>>24&63,r[n++]=(a>>>30|(o&15)<<2)&63,r[n++]=o>>>4&63,r[n++]=o>>>10&63,r[n++]=o>>>16&63,r[n++]=o>>>22&63,r[n++]=(o>>>28|(s&3)<<4)&63,r[n++]=s>>>2&63,r[n++]=s>>>8&63,r[n++]=s>>>14&63,r[n++]=s>>>20&63,r[n++]=s>>>26&63,r[n++]=l>>>0&63,r[n++]=l>>>6&63,r[n++]=l>>>12&63,r[n++]=l>>>18&63,r[n++]=l>>>24&63,r[n++]=(l>>>30|(u&15)<<2)&63,r[n++]=u>>>4&63,r[n++]=u>>>10&63,r[n++]=u>>>16&63,r[n++]=u>>>22&63,r[n++]=(u>>>28|(c&3)<<4)&63,r[n++]=c>>>2&63,r[n++]=c>>>8&63,r[n++]=c>>>14&63,r[n++]=c>>>20&63,r[n]=c>>>26&63}function Xwr(e,t,r,i){let n=i,a=e[t]>>>0,o=e[t+1]>>>0,s=e[t+2]>>>0,l=e[t+3]>>>0,u=e[t+4]>>>0,c=e[t+5]>>>0,f=e[t+6]>>>0;r[n++]=a>>>0&127,r[n++]=a>>>7&127,r[n++]=a>>>14&127,r[n++]=a>>>21&127,r[n++]=(a>>>28|(o&7)<<4)&127,r[n++]=o>>>3&127,r[n++]=o>>>10&127,r[n++]=o>>>17&127,r[n++]=o>>>24&127,r[n++]=(o>>>31|(s&63)<<1)&127,r[n++]=s>>>6&127,r[n++]=s>>>13&127,r[n++]=s>>>20&127,r[n++]=(s>>>27|(l&3)<<5)&127,r[n++]=l>>>2&127,r[n++]=l>>>9&127,r[n++]=l>>>16&127,r[n++]=l>>>23&127,r[n++]=(l>>>30|(u&31)<<2)&127,r[n++]=u>>>5&127,r[n++]=u>>>12&127,r[n++]=u>>>19&127,r[n++]=(u>>>26|(c&1)<<6)&127,r[n++]=c>>>1&127,r[n++]=c>>>8&127,r[n++]=c>>>15&127,r[n++]=c>>>22&127,r[n++]=(c>>>29|(f&15)<<3)&127,r[n++]=f>>>4&127,r[n++]=f>>>11&127,r[n++]=f>>>18&127,r[n]=f>>>25&127}function Zwr(e,t,r,i){let n=i,a=e[t]>>>0,o=e[t+1]>>>0,s=e[t+2]>>>0,l=e[t+3]>>>0,u=e[t+4]>>>0,c=e[t+5]>>>0,f=e[t+6]>>>0,h=e[t+7]>>>0;r[n++]=a>>>0&255,r[n++]=a>>>8&255,r[n++]=a>>>16&255,r[n++]=a>>>24&255,r[n++]=o>>>0&255,r[n++]=o>>>8&255,r[n++]=o>>>16&255,r[n++]=o>>>24&255,r[n++]=s>>>0&255,r[n++]=s>>>8&255,r[n++]=s>>>16&255,r[n++]=s>>>24&255,r[n++]=l>>>0&255,r[n++]=l>>>8&255,r[n++]=l>>>16&255,r[n++]=l>>>24&255,r[n++]=u>>>0&255,r[n++]=u>>>8&255,r[n++]=u>>>16&255,r[n++]=u>>>24&255,r[n++]=c>>>0&255,r[n++]=c>>>8&255,r[n++]=c>>>16&255,r[n++]=c>>>24&255,r[n++]=f>>>0&255,r[n++]=f>>>8&255,r[n++]=f>>>16&255,r[n++]=f>>>24&255,r[n++]=h>>>0&255,r[n++]=h>>>8&255,r[n++]=h>>>16&255,r[n]=h>>>24&255}function Kwr(e,t,r,i){let n=i,a=e[t]>>>0,o=e[t+1]>>>0,s=e[t+2]>>>0,l=e[t+3]>>>0,u=e[t+4]>>>0,c=e[t+5]>>>0,f=e[t+6]>>>0,h=e[t+7]>>>0,p=e[t+8]>>>0;r[n++]=a>>>0&511,r[n++]=a>>>9&511,r[n++]=a>>>18&511,r[n++]=(a>>>27|(o&15)<<5)&511,r[n++]=o>>>4&511,r[n++]=o>>>13&511,r[n++]=o>>>22&511,r[n++]=(o>>>31|(s&255)<<1)&511,r[n++]=s>>>8&511,r[n++]=s>>>17&511,r[n++]=(s>>>26|(l&7)<<6)&511,r[n++]=l>>>3&511,r[n++]=l>>>12&511,r[n++]=l>>>21&511,r[n++]=(l>>>30|(u&127)<<2)&511,r[n++]=u>>>7&511,r[n++]=u>>>16&511,r[n++]=(u>>>25|(c&3)<<7)&511,r[n++]=c>>>2&511,r[n++]=c>>>11&511,r[n++]=c>>>20&511,r[n++]=(c>>>29|(f&63)<<3)&511,r[n++]=f>>>6&511,r[n++]=f>>>15&511,r[n++]=(f>>>24|(h&1)<<8)&511,r[n++]=h>>>1&511,r[n++]=h>>>10&511,r[n++]=h>>>19&511,r[n++]=(h>>>28|(p&31)<<4)&511,r[n++]=p>>>5&511,r[n++]=p>>>14&511,r[n]=p>>>23&511}function Jwr(e,t,r,i){let n=i,a=e[t]>>>0,o=e[t+1]>>>0,s=e[t+2]>>>0,l=e[t+3]>>>0,u=e[t+4]>>>0,c=e[t+5]>>>0,f=e[t+6]>>>0,h=e[t+7]>>>0,p=e[t+8]>>>0,d=e[t+9]>>>0;r[n++]=a>>>0&1023,r[n++]=a>>>10&1023,r[n++]=a>>>20&1023,r[n++]=(a>>>30|(o&255)<<2)&1023,r[n++]=o>>>8&1023,r[n++]=o>>>18&1023,r[n++]=(o>>>28|(s&63)<<4)&1023,r[n++]=s>>>6&1023,r[n++]=s>>>16&1023,r[n++]=(s>>>26|(l&15)<<6)&1023,r[n++]=l>>>4&1023,r[n++]=l>>>14&1023,r[n++]=(l>>>24|(u&3)<<8)&1023,r[n++]=u>>>2&1023,r[n++]=u>>>12&1023,r[n++]=u>>>22&1023,r[n++]=c>>>0&1023,r[n++]=c>>>10&1023,r[n++]=c>>>20&1023,r[n++]=(c>>>30|(f&255)<<2)&1023,r[n++]=f>>>8&1023,r[n++]=f>>>18&1023,r[n++]=(f>>>28|(h&63)<<4)&1023,r[n++]=h>>>6&1023,r[n++]=h>>>16&1023,r[n++]=(h>>>26|(p&15)<<6)&1023,r[n++]=p>>>4&1023,r[n++]=p>>>14&1023,r[n++]=(p>>>24|(d&3)<<8)&1023,r[n++]=d>>>2&1023,r[n++]=d>>>12&1023,r[n]=d>>>22&1023}function Qwr(e,t,r,i){let n=i,a=e[t]>>>0,o=e[t+1]>>>0,s=e[t+2]>>>0,l=e[t+3]>>>0,u=e[t+4]>>>0,c=e[t+5]>>>0,f=e[t+6]>>>0,h=e[t+7]>>>0,p=e[t+8]>>>0,d=e[t+9]>>>0,v=e[t+10]>>>0;r[n++]=a>>>0&2047,r[n++]=a>>>11&2047,r[n++]=(a>>>22|(o&1)<<10)&2047,r[n++]=o>>>1&2047,r[n++]=o>>>12&2047,r[n++]=(o>>>23|(s&3)<<9)&2047,r[n++]=s>>>2&2047,r[n++]=s>>>13&2047,r[n++]=(s>>>24|(l&7)<<8)&2047,r[n++]=l>>>3&2047,r[n++]=l>>>14&2047,r[n++]=(l>>>25|(u&15)<<7)&2047,r[n++]=u>>>4&2047,r[n++]=u>>>15&2047,r[n++]=(u>>>26|(c&31)<<6)&2047,r[n++]=c>>>5&2047,r[n++]=c>>>16&2047,r[n++]=(c>>>27|(f&63)<<5)&2047,r[n++]=f>>>6&2047,r[n++]=f>>>17&2047,r[n++]=(f>>>28|(h&127)<<4)&2047,r[n++]=h>>>7&2047,r[n++]=h>>>18&2047,r[n++]=(h>>>29|(p&255)<<3)&2047,r[n++]=p>>>8&2047,r[n++]=p>>>19&2047,r[n++]=(p>>>30|(d&511)<<2)&2047,r[n++]=d>>>9&2047,r[n++]=d>>>20&2047,r[n++]=(d>>>31|(v&1023)<<1)&2047,r[n++]=v>>>10&2047,r[n]=v>>>21&2047}function e5r(e,t,r,i){let n=i,a=e[t]>>>0,o=e[t+1]>>>0,s=e[t+2]>>>0,l=e[t+3]>>>0,u=e[t+4]>>>0,c=e[t+5]>>>0,f=e[t+6]>>>0,h=e[t+7]>>>0,p=e[t+8]>>>0,d=e[t+9]>>>0,v=e[t+10]>>>0,m=e[t+11]>>>0;r[n++]=a>>>0&4095,r[n++]=a>>>12&4095,r[n++]=(a>>>24|(o&15)<<8)&4095,r[n++]=o>>>4&4095,r[n++]=o>>>16&4095,r[n++]=(o>>>28|(s&255)<<4)&4095,r[n++]=s>>>8&4095,r[n++]=s>>>20&4095,r[n++]=l>>>0&4095,r[n++]=l>>>12&4095,r[n++]=(l>>>24|(u&15)<<8)&4095,r[n++]=u>>>4&4095,r[n++]=u>>>16&4095,r[n++]=(u>>>28|(c&255)<<4)&4095,r[n++]=c>>>8&4095,r[n++]=c>>>20&4095,r[n++]=f>>>0&4095,r[n++]=f>>>12&4095,r[n++]=(f>>>24|(h&15)<<8)&4095,r[n++]=h>>>4&4095,r[n++]=h>>>16&4095,r[n++]=(h>>>28|(p&255)<<4)&4095,r[n++]=p>>>8&4095,r[n++]=p>>>20&4095,r[n++]=d>>>0&4095,r[n++]=d>>>12&4095,r[n++]=(d>>>24|(v&15)<<8)&4095,r[n++]=v>>>4&4095,r[n++]=v>>>16&4095,r[n++]=(v>>>28|(m&255)<<4)&4095,r[n++]=m>>>8&4095,r[n]=m>>>20&4095}function t5r(e,t,r,i){let n=i,a=e[t]>>>0,o=e[t+1]>>>0,s=e[t+2]>>>0,l=e[t+3]>>>0,u=e[t+4]>>>0,c=e[t+5]>>>0,f=e[t+6]>>>0,h=e[t+7]>>>0,p=e[t+8]>>>0,d=e[t+9]>>>0,v=e[t+10]>>>0,m=e[t+11]>>>0,g=e[t+12]>>>0,w=e[t+13]>>>0,_=e[t+14]>>>0,b=e[t+15]>>>0;r[n++]=a>>>0&65535,r[n++]=a>>>16&65535,r[n++]=o>>>0&65535,r[n++]=o>>>16&65535,r[n++]=s>>>0&65535,r[n++]=s>>>16&65535,r[n++]=l>>>0&65535,r[n++]=l>>>16&65535,r[n++]=u>>>0&65535,r[n++]=u>>>16&65535,r[n++]=c>>>0&65535,r[n++]=c>>>16&65535,r[n++]=f>>>0&65535,r[n++]=f>>>16&65535,r[n++]=h>>>0&65535,r[n++]=h>>>16&65535,r[n++]=p>>>0&65535,r[n++]=p>>>16&65535,r[n++]=d>>>0&65535,r[n++]=d>>>16&65535,r[n++]=v>>>0&65535,r[n++]=v>>>16&65535,r[n++]=m>>>0&65535,r[n++]=m>>>16&65535,r[n++]=g>>>0&65535,r[n++]=g>>>16&65535,r[n++]=w>>>0&65535,r[n++]=w>>>16&65535,r[n++]=_>>>0&65535,r[n++]=_>>>16&65535,r[n++]=b>>>0&65535,r[n]=b>>>16&65535}function r5r(e,t,r,i){let n=i,a=t;for(let o=0;o<8;o++){let s=e[a++]>>>0;r[n++]=s>>>0&1,r[n++]=s>>>1&1,r[n++]=s>>>2&1,r[n++]=s>>>3&1,r[n++]=s>>>4&1,r[n++]=s>>>5&1,r[n++]=s>>>6&1,r[n++]=s>>>7&1,r[n++]=s>>>8&1,r[n++]=s>>>9&1,r[n++]=s>>>10&1,r[n++]=s>>>11&1,r[n++]=s>>>12&1,r[n++]=s>>>13&1,r[n++]=s>>>14&1,r[n++]=s>>>15&1,r[n++]=s>>>16&1,r[n++]=s>>>17&1,r[n++]=s>>>18&1,r[n++]=s>>>19&1,r[n++]=s>>>20&1,r[n++]=s>>>21&1,r[n++]=s>>>22&1,r[n++]=s>>>23&1,r[n++]=s>>>24&1,r[n++]=s>>>25&1,r[n++]=s>>>26&1,r[n++]=s>>>27&1,r[n++]=s>>>28&1,r[n++]=s>>>29&1,r[n++]=s>>>30&1,r[n++]=s>>>31&1}}function i5r(e,t,r,i){let n=i,a=t;for(let o=0;o<8;o++){let s=e[a++]>>>0,l=e[a++]>>>0;r[n++]=s>>>0&3,r[n++]=s>>>2&3,r[n++]=s>>>4&3,r[n++]=s>>>6&3,r[n++]=s>>>8&3,r[n++]=s>>>10&3,r[n++]=s>>>12&3,r[n++]=s>>>14&3,r[n++]=s>>>16&3,r[n++]=s>>>18&3,r[n++]=s>>>20&3,r[n++]=s>>>22&3,r[n++]=s>>>24&3,r[n++]=s>>>26&3,r[n++]=s>>>28&3,r[n++]=s>>>30&3,r[n++]=l>>>0&3,r[n++]=l>>>2&3,r[n++]=l>>>4&3,r[n++]=l>>>6&3,r[n++]=l>>>8&3,r[n++]=l>>>10&3,r[n++]=l>>>12&3,r[n++]=l>>>14&3,r[n++]=l>>>16&3,r[n++]=l>>>18&3,r[n++]=l>>>20&3,r[n++]=l>>>22&3,r[n++]=l>>>24&3,r[n++]=l>>>26&3,r[n++]=l>>>28&3,r[n++]=l>>>30&3}}function n5r(e,t,r,i){let n=i,a=t;for(let o=0;o<8;o++){let s=e[a++]>>>0,l=e[a++]>>>0,u=e[a++]>>>0;r[n++]=s>>>0&7,r[n++]=s>>>3&7,r[n++]=s>>>6&7,r[n++]=s>>>9&7,r[n++]=s>>>12&7,r[n++]=s>>>15&7,r[n++]=s>>>18&7,r[n++]=s>>>21&7,r[n++]=s>>>24&7,r[n++]=s>>>27&7,r[n++]=(s>>>30|(l&1)<<2)&7,r[n++]=l>>>1&7,r[n++]=l>>>4&7,r[n++]=l>>>7&7,r[n++]=l>>>10&7,r[n++]=l>>>13&7,r[n++]=l>>>16&7,r[n++]=l>>>19&7,r[n++]=l>>>22&7,r[n++]=l>>>25&7,r[n++]=l>>>28&7,r[n++]=(l>>>31|(u&3)<<1)&7,r[n++]=u>>>2&7,r[n++]=u>>>5&7,r[n++]=u>>>8&7,r[n++]=u>>>11&7,r[n++]=u>>>14&7,r[n++]=u>>>17&7,r[n++]=u>>>20&7,r[n++]=u>>>23&7,r[n++]=u>>>26&7,r[n++]=u>>>29&7}}function a5r(e,t,r,i){let n=i,a=t;for(let o=0;o<8;o++){let s=e[a++]>>>0,l=e[a++]>>>0,u=e[a++]>>>0,c=e[a++]>>>0;r[n++]=s>>>0&15,r[n++]=s>>>4&15,r[n++]=s>>>8&15,r[n++]=s>>>12&15,r[n++]=s>>>16&15,r[n++]=s>>>20&15,r[n++]=s>>>24&15,r[n++]=s>>>28&15,r[n++]=l>>>0&15,r[n++]=l>>>4&15,r[n++]=l>>>8&15,r[n++]=l>>>12&15,r[n++]=l>>>16&15,r[n++]=l>>>20&15,r[n++]=l>>>24&15,r[n++]=l>>>28&15,r[n++]=u>>>0&15,r[n++]=u>>>4&15,r[n++]=u>>>8&15,r[n++]=u>>>12&15,r[n++]=u>>>16&15,r[n++]=u>>>20&15,r[n++]=u>>>24&15,r[n++]=u>>>28&15,r[n++]=c>>>0&15,r[n++]=c>>>4&15,r[n++]=c>>>8&15,r[n++]=c>>>12&15,r[n++]=c>>>16&15,r[n++]=c>>>20&15,r[n++]=c>>>24&15,r[n++]=c>>>28&15}}function o5r(e,t,r,i){let n=i,a=t;for(let o=0;o<8;o++){let s=e[a++]>>>0,l=e[a++]>>>0,u=e[a++]>>>0,c=e[a++]>>>0,f=e[a++]>>>0;r[n++]=s>>>0&31,r[n++]=s>>>5&31,r[n++]=s>>>10&31,r[n++]=s>>>15&31,r[n++]=s>>>20&31,r[n++]=s>>>25&31,r[n++]=(s>>>30|(l&7)<<2)&31,r[n++]=l>>>3&31,r[n++]=l>>>8&31,r[n++]=l>>>13&31,r[n++]=l>>>18&31,r[n++]=l>>>23&31,r[n++]=(l>>>28|(u&1)<<4)&31,r[n++]=u>>>1&31,r[n++]=u>>>6&31,r[n++]=u>>>11&31,r[n++]=u>>>16&31,r[n++]=u>>>21&31,r[n++]=u>>>26&31,r[n++]=(u>>>31|(c&15)<<1)&31,r[n++]=c>>>4&31,r[n++]=c>>>9&31,r[n++]=c>>>14&31,r[n++]=c>>>19&31,r[n++]=c>>>24&31,r[n++]=(c>>>29|(f&3)<<3)&31,r[n++]=f>>>2&31,r[n++]=f>>>7&31,r[n++]=f>>>12&31,r[n++]=f>>>17&31,r[n++]=f>>>22&31,r[n++]=f>>>27&31}}function s5r(e,t,r,i){let n=i,a=t;for(let o=0;o<8;o++){let s=e[a++]>>>0,l=e[a++]>>>0,u=e[a++]>>>0,c=e[a++]>>>0,f=e[a++]>>>0,h=e[a++]>>>0;r[n++]=s>>>0&63,r[n++]=s>>>6&63,r[n++]=s>>>12&63,r[n++]=s>>>18&63,r[n++]=s>>>24&63,r[n++]=(s>>>30|(l&15)<<2)&63,r[n++]=l>>>4&63,r[n++]=l>>>10&63,r[n++]=l>>>16&63,r[n++]=l>>>22&63,r[n++]=(l>>>28|(u&3)<<4)&63,r[n++]=u>>>2&63,r[n++]=u>>>8&63,r[n++]=u>>>14&63,r[n++]=u>>>20&63,r[n++]=u>>>26&63,r[n++]=c>>>0&63,r[n++]=c>>>6&63,r[n++]=c>>>12&63,r[n++]=c>>>18&63,r[n++]=c>>>24&63,r[n++]=(c>>>30|(f&15)<<2)&63,r[n++]=f>>>4&63,r[n++]=f>>>10&63,r[n++]=f>>>16&63,r[n++]=f>>>22&63,r[n++]=(f>>>28|(h&3)<<4)&63,r[n++]=h>>>2&63,r[n++]=h>>>8&63,r[n++]=h>>>14&63,r[n++]=h>>>20&63,r[n++]=h>>>26&63}}function l5r(e,t,r,i){let n=i,a=t;for(let o=0;o<8;o++){let s=e[a++]>>>0,l=e[a++]>>>0,u=e[a++]>>>0,c=e[a++]>>>0,f=e[a++]>>>0,h=e[a++]>>>0,p=e[a++]>>>0;r[n++]=s>>>0&127,r[n++]=s>>>7&127,r[n++]=s>>>14&127,r[n++]=s>>>21&127,r[n++]=(s>>>28|(l&7)<<4)&127,r[n++]=l>>>3&127,r[n++]=l>>>10&127,r[n++]=l>>>17&127,r[n++]=l>>>24&127,r[n++]=(l>>>31|(u&63)<<1)&127,r[n++]=u>>>6&127,r[n++]=u>>>13&127,r[n++]=u>>>20&127,r[n++]=(u>>>27|(c&3)<<5)&127,r[n++]=c>>>2&127,r[n++]=c>>>9&127,r[n++]=c>>>16&127,r[n++]=c>>>23&127,r[n++]=(c>>>30|(f&31)<<2)&127,r[n++]=f>>>5&127,r[n++]=f>>>12&127,r[n++]=f>>>19&127,r[n++]=(f>>>26|(h&1)<<6)&127,r[n++]=h>>>1&127,r[n++]=h>>>8&127,r[n++]=h>>>15&127,r[n++]=h>>>22&127,r[n++]=(h>>>29|(p&15)<<3)&127,r[n++]=p>>>4&127,r[n++]=p>>>11&127,r[n++]=p>>>18&127,r[n++]=p>>>25&127}}function u5r(e,t,r,i){let n=i,a=t;for(let o=0;o<8;o++){let s=e[a++]>>>0,l=e[a++]>>>0,u=e[a++]>>>0,c=e[a++]>>>0,f=e[a++]>>>0,h=e[a++]>>>0,p=e[a++]>>>0,d=e[a++]>>>0;r[n++]=s>>>0&255,r[n++]=s>>>8&255,r[n++]=s>>>16&255,r[n++]=s>>>24&255,r[n++]=l>>>0&255,r[n++]=l>>>8&255,r[n++]=l>>>16&255,r[n++]=l>>>24&255,r[n++]=u>>>0&255,r[n++]=u>>>8&255,r[n++]=u>>>16&255,r[n++]=u>>>24&255,r[n++]=c>>>0&255,r[n++]=c>>>8&255,r[n++]=c>>>16&255,r[n++]=c>>>24&255,r[n++]=f>>>0&255,r[n++]=f>>>8&255,r[n++]=f>>>16&255,r[n++]=f>>>24&255,r[n++]=h>>>0&255,r[n++]=h>>>8&255,r[n++]=h>>>16&255,r[n++]=h>>>24&255,r[n++]=p>>>0&255,r[n++]=p>>>8&255,r[n++]=p>>>16&255,r[n++]=p>>>24&255,r[n++]=d>>>0&255,r[n++]=d>>>8&255,r[n++]=d>>>16&255,r[n++]=d>>>24&255}}function c5r(e,t,r,i){let n=i,a=t;for(let o=0;o<128;o++){let s=e[a++]>>>0;r[n++]=s&65535,r[n++]=s>>>16&65535}}function f5r(e,t,r,i,n){let a=Kie[n]>>>0,o=t,s=0,l=e[o]>>>0,u=i;for(let c=0;c<8;c++){for(let f=0;f<32;f++)if(s+n<=32){let h=l>>>s&a;r[u+f]=h|0,s+=n,s===32&&(s=0,o++,f!==31&&(l=e[o]>>>0))}else{let h=32-s,p=l>>>s;o++,l=e[o]>>>0;let d=n-h,v=-1>>>32-d>>>0,m=(p|(l&v)<>>0)}}function nat(){let e=new Uint8Array(h5r);return{dataToBePacked:Array(33),dataPointers:new Int32Array(33),byteContainer:e,byteContainerI32:new Int32Array(e.buffer,e.byteOffset,e.byteLength>>>2),exceptionSizes:new Int32Array(33)}}function d5r(e=16){if(e<0)throw RangeError(`initialEncodedWordCapacity must be >= 0, got ${e}`);let t=Math.max(16,e|0);return{encodedWords:new Uint32Array(t),decoderWorkspace:nat()}}function p5r(e,t){if(t<=e.encodedWords.length)return e.encodedWords;let r=new Uint32Array(Math.max(16,t*2));return e.encodedWords=r,r}function v5r(e,t,r,i){i.byteContainer.length>>2;if(n.byteOffset&3)for(let s=0;s>>8&255,n[u+2|0]=l>>>16&255,n[u+3|0]=l>>>24&255}else{let s=i.byteContainerI32;(!s||s.buffer!==n.buffer||s.byteOffset!==n.byteOffset||s.length>>2)),s.set(e.subarray(t,t+a))}let o=r&3;if(o>0){let s=e[t+a|0]|0,l=a<<2;for(let u=0;u>>(u<<3)&255}return n}function g5r(e,t,r){let i=e[t++]|0,n=r.dataToBePacked;for(let a=2;a<=32;a=a+1|0){if(!(i>>>a-1&1))continue;if(t>=e.length)throw Error(`FastPFOR decode: truncated exception stream header (bitWidth=${a}, streamWordIndex=${t}, needWords=1, availableWords=${e.length-t}, encodedWords=${e.length})`);let o=e[t++]>>>0,s=Vwr(o),l=o*a+31>>>5;if(t+l>e.length)throw Error(`FastPFOR decode: truncated exception stream (bitWidth=${a}, size=${o}, streamWordIndex=${t}, needWords=${l}, availableWords=${e.length-t}, encodedWords=${e.length})`);let u=n[a];(!u||u.length>>5)|0,r.exceptionSizes[a]=o}return t}function m5r(e,t,r,i,n){switch(n){case 1:r5r(e,t,r,i);break;case 2:i5r(e,t,r,i);break;case 3:n5r(e,t,r,i);break;case 4:a5r(e,t,r,i);break;case 5:o5r(e,t,r,i);break;case 6:s5r(e,t,r,i);break;case 7:l5r(e,t,r,i);break;case 8:u5r(e,t,r,i);break;case 16:c5r(e,t,r,i);break;default:f5r(e,t,r,i,n)}return t+(n<<3)|0}function y5r(e,t,r,i){if(r+2>t)throw Error(`FastPFOR decode: byteContainer underflow at block=${i} (need 2 bytes for [bitWidth, exceptionCount], bytePos=${r}, byteSize=${t})`);let n=e[r++],a=e[r++];if(n>32)throw Error(`FastPFOR decode: invalid bitWidth=${n} at block=${i} (expected 0..32). This likely indicates corrupted or truncated input.`);return{bitWidth:n,exceptionCount:a,bytePosIn:r}}function x5r(e,t,r,i,n,a){if(r+1>t)throw Error(`FastPFOR decode: exception header underflow at block=${a} (need 1 byte for maxBits, bytePos=${r}, byteSize=${t})`);let o=e[r++];if(o32)throw Error(`FastPFOR decode: invalid maxBits=${o} at block=${a} (bitWidth=${i}, expected ${i}..32)`);let s=o-i|0;if(s<1||s>32)throw Error(`FastPFOR decode: invalid exceptionBitWidth=${s} at block=${a} (bitWidth=${i}, maxBits=${o})`);if(r+n>t)throw Error(`FastPFOR decode: exception positions underflow at block=${a} (need=${n}, have=${t-r})`);return{maxBits:o,exceptionBitWidth:s,bytePosIn:r}}function b5r(e,t,r,i,n,a,o,s,l){let{maxBits:u,exceptionBitWidth:c,bytePosIn:f}=x5r(n,a,o,r,i,l);if(o=f,c===1){let m=1<v)throw Error(`FastPFOR decode: exception stream overflow for exceptionBitWidth=${c} (ptr=${d}, need ${i}, size=${v}) at block ${l}`);for(let m=0;m0&&(f=b5r(n,m,d,v,s,l,f,u,h))}if(c!==i)throw Error(`FastPFOR decode: packed region mismatch (pageStart=${t}, packedStart=${r}, consumedPackedEnd=${c}, expectedPackedEnd=${i}, packedWords=${i-r}, encoded.length=${e.length})`)}function w5r(e,t,r,i,n,a){let o=r|0,s=e[o]|0;if(s<=0||o+s>e.length-1)throw Error(`FastPFOR decode: invalid whereMeta=${s} at pageStart=${o} (expected > 0 and pageStart+whereMeta < encoded.length=${e.length})`);let l=o+1|0,u=o+s|0,c=e[u]>>>0,f=c+3>>>2,h=u+1,p=h+f;if(p>=e.length)throw Error(`FastPFOR decode: invalid byteSize=${c} (metaInts=${f}, pageStart=${o}, packedEnd=${u}, byteContainerStart=${h}) causes bitmapPos=${p} out of bounds (encoded.length=${e.length})`);let d=v5r(e,h,c,a),v=c,m=g5r(e,p,a);return a.dataPointers.fill(0),_5r(e,o,l,u,t,i|0,n/256|0,d,v,a),m}function T5r(e,t,r,i,n,a){let o=i+vae(n,256),s=i,l=r;for(;s!==o;){let u=Math.min(Jie,o-s);l=w5r(e,t,l,s,u,a),s=s+u|0}return l}function A5r(e,t,r,i,n,a){if(a===0)return t;let o=0,s=t,l=t+r,u=n,c=n,f=n+a,h=0,p=0;for(;s>>o&255;if(o+=8,s+=o>>>5,o&=31,h|=(d&127)<28)throw Error(`FastPFOR VByte: unterminated value (expected MSB=1 terminator within 5 bytes; shift=${p}, partial=${h}, decoded=${c-u}/${a}, inPos=${s}, inEnd=${l})`)}if(c!==f)throw Error(`FastPFOR VByte: truncated stream (decoded=${c-u}, expected=${a}, consumedWords=${s-t}/${r}, vbyteStart=${t}, vbyteEnd=${l})`);return s}function M5r(e,t,r){let i=0,n=0,a=new Uint32Array(t),o=r!=null?r:nat();if(e.length>0){let u=e[i]|0;if(i=i+1|0,u&255)throw Error(`FastPFOR decode: invalid alignedLength=${u} (expected multiple of 256)`);if(n+u>a.length)throw Error(`FastPFOR decode: output buffer too small (outPos=${n}, alignedLength=${u}, out.length=${a.length})`);i=T5r(e,a,i,n,u,o),n=n+u|0}let s=e.length-i|0,l=t-n|0;return A5r(e,i,s,a,n,l),a}function S5r(e,t,r,i,n){switch(n){case 2:Hwr(e,t,r,i);return;case 3:jwr(e,t,r,i);return;case 4:$wr(e,t,r,i);return;case 5:Wwr(e,t,r,i);return;case 6:Ywr(e,t,r,i);return;case 7:Xwr(e,t,r,i);return;case 8:Zwr(e,t,r,i);return;case 9:Kwr(e,t,r,i);return;case 10:Jwr(e,t,r,i);return;case 11:Qwr(e,t,r,i);return;case 12:e5r(e,t,r,i);return;case 16:t5r(e,t,r,i);return;case 32:for(let u=0;u<32;u=u+1|0)r[i+u|0]=e[t+u|0]|0;return}let a=Kie[n]>>>0,o=t,s=0,l=e[o]>>>0;for(let u=0;u<32;u++)if(s+n<=32){let c=l>>>s&a;r[i+u]=c|0,s+=n,s===32&&(s=0,o++,u!==31&&(l=e[o]>>>0))}else{let c=32-s,f=l>>>s;o++,l=e[o]>>>0;let h=Kie[n-c]>>>0,p=(f|(l&h)<e.length)throw RangeError(`decodeBigEndianInt32sInto: out of bounds (offset=${t}, byteLength=${r}, bytes.length=${e.length})`);let n=Math.floor(r/4),a=r%4!=0,o=a?n+1:n;if(i.length0){let s=e.byteOffset+t;if(s&3)for(let l=0;l=64)throw Error("Varint too long")}return t.set(n),r}function C5r(e,t,r){let i=new Float64Array(r);for(let n=0;n>4,n<128||(n=t[r.get()],r.increment(),i|=(n&127)<<3,n<128)||(n=t[r.get()],r.increment(),i|=(n&127)<<10,n<128)||(n=t[r.get()],r.increment(),i|=(n&127)<<17,n<128)||(n=t[r.get()],r.increment(),i|=(n&127)<<24,n<128)||(n=t[r.get()],r.increment(),i|=(n&1)<<31,n<128))return i*4294967296+(e>>>0);throw Error("Expected varint not more than 10 bytes")}function L5r(e,t,r,i){return P5r(e,t,r,i,d5r(r>>>2))}function P5r(e,t,r,i,n){let a=i.get();if(r&3)throw Error(`FastPFOR: invalid encodedByteLength=${r} at offset=${a} (encodedBytes.length=${e.length}; expected a multiple of 4 bytes for an int32 big-endian word stream)`);let o=r>>>2,s=p5r(n,o);E5r(e,a,r,s);let l=M5r(s.subarray(0,o),t,n.decoderWorkspace);return i.add(r),l}function Ga(e){return e>>>1^-(e&1)}function hf(e){return e>>BigInt(1)^-(e&BigInt(1))}function rx(e){return e%2==1?(e+1)/-2:e/2}function I5r(e){let t=new Int32Array(e.length);for(let r=0;r=4)for(;i=4)for(;i=4)for(;r=4)for(let i=e[0];r=4)for(;i=4)for(;l>>0;for(let r=1;r>>0;return t}function att(e){let t=new BigUint64Array(e.length);t[0]=BigInt.asUintN(64,hf(e[0]));for(let r=1;r>>0,t[1]=Ga(e[1])>>>0;for(let r=2;r>>0,t[r+1]=t[r-1]+Ga(e[r+1])>>>0;return t}function X5r(e,t,r,i){let n=oat(e,t,r,i);return new Uint32Array(n)}function Z5r(e){return e[1]}function K5r(e){return Ga(e[1])}function J5r(e){if(e.length===2){let t=Ga(e[1]);return[t,t]}return[Ga(e[2]),Ga(e[3])]}function Q5r(e){return e[1]}function e4r(e){return hf(e[1])}function t4r(e){if(e.length===2){let t=hf(e[1]);return[t,t]}return[hf(e[2]),hf(e[3])]}function Ws(e,t){let r=u4r(e,t);return r.logicalLevelTechnique1===da.MORTON?s4r(r,e,t):(da.RLE===r.logicalLevelTechnique1||da.RLE===r.logicalLevelTechnique2)&&V0.NONE!==r.physicalLevelTechnique?l4r(r,e,t):r}function s4r(e,t,r){let i=df(t,r,2);return{physicalStreamType:e.physicalStreamType,logicalStreamType:e.logicalStreamType,logicalLevelTechnique1:e.logicalLevelTechnique1,logicalLevelTechnique2:e.logicalLevelTechnique2,physicalLevelTechnique:e.physicalLevelTechnique,numValues:e.numValues,byteLength:e.byteLength,decompressedCount:e.decompressedCount,numBits:i[0],coordinateShift:i[1]}}function l4r(e,t,r){let i=df(t,r,2);return{physicalStreamType:e.physicalStreamType,logicalStreamType:e.logicalStreamType,logicalLevelTechnique1:e.logicalLevelTechnique1,logicalLevelTechnique2:e.logicalLevelTechnique2,physicalLevelTechnique:e.physicalLevelTechnique,numValues:e.numValues,byteLength:e.byteLength,decompressedCount:i[1],runs:i[0],numRleValues:i[1]}}function u4r(e,t){let r=e[t.get()],i=r4r[r>>4],n={};switch(i){case nu.DATA:n={dictionaryType:n4r[r&15]};break;case nu.OFFSET:n={offsetType:a4r[r&15]};break;case nu.LENGTH:n={lengthType:o4r[r&15]}}t.increment();let a=e[t.get()],o=ott[a>>5],s=ott[a>>2&7],l=i4r[a&3];t.increment();let u=df(e,t,2),c=u[0],f=u[1];return{physicalStreamType:i,logicalStreamType:n,logicalLevelTechnique1:o,logicalLevelTechnique2:s,physicalLevelTechnique:l,numValues:c,byteLength:f,decompressedCount:c}}function g3(e,t,r){if(!t)return e;let i=t.size(),n=e.constructor,a=new n(i),o=0;for(let s=0;s=o);){let s=e[i.increment()];if(s<=127){let l=s+3,u=e[i.increment()],c=Math.min(a+l,t);n.fill(u,a,c),a=c}else{let l=256-s;for(let u=0;u=12?p4r.decode(e.subarray(t,r)):v4r(e,t,r)}function v4r(e,t,r){let i="",n=t;for(;n239?4:a>223?3:a>191?2:1;if(n+s>r)break;let l,u,c;s===1?a<128&&(o=a):s===2?(l=e[n+1],(l&192)==128&&(o=(a&31)<<6|l&63,o<=127&&(o=null))):s===3?(l=e[n+1],u=e[n+2],(l&192)==128&&(u&192)==128&&(o=(a&15)<<12|(l&63)<<6|u&63,(o<=2047||o>=55296&&o<=57343)&&(o=null))):s===4&&(l=e[n+1],u=e[n+2],c=e[n+3],(l&192)==128&&(u&192)==128&&(c&192)==128&&(o=(a&15)<<18|(l&63)<<12|(u&63)<<6|c&63,(o<=65535||o>=1114112)&&(o=null))),o===null?(o=65533,s=1):o>65535&&(o-=65536,i+=String.fromCharCode(o>>>10&1023|55296),o=56320|o&1023),i+=String.fromCharCode(o),n+=s}return i}function IB(e,t,r,i,n){return b4r(tT(e,t,r),r,i,n)}function ff(e,t,r,i,n){return _4r(tT(e,t,r),r,i,n)}function ix(e,t,r){return T4r(tT(e,t,r),r)}function tT(e,t,r){let i=r.physicalLevelTechnique;switch(i){case V0.FAST_PFOR:return L5r(e,r.numValues,r.byteLength,t);case V0.VARINT:return df(e,t,r.numValues);case V0.NONE:return h4r(e,t,r.numValues);default:throw Error(`Specified physicalLevelTechnique ${i} is not supported (yet).`)}}function zC(e,t,r){let i=r.physicalLevelTechnique;switch(i){case V0.VARINT:return gae(e,t,r.numValues);case V0.NONE:return d4r(e,t,r.numValues);default:throw Error(`Specified physicalLevelTechnique ${i} is not supported (yet).`)}}function g4r(e,t,r){let i=tT(e,t,r);return i.length===1?Ga(i[0]):K5r(i)}function xae(e,t,r){let i=tT(e,t,r);return i.length===1?r.logicalLevelTechnique1===da.DELTA?Ga(i[0]):i[0]:Z5r(i)}function cat(e,t,r){return J5r(tT(e,t,r))}function fat(e,t,r){return t4r(gae(e,t,r.numValues))}function hat(e,t,r,i){return pat(zC(e,t,r),r,i)}function bae(e,t,r,i){return vat(zC(e,t,r),r,i)}function m4r(e,t,r,i){let n=y4r(e,t,r,!1);return i?g3(n,i,0):n}function y4r(e,t,r,i){if(r.physicalLevelTechnique===V0.VARINT)return w4r(C5r(e,t,r.numValues),r,i);let n=zC(e,t,r),a=i?pat(n,r):vat(n,r);return Float64Array.from(a,Number)}function x4r(e,t,r){let i=zC(e,t,r);return i.length===1?hf(i[0]):e4r(i)}function dat(e,t,r){let i=zC(e,t,r);return i.length===1?r.logicalLevelTechnique1===da.DELTA?hf(i[0]):i[0]:Q5r(i)}function b4r(e,t,r,i){let n;switch(t.logicalLevelTechnique1){case da.DELTA:if(t.logicalLevelTechnique2===da.RLE){let a=t;if(!i)return $5r(e,a.runs,a.numRleValues);e=Qie(e,a.runs,a.numRleValues),n=rtt(e)}else n=rtt(e);break;case da.RLE:n=q5r(e,t.runs,t.numRleValues);break;case da.MORTON:mae(e),n=new Int32Array(e);break;case da.COMPONENTWISE_DELTA:if(r&&!i)return oat(e,r.scale,r.min,r.max);n=V5r(e);break;case da.NONE:n=I5r(e);break;default:throw Error(`The specified Logical level technique is not supported: ${t.logicalLevelTechnique1}`)}return i?g3(n,i,0):n}function _4r(e,t,r,i){let n;switch(t.logicalLevelTechnique1){case da.DELTA:if(t.logicalLevelTechnique2===da.RLE){let a=t;n=ntt(Qie(e,a.runs,a.numRleValues))}else n=ntt(e);break;case da.RLE:n=Qie(e,t.runs,t.numRleValues);break;case da.MORTON:mae(e),n=e;break;case da.COMPONENTWISE_DELTA:n=r&&!i?X5r(e,r.scale,r.min,r.max):Y5r(e);break;case da.NONE:n=e;break;default:throw Error(`The specified Logical level technique is not supported: ${t.logicalLevelTechnique1}`)}return i?g3(n,i,0):n}function pat(e,t,r){let i;switch(t.logicalLevelTechnique1){case da.DELTA:if(t.logicalLevelTechnique2===da.RLE){let n=t;if(!r)return W5r(e,n.runs,n.numRleValues);e=ene(e,n.runs,n.numRleValues),i=itt(e)}else i=itt(e);break;case da.RLE:i=O5r(e,t.runs,t.numRleValues);break;case da.NONE:i=R5r(e);break;default:throw Error(`The specified Logical level technique is not supported: ${t.logicalLevelTechnique1}`)}return r?g3(i,r,BigInt(0)):i}function vat(e,t,r){let i;switch(t.logicalLevelTechnique1){case da.DELTA:if(t.logicalLevelTechnique2===da.RLE){let n=t;i=att(ene(e,n.runs,n.numRleValues))}else i=att(e);break;case da.RLE:i=ene(e,t.runs,t.numRleValues);break;case da.NONE:i=e;break;default:throw Error(`The specified Logical level technique is not supported: ${t.logicalLevelTechnique1}`)}return r?g3(i,r,BigInt(0)):i}function w4r(e,t,r){switch(t.logicalLevelTechnique1){case da.DELTA:if(t.logicalLevelTechnique2===da.RLE){let i=t;e=aat(e,i.runs,i.numRleValues)}return B5r(e),e;case da.RLE:return M4r(e,t,r);case da.NONE:return r&&z5r(e),e;default:throw Error(`The specified Logical level technique is not supported: ${t.logicalLevelTechnique1}`)}}function T4r(e,t){if(t.logicalLevelTechnique1===da.DELTA&&t.logicalLevelTechnique2===da.NONE)return G5r(e);if(t.logicalLevelTechnique1===da.RLE&&t.logicalLevelTechnique2===da.NONE){let r=t;return j5r(e,r.runs,r.numRleValues)}if(t.logicalLevelTechnique1===da.NONE&&t.logicalLevelTechnique2===da.NONE){U5r(e);let r=new Uint32Array(t.numValues+1);return r[0]=0,r.set(e,1),r}if(t.logicalLevelTechnique1===da.DELTA&&t.logicalLevelTechnique2===da.RLE){let r=t,i=H5r(e,r.runs,r.numRleValues);return mae(i),new Uint32Array(i)}throw Error("Only delta encoding is supported for transforming length to offset streams yet.")}function kq(e,t,r,i,n="int32"){let a=e.logicalLevelTechnique1;if(a===da.RLE)return e.runs===1?Rs.CONST:Rs.FLAT;if(a!==da.DELTA||e.logicalLevelTechnique2!==da.RLE)return e.numValues===1?Rs.CONST:Rs.FLAT;let o=t instanceof Ev?t.size():t,s=e;if(s.numRleValues!==o)return Rs.FLAT;if(s.runs===1)return Rs.SEQUENCE;if(s.runs!==2)return e.numValues===1?Rs.CONST:Rs.FLAT;let l=i.get();if(e.physicalLevelTechnique===V0.VARINT)return A4r(r,i,n)?Rs.SEQUENCE:e.numValues===1?Rs.CONST:Rs.FLAT;let u=i.get(),c=new Int32Array(r.buffer,r.byteOffset+u,4);return i.set(l),c[2]===2&&c[3]===2?Rs.SEQUENCE:e.numValues===1?Rs.CONST:Rs.FLAT}function A4r(e,t,r){let i=new rat(t.get());if(r==="int64"){let a=gae(e,i,4);return a[2]===BigInt(2)&&a[3]===BigInt(2)}let n=df(e,i,4);return n[2]===2&&n[3]===2}function M4r(e,t,r){return r?N5r(e,t.runs,t.numRleValues):aat(e,t.runs,t.numRleValues)}function _ae(e,t,r){return{x:stt(e,t)-r,y:stt(e>>1,t)-r}}function stt(e,t){let r=0;for(let i=0;i>i;return r}function S4r(e){let t=Array(e.numGeometries),r=1,i=1,n=1,a=0,o=0,s=0,l=e.mortonSettings,u=e.topologyVector,c=u.geometryOffsets,f=u.partOffsets,h=u.ringOffsets,p=e.vertexOffsets,d=!p||p.length===0,v=e.containsPolygonGeometry(),m=e.vertexBuffer;for(let g=0;g[S]),r+=_,i+=_}break;case Bc.LINESTRING:{let _;v?(_=h[i]-h[i-1],i++):_=f[r]-f[r-1],r++;let b;d?(b=b6(m,o,_,!1),o+=_*2):(b=X_(e.vertexBufferType,m,p,s,_,!1,l),s+=_),t[a++]=[b],c&&n++}break;case Bc.POLYGON:{let _=f[r]-f[r-1];r++;let b=Array(_-1),S,x=h[i]-h[i-1];if(i++,d){S=b6(m,o,x,!0),o+=x*2;for(let T=0;Tr?t[a++]:1);return i}function ftt(e,t,r,i){let n=new Uint32Array(t[t.length-1]+1),a=0;n[0]=a;let o=1,s=0;for(let l=0;l0;)n[a++]=e[u++]}}return n}function Mat(e,t,r,i,n){var p,d;let a,o,s,l,u,c=n,f,h;for(let v=0;v1&&!p.nullable||d===1&&p.nullable)throw Error(`The number of streams for the child field ${p.name} does not match its nullability. nullibilty: ${p.nullable}, numStreams: ${d}`);let m;if(p.nullable){let w=Ws(e,t);m=new Ev(eT(e,w.numValues,w.byteLength,t),w.numValues)}let g=ff(e,t,Ws(e,t),void 0,m);if(s){if(!o)throw Error(`Incomplete shared FSST dictionary for column "${v}"`);c[h++]=new Aat(v,g,n,a,o,s,m,f)}else c[h++]=new I6(v,g,n,a,m)}return c}function j4r(e,t,r,i){let n=$4r(r);if(i===0)return n.map(c=>new dtt(c,[]));let a=W4r(e,t,i),o=(a.presentStream?a.presentCount:a.lengthStream.length)/n.length,s=[],l=0,u=0;for(let c=0;c{var i;return e.name+((i=r.name)!=null?i:"")})}function W4r(e,t,r){let i=e[t.get()];t.add(1);let n=ff(e,t,Ws(e,t)),a=r-1,o=[];i&ng.STRING&&(a-=Y4r(e,t,o)),a-=X4r(e,t,i,o),a-=Z4r(e,t,i,o);let s,l=0;if(i&ng.PRESENCE){let c=K4r(e,t);s=c.value,l=c.count,a--}let u=new Uint32Array;if(a>0&&(u=ff(e,t,Ws(e,t)),a--),a!==0)throw Error(`Unexpected number of remaining streams while decoding map column: ${a}`);return{lengthStream:n,dictionary:o,presentStream:s,presentCount:l,flattenedValues:u}}function Y4r(e,t,r){let i=e[t.get()];t.add(1);let n=Mat("",e,t,i);if(n)for(let a=0;aa.length)throw Error("Merged map counts underflow while decoding child streams");let p=Array(r),d=i,v=n;for(let w=0;wo.length)throw Error("Map value stream underflow while decoding feature payload");let b=Q4r(o,v,_,l);p[w]=b.value,v=b.nextIndex}let m=0;for(let w=i;w=r)throw Error("Unexpected end of map value stream");let n=e[t];if(n===ax.FALSE)return{value:!1,nextIndex:t+1};if(n===ax.TRUE)return{value:!0,nextIndex:t+1};if(n===ax.START_MAP){let a=ptt(e,t,r);return{value:Sat(e,t+2,a,i).value,nextIndex:a}}if(n===ax.START_LIST){let a=ptt(e,t,r),o=[],s=t+2;for(;s=r)throw Error("Missing length for nested map/list payload");let i=e[t+1];if(i<2)throw Error(`Invalid nested payload length: ${i}`);let n=t+i;if(n>r)throw Error("Nested payload exceeds containing payload bounds");return n}function Eat(e,t){let r=e-ax.COUNT;if(r<0||r>=t.length)throw Error(`Scalar dictionary index out of range: ${e}`);return t[r]}function k6(e,t){for(let r of t)e.push(r)}function e6r(e,t,r,i,n,a){var o;return r.type==="scalarType"?a&&!a.has(r.name)?(sat(i,e,t),null):t6r(i,e,t,n,r.scalarType,r):((o=r.complexType)==null?void 0:o.physicalType)===sx.MAP?j4r(e,t,r,i):i===0?null:H4r(e,t,r,a)}function t6r(e,t,r,i,n,a){var l;let o;if(e===0)return null;if(a.nullable){let u=Ws(t,r),c=u.numValues,f=r.get(),h=eT(t,c,u.byteLength,r);r.set(f+u.byteLength),o=new Ev(h,u.numValues)}let s=o!=null?o:i;switch(n.physicalType){case xo.UINT_32:case xo.INT_32:return o6r(t,r,a,n,s);case xo.STRING:{let u=a.nullable?e-1:e;return(l=Mat(a.name,t,r,u,o))!=null?l:null}case xo.BOOLEAN:return r6r(t,r,a,i,s);case xo.UINT_64:case xo.INT_64:return a6r(t,r,a,s,n);case xo.FLOAT:return i6r(t,r,a,s);case xo.DOUBLE:return n6r(t,r,a,s);default:throw Error(`The specified data type for the field is currently not supported: ${n}`)}}function r6r(e,t,r,i,n){let a=Ws(e,t),o=a.numValues,s=t.get(),l=BC(n)?n:void 0,u=eT(e,o,a.byteLength,t,l);t.set(s+a.byteLength);let c=new Ev(u,o);return new B4r(r.name,c,n)}function i6r(e,t,r,i){let n=Ws(e,t),a=BC(i)?i:void 0,o=lat(e,t,n.numValues,a);return new q4r(r.name,o,i)}function n6r(e,t,r,i){let n=Ws(e,t),a=BC(i)?i:void 0,o=uat(e,t,n.numValues,a);return new cae(r.name,o,i)}function a6r(e,t,r,i,n){let a=Ws(e,t),o=kq(a,i,e,t,"int64"),s=n.physicalType===xo.INT_64;if(o===Rs.FLAT){let u=BC(i)?i:void 0,c=s?hat(e,t,a,u):bae(e,t,a,u);return new gat(r.name,c,i)}if(o===Rs.SEQUENCE){let u=fat(e,t,a);return new mat(r.name,u[0],u[1],a.numRleValues,s)}let l=s?x4r(e,t,a):dat(e,t,a);return new Tat(r.name,l,i,s)}function o6r(e,t,r,i,n){let a=Ws(e,t),o=kq(a,n,e,t),s=i.physicalType===xo.INT_32;if(o===Rs.FLAT){let u=BC(n)?n:void 0,c=s?IB(e,t,a,void 0,u):ff(e,t,a,void 0,u);return new uae(r.name,c,n)}if(o===Rs.SEQUENCE){let u=cat(e,t,a);return new fae(r.name,u[0],u[1],a.numRleValues,s)}let l=s?g4r(e,t,a):xae(e,t,a);return new hae(r.name,l,n,s)}function BC(e){return e instanceof Ev}function kat(e){switch(e){case fc.ID:case fc.ID|fc.ID_NULLABLE:case fc.ID|fc.ID_LONG:case fc.ID|fc.ID_LONG|fc.ID_NULLABLE:return{nullable:(e&fc.ID_NULLABLE)!==0,columnScope:Bk.FEATURE,type:"scalarType",scalarType:{longID:(e&fc.ID_LONG)!==0,type:"logicalType",logicalType:tat.ID}};case fc.GEOMETRY:return{nullable:!1,columnScope:Bk.FEATURE,type:"complexType",complexType:{type:"physicalType",physicalType:sx.GEOMETRY,children:[]}};case fc.STRUCT:return{nullable:!1,columnScope:Bk.FEATURE,type:"complexType",complexType:{type:"physicalType",physicalType:sx.STRUCT,children:[]}};case fc.MAP:return{nullable:!0,columnScope:Bk.FEATURE,type:"complexType",complexType:{type:"physicalType",physicalType:sx.MAP,children:[]}};default:return f6r(e)}}function s6r(e){return e>=fc.SCALAR_BASE}function Cat(e){return e===fc.STRUCT||e===fc.MAP}function l6r(e){if(e.type==="scalarType"){let t=e.scalarType;if(t.type==="physicalType")switch(t.physicalType){case xo.BOOLEAN:case xo.INT_8:case xo.UINT_8:case xo.INT_32:case xo.UINT_32:case xo.INT_64:case xo.UINT_64:case xo.FLOAT:case xo.DOUBLE:return!1;case xo.STRING:return!0;default:return!1}if(t.type==="logicalType")return!1}else if(e.type==="complexType"){let t=e.complexType;if(t.type==="physicalType")switch(t.physicalType){case sx.GEOMETRY:case sx.STRUCT:case sx.MAP:return!0;default:return!1}}return console.warn("Unexpected column type in hasStreamCount",e),!1}function u6r(e){var t;return e.type==="scalarType"&&((t=e.scalarType)==null?void 0:t.type)==="logicalType"&&e.scalarType.logicalType===tat.ID}function c6r(e){var t;return e.type==="complexType"&&((t=e.complexType)==null?void 0:t.type)==="physicalType"&&e.complexType.physicalType===sx.GEOMETRY}function f6r(e){let t;switch(e){case 10:case 11:t=xo.BOOLEAN;break;case 12:case 13:t=xo.INT_8;break;case 14:case 15:t=xo.UINT_8;break;case 16:case 17:t=xo.INT_32;break;case 18:case 19:t=xo.UINT_32;break;case 20:case 21:t=xo.INT_64;break;case 22:case 23:t=xo.UINT_64;break;case 24:case 25:t=xo.FLOAT;break;case 26:case 27:t=xo.DOUBLE;break;case 28:case 29:t=xo.STRING;break;default:return null}return{nullable:!!(e&1),columnScope:Bk.FEATURE,type:"scalarType",scalarType:{longID:!1,type:"physicalType",physicalType:t}}}function Aae(e,t){let r=df(e,t,1)[0];if(r===0)return"";let i=t.get(),n=i+r,a=e.subarray(i,n);return t.add(r),h6r.decode(a)}function d6r(e){let t=e.name,r=e.nullable;return e.type==="scalarType"?{type:"scalarField",scalarField:e.scalarType,name:t,nullable:r}:{type:"complexField",complexField:e.complexType,name:t,nullable:r}}function Dat(e,t){let r=df(e,t,1)[0]>>>0,i=r>=fc.SCALAR_BASE?kat(r):null;if(!i)throw Error(`Unsupported field type code ${r}. Supported: 10-29(scalars), 30(STRUCT), 31(MAP)`);let n=_a(dn({},i),{name:Aae(e,t)});if(n.type==="complexType"&&Cat(r)){let a=n.complexType,o=df(e,t,1)[0]>>>0;a.children=Array(o);for(let s=0;s>>0,i=kat(r);if(!i)throw Error(`Unsupported column type code ${r}. Supported: ${vtt}`);let n;if(s6r(r))n=Aae(e,t);else if(r>>0,s=a.complexType;s.children=Array(o);for(let l=0;l>>0,a=df(e,t,1)[0]>>>0;i.columns=Array(a);for(let o=0;o>>0,o=i.get()+a;if(o>e.length)throw Error(`Block overruns tile: ${o} > ${e.length}`);let s=df(e,i,1)[0]>>>0;if(s!==1&&s!==2){i.set(o);continue}let[l,u]=v6r(e,i),c=l.featureTables[0],f=null,h=null,p=[],d=0;for(let m of c.columns){let g=m.name;if(u6r(m)){let w=null;if(m.nullable){let b=Ws(e,i),S=i.get(),x=eT(e,b.numValues,b.byteLength,i);i.set(S+b.byteLength),w=new Ev(x,b.numValues)}let _=Ws(e,i);d=w?w.size():_.decompressedCount,f=m6r(e,m,i,g,_,w!=null?w:d,r)}else if(c6r(m)){let w=df(e,i,1)[0];if(d===0){let _=i.get();d=Ws(e,i).decompressedCount,i.set(_)}t&&(t.scale=t.extent/u),h=I4r(e,w,i,d,t)}else{let w=l6r(m)?df(e,i,1)[0]:1;if(w===0)continue;let _=e6r(e,i,m,w,d,void 0);if(_)if(Array.isArray(_))for(let b of _)p.push(b);else p.push(_)}}let v=new Uwr(c.name,h,f,p,u);n.push(v),i.set(o)}return n}function m6r(e,t,r,i,n,a,o=!1){var c;let s=(c=t.scalarType)!=null&&c.longID?xo.UINT_64:xo.UINT_32,l=typeof a=="number"?void 0:a,u=kq(n,a,e,r,s===xo.UINT_64?"int64":"int32");if(s===xo.UINT_32)switch(u){case Rs.FLAT:return new uae(i,ff(e,r,n,void 0,l),a);case Rs.SEQUENCE:{let f=cat(e,r,n);return new fae(i,f[0],f[1],n.numRleValues,!1)}case Rs.CONST:return new hae(i,xae(e,r,n),a,!1)}switch(u){case Rs.FLAT:return o?new cae(i,m4r(e,r,n,l),a):new gat(i,bae(e,r,n,l),a);case Rs.SEQUENCE:{let f=fat(e,r,n);return new mat(i,f[0],f[1],n.numRleValues,!1)}case Rs.CONST:return new Tat(i,dat(e,r,n),a,!1)}throw Error("Vector type not supported for id column.")}function w6r(e){return typeof e=="object"&&!!e&&"evaluate"in e}function gtt(e,t,r,i,n){return WB(e,(a,o)=>{let s=t instanceof fq?t.get(o):null;return w6r(s)?s.evaluate(r,i,void 0,n):s})}function T6r(e,t){return t-e}var fyr,mtt,hyr,dyr,pyr,ytt,tne,vyr,gyr,wk,Xz,$u,BB,kv,lg,cC,Ftt,ane,kQe,Ptt,Br,$B,Fyr,DQe,Sre,Vtt,Gtt,Cv,$tt,Wtt,FQe,W6,r0,mB,R6,Iyr,vC,gC,gne,Qtt,i0,An,lu,ert,_r,trt,ei,mC,ki,ha,Ra,Mv,ZB,Q_,ma,Byr,KB,yC,JB,$k,QB,xC,eq,qyr,rrt,irt,nrt,jre,art,Oyr,Nyr,Hyr,$yr,zc,na,Yyr,$re,Pm,ug,cg,ip,sl,Xyr,og,sg,Om,xne,q6,Zyr,hrt,bne,np,Ys,prt,Kz,Dm,RQe,S6,xrt,_rt,t2r,r2r,i2r,n2r,a2r,o2r,Ert,y2r,x2r,b2r,_2r,w2r,T2r,Drt,A2r,M2r,S2r,ag,Tne,qrt,NQe,Ane,Ene,X2r,kne,C6,tg,Z2r,Grt,f3,Dne,Fne,Kk,wB,Krt,hxr,XQe,ZQe,Dxr,KQe,Lxr,Pxr,ph,zne,iie,Fm,AB,Io,Qk,nie,TC,JQe,QQe,Bxr,rp,fq,Pi,En,eC,Tit,hq,hc,tet,Bre,Dv,ret,qxr,Oxr,dq,Nxr,Uxr,AC,bl,tC,MB,aie,oie,sie,rC,lie,uie,cie,fie,hie,die,pie,vie,gie,SB,mie,yie,EB,xie,bie,_ie,wie,Tie,Ait,One,Mit,Sit,Eit,kit,Cit,Dit,Fit,Lit,Pit,Iit,Nm,Rit,zit,Gxr,Hxr,jxr,$xr,Wxr,x6,net,Yxr,Xxr,Zxr,aet,Bit,Kxr,qit,Fv,Aie,Oit,Mie,Jxr,Xs,Qxr,ebr,tbr,rbr,kB,Nit,Um,Mn,Oi,ya,Nf,K6,Vm,Nne,Une,ibr,lp,Rk,Z_,Cm,Tv,tx,Vit,Git,Hit,a3,kie,cet,fet,Vne,det,xbr,pet,bbr,_br,Yit,wbr,Xit,vet,Tbr,Abr,mq,Ss,MC,Qit,Mbr,get,Sbr,Ebr,ent,kbr,met,Cbr,Dbr,wu,Lm,Fbr,rnt,Lbr,Die,Pbr,iC,Fie,Pie,ru,DB,Iie,Rie,tp,Ak,Y_,Mk,Sk,rg,r3,yq,F6,L6,Qbr,cnt,_et,o_r,wet,s_r,l_r,fnt,u_r,qie,c_r,f_r,ap,hnt,SC,d_r,v_r,Uf,pn,pnt,Mo,gx,Ore,ynt,Aet,A_r,Met,M_r,S_r,xnt,E_r,F_r,L_r,Uie,P_r,Vie,I_r,R_r,bnt,ket,_nt,Cet,z_r,Det,B_r,Fet,q_r,nB,wnt,O_r,N_r,U_r,V_r,Pet,Tnt,LB,X_r,Z_r,K_r,Ret,J_r,Mnt,Snt,Ck,Dk,E6,y3r,x3r,eae,tae,w3r,T3r,A3r,$ie,iri,Get,Lnt,Tq,N3r,Rnt,Het,Wet,P6,uB,dwr,M6,Mq,nae,Awr,Yie,Xie,LC,Jet,Ewr,Qet,kwr,Ure,Xnt,aae,Cwr,ett,Fwr,Lwr,Znt,Pwr,Jnt,Iwr,Rwr,zwr,Qnt,PC,IC,Vc,Vre,RC,Nwr,lae,v3,Eq,uae,cae,eat,fae,hae,Uwr,Bk,xo,sx,tat,rat,da,V0,dae,Kie,pae,Jie,h5r,nu,Bf,ig,Hu,r4r,ott,i4r,n4r,a4r,o4r,Rs,Ev,p4r,gat,mat,Bc,ltt,cx,yat,xat,_at,wat,L4r,P4r,B4r,q4r,Tat,wae,htt,I6,Aat,dtt,ng,ax,fc,h6r,vtt,Hre,y6r,x6r,b6r,_6r,Fat,Lat=Ci(()=>{fyr=Object.create,mtt=Object.defineProperty,hyr=Object.getOwnPropertyDescriptor,dyr=Object.getOwnPropertyNames,pyr=Object.getPrototypeOf,ytt=Object.prototype.hasOwnProperty,tne=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),vyr=(e,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(var n=dyr(t),a=0,o=n.length,s;at[l]).bind(null,s),enumerable:!(i=hyr(t,s))||i.enumerable});return e},gyr=(e,t,r)=>(r=e==null?{}:fyr(pyr(e)),vyr(t||!e||!e.__esModule||!ytt.call(e,"default")?mtt(r,"default",{value:e,enumerable:!0}):r,e));tr.prototype={clone(){return new tr(this.x,this.y)},add(e){return this.clone()._add(e)},sub(e){return this.clone()._sub(e)},multByPoint(e){return this.clone()._multByPoint(e)},divByPoint(e){return this.clone()._divByPoint(e)},mult(e){return this.clone()._mult(e)},div(e){return this.clone()._div(e)},rotate(e){return this.clone()._rotate(e)},rotateAround(e,t){return this.clone()._rotateAround(e,t)},matMult(e){return this.clone()._matMult(e)},unit(){return this.clone()._unit()},perp(){return this.clone()._perp()},round(){return this.clone()._round()},mag(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals(e){return this.x===e.x&&this.y===e.y},dist(e){return Math.sqrt(this.distSqr(e))},distSqr(e){let t=e.x-this.x,r=e.y-this.y;return t*t+r*r},angle(){return Math.atan2(this.y,this.x)},angleTo(e){return Math.atan2(this.y-e.y,this.x-e.x)},angleWith(e){return this.angleWithSep(e.x,e.y)},angleWithSep(e,t){return Math.atan2(this.x*t-this.y*e,this.x*e+this.y*t)},_matMult(e){let t=e[0]*this.x+e[1]*this.y,r=e[2]*this.x+e[3]*this.y;return this.x=t,this.y=r,this},_add(e){return this.x+=e.x,this.y+=e.y,this},_sub(e){return this.x-=e.x,this.y-=e.y,this},_mult(e){return this.x*=e,this.y*=e,this},_div(e){return this.x/=e,this.y/=e,this},_multByPoint(e){return this.x*=e.x,this.y*=e.y,this},_divByPoint(e){return this.x/=e.x,this.y/=e.y,this},_unit(){return this._div(this.mag()),this},_perp(){let e=this.y;return this.y=this.x,this.x=-e,this},_rotate(e){let t=Math.cos(e),r=Math.sin(e),i=t*this.x-r*this.y,n=r*this.x+t*this.y;return this.x=i,this.y=n,this},_rotateAround(e,t){let r=Math.cos(e),i=Math.sin(e),n=t.x+r*(this.x-t.x)-i*(this.y-t.y),a=t.y+i*(this.x-t.x)+r*(this.y-t.y);return this.x=n,this.y=a,this},_round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},constructor:tr},tr.convert=function(e){if(e instanceof tr)return e;if(Array.isArray(e))return new tr(+e[0],+e[1]);if(e.x!==void 0&&e.y!==void 0)return new tr(+e.x,+e.y);throw Error("Expected [x, y] or {x, y} point format")};$u=typeof Float32Array<"u"?Float32Array:Array;BB=byr;kv=_yr;lg=OB,cC=sp;(function(){var e=Att();return function(t,r,i,n,a,o){var s,l;for(r||(r=3),i||(i=0),l=n?Math.min(n*r+i,t.length):t.length,s=i;s.999999?(i[0]=0,i[1]=0,i[2]=0,i[3]=1,i):(dh(e,n,a),i[0]=e[0],i[1]=e[1],i[2]=e[2],i[3]=1+o,kQe(i,i))}})(),(function(){var e=EQe(),t=EQe();return function(r,i,n,a,o,s){return qk(e,i,o,s),qk(t,n,a,s),qk(r,e,t,2*s*(1-s)),r}})(),(function(){var e=ine();return function(t,r,i,n){return e[0]=i[0],e[3]=i[1],e[6]=i[2],e[1]=n[0],e[4]=n[1],e[7]=n[2],e[2]=-r[0],e[5]=-r[1],e[8]=-r[2],kQe(t,Eyr(t,e))}})();Ptt=kyr;(function(){var e=GB();return function(t,r,i,n,a,o){var s,l;for(r||(r=2),i||(i=0),l=n?Math.min(n*r+i,t.length):t.length,s=i;sYi(null,null,function*(){let r=new Blob([new Uint8Array(e)],{type:"image/png"});try{return createImageBitmap(r,t)}catch(i){throw Error(`Could not load image because of ${qc(i).message}. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported.`)}}),Gtt=e=>new Promise((t,r)=>{let i=new Image;i.onload=()=>{t(i),URL.revokeObjectURL(i.src),i.onload=null,window.requestAnimationFrame(()=>i.src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=")},i.onerror=()=>r(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."));let n=new Blob([new Uint8Array(e)],{type:"image/png"});i.src=URL.createObjectURL(n)});Cv=85.051129,$tt={touchstart:!0,touchmove:!0,touchmoveWindow:!0,touchend:!0,touchcancel:!0},Wtt={dblclick:!0,click:!0,mouseover:!0,mouseout:!0,mousedown:!0,mousemove:!0,mousemoveWindow:!0,mouseup:!0,mouseupWindow:!0,contextmenu:!0,wheel:!0};FQe="AbortError",W6=class extends Error{constructor(e=FQe){super(e instanceof Error?e.message:e),this.name=FQe,e instanceof Error&&e.stack&&(this.stack=e.stack)}};r0={MAX_PARALLEL_IMAGE_REQUESTS:16,MAX_PARALLEL_IMAGE_REQUESTS_PER_FRAME:8,MAX_TILE_CACHE_ZOOM_LEVELS:5,REGISTERED_PROTOCOLS:{},WORKER_URL:""};mB="global-dispatcher",R6=class extends Error{constructor(e,t,r,i){super(`AJAXError: ${t} (${e}): ${r}`),this.status=e,this.statusText=t,this.url=r,this.body=i}};Iyr=e=>{var t;return e.startsWith("file:")||((t=XB())==null?void 0:t.startsWith("file:"))&&!/^\w+:/.test(e)};vC=function(e,t){return Yi(this,null,function*(){var r,i;if(e.url.includes("://")&&!/^https?:|^file:/.test(e.url)){let n=vne(e.url);if(n){let a=yield n(e,t);return!a.data&&e.type==="arrayBuffer"?cn(a,{data:new ArrayBuffer(0)}):a}if(i3(self)&&((r=self.worker)!=null&&r.actor))return self.worker.actor.sendAsync({type:"GR",data:e,targetMapId:mB},t)}if(!Iyr(e.url)){if(fetch&&Request&&AbortController&&Object.hasOwn(Request.prototype,"signal"))return Ryr(e,t);if(i3(self)&&((i=self.worker)!=null&&i.actor))return self.worker.actor.sendAsync({type:"GR",data:e,mustQueue:!0,targetMapId:mB},t)}return zyr(e,t)})},gC=(e,t)=>vC(cn(e,{type:"json"}),t),gne=(e,t)=>vC(cn(e,{type:"arrayBuffer"}),t);Qtt=e=>{let t=window.document.createElement("video");return t.muted=!0,new Promise(r=>{t.onloadstart=()=>{r(t)};for(let i of e){let n=window.document.createElement("source");mne(i)||(t.crossOrigin="Anonymous"),n.src=i,t.appendChild(n)}})};i0=class{constructor(e,t={}){cn(this,t),this.type=e}},An=class extends i0{constructor(e,t={}){super("error",cn({error:e},t))}},lu=class{on(e,t){return this._listeners||(this._listeners={}),LQe(e,t,this._listeners),{unsubscribe:()=>{this.off(e,t)}}}off(e,t){return Ere(e,t,this._listeners),Ere(e,t,this._oneTimeListeners),this}once(e,t){return t?(this._oneTimeListeners||(this._oneTimeListeners={}),LQe(e,t,this._oneTimeListeners),this):new Promise(r=>this.once(e,r))}fire(e,t){var n,a,o,s,l,u;let r=typeof e=="string"?new i0(e,t||{}):e,i=r.type;if(this.listens(i)){r.target=this;let c=(o=(a=(n=this._listeners)==null?void 0:n[i])==null?void 0:a.slice())!=null?o:[];for(let p of c)p.call(this,r);let f=(u=(l=(s=this._oneTimeListeners)==null?void 0:s[i])==null?void 0:l.slice())!=null?u:[];for(let p of f)Ere(i,p,this._oneTimeListeners),p.call(this,r);let h=this._eventedParent;h&&(cn(r,typeof this._eventedParentData=="function"?this._eventedParentData():this._eventedParentData),h.fire(r))}else r instanceof An&&console.error(r.error);return this}listens(e){var t,r,i,n,a;return!!((r=(t=this._listeners)==null?void 0:t[e])!=null&&r.length||(n=(i=this._oneTimeListeners)==null?void 0:i[e])!=null&&n.length||(a=this._eventedParent)!=null&&a.listens(e))}setEventedParent(e,t){return this._eventedParent=e,this._eventedParentData=t,this}},ert={$version:8,$root:{version:{required:!0,type:"enum",values:[8]},name:{type:"string"},metadata:{type:"*"},center:{type:"array",value:"number",length:2},centerAltitude:{type:"number"},zoom:{type:"number"},bearing:{type:"number",default:0,period:360,units:"degrees"},pitch:{type:"number",default:0,units:"degrees"},roll:{type:"number",default:0,units:"degrees"},state:{type:"state",default:{}},light:{type:"light"},sky:{type:"sky"},projection:{type:"projection"},terrain:{type:"terrain"},sources:{required:!0,type:"sources"},sprite:{type:"sprite"},glyphs:{type:"string"},"font-faces":{type:"fontFaces"},transition:{type:"transition"},layers:{required:!0,type:"array",value:"layer"}},sources:{"*":{type:"source"}},source:["source_vector","source_raster","source_raster_dem","source_geojson","source_video","source_image"],source_vector:{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},encoding:{type:"enum",values:{mvt:{},mlt:{}},default:"mvt"},"*":{type:"*"}},source_raster:{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:"*"}},source_raster_dem:{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:{},custom:{}},default:"mapbox"},redFactor:{type:"number",default:1},blueFactor:{type:"number",default:1},greenFactor:{type:"number",default:1},baseShift:{type:"number",default:0},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_geojson:{type:{required:!0,type:"enum",values:{geojson:{}}},data:{required:!0,type:"*"},maxzoom:{type:"number",default:18},attribution:{type:"string"},buffer:{type:"number",default:128,maximum:512,minimum:0},filter:{type:"filter"},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"}},source_video:{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"}}},source_image:{type:{required:!0,type:"enum",values:{image:{}}},url:{type:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},layer:{id:{type:"string",required:!0},type:{type:"enum",values:{fill:{},line:{},symbol:{},circle:{},heatmap:{},"fill-extrusion":{},raster:{},hillshade:{},"color-relief":{},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"}},layout:["layout_fill","layout_line","layout_circle","layout_heatmap","layout_fill-extrusion","layout_symbol","layout_raster","layout_hillshade","layout_color-relief","layout_background"],layout_background:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible",expression:{interpolated:!1,parameters:["global-state"]},"property-type":"data-constant"}},layout_fill:{"fill-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible",expression:{interpolated:!1,parameters:["global-state"]},"property-type":"data-constant"}},layout_circle:{"circle-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible",expression:{interpolated:!1,parameters:["global-state"]},"property-type":"data-constant"}},layout_heatmap:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible",expression:{interpolated:!1,parameters:["global-state"]},"property-type":"data-constant"}},"layout_fill-extrusion":{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible",expression:{interpolated:!1,parameters:["global-state"]},"property-type":"data-constant"},"fill-extrusion-rounded-corner-distance":{type:"number",default:0,minimum:0,units:"meters","property-type":"constant"}},layout_line:{"line-cap":{type:"enum",values:{butt:{},round:{},square:{}},default:"butt",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"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","feature"]},"property-type":"data-driven"},"line-round-limit":{type:"number",default:1.05,requires:[{"line-join":"round"}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible",expression:{interpolated:!1,parameters:["global-state"]},"property-type":"data-constant"}},layout_symbol:{"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",{"!":"icon-overlap"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-overlap":{type:"enum",values:{never:{},always:{},cooperative:{}},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","feature"]},"property-type":"data-driven"},"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:"padding",default:[2],units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"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:{},"viewport-glyph":{},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-variable-anchor-offset":{type:"variableAnchorOffsetCollection",requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"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",{"!":"text-overlap"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-overlap":{type:"enum",values:{never:{},always:{},cooperative:{}},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"},"symbol-height-offset":{type:"number",default:0,units:"meters",requires:[{"symbol-placement":["point"]}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"symbol-height-anchor":{type:"enum",values:{ground:{},absolute:{}},default:"ground",requires:["symbol-height-offset"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible",expression:{interpolated:!1,parameters:["global-state"]},"property-type":"data-constant"}},layout_raster:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible",expression:{interpolated:!1,parameters:["global-state"]},"property-type":"data-constant"}},layout_hillshade:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible",expression:{interpolated:!1,parameters:["global-state"]},"property-type":"data-constant"}},"layout_color-relief":{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible",expression:{interpolated:!1,parameters:["global-state"]},"property-type":"data-constant"}},filter:{type:"boolean",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},filter_operator:{type:"enum",values:{"==":{},"!=":{},">":{},">=":{},"<":{},"<=":{},in:{},"!in":{},all:{},any:{},none:{},has:{},"!has":{}}},geometry_type:{type:"enum",values:{Point:{},LineString:{},Polygon:{}}},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:{type:"array",minimum:0,maximum:24,value:["number","color"],length:2},expression:{type:"array",value:"expression_name",minimum:1},light:{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}},sky:{"sky-color":{type:"color","property-type":"data-constant",default:"#88C6FC",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"horizon-color":{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"fog-color":{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"fog-ground-blend":{type:"number","property-type":"data-constant",default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"horizon-fog-blend":{type:"number","property-type":"data-constant",default:.8,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"sky-horizon-blend":{type:"number","property-type":"data-constant",default:.8,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"atmosphere-blend":{type:"number","property-type":"data-constant",default:.8,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0}},terrain:{source:{type:"string",required:!0},exaggeration:{type:"number",minimum:0,default:1}},projection:{type:{type:"projectionDefinition",default:"mercator","property-type":"data-constant",transition:!1,expression:{interpolated:!0,parameters:["zoom"]}}},paint:["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_symbol","paint_raster","paint_hillshade","paint_color-relief","paint_background"],paint_fill:{"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-layer-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","global-state"]},"property-type":"data-constant"},"fill-color":{type:"color",default:"#000000",transition:!0,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"}},"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,units:"meters",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{type:"number",default: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:{"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-layer-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","global-state"]},"property-type":"data-constant"},"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","feature"]},"property-type":"cross-faded-data-driven"},"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"}},paint_circle:{"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"}},paint_heatmap:{"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"}},paint_symbol:{"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"}},paint_raster:{"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"},resampling:{type:"enum",values:{linear:{},nearest:{}},default:"linear",expression:{interpolated:!1,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"}},paint_hillshade:{"hillshade-illumination-direction":{type:"numberArray",default:335,minimum:0,maximum:359,transition:!1,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-illumination-altitude":{type:"numberArray",default:45,minimum:0,maximum:90,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:"colorArray",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-highlight-color":{type:"colorArray",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"},"hillshade-method":{type:"enum",values:{standard:{},basic:{},combined:{},igor:{},multidirectional:{}},default:"standard",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},resampling:{type:"enum",values:{linear:{},nearest:{}},default:"linear",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},"paint_color-relief":{"color-relief-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"color-relief-color":{type:"color",transition:!1,expression:{interpolated:!0,parameters:["elevation"]},"property-type":"color-ramp"},resampling:{type:"enum",values:{linear:{},nearest:{}},default:"linear",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_background:{"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"}},transition:{duration:{type:"number",default:300,minimum:0,units:"milliseconds"},delay:{type:"number",default:0,minimum:0,units:"milliseconds"}},"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:{"*":{type:"string"}},interpolation:{type:"array",value:"interpolation_name",minimum:1},interpolation_name:{type:"enum",values:{linear:{syntax:{overloads:[{parameters:[],"output-type":"interpolation"}],parameters:[]}},exponential:{syntax:{overloads:[{parameters:["base"],"output-type":"interpolation"}],parameters:[{name:"base",type:"number literal"}]}},"cubic-bezier":{syntax:{overloads:[{parameters:["x1","y1","x2","y2"],"output-type":"interpolation"}],parameters:[{name:"x1",type:"number literal"},{name:"y1",type:"number literal"},{name:"x2",type:"number literal"},{name:"y2",type:"number literal"}]}}}}},_r=ert,trt=["type","source","source-layer","minzoom","maxzoom","filter","layout"],ei=class{constructor(e,t,r,i,n="error"){this.message=(e?`${e}: `:"")+r,i&&(this.identifier=i),this.severity=n,t!=null&&t.__line__&&(this.line=t.__line__)}},mC={kind:"null"},ki={kind:"number"},ha={kind:"string"},Ra={kind:"boolean"},Mv={kind:"color"},ZB={kind:"projectionDefinition"},Q_={kind:"object"},ma={kind:"value"},Byr={kind:"error"},KB={kind:"collator"},yC={kind:"formatted"},JB={kind:"padding"},$k={kind:"colorArray"},QB={kind:"numberArray"},xC={kind:"resolvedImage"},eq={kind:"variableAnchorOffsetCollection"};qyr=[mC,ki,ha,Ra,Mv,ZB,yC,Q_,zf(ma),JB,QB,$k,xC,eq];rrt=.96422,irt=.82521,nrt=4/29,jre=6/29,art=3*jre*jre,Oyr=Math.PI/180,Nyr=180/Math.PI;Hyr=Object.hasOwn||function(e,t){return Object.prototype.hasOwnProperty.call(e,t)};$yr={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]};na=(zc=class{constructor(t,r,i,n=1,a=!0){this.r=t,this.g=r,this.b=i,this.a=n,a||(this.r*=n,this.g*=n,this.b*=n,n||this.overwriteGetter("rgb",[t,r,i,n]))}static parse(t){if(t instanceof zc)return t;if(typeof t!="string")return;let r=jyr(t);if(r)return new zc(...r,!1)}get rgb(){let{r:t,g:r,b:i,a:n}=this,a=n||1/0;return this.overwriteGetter("rgb",[t/a,r/a,i/a,n])}get hcl(){return this.overwriteGetter("hcl",Uyr(this.rgb))}get lab(){return this.overwriteGetter("lab",srt(this.rgb))}overwriteGetter(t,r){return Object.defineProperty(this,t,{value:r}),r}toString(){let[t,r,i,n]=this.rgb;return`rgba(${[t,r,i].map(a=>Math.round(a*255)).join(",")},${n})`}static interpolate(t,r,i,n="rgb"){switch(n){case"rgb":{let[a,o,s,l]=z6(t.rgb,r.rgb,i);return new zc(a,o,s,l,!1)}case"hcl":{let[a,o,s,l]=t.hcl,[u,c,f,h]=r.hcl,p,d;if(!isNaN(a)&&!isNaN(u)){let _=u-a;u>a&&_>180?_-=360:u180&&(_+=360),p=a+i*_}else isNaN(a)?isNaN(u)?p=NaN:(p=u,(s===1||s===0)&&(d=c)):(p=a,(f===1||f===0)&&(d=o));let[v,m,g,w]=Vyr([p,d!=null?d:ox(o,c,i),ox(s,f,i),ox(l,h,i)]);return new zc(v,m,g,w,!1)}case"lab":{let[a,o,s,l]=lrt(z6(t.lab,r.lab,i));return new zc(a,o,s,l,!1)}}}},zc.black=new zc(0,0,0,1),zc.white=new zc(1,1,1,1),zc.transparent=new zc(0,0,0,0),zc.red=new zc(1,0,0,1),zc),Yyr=["bottom","center","top"],$re=class{constructor(e,t,r,i,n,a){this.text=e,this.image=t,this.scale=r,this.fontStack=i,this.textColor=n,this.verticalAlign=a}},Pm=class fB{constructor(t){this.sections=t}static fromString(t){return new fB([new $re(t,null,null,null,null,null)])}isEmpty(){return this.sections.length===0||!this.sections.some(t=>t.text.length!==0||t.image&&t.image.name.length!==0)}static factory(t){return t instanceof fB?t:fB.fromString(t)}toString(){return this.sections.length===0?"":this.sections.map(t=>t.text).join("")}},ug=class Fk{constructor(t){this.values=t.slice()}static parse(t){if(t instanceof Fk)return t;if(typeof t=="number")return new Fk([t,t,t,t]);if(Array.isArray(t)&&!(t.length<1||t.length>4)){for(let r of t)if(typeof r!="number")return;switch(t.length){case 1:t=[t[0],t[0],t[0],t[0]];break;case 2:t=[t[0],t[1],t[0],t[1]];break;case 3:t=[t[0],t[1],t[2],t[1]]}return new Fk(t)}}toString(){return JSON.stringify(this.values)}static interpolate(t,r,i){return new Fk(z6(t.values,r.values,i))}},cg=class Lk{constructor(t){this.values=t.slice()}static parse(t){if(t instanceof Lk)return t;if(typeof t=="number")return new Lk([t]);if(Array.isArray(t)){for(let r of t)if(typeof r!="number")return;return new Lk(t)}}toString(){return JSON.stringify(this.values)}static interpolate(t,r,i){return new Lk(z6(t.values,r.values,i))}},ip=class Pk{constructor(t){this.values=t.slice()}static parse(t){if(t instanceof Pk)return t;if(typeof t=="string"){let i=na.parse(t);return i?new Pk([i]):void 0}if(!Array.isArray(t))return;let r=[];for(let i of t){if(typeof i!="string")return;let n=na.parse(i);if(!n)return;r.push(n)}return new Pk(r)}toString(){return JSON.stringify(this.values)}static interpolate(t,r,i,n="rgb"){let a=[];if(t.values.length!=r.values.length)throw Error(`colorArray: Arrays have mismatched length (${t.values.length} vs. ${r.values.length}), cannot interpolate.`);for(let o=0;o=s)return r.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',u);let f=r.parse(l,c,a);if(!f)return null;a||(a=f.type),n.push([s,f])}return new drt(a,i,n,r.key)}evaluate(t){let r=this.labels,i=this.outputs;if(r.length===1)return i[0].evaluate(t);let n=this.input.evaluate(t);if(n<=r[0])return i[0].evaluate(t);let a=r.length;return n>=r[a-1]?i[a-1].evaluate(t):i[tq(r,n,this.key)].evaluate(t)}eachChild(t){t(this.input);for(let r of this.outputs)t(r)}outputDefined(){return this.outputs.every(t=>t.outputDefined())}};np=class Wre{constructor(t,r,i,n,a,o){this.type=t,this.operator=r,this.interpolation=i,this.input=n,this.key=o,this.labels=[],this.outputs=[];for(let[s,l]of a)this.labels.push(s),this.outputs.push(l)}static interpolationFactor(t,r,i,n){let a=0;if(t.name==="exponential")a=Lre(r,t.base,i,n);else if(t.name==="linear")a=Lre(r,1,i,n);else if(t.name==="cubic-bezier"){let o=t.controlPoints;a=Kyr(o[0],o[1],o[2],o[3])(Lre(r,1,i,n))}return a}static parse(t,r){let[i,n,a,...o]=t;if(!Array.isArray(n)||n.length===0)return r.error("Expected an interpolation type expression.",1);if(n[0]==="linear")n={name:"linear"};else if(n[0]==="exponential"){let u=n[1];if(typeof u!="number")return r.error("Exponential interpolation requires a numeric base.",1,1);n={name:"exponential",base:u}}else if(n[0]==="cubic-bezier"){let u=n.slice(1);if(u.length!==4||u.some(c=>typeof c!="number"||c<0||c>1))return r.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);n={name:"cubic-bezier",controlPoints:u}}else return r.error(`Unknown interpolation type ${String(n[0])}`,1,0);if(t.length-1<4)return r.error(`Expected at least 4 arguments, but found only ${t.length-1}.`);if((t.length-1)%2!=0)return r.error("Expected an even number of arguments.");if(a=r.parse(a,2,ki),!a)return null;let s=[],l=null;(i==="interpolate-hcl"||i==="interpolate-lab")&&r.expectedType!=$k?l=Mv:r.expectedType&&r.expectedType.kind!=="value"&&(l=r.expectedType);for(let u=0;u=c)return r.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',h);let d=r.parse(f,p,l);if(!d)return null;l||(l=d.type),s.push([c,d])}return!Q2(l,ki)&&!Q2(l,ZB)&&!Q2(l,Mv)&&!Q2(l,JB)&&!Q2(l,QB)&&!Q2(l,$k)&&!Q2(l,eq)&&!Q2(l,zf(ki))?r.error(`Type ${xl(l)} is not interpolatable.`):new Wre(l,i,n,a,s,r.key)}evaluate(t){let r=this.labels,i=this.outputs;if(r.length===1)return i[0].evaluate(t);let n=this.input.evaluate(t);if(n<=r[0])return i[0].evaluate(t);let a=r.length;if(n>=r[a-1])return i[a-1].evaluate(t);let o=tq(r,n,this.key),s=r[o],l=r[o+1],u=Wre.interpolationFactor(this.interpolation,n,s,l),c=i[o].evaluate(t),f=i[o+1].evaluate(t);switch(this.operator){case"interpolate":switch(this.type.kind){case"number":return ox(c,f,u);case"color":return na.interpolate(c,f,u);case"padding":return ug.interpolate(c,f,u);case"colorArray":return ip.interpolate(c,f,u);case"numberArray":return cg.interpolate(c,f,u);case"variableAnchorOffsetCollection":return og.interpolate(c,f,u,this.key);case"array":return z6(c,f,u);case"projectionDefinition":return Om.interpolate(c,f,u)}case"interpolate-hcl":switch(this.type.kind){case"color":return na.interpolate(c,f,u,"hcl");case"colorArray":return ip.interpolate(c,f,u,"hcl")}case"interpolate-lab":switch(this.type.kind){case"color":return na.interpolate(c,f,u,"lab");case"colorArray":return ip.interpolate(c,f,u,"lab")}}}eachChild(t){t(this.input);for(let r of this.outputs)t(r)}outputDefined(){return this.outputs.every(t=>t.outputDefined())}};Ys={color:na.interpolate,number:ox,padding:ug.interpolate,numberArray:cg.interpolate,colorArray:ip.interpolate,variableAnchorOffsetCollection:og.interpolate,array:z6},prt=class vrt{constructor(t){this.type=yC,this.sections=t}static parse(t,r){if(t.length<2)return r.error("Expected at least one argument.");let i=t[1];if(!Array.isArray(i)&&typeof i=="object")return r.error("First argument must be an image or text section.");let n=[],a=!1;for(let o=1;o<=t.length-1;++o){let s=t[o];if(a&&typeof s=="object"&&!Array.isArray(s)){a=!1;let l=null;if(s["font-scale"]&&(l=r.parse(s["font-scale"],1,ki),!l))return null;let u=null;if(s["text-font"]&&(u=r.parse(s["text-font"],1,zf(ha)),!u))return null;let c=null;if(s["text-color"]&&(c=r.parse(s["text-color"],1,Mv),!c))return null;let f=null;if(s["vertical-align"]){if(typeof s["vertical-align"]=="string"&&!Yyr.includes(s["vertical-align"]))return r.error(`'vertical-align' must be one of: 'bottom', 'center', 'top' but found '${s["vertical-align"]}' instead.`);if(f=r.parse(s["vertical-align"],1,ha),!f)return null}let h=n[n.length-1];h.scale=l,h.font=u,h.textColor=c,h.verticalAlign=f}else{let l=r.parse(t[o],1,ma);if(!l)return null;let u=l.type.kind;if(u!=="string"&&u!=="value"&&u!=="null"&&u!=="resolvedImage")return r.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");a=!0,n.push({content:l,scale:null,font:null,textColor:null,verticalAlign:null})}}return new vrt(n)}evaluate(t){return new Pm(this.sections.map(r=>{let i=r.content.evaluate(t);return au(i)===xC?new $re("",i,null,null,null,r.verticalAlign?r.verticalAlign.evaluate(t):null):new $re(Nk(i),null,r.scale?r.scale.evaluate(t):null,r.font?r.font.evaluate(t).join(","):null,r.textColor?r.textColor.evaluate(t):null,r.verticalAlign?r.verticalAlign.evaluate(t):null)}))}eachChild(t){for(let r of this.sections)t(r.content),r.scale&&t(r.scale),r.font&&t(r.font),r.textColor&&t(r.textColor),r.verticalAlign&&t(r.verticalAlign)}outputDefined(){return!1}};Kz={string:ha,number:ki,boolean:Ra,object:Q_},Dm=class mrt{constructor(t,r,i){this.type=t,this.args=r,this.key=i}static parse(t,r){if(t.length<2)return r.error("Expected at least one argument.");let i=1,n,a=t[0];if(a==="array"){let s;if(t.length>2){let u=t[1];if(typeof u!="string"||!(u in Kz)||u==="object")return r.error('The item type argument of "array" must be one of string, number, boolean',1);s=Kz[u],i++}else s=ma;let l;if(t.length>3){if(t[2]!==null&&(typeof t[2]!="number"||t[2]<0||t[2]!==Math.floor(t[2])))return r.error('The length argument to "array" must be a positive integer literal',2);l=t[2],i++}n=zf(s,l)}else{if(!Kz[a])throw Error(`Types doesn't contain name = ${a}`);n=Kz[a]}let o=[];for(;it.outputDefined())}},RQe={"to-boolean":Ra,"to-color":Mv,"to-number":ki,"to-string":ha},S6=class yrt{constructor(t,r,i){this.type=t,this.args=r,this.key=i}static parse(t,r){if(t.length<2)return r.error("Expected at least one argument.");let i=t[0];if(!RQe[i])throw Error(`Can't parse ${i} as it is not part of the known types`);if((i==="to-boolean"||i==="to-string")&&t.length!==2)return r.error("Expected one argument.");let n=RQe[i],a=[];for(let o=1;o4?`Invalid rgba value ${JSON.stringify(r)}: expected an array containing either three or four numeric values.`:crt(r[0],r[1],r[2],r[3]),!i))return new na(r[0]/255,r[1]/255,r[2]/255,r[3])}throw new sl(i||`Could not parse color from value '${typeof r=="string"?r:JSON.stringify(r)}'`,this.key)}case"padding":{let r;for(let i of this.args){r=i.evaluate(t);let n=ug.parse(r);if(n)return n}throw new sl(`Could not parse padding from value '${typeof r=="string"?r:JSON.stringify(r)}'`,this.key)}case"numberArray":{let r;for(let i of this.args){r=i.evaluate(t);let n=cg.parse(r);if(n)return n}throw new sl(`Could not parse numberArray from value '${typeof r=="string"?r:JSON.stringify(r)}'`,this.key)}case"colorArray":{let r;for(let i of this.args){r=i.evaluate(t);let n=ip.parse(r);if(n)return n}throw new sl(`Could not parse colorArray from value '${typeof r=="string"?r:JSON.stringify(r)}'`,this.key)}case"variableAnchorOffsetCollection":{let r;for(let i of this.args){r=i.evaluate(t);let n=og.parse(r);if(n)return n}throw new sl(`Could not parse variableAnchorOffsetCollection from value '${typeof r=="string"?r:JSON.stringify(r)}'`,this.key)}case"number":{let r=null;for(let i of this.args){if(r=i.evaluate(t),r===null)return 0;let n=Number(r);if(!isNaN(n))return n}throw new sl(`Could not convert ${JSON.stringify(r)} to number.`,this.key)}case"formatted":return Pm.fromString(Nk(this.args[0].evaluate(t)));case"resolvedImage":return sg.fromString(Nk(this.args[0].evaluate(t)));case"projectionDefinition":{let r=this.args[0].evaluate(t);if(Om.parse(r))return r;throw new sl(`Could not parse projectionDefinition from value '${typeof r=="string"?r:JSON.stringify(r)}'`,this.key)}default:return Nk(this.args[0].evaluate(t))}}eachChild(t){this.args.forEach(t)}outputDefined(){return this.args.every(t=>t.outputDefined())}},xrt=class brt{constructor(t,r){this.type=r.type,this.bindings=[].concat(t),this.result=r}evaluate(t){return this.result.evaluate(t)}eachChild(t){for(let r of this.bindings)t(r[1]);t(this.result)}static parse(t,r){if(t.length<4)return r.error(`Expected at least 3 arguments, but found ${t.length-1} instead.`);let i=[];for(let a=1;a=i.length)throw new sl(`Array index out of bounds: ${r} > ${i.length-1}.`,this.key);if(r!==Math.floor(r))throw new sl(`Array index must be an integer, but found ${r} instead.`,this.key);return i[r]}eachChild(t){t(this.index),t(this.input)}outputDefined(){return!1}},r2r=class Art{constructor(t,r,i){this.needle=t,this.haystack=r,this.key=i,this.type=Ra}static parse(t,r){if(t.length!==3)return r.error(`Expected 2 arguments, but found ${t.length-1} instead.`);let i=r.parse(t[1],1,ma),n=r.parse(t[2],2,ma);return!i||!n?null:yne(i.type,[Ra,ha,ki,mC,ma])?new Art(i,n,r.key):r.error(`Expected first argument to be of type boolean, string, number or null, but found ${xl(i.type)} instead`)}evaluate(t){let r=this.needle.evaluate(t),i=this.haystack.evaluate(t);if(!i)return!1;if(!e3(r,["boolean","string","number","null"]))throw new sl(`Expected first argument to be of type boolean, string, number or null, but found ${xl(au(r))} instead.`,this.key);if(!e3(i,["string","array"]))throw new sl(`Expected second argument to be of type array or string, but found ${xl(au(i))} instead.`,this.key);return i.indexOf(r)>=0}eachChild(t){t(this.needle),t(this.haystack)}outputDefined(){return!0}},i2r=class Yre{constructor(t,r,i,n){this.needle=t,this.haystack=r,this.key=i,this.fromIndex=n,this.type=ki}static parse(t,r){if(t.length<=2||t.length>=5)return r.error(`Expected 2 or 3 arguments, but found ${t.length-1} instead.`);let i=r.parse(t[1],1,ma),n=r.parse(t[2],2,ma);if(!i||!n)return null;if(!yne(i.type,[Ra,ha,ki,mC,ma]))return r.error(`Expected first argument to be of type boolean, string, number or null, but found ${xl(i.type)} instead`);if(t.length===4){let a=r.parse(t[3],3,ki);return a?new Yre(i,n,r.key,a):null}return new Yre(i,n,r.key)}evaluate(t){let r=this.needle.evaluate(t),i=this.haystack.evaluate(t);if(!e3(r,["boolean","string","number","null"]))throw new sl(`Expected first argument to be of type boolean, string, number or null, but found ${xl(au(r))} instead.`,this.key);let n;if(this.fromIndex&&(n=this.fromIndex.evaluate(t)),e3(i,["string"])){let a=i.indexOf(r,n);return a===-1?-1:[...i.slice(0,a)].length}if(e3(i,["array"]))return i.indexOf(r,n);throw new sl(`Expected second argument to be of type array or string, but found ${xl(au(i))} instead.`,this.key)}eachChild(t){t(this.needle),t(this.haystack),this.fromIndex&&t(this.fromIndex)}outputDefined(){return!1}},n2r=class Mrt{constructor(t,r,i,n,a,o){this.inputType=t,this.type=r,this.input=i,this.cases=n,this.outputs=a,this.otherwise=o}static parse(t,r){if(t.length<5)return r.error(`Expected at least 4 arguments, but found only ${t.length-1}.`);if(t.length%2!=1)return r.error("Expected an even number of arguments.");let i,n;r.expectedType&&r.expectedType.kind!=="value"&&(n=r.expectedType);let a={},o=[];for(let u=2;u2**53-1)return h.error(`Branch labels must be integers no larger than ${2**53-1}.`);if(typeof d=="number"&&Math.floor(d)!==d)return h.error("Numeric branch labels must be integer values.");if(!i)i=au(d);else if(h.checkSubtype(i,au(d)))return null;if(a[String(d)]!==void 0)return h.error("Branch labels must be unique.");a[String(d)]=o.length}let p=r.parse(f,u,n);if(!p)return null;n||(n=p.type),o.push(p)}let s=r.parse(t[1],1,ma);if(!s)return null;let l=r.parse(t[t.length-1],t.length-1,n);return!l||s.type.kind!=="value"&&r.concat(1).checkSubtype(i,s.type)?null:new Mrt(i,n,s,a,o,l)}evaluate(t){let r=this.input.evaluate(t);return(au(r)===this.inputType&&this.outputs[this.cases[r]]||this.otherwise).evaluate(t)}eachChild(t){t(this.input),this.outputs.forEach(t),t(this.otherwise)}outputDefined(){return this.outputs.every(t=>t.outputDefined())&&this.otherwise.outputDefined()}},a2r=class Srt{constructor(t,r,i){this.type=t,this.branches=r,this.otherwise=i}static parse(t,r){if(t.length<4)return r.error(`Expected at least 3 arguments, but found only ${t.length-1}.`);if(t.length%2!=0)return r.error("Expected an odd number of arguments.");let i;r.expectedType&&r.expectedType.kind!=="value"&&(i=r.expectedType);let n=[];for(let o=1;or.outputDefined())&&this.otherwise.outputDefined()}},o2r=class Xre{constructor(t,r,i,n,a){this.type=t,this.input=r,this.beginIndex=i,this.key=n,this.endIndex=a}static parse(t,r){if(t.length<=2||t.length>=5)return r.error(`Expected 2 or 3 arguments, but found ${t.length-1} instead.`);let i=r.parse(t[1],1,ma),n=r.parse(t[2],2,ki);if(!i||!n)return null;if(!yne(i.type,[zf(ma),ha,ma]))return r.error(`Expected first argument to be of type array or string, but found ${xl(i.type)} instead`);if(t.length===4){let a=r.parse(t[3],3,ki);return a?new Xre(i.type,i,n,r.key,a):null}return new Xre(i.type,i,n,r.key)}evaluate(t){let r=this.input.evaluate(t),i=this.beginIndex.evaluate(t),n;if(this.endIndex&&(n=this.endIndex.evaluate(t)),e3(r,["string"]))return[...r].slice(i,n).join("");if(e3(r,["array"]))return r.slice(i,n);throw new sl(`Expected first argument to be of type array or string, but found ${xl(au(r))} instead.`,this.key)}eachChild(t){t(this.input),t(this.beginIndex),this.endIndex&&t(this.endIndex)}outputDefined(){return!1}},Ert=class Zre{constructor(t,r){this.type=t,this.args=r}static parse(t,r){if(t.length<2)return r.error("Expected at least one argument.");let i=null,n=r.expectedType;n&&n.kind!=="value"&&(i=n);let a=[];for(let o of t.slice(1)){let s=r.parse(o,1+a.length,i,void 0,{typeAnnotation:"omit"});if(!s)return null;i||(i=s.type),a.push(s)}if(!i)throw Error("No output type");return n&&a.some(o=>Wk(n,o.type))?new Zre(ma,a):new Zre(i,a)}evaluate(t){let r=null,i=0,n;for(let a of this.args)if(i++,r=a.evaluate(t),r&&r instanceof sg&&!r.available&&(n||(n=r.name),r=null,i===this.args.length&&(r=n)),r!==null)break;return r}eachChild(t){this.args.forEach(t)}outputDefined(){return this.args.every(t=>t.outputDefined())}};y2r=Y6("==",s2r,krt),x2r=Y6("!=",l2r,d2r),b2r=Y6("<",u2r,p2r),_2r=Y6(">",c2r,v2r),w2r=Y6("<=",f2r,g2r),T2r=Y6(">=",h2r,m2r),Drt=class Frt{constructor(t,r,i){this.type=KB,this.locale=i,this.caseSensitive=t,this.diacriticSensitive=r}static parse(t,r){if(t.length!==2)return r.error("Expected one argument.");let i=t[1];if(typeof i!="object"||Array.isArray(i))return r.error("Collator options argument must be an object.");let n=r.parse(i["case-sensitive"]!==void 0&&i["case-sensitive"],1,Ra);if(!n)return null;let a=r.parse(i["diacritic-sensitive"]!==void 0&&i["diacritic-sensitive"],1,Ra);if(!a)return null;let o=null;return i.locale&&(o=r.parse(i.locale,1,ha),!o)?null:new Frt(n,a,o)}evaluate(t){return new xne(this.caseSensitive.evaluate(t),this.diacriticSensitive.evaluate(t),this.locale?this.locale.evaluate(t):null)}eachChild(t){t(this.caseSensitive),t(this.diacriticSensitive),this.locale&&t(this.locale)}outputDefined(){return!1}},A2r=class Lrt{constructor(t,r,i,n,a,o){this.type=ha,this.number=t,this.locale=r,this.currency=i,this.unit=n,this.minFractionDigits=a,this.maxFractionDigits=o}static parse(t,r){if(t.length!==3)return r.error("Expected two arguments.");let i=r.parse(t[1],1,ki);if(!i)return null;let n=t[2];if(typeof n!="object"||Array.isArray(n))return r.error("NumberFormat options argument must be an object.");let a=null;if(n.locale&&(a=r.parse(n.locale,1,ha),!a))return null;let o=null;if(n.currency&&(o=r.parse(n.currency,1,ha),!o))return null;let s=null;if(n.unit&&(s=r.parse(n.unit,1,ha),!s))return null;if(o&&s)return r.error("NumberFormat options `currency` and `unit` are mutually exclusive");let l=null;if(n["min-fraction-digits"]&&(l=r.parse(n["min-fraction-digits"],1,ki),!l))return null;let u=null;return n["max-fraction-digits"]&&(u=r.parse(n["max-fraction-digits"],1,ki),!u)?null:new Lrt(i,a,o,s,l,u)}evaluate(t){return new Intl.NumberFormat(this.locale?this.locale.evaluate(t):[],{style:this.currency?"currency":this.unit?"unit":"decimal",currency:this.currency?this.currency.evaluate(t):void 0,unit:this.unit?this.unit.evaluate(t):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(t):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(t):void 0}).format(this.number.evaluate(t))}eachChild(t){t(this.number),this.locale&&t(this.locale),this.currency&&t(this.currency),this.unit&&t(this.unit),this.minFractionDigits&&t(this.minFractionDigits),this.maxFractionDigits&&t(this.maxFractionDigits)}outputDefined(){return!1}},M2r=class Prt{constructor(t){this.type=xC,this.input=t}static parse(t,r){if(t.length!==2)return r.error("Expected two arguments.");let i=r.parse(t[1],1,ha);return i?new Prt(i):r.error("No image name provided.")}evaluate(t){let r=this.input.evaluate(t),i=sg.fromString(r);return i&&t.availableImages&&(i.available=t.availableImages.indexOf(r)>-1),i}eachChild(t){t(this.input)}outputDefined(){return!1}},S2r=class Irt{constructor(t,r){this.input=t,this.key=r,this.type=ki}static parse(t,r){if(t.length!==2)return r.error(`Expected 1 argument, but found ${t.length-1} instead.`);let i=r.parse(t[1],1);return i?i.type.kind!=="array"&&i.type.kind!=="string"&&i.type.kind!=="value"?r.error(`Expected argument of type string or array, but found ${xl(i.type)} instead.`):new Irt(i,r.key):null}evaluate(t){let r=this.input.evaluate(t);if(typeof r=="string")return[...r].length;if(Array.isArray(r))return r.length;throw new sl(`Expected value to be of type string or array, but found ${xl(au(r))} instead.`,this.key)}eachChild(t){t(this.input)}outputDefined(){return!1}},ag=8192;Tne=class dB{constructor(t,r){this.type=Ra,this.geojson=t,this.geometries=r}static parse(t,r){if(t.length!==2)return r.error(`'within' expression requires exactly one argument, but found ${t.length-1} instead.`);if(B6(t[1])){let i=t[1];if(i.type==="FeatureCollection"){let n=[];for(let a of i.features){let{type:o,coordinates:s}=a.geometry;o==="Polygon"&&n.push(s),o==="MultiPolygon"&&n.push(...s)}if(n.length)return new dB(i,{type:"MultiPolygon",coordinates:n})}else if(i.type==="Feature"){let n=i.geometry.type;if(n==="Polygon"||n==="MultiPolygon")return new dB(i,i.geometry)}else if(i.type==="Polygon"||i.type==="MultiPolygon")return new dB(i,i)}return r.error("'within' expression requires valid geojson object that contains polygon geometry type.")}evaluate(t){if(t.geometry()!=null&&t.canonicalID()!=null){if(t.geometryType()==="Point")return O2r(t,this.geometries);if(t.geometryType()==="LineString")return N2r(t,this.geometries)}return!1}eachChild(){}outputDefined(){return!0}},qrt=class{constructor(e=[],t=(r,i)=>ri)){if(this.data=e,this.length=this.data.length,this.compare=t,this.length>0)for(let r=(this.length>>1)-1;r>=0;r--)this._down(r)}push(e){this.data.push(e),this._up(this.length++)}pop(){if(this.length===0)return;let e=this.data[0],t=this.data.pop();return--this.length>0&&(this.data[0]=t,this._down(0)),e}peek(){return this.data[0]}_up(e){let{data:t,compare:r}=this,i=t[e];for(;e>0;){let n=e-1>>1,a=t[n];if(r(i,a)>=0)break;t[e]=a,e=n}t[e]=i}_down(e){let{data:t,compare:r}=this,i=this.length>>1,n=t[e];for(;e=0)break;t[e]=t[a],e=a}t[e]=n}},NQe=Math.PI/180,Ane=class{constructor(e){let t=NQe*6378.137*1e3,r=Math.cos(e*NQe),i=1/(1-.0066943799901413165*(1-r*r)),n=Math.sqrt(i);this.kx=t*n*r,this.ky=t*n*i*.9933056200098587}distance(e,t){let r=this.wrap(e[0]-t[0])*this.kx,i=(e[1]-t[1])*this.ky;return Math.sqrt(r*r+i*i)}pointOnLine(e,t){let r=1/0,i,n,a,o;for(let s=0;s1?(l=e[s+1][0],u=e[s+1][1]):h>0&&(l+=c/this.kx*h,u+=f/this.ky*h)),c=this.wrap(t[0]-l)*this.kx,f=(t[1]-u)*this.ky;let p=c*c+f*f;p180;)e-=360;return e}};Ene=class pB{constructor(t,r){this.type=ki,this.geojson=t,this.geometries=r}static parse(t,r){if(t.length!==2)return r.error(`'distance' expression requires exactly one argument, but found ${t.length-1} instead.`);if(B6(t[1])){let i=t[1];if(i.type==="FeatureCollection")return new pB(i,i.features.map(n=>Pre(n.geometry)).flat());if(i.type==="Feature")return new pB(i,Pre(i.geometry));if("type"in i&&"coordinates"in i)return new pB(i,Pre(i))}return r.error("'distance' expression requires valid geojson object that contains polygon geometry type.")}evaluate(t){if(t.geometry()!=null&&t.canonicalID()!=null){if(t.geometryType()==="Point")return $2r(t,this.geometries);if(t.geometryType()==="LineString")return W2r(t,this.geometries);if(t.geometryType()==="Polygon")return Y2r(t,this.geometries)}return NaN}eachChild(){}outputDefined(){return!0}},X2r=class Nrt{constructor(t){let r=null;for(let i of t)if(!r)r=i.type;else{if(r===i.type)continue;r=ma;break}this.type=zf(r!=null?r:ma,t.length),this.arr=t}static parse(t,r){if(t.length!==2)return r.error(`'semiliteral' expression requires exactly one argument, but found ${t.length-1} instead.`);if(!B6(t[1]))return r.error(`invalid value of type "${typeof t[1]}"`);let i=t[1],n=au(i);if(n.kind==="array"){let a=i,o=r.concat(1),s=[];for(let l=0;lr.evaluate(t))}eachChild(t){this.arr.forEach(t)}outputDefined(){return this.arr.every(t=>t.outputDefined())}},kne=class Urt{constructor(t){this.key=t,this.type=ma}static parse(t,r){if(t.length!==2)return r.error(`Expected 1 argument, but found ${t.length-1} instead.`);let i=t[1];return i==null?r.error("Global state property must be defined."):typeof i=="string"?new Urt(i):r.error(`Global state property must be string, but found ${typeof t[1]} instead.`)}evaluate(t){var i,n;let r=(i=t.globals)==null?void 0:i.globalState;return!r||Object.keys(r).length===0?null:(n=Ok(r,this.key))!=null?n:null}eachChild(){}outputDefined(){return!1}},C6={"==":y2r,"!=":x2r,">":_2r,"<":b2r,">=":T2r,"<=":w2r,array:Dm,at:t2r,boolean:Dm,case:a2r,coalesce:Ert,collator:Drt,format:prt,image:M2r,in:r2r,"index-of":i2r,interpolate:np,"interpolate-hcl":np,"interpolate-lab":np,length:S2r,let:xrt,literal:q6,match:n2r,number:Dm,"number-format":A2r,object:Dm,semiliteral:X2r,slice:o2r,step:bne,string:Dm,"to-boolean":S6,"to-color":S6,"to-number":S6,"to-string":S6,var:_rt,within:Tne,distance:Ene,"global-state":kne},tg=class extends Error{constructor(e,t){super(t),this.message=t,this.key=e}},Z2r=class Vrt{constructor(t,r=[]){this.parent=t,this.bindings={};for(let[i,n]of r)this.bindings[i]=n}concat(t){return new Vrt(this,t)}get(t){if(this.bindings[t])return this.bindings[t];if(this.parent)return this.parent.get(t);throw Error(`${t} not found in scope.`)}has(t){return this.bindings[t]?!0:this.parent?this.parent.has(t):!1}},Grt=class Hrt{constructor(t,r,i=[],n,a=new Z2r,o=[]){this.registry=t,this.path=i,this.key=i.map(s=>`[${s}]`).join(""),this.scope=a,this.errors=o,this.expectedType=n,this._isConstant=r}parse(t,r,i,n,a={}){return r==null?this._parse(t,a):this.concat(r,i,n)._parse(t,a)}_parse(t,r){(t===null||typeof t=="string"||typeof t=="boolean"||typeof t=="number")&&(t=["literal",t]);let i=this.key;function n(a,o,s){return s==="assert"?new Dm(o,[a],i):s==="coerce"?new S6(o,[a],i):a}if(Array.isArray(t)){if(t.length===0)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');let a=t[0];if(typeof a!="string")return this.error(`Expression name must be a string, but found ${typeof a} instead. If you wanted a literal array, use ["literal", [...]].`,0),null;let o=this.registry[a];if(o){let s=o.parse(t,this);if(!s)return null;if(this.expectedType){let l=this.expectedType,u=s.type;if((l.kind==="string"||l.kind==="number"||l.kind==="boolean"||l.kind==="object"||l.kind==="array")&&u.kind==="value")s=n(s,l,r.typeAnnotation||"assert");else if(l.kind==="projectionDefinition"&&["string","array","value"].includes(u.kind)||["color","formatted","resolvedImage"].includes(l.kind)&&["value","string"].includes(u.kind)||["padding","numberArray"].includes(l.kind)&&["value","number","array"].includes(u.kind)||l.kind==="colorArray"&&["value","string","array"].includes(u.kind)||l.kind==="variableAnchorOffsetCollection"&&["value","array"].includes(u.kind))s=n(s,l,r.typeAnnotation||"coerce");else if(this.checkSubtype(l,u))return null}if(!(s instanceof q6)&&s.type.kind!=="resolvedImage"&&this._isConstant(s)){let l=new hrt;try{s=new q6(s.type,s.evaluate(l))}catch(u){return this.error(u.message),null}}return s}return this.error(`Unknown expression "${a}". If you wanted a literal array, use ["literal", [...]].`,0)}return t===void 0?this.error("'undefined' value invalid. Use null instead."):typeof t=="object"?this.error('Bare objects invalid. Use ["literal", {...}] instead.'):this.error(`Expected an array, but found ${typeof t} instead.`)}concat(t,r,i){let n=typeof t=="number"?this.path.concat(t):this.path,a=i?this.scope.concat(i):this.scope;return new Hrt(this.registry,this._isConstant,n,r||null,a,this.errors)}error(t,...r){let i=`${this.key}${r.map(n=>`[${n}]`).join("")}`;this.errors.push(new tg(i,t))}checkSubtype(t,r){let i=Wk(t,r);return i&&this.error(i),i}},f3=class Ik{constructor(t,r,i,n,a){this.name=t,this.type=r,this._evaluate=i,this.args=n,this.key=a}evaluate(t){return this._evaluate(t,this.args,this.key)}eachChild(t){this.args.forEach(t)}outputDefined(){return!1}static parse(t,r){let i=t[0],n=Ik.definitions[i];if(!n)return r.error(`Unknown expression "${i}". If you wanted a literal array, use ["literal", [...]].`,0);let a=Array.isArray(n)?n[0]:n.type,o=Array.isArray(n)?[[n[1],n[2]]]:n.overloads,s=o.filter(([u])=>!Array.isArray(u)||u.length===t.length-1),l=null;for(let[u,c]of s){l=new Grt(r.registry,_B,r.path,null,r.scope);let f=[],h=!1;for(let p=1;pJ2r(f)).join(" | "),c=[];for(let f=1;f{throw new sl(t.evaluate(e),r)}],typeof:[ha,[ma],(e,[t])=>xl(au(t.evaluate(e)))],"to-rgba":[zf(ki,4),[Mv],(e,[t])=>{let[r,i,n,a]=t.evaluate(e).rgb;return[r*255,i*255,n*255,a]}],rgb:[Mv,[ki,ki,ki],HQe],rgba:[Mv,[ki,ki,ki,ki],HQe],has:{type:Ra,overloads:[[[ha],(e,[t])=>jQe(t.evaluate(e),e.properties())],[[ha,Q_],(e,[t,r])=>jQe(t.evaluate(e),r.evaluate(e))]]},get:{type:ma,overloads:[[[ha],(e,[t])=>Ire(t.evaluate(e),e.properties())],[[ha,Q_],(e,[t,r])=>Ire(t.evaluate(e),r.evaluate(e))]]},"feature-state":[ma,[ha],(e,[t])=>Ire(t.evaluate(e),e.featureState||{})],properties:[Q_,[],e=>e.properties()],"geometry-type":[ha,[],e=>e.geometryType()],id:[ma,[],e=>e.id()],zoom:[ki,[],e=>e.globals.zoom],"heatmap-density":[ki,[],e=>e.globals.heatmapDensity||0],elevation:[ki,[],e=>e.globals.elevation||0],"line-progress":[ki,[],e=>e.globals.lineProgress||0],accumulated:[ma,[],e=>e.globals.accumulated===void 0?null:e.globals.accumulated],"+":[ki,W_(ki),(e,t)=>{let r=0;for(let i of t)r+=i.evaluate(e);return r}],"*":[ki,W_(ki),(e,t)=>{let r=1;for(let i of t)r*=i.evaluate(e);return r}],"-":{type:ki,overloads:[[[ki,ki],(e,[t,r])=>t.evaluate(e)-r.evaluate(e)],[[ki],(e,[t])=>-t.evaluate(e)]]},"/":[ki,[ki,ki],(e,[t,r])=>t.evaluate(e)/r.evaluate(e)],"%":[ki,[ki,ki],(e,[t,r])=>t.evaluate(e)%r.evaluate(e)],ln2:[ki,[],()=>Math.LN2],pi:[ki,[],()=>Math.PI],e:[ki,[],()=>Math.E],"^":[ki,[ki,ki],(e,[t,r])=>t.evaluate(e)**+r.evaluate(e)],sqrt:[ki,[ki],(e,[t])=>Math.sqrt(t.evaluate(e))],log10:[ki,[ki],(e,[t])=>Math.log(t.evaluate(e))/Math.LN10],ln:[ki,[ki],(e,[t])=>Math.log(t.evaluate(e))],log2:[ki,[ki],(e,[t])=>Math.log(t.evaluate(e))/Math.LN2],sin:[ki,[ki],(e,[t])=>Math.sin(t.evaluate(e))],cos:[ki,[ki],(e,[t])=>Math.cos(t.evaluate(e))],tan:[ki,[ki],(e,[t])=>Math.tan(t.evaluate(e))],asin:[ki,[ki],(e,[t])=>Math.asin(t.evaluate(e))],acos:[ki,[ki],(e,[t])=>Math.acos(t.evaluate(e))],atan:[ki,[ki],(e,[t])=>Math.atan(t.evaluate(e))],min:[ki,W_(ki),(e,t)=>Math.min(...t.map(r=>r.evaluate(e)))],max:[ki,W_(ki),(e,t)=>Math.max(...t.map(r=>r.evaluate(e)))],abs:[ki,[ki],(e,[t])=>Math.abs(t.evaluate(e))],round:[ki,[ki],(e,[t])=>{let r=t.evaluate(e);return r<0?-Math.round(-r):Math.round(r)}],floor:[ki,[ki],(e,[t])=>Math.floor(t.evaluate(e))],ceil:[ki,[ki],(e,[t])=>Math.ceil(t.evaluate(e))],"filter-==":[Ra,[ha,ma],(e,[t,r])=>e.properties()[t.value]===r.value],"filter-id-==":[Ra,[ma],(e,[t])=>e.id()===t.value],"filter-type-==":[Ra,[ha],(e,[t])=>e.geometryType()===t.value],"filter-<":[Ra,[ha,ma],(e,[t,r])=>{let i=e.properties()[t.value],n=r.value;return typeof i==typeof n&&i{let r=e.id(),i=t.value;return typeof r==typeof i&&r":[Ra,[ha,ma],(e,[t,r])=>{let i=e.properties()[t.value],n=r.value;return typeof i==typeof n&&i>n}],"filter-id->":[Ra,[ma],(e,[t])=>{let r=e.id(),i=t.value;return typeof r==typeof i&&r>i}],"filter-<=":[Ra,[ha,ma],(e,[t,r])=>{let i=e.properties()[t.value],n=r.value;return typeof i==typeof n&&i<=n}],"filter-id-<=":[Ra,[ma],(e,[t])=>{let r=e.id(),i=t.value;return typeof r==typeof i&&r<=i}],"filter->=":[Ra,[ha,ma],(e,[t,r])=>{let i=e.properties()[t.value],n=r.value;return typeof i==typeof n&&i>=n}],"filter-id->=":[Ra,[ma],(e,[t])=>{let r=e.id(),i=t.value;return typeof r==typeof i&&r>=i}],"filter-has":[Ra,[ma],(e,[t])=>{let r=t.value,i=e.properties();return r in i&&i[r]!==void 0}],"filter-has-id":[Ra,[],e=>e.id()!==null&&e.id()!==void 0],"filter-type-in":[Ra,[zf(ha)],(e,[t])=>t.value.indexOf(e.geometryType())>=0],"filter-id-in":[Ra,[zf(ma)],(e,[t])=>t.value.indexOf(e.id())>=0],"filter-in-small":[Ra,[ha,zf(ma)],(e,[t,r])=>r.value.indexOf(e.properties()[t.value])>=0],"filter-in-large":[Ra,[ha,zf(ma)],(e,[t,r])=>K2r(e.properties()[t.value],r.value,0,r.value.length-1)],all:{type:Ra,overloads:[[[Ra,Ra],(e,[t,r])=>t.evaluate(e)&&r.evaluate(e)],[W_(Ra),(e,t)=>{for(let r of t)if(!r.evaluate(e))return!1;return!0}]]},any:{type:Ra,overloads:[[[Ra,Ra],(e,[t,r])=>t.evaluate(e)||r.evaluate(e)],[W_(Ra),(e,t)=>{for(let r of t)if(r.evaluate(e))return!0;return!1}]]},"!":[Ra,[Ra],(e,[t])=>!t.evaluate(e)],"is-supported-script":[Ra,[ha],(e,[t])=>{let r=e.globals&&e.globals.isSupportedScript;return!r||r(t.evaluate(e))}],upcase:[ha,[ha],(e,[t])=>t.evaluate(e).toUpperCase()],downcase:[ha,[ha],(e,[t])=>t.evaluate(e).toLowerCase()],concat:[ha,W_(ma),(e,t)=>t.map(r=>Nk(r.evaluate(e))).join("")],split:[zf(ha),[ha,ha],(e,[t,r])=>t.evaluate(e).split(r.evaluate(e))],join:[ha,[zf(ha),ha],(e,[t,r])=>t.evaluate(e).join(r.evaluate(e))],"resolved-locale":[ha,[KB],(e,[t])=>t.evaluate(e).resolvedLocale()]});Dne=/^(.*)-transition$/;Fne=class{constructor(e,t,r,i){this.expression=e,this._warningHistory={},this._evaluator=new hrt,this._defaultValue=r?Qrt(r):null,this._enumValues=r&&r.type==="enum"?r.values:null,this._globalState=i,this._rootKey=t}evaluateWithoutErrorHandling(e,t,r,i,n,a){return this._globalState&&(e=N6(e,this._globalState)),this._evaluator.globals=e,this._evaluator.feature=t,this._evaluator.featureState=r,this._evaluator.canonical=i,this._evaluator.availableImages=n||null,this._evaluator.formattedSection=a,this.expression.evaluate(this._evaluator)}evaluate(e,t,r,i,n,a){this._globalState&&(e=N6(e,this._globalState)),this._evaluator.globals=e,this._evaluator.feature=t||null,this._evaluator.featureState=r||null,this._evaluator.canonical=i,this._evaluator.availableImages=n||null,this._evaluator.formattedSection=a||null;try{let o=this.expression.evaluate(this._evaluator);if(o==null||typeof o=="number"&&o!==o)return this._defaultValue;if(this._enumValues&&!(o in this._enumValues))throw new sl(`Expected value to be one of ${Object.keys(this._enumValues).map(s=>JSON.stringify(s)).join(", ")}, but found ${JSON.stringify(o)} instead.`,"");return o}catch(o){let s=o instanceof sl?o.path:"",l=`${s}|${o.message}`;return this._warningHistory[l]||(this._warningHistory[l]=!0,typeof console<"u"&&console.warn(Yrt(this._rootKey,s,o.message,this._defaultValue))),this._defaultValue}}};Kk=class{constructor(e,t,r){this.kind=e,this._styleExpression=t,this.isStateDependent=e!=="constant"&&!Xk(t.expression),this.globalStateRefs=wC(t.expression),this._globalState=r}evaluateWithoutErrorHandling(e,t,r,i,n,a){return this._globalState&&(e=N6(e,this._globalState)),this._styleExpression.evaluateWithoutErrorHandling(e,t,r,i,n,a)}evaluate(e,t,r,i,n,a){return this._globalState&&(e=N6(e,this._globalState)),this._styleExpression.evaluate(e,t,r,i,n,a)}},wB=class{constructor(e,t,r,i,n){this.kind=e,this.zoomStops=r,this._styleExpression=t,this.isStateDependent=e!=="camera"&&!Xk(t.expression),this.globalStateRefs=wC(t.expression),this.interpolationType=i,this._globalState=n}evaluateWithoutErrorHandling(e,t,r,i,n,a){return this._globalState&&(e=N6(e,this._globalState)),this._styleExpression.evaluateWithoutErrorHandling(e,t,r,i,n,a)}evaluate(e,t,r,i,n,a){return this._globalState&&(e=N6(e,this._globalState)),this._styleExpression.evaluate(e,t,r,i,n,a)}interpolationFactor(e,t,r){return this.interpolationType?np.interpolationFactor(this.interpolationType,e,t,r):0}};Krt=class Jrt{constructor(t,r,i){this.isStateDependent=!1,this.globalStateRefs=new Set,this._globalState=null,Xrt(r),this._parameters=t,this._specification=i,this._rootKey=r,this._defaultValue=Qrt(i),this._warningHistory={};let n=$rt(this._parameters,this._specification);this.kind=n.kind,this.interpolationFactor=n.interpolationFactor,this.zoomStops=n.zoomStops,this.interpolationType=n.interpolationType,this._innerEvaluate=n.evaluate}evaluate(t,r){try{return this._innerEvaluate(t,r)}catch(i){let n=i instanceof Error?i.message:String(i),a=`|${n}`;return this._warningHistory[a]||(this._warningHistory[a]=!0,typeof console<"u"&&console.warn(Yrt(this._rootKey,"",n,this._defaultValue))),this._defaultValue}}static deserialize(t){return new Jrt(t._parameters,t._rootKey,t._specification)}static serialize(t){return{_parameters:t._parameters,_specification:t._specification,_rootKey:t._rootKey}}};hxr={type:"boolean",default:!1,transition:!1,"property-type":"data-driven",expression:{interpolated:!1,parameters:["zoom","feature"]}};XQe={promoteId:xxr};ZQe=1114111,Dxr=/^u\+(?:([0-9a-f]{1,6})(?:-([0-9a-f]{1,6}))?|([0-9a-f]{0,5}\?{1,6}))$/i;KQe={"*"(){return[]},array:Ine,boolean:vxr,number:uq,color:tie,constants:iit,enum:Jk,filter:Rne,function:nit,layer:uit,object:U0,source:cit,light:fit,sky:hit,terrain:dit,projection:Sxr,projectionDefinition:Exr,string:ux,formatted:bxr,resolvedImage:_xr,padding:wxr,numberArray:Txr,colorArray:Axr,variableAnchorOffsetCollection:Mxr,sprite:pit,state:vit,fontFaces:git};N0.source=Qd(Jd(cit)),N0.sprite=Qd(Jd(pit)),N0.glyphs=Qd(Jd(mit)),N0.fontFaces=Qd(Jd(git)),N0.light=Qd(Jd(fit)),N0.sky=Qd(Jd(hit)),N0.terrain=Qd(Jd(dit)),N0.state=Qd(Jd(vit)),N0.layer=Qd(Jd(uit)),N0.filter=Qd(Jd(Rne)),N0.paintProperty=Qd(Jd(sit)),N0.layoutProperty=Qd(Jd(lit));Lxr={type:"enum","property-type":"data-constant",expression:{interpolated:!1,parameters:["global-state"]},values:{visible:{},none:{}},transition:!1,default:"visible"},Pxr=class{constructor(e,t,r){this._rootKey=t,this._globalState=r,this.setValue(e)}evaluate(){var e;return(e=this._literalValue)!=null?e:this._compiledValue.evaluate({})}setValue(e){if(e==null||e==="visible"||e==="none"){this._literalValue=e==="none"?"none":"visible",this._compiledValue=void 0,this._globalStateRefs=new Set;return}let t=lq(e,this._rootKey,Lxr,this._globalState);if(t.result==="error")throw this._literalValue="visible",this._compiledValue=void 0,Error(t.value.map(r=>`${r.key}: ${r.message}`).join(", "));this._literalValue=void 0,this._compiledValue=t.value,this._globalStateRefs=wC(t.value.expression)}getGlobalStateRefs(){return this._globalStateRefs}};ph=N0,zne=new Set(Object.keys(_r).filter(e=>e.startsWith("source_")).map(e=>e.slice(7).replaceAll("_","-")));iie=class xit{constructor(t,r,i){let n=this.cells=[];if(t instanceof ArrayBuffer){this.arrayBuffer=t;let o=new Int32Array(this.arrayBuffer);t=o[0],r=o[1],i=o[2],this.d=r+2*i;for(let u=0;u=f[p+0]&&n>=f[p+1])?(s[h]=!0,o.push(c[h])):s[h]=!1}}}_forEachCell(t,r,i,n,a,o,s,l){let u=this._convertToCellCoord(t),c=this._convertToCellCoord(r),f=this._convertToCellCoord(i),h=this._convertToCellCoord(n);for(let p=u;p<=f;p++)for(let d=c;d<=h;d++){let v=this.d*d+p;if((!l||l(this._convertFromCellCoord(p),this._convertFromCellCoord(d),this._convertFromCellCoord(p+1),this._convertFromCellCoord(d+1)))&&a.call(this,t,r,i,n,v,o,s,l))return}}_convertFromCellCoord(t){return(t-this.padding)/this.scale}_convertToCellCoord(t){return Math.max(0,Math.min(this.d-1,Math.floor(t*this.scale)+this.padding))}toArrayBuffer(){if(this.arrayBuffer)return this.arrayBuffer;let t=this.cells,r=3+this.cells.length+1+1,i=0;for(let o of this.cells)i+=o.length;let n=new Int32Array(r+i+this.keys.length+this.bboxes.length);n[0]=this.extent,n[1]=this.n,n[2]=this.padding;let a=r;for(let o=0;or?(this.lastIntegerZoom=r+1,this.lastIntegerZoomTime=t):this.lastFloorZoomthis.zoomHistory.lastIntegerZoom?{fromScale:2,toScale:1,t:t+(1-t)*r}:{fromScale:.5,toScale:1,t:1-(1-r)*t}}},Qk=class{constructor(e,t,r,i){this.property=e,this.value=t,this.expression=sxr(t===void 0?e.specification.default:t,r,e.specification,i)}isDataDriven(){return this.expression.kind==="source"||this.expression.kind==="composite"}getGlobalStateRefs(){return this.expression.globalStateRefs||new Set}readsGlobalState(e){let t=this.getGlobalStateRefs();return e.some(r=>t.has(r))}possiblyEvaluate(e,t,r){return this.property.possiblyEvaluate(this,e,t,r)}},nie=class{constructor(e,t,r){this.property=e,this.value=new Qk(e,void 0,t,r)}transitioned(e,t){return t.value===this.value?t:new JQe(this.property,this.value,t,cn({},e.transition,this.transition),e.now)}untransitioned(){return new JQe(this.property,this.value,null,{},0)}},TC=class{constructor(e,t,r){this._properties=e,this._values=Object.create(e.defaultTransitionablePropertyValues),this._globalState=r,this._rootKey=t}_propertyRootKey(e){return`${this._rootKey}.${String(e)}`}hasProperty(e){return e in this._properties.defaultTransitionablePropertyValues}getValue(e){return hh(this._values[e].value.value)}setValue(e,t){Object.hasOwn(this._values,e)||(this._values[e]=new nie(this._values[e].property,this._propertyRootKey(e),this._globalState)),this._values[e].value=new Qk(this._values[e].property,t===null?void 0:hh(t),this._propertyRootKey(e),this._globalState)}setValues(e){for(let t in e){let r=e[t];t.endsWith("-transition")?this.setTransition(t.slice(0,-11),r):Sv(this._values[t].value.value,r)||this.setValue(t,r)}}getTransition(e){return hh(this._values[e].transition)}setTransition(e,t){Object.hasOwn(this._values,e)||(this._values[e]=new nie(this._values[e].property,this._propertyRootKey(e),this._globalState)),this._values[e].transition=hh(t)||void 0}retainPriorGlobalState(e,t,r){for(let i of Object.keys(r._values))for(let n=r._values[i];n;n=n.prior){let{value:a}=n;a.property.specification.transition&&!a.isDataDriven()&&a.expression._globalState===this._globalState&&a.readsGlobalState(e)&&(n.value=new Qk(a.property,a.value,this._propertyRootKey(i),t))}}applyGlobalStateChange(e,t,r,i){this.retainPriorGlobalState(e,t,r);let n=!1;for(let a of Object.keys(this._values)){let{value:o}=this._values[a];o.readsGlobalState(e)&&(this.setValue(a,o.value),n=!0)}return n?this.transitioned(i,r):r}serialize(){let e={};for(let t of Object.keys(this._values)){let r=this.getValue(t);r!==void 0&&(e[t]=r);let i=this.getTransition(t);i!==void 0&&(e[`${t}-transition`]=i)}return e}transitioned(e,t){let r=new QQe(this._properties);for(let i of Object.keys(this._values))r._values[i]=this._values[i].transitioned(e,t._values[i]);return r}untransitioned(){let e=new QQe(this._properties);for(let t of Object.keys(this._values))e._values[t]=this._values[t].untransitioned();return e}},JQe=class{constructor(e,t,r,i,n){this.property=e,this.value=t,this.begin=n+i.delay||0,this.end=this.begin+i.duration||0,e.specification.transition&&(i.delay||i.duration)&&(this.prior=r)}possiblyEvaluate(e,t,r){let i=e.now||0,n=this.value.possiblyEvaluate(e,t,r),a=this.prior;if(!a)return n;if(i>this.end||this.value.isDataDriven())return this.prior=null,n;if(ii.zoomHistory.lastIntegerZoom?{from:e,to:t}:{from:r,to:t}}interpolate(e){return e}},Tit=class{constructor(e,t){this.specification=e,this.name=t}possiblyEvaluate(e,t,r,i){if(e.value!==void 0){if(e.expression.kind==="constant"){let n=e.expression.evaluate(t,null,{},r,i);return this._calculate(n,n,n,t)}return this._calculate(e.expression.evaluate(new Io(Math.floor(t.zoom-1),t)),e.expression.evaluate(new Io(Math.floor(t.zoom),t)),e.expression.evaluate(new Io(Math.floor(t.zoom+1),t)),t)}}_calculate(e,t,r,i){return i.zoom>i.zoomHistory.lastIntegerZoom?{from:e,to:t}:{from:r,to:t}}interpolate(e){return e}},hq=class{constructor(e,t){this.specification=e,this.name=t}possiblyEvaluate(e,t,r,i){return!!e.expression.evaluate(t,null,{},r,i)}interpolate(){return!1}},hc=class{constructor(e){this.properties=e,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},this.overridableProperties=[];for(let t in e){let r=e[t];r.specification.overridable&&this.overridableProperties.push(t);let i=this.defaultPropertyValues[t]=new Qk(r,void 0,r.name,void 0),n=this.defaultTransitionablePropertyValues[t]=new nie(r,r.name,void 0);this.defaultTransitioningPropertyValues[t]=n.untransitioned(),this.defaultPossiblyEvaluatedValues[t]=i.possiblyEvaluate({})}}};Gi("DataDrivenProperty",En),Gi("DataConstantProperty",Pi),Gi("CrossFadedDataDrivenProperty",eC),Gi("CrossFadedProperty",Tit),Gi("ColorRampProperty",hq);tet=" is a PAINT property not a LAYOUT property. Use get/setPaintProperty instead?",Bre=" is a LAYOUT property not a PAINT property. Use get/setLayoutProperty instead?",Dv=class extends lu{constructor(e,t,r){if(super(),this.id=e.id,this.type=e.type,this._globalState=r,this._featureFilter={filter:()=>!0,needGeometry:!1,getGlobalStateRefs:()=>new Set},this._visibilityExpression=Ixr(this.visibility,`layers[${this.id}].layout.visibility`,r),e.type!=="custom"&&(this.metadata=e.metadata,this.minzoom=e.minzoom,this.maxzoom=e.maxzoom,e.type!=="background"&&(this.source=e.source,this.sourceLayer=e["source-layer"],this.filter=e.filter,this._featureFilter=U6(e.filter,`layers[${this.id}].filter`,r)),t.layout&&(this._unevaluatedLayout=new Bxr(t.layout,`layers[${this.id}].layout`,r)),t.paint)){this._transitionablePaint=new TC(t.paint,`layers[${this.id}].paint`,r);for(let i in e.paint)this.setPaintProperty(i,e.paint[i],{validate:!1});for(let i in e.layout)this.setLayoutProperty(i,e.layout[i],{validate:!1});this._transitioningPaint=this._transitionablePaint.untransitioned(),this.paint=new fq(t.paint)}}setFilter(e){this.filter=e,this._featureFilter=U6(e,`layers[${this.id}].filter`,this._globalState)}getCrossfadeParameters(){return this._crossfadeParameters}getLayoutProperty(e){var t;if(e==="visibility")return this.visibility;if((t=this._transitionablePaint)!=null&&t.hasProperty(e))throw Error(e+tet);if(!this._unevaluatedLayout)throw Error(`Cannot get layout property "${e}" on layer type "${this.type}" which has no layout properties.`);return this._unevaluatedLayout.getValue(e)}getLayoutAffectingGlobalStateRefs(){let e=new Set;for(let t of this._visibilityExpression.getGlobalStateRefs())e.add(t);if(this._unevaluatedLayout)for(let t in this._unevaluatedLayout._values){let r=this._unevaluatedLayout._values[t];for(let i of r.getGlobalStateRefs())e.add(i)}for(let t of this._featureFilter.getGlobalStateRefs())e.add(t);return e}getPaintAffectingGlobalStateRefs(){var t;let e=new globalThis.Map;if(this._transitionablePaint)for(let r in this._transitionablePaint._values){let i=this._transitionablePaint._values[r].value;for(let n of i.getGlobalStateRefs()){let a=(t=e.get(n))!=null?t:[];a.push({name:r,value:i.value}),e.set(n,a)}}return e}getVisibilityAffectingGlobalStateRefs(){return this._visibilityExpression.getGlobalStateRefs()}setLayoutProperty(e,t,r={}){var i;if(e==="visibility"){this.visibility=t,this._visibilityExpression.setValue(t),this.recalculateVisibility();return}if((i=this._transitionablePaint)!=null&&i.hasProperty(e)){this.fire(new An(Error(e+tet)));return}t!=null&&this._validate(ph.layoutProperty,`layers.${this.id}.layout.${e}`,e,t,r)||this._unevaluatedLayout.setValue(e,t)}getPaintProperty(e){var t,r;if(e.endsWith("-transition")){let i=e.slice(0,-11);if(i==="visibility"||(t=this._unevaluatedLayout)!=null&&t.hasProperty(i))throw Error(e+Bre);return this._transitionablePaint.getTransition(i)}if(e==="visibility"||(r=this._unevaluatedLayout)!=null&&r.hasProperty(e))throw Error(e+Bre);return this._transitionablePaint.getValue(e)}setPaintProperty(e,t,r={}){var i;if(e==="visibility"||(i=this._unevaluatedLayout)!=null&&i.hasProperty(e))return this.fire(new An(Error(e+Bre))),!1;if(t!=null&&this._validate(ph.paintProperty,`layers.${this.id}.paint.${e}`,e,t,r))return!1;if(e.endsWith("-transition"))return this._transitionablePaint.setTransition(e.slice(0,-11),t||void 0),!1;{let n=this._transitionablePaint._values[e],a=n.property.specification["property-type"]==="cross-faded-data-driven",o=n.value.isDataDriven(),s=n.value;this._transitionablePaint.setValue(e,t),this._handleSpecialPaintPropertyUpdate(e);let l=this._transitionablePaint._values[e].value;return l.isDataDriven()||o||a||this._handleOverridablePaintPropertyUpdate(e,s,l)}}_handleSpecialPaintPropertyUpdate(e){}_handleOverridablePaintPropertyUpdate(e,t,r){return!1}isHidden(e=this.minzoom,t=!1){return this.minzoom&&e<(t?Math.floor(this.minzoom):this.minzoom)||this.maxzoom&&e>=this.maxzoom?!0:this._evaluatedVisibility==="none"}updateTransitions(e){this._transitioningPaint=this._transitionablePaint.transitioned(e,this._transitioningPaint)}retainPriorGlobalState(e,t){var r;(r=this._transitionablePaint)==null||r.retainPriorGlobalState(e,t,this._transitioningPaint)}hasTransition(){return this._transitioningPaint.hasTransition()}recalculateVisibility(){this._evaluatedVisibility=this._visibilityExpression.evaluate()}recalculate(e,t){e.getCrossfadeParameters&&(this._crossfadeParameters=e.getCrossfadeParameters()),this._unevaluatedLayout&&(this.layout=this._unevaluatedLayout.possiblyEvaluate(e,void 0,t)),this.paint=this._transitioningPaint.possiblyEvaluate(e,void 0,t)}serialize(){var t,r;let e={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:(t=this._unevaluatedLayout)==null?void 0:t.serialize(),paint:(r=this._transitionablePaint)==null?void 0:r.serialize()};return this.visibility&&(e.layout||(e.layout={}),e.layout.visibility=this.visibility),fne(e,(i,n)=>i!==void 0&&!(n==="layout"&&!Object.keys(i).length)&&!(n==="paint"&&!Object.keys(i).length))}_validate(e,t,r,i,n={}){return Z6(this,e,{key:t,layerType:this.type,objectKey:r,value:i},n)}is3D(){return!1}isTileClipped(){return!1}hasOffscreenPass(){return!1}resize(){}isStateDependent(){for(let e in this.paint._values){let t=this.paint.get(e);if(t instanceof rp&&O6(t.property.specification)&&(t.value.kind==="source"||t.value.kind==="composite")&&t.value.isStateDependent)return!0}return!1}},qxr=()=>ret||(ret=new hc({"raster-opacity":new Pi(_r.paint_raster["raster-opacity"],"raster-opacity"),"raster-hue-rotate":new Pi(_r.paint_raster["raster-hue-rotate"],"raster-hue-rotate"),"raster-brightness-min":new Pi(_r.paint_raster["raster-brightness-min"],"raster-brightness-min"),"raster-brightness-max":new Pi(_r.paint_raster["raster-brightness-max"],"raster-brightness-max"),"raster-saturation":new Pi(_r.paint_raster["raster-saturation"],"raster-saturation"),"raster-contrast":new Pi(_r.paint_raster["raster-contrast"],"raster-contrast"),resampling:new Pi(_r.paint_raster.resampling,"resampling"),"raster-resampling":new Pi(_r.paint_raster["raster-resampling"],"raster-resampling"),"raster-fade-duration":new Pi(_r.paint_raster["raster-fade-duration"],"raster-fade-duration")})),Oxr={get paint(){return qxr()}},dq=e=>e.type==="raster",Nxr=class extends Dv{constructor(e,t){super(e,Oxr,t)}},Uxr={Int8:Int8Array,Uint8:Uint8Array,Int16:Int16Array,Uint16:Uint16Array,Int32:Int32Array,Uint32:Uint32Array,Float32:Float32Array},AC=class{constructor(e,t){this._structArray=e,this._pos1=t*this.size,this._pos2=this._pos1/2,this._pos4=this._pos1/4,this._pos8=this._pos1/8}},bl=class{constructor(){this.isTransferred=!1,this.capacity=-1,this.resize(0)}static serialize(e,t){return e._trim(),t&&(e.isTransferred=!0,t.push(e.arrayBuffer)),{length:e.length,arrayBuffer:e.arrayBuffer}}static deserialize(e){let t=Object.create(this.prototype);return t.arrayBuffer=e.arrayBuffer,t.length=e.length,t.capacity=e.arrayBuffer.byteLength/t.bytesPerElement,t._refreshViews(),t}_trim(){this.length!==this.capacity&&(this.capacity=this.length,this.arrayBuffer=this.arrayBuffer.slice(0,this.length*this.bytesPerElement),this._refreshViews())}clear(){this.length=0}resize(e){this.reserve(e),this.length=e}reserve(e){if(e>this.capacity){this.capacity=Math.max(e,Math.floor(this.capacity*5),128),this.arrayBuffer=new ArrayBuffer(this.capacity*this.bytesPerElement);let t=this.uint8;this._refreshViews(),t&&this.uint8.set(t)}}_refreshViews(){throw Error("_refreshViews() must be implemented by each concrete StructArray layout")}freeBufferAfterUpload(){this.arrayBuffer=new ArrayBuffer(0),this._refreshViews()}};tC=class extends bl{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,t){let r=this.length;return this.resize(r+1),this.emplace(r,e,t)}emplace(e,t,r){let i=e*2;return this.int16[i+0]=t,this.int16[i+1]=r,e}};tC.prototype.bytesPerElement=4,Gi("StructArrayLayout2i4",tC);MB=class extends bl{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,t,r){let i=this.length;return this.resize(i+1),this.emplace(i,e,t,r)}emplace(e,t,r,i){let n=e*3;return this.int16[n+0]=t,this.int16[n+1]=r,this.int16[n+2]=i,e}};MB.prototype.bytesPerElement=6,Gi("StructArrayLayout3i6",MB);aie=class extends bl{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,t,r,i){let n=this.length;return this.resize(n+1),this.emplace(n,e,t,r,i)}emplace(e,t,r,i,n){let a=e*4;return this.int16[a+0]=t,this.int16[a+1]=r,this.int16[a+2]=i,this.int16[a+3]=n,e}};aie.prototype.bytesPerElement=8,Gi("StructArrayLayout4i8",aie);oie=class extends bl{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,t,r,i,n,a){let o=this.length;return this.resize(o+1),this.emplace(o,e,t,r,i,n,a)}emplace(e,t,r,i,n,a,o){let s=e*6;return this.int16[s+0]=t,this.int16[s+1]=r,this.int16[s+2]=i,this.int16[s+3]=n,this.int16[s+4]=a,this.int16[s+5]=o,e}};oie.prototype.bytesPerElement=12,Gi("StructArrayLayout2i4i12",oie);sie=class extends bl{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,t,r,i,n,a){let o=this.length;return this.resize(o+1),this.emplace(o,e,t,r,i,n,a)}emplace(e,t,r,i,n,a,o){let s=e*4,l=e*8;return this.int16[s+0]=t,this.int16[s+1]=r,this.uint8[l+4]=i,this.uint8[l+5]=n,this.uint8[l+6]=a,this.uint8[l+7]=o,e}};sie.prototype.bytesPerElement=8,Gi("StructArrayLayout2i4ub8",sie);rC=class extends bl{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,t){let r=this.length;return this.resize(r+1),this.emplace(r,e,t)}emplace(e,t,r){let i=e*2;return this.float32[i+0]=t,this.float32[i+1]=r,e}};rC.prototype.bytesPerElement=8,Gi("StructArrayLayout2f8",rC);lie=class extends bl{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,t,r,i,n,a,o,s,l,u){let c=this.length;return this.resize(c+1),this.emplace(c,e,t,r,i,n,a,o,s,l,u)}emplace(e,t,r,i,n,a,o,s,l,u,c){let f=e*10;return this.uint16[f+0]=t,this.uint16[f+1]=r,this.uint16[f+2]=i,this.uint16[f+3]=n,this.uint16[f+4]=a,this.uint16[f+5]=o,this.uint16[f+6]=s,this.uint16[f+7]=l,this.uint16[f+8]=u,this.uint16[f+9]=c,e}};lie.prototype.bytesPerElement=20,Gi("StructArrayLayout10ui20",lie);uie=class extends bl{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,t,r,i,n,a,o,s){let l=this.length;return this.resize(l+1),this.emplace(l,e,t,r,i,n,a,o,s)}emplace(e,t,r,i,n,a,o,s,l){let u=e*8;return this.uint16[u+0]=t,this.uint16[u+1]=r,this.uint16[u+2]=i,this.uint16[u+3]=n,this.uint16[u+4]=a,this.uint16[u+5]=o,this.uint16[u+6]=s,this.uint16[u+7]=l,e}};uie.prototype.bytesPerElement=16,Gi("StructArrayLayout8ui16",uie);cie=class extends bl{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,t,r,i,n,a,o,s,l,u,c,f,h){let p=this.length;return this.resize(p+1),this.emplace(p,e,t,r,i,n,a,o,s,l,u,c,f,h)}emplace(e,t,r,i,n,a,o,s,l,u,c,f,h,p){let d=e*14,v=e*7;return this.int16[d+0]=t,this.int16[d+1]=r,this.int16[d+2]=i,this.int16[d+3]=n,this.uint16[d+4]=a,this.uint16[d+5]=o,this.uint16[d+6]=s,this.uint16[d+7]=l,this.int16[d+8]=u,this.int16[d+9]=c,this.int16[d+10]=f,this.int16[d+11]=h,this.float32[v+6]=p,e}};cie.prototype.bytesPerElement=28,Gi("StructArrayLayout4i4ui4i1f28",cie);fie=class extends bl{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,t,r){let i=this.length;return this.resize(i+1),this.emplace(i,e,t,r)}emplace(e,t,r,i){let n=e*3;return this.float32[n+0]=t,this.float32[n+1]=r,this.float32[n+2]=i,e}};fie.prototype.bytesPerElement=12,Gi("StructArrayLayout3f12",fie);hie=class extends bl{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)}emplaceBack(e){let t=this.length;return this.resize(t+1),this.emplace(t,e)}emplace(e,t){let r=e*1;return this.uint32[r+0]=t,e}};hie.prototype.bytesPerElement=4,Gi("StructArrayLayout1ul4",hie);die=class extends bl{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,t,r,i,n,a,o,s,l){let u=this.length;return this.resize(u+1),this.emplace(u,e,t,r,i,n,a,o,s,l)}emplace(e,t,r,i,n,a,o,s,l,u){let c=e*10,f=e*5;return this.int16[c+0]=t,this.int16[c+1]=r,this.int16[c+2]=i,this.int16[c+3]=n,this.int16[c+4]=a,this.int16[c+5]=o,this.uint32[f+3]=s,this.uint16[c+8]=l,this.uint16[c+9]=u,e}};die.prototype.bytesPerElement=20,Gi("StructArrayLayout6i1ul2ui20",die);pie=class extends bl{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,t,r,i,n,a){let o=this.length;return this.resize(o+1),this.emplace(o,e,t,r,i,n,a)}emplace(e,t,r,i,n,a,o){let s=e*6;return this.int16[s+0]=t,this.int16[s+1]=r,this.int16[s+2]=i,this.int16[s+3]=n,this.int16[s+4]=a,this.int16[s+5]=o,e}};pie.prototype.bytesPerElement=12,Gi("StructArrayLayout2i2i2i12",pie);vie=class extends bl{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,t,r,i,n){let a=this.length;return this.resize(a+1),this.emplace(a,e,t,r,i,n)}emplace(e,t,r,i,n,a){let o=e*4,s=e*8;return this.float32[o+0]=t,this.float32[o+1]=r,this.float32[o+2]=i,this.int16[s+6]=n,this.int16[s+7]=a,e}};vie.prototype.bytesPerElement=16,Gi("StructArrayLayout2f1f2i16",vie);gie=class extends bl{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,t,r,i,n,a){let o=this.length;return this.resize(o+1),this.emplace(o,e,t,r,i,n,a)}emplace(e,t,r,i,n,a,o){let s=e*16,l=e*4,u=e*8;return this.uint8[s+0]=t,this.uint8[s+1]=r,this.float32[l+1]=i,this.float32[l+2]=n,this.int16[u+6]=a,this.int16[u+7]=o,e}};gie.prototype.bytesPerElement=16,Gi("StructArrayLayout2ub2f2i16",gie);SB=class extends bl{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,t,r){let i=this.length;return this.resize(i+1),this.emplace(i,e,t,r)}emplace(e,t,r,i){let n=e*3;return this.uint16[n+0]=t,this.uint16[n+1]=r,this.uint16[n+2]=i,e}};SB.prototype.bytesPerElement=6,Gi("StructArrayLayout3ui6",SB);mie=class extends bl{_refreshViews(){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)}emplaceBack(e,t,r,i,n,a,o,s,l,u,c,f,h,p,d,v,m,g){let w=this.length;return this.resize(w+1),this.emplace(w,e,t,r,i,n,a,o,s,l,u,c,f,h,p,d,v,m,g)}emplace(e,t,r,i,n,a,o,s,l,u,c,f,h,p,d,v,m,g,w){let _=e*26,b=e*13,S=e*52;return this.int16[_+0]=t,this.int16[_+1]=r,this.uint16[_+2]=i,this.uint16[_+3]=n,this.uint32[b+2]=a,this.uint32[b+3]=o,this.uint32[b+4]=s,this.uint16[_+10]=l,this.uint16[_+11]=u,this.uint16[_+12]=c,this.float32[b+7]=f,this.float32[b+8]=h,this.uint8[S+36]=p,this.uint8[S+37]=d,this.uint8[S+38]=v,this.uint32[b+10]=m,this.int16[_+22]=g,this.float32[b+12]=w,e}};mie.prototype.bytesPerElement=52,Gi("StructArrayLayout2i2ui3ul3ui2f3ub1ul1i1f52",mie);yie=class extends bl{_refreshViews(){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)}emplaceBack(e,t,r,i,n,a,o,s,l,u,c,f,h,p,d,v,m,g,w,_,b,S,x,T,A,y,E,M,C){let k=this.length;return this.resize(k+1),this.emplace(k,e,t,r,i,n,a,o,s,l,u,c,f,h,p,d,v,m,g,w,_,b,S,x,T,A,y,E,M,C)}emplace(e,t,r,i,n,a,o,s,l,u,c,f,h,p,d,v,m,g,w,_,b,S,x,T,A,y,E,M,C,k){let D=e*34,L=e*17;return this.int16[D+0]=t,this.int16[D+1]=r,this.int16[D+2]=i,this.int16[D+3]=n,this.int16[D+4]=a,this.int16[D+5]=o,this.int16[D+6]=s,this.int16[D+7]=l,this.uint16[D+8]=u,this.uint16[D+9]=c,this.uint16[D+10]=f,this.uint16[D+11]=h,this.uint16[D+12]=p,this.uint16[D+13]=d,this.uint16[D+14]=v,this.uint16[D+15]=m,this.uint16[D+16]=g,this.uint16[D+17]=w,this.uint16[D+18]=_,this.uint16[D+19]=b,this.uint16[D+20]=S,this.uint16[D+21]=x,this.uint16[D+22]=T,this.uint32[L+12]=A,this.float32[L+13]=y,this.float32[L+14]=E,this.uint16[D+30]=M,this.uint16[D+31]=C,this.float32[L+16]=k,e}};yie.prototype.bytesPerElement=68,Gi("StructArrayLayout8i15ui1ul2f2ui1f68",yie);EB=class extends bl{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e){let t=this.length;return this.resize(t+1),this.emplace(t,e)}emplace(e,t){let r=e*1;return this.float32[r+0]=t,e}};EB.prototype.bytesPerElement=4,Gi("StructArrayLayout1f4",EB);xie=class extends bl{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,t,r){let i=this.length;return this.resize(i+1),this.emplace(i,e,t,r)}emplace(e,t,r,i){let n=e*6,a=e*3;return this.uint16[n+0]=t,this.float32[a+1]=r,this.float32[a+2]=i,e}};xie.prototype.bytesPerElement=12,Gi("StructArrayLayout1ui2f12",xie);bie=class extends bl{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,t,r){let i=this.length;return this.resize(i+1),this.emplace(i,e,t,r)}emplace(e,t,r,i){let n=e*2,a=e*4;return this.uint32[n+0]=t,this.uint16[a+2]=r,this.uint16[a+3]=i,e}};bie.prototype.bytesPerElement=8,Gi("StructArrayLayout1ul2ui8",bie);_ie=class extends bl{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,t){let r=this.length;return this.resize(r+1),this.emplace(r,e,t)}emplace(e,t,r){let i=e*2;return this.uint16[i+0]=t,this.uint16[i+1]=r,e}};_ie.prototype.bytesPerElement=4,Gi("StructArrayLayout2ui4",_ie);wie=class extends bl{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e){let t=this.length;return this.resize(t+1),this.emplace(t,e)}emplace(e,t){let r=e*1;return this.uint16[r+0]=t,e}};wie.prototype.bytesPerElement=2,Gi("StructArrayLayout1ui2",wie);Tie=class extends bl{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,t,r,i){let n=this.length;return this.resize(n+1),this.emplace(n,e,t,r,i)}emplace(e,t,r,i,n){let a=e*4;return this.float32[a+0]=t,this.float32[a+1]=r,this.float32[a+2]=i,this.float32[a+3]=n,e}};Tie.prototype.bytesPerElement=16,Gi("StructArrayLayout4f16",Tie);Ait=class extends AC{get anchorPointX(){return this._structArray.int16[this._pos2+0]}get anchorPointY(){return this._structArray.int16[this._pos2+1]}get x1(){return this._structArray.int16[this._pos2+2]}get y1(){return this._structArray.int16[this._pos2+3]}get x2(){return this._structArray.int16[this._pos2+4]}get y2(){return this._structArray.int16[this._pos2+5]}get featureIndex(){return this._structArray.uint32[this._pos4+3]}get sourceLayerIndex(){return this._structArray.uint16[this._pos2+8]}get bucketIndex(){return this._structArray.uint16[this._pos2+9]}get anchorPoint(){return new tr(this.anchorPointX,this.anchorPointY)}};Ait.prototype.size=20;One=class extends die{get(e){return new Ait(this,e)}};Gi("CollisionBoxArray",One);Mit=class extends AC{get anchorX(){return this._structArray.int16[this._pos2+0]}get anchorY(){return this._structArray.int16[this._pos2+1]}get glyphStartIndex(){return this._structArray.uint16[this._pos2+2]}get numGlyphs(){return this._structArray.uint16[this._pos2+3]}get vertexStartIndex(){return this._structArray.uint32[this._pos4+2]}get lineStartIndex(){return this._structArray.uint32[this._pos4+3]}get lineLength(){return this._structArray.uint32[this._pos4+4]}get segment(){return this._structArray.uint16[this._pos2+10]}get lowerSize(){return this._structArray.uint16[this._pos2+11]}get upperSize(){return this._structArray.uint16[this._pos2+12]}get lineOffsetX(){return this._structArray.float32[this._pos4+7]}get lineOffsetY(){return this._structArray.float32[this._pos4+8]}get writingMode(){return this._structArray.uint8[this._pos1+36]}get placedOrientation(){return this._structArray.uint8[this._pos1+37]}set placedOrientation(e){this._structArray.uint8[this._pos1+37]=e}get hidden(){return this._structArray.uint8[this._pos1+38]}set hidden(e){this._structArray.uint8[this._pos1+38]=e}get crossTileID(){return this._structArray.uint32[this._pos4+10]}set crossTileID(e){this._structArray.uint32[this._pos4+10]=e}get associatedIconIndex(){return this._structArray.int16[this._pos2+22]}get heightOffset(){return this._structArray.float32[this._pos4+12]}};Mit.prototype.size=52;Sit=class extends mie{get(e){return new Mit(this,e)}};Gi("PlacedSymbolArray",Sit);Eit=class extends AC{get anchorX(){return this._structArray.int16[this._pos2+0]}get anchorY(){return this._structArray.int16[this._pos2+1]}get rightJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+2]}get centerJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+3]}get leftJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+4]}get verticalPlacedTextSymbolIndex(){return this._structArray.int16[this._pos2+5]}get placedIconSymbolIndex(){return this._structArray.int16[this._pos2+6]}get verticalPlacedIconSymbolIndex(){return this._structArray.int16[this._pos2+7]}get key(){return this._structArray.uint16[this._pos2+8]}get textBoxStartIndex(){return this._structArray.uint16[this._pos2+9]}get textBoxEndIndex(){return this._structArray.uint16[this._pos2+10]}get verticalTextBoxStartIndex(){return this._structArray.uint16[this._pos2+11]}get verticalTextBoxEndIndex(){return this._structArray.uint16[this._pos2+12]}get iconBoxStartIndex(){return this._structArray.uint16[this._pos2+13]}get iconBoxEndIndex(){return this._structArray.uint16[this._pos2+14]}get verticalIconBoxStartIndex(){return this._structArray.uint16[this._pos2+15]}get verticalIconBoxEndIndex(){return this._structArray.uint16[this._pos2+16]}get featureIndex(){return this._structArray.uint16[this._pos2+17]}get numHorizontalGlyphVertices(){return this._structArray.uint16[this._pos2+18]}get numVerticalGlyphVertices(){return this._structArray.uint16[this._pos2+19]}get numIconVertices(){return this._structArray.uint16[this._pos2+20]}get numVerticalIconVertices(){return this._structArray.uint16[this._pos2+21]}get useRuntimeCollisionCircles(){return this._structArray.uint16[this._pos2+22]}get crossTileID(){return this._structArray.uint32[this._pos4+12]}set crossTileID(e){this._structArray.uint32[this._pos4+12]=e}get textBoxScale(){return this._structArray.float32[this._pos4+13]}get collisionCircleDiameter(){return this._structArray.float32[this._pos4+14]}get textAnchorOffsetStartIndex(){return this._structArray.uint16[this._pos2+30]}get textAnchorOffsetEndIndex(){return this._structArray.uint16[this._pos2+31]}get heightOffset(){return this._structArray.float32[this._pos4+16]}};Eit.prototype.size=68;kit=class extends yie{get(e){return new Eit(this,e)}};Gi("SymbolInstanceArray",kit);Cit=class extends EB{getoffsetX(e){return this.float32[e*1+0]}};Gi("GlyphOffsetArray",Cit);Dit=class extends MB{getx(e){return this.int16[e*3+0]}gety(e){return this.int16[e*3+1]}gettileUnitDistanceFromAnchor(e){return this.int16[e*3+2]}};Gi("SymbolLineVertexArray",Dit);Fit=class extends AC{get textAnchor(){return this._structArray.uint16[this._pos2+0]}get textOffset0(){return this._structArray.float32[this._pos4+1]}get textOffset1(){return this._structArray.float32[this._pos4+2]}};Fit.prototype.size=12;Lit=class extends xie{get(e){return new Fit(this,e)}};Gi("TextAnchorOffsetArray",Lit);Pit=class extends AC{get featureIndex(){return this._structArray.uint32[this._pos4+0]}get sourceLayerIndex(){return this._structArray.uint16[this._pos2+2]}get bucketIndex(){return this._structArray.uint16[this._pos2+3]}};Pit.prototype.size=8;Iit=class extends bie{get(e){return new Pit(this,e)}};Gi("FeatureIndexArray",Iit);Nm=class extends tC{},Rit=class extends MB{},zit=class extends aie{},Gxr=class extends tC{},Hxr=class extends tC{},jxr=class extends oie{},$xr=class extends sie{},Wxr=class extends rC{},x6=class extends lie{},net=class extends uie{},Yxr=class extends cie{},Xxr=class extends fie{},Zxr=class extends hie{},aet=class extends pie{},Bit=class extends vie{},Kxr=class extends gie{},qit=class extends SB{},Fv=class extends SB{},Aie=class extends _ie{},Oit=class extends wie{},Mie=ll([{name:"a_pos",components:2,type:"Int16"}],4),Jxr=Mie.members;Mie.size,Mie.alignment;Xs=class A6{constructor(t=[]){this._forceNewSegmentOnNextPrepare=!1,this.segments=t}prepareSegment(t,r,i,n){let a=this.segments[this.segments.length-1];return t>A6.MAX_VERTEX_ARRAY_LENGTH&&Fa(`Max vertices per segment is ${A6.MAX_VERTEX_ARRAY_LENGTH}: bucket requested ${t}. Consider using the \`fillLargeMeshArrays\` function if you require meshes with more than ${A6.MAX_VERTEX_ARRAY_LENGTH} vertices.`),this._forceNewSegmentOnNextPrepare||!a||a.vertexLength+t>A6.MAX_VERTEX_ARRAY_LENGTH||a.sortKey!==n?this.createNewSegment(r,i,n):a}createNewSegment(t,r,i){let n={vertexOffset:t.length,primitiveOffset:r.length,vertexLength:0,primitiveLength:0,vaos:{}};return i!==void 0&&(n.sortKey=i),this._forceNewSegmentOnNextPrepare=!1,this.segments.push(n),n}getOrCreateLatestSegment(t,r,i){return this.prepareSegment(0,t,r,i)}forceNewSegmentOnNextPrepare(){this._forceNewSegmentOnNextPrepare=!0}get(){return this.segments}destroy(){for(let t of this.segments)for(let r in t.vaos)t.vaos[r].destroy()}static simpleSegment(t,r,i,n){return new A6([{vertexOffset:t,primitiveOffset:r,vertexLength:i,primitiveLength:n,vaos:{},sortKey:0}])}};Xs.MAX_VERTEX_ARRAY_LENGTH=2**16-1,Gi("SegmentVector",Xs);Qxr=ll([{name:"a_pattern_from",components:4,type:"Uint16"},{name:"a_pattern_to",components:4,type:"Uint16"},{name:"a_pixel_ratio_from",components:1,type:"Uint16"},{name:"a_pixel_ratio_to",components:1,type:"Uint16"}]),ebr=ll([{name:"a_dasharray_from",components:4,type:"Uint16"},{name:"a_dasharray_to",components:4,type:"Uint16"}]),tbr=tne(((e,t)=>{function r(i,n){for(var a=i.length&3,o=i.length-a,s=n,l,u=3432918353,c=461845907,f,h=0;h>>16)*u&65535)<<16)&4294967295,f=f<<15|f>>>17,f=(f&65535)*c+(((f>>>16)*c&65535)<<16)&4294967295,s^=f,s=s<<13|s>>>19,l=(s&65535)*5+(((s>>>16)*5&65535)<<16)&4294967295,s=(l&65535)+27492+(((l>>>16)+58964&65535)<<16);switch(f=0,a){case 3:f^=(i.charCodeAt(h+2)&255)<<16;case 2:f^=(i.charCodeAt(h+1)&255)<<8;case 1:f^=i.charCodeAt(h)&255,f=(f&65535)*u+(((f>>>16)*u&65535)<<16)&4294967295,f=f<<15|f>>>17,f=(f&65535)*c+(((f>>>16)*c&65535)<<16)&4294967295,s^=f}return s^=i.length,s^=s>>>16,s=(s&65535)*2246822507+(((s>>>16)*2246822507&65535)<<16)&4294967295,s^=s>>>13,s=(s&65535)*3266489909+(((s>>>16)*3266489909&65535)<<16)&4294967295,s^=s>>>16,s>>>0}t!==void 0&&(t.exports=r)})),rbr=tne(((e,t)=>{function r(i,n){for(var a=i.length,o=n^a,s=0,l;a>=4;)l=i.charCodeAt(s)&255|(i.charCodeAt(++s)&255)<<8|(i.charCodeAt(++s)&255)<<16|(i.charCodeAt(++s)&255)<<24,l=(l&65535)*1540483477+(((l>>>16)*1540483477&65535)<<16),l^=l>>>24,l=(l&65535)*1540483477+(((l>>>16)*1540483477&65535)<<16),o=(o&65535)*1540483477+(((o>>>16)*1540483477&65535)<<16)^l,a-=4,++s;switch(a){case 3:o^=(i.charCodeAt(s+2)&255)<<16;case 2:o^=(i.charCodeAt(s+1)&255)<<8;case 1:o^=i.charCodeAt(s)&255,o=(o&65535)*1540483477+(((o>>>16)*1540483477&65535)<<16)}return o^=o>>>13,o=(o&65535)*1540483477+(((o>>>16)*1540483477&65535)<<16),o^=o>>>15,o>>>0}t.exports=r})),kB=gyr(tne(((e,t)=>{var r=tbr(),i=rbr();t.exports=r,t.exports.murmur3=r,t.exports.murmur2=i}))(),1),Nit=class Uit{constructor(){this.ids=[],this.positions=[],this.indexed=!1}add(t,r,i,n){this.ids.push(set(t)),this.positions.push(r,i,n)}getPositions(t){if(!this.indexed)throw Error("Trying to get index, but feature positions are not indexed");let r=set(t),i=0,n=this.ids.length-1;for(;i>1;this.ids[o]>=r?n=o:i=o+1}let a=[];for(;this.ids[i]===r;){let o=this.positions[3*i],s=this.positions[3*i+1],l=this.positions[3*i+2];a.push({index:o,start:s,end:l}),i++}return a}static serialize(t,r){let i=new Float64Array(t.ids),n=new Uint32Array(t.positions);return Sie(i,n,0,i.length-1),r&&r.push(i.buffer,n.buffer),{ids:i,positions:n}}static deserialize(t){let r=new Uit;return r.ids=t.ids,r.positions=t.positions,r.indexed=!0,r}};Gi("FeaturePositionMap",Nit);Um=class{constructor(e,t){this.gl=e.gl,this.location=t}},Mn=class extends Um{constructor(e,t){super(e,t),this.current=0}set(e){this.current!==e&&(this.current=e,this.gl.uniform1i(this.location,e))}},Oi=class extends Um{constructor(e,t){super(e,t),this.current=0}set(e){this.current!==e&&(this.current=e,this.gl.uniform1f(this.location,e))}},ya=class extends Um{constructor(e,t){super(e,t),this.current=[0,0]}set(e){(e[0]!==this.current[0]||e[1]!==this.current[1])&&(this.current=e,this.gl.uniform2f(this.location,e[0],e[1]))}},Nf=class extends Um{constructor(e,t){super(e,t),this.current=[0,0,0]}set(e){(e[0]!==this.current[0]||e[1]!==this.current[1]||e[2]!==this.current[2])&&(this.current=e,this.gl.uniform3f(this.location,e[0],e[1],e[2]))}},K6=class extends Um{constructor(e,t){super(e,t),this.current=[0,0,0,0]}set(e){(e[0]!==this.current[0]||e[1]!==this.current[1]||e[2]!==this.current[2]||e[3]!==this.current[3])&&(this.current=e,this.gl.uniform4f(this.location,e[0],e[1],e[2],e[3]))}},Vm=class extends Um{constructor(e,t){super(e,t),this.current=na.transparent}set(e){(e.r!==this.current.r||e.g!==this.current.g||e.b!==this.current.b||e.a!==this.current.a)&&(this.current=e,this.gl.uniform4f(this.location,e.r,e.g,e.b,e.a))}},Nne=class extends Um{constructor(e,t){super(e,t),this.current=[]}set(e){if(e!=this.current){this.current=e;let t=new Float32Array(e.length*4);for(let r=0;r`u_${i}`),this.type=r}setUniform(e,t,r){e.set(r.constantOr(this.value))}getBinding(e,t,r){return this.type==="color"?new Vm(e,t):new Oi(e,t)}},Z_=class{constructor(e,t){this.uniformNames=t.map(r=>`u_${r}`),this.patternFrom=null,this.patternTo=null,this.pixelRatioFrom=1,this.pixelRatioTo=1}setConstantPatternPositions(e,t){this.pixelRatioFrom=t.pixelRatio,this.pixelRatioTo=e.pixelRatio,this.patternFrom=t.tlbr,this.patternTo=e.tlbr}setConstantDashPositions(e,t){this.dashTo=[0,e.y,e.height,e.width],this.dashFrom=[0,t.y,t.height,t.width]}setUniform(e,t,r,i){let n=null;i==="u_pattern_to"?n=this.patternTo:i==="u_pattern_from"?n=this.patternFrom:i==="u_dasharray_to"?n=this.dashTo:i==="u_dasharray_from"?n=this.dashFrom:i==="u_pixel_ratio_to"?n=this.pixelRatioTo:i==="u_pixel_ratio_from"&&(n=this.pixelRatioFrom),n!==null&&e.set(n)}getBinding(e,t,r){return r.startsWith("u_pattern")||r.startsWith("u_dasharray_")?new K6(e,t):new Oi(e,t)}},Cm=class{constructor(e,t,r,i){this.expression=e,this.type=r,this.maxValue=0,this.paintVertexAttributes=t.map(n=>({name:`a_${n}`,type:"Float32",components:r==="color"?2:1,offset:0})),this.paintVertexArray=new i}populatePaintArray(e,t,r){let i=this.paintVertexArray.length,n=this.expression.evaluate(new Io(0,r),t,{},r.canonical,[],r.formattedSection);this.paintVertexArray.resize(e),this._setPaintValue(i,e,n)}updatePaintArray(e,t,r,i,n){let a=this.expression.evaluate(new Io(0,n),r,i);this._setPaintValue(e,t,a)}_setPaintValue(e,t,r){if(this.type==="color"){let i=Eie(r);for(let n=e;n`u_${o}_t`),this.type=r,this.useIntegerZoom=i,this.zoom=n,this.maxValue=0,this.paintVertexAttributes=t.map(o=>({name:`a_${o}`,type:"Float32",components:r==="color"?4:2,offset:0})),this.paintVertexArray=new a}populatePaintArray(e,t,r){let i=this.expression.evaluate(new Io(this.zoom,r),t,{},r.canonical,[],r.formattedSection),n=this.expression.evaluate(new Io(this.zoom+1,r),t,{},r.canonical,[],r.formattedSection),a=this.paintVertexArray.length;this.paintVertexArray.resize(e),this._setPaintValue(a,e,i,n)}updatePaintArray(e,t,r,i,n){let a=this.expression.evaluate(new Io(this.zoom,n),r,i),o=this.expression.evaluate(new Io(this.zoom+1,n),r,i);this._setPaintValue(e,t,a,o)}_setPaintValue(e,t,r,i){if(this.type==="color"){let n=Eie(r),a=Eie(i);for(let o=e;o`#define HAS_UNIFORM_${i}`))}return e}getBinderAttributes(){let e=[];for(let t in this.binders){let r=this.binders[t];if(r instanceof Cm||r instanceof Tv)for(let i of r.paintVertexAttributes)e.push(i.name);else if(r instanceof tx){let i=r.getVertexAttributes();for(let n of i)e.push(n.name)}}return e}getBinderUniforms(){let e=[];for(let t in this.binders){let r=this.binders[t];if(r instanceof Rk||r instanceof Z_||r instanceof Tv)for(let i of r.uniformNames)e.push(i)}return e}getPaintVertexBuffers(){return this._buffers}getUniforms(e,t){let r=[];for(let i in this.binders){let n=this.binders[i];if(n instanceof Rk||n instanceof Z_||n instanceof Tv){for(let a of n.uniformNames)if(t[a]){let o=n.getBinding(e,t[a],a);r.push({name:a,property:i,binding:o})}}}return r}setUniforms(e,t,r,i){for(let{name:n,property:a,binding:o}of t)this.binders[a].setUniform(o,i,r.get(a),n)}updatePaintBuffers(e){this._buffers=[];for(let t in this.binders){let r=this.binders[t];if(e&&r instanceof tx){let i=e.fromScale===2?r.zoomInPaintVertexBuffer:r.zoomOutPaintVertexBuffer;i&&this._buffers.push(i)}else(r instanceof Cm||r instanceof Tv)&&r.paintVertexBuffer&&this._buffers.push(r.paintVertexBuffer)}}upload(e){for(let t in this.binders){let r=this.binders[t];(r instanceof Cm||r instanceof Tv||r instanceof tx)&&r.upload(e)}this.updatePaintBuffers()}destroy(){for(let e in this.binders){let t=this.binders[e];(t instanceof Cm||t instanceof Tv||t instanceof tx)&&t.destroy()}}},a3=class{constructor(e,t,r=()=>!0){this.programConfigurations={};for(let i of e)this.programConfigurations[i.id]=new Hit(i,t,r);this.needsUpload=!1,this._featureMap=new Nit,this._bufferOffset=0}populatePaintArrays(e,t,r,i){for(let n in this.programConfigurations)this.programConfigurations[n].populatePaintArrays(e,t,i);t.id!==void 0&&this._featureMap.add(t.id,r,this._bufferOffset,e),this._bufferOffset=e,this.needsUpload=!0}updatePaintArrays(e,t,r,i){for(let n of r)this.needsUpload=this.programConfigurations[n.id].updatePaintArrays(e,this._featureMap,t,n,i)||this.needsUpload}get(e){return this.programConfigurations[e]}upload(e){if(this.needsUpload){for(let t in this.programConfigurations)this.programConfigurations[t].upload(e);this.needsUpload=!1}}destroy(){for(let e in this.programConfigurations)this.programConfigurations[e].destroy()}};Gi("ConstantBinder",Rk),Gi("CrossFadedConstantBinder",Z_),Gi("SourceExpressionBinder",Cm),Gi("CrossFadedPatternBinder",Vit),Gi("CrossFadedDasharrayBinder",Git),Gi("CompositeExpressionBinder",Tv),Gi("ProgramConfiguration",Hit,{omit:["_buffers"]}),Gi("ProgramConfigurationSet",a3);kie=2**14-1,cet=-kie-1;fet=-32768;Vne=class{constructor(e){this.zoom=e.zoom,this.overscaling=e.overscaling,this.layers=e.layers,this.layerIds=this.layers.map(t=>t.id),this.index=e.index,this.hasDependencies=!1,this.layoutVertexArray=new Gxr,this.indexArray=new Fv,this.segments=new Xs,this.programConfigurations=new a3(e.layers,e.zoom),this.stateDependentLayerIds=this.layers.filter(t=>t.isStateDependent()).map(t=>t.id)}populate(e,t,r){let i=this.layers[0],n=[],a=null,o=!1,s=i.type==="heatmap";if(i.type==="circle"){let f=i;a=f.layout.get("circle-sort-key"),o=!a.isConstant(),s||(s=f.paint.get("circle-pitch-alignment")==="map")}let l=s?t.subdivisionGranularity.circle:1,u=new Io(this.zoom),c=this.layers[0]._featureFilter.needGeometry;for(let{feature:f,id:h,index:p,sourceLayerIndex:d}of e){let v=px(f,c);if(!this.layers[0]._featureFilter.filter(u,v,r))continue;let m=o?a.evaluate(v,{},r):void 0,g={id:h,properties:f.properties,type:f.type,sourceLayerIndex:d,index:p,geometry:c?v.geometry:h3(f),patterns:{},sortKey:m};n.push(g)}o&&n.sort((f,h)=>f.sortKey-h.sortKey);for(let f of n){let{geometry:h,index:p,sourceLayerIndex:d}=f,v=e[p].feature;this.addFeature(f,h,p,r,l),t.featureIndex.insert(v,h,p,d,this.index)}}update(e,t,r){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(e,t,this.stateDependentLayers,{imagePositions:r})}addFeatures(e){}isEmpty(){return this.layoutVertexArray.length===0}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(e){this.uploaded||(this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,Jxr),this.indexBuffer=e.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(e),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())}addFeature(e,t,r,i,n=1){let a;switch(n){case 1:a=[0,7];break;case 3:a=[0,2,5,7];break;case 5:a=[0,1,3,4,6,7];break;case 7:a=[0,1,2,3,4,5,6,7];break;default:throw Error(`Invalid circle bucket granularity: ${n}; valid values are 1, 3, 5, 7.`)}let o=a.length;for(let s of t)for(let l of s){let u=l.x,c=l.y;if(u<0||u>=8192||c<0||c>=8192)continue;let f=this.segments.prepareSegment(o*o,this.layoutVertexArray,this.indexArray,e.sortKey),h=f.vertexLength;for(let p=0;pdet||(det=new hc({"circle-sort-key":new En(_r.layout_circle["circle-sort-key"],"circle-sort-key")})),bbr=()=>pet||(pet=new hc({"circle-radius":new En(_r.paint_circle["circle-radius"],"circle-radius"),"circle-color":new En(_r.paint_circle["circle-color"],"circle-color"),"circle-blur":new En(_r.paint_circle["circle-blur"],"circle-blur"),"circle-opacity":new En(_r.paint_circle["circle-opacity"],"circle-opacity"),"circle-translate":new Pi(_r.paint_circle["circle-translate"],"circle-translate"),"circle-translate-anchor":new Pi(_r.paint_circle["circle-translate-anchor"],"circle-translate-anchor"),"circle-pitch-scale":new Pi(_r.paint_circle["circle-pitch-scale"],"circle-pitch-scale"),"circle-pitch-alignment":new Pi(_r.paint_circle["circle-pitch-alignment"],"circle-pitch-alignment"),"circle-stroke-width":new En(_r.paint_circle["circle-stroke-width"],"circle-stroke-width"),"circle-stroke-color":new En(_r.paint_circle["circle-stroke-color"],"circle-stroke-color"),"circle-stroke-opacity":new En(_r.paint_circle["circle-stroke-opacity"],"circle-stroke-opacity")})),_br={get paint(){return bbr()},get layout(){return xbr()}},Yit=e=>e.type==="circle",wbr=class extends Dv{constructor(e,t){super(e,_br,t)}createBucket(e){return new Vne(e)}queryRadius(e){let t=e;return D6("circle-radius",this,t)+D6("circle-stroke-width",this,t)+vq(this.paint.get("circle-translate"))}queryIntersectsFeature({queryGeometry:e,feature:t,featureState:r,geometry:i,transform:n,pixelsToTileUnits:a,unwrappedTileID:o,getElevation:s}){let l=gq(e,this.paint.get("circle-translate"),this.paint.get("circle-translate-anchor"),-n.bearingInRadians,a),u=this.paint.get("circle-radius").evaluate(t,r)+this.paint.get("circle-stroke-width").evaluate(t,r),c=this.paint.get("circle-pitch-scale"),f=this.paint.get("circle-pitch-alignment"),h,p;return f==="map"?(h=l,p=u*a):(h=ybr(l,n,o,s),p=u),Wit({queryGeometry:h,size:p,transform:n,unwrappedTileID:o,getElevation:s,pitchAlignment:f,pitchScale:c},i)}},Xit=class extends Vne{};Gi("HeatmapBucket",Xit,{omit:["layers"]});Tbr=()=>vet||(vet=new hc({"heatmap-radius":new En(_r.paint_heatmap["heatmap-radius"],"heatmap-radius"),"heatmap-weight":new En(_r.paint_heatmap["heatmap-weight"],"heatmap-weight"),"heatmap-intensity":new Pi(_r.paint_heatmap["heatmap-intensity"],"heatmap-intensity"),"heatmap-color":new hq(_r.paint_heatmap["heatmap-color"],"heatmap-color"),"heatmap-opacity":new Pi(_r.paint_heatmap["heatmap-opacity"],"heatmap-opacity")})),Abr={get paint(){return Tbr()}};mq=class Kit{constructor(t,r){$ne(this,t,1,r)}resize(t){Zit(this,t,1)}clone(){return new Kit({width:this.width,height:this.height},new Uint8Array(this.data))}static copy(t,r,i,n,a){Wne(t,r,i,n,a,1)}},Ss=class Jit{constructor(t,r){$ne(this,t,4,r)}resize(t){Zit(this,t,4)}replace(t,r){r?this.data.set(t):this.data=t instanceof Uint8ClampedArray?new Uint8Array(t.buffer):t}clone(){return new Jit({width:this.width,height:this.height},new Uint8Array(this.data))}static copy(t,r,i,n,a){Wne(t,r,i,n,a,4)}setPixel(t,r,i){let n=(t*this.width+r)*4;this.data[n+0]=Math.round(i.r*255/i.a),this.data[n+1]=Math.round(i.g*255/i.a),this.data[n+2]=Math.round(i.b*255/i.a),this.data[n+3]=Math.round(i.a*255)}};Gi("AlphaImage",mq),Gi("RGBAImage",Ss);MC="big-fb",Qit=e=>e.type==="heatmap",Mbr=class extends Dv{createBucket(e){return new Xit(e)}constructor(e,t){super(e,Abr,t),this.heatmapFbos=new Map,this._updateColorRamp()}_handleSpecialPaintPropertyUpdate(e){e==="heatmap-color"&&this._updateColorRamp()}_updateColorRamp(){let e=this._transitionablePaint._values["heatmap-color"].value.expression;this.colorRamp=Yne({expression:e,evaluationKey:"heatmapDensity",image:this.colorRamp}),this.colorRampTexture=null}resize(){this.heatmapFbos.has("big-fb")&&this.heatmapFbos.delete(MC)}queryRadius(e){return D6("heatmap-radius",this,e)}queryIntersectsFeature({queryGeometry:e,feature:t,featureState:r,geometry:i,transform:n,pixelsToTileUnits:a,unwrappedTileID:o,getElevation:s}){return Wit({queryGeometry:e,size:this.paint.get("heatmap-radius").evaluate(t,r)*a,transform:n,unwrappedTileID:o,getElevation:s},i)}hasOffscreenPass(){return this.paint.get("heatmap-opacity")!==0&&!this.isHidden()}},Sbr=()=>get||(get=new hc({"hillshade-illumination-direction":new Pi(_r.paint_hillshade["hillshade-illumination-direction"],"hillshade-illumination-direction"),"hillshade-illumination-altitude":new Pi(_r.paint_hillshade["hillshade-illumination-altitude"],"hillshade-illumination-altitude"),"hillshade-illumination-anchor":new Pi(_r.paint_hillshade["hillshade-illumination-anchor"],"hillshade-illumination-anchor"),"hillshade-exaggeration":new Pi(_r.paint_hillshade["hillshade-exaggeration"],"hillshade-exaggeration"),"hillshade-shadow-color":new Pi(_r.paint_hillshade["hillshade-shadow-color"],"hillshade-shadow-color"),"hillshade-highlight-color":new Pi(_r.paint_hillshade["hillshade-highlight-color"],"hillshade-highlight-color"),"hillshade-accent-color":new Pi(_r.paint_hillshade["hillshade-accent-color"],"hillshade-accent-color"),"hillshade-method":new Pi(_r.paint_hillshade["hillshade-method"],"hillshade-method"),resampling:new Pi(_r.paint_hillshade.resampling,"resampling")})),Ebr={get paint(){return Sbr()}},ent=e=>e.type==="hillshade",kbr=class extends Dv{constructor(e,t){super(e,Ebr,t),this.recalculate({zoom:0,zoomHistory:{}},void 0)}getIlluminationProperties(){let e=this.paint.get("hillshade-illumination-direction").values,t=this.paint.get("hillshade-illumination-altitude").values,r=this.paint.get("hillshade-highlight-color").values,i=this.paint.get("hillshade-shadow-color").values,n=Math.max(e.length,t.length,r.length,i.length);e=e.concat(Array(n-e.length).fill(e.at(-1))),t=t.concat(Array(n-t.length).fill(t.at(-1))),r=r.concat(Array(n-r.length).fill(r.at(-1))),i=i.concat(Array(n-i.length).fill(i.at(-1)));let a=t.map(Bs);return{directionRadians:e.map(Bs),altitudeRadians:a,shadowColor:i,highlightColor:r}}hasOffscreenPass(){return this.paint.get("hillshade-exaggeration")!==0&&!this.isHidden()}},Cbr=()=>met||(met=new hc({"color-relief-opacity":new Pi(_r["paint_color-relief"]["color-relief-opacity"],"color-relief-opacity"),"color-relief-color":new hq(_r["paint_color-relief"]["color-relief-color"],"color-relief-color"),resampling:new Pi(_r["paint_color-relief"].resampling,"resampling")})),Dbr={get paint(){return Cbr()}};wu=class{constructor(e,t,r,i){this.context=e,this.format=r,this.texture=e.gl.createTexture(),this._ownedHandle=this.texture,this.update(t,i)}update(e,t,r){var u;let{width:i,height:n}=e,a=(((u=this.size)==null?void 0:u[0])!==i||this.size[1]!==n)&&!r,{context:o}=this,{gl:s}=o;this.useMipmap=!!(t!=null&&t.useMipmap),a&&this.size&&this.format===s.RGBA&&(s.deleteTexture(this.texture),this.texture=s.createTexture(),this._ownedHandle=this.texture,this.magFilter=void 0,this.minFilter=void 0,this.wrap=void 0),s.bindTexture(s.TEXTURE_2D,this.texture),o.pixelStoreUnpackFlipY.set(!1),o.pixelStoreUnpack.set(1);let l=this.format===s.RGBA&&(t==null?void 0:t.premultiply)!==!1;if(a)if(this.size=[i,n],this.format===s.RGBA&&i>0&&n>0){let c=this.useMipmap?Math.floor(Math.log2(Math.max(i,n)))+1:1;if(s.texStorage2D(s.TEXTURE_2D,c,s.RGBA8,i,n),tB(e)){o.pixelStoreUnpackPremultiplyAlpha.set(!1);let{data:f}=e;l&&f&&(f=qre(f)),f&&s.texSubImage2D(s.TEXTURE_2D,0,0,0,i,n,s.RGBA,s.UNSIGNED_BYTE,f)}else o.pixelStoreUnpackPremultiplyAlpha.set(l),s.texSubImage2D(s.TEXTURE_2D,0,0,0,s.RGBA,s.UNSIGNED_BYTE,e)}else tB(e)?(o.pixelStoreUnpackPremultiplyAlpha.set(!1),this._uploadRawData(e,l,i,n,s)):(o.pixelStoreUnpackPremultiplyAlpha.set(l),this._uploadDomImage(e,s));else{let{x:c,y:f}=r||{x:0,y:0};tB(e)?(o.pixelStoreUnpackPremultiplyAlpha.set(!1),this._updateRawData(e,l,c,f,i,n,s)):(o.pixelStoreUnpackPremultiplyAlpha.set(l),this._updateDomImage(e,c,f,s))}this.useMipmap&&!(tB(e)&&e.data===null)&&s.generateMipmap(s.TEXTURE_2D),o.pixelStoreUnpackFlipY.setDefault(),o.pixelStoreUnpack.setDefault(),o.pixelStoreUnpackPremultiplyAlpha.setDefault()}_uploadDomImage(e,t){t.texImage2D(t.TEXTURE_2D,0,this.format,this.format,t.UNSIGNED_BYTE,e)}_uploadRawData(e,t,r,i,n){let{data:a}=e;t&&a&&(a=qre(a)),n.texImage2D(n.TEXTURE_2D,0,this.format,r,i,0,this.format,n.UNSIGNED_BYTE,a)}_updateDomImage(e,t,r,i){i.texSubImage2D(i.TEXTURE_2D,0,t,r,i.RGBA,i.UNSIGNED_BYTE,e)}_updateRawData(e,t,r,i,n,a,o){let{data:s}=e;t&&s&&(s=qre(s)),o.texSubImage2D(o.TEXTURE_2D,0,r,i,n,a,o.RGBA,o.UNSIGNED_BYTE,s)}bind(e,t,r){let{context:i}=this,{gl:n}=i;this.texture!==this._ownedHandle&&(this.texture=this._ownedHandle),n.bindTexture(n.TEXTURE_2D,this.texture),(r===n.LINEAR_MIPMAP_NEAREST||r===n.LINEAR_MIPMAP_LINEAR)&&!this.useMipmap&&(r=n.LINEAR);let a=r||e;e!==this.magFilter&&(n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MAG_FILTER,e),this.magFilter=e),a!==this.minFilter&&(n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MIN_FILTER,a),this.minFilter=a),t!==this.wrap&&(n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_S,t),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_T,t),this.wrap=t)}generateMipmap(){if(!this.useMipmap)return;let{gl:e}=this.context;e.bindTexture(e.TEXTURE_2D,this.texture),e.generateMipmap(e.TEXTURE_2D)}destroy(){let{gl:e}=this.context;e.deleteTexture(this.texture),this.texture=null,this._ownedHandle=null}},Fbr=(Lm=class{constructor(t,r,i,n=1,a=1,o=1,s=0){if(this.uid=t,r.height!==r.width)throw RangeError("DEM tiles must be square");if(i&&!["mapbox","terrarium","custom"].includes(i)){Fa(`"${i}" is not a valid encoding type. Valid types include "mapbox", "terrarium" and "custom".`);return}this.stride=r.height;let l=this.dim=r.height-4;switch(this.data=new Uint32Array(r.data.buffer),Lm.byteViewCache.set(this,new Uint8Array(this.data.buffer)),i){case"terrarium":this.redFactor=256,this.greenFactor=1,this.blueFactor=1/256,this.baseShift=32768;break;case"custom":this.redFactor=n,this.greenFactor=a,this.blueFactor=o,this.baseShift=s;break;default:this.redFactor=6553.6,this.greenFactor=25.6,this.blueFactor=.1,this.baseShift=1e4}for(let c=-2;c=l)&&this.data.copyWithin(this._idx(0,c),f,f+l),this.data.fill(this.data[f],this._idx(-2,c),this._idx(0,c)),this.data.fill(this.data[f+l-1],this._idx(l,c),this._idx(l+1,c)+1)}let u=this._getByteView();this.min=2**53-1,this.max=-(2**53-1);for(let c=0;cthis.max&&(this.max=p),p=this.dim||n<-1||n>=this.dim)throw RangeError(`Out of range source coordinates for DEM data. x: ${t}, y: ${r}, dim: ${this.dim}`);let a=this._getByteView(),o=((n+2)*this.stride+i+2)*4,s=this.stride*4,l=t-i,u=r-n,c=this._unpackAtIndex(a,o),f=this._unpackAtIndex(a,o+4),h=this._unpackAtIndex(a,o+s),p=this._unpackAtIndex(a,o+s+4);return c*(1-l)*(1-u)+f*l*(1-u)+h*(1-l)*u+p*l*u}getUnpackVector(){return[this.redFactor,this.greenFactor,this.blueFactor,this.baseShift]}_idx(t,r){if(t<-2||t>=this.dim+2||r<-2||r>=this.dim+2)throw RangeError(`Out of range source coordinates for DEM data. x: ${t}, y: ${r}, dim: ${this.dim}`);return(r+2)*this.stride+(t+2)}unpack(t,r,i){return t*this.redFactor+r*this.greenFactor+i*this.blueFactor-this.baseShift}pack(t){return tnt(t,this.getUnpackVector())}getPixels(){return new Ss({width:this.stride,height:this.stride},this._getByteView())}backfillBorder(t,r,i){if(this.dim!==t.dim)throw Error("dem dimension mismatch");let n=r*this.dim,a=r*this.dim+this.dim,o=i*this.dim,s=i*this.dim+this.dim;switch(r){case-1:n=a-2;break;case 1:a=n+2}switch(i){case-1:o=s-2;break;case 1:s=o+2}let l=-r*this.dim,u=-i*this.dim;for(let c=o;ce.type==="color-relief",Lbr=class extends Dv{constructor(e,t){super(e,Dbr,t)}_createColorRamp(e){let t={elevationStops:[],colorStops:[]},r=this._transitionablePaint._values["color-relief-color"].value.expression;if(r instanceof Kk&&r._styleExpression.expression instanceof np){this.colorRampExpression=r;let a=r._styleExpression.expression;t.elevationStops=a.labels,t.colorStops=[];for(let o of t.elevationStops)t.colorStops.push(a.evaluate({globals:{elevation:o}}))}if(t.elevationStops.length<1&&(t.elevationStops=[0],t.colorStops=[na.transparent]),t.elevationStops.length<2&&(t.elevationStops.push(t.elevationStops[0]+1),t.colorStops.push(t.colorStops[0])),t.elevationStops.length<=e)return t;let i={elevationStops:[],colorStops:[]},n=(t.elevationStops.length-1)/(e-1);for(let a=0;ae)throw Error("Min granularity must not be greater than base granularity.");this._baseZoomGranularity=e,this._minGranularity=t}getGranularityForZoomLevel(e){let t=1<32767||t>32767)throw Error("Vertex coordinates are out of signed 16 bit integer range.");let r=Math.round(e)|0,i=Math.round(t)|0,n=this._getKey(r,i),a=this._vertexDictionary.get(n);if(a!==void 0)return a;let o=this._vertexBuffer.length/2;return this._vertexDictionary.set(n,o),this._vertexBuffer.push(r,i),o}_subdivideTrianglesScanline(e,t){if(this._granularity<2)return r_r(this._vertexBuffer,t_r(e,t));let r=[],i=e.length;for(let n=0;n=1||b<=0)||m&&(ln)){c>=i&&c<=n&&a.push(r[(o+1)%3]);continue}if(!m&&_>0){let T=s+p*_,A=l+d*_;a.push(this._vertexToIndex(T,A))}let S=s+p*Math.max(_,0),x=s+p*Math.min(b,1);if(v||this._generateIntraEdgeVertices(a,s,l,u,c,S,x),!m&&b<1){let T=s+p*b,A=l+d*b;a.push(this._vertexToIndex(T,A))}(m||c>=i&&c<=n)&&a.push(r[(o+1)%3]),!m&&(c<=i||c>=n)&&this._generateInterEdgeVertices(a,s,l,u,c,f,h,x,i,n)}return a}_generateIntraEdgeVertices(e,t,r,i,n,a,o){let s=i-t,l=n-r,u=l===0,c=u?Math.min(t,i):Math.min(a,o),f=u?Math.max(t,i):Math.max(a,o),h=Math.floor(c/this._granularityCellSize)+1,p=Math.ceil(f/this._granularityCellSize)-1;if(u?t=h;d--){let v=d*this._granularityCellSize,m=r+l*(v-t)/s;e.push(this._vertexToIndex(v,m))}}_generateInterEdgeVertices(e,t,r,i,n,a,o,s,l,u){let c=n-r,f=a-i,h=o-n,p=(l-n)/h,d=(u-n)/h,v=Math.min(p,d),m=Math.max(p,d),g=i+f*v,w=Math.floor(Math.min(g,s)/this._granularityCellSize)+1,_=Math.ceil(Math.max(g,s)/this._granularityCellSize)-1,b=s=1||m<=0){let T=t-a,A=r-o,y=(l-o)/A,E=(u-o)/A,M=a+T*Math.min(y,E);w=Math.floor(Math.min(M,s)/this._granularityCellSize)+1,_=Math.ceil(Math.max(M,s)/this._granularityCellSize)-1,b=s0?u:l;if(b)for(let T=w;T<=_;T++){let A=T*this._granularityCellSize;e.push(this._vertexToIndex(A,x))}else for(let T=_;T>=w;T--){let A=T*this._granularityCellSize;e.push(this._vertexToIndex(A,x))}}_generateOutline(e,t){let r=[],i=0;for(let n of e){let a=this._granularity<2?this._ringPathIndices(n,i,t):this._pointArrayToIndices(J_(n,this._granularity,!0));i+=n.length;let o=[];for(let s=1;s=2&&lnt(e)&&i.push(i[0]),i}_handlePoles(e){let t=!1,r=!1;this._canonical&&(this._canonical.y===0&&(t=!0),this._canonical.y===(1<n==(a===-32768)?(e.push(r),e.push(t),e.push(this._vertexToIndex(i,a)),e.push(this._vertexToIndex(n,a)),e.push(r),e.push(this._vertexToIndex(i,a))):(e.push(t),e.push(r),e.push(this._vertexToIndex(i,a)),e.push(r),e.push(this._vertexToIndex(n,a)),e.push(this._vertexToIndex(i,a)))}_fillPoles(e,t,r){let i=this._vertexBuffer,n=Br,a=e.length;for(let o=2;o=2&&((s=this._canonical)==null?void 0:s.z)===0&&(a=this._removeTrianglesOutsideTileX(a),o=o.map(l=>this._removeLinesOutsideTileX(l))),{verticesFlattened:this._vertexBuffer,indicesTriangles:a,indicesLineList:o}}_vertexOutsideTileX(e){let t=this._vertexBuffer[e*2];return t<0||t>8192}_removeTrianglesOutsideTileX(e){let t=[];for(let r=0;rt.id),this.index=e.index,this.hasDependencies=!1,this.sdfPatterns={},this.patternFeatures=[],this.layoutVertexArray=new Hxr,this.indexArray=new Fv,this.indexArray2=new Aie,this.programConfigurations=new a3(e.layers,e.zoom),this.segments=new Xs,this.segments2=new Xs,this.stateDependentLayerIds=this.layers.filter(t=>t.isStateDependent()).map(t=>t.id)}populate(e,t,r){this.hasDependencies=CB("fill",this.layers,t);let i=this.layers[0].layout.get("fill-sort-key"),n=!i.isConstant(),a=[],o=new Io(this.zoom),s=this.layers[0]._featureFilter.needGeometry;for(let{feature:l,id:u,index:c,sourceLayerIndex:f}of e){let h=px(l,s);if(!this.layers[0]._featureFilter.filter(o,h,r))continue;let p=n?i.evaluate(h,{},r,t.availableImages):void 0,d={id:u,properties:l.properties,type:l.type,sourceLayerIndex:f,index:c,geometry:s?h.geometry:h3(l),patterns:{},sortKey:p};a.push(d)}n&&a.sort((l,u)=>l.sortKey-u.sortKey);for(let l of a){let{geometry:u,index:c,sourceLayerIndex:f}=l;if(this.hasDependencies){let p=Xne("fill",this.layers,l,{zoom:this.zoom},t);this.patternFeatures.push(p)}else this.addFeature(l,u,c,r,{},t.subdivisionGranularity);let h=e[c].feature;t.featureIndex.insert(h,u,c,f,this.index)}}update(e,t,r){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(e,t,this.stateDependentLayers,{imagePositions:r})}addFeatures({options:e,canonical:t,patternPositions:r,patternMap:i}){this.detectSdfPatterns(i);for(let n of this.patternFeatures)this.addFeature(n,n.geometry,n.index,t,r,e.subdivisionGranularity)}detectSdfPatterns(e){for(let t of this.patternFeatures)for(let r in t.patterns){let i=t.patterns[r];this.recordSdfPattern(r,e[i.min]),this.recordSdfPattern(r,e[i.mid]),this.recordSdfPattern(r,e[i.max])}for(let t of this.layers){let r=t.paint.get("fill-pattern").constantOr(null);r&&(this.recordSdfPattern(t.id,e[r.from.toString()]),this.recordSdfPattern(t.id,e[r.to.toString()]))}}recordSdfPattern(e,t){if(!t)return;let r=t.sdf===!0,i=this.sdfPatterns[e];i===void 0?this.sdfPatterns[e]=r:i!==r&&Fa(`Style sheet warning: Cannot mix SDF and non-SDF fill patterns in layer "${e}"`)}isEmpty(){return this.layoutVertexArray.length===0}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(e){this.uploaded||(this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,Pbr),this.indexBuffer=e.createIndexBuffer(this.indexArray),this.indexBuffer2=e.createIndexBuffer(this.indexArray2)),this.programConfigurations.upload(e),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.indexBuffer2.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.segments2.destroy())}addFeature(e,t,r,i,n,a){for(let o of rq(t,500)){let s=snt(o,i,a.fill.getGranularityForZoomLevel(i.z)),l=this.layoutVertexArray;unt((u,c)=>{l.emplaceBack(u,c)},this.segments,this.layoutVertexArray,this.indexArray,s.verticesFlattened,s.indicesTriangles,this.segments2,this.indexArray2,s.indicesLineList)}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,e,r,{imagePositions:n,canonical:i})}};Gi("FillBucket",cnt,{omit:["layers","patternFeatures"]});o_r=()=>_et||(_et=new hc({"fill-sort-key":new En(_r.layout_fill["fill-sort-key"],"fill-sort-key")})),s_r=()=>wet||(wet=new hc({"fill-antialias":new Pi(_r.paint_fill["fill-antialias"],"fill-antialias"),"fill-opacity":new En(_r.paint_fill["fill-opacity"],"fill-opacity"),"fill-layer-opacity":new Pi(_r.paint_fill["fill-layer-opacity"],"fill-layer-opacity"),"fill-color":new En(_r.paint_fill["fill-color"],"fill-color"),"fill-outline-color":new En(_r.paint_fill["fill-outline-color"],"fill-outline-color"),"fill-translate":new Pi(_r.paint_fill["fill-translate"],"fill-translate"),"fill-translate-anchor":new Pi(_r.paint_fill["fill-translate-anchor"],"fill-translate-anchor"),"fill-pattern":new eC(_r.paint_fill["fill-pattern"],"fill-pattern")})),l_r={get paint(){return s_r()},get layout(){return o_r()}},fnt=e=>e.type==="fill",u_r=class extends Dv{constructor(e,t){super(e,l_r,t)}recalculate(e,t){super.recalculate(e,t);let r=this.paint._values["fill-outline-color"];r.value.kind==="constant"&&r.value.value===void 0&&(this.paint._values["fill-outline-color"]=this.paint._values["fill-color"])}createBucket(e){return new cnt(e)}queryRadius(){return vq(this.paint.get("fill-translate"))}queryIntersectsFeature({queryGeometry:e,geometry:t,transform:r,pixelsToTileUnits:i}){return jit(gq(e,this.paint.get("fill-translate"),this.paint.get("fill-translate-anchor"),-r.bearingInRadians,i),t)}isTileClipped(){return!0}},qie=ll([{name:"a_pos",components:2,type:"Int16"},{name:"a_normal_ed",components:4,type:"Int16"}],4),c_r=ll([{name:"a_centroid",components:2,type:"Int16"}],4),f_r=qie.members;qie.size,qie.alignment;ap=class Oie{constructor(){this.minX=1/0,this.maxX=-1/0,this.minY=1/0,this.maxY=-1/0}extend(t){return this.minX=Math.min(this.minX,t.x),this.minY=Math.min(this.minY,t.y),this.maxX=Math.max(this.maxX,t.x),this.maxY=Math.max(this.maxY,t.y),this}expandBy(t){return this.minX-=t,this.minY-=t,this.maxX+=t,this.maxY+=t,(this.minX>this.maxX||this.minY>this.maxY)&&(this.minX=1/0,this.maxX=-1/0,this.minY=1/0,this.maxY=-1/0),this}shrinkBy(t){return this.expandBy(-t)}map(t){let r=new Oie;return r.extend(t(new tr(this.minX,this.minY))),r.extend(t(new tr(this.maxX,this.minY))),r.extend(t(new tr(this.minX,this.maxY))),r.extend(t(new tr(this.maxX,this.maxY))),r}static fromPoints(t){let r=new Oie;for(let i of t)r.extend(i);return r}contains(t){return t.x>=this.minX&&t.x<=this.maxX&&t.y>=this.minY&&t.y<=this.maxY}empty(){return this.minX>this.maxX}width(){return this.maxX-this.minX}height(){return this.maxY-this.minY}covers(t){return!this.empty()&&!t.empty()&&t.minX>=this.minX&&t.maxX<=this.maxX&&t.minY>=this.minY&&t.maxY<=this.maxY}intersects(t){return!this.empty()&&!t.empty()&&t.minX<=this.maxX&&t.maxX>=this.minX&&t.minY<=this.maxY&&t.maxY>=this.minY}},hnt=ap.fromPoints([new tr(0,0),new tr(Br,Br)]);SC=class{constructor(e,t,r,i,n){for(this.properties=Object.create(null),this.extent=r,this.type=0,this.id=void 0,this._pbf=e,this._geometry=-1,this._keys=i,this._values=n;e.pos>3,a===0)continue}if(a--,n===1)o+=e.readSVarint(),s+=e.readSVarint(),i&&r.push(i),i=[new tr(o,s)];else if(n===2)o+=e.readSVarint(),s+=e.readSVarint(),i&&i.push(new tr(o,s));else if(n===7)i&&i.push(i[0].clone());else throw Error(`unknown command ${n}`)}return i&&r.push(i),r}bbox(){if(this._geometry<0)throw Error("feature has no geometry");let e=this._pbf;e.pos=this._geometry;let t=e.readVarint()+e.pos,r=1,i=0,n=0,a=0,o=1/0,s=-1/0,l=1/0,u=-1/0;for(;e.pos>3,i===0)continue}if(i--,r===1||r===2)n+=e.readSVarint(),a+=e.readSVarint(),ns&&(s=n),au&&(u=a);else if(r!==7)throw Error(`unknown command ${r}`)}return[o,l,s,u]}toGeoJSON(e,t,r){let i=this.extent*2**r,n=this.extent*e,a=this.extent*t,o=this.loadGeometry();function s(f){return[(f.x+n)*360/i-180,360/Math.PI*Math.atan(Math.exp((1-(f.y+a)*2/i)*Math.PI))-90]}function l(f){return f.map(s)}let u;if(this.type===1){let f=[];for(let p of o)f.push(p[0]);let h=l(f);u=f.length===1?{type:"Point",coordinates:h[0]}:{type:"MultiPoint",coordinates:h}}else if(this.type===2){let f=o.map(l);u=f.length===1?{type:"LineString",coordinates:f[0]}:{type:"MultiLineString",coordinates:f}}else if(this.type===3){let f=dnt(o),h=[];for(let p of f)h.push(p.map(l));u=h.length===1?{type:"Polygon",coordinates:h[0]}:{type:"MultiPolygon",coordinates:h}}else throw Error("unknown feature type");let c={type:"Feature",geometry:u,properties:this.properties};return this.id!=null&&(c.id=this.id),c}};SC.types=["Unknown","Point","LineString","Polygon"];d_r=class{constructor(e,t){for(this.version=1,this.name="",this.extent=4096,this.length=0,this._pbf=e,this._keys=[],this._values=[],this._features=[],t===void 0&&(t=e.length);e.pos=this._features.length)throw Error("feature index out of bounds");this._pbf.pos=this._features[e];let t=this._pbf.readVarint()+this._pbf.pos;return new SC(this._pbf,t,this.extent,this._keys,this._values)}};v_r=class{constructor(e,t=e.length){let r=Object.create(null);for(;e.pos90||this.lat<-90)throw Error("Invalid LngLat latitude value: must be between -90 and 90")}wrap(){return new zk(j0(this.lng,-180,180),this.lat)}toArray(){return[this.lng,this.lat]}toString(){return`LngLat(${this.lng}, ${this.lat})`}distanceTo(t){let r=Math.PI/180,i=this.lat*r,n=t.lat*r,a=Math.sin(i)*Math.sin(n)+Math.cos(i)*Math.cos(n)*Math.cos((t.lng-this.lng)*r);return Uf*Math.acos(Math.min(a,1))}static convert(t){if(t instanceof zk)return t;if(Array.isArray(t)&&(t.length===2||t.length===3))return new zk(Number(t[0]),Number(t[1]));if(!Array.isArray(t)&&typeof t=="object"&&t)return new zk(Number("lng"in t?t.lng:t.lon),Number(t.lat));throw Error("`LngLatLike` argument must be specified as a LngLat instance, an object {lng: , lat: }, an object {lon: , lat: }, or an array of [, ]")}},pnt=2*Math.PI*Uf;Mo=class gnt{constructor(t,r,i=0){this.x=+t,this.y=+r,this.z=+i}static fromLngLat(t,r=0){let i=pn.convert(t);return new gnt(d3(i.lng),p3(i.lat),vx(r,i.lat))}toLngLat(){return new pn(xq(this.x),H6(this.y))}toAltitude(){return Zne(this.z,this.y)}meterInMercatorCoordinateUnits(){return 1/pnt*g_r(H6(this.y))}},gx=89.25;Ore=8192;ynt=class{constructor(e){this.zoom=e.zoom,this.overscaling=e.overscaling,this.layers=e.layers,this.layerIds=this.layers.map(t=>t.id),this.index=e.index,this.hasDependencies=!1,this.layoutVertexArray=new jxr,this.centroidVertexArray=new Nm,this.indexArray=new Fv,this.programConfigurations=new a3(e.layers,e.zoom),this.segments=new Xs,this.stateDependentLayerIds=this.layers.filter(t=>t.isStateDependent()).map(t=>t.id)}populate(e,t,r){this.features=[],this.hasDependencies=CB("fill-extrusion",this.layers,t);let i=new Io(this.zoom),n=this.layers[0],a=n.layout.get("fill-extrusion-rounded-corner-distance"),o=a>0?x_r(a,r):0,s=n._featureFilter.needGeometry;for(let{feature:l,id:u,index:c,sourceLayerIndex:f}of e){let h=px(l,s);if(!n._featureFilter.filter(i,h,r))continue;let p={id:u,sourceLayerIndex:f,index:c,geometry:y_r(s?h.geometry:h3(l),o),properties:l.properties,type:l.type,patterns:{}};this.hasDependencies?this.features.push(Xne("fill-extrusion",this.layers,p,{zoom:this.zoom},t)):this.addFeature(p,p.geometry,c,r,{},t.subdivisionGranularity),t.featureIndex.insert(l,p.geometry,c,f,this.index,!0)}}addFeatures({options:e,canonical:t,patternPositions:r}){for(let i of this.features){let{geometry:n}=i;this.addFeature(i,n,i.index,t,r,e.subdivisionGranularity)}}update(e,t,r){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(e,t,this.stateDependentLayers,{imagePositions:r})}isEmpty(){return this.layoutVertexArray.length===0&&this.centroidVertexArray.length===0}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(e){this.uploaded||(this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,f_r),this.centroidVertexBuffer=e.createVertexBuffer(this.centroidVertexArray,c_r.members,!0),this.indexBuffer=e.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(e),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.centroidVertexBuffer.destroy())}addFeature(e,t,r,i,n,a){for(let o of rq(t,500)){let s={x:0,y:0,sampleCount:0},l=this.layoutVertexArray.length;this.processPolygon(s,i,e,o,a);let u=this.layoutVertexArray.length-l,c=Math.floor(s.x/s.sampleCount),f=Math.floor(s.y/s.sampleCount);for(let h=0;h{Ek(u,c,f,0,0,1,1,0)},this.segments,this.layoutVertexArray,this.indexArray,l.verticesFlattened,l.indicesTriangles)}_generateSideFaces(e,t){let r=0;for(let i=1;iXs.MAX_VERTEX_ARRAY_LENGTH&&(t.segment=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray));let o=n.sub(a)._perp()._unit(),s=a.dist(n);r+s>32768&&(r=0),Ek(this.layoutVertexArray,n.x,n.y,o.x,o.y,0,0,r),Ek(this.layoutVertexArray,n.x,n.y,o.x,o.y,0,1,r),r+=s,Ek(this.layoutVertexArray,a.x,a.y,o.x,o.y,0,0,r),Ek(this.layoutVertexArray,a.x,a.y,o.x,o.y,0,1,r);let l=t.segment.vertexLength;this.indexArray.emplaceBack(l,l+2,l+1),this.indexArray.emplaceBack(l+1,l+2,l+3),t.segment.vertexLength+=4,t.segment.primitiveLength+=2}}};Gi("FillExtrusionBucket",ynt,{omit:["layers","features"]});A_r=()=>Aet||(Aet=new hc({"fill-extrusion-rounded-corner-distance":new Pi(_r["layout_fill-extrusion"]["fill-extrusion-rounded-corner-distance"],"fill-extrusion-rounded-corner-distance")})),M_r=()=>Met||(Met=new hc({"fill-extrusion-opacity":new Pi(_r["paint_fill-extrusion"]["fill-extrusion-opacity"],"fill-extrusion-opacity"),"fill-extrusion-color":new En(_r["paint_fill-extrusion"]["fill-extrusion-color"],"fill-extrusion-color"),"fill-extrusion-translate":new Pi(_r["paint_fill-extrusion"]["fill-extrusion-translate"],"fill-extrusion-translate"),"fill-extrusion-translate-anchor":new Pi(_r["paint_fill-extrusion"]["fill-extrusion-translate-anchor"],"fill-extrusion-translate-anchor"),"fill-extrusion-pattern":new eC(_r["paint_fill-extrusion"]["fill-extrusion-pattern"],"fill-extrusion-pattern"),"fill-extrusion-height":new En(_r["paint_fill-extrusion"]["fill-extrusion-height"],"fill-extrusion-height"),"fill-extrusion-base":new En(_r["paint_fill-extrusion"]["fill-extrusion-base"],"fill-extrusion-base"),"fill-extrusion-vertical-gradient":new Pi(_r["paint_fill-extrusion"]["fill-extrusion-vertical-gradient"],"fill-extrusion-vertical-gradient")})),S_r={get paint(){return M_r()},get layout(){return A_r()}},xnt=e=>e.type==="fill-extrusion",E_r=class extends Dv{constructor(e,t){super(e,S_r,t)}createBucket(e){return new ynt(e)}queryRadius(){return vq(this.paint.get("fill-extrusion-translate"))}is3D(){return!0}queryIntersectsFeature({queryGeometry:e,feature:t,featureState:r,geometry:i,transform:n,pixelsToTileUnits:a,pixelPosMatrix:o}){let s=gq(e,this.paint.get("fill-extrusion-translate"),this.paint.get("fill-extrusion-translate-anchor"),-n.bearingInRadians,a),l=this.paint.get("fill-extrusion-height").evaluate(t,r),u=this.paint.get("fill-extrusion-base").evaluate(t,r),c=D_r(s,o,0),f=C_r(i,u,l,o),h=f[0],p=f[1];return k_r(h,p,c)}};F_r="geojsonvt_clip_start",L_r="geojsonvt_clip_end",Uie=ll([{name:"a_pos_normal",components:2,type:"Int16"},{name:"a_data",components:4,type:"Uint8"}],4),P_r=Uie.members;Uie.size,Uie.alignment;Vie=ll([{name:"a_uv_x",components:1,type:"Float32"},{name:"a_split_index",components:1,type:"Float32"}]),I_r=Vie.members;Vie.size,Vie.alignment;R_r=Math.cos(75/2*(Math.PI/180)),bnt=1/2,ket=2**14/bnt,_nt=class{constructor(e){this.zoom=e.zoom,this.overscaling=e.overscaling,this.layers=e.layers,this.layerIds=this.layers.map(t=>t.id),this.index=e.index,this.hasDependencies=!1,this.patternFeatures=[],this.lineClipsArray=[],this.gradients={};for(let t of this.layers)this.gradients[t.id]={};this.layoutVertexArray=new $xr,this.layoutVertexArray2=new Wxr,this.indexArray=new Fv,this.programConfigurations=new a3(e.layers,e.zoom),this.segments=new Xs,this.maxLineLength=0,this.stateDependentLayerIds=this.layers.filter(t=>t.isStateDependent()).map(t=>t.id)}populate(e,t,r){this.hasDependencies=CB("line",this.layers,t)||this.hasLineDasharray(this.layers);let i=this.layers[0].layout.get("line-sort-key"),n=!i.isConstant(),a=[],o=new Io(this.zoom),s=this.layers[0]._featureFilter.needGeometry;for(let{feature:l,id:u,index:c,sourceLayerIndex:f}of e){let h=px(l,s);if(!this.layers[0]._featureFilter.filter(o,h,r))continue;let p=n?i.evaluate(h,{},r):void 0,d={id:u,properties:l.properties,type:l.type,sourceLayerIndex:f,index:c,geometry:s?h.geometry:h3(l),patterns:{},dashes:{},sortKey:p};a.push(d)}n&&a.sort((l,u)=>l.sortKey-u.sortKey);for(let l of a){let{geometry:u,index:c,sourceLayerIndex:f}=l;this.hasDependencies?(CB("line",this.layers,t)?Xne("line",this.layers,l,{zoom:this.zoom},t):this.hasLineDasharray(this.layers)&&this.addLineDashDependencies(this.layers,l,this.zoom,t),this.patternFeatures.push(l)):this.addFeature(l,u,c,r,{},{},t.subdivisionGranularity);let h=e[c].feature;t.featureIndex.insert(h,u,c,f,this.index)}}update(e,t,r,i){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(e,t,this.stateDependentLayers,{imagePositions:r,dashPositions:i})}addFeatures({options:e,canonical:t,patternPositions:r,dashPositions:i}){for(let n of this.patternFeatures)this.addFeature(n,n.geometry,n.index,t,r,i,e.subdivisionGranularity)}isEmpty(){return this.layoutVertexArray.length===0}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(e){this.uploaded||(this.layoutVertexArray2.length!==0&&(this.layoutVertexBuffer2=e.createVertexBuffer(this.layoutVertexArray2,I_r)),this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,P_r),this.indexBuffer=e.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(e),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())}lineFeatureClips(e){if(e.properties&&Object.hasOwn(e.properties,"geojsonvt_clip_start")&&Object.hasOwn(e.properties,"geojsonvt_clip_end"))return{start:+e.properties[F_r],end:+e.properties[L_r]}}addFeature(e,t,r,i,n,a,o){let s=this.layers[0].layout,l=s.get("line-join").evaluate(e,{}),u=s.get("line-cap").evaluate(e,{}),c=s.get("line-miter-limit").evaluate(e,{}),f=s.get("line-round-limit").evaluate(e,{});this.lineClips=this.lineFeatureClips(e);for(let h of t)this.addLine(h,e,l,u,c,f,i,o);this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,e,r,{imagePositions:n,dashPositions:a,canonical:i})}addLine(e,t,r,i,n,a,o,s){this.distance=0,this.scaledDistance=0,this.totalDistance=0;let l=o?s.line.getGranularityForZoomLevel(o.z):1;if(e=J_(e,l),this.lineClips){this.lineClipsArray.push(this.lineClips);for(let _=0;_=2&&e[c-1].equals(e[c-2]);)c--;let f=0;for(;f0;if(y&&_>f){let k=d.dist(v);if(k>2*h){let D=d.sub(d.sub(v)._mult(h/k)._round());this.updateDistance(v,D),this.addCurrentVertex(D,g,0,0,p),v=D}}let M=v&&m,C=M?r:u?"butt":i;if(M&&C==="round"&&(Tn&&(C="bevel"),C==="bevel"&&(T>2&&(C="flipbevel"),T100)b=w.mult(-1);else{let k=T*g.add(w).mag()/g.sub(w).mag();b._perp()._mult(k*(E?-1:1))}this.addCurrentVertex(d,b,0,0,p),this.addCurrentVertex(d,b.mult(-1),0,0,p)}else if(C==="bevel"||C==="fakeround"){let k=-Math.sqrt(T*T-1),D=E?k:0,L=E?0:k;if(v&&this.addCurrentVertex(d,g,D,L,p),C==="fakeround"){let P=Math.round(A*180/Math.PI/20);for(let R=1;R2*h){let D=d.add(m.sub(d)._mult(h/k)._round());this.updateDistance(d,D),this.addCurrentVertex(D,w,0,0,p),d=D}}}}addCurrentVertex(e,t,r,i,n,a=!1){let o=t.x+t.y*r,s=t.y-t.x*r,l=-t.x+t.y*i,u=-t.y-t.x*i;this.addHalfVertex(e,o,s,a,!1,r,n),this.addHalfVertex(e,l,u,a,!0,-i,n),this.distance>ket/2&&this.totalDistance===0&&(this.distance=0,this.updateScaledDistance(),this.addCurrentVertex(e,t,r,i,n,a))}addHalfVertex({x:e,y:t},r,i,n,a,o,s){let l=(this.lineClips?this.scaledDistance*(ket-1):this.scaledDistance)*bnt;if(this.layoutVertexArray.emplaceBack((e<<1)+ +!!n,(t<<1)+ +!!a,Math.round(63*r)+128,Math.round(63*i)+128,(o===0?0:o<0?-1:1)+1|(l&63)<<2,l>>6),this.lineClips){let c=(this.scaledDistance-this.lineClips.start)/(this.lineClips.end-this.lineClips.start);this.layoutVertexArray2.emplaceBack(c,this.lineClipsArray.length)}let u=s.vertexLength++;this.e1>=0&&this.e2>=0&&(this.indexArray.emplaceBack(this.e1,u,this.e2),s.primitiveLength++),a?this.e2=u:this.e1=u}updateScaledDistance(){this.scaledDistance=this.lineClips?this.lineClips.start+(this.lineClips.end-this.lineClips.start)*this.distance/this.totalDistance:this.distance}updateDistance(e,t){this.distance+=e.dist(t),this.updateScaledDistance()}hasLineDasharray(e){for(let t of e){let r=t.paint.get("line-dasharray");if(r&&!r.isConstant())return!0}return!1}addLineDashDependencies(e,t,r,i){for(let n of e){let a=n.paint.get("line-dasharray");if(!a||a.value.kind==="constant")continue;let o=n.layout.get("line-cap").evaluate(t,{})==="round",s={dasharray:a.value.evaluate({zoom:r-1},t,{}),round:o},l={dasharray:a.value.evaluate({zoom:r},t,{}),round:o},u={dasharray:a.value.evaluate({zoom:r+1},t,{}),round:o},c=`${s.dasharray.join(",")},${s.round}`,f=`${l.dasharray.join(",")},${l.round}`,h=`${u.dasharray.join(",")},${u.round}`;i.dashDependencies[c]=s,i.dashDependencies[f]=l,i.dashDependencies[h]=u,t.dashes[n.id]={min:c,mid:f,max:h}}}};Gi("LineBucket",_nt,{omit:["layers","patternFeatures"]});z_r=()=>Cet||(Cet=new hc({"line-cap":new En(_r.layout_line["line-cap"],"line-cap"),"line-join":new En(_r.layout_line["line-join"],"line-join"),"line-miter-limit":new En(_r.layout_line["line-miter-limit"],"line-miter-limit"),"line-round-limit":new En(_r.layout_line["line-round-limit"],"line-round-limit"),"line-sort-key":new En(_r.layout_line["line-sort-key"],"line-sort-key")})),B_r=()=>Det||(Det=new hc({"line-opacity":new En(_r.paint_line["line-opacity"],"line-opacity"),"line-layer-opacity":new Pi(_r.paint_line["line-layer-opacity"],"line-layer-opacity"),"line-color":new En(_r.paint_line["line-color"],"line-color"),"line-translate":new Pi(_r.paint_line["line-translate"],"line-translate"),"line-translate-anchor":new Pi(_r.paint_line["line-translate-anchor"],"line-translate-anchor"),"line-width":new En(_r.paint_line["line-width"],"line-width"),"line-gap-width":new En(_r.paint_line["line-gap-width"],"line-gap-width"),"line-offset":new En(_r.paint_line["line-offset"],"line-offset"),"line-blur":new En(_r.paint_line["line-blur"],"line-blur"),"line-dasharray":new eC(_r.paint_line["line-dasharray"],"line-dasharray"),"line-pattern":new eC(_r.paint_line["line-pattern"],"line-pattern"),"line-gradient":new hq(_r.paint_line["line-gradient"],"line-gradient")})),Fet={get paint(){return B_r()},get layout(){return z_r()}},q_r=class extends En{possiblyEvaluate(e,t){return t=new Io(Math.floor(t.zoom),{now:t.now,fadeDuration:t.fadeDuration,zoomHistory:t.zoomHistory,transition:t.transition}),super.possiblyEvaluate(e,t)}evaluate(e,t,r,i){return t=cn({},t,{zoom:Math.floor(t.zoom)}),super.evaluate(e,t,r,i)}},wnt=e=>e.type==="line",O_r=class extends Dv{constructor(e,t){super(e,Fet,t),this.gradientVersion=0,nB||(nB=new q_r(Fet.paint.properties["line-width"].specification,"line-floorwidth"),nB.useIntegerZoom=!0)}_handleSpecialPaintPropertyUpdate(e){if(e==="line-gradient"){let t=this.gradientExpression();this.stepInterpolant=oxr(t)?t._styleExpression.expression instanceof bne:!1,this.gradientVersion=(this.gradientVersion+1)%(2**53-1)}}gradientExpression(){return this._transitionablePaint._values["line-gradient"].value.expression}recalculate(e,t){super.recalculate(e,t),this.paint._values["line-floorwidth"]=nB.possiblyEvaluate(this._transitioningPaint._values["line-width"].value,e)}createBucket(e){return new _nt(e)}queryRadius(e){let t=e,r=Let(D6("line-width",this,t),D6("line-gap-width",this,t)),i=D6("line-offset",this,t);return r/2+Math.abs(i)+vq(this.paint.get("line-translate"))}queryIntersectsFeature({queryGeometry:e,feature:t,featureState:r,geometry:i,transform:n,pixelsToTileUnits:a}){let o=gq(e,this.paint.get("line-translate"),this.paint.get("line-translate-anchor"),-n.bearingInRadians,a),s=a/2*Let(this.paint.get("line-width").evaluate(t,r),this.paint.get("line-gap-width").evaluate(t,r)),l=this.paint.get("line-offset").evaluate(t,r);return l&&(i=dbr(i,l*a)),sbr(o,i,s)}isTileClipped(){return!0}};N_r=ll([{name:"a_pos_offset",components:4,type:"Int16"},{name:"a_data",components:4,type:"Uint16"},{name:"a_pixeloffset",components:4,type:"Int16"},{name:"a_height_offset",components:1,type:"Float32"}],4),U_r=ll([{name:"a_projected_pos",components:3,type:"Float32"}],4);ll([{name:"a_fade_opacity",components:1,type:"Uint32"}],4);V_r=ll([{name:"a_placed",components:2,type:"Uint8"},{name:"a_shift",components:2,type:"Float32"},{name:"a_box_real",components:2,type:"Int16"}]);ll([{type:"Int16",name:"anchorPointX"},{type:"Int16",name:"anchorPointY"},{type:"Int16",name:"x1"},{type:"Int16",name:"y1"},{type:"Int16",name:"x2"},{type:"Int16",name:"y2"},{type:"Uint32",name:"featureIndex"},{type:"Uint16",name:"sourceLayerIndex"},{type:"Uint16",name:"bucketIndex"}]);Pet=ll([{name:"a_pos",components:2,type:"Int16"},{name:"a_anchor_pos",components:2,type:"Int16"},{name:"a_extrude",components:2,type:"Int16"}],4),Tnt=ll([{name:"a_pos",components:2,type:"Float32"},{name:"a_radius",components:1,type:"Float32"},{name:"a_flags",components:2,type:"Int16"}],4);ll([{name:"triangle",components:3,type:"Uint16"}]),ll([{type:"Int16",name:"anchorX"},{type:"Int16",name:"anchorY"},{type:"Uint16",name:"glyphStartIndex"},{type:"Uint16",name:"numGlyphs"},{type:"Uint32",name:"vertexStartIndex"},{type:"Uint32",name:"lineStartIndex"},{type:"Uint32",name:"lineLength"},{type:"Uint16",name:"segment"},{type:"Uint16",name:"lowerSize"},{type:"Uint16",name:"upperSize"},{type:"Float32",name:"lineOffsetX"},{type:"Float32",name:"lineOffsetY"},{type:"Uint8",name:"writingMode"},{type:"Uint8",name:"placedOrientation"},{type:"Uint8",name:"hidden"},{type:"Uint32",name:"crossTileID"},{type:"Int16",name:"associatedIconIndex"},{type:"Float32",name:"heightOffset"}]),ll([{type:"Int16",name:"anchorX"},{type:"Int16",name:"anchorY"},{type:"Int16",name:"rightJustifiedTextSymbolIndex"},{type:"Int16",name:"centerJustifiedTextSymbolIndex"},{type:"Int16",name:"leftJustifiedTextSymbolIndex"},{type:"Int16",name:"verticalPlacedTextSymbolIndex"},{type:"Int16",name:"placedIconSymbolIndex"},{type:"Int16",name:"verticalPlacedIconSymbolIndex"},{type:"Uint16",name:"key"},{type:"Uint16",name:"textBoxStartIndex"},{type:"Uint16",name:"textBoxEndIndex"},{type:"Uint16",name:"verticalTextBoxStartIndex"},{type:"Uint16",name:"verticalTextBoxEndIndex"},{type:"Uint16",name:"iconBoxStartIndex"},{type:"Uint16",name:"iconBoxEndIndex"},{type:"Uint16",name:"verticalIconBoxStartIndex"},{type:"Uint16",name:"verticalIconBoxEndIndex"},{type:"Uint16",name:"featureIndex"},{type:"Uint16",name:"numHorizontalGlyphVertices"},{type:"Uint16",name:"numVerticalGlyphVertices"},{type:"Uint16",name:"numIconVertices"},{type:"Uint16",name:"numVerticalIconVertices"},{type:"Uint16",name:"useRuntimeCollisionCircles"},{type:"Uint32",name:"crossTileID"},{type:"Float32",name:"textBoxScale"},{type:"Float32",name:"collisionCircleDiameter"},{type:"Uint16",name:"textAnchorOffsetStartIndex"},{type:"Uint16",name:"textAnchorOffsetEndIndex"},{type:"Float32",name:"heightOffset"}]),ll([{type:"Float32",name:"offsetX"}]),ll([{type:"Int16",name:"x"},{type:"Int16",name:"y"},{type:"Int16",name:"tileUnitDistanceFromAnchor"}]),ll([{type:"Uint16",name:"textAnchor"},{type:"Float32",components:2,name:"textOffset"}]);LB=new class{constructor(){this.TIMEOUT=5e3,this.applyArabicShaping=null,this.processBidirectionalText=null,this.processStyledBidirectionalText=null,this.pluginStatus="unavailable",this.pluginURL=null,this.loadScriptResolve=()=>{}}setState(e){this.pluginStatus=e.pluginStatus,this.pluginURL=e.pluginURL}getState(){return{pluginStatus:this.pluginStatus,pluginURL:this.pluginURL}}setMethods(e){if(LB.isParsed())throw Error("RTL text plugin already registered.");this.applyArabicShaping=e.applyArabicShaping,this.processBidirectionalText=e.processBidirectionalText,this.processStyledBidirectionalText=e.processStyledBidirectionalText,this.loadScriptResolve()}isParsed(){return this.applyArabicShaping!=null&&this.processBidirectionalText!=null&&this.processStyledBidirectionalText!=null}getRTLTextPluginStatus(){return this.pluginStatus}syncState(e,t){return Yi(this,null,function*(){if(this.isParsed())return this.getState();if(e.pluginStatus!=="loading")return this.setState(e),e;let r=e.pluginURL,i=new Promise(a=>{this.loadScriptResolve=a}),n=new Promise(a=>setTimeout(()=>a(),this.TIMEOUT));if(yield t(r),yield Promise.race([i,n]),this.isParsed()){let a={pluginStatus:"loaded",pluginURL:r};return this.setState(a),a}throw this.setState({pluginStatus:"error",pluginURL:""}),Error(`RTL Text Plugin failed to import scripts from ${r}`)})}};X_r={C:"18g,1;g2,3;4nb,1",D:"17k,1;5,1;1,1;1,5;4,d;1,7;1,2;z,2;8,g;i,12;1,2;9,1;1,1;1,2;14,3;2,1;28,9;3,f;2,4;1,1;2,3;2,6;7a,1;2,5;1,1;g,a;5,2;2,6;1,f",R:"17m,4;1,1;1,1;5,4;l,1;14,3;1,3;g,i;12,1;2,9;1,1;1,1;2,2;1,1;o,2;2x,3;f,2;4,1;1,2;3,2;6u,j;b,1;r,3;1,1;2,2;6,1",T:"174,b;1,1;1a,l;g,1;2t,7;2,6;2,2;1,4;bt,9;16,o;1,t;1clb,1"},Z_r={1569:[65152,0,0,0],1570:[65153,65154,0,0],1571:[65155,65156,0,0],1572:[65157,65158,0,0],1573:[65159,65160,0,0],1574:[65161,65162,65163,65164],1575:[65165,65166,0,0],1576:[65167,65168,65169,65170],1577:[65171,65172,0,0],1578:[65173,65174,65175,65176],1579:[65177,65178,65179,65180],1580:[65181,65182,65183,65184],1581:[65185,65186,65187,65188],1582:[65189,65190,65191,65192],1583:[65193,65194,0,0],1584:[65195,65196,0,0],1585:[65197,65198,0,0],1586:[65199,65200,0,0],1587:[65201,65202,65203,65204],1588:[65205,65206,65207,65208],1589:[65209,65210,65211,65212],1590:[65213,65214,65215,65216],1591:[65217,65218,65219,65220],1592:[65221,65222,65223,65224],1593:[65225,65226,65227,65228],1594:[65229,65230,65231,65232],1601:[65233,65234,65235,65236],1602:[65237,65238,65239,65240],1603:[65241,65242,65243,65244],1604:[65245,65246,65247,65248],1605:[65249,65250,65251,65252],1606:[65253,65254,65255,65256],1607:[65257,65258,65259,65260],1608:[65261,65262,0,0],1609:[65263,65264,64488,64489],1610:[65265,65266,65267,65268],1611:[65136,0,0,65137],1612:[65138,0,0,0],1613:[65140,0,0,0],1614:[65142,0,0,65143],1615:[65144,0,0,65145],1616:[65146,0,0,65147],1617:[65148,0,0,65149],1618:[65150,0,0,65151],1649:[64336,64337,0,0],1655:[64477,0,0,0],1657:[64358,64359,64360,64361],1658:[64350,64351,64352,64353],1659:[64338,64339,64340,64341],1662:[64342,64343,64344,64345],1663:[64354,64355,64356,64357],1664:[64346,64347,64348,64349],1667:[64374,64375,64376,64377],1668:[64370,64371,64372,64373],1670:[64378,64379,64380,64381],1671:[64382,64383,64384,64385],1672:[64392,64393,0,0],1676:[64388,64389,0,0],1677:[64386,64387,0,0],1678:[64390,64391,0,0],1681:[64396,64397,0,0],1688:[64394,64395,0,0],1700:[64362,64363,64364,64365],1702:[64366,64367,64368,64369],1705:[64398,64399,64400,64401],1709:[64467,64468,64469,64470],1711:[64402,64403,64404,64405],1713:[64410,64411,64412,64413],1715:[64406,64407,64408,64409],1722:[64414,64415,0,0],1723:[64416,64417,64418,64419],1726:[64426,64427,64428,64429],1728:[64420,64421,0,0],1729:[64422,64423,64424,64425],1733:[64480,64481,0,0],1734:[64473,64474,0,0],1735:[64471,64472,0,0],1736:[64475,64476,0,0],1737:[64482,64483,0,0],1739:[64478,64479,0,0],1740:[64508,64509,64510,64511],1744:[64484,64485,64486,64487],1746:[64430,64431,0,0],1747:[64432,64433,0,0]},K_r={\u0644\u0622:[65269,65270],\u0644\u0623:[65271,65272],\u0644\u0625:[65273,65274],\u0644\u0627:[65275,65276]},Ret=1604,J_r=/[\u0600-\u06ff\u0750-\u077f\u0870-\u089f\u08a0-\u08ff\ufb50-\ufdff\ufe70-\ufeff]/;Mnt=new Map;for(let[e,t]of Object.entries(X_r))Q_r(t,e,Mnt);Snt=typeof Intl<"u"&&"Segmenter"in Intl;E6={"!":"\uFE15","#":"\uFF03",$:"\uFF04","%":"\uFF05","&":"\uFF06","(":"\uFE35",")":"\uFE36","*":"\uFF0A","+":"\uFF0B",",":"\uFE10","-":"\uFE32",".":"\u30FB","/":"\uFF0F",":":"\uFE13",";":"\uFE14","<":"\uFE3F","=":"\uFF1D",">":"\uFE40","?":"\uFE16","@":"\uFF20","[":"\uFE47","\\":"\uFF3C","]":"\uFE48","^":"\uFF3E",_:"\uFE33","`":"\uFF40","{":"\uFE37","|":"\u2015","}":"\uFE38","~":"\uFF5E","\xA2":"\uFFE0","\xA3":"\uFFE1","\xA5":"\uFFE5","\xA6":"\uFFE4","\xAC":"\uFFE2","\xAF":"\uFFE3","\u2013":"\uFE32","\u2014":"\uFE31","\u2018":"\uFE43","\u2019":"\uFE44","\u201C":"\uFE41","\u201D":"\uFE42","\u2026":"\uFE19","\u22EF":"\uFE19","\u2027":"\u30FB","\u20A9":"\uFFE6","\u3001":"\uFE11","\u3002":"\uFE12","\u3008":"\uFE3F","\u3009":"\uFE40","\u300A":"\uFE3D","\u300B":"\uFE3E","\u300C":"\uFE41","\u300D":"\uFE42","\u300E":"\uFE43","\u300F":"\uFE44","\u3010":"\uFE3B","\u3011":"\uFE3C","\u3014":"\uFE39","\u3015":"\uFE3A","\u3016":"\uFE17","\u3017":"\uFE18","\uFF01":"\uFE15","\uFF08":"\uFE35","\uFF09":"\uFE36","\uFF0C":"\uFE10","\uFF0D":"\uFE32","\uFF0E":"\u30FB","\uFF1A":"\uFE13","\uFF1B":"\uFE14","\uFF1C":"\uFE3F","\uFF1E":"\uFE40","\uFF1F":"\uFE16","\uFF3B":"\uFE47","\uFF3D":"\uFE48","\uFF3F":"\uFE33","\uFF5B":"\uFE37","\uFF5C":"\u2015","\uFF5D":"\uFE38","\uFF5F":"\uFE35","\uFF60":"\uFE36","\uFF61":"\uFE12","\uFF62":"\uFE41","\uFF63":"\uFE42"};y3r={10:!0,13:!0,32:!0,38:!0,41:!0,43:!0,45:!0,47:!0,173:!0,183:!0,8203:!0,8208:!0,8211:!0,8231:!0},x3r={40:!0};eae=class jie{constructor(t="",r=[],i=[]){this.text=t,this.sections=r,this.sectionIndex=i,this.imageSectionID=null,this._graphemes=null}graphemes(){var t;return(t=this._graphemes)!=null||(this._graphemes=Gie(this.text)),this._graphemes}static fromFeature(t,r){let i=new jie;for(let n of t.sections)n.image?i.addImageSection(n):i.addTextSection(n,r);return i}length(){return this.graphemes().length}getSection(t){return this.sections[this.sectionIndex[t]]}getSectionIndex(t){return this.sectionIndex[t]}verticalizePunctuation(){this.text=m3r(this.text),this._graphemes=null}hasZeroWidthSpaces(){return this.text.includes("\u200B")}trim(){let t=this.graphemes(),r=0;for(;rr&&Uet(t[i-1]);)i--;this.text=t.slice(r,i).join(""),this.sectionIndex=this.sectionIndex.slice(r,i),this._graphemes=null}substring(t,r){let i=this.graphemes().slice(t,r).join(""),n=this.sectionIndex.slice(t,r);return new jie(i,this.sections,n)}toCodeUnitIndex(t){return this.graphemes().slice(0,t).join("").length}toString(){return this.text}getMaxScale(){return this.sectionIndex.reduce((t,r)=>Math.max(t,this.sections[r].scale),0)}getMaxImageSize(t){let r=0,i=0;for(let n=0;n0?i[i.length-1]:"",a=Gie(n+t);this.text+=t,this._graphemes=i.slice(0,n?-1:void 0).concat(a);let o=a.length-+!!n;for(let s=0;s=63743?null:++this.imageSectionID:(this.imageSectionID=57344,this.imageSectionID)}determineLineBreaks(t,r,i,n,a){let o=[],s=this.determineAverageLineWidth(t,r,i,n,a),l=this.hasZeroWidthSpaces(),u=this.graphemes(),c=null,f=0,h=0;for(let p=0;p0){let v=u[p-1].codePointAt(0),m=d.codePointAt(0),g=j_r(v),w=Iet(v)&&Iet(m);(y3r[v]||g||"imageName"in this.getSection(p-1)||u[p+1]!==void 0&&x3r[m]||w&&(c!=null?c:c=p3r(this.text)).has(h))&&o.push(Vet(p,f,s,o,b3r(v,m,g&&l),!1))}Qne(d.codePointAt(0))||(f+=Oet(d,this.getSection(p),i,n,t,a)),h+=d.length}return Dnt(Vet(this.length(),f,s,o,0,!0))}determineAverageLineWidth(t,r,i,n,a){let o=0,s=0;for(let u of this.graphemes()){let c=this.getSection(s);o+=Oet(u,c,i,n,t,a),s++}let l=Math.max(1,Math.ceil(o/r));return o/l}};tae=_3r(),w3r=/[\u061c\u200e\u200f\u202a-\u202e\u2066-\u2069]/,T3r=new Set(["WS","FSI","LRI","RLI","PDI"]),A3r=new Set(["S","B"]);$ie=4294967296,iri=1/$ie,Get=typeof TextDecoder>"u"?null:new TextDecoder("utf-8"),Lnt=class{constructor(e){this.buf=ArrayBuffer.isView(e)?e:new Uint8Array(e),this.dataView=new DataView(this.buf.buffer,this.buf.byteOffset,this.buf.byteLength),this.pos=0,this.type=0,this._valueStart=-1,this.length=this.buf.length}readFields(e,t,r=this.length){let i;for(;i=this.nextField(r);)e(i,t,this);return t}readMessage(e,t){return this.readFields(e,t,this.readVarint()+this.pos)}readFixed32(){let e=this.dataView.getUint32(this.pos,!0);return this.pos+=4,e}readSFixed32(){let e=this.dataView.getInt32(this.pos,!0);return this.pos+=4,e}readFixed64(){let e=this.dataView.getUint32(this.pos,!0)+this.dataView.getUint32(this.pos+4,!0)*$ie;return this.pos+=8,e}readSFixed64(){let e=this.dataView.getUint32(this.pos,!0)+this.dataView.getInt32(this.pos+4,!0)*$ie;return this.pos+=8,e}readFloat(){let e=this.dataView.getFloat32(this.pos,!0);return this.pos+=4,e}readDouble(){let e=this.dataView.getFloat64(this.pos,!0);return this.pos+=8,e}readVarint(e){let t=this.buf,r=t[this.pos++];if(r<128)return r;let i=r&127,n;return n=t[this.pos++],i|=(n&127)<<7,n<128||(n=t[this.pos++],i|=(n&127)<<14,n<128)||(n=t[this.pos++],i|=(n&127)<<21,n<128)?i:(n=t[this.pos],i|=(n&15)<<28,I3r(i,e,this))}readSVarint(){let e=this.readVarint();return e%2==1?(e+1)/-2:e/2}readBoolean(){return!!this.readVarint()}readString(){let e=this.readVarint()+this.pos,t=this.pos;return this.pos=e,e-t>=12&&Get?Get.decode(this.buf.subarray(t,e)):z3r(this.buf,t,e)}readBytes(){let e=this.readVarint()+this.pos,t=this.buf.subarray(this.pos,e);return this.pos=e,t}readPackedVarint(e=[],t){let r=this.readPackedEnd();for(;this.pos=e)return 0;let t=this.readVarint();return this.type=t&7,this._valueStart=this.pos,t>>>3}skip(e){let t=e&7;if(t===0)for(;this.buf[this.pos++]>127;);else if(t===2)this.pos=this.readVarint()+this.pos;else if(t===5)this.pos+=4;else if(t===1)this.pos+=8;else throw Error(`Unimplemented type: ${t}`)}};Tq=class{constructor(e,{pixelRatio:t,version:r,isWebGLImage:i=!1,stretchX:n,stretchY:a,content:o,textFitWidth:s,textFitHeight:l}){this.paddedRect=e,this.pixelRatio=t,this.stretchX=n,this.stretchY=a,this.content=o,this.version=r,this.needsFirstWebGLRender=i,this.textFitWidth=s,this.textFitHeight=l}get tl(){return[this.paddedRect.x+1,this.paddedRect.y+1]}get br(){return[this.paddedRect.x+this.paddedRect.w-1,this.paddedRect.y+this.paddedRect.h-1]}get tlbr(){return this.tl.concat(this.br)}get displaySize(){return[(this.paddedRect.w-2)/this.pixelRatio,(this.paddedRect.h-2)/this.pixelRatio]}},N3r=class{constructor(e,t){let r={},i={};this.haveRenderCallbacks=[],this.patchedUpdateVersion=-1;let n=[];this.addImages(e,r,n),this.addImages(t,i,n);let{w:a,h:o}=rae(n),s=new Ss({width:a||1,height:o||1});for(let l in e){let u=e[l];if(u.isWebGLImage)continue;let c=r[l].paddedRect;Ss.copy(u.data,s,{x:0,y:0},{x:c.x+1,y:c.y+1},u.data)}for(let l in t){let u=t[l],c=i[l].paddedRect,f=c.x+1,h=c.y+1,p=u.data.width,d=u.data.height;Ss.copy(u.data,s,{x:0,y:0},{x:f,y:h},u.data),Ss.copy(u.data,s,{x:0,y:d-1},{x:f,y:h-1},{width:p,height:1}),Ss.copy(u.data,s,{x:0,y:0},{x:f,y:h+d},{width:p,height:1}),Ss.copy(u.data,s,{x:p-1,y:0},{x:f-1,y:h},{width:1,height:d}),Ss.copy(u.data,s,{x:0,y:0},{x:f+p,y:h},{width:1,height:d})}this.image=s,this.iconPositions=r,this.patternPositions=i}addImages(e,t,r){for(let i in e){let n=e[i],a={x:0,y:0,w:n.data.width+2,h:n.data.height+2};r.push(a),t[i]=new Tq(a,n),n.hasRenderCallback&&this.haveRenderCallbacks.push(i)}}patchUpdatedImages(e,t){if(e.dispatchRenderCallbacks(this.haveRenderCallbacks),this.patchedUpdateVersion!==e.updateVersion){this.patchedUpdateVersion=e.updateVersion;for(let r in this.iconPositions)this.patchUpdatedImage(this.iconPositions[r],e.getImage(r),t);for(let r in this.patternPositions)this.patchUpdatedImage(this.patternPositions[r],e.getImage(r),t)}}patchUpdatedImage(e,t,r){var l;if(!e||!t||!e.needsFirstWebGLRender&&e.version===t.version)return;e.needsFirstWebGLRender=!1,e.version=t.version;let[i,n]=e.tl,a=(l=t.userImage)==null?void 0:l.data;if(!kC(a)){r.update(t.data,void 0,{x:i,y:n});return}let{width:o,height:s}=t.data;r.context.setCustomLayerDefaults(),a.renderWithWebGL({gl:r.context.gl,texture:r.texture,x:i,y:n,width:o,height:s}),r.context.setDirty()}};Gi("ImagePosition",Tq),Gi("ImageAtlas",N3r);Rnt=(function(e){return e[e.none=0]="none",e[e.horizontal=1]="horizontal",e[e.vertical=2]="vertical",e[e.horizontalOnly=3]="horizontalOnly",e})(Rnt||{});Het=new RegExp("^\\p{gc=M}$","u");Wet=32640;P6=class Nnt extends tr{constructor(t,r,i,n){super(t,r),this.angle=i,n!==void 0&&(this.segment=n)}clone(){return new Nnt(this.x,this.y,this.angle,this.segment)}};Gi("Anchor",P6);uB=class{constructor(e,t,r,i,n,a,o,s,l,u){var c;if(this.boxStartIndex=e.length,l){let f=a.top,h=a.bottom,p=a.collisionPadding;p&&(f-=p[1],h+=p[3]);let d=h-f;d>0&&(d=Math.max(10,d),this.circleDiameter=d)}else{let f=(c=a.image)!=null&&c.content&&(a.image.textFitWidth||a.image.textFitHeight)?Ont(a):{x1:a.left,y1:a.top,x2:a.right,y2:a.bottom};f.y1=f.y1*o-s[0],f.y2=f.y2*o+s[2],f.x1=f.x1*o-s[3],f.x2=f.x2*o+s[1];let h=a.collisionPadding;if(h&&(f.x1-=h[0]*o,f.y1-=h[1]*o,f.x2+=h[2]*o,f.y2+=h[3]*o),u){let p=new tr(f.x1,f.y1),d=new tr(f.x2,f.y1),v=new tr(f.x1,f.y2),m=new tr(f.x2,f.y2),g=u*Math.PI/180;p._rotate(g),d._rotate(g),v._rotate(g),m._rotate(g),f.x1=Math.min(p.x,d.x,v.x,m.x),f.x2=Math.max(p.x,d.x,v.x,m.x),f.y1=Math.min(p.y,d.y,v.y,m.y),f.y2=Math.max(p.y,d.y,v.y,m.y)}e.emplaceBack(t.x,t.y,f.x1,f.y1,f.x2,f.y2,r,i,n)}this.boxEndIndex=e.length}},dwr=class{constructor(e=[],t=(r,i)=>ri)){if(this.data=e,this.length=this.data.length,this.compare=t,this.length>0)for(let r=(this.length>>1)-1;r>=0;r--)this._down(r)}push(e){this.data.push(e),this._up(this.length++)}pop(){if(this.length===0)return;let e=this.data[0],t=this.data.pop();return--this.length>0&&(this.data[0]=t,this._down(0)),e}peek(){return this.data[0]}_up(e){let{data:t,compare:r}=this,i=t[e];for(;e>0;){let n=e-1>>1,a=t[n];if(r(i,a)>=0)break;t[e]=a,e=n}t[e]=i}_down(e){let{data:t,compare:r}=this,i=this.length>>1,n=t[e];for(;e=0)break;t[e]=t[a],e=a}t[e]=n}};M6=class{constructor(e,t,r,i){this.p=new tr(e,t),this.h=r,this.d=gwr(this.p,i),this.max=this.d+this.h*Math.SQRT2}};Mq=(function(e){return e[e.center=1]="center",e[e.left=2]="left",e[e.right=3]="right",e[e.top=4]="top",e[e.bottom=5]="bottom",e[e["top-left"]=6]="top-left",e[e["top-right"]=7]="top-right",e[e["bottom-left"]=8]="bottom-left",e[e["bottom-right"]=9]="bottom-right",e})({}),nae=1/0;Awr=[{name:"a_fade_opacity",components:1,type:"Uint8",offset:0}];Yie=class{constructor(e){this.layoutVertexArray=new Yxr,this.indexArray=new Fv,this.programConfigurations=e,this.segments=new Xs,this.dynamicLayoutVertexArray=new Xxr,this.opacityVertexArray=new Zxr,this.hasVisibleVertices=!1,this.placedSymbolArray=new Sit}isEmpty(){return this.layoutVertexArray.length===0&&this.indexArray.length===0&&this.dynamicLayoutVertexArray.length===0&&this.opacityVertexArray.length===0}upload(e,t,r,i){this.isEmpty()||(r&&(this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,N_r.members),this.indexBuffer=e.createIndexBuffer(this.indexArray,t),this.dynamicLayoutVertexBuffer=e.createVertexBuffer(this.dynamicLayoutVertexArray,U_r.members,!0),this.opacityVertexBuffer=e.createVertexBuffer(this.opacityVertexArray,Awr,!0),this.opacityVertexBuffer.itemSize=1),(r||i)&&this.programConfigurations.upload(e))}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.dynamicLayoutVertexBuffer.destroy(),this.opacityVertexBuffer.destroy())}};Gi("SymbolBuffers",Yie);Xie=class{constructor(e,t,r){this.layoutVertexArray=new e,this.layoutAttributes=t,this.indexArray=new r,this.segments=new Xs,this.collisionVertexArray=new Kxr}upload(e){this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,this.layoutAttributes),this.indexBuffer=e.createIndexBuffer(this.indexArray),this.collisionVertexBuffer=e.createVertexBuffer(this.collisionVertexArray,V_r.members,!0)}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.segments.destroy(),this.collisionVertexBuffer.destroy())}};Gi("CollisionBuffers",Xie);LC=class{constructor(e){this.collisionBoxArray=e.collisionBoxArray,this.zoom=e.zoom,this.overscaling=e.overscaling,this.layers=e.layers,this.layerIds=this.layers.map(o=>o.id),this.index=e.index,this.pixelRatio=e.pixelRatio,this.sourceLayerIndex=e.sourceLayerIndex,this.hasDependencies=!0,this.hasRTLText=!1,this.maxHeightOffset=0,this.sortKeyRanges=[],this.collisionCircleArray=[],this.maxGlyphs=65535;let t=this.layers[0]._unevaluatedLayout._values;this.textSizeData=Yet(this.zoom,t["text-size"]),this.iconSizeData=Yet(this.zoom,t["icon-size"]);let r=this.layers[0].layout,i=r.get("symbol-sort-key"),n=r.get("symbol-z-order");this.canOverlap=sC(r,"text-overlap","text-allow-overlap")!=="never"||sC(r,"icon-overlap","icon-allow-overlap")!=="never"||r.get("text-ignore-placement")||r.get("icon-ignore-placement"),this.sortFeaturesByKey=n!=="viewport-y"&&!i.isConstant();let a=n==="viewport-y"||n==="auto"&&!this.sortFeaturesByKey;this.sortFeaturesByY=a&&this.canOverlap,r.get("symbol-placement")==="point"&&(this.writingModes=r.get("text-writing-mode").map(o=>Rnt[o])),this.stateDependentLayerIds=this.layers.filter(o=>o.isStateDependent()).map(o=>o.id),this.sourceID=e.sourceID}createArrays(){this.text=new Yie(new a3(this.layers,this.zoom,e=>e.startsWith("text"))),this.icon=new Yie(new a3(this.layers,this.zoom,e=>e.startsWith("icon"))),this.glyphOffsetArray=new Cit,this.lineVertexArray=new Dit,this.symbolInstances=new kit,this.textAnchorOffsets=new Lit}calculateGlyphDependencies(e,t,r,i,n){var l;let a=(i||this.allowVerticalPlacement)&&n,o=eae.fromFeature(e,r),s=o.graphemes();for(let u=0;u0)&&(a.value.kind!=="constant"||a.value.value.length>0),u=s.value.kind!=="constant"||!!s.value.value||Object.keys(s.parameters).length>0,c=n.get("symbol-sort-key");if(this.features=[],!l&&!u)return;let f=t.iconDependencies,h=t.glyphDependencies,p=t.availableImages,d=new Io(this.zoom);for(let{feature:m,id:g,index:w,sourceLayerIndex:_}of e){let b=i._featureFilter.needGeometry,S=px(m,b);if(!i._featureFilter.filter(d,S,r))continue;b||(S.geometry=h3(m));let x;if(l){let E=i.getValueAndResolveTokens("text-field",S,r,p),M=Pm.factory(E);this.hasRTLText||(this.hasRTLText=Mwr(M)),x=f3r(M,i,S)}let T;if(u){let E=i.getValueAndResolveTokens("icon-image",S,r,p);T=E instanceof sg?E:sg.fromString(E)}if(!x&&!T)continue;let A=this.sortFeaturesByKey?c.evaluate(S,{},r):void 0,y={id:g,text:x,icon:T,index:w,sourceLayerIndex:_,geometry:S.geometry,properties:m.properties,type:SC.types[m.type],sortKey:A};if(this.features.push(y),T&&(f[T.name]=!0),x){let E=a.evaluate(S,{},r).join(","),M=n.get("text-rotation-alignment")!=="viewport"&&n.get("symbol-placement")!=="point";this.allowVerticalPlacement=(v=this.writingModes)==null?void 0:v.includes(2);let C=Hie(x.toString());this.calculateGlyphDependencies(x,h,E,M,C);for(let k of x.sections)k.image&&(f[k.image.name]=!0)}}n.get("symbol-placement")==="line"&&(this.features=d3r(this.features)),this.sortFeaturesByKey&&this.features.sort((m,g)=>m.sortKey-g.sortKey)}update(e,t,r){this.stateDependentLayers.length&&(this.text.programConfigurations.updatePaintArrays(e,t,this.layers,{imagePositions:r}),this.icon.programConfigurations.updatePaintArrays(e,t,this.layers,{imagePositions:r}))}addFeatures({options:e,canonical:t,glyphMap:r,glyphPositions:i,iconMap:n,iconPositions:a,showCollisionBoxes:o}){ywr({bucket:this,glyphMap:r,glyphPositions:i,imageMap:n,imagePositions:a,showCollisionBoxes:o,canonical:t,subdivisionGranularity:e.subdivisionGranularity,hasPromoteId:e.featureIndex.promoteId!=null})}isEmpty(){return this.symbolInstances.length===0}uploadPending(){return!this.uploaded||this.text.programConfigurations.needsUpload||this.icon.programConfigurations.needsUpload}upload(e){!this.uploaded&&this.hasDebugData()&&(this.textCollisionBox.upload(e),this.iconCollisionBox.upload(e)),this.text.upload(e,this.sortFeaturesByY,!this.uploaded,this.text.programConfigurations.needsUpload),this.icon.upload(e,this.sortFeaturesByY,!this.uploaded,this.icon.programConfigurations.needsUpload),this.uploaded=!0}destroyDebugData(){this.textCollisionBox.destroy(),this.iconCollisionBox.destroy()}destroy(){this.text.destroy(),this.icon.destroy(),this.hasDebugData()&&this.destroyDebugData()}addToLineVertexArray(e,t){let r=this.lineVertexArray.length;if(e.segment!==void 0){let i=e.dist(t[e.segment+1]),n=e.dist(t[e.segment]),a={};for(let o=e.segment+1;o=0;o--)a[o]={x:t[o].x,y:t[o].y,tileUnitDistanceFromAnchor:n},o>0&&(n+=t[o-1].dist(t[o]));for(let o=0;o0}hasIconData(){return this.icon.segments.get().length>0}hasDebugData(){return this.textCollisionBox&&this.iconCollisionBox}hasTextCollisionBoxData(){return this.hasDebugData()&&this.textCollisionBox.segments.get().length>0}hasIconCollisionBoxData(){return this.hasDebugData()&&this.iconCollisionBox.segments.get().length>0}addIndicesForPlacedSymbol(e,t){let r=e.placedSymbolArray.get(t),i=r.vertexStartIndex+r.numGlyphs*4;for(let n=r.vertexStartIndex;ni[o]-i[s]||n[s]-n[o]),a}addToSortKeyRanges(e,t){let r=this.sortKeyRanges[this.sortKeyRanges.length-1];(r==null?void 0:r.sortKey)===t?r.symbolInstanceEnd=e+1:this.sortKeyRanges.push({sortKey:t,symbolInstanceStart:e,symbolInstanceEnd:e+1})}sortFeatures(e){if(this.sortFeaturesByY&&this.sortedAngle!==e&&!(this.text.segments.get().length>1||this.icon.segments.get().length>1)){this.symbolInstanceIndexes=this.getSortedSymbolIndexes(e),this.sortedAngle=e,this.text.indexArray.clear(),this.icon.indexArray.clear(),this.featureSortOrder=[];for(let t of this.symbolInstanceIndexes){let r=this.symbolInstances.get(t);this.featureSortOrder.push(r.featureIndex);let i=[r.rightJustifiedTextSymbolIndex,r.centerJustifiedTextSymbolIndex,r.leftJustifiedTextSymbolIndex];for(let n=0;n=0&&i.indexOf(a)===n&&this.addIndicesForPlacedSymbol(this.text,a)}r.verticalPlacedTextSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.text,r.verticalPlacedTextSymbolIndex),r.placedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,r.placedIconSymbolIndex),r.verticalPlacedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,r.verticalPlacedIconSymbolIndex)}this.text.indexBuffer&&this.text.indexBuffer.updateData(this.text.indexArray),this.icon.indexBuffer&&this.icon.indexBuffer.updateData(this.icon.indexArray)}}};Gi("SymbolBucket",LC,{omit:["layers","collisionBoxArray","features","compareText"]});Ewr=()=>Jet||(Jet=new hc({"symbol-placement":new Pi(_r.layout_symbol["symbol-placement"],"symbol-placement"),"symbol-spacing":new Pi(_r.layout_symbol["symbol-spacing"],"symbol-spacing"),"symbol-avoid-edges":new Pi(_r.layout_symbol["symbol-avoid-edges"],"symbol-avoid-edges"),"symbol-sort-key":new En(_r.layout_symbol["symbol-sort-key"],"symbol-sort-key"),"symbol-z-order":new Pi(_r.layout_symbol["symbol-z-order"],"symbol-z-order"),"icon-allow-overlap":new Pi(_r.layout_symbol["icon-allow-overlap"],"icon-allow-overlap"),"icon-overlap":new Pi(_r.layout_symbol["icon-overlap"],"icon-overlap"),"icon-ignore-placement":new Pi(_r.layout_symbol["icon-ignore-placement"],"icon-ignore-placement"),"icon-optional":new Pi(_r.layout_symbol["icon-optional"],"icon-optional"),"icon-rotation-alignment":new En(_r.layout_symbol["icon-rotation-alignment"],"icon-rotation-alignment"),"icon-size":new En(_r.layout_symbol["icon-size"],"icon-size"),"icon-text-fit":new Pi(_r.layout_symbol["icon-text-fit"],"icon-text-fit"),"icon-text-fit-padding":new Pi(_r.layout_symbol["icon-text-fit-padding"],"icon-text-fit-padding"),"icon-image":new En(_r.layout_symbol["icon-image"],"icon-image"),"icon-rotate":new En(_r.layout_symbol["icon-rotate"],"icon-rotate"),"icon-padding":new En(_r.layout_symbol["icon-padding"],"icon-padding"),"icon-keep-upright":new Pi(_r.layout_symbol["icon-keep-upright"],"icon-keep-upright"),"icon-offset":new En(_r.layout_symbol["icon-offset"],"icon-offset"),"icon-anchor":new En(_r.layout_symbol["icon-anchor"],"icon-anchor"),"icon-pitch-alignment":new Pi(_r.layout_symbol["icon-pitch-alignment"],"icon-pitch-alignment"),"text-pitch-alignment":new Pi(_r.layout_symbol["text-pitch-alignment"],"text-pitch-alignment"),"text-rotation-alignment":new Pi(_r.layout_symbol["text-rotation-alignment"],"text-rotation-alignment"),"text-field":new En(_r.layout_symbol["text-field"],"text-field"),"text-font":new En(_r.layout_symbol["text-font"],"text-font"),"text-size":new En(_r.layout_symbol["text-size"],"text-size"),"text-max-width":new En(_r.layout_symbol["text-max-width"],"text-max-width"),"text-line-height":new Pi(_r.layout_symbol["text-line-height"],"text-line-height"),"text-letter-spacing":new En(_r.layout_symbol["text-letter-spacing"],"text-letter-spacing"),"text-justify":new En(_r.layout_symbol["text-justify"],"text-justify"),"text-radial-offset":new En(_r.layout_symbol["text-radial-offset"],"text-radial-offset"),"text-variable-anchor":new Pi(_r.layout_symbol["text-variable-anchor"],"text-variable-anchor"),"text-variable-anchor-offset":new En(_r.layout_symbol["text-variable-anchor-offset"],"text-variable-anchor-offset"),"text-anchor":new En(_r.layout_symbol["text-anchor"],"text-anchor"),"text-max-angle":new Pi(_r.layout_symbol["text-max-angle"],"text-max-angle"),"text-writing-mode":new Pi(_r.layout_symbol["text-writing-mode"],"text-writing-mode"),"text-rotate":new En(_r.layout_symbol["text-rotate"],"text-rotate"),"text-padding":new Pi(_r.layout_symbol["text-padding"],"text-padding"),"text-keep-upright":new Pi(_r.layout_symbol["text-keep-upright"],"text-keep-upright"),"text-transform":new En(_r.layout_symbol["text-transform"],"text-transform"),"text-offset":new En(_r.layout_symbol["text-offset"],"text-offset"),"text-allow-overlap":new Pi(_r.layout_symbol["text-allow-overlap"],"text-allow-overlap"),"text-overlap":new Pi(_r.layout_symbol["text-overlap"],"text-overlap"),"text-ignore-placement":new Pi(_r.layout_symbol["text-ignore-placement"],"text-ignore-placement"),"text-optional":new Pi(_r.layout_symbol["text-optional"],"text-optional"),"symbol-height-offset":new En(_r.layout_symbol["symbol-height-offset"],"symbol-height-offset"),"symbol-height-anchor":new Pi(_r.layout_symbol["symbol-height-anchor"],"symbol-height-anchor")})),kwr=()=>Qet||(Qet=new hc({"icon-opacity":new En(_r.paint_symbol["icon-opacity"],"icon-opacity"),"icon-color":new En(_r.paint_symbol["icon-color"],"icon-color"),"icon-halo-color":new En(_r.paint_symbol["icon-halo-color"],"icon-halo-color"),"icon-halo-width":new En(_r.paint_symbol["icon-halo-width"],"icon-halo-width"),"icon-halo-blur":new En(_r.paint_symbol["icon-halo-blur"],"icon-halo-blur"),"icon-translate":new Pi(_r.paint_symbol["icon-translate"],"icon-translate"),"icon-translate-anchor":new Pi(_r.paint_symbol["icon-translate-anchor"],"icon-translate-anchor"),"text-opacity":new En(_r.paint_symbol["text-opacity"],"text-opacity"),"text-color":new En(_r.paint_symbol["text-color"],"text-color",{runtimeType:Mv,getOverride:e=>e.textColor,hasOverride:e=>!!e.textColor}),"text-halo-color":new En(_r.paint_symbol["text-halo-color"],"text-halo-color"),"text-halo-width":new En(_r.paint_symbol["text-halo-width"],"text-halo-width"),"text-halo-blur":new En(_r.paint_symbol["text-halo-blur"],"text-halo-blur"),"text-translate":new Pi(_r.paint_symbol["text-translate"],"text-translate"),"text-translate-anchor":new Pi(_r.paint_symbol["text-translate-anchor"],"text-translate-anchor")})),Ure={get paint(){return kwr()},get layout(){return Ewr()}},Xnt=class{constructor(e){if(e.property.overrides===void 0)throw Error("overrides must be provided to instantiate FormatSectionOverride class");this.type=e.property.overrides?e.property.overrides.runtimeType:mC,this.defaultValue=e}evaluate(e){if(e.formattedSection){let t=this.defaultValue.property.overrides;if(t!=null&&t.hasOverride(e.formattedSection))return t.getOverride(e.formattedSection)}return e.feature&&e.featureState?this.defaultValue.evaluate(e.feature,e.featureState):this.defaultValue.property.specification.default}eachChild(e){if(!this.defaultValue.isConstant()){let t=this.defaultValue.value;e(t._styleExpression.expression)}}outputDefined(){return!1}serialize(){return null}};Gi("FormatSectionOverride",Xnt,{omit:["defaultValue"]});aae=e=>e.type==="symbol",Cwr=class Zie extends Dv{constructor(t,r){super(t,Ure,r)}recalculate(t,r){super.recalculate(t,r);let i=this.layout.get("icon-rotation-alignment");if((i.value.kind!=="constant"||i.value.value==="auto")&&(this.layout._values["icon-rotation-alignment"]=new rp(i.property,{kind:"constant",value:this.layout.get("symbol-placement")==="point"?"viewport":"map"},i.parameters)),this.layout.get("text-rotation-alignment")==="auto"&&(this.layout.get("symbol-placement")==="point"?this.layout._values["text-rotation-alignment"]="viewport":this.layout._values["text-rotation-alignment"]="map"),this.layout.get("text-pitch-alignment")==="auto"&&(this.layout._values["text-pitch-alignment"]=this.layout.get("text-rotation-alignment")==="map"?"map":"viewport"),this.layout.get("icon-pitch-alignment")==="auto"&&(this.layout._values["icon-pitch-alignment"]=this.layout.get("icon-rotation-alignment").constantOr("viewport")),this.layout.get("symbol-placement")==="point"){let n=this.layout.get("text-writing-mode");if(n){let a=[];for(let o of n)a.includes(o)||a.push(o);this.layout._values["text-writing-mode"]=a}else this.layout._values["text-writing-mode"]=["horizontal"]}this._setPaintOverrides()}getValueAndResolveTokens(t,r,i,n){let a=this.layout.get(t).evaluate(r,{},i,n),o=this._unevaluatedLayout._values[t];return!o.isDataDriven()&&!sq(o.value)&&a?Swr(r.properties,a):a}createBucket(t){return new LC(t)}queryRadius(){return 0}queryIntersectsFeature(){throw Error("Should take a different path in FeatureIndex")}_setPaintOverrides(){for(let t of Ure.paint.overridableProperties){if(!Zie.hasPaintOverride(this.layout,t))continue;let r=this.paint.get(t),i=new Fne(new Xnt(r),`layers[${this.id}].paint.${r.property.name}`,r.property.specification),n=null;n=r.value.kind==="constant"||r.value.kind==="source"?new Kk("source",i):new wB("composite",i,r.value.zoomStops),this.paint._values[t]=new rp(r.property,n,r.parameters)}}_handleOverridablePaintPropertyUpdate(t,r,i){return!this.layout||r.isDataDriven()||i.isDataDriven()?!1:Zie.hasPaintOverride(this.layout,t)}static hasPaintOverride(t,r){let i=t.get("text-field"),n=Ure.paint.properties[r],a=!1,o=s=>{var l;for(let u of s)if((l=n.overrides)!=null&&l.hasOverride(u)){a=!0;return}};if(i.value.kind==="constant"&&i.value.value instanceof Pm)o(i.value.value.sections);else if(i.value.kind==="source"||i.value.kind==="composite"){let s=u=>{if(!a)if(u instanceof q6&&au(u.value)===yC){let c=u.value;o(c.sections)}else u instanceof prt?o(u.sections):u.eachChild(s)},l=i.value;l._styleExpression&&s(l._styleExpression.expression)}return a}};Fwr=()=>ett||(ett=new hc({"background-color":new Pi(_r.paint_background["background-color"],"background-color"),"background-pattern":new Tit(_r.paint_background["background-pattern"],"background-pattern"),"background-opacity":new Pi(_r.paint_background["background-opacity"],"background-opacity")})),Lwr={get paint(){return Fwr()}},Znt=e=>e.type==="background",Pwr=class extends Dv{constructor(e,t){super(e,Lwr,t)}};Jnt=e=>e.type==="custom",Iwr=class extends Dv{constructor(e,t){super(e,{},t),this.onAdd=r=>{this.implementation.onAdd&&this.implementation.onAdd(r,r.painter.context.gl)},this.onRemove=r=>{this.implementation.onRemove&&this.implementation.onRemove(r,r.painter.context.gl)},this.implementation=e}is3D(){return this.implementation.renderingMode==="3d"}hasOffscreenPass(){return this.implementation.prerender!==void 0}recalculate(){}updateTransitions(){}hasTransition(){return!1}serialize(){throw Error("Custom layers cannot be serialized")}};Rwr=class{constructor(e){this._methodToThrottle=e,this._triggered=!1,this._channel=new MessageChannel,this._channel.port2.onmessage=()=>{this._triggered=!1,this._methodToThrottle()}}trigger(){var e;this._triggered||(this._triggered=!0,(e=this._channel)==null||e.port1.postMessage(!0))}remove(){delete this._channel,this._methodToThrottle=()=>{}}},zwr={once:!0},Qnt=class{constructor(e,t){this.target=e,this.mapId=t,this.resolveRejects={},this.tasks={},this.taskQueue=[],this.abortControllers={},this.messageHandlers={},this.invoker=new Rwr(()=>this.process()),this.subscription=jk(this.target,"message",r=>this.receive(r),!1),this.globalScope=i3(self)?e:window}registerMessageHandler(e,t){this.messageHandlers[e]=t}unregisterMessageHandler(e){delete this.messageHandlers[e]}sendAsync(e,t){return new Promise((r,i)=>{let n=Math.round(Math.random()*1e18).toString(36).substring(0,10),a=t?jk(t.signal,"abort",()=>{a==null||a.unsubscribe(),delete this.resolveRejects[n];let l={id:n,type:"",origin:location.origin,targetMapId:e.targetMapId,sourceMapId:this.mapId};this.target.postMessage(l),i(new W6(t.signal.reason))},zwr):null;this.resolveRejects[n]={resolve:l=>{a==null||a.unsubscribe(),r(l)},reject:l=>{a==null||a.unsubscribe(),i(l)}};let o=[],s=_a(dn({},e),{id:n,sourceMapId:this.mapId,origin:location.origin,data:Vk(e.data,o)});this.target.postMessage(s,{transfer:o})})}receive(e){let t=e.data,r=t.id,i=["file://","resource://android","null"],n=[t.origin,location.origin],a=t.origin===location.origin,o=n.some(s=>i.includes(s));if((a||o)&&!(t.targetMapId&&this.mapId!==t.targetMapId)){if(t.type===""){delete this.tasks[r];let s=this.abortControllers[r];delete this.abortControllers[r],s&&s.abort();return}if(i3(self)||t.mustQueue){this.tasks[r]=t,this.taskQueue.push(r),this.invoker.trigger();return}this.processTask(r,t)}}process(){if(this.taskQueue.length===0)return;let e=this.taskQueue.shift(),t=this.tasks[e];delete this.tasks[e],this.taskQueue.length>0&&this.invoker.trigger(),t&&this.processTask(e,t)}processTask(e,t){return Yi(this,null,function*(){if(t.type===""){let n=this.resolveRejects[e];if(delete this.resolveRejects[e],!n)return;t.error?n.reject(qc(Gk(t.error))):n.resolve(Gk(t.data));return}if(!this.messageHandlers[t.type]){this.completeTask(e,null,null);return}let r=Gk(t.data),i=new AbortController;this.abortControllers[e]=i;try{let n=yield this.messageHandlers[t.type](t.sourceMapId,r,i);this.completeTask(e,null,n)}catch(n){this.completeTask(e,qc(n))}})}completeTask(e,t,r){let i=[];delete this.abortControllers[e];let n={id:e,type:"",sourceMapId:this.mapId,origin:location.origin,error:t?Vk(t):null,data:Vk(r,i)};this.target.postMessage(n,{transfer:i})}remove(){this.invoker.remove(),this.subscription.unsubscribe()}};PC=class{constructor(e,t,r){if(!Bwr(e,t,r))throw Error(`x=${t}, y=${r}, z=${e} outside of bounds. 0<=x<${2**e}, 0<=y<${2**e} 0<=z<=25 `);this.z=e,this.x=t,this.y=r,this.key=t3(0,e,e,t,r)}equals(e){return this.z===e.z&&this.x===e.x&&this.y===e.y}url(e,t,r){let i=qwr(this.x,this.y,this.z),n=Owr(this.z,this.x,this.y);return e[(this.x+this.y)%e.length].replace(/{prefix}/g,(this.x%16).toString(16)+(this.y%16).toString(16)).replace(/{z}/g,String(this.z)).replace(/{x}/g,String(this.x)).replace(/{y}/g,String(r==="tms"?2**this.z-this.y-1:this.y)).replace(/{ratio}/g,t>1?"@2x":"").replace(/{quadkey}/g,n).replace(/{bbox-epsg-3857}/g,i)}isChildOf(e){let t=this.z-e.z;return t>0&&e.x===this.x>>t&&e.y===this.y>>t}getTilePoint(e){let t=2**this.z;return new tr((e.x*t-this.x)*Br,(e.y*t-this.y)*Br)}toString(){return`${this.z}/${this.x}/${this.y}`}},IC=class{constructor(e,t){this.wrap=e,this.canonical=t,this.key=t3(e,t.z,t.z,t.x,t.y)}},Vc=class ep{constructor(t,r,i,n,a){if(this.terrainRttPosMatrix32f=null,t= z; overscaledZ = ${t}; z = ${i}`);this.overscaledZ=t,this.wrap=r,this.canonical=new PC(i,+n,+a),this.key=t3(r,t,i,n,a)}clone(){return new ep(this.overscaledZ,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)}equals(t){return this.overscaledZ===t.overscaledZ&&this.wrap===t.wrap&&this.canonical.equals(t.canonical)}scaledTo(t){if(t>this.overscaledZ)throw Error(`targetZ > this.overscaledZ; targetZ = ${t}; overscaledZ = ${this.overscaledZ}`);let r=this.canonical.z-t;return t>this.canonical.z?new ep(t,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y):new ep(t,this.wrap,t,this.canonical.x>>r,this.canonical.y>>r)}isOverscaled(){return this.overscaledZ>this.canonical.z}calculateScaledKey(t,r){if(t>this.overscaledZ)throw Error(`targetZ > this.overscaledZ; targetZ = ${t}; overscaledZ = ${this.overscaledZ}`);let i=this.canonical.z-t;return t>this.canonical.z?t3(this.wrap*+r,t,this.canonical.z,this.canonical.x,this.canonical.y):t3(this.wrap*+r,t,t,this.canonical.x>>i,this.canonical.y>>i)}isChildOf(t){if(t.wrap!==this.wrap||this.overscaledZ-t.overscaledZ<=0)return!1;if(t.overscaledZ===0)return this.overscaledZ>0;let r=this.canonical.z-t.canonical.z;return r<0?!1:t.canonical.x===this.canonical.x>>r&&t.canonical.y===this.canonical.y>>r}children(t){if(this.overscaledZ>=t)return[new ep(this.overscaledZ+1,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)];let r=this.canonical.z+1,i=this.canonical.x*2,n=this.canonical.y*2;return[new ep(r,this.wrap,r,i,n),new ep(r,this.wrap,r,i+1,n),new ep(r,this.wrap,r,i,n+1),new ep(r,this.wrap,r,i+1,n+1)]}isLessThan(t){return this.wrapt.wrap?!1:this.overscaledZt.overscaledZ?!1:this.canonical.xt.canonical.x?!1:this.canonical.y=0&&t=0&&r=u)return null;let f=this.canonical.x+n,h=this.wrap;return f<0?(h-=Math.ceil(-f/u),f=(f%u+u)%u):f>=u&&(h+=Math.floor(f/u),f%=u),{tileID:new ep(this.overscaledZ,h,l,f,c),x:o,y:s}}};Vre=Math.PI*6378137;Gi("CanonicalTileID",PC),Gi("OverscaledTileID",Vc,{omit:["terrainRttPosMatrix32f"]});RC="_geojsonTileLayer",Nwr=class{constructor(e){this._stringToNumber={},this._numberToString=[];for(let t=0;t=this._numberToString.length)throw Error(`Out of bounds. Index requested n=${e} can't be >= this._numberToString.length ${this._numberToString.length}`);return this._numberToString[e]}},lae=class{constructor(e,t,r,i,n){this.type="Feature",this._vectorTileFeature=e,this._x=r,this._y=i,this._z=t;for(let a in e.properties)typeof e.properties[a]=="string"&&e.properties[a].startsWith("__$json__:")&&(e.properties[a]=JSON.parse(e.properties[a].slice(10)));this.properties=e.properties,this.id=n}projectPoint(e,t,r,i){return[(e.x+t)*360/i-180,360/Math.PI*Math.atan(Math.exp((1-(e.y+r)*2/i)*Math.PI))-90]}projectLine(e,t,r,i){return e.map(n=>this.projectPoint(n,t,r,i))}get geometry(){if(this._geometry)return this._geometry;let e=this._vectorTileFeature,t=e.extent*2**this._z,r=e.extent*this._x,i=e.extent*this._y,n=e.loadGeometry();switch(e.type){case 1:{let a=[];for(let s of n)a.push(s[0]);let o=this.projectLine(a,r,i,t);this._geometry=a.length===1?{type:"Point",coordinates:o[0]}:{type:"MultiPoint",coordinates:o};break}case 2:{let a=n.map(o=>this.projectLine(o,r,i,t));this._geometry=a.length===1?{type:"LineString",coordinates:a[0]}:{type:"MultiLineString",coordinates:a};break}case 3:{let a=dnt(n),o=[];for(let s of a)o.push(s.map(l=>this.projectLine(l,r,i,t)));this._geometry=o.length===1?{type:"Polygon",coordinates:o[0]}:{type:"MultiPolygon",coordinates:o};break}default:throw Error(`unknown feature type: ${e.type}`)}return this._geometry}set geometry(e){this._geometry=e}toJSON(){let e={geometry:this.geometry};for(let t in this)t!=="_geometry"&&t!=="_vectorTileFeature"&&t!=="_x"&&t!=="_y"&&t!=="_z"&&(e[t]=this[t]);return e}},v3=class{constructor(e,t,r){this._name=e,this.dataBuffer=t,typeof r=="number"?this._size=r:(this.nullabilityBuffer=r,this._size=r.size())}getValue(e){return this.nullabilityBuffer&&!this.nullabilityBuffer.get(e)?null:this.getValueFromBuffer(e)}has(e){var t;return((t=this.nullabilityBuffer)==null?void 0:t.get(e))||!this.nullabilityBuffer}get name(){return this._name}get size(){return this._size}},Eq=class extends v3{},uae=class extends Eq{getValueFromBuffer(e){return this.dataBuffer[e]}},cae=class extends Eq{getValueFromBuffer(e){return this.dataBuffer[e]}},eat=class extends v3{constructor(e,t,r,i){super(e,t,i),this.delta=r}},fae=class extends eat{constructor(e,t,r,i,n){super(e,n?Int32Array.of(t):Uint32Array.of(t),r,i)}getValueFromBuffer(e){return this.dataBuffer[0]+e*this.delta}},hae=class extends v3{constructor(e,t,r,i){super(e,i?Int32Array.of(t):Uint32Array.of(t),r)}getValueFromBuffer(e){return this.dataBuffer[0]}},Uwr=class{constructor(e,t,r,i,n=4096){if(this._name=e,this._geometryVector=t,this._idVector=r,this._propertyVectors=i,this._extent=n,e.length===0)throw Error("Missing layer name")}get name(){return this._name}get idVector(){return this._idVector}get geometryVector(){return this._geometryVector}get propertyVectors(){var e;return(e=this._propertyVectors)!=null?e:[]}getPropertyVector(e){return this.propertyVectorsMap||(this.propertyVectorsMap=new Map(this.propertyVectors.map(t=>[t.name,t]))),this.propertyVectorsMap.get(e)}get numFeatures(){return this.geometryVector.numGeometries}get extent(){return this._extent}getFeatures(){let e=[],t=this.geometryVector.getGeometries();for(let r=0;r>>32-e;Kie=dae,pae=65536;Jie=iat(pae),h5r=3*Jie/256+Jie|0;(function(e){e.PRESENT="PRESENT",e.DATA="DATA",e.OFFSET="OFFSET",e.LENGTH="LENGTH"})(nu||(nu={}));(function(e){e.NONE="NONE",e.SINGLE="SINGLE",e.SHARED="SHARED",e.VERTEX="VERTEX",e.MORTON="MORTON",e.FSST="FSST"})(Bf||(Bf={}));(function(e){e.VERTEX="VERTEX",e.INDEX="INDEX",e.STRING="STRING",e.KEY="KEY"})(ig||(ig={}));(function(e){e.VAR_BINARY="VAR_BINARY",e.GEOMETRIES="GEOMETRIES",e.PARTS="PARTS",e.RINGS="RINGS",e.TRIANGLES="TRIANGLES",e.SYMBOL="SYMBOL",e.DICTIONARY="DICTIONARY"})(Hu||(Hu={}));r4r=[nu.PRESENT,nu.DATA,nu.OFFSET,nu.LENGTH],ott=[da.NONE,da.DELTA,da.COMPONENTWISE_DELTA,da.RLE,da.MORTON],i4r=[V0.NONE,V0.FAST_PFOR,V0.VARINT],n4r=[Bf.NONE,Bf.SINGLE,Bf.SHARED,Bf.VERTEX,Bf.MORTON,Bf.FSST],a4r=[ig.VERTEX,ig.INDEX,ig.STRING,ig.KEY],o4r=[Hu.VAR_BINARY,Hu.GEOMETRIES,Hu.PARTS,Hu.RINGS,Hu.TRIANGLES,Hu.SYMBOL,Hu.DICTIONARY];(function(e){e[e.FLAT=0]="FLAT",e[e.CONST=1]="CONST",e[e.SEQUENCE=2]="SEQUENCE",e[e.DICTIONARY=3]="DICTIONARY",e[e.FSST_DICTIONARY=4]="FSST_DICTIONARY"})(Rs||(Rs={}));Ev=class{constructor(e,t){this.values=e,this._size=t}get(e){let t=Math.floor(e/8),r=e%8;return(this.values[t]>>r&1)==1}set(e,t){let r=Math.floor(e/8),i=e%8;this.values[r]=this.values[r]|+!!t<>r&1}size(){return this._size}getBuffer(){return this.values}};p4r=new TextDecoder;gat=class extends Eq{getValueFromBuffer(e){return this.dataBuffer[e]}},mat=class extends eat{constructor(e,t,r,i,n){super(e,n?BigInt64Array.of(t):BigUint64Array.of(t),r,i)}getValueFromBuffer(e){return this.dataBuffer[0]+BigInt(e)*this.delta}};(function(e){e[e.POINT=0]="POINT",e[e.LINESTRING=1]="LINESTRING",e[e.POLYGON=2]="POLYGON",e[e.MULTIPOINT=3]="MULTIPOINT",e[e.MULTILINESTRING=4]="MULTILINESTRING",e[e.MULTIPOLYGON=5]="MULTIPOLYGON"})(Bc||(Bc={}));(function(e){e[e.POINT=0]="POINT",e[e.LINESTRING=1]="LINESTRING",e[e.POLYGON=2]="POLYGON"})(ltt||(ltt={}));(function(e){e[e.MORTON=0]="MORTON",e[e.VEC_2=1]="VEC_2",e[e.VEC_3=2]="VEC_3"})(cx||(cx={}));yat=class{constructor(e,t,r,i,n){this._vertexBufferType=e,this._topologyVector=t,this._vertexOffsets=r,this._vertexBuffer=i,this._mortonSettings=n}get vertexBufferType(){return this._vertexBufferType}get topologyVector(){return this._topologyVector}get vertexOffsets(){return this._vertexOffsets}get vertexBuffer(){return this._vertexBuffer}getSimpleEncodedVertex(e){let t=this.vertexOffsets?this.vertexOffsets[e]*2:e*2;return[this.vertexBuffer[t],this.vertexBuffer[t+1]]}getVertex(e){if(this.vertexOffsets&&this.mortonSettings){let r=this.vertexOffsets[e],i=this.vertexBuffer[r],n=_ae(i,this.mortonSettings.numBits,this.mortonSettings.coordinateShift);return[n.x,n.y]}let t=this.vertexOffsets?this.vertexOffsets[e]*2:e*2;return[this.vertexBuffer[t],this.vertexBuffer[t+1]]}getGeometries(){return S4r(this)}get mortonSettings(){return this._mortonSettings}};xat=class extends yat{constructor(e,t,r,i,n,a,o){super(r,i,n,a,o),this._numGeometries=e,this._geometryType=t}geometryType(e){return this._geometryType}get numGeometries(){return this._numGeometries}containsPolygonGeometry(){return this._geometryType===Bc.POLYGON||this._geometryType===Bc.MULTIPOLYGON}containsSingleGeometryType(){return!0}};_at=class extends yat{constructor(e,t,r,i,n,a){super(e,r,i,n,a),this._geometryTypes=t}geometryType(e){return this._geometryTypes[e]}get numGeometries(){return this._geometryTypes.length}containsPolygonGeometry(){for(let e=0;e_a(dn({},r),{[i.name]:new x6r(i)}),{})}},_6r=class{constructor(e,t){this.tileID=e,this.x=e.canonical.x,this.y=e.canonical.y,this.z=e.canonical.z,this.grid=new iie(Br,16,0),this.grid3D=new iie(Br,16,0),this.featureIndexArray=new Iit,this.promoteId=t}insert(e,t,r,i,n,a){let o=this.featureIndexArray.length;this.featureIndexArray.emplaceBack(r,i,n);let s=a?this.grid3D:this.grid;for(let l of t){let u=[1/0,1/0,-1/0,-1/0];for(let c of l)u[0]=Math.min(u[0],c.x),u[1]=Math.min(u[1],c.y),u[2]=Math.max(u[2],c.x),u[3]=Math.max(u[3],c.y);u[0]<8192&&u[1]<8192&&u[2]>=0&&u[3]>=0&&s.insert(o,u[0],u[1],u[2],u[3])}}loadVTLayers(){return this.vtLayers||(this.encoding==="mlt"?this.vtLayers=new b6r(this.rawTileData).layers:this.vtLayers=new v_r(new Lnt(this.rawTileData)).layers,this.sourceLayerCoder=new Nwr(this.vtLayers?Object.keys(this.vtLayers).sort():[RC])),this.vtLayers}query(e,t,r,i){this.loadVTLayers();let n=e.params,a=Br/e.tileSize/e.scale,o=U6(n.filter,"queryRenderedFeatures filter",n.globalState),s=e.queryGeometry,l=e.queryPadding*a,u=ap.fromPoints(s),c=this.grid.query(u.minX-l,u.minY-l,u.maxX+l,u.maxY+l),f=ap.fromPoints(e.cameraQueryGeometry).expandBy(l),h=this.grid3D.query(f.minX,f.minY,f.maxX,f.maxY,(v,m,g,w)=>cbr(e.cameraQueryGeometry,v-l,m-l,g+l,w+l));for(let v of h)c.push(v);c.sort(T6r);let p={},d;for(let v of c){if(v===d)continue;d=v;let m=this.featureIndexArray.get(v),g=null;this.loadMatchingFeature(p,m.bucketIndex,m.sourceLayerIndex,m.featureIndex,o,n.layers,n.availableImages,t,r,i,(w,_,b)=>(g||(g=h3(w)),_.queryIntersectsFeature({queryGeometry:s,feature:w,featureState:b,geometry:g,zoom:this.z,transform:e.transform,pixelsToTileUnits:a,pixelPosMatrix:e.pixelPosMatrix,unwrappedTileID:this.tileID.toUnwrapped(),getElevation:e.getElevation})))}return p}loadMatchingFeature(e,t,r,i,n,a,o,s,l,u,c){let f=this.bucketLayerIDs[t];if(a&&!f.some(v=>a.has(v)))return;let h=this.sourceLayerCoder.decode(r),p=this.vtLayers[h].feature(i);if(n.needGeometry){let v=px(p,!0);if(!n.filter(new Io(this.tileID.overscaledZ),v,this.tileID.canonical))return}else if(!n.filter(new Io(this.tileID.overscaledZ),p))return;let d=this.getId(p,h);for(let v of f){if(a&&!a.has(v))continue;let m=s[v];if(!m)continue;let g={};d&&u&&(g=u.getState(m.sourceLayer||"_geojsonTileLayer",d));let w=cn({},l[v]);w.paint=gtt(w.paint,m.paint,p,g,o),w.layout=gtt(w.layout,m.layout,p,g,o);let _=!c||c(p,m,g);if(!_)continue;let b=new lae(p,this.z,this.x,this.y,d);b.layer=w;let S=e[v];S===void 0&&(S=e[v]=[]),S.push({featureIndex:i,feature:b,intersectionZ:_})}}lookupSymbolFeatures(e,t,r,i,n,a,o,s){let l={};this.loadVTLayers();let u=U6(n.filterSpec,"queryRenderedFeatures symbol filter",n.globalState);for(let c of e)this.loadMatchingFeature(l,r,i,c,u,a,o,s,t);return l}hasLayer(e){for(let t of this.bucketLayerIDs)for(let r of t)if(e===r)return!0;return!1}getId(e,t){var i;let r=e.id;if(this.promoteId){let n=typeof this.promoteId=="string"?this.promoteId:this.promoteId[t];r=e.properties[n],typeof r=="boolean"&&(r=Number(r)),r===void 0&&((i=e.properties)!=null&&i.cluster)&&this.promoteId&&(r=Number(e.properties.cluster_id))}return r}};Gi("FeatureIndex",_6r,{omit:["rawTileData","sourceLayerCoder"]});Fat=class{constructor(e,t){this.max=e,this.onRemove=t,this.reset()}reset(){for(let e in this.data)for(let t of this.data[e])t.timeout&&clearTimeout(t.timeout),this.onRemove(t.value);return this.data={},this.order=[],this}add(e,t,r){let i=e.wrapped().key;this.data[i]===void 0&&(this.data[i]=[]);let n={value:t,timeout:void 0};if(r!==void 0&&(n.timeout=setTimeout(()=>{this.remove(e,n)},r)),this.data[i].push(n),this.order.push(i),this.order.length>this.max){let a=this._getAndRemoveByKey(this.order[0]);a&&this.onRemove(a)}return this}has(e){return e.wrapped().key in this.data}getAndRemove(e){return this.has(e)?this._getAndRemoveByKey(e.wrapped().key):null}_getAndRemoveByKey(e){let t=this.data[e].shift();return t.timeout&&clearTimeout(t.timeout),this.data[e].length===0&&delete this.data[e],this.order.splice(this.order.indexOf(e),1),t.value}getByKey(e){let t=this.data[e];return t?t[0].value:null}get(e){return this.has(e)?this.data[e.wrapped().key][0].value:null}remove(e,t){if(!this.has(e))return this;let r=e.wrapped().key,i=t===void 0?0:this.data[r].indexOf(t),n=this.data[r][i];return this.data[r].splice(i,1),n.timeout&&clearTimeout(n.timeout),this.data[r].length===0&&delete this.data[r],this.onRemove(n.value),this.order.splice(this.order.indexOf(r),1),this}setMaxSize(e){for(this.max=e;this.order.length>this.max;){let t=this._getAndRemoveByKey(this.order[0]);t&&this.onRemove(t)}return this}filter(e){let t=[];for(let r in this.data)for(let i of this.data[r])e(i.value)||t.push(i);for(let r of t)this.remove(r.value.tileID,r)}}});var Dlt={};Kn(Dlt,{AJAXError:()=>R6,AttributionControl:()=>wlt,BoxZoomHandler:()=>clt,CanvasSource:()=>fst,CooperativeGesturesHandler:()=>blt,DoubleClickZoomHandler:()=>glt,DragPanHandler:()=>mlt,DragRotateHandler:()=>ylt,EXTENT:()=>Br,EdgeInsets:()=>ioe,ErrorEvent:()=>An,Event:()=>i0,Evented:()=>lu,FullscreenControl:()=>Gkr,FullscreenEvent:()=>coe,GPUInitializationError:()=>llt,GeoJSONSource:()=>ost,GeolocateControl:()=>qkr,GeolocateErrorEvent:()=>klt,GeolocateEvent:()=>x3,GeolocatePositionEvent:()=>uoe,GlobeControl:()=>jkr,Hash:()=>ult,ImageSource:()=>sT,KeyboardHandler:()=>plt,LngLat:()=>pn,LngLatBounds:()=>Iv,LogoControl:()=>Tlt,Map:()=>Dkr,MapBoxZoomEvent:()=>Wae,MapContextEvent:()=>Hq,MapLibreEvent:()=>pc,MapLibreMap:()=>Dkr,MapMouseEvent:()=>n0,MapMovementEvent:()=>kn,MapProjectionEvent:()=>Wot,MapSourceDataEvent:()=>qs,MapStyleDataEvent:()=>cp,MapStyleImageMissingEvent:()=>Yot,MapStyleLoadEvent:()=>$ae,MapTerrainEvent:()=>$ot,MapTouchEvent:()=>YC,MapWheelEvent:()=>jot,Marker:()=>loe,MarkerClickEvent:()=>Elt,MarkerDragEvent:()=>y3,MercatorCoordinate:()=>Mo,NavigationControl:()=>Lkr,Point:()=>tr,Popup:()=>Ykr,PopupEvent:()=>foe,RasterDEMTileSource:()=>nst,RasterTileSource:()=>goe,ScaleControl:()=>Nkr,ScrollZoomHandler:()=>vlt,Style:()=>aoe,TerrainControl:()=>Hkr,TwoFingersTouchPitchHandler:()=>dlt,TwoFingersTouchRotateHandler:()=>hlt,TwoFingersTouchZoomHandler:()=>flt,TwoFingersTouchZoomRotateHandler:()=>xlt,VectorTileSource:()=>ist,VideoSource:()=>cst,addProtocol:()=>Ktt,addSourceType:()=>NTr,clearPrewarmedResources:()=>dTr,config:()=>r0,createTileMesh:()=>lst,getGlobalDispatcher:()=>voe,getMaxParallelImageRequests:()=>rCr,getRTLTextPluginStatus:()=>Jkr,getVersion:()=>Qkr,getWorkerCount:()=>eCr,getWorkerUrl:()=>nCr,importScriptInWorkers:()=>oCr,isTimeFrozen:()=>C6r,now:()=>zo,prewarm:()=>hTr,removeProtocol:()=>Jtt,restoreNow:()=>k6r,setMaxParallelImageRequests:()=>iCr,setNow:()=>E6r,setRTLTextPlugin:()=>Kkr,setWorkerCount:()=>tCr,setWorkerUrl:()=>aCr});function Hot(){var e=new $u(4);return $u!=Float32Array&&(e[1]=0,e[2]=0),e[0]=1,e[3]=1,e}function A6r(e,t){var r=t[0],i=t[1],n=t[2],a=t[3],o=r*a-n*i;return o?(o=1/o,e[0]=a*o,e[1]=-i*o,e[2]=-n*o,e[3]=r*o,e):null}function M6r(e){return e[0]*e[3]-e[2]*e[1]}function S6r(e,t,r){var i=t[0],n=t[1],a=t[2],o=t[3],s=Math.sin(r),l=Math.cos(r);return e[0]=i*l+a*s,e[1]=n*l+o*s,e[2]=i*-s+a*l,e[3]=n*-s+o*l,e}function zo(){return iO.getCurrentTime()}function E6r(e){iO.setNow(e)}function k6r(){iO.restoreNow()}function C6r(){return iO.isFrozen()}function Sae(){return OC!=null||(OC={getAttribute:Element.prototype.getAttribute,getAttributeNames:Element.prototype.getAttributeNames,querySelectorAll:Element.prototype.querySelectorAll,remove:Element.prototype.remove,removeAttribute:Element.prototype.removeAttribute,localName:Object.getOwnPropertyDescriptor(Element.prototype,"localName").get,namespaceURI:Object.getOwnPropertyDescriptor(Element.prototype,"namespaceURI").get}),OC}function R6r(e,t){let r={};for(let i in e)i!=="ref"&&(r[i]=e[i]);return trt.forEach(i=>{i in t&&(r[i]=t[i])}),r}function Pat(e){e=e.slice();let t=Object.create(null);for(let r=0;r{"source"in s&&n[s.source]?r.push({command:"removeLayer",args:[s.id]}):o.push(s)}),r=r.concat(a),O6r(o,t.layers,r),i&&t.terrain&&r.push({command:"setTerrain",args:[t.terrain]})}catch(i){console.warn("Unable to compute style diff:",i),r=[{command:"setStyle",args:[t]}]}return r}function U6r(){let e={},t=_r.$version;for(let r in _r.$root){let i=_r.$root[r];if(i.required){let n=null;n=r==="version"?t:i.type==="array"?[]:{},n!=null&&(e[r]=n)}}return e}function jq(e){let t=[];if(typeof e=="string")t.push({id:"default",url:e});else if(e&&e.length>0){let r=[];for(let{id:i,url:n}of e){let a=`${i}${n}`;r.includes(a)||(r.push(a),t.push({id:i,url:n}))}}return t}function Bat(e,t,r){try{let i=new URL(e);return i.pathname+=`${t}${r}`,i.toString()}catch(i){throw Error(`Invalid sprite URL "${e}", must be absolute. Modify style specification directly or use TransformStyleFunction to correct the issue dynamically`)}}function V6r(e,t,r,i){return Yi(this,null,function*(){let n=jq(e),a=r>1?"@2x":"",o={},s={};for(let{id:l,url:u}of n){let c=yield t.transformRequest(Bat(u,a,".json"),"SpriteJSON");o[l]=gC(c,i);let f=yield t.transformRequest(Bat(u,a,".png"),"SpriteImage");s[l]=Pv.getImage(f,i)}return yield Promise.all([...Object.values(o),...Object.values(s)]),G6r(o,s)})}function G6r(e,t){return Yi(this,null,function*(){let r={};for(let i in e){r[i]={};let n=(yield t[i]).data;if(!n)throw Error(`Could not load sprite image for ${i}: the response is empty`);let a=a0.getImageCanvasContext(n),o=(yield e[i]).data;for(let s in o){let{width:l,height:u,x:c,y:f,sdf:h,pixelRatio:p,stretchX:d,stretchY:v,content:m,textFitWidth:g,textFitHeight:w}=o[s],_={width:l,height:u,x:c,y:f,context:a};r[i][s]={data:null,pixelRatio:p,sdf:h,stretchX:d,stretchY:v,content:m,textFitWidth:g,textFitHeight:w,spriteData:_}}}return r})}function Y6r(e){let t=/^u\+([0-9a-f]*)(\?+)$/i.exec(e);if(t){let[,n,a]=t;return n.length+a.length>6?null:qat(parseInt(`${n}${"0".repeat(a.length)}`,16),parseInt(`${n}${"f".repeat(a.length)}`,16))}let r=/^u\+([0-9a-f]{1,6})(?:-([0-9a-f]{1,6}))?$/i.exec(e);if(!r)return null;let i=parseInt(r[1],16);return qat(i,r[2]===void 0?i:parseInt(r[2],16))}function qat(e,t){return e>t||e>Yae?null:{start:e,end:Math.min(t,Yae)}}function X6r(e,t){return e.ranges.some(({start:r,end:i})=>t>=r&&t<=i)}function Oat(e,t,r,i,n,a,o,s,l){for(let u=t;u-1);l++,a[l]=s,o[l]=u,o[l+1]=Xae}for(let s=0,l=0;svC(t,r))),Fq}function pTr(e,t){let r=Rm();return ou(r,r,[1,1,0]),Oc(r,r,[e.width*.5,e.height*.5,1]),e.calculatePosMatrix?s3(r,r,e.calculatePosMatrix(t.toUnwrapped())):r}function vTr(e,t,r){if(e)for(let i of e){let n=t[i];if((n==null?void 0:n.source)===r&&n.type==="fill-extrusion")return!0}else for(let i in t){let n=t[i];if(n.source===r&&n.type==="fill-extrusion")return!0}return!1}function gTr(e,t,r,i,n,a,o){var f;let s=vTr((f=n==null?void 0:n.layers)!=null?f:null,t,e.id),l=a.maxPitchScaleFactor(),u=e.tilesIn(i,l,s);u.sort(Qot);let c=[];for(let h of u)c.push({wrappedTileID:h.tileID.wrapped().key,queryResults:h.tile.queryRenderedFeatures(t,r,e.getState(),h.queryGeometry,h.cameraQueryGeometry,h.scale,n,a,l,pTr(a,h.tileID),o?(p,d)=>o(h.tileID,p,d):void 0)});return bTr(xTr(c),e)}function mTr(e,t,r,i,n,a,o){let s={},l=a.queryRenderedSymbols(i),u=[];for(let c of Object.keys(l).map(Number))u.push(o[c]);u.sort(Qot);for(let c of u){let f=c.featureIndex.lookupSymbolFeatures(l[c.bucketInstanceId],t,c.bucketIndex,c.sourceLayerIndex,{filterSpec:n.filter,globalState:n.globalState},n.layers,n.availableImages,e);for(let h in f){s[h]||(s[h]=[]);let p=f[h];p.sort((d,v)=>{let m=c.featureSortOrder;if(m){let g=m.indexOf(d.featureIndex);return m.indexOf(v.featureIndex)-g}return v.featureIndex-d.featureIndex});for(let d of p)s[h].push(d)}}return _Tr(s,e,r)}function yTr(e,t){let r=e.getRenderableIds().map(a=>e.getTileByID(a)),i=[],n={};for(let a of r){let o=a.tileID.canonical.key;n[o]||(n[o]=!0,a.querySourceFeatures(i,t))}return i}function Qot(e,t){let r=e.tileID,i=t.tileID;return r.overscaledZ-i.overscaledZ||r.canonical.y-i.canonical.y||r.wrap-i.wrap||r.canonical.x-i.canonical.x}function xTr(e){let t={},r={};for(let{queryResults:i,wrappedTileID:n}of e){r[n]||(r[n]={});let a=r[n];for(let o in i){let s=i[o];a[o]||(a[o]={});let l=a[o];t[o]||(t[o]=[]);for(let u of s)l[u.featureIndex]||(l[u.featureIndex]=!0,t[o].push(u))}}return t}function bTr(e,t){for(let r in e)for(let i of e[r])est(i,t);return e}function _Tr(e,t,r){for(let i in e)for(let n of e[i]){let a=r[t[i].source];est(n,a)}return e}function est(e,t){let r=e.feature,i=t.getFeatureState(r.layer["source-layer"],r.id);r.source=r.layer.source,r.layer["source-layer"]&&(r.sourceLayer=r.layer["source-layer"]),r.state=i}function tst(e,t,r,i){return Yi(this,null,function*(){let n=e;if(e.url?n=(yield gC(yield t.transformRequest(e.url,"Source"),r)).data:yield a0.frameAsync(r,i),!n)return null;let a=$6(cn(n,e),["tiles","minzoom","maxzoom","attribution","bounds","scheme","tileSize","encoding"]);return"vector_layers"in n&&n.vector_layers&&(a.vectorLayerIds=n.vector_layers.map(o=>o.id)),a})}function Zq(e,t){return t?e.properties[t]:e.id}function wTr(e,t){let r=new Map;if(e==null||e.type==null)return r;if(e.type==="Feature"){let i=Zq(e,t);return i==null?void 0:(r.set(i,e),r)}if(e.type==="FeatureCollection"){let i=new Set;for(let n of e.features){let a=Zq(n,t);if(a==null||i.has(a))return;i.add(a),r.set(a,n)}return r}}function TTr(e,t,r){var n,a;let i=[];if(t.removeAll)e.clear();else if(t.remove)for(let o of t.remove){let s=e.get(o);s&&(i.push(s.geometry),e.delete(o))}if(t.add)for(let o of t.add){let s=Zq(o,r);if(s==null)continue;let l=e.get(s);l&&i.push(l.geometry),i.push(o.geometry),e.set(s,o)}if(t.update)for(let o of t.update){let s=e.get(o.id);if(!s)continue;let l=!!o.newGeometry,u=o.removeAllProperties||((n=o.removeProperties)==null?void 0:n.length)>0||((a=o.addOrUpdateProperties)==null?void 0:a.length)>0;if(!l&&!u)continue;i.push(s.geometry);let c=dn({},s);if(e.set(o.id,c),l&&(i.push(o.newGeometry),c.geometry=o.newGeometry),u){if(c.properties=o.removeAllProperties?{}:dn({},c.properties||{}),o.removeProperties)for(let f of o.removeProperties)delete c.properties[f];if(o.addOrUpdateProperties)for(let{key:f,value:h}of o.addOrUpdateProperties)c.properties[f]=h}}return i}function ATr(e,t,r){if(!e)return t||{};if(!t)return e||{};let i=Gat(e,r),n=Gat(t,r);MTr(i,n);let a={};if((i.removeAll||n.removeAll)&&(a.removeAll=!0),a.remove=new Set([...i.remove,...n.remove]),a.add=new Map([...i.add,...n.add]),a.update=new Map([...i.update,...n.update]),a.remove.size&&a.add.size)for(let o of a.add.keys())a.remove.delete(o);return ETr(a)}function MTr(e,t){t.removeAll&&(e.add.clear(),e.update.clear(),e.remove.clear(),t.remove.clear());for(let r of t.remove)e.add.delete(r),e.update.delete(r);for(let[r,i]of t.update){let n=e.update.get(r);n&&(t.update.set(r,STr(n,i)),e.update.delete(r))}}function STr(e,t){let r={id:e.id};if(t.removeAllProperties&&(delete e.removeProperties,delete e.addOrUpdateProperties,delete t.removeProperties),t.removeProperties&&e.addOrUpdateProperties){let i=new Set(t.removeProperties);e.addOrUpdateProperties=e.addOrUpdateProperties.filter(n=>!i.has(n.key))}return(e.removeAllProperties||t.removeAllProperties)&&(r.removeAllProperties=!0),(e.removeProperties||t.removeProperties)&&(r.removeProperties=[...e.removeProperties||[],...t.removeProperties||[]]),(e.addOrUpdateProperties||t.addOrUpdateProperties)&&(r.addOrUpdateProperties=[...e.addOrUpdateProperties||[],...t.addOrUpdateProperties||[]]),(e.newGeometry||t.newGeometry)&&(r.newGeometry=t.newGeometry||e.newGeometry),r}function Gat(e,t){var i,n;if(!e)return{};let r={};return r.removeAll=e.removeAll,r.remove=new Set(e.remove||[]),r.add=new Map((i=e.add)==null?void 0:i.map(a=>[Zq(a,t),a])),r.update=new Map((n=e.update)==null?void 0:n.map(a=>[a.id,a])),r}function ETr(e){let t={};return e.removeAll&&(t.removeAll=e.removeAll),e.remove&&(t.remove=Array.from(e.remove)),e.add&&(t.add=Array.from(e.add.values())),e.update&&(t.update=Array.from(e.update.values())),t}function ast(e){return!e||e.length===0?[]:typeof e[0]=="number"?[e]:e.flatMap(t=>ast(t))}function $q(e){return e.type==="GeometryCollection"?e.geometries.flatMap(t=>$q(t)):ast(e.coordinates)}function Hat(e){let t=new Iv,r;switch(e.type){case"FeatureCollection":r=e.features.flatMap(i=>$q(i.geometry));break;case"Feature":r=$q(e.geometry);break;default:r=$q(e)}if(r.length===0)return t;for(let i of r){let[n,a]=i;t.extend([n,a])}return t}function kTr({x:e,y:t,z:r},i=0){let n=xq((e-i)/2**r),a=H6((t+1+i)/2**r),o=xq((e+1+i)/2**r),s=H6((t-i)/2**r);return new Iv([n,a],[o,s])}function FTr(e){e*=Math.PI/180;let t=Math.sin(e),r=Math.cos(e);return[(2*r+1)/3,(-Math.sqrt(3)*t-r+1)/3,(Math.sqrt(3)*t-r+1)/3]}function LTr(e){return e>0?1/(1-e):1+e}function PTr(e){return e>0?1-1/(1.001-e):-e}function sst(e,t){let r=lst(t,"16bit"),i=Nm.deserialize({arrayBuffer:r.vertices,length:r.vertices.byteLength/2/2}),n=Fv.deserialize({arrayBuffer:r.indices,length:r.indices.byteLength/2/3});return new JC(e.createVertexBuffer(i,b3.members),e.createIndexBuffer(n),Xs.simpleSegment(0,0,i.length,n.length))}function lst(e,t){let r=e.granularity===void 0?1:Math.max(e.granularity,1),i=r+(e.generateBorders?2:0),n=r+(e.extendToNorthPole||e.generateBorders?1:0)+(e.extendToSouthPole||e.generateBorders?1:0),a=i+1,o=n+1,s=e.generateBorders?-1:0,l=e.generateBorders||e.extendToNorthPole?-1:0,u=r+ +!!e.generateBorders,c=r+(e.generateBorders||e.extendToSouthPole?1:0),f=a*o,h=i*n*6,p=a*o>65536;if(p&&t==="16bit")throw Error("Granularity is too large and meshes would not fit inside 16 bit vertex indices.");let d=p||t==="32bit",v=new Int16Array(f*2),m=0;for(let _=l;_<=c;_++)for(let b=s;b<=u;b++){let S=b/r*Br;b===-1&&(S=-Lq),b===r+1&&(S=Br+Lq);let x=_/r*Br;_===-1&&(x=e.extendToNorthPole?F6:-Lq),_===r+1&&(x=e.extendToSouthPole?L6:Br+Lq),v[m++]=S,v[m++]=x}let g=d?new Uint32Array(h):new Uint16Array(h),w=0;for(let _=0;_=1&&g<=512)||w>=1?nT:[d,v,w]}function BTr(e){let t=(1-4/e)/.9921875;return Math.max(0,t)}function ust(e){let[t,r,i,n]=e;return t.x+i.x===r.x+n.x&&t.y+i.y===r.y+n.y}function UTr(e,t){let r={};if(!t)return r;for(let i of e){let n=i.layerIds.map(a=>t.getLayer(a)).filter(Boolean);if(n.length!==0){i.layers=n,i.stateDependentLayerIds&&(i.stateDependentLayers=i.stateDependentLayerIds.map(a=>n.filter(o=>o.id===a)[0]));for(let a of n)r[a.id]=i}}return r}function KC(){return kae||(kae=new VTr),kae}function jat(e){let t=[];for(let r in e)t.push({id:r,state:e[r]});return t}function HTr(e,t,r,i){let n=Nc([],e,t),a=1/n[3]/r*i;return Ftt(n,n,[a,a,1/n[3],a])}function jTr(e,t,r,i){let n=i?4:0,a=i?0:4,o=0,s=[],l=[];for(let f=0;f<4;f++){let h=lg([],e[f+a],e[f+n]),p=sp(h);zs(h,h,1/p),s.push(p),l.push(h)}for(let f=0;f<4;f++){let h=Itt(e[f+n],l[f],r);o=h!==null&&h>=0?Math.max(o,h):Math.max(o,s[f])}let u=$Tr(e,t),c=WTr(r,u);if(c!==null){let f=c/su(l[0],u);o=Math.min(o,f)}for(let f=0;f<4;f++){let h=Math.min(o,s[f]);e[f+a]=[e[f+n][0]+l[f][0]*h,e[f+n][1]+l[f][1]*h,e[f+n][2]+l[f][2]*h,1]}}function $Tr(e,t){let r=lg([],e[t[0]],e[t[1]]),i=lg([],e[t[2]],e[t[1]]),n=[0,0,0,0];return qf(n,dh([],r,i)),n[3]=-su(n,e[t[0]]),n}function WTr(e,t){let r=cC(e),i=Dtt([],e,1/r),n=lg([],t,zs([],i,su(t,i))),a=cC(n);if(a>0){let o=Math.sqrt(1-i[3]*i[3]),s=zs([],i,-i[3]),l=G0([],s,zs([],n,o/a));return HB(t,l)}return null}function YTr(e,t,r){let i=t.intersectsFrustum(e);if(!r||i===0)return i;let n=t.intersectsPlane(r);return n===0?0:i===2&&n===2?2:1}function $at(e,t,r){let i=0,n=(r-t)/10;for(let a=0;a<10;a++){let o=t+(a+.5)/10*(r-t);i+=n*Math.cos(o)**+e}return i}function Kae(e,t){return function(r,i,n,a,o){let s=2*((e-1)/Uc(Math.cos(Bs(gx-o))/Math.cos(Bs(gx)))-1),l=Math.acos(n/a),u=2*$at(s-1,0,Bs(o/2)),c=Math.min(Bs(gx),l+Bs(o/2)),f=Math.min(c,l-Bs(o/2)),h=$at(s-1,f,c),p=Math.atan(i/n),d=Math.hypot(i,n),v=r;return v+=Uc(a/d/Math.max(.5,Math.cos(Bs(o/2)))),v+=s*Uc(Math.cos(p))/2,v-=Uc(Math.max(1,h/u/t))/2,v}}function xoe(e,t){let r=(t.roundZoom?Math.round:Math.floor)(e.zoom+Uc(e.tileSize/t.tileSize));return Math.max(0,r)}function ZTr(e,t){let r=gx-e.pitch-e.fov/2,i=Qn((15-r)/15,0,1),n=Math.max(500,t!=null?t:0);return e.elevation+i*n}function KTr(e,t,r){let i=e.planes[1],n=e.points.map(l=>{let u=i[0]*l[0]+i[1]*l[1]+i[2]*l[2]+i[3];if(Math.abs(u)>1e-6)return l;let c=[l[0]-r[0],l[1]-r[1],l[2]-r[2]],f=i[0]*c[0]+i[1]*c[1]+i[2]*c[2];if(f>=-1e-9)return l;let h=t/-f;return[l[0]+c[0]*h,l[1]+c[1]*h,l[2]+c[2]*h,l[3]]}),a=e.planes.map((l,u)=>u===1?[l[0],l[1],l[2],l[3]+t]:l),o=[1/0,1/0,1/0],s=[-1/0,-1/0,-1/0];for(let l of n)for(let u=0;u<3;u++)o[u]=Math.min(o[u],l[u]),s[u]=Math.max(s[u],l[u]);return new yoe(n,a,new moe(o,s))}function JTr(e,t,r,i){let n=Math.hypot(t[0],t[1],t[2]);if(n===0)return{frustum:e,plane:t};let a=1+i/Uf,o=Qn(-t[3]/n,-1,1),s=Math.cos(Math.acos(o)+Math.acos(1/a));return{frustum:KTr(e,Math.sqrt(a*a-1),r),plane:[t[0],t[1],t[2],-s*n]}}function lT(e,t){let r=e.getCameraFrustum(),i=e.getClippingPlane();i&&t.maxContentElevation>0&&({frustum:r,plane:i}=JTr(r,i,e.cameraPosition,t.maxContentElevation));let n=mnt(e),a=Mo.fromLngLat(e.center,e.elevation),o=ZTr(e,t.maxContentElevation),s=e.getCoveringTilesDetailsProvider(),l=s.allowVariableZoom(e,t),u=xoe(e,t),c=t.minzoom||0,f=t.maxzoom===void 0?e.maxZoom:t.maxzoom,h=Math.min(Math.max(0,u),f),p=2**h,d=[p*n.x,p*n.y,0],v=[p*a.x,p*a.y,0],m=Math.hypot(a.x-n.x,a.y-n.y),g=Math.abs(a.z-n.z),w=Math.hypot(m,g),_=x=>({zoom:0,x:0,y:0,wrap:x,fullyVisible:!1}),b=[],S=[];if(e.renderWorldCopies&&s.allowWorldCopies())for(let x=1;x<=3;x++)b.push(_(-x)),b.push(_(x));for(b.push(_(0));b.length>0;){let x=b.pop(),T=x.x,A=x.y,y=x.fullyVisible,E={x:T,y:A,z:x.zoom},M=s.getTileBoundingVolume(E,x.wrap,o,t);if(!y){let L=YTr(r,M,i);if(L===0)continue;y=L===2}let C=s.distanceToTile2d(n.x,n.y,E,M),k=u;l&&(k=(t.calculateTileZoom||XTr)(e.zoom+Uc(e.tileSize/t.tileSize),C,g,w,e.fov)),k=(t.roundZoom?Math.round:Math.floor)(k),k=Math.max(0,k);let D=Math.min(k,f);if(x.wrap=s.getWrap(a,E,x.wrap),x.zoom>=D){if(x.zoom>1),F=x.zoom+1;b.push({zoom:F,x:P,y:R,wrap:x.wrap,fullyVisible:y})}}return S.sort((x,T)=>x.distanceSq-T.distanceSq).map(x=>x.tileID)}function Wat(e){return e==="raster"||e==="image"||e==="video"}function QTr(e,t,r,i,n,a,o){let s=zo(),l=ztt(t);for(let u of t){let c=e.getTileById(u.key);(c.fadingDirection===0||c.fadeOpacity===0)&&c.resetFadeLogic(),!eAr(e,c,r,s,i,n,o)&&(tAr(e,c,r,s,a,o)||rAr(c,l,s,o)||c.resetFadeLogic())}}function eAr(e,t,r,i,n,a,o){if(!t.hasData())return!1;let{tileID:s,fadingRole:l,fadingDirection:u,fadingParentID:c}=t;if(l===0&&u===1&&c)return r[c.key]=c,!0;let f=Math.max(s.overscaledZ-n,a);for(let h=s.overscaledZ-1;h>=f;h--){let p=s.scaledTo(h),d=e.getLoadedTile(p);if(d)return t.setCrossFadeLogic({fadingRole:0,fadingDirection:1,fadingParentID:d.tileID,fadeEndTime:i+o}),d.setCrossFadeLogic({fadingRole:1,fadingDirection:0,fadeEndTime:i+o}),r[p.key]=p,!0}return!1}function tAr(e,t,r,i,n,a){if(!t.hasData())return!1;let o=t.tileID.children(n),s=Yat(e,t,o,r,i,n,a);if(s)return!0;for(let l of o)Yat(e,t,l.children(n),r,i,n,a)&&(s=!0);return s}function Yat(e,t,r,i,n,a,o){if(r[0].overscaledZ>=a)return!1;let s=!1;for(let l of r){let u=e.getLoadedTile(l);if(!u)continue;let{fadingRole:c,fadingDirection:f,fadingParentID:h}=u;(c!==0||f!==0||!h)&&(u.setCrossFadeLogic({fadingRole:0,fadingDirection:0,fadingParentID:t.tileID,fadeEndTime:n+o}),t.setCrossFadeLogic({fadingRole:1,fadingDirection:1,fadeEndTime:n+o})),i[l.key]=l,s=!0}return s}function rAr(e,t,r,i){let n=e.tileID;if(e.selfFading)return!0;if(e.hasData())return!1;if(t.has(n)){let a=r+i;return e.setSelfFadeLogic(a),!0}return!1}function iAr(e,t){if(t<=0)return!1;let r=zo();for(let i of e.getAllTiles())if(i.fadeEndTime>=r)return!0;return!1}function nAr(e,t){var i,n,a;let r=t.getRenderableIds();for(let o of r){if(!((i=e.neighboringTiles)!=null&&i[o]))continue;let s=t.getTileById(o);e.neighboringTiles[o].backfilled||Xat(e,s),!((a=(n=s.neighboringTiles)==null?void 0:n[e.tileID.key])!=null&&a.backfilled)&&Xat(s,e)}}function Xat(e,t){var o;e.needsHillshadePrepare=!0,e.needsTerrainPrepare=!0,e.needsColorReliefPrepare=!0;let r=t.tileID.canonical.x-e.tileID.canonical.x,i=t.tileID.canonical.y-e.tileID.canonical.y,n=2**e.tileID.canonical.z,a=t.tileID.key;(r!==0||i!==0)&&(Math.abs(i)>1||(Math.abs(r)>1&&(Math.abs(r+n)===1?r+=n:Math.abs(r-n)===1&&(r-=n)),t.dem&&e.dem&&(e.dem.backfillBorder(t.dem,r,i),(o=e.neighboringTiles)!=null&&o[a]&&(e.neighboringTiles[a].backfilled=!0))))}function Wq(e,t,r,i,n){return n?e?e(t,r)+i:i===0?void 0:i:i}function Pq(e,t){let r=!0;return e==="always"||(e==="never"||t==="never")&&(r=!1),r}function oAr(e,t){let r=1/(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]),i=1/(t[8]*t[8]+t[9]*t[9]+t[10]*t[10]),n=t[0]*r,a=t[4]*r,o=t[8]*i,s=t[1]*r,l=t[5]*r,u=t[9]*i,c=t[2]*r,f=t[6]*r,h=t[10]*i;e[0]=n,e[1]=a,e[2]=o,e[4]=s,e[5]=l,e[6]=u,e[8]=c,e[9]=f,e[10]=h;let p=t[12],d=t[13],v=t[14];return e[12]=-n*p-s*d-c*v,e[13]=-a*p-l*d-f*v,e[14]=-o*p-u*d-h*v,e[3]=0,e[7]=0,e[11]=0,e[15]=1,e}function sAr(e,t){return e[0]=1/t[0],e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1/t[5],e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=0,e[11]=1/t[14],e[12]=0,e[13]=0,e[14]=-1,e[15]=t[10]/t[14],e}function lAr(e,t){let r=1/(t[0]*t[5]-t[1]*t[4]);return e[0]=t[5]*r,e[1]=-t[1]*r,e[2]=0,e[3]=0,e[4]=-t[4]*r,e[5]=t[0]*r,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1/t[10],e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1/t[15],e}function boe(e,t,r){let i=Rm();if(!e){let{vecSouth:n,vecEast:a}=_oe(t),o=Hot();o[0]=a[0],o[1]=a[1],o[2]=n[0],o[3]=n[1],A6r(o,o),i[0]=o[0],i[1]=o[1],i[4]=o[2],i[5]=o[3]}return Oc(i,i,[1/r,1/r,1]),i}function cAr(e,t,r,i){if(e){let n=Rm();if(!t){let{vecSouth:a,vecEast:o}=_oe(r);n[0]=o[0],n[1]=o[1],n[4]=a[0],n[5]=a[1]}return Oc(n,n,[i,i,1]),n}return r.pixelsToClipSpaceMatrix}function _oe(e){let t=Math.cos(e.rollInRadians),r=Math.sin(e.rollInRadians),i=Math.cos(e.pitchInRadians),n=Math.cos(e.bearingInRadians),a=Math.sin(e.bearingInRadians),o=GB();o[0]=-n*i*r-a*t,o[1]=-a*i*r+n*t;let s=sne(o);s<1e-9?lne(o):one(o,o,1/s);let l=GB();l[0]=n*i*t-a*r,l[1]=a*i*t+n*r;let u=sne(l);return u<1e-9?lne(l):one(l,l,1/u),{vecEast:l,vecSouth:o}}function w3(e,t,r){var i,n;return Wq(e.getElevation,t,r,(i=e.heightOffset)!=null?i:0,(n=e.heightAnchorGround)!=null?n:!0)}function woe(e,t,r,i){let n;i==null?(n=[e,t,0,1],Toe(n,n,r)):(n=[e,t,i,1],Nc(n,n,r));let a=n[3];return{point:new tr(n[0]/a,n[1]/a),signedDistanceFromCamera:a,isOccluded:!1}}function mst(e,t){return .5+e/t*.5}function fAr(e,t){return e.x>=-t[0]&&e.x<=t[0]&&e.y>=-t[1]&&e.y<=t[1]}function hAr(e,t,r,i,n,a,o,s,l,u,c,f,h){let p=r?e.textSizeData:e.iconSizeData,d=DC(p,t.transform.zoom),v=[256/t.width*2+1,256/t.height*2+1],m=r?e.text.dynamicLayoutVertexArray:e.icon.dynamicLayoutVertexArray;m.clear();let g=e.lineVertexArray,w=r?e.text.placedSymbolArray:e.icon.placedSymbolArray,_=t.transform.width/t.transform.height,b=!1;for(let S=0;SMath.abs(r.x-t.x)*i?{useVertical:!0}:(e===2?t.yr.x)?{needsFlipping:!0}:null}function Qat(e){let{projectionContext:t,pitchedLabelPlaneMatrixInverse:r,symbol:i,fontSize:n,flip:a,keepUpright:o,glyphOffsetArray:s,dynamicLayoutVertexArray:l,aspectRatio:u,rotateToLine:c}=e,f=n/24,h=i.lineOffsetX*f,p=i.lineOffsetY*f,d;if(i.numGlyphs>1){let v=i.glyphStartIndex+i.numGlyphs,m=i.lineStartIndex,g=i.lineStartIndex+i.lineLength,w=yst(f,s,h,p,a,i,c,t);if(!w)return{notEnoughRoom:!0};let _=Iq(w.first.point.x,w.first.point.y,t,r),b=Iq(w.last.point.x,w.last.point.y,t,r);if(o&&!a){let S=Jat(i.writingMode,_,b,u);if(S)return S}d=[w.first];for(let S=i.glyphStartIndex+1;S0?_.point:xst(t.tileAnchorPoint,w,m,1,t),S=Iq(m.x,m.y,t,r),x=Iq(b.x,b.y,t,r),T=Jat(i.writingMode,S,x,u);if(T)return T}let v=Kq(f*s.getoffsetX(i.glyphStartIndex),h,p,a,i.segment,i.lineStartIndex,i.lineStartIndex+i.lineLength,t,c);if(!v||t.projectionCache.anyProjectionOccluded)return{notEnoughRoom:!0};d=[v]}for(let v of d)FC(l,v.point,v.angle);return{}}function xst(e,t,r,i,n){let a=e.add(e.sub(t)._unit()),o=T3(a.x,a.y,n).point,s=r.sub(o);return r.add(s._mult(i/s.mag()))}function Qae(e,t,r){let i=t.projectionCache;if(i.projections[e])return i.projections[e];let n=new tr(t.lineVertexArray.getx(e),t.lineVertexArray.gety(e)),a=T3(n.x,n.y,t);if(a.signedDistanceFromCamera>0)return i.projections[e]=a.point,i.anyProjectionOccluded||(i.anyProjectionOccluded=a.isOccluded),a.point;let o=e-r.direction,s=r.distanceFromAnchor===0?t.tileAnchorPoint:new tr(t.lineVertexArray.getx(o),t.lineVertexArray.gety(o)),l=r.absOffsetX-r.distanceFromAnchor+1;return xst(s,n,r.previousVertex,l,t)}function T3(e,t,r){let i=e+r.translation[0],n=t+r.translation[1],a;return r.pitchWithMap?(a=woe(i,n,r.pitchedLabelPlaneMatrix,w3(r,i,n)),a.isOccluded=!1):(a=r.transform.projectTileCoordinates(i,n,r.unwrappedTileID,w3(r,i,n)),a.point.x=(a.point.x*.5+.5)*r.width,a.point.y=(-a.point.y*.5+.5)*r.height),a}function Iq(e,t,r,i){if(r.pitchWithMap){let n=[e,t,0,1];Nc(n,n,i);let a=n[0]/n[3],o=n[1]/n[3];return r.transform.projectTileCoordinates(a,o,r.unwrappedTileID,w3(r,a,o)).point}return{x:e/r.width*2-1,y:1-t/r.height*2}}function bst(e,t,r){return r.transform.projectTileCoordinates(e,t,r.unwrappedTileID,w3(r,e,t))}function eoe(e,t,r){return e._unit()._perp()._mult(t*r)}function dAr(e,t,r,i,n,a,o,s,l){if(s.projectionCache.offsets[e])return s.projectionCache.offsets[e];let u=r.add(t);if(e+l.direction=n)return s.projectionCache.offsets[e]=u,u;let c=Qae(e+l.direction,s,l),f=eoe(c.sub(r),o,l.direction),h=r.add(f),p=c.add(f);return s.projectionCache.offsets[e]=qtt(a,u,h,p)||u,s.projectionCache.offsets[e]}function Kq(e,t,r,i,n,a,o,s,l){let u=i?e-t:e+t,c=u>0?1:-1,f=0;i&&(c*=-1,f=Math.PI),c<0&&(f+=Math.PI);let h=c>0?a+n:a+n+1,p;s.projectionCache.cachedAnchorPoint?p=s.projectionCache.cachedAnchorPoint:(p=T3(s.tileAnchorPoint.x,s.tileAnchorPoint.y,s).point,s.projectionCache.cachedAnchorPoint=p);let d=p,v=p,m,g,w=0,_=0,b=Math.abs(u),S=[],x;for(;w+_<=b;){if(h+=c,h=o)return null;w+=_,v=d,g=m;let E={absOffsetX:b,direction:c,distanceFromAnchor:w,previousVertex:v};if(d=Qae(h,s,E),r===0)S.push(v),x=d.sub(v);else{let M,C=d.sub(v);M=C.mag()===0?eoe(Qae(h+c,s,E).sub(d),r,c):eoe(C,r,c),g||(g=v.add(M)),m=dAr(h,M,d,a,o,g,r,s,E),S.push(g),x=m.sub(g)}_=x.mag()}let T=(b-w)/_,A=x._mult(T)._add(g||v),y=f+Math.atan2(d.y-v.y,d.x-v.x);return S.push(A),{point:A,angle:l?y:0,path:S}}function aT(e,t){for(let r=0;r{let n=woe(i.x,i.y,r,w3(t,i.x,i.y)),a=t.transform.projectTileCoordinates(n.point.x,n.point.y,t.unwrappedTileID,w3(t,n.point.x,n.point.y));return a.point.x=(a.point.x*.5+.5)*t.width,a.point.y=(-a.point.y*.5+.5)*t.height,a})}function gAr(e){let t=0,r=0,i=0,n=0;for(let a=0;ar&&(r=n,t=i));return e.slice(t,t+r)}function rot(e,t,r,i,n){let{horizontalAlign:a,verticalAlign:o}=CC(e),s=-(a-.5)*t,l=-(o-.5)*r;return new tr(s+i[0]*n,l+i[1]*n)}function iot(e,t,r,i,n,a){(!i||i.length===0)&&(i=[0,0,0,0]);let o=i[0]-100,s=i[1]-100,l=i[2]-100,u=i[3]-100;e.emplaceBack(+!!t,+!!r,n||0,a||0,o,s),e.emplaceBack(+!!t,+!!r,n||0,a||0,l,s),e.emplaceBack(+!!t,+!!r,n||0,a||0,l,u),e.emplaceBack(+!!t,+!!r,n||0,a||0,o,u)}function not(e){if(e.opacity===0&&!e.placed)return 0;if(e.opacity===1&&e.placed)return 4294967295;let t=+!!e.placed,r=Math.floor(e.opacity*127);return r*_Ar+t*wAr+r*TAr+t*AAr+r*512+t*256+r*2+t}function toe(e,t,r,i,n,a){if(n-i<=r)return;let o=i+n>>1;wst(e,t,o,i,n,a),toe(e,t,r,i,o-1,1-a),toe(e,t,r,o+1,n,1-a)}function wst(e,t,r,i,n,a){for(;n>i;){if(n-i>600){let u=n-i+1,c=r-i+1,f=Math.log(u),h=.5*Math.exp(2*f/3),p=.5*Math.sqrt(f*h*(u-h)/u)*(c-u/2<0?-1:1);wst(e,t,r,Math.max(i,Math.floor(r-c*h/u+p)),Math.min(n,Math.floor(r+(u-c)*h/u+p)),a)}let o=t[2*r+a],s=i,l=n;for(VC(e,t,i,r),t[2*n+a]>o&&VC(e,t,i,n);so;)l--}t[2*i+a]===o?VC(e,t,i,l):(l++,VC(e,t,l,n)),l<=r&&(i=l+1),r<=l&&(n=l-1)}}function VC(e,t,r,i){Cae(e,r,i),Cae(t,2*r,2*i),Cae(t,2*r+1,2*i+1)}function Cae(e,t,r){let i=e[t];e[t]=e[r],e[r]=i}function oot(e,t,r,i){let n=e-r,a=t-i;return n*n+a*a}function vo(e,t){let r=/#pragma maplibre: ([\w]+) ([\w]+) ([\w]+) ([\w]+)/g,i=t.match(/in ([\w]+) ([\w]+)/g),n=e.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),a=t.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),o=a?a.concat(n):n,s=i?i.length:0,l={};return e=e.replace(r,(u,c,f,h,p)=>(l[p]=!0,c==="define"?` +{name:nonlatin}`,"text-max-width":8,"icon-image":"star_11","text-offset":[.4,0],"icon-size":.8,"text-anchor":"left",visibility:"visible"},paint:{"text-color":"#333","text-halo-width":1.2,"text-halo-color":"rgba(255,255,255,0.8)"}},{id:"place-country-other",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",filter:["all",["==","class","country"],[">=","rank",3],["!has","iso_a2"]],layout:{"text-font":["Noto Sans Italic"],"text-field":"{name:latin}","text-size":{stops:[[3,11],[7,17]]},"text-transform":"uppercase","text-max-width":6.25,visibility:"visible"},paint:{"text-halo-blur":1,"text-color":"#334","text-halo-width":2,"text-halo-color":"rgba(255,255,255,0.8)"}},{id:"place-country-3",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",filter:["all",["==","class","country"],[">=","rank",3],["has","iso_a2"]],layout:{"text-font":["Noto Sans Bold"],"text-field":"{name:latin}","text-size":{stops:[[3,11],[7,17]]},"text-transform":"uppercase","text-max-width":6.25,visibility:"visible"},paint:{"text-halo-blur":1,"text-color":"#334","text-halo-width":2,"text-halo-color":"rgba(255,255,255,0.8)"}},{id:"place-country-2",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",filter:["all",["==","class","country"],["==","rank",2],["has","iso_a2"]],layout:{"text-font":["Noto Sans Bold"],"text-field":"{name:latin}","text-size":{stops:[[2,11],[5,17]]},"text-transform":"uppercase","text-max-width":6.25,visibility:"visible"},paint:{"text-halo-blur":1,"text-color":"#334","text-halo-width":2,"text-halo-color":"rgba(255,255,255,0.8)"}},{id:"place-country-1",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",filter:["all",["==","class","country"],["==","rank",1],["has","iso_a2"]],layout:{"text-font":["Noto Sans Bold"],"text-field":"{name:latin}","text-size":{stops:[[1,11],[4,17]]},"text-transform":"uppercase","text-max-width":6.25,visibility:"visible"},paint:{"text-halo-blur":1,"text-color":"#334","text-halo-width":2,"text-halo-color":"rgba(255,255,255,0.8)"}},{id:"place-continent",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",maxzoom:1,filter:["==","class","continent"],layout:{"text-font":["Noto Sans Bold"],"text-field":"{name:latin}","text-size":14,"text-max-width":6.25,"text-transform":"uppercase",visibility:"visible"},paint:{"text-halo-blur":1,"text-color":"#334","text-halo-width":2,"text-halo-color":"rgba(255,255,255,0.8)"}}],id:"qebnlkra6"}});var ZJe=W((ari,XJe)=>{"use strict";XJe.exports={version:8,name:"orto",metadata:{},center:[1.537786,41.837539],zoom:12,bearing:0,pitch:0,light:{anchor:"viewport",color:"white",intensity:.4,position:[1.15,45,30]},sources:{ortoEsri:{type:"raster",tiles:["https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}"],tileSize:256,maxzoom:18,attribution:"ESRI © ESRI"},ortoInstaMaps:{type:"raster",tiles:["https://tilemaps.icgc.cat/mapfactory/wmts/orto_8_12/CAT3857/{z}/{x}/{y}.png"],tileSize:256,maxzoom:13},ortoICGC:{type:"raster",tiles:["https://geoserveis.icgc.cat/icc_mapesmultibase/noutm/wmts/orto/GRID3857/{z}/{x}/{y}.jpeg"],tileSize:256,minzoom:13.1,maxzoom:20},openmaptiles:{type:"vector",url:"https://geoserveis.icgc.cat/contextmaps/basemap.json"}},sprite:"https://geoserveis.icgc.cat/contextmaps/sprites/sprite@1",glyphs:"https://geoserveis.icgc.cat/contextmaps/glyphs/{fontstack}/{range}.pbf",layers:[{id:"background",type:"background",paint:{"background-color":"#F4F9F4"}},{id:"ortoEsri",type:"raster",source:"ortoEsri",maxzoom:16,layout:{visibility:"visible"}},{id:"ortoICGC",type:"raster",source:"ortoICGC",minzoom:13.1,maxzoom:19,layout:{visibility:"visible"}},{id:"ortoInstaMaps",type:"raster",source:"ortoInstaMaps",maxzoom:13,layout:{visibility:"visible"}}]}});var Q2=W((ori,tQe)=>{"use strict";var Emr=(Qx(),Pt(Jx)).default,kmr=YJe(),Cmr=ZJe(),Dmr='\xA9 OpenStreetMap contributors',KJe="https://basemaps.cartocdn.com/gl/positron-gl-style/style.json",JJe="https://basemaps.cartocdn.com/gl/dark-matter-gl-style/style.json",$z="https://basemaps.cartocdn.com/gl/voyager-gl-style/style.json",Fmr="https://basemaps.cartocdn.com/gl/positron-nolabels-gl-style/style.json",Lmr="https://basemaps.cartocdn.com/gl/dark-matter-nolabels-gl-style/style.json",Pmr="https://basemaps.cartocdn.com/gl/voyager-nolabels-gl-style/style.json",eQe={basic:$z,streets:$z,outdoors:$z,light:KJe,dark:JJe,satellite:Cmr,"satellite-streets":kmr,"open-street-map":{id:"osm",version:8,sources:{"plotly-osm-tiles":{type:"raster",attribution:Dmr,tiles:["https://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":KJe,"carto-darkmatter":JJe,"carto-voyager":$z,"carto-positron-nolabels":Fmr,"carto-darkmatter-nolabels":Lmr,"carto-voyager-nolabels":Pmr},QJe=Emr(eQe);tQe.exports={styleValueDflt:"basic",stylesMap:eQe,styleValuesMap:QJe,traceLayerPrefix:"plotly-trace-layer-",layoutLayerPrefix:"plotly-layout-layer-",missingStyleErrorMsg:["No valid maplibre style found, please set `map.style` to one of:",QJe.join(", "),"or use a tile service."].join(` +`),mapOnErrorMsg:"Map error.",fitBoundsPadding:20}});var bk=W((sri,oQe)=>{"use strict";var rQe=tt(),iQe=ti().defaultLine,Imr=ds().attributes,Rmr=jo(),zmr=Ws().textposition,Bmr=hs().overrideAll,qmr=Ra().templatedArray,nQe=Q2(),aQe=Rmr({noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0});aQe.family.dflt="Open Sans Regular, Arial Unicode MS Regular";var Omr=oQe.exports=Bmr({_arrayAttrRegexps:[rQe.counterRegex("map",".layers",!0)],domain:Imr({name:"map"}),style:{valType:"any",values:nQe.styleValuesMap,dflt:nQe.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},fitbounds:{valType:"enumerated",values:[!1,"locations"],dflt:"locations"},bounds:{west:{valType:"number"},east:{valType:"number"},south:{valType:"number"},north:{valType:"number"}},layers:qmr("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:iQe},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:iQe}},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:aQe,textposition:rQe.extendFlat({},zmr,{arrayOk:!1})}})},"plot","from-root");Omr.uirevision={valType:"any",editType:"none"}});var Wz=W((lri,cQe)=>{"use strict";var{hovertemplateAttrs:Nmr,texttemplateAttrs:Umr,templatefallbackAttrs:sQe}=Wa(),Vmr=C1(),_k=W4(),mT=Ws(),lQe=bk(),Gmr=Ja(),Hmr=Fo(),X_=an().extendFlat,jmr=hs().overrideAll,$mr=bk(),uQe=_k.line,yT=_k.marker;cQe.exports=jmr({lon:_k.lon,lat:_k.lat,cluster:{enabled:{valType:"boolean"},maxzoom:X_({},$mr.layers.maxzoom,{}),step:{valType:"number",arrayOk:!0,dflt:-1,min:-1},size:{valType:"number",arrayOk:!0,dflt:20,min:0},color:{valType:"color",arrayOk:!0},opacity:X_({},yT.opacity,{dflt:1})},mode:X_({},mT.mode,{dflt:"markers"}),text:X_({},mT.text,{}),texttemplate:Umr({editType:"plot"},{keys:["lat","lon","text"]}),texttemplatefallback:sQe({editType:"plot"}),hovertext:X_({},mT.hovertext,{}),line:{color:uQe.color,width:uQe.width},connectgaps:mT.connectgaps,marker:X_({symbol:{valType:"string",dflt:"circle",arrayOk:!0},angle:{valType:"number",dflt:"auto",arrayOk:!0},allowoverlap:{valType:"boolean",dflt:!1},opacity:yT.opacity,size:yT.size,sizeref:yT.sizeref,sizemin:yT.sizemin,sizemode:yT.sizemode},Hmr("marker")),fill:_k.fill,fillcolor:Vmr(),textfont:lQe.layers.symbol.textfont,textposition:lQe.layers.symbol.textposition,below:{valType:"string"},selected:{marker:mT.selected.marker},unselected:{marker:mT.unselected.marker},hoverinfo:X_({},Gmr.hoverinfo,{flags:["lon","lat","text","name"]}),hovertemplate:Nmr(),hovertemplatefallback:sQe()},"calc","nested")});var Mre={};Jn(Mre,{isSupportedFont:()=>Ymr});function Ymr(e){return Wmr.indexOf(e)!==-1}var Wmr,Sre=Ci(()=>{"use strict";Wmr=["Metropolis Black Italic","Metropolis Black","Metropolis Bold Italic","Metropolis Bold","Metropolis Extra Bold Italic","Metropolis Extra Bold","Metropolis Extra Light Italic","Metropolis Extra Light","Metropolis Light Italic","Metropolis Light","Metropolis Medium Italic","Metropolis Medium","Metropolis Regular Italic","Metropolis Regular","Metropolis Semi Bold Italic","Metropolis Semi Bold","Metropolis Thin Italic","Metropolis Thin","Open Sans Bold Italic","Open Sans Bold","Open Sans Extrabold Italic","Open Sans Extrabold","Open Sans Italic","Open Sans Light Italic","Open Sans Light","Open Sans Regular","Open Sans Semibold Italic","Open Sans Semibold","Klokantech Noto Sans Bold","Klokantech Noto Sans CJK Bold","Klokantech Noto Sans CJK Regular","Klokantech Noto Sans Italic","Klokantech Noto Sans Regular"]});var dQe=W((uri,hQe)=>{"use strict";var wk=tt(),Ere=Wo(),Xmr=Dd(),Zmr=ev(),Kmr=tv(),Jmr=F1(),fQe=Wz(),Qmr=(Sre(),Pt(Mre)).isSupportedFont;hQe.exports=function(t,r,i,n){function a(g,w){return wk.coerce(t,r,fQe,g,w)}function o(g,w){return wk.coerce2(t,r,fQe,g,w)}var s=eyr(t,r,a);if(!s){r.visible=!1;return}if(a("text"),a("texttemplate"),a("texttemplatefallback"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback"),a("mode"),a("below"),Ere.hasMarkers(r)){Xmr(t,r,i,n,a,{noLine:!0,noAngle:!0}),a("marker.allowoverlap"),a("marker.angle");var l=r.marker;l.symbol!=="circle"&&(wk.isArrayOrTypedArray(l.size)&&(l.size=l.size[0]),wk.isArrayOrTypedArray(l.color)&&(l.color=l.color[0]))}Ere.hasLines(r)&&(Zmr(t,r,i,n,a,{noDash:!0}),a("connectgaps"));var u=o("cluster.maxzoom"),c=o("cluster.step"),f=o("cluster.color",r.marker&&r.marker.color||i),h=o("cluster.size"),p=o("cluster.opacity"),d=u!==!1||c!==!1||f!==!1||h!==!1||p!==!1,v=a("cluster.enabled",d);if(v||Ere.hasText(r)){var m=n.font.family;Kmr(t,r,n,a,{noSelect:!0,noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0,font:{family:Qmr(m)?m:"Open Sans Regular",weight:n.font.weight,style:n.font.style,size:n.font.size,color:n.font.color}})}a("fill"),r.fill!=="none"&&Jmr(t,r,i,a),wk.coerceSelectionMarkerOpacity(r,a)};function eyr(e,t,r){var i=r("lon")||[],n=r("lat")||[],a=Math.min(i.length,n.length);return t._length=a,a}});var kre=W((cri,vQe)=>{"use strict";var pQe=Yi();vQe.exports=function(t,r,i){var n={},a=i[r.subplot]._subplot,o=a.mockAxis,s=t.lonlat;return n.lonLabel=pQe.tickText(o,o.c2l(s[0]),!0).text,n.latLabel=pQe.tickText(o,o.c2l(s[1]),!0).text,n}});var Cre=W((fri,mQe)=>{"use strict";var gQe=tt();mQe.exports=function(t,r){var i=t.split(" "),n=i[0],a=i[1],o=gQe.isArrayOrTypedArray(r)?gQe.mean(r):r,s=.5+o/100,l=1.5+o/100,u=["",""],c=[0,0];switch(n){case"top":u[0]="top",c[1]=-l;break;case"bottom":u[0]="bottom",c[1]=l;break}switch(a){case"left":u[1]="right",c[0]=-s;break;case"right":u[1]="left",c[0]=s;break}var f;return u[0]&&u[1]?f=u.join("-"):u[0]?f=u[0]:u[1]?f=u[1]:f="center",{anchor:f,offset:c}}});var TQe=W((hri,wQe)=>{"use strict";var bQe=hn(),zc=tt(),tyr=(ra(),Pt(ia)).BADNUM,Xz=IE(),yQe=es(),ryr=Qi(),iyr=MA(),Zz=Wo(),nyr=(Sre(),Pt(Mre)).isSupportedFont,ayr=Cre(),oyr=ah().appendArrayPointValue,syr=ao().NEWLINES,lyr=ao().BR_TAG_ALL;wQe.exports=function(t,r){var i=r[0].trace,n=i.visible===!0&&i._length!==0,a=i.fill!=="none",o=Zz.hasLines(i),s=Zz.hasMarkers(i),l=Zz.hasText(i),u=s&&i.marker.symbol==="circle",c=s&&i.marker.symbol!=="circle",f=i.cluster&&i.cluster.enabled,h=Yz("fill"),p=Yz("line"),d=Yz("circle"),v=Yz("symbol"),m={fill:h,line:p,circle:d,symbol:v};if(!n)return m;var g;if((a||o)&&(g=Xz.calcTraceToLineCoords(r)),a&&(h.geojson=Xz.makePolygon(g),h.layout.visibility="visible",zc.extendFlat(h.paint,{"fill-color":i.fillcolor})),o&&(p.geojson=Xz.makeLine(g),p.layout.visibility="visible",zc.extendFlat(p.paint,{"line-width":i.line.width,"line-color":i.line.color,"line-opacity":i.opacity})),u){var w=uyr(r);d.geojson=w.geojson,d.layout.visibility="visible",f&&(d.filter=["!",["has","point_count"]],m.cluster={type:"circle",filter:["has","point_count"],layout:{visibility:"visible"},paint:{"circle-color":Fre(i.cluster.color,i.cluster.step),"circle-radius":Fre(i.cluster.size,i.cluster.step),"circle-opacity":Fre(i.cluster.opacity,i.cluster.step)}},m.clusterCount={type:"symbol",filter:["has","point_count"],paint:{},layout:{"text-field":"{point_count_abbreviated}","text-font":xQe(i),"text-size":12}}),zc.extendFlat(d.paint,{"circle-color":w.mcc,"circle-radius":w.mrc,"circle-opacity":w.mo})}if(u&&f&&(d.filter=["!",["has","point_count"]]),(c||l)&&(v.geojson=cyr(r,t),zc.extendFlat(v.layout,{visibility:"visible","icon-image":"{symbol}","text-field":"{text}"}),c&&(zc.extendFlat(v.layout,{"icon-size":i.marker.size/10}),"angle"in i.marker&&i.marker.angle!=="auto"&&zc.extendFlat(v.layout,{"icon-rotate":{type:"identity",property:"angle"},"icon-rotation-alignment":"map"}),v.layout["icon-allow-overlap"]=i.marker.allowoverlap,zc.extendFlat(v.paint,{"icon-opacity":i.opacity*i.marker.opacity,"icon-color":i.marker.color,"icon-halo-color":i.marker.color,"icon-halo-width":2,"icon-halo-blur":1.5})),l)){var _=(i.marker||{}).size,b=ayr(i.textposition,_);zc.extendFlat(v.layout,{"text-size":i.textfont.size,"text-anchor":b.anchor,"text-offset":b.offset,"text-font":xQe(i)}),zc.extendFlat(v.paint,{"text-color":i.textfont.color,"text-opacity":i.opacity})}return m};function Yz(e){return{type:e,geojson:Xz.makeBlank(),layout:{visibility:"none"},filter:null,paint:{}}}function uyr(e){var t=e[0].trace,r=t.marker,i=t.selectedpoints,n=zc.isArrayOrTypedArray(r.color),a=zc.isArrayOrTypedArray(r.size),o=zc.isArrayOrTypedArray(r.opacity),s;function l(_){return t.opacity*_}function u(_){return _/2}var c;n&&(yQe.hasColorscale(t,"marker")?c=yQe.makeColorScaleFuncFromTrace(r):c=zc.identity);var f;a&&(f=iyr(t));var h;o&&(h=function(_){var b=bQe(_)?+zc.constrain(_,0,1):0;return l(b)});var p=[];for(s=0;s850?s+=" Black":n>750?s+=" Extra Bold":n>650?s+=" Bold":n>550?s+=" Semi Bold":n>450?s+=" Medium":n>350?s+=" Regular":n>250?s+=" Light":n>150?s+=" Extra Light":s+=" Thin"):a.slice(0,2).join(" ")==="Open Sans"?(s="Open Sans",n>750?s+=" Extrabold":n>650?s+=" Bold":n>550?s+=" Semibold":n>350?s+=" Regular":s+=" Light"):a.slice(0,3).join(" ")==="Klokantech Noto Sans"&&(s="Klokantech Noto Sans",a[3]==="CJK"&&(s+=" CJK"),s+=n>500?" Bold":" Regular")),o&&(s+=" Italic"),s==="Open Sans Regular Italic"?s="Open Sans Italic":s==="Open Sans Regular Bold"?s="Open Sans Bold":s==="Open Sans Regular Bold Italic"?s="Open Sans Bold Italic":s==="Klokantech Noto Sans Regular Italic"&&(s="Klokantech Noto Sans Italic"),nyr(s)||(s=r);var l=s.split(", ");return l}});var EQe=W((dri,SQe)=>{"use strict";var fyr=tt(),AQe=TQe(),xT=Q2().traceLayerPrefix,ep={cluster:["cluster","clusterCount","circle"],nonCluster:["fill","line","circle","symbol"]};function MQe(e,t,r,i){this.type="scattermap",this.subplot=e,this.uid=t,this.clusterEnabled=r,this.isHidden=i,this.sourceIds={fill:"source-"+t+"-fill",line:"source-"+t+"-line",circle:"source-"+t+"-circle",symbol:"source-"+t+"-symbol",cluster:"source-"+t+"-circle",clusterCount:"source-"+t+"-circle"},this.layerIds={fill:xT+t+"-fill",line:xT+t+"-line",circle:xT+t+"-circle",symbol:xT+t+"-symbol",cluster:xT+t+"-cluster",clusterCount:xT+t+"-cluster-count"},this.below=null}var Tk=MQe.prototype;Tk.addSource=function(e,t,r){var i={type:"geojson",data:t.geojson};r&&r.enabled&&fyr.extendFlat(i,{cluster:!0,clusterMaxZoom:r.maxzoom});var n=this.subplot.map.getSource(this.sourceIds[e]);n?n.setData(t.geojson):this.subplot.map.addSource(this.sourceIds[e],i)};Tk.setSourceData=function(e,t){this.subplot.map.getSource(this.sourceIds[e]).setData(t.geojson)};Tk.addLayer=function(e,t,r){var i={type:t.type,id:this.layerIds[e],source:this.sourceIds[e],layout:t.layout,paint:t.paint};t.filter&&(i.filter=t.filter);for(var n=this.layerIds[e],a,o=this.subplot.getMapLayers(),s=0;s=0;S--){var x=b[S];n.removeLayer(u.layerIds[x])}_||n.removeSource(u.sourceIds.circle)}function h(_){for(var b=ep.nonCluster,S=0;S=0;S--){var x=b[S];n.removeLayer(u.layerIds[x]),_||n.removeSource(u.sourceIds[x])}}function d(_){l?f(_):p(_)}function v(_){s?c(_):h(_)}function m(){for(var _=s?ep.cluster:ep.nonCluster,b=0;b<_.length;b++){var S=_[b],x=a[S];x&&(i.setOptions(u.layerIds[S],"setLayoutProperty",x.layout),x.layout.visibility==="visible"&&(S!=="cluster"&&u.setSourceData(S,x),i.setOptions(u.layerIds[S],"setPaintProperty",x.paint)))}}var g=this.isHidden,w=r.visible!==!0;w?g||d():g?w||v():l!==s?(d(),v()):(this.below!==o&&(d(!0),v(!0)),m()),this.clusterEnabled=s,this.isHidden=w,this.below=o,t[0].trace._glTrace=this};Tk.dispose=function(){for(var t=this.subplot.map,r=this.clusterEnabled?ep.cluster:ep.nonCluster,i=r.length-1;i>=0;i--){var n=r[i];t.removeLayer(this.layerIds[n]),t.removeSource(this.sourceIds[n])}};SQe.exports=function(t,r){var i=r[0].trace,n=i.cluster&&i.cluster.enabled,a=i.visible!==!0,o=new MQe(t,i.uid,n,a),s=AQe(t.gd,r),l=o.below=t.belowLookup["trace-"+i.uid],u,c,f;if(n)for(o.addSource("circle",s.circle,i.cluster),u=0;u{"use strict";var hyr=Is(),Lre=tt(),dyr=s5(),pyr=Lre.fillText,vyr=(ra(),Pt(ia)).BADNUM,gyr=Q2().traceLayerPrefix;function myr(e,t,r){var i=e.cd,n=i[0].trace,a=e.xa,o=e.ya,s=e.subplot,l=[],u=gyr+n.uid+"-circle",c=n.cluster&&n.cluster.enabled;if(c){var f=s.map.queryRenderedFeatures(null,{layers:[u]});l=f.map(function(T){return T.id})}var h=t>=0?Math.floor((t+180)/360):Math.ceil((t-180)/360),p=h*360,d=t-p;function v(T){var y=T.lonlat;if(y[0]===vyr||c&&l.indexOf(T.i+1)===-1)return 1/0;var E=Lre.modHalf(y[0],360),M=y[1],C=s.project([E,M]),k=C.x-a.c2p([d,M]),D=C.y-o.c2p([E,r]),F=Math.max(3,T.mrc||0);return Math.max(Math.sqrt(k*k+D*D)-F,1-3/F)}if(hyr.getClosest(i,v,e),e.index!==!1){var m=i[e.index],g=m.lonlat,w=[Lre.modHalf(g[0],360)+p,g[1]],_=a.c2p(w),b=o.c2p(w),S=m.mrc||1;e.x0=_-S,e.x1=_+S,e.y0=b-S,e.y1=b+S;var x={};x[n.subplot]={_subplot:s};var A=n._module.formatLabels(m,n,x);return e.lonLabel=A.lonLabel,e.latLabel=A.latLabel,e.color=dyr(n,m),e.extraText=kQe(n,m,i[0].t.labels),e.hovertemplate=n.hovertemplate,[e]}}function kQe(e,t,r){if(e.hovertemplate)return;var i=t.hi||e.hoverinfo,n=i.split("+"),a=n.indexOf("all")!==-1,o=n.indexOf("lon")!==-1,s=n.indexOf("lat")!==-1,l=t.lonlat,u=[];function c(f){return f+"\xB0"}return a||o&&s?u.push("("+c(l[1])+", "+c(l[0])+")"):o?u.push(r.lon+c(l[0])):s&&u.push(r.lat+c(l[1])),(a||n.indexOf("text")!==-1)&&pyr(t,e,u),u.join("
")}CQe.exports={hoverPoints:myr,getExtraText:kQe}});var FQe=W((vri,DQe)=>{"use strict";DQe.exports=function(t,r){return t.lon=r.lon,t.lat=r.lat,t}});var PQe=W((gri,LQe)=>{"use strict";var yyr=tt(),xyr=Wo(),{BADNUM:byr}=(ra(),Pt(ia)),Qz=360,Pre=.001,eB=(e,t,r,i)=>[e.c2p([r,i]),t.c2p([r,i])];function _yr(e,t,r,i,n){let a=eB(e,t,r+Qz,i),o=eB(e,t,r-Qz,i),s=a[0]-n[0],l=a[1]-n[1],u=Math.abs(s-(n[0]-o[0])){if(Math.abs(o)n?null:[Math.floor(i)-1,Math.ceil(n)+1]}LQe.exports=function(t,r){var c;let{cd:i,xaxis:n,yaxis:a}=t,{trace:o}=i[0];if(!xyr.hasMarkers(o))return[];if(r===!1){for(let f of i)f.selected=0;return[]}let s=(c=n._subplot)==null?void 0:c.map,l=!!(s!=null&&s.getRenderWorldCopies())&&r.xmax>r.xmin,u=[];for(let f=0;f=1)return 1;let h=c;for(let v=0;v<8;v++){let m=((o*h+a)*h+n)*h-c;if(Math.abs(m)m?p=h:d=h,h=(p+d)*.5}return((u*h+l)*h+s)*h}}function UB(){return Ak!=null||(Ak=typeof OffscreenCanvas<"u"&&!!new OffscreenCanvas(1,1).getContext("2d")&&typeof createImageBitmap=="function"),Ak}function cne(){if(tB==null&&(tB=!1,UB())){let e=new OffscreenCanvas(5,5).getContext("2d",{willReadFrequently:!0});if(e){for(let r=0;r<25;r++){let i=r*4;e.fillStyle=`rgb(${i},${i+1},${i+2})`,e.fillRect(r%5,Math.floor(r/5),1,1)}let t=e.getImageData(0,0,5,5).data;for(let r=0;r<100;r++)if(r%4!=3&&t[r]!==r){tB=!0;break}}}return tB||!1}function fne(){var e=new Wu(9);return Wu!=Float32Array&&(e[1]=0,e[2]=0,e[3]=0,e[5]=0,e[6]=0,e[7]=0),e[0]=1,e[4]=1,e[8]=1,e}function Dyr(e){var t=e[0],r=e[1],i=e[2],n=e[3],a=e[4],o=e[5],s=e[6],l=e[7],u=e[8];return t*(u*a-o*l)+r*(-u*n+o*s)+i*(l*n-a*s)}function Ett(e,t){var r=Math.sin(t),i=Math.cos(t);return e[0]=i,e[1]=r,e[2]=0,e[3]=-r,e[4]=i,e[5]=0,e[6]=0,e[7]=0,e[8]=1,e}function Fyr(e,t){var r=t[0],i=t[1],n=t[2],a=t[3],o=r+r,s=i+i,l=n+n,u=r*o,c=i*o,f=i*s,h=n*o,p=n*s,d=n*l,v=a*o,m=a*s,g=a*l;return e[0]=1-f-d,e[3]=c-g,e[6]=h+m,e[1]=c+g,e[4]=1-u-d,e[7]=p-v,e[2]=h-m,e[5]=p+v,e[8]=1-u-f,e}function Om(){var e=new Wu(16);return Wu!=Float32Array&&(e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[11]=0,e[12]=0,e[13]=0,e[14]=0),e[0]=1,e[5]=1,e[10]=1,e[15]=1,e}function VB(e){var t=new Wu(16);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}function ktt(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}function up(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}function cC(e,t){var r=t[0],i=t[1],n=t[2],a=t[3],o=t[4],s=t[5],l=t[6],u=t[7],c=t[8],f=t[9],h=t[10],p=t[11],d=t[12],v=t[13],m=t[14],g=t[15],w=r*s-i*o,_=r*l-n*o,b=r*u-a*o,S=i*l-n*s,x=i*u-a*s,A=n*u-a*l,T=c*v-f*d,y=c*m-h*d,E=c*g-p*d,M=f*m-h*v,C=f*g-p*v,k=h*g-p*m,D=w*k-_*C+b*M+S*E-x*y+A*T;return D?(D=1/D,e[0]=(s*k-l*C+u*M)*D,e[1]=(n*C-i*k-a*M)*D,e[2]=(v*A-m*x+g*S)*D,e[3]=(h*x-f*A-p*S)*D,e[4]=(l*E-o*k-u*y)*D,e[5]=(r*k-n*E+a*y)*D,e[6]=(m*b-d*A-g*_)*D,e[7]=(c*A-h*b+p*_)*D,e[8]=(o*C-s*E+u*T)*D,e[9]=(i*E-r*C-a*T)*D,e[10]=(d*x-v*b+g*w)*D,e[11]=(f*b-c*x-p*w)*D,e[12]=(s*y-o*M-l*T)*D,e[13]=(r*M-i*y+n*T)*D,e[14]=(v*_-d*S-m*w)*D,e[15]=(c*S-f*_+h*w)*D,e):null}function c3(e,t,r){var i=t[0],n=t[1],a=t[2],o=t[3],s=t[4],l=t[5],u=t[6],c=t[7],f=t[8],h=t[9],p=t[10],d=t[11],v=t[12],m=t[13],g=t[14],w=t[15],_=r[0],b=r[1],S=r[2],x=r[3];return e[0]=_*i+b*s+S*f+x*v,e[1]=_*n+b*l+S*h+x*m,e[2]=_*a+b*u+S*p+x*g,e[3]=_*o+b*c+S*d+x*w,_=r[4],b=r[5],S=r[6],x=r[7],e[4]=_*i+b*s+S*f+x*v,e[5]=_*n+b*l+S*h+x*m,e[6]=_*a+b*u+S*p+x*g,e[7]=_*o+b*c+S*d+x*w,_=r[8],b=r[9],S=r[10],x=r[11],e[8]=_*i+b*s+S*f+x*v,e[9]=_*n+b*l+S*h+x*m,e[10]=_*a+b*u+S*p+x*g,e[11]=_*o+b*c+S*d+x*w,_=r[12],b=r[13],S=r[14],x=r[15],e[12]=_*i+b*s+S*f+x*v,e[13]=_*n+b*l+S*h+x*m,e[14]=_*a+b*u+S*p+x*g,e[15]=_*o+b*c+S*d+x*w,e}function lu(e,t,r){var i=r[0],n=r[1],a=r[2],o,s,l,u,c,f,h,p,d,v,m,g;return t===e?(e[12]=t[0]*i+t[4]*n+t[8]*a+t[12],e[13]=t[1]*i+t[5]*n+t[9]*a+t[13],e[14]=t[2]*i+t[6]*n+t[10]*a+t[14],e[15]=t[3]*i+t[7]*n+t[11]*a+t[15]):(o=t[0],s=t[1],l=t[2],u=t[3],c=t[4],f=t[5],h=t[6],p=t[7],d=t[8],v=t[9],m=t[10],g=t[11],e[0]=o,e[1]=s,e[2]=l,e[3]=u,e[4]=c,e[5]=f,e[6]=h,e[7]=p,e[8]=d,e[9]=v,e[10]=m,e[11]=g,e[12]=o*i+c*n+d*a+t[12],e[13]=s*i+f*n+v*a+t[13],e[14]=l*i+h*n+m*a+t[14],e[15]=u*i+p*n+g*a+t[15]),e}function Nc(e,t,r){var i=r[0],n=r[1],a=r[2];return e[0]=t[0]*i,e[1]=t[1]*i,e[2]=t[2]*i,e[3]=t[3]*i,e[4]=t[4]*n,e[5]=t[5]*n,e[6]=t[6]*n,e[7]=t[7]*n,e[8]=t[8]*a,e[9]=t[9]*a,e[10]=t[10]*a,e[11]=t[11]*a,e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}function f3(e,t,r){var i=Math.sin(r),n=Math.cos(r),a=t[4],o=t[5],s=t[6],l=t[7],u=t[8],c=t[9],f=t[10],h=t[11];return t!==e&&(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[4]=a*n+u*i,e[5]=o*n+c*i,e[6]=s*n+f*i,e[7]=l*n+h*i,e[8]=u*n-a*i,e[9]=c*n-o*i,e[10]=f*n-s*i,e[11]=h*n-l*i,e}function hne(e,t,r){var i=Math.sin(r),n=Math.cos(r),a=t[0],o=t[1],s=t[2],l=t[3],u=t[8],c=t[9],f=t[10],h=t[11];return t!==e&&(e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=a*n-u*i,e[1]=o*n-c*i,e[2]=s*n-f*i,e[3]=l*n-h*i,e[8]=a*i+u*n,e[9]=o*i+c*n,e[10]=s*i+f*n,e[11]=l*i+h*n,e}function Nm(e,t,r){var i=Math.sin(r),n=Math.cos(r),a=t[0],o=t[1],s=t[2],l=t[3],u=t[4],c=t[5],f=t[6],h=t[7];return t!==e&&(e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=a*n+u*i,e[1]=o*n+c*i,e[2]=s*n+f*i,e[3]=l*n+h*i,e[4]=u*n-a*i,e[5]=c*n-o*i,e[6]=f*n-s*i,e[7]=h*n-l*i,e}function Ctt(e,t){return e[0]=t[0],e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=t[1],e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=t[2],e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}function Lyr(e,t,r,i,n){var a=1/Math.tan(t/2);if(e[0]=a/r,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=a,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[11]=-1,e[12]=0,e[13]=0,e[15]=0,n!=null&&n!==1/0){var o=1/(i-n);e[10]=(n+i)*o,e[14]=2*n*i*o}else e[10]=-1,e[14]=-2*i;return e}function Pyr(e,t,r,i,n,a,o){var s=1/(t-r),l=1/(i-n),u=1/(a-o);return e[0]=-2*s,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*l,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*u,e[11]=0,e[12]=(t+r)*s,e[13]=(n+i)*l,e[14]=(o+a)*u,e[15]=1,e}function Dtt(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]&&e[3]===t[3]&&e[4]===t[4]&&e[5]===t[5]&&e[6]===t[6]&&e[7]===t[7]&&e[8]===t[8]&&e[9]===t[9]&&e[10]===t[10]&&e[11]===t[11]&&e[12]===t[12]&&e[13]===t[13]&&e[14]===t[14]&&e[15]===t[15]}function Ftt(e,t){var r=e[0],i=e[1],n=e[2],a=e[3],o=e[4],s=e[5],l=e[6],u=e[7],c=e[8],f=e[9],h=e[10],p=e[11],d=e[12],v=e[13],m=e[14],g=e[15],w=t[0],_=t[1],b=t[2],S=t[3],x=t[4],A=t[5],T=t[6],y=t[7],E=t[8],M=t[9],C=t[10],k=t[11],D=t[12],F=t[13],P=t[14],R=t[15];return Math.abs(r-w)<=1e-6*Math.max(1,Math.abs(r),Math.abs(w))&&Math.abs(i-_)<=1e-6*Math.max(1,Math.abs(i),Math.abs(_))&&Math.abs(n-b)<=1e-6*Math.max(1,Math.abs(n),Math.abs(b))&&Math.abs(a-S)<=1e-6*Math.max(1,Math.abs(a),Math.abs(S))&&Math.abs(o-x)<=1e-6*Math.max(1,Math.abs(o),Math.abs(x))&&Math.abs(s-A)<=1e-6*Math.max(1,Math.abs(s),Math.abs(A))&&Math.abs(l-T)<=1e-6*Math.max(1,Math.abs(l),Math.abs(T))&&Math.abs(u-y)<=1e-6*Math.max(1,Math.abs(u),Math.abs(y))&&Math.abs(c-E)<=1e-6*Math.max(1,Math.abs(c),Math.abs(E))&&Math.abs(f-M)<=1e-6*Math.max(1,Math.abs(f),Math.abs(M))&&Math.abs(h-C)<=1e-6*Math.max(1,Math.abs(h),Math.abs(C))&&Math.abs(p-k)<=1e-6*Math.max(1,Math.abs(p),Math.abs(k))&&Math.abs(d-D)<=1e-6*Math.max(1,Math.abs(d),Math.abs(D))&&Math.abs(v-F)<=1e-6*Math.max(1,Math.abs(v),Math.abs(F))&&Math.abs(m-P)<=1e-6*Math.max(1,Math.abs(m),Math.abs(P))&&Math.abs(g-R)<=1e-6*Math.max(1,Math.abs(g),Math.abs(R))}function Ltt(){var e=new Wu(3);return Wu!=Float32Array&&(e[0]=0,e[1]=0,e[2]=0),e}function HB(e){var t=new Wu(3);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function cp(e){var t=e[0],r=e[1],i=e[2];return Math.sqrt(t*t+r*r+i*i)}function IQe(e,t,r){var i=new Wu(3);return i[0]=e,i[1]=t,i[2]=r,i}function j0(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e[2]=t[2]+r[2],e}function jB(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e[2]=t[2]-r[2],e}function qs(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e[2]=t[2]*r,e}function fC(e,t,r,i){return e[0]=t[0]+r[0]*i,e[1]=t[1]+r[1]*i,e[2]=t[2]+r[2]*i,e}function Ptt(e,t){var r=t[0]-e[0],i=t[1]-e[1],n=t[2]-e[2];return Math.sqrt(r*r+i*i+n*n)}function Itt(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e}function Uf(e,t){var r=t[0],i=t[1],n=t[2],a=r*r+i*i+n*n;return a>0&&(a=1/Math.sqrt(a)),e[0]=t[0]*a,e[1]=t[1]*a,e[2]=t[2]*a,e}function uu(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function gh(e,t,r){var i=t[0],n=t[1],a=t[2],o=r[0],s=r[1],l=r[2];return e[0]=n*l-a*s,e[1]=a*o-i*l,e[2]=i*s-n*o,e}function Rtt(e,t,r){var i=t[0],n=t[1],a=t[2],o=r[3]*i+r[7]*n+r[11]*a+r[15];return o||(o=1),e[0]=(r[0]*i+r[4]*n+r[8]*a+r[12])/o,e[1]=(r[1]*i+r[5]*n+r[9]*a+r[13])/o,e[2]=(r[2]*i+r[6]*n+r[10]*a+r[14])/o,e}function ztt(e,t,r){var i=t[0],n=t[1],a=t[2];return e[0]=i*r[0]+n*r[3]+a*r[6],e[1]=i*r[1]+n*r[4]+a*r[7],e[2]=i*r[2]+n*r[5]+a*r[8],e}function $B(e,t,r){var i=r[0],n=r[1],a=r[2],o=r[3],s=t[0],l=t[1],u=t[2],c=n*u-a*l,f=a*s-i*u,h=i*l-n*s;return c+=c,f+=f,h+=h,e[0]=s+o*c+n*h-a*f,e[1]=l+o*f+a*c-i*h,e[2]=u+o*h+i*f-n*c,e}function $T(e,t,r,i){var n=[],a=[];return n[0]=t[0]-r[0],n[1]=t[1]-r[1],n[2]=t[2]-r[2],a[0]=n[0],a[1]=n[1]*Math.cos(i)-n[2]*Math.sin(i),a[2]=n[1]*Math.sin(i)+n[2]*Math.cos(i),e[0]=a[0]+r[0],e[1]=a[1]+r[1],e[2]=a[2]+r[2],e}function h3(e,t,r,i){var n=[],a=[];return n[0]=t[0]-r[0],n[1]=t[1]-r[1],n[2]=t[2]-r[2],a[0]=n[2]*Math.sin(i)+n[0]*Math.cos(i),a[1]=n[1],a[2]=n[2]*Math.cos(i)-n[0]*Math.sin(i),e[0]=a[0]+r[0],e[1]=a[1]+r[1],e[2]=a[2]+r[2],e}function WB(e,t,r,i){var n=[],a=[];return n[0]=t[0]-r[0],n[1]=t[1]-r[1],n[2]=t[2]-r[2],a[0]=n[0]*Math.cos(i)-n[1]*Math.sin(i),a[1]=n[0]*Math.sin(i)+n[1]*Math.cos(i),a[2]=n[2],e[0]=a[0]+r[0],e[1]=a[1]+r[1],e[2]=a[2]+r[2],e}function Btt(e){return e[0]=0,e[1]=0,e[2]=0,e}function Iyr(){var e=new Wu(4);return Wu!=Float32Array&&(e[0]=0,e[1]=0,e[2]=0,e[3]=0),e}function Ryr(e,t,r,i){var n=new Wu(4);return n[0]=e,n[1]=t,n[2]=r,n[3]=i,n}function zyr(e,t,r){return e[0]=t[0]*r[0],e[1]=t[1]*r[1],e[2]=t[2]*r[2],e[3]=t[3]*r[3],e}function qtt(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e[2]=t[2]*r,e[3]=t[3]*r,e}function Byr(e,t){var r=t[0],i=t[1],n=t[2],a=t[3],o=r*r+i*i+n*n+a*a;return o>0&&(o=1/Math.sqrt(o)),e[0]=r*o,e[1]=i*o,e[2]=n*o,e[3]=a*o,e}function Uc(e,t,r){var i=t[0],n=t[1],a=t[2],o=t[3];return e[0]=r[0]*i+r[4]*n+r[8]*a+r[12]*o,e[1]=r[1]*i+r[5]*n+r[9]*a+r[13]*o,e[2]=r[2]*i+r[6]*n+r[10]*a+r[14]*o,e[3]=r[3]*i+r[7]*n+r[11]*a+r[15]*o,e}function RQe(){var e=new Wu(4);return Wu!=Float32Array&&(e[0]=0,e[1]=0,e[2]=0),e[3]=1,e}function qyr(e,t,r){r*=.5;var i=Math.sin(r);return e[0]=i*t[0],e[1]=i*t[1],e[2]=i*t[2],e[3]=Math.cos(r),e}function Ntt(e,t,r){var i=t[0],n=t[1],a=t[2],o=t[3],s=r[0],l=r[1],u=r[2],c=r[3];return e[0]=i*c+o*s+n*u-a*l,e[1]=n*c+o*l+a*s-i*u,e[2]=a*c+o*u+i*l-n*s,e[3]=o*c-i*s-n*l-a*u,e}function Nk(e,t,r,i){var n=t[0],a=t[1],o=t[2],s=t[3],l=r[0],u=r[1],c=r[2],f=r[3],h,p=n*l+a*u+o*c+s*f,d,v,m;return p<0&&(p=-p,l=-l,u=-u,c=-c,f=-f),1-p>1e-6?(h=Math.acos(p),d=Math.sin(h),v=Math.sin((1-i)*h)/d,m=Math.sin(i*h)/d):(v=1-i,m=i),e[0]=v*n+m*l,e[1]=v*a+m*u,e[2]=v*o+m*c,e[3]=v*s+m*f,e}function Oyr(e,t){var r=t[0]+t[4]+t[8],i;if(r>0)i=Math.sqrt(r+1),e[3]=.5*i,i=.5/i,e[0]=(t[5]-t[7])*i,e[1]=(t[6]-t[2])*i,e[2]=(t[1]-t[3])*i;else{var n=0;t[4]>t[0]&&(n=1),t[8]>t[n*3+n]&&(n=2);var a=(n+1)%3,o=(n+2)%3;i=Math.sqrt(t[n*3+n]-t[a*3+a]-t[o*3+o]+1),e[n]=.5*i,i=.5/i,e[3]=(t[a*3+o]-t[o*3+a])*i,e[a]=(t[a*3+n]+t[n*3+a])*i,e[o]=(t[o*3+n]+t[n*3+o])*i}return e}function YB(e,t,r,i){var n=arguments.length>4&&arguments[4]!==void 0?arguments[4]:"zyx",a=Math.PI/360;t*=a,i*=a,r*=a;var o=Math.sin(t),s=Math.cos(t),l=Math.sin(r),u=Math.cos(r),c=Math.sin(i),f=Math.cos(i);switch(n){case"xyz":e[0]=o*u*f+s*l*c,e[1]=s*l*f-o*u*c,e[2]=s*u*c+o*l*f,e[3]=s*u*f-o*l*c;break;case"xzy":e[0]=o*u*f-s*l*c,e[1]=s*l*f-o*u*c,e[2]=s*u*c+o*l*f,e[3]=s*u*f+o*l*c;break;case"yxz":e[0]=o*u*f+s*l*c,e[1]=s*l*f-o*u*c,e[2]=s*u*c-o*l*f,e[3]=s*u*f+o*l*c;break;case"yzx":e[0]=o*u*f+s*l*c,e[1]=s*l*f+o*u*c,e[2]=s*u*c-o*l*f,e[3]=s*u*f-o*l*c;break;case"zxy":e[0]=o*u*f-s*l*c,e[1]=s*l*f+o*u*c,e[2]=s*u*c+o*l*f,e[3]=s*u*f-o*l*c;break;case"zyx":e[0]=o*u*f-s*l*c,e[1]=s*l*f+o*u*c,e[2]=s*u*c-o*l*f,e[3]=s*u*f+o*l*c;break;default:throw Error("Unknown angle order "+n)}return e}function XB(){var e=new Wu(2);return Wu!=Float32Array&&(e[0]=0,e[1]=0),e}function BQe(e,t){var r=new Wu(2);return r[0]=e,r[1]=t,r}function pne(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e}function vne(e){var t=e[0],r=e[1];return Math.sqrt(t*t+r*r)}function Nyr(e){var t=e[0],r=e[1];return t*t+r*r}function Uyr(e,t){return e[0]*t[0]+e[1]*t[1]}function gne(e){return e[0]=0,e[1]=0,e}function r0(e,t,r){return t*(qr/(e.tileSize*2**(r-e.tileID.overscaledZ)))}function Oc(e){return e instanceof Error?e:Error(typeof e=="string"?e:String(e))}function hx(){return new Float64Array(4)}function So(){return new Float64Array(3)}function dx(){return new Float64Array(16)}function dC(){let e=new Float64Array(16);return up(e),e}function mne(){let e=new Float32Array(16);return up(e),e}function Um(e,t,r,i,n=!1){if(!r[0]&&!r[1])return[0,0];let a=n?i==="map"?-e.bearingInRadians:0:i==="viewport"?e.bearingInRadians:0;if(a){let o=Math.sin(a),s=Math.cos(a);r=[r[0]*s-r[1]*o,r[0]*o+r[1]*s]}return[n?r[0]:r0(t,r[0],e.zoom),n?r[1]:r0(t,r[1],e.zoom)]}function ZB(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]+e[3]}function $0(e,t,r){let i=Dyr([e[0],e[1],e[2],t[0],t[1],t[2],r[0],r[1],r[2]]);if(i===0)return null;let n=gh([],[t[0],t[1],t[2]],[r[0],r[1],r[2]]),a=gh([],[r[0],r[1],r[2]],[e[0],e[1],e[2]]),o=gh([],[e[0],e[1],e[2]],[t[0],t[1],t[2]]),s=qs([],n,-e[3]);return j0(s,s,qs([],a,-t[3])),j0(s,s,qs([],o,-r[3])),qs(s,s,1/i),s}function Vtt(e,t,r){let i=e[0]*r[0]+e[1]*r[1]+e[2]*r[2],n=t[0]*r[0]+t[1]*r[1]+t[2]*r[2];return n===0?null:(-i-r[3])/n}function pC(e,t,r,i){let n=Math.sqrt(e*e+t*t),a=Math.sqrt(r*r+i*i);e/=n,t/=n,r/=a,i/=a;let o=e*r+t*i,s=Math.acos(o);return-t*r+e*i>0?s:-s}function i0(e,t){let r=ux(e,360),i=ux(t,360),n=i-r,a=i>r?n-360:n+360;return Math.abs(n)l.canonical.z)),r=1/0,i=-1/0,n=1/0,a=-1/0,o=[];for(let l of e){let{x:u,y:c,z:f}=l.canonical,h=2**(t-f),p=u*h,d=c*h;o.push({id:l,x:p,y:d}),pi&&(i=p),da&&(a=d)}let s=new Set;for(let l of o)(l.x===r||l.x===i||l.y===n||l.y===a)&&s.add(l.id);return s}function Vyr(e){if(e<=0)return 0;if(e>=1)return 1;let t=e*e,r=t*e;return 4*(e<.5?r:3*(e-t)+r-.75)}function KB(e,t,r,i){return Cyr(e,t,r,i)}function ea(e,t,r){return Math.min(r,Math.max(t,e))}function W0(e,t,r){let i=r-t,n=((e-t)%i+i)%i+t;return n===t?r:n}function dn(e,...t){for(let r of t)for(let i in r)e[i]=r[i];return e}function WT(e,t){let r={};for(let i of t)i in e&&(r[i]=e[i]);return r}function yne(){return Gyr++}function Hyr(e){return Math.log(e)/Math.LN2%1==0}function jtt(e){return e<=1?1:2**Math.ceil(Math.log(e)/Math.LN2)}function Vf(e){return 2**e}function Vc(e){return Math.log(e)/Math.LN2}function n0(e,t,r){if(t<=0)return e;let i=1/t;return r===void 0||Math.abs(r)<1e-10?Math.round(e*i)/i:(r>0?Math.ceil(e*i-1e-9):Math.floor(e*i+1e-10))/i}function QB(e,t,r){let i={};for(let n in e)i[n]=t.call(r||this,e[n],n,e);return i}function xne(e,t,r){let i={};for(let n in e)t.call(r||this,e[n],n,e)&&(i[n]=e[n]);return i}function Dv(e,t){if(Array.isArray(e)){if(!Array.isArray(t)||e.length!==t.length)return!1;for(let r=0;r(t.y-e.y)*(r.x-e.x)}function $tt(e,t,r,i){let n=t.y-e.y,a=t.x-e.x,o=i.y-r.y,s=i.x-r.x,l=o*a-s*n;if(l===0)return null;let u=e.y-r.y,c=e.x-r.x,f=(s*u-o*c)/l;return new rr(e.x+f*a,e.y+f*n)}function Wtt([e,t,r]){return t+=90,t*=Math.PI/180,r*=Math.PI/180,[e*Math.cos(t)*Math.sin(r),e*Math.sin(t)*Math.sin(r),e*Math.cos(r)]}function o3(e){return typeof WorkerGlobalScope<"u"&&e!==void 0&&e instanceof WorkerGlobalScope}function Ytt(e){let t=/(?:^|(?:\s*\,\s*))([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g,r={};if(e.replace(t,(i,n,a,o)=>{let s=a||o;return r[n]=!s||s.toLowerCase(),""}),r["max-age"]){let i=parseInt(r["max-age"],10);isNaN(i)?delete r["max-age"]:r["max-age"]=i}return r}function Xtt(e){if(Ire==null){let t=e.navigator?e.navigator.userAgent:null;Ire=!!e.safari||!!(t&&(/\b(iPad|iPhone|iPod)\b/.test(t)||t.match("Safari")&&!t.match("Chrome")))}return Ire}function px(e){return typeof ImageBitmap<"u"&&e instanceof ImageBitmap}function jyr(e,t,r,i,n){let a=Math.max(-t,0)*4,o=(Math.max(0,r)-r)*i*4+a,s=i*4,l=Math.max(0,t),u=Math.max(0,r),c=Math.min(e.width,t+i),f=Math.min(e.height,r+n);return{rect:{x:l,y:u,width:c-l,height:f-u},layout:[{offset:o,stride:s}]}}function Jtt(e,t,r,i,n){return Zi(this,null,function*(){if(typeof VideoFrame>"u")throw Error("VideoFrame not supported");let a=new VideoFrame(e,{timestamp:0});try{let o=a==null?void 0:a.format;if(!o||!(o.startsWith("BGR")||o.startsWith("RGB")))throw Error(`Unrecognized format ${o}`);let s=o.startsWith("BGR"),l=new Uint8ClampedArray(i*n*4);if(yield a.copyTo(l,jyr(e,t,r,i,n)),s)for(let u=0;u{e.removeEventListener(t,r,i)}}}function Os(e){return e*Math.PI/180}function kv(e){return e/Math.PI*180}function bne(e,t){return e.roll==t.roll&&e.pitch==t.pitch&&e.bearing==t.bearing}function Qtt(e){let t=new Float64Array(9);Fyr(t,e);let r=kv(-Math.asin(ea(t[2],-1,1))),i,n;return Math.hypot(t[5],t[8])<.001?(i=0,n=-kv(Math.atan2(t[3],t[4]))):(i=kv(t[5]===0&&t[8]===0?0:Math.atan2(t[5],t[8])),n=kv(t[1]===0&&t[0]===0?0:Math.atan2(t[1],t[0]))),{roll:i,pitch:r+90,bearing:n}}function _ne(e,t,r){let i=BQe(t.x-r.x,t.y-r.y),n=BQe(e.x-r.x,e.y-r.y),a=i[0]*n[1]-i[1]*n[0];return kv(Math.atan2(a,Uyr(i,n)))}function wne(e,t,r){let i=new Float64Array(4);return YB(i,e,t-90,r),i}function rrt(e,t){return ert[t]&&"touches"in e}function irt(e,t){var n,a;if(!trt[t])return!1;let r=e,i=((a=(n=r==null?void 0:r.target)==null?void 0:n.ownerDocument)==null?void 0:a.defaultView)||window;return r instanceof i.MouseEvent||r instanceof i.WheelEvent}function nrt(e){return ert[e]||trt[e]}function Vm(e){return e instanceof Error&&e.name==="AbortError"}function eq(e){if(e.aborted)throw new YT(e.reason)}function Tne(e){return a0.REGISTERED_PROTOCOLS[e.substring(0,e.indexOf("://"))]}function art(e,t){a0.REGISTERED_PROTOCOLS[e]=t}function ort(e){delete a0.REGISTERED_PROTOCOLS[e]}function tq(){var e;if(o3(self))return(e=self.worker)==null?void 0:e.referrer;if(window.location.protocol==="blob:")try{return window.parent.location.href}catch(t){}return window.location.href}function Wyr(e,t){return Zi(this,null,function*(){let r=new Request(e.url,{method:e.method||"GET",body:e.body,credentials:e.credentials,headers:e.headers,cache:e.cache,referrer:tq(),referrerPolicy:e.referrerPolicy,signal:t.signal});e.type==="json"&&!r.headers.has("Accept")&&r.headers.set("Accept","application/json");let i;try{i=yield fetch(r)}catch(o){throw Vm(o)?o:new zT(0,Oc(o).message,e.url,new Blob)}if(!i.ok){let o=yield i.blob();throw new zT(i.status,i.statusText,e.url,o)}let n;n=e.type==="arrayBuffer"||e.type==="image"?i.arrayBuffer():e.type==="json"?i.json():i.text();let a=yield n;return eq(t.signal),{data:a,cacheControl:i.headers.get("Cache-Control"),expires:i.headers.get("Expires"),etag:i.headers.get("ETag")}})}function Yyr(e,t){return new Promise((r,i)=>{var a;let n=new XMLHttpRequest;n.open(e.method||"GET",e.url,!0),(e.type==="arrayBuffer"||e.type==="image")&&(n.responseType="arraybuffer");for(let o in e.headers)n.setRequestHeader(o,e.headers[o]);e.type==="json"&&(n.responseType="text",(a=e.headers)!=null&&a.Accept||n.setRequestHeader("Accept","application/json")),n.withCredentials=e.credentials==="include",n.onerror=()=>{i(Error(n.statusText))},n.onload=()=>{if(!t.signal.aborted)if((n.status>=200&&n.status<300||n.status===0)&&n.response!==null){let o=n.response;if(e.type==="json")try{o=JSON.parse(n.response)}catch(s){i(s);return}r({data:o,cacheControl:n.getResponseHeader("Cache-Control"),expires:n.getResponseHeader("Expires"),etag:n.getResponseHeader("ETag")})}else{let o=new Blob([n.response],{type:n.getResponseHeader("Content-Type")});i(new zT(n.status,n.statusText,e.url,o))}},t.signal.addEventListener("abort",()=>{n.abort(),i(new YT(t.signal.reason))}),n.send(e.body)})}function Mne(e){if(!e||e.startsWith("data:image/"))return!0;if(e.startsWith("blob:")&&(e=e.slice(5),e.startsWith("null")))return!1;if(e.indexOf("://")<=0)return!0;let t=new URL(e),r=window.location;return t.protocol===r.protocol&&t.host===r.host}function NQe(e,t,r){var i;(i=r[e])!=null&&i.includes(t)||(r[e]||(r[e]=[]),r[e].push(t))}function Rre(e,t,r){if(r!=null&&r[e]){let i=r[e].indexOf(t);i!==-1&&r[e].splice(i,1)}}function Of(e,t){return{kind:"array",itemType:e,N:t}}function wl(e){if(e.kind==="array"){let t=wl(e.itemType);return typeof e.N=="number"?`array<${t}, ${e.N}>`:e.itemType.kind==="value"?"array":`array<${t}>`}return e.kind}function Xk(e,t){if(t.kind==="error")return null;if(e.kind==="array"){if(t.kind==="array"&&(t.N===0&&t.itemType.kind==="value"||!Xk(e.itemType,t.itemType))&&(typeof e.N!="number"||e.N===t.N))return null}else{if(e.kind===t.kind)return null;if(e.kind==="value"){for(let r of Zyr)if(!Xk(r,t))return null}}return`Expected ${wl(e)} but found ${wl(t)} instead.`}function Sne(e,t){return t.some(r=>r.kind===e.kind)}function i3(e,t){return t.some(r=>r==="null"?e===null:r==="array"?Array.isArray(e):r==="object"?e&&!Array.isArray(e)&&typeof e=="object":r===typeof e)}function ex(e,t){return e.kind==="array"&&t.kind==="array"?e.itemType.kind===t.itemType.kind&&typeof e.N=="number":e.kind===t.kind}function prt(e){return e%=360,e<0&&(e+=360),e}function vrt([e,t,r,i]){e=zre(e),t=zre(t),r=zre(r);let n,a,o=Bre((.2225045*e+.7168786*t+.0606169*r)/1);e===t&&t===r?n=a=o:(n=Bre((.4360747*e+.3850649*t+.1430804*r)/crt),a=Bre((.0139322*e+.0971045*t+.7141733*r)/frt));let s=116*o-16;return[s<0?0:s,500*(n-o),200*(o-a),i]}function zre(e){return e<=.04045?e/12.92:((e+.055)/1.055)**2.4}function Bre(e){return e>.008856451679035631?e**(1/3):e/drt+hrt}function grt([e,t,r,i]){let n=(e+16)/116,a=isNaN(t)?n:n+t/500,o=isNaN(r)?n:n-r/200;return n=1*Ore(n),a=crt*Ore(a),o=frt*Ore(o),[qre(3.1338561*a-1.6168667*n-.4906146*o),qre(-.9787684*a+1.9161415*n+.033454*o),qre(.0719453*a-.2289914*n+1.4052427*o),i]}function qre(e){return e=e<=.00304?12.92*e:1.055*e**(1/2.4)-.055,e<0?0:e>1?1:e}function Ore(e){return e>Qre?e*e*e:drt*(e-hrt)}function Qyr(e){let[t,r,i,n]=vrt(e),a=Math.sqrt(r*r+i*i);return[Math.round(a*1e4)?prt(Math.atan2(i,r)*Jyr):NaN,a,t,n]}function e2r([e,t,r,i]){return e=isNaN(e)?0:e*Kyr,grt([r,Math.cos(e)*t,Math.sin(e)*t,i])}function t2r([e,t,r,i]){e=prt(e),t/=100,r/=100;function n(a){let o=(a+e/30)%12,s=t*Math.min(r,1-r);return r-s*Math.max(-1,Math.min(o-3,9-o,1))}return[n(0),n(8),n(4),i]}function Uk(e,t){return r2r(e,t)?e[t]:void 0}function i2r(e){if(e=e.toLowerCase().trim(),e==="transparent")return[0,0,0,0];let t=Uk(n2r,e);if(t){let[i,n,a]=t;return[i/255,n/255,a/255,1]}if(e.startsWith("#")&&/^#(?:[0-9a-f]{3,4}|[0-9a-f]{6}|[0-9a-f]{8})$/.test(e)){let i=e.length<6?1:2,n=1;return[rB(e.slice(n,n+=i)),rB(e.slice(n,n+=i)),rB(e.slice(n,n+=i)),rB(e.slice(n,n+i)||"ff")]}if(e.startsWith("rgb")){let i=e.match(/^rgba?\(\s*([\de.+-]+)(%)?(?:\s+|\s*(,)\s*)([\de.+-]+)(%)?(?:\s+|\s*(,)\s*)([\de.+-]+)(%)?(?:\s*([,\/])\s*([\de.+-]+)(%)?)?\s*\)$/);if(i){let[n,a,o,s,l,u,c,f,h,p,d,v]=i,m=[s||" ",c||" ",p].join("");if(m===" "||m===" /"||m===",,"||m===",,,"){let g=[o,u,h].join(""),w=g==="%%%"?100:g===""?255:0;if(w){let _=[wT(+a/w,0,1),wT(+l/w,0,1),wT(+f/w,0,1),d?UQe(+d,v):1];if(VQe(_))return _}}return}}let r=e.match(/^hsla?\(\s*([\de.+-]+)(?:deg)?(?:\s+|\s*(,)\s*)([\de.+-]+)%(?:\s+|\s*(,)\s*)([\de.+-]+)%(?:\s*([,\/])\s*([\de.+-]+)(%)?)?\s*\)$/);if(r){let[i,n,a,o,s,l,u,c,f]=r,h=[a||" ",s||" ",u].join("");if(h===" "||h===" /"||h===",,"||h===",,,"){let p=[+n,wT(+o,0,100),wT(+l,0,100),c?UQe(+c,f):1];if(VQe(p))return t2r(p)}}}function rB(e){return parseInt(e.padEnd(2,e),16)/255}function UQe(e,t){return wT(t?e/100:e,0,1)}function wT(e,t,r){return Math.min(Math.max(t,e),r)}function VQe(e){return!e.some(Number.isNaN)}function sx(e,t,r){return e+r*(t-e)}function BT(e,t,r){return e.map((i,n)=>sx(i,t[n],r))}function a2r(e){return e==="rgb"||e==="hcl"||e==="lab"}function yrt(e,t,r,i){return typeof e=="number"&&e>=0&&e<=255&&typeof t=="number"&&t>=0&&t<=255&&typeof r=="number"&&r>=0&&r<=255?i===void 0||typeof i=="number"&&i>=0&&i<=1?null:`Invalid rgba value [${[e,t,r,i].join(", ")}]: 'a' must be between 0 and 1.`:`Invalid rgba value [${(typeof i=="number"?[e,t,r,i]:[e,t,r]).join(", ")}]: 'r', 'g', and 'b' must be between 0 and 255.`}function qT(e){if(e===null||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||e instanceof Gm||e instanceof aa||e instanceof Ene||e instanceof Bm||e instanceof fg||e instanceof hg||e instanceof op||e instanceof lg||e instanceof ug)return!0;if(Array.isArray(e)){for(let t of e)if(!qT(t))return!1;return!0}if(typeof e=="object"){for(let t in e)if(!qT(e[t]))return!1;return!0}return!1}function su(e){if(e===null)return xC;if(typeof e=="string")return pa;if(typeof e=="boolean")return za;if(typeof e=="number")return ki;if(e instanceof aa)return Cv;if(e instanceof Gm)return rq;if(e instanceof Ene)return iq;if(e instanceof Bm)return bC;if(e instanceof fg)return nq;if(e instanceof hg)return aq;if(e instanceof op)return Yk;if(e instanceof lg)return oq;if(e instanceof ug)return _C;if(Array.isArray(e)){let t=e.length,r;for(let i of e){let n=su(i);if(!r)r=n;else{if(r===n)continue;r=ya;break}}return Of(r||ya,t)}return r3}function Vk(e){let t=typeof e;return e===null?"":t==="string"||t==="number"||t==="boolean"?String(e):e instanceof aa||e instanceof Gm||e instanceof Bm||e instanceof fg||e instanceof hg||e instanceof op||e instanceof lg||e instanceof ug?e.toString():JSON.stringify(e)}function sq(e,t,r){let i=e.length-1,n=0,a=i,o=0,s,l;for(;n<=a;)if(o=Math.floor((n+a)/2),s=e[o],l=e[o+1],s<=t){if(o===i||tt)a=o-1;else throw new ul("Input is not a number.",r);return 0}function u2r(e,t,r,i){let n=3*e,a=3*(r-e)-n,o=1-n-a,s=3*t,l=3*(i-t)-s,u=1-s-l;return function(c,f=1e-6){if(c<=0)return 0;if(c>=1)return 1;let h=c;for(let v=0;v<8;v++){let m=((o*h+a)*h+n)*h-c;if(Math.abs(m)m?p=h:d=h,h=(p+d)*.5}return((u*h+l)*h+s)*h}}function Nre(e,t,r,i){let n=i-r,a=e-r;return n===0?0:t===1?a/n:(t**+a-1)/(t**+n-1)}function Art(e,t,r=0,i=e.length-1,n=c2r){for(;i>r;){if(i-r>600){let l=i-r+1,u=t-r+1,c=Math.log(l),f=.5*Math.exp(2*c/3),h=.5*Math.sqrt(c*f*(l-f)/l)*(u-l/2<0?-1:1);Art(e,t,Math.max(r,Math.floor(t-u*f/l+h)),Math.min(i,Math.floor(t+(l-u)*f/l+h)),n)}let a=e[t],o=r,s=i;for(Mk(e,r,t),n(e[i],a)>0&&Mk(e,r,i);o0;)s--}n(e[r],a)===0?Mk(e,r,s):(s++,Mk(e,s,i)),s<=t&&(r=s+1),t<=s&&(i=s-1)}}function Mk(e,t,r){let i=e[t];e[t]=e[r],e[r]=i}function c2r(e,t){return et)}function lq(e,t){if(e.length<=1)return[e];let r=[],i,n;for(let a of e){let o=h2r(a);o!==0&&(a.area=Math.abs(o),n===void 0&&(n=o<0),n===o<0?(i&&r.push(i),i=[a]):i.push(a))}if(i&&r.push(i),t>1)for(let a=0;ar}function T2r(e,t,r){return t<=r}function A2r(e,t,r){return t>=r}function zrt(e,t,r,i){return i.compare(t,r)===0}function M2r(e,t,r,i){return!zrt(e,t,r,i)}function S2r(e,t,r,i){return i.compare(t,r)<0}function E2r(e,t,r,i){return i.compare(t,r)>0}function k2r(e,t,r,i){return i.compare(t,r)<=0}function C2r(e,t,r,i){return i.compare(t,r)>=0}function XT(e,t,r){let i=e!=="=="&&e!=="!=";return class Brt{constructor(a,o,s,l){this.lhs=a,this.rhs=o,this.key=s,this.collator=l,this.type=za,this.hasUntypedArgument=a.type.kind==="value"||o.type.kind==="value"}static parse(a,o){if(a.length!==3&&a.length!==4)return o.error("Expected two or three arguments.");let s=a[0],l=o.parse(a[1],1,ya);if(!l)return null;if(!HQe(s,l.type))return o.concat(1).error(`"${s}" comparisons are not supported for type '${wl(l.type)}'.`);let u=o.parse(a[2],2,ya);if(!u)return null;if(!HQe(s,u.type))return o.concat(2).error(`"${s}" comparisons are not supported for type '${wl(u.type)}'.`);if(l.type.kind!==u.type.kind&&l.type.kind!=="value"&&u.type.kind!=="value")return o.error(`Cannot compare types '${wl(l.type)}' and '${wl(u.type)}'.`);i&&(l.type.kind==="value"&&u.type.kind!=="value"?l=new Im(u.type,[l],o.key):l.type.kind!=="value"&&u.type.kind==="value"&&(u=new Im(l.type,[u],o.key)));let c=null;if(a.length===4){if(l.type.kind!=="string"&&u.type.kind!=="string"&&l.type.kind!=="value"&&u.type.kind!=="value")return o.error("Cannot use collator to compare non-string types.");if(c=o.parse(a[3],3,iq),!c)return null}return new Brt(l,u,o.key,c)}evaluate(a){let o=this.lhs.evaluate(a),s=this.rhs.evaluate(a);if(i&&this.hasUntypedArgument){let l=su(o),u=su(s);if(l.kind!==u.kind||l.kind!=="string"&&l.kind!=="number")throw new ul(`Expected arguments for "${e}" to be (string, string) or (number, number), but found (${l.kind}, ${u.kind}) instead.`,this.key)}if(this.collator&&!i&&this.hasUntypedArgument){let l=su(o),u=su(s);if(l.kind!=="string"||u.kind!=="string")return t(a,o,s)}return this.collator?r(a,o,s,this.collator.evaluate(a)):t(a,o,s)}eachChild(a){a(this.lhs),a(this.rhs),this.collator&&a(this.collator)}outputDefined(){return!0}}}function O2r(e,t){let r=N2r(e[0]),i=V2r(e[1]),n=2**t.z;return[Math.round(r*n*sg),Math.round(i*n*sg)]}function Cne(e,t){let r=2**t.z,i=(e[0]/sg+t.x)/r,n=(e[1]/sg+t.y)/r;return[U2r(i),G2r(n)]}function N2r(e){return(180+e)/360}function U2r(e){return e*360-180}function V2r(e){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+e*Math.PI/360)))/360}function G2r(e){return 360/Math.PI*Math.atan(Math.exp((180-e*360)*Math.PI/180))-90}function wC(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.max(e[2],t[0]),e[3]=Math.max(e[3],t[1])}function Zk(e,t){return!(e[0]<=t[0]||e[2]>=t[2]||e[1]<=t[1]||e[3]>=t[3])}function H2r(e,t,r){return t[1]>e[1]!=r[1]>e[1]&&e[0]<(r[0]-t[0])*(e[1]-t[1])/(r[1]-t[1])+t[0]}function j2r(e,t,r){let i=e[0]-t[0],n=e[1]-t[1],a=e[0]-r[0],o=e[1]-r[1];return i*o-a*n===0&&i*a<=0&&n*o<=0}function uq(e,t,r,i){let n=[t[0]-e[0],t[1]-e[1]];return X2r([i[0]-r[0],i[1]-r[1]],n)!==0&&!!(jQe(e,t,r,i)&&jQe(r,i,e,t))}function $2r(e,t,r){for(let i of r)for(let n=0;n0&&f<0||c<0&&f>0}function Dne(e,t,r){let i=[];for(let n=0;nr[2]){let n=i*.5,a=e[0]-r[0]>n?-i:r[0]-e[0]>n?i:0;a===0&&(a=e[0]-r[2]>n?-i:r[2]-e[0]>n?i:0),e[0]+=a}wC(t,e)}function Z2r(e){e[0]=e[1]=1/0,e[2]=e[3]=-1/0}function $Qe(e,t,r,i){let n=2**i.z*sg,a=[i.x*sg,i.y*sg],o=[];for(let s of e)for(let l of s){let u=[l.x+a[0],l.y+a[1]];jrt(u,t,r,n),o.push(u)}return o}function WQe(e,t,r,i){let n=2**i.z*sg,a=[i.x*sg,i.y*sg],o=[];for(let s of e){let l=[];for(let u of s){let c=[u.x+a[0],u.y+a[1]];wC(t,c),l.push(c)}o.push(l)}if(t[2]-t[0]<=n/2){Z2r(t);for(let s of o)for(let l of s)jrt(l,t,r,n)}return o}function K2r(e,t){let r=[1/0,1/0,-1/0,-1/0],i=[1/0,1/0,-1/0,-1/0],n=e.canonicalID();if(t.type==="Polygon"){let a=Dne(t.coordinates,i,n),o=$Qe(e.geometry(),r,i,n);if(!Zk(r,i))return!1;for(let s of o)if(!ZT(s,a))return!1}if(t.type==="MultiPolygon"){let a=Hrt(t.coordinates,i,n),o=$Qe(e.geometry(),r,i,n);if(!Zk(r,i))return!1;for(let s of o)if(!W2r(s,a))return!1}return!0}function J2r(e,t){let r=[1/0,1/0,-1/0,-1/0],i=[1/0,1/0,-1/0,-1/0],n=e.canonicalID();if(t.type==="Polygon"){let a=Dne(t.coordinates,i,n),o=WQe(e.geometry(),r,i,n);if(!Zk(r,i))return!1;for(let s of o)if(!Grt(s,a))return!1}if(t.type==="MultiPolygon"){let a=Hrt(t.coordinates,i,n),o=WQe(e.geometry(),r,i,n);if(!Zk(r,i))return!1;for(let s of o)if(!Y2r(s,a))return!1}return!0}function Wrt(e,t){return t[0]-e[0]}function AB(e){return e[1]-e[0]+1}function qm(e,t){return e[1]>=e[0]&&e[1]e[1])return[null,null];let r=AB(e);if(t){if(r===2)return[e,null];let n=Math.floor(r/2);return[[e[0],e[0]+n],[e[0]+n,e[1]]]}if(r===1)return[e,null];let i=Math.floor(r/2)-1;return[[e[0],e[0]+i],[e[0]+i+1,e[1]]]}function oie(e,t){if(!qm(t,e.length))return[1/0,1/0,-1/0,-1/0];let r=[1/0,1/0,-1/0,-1/0];for(let i=t[0];i<=t[1];++i)wC(r,e[i]);return r}function sie(e){let t=[1/0,1/0,-1/0,-1/0];for(let r of e)for(let i of r)wC(t,i);return t}function XQe(e){return e[0]!==-1/0&&e[1]!==-1/0&&e[2]!==1/0&&e[3]!==1/0}function Pne(e,t,r){if(!XQe(e)||!XQe(t))return NaN;let i=0,n=0;return e[2]t[2]&&(i=e[0]-t[2]),e[1]>t[3]&&(n=e[1]-t[3]),e[3]=i)return i;if(Zk(n,a)){if(ZQe(e,t))return 0}else if(ZQe(t,e))return 0;let o=1/0;for(let s of e)for(let l=0,u=s.length,c=u-1;l0;){let l=o.pop();if(l[0]>=a)continue;let u=l[1],c=t?50:100;if(AB(u)<=c){if(!qm(u,e.length))return NaN;if(t){let f=rxr(e,u,r,i);if(isNaN(f)||f===0)return f;a=Math.min(a,f)}else for(let f=u[0];f<=u[1];++f){let h=txr(e[f],r,i);if(a=Math.min(a,h),a===0)return 0}}else{let f=aie(u,t);KQe(o,a,i,e,s,f[0]),KQe(o,a,i,e,s,f[1])}}return a}function SB(e,t,r,i,n,a=1/0){let o=Math.min(a,n.distance(e[0],r[0]));if(o===0)return o;let s=new $rt([[0,[0,e.length-1],[0,r.length-1]]],Wrt);for(;s.length>0;){let l=s.pop();if(l[0]>=o)continue;let u=l[1],c=l[2],f=t?50:100,h=i?50:100;if(AB(u)<=f&&AB(c)<=h){if(!qm(u,e.length)&&qm(c,r.length))return NaN;let p;if(t&&i)p=Q2r(e,u,r,c,n),o=Math.min(o,p);else if(t&&!i){let d=e.slice(u[0],u[1]+1);for(let v=c[0];v<=c[1];++v)if(p=e3(r[v],d,n),o=Math.min(o,p),o===0)return o}else if(!t&&i){let d=r.slice(c[0],c[1]+1);for(let v=u[0];v<=u[1];++v)if(p=e3(e[v],d,n),o=Math.min(o,p),o===0)return o}else p=exr(e,u,r,c,n),o=Math.min(o,p)}else{let p=aie(u,t),d=aie(c,i);nB(s,o,n,e,r,p[0],d[0]),nB(s,o,n,e,r,p[0],d[1]),nB(s,o,n,e,r,p[1],d[0]),nB(s,o,n,e,r,p[1],d[1])}}return o}function nxr(e,t){let r=e.geometry(),i=r.flat().map(o=>Cne([o.x,o.y],e.canonical));if(r.length===0)return NaN;let n=new Lne(i[0][1]),a=1/0;for(let o of t){switch(o.type){case"Point":a=Math.min(a,SB(i,!1,[o.coordinates],!1,n,a));break;case"LineString":a=Math.min(a,SB(i,!1,o.coordinates,!0,n,a));break;case"Polygon":a=Math.min(a,MB(i,!1,o.coordinates,n,a))}if(a===0)return a}return a}function axr(e,t){let r=e.geometry(),i=r.flat().map(o=>Cne([o.x,o.y],e.canonical));if(r.length===0)return NaN;let n=new Lne(i[0][1]),a=1/0;for(let o of t){switch(o.type){case"Point":a=Math.min(a,SB(i,!0,[o.coordinates],!1,n,a));break;case"LineString":a=Math.min(a,SB(i,!0,o.coordinates,!0,n,a));break;case"Polygon":a=Math.min(a,MB(i,!0,o.coordinates,n,a))}if(a===0)return a}return a}function oxr(e,t){let r=e.geometry();if(r.length===0||r[0].length===0)return NaN;let i=lq(r,0).map(o=>o.map(s=>s.map(l=>Cne([l.x,l.y],e.canonical)))),n=new Lne(i[0][0][0][1]),a=1/0;for(let o of t)for(let s of i){switch(o.type){case"Point":a=Math.min(a,MB([o.coordinates],!1,s,n,a));break;case"LineString":a=Math.min(a,MB(o.coordinates,!0,s,n,a));break;case"Polygon":a=Math.min(a,ixr(s,o.coordinates,n,a))}if(a===0)return a}return a}function Ure(e){return e.type==="MultiPolygon"?e.coordinates.map(t=>({type:"Polygon",coordinates:t})):e.type==="MultiLineString"?e.coordinates.map(t=>({type:"LineString",coordinates:t})):e.type==="MultiPoint"?e.coordinates.map(t=>({type:"Point",coordinates:t})):[e]}function JQe(e,[t,r,i,n],a){t=t.evaluate(e),r=r.evaluate(e),i=i.evaluate(e);let o=n?n.evaluate(e):1,s=yrt(t,r,i,o);if(s)throw new ul(s,a);return new aa(t/255,r/255,i/255,o,!1)}function QQe(e,t){return e in t&&t[e]!==void 0}function Vre(e,t){let r=t[e];return r===void 0?null:r}function uxr(e,t,r,i){for(;r<=i;){let n=r+i>>1;if(t[n]===e)return!0;t[n]>e?i=n-1:r=n+1}return!1}function Z_(e){return{type:e}}function cxr(e){return Array.isArray(e)?`(${e.map(wl).join(", ")})`:`(${wl(e.type)}...)`}function EB(e){if(e instanceof Crt)return EB(e.boundExpression);if(e instanceof p3&&e.name==="error"||e instanceof qrt||e instanceof Fne||e instanceof Rne||e instanceof zne)return!1;let t=e instanceof ET||e instanceof Im,r=!0;return e.eachChild(i=>{r&&(r=t?EB(i):i instanceof OT)}),r?cq(e)&&fq(e,["zoom","heatmap-density","elevation","line-progress","accumulated","is-supported-script"]):!1}function cq(e){if(e instanceof p3&&(e.name==="get"&&e.args.length===1||e.name==="feature-state"||e.name==="has"&&e.args.length===1||e.name==="properties"||e.name==="geometry-type"||e.name==="id"||/^filter-/.test(e.name))||e instanceof Fne||e instanceof Rne)return!1;let t=!0;return e.eachChild(r=>{t&&!cq(r)&&(t=!1)}),t}function Kk(e){if(e instanceof p3&&e.name==="feature-state")return!1;let t=!0;return e.eachChild(r=>{t&&!Kk(r)&&(t=!1)}),t}function fq(e,t){if(e instanceof p3&&t.indexOf(e.name)>=0)return!1;let r=!0;return e.eachChild(i=>{r&&!fq(i,t)&&(r=!1)}),r}function NT(e){return e["property-type"]==="data-driven"||e["property-type"]==="cross-faded-data-driven"}function Qrt(e){return!!e.expression&&e.expression.parameters.indexOf("zoom")>-1}function Bne(e){return!!e.expression&&e.expression.interpolated}function Jk(e,...t){for(let r of t)for(let i in r)e[i]=r[i];return e}function Ca(e){return e instanceof Number?"number":e instanceof String?"string":e instanceof Boolean?"boolean":Array.isArray(e)?"array":e===null?"null":typeof e}function hq(e){return typeof e=="object"&&!!e&&!Array.isArray(e)&&su(e)===r3}function fxr(e){return e}function hxr(e){switch(e.type){case"color":return aa.parse;case"padding":return fg.parse;case"numberArray":return hg.parse;case"colorArray":return op.parse;default:return null}}function dxr(e){switch(e){case"exponential":return tit;case"interval":return vxr;case"categorical":return pxr;case"identity":return gxr;default:throw Error(`Unknown function type "${e}"`)}}function eit(e,t){let r=e.stops&&typeof e.stops[0][0]=="object",i=r||e.property!==void 0,n=r||!i,a=e.type||(Bne(t)?"exponential":"interval"),o=hxr(t);if(o&&(e=Jk({},e),e.stops&&(e.stops=e.stops.map(c=>[c[0],o(c[1])])),e.default?e.default=o(e.default):e.default=o(t.default)),e.colorSpace&&!a2r(e.colorSpace))throw Error(`Unknown color space: "${e.colorSpace}"`);let s=dxr(a),l,u;if(a==="categorical"){l=Object.create(null);for(let c of e.stops)l[c[0]]=c[1];u=typeof e.stops[0][0]}if(r){let c={},f=[];for(let d=0;dd[0]),evaluate({zoom:d},v){return tit({stops:h,base:e.base},t,d).evaluate(d,v)}}}if(n){let c=a==="exponential"?{name:"exponential",base:e.base===void 0?1:e.base}:null;return{kind:"camera",interpolationType:c,interpolationFactor:sp.interpolationFactor.bind(void 0,c),zoomStops:e.stops.map(f=>f[0]),evaluate:({zoom:f})=>s(e,t,f,l,u)}}return{kind:"source",evaluate(c,f){let h=f&&f.properties?f.properties[e.property]:void 0;return h===void 0?TC(e.default,t.default):s(e,t,h,l,u)}}}function TC(e,t,r){if(e!==void 0)return e;if(t!==void 0)return t;if(r!==void 0)return r}function pxr(e,t,r,i,n){return TC(typeof r===n?i[r]:void 0,e.default,t.default)}function vxr(e,t,r){if(Ca(r)!=="number")return TC(e.default,t.default);let i=e.stops.length;if(i===1||r<=e.stops[0][0])return e.stops[0][1];if(r>=e.stops[i-1][0])return e.stops[i-1][1];let n=sq(e.stops.map(a=>a[0]),r,"");return e.stops[n][1]}function tit(e,t,r){let i=e.base===void 0?1:e.base;if(Ca(r)!=="number")return TC(e.default,t.default);let n=e.stops.length;if(n===1||r<=e.stops[0][0])return e.stops[0][1];if(r>=e.stops[n-1][0])return e.stops[n-1][1];let a=sq(e.stops.map(c=>c[0]),r,""),o=mxr(r,i,e.stops[a][0],e.stops[a+1][0]),s=e.stops[a][1],l=e.stops[a+1][1],u=Ks[t.type]||fxr;return typeof s.evaluate=="function"?{evaluate(...c){let f=s.evaluate.apply(void 0,c),h=l.evaluate.apply(void 0,c);if(f!==void 0&&h!==void 0)return u(f,h,o,e.colorSpace)}}:u(s,l,o,e.colorSpace)}function gxr(e,t,r){switch(t.type){case"color":r=aa.parse(r);break;case"formatted":r=Bm.fromString(r.toString());break;case"resolvedImage":r=ug.fromString(r.toString());break;case"padding":r=fg.parse(r);break;case"colorArray":r=op.parse(r);break;case"numberArray":r=hg.parse(r);break;default:Ca(r)!==t.type&&(t.type!=="enum"||!t.values[r])&&(r=void 0)}return TC(r,e.default,t.default)}function mxr(e,t,r,i){let n=i-r,a=e-r;return n===0?0:t===1?a/n:(t**+a-1)/(t**+n-1)}function lie(e){return{result:"success",value:e}}function AT(e){return{result:"error",value:e}}function rit(e,t,r,i){return`${e}${t}: ${r}${i==null?"":` Falling back to ${String(i)}.`}`}function iit(e){if(!e)throw Error('rootKey must identify the location of the expression in the style JSON, e.g. "layers[3].paint.line-width".')}function dq(e){return Array.isArray(e)&&e.length>0&&typeof e[0]=="string"&&e[0]in DT}function pq(e,t,r,i){iit(t);let n=new Krt(DT,EB,[],r?bxr(r):void 0),a=n.parse(e,void 0,void 0,void 0,r&&r.type==="string"?{typeAnnotation:"coerce"}:void 0);return a?lie(new One(a,t,r,i)):AT(n.errors)}function yxr(e){return e._styleExpression!==void 0}function nit(e,t,r,i){let n=pq(e,t,r,i);if(n.result==="error")return n;let a=n.value.expression,o=cq(a);if(!o&&!NT(r))return AT([new ig("","data expressions not supported")]);let s=fq(a,["zoom"]);if(!s&&!Qrt(r))return AT([new ig("","zoom expressions not supported")]);let l=_B(a);if(!l&&!s)return AT([new ig("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.')]);if(l instanceof ig)return AT([l]);if(l instanceof sp&&!Bne(r))return AT([new ig("",'"interpolate" expressions cannot be used with this property')]);if(!l)return lie(o?new Qk("constant",n.value,i):new Qk("source",n.value,i));let u=l instanceof sp?l.interpolation:void 0;return lie(o?new kB("camera",n.value,l.labels,u,i):new kB("composite",n.value,l.labels,u,i))}function xxr(e,t,r,i){if(hq(e))return new ait(e,t,r);if(dq(e)){let n=nit(e,t,r,i);if(n.result==="error")throw Error(n.value.map(a=>`${a.key}: ${a.message}`).join(", "));return n.value}{let n=e;return r.type==="color"&&typeof e=="string"?n=aa.parse(e):r.type==="padding"&&(typeof e=="number"||Array.isArray(e))?n=fg.parse(e):r.type==="numberArray"&&(typeof e=="number"||Array.isArray(e))?n=hg.parse(e):r.type==="colorArray"&&(typeof e=="string"||Array.isArray(e))?n=op.parse(e):r.type==="variableAnchorOffsetCollection"&&Array.isArray(e)?n=lg.parse(e):r.type==="projectionDefinition"&&typeof e=="string"&&(n=Gm.parse(e)),{globalStateRefs:new Set,_globalState:null,kind:"constant",evaluate:()=>n}}}function _B(e){let t=null;if(e instanceof Ert)t=_B(e.result);else if(e instanceof Rrt){for(let r of e.args)if(t=_B(r),t)break}else(e instanceof kne||e instanceof sp)&&e.input instanceof p3&&e.input.name==="zoom"&&(t=e);return t instanceof ig||e.eachChild(r=>{let i=_B(r);i instanceof ig?t=i:!t&&i?t=new ig("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.'):t&&i&&t!==i&&(t=new ig("",'Only one zoom-based "step" or "interpolate" subexpression may be used in an expression.'))}),t}function AC(e,t=new Set){return e instanceof zne&&t.add(e.key),e.eachChild(r=>{AC(r,t)}),t}function bxr(e){let t={color:Cv,string:pa,number:ki,enum:pa,boolean:za,formatted:bC,padding:nq,numberArray:aq,colorArray:Yk,projectionDefinition:rq,resolvedImage:_C,variableAnchorOffsetCollection:oq};return e.type==="array"?Of(t[e.value]||ya,e.length):t[e.type]}function sit(e){if(e.type==="color"&&hq(e.default))return new aa(0,0,0,0);switch(e.type){case"color":return aa.parse(e.default)||null;case"padding":return fg.parse(e.default)||null;case"numberArray":return hg.parse(e.default)||null;case"colorArray":return op.parse(e.default)||null;case"variableAnchorOffsetCollection":return lg.parse(e.default)||null;case"projectionDefinition":return Gm.parse(e.default)||null;default:return e.default===void 0?null:e.default}}function UT(e,t){let{zoom:r,heatmapDensity:i,elevation:n,lineProgress:a,isSupportedScript:o,accumulated:s}=e!=null?e:{};return{zoom:r,heatmapDensity:i,elevation:n,lineProgress:a,isSupportedScript:o,accumulated:s,globalState:t}}function _xr(e){let t=!1;for(let r of e){let i=lit(r);if(i==="expression")return"expression";i==="legacy"&&(t=!0)}return t?"legacy":"neutral"}function lit(e){if(typeof e=="boolean")return"neutral";if(!Array.isArray(e)||e.length===0)return"legacy";switch(e[0]){case"has":return e.length<2||e[1]==="$id"||e[1]==="$type"?"legacy":e.length===2?"neutral":"expression";case"in":return e.length>=3&&(typeof e[1]!="string"||Array.isArray(e[2]))?"expression":"legacy";case"!in":case"!has":return"legacy";case"==":case"!=":case">":case">=":case"<":case"<=":return e.length!==3||Array.isArray(e[1])||Array.isArray(e[2])?"expression":"legacy";case"none":return"legacy";case"any":case"all":return _xr(e.slice(1));default:return"expression"}}function Nne(e){return lit(e)!=="legacy"}function eet(e){return e==="$type"?["geometry-type"]:e==="$id"?["id"]:["get",e]}function wxr(e){switch(e[0]){case"==":case"!=":case"<":case"<=":case">":case">=":return e.length!==3||typeof e[1]!="string"?null:[e[0],eet(e[1]),e[2]];case"in":case"!in":{if(e.length<2||typeof e[1]!="string")return null;let t=["in",eet(e[1]),["literal",e.slice(2)]];return e[0]==="!in"?["!",t]:t}case"has":case"!has":{if(e.length!==2||typeof e[1]!="string"||e[1]==="$type"||e[1]==="$id")return null;let t=["has",e[1]];return e[0]==="!has"?["!",t]:t}default:return null}}function uit(e){if((e[0]==="<"||e[0]==="<="||e[0]===">"||e[0]===">=")&&e[1]==="$type")return`"$type" cannot be use with operator "${e[0]}"`;let t=wxr(e);return t?`Mixing deprecated filter syntax with expression syntax is not supported. Replace ${JSON.stringify(e)} with ${JSON.stringify(t)}.`:`Mixing deprecated filter syntax with expression syntax is not supported. Convert ${JSON.stringify(e)} to expression syntax.`}function Gre(e,t,r){let i=r[e];return Array.isArray(i)?Nne(i)?Une(i,t.concat(e)):{path:t.concat(e),legacyFilter:i}:null}function Une(e,t=[]){if(!Array.isArray(e)||e.length<1)return null;switch(e[0]){case"all":case"any":case"none":for(let r=1;r"u")return;let i=r.path.map(n=>`[${n}]`).join("");console.warn(`${t}${i}: ${uit(r.legacyFilter)}`)}function VT(e,t,r){if(e==null)return{filter:()=>!0,needGeometry:!1,getGlobalStateRefs:()=>new Set};Nne(e)?Txr(e,t):e=CB(e);let i=pq(e,t,Axr,r);if(i.result==="error")throw Error(i.value.map(n=>`${n.key}: ${n.message}`).join(", "));return{filter:(n,a,o)=>i.value.evaluate(n,a,{},o),needGeometry:cit(e),getGlobalStateRefs:()=>AC(i.value.expression)}}function Mxr(e,t){return et)}function cit(e){if(!Array.isArray(e))return!1;if(e[0]==="within"||e[0]==="distance")return!0;for(let t=1;t"||t==="<="||t===">="?Hre(e[1],e[2],t):t==="any"?Sxr(e.slice(1)):t==="all"?["all"].concat(e.slice(1).map(CB)):t==="none"?["all"].concat(e.slice(1).map(CB).map(aB)):t==="in"?tet(e[1],e.slice(2)):t==="!in"?aB(tet(e[1],e.slice(2))):t==="has"?ret(e[1]):t!=="!has"||aB(ret(e[1]))}function Hre(e,t,r){switch(e){case"$type":return[`filter-type-${r}`,t];case"$id":return[`filter-id-${r}`,t];default:return[`filter-${r}`,e,t]}}function Sxr(e){return["any"].concat(e.map(CB))}function tet(e,t){if(t.length===0)return!1;switch(e){case"$type":return["filter-type-in",["literal",t]];case"$id":return["filter-id-in",["literal",t]];default:return t.length>200&&!t.some(r=>typeof r!=typeof t[0])?["filter-in-large",e,["literal",t.sort(Mxr)]]:["filter-in-small",e,["literal",t]]}}function ret(e){switch(e){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",e]}}function aB(e){return["!",e]}function fit(e){let t=e.key,r=e.value;return r?[new ri(t,r,"constants have been deprecated as of v8")]:[]}function au(e){return e instanceof Number||e instanceof String||e instanceof Boolean?e.valueOf():e}function s3(e){if(Array.isArray(e))return e.map(s3);if(e instanceof Object&&!(e instanceof Number||e instanceof String||e instanceof Boolean)){let t={};for(let r in e)t[r]=s3(e[r]);return t}return au(e)}function G0(e){let t=e.key,r=e.value,i=e.valueSpec||{},n=e.objectElementValidators||{},a=e.style,o=e.styleSpec,s=e.validateSpec,l=[],u=Ca(r);if(u!=="object")return[new ri(t,r,`object expected, ${u} found`)];for(let c in r){let f=c.split(".")[0],h=Uk(i,f)||i["*"],p;if(Uk(n,f))p=n[f];else if(Uk(i,f)){if(r[c]===void 0)continue;p=s}else if(n["*"])p=n["*"];else if(i["*"])p=s;else{l.push(new ri(t,r[c],`unknown property "${c}"`));continue}l=l.concat(p({key:(t&&`${t}.`)+c,value:r[c],valueSpec:h,style:a,styleSpec:o,object:r,objectKey:c,validateSpec:s},r))}for(let c in i)n[c]||i[c].required&&i[c].default===void 0&&r[c]===void 0&&l.push(new ri(t,r,`missing required property "${c}"`));return l}function Vne(e){let t=e.value,r=e.valueSpec,i=e.validateSpec,n=e.style,a=e.styleSpec,o=e.key,s=e.arrayElementValidator||i;if(Ca(t)!=="array")return[new ri(o,t,`array expected, ${Ca(t)} found`)];if(r.length&&t.length!==r.length)return[new ri(o,t,`array length ${r.length} expected, length ${t.length} found`)];let l={type:r.value,values:r.values};a.$version<7&&(l.function=r.function),Ca(r.value)==="object"&&(l=r.value);let u=[];for(let c=0;ci.maximum?[new ri(t,r,`${r} is greater than the maximum value ${i.maximum}`)]:[]:[new ri(t,r,`number expected, ${n} found`)]}function hit(e){let t=e.valueSpec,r=au(e.value.type),i,n={},a,o,s=r!=="categorical"&&e.value.property===void 0,l=!s,u=Ca(e.value.stops)==="array"&&Ca(e.value.stops[0])==="array"&&Ca(e.value.stops[0][0])==="object",c=G0({key:e.key,value:e.value,valueSpec:e.styleSpec.function,validateSpec:e.validateSpec,style:e.style,styleSpec:e.styleSpec,objectElementValidators:{stops:f,default:d}});return r==="identity"&&s&&c.push(new ri(e.key,e.value,'missing required property "property"')),r!=="identity"&&!e.value.stops&&c.push(new ri(e.key,e.value,'missing required property "stops"')),r==="exponential"&&e.valueSpec.expression&&!Bne(e.valueSpec)&&c.push(new ri(e.key,e.value,"exponential functions not supported")),e.styleSpec.$version>=8&&(l&&!NT(e.valueSpec)?c.push(new ri(e.key,e.value,"property functions not supported")):s&&!Qrt(e.valueSpec)&&c.push(new ri(e.key,e.value,"zoom functions not supported"))),(r==="categorical"||u)&&e.value.property===void 0&&c.push(new ri(e.key,e.value,'"property" property is required')),c;function f(v){if(r==="identity")return[new ri(v.key,v.value,'identity function may not have a "stops" property')];let m=[],g=v.value;return m=m.concat(Vne({key:v.key,value:g,valueSpec:v.valueSpec,validateSpec:v.validateSpec,style:v.style,styleSpec:v.styleSpec,arrayElementValidator:h})),Ca(g)==="array"&&g.length===0&&m.push(new ri(v.key,g,"array must have at least one stop")),m}function h(v){let m=[],g=v.value,w=v.key;if(Ca(g)!=="array")return[new ri(w,g,`array expected, ${Ca(g)} found`)];if(g.length!==2)return[new ri(w,g,`array length 2 expected, length ${g.length} found`)];if(u){if(Ca(g[0])!=="object")return[new ri(w,g,`object expected, ${Ca(g[0])} found`)];if(g[0].zoom===void 0)return[new ri(w,g,"object stop key must have zoom")];if(g[0].value===void 0)return[new ri(w,g,"object stop key must have value")];if(o&&o>au(g[0].zoom))return[new ri(w,g[0].zoom,"stop zoom values must appear in ascending order")];au(g[0].zoom)!==o&&(o=au(g[0].zoom),a=void 0,n={}),m=m.concat(G0({key:`${w}[0]`,value:g[0],valueSpec:{zoom:{}},validateSpec:v.validateSpec,style:v.style,styleSpec:v.styleSpec,objectElementValidators:{zoom:vq,value:p}}))}else m=m.concat(p({key:`${w}[0]`,value:g[0],valueSpec:{},validateSpec:v.validateSpec,style:v.style,styleSpec:v.styleSpec},g));return dq(s3(g[1]))?m.concat([new ri(`${w}[1]`,g[1],"expressions are not allowed in function stops.")]):m.concat(v.validateSpec({key:`${w}[1]`,value:g[1],valueSpec:t,validateSpec:v.validateSpec,style:v.style,styleSpec:v.styleSpec}))}function p(v,m){let g=Ca(v.value),w=au(v.value),_=v.value===null?m:v.value;if(!i)i=g;else if(g!==i)return[new ri(v.key,_,`${g} stop domain type must match previous stop domain type ${i}`)];if(g!=="number"&&g!=="string"&&g!=="boolean")return[new ri(v.key,_,"stop domain value must be a number, string, or boolean")];if(g!=="number"&&r!=="categorical"){let b=`number expected, ${g} found`;return NT(t)&&r===void 0&&(b+='\nIf you intended to use a categorical function, specify `"type": "categorical"`.'),[new ri(v.key,_,b)]}return r==="categorical"&&g==="number"&&(!isFinite(w)||Math.floor(w)!==w)?[new ri(v.key,_,`integer expected, found ${w}`)]:r!=="categorical"&&g==="number"&&a!==void 0&&wnew ri(`${e.key}${i.key}`,e.value,i.message));let r=t.value.expression||t.value._styleExpression.expression;if(e.expressionContext==="property"&&e.propertyKey==="text-font"&&!r.outputDefined())return[new ri(e.key,e.value,`Invalid data expression for "${e.propertyKey}". Output values must be contained as literals within the expression.`)];if(e.expressionContext==="property"&&e.propertyType==="layout"&&!Kk(r))return[new ri(e.key,e.value,'"feature-state" data expressions are not supported with layout properties.')];if(e.expressionContext==="filter"&&!Kk(r))return[new ri(e.key,e.value,'"feature-state" data expressions are not supported with filters.')];if(e.expressionContext&&e.expressionContext.indexOf("cluster")===0){if(!fq(r,["zoom","feature-state"]))return[new ri(e.key,e.value,'"zoom" and "feature-state" expressions are not supported with cluster properties.')];if(e.expressionContext==="cluster-initial"&&!cq(r))return[new ri(e.key,e.value,"Feature data expressions are not supported with initial expression part of cluster properties.")]}return[]}function Exr(e){let t=e.value,r=e.key,i=Ca(t);return i==="boolean"?[]:[new ri(r,t,`boolean expected, ${i} found`)]}function uie(e){let t=e.key,r=e.value,i=Ca(r);return i==="string"?aa.parse(String(r))?[]:[new ri(t,r,`color expected, "${r}" found`)]:[new ri(t,r,`color expected, ${i} found`)]}function eC(e){let t=e.key,r=e.value,i=e.valueSpec,n=[];return Array.isArray(i.values)?i.values.indexOf(au(r))===-1&&n.push(new ri(t,r,`expected one of [${i.values.join(", ")}], ${JSON.stringify(r)} found`)):Object.keys(i.values).indexOf(au(r))===-1&&n.push(new ri(t,r,`expected one of [${Object.keys(i.values).join(", ")}], ${JSON.stringify(r)} found`)),n}function kxr(e,t){let r=e;for(let i of t)r=r[i];return r}function Cxr(e,t){let r=Une(t);return r?[new ri(`${e.key}${r.path.map(i=>`[${i}]`).join("")}`,kxr(e.value,r.path),uit(r.legacyFilter),null,"warning")]:[]}function Gne(e){let t=s3(e.value);return Nne(t)?[...Cxr(e,t),...GT(Jk({},e,{expressionContext:"filter",valueSpec:{value:"boolean"}}))]:dit(e)}function dit(e){let t=e.value,r=e.key;if(Ca(t)!=="array")return[new ri(r,t,`array expected, ${Ca(t)} found`)];let i=e.styleSpec,n,a=[];if(t.length<1)return[new ri(r,t,"filter array must have at least 1 element")];switch(a=a.concat(eC({key:`${r}[0]`,value:t[0],valueSpec:i.filter_operator,style:e.style,styleSpec:e.styleSpec})),au(t[0])){case"<":case"<=":case">":case">=":t.length>=2&&au(t[1])==="$type"&&a.push(new ri(r,t,`"$type" cannot be use with operator "${t[0]}"`));case"==":case"!=":t.length!==3&&a.push(new ri(r,t,`filter array for operator "${t[0]}" must have 3 elements`));case"in":case"!in":t.length>=2&&(n=Ca(t[1]),n!=="string"&&a.push(new ri(`${r}[1]`,t[1],`string expected, ${n} found`)));for(let o=2;o{f in r&&t.push(new ri(i,r[f],`"${f}" is prohibited for ref layers`))});let c;n.layers.forEach(f=>{au(f.id)===s&&(c=f)}),c?c.ref?t.push(new ri(i,r.ref,"ref cannot reference another ref layer")):o=au(c.type):t.push(new ri(i,r.ref,`ref layer "${s}" not found`))}else if(o!=="background")if(!r.source)t.push(new ri(i,r,'missing required property "source"'));else{let c=n.sources&&n.sources[r.source],f=c&&au(c.type);c?f==="vector"&&o==="raster"?t.push(new ri(i,r.source,`layer "${r.id}" requires a raster source`)):f!=="raster-dem"&&o==="hillshade"||f!=="raster-dem"&&o==="color-relief"?t.push(new ri(i,r.source,`layer "${r.id}" requires a raster-dem source`)):f==="raster"&&o!=="raster"?t.push(new ri(i,r.source,`layer "${r.id}" requires a vector source`)):f==="vector"&&!r["source-layer"]?t.push(new ri(i,r,`layer "${r.id}" must specify a "source-layer"`)):f==="raster-dem"&&o!=="hillshade"&&o!=="color-relief"?t.push(new ri(i,r.source,"raster-dem source can only be used with layer type 'hillshade' or 'color-relief'.")):o==="line"&&r.paint&&r.paint["line-gradient"]&&(f!=="geojson"||!c.lineMetrics)&&t.push(new ri(i,r,`layer "${r.id}" specifies a line-gradient, which requires a GeoJSON source with \`lineMetrics\` enabled.`)):t.push(new ri(i,r.source,`source "${r.source}" not found`))}return o==="raster"&&((l=r.paint)!=null&&l.resampling)&&((u=r.paint)!=null&&u["raster-resampling"])&&t.push(new ri(i,r.paint,`layer "${r.id}" redundantly specifies "resampling" and "raster-resampling" paint properties, but only one is allowed. It is advised to use "resampling".`)),t=t.concat(G0({key:i,value:r,valueSpec:a.layer,style:e.style,styleSpec:e.styleSpec,validateSpec:e.validateSpec,objectElementValidators:{"*"(){return[]},type(){return e.validateSpec({key:`${i}.type`,value:r.type,valueSpec:a.layer.type,style:e.style,styleSpec:e.styleSpec,validateSpec:e.validateSpec,object:r,objectKey:"type"})},filter:Gne,layout(c){return G0({layer:r,key:c.key,value:c.value,style:c.style,styleSpec:c.styleSpec,validateSpec:c.validateSpec,objectElementValidators:{"*"(f){return git(Jk({layerType:o},f))}}})},paint(c){return G0({layer:r,key:c.key,value:c.value,style:c.style,styleSpec:c.styleSpec,validateSpec:c.validateSpec,objectElementValidators:{"*"(f){return vit(Jk({layerType:o},f))}}})}}})),t}function cx(e){let t=e.value,r=e.key,i=Ca(t);return i==="string"?[]:[new ri(r,t,`string expected, ${i} found`)]}function Dxr(e){var f;let t=(f=e.sourceName)!=null?f:"",r=e.value,i=e.styleSpec,n=i.source_raster_dem,a=e.style,o=[],s=Ca(r);if(r===void 0)return o;if(s!=="object")return o.push(new ri("source_raster_dem",r,`object expected, ${s} found`)),o;let l=au(r.encoding)==="custom",u=["redFactor","greenFactor","blueFactor","baseShift"],c=e.value.encoding?`"${e.value.encoding}"`:"Default";for(let h in r)!l&&u.includes(h)?o.push(new ri(h,r[h],`In "${t}": "${h}" is only valid when "encoding" is set to "custom". ${c} encoding found`)):n[h]?o=o.concat(e.validateSpec({key:h,value:r[h],valueSpec:n[h],validateSpec:e.validateSpec,style:a,styleSpec:i})):o.push(new ri(h,r[h],`unknown property "${h}"`));return o}function yit(e){let t=e.value,r=e.key,i=e.styleSpec,n=e.style,a=e.validateSpec;if(!t.type)return[new ri(r,t,'"type" is required')];let o=au(t.type),s;switch(o){case"vector":case"raster":return s=G0({key:r,value:t,valueSpec:i[`source_${o.replace("-","_")}`],style:e.style,styleSpec:i,objectElementValidators:iet,validateSpec:a}),s;case"raster-dem":return s=Dxr({sourceName:r,value:t,style:e.style,styleSpec:i,validateSpec:a}),s;case"geojson":if(s=G0({key:r,value:t,valueSpec:i.source_geojson,style:n,styleSpec:i,validateSpec:a,objectElementValidators:iet}),t.cluster)for(let l in t.clusterProperties){let[u,c]=t.clusterProperties[l],f=typeof u=="string"?[u,["accumulated"],["get",l]]:u;s.push(...GT({key:`${r}.${l}.map`,value:c,validateSpec:a,expressionContext:"cluster-map"})),s.push(...GT({key:`${r}.${l}.reduce`,value:f,validateSpec:a,expressionContext:"cluster-reduce"}))}return s;case"video":return G0({key:r,value:t,valueSpec:i.source_video,style:n,validateSpec:a,styleSpec:i});case"image":return G0({key:r,value:t,valueSpec:i.source_image,style:n,validateSpec:a,styleSpec:i});case"canvas":return[new ri(r,null,"Please use runtime APIs to add canvas sources, rather than including them in stylesheets.","source.canvas")];default:return eC({key:`${r}.type`,value:t.type,valueSpec:{values:["vector","raster","raster-dem","geojson","video","image"]},style:n,validateSpec:a,styleSpec:i})}}function Fxr({key:e,value:t}){if(Ca(t)==="string")return cx({key:e,value:t});{let r=[];for(let i in t)r.push(...cx({key:`${e}.${i}`,value:t[i]}));return r}}function xit(e){let t=e.value,r=e.styleSpec,i=r.light,n=e.style,a=[],o=Ca(t);if(t===void 0)return a;if(o!=="object")return a=a.concat([new ri("light",t,`object expected, ${o} found`)]),a;for(let s in t){let l=s.match(qne);a=l&&i[l[1]]&&i[l[1]].transition?a.concat(e.validateSpec({key:s,value:t[s],valueSpec:r.transition,validateSpec:e.validateSpec,style:n,styleSpec:r})):i[s]?a.concat(e.validateSpec({key:s,value:t[s],valueSpec:i[s],validateSpec:e.validateSpec,style:n,styleSpec:r})):a.concat([new ri(s,t[s],`unknown property "${s}"`)])}return a}function bit(e){let t=e.value,r=e.styleSpec,i=r.sky,n=e.style,a=Ca(t);if(t===void 0)return[];if(a!=="object")return[new ri("sky",t,`object expected, ${a} found`)];let o=[];for(let s in t){let l=s.match(qne);o=l&&i[l[1]]&&i[l[1]].transition?o.concat(e.validateSpec({key:s,value:t[s],valueSpec:r.transition,style:n,styleSpec:r})):i[s]?o.concat(e.validateSpec({key:s,value:t[s],valueSpec:i[s],style:n,styleSpec:r})):o.concat([new ri(s,t[s],`unknown property "${s}"`)])}return o}function _it(e){let t=e.value,r=e.styleSpec,i=r.terrain,n=e.style,a=[],o=Ca(t);if(t===void 0)return a;if(o!=="object")return a=a.concat([new ri("terrain",t,`object expected, ${o} found`)]),a;for(let s in t)a=i[s]?a.concat(e.validateSpec({key:s,value:t[s],valueSpec:i[s],validateSpec:e.validateSpec,style:n,styleSpec:r})):a.concat([new ri(s,t[s],`unknown property "${s}"`)]);return a}function Lxr(e){return cx(e).length===0?[]:GT(e)}function Pxr(e){return cx(e).length===0?[]:GT(e)}function Ixr(e){let t=e.key,r=e.value;if(Ca(r)==="array"){if(r.length<1||r.length>4)return[new ri(t,r,`padding requires 1 to 4 values; ${r.length} values found`)];let i={type:"number"},n=[];for(let a=0;a[new ri(e,t,'invalid unicode range, expected a value such as "U+26", "U+0-10FFFF" or "U+4??"')],n=r.match(Vxr);if(!n)return i();let[,a,o,s]=n;if(s!==void 0)return s.length>6?i():[];let l=parseInt(a,16),u=o===void 0?l:parseInt(o,16);return l>net||u>net?[new ri(e,t,"unicode range is out of bounds, the maximum code point is U+10FFFF")]:l>u?[new ri(e,t,`unicode range start must not be greater than its end, but ${r} is`)]:[]}function Ait(e){var s,l;let t=(s=e.key)!=null?s:"font-faces",r=e.value,i=e.validateSpec,n=(l=e.styleSpec)!=null?l:lrt,a=e.style;if(!cie(r))return[new ri(t,r,`object expected, ${Ca(r)} found`)];let o=[];for(let u in r){let c=r[u],f=Ca(c);if(f==="string")o.push(...cx({key:`${t}.${u}`,value:c}));else if(f==="array"){let h={url:{type:"string",required:!0},"unicode-range":{type:"array",value:"string"}};for(let[p,d]of c.entries()){let v=`${t}.${u}[${p}]`;o.push(...G0({key:v,value:d,valueSpec:h,styleSpec:n,style:a,validateSpec:i}));let m=cie(d)?d["unicode-range"]:void 0;if(Ca(m)==="array")for(let[g,w]of m.entries())o.push(...Gxr(`${v}.unicode-range[${g}]`,w))}}else o.push(new ri(`${t}.${u}`,c,`string or array expected, ${f} found`))}return o}function Gk(e){let t=e.value,r=e.valueSpec,i=e.styleSpec;return e.validateSpec=Gk,r.expression&&hq(au(t))?hit(e):r.expression&&dq(s3(t))?GT(e):r.type&&aet[r.type]?aet[r.type](e):G0(Jk({},e,{valueSpec:r.type?i[r.type]:r}))}function Mit(e){let t=e.value,r=e.key,i=cx(e);return i.length||(t.indexOf("{fontstack}")===-1&&i.push(new ri(r,t,'"glyphs" url must include a "{fontstack}" token')),t.indexOf("{range}")===-1&&i.push(new ri(r,t,'"glyphs" url must include a "{range}" token'))),i}function V0(e,t=_r){let r=[];return r=r.concat(Gk({key:"",value:e,valueSpec:t.$root,styleSpec:t,style:e,validateSpec:Gk,objectElementValidators:{glyphs:Mit,"*"(){return[]}}})),e.constants&&(r=r.concat(fit({key:"constants",value:e.constants,style:e,styleSpec:t,validateSpec:Gk}))),Sit(r)}function tp(e){return function(t){return e(Object.assign({},t,{validateSpec:Gk}))}}function Sit(e){return[].concat(e).sort((t,r)=>t.line-r.line)}function rp(e){return function(...t){return Sit(e.apply(this,t))}}function $xr(e,t,r){return new jxr(e,t,r)}function Wxr(e){var t;return Object.entries((t=e.sources)!=null?t:{}).filter(([,r])=>!Hne.has(r.type)).map(([r])=>`sources.${r}`)}function jne(e,t){let r=Wxr(t);return gq(e,mh(t).filter(({message:i})=>!r.some(n=>i.startsWith(`${n}:`)||i.startsWith(`${n}.`))))}function gq(e,t){let r=!1;for(let i of t){if(i.severity==="warning"){Pa(i.message);continue}e.fire(new Mn(Error(i.message))),r=!0}return r}function KT(e,t,r,i){return(i==null?void 0:i.validate)!==!1&&gq(e,t(fn({styleSpec:_r},r)))}function Hi(e,t,r={}){if(Rm[e])throw Error(`${e} is already registered.`);Object.defineProperty(t,"_classRegistryKey",{value:e,writeable:!1}),Rm[e]={klass:t,omit:r.omit||[],shallow:r.shallow||[]}}function kit(e){var t;return e&&typeof ArrayBuffer<"u"&&(e instanceof ArrayBuffer||((t=e.constructor)==null?void 0:t.name)==="ArrayBuffer")}function $ne(e){let t=e.constructor;return e.$name||t._classRegistryKey}function Yxr(e){if(typeof e!="object"||!e)return!1;let t=$ne(e);return t&&t!=="Object"}function Cit(e){return!Yxr(e)&&(e==null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||e instanceof Boolean||e instanceof Number||e instanceof String||e instanceof Date||e instanceof RegExp||e instanceof Blob||e instanceof Error||kit(e)||px(e)||ArrayBuffer.isView(e)||e instanceof ImageData)}function Hk(e,t){if(Cit(e))return(kit(e)||px(e))&&t&&t.push(e),ArrayBuffer.isView(e)&&t&&t.push(e.buffer),e instanceof ImageData&&t&&t.push(e.data.buffer),e;if(Array.isArray(e)){let a=[];for(let o of e)a.push(Hk(o,t));return a}if(typeof e!="object")throw Error(`can't serialize object of type ${typeof e}`);let r=$ne(e);if(!r)throw Error(`can't serialize object of unregistered class ${e.constructor.name}`);if(!Rm[r])throw Error(`${r} is not registered.`);let{klass:i}=Rm[r],n=i.serialize?i.serialize(e,t):{};if(i.serialize){if(n===(t==null?void 0:t[t.length-1]))throw Error("statically serialized object won't survive transfer of $name property")}else{for(let a in e){if(!e.hasOwnProperty(a)||Rm[r].omit.includes(a))continue;let o=e[a];o!==void 0&&(n[a]=Rm[r].shallow.includes(a)?o:Hk(o,t))}e instanceof Error&&(n.message=e.message)}if(n.$name)throw Error("$name property is reserved for worker serialization logic.");return r!=="Object"&&(n.$name=r),n}function jk(e){if(Cit(e))return e;if(Array.isArray(e))return e.map(jk);if(typeof e!="object")throw Error(`can't deserialize object of type ${typeof e}`);let t=$ne(e)||"Object";if(!Rm[t])throw Error(`can't deserialize unregistered class ${t}`);let{klass:r}=Rm[t];if(!r)throw Error(`can't deserialize unregistered class ${t}`);if(r.deserialize)return r.deserialize(e);let i=Object.create(r.prototype);for(let n of Object.keys(e)){if(n==="$name")continue;let a=e[n];i[n]=Rm[t].shallow.includes(n)?a:jk(a)}return i}function uet(e){if(Array.isArray(e))return e.length;let t=e==null?void 0:e.values;return Array.isArray(t)?t.length:void 0}function Dit(e,t){let r=uet(e),i=uet(t);return r!==void 0&&i!==void 0&&r!==i}function cl(e,t=1){let r=0,i=0;return{members:e.map(n=>{let a=ebr(n.type),o=r=het(r,Math.max(t,a)),s=n.components||1;return i=Math.max(i,a),r+=a*s,{name:n.name,type:n.type,components:s,offset:o}}),size:het(r,Math.max(i,t)),alignment:t}}function ebr(e){return Qxr[e].BYTES_PER_ELEMENT}function het(e,t){return Math.ceil(e/t)*t}function vet(e,t){return e=ea(Math.floor(e),0,255),t=ea(Math.floor(t),0,255),256*e+t}function get(e){let t=+e;return!isNaN(t)&&t<=2**53-1?t:(0,IB.default)(String(e))}function Iie(e,t,r,i){for(;r>1],a=r-1,o=i+1;for(;;){do a++;while(e[a]n);if(a>=o)break;oB(e,a,o),oB(t,3*a,3*o),oB(t,3*a+1,3*o+1),oB(t,3*a+2,3*o+2)}o-rn.x+1||on.y+1)&&Pa("Geometry exceeds allowed extent, reduce your vector tile buffer size")}return r}function vx(e,t){return{type:e.type,id:e.id,properties:e.properties,geometry:t?v3(e):[]}}function ybr(e,t,r,i,n){e.emplaceBack(xet+t*8+i,xet+r*8+n)}function Kne(e,t){for(let r of e)if(HT(t,r))return!0;for(let r of t)if(HT(e,r))return!0;return Jne(e,t)}function bq(e,t,r){return HT(e,t)?!0:Bie(t,e,r)}function Qit(e,t){if(e.length===1)return bet(t,e[0]);for(let r of t)for(let i of r)if(HT(e,i))return!0;for(let r of e)if(bet(t,r))return!0;for(let r of t)if(Jne(e,r))return!0;return!1}function xbr(e,t,r){for(let i of t){if(e.length>=3){for(let n of i)if(HT(e,n))return!0}if(bbr(e,i,r))return!0}return!1}function bbr(e,t,r){if(e.length>1){if(Jne(e,t))return!0;for(let i of t)if(Bie(i,e,r))return!0}for(let i of e)if(Bie(i,t,r))return!0;return!1}function Jne(e,t){if(e.length===0||t.length===0)return!1;for(let r=0;r1?e.distSqr(r):e.distSqr(r.sub(t)._mult(n)._add(t))}function bet(e,t){let r=!1,i,n,a;for(let o of e){i=o;for(let s=0,l=i.length-1;st.y!=a.y>t.y&&t.x<(a.x-n.x)*(t.y-n.y)/(a.y-n.y)+n.x&&(r=!r)}return r}function HT(e,t){let r=!1;for(let i=0,n=e.length-1;it.y!=o.y>t.y&&t.x<(o.x-a.x)*(t.y-a.y)/(o.y-a.y)+a.x&&(r=!r)}return r}function wbr(e,t,r,i,n){for(let o of e)if(t<=o.x&&r<=o.y&&i>=o.x&&n>=o.y)return!0;let a=[new rr(t,r),new rr(t,n),new rr(i,n),new rr(i,r)];if(e.length>2){for(let o of a)if(HT(e,o))return!0}for(let o=0;on.x&&t.x>n.x||e.yn.y&&t.y>n.y)return!1;let a=ax(e,t,r[0]);return a!==ax(e,t,r[1])||a!==ax(e,t,r[2])||a!==ax(e,t,r[3])}function FT(e,t,r){let i=t.paint.get(e).value;return i.kind==="constant"?i.value:r.programConfigurations.get(t.id).getMaxValue(e)}function _q(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function wq(e,t,r,i,n){if(!t[0]&&!t[1])return e;let a=rr.convert(t)._mult(n);r==="viewport"&&a._rotate(-i);let o=[];for(let s of e)o.push(s.sub(a));return o}function Abr(e){let t=[];for(let r=0;rQne(n,t,r,i))}function eae(e,{width:t,height:r},i,n){if(!n)n=new Uint8Array(t*r*i);else if(n instanceof Uint8ClampedArray)n=new Uint8Array(n.buffer);else if(n.length!==t*r*i)throw RangeError(`mismatched image size. expected: ${n.length} but got: ${t*r*i}`);return e.width=t,e.height=r,e.data=n,e}function nnt(e,{width:t,height:r},i){if(t===e.width&&r===e.height)return;let n=eae({},{width:t,height:r},i);tae(e,n,{x:0,y:0},{x:0,y:0},{width:Math.min(e.width,t),height:Math.min(e.height,r)},i),e.width=t,e.height=r,e.data=n.data}function tae(e,t,r,i,n,a){if(n.width===0||n.height===0)return t;if(n.width>e.width||n.height>e.height||r.x>e.width-n.width||r.y>e.height-n.height)throw RangeError("out of range source coordinates for image copy");if(n.width>t.width||n.height>t.height||i.x>t.width-n.width||i.y>t.height-n.height)throw RangeError("out of range destination coordinates for image copy");let o=e.data,s=t.data;if(o===s)throw Error("srcData equals dstData, so image is already copied");for(let l=0;l{t[e.evaluationKey]=l;let u=e.expression.evaluate(t);n.setPixel(o/4/r,s/4,u)};if(e.clips)for(let o=0,s=0;o80*r){s=e[0],l=e[1];let c=s,f=l;for(let h=r;hc&&(c=p),d>f&&(f=d)}u=Math.max(c-s,f-l),u=u===0?0:32767/u}return Nie(a,o,s,l,u),o}function fnt(e,t,r,i,n){let a=null;if(n===c_r(e,t,r,i)>0)for(let o=t;o=t;o-=i)a=Cet(o/i|0,e[o],e[o+1],a);return a&&oC(a,a.next)&&(lC(a),a=a.next),a}function u3(e,t=e){let r=t===e,i=e,n;do n=!1,i!==i.next&&(aC.size===0||!aC.has(i))&&(oC(i,i.next)||$u(i.prev,i,i.next)===0)?((r||i===t)&&(t=i.prev),Oie=!0,lC(i),i=i.prev,n=!0):(r||i!==t)&&(i=i.next,n=!r);while(n||i!==t);return t}function Nie(e,t,r,i,n){n&&n_r(e,r,i,n);let a=e,o=!1;for(;e.prev!==e.next;){let s=e.prev,l=e.next;if($u(s,e,l)<0&&(n?Ybr(e,r,i,n):Wbr(e))){t.push(s.i,e.i,l.i),lC(e),e=l,a=l;continue}if(e=l,e===a){if(Oie=!1,e=u3(e),Oie){a=e;continue}if(!o){e=Xbr(e,t),a=e,o=!0;continue}Zbr(e,t,r,i,n);break}}}function Wbr(e){let t=e.prev,r=e,i=e.next,n=t.x,a=r.x,o=i.x,s=t.y,l=r.y,u=i.y,c=Math.min(n,a,o),f=Math.min(s,l,u),h=Math.max(n,a,o),p=Math.max(s,l,u),d=i.next;for(;d!==t;){if(d.x>=c&&d.x<=h&&d.y>=f&&d.y<=p&&(n!==d.x||s!==d.y)&&BB(n,s,a,l,o,u,d.x,d.y)&&$u(d.prev,d,d.next)>=0)return!1;d=d.next}return!0}function Ybr(e,t,r,i){let n=e.prev,a=e,o=e.next,s=n.x,l=a.x,u=o.x,c=n.y,f=a.y,h=o.y,p=Math.min(s,l,u),d=Math.min(c,f,h),v=Math.max(s,l,u),m=Math.max(c,f,h),g=Hie(p,d,t,r,i),w=Hie(v,m,t,r,i),_=e.prevZ;for(;_&&_.z>=g;){if(_.x>=p&&_.x<=v&&_.y>=d&&_.y<=m&&_!==o&&(s!==_.x||c!==_.y)&&BB(s,c,l,f,u,h,_.x,_.y)&&$u(_.prev,_,_.next)>=0)return!1;_=_.prevZ}let b=e.nextZ;for(;b&&b.z<=w;){if(b.x>=p&&b.x<=v&&b.y>=d&&b.y<=m&&b!==o&&(s!==b.x||c!==b.y)&&BB(s,c,l,f,u,h,b.x,b.y)&&$u(b.prev,b,b.next)>=0)return!1;b=b.nextZ}return!0}function Xbr(e,t){let r=e,i=!1;do{let n=r.prev,a=r.next.next;dnt(n,r,r.next,a,!1)&&sC(n,a)&&sC(a,n)&&(t.push(n.i,r.i,a.i),lC(r),lC(r.next),r=e=a,i=!0),r=r.next}while(r!==e);return i?u3(r):r}function Zbr(e,t,r,i,n){let a=e;do{let o=a.next.next;for(;o!==a.prev;){if(a.i!==o.i&&s_r(a,o)){let s=pnt(a,o);a=u3(a,a.next),s=u3(s,s.next),Nie(a,t,r,i,n),Nie(s,t,r,i,n);return}o=o.next}a=a.next}while(a!==e)}function Kbr(e,t,r,i){let n=[];for(let a=0,o=t.length;ao&&(o=r.x),r.ys&&(s=r.y),c.xo&&(o=c.x),c.ys&&(s=c.y),r=c}while(++l<16&&r!==t);Gie[i]=r;let u=i*4;nu[u]=n,nu[u+1]=a,nu[u+2]=o,nu[u+3]=s}while(r!==t)}function t_r(e,t){let r=e.z*4;t.xnu[r+2]&&(nu[r+2]=t.x),t.y>nu[r+3]&&(nu[r+3]=t.y)}function Eet(e){let t=Gie[e];for(;t.prev.next!==t;)t=t.next;return Gie[e]=t,t}function ket(e){let t=Vie[e];for(;t.prev.next!==t;)t=t.next;return Vie[e]=t,t}function r_r(e,t){let r=t,i=e.x,n=e.y,a=-1/0,o;if(oC(e,r))return r;for(let h=0,p=0;hnu[p+3]||nu[p]>i||nu[p+2]<=a)continue;let d=Eet(h);r=ket(h);do{if(r.prev.next===r){if(oC(e,r.next))return r.next;if(n<=r.y&&n>=r.next.y&&r.next.y!==r.y){let v=r.x+(n-r.y)*(r.next.x-r.x)/(r.next.y-r.y);if(v<=i&&v>a&&(a=v,o=r.xi||nu[p+3]c)continue;let d=Eet(h);r=ket(h);do{if(r.prev.next===r&&i>=r.x&&r.x>=s&&i!==r.x&&BB(ni)&&(vo.x||r.x===o.x&&i_r(o,r)))&&(o=r,f=v)}r=r.next}while(r!==d)}return o}function i_r(e,t){return $u(e.prev,e,t.prev)<0&&$u(t.next,e,e.next)<0}function n_r(e,t,r,i){let n=e,a=0;do n.z=Hie(n.x,n.y,t,r,i),np[a++]=n,n=n.next;while(n!==e);a_r(a);let o=null;for(let s=0;s=0&&np[n].z>i;)np[n+1]=np[n],n--;np[n+1]=r}return}K_.length>>a&255]++;let o=0;for(let s=0;s<256;s++){let l=kk[s];kk[s]=o,o+=l}for(let s=0;s>>a&255]++;i[u]=t[s],n[u]=l}}function Hie(e,t,r,i,n){return e=(e-r)*n|0,t=(t-i)*n|0,e=(e|e<<8)&16711935,e=(e|e<<4)&252645135,e=(e|e<<2)&858993459,e=(e|e<<1)&1431655765,t=(t|t<<8)&16711935,t=(t|t<<4)&252645135,t=(t|t<<2)&858993459,t=(t|t<<1)&1431655765,e|t<<1}function o_r(e){let t=e,r=e;do(t.x=(e-o)*(a-s)&&(e-o)*(i-s)>=(r-o)*(t-s)&&(r-o)*(a-s)>=(n-o)*(i-s)}function s_r(e,t){let r=oC(e,t)&&$u(e.prev,e,e.next)>0&&$u(t.prev,t,t.next)>0;return e.next.i!==t.i&&(r||sC(e,t)&&sC(t,e)&&($u(e.prev,e,t.prev)!==0||$u(e,t.prev,t)!==0))&&!l_r(e,t)&&(r||u_r(e,t))}function $u(e,t,r){return(t.y-e.y)*(r.x-t.x)-(t.x-e.x)*(r.y-t.y)}function oC(e,t){return e.x===t.x&&e.y===t.y}function dnt(e,t,r,i,n=!0){let a=$u(e,t,r),o=$u(e,t,i),s=$u(r,i,e),l=$u(r,i,t);return(a>0&&o<0||a<0&&o>0)&&(s>0&&l<0||s<0&&l>0)?!0:n?!!(a===0&&uB(e,r,t)||o===0&&uB(e,i,t)||s===0&&uB(r,e,i)||l===0&&uB(r,t,i)):!1}function uB(e,t,r){return t.x<=Math.max(e.x,r.x)&&t.x>=Math.min(e.x,r.x)&&t.y<=Math.max(e.y,r.y)&&t.y>=Math.min(e.y,r.y)}function l_r(e,t){let r=Math.min(e.x,t.x),i=Math.max(e.x,t.x),n=Math.min(e.y,t.y),a=Math.max(e.y,t.y),o=e;do{let s=o.next;if(o.x>i&&s.x>i||o.xa&&s.y>a||o.y=0&&$u(e,e.prev,t)>=0:$u(e,t,e.prev)<0||$u(e,e.next,t)<0}function u_r(e,t){let r=e,i=!1,n=(e.x+t.x)/2,a=(e.y+t.y)/2;do{let o=r.next;r.y>a!=o.y>a&&n<(o.x-r.x)*(a-r.y)/(o.y-r.y)+r.x&&(i=!i),r=o}while(r!==e);return i}function pnt(e,t){let r=jie(e.i,e.x,e.y),i=jie(t.i,t.x,t.y),n=e.next,a=t.prev;return e.next=t,t.prev=e,r.next=n,n.prev=r,i.next=r,r.prev=i,a.next=i,i.prev=a,i}function Cet(e,t,r,i){let n=jie(e,t,r);return i?(n.next=i.next,n.prev=i,i.next.prev=n,i.next=n):(n.prev=n,n.next=n),n}function lC(e){e.next.prev=e.prev,e.prev.next=e.next,e.prevZ&&(e.prevZ.nextZ=e.nextZ),e.nextZ&&(e.nextZ.prevZ=e.prevZ),Uie&&t_r(e.prev,e.next)}function jie(e,t,r){return{i:e,x:t,y:r,prev:null,next:null,z:0,prevZ:null,nextZ:null}}function c_r(e,t,r,i){let n=0;for(let a=t,o=r-i;a0?(Math.floor(S/n)+1)*n:(Math.ceil(S/n)-1)*n,y=w>0?(Math.floor(x/n)+1)*n:(Math.ceil(x/n)-1)*n,E=Math.abs(S-T),M=Math.abs(x-y),C=Math.abs(S-p),k=Math.abs(x-d),D=v?E/_:1/0,F=m?M/b:1/0;if((C<=E||!v)&&(k<=M||!m))break;if(D0?(r.push(n),r.push(o),r.push(a)):(r.push(n),r.push(a),r.push(o))}return r}function v_r(e,t,r){if(t.length===0)throw Error("Subdivision vertex ring is empty.");let i=0,n=e[t[0]*2];for(let l=1;l=0?o-1:a-1,u=(s+1)%a,c=e[t[l]*2],f=e[t[l]*2+1],h=e[t[u]*2],p=e[t[u]*2+1],d=e[t[o]*2],v=e[t[o]*2+1],m=e[t[s]*2],g=e[t[s]*2+1],w=!1;if(ch)w=!1;else{let _=g-v,b=-(m-d),S=v((h-d)*_+(p-v)*b)*S&&(w=!0)}if(w){let _=t[l],b=t[o],S=t[s];_!==b&&_!==S&&b!==S&&r.push(S,b,_),o--,o<0&&(o=a-1)}else{let _=t[u],b=t[o],S=t[s];_!==b&&_!==S&&b!==S&&r.push(S,b,_),s++,s>=a&&(s=0)}if(l===u)break}}function mnt(e,t,r,i,n,a,o,s,l){let u=n.length/2,c=o&&s&&l;if(uJs.MAX_VERTEX_ARRAY_LENGTH&&(u=e.createNewSegment(t,r),l=s.count,v=!0,m=!0,g=!0,c=0);let _=$k(o,i,a,s,h,v,u),b=$k(o,i,a,s,p,m,u),S=$k(o,i,a,s,d,g,u);r.emplaceBack(c+_-l,c+b-l,c+S-l),u.primitiveLength++}}function m_r(e,t,r,i,n,a){let o=[];for(let f=0;fJs.MAX_VERTEX_ARRAY_LENGTH&&(u=e.createNewSegment(t,r),l=s.count,v=!0,m=!0,c=0);let w=$k(o,i,a,s,p,v,u),_=$k(o,i,a,s,d,m,u);r.emplaceBack(c+w-l,c+_-l),u.primitiveLength++}}function Yie(e,t){return e.x===t.x&&(e.x<0||e.x>8192)||e.y===t.y&&(e.y<0||e.y>8192)}function Let(e){return e.every(t=>t.x<0)||e.every(t=>t.x>8192)||e.every(t=>t.y<0)||e.every(t=>t.y>8192)}function _nt(e){let t=e.length;if(t<=1)return[e];let r=[],i,n;for(let a=0;aL_r(r,t))}function F_r(e,t){let r=C_r(qr/2,qr/2,t),i=Mo.fromLngLat(r).meterInMercatorCoordinateUnits(),n=(1<1&&t[0].x===t[t.length-1].x&&t[0].y===t[t.length-1].y;)t.pop();return t}function I_r(e,t,r,i,n){let a=t.sub(r),o=i.sub(r),s=a.mag(),l=o.mag();if(s<1e-6||l<1e-6){e.push(r.clone());return}a._div(s),o._div(l);let u=a.x*o.x+a.y*o.y;if(Math.abs(u)>Math.cos(5*Math.PI/180)){e.push(r.clone());return}let c=.2,f=Math.min(n,s*c,l*c),h=r.add(a.mult(f)),p=r.add(o.mult(f)),d=Math.sqrt((1+u)/2),v=r.add(a.add(o)._unit()._mult(f/d)),m=h.sub(v).angleWith(p.sub(v)),g=Math.max(2,Math.ceil(Math.abs(m)/(Math.PI/6)-1e-6));for(let w=0;w<=g;w++)e.push(h.rotateAround(w/g*m,v))}function Ck(e,t,r,i,n,a,o,s){e.emplaceBack(t,r,Math.floor(i*Wre)*2+o,n*Wre*2,a*Wre*2,Math.round(s))}function R_r(e,t){for(let r=0;r0?t+2*e:e}function t3r(e){return/[\u0600-\u0604\u0606-\u060B\u060D-\u061A\u061C-\u061E\u0620-\u063F\u0641-\u064A\u0656-\u066F\u0671-\u06DC\u06DE-\u070D\u070F-\u074A\u074D-\u077F\u07C0-\u07FA\u07FD-\u07FF\u0840-\u085B\u085E\u0860-\u086A\u0870-\u0891\u0897-\u08E1\u08E3-\u08FF\u1800\u1801\u1804\u1806-\u1819\u1820-\u1878\u1880-\u18AA\uA840-\uA877\uFB50-\uFD3D\uFD40-\uFDCF\uFDF0-\uFDFF\uFE70-\uFE74\uFE76-\uFEFC]|\uD802[\uDEC0-\uDEE6\uDEEB-\uDEF6\uDF80-\uDF91\uDF99-\uDF9C\uDFA9-\uDFAF]|\uD803[\uDD00-\uDD27\uDD30-\uDD39\uDE60-\uDE7E\uDEC2-\uDEC7\uDED0-\uDED8\uDEFA-\uDEFF\uDF30-\uDF59\uDF70-\uDF89\uDFB0-\uDFCB]|\uD805[\uDE60-\uDE6C]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9C-\uDC9F]|\uD83A[\uDD00-\uDD4B\uDD50-\uDD59\uDD5E\uDD5F]|\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\uDEF0\uDEF1]/gim.test(String.fromCodePoint(e))}function r3r(e){return/[\u0591-\u05C7\u05D0-\u05EA\u05EF-\u05F4\u0600-\u0604\u0606-\u060B\u060D-\u061A\u061C-\u061E\u0620-\u063F\u0641-\u064A\u0656-\u066F\u0671-\u06DC\u06DE-\u070D\u070F-\u074A\u074D-\u07B1\u07C0-\u07FA\u07FD-\u082D\u0830-\u083E\u0840-\u085B\u085E\u0860-\u086A\u0870-\u0891\u0897-\u08E1\u08E3-\u08FF\uFB1D-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFD3D\uFD40-\uFDCF\uFDF0-\uFDFF\uFE70-\uFE74\uFE76-\uFEFC]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC57-\uDC9E\uDCA7-\uDCAF\uDCE0-\uDCF2\uDCF4\uDCF5\uDCFB-\uDD1B\uDD1F-\uDD39\uDD3F-\uDD59\uDD80-\uDDB7\uDDBC-\uDDCF\uDDD2-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE38-\uDE3A\uDE3F-\uDE48\uDE50-\uDE58\uDE60-\uDE9F\uDEC0-\uDEE6\uDEEB-\uDEF6\uDF00-\uDF35\uDF39-\uDF55\uDF58-\uDF72\uDF78-\uDF91\uDF99-\uDF9C\uDFA9-\uDFAF]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDCFA-\uDD27\uDD30-\uDD39\uDD40-\uDD65\uDD69-\uDD85\uDD8E\uDD8F\uDE60-\uDE7E\uDE80-\uDEA9\uDEAB-\uDEAD\uDEB0\uDEB1\uDEC2-\uDEC7\uDED0-\uDED8\uDEFA-\uDF27\uDF30-\uDF59\uDF70-\uDF89\uDFB0-\uDFCB\uDFE0-\uDFF6]|\uD83A[\uDC00-\uDCC4\uDCC7-\uDCD6\uDD00-\uDD4B\uDD50-\uDD59\uDD5E\uDD5F]|\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\uDEF0\uDEF1]/gim.test(String.fromCodePoint(e))}function Lnt(e){return/[\u02EA\u02EB\u1100-\u11FF\u2E80-\u2FDF\u3000-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u4DBF\u4E00-\uA48C\uA490-\uA4C6\uA960-\uA97C\uAC00-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFE10-\uFE1F\uFE30-\uFE4F\uFF00-\uFFEF]|\uD81B[\uDFE0-\uDFFF]|[\uD81C-\uD822\uD840-\uD868\uD86A-\uD86D\uD86F-\uD872\uD874-\uD879\uD880-\uD883\uD885-\uD88C][\uDC00-\uDFFF]|\uD823[\uDC00-\uDCD5\uDCFF-\uDD1E\uDD80-\uDDF2]|\uD82B[\uDFF0-\uDFFF]|\uD82C[\uDC00-\uDEFB]|\uD83C[\uDE00-\uDEFF]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEAD\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0\uDFF0-\uDFFF]|\uD87B[\uDC00-\uDE5D]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A\uDF50-\uDFFF]|\uD88D[\uDC00-\uDC79]/gim.test(String.fromCodePoint(e))}function i3r(e){return/[\u02EA\u02EB\u2E80-\u2FDF\u2FF0-\u303F\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FD-\u30FF\u3105-\u312F\u31A0-\u4DBF\u4E00-\uA48C\uA490-\uA4C6\uF900-\uFA6D\uFA70-\uFAD9\uFE10-\uFE1F\uFE30-\uFE4F\uFF00-\uFFEF]|\uD81B[\uDFE0-\uDFFF]|[\uD81C-\uD822\uD840-\uD868\uD86A-\uD86D\uD86F-\uD872\uD874-\uD879\uD880-\uD883\uD885-\uD88C][\uDC00-\uDFFF]|\uD823[\uDC00-\uDCD5\uDCFF-\uDD1E\uDD80-\uDDF2]|\uD82B[\uDFF0-\uDFFF]|\uD82C[\uDC00-\uDEFB]|\uD83C[\uDE00-\uDEFF]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEAD\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0\uDFF0-\uDFFF]|\uD87B[\uDC00-\uDE5D]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A\uDF50-\uDFFF]|\uD88D[\uDC00-\uDC79]/gim.test(String.fromCodePoint(e))}function kq(e){return/[\u02EA\u02EB\u1100-\u11FF\u1401-\u167F\u18B0-\u18FF\u2065\u20DD-\u20E0\u20E2-\u20E4\u2B97\u2BF0-\u2BFF\u2E50\u2E51\u2E80-\u3007\u3012\u3013\u3020-\u302F\u3031-\u30FB\u30FD-\uA4CF\uA960-\uA97F\uAC00-\uD7FF\uF900-\uFAFF\uFE10-\uFE1F\uFE30-\uFE48\uFE50-\uFE57\uFE5F-\uFE62\uFE67-\uFE6F\uFF00-\uFF07\uFF0A-\uFF0C\uFF0E-\uFF19\uFF1F-\uFF3A\uFF3C\uFF3E\uFF40-\uFF5A\uFFE0-\uFFE2\uFFE4-\uFFE7\uFFF0-\uFFF8]|\uD802[\uDD80-\uDD9F]|\uD805[\uDD80-\uDDFF]|\uD806[\uDE00-\uDEBF]|[\uD80C-\uD810\uD81C-\uD822\uD83C\uD83D\uD840-\uD87E\uD880-\uD8BE][\uDC00-\uDFFF]|\uD811[\uDC00-\uDE7F]|\uD81B[\uDFE0-\uDFFF]|\uD823[\uDC00-\uDDFF]|\uD82B[\uDFF0-\uDFFF]|\uD82C[\uDC00-\uDEFF]|\uD833[\uDEC0-\uDFCF]|\uD834[\uDC00-\uDDFF\uDEE0-\uDF7F]|\uD836[\uDC00-\uDEAF]|\uD83E[\uDD00-\uDEFF]|[\uD87F\uD8BF][\uDC00-\uDFFD]/gim.test(String.fromCodePoint(e))}function n3r(e){return/[\xA7\xA9\xAE\xB1\xBC-\xBE\xD7\xF7\u2016\u2020\u2021\u2030\u2031\u203B\u203C\u2042\u2047-\u2049\u2051\u2100-\u218F\u221E\u2234\u2235\u2300-\u2307\u230C-\u231F\u2324-\u2328\u232B\u237D-\u239A\u23BE-\u23CD\u23CF\u23D1-\u23DB\u23E2-\u2422\u2424-\u24FF\u25A0-\u2619\u2620-\u2767\u2776-\u2793\u2B12-\u2B2F\u2B50-\u2B59\u2BB8-\u2BEB\u3000-\u303F\u30A0-\u30FF\uE000-\uF8FF\uFE30-\uFE6F\uFF00-\uFFEF\uFFFC\uFFFD]|[\uDB80-\uDBFF][\uDC00-\uDFFF]/gim.test(String.fromCodePoint(e))}function a3r(e){return/[\r\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0600-\u0605\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DD\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u070F\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0890\u0891\u0897-\u089F\u08CA-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D57\u0D62\u0D63\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E33-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB3-\u0EBC\u0EC8-\u0ECE\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1037\u1039-\u103E\u1056-\u1059\u105E-\u1060\u1071-\u1074\u1082\u1084-\u1086\u108D\u109D\u1100-\u11FF\u135D-\u135F\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u180F\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60\u1A62\u1A65-\u1A7C\u1A7F\u1AB0-\u1ADD\u1AE0-\u1AEB\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA953\uA960-\uA97C\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFF9E\uFF9F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDD69-\uDD6D\uDEAB\uDEAC\uDEFA-\uDEFF\uDF46-\uDF50\uDF82-\uDF85]|\uD804[\uDC00-\uDC02\uDC38-\uDC46\uDC70\uDC73\uDC74\uDC7F-\uDC82\uDCB0-\uDCBA\uDCBD\uDCC2\uDCCD\uDD00-\uDD02\uDD27-\uDD34\uDD45\uDD46\uDD73\uDD80-\uDD82\uDDB3-\uDDC0\uDDC2\uDDC3\uDDC9-\uDDCC\uDDCE\uDDCF\uDE2C-\uDE37\uDE3E\uDE41\uDEDF-\uDEEA\uDF00-\uDF03\uDF3B\uDF3C\uDF3E-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF57\uDF62\uDF63\uDF66-\uDF6C\uDF70-\uDF74\uDFB8-\uDFC0\uDFC2\uDFC5\uDFC7-\uDFCA\uDFCC-\uDFD2\uDFE1\uDFE2]|\uD805[\uDC35-\uDC46\uDC5E\uDCB0-\uDCC3\uDDAF-\uDDB5\uDDB8-\uDDC0\uDDDC\uDDDD\uDE30-\uDE40\uDEAB-\uDEB7\uDF1D-\uDF1F\uDF22-\uDF2B]|\uD806[\uDC2C-\uDC3A\uDD30-\uDD35\uDD37\uDD38\uDD3B-\uDD43\uDDD1-\uDDD7\uDDDA-\uDDE0\uDDE4\uDE01-\uDE0A\uDE33-\uDE39\uDE3B-\uDE3E\uDE47\uDE51-\uDE5B\uDE84-\uDE99\uDF60-\uDF67]|\uD807[\uDC2F-\uDC36\uDC38-\uDC3F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD8A-\uDD8E\uDD90\uDD91\uDD93-\uDD97\uDEF3-\uDEF6\uDF00-\uDF03\uDF34-\uDF3A\uDF3E-\uDF42\uDF5A]|\uD80D[\uDC40\uDC47-\uDC55]|\uD818[\uDD1E-\uDD2F]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDD63\uDD67-\uDD6A\uDF4F\uDF51-\uDF87\uDF8F-\uDF92\uDFE4\uDFF0\uDFF1]|\uD82F[\uDC9D\uDC9E]|\uD833[\uDF00-\uDF2D\uDF30-\uDF46]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDC8F\uDD30-\uDD36\uDEAE\uDEEC-\uDEEF]|\uD839[\uDCEC-\uDCEF\uDDEE\uDDEF\uDEE3\uDEE6\uDEEE\uDEEF\uDEF5]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uD83C[\uDDE6-\uDDFF\uDFFB-\uDFFF]|\uDB40[\uDC20-\uDC7F\uDD00-\uDDEF]/.test(e)}function Vet(e){return/[\u0E01-\u0E3A\u0E40-\u0E4E\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECE\u0EDC-\u0EDF\u0F00-\u0F47\u0F49-\u0F6C\u0F71-\u0F97\u0F99-\u0FBC\u0FBE-\u0FCC\u0FCE-\u0FD4\u0FD9\u0FDA\u1000-\u103F\u1050-\u108F\u109A-\u109F\u1780-\u17D3\u17D7\u17DC\u17DD\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19DE\u19DF\u1A20-\u1A5E\u1A60-\u1A7C\u1AA0-\u1AAD\u1B00-\u1B4C\u1B4E-\u1B7F\uA980-\uA9CD\uA9D0-\uA9D9\uA9DE-\uA9EF\uA9FA-\uA9FE\uAA60-\uAAC2\uAADB-\uAADF]|\uD805[\uDF00-\uDF1A\uDF1D-\uDF2B\uDF3A\uDF3B\uDF3F-\uDF46]/gim.test(String.fromCodePoint(e))}function o3r(e,t){return/(?:[\u1039\u17D2\u1A60\u1BAB\u200D\uAAF6]|\uD802\uDE3F|\uD804[\uDD33\uDFD0]|\uD806[\uDD3E\uDE47\uDE99]|\uD807[\uDD45\uDD97\uDF42])$/.test(e)||new RegExp("^\\p{gc=Mc}","u").test(t)}function f3r(e,t,r){let i=0;for(let n of e.split(";")){let[a,o]=n.split(",").map(l=>parseInt(l,36)),s=i+a;for(let l=s;l{let r=t.codePointAt(0);return{codePoint:r,type:h3r(r),form:null}})}function m3r(e){let t=e.filter(r=>r.type!=="T");for(let r=0;r0&&d3r(t[r-1].type),a=r+1String.fromCodePoint(b3r(r))).join("")}function w3r(e,t,r){var n;let i=t.layout.get("text-transform").evaluate(r,{});return i==="uppercase"?e=e.toLocaleUpperCase():i==="lowercase"&&(e=e.toLocaleLowerCase()),((n=qB.applyArabicShaping)!=null?n:_3r)(e)}function T3r(e,t,r){for(let i of e.sections)i.text=w3r(i.text,t,r);return e}function Yre(e,t,r){let i=r?t.last.points:t.first.points,n=r?i[i.length-1]:i[0];return`${e}:${n.x}:${n.y}`}function A3r(e){let t=e.first.points,r=t.length;for(let a=e.first.next;a;a=a.next)r+=a.points.length-1;let i=Array(r);for(let a=0;a=0&&o3r(t[i],r)?t[i]+=r:t.push(r)}return t}function S3r(e){let t=new Set;if(Int){Lk!=null||(Lk=new Intl.Segmenter(void 0,{granularity:"word"}));for(let{index:i}of Lk.segment(e))t.add(i);return t}let r=0;for(let i of e.split(new RegExp("\\b|(?=\\p{Ideo})","u")))t.add(r),r+=i.length;return t}function CC(e){let t=e.codePointAt(0);return e.length>(t>65535?2:1)}function sae(e){return/\s/u.test(String.fromCodePoint(e))}function Jie(e){for(let t of e)if(kq(t.codePointAt(0)))return!0;return!1}function E3r(e){for(let t of e)if(!k3r(t.codePointAt(0)))return!1;return!0}function k3r(e){return!t3r(e)}function $et(e){return!(kq(e)||n3r(e))}function Rnt(e){return new RegExp("\\p{sc=Arab}","u").test(String.fromCodePoint(e))}function znt(e){return r3r(e)}function Bnt(e){for(let t of e)if(znt(t.codePointAt(0)))return!0;return!1}function C3r(e){let t="",r={premature:!0,value:void 0},i=e[Symbol.iterator](),n=i.next(),a=e[Symbol.iterator]();a.next();let o=a.next();for(;!n.done;)(o.done||!$et(o.value.codePointAt(0))||kT[o.value])&&(r.premature||!$et(r.value.codePointAt(0))||kT[r.value])&&kT[n.value]?t+=kT[n.value]:t+=n.value,r={value:n.value,premature:!1},n=i.next(),o=a.next();return t}function Wet(e,t,r,i,n,a){var o;if("fontStack"in t){let s=(o=r[t.fontStack])==null?void 0:o.default,l=s==null?void 0:s[e];if(l)return l.metrics.advance*t.scale+n;let u=0;for(let c of e){let f=s==null?void 0:s[c];f&&(u+=f.metrics.advance*t.scale+n)}return u}{let s=i[t.imageName];return s?s.displaySize[0]*t.scale*24/a+n:0}}function Yet(e,t,r,i){let n=(e-t)**2;return i?e1,1e>2,u>2,2wt>1,1>1,1ge>1,1wp>1,1j>1,f>1,hm>1,1>1,u>1,u6>1,1>1,+5,28>1,w>1,1>1,+3,b8>1,1>1,+3,1>3,-1>-1,3>1,1>1,+2,1s>1,1>1,x>1,th>1,1>1,+2,db>1,1>1,+3,3>1,1>1,+2,14qm>1,1>1,+1,4q>1,1e>2,u>2,2>1,+1",canonical:"6f1>-6dx,6dy>-6dx,6ec>-6ed,6ee>-6ed,6ww>2jj,-2ji>2jj,14r4>-1e7l,1e7m>-1e7l,1e7m>-1e5c,1e5d>-1e5b,1e5c>-14qx,14qy>-14qx,14vn>-1ecg,1ech>-1ecg,1edu>-1ecg,1eci>-1ecg,1eda>-1ecg,1eci>-1ecg,1eci>-168q,168r>-168q,168s>-14ye,14yf>-14ye"};function d(Ee,xe){var ce=0,oe=new Map,Se=xe&&new Map,be;return Ee.split(",").forEach(function fe(ee){if(ee.indexOf("+")!==-1)for(var ae=+ee;ae--;)fe(be);else{be=ee;var _e=ee.split(">"),re=_e[0],pe=_e[1];re=String.fromCodePoint(ce+=parseInt(re,36)),pe=String.fromCodePoint(ce+=parseInt(pe,36)),oe.set(re,pe),xe&&Se.set(pe,re)}}),{map:oe,reverseMap:Se}}var v,m,g;function w(){if(!v){var Ee=d(p.pairs,!0),xe=Ee.map,ce=Ee.reverseMap;v=xe,m=ce,g=d(p.canonical,!1).map}}function _(Ee){return w(),v.get(Ee)||null}function b(Ee){return w(),m.get(Ee)||null}function S(Ee){return w(),g.get(Ee)||null}var x=r.L,A=r.R,T=r.EN,y=r.ES,E=r.ET,M=r.AN,C=r.CS,k=r.B,D=r.S,F=r.ON,P=r.BN,R=r.NSM,L=r.AL,I=r.LRO,B=r.RLO,O=r.LRE,$=r.RLE,X=r.PDF,K=r.LRI,G=r.RLI,q=r.FSI,J=r.PDI;function N(Ee,xe){for(var ce=125,oe=new Uint32Array(Ee.length),Se=0;Se0)Ne--;else if(rt>0){for(Je=0;!me[me.length-1]._isolate;)me.pop();var pt=me[me.length-1]._isolInitIndex;pt!=null&&(ae.set(pt,mt),ae.set(mt,pt)),me.pop(),rt--}Le=me[me.length-1],ee[mt]=Le._level,Le._override&&fe(mt,Le._override)}else dt&X?(Ne===0&&(Je>0?Je--:!Le._isolate&&me.length>1&&(me.pop(),Le=me[me.length-1])),ee[mt]=Le._level):dt&k&&(ee[mt]=re.level);else ee[mt]=Le._level,Le._override&&dt!==P&&fe(mt,Le._override)}for(var Oe=[],Ue=null,je=re.start;je<=re.end;je++){var $e=oe[je];if(!($e&s)){var Ie=ee[je],Ve=$e&n,st=$e===J;Ue&&Ie===Ue._level?(Ue._end=je,Ue._endsWithIsolInit=Ve):Oe.push(Ue={_start:je,_end:je,_level:Ie,_startsWithPDI:st,_endsWithIsolInit:Ve})}}for(var _t=[],Wt=0;Wt=0;ht--)if(!(oe[ht]&s)){gt=ee[ht];break}var Ft=Jt[Jt.length-1],hr=ee[Ft],Ut=re.level;if(!(oe[Ft]&n)){for(var Lr=Ft+1;Lr<=re.end;Lr++)if(!(oe[Lr]&s)){Ut=ee[Lr];break}}_t.push({_seqIndices:Jt,_sosType:Math.max(gt,nt)%2?A:x,_eosType:Math.max(Ut,hr)%2?A:x})}}for(var jr=0;jr<_t.length;jr++){var ii=_t[jr],Fr=ii._seqIndices,Ii=ii._sosType,Xi=ii._eosType,ln=ee[Fr[0]]&1?A:x;if(be.get(R))for(var la=0;la=0;zn--)if(!(oe[Fr[zn]]&s)){pn=oe[Fr[zn]];break}fe(mo,pn&(n|J)?F:pn)}}if(be.get(T))for(var gn=0;gn=-1;ua--){var as=ua===-1?Ii:oe[Fr[ua]];if(as&a){as===L&&fe(ns,M);break}}}if(be.get(L))for(var ro=0;ro=0&&(Ma=oe[Fr[Ml]],Ma&s);Ml--);for(var Au=co+1;Au=0&&oe[Fr[Fe]]&(E|s);Fe--)fe(Fr[Fe],T);for(dl++;dl=0&&oe[Fr[kt]]&s;kt--)fe(Fr[kt],F);for(var er=ot+1;er=0;Zn--){var io=un[Zn].char;if(io===ma||io===b(S(wn))||_(S(io))===wn){Si.push([un[Zn].seqIndex,$n]),un.length=Zn;break}}}Si.sort(function(bo,pu){return bo[0]-pu[0]});for(var fo=0;fo=0;ho--){var qn=Fr[ho];if(oe[qn]&ni){var _a=oe[qn]&Kr?A:x;Co=_a===ln?ln:_a;break}}}if(Co){if(oe[Fr[Oo]]=oe[Fr[ms]]=Co,Co!==ln){for(var ys=Oo+1;ys=0;Mu--)if(oe[Fr[Mu]]&s)jl=Mu;else{hu=oe[Fr[Mu]]&Kr?A:x;break}for(var Su=Xi,yc=rl+1;yc=0&&f(Ee[Cs])&l;Cs--)ee[Cs]=re.level}}return{levels:ee,paragraphs:_e};function du(bo,pu){for(var Jo=bo;Jo=ee&&f(Ee[re])&l;re--)_e[re]=fe.level;for(var pe=fe.level,Te=1/0,Ce=0;Ce<_e.length;Ce++){var ze=_e[Ce];ze>pe&&(pe=ze),ze=Te;we--)for(var me=0;me<_e.length;me++)if(_e[me]>=we){for(var Le=me;me+1<_e.length&&_e[me+1]>=we;)me++;me>Le&&be.push([Le+ee,me+ee])}}}),be}function ue(Ee,xe,ce,oe){var Se=ge(Ee,xe,ce,oe),be=[].concat(Ee);return Se.forEach(function(fe,ee){be[ee]=(xe.levels[fe]&1?j(Ee[fe]):null)||Ee[fe]}),be.join("")}function ge(Ee,xe,ce,oe){for(var Se=te(Ee,xe,ce,oe),be=[],fe=0;fe=0;i--){let n=uae.getBidiCharTypeName(e[i].text[0]);z3r.has(n)?(e[i].level=t,r=!0):r&&R3r.has(n)?e[i].level=t:r=!1}}function O3r(e,t){let r=t,i=1/0;for(let{level:a}of e)a>r&&(r=a),(a|1)=i;a--)for(let o=0;o=a;)s++;for(let l=o,u=s;lt>=n.start&&t<=n.end))==null?void 0:r.level)!=null?i:0}function V3r(e,t,r,i,n){let a=B3r(e,t,i,n);q3r(a,r);let o="",s=[];for(let l of O3r(a,r)){if(I3r.test(l.text))continue;let u=N3r(l);o+=u,s.push(...Array(u.length).fill(l.index))}return{text:o,sourceIndices:s}}function G3r(e,t){let r=t.filter(a=>a>0&&aa-o),n=[];for(let a=0;a+1n.start))).map(([n,a])=>V3r(e,r,U3r(i,n),n,a))}function H3r(e,t){return Ont(e,t).map(r=>r.text)}function j3r(e,t,r){return Ont(e,r).map(i=>[i.text,i.sourceIndices.map(n=>{var a;return(a=t[n])!=null?a:0})])}function $3r(e,t,r){let i=r.buf,n,a;if(a=i[r.pos++],n=(a&112)>>4,a<128||(a=i[r.pos++],n|=(a&127)<<3,a<128)||(a=i[r.pos++],n|=(a&127)<<10,a<128)||(a=i[r.pos++],n|=(a&127)<<17,a<128)||(a=i[r.pos++],n|=(a&127)<<24,a<128)||(a=i[r.pos++],n|=(a&1)<<31,a<128))return W3r(e,n,t);throw Error("Expected varint not more than 10 bytes")}function W3r(e,t,r){return r?t*4294967296+(e>>>0):(t>>>0)*4294967296+(e>>>0)}function Y3r(e,t,r){let i="",n=t;for(;n239?4:a>223?3:a>191?2:1;if(n+s>r)break;let l,u,c;s===1?a<128&&(o=a):s===2?(l=e[n+1],(l&192)==128&&(o=(a&31)<<6|l&63,o<=127&&(o=null))):s===3?(l=e[n+1],u=e[n+2],(l&192)==128&&(u&192)==128&&(o=(a&15)<<12|(l&63)<<6|u&63,(o<=2047||o>=55296&&o<=57343)&&(o=null))):s===4&&(l=e[n+1],u=e[n+2],c=e[n+3],(l&192)==128&&(u&192)==128&&(c&192)==128&&(o=(a&15)<<18|(l&63)<<12|(u&63)<<6|c&63,(o<=65535||o>=1114112)&&(o=null))),o===null?(o=65533,s=1):o>65535&&(o-=65536,i+=String.fromCharCode(o>>>10&1023|55296),o=56320|o&1023),i+=String.fromCharCode(o),n+=s}return i}function X3r(e,t,r){e===1&&r.readMessage(Z3r,t)}function Z3r(e,t,r){if(e===3){let{id:i,bitmap:n,width:a,height:o,left:s,top:l,advance:u}=r.readMessage(K3r,{});t.push({id:i,bitmap:new Tq({width:a+6,height:o+6},n),metrics:{width:a,height:o,left:s,top:l,advance:u}})}}function K3r(e,t,r){e===1?t.id=r.readVarint():e===2?t.bitmap=r.readBytes():e===3?t.width=r.readVarint():e===4?t.height=r.readVarint():e===5?t.left=r.readSVarint():e===6?t.top=r.readSVarint():e===7&&(t.advance=r.readVarint())}function Unt(e){return new Nnt(e).readFields(X3r,[])}function DC(e){return typeof(e==null?void 0:e.renderWithWebGL)=="function"}function Vnt(e){let{userImage:t}=e;return!(t!=null&&t.render)||!t.render()?!1:(DC(t.data)||e.data.replace(new Uint8Array(t.data.buffer)),!0)}function cae(e){let t=0,r=0;for(let o of e)t+=o.w*o.h,r=Math.max(r,o.w);e.sort((o,s)=>s.h-o.h);let i=[{x:0,y:0,w:Math.max(Math.ceil(Math.sqrt(t/.95)),r),h:1/0}],n=0,a=0;for(let o of e)for(let s=i.length-1;s>=0;s--){let l=i[s];if(!(o.w>l.w||o.h>l.h)){if(o.x=l.x,o.y=l.y,a=Math.max(a,o.y+o.h),n=Math.max(n,o.x+o.w),o.w===l.w&&o.h===l.h){let u=i.pop();u&&s=r;a--)t.push(a);r=i+1}else{for(let a=r;ae.toCodeUnitIndex(a)),i=qB.isParsed()?qB:null;if(e.sections.length===1)return i?i.processBidirectionalText(e.toString(),r).map(a=>Qet(a,e.sections,[...a].map(()=>0))):H3r(e.toString(),r).map(a=>tne([...a],e.sections,[...a].map(()=>0)));let n=rwr(e);return i?i.processStyledBidirectionalText(e.text,n,r).map(([a,o])=>Qet(a,e.sections,o)):j3r(e.text,n,r).map(([a,o])=>{let s=[...a];return tne(s,e.sections,Hnt(s).map(l=>{var u;return(u=o[l])!=null?u:0}))})}function tne(e,t,r){var a;let i=new lae(e.join(""),t,[]),n=0;for(let o of i.graphemes())i.sectionIndex.push((a=r[n])!=null?a:0),n+=[...o].length;return i}function Hnt(e){let t=[],r=0;for(let i of e)t.push(r),r+=i.length;return t}function Qet(e,t,r){let i=[...e],n=Hnt(i),a=twr(i);return tne(a.map(o=>i[o]),t,a.map(o=>{var s;return(s=r[n[o]])!=null?s:0}))}function fB(e,t,r,i,n,a,o,s,l,u,c,f,h,p,d){let v=lae.fromFeature(e,n);f===2&&v.verticalizePunctuation();let m=v.determineLineBreaks(u,a,t,i,p),g=Bnt(v.text)?iwr(v,m):ewr(v,m),w=[],_={positionedLines:w,text:v.toString(),top:c[1],bottom:c[1],left:c[0],right:c[0],writingMode:f,iconsInText:!1,verticalizable:!1};return hwr(_,t,r,i,g,o,s,l,f,u,h,d),!Q3r(w)&&_}function FC(e){let t=.5,r=.5;switch(e){case"right":case"top-right":case"bottom-right":t=1;break;case"left":case"top-left":case"bottom-left":t=0}switch(e){case"bottom":case"bottom-right":case"bottom-left":r=1;break;case"top":case"top-right":case"top-left":r=0}return{horizontalAlign:t,verticalAlign:r}}function nwr(e,t,r){let i=t.getMaxScale()*24,{maxImageWidth:n,maxImageHeight:a}=t.getMaxImageSize(e),o=Math.max(i,a*r);return{verticalLineContentWidth:Math.max(i,n*r),horizontalLineContentHeight:o}}function jnt(e){switch(e){case"top":return 0;case"center":return .5;default:return 1}}function awr(e,t,r,i){var a,o;if(e!=null&&e.rect)return e;let n=(o=(a=t[r.fontStack])==null?void 0:a.default)==null?void 0:o[i];return n?{rect:null,metrics:n.metrics}:null}function owr(e,t,r){return!(e===1||!t&&!kq(r)||t&&(sae(r)||Rnt(r)))}function wB(e){return new RegExp("\\p{Nd}","u").test(String.fromCodePoint(e))}function $nt(e){return new RegExp("\\p{Lu}","u").test(String.fromCodePoint(e))}function swr(e){return/[\p{P}\p{S}]/u.test(String.fromCodePoint(e))}function lwr(e){let t=e.some(wB)&&e.every(i=>wB(i)||swr(i)),r=e.length<=3&&e.every(i=>$nt(i)||wB(i));return t||r}function uwr(e){return(wB(e)||$nt(e))&&!Rnt(e)}function cwr(e,t){let r=!1;for(let i=0;ia.codePointAt(0)),i=r.map(kq),n=a=>!i[a]&&!sae(r[a])&&!("imageName"in e.getSection(a));for(let a=0;au){let h=Math.ceil(i/u);r*=h/n,n=h}return{x1:t,y1:r,x2:t+i,y2:r+n}}function ett(e,t,r,i,n,a){let o=e.image,s;if(o.content){let m=o.content,g=o.pixelRatio||1;s=[m[0]/g,m[1]/g,o.displaySize[0]-m[2]/g,o.displaySize[1]-m[3]/g]}let l=t.left*a,u=t.right*a,c,f,h,p;r==="width"||r==="both"?(p=n[0]+l-i[3],f=n[0]+u+i[1]):(p=n[0]+(l+u-o.displaySize[0])/2,f=p+o.displaySize[0]);let d=t.top*a,v=t.bottom*a;return r==="height"||r==="both"?(c=n[1]+d-i[0],h=n[1]+v+i[2]):(c=n[1]+(d+v-o.displaySize[1])/2,h=c+o.displaySize[1]),{image:o,top:c,right:f,bottom:h,left:p,collisionPadding:s}}function rtt(e,t){let{expression:r}=t;if(r.kind==="constant")return{kind:"constant",layoutSize:r.evaluate(new Io(e+1))};if(r.kind==="source")return{kind:"source"};if(r.kind==="composite"){let{minZoom:i,maxZoom:n}=ywr(r.zoomStops,e);return{kind:"composite",minZoom:i,maxZoom:n,interpolationType:r.interpolationType}}{let i=xwr(r),n=r.evaluate(new Io(e+1));return{kind:"camera",zoomStops:r.zoomStops,sizes:i,layoutSize:n,interpolationType:r.interpolationType}}}function ywr(e,t){let r=0;for(;re.evaluate(new Io(t===-1/0?e.zoomStops[1]-1:t)))}function Dq(e,{uSize:t,uSizeT:r},{lowerSize:i,upperSize:n}){return e.kind==="source"?i/128:e.kind==="composite"?Ks.number(i/128,n/128,r):t}function LC(e,t){let r=0,i=0;return e.kind==="constant"?i=e.layoutSize:e.kind==="camera"?i=bwr(e,t):e.kind==="composite"&&(r=_wr(e,t)),{uSizeT:r,uSize:i}}function bwr({zoomStops:e,sizes:t,layoutSize:r,interpolationType:i},n){let a=e.length-1;for(;a>0&&e[a]>n;)a--;let o=Math.min(a+1,e.length-1),s=i?ea(sp.interpolationFactor(i,n,e[a],e[o]),0,1):0;return Math.min(Ks.number(t[a],t[o],s),r)}function _wr({interpolationType:e,minZoom:t,maxZoom:r},i){return e?ea(sp.interpolationFactor(e,i,t,r),0,1):0}function Xnt(e,t,r,i,n){if(t.segment===void 0||r===0)return!0;let a=t,o=t.segment+1,s=0;for(;s>-r/2;){if(o--,o<0)return!1;s-=e[o].dist(a),a=e[o]}s+=e[o].dist(e[o+1]),o++;let l=[],u=0;for(;si;)u-=l.shift().angleDelta;if(u>n)return!1;o++,s+=f.dist(h)}return!0}function Znt(e){let t=0;for(let r=0;ru){let d=(u-l)/p,v=new IT(Ks.number(f.x,h.x,d),Ks.number(f.y,h.y,d),h.angleTo(f),c);return v._round(),!o||Xnt(e,v,s,o,t)?v:void 0}l+=p}}function Twr(e,t,r,i,n,a,o,s,l){let u=Knt(i,a,o),c=Jnt(i,n),f=c*o,h=e[0].x===0||e[0].x===l||e[0].y===0||e[0].y===l;t-f=0&&b=0&&S=0&&h+u<=c){let x=new IT(b,S,w,d);x._round(),(!i||Xnt(e,x,a,i,n))&&p.push(x)}}f+=g}return!s&&!p.length&&!o&&(p=Qnt(e,f/2,r,i,n,a,o,!0,l)),p}function fae(e,t,r,i,n){let a=[];for(let o of e){let s;for(let l=0;l=i&&c.x>=i)&&(u.x>=i?u=new rr(i,u.y+(c.y-u.y)*((i-u.x)/(c.x-u.x)))._round():c.x>=i&&(c=new rr(i,u.y+(c.y-u.y)*((i-u.x)/(c.x-u.x)))._round()),!(u.y>=n&&c.y>=n)&&(u.y>=n?u=new rr(u.x+(c.x-u.x)*((n-u.y)/(c.y-u.y)),n)._round():c.y>=n&&(c=new rr(u.x+(c.x-u.x)*((n-u.y)/(c.y-u.y)),n)._round()),(!s||!u.equals(s[s.length-1]))&&(s=[u],a.push(s)),s.push(c)))))}}return a}function itt(e,t,r,i){let n=[],a=e.image,o=a.pixelRatio,s=a.paddedRect.w-2,l=a.paddedRect.h-2,u={x1:e.left,y1:e.top,x2:e.right,y2:e.bottom},c=a.stretchX||[[0,s]],f=a.stretchY||[[0,l]],h=(D,F)=>D+F[1]-F[0],p=c.reduce(h,0),d=f.reduce(h,0),v=s-p,m=l-d,g=0,w=p,_=0,b=d,S=0,x=v,A=0,T=m;if(a.content&&i){let D=a.content,F=D[2]-D[0],P=D[3]-D[1];(a.textFitWidth||a.textFitHeight)&&(u=Wnt(e)),g=hB(c,0,D[0]),_=hB(f,0,D[1]),w=hB(c,D[0],D[2]),b=hB(f,D[1],D[3]),S=D[0]-g,A=D[1]-_,x=F-w,T=P-b}let y=u.x1,E=u.y1,M=u.x2-y,C=u.y2-E,k=(D,F,P,R)=>{let L=dB(D.stretch-g,w,M,y),I=pB(D.fixed-S,x,D.stretch,p),B=dB(F.stretch-_,b,C,E),O=pB(F.fixed-A,T,F.stretch,d),$=dB(P.stretch-g,w,M,y),X=pB(P.fixed-S,x,P.stretch,p),K=dB(R.stretch-_,b,C,E),G=pB(R.fixed-A,T,R.stretch,d),q=new rr(L,B),J=new rr($,B),N=new rr($,K),V=new rr(L,K),Y=new rr(I/o,O/o),H=new rr(X/o,G/o),j=t*Math.PI/180;if(j){let Ee=Math.sin(j),xe=Math.cos(j),ce=[xe,-Ee,Ee,xe];q._matMult(ce),J._matMult(ce),V._matMult(ce),N._matMult(ce)}let Q=D.stretch+D.fixed,te=P.stretch+P.fixed,ue=F.stretch+F.fixed,ge=R.stretch+R.fixed;return{tl:q,tr:J,bl:V,br:N,tex:{x:a.paddedRect.x+1+Q,y:a.paddedRect.y+1+ue,w:te-Q,h:ge-ue},writingMode:void 0,glyphOffset:[0,0],sectionIndex:0,pixelOffsetTL:Y,pixelOffsetBR:H,minFontScaleX:x/o/M,minFontScaleY:T/o/C,isSDF:r}};if(!i||!a.stretchX&&!a.stretchY)n.push(k({fixed:0,stretch:-1},{fixed:0,stretch:-1},{fixed:0,stretch:s+1},{fixed:0,stretch:l+1}));else{let D=ntt(c,v,p),F=ntt(f,m,d);for(let P=0;Pf.d||!f.d)&&(f=h),!(h.max-f.d<=t)&&(n=h.h/2,a.push(new ST(h.p.x-n,h.p.y-n,n,e)),a.push(new ST(h.p.x+n,h.p.y-n,n,e)),a.push(new ST(h.p.x-n,h.p.y+n,n,e)),a.push(new ST(h.p.x+n,h.p.y+n,n,e)))}return c.d>0&&f.d-c.d<=t?c.p:f.p}function Ewr(e,t){return t.max-e.max}function kwr(e,t){let r=!1,i=1/0;for(let n of t)for(let a=0,o=n.length,s=o-1;ae.y!=u.y>e.y&&e.x<(u.x-l.x)*(e.y-l.y)/(u.y-l.y)+l.x&&(r=!r),i=Math.min(i,ent(e,l,u))}return(r?1:-1)*Math.sqrt(i)}function Cwr(e){let t=0,r=0,i=0,n=e[0];for(let a=0,o=n.length,s=o-1;ah*24);c.startsWith("top")?f[1]-=7:c.startsWith("bottom")&&(f[1]+=7),l[u+1]=f}return new lg(l)}let a=i.get("text-variable-anchor");if(a){let s;s=e._unevaluatedLayout.getValue("text-radial-offset")===void 0?i.get("text-offset").evaluate(t,{},r).map(u=>u*24):[i.get("text-radial-offset").evaluate(t,{},r)*24,hae];let l=[];for(let u of a)l.push(u,eat(u,s));return new lg(l)}return null}function Dwr(e){var c,f;e.bucket.createArrays();let t=512*e.bucket.overscaling;e.bucket.tilePixelRatio=qr/t,e.bucket.compareText={},e.bucket.iconsNeedLinear=!1;let r=e.bucket.layers[0],i=r.layout,n=r._unevaluatedLayout._values,a={layoutIconSize:n["icon-size"].possiblyEvaluate(new Io(e.bucket.zoom+1),e.canonical),layoutTextSize:n["text-size"].possiblyEvaluate(new Io(e.bucket.zoom+1),e.canonical),textMaxSize:n["text-size"].possiblyEvaluate(new Io(18))};if(e.bucket.textSizeData.kind==="composite"){let{minZoom:h,maxZoom:p}=e.bucket.textSizeData;a.compositeTextSizes=[n["text-size"].possiblyEvaluate(new Io(h),e.canonical),n["text-size"].possiblyEvaluate(new Io(p),e.canonical)]}if(e.bucket.iconSizeData.kind==="composite"){let{minZoom:h,maxZoom:p}=e.bucket.iconSizeData;a.compositeIconSizes=[n["icon-size"].possiblyEvaluate(new Io(h),e.canonical),n["icon-size"].possiblyEvaluate(new Io(p),e.canonical)]}let o=i.get("text-line-height")*24,s=i.get("text-rotation-alignment")!=="viewport"&&i.get("symbol-placement")!=="point",l=i.get("text-keep-upright"),u=i.get("text-size");for(let h of e.bucket.features){let p=i.get("text-font").evaluate(h,{},e.canonical).join(","),d=u.evaluate(h,{},e.canonical),v=a.layoutTextSize.evaluate(h,{},e.canonical),m=a.layoutIconSize.evaluate(h,{},e.canonical),g={horizontal:{},vertical:void 0},w=h.text,_=[0,0];if(w){let A=w.toString(),T=i.get("text-letter-spacing").evaluate(h,{},e.canonical)*24,y=E3r(A)?T:0,E=i.get("text-anchor").evaluate(h,{},e.canonical),M=tat(r,h,e.canonical);if(!M){let F=i.get("text-radial-offset").evaluate(h,{},e.canonical);_=F?eat(E,[F*24,hae]):i.get("text-offset").evaluate(h,{},e.canonical).map(P=>P*24)}let C=s?"center":i.get("text-justify").evaluate(h,{},e.canonical),k=i.get("symbol-placement")==="point"?i.get("text-max-width").evaluate(h,{},e.canonical)*24:1/0,D=()=>{e.bucket.allowVerticalPlacement&&Jie(A)&&(g.vertical=fB(w,e.glyphMap,e.glyphPositions,e.imagePositions,p,k,o,E,"left",y,_,2,!0,v,d))};if(!s&&M){let F=new Set;if(C==="auto")for(let R=0;R{L.x<0||L.x>=8192||L.y<0||L.y>=8192||Pwr(e,L,R,r,i,n,D,e.layers[0],e.collisionBoxArray,t.index,t.sourceLayerIndex,e.index,w,[x,x,x,x],y,l,b,A,E,v,t,a,u,c,o,h)};if(M==="line")for(let R of fae(t.geometry,0,0,qr,qr)){let L=t3(R,F),I=Twr(L,S,T,r.vertical||m,i,24,_,e.overscaling,qr);for(let B of I){let O=m;(!O||!Iwr(e,O.text,C,B))&&P(L,B)}}else if(M==="line-center"){for(let R of t.geometry)if(R.length>1){let L=t3(R,F),I=wwr(L,T,r.vertical||m,i,24,_);I&&P(L,I)}}else if(t.type==="Polygon")for(let R of lq(t.geometry,0)){let L=Swr(R,16);P(t3(R[0],F,!0),new IT(L.x,L.y,0))}else if(t.type==="LineString")for(let R of t.geometry){let L=t3(R,F);P(L,new IT(L[0].x,L[0].y,0))}else if(t.type==="Point")for(let R of t.geometry)for(let L of R)P([L],new IT(L.x,L.y,0))}function Lwr(e,t){let r=e.length,i=t==null?void 0:t.values;if((i==null?void 0:i.length)>0)for(let n=0;n32640&&Pa(`${e.layerIds[0]}: Value for "text-size" is >= 255. Reduce your "text-size".`)):g.kind==="composite"&&(w=[128*d.compositeTextSizes[0].evaluate(o,{},v),128*d.compositeTextSizes[1].evaluate(o,{},v)],(w[0]>32640||w[1]>32640)&&Pa(`${e.layerIds[0]}: Value for "text-size" is >= 255. Reduce your "text-size".`)),e.addSymbols(e.text,m,w,s,a,o,c,t,u.lineStartIndex,u.lineLength,p,v,l);for(let _ of f)h[_]=e.text.placedSymbolArray.length-1;return m.length*4}function rat(e){for(let t in e)return e[t];return null}function Pwr(e,t,r,i,n,a,o,s,l,u,c,f,h,p,d,v,m,g,w,_,b,S,x,A,T,y){let E=e.addToLineVertexArray(t,r),M=s.layout.get("symbol-height-offset").evaluate(b,{},A);M>e.maxHeightOffset&&(e.maxHeightOffset=M);let C,k,D,F,P=0,R=0,L=0,I=0,B=-1,O=-1,$={},X=(0,IB.default)("");if(e.allowVerticalPlacement&&i.vertical){let ce=s.layout.get("text-rotate").evaluate(b,{},A)+90,oe=i.vertical;D=new vB(l,t,u,c,f,oe,h,p,d,ce),o&&(F=new vB(l,t,u,c,f,o,m,g,d,ce))}if(n){let ce=s.layout.get("icon-rotate").evaluate(b,{}),oe=s.layout.get("icon-text-fit")!=="none",Se=itt(n,ce,x,oe),be=o?itt(o,ce,x,oe):void 0;k=new vB(l,t,u,c,f,n,m,g,!1,ce),P=Se.length*4;let fe=e.iconSizeData,ee=null;fe.kind==="source"?(ee=[128*s.layout.get("icon-size").evaluate(b,{})],ee[0]>32640&&Pa(`${e.layerIds[0]}: Value for "icon-size" is >= 255. Reduce your "icon-size".`)):fe.kind==="composite"&&(ee=[128*S.compositeIconSizes[0].evaluate(b,{},A),128*S.compositeIconSizes[1].evaluate(b,{},A)],(ee[0]>32640||ee[1]>32640)&&Pa(`${e.layerIds[0]}: Value for "icon-size" is >= 255. Reduce your "icon-size".`)),e.addSymbols(e.icon,Se,ee,_,w,b,0,t,E.lineStartIndex,E.lineLength,-1,A,M),B=e.icon.placedSymbolArray.length-1,be&&(R=be.length*4,e.addSymbols(e.icon,be,ee,_,w,b,2,t,E.lineStartIndex,E.lineLength,-1,A,M),O=e.icon.placedSymbolArray.length-1)}let K=Object.keys(i.horizontal);for(let ce of K){let oe=i.horizontal[ce];C||(C=(X=(0,IB.default)(oe.text),new vB(l,t,u,c,f,oe,h,p,d,s.layout.get("text-rotate").evaluate(b,{},A))));let Se=oe.positionedLines.length===1;if(L+=att(e,t,oe,a,s,d,b,v,M,E,i.vertical?1:3,Se?K:[ce],$,B,S,A),Se)break}i.vertical&&(I+=att(e,t,i.vertical,a,s,d,b,v,M,E,2,["vertical"],$,O,S,A));let G=C?C.boxStartIndex:e.collisionBoxArray.length,q=C?C.boxEndIndex:e.collisionBoxArray.length,J=D?D.boxStartIndex:e.collisionBoxArray.length,N=D?D.boxEndIndex:e.collisionBoxArray.length,V=k?k.boxStartIndex:e.collisionBoxArray.length,Y=k?k.boxEndIndex:e.collisionBoxArray.length,H=F?F.boxStartIndex:e.collisionBoxArray.length,j=F?F.boxEndIndex:e.collisionBoxArray.length,Q=-1,te=(ce,oe)=>ce!=null&&ce.circleDiameter?Math.max(ce.circleDiameter,oe):oe;Q=te(C,Q),Q=te(D,Q),Q=te(k,Q),Q=te(F,Q);let ue=+(Q>-1);ue&&(Q*=T/24),e.glyphOffsetArray.length>=e.maxGlyphs&&Pa("Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907"),b.sortKey!==void 0&&e.addToSortKeyRanges(e.symbolInstances.length,b.sortKey);let ge=tat(s,b,A),[Ee,xe]=Lwr(e.textAnchorOffsets,ge);y&&(X=Rwr(X,b)),e.symbolInstances.emplaceBack(t.x,t.y,$.right>=0?$.right:-1,$.center>=0?$.center:-1,$.left>=0?$.left:-1,$.vertical||-1,B,O,X,G,q,J,N,V,Y,H,j,u,L,I,P,R,ue,0,h,Q,Ee,xe,M)}function Iwr(e,t,r,i){let n=e.compareText;if(!(t in n))n[t]=[];else{let a=n[t];for(let o=a.length-1;o>=0;o--)if(i.dist(a[o])e&&i in e?String(e[i]):"")}function Vwr(e,t,r,i=1){var a;let n=(a=e.get("icon-padding").evaluate(t,{},r))==null?void 0:a.values;return[n[0]*i,n[1]*i,n[2]*i,n[3]*i]}function aat(e){let t=[],r=e.id;return r===void 0&&t.push(new ri(`layers.${r}`,null,'missing required property "id"')),e.render===void 0&&t.push(new ri(`layers.${r}`,null,'missing required method "render"')),e.renderingMode&&e.renderingMode!=="2d"&&e.renderingMode!=="3d"&&t.push(new ri(`layers.${r}`,null,'property "renderingMode" must be either "2d" or "3d"')),t}function Lq(e,t){if(e.type==="custom")return new $wr(e,t);switch(e.type){case"background":return new jwr(e,t);case"circle":return new Ibr(e,t);case"color-relief":return new Hbr(e,t);case"fill":return new __r(e,t);case"fill-extrusion":return new O_r(e,t);case"heatmap":return new Bbr(e,t);case"hillshade":return new Nbr(e,t);case"line":return new K_r(e,t);case"raster":return new Jxr(e,t);case"symbol":return new Uwr(e,t)}}function Xwr(e,t,r){return!(e<0||e>25||r<0||r>=2**e||t<0||t>=2**e)}function pae(e,t){let{x:r,y:i}=Mo.fromLngLat(t);return!(e<0||e>25||i<0||i>=1||r<0||r>=1)}function n3(e,t,r,i,n){e*=2,e<0&&(e=e*-1-1);let a=1<0;n--){let a=1<>>0;return((t&255)<<24|(t&65280)<<8|t>>>8&65280|t>>>24&255)>>>0}function r5r(e,t,r,i){let n=i,a=e[t]>>>0,o=e[t+1]>>>0;r[n++]=a>>>0&3,r[n++]=a>>>2&3,r[n++]=a>>>4&3,r[n++]=a>>>6&3,r[n++]=a>>>8&3,r[n++]=a>>>10&3,r[n++]=a>>>12&3,r[n++]=a>>>14&3,r[n++]=a>>>16&3,r[n++]=a>>>18&3,r[n++]=a>>>20&3,r[n++]=a>>>22&3,r[n++]=a>>>24&3,r[n++]=a>>>26&3,r[n++]=a>>>28&3,r[n++]=a>>>30&3,r[n++]=o>>>0&3,r[n++]=o>>>2&3,r[n++]=o>>>4&3,r[n++]=o>>>6&3,r[n++]=o>>>8&3,r[n++]=o>>>10&3,r[n++]=o>>>12&3,r[n++]=o>>>14&3,r[n++]=o>>>16&3,r[n++]=o>>>18&3,r[n++]=o>>>20&3,r[n++]=o>>>22&3,r[n++]=o>>>24&3,r[n++]=o>>>26&3,r[n++]=o>>>28&3,r[n]=o>>>30&3}function i5r(e,t,r,i){let n=i,a=e[t]>>>0,o=e[t+1]>>>0,s=e[t+2]>>>0;r[n++]=a>>>0&7,r[n++]=a>>>3&7,r[n++]=a>>>6&7,r[n++]=a>>>9&7,r[n++]=a>>>12&7,r[n++]=a>>>15&7,r[n++]=a>>>18&7,r[n++]=a>>>21&7,r[n++]=a>>>24&7,r[n++]=a>>>27&7,r[n++]=(a>>>30|(o&1)<<2)&7,r[n++]=o>>>1&7,r[n++]=o>>>4&7,r[n++]=o>>>7&7,r[n++]=o>>>10&7,r[n++]=o>>>13&7,r[n++]=o>>>16&7,r[n++]=o>>>19&7,r[n++]=o>>>22&7,r[n++]=o>>>25&7,r[n++]=o>>>28&7,r[n++]=(o>>>31|(s&3)<<1)&7,r[n++]=s>>>2&7,r[n++]=s>>>5&7,r[n++]=s>>>8&7,r[n++]=s>>>11&7,r[n++]=s>>>14&7,r[n++]=s>>>17&7,r[n++]=s>>>20&7,r[n++]=s>>>23&7,r[n++]=s>>>26&7,r[n]=s>>>29&7}function n5r(e,t,r,i){let n=i,a=e[t]>>>0,o=e[t+1]>>>0,s=e[t+2]>>>0,l=e[t+3]>>>0;r[n++]=a>>>0&15,r[n++]=a>>>4&15,r[n++]=a>>>8&15,r[n++]=a>>>12&15,r[n++]=a>>>16&15,r[n++]=a>>>20&15,r[n++]=a>>>24&15,r[n++]=a>>>28&15,r[n++]=o>>>0&15,r[n++]=o>>>4&15,r[n++]=o>>>8&15,r[n++]=o>>>12&15,r[n++]=o>>>16&15,r[n++]=o>>>20&15,r[n++]=o>>>24&15,r[n++]=o>>>28&15,r[n++]=s>>>0&15,r[n++]=s>>>4&15,r[n++]=s>>>8&15,r[n++]=s>>>12&15,r[n++]=s>>>16&15,r[n++]=s>>>20&15,r[n++]=s>>>24&15,r[n++]=s>>>28&15,r[n++]=l>>>0&15,r[n++]=l>>>4&15,r[n++]=l>>>8&15,r[n++]=l>>>12&15,r[n++]=l>>>16&15,r[n++]=l>>>20&15,r[n++]=l>>>24&15,r[n]=l>>>28&15}function a5r(e,t,r,i){let n=i,a=e[t]>>>0,o=e[t+1]>>>0,s=e[t+2]>>>0,l=e[t+3]>>>0,u=e[t+4]>>>0;r[n++]=a>>>0&31,r[n++]=a>>>5&31,r[n++]=a>>>10&31,r[n++]=a>>>15&31,r[n++]=a>>>20&31,r[n++]=a>>>25&31,r[n++]=(a>>>30|(o&7)<<2)&31,r[n++]=o>>>3&31,r[n++]=o>>>8&31,r[n++]=o>>>13&31,r[n++]=o>>>18&31,r[n++]=o>>>23&31,r[n++]=(o>>>28|(s&1)<<4)&31,r[n++]=s>>>1&31,r[n++]=s>>>6&31,r[n++]=s>>>11&31,r[n++]=s>>>16&31,r[n++]=s>>>21&31,r[n++]=s>>>26&31,r[n++]=(s>>>31|(l&15)<<1)&31,r[n++]=l>>>4&31,r[n++]=l>>>9&31,r[n++]=l>>>14&31,r[n++]=l>>>19&31,r[n++]=l>>>24&31,r[n++]=(l>>>29|(u&3)<<3)&31,r[n++]=u>>>2&31,r[n++]=u>>>7&31,r[n++]=u>>>12&31,r[n++]=u>>>17&31,r[n++]=u>>>22&31,r[n]=u>>>27&31}function o5r(e,t,r,i){let n=i,a=e[t]>>>0,o=e[t+1]>>>0,s=e[t+2]>>>0,l=e[t+3]>>>0,u=e[t+4]>>>0,c=e[t+5]>>>0;r[n++]=a>>>0&63,r[n++]=a>>>6&63,r[n++]=a>>>12&63,r[n++]=a>>>18&63,r[n++]=a>>>24&63,r[n++]=(a>>>30|(o&15)<<2)&63,r[n++]=o>>>4&63,r[n++]=o>>>10&63,r[n++]=o>>>16&63,r[n++]=o>>>22&63,r[n++]=(o>>>28|(s&3)<<4)&63,r[n++]=s>>>2&63,r[n++]=s>>>8&63,r[n++]=s>>>14&63,r[n++]=s>>>20&63,r[n++]=s>>>26&63,r[n++]=l>>>0&63,r[n++]=l>>>6&63,r[n++]=l>>>12&63,r[n++]=l>>>18&63,r[n++]=l>>>24&63,r[n++]=(l>>>30|(u&15)<<2)&63,r[n++]=u>>>4&63,r[n++]=u>>>10&63,r[n++]=u>>>16&63,r[n++]=u>>>22&63,r[n++]=(u>>>28|(c&3)<<4)&63,r[n++]=c>>>2&63,r[n++]=c>>>8&63,r[n++]=c>>>14&63,r[n++]=c>>>20&63,r[n]=c>>>26&63}function s5r(e,t,r,i){let n=i,a=e[t]>>>0,o=e[t+1]>>>0,s=e[t+2]>>>0,l=e[t+3]>>>0,u=e[t+4]>>>0,c=e[t+5]>>>0,f=e[t+6]>>>0;r[n++]=a>>>0&127,r[n++]=a>>>7&127,r[n++]=a>>>14&127,r[n++]=a>>>21&127,r[n++]=(a>>>28|(o&7)<<4)&127,r[n++]=o>>>3&127,r[n++]=o>>>10&127,r[n++]=o>>>17&127,r[n++]=o>>>24&127,r[n++]=(o>>>31|(s&63)<<1)&127,r[n++]=s>>>6&127,r[n++]=s>>>13&127,r[n++]=s>>>20&127,r[n++]=(s>>>27|(l&3)<<5)&127,r[n++]=l>>>2&127,r[n++]=l>>>9&127,r[n++]=l>>>16&127,r[n++]=l>>>23&127,r[n++]=(l>>>30|(u&31)<<2)&127,r[n++]=u>>>5&127,r[n++]=u>>>12&127,r[n++]=u>>>19&127,r[n++]=(u>>>26|(c&1)<<6)&127,r[n++]=c>>>1&127,r[n++]=c>>>8&127,r[n++]=c>>>15&127,r[n++]=c>>>22&127,r[n++]=(c>>>29|(f&15)<<3)&127,r[n++]=f>>>4&127,r[n++]=f>>>11&127,r[n++]=f>>>18&127,r[n]=f>>>25&127}function l5r(e,t,r,i){let n=i,a=e[t]>>>0,o=e[t+1]>>>0,s=e[t+2]>>>0,l=e[t+3]>>>0,u=e[t+4]>>>0,c=e[t+5]>>>0,f=e[t+6]>>>0,h=e[t+7]>>>0;r[n++]=a>>>0&255,r[n++]=a>>>8&255,r[n++]=a>>>16&255,r[n++]=a>>>24&255,r[n++]=o>>>0&255,r[n++]=o>>>8&255,r[n++]=o>>>16&255,r[n++]=o>>>24&255,r[n++]=s>>>0&255,r[n++]=s>>>8&255,r[n++]=s>>>16&255,r[n++]=s>>>24&255,r[n++]=l>>>0&255,r[n++]=l>>>8&255,r[n++]=l>>>16&255,r[n++]=l>>>24&255,r[n++]=u>>>0&255,r[n++]=u>>>8&255,r[n++]=u>>>16&255,r[n++]=u>>>24&255,r[n++]=c>>>0&255,r[n++]=c>>>8&255,r[n++]=c>>>16&255,r[n++]=c>>>24&255,r[n++]=f>>>0&255,r[n++]=f>>>8&255,r[n++]=f>>>16&255,r[n++]=f>>>24&255,r[n++]=h>>>0&255,r[n++]=h>>>8&255,r[n++]=h>>>16&255,r[n]=h>>>24&255}function u5r(e,t,r,i){let n=i,a=e[t]>>>0,o=e[t+1]>>>0,s=e[t+2]>>>0,l=e[t+3]>>>0,u=e[t+4]>>>0,c=e[t+5]>>>0,f=e[t+6]>>>0,h=e[t+7]>>>0,p=e[t+8]>>>0;r[n++]=a>>>0&511,r[n++]=a>>>9&511,r[n++]=a>>>18&511,r[n++]=(a>>>27|(o&15)<<5)&511,r[n++]=o>>>4&511,r[n++]=o>>>13&511,r[n++]=o>>>22&511,r[n++]=(o>>>31|(s&255)<<1)&511,r[n++]=s>>>8&511,r[n++]=s>>>17&511,r[n++]=(s>>>26|(l&7)<<6)&511,r[n++]=l>>>3&511,r[n++]=l>>>12&511,r[n++]=l>>>21&511,r[n++]=(l>>>30|(u&127)<<2)&511,r[n++]=u>>>7&511,r[n++]=u>>>16&511,r[n++]=(u>>>25|(c&3)<<7)&511,r[n++]=c>>>2&511,r[n++]=c>>>11&511,r[n++]=c>>>20&511,r[n++]=(c>>>29|(f&63)<<3)&511,r[n++]=f>>>6&511,r[n++]=f>>>15&511,r[n++]=(f>>>24|(h&1)<<8)&511,r[n++]=h>>>1&511,r[n++]=h>>>10&511,r[n++]=h>>>19&511,r[n++]=(h>>>28|(p&31)<<4)&511,r[n++]=p>>>5&511,r[n++]=p>>>14&511,r[n]=p>>>23&511}function c5r(e,t,r,i){let n=i,a=e[t]>>>0,o=e[t+1]>>>0,s=e[t+2]>>>0,l=e[t+3]>>>0,u=e[t+4]>>>0,c=e[t+5]>>>0,f=e[t+6]>>>0,h=e[t+7]>>>0,p=e[t+8]>>>0,d=e[t+9]>>>0;r[n++]=a>>>0&1023,r[n++]=a>>>10&1023,r[n++]=a>>>20&1023,r[n++]=(a>>>30|(o&255)<<2)&1023,r[n++]=o>>>8&1023,r[n++]=o>>>18&1023,r[n++]=(o>>>28|(s&63)<<4)&1023,r[n++]=s>>>6&1023,r[n++]=s>>>16&1023,r[n++]=(s>>>26|(l&15)<<6)&1023,r[n++]=l>>>4&1023,r[n++]=l>>>14&1023,r[n++]=(l>>>24|(u&3)<<8)&1023,r[n++]=u>>>2&1023,r[n++]=u>>>12&1023,r[n++]=u>>>22&1023,r[n++]=c>>>0&1023,r[n++]=c>>>10&1023,r[n++]=c>>>20&1023,r[n++]=(c>>>30|(f&255)<<2)&1023,r[n++]=f>>>8&1023,r[n++]=f>>>18&1023,r[n++]=(f>>>28|(h&63)<<4)&1023,r[n++]=h>>>6&1023,r[n++]=h>>>16&1023,r[n++]=(h>>>26|(p&15)<<6)&1023,r[n++]=p>>>4&1023,r[n++]=p>>>14&1023,r[n++]=(p>>>24|(d&3)<<8)&1023,r[n++]=d>>>2&1023,r[n++]=d>>>12&1023,r[n]=d>>>22&1023}function f5r(e,t,r,i){let n=i,a=e[t]>>>0,o=e[t+1]>>>0,s=e[t+2]>>>0,l=e[t+3]>>>0,u=e[t+4]>>>0,c=e[t+5]>>>0,f=e[t+6]>>>0,h=e[t+7]>>>0,p=e[t+8]>>>0,d=e[t+9]>>>0,v=e[t+10]>>>0;r[n++]=a>>>0&2047,r[n++]=a>>>11&2047,r[n++]=(a>>>22|(o&1)<<10)&2047,r[n++]=o>>>1&2047,r[n++]=o>>>12&2047,r[n++]=(o>>>23|(s&3)<<9)&2047,r[n++]=s>>>2&2047,r[n++]=s>>>13&2047,r[n++]=(s>>>24|(l&7)<<8)&2047,r[n++]=l>>>3&2047,r[n++]=l>>>14&2047,r[n++]=(l>>>25|(u&15)<<7)&2047,r[n++]=u>>>4&2047,r[n++]=u>>>15&2047,r[n++]=(u>>>26|(c&31)<<6)&2047,r[n++]=c>>>5&2047,r[n++]=c>>>16&2047,r[n++]=(c>>>27|(f&63)<<5)&2047,r[n++]=f>>>6&2047,r[n++]=f>>>17&2047,r[n++]=(f>>>28|(h&127)<<4)&2047,r[n++]=h>>>7&2047,r[n++]=h>>>18&2047,r[n++]=(h>>>29|(p&255)<<3)&2047,r[n++]=p>>>8&2047,r[n++]=p>>>19&2047,r[n++]=(p>>>30|(d&511)<<2)&2047,r[n++]=d>>>9&2047,r[n++]=d>>>20&2047,r[n++]=(d>>>31|(v&1023)<<1)&2047,r[n++]=v>>>10&2047,r[n]=v>>>21&2047}function h5r(e,t,r,i){let n=i,a=e[t]>>>0,o=e[t+1]>>>0,s=e[t+2]>>>0,l=e[t+3]>>>0,u=e[t+4]>>>0,c=e[t+5]>>>0,f=e[t+6]>>>0,h=e[t+7]>>>0,p=e[t+8]>>>0,d=e[t+9]>>>0,v=e[t+10]>>>0,m=e[t+11]>>>0;r[n++]=a>>>0&4095,r[n++]=a>>>12&4095,r[n++]=(a>>>24|(o&15)<<8)&4095,r[n++]=o>>>4&4095,r[n++]=o>>>16&4095,r[n++]=(o>>>28|(s&255)<<4)&4095,r[n++]=s>>>8&4095,r[n++]=s>>>20&4095,r[n++]=l>>>0&4095,r[n++]=l>>>12&4095,r[n++]=(l>>>24|(u&15)<<8)&4095,r[n++]=u>>>4&4095,r[n++]=u>>>16&4095,r[n++]=(u>>>28|(c&255)<<4)&4095,r[n++]=c>>>8&4095,r[n++]=c>>>20&4095,r[n++]=f>>>0&4095,r[n++]=f>>>12&4095,r[n++]=(f>>>24|(h&15)<<8)&4095,r[n++]=h>>>4&4095,r[n++]=h>>>16&4095,r[n++]=(h>>>28|(p&255)<<4)&4095,r[n++]=p>>>8&4095,r[n++]=p>>>20&4095,r[n++]=d>>>0&4095,r[n++]=d>>>12&4095,r[n++]=(d>>>24|(v&15)<<8)&4095,r[n++]=v>>>4&4095,r[n++]=v>>>16&4095,r[n++]=(v>>>28|(m&255)<<4)&4095,r[n++]=m>>>8&4095,r[n]=m>>>20&4095}function d5r(e,t,r,i){let n=i,a=e[t]>>>0,o=e[t+1]>>>0,s=e[t+2]>>>0,l=e[t+3]>>>0,u=e[t+4]>>>0,c=e[t+5]>>>0,f=e[t+6]>>>0,h=e[t+7]>>>0,p=e[t+8]>>>0,d=e[t+9]>>>0,v=e[t+10]>>>0,m=e[t+11]>>>0,g=e[t+12]>>>0,w=e[t+13]>>>0,_=e[t+14]>>>0,b=e[t+15]>>>0;r[n++]=a>>>0&65535,r[n++]=a>>>16&65535,r[n++]=o>>>0&65535,r[n++]=o>>>16&65535,r[n++]=s>>>0&65535,r[n++]=s>>>16&65535,r[n++]=l>>>0&65535,r[n++]=l>>>16&65535,r[n++]=u>>>0&65535,r[n++]=u>>>16&65535,r[n++]=c>>>0&65535,r[n++]=c>>>16&65535,r[n++]=f>>>0&65535,r[n++]=f>>>16&65535,r[n++]=h>>>0&65535,r[n++]=h>>>16&65535,r[n++]=p>>>0&65535,r[n++]=p>>>16&65535,r[n++]=d>>>0&65535,r[n++]=d>>>16&65535,r[n++]=v>>>0&65535,r[n++]=v>>>16&65535,r[n++]=m>>>0&65535,r[n++]=m>>>16&65535,r[n++]=g>>>0&65535,r[n++]=g>>>16&65535,r[n++]=w>>>0&65535,r[n++]=w>>>16&65535,r[n++]=_>>>0&65535,r[n++]=_>>>16&65535,r[n++]=b>>>0&65535,r[n]=b>>>16&65535}function p5r(e,t,r,i){let n=i,a=t;for(let o=0;o<8;o++){let s=e[a++]>>>0;r[n++]=s>>>0&1,r[n++]=s>>>1&1,r[n++]=s>>>2&1,r[n++]=s>>>3&1,r[n++]=s>>>4&1,r[n++]=s>>>5&1,r[n++]=s>>>6&1,r[n++]=s>>>7&1,r[n++]=s>>>8&1,r[n++]=s>>>9&1,r[n++]=s>>>10&1,r[n++]=s>>>11&1,r[n++]=s>>>12&1,r[n++]=s>>>13&1,r[n++]=s>>>14&1,r[n++]=s>>>15&1,r[n++]=s>>>16&1,r[n++]=s>>>17&1,r[n++]=s>>>18&1,r[n++]=s>>>19&1,r[n++]=s>>>20&1,r[n++]=s>>>21&1,r[n++]=s>>>22&1,r[n++]=s>>>23&1,r[n++]=s>>>24&1,r[n++]=s>>>25&1,r[n++]=s>>>26&1,r[n++]=s>>>27&1,r[n++]=s>>>28&1,r[n++]=s>>>29&1,r[n++]=s>>>30&1,r[n++]=s>>>31&1}}function v5r(e,t,r,i){let n=i,a=t;for(let o=0;o<8;o++){let s=e[a++]>>>0,l=e[a++]>>>0;r[n++]=s>>>0&3,r[n++]=s>>>2&3,r[n++]=s>>>4&3,r[n++]=s>>>6&3,r[n++]=s>>>8&3,r[n++]=s>>>10&3,r[n++]=s>>>12&3,r[n++]=s>>>14&3,r[n++]=s>>>16&3,r[n++]=s>>>18&3,r[n++]=s>>>20&3,r[n++]=s>>>22&3,r[n++]=s>>>24&3,r[n++]=s>>>26&3,r[n++]=s>>>28&3,r[n++]=s>>>30&3,r[n++]=l>>>0&3,r[n++]=l>>>2&3,r[n++]=l>>>4&3,r[n++]=l>>>6&3,r[n++]=l>>>8&3,r[n++]=l>>>10&3,r[n++]=l>>>12&3,r[n++]=l>>>14&3,r[n++]=l>>>16&3,r[n++]=l>>>18&3,r[n++]=l>>>20&3,r[n++]=l>>>22&3,r[n++]=l>>>24&3,r[n++]=l>>>26&3,r[n++]=l>>>28&3,r[n++]=l>>>30&3}}function g5r(e,t,r,i){let n=i,a=t;for(let o=0;o<8;o++){let s=e[a++]>>>0,l=e[a++]>>>0,u=e[a++]>>>0;r[n++]=s>>>0&7,r[n++]=s>>>3&7,r[n++]=s>>>6&7,r[n++]=s>>>9&7,r[n++]=s>>>12&7,r[n++]=s>>>15&7,r[n++]=s>>>18&7,r[n++]=s>>>21&7,r[n++]=s>>>24&7,r[n++]=s>>>27&7,r[n++]=(s>>>30|(l&1)<<2)&7,r[n++]=l>>>1&7,r[n++]=l>>>4&7,r[n++]=l>>>7&7,r[n++]=l>>>10&7,r[n++]=l>>>13&7,r[n++]=l>>>16&7,r[n++]=l>>>19&7,r[n++]=l>>>22&7,r[n++]=l>>>25&7,r[n++]=l>>>28&7,r[n++]=(l>>>31|(u&3)<<1)&7,r[n++]=u>>>2&7,r[n++]=u>>>5&7,r[n++]=u>>>8&7,r[n++]=u>>>11&7,r[n++]=u>>>14&7,r[n++]=u>>>17&7,r[n++]=u>>>20&7,r[n++]=u>>>23&7,r[n++]=u>>>26&7,r[n++]=u>>>29&7}}function m5r(e,t,r,i){let n=i,a=t;for(let o=0;o<8;o++){let s=e[a++]>>>0,l=e[a++]>>>0,u=e[a++]>>>0,c=e[a++]>>>0;r[n++]=s>>>0&15,r[n++]=s>>>4&15,r[n++]=s>>>8&15,r[n++]=s>>>12&15,r[n++]=s>>>16&15,r[n++]=s>>>20&15,r[n++]=s>>>24&15,r[n++]=s>>>28&15,r[n++]=l>>>0&15,r[n++]=l>>>4&15,r[n++]=l>>>8&15,r[n++]=l>>>12&15,r[n++]=l>>>16&15,r[n++]=l>>>20&15,r[n++]=l>>>24&15,r[n++]=l>>>28&15,r[n++]=u>>>0&15,r[n++]=u>>>4&15,r[n++]=u>>>8&15,r[n++]=u>>>12&15,r[n++]=u>>>16&15,r[n++]=u>>>20&15,r[n++]=u>>>24&15,r[n++]=u>>>28&15,r[n++]=c>>>0&15,r[n++]=c>>>4&15,r[n++]=c>>>8&15,r[n++]=c>>>12&15,r[n++]=c>>>16&15,r[n++]=c>>>20&15,r[n++]=c>>>24&15,r[n++]=c>>>28&15}}function y5r(e,t,r,i){let n=i,a=t;for(let o=0;o<8;o++){let s=e[a++]>>>0,l=e[a++]>>>0,u=e[a++]>>>0,c=e[a++]>>>0,f=e[a++]>>>0;r[n++]=s>>>0&31,r[n++]=s>>>5&31,r[n++]=s>>>10&31,r[n++]=s>>>15&31,r[n++]=s>>>20&31,r[n++]=s>>>25&31,r[n++]=(s>>>30|(l&7)<<2)&31,r[n++]=l>>>3&31,r[n++]=l>>>8&31,r[n++]=l>>>13&31,r[n++]=l>>>18&31,r[n++]=l>>>23&31,r[n++]=(l>>>28|(u&1)<<4)&31,r[n++]=u>>>1&31,r[n++]=u>>>6&31,r[n++]=u>>>11&31,r[n++]=u>>>16&31,r[n++]=u>>>21&31,r[n++]=u>>>26&31,r[n++]=(u>>>31|(c&15)<<1)&31,r[n++]=c>>>4&31,r[n++]=c>>>9&31,r[n++]=c>>>14&31,r[n++]=c>>>19&31,r[n++]=c>>>24&31,r[n++]=(c>>>29|(f&3)<<3)&31,r[n++]=f>>>2&31,r[n++]=f>>>7&31,r[n++]=f>>>12&31,r[n++]=f>>>17&31,r[n++]=f>>>22&31,r[n++]=f>>>27&31}}function x5r(e,t,r,i){let n=i,a=t;for(let o=0;o<8;o++){let s=e[a++]>>>0,l=e[a++]>>>0,u=e[a++]>>>0,c=e[a++]>>>0,f=e[a++]>>>0,h=e[a++]>>>0;r[n++]=s>>>0&63,r[n++]=s>>>6&63,r[n++]=s>>>12&63,r[n++]=s>>>18&63,r[n++]=s>>>24&63,r[n++]=(s>>>30|(l&15)<<2)&63,r[n++]=l>>>4&63,r[n++]=l>>>10&63,r[n++]=l>>>16&63,r[n++]=l>>>22&63,r[n++]=(l>>>28|(u&3)<<4)&63,r[n++]=u>>>2&63,r[n++]=u>>>8&63,r[n++]=u>>>14&63,r[n++]=u>>>20&63,r[n++]=u>>>26&63,r[n++]=c>>>0&63,r[n++]=c>>>6&63,r[n++]=c>>>12&63,r[n++]=c>>>18&63,r[n++]=c>>>24&63,r[n++]=(c>>>30|(f&15)<<2)&63,r[n++]=f>>>4&63,r[n++]=f>>>10&63,r[n++]=f>>>16&63,r[n++]=f>>>22&63,r[n++]=(f>>>28|(h&3)<<4)&63,r[n++]=h>>>2&63,r[n++]=h>>>8&63,r[n++]=h>>>14&63,r[n++]=h>>>20&63,r[n++]=h>>>26&63}}function b5r(e,t,r,i){let n=i,a=t;for(let o=0;o<8;o++){let s=e[a++]>>>0,l=e[a++]>>>0,u=e[a++]>>>0,c=e[a++]>>>0,f=e[a++]>>>0,h=e[a++]>>>0,p=e[a++]>>>0;r[n++]=s>>>0&127,r[n++]=s>>>7&127,r[n++]=s>>>14&127,r[n++]=s>>>21&127,r[n++]=(s>>>28|(l&7)<<4)&127,r[n++]=l>>>3&127,r[n++]=l>>>10&127,r[n++]=l>>>17&127,r[n++]=l>>>24&127,r[n++]=(l>>>31|(u&63)<<1)&127,r[n++]=u>>>6&127,r[n++]=u>>>13&127,r[n++]=u>>>20&127,r[n++]=(u>>>27|(c&3)<<5)&127,r[n++]=c>>>2&127,r[n++]=c>>>9&127,r[n++]=c>>>16&127,r[n++]=c>>>23&127,r[n++]=(c>>>30|(f&31)<<2)&127,r[n++]=f>>>5&127,r[n++]=f>>>12&127,r[n++]=f>>>19&127,r[n++]=(f>>>26|(h&1)<<6)&127,r[n++]=h>>>1&127,r[n++]=h>>>8&127,r[n++]=h>>>15&127,r[n++]=h>>>22&127,r[n++]=(h>>>29|(p&15)<<3)&127,r[n++]=p>>>4&127,r[n++]=p>>>11&127,r[n++]=p>>>18&127,r[n++]=p>>>25&127}}function _5r(e,t,r,i){let n=i,a=t;for(let o=0;o<8;o++){let s=e[a++]>>>0,l=e[a++]>>>0,u=e[a++]>>>0,c=e[a++]>>>0,f=e[a++]>>>0,h=e[a++]>>>0,p=e[a++]>>>0,d=e[a++]>>>0;r[n++]=s>>>0&255,r[n++]=s>>>8&255,r[n++]=s>>>16&255,r[n++]=s>>>24&255,r[n++]=l>>>0&255,r[n++]=l>>>8&255,r[n++]=l>>>16&255,r[n++]=l>>>24&255,r[n++]=u>>>0&255,r[n++]=u>>>8&255,r[n++]=u>>>16&255,r[n++]=u>>>24&255,r[n++]=c>>>0&255,r[n++]=c>>>8&255,r[n++]=c>>>16&255,r[n++]=c>>>24&255,r[n++]=f>>>0&255,r[n++]=f>>>8&255,r[n++]=f>>>16&255,r[n++]=f>>>24&255,r[n++]=h>>>0&255,r[n++]=h>>>8&255,r[n++]=h>>>16&255,r[n++]=h>>>24&255,r[n++]=p>>>0&255,r[n++]=p>>>8&255,r[n++]=p>>>16&255,r[n++]=p>>>24&255,r[n++]=d>>>0&255,r[n++]=d>>>8&255,r[n++]=d>>>16&255,r[n++]=d>>>24&255}}function w5r(e,t,r,i){let n=i,a=t;for(let o=0;o<128;o++){let s=e[a++]>>>0;r[n++]=s&65535,r[n++]=s>>>16&65535}}function T5r(e,t,r,i,n){let a=ane[n]>>>0,o=t,s=0,l=e[o]>>>0,u=i;for(let c=0;c<8;c++){for(let f=0;f<32;f++)if(s+n<=32){let h=l>>>s&a;r[u+f]=h|0,s+=n,s===32&&(s=0,o++,f!==31&&(l=e[o]>>>0))}else{let h=32-s,p=l>>>s;o++,l=e[o]>>>0;let d=n-h,v=-1>>>32-d>>>0,m=(p|(l&v)<>>0)}}function hat(){let e=new Uint8Array(A5r);return{dataToBePacked:Array(33),dataPointers:new Int32Array(33),byteContainer:e,byteContainerI32:new Int32Array(e.buffer,e.byteOffset,e.byteLength>>>2),exceptionSizes:new Int32Array(33)}}function M5r(e=16){if(e<0)throw RangeError(`initialEncodedWordCapacity must be >= 0, got ${e}`);let t=Math.max(16,e|0);return{encodedWords:new Uint32Array(t),decoderWorkspace:hat()}}function S5r(e,t){if(t<=e.encodedWords.length)return e.encodedWords;let r=new Uint32Array(Math.max(16,t*2));return e.encodedWords=r,r}function E5r(e,t,r,i){i.byteContainer.length>>2;if(n.byteOffset&3)for(let s=0;s>>8&255,n[u+2|0]=l>>>16&255,n[u+3|0]=l>>>24&255}else{let s=i.byteContainerI32;(!s||s.buffer!==n.buffer||s.byteOffset!==n.byteOffset||s.length>>2)),s.set(e.subarray(t,t+a))}let o=r&3;if(o>0){let s=e[t+a|0]|0,l=a<<2;for(let u=0;u>>(u<<3)&255}return n}function k5r(e,t,r){let i=e[t++]|0,n=r.dataToBePacked;for(let a=2;a<=32;a=a+1|0){if(!(i>>>a-1&1))continue;if(t>=e.length)throw Error(`FastPFOR decode: truncated exception stream header (bitWidth=${a}, streamWordIndex=${t}, needWords=1, availableWords=${e.length-t}, encodedWords=${e.length})`);let o=e[t++]>>>0,s=e5r(o),l=o*a+31>>>5;if(t+l>e.length)throw Error(`FastPFOR decode: truncated exception stream (bitWidth=${a}, size=${o}, streamWordIndex=${t}, needWords=${l}, availableWords=${e.length-t}, encodedWords=${e.length})`);let u=n[a];(!u||u.length>>5)|0,r.exceptionSizes[a]=o}return t}function C5r(e,t,r,i,n){switch(n){case 1:p5r(e,t,r,i);break;case 2:v5r(e,t,r,i);break;case 3:g5r(e,t,r,i);break;case 4:m5r(e,t,r,i);break;case 5:y5r(e,t,r,i);break;case 6:x5r(e,t,r,i);break;case 7:b5r(e,t,r,i);break;case 8:_5r(e,t,r,i);break;case 16:w5r(e,t,r,i);break;default:T5r(e,t,r,i,n)}return t+(n<<3)|0}function D5r(e,t,r,i){if(r+2>t)throw Error(`FastPFOR decode: byteContainer underflow at block=${i} (need 2 bytes for [bitWidth, exceptionCount], bytePos=${r}, byteSize=${t})`);let n=e[r++],a=e[r++];if(n>32)throw Error(`FastPFOR decode: invalid bitWidth=${n} at block=${i} (expected 0..32). This likely indicates corrupted or truncated input.`);return{bitWidth:n,exceptionCount:a,bytePosIn:r}}function F5r(e,t,r,i,n,a){if(r+1>t)throw Error(`FastPFOR decode: exception header underflow at block=${a} (need 1 byte for maxBits, bytePos=${r}, byteSize=${t})`);let o=e[r++];if(o32)throw Error(`FastPFOR decode: invalid maxBits=${o} at block=${a} (bitWidth=${i}, expected ${i}..32)`);let s=o-i|0;if(s<1||s>32)throw Error(`FastPFOR decode: invalid exceptionBitWidth=${s} at block=${a} (bitWidth=${i}, maxBits=${o})`);if(r+n>t)throw Error(`FastPFOR decode: exception positions underflow at block=${a} (need=${n}, have=${t-r})`);return{maxBits:o,exceptionBitWidth:s,bytePosIn:r}}function L5r(e,t,r,i,n,a,o,s,l){let{maxBits:u,exceptionBitWidth:c,bytePosIn:f}=F5r(n,a,o,r,i,l);if(o=f,c===1){let m=1<v)throw Error(`FastPFOR decode: exception stream overflow for exceptionBitWidth=${c} (ptr=${d}, need ${i}, size=${v}) at block ${l}`);for(let m=0;m0&&(f=L5r(n,m,d,v,s,l,f,u,h))}if(c!==i)throw Error(`FastPFOR decode: packed region mismatch (pageStart=${t}, packedStart=${r}, consumedPackedEnd=${c}, expectedPackedEnd=${i}, packedWords=${i-r}, encoded.length=${e.length})`)}function I5r(e,t,r,i,n,a){let o=r|0,s=e[o]|0;if(s<=0||o+s>e.length-1)throw Error(`FastPFOR decode: invalid whereMeta=${s} at pageStart=${o} (expected > 0 and pageStart+whereMeta < encoded.length=${e.length})`);let l=o+1|0,u=o+s|0,c=e[u]>>>0,f=c+3>>>2,h=u+1,p=h+f;if(p>=e.length)throw Error(`FastPFOR decode: invalid byteSize=${c} (metaInts=${f}, pageStart=${o}, packedEnd=${u}, byteContainerStart=${h}) causes bitmapPos=${p} out of bounds (encoded.length=${e.length})`);let d=E5r(e,h,c,a),v=c,m=k5r(e,p,a);return a.dataPointers.fill(0),P5r(e,o,l,u,t,i|0,n/256|0,d,v,a),m}function R5r(e,t,r,i,n,a){let o=i+Tae(n,256),s=i,l=r;for(;s!==o;){let u=Math.min(one,o-s);l=I5r(e,t,l,s,u,a),s=s+u|0}return l}function z5r(e,t,r,i,n,a){if(a===0)return t;let o=0,s=t,l=t+r,u=n,c=n,f=n+a,h=0,p=0;for(;s>>o&255;if(o+=8,s+=o>>>5,o&=31,h|=(d&127)<28)throw Error(`FastPFOR VByte: unterminated value (expected MSB=1 terminator within 5 bytes; shift=${p}, partial=${h}, decoded=${c-u}/${a}, inPos=${s}, inEnd=${l})`)}if(c!==f)throw Error(`FastPFOR VByte: truncated stream (decoded=${c-u}, expected=${a}, consumedWords=${s-t}/${r}, vbyteStart=${t}, vbyteEnd=${l})`);return s}function B5r(e,t,r){let i=0,n=0,a=new Uint32Array(t),o=r!=null?r:hat();if(e.length>0){let u=e[i]|0;if(i=i+1|0,u&255)throw Error(`FastPFOR decode: invalid alignedLength=${u} (expected multiple of 256)`);if(n+u>a.length)throw Error(`FastPFOR decode: output buffer too small (outPos=${n}, alignedLength=${u}, out.length=${a.length})`);i=R5r(e,a,i,n,u,o),n=n+u|0}let s=e.length-i|0,l=t-n|0;return z5r(e,i,s,a,n,l),a}function q5r(e,t,r,i,n){switch(n){case 2:r5r(e,t,r,i);return;case 3:i5r(e,t,r,i);return;case 4:n5r(e,t,r,i);return;case 5:a5r(e,t,r,i);return;case 6:o5r(e,t,r,i);return;case 7:s5r(e,t,r,i);return;case 8:l5r(e,t,r,i);return;case 9:u5r(e,t,r,i);return;case 10:c5r(e,t,r,i);return;case 11:f5r(e,t,r,i);return;case 12:h5r(e,t,r,i);return;case 16:d5r(e,t,r,i);return;case 32:for(let u=0;u<32;u=u+1|0)r[i+u|0]=e[t+u|0]|0;return}let a=ane[n]>>>0,o=t,s=0,l=e[o]>>>0;for(let u=0;u<32;u++)if(s+n<=32){let c=l>>>s&a;r[i+u]=c|0,s+=n,s===32&&(s=0,o++,u!==31&&(l=e[o]>>>0))}else{let c=32-s,f=l>>>s;o++,l=e[o]>>>0;let h=ane[n-c]>>>0,p=(f|(l&h)<e.length)throw RangeError(`decodeBigEndianInt32sInto: out of bounds (offset=${t}, byteLength=${r}, bytes.length=${e.length})`);let n=Math.floor(r/4),a=r%4!=0,o=a?n+1:n;if(i.length0){let s=e.byteOffset+t;if(s&3)for(let l=0;l=64)throw Error("Varint too long")}return t.set(n),r}function U5r(e,t,r){let i=new Float64Array(r);for(let n=0;n>4,n<128||(n=t[r.get()],r.increment(),i|=(n&127)<<3,n<128)||(n=t[r.get()],r.increment(),i|=(n&127)<<10,n<128)||(n=t[r.get()],r.increment(),i|=(n&127)<<17,n<128)||(n=t[r.get()],r.increment(),i|=(n&127)<<24,n<128)||(n=t[r.get()],r.increment(),i|=(n&1)<<31,n<128))return i*4294967296+(e>>>0);throw Error("Expected varint not more than 10 bytes")}function H5r(e,t,r,i){return j5r(e,t,r,i,M5r(r>>>2))}function j5r(e,t,r,i,n){let a=i.get();if(r&3)throw Error(`FastPFOR: invalid encodedByteLength=${r} at offset=${a} (encodedBytes.length=${e.length}; expected a multiple of 4 bytes for an int32 big-endian word stream)`);let o=r>>>2,s=S5r(n,o);O5r(e,a,r,s);let l=B5r(s.subarray(0,o),t,n.decoderWorkspace);return i.add(r),l}function Ha(e){return e>>>1^-(e&1)}function df(e){return e>>BigInt(1)^-(e&BigInt(1))}function ix(e){return e%2==1?(e+1)/-2:e/2}function $5r(e){let t=new Int32Array(e.length);for(let r=0;r=4)for(;i=4)for(;i=4)for(;r=4)for(let i=e[0];r=4)for(;i=4)for(;l>>0;for(let r=1;r>>0;return t}function dtt(e){let t=new BigUint64Array(e.length);t[0]=BigInt.asUintN(64,df(e[0]));for(let r=1;r>>0,t[1]=Ha(e[1])>>>0;for(let r=2;r>>0,t[r+1]=t[r-1]+Ha(e[r+1])>>>0;return t}function s4r(e,t,r,i){let n=pat(e,t,r,i);return new Uint32Array(n)}function l4r(e){return e[1]}function u4r(e){return Ha(e[1])}function c4r(e){if(e.length===2){let t=Ha(e[1]);return[t,t]}return[Ha(e[2]),Ha(e[3])]}function f4r(e){return e[1]}function h4r(e){return df(e[1])}function d4r(e){if(e.length===2){let t=df(e[1]);return[t,t]}return[df(e[2]),df(e[3])]}function Zs(e,t){let r=_4r(e,t);return r.logicalLevelTechnique1===va.MORTON?x4r(r,e,t):(va.RLE===r.logicalLevelTechnique1||va.RLE===r.logicalLevelTechnique2)&&H0.NONE!==r.physicalLevelTechnique?b4r(r,e,t):r}function x4r(e,t,r){let i=pf(t,r,2);return{physicalStreamType:e.physicalStreamType,logicalStreamType:e.logicalStreamType,logicalLevelTechnique1:e.logicalLevelTechnique1,logicalLevelTechnique2:e.logicalLevelTechnique2,physicalLevelTechnique:e.physicalLevelTechnique,numValues:e.numValues,byteLength:e.byteLength,decompressedCount:e.decompressedCount,numBits:i[0],coordinateShift:i[1]}}function b4r(e,t,r){let i=pf(t,r,2);return{physicalStreamType:e.physicalStreamType,logicalStreamType:e.logicalStreamType,logicalLevelTechnique1:e.logicalLevelTechnique1,logicalLevelTechnique2:e.logicalLevelTechnique2,physicalLevelTechnique:e.physicalLevelTechnique,numValues:e.numValues,byteLength:e.byteLength,decompressedCount:i[1],runs:i[0],numRleValues:i[1]}}function _4r(e,t){let r=e[t.get()],i=p4r[r>>4],n={};switch(i){case ou.DATA:n={dictionaryType:g4r[r&15]};break;case ou.OFFSET:n={offsetType:m4r[r&15]};break;case ou.LENGTH:n={lengthType:y4r[r&15]}}t.increment();let a=e[t.get()],o=ptt[a>>5],s=ptt[a>>2&7],l=v4r[a&3];t.increment();let u=pf(e,t,2),c=u[0],f=u[1];return{physicalStreamType:i,logicalStreamType:n,logicalLevelTechnique1:o,logicalLevelTechnique2:s,physicalLevelTechnique:l,numValues:c,byteLength:f,decompressedCount:c}}function x3(e,t,r){if(!t)return e;let i=t.size(),n=e.constructor,a=new n(i),o=0;for(let s=0;s=o);){let s=e[i.increment()];if(s<=127){let l=s+3,u=e[i.increment()],c=Math.min(a+l,t);n.fill(u,a,c),a=c}else{let l=256-s;for(let u=0;u=12?S4r.decode(e.subarray(t,r)):E4r(e,t,r)}function E4r(e,t,r){let i="",n=t;for(;n239?4:a>223?3:a>191?2:1;if(n+s>r)break;let l,u,c;s===1?a<128&&(o=a):s===2?(l=e[n+1],(l&192)==128&&(o=(a&31)<<6|l&63,o<=127&&(o=null))):s===3?(l=e[n+1],u=e[n+2],(l&192)==128&&(u&192)==128&&(o=(a&15)<<12|(l&63)<<6|u&63,(o<=2047||o>=55296&&o<=57343)&&(o=null))):s===4&&(l=e[n+1],u=e[n+2],c=e[n+3],(l&192)==128&&(u&192)==128&&(c&192)==128&&(o=(a&15)<<18|(l&63)<<12|(u&63)<<6|c&63,(o<=65535||o>=1114112)&&(o=null))),o===null?(o=65533,s=1):o>65535&&(o-=65536,i+=String.fromCharCode(o>>>10&1023|55296),o=56320|o&1023),i+=String.fromCharCode(o),n+=s}return i}function NB(e,t,r,i,n){return L4r(r6(e,t,r),r,i,n)}function hf(e,t,r,i,n){return P4r(r6(e,t,r),r,i,n)}function nx(e,t,r){return R4r(r6(e,t,r),r)}function r6(e,t,r){let i=r.physicalLevelTechnique;switch(i){case H0.FAST_PFOR:return H5r(e,r.numValues,r.byteLength,t);case H0.VARINT:return pf(e,t,r.numValues);case H0.NONE:return A4r(e,t,r.numValues);default:throw Error(`Specified physicalLevelTechnique ${i} is not supported (yet).`)}}function qC(e,t,r){let i=r.physicalLevelTechnique;switch(i){case H0.VARINT:return Aae(e,t,r.numValues);case H0.NONE:return M4r(e,t,r.numValues);default:throw Error(`Specified physicalLevelTechnique ${i} is not supported (yet).`)}}function k4r(e,t,r){let i=r6(e,t,r);return i.length===1?Ha(i[0]):u4r(i)}function Eae(e,t,r){let i=r6(e,t,r);return i.length===1?r.logicalLevelTechnique1===va.DELTA?Ha(i[0]):i[0]:l4r(i)}function yat(e,t,r){return c4r(r6(e,t,r))}function xat(e,t,r){return d4r(Aae(e,t,r.numValues))}function bat(e,t,r,i){return wat(qC(e,t,r),r,i)}function kae(e,t,r,i){return Tat(qC(e,t,r),r,i)}function C4r(e,t,r,i){let n=D4r(e,t,r,!1);return i?x3(n,i,0):n}function D4r(e,t,r,i){if(r.physicalLevelTechnique===H0.VARINT)return I4r(U5r(e,t,r.numValues),r,i);let n=qC(e,t,r),a=i?wat(n,r):Tat(n,r);return Float64Array.from(a,Number)}function F4r(e,t,r){let i=qC(e,t,r);return i.length===1?df(i[0]):h4r(i)}function _at(e,t,r){let i=qC(e,t,r);return i.length===1?r.logicalLevelTechnique1===va.DELTA?df(i[0]):i[0]:f4r(i)}function L4r(e,t,r,i){let n;switch(t.logicalLevelTechnique1){case va.DELTA:if(t.logicalLevelTechnique2===va.RLE){let a=t;if(!i)return n4r(e,a.runs,a.numRleValues);e=sne(e,a.runs,a.numRleValues),n=ctt(e)}else n=ctt(e);break;case va.RLE:n=Z5r(e,t.runs,t.numRleValues);break;case va.MORTON:Mae(e),n=new Int32Array(e);break;case va.COMPONENTWISE_DELTA:if(r&&!i)return pat(e,r.scale,r.min,r.max);n=e4r(e);break;case va.NONE:n=$5r(e);break;default:throw Error(`The specified Logical level technique is not supported: ${t.logicalLevelTechnique1}`)}return i?x3(n,i,0):n}function P4r(e,t,r,i){let n;switch(t.logicalLevelTechnique1){case va.DELTA:if(t.logicalLevelTechnique2===va.RLE){let a=t;n=htt(sne(e,a.runs,a.numRleValues))}else n=htt(e);break;case va.RLE:n=sne(e,t.runs,t.numRleValues);break;case va.MORTON:Mae(e),n=e;break;case va.COMPONENTWISE_DELTA:n=r&&!i?s4r(e,r.scale,r.min,r.max):o4r(e);break;case va.NONE:n=e;break;default:throw Error(`The specified Logical level technique is not supported: ${t.logicalLevelTechnique1}`)}return i?x3(n,i,0):n}function wat(e,t,r){let i;switch(t.logicalLevelTechnique1){case va.DELTA:if(t.logicalLevelTechnique2===va.RLE){let n=t;if(!r)return a4r(e,n.runs,n.numRleValues);e=lne(e,n.runs,n.numRleValues),i=ftt(e)}else i=ftt(e);break;case va.RLE:i=K5r(e,t.runs,t.numRleValues);break;case va.NONE:i=W5r(e);break;default:throw Error(`The specified Logical level technique is not supported: ${t.logicalLevelTechnique1}`)}return r?x3(i,r,BigInt(0)):i}function Tat(e,t,r){let i;switch(t.logicalLevelTechnique1){case va.DELTA:if(t.logicalLevelTechnique2===va.RLE){let n=t;i=dtt(lne(e,n.runs,n.numRleValues))}else i=dtt(e);break;case va.RLE:i=lne(e,t.runs,t.numRleValues);break;case va.NONE:i=e;break;default:throw Error(`The specified Logical level technique is not supported: ${t.logicalLevelTechnique1}`)}return r?x3(i,r,BigInt(0)):i}function I4r(e,t,r){switch(t.logicalLevelTechnique1){case va.DELTA:if(t.logicalLevelTechnique2===va.RLE){let i=t;e=dat(e,i.runs,i.numRleValues)}return X5r(e),e;case va.RLE:return B4r(e,t,r);case va.NONE:return r&&Y5r(e),e;default:throw Error(`The specified Logical level technique is not supported: ${t.logicalLevelTechnique1}`)}}function R4r(e,t){if(t.logicalLevelTechnique1===va.DELTA&&t.logicalLevelTechnique2===va.NONE)return t4r(e);if(t.logicalLevelTechnique1===va.RLE&&t.logicalLevelTechnique2===va.NONE){let r=t;return i4r(e,r.runs,r.numRleValues)}if(t.logicalLevelTechnique1===va.NONE&&t.logicalLevelTechnique2===va.NONE){Q5r(e);let r=new Uint32Array(t.numValues+1);return r[0]=0,r.set(e,1),r}if(t.logicalLevelTechnique1===va.DELTA&&t.logicalLevelTechnique2===va.RLE){let r=t,i=r4r(e,r.runs,r.numRleValues);return Mae(i),new Uint32Array(i)}throw Error("Only delta encoding is supported for transforming length to offset streams yet.")}function Iq(e,t,r,i,n="int32"){let a=e.logicalLevelTechnique1;if(a===va.RLE)return e.runs===1?Bs.CONST:Bs.FLAT;if(a!==va.DELTA||e.logicalLevelTechnique2!==va.RLE)return e.numValues===1?Bs.CONST:Bs.FLAT;let o=t instanceof Fv?t.size():t,s=e;if(s.numRleValues!==o)return Bs.FLAT;if(s.runs===1)return Bs.SEQUENCE;if(s.runs!==2)return e.numValues===1?Bs.CONST:Bs.FLAT;let l=i.get();if(e.physicalLevelTechnique===H0.VARINT)return z4r(r,i,n)?Bs.SEQUENCE:e.numValues===1?Bs.CONST:Bs.FLAT;let u=i.get(),c=new Int32Array(r.buffer,r.byteOffset+u,4);return i.set(l),c[2]===2&&c[3]===2?Bs.SEQUENCE:e.numValues===1?Bs.CONST:Bs.FLAT}function z4r(e,t,r){let i=new cat(t.get());if(r==="int64"){let a=Aae(e,i,4);return a[2]===BigInt(2)&&a[3]===BigInt(2)}let n=pf(e,i,4);return n[2]===2&&n[3]===2}function B4r(e,t,r){return r?J5r(e,t.runs,t.numRleValues):dat(e,t.runs,t.numRleValues)}function Cae(e,t,r){return{x:vtt(e,t)-r,y:vtt(e>>1,t)-r}}function vtt(e,t){let r=0;for(let i=0;i>i;return r}function q4r(e){let t=Array(e.numGeometries),r=1,i=1,n=1,a=0,o=0,s=0,l=e.mortonSettings,u=e.topologyVector,c=u.geometryOffsets,f=u.partOffsets,h=u.ringOffsets,p=e.vertexOffsets,d=!p||p.length===0,v=e.containsPolygonGeometry(),m=e.vertexBuffer;for(let g=0;g[S]),r+=_,i+=_}break;case qc.LINESTRING:{let _;v?(_=h[i]-h[i-1],i++):_=f[r]-f[r-1],r++;let b;d?(b=_T(m,o,_,!1),o+=_*2):(b=J_(e.vertexBufferType,m,p,s,_,!1,l),s+=_),t[a++]=[b],c&&n++}break;case qc.POLYGON:{let _=f[r]-f[r-1];r++;let b=Array(_-1),S,x=h[i]-h[i-1];if(i++,d){S=_T(m,o,x,!0),o+=x*2;for(let A=0;Ar?t[a++]:1);return i}function xtt(e,t,r,i){let n=new Uint32Array(t[t.length-1]+1),a=0;n[0]=a;let o=1,s=0;for(let l=0;l0;)n[a++]=e[u++]}}return n}function Pat(e,t,r,i,n){var p,d;let a,o,s,l,u,c=n,f,h;for(let v=0;v1&&!p.nullable||d===1&&p.nullable)throw Error(`The number of streams for the child field ${p.name} does not match its nullability. nullibilty: ${p.nullable}, numStreams: ${d}`);let m;if(p.nullable){let w=Zs(e,t);m=new Fv(t6(e,w.numValues,w.byteLength,t),w.numValues)}let g=hf(e,t,Zs(e,t),void 0,m);if(s){if(!o)throw Error(`Incomplete shared FSST dictionary for column "${v}"`);c[h++]=new Lat(v,g,n,a,o,s,m,f)}else c[h++]=new RT(v,g,n,a,m)}return c}function iTr(e,t,r,i){let n=nTr(r);if(i===0)return n.map(c=>new _tt(c,[]));let a=aTr(e,t,i),o=(a.presentStream?a.presentCount:a.lengthStream.length)/n.length,s=[],l=0,u=0;for(let c=0;c{var i;return e.name+((i=r.name)!=null?i:"")})}function aTr(e,t,r){let i=e[t.get()];t.add(1);let n=hf(e,t,Zs(e,t)),a=r-1,o=[];i&og.STRING&&(a-=oTr(e,t,o)),a-=sTr(e,t,i,o),a-=lTr(e,t,i,o);let s,l=0;if(i&og.PRESENCE){let c=uTr(e,t);s=c.value,l=c.count,a--}let u=new Uint32Array;if(a>0&&(u=hf(e,t,Zs(e,t)),a--),a!==0)throw Error(`Unexpected number of remaining streams while decoding map column: ${a}`);return{lengthStream:n,dictionary:o,presentStream:s,presentCount:l,flattenedValues:u}}function oTr(e,t,r){let i=e[t.get()];t.add(1);let n=Pat("",e,t,i);if(n)for(let a=0;aa.length)throw Error("Merged map counts underflow while decoding child streams");let p=Array(r),d=i,v=n;for(let w=0;wo.length)throw Error("Map value stream underflow while decoding feature payload");let b=fTr(o,v,_,l);p[w]=b.value,v=b.nextIndex}let m=0;for(let w=i;w=r)throw Error("Unexpected end of map value stream");let n=e[t];if(n===ox.FALSE)return{value:!1,nextIndex:t+1};if(n===ox.TRUE)return{value:!0,nextIndex:t+1};if(n===ox.START_MAP){let a=wtt(e,t,r);return{value:Iat(e,t+2,a,i).value,nextIndex:a}}if(n===ox.START_LIST){let a=wtt(e,t,r),o=[],s=t+2;for(;s=r)throw Error("Missing length for nested map/list payload");let i=e[t+1];if(i<2)throw Error(`Invalid nested payload length: ${i}`);let n=t+i;if(n>r)throw Error("Nested payload exceeds containing payload bounds");return n}function Rat(e,t){let r=e-ox.COUNT;if(r<0||r>=t.length)throw Error(`Scalar dictionary index out of range: ${e}`);return t[r]}function CT(e,t){for(let r of t)e.push(r)}function hTr(e,t,r,i,n,a){var o;return r.type==="scalarType"?a&&!a.has(r.name)?(vat(i,e,t),null):dTr(i,e,t,n,r.scalarType,r):((o=r.complexType)==null?void 0:o.physicalType)===lx.MAP?iTr(e,t,r,i):i===0?null:rTr(e,t,r,a)}function dTr(e,t,r,i,n,a){var l;let o;if(e===0)return null;if(a.nullable){let u=Zs(t,r),c=u.numValues,f=r.get(),h=t6(t,c,u.byteLength,r);r.set(f+u.byteLength),o=new Fv(h,u.numValues)}let s=o!=null?o:i;switch(n.physicalType){case xo.UINT_32:case xo.INT_32:return yTr(t,r,a,n,s);case xo.STRING:{let u=a.nullable?e-1:e;return(l=Pat(a.name,t,r,u,o))!=null?l:null}case xo.BOOLEAN:return pTr(t,r,a,i,s);case xo.UINT_64:case xo.INT_64:return mTr(t,r,a,s,n);case xo.FLOAT:return vTr(t,r,a,s);case xo.DOUBLE:return gTr(t,r,a,s);default:throw Error(`The specified data type for the field is currently not supported: ${n}`)}}function pTr(e,t,r,i,n){let a=Zs(e,t),o=a.numValues,s=t.get(),l=OC(n)?n:void 0,u=t6(e,o,a.byteLength,t,l);t.set(s+a.byteLength);let c=new Fv(u,o);return new X4r(r.name,c,n)}function vTr(e,t,r,i){let n=Zs(e,t),a=OC(i)?i:void 0,o=gat(e,t,n.numValues,a);return new Z4r(r.name,o,i)}function gTr(e,t,r,i){let n=Zs(e,t),a=OC(i)?i:void 0,o=mat(e,t,n.numValues,a);return new yae(r.name,o,i)}function mTr(e,t,r,i,n){let a=Zs(e,t),o=Iq(a,i,e,t,"int64"),s=n.physicalType===xo.INT_64;if(o===Bs.FLAT){let u=OC(i)?i:void 0,c=s?bat(e,t,a,u):kae(e,t,a,u);return new Aat(r.name,c,i)}if(o===Bs.SEQUENCE){let u=xat(e,t,a);return new Mat(r.name,u[0],u[1],a.numRleValues,s)}let l=s?F4r(e,t,a):_at(e,t,a);return new Fat(r.name,l,i,s)}function yTr(e,t,r,i,n){let a=Zs(e,t),o=Iq(a,n,e,t),s=i.physicalType===xo.INT_32;if(o===Bs.FLAT){let u=OC(n)?n:void 0,c=s?NB(e,t,a,void 0,u):hf(e,t,a,void 0,u);return new mae(r.name,c,n)}if(o===Bs.SEQUENCE){let u=yat(e,t,a);return new xae(r.name,u[0],u[1],a.numRleValues,s)}let l=s?k4r(e,t,a):Eae(e,t,a);return new bae(r.name,l,n,s)}function OC(e){return e instanceof Fv}function zat(e){switch(e){case hc.ID:case hc.ID|hc.ID_NULLABLE:case hc.ID|hc.ID_LONG:case hc.ID|hc.ID_LONG|hc.ID_NULLABLE:return{nullable:(e&hc.ID_NULLABLE)!==0,columnScope:Ok.FEATURE,type:"scalarType",scalarType:{longID:(e&hc.ID_LONG)!==0,type:"logicalType",logicalType:uat.ID}};case hc.GEOMETRY:return{nullable:!1,columnScope:Ok.FEATURE,type:"complexType",complexType:{type:"physicalType",physicalType:lx.GEOMETRY,children:[]}};case hc.STRUCT:return{nullable:!1,columnScope:Ok.FEATURE,type:"complexType",complexType:{type:"physicalType",physicalType:lx.STRUCT,children:[]}};case hc.MAP:return{nullable:!0,columnScope:Ok.FEATURE,type:"complexType",complexType:{type:"physicalType",physicalType:lx.MAP,children:[]}};default:return TTr(e)}}function xTr(e){return e>=hc.SCALAR_BASE}function Bat(e){return e===hc.STRUCT||e===hc.MAP}function bTr(e){if(e.type==="scalarType"){let t=e.scalarType;if(t.type==="physicalType")switch(t.physicalType){case xo.BOOLEAN:case xo.INT_8:case xo.UINT_8:case xo.INT_32:case xo.UINT_32:case xo.INT_64:case xo.UINT_64:case xo.FLOAT:case xo.DOUBLE:return!1;case xo.STRING:return!0;default:return!1}if(t.type==="logicalType")return!1}else if(e.type==="complexType"){let t=e.complexType;if(t.type==="physicalType")switch(t.physicalType){case lx.GEOMETRY:case lx.STRUCT:case lx.MAP:return!0;default:return!1}}return console.warn("Unexpected column type in hasStreamCount",e),!1}function _Tr(e){var t;return e.type==="scalarType"&&((t=e.scalarType)==null?void 0:t.type)==="logicalType"&&e.scalarType.logicalType===uat.ID}function wTr(e){var t;return e.type==="complexType"&&((t=e.complexType)==null?void 0:t.type)==="physicalType"&&e.complexType.physicalType===lx.GEOMETRY}function TTr(e){let t;switch(e){case 10:case 11:t=xo.BOOLEAN;break;case 12:case 13:t=xo.INT_8;break;case 14:case 15:t=xo.UINT_8;break;case 16:case 17:t=xo.INT_32;break;case 18:case 19:t=xo.UINT_32;break;case 20:case 21:t=xo.INT_64;break;case 22:case 23:t=xo.UINT_64;break;case 24:case 25:t=xo.FLOAT;break;case 26:case 27:t=xo.DOUBLE;break;case 28:case 29:t=xo.STRING;break;default:return null}return{nullable:!!(e&1),columnScope:Ok.FEATURE,type:"scalarType",scalarType:{longID:!1,type:"physicalType",physicalType:t}}}function Lae(e,t){let r=pf(e,t,1)[0];if(r===0)return"";let i=t.get(),n=i+r,a=e.subarray(i,n);return t.add(r),ATr.decode(a)}function MTr(e){let t=e.name,r=e.nullable;return e.type==="scalarType"?{type:"scalarField",scalarField:e.scalarType,name:t,nullable:r}:{type:"complexField",complexField:e.complexType,name:t,nullable:r}}function qat(e,t){let r=pf(e,t,1)[0]>>>0,i=r>=hc.SCALAR_BASE?zat(r):null;if(!i)throw Error(`Unsupported field type code ${r}. Supported: 10-29(scalars), 30(STRUCT), 31(MAP)`);let n=da(fn({},i),{name:Lae(e,t)});if(n.type==="complexType"&&Bat(r)){let a=n.complexType,o=pf(e,t,1)[0]>>>0;a.children=Array(o);for(let s=0;s>>0,i=zat(r);if(!i)throw Error(`Unsupported column type code ${r}. Supported: ${Ttt}`);let n;if(xTr(r))n=Lae(e,t);else if(r>>0,s=a.complexType;s.children=Array(o);for(let l=0;l>>0,a=pf(e,t,1)[0]>>>0;i.columns=Array(a);for(let o=0;o>>0,o=i.get()+a;if(o>e.length)throw Error(`Block overruns tile: ${o} > ${e.length}`);let s=pf(e,i,1)[0]>>>0;if(s!==1&&s!==2){i.set(o);continue}let[l,u]=ETr(e,i),c=l.featureTables[0],f=null,h=null,p=[],d=0;for(let m of c.columns){let g=m.name;if(_Tr(m)){let w=null;if(m.nullable){let b=Zs(e,i),S=i.get(),x=t6(e,b.numValues,b.byteLength,i);i.set(S+b.byteLength),w=new Fv(x,b.numValues)}let _=Zs(e,i);d=w?w.size():_.decompressedCount,f=CTr(e,m,i,g,_,w!=null?w:d,r)}else if(wTr(m)){let w=pf(e,i,1)[0];if(d===0){let _=i.get();d=Zs(e,i).decompressedCount,i.set(_)}t&&(t.scale=t.extent/u),h=$4r(e,w,i,d,t)}else{let w=bTr(m)?pf(e,i,1)[0]:1;if(w===0)continue;let _=hTr(e,i,m,w,d,void 0);if(_)if(Array.isArray(_))for(let b of _)p.push(b);else p.push(_)}}let v=new Qwr(c.name,h,f,p,u);n.push(v),i.set(o)}return n}function CTr(e,t,r,i,n,a,o=!1){var c;let s=(c=t.scalarType)!=null&&c.longID?xo.UINT_64:xo.UINT_32,l=typeof a=="number"?void 0:a,u=Iq(n,a,e,r,s===xo.UINT_64?"int64":"int32");if(s===xo.UINT_32)switch(u){case Bs.FLAT:return new mae(i,hf(e,r,n,void 0,l),a);case Bs.SEQUENCE:{let f=yat(e,r,n);return new xae(i,f[0],f[1],n.numRleValues,!1)}case Bs.CONST:return new bae(i,Eae(e,r,n),a,!1)}switch(u){case Bs.FLAT:return o?new yae(i,C4r(e,r,n,l),a):new Aat(i,kae(e,r,n,l),a);case Bs.SEQUENCE:{let f=xat(e,r,n);return new Mat(i,f[0],f[1],n.numRleValues,!1)}case Bs.CONST:return new Fat(i,_at(e,r,n),a,!1)}throw Error("Vector type not supported for id column.")}function ITr(e){return typeof e=="object"&&!!e&&"evaluate"in e}function Att(e,t,r,i,n){return QB(e,(a,o)=>{let s=t instanceof mq?t.get(o):null;return ITr(s)?s.evaluate(r,i,void 0,n):s})}function RTr(e,t){return t-e}var Tyr,Mtt,Ayr,Myr,Syr,Stt,une,Eyr,kyr,Ak,tB,Wu,GB,Lv,cg,hC,Ott,dne,zQe,Utt,qr,JB,Gyr,qQe,Ire,Ztt,Ktt,Pv,ert,trt,OQe,YT,a0,TB,zT,$yr,mC,yC,Ane,srt,o0,Mn,cu,lrt,_r,urt,ri,xC,ki,pa,za,Cv,rq,r3,ya,Xyr,iq,bC,nq,Yk,aq,_C,oq,Zyr,crt,frt,hrt,Qre,drt,Kyr,Jyr,r2r,n2r,Bc,aa,o2r,eie,Bm,fg,hg,op,ul,s2r,lg,ug,Gm,Ene,OT,l2r,brt,kne,sp,Ks,wrt,iB,Im,GQe,ET,Ert,Crt,d2r,p2r,v2r,g2r,m2r,y2r,Rrt,D2r,F2r,L2r,P2r,I2r,R2r,qrt,z2r,B2r,q2r,sg,Fne,$rt,YQe,Lne,Rne,sxr,zne,DT,ig,lxr,Krt,p3,qne,One,Qk,kB,ait,Axr,iet,net,Vxr,aet,Hxr,jxr,mh,Hne,fie,Rm,DB,Io,tC,hie,MC,oet,set,Xxr,ap,mq,Pi,kn,rC,Fit,yq,dc,cet,jre,Iv,fet,Zxr,Kxr,xq,Jxr,Qxr,SC,Tl,iC,FB,die,pie,vie,nC,gie,mie,yie,xie,bie,_ie,wie,Tie,Aie,LB,Mie,Sie,PB,Eie,kie,Cie,Die,Fie,Lit,Wne,Pit,Iit,Rit,zit,Bit,qit,Oit,Nit,Uit,Vit,Hm,Git,Hit,tbr,rbr,ibr,nbr,abr,bT,det,obr,sbr,lbr,pet,jit,ubr,$it,Rv,Lie,Wit,Pie,cbr,Js,fbr,hbr,dbr,pbr,IB,Yit,jm,Sn,Ni,xa,Gf,JT,$m,Yne,Xne,vbr,fp,Bk,Q_,Pm,Ev,rx,Zit,Kit,Jit,l3,zie,yet,xet,Zne,_et,Fbr,wet,Lbr,Pbr,rnt,Ibr,int,Tet,Rbr,zbr,Tq,Es,EC,snt,Bbr,Aet,qbr,Obr,lnt,Nbr,Met,Ubr,Vbr,Tu,zm,Gbr,cnt,Hbr,qie,jbr,aC,Oie,Uie,nu,zB,Vie,Gie,np,Sk,K_,Ek,kk,ng,a3,Aq,LT,PT,f_r,ynt,Det,y_r,Fet,x_r,b_r,xnt,__r,$ie,w_r,T_r,lp,bnt,kC,M_r,E_r,Hf,yn,wnt,Mo,mx,Wre,Snt,Pet,z_r,Iet,B_r,q_r,Ent,O_r,G_r,H_r,Xie,j_r,Zie,$_r,W_r,knt,zet,Cnt,Bet,Y_r,qet,X_r,Oet,Z_r,cB,Dnt,K_r,J_r,Q_r,e3r,Uet,Fnt,qB,s3r,l3r,u3r,Get,c3r,Pnt,Int,Fk,Lk,kT,D3r,F3r,lae,uae,I3r,R3r,z3r,ene,mri,Ket,Nnt,Cq,J3r,Gnt,Jet,ttt,IT,vB,Mwr,ST,Fq,hae,zwr,rne,ine,IC,ott,Owr,stt,Nwr,Xre,iat,dae,Uwr,ltt,Gwr,Hwr,nat,jwr,oat,$wr,Wwr,Ywr,sat,RC,zC,Gc,Zre,BC,Jwr,gae,y3,Pq,mae,yae,lat,xae,bae,Qwr,Ok,xo,lx,uat,cat,va,H0,_ae,ane,wae,one,A5r,ou,Nf,ag,ju,p4r,ptt,v4r,g4r,m4r,y4r,Bs,Fv,S4r,Aat,Mat,qc,gtt,fx,Sat,Eat,Cat,Dat,H4r,j4r,X4r,Z4r,Fat,Dae,btt,RT,Lat,_tt,og,ox,hc,ATr,Ttt,Jre,DTr,FTr,LTr,PTr,Oat,Nat=Ci(()=>{Tyr=Object.create,Mtt=Object.defineProperty,Ayr=Object.getOwnPropertyDescriptor,Myr=Object.getOwnPropertyNames,Syr=Object.getPrototypeOf,Stt=Object.prototype.hasOwnProperty,une=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),Eyr=(e,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(var n=Myr(t),a=0,o=n.length,s;at[l]).bind(null,s),enumerable:!(i=Ayr(t,s))||i.enumerable});return e},kyr=(e,t,r)=>(r=e==null?{}:Tyr(Syr(e)),Eyr(t||!e||!e.__esModule||!Stt.call(e,"default")?Mtt(r,"default",{value:e,enumerable:!0}):r,e));rr.prototype={clone(){return new rr(this.x,this.y)},add(e){return this.clone()._add(e)},sub(e){return this.clone()._sub(e)},multByPoint(e){return this.clone()._multByPoint(e)},divByPoint(e){return this.clone()._divByPoint(e)},mult(e){return this.clone()._mult(e)},div(e){return this.clone()._div(e)},rotate(e){return this.clone()._rotate(e)},rotateAround(e,t){return this.clone()._rotateAround(e,t)},matMult(e){return this.clone()._matMult(e)},unit(){return this.clone()._unit()},perp(){return this.clone()._perp()},round(){return this.clone()._round()},mag(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals(e){return this.x===e.x&&this.y===e.y},dist(e){return Math.sqrt(this.distSqr(e))},distSqr(e){let t=e.x-this.x,r=e.y-this.y;return t*t+r*r},angle(){return Math.atan2(this.y,this.x)},angleTo(e){return Math.atan2(this.y-e.y,this.x-e.x)},angleWith(e){return this.angleWithSep(e.x,e.y)},angleWithSep(e,t){return Math.atan2(this.x*t-this.y*e,this.x*e+this.y*t)},_matMult(e){let t=e[0]*this.x+e[1]*this.y,r=e[2]*this.x+e[3]*this.y;return this.x=t,this.y=r,this},_add(e){return this.x+=e.x,this.y+=e.y,this},_sub(e){return this.x-=e.x,this.y-=e.y,this},_mult(e){return this.x*=e,this.y*=e,this},_div(e){return this.x/=e,this.y/=e,this},_multByPoint(e){return this.x*=e.x,this.y*=e.y,this},_divByPoint(e){return this.x/=e.x,this.y/=e.y,this},_unit(){return this._div(this.mag()),this},_perp(){let e=this.y;return this.y=this.x,this.x=-e,this},_rotate(e){let t=Math.cos(e),r=Math.sin(e),i=t*this.x-r*this.y,n=r*this.x+t*this.y;return this.x=i,this.y=n,this},_rotateAround(e,t){let r=Math.cos(e),i=Math.sin(e),n=t.x+r*(this.x-t.x)-i*(this.y-t.y),a=t.y+i*(this.x-t.x)+r*(this.y-t.y);return this.x=n,this.y=a,this},_round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},constructor:rr},rr.convert=function(e){if(e instanceof rr)return e;if(Array.isArray(e))return new rr(+e[0],+e[1]);if(e.x!==void 0&&e.y!==void 0)return new rr(+e.x,+e.y);throw Error("Expected [x, y] or {x, y} point format")};Wu=typeof Float32Array<"u"?Float32Array:Array;GB=Lyr;Lv=Pyr;cg=jB,hC=cp;(function(){var e=Ltt();return function(t,r,i,n,a,o){var s,l;for(r||(r=3),i||(i=0),l=n?Math.min(n*r+i,t.length):t.length,s=i;s.999999?(i[0]=0,i[1]=0,i[2]=0,i[3]=1,i):(gh(e,n,a),i[0]=e[0],i[1]=e[1],i[2]=e[2],i[3]=1+o,zQe(i,i))}})(),(function(){var e=RQe(),t=RQe();return function(r,i,n,a,o,s){return Nk(e,i,o,s),Nk(t,n,a,s),Nk(r,e,t,2*s*(1-s)),r}})(),(function(){var e=fne();return function(t,r,i,n){return e[0]=i[0],e[3]=i[1],e[6]=i[2],e[1]=n[0],e[4]=n[1],e[7]=n[2],e[2]=-r[0],e[5]=-r[1],e[8]=-r[2],zQe(t,Oyr(t,e))}})();Utt=Nyr;(function(){var e=XB();return function(t,r,i,n,a,o){var s,l;for(r||(r=2),i||(i=0),l=n?Math.min(n*r+i,t.length):t.length,s=i;sZi(null,null,function*(){let r=new Blob([new Uint8Array(e)],{type:"image/png"});try{return createImageBitmap(r,t)}catch(i){throw Error(`Could not load image because of ${Oc(i).message}. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported.`)}}),Ktt=e=>new Promise((t,r)=>{let i=new Image;i.onload=()=>{t(i),URL.revokeObjectURL(i.src),i.onload=null,window.requestAnimationFrame(()=>i.src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=")},i.onerror=()=>r(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."));let n=new Blob([new Uint8Array(e)],{type:"image/png"});i.src=URL.createObjectURL(n)});Pv=85.051129,ert={touchstart:!0,touchmove:!0,touchmoveWindow:!0,touchend:!0,touchcancel:!0},trt={dblclick:!0,click:!0,mouseover:!0,mouseout:!0,mousedown:!0,mousemove:!0,mousemoveWindow:!0,mouseup:!0,mouseupWindow:!0,contextmenu:!0,wheel:!0};OQe="AbortError",YT=class extends Error{constructor(e=OQe){super(e instanceof Error?e.message:e),this.name=OQe,e instanceof Error&&e.stack&&(this.stack=e.stack)}};a0={MAX_PARALLEL_IMAGE_REQUESTS:16,MAX_PARALLEL_IMAGE_REQUESTS_PER_FRAME:8,MAX_TILE_CACHE_ZOOM_LEVELS:5,REGISTERED_PROTOCOLS:{},WORKER_URL:""};TB="global-dispatcher",zT=class extends Error{constructor(e,t,r,i){super(`AJAXError: ${t} (${e}): ${r}`),this.status=e,this.statusText=t,this.url=r,this.body=i}};$yr=e=>{var t;return e.startsWith("file:")||((t=tq())==null?void 0:t.startsWith("file:"))&&!/^\w+:/.test(e)};mC=function(e,t){return Zi(this,null,function*(){var r,i;if(e.url.includes("://")&&!/^https?:|^file:/.test(e.url)){let n=Tne(e.url);if(n){let a=yield n(e,t);return!a.data&&e.type==="arrayBuffer"?dn(a,{data:new ArrayBuffer(0)}):a}if(o3(self)&&((r=self.worker)!=null&&r.actor))return self.worker.actor.sendAsync({type:"GR",data:e,targetMapId:TB},t)}if(!$yr(e.url)){if(fetch&&Request&&AbortController&&Object.hasOwn(Request.prototype,"signal"))return Wyr(e,t);if(o3(self)&&((i=self.worker)!=null&&i.actor))return self.worker.actor.sendAsync({type:"GR",data:e,mustQueue:!0,targetMapId:TB},t)}return Yyr(e,t)})},yC=(e,t)=>mC(dn(e,{type:"json"}),t),Ane=(e,t)=>mC(dn(e,{type:"arrayBuffer"}),t);srt=e=>{let t=window.document.createElement("video");return t.muted=!0,new Promise(r=>{t.onloadstart=()=>{r(t)};for(let i of e){let n=window.document.createElement("source");Mne(i)||(t.crossOrigin="Anonymous"),n.src=i,t.appendChild(n)}})};o0=class{constructor(e,t={}){dn(this,t),this.type=e}},Mn=class extends o0{constructor(e,t={}){super("error",dn({error:e},t))}},cu=class{on(e,t){return this._listeners||(this._listeners={}),NQe(e,t,this._listeners),{unsubscribe:()=>{this.off(e,t)}}}off(e,t){return Rre(e,t,this._listeners),Rre(e,t,this._oneTimeListeners),this}once(e,t){return t?(this._oneTimeListeners||(this._oneTimeListeners={}),NQe(e,t,this._oneTimeListeners),this):new Promise(r=>this.once(e,r))}fire(e,t){var n,a,o,s,l,u;let r=typeof e=="string"?new o0(e,t||{}):e,i=r.type;if(this.listens(i)){r.target=this;let c=(o=(a=(n=this._listeners)==null?void 0:n[i])==null?void 0:a.slice())!=null?o:[];for(let p of c)p.call(this,r);let f=(u=(l=(s=this._oneTimeListeners)==null?void 0:s[i])==null?void 0:l.slice())!=null?u:[];for(let p of f)Rre(i,p,this._oneTimeListeners),p.call(this,r);let h=this._eventedParent;h&&(dn(r,typeof this._eventedParentData=="function"?this._eventedParentData():this._eventedParentData),h.fire(r))}else r instanceof Mn&&console.error(r.error);return this}listens(e){var t,r,i,n,a;return!!((r=(t=this._listeners)==null?void 0:t[e])!=null&&r.length||(n=(i=this._oneTimeListeners)==null?void 0:i[e])!=null&&n.length||(a=this._eventedParent)!=null&&a.listens(e))}setEventedParent(e,t){return this._eventedParent=e,this._eventedParentData=t,this}},lrt={$version:8,$root:{version:{required:!0,type:"enum",values:[8]},name:{type:"string"},metadata:{type:"*"},center:{type:"array",value:"number",length:2},centerAltitude:{type:"number"},zoom:{type:"number"},bearing:{type:"number",default:0,period:360,units:"degrees"},pitch:{type:"number",default:0,units:"degrees"},roll:{type:"number",default:0,units:"degrees"},state:{type:"state",default:{}},light:{type:"light"},sky:{type:"sky"},projection:{type:"projection"},terrain:{type:"terrain"},sources:{required:!0,type:"sources"},sprite:{type:"sprite"},glyphs:{type:"string"},"font-faces":{type:"fontFaces"},transition:{type:"transition"},layers:{required:!0,type:"array",value:"layer"}},sources:{"*":{type:"source"}},source:["source_vector","source_raster","source_raster_dem","source_geojson","source_video","source_image"],source_vector:{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},encoding:{type:"enum",values:{mvt:{},mlt:{}},default:"mvt"},"*":{type:"*"}},source_raster:{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:"*"}},source_raster_dem:{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:{},custom:{}},default:"mapbox"},redFactor:{type:"number",default:1},blueFactor:{type:"number",default:1},greenFactor:{type:"number",default:1},baseShift:{type:"number",default:0},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_geojson:{type:{required:!0,type:"enum",values:{geojson:{}}},data:{required:!0,type:"*"},maxzoom:{type:"number",default:18},attribution:{type:"string"},buffer:{type:"number",default:128,maximum:512,minimum:0},filter:{type:"filter"},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"}},source_video:{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"}}},source_image:{type:{required:!0,type:"enum",values:{image:{}}},url:{type:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},layer:{id:{type:"string",required:!0},type:{type:"enum",values:{fill:{},line:{},symbol:{},circle:{},heatmap:{},"fill-extrusion":{},raster:{},hillshade:{},"color-relief":{},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"}},layout:["layout_fill","layout_line","layout_circle","layout_heatmap","layout_fill-extrusion","layout_symbol","layout_raster","layout_hillshade","layout_color-relief","layout_background"],layout_background:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible",expression:{interpolated:!1,parameters:["global-state"]},"property-type":"data-constant"}},layout_fill:{"fill-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible",expression:{interpolated:!1,parameters:["global-state"]},"property-type":"data-constant"}},layout_circle:{"circle-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible",expression:{interpolated:!1,parameters:["global-state"]},"property-type":"data-constant"}},layout_heatmap:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible",expression:{interpolated:!1,parameters:["global-state"]},"property-type":"data-constant"}},"layout_fill-extrusion":{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible",expression:{interpolated:!1,parameters:["global-state"]},"property-type":"data-constant"},"fill-extrusion-rounded-corner-distance":{type:"number",default:0,minimum:0,units:"meters","property-type":"constant"}},layout_line:{"line-cap":{type:"enum",values:{butt:{},round:{},square:{}},default:"butt",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"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","feature"]},"property-type":"data-driven"},"line-round-limit":{type:"number",default:1.05,requires:[{"line-join":"round"}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible",expression:{interpolated:!1,parameters:["global-state"]},"property-type":"data-constant"}},layout_symbol:{"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",{"!":"icon-overlap"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-overlap":{type:"enum",values:{never:{},always:{},cooperative:{}},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","feature"]},"property-type":"data-driven"},"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:"padding",default:[2],units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"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:{},"viewport-glyph":{},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-variable-anchor-offset":{type:"variableAnchorOffsetCollection",requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"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",{"!":"text-overlap"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-overlap":{type:"enum",values:{never:{},always:{},cooperative:{}},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"},"symbol-height-offset":{type:"number",default:0,units:"meters",requires:[{"symbol-placement":["point"]}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"symbol-height-anchor":{type:"enum",values:{ground:{},absolute:{}},default:"ground",requires:["symbol-height-offset"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible",expression:{interpolated:!1,parameters:["global-state"]},"property-type":"data-constant"}},layout_raster:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible",expression:{interpolated:!1,parameters:["global-state"]},"property-type":"data-constant"}},layout_hillshade:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible",expression:{interpolated:!1,parameters:["global-state"]},"property-type":"data-constant"}},"layout_color-relief":{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible",expression:{interpolated:!1,parameters:["global-state"]},"property-type":"data-constant"}},filter:{type:"boolean",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},filter_operator:{type:"enum",values:{"==":{},"!=":{},">":{},">=":{},"<":{},"<=":{},in:{},"!in":{},all:{},any:{},none:{},has:{},"!has":{}}},geometry_type:{type:"enum",values:{Point:{},LineString:{},Polygon:{}}},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:{type:"array",minimum:0,maximum:24,value:["number","color"],length:2},expression:{type:"array",value:"expression_name",minimum:1},light:{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}},sky:{"sky-color":{type:"color","property-type":"data-constant",default:"#88C6FC",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"horizon-color":{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"fog-color":{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"fog-ground-blend":{type:"number","property-type":"data-constant",default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"horizon-fog-blend":{type:"number","property-type":"data-constant",default:.8,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"sky-horizon-blend":{type:"number","property-type":"data-constant",default:.8,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"atmosphere-blend":{type:"number","property-type":"data-constant",default:.8,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0}},terrain:{source:{type:"string",required:!0},exaggeration:{type:"number",minimum:0,default:1}},projection:{type:{type:"projectionDefinition",default:"mercator","property-type":"data-constant",transition:!1,expression:{interpolated:!0,parameters:["zoom"]}}},paint:["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_symbol","paint_raster","paint_hillshade","paint_color-relief","paint_background"],paint_fill:{"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-layer-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","global-state"]},"property-type":"data-constant"},"fill-color":{type:"color",default:"#000000",transition:!0,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"}},"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,units:"meters",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{type:"number",default: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:{"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-layer-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","global-state"]},"property-type":"data-constant"},"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","feature"]},"property-type":"cross-faded-data-driven"},"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"}},paint_circle:{"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"}},paint_heatmap:{"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"}},paint_symbol:{"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"}},paint_raster:{"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"},resampling:{type:"enum",values:{linear:{},nearest:{}},default:"linear",expression:{interpolated:!1,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"}},paint_hillshade:{"hillshade-illumination-direction":{type:"numberArray",default:335,minimum:0,maximum:359,transition:!1,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-illumination-altitude":{type:"numberArray",default:45,minimum:0,maximum:90,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:"colorArray",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-highlight-color":{type:"colorArray",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"},"hillshade-method":{type:"enum",values:{standard:{},basic:{},combined:{},igor:{},multidirectional:{}},default:"standard",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},resampling:{type:"enum",values:{linear:{},nearest:{}},default:"linear",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},"paint_color-relief":{"color-relief-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"color-relief-color":{type:"color",transition:!1,expression:{interpolated:!0,parameters:["elevation"]},"property-type":"color-ramp"},resampling:{type:"enum",values:{linear:{},nearest:{}},default:"linear",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_background:{"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"}},transition:{duration:{type:"number",default:300,minimum:0,units:"milliseconds"},delay:{type:"number",default:0,minimum:0,units:"milliseconds"}},"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:{"*":{type:"string"}},interpolation:{type:"array",value:"interpolation_name",minimum:1},interpolation_name:{type:"enum",values:{linear:{syntax:{overloads:[{parameters:[],"output-type":"interpolation"}],parameters:[]}},exponential:{syntax:{overloads:[{parameters:["base"],"output-type":"interpolation"}],parameters:[{name:"base",type:"number literal"}]}},"cubic-bezier":{syntax:{overloads:[{parameters:["x1","y1","x2","y2"],"output-type":"interpolation"}],parameters:[{name:"x1",type:"number literal"},{name:"y1",type:"number literal"},{name:"x2",type:"number literal"},{name:"y2",type:"number literal"}]}}}}},_r=lrt,urt=["type","source","source-layer","minzoom","maxzoom","filter","layout"],ri=class{constructor(e,t,r,i,n="error"){this.message=(e?`${e}: `:"")+r,i&&(this.identifier=i),this.severity=n,t!=null&&t.__line__&&(this.line=t.__line__)}},xC={kind:"null"},ki={kind:"number"},pa={kind:"string"},za={kind:"boolean"},Cv={kind:"color"},rq={kind:"projectionDefinition"},r3={kind:"object"},ya={kind:"value"},Xyr={kind:"error"},iq={kind:"collator"},bC={kind:"formatted"},nq={kind:"padding"},Yk={kind:"colorArray"},aq={kind:"numberArray"},_C={kind:"resolvedImage"},oq={kind:"variableAnchorOffsetCollection"};Zyr=[xC,ki,pa,za,Cv,rq,bC,r3,Of(ya),nq,aq,Yk,_C,oq];crt=.96422,frt=.82521,hrt=4/29,Qre=6/29,drt=3*Qre*Qre,Kyr=Math.PI/180,Jyr=180/Math.PI;r2r=Object.hasOwn||function(e,t){return Object.prototype.hasOwnProperty.call(e,t)};n2r={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]};aa=(Bc=class{constructor(t,r,i,n=1,a=!0){this.r=t,this.g=r,this.b=i,this.a=n,a||(this.r*=n,this.g*=n,this.b*=n,n||this.overwriteGetter("rgb",[t,r,i,n]))}static parse(t){if(t instanceof Bc)return t;if(typeof t!="string")return;let r=i2r(t);if(r)return new Bc(...r,!1)}get rgb(){let{r:t,g:r,b:i,a:n}=this,a=n||1/0;return this.overwriteGetter("rgb",[t/a,r/a,i/a,n])}get hcl(){return this.overwriteGetter("hcl",Qyr(this.rgb))}get lab(){return this.overwriteGetter("lab",vrt(this.rgb))}overwriteGetter(t,r){return Object.defineProperty(this,t,{value:r}),r}toString(){let[t,r,i,n]=this.rgb;return`rgba(${[t,r,i].map(a=>Math.round(a*255)).join(",")},${n})`}static interpolate(t,r,i,n="rgb"){switch(n){case"rgb":{let[a,o,s,l]=BT(t.rgb,r.rgb,i);return new Bc(a,o,s,l,!1)}case"hcl":{let[a,o,s,l]=t.hcl,[u,c,f,h]=r.hcl,p,d;if(!isNaN(a)&&!isNaN(u)){let _=u-a;u>a&&_>180?_-=360:u180&&(_+=360),p=a+i*_}else isNaN(a)?isNaN(u)?p=NaN:(p=u,(s===1||s===0)&&(d=c)):(p=a,(f===1||f===0)&&(d=o));let[v,m,g,w]=e2r([p,d!=null?d:sx(o,c,i),sx(s,f,i),sx(l,h,i)]);return new Bc(v,m,g,w,!1)}case"lab":{let[a,o,s,l]=grt(BT(t.lab,r.lab,i));return new Bc(a,o,s,l,!1)}}}},Bc.black=new Bc(0,0,0,1),Bc.white=new Bc(1,1,1,1),Bc.transparent=new Bc(0,0,0,0),Bc.red=new Bc(1,0,0,1),Bc),o2r=["bottom","center","top"],eie=class{constructor(e,t,r,i,n,a){this.text=e,this.image=t,this.scale=r,this.fontStack=i,this.textColor=n,this.verticalAlign=a}},Bm=class mB{constructor(t){this.sections=t}static fromString(t){return new mB([new eie(t,null,null,null,null,null)])}isEmpty(){return this.sections.length===0||!this.sections.some(t=>t.text.length!==0||t.image&&t.image.name.length!==0)}static factory(t){return t instanceof mB?t:mB.fromString(t)}toString(){return this.sections.length===0?"":this.sections.map(t=>t.text).join("")}},fg=class Pk{constructor(t){this.values=t.slice()}static parse(t){if(t instanceof Pk)return t;if(typeof t=="number")return new Pk([t,t,t,t]);if(Array.isArray(t)&&!(t.length<1||t.length>4)){for(let r of t)if(typeof r!="number")return;switch(t.length){case 1:t=[t[0],t[0],t[0],t[0]];break;case 2:t=[t[0],t[1],t[0],t[1]];break;case 3:t=[t[0],t[1],t[2],t[1]]}return new Pk(t)}}toString(){return JSON.stringify(this.values)}static interpolate(t,r,i){return new Pk(BT(t.values,r.values,i))}},hg=class Ik{constructor(t){this.values=t.slice()}static parse(t){if(t instanceof Ik)return t;if(typeof t=="number")return new Ik([t]);if(Array.isArray(t)){for(let r of t)if(typeof r!="number")return;return new Ik(t)}}toString(){return JSON.stringify(this.values)}static interpolate(t,r,i){return new Ik(BT(t.values,r.values,i))}},op=class Rk{constructor(t){this.values=t.slice()}static parse(t){if(t instanceof Rk)return t;if(typeof t=="string"){let i=aa.parse(t);return i?new Rk([i]):void 0}if(!Array.isArray(t))return;let r=[];for(let i of t){if(typeof i!="string")return;let n=aa.parse(i);if(!n)return;r.push(n)}return new Rk(r)}toString(){return JSON.stringify(this.values)}static interpolate(t,r,i,n="rgb"){let a=[];if(t.values.length!=r.values.length)throw Error(`colorArray: Arrays have mismatched length (${t.values.length} vs. ${r.values.length}), cannot interpolate.`);for(let o=0;o=s)return r.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',u);let f=r.parse(l,c,a);if(!f)return null;a||(a=f.type),n.push([s,f])}return new _rt(a,i,n,r.key)}evaluate(t){let r=this.labels,i=this.outputs;if(r.length===1)return i[0].evaluate(t);let n=this.input.evaluate(t);if(n<=r[0])return i[0].evaluate(t);let a=r.length;return n>=r[a-1]?i[a-1].evaluate(t):i[sq(r,n,this.key)].evaluate(t)}eachChild(t){t(this.input);for(let r of this.outputs)t(r)}outputDefined(){return this.outputs.every(t=>t.outputDefined())}};sp=class tie{constructor(t,r,i,n,a,o){this.type=t,this.operator=r,this.interpolation=i,this.input=n,this.key=o,this.labels=[],this.outputs=[];for(let[s,l]of a)this.labels.push(s),this.outputs.push(l)}static interpolationFactor(t,r,i,n){let a=0;if(t.name==="exponential")a=Nre(r,t.base,i,n);else if(t.name==="linear")a=Nre(r,1,i,n);else if(t.name==="cubic-bezier"){let o=t.controlPoints;a=u2r(o[0],o[1],o[2],o[3])(Nre(r,1,i,n))}return a}static parse(t,r){let[i,n,a,...o]=t;if(!Array.isArray(n)||n.length===0)return r.error("Expected an interpolation type expression.",1);if(n[0]==="linear")n={name:"linear"};else if(n[0]==="exponential"){let u=n[1];if(typeof u!="number")return r.error("Exponential interpolation requires a numeric base.",1,1);n={name:"exponential",base:u}}else if(n[0]==="cubic-bezier"){let u=n.slice(1);if(u.length!==4||u.some(c=>typeof c!="number"||c<0||c>1))return r.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);n={name:"cubic-bezier",controlPoints:u}}else return r.error(`Unknown interpolation type ${String(n[0])}`,1,0);if(t.length-1<4)return r.error(`Expected at least 4 arguments, but found only ${t.length-1}.`);if((t.length-1)%2!=0)return r.error("Expected an even number of arguments.");if(a=r.parse(a,2,ki),!a)return null;let s=[],l=null;(i==="interpolate-hcl"||i==="interpolate-lab")&&r.expectedType!=Yk?l=Cv:r.expectedType&&r.expectedType.kind!=="value"&&(l=r.expectedType);for(let u=0;u=c)return r.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',h);let d=r.parse(f,p,l);if(!d)return null;l||(l=d.type),s.push([c,d])}return!ex(l,ki)&&!ex(l,rq)&&!ex(l,Cv)&&!ex(l,nq)&&!ex(l,aq)&&!ex(l,Yk)&&!ex(l,oq)&&!ex(l,Of(ki))?r.error(`Type ${wl(l)} is not interpolatable.`):new tie(l,i,n,a,s,r.key)}evaluate(t){let r=this.labels,i=this.outputs;if(r.length===1)return i[0].evaluate(t);let n=this.input.evaluate(t);if(n<=r[0])return i[0].evaluate(t);let a=r.length;if(n>=r[a-1])return i[a-1].evaluate(t);let o=sq(r,n,this.key),s=r[o],l=r[o+1],u=tie.interpolationFactor(this.interpolation,n,s,l),c=i[o].evaluate(t),f=i[o+1].evaluate(t);switch(this.operator){case"interpolate":switch(this.type.kind){case"number":return sx(c,f,u);case"color":return aa.interpolate(c,f,u);case"padding":return fg.interpolate(c,f,u);case"colorArray":return op.interpolate(c,f,u);case"numberArray":return hg.interpolate(c,f,u);case"variableAnchorOffsetCollection":return lg.interpolate(c,f,u,this.key);case"array":return BT(c,f,u);case"projectionDefinition":return Gm.interpolate(c,f,u)}case"interpolate-hcl":switch(this.type.kind){case"color":return aa.interpolate(c,f,u,"hcl");case"colorArray":return op.interpolate(c,f,u,"hcl")}case"interpolate-lab":switch(this.type.kind){case"color":return aa.interpolate(c,f,u,"lab");case"colorArray":return op.interpolate(c,f,u,"lab")}}}eachChild(t){t(this.input);for(let r of this.outputs)t(r)}outputDefined(){return this.outputs.every(t=>t.outputDefined())}};Ks={color:aa.interpolate,number:sx,padding:fg.interpolate,numberArray:hg.interpolate,colorArray:op.interpolate,variableAnchorOffsetCollection:lg.interpolate,array:BT},wrt=class Trt{constructor(t){this.type=bC,this.sections=t}static parse(t,r){if(t.length<2)return r.error("Expected at least one argument.");let i=t[1];if(!Array.isArray(i)&&typeof i=="object")return r.error("First argument must be an image or text section.");let n=[],a=!1;for(let o=1;o<=t.length-1;++o){let s=t[o];if(a&&typeof s=="object"&&!Array.isArray(s)){a=!1;let l=null;if(s["font-scale"]&&(l=r.parse(s["font-scale"],1,ki),!l))return null;let u=null;if(s["text-font"]&&(u=r.parse(s["text-font"],1,Of(pa)),!u))return null;let c=null;if(s["text-color"]&&(c=r.parse(s["text-color"],1,Cv),!c))return null;let f=null;if(s["vertical-align"]){if(typeof s["vertical-align"]=="string"&&!o2r.includes(s["vertical-align"]))return r.error(`'vertical-align' must be one of: 'bottom', 'center', 'top' but found '${s["vertical-align"]}' instead.`);if(f=r.parse(s["vertical-align"],1,pa),!f)return null}let h=n[n.length-1];h.scale=l,h.font=u,h.textColor=c,h.verticalAlign=f}else{let l=r.parse(t[o],1,ya);if(!l)return null;let u=l.type.kind;if(u!=="string"&&u!=="value"&&u!=="null"&&u!=="resolvedImage")return r.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");a=!0,n.push({content:l,scale:null,font:null,textColor:null,verticalAlign:null})}}return new Trt(n)}evaluate(t){return new Bm(this.sections.map(r=>{let i=r.content.evaluate(t);return su(i)===_C?new eie("",i,null,null,null,r.verticalAlign?r.verticalAlign.evaluate(t):null):new eie(Vk(i),null,r.scale?r.scale.evaluate(t):null,r.font?r.font.evaluate(t).join(","):null,r.textColor?r.textColor.evaluate(t):null,r.verticalAlign?r.verticalAlign.evaluate(t):null)}))}eachChild(t){for(let r of this.sections)t(r.content),r.scale&&t(r.scale),r.font&&t(r.font),r.textColor&&t(r.textColor),r.verticalAlign&&t(r.verticalAlign)}outputDefined(){return!1}};iB={string:pa,number:ki,boolean:za,object:r3},Im=class Mrt{constructor(t,r,i){this.type=t,this.args=r,this.key=i}static parse(t,r){if(t.length<2)return r.error("Expected at least one argument.");let i=1,n,a=t[0];if(a==="array"){let s;if(t.length>2){let u=t[1];if(typeof u!="string"||!(u in iB)||u==="object")return r.error('The item type argument of "array" must be one of string, number, boolean',1);s=iB[u],i++}else s=ya;let l;if(t.length>3){if(t[2]!==null&&(typeof t[2]!="number"||t[2]<0||t[2]!==Math.floor(t[2])))return r.error('The length argument to "array" must be a positive integer literal',2);l=t[2],i++}n=Of(s,l)}else{if(!iB[a])throw Error(`Types doesn't contain name = ${a}`);n=iB[a]}let o=[];for(;it.outputDefined())}},GQe={"to-boolean":za,"to-color":Cv,"to-number":ki,"to-string":pa},ET=class Srt{constructor(t,r,i){this.type=t,this.args=r,this.key=i}static parse(t,r){if(t.length<2)return r.error("Expected at least one argument.");let i=t[0];if(!GQe[i])throw Error(`Can't parse ${i} as it is not part of the known types`);if((i==="to-boolean"||i==="to-string")&&t.length!==2)return r.error("Expected one argument.");let n=GQe[i],a=[];for(let o=1;o4?`Invalid rgba value ${JSON.stringify(r)}: expected an array containing either three or four numeric values.`:yrt(r[0],r[1],r[2],r[3]),!i))return new aa(r[0]/255,r[1]/255,r[2]/255,r[3])}throw new ul(i||`Could not parse color from value '${typeof r=="string"?r:JSON.stringify(r)}'`,this.key)}case"padding":{let r;for(let i of this.args){r=i.evaluate(t);let n=fg.parse(r);if(n)return n}throw new ul(`Could not parse padding from value '${typeof r=="string"?r:JSON.stringify(r)}'`,this.key)}case"numberArray":{let r;for(let i of this.args){r=i.evaluate(t);let n=hg.parse(r);if(n)return n}throw new ul(`Could not parse numberArray from value '${typeof r=="string"?r:JSON.stringify(r)}'`,this.key)}case"colorArray":{let r;for(let i of this.args){r=i.evaluate(t);let n=op.parse(r);if(n)return n}throw new ul(`Could not parse colorArray from value '${typeof r=="string"?r:JSON.stringify(r)}'`,this.key)}case"variableAnchorOffsetCollection":{let r;for(let i of this.args){r=i.evaluate(t);let n=lg.parse(r);if(n)return n}throw new ul(`Could not parse variableAnchorOffsetCollection from value '${typeof r=="string"?r:JSON.stringify(r)}'`,this.key)}case"number":{let r=null;for(let i of this.args){if(r=i.evaluate(t),r===null)return 0;let n=Number(r);if(!isNaN(n))return n}throw new ul(`Could not convert ${JSON.stringify(r)} to number.`,this.key)}case"formatted":return Bm.fromString(Vk(this.args[0].evaluate(t)));case"resolvedImage":return ug.fromString(Vk(this.args[0].evaluate(t)));case"projectionDefinition":{let r=this.args[0].evaluate(t);if(Gm.parse(r))return r;throw new ul(`Could not parse projectionDefinition from value '${typeof r=="string"?r:JSON.stringify(r)}'`,this.key)}default:return Vk(this.args[0].evaluate(t))}}eachChild(t){this.args.forEach(t)}outputDefined(){return this.args.every(t=>t.outputDefined())}},Ert=class krt{constructor(t,r){this.type=r.type,this.bindings=[].concat(t),this.result=r}evaluate(t){return this.result.evaluate(t)}eachChild(t){for(let r of this.bindings)t(r[1]);t(this.result)}static parse(t,r){if(t.length<4)return r.error(`Expected at least 3 arguments, but found ${t.length-1} instead.`);let i=[];for(let a=1;a=i.length)throw new ul(`Array index out of bounds: ${r} > ${i.length-1}.`,this.key);if(r!==Math.floor(r))throw new ul(`Array index must be an integer, but found ${r} instead.`,this.key);return i[r]}eachChild(t){t(this.index),t(this.input)}outputDefined(){return!1}},p2r=class Lrt{constructor(t,r,i){this.needle=t,this.haystack=r,this.key=i,this.type=za}static parse(t,r){if(t.length!==3)return r.error(`Expected 2 arguments, but found ${t.length-1} instead.`);let i=r.parse(t[1],1,ya),n=r.parse(t[2],2,ya);return!i||!n?null:Sne(i.type,[za,pa,ki,xC,ya])?new Lrt(i,n,r.key):r.error(`Expected first argument to be of type boolean, string, number or null, but found ${wl(i.type)} instead`)}evaluate(t){let r=this.needle.evaluate(t),i=this.haystack.evaluate(t);if(!i)return!1;if(!i3(r,["boolean","string","number","null"]))throw new ul(`Expected first argument to be of type boolean, string, number or null, but found ${wl(su(r))} instead.`,this.key);if(!i3(i,["string","array"]))throw new ul(`Expected second argument to be of type array or string, but found ${wl(su(i))} instead.`,this.key);return i.indexOf(r)>=0}eachChild(t){t(this.needle),t(this.haystack)}outputDefined(){return!0}},v2r=class rie{constructor(t,r,i,n){this.needle=t,this.haystack=r,this.key=i,this.fromIndex=n,this.type=ki}static parse(t,r){if(t.length<=2||t.length>=5)return r.error(`Expected 2 or 3 arguments, but found ${t.length-1} instead.`);let i=r.parse(t[1],1,ya),n=r.parse(t[2],2,ya);if(!i||!n)return null;if(!Sne(i.type,[za,pa,ki,xC,ya]))return r.error(`Expected first argument to be of type boolean, string, number or null, but found ${wl(i.type)} instead`);if(t.length===4){let a=r.parse(t[3],3,ki);return a?new rie(i,n,r.key,a):null}return new rie(i,n,r.key)}evaluate(t){let r=this.needle.evaluate(t),i=this.haystack.evaluate(t);if(!i3(r,["boolean","string","number","null"]))throw new ul(`Expected first argument to be of type boolean, string, number or null, but found ${wl(su(r))} instead.`,this.key);let n;if(this.fromIndex&&(n=this.fromIndex.evaluate(t)),i3(i,["string"])){let a=i.indexOf(r,n);return a===-1?-1:[...i.slice(0,a)].length}if(i3(i,["array"]))return i.indexOf(r,n);throw new ul(`Expected second argument to be of type array or string, but found ${wl(su(i))} instead.`,this.key)}eachChild(t){t(this.needle),t(this.haystack),this.fromIndex&&t(this.fromIndex)}outputDefined(){return!1}},g2r=class Prt{constructor(t,r,i,n,a,o){this.inputType=t,this.type=r,this.input=i,this.cases=n,this.outputs=a,this.otherwise=o}static parse(t,r){if(t.length<5)return r.error(`Expected at least 4 arguments, but found only ${t.length-1}.`);if(t.length%2!=1)return r.error("Expected an even number of arguments.");let i,n;r.expectedType&&r.expectedType.kind!=="value"&&(n=r.expectedType);let a={},o=[];for(let u=2;u2**53-1)return h.error(`Branch labels must be integers no larger than ${2**53-1}.`);if(typeof d=="number"&&Math.floor(d)!==d)return h.error("Numeric branch labels must be integer values.");if(!i)i=su(d);else if(h.checkSubtype(i,su(d)))return null;if(a[String(d)]!==void 0)return h.error("Branch labels must be unique.");a[String(d)]=o.length}let p=r.parse(f,u,n);if(!p)return null;n||(n=p.type),o.push(p)}let s=r.parse(t[1],1,ya);if(!s)return null;let l=r.parse(t[t.length-1],t.length-1,n);return!l||s.type.kind!=="value"&&r.concat(1).checkSubtype(i,s.type)?null:new Prt(i,n,s,a,o,l)}evaluate(t){let r=this.input.evaluate(t);return(su(r)===this.inputType&&this.outputs[this.cases[r]]||this.otherwise).evaluate(t)}eachChild(t){t(this.input),this.outputs.forEach(t),t(this.otherwise)}outputDefined(){return this.outputs.every(t=>t.outputDefined())&&this.otherwise.outputDefined()}},m2r=class Irt{constructor(t,r,i){this.type=t,this.branches=r,this.otherwise=i}static parse(t,r){if(t.length<4)return r.error(`Expected at least 3 arguments, but found only ${t.length-1}.`);if(t.length%2!=0)return r.error("Expected an odd number of arguments.");let i;r.expectedType&&r.expectedType.kind!=="value"&&(i=r.expectedType);let n=[];for(let o=1;or.outputDefined())&&this.otherwise.outputDefined()}},y2r=class iie{constructor(t,r,i,n,a){this.type=t,this.input=r,this.beginIndex=i,this.key=n,this.endIndex=a}static parse(t,r){if(t.length<=2||t.length>=5)return r.error(`Expected 2 or 3 arguments, but found ${t.length-1} instead.`);let i=r.parse(t[1],1,ya),n=r.parse(t[2],2,ki);if(!i||!n)return null;if(!Sne(i.type,[Of(ya),pa,ya]))return r.error(`Expected first argument to be of type array or string, but found ${wl(i.type)} instead`);if(t.length===4){let a=r.parse(t[3],3,ki);return a?new iie(i.type,i,n,r.key,a):null}return new iie(i.type,i,n,r.key)}evaluate(t){let r=this.input.evaluate(t),i=this.beginIndex.evaluate(t),n;if(this.endIndex&&(n=this.endIndex.evaluate(t)),i3(r,["string"]))return[...r].slice(i,n).join("");if(i3(r,["array"]))return r.slice(i,n);throw new ul(`Expected first argument to be of type array or string, but found ${wl(su(r))} instead.`,this.key)}eachChild(t){t(this.input),t(this.beginIndex),this.endIndex&&t(this.endIndex)}outputDefined(){return!1}},Rrt=class nie{constructor(t,r){this.type=t,this.args=r}static parse(t,r){if(t.length<2)return r.error("Expected at least one argument.");let i=null,n=r.expectedType;n&&n.kind!=="value"&&(i=n);let a=[];for(let o of t.slice(1)){let s=r.parse(o,1+a.length,i,void 0,{typeAnnotation:"omit"});if(!s)return null;i||(i=s.type),a.push(s)}if(!i)throw Error("No output type");return n&&a.some(o=>Xk(n,o.type))?new nie(ya,a):new nie(i,a)}evaluate(t){let r=null,i=0,n;for(let a of this.args)if(i++,r=a.evaluate(t),r&&r instanceof ug&&!r.available&&(n||(n=r.name),r=null,i===this.args.length&&(r=n)),r!==null)break;return r}eachChild(t){this.args.forEach(t)}outputDefined(){return this.args.every(t=>t.outputDefined())}};D2r=XT("==",x2r,zrt),F2r=XT("!=",b2r,M2r),L2r=XT("<",_2r,S2r),P2r=XT(">",w2r,E2r),I2r=XT("<=",T2r,k2r),R2r=XT(">=",A2r,C2r),qrt=class Ort{constructor(t,r,i){this.type=iq,this.locale=i,this.caseSensitive=t,this.diacriticSensitive=r}static parse(t,r){if(t.length!==2)return r.error("Expected one argument.");let i=t[1];if(typeof i!="object"||Array.isArray(i))return r.error("Collator options argument must be an object.");let n=r.parse(i["case-sensitive"]!==void 0&&i["case-sensitive"],1,za);if(!n)return null;let a=r.parse(i["diacritic-sensitive"]!==void 0&&i["diacritic-sensitive"],1,za);if(!a)return null;let o=null;return i.locale&&(o=r.parse(i.locale,1,pa),!o)?null:new Ort(n,a,o)}evaluate(t){return new Ene(this.caseSensitive.evaluate(t),this.diacriticSensitive.evaluate(t),this.locale?this.locale.evaluate(t):null)}eachChild(t){t(this.caseSensitive),t(this.diacriticSensitive),this.locale&&t(this.locale)}outputDefined(){return!1}},z2r=class Nrt{constructor(t,r,i,n,a,o){this.type=pa,this.number=t,this.locale=r,this.currency=i,this.unit=n,this.minFractionDigits=a,this.maxFractionDigits=o}static parse(t,r){if(t.length!==3)return r.error("Expected two arguments.");let i=r.parse(t[1],1,ki);if(!i)return null;let n=t[2];if(typeof n!="object"||Array.isArray(n))return r.error("NumberFormat options argument must be an object.");let a=null;if(n.locale&&(a=r.parse(n.locale,1,pa),!a))return null;let o=null;if(n.currency&&(o=r.parse(n.currency,1,pa),!o))return null;let s=null;if(n.unit&&(s=r.parse(n.unit,1,pa),!s))return null;if(o&&s)return r.error("NumberFormat options `currency` and `unit` are mutually exclusive");let l=null;if(n["min-fraction-digits"]&&(l=r.parse(n["min-fraction-digits"],1,ki),!l))return null;let u=null;return n["max-fraction-digits"]&&(u=r.parse(n["max-fraction-digits"],1,ki),!u)?null:new Nrt(i,a,o,s,l,u)}evaluate(t){return new Intl.NumberFormat(this.locale?this.locale.evaluate(t):[],{style:this.currency?"currency":this.unit?"unit":"decimal",currency:this.currency?this.currency.evaluate(t):void 0,unit:this.unit?this.unit.evaluate(t):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(t):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(t):void 0}).format(this.number.evaluate(t))}eachChild(t){t(this.number),this.locale&&t(this.locale),this.currency&&t(this.currency),this.unit&&t(this.unit),this.minFractionDigits&&t(this.minFractionDigits),this.maxFractionDigits&&t(this.maxFractionDigits)}outputDefined(){return!1}},B2r=class Urt{constructor(t){this.type=_C,this.input=t}static parse(t,r){if(t.length!==2)return r.error("Expected two arguments.");let i=r.parse(t[1],1,pa);return i?new Urt(i):r.error("No image name provided.")}evaluate(t){let r=this.input.evaluate(t),i=ug.fromString(r);return i&&t.availableImages&&(i.available=t.availableImages.indexOf(r)>-1),i}eachChild(t){t(this.input)}outputDefined(){return!1}},q2r=class Vrt{constructor(t,r){this.input=t,this.key=r,this.type=ki}static parse(t,r){if(t.length!==2)return r.error(`Expected 1 argument, but found ${t.length-1} instead.`);let i=r.parse(t[1],1);return i?i.type.kind!=="array"&&i.type.kind!=="string"&&i.type.kind!=="value"?r.error(`Expected argument of type string or array, but found ${wl(i.type)} instead.`):new Vrt(i,r.key):null}evaluate(t){let r=this.input.evaluate(t);if(typeof r=="string")return[...r].length;if(Array.isArray(r))return r.length;throw new ul(`Expected value to be of type string or array, but found ${wl(su(r))} instead.`,this.key)}eachChild(t){t(this.input)}outputDefined(){return!1}},sg=8192;Fne=class xB{constructor(t,r){this.type=za,this.geojson=t,this.geometries=r}static parse(t,r){if(t.length!==2)return r.error(`'within' expression requires exactly one argument, but found ${t.length-1} instead.`);if(qT(t[1])){let i=t[1];if(i.type==="FeatureCollection"){let n=[];for(let a of i.features){let{type:o,coordinates:s}=a.geometry;o==="Polygon"&&n.push(s),o==="MultiPolygon"&&n.push(...s)}if(n.length)return new xB(i,{type:"MultiPolygon",coordinates:n})}else if(i.type==="Feature"){let n=i.geometry.type;if(n==="Polygon"||n==="MultiPolygon")return new xB(i,i.geometry)}else if(i.type==="Polygon"||i.type==="MultiPolygon")return new xB(i,i)}return r.error("'within' expression requires valid geojson object that contains polygon geometry type.")}evaluate(t){if(t.geometry()!=null&&t.canonicalID()!=null){if(t.geometryType()==="Point")return K2r(t,this.geometries);if(t.geometryType()==="LineString")return J2r(t,this.geometries)}return!1}eachChild(){}outputDefined(){return!0}},$rt=class{constructor(e=[],t=(r,i)=>ri)){if(this.data=e,this.length=this.data.length,this.compare=t,this.length>0)for(let r=(this.length>>1)-1;r>=0;r--)this._down(r)}push(e){this.data.push(e),this._up(this.length++)}pop(){if(this.length===0)return;let e=this.data[0],t=this.data.pop();return--this.length>0&&(this.data[0]=t,this._down(0)),e}peek(){return this.data[0]}_up(e){let{data:t,compare:r}=this,i=t[e];for(;e>0;){let n=e-1>>1,a=t[n];if(r(i,a)>=0)break;t[e]=a,e=n}t[e]=i}_down(e){let{data:t,compare:r}=this,i=this.length>>1,n=t[e];for(;e=0)break;t[e]=t[a],e=a}t[e]=n}},YQe=Math.PI/180,Lne=class{constructor(e){let t=YQe*6378.137*1e3,r=Math.cos(e*YQe),i=1/(1-.0066943799901413165*(1-r*r)),n=Math.sqrt(i);this.kx=t*n*r,this.ky=t*n*i*.9933056200098587}distance(e,t){let r=this.wrap(e[0]-t[0])*this.kx,i=(e[1]-t[1])*this.ky;return Math.sqrt(r*r+i*i)}pointOnLine(e,t){let r=1/0,i,n,a,o;for(let s=0;s1?(l=e[s+1][0],u=e[s+1][1]):h>0&&(l+=c/this.kx*h,u+=f/this.ky*h)),c=this.wrap(t[0]-l)*this.kx,f=(t[1]-u)*this.ky;let p=c*c+f*f;p180;)e-=360;return e}};Rne=class bB{constructor(t,r){this.type=ki,this.geojson=t,this.geometries=r}static parse(t,r){if(t.length!==2)return r.error(`'distance' expression requires exactly one argument, but found ${t.length-1} instead.`);if(qT(t[1])){let i=t[1];if(i.type==="FeatureCollection")return new bB(i,i.features.map(n=>Ure(n.geometry)).flat());if(i.type==="Feature")return new bB(i,Ure(i.geometry));if("type"in i&&"coordinates"in i)return new bB(i,Ure(i))}return r.error("'distance' expression requires valid geojson object that contains polygon geometry type.")}evaluate(t){if(t.geometry()!=null&&t.canonicalID()!=null){if(t.geometryType()==="Point")return nxr(t,this.geometries);if(t.geometryType()==="LineString")return axr(t,this.geometries);if(t.geometryType()==="Polygon")return oxr(t,this.geometries)}return NaN}eachChild(){}outputDefined(){return!0}},sxr=class Yrt{constructor(t){let r=null;for(let i of t)if(!r)r=i.type;else{if(r===i.type)continue;r=ya;break}this.type=Of(r!=null?r:ya,t.length),this.arr=t}static parse(t,r){if(t.length!==2)return r.error(`'semiliteral' expression requires exactly one argument, but found ${t.length-1} instead.`);if(!qT(t[1]))return r.error(`invalid value of type "${typeof t[1]}"`);let i=t[1],n=su(i);if(n.kind==="array"){let a=i,o=r.concat(1),s=[];for(let l=0;lr.evaluate(t))}eachChild(t){this.arr.forEach(t)}outputDefined(){return this.arr.every(t=>t.outputDefined())}},zne=class Xrt{constructor(t){this.key=t,this.type=ya}static parse(t,r){if(t.length!==2)return r.error(`Expected 1 argument, but found ${t.length-1} instead.`);let i=t[1];return i==null?r.error("Global state property must be defined."):typeof i=="string"?new Xrt(i):r.error(`Global state property must be string, but found ${typeof t[1]} instead.`)}evaluate(t){var i,n;let r=(i=t.globals)==null?void 0:i.globalState;return!r||Object.keys(r).length===0?null:(n=Uk(r,this.key))!=null?n:null}eachChild(){}outputDefined(){return!1}},DT={"==":D2r,"!=":F2r,">":P2r,"<":L2r,">=":R2r,"<=":I2r,array:Im,at:d2r,boolean:Im,case:m2r,coalesce:Rrt,collator:qrt,format:wrt,image:B2r,in:p2r,"index-of":v2r,interpolate:sp,"interpolate-hcl":sp,"interpolate-lab":sp,length:q2r,let:Ert,literal:OT,match:g2r,number:Im,"number-format":z2r,object:Im,semiliteral:sxr,slice:y2r,step:kne,string:Im,"to-boolean":ET,"to-color":ET,"to-number":ET,"to-string":ET,var:Crt,within:Fne,distance:Rne,"global-state":zne},ig=class extends Error{constructor(e,t){super(t),this.message=t,this.key=e}},lxr=class Zrt{constructor(t,r=[]){this.parent=t,this.bindings={};for(let[i,n]of r)this.bindings[i]=n}concat(t){return new Zrt(this,t)}get(t){if(this.bindings[t])return this.bindings[t];if(this.parent)return this.parent.get(t);throw Error(`${t} not found in scope.`)}has(t){return this.bindings[t]?!0:this.parent?this.parent.has(t):!1}},Krt=class Jrt{constructor(t,r,i=[],n,a=new lxr,o=[]){this.registry=t,this.path=i,this.key=i.map(s=>`[${s}]`).join(""),this.scope=a,this.errors=o,this.expectedType=n,this._isConstant=r}parse(t,r,i,n,a={}){return r==null?this._parse(t,a):this.concat(r,i,n)._parse(t,a)}_parse(t,r){(t===null||typeof t=="string"||typeof t=="boolean"||typeof t=="number")&&(t=["literal",t]);let i=this.key;function n(a,o,s){return s==="assert"?new Im(o,[a],i):s==="coerce"?new ET(o,[a],i):a}if(Array.isArray(t)){if(t.length===0)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');let a=t[0];if(typeof a!="string")return this.error(`Expression name must be a string, but found ${typeof a} instead. If you wanted a literal array, use ["literal", [...]].`,0),null;let o=this.registry[a];if(o){let s=o.parse(t,this);if(!s)return null;if(this.expectedType){let l=this.expectedType,u=s.type;if((l.kind==="string"||l.kind==="number"||l.kind==="boolean"||l.kind==="object"||l.kind==="array")&&u.kind==="value")s=n(s,l,r.typeAnnotation||"assert");else if(l.kind==="projectionDefinition"&&["string","array","value"].includes(u.kind)||["color","formatted","resolvedImage"].includes(l.kind)&&["value","string"].includes(u.kind)||["padding","numberArray"].includes(l.kind)&&["value","number","array"].includes(u.kind)||l.kind==="colorArray"&&["value","string","array"].includes(u.kind)||l.kind==="variableAnchorOffsetCollection"&&["value","array"].includes(u.kind))s=n(s,l,r.typeAnnotation||"coerce");else if(this.checkSubtype(l,u))return null}if(!(s instanceof OT)&&s.type.kind!=="resolvedImage"&&this._isConstant(s)){let l=new brt;try{s=new OT(s.type,s.evaluate(l))}catch(u){return this.error(u.message),null}}return s}return this.error(`Unknown expression "${a}". If you wanted a literal array, use ["literal", [...]].`,0)}return t===void 0?this.error("'undefined' value invalid. Use null instead."):typeof t=="object"?this.error('Bare objects invalid. Use ["literal", {...}] instead.'):this.error(`Expected an array, but found ${typeof t} instead.`)}concat(t,r,i){let n=typeof t=="number"?this.path.concat(t):this.path,a=i?this.scope.concat(i):this.scope;return new Jrt(this.registry,this._isConstant,n,r||null,a,this.errors)}error(t,...r){let i=`${this.key}${r.map(n=>`[${n}]`).join("")}`;this.errors.push(new ig(i,t))}checkSubtype(t,r){let i=Xk(t,r);return i&&this.error(i),i}},p3=class zk{constructor(t,r,i,n,a){this.name=t,this.type=r,this._evaluate=i,this.args=n,this.key=a}evaluate(t){return this._evaluate(t,this.args,this.key)}eachChild(t){this.args.forEach(t)}outputDefined(){return!1}static parse(t,r){let i=t[0],n=zk.definitions[i];if(!n)return r.error(`Unknown expression "${i}". If you wanted a literal array, use ["literal", [...]].`,0);let a=Array.isArray(n)?n[0]:n.type,o=Array.isArray(n)?[[n[1],n[2]]]:n.overloads,s=o.filter(([u])=>!Array.isArray(u)||u.length===t.length-1),l=null;for(let[u,c]of s){l=new Krt(r.registry,EB,r.path,null,r.scope);let f=[],h=!1;for(let p=1;pcxr(f)).join(" | "),c=[];for(let f=1;f{throw new ul(t.evaluate(e),r)}],typeof:[pa,[ya],(e,[t])=>wl(su(t.evaluate(e)))],"to-rgba":[Of(ki,4),[Cv],(e,[t])=>{let[r,i,n,a]=t.evaluate(e).rgb;return[r*255,i*255,n*255,a]}],rgb:[Cv,[ki,ki,ki],JQe],rgba:[Cv,[ki,ki,ki,ki],JQe],has:{type:za,overloads:[[[pa],(e,[t])=>QQe(t.evaluate(e),e.properties())],[[pa,r3],(e,[t,r])=>QQe(t.evaluate(e),r.evaluate(e))]]},get:{type:ya,overloads:[[[pa],(e,[t])=>Vre(t.evaluate(e),e.properties())],[[pa,r3],(e,[t,r])=>Vre(t.evaluate(e),r.evaluate(e))]]},"feature-state":[ya,[pa],(e,[t])=>Vre(t.evaluate(e),e.featureState||{})],properties:[r3,[],e=>e.properties()],"geometry-type":[pa,[],e=>e.geometryType()],id:[ya,[],e=>e.id()],zoom:[ki,[],e=>e.globals.zoom],"heatmap-density":[ki,[],e=>e.globals.heatmapDensity||0],elevation:[ki,[],e=>e.globals.elevation||0],"line-progress":[ki,[],e=>e.globals.lineProgress||0],accumulated:[ya,[],e=>e.globals.accumulated===void 0?null:e.globals.accumulated],"+":[ki,Z_(ki),(e,t)=>{let r=0;for(let i of t)r+=i.evaluate(e);return r}],"*":[ki,Z_(ki),(e,t)=>{let r=1;for(let i of t)r*=i.evaluate(e);return r}],"-":{type:ki,overloads:[[[ki,ki],(e,[t,r])=>t.evaluate(e)-r.evaluate(e)],[[ki],(e,[t])=>-t.evaluate(e)]]},"/":[ki,[ki,ki],(e,[t,r])=>t.evaluate(e)/r.evaluate(e)],"%":[ki,[ki,ki],(e,[t,r])=>t.evaluate(e)%r.evaluate(e)],ln2:[ki,[],()=>Math.LN2],pi:[ki,[],()=>Math.PI],e:[ki,[],()=>Math.E],"^":[ki,[ki,ki],(e,[t,r])=>t.evaluate(e)**+r.evaluate(e)],sqrt:[ki,[ki],(e,[t])=>Math.sqrt(t.evaluate(e))],log10:[ki,[ki],(e,[t])=>Math.log(t.evaluate(e))/Math.LN10],ln:[ki,[ki],(e,[t])=>Math.log(t.evaluate(e))],log2:[ki,[ki],(e,[t])=>Math.log(t.evaluate(e))/Math.LN2],sin:[ki,[ki],(e,[t])=>Math.sin(t.evaluate(e))],cos:[ki,[ki],(e,[t])=>Math.cos(t.evaluate(e))],tan:[ki,[ki],(e,[t])=>Math.tan(t.evaluate(e))],asin:[ki,[ki],(e,[t])=>Math.asin(t.evaluate(e))],acos:[ki,[ki],(e,[t])=>Math.acos(t.evaluate(e))],atan:[ki,[ki],(e,[t])=>Math.atan(t.evaluate(e))],min:[ki,Z_(ki),(e,t)=>Math.min(...t.map(r=>r.evaluate(e)))],max:[ki,Z_(ki),(e,t)=>Math.max(...t.map(r=>r.evaluate(e)))],abs:[ki,[ki],(e,[t])=>Math.abs(t.evaluate(e))],round:[ki,[ki],(e,[t])=>{let r=t.evaluate(e);return r<0?-Math.round(-r):Math.round(r)}],floor:[ki,[ki],(e,[t])=>Math.floor(t.evaluate(e))],ceil:[ki,[ki],(e,[t])=>Math.ceil(t.evaluate(e))],"filter-==":[za,[pa,ya],(e,[t,r])=>e.properties()[t.value]===r.value],"filter-id-==":[za,[ya],(e,[t])=>e.id()===t.value],"filter-type-==":[za,[pa],(e,[t])=>e.geometryType()===t.value],"filter-<":[za,[pa,ya],(e,[t,r])=>{let i=e.properties()[t.value],n=r.value;return typeof i==typeof n&&i{let r=e.id(),i=t.value;return typeof r==typeof i&&r":[za,[pa,ya],(e,[t,r])=>{let i=e.properties()[t.value],n=r.value;return typeof i==typeof n&&i>n}],"filter-id->":[za,[ya],(e,[t])=>{let r=e.id(),i=t.value;return typeof r==typeof i&&r>i}],"filter-<=":[za,[pa,ya],(e,[t,r])=>{let i=e.properties()[t.value],n=r.value;return typeof i==typeof n&&i<=n}],"filter-id-<=":[za,[ya],(e,[t])=>{let r=e.id(),i=t.value;return typeof r==typeof i&&r<=i}],"filter->=":[za,[pa,ya],(e,[t,r])=>{let i=e.properties()[t.value],n=r.value;return typeof i==typeof n&&i>=n}],"filter-id->=":[za,[ya],(e,[t])=>{let r=e.id(),i=t.value;return typeof r==typeof i&&r>=i}],"filter-has":[za,[ya],(e,[t])=>{let r=t.value,i=e.properties();return r in i&&i[r]!==void 0}],"filter-has-id":[za,[],e=>e.id()!==null&&e.id()!==void 0],"filter-type-in":[za,[Of(pa)],(e,[t])=>t.value.indexOf(e.geometryType())>=0],"filter-id-in":[za,[Of(ya)],(e,[t])=>t.value.indexOf(e.id())>=0],"filter-in-small":[za,[pa,Of(ya)],(e,[t,r])=>r.value.indexOf(e.properties()[t.value])>=0],"filter-in-large":[za,[pa,Of(ya)],(e,[t,r])=>uxr(e.properties()[t.value],r.value,0,r.value.length-1)],all:{type:za,overloads:[[[za,za],(e,[t,r])=>t.evaluate(e)&&r.evaluate(e)],[Z_(za),(e,t)=>{for(let r of t)if(!r.evaluate(e))return!1;return!0}]]},any:{type:za,overloads:[[[za,za],(e,[t,r])=>t.evaluate(e)||r.evaluate(e)],[Z_(za),(e,t)=>{for(let r of t)if(r.evaluate(e))return!0;return!1}]]},"!":[za,[za],(e,[t])=>!t.evaluate(e)],"is-supported-script":[za,[pa],(e,[t])=>{let r=e.globals&&e.globals.isSupportedScript;return!r||r(t.evaluate(e))}],upcase:[pa,[pa],(e,[t])=>t.evaluate(e).toUpperCase()],downcase:[pa,[pa],(e,[t])=>t.evaluate(e).toLowerCase()],concat:[pa,Z_(ya),(e,t)=>t.map(r=>Vk(r.evaluate(e))).join("")],split:[Of(pa),[pa,pa],(e,[t,r])=>t.evaluate(e).split(r.evaluate(e))],join:[pa,[Of(pa),pa],(e,[t,r])=>t.evaluate(e).join(r.evaluate(e))],"resolved-locale":[pa,[iq],(e,[t])=>t.evaluate(e).resolvedLocale()]});qne=/^(.*)-transition$/;One=class{constructor(e,t,r,i){this.expression=e,this._warningHistory={},this._evaluator=new brt,this._defaultValue=r?sit(r):null,this._enumValues=r&&r.type==="enum"?r.values:null,this._globalState=i,this._rootKey=t}evaluateWithoutErrorHandling(e,t,r,i,n,a){return this._globalState&&(e=UT(e,this._globalState)),this._evaluator.globals=e,this._evaluator.feature=t,this._evaluator.featureState=r,this._evaluator.canonical=i,this._evaluator.availableImages=n||null,this._evaluator.formattedSection=a,this.expression.evaluate(this._evaluator)}evaluate(e,t,r,i,n,a){this._globalState&&(e=UT(e,this._globalState)),this._evaluator.globals=e,this._evaluator.feature=t||null,this._evaluator.featureState=r||null,this._evaluator.canonical=i,this._evaluator.availableImages=n||null,this._evaluator.formattedSection=a||null;try{let o=this.expression.evaluate(this._evaluator);if(o==null||typeof o=="number"&&o!==o)return this._defaultValue;if(this._enumValues&&!(o in this._enumValues))throw new ul(`Expected value to be one of ${Object.keys(this._enumValues).map(s=>JSON.stringify(s)).join(", ")}, but found ${JSON.stringify(o)} instead.`,"");return o}catch(o){let s=o instanceof ul?o.path:"",l=`${s}|${o.message}`;return this._warningHistory[l]||(this._warningHistory[l]=!0,typeof console<"u"&&console.warn(rit(this._rootKey,s,o.message,this._defaultValue))),this._defaultValue}}};Qk=class{constructor(e,t,r){this.kind=e,this._styleExpression=t,this.isStateDependent=e!=="constant"&&!Kk(t.expression),this.globalStateRefs=AC(t.expression),this._globalState=r}evaluateWithoutErrorHandling(e,t,r,i,n,a){return this._globalState&&(e=UT(e,this._globalState)),this._styleExpression.evaluateWithoutErrorHandling(e,t,r,i,n,a)}evaluate(e,t,r,i,n,a){return this._globalState&&(e=UT(e,this._globalState)),this._styleExpression.evaluate(e,t,r,i,n,a)}},kB=class{constructor(e,t,r,i,n){this.kind=e,this.zoomStops=r,this._styleExpression=t,this.isStateDependent=e!=="camera"&&!Kk(t.expression),this.globalStateRefs=AC(t.expression),this.interpolationType=i,this._globalState=n}evaluateWithoutErrorHandling(e,t,r,i,n,a){return this._globalState&&(e=UT(e,this._globalState)),this._styleExpression.evaluateWithoutErrorHandling(e,t,r,i,n,a)}evaluate(e,t,r,i,n,a){return this._globalState&&(e=UT(e,this._globalState)),this._styleExpression.evaluate(e,t,r,i,n,a)}interpolationFactor(e,t,r){return this.interpolationType?sp.interpolationFactor(this.interpolationType,e,t,r):0}};ait=class oit{constructor(t,r,i){this.isStateDependent=!1,this.globalStateRefs=new Set,this._globalState=null,iit(r),this._parameters=t,this._specification=i,this._rootKey=r,this._defaultValue=sit(i),this._warningHistory={};let n=eit(this._parameters,this._specification);this.kind=n.kind,this.interpolationFactor=n.interpolationFactor,this.zoomStops=n.zoomStops,this.interpolationType=n.interpolationType,this._innerEvaluate=n.evaluate}evaluate(t,r){try{return this._innerEvaluate(t,r)}catch(i){let n=i instanceof Error?i.message:String(i),a=`|${n}`;return this._warningHistory[a]||(this._warningHistory[a]=!0,typeof console<"u"&&console.warn(rit(this._rootKey,"",n,this._defaultValue))),this._defaultValue}}static deserialize(t){return new oit(t._parameters,t._rootKey,t._specification)}static serialize(t){return{_parameters:t._parameters,_specification:t._specification,_rootKey:t._rootKey}}};Axr={type:"boolean",default:!1,transition:!1,"property-type":"data-driven",expression:{interpolated:!1,parameters:["zoom","feature"]}};iet={promoteId:Fxr};net=1114111,Vxr=/^u\+(?:([0-9a-f]{1,6})(?:-([0-9a-f]{1,6}))?|([0-9a-f]{0,5}\?{1,6}))$/i;aet={"*"(){return[]},array:Vne,boolean:Exr,number:vq,color:uie,constants:fit,enum:eC,filter:Gne,function:hit,layer:mit,object:G0,source:yit,light:xit,sky:bit,terrain:_it,projection:qxr,projectionDefinition:Oxr,string:cx,formatted:Lxr,resolvedImage:Pxr,padding:Ixr,numberArray:Rxr,colorArray:zxr,variableAnchorOffsetCollection:Bxr,sprite:wit,state:Tit,fontFaces:Ait};V0.source=rp(tp(yit)),V0.sprite=rp(tp(wit)),V0.glyphs=rp(tp(Mit)),V0.fontFaces=rp(tp(Ait)),V0.light=rp(tp(xit)),V0.sky=rp(tp(bit)),V0.terrain=rp(tp(_it)),V0.state=rp(tp(Tit)),V0.layer=rp(tp(mit)),V0.filter=rp(tp(Gne)),V0.paintProperty=rp(tp(vit)),V0.layoutProperty=rp(tp(git));Hxr={type:"enum","property-type":"data-constant",expression:{interpolated:!1,parameters:["global-state"]},values:{visible:{},none:{}},transition:!1,default:"visible"},jxr=class{constructor(e,t,r){this._rootKey=t,this._globalState=r,this.setValue(e)}evaluate(){var e;return(e=this._literalValue)!=null?e:this._compiledValue.evaluate({})}setValue(e){if(e==null||e==="visible"||e==="none"){this._literalValue=e==="none"?"none":"visible",this._compiledValue=void 0,this._globalStateRefs=new Set;return}let t=pq(e,this._rootKey,Hxr,this._globalState);if(t.result==="error")throw this._literalValue="visible",this._compiledValue=void 0,Error(t.value.map(r=>`${r.key}: ${r.message}`).join(", "));this._literalValue=void 0,this._compiledValue=t.value,this._globalStateRefs=AC(t.value.expression)}getGlobalStateRefs(){return this._globalStateRefs}};mh=V0,Hne=new Set(Object.keys(_r).filter(e=>e.startsWith("source_")).map(e=>e.slice(7).replaceAll("_","-")));fie=class Eit{constructor(t,r,i){let n=this.cells=[];if(t instanceof ArrayBuffer){this.arrayBuffer=t;let o=new Int32Array(this.arrayBuffer);t=o[0],r=o[1],i=o[2],this.d=r+2*i;for(let u=0;u=f[p+0]&&n>=f[p+1])?(s[h]=!0,o.push(c[h])):s[h]=!1}}}_forEachCell(t,r,i,n,a,o,s,l){let u=this._convertToCellCoord(t),c=this._convertToCellCoord(r),f=this._convertToCellCoord(i),h=this._convertToCellCoord(n);for(let p=u;p<=f;p++)for(let d=c;d<=h;d++){let v=this.d*d+p;if((!l||l(this._convertFromCellCoord(p),this._convertFromCellCoord(d),this._convertFromCellCoord(p+1),this._convertFromCellCoord(d+1)))&&a.call(this,t,r,i,n,v,o,s,l))return}}_convertFromCellCoord(t){return(t-this.padding)/this.scale}_convertToCellCoord(t){return Math.max(0,Math.min(this.d-1,Math.floor(t*this.scale)+this.padding))}toArrayBuffer(){if(this.arrayBuffer)return this.arrayBuffer;let t=this.cells,r=3+this.cells.length+1+1,i=0;for(let o of this.cells)i+=o.length;let n=new Int32Array(r+i+this.keys.length+this.bboxes.length);n[0]=this.extent,n[1]=this.n,n[2]=this.padding;let a=r;for(let o=0;or?(this.lastIntegerZoom=r+1,this.lastIntegerZoomTime=t):this.lastFloorZoomthis.zoomHistory.lastIntegerZoom?{fromScale:2,toScale:1,t:t+(1-t)*r}:{fromScale:.5,toScale:1,t:1-(1-r)*t}}},tC=class{constructor(e,t,r,i){this.property=e,this.value=t,this.expression=xxr(t===void 0?e.specification.default:t,r,e.specification,i)}isDataDriven(){return this.expression.kind==="source"||this.expression.kind==="composite"}getGlobalStateRefs(){return this.expression.globalStateRefs||new Set}readsGlobalState(e){let t=this.getGlobalStateRefs();return e.some(r=>t.has(r))}possiblyEvaluate(e,t,r){return this.property.possiblyEvaluate(this,e,t,r)}},hie=class{constructor(e,t,r){this.property=e,this.value=new tC(e,void 0,t,r)}transitioned(e,t){return t.value===this.value?t:new oet(this.property,this.value,t,dn({},e.transition,this.transition),e.now)}untransitioned(){return new oet(this.property,this.value,null,{},0)}},MC=class{constructor(e,t,r){this._properties=e,this._values=Object.create(e.defaultTransitionablePropertyValues),this._globalState=r,this._rootKey=t}_propertyRootKey(e){return`${this._rootKey}.${String(e)}`}hasProperty(e){return e in this._properties.defaultTransitionablePropertyValues}getValue(e){return vh(this._values[e].value.value)}setValue(e,t){Object.hasOwn(this._values,e)||(this._values[e]=new hie(this._values[e].property,this._propertyRootKey(e),this._globalState)),this._values[e].value=new tC(this._values[e].property,t===null?void 0:vh(t),this._propertyRootKey(e),this._globalState)}setValues(e){for(let t in e){let r=e[t];t.endsWith("-transition")?this.setTransition(t.slice(0,-11),r):Dv(this._values[t].value.value,r)||this.setValue(t,r)}}getTransition(e){return vh(this._values[e].transition)}setTransition(e,t){Object.hasOwn(this._values,e)||(this._values[e]=new hie(this._values[e].property,this._propertyRootKey(e),this._globalState)),this._values[e].transition=vh(t)||void 0}retainPriorGlobalState(e,t,r){for(let i of Object.keys(r._values))for(let n=r._values[i];n;n=n.prior){let{value:a}=n;a.property.specification.transition&&!a.isDataDriven()&&a.expression._globalState===this._globalState&&a.readsGlobalState(e)&&(n.value=new tC(a.property,a.value,this._propertyRootKey(i),t))}}applyGlobalStateChange(e,t,r,i){this.retainPriorGlobalState(e,t,r);let n=!1;for(let a of Object.keys(this._values)){let{value:o}=this._values[a];o.readsGlobalState(e)&&(this.setValue(a,o.value),n=!0)}return n?this.transitioned(i,r):r}serialize(){let e={};for(let t of Object.keys(this._values)){let r=this.getValue(t);r!==void 0&&(e[t]=r);let i=this.getTransition(t);i!==void 0&&(e[`${t}-transition`]=i)}return e}transitioned(e,t){let r=new set(this._properties);for(let i of Object.keys(this._values))r._values[i]=this._values[i].transitioned(e,t._values[i]);return r}untransitioned(){let e=new set(this._properties);for(let t of Object.keys(this._values))e._values[t]=this._values[t].untransitioned();return e}},oet=class{constructor(e,t,r,i,n){this.property=e,this.value=t,this.begin=n+i.delay||0,this.end=this.begin+i.duration||0,e.specification.transition&&(i.delay||i.duration)&&(this.prior=r)}possiblyEvaluate(e,t,r){let i=e.now||0,n=this.value.possiblyEvaluate(e,t,r),a=this.prior;if(!a)return n;if(i>this.end||this.value.isDataDriven())return this.prior=null,n;if(ii.zoomHistory.lastIntegerZoom?{from:e,to:t}:{from:r,to:t}}interpolate(e){return e}},Fit=class{constructor(e,t){this.specification=e,this.name=t}possiblyEvaluate(e,t,r,i){if(e.value!==void 0){if(e.expression.kind==="constant"){let n=e.expression.evaluate(t,null,{},r,i);return this._calculate(n,n,n,t)}return this._calculate(e.expression.evaluate(new Io(Math.floor(t.zoom-1),t)),e.expression.evaluate(new Io(Math.floor(t.zoom),t)),e.expression.evaluate(new Io(Math.floor(t.zoom+1),t)),t)}}_calculate(e,t,r,i){return i.zoom>i.zoomHistory.lastIntegerZoom?{from:e,to:t}:{from:r,to:t}}interpolate(e){return e}},yq=class{constructor(e,t){this.specification=e,this.name=t}possiblyEvaluate(e,t,r,i){return!!e.expression.evaluate(t,null,{},r,i)}interpolate(){return!1}},dc=class{constructor(e){this.properties=e,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},this.overridableProperties=[];for(let t in e){let r=e[t];r.specification.overridable&&this.overridableProperties.push(t);let i=this.defaultPropertyValues[t]=new tC(r,void 0,r.name,void 0),n=this.defaultTransitionablePropertyValues[t]=new hie(r,r.name,void 0);this.defaultTransitioningPropertyValues[t]=n.untransitioned(),this.defaultPossiblyEvaluatedValues[t]=i.possiblyEvaluate({})}}};Hi("DataDrivenProperty",kn),Hi("DataConstantProperty",Pi),Hi("CrossFadedDataDrivenProperty",rC),Hi("CrossFadedProperty",Fit),Hi("ColorRampProperty",yq);cet=" is a PAINT property not a LAYOUT property. Use get/setPaintProperty instead?",jre=" is a LAYOUT property not a PAINT property. Use get/setLayoutProperty instead?",Iv=class extends cu{constructor(e,t,r){if(super(),this.id=e.id,this.type=e.type,this._globalState=r,this._featureFilter={filter:()=>!0,needGeometry:!1,getGlobalStateRefs:()=>new Set},this._visibilityExpression=$xr(this.visibility,`layers[${this.id}].layout.visibility`,r),e.type!=="custom"&&(this.metadata=e.metadata,this.minzoom=e.minzoom,this.maxzoom=e.maxzoom,e.type!=="background"&&(this.source=e.source,this.sourceLayer=e["source-layer"],this.filter=e.filter,this._featureFilter=VT(e.filter,`layers[${this.id}].filter`,r)),t.layout&&(this._unevaluatedLayout=new Xxr(t.layout,`layers[${this.id}].layout`,r)),t.paint)){this._transitionablePaint=new MC(t.paint,`layers[${this.id}].paint`,r);for(let i in e.paint)this.setPaintProperty(i,e.paint[i],{validate:!1});for(let i in e.layout)this.setLayoutProperty(i,e.layout[i],{validate:!1});this._transitioningPaint=this._transitionablePaint.untransitioned(),this.paint=new mq(t.paint)}}setFilter(e){this.filter=e,this._featureFilter=VT(e,`layers[${this.id}].filter`,this._globalState)}getCrossfadeParameters(){return this._crossfadeParameters}getLayoutProperty(e){var t;if(e==="visibility")return this.visibility;if((t=this._transitionablePaint)!=null&&t.hasProperty(e))throw Error(e+cet);if(!this._unevaluatedLayout)throw Error(`Cannot get layout property "${e}" on layer type "${this.type}" which has no layout properties.`);return this._unevaluatedLayout.getValue(e)}getLayoutAffectingGlobalStateRefs(){let e=new Set;for(let t of this._visibilityExpression.getGlobalStateRefs())e.add(t);if(this._unevaluatedLayout)for(let t in this._unevaluatedLayout._values){let r=this._unevaluatedLayout._values[t];for(let i of r.getGlobalStateRefs())e.add(i)}for(let t of this._featureFilter.getGlobalStateRefs())e.add(t);return e}getPaintAffectingGlobalStateRefs(){var t;let e=new globalThis.Map;if(this._transitionablePaint)for(let r in this._transitionablePaint._values){let i=this._transitionablePaint._values[r].value;for(let n of i.getGlobalStateRefs()){let a=(t=e.get(n))!=null?t:[];a.push({name:r,value:i.value}),e.set(n,a)}}return e}getVisibilityAffectingGlobalStateRefs(){return this._visibilityExpression.getGlobalStateRefs()}setLayoutProperty(e,t,r={}){var i;if(e==="visibility"){this.visibility=t,this._visibilityExpression.setValue(t),this.recalculateVisibility();return}if((i=this._transitionablePaint)!=null&&i.hasProperty(e)){this.fire(new Mn(Error(e+cet)));return}t!=null&&this._validate(mh.layoutProperty,`layers.${this.id}.layout.${e}`,e,t,r)||this._unevaluatedLayout.setValue(e,t)}getPaintProperty(e){var t,r;if(e.endsWith("-transition")){let i=e.slice(0,-11);if(i==="visibility"||(t=this._unevaluatedLayout)!=null&&t.hasProperty(i))throw Error(e+jre);return this._transitionablePaint.getTransition(i)}if(e==="visibility"||(r=this._unevaluatedLayout)!=null&&r.hasProperty(e))throw Error(e+jre);return this._transitionablePaint.getValue(e)}setPaintProperty(e,t,r={}){var i;if(e==="visibility"||(i=this._unevaluatedLayout)!=null&&i.hasProperty(e))return this.fire(new Mn(Error(e+jre))),!1;if(t!=null&&this._validate(mh.paintProperty,`layers.${this.id}.paint.${e}`,e,t,r))return!1;if(e.endsWith("-transition"))return this._transitionablePaint.setTransition(e.slice(0,-11),t||void 0),!1;{let n=this._transitionablePaint._values[e],a=n.property.specification["property-type"]==="cross-faded-data-driven",o=n.value.isDataDriven(),s=n.value;this._transitionablePaint.setValue(e,t),this._handleSpecialPaintPropertyUpdate(e);let l=this._transitionablePaint._values[e].value;return l.isDataDriven()||o||a||this._handleOverridablePaintPropertyUpdate(e,s,l)}}_handleSpecialPaintPropertyUpdate(e){}_handleOverridablePaintPropertyUpdate(e,t,r){return!1}isHidden(e=this.minzoom,t=!1){return this.minzoom&&e<(t?Math.floor(this.minzoom):this.minzoom)||this.maxzoom&&e>=this.maxzoom?!0:this._evaluatedVisibility==="none"}updateTransitions(e){this._transitioningPaint=this._transitionablePaint.transitioned(e,this._transitioningPaint)}retainPriorGlobalState(e,t){var r;(r=this._transitionablePaint)==null||r.retainPriorGlobalState(e,t,this._transitioningPaint)}hasTransition(){return this._transitioningPaint.hasTransition()}recalculateVisibility(){this._evaluatedVisibility=this._visibilityExpression.evaluate()}recalculate(e,t){e.getCrossfadeParameters&&(this._crossfadeParameters=e.getCrossfadeParameters()),this._unevaluatedLayout&&(this.layout=this._unevaluatedLayout.possiblyEvaluate(e,void 0,t)),this.paint=this._transitioningPaint.possiblyEvaluate(e,void 0,t)}serialize(){var t,r;let e={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:(t=this._unevaluatedLayout)==null?void 0:t.serialize(),paint:(r=this._transitionablePaint)==null?void 0:r.serialize()};return this.visibility&&(e.layout||(e.layout={}),e.layout.visibility=this.visibility),xne(e,(i,n)=>i!==void 0&&!(n==="layout"&&!Object.keys(i).length)&&!(n==="paint"&&!Object.keys(i).length))}_validate(e,t,r,i,n={}){return KT(this,e,{key:t,layerType:this.type,objectKey:r,value:i},n)}is3D(){return!1}isTileClipped(){return!1}hasOffscreenPass(){return!1}resize(){}isStateDependent(){for(let e in this.paint._values){let t=this.paint.get(e);if(t instanceof ap&&NT(t.property.specification)&&(t.value.kind==="source"||t.value.kind==="composite")&&t.value.isStateDependent)return!0}return!1}},Zxr=()=>fet||(fet=new dc({"raster-opacity":new Pi(_r.paint_raster["raster-opacity"],"raster-opacity"),"raster-hue-rotate":new Pi(_r.paint_raster["raster-hue-rotate"],"raster-hue-rotate"),"raster-brightness-min":new Pi(_r.paint_raster["raster-brightness-min"],"raster-brightness-min"),"raster-brightness-max":new Pi(_r.paint_raster["raster-brightness-max"],"raster-brightness-max"),"raster-saturation":new Pi(_r.paint_raster["raster-saturation"],"raster-saturation"),"raster-contrast":new Pi(_r.paint_raster["raster-contrast"],"raster-contrast"),resampling:new Pi(_r.paint_raster.resampling,"resampling"),"raster-resampling":new Pi(_r.paint_raster["raster-resampling"],"raster-resampling"),"raster-fade-duration":new Pi(_r.paint_raster["raster-fade-duration"],"raster-fade-duration")})),Kxr={get paint(){return Zxr()}},xq=e=>e.type==="raster",Jxr=class extends Iv{constructor(e,t){super(e,Kxr,t)}},Qxr={Int8:Int8Array,Uint8:Uint8Array,Int16:Int16Array,Uint16:Uint16Array,Int32:Int32Array,Uint32:Uint32Array,Float32:Float32Array},SC=class{constructor(e,t){this._structArray=e,this._pos1=t*this.size,this._pos2=this._pos1/2,this._pos4=this._pos1/4,this._pos8=this._pos1/8}},Tl=class{constructor(){this.isTransferred=!1,this.capacity=-1,this.resize(0)}static serialize(e,t){return e._trim(),t&&(e.isTransferred=!0,t.push(e.arrayBuffer)),{length:e.length,arrayBuffer:e.arrayBuffer}}static deserialize(e){let t=Object.create(this.prototype);return t.arrayBuffer=e.arrayBuffer,t.length=e.length,t.capacity=e.arrayBuffer.byteLength/t.bytesPerElement,t._refreshViews(),t}_trim(){this.length!==this.capacity&&(this.capacity=this.length,this.arrayBuffer=this.arrayBuffer.slice(0,this.length*this.bytesPerElement),this._refreshViews())}clear(){this.length=0}resize(e){this.reserve(e),this.length=e}reserve(e){if(e>this.capacity){this.capacity=Math.max(e,Math.floor(this.capacity*5),128),this.arrayBuffer=new ArrayBuffer(this.capacity*this.bytesPerElement);let t=this.uint8;this._refreshViews(),t&&this.uint8.set(t)}}_refreshViews(){throw Error("_refreshViews() must be implemented by each concrete StructArray layout")}freeBufferAfterUpload(){this.arrayBuffer=new ArrayBuffer(0),this._refreshViews()}};iC=class extends Tl{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,t){let r=this.length;return this.resize(r+1),this.emplace(r,e,t)}emplace(e,t,r){let i=e*2;return this.int16[i+0]=t,this.int16[i+1]=r,e}};iC.prototype.bytesPerElement=4,Hi("StructArrayLayout2i4",iC);FB=class extends Tl{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,t,r){let i=this.length;return this.resize(i+1),this.emplace(i,e,t,r)}emplace(e,t,r,i){let n=e*3;return this.int16[n+0]=t,this.int16[n+1]=r,this.int16[n+2]=i,e}};FB.prototype.bytesPerElement=6,Hi("StructArrayLayout3i6",FB);die=class extends Tl{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,t,r,i){let n=this.length;return this.resize(n+1),this.emplace(n,e,t,r,i)}emplace(e,t,r,i,n){let a=e*4;return this.int16[a+0]=t,this.int16[a+1]=r,this.int16[a+2]=i,this.int16[a+3]=n,e}};die.prototype.bytesPerElement=8,Hi("StructArrayLayout4i8",die);pie=class extends Tl{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,t,r,i,n,a){let o=this.length;return this.resize(o+1),this.emplace(o,e,t,r,i,n,a)}emplace(e,t,r,i,n,a,o){let s=e*6;return this.int16[s+0]=t,this.int16[s+1]=r,this.int16[s+2]=i,this.int16[s+3]=n,this.int16[s+4]=a,this.int16[s+5]=o,e}};pie.prototype.bytesPerElement=12,Hi("StructArrayLayout2i4i12",pie);vie=class extends Tl{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,t,r,i,n,a){let o=this.length;return this.resize(o+1),this.emplace(o,e,t,r,i,n,a)}emplace(e,t,r,i,n,a,o){let s=e*4,l=e*8;return this.int16[s+0]=t,this.int16[s+1]=r,this.uint8[l+4]=i,this.uint8[l+5]=n,this.uint8[l+6]=a,this.uint8[l+7]=o,e}};vie.prototype.bytesPerElement=8,Hi("StructArrayLayout2i4ub8",vie);nC=class extends Tl{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,t){let r=this.length;return this.resize(r+1),this.emplace(r,e,t)}emplace(e,t,r){let i=e*2;return this.float32[i+0]=t,this.float32[i+1]=r,e}};nC.prototype.bytesPerElement=8,Hi("StructArrayLayout2f8",nC);gie=class extends Tl{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,t,r,i,n,a,o,s,l,u){let c=this.length;return this.resize(c+1),this.emplace(c,e,t,r,i,n,a,o,s,l,u)}emplace(e,t,r,i,n,a,o,s,l,u,c){let f=e*10;return this.uint16[f+0]=t,this.uint16[f+1]=r,this.uint16[f+2]=i,this.uint16[f+3]=n,this.uint16[f+4]=a,this.uint16[f+5]=o,this.uint16[f+6]=s,this.uint16[f+7]=l,this.uint16[f+8]=u,this.uint16[f+9]=c,e}};gie.prototype.bytesPerElement=20,Hi("StructArrayLayout10ui20",gie);mie=class extends Tl{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,t,r,i,n,a,o,s){let l=this.length;return this.resize(l+1),this.emplace(l,e,t,r,i,n,a,o,s)}emplace(e,t,r,i,n,a,o,s,l){let u=e*8;return this.uint16[u+0]=t,this.uint16[u+1]=r,this.uint16[u+2]=i,this.uint16[u+3]=n,this.uint16[u+4]=a,this.uint16[u+5]=o,this.uint16[u+6]=s,this.uint16[u+7]=l,e}};mie.prototype.bytesPerElement=16,Hi("StructArrayLayout8ui16",mie);yie=class extends Tl{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,t,r,i,n,a,o,s,l,u,c,f,h){let p=this.length;return this.resize(p+1),this.emplace(p,e,t,r,i,n,a,o,s,l,u,c,f,h)}emplace(e,t,r,i,n,a,o,s,l,u,c,f,h,p){let d=e*14,v=e*7;return this.int16[d+0]=t,this.int16[d+1]=r,this.int16[d+2]=i,this.int16[d+3]=n,this.uint16[d+4]=a,this.uint16[d+5]=o,this.uint16[d+6]=s,this.uint16[d+7]=l,this.int16[d+8]=u,this.int16[d+9]=c,this.int16[d+10]=f,this.int16[d+11]=h,this.float32[v+6]=p,e}};yie.prototype.bytesPerElement=28,Hi("StructArrayLayout4i4ui4i1f28",yie);xie=class extends Tl{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,t,r){let i=this.length;return this.resize(i+1),this.emplace(i,e,t,r)}emplace(e,t,r,i){let n=e*3;return this.float32[n+0]=t,this.float32[n+1]=r,this.float32[n+2]=i,e}};xie.prototype.bytesPerElement=12,Hi("StructArrayLayout3f12",xie);bie=class extends Tl{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)}emplaceBack(e){let t=this.length;return this.resize(t+1),this.emplace(t,e)}emplace(e,t){let r=e*1;return this.uint32[r+0]=t,e}};bie.prototype.bytesPerElement=4,Hi("StructArrayLayout1ul4",bie);_ie=class extends Tl{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,t,r,i,n,a,o,s,l){let u=this.length;return this.resize(u+1),this.emplace(u,e,t,r,i,n,a,o,s,l)}emplace(e,t,r,i,n,a,o,s,l,u){let c=e*10,f=e*5;return this.int16[c+0]=t,this.int16[c+1]=r,this.int16[c+2]=i,this.int16[c+3]=n,this.int16[c+4]=a,this.int16[c+5]=o,this.uint32[f+3]=s,this.uint16[c+8]=l,this.uint16[c+9]=u,e}};_ie.prototype.bytesPerElement=20,Hi("StructArrayLayout6i1ul2ui20",_ie);wie=class extends Tl{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,t,r,i,n,a){let o=this.length;return this.resize(o+1),this.emplace(o,e,t,r,i,n,a)}emplace(e,t,r,i,n,a,o){let s=e*6;return this.int16[s+0]=t,this.int16[s+1]=r,this.int16[s+2]=i,this.int16[s+3]=n,this.int16[s+4]=a,this.int16[s+5]=o,e}};wie.prototype.bytesPerElement=12,Hi("StructArrayLayout2i2i2i12",wie);Tie=class extends Tl{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,t,r,i,n){let a=this.length;return this.resize(a+1),this.emplace(a,e,t,r,i,n)}emplace(e,t,r,i,n,a){let o=e*4,s=e*8;return this.float32[o+0]=t,this.float32[o+1]=r,this.float32[o+2]=i,this.int16[s+6]=n,this.int16[s+7]=a,e}};Tie.prototype.bytesPerElement=16,Hi("StructArrayLayout2f1f2i16",Tie);Aie=class extends Tl{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,t,r,i,n,a){let o=this.length;return this.resize(o+1),this.emplace(o,e,t,r,i,n,a)}emplace(e,t,r,i,n,a,o){let s=e*16,l=e*4,u=e*8;return this.uint8[s+0]=t,this.uint8[s+1]=r,this.float32[l+1]=i,this.float32[l+2]=n,this.int16[u+6]=a,this.int16[u+7]=o,e}};Aie.prototype.bytesPerElement=16,Hi("StructArrayLayout2ub2f2i16",Aie);LB=class extends Tl{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,t,r){let i=this.length;return this.resize(i+1),this.emplace(i,e,t,r)}emplace(e,t,r,i){let n=e*3;return this.uint16[n+0]=t,this.uint16[n+1]=r,this.uint16[n+2]=i,e}};LB.prototype.bytesPerElement=6,Hi("StructArrayLayout3ui6",LB);Mie=class extends Tl{_refreshViews(){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)}emplaceBack(e,t,r,i,n,a,o,s,l,u,c,f,h,p,d,v,m,g){let w=this.length;return this.resize(w+1),this.emplace(w,e,t,r,i,n,a,o,s,l,u,c,f,h,p,d,v,m,g)}emplace(e,t,r,i,n,a,o,s,l,u,c,f,h,p,d,v,m,g,w){let _=e*26,b=e*13,S=e*52;return this.int16[_+0]=t,this.int16[_+1]=r,this.uint16[_+2]=i,this.uint16[_+3]=n,this.uint32[b+2]=a,this.uint32[b+3]=o,this.uint32[b+4]=s,this.uint16[_+10]=l,this.uint16[_+11]=u,this.uint16[_+12]=c,this.float32[b+7]=f,this.float32[b+8]=h,this.uint8[S+36]=p,this.uint8[S+37]=d,this.uint8[S+38]=v,this.uint32[b+10]=m,this.int16[_+22]=g,this.float32[b+12]=w,e}};Mie.prototype.bytesPerElement=52,Hi("StructArrayLayout2i2ui3ul3ui2f3ub1ul1i1f52",Mie);Sie=class extends Tl{_refreshViews(){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)}emplaceBack(e,t,r,i,n,a,o,s,l,u,c,f,h,p,d,v,m,g,w,_,b,S,x,A,T,y,E,M,C){let k=this.length;return this.resize(k+1),this.emplace(k,e,t,r,i,n,a,o,s,l,u,c,f,h,p,d,v,m,g,w,_,b,S,x,A,T,y,E,M,C)}emplace(e,t,r,i,n,a,o,s,l,u,c,f,h,p,d,v,m,g,w,_,b,S,x,A,T,y,E,M,C,k){let D=e*34,F=e*17;return this.int16[D+0]=t,this.int16[D+1]=r,this.int16[D+2]=i,this.int16[D+3]=n,this.int16[D+4]=a,this.int16[D+5]=o,this.int16[D+6]=s,this.int16[D+7]=l,this.uint16[D+8]=u,this.uint16[D+9]=c,this.uint16[D+10]=f,this.uint16[D+11]=h,this.uint16[D+12]=p,this.uint16[D+13]=d,this.uint16[D+14]=v,this.uint16[D+15]=m,this.uint16[D+16]=g,this.uint16[D+17]=w,this.uint16[D+18]=_,this.uint16[D+19]=b,this.uint16[D+20]=S,this.uint16[D+21]=x,this.uint16[D+22]=A,this.uint32[F+12]=T,this.float32[F+13]=y,this.float32[F+14]=E,this.uint16[D+30]=M,this.uint16[D+31]=C,this.float32[F+16]=k,e}};Sie.prototype.bytesPerElement=68,Hi("StructArrayLayout8i15ui1ul2f2ui1f68",Sie);PB=class extends Tl{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e){let t=this.length;return this.resize(t+1),this.emplace(t,e)}emplace(e,t){let r=e*1;return this.float32[r+0]=t,e}};PB.prototype.bytesPerElement=4,Hi("StructArrayLayout1f4",PB);Eie=class extends Tl{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,t,r){let i=this.length;return this.resize(i+1),this.emplace(i,e,t,r)}emplace(e,t,r,i){let n=e*6,a=e*3;return this.uint16[n+0]=t,this.float32[a+1]=r,this.float32[a+2]=i,e}};Eie.prototype.bytesPerElement=12,Hi("StructArrayLayout1ui2f12",Eie);kie=class extends Tl{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,t,r){let i=this.length;return this.resize(i+1),this.emplace(i,e,t,r)}emplace(e,t,r,i){let n=e*2,a=e*4;return this.uint32[n+0]=t,this.uint16[a+2]=r,this.uint16[a+3]=i,e}};kie.prototype.bytesPerElement=8,Hi("StructArrayLayout1ul2ui8",kie);Cie=class extends Tl{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,t){let r=this.length;return this.resize(r+1),this.emplace(r,e,t)}emplace(e,t,r){let i=e*2;return this.uint16[i+0]=t,this.uint16[i+1]=r,e}};Cie.prototype.bytesPerElement=4,Hi("StructArrayLayout2ui4",Cie);Die=class extends Tl{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e){let t=this.length;return this.resize(t+1),this.emplace(t,e)}emplace(e,t){let r=e*1;return this.uint16[r+0]=t,e}};Die.prototype.bytesPerElement=2,Hi("StructArrayLayout1ui2",Die);Fie=class extends Tl{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,t,r,i){let n=this.length;return this.resize(n+1),this.emplace(n,e,t,r,i)}emplace(e,t,r,i,n){let a=e*4;return this.float32[a+0]=t,this.float32[a+1]=r,this.float32[a+2]=i,this.float32[a+3]=n,e}};Fie.prototype.bytesPerElement=16,Hi("StructArrayLayout4f16",Fie);Lit=class extends SC{get anchorPointX(){return this._structArray.int16[this._pos2+0]}get anchorPointY(){return this._structArray.int16[this._pos2+1]}get x1(){return this._structArray.int16[this._pos2+2]}get y1(){return this._structArray.int16[this._pos2+3]}get x2(){return this._structArray.int16[this._pos2+4]}get y2(){return this._structArray.int16[this._pos2+5]}get featureIndex(){return this._structArray.uint32[this._pos4+3]}get sourceLayerIndex(){return this._structArray.uint16[this._pos2+8]}get bucketIndex(){return this._structArray.uint16[this._pos2+9]}get anchorPoint(){return new rr(this.anchorPointX,this.anchorPointY)}};Lit.prototype.size=20;Wne=class extends _ie{get(e){return new Lit(this,e)}};Hi("CollisionBoxArray",Wne);Pit=class extends SC{get anchorX(){return this._structArray.int16[this._pos2+0]}get anchorY(){return this._structArray.int16[this._pos2+1]}get glyphStartIndex(){return this._structArray.uint16[this._pos2+2]}get numGlyphs(){return this._structArray.uint16[this._pos2+3]}get vertexStartIndex(){return this._structArray.uint32[this._pos4+2]}get lineStartIndex(){return this._structArray.uint32[this._pos4+3]}get lineLength(){return this._structArray.uint32[this._pos4+4]}get segment(){return this._structArray.uint16[this._pos2+10]}get lowerSize(){return this._structArray.uint16[this._pos2+11]}get upperSize(){return this._structArray.uint16[this._pos2+12]}get lineOffsetX(){return this._structArray.float32[this._pos4+7]}get lineOffsetY(){return this._structArray.float32[this._pos4+8]}get writingMode(){return this._structArray.uint8[this._pos1+36]}get placedOrientation(){return this._structArray.uint8[this._pos1+37]}set placedOrientation(e){this._structArray.uint8[this._pos1+37]=e}get hidden(){return this._structArray.uint8[this._pos1+38]}set hidden(e){this._structArray.uint8[this._pos1+38]=e}get crossTileID(){return this._structArray.uint32[this._pos4+10]}set crossTileID(e){this._structArray.uint32[this._pos4+10]=e}get associatedIconIndex(){return this._structArray.int16[this._pos2+22]}get heightOffset(){return this._structArray.float32[this._pos4+12]}};Pit.prototype.size=52;Iit=class extends Mie{get(e){return new Pit(this,e)}};Hi("PlacedSymbolArray",Iit);Rit=class extends SC{get anchorX(){return this._structArray.int16[this._pos2+0]}get anchorY(){return this._structArray.int16[this._pos2+1]}get rightJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+2]}get centerJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+3]}get leftJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+4]}get verticalPlacedTextSymbolIndex(){return this._structArray.int16[this._pos2+5]}get placedIconSymbolIndex(){return this._structArray.int16[this._pos2+6]}get verticalPlacedIconSymbolIndex(){return this._structArray.int16[this._pos2+7]}get key(){return this._structArray.uint16[this._pos2+8]}get textBoxStartIndex(){return this._structArray.uint16[this._pos2+9]}get textBoxEndIndex(){return this._structArray.uint16[this._pos2+10]}get verticalTextBoxStartIndex(){return this._structArray.uint16[this._pos2+11]}get verticalTextBoxEndIndex(){return this._structArray.uint16[this._pos2+12]}get iconBoxStartIndex(){return this._structArray.uint16[this._pos2+13]}get iconBoxEndIndex(){return this._structArray.uint16[this._pos2+14]}get verticalIconBoxStartIndex(){return this._structArray.uint16[this._pos2+15]}get verticalIconBoxEndIndex(){return this._structArray.uint16[this._pos2+16]}get featureIndex(){return this._structArray.uint16[this._pos2+17]}get numHorizontalGlyphVertices(){return this._structArray.uint16[this._pos2+18]}get numVerticalGlyphVertices(){return this._structArray.uint16[this._pos2+19]}get numIconVertices(){return this._structArray.uint16[this._pos2+20]}get numVerticalIconVertices(){return this._structArray.uint16[this._pos2+21]}get useRuntimeCollisionCircles(){return this._structArray.uint16[this._pos2+22]}get crossTileID(){return this._structArray.uint32[this._pos4+12]}set crossTileID(e){this._structArray.uint32[this._pos4+12]=e}get textBoxScale(){return this._structArray.float32[this._pos4+13]}get collisionCircleDiameter(){return this._structArray.float32[this._pos4+14]}get textAnchorOffsetStartIndex(){return this._structArray.uint16[this._pos2+30]}get textAnchorOffsetEndIndex(){return this._structArray.uint16[this._pos2+31]}get heightOffset(){return this._structArray.float32[this._pos4+16]}};Rit.prototype.size=68;zit=class extends Sie{get(e){return new Rit(this,e)}};Hi("SymbolInstanceArray",zit);Bit=class extends PB{getoffsetX(e){return this.float32[e*1+0]}};Hi("GlyphOffsetArray",Bit);qit=class extends FB{getx(e){return this.int16[e*3+0]}gety(e){return this.int16[e*3+1]}gettileUnitDistanceFromAnchor(e){return this.int16[e*3+2]}};Hi("SymbolLineVertexArray",qit);Oit=class extends SC{get textAnchor(){return this._structArray.uint16[this._pos2+0]}get textOffset0(){return this._structArray.float32[this._pos4+1]}get textOffset1(){return this._structArray.float32[this._pos4+2]}};Oit.prototype.size=12;Nit=class extends Eie{get(e){return new Oit(this,e)}};Hi("TextAnchorOffsetArray",Nit);Uit=class extends SC{get featureIndex(){return this._structArray.uint32[this._pos4+0]}get sourceLayerIndex(){return this._structArray.uint16[this._pos2+2]}get bucketIndex(){return this._structArray.uint16[this._pos2+3]}};Uit.prototype.size=8;Vit=class extends kie{get(e){return new Uit(this,e)}};Hi("FeatureIndexArray",Vit);Hm=class extends iC{},Git=class extends FB{},Hit=class extends die{},tbr=class extends iC{},rbr=class extends iC{},ibr=class extends pie{},nbr=class extends vie{},abr=class extends nC{},bT=class extends gie{},det=class extends mie{},obr=class extends yie{},sbr=class extends xie{},lbr=class extends bie{},pet=class extends wie{},jit=class extends Tie{},ubr=class extends Aie{},$it=class extends LB{},Rv=class extends LB{},Lie=class extends Cie{},Wit=class extends Die{},Pie=cl([{name:"a_pos",components:2,type:"Int16"}],4),cbr=Pie.members;Pie.size,Pie.alignment;Js=class MT{constructor(t=[]){this._forceNewSegmentOnNextPrepare=!1,this.segments=t}prepareSegment(t,r,i,n){let a=this.segments[this.segments.length-1];return t>MT.MAX_VERTEX_ARRAY_LENGTH&&Pa(`Max vertices per segment is ${MT.MAX_VERTEX_ARRAY_LENGTH}: bucket requested ${t}. Consider using the \`fillLargeMeshArrays\` function if you require meshes with more than ${MT.MAX_VERTEX_ARRAY_LENGTH} vertices.`),this._forceNewSegmentOnNextPrepare||!a||a.vertexLength+t>MT.MAX_VERTEX_ARRAY_LENGTH||a.sortKey!==n?this.createNewSegment(r,i,n):a}createNewSegment(t,r,i){let n={vertexOffset:t.length,primitiveOffset:r.length,vertexLength:0,primitiveLength:0,vaos:{}};return i!==void 0&&(n.sortKey=i),this._forceNewSegmentOnNextPrepare=!1,this.segments.push(n),n}getOrCreateLatestSegment(t,r,i){return this.prepareSegment(0,t,r,i)}forceNewSegmentOnNextPrepare(){this._forceNewSegmentOnNextPrepare=!0}get(){return this.segments}destroy(){for(let t of this.segments)for(let r in t.vaos)t.vaos[r].destroy()}static simpleSegment(t,r,i,n){return new MT([{vertexOffset:t,primitiveOffset:r,vertexLength:i,primitiveLength:n,vaos:{},sortKey:0}])}};Js.MAX_VERTEX_ARRAY_LENGTH=2**16-1,Hi("SegmentVector",Js);fbr=cl([{name:"a_pattern_from",components:4,type:"Uint16"},{name:"a_pattern_to",components:4,type:"Uint16"},{name:"a_pixel_ratio_from",components:1,type:"Uint16"},{name:"a_pixel_ratio_to",components:1,type:"Uint16"}]),hbr=cl([{name:"a_dasharray_from",components:4,type:"Uint16"},{name:"a_dasharray_to",components:4,type:"Uint16"}]),dbr=une(((e,t)=>{function r(i,n){for(var a=i.length&3,o=i.length-a,s=n,l,u=3432918353,c=461845907,f,h=0;h>>16)*u&65535)<<16)&4294967295,f=f<<15|f>>>17,f=(f&65535)*c+(((f>>>16)*c&65535)<<16)&4294967295,s^=f,s=s<<13|s>>>19,l=(s&65535)*5+(((s>>>16)*5&65535)<<16)&4294967295,s=(l&65535)+27492+(((l>>>16)+58964&65535)<<16);switch(f=0,a){case 3:f^=(i.charCodeAt(h+2)&255)<<16;case 2:f^=(i.charCodeAt(h+1)&255)<<8;case 1:f^=i.charCodeAt(h)&255,f=(f&65535)*u+(((f>>>16)*u&65535)<<16)&4294967295,f=f<<15|f>>>17,f=(f&65535)*c+(((f>>>16)*c&65535)<<16)&4294967295,s^=f}return s^=i.length,s^=s>>>16,s=(s&65535)*2246822507+(((s>>>16)*2246822507&65535)<<16)&4294967295,s^=s>>>13,s=(s&65535)*3266489909+(((s>>>16)*3266489909&65535)<<16)&4294967295,s^=s>>>16,s>>>0}t!==void 0&&(t.exports=r)})),pbr=une(((e,t)=>{function r(i,n){for(var a=i.length,o=n^a,s=0,l;a>=4;)l=i.charCodeAt(s)&255|(i.charCodeAt(++s)&255)<<8|(i.charCodeAt(++s)&255)<<16|(i.charCodeAt(++s)&255)<<24,l=(l&65535)*1540483477+(((l>>>16)*1540483477&65535)<<16),l^=l>>>24,l=(l&65535)*1540483477+(((l>>>16)*1540483477&65535)<<16),o=(o&65535)*1540483477+(((o>>>16)*1540483477&65535)<<16)^l,a-=4,++s;switch(a){case 3:o^=(i.charCodeAt(s+2)&255)<<16;case 2:o^=(i.charCodeAt(s+1)&255)<<8;case 1:o^=i.charCodeAt(s)&255,o=(o&65535)*1540483477+(((o>>>16)*1540483477&65535)<<16)}return o^=o>>>13,o=(o&65535)*1540483477+(((o>>>16)*1540483477&65535)<<16),o^=o>>>15,o>>>0}t.exports=r})),IB=kyr(une(((e,t)=>{var r=dbr(),i=pbr();t.exports=r,t.exports.murmur3=r,t.exports.murmur2=i}))(),1),Yit=class Xit{constructor(){this.ids=[],this.positions=[],this.indexed=!1}add(t,r,i,n){this.ids.push(get(t)),this.positions.push(r,i,n)}getPositions(t){if(!this.indexed)throw Error("Trying to get index, but feature positions are not indexed");let r=get(t),i=0,n=this.ids.length-1;for(;i>1;this.ids[o]>=r?n=o:i=o+1}let a=[];for(;this.ids[i]===r;){let o=this.positions[3*i],s=this.positions[3*i+1],l=this.positions[3*i+2];a.push({index:o,start:s,end:l}),i++}return a}static serialize(t,r){let i=new Float64Array(t.ids),n=new Uint32Array(t.positions);return Iie(i,n,0,i.length-1),r&&r.push(i.buffer,n.buffer),{ids:i,positions:n}}static deserialize(t){let r=new Xit;return r.ids=t.ids,r.positions=t.positions,r.indexed=!0,r}};Hi("FeaturePositionMap",Yit);jm=class{constructor(e,t){this.gl=e.gl,this.location=t}},Sn=class extends jm{constructor(e,t){super(e,t),this.current=0}set(e){this.current!==e&&(this.current=e,this.gl.uniform1i(this.location,e))}},Ni=class extends jm{constructor(e,t){super(e,t),this.current=0}set(e){this.current!==e&&(this.current=e,this.gl.uniform1f(this.location,e))}},xa=class extends jm{constructor(e,t){super(e,t),this.current=[0,0]}set(e){(e[0]!==this.current[0]||e[1]!==this.current[1])&&(this.current=e,this.gl.uniform2f(this.location,e[0],e[1]))}},Gf=class extends jm{constructor(e,t){super(e,t),this.current=[0,0,0]}set(e){(e[0]!==this.current[0]||e[1]!==this.current[1]||e[2]!==this.current[2])&&(this.current=e,this.gl.uniform3f(this.location,e[0],e[1],e[2]))}},JT=class extends jm{constructor(e,t){super(e,t),this.current=[0,0,0,0]}set(e){(e[0]!==this.current[0]||e[1]!==this.current[1]||e[2]!==this.current[2]||e[3]!==this.current[3])&&(this.current=e,this.gl.uniform4f(this.location,e[0],e[1],e[2],e[3]))}},$m=class extends jm{constructor(e,t){super(e,t),this.current=aa.transparent}set(e){(e.r!==this.current.r||e.g!==this.current.g||e.b!==this.current.b||e.a!==this.current.a)&&(this.current=e,this.gl.uniform4f(this.location,e.r,e.g,e.b,e.a))}},Yne=class extends jm{constructor(e,t){super(e,t),this.current=[]}set(e){if(e!=this.current){this.current=e;let t=new Float32Array(e.length*4);for(let r=0;r`u_${i}`),this.type=r}setUniform(e,t,r){e.set(r.constantOr(this.value))}getBinding(e,t,r){return this.type==="color"?new $m(e,t):new Ni(e,t)}},Q_=class{constructor(e,t){this.uniformNames=t.map(r=>`u_${r}`),this.patternFrom=null,this.patternTo=null,this.pixelRatioFrom=1,this.pixelRatioTo=1}setConstantPatternPositions(e,t){this.pixelRatioFrom=t.pixelRatio,this.pixelRatioTo=e.pixelRatio,this.patternFrom=t.tlbr,this.patternTo=e.tlbr}setConstantDashPositions(e,t){this.dashTo=[0,e.y,e.height,e.width],this.dashFrom=[0,t.y,t.height,t.width]}setUniform(e,t,r,i){let n=null;i==="u_pattern_to"?n=this.patternTo:i==="u_pattern_from"?n=this.patternFrom:i==="u_dasharray_to"?n=this.dashTo:i==="u_dasharray_from"?n=this.dashFrom:i==="u_pixel_ratio_to"?n=this.pixelRatioTo:i==="u_pixel_ratio_from"&&(n=this.pixelRatioFrom),n!==null&&e.set(n)}getBinding(e,t,r){return r.startsWith("u_pattern")||r.startsWith("u_dasharray_")?new JT(e,t):new Ni(e,t)}},Pm=class{constructor(e,t,r,i){this.expression=e,this.type=r,this.maxValue=0,this.paintVertexAttributes=t.map(n=>({name:`a_${n}`,type:"Float32",components:r==="color"?2:1,offset:0})),this.paintVertexArray=new i}populatePaintArray(e,t,r){let i=this.paintVertexArray.length,n=this.expression.evaluate(new Io(0,r),t,{},r.canonical,[],r.formattedSection);this.paintVertexArray.resize(e),this._setPaintValue(i,e,n)}updatePaintArray(e,t,r,i,n){let a=this.expression.evaluate(new Io(0,n),r,i);this._setPaintValue(e,t,a)}_setPaintValue(e,t,r){if(this.type==="color"){let i=Rie(r);for(let n=e;n`u_${o}_t`),this.type=r,this.useIntegerZoom=i,this.zoom=n,this.maxValue=0,this.paintVertexAttributes=t.map(o=>({name:`a_${o}`,type:"Float32",components:r==="color"?4:2,offset:0})),this.paintVertexArray=new a}populatePaintArray(e,t,r){let i=this.expression.evaluate(new Io(this.zoom,r),t,{},r.canonical,[],r.formattedSection),n=this.expression.evaluate(new Io(this.zoom+1,r),t,{},r.canonical,[],r.formattedSection),a=this.paintVertexArray.length;this.paintVertexArray.resize(e),this._setPaintValue(a,e,i,n)}updatePaintArray(e,t,r,i,n){let a=this.expression.evaluate(new Io(this.zoom,n),r,i),o=this.expression.evaluate(new Io(this.zoom+1,n),r,i);this._setPaintValue(e,t,a,o)}_setPaintValue(e,t,r,i){if(this.type==="color"){let n=Rie(r),a=Rie(i);for(let o=e;o`#define HAS_UNIFORM_${i}`))}return e}getBinderAttributes(){let e=[];for(let t in this.binders){let r=this.binders[t];if(r instanceof Pm||r instanceof Ev)for(let i of r.paintVertexAttributes)e.push(i.name);else if(r instanceof rx){let i=r.getVertexAttributes();for(let n of i)e.push(n.name)}}return e}getBinderUniforms(){let e=[];for(let t in this.binders){let r=this.binders[t];if(r instanceof Bk||r instanceof Q_||r instanceof Ev)for(let i of r.uniformNames)e.push(i)}return e}getPaintVertexBuffers(){return this._buffers}getUniforms(e,t){let r=[];for(let i in this.binders){let n=this.binders[i];if(n instanceof Bk||n instanceof Q_||n instanceof Ev){for(let a of n.uniformNames)if(t[a]){let o=n.getBinding(e,t[a],a);r.push({name:a,property:i,binding:o})}}}return r}setUniforms(e,t,r,i){for(let{name:n,property:a,binding:o}of t)this.binders[a].setUniform(o,i,r.get(a),n)}updatePaintBuffers(e){this._buffers=[];for(let t in this.binders){let r=this.binders[t];if(e&&r instanceof rx){let i=e.fromScale===2?r.zoomInPaintVertexBuffer:r.zoomOutPaintVertexBuffer;i&&this._buffers.push(i)}else(r instanceof Pm||r instanceof Ev)&&r.paintVertexBuffer&&this._buffers.push(r.paintVertexBuffer)}}upload(e){for(let t in this.binders){let r=this.binders[t];(r instanceof Pm||r instanceof Ev||r instanceof rx)&&r.upload(e)}this.updatePaintBuffers()}destroy(){for(let e in this.binders){let t=this.binders[e];(t instanceof Pm||t instanceof Ev||t instanceof rx)&&t.destroy()}}},l3=class{constructor(e,t,r=()=>!0){this.programConfigurations={};for(let i of e)this.programConfigurations[i.id]=new Jit(i,t,r);this.needsUpload=!1,this._featureMap=new Yit,this._bufferOffset=0}populatePaintArrays(e,t,r,i){for(let n in this.programConfigurations)this.programConfigurations[n].populatePaintArrays(e,t,i);t.id!==void 0&&this._featureMap.add(t.id,r,this._bufferOffset,e),this._bufferOffset=e,this.needsUpload=!0}updatePaintArrays(e,t,r,i){for(let n of r)this.needsUpload=this.programConfigurations[n.id].updatePaintArrays(e,this._featureMap,t,n,i)||this.needsUpload}get(e){return this.programConfigurations[e]}upload(e){if(this.needsUpload){for(let t in this.programConfigurations)this.programConfigurations[t].upload(e);this.needsUpload=!1}}destroy(){for(let e in this.programConfigurations)this.programConfigurations[e].destroy()}};Hi("ConstantBinder",Bk),Hi("CrossFadedConstantBinder",Q_),Hi("SourceExpressionBinder",Pm),Hi("CrossFadedPatternBinder",Zit),Hi("CrossFadedDasharrayBinder",Kit),Hi("CompositeExpressionBinder",Ev),Hi("ProgramConfiguration",Jit,{omit:["_buffers"]}),Hi("ProgramConfigurationSet",l3);zie=2**14-1,yet=-zie-1;xet=-32768;Zne=class{constructor(e){this.zoom=e.zoom,this.overscaling=e.overscaling,this.layers=e.layers,this.layerIds=this.layers.map(t=>t.id),this.index=e.index,this.hasDependencies=!1,this.layoutVertexArray=new tbr,this.indexArray=new Rv,this.segments=new Js,this.programConfigurations=new l3(e.layers,e.zoom),this.stateDependentLayerIds=this.layers.filter(t=>t.isStateDependent()).map(t=>t.id)}populate(e,t,r){let i=this.layers[0],n=[],a=null,o=!1,s=i.type==="heatmap";if(i.type==="circle"){let f=i;a=f.layout.get("circle-sort-key"),o=!a.isConstant(),s||(s=f.paint.get("circle-pitch-alignment")==="map")}let l=s?t.subdivisionGranularity.circle:1,u=new Io(this.zoom),c=this.layers[0]._featureFilter.needGeometry;for(let{feature:f,id:h,index:p,sourceLayerIndex:d}of e){let v=vx(f,c);if(!this.layers[0]._featureFilter.filter(u,v,r))continue;let m=o?a.evaluate(v,{},r):void 0,g={id:h,properties:f.properties,type:f.type,sourceLayerIndex:d,index:p,geometry:c?v.geometry:v3(f),patterns:{},sortKey:m};n.push(g)}o&&n.sort((f,h)=>f.sortKey-h.sortKey);for(let f of n){let{geometry:h,index:p,sourceLayerIndex:d}=f,v=e[p].feature;this.addFeature(f,h,p,r,l),t.featureIndex.insert(v,h,p,d,this.index)}}update(e,t,r){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(e,t,this.stateDependentLayers,{imagePositions:r})}addFeatures(e){}isEmpty(){return this.layoutVertexArray.length===0}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(e){this.uploaded||(this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,cbr),this.indexBuffer=e.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(e),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())}addFeature(e,t,r,i,n=1){let a;switch(n){case 1:a=[0,7];break;case 3:a=[0,2,5,7];break;case 5:a=[0,1,3,4,6,7];break;case 7:a=[0,1,2,3,4,5,6,7];break;default:throw Error(`Invalid circle bucket granularity: ${n}; valid values are 1, 3, 5, 7.`)}let o=a.length;for(let s of t)for(let l of s){let u=l.x,c=l.y;if(u<0||u>=8192||c<0||c>=8192)continue;let f=this.segments.prepareSegment(o*o,this.layoutVertexArray,this.indexArray,e.sortKey),h=f.vertexLength;for(let p=0;p_et||(_et=new dc({"circle-sort-key":new kn(_r.layout_circle["circle-sort-key"],"circle-sort-key")})),Lbr=()=>wet||(wet=new dc({"circle-radius":new kn(_r.paint_circle["circle-radius"],"circle-radius"),"circle-color":new kn(_r.paint_circle["circle-color"],"circle-color"),"circle-blur":new kn(_r.paint_circle["circle-blur"],"circle-blur"),"circle-opacity":new kn(_r.paint_circle["circle-opacity"],"circle-opacity"),"circle-translate":new Pi(_r.paint_circle["circle-translate"],"circle-translate"),"circle-translate-anchor":new Pi(_r.paint_circle["circle-translate-anchor"],"circle-translate-anchor"),"circle-pitch-scale":new Pi(_r.paint_circle["circle-pitch-scale"],"circle-pitch-scale"),"circle-pitch-alignment":new Pi(_r.paint_circle["circle-pitch-alignment"],"circle-pitch-alignment"),"circle-stroke-width":new kn(_r.paint_circle["circle-stroke-width"],"circle-stroke-width"),"circle-stroke-color":new kn(_r.paint_circle["circle-stroke-color"],"circle-stroke-color"),"circle-stroke-opacity":new kn(_r.paint_circle["circle-stroke-opacity"],"circle-stroke-opacity")})),Pbr={get paint(){return Lbr()},get layout(){return Fbr()}},rnt=e=>e.type==="circle",Ibr=class extends Iv{constructor(e,t){super(e,Pbr,t)}createBucket(e){return new Zne(e)}queryRadius(e){let t=e;return FT("circle-radius",this,t)+FT("circle-stroke-width",this,t)+_q(this.paint.get("circle-translate"))}queryIntersectsFeature({queryGeometry:e,feature:t,featureState:r,geometry:i,transform:n,pixelsToTileUnits:a,unwrappedTileID:o,getElevation:s}){let l=wq(e,this.paint.get("circle-translate"),this.paint.get("circle-translate-anchor"),-n.bearingInRadians,a),u=this.paint.get("circle-radius").evaluate(t,r)+this.paint.get("circle-stroke-width").evaluate(t,r),c=this.paint.get("circle-pitch-scale"),f=this.paint.get("circle-pitch-alignment"),h,p;return f==="map"?(h=l,p=u*a):(h=Dbr(l,n,o,s),p=u),tnt({queryGeometry:h,size:p,transform:n,unwrappedTileID:o,getElevation:s,pitchAlignment:f,pitchScale:c},i)}},int=class extends Zne{};Hi("HeatmapBucket",int,{omit:["layers"]});Rbr=()=>Tet||(Tet=new dc({"heatmap-radius":new kn(_r.paint_heatmap["heatmap-radius"],"heatmap-radius"),"heatmap-weight":new kn(_r.paint_heatmap["heatmap-weight"],"heatmap-weight"),"heatmap-intensity":new Pi(_r.paint_heatmap["heatmap-intensity"],"heatmap-intensity"),"heatmap-color":new yq(_r.paint_heatmap["heatmap-color"],"heatmap-color"),"heatmap-opacity":new Pi(_r.paint_heatmap["heatmap-opacity"],"heatmap-opacity")})),zbr={get paint(){return Rbr()}};Tq=class ant{constructor(t,r){eae(this,t,1,r)}resize(t){nnt(this,t,1)}clone(){return new ant({width:this.width,height:this.height},new Uint8Array(this.data))}static copy(t,r,i,n,a){tae(t,r,i,n,a,1)}},Es=class ont{constructor(t,r){eae(this,t,4,r)}resize(t){nnt(this,t,4)}replace(t,r){r?this.data.set(t):this.data=t instanceof Uint8ClampedArray?new Uint8Array(t.buffer):t}clone(){return new ont({width:this.width,height:this.height},new Uint8Array(this.data))}static copy(t,r,i,n,a){tae(t,r,i,n,a,4)}setPixel(t,r,i){let n=(t*this.width+r)*4;this.data[n+0]=Math.round(i.r*255/i.a),this.data[n+1]=Math.round(i.g*255/i.a),this.data[n+2]=Math.round(i.b*255/i.a),this.data[n+3]=Math.round(i.a*255)}};Hi("AlphaImage",Tq),Hi("RGBAImage",Es);EC="big-fb",snt=e=>e.type==="heatmap",Bbr=class extends Iv{createBucket(e){return new int(e)}constructor(e,t){super(e,zbr,t),this.heatmapFbos=new Map,this._updateColorRamp()}_handleSpecialPaintPropertyUpdate(e){e==="heatmap-color"&&this._updateColorRamp()}_updateColorRamp(){let e=this._transitionablePaint._values["heatmap-color"].value.expression;this.colorRamp=rae({expression:e,evaluationKey:"heatmapDensity",image:this.colorRamp}),this.colorRampTexture=null}resize(){this.heatmapFbos.has("big-fb")&&this.heatmapFbos.delete(EC)}queryRadius(e){return FT("heatmap-radius",this,e)}queryIntersectsFeature({queryGeometry:e,feature:t,featureState:r,geometry:i,transform:n,pixelsToTileUnits:a,unwrappedTileID:o,getElevation:s}){return tnt({queryGeometry:e,size:this.paint.get("heatmap-radius").evaluate(t,r)*a,transform:n,unwrappedTileID:o,getElevation:s},i)}hasOffscreenPass(){return this.paint.get("heatmap-opacity")!==0&&!this.isHidden()}},qbr=()=>Aet||(Aet=new dc({"hillshade-illumination-direction":new Pi(_r.paint_hillshade["hillshade-illumination-direction"],"hillshade-illumination-direction"),"hillshade-illumination-altitude":new Pi(_r.paint_hillshade["hillshade-illumination-altitude"],"hillshade-illumination-altitude"),"hillshade-illumination-anchor":new Pi(_r.paint_hillshade["hillshade-illumination-anchor"],"hillshade-illumination-anchor"),"hillshade-exaggeration":new Pi(_r.paint_hillshade["hillshade-exaggeration"],"hillshade-exaggeration"),"hillshade-shadow-color":new Pi(_r.paint_hillshade["hillshade-shadow-color"],"hillshade-shadow-color"),"hillshade-highlight-color":new Pi(_r.paint_hillshade["hillshade-highlight-color"],"hillshade-highlight-color"),"hillshade-accent-color":new Pi(_r.paint_hillshade["hillshade-accent-color"],"hillshade-accent-color"),"hillshade-method":new Pi(_r.paint_hillshade["hillshade-method"],"hillshade-method"),resampling:new Pi(_r.paint_hillshade.resampling,"resampling")})),Obr={get paint(){return qbr()}},lnt=e=>e.type==="hillshade",Nbr=class extends Iv{constructor(e,t){super(e,Obr,t),this.recalculate({zoom:0,zoomHistory:{}},void 0)}getIlluminationProperties(){let e=this.paint.get("hillshade-illumination-direction").values,t=this.paint.get("hillshade-illumination-altitude").values,r=this.paint.get("hillshade-highlight-color").values,i=this.paint.get("hillshade-shadow-color").values,n=Math.max(e.length,t.length,r.length,i.length);e=e.concat(Array(n-e.length).fill(e.at(-1))),t=t.concat(Array(n-t.length).fill(t.at(-1))),r=r.concat(Array(n-r.length).fill(r.at(-1))),i=i.concat(Array(n-i.length).fill(i.at(-1)));let a=t.map(Os);return{directionRadians:e.map(Os),altitudeRadians:a,shadowColor:i,highlightColor:r}}hasOffscreenPass(){return this.paint.get("hillshade-exaggeration")!==0&&!this.isHidden()}},Ubr=()=>Met||(Met=new dc({"color-relief-opacity":new Pi(_r["paint_color-relief"]["color-relief-opacity"],"color-relief-opacity"),"color-relief-color":new yq(_r["paint_color-relief"]["color-relief-color"],"color-relief-color"),resampling:new Pi(_r["paint_color-relief"].resampling,"resampling")})),Vbr={get paint(){return Ubr()}};Tu=class{constructor(e,t,r,i){this.context=e,this.format=r,this.texture=e.gl.createTexture(),this._ownedHandle=this.texture,this.update(t,i)}update(e,t,r){var u;let{width:i,height:n}=e,a=(((u=this.size)==null?void 0:u[0])!==i||this.size[1]!==n)&&!r,{context:o}=this,{gl:s}=o;this.useMipmap=!!(t!=null&&t.useMipmap),a&&this.size&&this.format===s.RGBA&&(s.deleteTexture(this.texture),this.texture=s.createTexture(),this._ownedHandle=this.texture,this.magFilter=void 0,this.minFilter=void 0,this.wrap=void 0),s.bindTexture(s.TEXTURE_2D,this.texture),o.pixelStoreUnpackFlipY.set(!1),o.pixelStoreUnpack.set(1);let l=this.format===s.RGBA&&(t==null?void 0:t.premultiply)!==!1;if(a)if(this.size=[i,n],this.format===s.RGBA&&i>0&&n>0){let c=this.useMipmap?Math.floor(Math.log2(Math.max(i,n)))+1:1;if(s.texStorage2D(s.TEXTURE_2D,c,s.RGBA8,i,n),sB(e)){o.pixelStoreUnpackPremultiplyAlpha.set(!1);let{data:f}=e;l&&f&&(f=$re(f)),f&&s.texSubImage2D(s.TEXTURE_2D,0,0,0,i,n,s.RGBA,s.UNSIGNED_BYTE,f)}else o.pixelStoreUnpackPremultiplyAlpha.set(l),s.texSubImage2D(s.TEXTURE_2D,0,0,0,s.RGBA,s.UNSIGNED_BYTE,e)}else sB(e)?(o.pixelStoreUnpackPremultiplyAlpha.set(!1),this._uploadRawData(e,l,i,n,s)):(o.pixelStoreUnpackPremultiplyAlpha.set(l),this._uploadDomImage(e,s));else{let{x:c,y:f}=r||{x:0,y:0};sB(e)?(o.pixelStoreUnpackPremultiplyAlpha.set(!1),this._updateRawData(e,l,c,f,i,n,s)):(o.pixelStoreUnpackPremultiplyAlpha.set(l),this._updateDomImage(e,c,f,s))}this.useMipmap&&!(sB(e)&&e.data===null)&&s.generateMipmap(s.TEXTURE_2D),o.pixelStoreUnpackFlipY.setDefault(),o.pixelStoreUnpack.setDefault(),o.pixelStoreUnpackPremultiplyAlpha.setDefault()}_uploadDomImage(e,t){t.texImage2D(t.TEXTURE_2D,0,this.format,this.format,t.UNSIGNED_BYTE,e)}_uploadRawData(e,t,r,i,n){let{data:a}=e;t&&a&&(a=$re(a)),n.texImage2D(n.TEXTURE_2D,0,this.format,r,i,0,this.format,n.UNSIGNED_BYTE,a)}_updateDomImage(e,t,r,i){i.texSubImage2D(i.TEXTURE_2D,0,t,r,i.RGBA,i.UNSIGNED_BYTE,e)}_updateRawData(e,t,r,i,n,a,o){let{data:s}=e;t&&s&&(s=$re(s)),o.texSubImage2D(o.TEXTURE_2D,0,r,i,n,a,o.RGBA,o.UNSIGNED_BYTE,s)}bind(e,t,r){let{context:i}=this,{gl:n}=i;this.texture!==this._ownedHandle&&(this.texture=this._ownedHandle),n.bindTexture(n.TEXTURE_2D,this.texture),(r===n.LINEAR_MIPMAP_NEAREST||r===n.LINEAR_MIPMAP_LINEAR)&&!this.useMipmap&&(r=n.LINEAR);let a=r||e;e!==this.magFilter&&(n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MAG_FILTER,e),this.magFilter=e),a!==this.minFilter&&(n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MIN_FILTER,a),this.minFilter=a),t!==this.wrap&&(n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_S,t),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_T,t),this.wrap=t)}generateMipmap(){if(!this.useMipmap)return;let{gl:e}=this.context;e.bindTexture(e.TEXTURE_2D,this.texture),e.generateMipmap(e.TEXTURE_2D)}destroy(){let{gl:e}=this.context;e.deleteTexture(this.texture),this.texture=null,this._ownedHandle=null}},Gbr=(zm=class{constructor(t,r,i,n=1,a=1,o=1,s=0){if(this.uid=t,r.height!==r.width)throw RangeError("DEM tiles must be square");if(i&&!["mapbox","terrarium","custom"].includes(i)){Pa(`"${i}" is not a valid encoding type. Valid types include "mapbox", "terrarium" and "custom".`);return}this.stride=r.height;let l=this.dim=r.height-4;switch(this.data=new Uint32Array(r.data.buffer),zm.byteViewCache.set(this,new Uint8Array(this.data.buffer)),i){case"terrarium":this.redFactor=256,this.greenFactor=1,this.blueFactor=1/256,this.baseShift=32768;break;case"custom":this.redFactor=n,this.greenFactor=a,this.blueFactor=o,this.baseShift=s;break;default:this.redFactor=6553.6,this.greenFactor=25.6,this.blueFactor=.1,this.baseShift=1e4}for(let c=-2;c=l)&&this.data.copyWithin(this._idx(0,c),f,f+l),this.data.fill(this.data[f],this._idx(-2,c),this._idx(0,c)),this.data.fill(this.data[f+l-1],this._idx(l,c),this._idx(l+1,c)+1)}let u=this._getByteView();this.min=2**53-1,this.max=-(2**53-1);for(let c=0;cthis.max&&(this.max=p),p=this.dim||n<-1||n>=this.dim)throw RangeError(`Out of range source coordinates for DEM data. x: ${t}, y: ${r}, dim: ${this.dim}`);let a=this._getByteView(),o=((n+2)*this.stride+i+2)*4,s=this.stride*4,l=t-i,u=r-n,c=this._unpackAtIndex(a,o),f=this._unpackAtIndex(a,o+4),h=this._unpackAtIndex(a,o+s),p=this._unpackAtIndex(a,o+s+4);return c*(1-l)*(1-u)+f*l*(1-u)+h*(1-l)*u+p*l*u}getUnpackVector(){return[this.redFactor,this.greenFactor,this.blueFactor,this.baseShift]}_idx(t,r){if(t<-2||t>=this.dim+2||r<-2||r>=this.dim+2)throw RangeError(`Out of range source coordinates for DEM data. x: ${t}, y: ${r}, dim: ${this.dim}`);return(r+2)*this.stride+(t+2)}unpack(t,r,i){return t*this.redFactor+r*this.greenFactor+i*this.blueFactor-this.baseShift}pack(t){return unt(t,this.getUnpackVector())}getPixels(){return new Es({width:this.stride,height:this.stride},this._getByteView())}backfillBorder(t,r,i){if(this.dim!==t.dim)throw Error("dem dimension mismatch");let n=r*this.dim,a=r*this.dim+this.dim,o=i*this.dim,s=i*this.dim+this.dim;switch(r){case-1:n=a-2;break;case 1:a=n+2}switch(i){case-1:o=s-2;break;case 1:s=o+2}let l=-r*this.dim,u=-i*this.dim;for(let c=o;ce.type==="color-relief",Hbr=class extends Iv{constructor(e,t){super(e,Vbr,t)}_createColorRamp(e){let t={elevationStops:[],colorStops:[]},r=this._transitionablePaint._values["color-relief-color"].value.expression;if(r instanceof Qk&&r._styleExpression.expression instanceof sp){this.colorRampExpression=r;let a=r._styleExpression.expression;t.elevationStops=a.labels,t.colorStops=[];for(let o of t.elevationStops)t.colorStops.push(a.evaluate({globals:{elevation:o}}))}if(t.elevationStops.length<1&&(t.elevationStops=[0],t.colorStops=[aa.transparent]),t.elevationStops.length<2&&(t.elevationStops.push(t.elevationStops[0]+1),t.colorStops.push(t.colorStops[0])),t.elevationStops.length<=e)return t;let i={elevationStops:[],colorStops:[]},n=(t.elevationStops.length-1)/(e-1);for(let a=0;ae)throw Error("Min granularity must not be greater than base granularity.");this._baseZoomGranularity=e,this._minGranularity=t}getGranularityForZoomLevel(e){let t=1<32767||t>32767)throw Error("Vertex coordinates are out of signed 16 bit integer range.");let r=Math.round(e)|0,i=Math.round(t)|0,n=this._getKey(r,i),a=this._vertexDictionary.get(n);if(a!==void 0)return a;let o=this._vertexBuffer.length/2;return this._vertexDictionary.set(n,o),this._vertexBuffer.push(r,i),o}_subdivideTrianglesScanline(e,t){if(this._granularity<2)return p_r(this._vertexBuffer,d_r(e,t));let r=[],i=e.length;for(let n=0;n=1||b<=0)||m&&(ln)){c>=i&&c<=n&&a.push(r[(o+1)%3]);continue}if(!m&&_>0){let A=s+p*_,T=l+d*_;a.push(this._vertexToIndex(A,T))}let S=s+p*Math.max(_,0),x=s+p*Math.min(b,1);if(v||this._generateIntraEdgeVertices(a,s,l,u,c,S,x),!m&&b<1){let A=s+p*b,T=l+d*b;a.push(this._vertexToIndex(A,T))}(m||c>=i&&c<=n)&&a.push(r[(o+1)%3]),!m&&(c<=i||c>=n)&&this._generateInterEdgeVertices(a,s,l,u,c,f,h,x,i,n)}return a}_generateIntraEdgeVertices(e,t,r,i,n,a,o){let s=i-t,l=n-r,u=l===0,c=u?Math.min(t,i):Math.min(a,o),f=u?Math.max(t,i):Math.max(a,o),h=Math.floor(c/this._granularityCellSize)+1,p=Math.ceil(f/this._granularityCellSize)-1;if(u?t=h;d--){let v=d*this._granularityCellSize,m=r+l*(v-t)/s;e.push(this._vertexToIndex(v,m))}}_generateInterEdgeVertices(e,t,r,i,n,a,o,s,l,u){let c=n-r,f=a-i,h=o-n,p=(l-n)/h,d=(u-n)/h,v=Math.min(p,d),m=Math.max(p,d),g=i+f*v,w=Math.floor(Math.min(g,s)/this._granularityCellSize)+1,_=Math.ceil(Math.max(g,s)/this._granularityCellSize)-1,b=s=1||m<=0){let A=t-a,T=r-o,y=(l-o)/T,E=(u-o)/T,M=a+A*Math.min(y,E);w=Math.floor(Math.min(M,s)/this._granularityCellSize)+1,_=Math.ceil(Math.max(M,s)/this._granularityCellSize)-1,b=s0?u:l;if(b)for(let A=w;A<=_;A++){let T=A*this._granularityCellSize;e.push(this._vertexToIndex(T,x))}else for(let A=_;A>=w;A--){let T=A*this._granularityCellSize;e.push(this._vertexToIndex(T,x))}}_generateOutline(e,t){let r=[],i=0;for(let n of e){let a=this._granularity<2?this._ringPathIndices(n,i,t):this._pointArrayToIndices(t3(n,this._granularity,!0));i+=n.length;let o=[];for(let s=1;s=2&&gnt(e)&&i.push(i[0]),i}_handlePoles(e){let t=!1,r=!1;this._canonical&&(this._canonical.y===0&&(t=!0),this._canonical.y===(1<n==(a===-32768)?(e.push(r),e.push(t),e.push(this._vertexToIndex(i,a)),e.push(this._vertexToIndex(n,a)),e.push(r),e.push(this._vertexToIndex(i,a))):(e.push(t),e.push(r),e.push(this._vertexToIndex(i,a)),e.push(r),e.push(this._vertexToIndex(n,a)),e.push(this._vertexToIndex(i,a)))}_fillPoles(e,t,r){let i=this._vertexBuffer,n=qr,a=e.length;for(let o=2;o=2&&((s=this._canonical)==null?void 0:s.z)===0&&(a=this._removeTrianglesOutsideTileX(a),o=o.map(l=>this._removeLinesOutsideTileX(l))),{verticesFlattened:this._vertexBuffer,indicesTriangles:a,indicesLineList:o}}_vertexOutsideTileX(e){let t=this._vertexBuffer[e*2];return t<0||t>8192}_removeTrianglesOutsideTileX(e){let t=[];for(let r=0;rt.id),this.index=e.index,this.hasDependencies=!1,this.sdfPatterns={},this.patternFeatures=[],this.layoutVertexArray=new rbr,this.indexArray=new Rv,this.indexArray2=new Lie,this.programConfigurations=new l3(e.layers,e.zoom),this.segments=new Js,this.segments2=new Js,this.stateDependentLayerIds=this.layers.filter(t=>t.isStateDependent()).map(t=>t.id)}populate(e,t,r){this.hasDependencies=RB("fill",this.layers,t);let i=this.layers[0].layout.get("fill-sort-key"),n=!i.isConstant(),a=[],o=new Io(this.zoom),s=this.layers[0]._featureFilter.needGeometry;for(let{feature:l,id:u,index:c,sourceLayerIndex:f}of e){let h=vx(l,s);if(!this.layers[0]._featureFilter.filter(o,h,r))continue;let p=n?i.evaluate(h,{},r,t.availableImages):void 0,d={id:u,properties:l.properties,type:l.type,sourceLayerIndex:f,index:c,geometry:s?h.geometry:v3(l),patterns:{},sortKey:p};a.push(d)}n&&a.sort((l,u)=>l.sortKey-u.sortKey);for(let l of a){let{geometry:u,index:c,sourceLayerIndex:f}=l;if(this.hasDependencies){let p=iae("fill",this.layers,l,{zoom:this.zoom},t);this.patternFeatures.push(p)}else this.addFeature(l,u,c,r,{},t.subdivisionGranularity);let h=e[c].feature;t.featureIndex.insert(h,u,c,f,this.index)}}update(e,t,r){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(e,t,this.stateDependentLayers,{imagePositions:r})}addFeatures({options:e,canonical:t,patternPositions:r,patternMap:i}){this.detectSdfPatterns(i);for(let n of this.patternFeatures)this.addFeature(n,n.geometry,n.index,t,r,e.subdivisionGranularity)}detectSdfPatterns(e){for(let t of this.patternFeatures)for(let r in t.patterns){let i=t.patterns[r];this.recordSdfPattern(r,e[i.min]),this.recordSdfPattern(r,e[i.mid]),this.recordSdfPattern(r,e[i.max])}for(let t of this.layers){let r=t.paint.get("fill-pattern").constantOr(null);r&&(this.recordSdfPattern(t.id,e[r.from.toString()]),this.recordSdfPattern(t.id,e[r.to.toString()]))}}recordSdfPattern(e,t){if(!t)return;let r=t.sdf===!0,i=this.sdfPatterns[e];i===void 0?this.sdfPatterns[e]=r:i!==r&&Pa(`Style sheet warning: Cannot mix SDF and non-SDF fill patterns in layer "${e}"`)}isEmpty(){return this.layoutVertexArray.length===0}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(e){this.uploaded||(this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,jbr),this.indexBuffer=e.createIndexBuffer(this.indexArray),this.indexBuffer2=e.createIndexBuffer(this.indexArray2)),this.programConfigurations.upload(e),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.indexBuffer2.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.segments2.destroy())}addFeature(e,t,r,i,n,a){for(let o of lq(t,500)){let s=vnt(o,i,a.fill.getGranularityForZoomLevel(i.z)),l=this.layoutVertexArray;mnt((u,c)=>{l.emplaceBack(u,c)},this.segments,this.layoutVertexArray,this.indexArray,s.verticesFlattened,s.indicesTriangles,this.segments2,this.indexArray2,s.indicesLineList)}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,e,r,{imagePositions:n,canonical:i})}};Hi("FillBucket",ynt,{omit:["layers","patternFeatures"]});y_r=()=>Det||(Det=new dc({"fill-sort-key":new kn(_r.layout_fill["fill-sort-key"],"fill-sort-key")})),x_r=()=>Fet||(Fet=new dc({"fill-antialias":new Pi(_r.paint_fill["fill-antialias"],"fill-antialias"),"fill-opacity":new kn(_r.paint_fill["fill-opacity"],"fill-opacity"),"fill-layer-opacity":new Pi(_r.paint_fill["fill-layer-opacity"],"fill-layer-opacity"),"fill-color":new kn(_r.paint_fill["fill-color"],"fill-color"),"fill-outline-color":new kn(_r.paint_fill["fill-outline-color"],"fill-outline-color"),"fill-translate":new Pi(_r.paint_fill["fill-translate"],"fill-translate"),"fill-translate-anchor":new Pi(_r.paint_fill["fill-translate-anchor"],"fill-translate-anchor"),"fill-pattern":new rC(_r.paint_fill["fill-pattern"],"fill-pattern")})),b_r={get paint(){return x_r()},get layout(){return y_r()}},xnt=e=>e.type==="fill",__r=class extends Iv{constructor(e,t){super(e,b_r,t)}recalculate(e,t){super.recalculate(e,t);let r=this.paint._values["fill-outline-color"];r.value.kind==="constant"&&r.value.value===void 0&&(this.paint._values["fill-outline-color"]=this.paint._values["fill-color"])}createBucket(e){return new ynt(e)}queryRadius(){return _q(this.paint.get("fill-translate"))}queryIntersectsFeature({queryGeometry:e,geometry:t,transform:r,pixelsToTileUnits:i}){return Qit(wq(e,this.paint.get("fill-translate"),this.paint.get("fill-translate-anchor"),-r.bearingInRadians,i),t)}isTileClipped(){return!0}},$ie=cl([{name:"a_pos",components:2,type:"Int16"},{name:"a_normal_ed",components:4,type:"Int16"}],4),w_r=cl([{name:"a_centroid",components:2,type:"Int16"}],4),T_r=$ie.members;$ie.size,$ie.alignment;lp=class Wie{constructor(){this.minX=1/0,this.maxX=-1/0,this.minY=1/0,this.maxY=-1/0}extend(t){return this.minX=Math.min(this.minX,t.x),this.minY=Math.min(this.minY,t.y),this.maxX=Math.max(this.maxX,t.x),this.maxY=Math.max(this.maxY,t.y),this}expandBy(t){return this.minX-=t,this.minY-=t,this.maxX+=t,this.maxY+=t,(this.minX>this.maxX||this.minY>this.maxY)&&(this.minX=1/0,this.maxX=-1/0,this.minY=1/0,this.maxY=-1/0),this}shrinkBy(t){return this.expandBy(-t)}map(t){let r=new Wie;return r.extend(t(new rr(this.minX,this.minY))),r.extend(t(new rr(this.maxX,this.minY))),r.extend(t(new rr(this.minX,this.maxY))),r.extend(t(new rr(this.maxX,this.maxY))),r}static fromPoints(t){let r=new Wie;for(let i of t)r.extend(i);return r}contains(t){return t.x>=this.minX&&t.x<=this.maxX&&t.y>=this.minY&&t.y<=this.maxY}empty(){return this.minX>this.maxX}width(){return this.maxX-this.minX}height(){return this.maxY-this.minY}covers(t){return!this.empty()&&!t.empty()&&t.minX>=this.minX&&t.maxX<=this.maxX&&t.minY>=this.minY&&t.maxY<=this.maxY}intersects(t){return!this.empty()&&!t.empty()&&t.minX<=this.maxX&&t.maxX>=this.minX&&t.minY<=this.maxY&&t.maxY>=this.minY}},bnt=lp.fromPoints([new rr(0,0),new rr(qr,qr)]);kC=class{constructor(e,t,r,i,n){for(this.properties=Object.create(null),this.extent=r,this.type=0,this.id=void 0,this._pbf=e,this._geometry=-1,this._keys=i,this._values=n;e.pos>3,a===0)continue}if(a--,n===1)o+=e.readSVarint(),s+=e.readSVarint(),i&&r.push(i),i=[new rr(o,s)];else if(n===2)o+=e.readSVarint(),s+=e.readSVarint(),i&&i.push(new rr(o,s));else if(n===7)i&&i.push(i[0].clone());else throw Error(`unknown command ${n}`)}return i&&r.push(i),r}bbox(){if(this._geometry<0)throw Error("feature has no geometry");let e=this._pbf;e.pos=this._geometry;let t=e.readVarint()+e.pos,r=1,i=0,n=0,a=0,o=1/0,s=-1/0,l=1/0,u=-1/0;for(;e.pos>3,i===0)continue}if(i--,r===1||r===2)n+=e.readSVarint(),a+=e.readSVarint(),ns&&(s=n),au&&(u=a);else if(r!==7)throw Error(`unknown command ${r}`)}return[o,l,s,u]}toGeoJSON(e,t,r){let i=this.extent*2**r,n=this.extent*e,a=this.extent*t,o=this.loadGeometry();function s(f){return[(f.x+n)*360/i-180,360/Math.PI*Math.atan(Math.exp((1-(f.y+a)*2/i)*Math.PI))-90]}function l(f){return f.map(s)}let u;if(this.type===1){let f=[];for(let p of o)f.push(p[0]);let h=l(f);u=f.length===1?{type:"Point",coordinates:h[0]}:{type:"MultiPoint",coordinates:h}}else if(this.type===2){let f=o.map(l);u=f.length===1?{type:"LineString",coordinates:f[0]}:{type:"MultiLineString",coordinates:f}}else if(this.type===3){let f=_nt(o),h=[];for(let p of f)h.push(p.map(l));u=h.length===1?{type:"Polygon",coordinates:h[0]}:{type:"MultiPolygon",coordinates:h}}else throw Error("unknown feature type");let c={type:"Feature",geometry:u,properties:this.properties};return this.id!=null&&(c.id=this.id),c}};kC.types=["Unknown","Point","LineString","Polygon"];M_r=class{constructor(e,t){for(this.version=1,this.name="",this.extent=4096,this.length=0,this._pbf=e,this._keys=[],this._values=[],this._features=[],t===void 0&&(t=e.length);e.pos=this._features.length)throw Error("feature index out of bounds");this._pbf.pos=this._features[e];let t=this._pbf.readVarint()+this._pbf.pos;return new kC(this._pbf,t,this.extent,this._keys,this._values)}};E_r=class{constructor(e,t=e.length){let r=Object.create(null);for(;e.pos90||this.lat<-90)throw Error("Invalid LngLat latitude value: must be between -90 and 90")}wrap(){return new qk(W0(this.lng,-180,180),this.lat)}toArray(){return[this.lng,this.lat]}toString(){return`LngLat(${this.lng}, ${this.lat})`}distanceTo(t){let r=Math.PI/180,i=this.lat*r,n=t.lat*r,a=Math.sin(i)*Math.sin(n)+Math.cos(i)*Math.cos(n)*Math.cos((t.lng-this.lng)*r);return Hf*Math.acos(Math.min(a,1))}static convert(t){if(t instanceof qk)return t;if(Array.isArray(t)&&(t.length===2||t.length===3))return new qk(Number(t[0]),Number(t[1]));if(!Array.isArray(t)&&typeof t=="object"&&t)return new qk(Number("lng"in t?t.lng:t.lon),Number(t.lat));throw Error("`LngLatLike` argument must be specified as a LngLat instance, an object {lng: , lat: }, an object {lon: , lat: }, or an array of [, ]")}},wnt=2*Math.PI*Hf;Mo=class Ant{constructor(t,r,i=0){this.x=+t,this.y=+r,this.z=+i}static fromLngLat(t,r=0){let i=yn.convert(t);return new Ant(g3(i.lng),m3(i.lat),gx(r,i.lat))}toLngLat(){return new yn(Mq(this.x),jT(this.y))}toAltitude(){return nae(this.z,this.y)}meterInMercatorCoordinateUnits(){return 1/wnt*k_r(jT(this.y))}},mx=89.25;Wre=8192;Snt=class{constructor(e){this.zoom=e.zoom,this.overscaling=e.overscaling,this.layers=e.layers,this.layerIds=this.layers.map(t=>t.id),this.index=e.index,this.hasDependencies=!1,this.layoutVertexArray=new ibr,this.centroidVertexArray=new Hm,this.indexArray=new Rv,this.programConfigurations=new l3(e.layers,e.zoom),this.segments=new Js,this.stateDependentLayerIds=this.layers.filter(t=>t.isStateDependent()).map(t=>t.id)}populate(e,t,r){this.features=[],this.hasDependencies=RB("fill-extrusion",this.layers,t);let i=new Io(this.zoom),n=this.layers[0],a=n.layout.get("fill-extrusion-rounded-corner-distance"),o=a>0?F_r(a,r):0,s=n._featureFilter.needGeometry;for(let{feature:l,id:u,index:c,sourceLayerIndex:f}of e){let h=vx(l,s);if(!n._featureFilter.filter(i,h,r))continue;let p={id:u,sourceLayerIndex:f,index:c,geometry:D_r(s?h.geometry:v3(l),o),properties:l.properties,type:l.type,patterns:{}};this.hasDependencies?this.features.push(iae("fill-extrusion",this.layers,p,{zoom:this.zoom},t)):this.addFeature(p,p.geometry,c,r,{},t.subdivisionGranularity),t.featureIndex.insert(l,p.geometry,c,f,this.index,!0)}}addFeatures({options:e,canonical:t,patternPositions:r}){for(let i of this.features){let{geometry:n}=i;this.addFeature(i,n,i.index,t,r,e.subdivisionGranularity)}}update(e,t,r){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(e,t,this.stateDependentLayers,{imagePositions:r})}isEmpty(){return this.layoutVertexArray.length===0&&this.centroidVertexArray.length===0}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(e){this.uploaded||(this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,T_r),this.centroidVertexBuffer=e.createVertexBuffer(this.centroidVertexArray,w_r.members,!0),this.indexBuffer=e.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(e),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.centroidVertexBuffer.destroy())}addFeature(e,t,r,i,n,a){for(let o of lq(t,500)){let s={x:0,y:0,sampleCount:0},l=this.layoutVertexArray.length;this.processPolygon(s,i,e,o,a);let u=this.layoutVertexArray.length-l,c=Math.floor(s.x/s.sampleCount),f=Math.floor(s.y/s.sampleCount);for(let h=0;h{Ck(u,c,f,0,0,1,1,0)},this.segments,this.layoutVertexArray,this.indexArray,l.verticesFlattened,l.indicesTriangles)}_generateSideFaces(e,t){let r=0;for(let i=1;iJs.MAX_VERTEX_ARRAY_LENGTH&&(t.segment=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray));let o=n.sub(a)._perp()._unit(),s=a.dist(n);r+s>32768&&(r=0),Ck(this.layoutVertexArray,n.x,n.y,o.x,o.y,0,0,r),Ck(this.layoutVertexArray,n.x,n.y,o.x,o.y,0,1,r),r+=s,Ck(this.layoutVertexArray,a.x,a.y,o.x,o.y,0,0,r),Ck(this.layoutVertexArray,a.x,a.y,o.x,o.y,0,1,r);let l=t.segment.vertexLength;this.indexArray.emplaceBack(l,l+2,l+1),this.indexArray.emplaceBack(l+1,l+2,l+3),t.segment.vertexLength+=4,t.segment.primitiveLength+=2}}};Hi("FillExtrusionBucket",Snt,{omit:["layers","features"]});z_r=()=>Pet||(Pet=new dc({"fill-extrusion-rounded-corner-distance":new Pi(_r["layout_fill-extrusion"]["fill-extrusion-rounded-corner-distance"],"fill-extrusion-rounded-corner-distance")})),B_r=()=>Iet||(Iet=new dc({"fill-extrusion-opacity":new Pi(_r["paint_fill-extrusion"]["fill-extrusion-opacity"],"fill-extrusion-opacity"),"fill-extrusion-color":new kn(_r["paint_fill-extrusion"]["fill-extrusion-color"],"fill-extrusion-color"),"fill-extrusion-translate":new Pi(_r["paint_fill-extrusion"]["fill-extrusion-translate"],"fill-extrusion-translate"),"fill-extrusion-translate-anchor":new Pi(_r["paint_fill-extrusion"]["fill-extrusion-translate-anchor"],"fill-extrusion-translate-anchor"),"fill-extrusion-pattern":new rC(_r["paint_fill-extrusion"]["fill-extrusion-pattern"],"fill-extrusion-pattern"),"fill-extrusion-height":new kn(_r["paint_fill-extrusion"]["fill-extrusion-height"],"fill-extrusion-height"),"fill-extrusion-base":new kn(_r["paint_fill-extrusion"]["fill-extrusion-base"],"fill-extrusion-base"),"fill-extrusion-vertical-gradient":new Pi(_r["paint_fill-extrusion"]["fill-extrusion-vertical-gradient"],"fill-extrusion-vertical-gradient")})),q_r={get paint(){return B_r()},get layout(){return z_r()}},Ent=e=>e.type==="fill-extrusion",O_r=class extends Iv{constructor(e,t){super(e,q_r,t)}createBucket(e){return new Snt(e)}queryRadius(){return _q(this.paint.get("fill-extrusion-translate"))}is3D(){return!0}queryIntersectsFeature({queryGeometry:e,feature:t,featureState:r,geometry:i,transform:n,pixelsToTileUnits:a,pixelPosMatrix:o}){let s=wq(e,this.paint.get("fill-extrusion-translate"),this.paint.get("fill-extrusion-translate-anchor"),-n.bearingInRadians,a),l=this.paint.get("fill-extrusion-height").evaluate(t,r),u=this.paint.get("fill-extrusion-base").evaluate(t,r),c=V_r(s,o,0),f=U_r(i,u,l,o),h=f[0],p=f[1];return N_r(h,p,c)}};G_r="geojsonvt_clip_start",H_r="geojsonvt_clip_end",Xie=cl([{name:"a_pos_normal",components:2,type:"Int16"},{name:"a_data",components:4,type:"Uint8"}],4),j_r=Xie.members;Xie.size,Xie.alignment;Zie=cl([{name:"a_uv_x",components:1,type:"Float32"},{name:"a_split_index",components:1,type:"Float32"}]),$_r=Zie.members;Zie.size,Zie.alignment;W_r=Math.cos(75/2*(Math.PI/180)),knt=1/2,zet=2**14/knt,Cnt=class{constructor(e){this.zoom=e.zoom,this.overscaling=e.overscaling,this.layers=e.layers,this.layerIds=this.layers.map(t=>t.id),this.index=e.index,this.hasDependencies=!1,this.patternFeatures=[],this.lineClipsArray=[],this.gradients={};for(let t of this.layers)this.gradients[t.id]={};this.layoutVertexArray=new nbr,this.layoutVertexArray2=new abr,this.indexArray=new Rv,this.programConfigurations=new l3(e.layers,e.zoom),this.segments=new Js,this.maxLineLength=0,this.stateDependentLayerIds=this.layers.filter(t=>t.isStateDependent()).map(t=>t.id)}populate(e,t,r){this.hasDependencies=RB("line",this.layers,t)||this.hasLineDasharray(this.layers);let i=this.layers[0].layout.get("line-sort-key"),n=!i.isConstant(),a=[],o=new Io(this.zoom),s=this.layers[0]._featureFilter.needGeometry;for(let{feature:l,id:u,index:c,sourceLayerIndex:f}of e){let h=vx(l,s);if(!this.layers[0]._featureFilter.filter(o,h,r))continue;let p=n?i.evaluate(h,{},r):void 0,d={id:u,properties:l.properties,type:l.type,sourceLayerIndex:f,index:c,geometry:s?h.geometry:v3(l),patterns:{},dashes:{},sortKey:p};a.push(d)}n&&a.sort((l,u)=>l.sortKey-u.sortKey);for(let l of a){let{geometry:u,index:c,sourceLayerIndex:f}=l;this.hasDependencies?(RB("line",this.layers,t)?iae("line",this.layers,l,{zoom:this.zoom},t):this.hasLineDasharray(this.layers)&&this.addLineDashDependencies(this.layers,l,this.zoom,t),this.patternFeatures.push(l)):this.addFeature(l,u,c,r,{},{},t.subdivisionGranularity);let h=e[c].feature;t.featureIndex.insert(h,u,c,f,this.index)}}update(e,t,r,i){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(e,t,this.stateDependentLayers,{imagePositions:r,dashPositions:i})}addFeatures({options:e,canonical:t,patternPositions:r,dashPositions:i}){for(let n of this.patternFeatures)this.addFeature(n,n.geometry,n.index,t,r,i,e.subdivisionGranularity)}isEmpty(){return this.layoutVertexArray.length===0}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(e){this.uploaded||(this.layoutVertexArray2.length!==0&&(this.layoutVertexBuffer2=e.createVertexBuffer(this.layoutVertexArray2,$_r)),this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,j_r),this.indexBuffer=e.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(e),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())}lineFeatureClips(e){if(e.properties&&Object.hasOwn(e.properties,"geojsonvt_clip_start")&&Object.hasOwn(e.properties,"geojsonvt_clip_end"))return{start:+e.properties[G_r],end:+e.properties[H_r]}}addFeature(e,t,r,i,n,a,o){let s=this.layers[0].layout,l=s.get("line-join").evaluate(e,{}),u=s.get("line-cap").evaluate(e,{}),c=s.get("line-miter-limit").evaluate(e,{}),f=s.get("line-round-limit").evaluate(e,{});this.lineClips=this.lineFeatureClips(e);for(let h of t)this.addLine(h,e,l,u,c,f,i,o);this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,e,r,{imagePositions:n,dashPositions:a,canonical:i})}addLine(e,t,r,i,n,a,o,s){this.distance=0,this.scaledDistance=0,this.totalDistance=0;let l=o?s.line.getGranularityForZoomLevel(o.z):1;if(e=t3(e,l),this.lineClips){this.lineClipsArray.push(this.lineClips);for(let _=0;_=2&&e[c-1].equals(e[c-2]);)c--;let f=0;for(;f0;if(y&&_>f){let k=d.dist(v);if(k>2*h){let D=d.sub(d.sub(v)._mult(h/k)._round());this.updateDistance(v,D),this.addCurrentVertex(D,g,0,0,p),v=D}}let M=v&&m,C=M?r:u?"butt":i;if(M&&C==="round"&&(An&&(C="bevel"),C==="bevel"&&(A>2&&(C="flipbevel"),A100)b=w.mult(-1);else{let k=A*g.add(w).mag()/g.sub(w).mag();b._perp()._mult(k*(E?-1:1))}this.addCurrentVertex(d,b,0,0,p),this.addCurrentVertex(d,b.mult(-1),0,0,p)}else if(C==="bevel"||C==="fakeround"){let k=-Math.sqrt(A*A-1),D=E?k:0,F=E?0:k;if(v&&this.addCurrentVertex(d,g,D,F,p),C==="fakeround"){let P=Math.round(T*180/Math.PI/20);for(let R=1;R2*h){let D=d.add(m.sub(d)._mult(h/k)._round());this.updateDistance(d,D),this.addCurrentVertex(D,w,0,0,p),d=D}}}}addCurrentVertex(e,t,r,i,n,a=!1){let o=t.x+t.y*r,s=t.y-t.x*r,l=-t.x+t.y*i,u=-t.y-t.x*i;this.addHalfVertex(e,o,s,a,!1,r,n),this.addHalfVertex(e,l,u,a,!0,-i,n),this.distance>zet/2&&this.totalDistance===0&&(this.distance=0,this.updateScaledDistance(),this.addCurrentVertex(e,t,r,i,n,a))}addHalfVertex({x:e,y:t},r,i,n,a,o,s){let l=(this.lineClips?this.scaledDistance*(zet-1):this.scaledDistance)*knt;if(this.layoutVertexArray.emplaceBack((e<<1)+ +!!n,(t<<1)+ +!!a,Math.round(63*r)+128,Math.round(63*i)+128,(o===0?0:o<0?-1:1)+1|(l&63)<<2,l>>6),this.lineClips){let c=(this.scaledDistance-this.lineClips.start)/(this.lineClips.end-this.lineClips.start);this.layoutVertexArray2.emplaceBack(c,this.lineClipsArray.length)}let u=s.vertexLength++;this.e1>=0&&this.e2>=0&&(this.indexArray.emplaceBack(this.e1,u,this.e2),s.primitiveLength++),a?this.e2=u:this.e1=u}updateScaledDistance(){this.scaledDistance=this.lineClips?this.lineClips.start+(this.lineClips.end-this.lineClips.start)*this.distance/this.totalDistance:this.distance}updateDistance(e,t){this.distance+=e.dist(t),this.updateScaledDistance()}hasLineDasharray(e){for(let t of e){let r=t.paint.get("line-dasharray");if(r&&!r.isConstant())return!0}return!1}addLineDashDependencies(e,t,r,i){for(let n of e){let a=n.paint.get("line-dasharray");if(!a||a.value.kind==="constant")continue;let o=n.layout.get("line-cap").evaluate(t,{})==="round",s={dasharray:a.value.evaluate({zoom:r-1},t,{}),round:o},l={dasharray:a.value.evaluate({zoom:r},t,{}),round:o},u={dasharray:a.value.evaluate({zoom:r+1},t,{}),round:o},c=`${s.dasharray.join(",")},${s.round}`,f=`${l.dasharray.join(",")},${l.round}`,h=`${u.dasharray.join(",")},${u.round}`;i.dashDependencies[c]=s,i.dashDependencies[f]=l,i.dashDependencies[h]=u,t.dashes[n.id]={min:c,mid:f,max:h}}}};Hi("LineBucket",Cnt,{omit:["layers","patternFeatures"]});Y_r=()=>Bet||(Bet=new dc({"line-cap":new kn(_r.layout_line["line-cap"],"line-cap"),"line-join":new kn(_r.layout_line["line-join"],"line-join"),"line-miter-limit":new kn(_r.layout_line["line-miter-limit"],"line-miter-limit"),"line-round-limit":new kn(_r.layout_line["line-round-limit"],"line-round-limit"),"line-sort-key":new kn(_r.layout_line["line-sort-key"],"line-sort-key")})),X_r=()=>qet||(qet=new dc({"line-opacity":new kn(_r.paint_line["line-opacity"],"line-opacity"),"line-layer-opacity":new Pi(_r.paint_line["line-layer-opacity"],"line-layer-opacity"),"line-color":new kn(_r.paint_line["line-color"],"line-color"),"line-translate":new Pi(_r.paint_line["line-translate"],"line-translate"),"line-translate-anchor":new Pi(_r.paint_line["line-translate-anchor"],"line-translate-anchor"),"line-width":new kn(_r.paint_line["line-width"],"line-width"),"line-gap-width":new kn(_r.paint_line["line-gap-width"],"line-gap-width"),"line-offset":new kn(_r.paint_line["line-offset"],"line-offset"),"line-blur":new kn(_r.paint_line["line-blur"],"line-blur"),"line-dasharray":new rC(_r.paint_line["line-dasharray"],"line-dasharray"),"line-pattern":new rC(_r.paint_line["line-pattern"],"line-pattern"),"line-gradient":new yq(_r.paint_line["line-gradient"],"line-gradient")})),Oet={get paint(){return X_r()},get layout(){return Y_r()}},Z_r=class extends kn{possiblyEvaluate(e,t){return t=new Io(Math.floor(t.zoom),{now:t.now,fadeDuration:t.fadeDuration,zoomHistory:t.zoomHistory,transition:t.transition}),super.possiblyEvaluate(e,t)}evaluate(e,t,r,i){return t=dn({},t,{zoom:Math.floor(t.zoom)}),super.evaluate(e,t,r,i)}},Dnt=e=>e.type==="line",K_r=class extends Iv{constructor(e,t){super(e,Oet,t),this.gradientVersion=0,cB||(cB=new Z_r(Oet.paint.properties["line-width"].specification,"line-floorwidth"),cB.useIntegerZoom=!0)}_handleSpecialPaintPropertyUpdate(e){if(e==="line-gradient"){let t=this.gradientExpression();this.stepInterpolant=yxr(t)?t._styleExpression.expression instanceof kne:!1,this.gradientVersion=(this.gradientVersion+1)%(2**53-1)}}gradientExpression(){return this._transitionablePaint._values["line-gradient"].value.expression}recalculate(e,t){super.recalculate(e,t),this.paint._values["line-floorwidth"]=cB.possiblyEvaluate(this._transitioningPaint._values["line-width"].value,e)}createBucket(e){return new Cnt(e)}queryRadius(e){let t=e,r=Net(FT("line-width",this,t),FT("line-gap-width",this,t)),i=FT("line-offset",this,t);return r/2+Math.abs(i)+_q(this.paint.get("line-translate"))}queryIntersectsFeature({queryGeometry:e,feature:t,featureState:r,geometry:i,transform:n,pixelsToTileUnits:a}){let o=wq(e,this.paint.get("line-translate"),this.paint.get("line-translate-anchor"),-n.bearingInRadians,a),s=a/2*Net(this.paint.get("line-width").evaluate(t,r),this.paint.get("line-gap-width").evaluate(t,r)),l=this.paint.get("line-offset").evaluate(t,r);return l&&(i=Mbr(i,l*a)),xbr(o,i,s)}isTileClipped(){return!0}};J_r=cl([{name:"a_pos_offset",components:4,type:"Int16"},{name:"a_data",components:4,type:"Uint16"},{name:"a_pixeloffset",components:4,type:"Int16"},{name:"a_height_offset",components:1,type:"Float32"}],4),Q_r=cl([{name:"a_projected_pos",components:3,type:"Float32"}],4);cl([{name:"a_fade_opacity",components:1,type:"Uint32"}],4);e3r=cl([{name:"a_placed",components:2,type:"Uint8"},{name:"a_shift",components:2,type:"Float32"},{name:"a_box_real",components:2,type:"Int16"}]);cl([{type:"Int16",name:"anchorPointX"},{type:"Int16",name:"anchorPointY"},{type:"Int16",name:"x1"},{type:"Int16",name:"y1"},{type:"Int16",name:"x2"},{type:"Int16",name:"y2"},{type:"Uint32",name:"featureIndex"},{type:"Uint16",name:"sourceLayerIndex"},{type:"Uint16",name:"bucketIndex"}]);Uet=cl([{name:"a_pos",components:2,type:"Int16"},{name:"a_anchor_pos",components:2,type:"Int16"},{name:"a_extrude",components:2,type:"Int16"}],4),Fnt=cl([{name:"a_pos",components:2,type:"Float32"},{name:"a_radius",components:1,type:"Float32"},{name:"a_flags",components:2,type:"Int16"}],4);cl([{name:"triangle",components:3,type:"Uint16"}]),cl([{type:"Int16",name:"anchorX"},{type:"Int16",name:"anchorY"},{type:"Uint16",name:"glyphStartIndex"},{type:"Uint16",name:"numGlyphs"},{type:"Uint32",name:"vertexStartIndex"},{type:"Uint32",name:"lineStartIndex"},{type:"Uint32",name:"lineLength"},{type:"Uint16",name:"segment"},{type:"Uint16",name:"lowerSize"},{type:"Uint16",name:"upperSize"},{type:"Float32",name:"lineOffsetX"},{type:"Float32",name:"lineOffsetY"},{type:"Uint8",name:"writingMode"},{type:"Uint8",name:"placedOrientation"},{type:"Uint8",name:"hidden"},{type:"Uint32",name:"crossTileID"},{type:"Int16",name:"associatedIconIndex"},{type:"Float32",name:"heightOffset"}]),cl([{type:"Int16",name:"anchorX"},{type:"Int16",name:"anchorY"},{type:"Int16",name:"rightJustifiedTextSymbolIndex"},{type:"Int16",name:"centerJustifiedTextSymbolIndex"},{type:"Int16",name:"leftJustifiedTextSymbolIndex"},{type:"Int16",name:"verticalPlacedTextSymbolIndex"},{type:"Int16",name:"placedIconSymbolIndex"},{type:"Int16",name:"verticalPlacedIconSymbolIndex"},{type:"Uint16",name:"key"},{type:"Uint16",name:"textBoxStartIndex"},{type:"Uint16",name:"textBoxEndIndex"},{type:"Uint16",name:"verticalTextBoxStartIndex"},{type:"Uint16",name:"verticalTextBoxEndIndex"},{type:"Uint16",name:"iconBoxStartIndex"},{type:"Uint16",name:"iconBoxEndIndex"},{type:"Uint16",name:"verticalIconBoxStartIndex"},{type:"Uint16",name:"verticalIconBoxEndIndex"},{type:"Uint16",name:"featureIndex"},{type:"Uint16",name:"numHorizontalGlyphVertices"},{type:"Uint16",name:"numVerticalGlyphVertices"},{type:"Uint16",name:"numIconVertices"},{type:"Uint16",name:"numVerticalIconVertices"},{type:"Uint16",name:"useRuntimeCollisionCircles"},{type:"Uint32",name:"crossTileID"},{type:"Float32",name:"textBoxScale"},{type:"Float32",name:"collisionCircleDiameter"},{type:"Uint16",name:"textAnchorOffsetStartIndex"},{type:"Uint16",name:"textAnchorOffsetEndIndex"},{type:"Float32",name:"heightOffset"}]),cl([{type:"Float32",name:"offsetX"}]),cl([{type:"Int16",name:"x"},{type:"Int16",name:"y"},{type:"Int16",name:"tileUnitDistanceFromAnchor"}]),cl([{type:"Uint16",name:"textAnchor"},{type:"Float32",components:2,name:"textOffset"}]);qB=new class{constructor(){this.TIMEOUT=5e3,this.applyArabicShaping=null,this.processBidirectionalText=null,this.processStyledBidirectionalText=null,this.pluginStatus="unavailable",this.pluginURL=null,this.loadScriptResolve=()=>{}}setState(e){this.pluginStatus=e.pluginStatus,this.pluginURL=e.pluginURL}getState(){return{pluginStatus:this.pluginStatus,pluginURL:this.pluginURL}}setMethods(e){if(qB.isParsed())throw Error("RTL text plugin already registered.");this.applyArabicShaping=e.applyArabicShaping,this.processBidirectionalText=e.processBidirectionalText,this.processStyledBidirectionalText=e.processStyledBidirectionalText,this.loadScriptResolve()}isParsed(){return this.applyArabicShaping!=null&&this.processBidirectionalText!=null&&this.processStyledBidirectionalText!=null}getRTLTextPluginStatus(){return this.pluginStatus}syncState(e,t){return Zi(this,null,function*(){if(this.isParsed())return this.getState();if(e.pluginStatus!=="loading")return this.setState(e),e;let r=e.pluginURL,i=new Promise(a=>{this.loadScriptResolve=a}),n=new Promise(a=>setTimeout(()=>a(),this.TIMEOUT));if(yield t(r),yield Promise.race([i,n]),this.isParsed()){let a={pluginStatus:"loaded",pluginURL:r};return this.setState(a),a}throw this.setState({pluginStatus:"error",pluginURL:""}),Error(`RTL Text Plugin failed to import scripts from ${r}`)})}};s3r={C:"18g,1;g2,3;4nb,1",D:"17k,1;5,1;1,1;1,5;4,d;1,7;1,2;z,2;8,g;i,12;1,2;9,1;1,1;1,2;14,3;2,1;28,9;3,f;2,4;1,1;2,3;2,6;7a,1;2,5;1,1;g,a;5,2;2,6;1,f",R:"17m,4;1,1;1,1;5,4;l,1;14,3;1,3;g,i;12,1;2,9;1,1;1,1;2,2;1,1;o,2;2x,3;f,2;4,1;1,2;3,2;6u,j;b,1;r,3;1,1;2,2;6,1",T:"174,b;1,1;1a,l;g,1;2t,7;2,6;2,2;1,4;bt,9;16,o;1,t;1clb,1"},l3r={1569:[65152,0,0,0],1570:[65153,65154,0,0],1571:[65155,65156,0,0],1572:[65157,65158,0,0],1573:[65159,65160,0,0],1574:[65161,65162,65163,65164],1575:[65165,65166,0,0],1576:[65167,65168,65169,65170],1577:[65171,65172,0,0],1578:[65173,65174,65175,65176],1579:[65177,65178,65179,65180],1580:[65181,65182,65183,65184],1581:[65185,65186,65187,65188],1582:[65189,65190,65191,65192],1583:[65193,65194,0,0],1584:[65195,65196,0,0],1585:[65197,65198,0,0],1586:[65199,65200,0,0],1587:[65201,65202,65203,65204],1588:[65205,65206,65207,65208],1589:[65209,65210,65211,65212],1590:[65213,65214,65215,65216],1591:[65217,65218,65219,65220],1592:[65221,65222,65223,65224],1593:[65225,65226,65227,65228],1594:[65229,65230,65231,65232],1601:[65233,65234,65235,65236],1602:[65237,65238,65239,65240],1603:[65241,65242,65243,65244],1604:[65245,65246,65247,65248],1605:[65249,65250,65251,65252],1606:[65253,65254,65255,65256],1607:[65257,65258,65259,65260],1608:[65261,65262,0,0],1609:[65263,65264,64488,64489],1610:[65265,65266,65267,65268],1611:[65136,0,0,65137],1612:[65138,0,0,0],1613:[65140,0,0,0],1614:[65142,0,0,65143],1615:[65144,0,0,65145],1616:[65146,0,0,65147],1617:[65148,0,0,65149],1618:[65150,0,0,65151],1649:[64336,64337,0,0],1655:[64477,0,0,0],1657:[64358,64359,64360,64361],1658:[64350,64351,64352,64353],1659:[64338,64339,64340,64341],1662:[64342,64343,64344,64345],1663:[64354,64355,64356,64357],1664:[64346,64347,64348,64349],1667:[64374,64375,64376,64377],1668:[64370,64371,64372,64373],1670:[64378,64379,64380,64381],1671:[64382,64383,64384,64385],1672:[64392,64393,0,0],1676:[64388,64389,0,0],1677:[64386,64387,0,0],1678:[64390,64391,0,0],1681:[64396,64397,0,0],1688:[64394,64395,0,0],1700:[64362,64363,64364,64365],1702:[64366,64367,64368,64369],1705:[64398,64399,64400,64401],1709:[64467,64468,64469,64470],1711:[64402,64403,64404,64405],1713:[64410,64411,64412,64413],1715:[64406,64407,64408,64409],1722:[64414,64415,0,0],1723:[64416,64417,64418,64419],1726:[64426,64427,64428,64429],1728:[64420,64421,0,0],1729:[64422,64423,64424,64425],1733:[64480,64481,0,0],1734:[64473,64474,0,0],1735:[64471,64472,0,0],1736:[64475,64476,0,0],1737:[64482,64483,0,0],1739:[64478,64479,0,0],1740:[64508,64509,64510,64511],1744:[64484,64485,64486,64487],1746:[64430,64431,0,0],1747:[64432,64433,0,0]},u3r={\u0644\u0622:[65269,65270],\u0644\u0623:[65271,65272],\u0644\u0625:[65273,65274],\u0644\u0627:[65275,65276]},Get=1604,c3r=/[\u0600-\u06ff\u0750-\u077f\u0870-\u089f\u08a0-\u08ff\ufb50-\ufdff\ufe70-\ufeff]/;Pnt=new Map;for(let[e,t]of Object.entries(s3r))f3r(t,e,Pnt);Int=typeof Intl<"u"&&"Segmenter"in Intl;kT={"!":"\uFE15","#":"\uFF03",$:"\uFF04","%":"\uFF05","&":"\uFF06","(":"\uFE35",")":"\uFE36","*":"\uFF0A","+":"\uFF0B",",":"\uFE10","-":"\uFE32",".":"\u30FB","/":"\uFF0F",":":"\uFE13",";":"\uFE14","<":"\uFE3F","=":"\uFF1D",">":"\uFE40","?":"\uFE16","@":"\uFF20","[":"\uFE47","\\":"\uFF3C","]":"\uFE48","^":"\uFF3E",_:"\uFE33","`":"\uFF40","{":"\uFE37","|":"\u2015","}":"\uFE38","~":"\uFF5E","\xA2":"\uFFE0","\xA3":"\uFFE1","\xA5":"\uFFE5","\xA6":"\uFFE4","\xAC":"\uFFE2","\xAF":"\uFFE3","\u2013":"\uFE32","\u2014":"\uFE31","\u2018":"\uFE43","\u2019":"\uFE44","\u201C":"\uFE41","\u201D":"\uFE42","\u2026":"\uFE19","\u22EF":"\uFE19","\u2027":"\u30FB","\u20A9":"\uFFE6","\u3001":"\uFE11","\u3002":"\uFE12","\u3008":"\uFE3F","\u3009":"\uFE40","\u300A":"\uFE3D","\u300B":"\uFE3E","\u300C":"\uFE41","\u300D":"\uFE42","\u300E":"\uFE43","\u300F":"\uFE44","\u3010":"\uFE3B","\u3011":"\uFE3C","\u3014":"\uFE39","\u3015":"\uFE3A","\u3016":"\uFE17","\u3017":"\uFE18","\uFF01":"\uFE15","\uFF08":"\uFE35","\uFF09":"\uFE36","\uFF0C":"\uFE10","\uFF0D":"\uFE32","\uFF0E":"\u30FB","\uFF1A":"\uFE13","\uFF1B":"\uFE14","\uFF1C":"\uFE3F","\uFF1E":"\uFE40","\uFF1F":"\uFE16","\uFF3B":"\uFE47","\uFF3D":"\uFE48","\uFF3F":"\uFE33","\uFF5B":"\uFE37","\uFF5C":"\u2015","\uFF5D":"\uFE38","\uFF5F":"\uFE35","\uFF60":"\uFE36","\uFF61":"\uFE12","\uFF62":"\uFE41","\uFF63":"\uFE42"};D3r={10:!0,13:!0,32:!0,38:!0,41:!0,43:!0,45:!0,47:!0,173:!0,183:!0,8203:!0,8208:!0,8211:!0,8231:!0},F3r={40:!0};lae=class Qie{constructor(t="",r=[],i=[]){this.text=t,this.sections=r,this.sectionIndex=i,this.imageSectionID=null,this._graphemes=null}graphemes(){var t;return(t=this._graphemes)!=null||(this._graphemes=Kie(this.text)),this._graphemes}static fromFeature(t,r){let i=new Qie;for(let n of t.sections)n.image?i.addImageSection(n):i.addTextSection(n,r);return i}length(){return this.graphemes().length}getSection(t){return this.sections[this.sectionIndex[t]]}getSectionIndex(t){return this.sectionIndex[t]}verticalizePunctuation(){this.text=C3r(this.text),this._graphemes=null}hasZeroWidthSpaces(){return this.text.includes("\u200B")}trim(){let t=this.graphemes(),r=0;for(;rr&&Xet(t[i-1]);)i--;this.text=t.slice(r,i).join(""),this.sectionIndex=this.sectionIndex.slice(r,i),this._graphemes=null}substring(t,r){let i=this.graphemes().slice(t,r).join(""),n=this.sectionIndex.slice(t,r);return new Qie(i,this.sections,n)}toCodeUnitIndex(t){return this.graphemes().slice(0,t).join("").length}toString(){return this.text}getMaxScale(){return this.sectionIndex.reduce((t,r)=>Math.max(t,this.sections[r].scale),0)}getMaxImageSize(t){let r=0,i=0;for(let n=0;n0?i[i.length-1]:"",a=Kie(n+t);this.text+=t,this._graphemes=i.slice(0,n?-1:void 0).concat(a);let o=a.length-+!!n;for(let s=0;s=63743?null:++this.imageSectionID:(this.imageSectionID=57344,this.imageSectionID)}determineLineBreaks(t,r,i,n,a){let o=[],s=this.determineAverageLineWidth(t,r,i,n,a),l=this.hasZeroWidthSpaces(),u=this.graphemes(),c=null,f=0,h=0;for(let p=0;p0){let v=u[p-1].codePointAt(0),m=d.codePointAt(0),g=i3r(v),w=Vet(v)&&Vet(m);(D3r[v]||g||"imageName"in this.getSection(p-1)||u[p+1]!==void 0&&F3r[m]||w&&(c!=null?c:c=S3r(this.text)).has(h))&&o.push(Zet(p,f,s,o,L3r(v,m,g&&l),!1))}sae(d.codePointAt(0))||(f+=Wet(d,this.getSection(p),i,n,t,a)),h+=d.length}return qnt(Zet(this.length(),f,s,o,0,!0))}determineAverageLineWidth(t,r,i,n,a){let o=0,s=0;for(let u of this.graphemes()){let c=this.getSection(s);o+=Wet(u,c,i,n,t,a),s++}let l=Math.max(1,Math.ceil(o/r));return o/l}};uae=P3r(),I3r=/[\u061c\u200e\u200f\u202a-\u202e\u2066-\u2069]/,R3r=new Set(["WS","FSI","LRI","RLI","PDI"]),z3r=new Set(["S","B"]);ene=4294967296,mri=1/ene,Ket=typeof TextDecoder>"u"?null:new TextDecoder("utf-8"),Nnt=class{constructor(e){this.buf=ArrayBuffer.isView(e)?e:new Uint8Array(e),this.dataView=new DataView(this.buf.buffer,this.buf.byteOffset,this.buf.byteLength),this.pos=0,this.type=0,this._valueStart=-1,this.length=this.buf.length}readFields(e,t,r=this.length){let i;for(;i=this.nextField(r);)e(i,t,this);return t}readMessage(e,t){return this.readFields(e,t,this.readVarint()+this.pos)}readFixed32(){let e=this.dataView.getUint32(this.pos,!0);return this.pos+=4,e}readSFixed32(){let e=this.dataView.getInt32(this.pos,!0);return this.pos+=4,e}readFixed64(){let e=this.dataView.getUint32(this.pos,!0)+this.dataView.getUint32(this.pos+4,!0)*ene;return this.pos+=8,e}readSFixed64(){let e=this.dataView.getUint32(this.pos,!0)+this.dataView.getInt32(this.pos+4,!0)*ene;return this.pos+=8,e}readFloat(){let e=this.dataView.getFloat32(this.pos,!0);return this.pos+=4,e}readDouble(){let e=this.dataView.getFloat64(this.pos,!0);return this.pos+=8,e}readVarint(e){let t=this.buf,r=t[this.pos++];if(r<128)return r;let i=r&127,n;return n=t[this.pos++],i|=(n&127)<<7,n<128||(n=t[this.pos++],i|=(n&127)<<14,n<128)||(n=t[this.pos++],i|=(n&127)<<21,n<128)?i:(n=t[this.pos],i|=(n&15)<<28,$3r(i,e,this))}readSVarint(){let e=this.readVarint();return e%2==1?(e+1)/-2:e/2}readBoolean(){return!!this.readVarint()}readString(){let e=this.readVarint()+this.pos,t=this.pos;return this.pos=e,e-t>=12&&Ket?Ket.decode(this.buf.subarray(t,e)):Y3r(this.buf,t,e)}readBytes(){let e=this.readVarint()+this.pos,t=this.buf.subarray(this.pos,e);return this.pos=e,t}readPackedVarint(e=[],t){let r=this.readPackedEnd();for(;this.pos=e)return 0;let t=this.readVarint();return this.type=t&7,this._valueStart=this.pos,t>>>3}skip(e){let t=e&7;if(t===0)for(;this.buf[this.pos++]>127;);else if(t===2)this.pos=this.readVarint()+this.pos;else if(t===5)this.pos+=4;else if(t===1)this.pos+=8;else throw Error(`Unimplemented type: ${t}`)}};Cq=class{constructor(e,{pixelRatio:t,version:r,isWebGLImage:i=!1,stretchX:n,stretchY:a,content:o,textFitWidth:s,textFitHeight:l}){this.paddedRect=e,this.pixelRatio=t,this.stretchX=n,this.stretchY=a,this.content=o,this.version=r,this.needsFirstWebGLRender=i,this.textFitWidth=s,this.textFitHeight=l}get tl(){return[this.paddedRect.x+1,this.paddedRect.y+1]}get br(){return[this.paddedRect.x+this.paddedRect.w-1,this.paddedRect.y+this.paddedRect.h-1]}get tlbr(){return this.tl.concat(this.br)}get displaySize(){return[(this.paddedRect.w-2)/this.pixelRatio,(this.paddedRect.h-2)/this.pixelRatio]}},J3r=class{constructor(e,t){let r={},i={};this.haveRenderCallbacks=[],this.patchedUpdateVersion=-1;let n=[];this.addImages(e,r,n),this.addImages(t,i,n);let{w:a,h:o}=cae(n),s=new Es({width:a||1,height:o||1});for(let l in e){let u=e[l];if(u.isWebGLImage)continue;let c=r[l].paddedRect;Es.copy(u.data,s,{x:0,y:0},{x:c.x+1,y:c.y+1},u.data)}for(let l in t){let u=t[l],c=i[l].paddedRect,f=c.x+1,h=c.y+1,p=u.data.width,d=u.data.height;Es.copy(u.data,s,{x:0,y:0},{x:f,y:h},u.data),Es.copy(u.data,s,{x:0,y:d-1},{x:f,y:h-1},{width:p,height:1}),Es.copy(u.data,s,{x:0,y:0},{x:f,y:h+d},{width:p,height:1}),Es.copy(u.data,s,{x:p-1,y:0},{x:f-1,y:h},{width:1,height:d}),Es.copy(u.data,s,{x:0,y:0},{x:f+p,y:h},{width:1,height:d})}this.image=s,this.iconPositions=r,this.patternPositions=i}addImages(e,t,r){for(let i in e){let n=e[i],a={x:0,y:0,w:n.data.width+2,h:n.data.height+2};r.push(a),t[i]=new Cq(a,n),n.hasRenderCallback&&this.haveRenderCallbacks.push(i)}}patchUpdatedImages(e,t){if(e.dispatchRenderCallbacks(this.haveRenderCallbacks),this.patchedUpdateVersion!==e.updateVersion){this.patchedUpdateVersion=e.updateVersion;for(let r in this.iconPositions)this.patchUpdatedImage(this.iconPositions[r],e.getImage(r),t);for(let r in this.patternPositions)this.patchUpdatedImage(this.patternPositions[r],e.getImage(r),t)}}patchUpdatedImage(e,t,r){var l;if(!e||!t||!e.needsFirstWebGLRender&&e.version===t.version)return;e.needsFirstWebGLRender=!1,e.version=t.version;let[i,n]=e.tl,a=(l=t.userImage)==null?void 0:l.data;if(!DC(a)){r.update(t.data,void 0,{x:i,y:n});return}let{width:o,height:s}=t.data;r.context.setCustomLayerDefaults(),a.renderWithWebGL({gl:r.context.gl,texture:r.texture,x:i,y:n,width:o,height:s}),r.context.setDirty()}};Hi("ImagePosition",Cq),Hi("ImageAtlas",J3r);Gnt=(function(e){return e[e.none=0]="none",e[e.horizontal=1]="horizontal",e[e.vertical=2]="vertical",e[e.horizontalOnly=3]="horizontalOnly",e})(Gnt||{});Jet=new RegExp("^\\p{gc=M}$","u");ttt=32640;IT=class Ynt extends rr{constructor(t,r,i,n){super(t,r),this.angle=i,n!==void 0&&(this.segment=n)}clone(){return new Ynt(this.x,this.y,this.angle,this.segment)}};Hi("Anchor",IT);vB=class{constructor(e,t,r,i,n,a,o,s,l,u){var c;if(this.boxStartIndex=e.length,l){let f=a.top,h=a.bottom,p=a.collisionPadding;p&&(f-=p[1],h+=p[3]);let d=h-f;d>0&&(d=Math.max(10,d),this.circleDiameter=d)}else{let f=(c=a.image)!=null&&c.content&&(a.image.textFitWidth||a.image.textFitHeight)?Wnt(a):{x1:a.left,y1:a.top,x2:a.right,y2:a.bottom};f.y1=f.y1*o-s[0],f.y2=f.y2*o+s[2],f.x1=f.x1*o-s[3],f.x2=f.x2*o+s[1];let h=a.collisionPadding;if(h&&(f.x1-=h[0]*o,f.y1-=h[1]*o,f.x2+=h[2]*o,f.y2+=h[3]*o),u){let p=new rr(f.x1,f.y1),d=new rr(f.x2,f.y1),v=new rr(f.x1,f.y2),m=new rr(f.x2,f.y2),g=u*Math.PI/180;p._rotate(g),d._rotate(g),v._rotate(g),m._rotate(g),f.x1=Math.min(p.x,d.x,v.x,m.x),f.x2=Math.max(p.x,d.x,v.x,m.x),f.y1=Math.min(p.y,d.y,v.y,m.y),f.y2=Math.max(p.y,d.y,v.y,m.y)}e.emplaceBack(t.x,t.y,f.x1,f.y1,f.x2,f.y2,r,i,n)}this.boxEndIndex=e.length}},Mwr=class{constructor(e=[],t=(r,i)=>ri)){if(this.data=e,this.length=this.data.length,this.compare=t,this.length>0)for(let r=(this.length>>1)-1;r>=0;r--)this._down(r)}push(e){this.data.push(e),this._up(this.length++)}pop(){if(this.length===0)return;let e=this.data[0],t=this.data.pop();return--this.length>0&&(this.data[0]=t,this._down(0)),e}peek(){return this.data[0]}_up(e){let{data:t,compare:r}=this,i=t[e];for(;e>0;){let n=e-1>>1,a=t[n];if(r(i,a)>=0)break;t[e]=a,e=n}t[e]=i}_down(e){let{data:t,compare:r}=this,i=this.length>>1,n=t[e];for(;e=0)break;t[e]=t[a],e=a}t[e]=n}};ST=class{constructor(e,t,r,i){this.p=new rr(e,t),this.h=r,this.d=kwr(this.p,i),this.max=this.d+this.h*Math.SQRT2}};Fq=(function(e){return e[e.center=1]="center",e[e.left=2]="left",e[e.right=3]="right",e[e.top=4]="top",e[e.bottom=5]="bottom",e[e["top-left"]=6]="top-left",e[e["top-right"]=7]="top-right",e[e["bottom-left"]=8]="bottom-left",e[e["bottom-right"]=9]="bottom-right",e})({}),hae=1/0;zwr=[{name:"a_fade_opacity",components:1,type:"Uint8",offset:0}];rne=class{constructor(e){this.layoutVertexArray=new obr,this.indexArray=new Rv,this.programConfigurations=e,this.segments=new Js,this.dynamicLayoutVertexArray=new sbr,this.opacityVertexArray=new lbr,this.hasVisibleVertices=!1,this.placedSymbolArray=new Iit}isEmpty(){return this.layoutVertexArray.length===0&&this.indexArray.length===0&&this.dynamicLayoutVertexArray.length===0&&this.opacityVertexArray.length===0}upload(e,t,r,i){this.isEmpty()||(r&&(this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,J_r.members),this.indexBuffer=e.createIndexBuffer(this.indexArray,t),this.dynamicLayoutVertexBuffer=e.createVertexBuffer(this.dynamicLayoutVertexArray,Q_r.members,!0),this.opacityVertexBuffer=e.createVertexBuffer(this.opacityVertexArray,zwr,!0),this.opacityVertexBuffer.itemSize=1),(r||i)&&this.programConfigurations.upload(e))}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.dynamicLayoutVertexBuffer.destroy(),this.opacityVertexBuffer.destroy())}};Hi("SymbolBuffers",rne);ine=class{constructor(e,t,r){this.layoutVertexArray=new e,this.layoutAttributes=t,this.indexArray=new r,this.segments=new Js,this.collisionVertexArray=new ubr}upload(e){this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,this.layoutAttributes),this.indexBuffer=e.createIndexBuffer(this.indexArray),this.collisionVertexBuffer=e.createVertexBuffer(this.collisionVertexArray,e3r.members,!0)}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.segments.destroy(),this.collisionVertexBuffer.destroy())}};Hi("CollisionBuffers",ine);IC=class{constructor(e){this.collisionBoxArray=e.collisionBoxArray,this.zoom=e.zoom,this.overscaling=e.overscaling,this.layers=e.layers,this.layerIds=this.layers.map(o=>o.id),this.index=e.index,this.pixelRatio=e.pixelRatio,this.sourceLayerIndex=e.sourceLayerIndex,this.hasDependencies=!0,this.hasRTLText=!1,this.maxHeightOffset=0,this.sortKeyRanges=[],this.collisionCircleArray=[],this.maxGlyphs=65535;let t=this.layers[0]._unevaluatedLayout._values;this.textSizeData=rtt(this.zoom,t["text-size"]),this.iconSizeData=rtt(this.zoom,t["icon-size"]);let r=this.layers[0].layout,i=r.get("symbol-sort-key"),n=r.get("symbol-z-order");this.canOverlap=uC(r,"text-overlap","text-allow-overlap")!=="never"||uC(r,"icon-overlap","icon-allow-overlap")!=="never"||r.get("text-ignore-placement")||r.get("icon-ignore-placement"),this.sortFeaturesByKey=n!=="viewport-y"&&!i.isConstant();let a=n==="viewport-y"||n==="auto"&&!this.sortFeaturesByKey;this.sortFeaturesByY=a&&this.canOverlap,r.get("symbol-placement")==="point"&&(this.writingModes=r.get("text-writing-mode").map(o=>Gnt[o])),this.stateDependentLayerIds=this.layers.filter(o=>o.isStateDependent()).map(o=>o.id),this.sourceID=e.sourceID}createArrays(){this.text=new rne(new l3(this.layers,this.zoom,e=>e.startsWith("text"))),this.icon=new rne(new l3(this.layers,this.zoom,e=>e.startsWith("icon"))),this.glyphOffsetArray=new Bit,this.lineVertexArray=new qit,this.symbolInstances=new zit,this.textAnchorOffsets=new Nit}calculateGlyphDependencies(e,t,r,i,n){var l;let a=(i||this.allowVerticalPlacement)&&n,o=lae.fromFeature(e,r),s=o.graphemes();for(let u=0;u0)&&(a.value.kind!=="constant"||a.value.value.length>0),u=s.value.kind!=="constant"||!!s.value.value||Object.keys(s.parameters).length>0,c=n.get("symbol-sort-key");if(this.features=[],!l&&!u)return;let f=t.iconDependencies,h=t.glyphDependencies,p=t.availableImages,d=new Io(this.zoom);for(let{feature:m,id:g,index:w,sourceLayerIndex:_}of e){let b=i._featureFilter.needGeometry,S=vx(m,b);if(!i._featureFilter.filter(d,S,r))continue;b||(S.geometry=v3(m));let x;if(l){let E=i.getValueAndResolveTokens("text-field",S,r,p),M=Bm.factory(E);this.hasRTLText||(this.hasRTLText=Bwr(M)),x=T3r(M,i,S)}let A;if(u){let E=i.getValueAndResolveTokens("icon-image",S,r,p);A=E instanceof ug?E:ug.fromString(E)}if(!x&&!A)continue;let T=this.sortFeaturesByKey?c.evaluate(S,{},r):void 0,y={id:g,text:x,icon:A,index:w,sourceLayerIndex:_,geometry:S.geometry,properties:m.properties,type:kC.types[m.type],sortKey:T};if(this.features.push(y),A&&(f[A.name]=!0),x){let E=a.evaluate(S,{},r).join(","),M=n.get("text-rotation-alignment")!=="viewport"&&n.get("symbol-placement")!=="point";this.allowVerticalPlacement=(v=this.writingModes)==null?void 0:v.includes(2);let C=Jie(x.toString());this.calculateGlyphDependencies(x,h,E,M,C);for(let k of x.sections)k.image&&(f[k.image.name]=!0)}}n.get("symbol-placement")==="line"&&(this.features=M3r(this.features)),this.sortFeaturesByKey&&this.features.sort((m,g)=>m.sortKey-g.sortKey)}update(e,t,r){this.stateDependentLayers.length&&(this.text.programConfigurations.updatePaintArrays(e,t,this.layers,{imagePositions:r}),this.icon.programConfigurations.updatePaintArrays(e,t,this.layers,{imagePositions:r}))}addFeatures({options:e,canonical:t,glyphMap:r,glyphPositions:i,iconMap:n,iconPositions:a,showCollisionBoxes:o}){Dwr({bucket:this,glyphMap:r,glyphPositions:i,imageMap:n,imagePositions:a,showCollisionBoxes:o,canonical:t,subdivisionGranularity:e.subdivisionGranularity,hasPromoteId:e.featureIndex.promoteId!=null})}isEmpty(){return this.symbolInstances.length===0}uploadPending(){return!this.uploaded||this.text.programConfigurations.needsUpload||this.icon.programConfigurations.needsUpload}upload(e){!this.uploaded&&this.hasDebugData()&&(this.textCollisionBox.upload(e),this.iconCollisionBox.upload(e)),this.text.upload(e,this.sortFeaturesByY,!this.uploaded,this.text.programConfigurations.needsUpload),this.icon.upload(e,this.sortFeaturesByY,!this.uploaded,this.icon.programConfigurations.needsUpload),this.uploaded=!0}destroyDebugData(){this.textCollisionBox.destroy(),this.iconCollisionBox.destroy()}destroy(){this.text.destroy(),this.icon.destroy(),this.hasDebugData()&&this.destroyDebugData()}addToLineVertexArray(e,t){let r=this.lineVertexArray.length;if(e.segment!==void 0){let i=e.dist(t[e.segment+1]),n=e.dist(t[e.segment]),a={};for(let o=e.segment+1;o=0;o--)a[o]={x:t[o].x,y:t[o].y,tileUnitDistanceFromAnchor:n},o>0&&(n+=t[o-1].dist(t[o]));for(let o=0;o0}hasIconData(){return this.icon.segments.get().length>0}hasDebugData(){return this.textCollisionBox&&this.iconCollisionBox}hasTextCollisionBoxData(){return this.hasDebugData()&&this.textCollisionBox.segments.get().length>0}hasIconCollisionBoxData(){return this.hasDebugData()&&this.iconCollisionBox.segments.get().length>0}addIndicesForPlacedSymbol(e,t){let r=e.placedSymbolArray.get(t),i=r.vertexStartIndex+r.numGlyphs*4;for(let n=r.vertexStartIndex;ni[o]-i[s]||n[s]-n[o]),a}addToSortKeyRanges(e,t){let r=this.sortKeyRanges[this.sortKeyRanges.length-1];(r==null?void 0:r.sortKey)===t?r.symbolInstanceEnd=e+1:this.sortKeyRanges.push({sortKey:t,symbolInstanceStart:e,symbolInstanceEnd:e+1})}sortFeatures(e){if(this.sortFeaturesByY&&this.sortedAngle!==e&&!(this.text.segments.get().length>1||this.icon.segments.get().length>1)){this.symbolInstanceIndexes=this.getSortedSymbolIndexes(e),this.sortedAngle=e,this.text.indexArray.clear(),this.icon.indexArray.clear(),this.featureSortOrder=[];for(let t of this.symbolInstanceIndexes){let r=this.symbolInstances.get(t);this.featureSortOrder.push(r.featureIndex);let i=[r.rightJustifiedTextSymbolIndex,r.centerJustifiedTextSymbolIndex,r.leftJustifiedTextSymbolIndex];for(let n=0;n=0&&i.indexOf(a)===n&&this.addIndicesForPlacedSymbol(this.text,a)}r.verticalPlacedTextSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.text,r.verticalPlacedTextSymbolIndex),r.placedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,r.placedIconSymbolIndex),r.verticalPlacedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,r.verticalPlacedIconSymbolIndex)}this.text.indexBuffer&&this.text.indexBuffer.updateData(this.text.indexArray),this.icon.indexBuffer&&this.icon.indexBuffer.updateData(this.icon.indexArray)}}};Hi("SymbolBucket",IC,{omit:["layers","collisionBoxArray","features","compareText"]});Owr=()=>ott||(ott=new dc({"symbol-placement":new Pi(_r.layout_symbol["symbol-placement"],"symbol-placement"),"symbol-spacing":new Pi(_r.layout_symbol["symbol-spacing"],"symbol-spacing"),"symbol-avoid-edges":new Pi(_r.layout_symbol["symbol-avoid-edges"],"symbol-avoid-edges"),"symbol-sort-key":new kn(_r.layout_symbol["symbol-sort-key"],"symbol-sort-key"),"symbol-z-order":new Pi(_r.layout_symbol["symbol-z-order"],"symbol-z-order"),"icon-allow-overlap":new Pi(_r.layout_symbol["icon-allow-overlap"],"icon-allow-overlap"),"icon-overlap":new Pi(_r.layout_symbol["icon-overlap"],"icon-overlap"),"icon-ignore-placement":new Pi(_r.layout_symbol["icon-ignore-placement"],"icon-ignore-placement"),"icon-optional":new Pi(_r.layout_symbol["icon-optional"],"icon-optional"),"icon-rotation-alignment":new kn(_r.layout_symbol["icon-rotation-alignment"],"icon-rotation-alignment"),"icon-size":new kn(_r.layout_symbol["icon-size"],"icon-size"),"icon-text-fit":new Pi(_r.layout_symbol["icon-text-fit"],"icon-text-fit"),"icon-text-fit-padding":new Pi(_r.layout_symbol["icon-text-fit-padding"],"icon-text-fit-padding"),"icon-image":new kn(_r.layout_symbol["icon-image"],"icon-image"),"icon-rotate":new kn(_r.layout_symbol["icon-rotate"],"icon-rotate"),"icon-padding":new kn(_r.layout_symbol["icon-padding"],"icon-padding"),"icon-keep-upright":new Pi(_r.layout_symbol["icon-keep-upright"],"icon-keep-upright"),"icon-offset":new kn(_r.layout_symbol["icon-offset"],"icon-offset"),"icon-anchor":new kn(_r.layout_symbol["icon-anchor"],"icon-anchor"),"icon-pitch-alignment":new Pi(_r.layout_symbol["icon-pitch-alignment"],"icon-pitch-alignment"),"text-pitch-alignment":new Pi(_r.layout_symbol["text-pitch-alignment"],"text-pitch-alignment"),"text-rotation-alignment":new Pi(_r.layout_symbol["text-rotation-alignment"],"text-rotation-alignment"),"text-field":new kn(_r.layout_symbol["text-field"],"text-field"),"text-font":new kn(_r.layout_symbol["text-font"],"text-font"),"text-size":new kn(_r.layout_symbol["text-size"],"text-size"),"text-max-width":new kn(_r.layout_symbol["text-max-width"],"text-max-width"),"text-line-height":new Pi(_r.layout_symbol["text-line-height"],"text-line-height"),"text-letter-spacing":new kn(_r.layout_symbol["text-letter-spacing"],"text-letter-spacing"),"text-justify":new kn(_r.layout_symbol["text-justify"],"text-justify"),"text-radial-offset":new kn(_r.layout_symbol["text-radial-offset"],"text-radial-offset"),"text-variable-anchor":new Pi(_r.layout_symbol["text-variable-anchor"],"text-variable-anchor"),"text-variable-anchor-offset":new kn(_r.layout_symbol["text-variable-anchor-offset"],"text-variable-anchor-offset"),"text-anchor":new kn(_r.layout_symbol["text-anchor"],"text-anchor"),"text-max-angle":new Pi(_r.layout_symbol["text-max-angle"],"text-max-angle"),"text-writing-mode":new Pi(_r.layout_symbol["text-writing-mode"],"text-writing-mode"),"text-rotate":new kn(_r.layout_symbol["text-rotate"],"text-rotate"),"text-padding":new Pi(_r.layout_symbol["text-padding"],"text-padding"),"text-keep-upright":new Pi(_r.layout_symbol["text-keep-upright"],"text-keep-upright"),"text-transform":new kn(_r.layout_symbol["text-transform"],"text-transform"),"text-offset":new kn(_r.layout_symbol["text-offset"],"text-offset"),"text-allow-overlap":new Pi(_r.layout_symbol["text-allow-overlap"],"text-allow-overlap"),"text-overlap":new Pi(_r.layout_symbol["text-overlap"],"text-overlap"),"text-ignore-placement":new Pi(_r.layout_symbol["text-ignore-placement"],"text-ignore-placement"),"text-optional":new Pi(_r.layout_symbol["text-optional"],"text-optional"),"symbol-height-offset":new kn(_r.layout_symbol["symbol-height-offset"],"symbol-height-offset"),"symbol-height-anchor":new Pi(_r.layout_symbol["symbol-height-anchor"],"symbol-height-anchor")})),Nwr=()=>stt||(stt=new dc({"icon-opacity":new kn(_r.paint_symbol["icon-opacity"],"icon-opacity"),"icon-color":new kn(_r.paint_symbol["icon-color"],"icon-color"),"icon-halo-color":new kn(_r.paint_symbol["icon-halo-color"],"icon-halo-color"),"icon-halo-width":new kn(_r.paint_symbol["icon-halo-width"],"icon-halo-width"),"icon-halo-blur":new kn(_r.paint_symbol["icon-halo-blur"],"icon-halo-blur"),"icon-translate":new Pi(_r.paint_symbol["icon-translate"],"icon-translate"),"icon-translate-anchor":new Pi(_r.paint_symbol["icon-translate-anchor"],"icon-translate-anchor"),"text-opacity":new kn(_r.paint_symbol["text-opacity"],"text-opacity"),"text-color":new kn(_r.paint_symbol["text-color"],"text-color",{runtimeType:Cv,getOverride:e=>e.textColor,hasOverride:e=>!!e.textColor}),"text-halo-color":new kn(_r.paint_symbol["text-halo-color"],"text-halo-color"),"text-halo-width":new kn(_r.paint_symbol["text-halo-width"],"text-halo-width"),"text-halo-blur":new kn(_r.paint_symbol["text-halo-blur"],"text-halo-blur"),"text-translate":new Pi(_r.paint_symbol["text-translate"],"text-translate"),"text-translate-anchor":new Pi(_r.paint_symbol["text-translate-anchor"],"text-translate-anchor")})),Xre={get paint(){return Nwr()},get layout(){return Owr()}},iat=class{constructor(e){if(e.property.overrides===void 0)throw Error("overrides must be provided to instantiate FormatSectionOverride class");this.type=e.property.overrides?e.property.overrides.runtimeType:xC,this.defaultValue=e}evaluate(e){if(e.formattedSection){let t=this.defaultValue.property.overrides;if(t!=null&&t.hasOverride(e.formattedSection))return t.getOverride(e.formattedSection)}return e.feature&&e.featureState?this.defaultValue.evaluate(e.feature,e.featureState):this.defaultValue.property.specification.default}eachChild(e){if(!this.defaultValue.isConstant()){let t=this.defaultValue.value;e(t._styleExpression.expression)}}outputDefined(){return!1}serialize(){return null}};Hi("FormatSectionOverride",iat,{omit:["defaultValue"]});dae=e=>e.type==="symbol",Uwr=class nne extends Iv{constructor(t,r){super(t,Xre,r)}recalculate(t,r){super.recalculate(t,r);let i=this.layout.get("icon-rotation-alignment");if((i.value.kind!=="constant"||i.value.value==="auto")&&(this.layout._values["icon-rotation-alignment"]=new ap(i.property,{kind:"constant",value:this.layout.get("symbol-placement")==="point"?"viewport":"map"},i.parameters)),this.layout.get("text-rotation-alignment")==="auto"&&(this.layout.get("symbol-placement")==="point"?this.layout._values["text-rotation-alignment"]="viewport":this.layout._values["text-rotation-alignment"]="map"),this.layout.get("text-pitch-alignment")==="auto"&&(this.layout._values["text-pitch-alignment"]=this.layout.get("text-rotation-alignment")==="map"?"map":"viewport"),this.layout.get("icon-pitch-alignment")==="auto"&&(this.layout._values["icon-pitch-alignment"]=this.layout.get("icon-rotation-alignment").constantOr("viewport")),this.layout.get("symbol-placement")==="point"){let n=this.layout.get("text-writing-mode");if(n){let a=[];for(let o of n)a.includes(o)||a.push(o);this.layout._values["text-writing-mode"]=a}else this.layout._values["text-writing-mode"]=["horizontal"]}this._setPaintOverrides()}getValueAndResolveTokens(t,r,i,n){let a=this.layout.get(t).evaluate(r,{},i,n),o=this._unevaluatedLayout._values[t];return!o.isDataDriven()&&!dq(o.value)&&a?qwr(r.properties,a):a}createBucket(t){return new IC(t)}queryRadius(){return 0}queryIntersectsFeature(){throw Error("Should take a different path in FeatureIndex")}_setPaintOverrides(){for(let t of Xre.paint.overridableProperties){if(!nne.hasPaintOverride(this.layout,t))continue;let r=this.paint.get(t),i=new One(new iat(r),`layers[${this.id}].paint.${r.property.name}`,r.property.specification),n=null;n=r.value.kind==="constant"||r.value.kind==="source"?new Qk("source",i):new kB("composite",i,r.value.zoomStops),this.paint._values[t]=new ap(r.property,n,r.parameters)}}_handleOverridablePaintPropertyUpdate(t,r,i){return!this.layout||r.isDataDriven()||i.isDataDriven()?!1:nne.hasPaintOverride(this.layout,t)}static hasPaintOverride(t,r){let i=t.get("text-field"),n=Xre.paint.properties[r],a=!1,o=s=>{var l;for(let u of s)if((l=n.overrides)!=null&&l.hasOverride(u)){a=!0;return}};if(i.value.kind==="constant"&&i.value.value instanceof Bm)o(i.value.value.sections);else if(i.value.kind==="source"||i.value.kind==="composite"){let s=u=>{if(!a)if(u instanceof OT&&su(u.value)===bC){let c=u.value;o(c.sections)}else u instanceof wrt?o(u.sections):u.eachChild(s)},l=i.value;l._styleExpression&&s(l._styleExpression.expression)}return a}};Gwr=()=>ltt||(ltt=new dc({"background-color":new Pi(_r.paint_background["background-color"],"background-color"),"background-pattern":new Fit(_r.paint_background["background-pattern"],"background-pattern"),"background-opacity":new Pi(_r.paint_background["background-opacity"],"background-opacity")})),Hwr={get paint(){return Gwr()}},nat=e=>e.type==="background",jwr=class extends Iv{constructor(e,t){super(e,Hwr,t)}};oat=e=>e.type==="custom",$wr=class extends Iv{constructor(e,t){super(e,{},t),this.onAdd=r=>{this.implementation.onAdd&&this.implementation.onAdd(r,r.painter.context.gl)},this.onRemove=r=>{this.implementation.onRemove&&this.implementation.onRemove(r,r.painter.context.gl)},this.implementation=e}is3D(){return this.implementation.renderingMode==="3d"}hasOffscreenPass(){return this.implementation.prerender!==void 0}recalculate(){}updateTransitions(){}hasTransition(){return!1}serialize(){throw Error("Custom layers cannot be serialized")}};Wwr=class{constructor(e){this._methodToThrottle=e,this._triggered=!1,this._channel=new MessageChannel,this._channel.port2.onmessage=()=>{this._triggered=!1,this._methodToThrottle()}}trigger(){var e;this._triggered||(this._triggered=!0,(e=this._channel)==null||e.port1.postMessage(!0))}remove(){delete this._channel,this._methodToThrottle=()=>{}}},Ywr={once:!0},sat=class{constructor(e,t){this.target=e,this.mapId=t,this.resolveRejects={},this.tasks={},this.taskQueue=[],this.abortControllers={},this.messageHandlers={},this.invoker=new Wwr(()=>this.process()),this.subscription=Wk(this.target,"message",r=>this.receive(r),!1),this.globalScope=o3(self)?e:window}registerMessageHandler(e,t){this.messageHandlers[e]=t}unregisterMessageHandler(e){delete this.messageHandlers[e]}sendAsync(e,t){return new Promise((r,i)=>{let n=Math.round(Math.random()*1e18).toString(36).substring(0,10),a=t?Wk(t.signal,"abort",()=>{a==null||a.unsubscribe(),delete this.resolveRejects[n];let l={id:n,type:"",origin:location.origin,targetMapId:e.targetMapId,sourceMapId:this.mapId};this.target.postMessage(l),i(new YT(t.signal.reason))},Ywr):null;this.resolveRejects[n]={resolve:l=>{a==null||a.unsubscribe(),r(l)},reject:l=>{a==null||a.unsubscribe(),i(l)}};let o=[],s=da(fn({},e),{id:n,sourceMapId:this.mapId,origin:location.origin,data:Hk(e.data,o)});this.target.postMessage(s,{transfer:o})})}receive(e){let t=e.data,r=t.id,i=["file://","resource://android","null"],n=[t.origin,location.origin],a=t.origin===location.origin,o=n.some(s=>i.includes(s));if((a||o)&&!(t.targetMapId&&this.mapId!==t.targetMapId)){if(t.type===""){delete this.tasks[r];let s=this.abortControllers[r];delete this.abortControllers[r],s&&s.abort();return}if(o3(self)||t.mustQueue){this.tasks[r]=t,this.taskQueue.push(r),this.invoker.trigger();return}this.processTask(r,t)}}process(){if(this.taskQueue.length===0)return;let e=this.taskQueue.shift(),t=this.tasks[e];delete this.tasks[e],this.taskQueue.length>0&&this.invoker.trigger(),t&&this.processTask(e,t)}processTask(e,t){return Zi(this,null,function*(){if(t.type===""){let n=this.resolveRejects[e];if(delete this.resolveRejects[e],!n)return;t.error?n.reject(Oc(jk(t.error))):n.resolve(jk(t.data));return}if(!this.messageHandlers[t.type]){this.completeTask(e,null,null);return}let r=jk(t.data),i=new AbortController;this.abortControllers[e]=i;try{let n=yield this.messageHandlers[t.type](t.sourceMapId,r,i);this.completeTask(e,null,n)}catch(n){this.completeTask(e,Oc(n))}})}completeTask(e,t,r){let i=[];delete this.abortControllers[e];let n={id:e,type:"",sourceMapId:this.mapId,origin:location.origin,error:t?Hk(t):null,data:Hk(r,i)};this.target.postMessage(n,{transfer:i})}remove(){this.invoker.remove(),this.subscription.unsubscribe()}};RC=class{constructor(e,t,r){if(!Xwr(e,t,r))throw Error(`x=${t}, y=${r}, z=${e} outside of bounds. 0<=x<${2**e}, 0<=y<${2**e} 0<=z<=25 `);this.z=e,this.x=t,this.y=r,this.key=n3(0,e,e,t,r)}equals(e){return this.z===e.z&&this.x===e.x&&this.y===e.y}url(e,t,r){let i=Zwr(this.x,this.y,this.z),n=Kwr(this.z,this.x,this.y);return e[(this.x+this.y)%e.length].replace(/{prefix}/g,(this.x%16).toString(16)+(this.y%16).toString(16)).replace(/{z}/g,String(this.z)).replace(/{x}/g,String(this.x)).replace(/{y}/g,String(r==="tms"?2**this.z-this.y-1:this.y)).replace(/{ratio}/g,t>1?"@2x":"").replace(/{quadkey}/g,n).replace(/{bbox-epsg-3857}/g,i)}isChildOf(e){let t=this.z-e.z;return t>0&&e.x===this.x>>t&&e.y===this.y>>t}getTilePoint(e){let t=2**this.z;return new rr((e.x*t-this.x)*qr,(e.y*t-this.y)*qr)}toString(){return`${this.z}/${this.x}/${this.y}`}},zC=class{constructor(e,t){this.wrap=e,this.canonical=t,this.key=n3(e,t.z,t.z,t.x,t.y)}},Gc=class ip{constructor(t,r,i,n,a){if(this.terrainRttPosMatrix32f=null,t= z; overscaledZ = ${t}; z = ${i}`);this.overscaledZ=t,this.wrap=r,this.canonical=new RC(i,+n,+a),this.key=n3(r,t,i,n,a)}clone(){return new ip(this.overscaledZ,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)}equals(t){return this.overscaledZ===t.overscaledZ&&this.wrap===t.wrap&&this.canonical.equals(t.canonical)}scaledTo(t){if(t>this.overscaledZ)throw Error(`targetZ > this.overscaledZ; targetZ = ${t}; overscaledZ = ${this.overscaledZ}`);let r=this.canonical.z-t;return t>this.canonical.z?new ip(t,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y):new ip(t,this.wrap,t,this.canonical.x>>r,this.canonical.y>>r)}isOverscaled(){return this.overscaledZ>this.canonical.z}calculateScaledKey(t,r){if(t>this.overscaledZ)throw Error(`targetZ > this.overscaledZ; targetZ = ${t}; overscaledZ = ${this.overscaledZ}`);let i=this.canonical.z-t;return t>this.canonical.z?n3(this.wrap*+r,t,this.canonical.z,this.canonical.x,this.canonical.y):n3(this.wrap*+r,t,t,this.canonical.x>>i,this.canonical.y>>i)}isChildOf(t){if(t.wrap!==this.wrap||this.overscaledZ-t.overscaledZ<=0)return!1;if(t.overscaledZ===0)return this.overscaledZ>0;let r=this.canonical.z-t.canonical.z;return r<0?!1:t.canonical.x===this.canonical.x>>r&&t.canonical.y===this.canonical.y>>r}children(t){if(this.overscaledZ>=t)return[new ip(this.overscaledZ+1,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)];let r=this.canonical.z+1,i=this.canonical.x*2,n=this.canonical.y*2;return[new ip(r,this.wrap,r,i,n),new ip(r,this.wrap,r,i+1,n),new ip(r,this.wrap,r,i,n+1),new ip(r,this.wrap,r,i+1,n+1)]}isLessThan(t){return this.wrapt.wrap?!1:this.overscaledZt.overscaledZ?!1:this.canonical.xt.canonical.x?!1:this.canonical.y=0&&t=0&&r=u)return null;let f=this.canonical.x+n,h=this.wrap;return f<0?(h-=Math.ceil(-f/u),f=(f%u+u)%u):f>=u&&(h+=Math.floor(f/u),f%=u),{tileID:new ip(this.overscaledZ,h,l,f,c),x:o,y:s}}};Zre=Math.PI*6378137;Hi("CanonicalTileID",RC),Hi("OverscaledTileID",Gc,{omit:["terrainRttPosMatrix32f"]});BC="_geojsonTileLayer",Jwr=class{constructor(e){this._stringToNumber={},this._numberToString=[];for(let t=0;t=this._numberToString.length)throw Error(`Out of bounds. Index requested n=${e} can't be >= this._numberToString.length ${this._numberToString.length}`);return this._numberToString[e]}},gae=class{constructor(e,t,r,i,n){this.type="Feature",this._vectorTileFeature=e,this._x=r,this._y=i,this._z=t;for(let a in e.properties)typeof e.properties[a]=="string"&&e.properties[a].startsWith("__$json__:")&&(e.properties[a]=JSON.parse(e.properties[a].slice(10)));this.properties=e.properties,this.id=n}projectPoint(e,t,r,i){return[(e.x+t)*360/i-180,360/Math.PI*Math.atan(Math.exp((1-(e.y+r)*2/i)*Math.PI))-90]}projectLine(e,t,r,i){return e.map(n=>this.projectPoint(n,t,r,i))}get geometry(){if(this._geometry)return this._geometry;let e=this._vectorTileFeature,t=e.extent*2**this._z,r=e.extent*this._x,i=e.extent*this._y,n=e.loadGeometry();switch(e.type){case 1:{let a=[];for(let s of n)a.push(s[0]);let o=this.projectLine(a,r,i,t);this._geometry=a.length===1?{type:"Point",coordinates:o[0]}:{type:"MultiPoint",coordinates:o};break}case 2:{let a=n.map(o=>this.projectLine(o,r,i,t));this._geometry=a.length===1?{type:"LineString",coordinates:a[0]}:{type:"MultiLineString",coordinates:a};break}case 3:{let a=_nt(n),o=[];for(let s of a)o.push(s.map(l=>this.projectLine(l,r,i,t)));this._geometry=o.length===1?{type:"Polygon",coordinates:o[0]}:{type:"MultiPolygon",coordinates:o};break}default:throw Error(`unknown feature type: ${e.type}`)}return this._geometry}set geometry(e){this._geometry=e}toJSON(){let e={geometry:this.geometry};for(let t in this)t!=="_geometry"&&t!=="_vectorTileFeature"&&t!=="_x"&&t!=="_y"&&t!=="_z"&&(e[t]=this[t]);return e}},y3=class{constructor(e,t,r){this._name=e,this.dataBuffer=t,typeof r=="number"?this._size=r:(this.nullabilityBuffer=r,this._size=r.size())}getValue(e){return this.nullabilityBuffer&&!this.nullabilityBuffer.get(e)?null:this.getValueFromBuffer(e)}has(e){var t;return((t=this.nullabilityBuffer)==null?void 0:t.get(e))||!this.nullabilityBuffer}get name(){return this._name}get size(){return this._size}},Pq=class extends y3{},mae=class extends Pq{getValueFromBuffer(e){return this.dataBuffer[e]}},yae=class extends Pq{getValueFromBuffer(e){return this.dataBuffer[e]}},lat=class extends y3{constructor(e,t,r,i){super(e,t,i),this.delta=r}},xae=class extends lat{constructor(e,t,r,i,n){super(e,n?Int32Array.of(t):Uint32Array.of(t),r,i)}getValueFromBuffer(e){return this.dataBuffer[0]+e*this.delta}},bae=class extends y3{constructor(e,t,r,i){super(e,i?Int32Array.of(t):Uint32Array.of(t),r)}getValueFromBuffer(e){return this.dataBuffer[0]}},Qwr=class{constructor(e,t,r,i,n=4096){if(this._name=e,this._geometryVector=t,this._idVector=r,this._propertyVectors=i,this._extent=n,e.length===0)throw Error("Missing layer name")}get name(){return this._name}get idVector(){return this._idVector}get geometryVector(){return this._geometryVector}get propertyVectors(){var e;return(e=this._propertyVectors)!=null?e:[]}getPropertyVector(e){return this.propertyVectorsMap||(this.propertyVectorsMap=new Map(this.propertyVectors.map(t=>[t.name,t]))),this.propertyVectorsMap.get(e)}get numFeatures(){return this.geometryVector.numGeometries}get extent(){return this._extent}getFeatures(){let e=[],t=this.geometryVector.getGeometries();for(let r=0;r>>32-e;ane=_ae,wae=65536;one=fat(wae),A5r=3*one/256+one|0;(function(e){e.PRESENT="PRESENT",e.DATA="DATA",e.OFFSET="OFFSET",e.LENGTH="LENGTH"})(ou||(ou={}));(function(e){e.NONE="NONE",e.SINGLE="SINGLE",e.SHARED="SHARED",e.VERTEX="VERTEX",e.MORTON="MORTON",e.FSST="FSST"})(Nf||(Nf={}));(function(e){e.VERTEX="VERTEX",e.INDEX="INDEX",e.STRING="STRING",e.KEY="KEY"})(ag||(ag={}));(function(e){e.VAR_BINARY="VAR_BINARY",e.GEOMETRIES="GEOMETRIES",e.PARTS="PARTS",e.RINGS="RINGS",e.TRIANGLES="TRIANGLES",e.SYMBOL="SYMBOL",e.DICTIONARY="DICTIONARY"})(ju||(ju={}));p4r=[ou.PRESENT,ou.DATA,ou.OFFSET,ou.LENGTH],ptt=[va.NONE,va.DELTA,va.COMPONENTWISE_DELTA,va.RLE,va.MORTON],v4r=[H0.NONE,H0.FAST_PFOR,H0.VARINT],g4r=[Nf.NONE,Nf.SINGLE,Nf.SHARED,Nf.VERTEX,Nf.MORTON,Nf.FSST],m4r=[ag.VERTEX,ag.INDEX,ag.STRING,ag.KEY],y4r=[ju.VAR_BINARY,ju.GEOMETRIES,ju.PARTS,ju.RINGS,ju.TRIANGLES,ju.SYMBOL,ju.DICTIONARY];(function(e){e[e.FLAT=0]="FLAT",e[e.CONST=1]="CONST",e[e.SEQUENCE=2]="SEQUENCE",e[e.DICTIONARY=3]="DICTIONARY",e[e.FSST_DICTIONARY=4]="FSST_DICTIONARY"})(Bs||(Bs={}));Fv=class{constructor(e,t){this.values=e,this._size=t}get(e){let t=Math.floor(e/8),r=e%8;return(this.values[t]>>r&1)==1}set(e,t){let r=Math.floor(e/8),i=e%8;this.values[r]=this.values[r]|+!!t<>r&1}size(){return this._size}getBuffer(){return this.values}};S4r=new TextDecoder;Aat=class extends Pq{getValueFromBuffer(e){return this.dataBuffer[e]}},Mat=class extends lat{constructor(e,t,r,i,n){super(e,n?BigInt64Array.of(t):BigUint64Array.of(t),r,i)}getValueFromBuffer(e){return this.dataBuffer[0]+BigInt(e)*this.delta}};(function(e){e[e.POINT=0]="POINT",e[e.LINESTRING=1]="LINESTRING",e[e.POLYGON=2]="POLYGON",e[e.MULTIPOINT=3]="MULTIPOINT",e[e.MULTILINESTRING=4]="MULTILINESTRING",e[e.MULTIPOLYGON=5]="MULTIPOLYGON"})(qc||(qc={}));(function(e){e[e.POINT=0]="POINT",e[e.LINESTRING=1]="LINESTRING",e[e.POLYGON=2]="POLYGON"})(gtt||(gtt={}));(function(e){e[e.MORTON=0]="MORTON",e[e.VEC_2=1]="VEC_2",e[e.VEC_3=2]="VEC_3"})(fx||(fx={}));Sat=class{constructor(e,t,r,i,n){this._vertexBufferType=e,this._topologyVector=t,this._vertexOffsets=r,this._vertexBuffer=i,this._mortonSettings=n}get vertexBufferType(){return this._vertexBufferType}get topologyVector(){return this._topologyVector}get vertexOffsets(){return this._vertexOffsets}get vertexBuffer(){return this._vertexBuffer}getSimpleEncodedVertex(e){let t=this.vertexOffsets?this.vertexOffsets[e]*2:e*2;return[this.vertexBuffer[t],this.vertexBuffer[t+1]]}getVertex(e){if(this.vertexOffsets&&this.mortonSettings){let r=this.vertexOffsets[e],i=this.vertexBuffer[r],n=Cae(i,this.mortonSettings.numBits,this.mortonSettings.coordinateShift);return[n.x,n.y]}let t=this.vertexOffsets?this.vertexOffsets[e]*2:e*2;return[this.vertexBuffer[t],this.vertexBuffer[t+1]]}getGeometries(){return q4r(this)}get mortonSettings(){return this._mortonSettings}};Eat=class extends Sat{constructor(e,t,r,i,n,a,o){super(r,i,n,a,o),this._numGeometries=e,this._geometryType=t}geometryType(e){return this._geometryType}get numGeometries(){return this._numGeometries}containsPolygonGeometry(){return this._geometryType===qc.POLYGON||this._geometryType===qc.MULTIPOLYGON}containsSingleGeometryType(){return!0}};Cat=class extends Sat{constructor(e,t,r,i,n,a){super(e,r,i,n,a),this._geometryTypes=t}geometryType(e){return this._geometryTypes[e]}get numGeometries(){return this._geometryTypes.length}containsPolygonGeometry(){for(let e=0;eda(fn({},r),{[i.name]:new FTr(i)}),{})}},PTr=class{constructor(e,t){this.tileID=e,this.x=e.canonical.x,this.y=e.canonical.y,this.z=e.canonical.z,this.grid=new fie(qr,16,0),this.grid3D=new fie(qr,16,0),this.featureIndexArray=new Vit,this.promoteId=t}insert(e,t,r,i,n,a){let o=this.featureIndexArray.length;this.featureIndexArray.emplaceBack(r,i,n);let s=a?this.grid3D:this.grid;for(let l of t){let u=[1/0,1/0,-1/0,-1/0];for(let c of l)u[0]=Math.min(u[0],c.x),u[1]=Math.min(u[1],c.y),u[2]=Math.max(u[2],c.x),u[3]=Math.max(u[3],c.y);u[0]<8192&&u[1]<8192&&u[2]>=0&&u[3]>=0&&s.insert(o,u[0],u[1],u[2],u[3])}}loadVTLayers(){return this.vtLayers||(this.encoding==="mlt"?this.vtLayers=new LTr(this.rawTileData).layers:this.vtLayers=new E_r(new Nnt(this.rawTileData)).layers,this.sourceLayerCoder=new Jwr(this.vtLayers?Object.keys(this.vtLayers).sort():[BC])),this.vtLayers}query(e,t,r,i){this.loadVTLayers();let n=e.params,a=qr/e.tileSize/e.scale,o=VT(n.filter,"queryRenderedFeatures filter",n.globalState),s=e.queryGeometry,l=e.queryPadding*a,u=lp.fromPoints(s),c=this.grid.query(u.minX-l,u.minY-l,u.maxX+l,u.maxY+l),f=lp.fromPoints(e.cameraQueryGeometry).expandBy(l),h=this.grid3D.query(f.minX,f.minY,f.maxX,f.maxY,(v,m,g,w)=>wbr(e.cameraQueryGeometry,v-l,m-l,g+l,w+l));for(let v of h)c.push(v);c.sort(RTr);let p={},d;for(let v of c){if(v===d)continue;d=v;let m=this.featureIndexArray.get(v),g=null;this.loadMatchingFeature(p,m.bucketIndex,m.sourceLayerIndex,m.featureIndex,o,n.layers,n.availableImages,t,r,i,(w,_,b)=>(g||(g=v3(w)),_.queryIntersectsFeature({queryGeometry:s,feature:w,featureState:b,geometry:g,zoom:this.z,transform:e.transform,pixelsToTileUnits:a,pixelPosMatrix:e.pixelPosMatrix,unwrappedTileID:this.tileID.toUnwrapped(),getElevation:e.getElevation})))}return p}loadMatchingFeature(e,t,r,i,n,a,o,s,l,u,c){let f=this.bucketLayerIDs[t];if(a&&!f.some(v=>a.has(v)))return;let h=this.sourceLayerCoder.decode(r),p=this.vtLayers[h].feature(i);if(n.needGeometry){let v=vx(p,!0);if(!n.filter(new Io(this.tileID.overscaledZ),v,this.tileID.canonical))return}else if(!n.filter(new Io(this.tileID.overscaledZ),p))return;let d=this.getId(p,h);for(let v of f){if(a&&!a.has(v))continue;let m=s[v];if(!m)continue;let g={};d&&u&&(g=u.getState(m.sourceLayer||"_geojsonTileLayer",d));let w=dn({},l[v]);w.paint=Att(w.paint,m.paint,p,g,o),w.layout=Att(w.layout,m.layout,p,g,o);let _=!c||c(p,m,g);if(!_)continue;let b=new gae(p,this.z,this.x,this.y,d);b.layer=w;let S=e[v];S===void 0&&(S=e[v]=[]),S.push({featureIndex:i,feature:b,intersectionZ:_})}}lookupSymbolFeatures(e,t,r,i,n,a,o,s){let l={};this.loadVTLayers();let u=VT(n.filterSpec,"queryRenderedFeatures symbol filter",n.globalState);for(let c of e)this.loadMatchingFeature(l,r,i,c,u,a,o,s,t);return l}hasLayer(e){for(let t of this.bucketLayerIDs)for(let r of t)if(e===r)return!0;return!1}getId(e,t){var i;let r=e.id;if(this.promoteId){let n=typeof this.promoteId=="string"?this.promoteId:this.promoteId[t];r=e.properties[n],typeof r=="boolean"&&(r=Number(r)),r===void 0&&((i=e.properties)!=null&&i.cluster)&&this.promoteId&&(r=Number(e.properties.cluster_id))}return r}};Hi("FeatureIndex",PTr,{omit:["rawTileData","sourceLayerCoder"]});Oat=class{constructor(e,t){this.max=e,this.onRemove=t,this.reset()}reset(){for(let e in this.data)for(let t of this.data[e])t.timeout&&clearTimeout(t.timeout),this.onRemove(t.value);return this.data={},this.order=[],this}add(e,t,r){let i=e.wrapped().key;this.data[i]===void 0&&(this.data[i]=[]);let n={value:t,timeout:void 0};if(r!==void 0&&(n.timeout=setTimeout(()=>{this.remove(e,n)},r)),this.data[i].push(n),this.order.push(i),this.order.length>this.max){let a=this._getAndRemoveByKey(this.order[0]);a&&this.onRemove(a)}return this}has(e){return e.wrapped().key in this.data}getAndRemove(e){return this.has(e)?this._getAndRemoveByKey(e.wrapped().key):null}_getAndRemoveByKey(e){let t=this.data[e].shift();return t.timeout&&clearTimeout(t.timeout),this.data[e].length===0&&delete this.data[e],this.order.splice(this.order.indexOf(e),1),t.value}getByKey(e){let t=this.data[e];return t?t[0].value:null}get(e){return this.has(e)?this.data[e.wrapped().key][0].value:null}remove(e,t){if(!this.has(e))return this;let r=e.wrapped().key,i=t===void 0?0:this.data[r].indexOf(t),n=this.data[r][i];return this.data[r].splice(i,1),n.timeout&&clearTimeout(n.timeout),this.data[r].length===0&&delete this.data[r],this.onRemove(n.value),this.order.splice(this.order.indexOf(r),1),this}setMaxSize(e){for(this.max=e;this.order.length>this.max;){let t=this._getAndRemoveByKey(this.order[0]);t&&this.onRemove(t)}return this}filter(e){let t=[];for(let r in this.data)for(let i of this.data[r])e(i.value)||t.push(i);for(let r of t)this.remove(r.value.tileID,r)}}});var qlt={};Jn(qlt,{AJAXError:()=>zT,AttributionControl:()=>Dlt,BoxZoomHandler:()=>ylt,CanvasSource:()=>xst,CooperativeGesturesHandler:()=>klt,DoubleClickZoomHandler:()=>Alt,DragPanHandler:()=>Mlt,DragRotateHandler:()=>Slt,EXTENT:()=>qr,EdgeInsets:()=>foe,ErrorEvent:()=>Mn,Event:()=>o0,Evented:()=>cu,FullscreenControl:()=>tCr,FullscreenEvent:()=>yoe,GPUInitializationError:()=>glt,GeoJSONSource:()=>pst,GeolocateControl:()=>Zkr,GeolocateErrorEvent:()=>zlt,GeolocateEvent:()=>w3,GeolocatePositionEvent:()=>moe,GlobeControl:()=>iCr,Hash:()=>mlt,ImageSource:()=>l6,KeyboardHandler:()=>wlt,LngLat:()=>yn,LngLatBounds:()=>qv,LogoControl:()=>Flt,Map:()=>Vkr,MapBoxZoomEvent:()=>toe,MapContextEvent:()=>Zq,MapLibreEvent:()=>vc,MapLibreMap:()=>Vkr,MapMouseEvent:()=>s0,MapMovementEvent:()=>Cn,MapProjectionEvent:()=>tst,MapSourceDataEvent:()=>Ns,MapStyleDataEvent:()=>dp,MapStyleImageMissingEvent:()=>rst,MapStyleLoadEvent:()=>eoe,MapTerrainEvent:()=>est,MapTouchEvent:()=>ZC,MapWheelEvent:()=>Qot,Marker:()=>goe,MarkerClickEvent:()=>Rlt,MarkerDragEvent:()=>_3,MercatorCoordinate:()=>Mo,NavigationControl:()=>Hkr,Point:()=>rr,Popup:()=>oCr,PopupEvent:()=>xoe,RasterDEMTileSource:()=>hst,RasterTileSource:()=>Aoe,ScaleControl:()=>Jkr,ScrollZoomHandler:()=>Tlt,Style:()=>doe,TerrainControl:()=>rCr,TwoFingersTouchPitchHandler:()=>_lt,TwoFingersTouchRotateHandler:()=>blt,TwoFingersTouchZoomHandler:()=>xlt,TwoFingersTouchZoomRotateHandler:()=>Elt,VectorTileSource:()=>fst,VideoSource:()=>yst,addProtocol:()=>art,addSourceType:()=>J6r,clearPrewarmedResources:()=>M6r,config:()=>a0,createTileMesh:()=>gst,getGlobalDispatcher:()=>Toe,getMaxParallelImageRequests:()=>pCr,getRTLTextPluginStatus:()=>cCr,getVersion:()=>fCr,getWorkerCount:()=>hCr,getWorkerUrl:()=>gCr,importScriptInWorkers:()=>yCr,isTimeFrozen:()=>UTr,now:()=>zo,prewarm:()=>A6r,removeProtocol:()=>ort,restoreNow:()=>NTr,setMaxParallelImageRequests:()=>vCr,setNow:()=>OTr,setRTLTextPlugin:()=>uCr,setWorkerCount:()=>dCr,setWorkerUrl:()=>mCr});function Jot(){var e=new Wu(4);return Wu!=Float32Array&&(e[1]=0,e[2]=0),e[0]=1,e[3]=1,e}function zTr(e,t){var r=t[0],i=t[1],n=t[2],a=t[3],o=r*a-n*i;return o?(o=1/o,e[0]=a*o,e[1]=-i*o,e[2]=-n*o,e[3]=r*o,e):null}function BTr(e){return e[0]*e[3]-e[2]*e[1]}function qTr(e,t,r){var i=t[0],n=t[1],a=t[2],o=t[3],s=Math.sin(r),l=Math.cos(r);return e[0]=i*l+a*s,e[1]=n*l+o*s,e[2]=i*-s+a*l,e[3]=n*-s+o*l,e}function zo(){return uO.getCurrentTime()}function OTr(e){uO.setNow(e)}function NTr(){uO.restoreNow()}function UTr(){return uO.isFrozen()}function Iae(){return UC!=null||(UC={getAttribute:Element.prototype.getAttribute,getAttributeNames:Element.prototype.getAttributeNames,querySelectorAll:Element.prototype.querySelectorAll,remove:Element.prototype.remove,removeAttribute:Element.prototype.removeAttribute,localName:Object.getOwnPropertyDescriptor(Element.prototype,"localName").get,namespaceURI:Object.getOwnPropertyDescriptor(Element.prototype,"namespaceURI").get}),UC}function WTr(e,t){let r={};for(let i in e)i!=="ref"&&(r[i]=e[i]);return urt.forEach(i=>{i in t&&(r[i]=t[i])}),r}function Uat(e){e=e.slice();let t=Object.create(null);for(let r=0;r{"source"in s&&n[s.source]?r.push({command:"removeLayer",args:[s.id]}):o.push(s)}),r=r.concat(a),KTr(o,t.layers,r),i&&t.terrain&&r.push({command:"setTerrain",args:[t.terrain]})}catch(i){console.warn("Unable to compute style diff:",i),r=[{command:"setStyle",args:[t]}]}return r}function QTr(){let e={},t=_r.$version;for(let r in _r.$root){let i=_r.$root[r];if(i.required){let n=null;n=r==="version"?t:i.type==="array"?[]:{},n!=null&&(e[r]=n)}}return e}function Kq(e){let t=[];if(typeof e=="string")t.push({id:"default",url:e});else if(e&&e.length>0){let r=[];for(let{id:i,url:n}of e){let a=`${i}${n}`;r.includes(a)||(r.push(a),t.push({id:i,url:n}))}}return t}function jat(e,t,r){try{let i=new URL(e);return i.pathname+=`${t}${r}`,i.toString()}catch(i){throw Error(`Invalid sprite URL "${e}", must be absolute. Modify style specification directly or use TransformStyleFunction to correct the issue dynamically`)}}function e6r(e,t,r,i){return Zi(this,null,function*(){let n=Kq(e),a=r>1?"@2x":"",o={},s={};for(let{id:l,url:u}of n){let c=yield t.transformRequest(jat(u,a,".json"),"SpriteJSON");o[l]=yC(c,i);let f=yield t.transformRequest(jat(u,a,".png"),"SpriteImage");s[l]=Bv.getImage(f,i)}return yield Promise.all([...Object.values(o),...Object.values(s)]),t6r(o,s)})}function t6r(e,t){return Zi(this,null,function*(){let r={};for(let i in e){r[i]={};let n=(yield t[i]).data;if(!n)throw Error(`Could not load sprite image for ${i}: the response is empty`);let a=l0.getImageCanvasContext(n),o=(yield e[i]).data;for(let s in o){let{width:l,height:u,x:c,y:f,sdf:h,pixelRatio:p,stretchX:d,stretchY:v,content:m,textFitWidth:g,textFitHeight:w}=o[s],_={width:l,height:u,x:c,y:f,context:a};r[i][s]={data:null,pixelRatio:p,sdf:h,stretchX:d,stretchY:v,content:m,textFitWidth:g,textFitHeight:w,spriteData:_}}}return r})}function o6r(e){let t=/^u\+([0-9a-f]*)(\?+)$/i.exec(e);if(t){let[,n,a]=t;return n.length+a.length>6?null:$at(parseInt(`${n}${"0".repeat(a.length)}`,16),parseInt(`${n}${"f".repeat(a.length)}`,16))}let r=/^u\+([0-9a-f]{1,6})(?:-([0-9a-f]{1,6}))?$/i.exec(e);if(!r)return null;let i=parseInt(r[1],16);return $at(i,r[2]===void 0?i:parseInt(r[2],16))}function $at(e,t){return e>t||e>roe?null:{start:e,end:Math.min(t,roe)}}function s6r(e,t){return e.ranges.some(({start:r,end:i})=>t>=r&&t<=i)}function Wat(e,t,r,i,n,a,o,s,l){for(let u=t;u-1);l++,a[l]=s,o[l]=u,o[l+1]=ioe}for(let s=0,l=0;smC(t,r))),Bq}function S6r(e,t){let r=Om();return lu(r,r,[1,1,0]),Nc(r,r,[e.width*.5,e.height*.5,1]),e.calculatePosMatrix?c3(r,r,e.calculatePosMatrix(t.toUnwrapped())):r}function E6r(e,t,r){if(e)for(let i of e){let n=t[i];if((n==null?void 0:n.source)===r&&n.type==="fill-extrusion")return!0}else for(let i in t){let n=t[i];if(n.source===r&&n.type==="fill-extrusion")return!0}return!1}function k6r(e,t,r,i,n,a,o){var f;let s=E6r((f=n==null?void 0:n.layers)!=null?f:null,t,e.id),l=a.maxPitchScaleFactor(),u=e.tilesIn(i,l,s);u.sort(sst);let c=[];for(let h of u)c.push({wrappedTileID:h.tileID.wrapped().key,queryResults:h.tile.queryRenderedFeatures(t,r,e.getState(),h.queryGeometry,h.cameraQueryGeometry,h.scale,n,a,l,S6r(a,h.tileID),o?(p,d)=>o(h.tileID,p,d):void 0)});return L6r(F6r(c),e)}function C6r(e,t,r,i,n,a,o){let s={},l=a.queryRenderedSymbols(i),u=[];for(let c of Object.keys(l).map(Number))u.push(o[c]);u.sort(sst);for(let c of u){let f=c.featureIndex.lookupSymbolFeatures(l[c.bucketInstanceId],t,c.bucketIndex,c.sourceLayerIndex,{filterSpec:n.filter,globalState:n.globalState},n.layers,n.availableImages,e);for(let h in f){s[h]||(s[h]=[]);let p=f[h];p.sort((d,v)=>{let m=c.featureSortOrder;if(m){let g=m.indexOf(d.featureIndex);return m.indexOf(v.featureIndex)-g}return v.featureIndex-d.featureIndex});for(let d of p)s[h].push(d)}}return P6r(s,e,r)}function D6r(e,t){let r=e.getRenderableIds().map(a=>e.getTileByID(a)),i=[],n={};for(let a of r){let o=a.tileID.canonical.key;n[o]||(n[o]=!0,a.querySourceFeatures(i,t))}return i}function sst(e,t){let r=e.tileID,i=t.tileID;return r.overscaledZ-i.overscaledZ||r.canonical.y-i.canonical.y||r.wrap-i.wrap||r.canonical.x-i.canonical.x}function F6r(e){let t={},r={};for(let{queryResults:i,wrappedTileID:n}of e){r[n]||(r[n]={});let a=r[n];for(let o in i){let s=i[o];a[o]||(a[o]={});let l=a[o];t[o]||(t[o]=[]);for(let u of s)l[u.featureIndex]||(l[u.featureIndex]=!0,t[o].push(u))}}return t}function L6r(e,t){for(let r in e)for(let i of e[r])lst(i,t);return e}function P6r(e,t,r){for(let i in e)for(let n of e[i]){let a=r[t[i].source];lst(n,a)}return e}function lst(e,t){let r=e.feature,i=t.getFeatureState(r.layer["source-layer"],r.id);r.source=r.layer.source,r.layer["source-layer"]&&(r.sourceLayer=r.layer["source-layer"]),r.state=i}function ust(e,t,r,i){return Zi(this,null,function*(){let n=e;if(e.url?n=(yield yC(yield t.transformRequest(e.url,"Source"),r)).data:yield l0.frameAsync(r,i),!n)return null;let a=WT(dn(n,e),["tiles","minzoom","maxzoom","attribution","bounds","scheme","tileSize","encoding"]);return"vector_layers"in n&&n.vector_layers&&(a.vectorLayerIds=n.vector_layers.map(o=>o.id)),a})}function rO(e,t){return t?e.properties[t]:e.id}function I6r(e,t){let r=new Map;if(e==null||e.type==null)return r;if(e.type==="Feature"){let i=rO(e,t);return i==null?void 0:(r.set(i,e),r)}if(e.type==="FeatureCollection"){let i=new Set;for(let n of e.features){let a=rO(n,t);if(a==null||i.has(a))return;i.add(a),r.set(a,n)}return r}}function R6r(e,t,r){var n,a;let i=[];if(t.removeAll)e.clear();else if(t.remove)for(let o of t.remove){let s=e.get(o);s&&(i.push(s.geometry),e.delete(o))}if(t.add)for(let o of t.add){let s=rO(o,r);if(s==null)continue;let l=e.get(s);l&&i.push(l.geometry),i.push(o.geometry),e.set(s,o)}if(t.update)for(let o of t.update){let s=e.get(o.id);if(!s)continue;let l=!!o.newGeometry,u=o.removeAllProperties||((n=o.removeProperties)==null?void 0:n.length)>0||((a=o.addOrUpdateProperties)==null?void 0:a.length)>0;if(!l&&!u)continue;i.push(s.geometry);let c=fn({},s);if(e.set(o.id,c),l&&(i.push(o.newGeometry),c.geometry=o.newGeometry),u){if(c.properties=o.removeAllProperties?{}:fn({},c.properties||{}),o.removeProperties)for(let f of o.removeProperties)delete c.properties[f];if(o.addOrUpdateProperties)for(let{key:f,value:h}of o.addOrUpdateProperties)c.properties[f]=h}}return i}function z6r(e,t,r){if(!e)return t||{};if(!t)return e||{};let i=Kat(e,r),n=Kat(t,r);B6r(i,n);let a={};if((i.removeAll||n.removeAll)&&(a.removeAll=!0),a.remove=new Set([...i.remove,...n.remove]),a.add=new Map([...i.add,...n.add]),a.update=new Map([...i.update,...n.update]),a.remove.size&&a.add.size)for(let o of a.add.keys())a.remove.delete(o);return O6r(a)}function B6r(e,t){t.removeAll&&(e.add.clear(),e.update.clear(),e.remove.clear(),t.remove.clear());for(let r of t.remove)e.add.delete(r),e.update.delete(r);for(let[r,i]of t.update){let n=e.update.get(r);n&&(t.update.set(r,q6r(n,i)),e.update.delete(r))}}function q6r(e,t){let r={id:e.id};if(t.removeAllProperties&&(delete e.removeProperties,delete e.addOrUpdateProperties,delete t.removeProperties),t.removeProperties&&e.addOrUpdateProperties){let i=new Set(t.removeProperties);e.addOrUpdateProperties=e.addOrUpdateProperties.filter(n=>!i.has(n.key))}return(e.removeAllProperties||t.removeAllProperties)&&(r.removeAllProperties=!0),(e.removeProperties||t.removeProperties)&&(r.removeProperties=[...e.removeProperties||[],...t.removeProperties||[]]),(e.addOrUpdateProperties||t.addOrUpdateProperties)&&(r.addOrUpdateProperties=[...e.addOrUpdateProperties||[],...t.addOrUpdateProperties||[]]),(e.newGeometry||t.newGeometry)&&(r.newGeometry=t.newGeometry||e.newGeometry),r}function Kat(e,t){var i,n;if(!e)return{};let r={};return r.removeAll=e.removeAll,r.remove=new Set(e.remove||[]),r.add=new Map((i=e.add)==null?void 0:i.map(a=>[rO(a,t),a])),r.update=new Map((n=e.update)==null?void 0:n.map(a=>[a.id,a])),r}function O6r(e){let t={};return e.removeAll&&(t.removeAll=e.removeAll),e.remove&&(t.remove=Array.from(e.remove)),e.add&&(t.add=Array.from(e.add.values())),e.update&&(t.update=Array.from(e.update.values())),t}function dst(e){return!e||e.length===0?[]:typeof e[0]=="number"?[e]:e.flatMap(t=>dst(t))}function Jq(e){return e.type==="GeometryCollection"?e.geometries.flatMap(t=>Jq(t)):dst(e.coordinates)}function Jat(e){let t=new qv,r;switch(e.type){case"FeatureCollection":r=e.features.flatMap(i=>Jq(i.geometry));break;case"Feature":r=Jq(e.geometry);break;default:r=Jq(e)}if(r.length===0)return t;for(let i of r){let[n,a]=i;t.extend([n,a])}return t}function N6r({x:e,y:t,z:r},i=0){let n=Mq((e-i)/2**r),a=jT((t+1+i)/2**r),o=Mq((e+1+i)/2**r),s=jT((t-i)/2**r);return new qv([n,a],[o,s])}function G6r(e){e*=Math.PI/180;let t=Math.sin(e),r=Math.cos(e);return[(2*r+1)/3,(-Math.sqrt(3)*t-r+1)/3,(Math.sqrt(3)*t-r+1)/3]}function H6r(e){return e>0?1/(1-e):1+e}function j6r(e){return e>0?1-1/(1.001-e):-e}function vst(e,t){let r=gst(t,"16bit"),i=Hm.deserialize({arrayBuffer:r.vertices,length:r.vertices.byteLength/2/2}),n=Rv.deserialize({arrayBuffer:r.indices,length:r.indices.byteLength/2/3});return new e8(e.createVertexBuffer(i,T3.members),e.createIndexBuffer(n),Js.simpleSegment(0,0,i.length,n.length))}function gst(e,t){let r=e.granularity===void 0?1:Math.max(e.granularity,1),i=r+(e.generateBorders?2:0),n=r+(e.extendToNorthPole||e.generateBorders?1:0)+(e.extendToSouthPole||e.generateBorders?1:0),a=i+1,o=n+1,s=e.generateBorders?-1:0,l=e.generateBorders||e.extendToNorthPole?-1:0,u=r+ +!!e.generateBorders,c=r+(e.generateBorders||e.extendToSouthPole?1:0),f=a*o,h=i*n*6,p=a*o>65536;if(p&&t==="16bit")throw Error("Granularity is too large and meshes would not fit inside 16 bit vertex indices.");let d=p||t==="32bit",v=new Int16Array(f*2),m=0;for(let _=l;_<=c;_++)for(let b=s;b<=u;b++){let S=b/r*qr;b===-1&&(S=-qq),b===r+1&&(S=qr+qq);let x=_/r*qr;_===-1&&(x=e.extendToNorthPole?LT:-qq),_===r+1&&(x=e.extendToSouthPole?PT:qr+qq),v[m++]=S,v[m++]=x}let g=d?new Uint32Array(h):new Uint16Array(h),w=0;for(let _=0;_=1&&g<=512)||w>=1?a6:[d,v,w]}function X6r(e){let t=(1-4/e)/.9921875;return Math.max(0,t)}function mst(e){let[t,r,i,n]=e;return t.x+i.x===r.x+n.x&&t.y+i.y===r.y+n.y}function Q6r(e,t){let r={};if(!t)return r;for(let i of e){let n=i.layerIds.map(a=>t.getLayer(a)).filter(Boolean);if(n.length!==0){i.layers=n,i.stateDependentLayerIds&&(i.stateDependentLayers=i.stateDependentLayerIds.map(a=>n.filter(o=>o.id===a)[0]));for(let a of n)r[a.id]=i}}return r}function QC(){return zae||(zae=new eAr),zae}function Qat(e){let t=[];for(let r in e)t.push({id:r,state:e[r]});return t}function rAr(e,t,r,i){let n=Uc([],e,t),a=1/n[3]/r*i;return Ott(n,n,[a,a,1/n[3],a])}function iAr(e,t,r,i){let n=i?4:0,a=i?0:4,o=0,s=[],l=[];for(let f=0;f<4;f++){let h=cg([],e[f+a],e[f+n]),p=cp(h);qs(h,h,1/p),s.push(p),l.push(h)}for(let f=0;f<4;f++){let h=Vtt(e[f+n],l[f],r);o=h!==null&&h>=0?Math.max(o,h):Math.max(o,s[f])}let u=nAr(e,t),c=aAr(r,u);if(c!==null){let f=c/uu(l[0],u);o=Math.min(o,f)}for(let f=0;f<4;f++){let h=Math.min(o,s[f]);e[f+a]=[e[f+n][0]+l[f][0]*h,e[f+n][1]+l[f][1]*h,e[f+n][2]+l[f][2]*h,1]}}function nAr(e,t){let r=cg([],e[t[0]],e[t[1]]),i=cg([],e[t[2]],e[t[1]]),n=[0,0,0,0];return Uf(n,gh([],r,i)),n[3]=-uu(n,e[t[0]]),n}function aAr(e,t){let r=hC(e),i=qtt([],e,1/r),n=cg([],t,qs([],i,uu(t,i))),a=hC(n);if(a>0){let o=Math.sqrt(1-i[3]*i[3]),s=qs([],i,-i[3]),l=j0([],s,qs([],n,o/a));return ZB(t,l)}return null}function oAr(e,t,r){let i=t.intersectsFrustum(e);if(!r||i===0)return i;let n=t.intersectsPlane(r);return n===0?0:i===2&&n===2?2:1}function eot(e,t,r){let i=0,n=(r-t)/10;for(let a=0;a<10;a++){let o=t+(a+.5)/10*(r-t);i+=n*Math.cos(o)**+e}return i}function aoe(e,t){return function(r,i,n,a,o){let s=2*((e-1)/Vc(Math.cos(Os(mx-o))/Math.cos(Os(mx)))-1),l=Math.acos(n/a),u=2*eot(s-1,0,Os(o/2)),c=Math.min(Os(mx),l+Os(o/2)),f=Math.min(c,l-Os(o/2)),h=eot(s-1,f,c),p=Math.atan(i/n),d=Math.hypot(i,n),v=r;return v+=Vc(a/d/Math.max(.5,Math.cos(Os(o/2)))),v+=s*Vc(Math.cos(p))/2,v-=Vc(Math.max(1,h/u/t))/2,v}}function Eoe(e,t){let r=(t.roundZoom?Math.round:Math.floor)(e.zoom+Vc(e.tileSize/t.tileSize));return Math.max(0,r)}function lAr(e,t){let r=mx-e.pitch-e.fov/2,i=ea((15-r)/15,0,1),n=Math.max(500,t!=null?t:0);return e.elevation+i*n}function uAr(e,t,r){let i=e.planes[1],n=e.points.map(l=>{let u=i[0]*l[0]+i[1]*l[1]+i[2]*l[2]+i[3];if(Math.abs(u)>1e-6)return l;let c=[l[0]-r[0],l[1]-r[1],l[2]-r[2]],f=i[0]*c[0]+i[1]*c[1]+i[2]*c[2];if(f>=-1e-9)return l;let h=t/-f;return[l[0]+c[0]*h,l[1]+c[1]*h,l[2]+c[2]*h,l[3]]}),a=e.planes.map((l,u)=>u===1?[l[0],l[1],l[2],l[3]+t]:l),o=[1/0,1/0,1/0],s=[-1/0,-1/0,-1/0];for(let l of n)for(let u=0;u<3;u++)o[u]=Math.min(o[u],l[u]),s[u]=Math.max(s[u],l[u]);return new Soe(n,a,new Moe(o,s))}function cAr(e,t,r,i){let n=Math.hypot(t[0],t[1],t[2]);if(n===0)return{frustum:e,plane:t};let a=1+i/Hf,o=ea(-t[3]/n,-1,1),s=Math.cos(Math.acos(o)+Math.acos(1/a));return{frustum:uAr(e,Math.sqrt(a*a-1),r),plane:[t[0],t[1],t[2],-s*n]}}function u6(e,t){let r=e.getCameraFrustum(),i=e.getClippingPlane();i&&t.maxContentElevation>0&&({frustum:r,plane:i}=cAr(r,i,e.cameraPosition,t.maxContentElevation));let n=Mnt(e),a=Mo.fromLngLat(e.center,e.elevation),o=lAr(e,t.maxContentElevation),s=e.getCoveringTilesDetailsProvider(),l=s.allowVariableZoom(e,t),u=Eoe(e,t),c=t.minzoom||0,f=t.maxzoom===void 0?e.maxZoom:t.maxzoom,h=Math.min(Math.max(0,u),f),p=2**h,d=[p*n.x,p*n.y,0],v=[p*a.x,p*a.y,0],m=Math.hypot(a.x-n.x,a.y-n.y),g=Math.abs(a.z-n.z),w=Math.hypot(m,g),_=x=>({zoom:0,x:0,y:0,wrap:x,fullyVisible:!1}),b=[],S=[];if(e.renderWorldCopies&&s.allowWorldCopies())for(let x=1;x<=3;x++)b.push(_(-x)),b.push(_(x));for(b.push(_(0));b.length>0;){let x=b.pop(),A=x.x,T=x.y,y=x.fullyVisible,E={x:A,y:T,z:x.zoom},M=s.getTileBoundingVolume(E,x.wrap,o,t);if(!y){let F=oAr(r,M,i);if(F===0)continue;y=F===2}let C=s.distanceToTile2d(n.x,n.y,E,M),k=u;l&&(k=(t.calculateTileZoom||sAr)(e.zoom+Vc(e.tileSize/t.tileSize),C,g,w,e.fov)),k=(t.roundZoom?Math.round:Math.floor)(k),k=Math.max(0,k);let D=Math.min(k,f);if(x.wrap=s.getWrap(a,E,x.wrap),x.zoom>=D){if(x.zoom>1),L=x.zoom+1;b.push({zoom:L,x:P,y:R,wrap:x.wrap,fullyVisible:y})}}return S.sort((x,A)=>x.distanceSq-A.distanceSq).map(x=>x.tileID)}function tot(e){return e==="raster"||e==="image"||e==="video"}function fAr(e,t,r,i,n,a,o){let s=zo(),l=Htt(t);for(let u of t){let c=e.getTileById(u.key);(c.fadingDirection===0||c.fadeOpacity===0)&&c.resetFadeLogic(),!hAr(e,c,r,s,i,n,o)&&(dAr(e,c,r,s,a,o)||pAr(c,l,s,o)||c.resetFadeLogic())}}function hAr(e,t,r,i,n,a,o){if(!t.hasData())return!1;let{tileID:s,fadingRole:l,fadingDirection:u,fadingParentID:c}=t;if(l===0&&u===1&&c)return r[c.key]=c,!0;let f=Math.max(s.overscaledZ-n,a);for(let h=s.overscaledZ-1;h>=f;h--){let p=s.scaledTo(h),d=e.getLoadedTile(p);if(d)return t.setCrossFadeLogic({fadingRole:0,fadingDirection:1,fadingParentID:d.tileID,fadeEndTime:i+o}),d.setCrossFadeLogic({fadingRole:1,fadingDirection:0,fadeEndTime:i+o}),r[p.key]=p,!0}return!1}function dAr(e,t,r,i,n,a){if(!t.hasData())return!1;let o=t.tileID.children(n),s=rot(e,t,o,r,i,n,a);if(s)return!0;for(let l of o)rot(e,t,l.children(n),r,i,n,a)&&(s=!0);return s}function rot(e,t,r,i,n,a,o){if(r[0].overscaledZ>=a)return!1;let s=!1;for(let l of r){let u=e.getLoadedTile(l);if(!u)continue;let{fadingRole:c,fadingDirection:f,fadingParentID:h}=u;(c!==0||f!==0||!h)&&(u.setCrossFadeLogic({fadingRole:0,fadingDirection:0,fadingParentID:t.tileID,fadeEndTime:n+o}),t.setCrossFadeLogic({fadingRole:1,fadingDirection:1,fadeEndTime:n+o})),i[l.key]=l,s=!0}return s}function pAr(e,t,r,i){let n=e.tileID;if(e.selfFading)return!0;if(e.hasData())return!1;if(t.has(n)){let a=r+i;return e.setSelfFadeLogic(a),!0}return!1}function vAr(e,t){if(t<=0)return!1;let r=zo();for(let i of e.getAllTiles())if(i.fadeEndTime>=r)return!0;return!1}function gAr(e,t){var i,n,a;let r=t.getRenderableIds();for(let o of r){if(!((i=e.neighboringTiles)!=null&&i[o]))continue;let s=t.getTileById(o);e.neighboringTiles[o].backfilled||iot(e,s),!((a=(n=s.neighboringTiles)==null?void 0:n[e.tileID.key])!=null&&a.backfilled)&&iot(s,e)}}function iot(e,t){var o;e.needsHillshadePrepare=!0,e.needsTerrainPrepare=!0,e.needsColorReliefPrepare=!0;let r=t.tileID.canonical.x-e.tileID.canonical.x,i=t.tileID.canonical.y-e.tileID.canonical.y,n=2**e.tileID.canonical.z,a=t.tileID.key;(r!==0||i!==0)&&(Math.abs(i)>1||(Math.abs(r)>1&&(Math.abs(r+n)===1?r+=n:Math.abs(r-n)===1&&(r-=n)),t.dem&&e.dem&&(e.dem.backfillBorder(t.dem,r,i),(o=e.neighboringTiles)!=null&&o[a]&&(e.neighboringTiles[a].backfilled=!0))))}function Qq(e,t,r,i,n){return n?e?e(t,r)+i:i===0?void 0:i:i}function Oq(e,t){let r=!0;return e==="always"||(e==="never"||t==="never")&&(r=!1),r}function yAr(e,t){let r=1/(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]),i=1/(t[8]*t[8]+t[9]*t[9]+t[10]*t[10]),n=t[0]*r,a=t[4]*r,o=t[8]*i,s=t[1]*r,l=t[5]*r,u=t[9]*i,c=t[2]*r,f=t[6]*r,h=t[10]*i;e[0]=n,e[1]=a,e[2]=o,e[4]=s,e[5]=l,e[6]=u,e[8]=c,e[9]=f,e[10]=h;let p=t[12],d=t[13],v=t[14];return e[12]=-n*p-s*d-c*v,e[13]=-a*p-l*d-f*v,e[14]=-o*p-u*d-h*v,e[3]=0,e[7]=0,e[11]=0,e[15]=1,e}function xAr(e,t){return e[0]=1/t[0],e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1/t[5],e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=0,e[11]=1/t[14],e[12]=0,e[13]=0,e[14]=-1,e[15]=t[10]/t[14],e}function bAr(e,t){let r=1/(t[0]*t[5]-t[1]*t[4]);return e[0]=t[5]*r,e[1]=-t[1]*r,e[2]=0,e[3]=0,e[4]=-t[4]*r,e[5]=t[0]*r,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1/t[10],e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1/t[15],e}function koe(e,t,r){let i=Om();if(!e){let{vecSouth:n,vecEast:a}=Coe(t),o=Jot();o[0]=a[0],o[1]=a[1],o[2]=n[0],o[3]=n[1],zTr(o,o),i[0]=o[0],i[1]=o[1],i[4]=o[2],i[5]=o[3]}return Nc(i,i,[1/r,1/r,1]),i}function wAr(e,t,r,i){if(e){let n=Om();if(!t){let{vecSouth:a,vecEast:o}=Coe(r);n[0]=o[0],n[1]=o[1],n[4]=a[0],n[5]=a[1]}return Nc(n,n,[i,i,1]),n}return r.pixelsToClipSpaceMatrix}function Coe(e){let t=Math.cos(e.rollInRadians),r=Math.sin(e.rollInRadians),i=Math.cos(e.pitchInRadians),n=Math.cos(e.bearingInRadians),a=Math.sin(e.bearingInRadians),o=XB();o[0]=-n*i*r-a*t,o[1]=-a*i*r+n*t;let s=vne(o);s<1e-9?gne(o):pne(o,o,1/s);let l=XB();l[0]=n*i*t-a*r,l[1]=a*i*t+n*r;let u=vne(l);return u<1e-9?gne(l):pne(l,l,1/u),{vecEast:l,vecSouth:o}}function M3(e,t,r){var i,n;return Qq(e.getElevation,t,r,(i=e.heightOffset)!=null?i:0,(n=e.heightAnchorGround)!=null?n:!0)}function Doe(e,t,r,i){let n;i==null?(n=[e,t,0,1],Foe(n,n,r)):(n=[e,t,i,1],Uc(n,n,r));let a=n[3];return{point:new rr(n[0]/a,n[1]/a),signedDistanceFromCamera:a,isOccluded:!1}}function Mst(e,t){return .5+e/t*.5}function TAr(e,t){return e.x>=-t[0]&&e.x<=t[0]&&e.y>=-t[1]&&e.y<=t[1]}function AAr(e,t,r,i,n,a,o,s,l,u,c,f,h){let p=r?e.textSizeData:e.iconSizeData,d=LC(p,t.transform.zoom),v=[256/t.width*2+1,256/t.height*2+1],m=r?e.text.dynamicLayoutVertexArray:e.icon.dynamicLayoutVertexArray;m.clear();let g=e.lineVertexArray,w=r?e.text.placedSymbolArray:e.icon.placedSymbolArray,_=t.transform.width/t.transform.height,b=!1;for(let S=0;SMath.abs(r.x-t.x)*i?{useVertical:!0}:(e===2?t.yr.x)?{needsFlipping:!0}:null}function sot(e){let{projectionContext:t,pitchedLabelPlaneMatrixInverse:r,symbol:i,fontSize:n,flip:a,keepUpright:o,glyphOffsetArray:s,dynamicLayoutVertexArray:l,aspectRatio:u,rotateToLine:c}=e,f=n/24,h=i.lineOffsetX*f,p=i.lineOffsetY*f,d;if(i.numGlyphs>1){let v=i.glyphStartIndex+i.numGlyphs,m=i.lineStartIndex,g=i.lineStartIndex+i.lineLength,w=Sst(f,s,h,p,a,i,c,t);if(!w)return{notEnoughRoom:!0};let _=Nq(w.first.point.x,w.first.point.y,t,r),b=Nq(w.last.point.x,w.last.point.y,t,r);if(o&&!a){let S=oot(i.writingMode,_,b,u);if(S)return S}d=[w.first];for(let S=i.glyphStartIndex+1;S0?_.point:Est(t.tileAnchorPoint,w,m,1,t),S=Nq(m.x,m.y,t,r),x=Nq(b.x,b.y,t,r),A=oot(i.writingMode,S,x,u);if(A)return A}let v=iO(f*s.getoffsetX(i.glyphStartIndex),h,p,a,i.segment,i.lineStartIndex,i.lineStartIndex+i.lineLength,t,c);if(!v||t.projectionCache.anyProjectionOccluded)return{notEnoughRoom:!0};d=[v]}for(let v of d)PC(l,v.point,v.angle);return{}}function Est(e,t,r,i,n){let a=e.add(e.sub(t)._unit()),o=S3(a.x,a.y,n).point,s=r.sub(o);return r.add(s._mult(i/s.mag()))}function soe(e,t,r){let i=t.projectionCache;if(i.projections[e])return i.projections[e];let n=new rr(t.lineVertexArray.getx(e),t.lineVertexArray.gety(e)),a=S3(n.x,n.y,t);if(a.signedDistanceFromCamera>0)return i.projections[e]=a.point,i.anyProjectionOccluded||(i.anyProjectionOccluded=a.isOccluded),a.point;let o=e-r.direction,s=r.distanceFromAnchor===0?t.tileAnchorPoint:new rr(t.lineVertexArray.getx(o),t.lineVertexArray.gety(o)),l=r.absOffsetX-r.distanceFromAnchor+1;return Est(s,n,r.previousVertex,l,t)}function S3(e,t,r){let i=e+r.translation[0],n=t+r.translation[1],a;return r.pitchWithMap?(a=Doe(i,n,r.pitchedLabelPlaneMatrix,M3(r,i,n)),a.isOccluded=!1):(a=r.transform.projectTileCoordinates(i,n,r.unwrappedTileID,M3(r,i,n)),a.point.x=(a.point.x*.5+.5)*r.width,a.point.y=(-a.point.y*.5+.5)*r.height),a}function Nq(e,t,r,i){if(r.pitchWithMap){let n=[e,t,0,1];Uc(n,n,i);let a=n[0]/n[3],o=n[1]/n[3];return r.transform.projectTileCoordinates(a,o,r.unwrappedTileID,M3(r,a,o)).point}return{x:e/r.width*2-1,y:1-t/r.height*2}}function kst(e,t,r){return r.transform.projectTileCoordinates(e,t,r.unwrappedTileID,M3(r,e,t))}function loe(e,t,r){return e._unit()._perp()._mult(t*r)}function MAr(e,t,r,i,n,a,o,s,l){if(s.projectionCache.offsets[e])return s.projectionCache.offsets[e];let u=r.add(t);if(e+l.direction=n)return s.projectionCache.offsets[e]=u,u;let c=soe(e+l.direction,s,l),f=loe(c.sub(r),o,l.direction),h=r.add(f),p=c.add(f);return s.projectionCache.offsets[e]=$tt(a,u,h,p)||u,s.projectionCache.offsets[e]}function iO(e,t,r,i,n,a,o,s,l){let u=i?e-t:e+t,c=u>0?1:-1,f=0;i&&(c*=-1,f=Math.PI),c<0&&(f+=Math.PI);let h=c>0?a+n:a+n+1,p;s.projectionCache.cachedAnchorPoint?p=s.projectionCache.cachedAnchorPoint:(p=S3(s.tileAnchorPoint.x,s.tileAnchorPoint.y,s).point,s.projectionCache.cachedAnchorPoint=p);let d=p,v=p,m,g,w=0,_=0,b=Math.abs(u),S=[],x;for(;w+_<=b;){if(h+=c,h=o)return null;w+=_,v=d,g=m;let E={absOffsetX:b,direction:c,distanceFromAnchor:w,previousVertex:v};if(d=soe(h,s,E),r===0)S.push(v),x=d.sub(v);else{let M,C=d.sub(v);M=C.mag()===0?loe(soe(h+c,s,E).sub(d),r,c):loe(C,r,c),g||(g=v.add(M)),m=MAr(h,M,d,a,o,g,r,s,E),S.push(g),x=m.sub(g)}_=x.mag()}let A=(b-w)/_,T=x._mult(A)._add(g||v),y=f+Math.atan2(d.y-v.y,d.x-v.x);return S.push(T),{point:T,angle:l?y:0,path:S}}function o6(e,t){for(let r=0;r{let n=Doe(i.x,i.y,r,M3(t,i.x,i.y)),a=t.transform.projectTileCoordinates(n.point.x,n.point.y,t.unwrappedTileID,M3(t,n.point.x,n.point.y));return a.point.x=(a.point.x*.5+.5)*t.width,a.point.y=(-a.point.y*.5+.5)*t.height,a})}function kAr(e){let t=0,r=0,i=0,n=0;for(let a=0;ar&&(r=n,t=i));return e.slice(t,t+r)}function cot(e,t,r,i,n){let{horizontalAlign:a,verticalAlign:o}=FC(e),s=-(a-.5)*t,l=-(o-.5)*r;return new rr(s+i[0]*n,l+i[1]*n)}function fot(e,t,r,i,n,a){(!i||i.length===0)&&(i=[0,0,0,0]);let o=i[0]-100,s=i[1]-100,l=i[2]-100,u=i[3]-100;e.emplaceBack(+!!t,+!!r,n||0,a||0,o,s),e.emplaceBack(+!!t,+!!r,n||0,a||0,l,s),e.emplaceBack(+!!t,+!!r,n||0,a||0,l,u),e.emplaceBack(+!!t,+!!r,n||0,a||0,o,u)}function hot(e){if(e.opacity===0&&!e.placed)return 0;if(e.opacity===1&&e.placed)return 4294967295;let t=+!!e.placed,r=Math.floor(e.opacity*127);return r*PAr+t*IAr+r*RAr+t*zAr+r*512+t*256+r*2+t}function uoe(e,t,r,i,n,a){if(n-i<=r)return;let o=i+n>>1;Dst(e,t,o,i,n,a),uoe(e,t,r,i,o-1,1-a),uoe(e,t,r,o+1,n,1-a)}function Dst(e,t,r,i,n,a){for(;n>i;){if(n-i>600){let u=n-i+1,c=r-i+1,f=Math.log(u),h=.5*Math.exp(2*f/3),p=.5*Math.sqrt(f*h*(u-h)/u)*(c-u/2<0?-1:1);Dst(e,t,r,Math.max(i,Math.floor(r-c*h/u+p)),Math.min(n,Math.floor(r+(u-c)*h/u+p)),a)}let o=t[2*r+a],s=i,l=n;for(HC(e,t,i,r),t[2*n+a]>o&&HC(e,t,i,n);so;)l--}t[2*i+a]===o?HC(e,t,i,l):(l++,HC(e,t,l,n)),l<=r&&(i=l+1),r<=l&&(n=l-1)}}function HC(e,t,r,i){Bae(e,r,i),Bae(t,2*r,2*i),Bae(t,2*r+1,2*i+1)}function Bae(e,t,r){let i=e[t];e[t]=e[r],e[r]=i}function pot(e,t,r,i){let n=e-r,a=t-i;return n*n+a*a}function go(e,t){let r=/#pragma maplibre: ([\w]+) ([\w]+) ([\w]+) ([\w]+)/g,i=t.match(/in ([\w]+) ([\w]+)/g),n=e.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),a=t.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),o=a?a.concat(n):n,s=i?i.length:0,l={};return e=e.replace(r,(u,c,f,h,p)=>(l[p]=!0,c==="define"?` #ifndef HAS_UNIFORM_u_${p} in ${f} ${h} ${p}; #else @@ -2771,9 +2771,9 @@ uniform ${f} ${h} u_${p}; #else ${f} ${h} ${p} = u_${p}; #endif -`}),{fragmentSource:e,vertexSource:t,staticAttributes:i,staticUniforms:o}}function Jq(e,t){if(!e.renderWorldCopies||e.lngRange)return;let r=t.lng-e.center.lng;t.lng+=r>180?-360:r<-180?360:0}function lot(e){return Math.max(0,Math.floor(e))}function Moe(e,t,r,i){if(i<0||i>=1)return fot;let n=Math.floor(r),a=r-n;for(let o of e.zooms){let s=1<n;a++){let o=(r+i)/2;t(e,o)?i=o:r=o}return{lo:r,hi:i}}function Yq(e,t){return Moe(e.index,e.exaggeration,(e.near[0]+t*e.dx)/e.worldSize,(e.near[1]+t*e.dy)/e.worldSize)}function Rq(e,t){return Est(Yq(e,t),e.near[2]+t*e.dz)}function hot({near:e,far:t},r,i,n){let a=t[0]-e[0],o=t[1]-e[1],s=t[2]-e[2];return((r-e[0])*a+(i-e[1])*o+(n-e[2])*s)/(a*a+o*o+s*s)}function Dst(){Fa("Map cannot fit within canvas with the given bounds, padding, and/or offset.")}function Fst(e){if(e.useSlerp)if(e.k<1){let t=pne(e.startEulerAngles.roll,e.startEulerAngles.pitch,e.startEulerAngles.bearing),r=pne(e.endEulerAngles.roll,e.endEulerAngles.pitch,e.endEulerAngles.bearing),i=new Float64Array(4);qk(i,t,r,e.k);let n=jtt(i);e.tr.setRoll(n.roll),e.tr.setPitch(n.pitch),e.tr.setBearing(n.bearing)}else e.tr.setRoll(e.endEulerAngles.roll),e.tr.setPitch(e.endEulerAngles.pitch),e.tr.setBearing(e.endEulerAngles.bearing);else e.tr.setRoll(Ys.number(e.startEulerAngles.roll,e.endEulerAngles.roll,e.k)),e.tr.setPitch(Ys.number(e.startEulerAngles.pitch,e.endEulerAngles.pitch,e.k)),e.tr.setBearing(Ys.number(e.startEulerAngles.bearing,e.endEulerAngles.bearing,e.k))}function Lst(e,t,r,i,n){let a=n.padding,o=Lv(n.worldSize,r.getNorthWest()),s=Lv(n.worldSize,r.getNorthEast()),l=Lv(n.worldSize,r.getSouthEast()),u=Lv(n.worldSize,r.getSouthWest()),c=Bs(-i),f=o.rotate(c),h=s.rotate(c),p=l.rotate(c),d=u.rotate(c),v=new tr(Math.max(f.x,h.x,d.x,p.x),Math.max(f.y,h.y,d.y,p.y)),m=new tr(Math.min(f.x,h.x,d.x,p.x),Math.min(f.y,h.y,d.y,p.y)),g=v.sub(m),w=n.width-(a.left+a.right+t.left+t.right),_=n.height-(a.top+a.bottom+t.top+t.bottom),b=w/g.x,S=_/g.y;if(S<0||b<0){Dst();return}let x=Math.min(Uc(n.scale*Math.min(b,S)),e.maxZoom),T=tr.convert(e.offset),A=(t.left-t.right)/2,y=(t.top-t.bottom)/2,E=new tr(A,y).rotate(Bs(i)),M=T.add(E).mult(n.scale/Of(x));return{center:J6(n.worldSize,o.add(l).div(2).sub(M)),zoom:x,bearing:i}}function Ist(e){let t=oT(e.worldSize,e.center.lat);return 2*Math.PI*t}function HAr(e,t,r){let i=dc(t),n=dc(r),a=su(i,n),o=Math.acos(a),s=Ist(e);return o/(2*Math.PI)*s}function jAr(e,t){return[lx(e*Math.PI*2+Math.PI,Math.PI*2),2*Math.atan(Math.exp(Math.PI-t*Math.PI*2))-Math.PI*.5]}function $Ar(e,t){let r=Math.cos(t),i=new Float64Array(3);return i[0]=Math.sin(e)*r,i[1]=Math.sin(t),i[2]=Math.cos(e)*r,i}function mx(e,t,r,i,n){let a=1/(1<1e-6){let i=e[0]/r,n=e[2]/r,a=Math.acos(n),o=(i>0?a:-a)/Math.PI*180;return new pn(j0(o,-180,180),t)}return new pn(0,t)}function WAr(e,t){return VB(fx(),-e.lng,-e.lat,t)}function YAr(e){let t=e[0],r=e[1],i=e[2],n=e[3];return{lng:-Math.atan2(2*(n*t+r*i),1-2*(t*t+r*r))*180/Math.PI,lat:-Math.asin(Qn(2*(n*r-i*t),-1,1))*180/Math.PI,bearing:Math.atan2(2*(n*i+t*r),1-2*(r*r+i*i))*180/Math.PI}}function vot(e,t){let r=e.cameraPosition,i=sp(r);if(i<=1)return e.screenPointToLocation(t);let n=So();qf(n,r);let a=e.getRayDirectionFromPixel(t),o=-su(a,n),s=So();uC(s,a,n,o);let l=sp(s);if(l<1e-9)return e.screenPointToLocation(t);let u=Math.atan2(l,o),c=Math.asin(1/i)*.9;if(u=0?90:-90,s=e.locationToScreenPoint(new pn(0,o)),l=t.x-s.x,u=t.y-s.y,c=l*l+u*u,f=Qn(1-(Cv-Math.abs(a))/12,0,1),h=f*f*(3-2*f),p=lx(i-n+180,360)-180,d=0;if(h>0&&r){let v=(l*r.y-u*r.x)/Math.max(c,400);d=(o>0?1:-1)*v*180/Math.PI}return n+(1-h)*p+h*d}function KAr(e){let t=So();return t[0]=e[0]*-e[3],t[1]=e[1]*-e[3],t[2]=e[2]*-e[3],{center:t,radius:Math.sqrt(1-e[3]*e[3])}}function JAr(e,t,r){let i=So();lg(i,r,e);let n=So();return uC(n,e,i,t/cC(i)),n}function tO(e){return Math.cos(e*Math.PI/180)}function Gc(e,t){let r=tO(e),i=tO(t);return Uc(i/r)}function QAr(e,t){return 360/Ist({worldSize:e,center:{lat:t}})}function eMr(e,t){let r=e.rotate(t.bearingInRadians),i=t.zoom+Gc(t.center.lat,0),n=c3(1/tO(t.center.lat),1/tO(Math.min(Math.abs(t.center.lat),60)),pC(i,7,3,0,1)),a=QAr(t.worldSize,t.center.lat);return new pn(t.center.lng-r.x*a*n,Qn(t.center.lat+r.y*a,-Cv,Cv))}function Lae(e){let t=.5*e,r=Math.sin(t),i=Math.cos(t);return Math.log(r+i)-Math.log(i-r)}function got(e,t,r,i){let n=e.lat+r*i;if(Math.abs(r)>1){let a=e.lat+r,o=(Math.sign(a)===Math.sign(e.lat)?Math.abs(e.lat):-Math.abs(e.lat))*Math.PI/180,s=Math.abs(e.lat+r)*Math.PI/180,l=Lae(o+i*(s-o)),u=Lae(o),c=Lae(s),f=(l-u)/(c-u),h=e.lng+t*f;return new pn(h,n)}{let a=e.lng+t*i;return new pn(a,n)}}function zq(e,t,r=1){let i=su(e,t),n=r*r,a=So(),o=So();zs(o,t,i),lg(a,e,o);let s=n-su(a,a);if(s<0)return null;let l=su(e,e)-n,u=-i+(i<0?1:-1)*Math.sqrt(s),c=l/u,f=u,h=Math.max(c,f);return h<0?null:{tMin:Math.min(c,f),tMax:h}}function zst(e,t){let r=t*.01569612305760477,i=Qn((e-r)/(9*r),0,1);return i*i*(3-2*i)}function Xq(e,t,r){let i=e-t;return i<0?-i:Math.max(0,i-r)}function Iae(e,t,r,i,n){let a=e-r,o;return o=a<0?Math.min(-a,1+a-n):a>n?Math.min(Math.max(a-n,0),1-a):0,Math.max(o,Xq(t,i,n))}function mot(e,t){let r=1/0,i=-1/0;for(let n of t){let a=su(e,n);r=Math.min(r,a),i=Math.max(i,a)}return{min:r,max:i}}function Ost(e,t){let r=So();uC(r,e.origin,e.direction,t);let i=sp(r),n=So();zs(n,r,1/i);let a=ZC(n),o=Mo.fromLngLat(a),s=new Mo(o.x,Qn(o.y,0,.999999999)),l=Moe(e.index,e.exaggeration,s.x,s.y),u=Math.abs(a.lat)>85.051129?0:l.elevation;return{sample:_a(dn({},l),{elevation:u}),radius:i,mercator:s}}function xot(e,t){let{sample:r,radius:i}=Ost(e,t);return Est(r,(i-1)*Uf)}function bot(e,t){let r=dc(e);return zs(r,r,1+t/Uf)}function _ot(e,t,r){let i=OB(So(),r,e);return su(i,t)}function iMr(e,t,r){let i={constrainOverride:t};if(Array.isArray(e)){let n=new pot({type:e},r);return{projection:n,transform:new wot(i),cameraHelper:new Tot(n)}}switch(e){case"mercator":return{projection:new roe,transform:new Qq(i),cameraHelper:new eO};case"globe":{let n=new pot({type:["interpolate",["linear"],["zoom"],11,"vertical-perspective",12,"mercator"]},{});return{projection:n,transform:new wot(i),cameraHelper:new Tot(n)}}case"vertical-perspective":return{projection:new Pst,transform:new Bst(i),cameraHelper:new Ust};default:return Fa(`Unknown projection name: ${e}. Falling back to mercator projection.`),{projection:new roe,transform:new Qq(i),cameraHelper:new eO}}}function hMr(e,t){for(let[r,i]of Object.entries(aO)){let n=e.getUniformBlockIndex(t,r);n!==e.INVALID_INDEX&&e.uniformBlockBinding(t,n,i)}}function Soe(e){let t={},r=0;for(let{name:i,type:n}of e){let[a,o]=dMr[n];r=Math.ceil(r/o)*o,t[i]=r,r+=a}return{offsets:t,contentWords:r,sizeWords:Math.ceil(r/4)*4}}function Gst(e){return new Eoe(e,aO.ProjectionUBO,Vst)}function Aot(e,t){let r=e.pending;r.set(t.mainMatrix,rT.u_projection_matrix),r.set(t.fallbackMatrix,rT.u_projection_fallback_matrix),r.set(t.tileMercatorCoords,rT.u_projection_tile_mercator_coords),r.set(t.clippingPlane,rT.u_projection_clipping_plane),r[rT.u_projection_transition]=t.projectionTransition,e.pendingWords[rT.u_projection_clip_antimeridian]=+!!t.clipAntimeridian,e.upload()}function pMr(e,t){var a;if(!t){e.projectionUniformBuffer.bind();return}let r=t.uniformBufferKey;if(r===void 0){Aot(e.projectionUniformBuffer,t);return}let i=e.keyedProjectionUniformBuffers.get(r);if(i){i.bind();return}let n=(a=e.freeProjectionUniformBuffers.pop())!=null?a:Gst(e);e.keyedProjectionUniformBuffers.set(r,n),Aot(n,t)}function vMr(e){e.freeProjectionUniformBuffers.push(...e.keyedProjectionUniformBuffers.values()),e.keyedProjectionUniformBuffers.clear()}function gMr(e){e.projectionUniformBuffer.destroy();for(let t of e.keyedProjectionUniformBuffers.values())t.destroy();for(let t of e.freeProjectionUniformBuffers)t.destroy()}function mMr(e){return new Eoe(e,aO.TerrainUBO,Hst)}function yMr(e,t){let r=e.pending;r.set(t.u_terrain_matrix,Bq.u_terrain_matrix),r.set(t.u_terrain_unpack,Bq.u_terrain_unpack),r[Bq.u_terrain_dim]=t.u_terrain_dim,r[Bq.u_terrain_exaggeration]=t.u_terrain_exaggeration,e.upload()}function Rae(e){let t=[];for(let r of e){if(r===null)continue;let i=r.split(" ");t.push(i.pop())}return t}function xMr(e,t){let r=new Set([e.INT,e.INT_VEC2,e.INT_VEC3,e.INT_VEC4,e.UNSIGNED_INT,e.UNSIGNED_INT_VEC2,e.UNSIGNED_INT_VEC3,e.UNSIGNED_INT_VEC4]),i=new Set,n=e.getProgramParameter(t,e.ACTIVE_ATTRIBUTES);for(let a=0;a>16,s>>16],u_pixel_coord_lower:[o&65535,s&65535]}}function _Mr(e,t,r,i){let n=r.patternAtlas.getPattern(e.from.toString()),a=r.patternAtlas.getPattern(e.to.toString()),{width:o,height:s}=r.patternAtlas.getPixelSize(),l=2**i.tileID.overscaledZ,u=i.tileSize*2**r.transform.tileZoom/l,c=u*(i.tileID.canonical.x+i.tileID.wrap*l),f=u*i.tileID.canonical.y;return{u_image:0,u_pattern_tl_a:n.tl,u_pattern_br_a:n.br,u_pattern_tl_b:a.tl,u_pattern_br_b:a.br,u_texsize:[o,s],u_mix:t.t,u_pattern_size_a:n.displaySize,u_pattern_size_b:a.displaySize,u_scale_a:t.fromScale,u_scale_b:t.toScale,u_tile_units_to_pixels:1/Qh(i,1,r.transform.tileZoom),u_pixel_coord_upper:[c>>16,f>>16],u_pixel_coord_lower:[c&65535,f&65535]}}function UMr(e,t){let r=2**t.canonical.z,i=t.canonical.y;return[new Mo(0,i/r).toLngLat().lat,new Mo(0,(i+1)/r).toLngLat().lat]}function koe(e,t){return 1/Qh(e,1,t.tileZoom)}function Zst(e,t,r){return Bm(e.transform,t,r.paint.get("line-translate"),r.paint.get("line-translate-anchor"))}function KSr(e){return new Eoe(e,aO.FrameUBO,Qst)}function JSr(e,t){let r=e.pending,{transform:i}=t,n=t.context.gl;r[$0.u_units_to_pixels]=1/i.pixelsToGLUnits[0],r[$0.u_units_to_pixels+1]=1/i.pixelsToGLUnits[1],r[$0.u_world_size]=n.drawingBufferWidth,r[$0.u_world_size+1]=n.drawingBufferHeight,r[$0.u_camera_to_center_distance]=i.cameraToCenterDistance,r[$0.u_symbol_fade_change]=t.options.fadeDuration?t.symbolFadeChange:1,r[$0.u_aspect_ratio]=i.width/i.height,r[$0.u_device_pixel_ratio]=t.pixelRatio,r[$0.u_viewport_size]=i.width,r[$0.u_viewport_size+1]=i.height,r[$0.u_pixel_extrude_scale]=1/i.width,r[$0.u_pixel_extrude_scale+1]=1/i.height,r[$0.u_pitch]=i.pitch/360*2*Math.PI,e.upload()}function eEr(e,t,r){var n;let i=(n=t==null?void 0:t.transitionState)!=null?n:0;return{currentPass:"offscreen",currentLayer:0,opaquePassCutoff:1/0,depthRangeFor3D:[0,1],isRenderingToTexture:!1,transform:e,terrain:r,projectionTransition:i,isRenderingGlobe:i>0}}function pf(e,t,r={}){var n;let i=e.transform.getProjectionData({overscaledTileID:t,aligned:r.aligned,applyGlobeMatrix:!e.isRenderingToTexture,applyTerrainMatrix:(n=r.applyTerrainMatrix)!=null?n:!0});return e.isRenderingToTexture||(i.uniformBufferKey=r.aligned?`${t.key}/aligned`:t.key),i}function vh(e,t){var r,i;return e.isRenderingToTexture?null:(i=(r=e.terrain)==null?void 0:r.getTerrainData(t))!=null?i:null}function kot(e,t,r,i,n,a){let o=e.context,s=o.gl,l=e.useProgram("collisionBox"),u=[],c=0,f=0;for(let g of i){let w=t.getTile(g).getBucket(r);if(!w)continue;let _=n?w.textCollisionBox:w.iconCollisionBox,b=w.collisionCircleArray;b.length>0&&(u.push({circleArray:b,circleOffset:f,coord:g}),c+=b.length/4,f=c),_&&l.draw(o,s.LINES,Na.disabled,Ro.disabled,e.colorModeForRenderPass(),Eo.disabled,null,vh(a,g),pf(a,g),r.id,_.layoutVertexBuffer,_.indexBuffer,_.segments,null,e.transform.zoom,null,null,_.collisionVertexBuffer)}if(!n||!u.length)return;let h=e.useProgram("collisionCircle"),p=new Bit;p.resize(c*4),p._trim();let d=0;for(let g of u)for(let w=0;wc.getElevation(d,A,y):void 0;sEr(m,f,h,l,u,b,x,w,S,Bm(u,v,o,s),d.toUnwrapped(),T,r.layout.get("symbol-height-anchor")==="ground")}}}function oEr(e,t,r,i,n,a){let o=t.tileAnchorPoint.add(new tr(t.translation[0],t.translation[1]));if(t.pitchWithMap){let s=i.mult(a);r||(s=s.rotate(-n));let l=o.add(s);return woe(l.x,l.y,t.pitchedLabelPlaneMatrix,w3(t,l.x,l.y)).point}if(r){let s=T3(t.tileAnchorPoint.x+1,t.tileAnchorPoint.y,t).point.sub(e),l=Math.atan(s.y/s.x)+(s.x<0?Math.PI:0);return e.add(i.rotate(l))}return e.add(i)}function sEr(e,t,r,i,n,a,o,s,l,u,c,f,h){let p=e.text.placedSymbolArray,d=e.text.dynamicLayoutVertexArray,v=e.icon.dynamicLayoutVertexArray,m={};d.clear();for(let g=0;g=0&&(m[w.associatedIconIndex]={shiftedAnchor:R,angle:F})}}if(l){v.clear();let g=e.icon.placedSymbolArray;for(let w=0;we.style.map.terrain.getElevation(k,re,pe):void 0;hAr(L,e,n,G,ae,g,u,r.layout.get("text-rotation-alignment")==="map",k.toUnwrapped(),v.width,v.height,J,xe)}let he=n&&T||ge,oe=g?G:e.transform.clipSpaceToPixelsMatrix,Me=w||he?rEr:oe,ye=F&&r.paint.get(n?"text-halo-width":"icon-halo-width").constantOr(1)!==0,ce;ce=F?L.iconsInText?nSr(I.kind,$,_,g,w,he,e,Me,H,J,K,j,y,ke,_e):Jst(I.kind,$,_,g,w,he,e,Me,H,J,n,K,ye,y,ke,_e):Kst(I.kind,$,_,g,w,he,e,Me,H,J,n,K,y,ke,_e);let ee={program:O,buffers:P,uniformValues:ce,projectionData:te,atlasTexture:q,atlasTextureIcon:U,atlasInterpolation:Q,atlasInterpolationIcon:V,isSDF:F,hasHalo:ye};if(b&&L.canOverlap){S=!0;let ae=P.segments.get();for(let xe of ae)A.push({segments:new Xs([xe]),sortKey:xe.sortKey,state:ee,terrainData:Y})}else A.push({segments:P.segments,sortKey:0,state:ee,terrainData:Y})}S&&A.sort((k,D)=>k.sortKey-D.sortKey);let E=(C=r.paint.get(n?"text-halo-width":"icon-halo-width").constantOr(null))!=null?C:1/0,M=r.layout.get("text-letter-spacing").constantOr(0)*24<0||E>1;for(let k of A){let D=k.state;p.activeTexture.set(d.TEXTURE0),D.atlasTexture.bind(D.atlasInterpolation,d.CLAMP_TO_EDGE),D.atlasTextureIcon&&(p.activeTexture.set(d.TEXTURE1),D.atlasTextureIcon&&D.atlasTextureIcon.bind(D.atlasInterpolationIcon,d.CLAMP_TO_EDGE));let L=D.isSDF&&D.hasHalo;if(L){let P=D.uniformValues;P.u_is_halo=1,M&&(P.u_is_plain=0,Dot(D.buffers,k.segments,r,e,D.program,x,c,f,P,D.projectionData,k.terrainData),P.u_is_halo=0,P.u_is_plain=1)}Dot(D.buffers,k.segments,r,e,D.program,x,c,f,D.uniformValues,D.projectionData,k.terrainData),L&&!M&&(D.uniformValues.u_is_halo=0)}}function Dot(e,t,r,i,n,a,o,s,l,u,c){let f=i.context,h=f.gl;n.draw(f,h.TRIANGLES,a,o,s,Eo.backCCW,l,c,u,r.id,e.layoutVertexBuffer,e.indexBuffer,t,r.paint,i.transform.zoom,e.programConfigurations.get(r.id),e.dynamicLayoutVertexBuffer,e.opacityVertexBuffer)}function uEr(e,t,r,i,n){if(n.currentPass!=="translucent")return;let a=r.paint.get("circle-opacity"),o=r.paint.get("circle-stroke-width"),s=r.paint.get("circle-stroke-opacity"),l=!r.layout.get("circle-sort-key").isConstant();if(a.constantOr(1)===0&&(o.constantOr(1)===0||s.constantOr(1)===0))return;let u=e.context,c=u.gl,f=e.transform,h=e.getDepthModeForSublayer(0,Na.ReadOnly),p=Ro.disabled,d=e.colorModeForRenderPass(),v=[],m=f.getCircleRadiusCorrection();for(let g of i){let w=t.getTile(g),_=w.getBucket(r);if(!_)continue;let b=r.paint.get("circle-translate"),S=r.paint.get("circle-translate-anchor"),x=Bm(f,w,b,S),T=_.programConfigurations.get(r.id),A=e.useProgram("circle",T),y=_.layoutVertexBuffer,E=_.indexBuffer,M=vh(n,g),C={programConfiguration:T,program:A,layoutVertexBuffer:y,indexBuffer:E,uniformValues:PMr(e,w,r,x,m),terrainData:M,projectionData:pf(n,g)};if(l){let k=_.segments.get();for(let D of k)v.push({segments:new Xs([D]),sortKey:D.sortKey,state:C})}else v.push({segments:_.segments,sortKey:0,state:C})}l&&v.sort((g,w)=>g.sortKey-w.sortKey);for(let g of v){let{programConfiguration:w,program:_,layoutVertexBuffer:b,indexBuffer:S,uniformValues:x,terrainData:T,projectionData:A}=g.state,y=g.segments;_.draw(u,c.TRIANGLES,h,p,d,Eo.backCCW,x,T,A,r.id,b,S,y,r.paint,e.transform.zoom,w)}}function cEr(e,t,r,i,n){if(r.paint.get("heatmap-opacity")===0)return;let a=e.context;if(e.style.map.terrain){for(let o of i){let s=t.getTile(o);t.hasRenderableParent(o)||(n.currentPass==="offscreen"?dEr(e,s,r,o,n):n.currentPass==="translucent"&&pEr(e,r,o,n))}a.viewport.set([0,0,e.width,e.height])}else n.currentPass==="offscreen"?fEr(e,t,r,i,n):n.currentPass==="translucent"&&hEr(e,r)}function fEr(e,t,r,i,n){let a=e.context,o=a.gl,s=e.transform,l=Ro.disabled,u=new Ul([o.ONE,o.ONE],na.transparent,[!0,!0,!0,!0]);vEr(a,e,r),a.clear({color:na.transparent});for(let c of i){if(t.hasRenderableParent(c))continue;let f=t.getTile(c),h=f.getBucket(r);if(!h)continue;let p=h.programConfigurations.get(r.id),d=e.useProgram("heatmap",p),v=pf(n,c,{applyTerrainMatrix:!1}),m=s.getCircleRadiusCorrection();d.draw(a,o.TRIANGLES,Na.disabled,l,u,Eo.backCCW,Yst(f,s.zoom,r.paint.get("heatmap-intensity"),m),null,v,r.id,h.layoutVertexBuffer,h.indexBuffer,h.segments,r.paint,s.zoom,p)}a.viewport.set([0,0,e.width,e.height])}function hEr(e,t){let r=e.context,i=r.gl;r.setColorMode(e.colorModeForRenderPass());let n=t.heatmapFbos.get(MC);n&&(r.activeTexture.set(i.TEXTURE0),i.bindTexture(i.TEXTURE_2D,n.colorAttachment.get()),r.activeTexture.set(i.TEXTURE1),tlt(r,t).bind(i.LINEAR,i.CLAMP_TO_EDGE),e.useProgram("heatmapTexture").draw(r,i.TRIANGLES,Na.disabled,Ro.disabled,e.colorModeForRenderPass(),Eo.disabled,Xst(e,t,0,1),null,null,t.id,e.viewportBuffer,e.quadTriangleIndexBuffer,e.viewportSegments,t.paint,e.transform.zoom))}function dEr(e,t,r,i,n){let a=e.context,o=a.gl,s=Ro.disabled,l=new Ul([o.ONE,o.ONE],na.transparent,[!0,!0,!0,!0]),u=t.getBucket(r);if(!u)return;let c=i.key,f=r.heatmapFbos.get(c);f||(f=elt(a,t.tileSize,t.tileSize),r.heatmapFbos.set(c,f)),a.bindFramebuffer.set(f.framebuffer),a.viewport.set([0,0,t.tileSize,t.tileSize]),a.clear({color:na.transparent});let h=u.programConfigurations.get(r.id),p=e.useProgram("heatmap",h,!n.isRenderingGlobe),d=pf(n,t.tileID),v=vh(n,i);p.draw(a,o.TRIANGLES,Na.disabled,s,l,Eo.disabled,Yst(t,e.transform.zoom,r.paint.get("heatmap-intensity"),1),v,d,r.id,u.layoutVertexBuffer,u.indexBuffer,u.segments,r.paint,e.transform.zoom,h)}function pEr(e,t,r,i){let n=e.context,a=n.gl,o=e.transform;n.setColorMode(e.colorModeForRenderPass());let s=tlt(n,t),l=r.key,u=t.heatmapFbos.get(l);if(!u)return;n.activeTexture.set(a.TEXTURE0),a.bindTexture(a.TEXTURE_2D,u.colorAttachment.get()),n.activeTexture.set(a.TEXTURE1),s.bind(a.LINEAR,a.CLAMP_TO_EDGE);let c=pf(i,r,{applyTerrainMatrix:i.isRenderingGlobe});e.useProgram("heatmapTexture").draw(n,a.TRIANGLES,Na.disabled,Ro.disabled,e.colorModeForRenderPass(),Eo.disabled,Xst(e,t,0,1),null,c,t.id,e.rasterBoundsBuffer,e.quadTriangleIndexBuffer,e.rasterBoundsSegments,t.paint,o.zoom),u.destroy(),t.heatmapFbos.delete(l)}function vEr(e,t,r){let i=e.gl;e.activeTexture.set(i.TEXTURE1),e.viewport.set([0,0,t.width/4,t.height/4]);let n=r.heatmapFbos.get(MC);n?(i.bindTexture(i.TEXTURE_2D,n.colorAttachment.get()),e.bindFramebuffer.set(n.framebuffer)):(n=elt(e,t.width/4,t.height/4),r.heatmapFbos.set(MC,n))}function elt(e,t,r){let i=e.gl,n=i.createTexture();i.bindTexture(i.TEXTURE_2D,n),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_WRAP_S,i.CLAMP_TO_EDGE),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_WRAP_T,i.CLAMP_TO_EDGE),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_MIN_FILTER,i.LINEAR),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_MAG_FILTER,i.LINEAR),i.texStorage2D(i.TEXTURE_2D,1,i.RGBA16F,t,r);let a=e.createFramebuffer(t,r,!1,!1);return a.colorAttachment.set(n),a}function tlt(e,t){return t.colorRampTexture||(t.colorRampTexture=new wu(e,t.colorRamp,e.gl.RGBA)),t.colorRampTexture}function rlt(e,t,r){let i=e.context,n=i.bindFramebuffer.get(),a=i.viewport.get(),[,,o,s]=a;return gEr(e,o,s),i.viewport.set([0,0,o,s]),i.clear({color:na.transparent,depth:1,stencil:0}),e.currentStencilSource=void 0,e.renderTileClippingMasks(t,r),{compositeTarget:n,compositeViewport:a}}function gEr(e,t,r){let i=e.context.gl;if(!e.layerOpacityFbo){let a=e.context.createFramebuffer(t,r,!0,!0),o=i.createTexture();i.bindTexture(i.TEXTURE_2D,o),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_WRAP_S,i.CLAMP_TO_EDGE),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_WRAP_T,i.CLAMP_TO_EDGE),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_MIN_FILTER,i.LINEAR),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_MAG_FILTER,i.LINEAR),i.texImage2D(i.TEXTURE_2D,0,i.RGBA,t,r,0,i.RGBA,i.UNSIGNED_BYTE,null),a.colorAttachment.set(o),a.depthAttachment.set(e.context.createRenderbuffer(i.DEPTH_STENCIL,t,r)),e.layerOpacityFbo=a,e.context.bindFramebuffer.set(e.layerOpacityFbo.framebuffer);return}if(e.layerOpacityFbo.width===t&&e.layerOpacityFbo.height===r){e.context.bindFramebuffer.set(e.layerOpacityFbo.framebuffer);return}let n=e.layerOpacityFbo;i.bindTexture(i.TEXTURE_2D,n.colorAttachment.get()),i.texImage2D(i.TEXTURE_2D,0,i.RGBA,t,r,0,i.RGBA,i.UNSIGNED_BYTE,null),e.context.bindRenderbuffer.set(n.depthAttachment.get()),i.renderbufferStorage(i.RENDERBUFFER,i.DEPTH_STENCIL,t,r),e.context.bindRenderbuffer.set(null),n.width=t,n.height=r,e.context.bindFramebuffer.set(n.framebuffer)}function ilt(e,t,r,i){let n=e.context,a=n.gl;n.bindFramebuffer.set(r.compositeTarget),n.viewport.set(r.compositeViewport),n.activeTexture.set(a.TEXTURE0),a.bindTexture(a.TEXTURE_2D,e.layerOpacityFbo.colorAttachment.get()),e.useProgram("layerOpacity").draw(n,a.TRIANGLES,Na.disabled,Ro.disabled,e.colorModeForRenderPass(),Eo.disabled,eSr(t,0),null,null,i.id,e.viewportBuffer,e.quadTriangleIndexBuffer,e.viewportSegments,i.paint,e.transform.zoom),e.currentStencilSource=void 0}function nlt(e,t,r,i,n,a,o,s){let l=256;if(n.stepInterpolant){let u=t.getSource().maxzoom,c=o.canonical.z===u?Math.ceil(1<e.options.anisotropicFilterPitch&&d.texParameterf(d.TEXTURE_2D,p.extTextureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT,p.extTextureFilterAnisotropicMax);let D=vh(c,T),L=pf(c,T,{aligned:w}),P=DTr(C,M,k.fadeMix,r,s,l),R=f!=null?f:m.getMeshFromTileID(p,T.canonical,a,o,"raster"),F=n?n[T.overscaledZ]:Ro.disabled;v.draw(p,d.TRIANGLES,A,F,g,u?Eo.frontCCW:Eo.backCCW,P,D,L,r.id,R.vertexBuffer,R.indexBuffer,R.segments)}}function kEr(e,t,r,i){let n={parentTile:null,parentScaleBy:1,parentTopLeft:[0,0],fadeValues:{tileOpacity:1,parentTileOpacity:1,fadeMix:{opacity:1,mix:0}}};if(r===0||i)return n;if(e.fadingParentID){let a=t.getLoadedTile(e.fadingParentID);if(!a)return n;let o=2**(a.tileID.overscaledZ-e.tileID.overscaledZ);return{parentTile:a,parentScaleBy:o,parentTopLeft:[e.tileID.canonical.x*o%1,e.tileID.canonical.y*o%1],fadeValues:CEr(e,a,r)}}return e.selfFading?{parentTile:null,parentScaleBy:1,parentTopLeft:[0,0],fadeValues:DEr(e,r)}:n}function CEr(e,t,r){let i=zo(),n=(i-e.timeAdded)/r,a=(i-t.timeAdded)/r,o=e.fadingDirection===1,s=Qn(n,0,1),l=Qn(1-a,0,1),u=o?s:l;return{tileOpacity:u,parentTileOpacity:o?l:s,fadeMix:{opacity:1,mix:1-u}}}function DEr(e,t){let r=(zo()-e.timeAdded)/t,i=Qn(r,0,1);return{tileOpacity:i,fadeMix:{opacity:i,mix:0}}}function FEr(e,t,r,i,n){let a=r.paint.get("background-color"),o=r.paint.get("background-opacity");if(o===0)return;let s=e.context,l=s.gl,u=e.style.projection,c=e.transform,f=c.tileSize,h=r.paint.get("background-pattern");if(e.isPatternMissing(h))return;let p=!h&&a.a===1&&o===1&&e.opaquePassEnabledForLayer()?"opaque":"translucent";if(n.currentPass!==p)return;let d=Ro.disabled,v=e.getDepthModeForSublayer(0,p==="opaque"?Na.ReadWrite:Na.ReadOnly),m=e.colorModeForRenderPass(),g=e.useProgram(h?"backgroundPattern":"background"),w=i||lT(c,{tileSize:f,terrain:e.style.map.terrain});h&&(s.activeTexture.set(l.TEXTURE0),e.patternAtlas.bind(e.context));let _=r.getCrossfadeParameters();for(let b of w){let S=pf(n,b),x=h?lSr(o,e,h,{tileID:b,tileSize:f},_):sSr(o,a),T=vh(n,b),A=u.getMeshFromTileID(s,b.canonical,!1,!0,"raster");g.draw(s,l.TRIANGLES,v,d,m,Eo.backCCW,x,T,S,r.id,A.vertexBuffer,A.indexBuffer,A.segments)}}function BEr(e){let t=e.transform.padding;Pot(e,e.transform.height-(t.top||0),3,LEr),Pot(e,t.bottom||0,3,PEr),Iot(e,t.left||0,3,IEr),Iot(e,e.transform.width-(t.right||0),3,REr);let r=e.transform.centerPoint;qEr(e,r.x,e.transform.height-r.y,zEr)}function qEr(e,t,r,i){rO(e,t-1,r-10,2,20,i),rO(e,t-10,r-1,20,2,i)}function Pot(e,t,r,i){rO(e,0,t+r/2,e.transform.width,r,i)}function Iot(e,t,r,i){rO(e,t-r/2,0,r,e.transform.height,i)}function rO(e,t,r,i,n,a){let o=e.context,s=o.gl;s.enable(s.SCISSOR_TEST),s.scissor(t*e.pixelRatio,r*e.pixelRatio,i*e.pixelRatio,n*e.pixelRatio),o.clear({color:a}),s.disable(s.SCISSOR_TEST)}function OEr(e,t,r,i){for(let n of r)NEr(e,t,n,i)}function NEr(e,t,r,i){var w;let n=e.context,a=n.gl,o=e.useProgram("debug"),s=Na.disabled,l=Ro.disabled,u=e.colorModeForRenderPass(),c="$debug",f=vh(i,r);n.activeTexture.set(a.TEXTURE0);let h=((w=t.getTileByID(r.key).latestRawTileData)==null?void 0:w.byteLength)||0,p=Math.floor(h/1024),d=t.getTile(r).tileSize,v=512/Math.min(d,512)*(r.overscaledZ/e.transform.zoom)*.5,m=r.canonical.toString();r.overscaledZ!==r.canonical.z&&(m+=` => ${r.overscaledZ}`),UEr(e,`${m} ${p}kB`);let g=pf(i,r);o.draw(n,a.TRIANGLES,s,l,Ul.alphaBlended,Eo.disabled,Mot(na.transparent,v),null,g,c,e.debugBuffer,e.quadTriangleIndexBuffer,e.debugSegments),o.draw(n,a.LINE_STRIP,s,l,u,Eo.disabled,Mot(na.red),f,g,c,e.debugBuffer,e.tileBorderIndexBuffer,e.debugSegments)}function UEr(e,t){e.initDebugOverlayCanvas();let r=e.debugOverlayCanvas,i=e.context.gl,n=e.debugOverlayCanvas.getContext("2d");n.clearRect(0,0,r.width,r.height),n.shadowColor="white",n.shadowBlur=2,n.lineWidth=1.5,n.strokeStyle="white",n.textBaseline="top",n.font="bold 36px Open Sans, sans-serif",n.fillText(t,5,5),n.strokeText(t,5,5),e.debugOverlayTexture.update(r),e.debugOverlayTexture.bind(i.LINEAR,i.CLAMP_TO_EDGE)}function VEr(e,t){let r=null,i=Object.values(e._layers).flatMap(s=>s.source&&!s.isHidden(t)?[e.tileManagers[s.source]]:[]),n=i.filter(s=>s.getSource().type==="vector"),a=i.filter(s=>s.getSource().type!=="vector"),o=s=>{(!r||r.getSource().maxzoom180?-360:r<-180?360:0}function got(e){return Math.max(0,Math.floor(e))}function Poe(e,t,r,i){if(i<0||i>=1)return xot;let n=Math.floor(r),a=r-n;for(let o of e.zooms){let s=1<n;a++){let o=(r+i)/2;t(e,o)?i=o:r=o}return{lo:r,hi:i}}function eO(e,t){return Poe(e.index,e.exaggeration,(e.near[0]+t*e.dx)/e.worldSize,(e.near[1]+t*e.dy)/e.worldSize)}function Uq(e,t){return Rst(eO(e,t),e.near[2]+t*e.dz)}function bot({near:e,far:t},r,i,n){let a=t[0]-e[0],o=t[1]-e[1],s=t[2]-e[2];return((r-e[0])*a+(i-e[1])*o+(n-e[2])*s)/(a*a+o*o+s*s)}function qst(){Pa("Map cannot fit within canvas with the given bounds, padding, and/or offset.")}function Ost(e){if(e.useSlerp)if(e.k<1){let t=wne(e.startEulerAngles.roll,e.startEulerAngles.pitch,e.startEulerAngles.bearing),r=wne(e.endEulerAngles.roll,e.endEulerAngles.pitch,e.endEulerAngles.bearing),i=new Float64Array(4);Nk(i,t,r,e.k);let n=Qtt(i);e.tr.setRoll(n.roll),e.tr.setPitch(n.pitch),e.tr.setBearing(n.bearing)}else e.tr.setRoll(e.endEulerAngles.roll),e.tr.setPitch(e.endEulerAngles.pitch),e.tr.setBearing(e.endEulerAngles.bearing);else e.tr.setRoll(Ks.number(e.startEulerAngles.roll,e.endEulerAngles.roll,e.k)),e.tr.setPitch(Ks.number(e.startEulerAngles.pitch,e.endEulerAngles.pitch,e.k)),e.tr.setBearing(Ks.number(e.startEulerAngles.bearing,e.endEulerAngles.bearing,e.k))}function Nst(e,t,r,i,n){let a=n.padding,o=zv(n.worldSize,r.getNorthWest()),s=zv(n.worldSize,r.getNorthEast()),l=zv(n.worldSize,r.getSouthEast()),u=zv(n.worldSize,r.getSouthWest()),c=Os(-i),f=o.rotate(c),h=s.rotate(c),p=l.rotate(c),d=u.rotate(c),v=new rr(Math.max(f.x,h.x,d.x,p.x),Math.max(f.y,h.y,d.y,p.y)),m=new rr(Math.min(f.x,h.x,d.x,p.x),Math.min(f.y,h.y,d.y,p.y)),g=v.sub(m),w=n.width-(a.left+a.right+t.left+t.right),_=n.height-(a.top+a.bottom+t.top+t.bottom),b=w/g.x,S=_/g.y;if(S<0||b<0){qst();return}let x=Math.min(Vc(n.scale*Math.min(b,S)),e.maxZoom),A=rr.convert(e.offset),T=(t.left-t.right)/2,y=(t.top-t.bottom)/2,E=new rr(T,y).rotate(Os(i)),M=A.add(E).mult(n.scale/Vf(x));return{center:QT(n.worldSize,o.add(l).div(2).sub(M)),zoom:x,bearing:i}}function Vst(e){let t=s6(e.worldSize,e.center.lat);return 2*Math.PI*t}function rMr(e,t,r){let i=pc(t),n=pc(r),a=uu(i,n),o=Math.acos(a),s=Vst(e);return o/(2*Math.PI)*s}function iMr(e,t){return[ux(e*Math.PI*2+Math.PI,Math.PI*2),2*Math.atan(Math.exp(Math.PI-t*Math.PI*2))-Math.PI*.5]}function nMr(e,t){let r=Math.cos(t),i=new Float64Array(3);return i[0]=Math.sin(e)*r,i[1]=Math.sin(t),i[2]=Math.cos(e)*r,i}function yx(e,t,r,i,n){let a=1/(1<1e-6){let i=e[0]/r,n=e[2]/r,a=Math.acos(n),o=(i>0?a:-a)/Math.PI*180;return new yn(W0(o,-180,180),t)}return new yn(0,t)}function aMr(e,t){return YB(hx(),-e.lng,-e.lat,t)}function oMr(e){let t=e[0],r=e[1],i=e[2],n=e[3];return{lng:-Math.atan2(2*(n*t+r*i),1-2*(t*t+r*r))*180/Math.PI,lat:-Math.asin(ea(2*(n*r-i*t),-1,1))*180/Math.PI,bearing:Math.atan2(2*(n*i+t*r),1-2*(r*r+i*i))*180/Math.PI}}function Tot(e,t){let r=e.cameraPosition,i=cp(r);if(i<=1)return e.screenPointToLocation(t);let n=So();Uf(n,r);let a=e.getRayDirectionFromPixel(t),o=-uu(a,n),s=So();fC(s,a,n,o);let l=cp(s);if(l<1e-9)return e.screenPointToLocation(t);let u=Math.atan2(l,o),c=Math.asin(1/i)*.9;if(u=0?90:-90,s=e.locationToScreenPoint(new yn(0,o)),l=t.x-s.x,u=t.y-s.y,c=l*l+u*u,f=ea(1-(Pv-Math.abs(a))/12,0,1),h=f*f*(3-2*f),p=ux(i-n+180,360)-180,d=0;if(h>0&&r){let v=(l*r.y-u*r.x)/Math.max(c,400);d=(o>0?1:-1)*v*180/Math.PI}return n+(1-h)*p+h*d}function uMr(e){let t=So();return t[0]=e[0]*-e[3],t[1]=e[1]*-e[3],t[2]=e[2]*-e[3],{center:t,radius:Math.sqrt(1-e[3]*e[3])}}function cMr(e,t,r){let i=So();cg(i,r,e);let n=So();return fC(n,e,i,t/hC(i)),n}function sO(e){return Math.cos(e*Math.PI/180)}function Hc(e,t){let r=sO(e),i=sO(t);return Vc(i/r)}function fMr(e,t){return 360/Vst({worldSize:e,center:{lat:t}})}function hMr(e,t){let r=e.rotate(t.bearingInRadians),i=t.zoom+Hc(t.center.lat,0),n=d3(1/sO(t.center.lat),1/sO(Math.min(Math.abs(t.center.lat),60)),gC(i,7,3,0,1)),a=fMr(t.worldSize,t.center.lat);return new yn(t.center.lng-r.x*a*n,ea(t.center.lat+r.y*a,-Pv,Pv))}function Nae(e){let t=.5*e,r=Math.sin(t),i=Math.cos(t);return Math.log(r+i)-Math.log(i-r)}function Aot(e,t,r,i){let n=e.lat+r*i;if(Math.abs(r)>1){let a=e.lat+r,o=(Math.sign(a)===Math.sign(e.lat)?Math.abs(e.lat):-Math.abs(e.lat))*Math.PI/180,s=Math.abs(e.lat+r)*Math.PI/180,l=Nae(o+i*(s-o)),u=Nae(o),c=Nae(s),f=(l-u)/(c-u),h=e.lng+t*f;return new yn(h,n)}{let a=e.lng+t*i;return new yn(a,n)}}function Vq(e,t,r=1){let i=uu(e,t),n=r*r,a=So(),o=So();qs(o,t,i),cg(a,e,o);let s=n-uu(a,a);if(s<0)return null;let l=uu(e,e)-n,u=-i+(i<0?1:-1)*Math.sqrt(s),c=l/u,f=u,h=Math.max(c,f);return h<0?null:{tMin:Math.min(c,f),tMax:h}}function Hst(e,t){let r=t*.01569612305760477,i=ea((e-r)/(9*r),0,1);return i*i*(3-2*i)}function tO(e,t,r){let i=e-t;return i<0?-i:Math.max(0,i-r)}function Vae(e,t,r,i,n){let a=e-r,o;return o=a<0?Math.min(-a,1+a-n):a>n?Math.min(Math.max(a-n,0),1-a):0,Math.max(o,tO(t,i,n))}function Mot(e,t){let r=1/0,i=-1/0;for(let n of t){let a=uu(e,n);r=Math.min(r,a),i=Math.max(i,a)}return{min:r,max:i}}function Wst(e,t){let r=So();fC(r,e.origin,e.direction,t);let i=cp(r),n=So();qs(n,r,1/i);let a=JC(n),o=Mo.fromLngLat(a),s=new Mo(o.x,ea(o.y,0,.999999999)),l=Poe(e.index,e.exaggeration,s.x,s.y),u=Math.abs(a.lat)>85.051129?0:l.elevation;return{sample:da(fn({},l),{elevation:u}),radius:i,mercator:s}}function Eot(e,t){let{sample:r,radius:i}=Wst(e,t);return Rst(r,(i-1)*Hf)}function kot(e,t){let r=pc(e);return qs(r,r,1+t/Hf)}function Cot(e,t,r){let i=jB(So(),r,e);return uu(i,t)}function vMr(e,t,r){let i={constrainOverride:t};if(Array.isArray(e)){let n=new wot({type:e},r);return{projection:n,transform:new Dot(i),cameraHelper:new Fot(n)}}switch(e){case"mercator":return{projection:new coe,transform:new aO(i),cameraHelper:new oO};case"globe":{let n=new wot({type:["interpolate",["linear"],["zoom"],11,"vertical-perspective",12,"mercator"]},{});return{projection:n,transform:new Dot(i),cameraHelper:new Fot(n)}}case"vertical-perspective":return{projection:new Ust,transform:new jst(i),cameraHelper:new Xst};default:return Pa(`Unknown projection name: ${e}. Falling back to mercator projection.`),{projection:new coe,transform:new aO(i),cameraHelper:new oO}}}function AMr(e,t){for(let[r,i]of Object.entries(fO)){let n=e.getUniformBlockIndex(t,r);n!==e.INVALID_INDEX&&e.uniformBlockBinding(t,n,i)}}function Ioe(e){let t={},r=0;for(let{name:i,type:n}of e){let[a,o]=MMr[n];r=Math.ceil(r/o)*o,t[i]=r,r+=a}return{offsets:t,contentWords:r,sizeWords:Math.ceil(r/4)*4}}function Kst(e){return new Roe(e,fO.ProjectionUBO,Zst)}function Lot(e,t){let r=e.pending;r.set(t.mainMatrix,i6.u_projection_matrix),r.set(t.fallbackMatrix,i6.u_projection_fallback_matrix),r.set(t.tileMercatorCoords,i6.u_projection_tile_mercator_coords),r.set(t.clippingPlane,i6.u_projection_clipping_plane),r[i6.u_projection_transition]=t.projectionTransition,e.pendingWords[i6.u_projection_clip_antimeridian]=+!!t.clipAntimeridian,e.upload()}function SMr(e,t){var a;if(!t){e.projectionUniformBuffer.bind();return}let r=t.uniformBufferKey;if(r===void 0){Lot(e.projectionUniformBuffer,t);return}let i=e.keyedProjectionUniformBuffers.get(r);if(i){i.bind();return}let n=(a=e.freeProjectionUniformBuffers.pop())!=null?a:Kst(e);e.keyedProjectionUniformBuffers.set(r,n),Lot(n,t)}function EMr(e){e.freeProjectionUniformBuffers.push(...e.keyedProjectionUniformBuffers.values()),e.keyedProjectionUniformBuffers.clear()}function kMr(e){e.projectionUniformBuffer.destroy();for(let t of e.keyedProjectionUniformBuffers.values())t.destroy();for(let t of e.freeProjectionUniformBuffers)t.destroy()}function CMr(e){return new Roe(e,fO.TerrainUBO,Jst)}function DMr(e,t){let r=e.pending;r.set(t.u_terrain_matrix,Gq.u_terrain_matrix),r.set(t.u_terrain_unpack,Gq.u_terrain_unpack),r[Gq.u_terrain_dim]=t.u_terrain_dim,r[Gq.u_terrain_exaggeration]=t.u_terrain_exaggeration,e.upload()}function Gae(e){let t=[];for(let r of e){if(r===null)continue;let i=r.split(" ");t.push(i.pop())}return t}function FMr(e,t){let r=new Set([e.INT,e.INT_VEC2,e.INT_VEC3,e.INT_VEC4,e.UNSIGNED_INT,e.UNSIGNED_INT_VEC2,e.UNSIGNED_INT_VEC3,e.UNSIGNED_INT_VEC4]),i=new Set,n=e.getProgramParameter(t,e.ACTIVE_ATTRIBUTES);for(let a=0;a>16,s>>16],u_pixel_coord_lower:[o&65535,s&65535]}}function PMr(e,t,r,i){let n=r.patternAtlas.getPattern(e.from.toString()),a=r.patternAtlas.getPattern(e.to.toString()),{width:o,height:s}=r.patternAtlas.getPixelSize(),l=2**i.tileID.overscaledZ,u=i.tileSize*2**r.transform.tileZoom/l,c=u*(i.tileID.canonical.x+i.tileID.wrap*l),f=u*i.tileID.canonical.y;return{u_image:0,u_pattern_tl_a:n.tl,u_pattern_br_a:n.br,u_pattern_tl_b:a.tl,u_pattern_br_b:a.br,u_texsize:[o,s],u_mix:t.t,u_pattern_size_a:n.displaySize,u_pattern_size_b:a.displaySize,u_scale_a:t.fromScale,u_scale_b:t.toScale,u_tile_units_to_pixels:1/r0(i,1,r.transform.tileZoom),u_pixel_coord_upper:[c>>16,f>>16],u_pixel_coord_lower:[c&65535,f&65535]}}function QMr(e,t){let r=2**t.canonical.z,i=t.canonical.y;return[new Mo(0,i/r).toLngLat().lat,new Mo(0,(i+1)/r).toLngLat().lat]}function zoe(e,t){return 1/r0(e,1,t.tileZoom)}function nlt(e,t,r){return Um(e.transform,t,r.paint.get("line-translate"),r.paint.get("line-translate-anchor"))}function uEr(e){return new Roe(e,fO.FrameUBO,slt)}function cEr(e,t){let r=e.pending,{transform:i}=t,n=t.context.gl;r[Y0.u_units_to_pixels]=1/i.pixelsToGLUnits[0],r[Y0.u_units_to_pixels+1]=1/i.pixelsToGLUnits[1],r[Y0.u_world_size]=n.drawingBufferWidth,r[Y0.u_world_size+1]=n.drawingBufferHeight,r[Y0.u_camera_to_center_distance]=i.cameraToCenterDistance,r[Y0.u_symbol_fade_change]=t.options.fadeDuration?t.symbolFadeChange:1,r[Y0.u_aspect_ratio]=i.width/i.height,r[Y0.u_device_pixel_ratio]=t.pixelRatio,r[Y0.u_viewport_size]=i.width,r[Y0.u_viewport_size+1]=i.height,r[Y0.u_pixel_extrude_scale]=1/i.width,r[Y0.u_pixel_extrude_scale+1]=1/i.height,r[Y0.u_pitch]=i.pitch/360*2*Math.PI,e.upload()}function hEr(e,t,r){var n;let i=(n=t==null?void 0:t.transitionState)!=null?n:0;return{currentPass:"offscreen",currentLayer:0,opaquePassCutoff:1/0,depthRangeFor3D:[0,1],isRenderingToTexture:!1,transform:e,terrain:r,projectionTransition:i,isRenderingGlobe:i>0}}function vf(e,t,r={}){var n;let i=e.transform.getProjectionData({overscaledTileID:t,aligned:r.aligned,applyGlobeMatrix:!e.isRenderingToTexture,applyTerrainMatrix:(n=r.applyTerrainMatrix)!=null?n:!0});return e.isRenderingToTexture||(i.uniformBufferKey=r.aligned?`${t.key}/aligned`:t.key),i}function yh(e,t){var r,i;return e.isRenderingToTexture?null:(i=(r=e.terrain)==null?void 0:r.getTerrainData(t))!=null?i:null}function zot(e,t,r,i,n,a){let o=e.context,s=o.gl,l=e.useProgram("collisionBox"),u=[],c=0,f=0;for(let g of i){let w=t.getTile(g).getBucket(r);if(!w)continue;let _=n?w.textCollisionBox:w.iconCollisionBox,b=w.collisionCircleArray;b.length>0&&(u.push({circleArray:b,circleOffset:f,coord:g}),c+=b.length/4,f=c),_&&l.draw(o,s.LINES,Ua.disabled,Ro.disabled,e.colorModeForRenderPass(),Eo.disabled,null,yh(a,g),vf(a,g),r.id,_.layoutVertexBuffer,_.indexBuffer,_.segments,null,e.transform.zoom,null,null,_.collisionVertexBuffer)}if(!n||!u.length)return;let h=e.useProgram("collisionCircle"),p=new jit;p.resize(c*4),p._trim();let d=0;for(let g of u)for(let w=0;wc.getElevation(d,T,y):void 0;xEr(m,f,h,l,u,b,x,w,S,Um(u,v,o,s),d.toUnwrapped(),A,r.layout.get("symbol-height-anchor")==="ground")}}}function yEr(e,t,r,i,n,a){let o=t.tileAnchorPoint.add(new rr(t.translation[0],t.translation[1]));if(t.pitchWithMap){let s=i.mult(a);r||(s=s.rotate(-n));let l=o.add(s);return Doe(l.x,l.y,t.pitchedLabelPlaneMatrix,M3(t,l.x,l.y)).point}if(r){let s=S3(t.tileAnchorPoint.x+1,t.tileAnchorPoint.y,t).point.sub(e),l=Math.atan(s.y/s.x)+(s.x<0?Math.PI:0);return e.add(i.rotate(l))}return e.add(i)}function xEr(e,t,r,i,n,a,o,s,l,u,c,f,h){let p=e.text.placedSymbolArray,d=e.text.dynamicLayoutVertexArray,v=e.icon.dynamicLayoutVertexArray,m={};d.clear();for(let g=0;g=0&&(m[w.associatedIconIndex]={shiftedAnchor:R,angle:L})}}if(l){v.clear();let g=e.icon.placedSymbolArray;for(let w=0;we.style.map.terrain.getElevation(k,re,pe):void 0;AAr(F,e,n,H,ae,g,u,r.layout.get("text-rotation-alignment")==="map",k.toUnwrapped(),v.width,v.height,Q,_e)}let ce=n&&A||ge,oe=g?H:e.transform.clipSpaceToPixelsMatrix,Se=w||ce?pEr:oe,be=L&&r.paint.get(n?"text-halo-width":"icon-halo-width").constantOr(1)!==0,fe;fe=L?F.iconsInText?gSr(I.kind,$,_,g,w,ce,e,Se,j,Q,K,G,y,Ee,xe):olt(I.kind,$,_,g,w,ce,e,Se,j,Q,n,K,be,y,Ee,xe):alt(I.kind,$,_,g,w,ce,e,Se,j,Q,n,K,y,Ee,xe);let ee={program:O,buffers:P,uniformValues:fe,projectionData:te,atlasTexture:q,atlasTextureIcon:N,atlasInterpolation:J,atlasInterpolationIcon:V,isSDF:L,hasHalo:be};if(b&&F.canOverlap){S=!0;let ae=P.segments.get();for(let _e of ae)T.push({segments:new Js([_e]),sortKey:_e.sortKey,state:ee,terrainData:X})}else T.push({segments:P.segments,sortKey:0,state:ee,terrainData:X})}S&&T.sort((k,D)=>k.sortKey-D.sortKey);let E=(C=r.paint.get(n?"text-halo-width":"icon-halo-width").constantOr(null))!=null?C:1/0,M=r.layout.get("text-letter-spacing").constantOr(0)*24<0||E>1;for(let k of T){let D=k.state;p.activeTexture.set(d.TEXTURE0),D.atlasTexture.bind(D.atlasInterpolation,d.CLAMP_TO_EDGE),D.atlasTextureIcon&&(p.activeTexture.set(d.TEXTURE1),D.atlasTextureIcon&&D.atlasTextureIcon.bind(D.atlasInterpolationIcon,d.CLAMP_TO_EDGE));let F=D.isSDF&&D.hasHalo;if(F){let P=D.uniformValues;P.u_is_halo=1,M&&(P.u_is_plain=0,qot(D.buffers,k.segments,r,e,D.program,x,c,f,P,D.projectionData,k.terrainData),P.u_is_halo=0,P.u_is_plain=1)}qot(D.buffers,k.segments,r,e,D.program,x,c,f,D.uniformValues,D.projectionData,k.terrainData),F&&!M&&(D.uniformValues.u_is_halo=0)}}function qot(e,t,r,i,n,a,o,s,l,u,c){let f=i.context,h=f.gl;n.draw(f,h.TRIANGLES,a,o,s,Eo.backCCW,l,c,u,r.id,e.layoutVertexBuffer,e.indexBuffer,t,r.paint,i.transform.zoom,e.programConfigurations.get(r.id),e.dynamicLayoutVertexBuffer,e.opacityVertexBuffer)}function _Er(e,t,r,i,n){if(n.currentPass!=="translucent")return;let a=r.paint.get("circle-opacity"),o=r.paint.get("circle-stroke-width"),s=r.paint.get("circle-stroke-opacity"),l=!r.layout.get("circle-sort-key").isConstant();if(a.constantOr(1)===0&&(o.constantOr(1)===0||s.constantOr(1)===0))return;let u=e.context,c=u.gl,f=e.transform,h=e.getDepthModeForSublayer(0,Ua.ReadOnly),p=Ro.disabled,d=e.colorModeForRenderPass(),v=[],m=f.getCircleRadiusCorrection();for(let g of i){let w=t.getTile(g),_=w.getBucket(r);if(!_)continue;let b=r.paint.get("circle-translate"),S=r.paint.get("circle-translate-anchor"),x=Um(f,w,b,S),A=_.programConfigurations.get(r.id),T=e.useProgram("circle",A),y=_.layoutVertexBuffer,E=_.indexBuffer,M=yh(n,g),C={programConfiguration:A,program:T,layoutVertexBuffer:y,indexBuffer:E,uniformValues:jMr(e,w,r,x,m),terrainData:M,projectionData:vf(n,g)};if(l){let k=_.segments.get();for(let D of k)v.push({segments:new Js([D]),sortKey:D.sortKey,state:C})}else v.push({segments:_.segments,sortKey:0,state:C})}l&&v.sort((g,w)=>g.sortKey-w.sortKey);for(let g of v){let{programConfiguration:w,program:_,layoutVertexBuffer:b,indexBuffer:S,uniformValues:x,terrainData:A,projectionData:T}=g.state,y=g.segments;_.draw(u,c.TRIANGLES,h,p,d,Eo.backCCW,x,A,T,r.id,b,S,y,r.paint,e.transform.zoom,w)}}function wEr(e,t,r,i,n){if(r.paint.get("heatmap-opacity")===0)return;let a=e.context;if(e.style.map.terrain){for(let o of i){let s=t.getTile(o);t.hasRenderableParent(o)||(n.currentPass==="offscreen"?MEr(e,s,r,o,n):n.currentPass==="translucent"&&SEr(e,r,o,n))}a.viewport.set([0,0,e.width,e.height])}else n.currentPass==="offscreen"?TEr(e,t,r,i,n):n.currentPass==="translucent"&&AEr(e,r)}function TEr(e,t,r,i,n){let a=e.context,o=a.gl,s=e.transform,l=Ro.disabled,u=new Hl([o.ONE,o.ONE],aa.transparent,[!0,!0,!0,!0]);EEr(a,e,r),a.clear({color:aa.transparent});for(let c of i){if(t.hasRenderableParent(c))continue;let f=t.getTile(c),h=f.getBucket(r);if(!h)continue;let p=h.programConfigurations.get(r.id),d=e.useProgram("heatmap",p),v=vf(n,c,{applyTerrainMatrix:!1}),m=s.getCircleRadiusCorrection();d.draw(a,o.TRIANGLES,Ua.disabled,l,u,Eo.backCCW,rlt(f,s.zoom,r.paint.get("heatmap-intensity"),m),null,v,r.id,h.layoutVertexBuffer,h.indexBuffer,h.segments,r.paint,s.zoom,p)}a.viewport.set([0,0,e.width,e.height])}function AEr(e,t){let r=e.context,i=r.gl;r.setColorMode(e.colorModeForRenderPass());let n=t.heatmapFbos.get(EC);n&&(r.activeTexture.set(i.TEXTURE0),i.bindTexture(i.TEXTURE_2D,n.colorAttachment.get()),r.activeTexture.set(i.TEXTURE1),ult(r,t).bind(i.LINEAR,i.CLAMP_TO_EDGE),e.useProgram("heatmapTexture").draw(r,i.TRIANGLES,Ua.disabled,Ro.disabled,e.colorModeForRenderPass(),Eo.disabled,ilt(e,t,0,1),null,null,t.id,e.viewportBuffer,e.quadTriangleIndexBuffer,e.viewportSegments,t.paint,e.transform.zoom))}function MEr(e,t,r,i,n){let a=e.context,o=a.gl,s=Ro.disabled,l=new Hl([o.ONE,o.ONE],aa.transparent,[!0,!0,!0,!0]),u=t.getBucket(r);if(!u)return;let c=i.key,f=r.heatmapFbos.get(c);f||(f=llt(a,t.tileSize,t.tileSize),r.heatmapFbos.set(c,f)),a.bindFramebuffer.set(f.framebuffer),a.viewport.set([0,0,t.tileSize,t.tileSize]),a.clear({color:aa.transparent});let h=u.programConfigurations.get(r.id),p=e.useProgram("heatmap",h,!n.isRenderingGlobe),d=vf(n,t.tileID),v=yh(n,i);p.draw(a,o.TRIANGLES,Ua.disabled,s,l,Eo.disabled,rlt(t,e.transform.zoom,r.paint.get("heatmap-intensity"),1),v,d,r.id,u.layoutVertexBuffer,u.indexBuffer,u.segments,r.paint,e.transform.zoom,h)}function SEr(e,t,r,i){let n=e.context,a=n.gl,o=e.transform;n.setColorMode(e.colorModeForRenderPass());let s=ult(n,t),l=r.key,u=t.heatmapFbos.get(l);if(!u)return;n.activeTexture.set(a.TEXTURE0),a.bindTexture(a.TEXTURE_2D,u.colorAttachment.get()),n.activeTexture.set(a.TEXTURE1),s.bind(a.LINEAR,a.CLAMP_TO_EDGE);let c=vf(i,r,{applyTerrainMatrix:i.isRenderingGlobe});e.useProgram("heatmapTexture").draw(n,a.TRIANGLES,Ua.disabled,Ro.disabled,e.colorModeForRenderPass(),Eo.disabled,ilt(e,t,0,1),null,c,t.id,e.rasterBoundsBuffer,e.quadTriangleIndexBuffer,e.rasterBoundsSegments,t.paint,o.zoom),u.destroy(),t.heatmapFbos.delete(l)}function EEr(e,t,r){let i=e.gl;e.activeTexture.set(i.TEXTURE1),e.viewport.set([0,0,t.width/4,t.height/4]);let n=r.heatmapFbos.get(EC);n?(i.bindTexture(i.TEXTURE_2D,n.colorAttachment.get()),e.bindFramebuffer.set(n.framebuffer)):(n=llt(e,t.width/4,t.height/4),r.heatmapFbos.set(EC,n))}function llt(e,t,r){let i=e.gl,n=i.createTexture();i.bindTexture(i.TEXTURE_2D,n),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_WRAP_S,i.CLAMP_TO_EDGE),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_WRAP_T,i.CLAMP_TO_EDGE),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_MIN_FILTER,i.LINEAR),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_MAG_FILTER,i.LINEAR),i.texStorage2D(i.TEXTURE_2D,1,i.RGBA16F,t,r);let a=e.createFramebuffer(t,r,!1,!1);return a.colorAttachment.set(n),a}function ult(e,t){return t.colorRampTexture||(t.colorRampTexture=new Tu(e,t.colorRamp,e.gl.RGBA)),t.colorRampTexture}function clt(e,t,r){let i=e.context,n=i.bindFramebuffer.get(),a=i.viewport.get(),[,,o,s]=a;return kEr(e,o,s),i.viewport.set([0,0,o,s]),i.clear({color:aa.transparent,depth:1,stencil:0}),e.currentStencilSource=void 0,e.renderTileClippingMasks(t,r),{compositeTarget:n,compositeViewport:a}}function kEr(e,t,r){let i=e.context.gl;if(!e.layerOpacityFbo){let a=e.context.createFramebuffer(t,r,!0,!0),o=i.createTexture();i.bindTexture(i.TEXTURE_2D,o),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_WRAP_S,i.CLAMP_TO_EDGE),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_WRAP_T,i.CLAMP_TO_EDGE),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_MIN_FILTER,i.LINEAR),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_MAG_FILTER,i.LINEAR),i.texImage2D(i.TEXTURE_2D,0,i.RGBA,t,r,0,i.RGBA,i.UNSIGNED_BYTE,null),a.colorAttachment.set(o),a.depthAttachment.set(e.context.createRenderbuffer(i.DEPTH_STENCIL,t,r)),e.layerOpacityFbo=a,e.context.bindFramebuffer.set(e.layerOpacityFbo.framebuffer);return}if(e.layerOpacityFbo.width===t&&e.layerOpacityFbo.height===r){e.context.bindFramebuffer.set(e.layerOpacityFbo.framebuffer);return}let n=e.layerOpacityFbo;i.bindTexture(i.TEXTURE_2D,n.colorAttachment.get()),i.texImage2D(i.TEXTURE_2D,0,i.RGBA,t,r,0,i.RGBA,i.UNSIGNED_BYTE,null),e.context.bindRenderbuffer.set(n.depthAttachment.get()),i.renderbufferStorage(i.RENDERBUFFER,i.DEPTH_STENCIL,t,r),e.context.bindRenderbuffer.set(null),n.width=t,n.height=r,e.context.bindFramebuffer.set(n.framebuffer)}function flt(e,t,r,i){let n=e.context,a=n.gl;n.bindFramebuffer.set(r.compositeTarget),n.viewport.set(r.compositeViewport),n.activeTexture.set(a.TEXTURE0),a.bindTexture(a.TEXTURE_2D,e.layerOpacityFbo.colorAttachment.get()),e.useProgram("layerOpacity").draw(n,a.TRIANGLES,Ua.disabled,Ro.disabled,e.colorModeForRenderPass(),Eo.disabled,hSr(t,0),null,null,i.id,e.viewportBuffer,e.quadTriangleIndexBuffer,e.viewportSegments,i.paint,e.transform.zoom),e.currentStencilSource=void 0}function hlt(e,t,r,i,n,a,o,s){let l=256;if(n.stepInterpolant){let u=t.getSource().maxzoom,c=o.canonical.z===u?Math.ceil(1<e.options.anisotropicFilterPitch&&d.texParameterf(d.TEXTURE_2D,p.extTextureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT,p.extTextureFilterAnisotropicMax);let D=yh(c,A),F=vf(c,A,{aligned:w}),P=V6r(C,M,k.fadeMix,r,s,l),R=f!=null?f:m.getMeshFromTileID(p,A.canonical,a,o,"raster"),L=n?n[A.overscaledZ]:Ro.disabled;v.draw(p,d.TRIANGLES,T,L,g,u?Eo.frontCCW:Eo.backCCW,P,D,F,r.id,R.vertexBuffer,R.indexBuffer,R.segments)}}function NEr(e,t,r,i){let n={parentTile:null,parentScaleBy:1,parentTopLeft:[0,0],fadeValues:{tileOpacity:1,parentTileOpacity:1,fadeMix:{opacity:1,mix:0}}};if(r===0||i)return n;if(e.fadingParentID){let a=t.getLoadedTile(e.fadingParentID);if(!a)return n;let o=2**(a.tileID.overscaledZ-e.tileID.overscaledZ);return{parentTile:a,parentScaleBy:o,parentTopLeft:[e.tileID.canonical.x*o%1,e.tileID.canonical.y*o%1],fadeValues:UEr(e,a,r)}}return e.selfFading?{parentTile:null,parentScaleBy:1,parentTopLeft:[0,0],fadeValues:VEr(e,r)}:n}function UEr(e,t,r){let i=zo(),n=(i-e.timeAdded)/r,a=(i-t.timeAdded)/r,o=e.fadingDirection===1,s=ea(n,0,1),l=ea(1-a,0,1),u=o?s:l;return{tileOpacity:u,parentTileOpacity:o?l:s,fadeMix:{opacity:1,mix:1-u}}}function VEr(e,t){let r=(zo()-e.timeAdded)/t,i=ea(r,0,1);return{tileOpacity:i,fadeMix:{opacity:i,mix:0}}}function GEr(e,t,r,i,n){let a=r.paint.get("background-color"),o=r.paint.get("background-opacity");if(o===0)return;let s=e.context,l=s.gl,u=e.style.projection,c=e.transform,f=c.tileSize,h=r.paint.get("background-pattern");if(e.isPatternMissing(h))return;let p=!h&&a.a===1&&o===1&&e.opaquePassEnabledForLayer()?"opaque":"translucent";if(n.currentPass!==p)return;let d=Ro.disabled,v=e.getDepthModeForSublayer(0,p==="opaque"?Ua.ReadWrite:Ua.ReadOnly),m=e.colorModeForRenderPass(),g=e.useProgram(h?"backgroundPattern":"background"),w=i||u6(c,{tileSize:f,terrain:e.style.map.terrain});h&&(s.activeTexture.set(l.TEXTURE0),e.patternAtlas.bind(e.context));let _=r.getCrossfadeParameters();for(let b of w){let S=vf(n,b),x=h?bSr(o,e,h,{tileID:b,tileSize:f},_):xSr(o,a),A=yh(n,b),T=u.getMeshFromTileID(s,b.canonical,!1,!0,"raster");g.draw(s,l.TRIANGLES,v,d,m,Eo.backCCW,x,A,S,r.id,T.vertexBuffer,T.indexBuffer,T.segments)}}function XEr(e){let t=e.transform.padding;Uot(e,e.transform.height-(t.top||0),3,HEr),Uot(e,t.bottom||0,3,jEr),Vot(e,t.left||0,3,$Er),Vot(e,e.transform.width-(t.right||0),3,WEr);let r=e.transform.centerPoint;ZEr(e,r.x,e.transform.height-r.y,YEr)}function ZEr(e,t,r,i){lO(e,t-1,r-10,2,20,i),lO(e,t-10,r-1,20,2,i)}function Uot(e,t,r,i){lO(e,0,t+r/2,e.transform.width,r,i)}function Vot(e,t,r,i){lO(e,t-r/2,0,r,e.transform.height,i)}function lO(e,t,r,i,n,a){let o=e.context,s=o.gl;s.enable(s.SCISSOR_TEST),s.scissor(t*e.pixelRatio,r*e.pixelRatio,i*e.pixelRatio,n*e.pixelRatio),o.clear({color:a}),s.disable(s.SCISSOR_TEST)}function KEr(e,t,r,i){for(let n of r)JEr(e,t,n,i)}function JEr(e,t,r,i){var w;let n=e.context,a=n.gl,o=e.useProgram("debug"),s=Ua.disabled,l=Ro.disabled,u=e.colorModeForRenderPass(),c="$debug",f=yh(i,r);n.activeTexture.set(a.TEXTURE0);let h=((w=t.getTileByID(r.key).latestRawTileData)==null?void 0:w.byteLength)||0,p=Math.floor(h/1024),d=t.getTile(r).tileSize,v=512/Math.min(d,512)*(r.overscaledZ/e.transform.zoom)*.5,m=r.canonical.toString();r.overscaledZ!==r.canonical.z&&(m+=` => ${r.overscaledZ}`),QEr(e,`${m} ${p}kB`);let g=vf(i,r);o.draw(n,a.TRIANGLES,s,l,Hl.alphaBlended,Eo.disabled,Pot(aa.transparent,v),null,g,c,e.debugBuffer,e.quadTriangleIndexBuffer,e.debugSegments),o.draw(n,a.LINE_STRIP,s,l,u,Eo.disabled,Pot(aa.red),f,g,c,e.debugBuffer,e.tileBorderIndexBuffer,e.debugSegments)}function QEr(e,t){e.initDebugOverlayCanvas();let r=e.debugOverlayCanvas,i=e.context.gl,n=e.debugOverlayCanvas.getContext("2d");n.clearRect(0,0,r.width,r.height),n.shadowColor="white",n.shadowBlur=2,n.lineWidth=1.5,n.strokeStyle="white",n.textBaseline="top",n.font="bold 36px Open Sans, sans-serif",n.fillText(t,5,5),n.strokeText(t,5,5),e.debugOverlayTexture.update(r),e.debugOverlayTexture.bind(i.LINEAR,i.CLAMP_TO_EDGE)}function ekr(e,t){let r=null,i=Object.values(e._layers).flatMap(s=>s.source&&!s.isHidden(t)?[e.tileManagers[s.source]]:[]),n=i.filter(s=>s.getSource().type==="vector"),a=i.filter(s=>s.getSource().type!=="vector"),o=s=>{(!r||r.getSource().maxzoom{var p;return l.getProjectionData({overscaledTileID:new Vc(h.tileID.canonical.z,(p=h.tileID.wrap)!=null?p:0,h.tileID.canonical.z,h.tileID.canonical.x,h.tileID.canonical.y),aligned:h.aligned,applyGlobeMatrix:h.applyGlobeMatrix,applyTerrainMatrix:h.applyTerrainMatrix})}},f=o.renderingMode?o.renderingMode:"2d";if(i.currentPass==="offscreen"){let h=o.prerender;h&&(e.setCustomLayerDefaults(),a.setColorMode(e.colorModeForRenderPass()),h.call(o,a.gl,c),a.setDirty(),e.setBaseState())}else if(i.currentPass==="translucent"){e.setCustomLayerDefaults(),a.setColorMode(e.colorModeForRenderPass()),a.setStencilMode(Ro.disabled);let h=f==="3d"?e.getDepthModeFor3D():e.getDepthModeForSublayer(0,Na.ReadOnly);a.setDepthMode(h),o.render(a.gl,c),a.setDirty(),e.setBaseState(),a.bindFramebuffer.set(null)}}function HEr(e,t){let r=e.context,i=r.gl,n=e.transform,a=Ul.unblended,o=new Na(i.LEQUAL,Na.ReadWrite,[0,1]),s=t.tileManager.getRenderableTiles(),l=e.useProgram("terrainDepth");r.bindFramebuffer.set(t.getFramebuffer().framebuffer),r.viewport.set([0,0,e.width/devicePixelRatio,e.height/devicePixelRatio]),r.clear({color:na.white,depth:1});for(let u of s){let c=t.getTerrainMesh(u.tileID),f=t.getTerrainData(u.tileID),h=n.getProjectionData({overscaledTileID:u.tileID,applyTerrainMatrix:!1,applyGlobeMatrix:!0}),p=fMr(t.getSkirtLength(n.zoom));l.draw(r,i.TRIANGLES,o,Ro.disabled,a,Eo.backCCW,p,f,h,"terrain",c.vertexBuffer,c.indexBuffer,c.segments)}r.bindFramebuffer.set(null),r.viewport.set([0,0,e.width,e.height])}function jEr(e,t,r,i){let{isRenderingGlobe:n}=i,a=e.context,o=a.gl,s=e.transform,l=e.colorModeForRenderPass(),u=e.getDepthModeFor3D(),c=e.useProgram("terrain");a.bindFramebuffer.set(null),a.viewport.set([0,0,e.width,e.height]);for(let f of r){let h=t.getTerrainMesh(f.tileID),p=e.renderToTexture.getTexture(f),d=t.getTerrainData(f.tileID);a.activeTexture.set(o.TEXTURE0),p.bind(o.LINEAR,o.CLAMP_TO_EDGE,o.LINEAR_MIPMAP_LINEAR);let v=t.getSkirtLength(s.zoom),m=s.calculateFogMatrix(f.tileID.toUnwrapped()),g=cMr(v,m,e.style.sky,s.pitch,n),w=pf(i,f.tileID,{applyTerrainMatrix:!1});c.draw(a,o.TRIANGLES,u,Ro.disabled,l,Eo.backCCW,g,d,w,"terrain",h.vertexBuffer,h.indexBuffer,h.segments)}}function slt(e,t){if(!t.mesh){let r=new Nm;r.emplaceBack(-1,-1),r.emplaceBack(1,-1),r.emplaceBack(1,1),r.emplaceBack(-1,1);let i=new Fv;i.emplaceBack(0,1,2),i.emplaceBack(0,2,3),t.mesh=new JC(e.createVertexBuffer(r,b3.members),e.createIndexBuffer(i),Xs.simpleSegment(0,0,r.length,i.length))}return t.mesh}function $Er(e,t){let r=e.context,i=r.gl,n=hSr(t,e.transform,e.pixelRatio),a=new Na(i.LEQUAL,Na.ReadWrite,[0,1]),o=Ro.disabled,s=e.colorModeForRenderPass(),l=e.useProgram("sky"),u=slt(r,t);l.draw(r,i.TRIANGLES,a,o,s,Eo.disabled,n,null,void 0,"sky",u.vertexBuffer,u.indexBuffer,u.segments)}function WEr(e,t){let r=e.getCartesianPosition();Stt(r,r);let i=op(new Float64Array(16));return e.properties.get("anchor")==="map"&&(zm(i,i,t.rollInRadians),l3(i,i,-t.pitchInRadians),zm(i,i,t.bearingInRadians),l3(i,i,t.center.lat*Math.PI/180),nne(i,i,-t.center.lng*Math.PI/180)),Ett(r,r,i),r}function YEr(e,t,r){let i=e.context,n=i.gl,a=e.useProgram("atmosphere"),o=new Na(n.LEQUAL,Na.ReadOnly,[0,1]),s=e.transform,l=WEr(r,e.transform),u=s.getProjectionData({overscaledTileID:null,applyGlobeMatrix:!0,applyTerrainMatrix:!0}),c=oT(s.worldSize,s.center.lat),f=Rst(s),h=zst(sp(f)-c,c),p=t.properties.get("atmosphere-blend")*u.projectionTransition*h;if(p===0)return;let d=cSr(l,p,f,c,s.inverseProjectionMatrix),v=slt(i,t);a.draw(i,n.TRIANGLES,o,Ro.disabled,Ul.alphaBlended,Eo.disabled,d,null,null,"atmosphere",v.vertexBuffer,v.indexBuffer,v.segments)}function Foe(e,t){let r=!1,i=null,n,a=()=>{i=null,r&&(r=(e(...n),i=setTimeout(a,t),!1))};return(...o)=>(r=!0,n=o,i||a(),i)}function HC(e,t){(!e.duration||e.duration({around:i,panDelta:i.sub(r)}),activateOnStart:!0,moveStateManager:new t8({checkCorrectEvent:r=>r.button===0&&!r.ctrlKey}),enable:e,assignEvents:sO})}function dkr({enable:e,clickTolerance:t,aroundCenter:r=!0,minPixelCenterThreshold:i=100,rotateSpeed:n=.8},a){return new e8({clickTolerance:t,move:(o,s)=>{let l=a();if(r&&Math.abs(l.y-o.y)>i)return{bearingDelta:dne(new tr(o.x,s.y),s,l)};let u=(s.x-o.x)*n;return r&&s.yo.button===0&&o.ctrlKey||o.button===2&&!o.ctrlKey}),enable:e,assignEvents:sO})}function pkr({enable:e,clickTolerance:t,pitchSpeed:r=-.5}){return new e8({clickTolerance:t,move:(i,n)=>({pitchDelta:(n.y-i.y)*r}),moveStateManager:new t8({checkCorrectEvent:i=>i.button===0&&i.ctrlKey||i.button===2}),enable:e,assignEvents:sO})}function vkr({enable:e,clickTolerance:t,rollDegreesPerPixelMoved:r=.3},i){return new e8({clickTolerance:t,move:(n,a)=>{let o=i(),s=(a.x-n.x)*r;return a.yn.button===2&&n.ctrlKey}),enable:e,assignEvents:sO})}function Uq(e,t,r){for(let i=0;iMath.abs(e.x)}function ykr(e){return e*(2-e)}function Hae(e){var t;return((t=e.panDelta)==null?void 0:t.mag())||e.zoomDelta||e.bearingDelta||e.pitchDelta||e.rollDelta}function Ikr(e=!1){return Yi(this,null,function*(){if(m3!==void 0&&!e)return m3;if(window.navigator.permissions===void 0)return m3=!!window.navigator.geolocation,m3;try{m3=(yield window.navigator.permissions.query({name:"geolocation"})).state!=="denied"}catch(t){m3=!!window.navigator.geolocation}return m3})}function Alt(e,t,r,i=!1){if(i||!r.getCoveringTilesDetailsProvider().allowWorldCopies())return e==null?void 0:e.wrap();let n=new pn(e.lng,e.lat);if(e=new pn(e.lng,e.lat),t){let a=new pn(e.lng-360,e.lat),o=new pn(e.lng+360,e.lat),s=r.locationToScreenPoint(e).distSqr(t);r.locationToScreenPoint(a).distSqr(t)180;){let a=r.locationToScreenPoint(e);if(a.x>=0&&a.y>=0&&a.x<=r.width&&a.y<=r.height)break;e.lng>r.center.lng?e.lng-=360:e.lng+=360}return e.lng!==n.lng&&r.isPointOnMapSurface(r.locationToScreenPoint(e))?e:n}function Mlt(e,t,r){let i=e.classList;for(let n in Poe)i.remove(`maplibregl-${r}-anchor-${n}`);i.add(`maplibregl-${r}-anchor-${t}`)}function up(e,t,r=[]){let i=Yn.createNS("http://www.w3.org/2000/svg",e);for(let n in t)i.setAttributeNS(null,n,t[n]);for(let n of r)i.appendChild(n);return i}function Rkr(){return jae||(jae=up("svg",{display:"block",height:"41px",width:"27px",viewBox:"0 0 27 41"},[up("g",{"fill-rule":"nonzero"},[up("g",{transform:"translate(3.0, 29.0)",fill:"#000000"},[["10.5","5.25002273"],["10.5","5.25002273"],["9.5","4.77275007"],["8.5","4.29549936"],["7.5","3.81822308"],["6.5","3.34094679"],["5.5","2.86367051"],["4.5","2.38636864"]].map(([e,t])=>up("ellipse",{opacity:"0.04",cx:"10.5",cy:"5.80029008",rx:e,ry:t}))),up("g",{fill:Slt},[up("path",{d:"M27,13.5 C27,19.074644 20.250001,27.000002 14.75,34.500002 C14.016665,35.500004 12.983335,35.500004 12.25,34.500002 C6.7499993,27.000002 0,19.222562 0,13.5 C0,6.0441559 6.0441559,0 13.5,0 C20.955844,0 27,6.0441559 27,13.5 Z"})]),up("g",{opacity:"0.25",fill:"#000000"},[up("path",{d:"M13.5,0 C6.0441559,0 0,6.0441559 0,13.5 C0,19.222562 6.7499993,27 12.25,34.5 C13,35.522727 14.016664,35.500004 14.75,34.5 C20.250001,27 27,19.074644 27,13.5 C27,6.0441559 20.955844,0 13.5,0 Z M13.5,1 C20.415404,1 26,6.584596 26,13.5 C26,15.898657 24.495584,19.181431 22.220703,22.738281 C19.945823,26.295132 16.705119,30.142167 13.943359,33.908203 C13.743445,34.180814 13.612715,34.322738 13.5,34.441406 C13.387285,34.322738 13.256555,34.180814 13.056641,33.908203 C10.284481,30.127985 7.4148684,26.314159 5.015625,22.773438 C2.6163816,19.232715 1,15.953538 1,13.5 C1,6.584596 6.584596,1 13.5,1 Z"})]),up("g",{transform:"translate(6.0, 7.0)",fill:"#FFFFFF"}),up("g",{transform:"translate(8.0, 8.0)"},[up("circle",{fill:"#000000",opacity:"0.25",cx:"5.5",cy:"5.5",r:"5.4999962"}),up("circle",{fill:"#FFFFFF",cx:"5.5",cy:"5.5",r:"5.4999962"})])])]),jae)}function zkr(e){return e.firstElementChild.children[1]}function Vot(e,t,r){let i=(r==null?void 0:r.maxWidth)||100,{width:n,height:a}=e._camera.transform,o=a/2,s=n/2,l=e.unproject([s-i/2,o]),u=e.unproject([s+i/2,o]),c=Math.round(e.project(u).x-e.project(l).x),f=Math.min(i,c,n),h=l.distanceTo(u);if((r==null?void 0:r.unit)==="imperial"){let p=3.2808*h;p>5280?WC(t,f,p/5280,e._getUIString("ScaleControl.Miles")):WC(t,f,p,e._getUIString("ScaleControl.Feet"))}else(r==null?void 0:r.unit)==="nautical"?WC(t,f,h/1852,e._getUIString("ScaleControl.NauticalMiles")):h>=1e3?WC(t,f,h/1e3,e._getUIString("ScaleControl.Kilometers")):WC(t,f,h,e._getUIString("ScaleControl.Meters"))}function WC(e,t,r,i){let n=Vkr(r),a=n/r;e.style.width=`${t*a}px`;let o=`${n}\xA0${i}`;e.textContent!==o&&(e.textContent=o)}function Ukr(e){let t=10**Math.ceil(-Math.log(e)/Math.LN10);return Math.round(e*t)/t}function Vkr(e){let t=10**(`${Math.floor(e)}`.length-1),r=e/t;return r=r>=10?10:r>=5?5:r>=3?3:r>=2?2:r>=1?1:Ukr(r),t*r}function Clt(e){if(!e)return Clt(new tr(0,0));if(typeof e=="number"){let t=Math.round(Math.abs(e)/Math.SQRT2);return{center:new tr(0,0),top:new tr(0,e),"top-left":new tr(t,t),"top-right":new tr(-t,t),bottom:new tr(0,-e),"bottom-left":new tr(t,-t),"bottom-right":new tr(-t,-t),left:new tr(e,0),right:new tr(-e,0)}}if(e instanceof tr||Array.isArray(e)){let t=tr.convert(e);return{center:t,top:t,"top-left":t,"top-right":t,bottom:t,"bottom-left":t,"bottom-right":t,left:t,right:t}}return{center:tr.convert(e.center||[0,0]),top:tr.convert(e.top||[0,0]),"top-left":tr.convert(e["top-left"]||[0,0]),"top-right":tr.convert(e["top-right"]||[0,0]),bottom:tr.convert(e.bottom||[0,0]),"bottom-left":tr.convert(e["bottom-left"]||[0,0]),"bottom-right":tr.convert(e["bottom-right"]||[0,0]),left:tr.convert(e.left||[0,0]),right:tr.convert(e.right||[0,0])}}function Xkr(e){var t,r,i,n;return e?{top:(t=e.top)!=null?t:0,right:(r=e.right)!=null?r:0,bottom:(i=e.bottom)!=null?i:0,left:(n=e.left)!=null?n:0}:{top:0,right:0,bottom:0,left:0}}function Kkr(e,t){return KC().setRTLTextPlugin(e,t)}function Jkr(){return KC().getRTLTextPluginStatus()}function Qkr(){return Zkr}function eCr(){return nO.workerCount}function tCr(e){nO.workerCount=e}function rCr(){return r0.MAX_PARALLEL_IMAGE_REQUESTS}function iCr(e){r0.MAX_PARALLEL_IMAGE_REQUESTS=e}function nCr(){return r0.WORKER_URL}function aCr(e){r0.WORKER_URL=e}function oCr(e){return Yi(this,null,function*(){yield voe().broadcast("IS",e)})}var Flt,Got,Cq,qC,Mae,a0,iO,D6r,F6r,L6r,P6r,OC,t,Ko,Yn,Pv,I6r,pc,kn,$ae,cp,qs,n0,YC,jot,Wae,$ot,Wot,Hq,Yot,H6r,j6r,Yae,$6r,W6r,Z6r,Xae,hoe,K6r,J6r,Q6r,eTr,Uat,tTr,rTr,Vat,iTr,nTr,aTr,doe,nO,fTr,XC,Jot,Fq,Iv,rst,ist,goe,nst,ost,nT,CTr,DTr,JC,b3,Lq,sT,cst,fst,hst,qTr,dst,OTr,NTr,Zae,VTr,kae,pst,GTr,moe,yoe,XTr,Zat,jm,Jae,aAr,Kat,uAr,pAr,mAr,eot,NC,tot,yAr,xAr,bAr,_Ar,wAr,TAr,AAr,UC,MAr,SAr,aot,_l,EAr,GC,kAr,CAr,DAr,Tst,FAr,LAr,PAr,IAr,RAr,zAr,BAr,qAr,sot,fg,Ast,Mst,roe,ioe,Aoe,OAr,NAr,UAr,uot,cot,VAr,fot,Qq,eO,dot,GAr,Dae,Pst,pot,Fae,tMr,Pae,rMr,yot,Bst,wot,Ust,Tot,nMr,aoe,aMr,oMr,sMr,lMr,uMr,cMr,fMr,aO,dMr,Eoe,Vst,rT,Hst,Bq,bMr,wMr,TMr,$st,AMr,MMr,SMr,EMr,kMr,Wst,CMr,DMr,FMr,LMr,PMr,IMr,Mot,RMr,zMr,Yst,Xst,BMr,qMr,OMr,NMr,VMr,GMr,HMr,jMr,$Mr,WMr,YMr,oO,XMr,ZMr,KMr,JMr,QMr,eSr,tSr,rSr,iSr,Kst,Jst,nSr,aSr,oSr,sSr,lSr,uSr,cSr,fSr,hSr,qq,dSr,pSr,Sot,vSr,Vo,gSr,mSr,ySr,xSr,bSr,_Sr,wSr,TSr,ASr,MSr,SSr,ESr,kSr,CSr,DSr,FSr,LSr,PSr,ISr,RSr,zSr,BSr,qSr,OSr,NSr,USr,VSr,GSr,HSr,jSr,$Sr,Coe,WSr,YSr,XSr,ZSr,Qst,$0,Ul,QSr,Na,zae,Ro,Eot,Bae,Eo,Oq,rEr,Nae,Vae,LEr,PEr,IEr,REr,zEr,XEr,_3,ZEr,llt,ult,QC,KEr,JEr,QEr,ekr,tkr,rkr,ikr,nkr,clt,okr,soe,skr,e8,lkr,t8,ckr,fkr,sO,gkr,Loe,Rot,flt,hlt,dlt,mkr,plt,qot,vlt,glt,xkr,bkr,mlt,ylt,xlt,blt,_kr,Vq,wkr,Tkr,Akr,_lt,wlt,Tlt,Mkr,Oot,Skr,iT,Ekr,kkr,Ckr,Not,Dkr,Fkr,Lkr,Pkr,m3,Poe,Uot,Slt,jae,y3,Elt,loe,Bkr,Gq,$C,x3,uoe,klt,qkr,Okr,Nkr,coe,Gkr,Hkr,jkr,$kr,Wkr,foe,Ykr,Zkr,Llt=Ci(()=>{Lat();Flt={};Got="6.11.2";a0={frame(e,t,r,i){let n=i||window,a=n.requestAnimationFrame(s=>{o(),t(s)}),{unsubscribe:o}=jk(e.signal,"abort",()=>{o(),n.cancelAnimationFrame(a),r(new W6(e.signal.reason))},!1)},frameAsync(e,t){return new Promise((r,i)=>{this.frame(e,r,i,t)})},getImageData(e,t=0){return this.getImageCanvasContext(e).getImageData(-t,-t,e.width+2*t,e.height+2*t)},getImageCanvasContext(e){let t;if(RB()&&!rne())t=new OffscreenCanvas(e.width,e.height).getContext("2d",{willReadFrequently:!0});else{let r=window.document.createElement("canvas");r.width=e.width,r.height=e.height,t=r.getContext("2d",{willReadFrequently:!0})}if(!t)throw Error("failed to create canvas 2d context");return t.drawImage(e,0,0,e.width,e.height),t},resolveURL(e){return Cq||(Cq=document.createElement("a")),Cq.href=e,Cq.href},get hardwareConcurrency(){return typeof navigator<"u"&&navigator.hardwareConcurrency||4},get prefersReducedMotion(){return Mae===void 0?matchMedia?(qC!=null||(qC=matchMedia("(prefers-reduced-motion: reduce)")),qC.matches):!1:Mae},set prefersReducedMotion(e){Mae=e}},iO=new class{constructor(){this._frozenAt=null}getCurrentTime(){return this._frozenAt===null?performance.now():this._frozenAt}setNow(e){this._frozenAt=e}restoreNow(){this._frozenAt=null}isFrozen(){return this._frozenAt!==null}};D6r=new Set("a.abbr.b.bdi.bdo.br.cite.code.del.div.em.i.img.ins.kbd.li.mark.ol.p.q.s.samp.small.span.strong.sub.sup.time.u.ul.var.wbr".split(".")),F6r=new Set(["alt","class","datetime","dir","height","href","hreflang","lang","referrerpolicy","rel","role","src","target","title","translate","type","width"]),L6r=new Set(["href","src"]),P6r=new Set(["http:","https:","mailto:"]);Yn=(Ko=class{static create(t,r,i){let n=window.document.createElement(t);return r!==void 0&&(n.className=r),i&&i.appendChild(n),n}static createNS(t,r){return window.document.createElementNS(t,r)}static disableDrag(){Ko.docStyle&&Ko.selectProp&&(Ko.userSelect=Ko.docStyle[Ko.selectProp],Ko.docStyle[Ko.selectProp]="none")}static enableDrag(){Ko.docStyle&&Ko.selectProp&&(Ko.docStyle[Ko.selectProp]=Ko.userSelect)}static suppressClickInternal(t){t.preventDefault(),t.stopPropagation(),window.removeEventListener("click",Ko.suppressClickInternal,!0)}static suppressClick(){window.addEventListener("click",Ko.suppressClickInternal,!0),window.setTimeout(()=>{window.removeEventListener("click",Ko.suppressClickInternal,!0)},0)}static getScale(t){let r=t.getBoundingClientRect();return{x:r.width/t.offsetWidth||1,y:r.height/t.offsetHeight||1,boundingClientRect:r}}static getPoint(t,r,i){let n=r.boundingClientRect;return new tr((i.clientX-n.left)/r.x-t.clientLeft,(i.clientY-n.top)/r.y-t.clientTop)}static mousePos(t,r){let i=Ko.getScale(t);return Ko.getPoint(t,i,r)}static touchPos(t,r){let i=[],n=Ko.getScale(t);for(let a of r)i.push(Ko.getPoint(t,n,a));return i}static sanitize(t){let r=new DOMParser().parseFromString(t,"text/html").body,{querySelectorAll:i,remove:n}=Sae();for(let o of Array.from(i.call(r,"*")))Ko.isAllowedElement(o)?Ko.removeDisallowedAttributes(o):n.call(o);let a=document.createDocumentFragment();return a.append(...r.childNodes),a}static isAllowedElement(t){let{namespaceURI:r,localName:i}=Sae();return r.call(t)==="http://www.w3.org/1999/xhtml"&&D6r.has(i.call(t))}static removeDisallowedAttributes(t){let{getAttributeNames:r,getAttribute:i,removeAttribute:n}=Sae();for(let a of r.call(t))Ko.isAllowedAttribute(a,i.call(t,a))||n.call(t,a)}static isAllowedAttribute(t,r){if(!F6r.has(t)&&!t.startsWith("aria-"))return!1;if(!L6r.has(t))return!0;try{return P6r.has(new URL(r,"https://maplibre.invalid/").protocol)}catch(i){return!1}}},Ko.docStyle=typeof window<"u"&&((t=window.document)==null?void 0:t.documentElement.style),Ko.selectProp=!Ko.docStyle||"userSelect"in Ko.docStyle?"userSelect":"webkitUserSelect",Ko);(function(e){let t,r,i,n;e.resetRequestQueue=()=>{t=[],r=0,i=0,n={}},e.addThrottleControl=f=>{let h=i++;return n[h]=f,h},e.removeThrottleControl=f=>{delete n[f],u()};let a=()=>{for(let f of Object.keys(n))if(n[f]())return!0;return!1};function o(f,h,p,d,v=!0,m){return Yi(this,null,function*(){let g=yield f.transformRequest(h,p);return YB(d.signal),Pv.getImage(g,d,v,m)})}e.transformAndGetImage=o,e.getImage=(f,h,p=!0,d)=>new Promise((v,m)=>{f.headers||(f.headers={}),f.headers.accept="image/webp,*/*",cn(f,{type:"image"});let g={abortController:h,requestParameters:f,supportImageRefresh:p,imageBitmapOptions:d,state:"queued",onError:w=>{m(w)},onSuccess:w=>{v(w)}};t.push(g),u()});let s=(f,h)=>typeof createImageBitmap=="function"?Vtt(f,h):Gtt(f),l=f=>Yi(null,null,function*(){f.state="running";let{requestParameters:h,supportImageRefresh:p,imageBitmapOptions:d,onError:v,onSuccess:m,abortController:g}=f,w=p===!1&&!d&&!i3(self)&&!vne(h.url)&&(!h.headers||Object.keys(h.headers).reduce((b,S)=>b&&S==="accept",!0));r++;let _=w?c(h,g):vC(h,g);try{let b=yield _;delete f.abortController,f.state="completed",b.data instanceof HTMLImageElement||dx(b.data)?m(b):!b.data||b.data.byteLength===0?m({data:null,cacheControl:b.cacheControl,expires:b.expires}):m({data:yield s(b.data,d),cacheControl:b.cacheControl,expires:b.expires})}catch(b){delete f.abortController,v(qc(b))}finally{r--,u()}}),u=()=>{let f=a()?r0.MAX_PARALLEL_IMAGE_REQUESTS_PER_FRAME:r0.MAX_PARALLEL_IMAGE_REQUESTS;for(let h=r;h0;h++){let p=t.shift();if(p.abortController.signal.aborted){h--;continue}l(p)}},c=(f,h)=>new Promise((p,d)=>{let v=new Image,m=f.url,g=f.credentials;g&&g==="include"?v.crossOrigin="use-credentials":(g&&g==="same-origin"||!mne(m))&&(v.crossOrigin="anonymous"),h.signal.addEventListener("abort",()=>{v.src="",d(new W6(h.signal.reason))}),v.fetchPriority="high",v.onload=()=>{v.onerror=v.onload=null,p({data:v})},v.onerror=()=>{v.onerror=v.onload=null,!h.signal.aborted&&d(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."))},v.src=m})})(Pv||(Pv={})),Pv.resetRequestQueue();I6r=class{constructor(e){this._transformRequestFn=e!=null?e:null}transformRequest(e,t){return this._transformRequestFn&&this._transformRequestFn(e,t)||{url:e}}setTransformRequest(e){this._transformRequestFn=e}},pc=class extends i0{},kn=class extends pc{},$ae=class extends pc{constructor(e={}){super("style.load",e)}},cp=class extends pc{constructor(e,t={}){super(e,t),this.dataType="style"}},qs=class extends pc{constructor(e,t={}){super(e,t),this.dataType="source"}},n0=class extends pc{preventDefault(){this._defaultPrevented=!0}get defaultPrevented(){return this._defaultPrevented}constructor(e,t,r,i={}){r=r instanceof MouseEvent?r:new MouseEvent(e,r);let n=Yn.mousePos(t.getCanvas(),r),a=t.unproject(n);super(e,cn({point:n,lngLat:a,originalEvent:r},i)),this._defaultPrevented=!1,this.target=t}},YC=class extends pc{preventDefault(){this._defaultPrevented=!0}get defaultPrevented(){return this._defaultPrevented}constructor(e,t,r){let i=e==="touchend"?r.changedTouches:r.touches,n=Yn.touchPos(t.getCanvasContainer(),i),a=n.map(l=>t.unproject(l)),o=n.reduce((l,u,c,f)=>l.add(u.div(f.length)),new tr(0,0)),s=t.unproject(o);super(e,{points:n,point:o,lngLats:a,lngLat:s,originalEvent:r}),this._defaultPrevented=!1}},jot=class extends pc{preventDefault(){this._defaultPrevented=!0}get defaultPrevented(){return this._defaultPrevented}constructor(e,t){super("wheel",{originalEvent:t}),this._defaultPrevented=!1}},Wae=class extends pc{},$ot=class extends pc{constructor(e={}){super("terrain",e)}},Wot=class extends pc{constructor(e={}){super("projectiontransition",e)}},Hq=class extends pc{},Yot=class extends pc{constructor(e={}){super("styleimagemissing",e)}};H6r=class extends lu{constructor(){super(),this.images={},this.updateVersion=0,this.loaded=!1,this.requestors=[],this.missingImageResolver=null,this._spriteImagesIds={},this._imagesIds=null,this._renderCallbacksDispatchedThisFrame={}}destroy(){for(let e of Object.keys(this.images))this.removeImage(e);this._spriteImagesIds={}}isLoaded(){return this.loaded}setLoaded(e){if(this.loaded!==e&&(this.loaded=e,e)){for(let{ids:t,promiseResolve:r}of this.requestors)r(this._getImagesForIds(t));this.requestors=[]}}getImage(e){let t=this.images[e];if(t&&!t.data&&t.spriteData){let r=t.spriteData;t.data=new Ss({width:r.width,height:r.height},r.context.getImageData(r.x,r.y,r.width,r.height).data),t.spriteData=null}return t}addImage(e,t){if(this.images[e])throw Error(`Image id ${e} already exist, use updateImage instead`);this._validate(e,t)&&(this.images[e]=t,this._imagesIds=null,t.isWebGLImage&&this.updateImage(e,t,!1))}_validate(e,t){let r=!0,i=t.data||t.spriteData;return this._validateStretch(t.stretchX,i==null?void 0:i.width)||(this.fire(new An(Error(`Image "${e}" has invalid "stretchX" value`))),r=!1),this._validateStretch(t.stretchY,i==null?void 0:i.height)||(this.fire(new An(Error(`Image "${e}" has invalid "stretchY" value`))),r=!1),this._validateContent(t.content,t)||(this.fire(new An(Error(`Image "${e}" has invalid "content" value`))),r=!1),r}_validateStretch(e,t){if(!e)return!0;let r=0;for(let i of e){if(i[0]=e[1]}updateImage(e,t,r=!0){var n;let i=this.images[e];if(r){let a=i.data||i.spriteData;if(a.width!==t.data.width||a.height!==t.data.height)throw Error(`size mismatch between old image (${a.width}x${a.height}) and new image (${t.data.width}x${t.data.height}).`)}t.version=((n=i.version)!=null?n:0)+1,this.images[e]=t,this.updateVersion++}removeImage(e){var r;let t=this.images[e];t&&(delete this.images[e],this._imagesIds=null,(r=t.userImage)!=null&&r.onRemove&&t.userImage.onRemove())}listImages(){var e;return(e=this._imagesIds)!=null||(this._imagesIds=Object.keys(this.images)),this._imagesIds}_getSpriteImageId(e,t){return e==="default"?t:`${e}:${t}`}setSpriteImages(e,t){var o;let r=(o=this._spriteImagesIds[e])!=null?o:[],i=[];for(let s in t){let l=this._getSpriteImageId(e,s);i.push(l),l in this.images?this.updateImage(l,t[s],!1):this.addImage(l,t[s])}let n=new Set(i),a=r.filter(s=>!n.has(s));for(let s of a)this.removeImage(s);return this._spriteImagesIds[e]=i,{loaded:i,removed:a}}removeSpriteImages(e){var r;let t=(r=this._spriteImagesIds[e])!=null?r:[];for(let i of t)this.removeImage(i);return delete this._spriteImagesIds[e],t}removeAllSpriteImages(){let e=Object.values(this._spriteImagesIds).flat();for(let t of e)this.removeImage(t);return this._spriteImagesIds={},e}setMissingImageResolver(e){this.missingImageResolver=e}getImages(e){return new Promise((t,r)=>{let i=!0;if(!this.isLoaded())for(let n of e)this.images[n]||(i=!1);this.isLoaded()||i?t(this._getImagesForIds(e)):this.requestors.push({ids:e,promiseResolve:t})})}_getImagesForIds(e){return Yi(this,null,function*(){var n;let t=new Set(e.filter(a=>!this.getImage(a))),r=this.missingImageResolver;r&&(yield Promise.allSettled(Array.from(t,a=>r(a))));let i={};for(let a of e){let o=this.getImage(a);o&&(t.delete(a),i[a]={data:o.data.clone(),pixelRatio:o.pixelRatio,sdf:o.sdf,version:o.version,stretchX:o.stretchX,stretchY:o.stretchY,content:o.content,textFitWidth:o.textFitWidth,textFitHeight:o.textFitHeight,hasRenderCallback:!!((n=o.userImage)!=null&&n.render),isWebGLImage:o.isWebGLImage})}for(let a of t)this.fire(new Yot({id:a})),Fa(`Image "${a}" could not be loaded. Please make sure you have added the image before it is needed with map.addImage(), resolved it with map.setMissingStyleImageResolver(), or included it in a "sprite" property in your style.`);return i})}beginFrame(){this._renderCallbacksDispatchedThisFrame={}}dispatchRenderCallbacks(e){for(let t of e){if(this._renderCallbacksDispatchedThisFrame[t])continue;this._renderCallbacksDispatchedThisFrame[t]=!0;let r=this.getImage(t);r||Fa(`Image with ID: "${t}" was not found`),Int(r)&&this.updateImage(t,r)}}cloneImages(){let e={};for(let t in this.images){let r=this.images[t];e[t]=_a(dn({},r),{data:r.data?r.data.clone():null})}return e}},j6r=class{constructor(e){this._imageManager=e,this._entries={},this._image=new Ss({width:1,height:1}),this._dirty=!0}destroy(){this._texture&&(this._texture=(this._texture.destroy(),null)),this._entries={},this._image=new Ss({width:1,height:1}),this._dirty=!0}getPixelSize(){let{width:e,height:t}=this._image;return{width:e,height:t}}getPattern(e){let t=this._imageManager.getImage(e);if(!t)return null;let r=this._entries[e];if((r==null?void 0:r.image)!==t){let i={w:t.data.width+2,h:t.data.height+2,x:0,y:0};this._entries[e]={bin:i,position:new Tq(i,t),image:t}}else if(r.position.version!==t.version)r.position.version=t.version;else return r.position;return this._update(),this._entries[e].position}bind(e){let t=e.gl;this._texture?this._dirty&&(this._dirty=(this._texture.update(this._image),!1)):(this._texture=new wu(e,this._image,t.RGBA),this._dirty=!1),this._texture.bind(t.LINEAR,t.CLAMP_TO_EDGE)}_update(){for(let n in this._entries)this._imageManager.getImage(n)||delete this._entries[n];let e=[];for(let n in this._entries)e.push(this._entries[n].bin);let{w:t,h:r}=rae(e),i=this._image;i.resize({width:t||1,height:r||1});for(let n in this._entries){let{bin:a}=this._entries[n],o=a.x+1,s=a.y+1,l=this._entries[n].image.data,u=l.width,c=l.height;Ss.copy(l,i,{x:0,y:0},{x:o,y:s},{width:u,height:c}),Ss.copy(l,i,{x:0,y:c-1},{x:o,y:s-1},{width:u,height:1}),Ss.copy(l,i,{x:0,y:0},{x:o,y:s+c},{width:u,height:1}),Ss.copy(l,i,{x:u-1,y:0},{x:o-1,y:s},{width:1,height:c}),Ss.copy(l,i,{x:0,y:0},{x:o+u,y:s},{width:1,height:c})}this._dirty=!0}},Yae=1114111,$6r={start:0,end:Yae},W6r=0;Z6r=class{constructor(e){this.requestManager=e,this._faces={},this._registered=new Set}setFontFaces(e){this._unregisterAll(),this._faces={};for(let[t,r]of Object.entries(e!=null?e:{})){let i=Array.isArray(r)?r:[r];this._faces[t]=i.map(n=>this._declareFontFace(t,n)).filter(n=>n!==null)}}hasFontFaces(){return Object.keys(this._faces).length>0}getFontFamily(e,t){return Yi(this,null,function*(){var r,i;for(let n of e.split(","))for(let a of(r=this._faces[n.trim()])!=null?r:[])if(X6r(a,t)&&((i=a.loaded)!=null||(a.loaded=this._loadFontFace(a)),yield a.loaded))return a.family;return null})}_declareFontFace(e,t){let r=typeof t=="string"?{url:t}:t;if(typeof(r==null?void 0:r.url)!="string")return Fa(`Ignoring the font face declared for "${e}": it has no URL.`),null;let i=`maplibre-gl-font-face-${W6r++}`,n=r["unicode-range"];if(!(n!=null&&n.length))return{url:r.url,ranges:[$6r],family:i};let a=[];for(let o of n){let s=Y6r(o);if(!s){Fa(`Ignoring the unicode range "${o}" of the font face at ${r.url}: it is not a valid range.`);continue}a.push(s)}return a.length?{url:r.url,ranges:a,family:i}:null}_loadFontFace(e){return Yi(this,null,function*(){if(typeof FontFace>"u"||typeof document>"u"||!document.fonts)return Fa(`Ignoring the font face at ${e.url}: this environment has no CSS Font Loading API.`),!1;let t;try{return t=new FontFace(e.family,yield this._downloadFontFile(e.url)),Object.values(this._faces).some(r=>r.includes(e))?(document.fonts.add(t),this._registered.add(t),yield t.load(),!0):!1}catch(r){return t&&this._unregister(t),Fa(`Ignoring the font face at ${e.url}: ${qc(r).message}`),!1}})}_downloadFontFile(e){return Yi(this,null,function*(){let t=yield this.requestManager.transformRequest(e,"Glyphs"),r=yield gne(t,new AbortController);if(!(r!=null&&r.data))throw Error(`the response was empty for the font file at ${e}`);return r.data})}_unregister(e){var t;(t=document.fonts)==null||t.delete(e),this._registered.delete(e)}_unregisterAll(){var e;for(let t of this._registered)(e=document.fonts)==null||e.delete(t);this._registered.clear()}destroy(){this._unregisterAll(),this._faces={}}},Xae=1e20,hoe=new Float64Array(256);for(let e=0;e<256;e++){let t=.5-(e/255)**.45454545454545453;hoe[e]=t*Math.abs(t)}hoe[255]=-1e20;K6r=class{constructor({fontSize:e=24,buffer:t=3,radius:r=8,cutoff:i=.25,fontFamily:n="sans-serif",fontWeight:a="normal",fontStyle:o="normal",lang:s=null}={}){this.buffer=t,this.radius=r,this.cutoff=i,this.lang=s;let l=this.size=e+t*4,u=this._createCanvas(l),c=this.ctx=u.getContext("2d",{willReadFrequently:!0});c.font=`${o} ${a} ${e}px ${n}`,c.textBaseline="alphabetic",c.textAlign="left",c.fillStyle="black",this.gridOuter=new Float64Array(l*l),this.gridInner=new Float64Array(l*l),this.f=new Float64Array(l),this.z=new Float64Array(l+1),this.v=new Uint16Array(l)}_createCanvas(e){if(typeof OffscreenCanvas<"u")return new OffscreenCanvas(e,e);let t=document.createElement("canvas");return t.width=t.height=e,t}draw(e){let{width:t,actualBoundingBoxAscent:r,actualBoundingBoxDescent:i,actualBoundingBoxLeft:n,actualBoundingBoxRight:a}=this.ctx.measureText(e),o=Math.ceil(r),s=Math.floor(-n),l=Math.max(0,Math.min(this.size-this.buffer,Math.ceil(a)-s)),u=Math.max(0,Math.min(this.size-this.buffer,o+Math.ceil(i))),c=l+2*this.buffer,f=u+2*this.buffer,h=Math.max(c*f,0),p=new Uint8ClampedArray(h),d={data:p,width:c,height:f,glyphWidth:l,glyphHeight:u,glyphTop:o,glyphLeft:s,glyphAdvance:t};if(l===0||u===0)return d;let{ctx:v,buffer:m,gridInner:g,gridOuter:w}=this;this.lang&&(v.lang=this.lang),v.clearRect(m,m,l,u),v.fillText(e,m-s,m+o);let _=v.getImageData(m,m,l,u);w.fill(Xae,0,h),g.fill(0,0,h);let b=3;for(let A=0;A{let r=new K6r(e);return r.buffer=t,r},eTr=class{constructor(e,t,r,i=Q6r){this.requestManager=e,this.localIdeographFontFamily=t,this.entries={},this.lang=r,this.fontFaceManager=new Z6r(e),this.createRasterizer=i}setURL(e){this.url=e}setFontFaces(e){this.fontFaceManager.setFontFaces(e),this.entries={}}getGlyphs(e){return Yi(this,null,function*(){var n;let t=[];for(let a in e)for(let o in e[a])for(let s of e[a][o])t.push(this._getAndCacheGlyphsPromise(a,s,o));let r=yield Promise.all(t),i={};for(let{stack:a,id:o,variant:s,glyph:l}of r)i[a]||(i[a]={}),(n=i[a])[s]||(n[s]={}),i[a][s][o]=l&&{id:l.id,bitmap:l.bitmap.clone(),metrics:l.metrics};return i})}_getAndCacheGlyphsPromise(e,t,r){return Yi(this,null,function*(){var l,u,c;(u=(l=this.entries)[e])!=null||(l[e]={glyphs:{default:{}},requests:{},ranges:{}});let i=this.entries[e],n=(c=i.glyphs)[r]||(c[r]={}),a=n[t];if(a!==void 0)return{stack:e,id:t,variant:r,glyph:a};if(r!=="default")return n[t]=null,{stack:e,id:t,variant:r,glyph:null};let o=t.codePointAt(0),s=this.fontFaceManager.hasFontFaces()?yield this.fontFaceManager.getFontFamily(e,o):null;return s?(a=n[t]=yield this._drawGlyph(i,e,t,s),{stack:e,id:t,variant:r,glyph:a}):!this.url||EC(t)||this._charUsesLocalIdeographFontFamily(o)?(a=n[t]=yield this._drawGlyph(i,e,t),{stack:e,id:t,variant:r,glyph:a}):_a(dn({},yield this._downloadAndCacheRangePromise(e,t)),{variant:r})})}_downloadAndCacheRangePromise(e,t){return Yi(this,null,function*(){var a;let r=t.codePointAt(0),i=this.entries[e],n=Math.floor(r/256);if(i.ranges[n])return{stack:e,id:t,glyph:null};(a=i.requests)[n]||(a[n]=this._loadGlyphRange(e,n));try{let o=yield i.requests[n];for(let s in o)i.glyphs.default[String.fromCodePoint(+s)]=o[+s];return i.ranges[n]=!0,{stack:e,id:t,glyph:o[r]||null}}catch(o){let s=i.glyphs.default[t]=yield this._drawGlyph(i,e,t);return this._warnOnMissingGlyphRange(s,n,r,qc(o)),{stack:e,id:t,glyph:s}}})}_loadGlyphRange(e,t){return Yi(this,null,function*(){let r=t*256,i=r+255,n=yield this.requestManager.transformRequest(this.url.replace("{fontstack}",e).replace("{range}",`${r}-${i}`),"Glyphs"),a=yield gne(n,new AbortController);if(!(a!=null&&a.data))throw Error(`Could not load glyph range. range: ${t}, ${r}-${i}`);let o={};for(let s of Pnt(a.data))o[s.id]=s;return o})}_warnOnMissingGlyphRange(e,t,r,i){let n=t*256,a=n+255,o=r.toString(16).padStart(4,"0").toUpperCase();Fa(`Unable to load glyph range ${t}, ${n}-${a}. Rendering codepoint U+${o} locally instead. ${i}`)}_charUsesLocalIdeographFontFamily(e){return!!this.localIdeographFontFamily&&Ant(e)}_drawGlyph(e,t,r,i){return Yi(this,null,function*(){let n=(yield this._getTinySDF(e,t,r,i)).draw(r),a=new RegExp("^\\p{gc=Cf}+$","u").test(r);return{id:r.codePointAt(0),bitmap:new mq({width:n.width||60,height:n.height||60},n.data),metrics:{width:a?0:n.glyphWidth/2||24,height:n.glyphHeight/2||24,left:n.glyphLeft/2+.5||0,top:n.glyphTop/2-27.5||-8,advance:a?0:n.glyphAdvance/2||24,isDoubleResolution:!0}}})}_getTinySDF(e,t,r,i){var l,u,c,f;let n=EC(r);if(i){let h=n?"clusterTinySDFs":"fontFaceTinySDFs";return(l=e[h])!=null||(e[h]={}),(u=e[h])[i]||(u[i]=this._createTinySDF(i,!1,n?3:1)),e[h][i]}let a=t===J6r&&this.localIdeographFontFamily!==""&&this._charUsesLocalIdeographFontFamily(r.codePointAt(0)),o=a?this.localIdeographFontFamily:t;if(n)return(c=e.clusterTinySDFs)!=null||(e.clusterTinySDFs={}),(f=e.clusterTinySDFs)[o]||(f[o]=this._createTinySDF(o,!0,3)),e.clusterTinySDFs[o];let s=a?"ideographTinySDF":"tinySDF";return e[s]||(e[s]=this._createTinySDF(o)),e[s]}_createTinySDF(e,t=!0,r=1){return Yi(this,null,function*(){var s;let i=e?e.split(","):[];i.push("sans-serif");let n=i.map(l=>/[-\w]+/.test(l)?l:`'${CSS.escape(l)}'`).join(","),a=t?this._fontWeight(i[0]):void 0,o=t?this._fontStyle(i[0]):"normal";if(typeof document<"u"&&((s=document.fonts)!=null&&s.load))try{yield document.fonts.load(`${o} ${a||"normal"} 48px ${n}`)}catch(l){Fa(`Failed to load font "${n}": ${qc(l).message}`)}return this.createRasterizer({fontSize:48,buffer:Math.max(6,Math.ceil(48*(r-1)/4)),radius:16,cutoff:.25,fontFamily:n,fontWeight:a,fontStyle:o,lang:this.lang},6)})}_fontStyle(e){return/italic/i.test(e)?"italic":/oblique/i.test(e)?"oblique":"normal"}_fontWeight(e){let t={thin:100,hairline:100,"extra light":200,"ultra light":200,light:300,normal:400,regular:400,medium:500,semibold:600,demibold:600,bold:700,"extra bold":800,"ultra bold":800,black:900,heavy:900,"extra black":950,"ultra black":950},r;for(let[i,n]of Object.entries(t))RegExp(`\\b${i}\\b`,"i").test(e)&&(r=`${n}`);return r}destroy(){for(let e in this.entries){let t=this.entries[e];t.tinySDF=null,t.ideographTinySDF=null,t.fontFaceTinySDFs={},t.glyphs={default:{}},t.requests={},t.ranges={}}this.entries={},this.fontFaceManager.destroy()}},tTr=()=>Uat||(Uat=new hc({anchor:new Pi(_r.light.anchor,"anchor"),position:new Pi(_r.light.position,"position"),color:new Pi(_r.light.color,"color"),intensity:new Pi(_r.light.intensity,"intensity")})),rTr=class extends lu{constructor(e,t){super(),this._transitionable=new TC(tTr(),"light",t),this.setLight(e),this._transitioning=this._transitionable.untransitioned()}getLight(){return this._transitionable.serialize()}getCartesianPosition(){return Ott(this.properties.get("position"))}setLight(e,t={}){this._validate(ph.light,e,t)||this._transitionable.setValues(e)}updateTransitions(e){this._transitioning=this._transitionable.transitioned(e,this._transitioning)}hasTransition(){return this._transitioning.hasTransition()}applyGlobalStateChange(e,t,r){this._transitioning=this._transitionable.applyGlobalStateChange(e,t,this._transitioning,r)}recalculate(e){this.properties=this._transitioning.possiblyEvaluate(e)}_validate(e,t,r){return Z6(this,e,{value:t},r)}},iTr=()=>Vat||(Vat=new hc({"sky-color":new Pi(_r.sky["sky-color"],"sky-color"),"horizon-color":new Pi(_r.sky["horizon-color"],"horizon-color"),"fog-color":new Pi(_r.sky["fog-color"],"fog-color"),"fog-ground-blend":new Pi(_r.sky["fog-ground-blend"],"fog-ground-blend"),"horizon-fog-blend":new Pi(_r.sky["horizon-fog-blend"],"horizon-fog-blend"),"sky-horizon-blend":new Pi(_r.sky["sky-horizon-blend"],"sky-horizon-blend"),"atmosphere-blend":new Pi(_r.sky["atmosphere-blend"],"atmosphere-blend")})),nTr=class extends lu{constructor(e,t){super(),this._transitionable=new TC(iTr(),"sky",t),this.setSky(e),this._transitioning=this._transitionable.untransitioned(),this.recalculate(new Io(0))}setSky(e,t={}){return!this._validate(ph.sky,e,t)&&(e||(e={"sky-color":"transparent","horizon-color":"transparent","fog-color":"transparent","fog-ground-blend":1,"atmosphere-blend":0}),this._transitionable.setValues(e),!0)}getSky(){return this._transitionable.serialize()}updateTransitions(e){this._transitioning=this._transitionable.transitioned(e,this._transitioning)}hasTransition(){return this._transitioning.hasTransition()}applyGlobalStateChange(e,t,r){this._transitioning=this._transitionable.applyGlobalStateChange(e,t,this._transitioning,r)}recalculate(e){this.properties=this._transitioning.possiblyEvaluate(e)}_validate(e,t,r={}){return Z6(this,e,{value:t},r)}calculateFogBlendOpacity(e){return e<60?0:e<70?(e-60)/10:1}},aTr=class{constructor(e,t){this.width=e,this.height=t,this.nextRow=0,this.data=new Uint8Array(this.width*this.height),this.dashEntry={}}getDash(e,t){var i;let r=e.join(",")+String(t);return(i=this.dashEntry)[r]||(i[r]=this.addDash(e,t)),this.dashEntry[r]}getDashRanges(e,t,r){let i=e.length%2==1,n=[],a=i?-e[e.length-1]*r:0,o=e[0]*r,s=!0;n.push({left:a,right:o,isDash:s,zeroLength:e[0]===0});let l=e[0];for(let u=1;u1&&(l=e[++s]);let c=Math.abs(u-l.left),f=Math.abs(u-l.right),h=Math.min(c,f),p,d=n/r*(i+1);if(l.isDash){let v=i-Math.abs(d);p=Math.sqrt(h*h+v*v)}else p=i-Math.sqrt(h*h+d*d);this.data[o+u]=Math.max(0,Math.min(255,p+128))}}}addRegularDash(e){for(let o=e.length-1;o>=0;--o){let s=e[o],l=e[o+1];s.zeroLength?e.splice(o,1):(l==null?void 0:l.isDash)===s.isDash&&(l.left=s.left,e.splice(o,1))}let t=e[0],r=e[e.length-1];t.isDash===r.isDash&&(t.left=r.left-this.width,r.right=t.right+this.width);let i=this.width*this.nextRow,n=0,a=e[n];for(let o=0;o1&&(a=e[++n]);let s=Math.abs(o-a.left),l=Math.abs(o-a.right),u=Math.min(s,l),c=a.isDash?u:-u;this.data[i+o]=Math.max(0,Math.min(255,c+128))}}addDash(e,t){let r=t?7:0,i=2*r+1;if(this.nextRow+i>this.height)return Fa("LineAtlas out of space"),null;let n=0;for(let o of e)n+=o;if(n!==0){let o=this.width/n,s=this.getDashRanges(e,this.width,o);t?this.addRoundDash(s,o,r):this.addRegularDash(s)}let a={y:this.nextRow+r,height:2*r,width:n};return this.nextRow+=i,this.dirty=!0,a}bind(e){let t=e.gl;this.texture?(t.bindTexture(t.TEXTURE_2D,this.texture),this.dirty&&(this.dirty=!1,t.texSubImage2D(t.TEXTURE_2D,0,0,0,this.width,this.height,t.ALPHA,t.UNSIGNED_BYTE,this.data))):(this.texture=t.createTexture(),t.bindTexture(t.TEXTURE_2D,this.texture),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_S,t.REPEAT),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_T,t.REPEAT),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,t.LINEAR),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,t.LINEAR),t.texImage2D(t.TEXTURE_2D,0,t.ALPHA,this.width,this.height,0,t.ALPHA,t.UNSIGNED_BYTE,this.data))}};doe="maplibre_preloaded_worker_pool",nO=class Kot{constructor(){this.active={},this.workersPromise=null}acquire(t){return Yi(this,null,function*(){if(this.active[t]=!0,!this.workersPromise){let r=[];for(;r.length{for(let n of i)n.terminate()})}}isPreloaded(){return!!this.active[doe]}numActive(){return Object.keys(this.active).length}},fTr=Math.floor(a0.hardwareConcurrency/2);nO.workerCount=Utt(globalThis)?Math.max(Math.min(fTr,3),1):1;Jot=class extends lu{constructor(e,t){super(),this.workerPool=e,this.actors=[],this.currentActor=0,this.id=t,this.removed=!1,this.workerErrorSubscriptions=[],this.actorsPromise=this.initActors(t)}initActors(e){return Yi(this,null,function*(){let t=yield this.workerPool.acquire(e);if(this.removed)return[];if(this.actors=t.map((r,i)=>{this.workerErrorSubscriptions.push(jk(r,"error",()=>{this.fire(new An(Error("Worker failed to load. Check that the worker URL is correct.")))},!1));let n=new Qnt(r,e);return n.name=`Worker ${i}`,n}),!this.actors.length)throw Error("No actors found");return this.actors})}broadcast(e,t){return Yi(this,null,function*(){let r=yield this.actorsPromise;return Promise.all(r.map(i=>i.sendAsync({type:e,data:t})))})}getActor(){return Yi(this,null,function*(){let e=yield this.actorsPromise;return this.currentActor=(this.currentActor+1)%e.length,e[this.currentActor]})}waitForInitComplete(){return Yi(this,null,function*(){this.actors.length===0&&(yield this.actorsPromise)})}getReadyActor(){return this.currentActor=(this.currentActor+1)%this.actors.length,this.actors[this.currentActor]}remove(e=!0){this.removed=!0;for(let t of this.actors)t.remove();for(let t of this.workerErrorSubscriptions)t.unsubscribe();this.actors=[],this.workerErrorSubscriptions=[],this.setEventedParent(null),e&&this.workerPool.release(this.id)}registerMessageHandler(e,t){return Yi(this,null,function*(){let r=yield this.actorsPromise;for(let i of r)i.registerMessageHandler(e,t)})}unregisterMessageHandler(e){return Yi(this,null,function*(){let t=yield this.actorsPromise;for(let r of t)r.unregisterMessageHandler(e)})}};Iv=class Gm{constructor(t,r){t&&(r?this.setSouthWest(t).setNorthEast(r):Array.isArray(t)&&(t.length===4?this.setSouthWest([t[0],t[1]]).setNorthEast([t[2],t[3]]):this.setSouthWest(t[0]).setNorthEast(t[1])))}setNorthEast(t){return this._ne=t instanceof pn?new pn(t.lng,t.lat):pn.convert(t),this}setSouthWest(t){return this._sw=t instanceof pn?new pn(t.lng,t.lat):pn.convert(t),this}extend(t){let r=this._sw,i=this._ne,n,a;if(t instanceof pn)n=t,a=t;else if(t instanceof Gm){if(n=t._sw,a=t._ne,!n||!a)return this}else{if(Array.isArray(t)){if(t.length===4||t.every(Array.isArray)){let o=t;return this.extend(Gm.convert(o))}{let o=t;return this.extend(pn.convert(o))}}return t&&("lng"in t||"lon"in t)&&"lat"in t?this.extend(pn.convert(t)):this}return!r&&!i?(this._sw=new pn(n.lng,n.lat),this._ne=new pn(a.lng,a.lat)):(r.lng=Math.min(n.lng,r.lng),r.lat=Math.min(n.lat,r.lat),i.lng=Math.max(a.lng,i.lng),i.lat=Math.max(a.lat,i.lat)),this}getCenter(){return new pn((this._sw.lng+this._ne.lng)/2,(this._sw.lat+this._ne.lat)/2)}getSouthWest(){return this._sw}getNorthEast(){return this._ne}getNorthWest(){return new pn(this.getWest(),this.getNorth())}getSouthEast(){return new pn(this.getEast(),this.getSouth())}getWest(){return this._sw.lng}getSouth(){return this._sw.lat}getEast(){return this._ne.lng}getNorth(){return this._ne.lat}toArray(){return[this._sw.toArray(),this._ne.toArray()]}toString(){return`LngLatBounds(${this._sw.toString()}, ${this._ne.toString()})`}isEmpty(){return!(this._sw&&this._ne)}contains(t){let{lng:r,lat:i}=pn.convert(t),n=this._sw.lat<=i&&i<=this._ne.lat,a=this._sw.lng<=r&&r<=this._ne.lng;return this._sw.lng>this._ne.lng&&(a=this._sw.lng>=r&&r>=this._ne.lng),n&&a}intersects(t){if(t=Gm.convert(t),!(t.getNorth()>=this.getSouth()&&t.getSouth()<=this.getNorth()))return!1;let r=Math.abs(this.getEast()-this.getWest()),i=Math.abs(t.getEast()-t.getWest());if(r>=360||i>=360)return!0;let n=j0(this.getWest(),-180,180),a=j0(this.getEast(),-180,180),o=j0(t.getWest(),-180,180),s=j0(t.getEast(),-180,180),l=n>a,u=o>s;return l&&u?!0:l?s>=n||o<=a:u?a>=o||n<=s:o<=a&&s>=n}static convert(t){return t instanceof Gm||!t?t:new Gm(t)}static fromLngLat(t,r=0){let i=360*r/40075017,n=i/Math.cos(Math.PI/180*t.lat);return new Gm(new pn(t.lng-n,t.lat-i),new pn(t.lng+n,t.lat+i))}adjustAntiMeridian(){let t=new pn(this._sw.lng,this._sw.lat),r=new pn(this._ne.lng,this._ne.lat);return t.lng>r.lng?new Gm(t,new pn(r.lng+360,r.lat)):new Gm(t,r)}},rst=class{constructor(e,t,r){this.bounds=Iv.convert(this.validateBounds(e)),this.minzoom=t||0,this.maxzoom=r||24}validateBounds(e){return!Array.isArray(e)||e.length!==4?[-180,-90,180,90]:[Math.max(-180,e[0]),Math.max(-90,e[1]),Math.min(180,e[2]),Math.min(90,e[3])]}contains(e){let t=2**e.z,r={minX:Math.floor(d3(this.bounds.getWest())*t),minY:Math.floor(p3(this.bounds.getNorth())*t),maxX:Math.ceil(d3(this.bounds.getEast())*t),maxY:Math.ceil(p3(this.bounds.getSouth())*t)};return e.x>=r.minX&&e.x=r.minY&&e.y{this.tiles=e,this._options.tiles=e}),this}setUrl(e){return this.setSourceProperty(()=>{this.url=e,this._options.url=e}),this}onRemove(){this._tileJSONRequest&&(this._tileJSONRequest=(this._tileJSONRequest.abort(),null))}serialize(){return cn({},this._options)}loadTile(e){return Yi(this,null,function*(){let t=e.tileID.canonical.url(this.tiles,this.map.getPixelRatio(),this.scheme),r={request:yield this.map._requestManager.transformRequest(t,"Tile"),uid:e.uid,tileID:e.tileID,zoom:e.tileID.overscaledZ,tileSize:this.tileSize*e.tileID.overscaleFactor(),type:this.type,source:this.id,pixelRatio:this.map.getPixelRatio(),showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId,subdivisionGranularity:this.map.style.projection.subdivisionGranularity,encoding:this.encoding,overzoomParameters:yield this._getOverzoomParameters(e),etag:e.etag};if(r.request.collectResourceTiming=this._collectResourceTiming,yield this.dispatcher.waitForInitComplete(),e.aborted)return;let i="RT";if(!e.actor||e.state==="expired")e.actor=this.dispatcher.getReadyActor(),i="LT";else if(e.state==="loading")return new Promise((n,a)=>{e.reloadPromise={resolve:n,reject:a}});e.abortController=new AbortController;try{let n=yield e.actor.sendAsync({type:i,data:r},e.abortController);if(delete e.abortController,e.aborted)return;this._afterTileLoadWorkerResponse(e,n);let a={};return n!=null&&n.etagUnmodified&&(a.unmodified=!0),a}catch(n){if(delete e.abortController,e.aborted||qm(n))return;if(n&&n.status!==404)throw n;this._afterTileLoadWorkerResponse(e,null)}})}_getOverzoomParameters(e){return Yi(this,null,function*(){if(e.tileID.canonical.z<=this.maxzoom||this.map._zoomLevelsToOverscale===void 0)return;let t=e.tileID.scaledTo(this.maxzoom).canonical,r=t.url(this.tiles,this.map.getPixelRatio(),this.scheme);return{maxZoomTileID:t,overzoomRequest:yield this.map._requestManager.transformRequest(r,"Tile")}})}_afterTileLoadWorkerResponse(e,t){if(t!=null&&t.resourceTiming&&(e.resourceTiming=t.resourceTiming),t&&this.map._refreshExpiredTiles&&e.setExpiryData(t),e.etag=t==null?void 0:t.etag,e.loadVectorData(t,this.map.painter),e.reloadPromise){let r=e.reloadPromise;e.reloadPromise=null,this.loadTile(e).then(r.resolve).catch(r.reject)}}abortTile(e){return Yi(this,null,function*(){e.abortController&&(e.abortController.abort(),delete e.abortController),e.actor&&(yield e.actor.sendAsync({type:"AT",data:{uid:e.uid,type:this.type,source:this.id}}))})}unloadTile(e){return Yi(this,null,function*(){e.unloadVectorData(),e.actor&&(yield e.actor.sendAsync({type:"RMT",data:{uid:e.uid,type:this.type,source:this.id}}))})}hasTransition(){return!1}},goe=class extends lu{constructor(e,t,r,i){super(),this.id=e,this.dispatcher=r,this.setEventedParent(i),this.type="raster",this.minzoom=0,this.maxzoom=22,this.roundZoom=!0,this.scheme="xyz",this.tileSize=512,this._loaded=!1,this._premultiplyAlpha=!0,this._options=cn({type:"raster"},t),cn(this,$6(t,["url","scheme","tileSize"]))}load(e=!1){return Yi(this,null,function*(){this._loaded=!1,this.fire(new qs("dataloading")),this._tileJSONRequest=new AbortController;try{let t=yield tst(this._options,this.map._requestManager,this._tileJSONRequest,this.map._ownerWindow);this._tileJSONRequest=null,this._loaded=!0,t&&(cn(this,t),t.bounds&&(this.tileBounds=new rst(t.bounds,this.minzoom,this.maxzoom)),this.fire(new qs("data",{sourceDataType:"metadata"})),this.fire(new qs("data",{sourceDataType:"content",sourceDataChanged:e})))}catch(t){this._tileJSONRequest=null,this._loaded=!0,qm(t)||this.fire(new An(qc(t)))}})}loaded(){return this._loaded}onAdd(e){this.map=e,this.load()}onRemove(){this._tileJSONRequest&&(this._tileJSONRequest=(this._tileJSONRequest.abort(),null))}setSourceProperty(e){this._tileJSONRequest&&(this._tileJSONRequest=(this._tileJSONRequest.abort(),null)),e(),this.load(!0)}setTiles(e){return this.setSourceProperty(()=>{this.tiles=e,this._options.tiles=e}),this}setUrl(e){return this.setSourceProperty(()=>{this.url=e,this._options.url=e}),this}serialize(){return cn({},this._options)}setPremultiplyAlpha(e){return this._premultiplyAlpha===e||this.setSourceProperty(()=>{this._premultiplyAlpha=e}),this}hasTile(e){return!this.tileBounds||this.tileBounds.contains(e.canonical)}loadTile(e){return Yi(this,null,function*(){var n;let t=e.tileID.canonical.url(this.tiles,this.map.getPixelRatio(),this.scheme),r=this._premultiplyAlpha,i=r?void 0:{premultiplyAlpha:"none"};e.abortController=new AbortController;try{let a=yield Pv.transformAndGetImage(this.map._requestManager,t,"Tile",e.abortController,this.map._refreshExpiredTiles,i);if(delete e.abortController,e.aborted){e.state="unloaded";return}if(a){this.map._refreshExpiredTiles&&(a.cacheControl||a.expires)&&e.setExpiryData({cacheControl:a.cacheControl,expires:a.expires});let o=this.map.painter.context,s=o.gl,l=(n=a.data)!=null?n:new Ss({width:1,height:1},new Uint8Array(4));e.texture=this.map.painter.getTileTexture(l.width),e.texture?e.texture.update(l,{useMipmap:!0,premultiply:r}):(e.texture=new wu(o,l,s.RGBA,{useMipmap:!0,premultiply:r}),e.texture.bind(s.LINEAR,s.CLAMP_TO_EDGE,s.LINEAR_MIPMAP_NEAREST)),e.state="loaded"}}catch(a){if(delete e.abortController,e.aborted)e.state="unloaded";else if(a)throw e.state="errored",a}})}abortTile(e){return Yi(this,null,function*(){e.abortController&&(e.abortController.abort(),delete e.abortController)})}unloadTile(e){return Yi(this,null,function*(){e.texture&&this.map.painter.saveTileTexture(e.texture)})}hasTransition(){return!1}},nst=class extends goe{constructor(e,t,r,i){super(e,t,r,i),this.type="raster-dem",this.maxzoom=22,this._options=cn({type:"raster-dem"},t),this.encoding=t.encoding||"mapbox",this.redFactor=t.redFactor,this.greenFactor=t.greenFactor,this.blueFactor=t.blueFactor,this.baseShift=t.baseShift}loadTile(e){return Yi(this,null,function*(){let t=e.tileID.canonical.url(this.tiles,this.map.getPixelRatio(),this.scheme);e.neighboringTiles=this._getNeighboringTiles(e.tileID),e.abortController=new AbortController;try{let r=yield Pv.transformAndGetImage(this.map._requestManager,t,"Tile",e.abortController,this.map._refreshExpiredTiles,{colorSpaceConversion:"none"});if(delete e.abortController,e.aborted){e.state="unloaded";return}if(r){if(this.map._refreshExpiredTiles&&(r.cacheControl||r.expires)&&e.setExpiryData({cacheControl:r.cacheControl,expires:r.expires}),!r.data){e.state="loaded";return}let i=r.data,n=dx(i)&&RB()?i:yield this.readImageNow(i),a={type:this.type,uid:e.uid,source:this.id,rawImageData:n,encoding:this.encoding,redFactor:this.redFactor,greenFactor:this.greenFactor,blueFactor:this.blueFactor,baseShift:this.baseShift};if(e.actor&&e.state!=="expired"&&e.state!=="reloading")return;yield this.dispatcher.waitForInitComplete(),(!e.actor||e.state==="expired")&&(e.actor=this.dispatcher.getReadyActor()),e.dem=yield e.actor.sendAsync({type:"LDT",data:a}),e.needsHillshadePrepare=!0,e.needsTerrainPrepare=!0,e.needsColorReliefPrepare=!0,e.state="loaded"}}catch(r){if(delete e.abortController,e.aborted)e.state="unloaded";else if(r)throw e.state="errored",r}})}readImageNow(e){return Yi(this,null,function*(){if(typeof VideoFrame<"u"&&rne()){let t=e.width+4,r=e.height+4;try{return new Ss({width:t,height:r},yield Htt(e,-2,-2,t,r))}catch(i){}}return a0.getImageData(e,2)})}_getNeighboringTiles(e){let t=e.canonical,r=2**t.z,i=(t.x-1+r)%r,n=t.x===0?e.wrap-1:e.wrap,a=(t.x+1+r)%r,o=t.x+1===r?e.wrap+1:e.wrap,s={};return s[new Vc(e.overscaledZ,n,t.z,i,t.y).key]={backfilled:!1},s[new Vc(e.overscaledZ,o,t.z,a,t.y).key]={backfilled:!1},t.y>0&&(s[new Vc(e.overscaledZ,n,t.z,i,t.y-1).key]={backfilled:!1},s[new Vc(e.overscaledZ,e.wrap,t.z,t.x,t.y-1).key]={backfilled:!1},s[new Vc(e.overscaledZ,o,t.z,a,t.y-1).key]={backfilled:!1}),t.y+1Hat(t))}}shouldReloadTile(e,{affectedBounds:t}){if(e.state==="loading")return!0;if(e.state==="unloaded")return!1;let{buffer:r,extent:i}=this.workerOptions.geojsonVtOptions,n=kTr(e.tileID.canonical,r/i);for(let a of t)if(n.intersects(a))return!0;return!1}loaded(){return!this._isUpdatingWorker&&!this._hasPendingWorkerUpdate()}loadTile(e){return Yi(this,null,function*(){let t=e.actor?"RT":"LT";e.actor=yield this.actorPromise;let r={type:this.type,uid:e.uid,tileID:e.tileID,zoom:e.tileID.overscaledZ,maxZoom:this.maxzoom,tileSize:this.tileSize,source:this.id,pixelRatio:this.map.getPixelRatio(),showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId,subdivisionGranularity:this.map.style.projection.subdivisionGranularity};e.abortController=new AbortController;try{let i=yield(yield this.actorPromise).sendAsync({type:t,data:r},e.abortController);delete e.abortController,e.unloadVectorData(),e.aborted||e.loadVectorData(i,this.map.painter,t==="RT")}catch(i){if(delete e.abortController,e.aborted||qm(i))return;throw i}})}abortTile(e){return Yi(this,null,function*(){e.abortController&&(e.abortController.abort(),delete e.abortController),e.aborted=!0})}unloadTile(e){return Yi(this,null,function*(){e.unloadVectorData(),yield(yield this.actorPromise).sendAsync({type:"RMT",data:{uid:e.uid,type:this.type,source:this.id}})})}onRemove(){this._removed=!0,this.actorPromise.then(e=>e.sendAsync({type:"RS",data:{type:this.type,source:this.id}}))}serialize(){return cn({},this._options,{type:this.type,data:this._data.updateable?{type:"FeatureCollection",features:Array.from(this._data.updateable.values())}:this._data.url||this._data.geojson})}hasTransition(){return!1}},nT=[0,0,1],CTr=(e,t)=>({u_tl_parent:new ya(e,t.u_tl_parent),u_scale_parent:new Oi(e,t.u_scale_parent),u_buffer_scale:new Oi(e,t.u_buffer_scale),u_image_warp:new Nf(e,t.u_image_warp),u_fade_t:new Oi(e,t.u_fade_t),u_opacity:new Oi(e,t.u_opacity),u_image0:new Mn(e,t.u_image0),u_image1:new Mn(e,t.u_image1),u_brightness_low:new Oi(e,t.u_brightness_low),u_brightness_high:new Oi(e,t.u_brightness_high),u_saturation_factor:new Oi(e,t.u_saturation_factor),u_contrast_factor:new Oi(e,t.u_contrast_factor),u_spin_weights:new Nf(e,t.u_spin_weights),u_coords_top:new K6(e,t.u_coords_top),u_coords_bottom:new K6(e,t.u_coords_bottom)}),DTr=(e,t,r,i,n,a)=>({u_tl_parent:e,u_scale_parent:t,u_buffer_scale:1,u_image_warp:a,u_fade_t:r.mix,u_opacity:r.opacity*i.paint.get("raster-opacity"),u_image0:0,u_image1:1,u_brightness_low:i.paint.get("raster-brightness-min"),u_brightness_high:i.paint.get("raster-brightness-max"),u_saturation_factor:PTr(i.paint.get("raster-saturation")),u_contrast_factor:LTr(i.paint.get("raster-contrast")),u_spin_weights:FTr(i.paint.get("raster-hue-rotate")),u_coords_top:[n[0].x,n[0].y,n[1].x,n[1].y],u_coords_bottom:[n[3].x,n[3].y,n[2].x,n[2].y]});JC=class{constructor(e,t,r){this.vertexBuffer=e,this.indexBuffer=t,this.segments=r}destroy(){this.vertexBuffer.destroy(),this.indexBuffer.destroy(),this.segments.destroy(),this.vertexBuffer=null,this.indexBuffer=null,this.segments=null}},b3=ll([{name:"a_pos",type:"Int16",components:2}]),Lq=Br/128;sT=class extends lu{constructor(e,t,r,i){super(),this.imageWarp=nT,this.flippedWindingOrder=!1,this._warp="auto",this._imageDirty=!1,this._subdividedQuad=!1,this._subdividedMesh=null,this.id=e,this.dispatcher=r,this.coordinates=t.coordinates,this.type="image",this.minzoom=0,this.maxzoom=22,this.tileSize=512,this.tiles={},this._loaded=!1,this.setEventedParent(i),this.options=t}load(e){return Yi(this,null,function*(){if(this.options.url===void 0){this._loaded=!0,this._finishLoading();return}this._loaded=!1,this.fire(new qs("dataloading")),this.url=this.options.url,this._abortController=new AbortController;try{let t=yield Pv.transformAndGetImage(this.map._requestManager,this.url,"Image",this._abortController);this._abortController=null,this._loaded=!0,t!=null&&t.data?(this._setImage(t.data),e&&(this.coordinates=e),this._finishLoading()):this.fire(new An(Error(`Could not load image ${this.url}: the response is empty`)))}catch(t){if(qm(t))return;this._abortController=null,this._loaded=!0,this.fire(new An(qc(t)))}})}loaded(){return this._loaded}updateImage(e){return this._abortController&&(this._abortController=(this._abortController.abort(),null)),"image"in e?(this._loaded=!0,this._setImage(e.image),e.coordinates&&(this.coordinates=e.coordinates),this._finishLoading(),this):e.url?(this.options.url=e.url,this.load(e.coordinates),this):this}_setImage(e){this.image=e,this._imageDirty=!0}getMesh(e,t){var r;return!this._subdividedQuad||t?null:((r=this._subdividedMesh)!=null||(this._subdividedMesh=sst(e,{granularity:16})),this._subdividedMesh)}_disposeTexture(){var e;(e=this.texture)==null||e.destroy(),this.texture=null}_finishLoading(){this.map&&(this.setCoordinates(this.coordinates),this.fire(new qs("data",{sourceDataType:"metadata"})))}onAdd(e){this.map=e,this.load()}onRemove(){var e;this._abortController&&(this._abortController=(this._abortController.abort(),null)),this._disposeTexture(),(e=this._subdividedMesh)==null||e.destroy(),this._subdividedMesh=null,this.image=null,this.tiles={}}setWarp(e){return this._warp===e?this:(this._warp=e,this.tileCoords&&this.setCoordinates(this.coordinates),this)}getWarp(){return this._warp}setCoordinates(e){this.coordinates=e;let t=e.map(Mo.fromLngLat);return this.tileID=ITr(t),this.terrainTileRanges=this._getOverlappingTileRanges(t),this.minzoom=this.maxzoom=this.tileID.z,this.tileCoords=t.map(r=>this.tileID.getTilePoint(r)._round()),this.imageWarp=zTr(this.tileCoords,this._warp),this._subdividedQuad=this.imageWarp[2]>0&&!ust(this.tileCoords),this.flippedWindingOrder=RTr(this.tileCoords),this.fire(new qs("data",{sourceDataType:"content"})),this}prepare(){if(Object.keys(this.tiles).length===0||!this.image)return;let e=this.map.painter.context,t=e.gl;this.texture?this._imageDirty&&(this.texture.update(this.image),this.texture.bind(t.LINEAR,t.CLAMP_TO_EDGE)):(this.texture=new wu(e,this.image,t.RGBA),this.texture.bind(t.LINEAR,t.CLAMP_TO_EDGE)),this._imageDirty=!1;let r=!1;for(let i in this.tiles){let n=this.tiles[i];n.state!=="loaded"&&(n.state="loaded",n.texture=this.texture,r=!0)}r&&this.fire(new qs("data",{sourceDataType:"idle",sourceId:this.id}))}loadTile(e){return Yi(this,null,function*(){var t;(t=this.tileID)!=null&&t.equals(e.tileID.canonical)?(this.tiles[String(e.tileID.wrap)]=e,e.buckets={}):e.state="errored"})}serialize(){let e={type:"image",coordinates:this.coordinates};return this.options.url!==void 0&&(e.url=this.options.url),e}hasTransition(){return!1}_getOverlappingTileRanges(e){let{minX:t,minY:r,maxX:i,maxY:n}=ap.fromPoints(e),a={};for(let o=0;o<=25;o++){let s=2**o,l=Math.floor(t*s),u=Math.floor(r*s),c=Math.floor(i*s),f=Math.floor(n*s),h=(l%s+s)%s,p=c%s,d=Math.floor(l/s),v=Math.floor(c/s);a[o]={minWrap:d,maxWrap:v,minTileXWrapped:h,maxTileXWrapped:p,minTileY:u,maxTileY:f}}return a}};cst=class extends sT{constructor(e,t,r,i){super(e,t,r,i),this._onPlayingHandler=()=>{var n;(n=this.map)==null||n.triggerRepaint()},this.roundZoom=!0,this.type="video",this.options=t}load(){return Yi(this,null,function*(){this._loaded=!1;let e=this.options;this.urls=[];for(let t of e.urls)this.urls.push((yield this.map._requestManager.transformRequest(t,"Source")).url);try{let t=yield Qtt(this.urls);if(this._loaded=!0,!t)return;this.video=t,this.video.loop=!0,this.video.addEventListener("playing",this._onPlayingHandler),this.map&&this.video.play(),this._finishLoading()}catch(t){this.fire(new An(qc(t)))}})}pause(){this.video&&this.video.pause()}play(){this.video&&this.video.play()}seek(e){if(this.video){let t=this.video.seekable;et.end(0)?this.fire(new An(new ei(`sources.${this.id}`,null,`Playback for this video can be set only between the ${t.start(0)} and ${t.end(0)}-second mark.`))):this.video.currentTime=e}}getVideo(){return this.video}onAdd(e){this.map||(this.map=e,this.load(),this.video&&(this.video.play(),this.setCoordinates(this.coordinates)))}onRemove(){super.onRemove(),this.video&&(this.video.removeEventListener("playing",this._onPlayingHandler),this.video.pause())}prepare(){if(Object.keys(this.tiles).length===0||this.video.readyState<2)return;let e=this.map.painter.context,t=e.gl;this.texture?this.video.paused||(this.texture.bind(t.LINEAR,t.CLAMP_TO_EDGE),t.texSubImage2D(t.TEXTURE_2D,0,0,0,t.RGBA,t.UNSIGNED_BYTE,this.video)):(this.texture=new wu(e,this.video,t.RGBA),this.texture.bind(t.LINEAR,t.CLAMP_TO_EDGE));let r=!1;for(let i in this.tiles){let n=this.tiles[i];n.state!=="loaded"&&(n.state="loaded",n.texture=this.texture,r=!0)}r&&this.fire(new qs("data",{sourceDataType:"idle",sourceId:this.id}))}serialize(){return{type:"video",urls:this.urls,coordinates:this.coordinates}}hasTransition(){return this.video&&!this.video.paused}},fst=class extends sT{constructor(e,t,r,i){super(e,t,r,i),t.coordinates?(!Array.isArray(t.coordinates)||t.coordinates.length!==4||t.coordinates.some(n=>!Array.isArray(n)||n.length!==2||n.some(a=>typeof a!="number")))&&this.fire(new An(new ei(`sources.${e}`,null,'"coordinates" property must be an array of 4 longitude/latitude array pairs'))):this.fire(new An(new ei(`sources.${e}`,null,'missing required property "coordinates"'))),t.animate&&typeof t.animate!="boolean"&&this.fire(new An(new ei(`sources.${e}`,null,'optional "animate" property must be a boolean value'))),t.canvas?typeof t.canvas!="string"&&!(t.canvas instanceof HTMLCanvasElement)&&this.fire(new An(new ei(`sources.${e}`,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 An(new ei(`sources.${e}`,null,'missing required property "canvas"'))),this.options=t,this.animate=t.animate===void 0||t.animate}load(){return Yi(this,null,function*(){if(this._loaded=!0,this.canvas||(this.canvas=this.options.canvas instanceof HTMLCanvasElement?this.options.canvas:document.getElementById(this.options.canvas)),this.width=this.canvas.width,this.height=this.canvas.height,this._hasInvalidDimensions()){this.fire(new An(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._playing=(this.prepare(),!1))},this._finishLoading()})}getCanvas(){return this.canvas}onAdd(e){this.map=e,this.load(),this.canvas&&this.animate&&this.play()}onRemove(){this._playing=!1,super.onRemove()}prepare(){let e=!1;if(this.canvas.width!==this.width&&(this.width=this.canvas.width,e=!0),this.canvas.height!==this.height&&(this.height=this.canvas.height,e=!0),this._hasInvalidDimensions()||Object.keys(this.tiles).length===0)return;let t=this.map.painter.context,r=t.gl;this.texture?(e||this._playing)&&this.texture.update(this.canvas,{premultiply:!0}):(this.texture=new wu(t,this.canvas,r.RGBA,{premultiply:!0}),this.texture.bind(r.LINEAR,r.CLAMP_TO_EDGE));let i=!1;for(let n in this.tiles){let a=this.tiles[n];a.state!=="loaded"&&(a.state="loaded",a.texture=this.texture,i=!0)}i&&this.fire(new qs("data",{sourceDataType:"idle",sourceId:this.id}))}serialize(){return{type:"canvas",animate:this.animate,canvas:this.options.canvas,coordinates:this.coordinates}}hasTransition(){return this._playing}_hasInvalidDimensions(){for(let e of[this.canvas.width,this.canvas.height])if(isNaN(e)||e<=0)return!0;return!1}},hst={},qTr=(e,t,r,i)=>{let n=new(dst(t.type))(e,t,r,i);if(n.id!==e)throw Error(`Expected Source id to be ${e} instead of ${n.id}`);return n},dst=e=>{switch(e){case"geojson":return ost;case"image":return sT;case"raster":return goe;case"raster-dem":return nst;case"vector":return ist;case"video":return cst;case"canvas":return fst}return hst[e]},OTr=(e,t)=>{hst[e]=t},NTr=(e,t)=>Yi(null,null,function*(){if(dst(e))throw Error(`A source type called "${e}" already exists.`);OTr(e,t)});Zae="RTLPluginLoaded",VTr=class extends lu{constructor(...e){super(...e),this.status="unavailable",this.url=null,this.dispatcher=voe()}_syncState(e){return this.status=e,this.dispatcher.broadcast("SRPS",{pluginStatus:e,pluginURL:this.url}).catch(t=>{throw this.status="error",t})}getRTLTextPluginStatus(){return this.status}clearRTLTextPlugin(){this.status="unavailable",this.url=null}setRTLTextPlugin(e,t=!1){return Yi(this,null,function*(){if(this.url)throw Error("setRTLTextPlugin cannot be called multiple times.");if(this.url=a0.resolveURL(e),!this.url)throw Error(`requested url ${e} is invalid`);if(this.status==="unavailable")if(t)this.status="deferred",this._syncState(this.status);else return this._requestImport();else if(this.status==="requested")return this._requestImport()})}_requestImport(){return Yi(this,null,function*(){yield this._syncState("loading"),this.status="loaded",this.fire(new i0(Zae))})}lazyLoad(){this.status==="unavailable"?this.status="requested":this.status==="deferred"&&this._requestImport()}},kae=null;pst=class{constructor(e,t){this.timeAdded=0,this.fadeEndTime=0,this.fadeOpacity=1,this.tileID=e,this.uid=cne(),this.uses=0,this.tileSize=t,this.buckets={},this.expirationTime=null,this.queryPadding=0,this.hasSymbolBuckets=!1,this.hasRTLText=!1,this.dependencies={},this.rttObjects=[],this.rttFingerprint={},this.expiredRequestCount=0,this.state="loading",this.featureStateRevision=-1}isRenderable(e){return this.hasData()&&(!this.fadeEndTime||this.fadingDirection!==0||this.fadeOpacity>0)&&(e||!this.holdingForSymbolFade())}setCrossFadeLogic({fadingRole:e,fadingDirection:t,fadingParentID:r,fadeEndTime:i}){this.resetFadeLogic(),this.fadingRole=e,this.fadingDirection=t,this.fadingParentID=r,this.fadeEndTime=i}setSelfFadeLogic(e){this.resetFadeLogic(),this.selfFading=!0,this.fadeEndTime=e}resetFadeLogic(){this.fadingRole=null,this.fadingDirection=null,this.fadingParentID=null,this.selfFading=!1,this.timeAdded=zo(),this.fadeEndTime=0,this.fadeOpacity=1}wasRequested(){return this.state==="errored"||this.state==="loaded"||this.state==="reloading"}clearTextures(e){this.demTexture&&e.saveTileTexture(this.demTexture),this.demTexture=null}getRTT(e){return this.rttObjects[e]}acquireRTT(e,t,r){return this.rttObjects[t]=e.acquireRTT(r)}releaseRTT(e){if(this.rttObjects.length!==0){for(let t of this.rttObjects)t&&e.releaseRTT(t);this.rttObjects.length=0}}loadVectorData(e,t,r){if((e==null?void 0:e.etagUnmodified)===!0){this.state="loaded";return}if(this.hasData()&&this.unloadVectorData(),this.state="loaded",!e){this.collisionBoxArray=new One;return}e.featureIndex&&(this.latestFeatureIndex=e.featureIndex,e.rawTileData?(this.latestRawTileData=e.rawTileData,this.latestEncoding=e.encoding,this.latestFeatureIndex.rawTileData=e.rawTileData,this.latestFeatureIndex.encoding=e.encoding):this.latestRawTileData&&(this.latestFeatureIndex.rawTileData=this.latestRawTileData,this.latestFeatureIndex.encoding=this.latestEncoding)),this.collisionBoxArray=e.collisionBoxArray,this.buckets=UTr(e.buckets,t==null?void 0:t.style),this.hasSymbolBuckets=!1;for(let i in this.buckets){let n=this.buckets[i];if(n instanceof LC)if(this.hasSymbolBuckets=!0,r)n.justReloaded=!0;else break}if(this.hasRTLText=!1,this.hasSymbolBuckets)for(let i in this.buckets){let n=this.buckets[i];if(n instanceof LC&&n.hasRTLText){this.hasRTLText=!0,KC().lazyLoad();break}}this.queryPadding=0;for(let i in this.buckets){let n=this.buckets[i];this.queryPadding=Math.max(this.queryPadding,t.style.getLayer(i).queryRadius(n))}e.imageAtlas&&(this.imageAtlas=e.imageAtlas),e.glyphAtlasImage&&(this.glyphAtlasImage=e.glyphAtlasImage),this.dashPositions=e.dashPositions}unloadVectorData(){for(let e in this.buckets)this.buckets[e].destroy();this.buckets={},this.imageAtlasTexture&&this.imageAtlasTexture.destroy(),this.glyphAtlasTexture&&this.glyphAtlasTexture.destroy(),this.imageAtlas=null,this.dashPositions=null,this.latestFeatureIndex=null,this.state="unloaded"}getBucket(e){return this.buckets[e.id]}upload(e){for(let r in this.buckets){let i=this.buckets[r];i.uploadPending()&&i.upload(e)}let t=e.gl;this.imageAtlas&&!this.imageAtlas.uploaded&&(this.imageAtlasTexture=new wu(e,this.imageAtlas.image,t.RGBA),this.imageAtlas.uploaded=!0),this.glyphAtlasImage&&(this.glyphAtlasImage=(this.glyphAtlasTexture=new wu(e,this.glyphAtlasImage,t.ALPHA),null))}prepare(e){this.imageAtlas&&this.imageAtlas.patchUpdatedImages(e,this.imageAtlasTexture)}queryRenderedFeatures(e,t,r,i,n,a,o,s,l,u,c){var f;return(f=this.latestFeatureIndex)!=null&&f.rawTileData?this.latestFeatureIndex.query({queryGeometry:i,cameraQueryGeometry:n,scale:a,tileSize:this.tileSize,pixelPosMatrix:u,transform:s,params:o,queryPadding:this.queryPadding*l,getElevation:c},e,t,r):{}}querySourceFeatures(e,t){let r=this.latestFeatureIndex;if(!(r!=null&&r.rawTileData))return;let i=r.loadVTLayers(),n=t!=null&&t.sourceLayer?t.sourceLayer:"",a=i._geojsonTileLayer||i[n];if(!a)return;let o=U6(t==null?void 0:t.filter,`querySourceFeatures[${n}].filter`,t==null?void 0:t.globalState),{z:s,x:l,y:u}=this.tileID.canonical,c={z:s,x:l,y:u};for(let f=0;fr)i=!1;else if(!t)i=!0;else if(this.expirationTimethis.max[0]||t.aabb.min[1]>this.max[1]||t.aabb.min[2]>this.max[2]||t.aabb.max[0]0?(r+=t[n]*this.min[n],i+=t[n]*this.max[n]):(i+=t[n]*this.min[n],r+=t[n]*this.max[n]);return r>=0?2:i<0?0:1}},yoe=class gst{constructor(t,r,i){this.points=t,this.planes=r,this.aabb=i}static fromInvProjectionMatrix(t,r=1,i=0,n,a){let o=[[-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]],s=a?[[6,5,4],[0,1,2],[0,3,7],[2,1,5],[3,2,6],[0,4,5]]:[[0,1,2],[6,5,4],[0,3,7],[2,1,5],[3,2,6],[0,4,5]],l=2**i,u=o.map(p=>HTr(p,t,r,l));n&&jTr(u,s[0],n,a);let c=s.map(p=>{let d=lg([],u[p[0]],u[p[1]]),v=lg([],u[p[2]],u[p[1]]),m=qf([],dh([],d,v)),g=-su(m,u[p[1]]);return m.concat(g)}),f=[1/0,1/0,1/0],h=[-1/0,-1/0,-1/0];for(let p of u)for(let d=0;d<3;d++)f[d]=Math.min(f[d],p[d]),h[d]=Math.max(h[d],p[d]);return new gst(u,c,new moe(f,h))}};XTr=Kae(9.314,3);Zat=class{constructor(){this._tiles={}}handleWrapJump(e){let t={};for(let r in this._tiles){let i=this._tiles[r];i.tileID=i.tileID.unwrapTo(i.tileID.wrap+e),t[i.tileID.key]=i}this._tiles=t}setFeatureState(e,t,r){for(let i in this._tiles)this._tiles[i].setFeatureState(e,t,r)}getAllTiles(){return Object.values(this._tiles)}getAllIds(e=!1){return e?Object.values(this._tiles).map(t=>t.tileID).sort(sae).map(t=>t.key):Object.keys(this._tiles)}getTileById(e){return this._tiles[e]}setTile(e,t){this._tiles[e]=t}deleteTileById(e){delete this._tiles[e]}getLoadedTile(e){let t=this.getTileById(e.key);return t!=null&&t.hasData()?t:null}isIdRenderable(e,t=!1){var r;return(r=this.getTileById(e))==null?void 0:r.isRenderable(t)}getRenderableIds(e=0,t){let r=[];for(let i of this.getAllIds())this.isIdRenderable(i,t)&&r.push(this.getTileById(i));return t?r.sort((i,n)=>{let a=i.tileID,o=n.tileID,s=new tr(a.canonical.x,a.canonical.y)._rotate(-e),l=new tr(o.canonical.x,o.canonical.y)._rotate(-e);return a.overscaledZ-o.overscaledZ||l.y-s.y||l.x-s.x}).map(i=>i.tileID.key):r.map(i=>i.tileID).sort(sae).map(i=>i.key)}},Jae=(jm=class extends lu{constructor(t,r,i){super(),this._maxContentElevationSeen=0,this.id=t,this.dispatcher=i,this.on("data",n=>{this._dataHandler(n)}),this.on("dataloading",()=>{this._sourceErrored=!1}),this.on("error",()=>{this._sourceErrored=this._source.loaded()}),this._source=qTr(t,r,i,this),this._inViewTiles=new Zat,this._outOfViewCache=new Fat(0,n=>this._unloadTile(n)),this._timers={},this._maxTileCacheSize=null,this._maxTileCacheZoomLevels=null,this._rasterFadeDuration=0,this._maxFadingAncestorLevels=5,this._state=new GTr,this._didEmitContent=!1,this._updated=!1}onAdd(t){var r;this.map=t,this._maxTileCacheSize=t?t._maxTileCacheSize:null,this._maxTileCacheZoomLevels=t?t._maxTileCacheZoomLevels:null,(r=this._source)!=null&&r.onAdd&&this._source.onAdd(t)}onRemove(t){var r;for(let i of this._inViewTiles.getAllTiles())i.unloadVectorData();this.clearTiles(),(r=this._source)!=null&&r.onRemove&&this._source.onRemove(t),this._inViewTiles=new Zat}loaded(){if(this._sourceErrored)return!0;if(!this._sourceLoaded||!this._source.loaded())return!1;if((this.used!==void 0||this.usedForTerrain!==void 0)&&!this.used&&!this.usedForTerrain)return!0;if(!this._updated)return!1;for(let t of this._inViewTiles.getAllTiles())if(t.state!=="loaded"&&t.state!=="errored")return!1;return!0}getSource(){return this._source}getState(){return this._state}pause(){this._paused=!0}resume(){if(!this._paused)return;let t=this._shouldReloadOnResume;this._paused=!1,this._shouldReloadOnResume=!1,t&&this.reload(),this.transform&&this.update(this.transform,this.terrain)}_loadTile(t,r,i,n){return Yi(this,null,function*(){try{let a=yield this._source.loadTile(t);this._tileLoaded(t,r,i,n,a)}catch(a){t.state="errored",a.status===404?this.update(this.transform,this.terrain):this._source.fire(new An(qc(a),{tile:t}))}})}_unloadTile(t){this._source.unloadTile&&this._source.unloadTile(t)}_abortTile(t){this._source.abortTile&&this._source.abortTile(t),this._source.fire(new qs("dataabort",{tile:t,coord:t.tileID}))}serialize(){return this._source.serialize()}prepare(t){this._source.prepare&&this._source.prepare(),this._state.coalesceChanges(this._inViewTiles,this.map?this.map.painter:null);for(let r of this._inViewTiles.getAllTiles())r.upload(t),r.prepare(this.map.style.imageManager)}getIds(){return this._inViewTiles.getAllIds(!0)}getRenderableIds(t){var r;return this._inViewTiles.getRenderableIds((r=this.transform)==null?void 0:r.bearingInRadians,t)}hasRenderableParent(t){let r=t.overscaledZ-1;if(r>=this._source.minzoom){let i=this.getLoadedTile(t.scaledTo(r));if(i)return this._inViewTiles.isIdRenderable(i.tileID.key)}return!1}reload(t,r=void 0){if(this._paused){this._shouldReloadOnResume=!0;return}this._outOfViewCache.reset();for(let i of this._inViewTiles.getAllIds()){let n=this._inViewTiles.getTileById(i);(!r||this._source.shouldReloadTile(n,r))&&(t?this._reloadTile(i,n.state==="errored"?"loading":"expired"):n.state!=="errored"&&this._reloadTile(i,"reloading"))}}_reloadTile(t,r){return Yi(this,null,function*(){let i=this._inViewTiles.getTileById(t);if(!i)return;let n=i.hasData();i.state!=="loading"&&(i.state=r),yield this._loadTile(i,t,r,n)})}_tileLoaded(t,r,i,n,a){n||(t.timeAdded=zo(),t.selfFading&&(t.fadeEndTime=t.timeAdded+this._rasterFadeDuration)),i==="expired"&&(t.refreshedUponExpiration=!0),this._setTileReloadTimer(r,t),!(a!=null&&a.unmodified)&&(this.getSource().type==="raster-dem"&&t.dem&&nAr(t,this._inViewTiles),t.featureStateRevision=-1,this._state.initializeTileState(t,this.map?this.map.painter:null),t.aborted||this._source.fire(new qs("data",{tile:t,coord:t.tileID})))}getTile(t){return this.getTileByID(t.key)}getTileByID(t){return this._inViewTiles.getTileById(t)}_retainLoadedChildren(t,r){let i=this._getLoadedDescendents(r),n=new Set;for(let a of r){let o=i[a.key];if(!(o!=null&&o.length)){n.add(a);continue}let s=a.overscaledZ+jm.maxOverzooming,l=o.filter(f=>f.tileID.overscaledZ<=s);if(!l.length){n.add(a);continue}let u=Math.min(...l.map(f=>f.tileID.overscaledZ)),c=l.filter(f=>f.tileID.overscaledZ===u).map(f=>f.tileID);for(let f of c)t[f.key]=f;this._areDescendentsComplete(c,u,a.overscaledZ)||n.add(a)}return n}_getLoadedDescendents(t){var i;let r={};for(let n of this._inViewTiles.getAllTiles().filter(a=>a.hasData()))for(let a of t)n.tileID.isChildOf(a)&&(r[i=a.key]||(r[i]=[]),r[a.key].push(n));return r}_areDescendentsComplete(t,r,i){return t.length===1&&t[0].isOverscaled()?t[0].overscaledZ===r:4**(r-i)===t.length}getLoadedTile(t){return this._inViewTiles.getLoadedTile(t)}updateCacheSize(t){let r=(Math.ceil(t.width/this._source.tileSize)+1)*(Math.ceil(t.height/this._source.tileSize)+1),i=this._maxTileCacheZoomLevels===null?r0.MAX_TILE_CACHE_ZOOM_LEVELS:this._maxTileCacheZoomLevels,n=Math.floor(r*i),a=typeof this._maxTileCacheSize=="number"?Math.min(this._maxTileCacheSize,n):n;this._outOfViewCache.setMaxSize(a)}handleWrapJump(t){let r=(t-(this._prevLng===void 0?t:this._prevLng))/360,i=Math.round(r);this._prevLng=t,i&&(this._inViewTiles.handleWrapJump(i),this._resetTileReloadTimers())}_updateMaxContentElevation(){var n,a;let t=this._maxContentElevationSeen,r=(a=(n=this.map)==null?void 0:n.style)==null?void 0:a._layers;if(!r)return t;let i=this._inViewTiles.getAllTiles();for(let o in r){let s=r[o];if(s.type!=="symbol"||s.source!==this.id||s.isHidden(this.transform.zoom))continue;let l=s;if(!l.layout)continue;let u=l.layout.get("symbol-height-offset");if(t=Math.max(t,u.constantOr(0)),!u.isConstant())for(let c of i){let f=c.getBucket(s);f&&f.maxHeightOffset>t&&(t=f.maxHeightOffset)}}return this._maxContentElevationSeen=t,t}update(t,r){if(!this._sourceLoaded||this._paused)return;this.transform=t,this.terrain=r,this.updateCacheSize(t),this.handleWrapJump(this.transform.center.lng);let i;!this.used&&!this.usedForTerrain?i=[]:this._source.tileID?i=t.getVisibleUnwrappedCoordinates(this._source.tileID).map(l=>new Vc(l.canonical.z,l.wrap,l.canonical.z,l.canonical.x,l.canonical.y)):(i=lT(t,{tileSize:this.usedForTerrain?this.tileSize:this._source.tileSize,minzoom:this._source.minzoom,maxzoom:this._source.type==="vector"&&this.map._zoomLevelsToOverscale!==void 0?Math.max(this._source.maxzoom,t.maxZoom-this.map._zoomLevelsToOverscale):this._source.maxzoom,roundZoom:!this.usedForTerrain&&this._source.roundZoom,reparseOverscaled:this._source.reparseOverscaled,terrain:r,calculateTileZoom:this._source.calculateTileZoom,maxContentElevation:this._updateMaxContentElevation()}),this._source.hasTile&&(i=i.filter(l=>this._source.hasTile(l)))),this.usedForTerrain&&(i=this._addTerrainIdealTiles(i));let n=i.length===0&&!this._updated&&this._didEmitContent;this._updated=!0,n&&this.fire(new qs("data",{sourceDataType:"idle",sourceId:this.id}));let a=xoe(t,this._source),o=this._updateRetainedTiles(i,a),s=Wat(this._source.type);s&&this._rasterFadeDuration>0&&!r&&QTr(this._inViewTiles,i,o,this._maxFadingAncestorLevels,this._source.minzoom,this._source.maxzoom,this._rasterFadeDuration),s?this._cleanUpRasterTiles(o):this._cleanUpVectorTiles(o)}_cleanUpRasterTiles(t){for(let r of this._inViewTiles.getAllIds())t[r]||this._removeTile(r)}_cleanUpVectorTiles(t){for(let r of this._inViewTiles.getAllIds()){let i=this._inViewTiles.getTileById(r);if(t[r]){i.clearSymbolFadeHold();continue}if(!i.hasSymbolBuckets){this._removeTile(r);continue}i.holdingForSymbolFade()?i.symbolFadeFinished()&&this._removeTile(r):i.setSymbolHoldDuration(this.map._fadeDuration)}}_addTerrainIdealTiles(t){let r=[];for(let i of t)if(i.canonical.z>this._source.minzoom){let n=i.scaledTo(i.canonical.z-1);r.push(n);let a=i.scaledTo(Math.max(this._source.minzoom,Math.min(i.canonical.z,5)));r.push(a)}return t.concat(r)}releaseSymbolFadeTiles(){for(let t of this._inViewTiles.getAllIds())this._inViewTiles.getTileById(t).holdingForSymbolFade()&&this._removeTile(t)}_updateRetainedTiles(t,r){var l;let i=new Set;for(let u of t)this._addTile(u).hasData()||i.add(u);let n=t.reduce((u,c)=>(u[c.key]=c,u),{}),a=this._retainLoadedChildren(n,i),o={},s=Math.max(r-jm.maxUnderzooming,this._source.minzoom);for(let u of a){let c=this._inViewTiles.getTileById(u.key),f=c==null?void 0:c.wasRequested();for(let h=u.overscaledZ-1;h>=s;--h){let p=u.scaledTo(h);if(o[p.key])break;if(o[p.key]=!0,c=this.getTile(p),!c&&f&&(c=this._addTile(p)),c){let d=c.hasData();if((d||!((l=this.map)!=null&&l.cancelPendingTileRequestsWhileZooming)||f)&&(n[p.key]=p),f=c.wasRequested(),d)break}}}return n}_addTile(t){let r=this._inViewTiles.getTileById(t.key);if(r)return r;r=this._outOfViewCache.getAndRemove(t),r&&(r.resetFadeLogic(),this._setTileReloadTimer(t.key,r),r.tileID=t,this._state.initializeTileState(r,this.map?this.map.painter:null));let i=r;return r||(r=new pst(t,this._source.tileSize*t.overscaleFactor()),this._loadTile(r,t.key,r.state,!1)),r.uses++,this._inViewTiles.setTile(t.key,r),i||this._source.fire(new qs("dataloading",{tile:r,coord:r.tileID})),r}_setTileReloadTimer(t,r){this._clearTileReloadTimer(t);let i=r.getExpiryTimeout();if(i){let n=()=>{this._reloadTile(t,"expired"),delete this._timers[t]};this._timers[t]=setTimeout(n,i)}}_clearTileReloadTimer(t){let r=this._timers[t];r&&(clearTimeout(r),delete this._timers[t])}_resetTileReloadTimers(){for(let t in this._timers)clearTimeout(this._timers[t]),delete this._timers[t];for(let t of this._inViewTiles.getAllIds()){let r=this._inViewTiles.getTileById(t);this._setTileReloadTimer(t,r)}}refreshTiles(t){for(let r of this._inViewTiles.getAllIds()){let i=this._inViewTiles.getTileById(r);(this._inViewTiles.isIdRenderable(r)||i.state=="errored")&&t.some(n=>n.equals(i.tileID.canonical))&&this._reloadTile(r,"expired")}}_removeTile(t){let r=this._inViewTiles.getTileById(t);r&&(r.uses--,this._inViewTiles.deleteTileById(t),this._clearTileReloadTimer(t),!(r.uses>0)&&(r.hasData()&&r.state!=="reloading"?this._outOfViewCache.add(r.tileID,r,r.getExpiryTimeout()):(r.aborted=!0,this._abortTile(r),this._unloadTile(r))))}_dataHandler(t){if(t.dataType==="source"){if(t.sourceDataType==="metadata"){this._sourceLoaded=!0;return}t.sourceDataType==="content"&&this._sourceLoaded&&!this._paused&&(this.reload(t.sourceDataChanged,t.shouldReloadTileOptions),this.transform&&this.update(this.transform,this.terrain),this._didEmitContent=!0)}}resetMaxContentElevation(){this._maxContentElevationSeen=0}clearTiles(){this._shouldReloadOnResume=!1,this._paused=!1,this.resetMaxContentElevation();for(let t of this._inViewTiles.getAllIds())this._removeTile(t);this._outOfViewCache.reset()}tilesIn(t,r,i){let n=[],a=this.transform;if(!a)return n;let o=a.getCoveringTilesDetailsProvider().allowWorldCopies(),s=i?a.getCameraQueryGeometry(t):t,l=p=>a.screenPointToMercatorCoordinate(p,this.terrain),u=this.transformBbox(t,l,!o),c=this.transformBbox(s,l,!o),f=this.getIds(),h=ap.fromPoints(c);for(let p of f){let d=this._inViewTiles.getTileById(p);if(d.holdingForSymbolFade())continue;let v=o?[d.tileID]:[d.tileID.unwrapTo(-1),d.tileID.unwrapTo(0)],m=2**(a.zoom-d.tileID.overscaledZ),g=r*d.queryPadding*Br/d.tileSize/m;for(let w of v){let _=h.map(b=>w.getTilePoint(new Mo(b.x,b.y)));if(_.expandBy(g),_.intersects(hnt)){let b=u.map(x=>w.getTilePoint(x)),S=c.map(x=>w.getTilePoint(x));n.push({tile:d,tileID:o?w:w.unwrapTo(0),queryGeometry:b,cameraQueryGeometry:S,scale:m})}}}return n}transformBbox(t,r,i){let n=t.map(r);if(i){let a=ap.fromPoints(t);a.shrinkBy(Math.min(a.width(),a.height())*.001);let o=a.map(r);ap.fromPoints(n).covers(o)||(n=n.map(s=>s.x>.5?new Mo(s.x-1,s.y,s.z):s))}return n}getVisibleCoordinates(t){let r=this.getRenderableIds(t).map(i=>this._inViewTiles.getTileById(i).tileID);return this.transform&&this.transform.populateCache(r),r}hasTransition(){return this._source.hasTransition()?!0:Wat(this._source.type)&&iAr(this._inViewTiles,this._rasterFadeDuration)}setRasterFadeDuration(t){this._rasterFadeDuration=t}setFeatureState(t,r,i){t||(t=RC),this._state.updateState(t,r,i)}removeFeatureState(t,r,i){t||(t=RC),this._state.removeFeatureState(t,r,i)}getFeatureState(t,r){return t||(t=RC),this._state.getState(t,r)}setDependencies(t,r,i){let n=this._inViewTiles.getTileById(t);n&&n.setDependencies(r,i)}reloadTilesForDependencies(t,r){for(let i of this._inViewTiles.getAllIds())this._inViewTiles.getTileById(i).hasDependency(t,r)&&this._reloadTile(i,"reloading");this._outOfViewCache.filter(i=>!i.hasDependency(t,r))}areTilesLoaded(){for(let t of this._inViewTiles.getAllTiles())if(t.state!=="loaded"&&t.state!=="errored")return!1;return!0}},jm.maxUnderzooming=10,jm.maxOverzooming=3,jm),aAr=class{constructor(e,t){this.reset(e,t)}reset(e,t){this.points=e||[],this._distances=[0];for(let r=1;r0?(i-a)/o:0;return this.points[n].mult(1-s).add(this.points[t].mult(s))}};Kat=class{constructor(e,t,r){let i=this.boxCells=[],n=this.circleCells=[];this.xCellCount=Math.ceil(e/r),this.yCellCount=Math.ceil(t/r);for(let a=0;athis.width||i<0||t>this.height)return[];let s=[];if(e<=0&&t<=0&&this.width<=r&&this.height<=i){if(n)return[{key:null,x1:e,y1:t,x2:r,y2:i}];for(let l=0;l0}hitTestCircle(e,t,r,i,n){let a=e-r,o=e+r,s=t-r,l=t+r;if(o<0||a>this.width||l<0||s>this.height)return!1;let u=[],c={hitTest:!0,overlapMode:i,circle:{x:e,y:t,radius:r},seenUids:{box:{},circle:{}}};return this._forEachCell(a,s,o,l,this._queryCellCircle,u,c,n),u.length>0}_queryCell(e,t,r,i,n,a,o,s){let{seenUids:l,hitTest:u,overlapMode:c}=o,f=this.boxCells[n],h=1e-6;if(f!==null){let d=this.bboxes;for(let v of f)if(!l.box[v]){l.box[v]=!0;let m=v*4,g=this.boxKeys[v];if(e<=d[m+2]+h&&t<=d[m+3]+h&&r>=d[m+0]-h&&i>=d[m+1]-h&&(!s||s(g))&&(!u||!Pq(c,g.overlapMode))&&(a.push({key:g,x1:d[m],y1:d[m+1],x2:d[m+2],y2:d[m+3]}),u))return!0}}let p=this.circleCells[n];if(p!==null){let d=this.circles;for(let v of p)if(!l.circle[v]){l.circle[v]=!0;let m=v*3,g=this.circleKeys[v];if(this._circleAndRectCollide(d[m],d[m+1],d[m+2],e,t,r,i)&&(!s||s(g))&&(!u||!Pq(c,g.overlapMode))){let w=d[m],_=d[m+1],b=d[m+2];if(a.push({key:g,x1:w-b,y1:_-b,x2:w+b,y2:_+b}),u)return!0}}}return!1}_queryCellCircle(e,t,r,i,n,a,o,s){let{circle:l,seenUids:u,overlapMode:c}=o,f=this.boxCells[n];if(f!==null){let p=this.bboxes;for(let d of f)if(!u.box[d]){u.box[d]=!0;let v=d*4,m=this.boxKeys[d];if(this._circleAndRectCollide(l.x,l.y,l.radius,p[v+0],p[v+1],p[v+2],p[v+3])&&(!s||s(m))&&!Pq(c,m.overlapMode))return a.push(!0),!0}}let h=this.circleCells[n];if(h!==null){let p=this.circles;for(let d of h)if(!u.circle[d]){u.circle[d]=!0;let v=d*3,m=this.circleKeys[d];if(this._circlesCollide(p[v],p[v+1],p[v+2],l.x,l.y,l.radius)&&(!s||s(m))&&!Pq(c,m.overlapMode))return a.push(!0),!0}}}_forEachCell(e,t,r,i,n,a,o,s){let l=this._convertToXCellCoord(e),u=this._convertToYCellCoord(t),c=this._convertToXCellCoord(r),f=this._convertToYCellCoord(i);for(let h=l;h<=c;h++)for(let p=u;p<=f;p++){let d=this.xCellCount*p+h;if(n.call(this,e,t,r,i,d,a,o,s))return}}_convertToXCellCoord(e){return Math.max(0,Math.min(this.xCellCount-1,Math.floor(e*this.xScale)))}_convertToYCellCoord(e){return Math.max(0,Math.min(this.yCellCount-1,Math.floor(e*this.yScale)))}_circlesCollide(e,t,r,i,n,a){let o=i-e,s=n-t,l=r+a;return l*l>o*o+s*s}_circleAndRectCollide(e,t,r,i,n,a,o){let s=(a-i)/2,l=Math.abs(e-(i+s));if(l>s+r)return!1;let u=(o-n)/2,c=Math.abs(t-(n+u));if(c>u+r)return!1;if(l<=s||c<=u)return!0;let f=l-s,h=c-u;return f*f+h*h<=r*r}};uAr=Rm();pAr=new Float32Array([-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0]);mAr=class{constructor(e,t=new Kat(e.width+200,e.height+200,25),r=new Kat(e.width+200,e.height+200,25)){this.transform=e,this.grid=t,this.ignoredGrid=r,this.pitchFactor=Math.cos(e.pitch*Math.PI/180)*e.cameraToCenterDistance,this.screenRightBoundary=e.width+100,this.screenBottomBoundary=e.height+100,this.gridRightBoundary=e.width+200,this.gridBottomBoundary=e.height+200,this.perspectiveRatioCutoff=.6}placeCollisionBox(e,t,r,i,n,a,o,s,l,u,c,f,h=0,p=!0){let d=e.anchorPointX+s[0],v=e.anchorPointY+s[1],m=this.projectAndGetPerspectiveRatio(d,v,n,Wq(u,d,v,h,p),f),g=r*m.perspectiveRatio,w;if(!a&&!o){let y=m.x+(c?c.x*g:0),E=m.y+(c?c.y*g:0);w={allPointsOccluded:!1,box:[y+e.x1*g,E+e.y1*g,y+e.x2*g,E+e.y2*g]}}else w=this._projectCollisionBox(e,g,i,n,a,o,s,m,u,c,f,h,p);let[_,b,S,x]=w.box,T=a?w.allPointsOccluded:m.isOccluded,A=T;return A||(A=m.perspectiveRatio=1;I--)P.push(D.path[I]);for(let I=1;IB.signedDistanceFromCamera<=0)?[]:I.map(B=>B.point)}let F=[];if(P.length>0){let I=P[0].clone(),B=P[0].clone();for(let O=1;O=M.x&&B.x<=C.x&&I.y>=M.y&&B.y<=C.y?[P]:B.xC.x||B.yC.y?[]:iae([P],M.x,M.y,C.x,C.y)}for(let I of F){k.reset(I,E*.25);let B=0;B=k.length<=.5*E?1:Math.ceil(k.paddedLength/R)+1;for(let O=0;O=this.screenRightBoundary||i<100||t>this.screenBottomBoundary}isInsideGrid(e,t,r,i){return r>=0&&e=0&&tthis.projectAndGetPerspectiveRatio(P.x,P.y,i,Wq(l,P.x,P.y,f,h),c));D=L.some(P=>!P.isOccluded),k=L.map(P=>new tr(P.x,P.y))}else D=!0;return{box:Rtt(k),allPointsOccluded:!D}}},eot=class{constructor(e,t,r,i){this.opacity=e?Math.max(0,Math.min(1,e.opacity+(e.placed?t:-t))):i&&r?1:0,this.placed=r}isHidden(){return this.opacity===0&&!this.placed}},NC=class{constructor(e,t,r,i,n){this.text=new eot(e?e.text:null,t,r,n),this.icon=new eot(e?e.icon:null,t,i,n)}isHidden(){return this.text.isHidden()&&this.icon.isHidden()}},tot=class{constructor(e,t,r){this.text=e,this.icon=t,this.skipFade=r}},yAr=class{constructor(e,t,r,i,n){this.bucketInstanceId=e,this.featureIndex=t,this.sourceLayerIndex=r,this.bucketIndex=i,this.tileID=n}},xAr=class{constructor(e){this.crossSourceCollisions=e,this.maxGroupID=0,this.collisionGroups={}}get(e){if(this.crossSourceCollisions)return{ID:0,predicate:null};if(!this.collisionGroups[e]){let t=++this.maxGroupID;this.collisionGroups[e]={ID:t,predicate:r=>r.collisionGroupID===t}}return this.collisionGroups[e]}};bAr=class{constructor(e,t,r,i,n){this.transform=e.clone(),this.terrain=t,this.collisionIndex=new mAr(this.transform),this.placements={},this.opacities={},this.variableOffsets={},this.stale=!1,this.commitTime=0,this.fadeDuration=r,this.retainedQueryData={},this.collisionGroups=new xAr(i),this.collisionCircleArrays={},this.collisionBoxArrays=new Map,this.prevPlacement=n,n&&(n.prevPlacement=void 0),this.placedOrientations={}}_getTerrainElevationFunc(e){let t=this.terrain;if(t)return(r,i)=>t.getElevation(e,r,i)}getBucketParts(e,t,r,i){let n=r.getBucket(t),a=r.latestFeatureIndex;if(!n||!a||t.id!==n.layerIds[0])return;let o=r.collisionBoxArray,s=n.layers[0].layout,l=n.layers[0].paint,u=2**(this.transform.zoom-r.tileID.overscaledZ),c=r.tileSize/Br,f=r.tileID.toUnwrapped(),h=s.get("text-rotation-alignment")==="map",p=Qh(r,1,this.transform.zoom),d=Bm(this.collisionIndex.transform,r,l.get("text-translate"),l.get("text-translate-anchor")),v=Bm(this.collisionIndex.transform,r,l.get("icon-translate"),l.get("icon-translate-anchor")),m=boe(h,this.transform,p);this.retainedQueryData[n.bucketInstanceId]=new yAr(n.bucketInstanceId,a,n.sourceLayerIndex,n.index,r.tileID);let g={bucket:n,layout:s,translationText:d,translationIcon:v,unwrappedTileID:f,pitchedLabelPlaneMatrix:m,scale:u,textPixelRatio:c,holdingForFade:r.holdingForSymbolFade(),collisionBoxArray:o,partiallyEvaluatedTextSize:DC(n.textSizeData,this.transform.zoom),collisionGroup:this.collisionGroups.get(n.sourceID)};if(i)for(let w of n.sortKeyRanges){let{sortKey:_,symbolInstanceStart:b,symbolInstanceEnd:S}=w;e.push({sortKey:_,symbolInstanceStart:b,symbolInstanceEnd:S,parameters:g})}else e.push({symbolInstanceStart:0,symbolInstanceEnd:n.symbolInstances.length,parameters:g})}attemptAnchorPlacement(e,t,r,i,n,a,o,s,l,u,c,f,h,p,d,v,m,g,w,_,b,S){var E,M,C;let x=Mq[e.textAnchor],T=[e.textOffset0,e.textOffset1],A=rot(x,r,i,T,n),y=this.collisionIndex.placeCollisionBox(t,f,s,l,u,o,a,v,c.predicate,w,A,_,b,S);if((!g||this.collisionIndex.placeCollisionBox(g,f,s,l,u,o,a,m,c.predicate,w,A,_,b,S).placeable)&&y.placeable){let k;if((E=this.prevPlacement)!=null&&E.variableOffsets[h.crossTileID]&&((C=(M=this.prevPlacement)==null?void 0:M.placements[h.crossTileID])!=null&&C.text)&&(k=this.prevPlacement.variableOffsets[h.crossTileID].anchor),h.crossTileID===0)throw Error("symbolInstance.crossTileID can't be 0");return this.variableOffsets[h.crossTileID]={textOffset:T,width:r,height:i,anchor:x,textBoxScale:n,prevAnchor:k},this.markUsedJustification(p,x,h,d),p.allowVerticalPlacement&&(this.markUsedOrientation(p,d,h),this.placedOrientations[h.crossTileID]=d),{shift:A,placedGlyphBoxes:y}}}placeLayerBucketPart(e,t,r){let{bucket:i,layout:n,translationText:a,translationIcon:o,unwrappedTileID:s,pitchedLabelPlaneMatrix:l,textPixelRatio:u,holdingForFade:c,collisionBoxArray:f,partiallyEvaluatedTextSize:h,collisionGroup:p}=e.parameters,d=n.get("text-optional"),v=n.get("icon-optional"),m=sC(n,"text-overlap","text-allow-overlap"),g=m==="always",w=sC(n,"icon-overlap","icon-allow-overlap"),_=w==="always",b=n.get("text-rotation-alignment")==="map",S=n.get("text-pitch-alignment")==="map",x=n.get("icon-text-fit")!=="none",T=n.get("symbol-z-order")==="viewport-y",A=n.get("symbol-height-anchor")==="ground",y=g&&(_||!i.hasIconData()||v),E=_&&(g||!i.hasTextData()||d);!i.collisionArrays&&f&&i.deserializeCollisionBoxes(f);let M=this.retainedQueryData[i.bucketInstanceId].tileID,C=this._getTerrainElevationFunc(M),k=this.transform.getFastPathSimpleProjectionMatrix(M),D=(L,P,R)=>{var _e,he;if(t[L.crossTileID])return;if(c){this.placements[L.crossTileID]=new tot(!1,!1,!1);return}let F=L.heightOffset,I=!1,B=!1,O=!0,$=null,Y={box:null,placeable:!1,offscreen:null,occluded:!1},K={box:null,placeable:!1,offscreen:null},j=null,q=null,Q=null,U=0,V=0,X=0;P.textFeatureIndex?U=P.textFeatureIndex:L.useRuntimeCollisionCircles&&(U=L.featureIndex),P.verticalTextFeatureIndex&&(V=P.verticalTextFeatureIndex);let G=P.textBox;if(G){let oe=ee=>{let ae=1;if(i.allowVerticalPlacement&&!ee&&this.prevPlacement){let xe=this.prevPlacement.placedOrientations[L.crossTileID];xe&&(this.placedOrientations[L.crossTileID]=xe,ae=xe,this.markUsedOrientation(i,ae,L))}return ae},Me=(ee,ae)=>{if(i.allowVerticalPlacement&&L.numVerticalGlyphVertices>0&&P.verticalTextBox){for(let xe of i.writingModes)if(xe===2?(Y=ae(),K=Y):Y=ee(),Y==null?void 0:Y.placeable)break}else Y=ee()},ye=L.textAnchorOffsetStartIndex,ce=L.textAnchorOffsetEndIndex;if(ce===ye){let ee=(ae,xe)=>{let re=this.collisionIndex.placeCollisionBox(ae,m,u,M,s,S,b,a,p.predicate,C,void 0,k,F,A);return re!=null&&re.placeable&&(this.markUsedOrientation(i,xe,L),this.placedOrientations[L.crossTileID]=xe),re};Me(()=>ee(G,1),()=>{let ae=P.verticalTextBox;return i.allowVerticalPlacement&&L.numVerticalGlyphVertices>0&&ae?ee(ae,2):{box:null,offscreen:null}}),oe(Y==null?void 0:Y.placeable)}else{let ee=Mq[(he=(_e=this.prevPlacement)==null?void 0:_e.variableOffsets[L.crossTileID])==null?void 0:he.anchor],ae=(re,pe,we)=>{let Fe=re.x2-re.x1,Ee=re.y2-re.y1,Ce=L.textBoxScale,be=x&&w==="never"?pe:null,Ie=null,Oe=m==="never"?1:2,Qe="never";ee&&Oe++;for(let et=0;etae(G,P.iconBox,1),()=>{let re=P.verticalTextBox,pe=Y==null?void 0:Y.placeable;return i.allowVerticalPlacement&&!pe&&L.numVerticalGlyphVertices>0&&re?ae(re,P.verticalIconBox,2):{box:null,occluded:!0,offscreen:null}}),Y&&(I=Y.placeable,O=Y.offscreen);let xe=oe(Y==null?void 0:Y.placeable);if(!I&&this.prevPlacement){let re=this.prevPlacement.variableOffsets[L.crossTileID];re&&(this.variableOffsets[L.crossTileID]=re,this.markUsedJustification(i,re.anchor,L,xe))}}}if(j=Y,I=j==null?void 0:j.placeable,O=j==null?void 0:j.offscreen,L.useRuntimeCollisionCircles&&L.centerJustifiedTextSymbolIndex>=0){let oe=i.text.placedSymbolArray.get(L.centerJustifiedTextSymbolIndex),Me=Aq(i.textSizeData,h,oe),ye=n.get("text-padding"),ce=L.collisionCircleDiameter;q=this.collisionIndex.placeCollisionCircles(m,oe,i.lineVertexArray,i.glyphOffsetArray,Me,s,l,r,S,p.predicate,ce,ye,a,C),q.circles.length&&q.collisionDetected&&!r&&Fa("Collisions detected, but collision boxes are not shown"),I=g||q.circles.length>0&&!q.collisionDetected,O&&(O=q.offscreen)}if(P.iconFeatureIndex&&(X=P.iconFeatureIndex),P.iconBox){let oe=Me=>this.collisionIndex.placeCollisionBox(Me,w,u,M,s,S,b,o,p.predicate,C,x&&$?$:void 0,k,F,A);K&&K.placeable&&P.verticalIconBox?(Q=oe(P.verticalIconBox),B=Q.placeable):(Q=oe(P.iconBox),B=Q.placeable),O&&(O=Q.offscreen)}let H=d||L.numHorizontalGlyphVertices===0&&L.numVerticalGlyphVertices===0,J=v||L.numIconVertices===0;!H&&!J?B=I=B&&I:J?H||B&&(B=I):I=B&&I;let te=I&&j.placeable,ue=B&&Q.placeable;if(te&&(K&&K.placeable&&V?this.collisionIndex.insertCollisionBox(j.box,m,n.get("text-ignore-placement"),i.bucketInstanceId,V,p.ID):this.collisionIndex.insertCollisionBox(j.box,m,n.get("text-ignore-placement"),i.bucketInstanceId,U,p.ID)),ue&&this.collisionIndex.insertCollisionBox(Q.box,w,n.get("icon-ignore-placement"),i.bucketInstanceId,X,p.ID),q&&I&&this.collisionIndex.insertCollisionCircles(q.circles,m,n.get("text-ignore-placement"),i.bucketInstanceId,U,p.ID),r&&this.storeCollisionData(i.bucketInstanceId,R,P,j,Q,q),L.crossTileID===0)throw Error("symbolInstance.crossTileID can't be 0");if(i.bucketInstanceId===0)throw Error("bucket.bucketInstanceId can't be 0");let ge=(I||y)&&!(j!=null&&j.occluded),ke=(B||E)&&!(Q!=null&&Q.occluded);this.placements[L.crossTileID]=new tot(ge,ke,O||i.justReloaded),t[L.crossTileID]=!0};if(T){if(e.symbolInstanceStart!==0)throw Error("bucket.bucketInstanceId should be 0");let L=i.getSortedSymbolIndexes(-this.transform.bearingInRadians);for(let P=L.length-1;P>=0;--P){let R=L[P];D(i.symbolInstances.get(R),i.collisionArrays[R],R)}}else for(let L=e.symbolInstanceStart;L=0&&(a>=0&&s!==a?e.text.placedSymbolArray.get(s).crossTileID=0:e.text.placedSymbolArray.get(s).crossTileID=r.crossTileID)}markUsedOrientation(e,t,r){let i=t===1||t===3?t:0,n=t===2?t:0,a=[r.leftJustifiedTextSymbolIndex,r.centerJustifiedTextSymbolIndex,r.rightJustifiedTextSymbolIndex];for(let o of a)e.text.placedSymbolArray.get(o).placedOrientation=i;r.verticalPlacedTextSymbolIndex&&(e.text.placedSymbolArray.get(r.verticalPlacedTextSymbolIndex).placedOrientation=n)}commit(e){this.commitTime=e,this.zoomAtLastRecencyCheck=this.transform.zoom;let t=this.prevPlacement,r=!1;this.prevZoomAdjustment=t?t.zoomAdjustment(this.transform.zoom):0;let i=t?t.symbolFadeChange(e):1,n=t?t.opacities:{},a=t?t.variableOffsets:{},o=t?t.placedOrientations:{};for(let s in this.placements){let l=this.placements[s],u=n[s];u?(this.opacities[s]=new NC(u,i,l.text,l.icon),r||(r=l.text!==u.text.placed),r||(r=l.icon!==u.icon.placed)):(this.opacities[s]=new NC(null,i,l.text,l.icon,l.skipFade),r||(r=l.text||l.icon))}for(let s in n){let l=n[s];if(!this.opacities[s]){let u=new NC(l,i,!1,!1);u.isHidden()||(this.opacities[s]=u,r||(r=l.text.placed),r||(r=l.icon.placed))}}for(let s in a)!this.variableOffsets[s]&&this.opacities[s]&&!this.opacities[s].isHidden()&&(this.variableOffsets[s]=a[s]);for(let s in o)!this.placedOrientations[s]&&this.opacities[s]&&!this.opacities[s].isHidden()&&(this.placedOrientations[s]=o[s]);if(t&&t.lastPlacementChangeTime===void 0)throw Error("Last placement time for previous placement is not defined");r?this.lastPlacementChangeTime=e:typeof this.lastPlacementChangeTime!="number"&&(this.lastPlacementChangeTime=t?t.lastPlacementChangeTime:e)}updateLayerOpacities(e,t){let r={};for(let i of t){let n=i.getBucket(e);n&&i.latestFeatureIndex&&e.id===n.layerIds[0]&&this.updateBucketOpacities(n,i.tileID,r,i.collisionBoxArray)}}updateBucketOpacities(e,t,r,i){e.hasTextData()&&(e.text.opacityVertexArray.clear(),e.text.hasVisibleVertices=!1),e.hasIconData()&&(e.icon.opacityVertexArray.clear(),e.icon.hasVisibleVertices=!1),e.hasIconCollisionBoxData()&&e.iconCollisionBox.collisionVertexArray.clear(),e.hasTextCollisionBoxData()&&e.textCollisionBox.collisionVertexArray.clear();let n=e.layers[0],a=n.layout,o=new NC(null,0,!1,!1,!0),s=a.get("text-allow-overlap"),l=a.get("icon-allow-overlap"),u=n._unevaluatedLayout.hasValue("text-variable-anchor")||n._unevaluatedLayout.hasValue("text-variable-anchor-offset"),c=a.get("text-rotation-alignment")==="map",f=a.get("text-pitch-alignment")==="map",h=a.get("icon-text-fit")!=="none",p=new NC(null,0,s&&(l||!e.hasIconData()||a.get("icon-optional")),l&&(s||!e.hasTextData()||a.get("text-optional")),!0);!e.collisionArrays&&i&&(e.hasIconCollisionBoxData()||e.hasTextCollisionBoxData())&&e.deserializeCollisionBoxes(i);let d=(m,g,w)=>{for(let _=0;_0||_>0,A=g.numIconVertices>0,y=this.placedOrientations[g.crossTileID],E=y===2,M=y===1||y===3;if(T){let k=not(x.text),D=E?UC:k;d(e.text,w,D);let L=M?UC:k;d(e.text,_,L);let P=x.text.isHidden(),R=[g.rightJustifiedTextSymbolIndex,g.centerJustifiedTextSymbolIndex,g.leftJustifiedTextSymbolIndex];for(let B of R)B>=0&&(e.text.placedSymbolArray.get(B).hidden=P||E?1:0);g.verticalPlacedTextSymbolIndex>=0&&(e.text.placedSymbolArray.get(g.verticalPlacedTextSymbolIndex).hidden=P||M?1:0);let F=this.variableOffsets[g.crossTileID];F&&this.markUsedJustification(e,F.anchor,g,y);let I=this.placedOrientations[g.crossTileID];I&&(this.markUsedJustification(e,"left",g,I),this.markUsedOrientation(e,I,g))}if(A){let k=not(x.icon),D=!(h&&g.verticalPlacedIconSymbolIndex&&E);if(g.placedIconSymbolIndex>=0){let L=D?k:UC;d(e.icon,g.numIconVertices,L),e.icon.placedSymbolArray.get(g.placedIconSymbolIndex).hidden=x.icon.isHidden()}if(g.verticalPlacedIconSymbolIndex>=0){let L=D?UC:k;d(e.icon,g.numVerticalIconVertices,L),e.icon.placedSymbolArray.get(g.verticalPlacedIconSymbolIndex).hidden=x.icon.isHidden()}}let C=v!=null&&v.has(m)?v.get(m):{text:null,icon:null};if(e.hasIconCollisionBoxData()||e.hasTextCollisionBoxData()){let k=e.collisionArrays[m];if(k){let D=new tr(0,0);if(k.textBox||k.verticalTextBox){let L=!0;if(u){let P=this.variableOffsets[b];P?(D=rot(P.anchor,P.width,P.height,P.textOffset,P.textBoxScale),c&&D._rotate(f?-this.transform.bearingInRadians:this.transform.bearingInRadians)):L=!1}if(k.textBox||k.verticalTextBox){let P;k.textBox&&(P=E),k.verticalTextBox&&(P=M),iot(e.textCollisionBox.collisionVertexArray,x.text.placed,!L||P,C.text,D.x,D.y)}}if(k.iconBox||k.verticalIconBox){let L=!(M||!k.verticalIconBox),P;k.iconBox&&(P=L),k.verticalIconBox&&(P=!L),iot(e.iconCollisionBox.collisionVertexArray,x.icon.placed,P,C.icon,h?D.x:0,h?D.y:0)}}}}if(e.sortFeatures(-this.transform.bearingInRadians),this.retainedQueryData[e.bucketInstanceId]&&(this.retainedQueryData[e.bucketInstanceId].featureSortOrder=e.featureSortOrder),e.hasTextData()&&e.text.opacityVertexBuffer&&e.text.opacityVertexBuffer.updateData(e.text.opacityVertexArray),e.hasIconData()&&e.icon.opacityVertexBuffer&&e.icon.opacityVertexBuffer.updateData(e.icon.opacityVertexArray),e.hasIconCollisionBoxData()&&e.iconCollisionBox.collisionVertexBuffer&&e.iconCollisionBox.collisionVertexBuffer.updateData(e.iconCollisionBox.collisionVertexArray),e.hasTextCollisionBoxData()&&e.textCollisionBox.collisionVertexBuffer&&e.textCollisionBox.collisionVertexBuffer.updateData(e.textCollisionBox.collisionVertexArray),e.text.opacityVertexArray.length!==e.text.layoutVertexArray.length/4)throw Error(`bucket.text.opacityVertexArray.length (= ${e.text.opacityVertexArray.length}) !== bucket.text.layoutVertexArray.length (= ${e.text.layoutVertexArray.length}) / 4`);if(e.icon.opacityVertexArray.length!==e.icon.layoutVertexArray.length/4)throw Error(`bucket.icon.opacityVertexArray.length (= ${e.icon.opacityVertexArray.length}) !== bucket.icon.layoutVertexArray.length (= ${e.icon.layoutVertexArray.length}) / 4`);e.bucketInstanceId in this.collisionCircleArrays&&(e.collisionCircleArray=this.collisionCircleArrays[e.bucketInstanceId],delete this.collisionCircleArrays[e.bucketInstanceId])}symbolFadeChange(e){return this.fadeDuration===0?1:(e-this.commitTime)/this.fadeDuration+this.prevZoomAdjustment}zoomAdjustment(e){return Math.max(0,(this.transform.zoom-e)/1.5)}hasTransitions(e){return this.stale||e-this.lastPlacementChangeTimee}setStale(){this.stale=!0}};_Ar=2**25,wAr=2**24,TAr=2**17,AAr=2**16;UC=0,MAr=class{constructor(e){this._sortAcrossTiles=e.layout.get("symbol-z-order")!=="viewport-y"&&!e.layout.get("symbol-sort-key").isConstant(),this._currentTileIndex=0,this._currentPartIndex=0,this._seenCrossTileIDs={},this._bucketParts=[]}continuePlacement(e,t,r,i,n){let a=this._bucketParts;for(;this._currentTileIndexo.sortKey-s.sortKey));this._currentPartIndex!this._forceFullPlacement&&zo()-i>2;for(;this._currentPlacementIndex>=0;){let a=t[e[this._currentPlacementIndex]],o=this.placement.collisionIndex.transform.zoom;if(aae(a)&&a.layout&&(!a.minzoom||a.minzoom<=o)&&(!a.maxzoom||a.maxzoom>o)){if(this._inProgressLayer||(this._inProgressLayer=new MAr(a)),this._inProgressLayer.continuePlacement(r[a.source],this.placement,this._showCollisionBoxes,a,n))return;delete this._inProgressLayer}this._currentPlacementIndex--}this._done=!0}commit(e){return this.placement.commit(e),this.placement}},aot=[Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array],_l=new Uint32Array(96),EAr=class _st{static from(t){if(!t||t.byteLength===void 0||t.buffer)throw Error("Data must be an instance of ArrayBuffer or SharedArrayBuffer.");let[r,i]=new Uint8Array(t,0,2);if(r!==219)throw Error("Data does not appear to be in a KDBush format.");let n=i>>4;if(n!==1)throw Error(`Got v${n} data when expected v1.`);let a=aot[i&15];if(!a)throw Error("Unrecognized array type.");let[o]=new Uint16Array(t,2,1),[s]=new Uint32Array(t,4,1);return new _st(s,o,a,void 0,t)}constructor(t,r=64,i=Float64Array,n=ArrayBuffer,a){if(isNaN(t)||t<0)throw Error(`Unexpected numItems value: ${t}.`);this.numItems=+t,this.nodeSize=Math.min(Math.max(+r,2),65535),this.ArrayType=i,this.IndexArrayType=t<65536?Uint16Array:Uint32Array;let o=aot.indexOf(this.ArrayType),s=t*2*this.ArrayType.BYTES_PER_ELEMENT,l=t*this.IndexArrayType.BYTES_PER_ELEMENT,u=(8-l%8)%8;if(o<0)throw Error(`Unexpected typed array class: ${i}.`);if(a)this.data=a,this.ids=new this.IndexArrayType(a,8,t),this.coords=new i(a,8+l+u,t*2),this._pos=t*2,this._finished=!0;else{let c=this.data=new n(8+s+l+u);this.ids=new this.IndexArrayType(c,8,t),this.coords=new i(c,8+l+u,t*2),this._pos=0,this._finished=!1,new Uint8Array(c,0,2).set([219,16+o]),new Uint16Array(c,2,1)[0]=r,new Uint32Array(c,4,1)[0]=t}}add(t,r){let i=this._pos>>1;return this.ids[i]=i,this.coords[this._pos++]=t,this.coords[this._pos++]=r,i}finish(){let t=this._pos>>1;if(t!==this.numItems)throw Error(`Added ${t} items when expected ${this.numItems}.`);return toe(this.ids,this.coords,this.nodeSize,0,this.numItems-1,0),this._finished=!0,this}range(t,r,i,n){if(!this._finished)throw Error("Data not yet indexed - call index.finish().");let{ids:a,coords:o,nodeSize:s}=this;_l[0]=0,_l[1]=a.length-1,_l[2]=0;let l=3,u=[];for(;l>0;){let c=_l[--l],f=_l[--l],h=_l[--l];if(f-h<=s){for(let m=h;m<=f;m++){let g=o[2*m],w=o[2*m+1];g>=t&&g<=i&&w>=r&&w<=n&&u.push(a[m])}continue}let p=h+f>>1,d=o[2*p],v=o[2*p+1];d>=t&&d<=i&&v>=r&&v<=n&&u.push(a[p]),(c===0?t<=d:r<=v)&&(_l[l++]=h,_l[l++]=p-1,_l[l++]=1-c),(c===0?i>=d:n>=v)&&(_l[l++]=p+1,_l[l++]=f,_l[l++]=1-c)}return u}within(t,r,i){let n=[];return this.withinInto(t,r,i,n),n}withinInto(t,r,i,n){if(!this._finished)throw Error("Data not yet indexed - call index.finish().");let{ids:a,coords:o,nodeSize:s}=this;_l[0]=0,_l[1]=a.length-1,_l[2]=0;let l=3,u=0,c=i*i;for(;l>0;){let f=_l[--l],h=_l[--l],p=_l[--l];if(h-p<=s){for(let g=p;g<=h;g++)oot(o[2*g],o[2*g+1],t,r)<=c&&(n[u++]=a[g]);continue}let d=p+h>>1,v=o[2*d],m=o[2*d+1];oot(v,m,t,r)<=c&&(n[u++]=a[d]),(f===0?t-i<=v:r-i<=m)&&(_l[l++]=p,_l[l++]=d-1,_l[l++]=1-f),(f===0?t+i>=v:r+i>=m)&&(_l[l++]=d+1,_l[l++]=h,_l[l++]=1-f)}return u}};GC=512/Br/2,kAr=class{constructor(e,t,r){this.tileID=e,this.bucketInstanceId=r,this._symbolsByKey={};let i=new Map;for(let n=0;n({x:Math.floor(s.anchorX*GC),y:Math.floor(s.anchorY*GC)})),crossTileIDs:a.map(s=>s.crossTileID)};if(o.positions.length>128){let s=new EAr(o.positions.length,16,Uint16Array);for(let{x:l,y:u}of o.positions)s.add(l,u);s.finish(),delete o.positions,o.index=s}this._symbolsByKey[n]=o}}getScaledCoordinates(e,t){let{x:r,y:i,z:n}=this.tileID.canonical,{x:a,y:o,z:s}=t.canonical,l=s-n,u=GC/2**l,c=(a*Br+e.anchorX)*u,f=(o*Br+e.anchorY)*u,h=r*Br*GC,p=i*Br*GC;return{x:Math.floor(c-h),y:Math.floor(f-p)}}findMatches(e,t,r){let i=this.tileID.canonical.ze)}},CAr=class{constructor(){this.maxCrossTileID=0}generate(){return++this.maxCrossTileID}},DAr=class{constructor(){this.indexes={},this.usedCrossTileIDs={},this.lng=0}handleWrapJump(e){let t=Math.round((e-this.lng)/360);if(t!==0)for(let r in this.indexes){let i=this.indexes[r],n={};for(let a in i){let o=i[a];o.tileID=o.tileID.unwrapTo(o.tileID.wrap+t),n[o.tileID.key]=o}this.indexes[r]=n}this.lng=e}addBucket(e,t,r){var n,a,o;if((n=this.indexes[e.overscaledZ])!=null&&n[e.key]){if(this.indexes[e.overscaledZ][e.key].bucketInstanceId===t.bucketInstanceId)return!1;this.removeBucketCrossTileIDs(e.overscaledZ,this.indexes[e.overscaledZ][e.key])}for(let s=0;se.overscaledZ)for(let u in l){let c=l[u];c.tileID.isChildOf(e)&&c.findMatches(t.symbolInstances,e,i)}else{let u=l[e.scaledTo(Number(s)).key];u&&u.findMatches(t.symbolInstances,e,i)}}for(let s=0;s{var p;return l.getProjectionData({overscaledTileID:new Gc(h.tileID.canonical.z,(p=h.tileID.wrap)!=null?p:0,h.tileID.canonical.z,h.tileID.canonical.x,h.tileID.canonical.y),aligned:h.aligned,applyGlobeMatrix:h.applyGlobeMatrix,applyTerrainMatrix:h.applyTerrainMatrix})}},f=o.renderingMode?o.renderingMode:"2d";if(i.currentPass==="offscreen"){let h=o.prerender;h&&(e.setCustomLayerDefaults(),a.setColorMode(e.colorModeForRenderPass()),h.call(o,a.gl,c),a.setDirty(),e.setBaseState())}else if(i.currentPass==="translucent"){e.setCustomLayerDefaults(),a.setColorMode(e.colorModeForRenderPass()),a.setStencilMode(Ro.disabled);let h=f==="3d"?e.getDepthModeFor3D():e.getDepthModeForSublayer(0,Ua.ReadOnly);a.setDepthMode(h),o.render(a.gl,c),a.setDirty(),e.setBaseState(),a.bindFramebuffer.set(null)}}function rkr(e,t){let r=e.context,i=r.gl,n=e.transform,a=Hl.unblended,o=new Ua(i.LEQUAL,Ua.ReadWrite,[0,1]),s=t.tileManager.getRenderableTiles(),l=e.useProgram("terrainDepth");r.bindFramebuffer.set(t.getFramebuffer().framebuffer),r.viewport.set([0,0,e.width/devicePixelRatio,e.height/devicePixelRatio]),r.clear({color:aa.white,depth:1});for(let u of s){let c=t.getTerrainMesh(u.tileID),f=t.getTerrainData(u.tileID),h=n.getProjectionData({overscaledTileID:u.tileID,applyTerrainMatrix:!1,applyGlobeMatrix:!0}),p=TMr(t.getSkirtLength(n.zoom));l.draw(r,i.TRIANGLES,o,Ro.disabled,a,Eo.backCCW,p,f,h,"terrain",c.vertexBuffer,c.indexBuffer,c.segments)}r.bindFramebuffer.set(null),r.viewport.set([0,0,e.width,e.height])}function ikr(e,t,r,i){let{isRenderingGlobe:n}=i,a=e.context,o=a.gl,s=e.transform,l=e.colorModeForRenderPass(),u=e.getDepthModeFor3D(),c=e.useProgram("terrain");a.bindFramebuffer.set(null),a.viewport.set([0,0,e.width,e.height]);for(let f of r){let h=t.getTerrainMesh(f.tileID),p=e.renderToTexture.getTexture(f),d=t.getTerrainData(f.tileID);a.activeTexture.set(o.TEXTURE0),p.bind(o.LINEAR,o.CLAMP_TO_EDGE,o.LINEAR_MIPMAP_LINEAR);let v=t.getSkirtLength(s.zoom),m=s.calculateFogMatrix(f.tileID.toUnwrapped()),g=wMr(v,m,e.style.sky,s.pitch,n),w=vf(i,f.tileID,{applyTerrainMatrix:!1});c.draw(a,o.TRIANGLES,u,Ro.disabled,l,Eo.backCCW,g,d,w,"terrain",h.vertexBuffer,h.indexBuffer,h.segments)}}function vlt(e,t){if(!t.mesh){let r=new Hm;r.emplaceBack(-1,-1),r.emplaceBack(1,-1),r.emplaceBack(1,1),r.emplaceBack(-1,1);let i=new Rv;i.emplaceBack(0,1,2),i.emplaceBack(0,2,3),t.mesh=new e8(e.createVertexBuffer(r,T3.members),e.createIndexBuffer(i),Js.simpleSegment(0,0,r.length,i.length))}return t.mesh}function nkr(e,t){let r=e.context,i=r.gl,n=ASr(t,e.transform,e.pixelRatio),a=new Ua(i.LEQUAL,Ua.ReadWrite,[0,1]),o=Ro.disabled,s=e.colorModeForRenderPass(),l=e.useProgram("sky"),u=vlt(r,t);l.draw(r,i.TRIANGLES,a,o,s,Eo.disabled,n,null,void 0,"sky",u.vertexBuffer,u.indexBuffer,u.segments)}function akr(e,t){let r=e.getCartesianPosition();Itt(r,r);let i=up(new Float64Array(16));return e.properties.get("anchor")==="map"&&(Nm(i,i,t.rollInRadians),f3(i,i,-t.pitchInRadians),Nm(i,i,t.bearingInRadians),f3(i,i,t.center.lat*Math.PI/180),hne(i,i,-t.center.lng*Math.PI/180)),Rtt(r,r,i),r}function okr(e,t,r){let i=e.context,n=i.gl,a=e.useProgram("atmosphere"),o=new Ua(n.LEQUAL,Ua.ReadOnly,[0,1]),s=e.transform,l=akr(r,e.transform),u=s.getProjectionData({overscaledTileID:null,applyGlobeMatrix:!0,applyTerrainMatrix:!0}),c=s6(s.worldSize,s.center.lat),f=Gst(s),h=Hst(cp(f)-c,c),p=t.properties.get("atmosphere-blend")*u.projectionTransition*h;if(p===0)return;let d=wSr(l,p,f,c,s.inverseProjectionMatrix),v=vlt(i,t);a.draw(i,n.TRIANGLES,o,Ro.disabled,Hl.alphaBlended,Eo.disabled,d,null,null,"atmosphere",v.vertexBuffer,v.indexBuffer,v.segments)}function Ooe(e,t){let r=!1,i=null,n,a=()=>{i=null,r&&(r=(e(...n),i=setTimeout(a,t),!1))};return(...o)=>(r=!0,n=o,i||a(),i)}function $C(e,t){(!e.duration||e.duration({around:i,panDelta:i.sub(r)}),activateOnStart:!0,moveStateManager:new i8({checkCorrectEvent:r=>r.button===0&&!r.ctrlKey}),enable:e,assignEvents:dO})}function Mkr({enable:e,clickTolerance:t,aroundCenter:r=!0,minPixelCenterThreshold:i=100,rotateSpeed:n=.8},a){return new r8({clickTolerance:t,move:(o,s)=>{let l=a();if(r&&Math.abs(l.y-o.y)>i)return{bearingDelta:_ne(new rr(o.x,s.y),s,l)};let u=(s.x-o.x)*n;return r&&s.yo.button===0&&o.ctrlKey||o.button===2&&!o.ctrlKey}),enable:e,assignEvents:dO})}function Skr({enable:e,clickTolerance:t,pitchSpeed:r=-.5}){return new r8({clickTolerance:t,move:(i,n)=>({pitchDelta:(n.y-i.y)*r}),moveStateManager:new i8({checkCorrectEvent:i=>i.button===0&&i.ctrlKey||i.button===2}),enable:e,assignEvents:dO})}function Ekr({enable:e,clickTolerance:t,rollDegreesPerPixelMoved:r=.3},i){return new r8({clickTolerance:t,move:(n,a)=>{let o=i(),s=(a.x-n.x)*r;return a.yn.button===2&&n.ctrlKey}),enable:e,assignEvents:dO})}function Wq(e,t,r){for(let i=0;iMath.abs(e.x)}function Dkr(e){return e*(2-e)}function Jae(e){var t;return((t=e.panDelta)==null?void 0:t.mag())||e.zoomDelta||e.bearingDelta||e.pitchDelta||e.rollDelta}function $kr(e=!1){return Zi(this,null,function*(){if(b3!==void 0&&!e)return b3;if(window.navigator.permissions===void 0)return b3=!!window.navigator.geolocation,b3;try{b3=(yield window.navigator.permissions.query({name:"geolocation"})).state!=="denied"}catch(t){b3=!!window.navigator.geolocation}return b3})}function Llt(e,t,r,i=!1){if(i||!r.getCoveringTilesDetailsProvider().allowWorldCopies())return e==null?void 0:e.wrap();let n=new yn(e.lng,e.lat);if(e=new yn(e.lng,e.lat),t){let a=new yn(e.lng-360,e.lat),o=new yn(e.lng+360,e.lat),s=r.locationToScreenPoint(e).distSqr(t);r.locationToScreenPoint(a).distSqr(t)180;){let a=r.locationToScreenPoint(e);if(a.x>=0&&a.y>=0&&a.x<=r.width&&a.y<=r.height)break;e.lng>r.center.lng?e.lng-=360:e.lng+=360}return e.lng!==n.lng&&r.isPointOnMapSurface(r.locationToScreenPoint(e))?e:n}function Plt(e,t,r){let i=e.classList;for(let n in Uoe)i.remove(`maplibregl-${r}-anchor-${n}`);i.add(`maplibregl-${r}-anchor-${t}`)}function hp(e,t,r=[]){let i=Xn.createNS("http://www.w3.org/2000/svg",e);for(let n in t)i.setAttributeNS(null,n,t[n]);for(let n of r)i.appendChild(n);return i}function Wkr(){return Qae||(Qae=hp("svg",{display:"block",height:"41px",width:"27px",viewBox:"0 0 27 41"},[hp("g",{"fill-rule":"nonzero"},[hp("g",{transform:"translate(3.0, 29.0)",fill:"#000000"},[["10.5","5.25002273"],["10.5","5.25002273"],["9.5","4.77275007"],["8.5","4.29549936"],["7.5","3.81822308"],["6.5","3.34094679"],["5.5","2.86367051"],["4.5","2.38636864"]].map(([e,t])=>hp("ellipse",{opacity:"0.04",cx:"10.5",cy:"5.80029008",rx:e,ry:t}))),hp("g",{fill:Ilt},[hp("path",{d:"M27,13.5 C27,19.074644 20.250001,27.000002 14.75,34.500002 C14.016665,35.500004 12.983335,35.500004 12.25,34.500002 C6.7499993,27.000002 0,19.222562 0,13.5 C0,6.0441559 6.0441559,0 13.5,0 C20.955844,0 27,6.0441559 27,13.5 Z"})]),hp("g",{opacity:"0.25",fill:"#000000"},[hp("path",{d:"M13.5,0 C6.0441559,0 0,6.0441559 0,13.5 C0,19.222562 6.7499993,27 12.25,34.5 C13,35.522727 14.016664,35.500004 14.75,34.5 C20.250001,27 27,19.074644 27,13.5 C27,6.0441559 20.955844,0 13.5,0 Z M13.5,1 C20.415404,1 26,6.584596 26,13.5 C26,15.898657 24.495584,19.181431 22.220703,22.738281 C19.945823,26.295132 16.705119,30.142167 13.943359,33.908203 C13.743445,34.180814 13.612715,34.322738 13.5,34.441406 C13.387285,34.322738 13.256555,34.180814 13.056641,33.908203 C10.284481,30.127985 7.4148684,26.314159 5.015625,22.773438 C2.6163816,19.232715 1,15.953538 1,13.5 C1,6.584596 6.584596,1 13.5,1 Z"})]),hp("g",{transform:"translate(6.0, 7.0)",fill:"#FFFFFF"}),hp("g",{transform:"translate(8.0, 8.0)"},[hp("circle",{fill:"#000000",opacity:"0.25",cx:"5.5",cy:"5.5",r:"5.4999962"}),hp("circle",{fill:"#FFFFFF",cx:"5.5",cy:"5.5",r:"5.4999962"})])])]),Qae)}function Ykr(e){return e.firstElementChild.children[1]}function Zot(e,t,r){let i=(r==null?void 0:r.maxWidth)||100,{width:n,height:a}=e._camera.transform,o=a/2,s=n/2,l=e.unproject([s-i/2,o]),u=e.unproject([s+i/2,o]),c=Math.round(e.project(u).x-e.project(l).x),f=Math.min(i,c,n),h=l.distanceTo(u);if((r==null?void 0:r.unit)==="imperial"){let p=3.2808*h;p>5280?XC(t,f,p/5280,e._getUIString("ScaleControl.Miles")):XC(t,f,p,e._getUIString("ScaleControl.Feet"))}else(r==null?void 0:r.unit)==="nautical"?XC(t,f,h/1852,e._getUIString("ScaleControl.NauticalMiles")):h>=1e3?XC(t,f,h/1e3,e._getUIString("ScaleControl.Kilometers")):XC(t,f,h,e._getUIString("ScaleControl.Meters"))}function XC(e,t,r,i){let n=eCr(r),a=n/r;e.style.width=`${t*a}px`;let o=`${n}\xA0${i}`;e.textContent!==o&&(e.textContent=o)}function Qkr(e){let t=10**Math.ceil(-Math.log(e)/Math.LN10);return Math.round(e*t)/t}function eCr(e){let t=10**(`${Math.floor(e)}`.length-1),r=e/t;return r=r>=10?10:r>=5?5:r>=3?3:r>=2?2:r>=1?1:Qkr(r),t*r}function Blt(e){if(!e)return Blt(new rr(0,0));if(typeof e=="number"){let t=Math.round(Math.abs(e)/Math.SQRT2);return{center:new rr(0,0),top:new rr(0,e),"top-left":new rr(t,t),"top-right":new rr(-t,t),bottom:new rr(0,-e),"bottom-left":new rr(t,-t),"bottom-right":new rr(-t,-t),left:new rr(e,0),right:new rr(-e,0)}}if(e instanceof rr||Array.isArray(e)){let t=rr.convert(e);return{center:t,top:t,"top-left":t,"top-right":t,bottom:t,"bottom-left":t,"bottom-right":t,left:t,right:t}}return{center:rr.convert(e.center||[0,0]),top:rr.convert(e.top||[0,0]),"top-left":rr.convert(e["top-left"]||[0,0]),"top-right":rr.convert(e["top-right"]||[0,0]),bottom:rr.convert(e.bottom||[0,0]),"bottom-left":rr.convert(e["bottom-left"]||[0,0]),"bottom-right":rr.convert(e["bottom-right"]||[0,0]),left:rr.convert(e.left||[0,0]),right:rr.convert(e.right||[0,0])}}function sCr(e){var t,r,i,n;return e?{top:(t=e.top)!=null?t:0,right:(r=e.right)!=null?r:0,bottom:(i=e.bottom)!=null?i:0,left:(n=e.left)!=null?n:0}:{top:0,right:0,bottom:0,left:0}}function uCr(e,t){return QC().setRTLTextPlugin(e,t)}function cCr(){return QC().getRTLTextPluginStatus()}function fCr(){return lCr}function hCr(){return cO.workerCount}function dCr(e){cO.workerCount=e}function pCr(){return a0.MAX_PARALLEL_IMAGE_REQUESTS}function vCr(e){a0.MAX_PARALLEL_IMAGE_REQUESTS=e}function gCr(){return a0.WORKER_URL}function mCr(e){a0.WORKER_URL=e}function yCr(e){return Zi(this,null,function*(){yield Toe().broadcast("IS",e)})}var Olt,Kot,Rq,NC,Pae,l0,uO,VTr,GTr,HTr,jTr,UC,t,Ko,Xn,Bv,$Tr,vc,Cn,eoe,dp,Ns,s0,ZC,Qot,toe,est,tst,Zq,rst,r6r,i6r,roe,n6r,a6r,l6r,ioe,boe,u6r,c6r,f6r,h6r,Xat,d6r,p6r,Zat,v6r,g6r,m6r,_oe,cO,T6r,KC,ost,Bq,qv,cst,fst,Aoe,hst,pst,a6,U6r,V6r,e8,T3,qq,l6,yst,xst,bst,Z6r,_st,K6r,J6r,noe,eAr,zae,wst,tAr,Moe,Soe,sAr,not,Xm,ooe,mAr,aot,_Ar,SAr,CAr,lot,VC,uot,DAr,FAr,LAr,PAr,IAr,RAr,zAr,GC,BAr,qAr,dot,Al,OAr,jC,NAr,UAr,VAr,Fst,GAr,HAr,jAr,$Ar,WAr,YAr,XAr,ZAr,vot,dg,Lst,Pst,coe,foe,Loe,KAr,JAr,QAr,mot,yot,eMr,xot,aO,oO,_ot,tMr,qae,Ust,wot,Oae,dMr,Uae,pMr,Sot,jst,Dot,Xst,Fot,gMr,doe,mMr,yMr,xMr,bMr,_Mr,wMr,TMr,fO,MMr,Roe,Zst,i6,Jst,Gq,LMr,IMr,RMr,elt,zMr,BMr,qMr,OMr,NMr,tlt,UMr,VMr,GMr,HMr,jMr,$Mr,Pot,WMr,YMr,rlt,ilt,XMr,ZMr,KMr,JMr,eSr,tSr,rSr,iSr,nSr,aSr,oSr,hO,sSr,lSr,uSr,cSr,fSr,hSr,dSr,pSr,vSr,alt,olt,gSr,mSr,ySr,xSr,bSr,_Sr,wSr,TSr,ASr,Hq,MSr,SSr,Iot,ESr,Vo,kSr,CSr,DSr,FSr,LSr,PSr,ISr,RSr,zSr,BSr,qSr,OSr,NSr,USr,VSr,GSr,HSr,jSr,$Sr,WSr,YSr,XSr,ZSr,KSr,JSr,QSr,eEr,tEr,rEr,iEr,nEr,Boe,aEr,oEr,sEr,lEr,slt,Y0,Hl,fEr,Ua,Hae,Ro,Rot,jae,Eo,jq,pEr,Yae,Zae,HEr,jEr,$Er,WEr,YEr,skr,A3,lkr,glt,mlt,t8,ukr,ckr,fkr,hkr,dkr,pkr,vkr,gkr,ylt,ykr,voe,xkr,r8,bkr,i8,wkr,Tkr,dO,kkr,Noe,Got,xlt,blt,_lt,Ckr,wlt,$ot,Tlt,Alt,Fkr,Lkr,Mlt,Slt,Elt,klt,Pkr,Yq,Ikr,Rkr,zkr,Clt,Dlt,Flt,Bkr,Wot,qkr,n6,Okr,Nkr,Ukr,Yot,Vkr,Gkr,Hkr,jkr,b3,Uoe,Xot,Ilt,Qae,_3,Rlt,goe,Xkr,Xq,YC,w3,moe,zlt,Zkr,Kkr,Jkr,yoe,tCr,rCr,iCr,nCr,aCr,xoe,oCr,lCr,Nlt=Ci(()=>{Nat();Olt={};Kot="6.11.2";l0={frame(e,t,r,i){let n=i||window,a=n.requestAnimationFrame(s=>{o(),t(s)}),{unsubscribe:o}=Wk(e.signal,"abort",()=>{o(),n.cancelAnimationFrame(a),r(new YT(e.signal.reason))},!1)},frameAsync(e,t){return new Promise((r,i)=>{this.frame(e,r,i,t)})},getImageData(e,t=0){return this.getImageCanvasContext(e).getImageData(-t,-t,e.width+2*t,e.height+2*t)},getImageCanvasContext(e){let t;if(UB()&&!cne())t=new OffscreenCanvas(e.width,e.height).getContext("2d",{willReadFrequently:!0});else{let r=window.document.createElement("canvas");r.width=e.width,r.height=e.height,t=r.getContext("2d",{willReadFrequently:!0})}if(!t)throw Error("failed to create canvas 2d context");return t.drawImage(e,0,0,e.width,e.height),t},resolveURL(e){return Rq||(Rq=document.createElement("a")),Rq.href=e,Rq.href},get hardwareConcurrency(){return typeof navigator<"u"&&navigator.hardwareConcurrency||4},get prefersReducedMotion(){return Pae===void 0?matchMedia?(NC!=null||(NC=matchMedia("(prefers-reduced-motion: reduce)")),NC.matches):!1:Pae},set prefersReducedMotion(e){Pae=e}},uO=new class{constructor(){this._frozenAt=null}getCurrentTime(){return this._frozenAt===null?performance.now():this._frozenAt}setNow(e){this._frozenAt=e}restoreNow(){this._frozenAt=null}isFrozen(){return this._frozenAt!==null}};VTr=new Set("a.abbr.b.bdi.bdo.br.cite.code.del.div.em.i.img.ins.kbd.li.mark.ol.p.q.s.samp.small.span.strong.sub.sup.time.u.ul.var.wbr".split(".")),GTr=new Set(["alt","class","datetime","dir","height","href","hreflang","lang","referrerpolicy","rel","role","src","target","title","translate","type","width"]),HTr=new Set(["href","src"]),jTr=new Set(["http:","https:","mailto:"]);Xn=(Ko=class{static create(t,r,i){let n=window.document.createElement(t);return r!==void 0&&(n.className=r),i&&i.appendChild(n),n}static createNS(t,r){return window.document.createElementNS(t,r)}static disableDrag(){Ko.docStyle&&Ko.selectProp&&(Ko.userSelect=Ko.docStyle[Ko.selectProp],Ko.docStyle[Ko.selectProp]="none")}static enableDrag(){Ko.docStyle&&Ko.selectProp&&(Ko.docStyle[Ko.selectProp]=Ko.userSelect)}static suppressClickInternal(t){t.preventDefault(),t.stopPropagation(),window.removeEventListener("click",Ko.suppressClickInternal,!0)}static suppressClick(){window.addEventListener("click",Ko.suppressClickInternal,!0),window.setTimeout(()=>{window.removeEventListener("click",Ko.suppressClickInternal,!0)},0)}static getScale(t){let r=t.getBoundingClientRect();return{x:r.width/t.offsetWidth||1,y:r.height/t.offsetHeight||1,boundingClientRect:r}}static getPoint(t,r,i){let n=r.boundingClientRect;return new rr((i.clientX-n.left)/r.x-t.clientLeft,(i.clientY-n.top)/r.y-t.clientTop)}static mousePos(t,r){let i=Ko.getScale(t);return Ko.getPoint(t,i,r)}static touchPos(t,r){let i=[],n=Ko.getScale(t);for(let a of r)i.push(Ko.getPoint(t,n,a));return i}static sanitize(t){let r=new DOMParser().parseFromString(t,"text/html").body,{querySelectorAll:i,remove:n}=Iae();for(let o of Array.from(i.call(r,"*")))Ko.isAllowedElement(o)?Ko.removeDisallowedAttributes(o):n.call(o);let a=document.createDocumentFragment();return a.append(...r.childNodes),a}static isAllowedElement(t){let{namespaceURI:r,localName:i}=Iae();return r.call(t)==="http://www.w3.org/1999/xhtml"&&VTr.has(i.call(t))}static removeDisallowedAttributes(t){let{getAttributeNames:r,getAttribute:i,removeAttribute:n}=Iae();for(let a of r.call(t))Ko.isAllowedAttribute(a,i.call(t,a))||n.call(t,a)}static isAllowedAttribute(t,r){if(!GTr.has(t)&&!t.startsWith("aria-"))return!1;if(!HTr.has(t))return!0;try{return jTr.has(new URL(r,"https://maplibre.invalid/").protocol)}catch(i){return!1}}},Ko.docStyle=typeof window<"u"&&((t=window.document)==null?void 0:t.documentElement.style),Ko.selectProp=!Ko.docStyle||"userSelect"in Ko.docStyle?"userSelect":"webkitUserSelect",Ko);(function(e){let t,r,i,n;e.resetRequestQueue=()=>{t=[],r=0,i=0,n={}},e.addThrottleControl=f=>{let h=i++;return n[h]=f,h},e.removeThrottleControl=f=>{delete n[f],u()};let a=()=>{for(let f of Object.keys(n))if(n[f]())return!0;return!1};function o(f,h,p,d,v=!0,m){return Zi(this,null,function*(){let g=yield f.transformRequest(h,p);return eq(d.signal),Bv.getImage(g,d,v,m)})}e.transformAndGetImage=o,e.getImage=(f,h,p=!0,d)=>new Promise((v,m)=>{f.headers||(f.headers={}),f.headers.accept="image/webp,*/*",dn(f,{type:"image"});let g={abortController:h,requestParameters:f,supportImageRefresh:p,imageBitmapOptions:d,state:"queued",onError:w=>{m(w)},onSuccess:w=>{v(w)}};t.push(g),u()});let s=(f,h)=>typeof createImageBitmap=="function"?Ztt(f,h):Ktt(f),l=f=>Zi(null,null,function*(){f.state="running";let{requestParameters:h,supportImageRefresh:p,imageBitmapOptions:d,onError:v,onSuccess:m,abortController:g}=f,w=p===!1&&!d&&!o3(self)&&!Tne(h.url)&&(!h.headers||Object.keys(h.headers).reduce((b,S)=>b&&S==="accept",!0));r++;let _=w?c(h,g):mC(h,g);try{let b=yield _;delete f.abortController,f.state="completed",b.data instanceof HTMLImageElement||px(b.data)?m(b):!b.data||b.data.byteLength===0?m({data:null,cacheControl:b.cacheControl,expires:b.expires}):m({data:yield s(b.data,d),cacheControl:b.cacheControl,expires:b.expires})}catch(b){delete f.abortController,v(Oc(b))}finally{r--,u()}}),u=()=>{let f=a()?a0.MAX_PARALLEL_IMAGE_REQUESTS_PER_FRAME:a0.MAX_PARALLEL_IMAGE_REQUESTS;for(let h=r;h0;h++){let p=t.shift();if(p.abortController.signal.aborted){h--;continue}l(p)}},c=(f,h)=>new Promise((p,d)=>{let v=new Image,m=f.url,g=f.credentials;g&&g==="include"?v.crossOrigin="use-credentials":(g&&g==="same-origin"||!Mne(m))&&(v.crossOrigin="anonymous"),h.signal.addEventListener("abort",()=>{v.src="",d(new YT(h.signal.reason))}),v.fetchPriority="high",v.onload=()=>{v.onerror=v.onload=null,p({data:v})},v.onerror=()=>{v.onerror=v.onload=null,!h.signal.aborted&&d(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."))},v.src=m})})(Bv||(Bv={})),Bv.resetRequestQueue();$Tr=class{constructor(e){this._transformRequestFn=e!=null?e:null}transformRequest(e,t){return this._transformRequestFn&&this._transformRequestFn(e,t)||{url:e}}setTransformRequest(e){this._transformRequestFn=e}},vc=class extends o0{},Cn=class extends vc{},eoe=class extends vc{constructor(e={}){super("style.load",e)}},dp=class extends vc{constructor(e,t={}){super(e,t),this.dataType="style"}},Ns=class extends vc{constructor(e,t={}){super(e,t),this.dataType="source"}},s0=class extends vc{preventDefault(){this._defaultPrevented=!0}get defaultPrevented(){return this._defaultPrevented}constructor(e,t,r,i={}){r=r instanceof MouseEvent?r:new MouseEvent(e,r);let n=Xn.mousePos(t.getCanvas(),r),a=t.unproject(n);super(e,dn({point:n,lngLat:a,originalEvent:r},i)),this._defaultPrevented=!1,this.target=t}},ZC=class extends vc{preventDefault(){this._defaultPrevented=!0}get defaultPrevented(){return this._defaultPrevented}constructor(e,t,r){let i=e==="touchend"?r.changedTouches:r.touches,n=Xn.touchPos(t.getCanvasContainer(),i),a=n.map(l=>t.unproject(l)),o=n.reduce((l,u,c,f)=>l.add(u.div(f.length)),new rr(0,0)),s=t.unproject(o);super(e,{points:n,point:o,lngLats:a,lngLat:s,originalEvent:r}),this._defaultPrevented=!1}},Qot=class extends vc{preventDefault(){this._defaultPrevented=!0}get defaultPrevented(){return this._defaultPrevented}constructor(e,t){super("wheel",{originalEvent:t}),this._defaultPrevented=!1}},toe=class extends vc{},est=class extends vc{constructor(e={}){super("terrain",e)}},tst=class extends vc{constructor(e={}){super("projectiontransition",e)}},Zq=class extends vc{},rst=class extends vc{constructor(e={}){super("styleimagemissing",e)}};r6r=class extends cu{constructor(){super(),this.images={},this.updateVersion=0,this.loaded=!1,this.requestors=[],this.missingImageResolver=null,this._spriteImagesIds={},this._imagesIds=null,this._renderCallbacksDispatchedThisFrame={}}destroy(){for(let e of Object.keys(this.images))this.removeImage(e);this._spriteImagesIds={}}isLoaded(){return this.loaded}setLoaded(e){if(this.loaded!==e&&(this.loaded=e,e)){for(let{ids:t,promiseResolve:r}of this.requestors)r(this._getImagesForIds(t));this.requestors=[]}}getImage(e){let t=this.images[e];if(t&&!t.data&&t.spriteData){let r=t.spriteData;t.data=new Es({width:r.width,height:r.height},r.context.getImageData(r.x,r.y,r.width,r.height).data),t.spriteData=null}return t}addImage(e,t){if(this.images[e])throw Error(`Image id ${e} already exist, use updateImage instead`);this._validate(e,t)&&(this.images[e]=t,this._imagesIds=null,t.isWebGLImage&&this.updateImage(e,t,!1))}_validate(e,t){let r=!0,i=t.data||t.spriteData;return this._validateStretch(t.stretchX,i==null?void 0:i.width)||(this.fire(new Mn(Error(`Image "${e}" has invalid "stretchX" value`))),r=!1),this._validateStretch(t.stretchY,i==null?void 0:i.height)||(this.fire(new Mn(Error(`Image "${e}" has invalid "stretchY" value`))),r=!1),this._validateContent(t.content,t)||(this.fire(new Mn(Error(`Image "${e}" has invalid "content" value`))),r=!1),r}_validateStretch(e,t){if(!e)return!0;let r=0;for(let i of e){if(i[0]=e[1]}updateImage(e,t,r=!0){var n;let i=this.images[e];if(r){let a=i.data||i.spriteData;if(a.width!==t.data.width||a.height!==t.data.height)throw Error(`size mismatch between old image (${a.width}x${a.height}) and new image (${t.data.width}x${t.data.height}).`)}t.version=((n=i.version)!=null?n:0)+1,this.images[e]=t,this.updateVersion++}removeImage(e){var r;let t=this.images[e];t&&(delete this.images[e],this._imagesIds=null,(r=t.userImage)!=null&&r.onRemove&&t.userImage.onRemove())}listImages(){var e;return(e=this._imagesIds)!=null||(this._imagesIds=Object.keys(this.images)),this._imagesIds}_getSpriteImageId(e,t){return e==="default"?t:`${e}:${t}`}setSpriteImages(e,t){var o;let r=(o=this._spriteImagesIds[e])!=null?o:[],i=[];for(let s in t){let l=this._getSpriteImageId(e,s);i.push(l),l in this.images?this.updateImage(l,t[s],!1):this.addImage(l,t[s])}let n=new Set(i),a=r.filter(s=>!n.has(s));for(let s of a)this.removeImage(s);return this._spriteImagesIds[e]=i,{loaded:i,removed:a}}removeSpriteImages(e){var r;let t=(r=this._spriteImagesIds[e])!=null?r:[];for(let i of t)this.removeImage(i);return delete this._spriteImagesIds[e],t}removeAllSpriteImages(){let e=Object.values(this._spriteImagesIds).flat();for(let t of e)this.removeImage(t);return this._spriteImagesIds={},e}setMissingImageResolver(e){this.missingImageResolver=e}getImages(e){return new Promise((t,r)=>{let i=!0;if(!this.isLoaded())for(let n of e)this.images[n]||(i=!1);this.isLoaded()||i?t(this._getImagesForIds(e)):this.requestors.push({ids:e,promiseResolve:t})})}_getImagesForIds(e){return Zi(this,null,function*(){var n;let t=new Set(e.filter(a=>!this.getImage(a))),r=this.missingImageResolver;r&&(yield Promise.allSettled(Array.from(t,a=>r(a))));let i={};for(let a of e){let o=this.getImage(a);o&&(t.delete(a),i[a]={data:o.data.clone(),pixelRatio:o.pixelRatio,sdf:o.sdf,version:o.version,stretchX:o.stretchX,stretchY:o.stretchY,content:o.content,textFitWidth:o.textFitWidth,textFitHeight:o.textFitHeight,hasRenderCallback:!!((n=o.userImage)!=null&&n.render),isWebGLImage:o.isWebGLImage})}for(let a of t)this.fire(new rst({id:a})),Pa(`Image "${a}" could not be loaded. Please make sure you have added the image before it is needed with map.addImage(), resolved it with map.setMissingStyleImageResolver(), or included it in a "sprite" property in your style.`);return i})}beginFrame(){this._renderCallbacksDispatchedThisFrame={}}dispatchRenderCallbacks(e){for(let t of e){if(this._renderCallbacksDispatchedThisFrame[t])continue;this._renderCallbacksDispatchedThisFrame[t]=!0;let r=this.getImage(t);r||Pa(`Image with ID: "${t}" was not found`),Vnt(r)&&this.updateImage(t,r)}}cloneImages(){let e={};for(let t in this.images){let r=this.images[t];e[t]=da(fn({},r),{data:r.data?r.data.clone():null})}return e}},i6r=class{constructor(e){this._imageManager=e,this._entries={},this._image=new Es({width:1,height:1}),this._dirty=!0}destroy(){this._texture&&(this._texture=(this._texture.destroy(),null)),this._entries={},this._image=new Es({width:1,height:1}),this._dirty=!0}getPixelSize(){let{width:e,height:t}=this._image;return{width:e,height:t}}getPattern(e){let t=this._imageManager.getImage(e);if(!t)return null;let r=this._entries[e];if((r==null?void 0:r.image)!==t){let i={w:t.data.width+2,h:t.data.height+2,x:0,y:0};this._entries[e]={bin:i,position:new Cq(i,t),image:t}}else if(r.position.version!==t.version)r.position.version=t.version;else return r.position;return this._update(),this._entries[e].position}bind(e){let t=e.gl;this._texture?this._dirty&&(this._dirty=(this._texture.update(this._image),!1)):(this._texture=new Tu(e,this._image,t.RGBA),this._dirty=!1),this._texture.bind(t.LINEAR,t.CLAMP_TO_EDGE)}_update(){for(let n in this._entries)this._imageManager.getImage(n)||delete this._entries[n];let e=[];for(let n in this._entries)e.push(this._entries[n].bin);let{w:t,h:r}=cae(e),i=this._image;i.resize({width:t||1,height:r||1});for(let n in this._entries){let{bin:a}=this._entries[n],o=a.x+1,s=a.y+1,l=this._entries[n].image.data,u=l.width,c=l.height;Es.copy(l,i,{x:0,y:0},{x:o,y:s},{width:u,height:c}),Es.copy(l,i,{x:0,y:c-1},{x:o,y:s-1},{width:u,height:1}),Es.copy(l,i,{x:0,y:0},{x:o,y:s+c},{width:u,height:1}),Es.copy(l,i,{x:u-1,y:0},{x:o-1,y:s},{width:1,height:c}),Es.copy(l,i,{x:0,y:0},{x:o+u,y:s},{width:1,height:c})}this._dirty=!0}},roe=1114111,n6r={start:0,end:roe},a6r=0;l6r=class{constructor(e){this.requestManager=e,this._faces={},this._registered=new Set}setFontFaces(e){this._unregisterAll(),this._faces={};for(let[t,r]of Object.entries(e!=null?e:{})){let i=Array.isArray(r)?r:[r];this._faces[t]=i.map(n=>this._declareFontFace(t,n)).filter(n=>n!==null)}}hasFontFaces(){return Object.keys(this._faces).length>0}getFontFamily(e,t){return Zi(this,null,function*(){var r,i;for(let n of e.split(","))for(let a of(r=this._faces[n.trim()])!=null?r:[])if(s6r(a,t)&&((i=a.loaded)!=null||(a.loaded=this._loadFontFace(a)),yield a.loaded))return a.family;return null})}_declareFontFace(e,t){let r=typeof t=="string"?{url:t}:t;if(typeof(r==null?void 0:r.url)!="string")return Pa(`Ignoring the font face declared for "${e}": it has no URL.`),null;let i=`maplibre-gl-font-face-${a6r++}`,n=r["unicode-range"];if(!(n!=null&&n.length))return{url:r.url,ranges:[n6r],family:i};let a=[];for(let o of n){let s=o6r(o);if(!s){Pa(`Ignoring the unicode range "${o}" of the font face at ${r.url}: it is not a valid range.`);continue}a.push(s)}return a.length?{url:r.url,ranges:a,family:i}:null}_loadFontFace(e){return Zi(this,null,function*(){if(typeof FontFace>"u"||typeof document>"u"||!document.fonts)return Pa(`Ignoring the font face at ${e.url}: this environment has no CSS Font Loading API.`),!1;let t;try{return t=new FontFace(e.family,yield this._downloadFontFile(e.url)),Object.values(this._faces).some(r=>r.includes(e))?(document.fonts.add(t),this._registered.add(t),yield t.load(),!0):!1}catch(r){return t&&this._unregister(t),Pa(`Ignoring the font face at ${e.url}: ${Oc(r).message}`),!1}})}_downloadFontFile(e){return Zi(this,null,function*(){let t=yield this.requestManager.transformRequest(e,"Glyphs"),r=yield Ane(t,new AbortController);if(!(r!=null&&r.data))throw Error(`the response was empty for the font file at ${e}`);return r.data})}_unregister(e){var t;(t=document.fonts)==null||t.delete(e),this._registered.delete(e)}_unregisterAll(){var e;for(let t of this._registered)(e=document.fonts)==null||e.delete(t);this._registered.clear()}destroy(){this._unregisterAll(),this._faces={}}},ioe=1e20,boe=new Float64Array(256);for(let e=0;e<256;e++){let t=.5-(e/255)**.45454545454545453;boe[e]=t*Math.abs(t)}boe[255]=-1e20;u6r=class{constructor({fontSize:e=24,buffer:t=3,radius:r=8,cutoff:i=.25,fontFamily:n="sans-serif",fontWeight:a="normal",fontStyle:o="normal",lang:s=null}={}){this.buffer=t,this.radius=r,this.cutoff=i,this.lang=s;let l=this.size=e+t*4,u=this._createCanvas(l),c=this.ctx=u.getContext("2d",{willReadFrequently:!0});c.font=`${o} ${a} ${e}px ${n}`,c.textBaseline="alphabetic",c.textAlign="left",c.fillStyle="black",this.gridOuter=new Float64Array(l*l),this.gridInner=new Float64Array(l*l),this.f=new Float64Array(l),this.z=new Float64Array(l+1),this.v=new Uint16Array(l)}_createCanvas(e){if(typeof OffscreenCanvas<"u")return new OffscreenCanvas(e,e);let t=document.createElement("canvas");return t.width=t.height=e,t}draw(e){let{width:t,actualBoundingBoxAscent:r,actualBoundingBoxDescent:i,actualBoundingBoxLeft:n,actualBoundingBoxRight:a}=this.ctx.measureText(e),o=Math.ceil(r),s=Math.floor(-n),l=Math.max(0,Math.min(this.size-this.buffer,Math.ceil(a)-s)),u=Math.max(0,Math.min(this.size-this.buffer,o+Math.ceil(i))),c=l+2*this.buffer,f=u+2*this.buffer,h=Math.max(c*f,0),p=new Uint8ClampedArray(h),d={data:p,width:c,height:f,glyphWidth:l,glyphHeight:u,glyphTop:o,glyphLeft:s,glyphAdvance:t};if(l===0||u===0)return d;let{ctx:v,buffer:m,gridInner:g,gridOuter:w}=this;this.lang&&(v.lang=this.lang),v.clearRect(m,m,l,u),v.fillText(e,m-s,m+o);let _=v.getImageData(m,m,l,u);w.fill(ioe,0,h),g.fill(0,0,h);let b=3;for(let T=0;T{let r=new u6r(e);return r.buffer=t,r},h6r=class{constructor(e,t,r,i=f6r){this.requestManager=e,this.localIdeographFontFamily=t,this.entries={},this.lang=r,this.fontFaceManager=new l6r(e),this.createRasterizer=i}setURL(e){this.url=e}setFontFaces(e){this.fontFaceManager.setFontFaces(e),this.entries={}}getGlyphs(e){return Zi(this,null,function*(){var n;let t=[];for(let a in e)for(let o in e[a])for(let s of e[a][o])t.push(this._getAndCacheGlyphsPromise(a,s,o));let r=yield Promise.all(t),i={};for(let{stack:a,id:o,variant:s,glyph:l}of r)i[a]||(i[a]={}),(n=i[a])[s]||(n[s]={}),i[a][s][o]=l&&{id:l.id,bitmap:l.bitmap.clone(),metrics:l.metrics};return i})}_getAndCacheGlyphsPromise(e,t,r){return Zi(this,null,function*(){var l,u,c;(u=(l=this.entries)[e])!=null||(l[e]={glyphs:{default:{}},requests:{},ranges:{}});let i=this.entries[e],n=(c=i.glyphs)[r]||(c[r]={}),a=n[t];if(a!==void 0)return{stack:e,id:t,variant:r,glyph:a};if(r!=="default")return n[t]=null,{stack:e,id:t,variant:r,glyph:null};let o=t.codePointAt(0),s=this.fontFaceManager.hasFontFaces()?yield this.fontFaceManager.getFontFamily(e,o):null;return s?(a=n[t]=yield this._drawGlyph(i,e,t,s),{stack:e,id:t,variant:r,glyph:a}):!this.url||CC(t)||this._charUsesLocalIdeographFontFamily(o)?(a=n[t]=yield this._drawGlyph(i,e,t),{stack:e,id:t,variant:r,glyph:a}):da(fn({},yield this._downloadAndCacheRangePromise(e,t)),{variant:r})})}_downloadAndCacheRangePromise(e,t){return Zi(this,null,function*(){var a;let r=t.codePointAt(0),i=this.entries[e],n=Math.floor(r/256);if(i.ranges[n])return{stack:e,id:t,glyph:null};(a=i.requests)[n]||(a[n]=this._loadGlyphRange(e,n));try{let o=yield i.requests[n];for(let s in o)i.glyphs.default[String.fromCodePoint(+s)]=o[+s];return i.ranges[n]=!0,{stack:e,id:t,glyph:o[r]||null}}catch(o){let s=i.glyphs.default[t]=yield this._drawGlyph(i,e,t);return this._warnOnMissingGlyphRange(s,n,r,Oc(o)),{stack:e,id:t,glyph:s}}})}_loadGlyphRange(e,t){return Zi(this,null,function*(){let r=t*256,i=r+255,n=yield this.requestManager.transformRequest(this.url.replace("{fontstack}",e).replace("{range}",`${r}-${i}`),"Glyphs"),a=yield Ane(n,new AbortController);if(!(a!=null&&a.data))throw Error(`Could not load glyph range. range: ${t}, ${r}-${i}`);let o={};for(let s of Unt(a.data))o[s.id]=s;return o})}_warnOnMissingGlyphRange(e,t,r,i){let n=t*256,a=n+255,o=r.toString(16).padStart(4,"0").toUpperCase();Pa(`Unable to load glyph range ${t}, ${n}-${a}. Rendering codepoint U+${o} locally instead. ${i}`)}_charUsesLocalIdeographFontFamily(e){return!!this.localIdeographFontFamily&&Lnt(e)}_drawGlyph(e,t,r,i){return Zi(this,null,function*(){let n=(yield this._getTinySDF(e,t,r,i)).draw(r),a=new RegExp("^\\p{gc=Cf}+$","u").test(r);return{id:r.codePointAt(0),bitmap:new Tq({width:n.width||60,height:n.height||60},n.data),metrics:{width:a?0:n.glyphWidth/2||24,height:n.glyphHeight/2||24,left:n.glyphLeft/2+.5||0,top:n.glyphTop/2-27.5||-8,advance:a?0:n.glyphAdvance/2||24,isDoubleResolution:!0}}})}_getTinySDF(e,t,r,i){var l,u,c,f;let n=CC(r);if(i){let h=n?"clusterTinySDFs":"fontFaceTinySDFs";return(l=e[h])!=null||(e[h]={}),(u=e[h])[i]||(u[i]=this._createTinySDF(i,!1,n?3:1)),e[h][i]}let a=t===c6r&&this.localIdeographFontFamily!==""&&this._charUsesLocalIdeographFontFamily(r.codePointAt(0)),o=a?this.localIdeographFontFamily:t;if(n)return(c=e.clusterTinySDFs)!=null||(e.clusterTinySDFs={}),(f=e.clusterTinySDFs)[o]||(f[o]=this._createTinySDF(o,!0,3)),e.clusterTinySDFs[o];let s=a?"ideographTinySDF":"tinySDF";return e[s]||(e[s]=this._createTinySDF(o)),e[s]}_createTinySDF(e,t=!0,r=1){return Zi(this,null,function*(){var s;let i=e?e.split(","):[];i.push("sans-serif");let n=i.map(l=>/[-\w]+/.test(l)?l:`'${CSS.escape(l)}'`).join(","),a=t?this._fontWeight(i[0]):void 0,o=t?this._fontStyle(i[0]):"normal";if(typeof document<"u"&&((s=document.fonts)!=null&&s.load))try{yield document.fonts.load(`${o} ${a||"normal"} 48px ${n}`)}catch(l){Pa(`Failed to load font "${n}": ${Oc(l).message}`)}return this.createRasterizer({fontSize:48,buffer:Math.max(6,Math.ceil(48*(r-1)/4)),radius:16,cutoff:.25,fontFamily:n,fontWeight:a,fontStyle:o,lang:this.lang},6)})}_fontStyle(e){return/italic/i.test(e)?"italic":/oblique/i.test(e)?"oblique":"normal"}_fontWeight(e){let t={thin:100,hairline:100,"extra light":200,"ultra light":200,light:300,normal:400,regular:400,medium:500,semibold:600,demibold:600,bold:700,"extra bold":800,"ultra bold":800,black:900,heavy:900,"extra black":950,"ultra black":950},r;for(let[i,n]of Object.entries(t))RegExp(`\\b${i}\\b`,"i").test(e)&&(r=`${n}`);return r}destroy(){for(let e in this.entries){let t=this.entries[e];t.tinySDF=null,t.ideographTinySDF=null,t.fontFaceTinySDFs={},t.glyphs={default:{}},t.requests={},t.ranges={}}this.entries={},this.fontFaceManager.destroy()}},d6r=()=>Xat||(Xat=new dc({anchor:new Pi(_r.light.anchor,"anchor"),position:new Pi(_r.light.position,"position"),color:new Pi(_r.light.color,"color"),intensity:new Pi(_r.light.intensity,"intensity")})),p6r=class extends cu{constructor(e,t){super(),this._transitionable=new MC(d6r(),"light",t),this.setLight(e),this._transitioning=this._transitionable.untransitioned()}getLight(){return this._transitionable.serialize()}getCartesianPosition(){return Wtt(this.properties.get("position"))}setLight(e,t={}){this._validate(mh.light,e,t)||this._transitionable.setValues(e)}updateTransitions(e){this._transitioning=this._transitionable.transitioned(e,this._transitioning)}hasTransition(){return this._transitioning.hasTransition()}applyGlobalStateChange(e,t,r){this._transitioning=this._transitionable.applyGlobalStateChange(e,t,this._transitioning,r)}recalculate(e){this.properties=this._transitioning.possiblyEvaluate(e)}_validate(e,t,r){return KT(this,e,{value:t},r)}},v6r=()=>Zat||(Zat=new dc({"sky-color":new Pi(_r.sky["sky-color"],"sky-color"),"horizon-color":new Pi(_r.sky["horizon-color"],"horizon-color"),"fog-color":new Pi(_r.sky["fog-color"],"fog-color"),"fog-ground-blend":new Pi(_r.sky["fog-ground-blend"],"fog-ground-blend"),"horizon-fog-blend":new Pi(_r.sky["horizon-fog-blend"],"horizon-fog-blend"),"sky-horizon-blend":new Pi(_r.sky["sky-horizon-blend"],"sky-horizon-blend"),"atmosphere-blend":new Pi(_r.sky["atmosphere-blend"],"atmosphere-blend")})),g6r=class extends cu{constructor(e,t){super(),this._transitionable=new MC(v6r(),"sky",t),this.setSky(e),this._transitioning=this._transitionable.untransitioned(),this.recalculate(new Io(0))}setSky(e,t={}){return!this._validate(mh.sky,e,t)&&(e||(e={"sky-color":"transparent","horizon-color":"transparent","fog-color":"transparent","fog-ground-blend":1,"atmosphere-blend":0}),this._transitionable.setValues(e),!0)}getSky(){return this._transitionable.serialize()}updateTransitions(e){this._transitioning=this._transitionable.transitioned(e,this._transitioning)}hasTransition(){return this._transitioning.hasTransition()}applyGlobalStateChange(e,t,r){this._transitioning=this._transitionable.applyGlobalStateChange(e,t,this._transitioning,r)}recalculate(e){this.properties=this._transitioning.possiblyEvaluate(e)}_validate(e,t,r={}){return KT(this,e,{value:t},r)}calculateFogBlendOpacity(e){return e<60?0:e<70?(e-60)/10:1}},m6r=class{constructor(e,t){this.width=e,this.height=t,this.nextRow=0,this.data=new Uint8Array(this.width*this.height),this.dashEntry={}}getDash(e,t){var i;let r=e.join(",")+String(t);return(i=this.dashEntry)[r]||(i[r]=this.addDash(e,t)),this.dashEntry[r]}getDashRanges(e,t,r){let i=e.length%2==1,n=[],a=i?-e[e.length-1]*r:0,o=e[0]*r,s=!0;n.push({left:a,right:o,isDash:s,zeroLength:e[0]===0});let l=e[0];for(let u=1;u1&&(l=e[++s]);let c=Math.abs(u-l.left),f=Math.abs(u-l.right),h=Math.min(c,f),p,d=n/r*(i+1);if(l.isDash){let v=i-Math.abs(d);p=Math.sqrt(h*h+v*v)}else p=i-Math.sqrt(h*h+d*d);this.data[o+u]=Math.max(0,Math.min(255,p+128))}}}addRegularDash(e){for(let o=e.length-1;o>=0;--o){let s=e[o],l=e[o+1];s.zeroLength?e.splice(o,1):(l==null?void 0:l.isDash)===s.isDash&&(l.left=s.left,e.splice(o,1))}let t=e[0],r=e[e.length-1];t.isDash===r.isDash&&(t.left=r.left-this.width,r.right=t.right+this.width);let i=this.width*this.nextRow,n=0,a=e[n];for(let o=0;o1&&(a=e[++n]);let s=Math.abs(o-a.left),l=Math.abs(o-a.right),u=Math.min(s,l),c=a.isDash?u:-u;this.data[i+o]=Math.max(0,Math.min(255,c+128))}}addDash(e,t){let r=t?7:0,i=2*r+1;if(this.nextRow+i>this.height)return Pa("LineAtlas out of space"),null;let n=0;for(let o of e)n+=o;if(n!==0){let o=this.width/n,s=this.getDashRanges(e,this.width,o);t?this.addRoundDash(s,o,r):this.addRegularDash(s)}let a={y:this.nextRow+r,height:2*r,width:n};return this.nextRow+=i,this.dirty=!0,a}bind(e){let t=e.gl;this.texture?(t.bindTexture(t.TEXTURE_2D,this.texture),this.dirty&&(this.dirty=!1,t.texSubImage2D(t.TEXTURE_2D,0,0,0,this.width,this.height,t.ALPHA,t.UNSIGNED_BYTE,this.data))):(this.texture=t.createTexture(),t.bindTexture(t.TEXTURE_2D,this.texture),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_S,t.REPEAT),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_T,t.REPEAT),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,t.LINEAR),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,t.LINEAR),t.texImage2D(t.TEXTURE_2D,0,t.ALPHA,this.width,this.height,0,t.ALPHA,t.UNSIGNED_BYTE,this.data))}};_oe="maplibre_preloaded_worker_pool",cO=class ast{constructor(){this.active={},this.workersPromise=null}acquire(t){return Zi(this,null,function*(){if(this.active[t]=!0,!this.workersPromise){let r=[];for(;r.length{for(let n of i)n.terminate()})}}isPreloaded(){return!!this.active[_oe]}numActive(){return Object.keys(this.active).length}},T6r=Math.floor(l0.hardwareConcurrency/2);cO.workerCount=Xtt(globalThis)?Math.max(Math.min(T6r,3),1):1;ost=class extends cu{constructor(e,t){super(),this.workerPool=e,this.actors=[],this.currentActor=0,this.id=t,this.removed=!1,this.workerErrorSubscriptions=[],this.actorsPromise=this.initActors(t)}initActors(e){return Zi(this,null,function*(){let t=yield this.workerPool.acquire(e);if(this.removed)return[];if(this.actors=t.map((r,i)=>{this.workerErrorSubscriptions.push(Wk(r,"error",()=>{this.fire(new Mn(Error("Worker failed to load. Check that the worker URL is correct.")))},!1));let n=new sat(r,e);return n.name=`Worker ${i}`,n}),!this.actors.length)throw Error("No actors found");return this.actors})}broadcast(e,t){return Zi(this,null,function*(){let r=yield this.actorsPromise;return Promise.all(r.map(i=>i.sendAsync({type:e,data:t})))})}getActor(){return Zi(this,null,function*(){let e=yield this.actorsPromise;return this.currentActor=(this.currentActor+1)%e.length,e[this.currentActor]})}waitForInitComplete(){return Zi(this,null,function*(){this.actors.length===0&&(yield this.actorsPromise)})}getReadyActor(){return this.currentActor=(this.currentActor+1)%this.actors.length,this.actors[this.currentActor]}remove(e=!0){this.removed=!0;for(let t of this.actors)t.remove();for(let t of this.workerErrorSubscriptions)t.unsubscribe();this.actors=[],this.workerErrorSubscriptions=[],this.setEventedParent(null),e&&this.workerPool.release(this.id)}registerMessageHandler(e,t){return Zi(this,null,function*(){let r=yield this.actorsPromise;for(let i of r)i.registerMessageHandler(e,t)})}unregisterMessageHandler(e){return Zi(this,null,function*(){let t=yield this.actorsPromise;for(let r of t)r.unregisterMessageHandler(e)})}};qv=class Wm{constructor(t,r){t&&(r?this.setSouthWest(t).setNorthEast(r):Array.isArray(t)&&(t.length===4?this.setSouthWest([t[0],t[1]]).setNorthEast([t[2],t[3]]):this.setSouthWest(t[0]).setNorthEast(t[1])))}setNorthEast(t){return this._ne=t instanceof yn?new yn(t.lng,t.lat):yn.convert(t),this}setSouthWest(t){return this._sw=t instanceof yn?new yn(t.lng,t.lat):yn.convert(t),this}extend(t){let r=this._sw,i=this._ne,n,a;if(t instanceof yn)n=t,a=t;else if(t instanceof Wm){if(n=t._sw,a=t._ne,!n||!a)return this}else{if(Array.isArray(t)){if(t.length===4||t.every(Array.isArray)){let o=t;return this.extend(Wm.convert(o))}{let o=t;return this.extend(yn.convert(o))}}return t&&("lng"in t||"lon"in t)&&"lat"in t?this.extend(yn.convert(t)):this}return!r&&!i?(this._sw=new yn(n.lng,n.lat),this._ne=new yn(a.lng,a.lat)):(r.lng=Math.min(n.lng,r.lng),r.lat=Math.min(n.lat,r.lat),i.lng=Math.max(a.lng,i.lng),i.lat=Math.max(a.lat,i.lat)),this}getCenter(){return new yn((this._sw.lng+this._ne.lng)/2,(this._sw.lat+this._ne.lat)/2)}getSouthWest(){return this._sw}getNorthEast(){return this._ne}getNorthWest(){return new yn(this.getWest(),this.getNorth())}getSouthEast(){return new yn(this.getEast(),this.getSouth())}getWest(){return this._sw.lng}getSouth(){return this._sw.lat}getEast(){return this._ne.lng}getNorth(){return this._ne.lat}toArray(){return[this._sw.toArray(),this._ne.toArray()]}toString(){return`LngLatBounds(${this._sw.toString()}, ${this._ne.toString()})`}isEmpty(){return!(this._sw&&this._ne)}contains(t){let{lng:r,lat:i}=yn.convert(t),n=this._sw.lat<=i&&i<=this._ne.lat,a=this._sw.lng<=r&&r<=this._ne.lng;return this._sw.lng>this._ne.lng&&(a=this._sw.lng>=r&&r>=this._ne.lng),n&&a}intersects(t){if(t=Wm.convert(t),!(t.getNorth()>=this.getSouth()&&t.getSouth()<=this.getNorth()))return!1;let r=Math.abs(this.getEast()-this.getWest()),i=Math.abs(t.getEast()-t.getWest());if(r>=360||i>=360)return!0;let n=W0(this.getWest(),-180,180),a=W0(this.getEast(),-180,180),o=W0(t.getWest(),-180,180),s=W0(t.getEast(),-180,180),l=n>a,u=o>s;return l&&u?!0:l?s>=n||o<=a:u?a>=o||n<=s:o<=a&&s>=n}static convert(t){return t instanceof Wm||!t?t:new Wm(t)}static fromLngLat(t,r=0){let i=360*r/40075017,n=i/Math.cos(Math.PI/180*t.lat);return new Wm(new yn(t.lng-n,t.lat-i),new yn(t.lng+n,t.lat+i))}adjustAntiMeridian(){let t=new yn(this._sw.lng,this._sw.lat),r=new yn(this._ne.lng,this._ne.lat);return t.lng>r.lng?new Wm(t,new yn(r.lng+360,r.lat)):new Wm(t,r)}},cst=class{constructor(e,t,r){this.bounds=qv.convert(this.validateBounds(e)),this.minzoom=t||0,this.maxzoom=r||24}validateBounds(e){return!Array.isArray(e)||e.length!==4?[-180,-90,180,90]:[Math.max(-180,e[0]),Math.max(-90,e[1]),Math.min(180,e[2]),Math.min(90,e[3])]}contains(e){let t=2**e.z,r={minX:Math.floor(g3(this.bounds.getWest())*t),minY:Math.floor(m3(this.bounds.getNorth())*t),maxX:Math.ceil(g3(this.bounds.getEast())*t),maxY:Math.ceil(m3(this.bounds.getSouth())*t)};return e.x>=r.minX&&e.x=r.minY&&e.y{this.tiles=e,this._options.tiles=e}),this}setUrl(e){return this.setSourceProperty(()=>{this.url=e,this._options.url=e}),this}onRemove(){this._tileJSONRequest&&(this._tileJSONRequest=(this._tileJSONRequest.abort(),null))}serialize(){return dn({},this._options)}loadTile(e){return Zi(this,null,function*(){let t=e.tileID.canonical.url(this.tiles,this.map.getPixelRatio(),this.scheme),r={request:yield this.map._requestManager.transformRequest(t,"Tile"),uid:e.uid,tileID:e.tileID,zoom:e.tileID.overscaledZ,tileSize:this.tileSize*e.tileID.overscaleFactor(),type:this.type,source:this.id,pixelRatio:this.map.getPixelRatio(),showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId,subdivisionGranularity:this.map.style.projection.subdivisionGranularity,encoding:this.encoding,overzoomParameters:yield this._getOverzoomParameters(e),etag:e.etag};if(r.request.collectResourceTiming=this._collectResourceTiming,yield this.dispatcher.waitForInitComplete(),e.aborted)return;let i="RT";if(!e.actor||e.state==="expired")e.actor=this.dispatcher.getReadyActor(),i="LT";else if(e.state==="loading")return new Promise((n,a)=>{e.reloadPromise={resolve:n,reject:a}});e.abortController=new AbortController;try{let n=yield e.actor.sendAsync({type:i,data:r},e.abortController);if(delete e.abortController,e.aborted)return;this._afterTileLoadWorkerResponse(e,n);let a={};return n!=null&&n.etagUnmodified&&(a.unmodified=!0),a}catch(n){if(delete e.abortController,e.aborted||Vm(n))return;if(n&&n.status!==404)throw n;this._afterTileLoadWorkerResponse(e,null)}})}_getOverzoomParameters(e){return Zi(this,null,function*(){if(e.tileID.canonical.z<=this.maxzoom||this.map._zoomLevelsToOverscale===void 0)return;let t=e.tileID.scaledTo(this.maxzoom).canonical,r=t.url(this.tiles,this.map.getPixelRatio(),this.scheme);return{maxZoomTileID:t,overzoomRequest:yield this.map._requestManager.transformRequest(r,"Tile")}})}_afterTileLoadWorkerResponse(e,t){if(t!=null&&t.resourceTiming&&(e.resourceTiming=t.resourceTiming),t&&this.map._refreshExpiredTiles&&e.setExpiryData(t),e.etag=t==null?void 0:t.etag,e.loadVectorData(t,this.map.painter),e.reloadPromise){let r=e.reloadPromise;e.reloadPromise=null,this.loadTile(e).then(r.resolve).catch(r.reject)}}abortTile(e){return Zi(this,null,function*(){e.abortController&&(e.abortController.abort(),delete e.abortController),e.actor&&(yield e.actor.sendAsync({type:"AT",data:{uid:e.uid,type:this.type,source:this.id}}))})}unloadTile(e){return Zi(this,null,function*(){e.unloadVectorData(),e.actor&&(yield e.actor.sendAsync({type:"RMT",data:{uid:e.uid,type:this.type,source:this.id}}))})}hasTransition(){return!1}},Aoe=class extends cu{constructor(e,t,r,i){super(),this.id=e,this.dispatcher=r,this.setEventedParent(i),this.type="raster",this.minzoom=0,this.maxzoom=22,this.roundZoom=!0,this.scheme="xyz",this.tileSize=512,this._loaded=!1,this._premultiplyAlpha=!0,this._options=dn({type:"raster"},t),dn(this,WT(t,["url","scheme","tileSize"]))}load(e=!1){return Zi(this,null,function*(){this._loaded=!1,this.fire(new Ns("dataloading")),this._tileJSONRequest=new AbortController;try{let t=yield ust(this._options,this.map._requestManager,this._tileJSONRequest,this.map._ownerWindow);this._tileJSONRequest=null,this._loaded=!0,t&&(dn(this,t),t.bounds&&(this.tileBounds=new cst(t.bounds,this.minzoom,this.maxzoom)),this.fire(new Ns("data",{sourceDataType:"metadata"})),this.fire(new Ns("data",{sourceDataType:"content",sourceDataChanged:e})))}catch(t){this._tileJSONRequest=null,this._loaded=!0,Vm(t)||this.fire(new Mn(Oc(t)))}})}loaded(){return this._loaded}onAdd(e){this.map=e,this.load()}onRemove(){this._tileJSONRequest&&(this._tileJSONRequest=(this._tileJSONRequest.abort(),null))}setSourceProperty(e){this._tileJSONRequest&&(this._tileJSONRequest=(this._tileJSONRequest.abort(),null)),e(),this.load(!0)}setTiles(e){return this.setSourceProperty(()=>{this.tiles=e,this._options.tiles=e}),this}setUrl(e){return this.setSourceProperty(()=>{this.url=e,this._options.url=e}),this}serialize(){return dn({},this._options)}setPremultiplyAlpha(e){return this._premultiplyAlpha===e||this.setSourceProperty(()=>{this._premultiplyAlpha=e}),this}hasTile(e){return!this.tileBounds||this.tileBounds.contains(e.canonical)}loadTile(e){return Zi(this,null,function*(){var n;let t=e.tileID.canonical.url(this.tiles,this.map.getPixelRatio(),this.scheme),r=this._premultiplyAlpha,i=r?void 0:{premultiplyAlpha:"none"};e.abortController=new AbortController;try{let a=yield Bv.transformAndGetImage(this.map._requestManager,t,"Tile",e.abortController,this.map._refreshExpiredTiles,i);if(delete e.abortController,e.aborted){e.state="unloaded";return}if(a){this.map._refreshExpiredTiles&&(a.cacheControl||a.expires)&&e.setExpiryData({cacheControl:a.cacheControl,expires:a.expires});let o=this.map.painter.context,s=o.gl,l=(n=a.data)!=null?n:new Es({width:1,height:1},new Uint8Array(4));e.texture=this.map.painter.getTileTexture(l.width),e.texture?e.texture.update(l,{useMipmap:!0,premultiply:r}):(e.texture=new Tu(o,l,s.RGBA,{useMipmap:!0,premultiply:r}),e.texture.bind(s.LINEAR,s.CLAMP_TO_EDGE,s.LINEAR_MIPMAP_NEAREST)),e.state="loaded"}}catch(a){if(delete e.abortController,e.aborted)e.state="unloaded";else if(a)throw e.state="errored",a}})}abortTile(e){return Zi(this,null,function*(){e.abortController&&(e.abortController.abort(),delete e.abortController)})}unloadTile(e){return Zi(this,null,function*(){e.texture&&this.map.painter.saveTileTexture(e.texture)})}hasTransition(){return!1}},hst=class extends Aoe{constructor(e,t,r,i){super(e,t,r,i),this.type="raster-dem",this.maxzoom=22,this._options=dn({type:"raster-dem"},t),this.encoding=t.encoding||"mapbox",this.redFactor=t.redFactor,this.greenFactor=t.greenFactor,this.blueFactor=t.blueFactor,this.baseShift=t.baseShift}loadTile(e){return Zi(this,null,function*(){let t=e.tileID.canonical.url(this.tiles,this.map.getPixelRatio(),this.scheme);e.neighboringTiles=this._getNeighboringTiles(e.tileID),e.abortController=new AbortController;try{let r=yield Bv.transformAndGetImage(this.map._requestManager,t,"Tile",e.abortController,this.map._refreshExpiredTiles,{colorSpaceConversion:"none"});if(delete e.abortController,e.aborted){e.state="unloaded";return}if(r){if(this.map._refreshExpiredTiles&&(r.cacheControl||r.expires)&&e.setExpiryData({cacheControl:r.cacheControl,expires:r.expires}),!r.data){e.state="loaded";return}let i=r.data,n=px(i)&&UB()?i:yield this.readImageNow(i),a={type:this.type,uid:e.uid,source:this.id,rawImageData:n,encoding:this.encoding,redFactor:this.redFactor,greenFactor:this.greenFactor,blueFactor:this.blueFactor,baseShift:this.baseShift};if(e.actor&&e.state!=="expired"&&e.state!=="reloading")return;yield this.dispatcher.waitForInitComplete(),(!e.actor||e.state==="expired")&&(e.actor=this.dispatcher.getReadyActor()),e.dem=yield e.actor.sendAsync({type:"LDT",data:a}),e.needsHillshadePrepare=!0,e.needsTerrainPrepare=!0,e.needsColorReliefPrepare=!0,e.state="loaded"}}catch(r){if(delete e.abortController,e.aborted)e.state="unloaded";else if(r)throw e.state="errored",r}})}readImageNow(e){return Zi(this,null,function*(){if(typeof VideoFrame<"u"&&cne()){let t=e.width+4,r=e.height+4;try{return new Es({width:t,height:r},yield Jtt(e,-2,-2,t,r))}catch(i){}}return l0.getImageData(e,2)})}_getNeighboringTiles(e){let t=e.canonical,r=2**t.z,i=(t.x-1+r)%r,n=t.x===0?e.wrap-1:e.wrap,a=(t.x+1+r)%r,o=t.x+1===r?e.wrap+1:e.wrap,s={};return s[new Gc(e.overscaledZ,n,t.z,i,t.y).key]={backfilled:!1},s[new Gc(e.overscaledZ,o,t.z,a,t.y).key]={backfilled:!1},t.y>0&&(s[new Gc(e.overscaledZ,n,t.z,i,t.y-1).key]={backfilled:!1},s[new Gc(e.overscaledZ,e.wrap,t.z,t.x,t.y-1).key]={backfilled:!1},s[new Gc(e.overscaledZ,o,t.z,a,t.y-1).key]={backfilled:!1}),t.y+1Jat(t))}}shouldReloadTile(e,{affectedBounds:t}){if(e.state==="loading")return!0;if(e.state==="unloaded")return!1;let{buffer:r,extent:i}=this.workerOptions.geojsonVtOptions,n=N6r(e.tileID.canonical,r/i);for(let a of t)if(n.intersects(a))return!0;return!1}loaded(){return!this._isUpdatingWorker&&!this._hasPendingWorkerUpdate()}loadTile(e){return Zi(this,null,function*(){let t=e.actor?"RT":"LT";e.actor=yield this.actorPromise;let r={type:this.type,uid:e.uid,tileID:e.tileID,zoom:e.tileID.overscaledZ,maxZoom:this.maxzoom,tileSize:this.tileSize,source:this.id,pixelRatio:this.map.getPixelRatio(),showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId,subdivisionGranularity:this.map.style.projection.subdivisionGranularity};e.abortController=new AbortController;try{let i=yield(yield this.actorPromise).sendAsync({type:t,data:r},e.abortController);delete e.abortController,e.unloadVectorData(),e.aborted||e.loadVectorData(i,this.map.painter,t==="RT")}catch(i){if(delete e.abortController,e.aborted||Vm(i))return;throw i}})}abortTile(e){return Zi(this,null,function*(){e.abortController&&(e.abortController.abort(),delete e.abortController),e.aborted=!0})}unloadTile(e){return Zi(this,null,function*(){e.unloadVectorData(),yield(yield this.actorPromise).sendAsync({type:"RMT",data:{uid:e.uid,type:this.type,source:this.id}})})}onRemove(){this._removed=!0,this.actorPromise.then(e=>e.sendAsync({type:"RS",data:{type:this.type,source:this.id}}))}serialize(){return dn({},this._options,{type:this.type,data:this._data.updateable?{type:"FeatureCollection",features:Array.from(this._data.updateable.values())}:this._data.url||this._data.geojson})}hasTransition(){return!1}},a6=[0,0,1],U6r=(e,t)=>({u_tl_parent:new xa(e,t.u_tl_parent),u_scale_parent:new Ni(e,t.u_scale_parent),u_buffer_scale:new Ni(e,t.u_buffer_scale),u_image_warp:new Gf(e,t.u_image_warp),u_fade_t:new Ni(e,t.u_fade_t),u_opacity:new Ni(e,t.u_opacity),u_image0:new Sn(e,t.u_image0),u_image1:new Sn(e,t.u_image1),u_brightness_low:new Ni(e,t.u_brightness_low),u_brightness_high:new Ni(e,t.u_brightness_high),u_saturation_factor:new Ni(e,t.u_saturation_factor),u_contrast_factor:new Ni(e,t.u_contrast_factor),u_spin_weights:new Gf(e,t.u_spin_weights),u_coords_top:new JT(e,t.u_coords_top),u_coords_bottom:new JT(e,t.u_coords_bottom)}),V6r=(e,t,r,i,n,a)=>({u_tl_parent:e,u_scale_parent:t,u_buffer_scale:1,u_image_warp:a,u_fade_t:r.mix,u_opacity:r.opacity*i.paint.get("raster-opacity"),u_image0:0,u_image1:1,u_brightness_low:i.paint.get("raster-brightness-min"),u_brightness_high:i.paint.get("raster-brightness-max"),u_saturation_factor:j6r(i.paint.get("raster-saturation")),u_contrast_factor:H6r(i.paint.get("raster-contrast")),u_spin_weights:G6r(i.paint.get("raster-hue-rotate")),u_coords_top:[n[0].x,n[0].y,n[1].x,n[1].y],u_coords_bottom:[n[3].x,n[3].y,n[2].x,n[2].y]});e8=class{constructor(e,t,r){this.vertexBuffer=e,this.indexBuffer=t,this.segments=r}destroy(){this.vertexBuffer.destroy(),this.indexBuffer.destroy(),this.segments.destroy(),this.vertexBuffer=null,this.indexBuffer=null,this.segments=null}},T3=cl([{name:"a_pos",type:"Int16",components:2}]),qq=qr/128;l6=class extends cu{constructor(e,t,r,i){super(),this.imageWarp=a6,this.flippedWindingOrder=!1,this._warp="auto",this._imageDirty=!1,this._subdividedQuad=!1,this._subdividedMesh=null,this.id=e,this.dispatcher=r,this.coordinates=t.coordinates,this.type="image",this.minzoom=0,this.maxzoom=22,this.tileSize=512,this.tiles={},this._loaded=!1,this.setEventedParent(i),this.options=t}load(e){return Zi(this,null,function*(){if(this.options.url===void 0){this._loaded=!0,this._finishLoading();return}this._loaded=!1,this.fire(new Ns("dataloading")),this.url=this.options.url,this._abortController=new AbortController;try{let t=yield Bv.transformAndGetImage(this.map._requestManager,this.url,"Image",this._abortController);this._abortController=null,this._loaded=!0,t!=null&&t.data?(this._setImage(t.data),e&&(this.coordinates=e),this._finishLoading()):this.fire(new Mn(Error(`Could not load image ${this.url}: the response is empty`)))}catch(t){if(Vm(t))return;this._abortController=null,this._loaded=!0,this.fire(new Mn(Oc(t)))}})}loaded(){return this._loaded}updateImage(e){return this._abortController&&(this._abortController=(this._abortController.abort(),null)),"image"in e?(this._loaded=!0,this._setImage(e.image),e.coordinates&&(this.coordinates=e.coordinates),this._finishLoading(),this):e.url?(this.options.url=e.url,this.load(e.coordinates),this):this}_setImage(e){this.image=e,this._imageDirty=!0}getMesh(e,t){var r;return!this._subdividedQuad||t?null:((r=this._subdividedMesh)!=null||(this._subdividedMesh=vst(e,{granularity:16})),this._subdividedMesh)}_disposeTexture(){var e;(e=this.texture)==null||e.destroy(),this.texture=null}_finishLoading(){this.map&&(this.setCoordinates(this.coordinates),this.fire(new Ns("data",{sourceDataType:"metadata"})))}onAdd(e){this.map=e,this.load()}onRemove(){var e;this._abortController&&(this._abortController=(this._abortController.abort(),null)),this._disposeTexture(),(e=this._subdividedMesh)==null||e.destroy(),this._subdividedMesh=null,this.image=null,this.tiles={}}setWarp(e){return this._warp===e?this:(this._warp=e,this.tileCoords&&this.setCoordinates(this.coordinates),this)}getWarp(){return this._warp}setCoordinates(e){this.coordinates=e;let t=e.map(Mo.fromLngLat);return this.tileID=$6r(t),this.terrainTileRanges=this._getOverlappingTileRanges(t),this.minzoom=this.maxzoom=this.tileID.z,this.tileCoords=t.map(r=>this.tileID.getTilePoint(r)._round()),this.imageWarp=Y6r(this.tileCoords,this._warp),this._subdividedQuad=this.imageWarp[2]>0&&!mst(this.tileCoords),this.flippedWindingOrder=W6r(this.tileCoords),this.fire(new Ns("data",{sourceDataType:"content"})),this}prepare(){if(Object.keys(this.tiles).length===0||!this.image)return;let e=this.map.painter.context,t=e.gl;this.texture?this._imageDirty&&(this.texture.update(this.image),this.texture.bind(t.LINEAR,t.CLAMP_TO_EDGE)):(this.texture=new Tu(e,this.image,t.RGBA),this.texture.bind(t.LINEAR,t.CLAMP_TO_EDGE)),this._imageDirty=!1;let r=!1;for(let i in this.tiles){let n=this.tiles[i];n.state!=="loaded"&&(n.state="loaded",n.texture=this.texture,r=!0)}r&&this.fire(new Ns("data",{sourceDataType:"idle",sourceId:this.id}))}loadTile(e){return Zi(this,null,function*(){var t;(t=this.tileID)!=null&&t.equals(e.tileID.canonical)?(this.tiles[String(e.tileID.wrap)]=e,e.buckets={}):e.state="errored"})}serialize(){let e={type:"image",coordinates:this.coordinates};return this.options.url!==void 0&&(e.url=this.options.url),e}hasTransition(){return!1}_getOverlappingTileRanges(e){let{minX:t,minY:r,maxX:i,maxY:n}=lp.fromPoints(e),a={};for(let o=0;o<=25;o++){let s=2**o,l=Math.floor(t*s),u=Math.floor(r*s),c=Math.floor(i*s),f=Math.floor(n*s),h=(l%s+s)%s,p=c%s,d=Math.floor(l/s),v=Math.floor(c/s);a[o]={minWrap:d,maxWrap:v,minTileXWrapped:h,maxTileXWrapped:p,minTileY:u,maxTileY:f}}return a}};yst=class extends l6{constructor(e,t,r,i){super(e,t,r,i),this._onPlayingHandler=()=>{var n;(n=this.map)==null||n.triggerRepaint()},this.roundZoom=!0,this.type="video",this.options=t}load(){return Zi(this,null,function*(){this._loaded=!1;let e=this.options;this.urls=[];for(let t of e.urls)this.urls.push((yield this.map._requestManager.transformRequest(t,"Source")).url);try{let t=yield srt(this.urls);if(this._loaded=!0,!t)return;this.video=t,this.video.loop=!0,this.video.addEventListener("playing",this._onPlayingHandler),this.map&&this.video.play(),this._finishLoading()}catch(t){this.fire(new Mn(Oc(t)))}})}pause(){this.video&&this.video.pause()}play(){this.video&&this.video.play()}seek(e){if(this.video){let t=this.video.seekable;et.end(0)?this.fire(new Mn(new ri(`sources.${this.id}`,null,`Playback for this video can be set only between the ${t.start(0)} and ${t.end(0)}-second mark.`))):this.video.currentTime=e}}getVideo(){return this.video}onAdd(e){this.map||(this.map=e,this.load(),this.video&&(this.video.play(),this.setCoordinates(this.coordinates)))}onRemove(){super.onRemove(),this.video&&(this.video.removeEventListener("playing",this._onPlayingHandler),this.video.pause())}prepare(){if(Object.keys(this.tiles).length===0||this.video.readyState<2)return;let e=this.map.painter.context,t=e.gl;this.texture?this.video.paused||(this.texture.bind(t.LINEAR,t.CLAMP_TO_EDGE),t.texSubImage2D(t.TEXTURE_2D,0,0,0,t.RGBA,t.UNSIGNED_BYTE,this.video)):(this.texture=new Tu(e,this.video,t.RGBA),this.texture.bind(t.LINEAR,t.CLAMP_TO_EDGE));let r=!1;for(let i in this.tiles){let n=this.tiles[i];n.state!=="loaded"&&(n.state="loaded",n.texture=this.texture,r=!0)}r&&this.fire(new Ns("data",{sourceDataType:"idle",sourceId:this.id}))}serialize(){return{type:"video",urls:this.urls,coordinates:this.coordinates}}hasTransition(){return this.video&&!this.video.paused}},xst=class extends l6{constructor(e,t,r,i){super(e,t,r,i),t.coordinates?(!Array.isArray(t.coordinates)||t.coordinates.length!==4||t.coordinates.some(n=>!Array.isArray(n)||n.length!==2||n.some(a=>typeof a!="number")))&&this.fire(new Mn(new ri(`sources.${e}`,null,'"coordinates" property must be an array of 4 longitude/latitude array pairs'))):this.fire(new Mn(new ri(`sources.${e}`,null,'missing required property "coordinates"'))),t.animate&&typeof t.animate!="boolean"&&this.fire(new Mn(new ri(`sources.${e}`,null,'optional "animate" property must be a boolean value'))),t.canvas?typeof t.canvas!="string"&&!(t.canvas instanceof HTMLCanvasElement)&&this.fire(new Mn(new ri(`sources.${e}`,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 Mn(new ri(`sources.${e}`,null,'missing required property "canvas"'))),this.options=t,this.animate=t.animate===void 0||t.animate}load(){return Zi(this,null,function*(){if(this._loaded=!0,this.canvas||(this.canvas=this.options.canvas instanceof HTMLCanvasElement?this.options.canvas:document.getElementById(this.options.canvas)),this.width=this.canvas.width,this.height=this.canvas.height,this._hasInvalidDimensions()){this.fire(new Mn(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._playing=(this.prepare(),!1))},this._finishLoading()})}getCanvas(){return this.canvas}onAdd(e){this.map=e,this.load(),this.canvas&&this.animate&&this.play()}onRemove(){this._playing=!1,super.onRemove()}prepare(){let e=!1;if(this.canvas.width!==this.width&&(this.width=this.canvas.width,e=!0),this.canvas.height!==this.height&&(this.height=this.canvas.height,e=!0),this._hasInvalidDimensions()||Object.keys(this.tiles).length===0)return;let t=this.map.painter.context,r=t.gl;this.texture?(e||this._playing)&&this.texture.update(this.canvas,{premultiply:!0}):(this.texture=new Tu(t,this.canvas,r.RGBA,{premultiply:!0}),this.texture.bind(r.LINEAR,r.CLAMP_TO_EDGE));let i=!1;for(let n in this.tiles){let a=this.tiles[n];a.state!=="loaded"&&(a.state="loaded",a.texture=this.texture,i=!0)}i&&this.fire(new Ns("data",{sourceDataType:"idle",sourceId:this.id}))}serialize(){return{type:"canvas",animate:this.animate,canvas:this.options.canvas,coordinates:this.coordinates}}hasTransition(){return this._playing}_hasInvalidDimensions(){for(let e of[this.canvas.width,this.canvas.height])if(isNaN(e)||e<=0)return!0;return!1}},bst={},Z6r=(e,t,r,i)=>{let n=new(_st(t.type))(e,t,r,i);if(n.id!==e)throw Error(`Expected Source id to be ${e} instead of ${n.id}`);return n},_st=e=>{switch(e){case"geojson":return pst;case"image":return l6;case"raster":return Aoe;case"raster-dem":return hst;case"vector":return fst;case"video":return yst;case"canvas":return xst}return bst[e]},K6r=(e,t)=>{bst[e]=t},J6r=(e,t)=>Zi(null,null,function*(){if(_st(e))throw Error(`A source type called "${e}" already exists.`);K6r(e,t)});noe="RTLPluginLoaded",eAr=class extends cu{constructor(...e){super(...e),this.status="unavailable",this.url=null,this.dispatcher=Toe()}_syncState(e){return this.status=e,this.dispatcher.broadcast("SRPS",{pluginStatus:e,pluginURL:this.url}).catch(t=>{throw this.status="error",t})}getRTLTextPluginStatus(){return this.status}clearRTLTextPlugin(){this.status="unavailable",this.url=null}setRTLTextPlugin(e,t=!1){return Zi(this,null,function*(){if(this.url)throw Error("setRTLTextPlugin cannot be called multiple times.");if(this.url=l0.resolveURL(e),!this.url)throw Error(`requested url ${e} is invalid`);if(this.status==="unavailable")if(t)this.status="deferred",this._syncState(this.status);else return this._requestImport();else if(this.status==="requested")return this._requestImport()})}_requestImport(){return Zi(this,null,function*(){yield this._syncState("loading"),this.status="loaded",this.fire(new o0(noe))})}lazyLoad(){this.status==="unavailable"?this.status="requested":this.status==="deferred"&&this._requestImport()}},zae=null;wst=class{constructor(e,t){this.timeAdded=0,this.fadeEndTime=0,this.fadeOpacity=1,this.tileID=e,this.uid=yne(),this.uses=0,this.tileSize=t,this.buckets={},this.expirationTime=null,this.queryPadding=0,this.hasSymbolBuckets=!1,this.hasRTLText=!1,this.dependencies={},this.rttObjects=[],this.rttFingerprint={},this.expiredRequestCount=0,this.state="loading",this.featureStateRevision=-1}isRenderable(e){return this.hasData()&&(!this.fadeEndTime||this.fadingDirection!==0||this.fadeOpacity>0)&&(e||!this.holdingForSymbolFade())}setCrossFadeLogic({fadingRole:e,fadingDirection:t,fadingParentID:r,fadeEndTime:i}){this.resetFadeLogic(),this.fadingRole=e,this.fadingDirection=t,this.fadingParentID=r,this.fadeEndTime=i}setSelfFadeLogic(e){this.resetFadeLogic(),this.selfFading=!0,this.fadeEndTime=e}resetFadeLogic(){this.fadingRole=null,this.fadingDirection=null,this.fadingParentID=null,this.selfFading=!1,this.timeAdded=zo(),this.fadeEndTime=0,this.fadeOpacity=1}wasRequested(){return this.state==="errored"||this.state==="loaded"||this.state==="reloading"}clearTextures(e){this.demTexture&&e.saveTileTexture(this.demTexture),this.demTexture=null}getRTT(e){return this.rttObjects[e]}acquireRTT(e,t,r){return this.rttObjects[t]=e.acquireRTT(r)}releaseRTT(e){if(this.rttObjects.length!==0){for(let t of this.rttObjects)t&&e.releaseRTT(t);this.rttObjects.length=0}}loadVectorData(e,t,r){if((e==null?void 0:e.etagUnmodified)===!0){this.state="loaded";return}if(this.hasData()&&this.unloadVectorData(),this.state="loaded",!e){this.collisionBoxArray=new Wne;return}e.featureIndex&&(this.latestFeatureIndex=e.featureIndex,e.rawTileData?(this.latestRawTileData=e.rawTileData,this.latestEncoding=e.encoding,this.latestFeatureIndex.rawTileData=e.rawTileData,this.latestFeatureIndex.encoding=e.encoding):this.latestRawTileData&&(this.latestFeatureIndex.rawTileData=this.latestRawTileData,this.latestFeatureIndex.encoding=this.latestEncoding)),this.collisionBoxArray=e.collisionBoxArray,this.buckets=Q6r(e.buckets,t==null?void 0:t.style),this.hasSymbolBuckets=!1;for(let i in this.buckets){let n=this.buckets[i];if(n instanceof IC)if(this.hasSymbolBuckets=!0,r)n.justReloaded=!0;else break}if(this.hasRTLText=!1,this.hasSymbolBuckets)for(let i in this.buckets){let n=this.buckets[i];if(n instanceof IC&&n.hasRTLText){this.hasRTLText=!0,QC().lazyLoad();break}}this.queryPadding=0;for(let i in this.buckets){let n=this.buckets[i];this.queryPadding=Math.max(this.queryPadding,t.style.getLayer(i).queryRadius(n))}e.imageAtlas&&(this.imageAtlas=e.imageAtlas),e.glyphAtlasImage&&(this.glyphAtlasImage=e.glyphAtlasImage),this.dashPositions=e.dashPositions}unloadVectorData(){for(let e in this.buckets)this.buckets[e].destroy();this.buckets={},this.imageAtlasTexture&&this.imageAtlasTexture.destroy(),this.glyphAtlasTexture&&this.glyphAtlasTexture.destroy(),this.imageAtlas=null,this.dashPositions=null,this.latestFeatureIndex=null,this.state="unloaded"}getBucket(e){return this.buckets[e.id]}upload(e){for(let r in this.buckets){let i=this.buckets[r];i.uploadPending()&&i.upload(e)}let t=e.gl;this.imageAtlas&&!this.imageAtlas.uploaded&&(this.imageAtlasTexture=new Tu(e,this.imageAtlas.image,t.RGBA),this.imageAtlas.uploaded=!0),this.glyphAtlasImage&&(this.glyphAtlasImage=(this.glyphAtlasTexture=new Tu(e,this.glyphAtlasImage,t.ALPHA),null))}prepare(e){this.imageAtlas&&this.imageAtlas.patchUpdatedImages(e,this.imageAtlasTexture)}queryRenderedFeatures(e,t,r,i,n,a,o,s,l,u,c){var f;return(f=this.latestFeatureIndex)!=null&&f.rawTileData?this.latestFeatureIndex.query({queryGeometry:i,cameraQueryGeometry:n,scale:a,tileSize:this.tileSize,pixelPosMatrix:u,transform:s,params:o,queryPadding:this.queryPadding*l,getElevation:c},e,t,r):{}}querySourceFeatures(e,t){let r=this.latestFeatureIndex;if(!(r!=null&&r.rawTileData))return;let i=r.loadVTLayers(),n=t!=null&&t.sourceLayer?t.sourceLayer:"",a=i._geojsonTileLayer||i[n];if(!a)return;let o=VT(t==null?void 0:t.filter,`querySourceFeatures[${n}].filter`,t==null?void 0:t.globalState),{z:s,x:l,y:u}=this.tileID.canonical,c={z:s,x:l,y:u};for(let f=0;fr)i=!1;else if(!t)i=!0;else if(this.expirationTimethis.max[0]||t.aabb.min[1]>this.max[1]||t.aabb.min[2]>this.max[2]||t.aabb.max[0]0?(r+=t[n]*this.min[n],i+=t[n]*this.max[n]):(i+=t[n]*this.min[n],r+=t[n]*this.max[n]);return r>=0?2:i<0?0:1}},Soe=class Ast{constructor(t,r,i){this.points=t,this.planes=r,this.aabb=i}static fromInvProjectionMatrix(t,r=1,i=0,n,a){let o=[[-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]],s=a?[[6,5,4],[0,1,2],[0,3,7],[2,1,5],[3,2,6],[0,4,5]]:[[0,1,2],[6,5,4],[0,3,7],[2,1,5],[3,2,6],[0,4,5]],l=2**i,u=o.map(p=>rAr(p,t,r,l));n&&iAr(u,s[0],n,a);let c=s.map(p=>{let d=cg([],u[p[0]],u[p[1]]),v=cg([],u[p[2]],u[p[1]]),m=Uf([],gh([],d,v)),g=-uu(m,u[p[1]]);return m.concat(g)}),f=[1/0,1/0,1/0],h=[-1/0,-1/0,-1/0];for(let p of u)for(let d=0;d<3;d++)f[d]=Math.min(f[d],p[d]),h[d]=Math.max(h[d],p[d]);return new Ast(u,c,new Moe(f,h))}};sAr=aoe(9.314,3);not=class{constructor(){this._tiles={}}handleWrapJump(e){let t={};for(let r in this._tiles){let i=this._tiles[r];i.tileID=i.tileID.unwrapTo(i.tileID.wrap+e),t[i.tileID.key]=i}this._tiles=t}setFeatureState(e,t,r){for(let i in this._tiles)this._tiles[i].setFeatureState(e,t,r)}getAllTiles(){return Object.values(this._tiles)}getAllIds(e=!1){return e?Object.values(this._tiles).map(t=>t.tileID).sort(vae).map(t=>t.key):Object.keys(this._tiles)}getTileById(e){return this._tiles[e]}setTile(e,t){this._tiles[e]=t}deleteTileById(e){delete this._tiles[e]}getLoadedTile(e){let t=this.getTileById(e.key);return t!=null&&t.hasData()?t:null}isIdRenderable(e,t=!1){var r;return(r=this.getTileById(e))==null?void 0:r.isRenderable(t)}getRenderableIds(e=0,t){let r=[];for(let i of this.getAllIds())this.isIdRenderable(i,t)&&r.push(this.getTileById(i));return t?r.sort((i,n)=>{let a=i.tileID,o=n.tileID,s=new rr(a.canonical.x,a.canonical.y)._rotate(-e),l=new rr(o.canonical.x,o.canonical.y)._rotate(-e);return a.overscaledZ-o.overscaledZ||l.y-s.y||l.x-s.x}).map(i=>i.tileID.key):r.map(i=>i.tileID).sort(vae).map(i=>i.key)}},ooe=(Xm=class extends cu{constructor(t,r,i){super(),this._maxContentElevationSeen=0,this.id=t,this.dispatcher=i,this.on("data",n=>{this._dataHandler(n)}),this.on("dataloading",()=>{this._sourceErrored=!1}),this.on("error",()=>{this._sourceErrored=this._source.loaded()}),this._source=Z6r(t,r,i,this),this._inViewTiles=new not,this._outOfViewCache=new Oat(0,n=>this._unloadTile(n)),this._timers={},this._maxTileCacheSize=null,this._maxTileCacheZoomLevels=null,this._rasterFadeDuration=0,this._maxFadingAncestorLevels=5,this._state=new tAr,this._didEmitContent=!1,this._updated=!1}onAdd(t){var r;this.map=t,this._maxTileCacheSize=t?t._maxTileCacheSize:null,this._maxTileCacheZoomLevels=t?t._maxTileCacheZoomLevels:null,(r=this._source)!=null&&r.onAdd&&this._source.onAdd(t)}onRemove(t){var r;for(let i of this._inViewTiles.getAllTiles())i.unloadVectorData();this.clearTiles(),(r=this._source)!=null&&r.onRemove&&this._source.onRemove(t),this._inViewTiles=new not}loaded(){if(this._sourceErrored)return!0;if(!this._sourceLoaded||!this._source.loaded())return!1;if((this.used!==void 0||this.usedForTerrain!==void 0)&&!this.used&&!this.usedForTerrain)return!0;if(!this._updated)return!1;for(let t of this._inViewTiles.getAllTiles())if(t.state!=="loaded"&&t.state!=="errored")return!1;return!0}getSource(){return this._source}getState(){return this._state}pause(){this._paused=!0}resume(){if(!this._paused)return;let t=this._shouldReloadOnResume;this._paused=!1,this._shouldReloadOnResume=!1,t&&this.reload(),this.transform&&this.update(this.transform,this.terrain)}_loadTile(t,r,i,n){return Zi(this,null,function*(){try{let a=yield this._source.loadTile(t);this._tileLoaded(t,r,i,n,a)}catch(a){t.state="errored",a.status===404?this.update(this.transform,this.terrain):this._source.fire(new Mn(Oc(a),{tile:t}))}})}_unloadTile(t){this._source.unloadTile&&this._source.unloadTile(t)}_abortTile(t){this._source.abortTile&&this._source.abortTile(t),this._source.fire(new Ns("dataabort",{tile:t,coord:t.tileID}))}serialize(){return this._source.serialize()}prepare(t){this._source.prepare&&this._source.prepare(),this._state.coalesceChanges(this._inViewTiles,this.map?this.map.painter:null);for(let r of this._inViewTiles.getAllTiles())r.upload(t),r.prepare(this.map.style.imageManager)}getIds(){return this._inViewTiles.getAllIds(!0)}getRenderableIds(t){var r;return this._inViewTiles.getRenderableIds((r=this.transform)==null?void 0:r.bearingInRadians,t)}hasRenderableParent(t){let r=t.overscaledZ-1;if(r>=this._source.minzoom){let i=this.getLoadedTile(t.scaledTo(r));if(i)return this._inViewTiles.isIdRenderable(i.tileID.key)}return!1}reload(t,r=void 0){if(this._paused){this._shouldReloadOnResume=!0;return}this._outOfViewCache.reset();for(let i of this._inViewTiles.getAllIds()){let n=this._inViewTiles.getTileById(i);(!r||this._source.shouldReloadTile(n,r))&&(t?this._reloadTile(i,n.state==="errored"?"loading":"expired"):n.state!=="errored"&&this._reloadTile(i,"reloading"))}}_reloadTile(t,r){return Zi(this,null,function*(){let i=this._inViewTiles.getTileById(t);if(!i)return;let n=i.hasData();i.state!=="loading"&&(i.state=r),yield this._loadTile(i,t,r,n)})}_tileLoaded(t,r,i,n,a){n||(t.timeAdded=zo(),t.selfFading&&(t.fadeEndTime=t.timeAdded+this._rasterFadeDuration)),i==="expired"&&(t.refreshedUponExpiration=!0),this._setTileReloadTimer(r,t),!(a!=null&&a.unmodified)&&(this.getSource().type==="raster-dem"&&t.dem&&gAr(t,this._inViewTiles),t.featureStateRevision=-1,this._state.initializeTileState(t,this.map?this.map.painter:null),t.aborted||this._source.fire(new Ns("data",{tile:t,coord:t.tileID})))}getTile(t){return this.getTileByID(t.key)}getTileByID(t){return this._inViewTiles.getTileById(t)}_retainLoadedChildren(t,r){let i=this._getLoadedDescendents(r),n=new Set;for(let a of r){let o=i[a.key];if(!(o!=null&&o.length)){n.add(a);continue}let s=a.overscaledZ+Xm.maxOverzooming,l=o.filter(f=>f.tileID.overscaledZ<=s);if(!l.length){n.add(a);continue}let u=Math.min(...l.map(f=>f.tileID.overscaledZ)),c=l.filter(f=>f.tileID.overscaledZ===u).map(f=>f.tileID);for(let f of c)t[f.key]=f;this._areDescendentsComplete(c,u,a.overscaledZ)||n.add(a)}return n}_getLoadedDescendents(t){var i;let r={};for(let n of this._inViewTiles.getAllTiles().filter(a=>a.hasData()))for(let a of t)n.tileID.isChildOf(a)&&(r[i=a.key]||(r[i]=[]),r[a.key].push(n));return r}_areDescendentsComplete(t,r,i){return t.length===1&&t[0].isOverscaled()?t[0].overscaledZ===r:4**(r-i)===t.length}getLoadedTile(t){return this._inViewTiles.getLoadedTile(t)}updateCacheSize(t){let r=(Math.ceil(t.width/this._source.tileSize)+1)*(Math.ceil(t.height/this._source.tileSize)+1),i=this._maxTileCacheZoomLevels===null?a0.MAX_TILE_CACHE_ZOOM_LEVELS:this._maxTileCacheZoomLevels,n=Math.floor(r*i),a=typeof this._maxTileCacheSize=="number"?Math.min(this._maxTileCacheSize,n):n;this._outOfViewCache.setMaxSize(a)}handleWrapJump(t){let r=(t-(this._prevLng===void 0?t:this._prevLng))/360,i=Math.round(r);this._prevLng=t,i&&(this._inViewTiles.handleWrapJump(i),this._resetTileReloadTimers())}_updateMaxContentElevation(){var n,a;let t=this._maxContentElevationSeen,r=(a=(n=this.map)==null?void 0:n.style)==null?void 0:a._layers;if(!r)return t;let i=this._inViewTiles.getAllTiles();for(let o in r){let s=r[o];if(s.type!=="symbol"||s.source!==this.id||s.isHidden(this.transform.zoom))continue;let l=s;if(!l.layout)continue;let u=l.layout.get("symbol-height-offset");if(t=Math.max(t,u.constantOr(0)),!u.isConstant())for(let c of i){let f=c.getBucket(s);f&&f.maxHeightOffset>t&&(t=f.maxHeightOffset)}}return this._maxContentElevationSeen=t,t}update(t,r){if(!this._sourceLoaded||this._paused)return;this.transform=t,this.terrain=r,this.updateCacheSize(t),this.handleWrapJump(this.transform.center.lng);let i;!this.used&&!this.usedForTerrain?i=[]:this._source.tileID?i=t.getVisibleUnwrappedCoordinates(this._source.tileID).map(l=>new Gc(l.canonical.z,l.wrap,l.canonical.z,l.canonical.x,l.canonical.y)):(i=u6(t,{tileSize:this.usedForTerrain?this.tileSize:this._source.tileSize,minzoom:this._source.minzoom,maxzoom:this._source.type==="vector"&&this.map._zoomLevelsToOverscale!==void 0?Math.max(this._source.maxzoom,t.maxZoom-this.map._zoomLevelsToOverscale):this._source.maxzoom,roundZoom:!this.usedForTerrain&&this._source.roundZoom,reparseOverscaled:this._source.reparseOverscaled,terrain:r,calculateTileZoom:this._source.calculateTileZoom,maxContentElevation:this._updateMaxContentElevation()}),this._source.hasTile&&(i=i.filter(l=>this._source.hasTile(l)))),this.usedForTerrain&&(i=this._addTerrainIdealTiles(i));let n=i.length===0&&!this._updated&&this._didEmitContent;this._updated=!0,n&&this.fire(new Ns("data",{sourceDataType:"idle",sourceId:this.id}));let a=Eoe(t,this._source),o=this._updateRetainedTiles(i,a),s=tot(this._source.type);s&&this._rasterFadeDuration>0&&!r&&fAr(this._inViewTiles,i,o,this._maxFadingAncestorLevels,this._source.minzoom,this._source.maxzoom,this._rasterFadeDuration),s?this._cleanUpRasterTiles(o):this._cleanUpVectorTiles(o)}_cleanUpRasterTiles(t){for(let r of this._inViewTiles.getAllIds())t[r]||this._removeTile(r)}_cleanUpVectorTiles(t){for(let r of this._inViewTiles.getAllIds()){let i=this._inViewTiles.getTileById(r);if(t[r]){i.clearSymbolFadeHold();continue}if(!i.hasSymbolBuckets){this._removeTile(r);continue}i.holdingForSymbolFade()?i.symbolFadeFinished()&&this._removeTile(r):i.setSymbolHoldDuration(this.map._fadeDuration)}}_addTerrainIdealTiles(t){let r=[];for(let i of t)if(i.canonical.z>this._source.minzoom){let n=i.scaledTo(i.canonical.z-1);r.push(n);let a=i.scaledTo(Math.max(this._source.minzoom,Math.min(i.canonical.z,5)));r.push(a)}return t.concat(r)}releaseSymbolFadeTiles(){for(let t of this._inViewTiles.getAllIds())this._inViewTiles.getTileById(t).holdingForSymbolFade()&&this._removeTile(t)}_updateRetainedTiles(t,r){var l;let i=new Set;for(let u of t)this._addTile(u).hasData()||i.add(u);let n=t.reduce((u,c)=>(u[c.key]=c,u),{}),a=this._retainLoadedChildren(n,i),o={},s=Math.max(r-Xm.maxUnderzooming,this._source.minzoom);for(let u of a){let c=this._inViewTiles.getTileById(u.key),f=c==null?void 0:c.wasRequested();for(let h=u.overscaledZ-1;h>=s;--h){let p=u.scaledTo(h);if(o[p.key])break;if(o[p.key]=!0,c=this.getTile(p),!c&&f&&(c=this._addTile(p)),c){let d=c.hasData();if((d||!((l=this.map)!=null&&l.cancelPendingTileRequestsWhileZooming)||f)&&(n[p.key]=p),f=c.wasRequested(),d)break}}}return n}_addTile(t){let r=this._inViewTiles.getTileById(t.key);if(r)return r;r=this._outOfViewCache.getAndRemove(t),r&&(r.resetFadeLogic(),this._setTileReloadTimer(t.key,r),r.tileID=t,this._state.initializeTileState(r,this.map?this.map.painter:null));let i=r;return r||(r=new wst(t,this._source.tileSize*t.overscaleFactor()),this._loadTile(r,t.key,r.state,!1)),r.uses++,this._inViewTiles.setTile(t.key,r),i||this._source.fire(new Ns("dataloading",{tile:r,coord:r.tileID})),r}_setTileReloadTimer(t,r){this._clearTileReloadTimer(t);let i=r.getExpiryTimeout();if(i){let n=()=>{this._reloadTile(t,"expired"),delete this._timers[t]};this._timers[t]=setTimeout(n,i)}}_clearTileReloadTimer(t){let r=this._timers[t];r&&(clearTimeout(r),delete this._timers[t])}_resetTileReloadTimers(){for(let t in this._timers)clearTimeout(this._timers[t]),delete this._timers[t];for(let t of this._inViewTiles.getAllIds()){let r=this._inViewTiles.getTileById(t);this._setTileReloadTimer(t,r)}}refreshTiles(t){for(let r of this._inViewTiles.getAllIds()){let i=this._inViewTiles.getTileById(r);(this._inViewTiles.isIdRenderable(r)||i.state=="errored")&&t.some(n=>n.equals(i.tileID.canonical))&&this._reloadTile(r,"expired")}}_removeTile(t){let r=this._inViewTiles.getTileById(t);r&&(r.uses--,this._inViewTiles.deleteTileById(t),this._clearTileReloadTimer(t),!(r.uses>0)&&(r.hasData()&&r.state!=="reloading"?this._outOfViewCache.add(r.tileID,r,r.getExpiryTimeout()):(r.aborted=!0,this._abortTile(r),this._unloadTile(r))))}_dataHandler(t){if(t.dataType==="source"){if(t.sourceDataType==="metadata"){this._sourceLoaded=!0;return}t.sourceDataType==="content"&&this._sourceLoaded&&!this._paused&&(this.reload(t.sourceDataChanged,t.shouldReloadTileOptions),this.transform&&this.update(this.transform,this.terrain),this._didEmitContent=!0)}}resetMaxContentElevation(){this._maxContentElevationSeen=0}clearTiles(){this._shouldReloadOnResume=!1,this._paused=!1,this.resetMaxContentElevation();for(let t of this._inViewTiles.getAllIds())this._removeTile(t);this._outOfViewCache.reset()}tilesIn(t,r,i){let n=[],a=this.transform;if(!a)return n;let o=a.getCoveringTilesDetailsProvider().allowWorldCopies(),s=i?a.getCameraQueryGeometry(t):t,l=p=>a.screenPointToMercatorCoordinate(p,this.terrain),u=this.transformBbox(t,l,!o),c=this.transformBbox(s,l,!o),f=this.getIds(),h=lp.fromPoints(c);for(let p of f){let d=this._inViewTiles.getTileById(p);if(d.holdingForSymbolFade())continue;let v=o?[d.tileID]:[d.tileID.unwrapTo(-1),d.tileID.unwrapTo(0)],m=2**(a.zoom-d.tileID.overscaledZ),g=r*d.queryPadding*qr/d.tileSize/m;for(let w of v){let _=h.map(b=>w.getTilePoint(new Mo(b.x,b.y)));if(_.expandBy(g),_.intersects(bnt)){let b=u.map(x=>w.getTilePoint(x)),S=c.map(x=>w.getTilePoint(x));n.push({tile:d,tileID:o?w:w.unwrapTo(0),queryGeometry:b,cameraQueryGeometry:S,scale:m})}}}return n}transformBbox(t,r,i){let n=t.map(r);if(i){let a=lp.fromPoints(t);a.shrinkBy(Math.min(a.width(),a.height())*.001);let o=a.map(r);lp.fromPoints(n).covers(o)||(n=n.map(s=>s.x>.5?new Mo(s.x-1,s.y,s.z):s))}return n}getVisibleCoordinates(t){let r=this.getRenderableIds(t).map(i=>this._inViewTiles.getTileById(i).tileID);return this.transform&&this.transform.populateCache(r),r}hasTransition(){return this._source.hasTransition()?!0:tot(this._source.type)&&vAr(this._inViewTiles,this._rasterFadeDuration)}setRasterFadeDuration(t){this._rasterFadeDuration=t}setFeatureState(t,r,i){t||(t=BC),this._state.updateState(t,r,i)}removeFeatureState(t,r,i){t||(t=BC),this._state.removeFeatureState(t,r,i)}getFeatureState(t,r){return t||(t=BC),this._state.getState(t,r)}setDependencies(t,r,i){let n=this._inViewTiles.getTileById(t);n&&n.setDependencies(r,i)}reloadTilesForDependencies(t,r){for(let i of this._inViewTiles.getAllIds())this._inViewTiles.getTileById(i).hasDependency(t,r)&&this._reloadTile(i,"reloading");this._outOfViewCache.filter(i=>!i.hasDependency(t,r))}areTilesLoaded(){for(let t of this._inViewTiles.getAllTiles())if(t.state!=="loaded"&&t.state!=="errored")return!1;return!0}},Xm.maxUnderzooming=10,Xm.maxOverzooming=3,Xm),mAr=class{constructor(e,t){this.reset(e,t)}reset(e,t){this.points=e||[],this._distances=[0];for(let r=1;r0?(i-a)/o:0;return this.points[n].mult(1-s).add(this.points[t].mult(s))}};aot=class{constructor(e,t,r){let i=this.boxCells=[],n=this.circleCells=[];this.xCellCount=Math.ceil(e/r),this.yCellCount=Math.ceil(t/r);for(let a=0;athis.width||i<0||t>this.height)return[];let s=[];if(e<=0&&t<=0&&this.width<=r&&this.height<=i){if(n)return[{key:null,x1:e,y1:t,x2:r,y2:i}];for(let l=0;l0}hitTestCircle(e,t,r,i,n){let a=e-r,o=e+r,s=t-r,l=t+r;if(o<0||a>this.width||l<0||s>this.height)return!1;let u=[],c={hitTest:!0,overlapMode:i,circle:{x:e,y:t,radius:r},seenUids:{box:{},circle:{}}};return this._forEachCell(a,s,o,l,this._queryCellCircle,u,c,n),u.length>0}_queryCell(e,t,r,i,n,a,o,s){let{seenUids:l,hitTest:u,overlapMode:c}=o,f=this.boxCells[n],h=1e-6;if(f!==null){let d=this.bboxes;for(let v of f)if(!l.box[v]){l.box[v]=!0;let m=v*4,g=this.boxKeys[v];if(e<=d[m+2]+h&&t<=d[m+3]+h&&r>=d[m+0]-h&&i>=d[m+1]-h&&(!s||s(g))&&(!u||!Oq(c,g.overlapMode))&&(a.push({key:g,x1:d[m],y1:d[m+1],x2:d[m+2],y2:d[m+3]}),u))return!0}}let p=this.circleCells[n];if(p!==null){let d=this.circles;for(let v of p)if(!l.circle[v]){l.circle[v]=!0;let m=v*3,g=this.circleKeys[v];if(this._circleAndRectCollide(d[m],d[m+1],d[m+2],e,t,r,i)&&(!s||s(g))&&(!u||!Oq(c,g.overlapMode))){let w=d[m],_=d[m+1],b=d[m+2];if(a.push({key:g,x1:w-b,y1:_-b,x2:w+b,y2:_+b}),u)return!0}}}return!1}_queryCellCircle(e,t,r,i,n,a,o,s){let{circle:l,seenUids:u,overlapMode:c}=o,f=this.boxCells[n];if(f!==null){let p=this.bboxes;for(let d of f)if(!u.box[d]){u.box[d]=!0;let v=d*4,m=this.boxKeys[d];if(this._circleAndRectCollide(l.x,l.y,l.radius,p[v+0],p[v+1],p[v+2],p[v+3])&&(!s||s(m))&&!Oq(c,m.overlapMode))return a.push(!0),!0}}let h=this.circleCells[n];if(h!==null){let p=this.circles;for(let d of h)if(!u.circle[d]){u.circle[d]=!0;let v=d*3,m=this.circleKeys[d];if(this._circlesCollide(p[v],p[v+1],p[v+2],l.x,l.y,l.radius)&&(!s||s(m))&&!Oq(c,m.overlapMode))return a.push(!0),!0}}}_forEachCell(e,t,r,i,n,a,o,s){let l=this._convertToXCellCoord(e),u=this._convertToYCellCoord(t),c=this._convertToXCellCoord(r),f=this._convertToYCellCoord(i);for(let h=l;h<=c;h++)for(let p=u;p<=f;p++){let d=this.xCellCount*p+h;if(n.call(this,e,t,r,i,d,a,o,s))return}}_convertToXCellCoord(e){return Math.max(0,Math.min(this.xCellCount-1,Math.floor(e*this.xScale)))}_convertToYCellCoord(e){return Math.max(0,Math.min(this.yCellCount-1,Math.floor(e*this.yScale)))}_circlesCollide(e,t,r,i,n,a){let o=i-e,s=n-t,l=r+a;return l*l>o*o+s*s}_circleAndRectCollide(e,t,r,i,n,a,o){let s=(a-i)/2,l=Math.abs(e-(i+s));if(l>s+r)return!1;let u=(o-n)/2,c=Math.abs(t-(n+u));if(c>u+r)return!1;if(l<=s||c<=u)return!0;let f=l-s,h=c-u;return f*f+h*h<=r*r}};_Ar=Om();SAr=new Float32Array([-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0]);CAr=class{constructor(e,t=new aot(e.width+200,e.height+200,25),r=new aot(e.width+200,e.height+200,25)){this.transform=e,this.grid=t,this.ignoredGrid=r,this.pitchFactor=Math.cos(e.pitch*Math.PI/180)*e.cameraToCenterDistance,this.screenRightBoundary=e.width+100,this.screenBottomBoundary=e.height+100,this.gridRightBoundary=e.width+200,this.gridBottomBoundary=e.height+200,this.perspectiveRatioCutoff=.6}placeCollisionBox(e,t,r,i,n,a,o,s,l,u,c,f,h=0,p=!0){let d=e.anchorPointX+s[0],v=e.anchorPointY+s[1],m=this.projectAndGetPerspectiveRatio(d,v,n,Qq(u,d,v,h,p),f),g=r*m.perspectiveRatio,w;if(!a&&!o){let y=m.x+(c?c.x*g:0),E=m.y+(c?c.y*g:0);w={allPointsOccluded:!1,box:[y+e.x1*g,E+e.y1*g,y+e.x2*g,E+e.y2*g]}}else w=this._projectCollisionBox(e,g,i,n,a,o,s,m,u,c,f,h,p);let[_,b,S,x]=w.box,A=a?w.allPointsOccluded:m.isOccluded,T=A;return T||(T=m.perspectiveRatio=1;I--)P.push(D.path[I]);for(let I=1;IB.signedDistanceFromCamera<=0)?[]:I.map(B=>B.point)}let L=[];if(P.length>0){let I=P[0].clone(),B=P[0].clone();for(let O=1;O=M.x&&B.x<=C.x&&I.y>=M.y&&B.y<=C.y?[P]:B.xC.x||B.yC.y?[]:fae([P],M.x,M.y,C.x,C.y)}for(let I of L){k.reset(I,E*.25);let B=0;B=k.length<=.5*E?1:Math.ceil(k.paddedLength/R)+1;for(let O=0;O=this.screenRightBoundary||i<100||t>this.screenBottomBoundary}isInsideGrid(e,t,r,i){return r>=0&&e=0&&tthis.projectAndGetPerspectiveRatio(P.x,P.y,i,Qq(l,P.x,P.y,f,h),c));D=F.some(P=>!P.isOccluded),k=F.map(P=>new rr(P.x,P.y))}else D=!0;return{box:Gtt(k),allPointsOccluded:!D}}},lot=class{constructor(e,t,r,i){this.opacity=e?Math.max(0,Math.min(1,e.opacity+(e.placed?t:-t))):i&&r?1:0,this.placed=r}isHidden(){return this.opacity===0&&!this.placed}},VC=class{constructor(e,t,r,i,n){this.text=new lot(e?e.text:null,t,r,n),this.icon=new lot(e?e.icon:null,t,i,n)}isHidden(){return this.text.isHidden()&&this.icon.isHidden()}},uot=class{constructor(e,t,r){this.text=e,this.icon=t,this.skipFade=r}},DAr=class{constructor(e,t,r,i,n){this.bucketInstanceId=e,this.featureIndex=t,this.sourceLayerIndex=r,this.bucketIndex=i,this.tileID=n}},FAr=class{constructor(e){this.crossSourceCollisions=e,this.maxGroupID=0,this.collisionGroups={}}get(e){if(this.crossSourceCollisions)return{ID:0,predicate:null};if(!this.collisionGroups[e]){let t=++this.maxGroupID;this.collisionGroups[e]={ID:t,predicate:r=>r.collisionGroupID===t}}return this.collisionGroups[e]}};LAr=class{constructor(e,t,r,i,n){this.transform=e.clone(),this.terrain=t,this.collisionIndex=new CAr(this.transform),this.placements={},this.opacities={},this.variableOffsets={},this.stale=!1,this.commitTime=0,this.fadeDuration=r,this.retainedQueryData={},this.collisionGroups=new FAr(i),this.collisionCircleArrays={},this.collisionBoxArrays=new Map,this.prevPlacement=n,n&&(n.prevPlacement=void 0),this.placedOrientations={}}_getTerrainElevationFunc(e){let t=this.terrain;if(t)return(r,i)=>t.getElevation(e,r,i)}getBucketParts(e,t,r,i){let n=r.getBucket(t),a=r.latestFeatureIndex;if(!n||!a||t.id!==n.layerIds[0])return;let o=r.collisionBoxArray,s=n.layers[0].layout,l=n.layers[0].paint,u=2**(this.transform.zoom-r.tileID.overscaledZ),c=r.tileSize/qr,f=r.tileID.toUnwrapped(),h=s.get("text-rotation-alignment")==="map",p=r0(r,1,this.transform.zoom),d=Um(this.collisionIndex.transform,r,l.get("text-translate"),l.get("text-translate-anchor")),v=Um(this.collisionIndex.transform,r,l.get("icon-translate"),l.get("icon-translate-anchor")),m=koe(h,this.transform,p);this.retainedQueryData[n.bucketInstanceId]=new DAr(n.bucketInstanceId,a,n.sourceLayerIndex,n.index,r.tileID);let g={bucket:n,layout:s,translationText:d,translationIcon:v,unwrappedTileID:f,pitchedLabelPlaneMatrix:m,scale:u,textPixelRatio:c,holdingForFade:r.holdingForSymbolFade(),collisionBoxArray:o,partiallyEvaluatedTextSize:LC(n.textSizeData,this.transform.zoom),collisionGroup:this.collisionGroups.get(n.sourceID)};if(i)for(let w of n.sortKeyRanges){let{sortKey:_,symbolInstanceStart:b,symbolInstanceEnd:S}=w;e.push({sortKey:_,symbolInstanceStart:b,symbolInstanceEnd:S,parameters:g})}else e.push({symbolInstanceStart:0,symbolInstanceEnd:n.symbolInstances.length,parameters:g})}attemptAnchorPlacement(e,t,r,i,n,a,o,s,l,u,c,f,h,p,d,v,m,g,w,_,b,S){var E,M,C;let x=Fq[e.textAnchor],A=[e.textOffset0,e.textOffset1],T=cot(x,r,i,A,n),y=this.collisionIndex.placeCollisionBox(t,f,s,l,u,o,a,v,c.predicate,w,T,_,b,S);if((!g||this.collisionIndex.placeCollisionBox(g,f,s,l,u,o,a,m,c.predicate,w,T,_,b,S).placeable)&&y.placeable){let k;if((E=this.prevPlacement)!=null&&E.variableOffsets[h.crossTileID]&&((C=(M=this.prevPlacement)==null?void 0:M.placements[h.crossTileID])!=null&&C.text)&&(k=this.prevPlacement.variableOffsets[h.crossTileID].anchor),h.crossTileID===0)throw Error("symbolInstance.crossTileID can't be 0");return this.variableOffsets[h.crossTileID]={textOffset:A,width:r,height:i,anchor:x,textBoxScale:n,prevAnchor:k},this.markUsedJustification(p,x,h,d),p.allowVerticalPlacement&&(this.markUsedOrientation(p,d,h),this.placedOrientations[h.crossTileID]=d),{shift:T,placedGlyphBoxes:y}}}placeLayerBucketPart(e,t,r){let{bucket:i,layout:n,translationText:a,translationIcon:o,unwrappedTileID:s,pitchedLabelPlaneMatrix:l,textPixelRatio:u,holdingForFade:c,collisionBoxArray:f,partiallyEvaluatedTextSize:h,collisionGroup:p}=e.parameters,d=n.get("text-optional"),v=n.get("icon-optional"),m=uC(n,"text-overlap","text-allow-overlap"),g=m==="always",w=uC(n,"icon-overlap","icon-allow-overlap"),_=w==="always",b=n.get("text-rotation-alignment")==="map",S=n.get("text-pitch-alignment")==="map",x=n.get("icon-text-fit")!=="none",A=n.get("symbol-z-order")==="viewport-y",T=n.get("symbol-height-anchor")==="ground",y=g&&(_||!i.hasIconData()||v),E=_&&(g||!i.hasTextData()||d);!i.collisionArrays&&f&&i.deserializeCollisionBoxes(f);let M=this.retainedQueryData[i.bucketInstanceId].tileID,C=this._getTerrainElevationFunc(M),k=this.transform.getFastPathSimpleProjectionMatrix(M),D=(F,P,R)=>{var xe,ce;if(t[F.crossTileID])return;if(c){this.placements[F.crossTileID]=new uot(!1,!1,!1);return}let L=F.heightOffset,I=!1,B=!1,O=!0,$=null,X={box:null,placeable:!1,offscreen:null,occluded:!1},K={box:null,placeable:!1,offscreen:null},G=null,q=null,J=null,N=0,V=0,Y=0;P.textFeatureIndex?N=P.textFeatureIndex:F.useRuntimeCollisionCircles&&(N=F.featureIndex),P.verticalTextFeatureIndex&&(V=P.verticalTextFeatureIndex);let H=P.textBox;if(H){let oe=ee=>{let ae=1;if(i.allowVerticalPlacement&&!ee&&this.prevPlacement){let _e=this.prevPlacement.placedOrientations[F.crossTileID];_e&&(this.placedOrientations[F.crossTileID]=_e,ae=_e,this.markUsedOrientation(i,ae,F))}return ae},Se=(ee,ae)=>{if(i.allowVerticalPlacement&&F.numVerticalGlyphVertices>0&&P.verticalTextBox){for(let _e of i.writingModes)if(_e===2?(X=ae(),K=X):X=ee(),X==null?void 0:X.placeable)break}else X=ee()},be=F.textAnchorOffsetStartIndex,fe=F.textAnchorOffsetEndIndex;if(fe===be){let ee=(ae,_e)=>{let re=this.collisionIndex.placeCollisionBox(ae,m,u,M,s,S,b,a,p.predicate,C,void 0,k,L,T);return re!=null&&re.placeable&&(this.markUsedOrientation(i,_e,F),this.placedOrientations[F.crossTileID]=_e),re};Se(()=>ee(H,1),()=>{let ae=P.verticalTextBox;return i.allowVerticalPlacement&&F.numVerticalGlyphVertices>0&&ae?ee(ae,2):{box:null,offscreen:null}}),oe(X==null?void 0:X.placeable)}else{let ee=Fq[(ce=(xe=this.prevPlacement)==null?void 0:xe.variableOffsets[F.crossTileID])==null?void 0:ce.anchor],ae=(re,pe,Te)=>{let Ce=re.x2-re.x1,ze=re.y2-re.y1,we=F.textBoxScale,me=x&&w==="never"?pe:null,Le=null,Ne=m==="never"?1:2,Je="never";ee&&Ne++;for(let rt=0;rtae(H,P.iconBox,1),()=>{let re=P.verticalTextBox,pe=X==null?void 0:X.placeable;return i.allowVerticalPlacement&&!pe&&F.numVerticalGlyphVertices>0&&re?ae(re,P.verticalIconBox,2):{box:null,occluded:!0,offscreen:null}}),X&&(I=X.placeable,O=X.offscreen);let _e=oe(X==null?void 0:X.placeable);if(!I&&this.prevPlacement){let re=this.prevPlacement.variableOffsets[F.crossTileID];re&&(this.variableOffsets[F.crossTileID]=re,this.markUsedJustification(i,re.anchor,F,_e))}}}if(G=X,I=G==null?void 0:G.placeable,O=G==null?void 0:G.offscreen,F.useRuntimeCollisionCircles&&F.centerJustifiedTextSymbolIndex>=0){let oe=i.text.placedSymbolArray.get(F.centerJustifiedTextSymbolIndex),Se=Dq(i.textSizeData,h,oe),be=n.get("text-padding"),fe=F.collisionCircleDiameter;q=this.collisionIndex.placeCollisionCircles(m,oe,i.lineVertexArray,i.glyphOffsetArray,Se,s,l,r,S,p.predicate,fe,be,a,C),q.circles.length&&q.collisionDetected&&!r&&Pa("Collisions detected, but collision boxes are not shown"),I=g||q.circles.length>0&&!q.collisionDetected,O&&(O=q.offscreen)}if(P.iconFeatureIndex&&(Y=P.iconFeatureIndex),P.iconBox){let oe=Se=>this.collisionIndex.placeCollisionBox(Se,w,u,M,s,S,b,o,p.predicate,C,x&&$?$:void 0,k,L,T);K&&K.placeable&&P.verticalIconBox?(J=oe(P.verticalIconBox),B=J.placeable):(J=oe(P.iconBox),B=J.placeable),O&&(O=J.offscreen)}let j=d||F.numHorizontalGlyphVertices===0&&F.numVerticalGlyphVertices===0,Q=v||F.numIconVertices===0;!j&&!Q?B=I=B&&I:Q?j||B&&(B=I):I=B&&I;let te=I&&G.placeable,ue=B&&J.placeable;if(te&&(K&&K.placeable&&V?this.collisionIndex.insertCollisionBox(G.box,m,n.get("text-ignore-placement"),i.bucketInstanceId,V,p.ID):this.collisionIndex.insertCollisionBox(G.box,m,n.get("text-ignore-placement"),i.bucketInstanceId,N,p.ID)),ue&&this.collisionIndex.insertCollisionBox(J.box,w,n.get("icon-ignore-placement"),i.bucketInstanceId,Y,p.ID),q&&I&&this.collisionIndex.insertCollisionCircles(q.circles,m,n.get("text-ignore-placement"),i.bucketInstanceId,N,p.ID),r&&this.storeCollisionData(i.bucketInstanceId,R,P,G,J,q),F.crossTileID===0)throw Error("symbolInstance.crossTileID can't be 0");if(i.bucketInstanceId===0)throw Error("bucket.bucketInstanceId can't be 0");let ge=(I||y)&&!(G!=null&&G.occluded),Ee=(B||E)&&!(J!=null&&J.occluded);this.placements[F.crossTileID]=new uot(ge,Ee,O||i.justReloaded),t[F.crossTileID]=!0};if(A){if(e.symbolInstanceStart!==0)throw Error("bucket.bucketInstanceId should be 0");let F=i.getSortedSymbolIndexes(-this.transform.bearingInRadians);for(let P=F.length-1;P>=0;--P){let R=F[P];D(i.symbolInstances.get(R),i.collisionArrays[R],R)}}else for(let F=e.symbolInstanceStart;F=0&&(a>=0&&s!==a?e.text.placedSymbolArray.get(s).crossTileID=0:e.text.placedSymbolArray.get(s).crossTileID=r.crossTileID)}markUsedOrientation(e,t,r){let i=t===1||t===3?t:0,n=t===2?t:0,a=[r.leftJustifiedTextSymbolIndex,r.centerJustifiedTextSymbolIndex,r.rightJustifiedTextSymbolIndex];for(let o of a)e.text.placedSymbolArray.get(o).placedOrientation=i;r.verticalPlacedTextSymbolIndex&&(e.text.placedSymbolArray.get(r.verticalPlacedTextSymbolIndex).placedOrientation=n)}commit(e){this.commitTime=e,this.zoomAtLastRecencyCheck=this.transform.zoom;let t=this.prevPlacement,r=!1;this.prevZoomAdjustment=t?t.zoomAdjustment(this.transform.zoom):0;let i=t?t.symbolFadeChange(e):1,n=t?t.opacities:{},a=t?t.variableOffsets:{},o=t?t.placedOrientations:{};for(let s in this.placements){let l=this.placements[s],u=n[s];u?(this.opacities[s]=new VC(u,i,l.text,l.icon),r||(r=l.text!==u.text.placed),r||(r=l.icon!==u.icon.placed)):(this.opacities[s]=new VC(null,i,l.text,l.icon,l.skipFade),r||(r=l.text||l.icon))}for(let s in n){let l=n[s];if(!this.opacities[s]){let u=new VC(l,i,!1,!1);u.isHidden()||(this.opacities[s]=u,r||(r=l.text.placed),r||(r=l.icon.placed))}}for(let s in a)!this.variableOffsets[s]&&this.opacities[s]&&!this.opacities[s].isHidden()&&(this.variableOffsets[s]=a[s]);for(let s in o)!this.placedOrientations[s]&&this.opacities[s]&&!this.opacities[s].isHidden()&&(this.placedOrientations[s]=o[s]);if(t&&t.lastPlacementChangeTime===void 0)throw Error("Last placement time for previous placement is not defined");r?this.lastPlacementChangeTime=e:typeof this.lastPlacementChangeTime!="number"&&(this.lastPlacementChangeTime=t?t.lastPlacementChangeTime:e)}updateLayerOpacities(e,t){let r={};for(let i of t){let n=i.getBucket(e);n&&i.latestFeatureIndex&&e.id===n.layerIds[0]&&this.updateBucketOpacities(n,i.tileID,r,i.collisionBoxArray)}}updateBucketOpacities(e,t,r,i){e.hasTextData()&&(e.text.opacityVertexArray.clear(),e.text.hasVisibleVertices=!1),e.hasIconData()&&(e.icon.opacityVertexArray.clear(),e.icon.hasVisibleVertices=!1),e.hasIconCollisionBoxData()&&e.iconCollisionBox.collisionVertexArray.clear(),e.hasTextCollisionBoxData()&&e.textCollisionBox.collisionVertexArray.clear();let n=e.layers[0],a=n.layout,o=new VC(null,0,!1,!1,!0),s=a.get("text-allow-overlap"),l=a.get("icon-allow-overlap"),u=n._unevaluatedLayout.hasValue("text-variable-anchor")||n._unevaluatedLayout.hasValue("text-variable-anchor-offset"),c=a.get("text-rotation-alignment")==="map",f=a.get("text-pitch-alignment")==="map",h=a.get("icon-text-fit")!=="none",p=new VC(null,0,s&&(l||!e.hasIconData()||a.get("icon-optional")),l&&(s||!e.hasTextData()||a.get("text-optional")),!0);!e.collisionArrays&&i&&(e.hasIconCollisionBoxData()||e.hasTextCollisionBoxData())&&e.deserializeCollisionBoxes(i);let d=(m,g,w)=>{for(let _=0;_0||_>0,T=g.numIconVertices>0,y=this.placedOrientations[g.crossTileID],E=y===2,M=y===1||y===3;if(A){let k=hot(x.text),D=E?GC:k;d(e.text,w,D);let F=M?GC:k;d(e.text,_,F);let P=x.text.isHidden(),R=[g.rightJustifiedTextSymbolIndex,g.centerJustifiedTextSymbolIndex,g.leftJustifiedTextSymbolIndex];for(let B of R)B>=0&&(e.text.placedSymbolArray.get(B).hidden=P||E?1:0);g.verticalPlacedTextSymbolIndex>=0&&(e.text.placedSymbolArray.get(g.verticalPlacedTextSymbolIndex).hidden=P||M?1:0);let L=this.variableOffsets[g.crossTileID];L&&this.markUsedJustification(e,L.anchor,g,y);let I=this.placedOrientations[g.crossTileID];I&&(this.markUsedJustification(e,"left",g,I),this.markUsedOrientation(e,I,g))}if(T){let k=hot(x.icon),D=!(h&&g.verticalPlacedIconSymbolIndex&&E);if(g.placedIconSymbolIndex>=0){let F=D?k:GC;d(e.icon,g.numIconVertices,F),e.icon.placedSymbolArray.get(g.placedIconSymbolIndex).hidden=x.icon.isHidden()}if(g.verticalPlacedIconSymbolIndex>=0){let F=D?GC:k;d(e.icon,g.numVerticalIconVertices,F),e.icon.placedSymbolArray.get(g.verticalPlacedIconSymbolIndex).hidden=x.icon.isHidden()}}let C=v!=null&&v.has(m)?v.get(m):{text:null,icon:null};if(e.hasIconCollisionBoxData()||e.hasTextCollisionBoxData()){let k=e.collisionArrays[m];if(k){let D=new rr(0,0);if(k.textBox||k.verticalTextBox){let F=!0;if(u){let P=this.variableOffsets[b];P?(D=cot(P.anchor,P.width,P.height,P.textOffset,P.textBoxScale),c&&D._rotate(f?-this.transform.bearingInRadians:this.transform.bearingInRadians)):F=!1}if(k.textBox||k.verticalTextBox){let P;k.textBox&&(P=E),k.verticalTextBox&&(P=M),fot(e.textCollisionBox.collisionVertexArray,x.text.placed,!F||P,C.text,D.x,D.y)}}if(k.iconBox||k.verticalIconBox){let F=!(M||!k.verticalIconBox),P;k.iconBox&&(P=F),k.verticalIconBox&&(P=!F),fot(e.iconCollisionBox.collisionVertexArray,x.icon.placed,P,C.icon,h?D.x:0,h?D.y:0)}}}}if(e.sortFeatures(-this.transform.bearingInRadians),this.retainedQueryData[e.bucketInstanceId]&&(this.retainedQueryData[e.bucketInstanceId].featureSortOrder=e.featureSortOrder),e.hasTextData()&&e.text.opacityVertexBuffer&&e.text.opacityVertexBuffer.updateData(e.text.opacityVertexArray),e.hasIconData()&&e.icon.opacityVertexBuffer&&e.icon.opacityVertexBuffer.updateData(e.icon.opacityVertexArray),e.hasIconCollisionBoxData()&&e.iconCollisionBox.collisionVertexBuffer&&e.iconCollisionBox.collisionVertexBuffer.updateData(e.iconCollisionBox.collisionVertexArray),e.hasTextCollisionBoxData()&&e.textCollisionBox.collisionVertexBuffer&&e.textCollisionBox.collisionVertexBuffer.updateData(e.textCollisionBox.collisionVertexArray),e.text.opacityVertexArray.length!==e.text.layoutVertexArray.length/4)throw Error(`bucket.text.opacityVertexArray.length (= ${e.text.opacityVertexArray.length}) !== bucket.text.layoutVertexArray.length (= ${e.text.layoutVertexArray.length}) / 4`);if(e.icon.opacityVertexArray.length!==e.icon.layoutVertexArray.length/4)throw Error(`bucket.icon.opacityVertexArray.length (= ${e.icon.opacityVertexArray.length}) !== bucket.icon.layoutVertexArray.length (= ${e.icon.layoutVertexArray.length}) / 4`);e.bucketInstanceId in this.collisionCircleArrays&&(e.collisionCircleArray=this.collisionCircleArrays[e.bucketInstanceId],delete this.collisionCircleArrays[e.bucketInstanceId])}symbolFadeChange(e){return this.fadeDuration===0?1:(e-this.commitTime)/this.fadeDuration+this.prevZoomAdjustment}zoomAdjustment(e){return Math.max(0,(this.transform.zoom-e)/1.5)}hasTransitions(e){return this.stale||e-this.lastPlacementChangeTimee}setStale(){this.stale=!0}};PAr=2**25,IAr=2**24,RAr=2**17,zAr=2**16;GC=0,BAr=class{constructor(e){this._sortAcrossTiles=e.layout.get("symbol-z-order")!=="viewport-y"&&!e.layout.get("symbol-sort-key").isConstant(),this._currentTileIndex=0,this._currentPartIndex=0,this._seenCrossTileIDs={},this._bucketParts=[]}continuePlacement(e,t,r,i,n){let a=this._bucketParts;for(;this._currentTileIndexo.sortKey-s.sortKey));this._currentPartIndex!this._forceFullPlacement&&zo()-i>2;for(;this._currentPlacementIndex>=0;){let a=t[e[this._currentPlacementIndex]],o=this.placement.collisionIndex.transform.zoom;if(dae(a)&&a.layout&&(!a.minzoom||a.minzoom<=o)&&(!a.maxzoom||a.maxzoom>o)){if(this._inProgressLayer||(this._inProgressLayer=new BAr(a)),this._inProgressLayer.continuePlacement(r[a.source],this.placement,this._showCollisionBoxes,a,n))return;delete this._inProgressLayer}this._currentPlacementIndex--}this._done=!0}commit(e){return this.placement.commit(e),this.placement}},dot=[Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array],Al=new Uint32Array(96),OAr=class Cst{static from(t){if(!t||t.byteLength===void 0||t.buffer)throw Error("Data must be an instance of ArrayBuffer or SharedArrayBuffer.");let[r,i]=new Uint8Array(t,0,2);if(r!==219)throw Error("Data does not appear to be in a KDBush format.");let n=i>>4;if(n!==1)throw Error(`Got v${n} data when expected v1.`);let a=dot[i&15];if(!a)throw Error("Unrecognized array type.");let[o]=new Uint16Array(t,2,1),[s]=new Uint32Array(t,4,1);return new Cst(s,o,a,void 0,t)}constructor(t,r=64,i=Float64Array,n=ArrayBuffer,a){if(isNaN(t)||t<0)throw Error(`Unexpected numItems value: ${t}.`);this.numItems=+t,this.nodeSize=Math.min(Math.max(+r,2),65535),this.ArrayType=i,this.IndexArrayType=t<65536?Uint16Array:Uint32Array;let o=dot.indexOf(this.ArrayType),s=t*2*this.ArrayType.BYTES_PER_ELEMENT,l=t*this.IndexArrayType.BYTES_PER_ELEMENT,u=(8-l%8)%8;if(o<0)throw Error(`Unexpected typed array class: ${i}.`);if(a)this.data=a,this.ids=new this.IndexArrayType(a,8,t),this.coords=new i(a,8+l+u,t*2),this._pos=t*2,this._finished=!0;else{let c=this.data=new n(8+s+l+u);this.ids=new this.IndexArrayType(c,8,t),this.coords=new i(c,8+l+u,t*2),this._pos=0,this._finished=!1,new Uint8Array(c,0,2).set([219,16+o]),new Uint16Array(c,2,1)[0]=r,new Uint32Array(c,4,1)[0]=t}}add(t,r){let i=this._pos>>1;return this.ids[i]=i,this.coords[this._pos++]=t,this.coords[this._pos++]=r,i}finish(){let t=this._pos>>1;if(t!==this.numItems)throw Error(`Added ${t} items when expected ${this.numItems}.`);return uoe(this.ids,this.coords,this.nodeSize,0,this.numItems-1,0),this._finished=!0,this}range(t,r,i,n){if(!this._finished)throw Error("Data not yet indexed - call index.finish().");let{ids:a,coords:o,nodeSize:s}=this;Al[0]=0,Al[1]=a.length-1,Al[2]=0;let l=3,u=[];for(;l>0;){let c=Al[--l],f=Al[--l],h=Al[--l];if(f-h<=s){for(let m=h;m<=f;m++){let g=o[2*m],w=o[2*m+1];g>=t&&g<=i&&w>=r&&w<=n&&u.push(a[m])}continue}let p=h+f>>1,d=o[2*p],v=o[2*p+1];d>=t&&d<=i&&v>=r&&v<=n&&u.push(a[p]),(c===0?t<=d:r<=v)&&(Al[l++]=h,Al[l++]=p-1,Al[l++]=1-c),(c===0?i>=d:n>=v)&&(Al[l++]=p+1,Al[l++]=f,Al[l++]=1-c)}return u}within(t,r,i){let n=[];return this.withinInto(t,r,i,n),n}withinInto(t,r,i,n){if(!this._finished)throw Error("Data not yet indexed - call index.finish().");let{ids:a,coords:o,nodeSize:s}=this;Al[0]=0,Al[1]=a.length-1,Al[2]=0;let l=3,u=0,c=i*i;for(;l>0;){let f=Al[--l],h=Al[--l],p=Al[--l];if(h-p<=s){for(let g=p;g<=h;g++)pot(o[2*g],o[2*g+1],t,r)<=c&&(n[u++]=a[g]);continue}let d=p+h>>1,v=o[2*d],m=o[2*d+1];pot(v,m,t,r)<=c&&(n[u++]=a[d]),(f===0?t-i<=v:r-i<=m)&&(Al[l++]=p,Al[l++]=d-1,Al[l++]=1-f),(f===0?t+i>=v:r+i>=m)&&(Al[l++]=d+1,Al[l++]=h,Al[l++]=1-f)}return u}};jC=512/qr/2,NAr=class{constructor(e,t,r){this.tileID=e,this.bucketInstanceId=r,this._symbolsByKey={};let i=new Map;for(let n=0;n({x:Math.floor(s.anchorX*jC),y:Math.floor(s.anchorY*jC)})),crossTileIDs:a.map(s=>s.crossTileID)};if(o.positions.length>128){let s=new OAr(o.positions.length,16,Uint16Array);for(let{x:l,y:u}of o.positions)s.add(l,u);s.finish(),delete o.positions,o.index=s}this._symbolsByKey[n]=o}}getScaledCoordinates(e,t){let{x:r,y:i,z:n}=this.tileID.canonical,{x:a,y:o,z:s}=t.canonical,l=s-n,u=jC/2**l,c=(a*qr+e.anchorX)*u,f=(o*qr+e.anchorY)*u,h=r*qr*jC,p=i*qr*jC;return{x:Math.floor(c-h),y:Math.floor(f-p)}}findMatches(e,t,r){let i=this.tileID.canonical.ze)}},UAr=class{constructor(){this.maxCrossTileID=0}generate(){return++this.maxCrossTileID}},VAr=class{constructor(){this.indexes={},this.usedCrossTileIDs={},this.lng=0}handleWrapJump(e){let t=Math.round((e-this.lng)/360);if(t!==0)for(let r in this.indexes){let i=this.indexes[r],n={};for(let a in i){let o=i[a];o.tileID=o.tileID.unwrapTo(o.tileID.wrap+t),n[o.tileID.key]=o}this.indexes[r]=n}this.lng=e}addBucket(e,t,r){var n,a,o;if((n=this.indexes[e.overscaledZ])!=null&&n[e.key]){if(this.indexes[e.overscaledZ][e.key].bucketInstanceId===t.bucketInstanceId)return!1;this.removeBucketCrossTileIDs(e.overscaledZ,this.indexes[e.overscaledZ][e.key])}for(let s=0;se.overscaledZ)for(let u in l){let c=l[u];c.tileID.isChildOf(e)&&c.findMatches(t.symbolInstances,e,i)}else{let u=l[e.scaledTo(Number(s)).key];u&&u.findMatches(t.symbolInstances,e,i)}}for(let s=0;s 1.0) {gl_Position.xy=vec2(10000.0);}if (u_scale_with_map) {gl_Position.xy+=extrude*(radius+stroke_width)*u_extrude_scale*u_camera_to_center_distance;} else {gl_Position.xy+=extrude*(radius+stroke_width)*u_extrude_scale*gl_Position.w;}}float antialiasblur=-max(1.0/u_device_pixel_ratio/(radius+stroke_width),blur);v_data=vec3(extrude.x,extrude.y,antialiasblur);}`,sot="void main() {fragColor=vec4(1.0);}",fg={prelude:vo(FAr,LAr),projectionMercator:vo(` -void clipAntimeridian() {}`,"float projectLineThickness(float tileY) {return 1.0;}float projectCircleRadius(float tileY) {return 1.0;}vec4 projectTile(vec2 p) {vec4 result=u_projection_matrix*vec4(p,0.0,1.0);return result;}vec4 projectTile(vec2 p,vec2 rawPos) {vec4 result=u_projection_matrix*vec4(p,0.0,1.0);if (rawPos.y <-32767.5 || rawPos.y > 32766.5) {result.z=-10000000.0;}return result;}vec4 projectTileWithElevation(vec2 posInTile,float elevation) {return u_projection_matrix*vec4(posInTile,elevation,1.0);}vec4 projectTileFor3D(vec2 posInTile,float elevation) {return projectTileWithElevation(posInTile,elevation);}"),projectionGlobe:vo("in highp float v_projection_tile_x;void clipAntimeridian() {if (u_projection_clip_antimeridian !=0 && (v_projection_tile_x < 0.0 || v_projection_tile_x >=8192.0)) {discard;}}",`#define GLOBE_RADIUS 6371008.8 +} else {gl_Position=projectTileWithElevation(circle_center,ele);if (gl_Position.z/gl_Position.w > 1.0) {gl_Position.xy=vec2(10000.0);}if (u_scale_with_map) {gl_Position.xy+=extrude*(radius+stroke_width)*u_extrude_scale*u_camera_to_center_distance;} else {gl_Position.xy+=extrude*(radius+stroke_width)*u_extrude_scale*gl_Position.w;}}float antialiasblur=-max(1.0/u_device_pixel_ratio/(radius+stroke_width),blur);v_data=vec3(extrude.x,extrude.y,antialiasblur);}`,vot="void main() {fragColor=vec4(1.0);}",dg={prelude:go(GAr,HAr),projectionMercator:go(` +void clipAntimeridian() {}`,"float projectLineThickness(float tileY) {return 1.0;}float projectCircleRadius(float tileY) {return 1.0;}vec4 projectTile(vec2 p) {vec4 result=u_projection_matrix*vec4(p,0.0,1.0);return result;}vec4 projectTile(vec2 p,vec2 rawPos) {vec4 result=u_projection_matrix*vec4(p,0.0,1.0);if (rawPos.y <-32767.5 || rawPos.y > 32766.5) {result.z=-10000000.0;}return result;}vec4 projectTileWithElevation(vec2 posInTile,float elevation) {return u_projection_matrix*vec4(posInTile,elevation,1.0);}vec4 projectTileFor3D(vec2 posInTile,float elevation) {return projectTileWithElevation(posInTile,elevation);}"),projectionGlobe:go("in highp float v_projection_tile_x;void clipAntimeridian() {if (u_projection_clip_antimeridian !=0 && (v_projection_tile_x < 0.0 || v_projection_tile_x >=8192.0)) {discard;}}",`#define GLOBE_RADIUS 6371008.8 #ifndef PROJECTION_UBO uniform highp vec4 u_projection_tile_mercator_coords;uniform highp vec4 u_projection_clipping_plane;uniform highp float u_projection_transition;uniform mat4 u_projection_fallback_matrix; #endif out highp float v_projection_tile_x;vec3 globeRotateVector(vec3 vec,vec2 angles) {vec3 axisRight=vec3(vec.z,0.0,-vec.x);vec3 axisUp=cross(axisRight,vec);axisRight=normalize(axisRight);axisUp=normalize(axisUp);vec2 t=tan(angles);return normalize(vec+axisRight*t.x+axisUp*t.y);}mat3 globeGetRotationMatrix(vec3 spherePos) {vec3 axisRight=vec3(spherePos.z,0.0,-spherePos.x);vec3 axisDown=cross(axisRight,spherePos);axisRight=normalize(axisRight);axisDown=normalize(axisDown);return mat3(axisRight,axisDown,spherePos );}float circumferenceRatioAtTileY(float tileY) {float mercator_pos_y=u_projection_tile_mercator_coords.y+u_projection_tile_mercator_coords.w*tileY;float t=exp(PI-(mercator_pos_y*PI*2.0));return (2.0*t)/(t*t+1.0);}float projectLineThickness(float tileY) {float thickness=1.0/circumferenceRatioAtTileY(tileY);if (u_projection_transition < 0.999) {return mix(1.0,thickness,u_projection_transition);} else {return thickness;}}vec3 projectToSphere(vec2 translatedPos,vec2 rawPos) {vec2 mercator_pos=u_projection_tile_mercator_coords.xy+u_projection_tile_mercator_coords.zw*translatedPos;float spherical_x=mercator_pos.x*PI*2.0+PI;float t=exp(PI-(mercator_pos.y*PI*2.0));float t2=t*t;float denom=t2+1.0;float sin_sy=(t2-1.0)/denom;float cos_sy=(2.0*t)/denom;vec3 pos=vec3(sin(spherical_x)*cos_sy,sin_sy,cos(spherical_x)*cos_sy -);if (rawPos.y <-32767.5) {pos=vec3(0.0,1.0,0.0);}if (rawPos.y > 32766.5) {pos=vec3(0.0,-1.0,0.0);}return pos;}vec3 projectToSphere(vec2 posInTile) {return projectToSphere(posInTile,vec2(0.0,0.0));}float globeComputeClippingZ(vec3 spherePos) {return (1.0-(dot(spherePos,u_projection_clipping_plane.xyz)+u_projection_clipping_plane.w));}vec4 interpolateProjection(vec2 posInTile,vec3 spherePos,float elevation) {v_projection_tile_x=posInTile.x;vec3 elevatedPos=spherePos*(1.0+elevation/GLOBE_RADIUS);vec4 globePosition=u_projection_matrix*vec4(elevatedPos,1.0);globePosition.z=globeComputeClippingZ(elevatedPos)*globePosition.w;if (u_projection_transition > 0.999) {return globePosition;}vec4 flatPosition=u_projection_fallback_matrix*vec4(posInTile,elevation,1.0);const float z_globeness_threshold=0.2;vec4 result=globePosition;result.z=mix(0.0,globePosition.z,clamp((u_projection_transition-z_globeness_threshold)/(1.0-z_globeness_threshold),0.0,1.0));result.xyw=mix(flatPosition.xyw,globePosition.xyw,u_projection_transition);if ((posInTile.y <-32767.5) || (posInTile.y > 32766.5)) {result=globePosition;const float poles_hidden_anim_percentage=0.02;result.z=mix(globePosition.z,100.0,pow(max((1.0-u_projection_transition)/poles_hidden_anim_percentage,0.0),8.0));}return result;}vec4 interpolateProjectionFor3D(vec2 posInTile,vec3 spherePos,float elevation) {v_projection_tile_x=posInTile.x;vec3 elevatedPos=spherePos*(1.0+elevation/GLOBE_RADIUS);vec4 globePosition=u_projection_matrix*vec4(elevatedPos,1.0);if (u_projection_transition > 0.999) {return globePosition;}vec4 fallbackPosition=u_projection_fallback_matrix*vec4(posInTile,elevation,1.0);return mix(fallbackPosition,globePosition,u_projection_transition);}vec4 projectTile(vec2 posInTile) {return interpolateProjection(posInTile,projectToSphere(posInTile),0.0);}vec4 projectTile(vec2 posInTile,vec2 rawPos) {return interpolateProjection(posInTile,projectToSphere(posInTile,rawPos),0.0);}vec4 projectTileWithElevation(vec2 posInTile,float elevation) {return interpolateProjection(posInTile,projectToSphere(posInTile),elevation);}vec4 projectTileFor3D(vec2 posInTile,float elevation) {vec3 spherePos=projectToSphere(posInTile,posInTile);return interpolateProjectionFor3D(posInTile,spherePos,elevation);}`),background:vo(PAr,IAr),backgroundPattern:vo(RAr,zAr),circle:vo(BAr,qAr),clippingMask:vo(sot,"layout(location=0) in vec2 a_pos;void main() {gl_Position=projectTile(a_pos);}"),heatmap:vo(`uniform highp float u_intensity;in vec2 v_extrude; +);if (rawPos.y <-32767.5) {pos=vec3(0.0,1.0,0.0);}if (rawPos.y > 32766.5) {pos=vec3(0.0,-1.0,0.0);}return pos;}vec3 projectToSphere(vec2 posInTile) {return projectToSphere(posInTile,vec2(0.0,0.0));}float globeComputeClippingZ(vec3 spherePos) {return (1.0-(dot(spherePos,u_projection_clipping_plane.xyz)+u_projection_clipping_plane.w));}vec4 interpolateProjection(vec2 posInTile,vec3 spherePos,float elevation) {v_projection_tile_x=posInTile.x;vec3 elevatedPos=spherePos*(1.0+elevation/GLOBE_RADIUS);vec4 globePosition=u_projection_matrix*vec4(elevatedPos,1.0);globePosition.z=globeComputeClippingZ(elevatedPos)*globePosition.w;if (u_projection_transition > 0.999) {return globePosition;}vec4 flatPosition=u_projection_fallback_matrix*vec4(posInTile,elevation,1.0);const float z_globeness_threshold=0.2;vec4 result=globePosition;result.z=mix(0.0,globePosition.z,clamp((u_projection_transition-z_globeness_threshold)/(1.0-z_globeness_threshold),0.0,1.0));result.xyw=mix(flatPosition.xyw,globePosition.xyw,u_projection_transition);if ((posInTile.y <-32767.5) || (posInTile.y > 32766.5)) {result=globePosition;const float poles_hidden_anim_percentage=0.02;result.z=mix(globePosition.z,100.0,pow(max((1.0-u_projection_transition)/poles_hidden_anim_percentage,0.0),8.0));}return result;}vec4 interpolateProjectionFor3D(vec2 posInTile,vec3 spherePos,float elevation) {v_projection_tile_x=posInTile.x;vec3 elevatedPos=spherePos*(1.0+elevation/GLOBE_RADIUS);vec4 globePosition=u_projection_matrix*vec4(elevatedPos,1.0);if (u_projection_transition > 0.999) {return globePosition;}vec4 fallbackPosition=u_projection_fallback_matrix*vec4(posInTile,elevation,1.0);return mix(fallbackPosition,globePosition,u_projection_transition);}vec4 projectTile(vec2 posInTile) {return interpolateProjection(posInTile,projectToSphere(posInTile),0.0);}vec4 projectTile(vec2 posInTile,vec2 rawPos) {return interpolateProjection(posInTile,projectToSphere(posInTile,rawPos),0.0);}vec4 projectTileWithElevation(vec2 posInTile,float elevation) {return interpolateProjection(posInTile,projectToSphere(posInTile),elevation);}vec4 projectTileFor3D(vec2 posInTile,float elevation) {vec3 spherePos=projectToSphere(posInTile,posInTile);return interpolateProjectionFor3D(posInTile,spherePos,elevation);}`),background:go(jAr,$Ar),backgroundPattern:go(WAr,YAr),circle:go(XAr,ZAr),clippingMask:go(vot,"layout(location=0) in vec2 a_pos;void main() {gl_Position=projectTile(a_pos);}"),heatmap:go(`uniform highp float u_intensity;in vec2 v_extrude; #pragma maplibre: define highp float weight #define GAUSS_COEF 0.3989422804014327 void main() { @@ -2924,11 +2924,11 @@ vec2 angles=v_extrude*radius*u_globe_extrude_scale;vec3 center_vector=projectToS #else gl_Position=projectTileFor3D(circle_center+extrude,get_elevation(circle_center)); #endif -}`),heatmapTexture:vo(`uniform sampler2D u_image;uniform sampler2D u_color_ramp;uniform float u_opacity;in vec2 v_pos;void main() {float t=texture(u_image,v_pos).r;vec4 color=texture(u_color_ramp,vec2(t,0.5));fragColor=color*u_opacity; +}`),heatmapTexture:go(`uniform sampler2D u_image;uniform sampler2D u_color_ramp;uniform float u_opacity;in vec2 v_pos;void main() {float t=texture(u_image,v_pos).r;vec4 color=texture(u_color_ramp,vec2(t,0.5));fragColor=color*u_opacity; #ifdef OVERDRAW_INSPECTOR fragColor=vec4(0.0); #endif -}`,"uniform mat4 u_matrix;layout(location=0) in vec2 a_pos;out vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos*u_world_size,0,1);v_pos.x=a_pos.x;v_pos.y=1.0-a_pos.y;}"),collisionBox:vo("flat in float v_placed;flat in float v_notUsed;void main() {float alpha=0.5;fragColor=vec4(1.0,0.0,0.0,1.0)*alpha;if (v_placed > 0.5) {fragColor=vec4(0.0,0.0,1.0,0.5)*alpha;}if (v_notUsed > 0.5) {fragColor*=.1;}}","layout(location=0) in vec2 a_anchor_pos;layout(location=1) in vec2 a_placed;layout(location=2) in vec2 a_box_real;flat out float v_placed;flat out float v_notUsed;void main() {gl_Position=projectTileWithElevation(a_anchor_pos,get_elevation(a_anchor_pos));gl_Position.xy=((a_box_real+0.5)*u_pixel_extrude_scale*2.0-1.0)*vec2(1.0,-1.0)*gl_Position.w;if (gl_Position.z/gl_Position.w < 1.1) {gl_Position.z=0.5;}v_placed=a_placed.x;v_notUsed=a_placed.y;}"),collisionCircle:vo("flat in float v_radius;in vec2 v_extrude;flat in float v_collision;void main() {float alpha=0.5;float stroke_radius=0.9;float distance_to_center=length(v_extrude);float distance_to_edge=abs(distance_to_center-v_radius);float opacity_t=smoothstep(-stroke_radius,0.0,-distance_to_edge);vec4 color=mix(vec4(0.0,0.0,1.0,0.5),vec4(1.0,0.0,0.0,1.0),v_collision);fragColor=color*alpha*opacity_t;}","layout(location=0) in vec2 a_pos;layout(location=1) in float a_radius;layout(location=2) in vec2 a_flags;flat out float v_radius;out vec2 v_extrude;flat out float v_collision;void main() {float radius=a_radius;float collision=a_flags.x;float vertexIdx=a_flags.y;vec2 quadVertexOffset=vec2(mix(-1.0,1.0,float(vertexIdx >=2.0)),mix(-1.0,1.0,float(vertexIdx >=1.0 && vertexIdx <=2.0)));vec2 quadVertexExtent=quadVertexOffset*radius;float padding_factor=1.2;v_radius=radius;v_extrude=quadVertexExtent*padding_factor;v_collision=collision;gl_Position=vec4((a_pos/u_viewport_size*2.0-1.0)*vec2(1.0,-1.0),0.0,1.0)+vec4(quadVertexExtent*padding_factor/u_viewport_size*2.0,0.0,0.0);}"),colorRelief:vo(`#ifdef GL_ES +}`,"uniform mat4 u_matrix;layout(location=0) in vec2 a_pos;out vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos*u_world_size,0,1);v_pos.x=a_pos.x;v_pos.y=1.0-a_pos.y;}"),collisionBox:go("flat in float v_placed;flat in float v_notUsed;void main() {float alpha=0.5;fragColor=vec4(1.0,0.0,0.0,1.0)*alpha;if (v_placed > 0.5) {fragColor=vec4(0.0,0.0,1.0,0.5)*alpha;}if (v_notUsed > 0.5) {fragColor*=.1;}}","layout(location=0) in vec2 a_anchor_pos;layout(location=1) in vec2 a_placed;layout(location=2) in vec2 a_box_real;flat out float v_placed;flat out float v_notUsed;void main() {gl_Position=projectTileWithElevation(a_anchor_pos,get_elevation(a_anchor_pos));gl_Position.xy=((a_box_real+0.5)*u_pixel_extrude_scale*2.0-1.0)*vec2(1.0,-1.0)*gl_Position.w;if (gl_Position.z/gl_Position.w < 1.1) {gl_Position.z=0.5;}v_placed=a_placed.x;v_notUsed=a_placed.y;}"),collisionCircle:go("flat in float v_radius;in vec2 v_extrude;flat in float v_collision;void main() {float alpha=0.5;float stroke_radius=0.9;float distance_to_center=length(v_extrude);float distance_to_edge=abs(distance_to_center-v_radius);float opacity_t=smoothstep(-stroke_radius,0.0,-distance_to_edge);vec4 color=mix(vec4(0.0,0.0,1.0,0.5),vec4(1.0,0.0,0.0,1.0),v_collision);fragColor=color*alpha*opacity_t;}","layout(location=0) in vec2 a_pos;layout(location=1) in float a_radius;layout(location=2) in vec2 a_flags;flat out float v_radius;out vec2 v_extrude;flat out float v_collision;void main() {float radius=a_radius;float collision=a_flags.x;float vertexIdx=a_flags.y;vec2 quadVertexOffset=vec2(mix(-1.0,1.0,float(vertexIdx >=2.0)),mix(-1.0,1.0,float(vertexIdx >=1.0 && vertexIdx <=2.0)));vec2 quadVertexExtent=quadVertexOffset*radius;float padding_factor=1.2;v_radius=radius;v_extrude=quadVertexExtent*padding_factor;v_collision=collision;gl_Position=vec4((a_pos/u_viewport_size*2.0-1.0)*vec2(1.0,-1.0),0.0,1.0)+vec4(quadVertexExtent*padding_factor/u_viewport_size*2.0,0.0,0.0);}"),colorRelief:go(`#ifdef GL_ES precision highp float; #endif uniform sampler2D u_image;uniform vec4 u_unpack;uniform sampler2D u_elevation_stops;uniform sampler2D u_color_stops;uniform int u_color_ramp_size;uniform float u_opacity;in vec2 v_pos;float getElevation(vec2 coord) {vec4 data=texture(u_image,coord)*255.0;data.a=-1.0;return dot(data,u_unpack);}float getElevationStop(int stop) {vec4 data=texelFetch(u_elevation_stops,ivec2(stop,0),0)*255.0;data.a=-1.0;return dot(data,u_unpack);}void main() {float el=getElevation(v_pos);int r=(u_color_ramp_size-1);int l=0;float el_l=getElevationStop(l);float el_r=getElevationStop(r);while(r-l > 1){int m=(r+l)/2;float el_m=getElevationStop(m);if(el < el_m){r=m;el_r=el_m;}else @@ -2936,13 +2936,13 @@ uniform sampler2D u_image;uniform vec4 u_unpack;uniform sampler2D u_elevation_st #ifdef OVERDRAW_INSPECTOR fragColor=vec4(1.0); #endif -}`,"uniform vec2 u_dimension;layout(location=0) in vec2 a_pos;out vec2 v_pos;void main() {gl_Position=projectTile(a_pos,a_pos);highp vec2 epsilon=2.0/u_dimension;float scale=(u_dimension.x-4.0)/u_dimension.x;v_pos=(a_pos/8192.0)*scale+epsilon;if (a_pos.y <-32767.5) {v_pos.y=0.0;}if (a_pos.y > 32766.5) {v_pos.y=1.0;}}"),debug:vo("uniform highp vec4 u_color;uniform sampler2D u_overlay;in vec2 v_uv;void main() {vec4 overlay_color=texture(u_overlay,v_uv);fragColor=mix(u_color,overlay_color,overlay_color.a);}","layout(location=0) in vec2 a_pos;out vec2 v_uv;uniform float u_overlay_scale;void main() {v_uv=a_pos/8192.0;gl_Position=projectTileWithElevation(a_pos*u_overlay_scale,get_elevation(a_pos));}"),depth:vo(sot,`layout(location=0) in vec2 a_pos;void main() { +}`,"uniform vec2 u_dimension;layout(location=0) in vec2 a_pos;out vec2 v_pos;void main() {gl_Position=projectTile(a_pos,a_pos);highp vec2 epsilon=2.0/u_dimension;float scale=(u_dimension.x-4.0)/u_dimension.x;v_pos=(a_pos/8192.0)*scale+epsilon;if (a_pos.y <-32767.5) {v_pos.y=0.0;}if (a_pos.y > 32766.5) {v_pos.y=1.0;}}"),debug:go("uniform highp vec4 u_color;uniform sampler2D u_overlay;in vec2 v_uv;void main() {vec4 overlay_color=texture(u_overlay,v_uv);fragColor=mix(u_color,overlay_color,overlay_color.a);}","layout(location=0) in vec2 a_pos;out vec2 v_uv;uniform float u_overlay_scale;void main() {v_uv=a_pos/8192.0;gl_Position=projectTileWithElevation(a_pos*u_overlay_scale,get_elevation(a_pos));}"),depth:go(vot,`layout(location=0) in vec2 a_pos;void main() { #ifdef GLOBE gl_Position=projectTileFor3D(a_pos,0.0); #else gl_Position=u_projection_matrix*vec4(a_pos,0.0,1.0); #endif -}`),fill:vo(`#pragma maplibre: define highp vec4 color +}`),fill:go(`#pragma maplibre: define highp vec4 color #pragma maplibre: define lowp float opacity void main() { #pragma maplibre: initialize highp vec4 color @@ -2957,7 +2957,7 @@ fragColor=vec4(1.0); void main() { #pragma maplibre: initialize highp vec4 color #pragma maplibre: initialize lowp float opacity -if (opacity < 0.01) {gl_Position=vec4(-2.0,-2.0,-2.0,1.0);return;}gl_Position=projectTile(a_pos+u_fill_translate,a_pos);}`),fillOutline:vo(`in vec2 v_pos; +if (opacity < 0.01) {gl_Position=vec4(-2.0,-2.0,-2.0,1.0);return;}gl_Position=projectTile(a_pos+u_fill_translate,a_pos);}`),fillOutline:go(`in vec2 v_pos; #ifdef GLOBE in float v_depth; #endif @@ -2986,7 +2986,7 @@ if (opacity < 0.01) {gl_Position=vec4(-2.0,-2.0,-2.0,1.0);return;}gl_Position=pr #ifdef GLOBE v_depth=gl_Position.z/gl_Position.w; #endif -}`),fillOutlinePattern:vo(`uniform vec2 u_texsize;uniform sampler2D u_image;uniform float u_fade;uniform bool u_sdf_pattern;in vec2 v_pos_a;in vec2 v_pos_b;in vec2 v_pos; +}`),fillOutlinePattern:go(`uniform vec2 u_texsize;uniform sampler2D u_image;uniform float u_fade;uniform bool u_sdf_pattern;in vec2 v_pos_a;in vec2 v_pos_b;in vec2 v_pos; #ifdef GLOBE in float v_depth; #endif @@ -3027,7 +3027,7 @@ if (opacity < 0.01) {gl_Position=vec4(-2.0,-2.0,-2.0,1.0);return;}vec2 pattern_t #ifdef GLOBE v_depth=gl_Position.z/gl_Position.w; #endif -}`),fillPattern:vo(`#ifdef GL_ES +}`),fillPattern:go(`#ifdef GL_ES precision highp float; #endif uniform vec2 u_texsize;uniform float u_fade;uniform bool u_sdf_pattern;uniform sampler2D u_image;in vec2 v_pos_a;in vec2 v_pos_b; @@ -3058,7 +3058,7 @@ void main() { #pragma maplibre: initialize mediump vec4 pattern_to #pragma maplibre: initialize lowp float pixel_ratio_from #pragma maplibre: initialize lowp float pixel_ratio_to -if (opacity < 0.01) {gl_Position=vec4(-2.0,-2.0,-2.0,1.0);return;}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;gl_Position=projectTile(a_pos+u_fill_translate,a_pos);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileZoomRatio,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileZoomRatio,a_pos);}`),fillExtrusion:vo(`in vec4 v_color;void main() {fragColor=v_color; +if (opacity < 0.01) {gl_Position=vec4(-2.0,-2.0,-2.0,1.0);return;}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;gl_Position=projectTile(a_pos+u_fill_translate,a_pos);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileZoomRatio,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileZoomRatio,a_pos);}`),fillExtrusion:go(`in vec4 v_color;void main() {fragColor=v_color; #ifdef OVERDRAW_INSPECTOR fragColor=vec4(1.0); #endif @@ -3090,7 +3090,7 @@ float colorvalue=color.r*0.2126+color.g*0.7152+color.b*0.0722;v_color=vec4(0.0,0 #ifdef GLOBE mat3 rotMatrix=globeGetRotationMatrix(spherePos);normalForLighting=rotMatrix*normalForLighting;directional=mix(directional,clamp(dot(normalForLighting,u_lightpos_globe),0.0,1.0),u_projection_transition); #endif -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+gradient_base)*pow(gradient_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;}`),fillExtrusionPattern:vo(`uniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;in vec2 v_pos_a;in vec2 v_pos_b;in vec4 v_lighting; +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+gradient_base)*pow(gradient_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;}`),fillExtrusionPattern:go(`uniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;in vec2 v_pos_a;in vec2 v_pos_b;in vec4 v_lighting; #pragma maplibre: define lowp float base #pragma maplibre: define lowp float height #pragma maplibre: define lowp vec4 pattern_from @@ -3143,14 +3143,14 @@ gl_Position=u_projection_matrix*vec4(posInTile,elevation,1.0); #endif vec2 pos=a_normal_ed.x==1 && a_normal_ed.y==0 && a_normal_ed.z==16384 ? a_pos -: vec2(edgedistance,elevation*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+gradient_base)*pow(gradient_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;}`),hillshadePrepare:vo(`#ifdef GL_ES +: vec2(edgedistance,elevation*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+gradient_base)*pow(gradient_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;}`),hillshadePrepare:go(`#ifdef GL_ES precision highp float; #endif uniform sampler2D u_image;in vec2 v_pos;uniform vec2 u_dimension;uniform float u_zoom;uniform vec4 u_unpack;float getElevation(ivec2 texel) {vec4 data=texelFetch(u_image,texel,0)*255.0;data.a=-1.0;return dot(data,u_unpack);}void main() {ivec2 pos=ivec2(gl_FragCoord.xy)+ivec2(1);float tileSize=u_dimension.x-4.0;float a=getElevation(pos+ivec2(-1,-1));float b=getElevation(pos+ivec2(0,-1));float c=getElevation(pos+ivec2(1,-1));float d=getElevation(pos+ivec2(-1,0));float e=getElevation(pos);float f=getElevation(pos+ivec2(1,0));float g=getElevation(pos+ivec2(-1,1));float h=getElevation(pos+ivec2(0,1));float i=getElevation(pos+ivec2(1,1));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))*tileSize/pow(2.0,exaggeration+(28.2562-u_zoom));fragColor=clamp(vec4(deriv.x/8.0+128.0/255.0,deriv.y/8.0+128.0/255.0,1.0,1.0),0.0,1.0); #ifdef OVERDRAW_INSPECTOR fragColor=vec4(1.0); #endif -}`,"uniform mat4 u_matrix;uniform vec2 u_dimension;layout(location=0) in vec2 a_pos;layout(location=1) in vec2 a_texture_pos;out 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;}"),hillshade:vo(`uniform sampler2D u_image;in highp vec2 v_pos;uniform vec2 u_latrange;uniform float u_exaggeration;uniform vec4 u_accent;uniform int u_method;uniform float u_altitudes[NUM_ILLUMINATION_SOURCES];uniform float u_azimuths[NUM_ILLUMINATION_SOURCES];uniform vec4 u_shadows[NUM_ILLUMINATION_SOURCES];uniform vec4 u_highlights[NUM_ILLUMINATION_SOURCES]; +}`,"uniform mat4 u_matrix;uniform vec2 u_dimension;layout(location=0) in vec2 a_pos;layout(location=1) in vec2 a_texture_pos;out 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;}"),hillshade:go(`uniform sampler2D u_image;in highp vec2 v_pos;uniform vec2 u_latrange;uniform float u_exaggeration;uniform vec4 u_accent;uniform int u_method;uniform float u_altitudes[NUM_ILLUMINATION_SOURCES];uniform float u_azimuths[NUM_ILLUMINATION_SOURCES];uniform vec4 u_shadows[NUM_ILLUMINATION_SOURCES];uniform vec4 u_highlights[NUM_ILLUMINATION_SOURCES]; #define PI 3.141592653589793 #define STANDARD 0 #define COMBINED 1 @@ -3163,7 +3163,7 @@ float get_aspect(vec2 deriv){return deriv.x !=0.0 ? atan(deriv.y,-deriv.x) : PI/ #ifdef OVERDRAW_INSPECTOR fragColor=vec4(1.0); #endif -}`,"uniform mat4 u_matrix;layout(location=0) in vec2 a_pos;out vec2 v_pos;void main() {gl_Position=projectTile(a_pos,a_pos);v_pos=a_pos/8192.0;if (a_pos.y <-32767.5) {v_pos.y=0.0;}if (a_pos.y > 32766.5) {v_pos.y=1.0;}}"),line:vo(`flat in vec2 v_width2;in vec2 v_normal;in float v_gamma_scale; +}`,"uniform mat4 u_matrix;layout(location=0) in vec2 a_pos;out vec2 v_pos;void main() {gl_Position=projectTile(a_pos,a_pos);v_pos=a_pos/8192.0;if (a_pos.y <-32767.5) {v_pos.y=0.0;}if (a_pos.y > 32766.5) {v_pos.y=1.0;}}"),line:go(`flat in vec2 v_width2;in vec2 v_normal;in float v_gamma_scale; #ifdef GLOBE in float v_depth; #endif @@ -3209,7 +3209,7 @@ v_gamma_scale=1.0; #else float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length((projected_with_extrude.xy-projected_no_extrude.xy)/projected_with_extrude.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective; #endif -v_width2=vec2(outset,inset);}`),lineGradient:vo(`uniform sampler2D u_image;flat in vec2 v_width2;in vec2 v_normal;in float v_gamma_scale;in highp vec2 v_uv; +v_width2=vec2(outset,inset);}`),lineGradient:go(`uniform sampler2D u_image;flat in vec2 v_width2;in vec2 v_normal;in float v_gamma_scale;in highp vec2 v_uv; #ifdef GLOBE in float v_depth; #endif @@ -3251,7 +3251,7 @@ v_gamma_scale=1.0; #else float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length((projected_with_extrude.xy-projected_no_extrude.xy)/projected_with_extrude.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective; #endif -v_width2=vec2(outset,inset);}`),linePattern:vo(`#ifdef GL_ES +v_width2=vec2(outset,inset);}`),linePattern:go(`#ifdef GL_ES precision highp float; #endif uniform vec2 u_texsize;uniform float u_fade;uniform mediump vec3 u_scale;uniform sampler2D u_image;in vec2 v_normal;flat in vec2 v_width2;in float v_linesofar;in float v_gamma_scale;flat in float v_width; @@ -3315,7 +3315,7 @@ v_gamma_scale=1.0; #else float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length((projected_with_extrude.xy-projected_no_extrude.xy)/projected_with_extrude.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective; #endif -v_linesofar=a_linesofar;v_width2=vec2(outset,inset);v_width=floorwidth;}`),lineSDF:vo(`uniform lowp float u_lineatlas_width;uniform sampler2D u_image;uniform float u_mix;in vec2 v_normal;flat in vec2 v_width2;in vec2 v_tex_a;in vec2 v_tex_b;in float v_gamma_scale; +v_linesofar=a_linesofar;v_width2=vec2(outset,inset);v_width=floorwidth;}`),lineSDF:go(`uniform lowp float u_lineatlas_width;uniform sampler2D u_image;uniform float u_mix;in vec2 v_normal;flat in vec2 v_width2;in vec2 v_tex_a;in vec2 v_tex_b;in float v_gamma_scale; #ifdef GLOBE in float v_depth; #endif @@ -3376,7 +3376,7 @@ v_gamma_scale=1.0; #else float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length((projected_with_extrude.xy-projected_no_extrude.xy)/projected_with_extrude.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective; #endif -float u_patternscale_a_x=u_tileratio/dasharray_from.w/u_crossfade_from;float u_patternscale_a_y=-dasharray_from.z/2.0/u_lineatlas_height;float u_patternscale_b_x=u_tileratio/dasharray_to.w/u_crossfade_to;float u_patternscale_b_y=-dasharray_to.z/2.0/u_lineatlas_height;v_tex_a=vec2(a_linesofar*u_patternscale_a_x/floorwidth,normal.y*u_patternscale_a_y+(float(dasharray_from.y)+0.5)/u_lineatlas_height);v_tex_b=vec2(a_linesofar*u_patternscale_b_x/floorwidth,normal.y*u_patternscale_b_y+(float(dasharray_to.y)+0.5)/u_lineatlas_height);v_width2=vec2(outset,inset);}`),lineGradientSDF:vo(`uniform sampler2D u_image;uniform sampler2D u_image_dash;uniform float u_mix;uniform lowp float u_lineatlas_width;in vec2 v_normal;flat in vec2 v_width2;in vec2 v_tex_a;in vec2 v_tex_b;in float v_gamma_scale;in highp vec2 v_uv; +float u_patternscale_a_x=u_tileratio/dasharray_from.w/u_crossfade_from;float u_patternscale_a_y=-dasharray_from.z/2.0/u_lineatlas_height;float u_patternscale_b_x=u_tileratio/dasharray_to.w/u_crossfade_to;float u_patternscale_b_y=-dasharray_to.z/2.0/u_lineatlas_height;v_tex_a=vec2(a_linesofar*u_patternscale_a_x/floorwidth,normal.y*u_patternscale_a_y+(float(dasharray_from.y)+0.5)/u_lineatlas_height);v_tex_b=vec2(a_linesofar*u_patternscale_b_x/floorwidth,normal.y*u_patternscale_b_y+(float(dasharray_to.y)+0.5)/u_lineatlas_height);v_width2=vec2(outset,inset);}`),lineGradientSDF:go(`uniform sampler2D u_image;uniform sampler2D u_image_dash;uniform float u_mix;uniform lowp float u_lineatlas_width;in vec2 v_normal;flat in vec2 v_width2;in vec2 v_tex_a;in vec2 v_tex_b;in float v_gamma_scale;in highp vec2 v_uv; #ifdef GLOBE in float v_depth; #endif @@ -3433,11 +3433,11 @@ v_gamma_scale=1.0; #else float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length((projected_with_extrude.xy-projected_no_extrude.xy)/projected_with_extrude.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective; #endif -float u_patternscale_a_x=u_tileratio/dasharray_from.w/u_crossfade_from;float u_patternscale_a_y=-dasharray_from.z/2.0/u_lineatlas_height;float u_patternscale_b_x=u_tileratio/dasharray_to.w/u_crossfade_to;float u_patternscale_b_y=-dasharray_to.z/2.0/u_lineatlas_height;v_tex_a=vec2(a_linesofar*u_patternscale_a_x/floorwidth,normal.y*u_patternscale_a_y+(float(dasharray_from.y)+0.5)/u_lineatlas_height);v_tex_b=vec2(a_linesofar*u_patternscale_b_x/floorwidth,normal.y*u_patternscale_b_y+(float(dasharray_to.y)+0.5)/u_lineatlas_height);v_width2=vec2(outset,inset);}`),layerOpacity:vo(`uniform sampler2D u_image;uniform float u_opacity;in vec2 v_pos;void main() {fragColor=texture(u_image,v_pos)*u_opacity; +float u_patternscale_a_x=u_tileratio/dasharray_from.w/u_crossfade_from;float u_patternscale_a_y=-dasharray_from.z/2.0/u_lineatlas_height;float u_patternscale_b_x=u_tileratio/dasharray_to.w/u_crossfade_to;float u_patternscale_b_y=-dasharray_to.z/2.0/u_lineatlas_height;v_tex_a=vec2(a_linesofar*u_patternscale_a_x/floorwidth,normal.y*u_patternscale_a_y+(float(dasharray_from.y)+0.5)/u_lineatlas_height);v_tex_b=vec2(a_linesofar*u_patternscale_b_x/floorwidth,normal.y*u_patternscale_b_y+(float(dasharray_to.y)+0.5)/u_lineatlas_height);v_width2=vec2(outset,inset);}`),layerOpacity:go(`uniform sampler2D u_image;uniform float u_opacity;in vec2 v_pos;void main() {fragColor=texture(u_image,v_pos)*u_opacity; #ifdef OVERDRAW_INSPECTOR fragColor=vec4(0.0); #endif -}`,"layout(location=0) in vec2 a_pos;out vec2 v_pos;void main() {gl_Position=vec4(a_pos.x*2.0-1.0,1.0-a_pos.y*2.0,0.0,1.0);v_pos.x=a_pos.x;v_pos.y=1.0-a_pos.y;}"),raster:vo(`uniform float u_fade_t;uniform float u_opacity;uniform sampler2D u_image0;uniform sampler2D u_image1;in vec3 v_pos0;in vec3 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=texture(u_image0,v_pos0.xy/v_pos0.z);vec4 color1=texture(u_image1,v_pos1.xy/v_pos1.z);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);fragColor=vec4(mix(u_high_vec,u_low_vec,rgb)*color.a,color.a); +}`,"layout(location=0) in vec2 a_pos;out vec2 v_pos;void main() {gl_Position=vec4(a_pos.x*2.0-1.0,1.0-a_pos.y*2.0,0.0,1.0);v_pos.x=a_pos.x;v_pos.y=1.0-a_pos.y;}"),raster:go(`uniform float u_fade_t;uniform float u_opacity;uniform sampler2D u_image0;uniform sampler2D u_image1;in vec3 v_pos0;in vec3 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=texture(u_image0,v_pos0.xy/v_pos0.z);vec4 color1=texture(u_image1,v_pos1.xy/v_pos1.z);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);fragColor=vec4(mix(u_high_vec,u_low_vec,rgb)*color.a,color.a); #ifdef OVERDRAW_INSPECTOR fragColor=vec4(1.0); #endif @@ -3445,7 +3445,7 @@ fragColor=vec4(1.0); #ifdef GLOBE if (a_pos.y <-32767.5) {texturePos.y=0.0;}if (a_pos.y > 32766.5) {texturePos.y=1.0;} #endif -float perspectiveRatio=mix(1.0/denominator,1.0,u_image_warp.z);v_pos0=vec3(texturePos*perspectiveRatio,perspectiveRatio);vec2 parentPos=(texturePos*u_scale_parent)+u_tl_parent;v_pos1=vec3(parentPos*perspectiveRatio,perspectiveRatio);}`),symbolIcon:vo(`uniform sampler2D u_texture;in vec2 v_tex;flat in float v_total_opacity;void main() {fragColor=texture(u_texture,v_tex)*v_total_opacity; +float perspectiveRatio=mix(1.0/denominator,1.0,u_image_warp.z);v_pos0=vec3(texturePos*perspectiveRatio,perspectiveRatio);vec2 parentPos=(texturePos*u_scale_parent)+u_tl_parent;v_pos1=vec3(parentPos*perspectiveRatio,perspectiveRatio);}`),symbolIcon:go(`uniform sampler2D u_texture;in vec2 v_tex;flat in float v_total_opacity;void main() {fragColor=texture(u_texture,v_tex)*v_total_opacity; #ifdef OVERDRAW_INSPECTOR fragColor=vec4(1.0); #endif @@ -3459,7 +3459,7 @@ u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ra #ifdef GLOBE if(u_pitch_with_map) {float anchor_pos_tile_y=(u_coord_matrix*vec4(projected_pos.xy/projected_pos.w,z,1.0)).y;projectionScaling=mix(projectionScaling,1.0/circumferenceRatioAtTileY(anchor_pos_tile_y)*u_pitched_scale,u_projection_transition);} #endif -vec4 finalPos=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*max(a_minFontScale,fontScale)+a_pxoffset/16.0)*projectionScaling,z,1.0);if(u_pitch_with_map) {finalPos=projectTileWithElevation(finalPos.xy,finalPos.z);}gl_Position=finalPos;v_tex=a_tex/u_texsize;}`),symbolSDF:vo(`#define SDF_PX 8.0 +vec4 finalPos=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*max(a_minFontScale,fontScale)+a_pxoffset/16.0)*projectionScaling,z,1.0);if(u_pitch_with_map) {finalPos=projectTileWithElevation(finalPos.xy,finalPos.z);}gl_Position=finalPos;v_tex=a_tex/u_texsize;}`),symbolSDF:go(`#define SDF_PX 8.0 uniform bool u_is_halo;uniform bool u_is_plain;uniform sampler2D u_texture;uniform highp float u_gamma_scale;uniform bool u_is_text;in vec2 v_data0;in vec3 v_data1; #pragma maplibre: define highp vec4 fill_color #pragma maplibre: define highp vec4 halo_color @@ -3492,7 +3492,7 @@ u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ra #ifdef GLOBE if(u_pitch_with_map) {float anchor_pos_tile_y=(u_coord_matrix*vec4(projected_pos.xy/projected_pos.w,z,1.0)).y;projectionScaling=mix(projectionScaling,1.0/circumferenceRatioAtTileY(anchor_pos_tile_y)*u_pitched_scale,u_projection_transition);} #endif -vec4 finalPos=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*max(a_minFontScale,fontScale)+a_pxoffset)*projectionScaling,z,1.0);if(u_pitch_with_map) {finalPos=projectTileWithElevation(finalPos.xy,finalPos.z);}float gamma_scale=finalPos.w;gl_Position=finalPos;v_data0=a_tex/u_texsize;v_data1=vec3(gamma_scale,size,total_opacity);}`),symbolTextAndIcon:vo(`#define SDF_PX 8.0 +vec4 finalPos=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*max(a_minFontScale,fontScale)+a_pxoffset)*projectionScaling,z,1.0);if(u_pitch_with_map) {finalPos=projectTileWithElevation(finalPos.xy,finalPos.z);}float gamma_scale=finalPos.w;gl_Position=finalPos;v_data0=a_tex/u_texsize;v_data1=vec3(gamma_scale,size,total_opacity);}`),symbolTextAndIcon:go(`#define SDF_PX 8.0 #define SDF 1.0 #define ICON 0.0 uniform bool u_is_halo;uniform bool u_is_text;uniform sampler2D u_texture;uniform sampler2D u_texture_icon;uniform highp float u_gamma_scale;in vec4 v_data0;in vec3 v_data1;flat in float v_is_sdf; @@ -3531,13 +3531,13 @@ u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ra #ifdef GLOBE if(u_pitch_with_map && !u_is_along_line) {float anchor_pos_tile_y=(u_coord_matrix*vec4(projected_pos.xy/projected_pos.w,z,1.0)).y;projectionScaling=mix(projectionScaling,1.0/circumferenceRatioAtTileY(anchor_pos_tile_y)*u_pitched_scale,u_projection_transition);} #endif -vec4 finalPos=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale)*projectionScaling,z,1.0);if(u_pitch_with_map) {finalPos=projectTileWithElevation(finalPos.xy,finalPos.z);}float gamma_scale=finalPos.w;gl_Position=finalPos;v_data0.xy=a_tex/u_texsize;v_data0.zw=a_tex/u_texsize_icon;v_data1=vec3(gamma_scale,size,total_opacity);v_is_sdf=is_sdf;}`),terrain:vo("uniform sampler2D u_texture;uniform vec4 u_fog_color;uniform vec4 u_horizon_color;uniform float u_fog_ground_blend;uniform float u_fog_ground_blend_opacity;uniform float u_horizon_fog_blend;uniform bool u_is_globe_mode;in vec2 v_texture_pos;in float v_fog_depth;const float gamma=2.2;vec4 gammaToLinear(vec4 color) {return pow(color,vec4(gamma));}vec4 linearToGamma(vec4 color) {return pow(color,vec4(1.0/gamma));}void main() {vec4 surface_color=texture(u_texture,vec2(v_texture_pos.x,1.0-v_texture_pos.y));if (!u_is_globe_mode && u_fog_ground_blend_opacity > 0.0 && v_fog_depth > u_fog_ground_blend) {vec4 surface_color_linear=gammaToLinear(surface_color);float blend_color=smoothstep(0.0,1.0,max((v_fog_depth-u_horizon_fog_blend)/(1.0-u_horizon_fog_blend),0.0));vec4 fog_horizon_color_linear=mix(gammaToLinear(u_fog_color),gammaToLinear(u_horizon_color),blend_color);float factor_fog=max(v_fog_depth-u_fog_ground_blend,0.0)/(1.0-u_fog_ground_blend);fragColor=linearToGamma(mix(surface_color_linear,fog_horizon_color_linear,pow(factor_fog,2.0)*u_fog_ground_blend_opacity));} else {fragColor=surface_color;}}","layout(location=0) in vec3 a_pos3d;uniform mat4 u_fog_matrix;uniform float u_ele_delta;out vec2 v_texture_pos;out float v_fog_depth;void main() {float ele=get_elevation(a_pos3d.xy);float ele_delta=a_pos3d.z==1.0 ? u_ele_delta : 0.0;v_texture_pos=a_pos3d.xy/8192.0;gl_Position=projectTileFor3D(a_pos3d.xy,ele-ele_delta);vec4 pos=u_fog_matrix*vec4(a_pos3d.xy,ele,1.0);v_fog_depth=pos.z/pos.w*0.5+0.5;}"),terrainDepth:vo("in float v_depth;const highp vec4 bitSh=vec4(256.*256.*256.,256.*256.,256.,1.);const highp vec4 bitMsk=vec4(0.,vec3(1./256.0));highp vec4 pack(highp float value) {highp vec4 comp=fract(value*bitSh);comp-=comp.xxyz*bitMsk;return comp;}void main() {fragColor=pack(v_depth);}","layout(location=0) in vec3 a_pos3d;uniform float u_ele_delta;out float v_depth;void main() {float ele=get_elevation(a_pos3d.xy);float ele_delta=a_pos3d.z==1.0 ? u_ele_delta : 0.0;gl_Position=projectTileFor3D(a_pos3d.xy,ele-ele_delta);v_depth=gl_Position.z/gl_Position.w;}"),atmosphere:vo(`#ifdef GL_ES +vec4 finalPos=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale)*projectionScaling,z,1.0);if(u_pitch_with_map) {finalPos=projectTileWithElevation(finalPos.xy,finalPos.z);}float gamma_scale=finalPos.w;gl_Position=finalPos;v_data0.xy=a_tex/u_texsize;v_data0.zw=a_tex/u_texsize_icon;v_data1=vec3(gamma_scale,size,total_opacity);v_is_sdf=is_sdf;}`),terrain:go("uniform sampler2D u_texture;uniform vec4 u_fog_color;uniform vec4 u_horizon_color;uniform float u_fog_ground_blend;uniform float u_fog_ground_blend_opacity;uniform float u_horizon_fog_blend;uniform bool u_is_globe_mode;in vec2 v_texture_pos;in float v_fog_depth;const float gamma=2.2;vec4 gammaToLinear(vec4 color) {return pow(color,vec4(gamma));}vec4 linearToGamma(vec4 color) {return pow(color,vec4(1.0/gamma));}void main() {vec4 surface_color=texture(u_texture,vec2(v_texture_pos.x,1.0-v_texture_pos.y));if (!u_is_globe_mode && u_fog_ground_blend_opacity > 0.0 && v_fog_depth > u_fog_ground_blend) {vec4 surface_color_linear=gammaToLinear(surface_color);float blend_color=smoothstep(0.0,1.0,max((v_fog_depth-u_horizon_fog_blend)/(1.0-u_horizon_fog_blend),0.0));vec4 fog_horizon_color_linear=mix(gammaToLinear(u_fog_color),gammaToLinear(u_horizon_color),blend_color);float factor_fog=max(v_fog_depth-u_fog_ground_blend,0.0)/(1.0-u_fog_ground_blend);fragColor=linearToGamma(mix(surface_color_linear,fog_horizon_color_linear,pow(factor_fog,2.0)*u_fog_ground_blend_opacity));} else {fragColor=surface_color;}}","layout(location=0) in vec3 a_pos3d;uniform mat4 u_fog_matrix;uniform float u_ele_delta;out vec2 v_texture_pos;out float v_fog_depth;void main() {float ele=get_elevation(a_pos3d.xy);float ele_delta=a_pos3d.z==1.0 ? u_ele_delta : 0.0;v_texture_pos=a_pos3d.xy/8192.0;gl_Position=projectTileFor3D(a_pos3d.xy,ele-ele_delta);vec4 pos=u_fog_matrix*vec4(a_pos3d.xy,ele,1.0);v_fog_depth=pos.z/pos.w*0.5+0.5;}"),terrainDepth:go("in float v_depth;const highp vec4 bitSh=vec4(256.*256.*256.,256.*256.,256.,1.);const highp vec4 bitMsk=vec4(0.,vec3(1./256.0));highp vec4 pack(highp float value) {highp vec4 comp=fract(value*bitSh);comp-=comp.xxyz*bitMsk;return comp;}void main() {fragColor=pack(v_depth);}","layout(location=0) in vec3 a_pos3d;uniform float u_ele_delta;out float v_depth;void main() {float ele=get_elevation(a_pos3d.xy);float ele_delta=a_pos3d.z==1.0 ? u_ele_delta : 0.0;gl_Position=projectTileFor3D(a_pos3d.xy,ele-ele_delta);v_depth=gl_Position.z/gl_Position.w;}"),atmosphere:go(`#ifdef GL_ES precision highp float; #endif in vec3 view_direction;uniform vec3 u_sun_pos;uniform vec3 u_globe_position;uniform float u_globe_radius;uniform float u_atmosphere_blend;/**Shader use from https:*Made some change to adapt to MapLibre Globe geometry*/const float PI=3.141592653589793;const int iSteps=5;const int jSteps=3;/*radius of the planet*/const float EARTH_RADIUS=6371e3;/*radius of the atmosphere*/const float ATMOS_RADIUS=6471e3;vec2 rsi(vec3 r0,vec3 rd,float sr) {float a=dot(rd,rd);float b=2.0*dot(rd,r0);float c=dot(r0,r0)-(sr*sr);float d=(b*b)-4.0*a*c;if (d < 0.0) return vec2(1e5,-1e5);return vec2((-b-sqrt(d))/(2.0*a),(-b+sqrt(d))/(2.0*a));}vec4 atmosphere(vec3 r,vec3 r0,vec3 pSun,float iSun,float rPlanet,float rAtmos,vec3 kRlh,float kMie,float shRlh,float shMie,float g) {pSun=normalize(pSun);r=normalize(r);vec2 p=rsi(r0,r,rAtmos);if (p.x > p.y) {return vec4(0.0,0.0,0.0,1.0);}if (p.x < 0.0) {p.x=0.0;}vec3 pos=r0+r*p.x;vec2 p2=rsi(r0,r,rPlanet);if (p2.x <=p2.y && p2.x > 0.0) {p.y=min(p.y,p2.x);}float iStepSize=(p.y-p.x)/float(iSteps);float iTime=p.x+iStepSize*0.5;vec3 totalRlh=vec3(0,0,0);vec3 totalMie=vec3(0,0,0);float iOdRlh=0.0;float iOdMie=0.0;float mu=dot(r,pSun);float mumu=mu*mu;float gg=g*g;float pRlh=3.0/(16.0*PI)*(1.0+mumu);float pMie=3.0/(8.0*PI)*((1.0-gg)*(mumu+1.0))/(pow(1.0+gg-2.0*mu*g,1.5)*(2.0+gg));for (int i=0; i < iSteps; i++) {vec3 iPos=r0+r*iTime;float iHeight=length(iPos)-rPlanet;float odStepRlh=exp(-iHeight/shRlh)*iStepSize;float odStepMie=exp(-iHeight/shMie)*iStepSize;iOdRlh+=odStepRlh;iOdMie+=odStepMie;float jStepSize=rsi(iPos,pSun,rAtmos).y/float(jSteps);float jTime=jStepSize*0.5;float jOdRlh=0.0;float jOdMie=0.0;for (int j=0; j < jSteps; j++) {vec3 jPos=iPos+pSun*jTime;float jHeight=length(jPos)-rPlanet;jOdRlh+=exp(-jHeight/shRlh)*jStepSize;jOdMie+=exp(-jHeight/shMie)*jStepSize;jTime+=jStepSize;}vec3 attn=exp(-(kMie*(iOdMie+jOdMie)+kRlh*(iOdRlh+jOdRlh)));totalRlh+=odStepRlh*attn;totalMie+=odStepMie*attn;iTime+=iStepSize;}float opacity=exp(-(length(kRlh)*length(totalRlh)+kMie*length(totalMie)));vec3 color=iSun*(pRlh*kRlh*totalRlh+pMie*kMie*totalMie);return vec4(color,opacity);}void main() {vec3 scale_camera_pos=-u_globe_position*EARTH_RADIUS/u_globe_radius;vec4 color=atmosphere(normalize(view_direction),scale_camera_pos,u_sun_pos,22.0,EARTH_RADIUS,ATMOS_RADIUS,vec3(5.5e-6,13.0e-6,22.4e-6),21e-6,8e3,1.2e3,0.758 -);color.rgb=1.0-exp(-1.0*color.rgb);color=pow(color,vec4(1.0/2.2));fragColor=vec4(color.rgb,1.0-color.a)*u_atmosphere_blend;}`,"layout(location=0) in vec2 a_pos;uniform mat4 u_inv_proj_matrix;out vec3 view_direction;void main() {view_direction=(u_inv_proj_matrix*vec4(a_pos,0.0,1.0)).xyz;gl_Position=vec4(a_pos,0.0,1.0);}"),sky:vo("uniform vec4 u_sky_color;uniform vec4 u_horizon_color;uniform vec2 u_horizon;uniform vec2 u_horizon_normal;uniform float u_sky_horizon_blend;uniform float u_sky_blend;uniform vec3 u_globe_position;uniform float u_globe_radius;uniform float u_atmosphere_blend;in vec3 v_view_direction;const float ATMOSPHERE_HEIGHT_TO_GLOBE_RADIUS=100000.0/6371000.0;void main() {float x=gl_FragCoord.x;float y=gl_FragCoord.y;float blend=(y-u_horizon.y)*u_horizon_normal.y+(x-u_horizon.x)*u_horizon_normal.x;float opacity=1.0;if (u_sky_blend > 0.0) {vec3 ray=normalize(v_view_direction);float globe_distance=length(u_globe_position);float angle_to_globe_center=acos(clamp(dot(ray,u_globe_position)/globe_distance,-1.0,1.0));float horizon_angle=asin(min(u_globe_radius/globe_distance,1.0));blend=mix(blend,((angle_to_globe_center-horizon_angle)*u_camera_to_center_distance+1.0)*u_device_pixel_ratio,u_sky_blend);float closest_approach=max(dot(ray,u_globe_position),0.0);float lowest_altitude=sqrt(max(globe_distance*globe_distance-closest_approach*closest_approach,0.0))-u_globe_radius;float atmosphere_height=u_globe_radius*ATMOSPHERE_HEIGHT_TO_GLOBE_RADIUS;float inside_atmosphere=1.0-smoothstep(atmosphere_height,10.0*atmosphere_height,globe_distance-u_globe_radius);float through_atmosphere=1.0-smoothstep(0.0,atmosphere_height,lowest_altitude);opacity=inside_atmosphere*through_atmosphere*(1.0-u_atmosphere_blend);}if (blend > 0.0) {if (blend < u_sky_horizon_blend) {fragColor=mix(u_sky_color,u_horizon_color,pow(1.0-blend/u_sky_horizon_blend,2.0));} else {fragColor=u_sky_color;}}fragColor*=mix(1.0,opacity,u_sky_blend);}","layout(location=0) in vec2 a_pos;uniform mat4 u_inv_proj_matrix;out vec3 v_view_direction;void main() {v_view_direction=(u_inv_proj_matrix*vec4(a_pos,0.0,1.0)).xyz;gl_Position=vec4(a_pos,1.0,1.0);}")};Ast="#define PROJECTION_MERCATOR",Mst="mercator",roe=class{constructor(){this._cachedMesh=null}get name(){return"mercator"}get useSubdivision(){return!1}get shaderVariantName(){return Mst}get shaderDefine(){return Ast}get shaderPreludeCode(){return fg.projectionMercator}get vertexShaderPreludeCode(){return fg.projectionMercator.vertexSource}get subdivisionGranularity(){return yq.noSubdivision}get useGlobeControls(){return!1}get transitionState(){return 0}destroy(){}getMeshFromTileID(e,t,r,i,n){if(this._cachedMesh)return this._cachedMesh;let a=new Nm;a.emplaceBack(0,0),a.emplaceBack(Br,0),a.emplaceBack(0,Br),a.emplaceBack(Br,Br);let o=e.createVertexBuffer(a,b3.members),s=Xs.simpleSegment(0,0,4,2),l=new Fv;l.emplaceBack(1,0,2),l.emplaceBack(1,2,3);let u=e.createIndexBuffer(l);return this._cachedMesh=new JC(o,u,s),this._cachedMesh}recalculate(){}hasTransition(){return!1}},ioe=class Sst{constructor(t=0,r=0,i=0,n=0){if(isNaN(t)||t<0||isNaN(r)||r<0||isNaN(i)||i<0||isNaN(n)||n<0)throw Error("Invalid value for edge-insets, top, bottom, left and right must all be numbers");this.top=t,this.bottom=r,this.left=i,this.right=n}interpolate(t,r,i){return r.top!=null&&t.top!=null&&(this.top=Ys.number(t.top,r.top,i)),r.bottom!=null&&t.bottom!=null&&(this.bottom=Ys.number(t.bottom,r.bottom,i)),r.left!=null&&t.left!=null&&(this.left=Ys.number(t.left,r.left,i)),r.right!=null&&t.right!=null&&(this.right=Ys.number(t.right,r.right,i)),this}getCenter(t,r){let i=Qn((this.left+t-this.right)/2,0,t),n=Qn((this.top+r-this.bottom)/2,0,r);return new tr(i,n)}equals(t){return this.top===t.top&&this.bottom===t.bottom&&this.left===t.left&&this.right===t.right}clone(){return new Sst(this.top,this.bottom,this.left,this.right)}toJSON(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}}};Aoe=class{constructor(e,t){var r;this.applyConstrain=(i,n)=>this._constrainOverride===null?this._callbacks.defaultConstrain(i,n):this._constrainOverride(i,n),this._callbacks=e,this._tileSize=512,this._renderWorldCopies=(t==null?void 0:t.renderWorldCopies)===void 0||!!(t!=null&&t.renderWorldCopies),this._minZoom=(t==null?void 0:t.minZoom)||0,this._maxZoom=(t==null?void 0:t.maxZoom)||22,this._minPitch=(t==null?void 0:t.minPitch)===void 0||(t==null?void 0:t.minPitch)===null?0:t==null?void 0:t.minPitch,this._maxPitch=(t==null?void 0:t.maxPitch)===void 0||(t==null?void 0:t.maxPitch)===null?60:t==null?void 0:t.maxPitch,this._constrainOverride=(r=t==null?void 0:t.constrainOverride)!=null?r:null,this.setMaxBounds(),this._width=0,this._height=0,this._center=new pn(0,0),this._elevation=0,this._zoom=0,this._tileZoom=lot(this._zoom),this._scale=Of(this._zoom),this._bearingInRadians=0,this._fovInRadians=.6435011087932844,this._pitchInRadians=0,this._rollInRadians=0,this._unmodified=!0,this._edgeInsets=new ioe,this._minElevationForCurrentTile=0,this._autoCalculateNearFarZ=!0}apply(e,t){this._constrainOverride=e.constrainOverride,this._latRange=e.latRange,this._lngRange=e.lngRange,this._width=e.width,this._height=e.height,this._center=e.center,this._elevation=e.elevation,this._minElevationForCurrentTile=e.minElevationForCurrentTile,this._zoom=e.zoom,this._tileZoom=lot(this._zoom),this._scale=Of(this._zoom),this._bearingInRadians=e.bearingInRadians,this._fovInRadians=e.fovInRadians,this._pitchInRadians=e.pitchInRadians,this._rollInRadians=e.rollInRadians,this._unmodified=e.unmodified,this._edgeInsets=new ioe(e.padding.top,e.padding.bottom,e.padding.left,e.padding.right),this._minZoom=e.minZoom,this._maxZoom=e.maxZoom,this._minPitch=e.minPitch,this._maxPitch=e.maxPitch,this._renderWorldCopies=e.renderWorldCopies,this._cameraToCenterDistance=e.cameraToCenterDistance,this._nearZ=e.nearZ,this._farZ=e.farZ,this._autoCalculateNearFarZ=e.autoCalculateNearFarZ,t&&this.constrainInternal(),this._calcMatrices()}get pixelsToClipSpaceMatrix(){return this._pixelsToClipSpaceMatrix}get clipSpaceToPixelsMatrix(){return this._clipSpaceToPixelsMatrix}get minElevationForCurrentTile(){return this._minElevationForCurrentTile}setMinElevationForCurrentTile(e){this._minElevationForCurrentTile=e}get tileSize(){return this._tileSize}get tileZoom(){return this._tileZoom}get scale(){return this._scale}get width(){return this._width}get height(){return this._height}get bearingInRadians(){return this._bearingInRadians}get lngRange(){return this._lngRange}get latRange(){return this._latRange}get pixelsToGLUnits(){return this._pixelsToGLUnits}get minZoom(){return this._minZoom}setMinZoom(e){if(this._minZoom===e)return;this._minZoom=e;let t=this._unmodified;this.setZoom(this.applyConstrain(this._center,this.zoom).zoom),this._unmodified=t}get maxZoom(){return this._maxZoom}setMaxZoom(e){if(this._maxZoom===e)return;this._maxZoom=e;let t=this._unmodified;this.setZoom(this.applyConstrain(this._center,this.zoom).zoom),this._unmodified=t}get minPitch(){return this._minPitch}setMinPitch(e){if(this._minPitch===e)return;this._minPitch=e;let t=this._unmodified;this.setPitch(Math.max(this.pitch,e)),this._unmodified=t}get maxPitch(){return this._maxPitch}setMaxPitch(e){if(this._maxPitch===e)return;this._maxPitch=e;let t=this._unmodified;this.setPitch(Math.min(this.pitch,e)),this._unmodified=t}get renderWorldCopies(){return this._renderWorldCopies}setRenderWorldCopies(e){e===void 0?e=!0:e===null&&(e=!1),this._renderWorldCopies=e}get constrainOverride(){return this._constrainOverride}setConstrainOverride(e){e===void 0&&(e=null),this._constrainOverride!==e&&(this._constrainOverride=e,this.constrainInternal(),this._calcMatrices())}get worldSize(){return this._tileSize*this._scale}get centerOffset(){return this.centerPoint._sub(this.size._div(2))}get size(){return new tr(this._width,this._height)}get bearing(){return this._bearingInRadians/Math.PI*180}setBearing(e){let t=j0(e,-180,180)*Math.PI/180;this._bearingInRadians!==t&&(this._unmodified=!1,this._bearingInRadians=t,this._calcMatrices(),this._rotationMatrix=Hot(),S6r(this._rotationMatrix,this._rotationMatrix,-this._bearingInRadians))}get rotationMatrix(){return this._rotationMatrix}get pitchInRadians(){return this._pitchInRadians}get pitch(){return this._pitchInRadians/Math.PI*180}setPitch(e){let t=Qn(e,this.minPitch,this.maxPitch)/180*Math.PI;this._pitchInRadians!==t&&(this._unmodified=!1,this._pitchInRadians=t,this._calcMatrices())}get rollInRadians(){return this._rollInRadians}get roll(){return this._rollInRadians/Math.PI*180}setRoll(e){let t=e/180*Math.PI;this._rollInRadians!==t&&(this._unmodified=!1,this._rollInRadians=t,this._calcMatrices())}get fovInRadians(){return this._fovInRadians}get fov(){return Av(this._fovInRadians)}setFov(e){e=Qn(e,.1,150),this.fov!==e&&(this._unmodified=!1,this._fovInRadians=Bs(e),this._calcMatrices())}get zoom(){return this._zoom}setZoom(e){let t=this.applyConstrain(this._center,e).zoom;this._zoom!==t&&(this._unmodified=!1,this._zoom=t,this._tileZoom=Math.max(0,Math.floor(t)),this._scale=Of(t),this.constrainInternal(),this._calcMatrices())}get center(){return this._center}setCenter(e){(e.lat!==this._center.lat||e.lng!==this._center.lng)&&(this._unmodified=!1,this._center=e,this.constrainInternal(),this._calcMatrices())}get elevation(){return this._elevation}setElevation(e){e!==this._elevation&&(this._elevation=e,this.constrainInternal(),this._calcMatrices())}get padding(){return this._edgeInsets.toJSON()}setPadding(e){this._edgeInsets.equals(e)||(this._unmodified=!1,this._edgeInsets.interpolate(this._edgeInsets,e,1),this._calcMatrices())}get centerPoint(){return this._edgeInsets.getCenter(this._width,this._height)}get pixelsPerMeter(){return this._pixelPerMeter}get unmodified(){return this._unmodified}get cameraToCenterDistance(){return this._cameraToCenterDistance}get nearZ(){return this._nearZ}get farZ(){return this._farZ}get autoCalculateNearFarZ(){return this._autoCalculateNearFarZ}overrideNearFarZ(e,t){this._autoCalculateNearFarZ=!1,this._nearZ=e,this._farZ=t,this._calcMatrices()}clearNearFarZOverride(){this._autoCalculateNearFarZ=!0,this._calcMatrices()}isPaddingEqual(e){return this._edgeInsets.equals(e)}interpolatePadding(e,t,r){this._unmodified=!1,this._edgeInsets.interpolate(e,t,r),this.constrainInternal(),this._calcMatrices()}resize(e,t,r=!0){this._width=e,this._height=t,r&&this.constrainInternal(),this._calcMatrices()}getMaxBounds(){var e,t;return((e=this._latRange)==null?void 0:e.length)!==2||((t=this._lngRange)==null?void 0:t.length)!==2?null:new Iv([this._lngRange[0],this._latRange[0]],[this._lngRange[1],this._latRange[1]])}setMaxBounds(e){e?(this._lngRange=[e.getWest(),e.getEast()],this._latRange=[e.getSouth(),e.getNorth()],this.constrainInternal()):(this._lngRange=null,this._latRange=[-Cv,Cv])}getCameraQueryGeometry(e,t){if(t.length===1)return[t[0],e];{let{minX:r,minY:i,maxX:n,maxY:a}=ap.fromPoints(t).extend(e);return[new tr(r,i),new tr(n,i),new tr(n,a),new tr(r,a),new tr(r,i)]}}constrainInternal(){if(!this.center||!this._width||!this._height||this._constraining)return;this._constraining=!0;let e=this._unmodified,{center:t,zoom:r}=this.applyConstrain(this.center,this.zoom);this.setCenter(t),this.setZoom(r),this._unmodified=e,this._constraining=!1}_calcMatrices(){if(this._pixelPerMeter=vx(1,this.center.lat)*this.worldSize,!this._width||!this._height)return;this._pixelsToGLUnits=[2/this._width,-2/this._height];let e=op(new Float64Array(16));Oc(e,e,[this._width/2,-this._height/2,1]),ou(e,e,[1,-1,0]),this._clipSpaceToPixelsMatrix=e,e=op(new Float64Array(16)),Oc(e,e,[1,-1,1]),ou(e,e,[-1,-1,0]),Oc(e,e,[2/this._width,2/this._height,1]),this._pixelsToClipSpaceMatrix=e;let t=this.fovInRadians/2;this._cameraToCenterDistance=.5/Math.tan(t)*this._height,this._callbacks.calcMatrices()}calculateCenterFromCameraLngLatAlt(e,t,r,i){let n=r===void 0?this.bearing:r,a=i=i===void 0?this.pitch:i,{distanceToCenter:o,clampedElevation:s}=this._distanceToCenterFromAltElevationPitch(t,this.elevation,a),{x:l,y:u}=_q(a,n),c=Mo.fromLngLat(e,t),f=Zne(1,c.y),h,p,d=0;do{if(d+=1,d>10)break;p=o/f;let v=l*p,m=u*p;h=new Mo(c.x+v,c.y+m),f=1/h.meterInMercatorCoordinateUnits()}while(Math.abs(o-p*f)>1e-12);return{center:h.toLngLat(),elevation:s,zoom:Uc(this.height/2/Math.tan(this.fovInRadians/2)/p/this.tileSize)}}recalculateZoomAndCenter(e){if(this.elevation-e===0)return;let t=1/this.worldSize,r=vx(1,this.center.lat)*this.worldSize,i=Mo.fromLngLat(this.center,this.elevation),n=i.x/t,a=i.y/t,o=i.z/t,s=this.pitch,l=this.bearing,{x:u,y:c,z:f}=_q(s,l),h=this.cameraToCenterDistance,p=n+h*-u,d=a+h*-c,v=o+h*f,{distanceToCenter:m,clampedElevation:g}=this._distanceToCenterFromAltElevationPitch(v/r,e,s),w=m*r,_=p+u*w,b=d+c*w,S=new Mo(_*t,b*t,0).toLngLat(),x=vx(1,S.lat),T=Uc(this.height/2/Math.tan(this.fovInRadians/2)/m/x/this.tileSize);this._elevation=g,this._center=S,this.setZoom(T)}_distanceToCenterFromAltElevationPitch(e,t,r){let i=-Math.cos(Bs(r)),n=e-t,a,o=t;return i*n>=0||Math.abs(i)=0?1<i}allowWorldCopies(){return!0}prepareNextFrame(){}},NAr=ll([{name:"a_pos3d",type:"Int16",components:3}]),UAr=class extends lu{constructor(e){super(),this._lastTilesetChange=zo(),this.tileManager=e,this._tiles={},this._renderableTilesKeys=[],this._sourceTileCache={},this.minzoom=0,this.maxzoom=22,this.deltaZoom=1,this.tileSize=e._source.tileSize*2**this.deltaZoom,e.usedForTerrain=!0,e.tileSize=this.tileSize}destruct(){this.tileManager.usedForTerrain=!1,this.tileManager.tileSize=null,this.releaseAllRTT()}getSource(){return this.tileManager._source}update(e,t){this.tileManager.update(e,t),this._renderableTilesKeys=[];let r={},i=!1;for(let n of lT(e,{tileSize:this.tileSize,minzoom:this.minzoom,maxzoom:this.maxzoom,reparseOverscaled:!1,terrain:t}))r[n.key]=!0,this._renderableTilesKeys.push(n.key),this._tiles[n.key]||(n.terrainRttPosMatrix32f=new Float32Array(16),kv(n.terrainRttPosMatrix32f,0,Br,Br,0,0,1),this._tiles[n.key]=new pst(n,this.tileSize),this._lastTilesetChange=zo(),i=!0);for(let n in this._tiles)r[n]||(this._tiles[n].releaseRTT(this.tileManager.map.painter),delete this._tiles[n],i=!0);return i}releaseRTT(e){for(let t in this._tiles){let r=this._tiles[t];(r.tileID.equals(e)||r.tileID.isChildOf(e)||e.isChildOf(r.tileID))&&r.releaseRTT(this.tileManager.map.painter)}}releaseAllRTT(){for(let e in this._tiles)this._tiles[e].releaseRTT(this.tileManager.map.painter)}getRenderableTiles(){return this._renderableTilesKeys.map(e=>this.getTileByID(e))}getTileByID(e){return this._tiles[e]}getTerrainCoords(e,t){return t?this._getTerrainCoordsForTileRanges(e,t):this._getTerrainCoordsForRegularTile(e)}_getTerrainCoordsForRegularTile(e){let t={};for(let r of this._renderableTilesKeys){let i=this._tiles[r].tileID,n=e.clone(),a=hx();if(i.canonical.equals(e.canonical))kv(a,0,Br,Br,0,0,1);else if(i.canonical.isChildOf(e.canonical)){let o=i.canonical.z-e.canonical.z,s=i.canonical.x-(i.canonical.x>>o<>o<>o;kv(a,0,u,u,0,0,1),ou(a,a,[-s*u,-l*u,0])}else if(e.canonical.isChildOf(i.canonical)){let o=e.canonical.z-i.canonical.z,s=e.canonical.x-(e.canonical.x>>o<>o<>o;kv(a,0,Br,Br,0,0,1),ou(a,a,[s*u,l*u,0]),Oc(a,a,[1/2**o,1/2**o,0])}else continue;n.terrainRttPosMatrix32f=new Float32Array(a),t[r]=n}return t}_getTerrainCoordsForTileRanges(e,t){let r={};for(let i of this._renderableTilesKeys){let n=this._tiles[i].tileID;if(!this._isWithinTileRanges(n,t))continue;let a=e.clone(),o=hx();if(n.canonical.z===e.canonical.z){let s=e.canonical.x-n.canonical.x+e.wrap*(1<e.canonical.z){let s=n.canonical.z-e.canonical.z,l=n.canonical.x-(n.canonical.x>>s<>s<>s),f=e.canonical.y-(n.canonical.y>>s),h=Br>>s;kv(o,0,h,h,0,0,1),ou(o,o,[-l*h+c*Br,-u*h+f*Br,0])}else{let s=e.canonical.z-n.canonical.z,l=e.canonical.x-(e.canonical.x>>s<>s<>s)-n.canonical.x,f=(e.canonical.y>>s)-n.canonical.y,h=Br<r.maxzoom&&(i=r.maxzoom),i=r.minzoom&&!(n!=null&&n.dem);)n=this.findTileInCaches(e.scaledTo(i--).key);return n}findTileInCaches(e){let t=this.tileManager.getTileByID(e);return t||(t=this.tileManager._outOfViewCache.getByKey(e),t)}anyTilesAfterTime(e=zo()){return this._lastTilesetChange>=e}_isWithinTileRanges(e,t){let r=t[e.canonical.z];return!!r&&(e.wrap>r.minWrap||e.wrap=r.minTileXWrapped&&e.canonical.x<=r.maxTileXWrapped&&e.canonical.y>=r.minTileY&&e.canonical.y<=r.maxTileY)}},uot=Br*(1-1e-12),cot=-.5,VAr=class{constructor(e,t,r,i="auto"){this._meshCache={},this.painter=e,this.tileManager=new UAr(t),this.options=r,this.exaggeration=typeof r.exaggeration=="number"?r.exaggeration:1,this._terrainSkirtLength=i,this.qualityFactor=2,this.meshSize=128,this._demMatrixCache=new Map,this._elevationSamplerCache=new Map}destroy(){this._fbo&&(this._fbo=(this._fbo.destroy(),null)),this._fboDepthTexture&&(this._fboDepthTexture=(this._fboDepthTexture.destroy(),null)),this._emptyDemTexture&&(this._emptyDemTexture=(this._emptyDemTexture.destroy(),null)),this._emptyDepthTexture&&(this._emptyDepthTexture=(this._emptyDepthTexture.destroy(),null));for(let e in this._meshCache)this._meshCache[e].destroy();this._meshCache={},this.tileManager.destruct()}getDEMElevation(e,t,r,i=Br){let n=e.normalizeCoordinates(t,r,i);if(!n)return 0;let a=this.getElevationSampler(n.tileID);return a?a(n.x,n.y,i):0}getElevationForLngLatZoom(e,t){if(!oae(t,e.wrap()))return 0;let{tileID:r,mercatorX:i,mercatorY:n}=this._getOverscaledTileIDFromLngLatZoom(e,t);return this.getElevation(r,i%Br,n%Br,Br)}getElevationForLngLat(e,t){let r=this.getCoverageIndex();if(r){let a=Mo.fromLngLat(e),o=Moe(r,this.exaggeration,a.x,a.y);if(o.demLoaded)return o.elevation}let i=lT(t,{maxzoom:this.tileManager.maxzoom,minzoom:this.tileManager.minzoom,tileSize:512,terrain:this}),n=0;for(let a of i)a.canonical.z>n&&(n=Math.min(a.canonical.z,this.tileManager.maxzoom));return this.getElevationForLngLatZoom(e,n)}getElevation(e,t,r,i=Br){return this.getDEMElevation(e,t,r,i)*this.exaggeration}resetElevationCache(){this._elevationSamplerCache.clear(),this._coverageIndex=void 0}getCoverageIndex(){return this._coverageIndex===void 0&&(this._coverageIndex=this._buildCoverageIndex()),this._coverageIndex}_buildCoverageIndex(){let e=[],t=new Map,r=0,i=0;for(let n of this.tileManager.getRenderableTiles()){if(!n)continue;let{canonical:a,wrap:o}=n.tileID;e.includes(a.z)||e.push(a.z);let s=this.getElevationSampler(n.tileID);t.set(`${o}/${a.z}/${a.x}/${a.y}`,s);let{minElevation:l,maxElevation:u}=this.getMinMaxElevation(n.tileID);r=Math.min(r,l!=null?l:0),i=Math.max(i,u!=null?u:0)}return t.size===0?null:(e.sort((n,a)=>a-n),{zooms:e,samplerPerTile:t,minElevation:r-10,maxElevation:i+10})}getElevationSampler(e){let t=e.key,r=this._elevationSamplerCache.get(t);if(r)return r;let i=this.tileManager.getSourceTile(e,!0),n=i==null?void 0:i.dem;if(!i||!n)return null;let a=this._getDEMTileMatrix(e,i),o=a[0]*n.dim,s=a[5]*n.dim,l=a[12]*n.dim+cot,u=a[13]*n.dim+cot,c=(f,h,p)=>{let d=p===8192?1:Br/p;return n.sampleBilinear(f*d*o+l,h*d*s+u)};return this._elevationSamplerCache.set(t,c),c}_getDEMTileMatrix(e,t){let r=`${t.tileID.key}/${e.key}`,i=this._demMatrixCache.get(r);if(i)return i;let n=e.canonical.z-t.tileID.canonical.z,a=e.canonical.x-(e.canonical.x>>n<>n<0,r=t&&e.canonical.y===0,i=t&&e.canonical.y===(1<{n=Qn(+n,this.minZoom,this.maxZoom);let a={center:new pn(i.lng,i.lat),zoom:n},o=this._helper._lngRange;!this._helper._renderWorldCopies&&o===null&&(o=[-179.9999999999,180-1e-10]);let s=this.tileSize*Of(a.zoom),l=0,u=s,c=0,f=s,h=0,p=0,{x:d,y:v}=this.size;if(this._helper._latRange){let S=this._helper._latRange;l=p3(S[1])*s,u=p3(S[0])*s,u-lu&&(_=u-S)}if(o){let S=(c+f)/2,x=m;this._helper._renderWorldCopies&&(x=j0(m,S-s/2,S+s/2));let T=d/2;x-Tf&&(w=f-T)}if(w!==void 0||_!==void 0){let S=new tr(w!=null?w:m,_!=null?_:g);a.center=J6(s,S).wrap()}return a},this.applyConstrain=(i,n)=>this._helper.applyConstrain(i,n),this._helper=r!=null?r:new Aoe({calcMatrices:()=>this._calcMatrices(),defaultConstrain:(i,n)=>this.defaultConstrain(i,n)},t),this._coveringTilesDetailsProvider=new OAr}clone(){let t=new Cst;return t.apply(this,!1),t}apply(t,r){this._helper.apply(t,r)}get cameraPosition(){return this._cameraPosition}get projectionMatrix(){return this._projectionMatrix}get modelViewProjectionMatrix(){return this._viewProjMatrix}get inverseProjectionMatrix(){return this._invProjMatrix}get mercatorMatrix(){return this._mercatorMatrix}getVisibleUnwrappedCoordinates(t){let r=[new IC(0,t)];if(this._helper._renderWorldCopies){let i=this.screenPointToMercatorCoordinate(new tr(0,0)),n=this.screenPointToMercatorCoordinate(new tr(this._helper._width,0)),a=this.screenPointToMercatorCoordinate(new tr(this._helper._width,this._helper._height)),o=this.screenPointToMercatorCoordinate(new tr(0,this._helper._height)),s=Math.floor(Math.min(i.x,n.x,a.x,o.x)),l=Math.floor(Math.max(i.x,n.x,a.x,o.x));for(let u=s-1;u<=l+1;u++)u!==0&&r.push(new IC(u,t))}return r}getCameraFrustum(){return yoe.fromInvProjectionMatrix(this._invViewProjMatrix,this.worldSize)}getClippingPlane(){return null}getCoveringTilesDetailsProvider(){return this._coveringTilesDetailsProvider}recalculateZoomAndCenter(t){let r=this.screenPointToLocation(this.centerPoint,t),i=t?t.getElevationForLngLat(r,this):0;this._helper.recalculateZoomAndCenter(i)}setLocationAtPoint(t,r,i=this.elevation){let n=i-this.elevation,a=this.screenPointToMercatorCoordinateAtZ(r,n),o=this.screenPointToMercatorCoordinateAtZ(this.centerPoint,0),s=Mo.fromLngLat(t),l=new Mo(s.x-(a.x-o.x),s.y-(a.y-o.y));this.setCenter(l==null?void 0:l.toLngLat()),this._helper._renderWorldCopies&&this.setCenter(this.center.wrap())}locationToScreenPoint(t,r){return r?this.coordinatePoint(Mo.fromLngLat(t),r.getElevationForLngLat(t,this),this._pixelMatrix3D):this.coordinatePoint(Mo.fromLngLat(t))}screenPointToLocation(t,r){var i;return(i=this.screenPointToMercatorCoordinate(t,r))==null?void 0:i.toLngLat()}screenPointToLocationAtElevation(t,r){var i;return(i=this.screenPointToMercatorCoordinateAtZ(t,r-this.elevation))==null?void 0:i.toLngLat()}screenPointToMercatorCoordinate(t,r){if(r){let i=this.screenTerrainPointToMercatorCoordinate(t,r);if(i!=null)return i}return this.screenPointToMercatorCoordinateAtZ(t)}screenTerrainPointToMercatorCoordinate(t,r){let i=r.getCoverageIndex();if(!i)return null;let{near:n,far:a}=this.getRaySegmentFromPixel(t),o=this.worldSize,s=a[0]-n[0],l=a[1]-n[1],u=a[2]-n[2],c={index:i,exaggeration:r.exaggeration,near:n,dx:s,dy:l,dz:u,worldSize:o},f=0,h=1;if(u===0){if(n[2]>i.maxElevation||n[2]h)return null}let p=Math.hypot(s,l),d=Qn(Math.ceil(p*(h-f)/4),1,512),v=0,m=!Rq(c,0);for(let g=0;g<=d;g++){let w=f+(h-f)*g/d;if(!m)m=!Rq(c,w);else if(Rq(c,w)){let{lo:_,hi:b}=kst(c,Rq,v,w,.001/p),S=Yq(c,_),x=Yq(c,b),T=n[2]+_*u-S.elevation,A=n[2]+b*u-x.elevation,y=S.covered&&T>A?Qn(_+T*(b-_)/(T-A),_,b):b;return new Mo((n[0]+y*s)/o,(n[1]+y*l)/o,Yq(c,y).elevation)}v=w}return null}getRaySegmentFromPixel(t){let r=[t.x,t.y,0,1],i=[t.x,t.y,1,1];Nc(r,r,this._pixelMatrixInverse),Nc(i,i,this._pixelMatrixInverse);let n=r[3],a=i[3],o=this.elevation;return{near:[r[0]/n,r[1]/n,r[2]/n+o],far:[i[0]/a,i[1]/a,i[2]/a+o]}}screenPointToMercatorCoordinateAtZ(t,r){let i=r||0,{near:n,far:a}=this.getRaySegmentFromPixel(t),o=n[2]===a[2]?0:(i+this.elevation-n[2])/(a[2]-n[2]);return new Mo(Ys.number(n[0],a[0],o)/this.worldSize,Ys.number(n[1],a[1],o)/this.worldSize,i)}coordinatePoint(t,r=0,i=this._pixelMatrix){let n=this._coordinateClipPoint(t,r,i),a=n[3];return a>0?new tr(n[0]/a,n[1]/a):this._offScreenPointBehindCamera(n[0],n[1],a)}_coordinateClipPoint(t,r,i){let n=[t.x*this.worldSize,t.y*this.worldSize,r,1];return Nc(n,n,i)}_offScreenPointBehindCamera(t,r,i){let n=this.width/2,a=this.height/2,o=t-n*i,s=r-a*i;o===0&&s===0&&(s=1);let l=n+this.width,u=a+this.height,c=Math.min(o===0?1/0:l/Math.abs(o),s===0?1/0:u/Math.abs(s));return new tr(n+o*c,a+s*c)}getBounds(){let t=Math.max(0,this._helper._height/2-Q6(this));return new Iv().extend(this.screenPointToLocation(new tr(0,t))).extend(this.screenPointToLocation(new tr(this._helper._width,t))).extend(this.screenPointToLocation(new tr(this._helper._width,this._helper._height))).extend(this.screenPointToLocation(new tr(0,this._helper._height)))}isPointOnMapSurface(t,r){return r?this.screenTerrainPointToMercatorCoordinate(t,r)!=null:t.y>this.centerPoint.y-Q6(this)}calculatePosMatrix(t,r=!1,i=!1){var l;let n=(l=t.key)!=null?l:t3(t.wrap,t.canonical.z,t.canonical.z,t.canonical.x,t.canonical.y),a=r?this._alignedPosMatrixCache:this._posMatrixCache;if(a.has(n)){let u=a.get(n);return i?u.f32:u.f64}let o=bq(t,this.worldSize);s3(o,r?this._alignedProjMatrix:this._viewProjMatrix,o);let s={f64:o,f32:new Float32Array(o)};return a.set(n,s),i?s.f32:s.f64}calculateFogMatrix(t){let r=t.key,i=this._fogMatrixCacheF32;if(i.has(r))return i.get(r);let n=bq(t,this.worldSize);return s3(n,this._fogMatrix,n),i.set(r,new Float32Array(n)),i.get(r)}calculateCenterFromCameraLngLatAlt(t,r,i,n){return this._helper.calculateCenterFromCameraLngLatAlt(t,r,i,n)}calculateCameraOptionsFromTo(t,r,i,n){let a=Mo.fromLngLat(t,r),o=Mo.fromLngLat(i,n),s=o.x-a.x,l=o.y-a.y,u=o.z-a.z,c=Math.hypot(s,l,u);if(c===0)throw Error("Can't calculate camera options with same From and To");let f=Math.hypot(s,l),h=Uc(this.cameraToCenterDistance/c/this.tileSize),p=Av(Math.atan2(s,-l)),d=Av(Math.acos(f/c));return d=u<0?90-d:90+d,{center:o.toLngLat(),elevation:n,zoom:h,pitch:d,bearing:p}}_calculateNearFarZ(t,r,i){let n=Math.min(this.elevation,this.minElevationForCurrentTile,this.getCameraAltitude()-100),a=t-n*this._helper._pixelPerMeter/Math.cos(r),o=n<0?a:t,s=Math.PI/2+this.pitchInRadians,l=Bs(this.fov)*(Math.abs(Math.cos(Bs(this.roll)))*this.height+Math.abs(Math.sin(Bs(this.roll)))*this.width)/this.height*(.5+i.y/this.height),u=Math.sin(l)*o/Math.sin(Qn(Math.PI-s-l,.01,Math.PI-.01)),c=Q6(this),f=Math.atan(c/this._helper.cameraToCenterDistance),h=Bs(90-gx),p=f>h?2*f*(.5+i.y/(c*2)):h,d=Math.sin(p)*o/Math.sin(Qn(Math.PI-s-p,.01,Math.PI-.01)),v=Math.min(u,d);this._helper._farZ=(Math.cos(Math.PI/2-r)*v+o)*1.01,this._helper._nearZ=this._helper._height/50}_calcMatrices(t=this._helper.autoCalculateNearFarZ){let r=this.centerOffset,i=Lv(this.worldSize,this.center),n=i.x,a=i.y,o=Bs(Math.min(this.pitch,gx)),s=Math.max(this._helper.cameraToCenterDistance/2,this._helper.cameraToCenterDistance+this._helper._elevation*this._helper._pixelPerMeter/Math.cos(o));t&&this._calculateNearFarZ(s,o,r);let l;l=new Float64Array(16),BB(l,this.fovInRadians,this._helper._width/this._helper._height,this._helper._nearZ,this._helper._farZ),this._invProjMatrix=new Float64Array(16),sAr(this._invProjMatrix,l),l[8]=-r.x*2/this._helper._width,l[9]=r.y*2/this._helper._height,this._projectionMatrix=zB(l),Oc(l,l,[1,-1,1]),ou(l,l,[0,0,-this._helper.cameraToCenterDistance]),zm(l,l,-this.rollInRadians),l3(l,l,this.pitchInRadians),zm(l,l,-this.bearingInRadians),ou(l,l,[-n,-a,0]),this._mercatorMatrix=Oc([],l,[this.worldSize,this.worldSize,this.worldSize]),Oc(l,l,[1,1,this._helper._pixelPerMeter]),this._pixelMatrix=s3(new Float64Array(16),this.clipSpaceToPixelsMatrix,l),ou(l,l,[0,0,-this.elevation]),this._viewProjMatrix=l,this._invViewProjMatrix=lC([],l);let u=[0,0,-1,1];Nc(u,u,this._invViewProjMatrix),this._cameraPosition=[u[0]/u[3],u[1]/u[3],u[2]/u[3]],this._fogMatrix=new Float64Array(16),BB(this._fogMatrix,this.fovInRadians,this.width/this.height,s,this._helper._farZ),this._fogMatrix[8]=-r.x*2/this.width,this._fogMatrix[9]=r.y*2/this.height,Oc(this._fogMatrix,this._fogMatrix,[1,-1,1]),ou(this._fogMatrix,this._fogMatrix,[0,0,-this.cameraToCenterDistance]),zm(this._fogMatrix,this._fogMatrix,-this.rollInRadians),l3(this._fogMatrix,this._fogMatrix,this.pitchInRadians),zm(this._fogMatrix,this._fogMatrix,-this.bearingInRadians),ou(this._fogMatrix,this._fogMatrix,[-n,-a,0]),Oc(this._fogMatrix,this._fogMatrix,[1,1,this._helper._pixelPerMeter]),ou(this._fogMatrix,this._fogMatrix,[0,0,-this.elevation]),this._pixelMatrix3D=s3(new Float64Array(16),this.clipSpaceToPixelsMatrix,l);let c=this._helper._width%2/2,f=this._helper._height%2/2,h=Math.cos(this.bearingInRadians),p=Math.sin(-this.bearingInRadians),d=n-Math.round(n)+h*c+p*f,v=a-Math.round(a)+h*f+p*c,m=new Float64Array(l);if(ou(m,m,[d>.5?d-1:d,v>.5?v-1:v,0]),this._alignedProjMatrix=m,l=lC(new Float64Array(16),this._pixelMatrix),!l)throw Error("failed to invert matrix");this._pixelMatrixInverse=l,this._clearMatrixCaches()}_clearMatrixCaches(){this._posMatrixCache.clear(),this._alignedPosMatrixCache.clear(),this._fogMatrixCacheF32.clear()}maxPitchScaleFactor(){if(!this._pixelMatrixInverse)return 1;let t=this.screenPointToMercatorCoordinate(new tr(0,0)),r=[t.x*this.worldSize,t.y*this.worldSize,0,1];return Nc(r,r,this._pixelMatrix)[3]/this._helper.cameraToCenterDistance}getCameraPoint(){return this._helper.getCameraPoint()}getCameraAltitude(){return Math.cos(this.pitchInRadians)*this.cameraToCenterDistance/this.pixelsPerMeter+this.elevation}getCameraLngLat(){let t=vx(1,this.center.lat)*this.worldSize,r=this._helper.cameraToCenterDistance/t;return Jne(this.center,this.elevation,this.pitch,this.bearing,r).toLngLat()}getProjectionData(t){let{overscaledTileID:r,aligned:i,applyTerrainMatrix:n}=t,a=this._helper.getMercatorTileCoordinates(r),o=r?this.calculatePosMatrix(r,i,!0):null,s;return s=r!=null&&r.terrainRttPosMatrix32f&&n?r.terrainRttPosMatrix32f:o||une(),{mainMatrix:s,tileMercatorCoords:a,clippingPlane:[0,0,0,0],projectionTransition:0,fallbackMatrix:s,clipAntimeridian:!1}}isLocationOccluded(t,r,i){if(!(r!=null&&r.getCoverageIndex()))return!1;let n=Mo.fromLngLat(t);i!=null||(i=r.getElevationForLngLat(t,this));let a=this._coordinateClipPoint(n,i,this._pixelMatrix3D),o=a[3];if(o<=0||a[2]>o)return!0;let s=new tr(a[0]/o,a[1]/o),l=this.screenTerrainPointToMercatorCoordinate(s,r);if(l==null)return!1;let u=this.getRaySegmentFromPixel(s),c=hot(u,n.x*this.worldSize,n.y*this.worldSize,i);return hot(u,l.x*this.worldSize,l.y*this.worldSize,l.z){if(l&&e.setZoom(Ys.number(r,p,_)),hne(n,a)||Fst({startEulerAngles:n,endEulerAngles:a,tr:e,k:_,useSlerp:n.roll!=a.roll}),s&&(e.interpolatePadding(i,t.padding,_),c=e.centerPoint.add(t.offsetAsPoint)),t.around)e.setLocationAtPoint(t.around,t.aroundPoint);else{let b=Of(e.zoom-r),S=(p>r?Math.min(2,m):Math.max(.5,m))**(1-_),x=J6(e.worldSize,d.add(v.mult(_*S)).mult(b));e.setLocationAtPoint(e.renderWorldCopies?x.wrap():x,c)}},w=this._transformAtAnimationEnd(e,p,a,t.padding);return t.around?w.setLocationAtPoint(t.around,t.aroundPoint):w.setLocationAtPoint(h,w.centerPoint.add(t.offsetAsPoint)),{easeFunc:g,isZooming:l,elevationCenter:w.center}}handleFlyTo(e,t){let r=t.zoom!==void 0,i=e.zoom,n=e.applyConstrain(pn.convert(t.center||t.locationAtOffset),r?+t.zoom:i),a=n.center,o=n.zoom;Jq(e,a);let s=e.worldSize,l=Lv(s,t.locationAtOffset),u=Lv(s,a).sub(l),c=u.mag(),f=Of(o-i),h=t.minZoom===void 0?e.minZoom:+t.minZoom,p=Math.max(h,e.minZoom),d=Math.min(p,i,o),v=e.applyConstrain(a,d).zoom,m=Of(v-i),g=(_,b,S,x)=>{e.setZoom(_===1?o:i+Uc(b));let T=_===1?a:J6(s,l.add(u.mult(S)));e.setLocationAtPoint(e.renderWorldCopies?T.wrap():T,x)},w=this._transformAtAnimationEnd(e,o,{roll:t.roll,pitch:t.pitch,bearing:t.bearing},t.padding);return w.setLocationAtPoint(a,w.centerPoint.add(t.offsetAsPoint)),{easeFunc:g,scaleOfZoom:f,targetCenter:w.center,scaleOfMinZoom:m,pixelPathLength:c}}_transformAtAnimationEnd(e,t,r,i){let n=e.clone();return n.setZoom(t),n.setRoll(r.roll),n.setPitch(r.pitch),n.setBearing(r.bearing),n.setPadding(i),n}},GAr=()=>dot||(dot=new hc({type:new Pi(_r.projection.type,"type")})),Dae=new yq({fill:new rg(128,2),line:new rg(512,0),tile:new rg(128,32),stencil:new rg(128,1),circle:3}),Pst=class{constructor(){this._tileMeshCache={}}get name(){return"vertical-perspective"}get transitionState(){return 1}get useSubdivision(){return!0}get shaderVariantName(){return"globe"}get shaderDefine(){return"#define GLOBE"}get shaderPreludeCode(){return fg.projectionGlobe}get vertexShaderPreludeCode(){return fg.projectionMercator.vertexSource}get subdivisionGranularity(){return Dae}get useGlobeControls(){return!0}destroy(){}_getMeshKey(e){return`${e.granularity.toString(36)}_${e.generateBorders?"b":""}${e.extendToNorthPole?"n":""}${e.extendToSouthPole?"s":""}`}getMeshFromTileID(e,t,r,i,n){let a=(n==="stencil"?Dae.stencil:Dae.tile).getGranularityForZoomLevel(t.z),o=t.y===0&&i,s=t.y===(1<0}get currentProjection(){return this.useGlobeRendering?this._verticalPerspectiveProjection:this._mercatorProjection}get name(){return"globe"}get useSubdivision(){return this.currentProjection.useSubdivision}get shaderVariantName(){return this.currentProjection.shaderVariantName}get shaderDefine(){return this.currentProjection.shaderDefine}get shaderPreludeCode(){return this.currentProjection.shaderPreludeCode}get vertexShaderPreludeCode(){return this.currentProjection.vertexShaderPreludeCode}get subdivisionGranularity(){return this.currentProjection.subdivisionGranularity}get useGlobeControls(){return this.transitionState>0}destroy(){this._mercatorProjection.destroy(),this._verticalPerspectiveProjection.destroy()}getMeshFromTileID(e,t,r,i,n){return this.currentProjection.getMeshFromTileID(e,t,r,i,n)}setProjection(e){this._transitionable.setValue("type",(e==null?void 0:e.type)||"mercator")}updateTransitions(e){this._transitioning=this._transitionable.transitioned(e,this._transitioning)}hasTransition(){return this._transitioning.hasTransition()||this.currentProjection.hasTransition()}recalculate(e){this.properties=this._transitioning.possiblyEvaluate(e)}};Fae=Math.PI*.98;tMr=class{constructor(e){this._cachePrevious=new Map,this._cache=new Map,this._hadAnyChanges=!1,this._boundingVolumeFactory=e}swapBuffers(){if(!this._hadAnyChanges)return;let e=this._cachePrevious;this._cachePrevious=this._cache,this._cache=e,this._cache.clear(),this._hadAnyChanges=!1}getTileBoundingVolume(e,t,r,i){let n=`${e.z}_${e.x}_${e.y}_${i!=null&&i.terrain?"t":""}_${Math.round(r)}`,a=this._cache.get(n);if(a)return a;let o=this._cachePrevious.get(n);if(o)return this._cache.set(n,o),o;let s=this._boundingVolumeFactory(e,t,r,i);return this._cache.set(n,s),this._hadAnyChanges=!0,s}},Pae=class noe{constructor(t,r,i,n){this.min=i,this.max=n,this.points=t,this.planes=r}static fromAabb(t,r){let i=[];for(let n=0;n<8;n++)i.push([(n>>0&1)==1?r[0]:t[0],(n>>1&1)==1?r[1]:t[1],(n>>2&1)==1?r[2]:t[2]]);return new noe(i,[[-1,0,0,r[0]],[1,0,0,-t[0]],[0,-1,0,r[1]],[0,1,0,-t[1]],[0,0,-1,r[2]],[0,0,1,-t[2]]],t,r)}static fromCenterSizeAngles(t,r,i){let n=VB([],i[0],i[1],i[2]),a=NB([],[r[0],0,0],n),o=NB([],[0,r[1],0],n),s=NB([],[0,0,r[2]],n),l=[...t],u=[...t];for(let f=0;f<8;f++)for(let h=0;h<3;h++){let p=t[h]+a[h]*((f>>0&1)==1?1:-1)+o[h]*((f>>1&1)==1?1:-1)+s[h]*((f>>2&1)==1?1:-1);l[h]=Math.min(l[h],p),u[h]=Math.max(u[h],p)}let c=[];for(let f=0;f<8;f++){let h=[...t];G0(h,h,zs([],a,(f>>0&1)==1?1:-1)),G0(h,h,zs([],o,(f>>1&1)==1?1:-1)),G0(h,h,zs([],s,(f>>2&1)==1?1:-1)),c.push(h)}return new noe(c,[[...a,-su(a,c[0])],[...o,-su(o,c[0])],[...s,-su(s,c[0])],[-a[0],-a[1],-a[2],-su(a,c[7])],[-o[0],-o[1],-o[2],-su(o,c[7])],[-s[0],-s[1],-s[2],-su(s,c[7])]],l,u)}intersectsFrustum(t){let r=!0,i=this.points.length,n=this.planes.length,a=t.planes.length,o=t.points.length;for(let s=0;s=0&&u++}if(u===0)return 0;u=0&&u++}if(u===0)return 0}return 1}intersectsPlane(t){let r=this.points.length,i=0;for(let n=0;n=0&&i++}return i===r?2:i===0?0:1}};rMr=class{constructor(){this._boundingVolumeCache=new tMr(this._computeTileBoundingVolume)}prepareNextFrame(){this._boundingVolumeCache.swapBuffers()}distanceToTile2d(e,t,r,i){let n=1<4}allowWorldCopies(){return!1}getTileBoundingVolume(e,t,r,i){return this._boundingVolumeCache.getTileBoundingVolume(e,t,r,i)}_computeTileBoundingVolume(e,t,r,i){var o,s;let n=Math.min(0,r),a=Math.max(0,r);if(i!=null&&i.terrain){let l=new Vc(e.z,t,e.z,e.x,e.y),u=i.terrain.getMinMaxElevation(l);n=(o=u.minElevation)!=null?o:n,a=Math.max((s=u.maxElevation)!=null?s:a,a)}if(n/=Uf,a/=Uf,n+=1,a+=1,e.z<=0)return Pae.fromAabb([-a,-a,-a],[a,a,a]);if(e.z===1)return Pae.fromAabb([e.x===0?-a:0,e.y===0?0:-a,-a],[e.x===0?0:a,e.y===0?a:0,a]);{let l=[mx(0,0,e.x,e.y,e.z),mx(Br,0,e.x,e.y,e.z),mx(Br,Br,e.x,e.y,e.z),mx(0,Br,e.x,e.y,e.z)],u=[];for(let E of l)u.push(zs([],E,a));if(a!==n)for(let E of l)u.push(zs([],E,n));e.y===0&&u.push([0,1,0]),e.y===(1<=(1<{let a=Qn(i.lat,-Cv,Cv),o=Qn(+n,this.minZoom+Gc(0,a),this.maxZoom);return{center:new pn(i.lng,a),zoom:o}},this.applyConstrain=(i,n)=>this._helper.applyConstrain(i,n),this._helper=r!=null?r:new Aoe({calcMatrices:()=>this._calcMatrices(),defaultConstrain:(i,n)=>this.defaultConstrain(i,n)},t),this._coveringTilesDetailsProvider=new rMr}clone(){let t=new qst;return t.apply(this,!1),t}apply(t,r){this._helper.apply(t,r)}get projectionMatrix(){return this._projectionMatrix}get modelViewProjectionMatrix(){return this._globeViewProjMatrixF64}get inverseProjectionMatrix(){return this._globeProjMatrixInverted}get cameraPosition(){let t=So();return t[0]=this._cameraPosition[0],t[1]=this._cameraPosition[1],t[2]=this._cameraPosition[2],t}get cameraToCenterDistance(){return this._helper.cameraToCenterDistance}getProjectionData(t){let{overscaledTileID:r,applyGlobeMatrix:i}=t,n=this._helper.getMercatorTileCoordinates(r);return{mainMatrix:this._globeViewProjMatrix32f,tileMercatorCoords:n,clippingPlane:this._cachedClippingPlane,projectionTransition:+!!i,fallbackMatrix:this._globeViewProjMatrix32f,clipAntimeridian:(r==null?void 0:r.canonical.z)===0}}_computeClippingPlane(t){let r=this.pitchInRadians,i=this.cameraToCenterDistance/t,n=Math.sin(r)*i,a=Math.cos(r)*i+1,o=1/Math.sqrt(n*n+a*a)*1,s=-n,l=a,u=Math.sqrt(s*s+l*l);s/=u,l/=u;let c=[0,s,l];UB(c,c,[0,0,0],-this.bearingInRadians),j6(c,c,[0,0,0],-1*this.center.lat*Math.PI/180),u3(c,c,[0,0,0],this.center.lng*Math.PI/180);let f=1/sp(c);return zs(c,c,f),[...c,-o*f]}isLocationOccluded(t,r,i){let n=r==null?void 0:r.getCoverageIndex();i!=null||(i=n?r.getElevationForLngLat(t,this):0);let a=bot(t,i);if(!this.isSurfacePointVisible(a))return!0;if(!n)return!1;let o=this._projectSurfacePointToScreen(a),s=this.cameraPosition,l=this.getRayDirectionFromPixel(o),u=_ot(s,l,a);if(u<=0)return!0;let c=this.screenTerrainPointToMercatorCoordinate(o,r);return c!=null&&_ot(s,l,bot(c.toLngLat(),c.z))a&&(a=h),ps&&(s=p)}let c=[u.lng+o,u.lat+l,u.lng+a,u.lat+s];return this.isSurfacePointOnScreen([0,1,0])&&(c[3]=90,c[0]=-180,c[2]=180),this.isSurfacePointOnScreen([0,-1,0])&&(c[1]=-90,c[0]=-180,c[2]=180),new Iv(c)}calculateCenterFromCameraLngLatAlt(t,r,i,n){return this._helper.calculateCenterFromCameraLngLatAlt(t,r,i,n)}calculateCameraOptionsFromTo(t,r,i,n){let a=pn.convert(i),o=dc(pn.convert(t));zs(o,o,1+r/Uf);let s=dc(a),l=zs(So(),s,1+n/Uf),u=OB(So(),o,s),c=sp(u);if(c=-w&&v<=w,b=g>=-w&&g<=w,S,x;if(_&&b){let E=this.center.lng*Math.PI/180,M=this.center.lat*Math.PI/180,C=dC(h,E),k=dC(v,M),D=dC(p,E),L=dC(g,M);C+k=0}isSurfacePointOnScreen(t){if(!this.isSurfacePointVisible(t))return!1;let r=fx();return Nc(r,[...t,1],this._globeViewProjMatrixF64),r[0]/=r[3],r[1]/=r[3],r[2]/=r[3],r[0]>-1&&r[0]<1&&r[1]>-1&&r[1]<1&&r[2]>-1&&r[2]<1}unprojectScreenPoint(t){let r=this._cameraPosition,i=this.getRayDirectionFromPixel(t),n=zq(r,i);if(n){let c=So();G0(c,r,[i[0]*n.tMin,i[1]*n.tMin,i[2]*n.tMin]);let f=So();return qf(f,c),ZC(f)}let a=this._cachedClippingPlane,o=a[0]*i[0]+a[1]*i[1]+a[2]*i[2],s=-HB(a,r)/o,l=So();if(s>0)G0(l,r,[i[0]*s,i[1]*s,i[2]*s]);else{let c=So();G0(c,r,[i[0]*2,i[1]*2,i[2]*2]);let f=HB(this._cachedClippingPlane,c);lg(l,c,[this._cachedClippingPlane[0]*f,this._cachedClippingPlane[1]*f,this._cachedClippingPlane[2]*f])}let u=KAr(a);return ZC(JAr(u.center,u.radius,l))}getProjectionDataForCustomLayer(t=!0){let r=this.getProjectionData({overscaledTileID:new Vc(0,0,0,0,0),applyGlobeMatrix:t});return r.tileMercatorCoords=[0,0,1,1],r}getFastPathSimpleProjectionMatrix(t){}};wot=class Nst{get pixelsToClipSpaceMatrix(){return this._helper.pixelsToClipSpaceMatrix}get clipSpaceToPixelsMatrix(){return this._helper.clipSpaceToPixelsMatrix}get pixelsToGLUnits(){return this._helper.pixelsToGLUnits}get centerOffset(){return this._helper.centerOffset}get size(){return this._helper.size}get rotationMatrix(){return this._helper.rotationMatrix}get centerPoint(){return this._helper.centerPoint}get pixelsPerMeter(){return this._helper.pixelsPerMeter}setMinZoom(t){this._helper.setMinZoom(t)}setMaxZoom(t){this._helper.setMaxZoom(t)}setMinPitch(t){this._helper.setMinPitch(t)}setMaxPitch(t){this._helper.setMaxPitch(t)}setRenderWorldCopies(t){this._helper.setRenderWorldCopies(t)}setBearing(t){this._helper.setBearing(t)}setPitch(t){this._helper.setPitch(t)}setRoll(t){this._helper.setRoll(t)}setFov(t){this._helper.setFov(t)}setZoom(t){this._helper.setZoom(t)}setCenter(t){this._helper.setCenter(t)}setElevation(t){this._helper.setElevation(t)}setMinElevationForCurrentTile(t){this._helper.setMinElevationForCurrentTile(t)}setPadding(t){this._helper.setPadding(t)}interpolatePadding(t,r,i){this._helper.interpolatePadding(t,r,i)}isPaddingEqual(t){return this._helper.isPaddingEqual(t)}resize(t,r,i=!0){this._helper.resize(t,r,i)}getMaxBounds(){return this._helper.getMaxBounds()}setMaxBounds(t){this._helper.setMaxBounds(t)}setConstrainOverride(t){this._helper.setConstrainOverride(t)}overrideNearFarZ(t,r){this._helper.overrideNearFarZ(t,r)}clearNearFarZOverride(){this._helper.clearNearFarZOverride()}getCameraQueryGeometry(t){return this._helper.getCameraQueryGeometry(this.getCameraPoint(),t)}get tileSize(){return this._helper.tileSize}get tileZoom(){return this._helper.tileZoom}get scale(){return this._helper.scale}get worldSize(){return this._helper.worldSize}get width(){return this._helper.width}get height(){return this._helper.height}get lngRange(){return this._helper.lngRange}get latRange(){return this._helper.latRange}get minZoom(){return this._helper.minZoom}get maxZoom(){return this._helper.maxZoom}get zoom(){return this._helper.zoom}get center(){return this._helper.center}get minPitch(){return this._helper.minPitch}get maxPitch(){return this._helper.maxPitch}get pitch(){return this._helper.pitch}get pitchInRadians(){return this._helper.pitchInRadians}get roll(){return this._helper.roll}get rollInRadians(){return this._helper.rollInRadians}get bearing(){return this._helper.bearing}get bearingInRadians(){return this._helper.bearingInRadians}get fov(){return this._helper.fov}get fovInRadians(){return this._helper.fovInRadians}get elevation(){return this._helper.elevation}get minElevationForCurrentTile(){return this._helper.minElevationForCurrentTile}get padding(){return this._helper.padding}get unmodified(){return this._helper.unmodified}get renderWorldCopies(){return this._helper.renderWorldCopies}get cameraToCenterDistance(){return this._helper.cameraToCenterDistance}get constrainOverride(){return this._helper.constrainOverride}get nearZ(){return this._helper.nearZ}get farZ(){return this._helper.farZ}get autoCalculateNearFarZ(){return this._helper.autoCalculateNearFarZ}get isGlobeRendering(){return this._globeness>0}setTransitionState(t){this._globeness=t,this._calcMatrices(),this._verticalPerspectiveTransform.getCoveringTilesDetailsProvider().prepareNextFrame(),this._mercatorTransform.getCoveringTilesDetailsProvider().prepareNextFrame()}get currentTransform(){return this.isGlobeRendering?this._verticalPerspectiveTransform:this._mercatorTransform}constructor(t){this._globeness=1,this.defaultConstrain=(r,i)=>this.currentTransform.defaultConstrain(r,i),this.applyConstrain=(r,i)=>this._helper.applyConstrain(r,i),this._helper=new Aoe({calcMatrices:()=>this._calcMatrices(),defaultConstrain:(r,i)=>this.defaultConstrain(r,i)},t),this._globeness=1,this._mercatorTransform=new Qq(void 0,this._helper),this._verticalPerspectiveTransform=new Bst(void 0,this._helper)}clone(){let t=new Nst;return t._globeness=this._globeness,t.apply(this,!1),t}apply(t,r){this._helper.apply(t,r)}get projectionMatrix(){return this.currentTransform.projectionMatrix}get modelViewProjectionMatrix(){return this.currentTransform.modelViewProjectionMatrix}get inverseProjectionMatrix(){return this.currentTransform.inverseProjectionMatrix}get cameraPosition(){return this.currentTransform.cameraPosition}getProjectionData(t){let r=this._mercatorTransform.getProjectionData(t),i=this._verticalPerspectiveTransform.getProjectionData(t);return{mainMatrix:this.isGlobeRendering?i.mainMatrix:r.mainMatrix,clippingPlane:i.clippingPlane,tileMercatorCoords:i.tileMercatorCoords,projectionTransition:t.applyGlobeMatrix?this._globeness:0,fallbackMatrix:r.fallbackMatrix,clipAntimeridian:i.clipAntimeridian}}isLocationOccluded(t,r,i){return this.currentTransform.isLocationOccluded(t,r,i)}transformLightDirection(t){return this.currentTransform.transformLightDirection(t)}getPixelScale(){return c3(this._mercatorTransform.getPixelScale(),this._verticalPerspectiveTransform.getPixelScale(),this._globeness)}getCircleRadiusCorrection(){return c3(this._mercatorTransform.getCircleRadiusCorrection(),this._verticalPerspectiveTransform.getCircleRadiusCorrection(),this._globeness)}getPitchedTextCorrection(t,r,i){let n=this._mercatorTransform.getPitchedTextCorrection(t,r,i),a=this._verticalPerspectiveTransform.getPitchedTextCorrection(t,r,i);return c3(n,a,this._globeness)}projectTileCoordinates(t,r,i,n){return this.currentTransform.projectTileCoordinates(t,r,i,n)}_calcMatrices(){this._helper._width&&this._helper._height&&(this._verticalPerspectiveTransform._calcMatrices(),this._mercatorTransform._calcMatrices(this.autoCalculateNearFarZ&&!this.isGlobeRendering))}calculateFogMatrix(t){return this.currentTransform.calculateFogMatrix(t)}getVisibleUnwrappedCoordinates(t){return this.currentTransform.getVisibleUnwrappedCoordinates(t)}getCameraFrustum(){return this.currentTransform.getCameraFrustum()}getClippingPlane(){return this.currentTransform.getClippingPlane()}getCoveringTilesDetailsProvider(){return this.currentTransform.getCoveringTilesDetailsProvider()}recalculateZoomAndCenter(t){this.currentTransform.recalculateZoomAndCenter(t)}maxPitchScaleFactor(){return this._mercatorTransform.maxPitchScaleFactor()}getCameraPoint(){return this._helper.getCameraPoint()}getCameraAltitude(){return this.currentTransform.getCameraAltitude()}getCameraLngLat(){return this.currentTransform.getCameraLngLat()}populateCache(t){this._mercatorTransform.populateCache(t),this._verticalPerspectiveTransform.populateCache(t)}getBounds(){return this.currentTransform.getBounds()}calculateCenterFromCameraLngLatAlt(t,r,i,n){return this._helper.calculateCenterFromCameraLngLatAlt(t,r,i,n)}calculateCameraOptionsFromTo(t,r,i,n){return this.currentTransform.calculateCameraOptionsFromTo(t,r,i,n)}setLocationAtPoint(t,r,i){this.currentTransform.setLocationAtPoint(t,r,i)}locationToScreenPoint(t,r){return this.currentTransform.locationToScreenPoint(t,r)}screenPointToMercatorCoordinate(t,r){return this.currentTransform.screenPointToMercatorCoordinate(t,r)}screenTerrainPointToMercatorCoordinate(t,r){return this.currentTransform.screenTerrainPointToMercatorCoordinate(t,r)}screenPointToLocation(t,r){return this.currentTransform.screenPointToLocation(t,r)}screenPointToLocationAtElevation(t,r){return this.currentTransform.screenPointToLocationAtElevation(t,r)}isPointOnMapSurface(t,r){return this.currentTransform.isPointOnMapSurface(t,r)}getRayDirectionFromPixel(t){return this._verticalPerspectiveTransform.getRayDirectionFromPixel(t)}getProjectionDataForCustomLayer(t=!0){let r=this._mercatorTransform.getProjectionDataForCustomLayer(t);if(!this.isGlobeRendering)return r;let i=this._verticalPerspectiveTransform.getProjectionDataForCustomLayer(t);return i.fallbackMatrix=r.mainMatrix,i.projectionTransition=this._globeness,i}getFastPathSimpleProjectionMatrix(t){return this.currentTransform.getFastPathSimpleProjectionMatrix(t)}},Ust=class Hm{get useGlobeControls(){return!0}handlePanInertia(t,r){let i=eMr(t,r);return Math.abs(i.lng-r.center.lng)>180&&(i.lng=r.center.lng+179.5*Math.sign(i.lng-r.center.lng)),{easingCenter:i,easingOffset:new tr(0,0)}}handleMapControlsRollPitchBearingZoom(t,r){let i=t.around,n=r.screenPointToLocation(i);t.bearingDelta&&r.setBearing(r.bearing+t.bearingDelta),t.pitchDelta&&r.setPitch(r.pitch+t.pitchDelta),t.rollDelta&&r.setRoll(r.roll+t.rollDelta);let a=r.zoom;t.zoomDelta&&r.setZoom(r.zoom+t.zoomDelta);let o=r.zoom-a;if(o===0)return;let s=e0(r.center.lng,n.lng),l=s/(Math.abs(s/180)+1),u=e0(r.center.lat,n.lat),c=r.getRayDirectionFromPixel(i),f=r.cameraPosition,h=su(f,c)*-1,p=So();G0(p,f,[c[0]*h,c[1]*h,c[2]*h]);let d=sp(p),v=d-1,m=Math.exp(-Math.max(v-.3,0)*.5),g=pC(d,.95,.999,0,1),w=oT(r.worldSize,r.center.lat)/Math.min(r.width,r.height),_=pC(w,.9,.5,1,.25),b=Math.min(m,c3(1,_,g)),S=(1-Of(-o))*b,x=r.center.lat,T=r.zoom,A=new pn(r.center.lng+l*S,Qn(r.center.lat+u*S,-Cv,Cv));r.setLocationAtPoint(n,i);let y=r.center,E=pC(Math.abs(s),45,85,0,1),M=Math.max(E,g)**.25,C=e0(y.lng,A.lng),k=e0(y.lat,A.lat);r.setCenter(new pn(y.lng+C*M,y.lat+k*M).wrap()),r.setZoom(T+Gc(x,r.center.lat))}handleMapControlsPan(t,r,i){t.panDelta&&XAr(r,i,r.isPointOnMapSurface(t.around)?t.around:r.centerPoint,t.panDelta)}cameraForBoxAndBearing(t,r,i,n,a){let o=Lst(t,r,i,n,a);if(!o)return;let s=r.left/a.width*2-1,l=(a.width-r.right)/a.width*2-1,u=r.top/a.height*-2+1,c=(a.height-r.bottom)/a.height*-2+1,f=e0(i.getWest(),i.getEast())<0,h=f?i.getEast():i.getWest(),p=f?i.getWest():i.getEast(),d=Math.max(i.getNorth(),i.getSouth()),v=Math.min(i.getNorth(),i.getSouth()),m=h+e0(h,p)*.5,g=d+e0(d,v)*.5,w=a.clone();w.setCenter(o.center),w.setBearing(o.bearing),w.setPitch(0),w.setRoll(0),w.setZoom(o.zoom);let _=w.modelViewProjectionMatrix,b=[dc(i.getNorthWest()),dc(i.getNorthEast()),dc(i.getSouthWest()),dc(i.getSouthEast()),dc(new pn(p,g)),dc(new pn(h,g)),dc(new pn(m,d)),dc(new pn(m,v))],S=dc(o.center),x=1/0;for(let T of b)s<0&&(x=Hm.getLesserNonNegativeNonNull(x,Hm.solveVectorScale(T,S,_,"x",s))),l>0&&(x=Hm.getLesserNonNegativeNonNull(x,Hm.solveVectorScale(T,S,_,"x",l))),u>0&&(x=Hm.getLesserNonNegativeNonNull(x,Hm.solveVectorScale(T,S,_,"y",u))),c<0&&(x=Hm.getLesserNonNegativeNonNull(x,Hm.solveVectorScale(T,S,_,"y",c)));if(!Number.isFinite(x)||x===0){Dst();return}return o.zoom=Math.min(w.zoom+Uc(x),t.maxZoom),o}handleJumpToCenterZoom(t,r){let i=t.center.lat,n=t.applyConstrain(r.center?pn.convert(r.center):t.center,t.zoom).center;t.setCenter(n.wrap());let a=r.zoom===void 0?t.zoom+Gc(i,n.lat):+r.zoom;t.zoom!==a&&t.setZoom(a)}handleEaseTo(t,r){let i=t.zoom,n=t.center,a=t.padding,o={roll:t.roll,pitch:t.pitch,bearing:t.bearing},s={roll:r.roll===void 0?t.roll:r.roll,pitch:r.pitch===void 0?t.pitch:r.pitch,bearing:r.bearing===void 0?t.bearing:r.bearing},l=r.zoom!==void 0,u=!t.isPaddingEqual(r.padding),c=!1,f=r.center?pn.convert(r.center):n,h=t.applyConstrain(f,i).center;Jq(t,h);let p=t.clone();p.setCenter(h),p.setZoom(l?+r.zoom:i+Gc(n.lat,f.lat)),p.setBearing(r.bearing);let d=new tr(Qn(t.centerPoint.x+r.offsetAsPoint.x,0,t.width),Qn(t.centerPoint.y+r.offsetAsPoint.y,0,t.height));p.setLocationAtPoint(h,d);let v=(r.offset&&r.offsetAsPoint.mag())>0?p.center:h,m=l?+r.zoom:i+Gc(n.lat,v.lat),g=i+Gc(n.lat,0),w=m+Gc(v.lat,0),_=e0(n.lng,v.lng),b=e0(n.lat,v.lat),S=Of(w-g);return c=m!==i,{easeFunc:x=>{if(hne(o,s)||Fst({startEulerAngles:o,endEulerAngles:s,tr:t,k:x,useSlerp:o.roll!=s.roll}),u&&t.interpolatePadding(a,r.padding,x),r.around)Fa("Easing around a point is not supported under globe projection."),t.setLocationAtPoint(r.around,r.aroundPoint);else{let T=x*(w>g?Math.min(2,S):Math.max(.5,S))**(1-x),A=got(n,_,b,T);t.setCenter(A.wrap())}if(c){let T=Ys.number(g,w,x)+Gc(0,t.center.lat);t.setZoom(T)}},isZooming:c,elevationCenter:v}}handleFlyTo(t,r){let i=r.zoom!==void 0,n=t.center,a=t.zoom,o=t.padding,s=!t.isPaddingEqual(r.padding),l=t.applyConstrain(pn.convert(r.center||r.locationAtOffset),a).center,u=i?+r.zoom:t.zoom+Gc(t.center.lat,l.lat),c=t.clone();c.setCenter(l),c.setZoom(u),c.setBearing(r.bearing);let f=new tr(Qn(t.centerPoint.x+r.offsetAsPoint.x,0,t.width),Qn(t.centerPoint.y+r.offsetAsPoint.y,0,t.height));c.setLocationAtPoint(l,f);let h=c.center;Jq(t,h);let p=HAr(t,n,h),d=a+Gc(n.lat,0),v=u+Gc(h.lat,0),m=Of(v-d),g=typeof r.minZoom=="number"?+r.minZoom:t.minZoom,w=Math.max(g,t.minZoom)+Gc(h.lat,0),_=Math.min(w,d,v)+Gc(0,h.lat),b=t.applyConstrain(h,_).zoom+Gc(h.lat,0),S=Of(b-d),x=e0(n.lng,h.lng),T=e0(n.lat,h.lat);return{easeFunc:(A,y,E,M)=>{let C=got(n,x,T,E);s&&t.interpolatePadding(o,r.padding,A);let k=A===1?h:C;t.setCenter(k.wrap());let D=d+Uc(y);t.setZoom(A===1?u:D+Gc(0,k.lat))},scaleOfZoom:m,targetCenter:h,scaleOfMinZoom:S,pixelPathLength:p}}static solveVectorScale(t,r,i,n,a){let o=a,s=n==="x"?[i[0],i[4],i[8],i[12]]:[i[1],i[5],i[9],i[13]],l=[i[3],i[7],i[11],i[15]],u=t[0]*s[0]+t[1]*s[1]+t[2]*s[2],c=t[0]*l[0]+t[1]*l[1]+t[2]*l[2],f=r[0]*s[0]+r[1]*s[1]+r[2]*s[2],h=r[0]*l[0]+r[1]*l[1]+r[2]*l[2],p=(f+s[3]-o*h-o*l[3])/(f-u-o*h+o*c);return f+o*c===u+o*h||l[3]*(u-f)+s[3]*(h-c)+u*h===f*c?null:p}static getLesserNonNegativeNonNull(t,r){return r!==null&&r>=0&&r{for(let a in this.tileManagers){let o=this.tileManagers[a].getSource().type;(o==="vector"||o==="geojson")&&this.tileManagers[a].reload()}},this.map=e,this.dispatcher=new Jot(poe(),e._getMapId()).setEventedParent(this),this.dispatcher.registerMessageHandler("GG",(a,o)=>this.getGlyphs(a,o)),this.dispatcher.registerMessageHandler("GI",(a,o)=>this.getImages(a,o)),this.dispatcher.registerMessageHandler("GDA",(a,o)=>this.getDashes(a,o)),this.imageManager=new H6r,this.imageManager.setEventedParent(this),this.imageManager.setMissingImageResolver(e._missingStyleImageResolver),this.patternAtlas=new j6r(this.imageManager);let r=((i=e._container)==null?void 0:i.lang)||typeof document<"u"&&((n=document.documentElement)==null?void 0:n.lang)||void 0;this.glyphManager=new eTr(e._requestManager,t.localIdeographFontFamily,r),this.lineAtlas=new aTr(256,512),this.crossTileSymbolIndex=new Tst,this._setInitialValues(),this._resetUpdates(),this.dispatcher.broadcast("SR",XB()),KC().on(Zae,this._rtlPluginLoaded),this.on("data",a=>{if(a.dataType!=="source"||a.sourceDataType!=="metadata")return;let o=this.tileManagers[a.sourceId];if(!o)return;let s=o.getSource();if(s!=null&&s.vectorLayerIds)for(let l in this._layers){let u=this._layers[l];u.source===s.id&&this._validateLayer(u)}})}_setInitialValues(){var e;this._layers={},this._order=[],this.tileManagers={},this.zoomHistory=new AB,this._imagesListDirty=!1,this._globalState={},this._serializedLayers={},this.stylesheet=null,this.light=null,this.sky=null,this.projection&&(this.projection.destroy(),delete this.projection),this._loaded=!1,this._changed=!1,this._updatedLayers={},this._updatedSources={},this._changedImages={},this._glyphsDidChange=!1,this._updatedPaintProps={},this._layerOrderChanged=!1,this._symbolPlacementTriggered=!1,this._placedProjectionTransition=void 0,this.crossTileSymbolIndex=new(((e=this.crossTileSymbolIndex)==null?void 0:e.constructor)||Object),this.pauseablePlacement=void 0,this.placement=void 0,this.z=0}setGlobalStateProperty(e,t){var i,n,a;this._checkLoaded();let r=t===null?(a=(n=(i=this.stylesheet.state)==null?void 0:i[e])==null?void 0:n.default)!=null?a:null:t;return this._setGlobalStateValues({[e]:r}),this}getGlobalState(){return this._globalState}setGlobalState(e){this._checkLoaded();let t={};for(let r in e)t[r]=e[r].default;this._setGlobalStateValues(t)}_setGlobalStateValues(e){let t=[];for(let i in e)Sv(e[i],this._globalState[i])||t.push(i);if(t.length===0)return;let r=dn({},this._globalState);for(let i of t)this._globalState[i]=e[i];this._applyGlobalStateChanges(t,r)}_applyGlobalStateChanges(e,t){var a,o;let r=new Set,i={};for(let s of e)i[s]=this._globalState[s];for(let s in this._layers){let l=this._layers[s];l.retainPriorGlobalState(e,t);let u=l.getLayoutAffectingGlobalStateRefs(),c=l.getPaintAffectingGlobalStateRefs(),f=l.getVisibilityAffectingGlobalStateRefs();for(let h of e){if(u.has(h)&&r.add(l.source),c.has(h))for(let{name:p,value:d}of c.get(h))this._updatePaintProperty(l,p,d,{validate:!1});f!=null&&f.has(h)&&(l.recalculateVisibility(),this._updateLayer(l))}}let n={now:zo(),transition:this.getTransition()};(a=this.light)==null||a.applyGlobalStateChange(e,t,n),(o=this.sky)==null||o.applyGlobalStateChange(e,t,n),this.dispatcher.broadcast("UGS",i);for(let s in this.tileManagers)r.has(s)&&(this._reloadSource(s),this._changed=!0)}loadURL(i){return Yi(this,arguments,function*(e,t={},r){this.fire(new cp("dataloading")),t.validate=typeof t.validate!="boolean"||t.validate,this._loadStyleRequest=new AbortController;let n=this._loadStyleRequest;try{let a=yield this.map._requestManager.transformRequest(e,"Style");YB(n.signal);let o=yield gC(a,n);this._loadStyleRequest===n&&(this._loadStyleRequest=null),this._load(o.data,t,r)}catch(a){this._loadStyleRequest===n&&(this._loadStyleRequest=null),a&&!n.signal.aborted&&this.fire(new An(qc(a)))}})}loadJSON(e,t={},r){this.fire(new cp("dataloading")),this._frameRequest=new AbortController,a0.frameAsync(this._frameRequest,this.map._ownerWindow).then(()=>{this._frameRequest=null,t.validate=t.validate!==!1,this._load(e,t,r)}).catch(()=>{})}loadEmpty(){this.fire(new cp("dataloading")),this._load(nMr,{validate:!1})}_load(e,t,r){var n,a,o;let i=t.transformStyle?t.transformStyle(r,e):e;if(!(t.validate&&Bne(this,i))){i=dn({},i),this._loaded=!0,this.stylesheet=i;for(let s in i.sources)this.addSource(s,i.sources[s],{validate:!1});i.sprite?this._loadSprite(i.sprite):this.imageManager.setLoaded(!0),this.glyphManager.setURL(i.glyphs),this.glyphManager.setFontFaces(i["font-faces"]),this._createLayers(),this.light=new rTr((n=this.stylesheet.light)!=null?n:{},this._globalState),this._setProjectionInternal(((a=this.stylesheet.projection)==null?void 0:a.type)||"mercator"),this.sky=new nTr(this.stylesheet.sky,this._globalState),this.sky.setEventedParent(this),this.map.setTerrain((o=this.stylesheet.terrain)!=null?o:null,{validate:!1}),this.fire(new cp("data")),this.fire(new $ae)}}_createLayers(){var t,r,i;let e=Pat(this.stylesheet.layers);this.setGlobalState((t=this.stylesheet.state)!=null?t:null),this.dispatcher.broadcast("SL",e),this._order=e.map(n=>n.id),this._layers={},this._serializedLayers=null;for(let n of e){let a=Sq(n,this._globalState);if(a.setEventedParent(this,{layer:{id:n.id}}),this._layers[n.id]=a,dq(a)&&this.tileManagers[a.source]){let o=(i=(r=n.paint)==null?void 0:r["raster-fade-duration"])!=null?i:a.paint.get("raster-fade-duration");this.tileManagers[a.source].setRasterFadeDuration(o)}}}_loadSprite(e,t=!1,r=void 0){return Yi(this,null,function*(){this.imageManager.setLoaded(!1);let i=new AbortController;this._spriteRequest=i;let n;try{let a=yield V6r(e,this.map._requestManager,this.map.getPixelRatio(),i);if(!a)return;for(let o in a){let{loaded:s,removed:l}=this.imageManager.setSpriteImages(o,a[o]);this._markImagesChanged(l),t&&this._markImagesChanged(s)}}catch(a){n=a,i.signal.aborted||this.fire(new An(n))}finally{this._spriteRequest=null,this.imageManager.setLoaded(!0),t&&(this._changed=!0),this.dispatcher.broadcast("SI",this.imageManager.listImages()),this.fire(new cp("data")),r==null||r(n)}})}_unloadSprite(){this._markImagesChanged(this.imageManager.removeAllSpriteImages()),this._imagesListDirty=!0,this._changed=!0,this.fire(new cp("data"))}_validateLayer(e){let t=this.tileManagers[e.source];if(!t)return;let r=e.sourceLayer;if(!r)return;let i=t.getSource();(i.type==="geojson"||i.vectorLayerIds&&!i.vectorLayerIds.includes(r))&&this.fire(new An(Error(`Source layer "${r}" does not exist on source "${i.id}" as specified by style layer "${e.id}".`)))}loaded(){if(!this._loaded||Object.keys(this._updatedSources).length)return!1;for(let e in this.tileManagers)if(!this.tileManagers[e].loaded())return!1;return this.imageManager.isLoaded()}_serializeByIds(e,t=!1){let r=this._serializedAllLayers();if(!e||e.length===0)return Object.values(t?hh(r):r);let i=[];for(let n of e)if(r[n]){let a=t?hh(r[n]):r[n];i.push(a)}return i}_serializedAllLayers(){let e=this._serializedLayers;if(e)return e;e=this._serializedLayers={};let t=Object.keys(this._layers);for(let r of t){let i=this._layers[r];i.type!=="custom"&&(e[r]=i.serialize())}return e}hasTransitions(){var e,t,r;if((e=this.light)!=null&&e.hasTransition()||(t=this.sky)!=null&&t.hasTransition()||(r=this.projection)!=null&&r.hasTransition())return!0;for(let i in this.tileManagers)if(this.tileManagers[i].hasTransition())return!0;for(let i in this._layers)if(this._layers[i].hasTransition())return!0;return!1}_checkLoaded(){if(!this._loaded)throw Error("Style is not done loading.")}update(e){if(!this._loaded)return;let t=this._changed;if(t){this._imagesListDirty&&(this._imagesListDirty=(this.dispatcher.broadcast("SI",this.imageManager.listImages()),!1));let n=Object.keys(this._updatedLayers),a=Object.keys(this._removedLayers);(n.length||a.length)&&this._updateWorkerLayers(n,a);for(let o in this._updatedSources){let s=this._updatedSources[o];if(s==="reload")this._reloadSource(o);else if(s==="clear")this._clearSource(o);else throw Error(`Invalid action ${s}`)}this._updateTilesForChangedImages(),this._updateTilesForChangedGlyphs();for(let o in this._updatedPaintProps)this._layers[o].updateTransitions(e);this._resetUpdates()}let r={};for(let n in this.tileManagers){let a=this.tileManagers[n];r[n]=a.used,a.used=!1}let i=this.imageManager.listImages();for(let n of this._order){let a=this._layers[n];a.recalculate(e,i),!a.isHidden(e.zoom)&&a.source&&(this.tileManagers[a.source].used=!0)}for(let n in r){let a=this.tileManagers[n];!!r[n]!=!!a.used&&a.fire(new qs("data",{sourceDataType:"visibility",sourceId:n}))}this.light.recalculate(e),this.sky.recalculate(e),this.projection.recalculate(e),this.z=e.zoom,t&&this.fire(new cp("data"))}_updateTilesForChangedImages(){let e=Object.keys(this._changedImages);if(e.length){for(let t in this.tileManagers)this.tileManagers[t].reloadTilesForDependencies(["icons","patterns"],e);this._changedImages={}}}_updateTilesForChangedGlyphs(){if(this._glyphsDidChange){for(let e in this.tileManagers)this.tileManagers[e].reloadTilesForDependencies(["glyphs"],[""]);this._glyphsDidChange=!1}}_updateWorkerLayers(e,t){this.dispatcher.broadcast("UL",{layers:this._serializeByIds(e,!1),removedIds:t})}_resetUpdates(){this._changed=!1,this._updatedLayers={},this._removedLayers={},this._updatedSources={},this._updatedPaintProps={},this._changedImages={},this._glyphsDidChange=!1}setState(e,t={}){var a;this._checkLoaded();let r=this.serialize();if(e=t.transformStyle?t.transformStyle(r,e):e,((a=t.validate)!=null?a:!0)&&Bne(this,e))return!1;e=hh(e),e.layers=Pat(e.layers);let i=N6r(r,e),n=this._getOperationsToPerform(i);if(n.unimplemented.length>0)throw Error(`Unimplemented: ${n.unimplemented.join(", ")}.`);if(n.operations.length===0)return!1;for(let o of n.operations)o();return this.stylesheet=e,this._serializedLayers=null,this.fire(new $ae({style:this})),!0}_getOperationsToPerform(e){let t=[],r=[];for(let i of e)switch(i.command){case"setCenter":case"setZoom":case"setBearing":case"setPitch":case"setRoll":continue;case"addLayer":{let[n,a]=i.args;t.push(()=>this.addLayer(n,a));break}case"removeLayer":{let[n]=i.args;t.push(()=>this.removeLayer(n));break}case"setPaintProperty":{let[n,a,o]=i.args;t.push(()=>this.setPaintProperty(n,a,o));break}case"setLayoutProperty":{let[n,a,o]=i.args;t.push(()=>this.setLayoutProperty(n,a,o));break}case"setFilter":{let[n,a]=i.args;t.push(()=>this.setFilter(n,a));break}case"addSource":{let[n,a]=i.args;t.push(()=>this.addSource(n,a));break}case"removeSource":{let[n]=i.args;t.push(()=>this.removeSource(n));break}case"setLayerZoomRange":{let[n,a,o]=i.args;t.push(()=>this.setLayerZoomRange(n,a,o));break}case"setLight":{let[n]=i.args;t.push(()=>this.setLight(n));break}case"setGeoJSONSourceData":{let[n,a]=i.args;t.push(()=>this.setGeoJSONSourceData(n,a));break}case"setGlyphs":{let[n]=i.args;t.push(()=>this.setGlyphs(n));break}case"setFontFaces":{let[n]=i.args;t.push(()=>this.setFontFaces(n));break}case"setSprite":{let[n]=i.args;t.push(()=>this.setSprite(n));break}case"setTerrain":{let[n]=i.args;t.push(()=>this.map.setTerrain(n));break}case"setSky":{let[n]=i.args;t.push(()=>this.setSky(n));break}case"setProjection":{let[n]=i.args;t.push(()=>this.setProjection(n));break}case"setGlobalState":{let[n]=i.args;t.push(()=>this.setGlobalState(n));break}case"setTransition":t.push(()=>{});break;default:r.push(i.command)}return{operations:t,unimplemented:r}}addImage(e,t){if(this.getImage(e)){this.fire(new An(Error(`An image named "${e}" already exists.`)));return}this.imageManager.addImage(e,t),this._afterImageUpdated(e)}updateImage(e,t){this.imageManager.updateImage(e,t)}getImage(e){return this.imageManager.getImage(e)}setMissingImageResolver(e){this.imageManager.setMissingImageResolver(e)}removeImage(e){if(!this.getImage(e)){this.fire(new An(Error(`An image named "${e}" does not exist.`)));return}this.imageManager.removeImage(e),this._afterImageUpdated(e)}_markImagesChanged(e){for(let t of e)this._changedImages[t]=!0}_afterImageUpdated(e){this._changedImages[e]=!0,this._imagesListDirty=!0,this._changed=!0,this.fire(new cp("data"))}listImages(){return this._checkLoaded(),this.imageManager.listImages()}addSource(e,t,r={}){var n;if(this._checkLoaded(),this.tileManagers[e]!==void 0)throw Error(`Source "${e}" already exists.`);if(!t.type)throw Error(`The type property must be defined, but only the following properties were given: ${Object.keys(t).join(", ")}.`);if(zne.has(t.type)&&this._validate(ph.source,`sources.${e}`,t,null,r))return;(n=this.map)!=null&&n._collectResourceTiming&&(t.collectResourceTiming=!0);let i=this.tileManagers[e]=new Jae(e,t,this.dispatcher);i.style=this,i.setEventedParent(this,()=>({isSourceLoaded:i.loaded(),source:i.serialize(),sourceId:e})),i.onAdd(this.map),this._changed=!0}removeSource(e){if(this._checkLoaded(),this.tileManagers[e]===void 0)throw Error(`There is no source with this ID=${e}`);for(let r in this._layers)if(this._layers[r].source===e)return this.fire(new An(Error(`Source "${e}" cannot be removed while layer "${r}" is using it.`)));let t=this.tileManagers[e];delete this.tileManagers[e],delete this._updatedSources[e],t.fire(new qs("data",{sourceDataType:"metadata",sourceId:e})),t.setEventedParent(null),t.onRemove(this.map),this._changed=!0}setGeoJSONSourceData(e,t){if(this._checkLoaded(),this.tileManagers[e]===void 0)throw Error(`There is no source with this ID=${e}`);let r=this.tileManagers[e].getSource();if(r.type!=="geojson")throw Error(`geojsonSource.type is ${r.type}, which is !== 'geojson`);r.setData(t),this._changed=!0}getSource(e){var t;return(t=this.tileManagers[e])==null?void 0:t.getSource()}addLayer(e,t,r={}){this._checkLoaded();let i=e.id;if(this.getLayer(i)){this.fire(new An(Error(`Layer "${i}" already exists on this map.`)));return}let n;if(e.type==="custom"){if(cq(this,Knt(e)))return;n=Sq(e,this._globalState)}else{if("source"in e&&typeof e.source=="object"&&(this.addSource(i,e.source),e=hh(e),e=cn(e,{source:i})),this._validate(ph.layer,`layers.${i}`,e,{arrayIndex:-1},r))return;n=Sq(e,this._globalState),this._validateLayer(n),n.setEventedParent(this,{layer:{id:i}})}let a=t?this._order.indexOf(t):this._order.length;if(t&&a===-1){this.fire(new An(Error(`Cannot add layer "${i}" before non-existing layer "${t}".`)));return}if(this._order.splice(a,0,i),this._layerOrderChanged=!0,this._layers[i]=n,this._removedLayers[i]&&n.source&&n.type!=="custom"){let o=this._removedLayers[i];delete this._removedLayers[i],o.type===n.type?(this._updatedSources[n.source]="reload",this.tileManagers[n.source].pause()):this._updatedSources[n.source]="clear"}this._updateLayer(n),n.onAdd&&n.onAdd(this.map)}moveLayer(e,t){if(this._checkLoaded(),this._changed=!0,!this._layers[e]){this.fire(new An(Error(`The layer '${e}' does not exist in the map's style and cannot be moved.`)));return}if(e===t)return;if(t&&!this._order.includes(t)){this.fire(new An(Error(`Cannot move layer "${e}" before non-existing layer "${t}".`)));return}let r=this._order.indexOf(e);this._order.splice(r,1);let i=t?this._order.indexOf(t):this._order.length;this._order.splice(i,0,e),this._layerOrderChanged=!0}removeLayer(e){var i;this._checkLoaded();let t=this._layers[e];if(!t){this.fire(new An(Error(`Cannot remove non-existing layer "${e}".`)));return}t.setEventedParent(null);let r=this._order.indexOf(e);this._order.splice(r,1),this._layerOrderChanged=!0,this._changed=!0,this._removedLayers[e]=t,delete this._layers[e],this._serializedLayers&&delete this._serializedLayers[e],delete this._updatedLayers[e],delete this._updatedPaintProps[e],t.type==="symbol"&&t.source&&((i=this.tileManagers[t.source])==null||i.resetMaxContentElevation()),t.onRemove&&t.onRemove(this.map)}getLayer(e){return this._layers[e]}getLayersOrder(){return[...this._order]}hasLayer(e){return e in this._layers}setLayerZoomRange(e,t,r){this._checkLoaded();let i=this.getLayer(e);if(!i){this.fire(new An(Error(`Cannot set the zoom range of non-existing layer "${e}".`)));return}(i.minzoom!==t||i.maxzoom!==r)&&(t!=null&&(i.minzoom=t),r!=null&&(i.maxzoom=r),this._updateLayer(i))}setFilter(e,t,r={}){this._checkLoaded();let i=this.getLayer(e);if(!i){this.fire(new An(Error(`Cannot filter non-existing layer "${e}".`)));return}if(!Sv(i.filter,t)){if(t==null){i.setFilter(void 0),this._updateLayer(i);return}this._validate(ph.filter,`layers.${i.id}.filter`,t,null,r)||(i.setFilter(hh(t)),this._updateLayer(i))}}getFilter(e){return hh(this.getLayer(e).filter)}setLayoutProperty(e,t,r,i={}){this._checkLoaded();let n=this.getLayer(e);if(!n){this.fire(new An(Error(`Cannot style non-existing layer "${e}".`)));return}Sv(n.getLayoutProperty(t),r)||(n.setLayoutProperty(t,r,i),this._updateLayer(n))}getLayoutProperty(e,t){let r=this.getLayer(e);if(!r){this.fire(new An(Error(`Cannot get style of non-existing layer "${e}".`)));return}return r.getLayoutProperty(t)}setPaintProperty(e,t,r,i={}){this._checkLoaded();let n=this.getLayer(e);if(!n){this.fire(new An(Error(`Cannot style non-existing layer "${e}".`)));return}Sv(n.getPaintProperty(t),r)||this._updatePaintProperty(n,t,r,i)}_updatePaintProperty(e,t,r,i={}){e.setPaintProperty(t,r,i)&&this._updateLayer(e),dq(e)&&t==="raster-fade-duration"&&this.tileManagers[e.source].setRasterFadeDuration(r),this._changed=!0,this._updatedPaintProps[e.id]=!0,e.type==="symbol"&&this.triggerSymbolPlacement(),this._serializedLayers=null}getPaintProperty(e,t){return this.getLayer(e).getPaintProperty(t)}setFeatureState(e,t){this._checkLoaded();let r=e.source,i=e.sourceLayer,n=this.tileManagers[r];if(n===void 0){this.fire(new An(Error(`The source '${r}' does not exist in the map's style.`)));return}let a=n.getSource().type;if(a==="geojson"&&i){this.fire(new An(Error("GeoJSON sources cannot have a sourceLayer parameter.")));return}if(a==="vector"&&!i){this.fire(new An(Error("The sourceLayer parameter must be provided for vector source types.")));return}if(e.id===void 0){this.fire(new An(Error("The feature id parameter must be provided.")));return}let o=["__proto__","constructor","prototype"];if(t&&Object.keys(t).some(s=>o.includes(s))){this.fire(new An(Error(`The feature state should not include one of the following keys: ${o}`)));return}n.setFeatureState(i,e.id,t)}removeFeatureState(e,t){this._checkLoaded();let r=e.source,i=this.tileManagers[r];if(i===void 0){this.fire(new An(Error(`The source '${r}' does not exist in the map's style.`)));return}let n=i.getSource().type,a=n==="vector"?e.sourceLayer:void 0;if(n==="vector"&&!a){this.fire(new An(Error("The sourceLayer parameter must be provided for vector source types.")));return}if(t&&typeof e.id!="string"&&typeof e.id!="number"){this.fire(new An(Error("A feature id is required to remove its specific state property.")));return}i.removeFeatureState(a,e.id,t)}getFeatureState(e){this._checkLoaded();let t=e.source,r=e.sourceLayer,i=this.tileManagers[t];if(i===void 0){this.fire(new An(Error(`The source '${t}' does not exist in the map's style.`)));return}if(i.getSource().type==="vector"&&!r){this.fire(new An(Error("The sourceLayer parameter must be provided for vector source types.")));return}return e.id===void 0&&this.fire(new An(Error("The feature id parameter must be provided."))),i.getFeatureState(r,e.id)}getTransition(){var e;return cn({duration:300,delay:0},(e=this.stylesheet)==null?void 0:e.transition)}serialize(){if(!this._loaded)return;let e=WB(this.tileManagers,n=>n.serialize()),t=this._serializeByIds(this._order,!0),r=this.map.getTerrain()||void 0,i=this.stylesheet;return fne({version:i.version,name:i.name,metadata:i.metadata,light:i.light,sky:i.sky,center:i.center,zoom:i.zoom,bearing:i.bearing,pitch:i.pitch,sprite:i.sprite,glyphs:i.glyphs,"font-faces":i["font-faces"],transition:i.transition,projection:i.projection,state:i.state,sources:e,layers:t,terrain:r},n=>n!==void 0)}_updateLayer(e){this._updatedLayers[e.id]=!0,e.source&&!this._updatedSources[e.source]&&this.tileManagers[e.source].getSource().type!=="raster"&&(this._updatedSources[e.source]="reload",this.tileManagers[e.source].pause()),this._serializedLayers=null,this._changed=!0}_flattenAndSortRenderedFeatures(e){let t=a=>this._layers[a].type==="fill-extrusion",r={},i=[];for(let a=this._order.length-1;a>=0;a--){let o=this._order[a];if(t(o)){r[o]=a;for(let s of e){let l=s[o];if(l)for(let u of l)i.push(u)}}}i.sort((a,o)=>o.intersectionZ-a.intersectionZ);let n=[];for(let a=this._order.length-1;a>=0;a--){let o=this._order[a];if(t(o))for(let s=i.length-1;s>=0;s--){let l=i[s].feature;if(r[l.layer.id]this.map.terrain.getElevation(u,c,f):void 0));return this.placement&&n.push(mTr(this._layers,a,this.tileManagers,e,s,this.placement.collisionIndex,this.placement.retainedQueryData)),this._flattenAndSortRenderedFeatures(n)}querySourceFeatures(e,t){t!=null&&t.filter&&this._validate(ph.filter,"querySourceFeatures.filter",t.filter,null,t);let r=this.tileManagers[e];return r?yTr(r,t?_a(dn({},t),{globalState:this._globalState}):{globalState:this._globalState}):[]}getLight(){return this.light.getLight()}setLight(e,t={}){this._checkLoaded();let r=this.light.getLight(),i=!1;for(let a in e)if(!Sv(e[a],r[a])){i=!0;break}if(!i)return;let n={now:zo(),transition:cn({duration:300,delay:0},this.stylesheet.transition)};this.light.setLight(e,t),this.light.updateTransitions(n)}getProjection(){var e;return(e=this.stylesheet)==null?void 0:e.projection}setProjection(e){this._checkLoaded();let t=e!=null?e:{type:"mercator"};if(this.stylesheet.projection=e,this.projection){if(this.projection.name===t.type)return;this.projection.destroy(),delete this.projection}this._setProjectionInternal(t.type)}getSky(){var e;return(e=this.stylesheet)==null?void 0:e.sky}setSky(e,t={}){this._checkLoaded();let r=this.getSky(),i=!1;if(!e&&!r)return;if(e&&!r)i=!0;else if(!e&&r)i=!0;else for(let a in e)if(!Sv(e[a],r[a])){i=!0;break}if(!i)return;let n={now:zo(),transition:cn({duration:300,delay:0},this.stylesheet.transition)};this.sky.setSky(e,t)&&(this.stylesheet.sky=e,this.sky.updateTransitions(n))}_setProjectionInternal(e){var r;let t=iMr(e,(r=this.map._camera)==null?void 0:r.transform.constrainOverride,this._globalState);this.projection=t.projection,this.map.migrateProjection(t.transform,t.cameraHelper);for(let i in this.tileManagers)this.tileManagers[i].reload()}_validate(e,t,r,i,n={}){return n.validate!==!1&&Z6(this,e,dn({key:t,style:this.serialize(),value:r},i),n)}_remove(e=!0){this._frameRequest&&(this._frameRequest=(this._frameRequest.abort(),null)),this._loadStyleRequest&&(this._loadStyleRequest=(this._loadStyleRequest.abort(),null)),this._spriteRequest&&(this._spriteRequest=(this._spriteRequest.abort(),null)),KC().off(Zae,this._rtlPluginLoaded);for(let t in this._layers)this._layers[t].setEventedParent(null);for(let t in this.tileManagers){let r=this.tileManagers[t];r.setEventedParent(null),r.onRemove(this.map)}this.imageManager.setEventedParent(null),this.setEventedParent(null),e&&this.dispatcher.broadcast("RM",void 0),this.dispatcher.remove(e)}_clearSource(e){this.tileManagers[e].clearTiles()}_reloadSource(e){this.tileManagers[e].resume(),this.tileManagers[e].reload()}_updateSources(e){for(let t in this.tileManagers)this.tileManagers[t].update(e,this.map.terrain)}_generateCollisionBoxes(){for(let e in this.tileManagers)this._reloadSource(e)}triggerSymbolPlacement(){this._symbolPlacementTriggered=!0}_placementInputsChanged(e,t,r){var n;let i=this.pauseablePlacement;return!i||this._symbolPlacementTriggered||this._placedProjectionTransition!==((n=this.projection)==null?void 0:n.transitionState)||i._showCollisionBoxes!==t||i.placement.collisionGroups.crossSourceCollisions!==r||i.placement.transform.renderWorldCopies!==e.renderWorldCopies||!wtt(i.placement.transform.modelViewProjectionMatrix,e.modelViewProjectionMatrix)}_updatePlacement(e,t,r,i,n=!1){var c,f;let a=!1,o=!1,s={};for(let h of this._order){let p=this._layers[h];if(p.type!=="symbol")continue;if(!s[p.source]){let v=this.tileManagers[p.source];s[p.source]=v.getRenderableIds(!0).map(m=>v.getTileByID(m)).sort((m,g)=>g.tileID.overscaledZ-m.tileID.overscaledZ||(m.tileID.isLessThan(g.tileID)?-1:1))}let d=this.crossTileSymbolIndex.addLayer(p,s[p.source],e.center.lng);a||(a=d)}this.crossTileSymbolIndex.pruneUnusedLayers(this._order),n||(n=this._layerOrderChanged||r===0);let l=a||this._placementInputsChanged(e,t,i),u=((c=this.pauseablePlacement)==null?void 0:c.isDone())&&!this.placement.stillRecent(zo(),e.zoom);if((n||!this.pauseablePlacement||u&&(l||this.placement.stale))&&(this._symbolPlacementTriggered=!1,this._placedProjectionTransition=(f=this.projection)==null?void 0:f.transitionState,this.pauseablePlacement=new SAr(e,this.map.terrain,this._order,n,t,r,i,this.placement),this._layerOrderChanged=!1),this.pauseablePlacement.isDone()?l&&this.placement.setStale():(this.pauseablePlacement.continuePlacement(this._order,this._layers,s),this.pauseablePlacement.isDone()&&(this.placement=this.pauseablePlacement.commit(zo()),o=!0),a&&this.pauseablePlacement.placement.setStale()),o||a)for(let h of this._order){let p=this._layers[h];p.type==="symbol"&&this.placement.updateLayerOpacities(p,s[p.source])}return!this.pauseablePlacement.isDone()||this.placement.hasTransitions(zo())}_releaseSymbolFadeTiles(){for(let e in this.tileManagers)this.tileManagers[e].releaseSymbolFadeTiles()}getImages(e,t){return Yi(this,null,function*(){let r=yield this.imageManager.getImages(t.icons);this._updateTilesForChangedImages();let i=this.tileManagers[t.source];return i&&i.setDependencies(t.tileID.key,t.type,t.icons),r})}getGlyphs(e,t){return Yi(this,null,function*(){let r=yield this.glyphManager.getGlyphs(t.stacks),i=this.tileManagers[t.source];return i&&i.setDependencies(t.tileID.key,t.type,[""]),r})}getGlyphsUrl(){return this.stylesheet.glyphs||null}setGlyphs(e,t={}){this._checkLoaded(),!(e&&this._validate(ph.glyphs,"glyphs",e,null,t))&&(this._changed=!0,this._glyphsDidChange=!0,this.stylesheet.glyphs=e,this.glyphManager.entries={},this.glyphManager.setURL(e))}getFontFaces(){return this.stylesheet["font-faces"]||null}setFontFaces(e){this._checkLoaded(),this._changed=!0,this._glyphsDidChange=!0,this.stylesheet["font-faces"]=e,this.glyphManager.setFontFaces(e)}getDashes(e,t){return Yi(this,null,function*(){let r={};for(let[i,n]of Object.entries(t.dashes))r[i]=this.lineAtlas.getDash(n.dasharray,n.round);return r})}addSprite(e,t,r={},i){this._checkLoaded();let n=[{id:e,url:t}],a=[...jq(this.stylesheet.sprite),...n];this._validate(ph.sprite,"sprite",a,null,r)||(this.stylesheet.sprite=a,this._loadSprite(n,!0,i))}removeSprite(e){this._checkLoaded();let t=jq(this.stylesheet.sprite);if(!t.find(i=>i.id===e)){this.fire(new An(Error(`Sprite "${e}" doesn't exists on this map.`)));return}let r=this.imageManager.removeSpriteImages(e);this._markImagesChanged(r),t.splice(t.findIndex(i=>i.id===e),1),this.stylesheet.sprite=t.length>0?t:void 0,this._imagesListDirty=!0,this._changed=!0,this.fire(new cp("data"))}getSprite(){return jq(this.stylesheet.sprite)}setSprite(e,t={},r){this._checkLoaded(),!(e&&this._validate(ph.sprite,"sprite",e,null,t))&&(this.stylesheet.sprite=e,e?this._loadSprite(e,!0,r):(this._unloadSprite(),r&&r(null)))}destroy(){this._frameRequest&&(this._frameRequest=(this._frameRequest.abort(),null)),this._loadStyleRequest&&(this._loadStyleRequest=(this._loadStyleRequest.abort(),null)),this._spriteRequest&&(this._spriteRequest=(this._spriteRequest.abort(),null));for(let e in this.tileManagers){let t=this.tileManagers[e];t.setEventedParent(null),t.onRemove(this.map)}this.tileManagers={},this.imageManager&&(this.imageManager.setEventedParent(null),this.imageManager.destroy(),this.patternAtlas.destroy()),this.glyphManager&&this.glyphManager.destroy();for(let e in this._layers){let t=this._layers[e];t.setEventedParent(null),t.onRemove&&t.onRemove(this.map)}this._setInitialValues(),this.setEventedParent(null),this.dispatcher.unregisterMessageHandler("GG"),this.dispatcher.unregisterMessageHandler("GI"),this.dispatcher.unregisterMessageHandler("GDA"),this.dispatcher.remove(!0),this._listeners={},this._oneTimeListeners={}}},aMr=ll([{name:"a_pos",type:"Int16",components:2},{name:"a_texture_pos",type:"Int16",components:2}]),oMr=class{constructor(){this.boundProgram=null,this.boundLayoutVertexBuffer=null,this.boundPaintVertexBuffers=[],this.boundIndexBuffer=null,this.boundVertexOffset=null,this.boundDynamicVertexBuffer=null,this.vao=null}bind(e,t,r,i,n,a,o,s,l){this.context=e;let u=this.boundPaintVertexBuffers.length!==i.length;for(let c=0;!u&&c({u_depth:new Mn(e,t.u_depth),u_terrain:new Mn(e,t.u_terrain)}),lMr=(e,t)=>({u_texture:new Mn(e,t.u_texture),u_ele_delta:new Oi(e,t.u_ele_delta),u_fog_matrix:new lp(e,t.u_fog_matrix),u_fog_color:new Vm(e,t.u_fog_color),u_fog_ground_blend:new Oi(e,t.u_fog_ground_blend),u_fog_ground_blend_opacity:new Oi(e,t.u_fog_ground_blend_opacity),u_horizon_color:new Vm(e,t.u_horizon_color),u_horizon_fog_blend:new Oi(e,t.u_horizon_fog_blend),u_is_globe_mode:new Oi(e,t.u_is_globe_mode)}),uMr=(e,t)=>({u_ele_delta:new Oi(e,t.u_ele_delta)}),cMr=(e,t,r,i,n)=>({u_texture:0,u_ele_delta:e,u_fog_matrix:t,u_fog_color:r?r.properties.get("fog-color"):na.white,u_fog_ground_blend:r?r.properties.get("fog-ground-blend"):1,u_fog_ground_blend_opacity:n?0:r?r.calculateFogBlendOpacity(i):0,u_horizon_color:r?r.properties.get("horizon-color"):na.white,u_horizon_fog_blend:r?r.properties.get("horizon-fog-blend"):1,u_is_globe_mode:+!!n}),fMr=e=>({u_ele_delta:e}),aO={ProjectionUBO:0,TerrainUBO:1,FrameUBO:2};dMr={float:[1,1],int:[1,1],vec2:[2,2],vec4:[4,4],mat4:[16,4]};Eoe=class{constructor(e,t,r){this.context=e,this.binding=t,this.contentWords=r.contentWords;let i=e.gl;this.buffer=i.createBuffer(),i.bindBuffer(i.UNIFORM_BUFFER,this.buffer),i.bufferData(i.UNIFORM_BUFFER,r.sizeWords*4,i.DYNAMIC_DRAW),this.uploaded=new Float32Array(r.sizeWords),this.pending=new Float32Array(r.sizeWords),this.uploadedWords=new Uint32Array(this.uploaded.buffer),this.pendingWords=new Uint32Array(this.pending.buffer),this.hasData=!1}upload(){let e=this.context.gl,t=!this.hasData;if(!t){let r=this.pendingWords,i=this.uploadedWords;for(let n=0;n=0&&(this.attributes[y]={location:E,isInteger:A.has(y)})}u.deleteShader(x),u.deleteShader(S);for(let y of g)if(y&&!T[y]){let E=u.getUniformLocation(this.program,y);E&&(T[y]=E)}this.fixedUniforms=i(e,T),this.terrainUniforms=sMr(e,T),this.binderUniforms=r?r.getUniforms(e,T):[]}draw(e,t,r,i,n,a,o,s,l,u,c,f,h,p,d,v,m,g,w){var S;let _=e.gl;if(this.failedToCreate)return;if(e.program.set(this.program),e.terrainUniformBuffer.bind(),e.frameUniformBuffer.bind(),e.setDepthMode(r),e.setStencilMode(i),e.setColorMode(n),e.setCullFace(a),s){e.activeTexture.set(_.TEXTURE2),_.bindTexture(_.TEXTURE_2D,s.depthTexture),e.activeTexture.set(_.TEXTURE3),_.bindTexture(_.TEXTURE_2D,s.texture);for(let x in this.terrainUniforms)this.terrainUniforms[x].set(s[x]);yMr(e.terrainUniformBuffer,s)}if(pMr(e,l),o)for(let x in this.fixedUniforms)this.fixedUniforms[x].set(o[x]);v&&v.setUniforms(e,this.binderUniforms,p,{zoom:d});let b=0;switch(t){case _.LINES:b=2;break;case _.TRIANGLES:b=3;break;case _.LINE_STRIP:b=1}for(let x of h.get())x.vaos||(x.vaos={}),(S=x.vaos)[u]||(S[u]=new oMr),x.vaos[u].bind(e,this,c,v?v.getPaintVertexBuffers():[],f,x.vertexOffset,m,g,w),_.drawElements(t,x.primitiveLength*b,_.UNSIGNED_SHORT,x.primitiveOffset*b*2)}};wMr=(e,t)=>({u_lightpos:new Nf(e,t.u_lightpos),u_lightpos_globe:new Nf(e,t.u_lightpos_globe),u_lightintensity:new Oi(e,t.u_lightintensity),u_lightcolor:new Nf(e,t.u_lightcolor),u_vertical_gradient:new Oi(e,t.u_vertical_gradient),u_opacity:new Oi(e,t.u_opacity),u_fill_translate:new ya(e,t.u_fill_translate)}),TMr=(e,t)=>({u_lightpos:new Nf(e,t.u_lightpos),u_lightpos_globe:new Nf(e,t.u_lightpos_globe),u_lightintensity:new Oi(e,t.u_lightintensity),u_lightcolor:new Nf(e,t.u_lightcolor),u_vertical_gradient:new Oi(e,t.u_vertical_gradient),u_height_factor:new Oi(e,t.u_height_factor),u_opacity:new Oi(e,t.u_opacity),u_fill_translate:new ya(e,t.u_fill_translate),u_image:new Mn(e,t.u_image),u_texsize:new ya(e,t.u_texsize),u_pixel_coord_upper:new ya(e,t.u_pixel_coord_upper),u_pixel_coord_lower:new ya(e,t.u_pixel_coord_lower),u_scale:new Nf(e,t.u_scale),u_fade:new Oi(e,t.u_fade)}),$st=(e,t,r,i)=>{let n=e.style.light,a=n.getCartesianPosition(),o=ine();n.properties.get("anchor")==="viewport"&&xtt(o,e.transform.bearingInRadians),ktt(a,a,o);let s=e.transform.transformLightDirection(a),l=n.properties.get("color");return{u_lightpos:a,u_lightpos_globe:s,u_lightintensity:n.properties.get("intensity"),u_lightcolor:[l.r,l.g,l.b],u_vertical_gradient:+t,u_opacity:r,u_fill_translate:i}},AMr=(e,t,r,i,n,a,o)=>cn($st(e,t,r,i),jst(a,e,o),{u_height_factor:-(2**n.overscaledZ)/o.tileSize/8}),MMr=(e,t)=>({u_fill_translate:new ya(e,t.u_fill_translate)}),SMr=(e,t)=>({u_image:new Mn(e,t.u_image),u_texsize:new ya(e,t.u_texsize),u_pixel_coord_upper:new ya(e,t.u_pixel_coord_upper),u_pixel_coord_lower:new ya(e,t.u_pixel_coord_lower),u_scale:new Nf(e,t.u_scale),u_fade:new Oi(e,t.u_fade),u_sdf_pattern:new Mn(e,t.u_sdf_pattern),u_fill_translate:new ya(e,t.u_fill_translate)}),EMr=(e,t)=>({u_fill_translate:new ya(e,t.u_fill_translate)}),kMr=(e,t)=>({u_image:new Mn(e,t.u_image),u_texsize:new ya(e,t.u_texsize),u_pixel_coord_upper:new ya(e,t.u_pixel_coord_upper),u_pixel_coord_lower:new ya(e,t.u_pixel_coord_lower),u_scale:new Nf(e,t.u_scale),u_fade:new Oi(e,t.u_fade),u_sdf_pattern:new Mn(e,t.u_sdf_pattern),u_fill_translate:new ya(e,t.u_fill_translate)}),Wst=(e,t,r,i,n)=>cn(jst(t,e,r),{u_fill_translate:i,u_sdf_pattern:+!!n}),CMr=e=>({u_fill_translate:e}),DMr=e=>({u_fill_translate:e}),FMr=(e,t,r,i,n)=>Wst(e,t,r,i,n),LMr=(e,t)=>({u_scale_with_map:new Mn(e,t.u_scale_with_map),u_pitch_with_map:new Mn(e,t.u_pitch_with_map),u_extrude_scale:new ya(e,t.u_extrude_scale),u_globe_extrude_scale:new Oi(e,t.u_globe_extrude_scale),u_translate:new ya(e,t.u_translate)}),PMr=(e,t,r,i,n)=>{let a=e.transform,o,s,l=0;if(r.paint.get("circle-pitch-alignment")==="map"){let u=Qh(t,1,a.zoom);o=!0,s=[u,u],l=u/(Br*2**t.tileID.overscaledZ)*2*Math.PI*n}else o=!1,s=a.pixelsToGLUnits;return{u_scale_with_map:+(r.paint.get("circle-pitch-scale")==="map"),u_pitch_with_map:+o,u_extrude_scale:s,u_globe_extrude_scale:l,u_translate:i}},IMr=(e,t)=>({u_color:new Vm(e,t.u_color),u_overlay:new Mn(e,t.u_overlay),u_overlay_scale:new Oi(e,t.u_overlay_scale)}),Mot=(e,t=1)=>({u_color:e,u_overlay:0,u_overlay_scale:t}),RMr=(e,t)=>({u_extrude_scale:new Oi(e,t.u_extrude_scale),u_intensity:new Oi(e,t.u_intensity),u_globe_extrude_scale:new Oi(e,t.u_globe_extrude_scale)}),zMr=(e,t)=>({u_matrix:new lp(e,t.u_matrix),u_image:new Mn(e,t.u_image),u_color_ramp:new Mn(e,t.u_color_ramp),u_opacity:new Oi(e,t.u_opacity)}),Yst=(e,t,r,i)=>{let n=Qh(e,1,t)/(Br*2**e.tileID.overscaledZ)*2*Math.PI*i;return{u_extrude_scale:Qh(e,1,t),u_intensity:r,u_globe_extrude_scale:n}},Xst=(e,t,r,i)=>{let n=Rm();return kv(n,0,e.width,e.height,0,0,1),{u_matrix:n,u_image:r,u_color_ramp:i,u_opacity:t.paint.get("heatmap-opacity")}},BMr=(e,t)=>({u_image:new Mn(e,t.u_image),u_latrange:new ya(e,t.u_latrange),u_exaggeration:new Oi(e,t.u_exaggeration),u_altitudes:new Une(e,t.u_altitudes),u_azimuths:new Une(e,t.u_azimuths),u_accent:new Vm(e,t.u_accent),u_method:new Mn(e,t.u_method),u_shadows:new Nne(e,t.u_shadows),u_highlights:new Nne(e,t.u_highlights)}),qMr=(e,t)=>({u_matrix:new lp(e,t.u_matrix),u_image:new Mn(e,t.u_image),u_dimension:new ya(e,t.u_dimension),u_zoom:new Oi(e,t.u_zoom),u_unpack:new K6(e,t.u_unpack)}),OMr=(e,t,r)=>{let i=r.paint.get("hillshade-accent-color"),n;switch(r.paint.get("hillshade-method")){case"basic":n=4;break;case"combined":n=1;break;case"igor":n=2;break;case"multidirectional":n=3;break;default:n=0}let a=r.getIlluminationProperties();for(let o=0;o{let r=t.stride,i=Rm();return kv(i,0,Br,-Br,0,0,1),ou(i,i,[0,-Br,0]),{u_matrix:i,u_image:1,u_dimension:[r,r],u_zoom:e.overscaledZ,u_unpack:t.getUnpackVector()}};VMr=(e,t)=>({u_image:new Mn(e,t.u_image),u_unpack:new K6(e,t.u_unpack),u_dimension:new ya(e,t.u_dimension),u_elevation_stops:new Mn(e,t.u_elevation_stops),u_color_stops:new Mn(e,t.u_color_stops),u_color_ramp_size:new Mn(e,t.u_color_ramp_size),u_opacity:new Oi(e,t.u_opacity)}),GMr=(e,t,r=0)=>({u_image:0,u_unpack:t.getUnpackVector(),u_dimension:[t.stride,t.stride],u_elevation_stops:1,u_color_stops:4,u_color_ramp_size:r,u_opacity:e.paint.get("color-relief-opacity")}),HMr=(e,t)=>({u_translation:new ya(e,t.u_translation),u_ratio:new Oi(e,t.u_ratio)}),jMr=(e,t)=>({u_translation:new ya(e,t.u_translation),u_ratio:new Oi(e,t.u_ratio),u_image:new Mn(e,t.u_image),u_image_height:new Oi(e,t.u_image_height)}),$Mr=(e,t)=>({u_translation:new ya(e,t.u_translation),u_texsize:new ya(e,t.u_texsize),u_ratio:new Oi(e,t.u_ratio),u_image:new Mn(e,t.u_image),u_scale:new Nf(e,t.u_scale),u_fade:new Oi(e,t.u_fade)}),WMr=(e,t)=>({u_translation:new ya(e,t.u_translation),u_ratio:new Oi(e,t.u_ratio),u_image:new Mn(e,t.u_image),u_mix:new Oi(e,t.u_mix),u_tileratio:new Oi(e,t.u_tileratio),u_crossfade_from:new Oi(e,t.u_crossfade_from),u_crossfade_to:new Oi(e,t.u_crossfade_to),u_lineatlas_width:new Oi(e,t.u_lineatlas_width),u_lineatlas_height:new Oi(e,t.u_lineatlas_height)}),YMr=(e,t)=>({u_translation:new ya(e,t.u_translation),u_ratio:new Oi(e,t.u_ratio),u_image:new Mn(e,t.u_image),u_image_height:new Oi(e,t.u_image_height),u_tileratio:new Oi(e,t.u_tileratio),u_crossfade_from:new Oi(e,t.u_crossfade_from),u_crossfade_to:new Oi(e,t.u_crossfade_to),u_image_dash:new Mn(e,t.u_image_dash),u_mix:new Oi(e,t.u_mix),u_lineatlas_width:new Oi(e,t.u_lineatlas_width),u_lineatlas_height:new Oi(e,t.u_lineatlas_height)}),oO=(e,t,r,i)=>{let n=e.transform;return{u_translation:Zst(e,t,r),u_ratio:i/Qh(t,1,n.zoom)}},XMr=(e,t,r,i,n)=>cn(oO(e,t,r,i),{u_image:0,u_image_height:n}),ZMr=(e,t,r,i,n)=>{let a=e.transform,o=koe(t,a);return{u_translation:Zst(e,t,r),u_texsize:t.imageAtlasTexture.size,u_ratio:i/Qh(t,1,a.zoom),u_image:0,u_scale:[o,n.fromScale,n.toScale],u_fade:n.t}},KMr=(e,t,r,i,n)=>{let a=e.transform,o=koe(t,a);return cn(oO(e,t,r,i),{u_tileratio:o,u_crossfade_from:n.fromScale,u_crossfade_to:n.toScale,u_image:0,u_mix:n.t,u_lineatlas_width:e.lineAtlas.width,u_lineatlas_height:e.lineAtlas.height})},JMr=(e,t,r,i,n,a)=>{let o=e.transform,s=koe(t,o);return cn(oO(e,t,r,i),{u_image:0,u_image_height:a,u_tileratio:s,u_crossfade_from:n.fromScale,u_crossfade_to:n.toScale,u_image_dash:1,u_mix:n.t,u_lineatlas_width:e.lineAtlas.width,u_lineatlas_height:e.lineAtlas.height})};QMr=(e,t)=>({u_image:new Mn(e,t.u_image),u_opacity:new Oi(e,t.u_opacity)}),eSr=(e,t)=>({u_image:t,u_opacity:e}),tSr=(e,t)=>({u_is_size_zoom_constant:new Mn(e,t.u_is_size_zoom_constant),u_is_size_feature_constant:new Mn(e,t.u_is_size_feature_constant),u_size_t:new Oi(e,t.u_size_t),u_size:new Oi(e,t.u_size),u_rotate_symbol:new Mn(e,t.u_rotate_symbol),u_label_plane_matrix:new lp(e,t.u_label_plane_matrix),u_coord_matrix:new lp(e,t.u_coord_matrix),u_is_text:new Mn(e,t.u_is_text),u_pitch_with_map:new Mn(e,t.u_pitch_with_map),u_is_along_line:new Mn(e,t.u_is_along_line),u_is_variable_anchor:new Mn(e,t.u_is_variable_anchor),u_texsize:new ya(e,t.u_texsize),u_texture:new Mn(e,t.u_texture),u_translation:new ya(e,t.u_translation),u_pitched_scale:new Oi(e,t.u_pitched_scale),u_is_offset:new Mn(e,t.u_is_offset),u_height_anchor_ground:new Mn(e,t.u_height_anchor_ground)}),rSr=(e,t)=>({u_is_size_zoom_constant:new Mn(e,t.u_is_size_zoom_constant),u_is_size_feature_constant:new Mn(e,t.u_is_size_feature_constant),u_size_t:new Oi(e,t.u_size_t),u_size:new Oi(e,t.u_size),u_rotate_symbol:new Mn(e,t.u_rotate_symbol),u_label_plane_matrix:new lp(e,t.u_label_plane_matrix),u_coord_matrix:new lp(e,t.u_coord_matrix),u_is_text:new Mn(e,t.u_is_text),u_pitch_with_map:new Mn(e,t.u_pitch_with_map),u_is_along_line:new Mn(e,t.u_is_along_line),u_is_variable_anchor:new Mn(e,t.u_is_variable_anchor),u_texsize:new ya(e,t.u_texsize),u_texture:new Mn(e,t.u_texture),u_gamma_scale:new Oi(e,t.u_gamma_scale),u_is_halo:new Mn(e,t.u_is_halo),u_is_plain:new Mn(e,t.u_is_plain),u_translation:new ya(e,t.u_translation),u_pitched_scale:new Oi(e,t.u_pitched_scale),u_is_offset:new Mn(e,t.u_is_offset),u_height_anchor_ground:new Mn(e,t.u_height_anchor_ground)}),iSr=(e,t)=>({u_is_size_zoom_constant:new Mn(e,t.u_is_size_zoom_constant),u_is_size_feature_constant:new Mn(e,t.u_is_size_feature_constant),u_size_t:new Oi(e,t.u_size_t),u_size:new Oi(e,t.u_size),u_rotate_symbol:new Mn(e,t.u_rotate_symbol),u_label_plane_matrix:new lp(e,t.u_label_plane_matrix),u_coord_matrix:new lp(e,t.u_coord_matrix),u_is_text:new Mn(e,t.u_is_text),u_pitch_with_map:new Mn(e,t.u_pitch_with_map),u_is_along_line:new Mn(e,t.u_is_along_line),u_is_variable_anchor:new Mn(e,t.u_is_variable_anchor),u_texsize:new ya(e,t.u_texsize),u_texsize_icon:new ya(e,t.u_texsize_icon),u_texture:new Mn(e,t.u_texture),u_texture_icon:new Mn(e,t.u_texture_icon),u_gamma_scale:new Oi(e,t.u_gamma_scale),u_is_halo:new Mn(e,t.u_is_halo),u_translation:new ya(e,t.u_translation),u_pitched_scale:new Oi(e,t.u_pitched_scale),u_is_offset:new Mn(e,t.u_is_offset),u_height_anchor_ground:new Mn(e,t.u_height_anchor_ground)}),Kst=(e,t,r,i,n,a,o,s,l,u,c,f,h,p,d)=>({u_is_size_zoom_constant:+(e==="constant"||e==="source"),u_is_size_feature_constant:+(e==="constant"||e==="camera"),u_size_t:t?t.uSizeT:0,u_size:t?t.uSize:0,u_rotate_symbol:+r,u_label_plane_matrix:s,u_coord_matrix:l,u_is_text:+c,u_pitch_with_map:+i,u_is_along_line:n,u_is_variable_anchor:a,u_texsize:f,u_texture:0,u_translation:u,u_pitched_scale:h,u_is_offset:p,u_height_anchor_ground:+d}),Jst=(e,t,r,i,n,a,o,s,l,u,c,f,h,p,d,v)=>{let m=o.transform;return cn(Kst(e,t,r,i,n,a,o,s,l,u,c,f,p,d,v),{u_gamma_scale:i?Math.cos(m.pitch*Math.PI/180)*m.cameraToCenterDistance:1,u_is_halo:+!!h,u_is_plain:1})},nSr=(e,t,r,i,n,a,o,s,l,u,c,f,h,p,d)=>cn(Jst(e,t,r,i,n,a,o,s,l,u,!0,c,!0,h,p,d),{u_texsize_icon:f,u_texture_icon:1}),aSr=(e,t)=>({u_opacity:new Oi(e,t.u_opacity),u_color:new Vm(e,t.u_color)}),oSr=(e,t)=>({u_opacity:new Oi(e,t.u_opacity),u_image:new Mn(e,t.u_image),u_pattern_tl_a:new ya(e,t.u_pattern_tl_a),u_pattern_br_a:new ya(e,t.u_pattern_br_a),u_pattern_tl_b:new ya(e,t.u_pattern_tl_b),u_pattern_br_b:new ya(e,t.u_pattern_br_b),u_texsize:new ya(e,t.u_texsize),u_mix:new Oi(e,t.u_mix),u_pattern_size_a:new ya(e,t.u_pattern_size_a),u_pattern_size_b:new ya(e,t.u_pattern_size_b),u_scale_a:new Oi(e,t.u_scale_a),u_scale_b:new Oi(e,t.u_scale_b),u_pixel_coord_upper:new ya(e,t.u_pixel_coord_upper),u_pixel_coord_lower:new ya(e,t.u_pixel_coord_lower),u_tile_units_to_pixels:new Oi(e,t.u_tile_units_to_pixels)}),sSr=(e,t)=>({u_opacity:e,u_color:t}),lSr=(e,t,r,i,n)=>cn(_Mr(r,n,t,i),{u_opacity:e}),uSr=(e,t)=>({u_sun_pos:new Nf(e,t.u_sun_pos),u_atmosphere_blend:new Oi(e,t.u_atmosphere_blend),u_globe_position:new Nf(e,t.u_globe_position),u_globe_radius:new Oi(e,t.u_globe_radius),u_inv_proj_matrix:new lp(e,t.u_inv_proj_matrix)}),cSr=(e,t,r,i,n)=>({u_sun_pos:e,u_atmosphere_blend:t,u_globe_position:r,u_globe_radius:i,u_inv_proj_matrix:n}),fSr=(e,t)=>({u_sky_color:new Vm(e,t.u_sky_color),u_horizon_color:new Vm(e,t.u_horizon_color),u_horizon:new ya(e,t.u_horizon),u_horizon_normal:new ya(e,t.u_horizon_normal),u_sky_horizon_blend:new Oi(e,t.u_sky_horizon_blend),u_sky_blend:new Oi(e,t.u_sky_blend),u_inv_proj_matrix:new lp(e,t.u_inv_proj_matrix),u_globe_position:new Nf(e,t.u_globe_position),u_globe_radius:new Oi(e,t.u_globe_radius),u_atmosphere_blend:new Oi(e,t.u_atmosphere_blend)}),hSr=(e,t,r)=>{let i=Math.cos(t.rollInRadians),n=Math.sin(t.rollInRadians),a=Q6(t),o=t.getProjectionData({overscaledTileID:null,applyGlobeMatrix:!0,applyTerrainMatrix:!0}).projectionTransition,s=Rst(t),l=oT(t.worldSize,t.center.lat);return{u_sky_color:e.properties.get("sky-color"),u_horizon_color:e.properties.get("horizon-color"),u_horizon:[(t.width/2-a*n)*r,(t.height/2+a*i)*r],u_horizon_normal:[-n,i],u_sky_horizon_blend:e.properties.get("sky-horizon-blend")*t.height/2*r,u_sky_blend:o,u_inv_proj_matrix:t.inverseProjectionMatrix,u_globe_position:s,u_globe_radius:l,u_atmosphere_blend:e.properties.get("atmosphere-blend")*zst(sp(s)-l,l)}},qq=(e,t)=>({}),dSr={fillExtrusion:wMr,fillExtrusionPattern:TMr,fill:MMr,fillPattern:SMr,fillOutline:EMr,fillOutlinePattern:kMr,circle:LMr,collisionBox:qq,collisionCircle:qq,debug:IMr,depth:qq,clippingMask:qq,heatmap:RMr,heatmapTexture:zMr,hillshade:BMr,hillshadePrepare:qMr,colorRelief:VMr,line:HMr,lineGradient:jMr,linePattern:$Mr,lineSDF:WMr,lineGradientSDF:YMr,layerOpacity:QMr,raster:CTr,symbolIcon:tSr,symbolSDF:rSr,symbolTextAndIcon:iSr,background:aSr,backgroundPattern:oSr,terrain:lMr,terrainDepth:uMr,atmosphere:uSr,sky:fSr},pSr=class{constructor(e,t,r){this.context=e;let i=e.gl;this.buffer=i.createBuffer(),this.dynamicDraw=!!r,this.context.unbindVAO(),e.bindElementBuffer.set(this.buffer),i.bufferData(i.ELEMENT_ARRAY_BUFFER,t.arrayBuffer,this.dynamicDraw?i.DYNAMIC_DRAW:i.STATIC_DRAW),this.dynamicDraw||t.freeBufferAfterUpload()}bind(){this.context.bindElementBuffer.set(this.buffer)}updateData(e){let t=this.context.gl;if(!this.dynamicDraw)throw Error("Attempted to update data while not in dynamic mode.");this.context.unbindVAO(),this.bind(),t.bufferSubData(t.ELEMENT_ARRAY_BUFFER,0,e.arrayBuffer)}destroy(){let e=this.context.gl;this.buffer&&(e.deleteBuffer(this.buffer),delete this.buffer)}},Sot={Int8:"BYTE",Uint8:"UNSIGNED_BYTE",Int16:"SHORT",Uint16:"UNSIGNED_SHORT",Int32:"INT",Uint32:"UNSIGNED_INT",Float32:"FLOAT"},vSr=class{constructor(e,t,r,i){this.length=t.length,this.attributes=r,this.itemSize=t.bytesPerElement,this.dynamicDraw=i,this.context=e;let n=e.gl;this.buffer=n.createBuffer(),e.bindVertexBuffer.set(this.buffer),n.bufferData(n.ARRAY_BUFFER,t.arrayBuffer,this.dynamicDraw?n.DYNAMIC_DRAW:n.STATIC_DRAW),this.dynamicDraw||t.freeBufferAfterUpload()}bind(){this.context.bindVertexBuffer.set(this.buffer)}updateData(e){if(e.length!==this.length)throw Error(`Length of new data is ${e.length}, which doesn't match current length of ${this.length}`);let t=this.context.gl;this.bind(),t.bufferSubData(t.ARRAY_BUFFER,0,e.arrayBuffer)}enableAttributes(e,t){for(let r of this.attributes){let i=t.attributes[r.name];i!==void 0&&e.enableVertexAttribArray(i.location)}}setVertexAttribPointers(e,t,r){for(let i of this.attributes){let n=t.attributes[i.name];if(n!==void 0){let a=i.offset+this.itemSize*(r||0);n.isInteger?e.vertexAttribIPointer(n.location,i.components,e[Sot[i.type]],this.itemSize,a):e.vertexAttribPointer(n.location,i.components,e[Sot[i.type]],!1,this.itemSize,a)}}}destroy(){let e=this.context.gl;this.buffer&&(e.deleteBuffer(this.buffer),delete this.buffer)}},Vo=class{constructor(e){this.gl=e.gl,this.default=this.getDefault(),this.current=this.default,this.dirty=!1}get(){return this.current}set(e){}getDefault(){return this.default}setDefault(){this.set(this.default)}},gSr=class extends Vo{getDefault(){return na.transparent}set(e){let t=this.current;(e.r!==t.r||e.g!==t.g||e.b!==t.b||e.a!==t.a||this.dirty)&&(this.gl.clearColor(e.r,e.g,e.b,e.a),this.current=e,this.dirty=!1)}},mSr=class extends Vo{getDefault(){return 1}set(e){(e!==this.current||this.dirty)&&(this.gl.clearDepth(e),this.current=e,this.dirty=!1)}},ySr=class extends Vo{getDefault(){return 0}set(e){(e!==this.current||this.dirty)&&(this.gl.clearStencil(e),this.current=e,this.dirty=!1)}},xSr=class extends Vo{getDefault(){return[!0,!0,!0,!0]}set(e){let t=this.current;(e[0]!==t[0]||e[1]!==t[1]||e[2]!==t[2]||e[3]!==t[3]||this.dirty)&&(this.gl.colorMask(e[0],e[1],e[2],e[3]),this.current=e,this.dirty=!1)}},bSr=class extends Vo{getDefault(){return!0}set(e){(e!==this.current||this.dirty)&&(this.gl.depthMask(e),this.current=e,this.dirty=!1)}},_Sr=class extends Vo{getDefault(){return 255}set(e){(e!==this.current||this.dirty)&&(this.gl.stencilMask(e),this.current=e,this.dirty=!1)}},wSr=class extends Vo{getDefault(){return{func:this.gl.ALWAYS,ref:0,mask:255}}set(e){let t=this.current;(e.func!==t.func||e.ref!==t.ref||e.mask!==t.mask||this.dirty)&&(this.gl.stencilFunc(e.func,e.ref,e.mask),this.current=e,this.dirty=!1)}},TSr=class extends Vo{getDefault(){let e=this.gl;return[e.KEEP,e.KEEP,e.KEEP]}set(e){let t=this.current;(e[0]!==t[0]||e[1]!==t[1]||e[2]!==t[2]||this.dirty)&&(this.gl.stencilOp(e[0],e[1],e[2]),this.current=e,this.dirty=!1)}},ASr=class extends Vo{getDefault(){return!1}set(e){if(e===this.current&&!this.dirty)return;let t=this.gl;e?t.enable(t.STENCIL_TEST):t.disable(t.STENCIL_TEST),this.current=e,this.dirty=!1}},MSr=class extends Vo{getDefault(){return[0,1]}set(e){let t=this.current;(e[0]!==t[0]||e[1]!==t[1]||this.dirty)&&(this.gl.depthRange(e[0],e[1]),this.current=e,this.dirty=!1)}},SSr=class extends Vo{getDefault(){return!1}set(e){if(e===this.current&&!this.dirty)return;let t=this.gl;e?t.enable(t.DEPTH_TEST):t.disable(t.DEPTH_TEST),this.current=e,this.dirty=!1}},ESr=class extends Vo{getDefault(){return this.gl.LESS}set(e){(e!==this.current||this.dirty)&&(this.gl.depthFunc(e),this.current=e,this.dirty=!1)}},kSr=class extends Vo{getDefault(){return!1}set(e){if(e===this.current&&!this.dirty)return;let t=this.gl;e?t.enable(t.BLEND):t.disable(t.BLEND),this.current=e,this.dirty=!1}},CSr=class extends Vo{getDefault(){let e=this.gl;return[e.ONE,e.ZERO]}set(e){let t=this.current;(e[0]!==t[0]||e[1]!==t[1]||this.dirty)&&(this.gl.blendFunc(e[0],e[1]),this.current=e,this.dirty=!1)}},DSr=class extends Vo{getDefault(){return na.transparent}set(e){let t=this.current;(e.r!==t.r||e.g!==t.g||e.b!==t.b||e.a!==t.a||this.dirty)&&(this.gl.blendColor(e.r,e.g,e.b,e.a),this.current=e,this.dirty=!1)}},FSr=class extends Vo{getDefault(){return this.gl.FUNC_ADD}set(e){(e!==this.current||this.dirty)&&(this.gl.blendEquation(e),this.current=e,this.dirty=!1)}},LSr=class extends Vo{getDefault(){return!1}set(e){if(e===this.current&&!this.dirty)return;let t=this.gl;e?t.enable(t.CULL_FACE):t.disable(t.CULL_FACE),this.current=e,this.dirty=!1}},PSr=class extends Vo{getDefault(){return this.gl.BACK}set(e){(e!==this.current||this.dirty)&&(this.gl.cullFace(e),this.current=e,this.dirty=!1)}},ISr=class extends Vo{getDefault(){return this.gl.CCW}set(e){(e!==this.current||this.dirty)&&(this.gl.frontFace(e),this.current=e,this.dirty=!1)}},RSr=class extends Vo{getDefault(){return null}set(e){(e!==this.current||this.dirty)&&(this.gl.useProgram(e),this.current=e,this.dirty=!1)}},zSr=class extends Vo{getDefault(){return this.gl.TEXTURE0}set(e){(e!==this.current||this.dirty)&&(this.gl.activeTexture(e),this.current=e,this.dirty=!1)}},BSr=class extends Vo{getDefault(){let e=this.gl;return[0,0,e.drawingBufferWidth,e.drawingBufferHeight]}set(e){let t=this.current;(e[0]!==t[0]||e[1]!==t[1]||e[2]!==t[2]||e[3]!==t[3]||this.dirty)&&(this.gl.viewport(e[0],e[1],e[2],e[3]),this.current=e,this.dirty=!1)}},qSr=class extends Vo{getDefault(){return null}set(e){if(e===this.current&&!this.dirty)return;let t=this.gl;t.bindFramebuffer(t.FRAMEBUFFER,e),this.current=e,this.dirty=!1}},OSr=class extends Vo{getDefault(){return null}set(e){if(e===this.current&&!this.dirty)return;let t=this.gl;t.bindRenderbuffer(t.RENDERBUFFER,e),this.current=e,this.dirty=!1}},NSr=class extends Vo{getDefault(){return null}set(e){if(e===this.current&&!this.dirty)return;let t=this.gl;t.bindTexture(t.TEXTURE_2D,e),this.current=e,this.dirty=!1}},USr=class extends Vo{getDefault(){return null}set(e){if(e===this.current&&!this.dirty)return;let t=this.gl;t.bindBuffer(t.ARRAY_BUFFER,e),this.current=e,this.dirty=!1}},VSr=class extends Vo{getDefault(){return null}set(e){let t=this.gl;t.bindBuffer(t.ELEMENT_ARRAY_BUFFER,e),this.current=e,this.dirty=!1}},GSr=class extends Vo{getDefault(){return null}set(e){(e!==this.current||this.dirty)&&(this.gl.bindVertexArray(e),this.current=e,this.dirty=!1)}},HSr=class extends Vo{getDefault(){return 4}set(e){if(e===this.current&&!this.dirty)return;let t=this.gl;t.pixelStorei(t.UNPACK_ALIGNMENT,e),this.current=e,this.dirty=!1}},jSr=class extends Vo{getDefault(){return!1}set(e){if(e===this.current&&!this.dirty)return;let t=this.gl;t.pixelStorei(t.UNPACK_PREMULTIPLY_ALPHA_WEBGL,e),this.current=e,this.dirty=!1}},$Sr=class extends Vo{getDefault(){return!1}set(e){if(e===this.current&&!this.dirty)return;let t=this.gl;t.pixelStorei(t.UNPACK_FLIP_Y_WEBGL,e),this.current=e,this.dirty=!1}},Coe=class extends Vo{constructor(e,t){super(e),this.context=e,this.parent=t}getDefault(){return null}},WSr=class extends Coe{setDirty(){this.dirty=!0}set(e){if(e===this.current&&!this.dirty)return;this.context.bindFramebuffer.set(this.parent);let t=this.gl;t.framebufferTexture2D(t.FRAMEBUFFER,t.COLOR_ATTACHMENT0,t.TEXTURE_2D,e,0),this.current=e,this.dirty=!1}},YSr=class extends Coe{set(e){if(e===this.current&&!this.dirty)return;this.context.bindFramebuffer.set(this.parent);let t=this.gl;t.framebufferRenderbuffer(t.FRAMEBUFFER,t.DEPTH_ATTACHMENT,t.RENDERBUFFER,e),this.current=e,this.dirty=!1}},XSr=class extends Coe{set(e){if(e===this.current&&!this.dirty)return;this.context.bindFramebuffer.set(this.parent);let t=this.gl;t.framebufferRenderbuffer(t.FRAMEBUFFER,t.DEPTH_STENCIL_ATTACHMENT,t.RENDERBUFFER,e),this.current=e,this.dirty=!1}},ZSr=class{constructor(e,t,r,i,n){this.context=e,this.width=t,this.height=r;let a=e.gl,o=this.framebuffer=a.createFramebuffer();if(this.colorAttachment=new WSr(e,o),i)this.depthAttachment=n?new XSr(e,o):new YSr(e,o);else if(n)throw Error("Stencil cannot be set without depth")}destroy(){let e=this.context.gl,t=this.colorAttachment.get();if(t&&e.deleteTexture(t),this.depthAttachment){let r=this.depthAttachment.get();r&&e.deleteRenderbuffer(r)}e.deleteFramebuffer(this.framebuffer)}},Qst=Soe([{name:"u_units_to_pixels",type:"vec2"},{name:"u_world_size",type:"vec2"},{name:"u_camera_to_center_distance",type:"float"},{name:"u_symbol_fade_change",type:"float"},{name:"u_aspect_ratio",type:"float"},{name:"u_device_pixel_ratio",type:"float"},{name:"u_viewport_size",type:"vec2"},{name:"u_pixel_extrude_scale",type:"vec2"},{name:"u_pitch",type:"float"}]),$0=Qst.offsets;Ul=class{constructor(e,t,r){this.blendFunction=e,this.blendColor=t,this.mask=r}};Ul.Replace=[1,0],Ul.disabled=new Ul(Ul.Replace,na.transparent,[!1,!1,!1,!1]),Ul.unblended=new Ul(Ul.Replace,na.transparent,[!0,!0,!0,!0]),Ul.alphaBlended=new Ul([1,771],na.transparent,[!0,!0,!0,!0]);QSr=class{constructor(e){this.gl=e,this.clearColor=new gSr(this),this.clearDepth=new mSr(this),this.clearStencil=new ySr(this),this.colorMask=new xSr(this),this.depthMask=new bSr(this),this.stencilMask=new _Sr(this),this.stencilFunc=new wSr(this),this.stencilOp=new TSr(this),this.stencilTest=new ASr(this),this.depthRange=new MSr(this),this.depthTest=new SSr(this),this.depthFunc=new ESr(this),this.blend=new kSr(this),this.blendFunc=new CSr(this),this.blendColor=new DSr(this),this.blendEquation=new FSr(this),this.cullFace=new LSr(this),this.cullFaceSide=new PSr(this),this.frontFace=new ISr(this),this.program=new RSr(this),this.activeTexture=new zSr(this),this.viewport=new BSr(this),this.bindFramebuffer=new qSr(this),this.bindRenderbuffer=new OSr(this),this.bindTexture=new NSr(this),this.bindVertexBuffer=new USr(this),this.bindElementBuffer=new VSr(this),this.bindVertexArray=new GSr(this),this.pixelStoreUnpack=new HSr(this),this.pixelStoreUnpackPremultiplyAlpha=new jSr(this),this.pixelStoreUnpackFlipY=new $Sr(this),this.extTextureFilterAnisotropic=e.getExtension("EXT_texture_filter_anisotropic"),this.extTextureFilterAnisotropic&&(this.extTextureFilterAnisotropicMax=e.getParameter(this.extTextureFilterAnisotropic.MAX_TEXTURE_MAX_ANISOTROPY_EXT)),this.maxTextureSize=e.getParameter(e.MAX_TEXTURE_SIZE),e.getExtension("EXT_color_buffer_half_float"),e.getExtension("EXT_color_buffer_float"),this.boundUniformBuffers=[],this.projectionUniformBuffer=Gst(this),this.keyedProjectionUniformBuffers=new Map,this.freeProjectionUniformBuffers=[],this.terrainUniformBuffer=mMr(this),this.frameUniformBuffer=KSr(this)}setDefault(){this.unbindVAO(),this.clearColor.setDefault(),this.clearDepth.setDefault(),this.clearStencil.setDefault(),this.colorMask.setDefault(),this.depthMask.setDefault(),this.stencilMask.setDefault(),this.stencilFunc.setDefault(),this.stencilOp.setDefault(),this.stencilTest.setDefault(),this.depthRange.setDefault(),this.depthTest.setDefault(),this.depthFunc.setDefault(),this.blend.setDefault(),this.blendFunc.setDefault(),this.blendColor.setDefault(),this.blendEquation.setDefault(),this.cullFace.setDefault(),this.cullFaceSide.setDefault(),this.frontFace.setDefault(),this.program.setDefault(),this.activeTexture.setDefault(),this.bindFramebuffer.setDefault(),this.pixelStoreUnpack.setDefault(),this.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.pixelStoreUnpackFlipY.setDefault()}setDirty(){this.clearColor.dirty=!0,this.clearDepth.dirty=!0,this.clearStencil.dirty=!0,this.colorMask.dirty=!0,this.depthMask.dirty=!0,this.stencilMask.dirty=!0,this.stencilFunc.dirty=!0,this.stencilOp.dirty=!0,this.stencilTest.dirty=!0,this.depthRange.dirty=!0,this.depthTest.dirty=!0,this.depthFunc.dirty=!0,this.blend.dirty=!0,this.blendFunc.dirty=!0,this.blendColor.dirty=!0,this.blendEquation.dirty=!0,this.cullFace.dirty=!0,this.cullFaceSide.dirty=!0,this.frontFace.dirty=!0,this.program.dirty=!0,this.activeTexture.dirty=!0,this.viewport.dirty=!0,this.bindFramebuffer.dirty=!0,this.bindRenderbuffer.dirty=!0,this.bindTexture.dirty=!0,this.bindVertexBuffer.dirty=!0,this.bindElementBuffer.dirty=!0,this.bindVertexArray.dirty=!0,this.pixelStoreUnpack.dirty=!0,this.pixelStoreUnpackPremultiplyAlpha.dirty=!0,this.pixelStoreUnpackFlipY.dirty=!0,this.boundUniformBuffers=[]}setCustomLayerDefaults(){this.unbindVAO(),this.cullFace.setDefault(),this.activeTexture.setDefault(),this.pixelStoreUnpack.setDefault(),this.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.pixelStoreUnpackFlipY.setDefault()}createIndexBuffer(e,t){return new pSr(this,e,t)}createVertexBuffer(e,t,r){return new vSr(this,e,t,r)}createRenderbuffer(e,t,r){let i=this.gl,n=i.createRenderbuffer();return this.bindRenderbuffer.set(n),i.renderbufferStorage(i.RENDERBUFFER,e,t,r),this.bindRenderbuffer.set(null),n}createFramebuffer(e,t,r,i){return new ZSr(this,e,t,r,i)}clear({color:e,depth:t,stencil:r}){let i=this.gl,n=0;e&&(n|=i.COLOR_BUFFER_BIT,this.clearColor.set(e),this.colorMask.set([!0,!0,!0,!0])),t!==void 0&&(n|=i.DEPTH_BUFFER_BIT,this.depthRange.set([0,1]),this.clearDepth.set(t),this.depthMask.set(!0)),r!==void 0&&(n|=i.STENCIL_BUFFER_BIT,this.clearStencil.set(r),this.stencilMask.set(255)),i.clear(n)}setCullFace(e){e.enable===!1?this.cullFace.set(!1):(this.cullFace.set(!0),this.cullFaceSide.set(e.mode),this.frontFace.set(e.frontFace))}setDepthMode(e){e.func===this.gl.ALWAYS&&!e.mask?this.depthTest.set(!1):(this.depthTest.set(!0),this.depthFunc.set(e.func),this.depthMask.set(e.mask),this.depthRange.set(e.range))}setStencilMode(e){e.test.func===this.gl.ALWAYS&&!e.mask?this.stencilTest.set(!1):(this.stencilTest.set(!0),this.stencilMask.set(e.mask),this.stencilOp.set([e.fail,e.depthFail,e.pass]),this.stencilFunc.set({func:e.test.func,ref:e.ref,mask:e.test.mask}))}setColorMode(e){Sv(e.blendFunction,Ul.Replace)?this.blend.set(!1):(this.blend.set(!0),this.blendFunc.set(e.blendFunction),this.blendColor.set(e.blendColor)),this.colorMask.set(e.mask)}createVertexArray(){return this.gl.createVertexArray()}deleteVertexArray(e){this.gl.deleteVertexArray(e)}unbindVAO(){this.bindVertexArray.set(null)}},Na=class{constructor(e,t,r){this.func=e,this.mask=t,this.range=r}};Na.ReadOnly=!1,Na.ReadWrite=!0,Na.disabled=new Na(519,Na.ReadOnly,[0,1]);zae=7680,Ro=class{constructor(e,t,r,i,n,a){this.test=e,this.ref=t,this.mask=r,this.fail=i,this.depthFail=n,this.pass=a}};Ro.disabled=new Ro({func:519,mask:0},0,0,zae,zae,zae);Eot=1029,Bae=2305,Eo=class{constructor(e,t,r){this.enable=e,this.mode=t,this.frontFace=r}};Eo.disabled=new Eo(!1,Eot,Bae),Eo.backCCW=new Eo(!0,Eot,Bae),Eo.frontCCW=new Eo(!0,1028,Bae);rEr=op(new Float32Array(16));Nae=0;Vae=[new tr(0,0),new tr(Br,0),new tr(Br,Br),new tr(0,Br)];LEr=new na(1,0,0,1),PEr=new na(0,1,0,1),IEr=new na(0,0,1,1),REr=new na(1,0,1,1),zEr=new na(0,1,1,1);XEr={symbol:iEr,circle:uEr,heatmap:cEr,line:_Er,fill:wEr,fillExtrusion:TEr,hillshade:AEr,colorRelief:SEr,raster:EEr,background:FEr,sky:$Er,atmosphere:YEr,custom:GEr,debug:OEr,debugPadding:BEr,terrainDepth:HEr},ZEr=(_3=class{constructor(t,r){this.drawFunctions=XEr,this.context=new QSr(t),this.transform=r,this.layerOpacityFbo=null,this._tileTextures={},this._rttObjectRecyclePool=[],this._rttSharedFbo=null,this.terrainFacilitator={depthDirty:!0,matrix:op(new Float64Array(16)),renderTime:0},this.setup(),this.numSublayers=Jae.maxOverzooming+Jae.maxUnderzooming+1,this.depthEpsilon=1/2**16,this.crossTileSymbolIndex=new Tst}resize(t,r,i){if(this.width=Math.round(t*i),this.height=Math.round(r*i),this.pixelRatio=i,this.context.viewport.set([0,0,this.width,this.height]),this.style)for(let n of this.style._order)this.style._layers[n].resize()}setup(){let t=this.context,r=new Nm;r.emplaceBack(0,0),r.emplaceBack(Br,0),r.emplaceBack(0,Br),r.emplaceBack(Br,Br),this.tileExtentBuffer=t.createVertexBuffer(r,b3.members),this.tileExtentSegments=Xs.simpleSegment(0,0,4,2);let i=new Nm;i.emplaceBack(0,0),i.emplaceBack(Br,0),i.emplaceBack(0,Br),i.emplaceBack(Br,Br),this.debugBuffer=t.createVertexBuffer(i,b3.members),this.debugSegments=Xs.simpleSegment(0,0,4,5);let n=new zit;n.emplaceBack(0,0,0,0),n.emplaceBack(Br,0,Br,0),n.emplaceBack(0,Br,0,Br),n.emplaceBack(Br,Br,Br,Br),this.rasterBoundsBuffer=t.createVertexBuffer(n,aMr.members),this.rasterBoundsSegments=Xs.simpleSegment(0,0,4,2);let a=new Nm;a.emplaceBack(0,0),a.emplaceBack(Br,0),a.emplaceBack(0,Br),a.emplaceBack(Br,Br),this.rasterBoundsBufferPosOnly=t.createVertexBuffer(a,b3.members),this.rasterBoundsSegmentsPosOnly=Xs.simpleSegment(0,0,4,5);let o=new Nm;o.emplaceBack(0,0),o.emplaceBack(1,0),o.emplaceBack(0,1),o.emplaceBack(1,1),this.viewportBuffer=t.createVertexBuffer(o,b3.members),this.viewportSegments=Xs.simpleSegment(0,0,4,2);let s=new Oit;s.emplaceBack(0),s.emplaceBack(1),s.emplaceBack(3),s.emplaceBack(2),s.emplaceBack(0),this.tileBorderIndexBuffer=t.createIndexBuffer(s);let l=new Fv;l.emplaceBack(1,0,2),l.emplaceBack(1,2,3),this.quadTriangleIndexBuffer=t.createIndexBuffer(l);let u=this.context.gl;this.stencilClearMode=new Ro({func:u.ALWAYS,mask:0},0,255,u.ZERO,u.ZERO,u.ZERO),this.tileExtentMesh=new JC(this.tileExtentBuffer,this.quadTriangleIndexBuffer,this.tileExtentSegments)}clearStencil(){let t=this.context,r=t.gl;this.nextStencilID=1,this.currentStencilSource=void 0;let i=Rm();kv(i,0,this.width,this.height,0,0,1),Oc(i,i,[r.drawingBufferWidth,r.drawingBufferHeight,0]);let n={mainMatrix:i,tileMercatorCoords:[0,0,1,1],clippingPlane:[0,0,0,0],projectionTransition:0,fallbackMatrix:i,clipAntimeridian:!1};this.useProgram("clippingMask",null,!0).draw(t,r.TRIANGLES,Na.disabled,this.stencilClearMode,Ul.disabled,Eo.disabled,null,null,n,"$clipping",this.viewportBuffer,this.quadTriangleIndexBuffer,this.viewportSegments)}renderTileClippingMasks(t,r){if(this.currentStencilSource===t.source||!t.isTileClipped()||!(r!=null&&r.length))return;this.currentStencilSource=t.source,this.nextStencilID+r.length>256&&this.clearStencil();let i=this.context;i.setColorMode(Ul.disabled),i.setDepthMode(Na.disabled);let n={};for(let a of r)n[a.key]=this.nextStencilID++;this.style.projection.useSubdivision&&this._renderTileMasks(n,r,!0),this._renderTileMasks(n,r,!1),this._tileClippingMaskIDs=n}_renderTileMasks(t,r,i){let n=this.context,a=n.gl,o=this.style.projection,s=this.renderContext,l=this.useProgram("clippingMask");for(let u of r){let c=t[u.key],f=vh(s,u),h=o.getMeshFromTileID(this.context,u.canonical,i,!0,"stencil"),p=pf(s,u);l.draw(n,a.TRIANGLES,Na.disabled,new Ro({func:a.ALWAYS,mask:0},c,255,a.KEEP,a.KEEP,a.REPLACE),Ul.disabled,s.isRenderingToTexture?Eo.disabled:Eo.backCCW,null,f,p,"$clipping",h.vertexBuffer,h.indexBuffer,h.segments)}}_renderTilesDepthBuffer(){let t=this.context,r=t.gl,i=this.style.projection,n=this.transform,a=this.useProgram("depth"),o=this.getDepthModeFor3D(),s=lT(n,{tileSize:n.tileSize});for(let l of s){let u=vh(this.renderContext,l),c=i.getMeshFromTileID(this.context,l.canonical,!0,!0,"raster"),f=pf(this.renderContext,l);a.draw(t,r.TRIANGLES,o,Ro.disabled,Ul.disabled,Eo.backCCW,null,u,f,"$clipping",c.vertexBuffer,c.indexBuffer,c.segments)}}stencilModeFor3D(){this.currentStencilSource=void 0,this.nextStencilID+1>256&&this.clearStencil();let t=this.nextStencilID++,r=this.context.gl;return new Ro({func:r.NOTEQUAL,mask:255},t,255,r.KEEP,r.KEEP,r.REPLACE)}stencilModeForClipping(t){let r=this.context.gl;return new Ro({func:r.EQUAL,mask:255},this._tileClippingMaskIDs[t.key],0,r.KEEP,r.KEEP,r.REPLACE)}getStencilConfigForOverlapAndUpdateStencilID(t){let r=this.context.gl,i=t.sort((o,s)=>s.overscaledZ-o.overscaledZ),n=i[i.length-1].overscaledZ,a=i[0].overscaledZ-n+1;if(a>1){this.currentStencilSource=void 0,this.nextStencilID+a>256&&this.clearStencil();let o={};for(let s=0;ss.overscaledZ-o.overscaledZ),n=i[i.length-1].overscaledZ,a=i[0].overscaledZ-n+1;if(this.clearStencil(),a>1){let o={},s={};for(let l=0;l=0;i.currentLayer--){let h=this.style._layers[n[i.currentLayer]];if(h.isHidden(this.transform.zoom))continue;let p=a[h.source],d=o[h.source];this.renderTileClippingMasks(h,d),this.renderLayer(this,p,h,d,i)}i.currentPass="translucent";let u=!1;for(i.currentLayer=0;i.currentLayer0?r.pop():null}acquireRTT(t){let r=this.context.gl,i=this._rttObjectRecyclePool.pop();if(i)return i.size!==t&&(i.texture.update({width:t,height:t,data:null},{premultiply:!1,useMipmap:!0}),i.texture.bind(r.LINEAR,r.CLAMP_TO_EDGE,r.LINEAR_MIPMAP_LINEAR),this.context.extTextureFilterAnisotropic&&r.texParameterf(r.TEXTURE_2D,this.context.extTextureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT,this.context.extTextureFilterAnisotropicMax),i.size=t),i;let n=new wu(this.context,{width:t,height:t,data:null},r.RGBA,{premultiply:!1,useMipmap:!0});return n.bind(r.LINEAR,r.CLAMP_TO_EDGE,r.LINEAR_MIPMAP_LINEAR),this.context.extTextureFilterAnisotropic&&r.texParameterf(r.TEXTURE_2D,this.context.extTextureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT,this.context.extTextureFilterAnisotropicMax),{texture:n,size:t}}bindRTT(t){let r=this.context.gl,i=t.size;if(!this._rttSharedFbo){let n=this.context.createFramebuffer(i,i,!0,!0),a=this.context.createRenderbuffer(r.DEPTH_STENCIL,i,i);n.depthAttachment.set(a),this._rttSharedFbo={fbo:n,depthRenderbuffer:a,size:i}}this._rttSharedFbo.size!==i&&(this.context.bindRenderbuffer.set(this._rttSharedFbo.depthRenderbuffer),r.renderbufferStorage(r.RENDERBUFFER,r.DEPTH_STENCIL,i,i),this.context.bindRenderbuffer.set(null),this._rttSharedFbo.fbo.width=i,this._rttSharedFbo.fbo.height=i,this._rttSharedFbo.size=i),this._rttSharedFbo.fbo.colorAttachment.set(t.texture.texture),this.context.bindFramebuffer.set(this._rttSharedFbo.fbo.framebuffer)}releaseRTT(t){this._rttObjectRecyclePool.push(t)}clearRTTPool(){for(let t of this._rttObjectRecyclePool)t.texture.destroy();this._rttObjectRecyclePool.length=0}destroyRTTResources(){if(this.clearRTTPool(),!this._rttSharedFbo)return;this._rttSharedFbo.fbo.colorAttachment.set(null),this._rttSharedFbo.fbo.depthAttachment.set(null);let t=this.context.gl;t.deleteRenderbuffer(this._rttSharedFbo.depthRenderbuffer),t.deleteFramebuffer(this._rttSharedFbo.fbo.framebuffer),this._rttSharedFbo=null}isPatternMissing(t){if(!t)return!1;if(!t.from||!t.to)return!0;let r=this.patternAtlas.getPattern(t.from.toString()),i=this.patternAtlas.getPattern(t.to.toString());return!r||!i}useProgram(t,r,i=!1,n=[]){var v;this.cache||(this.cache={});let a=!!this.style.map.terrain,o=this.style.projection,s=i?fg.projectionMercator:o.shaderPreludeCode,l=i?Ast:o.shaderDefine,u=`/${i?Mst:o.shaderVariantName}`,c=r?r.cacheKey:"",f=this._showOverdrawInspector?"/overdraw":"",h=a?"/terrain":"",p=n?`/${n.join("/")}`:"",d=t+c+u+f+h+p;return(v=this.cache)[d]||(v[d]=new bMr(this.context,fg[t],r,dSr[t],this._showOverdrawInspector,a,s,l,n)),this.cache[d]}setCustomLayerDefaults(){this.context.setCustomLayerDefaults()}setBaseState(){let t=this.context.gl;this.context.cullFace.set(!1),this.context.viewport.set([0,0,this.width,this.height]),this.context.blendEquation.set(t.FUNC_ADD)}initDebugOverlayCanvas(){if(this.debugOverlayCanvas==null){this.debugOverlayCanvas=document.createElement("canvas"),this.debugOverlayCanvas.width=512,this.debugOverlayCanvas.height=512;let t=this.context.gl;this.debugOverlayTexture=new wu(this.context,this.debugOverlayCanvas,t.RGBA)}}destroy(){var t,r,i;if(this._tileTextures){for(let n in this._tileTextures){let a=this._tileTextures[n];if(a)for(let o of a)o.destroy()}this._tileTextures={}}if(this.destroyRTTResources(),(t=this.layerOpacityFbo)==null||t.destroy(),this.layerOpacityFbo=null,this.tileExtentBuffer&&this.tileExtentBuffer.destroy(),this.debugBuffer&&this.debugBuffer.destroy(),this.rasterBoundsBuffer&&this.rasterBoundsBuffer.destroy(),this.rasterBoundsBufferPosOnly&&this.rasterBoundsBufferPosOnly.destroy(),this.viewportBuffer&&this.viewportBuffer.destroy(),this.tileBorderIndexBuffer&&this.tileBorderIndexBuffer.destroy(),this.quadTriangleIndexBuffer&&this.quadTriangleIndexBuffer.destroy(),this.tileExtentMesh&&((r=this.tileExtentMesh.vertexBuffer)==null||r.destroy()),this.tileExtentMesh&&((i=this.tileExtentMesh.indexBuffer)==null||i.destroy()),this.debugOverlayTexture&&this.debugOverlayTexture.destroy(),gMr(this.context),this.context.terrainUniformBuffer.destroy(),this.context.frameUniformBuffer.destroy(),this.cache){for(let n in this.cache){let a=this.cache[n];a!=null&&a.program&&this.context.gl.deleteProgram(a.program)}this.cache={}}this.context&&this.context.setDefault()}overLimit(){let{drawingBufferWidth:t,drawingBufferHeight:r}=this.context.gl;return this.width!==t||this.height!==r}},_3.MAX_TEXTURE_POOL_SIZE_PER_BUCKET=50,_3),llt=class extends Error{constructor(e,t){var r;super("WebGL2 is required to display this map. We are sorry, but it seems that your browser does not support WebGL2, a technology for rendering 3D graphics on the web. Read more on https://wiki.openstreetmap.org/wiki/This_map_requires_WebGL"),this.name="GPUInitializationError",this.requestedAttributes=e,this.statusMessage=(r=t==null?void 0:t.statusMessage)!=null?r:null}};ult=class{constructor(e){this._getHashParams=()=>new URLSearchParams(window.location.hash.replace("#","")),this._getCurrentHash=()=>{var r;let t=this._getHashParams();return this._hashName?(t.get(this._hashName)||"").split("/"):((r=[...t.keys()][0])!=null?r:"").split("/")},this._onHashChange=()=>{let t=this._getCurrentHash();if(!this._isValidHash(t))return!1;let r=this._map.dragRotate.isEnabled()&&this._map.touchZoomRotate.isEnabled()?+(t[3]||0):this._map.getBearing();return this._map.jumpTo({center:[+t[2],+t[1]],zoom:+t[0],bearing:r,pitch:+(t[4]||0)}),!0},this._updateHashUnthrottled=()=>{let t=window.location.href.replace(/(#.*)?$/,this.getHashString());window.history.replaceState(window.history.state,null,t)},this._removeHash=()=>{let t=this._getHashParams();if(this._hashName)t.delete(this._hashName);else{let a=Array.from(t.keys());a.length>0&&t.delete(a[0])}let r=decodeURIComponent(t.toString()).replace(/=&/g,"&").replace(/=$/g,""),i=r?`#${r}`:"",n=window.location.href.replace(/(#.+)?$/,i);n=n.replace("&&","&"),window.history.replaceState(window.history.state,null,n)},this._updateHash=Foe(this._updateHashUnthrottled,300),this._hashName=e&&encodeURIComponent(e)}addTo(e){return this._map=e,addEventListener("hashchange",this._onHashChange,!1),this._map.on("moveend",this._updateHash),this}remove(){return removeEventListener("hashchange",this._onHashChange,!1),this._map.off("moveend",this._updateHash),clearTimeout(this._updateHash()),this._removeHash(),delete this._map,this}getHashString(e){let t=this._map.getCenter(),r=Math.round(this._map.getZoom()*100)/100,i=10**Math.ceil((r*Math.LN2+Math.log(512/360/.5))/Math.LN10),n=Math.round(t.lng*i)/i,a=Math.round(t.lat*i)/i,o=this._map.getBearing(),s=this._map.getPitch(),l="";if(l+=e?`/${n}/${a}/${r}`:`${r}/${a}/${n}`,(o||s)&&(l+=`/${Math.round(o*10)/10}`),s&&(l+=`/${Math.round(s)}`),this._hashName){let u=this._getHashParams();return u.set(this._hashName,l),`#${decodeURIComponent(u.toString()).replace(/=&/g,"&").replace(/=$/g,"")}`}return`#${l}`}_isValidHash(e){if(e.length<3||e.some(n=>isNaN(+n)))return!1;try{new pn(+e[2],+e[1])}catch(n){return!1}let t=+e[0],r=+(e[3]||0),i=+(e[4]||0);return t>=this._map.getMinZoom()&&t<=this._map.getMaxZoom()&&r>=-180&&r<=180&&i>=this._map.getMinPitch()&&i<=this._map.getMaxPitch()}},QC={linearity:.3,easing:jB(0,0,.3,1)},KEr=cn({deceleration:2500,maxSpeed:1400},QC),JEr=cn({deceleration:20,maxSpeed:1400},QC),QEr=cn({deceleration:1e3,maxSpeed:360},QC),ekr=cn({deceleration:1e3,maxSpeed:90},QC),tkr=cn({deceleration:1e3,maxSpeed:360},QC),rkr=class{constructor(e){this._map=e,this.clear()}clear(){this._inertiaBuffer=[]}record(e){this._drainInertiaBuffer(),this._inertiaBuffer.push({time:zo(),settings:e})}_drainInertiaBuffer(){let e=this._inertiaBuffer,t=zo();for(;e.length>0&&t-e[0].time>160;)e.shift()}_getVelocityEntries(){let e=this._inertiaBuffer,t=zo()-60,r=Math.max(0,e.length-2);for(;r>0&&e[r-1].time>=t;)r--;return e.slice(r)}_onMoveEnd(e){this._drainInertiaBuffer();let t=this._getVelocityEntries();if(t.length<2){this.clear();return}let r={zoom:0,bearing:0,pitch:0,roll:0,pan:new tr(0,0),pinchAround:void 0,around:void 0};for(let{settings:a}of t)a.around&&(r.around=a.around),a.pinchAround&&(r.pinchAround=a.pinchAround);for(let{settings:a}of t.slice(1))r.zoom+=a.zoomDelta||0,r.bearing+=a.bearingDelta||0,r.pitch+=a.pitchDelta||0,r.roll+=a.rollDelta||0,a.panDelta&&r.pan._add(a.panDelta);if(!r.pan.mag()&&!r.zoom&&!r.bearing&&!r.pitch&&!r.roll){this.clear();return}let i=zo()-t[0].time,n={};if(r.pan.mag()){let a=jC(r.pan.mag(),i,cn({},KEr,e||{})),o=r.pan.mult(a.amount/r.pan.mag()),s=this._map._camera.cameraHelper.handlePanInertia(o,this._map._camera.transform);n.center=s.easingCenter,n.offset=s.easingOffset,HC(n,a)}if(r.zoom){let a=jC(r.zoom,i,JEr);n.zoom=t0(this._map.getZoom()+a.amount,this._map.getZoomSnap(),a.amount),HC(n,a)}if(r.bearing){let a=jC(r.bearing,i,QEr);n.bearing=this._map.getBearing()+Qn(a.amount,-179,179),HC(n,a)}if(r.pitch){let a=jC(r.pitch,i,ekr);n.pitch=this._map.getPitch()+a.amount,HC(n,a)}if(r.roll){let a=jC(r.roll,i,tkr);n.roll=this._map.getRoll()+Qn(a.amount,-179,179),HC(n,a)}if(n.zoom||n.bearing){let a=r.pinchAround===void 0?r.around:r.pinchAround;n.around=a?this._map.unproject(a):this._map.getCenter()}return this.clear(),cn(n,{noMoveStart:!0})}};ikr=class{constructor(e,t){this._map=e,this._clickTolerance=t.clickTolerance}reset(){delete this._mousedownPos}wheel(e){return this._firePreventable(new jot(this._map,e))}mousedown(e,t){return this._mousedownPos=t,this._firePreventable(new n0(e.type,this._map,e))}mouseup(e){this._map.fire(new n0(e.type,this._map,e))}click(e,t){this._mousedownPos&&this._mousedownPos.dist(t)>=this._clickTolerance||this._map.fire(new n0(e.type,this._map,e))}dblclick(e){return this._firePreventable(new n0(e.type,this._map,e))}mouseover(e){this._map.fire(new n0(e.type,this._map,e))}mouseout(e){this._map.fire(new n0(e.type,this._map,e))}touchstart(e){return this._firePreventable(new YC(e.type,this._map,e))}touchmove(e){this._map.fire(new YC(e.type,this._map,e))}touchend(e){this._map.fire(new YC(e.type,this._map,e))}touchcancel(e){this._map.fire(new YC(e.type,this._map,e))}_firePreventable(e){if(this._map.fire(e),e.defaultPrevented)return{}}isEnabled(){return!0}isActive(){return!1}enable(){}disable(){}},nkr=class{constructor(e,t){this._map=e,this._clickTolerance=t.clickTolerance}reset(){this._delayContextMenu=!1,this._ignoreContextMenu=!0,delete this._contextMenuEvent,this._clearLongPress(),this._touchActive=!1}mousemove(e){this._map.fire(new n0(e.type,this._map,e))}mousedown(){this._delayContextMenu=!0,this._ignoreContextMenu=!1}mouseup(){this._delayContextMenu=!1,this._contextMenuEvent&&(this._map.fire(new n0("contextmenu",this._map,this._contextMenuEvent)),delete this._contextMenuEvent)}touchstart(e,t,r){if(this._clearLongPress(),this._touchActive=r.length>0,r.length!==1)return;this._longPressStart=t[0];let i=r[0];this._longPressTimer=setTimeout(()=>{this._longPressTimer=void 0;let n=new MouseEvent("contextmenu",{clientX:i.clientX,clientY:i.clientY,button:2,bubbles:!0,cancelable:!0});this._map.fire(new n0("contextmenu",this._map,n))},500)}touchmove(e,t,r){this._longPressTimer&&(r.length!==1||!this._longPressStart||t[0].dist(this._longPressStart)>this._clickTolerance)&&this._clearLongPress()}touchend(){this._touchActive=!1,this._clearLongPress()}touchcancel(){this._touchActive=!1,this._clearLongPress()}_clearLongPress(){this._longPressTimer&&(this._longPressTimer=(clearTimeout(this._longPressTimer),void 0)),this._longPressStart=void 0}contextmenu(e){if(this._touchActive){e.preventDefault();return}this._delayContextMenu?this._contextMenuEvent=e:this._ignoreContextMenu||this._map.fire(new n0(e.type,this._map,e)),this._map.listens("contextmenu")&&e.preventDefault()}isEnabled(){return!0}isActive(){return!1}enable(){}disable(){}},clt=class{constructor(e,t,r){this._map=e,this._tr=r,this._el=e.getCanvasContainer(),this._container=e.getContainer(),this._clickTolerance=t.clickTolerance||1,t.boxZoom&&typeof t.boxZoom=="object"&&(this._boxZoomEnd=t.boxZoom.boxZoomEnd)}isEnabled(){return!!this._enabled}isActive(){return!!this._active}enable(){this.isEnabled()||(this._enabled=!0)}disable(){this.isEnabled()&&(this._enabled=!1)}mousedown(e,t){this.isEnabled()&&e.shiftKey&&e.button===0&&(Yn.disableDrag(),this._startPos=this._lastPos=t,this._active=!0)}mousemoveWindow(e,t){if(!this._active)return;let r=t;if(this._lastPos.equals(r)||!this._box&&r.dist(this._startPos)n.fitScreenCoordinates(r,i,this._tr.bearing,{linear:!0})}}}keydown(e){this._active&&e.keyCode===27&&(this.reset(),this._fireEvent("boxzoomcancel",e))}reset(){this._active=!1,this._container.classList.remove("maplibregl-crosshair"),this._box&&(this._box=(this._box.remove(),null)),Yn.enableDrag(),delete this._startPos,delete this._lastPos}_fireEvent(e,t){return this._map.fire(new Wae(e,{originalEvent:t}))}};okr=class{constructor(e){this.reset(),this.numTouches=e.numTouches}reset(){delete this.centroid,delete this.startTime,delete this.touches,this.aborted=!1}touchstart(e,t,r){(this.centroid||r.length>this.numTouches)&&(this.aborted=!0),!this.aborted&&(this.startTime===void 0&&(this.startTime=e.timeStamp),r.length===this.numTouches&&(this.centroid=akr(t),this.touches=ooe(r,t)))}touchmove(e,t,r){if(this.aborted||!this.centroid)return;let i=ooe(r,t);for(let n in this.touches){let a=this.touches[n],o=i[n];(!o||o.dist(a)>30)&&(this.aborted=!0)}}touchend(e,t,r){if((!this.centroid||e.timeStamp-this.startTime>500)&&(this.aborted=!0),r.length===0){let i=!this.aborted&&this.centroid;if(this.reset(),i)return i}}},soe=class{constructor(e){this.singleTap=new okr(e),this.numTaps=e.numTaps,this.reset()}reset(){this.lastTime=1/0,delete this.lastTap,this.count=0,this.singleTap.reset()}touchstart(e,t,r){this.singleTap.touchstart(e,t,r)}touchmove(e,t,r){this.singleTap.touchmove(e,t,r)}touchend(e,t,r){let i=this.singleTap.touchend(e,t,r);if(i){let n=e.timeStamp-this.lastTime<500,a=!this.lastTap||this.lastTap.dist(i)<30;if((!n||!a)&&this.reset(),this.count++,this.lastTime=e.timeStamp,this.lastTap=i,this.count===this.numTaps)return this.reset(),i}}},skr=class{constructor(e,t){this._tr=t,this._zoomIn=new soe({numTouches:1,numTaps:2}),this._zoomOut=new soe({numTouches:2,numTaps:1}),this.reset()}reset(){this._active=!1,this._zoomIn.reset(),this._zoomOut.reset()}touchstart(e,t,r){this._zoomIn.touchstart(e,t,r),this._zoomOut.touchstart(e,t,r)}touchmove(e,t,r){this._zoomIn.touchmove(e,t,r),this._zoomOut.touchmove(e,t,r)}touchend(e,t,r){let i=this._zoomIn.touchend(e,t,r),n=this._zoomOut.touchend(e,t,r),a=this._tr;if(i)return this._active=!0,e.preventDefault(),setTimeout(()=>this.reset(),0),{cameraAnimation:o=>o.easeTo({duration:300,zoom:t0(a.zoom+1,o.getZoomSnap()),around:a.transform.isPointOnMapSurface(i)?a.unproject(i):void 0},{originalEvent:e})};if(n)return this._active=!0,e.preventDefault(),setTimeout(()=>this.reset(),0),{cameraAnimation:o=>o.easeTo({duration:300,zoom:t0(a.zoom-1,o.getZoomSnap()),around:a.transform.isPointOnMapSurface(n)?a.unproject(n):void 0},{originalEvent:e})}}touchcancel(){this.reset()}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}},e8=class{constructor(e){this._enabled=!!e.enable,this._moveStateManager=e.moveStateManager,this._clickTolerance=e.clickTolerance||1,this._moveFunction=e.move,this._activateOnStart=!!e.activateOnStart,e.assignEvents(this),this.reset()}reset(e){this._active=!1,this._moved=!1,delete this._lastPoint,this._moveStateManager.endMove(e)}_move(...e){let t=this._moveFunction(...e);if(t.bearingDelta||t.pitchDelta||t.rollDelta||t.around||t.panDelta)return this._active=!0,t}dragStart(e,t){this.isEnabled()&&!this._lastPoint&&this._moveStateManager.isValidStartEvent(e)&&(this._moveStateManager.startMove(e),this._lastPoint=Array.isArray(t)?t[0]:t,this._activateOnStart&&this._lastPoint&&(this._active=!0))}dragMove(e,t){if(!this.isEnabled())return;let r=this._lastPoint;if(!r)return;if(e.preventDefault(),!this._moveStateManager.isValidMoveEvent(e)){this.reset(e);return}let i=Array.isArray(t)?t[0]:t;if(!(!this._moved&&i.dist(r)!0}),t=new ckr){this.mouseMoveStateManager=e,this.oneFingerTouchMoveStateManager=t}_executeRelevantHandler(e,t,r){if(e instanceof MouseEvent)return t(e);if(typeof TouchEvent<"u"&&e instanceof TouchEvent)return r(e)}startMove(e){this._executeRelevantHandler(e,t=>{this.mouseMoveStateManager.startMove(t)},t=>{this.oneFingerTouchMoveStateManager.startMove(t)})}endMove(e){this._executeRelevantHandler(e,t=>{this.mouseMoveStateManager.endMove(t)},t=>{this.oneFingerTouchMoveStateManager.endMove(t)})}isValidStartEvent(e){return!!this._executeRelevantHandler(e,t=>this.mouseMoveStateManager.isValidStartEvent(t),t=>this.oneFingerTouchMoveStateManager.isValidStartEvent(t))}isValidMoveEvent(e){return!!this._executeRelevantHandler(e,t=>this.mouseMoveStateManager.isValidMoveEvent(t),t=>this.oneFingerTouchMoveStateManager.isValidMoveEvent(t))}isValidEndEvent(e){return!!this._executeRelevantHandler(e,t=>this.mouseMoveStateManager.isValidEndEvent(t),t=>this.oneFingerTouchMoveStateManager.isValidEndEvent(t))}},sO=e=>{e.mousedown=e.dragStart,e.mousemoveWindow=e.dragMove,e.mouseup=e.dragEnd,e.contextmenu=t=>{t.preventDefault()}};gkr=class{constructor(e,t){this._clickTolerance=e.clickTolerance||1,this._map=t,this.reset()}reset(){this._active=!1,this._touches={},this._sum=new tr(0,0)}_shouldBePrevented(e){return e<(this._map.cooperativeGestures.isEnabled()?2:1)}touchstart(e,t,r){return this._calculateTransform(e,t,r)}touchmove(e,t,r){if(this._active){if(this._shouldBePrevented(r.length)){this._map.cooperativeGestures.notifyGestureBlocked("touch_pan",e);return}return e.preventDefault(),this._calculateTransform(e,t,r)}}touchend(e,t,r){this._calculateTransform(e,t,r),this._active&&this._shouldBePrevented(r.length)&&this.reset()}touchcancel(){this.reset()}_calculateTransform(e,t,r){r.length>0&&(this._active=!0);let i=ooe(r,t),n=new tr(0,0),a=new tr(0,0),o=0;for(let l in i){let u=i[l],c=this._touches[l];c&&(n._add(u),a._add(u.sub(c)),o++,i[l]=u)}if(this._touches=i,this._shouldBePrevented(o)||!a.mag())return;let s=a.div(o);if(this._sum._add(s),!(this._sum.mag()=2,n=t.mag()>=2;if(!i&&!n)return;if(!i||!n)return this._firstMove===void 0&&(this._firstMove=r),r-this._firstMove<100&&void 0;let a=e.y>0==t.y>0;return Gae(e)&&Gae(t)&&a}},mkr={panStep:100,bearingStep:15,pitchStep:10},plt=class{constructor(e,t){this._tr=t;let r=mkr;this._panStep=r.panStep,this._bearingStep=r.bearingStep,this._pitchStep=r.pitchStep,this._rotationDisabled=!1}reset(){this._active=!1}keydown(e){if(e.altKey||e.ctrlKey||e.metaKey)return;let t=0,r=0,i=0,n=0,a=0;switch(e.keyCode){case 61:case 107:case 171:case 187:t=1;break;case 189:case 109:case 173:t=-1;break;case 37:e.shiftKey?r=-1:(e.preventDefault(),n=-1);break;case 39:e.shiftKey?r=1:(e.preventDefault(),n=1);break;case 38:e.shiftKey?i=1:(e.preventDefault(),a=-1);break;case 40:e.shiftKey?i=-1:(e.preventDefault(),a=1);break;default:return}return this._rotationDisabled&&(r=0,i=0),{cameraAnimation:o=>{let s=this._tr;o.easeTo({duration:300,easeId:"keyboardHandler",easing:ykr,zoom:t?t0(s.zoom+t*(e.shiftKey?2:1),o.getZoomSnap()):s.zoom,bearing:s.bearing+r*this._bearingStep,pitch:s.pitch+i*this._pitchStep,offset:[-n*this._panStep,-a*this._panStep],center:s.center},{originalEvent:e})}}}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}disableRotation(){this._rotationDisabled=!0}enableRotation(){this._rotationDisabled=!1}};qot=4.000244140625,vlt=class{constructor(e,t,r){this._onTimeout=i=>{this._type="wheel",this._delta-=this._lastValue,this._active||this._start(i)},this._map=e,this._tr=r,this._triggerRenderFrame=t,this._delta=0,this._defaultZoomRate=.01,this._wheelZoomRate=.0022222222222222222}setZoomRate(e){this._defaultZoomRate=e}setWheelZoomRate(e){this._wheelZoomRate=e}isEnabled(){return!!this._enabled}isActive(){return!!this._active||this._finishTimeout!==void 0}isZooming(){return!!this._zooming}enable(e){this.isEnabled()||(this._enabled=!0,this._aroundCenter=!!e&&e.around==="center")}disable(){this.isEnabled()&&(this._enabled=!1)}_shouldBePrevented(e){return this._map.cooperativeGestures.isEnabled()?!(e.ctrlKey||this._map.cooperativeGestures.isBypassed(e)):!1}wheel(e){if(!this.isEnabled())return;if(this._shouldBePrevented(e)){this._map.cooperativeGestures.notifyGestureBlocked("wheel_zoom",e);return}let t=e.deltaMode===WheelEvent.DOM_DELTA_LINE?e.deltaY*40:e.deltaY,r=zo(),i=r-(this._lastWheelEventTime||0);this._lastWheelEventTime=r,t!==0&&t%qot==0?this._type="wheel":t!==0&&Math.abs(t)<4?this._type="trackpad":i>400?(this._type=null,this._lastValue=t,this._timeout=setTimeout(this._onTimeout,40,e)):this._type||(this._type=Math.abs(i*t)<200?"trackpad":"wheel",this._timeout&&(clearTimeout(this._timeout),this._timeout=null,t+=this._lastValue)),e.shiftKey&&t&&(t/=4),this._type&&(this._lastWheelEvent=e,this._delta-=t,this._active||this._start(e)),e.preventDefault()}_start(e){if(!this._delta)return;this._needsRerender=!1,this._active=!0,this.isZooming()||(this._zooming=!0),this._finishTimeout&&(clearTimeout(this._finishTimeout),delete this._finishTimeout);let t=Yn.mousePos(this._map.getCanvas(),e),r=this._tr;this._aroundPoint=this._aroundCenter?r.transform.locationToScreenPoint(pn.convert(r.center)):t,this._needsRerender||(this._needsRerender=!0,this._triggerRenderFrame())}renderFrame(){if(!this._needsRerender||(this._needsRerender=!1,!this.isActive()))return;let e=this._tr.transform;if(typeof this._lastExpectedZoom=="number"){let o=e.zoom-this._lastExpectedZoom;typeof this._startZoom=="number"&&(this._startZoom+=o),typeof this._targetZoom=="number"&&(this._targetZoom+=o)}if(this._delta!==0){let o=this._type==="wheel"&&Math.abs(this._delta)>qot?this._wheelZoomRate:this._defaultZoomRate,s=2/(1+Math.exp(-Math.abs(this._delta*o)));this._delta<0&&s!==0&&(s=1/s);let l=typeof this._targetZoom=="number"?Of(this._targetZoom):e.scale,u=e.applyConstrain(e.getCameraLngLat(),Uc(l*s)).zoom,c=this._map.getZoomSnap();if(this._type==="wheel"&&c>0){let f=t0(e.zoom,c);this._targetZoom=t0(u,c,u-f)}else this._targetZoom=u;this._type==="wheel"&&(this._startZoom=e.zoom,this._easing=this._smoothOutEasing(200)),this._delta=0}let t=typeof this._targetZoom=="number"?this._targetZoom:e.zoom,r=this._startZoom,i=this._easing,n=!1,a;if(this._type==="wheel"&&r&&i){let o=zo()-this._lastWheelEventTime,s=Math.min((o+5)/200,1),l=i(s);a=Ys.number(r,t,l),s<1?this._needsRerender=!0:n=!0}else a=t,n=!0;return this._active=!0,n&&(this._active=!1,this._finishTimeout=setTimeout(()=>{this._zooming=!1,this._triggerRenderFrame(),delete this._targetZoom,delete this._lastExpectedZoom,delete this._finishTimeout},200)),this._lastExpectedZoom=a,{noInertia:!0,needsRenderFrame:!n,zoomDelta:a-e.zoom,around:this._aroundPoint,originalEvent:this._lastWheelEvent}}_smoothOutEasing(e){let t=$B;if(this._prevEase){let r=this._prevEase,i=(zo()-r.start)/r.duration,n=r.easing(i+.01)-r.easing(i),a=.27/Math.sqrt(n*n+1e-4)*.01,o=Math.sqrt(.0729-a*a);t=jB(a,o,.25,1)}return this._prevEase={start:zo(),duration:e,easing:t},t}reset(){this._active=!1,this._zooming=!1,delete this._targetZoom,delete this._lastExpectedZoom,this._finishTimeout&&(clearTimeout(this._finishTimeout),delete this._finishTimeout)}},glt=class{constructor(e,t){this._clickZoom=e,this._tapZoom=t}enable(){this._clickZoom.enable(),this._tapZoom.enable()}disable(){this._clickZoom.disable(),this._tapZoom.disable()}isEnabled(){return this._clickZoom.isEnabled()&&this._tapZoom.isEnabled()}isActive(){return this._clickZoom.isActive()||this._tapZoom.isActive()}},xkr=class{constructor(e,t){this._tr=t,this.reset()}reset(){this._active=!1}dblclick(e,t){return e.preventDefault(),{cameraAnimation:r=>{r.easeTo({duration:300,zoom:t0(this._tr.zoom+(e.shiftKey?-1:1),r.getZoomSnap()),around:this._tr.transform.isPointOnMapSurface(t)?this._tr.unproject(t):void 0},{originalEvent:e})}}}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}},bkr=class{constructor(){this._tap=new soe({numTouches:1,numTaps:1}),this._zoomRate=1,this.reset()}setZoomRate(e){this._zoomRate=e!=null?e:1}reset(){this._active=!1,delete this._swipePoint,delete this._swipeTouch,delete this._tapTime,delete this._tapPoint,this._tap.reset()}touchstart(e,t,r){if(!this._swipePoint)if(!this._tapTime)this._tap.touchstart(e,t,r);else{let i=t[0],n=e.timeStamp-this._tapTime<500,a=this._tapPoint.dist(i)<30;!n||!a?this.reset():r.length>0&&(this._swipePoint=i,this._swipeTouch=r[0].identifier)}}touchmove(e,t,r){if(!this._tapTime)this._tap.touchmove(e,t,r);else if(this._swipePoint){if(r[0].identifier!==this._swipeTouch)return;let i=t[0],n=i.y-this._swipePoint.y;return this._swipePoint=i,e.preventDefault(),this._active=!0,{zoomDelta:n/128*this._zoomRate}}}touchend(e,t,r){if(this._tapTime)this._swipePoint&&r.length===0&&this.reset();else{let i=this._tap.touchend(e,t,r);i&&(this._tapTime=e.timeStamp,this._tapPoint=i)}}touchcancel(){this.reset()}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}},mlt=class{constructor(e,t,r){this._el=e,this._mousePan=t,this._touchPan=r}enable(e){this._inertiaOptions=e||{},this._mousePan.enable(),this._touchPan.enable(),this._el.classList.add("maplibregl-touch-drag-pan")}disable(){this._mousePan.disable(),this._touchPan.disable(),this._el.classList.remove("maplibregl-touch-drag-pan")}isEnabled(){return this._mousePan.isEnabled()&&this._touchPan.isEnabled()}isActive(){return this._mousePan.isActive()||this._touchPan.isActive()}},ylt=class{constructor(e,t,r,i){this._pitchWithRotate=e.pitchWithRotate,this._rollEnabled=e.rollEnabled,this._mouseRotate=t,this._mousePitch=r,this._mouseRoll=i}enable(){this._mouseRotate.enable(),this._pitchWithRotate&&this._mousePitch.enable(),this._rollEnabled&&this._mouseRoll.enable()}disable(){this._mouseRotate.disable(),this._mousePitch.disable(),this._mouseRoll.disable()}isEnabled(){return this._mouseRotate.isEnabled()&&(!this._pitchWithRotate||this._mousePitch.isEnabled())&&(!this._rollEnabled||this._mouseRoll.isEnabled())}isActive(){return this._mouseRotate.isActive()||this._mousePitch.isActive()||this._mouseRoll.isActive()}},xlt=class{constructor(e,t,r,i){this._el=e,this._touchZoom=t,this._touchRotate=r,this._tapDragZoom=i,this._rotationDisabled=!1,this._enabled=!0}enable(e){this._touchZoom.enable(e),this._rotationDisabled||this._touchRotate.enable(e),this._tapDragZoom.enable(),this._el.classList.add("maplibregl-touch-zoom-rotate")}disable(){this._touchZoom.disable(),this._touchRotate.disable(),this._tapDragZoom.disable(),this._el.classList.remove("maplibregl-touch-zoom-rotate")}isEnabled(){return this._touchZoom.isEnabled()&&(this._rotationDisabled||this._touchRotate.isEnabled())&&this._tapDragZoom.isEnabled()}isActive(){return this._touchZoom.isActive()||this._touchRotate.isActive()||this._tapDragZoom.isActive()}setZoomRate(e){this._touchZoom.setZoomRate(e),this._tapDragZoom.setZoomRate(e)}setZoomThreshold(e){this._touchZoom.setZoomThreshold(e)}disableRotation(){this._rotationDisabled=!0,this._touchRotate.disable()}enableRotation(){this._rotationDisabled=!1,this._touchZoom.isEnabled()&&this._touchRotate.enable()}},blt=class{constructor(e,t){this._bypassKey=navigator.userAgent.includes("Mac")?"metaKey":"ctrlKey",this._map=e,this._options=t,this._enabled=!1}isActive(){return!1}reset(){}_setupUI(){if(this._container)return;let e=this._map.getCanvasContainer();e.classList.add("maplibregl-cooperative-gestures"),this._container=Yn.create("div","maplibregl-cooperative-gesture-screen",e);let t=this._map._getUIString("CooperativeGesturesHandler.WindowsHelpText");this._bypassKey==="metaKey"&&(t=this._map._getUIString("CooperativeGesturesHandler.MacHelpText"));let r=this._map._getUIString("CooperativeGesturesHandler.MobileHelpText"),i=document.createElement("div");i.className="maplibregl-desktop-message",i.textContent=t,this._container.appendChild(i);let n=document.createElement("div");n.className="maplibregl-mobile-message",n.textContent=r,this._container.appendChild(n),this._container.setAttribute("aria-hidden","true")}_destroyUI(){this._container&&(this._container.remove(),this._map.getCanvasContainer().classList.remove("maplibregl-cooperative-gestures")),delete this._container}enable(){this._setupUI(),this._enabled=!0}disable(){this._enabled=!1,this._destroyUI()}isEnabled(){return this._enabled}isBypassed(e){return e[this._bypassKey]}notifyGestureBlocked(e,t){this._enabled&&(this._map.fire(new pc("cooperativegestureprevented",{gestureType:e,originalEvent:t})),this._container.classList.add("maplibregl-show"),setTimeout(()=>{this._container.classList.remove("maplibregl-show")},100))}},_kr=class{constructor(e){this._camera=e}get transform(){return this._camera._requestedCameraState||this._camera.transform}get center(){return{lng:this.transform.center.lng,lat:this.transform.center.lat}}get zoom(){return this.transform.zoom}get pitch(){return this.transform.pitch}get bearing(){return this.transform.bearing}unproject(e){return this.transform.screenPointToLocation(tr.convert(e),this._camera.terrain)}},Vq=e=>e.zoom||e.drag||e.roll||e.pitch||e.rotate,wkr=class extends i0{};Tkr=class{get _ownerDocument(){var e;return((e=this._el)==null?void 0:e.ownerDocument)||document}get _ownerWindow(){var e,t;return((t=(e=this._el)==null?void 0:e.ownerDocument)==null?void 0:t.defaultView)||window}constructor(e,t,r){this._terrainGesture={inFlight:!1,anchorElevation:null},this.handleWindowEvent=n=>{this.handleEvent(n,`${n.type}Window`)},this.handleEvent=(n,a)=>{if(n.type==="blur"){this.stop(!0);return}this._updatingCamera=!0;let o=n.type==="renderFrame"?void 0:n,s={needsRenderFrame:!1},l={},u={};for(let{handlerName:h,handler:p,allowed:d}of this._handlers){if(!p.isEnabled())continue;let v;if(this._blockedByActive(u,d,h))p.reset();else if(p[a||n.type]){if(Xtt(n,a||n.type)){let m=Yn.mousePos(this._map.getCanvas(),n);v=p[a||n.type](n,m)}else if(Ytt(n,a||n.type)){let m=n.touches,g=this._getMapTouches(m),w=Yn.touchPos(this._map.getCanvas(),g);v=p[a||n.type](n,w,g)}else Ztt(a||n.type)||(v=p[a||n.type](n));this.mergeHandlerResult(s,l,v,h,o),v!=null&&v.needsRenderFrame&&this._triggerRenderFrame()}(v||p.isActive())&&(u[h]=p)}let c={};for(let h in this._previousActiveHandlers)u[h]||(c[h]=o);this._previousActiveHandlers=u,(Object.keys(c).length||Hae(s))&&(this._changes.push([s,l,c]),this._triggerRenderFrame()),(Object.keys(u).length||Hae(s))&&this._camera.stop(!0),this._updatingCamera=!1;let{cameraAnimation:f}=s;f&&(this._inertia.clear(),this._fireEvents({},{},!0),this._changes=[],f(this._map))},this._map=e,this._camera=t,this._transformProvider=new _kr(this._camera),this._el=this._map.getCanvasContainer(),this._handlers=[],this._handlersById={},this._changes=[],this._inertia=new rkr(e),this._bearingSnap=r.bearingSnap,this._previousActiveHandlers={},this._eventsInProgress={},this._addDefaultHandlers(r);let i=this._el;this._listeners=[[i,"touchstart",{passive:!0}],[i,"touchmove",{passive:!1}],[i,"touchend",void 0],[i,"touchcancel",void 0],[i,"mousedown",void 0],[i,"mousemove",void 0],[i,"mouseup",void 0],[this._ownerDocument,"mousemove",{capture:!0}],[this._ownerDocument,"mouseup",void 0],[i,"mouseover",void 0],[i,"mouseout",void 0],[i,"dblclick",void 0],[i,"click",void 0],[i,"keydown",{capture:!1}],[i,"keyup",void 0],[i,"wheel",{passive:!1}],[i,"contextmenu",void 0],[this._ownerWindow,"blur",void 0]];for(let[n,a,o]of this._listeners)n.addEventListener(a,n===this._ownerDocument?this.handleWindowEvent:this.handleEvent,o)}destroy(){for(let[e,t,r]of this._listeners)e.removeEventListener(t,e===this._ownerDocument?this.handleWindowEvent:this.handleEvent,r)}_addDefaultHandlers(e){let t=this._map,r=t.getCanvasContainer();this._add("mapEvent",new ikr(t,e));let i=t.boxZoom=new clt(t,e,this._transformProvider);this._add("boxZoom",i),e.interactive&&e.boxZoom&&i.enable();let n=t.cooperativeGestures=new blt(t,e.cooperativeGestures);this._add("cooperativeGestures",n),e.cooperativeGestures&&n.enable();let a=new skr(t,this._transformProvider),o=new xkr(t,this._transformProvider);t.doubleClickZoom=new glt(o,a),this._add("tapZoom",a),this._add("clickZoom",o),e.interactive&&e.doubleClickZoom&&t.doubleClickZoom.enable();let s=new bkr;this._add("tapDragZoom",s);let l=t.touchPitch=new dlt(t);this._add("touchPitch",l),e.interactive&&e.touchPitch&&t.touchPitch.enable(e.touchPitch);let u=()=>this._camera.transform.centerPoint,c=dkr(e,u),f=pkr(e),h=vkr(e,u);t.dragRotate=new ylt(e,c,f,h),this._add("mouseRotate",c,["mousePitch"]),this._add("mousePitch",f,["mouseRotate","mouseRoll"]),this._add("mouseRoll",h,["mousePitch"]),e.interactive&&e.dragRotate&&t.dragRotate.enable();let p=hkr(e),d=new gkr(e,t);t.dragPan=new mlt(r,p,d),this._add("mousePan",p),this._add("touchPan",d,["touchZoom","touchRotate"]),e.interactive&&e.dragPan&&t.dragPan.enable(e.dragPan);let v=new hlt,m=new flt;t.touchZoomRotate=new xlt(r,m,v,s),this._add("touchRotate",v,["touchPan","touchZoom"]),this._add("touchZoom",m,["touchPan","touchRotate"]),e.interactive&&e.touchZoomRotate&&t.touchZoomRotate.enable(e.touchZoomRotate),this._add("blockableMapEvent",new nkr(t,e),["touchPan"]);let g=t.scrollZoom=new vlt(t,()=>this._triggerRenderFrame(),this._transformProvider);this._add("scrollZoom",g,["mousePan"]),e.interactive&&e.scrollZoom&&t.scrollZoom.enable(e.scrollZoom);let w=t.keyboard=new plt(t,this._transformProvider);this._add("keyboard",w),e.interactive&&e.keyboard&&t.keyboard.enable()}_add(e,t,r){this._handlers.push({handlerName:e,handler:t,allowed:r}),this._handlersById[e]=t}stop(e){if(!this._updatingCamera){for(let{handler:t}of this._handlers)t.reset();this._inertia.clear(),this._fireEvents({},{},e),this._changes=[]}}isActive(){for(let{handler:e}of this._handlers)if(e.isActive())return!0;return!1}isZooming(){return!!this._eventsInProgress.zoom||this._map.scrollZoom.isZooming()}isRotating(){return!!this._eventsInProgress.rotate}isMoving(){return!!Vq(this._eventsInProgress)||this.isZooming()}_blockedByActive(e,t,r){for(let i in e)if(i!==r&&!(t!=null&&t.includes(i)))return!0;return!1}_getMapTouches(e){let t=[];for(let r of e){let i=r.target;this._el.contains(i)&&t.push(r)}return t}mergeHandlerResult(e,t,r,i,n){if(!r)return;cn(e,r);let a={handlerName:i,originalEvent:r.originalEvent||n};r.zoomDelta!==void 0&&(t.zoom=a),r.panDelta!==void 0&&(t.drag=a),r.rollDelta!==void 0&&(t.roll=a),r.pitchDelta!==void 0&&(t.pitch=a),r.bearingDelta!==void 0&&(t.rotate=a)}_applyChanges(){let e={},t={},r={};for(let[i,n,a]of this._changes)i.panDelta&&(e.panDelta=(e.panDelta||new tr(0,0))._add(i.panDelta)),i.zoomDelta&&(e.zoomDelta=(e.zoomDelta||0)+i.zoomDelta),i.bearingDelta&&(e.bearingDelta=(e.bearingDelta||0)+i.bearingDelta),i.pitchDelta&&(e.pitchDelta=(e.pitchDelta||0)+i.pitchDelta),i.rollDelta&&(e.rollDelta=(e.rollDelta||0)+i.rollDelta),i.around!==void 0&&(e.around=i.around),i.pinchAround!==void 0&&(e.pinchAround=i.pinchAround),i.noInertia&&(e.noInertia=i.noInertia),cn(t,n),cn(r,a);this._updateMapTransform(e,t,r),this._changes=[]}_updateMapTransform(e,t,r){let i=this._map.terrain;if(!Hae(e)){this._fireEvents(t,r,!0);return}let n=this._camera.getTransformForUpdate();this._camera.stop(!0);let{panDelta:a,zoomDelta:o,bearingDelta:s,pitchDelta:l,rollDelta:u}=e,{around:c,aroundOnSurface:f}=this._resolveAround(e,i,n),h=i?this._terrainGestureElevation(i,c,f,n,t):void 0,p={panDelta:a,zoomDelta:o,rollDelta:u,pitchDelta:l,bearingDelta:s,around:c,aroundElevation:h};this._camera.cameraHelper.useGlobeControls&&!n.isPointOnMapSurface(c)&&(c=n.centerPoint);let d=this._computePreZoomAroundLoc(n,c,a,h);this._handleMapControls({terrain:i,tr:n,deltasForHelper:p,preZoomAroundLoc:d,combinedEventsInProgress:t,panDelta:a}),this._camera.applyUpdatedTransform(n),this._map._update(),e.noInertia||this._inertia.record(e),this._fireEvents(t,r,!0)}_resolveAround(e,t,r){let i=e.pinchAround===void 0?e.around:e.pinchAround;return i||(i=this._camera.transform.centerPoint),t&&!r.isPointOnMapSurface(i)?{around:r.centerPoint,aroundOnSurface:!1}:{around:i,aroundOnSurface:!0}}_terrainGestureElevation(e,t,r,i,n){if(!r)return;if(this._terrainGesture.anchorElevation===null&&(n.drag||n.zoom)){let o=i.screenTerrainPointToMercatorCoordinate(t,e);this._terrainGesture.anchorElevation=o?o.z:void 0}let a=this._terrainGesture.anchorElevation;if(a!=null&&!(t.distSqr(i.centerPoint)<.01)&&!(a-i.elevation>=.9*(i.getCameraAltitude()-i.elevation)))return a}_computePreZoomAroundLoc(e,t,r,i){if(t.distSqr(e.centerPoint)<.01)return e.center;let n=r?t.sub(r):t;return i===void 0?e.screenPointToLocation(n):e.screenPointToLocationAtElevation(n,i)}_handleMapControls({terrain:e,tr:t,deltasForHelper:r,preZoomAroundLoc:i,combinedEventsInProgress:n,panDelta:a}){let o=this._camera.cameraHelper;if(o.handleMapControlsRollPitchBearingZoom(r,t),!e&&!o.useGlobeControls&&!t.isPointOnMapSurface(r.around)){a&&t.setCenter(t.screenPointToLocation(t.centerPoint.sub(a)));return}if(!e){o.handleMapControlsPan(r,t,i);return}if(!this._terrainGesture.inFlight){this._terrainGesture.inFlight=!0,this._camera.elevationFreeze=!0,o.handleMapControlsPan(r,t,i);return}if(!o.useGlobeControls&&r.aroundElevation===void 0&&n.drag&&a){t.setCenter(t.screenPointToLocation(t.centerPoint.sub(a)));return}o.handleMapControlsPan(r,t,i)}_fireEvents(e,t,r){let i=Vq(this._eventsInProgress),n=Vq(e),a={};for(let c in e){let{originalEvent:f}=e[c];this._eventsInProgress[c]||(a[`${c}start`]=f),this._eventsInProgress[c]=e[c]}!i&&n&&this._fireEvent("movestart",n.originalEvent);for(let c in a)this._fireEvent(c,a[c]);n&&this._fireEvent("move",n.originalEvent);for(let c in e){let{originalEvent:f}=e[c];this._fireEvent(c,f)}let o={},s;for(let c in this._eventsInProgress){let{handlerName:f,originalEvent:h}=this._eventsInProgress[c];this._handlersById[f].isActive()||(delete this._eventsInProgress[c],s=t[f]||h,o[`${c}end`]=s)}for(let c in o)this._fireEvent(c,o[c]);let l=Vq(this._eventsInProgress),u=(i||n)&&!l;if(u&&this._terrainGesture.inFlight){this._camera.elevationFreeze=!1,this._terrainGesture={inFlight:!1,anchorElevation:null};let c=this._camera.getTransformForUpdate();this._map.getCenterClampedToGround()&&c.recalculateZoomAndCenter(this._map.terrain),this._camera.applyUpdatedTransform(c)}if(r&&u){this._updatingCamera=!0;let c=this._inertia._onMoveEnd(this._map.dragPan._inertiaOptions),f=h=>h!==0&&-this._bearingSnap{delete this._frameId,this.handleEvent(new wkr("renderFrame",{timeStamp:e})),this._applyChanges()})}_triggerRenderFrame(){this._frameId===void 0&&(this._frameId=this._requestFrame())}},Akr=class extends lu{constructor(e){var t,r,i;super(),this._renderFrameCallback=()=>{let n=Math.min((zo()-this._easeStart)/this._easeOptions.duration,1);this._onEaseFrame(this._easeOptions.easing(n)),n<1&&this._easeFrameId?this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback):this.stop()},this.transform=new Qq,this.cameraHelper=new eO,e.minZoom!==void 0&&this.transform.setMinZoom(e.minZoom),e.maxZoom!==void 0&&this.transform.setMaxZoom(e.maxZoom),e.minPitch!==void 0&&this.transform.setMinPitch(e.minPitch),e.maxPitch!==void 0&&this.transform.setMaxPitch(e.maxPitch),e.renderWorldCopies!==void 0&&this.transform.setRenderWorldCopies(e.renderWorldCopies),e.transformConstrain!==null&&this.transform.setConstrainOverride(e.transformConstrain),this._moving=!1,this._zooming=!1,this._bearingSnap=e.bearingSnap,this._zoomSnap=e.zoomSnap,this._requestRenderFrame=e.requestRenderFrame,this._cancelRenderFrame=e.cancelRenderFrame,this.terrain=e.terrain,this._centerClampedToGround=(t=e.centerClampedToGround)!=null?t:!0,this.transformCameraUpdate=(r=e.transformCameraUpdate)!=null?r:null,this._stopHandlers=(i=e.stopHandlers)!=null?i:(()=>{}),this.on("moveend",()=>{delete this._requestedCameraState})}setTerrain(e){this.terrain=e,this.applyTerrainChange()}migrateProjection(e,t){if(e.apply(this.transform,!0),this.transform=e,this.cameraHelper=t,this._requestedCameraState){let r=e.clone();r.apply(this._requestedCameraState,!0),this._requestedCameraState=r}}getCenter(){return new pn(this.transform.center.lng,this.transform.center.lat)}setCenter(e,t){return this.jumpTo({center:e},t)}getCenterElevation(){return this.transform.elevation}setCenterElevation(e,t){return this.jumpTo({elevation:e},t),this}getCenterClampedToGround(){return this._centerClampedToGround}setCenterClampedToGround(e){this._centerClampedToGround=e}panBy(e,t,r){return e=tr.convert(e).mult(-1),this.panTo(this.transform.center,cn({offset:e},t),r)}panTo(e,t,r){return this.easeTo(cn({center:e},t),r)}getZoom(){return this.transform.zoom}setZoom(e,t){return this.jumpTo({zoom:e},t),this}zoomTo(e,t,r){return this.easeTo(cn({zoom:e},t),r)}zoomIn(e,t){return this.zoomTo(t0(this.getZoom()+1,this._zoomSnap),e,t),this}zoomOut(e,t){return this.zoomTo(t0(this.getZoom()-1,this._zoomSnap),e,t),this}getVerticalFieldOfView(){return this.transform.fov}setVerticalFieldOfView(e,t){return e!=this.transform.fov&&(this.applyTransformChange(r=>r.setFov(e)),this.fire(new kn("movestart",t)).fire(new kn("move",t)).fire(new kn("moveend",t))),this}getBearing(){return this.transform.bearing}setZoomSnap(e){return this._zoomSnap=e,this}getZoomSnap(){return this._zoomSnap}setBearing(e,t){return this.jumpTo({bearing:e},t),this}getPadding(){return this.transform.padding}setPadding(e,t){return this.jumpTo({padding:e},t),this}rotateTo(e,t,r){return this.easeTo(cn({bearing:e},t),r)}resetNorth(e,t){return this.rotateTo(0,cn({duration:1e3},e),t),this}resetNorthPitch(e,t){return this.easeTo(cn({bearing:0,pitch:0,roll:0,duration:1e3},e),t),this}snapToNorth(e,t){return Math.abs(this.getBearing()){d.easeFunc(v),this.terrain&&!e.freezeElevation&&this._updateElevation(v,r),this.applyUpdatedTransform(r),this._fireMoveEvents(t)},v=>{this.terrain&&e.freezeElevation?this._finalizeElevation():this.elevationFreeze=!1,this._afterEase(t,v)},e),this}_prepareEase(e,t,r={}){this._moving=!0,!t&&!r.moving&&this.fire(new kn("movestart",e)),this._zooming&&!r.zooming&&this.fire(new kn("zoomstart",e)),this._rotating&&!r.rotating&&this.fire(new kn("rotatestart",e)),this._pitching&&!r.pitching&&this.fire(new kn("pitchstart",e)),this._rolling&&!r.rolling&&this.fire(new kn("rollstart",e))}_prepareElevation(e,t){this._elevationCenter=e,this._elevationStart=t.elevation,this._elevationTarget=this.terrain.getElevationForLngLat(e,t),this.elevationFreeze=!0}_updateElevation(e,t){(this._elevationStart===void 0||this._elevationCenter===void 0)&&this._prepareElevation(t.center,t),t.setMinElevationForCurrentTile(this.terrain.getMinTileElevationForLngLatZoom(this._elevationCenter,t.tileZoom));let r=this.terrain.getElevationForLngLat(this._elevationCenter,t);if(e<1&&r!==this._elevationTarget){let i=this._elevationTarget-this._elevationStart,n=(r-(i*e+this._elevationStart))/(1-e);this._elevationStart+=e*(i-n),this._elevationTarget=r}t.setElevation(Ys.number(this._elevationStart,this._elevationTarget,e))}_finalizeElevation(){this.elevationFreeze=!1,this.getCenterClampedToGround()&&this.transform.recalculateZoomAndCenter(this.terrain)}applyTerrainChange(){if(this.elevationFreeze)return;let e=this.transform;e.setMinElevationForCurrentTile(this.terrain?this.terrain.getMinTileElevationForLngLatZoom(e.center,e.tileZoom):0),this.getCenterClampedToGround()&&e.setElevation(this.terrain?this.terrain.getElevationForLngLat(e.center,e):0)}getTransformForUpdate(){return!this.transformCameraUpdate&&!this.terrain?this.transform:(this._requestedCameraState||(this._requestedCameraState=this.transform.clone()),this._requestedCameraState)}_elevateCameraIfInsideTerrain(e){if(!this.terrain&&e.elevation>=0&&e.pitch<=90)return{};let t=e.getCameraLngLat(),r=e.getCameraAltitude(),i=this.terrain?this.terrain.getElevationForLngLatZoom(t,e.zoom):0;if(rthis._elevateCameraIfInsideTerrain(i)),this.transformCameraUpdate&&t.push(i=>this.transformCameraUpdate(i)),!t.length)return;let r=e.clone();for(let i of t){let n=r.clone(),{center:a,zoom:o,roll:s,pitch:l,bearing:u,elevation:c}=i(n);a&&n.setCenter(a),c!==void 0&&n.setElevation(c),o!==void 0&&n.setZoom(o),s!==void 0&&n.setRoll(s),l!==void 0&&n.setPitch(l),u!==void 0&&n.setBearing(u),r.apply(n,!1)}this.transform.apply(r,!1)}applyTransformChange(e){let t=this._requestedCameraState!==void 0,r=this.getTransformForUpdate();e(r),this.applyUpdatedTransform(r),t||delete this._requestedCameraState}_fireMoveEvents(e){this.fire(new kn("move",e)),this._zooming&&this.fire(new kn("zoom",e)),this._rotating&&this.fire(new kn("rotate",e)),this._pitching&&this.fire(new kn("pitch",e)),this._rolling&&this.fire(new kn("roll",e))}_afterEase(e,t){if(this._easeId&&t&&this._easeId===t)return;delete this._easeId;let r=this._zooming,i=this._rotating,n=this._pitching,a=this._rolling;this._moving=!1,this._zooming=!1,this._rotating=!1,this._pitching=!1,this._rolling=!1,this._padding=!1,r&&this.fire(new kn("zoomend",e)),i&&this.fire(new kn("rotateend",e)),n&&this.fire(new kn("pitchend",e)),a&&this.fire(new kn("rollend",e)),this.fire(new kn("moveend",e))}flyTo(e,t){if(!e.essential&&a0.prefersReducedMotion){let k=$6(e,["center","zoom","bearing","pitch","roll","elevation","padding"]);return this.jumpTo(k,t)}this.stop(),e=cn({offset:[0,0],speed:1.2,curve:1.42,easing:$B},e),e.zoom!==void 0&&this._zoomSnap&&(e.zoom=t0(e.zoom,this._zoomSnap));let r=this.getTransformForUpdate(),i=r.bearing,n=r.pitch,a=r.roll,o=r.padding,s=e.bearing===void 0?i:this._normalizeBearing(e.bearing,i),l=e.pitch===void 0?n:+e.pitch,u=e.roll===void 0?a:this._normalizeBearing(e.roll,a),c=e.padding===void 0?r.padding:e.padding,f=tr.convert(e.offset),h=r.centerPoint.add(f),p=r.screenPointToLocation(h),d=this.cameraHelper.handleFlyTo(r,{bearing:s,pitch:l,roll:u,padding:c,locationAtOffset:p,offsetAsPoint:f,center:e.center,minZoom:e.minZoom,zoom:e.zoom}),v=e.curve,m=Math.max(r.width,r.height),g=m/d.scaleOfZoom,w=d.pixelPathLength,_=m/d.scaleOfMinZoom;v=Math.min(v,Math.sqrt(_/w*2));let b=v*v;function S(k){let D=(g*g-m*m+(k?-1:1)*b*b*w*w)/(2*(k?g:m)*b*w);return Math.log(Math.sqrt(D*D+1)-D)}function x(k){return(Math.exp(k)-Math.exp(-k))/2}function T(k){return(Math.exp(k)+Math.exp(-k))/2}function A(k){return x(k)/T(k)}let y=S(!1),E=function(k){return T(y)/T(y+v*k)},M=function(k){return m*((T(y)*A(y+v*k)-x(y))/b)/w},C=(S(!0)-y)/v;if(Math.abs(w)<2e-6||!isFinite(C)){if(Math.abs(m-g)<1e-6)return this.easeTo(e,t);let k=g0,E=D=>Math.exp(k*v*D)}if(e.duration!==void 0)e.duration=+e.duration;else{let k=e.screenSpeed===void 0?+e.speed:+e.screenSpeed/v;e.duration=1e3*C/k}return e.maxDuration&&e.duration>e.maxDuration&&(e.duration=0),this._zooming=!0,this._rotating=i!==s,this._pitching=l!==n,this._rolling=u!==a,this._padding=!r.isPaddingEqual(c),this._prepareEase(t,!1),this.terrain&&this._prepareElevation(d.targetCenter,r),this._ease(k=>{let D=k*C,L=1/E(D),P=M(D);this._rotating&&r.setBearing(Ys.number(i,s,k)),this._pitching&&r.setPitch(Ys.number(n,l,k)),this._rolling&&r.setRoll(Ys.number(a,u,k)),this._padding&&(r.interpolatePadding(o,c,k),h=r.centerPoint.add(f)),d.easeFunc(k,L,P,h),this.terrain&&!e.freezeElevation&&this._updateElevation(k,r),this.applyUpdatedTransform(r),this._fireMoveEvents(t)},()=>{this.terrain&&e.freezeElevation?this._finalizeElevation():this.elevationFreeze=!1,this._afterEase(t)},e),this}isEasing(){return!!this._easeFrameId}stop(e){return this._stop(e)}_stop(e,t){if(this._easeFrameId&&(this._cancelRenderFrame(this._easeFrameId),delete this._easeFrameId,delete this._onEaseFrame),this._onEaseEnd){let r=this._onEaseEnd;delete this._onEaseEnd,r.call(this,t)}return e||this._stopHandlers(),this}_ease(e,t,r){r.animate===!1||r.duration===0?(e(1),t()):(this._easeStart=zo(),this._easeOptions=r,this._onEaseFrame=e,this._onEaseEnd=t,this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback))}_normalizeBearing(e,t){e=j0(e,-180,180);let r=Math.abs(e-t);return Math.abs(e-360-t)MapLibre'},wlt=class{constructor(e=_lt){this._toggleAttribution=()=>{this._container.classList.contains("maplibregl-compact")&&(this._container.classList.contains("maplibregl-compact-show")?(this._container.setAttribute("open",""),this._container.classList.remove("maplibregl-compact-show")):(this._container.classList.add("maplibregl-compact-show"),this._container.removeAttribute("open")))},this._updateData=t=>{t&&(t.type==="terrain"||t.dataType==="style"||t.dataType==="source"&&(t.sourceDataType==="metadata"||t.sourceDataType==="visibility"))&&this._updateAttributions()},this._updateCompact=()=>{this._map.getCanvasContainer().offsetWidth<=640||this._compact?this._compact===!1?this._container.setAttribute("open",""):!this._container.classList.contains("maplibregl-compact")&&!this._container.classList.contains("maplibregl-attrib-empty")&&(this._container.setAttribute("open",""),this._container.classList.add("maplibregl-compact","maplibregl-compact-show")):(this._container.setAttribute("open",""),this._container.classList.contains("maplibregl-compact")&&this._container.classList.remove("maplibregl-compact","maplibregl-compact-show"))},this._updateCompactMinimize=()=>{this._container.classList.contains("maplibregl-compact")&&this._container.classList.contains("maplibregl-compact-show")&&this._container.classList.remove("maplibregl-compact-show")},this.options=e}getDefaultPosition(){return"bottom-right"}onAdd(e){return this._map=e,this._compact=this.options.compact,this._container=Yn.create("details","maplibregl-ctrl maplibregl-ctrl-attrib"),this._compactButton=Yn.create("summary","maplibregl-ctrl-attrib-button",this._container),this._compactButton.addEventListener("click",this._toggleAttribution),this._setElementTitle(this._compactButton,"ToggleAttribution"),this._innerContainer=Yn.create("div","maplibregl-ctrl-attrib-inner",this._container),this._updateAttributions(),this._updateCompact(),this._map.on("styledata",this._updateData),this._map.on("sourcedata",this._updateData),this._map.on("terrain",this._updateData),this._map.on("resize",this._updateCompact),this._map.on("drag",this._updateCompactMinimize),this._container}onRemove(){this._container.remove(),this._map.off("styledata",this._updateData),this._map.off("sourcedata",this._updateData),this._map.off("terrain",this._updateData),this._map.off("resize",this._updateCompact),this._map.off("drag",this._updateCompactMinimize),this._map=void 0,this._compact=void 0,this._attribHTML=void 0}_setElementTitle(e,t){let r=this._map._getUIString(`AttributionControl.${t}`);e.title=r,e.setAttribute("aria-label",r)}_updateAttributions(){if(!this._map.style)return;let e=[];if(this.options.customAttribution&&(Array.isArray(this.options.customAttribution)?e=e.concat(this.options.customAttribution.map(i=>typeof i=="string"?i:"")):typeof this.options.customAttribution=="string"&&e.push(this.options.customAttribution)),this._map.style.stylesheet){let i=this._map.style.stylesheet;this.styleOwner=i.owner,this.styleId=i.id}let t=this._map.style.tileManagers;for(let i in t){let n=t[i];if(n.used||n.usedForTerrain){let a=n.getSource();a.attribution&&!e.includes(a.attribution)&&e.push(a.attribution)}}e=e.filter(i=>String(i).trim()),e.sort((i,n)=>i.length-n.length),e=e.filter((i,n)=>{for(let a=n+1;a{let t=this._container.children;if(t.length){let r=t[0];this._map.getCanvasContainer().offsetWidth<=640||this._compact?this._compact!==!1&&r.classList.add("maplibregl-compact"):r.classList.remove("maplibregl-compact")}},this.options=e}getDefaultPosition(){return"bottom-left"}onAdd(e){var r;this._map=e,this._compact=(r=this.options)==null?void 0:r.compact,this._container=Yn.create("div","maplibregl-ctrl");let t=Yn.create("a","maplibregl-ctrl-logo");return t.target="_blank",t.rel="noopener nofollow",t.href="https://maplibre.org/",t.setAttribute("aria-label",this._map._getUIString("LogoControl.Title")),t.setAttribute("rel","noopener nofollow"),this._container.appendChild(t),this._container.style.display="block",this._map.on("resize",this._updateCompact),this._updateCompact(),this._container}onRemove(){this._container.remove(),this._map.off("resize",this._updateCompact),this._map=void 0,this._compact=void 0}},Mkr=class{constructor(){this._queue=[],this._id=0,this._cleared=!1,this._currentlyRunning=!1}add(e){let t=++this._id;return this._queue.push({callback:e,id:t,cancelled:!1}),t}remove(e){let t=this._currentlyRunning,r=t?this._queue.concat(t):this._queue;for(let i of r)if(i.id===e){i.cancelled=!0;return}}run(e=0){if(this._currentlyRunning)throw Error("Attempting to run(), but is already running.");let t=this._currentlyRunning=this._queue;this._queue=[];let r=!1,i;for(let n of t)if(!n.cancelled){try{n.callback(e)}catch(a){r||(r=!0,i=a)}if(this._cleared)break}if(this._cleared=!1,this._currentlyRunning=!1,r)throw i}clear(){this._currentlyRunning&&(this._cleared=!0),this._queue=[]}},Oot=["none","zoom","sourceTiles","visibleLayers","revision"],Skr=class{constructor(e,t,r,i){this._tileKeys=e.map(n=>n.key).sort().join(),this._revision=t,this._zoom=r,this._visibleLayerIds=i}difference(e){return this._revision===(e==null?void 0:e._revision)?this._visibleLayerIds===e._visibleLayerIds?this._tileKeys===e._tileKeys?this._zoom===e._zoom?"none":"zoom":"sourceTiles":"visibleLayers":"revision"}},iT={background:!0,fill:!0,line:!0,raster:!0,hillshade:!0,"color-relief":!0},Ekr=class{constructor(e,t){this.needsFollowUpFrame=!1,this.painter=e,this.terrain=t,this.rttSize=t.tileManager.tileSize*t.qualityFactor}getTexture(e){return e.getRTT(this._stacks.length-1).texture}prepareForRender(e,t){let r=t!==this._lastPrepareZoom;this._lastPrepareZoom=t,this._stacks=[],this._prevType=null,this._rttTiles=[],this._renderableTiles=this.terrain.tileManager.getRenderableTiles(),this._renderableLayerIds=e._order.filter(s=>!e._layers[s].isHidden(t));let i=this._renderableLayerIds.join(),n=new Set;for(let s of this._renderableLayerIds){let l=e._layers[s],u=l.source;u&&iT[l.type]&&n.add(u)}this._coordsAscending={},this._rttFingerprints={};for(let s of n){let l=e.tileManagers[s];if(!l)continue;this._coordsAscending[s]={};let u=this._coordsAscending[s],c=l.getSource(),f=c instanceof sT?c.terrainTileRanges:null;for(let d of l.getVisibleCoordinates()){let v=this.terrain.tileManager.getTerrainCoords(d,f);for(let m in v)u[m]||(u[m]=[]),u[m].push(v[m])}this._rttFingerprints[s]={};let h=this._rttFingerprints[s],p=l.getState().revision;for(let d in u)h[d]=new Skr(u[d],p,t,i)}this.needsFollowUpFrame=!1;let a=r||this.painter.options.moving,o=!1;for(let s of this._renderableTiles){let l=this._textureDifference(s);l!=="none"&&(l==="zoom"&&a||l==="visibleLayers"&&r?this.needsFollowUpFrame=!0:l==="zoom"||l==="sourceTiles"?(o?this.needsFollowUpFrame=!0:s.releaseRTT(this.painter),o=!0):s.releaseRTT(this.painter))}}_textureDifference(e){let t="none";for(let r in this._rttFingerprints){let i=this._rttFingerprints[r][e.tileID.key];if(!i)continue;let n=i.difference(e.rttFingerprint[r]);Oot.indexOf(n)>Oot.indexOf(t)&&(t=n)}return t}renderLayer(e,t){if(e.isHidden(this.painter.transform.zoom))return!1;let r=e.type,i=this.painter,n=this._renderableLayerIds[this._renderableLayerIds.length-1]===e.id;if(iT[r]&&((!this._prevType||!iT[this._prevType])&&this._stacks.push([]),this._prevType=r,this._stacks[this._stacks.length-1].push(e.id),!n))return!0;if(iT[this._prevType]||iT[r]&&n){this._prevType=r;let a=this._stacks.length-1,o=this._stacks[a]||[];t.isRenderingToTexture=!0;for(let s of this._renderableTiles){if(this._rttTiles.push(s),s.getRTT(a))continue;let l=s.acquireRTT(i,a,this.rttSize);i.bindRTT(l),i.context.clear({color:na.transparent,stencil:0}),i.currentStencilSource=void 0;for(let u of o){let c=i.style._layers[u],f=c.source?this._coordsAscending[c.source][s.tileID.key]:[s.tileID];i.context.viewport.set([0,0,this.rttSize,this.rttSize]),i.renderTileClippingMasks(c,f),i.renderLayer(i,i.style.tileManagers[c.source],c,f,t),c.source&&(s.rttFingerprint[c.source]=this._rttFingerprints[c.source][s.tileID.key])}l.texture.generateMipmap()}return t.isRenderingToTexture=!1,jEr(this.painter,this.terrain,this._rttTiles,t),this._rttTiles=[],iT[r]}return!1}},kkr={"AttributionControl.ToggleAttribution":"Toggle attribution","AttributionControl.MapFeedback":"Map feedback","FullscreenControl.Enter":"Enter fullscreen","FullscreenControl.Exit":"Exit fullscreen","GeolocateControl.FindMyLocation":"Find my location","GeolocateControl.LocationNotAvailable":"Location not available","LogoControl.Title":"MapLibre logo","Map.Title":"Map","Marker.Title":"Map marker","NavigationControl.ResetBearing":"Drag to rotate map, click to reset north","NavigationControl.ZoomIn":"Zoom in","NavigationControl.ZoomOut":"Zoom out","Popup.Close":"Close popup","ScaleControl.Feet":"ft","ScaleControl.Meters":"m","ScaleControl.Kilometers":"km","ScaleControl.Miles":"mi","ScaleControl.NauticalMiles":"nm","GlobeControl.Enable":"Enable globe","GlobeControl.Disable":"Disable globe","TerrainControl.Enable":"Enable terrain","TerrainControl.Disable":"Disable terrain","CooperativeGesturesHandler.WindowsHelpText":"Use Ctrl + scroll to zoom the map","CooperativeGesturesHandler.MacHelpText":"Use \u2318 + scroll to zoom the map","CooperativeGesturesHandler.MobileHelpText":"Use two fingers to move the map"},Ckr=Got,Not={hash:!1,interactive:!0,bearingSnap:7,zoomSnap:0,attributionControl:_lt,maplibreLogo:!1,refreshExpiredTiles:!0,canvasContextAttributes:{antialias:!1,preserveDrawingBuffer:!1,powerPreference:"high-performance",failIfMajorPerformanceCaveat:!1,desynchronized:!1,contextType:void 0},scrollZoom:!0,minZoom:-2,maxZoom:22,minPitch:0,maxPitch:60,boxZoom:!0,dragRotate:!0,dragPan:!0,keyboard:!0,doubleClickZoom:!0,touchZoomRotate:!0,touchPitch:!0,cooperativeGestures:!1,trackResize:!0,center:[0,0],elevation:0,zoom:0,bearing:0,pitch:0,roll:0,renderWorldCopies:!0,maxTileCacheSize:null,maxTileCacheZoomLevels:r0.MAX_TILE_CACHE_ZOOM_LEVELS,transformRequest:null,transformCameraUpdate:null,transformConstrain:null,fadeDuration:300,crossSourceCollisions:!0,clickTolerance:3,localIdeographFontFamily:"sans-serif",pitchWithRotate:!0,rollEnabled:!1,rotateSpeed:.8,pitchSpeed:-.5,reduceMotion:void 0,validateStyle:!0,maxCanvasSize:[4096,4096],cancelPendingTileRequestsWhileZooming:!0,centerClampedToGround:!0,terrainSkirtLength:"auto",zoomLevelsToOverscale:4,anisotropicFilterPitch:20},Dkr=class extends lu{get _ownerWindow(){var e,t;return((t=(e=this._container)==null?void 0:e.ownerDocument)==null?void 0:t.defaultView)||window}constructor(e){var n,a,o;super(),this._idleTriggered=!1,this._crossFadingFactor=1,this._renderTaskQueue=new Mkr,this._controls=[],this._mapId=cne(),this._styleUrl=null,this._missingStyleImageResolver=null,this._lostContextStyle={style:null,images:null},this._contextLost=s=>{if(s.preventDefault(),this._frameRequest&&(this._frameRequest=(this._frameRequest.abort(),null)),this.painter.destroy(),this._lostContextStyle=this._getStyleAndImages(),!this.style){this.fire(new Hq("webglcontextlost",{originalEvent:s}));return}for(let l of Object.values(this.style._layers))if(l.type==="custom"&&console.warn(`Custom layer with id '${l.id}' cannot be restored after WebGL context loss. You will need to re-add it manually after context restoration.`),l._listeners)for(let[u]of Object.entries(l._listeners))console.warn(`Custom layer with id '${l.id}' had event listeners for event '${u}' which cannot be restored after WebGL context loss. You will need to re-add them manually after context restoration.`);this.style.destroy(),this.style=null,this.fire(new Hq("webglcontextlost",{originalEvent:s}))},this._contextRestored=s=>{if(this._lostContextStyle.style&&this.setStyle(this._lostContextStyle.style,{diff:!1}),this._lostContextStyle.images&&this.style){this.style.imageManager.images=this._lostContextStyle.images;for(let l in this._lostContextStyle.images){let u=this._lostContextStyle.images[l];u.isWebGLImage&&this.style.imageManager.updateImage(l,u,!1)}}this._lostContextStyle={style:null,images:null};try{this._setupPainter()}catch(l){this.fire(new An(l));return}this.resize(),this._update(),this._resizeInternal(),this.fire(new Hq("webglcontextrestored",{originalEvent:s}))},this._onMapScroll=s=>{if(s.target===this._container)return this._container.scrollTop=0,this._container.scrollLeft=0,!1},this._onWindowOnline=()=>{this._update()};let t=_a(dn(dn({},Not),e),{canvasContextAttributes:dn(dn({},Not.canvasContextAttributes),e.canvasContextAttributes)});if(t.minZoom!=null&&t.maxZoom!=null&&t.minZoom>t.maxZoom)throw Error("maxZoom must be greater than or equal to minZoom");if(t.minPitch!=null&&t.maxPitch!=null&&t.minPitch>t.maxPitch)throw Error("maxPitch must be greater than or equal to minPitch");if(t.minPitch!=null&&t.minPitch<0)throw Error("minPitch must be greater than or equal to 0");if(t.maxPitch!=null&&t.maxPitch>180)throw Error("maxPitch must be less than or equal to 180");this._camera=new Akr({minZoom:t.minZoom,maxZoom:t.maxZoom,minPitch:t.minPitch,maxPitch:t.maxPitch,bearingSnap:t.bearingSnap,zoomSnap:t.zoomSnap,renderWorldCopies:t.renderWorldCopies,centerClampedToGround:t.centerClampedToGround,terrain:this.terrain,transformConstrain:t.transformConstrain,requestRenderFrame:s=>this._requestRenderFrame(s),cancelRenderFrame:s=>this._cancelRenderFrame(s),transformCameraUpdate:t.transformCameraUpdate,stopHandlers:()=>{var s;return(s=this._handlers)==null?void 0:s.stop(!1)}}),this._camera.setEventedParent(this),this._interactive=t.interactive,this._maxTileCacheSize=t.maxTileCacheSize,this._maxTileCacheZoomLevels=t.maxTileCacheZoomLevels,this._canvasContextAttributes=dn({},t.canvasContextAttributes),this._trackResize=t.trackResize===!0,this._terrainSkirtLength=t.terrainSkirtLength,this._refreshExpiredTiles=t.refreshExpiredTiles===!0,this._fadeDuration=t.fadeDuration,this._crossSourceCollisions=t.crossSourceCollisions===!0,this._collectResourceTiming=t.collectResourceTiming===!0,this._locale=dn(dn({},kkr),t.locale),this._clickTolerance=t.clickTolerance,this._overridePixelRatio=t.pixelRatio,this._maxCanvasSize=t.maxCanvasSize,this._zoomLevelsToOverscale=t.zoomLevelsToOverscale,this.cancelPendingTileRequestsWhileZooming=t.cancelPendingTileRequestsWhileZooming===!0,this.setAnisotropicFilterPitch(t.anisotropicFilterPitch),t.reduceMotion!==void 0&&(a0.prefersReducedMotion=t.reduceMotion),this._requestManager=new I6r(t.transformRequest),this._container=this._resolveContainer(t.container),t.maxBounds&&this.setMaxBounds(t.maxBounds),this._setupContainer();try{this._setupPainter()}catch(s){throw this._cleanupContainer(),s}this._imageQueueHandle=Pv.addThrottleControl(()=>this.isMoving()),this.on("move",()=>this._update(!1)),this.on("moveend",()=>this._update(!1)),this.on("zoom",()=>this._update(!0)),this.on("terrain",()=>{this.painter.markTerrainDepthDirty(),this._update(!0)}),this.once("idle",()=>this._idleTriggered=!0),this._handlers=new Tkr(this,this._camera,t),typeof window<"u"&&(this._ownerWindow.addEventListener("online",this._onWindowOnline,!1),this._setupResizeObserver());let r=typeof t.hash=="string"&&t.hash||void 0;this._hash=t.hash?new ult(r).addTo(this):void 0,(n=this._hash)!=null&&n._onHashChange()||(this.jumpTo({center:t.center,elevation:t.elevation,zoom:t.zoom,bearing:t.bearing,pitch:t.pitch,roll:t.roll}),t.bounds&&(this.resize(),this.fitBounds(t.bounds,cn({},t.fitBoundsOptions,{duration:0}))));let i=typeof t.style=="string"||((o=(a=t.style)==null?void 0:a.projection)==null?void 0:o.type)!=="globe";this.resize(null,i),this._localIdeographFontFamily=t.localIdeographFontFamily,this._validateStyle=t.validateStyle,t.style&&this.setStyle(t.style,{localIdeographFontFamily:t.localIdeographFontFamily}),t.attributionControl&&this.addControl(new wlt(typeof t.attributionControl=="boolean"?void 0:t.attributionControl)),t.maplibreLogo&&this.addControl(new Tlt,t.logoPosition),this.on("style.load",()=>{if(i||this._resizeTransform(),this._camera.transform.unmodified){let s=$6(this.style.stylesheet,["center","zoom","bearing","pitch","roll"]);this.jumpTo(s)}}),this.on("data",s=>{this._update(s.dataType==="style"),this.fire(s.dataType==="style"?new cp("styledata",s):new qs("sourcedata",s))}),this.on("dataloading",s=>{this.fire(s.dataType==="style"?new cp("styledataloading",s):new qs("sourcedataloading",s))}),this.on("dataabort",s=>{this.fire(new qs("sourcedataabort",s))})}_getMapId(){return this._mapId}setGlobalStateProperty(e,t){return this.style.setGlobalStateProperty(e,t),this._update(!0)}getGlobalState(){return this.style.getGlobalState()}addControl(e,t){if(t===void 0&&(t=e.getDefaultPosition?e.getDefaultPosition():"top-right"),!(e!=null&&e.onAdd))return this.fire(new An(Error("Invalid argument to map.addControl(). Argument must be a control with onAdd and onRemove methods.")));let r=e.onAdd(this);this._controls.push(e);let i=this._controlPositions[t];return t.includes("bottom")?i.insertBefore(r,i.firstChild):i.appendChild(r),this}removeControl(e){if(!(e!=null&&e.onRemove))return this.fire(new An(Error("Invalid argument to map.removeControl(). Argument must be a control with onAdd and onRemove methods.")));let t=this._controls.indexOf(e);return t>-1&&this._controls.splice(t,1),e.onRemove(this),this}hasControl(e){return this._controls.includes(e)}coveringTiles(e){return lT(this._camera.transform,e)}setTransformCameraUpdate(e){this._camera.transformCameraUpdate=e}getCenter(){return new pn(this._camera.transform.center.lng,this._camera.transform.center.lat)}setCenter(e,t){return this._camera.setCenter(e,t),this}getCenterElevation(){return this._camera.transform.elevation}setCenterElevation(e,t){return this._camera.setCenterElevation(e,t),this}setCenterClampedToGround(e){this._camera.setCenterClampedToGround(e)}panBy(e,t,r){return this._camera.panBy(e,t,r),this}panTo(e,t,r){return this._camera.panTo(e,t,r),this}getZoom(){return this._camera.transform.zoom}setZoom(e,t){return this._camera.setZoom(e,t),this}zoomTo(e,t,r){return this._camera.zoomTo(e,t,r),this}zoomIn(e,t){return this._camera.zoomIn(e,t),this}zoomOut(e,t){return this._camera.zoomOut(e,t),this}getVerticalFieldOfView(){return this._camera.transform.fov}setVerticalFieldOfView(e,t){return this._camera.setVerticalFieldOfView(e,t),this}getBearing(){return this._camera.transform.bearing}setBearing(e,t){return this._camera.setBearing(e,t),this}getZoomSnap(){return this._camera.getZoomSnap()}setZoomSnap(e){return this._camera.setZoomSnap(e),this}getPadding(){return this._camera.transform.padding}setPadding(e,t){return this._camera.setPadding(e,t),this}rotateTo(e,t,r){return this._camera.rotateTo(e,t,r),this}resetNorth(e,t){return this._camera.resetNorth(e,t),this}resetNorthPitch(e,t){return this._camera.resetNorthPitch(e,t),this}snapToNorth(e,t){return this._camera.snapToNorth(e,t),this}getPitch(){return this._camera.transform.pitch}setPitch(e,t){return this._camera.setPitch(e,t),this}getRoll(){return this._camera.transform.roll}setRoll(e,t){return this._camera.setRoll(e,t),this}cameraForBounds(e,t){return this._camera.cameraForBounds(e,t)}fitBounds(e,t,r){return this._camera.fitBounds(e,t,r),this}fitScreenCoordinates(e,t,r,i,n){return this._camera.fitScreenCoordinates(e,t,r,i,n),this}jumpTo(e,t){return this._camera.jumpTo(e,t),this}calculateAnchoredCameraOptions(e){return this._camera.calculateAnchoredCameraOptions(e)}calculateCameraOptionsFromCameraLngLatAltRotation(e,t,r,i,n){return this._camera.calculateCameraOptionsFromCameraLngLatAltRotation(e,t,r,i,n)}easeTo(e,t){return this._camera.easeTo(e,t),this}flyTo(e,t){return this._camera.flyTo(e,t),this}stop(){return this._camera.stop(),this}queryTerrainElevation(e){return this.terrain?this.terrain.getElevationForLngLat(pn.convert(e),this._camera.transform):null}getCenterClampedToGround(){return this._camera.getCenterClampedToGround()}calculateCameraOptionsFromTo(e,t,r,i){return i==null&&this.terrain&&(i=this.terrain.getElevationForLngLat(r,this._camera.transform)),this._camera.transform.calculateCameraOptionsFromTo(e,t,r,i!=null?i:0)}resize(e,t=!0){if(this._lostContextStyle.style!==null)return this;this._resizeInternal(t);let r=!this._camera._moving;return r&&(this.stop(),this.fire(new kn("movestart",e)).fire(new kn("move",e))),this.fire(new pc("resize",e)),r&&this.fire(new kn("moveend",e)),this}_resizeInternal(e=!0){let[t,r]=this._containerDimensions(),i=this._getClampedPixelRatio(t,r);if(this._resizeCanvas(t,r,i),this.painter.resize(t,r,i),this.painter.overLimit()){let n=this.painter.context.gl;this._maxCanvasSize=[n.drawingBufferWidth,n.drawingBufferHeight];let a=this._getClampedPixelRatio(t,r);this._resizeCanvas(t,r,a),this.painter.resize(t,r,a)}this._resizeTransform(e)}_resizeTransform(e=!0){var i;let[t,r]=this._containerDimensions();this._camera.transform.resize(t,r,e),(i=this._camera._requestedCameraState)==null||i.resize(t,r,e)}_getClampedPixelRatio(e,t){let{0:r,1:i}=this._maxCanvasSize,n=this.getPixelRatio(),a=e*n,o=t*n,s=a>r?r/a:1,l=o>i?i/o:1,u=Math.min(s,l);return u<1&&Fa("The canvas is larger than maxCanvasSize and is rendered at a lower pixel ratio to fit. Increase maxCanvasSize, within MAX_TEXTURE_SIZE, to render at full resolution."),u*n}getPixelRatio(){var e;return(e=this._overridePixelRatio)!=null?e:devicePixelRatio}setPixelRatio(e){this._overridePixelRatio=e,this.resize()}getBounds(){return this._camera.transform.getBounds()}getMaxBounds(){return this._camera.transform.getMaxBounds()}setMaxBounds(e){return this._camera.applyTransformChange(t=>t.setMaxBounds(Iv.convert(e))),this._update()}setMinZoom(e){if(e!=null||(e=-2),e>=-2&&e<=this._camera.transform.maxZoom){let t=this._camera.transform.zoom;return this._camera.applyTransformChange(r=>r.setMinZoom(e)),this._update(),t!==this._camera.transform.zoom&&this.fire(new kn("zoomstart")).fire(new kn("zoom")).fire(new kn("zoomend")).fire(new kn("movestart")).fire(new kn("move")).fire(new kn("moveend")),this}throw Error("minZoom must be between -2 and the current maxZoom, inclusive")}getMinZoom(e=!1){let t=this._camera.transform;return e?t.applyConstrain(t.center,t.minZoom).zoom:t.minZoom}setMaxZoom(e){if(e!=null||(e=22),e>=this._camera.transform.minZoom){let t=this._camera.transform.zoom;return this._camera.applyTransformChange(r=>r.setMaxZoom(e)),this._update(),t!==this._camera.transform.zoom&&this.fire(new kn("zoomstart")).fire(new kn("zoom")).fire(new kn("zoomend")).fire(new kn("movestart")).fire(new kn("move")).fire(new kn("moveend")),this}throw Error("maxZoom must be greater than the current minZoom")}getMaxZoom(){return this._camera.transform.maxZoom}setMinPitch(e){if(e!=null||(e=0),e<0)throw Error("minPitch must be greater than or equal to 0");if(e>=0&&e<=this._camera.transform.maxPitch){let t=this._camera.transform.pitch;return this._camera.applyTransformChange(r=>r.setMinPitch(e)),this._update(),t!==this._camera.transform.pitch&&this.fire(new kn("pitchstart")).fire(new kn("pitch")).fire(new kn("pitchend")).fire(new kn("movestart")).fire(new kn("move")).fire(new kn("moveend")),this}throw Error("minPitch must be between 0 and the current maxPitch, inclusive")}getMinPitch(){return this._camera.transform.minPitch}setMaxPitch(e){if(e!=null||(e=60),e>180)throw Error("maxPitch must be less than or equal to 180");if(e>=this._camera.transform.minPitch){let t=this._camera.transform.pitch;return this._camera.applyTransformChange(r=>r.setMaxPitch(e)),this._update(),t!==this._camera.transform.pitch&&this.fire(new kn("pitchstart")).fire(new kn("pitch")).fire(new kn("pitchend")).fire(new kn("movestart")).fire(new kn("move")).fire(new kn("moveend")),this}throw Error("maxPitch must be greater than the current minPitch")}getMaxPitch(){return this._camera.transform.maxPitch}getAnisotropicFilterPitch(){return this._anisotropicFilterPitch}setAnisotropicFilterPitch(e){if(e!=null||(e=20),e>180)throw Error("anisotropicFilterPitch must be less than or equal to 180");if(e<0)throw Error("anisotropicFilterPitch must be greater than or equal to 0");return this._anisotropicFilterPitch=e,this._update()}getRenderWorldCopies(){return this._camera.transform.renderWorldCopies}setRenderWorldCopies(e){return this._camera.applyTransformChange(t=>t.setRenderWorldCopies(e)),this._update()}setTransformConstrain(e){return this._camera.applyTransformChange(t=>t.setConstrainOverride(e)),this._update()}project(e){return this._camera.transform.locationToScreenPoint(pn.convert(e),this.style&&this.terrain)}unproject(e){return this._camera.transform.screenPointToLocation(tr.convert(e),this.terrain)}isMoving(){var e;return this._camera.isMoving()||((e=this._handlers)==null?void 0:e.isMoving())||!1}isZooming(){var e;return this._camera.isZooming()||((e=this._handlers)==null?void 0:e.isZooming())||!1}isRotating(){var e;return this._camera.isRotating()||((e=this._handlers)==null?void 0:e.isRotating())||!1}_createDelegates(e,t,r){if(e==="mouseenter"||e==="mouseover"){let i=!1;return{mousemove:n=>{let a=t.filter(s=>this.getLayer(s)),o=a.length===0?[]:this.queryRenderedFeatures(n.point,{layers:a});o.length?i||(i=!0,r.call(this,new n0(e,this,n.originalEvent,{features:o}))):i=!1},mouseout:()=>{i=!1}}}if(e==="mouseleave"||e==="mouseout"){let i=!1;return{mousemove:n=>{let a=t.filter(o=>this.getLayer(o));(a.length===0?[]:this.queryRenderedFeatures(n.point,{layers:a})).length?i=!0:i&&(i=!1,r.call(this,new n0(e,this,n.originalEvent)))},mouseout:n=>{i&&(i=!1,r.call(this,new n0(e,this,n.originalEvent)))}}}{let i=n=>{let a=t.filter(s=>this.getLayer(s)),o=a.length===0?[]:this.queryRenderedFeatures(n.point,{layers:a});o.length&&(n.features=o,r.call(this,n),delete n.features)};return{[e]:i}}}_addDelegatedListener(e,t){var r;this._delegatedListeners||(this._delegatedListeners={}),(r=this._delegatedListeners)[e]||(r[e]=[]),this._delegatedListeners[e].push(t);for(let i in t.delegates)this.on(i,t.delegates[i])}_removeDelegatedListener(e,t,r){var n;if(!((n=this._delegatedListeners)!=null&&n[e]))return;let i=this._delegatedListeners[e];for(let a=0;at.includes(s))){for(let s in o.delegates)this.off(s,o.delegates[s]);i.splice(a,1);return}}}on(e,t,r){if(r===void 0)return super.on(e,t);let i=typeof t=="string"?[t]:t,n={layers:i,listener:r,delegates:this._createDelegates(e,i,r)};return this._addDelegatedListener(e,n),{unsubscribe:()=>{this._removeDelegatedListener(e,i,r)}}}once(e,t,r){if(r===void 0)return super.once(e,t);let i=typeof t=="string"?[t]:t,n={layers:i,listener:r,delegates:this._createDelegates(e,i,a=>{this._removeDelegatedListener(e,i,r),r.call(this,a)})};return this._addDelegatedListener(e,n),this}off(e,t,r){if(r===void 0)return super.off(e,t);let i=typeof t=="string"?[t]:t;return this._removeDelegatedListener(e,i,r),this}queryRenderedFeatures(e,t){if(!this.style)return[];let r,i=e instanceof tr||Array.isArray(e),n=i?e:[[0,0],[this._camera.transform.width,this._camera.transform.height]];if(t||(t=(i?{}:e)||{}),n instanceof tr||typeof n[0]=="number")r=[tr.convert(n)];else{let a=tr.convert(n[0]),o=tr.convert(n[1]);r=[a,new tr(o.x,a.y),o,new tr(a.x,o.y),a]}return this.style.queryRenderedFeatures(r,t,this._camera.transform)}querySourceFeatures(e,t){return this.style.querySourceFeatures(e,t)}setStyle(e,t){return t=cn({},{localIdeographFontFamily:this._localIdeographFontFamily,validate:this._validateStyle},t),this._styleUrl=typeof e=="string"?e:null,t.diff!==!1&&t.localIdeographFontFamily===this._localIdeographFontFamily&&this.style&&e?(this._diffStyle(e,t),this):(this._localIdeographFontFamily=t.localIdeographFontFamily,this._updateStyle(e,t))}setTransformRequest(e){return this._requestManager.setTransformRequest(e),this}_getUIString(e){let t=this._locale[e];if(t==null)throw Error(`Missing UI string '${e}'`);return t}_updateStyle(e,t){var i,n,a;if((i=this._diffStyleRequest)==null||i.abort(),this._diffStyleRequest=null,t.transformStyle&&this.style&&!this.style._loaded){this.style.once("style.load",()=>this._updateStyle(e,t));return}let r=this.style&&t.transformStyle?this.style.serialize():void 0;if(this.style&&(this.style.setEventedParent(null),this.style._remove(!e)),e)this.style=new aoe(this,t||{});else return this._frameRequest&&(this._frameRequest=(this._frameRequest.abort(),null)),(a=(n=this.style)==null?void 0:n.projection)==null||a.destroy(),delete this.style,this;return this.style.setEventedParent(this,{style:this.style}),typeof e=="string"?this.style.loadURL(e,t,r):this.style.loadJSON(e,t,r),this}_lazyInitEmptyStyle(){this.style||(this.style=new aoe(this,{}),this.style.setEventedParent(this,{style:this.style}),this.style.loadEmpty())}_diffStyle(e,t){return Yi(this,null,function*(){var r;if((r=this._diffStyleRequest)==null||r.abort(),typeof e=="string"){let i=e;this._diffStyleRequest=new AbortController;let n=this._diffStyleRequest;try{let a=yield this._requestManager.transformRequest(i,"Style");if(n.signal.aborted){this._diffStyleRequest=null;return}let o=yield gC(a,n);this._diffStyleRequest=null,this._updateDiff(o.data,t)}catch(a){this._diffStyleRequest=null,qm(a)||this.fire(new An(qc(a)))}}else typeof e=="object"&&(this._diffStyleRequest=null,this._updateDiff(e,t))})}_updateDiff(e,t){try{this.style.setState(e,t)&&this._update(!0)}catch(r){Fa(`Unable to perform style diff: ${qc(r).message}. Rebuilding the style from scratch.`),this._updateStyle(e,t)}}getStyle(){if(this.style)return this.style.serialize()}getStyleUrl(){return this._styleUrl}_getStyleAndImages(){return this.style?{style:this.style.serialize(),images:this.style.imageManager.cloneImages()}:{style:null,images:{}}}isStyleLoaded(){if(!this.style){Fa("There is no style added to the map.");return}return this.style.loaded()}addSource(e,t){return this._lazyInitEmptyStyle(),this.style.addSource(e,t),this._update(!0)}isSourceLoaded(e){var r;let t=(r=this.style)==null?void 0:r.tileManagers[e];if(t===void 0){this.fire(new An(Error(`There is no tile manager with ID '${e}'`)));return}return t.loaded()}setTerrain(e,t={}){if(this.style._checkLoaded(),e&&Z6(this,ph.terrain,{value:e},t))return this;if(this._terrainDataCallback&&this.style.off("data",this._terrainDataCallback),!e)this.terrain&&this.terrain.destroy(),this.terrain=null,this.painter.renderToTexture=null,this.painter.destroyRTTResources(),this._camera.setTerrain(null);else{let r=this.style.tileManagers[e.source];if(!r)throw Error(`cannot load terrain, because there exists no source with ID: ${e.source}`);this.terrain===null&&r.reload();for(let i in this.style._layers){let n=this.style._layers[i];n.type==="hillshade"&&n.source===e.source&&Fa("You are using the same source for a hillshade layer and for 3D terrain. Please consider using two separate sources to improve rendering quality."),n.type==="color-relief"&&n.source===e.source&&Fa("You are using the same source for a color-relief layer and for 3D terrain. Please consider using two separate sources to improve rendering quality.")}this.terrain&&this.terrain.destroy(),this.terrain=new VAr(this.painter,r,e,this._terrainSkirtLength),this.painter.renderToTexture=new Ekr(this.painter,this.terrain),this._camera.setTerrain(this.terrain),this._terrainDataCallback=i=>this._handleTerrainDataEvent(i,e.source),this.style.on("data",this._terrainDataCallback)}return this.style.triggerSymbolPlacement(),this.fire(new $ot({terrain:e})),this}_handleTerrainDataEvent(e,t){var i;if(e.dataType==="style"){this.terrain.tileManager.releaseAllRTT();return}let r=e.sourceId===t;if(r&&(this.terrain.resetElevationCache(),this.style.triggerSymbolPlacement()),r&&e.tile&&(this.painter.markTerrainDepthDirty(),this._camera.applyTerrainChange()),e.tile){if(((i=e.source)==null?void 0:i.type)==="image"){this.terrain.tileManager.releaseAllRTT();return}this.terrain.tileManager.releaseRTT(e.tile.tileID)}}getTerrain(){var e,t;return(t=(e=this.terrain)==null?void 0:e.options)!=null?t:null}areTilesLoaded(){var t;let e=(t=this.style)==null?void 0:t.tileManagers;for(let r of Object.values(e))if(!r.areTilesLoaded())return!1;return!0}removeSource(e){return this.style.removeSource(e),this._update(!0)}getSource(e){var t;return(t=this.style)==null?void 0:t.getSource(e)}setSourceTileLodParams(e,t,r){if(r){let i=this.getSource(r);if(!i)throw Error(`There is no source with ID "${r}", cannot set LOD parameters`);i.calculateTileZoom=Kae(Math.max(1,e),Math.max(1,t))}else for(let i in this.style.tileManagers)this.style.tileManagers[i].getSource().calculateTileZoom=Kae(Math.max(1,e),Math.max(1,t));return this._update(!0),this}refreshTiles(e,t){let r=this.style.tileManagers[e];if(!r)throw Error(`There is no tile manager with ID "${e}", cannot refresh tile`);t===void 0?r.reload(!0):r.refreshTiles(t.map(i=>new PC(i.z,i.x,i.y)))}addImage(e,t,r={}){var n;this._lazyInitEmptyStyle();let i=this._createStyleImage(t,r);return i?(this.style.addImage(e,i),(n=i.userImage)!=null&&n.onAdd&&i.userImage.onAdd(this,e),this):this}setMissingStyleImageResolver(e){var t;return this._missingStyleImageResolver=e,(t=this.style)==null||t.setMissingImageResolver(e),this}_createStyleImage(e,t={}){let{pixelRatio:r=1,sdf:i=!1,stretchX:n,stretchY:a,content:o,textFitWidth:s,textFitHeight:l}=t;if(e instanceof HTMLImageElement||dx(e)){let{width:u,height:c,data:f}=a0.getImageData(e);return{data:new Ss({width:u,height:c},f),pixelRatio:r,stretchX:n,stretchY:a,content:o,textFitWidth:s,textFitHeight:l,sdf:i,version:0}}if(e.width===void 0||e.height===void 0)return this.fire(new An(Error("Invalid arguments to map.addImage(). The second argument must be an `HTMLImageElement`, `ImageData`, `ImageBitmap`, or object with `width`, `height`, and `data` properties with the same format as `ImageData`"))),null;{let{width:u,height:c,data:f}=e,h=e,p=kC(h.data);return{data:p?new Ss({width:u,height:c}):new Ss({width:u,height:c},new Uint8Array(f)),pixelRatio:r,stretchX:n,stretchY:a,content:o,textFitWidth:s,textFitHeight:l,sdf:i,version:0,isWebGLImage:p,userImage:h}}}updateImage(e,t){let r=this.style.getImage(e);if(!r)return this.fire(new An(Error("The map has no image with that id. If you are adding a new image use `map.addImage(...)` instead.")));let{width:i,height:n,data:a}=t instanceof HTMLImageElement||dx(t)?a0.getImageData(t):t;if(i===void 0||n===void 0)return this.fire(new An(Error("Invalid arguments to map.updateImage(). The second argument must be an `HTMLImageElement`, `ImageData`, `ImageBitmap`, or object with `width`, `height`, and `data` properties with the same format as `ImageData`")));if(i!==r.data.width||n!==r.data.height)return this.fire(new An(Error("The width and height of the updated image must be that same as the previous version of the image")));if(r.isWebGLImage=kC(a),r.isWebGLImage)r.userImage=t;else{let o=!(t instanceof HTMLImageElement||dx(t));r.data.replace(a,o)}return this.style.updateImage(e,r),this}getImage(e){return this.style.getImage(e)}hasImage(e){return e?!!this.style.getImage(e):(this.fire(new An(Error("Missing required image id"))),!1)}removeImage(e){this.style.removeImage(e)}loadImage(e){return Yi(this,null,function*(){let t=yield Pv.getImage(yield this._requestManager.transformRequest(e,"Image"),new AbortController);if(!t.data)throw Error(`Could not load image ${e}: the response is empty`);return t})}listImages(){var e,t;return(t=(e=this.style)==null?void 0:e.listImages())!=null?t:[]}addLayer(e,t){return this._lazyInitEmptyStyle(),this.style.addLayer(e,t),this._update(!0)}moveLayer(e,t){return this.style.moveLayer(e,t),this._update(!0)}removeLayer(e){return this.style.removeLayer(e),this._update(!0)}getLayer(e){var t;return(t=this.style)==null?void 0:t.getLayer(e)}getLayersOrder(){var e,t;return(t=(e=this.style)==null?void 0:e.getLayersOrder())!=null?t:[]}setLayerZoomRange(e,t,r){return this.style.setLayerZoomRange(e,t,r),this._update(!0)}setFilter(e,t,r={}){var i;return(i=this.style)==null||i.setFilter(e,t,r),this._update(!0)}getFilter(e){return this.style.getFilter(e)}setPaintProperty(e,t,r,i={}){var n;return(n=this.style)==null||n.setPaintProperty(e,t,r,i),this._update(!0)}getPaintProperty(e,t){return this.style.getPaintProperty(e,t)}setLayoutProperty(e,t,r,i={}){return this.style.setLayoutProperty(e,t,r,i),this._update(!0)}getLayoutProperty(e,t){return this.style.getLayoutProperty(e,t)}setGlyphs(e,t={}){return this._lazyInitEmptyStyle(),this.style.setGlyphs(e,t),this._update(!0)}getGlyphs(){return this.style.getGlyphsUrl()}setFontFaces(e){return this._lazyInitEmptyStyle(),this.style.setFontFaces(e),this._update(!0)}getFontFaces(){return this.style.getFontFaces()}addSprite(e,t,r={}){return this._lazyInitEmptyStyle(),this.style.addSprite(e,t,r,i=>{i||this._update(!0)}),this}removeSprite(e){return this._lazyInitEmptyStyle(),this.style.removeSprite(e),this._update(!0)}getSprite(){return this.style.getSprite()}setSprite(e,t={}){return this._lazyInitEmptyStyle(),this.style.setSprite(e,t,r=>{r||this._update(!0)}),this}setLight(e,t={}){return this._lazyInitEmptyStyle(),this.style.setLight(e,t),this._update(!0)}getLight(){return this.style.getLight()}setSky(e,t={}){return this._lazyInitEmptyStyle(),this.style.setSky(e,t),this._update(!0)}getSky(){return this.style.getSky()}setFeatureState(e,t){return this.style.setFeatureState(e,t),this._update()}removeFeatureState(e,t){return this.style.removeFeatureState(e,t),this._update()}getFeatureState(e){return this.style.getFeatureState(e)}getContainer(){return this._container}getCanvasContainer(){return this._canvasContainer}getCanvas(){return this._canvas}_containerDimensions(){let e=0,t=0;return this._container&&(e=Math.floor(this._container.clientWidth)||400,t=Math.floor(this._container.clientHeight)||300),[e,t]}_shouldHandleInitialResize(){var r;if(!((r=this._container)!=null&&r.clientWidth)||!this._container.clientHeight)return!1;let[e,t]=this._containerDimensions();return e!==this._camera.transform.width||t!==this._camera.transform.height}_setupResizeObserver(){var i;let e=!1,t=Foe(n=>{this._trackResize&&!this._removed&&(this.resize(n),this.redraw())},50),r=(i=this._ownerWindow.ResizeObserver)!=null?i:ResizeObserver;this._resizeObserver=new r(n=>{!e&&(e=!0,!this._shouldHandleInitialResize())||t(n)}),this._resizeObserver.observe(this._container)}_resolveContainer(e){if(typeof e=="string"){let t=document.getElementById(e);if(!t)throw Error(`Container '${e}' not found.`);return t}if(e instanceof HTMLElement||e&&typeof e=="object"&&e.nodeType===1)return e;throw Error("Invalid type: 'container' must be a String or HTMLElement.")}_setupContainer(){let e=this._containerDimensions(),t=this._getClampedPixelRatio(e[0],e[1]),r=this._container;r.classList.add("maplibregl-map");let i=this._canvasContainer=Yn.create("div","maplibregl-canvas-container",r);this._interactive&&i.classList.add("maplibregl-interactive"),this._canvas=Yn.create("canvas","maplibregl-canvas",i),this._canvas.addEventListener("webglcontextlost",this._contextLost,!1),this._canvas.addEventListener("webglcontextrestored",this._contextRestored,!1),this._canvas.setAttribute("tabindex",this._interactive?"0":"-1"),this._canvas.setAttribute("aria-label",this._getUIString("Map.Title")),this._canvas.setAttribute("role","region"),this._resizeCanvas(e[0],e[1],t);let n=this._controlContainer=Yn.create("div","maplibregl-control-container",r),a=this._controlPositions={};for(let o of["top-left","top-right","bottom-left","bottom-right"])a[o]=Yn.create("div",`maplibregl-ctrl-${o} `,n);this._container.addEventListener("scroll",this._onMapScroll,!1)}_cleanupContainer(){this._canvas.removeEventListener("webglcontextrestored",this._contextRestored,!1),this._canvas.removeEventListener("webglcontextlost",this._contextLost,!1),this._canvasContainer.remove(),this._controlContainer.remove(),this._container.removeEventListener("scroll",this._onMapScroll,!1),this._container.classList.remove("maplibregl-map")}_resizeCanvas(e,t,r){let i=Math.round(r*e),n=Math.round(r*t);this._canvas.width=i,this._canvas.height=n,this._canvas.style.width=`${i/r}px`,this._canvas.style.height=`${n/r}px`}_setupPainter(){let e=_a(dn({},this._canvasContextAttributes),{alpha:!0,depth:!0,stencil:!0,premultipliedAlpha:!0}),t=null;this._canvas.addEventListener("webglcontextcreationerror",i=>{t=i},{once:!0});let r=this._canvas.getContext("webgl2",e);if(!r)throw new llt(e,t);this.painter=new ZEr(r,this._camera.transform)}migrateProjection(e,t){this._camera.migrateProjection(e,t),this.painter.transform=e,this.fire(new Wot({newProjection:this.style.projection.name}))}loaded(){return!this._styleDirty&&!this._sourcesDirty&&!!this.style&&this.style.loaded()}_update(e){var t;return(t=this.style)!=null&&t._loaded?(this._styleDirty||(this._styleDirty=e),this._sourcesDirty=!0,this.triggerRepaint(),this):this}_requestRenderFrame(e){return this._update(),this._renderTaskQueue.add(e)}_cancelRenderFrame(e){this._renderTaskQueue.remove(e)}_render(e){var o,s,l,u,c;let t=this._idleTriggered?this._fadeDuration:0,r=((o=this.style.projection)==null?void 0:o.transitionState)>0;if(this.painter.context.setDirty(),this.painter.setBaseState(),this._renderTaskQueue.run(e),this._removed)return;let i=!1;if(this.style&&this._styleDirty){this._styleDirty=!1;let f=this._camera.transform.zoom,h=zo();this.style.zoomHistory.update(f,h);let p=new Io(f,{now:h,fadeDuration:t,zoomHistory:this.style.zoomHistory,transition:this.style.getTransition()}),d=p.crossFadingFactor();(d!==1||d!==this._crossFadingFactor)&&(i=!0,this._crossFadingFactor=d),this.style.update(p)}let n=((s=this.style.projection)==null?void 0:s.transitionState)>0!==r;this._camera.transform.setTransitionState((l=this.style.projection)==null?void 0:l.transitionState),this.style&&(this._sourcesDirty||n)&&(this._sourcesDirty=!1,this.style._updateSources(this._camera.transform)),this.terrain?(this.terrain.tileManager.update(this._camera.transform,this.terrain)&&this.terrain.resetElevationCache(),this._camera.transform.setMinElevationForCurrentTile(this.terrain.getMinTileElevationForLngLatZoom(this._camera.transform.center,this._camera.transform.tileZoom)),!this._camera.elevationFreeze&&this.getCenterClampedToGround()&&this._camera.transform.setElevation(this.terrain.getElevationForLngLat(this._camera.transform.center,this._camera.transform))):(this._camera.transform.setMinElevationForCurrentTile(0),this.getCenterClampedToGround()&&this._camera.transform.setElevation(0)),this._placementDirty=(u=this.style)==null?void 0:u._updatePlacement(this._camera.transform,this.showCollisionBoxes,t,this._crossSourceCollisions,n),this.painter.render(this.style,{showTileBoundaries:this.showTileBoundaries,showOverdrawInspector:this._showOverdrawInspector,rotating:this.isRotating(),zooming:this.isZooming(),moving:this.isMoving(),fadeDuration:t,showPadding:this.showPadding,anisotropicFilterPitch:this.getAnisotropicFilterPitch()}),this.fire(new pc("render")),this.loaded()&&!this._loaded&&(this._loaded=!0,this.fire(new pc("load"))),this.style&&(this.style.hasTransitions()||i)&&(this._styleDirty=!0),this.style&&!this._placementDirty&&this.style._releaseSymbolFadeTiles();let a=this._sourcesDirty||this._styleDirty||this._placementDirty||((c=this.painter.renderToTexture)==null?void 0:c.needsFollowUpFrame);return a||this._repaint?this.triggerRepaint():!this.isMoving()&&this.loaded()&&this.fire(new pc("idle")),this._loaded&&!this._fullyLoaded&&!a&&(this._fullyLoaded=!0),this}redraw(){return this.style&&(this._frameRequest&&(this._frameRequest=(this._frameRequest.abort(),null)),this._render(0)),this}remove(){var t,r;this._hash&&this._hash.remove();for(let i of this._controls)i.onRemove(this);this._controls=[],this._frameRequest&&(this._frameRequest=(this._frameRequest.abort(),null)),this._renderTaskQueue.clear(),(t=this._diffStyleRequest)==null||t.abort(),this.painter.destroy(),this._handlers.destroy(),this.setStyle(null),typeof window<"u"&&this._ownerWindow.removeEventListener("online",this._onWindowOnline,!1),Pv.removeThrottleControl(this._imageQueueHandle),(r=this._resizeObserver)==null||r.disconnect();let e=this.painter.context.gl.getExtension("WEBGL_lose_context");e!=null&&e.loseContext&&e.loseContext(),this._cleanupContainer(),this._removed=!0,this.fire(new pc("remove"))}triggerRepaint(){this.style&&!this._frameRequest&&(this._frameRequest=new AbortController,a0.frame(this._frameRequest,e=>{this._frameRequest=null;try{this._render(e)}catch(t){if(!qm(t))throw t}},()=>{},this._ownerWindow))}get showTileBoundaries(){return!!this._showTileBoundaries}set showTileBoundaries(e){this._showTileBoundaries!==e&&(this._showTileBoundaries=e,this._update())}get showPadding(){return!!this._showPadding}set showPadding(e){this._showPadding!==e&&(this._showPadding=e,this._update())}get showCollisionBoxes(){return!!this._showCollisionBoxes}set showCollisionBoxes(e){this._showCollisionBoxes!==e&&(this._showCollisionBoxes=e,e?this.style._generateCollisionBoxes():this._update())}get showOverdrawInspector(){return!!this._showOverdrawInspector}set showOverdrawInspector(e){this._showOverdrawInspector!==e&&(this._showOverdrawInspector=e,this._update())}get repaint(){return!!this._repaint}set repaint(e){this._repaint!==e&&(this._repaint=e,this.triggerRepaint())}get vertices(){return!!this._vertices}set vertices(e){this._vertices=e,this._update()}get version(){return Ckr}getCameraTargetElevation(){return this._camera.transform.elevation}getProjection(){return this.style.getProjection()}setProjection(e){return this._lazyInitEmptyStyle(),this.style.setProjection(e),this._update(!0)}},Fkr={showCompass:!0,showZoom:!0,visualizePitch:!1,visualizeRoll:!0},Lkr=class{constructor(e){this._updateZoomButtons=()=>{let t=this._map.getZoom(),r=t===this._map.getMaxZoom(),i=t===this._map.getMinZoom(!0);this._zoomInButton.disabled=r,this._zoomOutButton.disabled=i,this._zoomInButton.setAttribute("aria-disabled",r.toString()),this._zoomOutButton.setAttribute("aria-disabled",i.toString())},this._rotateCompassArrow=()=>{let t=this._map.getPitch(),r=this._map.getRoll(),i=this._map.getBearing(),n=1/Math.cos(Bs(t))**.5;if(this.options.visualizePitch&&this.options.visualizeRoll){this._compassIcon.style.transform=`scale(${n}) rotateZ(${-r}deg) rotateX(${t}deg) rotateZ(${-i}deg)`;return}if(this.options.visualizePitch){this._compassIcon.style.transform=`scale(${n}) rotateX(${t}deg) rotateZ(${-i}deg)`;return}if(this.options.visualizeRoll){this._compassIcon.style.transform=`rotate(${-i-r}deg)`;return}this._compassIcon.style.transform=`rotate(${-i}deg)`},this._setButtonTitle=(t,r)=>{let i=this._map._getUIString(`NavigationControl.${r}`);t.title=i,t.setAttribute("aria-label",i)},this.options=cn({},Fkr,e),this._container=Yn.create("div","maplibregl-ctrl maplibregl-ctrl-group"),this._container.addEventListener("contextmenu",t=>t.preventDefault()),this.options.showZoom&&(this._zoomInButton=this._createButton("maplibregl-ctrl-zoom-in",t=>this._map.zoomIn({},{originalEvent:t})),Yn.create("span","maplibregl-ctrl-icon",this._zoomInButton).setAttribute("aria-hidden","true"),this._zoomOutButton=this._createButton("maplibregl-ctrl-zoom-out",t=>this._map.zoomOut({},{originalEvent:t})),Yn.create("span","maplibregl-ctrl-icon",this._zoomOutButton).setAttribute("aria-hidden","true")),this.options.showCompass&&(this._compass=this._createButton("maplibregl-ctrl-compass",t=>{this.options.visualizePitch?this._map.resetNorthPitch({},{originalEvent:t}):this._map.resetNorth({},{originalEvent:t})}),this._compassIcon=Yn.create("span","maplibregl-ctrl-icon",this._compass),this._compassIcon.setAttribute("aria-hidden","true"))}onAdd(e){return this._map=e,this.options.showZoom&&(this._setButtonTitle(this._zoomInButton,"ZoomIn"),this._setButtonTitle(this._zoomOutButton,"ZoomOut"),this._map.on("move",this._updateZoomButtons),this._updateZoomButtons()),this.options.showCompass&&(this._setButtonTitle(this._compass,"ResetBearing"),this.options.visualizePitch&&this._map.on("pitch",this._rotateCompassArrow),this.options.visualizeRoll&&this._map.on("roll",this._rotateCompassArrow),this._map.on("rotate",this._rotateCompassArrow),this._rotateCompassArrow(),this._handler=new Pkr(this._map,this._compass,this.options.visualizePitch)),this._container}onRemove(){this._container.remove(),this.options.showZoom&&this._map.off("move",this._updateZoomButtons),this.options.showCompass&&(this.options.visualizePitch&&this._map.off("pitch",this._rotateCompassArrow),this.options.visualizeRoll&&this._map.off("roll",this._rotateCompassArrow),this._map.off("rotate",this._rotateCompassArrow),this._handler.off(),delete this._handler),delete this._map}_createButton(e,t){let r=Yn.create("button",e,this._container);return r.type="button",r.addEventListener("click",t),r}},Pkr=class{constructor(e,t,r=!1){this.mousedown=n=>{this.startMove(n,Yn.mousePos(this.element,n)),window.addEventListener("mousemove",this.mousemove),window.addEventListener("mouseup",this.mouseup)},this.mousemove=n=>{this.move(n,Yn.mousePos(this.element,n))},this.mouseup=n=>{this._rotatePitchHandler.dragEnd(n),this.offTemp()},this.touchstart=n=>{n.targetTouches.length===1?(this._startPos=this._lastPos=Yn.touchPos(this.element,n.targetTouches)[0],this.startMove(n,this._startPos),window.addEventListener("touchmove",this.touchmove,{passive:!1}),window.addEventListener("touchend",this.touchend)):this.reset()},this.touchmove=n=>{n.targetTouches.length===1?(this._lastPos=Yn.touchPos(this.element,n.targetTouches)[0],this.move(n,this._lastPos)):this.reset()},this.touchend=n=>{n.targetTouches.length===0&&this._startPos&&this._lastPos&&this._startPos.dist(this._lastPos){this._rotatePitchHandler.reset(),delete this._startPos,delete this._lastPos,this.offTemp()},this._clickTolerance=10,this.element=t;let i=new fkr;this._rotatePitchHandler=new e8({clickTolerance:3,move:(n,a)=>{let o=t.getBoundingClientRect(),s=new tr((o.bottom-o.top)/2,(o.right-o.left)/2);return{bearingDelta:dne(new tr(n.x,a.y),a,s),pitchDelta:r?(a.y-n.y)*-.5:void 0}},moveStateManager:i,enable:!0,assignEvents:()=>{}}),this.map=e,t.addEventListener("mousedown",this.mousedown),t.addEventListener("touchstart",this.touchstart,{passive:!1}),t.addEventListener("touchcancel",this.reset)}startMove(e,t){this._rotatePitchHandler.dragStart(e,t),Yn.disableDrag()}move(e,t){let r=this.map,{bearingDelta:i,pitchDelta:n}=this._rotatePitchHandler.dragMove(e,t)||{};i&&r.setBearing(r.getBearing()+i),n&&r.setPitch(r.getPitch()+n)}off(){let e=this.element;e.removeEventListener("mousedown",this.mousedown),e.removeEventListener("touchstart",this.touchstart),window.removeEventListener("touchmove",this.touchmove),window.removeEventListener("touchend",this.touchend),e.removeEventListener("touchcancel",this.reset),this.offTemp()}offTemp(){Yn.enableDrag(),window.removeEventListener("mousemove",this.mousemove),window.removeEventListener("mouseup",this.mouseup),window.removeEventListener("touchmove",this.touchmove),window.removeEventListener("touchend",this.touchend)}};Poe={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%)"};Uot={ArrowLeft:[-1,0],ArrowRight:[1,0],ArrowUp:[0,-1],ArrowDown:[0,1]},Slt="#3FB1CE";y3=class extends i0{},Elt=class extends i0{},loe=class extends lu{constructor(e){if(super(),this._onClick=t=>{this.fire(new Elt("click",{originalEvent:t}))},this._onKeyPress=t=>{(t.code==="Space"||t.code==="Enter")&&this.togglePopup()},this._onKeyDown=t=>{if(!this._defaultMarker||!this._draggable||!this._map||!this._lngLat||t.composedPath()[0]!==this._element||t.altKey||t.ctrlKey||t.metaKey)return;let r=Uot[t.key];if(!r)return;t.preventDefault(),t.stopPropagation();let i=t.shiftKey?10:1,n=this._map.project(this._lngLat);this.setLngLat(this._map.unproject(new tr(n.x+r[0]*i,n.y+r[1]*i))),this._keyboardDragActive||(this._keyboardDragActive=!0,this.fire(new y3("dragstart"))),this.fire(new y3("drag"))},this._onKeyUp=t=>{Uot[t.key]&&this._endKeyboardDrag()},this._onBlur=()=>{this._endKeyboardDrag()},this._onMapClick=t=>{let r=t.originalEvent.target,i=this._element;this._popup&&(r===i||i.contains(r))&&this.togglePopup()},this._updateCoveredUnthrottled=()=>{var i,n;let t=(i=this._map)==null?void 0:i.terrain;if(!t||!this._isInViewport())return;let r=this._isCovered(t);r&&((n=this._popup)!=null&&n.isOpen())&&this._popup.remove(),this._element.style.opacity=r?this._opacityWhenCovered:this._opacity,this._element.classList.toggle("maplibregl-marker-covered",r)},this._updateCovered=Foe(this._updateCoveredUnthrottled,100),this._update=t=>{if(!this._map)return;this._lngLat=Alt(this._lngLat,this._flatPos,this._map._camera.transform),this._flatPos=this._pos=this._map.project(this._lngLat)._add(this._offset),this._map.terrain&&(this._flatPos=this._map._camera.transform.locationToScreenPoint(this._lngLat)._add(this._offset));let r="";this._rotationAlignment==="viewport"||this._rotationAlignment==="auto"?r=`rotateZ(${this._rotation}deg)`:this._rotationAlignment==="map"&&(r=`rotateZ(${this._rotation-this._map.getBearing()}deg)`);let i="";this._pitchAlignment==="viewport"||this._pitchAlignment==="auto"?i="rotateX(0deg)":this._pitchAlignment==="map"&&(i=`rotateX(${this._map.getPitch()}deg)`),!this._subpixelPositioning&&(t==null?void 0:t.type)!=="move"&&(this._pos=this._pos.round()),this._element.style.transform=`${Poe[this._anchor]} translate(${this._pos.x}px, ${this._pos.y}px) ${i} ${r}`,this._updateOpacity()},this._onMove=t=>{if(!this._isDragging){let r=this._clickTolerance||this._map._clickTolerance;this._isDragging=t.point.dist(this._pointerdownPos)>=r}this._isDragging&&(this._pos=t.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 y3("dragstart"))),this.fire(new y3("drag")))},this._onUp=()=>{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 y3("dragend")),this._state="inactive"},this._addDragHandler=t=>{this._element.contains(t.originalEvent.target)&&(t.preventDefault(),this._positionDelta=t.point.sub(this._pos).add(this._offset),this._pointerdownPos=t.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))},this._anchor=(e==null?void 0:e.anchor)||"center",this._color=(e==null?void 0:e.color)||Slt,this._scale=(e==null?void 0:e.scale)||1,this._draggable=(e==null?void 0:e.draggable)||!1,this._clickTolerance=(e==null?void 0:e.clickTolerance)||0,this._subpixelPositioning=(e==null?void 0:e.subpixelPositioning)||!1,this._isDragging=!1,this._roleManaged=!1,this._tabIndexManaged=!1,this._keyboardDragActive=!1,this._state="inactive",this._rotation=(e==null?void 0:e.rotation)||0,this._rotationAlignment=(e==null?void 0:e.rotationAlignment)||"auto",this._pitchAlignment=e!=null&&e.pitchAlignment&&e.pitchAlignment!=="auto"?e.pitchAlignment:this._rotationAlignment,this.setOpacity(e==null?void 0:e.opacity,e==null?void 0:e.opacityWhenCovered),e==null?void 0:e.element)this._element=e.element,this._offset=tr.convert((e==null?void 0:e.offset)||[0,0]);else{this._defaultMarker=!0,this._element=Yn.create("div");let t=Rkr().cloneNode(!0);t.setAttributeNS(null,"height",`${41*this._scale}px`),t.setAttributeNS(null,"width",`${27*this._scale}px`),zkr(t).setAttributeNS(null,"fill",this._color),this._element.appendChild(t),this._offset=tr.convert((e==null?void 0:e.offset)||[0,-14])}if(this._element.classList.add("maplibregl-marker"),this._element.addEventListener("dragstart",t=>{t.preventDefault()}),this._element.addEventListener("mousedown",t=>{t.preventDefault()}),Mlt(this._element,this._anchor,"marker"),e==null?void 0:e.className)for(let t of e.className.split(" "))this._element.classList.add(t);this._popup=null}addTo(e){return this.remove(),this._map=e,this._defaultMarker&&!this._element.hasAttribute("aria-label")&&this._element.setAttribute("aria-label",e._getUIString("Marker.Title")),this._updateAccessibilityRole(),e.getCanvasContainer().appendChild(this._element),e.on("move",this._update),e.on("moveend",this._update),e.on("terrain",this._update),e.on("projectiontransition",this._update),e.on("idle",this._update),this._element.addEventListener("click",this._onClick),this.setDraggable(this._draggable),this._update(),this._map.on("click",this._onMapClick),this}remove(){return this._map&&(this._map.off("click",this._onMapClick),this._map.off("move",this._update),this._map.off("moveend",this._update),this._map.off("terrain",this._update),this._map.off("projectiontransition",this._update),this._map.off("idle",this._update),this._map.off("mousedown",this._addDragHandler),this._map.off("touchstart",this._addDragHandler),this._map.off("mouseup",this._onUp),this._map.off("touchend",this._onUp),this._map.off("mousemove",this._onMove),this._map.off("touchmove",this._onMove),delete this._map),this._element.removeEventListener("click",this._onClick),this._element.removeEventListener("keydown",this._onKeyDown),this._element.removeEventListener("keyup",this._onKeyUp),this._element.removeEventListener("blur",this._onBlur),this._element.removeEventListener("keypress",this._onKeyPress),this._keyboardDragActive=!1,this._element.remove(),this._popup&&this._popup.remove(),this}getLngLat(){return this._lngLat}setLngLat(e){return this._lngLat=pn.convert(e),this._pos=null,this._update(),this._popup&&this._popup.setLngLat(this._lngLat),this}getElement(){return this._element}setPopup(e){if(this._popup&&(this._popup.remove(),this._popup=null,this._element.removeEventListener("keypress",this._onKeyPress)),e){if(!("offset"in e.options)){let t=13.5/Math.SQRT2;e.options.offset=this._defaultMarker?{top:[0,0],"top-left":[0,0],"top-right":[0,0],bottom:[0,-38.1],"bottom-left":[t,(24.6+t)*-1],"bottom-right":[-t,(24.6+t)*-1],left:[13.5,-24.6],right:[-13.5,-24.6]}:this._offset}this._popup=e,this._element.addEventListener("keypress",this._onKeyPress)}return this._updateTabIndex(),this._updateAccessibilityRole(),this}setSubpixelPositioning(e){return this._subpixelPositioning=e,this}_endKeyboardDrag(){this._keyboardDragActive&&(this._keyboardDragActive=!1,this.fire(new y3("dragend")))}getPopup(){return this._popup}togglePopup(){let e=this._popup;if(this._element.style.opacity===this._opacityWhenCovered)return this;if(e)e.isOpen()?e.remove():(e.setLngLat(this._lngLat),e.addTo(this._map));else return this;return this}_updateOpacity(){var r;if(!this._isInViewport())return;let e=(r=this._map)==null?void 0:r.terrain,t=this._map._camera.transform.isLocationOccluded(this._lngLat);if(!e||t){let i=t?this._opacityWhenCovered:this._opacity;this._element.style.opacity!==i&&(this._element.style.opacity=i,this._element.classList.toggle("maplibregl-marker-covered",t));return}this._updateCovered()}_isInViewport(){let{width:e,height:t}=this._map._camera.transform;return!!this._pos&&this._pos.x>=0&&this._pos.y>=0&&this._pos.x<=e&&this._pos.y<=t}_isCovered(e){let t=this._map._camera.transform,r=e.getElevationForLngLat(this._lngLat,t),i=Math.max(0,-this._offset.y)/t.pixelsPerMeter,n=Math.sin(this._map.getPitch()*Math.PI/180)*i;return t.isLocationOccluded(this._lngLat,e,r+n)}getOffset(){return this._offset}setOffset(e){return this._offset=tr.convert(e),this._update(),this}addClassName(e){this._element.classList.add(e)}removeClassName(e){this._element.classList.remove(e)}toggleClassName(e){return this._element.classList.toggle(e)}setDraggable(e){return this._draggable=!!e,this._element.classList.toggle("maplibregl-marker-draggable",this._draggable),this._map&&(e?(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._defaultMarker&&(this._draggable?(this._element.addEventListener("keydown",this._onKeyDown),this._element.addEventListener("keyup",this._onKeyUp),this._element.addEventListener("blur",this._onBlur)):(this._element.removeEventListener("keydown",this._onKeyDown),this._element.removeEventListener("keyup",this._onKeyUp),this._element.removeEventListener("blur",this._onBlur),this._endKeyboardDrag())),this._updateTabIndex(),this._updateAccessibilityRole(),this}isDraggable(){return this._draggable}_updateTabIndex(){this._popup||this._defaultMarker&&this._draggable?this._element.hasAttribute("tabindex")||(this._element.setAttribute("tabindex","0"),this._tabIndexManaged=!0):this._tabIndexManaged&&(this._tabIndexManaged=(this._element.getAttribute("tabindex")==="0"&&this._element.removeAttribute("tabindex"),!1))}_updateAccessibilityRole(){if(!this._defaultMarker||this._element.hasAttribute("role")&&!this._roleManaged)return;let e=this._draggable||this._popup?"button":"img";this._element.setAttribute("role",e),this._roleManaged=!0}setRotation(e){return this._rotation=e||0,this._update(),this}getRotation(){return this._rotation}setRotationAlignment(e){return this._rotationAlignment=e||"auto",this._update(),this}getRotationAlignment(){return this._rotationAlignment}setPitchAlignment(e){return this._pitchAlignment=e&&e!=="auto"?e:this._rotationAlignment,this._update(),this}getPitchAlignment(){return this._pitchAlignment}setOpacity(e,t){return(this._opacity===void 0||e===void 0&&t===void 0)&&(this._opacity="1",this._opacityWhenCovered="0.2"),e!==void 0&&(this._opacity=String(e)),t!==void 0&&(this._opacityWhenCovered=String(t)),this._map&&this._updateOpacity(),this}},Bkr={positionOptions:{enableHighAccuracy:!1,maximumAge:0,timeout:6e3},fitBoundsOptions:{maxZoom:15},trackUserLocation:!1,showAccuracyCircle:!0,showUserLocation:!0},Gq=0,$C=!1,x3=class extends i0{},uoe=class extends i0{},klt=class extends i0{},qkr=class extends lu{constructor(e){super(),this._onSuccess=t=>{if(this._map){if(this._isOutOfMapMaxBounds(t)){this._setErrorState(),this.fire(new uoe("outofmaxbounds",t)),this._updateMarker(),this._finish();return}if(this.options.trackUserLocation)switch(this._lastKnownPosition=t,this._watchState){case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active");break;case"BACKGROUND":case"BACKGROUND_ERROR":this._watchState="BACKGROUND",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-background");break;default:throw Error(`Unexpected watchState ${this._watchState}`)}this.options.showUserLocation&&this._watchState!=="OFF"&&this._updateMarker(t),(!this.options.trackUserLocation||this._watchState==="ACTIVE_LOCK")&&this._updateCamera(t),this.options.showUserLocation&&this._dotElement.classList.remove("maplibregl-user-location-dot-stale"),this.fire(new uoe("geolocate",t)),this._finish()}},this._updateCamera=t=>{let r=new pn(t.coords.longitude,t.coords.latitude),i=t.coords.accuracy,n=this._map.getBearing(),a=cn({bearing:n},this.options.fitBoundsOptions),o=Iv.fromLngLat(r,i);this._map.fitBounds(o,a,{geolocateSource:!0})},this._updateMarker=t=>{if(t){let r=new pn(t.coords.longitude,t.coords.latitude);this._accuracyCircleMarker.setLngLat(r).addTo(this._map),this._userLocationDotMarker.setLngLat(r).addTo(this._map),this._accuracy=t.coords.accuracy,this._updateCircleRadiusIfNeeded()}else this._userLocationDotMarker.remove(),this._accuracyCircleMarker.remove()},this._onUpdate=()=>{this._updateCircleRadiusIfNeeded()},this._onError=t=>{if(this._map){if(t.code===1){this._watchState="OFF",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background-error"),this._geolocateButton.disabled=!0;let r=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.title=r,this._geolocateButton.setAttribute("aria-label",r),this._geolocationWatchID!==void 0&&this._clearWatch()}else{if(t.code===3&&$C)return;this._setErrorState()}this._watchState!=="OFF"&&this.options.showUserLocation&&this._dotElement.classList.add("maplibregl-user-location-dot-stale"),this.fire(new klt("error",t)),this._finish()}},this._finish=()=>{this._timeoutId&&clearTimeout(this._timeoutId),this._timeoutId=void 0},this._onMoveStart=t=>{if(!this._map)return;let r=(t==null?void 0:t[0])instanceof ResizeObserverEntry;!t.geolocateSource&&this._watchState==="ACTIVE_LOCK"&&!r&&!this._map.isZooming()&&(this._watchState="BACKGROUND",this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active"),this.fire(new x3("trackuserlocationend")),this.fire(new x3("userlocationlostfocus")))},this._setupUI=()=>{this._map&&(this._container.addEventListener("contextmenu",t=>{t.preventDefault()}),this._geolocateButton=Yn.create("button","maplibregl-ctrl-geolocate",this._container),Yn.create("span","maplibregl-ctrl-icon",this._geolocateButton).setAttribute("aria-hidden","true"),this._geolocateButton.type="button",this._geolocateButton.disabled=!0)},this._finishSetupUI=t=>{if(this._map){if(t===!1){Fa("Geolocation support is not available so the GeolocateControl will be disabled.");let r=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.disabled=!0,this._geolocateButton.title=r,this._geolocateButton.setAttribute("aria-label",r)}else{let r=this._map._getUIString("GeolocateControl.FindMyLocation");this._geolocateButton.disabled=!1,this._geolocateButton.title=r,this._geolocateButton.setAttribute("aria-label",r)}this.options.trackUserLocation&&(this._geolocateButton.setAttribute("aria-pressed","false"),this._watchState="OFF"),this.options.showUserLocation&&(this._dotElement=Yn.create("div","maplibregl-user-location-dot"),this._userLocationDotMarker=new loe({element:this._dotElement}),this._circleElement=Yn.create("div","maplibregl-user-location-accuracy-circle"),this._accuracyCircleMarker=new loe({element:this._circleElement,pitchAlignment:"map"}),this.options.trackUserLocation&&(this._watchState="OFF"),this._map.on("zoom",this._onUpdate),this._map.on("move",this._onUpdate),this._map.on("rotate",this._onUpdate),this._map.on("pitch",this._onUpdate)),this._geolocateButton.addEventListener("click",()=>this.trigger()),this._setup=!0,this.options.trackUserLocation&&this._map.on("movestart",this._onMoveStart)}},this.options=cn({},Bkr,e)}onAdd(e){return this._map=e,this._container=Yn.create("div","maplibregl-ctrl maplibregl-ctrl-group"),this._setupUI(),Ikr().then(t=>this._finishSetupUI(t)),this._container}onRemove(){this._geolocationWatchID!==void 0&&(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(),this._container.remove(),this._map.off("movestart",this._onMoveStart),this._map.off("zoom",this._onUpdate),this._map.off("move",this._onUpdate),this._map.off("rotate",this._onUpdate),this._map.off("pitch",this._onUpdate),this._map=void 0,Gq=0,$C=!1}_isOutOfMapMaxBounds(e){let t=this._map.getMaxBounds(),r=e.coords;return t&&(r.longitudet.getEast()||r.latitudet.getNorth())}_setErrorState(){switch(this._watchState){case"WAITING_ACTIVE":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active-error");break;case"ACTIVE_LOCK":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-waiting");break;case"BACKGROUND":this._watchState="BACKGROUND_ERROR",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-waiting");break;case"ACTIVE_ERROR":case"BACKGROUND_ERROR":break;case"OFF":case void 0:break;default:throw Error(`Unexpected watchState ${this._watchState}`)}}_updateCircleRadiusIfNeeded(){let e=this._userLocationDotMarker.getLngLat();if(!this.options.showUserLocation||!this.options.showAccuracyCircle||!this._accuracy||!e)return;let t=this._map.project(e),r=this._map.unproject([t.x+100,t.y]),i=e.distanceTo(r)/100,n=2*this._accuracy/i;this._circleElement.style.width=`${n.toFixed(2)}px`,this._circleElement.style.height=`${n.toFixed(2)}px`}trigger(){if(!this._setup)return Fa("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 x3("trackuserlocationstart"));break;case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":case"BACKGROUND_ERROR":Gq--,$C=!1,this._watchState="OFF",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background-error"),this.fire(new x3("trackuserlocationend"));break;case"BACKGROUND":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background"),this._lastKnownPosition&&this._updateCamera(this._lastKnownPosition),this.fire(new x3("trackuserlocationstart")),this.fire(new x3("userlocationfocus"));break;default:throw Error(`Unexpected watchState ${this._watchState}`)}switch(this._watchState){case"WAITING_ACTIVE":this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active");break;case"ACTIVE_LOCK":this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active");break;case"OFF":break;default:throw Error(`Unexpected watchState ${this._watchState}`)}if(this._watchState==="OFF"&&this._geolocationWatchID!==void 0)this._clearWatch();else if(this._geolocationWatchID===void 0){this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","true"),Gq++;let e;Gq>1?(e={maximumAge:6e5,timeout:0},$C=!0):(e=this.options.positionOptions,$C=!1),this._geolocationWatchID=window.navigator.geolocation.watchPosition(this._onSuccess,this._onError,e)}}else window.navigator.geolocation.getCurrentPosition(this._onSuccess,this._onError,this.options.positionOptions),this._timeoutId=setTimeout(this._finish,1e4);return!0}_clearWatch(){window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0,this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","false"),this.options.showUserLocation&&this._updateMarker(null)}},Okr={maxWidth:100,unit:"metric"},Nkr=class{constructor(e){this._onMove=()=>{Vot(this._map,this._container,this.options)},this.setUnit=t=>{this.options.unit=t,Vot(this._map,this._container,this.options)},this.options=dn(dn({},Okr),e)}getDefaultPosition(){return"bottom-left"}onAdd(e){return this._map=e,this._container=Yn.create("div","maplibregl-ctrl maplibregl-ctrl-scale",e.getContainer()),this._map.on("move",this._onMove),this._onMove(),this._container}onRemove(){this._container.remove(),this._map.off("move",this._onMove),this._map=void 0}};coe=class extends i0{},Gkr=class extends lu{constructor(e={}){var t;super(),this._onFullscreenChange=()=>{var i;let r=window.document.fullscreenElement||window.document.webkitFullscreenElement;for(;(i=r==null?void 0:r.shadowRoot)!=null&&i.fullscreenElement;)r=r.shadowRoot.fullscreenElement;r===this._container!==this._fullscreen&&this._handleFullscreenChange()},this._onClickFullscreen=()=>{this._isFullscreen()?this._exitFullscreen():this._requestFullscreen()},this._fullscreen=!1,this._pseudo=(t=e.pseudo)!=null?t:!1,e!=null&&e.container&&(e.container instanceof HTMLElement?this._container=e.container:Fa("Full screen control 'container' must be a DOM element.")),"onfullscreenchange"in document?this._fullscreenchange="fullscreenchange":"onmozfullscreenchange"in document?this._fullscreenchange="mozfullscreenchange":"onwebkitfullscreenchange"in document?this._fullscreenchange="webkitfullscreenchange":"onmsfullscreenchange"in document&&(this._fullscreenchange="MSFullscreenChange")}onAdd(e){return this._map=e,this._container||(this._container=this._map.getContainer()),this._controlContainer=Yn.create("div","maplibregl-ctrl maplibregl-ctrl-group"),this._setupUI(),this._controlContainer}onRemove(){this._controlContainer.remove(),this._map=null,window.document.removeEventListener(this._fullscreenchange,this._onFullscreenChange)}_setupUI(){let e=this._fullscreenButton=Yn.create("button","maplibregl-ctrl-fullscreen",this._controlContainer);Yn.create("span","maplibregl-ctrl-icon",e).setAttribute("aria-hidden","true"),e.type="button",this._updateTitle(),this._fullscreenButton.addEventListener("click",this._onClickFullscreen),window.document.addEventListener(this._fullscreenchange,this._onFullscreenChange)}_updateTitle(){let e=this._getTitle();this._fullscreenButton.setAttribute("aria-label",e),this._fullscreenButton.title=e}_getTitle(){return this._map._getUIString(this._isFullscreen()?"FullscreenControl.Exit":"FullscreenControl.Enter")}_isFullscreen(){return this._fullscreen}_handleFullscreenChange(){this._fullscreen=!this._fullscreen,this._fullscreenButton.classList.toggle("maplibregl-ctrl-shrink"),this._fullscreenButton.classList.toggle("maplibregl-ctrl-fullscreen"),this._updateTitle(),this._fullscreen?(this.fire(new coe("fullscreenstart")),this._prevCooperativeGesturesEnabled=this._map.cooperativeGestures.isEnabled(),this._map.cooperativeGestures.disable()):(this.fire(new coe("fullscreenend")),this._prevCooperativeGesturesEnabled&&this._map.cooperativeGestures.enable())}_exitFullscreen(){this._pseudo?this._togglePseudoFullScreen():window.document.exitFullscreen?window.document.exitFullscreen():window.document.webkitCancelFullScreen?window.document.webkitCancelFullScreen():this._togglePseudoFullScreen()}_requestFullscreen(){this._pseudo?this._togglePseudoFullScreen():this._container.requestFullscreen?this._container.requestFullscreen():this._container.webkitRequestFullscreen?this._container.webkitRequestFullscreen():this._togglePseudoFullScreen()}_togglePseudoFullScreen(){this._container.classList.toggle("maplibregl-pseudo-fullscreen"),this._handleFullscreenChange(),this._map.resize()}},Hkr=class{constructor(e){this._toggleTerrain=()=>{this._map.getTerrain()?this._map.setTerrain(null):this._map.setTerrain(this.options),this._updateTerrainIcon()},this._updateTerrainIcon=()=>{this._terrainButton.classList.remove("maplibregl-ctrl-terrain"),this._terrainButton.classList.remove("maplibregl-ctrl-terrain-enabled"),this._map.terrain?(this._terrainButton.classList.add("maplibregl-ctrl-terrain-enabled"),this._terrainButton.title=this._map._getUIString("TerrainControl.Disable")):(this._terrainButton.classList.add("maplibregl-ctrl-terrain"),this._terrainButton.title=this._map._getUIString("TerrainControl.Enable"))},this.options=e}onAdd(e){return this._map=e,this._container=Yn.create("div","maplibregl-ctrl maplibregl-ctrl-group"),this._terrainButton=Yn.create("button","maplibregl-ctrl-terrain",this._container),Yn.create("span","maplibregl-ctrl-icon",this._terrainButton).setAttribute("aria-hidden","true"),this._terrainButton.type="button",this._terrainButton.addEventListener("click",this._toggleTerrain),this._updateTerrainIcon(),this._map.on("terrain",this._updateTerrainIcon),this._container}onRemove(){this._container.remove(),this._map.off("terrain",this._updateTerrainIcon),this._map=void 0}},jkr=class{constructor(){this._toggleProjection=()=>{var t;let e=(t=this._map.getProjection())==null?void 0:t.type;e==="mercator"||!e?this._map.setProjection({type:"globe"}):this._map.setProjection({type:"mercator"}),this._updateGlobeIcon()},this._updateGlobeIcon=()=>{var e;this._globeButton.classList.remove("maplibregl-ctrl-globe"),this._globeButton.classList.remove("maplibregl-ctrl-globe-enabled"),((e=this._map.getProjection())==null?void 0:e.type)==="globe"?(this._globeButton.classList.add("maplibregl-ctrl-globe-enabled"),this._globeButton.title=this._map._getUIString("GlobeControl.Disable")):(this._globeButton.classList.add("maplibregl-ctrl-globe"),this._globeButton.title=this._map._getUIString("GlobeControl.Enable"))}}onAdd(e){return this._map=e,this._container=Yn.create("div","maplibregl-ctrl maplibregl-ctrl-group"),this._globeButton=Yn.create("button","maplibregl-ctrl-globe",this._container),Yn.create("span","maplibregl-ctrl-icon",this._globeButton).setAttribute("aria-hidden","true"),this._globeButton.type="button",this._globeButton.addEventListener("click",this._toggleProjection),this._updateGlobeIcon(),this._map.on("styledata",this._updateGlobeIcon),this._map.on("projectiontransition",this._updateGlobeIcon),this._container}onRemove(){this._container.remove(),this._map.off("styledata",this._updateGlobeIcon),this._map.off("projectiontransition",this._updateGlobeIcon),this._globeButton.removeEventListener("click",this._toggleProjection),this._map=void 0}},$kr={closeButton:!0,closeOnClick:!0,focusAfterOpen:!0,className:"",maxWidth:"240px",subpixelPositioning:!1,locationOccludedOpacity:void 0,padding:void 0},Wkr=["a[href]","[tabindex]:not([tabindex='-1'])","[contenteditable]:not([contenteditable='false'])","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].join(", "),foe=class extends i0{},Ykr=class extends lu{constructor(e){super(),this._updateOpacity=()=>{this.options.locationOccludedOpacity!==void 0&&(this._map._camera.transform.isLocationOccluded(this.getLngLat())?this._container.style.opacity=`${this.options.locationOccludedOpacity}`:this._container.style.opacity="")},this.remove=()=>(this._content&&this._content.remove(),this._container&&(this._container.remove(),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("terrain",this._update),this._map.off("projectiontransition",this._update),this._map.off("idle",this._update),this._map.off("mousemove",this._update),this._map.off("mouseup",this._update),this._map.off("drag",this._update),this._map._canvasContainer.classList.remove("maplibregl-track-pointer"),delete this._map,this.fire(new foe("close"))),this),this._update=t=>{let r=this._lngLat||this._trackPointer;if(!this._map||!r||!this._content)return;if(!this._container){if(this._container=Yn.create("div","maplibregl-popup",this._map.getContainer()),this._tip=Yn.create("div","maplibregl-popup-tip",this._container),this._container.appendChild(this._content),this.options.className)for(let l of this.options.className.split(" "))this._container.classList.add(l);this._closeButton&&this._closeButton.setAttribute("aria-label",this._map._getUIString("Popup.Close")),this._trackPointer&&this._container.classList.add("maplibregl-popup-track-pointer")}this.options.maxWidth&&this._container.style.maxWidth!==this.options.maxWidth&&(this._container.style.maxWidth=this.options.maxWidth),this._lngLat=Alt(this._lngLat,this._flatPos,this._map._camera.transform,this._trackPointer);let i;if(t&&"point"in t&&t.point&&(i=t.point),this._trackPointer&&!i)return;let n=this._flatPos=this._pos=this._trackPointer&&i?i:this._map.project(this._lngLat);this._map.terrain&&(this._flatPos=this._trackPointer&&i?i:this._map._camera.transform.locationToScreenPoint(this._lngLat));let a=this.options.anchor,o=Clt(this.options.offset);if(!a){let l=this._container.offsetWidth,u=this._container.offsetHeight,c=Xkr(this.options.padding),f;f=n.y+o.bottom.ythis._map._camera.transform.height-u-c.bottom?["bottom"]:[],n.xthis._map._camera.transform.width-l/2-c.right&&f.push("right"),a=f.length===0?"bottom":f.join("-")}let s=n.add(o[a]);this.options.subpixelPositioning||(s=s.round()),this._container.style.transform=`${Poe[a]} translate(${s.x}px,${s.y}px)`,Mlt(this._container,a,"popup"),this._updateOpacity()},this._onClose=()=>{this.remove()},this.options=cn(Object.create($kr),e)}addTo(e){return this._map&&this.remove(),this._map=e,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._map.on("terrain",this._update),this._map.on("projectiontransition",this._update),this._map.on("idle",this._update),this._update(),this._focusFirstElement(),this._trackPointer?(this._map.on("mousemove",this._update),this._map.on("mouseup",this._update),this._container&&this._container.classList.add("maplibregl-popup-track-pointer"),this._map._canvasContainer.classList.add("maplibregl-track-pointer")):this._map.on("move",this._update),this.fire(new foe("open")),this}isOpen(){return!!this._map}getLngLat(){return this._lngLat}setLngLat(e){return this._lngLat=pn.convert(e),this._pos=null,this._flatPos=null,this._trackPointer=!1,this._update(),this._map&&(this._map.on("move",this._update),this._map.off("mousemove",this._update),this._container&&this._container.classList.remove("maplibregl-popup-track-pointer"),this._map._canvasContainer.classList.remove("maplibregl-track-pointer")),this}trackPointer(){return this._trackPointer=!0,this._pos=null,this._flatPos=null,this._update(),this._map&&(this._map.off("move",this._update),this._map.on("mousemove",this._update),this._map.on("drag",this._update),this._container&&this._container.classList.add("maplibregl-popup-track-pointer"),this._map._canvasContainer.classList.add("maplibregl-track-pointer")),this}getElement(){return this._container}setText(e){return this.setDOMContent(document.createTextNode(e))}setHTML(e){let t=document.createDocumentFragment(),r=document.createElement("body"),i;for(r.innerHTML=e;i=r.firstChild,i;)t.appendChild(i);return this.setDOMContent(t)}getMaxWidth(){var e;return(e=this._container)==null?void 0:e.style.maxWidth}setMaxWidth(e){return this.options.maxWidth=e,this._update(),this}setDOMContent(e){if(this._content)for(;this._content.hasChildNodes();)this._content.firstChild&&this._content.removeChild(this._content.firstChild);else this._content=Yn.create("div","maplibregl-popup-content",this._container);return this._content.appendChild(e),this._createCloseButton(),this._update(),this._focusFirstElement(),this}addClassName(e){return this._container&&this._container.classList.add(e),this}removeClassName(e){return this._container&&this._container.classList.remove(e),this}setOffset(e){return this.options.offset=e,this._update(),this}toggleClassName(e){if(this._container)return this._container.classList.toggle(e)}setSubpixelPositioning(e){this.options.subpixelPositioning=e}setPadding(e){this.options.padding=e,this._update()}_createCloseButton(){this.options.closeButton&&(this._closeButton=Yn.create("button","maplibregl-popup-close-button",this._content),this._closeButton.type="button",this._closeButton.innerHTML="×",this._closeButton.addEventListener("click",this._onClose))}_focusFirstElement(){if(!this.options.focusAfterOpen||!this._container)return;let e=this._container.querySelector(Wkr);e&&e.focus()}};Zkr=Got});var Ilt=W((Cli,Plt)=>{"use strict";Plt.exports='var D1=Object.defineProperty,_1=Object.defineProperties;var A1=Object.getOwnPropertyDescriptors;var lh=Object.getOwnPropertySymbols;var S1=Object.prototype.hasOwnProperty,E1=Object.prototype.propertyIsEnumerable;var uh=(t,e,r)=>e in t?D1(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Xe=(t,e)=>{for(var r in e||(e={}))S1.call(e,r)&&uh(t,r,e[r]);if(lh)for(var r of lh(e))E1.call(e,r)&&uh(t,r,e[r]);return t},Si=(t,e)=>_1(t,A1(e));var et=(t,e,r)=>new Promise((i,n)=>{var a=l=>{try{o(r.next(l))}catch(u){n(u)}},s=l=>{try{o(r.throw(l))}catch(u){n(u)}},o=l=>l.done?i(l.value):Promise.resolve(l.value).then(a,s);o((r=r.apply(t,e)).next())});var F1=Object.create,Dp=Object.defineProperty,T1=Object.getOwnPropertyDescriptor,k1=Object.getOwnPropertyNames,I1=Object.getPrototypeOf,_p=Object.prototype.hasOwnProperty,ml=(t,e)=>()=>(e||(t((e={exports:{}}).exports,e),t=null),e.exports),C1=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(var n=k1(e),a=0,s=n.length,o;ae[l]).bind(null,o),enumerable:!(i=T1(e,o))||i.enumerable});return t},M1=(t,e,r)=>(r=t==null?{}:F1(I1(t)),C1(e||!t||!t.__esModule||!_p.call(t,"default")?Dp(r,"default",{value:t,enumerable:!0}):r,t));function M(t,e){this.x=t,this.y=e}M.prototype={clone(){return new M(this.x,this.y)},add(t){return this.clone()._add(t)},sub(t){return this.clone()._sub(t)},multByPoint(t){return this.clone()._multByPoint(t)},divByPoint(t){return this.clone()._divByPoint(t)},mult(t){return this.clone()._mult(t)},div(t){return this.clone()._div(t)},rotate(t){return this.clone()._rotate(t)},rotateAround(t,e){return this.clone()._rotateAround(t,e)},matMult(t){return this.clone()._matMult(t)},unit(){return this.clone()._unit()},perp(){return this.clone()._perp()},round(){return this.clone()._round()},mag(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals(t){return this.x===t.x&&this.y===t.y},dist(t){return Math.sqrt(this.distSqr(t))},distSqr(t){let e=t.x-this.x,r=t.y-this.y;return e*e+r*r},angle(){return Math.atan2(this.y,this.x)},angleTo(t){return Math.atan2(this.y-t.y,this.x-t.x)},angleWith(t){return this.angleWithSep(t.x,t.y)},angleWithSep(t,e){return Math.atan2(this.x*e-this.y*t,this.x*t+this.y*e)},_matMult(t){let e=t[0]*this.x+t[1]*this.y,r=t[2]*this.x+t[3]*this.y;return this.x=e,this.y=r,this},_add(t){return this.x+=t.x,this.y+=t.y,this},_sub(t){return this.x-=t.x,this.y-=t.y,this},_mult(t){return this.x*=t,this.y*=t,this},_div(t){return this.x/=t,this.y/=t,this},_multByPoint(t){return this.x*=t.x,this.y*=t.y,this},_divByPoint(t){return this.x/=t.x,this.y/=t.y,this},_unit(){return this._div(this.mag()),this},_perp(){let t=this.y;return this.y=this.x,this.x=-t,this},_rotate(t){let e=Math.cos(t),r=Math.sin(t),i=e*this.x-r*this.y,n=r*this.x+e*this.y;return this.x=i,this.y=n,this},_rotateAround(t,e){let r=Math.cos(t),i=Math.sin(t),n=e.x+r*(this.x-e.x)-i*(this.y-e.y),a=e.y+i*(this.x-e.x)+r*(this.y-e.y);return this.x=n,this.y=a,this},_round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},constructor:M},M.convert=function(t){if(t instanceof M)return t;if(Array.isArray(t))return new M(+t[0],+t[1]);if(t.x!==void 0&&t.y!==void 0)return new M(+t.x,+t.y);throw Error("Expected [x, y] or {x, y} point format")};function B1(t,e,r,i){let n=3*t,a=3*(r-t)-n,s=1-n-a,o=3*e,l=3*(i-e)-o,u=1-o-l;return function(h,c=1e-6){if(h<=0)return 0;if(h>=1)return 1;let p=h;for(let y=0;y<8;y++){let m=((s*p+a)*p+n)*p-h;if(Math.abs(m)m?f=p:d=p,p=(f+d)*.5}return((u*p+l)*p+o)*p}}var Ei;function P1(){return Ei!=null||(Ei=typeof OffscreenCanvas<"u"&&!!new OffscreenCanvas(1,1).getContext("2d")&&typeof createImageBitmap=="function"),Ei}var Xn;function z1(){if(Xn==null&&(Xn=!1,P1())){let t=new OffscreenCanvas(5,5).getContext("2d",{willReadFrequently:!0});if(t){for(let r=0;r<25;r++){let i=r*4;t.fillStyle=`rgb(${i},${i+1},${i+2})`,t.fillRect(r%5,Math.floor(r/5),1,1)}let e=t.getImageData(0,0,5,5).data;for(let r=0;r<100;r++)if(r%4!=3&&e[r]!==r){Xn=!0;break}}}return Xn||!1}var fe=typeof Float32Array<"u"?Float32Array:Array;function L1(){var t=new fe(9);return fe!=Float32Array&&(t[1]=0,t[2]=0,t[3]=0,t[5]=0,t[6]=0,t[7]=0),t[0]=1,t[4]=1,t[8]=1,t}function Ap(){var t=new fe(3);return fe!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0),t}function V1(t){var e=t[0],r=t[1],i=t[2];return Math.sqrt(e*e+r*r+i*i)}function hh(t,e,r){var i=new fe(3);return i[0]=t,i[1]=e,i[2]=r,i}function O1(t,e){var r=e[0],i=e[1],n=e[2],a=r*r+i*i+n*n;return a>0&&(a=1/Math.sqrt(a)),t[0]=e[0]*a,t[1]=e[1]*a,t[2]=e[2]*a,t}function R1(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function ks(t,e,r){var i=e[0],n=e[1],a=e[2],s=r[0],o=r[1],l=r[2];return t[0]=n*l-a*o,t[1]=a*s-i*l,t[2]=i*o-n*s,t}var $1=V1;(function(){var t=Ap();return function(e,r,i,n,a,s){var o,l;for(r||(r=3),i||(i=0),l=n?Math.min(n*r+i,e.length):e.length,o=i;o0&&(s=1/Math.sqrt(s)),t[0]=r*s,t[1]=i*s,t[2]=n*s,t[3]=a*s,t}function q1(t,e,r){var i=e[0],n=e[1],a=e[2],s=e[3];return t[0]=r[0]*i+r[4]*n+r[8]*a+r[12]*s,t[1]=r[1]*i+r[5]*n+r[9]*a+r[13]*s,t[2]=r[2]*i+r[6]*n+r[10]*a+r[14]*s,t[3]=r[3]*i+r[7]*n+r[11]*a+r[15]*s,t}(function(){var t=N1();return function(e,r,i,n,a,s){var o,l;for(r||(r=4),i||(i=0),l=n?Math.min(n*r+i,e.length):e.length,o=i;o1e-6?(p=Math.acos(f),d=Math.sin(p),y=Math.sin((1-i)*p)/d,m=Math.sin(i*p)/d):(y=1-i,m=i),t[0]=y*n+m*l,t[1]=y*a+m*u,t[2]=y*s+m*h,t[3]=y*o+m*c,t}function G1(t,e){var r=e[0]+e[4]+e[8],i;if(r>0)i=Math.sqrt(r+1),t[3]=.5*i,i=.5/i,t[0]=(e[5]-e[7])*i,t[1]=(e[6]-e[2])*i,t[2]=(e[1]-e[3])*i;else{var n=0;e[4]>e[0]&&(n=1),e[8]>e[n*3+n]&&(n=2);var a=(n+1)%3,s=(n+2)%3;i=Math.sqrt(e[n*3+n]-e[a*3+a]-e[s*3+s]+1),t[n]=.5*i,i=.5/i,t[3]=(e[a*3+s]-e[s*3+a])*i,t[a]=(e[a*3+n]+e[n*3+a])*i,t[s]=(e[s*3+n]+e[n*3+s])*i}return t}var ph=U1;(function(){var t=Ap(),e=hh(1,0,0),r=hh(0,1,0);return function(i,n,a){var s=R1(n,a);return s<-.999999?(ks(t,e,n),$1(t)<1e-6&&ks(t,r,n),O1(t,t),j1(i,t,Math.PI),i):s>.999999?(i[0]=0,i[1]=0,i[2]=0,i[3]=1,i):(ks(t,n,a),i[0]=t[0],i[1]=t[1],i[2]=t[2],i[3]=1+s,ph(i,i))}})(),(function(){var t=ch(),e=ch();return function(r,i,n,a,s,o){return Is(t,i,s,o),Is(e,n,a,o),Is(r,t,e,2*o*(1-o)),r}})(),(function(){var t=L1();return function(e,r,i,n){return t[0]=i[0],t[3]=i[1],t[6]=i[2],t[1]=n[0],t[4]=n[1],t[7]=n[2],t[2]=-r[0],t[5]=-r[1],t[8]=-r[2],ph(e,G1(e,t))}})();function X1(){var t=new fe(2);return fe!=Float32Array&&(t[0]=0,t[1]=0),t}(function(){var t=X1();return function(e,r,i,n,a,s){var o,l;for(r||(r=2),i||(i=0),l=n?Math.min(n*r+i,e.length):e.length,o=i;o=1)return 1;let e=t*t,r=e*t;return 4*(t<.5?r:3*(t-e)+r-.75)}function W1(t,e,r,i){return B1(t,e,r,i)}var D5=W1(.25,.1,.25,1);function en(t,e,r){return Math.min(r,Math.max(e,t))}function Z1(t,e,r){let i=r-e,n=((t-e)%i+i)%i+e;return n===e?r:n}function Xt(t,...e){for(let r of e)for(let i in r)t[i]=r[i];return t}function H1(t){return Math.log(t)/Math.LN2%1==0}function xn(t,e,r){let i={};for(let n in t)i[n]=e.call(r||this,t[n],n,t);return i}function K1(t,e,r){let i={};for(let n in t)e.call(r||this,t[n],n,t)&&(i[n]=t[n]);return i}function to(t,e){if(Array.isArray(t)){if(!Array.isArray(e)||t.length!==e.length)return!1;for(let r=0;r(e.y-t.y)*(r.x-t.x)}function vr(t){return typeof WorkerGlobalScope<"u"&&t!==void 0&&t instanceof WorkerGlobalScope}function Ba(t){return typeof ImageBitmap<"u"&&t instanceof ImageBitmap}function J1(t,e,r,i,n){let a=Math.max(-e,0)*4,s=(Math.max(0,r)-r)*i*4+a,o=i*4,l=Math.max(0,e),u=Math.max(0,r),h=Math.min(t.width,e+i),c=Math.min(t.height,r+n);return{rect:{x:l,y:u,width:h-l,height:c-u},layout:[{offset:s,stride:o}]}}function Q1(t,e,r,i,n){return et(this,null,function*(){if(typeof VideoFrame>"u")throw Error("VideoFrame not supported");let a=new VideoFrame(t,{timestamp:0});try{let s=a==null?void 0:a.format;if(!s||!(s.startsWith("BGR")||s.startsWith("RGB")))throw Error(`Unrecognized format ${s}`);let o=s.startsWith("BGR"),l=new Uint8ClampedArray(i*n*4);if(yield a.copyTo(l,J1(t,e,r,i,n)),o)for(let u=0;u{t.removeEventListener(e,r,i)}}}function yh(t){return t*Math.PI/180}var mh="AbortError",gl=class extends Error{constructor(t=mh){super(t instanceof Error?t.message:t),this.name=mh,t instanceof Error&&t.stack&&(this.stack=t.stack)}};function xl(t){return t instanceof Error&&t.name==="AbortError"}function e0(t){if(t.aborted)throw new gl(t.reason)}var vl={MAX_PARALLEL_IMAGE_REQUESTS:16,MAX_PARALLEL_IMAGE_REQUESTS_PER_FRAME:8,MAX_TILE_CACHE_ZOOM_LEVELS:5,REGISTERED_PROTOCOLS:{},WORKER_URL:""};function r0(t){return vl.REGISTERED_PROTOCOLS[t.substring(0,t.indexOf("://"))]}function Fp(t,e){vl.REGISTERED_PROTOCOLS[t]=e}function Tp(t){delete vl.REGISTERED_PROTOCOLS[t]}var gh="global-dispatcher",ga=class extends Error{constructor(t,e,r,i){super(`AJAXError: ${e} (${t}): ${r}`),this.status=t,this.statusText=e,this.url=r,this.body=i}};function kp(){var t;if(vr(self))return(t=self.worker)==null?void 0:t.referrer;if(window.location.protocol==="blob:")try{return window.parent.location.href}catch(e){}return window.location.href}var i0=t=>{var e;return t.startsWith("file:")||((e=kp())==null?void 0:e.startsWith("file:"))&&!/^\\w+:/.test(t)};function n0(t,e){return et(this,null,function*(){let r=new Request(t.url,{method:t.method||"GET",body:t.body,credentials:t.credentials,headers:t.headers,cache:t.cache,referrer:kp(),referrerPolicy:t.referrerPolicy,signal:e.signal});t.type==="json"&&!r.headers.has("Accept")&&r.headers.set("Accept","application/json");let i;try{i=yield fetch(r)}catch(s){throw xl(s)?s:new ga(0,tn(s).message,t.url,new Blob)}if(!i.ok){let s=yield i.blob();throw new ga(i.status,i.statusText,t.url,s)}let n;n=t.type==="arrayBuffer"||t.type==="image"?i.arrayBuffer():t.type==="json"?i.json():i.text();let a=yield n;return e0(e.signal),{data:a,cacheControl:i.headers.get("Cache-Control"),expires:i.headers.get("Expires"),etag:i.headers.get("ETag")}})}function a0(t,e){return new Promise((r,i)=>{var a;let n=new XMLHttpRequest;n.open(t.method||"GET",t.url,!0),(t.type==="arrayBuffer"||t.type==="image")&&(n.responseType="arraybuffer");for(let s in t.headers)n.setRequestHeader(s,t.headers[s]);t.type==="json"&&(n.responseType="text",(a=t.headers)!=null&&a.Accept||n.setRequestHeader("Accept","application/json")),n.withCredentials=t.credentials==="include",n.onerror=()=>{i(Error(n.statusText))},n.onload=()=>{if(!e.signal.aborted)if((n.status>=200&&n.status<300||n.status===0)&&n.response!==null){let s=n.response;if(t.type==="json")try{s=JSON.parse(n.response)}catch(o){i(o);return}r({data:s,cacheControl:n.getResponseHeader("Cache-Control"),expires:n.getResponseHeader("Expires"),etag:n.getResponseHeader("ETag")})}else{let s=new Blob([n.response],{type:n.getResponseHeader("Content-Type")});i(new ga(n.status,n.statusText,t.url,s))}},e.signal.addEventListener("abort",()=>{n.abort(),i(new gl(e.signal.reason))}),n.send(t.body)})}var Pa=function(t,e){return et(this,null,function*(){var r,i;if(t.url.includes("://")&&!/^https?:|^file:/.test(t.url)){let n=r0(t.url);if(n){let a=yield n(t,e);return!a.data&&t.type==="arrayBuffer"?Xt(a,{data:new ArrayBuffer(0)}):a}if(vr(self)&&((r=self.worker)!=null&&r.actor))return self.worker.actor.sendAsync({type:"GR",data:t,targetMapId:gh},e)}if(!i0(t.url)){if(fetch&&Request&&AbortController&&Object.hasOwn(Request.prototype,"signal"))return n0(t,e);if(vr(self)&&((i=self.worker)!=null&&i.actor))return self.worker.actor.sendAsync({type:"GR",data:t,mustQueue:!0,targetMapId:gh},e)}return a0(t,e)})},Ip=(t,e)=>Pa(Xt(t,{type:"json"}),e),Cp=(t,e)=>Pa(Xt(t,{type:"arrayBuffer"}),e);function xh(t,e,r){var i;(i=r[t])!=null&&i.includes(e)||(r[t]||(r[t]=[]),r[t].push(e))}function Cs(t,e,r){if(r!=null&&r[t]){let i=r[t].indexOf(e);i!==-1&&r[t].splice(i,1)}}var Mp=class{constructor(t,e={}){Xt(this,e),this.type=t}},xa=class extends Mp{constructor(t,e={}){super("error",Xt({error:t},e))}},s0=class{on(t,e){return this._listeners||(this._listeners={}),xh(t,e,this._listeners),{unsubscribe:()=>{this.off(t,e)}}}off(t,e){return Cs(t,e,this._listeners),Cs(t,e,this._oneTimeListeners),this}once(t,e){return e?(this._oneTimeListeners||(this._oneTimeListeners={}),xh(t,e,this._oneTimeListeners),this):new Promise(r=>this.once(t,r))}fire(t,e){var n,a,s,o,l,u;let r=typeof t=="string"?new Mp(t,e||{}):t,i=r.type;if(this.listens(i)){r.target=this;let h=(s=(a=(n=this._listeners)==null?void 0:n[i])==null?void 0:a.slice())!=null?s:[];for(let f of h)f.call(this,r);let c=(u=(l=(o=this._oneTimeListeners)==null?void 0:o[i])==null?void 0:l.slice())!=null?u:[];for(let f of c)Cs(i,f,this._oneTimeListeners),f.call(this,r);let p=this._eventedParent;p&&(Xt(r,typeof this._eventedParentData=="function"?this._eventedParentData():this._eventedParentData),p.fire(r))}else r instanceof xa&&console.error(r.error);return this}listens(t){var e,r,i,n,a;return!!((r=(e=this._listeners)==null?void 0:e[t])!=null&&r.length||(n=(i=this._oneTimeListeners)==null?void 0:i[t])!=null&&n.length||(a=this._eventedParent)!=null&&a.listens(t))}setEventedParent(t,e){return this._eventedParent=t,this._eventedParentData=e,this}},Bp={$version:8,$root:{version:{required:!0,type:"enum",values:[8]},name:{type:"string"},metadata:{type:"*"},center:{type:"array",value:"number",length:2},centerAltitude:{type:"number"},zoom:{type:"number"},bearing:{type:"number",default:0,period:360,units:"degrees"},pitch:{type:"number",default:0,units:"degrees"},roll:{type:"number",default:0,units:"degrees"},state:{type:"state",default:{}},light:{type:"light"},sky:{type:"sky"},projection:{type:"projection"},terrain:{type:"terrain"},sources:{required:!0,type:"sources"},sprite:{type:"sprite"},glyphs:{type:"string"},"font-faces":{type:"fontFaces"},transition:{type:"transition"},layers:{required:!0,type:"array",value:"layer"}},sources:{"*":{type:"source"}},source:["source_vector","source_raster","source_raster_dem","source_geojson","source_video","source_image"],source_vector:{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},encoding:{type:"enum",values:{mvt:{},mlt:{}},default:"mvt"},"*":{type:"*"}},source_raster:{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:"*"}},source_raster_dem:{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:{},custom:{}},default:"mapbox"},redFactor:{type:"number",default:1},blueFactor:{type:"number",default:1},greenFactor:{type:"number",default:1},baseShift:{type:"number",default:0},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_geojson:{type:{required:!0,type:"enum",values:{geojson:{}}},data:{required:!0,type:"*"},maxzoom:{type:"number",default:18},attribution:{type:"string"},buffer:{type:"number",default:128,maximum:512,minimum:0},filter:{type:"filter"},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"}},source_video:{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"}}},source_image:{type:{required:!0,type:"enum",values:{image:{}}},url:{type:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},layer:{id:{type:"string",required:!0},type:{type:"enum",values:{fill:{},line:{},symbol:{},circle:{},heatmap:{},"fill-extrusion":{},raster:{},hillshade:{},"color-relief":{},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"}},layout:["layout_fill","layout_line","layout_circle","layout_heatmap","layout_fill-extrusion","layout_symbol","layout_raster","layout_hillshade","layout_color-relief","layout_background"],layout_background:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible",expression:{interpolated:!1,parameters:["global-state"]},"property-type":"data-constant"}},layout_fill:{"fill-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible",expression:{interpolated:!1,parameters:["global-state"]},"property-type":"data-constant"}},layout_circle:{"circle-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible",expression:{interpolated:!1,parameters:["global-state"]},"property-type":"data-constant"}},layout_heatmap:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible",expression:{interpolated:!1,parameters:["global-state"]},"property-type":"data-constant"}},"layout_fill-extrusion":{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible",expression:{interpolated:!1,parameters:["global-state"]},"property-type":"data-constant"},"fill-extrusion-rounded-corner-distance":{type:"number",default:0,minimum:0,units:"meters","property-type":"constant"}},layout_line:{"line-cap":{type:"enum",values:{butt:{},round:{},square:{}},default:"butt",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"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","feature"]},"property-type":"data-driven"},"line-round-limit":{type:"number",default:1.05,requires:[{"line-join":"round"}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible",expression:{interpolated:!1,parameters:["global-state"]},"property-type":"data-constant"}},layout_symbol:{"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",{"!":"icon-overlap"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-overlap":{type:"enum",values:{never:{},always:{},cooperative:{}},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","feature"]},"property-type":"data-driven"},"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:"padding",default:[2],units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"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:{},"viewport-glyph":{},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-variable-anchor-offset":{type:"variableAnchorOffsetCollection",requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"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",{"!":"text-overlap"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-overlap":{type:"enum",values:{never:{},always:{},cooperative:{}},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"},"symbol-height-offset":{type:"number",default:0,units:"meters",requires:[{"symbol-placement":["point"]}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"symbol-height-anchor":{type:"enum",values:{ground:{},absolute:{}},default:"ground",requires:["symbol-height-offset"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible",expression:{interpolated:!1,parameters:["global-state"]},"property-type":"data-constant"}},layout_raster:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible",expression:{interpolated:!1,parameters:["global-state"]},"property-type":"data-constant"}},layout_hillshade:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible",expression:{interpolated:!1,parameters:["global-state"]},"property-type":"data-constant"}},"layout_color-relief":{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible",expression:{interpolated:!1,parameters:["global-state"]},"property-type":"data-constant"}},filter:{type:"boolean",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},filter_operator:{type:"enum",values:{"==":{},"!=":{},">":{},">=":{},"<":{},"<=":{},in:{},"!in":{},all:{},any:{},none:{},has:{},"!has":{}}},geometry_type:{type:"enum",values:{Point:{},LineString:{},Polygon:{}}},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:{type:"array",minimum:0,maximum:24,value:["number","color"],length:2},expression:{type:"array",value:"expression_name",minimum:1},light:{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}},sky:{"sky-color":{type:"color","property-type":"data-constant",default:"#88C6FC",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"horizon-color":{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"fog-color":{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"fog-ground-blend":{type:"number","property-type":"data-constant",default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"horizon-fog-blend":{type:"number","property-type":"data-constant",default:.8,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"sky-horizon-blend":{type:"number","property-type":"data-constant",default:.8,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"atmosphere-blend":{type:"number","property-type":"data-constant",default:.8,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0}},terrain:{source:{type:"string",required:!0},exaggeration:{type:"number",minimum:0,default:1}},projection:{type:{type:"projectionDefinition",default:"mercator","property-type":"data-constant",transition:!1,expression:{interpolated:!0,parameters:["zoom"]}}},paint:["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_symbol","paint_raster","paint_hillshade","paint_color-relief","paint_background"],paint_fill:{"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-layer-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","global-state"]},"property-type":"data-constant"},"fill-color":{type:"color",default:"#000000",transition:!0,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"}},"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,units:"meters",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{type:"number",default: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:{"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-layer-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","global-state"]},"property-type":"data-constant"},"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","feature"]},"property-type":"cross-faded-data-driven"},"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"}},paint_circle:{"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"}},paint_heatmap:{"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"}},paint_symbol:{"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"}},paint_raster:{"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"},resampling:{type:"enum",values:{linear:{},nearest:{}},default:"linear",expression:{interpolated:!1,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"}},paint_hillshade:{"hillshade-illumination-direction":{type:"numberArray",default:335,minimum:0,maximum:359,transition:!1,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-illumination-altitude":{type:"numberArray",default:45,minimum:0,maximum:90,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:"colorArray",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-highlight-color":{type:"colorArray",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"},"hillshade-method":{type:"enum",values:{standard:{},basic:{},combined:{},igor:{},multidirectional:{}},default:"standard",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},resampling:{type:"enum",values:{linear:{},nearest:{}},default:"linear",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},"paint_color-relief":{"color-relief-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"color-relief-color":{type:"color",transition:!1,expression:{interpolated:!0,parameters:["elevation"]},"property-type":"color-ramp"},resampling:{type:"enum",values:{linear:{},nearest:{}},default:"linear",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_background:{"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"}},transition:{duration:{type:"number",default:300,minimum:0,units:"milliseconds"},delay:{type:"number",default:0,minimum:0,units:"milliseconds"}},"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:{"*":{type:"string"}},interpolation:{type:"array",value:"interpolation_name",minimum:1},interpolation_name:{type:"enum",values:{linear:{syntax:{overloads:[{parameters:[],"output-type":"interpolation"}],parameters:[]}},exponential:{syntax:{overloads:[{parameters:["base"],"output-type":"interpolation"}],parameters:[{name:"base",type:"number literal"}]}},"cubic-bezier":{syntax:{overloads:[{parameters:["x1","y1","x2","y2"],"output-type":"interpolation"}],parameters:[{name:"x1",type:"number literal"},{name:"y1",type:"number literal"},{name:"x2",type:"number literal"},{name:"y2",type:"number literal"}]}}}}},D=Bp,Pp=["type","source","source-layer","minzoom","maxzoom","filter","layout"],E=class{constructor(t,e,r,i,n="error"){this.message=(t?`${t}: `:"")+r,i&&(this.identifier=i),this.severity=n,e!=null&&e.__line__&&(this.line=e.__line__)}},vn={kind:"null"},I={kind:"number"},W={kind:"string"},Q={kind:"boolean"},pe={kind:"color"},za={kind:"projectionDefinition"},mr={kind:"object"},H={kind:"value"},o0={kind:"error"},La={kind:"collator"},bn={kind:"formatted"},Va={kind:"padding"},rn={kind:"colorArray"},Oa={kind:"numberArray"},wn={kind:"resolvedImage"},Ra={kind:"variableAnchorOffsetCollection"};function Ut(t,e){return{kind:"array",itemType:t,N:e}}function mt(t){if(t.kind==="array"){let e=mt(t.itemType);return typeof t.N=="number"?`array<${e}, ${t.N}>`:t.itemType.kind==="value"?"array":`array<${e}>`}return t.kind}var l0=[vn,I,W,Q,pe,za,bn,mr,Ut(H),Va,Oa,rn,wn,Ra];function nn(t,e){if(e.kind==="error")return null;if(t.kind==="array"){if(e.kind==="array"&&(e.N===0&&e.itemType.kind==="value"||!nn(t.itemType,e.itemType))&&(typeof t.N!="number"||t.N===e.N))return null}else{if(t.kind===e.kind)return null;if(t.kind==="value"){for(let r of l0)if(!nn(r,e))return null}}return`Expected ${mt(t)} but found ${mt(e)} instead.`}function bl(t,e){return e.some(r=>r.kind===t.kind)}function gr(t,e){return e.some(r=>r==="null"?t===null:r==="array"?Array.isArray(t):r==="object"?t&&!Array.isArray(t)&&typeof t=="object":r===typeof t)}function Ye(t,e){return t.kind==="array"&&e.kind==="array"?t.itemType.kind===e.itemType.kind&&typeof t.N=="number":t.kind===e.kind}var zp=.96422,Lp=.82521,Vp=4/29,eo=6/29,Op=3*eo*eo,u0=Math.PI/180,h0=180/Math.PI;function Rp(t){return t%=360,t<0&&(t+=360),t}function $p([t,e,r,i]){t=Ms(t),e=Ms(e),r=Ms(r);let n,a,s=Bs((.2225045*t+.7168786*e+.0606169*r)/1);t===e&&e===r?n=a=s:(n=Bs((.4360747*t+.3850649*e+.1430804*r)/zp),a=Bs((.0139322*t+.0971045*e+.7141733*r)/Lp));let o=116*s-16;return[o<0?0:o,500*(n-s),200*(s-a),i]}function Ms(t){return t<=.04045?t/12.92:((t+.055)/1.055)**2.4}function Bs(t){return t>.008856451679035631?t**(1/3):t/Op+Vp}function Np([t,e,r,i]){let n=(t+16)/116,a=isNaN(e)?n:n+e/500,s=isNaN(r)?n:n-r/200;return n=1*zs(n),a=zp*zs(a),s=Lp*zs(s),[Ps(3.1338561*a-1.6168667*n-.4906146*s),Ps(-.9787684*a+1.9161415*n+.033454*s),Ps(.0719453*a-.2289914*n+1.4052427*s),i]}function Ps(t){return t=t<=.00304?12.92*t:1.055*t**(1/2.4)-.055,t<0?0:t>1?1:t}function zs(t){return t>eo?t*t*t:Op*(t-Vp)}function c0(t){let[e,r,i,n]=$p(t),a=Math.sqrt(r*r+i*i);return[Math.round(a*1e4)?Rp(Math.atan2(i,r)*h0):NaN,a,e,n]}function p0([t,e,r,i]){return t=isNaN(t)?0:t*u0,Np([r,Math.cos(t)*e,Math.sin(t)*e,i])}function f0([t,e,r,i]){t=Rp(t),e/=100,r/=100;function n(a){let s=(a+t/30)%12,o=e*Math.min(r,1-r);return r-o*Math.max(-1,Math.min(s-3,9-s,1))}return[n(0),n(8),n(4),i]}var d0=Object.hasOwn||function(t,e){return Object.prototype.hasOwnProperty.call(t,e)};function Yi(t,e){return d0(t,e)?t[e]:void 0}function y0(t){if(t=t.toLowerCase().trim(),t==="transparent")return[0,0,0,0];let e=Yi(m0,t);if(e){let[i,n,a]=e;return[i/255,n/255,a/255,1]}if(t.startsWith("#")&&/^#(?:[0-9a-f]{3,4}|[0-9a-f]{6}|[0-9a-f]{8})$/.test(t)){let i=t.length<6?1:2,n=1;return[Yn(t.slice(n,n+=i)),Yn(t.slice(n,n+=i)),Yn(t.slice(n,n+=i)),Yn(t.slice(n,n+i)||"ff")]}if(t.startsWith("rgb")){let i=t.match(/^rgba?\\(\\s*([\\de.+-]+)(%)?(?:\\s+|\\s*(,)\\s*)([\\de.+-]+)(%)?(?:\\s+|\\s*(,)\\s*)([\\de.+-]+)(%)?(?:\\s*([,\\/])\\s*([\\de.+-]+)(%)?)?\\s*\\)$/);if(i){let[n,a,s,o,l,u,h,c,p,f,d,y]=i,m=[o||" ",h||" ",f].join("");if(m===" "||m===" /"||m===",,"||m===",,,"){let g=[s,u,p].join(""),x=g==="%%%"?100:g===""?255:0;if(x){let v=[Rr(+a/x,0,1),Rr(+l/x,0,1),Rr(+c/x,0,1),d?vh(+d,y):1];if(bh(v))return v}}return}}let r=t.match(/^hsla?\\(\\s*([\\de.+-]+)(?:deg)?(?:\\s+|\\s*(,)\\s*)([\\de.+-]+)%(?:\\s+|\\s*(,)\\s*)([\\de.+-]+)%(?:\\s*([,\\/])\\s*([\\de.+-]+)(%)?)?\\s*\\)$/);if(r){let[i,n,a,s,o,l,u,h,c]=r,p=[a||" ",o||" ",u].join("");if(p===" "||p===" /"||p===",,"||p===",,,"){let f=[+n,Rr(+s,0,100),Rr(+l,0,100),h?vh(+h,c):1];if(bh(f))return f0(f)}}}function Yn(t){return parseInt(t.padEnd(2,t),16)/255}function vh(t,e){return Rr(e?t/100:t,0,1)}function Rr(t,e,r){return Math.min(Math.max(e,t),r)}function bh(t){return!t.some(Number.isNaN)}var m0={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]};function er(t,e,r){return t+r*(e-t)}function ti(t,e,r){return t.map((i,n)=>er(i,e[n],r))}function g0(t){return t==="rgb"||t==="hcl"||t==="lab"}var Bt,xt=(Bt=class{constructor(e,r,i,n=1,a=!0){this.r=e,this.g=r,this.b=i,this.a=n,a||(this.r*=n,this.g*=n,this.b*=n,n||this.overwriteGetter("rgb",[e,r,i,n]))}static parse(e){if(e instanceof Bt)return e;if(typeof e!="string")return;let r=y0(e);if(r)return new Bt(...r,!1)}get rgb(){let{r:e,g:r,b:i,a:n}=this,a=n||1/0;return this.overwriteGetter("rgb",[e/a,r/a,i/a,n])}get hcl(){return this.overwriteGetter("hcl",c0(this.rgb))}get lab(){return this.overwriteGetter("lab",$p(this.rgb))}overwriteGetter(e,r){return Object.defineProperty(this,e,{value:r}),r}toString(){let[e,r,i,n]=this.rgb;return`rgba(${[e,r,i].map(a=>Math.round(a*255)).join(",")},${n})`}static interpolate(e,r,i,n="rgb"){switch(n){case"rgb":{let[a,s,o,l]=ti(e.rgb,r.rgb,i);return new Bt(a,s,o,l,!1)}case"hcl":{let[a,s,o,l]=e.hcl,[u,h,c,p]=r.hcl,f,d;if(!isNaN(a)&&!isNaN(u)){let v=u-a;u>a&&v>180?v-=360:u180&&(v+=360),f=a+i*v}else isNaN(a)?isNaN(u)?f=NaN:(f=u,(o===1||o===0)&&(d=h)):(f=a,(c===1||c===0)&&(d=s));let[y,m,g,x]=p0([f,d!=null?d:er(s,h,i),er(o,c,i),er(l,p,i)]);return new Bt(y,m,g,x,!1)}case"lab":{let[a,s,o,l]=Np(ti(e.lab,r.lab,i));return new Bt(a,s,o,l,!1)}}}},Bt.black=new Bt(0,0,0,1),Bt.white=new Bt(1,1,1,1),Bt.transparent=new Bt(0,0,0,0),Bt.red=new Bt(1,0,0,1),Bt),x0=["bottom","center","top"],ro=class{constructor(t,e,r,i,n,a){this.text=t,this.image=e,this.scale=r,this.fontStack=i,this.textColor=n,this.verticalAlign=a}},Le=class ha{constructor(e){this.sections=e}static fromString(e){return new ha([new ro(e,null,null,null,null,null)])}isEmpty(){return this.sections.length===0||!this.sections.some(e=>e.text.length!==0||e.image&&e.image.name.length!==0)}static factory(e){return e instanceof ha?e:ha.fromString(e)}toString(){return this.sections.length===0?"":this.sections.map(e=>e.text).join("")}},Ee=class Ri{constructor(e){this.values=e.slice()}static parse(e){if(e instanceof Ri)return e;if(typeof e=="number")return new Ri([e,e,e,e]);if(Array.isArray(e)&&!(e.length<1||e.length>4)){for(let r of e)if(typeof r!="number")return;switch(e.length){case 1:e=[e[0],e[0],e[0],e[0]];break;case 2:e=[e[0],e[1],e[0],e[1]];break;case 3:e=[e[0],e[1],e[2],e[1]]}return new Ri(e)}}toString(){return JSON.stringify(this.values)}static interpolate(e,r,i){return new Ri(ti(e.values,r.values,i))}},Fe=class $i{constructor(e){this.values=e.slice()}static parse(e){if(e instanceof $i)return e;if(typeof e=="number")return new $i([e]);if(Array.isArray(e)){for(let r of e)if(typeof r!="number")return;return new $i(e)}}toString(){return JSON.stringify(this.values)}static interpolate(e,r,i){return new $i(ti(e.values,r.values,i))}},ue=class Ni{constructor(e){this.values=e.slice()}static parse(e){if(e instanceof Ni)return e;if(typeof e=="string"){let i=xt.parse(e);return i?new Ni([i]):void 0}if(!Array.isArray(e))return;let r=[];for(let i of e){if(typeof i!="string")return;let n=xt.parse(i);if(!n)return;r.push(n)}return new Ni(r)}toString(){return JSON.stringify(this.values)}static interpolate(e,r,i,n="rgb"){let a=[];if(e.values.length!=r.values.length)throw Error(`colorArray: Arrays have mismatched length (${e.values.length} vs. ${r.values.length}), cannot interpolate.`);for(let s=0;s=0&&t<=255&&typeof e=="number"&&e>=0&&e<=255&&typeof r=="number"&&r>=0&&r<=255?i===void 0||typeof i=="number"&&i>=0&&i<=1?null:`Invalid rgba value [${[t,e,r,i].join(", ")}]: \'a\' must be between 0 and 1.`:`Invalid rgba value [${(typeof i=="number"?[t,e,r,i]:[t,e,r]).join(", ")}]: \'r\', \'g\', and \'b\' must be between 0 and 255.`}function ei(t){if(t===null||typeof t=="string"||typeof t=="boolean"||typeof t=="number"||t instanceof Sr||t instanceof xt||t instanceof wl||t instanceof Le||t instanceof Ee||t instanceof Fe||t instanceof ue||t instanceof Ae||t instanceof Se)return!0;if(Array.isArray(t)){for(let e of t)if(!ei(e))return!1;return!0}if(typeof t=="object"){for(let e in t)if(!ei(t[e]))return!1;return!0}return!1}function St(t){if(t===null)return vn;if(typeof t=="string")return W;if(typeof t=="boolean")return Q;if(typeof t=="number")return I;if(t instanceof xt)return pe;if(t instanceof Sr)return za;if(t instanceof wl)return La;if(t instanceof Le)return bn;if(t instanceof Ee)return Va;if(t instanceof Fe)return Oa;if(t instanceof ue)return rn;if(t instanceof Ae)return Ra;if(t instanceof Se)return wn;if(Array.isArray(t)){let e=t.length,r;for(let i of t){let n=St(i);if(!r)r=n;else{if(r===n)continue;r=H;break}}return Ut(r||H,e)}return mr}function Wi(t){let e=typeof t;return t===null?"":e==="string"||e==="number"||e==="boolean"?String(t):t instanceof xt||t instanceof Sr||t instanceof Le||t instanceof Ee||t instanceof Fe||t instanceof ue||t instanceof Ae||t instanceof Se?t.toString():JSON.stringify(t)}var ri=class jp{constructor(e,r){this.type=e,this.value=r}static parse(e,r){if(e.length!==2)return r.error(`\'literal\' expression requires exactly one argument, but found ${e.length-1} instead.`);if(!ei(e[1]))return r.error(`invalid value of type "${typeof e[1]}"`);let i=e[1],n=St(i),a=r.expectedType;return n.kind==="array"&&n.N===0&&a&&a.kind==="array"&&(typeof a.N!="number"||a.N===0)&&(n=a),new jp(n,i)}evaluate(){return this.value}eachChild(){}outputDefined(){return!0}},b0=["Unknown","Point","LineString","Polygon"],Gp=class{constructor(){this.globals=null,this.feature=null,this.featureState=null,this.formattedSection=null,this._parseColorCache=new Map,this.availableImages=null,this.canonical=null}id(){return this.feature&&"id"in this.feature?this.feature.id:null}geometryType(){return this.feature?typeof this.feature.type=="number"?b0[this.feature.type]:this.feature.type:null}geometry(){return this.feature&&"geometry"in this.feature?this.feature.geometry:null}canonicalID(){return this.canonical}properties(){return this.feature&&this.feature.properties||{}}parseColor(t){let e=this._parseColorCache.get(t);return e||(e=xt.parse(t),this._parseColorCache.set(t,e)),e}};function $a(t,e,r){let i=t.length-1,n=0,a=i,s=0,o,l;for(;n<=a;)if(s=Math.floor((n+a)/2),o=t[s],l=t[s+1],o<=e){if(s===i||ee)a=s-1;else throw new ft("Input is not a number.",r);return 0}var Dl=class Xp{constructor(e,r,i,n){this.type=e,this.input=r,this.key=n,this.labels=[],this.outputs=[];for(let[a,s]of i)this.labels.push(a),this.outputs.push(s)}static parse(e,r){if(e.length-1<4)return r.error(`Expected at least 4 arguments, but found only ${e.length-1}.`);if((e.length-1)%2!=0)return r.error("Expected an even number of arguments.");let i=r.parse(e[1],1,I);if(!i)return null;let n=[],a=null;r.expectedType&&r.expectedType.kind!=="value"&&(a=r.expectedType);for(let s=1;s=o)return r.error(\'Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.\',u);let c=r.parse(l,h,a);if(!c)return null;a||(a=c.type),n.push([o,c])}return new Xp(a,i,n,r.key)}evaluate(e){let r=this.labels,i=this.outputs;if(r.length===1)return i[0].evaluate(e);let n=this.input.evaluate(e);if(n<=r[0])return i[0].evaluate(e);let a=r.length;return n>=r[a-1]?i[a-1].evaluate(e):i[$a(r,n,this.key)].evaluate(e)}eachChild(e){e(this.input);for(let r of this.outputs)e(r)}outputDefined(){return this.outputs.every(e=>e.outputDefined())}};function w0(t,e,r,i){let n=3*t,a=3*(r-t)-n,s=1-n-a,o=3*e,l=3*(i-e)-o,u=1-o-l;return function(h,c=1e-6){if(h<=0)return 0;if(h>=1)return 1;let p=h;for(let y=0;y<8;y++){let m=((s*p+a)*p+n)*p-h;if(Math.abs(m)m?f=p:d=p,p=(f+d)*.5}return((u*p+l)*p+o)*p}}var De=class io{constructor(e,r,i,n,a,s){this.type=e,this.operator=r,this.interpolation=i,this.input=n,this.key=s,this.labels=[],this.outputs=[];for(let[o,l]of a)this.labels.push(o),this.outputs.push(l)}static interpolationFactor(e,r,i,n){let a=0;if(e.name==="exponential")a=Ls(r,e.base,i,n);else if(e.name==="linear")a=Ls(r,1,i,n);else if(e.name==="cubic-bezier"){let s=e.controlPoints;a=w0(s[0],s[1],s[2],s[3])(Ls(r,1,i,n))}return a}static parse(e,r){let[i,n,a,...s]=e;if(!Array.isArray(n)||n.length===0)return r.error("Expected an interpolation type expression.",1);if(n[0]==="linear")n={name:"linear"};else if(n[0]==="exponential"){let u=n[1];if(typeof u!="number")return r.error("Exponential interpolation requires a numeric base.",1,1);n={name:"exponential",base:u}}else if(n[0]==="cubic-bezier"){let u=n.slice(1);if(u.length!==4||u.some(h=>typeof h!="number"||h<0||h>1))return r.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);n={name:"cubic-bezier",controlPoints:u}}else return r.error(`Unknown interpolation type ${String(n[0])}`,1,0);if(e.length-1<4)return r.error(`Expected at least 4 arguments, but found only ${e.length-1}.`);if((e.length-1)%2!=0)return r.error("Expected an even number of arguments.");if(a=r.parse(a,2,I),!a)return null;let o=[],l=null;(i==="interpolate-hcl"||i==="interpolate-lab")&&r.expectedType!=rn?l=pe:r.expectedType&&r.expectedType.kind!=="value"&&(l=r.expectedType);for(let u=0;u=h)return r.error(\'Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.\',p);let d=r.parse(c,f,l);if(!d)return null;l||(l=d.type),o.push([h,d])}return!Ye(l,I)&&!Ye(l,za)&&!Ye(l,pe)&&!Ye(l,Va)&&!Ye(l,Oa)&&!Ye(l,rn)&&!Ye(l,Ra)&&!Ye(l,Ut(I))?r.error(`Type ${mt(l)} is not interpolatable.`):new io(l,i,n,a,o,r.key)}evaluate(e){let r=this.labels,i=this.outputs;if(r.length===1)return i[0].evaluate(e);let n=this.input.evaluate(e);if(n<=r[0])return i[0].evaluate(e);let a=r.length;if(n>=r[a-1])return i[a-1].evaluate(e);let s=$a(r,n,this.key),o=r[s],l=r[s+1],u=io.interpolationFactor(this.interpolation,n,o,l),h=i[s].evaluate(e),c=i[s+1].evaluate(e);switch(this.operator){case"interpolate":switch(this.type.kind){case"number":return er(h,c,u);case"color":return xt.interpolate(h,c,u);case"padding":return Ee.interpolate(h,c,u);case"colorArray":return ue.interpolate(h,c,u);case"numberArray":return Fe.interpolate(h,c,u);case"variableAnchorOffsetCollection":return Ae.interpolate(h,c,u,this.key);case"array":return ti(h,c,u);case"projectionDefinition":return Sr.interpolate(h,c,u)}case"interpolate-hcl":switch(this.type.kind){case"color":return xt.interpolate(h,c,u,"hcl");case"colorArray":return ue.interpolate(h,c,u,"hcl")}case"interpolate-lab":switch(this.type.kind){case"color":return xt.interpolate(h,c,u,"lab");case"colorArray":return ue.interpolate(h,c,u,"lab")}}}eachChild(e){e(this.input);for(let r of this.outputs)e(r)}outputDefined(){return this.outputs.every(e=>e.outputDefined())}};function Ls(t,e,r,i){let n=i-r,a=t-r;return n===0?0:e===1?a/n:(e**+a-1)/(e**+n-1)}var br={color:xt.interpolate,number:er,padding:Ee.interpolate,numberArray:Fe.interpolate,colorArray:ue.interpolate,variableAnchorOffsetCollection:Ae.interpolate,array:ti},Yp=class Wp{constructor(e){this.type=bn,this.sections=e}static parse(e,r){if(e.length<2)return r.error("Expected at least one argument.");let i=e[1];if(!Array.isArray(i)&&typeof i=="object")return r.error("First argument must be an image or text section.");let n=[],a=!1;for(let s=1;s<=e.length-1;++s){let o=e[s];if(a&&typeof o=="object"&&!Array.isArray(o)){a=!1;let l=null;if(o["font-scale"]&&(l=r.parse(o["font-scale"],1,I),!l))return null;let u=null;if(o["text-font"]&&(u=r.parse(o["text-font"],1,Ut(W)),!u))return null;let h=null;if(o["text-color"]&&(h=r.parse(o["text-color"],1,pe),!h))return null;let c=null;if(o["vertical-align"]){if(typeof o["vertical-align"]=="string"&&!x0.includes(o["vertical-align"]))return r.error(`\'vertical-align\' must be one of: \'bottom\', \'center\', \'top\' but found \'${o["vertical-align"]}\' instead.`);if(c=r.parse(o["vertical-align"],1,W),!c)return null}let p=n[n.length-1];p.scale=l,p.font=u,p.textColor=h,p.verticalAlign=c}else{let l=r.parse(e[s],1,H);if(!l)return null;let u=l.type.kind;if(u!=="string"&&u!=="value"&&u!=="null"&&u!=="resolvedImage")return r.error("Formatted text type must be \'string\', \'value\', \'image\' or \'null\'.");a=!0,n.push({content:l,scale:null,font:null,textColor:null,verticalAlign:null})}}return new Wp(n)}evaluate(e){return new Le(this.sections.map(r=>{let i=r.content.evaluate(e);return St(i)===wn?new ro("",i,null,null,null,r.verticalAlign?r.verticalAlign.evaluate(e):null):new ro(Wi(i),null,r.scale?r.scale.evaluate(e):null,r.font?r.font.evaluate(e).join(","):null,r.textColor?r.textColor.evaluate(e):null,r.verticalAlign?r.verticalAlign.evaluate(e):null)}))}eachChild(e){for(let r of this.sections)e(r.content),r.scale&&e(r.scale),r.font&&e(r.font),r.textColor&&e(r.textColor),r.verticalAlign&&e(r.verticalAlign)}outputDefined(){return!1}};function Zp(t,e,r=0,i=t.length-1,n=D0){for(;i>r;){if(i-r>600){let l=i-r+1,u=e-r+1,h=Math.log(l),c=.5*Math.exp(2*h/3),p=.5*Math.sqrt(h*c*(l-c)/l)*(u-l/2<0?-1:1);Zp(t,e,Math.max(r,Math.floor(e-u*c/l+p)),Math.min(i,Math.floor(e+(l-u)*c/l+p)),n)}let a=t[e],s=r,o=i;for(ki(t,r,e),n(t[i],a)>0&&ki(t,r,i);s0;)o--}n(t[r],a)===0?ki(t,r,o):(o++,ki(t,o,i)),o<=e&&(r=o+1),e<=o&&(i=o-1)}}function ki(t,e,r){let i=t[e];t[e]=t[r],t[r]=i}function D0(t,e){return te)}function Na(t,e){if(t.length<=1)return[t];let r=[],i,n;for(let a of t){let s=A0(a);s!==0&&(a.area=Math.abs(s),n===void 0&&(n=s<0),n===s<0?(i&&r.push(i),i=[a]):i.push(a))}if(i&&r.push(i),e>1)for(let a=0;a2){let u=e[1];if(typeof u!="string"||!(u in Wn)||u==="object")return r.error(\'The item type argument of "array" must be one of string, number, boolean\',1);o=Wn[u],i++}else o=H;let l;if(e.length>3){if(e[2]!==null&&(typeof e[2]!="number"||e[2]<0||e[2]!==Math.floor(e[2])))return r.error(\'The length argument to "array" must be a positive integer literal\',2);l=e[2],i++}n=Ut(o,l)}else{if(!Wn[a])throw Error(`Types doesn\'t contain name = ${a}`);n=Wn[a]}let s=[];for(;ie.outputDefined())}},wh={"to-boolean":Q,"to-color":pe,"to-number":I,"to-string":W},jr=class Kp{constructor(e,r,i){this.type=e,this.args=r,this.key=i}static parse(e,r){if(e.length<2)return r.error("Expected at least one argument.");let i=e[0];if(!wh[i])throw Error(`Can\'t parse ${i} as it is not part of the known types`);if((i==="to-boolean"||i==="to-string")&&e.length!==2)return r.error("Expected one argument.");let n=wh[i],a=[];for(let s=1;s4?`Invalid rgba value ${JSON.stringify(r)}: expected an array containing either three or four numeric values.`:qp(r[0],r[1],r[2],r[3]),!i))return new xt(r[0]/255,r[1]/255,r[2]/255,r[3])}throw new ft(i||`Could not parse color from value \'${typeof r=="string"?r:JSON.stringify(r)}\'`,this.key)}case"padding":{let r;for(let i of this.args){r=i.evaluate(e);let n=Ee.parse(r);if(n)return n}throw new ft(`Could not parse padding from value \'${typeof r=="string"?r:JSON.stringify(r)}\'`,this.key)}case"numberArray":{let r;for(let i of this.args){r=i.evaluate(e);let n=Fe.parse(r);if(n)return n}throw new ft(`Could not parse numberArray from value \'${typeof r=="string"?r:JSON.stringify(r)}\'`,this.key)}case"colorArray":{let r;for(let i of this.args){r=i.evaluate(e);let n=ue.parse(r);if(n)return n}throw new ft(`Could not parse colorArray from value \'${typeof r=="string"?r:JSON.stringify(r)}\'`,this.key)}case"variableAnchorOffsetCollection":{let r;for(let i of this.args){r=i.evaluate(e);let n=Ae.parse(r);if(n)return n}throw new ft(`Could not parse variableAnchorOffsetCollection from value \'${typeof r=="string"?r:JSON.stringify(r)}\'`,this.key)}case"number":{let r=null;for(let i of this.args){if(r=i.evaluate(e),r===null)return 0;let n=Number(r);if(!isNaN(n))return n}throw new ft(`Could not convert ${JSON.stringify(r)} to number.`,this.key)}case"formatted":return Le.fromString(Wi(this.args[0].evaluate(e)));case"resolvedImage":return Se.fromString(Wi(this.args[0].evaluate(e)));case"projectionDefinition":{let r=this.args[0].evaluate(e);if(Sr.parse(r))return r;throw new ft(`Could not parse projectionDefinition from value \'${typeof r=="string"?r:JSON.stringify(r)}\'`,this.key)}default:return Wi(this.args[0].evaluate(e))}}eachChild(e){this.args.forEach(e)}outputDefined(){return this.args.every(e=>e.outputDefined())}},Jp=class Qp{constructor(e,r){this.type=r.type,this.bindings=[].concat(e),this.result=r}evaluate(e){return this.result.evaluate(e)}eachChild(e){for(let r of this.bindings)e(r[1]);e(this.result)}static parse(e,r){if(e.length<4)return r.error(`Expected at least 3 arguments, but found ${e.length-1} instead.`);let i=[];for(let a=1;a=i.length)throw new ft(`Array index out of bounds: ${r} > ${i.length-1}.`,this.key);if(r!==Math.floor(r))throw new ft(`Array index must be an integer, but found ${r} instead.`,this.key);return i[r]}eachChild(e){e(this.index),e(this.input)}outputDefined(){return!1}},E0=class nf{constructor(e,r,i){this.needle=e,this.haystack=r,this.key=i,this.type=Q}static parse(e,r){if(e.length!==3)return r.error(`Expected 2 arguments, but found ${e.length-1} instead.`);let i=r.parse(e[1],1,H),n=r.parse(e[2],2,H);return!i||!n?null:bl(i.type,[Q,W,I,vn,H])?new nf(i,n,r.key):r.error(`Expected first argument to be of type boolean, string, number or null, but found ${mt(i.type)} instead`)}evaluate(e){let r=this.needle.evaluate(e),i=this.haystack.evaluate(e);if(!i)return!1;if(!gr(r,["boolean","string","number","null"]))throw new ft(`Expected first argument to be of type boolean, string, number or null, but found ${mt(St(r))} instead.`,this.key);if(!gr(i,["string","array"]))throw new ft(`Expected second argument to be of type array or string, but found ${mt(St(i))} instead.`,this.key);return i.indexOf(r)>=0}eachChild(e){e(this.needle),e(this.haystack)}outputDefined(){return!0}},F0=class no{constructor(e,r,i,n){this.needle=e,this.haystack=r,this.key=i,this.fromIndex=n,this.type=I}static parse(e,r){if(e.length<=2||e.length>=5)return r.error(`Expected 2 or 3 arguments, but found ${e.length-1} instead.`);let i=r.parse(e[1],1,H),n=r.parse(e[2],2,H);if(!i||!n)return null;if(!bl(i.type,[Q,W,I,vn,H]))return r.error(`Expected first argument to be of type boolean, string, number or null, but found ${mt(i.type)} instead`);if(e.length===4){let a=r.parse(e[3],3,I);return a?new no(i,n,r.key,a):null}return new no(i,n,r.key)}evaluate(e){let r=this.needle.evaluate(e),i=this.haystack.evaluate(e);if(!gr(r,["boolean","string","number","null"]))throw new ft(`Expected first argument to be of type boolean, string, number or null, but found ${mt(St(r))} instead.`,this.key);let n;if(this.fromIndex&&(n=this.fromIndex.evaluate(e)),gr(i,["string"])){let a=i.indexOf(r,n);return a===-1?-1:[...i.slice(0,a)].length}if(gr(i,["array"]))return i.indexOf(r,n);throw new ft(`Expected second argument to be of type array or string, but found ${mt(St(i))} instead.`,this.key)}eachChild(e){e(this.needle),e(this.haystack),this.fromIndex&&e(this.fromIndex)}outputDefined(){return!1}},T0=class af{constructor(e,r,i,n,a,s){this.inputType=e,this.type=r,this.input=i,this.cases=n,this.outputs=a,this.otherwise=s}static parse(e,r){if(e.length<5)return r.error(`Expected at least 4 arguments, but found only ${e.length-1}.`);if(e.length%2!=1)return r.error("Expected an even number of arguments.");let i,n;r.expectedType&&r.expectedType.kind!=="value"&&(n=r.expectedType);let a={},s=[];for(let u=2;u2**53-1)return p.error(`Branch labels must be integers no larger than ${2**53-1}.`);if(typeof d=="number"&&Math.floor(d)!==d)return p.error("Numeric branch labels must be integer values.");if(!i)i=St(d);else if(p.checkSubtype(i,St(d)))return null;if(a[String(d)]!==void 0)return p.error("Branch labels must be unique.");a[String(d)]=s.length}let f=r.parse(c,u,n);if(!f)return null;n||(n=f.type),s.push(f)}let o=r.parse(e[1],1,H);if(!o)return null;let l=r.parse(e[e.length-1],e.length-1,n);return!l||o.type.kind!=="value"&&r.concat(1).checkSubtype(i,o.type)?null:new af(i,n,o,a,s,l)}evaluate(e){let r=this.input.evaluate(e);return(St(r)===this.inputType&&this.outputs[this.cases[r]]||this.otherwise).evaluate(e)}eachChild(e){e(this.input),this.outputs.forEach(e),e(this.otherwise)}outputDefined(){return this.outputs.every(e=>e.outputDefined())&&this.otherwise.outputDefined()}},k0=class sf{constructor(e,r,i){this.type=e,this.branches=r,this.otherwise=i}static parse(e,r){if(e.length<4)return r.error(`Expected at least 3 arguments, but found only ${e.length-1}.`);if(e.length%2!=0)return r.error("Expected an odd number of arguments.");let i;r.expectedType&&r.expectedType.kind!=="value"&&(i=r.expectedType);let n=[];for(let s=1;sr.outputDefined())&&this.otherwise.outputDefined()}},I0=class ao{constructor(e,r,i,n,a){this.type=e,this.input=r,this.beginIndex=i,this.key=n,this.endIndex=a}static parse(e,r){if(e.length<=2||e.length>=5)return r.error(`Expected 2 or 3 arguments, but found ${e.length-1} instead.`);let i=r.parse(e[1],1,H),n=r.parse(e[2],2,I);if(!i||!n)return null;if(!bl(i.type,[Ut(H),W,H]))return r.error(`Expected first argument to be of type array or string, but found ${mt(i.type)} instead`);if(e.length===4){let a=r.parse(e[3],3,I);return a?new ao(i.type,i,n,r.key,a):null}return new ao(i.type,i,n,r.key)}evaluate(e){let r=this.input.evaluate(e),i=this.beginIndex.evaluate(e),n;if(this.endIndex&&(n=this.endIndex.evaluate(e)),gr(r,["string"]))return[...r].slice(i,n).join("");if(gr(r,["array"]))return r.slice(i,n);throw new ft(`Expected first argument to be of type array or string, but found ${mt(St(r))} instead.`,this.key)}eachChild(e){e(this.input),e(this.beginIndex),this.endIndex&&e(this.endIndex)}outputDefined(){return!1}},of=class so{constructor(e,r){this.type=e,this.args=r}static parse(e,r){if(e.length<2)return r.error("Expected at least one argument.");let i=null,n=r.expectedType;n&&n.kind!=="value"&&(i=n);let a=[];for(let s of e.slice(1)){let o=r.parse(s,1+a.length,i,void 0,{typeAnnotation:"omit"});if(!o)return null;i||(i=o.type),a.push(o)}if(!i)throw Error("No output type");return n&&a.some(s=>nn(n,s.type))?new so(H,a):new so(i,a)}evaluate(e){let r=null,i=0,n;for(let a of this.args)if(i++,r=a.evaluate(e),r&&r instanceof Se&&!r.available&&(n||(n=r.name),r=null,i===this.args.length&&(r=n)),r!==null)break;return r}eachChild(e){this.args.forEach(e)}outputDefined(){return this.args.every(e=>e.outputDefined())}};function Dh(t,e){return t==="=="||t==="!="?e.kind==="boolean"||e.kind==="string"||e.kind==="number"||e.kind==="null"||e.kind==="value":e.kind==="string"||e.kind==="number"||e.kind==="value"}function C0(t,e,r){return e===r}function M0(t,e,r){return e!==r}function B0(t,e,r){return er}function z0(t,e,r){return e<=r}function L0(t,e,r){return e>=r}function lf(t,e,r,i){return i.compare(e,r)===0}function V0(t,e,r,i){return!lf(t,e,r,i)}function O0(t,e,r,i){return i.compare(e,r)<0}function R0(t,e,r,i){return i.compare(e,r)>0}function $0(t,e,r,i){return i.compare(e,r)<=0}function N0(t,e,r,i){return i.compare(e,r)>=0}function li(t,e,r){let i=t!=="=="&&t!=="!=";return class uf{constructor(a,s,o,l){this.lhs=a,this.rhs=s,this.key=o,this.collator=l,this.type=Q,this.hasUntypedArgument=a.type.kind==="value"||s.type.kind==="value"}static parse(a,s){if(a.length!==3&&a.length!==4)return s.error("Expected two or three arguments.");let o=a[0],l=s.parse(a[1],1,H);if(!l)return null;if(!Dh(o,l.type))return s.concat(1).error(`"${o}" comparisons are not supported for type \'${mt(l.type)}\'.`);let u=s.parse(a[2],2,H);if(!u)return null;if(!Dh(o,u.type))return s.concat(2).error(`"${o}" comparisons are not supported for type \'${mt(u.type)}\'.`);if(l.type.kind!==u.type.kind&&l.type.kind!=="value"&&u.type.kind!=="value")return s.error(`Cannot compare types \'${mt(l.type)}\' and \'${mt(u.type)}\'.`);i&&(l.type.kind==="value"&&u.type.kind!=="value"?l=new Be(u.type,[l],s.key):l.type.kind!=="value"&&u.type.kind==="value"&&(u=new Be(l.type,[u],s.key)));let h=null;if(a.length===4){if(l.type.kind!=="string"&&u.type.kind!=="string"&&l.type.kind!=="value"&&u.type.kind!=="value")return s.error("Cannot use collator to compare non-string types.");if(h=s.parse(a[3],3,La),!h)return null}return new uf(l,u,s.key,h)}evaluate(a){let s=this.lhs.evaluate(a),o=this.rhs.evaluate(a);if(i&&this.hasUntypedArgument){let l=St(s),u=St(o);if(l.kind!==u.kind||l.kind!=="string"&&l.kind!=="number")throw new ft(`Expected arguments for "${t}" to be (string, string) or (number, number), but found (${l.kind}, ${u.kind}) instead.`,this.key)}if(this.collator&&!i&&this.hasUntypedArgument){let l=St(s),u=St(o);if(l.kind!=="string"||u.kind!=="string")return e(a,s,o)}return this.collator?r(a,s,o,this.collator.evaluate(a)):e(a,s,o)}eachChild(a){a(this.lhs),a(this.rhs),this.collator&&a(this.collator)}outputDefined(){return!0}}}var U0=li("==",C0,lf),q0=li("!=",M0,V0),j0=li("<",B0,O0),G0=li(">",P0,R0),X0=li("<=",z0,$0),Y0=li(">=",L0,N0),hf=class cf{constructor(e,r,i){this.type=La,this.locale=i,this.caseSensitive=e,this.diacriticSensitive=r}static parse(e,r){if(e.length!==2)return r.error("Expected one argument.");let i=e[1];if(typeof i!="object"||Array.isArray(i))return r.error("Collator options argument must be an object.");let n=r.parse(i["case-sensitive"]!==void 0&&i["case-sensitive"],1,Q);if(!n)return null;let a=r.parse(i["diacritic-sensitive"]!==void 0&&i["diacritic-sensitive"],1,Q);if(!a)return null;let s=null;return i.locale&&(s=r.parse(i.locale,1,W),!s)?null:new cf(n,a,s)}evaluate(e){return new wl(this.caseSensitive.evaluate(e),this.diacriticSensitive.evaluate(e),this.locale?this.locale.evaluate(e):null)}eachChild(e){e(this.caseSensitive),e(this.diacriticSensitive),this.locale&&e(this.locale)}outputDefined(){return!1}},W0=class pf{constructor(e,r,i,n,a,s){this.type=W,this.number=e,this.locale=r,this.currency=i,this.unit=n,this.minFractionDigits=a,this.maxFractionDigits=s}static parse(e,r){if(e.length!==3)return r.error("Expected two arguments.");let i=r.parse(e[1],1,I);if(!i)return null;let n=e[2];if(typeof n!="object"||Array.isArray(n))return r.error("NumberFormat options argument must be an object.");let a=null;if(n.locale&&(a=r.parse(n.locale,1,W),!a))return null;let s=null;if(n.currency&&(s=r.parse(n.currency,1,W),!s))return null;let o=null;if(n.unit&&(o=r.parse(n.unit,1,W),!o))return null;if(s&&o)return r.error("NumberFormat options `currency` and `unit` are mutually exclusive");let l=null;if(n["min-fraction-digits"]&&(l=r.parse(n["min-fraction-digits"],1,I),!l))return null;let u=null;return n["max-fraction-digits"]&&(u=r.parse(n["max-fraction-digits"],1,I),!u)?null:new pf(i,a,s,o,l,u)}evaluate(e){return new Intl.NumberFormat(this.locale?this.locale.evaluate(e):[],{style:this.currency?"currency":this.unit?"unit":"decimal",currency:this.currency?this.currency.evaluate(e):void 0,unit:this.unit?this.unit.evaluate(e):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(e):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(e):void 0}).format(this.number.evaluate(e))}eachChild(e){e(this.number),this.locale&&e(this.locale),this.currency&&e(this.currency),this.unit&&e(this.unit),this.minFractionDigits&&e(this.minFractionDigits),this.maxFractionDigits&&e(this.maxFractionDigits)}outputDefined(){return!1}},Z0=class ff{constructor(e){this.type=wn,this.input=e}static parse(e,r){if(e.length!==2)return r.error("Expected two arguments.");let i=r.parse(e[1],1,W);return i?new ff(i):r.error("No image name provided.")}evaluate(e){let r=this.input.evaluate(e),i=Se.fromString(r);return i&&e.availableImages&&(i.available=e.availableImages.indexOf(r)>-1),i}eachChild(e){e(this.input)}outputDefined(){return!1}},H0=class df{constructor(e,r){this.input=e,this.key=r,this.type=I}static parse(e,r){if(e.length!==2)return r.error(`Expected 1 argument, but found ${e.length-1} instead.`);let i=r.parse(e[1],1);return i?i.type.kind!=="array"&&i.type.kind!=="string"&&i.type.kind!=="value"?r.error(`Expected argument of type string or array, but found ${mt(i.type)} instead.`):new df(i,r.key):null}evaluate(e){let r=this.input.evaluate(e);if(typeof r=="string")return[...r].length;if(Array.isArray(r))return r.length;throw new ft(`Expected value to be of type string or array, but found ${mt(St(r))} instead.`,this.key)}eachChild(e){e(this.input)}outputDefined(){return!1}},_e=8192;function K0(t,e){let r=J0(t[0]),i=tm(t[1]),n=2**e.z;return[Math.round(r*n*_e),Math.round(i*n*_e)]}function _l(t,e){let r=2**e.z,i=(t[0]/_e+e.x)/r,n=(t[1]/_e+e.y)/r;return[Q0(i),em(n)]}function J0(t){return(180+t)/360}function Q0(t){return t*360-180}function tm(t){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+t*Math.PI/360)))/360}function em(t){return 360/Math.PI*Math.atan(Math.exp((180-t*360)*Math.PI/180))-90}function Dn(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[2]=Math.max(t[2],e[0]),t[3]=Math.max(t[3],e[1])}function an(t,e){return!(t[0]<=e[0]||t[2]>=e[2]||t[1]<=e[1]||t[3]>=e[3])}function rm(t,e,r){return e[1]>t[1]!=r[1]>t[1]&&t[0]<(r[0]-e[0])*(t[1]-e[1])/(r[1]-e[1])+e[0]}function im(t,e,r){let i=t[0]-e[0],n=t[1]-e[1],a=t[0]-r[0],s=t[1]-r[1];return i*s-a*n===0&&i*a<=0&&n*s<=0}function Ua(t,e,r,i){let n=[e[0]-t[0],e[1]-t[1]];return om([i[0]-r[0],i[1]-r[1]],n)!==0&&!!(_h(t,e,r,i)&&_h(r,i,t,e))}function nm(t,e,r){for(let i of r)for(let n=0;n0&&c<0||h<0&&c>0}function Al(t,e,r){let i=[];for(let n=0;nr[2]){let n=i*.5,a=t[0]-r[0]>n?-i:r[0]-t[0]>n?i:0;a===0&&(a=t[0]-r[2]>n?-i:r[2]-t[0]>n?i:0),t[0]+=a}Dn(e,t)}function lm(t){t[0]=t[1]=1/0,t[2]=t[3]=-1/0}function Ah(t,e,r,i){let n=2**i.z*_e,a=[i.x*_e,i.y*_e],s=[];for(let o of t)for(let l of o){let u=[l.x+a[0],l.y+a[1]];gf(u,e,r,n),s.push(u)}return s}function Sh(t,e,r,i){let n=2**i.z*_e,a=[i.x*_e,i.y*_e],s=[];for(let o of t){let l=[];for(let u of o){let h=[u.x+a[0],u.y+a[1]];Dn(e,h),l.push(h)}s.push(l)}if(e[2]-e[0]<=n/2){lm(e);for(let o of s)for(let l of o)gf(l,e,r,n)}return s}function um(t,e){let r=[1/0,1/0,-1/0,-1/0],i=[1/0,1/0,-1/0,-1/0],n=t.canonicalID();if(e.type==="Polygon"){let a=Al(e.coordinates,i,n),s=Ah(t.geometry(),r,i,n);if(!an(r,i))return!1;for(let o of s)if(!ui(o,a))return!1}if(e.type==="MultiPolygon"){let a=mf(e.coordinates,i,n),s=Ah(t.geometry(),r,i,n);if(!an(r,i))return!1;for(let o of s)if(!am(o,a))return!1}return!0}function hm(t,e){let r=[1/0,1/0,-1/0,-1/0],i=[1/0,1/0,-1/0,-1/0],n=t.canonicalID();if(e.type==="Polygon"){let a=Al(e.coordinates,i,n),s=Sh(t.geometry(),r,i,n);if(!an(r,i))return!1;for(let o of s)if(!yf(o,a))return!1}if(e.type==="MultiPolygon"){let a=mf(e.coordinates,i,n),s=Sh(t.geometry(),r,i,n);if(!an(r,i))return!1;for(let o of s)if(!sm(o,a))return!1}return!0}var Sl=class pa{constructor(e,r){this.type=Q,this.geojson=e,this.geometries=r}static parse(e,r){if(e.length!==2)return r.error(`\'within\' expression requires exactly one argument, but found ${e.length-1} instead.`);if(ei(e[1])){let i=e[1];if(i.type==="FeatureCollection"){let n=[];for(let a of i.features){let{type:s,coordinates:o}=a.geometry;s==="Polygon"&&n.push(o),s==="MultiPolygon"&&n.push(...o)}if(n.length)return new pa(i,{type:"MultiPolygon",coordinates:n})}else if(i.type==="Feature"){let n=i.geometry.type;if(n==="Polygon"||n==="MultiPolygon")return new pa(i,i.geometry)}else if(i.type==="Polygon"||i.type==="MultiPolygon")return new pa(i,i)}return r.error("\'within\' expression requires valid geojson object that contains polygon geometry type.")}evaluate(e){if(e.geometry()!=null&&e.canonicalID()!=null){if(e.geometryType()==="Point")return um(e,this.geometries);if(e.geometryType()==="LineString")return hm(e,this.geometries)}return!1}eachChild(){}outputDefined(){return!0}},xf=class{constructor(t=[],e=(r,i)=>ri)){if(this.data=t,this.length=this.data.length,this.compare=e,this.length>0)for(let r=(this.length>>1)-1;r>=0;r--)this._down(r)}push(t){this.data.push(t),this._up(this.length++)}pop(){if(this.length===0)return;let t=this.data[0],e=this.data.pop();return--this.length>0&&(this.data[0]=e,this._down(0)),t}peek(){return this.data[0]}_up(t){let{data:e,compare:r}=this,i=e[t];for(;t>0;){let n=t-1>>1,a=e[n];if(r(i,a)>=0)break;e[t]=a,t=n}e[t]=i}_down(t){let{data:e,compare:r}=this,i=this.length>>1,n=e[t];for(;t=0)break;e[t]=e[a],t=a}e[t]=n}},Eh=Math.PI/180,El=class{constructor(t){let e=Eh*6378.137*1e3,r=Math.cos(t*Eh),i=1/(1-.0066943799901413165*(1-r*r)),n=Math.sqrt(i);this.kx=e*n*r,this.ky=e*n*i*.9933056200098587}distance(t,e){let r=this.wrap(t[0]-e[0])*this.kx,i=(t[1]-e[1])*this.ky;return Math.sqrt(r*r+i*i)}pointOnLine(t,e){let r=1/0,i,n,a,s;for(let o=0;o1?(l=t[o+1][0],u=t[o+1][1]):p>0&&(l+=h/this.kx*p,u+=c/this.ky*p)),h=this.wrap(e[0]-l)*this.kx,c=(e[1]-u)*this.ky;let f=h*h+c*c;f180;)t-=360;return t}};function vf(t,e){return e[0]-t[0]}function va(t){return t[1]-t[0]+1}function Ve(t,e){return t[1]>=t[0]&&t[1]t[1])return[null,null];let r=va(t);if(e){if(r===2)return[t,null];let n=Math.floor(r/2);return[[t[0],t[0]+n],[t[0]+n,t[1]]]}if(r===1)return[t,null];let i=Math.floor(r/2)-1;return[[t[0],t[0]+i],[t[0]+i+1,t[1]]]}function lo(t,e){if(!Ve(e,t.length))return[1/0,1/0,-1/0,-1/0];let r=[1/0,1/0,-1/0,-1/0];for(let i=e[0];i<=e[1];++i)Dn(r,t[i]);return r}function uo(t){let e=[1/0,1/0,-1/0,-1/0];for(let r of t)for(let i of r)Dn(e,i);return e}function Fh(t){return t[0]!==-1/0&&t[1]!==-1/0&&t[2]!==1/0&&t[3]!==1/0}function Fl(t,e,r){if(!Fh(t)||!Fh(e))return NaN;let i=0,n=0;return t[2]e[2]&&(i=t[0]-e[2]),t[1]>e[3]&&(n=t[1]-e[3]),t[3]=i)return i;if(an(n,a)){if(Th(t,e))return 0}else if(Th(e,t))return 0;let s=1/0;for(let o of t)for(let l=0,u=o.length,h=u-1;l0;){let l=s.pop();if(l[0]>=a)continue;let u=l[1],h=e?50:100;if(va(u)<=h){if(!Ve(u,t.length))return NaN;if(e){let c=dm(t,u,r,i);if(isNaN(c)||c===0)return c;a=Math.min(a,c)}else for(let c=u[0];c<=u[1];++c){let p=fm(t[c],r,i);if(a=Math.min(a,p),a===0)return 0}}else{let c=oo(u,e);kh(s,a,i,t,o,c[0]),kh(s,a,i,t,o,c[1])}}return a}function wa(t,e,r,i,n,a=1/0){let s=Math.min(a,n.distance(t[0],r[0]));if(s===0)return s;let o=new xf([[0,[0,t.length-1],[0,r.length-1]]],vf);for(;o.length>0;){let l=o.pop();if(l[0]>=s)continue;let u=l[1],h=l[2],c=e?50:100,p=i?50:100;if(va(u)<=c&&va(h)<=p){if(!Ve(u,t.length)&&Ve(h,r.length))return NaN;let f;if(e&&i)f=cm(t,u,r,h,n),s=Math.min(s,f);else if(e&&!i){let d=t.slice(u[0],u[1]+1);for(let y=h[0];y<=h[1];++y)if(f=dr(r[y],d,n),s=Math.min(s,f),s===0)return s}else if(!e&&i){let d=r.slice(h[0],h[1]+1);for(let y=u[0];y<=u[1];++y)if(f=dr(t[y],d,n),s=Math.min(s,f),s===0)return s}else f=pm(t,u,r,h,n),s=Math.min(s,f)}else{let f=oo(u,e),d=oo(h,i);Zn(o,s,n,t,r,f[0],d[0]),Zn(o,s,n,t,r,f[0],d[1]),Zn(o,s,n,t,r,f[1],d[0]),Zn(o,s,n,t,r,f[1],d[1])}}return s}function mm(t,e){let r=t.geometry(),i=r.flat().map(s=>_l([s.x,s.y],t.canonical));if(r.length===0)return NaN;let n=new El(i[0][1]),a=1/0;for(let s of e){switch(s.type){case"Point":a=Math.min(a,wa(i,!1,[s.coordinates],!1,n,a));break;case"LineString":a=Math.min(a,wa(i,!1,s.coordinates,!0,n,a));break;case"Polygon":a=Math.min(a,ba(i,!1,s.coordinates,n,a))}if(a===0)return a}return a}function gm(t,e){let r=t.geometry(),i=r.flat().map(s=>_l([s.x,s.y],t.canonical));if(r.length===0)return NaN;let n=new El(i[0][1]),a=1/0;for(let s of e){switch(s.type){case"Point":a=Math.min(a,wa(i,!0,[s.coordinates],!1,n,a));break;case"LineString":a=Math.min(a,wa(i,!0,s.coordinates,!0,n,a));break;case"Polygon":a=Math.min(a,ba(i,!0,s.coordinates,n,a))}if(a===0)return a}return a}function xm(t,e){let r=t.geometry();if(r.length===0||r[0].length===0)return NaN;let i=Na(r,0).map(s=>s.map(o=>o.map(l=>_l([l.x,l.y],t.canonical)))),n=new El(i[0][0][0][1]),a=1/0;for(let s of e)for(let o of i){switch(s.type){case"Point":a=Math.min(a,ba([s.coordinates],!1,o,n,a));break;case"LineString":a=Math.min(a,ba(s.coordinates,!0,o,n,a));break;case"Polygon":a=Math.min(a,ym(o,s.coordinates,n,a))}if(a===0)return a}return a}function Vs(t){return t.type==="MultiPolygon"?t.coordinates.map(e=>({type:"Polygon",coordinates:e})):t.type==="MultiLineString"?t.coordinates.map(e=>({type:"LineString",coordinates:e})):t.type==="MultiPoint"?t.coordinates.map(e=>({type:"Point",coordinates:e})):[t]}var kl=class fa{constructor(e,r){this.type=I,this.geojson=e,this.geometries=r}static parse(e,r){if(e.length!==2)return r.error(`\'distance\' expression requires exactly one argument, but found ${e.length-1} instead.`);if(ei(e[1])){let i=e[1];if(i.type==="FeatureCollection")return new fa(i,i.features.map(n=>Vs(n.geometry)).flat());if(i.type==="Feature")return new fa(i,Vs(i.geometry));if("type"in i&&"coordinates"in i)return new fa(i,Vs(i))}return r.error("\'distance\' expression requires valid geojson object that contains polygon geometry type.")}evaluate(e){if(e.geometry()!=null&&e.canonicalID()!=null){if(e.geometryType()==="Point")return mm(e,this.geometries);if(e.geometryType()==="LineString")return gm(e,this.geometries);if(e.geometryType()==="Polygon")return xm(e,this.geometries)}return NaN}eachChild(){}outputDefined(){return!0}},vm=class bf{constructor(e){let r=null;for(let i of e)if(!r)r=i.type;else{if(r===i.type)continue;r=H;break}this.type=Ut(r!=null?r:H,e.length),this.arr=e}static parse(e,r){if(e.length!==2)return r.error(`\'semiliteral\' expression requires exactly one argument, but found ${e.length-1} instead.`);if(!ei(e[1]))return r.error(`invalid value of type "${typeof e[1]}"`);let i=e[1],n=St(i);if(n.kind==="array"){let a=i,s=r.concat(1),o=[];for(let l=0;lr.evaluate(e))}eachChild(e){this.arr.forEach(e)}outputDefined(){return this.arr.every(e=>e.outputDefined())}},Il=class wf{constructor(e){this.key=e,this.type=H}static parse(e,r){if(e.length!==2)return r.error(`Expected 1 argument, but found ${e.length-1} instead.`);let i=e[1];return i==null?r.error("Global state property must be defined."):typeof i=="string"?new wf(i):r.error(`Global state property must be string, but found ${typeof e[1]} instead.`)}evaluate(e){var i,n;let r=(i=e.globals)==null?void 0:i.globalState;return!r||Object.keys(r).length===0?null:(n=Yi(r,this.key))!=null?n:null}eachChild(){}outputDefined(){return!1}},Yr={"==":U0,"!=":q0,">":G0,"<":j0,">=":Y0,"<=":X0,array:Be,at:S0,boolean:Be,case:k0,coalesce:of,collator:hf,format:Yp,image:Z0,in:E0,"index-of":F0,interpolate:De,"interpolate-hcl":De,"interpolate-lab":De,length:H0,let:Jp,literal:ri,match:T0,number:Be,"number-format":W0,object:Be,semiliteral:vm,slice:I0,step:Dl,string:Be,"to-boolean":jr,"to-color":jr,"to-number":jr,"to-string":jr,var:tf,within:Sl,distance:kl,"global-state":Il},ve=class extends Error{constructor(t,e){super(e),this.message=e,this.key=t}},bm=class Df{constructor(e,r=[]){this.parent=e,this.bindings={};for(let[i,n]of r)this.bindings[i]=n}concat(e){return new Df(this,e)}get(e){if(this.bindings[e])return this.bindings[e];if(this.parent)return this.parent.get(e);throw Error(`${e} not found in scope.`)}has(e){return this.bindings[e]?!0:this.parent?this.parent.has(e):!1}},_f=class Af{constructor(e,r,i=[],n,a=new bm,s=[]){this.registry=e,this.path=i,this.key=i.map(o=>`[${o}]`).join(""),this.scope=a,this.errors=s,this.expectedType=n,this._isConstant=r}parse(e,r,i,n,a={}){return r==null?this._parse(e,a):this.concat(r,i,n)._parse(e,a)}_parse(e,r){(e===null||typeof e=="string"||typeof e=="boolean"||typeof e=="number")&&(e=["literal",e]);let i=this.key;function n(a,s,o){return o==="assert"?new Be(s,[a],i):o==="coerce"?new jr(s,[a],i):a}if(Array.isArray(e)){if(e.length===0)return this.error(\'Expected an array with at least one element. If you wanted a literal array, use ["literal", []].\');let a=e[0];if(typeof a!="string")return this.error(`Expression name must be a string, but found ${typeof a} instead. If you wanted a literal array, use ["literal", [...]].`,0),null;let s=this.registry[a];if(s){let o=s.parse(e,this);if(!o)return null;if(this.expectedType){let l=this.expectedType,u=o.type;if((l.kind==="string"||l.kind==="number"||l.kind==="boolean"||l.kind==="object"||l.kind==="array")&&u.kind==="value")o=n(o,l,r.typeAnnotation||"assert");else if(l.kind==="projectionDefinition"&&["string","array","value"].includes(u.kind)||["color","formatted","resolvedImage"].includes(l.kind)&&["value","string"].includes(u.kind)||["padding","numberArray"].includes(l.kind)&&["value","number","array"].includes(u.kind)||l.kind==="colorArray"&&["value","string","array"].includes(u.kind)||l.kind==="variableAnchorOffsetCollection"&&["value","array"].includes(u.kind))o=n(o,l,r.typeAnnotation||"coerce");else if(this.checkSubtype(l,u))return null}if(!(o instanceof ri)&&o.type.kind!=="resolvedImage"&&this._isConstant(o)){let l=new Gp;try{o=new ri(o.type,o.evaluate(l))}catch(u){return this.error(u.message),null}}return o}return this.error(`Unknown expression "${a}". If you wanted a literal array, use ["literal", [...]].`,0)}return e===void 0?this.error("\'undefined\' value invalid. Use null instead."):typeof e=="object"?this.error(\'Bare objects invalid. Use ["literal", {...}] instead.\'):this.error(`Expected an array, but found ${typeof e} instead.`)}concat(e,r,i){let n=typeof e=="number"?this.path.concat(e):this.path,a=i?this.scope.concat(i):this.scope;return new Af(this.registry,this._isConstant,n,r||null,a,this.errors)}error(e,...r){let i=`${this.key}${r.map(n=>`[${n}]`).join("")}`;this.errors.push(new ve(i,e))}checkSubtype(e,r){let i=nn(e,r);return i&&this.error(i),i}},Er=class Ui{constructor(e,r,i,n,a){this.name=e,this.type=r,this._evaluate=i,this.args=n,this.key=a}evaluate(e){return this._evaluate(e,this.args,this.key)}eachChild(e){this.args.forEach(e)}outputDefined(){return!1}static parse(e,r){let i=e[0],n=Ui.definitions[i];if(!n)return r.error(`Unknown expression "${i}". If you wanted a literal array, use ["literal", [...]].`,0);let a=Array.isArray(n)?n[0]:n.type,s=Array.isArray(n)?[[n[1],n[2]]]:n.overloads,o=s.filter(([u])=>!Array.isArray(u)||u.length===e.length-1),l=null;for(let[u,h]of o){l=new _f(r.registry,Da,r.path,null,r.scope);let c=[],p=!1;for(let f=1;fDm(c)).join(" | "),h=[];for(let c=1;c>1;if(e[n]===t)return!0;e[n]>t?i=n-1:r=n+1}return!1}function hr(t){return{type:t}}Er.register(Yr,{error:[o0,[W],(t,[e],r)=>{throw new ft(e.evaluate(t),r)}],typeof:[W,[H],(t,[e])=>mt(St(e.evaluate(t)))],"to-rgba":[Ut(I,4),[pe],(t,[e])=>{let[r,i,n,a]=e.evaluate(t).rgb;return[r*255,i*255,n*255,a]}],rgb:[pe,[I,I,I],Ih],rgba:[pe,[I,I,I,I],Ih],has:{type:Q,overloads:[[[W],(t,[e])=>Ch(e.evaluate(t),t.properties())],[[W,mr],(t,[e,r])=>Ch(e.evaluate(t),r.evaluate(t))]]},get:{type:H,overloads:[[[W],(t,[e])=>Os(e.evaluate(t),t.properties())],[[W,mr],(t,[e,r])=>Os(e.evaluate(t),r.evaluate(t))]]},"feature-state":[H,[W],(t,[e])=>Os(e.evaluate(t),t.featureState||{})],properties:[mr,[],t=>t.properties()],"geometry-type":[W,[],t=>t.geometryType()],id:[H,[],t=>t.id()],zoom:[I,[],t=>t.globals.zoom],"heatmap-density":[I,[],t=>t.globals.heatmapDensity||0],elevation:[I,[],t=>t.globals.elevation||0],"line-progress":[I,[],t=>t.globals.lineProgress||0],accumulated:[H,[],t=>t.globals.accumulated===void 0?null:t.globals.accumulated],"+":[I,hr(I),(t,e)=>{let r=0;for(let i of e)r+=i.evaluate(t);return r}],"*":[I,hr(I),(t,e)=>{let r=1;for(let i of e)r*=i.evaluate(t);return r}],"-":{type:I,overloads:[[[I,I],(t,[e,r])=>e.evaluate(t)-r.evaluate(t)],[[I],(t,[e])=>-e.evaluate(t)]]},"/":[I,[I,I],(t,[e,r])=>e.evaluate(t)/r.evaluate(t)],"%":[I,[I,I],(t,[e,r])=>e.evaluate(t)%r.evaluate(t)],ln2:[I,[],()=>Math.LN2],pi:[I,[],()=>Math.PI],e:[I,[],()=>Math.E],"^":[I,[I,I],(t,[e,r])=>e.evaluate(t)**+r.evaluate(t)],sqrt:[I,[I],(t,[e])=>Math.sqrt(e.evaluate(t))],log10:[I,[I],(t,[e])=>Math.log(e.evaluate(t))/Math.LN10],ln:[I,[I],(t,[e])=>Math.log(e.evaluate(t))],log2:[I,[I],(t,[e])=>Math.log(e.evaluate(t))/Math.LN2],sin:[I,[I],(t,[e])=>Math.sin(e.evaluate(t))],cos:[I,[I],(t,[e])=>Math.cos(e.evaluate(t))],tan:[I,[I],(t,[e])=>Math.tan(e.evaluate(t))],asin:[I,[I],(t,[e])=>Math.asin(e.evaluate(t))],acos:[I,[I],(t,[e])=>Math.acos(e.evaluate(t))],atan:[I,[I],(t,[e])=>Math.atan(e.evaluate(t))],min:[I,hr(I),(t,e)=>Math.min(...e.map(r=>r.evaluate(t)))],max:[I,hr(I),(t,e)=>Math.max(...e.map(r=>r.evaluate(t)))],abs:[I,[I],(t,[e])=>Math.abs(e.evaluate(t))],round:[I,[I],(t,[e])=>{let r=e.evaluate(t);return r<0?-Math.round(-r):Math.round(r)}],floor:[I,[I],(t,[e])=>Math.floor(e.evaluate(t))],ceil:[I,[I],(t,[e])=>Math.ceil(e.evaluate(t))],"filter-==":[Q,[W,H],(t,[e,r])=>t.properties()[e.value]===r.value],"filter-id-==":[Q,[H],(t,[e])=>t.id()===e.value],"filter-type-==":[Q,[W],(t,[e])=>t.geometryType()===e.value],"filter-<":[Q,[W,H],(t,[e,r])=>{let i=t.properties()[e.value],n=r.value;return typeof i==typeof n&&i{let r=t.id(),i=e.value;return typeof r==typeof i&&r":[Q,[W,H],(t,[e,r])=>{let i=t.properties()[e.value],n=r.value;return typeof i==typeof n&&i>n}],"filter-id->":[Q,[H],(t,[e])=>{let r=t.id(),i=e.value;return typeof r==typeof i&&r>i}],"filter-<=":[Q,[W,H],(t,[e,r])=>{let i=t.properties()[e.value],n=r.value;return typeof i==typeof n&&i<=n}],"filter-id-<=":[Q,[H],(t,[e])=>{let r=t.id(),i=e.value;return typeof r==typeof i&&r<=i}],"filter->=":[Q,[W,H],(t,[e,r])=>{let i=t.properties()[e.value],n=r.value;return typeof i==typeof n&&i>=n}],"filter-id->=":[Q,[H],(t,[e])=>{let r=t.id(),i=e.value;return typeof r==typeof i&&r>=i}],"filter-has":[Q,[H],(t,[e])=>{let r=e.value,i=t.properties();return r in i&&i[r]!==void 0}],"filter-has-id":[Q,[],t=>t.id()!==null&&t.id()!==void 0],"filter-type-in":[Q,[Ut(W)],(t,[e])=>e.value.indexOf(t.geometryType())>=0],"filter-id-in":[Q,[Ut(H)],(t,[e])=>e.value.indexOf(t.id())>=0],"filter-in-small":[Q,[W,Ut(H)],(t,[e,r])=>r.value.indexOf(t.properties()[e.value])>=0],"filter-in-large":[Q,[W,Ut(H)],(t,[e,r])=>wm(t.properties()[e.value],r.value,0,r.value.length-1)],all:{type:Q,overloads:[[[Q,Q],(t,[e,r])=>e.evaluate(t)&&r.evaluate(t)],[hr(Q),(t,e)=>{for(let r of e)if(!r.evaluate(t))return!1;return!0}]]},any:{type:Q,overloads:[[[Q,Q],(t,[e,r])=>e.evaluate(t)||r.evaluate(t)],[hr(Q),(t,e)=>{for(let r of e)if(r.evaluate(t))return!0;return!1}]]},"!":[Q,[Q],(t,[e])=>!e.evaluate(t)],"is-supported-script":[Q,[W],(t,[e])=>{let r=t.globals&&t.globals.isSupportedScript;return!r||r(e.evaluate(t))}],upcase:[W,[W],(t,[e])=>e.evaluate(t).toUpperCase()],downcase:[W,[W],(t,[e])=>e.evaluate(t).toLowerCase()],concat:[W,hr(H),(t,e)=>e.map(r=>Wi(r.evaluate(t))).join("")],split:[Ut(W),[W,W],(t,[e,r])=>e.evaluate(t).split(r.evaluate(t))],join:[W,[Ut(W),W],(t,[e,r])=>e.evaluate(t).join(r.evaluate(t))],"resolved-locale":[W,[La],(t,[e])=>e.evaluate(t).resolvedLocale()]});function Dm(t){return Array.isArray(t)?`(${t.map(mt).join(", ")})`:`(${mt(t.type)}...)`}function Da(t){if(t instanceof tf)return Da(t.boundExpression);if(t instanceof Er&&t.name==="error"||t instanceof hf||t instanceof Sl||t instanceof kl||t instanceof Il)return!1;let e=t instanceof jr||t instanceof Be,r=!0;return t.eachChild(i=>{r&&(r=e?Da(i):i instanceof ri)}),r?qa(t)&&ja(t,["zoom","heatmap-density","elevation","line-progress","accumulated","is-supported-script"]):!1}function qa(t){if(t instanceof Er&&(t.name==="get"&&t.args.length===1||t.name==="feature-state"||t.name==="has"&&t.args.length===1||t.name==="properties"||t.name==="geometry-type"||t.name==="id"||/^filter-/.test(t.name))||t instanceof Sl||t instanceof kl)return!1;let e=!0;return t.eachChild(r=>{e&&!qa(r)&&(e=!1)}),e}function sn(t){if(t instanceof Er&&t.name==="feature-state")return!1;let e=!0;return t.eachChild(r=>{e&&!sn(r)&&(e=!1)}),e}function ja(t,e){if(t instanceof Er&&e.indexOf(t.name)>=0)return!1;let r=!0;return t.eachChild(i=>{r&&!ja(i,e)&&(r=!1)}),r}function ii(t){return t["property-type"]==="data-driven"||t["property-type"]==="cross-faded-data-driven"}function Sf(t){return!!t.expression&&t.expression.parameters.indexOf("zoom")>-1}function Cl(t){return!!t.expression&&t.expression.interpolated}var Ml=/^(.*)-transition$/;function on(t,...e){for(let r of e)for(let i in r)t[i]=r[i];return t}function J(t){return t instanceof Number?"number":t instanceof String?"string":t instanceof Boolean?"boolean":Array.isArray(t)?"array":t===null?"null":typeof t}function Ga(t){return typeof t=="object"&&!!t&&!Array.isArray(t)&&St(t)===mr}function _m(t){return t}function Am(t){switch(t.type){case"color":return xt.parse;case"padding":return Ee.parse;case"numberArray":return Fe.parse;case"colorArray":return ue.parse;default:return null}}function Sm(t){switch(t){case"exponential":return Ff;case"interval":return Fm;case"categorical":return Em;case"identity":return Tm;default:throw Error(`Unknown function type "${t}"`)}}function Ef(t,e){let r=t.stops&&typeof t.stops[0][0]=="object",i=r||t.property!==void 0,n=r||!i,a=t.type||(Cl(e)?"exponential":"interval"),s=Am(e);if(s&&(t=on({},t),t.stops&&(t.stops=t.stops.map(h=>[h[0],s(h[1])])),t.default?t.default=s(t.default):t.default=s(e.default)),t.colorSpace&&!g0(t.colorSpace))throw Error(`Unknown color space: "${t.colorSpace}"`);let o=Sm(a),l,u;if(a==="categorical"){l=Object.create(null);for(let h of t.stops)l[h[0]]=h[1];u=typeof t.stops[0][0]}if(r){let h={},c=[];for(let d=0;dd[0]),evaluate({zoom:d},y){return Ff({stops:p,base:t.base},e,d).evaluate(d,y)}}}if(n){let h=a==="exponential"?{name:"exponential",base:t.base===void 0?1:t.base}:null;return{kind:"camera",interpolationType:h,interpolationFactor:De.interpolationFactor.bind(void 0,h),zoomStops:t.stops.map(c=>c[0]),evaluate:({zoom:c})=>o(t,e,c,l,u)}}return{kind:"source",evaluate(h,c){let p=c&&c.properties?c.properties[t.property]:void 0;return p===void 0?_n(t.default,e.default):o(t,e,p,l,u)}}}function _n(t,e,r){if(t!==void 0)return t;if(e!==void 0)return e;if(r!==void 0)return r}function Em(t,e,r,i,n){return _n(typeof r===n?i[r]:void 0,t.default,e.default)}function Fm(t,e,r){if(J(r)!=="number")return _n(t.default,e.default);let i=t.stops.length;if(i===1||r<=t.stops[0][0])return t.stops[0][1];if(r>=t.stops[i-1][0])return t.stops[i-1][1];let n=$a(t.stops.map(a=>a[0]),r,"");return t.stops[n][1]}function Ff(t,e,r){let i=t.base===void 0?1:t.base;if(J(r)!=="number")return _n(t.default,e.default);let n=t.stops.length;if(n===1||r<=t.stops[0][0])return t.stops[0][1];if(r>=t.stops[n-1][0])return t.stops[n-1][1];let a=$a(t.stops.map(h=>h[0]),r,""),s=km(r,i,t.stops[a][0],t.stops[a+1][0]),o=t.stops[a][1],l=t.stops[a+1][1],u=br[e.type]||_m;return typeof o.evaluate=="function"?{evaluate(...h){let c=o.evaluate.apply(void 0,h),p=l.evaluate.apply(void 0,h);if(c!==void 0&&p!==void 0)return u(c,p,s,t.colorSpace)}}:u(o,l,s,t.colorSpace)}function Tm(t,e,r){switch(e.type){case"color":r=xt.parse(r);break;case"formatted":r=Le.fromString(r.toString());break;case"resolvedImage":r=Se.fromString(r.toString());break;case"padding":r=Ee.parse(r);break;case"colorArray":r=ue.parse(r);break;case"numberArray":r=Fe.parse(r);break;default:J(r)!==e.type&&(e.type!=="enum"||!e.values[r])&&(r=void 0)}return _n(r,t.default,e.default)}function km(t,e,r,i){let n=i-r,a=t-r;return n===0?0:e===1?a/n:(e**+a-1)/(e**+n-1)}function ho(t){return{result:"success",value:t}}function Nr(t){return{result:"error",value:t}}var Bl=class{constructor(t,e,r,i){this.expression=t,this._warningHistory={},this._evaluator=new Gp,this._defaultValue=r?Bf(r):null,this._enumValues=r&&r.type==="enum"?r.values:null,this._globalState=i,this._rootKey=e}evaluateWithoutErrorHandling(t,e,r,i,n,a){return this._globalState&&(t=ni(t,this._globalState)),this._evaluator.globals=t,this._evaluator.feature=e,this._evaluator.featureState=r,this._evaluator.canonical=i,this._evaluator.availableImages=n||null,this._evaluator.formattedSection=a,this.expression.evaluate(this._evaluator)}evaluate(t,e,r,i,n,a){this._globalState&&(t=ni(t,this._globalState)),this._evaluator.globals=t,this._evaluator.feature=e||null,this._evaluator.featureState=r||null,this._evaluator.canonical=i,this._evaluator.availableImages=n||null,this._evaluator.formattedSection=a||null;try{let s=this.expression.evaluate(this._evaluator);if(s==null||typeof s=="number"&&s!==s)return this._defaultValue;if(this._enumValues&&!(s in this._enumValues))throw new ft(`Expected value to be one of ${Object.keys(this._enumValues).map(o=>JSON.stringify(o)).join(", ")}, but found ${JSON.stringify(s)} instead.`,"");return s}catch(s){let o=s instanceof ft?s.path:"",l=`${o}|${s.message}`;return this._warningHistory[l]||(this._warningHistory[l]=!0,typeof console<"u"&&console.warn(Tf(this._rootKey,o,s.message,this._defaultValue))),this._defaultValue}}};function Tf(t,e,r,i){return`${t}${e}: ${r}${i==null?"":` Falling back to ${String(i)}.`}`}function kf(t){if(!t)throw Error(\'rootKey must identify the location of the expression in the style JSON, e.g. "layers[3].paint.line-width".\')}function Xa(t){return Array.isArray(t)&&t.length>0&&typeof t[0]=="string"&&t[0]in Yr}function ar(t,e,r,i){kf(e);let n=new _f(Yr,Da,[],r?Mm(r):void 0),a=n.parse(t,void 0,void 0,void 0,r&&r.type==="string"?{typeAnnotation:"coerce"}:void 0);return a?ho(new Bl(a,e,r,i)):Nr(n.errors)}var ln=class{constructor(t,e,r){this.kind=t,this._styleExpression=e,this.isStateDependent=t!=="constant"&&!sn(e.expression),this.globalStateRefs=An(e.expression),this._globalState=r}evaluateWithoutErrorHandling(t,e,r,i,n,a){return this._globalState&&(t=ni(t,this._globalState)),this._styleExpression.evaluateWithoutErrorHandling(t,e,r,i,n,a)}evaluate(t,e,r,i,n,a){return this._globalState&&(t=ni(t,this._globalState)),this._styleExpression.evaluate(t,e,r,i,n,a)}},_a=class{constructor(t,e,r,i,n){this.kind=t,this.zoomStops=r,this._styleExpression=e,this.isStateDependent=t!=="camera"&&!sn(e.expression),this.globalStateRefs=An(e.expression),this.interpolationType=i,this._globalState=n}evaluateWithoutErrorHandling(t,e,r,i,n,a){return this._globalState&&(t=ni(t,this._globalState)),this._styleExpression.evaluateWithoutErrorHandling(t,e,r,i,n,a)}evaluate(t,e,r,i,n,a){return this._globalState&&(t=ni(t,this._globalState)),this._styleExpression.evaluate(t,e,r,i,n,a)}interpolationFactor(t,e,r){return this.interpolationType?De.interpolationFactor(this.interpolationType,t,e,r):0}};function Im(t){return t._styleExpression!==void 0}function If(t,e,r,i){let n=ar(t,e,r,i);if(n.result==="error")return n;let a=n.value.expression,s=qa(a);if(!s&&!ii(r))return Nr([new ve("","data expressions not supported")]);let o=ja(a,["zoom"]);if(!o&&!Sf(r))return Nr([new ve("","zoom expressions not supported")]);let l=da(a);if(!l&&!o)return Nr([new ve("",\'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.\')]);if(l instanceof ve)return Nr([l]);if(l instanceof De&&!Cl(r))return Nr([new ve("",\'"interpolate" expressions cannot be used with this property\')]);if(!l)return ho(s?new ln("constant",n.value,i):new ln("source",n.value,i));let u=l instanceof De?l.interpolation:void 0;return ho(s?new _a("camera",n.value,l.labels,u,i):new _a("composite",n.value,l.labels,u,i))}var Cf=class Mf{constructor(e,r,i){this.isStateDependent=!1,this.globalStateRefs=new Set,this._globalState=null,kf(r),this._parameters=e,this._specification=i,this._rootKey=r,this._defaultValue=Bf(i),this._warningHistory={};let n=Ef(this._parameters,this._specification);this.kind=n.kind,this.interpolationFactor=n.interpolationFactor,this.zoomStops=n.zoomStops,this.interpolationType=n.interpolationType,this._innerEvaluate=n.evaluate}evaluate(e,r){try{return this._innerEvaluate(e,r)}catch(i){let n=i instanceof Error?i.message:String(i),a=`|${n}`;return this._warningHistory[a]||(this._warningHistory[a]=!0,typeof console<"u"&&console.warn(Tf(this._rootKey,"",n,this._defaultValue))),this._defaultValue}}static deserialize(e){return new Mf(e._parameters,e._rootKey,e._specification)}static serialize(e){return{_parameters:e._parameters,_specification:e._specification,_rootKey:e._rootKey}}};function Cm(t,e,r,i){if(Ga(t))return new Cf(t,e,r);if(Xa(t)){let n=If(t,e,r,i);if(n.result==="error")throw Error(n.value.map(a=>`${a.key}: ${a.message}`).join(", "));return n.value}{let n=t;return r.type==="color"&&typeof t=="string"?n=xt.parse(t):r.type==="padding"&&(typeof t=="number"||Array.isArray(t))?n=Ee.parse(t):r.type==="numberArray"&&(typeof t=="number"||Array.isArray(t))?n=Fe.parse(t):r.type==="colorArray"&&(typeof t=="string"||Array.isArray(t))?n=ue.parse(t):r.type==="variableAnchorOffsetCollection"&&Array.isArray(t)?n=Ae.parse(t):r.type==="projectionDefinition"&&typeof t=="string"&&(n=Sr.parse(t)),{globalStateRefs:new Set,_globalState:null,kind:"constant",evaluate:()=>n}}}function da(t){let e=null;if(t instanceof Jp)e=da(t.result);else if(t instanceof of){for(let r of t.args)if(e=da(r),e)break}else(t instanceof Dl||t instanceof De)&&t.input instanceof Er&&t.input.name==="zoom"&&(e=t);return e instanceof ve||t.eachChild(r=>{let i=da(r);i instanceof ve?e=i:!e&&i?e=new ve("",\'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.\'):e&&i&&e!==i&&(e=new ve("",\'Only one zoom-based "step" or "interpolate" subexpression may be used in an expression.\'))}),e}function An(t,e=new Set){return t instanceof Il&&e.add(t.key),t.eachChild(r=>{An(r,e)}),e}function Mm(t){let e={color:pe,string:W,number:I,enum:W,boolean:Q,formatted:bn,padding:Va,numberArray:Oa,colorArray:rn,projectionDefinition:za,resolvedImage:wn,variableAnchorOffsetCollection:Ra};return t.type==="array"?Ut(e[t.value]||H,t.length):e[t.type]}function Bf(t){if(t.type==="color"&&Ga(t.default))return new xt(0,0,0,0);switch(t.type){case"color":return xt.parse(t.default)||null;case"padding":return Ee.parse(t.default)||null;case"numberArray":return Fe.parse(t.default)||null;case"colorArray":return ue.parse(t.default)||null;case"variableAnchorOffsetCollection":return Ae.parse(t.default)||null;case"projectionDefinition":return Sr.parse(t.default)||null;default:return t.default===void 0?null:t.default}}function ni(t,e){let{zoom:r,heatmapDensity:i,elevation:n,lineProgress:a,isSupportedScript:s,accumulated:o}=t!=null?t:{};return{zoom:r,heatmapDensity:i,elevation:n,lineProgress:a,isSupportedScript:s,accumulated:o,globalState:e}}function Bm(t){let e=!1;for(let r of t){let i=Pf(r);if(i==="expression")return"expression";i==="legacy"&&(e=!0)}return e?"legacy":"neutral"}function Pf(t){if(typeof t=="boolean")return"neutral";if(!Array.isArray(t)||t.length===0)return"legacy";switch(t[0]){case"has":return t.length<2||t[1]==="$id"||t[1]==="$type"?"legacy":t.length===2?"neutral":"expression";case"in":return t.length>=3&&(typeof t[1]!="string"||Array.isArray(t[2]))?"expression":"legacy";case"!in":case"!has":return"legacy";case"==":case"!=":case">":case">=":case"<":case"<=":return t.length!==3||Array.isArray(t[1])||Array.isArray(t[2])?"expression":"legacy";case"none":return"legacy";case"any":case"all":return Bm(t.slice(1));default:return"expression"}}function Pl(t){return Pf(t)!=="legacy"}function Mh(t){return t==="$type"?["geometry-type"]:t==="$id"?["id"]:["get",t]}function Pm(t){switch(t[0]){case"==":case"!=":case"<":case"<=":case">":case">=":return t.length!==3||typeof t[1]!="string"?null:[t[0],Mh(t[1]),t[2]];case"in":case"!in":{if(t.length<2||typeof t[1]!="string")return null;let e=["in",Mh(t[1]),["literal",t.slice(2)]];return t[0]==="!in"?["!",e]:e}case"has":case"!has":{if(t.length!==2||typeof t[1]!="string"||t[1]==="$type"||t[1]==="$id")return null;let e=["has",t[1]];return t[0]==="!has"?["!",e]:e}default:return null}}function zf(t){if((t[0]==="<"||t[0]==="<="||t[0]===">"||t[0]===">=")&&t[1]==="$type")return`"$type" cannot be use with operator "${t[0]}"`;let e=Pm(t);return e?`Mixing deprecated filter syntax with expression syntax is not supported. Replace ${JSON.stringify(t)} with ${JSON.stringify(e)}.`:`Mixing deprecated filter syntax with expression syntax is not supported. Convert ${JSON.stringify(t)} to expression syntax.`}function Rs(t,e,r){let i=r[t];return Array.isArray(i)?Pl(i)?zl(i,e.concat(t)):{path:e.concat(t),legacyFilter:i}:null}function zl(t,e=[]){if(!Array.isArray(t)||t.length<1)return null;switch(t[0]){case"all":case"any":case"none":for(let r=1;r"u")return;let i=r.path.map(n=>`[${n}]`).join("");console.warn(`${e}${i}: ${zf(r.legacyFilter)}`)}var Lm={type:"boolean",default:!1,transition:!1,"property-type":"data-driven",expression:{interpolated:!1,parameters:["zoom","feature"]}};function ai(t,e,r){if(t==null)return{filter:()=>!0,needGeometry:!1,getGlobalStateRefs:()=>new Set};Pl(t)?zm(t,e):t=Aa(t);let i=ar(t,e,Lm,r);if(i.result==="error")throw Error(i.value.map(n=>`${n.key}: ${n.message}`).join(", "));return{filter:(n,a,s)=>i.value.evaluate(n,a,{},s),needGeometry:Lf(t),getGlobalStateRefs:()=>An(i.value.expression)}}function Vm(t,e){return te)}function Lf(t){if(!Array.isArray(t))return!1;if(t[0]==="within"||t[0]==="distance")return!0;for(let e=1;e"||e==="<="||e===">="?$s(t[1],t[2],e):e==="any"?Om(t.slice(1)):e==="all"?["all"].concat(t.slice(1).map(Aa)):e==="none"?["all"].concat(t.slice(1).map(Aa).map(Hn)):e==="in"?Bh(t[1],t.slice(2)):e==="!in"?Hn(Bh(t[1],t.slice(2))):e==="has"?Ph(t[1]):e!=="!has"||Hn(Ph(t[1]))}function $s(t,e,r){switch(t){case"$type":return[`filter-type-${r}`,e];case"$id":return[`filter-id-${r}`,e];default:return[`filter-${r}`,t,e]}}function Om(t){return["any"].concat(t.map(Aa))}function Bh(t,e){if(e.length===0)return!1;switch(t){case"$type":return["filter-type-in",["literal",e]];case"$id":return["filter-id-in",["literal",e]];default:return e.length>200&&!e.some(r=>typeof r!=typeof e[0])?["filter-in-large",t,["literal",e.sort(Vm)]]:["filter-in-small",t,["literal",e]]}}function Ph(t){switch(t){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",t]}}function Hn(t){return["!",t]}function Vf(t){let e=t.key,r=t.value;return r?[new E(e,r,"constants have been deprecated as of v8")]:[]}function _t(t){return t instanceof Number||t instanceof String||t instanceof Boolean?t.valueOf():t}function wr(t){if(Array.isArray(t))return t.map(wr);if(t instanceof Object&&!(t instanceof Number||t instanceof String||t instanceof Boolean)){let e={};for(let r in t)e[r]=wr(t[r]);return e}return _t(t)}function ee(t){let e=t.key,r=t.value,i=t.valueSpec||{},n=t.objectElementValidators||{},a=t.style,s=t.styleSpec,o=t.validateSpec,l=[],u=J(r);if(u!=="object")return[new E(e,r,`object expected, ${u} found`)];for(let h in r){let c=h.split(".")[0],p=Yi(i,c)||i["*"],f;if(Yi(n,c))f=n[c];else if(Yi(i,c)){if(r[h]===void 0)continue;f=o}else if(n["*"])f=n["*"];else if(i["*"])f=o;else{l.push(new E(e,r[h],`unknown property "${h}"`));continue}l=l.concat(f({key:(e&&`${e}.`)+h,value:r[h],valueSpec:p,style:a,styleSpec:s,object:r,objectKey:h,validateSpec:o},r))}for(let h in i)n[h]||i[h].required&&i[h].default===void 0&&r[h]===void 0&&l.push(new E(e,r,`missing required property "${h}"`));return l}function Ll(t){let e=t.value,r=t.valueSpec,i=t.validateSpec,n=t.style,a=t.styleSpec,s=t.key,o=t.arrayElementValidator||i;if(J(e)!=="array")return[new E(s,e,`array expected, ${J(e)} found`)];if(r.length&&e.length!==r.length)return[new E(s,e,`array length ${r.length} expected, length ${e.length} found`)];let l={type:r.value,values:r.values};a.$version<7&&(l.function=r.function),J(r.value)==="object"&&(l=r.value);let u=[];for(let h=0;hi.maximum?[new E(e,r,`${r} is greater than the maximum value ${i.maximum}`)]:[]:[new E(e,r,`number expected, ${n} found`)]}function Of(t){let e=t.valueSpec,r=_t(t.value.type),i,n={},a,s,o=r!=="categorical"&&t.value.property===void 0,l=!o,u=J(t.value.stops)==="array"&&J(t.value.stops[0])==="array"&&J(t.value.stops[0][0])==="object",h=ee({key:t.key,value:t.value,valueSpec:t.styleSpec.function,validateSpec:t.validateSpec,style:t.style,styleSpec:t.styleSpec,objectElementValidators:{stops:c,default:d}});return r==="identity"&&o&&h.push(new E(t.key,t.value,\'missing required property "property"\')),r!=="identity"&&!t.value.stops&&h.push(new E(t.key,t.value,\'missing required property "stops"\')),r==="exponential"&&t.valueSpec.expression&&!Cl(t.valueSpec)&&h.push(new E(t.key,t.value,"exponential functions not supported")),t.styleSpec.$version>=8&&(l&&!ii(t.valueSpec)?h.push(new E(t.key,t.value,"property functions not supported")):o&&!Sf(t.valueSpec)&&h.push(new E(t.key,t.value,"zoom functions not supported"))),(r==="categorical"||u)&&t.value.property===void 0&&h.push(new E(t.key,t.value,\'"property" property is required\')),h;function c(y){if(r==="identity")return[new E(y.key,y.value,\'identity function may not have a "stops" property\')];let m=[],g=y.value;return m=m.concat(Ll({key:y.key,value:g,valueSpec:y.valueSpec,validateSpec:y.validateSpec,style:y.style,styleSpec:y.styleSpec,arrayElementValidator:p})),J(g)==="array"&&g.length===0&&m.push(new E(y.key,g,"array must have at least one stop")),m}function p(y){let m=[],g=y.value,x=y.key;if(J(g)!=="array")return[new E(x,g,`array expected, ${J(g)} found`)];if(g.length!==2)return[new E(x,g,`array length 2 expected, length ${g.length} found`)];if(u){if(J(g[0])!=="object")return[new E(x,g,`object expected, ${J(g[0])} found`)];if(g[0].zoom===void 0)return[new E(x,g,"object stop key must have zoom")];if(g[0].value===void 0)return[new E(x,g,"object stop key must have value")];if(s&&s>_t(g[0].zoom))return[new E(x,g[0].zoom,"stop zoom values must appear in ascending order")];_t(g[0].zoom)!==s&&(s=_t(g[0].zoom),a=void 0,n={}),m=m.concat(ee({key:`${x}[0]`,value:g[0],valueSpec:{zoom:{}},validateSpec:y.validateSpec,style:y.style,styleSpec:y.styleSpec,objectElementValidators:{zoom:Ya,value:f}}))}else m=m.concat(f({key:`${x}[0]`,value:g[0],valueSpec:{},validateSpec:y.validateSpec,style:y.style,styleSpec:y.styleSpec},g));return Xa(wr(g[1]))?m.concat([new E(`${x}[1]`,g[1],"expressions are not allowed in function stops.")]):m.concat(y.validateSpec({key:`${x}[1]`,value:g[1],valueSpec:e,validateSpec:y.validateSpec,style:y.style,styleSpec:y.styleSpec}))}function f(y,m){let g=J(y.value),x=_t(y.value),v=y.value===null?m:y.value;if(!i)i=g;else if(g!==i)return[new E(y.key,v,`${g} stop domain type must match previous stop domain type ${i}`)];if(g!=="number"&&g!=="string"&&g!=="boolean")return[new E(y.key,v,"stop domain value must be a number, string, or boolean")];if(g!=="number"&&r!=="categorical"){let b=`number expected, ${g} found`;return ii(e)&&r===void 0&&(b+=\'\\nIf you intended to use a categorical function, specify `"type": "categorical"`.\'),[new E(y.key,v,b)]}return r==="categorical"&&g==="number"&&(!isFinite(x)||Math.floor(x)!==x)?[new E(y.key,v,`integer expected, found ${x}`)]:r!=="categorical"&&g==="number"&&a!==void 0&&xnew E(`${t.key}${i.key}`,t.value,i.message));let r=e.value.expression||e.value._styleExpression.expression;if(t.expressionContext==="property"&&t.propertyKey==="text-font"&&!r.outputDefined())return[new E(t.key,t.value,`Invalid data expression for "${t.propertyKey}". Output values must be contained as literals within the expression.`)];if(t.expressionContext==="property"&&t.propertyType==="layout"&&!sn(r))return[new E(t.key,t.value,\'"feature-state" data expressions are not supported with layout properties.\')];if(t.expressionContext==="filter"&&!sn(r))return[new E(t.key,t.value,\'"feature-state" data expressions are not supported with filters.\')];if(t.expressionContext&&t.expressionContext.indexOf("cluster")===0){if(!ja(r,["zoom","feature-state"]))return[new E(t.key,t.value,\'"zoom" and "feature-state" expressions are not supported with cluster properties.\')];if(t.expressionContext==="cluster-initial"&&!qa(r))return[new E(t.key,t.value,"Feature data expressions are not supported with initial expression part of cluster properties.")]}return[]}function Rm(t){let e=t.value,r=t.key,i=J(e);return i==="boolean"?[]:[new E(r,e,`boolean expected, ${i} found`)]}function co(t){let e=t.key,r=t.value,i=J(r);return i==="string"?xt.parse(String(r))?[]:[new E(e,r,`color expected, "${r}" found`)]:[new E(e,r,`color expected, ${i} found`)]}function un(t){let e=t.key,r=t.value,i=t.valueSpec,n=[];return Array.isArray(i.values)?i.values.indexOf(_t(r))===-1&&n.push(new E(e,r,`expected one of [${i.values.join(", ")}], ${JSON.stringify(r)} found`)):Object.keys(i.values).indexOf(_t(r))===-1&&n.push(new E(e,r,`expected one of [${Object.keys(i.values).join(", ")}], ${JSON.stringify(r)} found`)),n}function $m(t,e){let r=t;for(let i of e)r=r[i];return r}function Nm(t,e){let r=zl(e);return r?[new E(`${t.key}${r.path.map(i=>`[${i}]`).join("")}`,$m(t.value,r.path),zf(r.legacyFilter),null,"warning")]:[]}function Vl(t){let e=wr(t.value);return Pl(e)?[...Nm(t,e),...si(on({},t,{expressionContext:"filter",valueSpec:{value:"boolean"}}))]:Rf(t)}function Rf(t){let e=t.value,r=t.key;if(J(e)!=="array")return[new E(r,e,`array expected, ${J(e)} found`)];let i=t.styleSpec,n,a=[];if(e.length<1)return[new E(r,e,"filter array must have at least 1 element")];switch(a=a.concat(un({key:`${r}[0]`,value:e[0],valueSpec:i.filter_operator,style:t.style,styleSpec:t.styleSpec})),_t(e[0])){case"<":case"<=":case">":case">=":e.length>=2&&_t(e[1])==="$type"&&a.push(new E(r,e,`"$type" cannot be use with operator "${e[0]}"`));case"==":case"!=":e.length!==3&&a.push(new E(r,e,`filter array for operator "${e[0]}" must have 3 elements`));case"in":case"!in":e.length>=2&&(n=J(e[1]),n!=="string"&&a.push(new E(`${r}[1]`,e[1],`string expected, ${n} found`)));for(let s=2;s{c in r&&e.push(new E(i,r[c],`"${c}" is prohibited for ref layers`))});let h;n.layers.forEach(c=>{_t(c.id)===o&&(h=c)}),h?h.ref?e.push(new E(i,r.ref,"ref cannot reference another ref layer")):s=_t(h.type):e.push(new E(i,r.ref,`ref layer "${o}" not found`))}else if(s!=="background")if(!r.source)e.push(new E(i,r,\'missing required property "source"\'));else{let h=n.sources&&n.sources[r.source],c=h&&_t(h.type);h?c==="vector"&&s==="raster"?e.push(new E(i,r.source,`layer "${r.id}" requires a raster source`)):c!=="raster-dem"&&s==="hillshade"||c!=="raster-dem"&&s==="color-relief"?e.push(new E(i,r.source,`layer "${r.id}" requires a raster-dem source`)):c==="raster"&&s!=="raster"?e.push(new E(i,r.source,`layer "${r.id}" requires a vector source`)):c==="vector"&&!r["source-layer"]?e.push(new E(i,r,`layer "${r.id}" must specify a "source-layer"`)):c==="raster-dem"&&s!=="hillshade"&&s!=="color-relief"?e.push(new E(i,r.source,"raster-dem source can only be used with layer type \'hillshade\' or \'color-relief\'.")):s==="line"&&r.paint&&r.paint["line-gradient"]&&(c!=="geojson"||!h.lineMetrics)&&e.push(new E(i,r,`layer "${r.id}" specifies a line-gradient, which requires a GeoJSON source with \\`lineMetrics\\` enabled.`)):e.push(new E(i,r.source,`source "${r.source}" not found`))}return s==="raster"&&((l=r.paint)!=null&&l.resampling)&&((u=r.paint)!=null&&u["raster-resampling"])&&e.push(new E(i,r.paint,`layer "${r.id}" redundantly specifies "resampling" and "raster-resampling" paint properties, but only one is allowed. It is advised to use "resampling".`)),e=e.concat(ee({key:i,value:r,valueSpec:a.layer,style:t.style,styleSpec:t.styleSpec,validateSpec:t.validateSpec,objectElementValidators:{"*"(){return[]},type(){return t.validateSpec({key:`${i}.type`,value:r.type,valueSpec:a.layer.type,style:t.style,styleSpec:t.styleSpec,validateSpec:t.validateSpec,object:r,objectKey:"type"})},filter:Vl,layout(h){return ee({layer:r,key:h.key,value:h.value,style:h.style,styleSpec:h.styleSpec,validateSpec:h.validateSpec,objectElementValidators:{"*"(c){return Uf(on({layerType:s},c))}}})},paint(h){return ee({layer:r,key:h.key,value:h.value,style:h.style,styleSpec:h.styleSpec,validateSpec:h.validateSpec,objectElementValidators:{"*"(c){return Nf(on({layerType:s},c))}}})}}})),e}function ir(t){let e=t.value,r=t.key,i=J(e);return i==="string"?[]:[new E(r,e,`string expected, ${i} found`)]}function Um(t){var c;let e=(c=t.sourceName)!=null?c:"",r=t.value,i=t.styleSpec,n=i.source_raster_dem,a=t.style,s=[],o=J(r);if(r===void 0)return s;if(o!=="object")return s.push(new E("source_raster_dem",r,`object expected, ${o} found`)),s;let l=_t(r.encoding)==="custom",u=["redFactor","greenFactor","blueFactor","baseShift"],h=t.value.encoding?`"${t.value.encoding}"`:"Default";for(let p in r)!l&&u.includes(p)?s.push(new E(p,r[p],`In "${e}": "${p}" is only valid when "encoding" is set to "custom". ${h} encoding found`)):n[p]?s=s.concat(t.validateSpec({key:p,value:r[p],valueSpec:n[p],validateSpec:t.validateSpec,style:a,styleSpec:i})):s.push(new E(p,r[p],`unknown property "${p}"`));return s}var zh={promoteId:qm};function jf(t){let e=t.value,r=t.key,i=t.styleSpec,n=t.style,a=t.validateSpec;if(!e.type)return[new E(r,e,\'"type" is required\')];let s=_t(e.type),o;switch(s){case"vector":case"raster":return o=ee({key:r,value:e,valueSpec:i[`source_${s.replace("-","_")}`],style:t.style,styleSpec:i,objectElementValidators:zh,validateSpec:a}),o;case"raster-dem":return o=Um({sourceName:r,value:e,style:t.style,styleSpec:i,validateSpec:a}),o;case"geojson":if(o=ee({key:r,value:e,valueSpec:i.source_geojson,style:n,styleSpec:i,validateSpec:a,objectElementValidators:zh}),e.cluster)for(let l in e.clusterProperties){let[u,h]=e.clusterProperties[l],c=typeof u=="string"?[u,["accumulated"],["get",l]]:u;o.push(...si({key:`${r}.${l}.map`,value:h,validateSpec:a,expressionContext:"cluster-map"})),o.push(...si({key:`${r}.${l}.reduce`,value:c,validateSpec:a,expressionContext:"cluster-reduce"}))}return o;case"video":return ee({key:r,value:e,valueSpec:i.source_video,style:n,validateSpec:a,styleSpec:i});case"image":return ee({key:r,value:e,valueSpec:i.source_image,style:n,validateSpec:a,styleSpec:i});case"canvas":return[new E(r,null,"Please use runtime APIs to add canvas sources, rather than including them in stylesheets.","source.canvas")];default:return un({key:`${r}.type`,value:e.type,valueSpec:{values:["vector","raster","raster-dem","geojson","video","image"]},style:n,validateSpec:a,styleSpec:i})}}function qm({key:t,value:e}){if(J(e)==="string")return ir({key:t,value:e});{let r=[];for(let i in e)r.push(...ir({key:`${t}.${i}`,value:e[i]}));return r}}function Gf(t){let e=t.value,r=t.styleSpec,i=r.light,n=t.style,a=[],s=J(e);if(e===void 0)return a;if(s!=="object")return a=a.concat([new E("light",e,`object expected, ${s} found`)]),a;for(let o in e){let l=o.match(Ml);a=l&&i[l[1]]&&i[l[1]].transition?a.concat(t.validateSpec({key:o,value:e[o],valueSpec:r.transition,validateSpec:t.validateSpec,style:n,styleSpec:r})):i[o]?a.concat(t.validateSpec({key:o,value:e[o],valueSpec:i[o],validateSpec:t.validateSpec,style:n,styleSpec:r})):a.concat([new E(o,e[o],`unknown property "${o}"`)])}return a}function Xf(t){let e=t.value,r=t.styleSpec,i=r.sky,n=t.style,a=J(e);if(e===void 0)return[];if(a!=="object")return[new E("sky",e,`object expected, ${a} found`)];let s=[];for(let o in e){let l=o.match(Ml);s=l&&i[l[1]]&&i[l[1]].transition?s.concat(t.validateSpec({key:o,value:e[o],valueSpec:r.transition,style:n,styleSpec:r})):i[o]?s.concat(t.validateSpec({key:o,value:e[o],valueSpec:i[o],style:n,styleSpec:r})):s.concat([new E(o,e[o],`unknown property "${o}"`)])}return s}function Yf(t){let e=t.value,r=t.styleSpec,i=r.terrain,n=t.style,a=[],s=J(e);if(e===void 0)return a;if(s!=="object")return a=a.concat([new E("terrain",e,`object expected, ${s} found`)]),a;for(let o in e)a=i[o]?a.concat(t.validateSpec({key:o,value:e[o],valueSpec:i[o],validateSpec:t.validateSpec,style:n,styleSpec:r})):a.concat([new E(o,e[o],`unknown property "${o}"`)]);return a}function jm(t){return ir(t).length===0?[]:si(t)}function Gm(t){return ir(t).length===0?[]:si(t)}function Xm(t){let e=t.key,r=t.value;if(J(r)==="array"){if(r.length<1||r.length>4)return[new E(e,r,`padding requires 1 to 4 values; ${r.length} values found`)];let i={type:"number"},n=[];for(let a=0;a[new E(t,e,\'invalid unicode range, expected a value such as "U+26", "U+0-10FFFF" or "U+4??"\')],n=r.match(tg);if(!n)return i();let[,a,s,o]=n;if(o!==void 0)return o.length>6?i():[];let l=parseInt(a,16),u=s===void 0?l:parseInt(s,16);return l>Lh||u>Lh?[new E(t,e,"unicode range is out of bounds, the maximum code point is U+10FFFF")]:l>u?[new E(t,e,`unicode range start must not be greater than its end, but ${r} is`)]:[]}function Hf(t){var o,l;let e=(o=t.key)!=null?o:"font-faces",r=t.value,i=t.validateSpec,n=(l=t.styleSpec)!=null?l:Bp,a=t.style;if(!po(r))return[new E(e,r,`object expected, ${J(r)} found`)];let s=[];for(let u in r){let h=r[u],c=J(h);if(c==="string")s.push(...ir({key:`${e}.${u}`,value:h}));else if(c==="array"){let p={url:{type:"string",required:!0},"unicode-range":{type:"array",value:"string"}};for(let[f,d]of h.entries()){let y=`${e}.${u}[${f}]`;s.push(...ee({key:y,value:d,valueSpec:p,styleSpec:n,style:a,validateSpec:i}));let m=po(d)?d["unicode-range"]:void 0;if(J(m)==="array")for(let[g,x]of m.entries())s.push(...eg(`${y}.unicode-range[${g}]`,x))}}else s.push(new E(`${e}.${u}`,h,`string or array expected, ${c} found`))}return s}var Vh={"*"(){return[]},array:Ll,boolean:Rm,number:Ya,color:co,constants:Vf,enum:un,filter:Vl,function:Of,layer:qf,object:ee,source:jf,light:Gf,sky:Xf,terrain:Yf,projection:Hm,projectionDefinition:Km,string:ir,formatted:jm,resolvedImage:Gm,padding:Xm,numberArray:Ym,colorArray:Wm,variableAnchorOffsetCollection:Zm,sprite:Wf,state:Zf,fontFaces:Hf};function Zi(t){let e=t.value,r=t.valueSpec,i=t.styleSpec;return t.validateSpec=Zi,r.expression&&Ga(_t(e))?Of(t):r.expression&&Xa(wr(e))?si(t):r.type&&Vh[r.type]?Vh[r.type](t):ee(on({},t,{valueSpec:r.type?i[r.type]:r}))}function Kf(t){let e=t.value,r=t.key,i=ir(t);return i.length||(e.indexOf("{fontstack}")===-1&&i.push(new E(r,e,\'"glyphs" url must include a "{fontstack}" token\')),e.indexOf("{range}")===-1&&i.push(new E(r,e,\'"glyphs" url must include a "{range}" token\'))),i}function te(t,e=D){let r=[];return r=r.concat(Zi({key:"",value:t,valueSpec:e.$root,styleSpec:e,style:t,validateSpec:Zi,objectElementValidators:{glyphs:Kf,"*"(){return[]}}})),t.constants&&(r=r.concat(Vf({key:"constants",value:t.constants,style:t,styleSpec:e,validateSpec:Zi}))),Jf(r)}te.source=ae(ne(jf)),te.sprite=ae(ne(Wf)),te.glyphs=ae(ne(Kf)),te.fontFaces=ae(ne(Hf)),te.light=ae(ne(Gf)),te.sky=ae(ne(Xf)),te.terrain=ae(ne(Yf)),te.state=ae(ne(Zf)),te.layer=ae(ne(qf)),te.filter=ae(ne(Vl)),te.paintProperty=ae(ne(Nf)),te.layoutProperty=ae(ne(Uf));function ne(t){return function(e){return t(Object.assign({},e,{validateSpec:Zi}))}}function Jf(t){return[].concat(t).sort((e,r)=>e.line-r.line)}function ae(t){return function(...e){return Jf(t.apply(this,e))}}var rg={type:"enum","property-type":"data-constant",expression:{interpolated:!1,parameters:["global-state"]},values:{visible:{},none:{}},transition:!1,default:"visible"},ig=class{constructor(t,e,r){this._rootKey=e,this._globalState=r,this.setValue(t)}evaluate(){var t;return(t=this._literalValue)!=null?t:this._compiledValue.evaluate({})}setValue(t){if(t==null||t==="visible"||t==="none"){this._literalValue=t==="none"?"none":"visible",this._compiledValue=void 0,this._globalStateRefs=new Set;return}let e=ar(t,this._rootKey,rg,this._globalState);if(e.result==="error")throw this._literalValue="visible",this._compiledValue=void 0,Error(e.value.map(r=>`${r.key}: ${r.message}`).join(", "));this._literalValue=void 0,this._compiledValue=e.value,this._globalStateRefs=An(e.value.expression)}getGlobalStateRefs(){return this._globalStateRefs}};function ng(t,e,r){return new ig(t,e,r)}var Oh=te,_5=new Set(Object.keys(D).filter(t=>t.startsWith("source_")).map(t=>t.slice(7).replaceAll("_","-")));function ag(t,e){let r=!1;for(let i of e){if(i.severity==="warning"){Mt(i.message);continue}t.fire(new xa(Error(i.message))),r=!0}return r}function sg(t,e,r,i){return(i==null?void 0:i.validate)!==!1&&ag(t,e(Xe({styleSpec:D},r)))}var fo=class Qf{constructor(e,r,i){let n=this.cells=[];if(e instanceof ArrayBuffer){this.arrayBuffer=e;let s=new Int32Array(this.arrayBuffer);e=s[0],r=s[1],i=s[2],this.d=r+2*i;for(let u=0;u=c[f+0]&&n>=c[f+1])?(o[p]=!0,s.push(h[p])):o[p]=!1}}}_forEachCell(e,r,i,n,a,s,o,l){let u=this._convertToCellCoord(e),h=this._convertToCellCoord(r),c=this._convertToCellCoord(i),p=this._convertToCellCoord(n);for(let f=u;f<=c;f++)for(let d=h;d<=p;d++){let y=this.d*d+f;if((!l||l(this._convertFromCellCoord(f),this._convertFromCellCoord(d),this._convertFromCellCoord(f+1),this._convertFromCellCoord(d+1)))&&a.call(this,e,r,i,n,y,s,o,l))return}}_convertFromCellCoord(e){return(e-this.padding)/this.scale}_convertToCellCoord(e){return Math.max(0,Math.min(this.d-1,Math.floor(e*this.scale)+this.padding))}toArrayBuffer(){if(this.arrayBuffer)return this.arrayBuffer;let e=this.cells,r=3+this.cells.length+1+1,i=0;for(let s of this.cells)i+=s.length;let n=new Int32Array(r+i+this.keys.length+this.bboxes.length);n[0]=this.extent,n[1]=this.n,n[2]=this.padding;let a=r;for(let s=0;sr?(this.lastIntegerZoom=r+1,this.lastIntegerZoomTime=e):this.lastFloorZoomthis.zoomHistory.lastIntegerZoom?{fromScale:2,toScale:1,t:e+(1-e)*r}:{fromScale:.5,toScale:1,t:1-(1-r)*e}}},hn=class{constructor(t,e,r,i){this.property=t,this.value=e,this.expression=Cm(e===void 0?t.specification.default:e,r,t.specification,i)}isDataDriven(){return this.expression.kind==="source"||this.expression.kind==="composite"}getGlobalStateRefs(){return this.expression.globalStateRefs||new Set}readsGlobalState(t){let e=this.getGlobalStateRefs();return t.some(r=>e.has(r))}possiblyEvaluate(t,e,r){return this.property.possiblyEvaluate(this,t,e,r)}},yo=class{constructor(t,e,r){this.property=t,this.value=new hn(t,void 0,e,r)}transitioned(t,e){return e.value===this.value?e:new $h(this.property,this.value,e,Xt({},t.transition,this.transition),t.now)}untransitioned(){return new $h(this.property,this.value,null,{},0)}},lg=class{constructor(t,e,r){this._properties=t,this._values=Object.create(t.defaultTransitionablePropertyValues),this._globalState=r,this._rootKey=e}_propertyRootKey(t){return`${this._rootKey}.${String(t)}`}hasProperty(t){return t in this._properties.defaultTransitionablePropertyValues}getValue(t){return Je(this._values[t].value.value)}setValue(t,e){Object.hasOwn(this._values,t)||(this._values[t]=new yo(this._values[t].property,this._propertyRootKey(t),this._globalState)),this._values[t].value=new hn(this._values[t].property,e===null?void 0:Je(e),this._propertyRootKey(t),this._globalState)}setValues(t){for(let e in t){let r=t[e];e.endsWith("-transition")?this.setTransition(e.slice(0,-11),r):to(this._values[e].value.value,r)||this.setValue(e,r)}}getTransition(t){return Je(this._values[t].transition)}setTransition(t,e){Object.hasOwn(this._values,t)||(this._values[t]=new yo(this._values[t].property,this._propertyRootKey(t),this._globalState)),this._values[t].transition=Je(e)||void 0}retainPriorGlobalState(t,e,r){for(let i of Object.keys(r._values))for(let n=r._values[i];n;n=n.prior){let{value:a}=n;a.property.specification.transition&&!a.isDataDriven()&&a.expression._globalState===this._globalState&&a.readsGlobalState(t)&&(n.value=new hn(a.property,a.value,this._propertyRootKey(i),e))}}applyGlobalStateChange(t,e,r,i){this.retainPriorGlobalState(t,e,r);let n=!1;for(let a of Object.keys(this._values)){let{value:s}=this._values[a];s.readsGlobalState(t)&&(this.setValue(a,s.value),n=!0)}return n?this.transitioned(i,r):r}serialize(){let t={};for(let e of Object.keys(this._values)){let r=this.getValue(e);r!==void 0&&(t[e]=r);let i=this.getTransition(e);i!==void 0&&(t[`${e}-transition`]=i)}return t}transitioned(t,e){let r=new Nh(this._properties);for(let i of Object.keys(this._values))r._values[i]=this._values[i].transitioned(t,e._values[i]);return r}untransitioned(){let t=new Nh(this._properties);for(let e of Object.keys(this._values))t._values[e]=this._values[e].untransitioned();return t}},$h=class{constructor(t,e,r,i,n){this.property=t,this.value=e,this.begin=n+i.delay||0,this.end=this.begin+i.duration||0,t.specification.transition&&(i.delay||i.duration)&&(this.prior=r)}possiblyEvaluate(t,e,r){let i=t.now||0,n=this.value.possiblyEvaluate(t,e,r),a=this.prior;if(!a)return n;if(i>this.end||this.value.isDataDriven())return this.prior=null,n;if(ii.zoomHistory.lastIntegerZoom?{from:t,to:e}:{from:r,to:e}}interpolate(t){return t}},id=class{constructor(t,e){this.specification=t,this.name=e}possiblyEvaluate(t,e,r,i){if(t.value!==void 0){if(t.expression.kind==="constant"){let n=t.expression.evaluate(e,null,{},r,i);return this._calculate(n,n,n,e)}return this._calculate(t.expression.evaluate(new st(Math.floor(e.zoom-1),e)),t.expression.evaluate(new st(Math.floor(e.zoom),e)),t.expression.evaluate(new st(Math.floor(e.zoom+1),e)),e)}}_calculate(t,e,r,i){return i.zoom>i.zoomHistory.lastIntegerZoom?{from:t,to:e}:{from:r,to:e}}interpolate(t){return t}},Za=class{constructor(t,e){this.specification=t,this.name=e}possiblyEvaluate(t,e,r,i){return!!t.expression.evaluate(e,null,{},r,i)}interpolate(){return!1}},Yt=class{constructor(t){this.properties=t,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},this.overridableProperties=[];for(let e in t){let r=t[e];r.specification.overridable&&this.overridableProperties.push(e);let i=this.defaultPropertyValues[e]=new hn(r,void 0,r.name,void 0),n=this.defaultTransitionablePropertyValues[e]=new yo(r,r.name,void 0);this.defaultTransitioningPropertyValues[e]=n.untransitioned(),this.defaultPossiblyEvaluatedValues[e]=i.possiblyEvaluate({})}}};C("DataDrivenProperty",U),C("DataConstantProperty",R),C("CrossFadedDataDrivenProperty",cn),C("CrossFadedProperty",id),C("ColorRampProperty",Za);var qh=" is a PAINT property not a LAYOUT property. Use get/setPaintProperty instead?",Ns=" is a LAYOUT property not a PAINT property. Use get/setLayoutProperty instead?",ye=class extends s0{constructor(t,e,r){if(super(),this.id=t.id,this.type=t.type,this._globalState=r,this._featureFilter={filter:()=>!0,needGeometry:!1,getGlobalStateRefs:()=>new Set},this._visibilityExpression=ng(this.visibility,`layers[${this.id}].layout.visibility`,r),t.type!=="custom"&&(this.metadata=t.metadata,this.minzoom=t.minzoom,this.maxzoom=t.maxzoom,t.type!=="background"&&(this.source=t.source,this.sourceLayer=t["source-layer"],this.filter=t.filter,this._featureFilter=ai(t.filter,`layers[${this.id}].filter`,r)),e.layout&&(this._unevaluatedLayout=new ug(e.layout,`layers[${this.id}].layout`,r)),e.paint)){this._transitionablePaint=new lg(e.paint,`layers[${this.id}].paint`,r);for(let i in t.paint)this.setPaintProperty(i,t.paint[i],{validate:!1});for(let i in t.layout)this.setLayoutProperty(i,t.layout[i],{validate:!1});this._transitioningPaint=this._transitionablePaint.untransitioned(),this.paint=new Wa(e.paint)}}setFilter(t){this.filter=t,this._featureFilter=ai(t,`layers[${this.id}].filter`,this._globalState)}getCrossfadeParameters(){return this._crossfadeParameters}getLayoutProperty(t){var e;if(t==="visibility")return this.visibility;if((e=this._transitionablePaint)!=null&&e.hasProperty(t))throw Error(t+qh);if(!this._unevaluatedLayout)throw Error(`Cannot get layout property "${t}" on layer type "${this.type}" which has no layout properties.`);return this._unevaluatedLayout.getValue(t)}getLayoutAffectingGlobalStateRefs(){let t=new Set;for(let e of this._visibilityExpression.getGlobalStateRefs())t.add(e);if(this._unevaluatedLayout)for(let e in this._unevaluatedLayout._values){let r=this._unevaluatedLayout._values[e];for(let i of r.getGlobalStateRefs())t.add(i)}for(let e of this._featureFilter.getGlobalStateRefs())t.add(e);return t}getPaintAffectingGlobalStateRefs(){var e;let t=new globalThis.Map;if(this._transitionablePaint)for(let r in this._transitionablePaint._values){let i=this._transitionablePaint._values[r].value;for(let n of i.getGlobalStateRefs()){let a=(e=t.get(n))!=null?e:[];a.push({name:r,value:i.value}),t.set(n,a)}}return t}getVisibilityAffectingGlobalStateRefs(){return this._visibilityExpression.getGlobalStateRefs()}setLayoutProperty(t,e,r={}){var i;if(t==="visibility"){this.visibility=e,this._visibilityExpression.setValue(e),this.recalculateVisibility();return}if((i=this._transitionablePaint)!=null&&i.hasProperty(t)){this.fire(new xa(Error(t+qh)));return}e!=null&&this._validate(Oh.layoutProperty,`layers.${this.id}.layout.${t}`,t,e,r)||this._unevaluatedLayout.setValue(t,e)}getPaintProperty(t){var e,r;if(t.endsWith("-transition")){let i=t.slice(0,-11);if(i==="visibility"||(e=this._unevaluatedLayout)!=null&&e.hasProperty(i))throw Error(t+Ns);return this._transitionablePaint.getTransition(i)}if(t==="visibility"||(r=this._unevaluatedLayout)!=null&&r.hasProperty(t))throw Error(t+Ns);return this._transitionablePaint.getValue(t)}setPaintProperty(t,e,r={}){var i;if(t==="visibility"||(i=this._unevaluatedLayout)!=null&&i.hasProperty(t))return this.fire(new xa(Error(t+Ns))),!1;if(e!=null&&this._validate(Oh.paintProperty,`layers.${this.id}.paint.${t}`,t,e,r))return!1;if(t.endsWith("-transition"))return this._transitionablePaint.setTransition(t.slice(0,-11),e||void 0),!1;{let n=this._transitionablePaint._values[t],a=n.property.specification["property-type"]==="cross-faded-data-driven",s=n.value.isDataDriven(),o=n.value;this._transitionablePaint.setValue(t,e),this._handleSpecialPaintPropertyUpdate(t);let l=this._transitionablePaint._values[t].value;return l.isDataDriven()||s||a||this._handleOverridablePaintPropertyUpdate(t,o,l)}}_handleSpecialPaintPropertyUpdate(t){}_handleOverridablePaintPropertyUpdate(t,e,r){return!1}isHidden(t=this.minzoom,e=!1){return this.minzoom&&t<(e?Math.floor(this.minzoom):this.minzoom)||this.maxzoom&&t>=this.maxzoom?!0:this._evaluatedVisibility==="none"}updateTransitions(t){this._transitioningPaint=this._transitionablePaint.transitioned(t,this._transitioningPaint)}retainPriorGlobalState(t,e){var r;(r=this._transitionablePaint)==null||r.retainPriorGlobalState(t,e,this._transitioningPaint)}hasTransition(){return this._transitioningPaint.hasTransition()}recalculateVisibility(){this._evaluatedVisibility=this._visibilityExpression.evaluate()}recalculate(t,e){t.getCrossfadeParameters&&(this._crossfadeParameters=t.getCrossfadeParameters()),this._unevaluatedLayout&&(this.layout=this._unevaluatedLayout.possiblyEvaluate(t,void 0,e)),this.paint=this._transitioningPaint.possiblyEvaluate(t,void 0,e)}serialize(){var e,r;let t={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:(e=this._unevaluatedLayout)==null?void 0:e.serialize(),paint:(r=this._transitionablePaint)==null?void 0:r.serialize()};return this.visibility&&(t.layout||(t.layout={}),t.layout.visibility=this.visibility),K1(t,(i,n)=>i!==void 0&&!(n==="layout"&&!Object.keys(i).length)&&!(n==="paint"&&!Object.keys(i).length))}_validate(t,e,r,i,n={}){return sg(this,t,{key:e,layerType:this.type,objectKey:r,value:i},n)}is3D(){return!1}isTileClipped(){return!1}hasOffscreenPass(){return!1}resize(){}isStateDependent(){for(let t in this.paint._values){let e=this.paint.get(t);if(e instanceof le&&ii(e.property.specification)&&(e.value.kind==="source"||e.value.kind==="composite")&&e.value.isStateDependent)return!0}return!1}},jh,hg=()=>jh||(jh=new Yt({"raster-opacity":new R(D.paint_raster["raster-opacity"],"raster-opacity"),"raster-hue-rotate":new R(D.paint_raster["raster-hue-rotate"],"raster-hue-rotate"),"raster-brightness-min":new R(D.paint_raster["raster-brightness-min"],"raster-brightness-min"),"raster-brightness-max":new R(D.paint_raster["raster-brightness-max"],"raster-brightness-max"),"raster-saturation":new R(D.paint_raster["raster-saturation"],"raster-saturation"),"raster-contrast":new R(D.paint_raster["raster-contrast"],"raster-contrast"),resampling:new R(D.paint_raster.resampling,"resampling"),"raster-resampling":new R(D.paint_raster["raster-resampling"],"raster-resampling"),"raster-fade-duration":new R(D.paint_raster["raster-fade-duration"],"raster-fade-duration")})),cg={get paint(){return hg()}};var pg=class extends ye{constructor(t,e){super(t,cg,e)}},fg={Int8:Int8Array,Uint8:Uint8Array,Int16:Int16Array,Uint16:Uint16Array,Int32:Int32Array,Uint32:Uint32Array,Float32:Float32Array},Sn=class{constructor(t,e){this._structArray=t,this._pos1=e*this.size,this._pos2=this._pos1/2,this._pos4=this._pos1/4,this._pos8=this._pos1/8}},vt=class{constructor(){this.isTransferred=!1,this.capacity=-1,this.resize(0)}static serialize(t,e){return t._trim(),e&&(t.isTransferred=!0,e.push(t.arrayBuffer)),{length:t.length,arrayBuffer:t.arrayBuffer}}static deserialize(t){let e=Object.create(this.prototype);return e.arrayBuffer=t.arrayBuffer,e.length=t.length,e.capacity=t.arrayBuffer.byteLength/e.bytesPerElement,e._refreshViews(),e}_trim(){this.length!==this.capacity&&(this.capacity=this.length,this.arrayBuffer=this.arrayBuffer.slice(0,this.length*this.bytesPerElement),this._refreshViews())}clear(){this.length=0}resize(t){this.reserve(t),this.length=t}reserve(t){if(t>this.capacity){this.capacity=Math.max(t,Math.floor(this.capacity*5),128),this.arrayBuffer=new ArrayBuffer(this.capacity*this.bytesPerElement);let e=this.uint8;this._refreshViews(),e&&this.uint8.set(e)}}_refreshViews(){throw Error("_refreshViews() must be implemented by each concrete StructArray layout")}freeBufferAfterUpload(){this.arrayBuffer=new ArrayBuffer(0),this._refreshViews()}};function Et(t,e=1){let r=0,i=0;return{members:t.map(n=>{let a=dg(n.type),s=r=Gh(r,Math.max(e,a)),o=n.components||1;return i=Math.max(i,a),r+=a*o,{name:n.name,type:n.type,components:o,offset:s}}),size:Gh(r,Math.max(i,e)),alignment:e}}function dg(t){return fg[t].BYTES_PER_ELEMENT}function Gh(t,e){return Math.ceil(t/e)*e}var pn=class extends vt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(t,e){let r=this.length;return this.resize(r+1),this.emplace(r,t,e)}emplace(t,e,r){let i=t*2;return this.int16[i+0]=e,this.int16[i+1]=r,t}};pn.prototype.bytesPerElement=4,C("StructArrayLayout2i4",pn);var mo=class extends vt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(t,e,r){let i=this.length;return this.resize(i+1),this.emplace(i,t,e,r)}emplace(t,e,r,i){let n=t*3;return this.int16[n+0]=e,this.int16[n+1]=r,this.int16[n+2]=i,t}};mo.prototype.bytesPerElement=6,C("StructArrayLayout3i6",mo);var Xh=class extends vt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(t,e,r,i){let n=this.length;return this.resize(n+1),this.emplace(n,t,e,r,i)}emplace(t,e,r,i,n){let a=t*4;return this.int16[a+0]=e,this.int16[a+1]=r,this.int16[a+2]=i,this.int16[a+3]=n,t}};Xh.prototype.bytesPerElement=8,C("StructArrayLayout4i8",Xh);var go=class extends vt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(t,e,r,i,n,a){let s=this.length;return this.resize(s+1),this.emplace(s,t,e,r,i,n,a)}emplace(t,e,r,i,n,a,s){let o=t*6;return this.int16[o+0]=e,this.int16[o+1]=r,this.int16[o+2]=i,this.int16[o+3]=n,this.int16[o+4]=a,this.int16[o+5]=s,t}};go.prototype.bytesPerElement=12,C("StructArrayLayout2i4i12",go);var xo=class extends vt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(t,e,r,i,n,a){let s=this.length;return this.resize(s+1),this.emplace(s,t,e,r,i,n,a)}emplace(t,e,r,i,n,a,s){let o=t*4,l=t*8;return this.int16[o+0]=e,this.int16[o+1]=r,this.uint8[l+4]=i,this.uint8[l+5]=n,this.uint8[l+6]=a,this.uint8[l+7]=s,t}};xo.prototype.bytesPerElement=8,C("StructArrayLayout2i4ub8",xo);var fn=class extends vt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(t,e){let r=this.length;return this.resize(r+1),this.emplace(r,t,e)}emplace(t,e,r){let i=t*2;return this.float32[i+0]=e,this.float32[i+1]=r,t}};fn.prototype.bytesPerElement=8,C("StructArrayLayout2f8",fn);var vo=class extends vt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(t,e,r,i,n,a,s,o,l,u){let h=this.length;return this.resize(h+1),this.emplace(h,t,e,r,i,n,a,s,o,l,u)}emplace(t,e,r,i,n,a,s,o,l,u,h){let c=t*10;return this.uint16[c+0]=e,this.uint16[c+1]=r,this.uint16[c+2]=i,this.uint16[c+3]=n,this.uint16[c+4]=a,this.uint16[c+5]=s,this.uint16[c+6]=o,this.uint16[c+7]=l,this.uint16[c+8]=u,this.uint16[c+9]=h,t}};vo.prototype.bytesPerElement=20,C("StructArrayLayout10ui20",vo);var bo=class extends vt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(t,e,r,i,n,a,s,o){let l=this.length;return this.resize(l+1),this.emplace(l,t,e,r,i,n,a,s,o)}emplace(t,e,r,i,n,a,s,o,l){let u=t*8;return this.uint16[u+0]=e,this.uint16[u+1]=r,this.uint16[u+2]=i,this.uint16[u+3]=n,this.uint16[u+4]=a,this.uint16[u+5]=s,this.uint16[u+6]=o,this.uint16[u+7]=l,t}};bo.prototype.bytesPerElement=16,C("StructArrayLayout8ui16",bo);var wo=class extends vt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(t,e,r,i,n,a,s,o,l,u,h,c,p){let f=this.length;return this.resize(f+1),this.emplace(f,t,e,r,i,n,a,s,o,l,u,h,c,p)}emplace(t,e,r,i,n,a,s,o,l,u,h,c,p,f){let d=t*14,y=t*7;return this.int16[d+0]=e,this.int16[d+1]=r,this.int16[d+2]=i,this.int16[d+3]=n,this.uint16[d+4]=a,this.uint16[d+5]=s,this.uint16[d+6]=o,this.uint16[d+7]=l,this.int16[d+8]=u,this.int16[d+9]=h,this.int16[d+10]=c,this.int16[d+11]=p,this.float32[y+6]=f,t}};wo.prototype.bytesPerElement=28,C("StructArrayLayout4i4ui4i1f28",wo);var Do=class extends vt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(t,e,r){let i=this.length;return this.resize(i+1),this.emplace(i,t,e,r)}emplace(t,e,r,i){let n=t*3;return this.float32[n+0]=e,this.float32[n+1]=r,this.float32[n+2]=i,t}};Do.prototype.bytesPerElement=12,C("StructArrayLayout3f12",Do);var _o=class extends vt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)}emplaceBack(t){let e=this.length;return this.resize(e+1),this.emplace(e,t)}emplace(t,e){let r=t*1;return this.uint32[r+0]=e,t}};_o.prototype.bytesPerElement=4,C("StructArrayLayout1ul4",_o);var Ao=class extends vt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(t,e,r,i,n,a,s,o,l){let u=this.length;return this.resize(u+1),this.emplace(u,t,e,r,i,n,a,s,o,l)}emplace(t,e,r,i,n,a,s,o,l,u){let h=t*10,c=t*5;return this.int16[h+0]=e,this.int16[h+1]=r,this.int16[h+2]=i,this.int16[h+3]=n,this.int16[h+4]=a,this.int16[h+5]=s,this.uint32[c+3]=o,this.uint16[h+8]=l,this.uint16[h+9]=u,t}};Ao.prototype.bytesPerElement=20,C("StructArrayLayout6i1ul2ui20",Ao);var So=class extends vt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(t,e,r,i,n,a){let s=this.length;return this.resize(s+1),this.emplace(s,t,e,r,i,n,a)}emplace(t,e,r,i,n,a,s){let o=t*6;return this.int16[o+0]=e,this.int16[o+1]=r,this.int16[o+2]=i,this.int16[o+3]=n,this.int16[o+4]=a,this.int16[o+5]=s,t}};So.prototype.bytesPerElement=12,C("StructArrayLayout2i2i2i12",So);var Yh=class extends vt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(t,e,r,i,n){let a=this.length;return this.resize(a+1),this.emplace(a,t,e,r,i,n)}emplace(t,e,r,i,n,a){let s=t*4,o=t*8;return this.float32[s+0]=e,this.float32[s+1]=r,this.float32[s+2]=i,this.int16[o+6]=n,this.int16[o+7]=a,t}};Yh.prototype.bytesPerElement=16,C("StructArrayLayout2f1f2i16",Yh);var Eo=class extends vt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(t,e,r,i,n,a){let s=this.length;return this.resize(s+1),this.emplace(s,t,e,r,i,n,a)}emplace(t,e,r,i,n,a,s){let o=t*16,l=t*4,u=t*8;return this.uint8[o+0]=e,this.uint8[o+1]=r,this.float32[l+1]=i,this.float32[l+2]=n,this.int16[u+6]=a,this.int16[u+7]=s,t}};Eo.prototype.bytesPerElement=16,C("StructArrayLayout2ub2f2i16",Eo);var Fo=class extends vt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(t,e,r){let i=this.length;return this.resize(i+1),this.emplace(i,t,e,r)}emplace(t,e,r,i){let n=t*3;return this.uint16[n+0]=e,this.uint16[n+1]=r,this.uint16[n+2]=i,t}};Fo.prototype.bytesPerElement=6,C("StructArrayLayout3ui6",Fo);var To=class extends vt{_refreshViews(){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)}emplaceBack(t,e,r,i,n,a,s,o,l,u,h,c,p,f,d,y,m,g){let x=this.length;return this.resize(x+1),this.emplace(x,t,e,r,i,n,a,s,o,l,u,h,c,p,f,d,y,m,g)}emplace(t,e,r,i,n,a,s,o,l,u,h,c,p,f,d,y,m,g,x){let v=t*26,b=t*13,w=t*52;return this.int16[v+0]=e,this.int16[v+1]=r,this.uint16[v+2]=i,this.uint16[v+3]=n,this.uint32[b+2]=a,this.uint32[b+3]=s,this.uint32[b+4]=o,this.uint16[v+10]=l,this.uint16[v+11]=u,this.uint16[v+12]=h,this.float32[b+7]=c,this.float32[b+8]=p,this.uint8[w+36]=f,this.uint8[w+37]=d,this.uint8[w+38]=y,this.uint32[b+10]=m,this.int16[v+22]=g,this.float32[b+12]=x,t}};To.prototype.bytesPerElement=52,C("StructArrayLayout2i2ui3ul3ui2f3ub1ul1i1f52",To);var ko=class extends vt{_refreshViews(){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)}emplaceBack(t,e,r,i,n,a,s,o,l,u,h,c,p,f,d,y,m,g,x,v,b,w,_,A,S,T,L,O,B){let V=this.length;return this.resize(V+1),this.emplace(V,t,e,r,i,n,a,s,o,l,u,h,c,p,f,d,y,m,g,x,v,b,w,_,A,S,T,L,O,B)}emplace(t,e,r,i,n,a,s,o,l,u,h,c,p,f,d,y,m,g,x,v,b,w,_,A,S,T,L,O,B,V){let F=t*34,$=t*17;return this.int16[F+0]=e,this.int16[F+1]=r,this.int16[F+2]=i,this.int16[F+3]=n,this.int16[F+4]=a,this.int16[F+5]=s,this.int16[F+6]=o,this.int16[F+7]=l,this.uint16[F+8]=u,this.uint16[F+9]=h,this.uint16[F+10]=c,this.uint16[F+11]=p,this.uint16[F+12]=f,this.uint16[F+13]=d,this.uint16[F+14]=y,this.uint16[F+15]=m,this.uint16[F+16]=g,this.uint16[F+17]=x,this.uint16[F+18]=v,this.uint16[F+19]=b,this.uint16[F+20]=w,this.uint16[F+21]=_,this.uint16[F+22]=A,this.uint32[$+12]=S,this.float32[$+13]=T,this.float32[$+14]=L,this.uint16[F+30]=O,this.uint16[F+31]=B,this.float32[$+16]=V,t}};ko.prototype.bytesPerElement=68,C("StructArrayLayout8i15ui1ul2f2ui1f68",ko);var Sa=class extends vt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(t){let e=this.length;return this.resize(e+1),this.emplace(e,t)}emplace(t,e){let r=t*1;return this.float32[r+0]=e,t}};Sa.prototype.bytesPerElement=4,C("StructArrayLayout1f4",Sa);var Io=class extends vt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(t,e,r){let i=this.length;return this.resize(i+1),this.emplace(i,t,e,r)}emplace(t,e,r,i){let n=t*6,a=t*3;return this.uint16[n+0]=e,this.float32[a+1]=r,this.float32[a+2]=i,t}};Io.prototype.bytesPerElement=12,C("StructArrayLayout1ui2f12",Io);var Co=class extends vt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(t,e,r){let i=this.length;return this.resize(i+1),this.emplace(i,t,e,r)}emplace(t,e,r,i){let n=t*2,a=t*4;return this.uint32[n+0]=e,this.uint16[a+2]=r,this.uint16[a+3]=i,t}};Co.prototype.bytesPerElement=8,C("StructArrayLayout1ul2ui8",Co);var Mo=class extends vt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(t,e){let r=this.length;return this.resize(r+1),this.emplace(r,t,e)}emplace(t,e,r){let i=t*2;return this.uint16[i+0]=e,this.uint16[i+1]=r,t}};Mo.prototype.bytesPerElement=4,C("StructArrayLayout2ui4",Mo);var Wh=class extends vt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(t){let e=this.length;return this.resize(e+1),this.emplace(e,t)}emplace(t,e){let r=t*1;return this.uint16[r+0]=e,t}};Wh.prototype.bytesPerElement=2,C("StructArrayLayout1ui2",Wh);var Bo=class extends vt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(t,e,r,i){let n=this.length;return this.resize(n+1),this.emplace(n,t,e,r,i)}emplace(t,e,r,i,n){let a=t*4;return this.float32[a+0]=e,this.float32[a+1]=r,this.float32[a+2]=i,this.float32[a+3]=n,t}};Bo.prototype.bytesPerElement=16,C("StructArrayLayout4f16",Bo);var nd=class extends Sn{get anchorPointX(){return this._structArray.int16[this._pos2+0]}get anchorPointY(){return this._structArray.int16[this._pos2+1]}get x1(){return this._structArray.int16[this._pos2+2]}get y1(){return this._structArray.int16[this._pos2+3]}get x2(){return this._structArray.int16[this._pos2+4]}get y2(){return this._structArray.int16[this._pos2+5]}get featureIndex(){return this._structArray.uint32[this._pos4+3]}get sourceLayerIndex(){return this._structArray.uint16[this._pos2+8]}get bucketIndex(){return this._structArray.uint16[this._pos2+9]}get anchorPoint(){return new M(this.anchorPointX,this.anchorPointY)}};nd.prototype.size=20;var Rl=class extends Ao{get(t){return new nd(this,t)}};C("CollisionBoxArray",Rl);var ad=class extends Sn{get anchorX(){return this._structArray.int16[this._pos2+0]}get anchorY(){return this._structArray.int16[this._pos2+1]}get glyphStartIndex(){return this._structArray.uint16[this._pos2+2]}get numGlyphs(){return this._structArray.uint16[this._pos2+3]}get vertexStartIndex(){return this._structArray.uint32[this._pos4+2]}get lineStartIndex(){return this._structArray.uint32[this._pos4+3]}get lineLength(){return this._structArray.uint32[this._pos4+4]}get segment(){return this._structArray.uint16[this._pos2+10]}get lowerSize(){return this._structArray.uint16[this._pos2+11]}get upperSize(){return this._structArray.uint16[this._pos2+12]}get lineOffsetX(){return this._structArray.float32[this._pos4+7]}get lineOffsetY(){return this._structArray.float32[this._pos4+8]}get writingMode(){return this._structArray.uint8[this._pos1+36]}get placedOrientation(){return this._structArray.uint8[this._pos1+37]}set placedOrientation(t){this._structArray.uint8[this._pos1+37]=t}get hidden(){return this._structArray.uint8[this._pos1+38]}set hidden(t){this._structArray.uint8[this._pos1+38]=t}get crossTileID(){return this._structArray.uint32[this._pos4+10]}set crossTileID(t){this._structArray.uint32[this._pos4+10]=t}get associatedIconIndex(){return this._structArray.int16[this._pos2+22]}get heightOffset(){return this._structArray.float32[this._pos4+12]}};ad.prototype.size=52;var sd=class extends To{get(t){return new ad(this,t)}};C("PlacedSymbolArray",sd);var od=class extends Sn{get anchorX(){return this._structArray.int16[this._pos2+0]}get anchorY(){return this._structArray.int16[this._pos2+1]}get rightJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+2]}get centerJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+3]}get leftJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+4]}get verticalPlacedTextSymbolIndex(){return this._structArray.int16[this._pos2+5]}get placedIconSymbolIndex(){return this._structArray.int16[this._pos2+6]}get verticalPlacedIconSymbolIndex(){return this._structArray.int16[this._pos2+7]}get key(){return this._structArray.uint16[this._pos2+8]}get textBoxStartIndex(){return this._structArray.uint16[this._pos2+9]}get textBoxEndIndex(){return this._structArray.uint16[this._pos2+10]}get verticalTextBoxStartIndex(){return this._structArray.uint16[this._pos2+11]}get verticalTextBoxEndIndex(){return this._structArray.uint16[this._pos2+12]}get iconBoxStartIndex(){return this._structArray.uint16[this._pos2+13]}get iconBoxEndIndex(){return this._structArray.uint16[this._pos2+14]}get verticalIconBoxStartIndex(){return this._structArray.uint16[this._pos2+15]}get verticalIconBoxEndIndex(){return this._structArray.uint16[this._pos2+16]}get featureIndex(){return this._structArray.uint16[this._pos2+17]}get numHorizontalGlyphVertices(){return this._structArray.uint16[this._pos2+18]}get numVerticalGlyphVertices(){return this._structArray.uint16[this._pos2+19]}get numIconVertices(){return this._structArray.uint16[this._pos2+20]}get numVerticalIconVertices(){return this._structArray.uint16[this._pos2+21]}get useRuntimeCollisionCircles(){return this._structArray.uint16[this._pos2+22]}get crossTileID(){return this._structArray.uint32[this._pos4+12]}set crossTileID(t){this._structArray.uint32[this._pos4+12]=t}get textBoxScale(){return this._structArray.float32[this._pos4+13]}get collisionCircleDiameter(){return this._structArray.float32[this._pos4+14]}get textAnchorOffsetStartIndex(){return this._structArray.uint16[this._pos2+30]}get textAnchorOffsetEndIndex(){return this._structArray.uint16[this._pos2+31]}get heightOffset(){return this._structArray.float32[this._pos4+16]}};od.prototype.size=68;var ld=class extends ko{get(t){return new od(this,t)}};C("SymbolInstanceArray",ld);var ud=class extends Sa{getoffsetX(t){return this.float32[t*1+0]}};C("GlyphOffsetArray",ud);var hd=class extends mo{getx(t){return this.int16[t*3+0]}gety(t){return this.int16[t*3+1]}gettileUnitDistanceFromAnchor(t){return this.int16[t*3+2]}};C("SymbolLineVertexArray",hd);var cd=class extends Sn{get textAnchor(){return this._structArray.uint16[this._pos2+0]}get textOffset0(){return this._structArray.float32[this._pos4+1]}get textOffset1(){return this._structArray.float32[this._pos4+2]}};cd.prototype.size=12;var pd=class extends Io{get(t){return new cd(this,t)}};C("TextAnchorOffsetArray",pd);var fd=class extends Sn{get featureIndex(){return this._structArray.uint32[this._pos4+0]}get sourceLayerIndex(){return this._structArray.uint16[this._pos2+2]}get bucketIndex(){return this._structArray.uint16[this._pos2+3]}};fd.prototype.size=8;var dd=class extends Co{get(t){return new fd(this,t)}};C("FeatureIndexArray",dd);var yg=class extends pn{};var mg=class extends pn{},gg=class extends pn{},xg=class extends go{},vg=class extends xo{},bg=class extends fn{},Vr=class extends vo{},Zh=class extends bo{},wg=class extends wo{},Dg=class extends Do{},_g=class extends _o{},Hh=class extends So{};var Ag=class extends Eo{};var En=class extends Fo{},Po=class extends Mo{};var zo=Et([{name:"a_pos",components:2,type:"Int16"}],4),Sg=zo.members;zo.size,zo.alignment;var ie=class Ur{constructor(e=[]){this._forceNewSegmentOnNextPrepare=!1,this.segments=e}prepareSegment(e,r,i,n){let a=this.segments[this.segments.length-1];return e>Ur.MAX_VERTEX_ARRAY_LENGTH&&Mt(`Max vertices per segment is ${Ur.MAX_VERTEX_ARRAY_LENGTH}: bucket requested ${e}. Consider using the \\`fillLargeMeshArrays\\` function if you require meshes with more than ${Ur.MAX_VERTEX_ARRAY_LENGTH} vertices.`),this._forceNewSegmentOnNextPrepare||!a||a.vertexLength+e>Ur.MAX_VERTEX_ARRAY_LENGTH||a.sortKey!==n?this.createNewSegment(r,i,n):a}createNewSegment(e,r,i){let n={vertexOffset:e.length,primitiveOffset:r.length,vertexLength:0,primitiveLength:0,vaos:{}};return i!==void 0&&(n.sortKey=i),this._forceNewSegmentOnNextPrepare=!1,this.segments.push(n),n}getOrCreateLatestSegment(e,r,i){return this.prepareSegment(0,e,r,i)}forceNewSegmentOnNextPrepare(){this._forceNewSegmentOnNextPrepare=!0}get(){return this.segments}destroy(){for(let e of this.segments)for(let r in e.vaos)e.vaos[r].destroy()}static simpleSegment(e,r,i,n){return new Ur([{vertexOffset:e,primitiveOffset:r,vertexLength:i,primitiveLength:n,vaos:{},sortKey:0}])}};ie.MAX_VERTEX_ARRAY_LENGTH=2**16-1,C("SegmentVector",ie);function Kh(t,e){return t=en(Math.floor(t),0,255),e=en(Math.floor(e),0,255),256*t+e}var Eg=Et([{name:"a_pattern_from",components:4,type:"Uint16"},{name:"a_pattern_to",components:4,type:"Uint16"},{name:"a_pixel_ratio_from",components:1,type:"Uint16"},{name:"a_pixel_ratio_to",components:1,type:"Uint16"}]),Fg=Et([{name:"a_dasharray_from",components:4,type:"Uint16"},{name:"a_dasharray_to",components:4,type:"Uint16"}]),Tg=ml(((t,e)=>{function r(i,n){for(var a=i.length&3,s=i.length-a,o=n,l,u=3432918353,h=461845907,c,p=0;p>>16)*u&65535)<<16)&4294967295,c=c<<15|c>>>17,c=(c&65535)*h+(((c>>>16)*h&65535)<<16)&4294967295,o^=c,o=o<<13|o>>>19,l=(o&65535)*5+(((o>>>16)*5&65535)<<16)&4294967295,o=(l&65535)+27492+(((l>>>16)+58964&65535)<<16);switch(c=0,a){case 3:c^=(i.charCodeAt(p+2)&255)<<16;case 2:c^=(i.charCodeAt(p+1)&255)<<8;case 1:c^=i.charCodeAt(p)&255,c=(c&65535)*u+(((c>>>16)*u&65535)<<16)&4294967295,c=c<<15|c>>>17,c=(c&65535)*h+(((c>>>16)*h&65535)<<16)&4294967295,o^=c}return o^=i.length,o^=o>>>16,o=(o&65535)*2246822507+(((o>>>16)*2246822507&65535)<<16)&4294967295,o^=o>>>13,o=(o&65535)*3266489909+(((o>>>16)*3266489909&65535)<<16)&4294967295,o^=o>>>16,o>>>0}e!==void 0&&(e.exports=r)})),kg=ml(((t,e)=>{function r(i,n){for(var a=i.length,s=n^a,o=0,l;a>=4;)l=i.charCodeAt(o)&255|(i.charCodeAt(++o)&255)<<8|(i.charCodeAt(++o)&255)<<16|(i.charCodeAt(++o)&255)<<24,l=(l&65535)*1540483477+(((l>>>16)*1540483477&65535)<<16),l^=l>>>24,l=(l&65535)*1540483477+(((l>>>16)*1540483477&65535)<<16),s=(s&65535)*1540483477+(((s>>>16)*1540483477&65535)<<16)^l,a-=4,++o;switch(a){case 3:s^=(i.charCodeAt(o+2)&255)<<16;case 2:s^=(i.charCodeAt(o+1)&255)<<8;case 1:s^=i.charCodeAt(o)&255,s=(s&65535)*1540483477+(((s>>>16)*1540483477&65535)<<16)}return s^=s>>>13,s=(s&65535)*1540483477+(((s>>>16)*1540483477&65535)<<16),s^=s>>>15,s>>>0}e.exports=r})),Ea=M1(ml(((t,e)=>{var r=Tg(),i=kg();e.exports=r,e.exports.murmur3=r,e.exports.murmur2=i}))(),1),yd=class md{constructor(){this.ids=[],this.positions=[],this.indexed=!1}add(e,r,i,n){this.ids.push(Jh(e)),this.positions.push(r,i,n)}getPositions(e){if(!this.indexed)throw Error("Trying to get index, but feature positions are not indexed");let r=Jh(e),i=0,n=this.ids.length-1;for(;i>1;this.ids[s]>=r?n=s:i=s+1}let a=[];for(;this.ids[i]===r;){let s=this.positions[3*i],o=this.positions[3*i+1],l=this.positions[3*i+2];a.push({index:s,start:o,end:l}),i++}return a}static serialize(e,r){let i=new Float64Array(e.ids),n=new Uint32Array(e.positions);return Lo(i,n,0,i.length-1),r&&r.push(i.buffer,n.buffer),{ids:i,positions:n}}static deserialize(e){let r=new md;return r.ids=e.ids,r.positions=e.positions,r.indexed=!0,r}};function Jh(t){let e=+t;return!isNaN(e)&&e<=2**53-1?e:(0,Ea.default)(String(t))}function Lo(t,e,r,i){for(;r>1],a=r-1,s=i+1;for(;;){do a++;while(t[a]n);if(a>=s)break;Kn(t,a,s),Kn(e,3*a,3*s),Kn(e,3*a+1,3*s+1),Kn(e,3*a+2,3*s+2)}s-r`u_${i}`),this.type=r}setUniform(t,e,r){t.set(r.constantOr(this.value))}getBinding(t,e,r){return this.type==="color"?new Cg(t,e):new Nl(t,e)}},fr=class{constructor(t,e){this.uniformNames=e.map(r=>`u_${r}`),this.patternFrom=null,this.patternTo=null,this.pixelRatioFrom=1,this.pixelRatioTo=1}setConstantPatternPositions(t,e){this.pixelRatioFrom=e.pixelRatio,this.pixelRatioTo=t.pixelRatio,this.patternFrom=e.tlbr,this.patternTo=t.tlbr}setConstantDashPositions(t,e){this.dashTo=[0,t.y,t.height,t.width],this.dashFrom=[0,e.y,e.height,e.width]}setUniform(t,e,r,i){let n=null;i==="u_pattern_to"?n=this.patternTo:i==="u_pattern_from"?n=this.patternFrom:i==="u_dasharray_to"?n=this.dashTo:i==="u_dasharray_from"?n=this.dashFrom:i==="u_pixel_ratio_to"?n=this.pixelRatioTo:i==="u_pixel_ratio_from"&&(n=this.pixelRatioFrom),n!==null&&t.set(n)}getBinding(t,e,r){return r.startsWith("u_pattern")||r.startsWith("u_dasharray_")?new Ig(t,e):new Nl(t,e)}},Ce=class{constructor(t,e,r,i){this.expression=t,this.type=r,this.maxValue=0,this.paintVertexAttributes=e.map(n=>({name:`a_${n}`,type:"Float32",components:r==="color"?2:1,offset:0})),this.paintVertexArray=new i}populatePaintArray(t,e,r){let i=this.paintVertexArray.length,n=this.expression.evaluate(new st(0,r),e,{},r.canonical,[],r.formattedSection);this.paintVertexArray.resize(t),this._setPaintValue(i,t,n)}updatePaintArray(t,e,r,i,n){let a=this.expression.evaluate(new st(0,n),r,i);this._setPaintValue(t,e,a)}_setPaintValue(t,e,r){if(this.type==="color"){let i=Vo(r);for(let n=t;n`u_${s}_t`),this.type=r,this.useIntegerZoom=i,this.zoom=n,this.maxValue=0,this.paintVertexAttributes=e.map(s=>({name:`a_${s}`,type:"Float32",components:r==="color"?4:2,offset:0})),this.paintVertexArray=new a}populatePaintArray(t,e,r){let i=this.expression.evaluate(new st(this.zoom,r),e,{},r.canonical,[],r.formattedSection),n=this.expression.evaluate(new st(this.zoom+1,r),e,{},r.canonical,[],r.formattedSection),a=this.paintVertexArray.length;this.paintVertexArray.resize(t),this._setPaintValue(a,t,i,n)}updatePaintArray(t,e,r,i,n){let a=this.expression.evaluate(new st(this.zoom,n),r,i),s=this.expression.evaluate(new st(this.zoom+1,n),r,i);this._setPaintValue(t,e,a,s)}_setPaintValue(t,e,r,i){if(this.type==="color"){let n=Vo(r),a=Vo(i);for(let s=t;s`#define HAS_UNIFORM_${i}`))}return t}getBinderAttributes(){let t=[];for(let e in this.binders){let r=this.binders[e];if(r instanceof Ce||r instanceof ce)for(let i of r.paintVertexAttributes)t.push(i.name);else if(r instanceof Ze){let i=r.getVertexAttributes();for(let n of i)t.push(n.name)}}return t}getBinderUniforms(){let t=[];for(let e in this.binders){let r=this.binders[e];if(r instanceof qi||r instanceof fr||r instanceof ce)for(let i of r.uniformNames)t.push(i)}return t}getPaintVertexBuffers(){return this._buffers}getUniforms(t,e){let r=[];for(let i in this.binders){let n=this.binders[i];if(n instanceof qi||n instanceof fr||n instanceof ce){for(let a of n.uniformNames)if(e[a]){let s=n.getBinding(t,e[a],a);r.push({name:a,property:i,binding:s})}}}return r}setUniforms(t,e,r,i){for(let{name:n,property:a,binding:s}of e)this.binders[a].setUniform(s,i,r.get(a),n)}updatePaintBuffers(t){this._buffers=[];for(let e in this.binders){let r=this.binders[e];if(t&&r instanceof Ze){let i=t.fromScale===2?r.zoomInPaintVertexBuffer:r.zoomOutPaintVertexBuffer;i&&this._buffers.push(i)}else(r instanceof Ce||r instanceof ce)&&r.paintVertexBuffer&&this._buffers.push(r.paintVertexBuffer)}}upload(t){for(let e in this.binders){let r=this.binders[e];(r instanceof Ce||r instanceof ce||r instanceof Ze)&&r.upload(t)}this.updatePaintBuffers()}destroy(){for(let t in this.binders){let e=this.binders[t];(e instanceof Ce||e instanceof ce||e instanceof Ze)&&e.destroy()}}},Dr=class{constructor(t,e,r=()=>!0){this.programConfigurations={};for(let i of t)this.programConfigurations[i.id]=new vd(i,e,r);this.needsUpload=!1,this._featureMap=new yd,this._bufferOffset=0}populatePaintArrays(t,e,r,i){for(let n in this.programConfigurations)this.programConfigurations[n].populatePaintArrays(t,e,i);e.id!==void 0&&this._featureMap.add(e.id,r,this._bufferOffset,t),this._bufferOffset=t,this.needsUpload=!0}updatePaintArrays(t,e,r,i){for(let n of r)this.needsUpload=this.programConfigurations[n.id].updatePaintArrays(t,this._featureMap,e,n,i)||this.needsUpload}get(t){return this.programConfigurations[t]}upload(t){if(this.needsUpload){for(let e in this.programConfigurations)this.programConfigurations[e].upload(t);this.needsUpload=!1}}destroy(){for(let t in this.programConfigurations)this.programConfigurations[t].destroy()}};function Mg(t,e){return{"text-opacity":["opacity"],"icon-opacity":["opacity"],"text-color":["fill_color"],"icon-color":["fill_color"],"text-halo-color":["halo_color"],"icon-halo-color":["halo_color"],"text-halo-blur":["halo_blur"],"icon-halo-blur":["halo_blur"],"text-halo-width":["halo_width"],"icon-halo-width":["halo_width"],"line-gap-width":["gapwidth"],"line-dasharray":["dasharray_to","dasharray_from"],"line-pattern":["pattern_to","pattern_from","pixel_ratio_to","pixel_ratio_from"],"fill-pattern":["pattern_to","pattern_from","pixel_ratio_to","pixel_ratio_from"],"fill-extrusion-pattern":["pattern_to","pattern_from","pixel_ratio_to","pixel_ratio_from"]}[t]||[t.replace(`${e}-`,"").replace(/-/g,"_")]}function Bg(t){return{"line-pattern":{source:Vr,composite:Vr},"fill-pattern":{source:Vr,composite:Vr},"fill-extrusion-pattern":{source:Vr,composite:Vr},"line-dasharray":{source:Zh,composite:Zh}}[t]}function Qh(t,e,r){var n;let i={color:{source:fn,composite:Bo},number:{source:Sa,composite:fn}};return((n=Bg(t))==null?void 0:n[r])||i[e][r]}C("ConstantBinder",qi),C("CrossFadedConstantBinder",fr),C("SourceExpressionBinder",Ce),C("CrossFadedPatternBinder",gd),C("CrossFadedDasharrayBinder",xd),C("CompositeExpressionBinder",ce),C("ProgramConfiguration",vd,{omit:["_buffers"]}),C("ProgramConfigurationSet",Dr);var Oo=2**14-1,tc=-Oo-1;function Fr(t){let e=gt/t.extent,r=t.loadGeometry();for(let i of r)for(let n of i){let a=Math.round(n.x*e),s=Math.round(n.y*e);n.x=en(a,tc,Oo),n.y=en(s,tc,Oo),(an.x+1||sn.y+1)&&Mt("Geometry exceeds allowed extent, reduce your vector tile buffer size")}return r}function hi(t,e){return{type:t.type,id:t.id,properties:t.properties,geometry:e?Fr(t):[]}}var ec=-32768;function Pg(t,e,r,i,n){t.emplaceBack(ec+e*8+i,ec+r*8+n)}var Ul=class{constructor(t){this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map(e=>e.id),this.index=t.index,this.hasDependencies=!1,this.layoutVertexArray=new mg,this.indexArray=new En,this.segments=new ie,this.programConfigurations=new Dr(t.layers,t.zoom),this.stateDependentLayerIds=this.layers.filter(e=>e.isStateDependent()).map(e=>e.id)}populate(t,e,r){let i=this.layers[0],n=[],a=null,s=!1,o=i.type==="heatmap";if(i.type==="circle"){let c=i;a=c.layout.get("circle-sort-key"),s=!a.isConstant(),o||(o=c.paint.get("circle-pitch-alignment")==="map")}let l=o?e.subdivisionGranularity.circle:1,u=new st(this.zoom),h=this.layers[0]._featureFilter.needGeometry;for(let{feature:c,id:p,index:f,sourceLayerIndex:d}of t){let y=hi(c,h);if(!this.layers[0]._featureFilter.filter(u,y,r))continue;let m=s?a.evaluate(y,{},r):void 0,g={id:p,properties:c.properties,type:c.type,sourceLayerIndex:d,index:f,geometry:h?y.geometry:Fr(c),patterns:{},sortKey:m};n.push(g)}s&&n.sort((c,p)=>c.sortKey-p.sortKey);for(let c of n){let{geometry:p,index:f,sourceLayerIndex:d}=c,y=t[f].feature;this.addFeature(c,p,f,r,l),e.featureIndex.insert(y,p,f,d,this.index)}}update(t,e,r){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(t,e,this.stateDependentLayers,{imagePositions:r})}addFeatures(t){}isEmpty(){return this.layoutVertexArray.length===0}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(t){this.uploaded||(this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,Sg),this.indexBuffer=t.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(t),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())}addFeature(t,e,r,i,n=1){let a;switch(n){case 1:a=[0,7];break;case 3:a=[0,2,5,7];break;case 5:a=[0,1,3,4,6,7];break;case 7:a=[0,1,2,3,4,5,6,7];break;default:throw Error(`Invalid circle bucket granularity: ${n}; valid values are 1, 3, 5, 7.`)}let s=a.length;for(let o of e)for(let l of o){let u=l.x,h=l.y;if(u<0||u>=8192||h<0||h>=8192)continue;let c=this.segments.prepareSegment(s*s,this.layoutVertexArray,this.indexArray,t.sortKey),p=c.vertexLength;for(let f=0;f=3){for(let n of i)if(oi(t,n))return!0}if(Vg(t,i,r))return!0}return!1}function Vg(t,e,r){if(t.length>1){if(ql(t,e))return!0;for(let i of e)if(Ro(i,t,r))return!0}for(let i of t)if(Ro(i,e,r))return!0;return!1}function ql(t,e){if(t.length===0||e.length===0)return!1;for(let r=0;r1?t.distSqr(r):t.distSqr(r.sub(e)._mult(n)._add(e))}function rc(t,e){let r=!1,i,n,a;for(let s of t){i=s;for(let o=0,l=i.length-1;oe.y!=a.y>e.y&&e.x<(a.x-n.x)*(e.y-n.y)/(a.y-n.y)+n.x&&(r=!r)}return r}function oi(t,e){let r=!1;for(let i=0,n=t.length-1;ie.y!=s.y>e.y&&e.x<(s.x-a.x)*(e.y-a.y)/(s.y-a.y)+a.x&&(r=!r)}return r}function Rg(t,e,r,i,n){for(let s of t)if(e<=s.x&&r<=s.y&&i>=s.x&&n>=s.y)return!0;let a=[new M(e,r),new M(e,n),new M(i,n),new M(i,r)];if(t.length>2){for(let s of a)if(oi(t,s))return!0}for(let s=0;sn.x&&e.x>n.x||t.yn.y&&e.y>n.y)return!1;let a=Qe(t,e,r[0]);return a!==Qe(t,e,r[1])||a!==Qe(t,e,r[2])||a!==Qe(t,e,r[3])}function Wr(t,e,r){let i=e.paint.get(t).value;return i.kind==="constant"?i.value:r.programConfigurations.get(e.id).getMaxValue(t)}function Ka(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function Ja(t,e,r,i,n){if(!e[0]&&!e[1])return t;let a=M.convert(e)._mult(n);r==="viewport"&&a._rotate(-i);let s=[];for(let o of t)s.push(o.sub(a));return s}function Ng(t){let e=[];for(let r=0;rjl(n,e,r,i))}var ic,Wg=()=>ic||(ic=new Yt({"circle-sort-key":new U(D.layout_circle["circle-sort-key"],"circle-sort-key")})),nc,Zg=()=>nc||(nc=new Yt({"circle-radius":new U(D.paint_circle["circle-radius"],"circle-radius"),"circle-color":new U(D.paint_circle["circle-color"],"circle-color"),"circle-blur":new U(D.paint_circle["circle-blur"],"circle-blur"),"circle-opacity":new U(D.paint_circle["circle-opacity"],"circle-opacity"),"circle-translate":new R(D.paint_circle["circle-translate"],"circle-translate"),"circle-translate-anchor":new R(D.paint_circle["circle-translate-anchor"],"circle-translate-anchor"),"circle-pitch-scale":new R(D.paint_circle["circle-pitch-scale"],"circle-pitch-scale"),"circle-pitch-alignment":new R(D.paint_circle["circle-pitch-alignment"],"circle-pitch-alignment"),"circle-stroke-width":new U(D.paint_circle["circle-stroke-width"],"circle-stroke-width"),"circle-stroke-color":new U(D.paint_circle["circle-stroke-color"],"circle-stroke-color"),"circle-stroke-opacity":new U(D.paint_circle["circle-stroke-opacity"],"circle-stroke-opacity")})),Hg={get paint(){return Zg()},get layout(){return Wg()}};var Kg=class extends ye{constructor(t,e){super(t,Hg,e)}createBucket(t){return new Ul(t)}queryRadius(t){let e=t;return Wr("circle-radius",this,e)+Wr("circle-stroke-width",this,e)+Ka(this.paint.get("circle-translate"))}queryIntersectsFeature({queryGeometry:t,feature:e,featureState:r,geometry:i,transform:n,pixelsToTileUnits:a,unwrappedTileID:s,getElevation:o}){let l=Ja(t,this.paint.get("circle-translate"),this.paint.get("circle-translate-anchor"),-n.bearingInRadians,a),u=this.paint.get("circle-radius").evaluate(e,r)+this.paint.get("circle-stroke-width").evaluate(e,r),h=this.paint.get("circle-pitch-scale"),c=this.paint.get("circle-pitch-alignment"),p,f;return c==="map"?(p=l,f=u*a):(p=Yg(l,n,s,o),f=u),Dd({queryGeometry:p,size:f,transform:n,unwrappedTileID:s,getElevation:o,pitchAlignment:c,pitchScale:h},i)}},_d=class extends Ul{};C("HeatmapBucket",_d,{omit:["layers"]});var ac,Jg=()=>ac||(ac=new Yt({"heatmap-radius":new U(D.paint_heatmap["heatmap-radius"],"heatmap-radius"),"heatmap-weight":new U(D.paint_heatmap["heatmap-weight"],"heatmap-weight"),"heatmap-intensity":new R(D.paint_heatmap["heatmap-intensity"],"heatmap-intensity"),"heatmap-color":new Za(D.paint_heatmap["heatmap-color"],"heatmap-color"),"heatmap-opacity":new R(D.paint_heatmap["heatmap-opacity"],"heatmap-opacity")})),Qg={get paint(){return Jg()}};function Gl(t,{width:e,height:r},i,n){if(!n)n=new Uint8Array(e*r*i);else if(n instanceof Uint8ClampedArray)n=new Uint8Array(n.buffer);else if(n.length!==e*r*i)throw RangeError(`mismatched image size. expected: ${n.length} but got: ${e*r*i}`);return t.width=e,t.height=r,t.data=n,t}function Ad(t,{width:e,height:r},i){if(e===t.width&&r===t.height)return;let n=Gl({},{width:e,height:r},i);Xl(t,n,{x:0,y:0},{x:0,y:0},{width:Math.min(t.width,e),height:Math.min(t.height,r)},i),t.width=e,t.height=r,t.data=n.data}function Xl(t,e,r,i,n,a){if(n.width===0||n.height===0)return e;if(n.width>t.width||n.height>t.height||r.x>t.width-n.width||r.y>t.height-n.height)throw RangeError("out of range source coordinates for image copy");if(n.width>e.width||n.height>e.height||i.x>e.width-n.width||i.y>e.height-n.height)throw RangeError("out of range destination coordinates for image copy");let s=t.data,o=e.data;if(s===o)throw Error("srcData equals dstData, so image is already copied");for(let l=0;l{e[t.evaluationKey]=l;let u=t.expression.evaluate(e);n.setPixel(s/4/r,o/4,u)};if(t.clips)for(let s=0,o=0;ssc||(sc=new Yt({"hillshade-illumination-direction":new R(D.paint_hillshade["hillshade-illumination-direction"],"hillshade-illumination-direction"),"hillshade-illumination-altitude":new R(D.paint_hillshade["hillshade-illumination-altitude"],"hillshade-illumination-altitude"),"hillshade-illumination-anchor":new R(D.paint_hillshade["hillshade-illumination-anchor"],"hillshade-illumination-anchor"),"hillshade-exaggeration":new R(D.paint_hillshade["hillshade-exaggeration"],"hillshade-exaggeration"),"hillshade-shadow-color":new R(D.paint_hillshade["hillshade-shadow-color"],"hillshade-shadow-color"),"hillshade-highlight-color":new R(D.paint_hillshade["hillshade-highlight-color"],"hillshade-highlight-color"),"hillshade-accent-color":new R(D.paint_hillshade["hillshade-accent-color"],"hillshade-accent-color"),"hillshade-method":new R(D.paint_hillshade["hillshade-method"],"hillshade-method"),resampling:new R(D.paint_hillshade.resampling,"resampling")})),nx={get paint(){return ix()}};var ax=class extends ye{constructor(t,e){super(t,nx,e),this.recalculate({zoom:0,zoomHistory:{}},void 0)}getIlluminationProperties(){let t=this.paint.get("hillshade-illumination-direction").values,e=this.paint.get("hillshade-illumination-altitude").values,r=this.paint.get("hillshade-highlight-color").values,i=this.paint.get("hillshade-shadow-color").values,n=Math.max(t.length,e.length,r.length,i.length);t=t.concat(Array(n-t.length).fill(t.at(-1))),e=e.concat(Array(n-e.length).fill(e.at(-1))),r=r.concat(Array(n-r.length).fill(r.at(-1))),i=i.concat(Array(n-i.length).fill(i.at(-1)));let a=e.map(yh);return{directionRadians:t.map(yh),altitudeRadians:a,shadowColor:i,highlightColor:r}}hasOffscreenPass(){return this.paint.get("hillshade-exaggeration")!==0&&!this.isHidden()}},oc,sx=()=>oc||(oc=new Yt({"color-relief-opacity":new R(D["paint_color-relief"]["color-relief-opacity"],"color-relief-opacity"),"color-relief-color":new Za(D["paint_color-relief"]["color-relief-color"],"color-relief-color"),resampling:new R(D["paint_color-relief"].resampling,"resampling")})),ox={get paint(){return sx()}};function Jn(t){return"data"in t}var lc=class{constructor(t,e,r,i){this.context=t,this.format=r,this.texture=t.gl.createTexture(),this._ownedHandle=this.texture,this.update(e,i)}update(t,e,r){var u;let{width:i,height:n}=t,a=(((u=this.size)==null?void 0:u[0])!==i||this.size[1]!==n)&&!r,{context:s}=this,{gl:o}=s;this.useMipmap=!!(e!=null&&e.useMipmap),a&&this.size&&this.format===o.RGBA&&(o.deleteTexture(this.texture),this.texture=o.createTexture(),this._ownedHandle=this.texture,this.magFilter=void 0,this.minFilter=void 0,this.wrap=void 0),o.bindTexture(o.TEXTURE_2D,this.texture),s.pixelStoreUnpackFlipY.set(!1),s.pixelStoreUnpack.set(1);let l=this.format===o.RGBA&&(e==null?void 0:e.premultiply)!==!1;if(a)if(this.size=[i,n],this.format===o.RGBA&&i>0&&n>0){let h=this.useMipmap?Math.floor(Math.log2(Math.max(i,n)))+1:1;if(o.texStorage2D(o.TEXTURE_2D,h,o.RGBA8,i,n),Jn(t)){s.pixelStoreUnpackPremultiplyAlpha.set(!1);let{data:c}=t;l&&c&&(c=Us(c)),c&&o.texSubImage2D(o.TEXTURE_2D,0,0,0,i,n,o.RGBA,o.UNSIGNED_BYTE,c)}else s.pixelStoreUnpackPremultiplyAlpha.set(l),o.texSubImage2D(o.TEXTURE_2D,0,0,0,o.RGBA,o.UNSIGNED_BYTE,t)}else Jn(t)?(s.pixelStoreUnpackPremultiplyAlpha.set(!1),this._uploadRawData(t,l,i,n,o)):(s.pixelStoreUnpackPremultiplyAlpha.set(l),this._uploadDomImage(t,o));else{let{x:h,y:c}=r||{x:0,y:0};Jn(t)?(s.pixelStoreUnpackPremultiplyAlpha.set(!1),this._updateRawData(t,l,h,c,i,n,o)):(s.pixelStoreUnpackPremultiplyAlpha.set(l),this._updateDomImage(t,h,c,o))}this.useMipmap&&!(Jn(t)&&t.data===null)&&o.generateMipmap(o.TEXTURE_2D),s.pixelStoreUnpackFlipY.setDefault(),s.pixelStoreUnpack.setDefault(),s.pixelStoreUnpackPremultiplyAlpha.setDefault()}_uploadDomImage(t,e){e.texImage2D(e.TEXTURE_2D,0,this.format,this.format,e.UNSIGNED_BYTE,t)}_uploadRawData(t,e,r,i,n){let{data:a}=t;e&&a&&(a=Us(a)),n.texImage2D(n.TEXTURE_2D,0,this.format,r,i,0,this.format,n.UNSIGNED_BYTE,a)}_updateDomImage(t,e,r,i){i.texSubImage2D(i.TEXTURE_2D,0,e,r,i.RGBA,i.UNSIGNED_BYTE,t)}_updateRawData(t,e,r,i,n,a,s){let{data:o}=t;e&&o&&(o=Us(o)),s.texSubImage2D(s.TEXTURE_2D,0,r,i,n,a,s.RGBA,s.UNSIGNED_BYTE,o)}bind(t,e,r){let{context:i}=this,{gl:n}=i;this.texture!==this._ownedHandle&&(this.texture=this._ownedHandle),n.bindTexture(n.TEXTURE_2D,this.texture),(r===n.LINEAR_MIPMAP_NEAREST||r===n.LINEAR_MIPMAP_LINEAR)&&!this.useMipmap&&(r=n.LINEAR);let a=r||t;t!==this.magFilter&&(n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MAG_FILTER,t),this.magFilter=t),a!==this.minFilter&&(n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MIN_FILTER,a),this.minFilter=a),e!==this.wrap&&(n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_S,e),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_T,e),this.wrap=e)}generateMipmap(){if(!this.useMipmap)return;let{gl:t}=this.context;t.bindTexture(t.TEXTURE_2D,this.texture),t.generateMipmap(t.TEXTURE_2D)}destroy(){let{gl:t}=this.context;t.deleteTexture(this.texture),this.texture=null,this._ownedHandle=null}},ze,Yl=(ze=class{constructor(e,r,i,n=1,a=1,s=1,o=0){if(this.uid=e,r.height!==r.width)throw RangeError("DEM tiles must be square");if(i&&!["mapbox","terrarium","custom"].includes(i)){Mt(`"${i}" is not a valid encoding type. Valid types include "mapbox", "terrarium" and "custom".`);return}this.stride=r.height;let l=this.dim=r.height-4;switch(this.data=new Uint32Array(r.data.buffer),ze.byteViewCache.set(this,new Uint8Array(this.data.buffer)),i){case"terrarium":this.redFactor=256,this.greenFactor=1,this.blueFactor=1/256,this.baseShift=32768;break;case"custom":this.redFactor=n,this.greenFactor=a,this.blueFactor=s,this.baseShift=o;break;default:this.redFactor=6553.6,this.greenFactor=25.6,this.blueFactor=.1,this.baseShift=1e4}for(let h=-2;h=l)&&this.data.copyWithin(this._idx(0,h),c,c+l),this.data.fill(this.data[c],this._idx(-2,h),this._idx(0,h)),this.data.fill(this.data[c+l-1],this._idx(l,h),this._idx(l+1,h)+1)}let u=this._getByteView();this.min=2**53-1,this.max=-(2**53-1);for(let h=0;hthis.max&&(this.max=f),f=this.dim||n<-1||n>=this.dim)throw RangeError(`Out of range source coordinates for DEM data. x: ${e}, y: ${r}, dim: ${this.dim}`);let a=this._getByteView(),s=((n+2)*this.stride+i+2)*4,o=this.stride*4,l=e-i,u=r-n,h=this._unpackAtIndex(a,s),c=this._unpackAtIndex(a,s+4),p=this._unpackAtIndex(a,s+o),f=this._unpackAtIndex(a,s+o+4);return h*(1-l)*(1-u)+c*l*(1-u)+p*(1-l)*u+f*l*u}getUnpackVector(){return[this.redFactor,this.greenFactor,this.blueFactor,this.baseShift]}_idx(e,r){if(e<-2||e>=this.dim+2||r<-2||r>=this.dim+2)throw RangeError(`Out of range source coordinates for DEM data. x: ${e}, y: ${r}, dim: ${this.dim}`);return(r+2)*this.stride+(e+2)}unpack(e,r,i){return e*this.redFactor+r*this.greenFactor+i*this.blueFactor-this.baseShift}pack(e){return Fd(e,this.getUnpackVector())}getPixels(){return new Ht({width:this.stride,height:this.stride},this._getByteView())}backfillBorder(e,r,i){if(this.dim!==e.dim)throw Error("dem dimension mismatch");let n=r*this.dim,a=r*this.dim+this.dim,s=i*this.dim,o=i*this.dim+this.dim;switch(r){case-1:n=a-2;break;case 1:a=n+2}switch(i){case-1:s=o-2;break;case 1:o=s+2}let l=-r*this.dim,u=-i*this.dim;for(let h=s;h80*r){o=t[0],l=t[1];let h=o,c=l;for(let p=r;ph&&(h=f),d>c&&(c=d)}u=Math.max(h-o,c-l),u=u===0?0:32767/u}return Uo(a,s,o,l,u),s}function Td(t,e,r,i,n){let a=null;if(n===Tx(t,e,r,i)>0)for(let s=e;s=e;s-=i)a=cc(s/i|0,t[s],t[s+1],a);return a&&yn(a,a.next)&&(gn(a),a=a.next),a}function _r(t,e=t){let r=e===t,i=t,n;do n=!1,i!==i.next&&(dn.size===0||!dn.has(i))&&(yn(i,i.next)||Tt(i.prev,i,i.next)===0)?((r||i===e)&&(e=i.prev),No=!0,gn(i),i=i.prev,n=!0):(r||i!==e)&&(i=i.next,n=!r);while(n||i!==e);return e}function Uo(t,e,r,i,n){n&&Dx(t,r,i,n);let a=t,s=!1;for(;t.prev!==t.next;){let o=t.prev,l=t.next;if(Tt(o,t,l)<0&&(n?px(t,r,i,n):cx(t))){e.push(o.i,t.i,l.i),gn(t),t=l,a=l;continue}if(t=l,t===a){if(No=!1,t=_r(t),No){a=t;continue}if(!s){t=fx(t,e),a=t,s=!0;continue}dx(t,e,r,i,n);break}}}function cx(t){let e=t.prev,r=t,i=t.next,n=e.x,a=r.x,s=i.x,o=e.y,l=r.y,u=i.y,h=Math.min(n,a,s),c=Math.min(o,l,u),p=Math.max(n,a,s),f=Math.max(o,l,u),d=i.next;for(;d!==e;){if(d.x>=h&&d.x<=p&&d.y>=c&&d.y<=f&&(n!==d.x||o!==d.y)&&ka(n,o,a,l,s,u,d.x,d.y)&&Tt(d.prev,d,d.next)>=0)return!1;d=d.next}return!0}function px(t,e,r,i){let n=t.prev,a=t,s=t.next,o=n.x,l=a.x,u=s.x,h=n.y,c=a.y,p=s.y,f=Math.min(o,l,u),d=Math.min(h,c,p),y=Math.max(o,l,u),m=Math.max(h,c,p),g=Xo(f,d,e,r,i),x=Xo(y,m,e,r,i),v=t.prevZ;for(;v&&v.z>=g;){if(v.x>=f&&v.x<=y&&v.y>=d&&v.y<=m&&v!==s&&(o!==v.x||h!==v.y)&&ka(o,h,l,c,u,p,v.x,v.y)&&Tt(v.prev,v,v.next)>=0)return!1;v=v.prevZ}let b=t.nextZ;for(;b&&b.z<=x;){if(b.x>=f&&b.x<=y&&b.y>=d&&b.y<=m&&b!==s&&(o!==b.x||h!==b.y)&&ka(o,h,l,c,u,p,b.x,b.y)&&Tt(b.prev,b,b.next)>=0)return!1;b=b.nextZ}return!0}function fx(t,e){let r=t,i=!1;do{let n=r.prev,a=r.next.next;Id(n,r,r.next,a,!1)&&mn(n,a)&&mn(a,n)&&(e.push(n.i,r.i,a.i),gn(r),gn(r.next),r=t=a,i=!0),r=r.next}while(r!==t);return i?_r(r):r}function dx(t,e,r,i,n){let a=t;do{let s=a.next.next;for(;s!==a.prev;){if(a.i!==s.i&&Sx(a,s)){let o=Cd(a,s);a=_r(a,a.next),o=_r(o,o.next),Uo(a,e,r,i,n),Uo(o,e,r,i,n);return}s=s.next}a=a.next}while(a!==t)}var qo=!1;function yx(t,e,r,i){let n=[];for(let a=0,s=e.length;as&&(s=r.x),r.yo&&(o=r.y),h.xs&&(s=h.x),h.yo&&(o=h.y),r=h}while(++l<16&&r!==e);Go[i]=r;let u=i*4;Dt[u]=n,Dt[u+1]=a,Dt[u+2]=s,Dt[u+3]=o}while(r!==e)}function vx(t,e){let r=t.z*4;e.xDt[r+2]&&(Dt[r+2]=e.x),e.y>Dt[r+3]&&(Dt[r+3]=e.y)}function uc(t){let e=Go[t];for(;e.prev.next!==e;)e=e.next;return Go[t]=e,e}function hc(t){let e=jo[t];for(;e.prev.next!==e;)e=e.next;return jo[t]=e,e}function bx(t,e){let r=e,i=t.x,n=t.y,a=-1/0,s;if(yn(t,r))return r;for(let p=0,f=0;pDt[f+3]||Dt[f]>i||Dt[f+2]<=a)continue;let d=uc(p);r=hc(p);do{if(r.prev.next===r){if(yn(t,r.next))return r.next;if(n<=r.y&&n>=r.next.y&&r.next.y!==r.y){let y=r.x+(n-r.y)*(r.next.x-r.x)/(r.next.y-r.y);if(y<=i&&y>a&&(a=y,s=r.xi||Dt[f+3]h)continue;let d=uc(p);r=hc(p);do{if(r.prev.next===r&&i>=r.x&&r.x>=o&&i!==r.x&&ka(ni)&&(ys.x||r.x===s.x&&wx(s,r)))&&(s=r,c=y)}r=r.next}while(r!==d)}return s}function wx(t,e){return Tt(t.prev,t,e.prev)<0&&Tt(e.next,t,t.next)<0}var oe=[],Ii=[],cr=new Uint32Array,Ci=new Uint32Array,Mi=new Uint32Array(256);function Dx(t,e,r,i){let n=t,a=0;do n.z=Xo(n.x,n.y,e,r,i),oe[a++]=n,n=n.next;while(n!==t);_x(a);let s=null;for(let o=0;o=0&&oe[n].z>i;)oe[n+1]=oe[n],n--;oe[n+1]=r}return}cr.length>>a&255]++;let s=0;for(let o=0;o<256;o++){let l=Mi[o];Mi[o]=s,s+=l}for(let o=0;o>>a&255]++;i[u]=e[o],n[u]=l}}function Xo(t,e,r,i,n){return t=(t-r)*n|0,e=(e-i)*n|0,t=(t|t<<8)&16711935,t=(t|t<<4)&252645135,t=(t|t<<2)&858993459,t=(t|t<<1)&1431655765,e=(e|e<<8)&16711935,e=(e|e<<4)&252645135,e=(e|e<<2)&858993459,e=(e|e<<1)&1431655765,t|e<<1}function Ax(t){let e=t,r=t;do(e.x=(t-s)*(a-o)&&(t-s)*(i-o)>=(r-s)*(e-o)&&(r-s)*(a-o)>=(n-s)*(i-o)}function Sx(t,e){let r=yn(t,e)&&Tt(t.prev,t,t.next)>0&&Tt(e.prev,e,e.next)>0;return t.next.i!==e.i&&(r||mn(t,e)&&mn(e,t)&&(Tt(t.prev,t,e.prev)!==0||Tt(t,e.prev,e)!==0))&&!Ex(t,e)&&(r||Fx(t,e))}function Tt(t,e,r){return(e.y-t.y)*(r.x-e.x)-(e.x-t.x)*(r.y-e.y)}function yn(t,e){return t.x===e.x&&t.y===e.y}function Id(t,e,r,i,n=!0){let a=Tt(t,e,r),s=Tt(t,e,i),o=Tt(r,i,t),l=Tt(r,i,e);return(a>0&&s<0||a<0&&s>0)&&(o>0&&l<0||o<0&&l>0)?!0:n?!!(a===0&&ta(t,r,e)||s===0&&ta(t,i,e)||o===0&&ta(r,t,i)||l===0&&ta(r,e,i)):!1}function ta(t,e,r){return e.x<=Math.max(t.x,r.x)&&e.x>=Math.min(t.x,r.x)&&e.y<=Math.max(t.y,r.y)&&e.y>=Math.min(t.y,r.y)}function Ex(t,e){let r=Math.min(t.x,e.x),i=Math.max(t.x,e.x),n=Math.min(t.y,e.y),a=Math.max(t.y,e.y),s=t;do{let o=s.next;if(s.x>i&&o.x>i||s.xa&&o.y>a||s.y=0&&Tt(t,t.prev,e)>=0:Tt(t,e,t.prev)<0||Tt(t,t.next,e)<0}function Fx(t,e){let r=t,i=!1,n=(t.x+e.x)/2,a=(t.y+e.y)/2;do{let s=r.next;r.y>a!=s.y>a&&n<(s.x-r.x)*(a-r.y)/(s.y-r.y)+r.x&&(i=!i),r=s}while(r!==t);return i}function Cd(t,e){let r=Yo(t.i,t.x,t.y),i=Yo(e.i,e.x,e.y),n=t.next,a=e.prev;return t.next=e,e.prev=t,r.next=n,n.prev=r,i.next=r,r.prev=i,a.next=i,i.prev=a,i}function cc(t,e,r,i){let n=Yo(t,e,r);return i?(n.next=i.next,n.prev=i,i.next.prev=n,i.next=n):(n.prev=n,n.next=n),n}function gn(t){t.next.prev=t.prev,t.prev.next=t.next,t.prevZ&&(t.prevZ.nextZ=t.nextZ),t.nextZ&&(t.nextZ.prevZ=t.prevZ),qo&&vx(t.prev,t.next)}function Yo(t,e,r){return{i:t,x:e,y:r,prev:null,next:null,z:0,prevZ:null,nextZ:null}}function Tx(t,e,r,i){let n=0;for(let a=e,s=r-i;at)throw Error("Min granularity must not be greater than base granularity.");this._baseZoomGranularity=t,this._minGranularity=e}getGranularityForZoomLevel(t){let e=1<32767||e>32767)throw Error("Vertex coordinates are out of signed 16 bit integer range.");let r=Math.round(t)|0,i=Math.round(e)|0,n=this._getKey(r,i),a=this._vertexDictionary.get(n);if(a!==void 0)return a;let s=this._vertexBuffer.length/2;return this._vertexDictionary.set(n,s),this._vertexBuffer.push(r,i),s}_subdivideTrianglesScanline(t,e){if(this._granularity<2)return Bx(this._vertexBuffer,Mx(t,e));let r=[],i=t.length;for(let n=0;n=1||b<=0)||m&&(ln)){h>=i&&h<=n&&a.push(r[(s+1)%3]);continue}if(!m&&v>0){let A=o+f*v,S=l+d*v;a.push(this._vertexToIndex(A,S))}let w=o+f*Math.max(v,0),_=o+f*Math.min(b,1);if(y||this._generateIntraEdgeVertices(a,o,l,u,h,w,_),!m&&b<1){let A=o+f*b,S=l+d*b;a.push(this._vertexToIndex(A,S))}(m||h>=i&&h<=n)&&a.push(r[(s+1)%3]),!m&&(h<=i||h>=n)&&this._generateInterEdgeVertices(a,o,l,u,h,c,p,_,i,n)}return a}_generateIntraEdgeVertices(t,e,r,i,n,a,s){let o=i-e,l=n-r,u=l===0,h=u?Math.min(e,i):Math.min(a,s),c=u?Math.max(e,i):Math.max(a,s),p=Math.floor(h/this._granularityCellSize)+1,f=Math.ceil(c/this._granularityCellSize)-1;if(u?e=p;d--){let y=d*this._granularityCellSize,m=r+l*(y-e)/o;t.push(this._vertexToIndex(y,m))}}_generateInterEdgeVertices(t,e,r,i,n,a,s,o,l,u){let h=n-r,c=a-i,p=s-n,f=(l-n)/p,d=(u-n)/p,y=Math.min(f,d),m=Math.max(f,d),g=i+c*y,x=Math.floor(Math.min(g,o)/this._granularityCellSize)+1,v=Math.ceil(Math.max(g,o)/this._granularityCellSize)-1,b=o=1||m<=0){let A=e-a,S=r-s,T=(l-s)/S,L=(u-s)/S,O=a+A*Math.min(T,L);x=Math.floor(Math.min(O,o)/this._granularityCellSize)+1,v=Math.ceil(Math.max(O,o)/this._granularityCellSize)-1,b=o0?u:l;if(b)for(let A=x;A<=v;A++){let S=A*this._granularityCellSize;t.push(this._vertexToIndex(S,_))}else for(let A=v;A>=x;A--){let S=A*this._granularityCellSize;t.push(this._vertexToIndex(S,_))}}_generateOutline(t,e){let r=[],i=0;for(let n of t){let a=this._granularity<2?this._ringPathIndices(n,i,e):this._pointArrayToIndices(yr(n,this._granularity,!0));i+=n.length;let s=[];for(let o=1;o=2&&Bd(t)&&i.push(i[0]),i}_handlePoles(t){let e=!1,r=!1;this._canonical&&(this._canonical.y===0&&(e=!0),this._canonical.y===(1<n==(a===-32768)?(t.push(r),t.push(e),t.push(this._vertexToIndex(i,a)),t.push(this._vertexToIndex(n,a)),t.push(r),t.push(this._vertexToIndex(i,a))):(t.push(e),t.push(r),t.push(this._vertexToIndex(i,a)),t.push(r),t.push(this._vertexToIndex(n,a)),t.push(this._vertexToIndex(i,a)))}_fillPoles(t,e,r){let i=this._vertexBuffer,n=gt,a=t.length;for(let s=2;s=2&&((o=this._canonical)==null?void 0:o.z)===0&&(a=this._removeTrianglesOutsideTileX(a),s=s.map(l=>this._removeLinesOutsideTileX(l))),{verticesFlattened:this._vertexBuffer,indicesTriangles:a,indicesLineList:s}}_vertexOutsideTileX(t){let e=this._vertexBuffer[t*2];return e<0||e>8192}_removeTrianglesOutsideTileX(t){let e=[];for(let r=0;r0?(Math.floor(w/n)+1)*n:(Math.ceil(w/n)-1)*n,T=x>0?(Math.floor(_/n)+1)*n:(Math.ceil(_/n)-1)*n,L=Math.abs(w-S),O=Math.abs(_-T),B=Math.abs(w-f),V=Math.abs(_-d),F=y?L/v:1/0,$=m?O/b:1/0;if((B<=L||!y)&&(V<=O||!m))break;if(F<$&&y||!m){w=S,_+=x*F;let G=new M(w,Math.round(_));(a[a.length-1].x!==G.x||a[a.length-1].y!==G.y)&&a.push(G)}else{w+=g*$,_=T;let G=new M(Math.round(w),_);(a[a.length-1].x!==G.x||a[a.length-1].y!==G.y)&&a.push(G)}}let A=new M(f,d);(a[a.length-1].x!==A.x||a[a.length-1].y!==A.y)&&a.push(A)}return a}function Bd(t){return!t[0].equals(t[t.length-1])}function Cx(t){let e=[],r=[];for(let i of t)if(i.length!==0){i!==t[0]&&e.push(r.length/2);for(let n of i)r.push(n.x),r.push(n.y)}return{flattened:r,holeIndices:e}}function Mx(t,e){let r=Array(t.length);for(let i=0;i0?(r.push(n),r.push(s),r.push(a)):(r.push(n),r.push(a),r.push(s))}return r}function Px(t,e,r){if(e.length===0)throw Error("Subdivision vertex ring is empty.");let i=0,n=t[e[0]*2];for(let l=1;l=0?s-1:a-1,u=(o+1)%a,h=t[e[l]*2],c=t[e[l]*2+1],p=t[e[u]*2],f=t[e[u]*2+1],d=t[e[s]*2],y=t[e[s]*2+1],m=t[e[o]*2],g=t[e[o]*2+1],x=!1;if(hp)x=!1;else{let v=g-y,b=-(m-d),w=y((p-d)*v+(f-y)*b)*w&&(x=!0)}if(x){let v=e[l],b=e[s],w=e[o];v!==b&&v!==w&&b!==w&&r.push(w,b,v),s--,s<0&&(s=a-1)}else{let v=e[u],b=e[s],w=e[o];v!==b&&v!==w&&b!==w&&r.push(w,b,v),o++,o>=a&&(o=0)}if(l===u)break}}function Pd(t,e,r,i,n,a,s,o,l){let u=n.length/2,h=s&&o&&l;if(uie.MAX_VERTEX_ARRAY_LENGTH&&(u=t.createNewSegment(e,r),l=o.count,y=!0,m=!0,g=!0,h=0);let v=Ji(s,i,a,o,p,y,u),b=Ji(s,i,a,o,f,m,u),w=Ji(s,i,a,o,d,g,u);r.emplaceBack(h+v-l,h+b-l,h+w-l),u.primitiveLength++}}function Lx(t,e,r,i,n,a){let s=[];for(let c=0;cie.MAX_VERTEX_ARRAY_LENGTH&&(u=t.createNewSegment(e,r),l=o.count,y=!0,m=!0,h=0);let x=Ji(s,i,a,o,f,y,u),v=Ji(s,i,a,o,d,m,u);r.emplaceBack(h+x-l,h+v-l),u.primitiveLength++}}var zd=class{constructor(t){this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map(e=>e.id),this.index=t.index,this.hasDependencies=!1,this.sdfPatterns={},this.patternFeatures=[],this.layoutVertexArray=new gg,this.indexArray=new En,this.indexArray2=new Po,this.programConfigurations=new Dr(t.layers,t.zoom),this.segments=new ie,this.segments2=new ie,this.stateDependentLayerIds=this.layers.filter(e=>e.isStateDependent()).map(e=>e.id)}populate(t,e,r){this.hasDependencies=Fa("fill",this.layers,e);let i=this.layers[0].layout.get("fill-sort-key"),n=!i.isConstant(),a=[],s=new st(this.zoom),o=this.layers[0]._featureFilter.needGeometry;for(let{feature:l,id:u,index:h,sourceLayerIndex:c}of t){let p=hi(l,o);if(!this.layers[0]._featureFilter.filter(s,p,r))continue;let f=n?i.evaluate(p,{},r,e.availableImages):void 0,d={id:u,properties:l.properties,type:l.type,sourceLayerIndex:c,index:h,geometry:o?p.geometry:Fr(l),patterns:{},sortKey:f};a.push(d)}n&&a.sort((l,u)=>l.sortKey-u.sortKey);for(let l of a){let{geometry:u,index:h,sourceLayerIndex:c}=l;if(this.hasDependencies){let f=Wl("fill",this.layers,l,{zoom:this.zoom},e);this.patternFeatures.push(f)}else this.addFeature(l,u,h,r,{},e.subdivisionGranularity);let p=t[h].feature;e.featureIndex.insert(p,u,h,c,this.index)}}update(t,e,r){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(t,e,this.stateDependentLayers,{imagePositions:r})}addFeatures({options:t,canonical:e,patternPositions:r,patternMap:i}){this.detectSdfPatterns(i);for(let n of this.patternFeatures)this.addFeature(n,n.geometry,n.index,e,r,t.subdivisionGranularity)}detectSdfPatterns(t){for(let e of this.patternFeatures)for(let r in e.patterns){let i=e.patterns[r];this.recordSdfPattern(r,t[i.min]),this.recordSdfPattern(r,t[i.mid]),this.recordSdfPattern(r,t[i.max])}for(let e of this.layers){let r=e.paint.get("fill-pattern").constantOr(null);r&&(this.recordSdfPattern(e.id,t[r.from.toString()]),this.recordSdfPattern(e.id,t[r.to.toString()]))}}recordSdfPattern(t,e){if(!e)return;let r=e.sdf===!0,i=this.sdfPatterns[t];i===void 0?this.sdfPatterns[t]=r:i!==r&&Mt(`Style sheet warning: Cannot mix SDF and non-SDF fill patterns in layer "${t}"`)}isEmpty(){return this.layoutVertexArray.length===0}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(t){this.uploaded||(this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,ux),this.indexBuffer=t.createIndexBuffer(this.indexArray),this.indexBuffer2=t.createIndexBuffer(this.indexArray2)),this.programConfigurations.upload(t),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.indexBuffer2.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.segments2.destroy())}addFeature(t,e,r,i,n,a){for(let s of Na(e,500)){let o=Md(s,i,a.fill.getGranularityForZoomLevel(i.z)),l=this.layoutVertexArray;Pd((u,h)=>{l.emplaceBack(u,h)},this.segments,this.layoutVertexArray,this.indexArray,o.verticesFlattened,o.indicesTriangles,this.segments2,this.indexArray2,o.indicesLineList)}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,t,r,{imagePositions:n,canonical:i})}};C("FillBucket",zd,{omit:["layers","patternFeatures"]});var pc,Vx=()=>pc||(pc=new Yt({"fill-sort-key":new U(D.layout_fill["fill-sort-key"],"fill-sort-key")})),fc,Ox=()=>fc||(fc=new Yt({"fill-antialias":new R(D.paint_fill["fill-antialias"],"fill-antialias"),"fill-opacity":new U(D.paint_fill["fill-opacity"],"fill-opacity"),"fill-layer-opacity":new R(D.paint_fill["fill-layer-opacity"],"fill-layer-opacity"),"fill-color":new U(D.paint_fill["fill-color"],"fill-color"),"fill-outline-color":new U(D.paint_fill["fill-outline-color"],"fill-outline-color"),"fill-translate":new R(D.paint_fill["fill-translate"],"fill-translate"),"fill-translate-anchor":new R(D.paint_fill["fill-translate-anchor"],"fill-translate-anchor"),"fill-pattern":new cn(D.paint_fill["fill-pattern"],"fill-pattern")})),Rx={get paint(){return Ox()},get layout(){return Vx()}};var $x=class extends ye{constructor(t,e){super(t,Rx,e)}recalculate(t,e){super.recalculate(t,e);let r=this.paint._values["fill-outline-color"];r.value.kind==="constant"&&r.value.value===void 0&&(this.paint._values["fill-outline-color"]=this.paint._values["fill-color"])}createBucket(t){return new zd(t)}queryRadius(){return Ka(this.paint.get("fill-translate"))}queryIntersectsFeature({queryGeometry:t,geometry:e,transform:r,pixelsToTileUnits:i}){return bd(Ja(t,this.paint.get("fill-translate"),this.paint.get("fill-translate-anchor"),-r.bearingInRadians,i),e)}isTileClipped(){return!0}},Wo=Et([{name:"a_pos",components:2,type:"Int16"},{name:"a_normal_ed",components:4,type:"Int16"}],4),Nx=Et([{name:"a_centroid",components:2,type:"Int16"}],4),Ux=Wo.members;Wo.size,Wo.alignment;var Ia=class Zo{constructor(){this.minX=1/0,this.maxX=-1/0,this.minY=1/0,this.maxY=-1/0}extend(e){return this.minX=Math.min(this.minX,e.x),this.minY=Math.min(this.minY,e.y),this.maxX=Math.max(this.maxX,e.x),this.maxY=Math.max(this.maxY,e.y),this}expandBy(e){return this.minX-=e,this.minY-=e,this.maxX+=e,this.maxY+=e,(this.minX>this.maxX||this.minY>this.maxY)&&(this.minX=1/0,this.maxX=-1/0,this.minY=1/0,this.maxY=-1/0),this}shrinkBy(e){return this.expandBy(-e)}map(e){let r=new Zo;return r.extend(e(new M(this.minX,this.minY))),r.extend(e(new M(this.maxX,this.minY))),r.extend(e(new M(this.minX,this.maxY))),r.extend(e(new M(this.maxX,this.maxY))),r}static fromPoints(e){let r=new Zo;for(let i of e)r.extend(i);return r}contains(e){return e.x>=this.minX&&e.x<=this.maxX&&e.y>=this.minY&&e.y<=this.maxY}empty(){return this.minX>this.maxX}width(){return this.maxX-this.minX}height(){return this.maxY-this.minY}covers(e){return!this.empty()&&!e.empty()&&e.minX>=this.minX&&e.maxX<=this.maxX&&e.minY>=this.minY&&e.maxY<=this.maxY}intersects(e){return!this.empty()&&!e.empty()&&e.minX<=this.maxX&&e.maxX>=this.minX&&e.minY<=this.maxY&&e.maxY>=this.minY}},A5=Ia.fromPoints([new M(0,0),new M(gt,gt)]);function Ho(t,e){return t.x===e.x&&(t.x<0||t.x>8192)||t.y===e.y&&(t.y<0||t.y>8192)}function dc(t){return t.every(e=>e.x<0)||t.every(e=>e.x>8192)||t.every(e=>e.y<0)||t.every(e=>e.y>8192)}var Fn=class{constructor(t,e,r,i,n){for(this.properties=Object.create(null),this.extent=r,this.type=0,this.id=void 0,this._pbf=t,this._geometry=-1,this._keys=i,this._values=n;t.pos>3,a===0)continue}if(a--,n===1)s+=t.readSVarint(),o+=t.readSVarint(),i&&r.push(i),i=[new M(s,o)];else if(n===2)s+=t.readSVarint(),o+=t.readSVarint(),i&&i.push(new M(s,o));else if(n===7)i&&i.push(i[0].clone());else throw Error(`unknown command ${n}`)}return i&&r.push(i),r}bbox(){if(this._geometry<0)throw Error("feature has no geometry");let t=this._pbf;t.pos=this._geometry;let e=t.readVarint()+t.pos,r=1,i=0,n=0,a=0,s=1/0,o=-1/0,l=1/0,u=-1/0;for(;t.pos>3,i===0)continue}if(i--,r===1||r===2)n+=t.readSVarint(),a+=t.readSVarint(),no&&(o=n),au&&(u=a);else if(r!==7)throw Error(`unknown command ${r}`)}return[s,l,o,u]}toGeoJSON(t,e,r){let i=this.extent*2**r,n=this.extent*t,a=this.extent*e,s=this.loadGeometry();function o(c){return[(c.x+n)*360/i-180,360/Math.PI*Math.atan(Math.exp((1-(c.y+a)*2/i)*Math.PI))-90]}function l(c){return c.map(o)}let u;if(this.type===1){let c=[];for(let f of s)c.push(f[0]);let p=l(c);u=c.length===1?{type:"Point",coordinates:p[0]}:{type:"MultiPoint",coordinates:p}}else if(this.type===2){let c=s.map(l);u=c.length===1?{type:"LineString",coordinates:c[0]}:{type:"MultiLineString",coordinates:c}}else if(this.type===3){let c=Ld(s),p=[];for(let f of c)p.push(f.map(l));u=p.length===1?{type:"Polygon",coordinates:p[0]}:{type:"MultiPolygon",coordinates:p}}else throw Error("unknown feature type");let h={type:"Feature",geometry:u,properties:this.properties};return this.id!=null&&(h.id=this.id),h}};Fn.types=["Unknown","Point","LineString","Polygon"];function Ld(t){let e=t.length;if(e<=1)return[t];let r=[],i,n;for(let a=0;a=this._features.length)throw Error("feature index out of bounds");this._pbf.pos=this._features[t];let e=this._pbf.readVarint()+this._pbf.pos;return new Fn(this._pbf,e,this.extent,this._keys,this._values)}};function Gx(t){let e=null,r=t.readVarint()+t.pos;for(;t.pos90||this.lat<-90)throw Error("Invalid LngLat latitude value: must be between -90 and 90")}wrap(){return new Gi(Z1(this.lng,-180,180),this.lat)}toArray(){return[this.lng,this.lat]}toString(){return`LngLat(${this.lng}, ${this.lat})`}distanceTo(e){let r=Math.PI/180,i=this.lat*r,n=e.lat*r,a=Math.sin(i)*Math.sin(n)+Math.cos(i)*Math.cos(n)*Math.cos((e.lng-this.lng)*r);return Vd*Math.acos(Math.min(a,1))}static convert(e){if(e instanceof Gi)return e;if(Array.isArray(e)&&(e.length===2||e.length===3))return new Gi(Number(e[0]),Number(e[1]));if(!Array.isArray(e)&&typeof e=="object"&&e)return new Gi(Number("lng"in e?e.lng:e.lon),Number(e.lat));throw Error("`LngLatLike` argument must be specified as a LngLat instance, an object {lng: , lat: }, an object {lon: , lat: }, or an array of [, ]")}},Od=2*Math.PI*Vd;function Rd(t){return Od*Math.cos(t*Math.PI/180)}function Xx(t){return(180+t)/360}function Yx(t){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+t*Math.PI/360)))/360}function Wx(t,e){return t/Rd(e)}function Zx(t){return t*360-180}function Ko(t){let e=180-t*360;return 360/Math.PI*Math.atan(Math.exp(e*Math.PI/180))-90}function Hx(t,e){return t*Rd(Ko(e))}function Kx(t){return 1/Math.cos(t*Math.PI/180)}var Hl=class $d{constructor(e,r,i=0){this.x=+e,this.y=+r,this.z=+i}static fromLngLat(e,r=0){let i=yc.convert(e);return new $d(Xx(i.lng),Yx(i.lat),Wx(r,i.lat))}toLngLat(){return new yc(Zx(this.x),Ko(this.y))}toAltitude(){return Hx(this.z,this.y)}meterInMercatorCoordinateUnits(){return 1/Od*Kx(Ko(this.y))}};function Jx(t,e,r){let i=1/(1<r2(r,e))}function e2(t,e){let r=Qx(gt/2,gt/2,e),i=Hl.fromLngLat(r).meterInMercatorCoordinateUnits(),n=(1<1&&e[0].x===e[e.length-1].x&&e[0].y===e[e.length-1].y;)e.pop();return e}function n2(t,e,r,i,n){let a=e.sub(r),s=i.sub(r),o=a.mag(),l=s.mag();if(o<1e-6||l<1e-6){t.push(r.clone());return}a._div(o),s._div(l);let u=a.x*s.x+a.y*s.y;if(Math.abs(u)>Math.cos(5*Math.PI/180)){t.push(r.clone());return}let h=.2,c=Math.min(n,o*h,l*h),p=r.add(a.mult(c)),f=r.add(s.mult(c)),d=Math.sqrt((1+u)/2),y=r.add(a.add(s)._unit()._mult(c/d)),m=p.sub(y).angleWith(f.sub(y)),g=Math.max(2,Math.ceil(Math.abs(m)/(Math.PI/6)-1e-6));for(let x=0;x<=g;x++)t.push(p.rotateAround(x/g*m,y))}var Gs=8192;function Bi(t,e,r,i,n,a,s,o){t.emplaceBack(e,r,Math.floor(i*Gs)*2+s,n*Gs*2,a*Gs*2,Math.round(o))}var Nd=class{constructor(t){this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map(e=>e.id),this.index=t.index,this.hasDependencies=!1,this.layoutVertexArray=new xg,this.centroidVertexArray=new yg,this.indexArray=new En,this.programConfigurations=new Dr(t.layers,t.zoom),this.segments=new ie,this.stateDependentLayerIds=this.layers.filter(e=>e.isStateDependent()).map(e=>e.id)}populate(t,e,r){this.features=[],this.hasDependencies=Fa("fill-extrusion",this.layers,e);let i=new st(this.zoom),n=this.layers[0],a=n.layout.get("fill-extrusion-rounded-corner-distance"),s=a>0?e2(a,r):0,o=n._featureFilter.needGeometry;for(let{feature:l,id:u,index:h,sourceLayerIndex:c}of t){let p=hi(l,o);if(!n._featureFilter.filter(i,p,r))continue;let f={id:u,sourceLayerIndex:c,index:h,geometry:t2(o?p.geometry:Fr(l),s),properties:l.properties,type:l.type,patterns:{}};this.hasDependencies?this.features.push(Wl("fill-extrusion",this.layers,f,{zoom:this.zoom},e)):this.addFeature(f,f.geometry,h,r,{},e.subdivisionGranularity),e.featureIndex.insert(l,f.geometry,h,c,this.index,!0)}}addFeatures({options:t,canonical:e,patternPositions:r}){for(let i of this.features){let{geometry:n}=i;this.addFeature(i,n,i.index,e,r,t.subdivisionGranularity)}}update(t,e,r){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(t,e,this.stateDependentLayers,{imagePositions:r})}isEmpty(){return this.layoutVertexArray.length===0&&this.centroidVertexArray.length===0}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(t){this.uploaded||(this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,Ux),this.centroidVertexBuffer=t.createVertexBuffer(this.centroidVertexArray,Nx.members,!0),this.indexBuffer=t.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(t),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.centroidVertexBuffer.destroy())}addFeature(t,e,r,i,n,a){for(let s of Na(e,500)){let o={x:0,y:0,sampleCount:0},l=this.layoutVertexArray.length;this.processPolygon(o,i,t,s,a);let u=this.layoutVertexArray.length-l,h=Math.floor(o.x/o.sampleCount),c=Math.floor(o.y/o.sampleCount);for(let p=0;p{Bi(u,h,c,0,0,1,1,0)},this.segments,this.layoutVertexArray,this.indexArray,l.verticesFlattened,l.indicesTriangles)}_generateSideFaces(t,e){let r=0;for(let i=1;iie.MAX_VERTEX_ARRAY_LENGTH&&(e.segment=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray));let s=n.sub(a)._perp()._unit(),o=a.dist(n);r+o>32768&&(r=0),Bi(this.layoutVertexArray,n.x,n.y,s.x,s.y,0,0,r),Bi(this.layoutVertexArray,n.x,n.y,s.x,s.y,0,1,r),r+=o,Bi(this.layoutVertexArray,a.x,a.y,s.x,s.y,0,0,r),Bi(this.layoutVertexArray,a.x,a.y,s.x,s.y,0,1,r);let l=e.segment.vertexLength;this.indexArray.emplaceBack(l,l+2,l+1),this.indexArray.emplaceBack(l+1,l+2,l+3),e.segment.vertexLength+=4,e.segment.primitiveLength+=2}}};function a2(t,e){for(let r=0;rmc||(mc=new Yt({"fill-extrusion-rounded-corner-distance":new R(D["layout_fill-extrusion"]["fill-extrusion-rounded-corner-distance"],"fill-extrusion-rounded-corner-distance")})),gc,o2=()=>gc||(gc=new Yt({"fill-extrusion-opacity":new R(D["paint_fill-extrusion"]["fill-extrusion-opacity"],"fill-extrusion-opacity"),"fill-extrusion-color":new U(D["paint_fill-extrusion"]["fill-extrusion-color"],"fill-extrusion-color"),"fill-extrusion-translate":new R(D["paint_fill-extrusion"]["fill-extrusion-translate"],"fill-extrusion-translate"),"fill-extrusion-translate-anchor":new R(D["paint_fill-extrusion"]["fill-extrusion-translate-anchor"],"fill-extrusion-translate-anchor"),"fill-extrusion-pattern":new cn(D["paint_fill-extrusion"]["fill-extrusion-pattern"],"fill-extrusion-pattern"),"fill-extrusion-height":new U(D["paint_fill-extrusion"]["fill-extrusion-height"],"fill-extrusion-height"),"fill-extrusion-base":new U(D["paint_fill-extrusion"]["fill-extrusion-base"],"fill-extrusion-base"),"fill-extrusion-vertical-gradient":new R(D["paint_fill-extrusion"]["fill-extrusion-vertical-gradient"],"fill-extrusion-vertical-gradient")})),l2={get paint(){return o2()},get layout(){return s2()}};var u2=class extends ye{constructor(t,e){super(t,l2,e)}createBucket(t){return new Nd(t)}queryRadius(){return Ka(this.paint.get("fill-extrusion-translate"))}is3D(){return!0}queryIntersectsFeature({queryGeometry:t,feature:e,featureState:r,geometry:i,transform:n,pixelsToTileUnits:a,pixelPosMatrix:s}){let o=Ja(t,this.paint.get("fill-extrusion-translate"),this.paint.get("fill-extrusion-translate-anchor"),-n.bearingInRadians,a),l=this.paint.get("fill-extrusion-height").evaluate(e,r),u=this.paint.get("fill-extrusion-base").evaluate(e,r),h=p2(o,s,0),c=c2(i,u,l,s),p=c[0],f=c[1];return h2(p,f,h)}};function Pi(t,e){return t.x*e.x+t.y*e.y}function xc(t,e){if(t.length===1){let r=0,i=e[r++],n;for(;!n||i.equals(n);)if(n=e[r++],!n)return 1/0;for(;r>1),s=r-e,o,l=t[e],u=t[e+1],h=t[r],c=t[r+1];for(let p=e+3;pn){o=p,n=f;continue}if(f===n){let d=Math.abs(p-a);di&&(o-e>3&&Jo(t,e,o,i),t[o+2]=n,r-o>3&&Jo(t,o,r,i))}function f2(t,e,r,i,n,a){let s=n-r,o=a-i;if(s!==0||o!==0){let l=((t-r)*s+(e-i)*o)/(s*s+o*o);l>1?(r=n,i=a):l>0&&(r+=s*l,i+=o*l)}return s=t-r,o=e-i,s*s+o*o}function Ct(t,e,r,i){let n={type:e,geom:r},a={id:t!=null?t:null,type:n.type,geometry:n.geom,tags:i,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};switch(n.type){case"Point":case"MultiPoint":zi(a,n.geom);break;case"LineString":zi(a,n.geom.points);break;case"Polygon":zi(a,n.geom[0].points);break;case"MultiLineString":for(let s of n.geom)zi(a,s.points);break;case"MultiPolygon":for(let s of n.geom)zi(a,s[0].points)}return a}function Kl(t){let e=t;t.points.length>64&&(e.points=new Float64Array(t.points))}function zi(t,e){for(let r=0;r1024)throw Error("GeometryCollection nesting exceeds supported depth: 1024");if(e.geometry.type==="GeometryCollection"){y2(t,e,e.geometry,r,i,n+1);return}if(!((o=e.geometry.coordinates)!=null&&o.length))return;let a=d2(e,r,i),s=(r.tolerance/((1<0&&(s+=i?(n*h-u*a)/2:Math.sqrt((u-n)**2+(h-a)**2)),n=u,a=h}let o=e.points.length-3;e.points[2]=1,r>0&&Jo(e.points,0,o,r),e.points[o+2]=1,Kl(e),e.size=Math.abs(s),e.start=0,e.end=e.size}function tu(t,e,r,i){for(let n=0;n1?1:r}function D2(t){return{type:"FeatureCollection",features:t.map(e=>Ca(e))}}function Ca(t){let e={type:"Feature",geometry:_2(t),properties:t.tags};return t.id!=null&&(e.id=t.id),e}function _2(t){let{type:e,geometry:r}=t;switch(e){case"Point":return{type:e,coordinates:Ud(r[0],r[1])};case"MultiPoint":return{type:e,coordinates:ea(r)};case"LineString":return{type:e,coordinates:ea(r.points)};case"MultiLineString":case"Polygon":return{type:e,coordinates:r.map(i=>ea(i.points))};case"MultiPolygon":return{type:e,coordinates:r.map(i=>i.map(n=>ea(n.points)))}}}function ea(t){let e=[];for(let r=0;r=r&&s=i)return null;let l=[];for(let u of t){let h=n===0?u.minX:u.minY,c=n===0?u.maxX:u.maxY;if(h>=r&&c=i))switch(u.type){case"Point":case"MultiPoint":A2(u,l,r,i,n);continue;case"LineString":S2(u,l,r,i,n,o);continue;case"MultiLineString":E2(u,l,r,i,n);continue;case"Polygon":F2(u,l,r,i,n);continue;case"MultiPolygon":T2(u,l,r,i,n);continue}}return l.length?l:null}function A2(t,e,r,i,n){let a=[];if(k2(t.geometry,a,r,i,n),!a.length)return;let s=a.length===3?"Point":"MultiPoint";e.push(Ct(t.id,s,a,t.tags))}function S2(t,e,r,i,n,a){let s=[];if(Gd(t.geometry,s,r,i,n,!1,a.lineMetrics),s.length){if(a.lineMetrics){for(let o of s)e.push(Ct(t.id,"LineString",o,t.tags));return}if(s.length>1){e.push(Ct(t.id,"MultiLineString",s,t.tags));return}e.push(Ct(t.id,"LineString",s[0],t.tags))}}function E2(t,e,r,i,n){let a=[];if(eu(t.geometry,a,r,i,n,!1),a.length){if(a.length===1){e.push(Ct(t.id,"LineString",a[0],t.tags));return}e.push(Ct(t.id,"MultiLineString",a,t.tags))}}function F2(t,e,r,i,n){let a=[];eu(t.geometry,a,r,i,n,!0),a.length&&e.push(Ct(t.id,"Polygon",a,t.tags))}function T2(t,e,r,i,n){let a=[];for(let s of t.geometry){let o=[];eu(s,o,r,i,n,!0),o.length&&a.push(o)}a.length&&e.push(Ct(t.id,"MultiPolygon",a,t.tags))}function k2(t,e,r,i,n){for(let a=0;a=r&&s<=i&&Kr(e,t[a],t[a+1],t[a+2])}}function Gd(t,e,r,i,n,a,s){let o=vc(t),l=n===0?I2:C2,u=t.start,h,c;for(let g=0;gr&&(c=l(o,x,v,w,_,r),s&&(o.start=u+h*c)):A>i?S=r&&(c=l(o,x,v,w,_,r),T=!0),S>i&&A<=i&&(c=l(o,x,v,w,_,i),T=!0),!a&&T&&(s&&(o.end=u+h*c),e.push(o),o=vc(t)),s&&(u+=h)}let p=t.points.length-3,f=t.points[p],d=t.points[p+1],y=t.points[p+2],m=n===0?f:d;m>=r&&m<=i&&Kr(o.points,f,d,y),p=o.points.length-3,a&&p>=3&&(o.points[p]!==o.points[0]||o.points[p+1]!==o.points[1])&&Kr(o.points,o.points[0],o.points[1],o.points[2]),o.points.length&&(Kl(o),e.push(o))}function vc(t){return{points:[],size:t.size,start:t.start,end:t.end}}function eu(t,e,r,i,n,a){for(let s of t)Gd(s,e,r,i,n,a,!1)}function Kr(t,e,r,i){t.push(e,r,i)}function I2(t,e,r,i,n,a){let s=(a-e)/(i-e);return Kr(t.points,a,r+(n-r)*s,1),s}function C2(t,e,r,i,n,a){let s=(a-r)/(n-r);return Kr(t.points,e+(i-e)*s,a,1),s}function ru(t,e){let r=e.buffer/e.extent,i=t,n=Me(t,1,-1-r,r,0,-1,2,e),a=Me(t,1,1-r,2+r,0,-1,2,e);return!n&&!a||(i=Me(t,1,-r,1+r,0,-1,2,e)||[],n&&(i=bc(n,1).concat(i)),a&&(i=i.concat(bc(a,-1)))),i}function bc(t,e){let r=[];for(let i of t)switch(i.type){case"Point":case"MultiPoint":{let n=M2(i.geometry,e);r.push(Ct(i.id,i.type,n,i.tags));continue}case"LineString":{let n=Xs(i.geometry,e);r.push(Ct(i.id,i.type,n,i.tags));continue}case"MultiLineString":case"Polygon":{let n=[];for(let a of i.geometry)n.push(Xs(a,e));r.push(Ct(i.id,i.type,n,i.tags));continue}case"MultiPolygon":{let n=[];for(let a of i.geometry){let s=[];for(let o of a)s.push(Xs(o,e));n.push(s)}r.push(Ct(i.id,i.type,n,i.tags));continue}}return r}function M2(t,e){let r=[];for(let i=0;io.id));t=t.filter(o=>!s.has(o.id))}if(i.add.size){let s=Jl({type:"FeatureCollection",features:Array.from(i.add.values())},r);s=ru(s,r),n=n.concat(s),t=t.concat(s)}}if(i.update.size){let a=new Map,s=[];for(let o of t)i.update.has(o.id)?a.set(o.id,[...a.get(o.id)||[],o]):s.push(o);for(let[o,l]of i.update){let u=a.get(o);if(!u||u.length===0)continue;let h=P2(u,l,r);n=n.concat(u,h),s=s.concat(h)}t=s}return{affected:n,source:t}}function P2(t,e,r){var a,s;let i=!!e.newGeometry,n=e.removeAllProperties||((a=e.removeProperties)==null?void 0:a.length)>0||((s=e.addOrUpdateProperties)==null?void 0:s.length)>0;if(i){let o=t[0],l=Jl({type:"FeatureCollection",features:[{type:"Feature",id:o.id,geometry:e.newGeometry,properties:n?wc(o.tags,e):o.tags}]},r);return l=ru(l,r),l}if(n){let o=[];for(let l of t){let u=Xe({},l);u.tags=wc(u.tags,e),o.push(u)}return o}return t}function wc(t,e){if(e.removeAllProperties)return{};let r=Xe({},t||{});if(e.removeProperties)for(let i of e.removeProperties)delete r[i];if(e.addOrUpdateProperties)for(let{key:i,value:n}of e.addOrUpdateProperties)r[i]=n;return r}function z2(t,e){var r,i;return t?{removeAll:t.removeAll,remove:new Set(t.remove||[]),add:new Map((r=t.add)==null?void 0:r.map(n=>[e.promoteId?n.properties[e.promoteId]:n.id,n])),update:new Map((i=t.update)==null?void 0:i.map(n=>[n.id,n]))}:{remove:new Set,add:new Map,update:new Map}}var Dc=[Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array],yt=new Uint32Array(96),L2=class Xd{static from(e){if(!e||e.byteLength===void 0||e.buffer)throw Error("Data must be an instance of ArrayBuffer or SharedArrayBuffer.");let[r,i]=new Uint8Array(e,0,2);if(r!==219)throw Error("Data does not appear to be in a KDBush format.");let n=i>>4;if(n!==1)throw Error(`Got v${n} data when expected v1.`);let a=Dc[i&15];if(!a)throw Error("Unrecognized array type.");let[s]=new Uint16Array(e,2,1),[o]=new Uint32Array(e,4,1);return new Xd(o,s,a,void 0,e)}constructor(e,r=64,i=Float64Array,n=ArrayBuffer,a){if(isNaN(e)||e<0)throw Error(`Unexpected numItems value: ${e}.`);this.numItems=+e,this.nodeSize=Math.min(Math.max(+r,2),65535),this.ArrayType=i,this.IndexArrayType=e<65536?Uint16Array:Uint32Array;let s=Dc.indexOf(this.ArrayType),o=e*2*this.ArrayType.BYTES_PER_ELEMENT,l=e*this.IndexArrayType.BYTES_PER_ELEMENT,u=(8-l%8)%8;if(s<0)throw Error(`Unexpected typed array class: ${i}.`);if(a)this.data=a,this.ids=new this.IndexArrayType(a,8,e),this.coords=new i(a,8+l+u,e*2),this._pos=e*2,this._finished=!0;else{let h=this.data=new n(8+o+l+u);this.ids=new this.IndexArrayType(h,8,e),this.coords=new i(h,8+l+u,e*2),this._pos=0,this._finished=!1,new Uint8Array(h,0,2).set([219,16+s]),new Uint16Array(h,2,1)[0]=r,new Uint32Array(h,4,1)[0]=e}}add(e,r){let i=this._pos>>1;return this.ids[i]=i,this.coords[this._pos++]=e,this.coords[this._pos++]=r,i}finish(){let e=this._pos>>1;if(e!==this.numItems)throw Error(`Added ${e} items when expected ${this.numItems}.`);return Qo(this.ids,this.coords,this.nodeSize,0,this.numItems-1,0),this._finished=!0,this}range(e,r,i,n){if(!this._finished)throw Error("Data not yet indexed - call index.finish().");let{ids:a,coords:s,nodeSize:o}=this;yt[0]=0,yt[1]=a.length-1,yt[2]=0;let l=3,u=[];for(;l>0;){let h=yt[--l],c=yt[--l],p=yt[--l];if(c-p<=o){for(let m=p;m<=c;m++){let g=s[2*m],x=s[2*m+1];g>=e&&g<=i&&x>=r&&x<=n&&u.push(a[m])}continue}let f=p+c>>1,d=s[2*f],y=s[2*f+1];d>=e&&d<=i&&y>=r&&y<=n&&u.push(a[f]),(h===0?e<=d:r<=y)&&(yt[l++]=p,yt[l++]=f-1,yt[l++]=1-h),(h===0?i>=d:n>=y)&&(yt[l++]=f+1,yt[l++]=c,yt[l++]=1-h)}return u}within(e,r,i){let n=[];return this.withinInto(e,r,i,n),n}withinInto(e,r,i,n){if(!this._finished)throw Error("Data not yet indexed - call index.finish().");let{ids:a,coords:s,nodeSize:o}=this;yt[0]=0,yt[1]=a.length-1,yt[2]=0;let l=3,u=0,h=i*i;for(;l>0;){let c=yt[--l],p=yt[--l],f=yt[--l];if(p-f<=o){for(let g=f;g<=p;g++)_c(s[2*g],s[2*g+1],e,r)<=h&&(n[u++]=a[g]);continue}let d=f+p>>1,y=s[2*d],m=s[2*d+1];_c(y,m,e,r)<=h&&(n[u++]=a[d]),(c===0?e-i<=y:r-i<=m)&&(yt[l++]=f,yt[l++]=d-1,yt[l++]=1-c),(c===0?e+i>=y:r+i>=m)&&(yt[l++]=d+1,yt[l++]=p,yt[l++]=1-c)}return u}};function Qo(t,e,r,i,n,a){if(n-i<=r)return;let s=i+n>>1;Yd(t,e,s,i,n,a),Qo(t,e,r,i,s-1,1-a),Qo(t,e,r,s+1,n,1-a)}function Yd(t,e,r,i,n,a){for(;n>i;){if(n-i>600){let u=n-i+1,h=r-i+1,c=Math.log(u),p=.5*Math.exp(2*c/3),f=.5*Math.sqrt(c*p*(u-p)/u)*(h-u/2<0?-1:1);Yd(t,e,r,Math.max(i,Math.floor(r-h*p/u+f)),Math.min(n,Math.floor(r+(u-h)*p/u+f)),a)}let s=e[2*r+a],o=i,l=n;for(Li(t,e,i,r),e[2*n+a]>s&&Li(t,e,i,n);os;)l--}e[2*i+a]===s?Li(t,e,i,l):(l++,Li(t,e,l,n)),l<=r&&(i=l+1),r<=l&&(n=l-1)}}function Li(t,e,r,i){Ys(t,r,i),Ys(e,2*r,2*i),Ys(e,2*r+1,2*i+1)}function Ys(t,e,r){let i=t[e];t[e]=t[r],t[r]=i}function _c(t,e,r,i){let n=t-r,a=e-i;return n*n+a*a}var tl={minZoom:0,maxZoom:16,minPoints:2,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:t=>t},V2=class{constructor(t){this.options=Object.assign(Object.create(tl),t),this.trees=Array(this.options.maxZoom+1),this.stride=this.options.reduce?7:6,this.clusterProps=[],this.points=[]}load(t){let e=[];for(let r of t){if(!r.geometry)continue;let[i,n]=r.geometry.coordinates,[a,s]=[Zr(i),Hr(n)],o={id:r.id,type:"Point",geometry:[a,s],tags:r.properties};e.push(o)}this.createIndex(e)}initialize(t){let e=[];for(let r of t)r.type==="Point"&&e.push(r);this.createIndex(e)}updateIndex(t,e,r){this.options=Object.assign(Object.create(tl),r.clusterOptions),this.initialize(t)}createIndex(t){let{log:e,minZoom:r,maxZoom:i}=this.options;e&&console.time("total time");let n=`prepare ${t.length} points`;e&&console.time(n),this.points=t;let a=[];for(let o=0;o=r;o--){let l=Date.now();s=this.trees[o]=this.createTree(this.cluster(s,o)),e&&console.log("z%d: %d clusters in %dms",o,s.numItems,Date.now()-l)}e&&console.timeEnd("total time")}getClusters(t,e){return this.getClustersInternal(t,e).map(r=>Ca(r))}getClustersInternal(t,e){let r=((t[0]+180)%360+360)%360-180,i=Math.max(-90,Math.min(90,t[1])),n=t[2]===180?180:((t[2]+180)%360+360)%360-180,a=Math.max(-90,Math.min(90,t[3]));if(t[2]-t[0]>=360)r=-180,n=180;else if(r>n){let h=this.getClustersInternal([r,i,180,a],e),c=this.getClustersInternal([-180,i,n,a],e);return h.concat(c)}let s=this.trees[this.limitZoom(e)],o=s.range(Zr(r),Hr(a),Zr(n),Hr(i)),l=s.flatData,u=[];for(let h of o){let c=this.stride*h;u.push(l[c+5]>1?O2(l,c,this.clusterProps):this.points[l[c+3]])}return u}getChildren(t){let e=this.getOriginId(t),r=this.getOriginZoom(t),i=Error("No cluster with the specified id: "+t),n=this.trees[r];if(!n)throw i;let a=n.flatData;if(e*this.stride>=a.length)throw i;let s=this.options.radius/(this.options.extent*2**(r-1)),o=a[e*this.stride],l=a[e*this.stride+1],u=n.within(o,l,s),h=[];for(let c of u){let p=c*this.stride;a[p+4]===t&&h.push(a[p+5]>1?R2(a,p,this.clusterProps):Ca(this.points[a[p+3]]))}if(h.length===0)throw i;return h}getLeaves(t,e,r){e||(e=10),r||(r=0);let i=[];return this.appendLeaves(i,t,e,r,0),i}getTile(t,e,r){let i=this.trees[this.limitZoom(t)];if(!i)return null;let n=2**t,{extent:a,radius:s}=this.options,o=s/a,l=(r-o)/n,u=(r+1+o)/n,h={transformed:!0,features:[],source:null,x:e,y:r,z:t};return this.addTileFeatures(i.range((e-o)/n,l,(e+1+o)/n,u),i.flatData,e,r,n,h),e===0&&this.addTileFeatures(i.range(1-o/n,l,1,u),i.flatData,n,r,n,h),e===n-1&&this.addTileFeatures(i.range(0,l,o/n,u),i.flatData,-1,r,n,h),h}getClusterExpansionZoom(t){return this.getOriginZoom(t)}appendLeaves(t,e,r,i,n){let a=this.getChildren(e);for(let s of a){let o=s.properties;if(o!=null&&o.cluster?n+o.point_count<=i?n+=o.point_count:n=this.appendLeaves(t,o.cluster_id,r,i,n):n1,u,h,c;if(l)u=iu(e,o,this.clusterProps),h=e[o],c=e[o+1];else{let d=this.points[e[o+3]];u=d.tags,[h,c]=d.geometry}let p={type:1,geometry:[[Math.round(this.options.extent*(h*n-r)),Math.round(this.options.extent*(c*n-i))]],tags:u},f;f=l||this.options.generateId?e[o+3]:this.points[e[o+3]].id,f!==void 0&&(p.id=f),a.features.push(p)}}limitZoom(t){return Math.max(this.options.minZoom,Math.min(Math.floor(+t),this.options.maxZoom+1))}cluster(t,e){let{radius:r,extent:i,reduce:n,minPoints:a}=this.options,s=r/(i*2**e),o=t.flatData,l=[],u=this.stride;for(let h=0;he&&(y+=o[g+5])}if(y>d&&y>=a){let m=c*d,g=p*d,x,v=-1,b=((h/u|0)<<5)+(e+1)+this.points.length;for(let w of f){let _=w*u;if(o[_+2]<=e)continue;o[_+2]=e;let A=o[_+5];m+=o[_]*A,g+=o[_+1]*A,o[_+4]=b,n&&(x||(x=this.map(o,h,!0),v=this.clusterProps.length,this.clusterProps.push(x)),n(x,this.map(o,_)))}o[h+4]=b,l.push(m/y,g/y,1/0,b,-1,y),n&&l.push(v)}else{for(let m=0;m1)for(let m of f){let g=m*u;if(!(o[g+2]<=e)){o[g+2]=e;for(let x=0;x>5}getOriginZoom(t){return(t-this.points.length)%32}map(t,e,r){if(t[e+5]>1){let a=this.clusterProps[t[e+6]];return r?Object.assign({},a):a}let i=this.points[t[e+3]].tags,n=this.options.map(i);return r&&n===i?Object.assign({},n):n}};function O2(t,e,r){return{id:t[e+3],type:"Point",tags:iu(t,e,r),geometry:[t[e],t[e+1]]}}function R2(t,e,r){return{type:"Feature",id:t[e+3],properties:iu(t,e,r),geometry:{type:"Point",coordinates:[qd(t[e]),jd(t[e+1])]}}}function iu(t,e,r){let i=t[e+5],n=i>=1e4?`${Math.round(i/1e3)}k`:i>=1e3?`${Math.round(i/100)/10}k`:i,a=t[e+6],s=a===-1?{}:Object.assign({},r[a]);return Object.assign(s,{cluster:!0,cluster_id:t[e+3],point_count:i,point_count_abbreviated:n})}var Wd="geojsonvt_clip_start",Zd="geojsonvt_clip_end";function Ac(t,e,r,i,n){let a=e===n.maxZoom?0:n.tolerance/((1<0&&e.size<(n?s:i)){r.numPoints+=e.points.length/3;return}let o=[];for(let l=0;ls)&&(r.numSimplified++,o.push(e.points[l],e.points[l+1])),r.numPoints++;n&&G2(o,a),t.push(o)}function G2(t,e){let r=0;for(let i=0,n=t.length,a=n-2;i0===e)for(let i=0,n=t.length;i1&&(console.log("invalidating tiles"),console.time("invalidating")),this.invalidateTiles(e),r.debug>1&&console.timeEnd("invalidating");let[i,n,a]=[0,0,0],s=Ac(t,i,n,a,r);s.source=t;let o=ra(i,n,a);if(this.tiles[o]=s,this.tileCoords.push({z:i,x:n,y:a,id:o}),r.debug){let l=`z${i}`;this.stats[l]=(this.stats[l]||0)+1,this.total++}}getClusterExpansionZoom(t){return null}getChildren(t){return null}getLeaves(t,e,r){return null}getTile(t,e,r){let{extent:i,debug:n}=this.options,a=1<1&&console.log("drilling down to z%d-%d-%d",t,e,r);let o=t,l=e,u=r,h;for(;!h&&o>0;)o--,l>>=1,u>>=1,h=this.tiles[ra(o,l,u)];return!(h!=null&&h.source)||(n>1&&(console.log("found parent tile z%d-%d-%d",o,l,u),console.time("drilling down")),this.splitTile(h.source,o,l,u,t,e,r),n>1&&console.timeEnd("drilling down"),!this.tiles[s])?null:Sc(this.tiles[s],i)}splitTile(t,e,r,i,n,a,s){let o=[t,e,r,i],l=this.options,u=l.debug;for(;o.length;){i=o.pop(),r=o.pop(),e=o.pop(),t=o.pop();let h=1<1&&console.time("creation"),p=this.tiles[c]=Ac(t,e,r,i,l),this.tileCoords.push({z:e,x:r,y:i,id:c}),u)){u>1&&(console.log("tile z%d-%d-%d (features: %d, points: %d, simplified: %d)",e,r,i,p.numFeatures,p.numPoints,p.numSimplified),console.timeEnd("creation"));let A=`z${e}`;this.stats[A]=(this.stats[A]||0)+1,this.total++}if(p.source=t,n==null){if(e===l.indexMaxZoom||p.numPoints<=l.indexMaxPoints)continue}else{if(e===l.maxZoom||e===n)continue;if(n!=null){let A=n-e;if(r!==a>>A||i!==s>>A)continue}}if(p.source=null,!t.length)continue;u>1&&console.time("clipping");let f=.5*l.buffer/l.extent,d=.5-f,y=.5+f,m=1+f,g=null,x=null,v=null,b=null,w=Me(t,h,r-f,r+y,0,p.minX,p.maxX,l),_=Me(t,h,r+d,r+m,0,p.minX,p.maxX,l);w&&(g=Me(w,h,i-f,i+y,1,p.minY,p.maxY,l),x=Me(w,h,i+d,i+m,1,p.minY,p.maxY,l)),_&&(v=Me(_,h,i-f,i+y,1,p.minY,p.maxY,l),b=Me(_,h,i+d,i+m,1,p.minY,p.maxY,l)),u>1&&console.timeEnd("clipping"),o.push(g||[],e+1,r*2,i*2),o.push(x||[],e+1,r*2,i*2+1),o.push(v||[],e+1,r*2+1,i*2),o.push(b||[],e+1,r*2+1,i*2+1)}}invalidateTiles(t){if(!t.length)return;let e=this.options,{debug:r}=e,i=1/0,n=-1/0,a=1/0,s=-1/0;for(let u of t)i=Math.min(i,u.minX),n=Math.max(n,u.maxX),a=Math.min(a,u.minY),s=Math.max(s,u.maxY);let o=e.buffer/e.extent,l=new Set;for(let u in this.tiles){let h=this.tiles[u],c=1<=f||s=y)continue;let m=!1;for(let g of t)if(g.maxX>=p&&g.minX=d&&g.minY1&&console.log("invalidate tile z%d-%d-%d (features: %d, points: %d, simplified: %d)",h.z,h.x,h.y,h.numFeatures,h.numPoints,h.numSimplified);let g=`z${h.z}`;this.stats[g]=(this.stats[g]||0)-1,this.total--}delete this.tiles[u],l.add(u)}}l.size&&(this.tileCoords=this.tileCoords.filter(u=>!l.has(u.id)))}};function ra(t,e,r){return((1<24)throw Error("maxZoom should be in the 0-24 range");if(e.promoteId&&e.generateId)throw Error("promoteId and generateId cannot be used together.");let i=Jl(t,e);r&&(console.timeEnd("preprocess data"),console.log("index: maxZoom: %d, maxPoints: %d",e.indexMaxZoom,e.indexMaxPoints),console.time("generate tiles")),i=ru(i,e),e.updateable&&(this.source=i),this.initializeIndex(i,e)}initializeIndex(t,e){this.tileIndex=e.cluster?new V2(e.clusterOptions):new W2(e),t.length&&this.tileIndex.initialize(t)}getTile(t,e,r){return t=+t,e=+e,r=+r,t<0||t>24?null:this.tileIndex.getTile(t,e,r)}updateData(t,e){let r=this.options;if(!r.updateable)throw Error("to update tile geojson `updateable` option must be set to true");let{affected:i,source:n}=B2(this.source,t,r);e&&({affected:i,source:n}=this.filterUpdate(n,i,e)),i.length&&(this.source=n,this.tileIndex.updateIndex(n,i,r))}filterUpdate(t,e,r){let i=new Set;for(let n of t)n.id!=null&&(r(Ca(n))||(e.push(n),i.add(n.id)));return t=t.filter(n=>!i.has(n.id)),{affected:e,source:t}}getData(){if(!this.options.updateable)throw Error("to retrieve data the `updateable` option must be set to true");return D2(this.source)}updateClusterOptions(t,e){let r=this.options.cluster;if(this.options.cluster=t,this.options.clusterOptions=e,r==t){this.tileIndex.updateIndex(this.source,[],this.options);return}this.initializeIndex(this.source,this.options)}getClusterExpansionZoom(t){return this.tileIndex.getClusterExpansionZoom(t)}getClusterChildren(t){return this.tileIndex.getChildren(t)}getClusterLeaves(t,e,r){return this.tileIndex.getLeaves(t,e,r)}},el=Et([{name:"a_pos_normal",components:2,type:"Int16"},{name:"a_data",components:4,type:"Uint8"}],4),H2=el.members;el.size,el.alignment;var rl=Et([{name:"a_uv_x",components:1,type:"Float32"},{name:"a_split_index",components:1,type:"Float32"}]),K2=rl.members;rl.size,rl.alignment;var J2=Math.cos(75/2*(Math.PI/180)),Jd=1/2,Ec=2**14/Jd,Qd=class{constructor(t){this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map(e=>e.id),this.index=t.index,this.hasDependencies=!1,this.patternFeatures=[],this.lineClipsArray=[],this.gradients={};for(let e of this.layers)this.gradients[e.id]={};this.layoutVertexArray=new vg,this.layoutVertexArray2=new bg,this.indexArray=new En,this.programConfigurations=new Dr(t.layers,t.zoom),this.segments=new ie,this.maxLineLength=0,this.stateDependentLayerIds=this.layers.filter(e=>e.isStateDependent()).map(e=>e.id)}populate(t,e,r){this.hasDependencies=Fa("line",this.layers,e)||this.hasLineDasharray(this.layers);let i=this.layers[0].layout.get("line-sort-key"),n=!i.isConstant(),a=[],s=new st(this.zoom),o=this.layers[0]._featureFilter.needGeometry;for(let{feature:l,id:u,index:h,sourceLayerIndex:c}of t){let p=hi(l,o);if(!this.layers[0]._featureFilter.filter(s,p,r))continue;let f=n?i.evaluate(p,{},r):void 0,d={id:u,properties:l.properties,type:l.type,sourceLayerIndex:c,index:h,geometry:o?p.geometry:Fr(l),patterns:{},dashes:{},sortKey:f};a.push(d)}n&&a.sort((l,u)=>l.sortKey-u.sortKey);for(let l of a){let{geometry:u,index:h,sourceLayerIndex:c}=l;this.hasDependencies?(Fa("line",this.layers,e)?Wl("line",this.layers,l,{zoom:this.zoom},e):this.hasLineDasharray(this.layers)&&this.addLineDashDependencies(this.layers,l,this.zoom,e),this.patternFeatures.push(l)):this.addFeature(l,u,h,r,{},{},e.subdivisionGranularity);let p=t[h].feature;e.featureIndex.insert(p,u,h,c,this.index)}}update(t,e,r,i){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(t,e,this.stateDependentLayers,{imagePositions:r,dashPositions:i})}addFeatures({options:t,canonical:e,patternPositions:r,dashPositions:i}){for(let n of this.patternFeatures)this.addFeature(n,n.geometry,n.index,e,r,i,t.subdivisionGranularity)}isEmpty(){return this.layoutVertexArray.length===0}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(t){this.uploaded||(this.layoutVertexArray2.length!==0&&(this.layoutVertexBuffer2=t.createVertexBuffer(this.layoutVertexArray2,K2)),this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,H2),this.indexBuffer=t.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(t),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())}lineFeatureClips(t){if(t.properties&&Object.hasOwn(t.properties,"geojsonvt_clip_start")&&Object.hasOwn(t.properties,"geojsonvt_clip_end"))return{start:+t.properties[Wd],end:+t.properties[Zd]}}addFeature(t,e,r,i,n,a,s){let o=this.layers[0].layout,l=o.get("line-join").evaluate(t,{}),u=o.get("line-cap").evaluate(t,{}),h=o.get("line-miter-limit").evaluate(t,{}),c=o.get("line-round-limit").evaluate(t,{});this.lineClips=this.lineFeatureClips(t);for(let p of e)this.addLine(p,t,l,u,h,c,i,s);this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,t,r,{imagePositions:n,dashPositions:a,canonical:i})}addLine(t,e,r,i,n,a,s,o){this.distance=0,this.scaledDistance=0,this.totalDistance=0;let l=s?o.line.getGranularityForZoomLevel(s.z):1;if(t=yr(t,l),this.lineClips){this.lineClipsArray.push(this.lineClips);for(let v=0;v=2&&t[h-1].equals(t[h-2]);)h--;let c=0;for(;c0;if(T&&v>c){let V=d.dist(y);if(V>2*p){let F=d.sub(d.sub(y)._mult(p/V)._round());this.updateDistance(y,F),this.addCurrentVertex(F,g,0,0,f),y=F}}let O=y&&m,B=O?r:u?"butt":i;if(O&&B==="round"&&(An&&(B="bevel"),B==="bevel"&&(A>2&&(B="flipbevel"),A100)b=x.mult(-1);else{let V=A*g.add(x).mag()/g.sub(x).mag();b._perp()._mult(V*(L?-1:1))}this.addCurrentVertex(d,b,0,0,f),this.addCurrentVertex(d,b.mult(-1),0,0,f)}else if(B==="bevel"||B==="fakeround"){let V=-Math.sqrt(A*A-1),F=L?V:0,$=L?0:V;if(y&&this.addCurrentVertex(d,g,F,$,f),B==="fakeround"){let G=Math.round(S*180/Math.PI/20);for(let P=1;P2*p){let F=d.add(m.sub(d)._mult(p/V)._round());this.updateDistance(d,F),this.addCurrentVertex(F,x,0,0,f),d=F}}}}addCurrentVertex(t,e,r,i,n,a=!1){let s=e.x+e.y*r,o=e.y-e.x*r,l=-e.x+e.y*i,u=-e.y-e.x*i;this.addHalfVertex(t,s,o,a,!1,r,n),this.addHalfVertex(t,l,u,a,!0,-i,n),this.distance>Ec/2&&this.totalDistance===0&&(this.distance=0,this.updateScaledDistance(),this.addCurrentVertex(t,e,r,i,n,a))}addHalfVertex({x:t,y:e},r,i,n,a,s,o){let l=(this.lineClips?this.scaledDistance*(Ec-1):this.scaledDistance)*Jd;if(this.layoutVertexArray.emplaceBack((t<<1)+ +!!n,(e<<1)+ +!!a,Math.round(63*r)+128,Math.round(63*i)+128,(s===0?0:s<0?-1:1)+1|(l&63)<<2,l>>6),this.lineClips){let h=(this.scaledDistance-this.lineClips.start)/(this.lineClips.end-this.lineClips.start);this.layoutVertexArray2.emplaceBack(h,this.lineClipsArray.length)}let u=o.vertexLength++;this.e1>=0&&this.e2>=0&&(this.indexArray.emplaceBack(this.e1,u,this.e2),o.primitiveLength++),a?this.e2=u:this.e1=u}updateScaledDistance(){this.scaledDistance=this.lineClips?this.lineClips.start+(this.lineClips.end-this.lineClips.start)*this.distance/this.totalDistance:this.distance}updateDistance(t,e){this.distance+=t.dist(e),this.updateScaledDistance()}hasLineDasharray(t){for(let e of t){let r=e.paint.get("line-dasharray");if(r&&!r.isConstant())return!0}return!1}addLineDashDependencies(t,e,r,i){for(let n of t){let a=n.paint.get("line-dasharray");if(!a||a.value.kind==="constant")continue;let s=n.layout.get("line-cap").evaluate(e,{})==="round",o={dasharray:a.value.evaluate({zoom:r-1},e,{}),round:s},l={dasharray:a.value.evaluate({zoom:r},e,{}),round:s},u={dasharray:a.value.evaluate({zoom:r+1},e,{}),round:s},h=`${o.dasharray.join(",")},${o.round}`,c=`${l.dasharray.join(",")},${l.round}`,p=`${u.dasharray.join(",")},${u.round}`;i.dashDependencies[h]=o,i.dashDependencies[c]=l,i.dashDependencies[p]=u,e.dashes[n.id]={min:h,mid:c,max:p}}}};C("LineBucket",Qd,{omit:["layers","patternFeatures"]});var Fc,Q2=()=>Fc||(Fc=new Yt({"line-cap":new U(D.layout_line["line-cap"],"line-cap"),"line-join":new U(D.layout_line["line-join"],"line-join"),"line-miter-limit":new U(D.layout_line["line-miter-limit"],"line-miter-limit"),"line-round-limit":new U(D.layout_line["line-round-limit"],"line-round-limit"),"line-sort-key":new U(D.layout_line["line-sort-key"],"line-sort-key")})),Tc,tv=()=>Tc||(Tc=new Yt({"line-opacity":new U(D.paint_line["line-opacity"],"line-opacity"),"line-layer-opacity":new R(D.paint_line["line-layer-opacity"],"line-layer-opacity"),"line-color":new U(D.paint_line["line-color"],"line-color"),"line-translate":new R(D.paint_line["line-translate"],"line-translate"),"line-translate-anchor":new R(D.paint_line["line-translate-anchor"],"line-translate-anchor"),"line-width":new U(D.paint_line["line-width"],"line-width"),"line-gap-width":new U(D.paint_line["line-gap-width"],"line-gap-width"),"line-offset":new U(D.paint_line["line-offset"],"line-offset"),"line-blur":new U(D.paint_line["line-blur"],"line-blur"),"line-dasharray":new cn(D.paint_line["line-dasharray"],"line-dasharray"),"line-pattern":new cn(D.paint_line["line-pattern"],"line-pattern"),"line-gradient":new Za(D.paint_line["line-gradient"],"line-gradient")})),kc={get paint(){return tv()},get layout(){return Q2()}},ev=class extends U{possiblyEvaluate(t,e){return e=new st(Math.floor(e.zoom),{now:e.now,fadeDuration:e.fadeDuration,zoomHistory:e.zoomHistory,transition:e.transition}),super.possiblyEvaluate(t,e)}evaluate(t,e,r,i){return e=Xt({},e,{zoom:Math.floor(e.zoom)}),super.evaluate(t,e,r,i)}},ia;var rv=class extends ye{constructor(t,e){super(t,kc,e),this.gradientVersion=0,ia||(ia=new ev(kc.paint.properties["line-width"].specification,"line-floorwidth"),ia.useIntegerZoom=!0)}_handleSpecialPaintPropertyUpdate(t){if(t==="line-gradient"){let e=this.gradientExpression();this.stepInterpolant=Im(e)?e._styleExpression.expression instanceof Dl:!1,this.gradientVersion=(this.gradientVersion+1)%(2**53-1)}}gradientExpression(){return this._transitionablePaint._values["line-gradient"].value.expression}recalculate(t,e){super.recalculate(t,e),this.paint._values["line-floorwidth"]=ia.possiblyEvaluate(this._transitioningPaint._values["line-width"].value,t)}createBucket(t){return new Qd(t)}queryRadius(t){let e=t,r=Ic(Wr("line-width",this,e),Wr("line-gap-width",this,e)),i=Wr("line-offset",this,e);return r/2+Math.abs(i)+Ka(this.paint.get("line-translate"))}queryIntersectsFeature({queryGeometry:t,feature:e,featureState:r,geometry:i,transform:n,pixelsToTileUnits:a}){let s=Ja(t,this.paint.get("line-translate"),this.paint.get("line-translate-anchor"),-n.bearingInRadians,a),o=a/2*Ic(this.paint.get("line-width").evaluate(e,r),this.paint.get("line-gap-width").evaluate(e,r)),l=this.paint.get("line-offset").evaluate(e,r);return l&&(i=Ug(i,l*a)),Lg(s,i,o)}isTileClipped(){return!0}};function Ic(t,e){return e>0?e+2*t:t}var iv=Et([{name:"a_pos_offset",components:4,type:"Int16"},{name:"a_data",components:4,type:"Uint16"},{name:"a_pixeloffset",components:4,type:"Int16"},{name:"a_height_offset",components:1,type:"Float32"}],4),nv=Et([{name:"a_projected_pos",components:3,type:"Float32"}],4);Et([{name:"a_fade_opacity",components:1,type:"Uint32"}],4);var av=Et([{name:"a_placed",components:2,type:"Uint8"},{name:"a_shift",components:2,type:"Float32"},{name:"a_box_real",components:2,type:"Int16"}]);Et([{type:"Int16",name:"anchorPointX"},{type:"Int16",name:"anchorPointY"},{type:"Int16",name:"x1"},{type:"Int16",name:"y1"},{type:"Int16",name:"x2"},{type:"Int16",name:"y2"},{type:"Uint32",name:"featureIndex"},{type:"Uint16",name:"sourceLayerIndex"},{type:"Uint16",name:"bucketIndex"}]);var Cc=Et([{name:"a_pos",components:2,type:"Int16"},{name:"a_anchor_pos",components:2,type:"Int16"},{name:"a_extrude",components:2,type:"Int16"}],4),S5=Et([{name:"a_pos",components:2,type:"Float32"},{name:"a_radius",components:1,type:"Float32"},{name:"a_flags",components:2,type:"Int16"}],4);Et([{name:"triangle",components:3,type:"Uint16"}]),Et([{type:"Int16",name:"anchorX"},{type:"Int16",name:"anchorY"},{type:"Uint16",name:"glyphStartIndex"},{type:"Uint16",name:"numGlyphs"},{type:"Uint32",name:"vertexStartIndex"},{type:"Uint32",name:"lineStartIndex"},{type:"Uint32",name:"lineLength"},{type:"Uint16",name:"segment"},{type:"Uint16",name:"lowerSize"},{type:"Uint16",name:"upperSize"},{type:"Float32",name:"lineOffsetX"},{type:"Float32",name:"lineOffsetY"},{type:"Uint8",name:"writingMode"},{type:"Uint8",name:"placedOrientation"},{type:"Uint8",name:"hidden"},{type:"Uint32",name:"crossTileID"},{type:"Int16",name:"associatedIconIndex"},{type:"Float32",name:"heightOffset"}]),Et([{type:"Int16",name:"anchorX"},{type:"Int16",name:"anchorY"},{type:"Int16",name:"rightJustifiedTextSymbolIndex"},{type:"Int16",name:"centerJustifiedTextSymbolIndex"},{type:"Int16",name:"leftJustifiedTextSymbolIndex"},{type:"Int16",name:"verticalPlacedTextSymbolIndex"},{type:"Int16",name:"placedIconSymbolIndex"},{type:"Int16",name:"verticalPlacedIconSymbolIndex"},{type:"Uint16",name:"key"},{type:"Uint16",name:"textBoxStartIndex"},{type:"Uint16",name:"textBoxEndIndex"},{type:"Uint16",name:"verticalTextBoxStartIndex"},{type:"Uint16",name:"verticalTextBoxEndIndex"},{type:"Uint16",name:"iconBoxStartIndex"},{type:"Uint16",name:"iconBoxEndIndex"},{type:"Uint16",name:"verticalIconBoxStartIndex"},{type:"Uint16",name:"verticalIconBoxEndIndex"},{type:"Uint16",name:"featureIndex"},{type:"Uint16",name:"numHorizontalGlyphVertices"},{type:"Uint16",name:"numVerticalGlyphVertices"},{type:"Uint16",name:"numIconVertices"},{type:"Uint16",name:"numVerticalIconVertices"},{type:"Uint16",name:"useRuntimeCollisionCircles"},{type:"Uint32",name:"crossTileID"},{type:"Float32",name:"textBoxScale"},{type:"Float32",name:"collisionCircleDiameter"},{type:"Uint16",name:"textAnchorOffsetStartIndex"},{type:"Uint16",name:"textAnchorOffsetEndIndex"},{type:"Float32",name:"heightOffset"}]),Et([{type:"Float32",name:"offsetX"}]),Et([{type:"Int16",name:"x"},{type:"Int16",name:"y"},{type:"Int16",name:"tileUnitDistanceFromAnchor"}]),Et([{type:"Uint16",name:"textAnchor"},{type:"Float32",components:2,name:"textOffset"}]);var Ar=new class{constructor(){this.TIMEOUT=5e3,this.applyArabicShaping=null,this.processBidirectionalText=null,this.processStyledBidirectionalText=null,this.pluginStatus="unavailable",this.pluginURL=null,this.loadScriptResolve=()=>{}}setState(t){this.pluginStatus=t.pluginStatus,this.pluginURL=t.pluginURL}getState(){return{pluginStatus:this.pluginStatus,pluginURL:this.pluginURL}}setMethods(t){if(Ar.isParsed())throw Error("RTL text plugin already registered.");this.applyArabicShaping=t.applyArabicShaping,this.processBidirectionalText=t.processBidirectionalText,this.processStyledBidirectionalText=t.processStyledBidirectionalText,this.loadScriptResolve()}isParsed(){return this.applyArabicShaping!=null&&this.processBidirectionalText!=null&&this.processStyledBidirectionalText!=null}getRTLTextPluginStatus(){return this.pluginStatus}syncState(t,e){return et(this,null,function*(){if(this.isParsed())return this.getState();if(t.pluginStatus!=="loading")return this.setState(t),t;let r=t.pluginURL,i=new Promise(a=>{this.loadScriptResolve=a}),n=new Promise(a=>setTimeout(()=>a(),this.TIMEOUT));if(yield e(r),yield Promise.race([i,n]),this.isParsed()){let a={pluginStatus:"loaded",pluginURL:r};return this.setState(a),a}throw this.setState({pluginStatus:"error",pluginURL:""}),Error(`RTL Text Plugin failed to import scripts from ${r}`)})}};function sv(t){return/[\\u0600-\\u0604\\u0606-\\u060B\\u060D-\\u061A\\u061C-\\u061E\\u0620-\\u063F\\u0641-\\u064A\\u0656-\\u066F\\u0671-\\u06DC\\u06DE-\\u070D\\u070F-\\u074A\\u074D-\\u077F\\u07C0-\\u07FA\\u07FD-\\u07FF\\u0840-\\u085B\\u085E\\u0860-\\u086A\\u0870-\\u0891\\u0897-\\u08E1\\u08E3-\\u08FF\\u1800\\u1801\\u1804\\u1806-\\u1819\\u1820-\\u1878\\u1880-\\u18AA\\uA840-\\uA877\\uFB50-\\uFD3D\\uFD40-\\uFDCF\\uFDF0-\\uFDFF\\uFE70-\\uFE74\\uFE76-\\uFEFC]|\\uD802[\\uDEC0-\\uDEE6\\uDEEB-\\uDEF6\\uDF80-\\uDF91\\uDF99-\\uDF9C\\uDFA9-\\uDFAF]|\\uD803[\\uDD00-\\uDD27\\uDD30-\\uDD39\\uDE60-\\uDE7E\\uDEC2-\\uDEC7\\uDED0-\\uDED8\\uDEFA-\\uDEFF\\uDF30-\\uDF59\\uDF70-\\uDF89\\uDFB0-\\uDFCB]|\\uD805[\\uDE60-\\uDE6C]|\\uD82F[\\uDC00-\\uDC6A\\uDC70-\\uDC7C\\uDC80-\\uDC88\\uDC90-\\uDC99\\uDC9C-\\uDC9F]|\\uD83A[\\uDD00-\\uDD4B\\uDD50-\\uDD59\\uDD5E\\uDD5F]|\\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\\uDEF0\\uDEF1]/gim.test(String.fromCodePoint(t))}function ov(t){return/[\\u0591-\\u05C7\\u05D0-\\u05EA\\u05EF-\\u05F4\\u0600-\\u0604\\u0606-\\u060B\\u060D-\\u061A\\u061C-\\u061E\\u0620-\\u063F\\u0641-\\u064A\\u0656-\\u066F\\u0671-\\u06DC\\u06DE-\\u070D\\u070F-\\u074A\\u074D-\\u07B1\\u07C0-\\u07FA\\u07FD-\\u082D\\u0830-\\u083E\\u0840-\\u085B\\u085E\\u0860-\\u086A\\u0870-\\u0891\\u0897-\\u08E1\\u08E3-\\u08FF\\uFB1D-\\uFB36\\uFB38-\\uFB3C\\uFB3E\\uFB40\\uFB41\\uFB43\\uFB44\\uFB46-\\uFD3D\\uFD40-\\uFDCF\\uFDF0-\\uFDFF\\uFE70-\\uFE74\\uFE76-\\uFEFC]|\\uD802[\\uDC00-\\uDC05\\uDC08\\uDC0A-\\uDC35\\uDC37\\uDC38\\uDC3C\\uDC3F-\\uDC55\\uDC57-\\uDC9E\\uDCA7-\\uDCAF\\uDCE0-\\uDCF2\\uDCF4\\uDCF5\\uDCFB-\\uDD1B\\uDD1F-\\uDD39\\uDD3F-\\uDD59\\uDD80-\\uDDB7\\uDDBC-\\uDDCF\\uDDD2-\\uDE03\\uDE05\\uDE06\\uDE0C-\\uDE13\\uDE15-\\uDE17\\uDE19-\\uDE35\\uDE38-\\uDE3A\\uDE3F-\\uDE48\\uDE50-\\uDE58\\uDE60-\\uDE9F\\uDEC0-\\uDEE6\\uDEEB-\\uDEF6\\uDF00-\\uDF35\\uDF39-\\uDF55\\uDF58-\\uDF72\\uDF78-\\uDF91\\uDF99-\\uDF9C\\uDFA9-\\uDFAF]|\\uD803[\\uDC00-\\uDC48\\uDC80-\\uDCB2\\uDCC0-\\uDCF2\\uDCFA-\\uDD27\\uDD30-\\uDD39\\uDD40-\\uDD65\\uDD69-\\uDD85\\uDD8E\\uDD8F\\uDE60-\\uDE7E\\uDE80-\\uDEA9\\uDEAB-\\uDEAD\\uDEB0\\uDEB1\\uDEC2-\\uDEC7\\uDED0-\\uDED8\\uDEFA-\\uDF27\\uDF30-\\uDF59\\uDF70-\\uDF89\\uDFB0-\\uDFCB\\uDFE0-\\uDFF6]|\\uD83A[\\uDC00-\\uDCC4\\uDCC7-\\uDCD6\\uDD00-\\uDD4B\\uDD50-\\uDD59\\uDD5E\\uDD5F]|\\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\\uDEF0\\uDEF1]/gim.test(String.fromCodePoint(t))}function lv(t){return/[\\u02EA\\u02EB\\u2E80-\\u2FDF\\u2FF0-\\u303F\\u3041-\\u3096\\u309D-\\u309F\\u30A1-\\u30FA\\u30FD-\\u30FF\\u3105-\\u312F\\u31A0-\\u4DBF\\u4E00-\\uA48C\\uA490-\\uA4C6\\uF900-\\uFA6D\\uFA70-\\uFAD9\\uFE10-\\uFE1F\\uFE30-\\uFE4F\\uFF00-\\uFFEF]|\\uD81B[\\uDFE0-\\uDFFF]|[\\uD81C-\\uD822\\uD840-\\uD868\\uD86A-\\uD86D\\uD86F-\\uD872\\uD874-\\uD879\\uD880-\\uD883\\uD885-\\uD88C][\\uDC00-\\uDFFF]|\\uD823[\\uDC00-\\uDCD5\\uDCFF-\\uDD1E\\uDD80-\\uDDF2]|\\uD82B[\\uDFF0-\\uDFFF]|\\uD82C[\\uDC00-\\uDEFB]|\\uD83C[\\uDE00-\\uDEFF]|\\uD869[\\uDC00-\\uDEDF\\uDF00-\\uDFFF]|\\uD86E[\\uDC00-\\uDC1D\\uDC20-\\uDFFF]|\\uD873[\\uDC00-\\uDEAD\\uDEB0-\\uDFFF]|\\uD87A[\\uDC00-\\uDFE0\\uDFF0-\\uDFFF]|\\uD87B[\\uDC00-\\uDE5D]|\\uD87E[\\uDC00-\\uDE1D]|\\uD884[\\uDC00-\\uDF4A\\uDF50-\\uDFFF]|\\uD88D[\\uDC00-\\uDC79]/gim.test(String.fromCodePoint(t))}function ts(t){return/[\\u02EA\\u02EB\\u1100-\\u11FF\\u1401-\\u167F\\u18B0-\\u18FF\\u2065\\u20DD-\\u20E0\\u20E2-\\u20E4\\u2B97\\u2BF0-\\u2BFF\\u2E50\\u2E51\\u2E80-\\u3007\\u3012\\u3013\\u3020-\\u302F\\u3031-\\u30FB\\u30FD-\\uA4CF\\uA960-\\uA97F\\uAC00-\\uD7FF\\uF900-\\uFAFF\\uFE10-\\uFE1F\\uFE30-\\uFE48\\uFE50-\\uFE57\\uFE5F-\\uFE62\\uFE67-\\uFE6F\\uFF00-\\uFF07\\uFF0A-\\uFF0C\\uFF0E-\\uFF19\\uFF1F-\\uFF3A\\uFF3C\\uFF3E\\uFF40-\\uFF5A\\uFFE0-\\uFFE2\\uFFE4-\\uFFE7\\uFFF0-\\uFFF8]|\\uD802[\\uDD80-\\uDD9F]|\\uD805[\\uDD80-\\uDDFF]|\\uD806[\\uDE00-\\uDEBF]|[\\uD80C-\\uD810\\uD81C-\\uD822\\uD83C\\uD83D\\uD840-\\uD87E\\uD880-\\uD8BE][\\uDC00-\\uDFFF]|\\uD811[\\uDC00-\\uDE7F]|\\uD81B[\\uDFE0-\\uDFFF]|\\uD823[\\uDC00-\\uDDFF]|\\uD82B[\\uDFF0-\\uDFFF]|\\uD82C[\\uDC00-\\uDEFF]|\\uD833[\\uDEC0-\\uDFCF]|\\uD834[\\uDC00-\\uDDFF\\uDEE0-\\uDF7F]|\\uD836[\\uDC00-\\uDEAF]|\\uD83E[\\uDD00-\\uDEFF]|[\\uD87F\\uD8BF][\\uDC00-\\uDFFD]/gim.test(String.fromCodePoint(t))}function uv(t){return/[\\xA7\\xA9\\xAE\\xB1\\xBC-\\xBE\\xD7\\xF7\\u2016\\u2020\\u2021\\u2030\\u2031\\u203B\\u203C\\u2042\\u2047-\\u2049\\u2051\\u2100-\\u218F\\u221E\\u2234\\u2235\\u2300-\\u2307\\u230C-\\u231F\\u2324-\\u2328\\u232B\\u237D-\\u239A\\u23BE-\\u23CD\\u23CF\\u23D1-\\u23DB\\u23E2-\\u2422\\u2424-\\u24FF\\u25A0-\\u2619\\u2620-\\u2767\\u2776-\\u2793\\u2B12-\\u2B2F\\u2B50-\\u2B59\\u2BB8-\\u2BEB\\u3000-\\u303F\\u30A0-\\u30FF\\uE000-\\uF8FF\\uFE30-\\uFE6F\\uFF00-\\uFFEF\\uFFFC\\uFFFD]|[\\uDB80-\\uDBFF][\\uDC00-\\uDFFF]/gim.test(String.fromCodePoint(t))}function hv(t){return/[\\r\\u0300-\\u036F\\u0483-\\u0489\\u0591-\\u05BD\\u05BF\\u05C1\\u05C2\\u05C4\\u05C5\\u05C7\\u0600-\\u0605\\u0610-\\u061A\\u064B-\\u065F\\u0670\\u06D6-\\u06DD\\u06DF-\\u06E4\\u06E7\\u06E8\\u06EA-\\u06ED\\u070F\\u0711\\u0730-\\u074A\\u07A6-\\u07B0\\u07EB-\\u07F3\\u07FD\\u0816-\\u0819\\u081B-\\u0823\\u0825-\\u0827\\u0829-\\u082D\\u0859-\\u085B\\u0890\\u0891\\u0897-\\u089F\\u08CA-\\u0903\\u093A-\\u093C\\u093E-\\u094F\\u0951-\\u0957\\u0962\\u0963\\u0981-\\u0983\\u09BC\\u09BE-\\u09C4\\u09C7\\u09C8\\u09CB-\\u09CD\\u09D7\\u09E2\\u09E3\\u09FE\\u0A01-\\u0A03\\u0A3C\\u0A3E-\\u0A42\\u0A47\\u0A48\\u0A4B-\\u0A4D\\u0A51\\u0A70\\u0A71\\u0A75\\u0A81-\\u0A83\\u0ABC\\u0ABE-\\u0AC5\\u0AC7-\\u0AC9\\u0ACB-\\u0ACD\\u0AE2\\u0AE3\\u0AFA-\\u0AFF\\u0B01-\\u0B03\\u0B3C\\u0B3E-\\u0B44\\u0B47\\u0B48\\u0B4B-\\u0B4D\\u0B55-\\u0B57\\u0B62\\u0B63\\u0B82\\u0BBE-\\u0BC2\\u0BC6-\\u0BC8\\u0BCA-\\u0BCD\\u0BD7\\u0C00-\\u0C04\\u0C3C\\u0C3E-\\u0C44\\u0C46-\\u0C48\\u0C4A-\\u0C4D\\u0C55\\u0C56\\u0C62\\u0C63\\u0C81-\\u0C83\\u0CBC\\u0CBE-\\u0CC4\\u0CC6-\\u0CC8\\u0CCA-\\u0CCD\\u0CD5\\u0CD6\\u0CE2\\u0CE3\\u0CF3\\u0D00-\\u0D03\\u0D3B\\u0D3C\\u0D3E-\\u0D44\\u0D46-\\u0D48\\u0D4A-\\u0D4E\\u0D57\\u0D62\\u0D63\\u0D81-\\u0D83\\u0DCA\\u0DCF-\\u0DD4\\u0DD6\\u0DD8-\\u0DDF\\u0DF2\\u0DF3\\u0E31\\u0E33-\\u0E3A\\u0E47-\\u0E4E\\u0EB1\\u0EB3-\\u0EBC\\u0EC8-\\u0ECE\\u0F18\\u0F19\\u0F35\\u0F37\\u0F39\\u0F3E\\u0F3F\\u0F71-\\u0F84\\u0F86\\u0F87\\u0F8D-\\u0F97\\u0F99-\\u0FBC\\u0FC6\\u102D-\\u1037\\u1039-\\u103E\\u1056-\\u1059\\u105E-\\u1060\\u1071-\\u1074\\u1082\\u1084-\\u1086\\u108D\\u109D\\u1100-\\u11FF\\u135D-\\u135F\\u1712-\\u1715\\u1732-\\u1734\\u1752\\u1753\\u1772\\u1773\\u17B4-\\u17D3\\u17DD\\u180B-\\u180D\\u180F\\u1885\\u1886\\u18A9\\u1920-\\u192B\\u1930-\\u193B\\u1A17-\\u1A1B\\u1A55-\\u1A5E\\u1A60\\u1A62\\u1A65-\\u1A7C\\u1A7F\\u1AB0-\\u1ADD\\u1AE0-\\u1AEB\\u1B00-\\u1B04\\u1B34-\\u1B44\\u1B6B-\\u1B73\\u1B80-\\u1B82\\u1BA1-\\u1BAD\\u1BE6-\\u1BF3\\u1C24-\\u1C37\\u1CD0-\\u1CD2\\u1CD4-\\u1CE8\\u1CED\\u1CF4\\u1CF7-\\u1CF9\\u1DC0-\\u1DFF\\u200C\\u200D\\u20D0-\\u20F0\\u2CEF-\\u2CF1\\u2D7F\\u2DE0-\\u2DFF\\u302A-\\u302F\\u3099\\u309A\\uA66F-\\uA672\\uA674-\\uA67D\\uA69E\\uA69F\\uA6F0\\uA6F1\\uA802\\uA806\\uA80B\\uA823-\\uA827\\uA82C\\uA880\\uA881\\uA8B4-\\uA8C5\\uA8E0-\\uA8F1\\uA8FF\\uA926-\\uA92D\\uA947-\\uA953\\uA960-\\uA97C\\uA980-\\uA983\\uA9B3-\\uA9C0\\uA9E5\\uAA29-\\uAA36\\uAA43\\uAA4C\\uAA4D\\uAA7C\\uAAB0\\uAAB2-\\uAAB4\\uAAB7\\uAAB8\\uAABE\\uAABF\\uAAC1\\uAAEB-\\uAAEF\\uAAF5\\uAAF6\\uABE3-\\uABEA\\uABEC\\uABED\\uAC00-\\uD7A3\\uD7B0-\\uD7C6\\uD7CB-\\uD7FB\\uFB1E\\uFE00-\\uFE0F\\uFE20-\\uFE2F\\uFF9E\\uFF9F]|\\uD800[\\uDDFD\\uDEE0\\uDF76-\\uDF7A]|\\uD802[\\uDE01-\\uDE03\\uDE05\\uDE06\\uDE0C-\\uDE0F\\uDE38-\\uDE3A\\uDE3F\\uDEE5\\uDEE6]|\\uD803[\\uDD24-\\uDD27\\uDD69-\\uDD6D\\uDEAB\\uDEAC\\uDEFA-\\uDEFF\\uDF46-\\uDF50\\uDF82-\\uDF85]|\\uD804[\\uDC00-\\uDC02\\uDC38-\\uDC46\\uDC70\\uDC73\\uDC74\\uDC7F-\\uDC82\\uDCB0-\\uDCBA\\uDCBD\\uDCC2\\uDCCD\\uDD00-\\uDD02\\uDD27-\\uDD34\\uDD45\\uDD46\\uDD73\\uDD80-\\uDD82\\uDDB3-\\uDDC0\\uDDC2\\uDDC3\\uDDC9-\\uDDCC\\uDDCE\\uDDCF\\uDE2C-\\uDE37\\uDE3E\\uDE41\\uDEDF-\\uDEEA\\uDF00-\\uDF03\\uDF3B\\uDF3C\\uDF3E-\\uDF44\\uDF47\\uDF48\\uDF4B-\\uDF4D\\uDF57\\uDF62\\uDF63\\uDF66-\\uDF6C\\uDF70-\\uDF74\\uDFB8-\\uDFC0\\uDFC2\\uDFC5\\uDFC7-\\uDFCA\\uDFCC-\\uDFD2\\uDFE1\\uDFE2]|\\uD805[\\uDC35-\\uDC46\\uDC5E\\uDCB0-\\uDCC3\\uDDAF-\\uDDB5\\uDDB8-\\uDDC0\\uDDDC\\uDDDD\\uDE30-\\uDE40\\uDEAB-\\uDEB7\\uDF1D-\\uDF1F\\uDF22-\\uDF2B]|\\uD806[\\uDC2C-\\uDC3A\\uDD30-\\uDD35\\uDD37\\uDD38\\uDD3B-\\uDD43\\uDDD1-\\uDDD7\\uDDDA-\\uDDE0\\uDDE4\\uDE01-\\uDE0A\\uDE33-\\uDE39\\uDE3B-\\uDE3E\\uDE47\\uDE51-\\uDE5B\\uDE84-\\uDE99\\uDF60-\\uDF67]|\\uD807[\\uDC2F-\\uDC36\\uDC38-\\uDC3F\\uDC92-\\uDCA7\\uDCA9-\\uDCB6\\uDD31-\\uDD36\\uDD3A\\uDD3C\\uDD3D\\uDD3F-\\uDD47\\uDD8A-\\uDD8E\\uDD90\\uDD91\\uDD93-\\uDD97\\uDEF3-\\uDEF6\\uDF00-\\uDF03\\uDF34-\\uDF3A\\uDF3E-\\uDF42\\uDF5A]|\\uD80D[\\uDC40\\uDC47-\\uDC55]|\\uD818[\\uDD1E-\\uDD2F]|\\uD81A[\\uDEF0-\\uDEF4\\uDF30-\\uDF36]|\\uD81B[\\uDD63\\uDD67-\\uDD6A\\uDF4F\\uDF51-\\uDF87\\uDF8F-\\uDF92\\uDFE4\\uDFF0\\uDFF1]|\\uD82F[\\uDC9D\\uDC9E]|\\uD833[\\uDF00-\\uDF2D\\uDF30-\\uDF46]|\\uD834[\\uDD65-\\uDD69\\uDD6D-\\uDD72\\uDD7B-\\uDD82\\uDD85-\\uDD8B\\uDDAA-\\uDDAD\\uDE42-\\uDE44]|\\uD836[\\uDE00-\\uDE36\\uDE3B-\\uDE6C\\uDE75\\uDE84\\uDE9B-\\uDE9F\\uDEA1-\\uDEAF]|\\uD838[\\uDC00-\\uDC06\\uDC08-\\uDC18\\uDC1B-\\uDC21\\uDC23\\uDC24\\uDC26-\\uDC2A\\uDC8F\\uDD30-\\uDD36\\uDEAE\\uDEEC-\\uDEEF]|\\uD839[\\uDCEC-\\uDCEF\\uDDEE\\uDDEF\\uDEE3\\uDEE6\\uDEEE\\uDEEF\\uDEF5]|\\uD83A[\\uDCD0-\\uDCD6\\uDD44-\\uDD4A]|\\uD83C[\\uDDE6-\\uDDFF\\uDFFB-\\uDFFF]|\\uDB40[\\uDC20-\\uDC7F\\uDD00-\\uDDEF]/.test(t)}function Mc(t){return/[\\u0E01-\\u0E3A\\u0E40-\\u0E4E\\u0E81\\u0E82\\u0E84\\u0E86-\\u0E8A\\u0E8C-\\u0EA3\\u0EA5\\u0EA7-\\u0EBD\\u0EC0-\\u0EC4\\u0EC6\\u0EC8-\\u0ECE\\u0EDC-\\u0EDF\\u0F00-\\u0F47\\u0F49-\\u0F6C\\u0F71-\\u0F97\\u0F99-\\u0FBC\\u0FBE-\\u0FCC\\u0FCE-\\u0FD4\\u0FD9\\u0FDA\\u1000-\\u103F\\u1050-\\u108F\\u109A-\\u109F\\u1780-\\u17D3\\u17D7\\u17DC\\u17DD\\u1950-\\u196D\\u1970-\\u1974\\u1980-\\u19AB\\u19B0-\\u19C9\\u19DE\\u19DF\\u1A20-\\u1A5E\\u1A60-\\u1A7C\\u1AA0-\\u1AAD\\u1B00-\\u1B4C\\u1B4E-\\u1B7F\\uA980-\\uA9CD\\uA9D0-\\uA9D9\\uA9DE-\\uA9EF\\uA9FA-\\uA9FE\\uAA60-\\uAAC2\\uAADB-\\uAADF]|\\uD805[\\uDF00-\\uDF1A\\uDF1D-\\uDF2B\\uDF3A\\uDF3B\\uDF3F-\\uDF46]/gim.test(String.fromCodePoint(t))}function cv(t,e){return/(?:[\\u1039\\u17D2\\u1A60\\u1BAB\\u200D\\uAAF6]|\\uD802\\uDE3F|\\uD804[\\uDD33\\uDFD0]|\\uD806[\\uDD3E\\uDE47\\uDE99]|\\uD807[\\uDD45\\uDD97\\uDF42])$/.test(t)||new RegExp("^\\\\p{gc=Mc}","u").test(e)}var pv={C:"18g,1;g2,3;4nb,1",D:"17k,1;5,1;1,1;1,5;4,d;1,7;1,2;z,2;8,g;i,12;1,2;9,1;1,1;1,2;14,3;2,1;28,9;3,f;2,4;1,1;2,3;2,6;7a,1;2,5;1,1;g,a;5,2;2,6;1,f",R:"17m,4;1,1;1,1;5,4;l,1;14,3;1,3;g,i;12,1;2,9;1,1;1,1;2,2;1,1;o,2;2x,3;f,2;4,1;1,2;3,2;6u,j;b,1;r,3;1,1;2,2;6,1",T:"174,b;1,1;1a,l;g,1;2t,7;2,6;2,2;1,4;bt,9;16,o;1,t;1clb,1"},fv={1569:[65152,0,0,0],1570:[65153,65154,0,0],1571:[65155,65156,0,0],1572:[65157,65158,0,0],1573:[65159,65160,0,0],1574:[65161,65162,65163,65164],1575:[65165,65166,0,0],1576:[65167,65168,65169,65170],1577:[65171,65172,0,0],1578:[65173,65174,65175,65176],1579:[65177,65178,65179,65180],1580:[65181,65182,65183,65184],1581:[65185,65186,65187,65188],1582:[65189,65190,65191,65192],1583:[65193,65194,0,0],1584:[65195,65196,0,0],1585:[65197,65198,0,0],1586:[65199,65200,0,0],1587:[65201,65202,65203,65204],1588:[65205,65206,65207,65208],1589:[65209,65210,65211,65212],1590:[65213,65214,65215,65216],1591:[65217,65218,65219,65220],1592:[65221,65222,65223,65224],1593:[65225,65226,65227,65228],1594:[65229,65230,65231,65232],1601:[65233,65234,65235,65236],1602:[65237,65238,65239,65240],1603:[65241,65242,65243,65244],1604:[65245,65246,65247,65248],1605:[65249,65250,65251,65252],1606:[65253,65254,65255,65256],1607:[65257,65258,65259,65260],1608:[65261,65262,0,0],1609:[65263,65264,64488,64489],1610:[65265,65266,65267,65268],1611:[65136,0,0,65137],1612:[65138,0,0,0],1613:[65140,0,0,0],1614:[65142,0,0,65143],1615:[65144,0,0,65145],1616:[65146,0,0,65147],1617:[65148,0,0,65149],1618:[65150,0,0,65151],1649:[64336,64337,0,0],1655:[64477,0,0,0],1657:[64358,64359,64360,64361],1658:[64350,64351,64352,64353],1659:[64338,64339,64340,64341],1662:[64342,64343,64344,64345],1663:[64354,64355,64356,64357],1664:[64346,64347,64348,64349],1667:[64374,64375,64376,64377],1668:[64370,64371,64372,64373],1670:[64378,64379,64380,64381],1671:[64382,64383,64384,64385],1672:[64392,64393,0,0],1676:[64388,64389,0,0],1677:[64386,64387,0,0],1678:[64390,64391,0,0],1681:[64396,64397,0,0],1688:[64394,64395,0,0],1700:[64362,64363,64364,64365],1702:[64366,64367,64368,64369],1705:[64398,64399,64400,64401],1709:[64467,64468,64469,64470],1711:[64402,64403,64404,64405],1713:[64410,64411,64412,64413],1715:[64406,64407,64408,64409],1722:[64414,64415,0,0],1723:[64416,64417,64418,64419],1726:[64426,64427,64428,64429],1728:[64420,64421,0,0],1729:[64422,64423,64424,64425],1733:[64480,64481,0,0],1734:[64473,64474,0,0],1735:[64471,64472,0,0],1736:[64475,64476,0,0],1737:[64482,64483,0,0],1739:[64478,64479,0,0],1740:[64508,64509,64510,64511],1744:[64484,64485,64486,64487],1746:[64430,64431,0,0],1747:[64432,64433,0,0]},dv={\\u0644\\u0622:[65269,65270],\\u0644\\u0623:[65271,65272],\\u0644\\u0625:[65273,65274],\\u0644\\u0627:[65275,65276]},Bc=1604,yv=/[\\u0600-\\u06ff\\u0750-\\u077f\\u0870-\\u089f\\u08a0-\\u08ff\\ufb50-\\ufdff\\ufe70-\\ufeff]/;function mv(t,e,r){let i=0;for(let n of t.split(";")){let[a,s]=n.split(",").map(l=>parseInt(l,36)),o=i+a;for(let l=o;l{let r=e.codePointAt(0);return{codePoint:r,type:gv(r),form:null}})}function Dv(t){let e=t.filter(r=>r.type!=="T");for(let r=0;r0&&xv(e[r-1].type),a=r+1String.fromCodePoint(Sv(r))).join("")}function Fv(t,e,r){var n;let i=e.layout.get("text-transform").evaluate(r,{});return i==="uppercase"?t=t.toLocaleUpperCase():i==="lowercase"&&(t=t.toLocaleLowerCase()),((n=Ar.applyArabicShaping)!=null?n:Ev)(t)}function Tv(t,e,r){for(let i of t.sections)i.text=Fv(i.text,e,r);return t}function Ws(t,e,r){let i=r?e.last.points:e.first.points,n=r?i[i.length-1]:i[0];return`${t}:${n.x}:${n.y}`}function kv(t){let e=t.first.points,r=e.length;for(let a=t.first.next;a;a=a.next)r+=a.points.length-1;let i=Array(r);for(let a=0;a=0&&cv(e[i],r)?e[i]+=r:e.push(r)}return e}function Cv(t){let e=new Set;if(ey){Oi!=null||(Oi=new Intl.Segmenter(void 0,{granularity:"word"}));for(let{index:i}of Oi.segment(t))e.add(i);return e}let r=0;for(let i of t.split(new RegExp("\\\\b|(?=\\\\p{Ideo})","u")))e.add(r),r+=i.length;return e}function ry(t){let e=t.codePointAt(0);return t.length>(e>65535?2:1)}function au(t){return/\\s/u.test(String.fromCodePoint(t))}function nl(t){for(let e of t)if(ts(e.codePointAt(0)))return!0;return!1}function Mv(t){for(let e of t)if(!Bv(e.codePointAt(0)))return!1;return!0}function Bv(t){return!sv(t)}function Lc(t){return!(ts(t)||uv(t))}function iy(t){return new RegExp("\\\\p{sc=Arab}","u").test(String.fromCodePoint(t))}function ny(t){return ov(t)}function ay(t){for(let e of t)if(ny(e.codePointAt(0)))return!0;return!1}var Gr={"!":"\\uFE15","#":"\\uFF03",$:"\\uFF04","%":"\\uFF05","&":"\\uFF06","(":"\\uFE35",")":"\\uFE36","*":"\\uFF0A","+":"\\uFF0B",",":"\\uFE10","-":"\\uFE32",".":"\\u30FB","/":"\\uFF0F",":":"\\uFE13",";":"\\uFE14","<":"\\uFE3F","=":"\\uFF1D",">":"\\uFE40","?":"\\uFE16","@":"\\uFF20","[":"\\uFE47","\\\\":"\\uFF3C","]":"\\uFE48","^":"\\uFF3E",_:"\\uFE33","`":"\\uFF40","{":"\\uFE37","|":"\\u2015","}":"\\uFE38","~":"\\uFF5E","\\xA2":"\\uFFE0","\\xA3":"\\uFFE1","\\xA5":"\\uFFE5","\\xA6":"\\uFFE4","\\xAC":"\\uFFE2","\\xAF":"\\uFFE3","\\u2013":"\\uFE32","\\u2014":"\\uFE31","\\u2018":"\\uFE43","\\u2019":"\\uFE44","\\u201C":"\\uFE41","\\u201D":"\\uFE42","\\u2026":"\\uFE19","\\u22EF":"\\uFE19","\\u2027":"\\u30FB","\\u20A9":"\\uFFE6","\\u3001":"\\uFE11","\\u3002":"\\uFE12","\\u3008":"\\uFE3F","\\u3009":"\\uFE40","\\u300A":"\\uFE3D","\\u300B":"\\uFE3E","\\u300C":"\\uFE41","\\u300D":"\\uFE42","\\u300E":"\\uFE43","\\u300F":"\\uFE44","\\u3010":"\\uFE3B","\\u3011":"\\uFE3C","\\u3014":"\\uFE39","\\u3015":"\\uFE3A","\\u3016":"\\uFE17","\\u3017":"\\uFE18","\\uFF01":"\\uFE15","\\uFF08":"\\uFE35","\\uFF09":"\\uFE36","\\uFF0C":"\\uFE10","\\uFF0D":"\\uFE32","\\uFF0E":"\\u30FB","\\uFF1A":"\\uFE13","\\uFF1B":"\\uFE14","\\uFF1C":"\\uFE3F","\\uFF1E":"\\uFE40","\\uFF1F":"\\uFE16","\\uFF3B":"\\uFE47","\\uFF3D":"\\uFE48","\\uFF3F":"\\uFE33","\\uFF5B":"\\uFE37","\\uFF5C":"\\u2015","\\uFF5D":"\\uFE38","\\uFF5F":"\\uFE35","\\uFF60":"\\uFE36","\\uFF61":"\\uFE12","\\uFF62":"\\uFE41","\\uFF63":"\\uFE42"};function Pv(t){let e="",r={premature:!0,value:void 0},i=t[Symbol.iterator](),n=i.next(),a=t[Symbol.iterator]();a.next();let s=a.next();for(;!n.done;)(s.done||!Lc(s.value.codePointAt(0))||Gr[s.value])&&(r.premature||!Lc(r.value.codePointAt(0))||Gr[r.value])&&Gr[n.value]?e+=Gr[n.value]:e+=n.value,r={value:n.value,premature:!1},n=i.next(),s=a.next();return e}var zv={10:!0,13:!0,32:!0,38:!0,41:!0,43:!0,45:!0,47:!0,173:!0,183:!0,8203:!0,8208:!0,8211:!0,8231:!0},Lv={40:!0};function Vc(t,e,r,i,n,a){var s;if("fontStack"in e){let o=(s=r[e.fontStack])==null?void 0:s.default,l=o==null?void 0:o[t];if(l)return l.metrics.advance*e.scale+n;let u=0;for(let h of t){let c=o==null?void 0:o[h];c&&(u+=c.metrics.advance*e.scale+n)}return u}{let o=i[e.imageName];return o?o.displaySize[0]*e.scale*24/a+n:0}}function Oc(t,e,r,i){let n=(t-e)**2;return i?tr&&Rc(e[i-1]);)i--;this.text=e.slice(r,i).join(""),this.sectionIndex=this.sectionIndex.slice(r,i),this._graphemes=null}substring(e,r){let i=this.graphemes().slice(e,r).join(""),n=this.sectionIndex.slice(e,r);return new al(i,this.sections,n)}toCodeUnitIndex(e){return this.graphemes().slice(0,e).join("").length}toString(){return this.text}getMaxScale(){return this.sectionIndex.reduce((e,r)=>Math.max(e,this.sections[r].scale),0)}getMaxImageSize(e){let r=0,i=0;for(let n=0;n0?i[i.length-1]:"",a=il(n+e);this.text+=e,this._graphemes=i.slice(0,n?-1:void 0).concat(a);let s=a.length-+!!n;for(let o=0;o=63743?null:++this.imageSectionID:(this.imageSectionID=57344,this.imageSectionID)}determineLineBreaks(e,r,i,n,a){let s=[],o=this.determineAverageLineWidth(e,r,i,n,a),l=this.hasZeroWidthSpaces(),u=this.graphemes(),h=null,c=0,p=0;for(let f=0;f0){let y=u[f-1].codePointAt(0),m=d.codePointAt(0),g=lv(y),x=Mc(y)&&Mc(m);(zv[y]||g||"imageName"in this.getSection(f-1)||u[f+1]!==void 0&&Lv[m]||x&&(h!=null?h:h=Cv(this.text)).has(p))&&s.push($c(f,c,o,s,Vv(y,m,g&&l),!1))}au(d.codePointAt(0))||(c+=Vc(d,this.getSection(f),i,n,e,a)),p+=d.length}return sy($c(this.length(),c,o,s,0,!0))}determineAverageLineWidth(e,r,i,n,a){let s=0,o=0;for(let u of this.graphemes()){let h=this.getSection(o);s+=Vc(u,h,i,n,e,a),o++}let l=Math.max(1,Math.ceil(s/r));return s/l}};function Ov(){return(function(t){var e={R:"13k,1a,2,3,3,2+1j,ch+16,a+1,5+2,2+n,5,a,4,6+16,4+3,h+1b,4mo,179q,2+9,2+11,2i9+7y,2+68,4,3+4,5+13,4+3,2+4k,3+29,8+cf,1t+7z,w+17,3+3m,1t+3z,16o1+5r,8+30,8+mc,29+1r,29+4v,75+73",EN:"1c+9,3d+1,6,187+9,513,4+5,7+9,sf+j,175h+9,qw+q,161f+1d,4xt+a,25i+9",ES:"17,2,6dp+1,f+1,av,16vr,mx+1,4o,2",ET:"z+2,3h+3,b+1,ym,3e+1,2o,p4+1,8,6u,7c,g6,1wc,1n9+4,30+1b,2n,6d,qhx+1,h0m,a+1,49+2,63+1,4+1,6bb+3,12jj",AN:"16o+5,2j+9,2+1,35,ed,1ff2+9,87+u",CS:"18,2+1,b,2u,12k,55v,l,17v0,2,3,53,2+1,b",B:"a,3,f+2,2v,690",S:"9,2,k",WS:"c,k,4f4,1vk+a,u,1j,335",ON:"x+1,4+4,h+5,r+5,r+3,z,5+3,2+1,2+1,5,2+2,3+4,o,w,ci+1,8+d,3+d,6+8,2+g,39+1,9,6+1,2,33,b8,3+1,3c+1,7+1,5r,b,7h+3,sa+5,2,3i+6,jg+3,ur+9,2v,ij+1,9g+9,7+a,8m,4+1,49+x,14u,2+2,c+2,e+2,e+2,e+1,i+n,e+e,2+p,u+2,e+2,36+1,2+3,2+1,b,2+2,6+5,2,2,2,h+1,5+4,6+3,3+f,16+2,5+3l,3+81,1y+p,2+40,q+a,m+13,2r+ch,2+9e,75+hf,3+v,2+2w,6e+5,f+6,75+2a,1a+p,2+2g,d+5x,r+b,6+3,4+o,g,6+1,6+2,2k+1,4,2j,5h+z,1m+1,1e+f,t+2,1f+e,d+3,4o+3,2s+1,w,535+1r,h3l+1i,93+2,2s,b+1,3l+x,2v,4g+3,21+3,kz+1,g5v+1,5a,j+9,n+v,2,3,2+8,2+1,3+2,2,3,46+1,4+4,h+5,r+5,r+a,3h+2,4+6,b+4,78,1r+24,4+c,4,1hb,ey+6,103+j,16j+c,1ux+7,5+g,fsh,jdq+1t,4,57+2e,p1,1m,1m,1m,1m,4kt+1,7j+17,5+2r,d+e,3+e,2+e,2+10,m+4,w,1n+5,1q,4z+5,4b+rb,9+c,4+c,4+37,d+2g,8+b,l+b,5+1j,9+9,7+13,9+t,3+1,27+3c,2+29,2+3q,d+d,3+4,4+2,6+6,a+o,8+6,a+2,e+6,16+42,2+1i",BN:"0+8,6+d,2s+5,2+p,e,4m9,1kt+2,2b+5,5+5,17q9+v,7k,6p+8,6+1,119d+3,440+7,96s+1,1ekf+1,1ekf+1,1ekf+1,1ekf+1,1ekf+1,1ekf+1,1ekf+1,1ekf+1,1ekf+1,1ekf+1,1ekf+1,1ekf+75,6p+2rz,1ben+1,1ekf+1,1ekf+1",NSM:"lc+33,7o+6,7c+18,2,2+1,2+1,2,21+a,1d+k,h,2u+6,3+5,3+1,2+3,10,v+q,2k+a,1n+8,a,p+3,2+8,2+2,2+4,18+2,3c+e,2+v,1k,2,5+7,5,4+6,b+1,u,1n,5+3,9,l+1,r,3+1,1m,5+1,5+1,3+2,4,v+1,4,c+1,1m,5+4,2+1,5,l+1,n+5,2,1n,3,2+3,9,8+1,c+1,v,1q,d,1f,4,1m+2,6+2,2+3,8+1,c+1,u,1n,g+1,l+1,t+1,1m+1,5+3,9,l+1,u,21,8+2,2,2j,3+6,d+7,2r,3+8,c+5,23+1,s,2,2,1k+d,2+4,2+1,6+a,2+z,a,2v+3,2+5,2+1,3+1,q+1,5+2,h+3,e,3+1,7,g,jk+2,qb+2,u+2,u+1,v+1,1t+1,2+6,9,3+a,a,1a+2,3c+1,z,3b+2,5+1,a,7+2,64+1,3,1n,2+6,2,2,3+7,7+9,3,1d+g,1s+3,1d,2+4,2,6,15+8,d+1,x+3,3+1,2+2,1l,2+1,4,2+2,1n+7,3+1,49+2,2+c,2+6,5,7,4+1,5j+1l,2+4,k1+w,2db+2,3y,2p+v,ff+3,30+1,n9x+3,2+9,x+1,29+1,7l,4,5,q+1,6,48+1,r+h,e,13+7,q+a,1b+2,1d,3+3,3+1,14,1w+5,3+1,3+1,d,9,1c,1g,2+2,3+1,6+1,2,17+1,9,6n,3,5,fn5,ki+f,h+f,r2,6b,46+4,1af+2,2+1,6+3,15+2,5,4m+1,fy+3,as+1,4a+a,4x,1j+e,1l+2,1e+3,3+1,1y+2,11+4,2+7,1r,d+1,1h+8,b+3,3,2o+2,3,2+1,7,4h,4+7,m+1,1m+1,4,12+6,4+4,5g+7,3+2,2,o,2d+5,2,5+1,2+1,6n+3,7+1,2+1,s+1,2e+7,3,2+1,2z,2,3+5,2,2u+2,3+3,2+4,78+8,2+1,75+1,2,5,41+3,3+1,5,x+5,3+1,15+5,3+3,9,a+5,3+2,1b+c,2+1,bb+6,2+5,2d+l,3+6,2+1,2+1,3f+5,4,2+1,2+6,2,21+1,4,2,9o+1,f0c+4,1o+6,t5,1s+3,2a,f5l+1,43t+2,i+7,3+6,v+3,45+2,1j0+1i,5+1d,9,f,n+4,2+e,11t+6,2+g,3+6,2+1,2+4,7a+6,c6+3,15t+6,32+6,gzhy+6n",AL:"16w,3,2,e+1b,z+2,2+2s,g+1,8+1,b+m,2+t,s+2i,c+e,4h+f,1d+1e,1bwe+dp,3+3z,x+c,2+1,35+3y,2rm+z,5+7,b+5,dt+l,c+u,17nl+27,1t+27,4x+6n,3+d",LRO:"6ct",RLO:"6cu",LRE:"6cq",RLE:"6cr",PDF:"6cs",LRI:"6ee",RLI:"6ef",FSI:"6eg",PDI:"6eh"},r={},i={};r.L=1,i[1]="L",Object.keys(e).forEach(function(N,at){r[N]=1<1,1e>2,u>2,2wt>1,1>1,1ge>1,1wp>1,1j>1,f>1,hm>1,1>1,u>1,u6>1,1>1,+5,28>1,w>1,1>1,+3,b8>1,1>1,+3,1>3,-1>-1,3>1,1>1,+2,1s>1,1>1,x>1,th>1,1>1,+2,db>1,1>1,+3,3>1,1>1,+2,14qm>1,1>1,+1,4q>1,1e>2,u>2,2>1,+1",canonical:"6f1>-6dx,6dy>-6dx,6ec>-6ed,6ee>-6ed,6ww>2jj,-2ji>2jj,14r4>-1e7l,1e7m>-1e7l,1e7m>-1e5c,1e5d>-1e5b,1e5c>-14qx,14qy>-14qx,14vn>-1ecg,1ech>-1ecg,1edu>-1ecg,1eci>-1ecg,1eda>-1ecg,1eci>-1ecg,1eci>-168q,168r>-168q,168s>-14ye,14yf>-14ye"};function d(N,at){var Y=0,k=new Map,ot=at&&new Map,X;return N.split(",").forEach(function K(j){if(j.indexOf("+")!==-1)for(var Nt=+j;Nt--;)K(X);else{X=j;var bt=j.split(">"),nt=bt[0],kt=bt[1];nt=String.fromCodePoint(Y+=parseInt(nt,36)),kt=String.fromCodePoint(Y+=parseInt(kt,36)),k.set(nt,kt),at&&ot.set(kt,nt)}}),{map:k,reverseMap:ot}}var y,m,g;function x(){if(!y){var N=d(f.pairs,!0),at=N.map,Y=N.reverseMap;y=at,m=Y,g=d(f.canonical,!1).map}}function v(N){return x(),y.get(N)||null}function b(N){return x(),m.get(N)||null}function w(N){return x(),g.get(N)||null}var _=r.L,A=r.R,S=r.EN,T=r.ES,L=r.ET,O=r.AN,B=r.CS,V=r.B,F=r.S,$=r.ON,G=r.BN,P=r.NSM,z=r.AL,it=r.LRO,dt=r.RLO,ct=r.LRE,pt=r.RLE,Kt=r.PDF,jt=r.LRI,Jt=r.RLI,Oe=r.FSI,Gt=r.PDI;function Re(N,at){for(var Y=125,k=new Uint32Array(N.length),ot=0;ot0)Ie--;else if(is>0){for(qe=0;!lt[lt.length-1]._isolate;)lt.pop();var ns=lt[lt.length-1]._isolInitIndex;ns!=null&&(Nt.set(ns,zt),Nt.set(zt,ns)),lt.pop(),is--}wt=lt[lt.length-1],j[zt]=wt._level,wt._override&&K(zt,wt._override)}else Lt&Kt?(Ie===0&&(qe>0?qe--:!wt._isolate&<.length>1&&(lt.pop(),wt=lt[lt.length-1])),j[zt]=wt._level):Lt&V&&(j[zt]=nt.level);else j[zt]=wt._level,wt._override&&Lt!==G&&K(zt,wt._override)}for(var Cr=[],me=null,ur=nt.start;ur<=nt.end;ur++){var as=k[ur];if(!(as&o)){var Vu=j[ur],Ou=as&n,m1=as===Gt;me&&Vu===me._level?(me._end=ur,me._endsWithIsolInit=Ou):Cr.push(me={_start:ur,_end:ur,_level:Vu,_startsWithPDI:m1,_endsWithIsolInit:Ou})}}for(var ss=[],In=0;In=0;Bn--)if(!(k[Bn]&o)){Nu=j[Bn];break}var hs=Mr[Mr.length-1],x1=j[hs],Uu=nt.level;if(!(k[hs]&n)){for(var Pn=hs+1;Pn<=nt.end;Pn++)if(!(k[Pn]&o)){Uu=j[Pn];break}}ss.push({_seqIndices:Mr,_sosType:Math.max(Nu,g1)%2?A:_,_eosType:Math.max(Uu,x1)%2?A:_})}}for(var cs=0;cs=0;Ln--)if(!(k[q[Ln]]&o)){fs=k[q[Ln]];break}K(qu,fs&(n|Gt)?$:fs)}}if(X.get(S))for(var Vn=0;Vn=-1;On--){var Gu=On===-1?yi:k[q[On]];if(Gu&a){Gu===z&&K(ju,O);break}}}if(X.get(z))for(var ds=0;ds=0&&(Pr=k[q[gs]],Pr&o);gs--);for(var xs=mi+1;xs=0&&k[q[Rn]]&(L|o);Rn--)K(q[Rn],S);for(ge++;ge=0&&k[q[$n]]&o;$n--)K(q[$n],$);for(var Nn=gi+1;Nn=0;bi--){var ws=zr[bi].char;if(ws===Ku||ws===b(w(vi))||v(w(ws))===vi){Un.push([zr[bi].seqIndex,Lr]),zr.length=bi;break}}}Un.sort(function(Wt,he){return Wt[0]-he[0]});for(var Ds=0;Ds=0;Ss--){var rh=q[Ss];if(k[rh]&Hu){var ih=k[rh]&xi?A:_;xe=ih===Br?Br:ih;break}}}if(xe){if(k[q[qn]]=k[q[_s]]=xe,xe!==Br){for(var wi=qn+1;wi=0;_i--)if(k[q[_i]]&o)nh=_i;else{Fs=k[q[_i]]&xi?A:_;break}for(var ah=v1,Ai=je+1;Ai=0&&c(N[Gn])&l;Gn--)j[Gn]=nt.level}}return{levels:j,paragraphs:bt};function sh(Wt,he){for(var Zt=Wt;Zt=j&&c(N[nt])&l;nt--)bt[nt]=K.level;for(var kt=K.level,di=1/0,lr=0;lrkt&&(kt=Ne),Ne=di;Ue--)for(var lt=0;lt=Ue){for(var wt=lt;lt+1=Ue;)lt++;lt>wt&&X.push([wt+j,lt+j])}}}),X}function or(N,at,Y,k){var ot=Ir(N,at,Y,k),X=[].concat(N);return ot.forEach(function(K,j){X[j]=(at.levels[K]&1?Te(N[K]):null)||N[K]}),X.join("")}function Ir(N,at,Y,k){for(var ot=ke(N,at,Y,k),X=[],K=0;K=0;i--){let n=ou.getBidiCharTypeName(t[i].text[0]);Nv.has(n)?(t[i].level=e,r=!0):r&&$v.has(n)?t[i].level=e:r=!1}}function jv(t,e){let r=e,i=1/0;for(let{level:a}of t)a>r&&(r=a),(a|1)=i;a--)for(let s=0;s=a;)o++;for(let l=s,u=o;le>=n.start&&e<=n.end))==null?void 0:r.level)!=null?i:0}function Yv(t,e,r,i,n){let a=Uv(t,e,i,n);qv(a,r);let s="",o=[];for(let l of jv(a,r)){if(Rv.test(l.text))continue;let u=Gv(l);s+=u,o.push(...Array(u.length).fill(l.index))}return{text:s,sourceIndices:o}}function Wv(t,e){let r=e.filter(a=>a>0&&aa-s),n=[];for(let a=0;a+1n.start))).map(([n,a])=>Yv(t,r,Xv(i,n),n,a))}function Zv(t,e){return oy(t,e).map(r=>r.text)}function Hv(t,e,r){return oy(t,r).map(i=>[i.text,i.sourceIndices.map(n=>{var a;return(a=e[n])!=null?a:0})])}var sl=4294967296,Nc=1/sl,Uc=typeof TextDecoder>"u"?null:new TextDecoder("utf-8"),lu=class{constructor(t){this.buf=ArrayBuffer.isView(t)?t:new Uint8Array(t),this.dataView=new DataView(this.buf.buffer,this.buf.byteOffset,this.buf.byteLength),this.pos=0,this.type=0,this._valueStart=-1,this.length=this.buf.length}readFields(t,e,r=this.length){let i;for(;i=this.nextField(r);)t(i,e,this);return e}readMessage(t,e){return this.readFields(t,e,this.readVarint()+this.pos)}readFixed32(){let t=this.dataView.getUint32(this.pos,!0);return this.pos+=4,t}readSFixed32(){let t=this.dataView.getInt32(this.pos,!0);return this.pos+=4,t}readFixed64(){let t=this.dataView.getUint32(this.pos,!0)+this.dataView.getUint32(this.pos+4,!0)*sl;return this.pos+=8,t}readSFixed64(){let t=this.dataView.getUint32(this.pos,!0)+this.dataView.getInt32(this.pos+4,!0)*sl;return this.pos+=8,t}readFloat(){let t=this.dataView.getFloat32(this.pos,!0);return this.pos+=4,t}readDouble(){let t=this.dataView.getFloat64(this.pos,!0);return this.pos+=8,t}readVarint(t){let e=this.buf,r=e[this.pos++];if(r<128)return r;let i=r&127,n;return n=e[this.pos++],i|=(n&127)<<7,n<128||(n=e[this.pos++],i|=(n&127)<<14,n<128)||(n=e[this.pos++],i|=(n&127)<<21,n<128)?i:(n=e[this.pos],i|=(n&15)<<28,Jv(i,t,this))}readSVarint(){let t=this.readVarint();return t%2==1?(t+1)/-2:t/2}readBoolean(){return!!this.readVarint()}readString(){let t=this.readVarint()+this.pos,e=this.pos;return this.pos=t,t-e>=12&&Uc?Uc.decode(this.buf.subarray(e,t)):pb(this.buf,e,t)}readBytes(){let t=this.readVarint()+this.pos,e=this.buf.subarray(this.pos,t);return this.pos=t,e}readPackedVarint(t=[],e){let r=this.readPackedEnd();for(;this.pos=t)return 0;let e=this.readVarint();return this.type=e&7,this._valueStart=this.pos,e>>>3}skip(t){let e=t&7;if(e===0)for(;this.buf[this.pos++]>127;);else if(e===2)this.pos=this.readVarint()+this.pos;else if(e===5)this.pos+=4;else if(e===1)this.pos+=8;else throw Error(`Unimplemented type: ${e}`)}},Kv=class{constructor(t=new Uint8Array(16)){this.buf=ArrayBuffer.isView(t)?t:new Uint8Array(t),this.dataView=new DataView(this.buf.buffer,this.buf.byteOffset,this.buf.byteLength),this.pos=0,this.length=this.buf.length}writeTag(t,e){this.writeVarint(t<<3|e)}realloc(t){let e=this.length||16;for(;e=0&&t<128){this.pos>=this.length&&this.realloc(1),this.buf[this.pos++]=t;return}if(t>268435455||t<0){tb(t,this);return}this.realloc(4),this.buf[this.pos++]=t&127|(t>127?128:0),!(t<=127)&&(this.buf[this.pos++]=(t>>>=7)&127|(t>127?128:0),!(t<=127)&&(this.buf[this.pos++]=(t>>>=7)&127|(t>127?128:0),!(t<=127)&&(this.buf[this.pos++]=t>>>7&127)))}writeSVarint(t){this.writeVarint(t<0?-t*2-1:t*2)}writeBoolean(t){this.writeVarint(+t)}writeString(t){t=String(t),this.realloc(t.length*4),this.pos++;let e=this.pos;this.pos=fb(this.buf,t,this.pos);let r=this.pos-e;r>=128&&qc(e,r,this),this.pos=e-1,this.writeVarint(r),this.pos+=r}writeFloat(t){this.realloc(4),this.dataView.setFloat32(this.pos,t,!0),this.pos+=4}writeDouble(t){this.realloc(8),this.dataView.setFloat64(this.pos,t,!0),this.pos+=8}writeBytes(t){let e=t.length;this.writeVarint(e),this.realloc(e),this.buf.set(t,this.pos),this.pos+=e}writeRawMessage(t,e){this.pos++;let r=this.pos;t(e,this);let i=this.pos-r;i>=128&&qc(r,i,this),this.pos=r-1,this.writeVarint(i),this.pos+=i}writeMessage(t,e,r){this.writeTag(t,2),this.writeRawMessage(e,r)}writePackedVarint(t,e){e.length&&this.writeMessage(t,ib,e)}writePackedSVarint(t,e){e.length&&this.writeMessage(t,nb,e)}writePackedBoolean(t,e){e.length&&this.writeMessage(t,ob,e)}writePackedFloat(t,e){e.length&&this.writeMessage(t,ab,e)}writePackedDouble(t,e){e.length&&this.writeMessage(t,sb,e)}writePackedFixed32(t,e){e.length&&this.writeMessage(t,lb,e)}writePackedSFixed32(t,e){e.length&&this.writeMessage(t,ub,e)}writePackedFixed64(t,e){e.length&&this.writeMessage(t,hb,e)}writePackedSFixed64(t,e){e.length&&this.writeMessage(t,cb,e)}writeBytesField(t,e){this.writeTag(t,2),this.writeBytes(e)}writeFixed32Field(t,e){this.writeTag(t,5),this.writeFixed32(e)}writeSFixed32Field(t,e){this.writeTag(t,5),this.writeSFixed32(e)}writeFixed64Field(t,e){this.writeTag(t,1),this.writeFixed64(e)}writeSFixed64Field(t,e){this.writeTag(t,1),this.writeSFixed64(e)}writeVarintField(t,e){this.writeTag(t,0),this.writeVarint(e)}writeSVarintField(t,e){this.writeTag(t,0),this.writeSVarint(e)}writeStringField(t,e){this.writeTag(t,2),this.writeString(e)}writeFloatField(t,e){this.writeTag(t,5),this.writeFloat(e)}writeDoubleField(t,e){this.writeTag(t,1),this.writeDouble(e)}writeBooleanField(t,e){this.writeVarintField(t,+e)}};function Jv(t,e,r){let i=r.buf,n,a;if(a=i[r.pos++],n=(a&112)>>4,a<128||(a=i[r.pos++],n|=(a&127)<<3,a<128)||(a=i[r.pos++],n|=(a&127)<<10,a<128)||(a=i[r.pos++],n|=(a&127)<<17,a<128)||(a=i[r.pos++],n|=(a&127)<<24,a<128)||(a=i[r.pos++],n|=(a&1)<<31,a<128))return Qv(t,n,e);throw Error("Expected varint not more than 10 bytes")}function Qv(t,e,r){return r?e*4294967296+(t>>>0):(e>>>0)*4294967296+(t>>>0)}function tb(t,e){let r,i;if(t>=0?(r=t%4294967296|0,i=t/4294967296|0):(r=~(-t%4294967296),i=~(-t/4294967296),r^4294967295?r=r+1|0:(r=0,i=i+1|0)),t>=18446744073709552e3||t<-18446744073709552e3)throw Error("Given varint doesn\'t fit into 10 bytes");e.realloc(10),eb(r,i,e),rb(i,e)}function eb(t,e,r){r.buf[r.pos++]=t&127|128,t>>>=7,r.buf[r.pos++]=t&127|128,t>>>=7,r.buf[r.pos++]=t&127|128,t>>>=7,r.buf[r.pos++]=t&127|128,t>>>=7,r.buf[r.pos]=t&127}function rb(t,e){let r=(t&7)<<4;e.buf[e.pos++]|=r|((t>>>=3)?128:0),t&&(e.buf[e.pos++]=t&127|((t>>>=7)?128:0),t&&(e.buf[e.pos++]=t&127|((t>>>=7)?128:0),t&&(e.buf[e.pos++]=t&127|((t>>>=7)?128:0),t&&(e.buf[e.pos++]=t&127|((t>>>=7)?128:0),t&&(e.buf[e.pos++]=t&127)))))}function qc(t,e,r){let i=e<=16383?1:e<=2097151?2:e<=268435455?3:Math.floor(Math.log(e)/(Math.LN2*7));r.realloc(i),r.buf.copyWithin(t+i,t,r.pos)}function ib(t,e){let r=t.length,i=e.buf,n=e.pos,a=e.length;for(let s=0;sa){e.pos=n,e.writeVarint(o),i=e.buf,n=e.pos,a=e.length;continue}for(;o>127;)i[n++]=o%128|128,o=Math.floor(o/128);i[n++]=o}e.pos=n}function nb(t,e){for(let r=0;r239?4:a>223?3:a>191?2:1;if(n+o>r)break;let l,u,h;o===1?a<128&&(s=a):o===2?(l=t[n+1],(l&192)==128&&(s=(a&31)<<6|l&63,s<=127&&(s=null))):o===3?(l=t[n+1],u=t[n+2],(l&192)==128&&(u&192)==128&&(s=(a&15)<<12|(l&63)<<6|u&63,(s<=2047||s>=55296&&s<=57343)&&(s=null))):o===4&&(l=t[n+1],u=t[n+2],h=t[n+3],(l&192)==128&&(u&192)==128&&(h&192)==128&&(s=(a&15)<<18|(l&63)<<12|(u&63)<<6|h&63,(s<=65535||s>=1114112)&&(s=null))),s===null?(s=65533,o=1):s>65535&&(s-=65536,i+=String.fromCharCode(s>>>10&1023|55296),s=56320|s&1023),i+=String.fromCharCode(s),n+=o}return i}function fb(t,e,r){for(let i=0,n,a;i55295&&n<57344)if(a){if(n<56320){t[r++]=239,t[r++]=191,t[r++]=189,a=n;continue}n=a-55296<<10|n-56320|65536,a=null}else{n>56319||i+1===e.length?(t[r++]=239,t[r++]=191,t[r++]=189):a=n;continue}else a&&(a=(t[r++]=239,t[r++]=191,t[r++]=189,null));n<128?t[r++]=n:(n<2048?t[r++]=n>>6|192:(n<65536?t[r++]=n>>12|224:(t[r++]=n>>18|240,t[r++]=n>>12&63|128),t[r++]=n>>6&63|128),t[r++]=n&63|128)}return r}function db(t){return typeof(t==null?void 0:t.renderWithWebGL)=="function"}function uu(t){let e=0,r=0;for(let s of t)e+=s.w*s.h,r=Math.max(r,s.w);t.sort((s,o)=>o.h-s.h);let i=[{x:0,y:0,w:Math.max(Math.ceil(Math.sqrt(e/.95)),r),h:1/0}],n=0,a=0;for(let s of t)for(let o=i.length-1;o>=0;o--){let l=i[o];if(!(s.w>l.w||s.h>l.h)){if(s.x=l.x,s.y=l.y,a=Math.max(a,s.y+s.h),n=Math.max(n,s.x+s.w),s.w===l.w&&s.h===l.h){let u=i.pop();u&&o=r;a--)e.push(a);r=i+1}else{for(let a=r;at.toCodeUnitIndex(a)),i=Ar.isParsed()?Ar:null;if(t.sections.length===1)return i?i.processBidirectionalText(t.toString(),r).map(a=>Gc(a,t.sections,[...a].map(()=>0))):Zv(t.toString(),r).map(a=>ol([...a],t.sections,[...a].map(()=>0)));let n=xb(t);return i?i.processStyledBidirectionalText(t.text,n,r).map(([a,s])=>Gc(a,t.sections,s)):Hv(t.text,n,r).map(([a,s])=>{let o=[...a];return ol(o,t.sections,hy(o).map(l=>{var u;return(u=s[l])!=null?u:0}))})}function ol(t,e,r){var a;let i=new su(t.join(""),e,[]),n=0;for(let s of i.graphemes())i.sectionIndex.push((a=r[n])!=null?a:0),n+=[...s].length;return i}function hy(t){let e=[],r=0;for(let i of t)e.push(r),r+=i.length;return e}function Gc(t,e,r){let i=[...t],n=hy(i),a=gb(i);return ol(a.map(s=>i[s]),e,a.map(s=>{var o;return(o=r[n[s]])!=null?o:0}))}function na(t,e,r,i,n,a,s,o,l,u,h,c,p,f,d){let y=su.fromFeature(t,n);c===2&&y.verticalizePunctuation();let m=y.determineLineBreaks(u,a,e,i,f),g=ay(y.text)?vb(y,m):mb(y,m),x=[],v={positionedLines:x,text:y.toString(),top:h[1],bottom:h[1],left:h[0],right:h[0],writingMode:c,iconsInText:!1,verticalizable:!1};return Tb(v,e,r,i,g,s,o,l,c,u,p,d),!yb(x)&&v}function cy(t){let e=.5,r=.5;switch(t){case"right":case"top-right":case"bottom-right":e=1;break;case"left":case"top-left":case"bottom-left":e=0}switch(t){case"bottom":case"bottom-right":case"bottom-left":r=1;break;case"top":case"top-right":case"top-left":r=0}return{horizontalAlign:e,verticalAlign:r}}function bb(t,e,r){let i=e.getMaxScale()*24,{maxImageWidth:n,maxImageHeight:a}=e.getMaxImageSize(t),s=Math.max(i,a*r);return{verticalLineContentWidth:Math.max(i,n*r),horizontalLineContentHeight:s}}function py(t){switch(t){case"top":return 0;case"center":return .5;default:return 1}}function wb(t,e,r,i){var a,s;if(t!=null&&t.rect)return t;let n=(s=(a=e[r.fontStack])==null?void 0:a.default)==null?void 0:s[i];return n?{rect:null,metrics:n.metrics}:null}function Db(t,e,r){return!(t===1||!e&&!ts(r)||e&&(au(r)||iy(r)))}function ma(t){return new RegExp("\\\\p{Nd}","u").test(String.fromCodePoint(t))}function fy(t){return new RegExp("\\\\p{Lu}","u").test(String.fromCodePoint(t))}function _b(t){return/[\\p{P}\\p{S}]/u.test(String.fromCodePoint(t))}function Ab(t){let e=t.some(ma)&&t.every(i=>ma(i)||_b(i)),r=t.length<=3&&t.every(i=>fy(i)||ma(i));return e||r}function Sb(t){return(ma(t)||fy(t))&&!iy(t)}function Eb(t,e){let r=!1;for(let i=0;ia.codePointAt(0)),i=r.map(ts),n=a=>!i[a]&&!au(r[a])&&!("imageName"in t.getSection(a));for(let a=0;au){let p=Math.ceil(i/u);r*=p/n,n=p}return{x1:e,y1:r,x2:e+i,y2:r+n}}function Xc(t,e,r,i,n,a){let s=t.image,o;if(s.content){let m=s.content,g=s.pixelRatio||1;o=[m[0]/g,m[1]/g,s.displaySize[0]-m[2]/g,s.displaySize[1]-m[3]/g]}let l=e.left*a,u=e.right*a,h,c,p,f;r==="width"||r==="both"?(f=n[0]+l-i[3],c=n[0]+u+i[1]):(f=n[0]+(l+u-s.displaySize[0])/2,c=f+s.displaySize[0]);let d=e.top*a,y=e.bottom*a;return r==="height"||r==="both"?(h=n[1]+d-i[0],p=n[1]+y+i[2]):(h=n[1]+(d+y-s.displaySize[1])/2,p=h+s.displaySize[1]),{image:s,top:h,right:c,bottom:p,left:f,collisionPadding:o}}var Yc=32640;function Wc(t,e){let{expression:r}=e;if(r.kind==="constant")return{kind:"constant",layoutSize:r.evaluate(new st(t+1))};if(r.kind==="source")return{kind:"source"};if(r.kind==="composite"){let{minZoom:i,maxZoom:n}=Pb(r.zoomStops,t);return{kind:"composite",minZoom:i,maxZoom:n,interpolationType:r.interpolationType}}{let i=zb(r),n=r.evaluate(new st(t+1));return{kind:"camera",zoomStops:r.zoomStops,sizes:i,layoutSize:n,interpolationType:r.interpolationType}}}function Pb(t,e){let r=0;for(;rt.evaluate(new st(e===-1/0?t.zoomStops[1]-1:e)))}var Jr=class yy extends M{constructor(e,r,i,n){super(e,r),this.angle=i,n!==void 0&&(this.segment=n)}clone(){return new yy(this.x,this.y,this.angle,this.segment)}};C("Anchor",Jr);function my(t,e,r,i,n){if(e.segment===void 0||r===0)return!0;let a=e,s=e.segment+1,o=0;for(;o>-r/2;){if(s--,s<0)return!1;o-=t[s].dist(a),a=t[s]}o+=t[s].dist(t[s+1]),s++;let l=[],u=0;for(;oi;)u-=l.shift().angleDelta;if(u>n)return!1;s++,o+=c.dist(p)}return!0}function gy(t){let e=0;for(let r=0;ru){let d=(u-l)/f,y=new Jr(br.number(c.x,p.x,d),br.number(c.y,p.y,d),p.angleTo(c),h);return y._round(),!s||my(t,y,o,s,e)?y:void 0}l+=f}}function Vb(t,e,r,i,n,a,s,o,l){let u=xy(i,a,s),h=vy(i,n),c=h*s,p=t[0].x===0||t[0].x===l||t[0].y===0||t[0].y===l;e-c=0&&b=0&&w=0&&p+u<=h){let _=new Jr(b,w,x,d);_._round(),(!i||my(t,_,a,i,n))&&f.push(_)}}c+=g}return!o&&!f.length&&!s&&(f=by(t,c/2,r,i,n,a,s,!0,l)),f}function Ob(t,e,r,i,n){let a=[];for(let s of t){let o;for(let l=0;l=i&&h.x>=i)&&(u.x>=i?u=new M(i,u.y+(h.y-u.y)*((i-u.x)/(h.x-u.x)))._round():h.x>=i&&(h=new M(i,u.y+(h.y-u.y)*((i-u.x)/(h.x-u.x)))._round()),!(u.y>=n&&h.y>=n)&&(u.y>=n?u=new M(u.x+(h.x-u.x)*((n-u.y)/(h.y-u.y)),n)._round():h.y>=n&&(h=new M(u.x+(h.x-u.x)*((n-u.y)/(h.y-u.y)),n)._round()),(!o||!u.equals(o[o.length-1]))&&(o=[u],a.push(o)),o.push(h)))))}}return a}function wy(t,e,r,i,n,a){let s=Zc(t,e,r,n,0);return s=Zc(s,e,i,a,1),s}function Zc(t,e,r,i,n){switch(e){case 1:return Rb(t,r,i,n);case 2:return Hc(t,r,i,n,!1);case 3:return Hc(t,r,i,n,!0)}return[]}function Rb(t,e,r,i){let n=[];for(let a of t)for(let s of a){let o=i===0?s.x:s.y;o>=e&&o<=r&&n.push([s])}return n}function $b(t,e,r,i,n){let a=i===0?Nb:Ub,s=[],o=[];for(let h=0;he&&s.push(a(c,p,e)):f>r?d=e&&(s.push(a(c,p,e)),y=!0),d>r&&f<=r&&(s.push(a(c,p,r)),y=!0),!n&&y&&(o.push(s),s=[])}let l=t.length-1,u=i===0?t[l].x:t[l].y;return u>=e&&u<=r&&s.push(t[l]),n&&s.length>0&&!s[0].equals(s[s.length-1])&&s.push(new M(s[0].x,s[0].y)),s.length>0&&o.push(s),o}function Hc(t,e,r,i,n){let a=[];for(let s of t){let o=$b(s,e,r,i,n);o.length>0&&a.push(...o)}return a}function Nb(t,e,r){let i=(r-t.x)/(e.x-t.x);return new M(r,t.y+(e.y-t.y)*i)}function Ub(t,e,r){let i=(r-t.y)/(e.y-t.y);return new M(t.x+(e.x-t.x)*i,r)}function Kc(t,e,r,i){let n=[],a=t.image,s=a.pixelRatio,o=a.paddedRect.w-2,l=a.paddedRect.h-2,u={x1:t.left,y1:t.top,x2:t.right,y2:t.bottom},h=a.stretchX||[[0,o]],c=a.stretchY||[[0,l]],p=(F,$)=>F+$[1]-$[0],f=h.reduce(p,0),d=c.reduce(p,0),y=o-f,m=l-d,g=0,x=f,v=0,b=d,w=0,_=y,A=0,S=m;if(a.content&&i){let F=a.content,$=F[2]-F[0],G=F[3]-F[1];(a.textFitWidth||a.textFitHeight)&&(u=dy(t)),g=aa(h,0,F[0]),v=aa(c,0,F[1]),x=aa(h,F[0],F[2]),b=aa(c,F[1],F[3]),w=F[0]-g,A=F[1]-v,_=$-x,S=G-b}let T=u.x1,L=u.y1,O=u.x2-T,B=u.y2-L,V=(F,$,G,P)=>{let z=sa(F.stretch-g,x,O,T),it=oa(F.fixed-w,_,F.stretch,f),dt=sa($.stretch-v,b,B,L),ct=oa($.fixed-A,S,$.stretch,d),pt=sa(G.stretch-g,x,O,T),Kt=oa(G.fixed-w,_,G.stretch,f),jt=sa(P.stretch-v,b,B,L),Jt=oa(P.fixed-A,S,P.stretch,d),Oe=new M(z,dt),Gt=new M(pt,dt),Re=new M(pt,jt),$e=new M(z,jt),sr=new M(it/s,ct/s),fi=new M(Kt/s,Jt/s),Te=e*Math.PI/180;if(Te){let N=Math.sin(Te),at=Math.cos(Te),Y=[at,-N,N,at];Oe._matMult(Y),Gt._matMult(Y),$e._matMult(Y),Re._matMult(Y)}let $t=F.stretch+F.fixed,ke=G.stretch+G.fixed,or=$.stretch+$.fixed,Ir=P.stretch+P.fixed;return{tl:Oe,tr:Gt,bl:$e,br:Re,tex:{x:a.paddedRect.x+1+$t,y:a.paddedRect.y+1+or,w:ke-$t,h:Ir-or},writingMode:void 0,glyphOffset:[0,0],sectionIndex:0,pixelOffsetTL:sr,pixelOffsetBR:fi,minFontScaleX:_/s/O,minFontScaleY:S/s/B,isSDF:r}};if(!i||!a.stretchX&&!a.stretchY)n.push(V({fixed:0,stretch:-1},{fixed:0,stretch:-1},{fixed:0,stretch:o+1},{fixed:0,stretch:l+1}));else{let F=Jc(h,y,f),$=Jc(c,m,d);for(let G=0;G0&&(d=Math.max(10,d),this.circleDiameter=d)}else{let c=(h=a.image)!=null&&h.content&&(a.image.textFitWidth||a.image.textFitHeight)?dy(a):{x1:a.left,y1:a.top,x2:a.right,y2:a.bottom};c.y1=c.y1*s-o[0],c.y2=c.y2*s+o[2],c.x1=c.x1*s-o[3],c.x2=c.x2*s+o[1];let p=a.collisionPadding;if(p&&(c.x1-=p[0]*s,c.y1-=p[1]*s,c.x2+=p[2]*s,c.y2+=p[3]*s),u){let f=new M(c.x1,c.y1),d=new M(c.x2,c.y1),y=new M(c.x1,c.y2),m=new M(c.x2,c.y2),g=u*Math.PI/180;f._rotate(g),d._rotate(g),y._rotate(g),m._rotate(g),c.x1=Math.min(f.x,d.x,y.x,m.x),c.x2=Math.max(f.x,d.x,y.x,m.x),c.y1=Math.min(f.y,d.y,y.y,m.y),c.y2=Math.max(f.y,d.y,y.y,m.y)}t.emplaceBack(e.x,e.y,c.x1,c.y1,c.x2,c.y2,r,i,n)}this.boxEndIndex=t.length}},jb=class{constructor(t=[],e=(r,i)=>ri)){if(this.data=t,this.length=this.data.length,this.compare=e,this.length>0)for(let r=(this.length>>1)-1;r>=0;r--)this._down(r)}push(t){this.data.push(t),this._up(this.length++)}pop(){if(this.length===0)return;let t=this.data[0],e=this.data.pop();return--this.length>0&&(this.data[0]=e,this._down(0)),t}peek(){return this.data[0]}_up(t){let{data:e,compare:r}=this,i=e[t];for(;t>0;){let n=t-1>>1,a=e[n];if(r(i,a)>=0)break;e[t]=a,t=n}e[t]=i}_down(t){let{data:e,compare:r}=this,i=this.length>>1,n=e[t];for(;t=0)break;e[t]=e[a],t=a}e[t]=n}};function Gb(t,e=1){let r=Ia.fromPoints(t[0]),i=Math.min(r.width(),r.height()),n=i/2,a=new jb([],Xb),{minX:s,minY:o,maxX:l,maxY:u}=r;if(i===0)return new M(s,o);for(let p=s;pc.d||!c.d)&&(c=p),!(p.max-c.d<=e)&&(n=p.h/2,a.push(new qr(p.p.x-n,p.p.y-n,n,t)),a.push(new qr(p.p.x+n,p.p.y-n,n,t)),a.push(new qr(p.p.x-n,p.p.y+n,n,t)),a.push(new qr(p.p.x+n,p.p.y+n,n,t)))}return h.d>0&&c.d-h.d<=e?h.p:c.p}function Xb(t,e){return e.max-t.max}var qr=class{constructor(t,e,r,i){this.p=new M(t,e),this.h=r,this.d=Yb(this.p,i),this.max=this.d+this.h*Math.SQRT2}};function Yb(t,e){let r=!1,i=1/0;for(let n of e)for(let a=0,s=n.length,o=s-1;at.y!=u.y>t.y&&t.x<(u.x-l.x)*(t.y-l.y)/(u.y-l.y)+l.x&&(r=!r),i=Math.min(i,wd(t,l,u))}return(r?1:-1)*Math.sqrt(i)}function Wb(t){let e=0,r=0,i=0,n=t[0];for(let a=0,s=n.length,o=s-1;ap*24);h.startsWith("top")?c[1]-=7:h.startsWith("bottom")&&(c[1]+=7),l[u+1]=c}return new Ae(l)}let a=i.get("text-variable-anchor");if(a){let o;o=t._unevaluatedLayout.getValue("text-radial-offset")===void 0?i.get("text-offset").evaluate(e,{},r).map(u=>u*24):[i.get("text-radial-offset").evaluate(e,{},r)*24,cu];let l=[];for(let u of a)l.push(u,Dy(u,o));return new Ae(l)}return null}function Hb(t){var h,c;t.bucket.createArrays();let e=512*t.bucket.overscaling;t.bucket.tilePixelRatio=gt/e,t.bucket.compareText={},t.bucket.iconsNeedLinear=!1;let r=t.bucket.layers[0],i=r.layout,n=r._unevaluatedLayout._values,a={layoutIconSize:n["icon-size"].possiblyEvaluate(new st(t.bucket.zoom+1),t.canonical),layoutTextSize:n["text-size"].possiblyEvaluate(new st(t.bucket.zoom+1),t.canonical),textMaxSize:n["text-size"].possiblyEvaluate(new st(18))};if(t.bucket.textSizeData.kind==="composite"){let{minZoom:p,maxZoom:f}=t.bucket.textSizeData;a.compositeTextSizes=[n["text-size"].possiblyEvaluate(new st(p),t.canonical),n["text-size"].possiblyEvaluate(new st(f),t.canonical)]}if(t.bucket.iconSizeData.kind==="composite"){let{minZoom:p,maxZoom:f}=t.bucket.iconSizeData;a.compositeIconSizes=[n["icon-size"].possiblyEvaluate(new st(p),t.canonical),n["icon-size"].possiblyEvaluate(new st(f),t.canonical)]}let s=i.get("text-line-height")*24,o=i.get("text-rotation-alignment")!=="viewport"&&i.get("symbol-placement")!=="point",l=i.get("text-keep-upright"),u=i.get("text-size");for(let p of t.bucket.features){let f=i.get("text-font").evaluate(p,{},t.canonical).join(","),d=u.evaluate(p,{},t.canonical),y=a.layoutTextSize.evaluate(p,{},t.canonical),m=a.layoutIconSize.evaluate(p,{},t.canonical),g={horizontal:{},vertical:void 0},x=p.text,v=[0,0];if(x){let A=x.toString(),S=i.get("text-letter-spacing").evaluate(p,{},t.canonical)*24,T=Mv(A)?S:0,L=i.get("text-anchor").evaluate(p,{},t.canonical),O=_y(r,p,t.canonical);if(!O){let $=i.get("text-radial-offset").evaluate(p,{},t.canonical);v=$?Dy(L,[$*24,cu]):i.get("text-offset").evaluate(p,{},t.canonical).map(G=>G*24)}let B=o?"center":i.get("text-justify").evaluate(p,{},t.canonical),V=i.get("symbol-placement")==="point"?i.get("text-max-width").evaluate(p,{},t.canonical)*24:1/0,F=()=>{t.bucket.allowVerticalPlacement&&nl(A)&&(g.vertical=na(x,t.glyphMap,t.glyphPositions,t.imagePositions,f,V,s,L,"left",T,v,2,!0,y,d))};if(!o&&O){let $=new Set;if(B==="auto")for(let P=0;P{z.x<0||z.x>=8192||z.y<0||z.y>=8192||Qb(t,z,P,r,i,n,F,t.layers[0],t.collisionBoxArray,e.index,e.sourceLayerIndex,t.index,x,[_,_,_,_],T,l,b,A,L,y,e,a,u,h,s,p)};if(O==="line")for(let P of Ob(e.geometry,0,0,gt,gt)){let z=yr(P,$),it=Vb(z,w,S,r.vertical||m,i,24,v,t.overscaling,gt);for(let dt of it){let ct=m;(!ct||!tw(t,ct.text,B,dt))&&G(z,dt)}}else if(O==="line-center"){for(let P of e.geometry)if(P.length>1){let z=yr(P,$),it=Lb(z,S,r.vertical||m,i,24,v);it&&G(z,it)}}else if(e.type==="Polygon")for(let P of Na(e.geometry,0)){let z=Gb(P,16);G(yr(P[0],$,!0),new Jr(z.x,z.y,0))}else if(e.type==="LineString")for(let P of e.geometry){let z=yr(P,$);G(z,new Jr(z[0].x,z[0].y,0))}else if(e.type==="Point")for(let P of e.geometry)for(let z of P)G([z],new Jr(z.x,z.y,0))}function Jb(t,e){let r=t.length,i=e==null?void 0:e.values;if((i==null?void 0:i.length)>0)for(let n=0;n32640&&Mt(`${t.layerIds[0]}: Value for "text-size" is >= 255. Reduce your "text-size".`)):g.kind==="composite"&&(x=[128*d.compositeTextSizes[0].evaluate(s,{},y),128*d.compositeTextSizes[1].evaluate(s,{},y)],(x[0]>32640||x[1]>32640)&&Mt(`${t.layerIds[0]}: Value for "text-size" is >= 255. Reduce your "text-size".`)),t.addSymbols(t.text,m,x,o,a,s,h,e,u.lineStartIndex,u.lineLength,f,y,l);for(let v of c)p[v]=t.text.placedSymbolArray.length-1;return m.length*4}function Ay(t){for(let e in t)return t[e];return null}function Qb(t,e,r,i,n,a,s,o,l,u,h,c,p,f,d,y,m,g,x,v,b,w,_,A,S,T){let L=t.addToLineVertexArray(e,r),O=o.layout.get("symbol-height-offset").evaluate(b,{},A);O>t.maxHeightOffset&&(t.maxHeightOffset=O);let B,V,F,$,G=0,P=0,z=0,it=0,dt=-1,ct=-1,pt={},Kt=(0,Ea.default)("");if(t.allowVerticalPlacement&&i.vertical){let Y=o.layout.get("text-rotate").evaluate(b,{},A)+90,k=i.vertical;F=new la(l,e,u,h,c,k,p,f,d,Y),s&&($=new la(l,e,u,h,c,s,m,g,d,Y))}if(n){let Y=o.layout.get("icon-rotate").evaluate(b,{}),k=o.layout.get("icon-text-fit")!=="none",ot=Kc(n,Y,_,k),X=s?Kc(s,Y,_,k):void 0;V=new la(l,e,u,h,c,n,m,g,!1,Y),G=ot.length*4;let K=t.iconSizeData,j=null;K.kind==="source"?(j=[128*o.layout.get("icon-size").evaluate(b,{})],j[0]>32640&&Mt(`${t.layerIds[0]}: Value for "icon-size" is >= 255. Reduce your "icon-size".`)):K.kind==="composite"&&(j=[128*w.compositeIconSizes[0].evaluate(b,{},A),128*w.compositeIconSizes[1].evaluate(b,{},A)],(j[0]>32640||j[1]>32640)&&Mt(`${t.layerIds[0]}: Value for "icon-size" is >= 255. Reduce your "icon-size".`)),t.addSymbols(t.icon,ot,j,v,x,b,0,e,L.lineStartIndex,L.lineLength,-1,A,O),dt=t.icon.placedSymbolArray.length-1,X&&(P=X.length*4,t.addSymbols(t.icon,X,j,v,x,b,2,e,L.lineStartIndex,L.lineLength,-1,A,O),ct=t.icon.placedSymbolArray.length-1)}let jt=Object.keys(i.horizontal);for(let Y of jt){let k=i.horizontal[Y];B||(B=(Kt=(0,Ea.default)(k.text),new la(l,e,u,h,c,k,p,f,d,o.layout.get("text-rotate").evaluate(b,{},A))));let ot=k.positionedLines.length===1;if(z+=tp(t,e,k,a,o,d,b,y,O,L,i.vertical?1:3,ot?jt:[Y],pt,dt,w,A),ot)break}i.vertical&&(it+=tp(t,e,i.vertical,a,o,d,b,y,O,L,2,["vertical"],pt,ct,w,A));let Jt=B?B.boxStartIndex:t.collisionBoxArray.length,Oe=B?B.boxEndIndex:t.collisionBoxArray.length,Gt=F?F.boxStartIndex:t.collisionBoxArray.length,Re=F?F.boxEndIndex:t.collisionBoxArray.length,$e=V?V.boxStartIndex:t.collisionBoxArray.length,sr=V?V.boxEndIndex:t.collisionBoxArray.length,fi=$?$.boxStartIndex:t.collisionBoxArray.length,Te=$?$.boxEndIndex:t.collisionBoxArray.length,$t=-1,ke=(Y,k)=>Y!=null&&Y.circleDiameter?Math.max(Y.circleDiameter,k):k;$t=ke(B,$t),$t=ke(F,$t),$t=ke(V,$t),$t=ke($,$t);let or=+($t>-1);or&&($t*=S/24),t.glyphOffsetArray.length>=t.maxGlyphs&&Mt("Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907"),b.sortKey!==void 0&&t.addToSortKeyRanges(t.symbolInstances.length,b.sortKey);let Ir=_y(o,b,A),[N,at]=Jb(t.textAnchorOffsets,Ir);T&&(Kt=ew(Kt,b)),t.symbolInstances.emplaceBack(e.x,e.y,pt.right>=0?pt.right:-1,pt.center>=0?pt.center:-1,pt.left>=0?pt.left:-1,pt.vertical||-1,dt,ct,Kt,Jt,Oe,Gt,Re,$e,sr,fi,Te,u,z,it,G,P,or,0,p,$t,N,at,O)}function tw(t,e,r,i){let n=t.compareText;if(!(e in n))n[e]=[];else{let a=n[e];for(let s=a.length-1;s>=0;s--)if(i.dist(a[s])s.id),this.index=t.index,this.pixelRatio=t.pixelRatio,this.sourceLayerIndex=t.sourceLayerIndex,this.hasDependencies=!0,this.hasRTLText=!1,this.maxHeightOffset=0,this.sortKeyRanges=[],this.collisionCircleArray=[],this.maxGlyphs=65535;let e=this.layers[0]._unevaluatedLayout._values;this.textSizeData=Wc(this.zoom,e["text-size"]),this.iconSizeData=Wc(this.zoom,e["icon-size"]);let r=this.layers[0].layout,i=r.get("symbol-sort-key"),n=r.get("symbol-z-order");this.canOverlap=ep(r,"text-overlap","text-allow-overlap")!=="never"||ep(r,"icon-overlap","icon-allow-overlap")!=="never"||r.get("text-ignore-placement")||r.get("icon-ignore-placement"),this.sortFeaturesByKey=n!=="viewport-y"&&!i.isConstant();let a=n==="viewport-y"||n==="auto"&&!this.sortFeaturesByKey;this.sortFeaturesByY=a&&this.canOverlap,r.get("symbol-placement")==="point"&&(this.writingModes=r.get("text-writing-mode").map(s=>uy[s])),this.stateDependentLayerIds=this.layers.filter(s=>s.isStateDependent()).map(s=>s.id),this.sourceID=t.sourceID}createArrays(){this.text=new ll(new Dr(this.layers,this.zoom,t=>t.startsWith("text"))),this.icon=new ll(new Dr(this.layers,this.zoom,t=>t.startsWith("icon"))),this.glyphOffsetArray=new ud,this.lineVertexArray=new hd,this.symbolInstances=new ld,this.textAnchorOffsets=new pd}calculateGlyphDependencies(t,e,r,i,n){var l;let a=(i||this.allowVerticalPlacement)&&n,s=su.fromFeature(t,r),o=s.graphemes();for(let u=0;u0)&&(a.value.kind!=="constant"||a.value.value.length>0),u=o.value.kind!=="constant"||!!o.value.value||Object.keys(o.parameters).length>0,h=n.get("symbol-sort-key");if(this.features=[],!l&&!u)return;let c=e.iconDependencies,p=e.glyphDependencies,f=e.availableImages,d=new st(this.zoom);for(let{feature:m,id:g,index:x,sourceLayerIndex:v}of t){let b=i._featureFilter.needGeometry,w=hi(m,b);if(!i._featureFilter.filter(d,w,r))continue;b||(w.geometry=Fr(m));let _;if(l){let L=i.getValueAndResolveTokens("text-field",w,r,f),O=Le.factory(L);this.hasRTLText||(this.hasRTLText=nw(O)),_=Tv(O,i,w)}let A;if(u){let L=i.getValueAndResolveTokens("icon-image",w,r,f);A=L instanceof Se?L:Se.fromString(L)}if(!_&&!A)continue;let S=this.sortFeaturesByKey?h.evaluate(w,{},r):void 0,T={id:g,text:_,icon:A,index:x,sourceLayerIndex:v,geometry:w.geometry,properties:m.properties,type:Fn.types[m.type],sortKey:S};if(this.features.push(T),A&&(c[A.name]=!0),_){let L=a.evaluate(w,{},r).join(","),O=n.get("text-rotation-alignment")!=="viewport"&&n.get("symbol-placement")!=="point";this.allowVerticalPlacement=(y=this.writingModes)==null?void 0:y.includes(2);let B=nl(_.toString());this.calculateGlyphDependencies(_,p,L,O,B);for(let V of _.sections)V.image&&(c[V.image.name]=!0)}}n.get("symbol-placement")==="line"&&(this.features=Iv(this.features)),this.sortFeaturesByKey&&this.features.sort((m,g)=>m.sortKey-g.sortKey)}update(t,e,r){this.stateDependentLayers.length&&(this.text.programConfigurations.updatePaintArrays(t,e,this.layers,{imagePositions:r}),this.icon.programConfigurations.updatePaintArrays(t,e,this.layers,{imagePositions:r}))}addFeatures({options:t,canonical:e,glyphMap:r,glyphPositions:i,iconMap:n,iconPositions:a,showCollisionBoxes:s}){Hb({bucket:this,glyphMap:r,glyphPositions:i,imageMap:n,imagePositions:a,showCollisionBoxes:s,canonical:e,subdivisionGranularity:t.subdivisionGranularity,hasPromoteId:t.featureIndex.promoteId!=null})}isEmpty(){return this.symbolInstances.length===0}uploadPending(){return!this.uploaded||this.text.programConfigurations.needsUpload||this.icon.programConfigurations.needsUpload}upload(t){!this.uploaded&&this.hasDebugData()&&(this.textCollisionBox.upload(t),this.iconCollisionBox.upload(t)),this.text.upload(t,this.sortFeaturesByY,!this.uploaded,this.text.programConfigurations.needsUpload),this.icon.upload(t,this.sortFeaturesByY,!this.uploaded,this.icon.programConfigurations.needsUpload),this.uploaded=!0}destroyDebugData(){this.textCollisionBox.destroy(),this.iconCollisionBox.destroy()}destroy(){this.text.destroy(),this.icon.destroy(),this.hasDebugData()&&this.destroyDebugData()}addToLineVertexArray(t,e){let r=this.lineVertexArray.length;if(t.segment!==void 0){let i=t.dist(e[t.segment+1]),n=t.dist(e[t.segment]),a={};for(let s=t.segment+1;s=0;s--)a[s]={x:e[s].x,y:e[s].y,tileUnitDistanceFromAnchor:n},s>0&&(n+=e[s-1].dist(e[s]));for(let s=0;s0}hasIconData(){return this.icon.segments.get().length>0}hasDebugData(){return this.textCollisionBox&&this.iconCollisionBox}hasTextCollisionBoxData(){return this.hasDebugData()&&this.textCollisionBox.segments.get().length>0}hasIconCollisionBoxData(){return this.hasDebugData()&&this.iconCollisionBox.segments.get().length>0}addIndicesForPlacedSymbol(t,e){let r=t.placedSymbolArray.get(e),i=r.vertexStartIndex+r.numGlyphs*4;for(let n=r.vertexStartIndex;ni[s]-i[o]||n[o]-n[s]),a}addToSortKeyRanges(t,e){let r=this.sortKeyRanges[this.sortKeyRanges.length-1];(r==null?void 0:r.sortKey)===e?r.symbolInstanceEnd=t+1:this.sortKeyRanges.push({sortKey:e,symbolInstanceStart:t,symbolInstanceEnd:t+1})}sortFeatures(t){if(this.sortFeaturesByY&&this.sortedAngle!==t&&!(this.text.segments.get().length>1||this.icon.segments.get().length>1)){this.symbolInstanceIndexes=this.getSortedSymbolIndexes(t),this.sortedAngle=t,this.text.indexArray.clear(),this.icon.indexArray.clear(),this.featureSortOrder=[];for(let e of this.symbolInstanceIndexes){let r=this.symbolInstances.get(e);this.featureSortOrder.push(r.featureIndex);let i=[r.rightJustifiedTextSymbolIndex,r.centerJustifiedTextSymbolIndex,r.leftJustifiedTextSymbolIndex];for(let n=0;n=0&&i.indexOf(a)===n&&this.addIndicesForPlacedSymbol(this.text,a)}r.verticalPlacedTextSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.text,r.verticalPlacedTextSymbolIndex),r.placedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,r.placedIconSymbolIndex),r.verticalPlacedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,r.verticalPlacedIconSymbolIndex)}this.text.indexBuffer&&this.text.indexBuffer.updateData(this.text.indexArray),this.icon.indexBuffer&&this.icon.indexBuffer.updateData(this.icon.indexArray)}}};C("SymbolBucket",Sy,{omit:["layers","collisionBoxArray","features","compareText"]});function aw(t,e){return e.replace(/{([^{}]+)}/g,(r,i)=>t&&i in t?String(t[i]):"")}var rp,sw=()=>rp||(rp=new Yt({"symbol-placement":new R(D.layout_symbol["symbol-placement"],"symbol-placement"),"symbol-spacing":new R(D.layout_symbol["symbol-spacing"],"symbol-spacing"),"symbol-avoid-edges":new R(D.layout_symbol["symbol-avoid-edges"],"symbol-avoid-edges"),"symbol-sort-key":new U(D.layout_symbol["symbol-sort-key"],"symbol-sort-key"),"symbol-z-order":new R(D.layout_symbol["symbol-z-order"],"symbol-z-order"),"icon-allow-overlap":new R(D.layout_symbol["icon-allow-overlap"],"icon-allow-overlap"),"icon-overlap":new R(D.layout_symbol["icon-overlap"],"icon-overlap"),"icon-ignore-placement":new R(D.layout_symbol["icon-ignore-placement"],"icon-ignore-placement"),"icon-optional":new R(D.layout_symbol["icon-optional"],"icon-optional"),"icon-rotation-alignment":new U(D.layout_symbol["icon-rotation-alignment"],"icon-rotation-alignment"),"icon-size":new U(D.layout_symbol["icon-size"],"icon-size"),"icon-text-fit":new R(D.layout_symbol["icon-text-fit"],"icon-text-fit"),"icon-text-fit-padding":new R(D.layout_symbol["icon-text-fit-padding"],"icon-text-fit-padding"),"icon-image":new U(D.layout_symbol["icon-image"],"icon-image"),"icon-rotate":new U(D.layout_symbol["icon-rotate"],"icon-rotate"),"icon-padding":new U(D.layout_symbol["icon-padding"],"icon-padding"),"icon-keep-upright":new R(D.layout_symbol["icon-keep-upright"],"icon-keep-upright"),"icon-offset":new U(D.layout_symbol["icon-offset"],"icon-offset"),"icon-anchor":new U(D.layout_symbol["icon-anchor"],"icon-anchor"),"icon-pitch-alignment":new R(D.layout_symbol["icon-pitch-alignment"],"icon-pitch-alignment"),"text-pitch-alignment":new R(D.layout_symbol["text-pitch-alignment"],"text-pitch-alignment"),"text-rotation-alignment":new R(D.layout_symbol["text-rotation-alignment"],"text-rotation-alignment"),"text-field":new U(D.layout_symbol["text-field"],"text-field"),"text-font":new U(D.layout_symbol["text-font"],"text-font"),"text-size":new U(D.layout_symbol["text-size"],"text-size"),"text-max-width":new U(D.layout_symbol["text-max-width"],"text-max-width"),"text-line-height":new R(D.layout_symbol["text-line-height"],"text-line-height"),"text-letter-spacing":new U(D.layout_symbol["text-letter-spacing"],"text-letter-spacing"),"text-justify":new U(D.layout_symbol["text-justify"],"text-justify"),"text-radial-offset":new U(D.layout_symbol["text-radial-offset"],"text-radial-offset"),"text-variable-anchor":new R(D.layout_symbol["text-variable-anchor"],"text-variable-anchor"),"text-variable-anchor-offset":new U(D.layout_symbol["text-variable-anchor-offset"],"text-variable-anchor-offset"),"text-anchor":new U(D.layout_symbol["text-anchor"],"text-anchor"),"text-max-angle":new R(D.layout_symbol["text-max-angle"],"text-max-angle"),"text-writing-mode":new R(D.layout_symbol["text-writing-mode"],"text-writing-mode"),"text-rotate":new U(D.layout_symbol["text-rotate"],"text-rotate"),"text-padding":new R(D.layout_symbol["text-padding"],"text-padding"),"text-keep-upright":new R(D.layout_symbol["text-keep-upright"],"text-keep-upright"),"text-transform":new U(D.layout_symbol["text-transform"],"text-transform"),"text-offset":new U(D.layout_symbol["text-offset"],"text-offset"),"text-allow-overlap":new R(D.layout_symbol["text-allow-overlap"],"text-allow-overlap"),"text-overlap":new R(D.layout_symbol["text-overlap"],"text-overlap"),"text-ignore-placement":new R(D.layout_symbol["text-ignore-placement"],"text-ignore-placement"),"text-optional":new R(D.layout_symbol["text-optional"],"text-optional"),"symbol-height-offset":new U(D.layout_symbol["symbol-height-offset"],"symbol-height-offset"),"symbol-height-anchor":new R(D.layout_symbol["symbol-height-anchor"],"symbol-height-anchor")})),ip,ow=()=>ip||(ip=new Yt({"icon-opacity":new U(D.paint_symbol["icon-opacity"],"icon-opacity"),"icon-color":new U(D.paint_symbol["icon-color"],"icon-color"),"icon-halo-color":new U(D.paint_symbol["icon-halo-color"],"icon-halo-color"),"icon-halo-width":new U(D.paint_symbol["icon-halo-width"],"icon-halo-width"),"icon-halo-blur":new U(D.paint_symbol["icon-halo-blur"],"icon-halo-blur"),"icon-translate":new R(D.paint_symbol["icon-translate"],"icon-translate"),"icon-translate-anchor":new R(D.paint_symbol["icon-translate-anchor"],"icon-translate-anchor"),"text-opacity":new U(D.paint_symbol["text-opacity"],"text-opacity"),"text-color":new U(D.paint_symbol["text-color"],"text-color",{runtimeType:pe,getOverride:t=>t.textColor,hasOverride:t=>!!t.textColor}),"text-halo-color":new U(D.paint_symbol["text-halo-color"],"text-halo-color"),"text-halo-width":new U(D.paint_symbol["text-halo-width"],"text-halo-width"),"text-halo-blur":new U(D.paint_symbol["text-halo-blur"],"text-halo-blur"),"text-translate":new R(D.paint_symbol["text-translate"],"text-translate"),"text-translate-anchor":new R(D.paint_symbol["text-translate-anchor"],"text-translate-anchor")})),Zs={get paint(){return ow()},get layout(){return sw()}},Ey=class{constructor(t){if(t.property.overrides===void 0)throw Error("overrides must be provided to instantiate FormatSectionOverride class");this.type=t.property.overrides?t.property.overrides.runtimeType:vn,this.defaultValue=t}evaluate(t){if(t.formattedSection){let e=this.defaultValue.property.overrides;if(e!=null&&e.hasOverride(t.formattedSection))return e.getOverride(t.formattedSection)}return t.feature&&t.featureState?this.defaultValue.evaluate(t.feature,t.featureState):this.defaultValue.property.specification.default}eachChild(t){if(!this.defaultValue.isConstant()){let e=this.defaultValue.value;t(e._styleExpression.expression)}}outputDefined(){return!1}serialize(){return null}};C("FormatSectionOverride",Ey,{omit:["defaultValue"]});var lw=class hl extends ye{constructor(e,r){super(e,Zs,r)}recalculate(e,r){super.recalculate(e,r);let i=this.layout.get("icon-rotation-alignment");if((i.value.kind!=="constant"||i.value.value==="auto")&&(this.layout._values["icon-rotation-alignment"]=new le(i.property,{kind:"constant",value:this.layout.get("symbol-placement")==="point"?"viewport":"map"},i.parameters)),this.layout.get("text-rotation-alignment")==="auto"&&(this.layout.get("symbol-placement")==="point"?this.layout._values["text-rotation-alignment"]="viewport":this.layout._values["text-rotation-alignment"]="map"),this.layout.get("text-pitch-alignment")==="auto"&&(this.layout._values["text-pitch-alignment"]=this.layout.get("text-rotation-alignment")==="map"?"map":"viewport"),this.layout.get("icon-pitch-alignment")==="auto"&&(this.layout._values["icon-pitch-alignment"]=this.layout.get("icon-rotation-alignment").constantOr("viewport")),this.layout.get("symbol-placement")==="point"){let n=this.layout.get("text-writing-mode");if(n){let a=[];for(let s of n)a.includes(s)||a.push(s);this.layout._values["text-writing-mode"]=a}else this.layout._values["text-writing-mode"]=["horizontal"]}this._setPaintOverrides()}getValueAndResolveTokens(e,r,i,n){let a=this.layout.get(e).evaluate(r,{},i,n),s=this._unevaluatedLayout._values[e];return!s.isDataDriven()&&!Xa(s.value)&&a?aw(r.properties,a):a}createBucket(e){return new Sy(e)}queryRadius(){return 0}queryIntersectsFeature(){throw Error("Should take a different path in FeatureIndex")}_setPaintOverrides(){for(let e of Zs.paint.overridableProperties){if(!hl.hasPaintOverride(this.layout,e))continue;let r=this.paint.get(e),i=new Bl(new Ey(r),`layers[${this.id}].paint.${r.property.name}`,r.property.specification),n=null;n=r.value.kind==="constant"||r.value.kind==="source"?new ln("source",i):new _a("composite",i,r.value.zoomStops),this.paint._values[e]=new le(r.property,n,r.parameters)}}_handleOverridablePaintPropertyUpdate(e,r,i){return!this.layout||r.isDataDriven()||i.isDataDriven()?!1:hl.hasPaintOverride(this.layout,e)}static hasPaintOverride(e,r){let i=e.get("text-field"),n=Zs.paint.properties[r],a=!1,s=o=>{var l;for(let u of o)if((l=n.overrides)!=null&&l.hasOverride(u)){a=!0;return}};if(i.value.kind==="constant"&&i.value.value instanceof Le)s(i.value.value.sections);else if(i.value.kind==="source"||i.value.kind==="composite"){let o=u=>{if(!a)if(u instanceof ri&&St(u.value)===bn){let h=u.value;s(h.sections)}else u instanceof Yp?s(u.sections):u.eachChild(o)},l=i.value;l._styleExpression&&o(l._styleExpression.expression)}return a}};function uw(t,e,r,i=1){var a;let n=(a=t.get("icon-padding").evaluate(e,{},r))==null?void 0:a.values;return[n[0]*i,n[1]*i,n[2]*i,n[3]*i]}var np,hw=()=>np||(np=new Yt({"background-color":new R(D.paint_background["background-color"],"background-color"),"background-pattern":new id(D.paint_background["background-pattern"],"background-pattern"),"background-opacity":new R(D.paint_background["background-opacity"],"background-opacity")})),cw={get paint(){return hw()}};var pw=class extends ye{constructor(t,e){super(t,cw,e)}};var fw=class extends ye{constructor(t,e){super(t,{},e),this.onAdd=r=>{this.implementation.onAdd&&this.implementation.onAdd(r,r.painter.context.gl)},this.onRemove=r=>{this.implementation.onRemove&&this.implementation.onRemove(r,r.painter.context.gl)},this.implementation=t}is3D(){return this.implementation.renderingMode==="3d"}hasOffscreenPass(){return this.implementation.prerender!==void 0}recalculate(){}updateTransitions(){}hasTransition(){return!1}serialize(){throw Error("Custom layers cannot be serialized")}};function Fy(t,e){if(t.type==="custom")return new fw(t,e);switch(t.type){case"background":return new pw(t,e);case"circle":return new Kg(t,e);case"color-relief":return new lx(t,e);case"fill":return new $x(t,e);case"fill-extrusion":return new u2(t,e);case"heatmap":return new rx(t,e);case"hillshade":return new ax(t,e);case"line":return new rv(t,e);case"raster":return new pg(t,e);case"symbol":return new lw(t,e)}}var dw=class{constructor(t){this._methodToThrottle=t,this._triggered=!1,this._channel=new MessageChannel,this._channel.port2.onmessage=()=>{this._triggered=!1,this._methodToThrottle()}}trigger(){var t;this._triggered||(this._triggered=!0,(t=this._channel)==null||t.port1.postMessage(!0))}remove(){delete this._channel,this._methodToThrottle=()=>{}}},yw={once:!0},Ty=class{constructor(t,e){this.target=t,this.mapId=e,this.resolveRejects={},this.tasks={},this.taskQueue=[],this.abortControllers={},this.messageHandlers={},this.invoker=new dw(()=>this.process()),this.subscription=dh(this.target,"message",r=>this.receive(r),!1),this.globalScope=vr(self)?t:window}registerMessageHandler(t,e){this.messageHandlers[t]=e}unregisterMessageHandler(t){delete this.messageHandlers[t]}sendAsync(t,e){return new Promise((r,i)=>{let n=Math.round(Math.random()*1e18).toString(36).substring(0,10),a=e?dh(e.signal,"abort",()=>{a==null||a.unsubscribe(),delete this.resolveRejects[n];let l={id:n,type:"",origin:location.origin,targetMapId:t.targetMapId,sourceMapId:this.mapId};this.target.postMessage(l),i(new gl(e.signal.reason))},yw):null;this.resolveRejects[n]={resolve:l=>{a==null||a.unsubscribe(),r(l)},reject:l=>{a==null||a.unsubscribe(),i(l)}};let s=[],o=Si(Xe({},t),{id:n,sourceMapId:this.mapId,origin:location.origin,data:Hi(t.data,s)});this.target.postMessage(o,{transfer:s})})}receive(t){let e=t.data,r=e.id,i=["file://","resource://android","null"],n=[e.origin,location.origin],a=e.origin===location.origin,s=n.some(o=>i.includes(o));if((a||s)&&!(e.targetMapId&&this.mapId!==e.targetMapId)){if(e.type===""){delete this.tasks[r];let o=this.abortControllers[r];delete this.abortControllers[r],o&&o.abort();return}if(vr(self)||e.mustQueue){this.tasks[r]=e,this.taskQueue.push(r),this.invoker.trigger();return}this.processTask(r,e)}}process(){if(this.taskQueue.length===0)return;let t=this.taskQueue.shift(),e=this.tasks[t];delete this.tasks[t],this.taskQueue.length>0&&this.invoker.trigger(),e&&this.processTask(t,e)}processTask(t,e){return et(this,null,function*(){if(e.type===""){let n=this.resolveRejects[t];if(delete this.resolveRejects[t],!n)return;e.error?n.reject(tn(Ki(e.error))):n.resolve(Ki(e.data));return}if(!this.messageHandlers[e.type]){this.completeTask(t,null,null);return}let r=Ki(e.data),i=new AbortController;this.abortControllers[t]=i;try{let n=yield this.messageHandlers[e.type](e.sourceMapId,r,i);this.completeTask(t,null,n)}catch(n){this.completeTask(t,tn(n))}})}completeTask(t,e,r){let i=[];delete this.abortControllers[t];let n={id:t,type:"",sourceMapId:this.mapId,origin:location.origin,error:e?Hi(e):null,data:Hi(r,i)};this.target.postMessage(n,{transfer:i})}remove(){this.invoker.remove(),this.subscription.unsubscribe()}};function mw(t,e,r){return!(t<0||t>25||r<0||r>=2**t||e<0||e>=2**t)}var ky=class{constructor(t,e,r){if(!mw(t,e,r))throw Error(`x=${e}, y=${r}, z=${t} outside of bounds. 0<=x<${2**t}, 0<=y<${2**t} 0<=z<=25 `);this.z=t,this.x=e,this.y=r,this.key=Qi(0,t,t,e,r)}equals(t){return this.z===t.z&&this.x===t.x&&this.y===t.y}url(t,e,r){let i=xw(this.x,this.y,this.z),n=vw(this.z,this.x,this.y);return t[(this.x+this.y)%t.length].replace(/{prefix}/g,(this.x%16).toString(16)+(this.y%16).toString(16)).replace(/{z}/g,String(this.z)).replace(/{x}/g,String(this.x)).replace(/{y}/g,String(r==="tms"?2**this.z-this.y-1:this.y)).replace(/{ratio}/g,e>1?"@2x":"").replace(/{quadkey}/g,n).replace(/{bbox-epsg-3857}/g,i)}isChildOf(t){let e=this.z-t.z;return e>0&&t.x===this.x>>e&&t.y===this.y>>e}getTilePoint(t){let e=2**this.z;return new M((t.x*e-this.x)*gt,(t.y*e-this.y)*gt)}toString(){return`${this.z}/${this.x}/${this.y}`}},gw=class{constructor(t,e){this.wrap=t,this.canonical=e,this.key=Qi(t,e.z,e.z,e.x,e.y)}},pu=class se{constructor(e,r,i,n,a){if(this.terrainRttPosMatrix32f=null,e= z; overscaledZ = ${e}; z = ${i}`);this.overscaledZ=e,this.wrap=r,this.canonical=new ky(i,+n,+a),this.key=Qi(r,e,i,n,a)}clone(){return new se(this.overscaledZ,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)}equals(e){return this.overscaledZ===e.overscaledZ&&this.wrap===e.wrap&&this.canonical.equals(e.canonical)}scaledTo(e){if(e>this.overscaledZ)throw Error(`targetZ > this.overscaledZ; targetZ = ${e}; overscaledZ = ${this.overscaledZ}`);let r=this.canonical.z-e;return e>this.canonical.z?new se(e,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y):new se(e,this.wrap,e,this.canonical.x>>r,this.canonical.y>>r)}isOverscaled(){return this.overscaledZ>this.canonical.z}calculateScaledKey(e,r){if(e>this.overscaledZ)throw Error(`targetZ > this.overscaledZ; targetZ = ${e}; overscaledZ = ${this.overscaledZ}`);let i=this.canonical.z-e;return e>this.canonical.z?Qi(this.wrap*+r,e,this.canonical.z,this.canonical.x,this.canonical.y):Qi(this.wrap*+r,e,e,this.canonical.x>>i,this.canonical.y>>i)}isChildOf(e){if(e.wrap!==this.wrap||this.overscaledZ-e.overscaledZ<=0)return!1;if(e.overscaledZ===0)return this.overscaledZ>0;let r=this.canonical.z-e.canonical.z;return r<0?!1:e.canonical.x===this.canonical.x>>r&&e.canonical.y===this.canonical.y>>r}children(e){if(this.overscaledZ>=e)return[new se(this.overscaledZ+1,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)];let r=this.canonical.z+1,i=this.canonical.x*2,n=this.canonical.y*2;return[new se(r,this.wrap,r,i,n),new se(r,this.wrap,r,i+1,n),new se(r,this.wrap,r,i,n+1),new se(r,this.wrap,r,i+1,n+1)]}isLessThan(e){return this.wrape.wrap?!1:this.overscaledZe.overscaledZ?!1:this.canonical.xe.canonical.x?!1:this.canonical.y=0&&e=0&&r=u)return null;let c=this.canonical.x+n,p=this.wrap;return c<0?(p-=Math.ceil(-c/u),c=(c%u+u)%u):c>=u&&(p+=Math.floor(c/u),c%=u),{tileID:new se(this.overscaledZ,p,l,c,h),x:s,y:o}}};function Qi(t,e,r,i,n){t*=2,t<0&&(t=t*-1-1);let a=1<0;n--){let a=1<Dw(n,a,r),t.layers[i])}function Dw(t,e,r=""){e.writeVarintField(15,t.version||1),e.writeStringField(1,t.name||""),e.writeVarintField(5,t.extent||4096);let i={jsonPrefix:r,keys:[],values:[],keycache:{},valuecache:{}};for(let s=0;s>31}function Sw(t,e){let r=t.loadGeometry(),i=t.type,n=0,a=0;for(let s of r){let o=1;i===1&&(o=s.length),e.writeVarint(Ks(1,o));let l=i===3?s.length-1:s.length;for(let u=0;u=this._numberToString.length)throw Error(`Out of bounds. Index requested n=${t} can\'t be >= this._numberToString.length ${this._numberToString.length}`);return this._numberToString[t]}},Fw=class{constructor(t,e,r,i,n){this.type="Feature",this._vectorTileFeature=t,this._x=r,this._y=i,this._z=e;for(let a in t.properties)typeof t.properties[a]=="string"&&t.properties[a].startsWith("__$json__:")&&(t.properties[a]=JSON.parse(t.properties[a].slice(10)));this.properties=t.properties,this.id=n}projectPoint(t,e,r,i){return[(t.x+e)*360/i-180,360/Math.PI*Math.atan(Math.exp((1-(t.y+r)*2/i)*Math.PI))-90]}projectLine(t,e,r,i){return t.map(n=>this.projectPoint(n,e,r,i))}get geometry(){if(this._geometry)return this._geometry;let t=this._vectorTileFeature,e=t.extent*2**this._z,r=t.extent*this._x,i=t.extent*this._y,n=t.loadGeometry();switch(t.type){case 1:{let a=[];for(let o of n)a.push(o[0]);let s=this.projectLine(a,r,i,e);this._geometry=a.length===1?{type:"Point",coordinates:s[0]}:{type:"MultiPoint",coordinates:s};break}case 2:{let a=n.map(s=>this.projectLine(s,r,i,e));this._geometry=a.length===1?{type:"LineString",coordinates:a[0]}:{type:"MultiLineString",coordinates:a};break}case 3:{let a=Ld(n),s=[];for(let o of a)s.push(o.map(l=>this.projectLine(l,r,i,e)));this._geometry=s.length===1?{type:"Polygon",coordinates:s[0]}:{type:"MultiPolygon",coordinates:s};break}default:throw Error(`unknown feature type: ${t.type}`)}return this._geometry}set geometry(t){this._geometry=t}toJSON(){let t={geometry:this.geometry};for(let e in this)e!=="_geometry"&&e!=="_vectorTileFeature"&&e!=="_x"&&e!=="_y"&&e!=="_z"&&(t[e]=this[e]);return t}},Tr=class{constructor(t,e,r){this._name=t,this.dataBuffer=e,typeof r=="number"?this._size=r:(this.nullabilityBuffer=r,this._size=r.size())}getValue(t){return this.nullabilityBuffer&&!this.nullabilityBuffer.get(t)?null:this.getValueFromBuffer(t)}has(t){var e;return((e=this.nullabilityBuffer)==null?void 0:e.get(t))||!this.nullabilityBuffer}get name(){return this._name}get size(){return this._size}},es=class extends Tr{},yu=class extends es{getValueFromBuffer(t){return this.dataBuffer[t]}},mu=class extends es{getValueFromBuffer(t){return this.dataBuffer[t]}},Cy=class extends Tr{constructor(t,e,r,i){super(t,e,i),this.delta=r}},gu=class extends Cy{constructor(t,e,r,i,n){super(t,n?Int32Array.of(e):Uint32Array.of(e),r,i)}getValueFromBuffer(t){return this.dataBuffer[0]+t*this.delta}},xu=class extends Tr{constructor(t,e,r,i){super(t,i?Int32Array.of(e):Uint32Array.of(e),r)}getValueFromBuffer(t){return this.dataBuffer[0]}},Tw=class{constructor(t,e,r,i,n=4096){if(this._name=t,this._geometryVector=e,this._idVector=r,this._propertyVectors=i,this._extent=n,t.length===0)throw Error("Missing layer name")}get name(){return this._name}get idVector(){return this._idVector}get geometryVector(){return this._geometryVector}get propertyVectors(){var t;return(t=this._propertyVectors)!=null?t:[]}getPropertyVector(t){return this.propertyVectorsMap||(this.propertyVectorsMap=new Map(this.propertyVectors.map(e=>[e.name,e]))),this.propertyVectorsMap.get(t)}get numFeatures(){return this.geometryVector.numGeometries}get extent(){return this._extent}getFeatures(){let t=[],e=this.geometryVector.getGeometries();for(let r=0;r>>32-t;var pl=vu,bu=65536;function wu(t,e){return t-t%e}function kw(t){return wu(t+31,32)}function Py(t){if(!Number.isFinite(t)||t<=0)return bu;let e=wu(Math.floor(t),256);return e===0?256:e}function Iw(t){let e=t>>>0;return((e&255)<<24|(e&65280)<<8|e>>>8&65280|e>>>24&255)>>>0}function Cw(t,e,r,i){let n=i,a=t[e]>>>0,s=t[e+1]>>>0;r[n++]=a>>>0&3,r[n++]=a>>>2&3,r[n++]=a>>>4&3,r[n++]=a>>>6&3,r[n++]=a>>>8&3,r[n++]=a>>>10&3,r[n++]=a>>>12&3,r[n++]=a>>>14&3,r[n++]=a>>>16&3,r[n++]=a>>>18&3,r[n++]=a>>>20&3,r[n++]=a>>>22&3,r[n++]=a>>>24&3,r[n++]=a>>>26&3,r[n++]=a>>>28&3,r[n++]=a>>>30&3,r[n++]=s>>>0&3,r[n++]=s>>>2&3,r[n++]=s>>>4&3,r[n++]=s>>>6&3,r[n++]=s>>>8&3,r[n++]=s>>>10&3,r[n++]=s>>>12&3,r[n++]=s>>>14&3,r[n++]=s>>>16&3,r[n++]=s>>>18&3,r[n++]=s>>>20&3,r[n++]=s>>>22&3,r[n++]=s>>>24&3,r[n++]=s>>>26&3,r[n++]=s>>>28&3,r[n]=s>>>30&3}function Mw(t,e,r,i){let n=i,a=t[e]>>>0,s=t[e+1]>>>0,o=t[e+2]>>>0;r[n++]=a>>>0&7,r[n++]=a>>>3&7,r[n++]=a>>>6&7,r[n++]=a>>>9&7,r[n++]=a>>>12&7,r[n++]=a>>>15&7,r[n++]=a>>>18&7,r[n++]=a>>>21&7,r[n++]=a>>>24&7,r[n++]=a>>>27&7,r[n++]=(a>>>30|(s&1)<<2)&7,r[n++]=s>>>1&7,r[n++]=s>>>4&7,r[n++]=s>>>7&7,r[n++]=s>>>10&7,r[n++]=s>>>13&7,r[n++]=s>>>16&7,r[n++]=s>>>19&7,r[n++]=s>>>22&7,r[n++]=s>>>25&7,r[n++]=s>>>28&7,r[n++]=(s>>>31|(o&3)<<1)&7,r[n++]=o>>>2&7,r[n++]=o>>>5&7,r[n++]=o>>>8&7,r[n++]=o>>>11&7,r[n++]=o>>>14&7,r[n++]=o>>>17&7,r[n++]=o>>>20&7,r[n++]=o>>>23&7,r[n++]=o>>>26&7,r[n]=o>>>29&7}function Bw(t,e,r,i){let n=i,a=t[e]>>>0,s=t[e+1]>>>0,o=t[e+2]>>>0,l=t[e+3]>>>0;r[n++]=a>>>0&15,r[n++]=a>>>4&15,r[n++]=a>>>8&15,r[n++]=a>>>12&15,r[n++]=a>>>16&15,r[n++]=a>>>20&15,r[n++]=a>>>24&15,r[n++]=a>>>28&15,r[n++]=s>>>0&15,r[n++]=s>>>4&15,r[n++]=s>>>8&15,r[n++]=s>>>12&15,r[n++]=s>>>16&15,r[n++]=s>>>20&15,r[n++]=s>>>24&15,r[n++]=s>>>28&15,r[n++]=o>>>0&15,r[n++]=o>>>4&15,r[n++]=o>>>8&15,r[n++]=o>>>12&15,r[n++]=o>>>16&15,r[n++]=o>>>20&15,r[n++]=o>>>24&15,r[n++]=o>>>28&15,r[n++]=l>>>0&15,r[n++]=l>>>4&15,r[n++]=l>>>8&15,r[n++]=l>>>12&15,r[n++]=l>>>16&15,r[n++]=l>>>20&15,r[n++]=l>>>24&15,r[n]=l>>>28&15}function Pw(t,e,r,i){let n=i,a=t[e]>>>0,s=t[e+1]>>>0,o=t[e+2]>>>0,l=t[e+3]>>>0,u=t[e+4]>>>0;r[n++]=a>>>0&31,r[n++]=a>>>5&31,r[n++]=a>>>10&31,r[n++]=a>>>15&31,r[n++]=a>>>20&31,r[n++]=a>>>25&31,r[n++]=(a>>>30|(s&7)<<2)&31,r[n++]=s>>>3&31,r[n++]=s>>>8&31,r[n++]=s>>>13&31,r[n++]=s>>>18&31,r[n++]=s>>>23&31,r[n++]=(s>>>28|(o&1)<<4)&31,r[n++]=o>>>1&31,r[n++]=o>>>6&31,r[n++]=o>>>11&31,r[n++]=o>>>16&31,r[n++]=o>>>21&31,r[n++]=o>>>26&31,r[n++]=(o>>>31|(l&15)<<1)&31,r[n++]=l>>>4&31,r[n++]=l>>>9&31,r[n++]=l>>>14&31,r[n++]=l>>>19&31,r[n++]=l>>>24&31,r[n++]=(l>>>29|(u&3)<<3)&31,r[n++]=u>>>2&31,r[n++]=u>>>7&31,r[n++]=u>>>12&31,r[n++]=u>>>17&31,r[n++]=u>>>22&31,r[n]=u>>>27&31}function zw(t,e,r,i){let n=i,a=t[e]>>>0,s=t[e+1]>>>0,o=t[e+2]>>>0,l=t[e+3]>>>0,u=t[e+4]>>>0,h=t[e+5]>>>0;r[n++]=a>>>0&63,r[n++]=a>>>6&63,r[n++]=a>>>12&63,r[n++]=a>>>18&63,r[n++]=a>>>24&63,r[n++]=(a>>>30|(s&15)<<2)&63,r[n++]=s>>>4&63,r[n++]=s>>>10&63,r[n++]=s>>>16&63,r[n++]=s>>>22&63,r[n++]=(s>>>28|(o&3)<<4)&63,r[n++]=o>>>2&63,r[n++]=o>>>8&63,r[n++]=o>>>14&63,r[n++]=o>>>20&63,r[n++]=o>>>26&63,r[n++]=l>>>0&63,r[n++]=l>>>6&63,r[n++]=l>>>12&63,r[n++]=l>>>18&63,r[n++]=l>>>24&63,r[n++]=(l>>>30|(u&15)<<2)&63,r[n++]=u>>>4&63,r[n++]=u>>>10&63,r[n++]=u>>>16&63,r[n++]=u>>>22&63,r[n++]=(u>>>28|(h&3)<<4)&63,r[n++]=h>>>2&63,r[n++]=h>>>8&63,r[n++]=h>>>14&63,r[n++]=h>>>20&63,r[n]=h>>>26&63}function Lw(t,e,r,i){let n=i,a=t[e]>>>0,s=t[e+1]>>>0,o=t[e+2]>>>0,l=t[e+3]>>>0,u=t[e+4]>>>0,h=t[e+5]>>>0,c=t[e+6]>>>0;r[n++]=a>>>0&127,r[n++]=a>>>7&127,r[n++]=a>>>14&127,r[n++]=a>>>21&127,r[n++]=(a>>>28|(s&7)<<4)&127,r[n++]=s>>>3&127,r[n++]=s>>>10&127,r[n++]=s>>>17&127,r[n++]=s>>>24&127,r[n++]=(s>>>31|(o&63)<<1)&127,r[n++]=o>>>6&127,r[n++]=o>>>13&127,r[n++]=o>>>20&127,r[n++]=(o>>>27|(l&3)<<5)&127,r[n++]=l>>>2&127,r[n++]=l>>>9&127,r[n++]=l>>>16&127,r[n++]=l>>>23&127,r[n++]=(l>>>30|(u&31)<<2)&127,r[n++]=u>>>5&127,r[n++]=u>>>12&127,r[n++]=u>>>19&127,r[n++]=(u>>>26|(h&1)<<6)&127,r[n++]=h>>>1&127,r[n++]=h>>>8&127,r[n++]=h>>>15&127,r[n++]=h>>>22&127,r[n++]=(h>>>29|(c&15)<<3)&127,r[n++]=c>>>4&127,r[n++]=c>>>11&127,r[n++]=c>>>18&127,r[n]=c>>>25&127}function Vw(t,e,r,i){let n=i,a=t[e]>>>0,s=t[e+1]>>>0,o=t[e+2]>>>0,l=t[e+3]>>>0,u=t[e+4]>>>0,h=t[e+5]>>>0,c=t[e+6]>>>0,p=t[e+7]>>>0;r[n++]=a>>>0&255,r[n++]=a>>>8&255,r[n++]=a>>>16&255,r[n++]=a>>>24&255,r[n++]=s>>>0&255,r[n++]=s>>>8&255,r[n++]=s>>>16&255,r[n++]=s>>>24&255,r[n++]=o>>>0&255,r[n++]=o>>>8&255,r[n++]=o>>>16&255,r[n++]=o>>>24&255,r[n++]=l>>>0&255,r[n++]=l>>>8&255,r[n++]=l>>>16&255,r[n++]=l>>>24&255,r[n++]=u>>>0&255,r[n++]=u>>>8&255,r[n++]=u>>>16&255,r[n++]=u>>>24&255,r[n++]=h>>>0&255,r[n++]=h>>>8&255,r[n++]=h>>>16&255,r[n++]=h>>>24&255,r[n++]=c>>>0&255,r[n++]=c>>>8&255,r[n++]=c>>>16&255,r[n++]=c>>>24&255,r[n++]=p>>>0&255,r[n++]=p>>>8&255,r[n++]=p>>>16&255,r[n]=p>>>24&255}function Ow(t,e,r,i){let n=i,a=t[e]>>>0,s=t[e+1]>>>0,o=t[e+2]>>>0,l=t[e+3]>>>0,u=t[e+4]>>>0,h=t[e+5]>>>0,c=t[e+6]>>>0,p=t[e+7]>>>0,f=t[e+8]>>>0;r[n++]=a>>>0&511,r[n++]=a>>>9&511,r[n++]=a>>>18&511,r[n++]=(a>>>27|(s&15)<<5)&511,r[n++]=s>>>4&511,r[n++]=s>>>13&511,r[n++]=s>>>22&511,r[n++]=(s>>>31|(o&255)<<1)&511,r[n++]=o>>>8&511,r[n++]=o>>>17&511,r[n++]=(o>>>26|(l&7)<<6)&511,r[n++]=l>>>3&511,r[n++]=l>>>12&511,r[n++]=l>>>21&511,r[n++]=(l>>>30|(u&127)<<2)&511,r[n++]=u>>>7&511,r[n++]=u>>>16&511,r[n++]=(u>>>25|(h&3)<<7)&511,r[n++]=h>>>2&511,r[n++]=h>>>11&511,r[n++]=h>>>20&511,r[n++]=(h>>>29|(c&63)<<3)&511,r[n++]=c>>>6&511,r[n++]=c>>>15&511,r[n++]=(c>>>24|(p&1)<<8)&511,r[n++]=p>>>1&511,r[n++]=p>>>10&511,r[n++]=p>>>19&511,r[n++]=(p>>>28|(f&31)<<4)&511,r[n++]=f>>>5&511,r[n++]=f>>>14&511,r[n]=f>>>23&511}function Rw(t,e,r,i){let n=i,a=t[e]>>>0,s=t[e+1]>>>0,o=t[e+2]>>>0,l=t[e+3]>>>0,u=t[e+4]>>>0,h=t[e+5]>>>0,c=t[e+6]>>>0,p=t[e+7]>>>0,f=t[e+8]>>>0,d=t[e+9]>>>0;r[n++]=a>>>0&1023,r[n++]=a>>>10&1023,r[n++]=a>>>20&1023,r[n++]=(a>>>30|(s&255)<<2)&1023,r[n++]=s>>>8&1023,r[n++]=s>>>18&1023,r[n++]=(s>>>28|(o&63)<<4)&1023,r[n++]=o>>>6&1023,r[n++]=o>>>16&1023,r[n++]=(o>>>26|(l&15)<<6)&1023,r[n++]=l>>>4&1023,r[n++]=l>>>14&1023,r[n++]=(l>>>24|(u&3)<<8)&1023,r[n++]=u>>>2&1023,r[n++]=u>>>12&1023,r[n++]=u>>>22&1023,r[n++]=h>>>0&1023,r[n++]=h>>>10&1023,r[n++]=h>>>20&1023,r[n++]=(h>>>30|(c&255)<<2)&1023,r[n++]=c>>>8&1023,r[n++]=c>>>18&1023,r[n++]=(c>>>28|(p&63)<<4)&1023,r[n++]=p>>>6&1023,r[n++]=p>>>16&1023,r[n++]=(p>>>26|(f&15)<<6)&1023,r[n++]=f>>>4&1023,r[n++]=f>>>14&1023,r[n++]=(f>>>24|(d&3)<<8)&1023,r[n++]=d>>>2&1023,r[n++]=d>>>12&1023,r[n]=d>>>22&1023}function $w(t,e,r,i){let n=i,a=t[e]>>>0,s=t[e+1]>>>0,o=t[e+2]>>>0,l=t[e+3]>>>0,u=t[e+4]>>>0,h=t[e+5]>>>0,c=t[e+6]>>>0,p=t[e+7]>>>0,f=t[e+8]>>>0,d=t[e+9]>>>0,y=t[e+10]>>>0;r[n++]=a>>>0&2047,r[n++]=a>>>11&2047,r[n++]=(a>>>22|(s&1)<<10)&2047,r[n++]=s>>>1&2047,r[n++]=s>>>12&2047,r[n++]=(s>>>23|(o&3)<<9)&2047,r[n++]=o>>>2&2047,r[n++]=o>>>13&2047,r[n++]=(o>>>24|(l&7)<<8)&2047,r[n++]=l>>>3&2047,r[n++]=l>>>14&2047,r[n++]=(l>>>25|(u&15)<<7)&2047,r[n++]=u>>>4&2047,r[n++]=u>>>15&2047,r[n++]=(u>>>26|(h&31)<<6)&2047,r[n++]=h>>>5&2047,r[n++]=h>>>16&2047,r[n++]=(h>>>27|(c&63)<<5)&2047,r[n++]=c>>>6&2047,r[n++]=c>>>17&2047,r[n++]=(c>>>28|(p&127)<<4)&2047,r[n++]=p>>>7&2047,r[n++]=p>>>18&2047,r[n++]=(p>>>29|(f&255)<<3)&2047,r[n++]=f>>>8&2047,r[n++]=f>>>19&2047,r[n++]=(f>>>30|(d&511)<<2)&2047,r[n++]=d>>>9&2047,r[n++]=d>>>20&2047,r[n++]=(d>>>31|(y&1023)<<1)&2047,r[n++]=y>>>10&2047,r[n]=y>>>21&2047}function Nw(t,e,r,i){let n=i,a=t[e]>>>0,s=t[e+1]>>>0,o=t[e+2]>>>0,l=t[e+3]>>>0,u=t[e+4]>>>0,h=t[e+5]>>>0,c=t[e+6]>>>0,p=t[e+7]>>>0,f=t[e+8]>>>0,d=t[e+9]>>>0,y=t[e+10]>>>0,m=t[e+11]>>>0;r[n++]=a>>>0&4095,r[n++]=a>>>12&4095,r[n++]=(a>>>24|(s&15)<<8)&4095,r[n++]=s>>>4&4095,r[n++]=s>>>16&4095,r[n++]=(s>>>28|(o&255)<<4)&4095,r[n++]=o>>>8&4095,r[n++]=o>>>20&4095,r[n++]=l>>>0&4095,r[n++]=l>>>12&4095,r[n++]=(l>>>24|(u&15)<<8)&4095,r[n++]=u>>>4&4095,r[n++]=u>>>16&4095,r[n++]=(u>>>28|(h&255)<<4)&4095,r[n++]=h>>>8&4095,r[n++]=h>>>20&4095,r[n++]=c>>>0&4095,r[n++]=c>>>12&4095,r[n++]=(c>>>24|(p&15)<<8)&4095,r[n++]=p>>>4&4095,r[n++]=p>>>16&4095,r[n++]=(p>>>28|(f&255)<<4)&4095,r[n++]=f>>>8&4095,r[n++]=f>>>20&4095,r[n++]=d>>>0&4095,r[n++]=d>>>12&4095,r[n++]=(d>>>24|(y&15)<<8)&4095,r[n++]=y>>>4&4095,r[n++]=y>>>16&4095,r[n++]=(y>>>28|(m&255)<<4)&4095,r[n++]=m>>>8&4095,r[n]=m>>>20&4095}function Uw(t,e,r,i){let n=i,a=t[e]>>>0,s=t[e+1]>>>0,o=t[e+2]>>>0,l=t[e+3]>>>0,u=t[e+4]>>>0,h=t[e+5]>>>0,c=t[e+6]>>>0,p=t[e+7]>>>0,f=t[e+8]>>>0,d=t[e+9]>>>0,y=t[e+10]>>>0,m=t[e+11]>>>0,g=t[e+12]>>>0,x=t[e+13]>>>0,v=t[e+14]>>>0,b=t[e+15]>>>0;r[n++]=a>>>0&65535,r[n++]=a>>>16&65535,r[n++]=s>>>0&65535,r[n++]=s>>>16&65535,r[n++]=o>>>0&65535,r[n++]=o>>>16&65535,r[n++]=l>>>0&65535,r[n++]=l>>>16&65535,r[n++]=u>>>0&65535,r[n++]=u>>>16&65535,r[n++]=h>>>0&65535,r[n++]=h>>>16&65535,r[n++]=c>>>0&65535,r[n++]=c>>>16&65535,r[n++]=p>>>0&65535,r[n++]=p>>>16&65535,r[n++]=f>>>0&65535,r[n++]=f>>>16&65535,r[n++]=d>>>0&65535,r[n++]=d>>>16&65535,r[n++]=y>>>0&65535,r[n++]=y>>>16&65535,r[n++]=m>>>0&65535,r[n++]=m>>>16&65535,r[n++]=g>>>0&65535,r[n++]=g>>>16&65535,r[n++]=x>>>0&65535,r[n++]=x>>>16&65535,r[n++]=v>>>0&65535,r[n++]=v>>>16&65535,r[n++]=b>>>0&65535,r[n]=b>>>16&65535}function qw(t,e,r,i){let n=i,a=e;for(let s=0;s<8;s++){let o=t[a++]>>>0;r[n++]=o>>>0&1,r[n++]=o>>>1&1,r[n++]=o>>>2&1,r[n++]=o>>>3&1,r[n++]=o>>>4&1,r[n++]=o>>>5&1,r[n++]=o>>>6&1,r[n++]=o>>>7&1,r[n++]=o>>>8&1,r[n++]=o>>>9&1,r[n++]=o>>>10&1,r[n++]=o>>>11&1,r[n++]=o>>>12&1,r[n++]=o>>>13&1,r[n++]=o>>>14&1,r[n++]=o>>>15&1,r[n++]=o>>>16&1,r[n++]=o>>>17&1,r[n++]=o>>>18&1,r[n++]=o>>>19&1,r[n++]=o>>>20&1,r[n++]=o>>>21&1,r[n++]=o>>>22&1,r[n++]=o>>>23&1,r[n++]=o>>>24&1,r[n++]=o>>>25&1,r[n++]=o>>>26&1,r[n++]=o>>>27&1,r[n++]=o>>>28&1,r[n++]=o>>>29&1,r[n++]=o>>>30&1,r[n++]=o>>>31&1}}function jw(t,e,r,i){let n=i,a=e;for(let s=0;s<8;s++){let o=t[a++]>>>0,l=t[a++]>>>0;r[n++]=o>>>0&3,r[n++]=o>>>2&3,r[n++]=o>>>4&3,r[n++]=o>>>6&3,r[n++]=o>>>8&3,r[n++]=o>>>10&3,r[n++]=o>>>12&3,r[n++]=o>>>14&3,r[n++]=o>>>16&3,r[n++]=o>>>18&3,r[n++]=o>>>20&3,r[n++]=o>>>22&3,r[n++]=o>>>24&3,r[n++]=o>>>26&3,r[n++]=o>>>28&3,r[n++]=o>>>30&3,r[n++]=l>>>0&3,r[n++]=l>>>2&3,r[n++]=l>>>4&3,r[n++]=l>>>6&3,r[n++]=l>>>8&3,r[n++]=l>>>10&3,r[n++]=l>>>12&3,r[n++]=l>>>14&3,r[n++]=l>>>16&3,r[n++]=l>>>18&3,r[n++]=l>>>20&3,r[n++]=l>>>22&3,r[n++]=l>>>24&3,r[n++]=l>>>26&3,r[n++]=l>>>28&3,r[n++]=l>>>30&3}}function Gw(t,e,r,i){let n=i,a=e;for(let s=0;s<8;s++){let o=t[a++]>>>0,l=t[a++]>>>0,u=t[a++]>>>0;r[n++]=o>>>0&7,r[n++]=o>>>3&7,r[n++]=o>>>6&7,r[n++]=o>>>9&7,r[n++]=o>>>12&7,r[n++]=o>>>15&7,r[n++]=o>>>18&7,r[n++]=o>>>21&7,r[n++]=o>>>24&7,r[n++]=o>>>27&7,r[n++]=(o>>>30|(l&1)<<2)&7,r[n++]=l>>>1&7,r[n++]=l>>>4&7,r[n++]=l>>>7&7,r[n++]=l>>>10&7,r[n++]=l>>>13&7,r[n++]=l>>>16&7,r[n++]=l>>>19&7,r[n++]=l>>>22&7,r[n++]=l>>>25&7,r[n++]=l>>>28&7,r[n++]=(l>>>31|(u&3)<<1)&7,r[n++]=u>>>2&7,r[n++]=u>>>5&7,r[n++]=u>>>8&7,r[n++]=u>>>11&7,r[n++]=u>>>14&7,r[n++]=u>>>17&7,r[n++]=u>>>20&7,r[n++]=u>>>23&7,r[n++]=u>>>26&7,r[n++]=u>>>29&7}}function Xw(t,e,r,i){let n=i,a=e;for(let s=0;s<8;s++){let o=t[a++]>>>0,l=t[a++]>>>0,u=t[a++]>>>0,h=t[a++]>>>0;r[n++]=o>>>0&15,r[n++]=o>>>4&15,r[n++]=o>>>8&15,r[n++]=o>>>12&15,r[n++]=o>>>16&15,r[n++]=o>>>20&15,r[n++]=o>>>24&15,r[n++]=o>>>28&15,r[n++]=l>>>0&15,r[n++]=l>>>4&15,r[n++]=l>>>8&15,r[n++]=l>>>12&15,r[n++]=l>>>16&15,r[n++]=l>>>20&15,r[n++]=l>>>24&15,r[n++]=l>>>28&15,r[n++]=u>>>0&15,r[n++]=u>>>4&15,r[n++]=u>>>8&15,r[n++]=u>>>12&15,r[n++]=u>>>16&15,r[n++]=u>>>20&15,r[n++]=u>>>24&15,r[n++]=u>>>28&15,r[n++]=h>>>0&15,r[n++]=h>>>4&15,r[n++]=h>>>8&15,r[n++]=h>>>12&15,r[n++]=h>>>16&15,r[n++]=h>>>20&15,r[n++]=h>>>24&15,r[n++]=h>>>28&15}}function Yw(t,e,r,i){let n=i,a=e;for(let s=0;s<8;s++){let o=t[a++]>>>0,l=t[a++]>>>0,u=t[a++]>>>0,h=t[a++]>>>0,c=t[a++]>>>0;r[n++]=o>>>0&31,r[n++]=o>>>5&31,r[n++]=o>>>10&31,r[n++]=o>>>15&31,r[n++]=o>>>20&31,r[n++]=o>>>25&31,r[n++]=(o>>>30|(l&7)<<2)&31,r[n++]=l>>>3&31,r[n++]=l>>>8&31,r[n++]=l>>>13&31,r[n++]=l>>>18&31,r[n++]=l>>>23&31,r[n++]=(l>>>28|(u&1)<<4)&31,r[n++]=u>>>1&31,r[n++]=u>>>6&31,r[n++]=u>>>11&31,r[n++]=u>>>16&31,r[n++]=u>>>21&31,r[n++]=u>>>26&31,r[n++]=(u>>>31|(h&15)<<1)&31,r[n++]=h>>>4&31,r[n++]=h>>>9&31,r[n++]=h>>>14&31,r[n++]=h>>>19&31,r[n++]=h>>>24&31,r[n++]=(h>>>29|(c&3)<<3)&31,r[n++]=c>>>2&31,r[n++]=c>>>7&31,r[n++]=c>>>12&31,r[n++]=c>>>17&31,r[n++]=c>>>22&31,r[n++]=c>>>27&31}}function Ww(t,e,r,i){let n=i,a=e;for(let s=0;s<8;s++){let o=t[a++]>>>0,l=t[a++]>>>0,u=t[a++]>>>0,h=t[a++]>>>0,c=t[a++]>>>0,p=t[a++]>>>0;r[n++]=o>>>0&63,r[n++]=o>>>6&63,r[n++]=o>>>12&63,r[n++]=o>>>18&63,r[n++]=o>>>24&63,r[n++]=(o>>>30|(l&15)<<2)&63,r[n++]=l>>>4&63,r[n++]=l>>>10&63,r[n++]=l>>>16&63,r[n++]=l>>>22&63,r[n++]=(l>>>28|(u&3)<<4)&63,r[n++]=u>>>2&63,r[n++]=u>>>8&63,r[n++]=u>>>14&63,r[n++]=u>>>20&63,r[n++]=u>>>26&63,r[n++]=h>>>0&63,r[n++]=h>>>6&63,r[n++]=h>>>12&63,r[n++]=h>>>18&63,r[n++]=h>>>24&63,r[n++]=(h>>>30|(c&15)<<2)&63,r[n++]=c>>>4&63,r[n++]=c>>>10&63,r[n++]=c>>>16&63,r[n++]=c>>>22&63,r[n++]=(c>>>28|(p&3)<<4)&63,r[n++]=p>>>2&63,r[n++]=p>>>8&63,r[n++]=p>>>14&63,r[n++]=p>>>20&63,r[n++]=p>>>26&63}}function Zw(t,e,r,i){let n=i,a=e;for(let s=0;s<8;s++){let o=t[a++]>>>0,l=t[a++]>>>0,u=t[a++]>>>0,h=t[a++]>>>0,c=t[a++]>>>0,p=t[a++]>>>0,f=t[a++]>>>0;r[n++]=o>>>0&127,r[n++]=o>>>7&127,r[n++]=o>>>14&127,r[n++]=o>>>21&127,r[n++]=(o>>>28|(l&7)<<4)&127,r[n++]=l>>>3&127,r[n++]=l>>>10&127,r[n++]=l>>>17&127,r[n++]=l>>>24&127,r[n++]=(l>>>31|(u&63)<<1)&127,r[n++]=u>>>6&127,r[n++]=u>>>13&127,r[n++]=u>>>20&127,r[n++]=(u>>>27|(h&3)<<5)&127,r[n++]=h>>>2&127,r[n++]=h>>>9&127,r[n++]=h>>>16&127,r[n++]=h>>>23&127,r[n++]=(h>>>30|(c&31)<<2)&127,r[n++]=c>>>5&127,r[n++]=c>>>12&127,r[n++]=c>>>19&127,r[n++]=(c>>>26|(p&1)<<6)&127,r[n++]=p>>>1&127,r[n++]=p>>>8&127,r[n++]=p>>>15&127,r[n++]=p>>>22&127,r[n++]=(p>>>29|(f&15)<<3)&127,r[n++]=f>>>4&127,r[n++]=f>>>11&127,r[n++]=f>>>18&127,r[n++]=f>>>25&127}}function Hw(t,e,r,i){let n=i,a=e;for(let s=0;s<8;s++){let o=t[a++]>>>0,l=t[a++]>>>0,u=t[a++]>>>0,h=t[a++]>>>0,c=t[a++]>>>0,p=t[a++]>>>0,f=t[a++]>>>0,d=t[a++]>>>0;r[n++]=o>>>0&255,r[n++]=o>>>8&255,r[n++]=o>>>16&255,r[n++]=o>>>24&255,r[n++]=l>>>0&255,r[n++]=l>>>8&255,r[n++]=l>>>16&255,r[n++]=l>>>24&255,r[n++]=u>>>0&255,r[n++]=u>>>8&255,r[n++]=u>>>16&255,r[n++]=u>>>24&255,r[n++]=h>>>0&255,r[n++]=h>>>8&255,r[n++]=h>>>16&255,r[n++]=h>>>24&255,r[n++]=c>>>0&255,r[n++]=c>>>8&255,r[n++]=c>>>16&255,r[n++]=c>>>24&255,r[n++]=p>>>0&255,r[n++]=p>>>8&255,r[n++]=p>>>16&255,r[n++]=p>>>24&255,r[n++]=f>>>0&255,r[n++]=f>>>8&255,r[n++]=f>>>16&255,r[n++]=f>>>24&255,r[n++]=d>>>0&255,r[n++]=d>>>8&255,r[n++]=d>>>16&255,r[n++]=d>>>24&255}}function Kw(t,e,r,i){let n=i,a=e;for(let s=0;s<128;s++){let o=t[a++]>>>0;r[n++]=o&65535,r[n++]=o>>>16&65535}}function Jw(t,e,r,i,n){let a=pl[n]>>>0,s=e,o=0,l=t[s]>>>0,u=i;for(let h=0;h<8;h++){for(let c=0;c<32;c++)if(o+n<=32){let p=l>>>o&a;r[u+c]=p|0,o+=n,o===32&&(o=0,s++,c!==31&&(l=t[s]>>>0))}else{let p=32-o,f=l>>>o;s++,l=t[s]>>>0;let d=n-p,y=-1>>>32-d>>>0,m=(f|(l&y)<>>0)}}var fl=Py(bu),Qw=3*fl/256+fl|0;function zy(){let t=new Uint8Array(Qw);return{dataToBePacked:Array(33),dataPointers:new Int32Array(33),byteContainer:t,byteContainerI32:new Int32Array(t.buffer,t.byteOffset,t.byteLength>>>2),exceptionSizes:new Int32Array(33)}}function t3(t=16){if(t<0)throw RangeError(`initialEncodedWordCapacity must be >= 0, got ${t}`);let e=Math.max(16,t|0);return{encodedWords:new Uint32Array(e),decoderWorkspace:zy()}}function e3(t,e){if(e<=t.encodedWords.length)return t.encodedWords;let r=new Uint32Array(Math.max(16,e*2));return t.encodedWords=r,r}function r3(t,e,r,i){i.byteContainer.length>>2;if(n.byteOffset&3)for(let o=0;o>>8&255,n[u+2|0]=l>>>16&255,n[u+3|0]=l>>>24&255}else{let o=i.byteContainerI32;(!o||o.buffer!==n.buffer||o.byteOffset!==n.byteOffset||o.length>>2)),o.set(t.subarray(e,e+a))}let s=r&3;if(s>0){let o=t[e+a|0]|0,l=a<<2;for(let u=0;u>>(u<<3)&255}return n}function i3(t,e,r){let i=t[e++]|0,n=r.dataToBePacked;for(let a=2;a<=32;a=a+1|0){if(!(i>>>a-1&1))continue;if(e>=t.length)throw Error(`FastPFOR decode: truncated exception stream header (bitWidth=${a}, streamWordIndex=${e}, needWords=1, availableWords=${t.length-e}, encodedWords=${t.length})`);let s=t[e++]>>>0,o=kw(s),l=s*a+31>>>5;if(e+l>t.length)throw Error(`FastPFOR decode: truncated exception stream (bitWidth=${a}, size=${s}, streamWordIndex=${e}, needWords=${l}, availableWords=${t.length-e}, encodedWords=${t.length})`);let u=n[a];(!u||u.length>>5)|0,r.exceptionSizes[a]=s}return e}function n3(t,e,r,i,n){switch(n){case 1:qw(t,e,r,i);break;case 2:jw(t,e,r,i);break;case 3:Gw(t,e,r,i);break;case 4:Xw(t,e,r,i);break;case 5:Yw(t,e,r,i);break;case 6:Ww(t,e,r,i);break;case 7:Zw(t,e,r,i);break;case 8:Hw(t,e,r,i);break;case 16:Kw(t,e,r,i);break;default:Jw(t,e,r,i,n)}return e+(n<<3)|0}function a3(t,e,r,i){if(r+2>e)throw Error(`FastPFOR decode: byteContainer underflow at block=${i} (need 2 bytes for [bitWidth, exceptionCount], bytePos=${r}, byteSize=${e})`);let n=t[r++],a=t[r++];if(n>32)throw Error(`FastPFOR decode: invalid bitWidth=${n} at block=${i} (expected 0..32). This likely indicates corrupted or truncated input.`);return{bitWidth:n,exceptionCount:a,bytePosIn:r}}function s3(t,e,r,i,n,a){if(r+1>e)throw Error(`FastPFOR decode: exception header underflow at block=${a} (need 1 byte for maxBits, bytePos=${r}, byteSize=${e})`);let s=t[r++];if(s32)throw Error(`FastPFOR decode: invalid maxBits=${s} at block=${a} (bitWidth=${i}, expected ${i}..32)`);let o=s-i|0;if(o<1||o>32)throw Error(`FastPFOR decode: invalid exceptionBitWidth=${o} at block=${a} (bitWidth=${i}, maxBits=${s})`);if(r+n>e)throw Error(`FastPFOR decode: exception positions underflow at block=${a} (need=${n}, have=${e-r})`);return{maxBits:s,exceptionBitWidth:o,bytePosIn:r}}function o3(t,e,r,i,n,a,s,o,l){let{maxBits:u,exceptionBitWidth:h,bytePosIn:c}=s3(n,a,s,r,i,l);if(s=c,h===1){let m=1<y)throw Error(`FastPFOR decode: exception stream overflow for exceptionBitWidth=${h} (ptr=${d}, need ${i}, size=${y}) at block ${l}`);for(let m=0;m0&&(c=o3(n,m,d,y,o,l,c,u,p))}if(h!==i)throw Error(`FastPFOR decode: packed region mismatch (pageStart=${e}, packedStart=${r}, consumedPackedEnd=${h}, expectedPackedEnd=${i}, packedWords=${i-r}, encoded.length=${t.length})`)}function u3(t,e,r,i,n,a){let s=r|0,o=t[s]|0;if(o<=0||s+o>t.length-1)throw Error(`FastPFOR decode: invalid whereMeta=${o} at pageStart=${s} (expected > 0 and pageStart+whereMeta < encoded.length=${t.length})`);let l=s+1|0,u=s+o|0,h=t[u]>>>0,c=h+3>>>2,p=u+1,f=p+c;if(f>=t.length)throw Error(`FastPFOR decode: invalid byteSize=${h} (metaInts=${c}, pageStart=${s}, packedEnd=${u}, byteContainerStart=${p}) causes bitmapPos=${f} out of bounds (encoded.length=${t.length})`);let d=r3(t,p,h,a),y=h,m=i3(t,f,a);return a.dataPointers.fill(0),l3(t,s,l,u,e,i|0,n/256|0,d,y,a),m}function h3(t,e,r,i,n,a){let s=i+wu(n,256),o=i,l=r;for(;o!==s;){let u=Math.min(fl,s-o);l=u3(t,e,l,o,u,a),o=o+u|0}return l}function c3(t,e,r,i,n,a){if(a===0)return e;let s=0,o=e,l=e+r,u=n,h=n,c=n+a,p=0,f=0;for(;o>>s&255;if(s+=8,o+=s>>>5,s&=31,p|=(d&127)<28)throw Error(`FastPFOR VByte: unterminated value (expected MSB=1 terminator within 5 bytes; shift=${f}, partial=${p}, decoded=${h-u}/${a}, inPos=${o}, inEnd=${l})`)}if(h!==c)throw Error(`FastPFOR VByte: truncated stream (decoded=${h-u}, expected=${a}, consumedWords=${o-e}/${r}, vbyteStart=${e}, vbyteEnd=${l})`);return o}function p3(t,e,r){let i=0,n=0,a=new Uint32Array(e),s=r!=null?r:zy();if(t.length>0){let u=t[i]|0;if(i=i+1|0,u&255)throw Error(`FastPFOR decode: invalid alignedLength=${u} (expected multiple of 256)`);if(n+u>a.length)throw Error(`FastPFOR decode: output buffer too small (outPos=${n}, alignedLength=${u}, out.length=${a.length})`);i=h3(t,a,i,n,u,s),n=n+u|0}let o=t.length-i|0,l=e-n|0;return c3(t,i,o,a,n,l),a}function f3(t,e,r,i,n){switch(n){case 2:Cw(t,e,r,i);return;case 3:Mw(t,e,r,i);return;case 4:Bw(t,e,r,i);return;case 5:Pw(t,e,r,i);return;case 6:zw(t,e,r,i);return;case 7:Lw(t,e,r,i);return;case 8:Vw(t,e,r,i);return;case 9:Ow(t,e,r,i);return;case 10:Rw(t,e,r,i);return;case 11:$w(t,e,r,i);return;case 12:Nw(t,e,r,i);return;case 16:Uw(t,e,r,i);return;case 32:for(let u=0;u<32;u=u+1|0)r[i+u|0]=t[e+u|0]|0;return}let a=pl[n]>>>0,s=e,o=0,l=t[s]>>>0;for(let u=0;u<32;u++)if(o+n<=32){let h=l>>>o&a;r[i+u]=h|0,o+=n,o===32&&(o=0,s++,u!==31&&(l=t[s]>>>0))}else{let h=32-o,c=l>>>o;s++,l=t[s]>>>0;let p=pl[n-h]>>>0,f=(c|(l&p)<t.length)throw RangeError(`decodeBigEndianInt32sInto: out of bounds (offset=${e}, byteLength=${r}, bytes.length=${t.length})`);let n=Math.floor(r/4),a=r%4!=0,s=a?n+1:n;if(i.length0){let o=t.byteOffset+e;if(o&3)for(let l=0;l=64)throw Error("Varint too long")}return e.set(n),r}function m3(t,e,r){let i=new Float64Array(r);for(let n=0;n>4,n<128||(n=e[r.get()],r.increment(),i|=(n&127)<<3,n<128)||(n=e[r.get()],r.increment(),i|=(n&127)<<10,n<128)||(n=e[r.get()],r.increment(),i|=(n&127)<<17,n<128)||(n=e[r.get()],r.increment(),i|=(n&127)<<24,n<128)||(n=e[r.get()],r.increment(),i|=(n&1)<<31,n<128))return i*4294967296+(t>>>0);throw Error("Expected varint not more than 10 bytes")}function v3(t,e,r,i){return b3(t,e,r,i,t3(r>>>2))}function b3(t,e,r,i,n){let a=i.get();if(r&3)throw Error(`FastPFOR: invalid encodedByteLength=${r} at offset=${a} (encodedBytes.length=${t.length}; expected a multiple of 4 bytes for an int32 big-endian word stream)`);let s=r>>>2,o=e3(n,s);d3(t,a,r,o);let l=p3(o.subarray(0,s),e,n.decoderWorkspace);return i.add(r),l}function tt(t){return t>>>1^-(t&1)}function Ot(t){return t>>BigInt(1)^-(t&BigInt(1))}function He(t){return t%2==1?(t+1)/-2:t/2}function w3(t){let e=new Int32Array(t.length);for(let r=0;r=4)for(;i=4)for(;i=4)for(;r=4)for(let i=t[0];r=4)for(;i=4)for(;l>>0;for(let r=1;r>>0;return e}function hp(t){let e=new BigUint64Array(t.length);e[0]=BigInt.asUintN(64,Ot(t[0]));for(let r=1;r>>0,e[1]=tt(t[1])>>>0;for(let r=2;r>>0,e[r+1]=e[r-1]+tt(t[r+1])>>>0;return e}function L3(t,e,r,i){let n=Vy(t,e,r,i);return new Uint32Array(n)}function V3(t){return t[1]}function O3(t){return tt(t[1])}function R3(t){if(t.length===2){let e=tt(t[1]);return[e,e]}return[tt(t[2]),tt(t[3])]}function $3(t){return t[1]}function N3(t){return Ot(t[1])}function U3(t){if(t.length===2){let e=Ot(t[1]);return[e,e]}return[Ot(t[2]),Ot(t[3])]}var At;(function(t){t.PRESENT="PRESENT",t.DATA="DATA",t.OFFSET="OFFSET",t.LENGTH="LENGTH"})(At||(At={}));var qt;(function(t){t.NONE="NONE",t.SINGLE="SINGLE",t.SHARED="SHARED",t.VERTEX="VERTEX",t.MORTON="MORTON",t.FSST="FSST"})(qt||(qt={}));var be;(function(t){t.VERTEX="VERTEX",t.INDEX="INDEX",t.STRING="STRING",t.KEY="KEY"})(be||(be={}));var Ft;(function(t){t.VAR_BINARY="VAR_BINARY",t.GEOMETRIES="GEOMETRIES",t.PARTS="PARTS",t.RINGS="RINGS",t.TRIANGLES="TRIANGLES",t.SYMBOL="SYMBOL",t.DICTIONARY="DICTIONARY"})(Ft||(Ft={}));var q3=[At.PRESENT,At.DATA,At.OFFSET,At.LENGTH],cp=[Z.NONE,Z.DELTA,Z.COMPONENTWISE_DELTA,Z.RLE,Z.MORTON],j3=[re.NONE,re.FAST_PFOR,re.VARINT],G3=[qt.NONE,qt.SINGLE,qt.SHARED,qt.VERTEX,qt.MORTON,qt.FSST],X3=[be.VERTEX,be.INDEX,be.STRING,be.KEY],Y3=[Ft.VAR_BINARY,Ft.GEOMETRIES,Ft.PARTS,Ft.RINGS,Ft.TRIANGLES,Ft.SYMBOL,Ft.DICTIONARY];function ht(t,e){let r=H3(t,e);return r.logicalLevelTechnique1===Z.MORTON?W3(r,t,e):(Z.RLE===r.logicalLevelTechnique1||Z.RLE===r.logicalLevelTechnique2)&&re.NONE!==r.physicalLevelTechnique?Z3(r,t,e):r}function W3(t,e,r){let i=Rt(e,r,2);return{physicalStreamType:t.physicalStreamType,logicalStreamType:t.logicalStreamType,logicalLevelTechnique1:t.logicalLevelTechnique1,logicalLevelTechnique2:t.logicalLevelTechnique2,physicalLevelTechnique:t.physicalLevelTechnique,numValues:t.numValues,byteLength:t.byteLength,decompressedCount:t.decompressedCount,numBits:i[0],coordinateShift:i[1]}}function Z3(t,e,r){let i=Rt(e,r,2);return{physicalStreamType:t.physicalStreamType,logicalStreamType:t.logicalStreamType,logicalLevelTechnique1:t.logicalLevelTechnique1,logicalLevelTechnique2:t.logicalLevelTechnique2,physicalLevelTechnique:t.physicalLevelTechnique,numValues:t.numValues,byteLength:t.byteLength,decompressedCount:i[1],runs:i[0],numRleValues:i[1]}}function H3(t,e){let r=t[e.get()],i=q3[r>>4],n={};switch(i){case At.DATA:n={dictionaryType:G3[r&15]};break;case At.OFFSET:n={offsetType:X3[r&15]};break;case At.LENGTH:n={lengthType:Y3[r&15]}}e.increment();let a=t[e.get()],s=cp[a>>5],o=cp[a>>2&7],l=j3[a&3];e.increment();let u=Rt(t,e,2),h=u[0],c=u[1];return{physicalStreamType:i,logicalStreamType:n,logicalLevelTechnique1:s,logicalLevelTechnique2:o,physicalLevelTechnique:l,numValues:h,byteLength:c,decompressedCount:h}}var ut;(function(t){t[t.FLAT=0]="FLAT",t[t.CONST=1]="CONST",t[t.SEQUENCE=2]="SEQUENCE",t[t.DICTIONARY=3]="DICTIONARY",t[t.FSST_DICTIONARY=4]="FSST_DICTIONARY"})(ut||(ut={}));var de=class{constructor(t,e){this.values=t,this._size=e}get(t){let e=Math.floor(t/8),r=t%8;return(this.values[e]>>r&1)==1}set(t,e){let r=Math.floor(t/8),i=t%8;this.values[r]=this.values[r]|+!!e<>r&1}size(){return this._size}getBuffer(){return this.values}};function kr(t,e,r){if(!e)return t;let i=e.size(),n=t.constructor,a=new n(i),s=0;for(let o=0;o=s);){let o=t[i.increment()];if(o<=127){let l=o+3,u=t[i.increment()],h=Math.min(a+l,e);n.fill(u,a,h),a=h}else{let l=256-o;for(let u=0;u=12?e6.decode(t.subarray(e,r)):r6(t,e,r)}function r6(t,e,r){let i="",n=e;for(;n239?4:a>223?3:a>191?2:1;if(n+o>r)break;let l,u,h;o===1?a<128&&(s=a):o===2?(l=t[n+1],(l&192)==128&&(s=(a&31)<<6|l&63,s<=127&&(s=null))):o===3?(l=t[n+1],u=t[n+2],(l&192)==128&&(u&192)==128&&(s=(a&15)<<12|(l&63)<<6|u&63,(s<=2047||s>=55296&&s<=57343)&&(s=null))):o===4&&(l=t[n+1],u=t[n+2],h=t[n+3],(l&192)==128&&(u&192)==128&&(h&192)==128&&(s=(a&15)<<18|(l&63)<<12|(u&63)<<6|h&63,(s<=65535||s>=1114112)&&(s=null))),s===null?(s=65533,o=1):s>65535&&(s-=65536,i+=String.fromCharCode(s>>>10&1023|55296),s=56320|s&1023),i+=String.fromCharCode(s),n+=o}return i}function Ma(t,e,r,i,n){return o6(pi(t,e,r),r,i,n)}function Vt(t,e,r,i,n){return l6(pi(t,e,r),r,i,n)}function Ke(t,e,r){return h6(pi(t,e,r),r)}function pi(t,e,r){let i=r.physicalLevelTechnique;switch(i){case re.FAST_PFOR:return v3(t,r.numValues,r.byteLength,e);case re.VARINT:return Rt(t,e,r.numValues);case re.NONE:return Q3(t,e,r.numValues);default:throw Error(`Specified physicalLevelTechnique ${i} is not supported (yet).`)}}function Tn(t,e,r){let i=r.physicalLevelTechnique;switch(i){case re.VARINT:return Du(t,e,r.numValues);case re.NONE:return t6(t,e,r.numValues);default:throw Error(`Specified physicalLevelTechnique ${i} is not supported (yet).`)}}function i6(t,e,r){let i=pi(t,e,r);return i.length===1?tt(i[0]):O3(i)}function Su(t,e,r){let i=pi(t,e,r);return i.length===1?r.logicalLevelTechnique1===Z.DELTA?tt(i[0]):i[0]:V3(i)}function Ny(t,e,r){return R3(pi(t,e,r))}function Uy(t,e,r){return U3(Du(t,e,r.numValues))}function qy(t,e,r,i){return Gy(Tn(t,e,r),r,i)}function Eu(t,e,r,i){return Xy(Tn(t,e,r),r,i)}function n6(t,e,r,i){let n=a6(t,e,r,!1);return i?kr(n,i,0):n}function a6(t,e,r,i){if(r.physicalLevelTechnique===re.VARINT)return u6(m3(t,e,r.numValues),r,i);let n=Tn(t,e,r),a=i?Gy(n,r):Xy(n,r);return Float64Array.from(a,Number)}function s6(t,e,r){let i=Tn(t,e,r);return i.length===1?Ot(i[0]):N3(i)}function jy(t,e,r){let i=Tn(t,e,r);return i.length===1?r.logicalLevelTechnique1===Z.DELTA?Ot(i[0]):i[0]:$3(i)}function o6(t,e,r,i){let n;switch(e.logicalLevelTechnique1){case Z.DELTA:if(e.logicalLevelTechnique2===Z.RLE){let a=e;if(!i)return B3(t,a.runs,a.numRleValues);t=dl(t,a.runs,a.numRleValues),n=op(t)}else n=op(t);break;case Z.RLE:n=S3(t,e.runs,e.numRleValues);break;case Z.MORTON:_u(t),n=new Int32Array(t);break;case Z.COMPONENTWISE_DELTA:if(r&&!i)return Vy(t,r.scale,r.min,r.max);n=k3(t);break;case Z.NONE:n=w3(t);break;default:throw Error(`The specified Logical level technique is not supported: ${e.logicalLevelTechnique1}`)}return i?kr(n,i,0):n}function l6(t,e,r,i){let n;switch(e.logicalLevelTechnique1){case Z.DELTA:if(e.logicalLevelTechnique2===Z.RLE){let a=e;n=up(dl(t,a.runs,a.numRleValues))}else n=up(t);break;case Z.RLE:n=dl(t,e.runs,e.numRleValues);break;case Z.MORTON:_u(t),n=t;break;case Z.COMPONENTWISE_DELTA:n=r&&!i?L3(t,r.scale,r.min,r.max):z3(t);break;case Z.NONE:n=t;break;default:throw Error(`The specified Logical level technique is not supported: ${e.logicalLevelTechnique1}`)}return i?kr(n,i,0):n}function Gy(t,e,r){let i;switch(e.logicalLevelTechnique1){case Z.DELTA:if(e.logicalLevelTechnique2===Z.RLE){let n=e;if(!r)return P3(t,n.runs,n.numRleValues);t=yl(t,n.runs,n.numRleValues),i=lp(t)}else i=lp(t);break;case Z.RLE:i=E3(t,e.runs,e.numRleValues);break;case Z.NONE:i=D3(t);break;default:throw Error(`The specified Logical level technique is not supported: ${e.logicalLevelTechnique1}`)}return r?kr(i,r,BigInt(0)):i}function Xy(t,e,r){let i;switch(e.logicalLevelTechnique1){case Z.DELTA:if(e.logicalLevelTechnique2===Z.RLE){let n=e;i=hp(yl(t,n.runs,n.numRleValues))}else i=hp(t);break;case Z.RLE:i=yl(t,e.runs,e.numRleValues);break;case Z.NONE:i=t;break;default:throw Error(`The specified Logical level technique is not supported: ${e.logicalLevelTechnique1}`)}return r?kr(i,r,BigInt(0)):i}function u6(t,e,r){switch(e.logicalLevelTechnique1){case Z.DELTA:if(e.logicalLevelTechnique2===Z.RLE){let i=e;t=Ly(t,i.runs,i.numRleValues)}return A3(t),t;case Z.RLE:return p6(t,e,r);case Z.NONE:return r&&_3(t),t;default:throw Error(`The specified Logical level technique is not supported: ${e.logicalLevelTechnique1}`)}}function h6(t,e){if(e.logicalLevelTechnique1===Z.DELTA&&e.logicalLevelTechnique2===Z.NONE)return I3(t);if(e.logicalLevelTechnique1===Z.RLE&&e.logicalLevelTechnique2===Z.NONE){let r=e;return M3(t,r.runs,r.numRleValues)}if(e.logicalLevelTechnique1===Z.NONE&&e.logicalLevelTechnique2===Z.NONE){T3(t);let r=new Uint32Array(e.numValues+1);return r[0]=0,r.set(t,1),r}if(e.logicalLevelTechnique1===Z.DELTA&&e.logicalLevelTechnique2===Z.RLE){let r=e,i=C3(t,r.runs,r.numRleValues);return _u(i),new Uint32Array(i)}throw Error("Only delta encoding is supported for transforming length to offset streams yet.")}function rs(t,e,r,i,n="int32"){let a=t.logicalLevelTechnique1;if(a===Z.RLE)return t.runs===1?ut.CONST:ut.FLAT;if(a!==Z.DELTA||t.logicalLevelTechnique2!==Z.RLE)return t.numValues===1?ut.CONST:ut.FLAT;let s=e instanceof de?e.size():e,o=t;if(o.numRleValues!==s)return ut.FLAT;if(o.runs===1)return ut.SEQUENCE;if(o.runs!==2)return t.numValues===1?ut.CONST:ut.FLAT;let l=i.get();if(t.physicalLevelTechnique===re.VARINT)return c6(r,i,n)?ut.SEQUENCE:t.numValues===1?ut.CONST:ut.FLAT;let u=i.get(),h=new Int32Array(r.buffer,r.byteOffset+u,4);return i.set(l),h[2]===2&&h[3]===2?ut.SEQUENCE:t.numValues===1?ut.CONST:ut.FLAT}function c6(t,e,r){let i=new By(e.get());if(r==="int64"){let a=Du(t,i,4);return a[2]===BigInt(2)&&a[3]===BigInt(2)}let n=Rt(t,i,4);return n[2]===2&&n[3]===2}function p6(t,e,r){return r?F3(t,e.runs,e.numRleValues):Ly(t,e.runs,e.numRleValues)}var Yy=class extends es{getValueFromBuffer(t){return this.dataBuffer[t]}},Wy=class extends Cy{constructor(t,e,r,i,n){super(t,n?BigInt64Array.of(e):BigUint64Array.of(e),r,i)}getValueFromBuffer(t){return this.dataBuffer[0]+BigInt(t)*this.delta}};function Fu(t,e,r){return{x:pp(t,e)-r,y:pp(t>>1,e)-r}}function pp(t,e){let r=0;for(let i=0;i>i;return r}var Pt;(function(t){t[t.POINT=0]="POINT",t[t.LINESTRING=1]="LINESTRING",t[t.POLYGON=2]="POLYGON",t[t.MULTIPOINT=3]="MULTIPOINT",t[t.MULTILINESTRING=4]="MULTILINESTRING",t[t.MULTIPOLYGON=5]="MULTIPOLYGON"})(Pt||(Pt={}));var fp;(function(t){t[t.POINT=0]="POINT",t[t.LINESTRING=1]="LINESTRING",t[t.POLYGON=2]="POLYGON"})(fp||(fp={}));var nr;(function(t){t[t.MORTON=0]="MORTON",t[t.VEC_2=1]="VEC_2",t[t.VEC_3=2]="VEC_3"})(nr||(nr={}));function f6(t){let e=Array(t.numGeometries),r=1,i=1,n=1,a=0,s=0,o=0,l=t.mortonSettings,u=t.topologyVector,h=u.geometryOffsets,c=u.partOffsets,p=u.ringOffsets,f=t.vertexOffsets,d=!f||f.length===0,y=t.containsPolygonGeometry(),m=t.vertexBuffer;for(let g=0;g[w]),r+=v,i+=v}break;case Pt.LINESTRING:{let v;y?(v=p[i]-p[i-1],i++):v=c[r]-c[r-1],r++;let b;d?(b=Or(m,s,v,!1),s+=v*2):(b=pr(t.vertexBufferType,m,f,o,v,!1,l),o+=v),e[a++]=[b],h&&n++}break;case Pt.POLYGON:{let v=c[r]-c[r-1];r++;let b=Array(v-1),w,_=p[i]-p[i-1];if(i++,d){w=Or(m,s,_,!0),s+=_*2;for(let A=0;Ar?e[a++]:1);return i}function mp(t,e,r,i){let n=new Uint32Array(e[e.length-1]+1),a=0;n[0]=a;let s=1,o=0;for(let l=0;l0;)n[a++]=t[u++]}}return n}var e1=class extends Tu{constructor(t,e,r,i,n,a,s,o){super(t,r,i,s!=null?s:e.length),this.indexBuffer=e,this.symbolOffsetBuffer=n,this.symbolTableBuffer=a,this.sharedDictionaryCache=o}getValueFromBuffer(t){var n,a,s;(s=this.decodedDictionary)!=null||(this.decodedDictionary=(n=this.sharedDictionaryCache)==null?void 0:n.decodedDictionary,(a=this.decodedDictionary)!=null||(this.decodedDictionary=this.decodeDictionary(),this.sharedDictionaryCache&&(this.sharedDictionaryCache.decodedDictionary=this.decodedDictionary)));let e=this.indexBuffer[t],r=this.offsetBuffer[e],i=this.offsetBuffer[e+1];return Au(this.decodedDictionary,r,i)}decodeDictionary(){var t;return(t=this.symbolLengthBuffer)!=null||(this.symbolLengthBuffer=this.offsetToLengthBuffer(this.symbolOffsetBuffer)),F6(this.symbolTableBuffer,this.symbolLengthBuffer,this.dataBuffer)}offsetToLengthBuffer(t){let e=new Uint32Array(t.length-1),r=t[0];for(let i=1;i1&&!f.nullable||d===1&&f.nullable)throw Error(`The number of streams for the child field ${f.name} does not match its nullability. nullibilty: ${f.nullable}, numStreams: ${d}`);let m;if(f.nullable){let x=ht(t,e);m=new de(ci(t,x.numValues,x.byteLength,e),x.numValues)}let g=Vt(t,e,ht(t,e),void 0,m);if(o){if(!s)throw Error(`Incomplete shared FSST dictionary for column "${y}"`);h[p++]=new e1(y,g,n,a,s,o,m,c)}else h[p++]=new Qr(y,g,n,a,m)}return h}var xp=class extends Tr{constructor(t,e,r){super(t,new Uint8Array,r!=null?r:e.length),this.values=e}getValueFromBuffer(t){return this.values[t]}},we;(function(t){t[t.STRING=1]="STRING",t[t.INT32=2]="INT32",t[t.UINT32=4]="UINT32",t[t.INT64=8]="INT64",t[t.UINT64=16]="UINT64",t[t.FLOAT=32]="FLOAT",t[t.DOUBLE=64]="DOUBLE",t[t.PRESENCE=128]="PRESENCE"})(we||(we={}));var tr;(function(t){t[t.FALSE=0]="FALSE",t[t.TRUE=1]="TRUE",t[t.START_MAP=2]="START_MAP",t[t.START_LIST=3]="START_LIST",t[t.COUNT=4]="COUNT"})(tr||(tr={}));function M6(t,e,r,i){let n=B6(r);if(i===0)return n.map(h=>new xp(h,[]));let a=P6(t,e,i),s=(a.presentStream?a.presentCount:a.lengthStream.length)/n.length,o=[],l=0,u=0;for(let h=0;h{var i;return t.name+((i=r.name)!=null?i:"")})}function P6(t,e,r){let i=t[e.get()];e.add(1);let n=Vt(t,e,ht(t,e)),a=r-1,s=[];i&we.STRING&&(a-=z6(t,e,s)),a-=L6(t,e,i,s),a-=V6(t,e,i,s);let o,l=0;if(i&we.PRESENCE){let h=O6(t,e);o=h.value,l=h.count,a--}let u=new Uint32Array;if(a>0&&(u=Vt(t,e,ht(t,e)),a--),a!==0)throw Error(`Unexpected number of remaining streams while decoding map column: ${a}`);return{lengthStream:n,dictionary:s,presentStream:o,presentCount:l,flattenedValues:u}}function z6(t,e,r){let i=t[e.get()];e.add(1);let n=r1("",t,e,i);if(n)for(let a=0;aa.length)throw Error("Merged map counts underflow while decoding child streams");let f=Array(r),d=i,y=n;for(let x=0;xs.length)throw Error("Map value stream underflow while decoding feature payload");let b=$6(s,y,v,l);f[x]=b.value,y=b.nextIndex}let m=0;for(let x=i;x=r)throw Error("Unexpected end of map value stream");let n=t[e];if(n===tr.FALSE)return{value:!1,nextIndex:e+1};if(n===tr.TRUE)return{value:!0,nextIndex:e+1};if(n===tr.START_MAP){let a=vp(t,e,r);return{value:i1(t,e+2,a,i).value,nextIndex:a}}if(n===tr.START_LIST){let a=vp(t,e,r),s=[],o=e+2;for(;o=r)throw Error("Missing length for nested map/list payload");let i=t[e+1];if(i<2)throw Error(`Invalid nested payload length: ${i}`);let n=e+i;if(n>r)throw Error("Nested payload exceeds containing payload bounds");return n}function n1(t,e){let r=t-tr.COUNT;if(r<0||r>=e.length)throw Error(`Scalar dictionary index out of range: ${t}`);return e[r]}function Xr(t,e){for(let r of e)t.push(r)}function N6(t,e,r,i,n,a){var s;return r.type==="scalarType"?a&&!a.has(r.name)?(Oy(i,t,e),null):U6(i,t,e,n,r.scalarType,r):((s=r.complexType)==null?void 0:s.physicalType)===rr.MAP?M6(t,e,r,i):i===0?null:C6(t,e,r,a)}function U6(t,e,r,i,n,a){var l;let s;if(t===0)return null;if(a.nullable){let u=ht(e,r),h=u.numValues,c=r.get(),p=ci(e,h,u.byteLength,r);r.set(c+u.byteLength),s=new de(p,u.numValues)}let o=s!=null?s:i;switch(n.physicalType){case rt.UINT_32:case rt.INT_32:return Y6(e,r,a,n,o);case rt.STRING:{let u=a.nullable?t-1:t;return(l=r1(a.name,e,r,u,s))!=null?l:null}case rt.BOOLEAN:return q6(e,r,a,i,o);case rt.UINT_64:case rt.INT_64:return X6(e,r,a,o,n);case rt.FLOAT:return j6(e,r,a,o);case rt.DOUBLE:return G6(e,r,a,o);default:throw Error(`The specified data type for the field is currently not supported: ${n}`)}}function q6(t,e,r,i,n){let a=ht(t,e),s=a.numValues,o=e.get(),l=kn(n)?n:void 0,u=ci(t,s,a.byteLength,e,l);e.set(o+a.byteLength);let h=new de(u,s);return new A6(r.name,h,n)}function j6(t,e,r,i){let n=ht(t,e),a=kn(i)?i:void 0,s=Ry(t,e,n.numValues,a);return new S6(r.name,s,i)}function G6(t,e,r,i){let n=ht(t,e),a=kn(i)?i:void 0,s=$y(t,e,n.numValues,a);return new mu(r.name,s,i)}function X6(t,e,r,i,n){let a=ht(t,e),s=rs(a,i,t,e,"int64"),o=n.physicalType===rt.INT_64;if(s===ut.FLAT){let u=kn(i)?i:void 0,h=o?qy(t,e,a,u):Eu(t,e,a,u);return new Yy(r.name,h,i)}if(s===ut.SEQUENCE){let u=Uy(t,e,a);return new Wy(r.name,u[0],u[1],a.numRleValues,o)}let l=o?s6(t,e,a):jy(t,e,a);return new t1(r.name,l,i,o)}function Y6(t,e,r,i,n){let a=ht(t,e),s=rs(a,n,t,e),o=i.physicalType===rt.INT_32;if(s===ut.FLAT){let u=kn(n)?n:void 0,h=o?Ma(t,e,a,void 0,u):Vt(t,e,a,void 0,u);return new yu(r.name,h,n)}if(s===ut.SEQUENCE){let u=Ny(t,e,a);return new gu(r.name,u[0],u[1],a.numRleValues,o)}let l=o?i6(t,e,a):Su(t,e,a);return new xu(r.name,l,n,o)}function kn(t){return t instanceof de}var It={ID:0,ID_NULLABLE:1,ID_LONG:2,GEOMETRY:4,SCALAR_BASE:10,STRUCT:30,MAP:31};function a1(t){switch(t){case It.ID:case It.ID|It.ID_NULLABLE:case It.ID|It.ID_LONG:case It.ID|It.ID_LONG|It.ID_NULLABLE:return{nullable:(t&It.ID_NULLABLE)!==0,columnScope:Xi.FEATURE,type:"scalarType",scalarType:{longID:(t&It.ID_LONG)!==0,type:"logicalType",logicalType:My.ID}};case It.GEOMETRY:return{nullable:!1,columnScope:Xi.FEATURE,type:"complexType",complexType:{type:"physicalType",physicalType:rr.GEOMETRY,children:[]}};case It.STRUCT:return{nullable:!1,columnScope:Xi.FEATURE,type:"complexType",complexType:{type:"physicalType",physicalType:rr.STRUCT,children:[]}};case It.MAP:return{nullable:!0,columnScope:Xi.FEATURE,type:"complexType",complexType:{type:"physicalType",physicalType:rr.MAP,children:[]}};default:return J6(t)}}function W6(t){return t>=It.SCALAR_BASE}function s1(t){return t===It.STRUCT||t===It.MAP}function Z6(t){if(t.type==="scalarType"){let e=t.scalarType;if(e.type==="physicalType")switch(e.physicalType){case rt.BOOLEAN:case rt.INT_8:case rt.UINT_8:case rt.INT_32:case rt.UINT_32:case rt.INT_64:case rt.UINT_64:case rt.FLOAT:case rt.DOUBLE:return!1;case rt.STRING:return!0;default:return!1}if(e.type==="logicalType")return!1}else if(t.type==="complexType"){let e=t.complexType;if(e.type==="physicalType")switch(e.physicalType){case rr.GEOMETRY:case rr.STRUCT:case rr.MAP:return!0;default:return!1}}return console.warn("Unexpected column type in hasStreamCount",t),!1}function H6(t){var e;return t.type==="scalarType"&&((e=t.scalarType)==null?void 0:e.type)==="logicalType"&&t.scalarType.logicalType===My.ID}function K6(t){var e;return t.type==="complexType"&&((e=t.complexType)==null?void 0:e.type)==="physicalType"&&t.complexType.physicalType===rr.GEOMETRY}function J6(t){let e;switch(t){case 10:case 11:e=rt.BOOLEAN;break;case 12:case 13:e=rt.INT_8;break;case 14:case 15:e=rt.UINT_8;break;case 16:case 17:e=rt.INT_32;break;case 18:case 19:e=rt.UINT_32;break;case 20:case 21:e=rt.INT_64;break;case 22:case 23:e=rt.UINT_64;break;case 24:case 25:e=rt.FLOAT;break;case 26:case 27:e=rt.DOUBLE;break;case 28:case 29:e=rt.STRING;break;default:return null}return{nullable:!!(t&1),columnScope:Xi.FEATURE,type:"scalarType",scalarType:{longID:!1,type:"physicalType",physicalType:e}}}var Q6=new TextDecoder,bp="0-3(ID), 4(GEOMETRY), 10-29(scalars), 30(STRUCT), 31(MAP)";function Iu(t,e){let r=Rt(t,e,1)[0];if(r===0)return"";let i=e.get(),n=i+r,a=t.subarray(i,n);return e.add(r),Q6.decode(a)}function t5(t){let e=t.name,r=t.nullable;return t.type==="scalarType"?{type:"scalarField",scalarField:t.scalarType,name:e,nullable:r}:{type:"complexField",complexField:t.complexType,name:e,nullable:r}}function o1(t,e){let r=Rt(t,e,1)[0]>>>0,i=r>=It.SCALAR_BASE?a1(r):null;if(!i)throw Error(`Unsupported field type code ${r}. Supported: 10-29(scalars), 30(STRUCT), 31(MAP)`);let n=Si(Xe({},i),{name:Iu(t,e)});if(n.type==="complexType"&&s1(r)){let a=n.complexType,s=Rt(t,e,1)[0]>>>0;a.children=Array(s);for(let o=0;o>>0,i=a1(r);if(!i)throw Error(`Unsupported column type code ${r}. Supported: ${bp}`);let n;if(W6(r))n=Iu(t,e);else if(r>>0,o=a.complexType;o.children=Array(s);for(let l=0;l>>0,a=Rt(t,e,1)[0]>>>0;i.columns=Array(a);for(let s=0;s>>0,s=i.get()+a;if(s>t.length)throw Error(`Block overruns tile: ${s} > ${t.length}`);let o=Rt(t,i,1)[0]>>>0;if(o!==1&&o!==2){i.set(s);continue}let[l,u]=r5(t,i),h=l.featureTables[0],c=null,p=null,f=[],d=0;for(let m of h.columns){let g=m.name;if(H6(m)){let x=null;if(m.nullable){let b=ht(t,i),w=i.get(),_=ci(t,b.numValues,b.byteLength,i);i.set(w+b.byteLength),x=new de(_,b.numValues)}let v=ht(t,i);d=x?x.size():v.decompressedCount,c=n5(t,m,i,g,v,x!=null?x:d,r)}else if(K6(m)){let x=Rt(t,i,1)[0];if(d===0){let v=i.get();d=ht(t,i).decompressedCount,i.set(v)}e&&(e.scale=e.extent/u),p=w6(t,x,i,d,e)}else{let x=Z6(m)?Rt(t,i,1)[0]:1;if(x===0)continue;let v=N6(t,i,m,x,d,void 0);if(v)if(Array.isArray(v))for(let b of v)f.push(b);else f.push(v)}}let y=new Tw(h.name,p,c,f,u);n.push(y),i.set(s)}return n}function n5(t,e,r,i,n,a,s=!1){var h;let o=(h=e.scalarType)!=null&&h.longID?rt.UINT_64:rt.UINT_32,l=typeof a=="number"?void 0:a,u=rs(n,a,t,r,o===rt.UINT_64?"int64":"int32");if(o===rt.UINT_32)switch(u){case ut.FLAT:return new yu(i,Vt(t,r,n,void 0,l),a);case ut.SEQUENCE:{let c=Ny(t,r,n);return new gu(i,c[0],c[1],n.numRleValues,!1)}case ut.CONST:return new xu(i,Su(t,r,n),a,!1)}switch(u){case ut.FLAT:return s?new mu(i,n6(t,r,n,l),a):new Yy(i,Eu(t,r,n,l),a);case ut.SEQUENCE:{let c=Uy(t,r,n);return new Wy(i,c[0],c[1],n.numRleValues,!1)}case ut.CONST:return new t1(i,jy(t,r,n),a,!1)}throw Error("Vector type not supported for id column.")}var Qs=Py(bu);Qs/32*4,3*Qs/256+Qs|0;var a5=class{constructor(t,e){var r;switch(this._featureData=t,this.properties=this._featureData.properties||{},(r=this._featureData.geometry)==null?void 0:r.type){case Pt.POINT:case Pt.MULTIPOINT:this.type=1;break;case Pt.LINESTRING:case Pt.MULTILINESTRING:this.type=2;break;case Pt.POLYGON:case Pt.MULTIPOLYGON:this.type=3;break;default:this.type=0}this.extent=e,this.id=Number(this._featureData.id)}loadGeometry(){let t=[];for(let e of this._featureData.geometry.coordinates){let r=[];for(let i of e)r.push(new M(i.x,i.y));t.push(r)}return t}},s5=class{constructor(t){this.features=[],this.featureTable=t,this.name=t.name,this.extent=t.extent,this.version=2,this.features=t.getFeatures(),this.length=this.features.length}feature(t){return new a5(this.features[t],this.extent)}},Cu=class{constructor(t){this.layers={};let e=i5(new Uint8Array(t));this.layers=e.reduce((r,i)=>Si(Xe({},r),{[i.name]:new s5(i)}),{})}},Mu=class{constructor(t,e){this.tileID=t,this.x=t.canonical.x,this.y=t.canonical.y,this.z=t.canonical.z,this.grid=new fo(gt,16,0),this.grid3D=new fo(gt,16,0),this.featureIndexArray=new dd,this.promoteId=e}insert(t,e,r,i,n,a){let s=this.featureIndexArray.length;this.featureIndexArray.emplaceBack(r,i,n);let o=a?this.grid3D:this.grid;for(let l of e){let u=[1/0,1/0,-1/0,-1/0];for(let h of l)u[0]=Math.min(u[0],h.x),u[1]=Math.min(u[1],h.y),u[2]=Math.max(u[2],h.x),u[3]=Math.max(u[3],h.y);u[0]<8192&&u[1]<8192&&u[2]>=0&&u[3]>=0&&o.insert(s,u[0],u[1],u[2],u[3])}}loadVTLayers(){return this.vtLayers||(this.encoding==="mlt"?this.vtLayers=new Cu(this.rawTileData).layers:this.vtLayers=new Zl(new lu(this.rawTileData)).layers,this.sourceLayerCoder=new du(this.vtLayers?Object.keys(this.vtLayers).sort():[cl])),this.vtLayers}query(t,e,r,i){this.loadVTLayers();let n=t.params,a=gt/t.tileSize/t.scale,s=ai(n.filter,"queryRenderedFeatures filter",n.globalState),o=t.queryGeometry,l=t.queryPadding*a,u=Ia.fromPoints(o),h=this.grid.query(u.minX-l,u.minY-l,u.maxX+l,u.maxY+l),c=Ia.fromPoints(t.cameraQueryGeometry).expandBy(l),p=this.grid3D.query(c.minX,c.minY,c.maxX,c.maxY,(y,m,g,x)=>Rg(t.cameraQueryGeometry,y-l,m-l,g+l,x+l));for(let y of p)h.push(y);h.sort(l5);let f={},d;for(let y of h){if(y===d)continue;d=y;let m=this.featureIndexArray.get(y),g=null;this.loadMatchingFeature(f,m.bucketIndex,m.sourceLayerIndex,m.featureIndex,s,n.layers,n.availableImages,e,r,i,(x,v,b)=>(g||(g=Fr(x)),v.queryIntersectsFeature({queryGeometry:o,feature:x,featureState:b,geometry:g,zoom:this.z,transform:t.transform,pixelsToTileUnits:a,pixelPosMatrix:t.pixelPosMatrix,unwrappedTileID:this.tileID.toUnwrapped(),getElevation:t.getElevation})))}return f}loadMatchingFeature(t,e,r,i,n,a,s,o,l,u,h){let c=this.bucketLayerIDs[e];if(a&&!c.some(y=>a.has(y)))return;let p=this.sourceLayerCoder.decode(r),f=this.vtLayers[p].feature(i);if(n.needGeometry){let y=hi(f,!0);if(!n.filter(new st(this.tileID.overscaledZ),y,this.tileID.canonical))return}else if(!n.filter(new st(this.tileID.overscaledZ),f))return;let d=this.getId(f,p);for(let y of c){if(a&&!a.has(y))continue;let m=o[y];if(!m)continue;let g={};d&&u&&(g=u.getState(m.sourceLayer||"_geojsonTileLayer",d));let x=Xt({},l[y]);x.paint=wp(x.paint,m.paint,f,g,s),x.layout=wp(x.layout,m.layout,f,g,s);let v=!h||h(f,m,g);if(!v)continue;let b=new Fw(f,this.z,this.x,this.y,d);b.layer=x;let w=t[y];w===void 0&&(w=t[y]=[]),w.push({featureIndex:i,feature:b,intersectionZ:v})}}lookupSymbolFeatures(t,e,r,i,n,a,s,o){let l={};this.loadVTLayers();let u=ai(n.filterSpec,"queryRenderedFeatures symbol filter",n.globalState);for(let h of t)this.loadMatchingFeature(l,r,i,h,u,a,s,o,e);return l}hasLayer(t){for(let e of this.bucketLayerIDs)for(let r of e)if(t===r)return!0;return!1}getId(t,e){var i;let r=t.id;if(this.promoteId){let n=typeof this.promoteId=="string"?this.promoteId:this.promoteId[e];r=t.properties[n],typeof r=="boolean"&&(r=Number(r)),r===void 0&&((i=t.properties)!=null&&i.cluster)&&this.promoteId&&(r=Number(t.properties.cluster_id))}return r}};C("FeatureIndex",Mu,{omit:["rawTileData","sourceLayerCoder"]});function o5(t){return typeof t=="object"&&!!t&&"evaluate"in t}function wp(t,e,r,i,n){return xn(t,(a,s)=>{let o=e instanceof Wa?e.get(s):null;return o5(o)?o.evaluate(r,i,void 0,n):o})}function l5(t,e){return e-t}var l1=class{constructor(t){this.maxEntries=t,this.map=new Map}get(t){let e=this.map.get(t);return e!==void 0&&(this.map.delete(t),this.map.set(t,e)),e}set(t,e){if(this.map.has(t))this.map.delete(t);else if(this.map.size>=this.maxEntries){let r=this.map.keys().next().value;this.map.delete(r)}this.map.set(t,e)}clear(){this.map.clear()}};function Bu(t){let e=typeof t;if(e==="number"||e==="boolean"||e==="string"||t==null)return JSON.stringify(t);if(Array.isArray(t)){let n="[";for(let a of t)n+=`${Bu(a)},`;return`${n}]`}let r=Object.keys(t).sort(),i="{";for(let n=0;nthis._layers[c.id]),s=a[0];if(s.isHidden())continue;let o=s.source||"",l=this.familiesBySource[o];l||(l=this.familiesBySource[o]={});let u=s.sourceLayer||"_geojsonTileLayer",h=l[u];h||(h=l[u]=[]),h.push(a)}}},c1=class{constructor(t){let e={},r=[];for(let s in t){let o=e[s]={};for(let l in t[s]){let u=t[s][l];o[l]={};for(let h in u){let c=u[h];if(!c||c.bitmap.width===0||c.bitmap.height===0)continue;let p={x:0,y:0,w:c.bitmap.width+2,h:c.bitmap.height+2};r.push(p),o[l][h]={rect:p,metrics:c.metrics}}}}let{w:i,h:n}=uu(r),a=new Qa({width:i||1,height:n||1});for(let s in t)for(let o in t[s]){let l=t[s][o];for(let u in l){let h=l[u];if(!h||h.bitmap.width===0||h.bitmap.height===0)continue;let c=e[s][o][u].rect;Qa.copy(h.bitmap,a,{x:0,y:0},{x:c.x+1,y:c.y+1},h.bitmap)}}this.image=a,this.positions=e}};C("GlyphAtlas",c1);var p1=class{constructor(t){this.tileID=new pu(t.tileID.overscaledZ,t.tileID.wrap,t.tileID.canonical.z,t.tileID.canonical.x,t.tileID.canonical.y),this.uid=t.uid,this.zoom=t.zoom,this.pixelRatio=t.pixelRatio,this.tileSize=t.tileSize,this.source=t.source,this.overscaling=this.tileID.overscaleFactor(),this.showCollisionBoxes=t.showCollisionBoxes,this.collectResourceTiming=!!t.collectResourceTiming,this.returnDependencies=!!t.returnDependencies,this.promoteId=t.promoteId,this.inFlightDependencies=[]}parse(t,e,r,i,n){return et(this,null,function*(){this.data=t,this.collisionBoxArray=new Rl;let a=new du(Object.keys(t.layers).sort()),s=new Mu(this.tileID,this.promoteId);s.bucketLayerIDs=[];let o={},l={featureIndex:s,iconDependencies:{},patternDependencies:{},glyphDependencies:{},dashDependencies:{},availableImages:r,subdivisionGranularity:n},u=e.familiesBySource[this.source];for(let S in u){let T=t.layers[S];if(!T)continue;T.version===1&&Mt(`Vector tile source "${this.source}" layer "${S}" does not use vector tile spec v2 and therefore may have some rendering errors.`);let L=a.encode(S),O=[];for(let B=0;BF.id)))}}let h=xn(l.glyphDependencies,S=>xn(S,T=>Object.keys(T)));for(let S of this.inFlightDependencies)S==null||S.abort();this.inFlightDependencies=[];let c=Promise.resolve({});if(Object.keys(h).length){let S=new AbortController;this.inFlightDependencies.push(S),c=i.sendAsync({type:"GG",data:{stacks:h,source:this.source,tileID:this.tileID,type:"glyphs"}},S)}let p=Object.keys(l.iconDependencies),f=Promise.resolve({});if(p.length){let S=new AbortController;this.inFlightDependencies.push(S),f=i.sendAsync({type:"GI",data:{icons:p,source:this.source,tileID:this.tileID,type:"icons"}},S)}let d=Object.keys(l.patternDependencies),y=Promise.resolve({});if(d.length){let S=new AbortController;this.inFlightDependencies.push(S),y=i.sendAsync({type:"GI",data:{icons:d,source:this.source,tileID:this.tileID,type:"patterns"}},S)}let m=l.dashDependencies,g=Promise.resolve({});if(Object.keys(m).length){let S=new AbortController;this.inFlightDependencies.push(S),g=i.sendAsync({type:"GDA",data:{dashes:m}},S)}let[x,v,b,w]=yield Promise.all([c,f,y,g]),_=new c1(x),A=new hu(v,b);for(let S in o){let T=o[S];T.hasDependencies&&(u1(T.layers,this.zoom,r),T.addFeatures({options:l,canonical:this.tileID.canonical,glyphMap:x,glyphPositions:_.positions,iconMap:v,iconPositions:A.iconPositions,patternMap:b,patternPositions:A.patternPositions,dashPositions:w,showCollisionBoxes:this.showCollisionBoxes}))}return{buckets:Object.values(o).filter(S=>!S.isEmpty()),featureIndex:s,collisionBoxArray:this.collisionBoxArray,glyphAtlasImage:_.image,imageAtlas:A,dashPositions:w,glyphMap:this.returnDependencies?x:null,iconMap:this.returnDependencies?v:null,glyphPositions:this.returnDependencies?_.positions:null}})}};function u1(t,e,r){let i=new st(e);for(let n of t)n.recalculate(i,r)}var f1=class{constructor(){this.loading={},this.loaded={},this.parsing={}}startLoading(t,e){this.loading[t]=e}finishLoading(t){delete this.loading[t]}abort(t){let e=this.loading[t];e!=null&&e.abort&&(e.abort.abort(),delete this.loading[t])}getParsing(t){return this.parsing[t]}setParsing(t,e){this.parsing[t]=e}removeParsing(t){delete this.parsing[t]}markLoaded(t,e){this.loaded[t]=e}getLoaded(t){let e=this.loaded[t];if(e)return e}removeLoaded(t){delete this.loaded[t]}clearLoaded(){this.loaded={}}},d1=class{constructor(t){this.start=`${t}#start`,this.end=`${t}#end`,this.measure=t,performance.mark(this.start)}finish(){performance.mark(this.end);let t=performance.getEntriesByName(this.measure);return t.length===0&&(performance.measure(this.measure,this.start,this.end),t=performance.getEntriesByName(this.measure),performance.clearMarks(this.start),performance.clearMarks(this.end),performance.clearMeasures(this.measure)),t}},p5=class{constructor(t,e,r,i,n){this.type=t,this.properties=r||{},this.extent=n,this.pointsArray=e,this.id=i}loadGeometry(){return this.pointsArray.map(t=>t.map(e=>new M(e.x,e.y)))}},f5=class{constructor(t,e,r){this.version=2,this._myFeatures=t,this.name=e,this.length=t.length,this.extent=r}feature(t){return this._myFeatures[t]}},d5=class{constructor(){this.layers={}}addLayer(t){this.layers[t.name]=t}};function y5(t,e,r){let{extent:i}=t,n=2**(r.z-e.z),a=(r.x-e.x*n)*i,s=(r.y-e.y*n)*i,o=[];for(let l=0;l0&&l.addLayer(d)}let h={vectorTile:l,rawData:fu(l).buffer};return this.overzoomedTileResultCache.set(s,h),h}reloadTile(t){return et(this,null,function*(){let e=t.uid,r=this.tileState.getLoaded(e);if(!r)throw Error("Should not be trying to reload a tile that was never loaded or has been removed");if(r.vectorTile)return r.showCollisionBoxes=t.showCollisionBoxes,yield this._parseWorkerTile(r,t)})}abortTile(t){return et(this,null,function*(){this.tileState.abort(t.uid)})}removeTile(t){return et(this,null,function*(){this.tileState.removeLoaded(t.uid)})}},g5=class{constructor(){this.loaded={}}loadTile(t){return et(this,null,function*(){let{uid:e,encoding:r,rawImageData:i,redFactor:n,greenFactor:a,blueFactor:s,baseShift:o}=t,l=i.width+4,u=i.height+4,h=Ba(i)?new Ht({width:l,height:u},yield Ep(i,-2,-2,l,u)):i,c=new Yl(e,h,r,n,a,s,o);return this.loaded||(this.loaded={}),this.loaded[e]=c,c})}removeTile(t){let e=this.loaded,r=t.uid;e!=null&&e[r]&&delete e[r]}},x5=class{constructor(t,e,r,i=v5){this.actor=t,this.layerIndex=e,this.availableImages=r,this.tileState=new f1,this._createGeoJSONIndex=i}loadVectorTile(t){if(!this._geoJSONIndex)throw Error("Unable to parse the data into a cluster or geojson");let{z:e,x:r,y:i}=t.tileID.canonical,n=this._geoJSONIndex.getTile(e,r,i);if(!n)return null;let a=new Iy(n.features,{version:2,extent:gt});return{vectorTile:a,rawData:fu(a,Sp).buffer}}loadTile(t){return et(this,null,function*(){let{uid:e}=t,r=new p1(t);r.abort=new AbortController;try{let i=this.loadVectorTile(t);if(!i)return null;let{vectorTile:n,rawData:a}=i;r.vectorTile=n,this.tileState.markLoaded(e,r);let s={rawData:a};return this.tileState.setParsing(e,s),yield this._parseWorkerTile(r,t)}catch(i){throw this.tileState.markLoaded(e,r),i}})}_parseWorkerTile(t,e){return et(this,null,function*(){let r=this.tileState.getParsing(t.uid),i=yield t.parse(t.vectorTile,this.layerIndex,this.availableImages,this.actor,e.subdivisionGranularity);if(r){let{rawData:n}=r;i=Xt({rawTileData:n.slice(0),encoding:"mvt"},i),this.tileState.removeParsing(t.uid)}return i})}abortTile(t){return et(this,null,function*(){this.tileState.abort(t.uid)})}removeTile(t){return et(this,null,function*(){this.tileState.removeLoaded(t.uid)})}loadData(t){return et(this,null,function*(){var r;(r=this._pendingRequest)==null||r.abort();let e=this._startRequestTiming(t);this._pendingRequest=new AbortController;try{yield this.loadAndProcessGeoJSON(t,this._pendingRequest),delete this._pendingRequest,this.tileState.clearLoaded();let i={};return t.request&&(i.data=t.data),this._finishRequestTiming(e,t,i),i}catch(i){if(delete this._pendingRequest,!xl(i))throw i;return{abandoned:!0}}})}_startRequestTiming(t){var e;if((e=t.request)!=null&&e.collectResourceTiming)return new d1(t.request.url)}_finishRequestTiming(t,e,r){let i=t==null?void 0:t.finish();i&&(r.resourceTiming={[e.source]:JSON.parse(JSON.stringify(i))})}reloadTile(t){return et(this,null,function*(){let e=t.uid,r=this.tileState.getLoaded(e);if(!r)return yield this.loadTile(t);if(r.vectorTile)return r.showCollisionBoxes=t.showCollisionBoxes,yield this._parseWorkerTile(r,t)})}loadAndProcessGeoJSON(t,e){return et(this,null,function*(){var r;if(t.request&&(t.data=(yield Ip(t.request,e)).data),t.data){t.data=this._filterGeoJSON(t.data,t.filter,t.source),this._geoJSONIndex=this._createGeoJSONIndex(t.data,t);return}if(t.dataDiff){(r=this._geoJSONIndex)!=null||(this._geoJSONIndex=this._createGeoJSONIndex({type:"FeatureCollection",features:[]},t)),this._geoJSONIndex.updateData(t.dataDiff,this._getFilterPredicate(t.filter,t.source));return}if(t.updateCluster&&this._geoJSONIndex.updateClusterOptions(t.geojsonVtOptions.cluster,y1(t)),this._geoJSONIndex==null)throw Error(`Input data given to \'${t.source}\' is not a valid GeoJSON object.`)})}_filterGeoJSON(t,e,r){if(t.type!=="FeatureCollection")return t;let i=this._getFilterPredicate(e,r);return i?{type:"FeatureCollection",features:t.features.filter(n=>i(n))}:t}_getFilterPredicate(t,e){if(typeof t!="boolean"&&!(t!=null&&t.length))return;let r=ar(t,`sources.${e}.filter`,{type:"boolean","property-type":"data-driven",overridable:!1,transition:!1});if(r.result==="error")throw Error(r.value.map(i=>`${i.key}: ${i.message}`).join(", "));return i=>r.value.evaluate({zoom:0},i)}removeSource(t){return et(this,null,function*(){var e;(e=this._pendingRequest)==null||e.abort()})}getClusterExpansionZoom(t){return this._geoJSONIndex.getClusterExpansionZoom(t.clusterId)}getClusterChildren(t){return this._geoJSONIndex.getClusterChildren(t.clusterId)}getClusterLeaves(t){return this._geoJSONIndex.getClusterLeaves(t.clusterId,t.limit,t.offset)}};function v5(t,e){let r=Xt(e.geojsonVtOptions||{},{updateable:!0,clusterOptions:y1(e)});return new Kd(t,r)}function y1({geojsonVtOptions:t,clusterProperties:e,source:r}){if(!e||!t.clusterOptions)return t.clusterOptions;let i={},n={},a={accumulated:null,zoom:0},s={properties:null},o=Object.keys(e);for(let l of o){let[u,h]=e[l],c=ar(h,`sources.${r}.clusterProperties.${l}[1]`),p=ar(typeof u=="string"?[u,["accumulated"],["get",l]]:u,`sources.${r}.clusterProperties.${l}[0]`);i[l]=c.value,n[l]=p.value}return t.clusterOptions.map=l=>{s.properties=l;let u={};for(let h of o)u[h]=i[h].evaluate(a,s);return u},t.clusterOptions.reduce=(l,u)=>{s.properties=u;for(let h of o)a.accumulated=l[h],l[h]=n[h].evaluate(a,s)},t.clusterOptions}function h1(t){return et(this,null,function*(){if(t.endsWith(".mjs")){yield import(t);return}let e=yield fetch(t,{credentials:"same-origin"});if(!e.ok)throw Error(`Failed to load ${t}: ${e.status}`);let r=yield e.text();if(/^[ \\t]*(import|export)\\s/m.test(r)){let i=URL.createObjectURL(new Blob([r],{type:"text/javascript"}));try{yield import(i)}finally{URL.revokeObjectURL(i)}return}globalThis.eval(r)})}var b5=class{constructor(t){this.self=t,this.actor=new Ty(t),this.layerIndexes={},this.availableImages={},this.workerSources={},this.demWorkerSources={},this.externalWorkerSourceTypes={},this.globalStates=new Map,this.self.registerWorkerSource=(e,r)=>{if(this.externalWorkerSourceTypes[e])throw Error(`Worker source with name "${e}" already registered.`);this.externalWorkerSourceTypes[e]=r},this.self.addProtocol=Fp,this.self.removeProtocol=Tp,this.self.registerRTLTextPlugin=e=>{Ar.setMethods(e)},this.self.makeRequest=Pa,this.actor.registerMessageHandler("LDT",(e,r)=>this._getDEMWorkerSource(e,r.source).loadTile(r)),this.actor.registerMessageHandler("RDT",(e,r)=>et(this,null,function*(){this._getDEMWorkerSource(e,r.source).removeTile(r)})),this.actor.registerMessageHandler("GCEZ",(e,r)=>et(this,null,function*(){return this._getWorkerSource(e,r.type,r.source).getClusterExpansionZoom(r)})),this.actor.registerMessageHandler("GCC",(e,r)=>et(this,null,function*(){return this._getWorkerSource(e,r.type,r.source).getClusterChildren(r)})),this.actor.registerMessageHandler("GCL",(e,r)=>et(this,null,function*(){return this._getWorkerSource(e,r.type,r.source).getClusterLeaves(r)})),this.actor.registerMessageHandler("LD",(e,r)=>this._getWorkerSource(e,r.type,r.source).loadData(r)),this.actor.registerMessageHandler("LT",(e,r)=>this._getWorkerSource(e,r.type,r.source).loadTile(r)),this.actor.registerMessageHandler("RT",(e,r)=>this._getWorkerSource(e,r.type,r.source).reloadTile(r)),this.actor.registerMessageHandler("AT",(e,r)=>this._getWorkerSource(e,r.type,r.source).abortTile(r)),this.actor.registerMessageHandler("RMT",(e,r)=>this._getWorkerSource(e,r.type,r.source).removeTile(r)),this.actor.registerMessageHandler("RS",(e,r)=>et(this,null,function*(){var n,a;if(!((a=(n=this.workerSources[e])==null?void 0:n[r.type])!=null&&a[r.source]))return;let i=this.workerSources[e][r.type][r.source];delete this.workerSources[e][r.type][r.source],i.removeSource!==void 0&&i.removeSource(r)})),this.actor.registerMessageHandler("RM",e=>et(this,null,function*(){delete this.layerIndexes[e],delete this.availableImages[e],delete this.workerSources[e],delete this.demWorkerSources[e],this.globalStates.delete(e)})),this.actor.registerMessageHandler("SR",(e,r)=>et(this,null,function*(){this.referrer=r})),this.actor.registerMessageHandler("SRPS",(e,r)=>this._syncRTLPluginState(e,r)),this.actor.registerMessageHandler("IS",(e,r)=>et(this,null,function*(){yield h1(r)})),this.actor.registerMessageHandler("SI",(e,r)=>this._setImages(e,r)),this.actor.registerMessageHandler("UL",(e,r)=>et(this,null,function*(){this._getLayerIndex(e).update(r.layers,r.removedIds,this._getGlobalState(e))})),this.actor.registerMessageHandler("UGS",(e,r)=>et(this,null,function*(){let i=this._getGlobalState(e);for(let n in r)i[n]=r[n]})),this.actor.registerMessageHandler("SL",(e,r)=>et(this,null,function*(){this._getLayerIndex(e).replace(r,this._getGlobalState(e))}))}_getGlobalState(t){let e=this.globalStates.get(t);return e||(e={},this.globalStates.set(t,e)),e}_setImages(t,e){return et(this,null,function*(){this.availableImages[t]=e;for(let r in this.workerSources[t]){let i=this.workerSources[t][r];for(let n in i)i[n].availableImages=e}})}_syncRTLPluginState(t,e){return et(this,null,function*(){return yield Ar.syncState(e,h1)})}_getAvailableImages(t){let e=this.availableImages[t];return e||(e=[]),e}_getLayerIndex(t){let e=this.layerIndexes[t];return e||(e=this.layerIndexes[t]=new c5),e}_getWorkerSource(t,e,r){var i,n;if((i=this.workerSources)[t]||(i[t]={}),(n=this.workerSources[t])[e]||(n[e]={}),!this.workerSources[t][e][r]){let a={sendAsync:(s,o)=>(s.targetMapId=t,this.actor.sendAsync(s,o))};switch(e){case"vector":this.workerSources[t][e][r]=new m5(a,this._getLayerIndex(t),this._getAvailableImages(t));break;case"geojson":this.workerSources[t][e][r]=new x5(a,this._getLayerIndex(t),this._getAvailableImages(t));break;default:this.workerSources[t][e][r]=new this.externalWorkerSourceTypes[e](a,this._getLayerIndex(t),this._getAvailableImages(t))}}return this.workerSources[t][e][r]}_getDEMWorkerSource(t,e){var r,i;return(r=this.demWorkerSources)[t]||(r[t]={}),(i=this.demWorkerSources[t])[e]||(i[e]=new g5),this.demWorkerSources[t][e]}};vr(self)&&(self.worker=new b5(self));export{b5 as default};\n/*! Bundled license information:\n\nmaplibre-gl/dist/maplibre-gl-shared.mjs:\nmaplibre-gl/dist/maplibre-gl-worker.mjs:\n (**\n * MapLibre GL JS\n * @license 3-Clause BSD. Full text of license: https://github.com/maplibre/maplibre-gl-js/blob/v6.11.2/LICENSE.txt\n *)\n*/\n'});var Olt=W((Dli,qlt)=>{"use strict";var A3=it(),sCr=ho().sanitizeHTML,lCr=_re(),Rlt=J2();function zlt(e,t){this.subplot=e,this.uid=e.uid+"-"+t,this.index=t,this.idSource="source-"+this.uid,this.idLayer=Rlt.layoutLayerPrefix+this.uid,this.sourceType=null,this.source=null,this.layerType=null,this.below=null,this.visible=!1}var fp=zlt.prototype;fp.update=function(t){this.visible?this.needsNewImage(t)?this.updateImage(t):this.needsNewSource(t)?(this.removeLayer(),this.updateSource(t),this.updateLayer(t)):this.needsNewLayer(t)?this.updateLayer(t):this.updateStyle(t):(this.updateSource(t),this.updateLayer(t)),this.visible=lO(t)};fp.needsNewImage=function(e){var t=this.subplot.map;return t.getSource(this.idSource)&&this.sourceType==="image"&&e.sourcetype==="image"&&(this.source!==e.source||JSON.stringify(this.coordinates)!==JSON.stringify(e.coordinates))};fp.needsNewSource=function(e){return this.sourceType!==e.sourcetype||JSON.stringify(this.source)!==JSON.stringify(e.source)||this.layerType!==e.type};fp.needsNewLayer=function(e){return this.layerType!==e.type||this.below!==this.subplot.belowLookup["layout-"+this.index]};fp.lookupBelow=function(){return this.subplot.belowLookup["layout-"+this.index]};fp.updateImage=function(e){var t=this.subplot.map;t.getSource(this.idSource).updateImage({url:e.source,coordinates:e.coordinates});var r=this.findFollowingMapLayerId(this.lookupBelow());r!==null&&this.subplot.map.moveLayer(this.idLayer,r)};fp.updateSource=function(e){var t=this.subplot.map;if(t.getSource(this.idSource)&&t.removeSource(this.idSource),this.sourceType=e.sourcetype,this.source=e.source,!!lO(e)){var r=uCr(e);t.addSource(this.idSource,r)}};fp.findFollowingMapLayerId=function(e){if(e==="traces")for(var t=this.subplot.getMapLayers(),r=0;r0){for(var r=0;r0}function Blt(e){var t={},r={};switch(e.type){case"circle":A3.extendFlat(r,{"circle-radius":e.circle.radius,"circle-color":e.color,"circle-opacity":e.opacity});break;case"line":A3.extendFlat(r,{"line-width":e.line.width,"line-color":e.color,"line-opacity":e.opacity,"line-dasharray":e.line.dash});break;case"fill":A3.extendFlat(r,{"fill-color":e.color,"fill-outline-color":e.fill.outlinecolor,"fill-opacity":e.opacity});break;case"symbol":var i=e.symbol,n=lCr(i.textposition,i.iconsize);A3.extendFlat(t,{"icon-image":i.icon,"icon-size":i.iconsize/10,"text-field":i.text,"text-size":i.textfont.size,"text-anchor":n.anchor,"text-offset":n.offset,"symbol-placement":i.placement}),A3.extendFlat(r,{"icon-color":e.color,"text-color":i.textfont.color,"text-opacity":e.opacity});break;case"raster":A3.extendFlat(r,{"raster-fade-duration":0,"raster-opacity":e.opacity});break}return{layout:t,paint:r}}function uCr(e){var t=e.sourcetype,r=e.source,i={type:t},n;return t==="geojson"?n="data":t==="vector"?n=typeof r=="string"?"url":"tiles":t==="raster"?(n="tiles",i.tileSize=256):t==="image"&&(n="url",i.coordinates=e.coordinates),i[n]=r,e.sourceattribution&&(i.attribution=sCr(e.sourceattribution)),i}qlt.exports=function(t,r,i){var n=new zlt(t,r);return n.update(i),n}});var Zlt=W((Fli,Xlt)=>{"use strict";var cO=(Llt(),Pt(Dlt)),cCr=Ilt(),Nlt=!1,fCr=()=>{Nlt||(Nlt=!0,cO.setWorkerUrl(URL.createObjectURL(new Blob([cCr],{type:"text/javascript"}))))},fO=it(),Glt=bm(),Ult=xi(),hCr=Wi(),dCr=Mf(),uO=Ls(),Hlt=m1(),pCr=Hlt.drawMode,vCr=Hlt.selectMode,gCr=yu().prepSelect,mCr=yu().clearOutline,yCr=yu().clearSelectionsCache,xCr=yu().selectOnClick,yx=J2(),bCr=Olt();function jlt(e,t){this.id=t,this.gd=e;var r=e._fullLayout,i=e._context;this.container=r._glcontainer.node(),this.isStatic=i.staticPlot,this.uid=r._uid+"-"+this.id,this.div=null,this.xaxis=null,this.yaxis=null,this.createFramework(r),this.map=null,this.styleObj=null,this.traceHash={},this.layerList=[],this.belowLookup={},this.dragging=!1,this.wheeling=!1}var uu=jlt.prototype;uu.plot=function(e,t,r){var i=this,n;i.map?n=new Promise(function(a,o){i.updateMap(e,t,a,o)}):n=new Promise(function(a,o){i.createMap(e,t,a,o)}),r.push(n)};uu.createMap=function(e,t,r,i){var n=this,a=t[n.id],o=n.styleObj=Ylt(a.style),s=a.bounds,l=s?[[s.west,s.south],[s.east,s.north]]:null;let u={container:n.div,style:o.style,center:Ioe(a.center),zoom:a.zoom,bearing:a.bearing,pitch:a.pitch,maxBounds:l,interactive:!n.isStatic,canvasContextAttributes:{preserveDrawingBuffer:n.isStatic},doubleClickZoom:!1,boxZoom:!1,attributionControl:!1},c=a._fitBounds;c&&(u.bounds=[[c.west,c.south],[c.east,c.north]],u.fitBoundsOptions={padding:yx.fitBoundsPadding}),fCr();let f=n.map=new cO.Map(u).addControl(new cO.AttributionControl({compact:!0})),h={};f.setMissingStyleImageResolver(d=>(!h[d]&&/^[a-zA-Z0-9-]+$/.test(d)&&(h[d]=new Promise(v=>{let m=new Image(15,15);m.onload=()=>{f.addImage(d,m,{sdf:!0}),v()},m.onerror=()=>v(),m.crossOrigin="Anonymous",m.src=`https://cdn.jsdelivr.net/npm/@mapbox/maki@8.2.0/icons/${d}.svg`})),h[d])),f.setTransformRequest(function(d){return d=d.replace("https://fonts.openmaptiles.org/Open Sans Extrabold","https://fonts.openmaptiles.org/Open Sans Extra Bold"),d=d.replace("https://tiles.basemaps.cartocdn.com/fonts/Open Sans Extrabold","https://fonts.openmaptiles.org/Open Sans Extra Bold"),d=d.replace("https://fonts.openmaptiles.org/Open Sans Regular,Arial Unicode MS Regular","https://fonts.openmaptiles.org/Klokantech Noto Sans Regular"),{url:d}}),f._canvas.style.left="0px",f._canvas.style.top="0px",n.rejectOnError(i),n.isStatic||n.initFx(e,t);var p=[];p.push(new Promise(function(d){f.once("load",d)})),p=p.concat(Glt.fetchTraceGeoData(e)),Promise.all(p).then(function(){c&&$lt(n,a),Wlt(n,a),n.fillBelowLookup(e,t),n.updateData(e),n.updateLayout(t),n.resolveOnRender(r)}).catch(i)};uu.updateMap=function(e,t,r,i){var n=this,a=n.map,o=t[this.id];n.rejectOnError(i);var s=[],l=Ylt(o.style);JSON.stringify(n.styleObj)!==JSON.stringify(l)&&(n.styleObj=l,a.setStyle(l.style),n.traceHash={},s.push(new Promise(function(u){a.once("styledata",u)}))),s=s.concat(Glt.fetchTraceGeoData(e)),Promise.all(s).then(function(){n.fillBelowLookup(e,t),n.updateData(e);let u=o._fitBounds;u&&(a.fitBounds([[u.west,u.south],[u.east,u.north]],{padding:yx.fitBoundsPadding,animate:!1}),$lt(n,o),Wlt(n,o)),n.updateLayout(t),n.resolveOnRender(r)}).catch(i)};function $lt(e,t){let{center:r,zoom:i}=e.getView();t._input.center=t.center=r,t._input.zoom=t.zoom=i,t._input._fitView={center:dn({},r),zoom:i}}function Wlt(e,t){let r=e.getView();e.viewInitial={center:fO.extendFlat({},r.center),bearing:t.bearing,pitch:t.pitch,zoom:r.zoom}}uu.fillBelowLookup=function(e,t){var r=t[this.id],i=r.layers,n,a,o=this.belowLookup={},s=!1;for(n=0;n1)for(n=0;nt.project(i).x,_subplot:t},t.yaxis={_id:"y",c2p:i=>t.project(i).y,_subplot:t},t.updateFramework(e),t.mockAxis={type:"linear",showexponent:"all",exponentformat:"B"},hCr.setConvert(t.mockAxis,e)};uu.initFx=function(e,t){var r=this,i=r.gd,n=r.map;n.on("moveend",function(s){if(r.map){var l=i._fullLayout;if(s.originalEvent||r.wheeling){var u=l[r.id];Ult.call("_storeDirectGUIEdit",i.layout,l._preGUI,r.getViewEdits(u));var c=r.getView();u._input.center=u.center=c.center,u._input.zoom=u.zoom=c.zoom,u._input.bearing=u.bearing=c.bearing,u._input.pitch=u.pitch=c.pitch,i.emit("plotly_relayout",r.getViewEditsWithDerived(c))}s.originalEvent&&s.originalEvent.type==="mouseup"?r.dragging=!1:r.wheeling&&(r.wheeling=!1),l&&l._rehover&&l._rehover()}}),n.on("wheel",function(){r.wheeling=!0}),n.on("mousemove",function(s){var l=r.div.getBoundingClientRect(),u=[s.originalEvent.offsetX,s.originalEvent.offsetY];s.target.getBoundingClientRect=function(){return l},r.xaxis.p2c=function(){return n.unproject(u).lng},r.yaxis.p2c=function(){return n.unproject(u).lat},i._fullLayout._rehover=function(){i._fullLayout._hoversubplot===r.id&&i._fullLayout[r.id]&&uO.hover(i,s,r.id)},uO.hover(i,s,r.id),i._fullLayout._hoversubplot=r.id});function a(){uO.loneUnhover(t._hoverlayer)}n.on("dragstart",function(){r.dragging=!0,a()}),n.on("zoomstart",a),n.on("mouseout",function(){i._fullLayout._hoversubplot=null});function o(){var s=r.getView();i.emit("plotly_relayouting",r.getViewEditsWithDerived(s))}n.on("drag",o),n.on("zoom",o),n.on("dblclick",function(){var s=i._fullLayout[r.id];Ult.call("_storeDirectGUIEdit",i.layout,i._fullLayout._preGUI,r.getViewEdits(s));var l=r.viewInitial;n.setCenter(Ioe(l.center)),n.setZoom(l.zoom),n.setBearing(l.bearing),n.setPitch(l.pitch);var u=r.getView();s._input.center=s.center=u.center,s._input.zoom=s.zoom=u.zoom,s._input.bearing=s.bearing=u.bearing,s._input.pitch=s.pitch=u.pitch,i.emit("plotly_doubleclick",null),i.emit("plotly_relayout",r.getViewEditsWithDerived(u))}),r.clearOutline=function(){yCr(r.dragOptions),mCr(r.dragOptions.gd)},r.onClickInPanFn=function(s){return function(l){var u=i._fullLayout.clickmode;u.indexOf("select")>-1&&xCr(l.originalEvent,i,[r.xaxis],[r.yaxis],r.id,s),u.indexOf("event")>-1&&uO.click(i,l.originalEvent)}}};uu.updateFx=function(e){var t=this,r=t.map,i=t.gd;if(t.isStatic)return;function n(l){var u=t.map.unproject(l);return[u.lng,u.lat]}var a=e.dragmode,o;o=function(l,u){if(u.isRect){var c=l.range={};c[t.id]=[n([u.xmin,u.ymin]),n([u.xmax,u.ymax])]}else{var f=l.lassoPoints={};f[t.id]=u.map(n)}};var s=t.dragOptions;t.dragOptions=fO.extendDeep(s||{},{dragmode:e.dragmode,element:t.div,gd:i,plotinfo:{id:t.id,domain:e[t.id].domain,xaxis:t.xaxis,yaxis:t.yaxis,fillRangeItems:o},xaxes:[t.xaxis],yaxes:[t.yaxis],subplot:t.id}),r.off("click",t.onClickInPanHandler),vCr(a)||pCr(a)?(r.dragPan.disable(),r.on("zoomstart",t.clearOutline),t.dragOptions.prepFn=function(l,u,c){gCr(l,u,c,t.dragOptions,a)},dCr.init(t.dragOptions)):(r.dragPan.enable(),r.off("zoomstart",t.clearOutline),t.div.onmousedown=null,t.div.ontouchstart=null,t.div.removeEventListener("touchstart",t.div._ontouchstart),t.onClickInPanHandler=t.onClickInPanFn(t.dragOptions),r.on("click",t.onClickInPanHandler))};uu.updateFramework=function(e){var t=e[this.id].domain,r=e._size,i=this.div.style;i.width=r.w*(t.x[1]-t.x[0])+"px",i.height=r.h*(t.y[1]-t.y[0])+"px",i.left=r.l+t.x[0]*r.w+"px",i.top=r.t+(1-t.y[1])*r.h+"px",this.xaxis._offset=r.l+t.x[0]*r.w,this.xaxis._length=r.w*(t.x[1]-t.x[0]),this.yaxis._offset=r.t+(1-t.y[1])*r.h,this.yaxis._length=r.h*(t.y[1]-t.y[0])};uu.updateLayers=function(e){var t=e[this.id],r=t.layers,i=this.layerList,n;if(r.length!==i.length){for(n=0;n_Cr});function _Cr(e,t){let r=[];for(let l of e){if(l.subplot!==t||l.visible!==!0)continue;if(l.type==="choroplethmap")return null;let{lat:u,lon:c}=l;if(!c||!u)continue;let f=Math.min(c.length,u.length);for(let h=0;h{"use strict";Klt=i1(bm())});var rut=W((Pli,tut)=>{"use strict";var Roe=it(),wCr=Kb(),TCr=ef(),eut=yk(),{getMapFitBounds:ACr}=(Qlt(),Pt(Jlt));tut.exports=function(t,r,i){wCr(t,r,i,{type:"map",attributes:eut,handleDefaults:MCr,partition:"y",fullData:i})};function MCr(e,t,r,i){r("style"),r("center.lon"),r("center.lat"),r("zoom"),r("bearing"),r("pitch");let n=r("fitbounds");var a=r("bounds.west"),o=r("bounds.east"),s=r("bounds.south"),l=r("bounds.north");(a===void 0||o===void 0||s===void 0||l===void 0)&&delete t.bounds,TCr(e,t,{name:"layers",handleItemDefaults:SCr}),t._fitBounds=null;let{_fitView:{center:u,zoom:c}={},center:f,zoom:h}=e,p=(f==null?void 0:f.lon)===(u==null?void 0:u.lon)&&(f==null?void 0:f.lat)===(u==null?void 0:u.lat)&&h===c;if(n&&p){let d=ACr(i.fullData,i.id);d&&(t._fitBounds=d)}t._input=e}function SCr(e,t){function r(l,u){return Roe.coerce(e,t,eut.layers,l,u)}var i=r("visible");if(i){var n=r("sourcetype"),a=n==="raster"||n==="image";r("source"),r("sourceattribution"),n==="vector"&&r("sourcelayer"),n==="image"&&r("coordinates");var o;a&&(o="raster");var s=r("type",o);a&&s!=="raster"&&(s=t.type="raster",Roe.log("Source types *raster* and *image* must drawn *raster* layer type.")),r("below"),r("color"),r("opacity"),r("minzoom"),r("maxzoom"),s==="circle"&&r("circle.radius"),s==="line"&&(r("line.width"),r("line.dash")),s==="fill"&&r("fill.outlinecolor"),s==="symbol"&&(r("symbol.icon"),r("symbol.iconsize"),r("symbol.text"),Roe.coerceFont(r,"symbol.textfont",void 0,{noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0}),r("symbol.textposition"),r("symbol.placement"))}}});var hO=W(Y0=>{"use strict";var zoe=it(),iut=zoe.strTranslate,ECr=zoe.strScale,kCr=Ac().getSubplotCalcData,CCr=(vd(),Pt(pd)),DCr=gi(),nut=en(),FCr=ho(),LCr=Zlt(),xx="map";Y0.name=xx;Y0.attr="subplot";Y0.idRoot=xx;Y0.idRegex=Y0.attrRegex=zoe.counterRegex(xx);Y0.attributes={subplot:{valType:"subplotid",dflt:"map",editType:"calc"}};Y0.layoutAttributes=yk();Y0.supplyLayoutDefaults=rut();Y0.plot=function(t){for(var r=t._fullLayout,i=t.calcdata,n=r._subplots[xx],a=0;av/2){var m=f.split("|").join("
");p.text(m).attr("data-unformatted",m).call(FCr.convertToTspans,e),d=nut.bBox(p.node())}p.attr("transform",iut(-3,-d.height+8)),h.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 g=1;d.width+6>v&&(g=v/(d.width+6));var w=[i.l+i.w*o.x[1],i.t+i.h*(1-o.y[0])];h.attr("transform",iut(w[0],w[1])+ECr(g))}};Y0.updateFx=function(e){for(var t=e._fullLayout,r=t._subplots[xx],i=0;i{"use strict";aut.exports={attributes:Uz(),supplyDefaults:aQe(),colorbar:kc(),formatLabels:bre(),calc:FQ(),plot:xQe(),hoverPoints:$z().hoverPoints,eventData:TQe(),selectPoints:MQe(),styleOnSelect:function(e,t){if(t){var r=t[0].trace;r._glTrace.update(t)}},moduleType:"trace",name:"scattermap",basePlotModule:hO(),categories:["map","gl","symbols","showLegend","scatter-like"],meta:{}}});var lut=W((zli,sut)=>{"use strict";sut.exports=out()});var Boe=W((Bli,uut)=>{"use strict";var $m=qE(),PCr=Fo(),{hovertemplateAttrs:ICr,templatefallbackAttrs:RCr}=$a(),zCr=Ka(),bx=nn().extendFlat;uut.exports=bx({locations:{valType:"data_array",editType:"calc"},z:{valType:"data_array",editType:"calc"},geojson:{valType:"any",editType:"calc"},featureidkey:bx({},$m.featureidkey,{}),below:{valType:"string",editType:"plot"},text:$m.text,hovertext:$m.hovertext,marker:{line:{color:bx({},$m.marker.line.color,{editType:"plot"}),width:bx({},$m.marker.line.width,{editType:"plot"}),editType:"calc"},opacity:bx({},$m.marker.opacity,{editType:"plot"}),editType:"calc"},selected:{marker:{opacity:bx({},$m.selected.marker.opacity,{editType:"plot"}),editType:"plot"},editType:"plot"},unselected:{marker:{opacity:bx({},$m.unselected.marker.opacity,{editType:"plot"}),editType:"plot"},editType:"plot"},hoverinfo:$m.hoverinfo,hovertemplate:ICr({},{keys:["properties"]}),hovertemplatefallback:RCr(),showlegend:bx({},zCr.showlegend,{dflt:!1})},PCr("",{cLetter:"z",editTypeOverride:"calc"}))});var fut=W((qli,cut)=>{"use strict";var r8=it(),BCr=zu(),qCr=Boe();cut.exports=function(t,r,i,n){function a(c,f){return r8.coerce(t,r,qCr,c,f)}var o=a("locations"),s=a("z"),l=a("geojson");if(!r8.isArrayOrTypedArray(o)||!o.length||!r8.isArrayOrTypedArray(s)||!s.length||!(typeof l=="string"&&l!==""||r8.isPlainObject(l))){r.visible=!1;return}a("featureidkey"),r._length=Math.min(o.length,s.length),a("below"),a("text"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback");var u=a("marker.line.width");u&&a("marker.line.color"),a("marker.opacity"),BCr(t,r,n,a,{prefix:"",cLetter:"z"}),r8.coerceSelectionMarkerOpacity(r,a)}});var qoe=W((Oli,put)=>{"use strict";var OCr=un(),Wm=it(),NCr=es(),UCr=en(),VCr=LE().makeBlank,hut=bm();function GCr(e){var t=e[0].trace,r=t.visible===!0&&t._length!==0,i={layout:{visibility:"none"},paint:{}},n={layout:{visibility:"none"},paint:{}},a=t._opts={fill:i,line:n,geojson:VCr()};if(!r)return a;var o=hut.extractTraceFeature(e);if(!o)return a;var s=NCr.makeColorScaleFuncFromTrace(t),l=t.marker,u=l.line||{},c;Wm.isArrayOrTypedArray(l.opacity)&&(c=function(w){var _=w.mo;return OCr(_)?+Wm.constrain(_,0,1):0});var f;Wm.isArrayOrTypedArray(u.color)&&(f=function(w){return w.mlc});var h;Wm.isArrayOrTypedArray(u.width)&&(h=function(w){return w.mlw});for(var p=0;p{"use strict";var gut=qoe().convert,HCr=qoe().convertOnSelect,vut=J2().traceLayerPrefix;function mut(e,t){this.type="choroplethmap",this.subplot=e,this.uid=t,this.sourceId="source-"+t,this.layerList=[["fill",vut+t+"-fill"],["line",vut+t+"-line"]],this.below=null}var uT=mut.prototype;uT.update=function(e){this._update(gut(e)),e[0].trace._glTrace=this};uT.updateOnSelect=function(e){this._update(HCr(e))};uT._update=function(e){var t=this.subplot,r=this.layerList,i=t.belowLookup["trace-"+this.uid];t.map.getSource(this.sourceId).setData(e.geojson),i!==this.below&&(this._removeLayers(),this._addLayers(e,i),this.below=i);for(var n=0;n=0;r--)e.removeLayer(t[r][1])};uT.dispose=function(){var e=this.subplot.map;this._removeLayers(),e.removeSource(this.sourceId)};yut.exports=function(t,r){var i=r[0].trace,n=new mut(t,i.uid),a=n.sourceId,o=gut(r),s=n.below=t.belowLookup["trace-"+i.uid];return t.map.addSource(a,{type:"geojson",data:o.geojson}),n._addLayers(o,s),r[0].trace._glTrace=n,n}});var _ut=W((Uli,but)=>{"use strict";but.exports={attributes:Boe(),supplyDefaults:fut(),colorbar:D5(),calc:cee(),plot:xut(),hoverPoints:hee(),eventData:dee(),selectPoints:pee(),styleOnSelect:function(e,t){if(t){var r=t[0].trace;r._glTrace.updateOnSelect(t)}},getBelow:function(e,t){for(var r=t.getMapLayers(),i=r.length-2;i>=0;i--){var n=r[i].id;if(typeof n=="string"&&n.indexOf("water")===0){for(var a=i+1;a{"use strict";wut.exports=_ut()});var Noe=W((Gli,Mut)=>{"use strict";var jCr=Fo(),{hovertemplateAttrs:$Cr,templatefallbackAttrs:WCr}=$a(),Aut=Ka(),dO=Uz(),Ooe=nn().extendFlat;Mut.exports=Ooe({lon:dO.lon,lat:dO.lat,z:{valType:"data_array",editType:"calc"},radius:{valType:"number",editType:"plot",arrayOk:!0,min:1,dflt:30},below:{valType:"string",editType:"plot"},text:dO.text,hovertext:dO.hovertext,hoverinfo:Ooe({},Aut.hoverinfo,{flags:["lon","lat","z","text","name"]}),hovertemplate:$Cr(),hovertemplatefallback:WCr(),showlegend:Ooe({},Aut.showlegend,{dflt:!1})},jCr("",{cLetter:"z",editTypeOverride:"calc"}))});var Eut=W((Hli,Sut)=>{"use strict";var YCr=it(),XCr=zu(),ZCr=Noe();Sut.exports=function(t,r,i,n){function a(u,c){return YCr.coerce(t,r,ZCr,u,c)}var o=a("lon")||[],s=a("lat")||[],l=Math.min(o.length,s.length);if(!l){r.visible=!1;return}r._length=l,a("z"),a("radius"),a("below"),a("text"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback"),XCr(t,r,n,a,{prefix:"",cLetter:"z"})}});var Dut=W((jli,Cut)=>{"use strict";var Uoe=un(),KCr=it().isArrayOrTypedArray,Voe=(ta(),Pt(ra)).BADNUM,JCr=tf(),kut=it()._;Cut.exports=function(t,r){for(var i=r._length,n=new Array(i),a=r.z,o=KCr(a)&&a.length,s=0;s{"use strict";var QCr=un(),Goe=it(),Fut=ai(),Lut=es(),Put=(ta(),Pt(ra)).BADNUM,e8r=LE().makeBlank;Iut.exports=function(t){var r=t[0].trace,i=r.visible===!0&&r._length!==0,n={layout:{visibility:"none"},paint:{}},a=r._opts={heatmap:n,geojson:e8r()};if(!i)return a;var o=[],s,l=r.z,u=r.radius,c=Goe.isArrayOrTypedArray(l)&&l.length,f=Goe.isArrayOrTypedArray(u);for(s=0;s0?+u[s]:0),o.push({type:"Feature",geometry:{type:"Point",coordinates:p},properties:d})}}var m=Lut.extractOpts(r),g=m.reversescale?Lut.flipScale(m.colorscale):m.colorscale,w=g[0][1],_=Fut.opacity(w)<1?w:Fut.addOpacity(w,0),b=["interpolate",["linear"],["heatmap-density"],0,_];for(s=1;s{"use strict";var zut=Rut(),t8r=J2().traceLayerPrefix;function But(e,t){this.type="densitymap",this.subplot=e,this.uid=t,this.sourceId="source-"+t,this.layerList=[["heatmap",t8r+t+"-heatmap"]],this.below=null}var pO=But.prototype;pO.update=function(e){var t=this.subplot,r=this.layerList,i=zut(e),n=t.belowLookup["trace-"+this.uid];t.map.getSource(this.sourceId).setData(i.geojson),n!==this.below&&(this._removeLayers(),this._addLayers(i,n),this.below=n);for(var a=0;a=0;r--)e.removeLayer(t[r][1])};pO.dispose=function(){var e=this.subplot.map;this._removeLayers(),e.removeSource(this.sourceId)};qut.exports=function(t,r){var i=r[0].trace,n=new But(t,i.uid),a=n.sourceId,o=zut(r),s=n.below=t.belowLookup["trace-"+i.uid];return t.map.addSource(a,{type:"geojson",data:o.geojson}),n._addLayers(o,s),n}});var Uut=W((Yli,Nut)=>{"use strict";var r8r=Wi(),i8r=$z().hoverPoints,n8r=$z().getExtraText;Nut.exports=function(t,r,i){var n=i8r(t,r,i);if(n){var a=n[0],o=a.cd,s=o[0].trace,l=o[a.index];if(delete a.color,"z"in l){var u=a.subplot.mockAxis;a.z=l.z,a.zLabel=r8r.tickText(u,u.c2l(l.z),"hover").text}return a.extraText=n8r(s,l,o[0].t.labels),[a]}}});var Gut=W((Xli,Vut)=>{"use strict";Vut.exports=function(t,r){return t.lon=r.lon,t.lat=r.lat,t.z=r.z,t}});var jut=W((Zli,Hut)=>{"use strict";Hut.exports={attributes:Noe(),supplyDefaults:Eut(),colorbar:D5(),formatLabels:bre(),calc:Dut(),plot:Out(),hoverPoints:Uut(),eventData:Gut(),getBelow:function(e,t){for(var r=t.getMapLayers(),i=0;i{"use strict";$ut.exports=jut()});var joe=W((Qli,Jut)=>{"use strict";var a8r=jo(),o8r=Ka(),Yut=jl(),Hoe=J3(),s8r=fs().attributes,{hovertemplateAttrs:Xut,templatefallbackAttrs:Zut}=$a(),l8r=Fo(),u8r=Ia().templatedArray,c8r=ws().descriptionOnlyNumbers,Kut=nn().extendFlat,f8r=cs().overrideAll,Jli=Jut.exports=f8r({hoverinfo:Kut({},o8r.hoverinfo,{flags:[],arrayOk:!1}),hoverlabel:Hoe.hoverlabel,domain:s8r({name:"sankey",trace:!0}),orientation:{valType:"enumerated",values:["v","h"],dflt:"h"},direction:{valType:"enumerated",values:["forward","reversed"],dflt:"forward"},valueformat:{valType:"string",dflt:".3s",description:c8r("value")},valuesuffix:{valType:"string",dflt:""},arrangement:{valType:"enumerated",values:["snap","perpendicular","freeform","fixed"],dflt:"snap"},textfont:a8r({autoShadowDflt:!0}),customdata:void 0,node:{label:{valType:"data_array",dflt:[]},groups:{valType:"info_array",impliedEdits:{x:[],y:[]},dimensions:2,freeLength:!0,dflt:[],items:{valType:"number",editType:"calc"}},x:{valType:"data_array",dflt:[]},y:{valType:"data_array",dflt:[]},color:{valType:"color",arrayOk:!0},customdata:{valType:"data_array",editType:"calc"},line:{color:{valType:"color",dflt:Yut.defaultLine,arrayOk:!0},width:{valType:"number",min:0,dflt:.5,arrayOk:!0}},pad:{valType:"number",arrayOk:!1,min:0,dflt:20},thickness:{valType:"number",arrayOk:!1,min:1,dflt:20},hoverinfo:{valType:"enumerated",values:["all","none","skip"],dflt:"all"},hoverlabel:Hoe.hoverlabel,hovertemplate:Xut({},{keys:["value","label"]}),hovertemplatefallback:Zut(),align:{valType:"enumerated",values:["justify","left","right","center"],dflt:"justify"},sort:{valType:"enumerated",values:["auto","input"],dflt:"auto"}},link:{arrowlen:{valType:"number",min:0,dflt:0},label:{valType:"data_array",dflt:[]},color:{valType:"color",arrayOk:!0},hovercolor:{valType:"color",arrayOk:!0},customdata:{valType:"data_array",editType:"calc"},line:{color:{valType:"color",dflt:Yut.defaultLine,arrayOk:!0},width:{valType:"number",min:0,dflt:0,arrayOk:!0}},source:{valType:"data_array",dflt:[]},target:{valType:"data_array",dflt:[]},value:{valType:"data_array",dflt:[]},hoverinfo:{valType:"enumerated",values:["all","none","skip"],dflt:"all"},hoverlabel:Hoe.hoverlabel,hovertemplate:Xut({},{keys:["value","label"]}),hovertemplatefallback:Zut(),colorscales:u8r("concentrationscales",{editType:"calc",label:{valType:"string",editType:"calc",dflt:""},cmax:{valType:"number",editType:"calc",dflt:1},cmin:{valType:"number",editType:"calc",dflt:0},colorscale:Kut(l8r().colorscale,{dflt:[[0,"white"],[1,"black"]]})}),sort:{valType:"enumerated",values:["auto","input"],dflt:"auto"}}},"calc","nested")});var rct=W((eui,tct)=>{"use strict";var cT=it(),vO=joe(),M3=ai(),h8r=fs().defaults,Qut=NA(),ect=Ia(),d8r=ef();tct.exports=function(t,r,i,n){function a(b,S){return cT.coerce(t,r,vO,b,S)}var o=cT.extendDeep(n.hoverlabel,t.hoverlabel),s=t.node,l=ect.newContainer(r,"node");function u(b,S){return cT.coerce(s,l,vO.node,b,S)}u("label"),u("groups"),u("x"),u("y"),u("pad"),u("thickness"),u("line.color"),u("line.width"),u("hoverinfo",t.hoverinfo),Qut(s,l,u,o),u("hovertemplate"),u("align"),u("sort");var c=n.colorway;let f=b=>c[b%c.length];u("color",l.label.map((b,S)=>M3.addOpacity(f(S),.8))),u("customdata");var h=t.link||{},p=ect.newContainer(r,"link");function d(b,S){return cT.coerce(h,p,vO.link,b,S)}d("label"),d("arrowlen"),d("source"),d("target"),d("value"),d("line.color"),d("line.width"),d("hoverinfo",t.hoverinfo),Qut(h,p,d,o),d("hovertemplate"),d("sort");var v=M3.luminosity(n.paper_bgcolor)<.333,m=v?"rgba(255, 255, 255, 0.6)":"rgba(0, 0, 0, 0.2)",g=d("color",m);function w(b){if(!M3.isValid(b))return b;let S=M3.opacity(b);return S<=.8?M3.addOpacity(b,S+.2):v?M3.brighten(b,10):M3.adjustLightness(b,-10)}d("hovercolor",Array.isArray(g)?g.map(w):w(g)),d("customdata"),d8r(h,p,{name:"colorscales",handleItemDefaults:p8r}),h8r(r,n,a),a("orientation"),a("direction"),a("valueformat"),a("valuesuffix");let _=l.x.length&&l.y.length?"freeform":void 0;a("arrangement",_),cT.coerceFont(a,"textfont",n.font,{autoShadowDflt:!0}),r._length=null};function p8r(e,t){function r(i,n){return cT.coerce(e,t,vO.link.colorscales,i,n)}r("label"),r("cmin"),r("cmax"),r("colorscale")}});var $oe=W((tui,ict)=>{"use strict";ict.exports=v8r;function v8r(e){for(var t=e.length,r=new Array(t),i=new Array(t),n=new Array(t),a=new Array(t),o=new Array(t),s=new Array(t),l=0;l0;){m=w[w.length-1];var _=e[m];if(a[m]<_.length){for(var b=a[m];b<_.length;++b){var S=_[b];if(r[S]<0){r[S]=i[S]=u,n[S]=!0,u+=1,g.push(S),w.push(S);break}else n[S]&&(i[m]=Math.min(i[m],i[S])|0);o[S]>=0&&s[m].push(o[S])}a[m]=b}else{if(i[m]===r[m]){for(var x=[],T=[],A=0,b=g.length-1;b>=0;--b){var y=g[b];if(n[y]=!1,x.push(y),T.push(s[y]),A+=s[y].length,o[y]=c.length,y===m){g.length=b;break}}c.push(x);for(var E=new Array(A),b=0;b{"use strict";var g8r=$oe(),fT=it(),m8r=J1().wrap,i8=fT.isArrayOrTypedArray,nct=fT.isIndex,act=es();function y8r(e){var t=e.node,r=e.link,i=[],n=i8(r.color),a=i8(r.hovercolor),o=i8(r.customdata),s={},l={},u=r.colorscales.length,c;for(c=0;cd&&(d=r.source[c]),r.target[c]>d&&(d=r.target[c]);var v=d+1;e.node._count=v;var m,g=e.node.groups,w={};for(c=0;c0&&nct(A,v)&&nct(y,v)&&!(w.hasOwnProperty(A)&&w.hasOwnProperty(y)&&w[A]===w[y])){w.hasOwnProperty(y)&&(y=w[y]),w.hasOwnProperty(A)&&(A=w[A]),A=+A,y=+y,s[A]=s[y]=!0;var E="";r.label&&r.label[c]&&(E=r.label[c]);var M=null;E&&l.hasOwnProperty(E)&&(M=l[E]),i.push({pointNumber:c,label:E,color:n?r.color[c]:r.color,hovercolor:a?r.hovercolor[c]:r.hovercolor,customdata:o?r.customdata[c]:r.customdata,concentrationscale:M,source:A,target:y,value:+T}),x.source.push(A),x.target.push(y)}}var C=v+g.length,k=i8(t.color),D=i8(t.customdata),L=[];for(c=0;cv-1,childrenNodes:[],pointNumber:c,label:P,color:k?t.color[c]:t.color,customdata:D?t.customdata[c]:t.customdata})}var R=!1;return x8r(C,x.source,x.target)&&(R=!0),{circular:R,links:i,nodes:L,groups:g,groupLookup:w}}function x8r(e,t,r){for(var i=fT.init2dArray(e,0),n=0;n1})}oct.exports=function(t,r){var i=y8r(r);return m8r({circular:i.circular,_nodes:i.nodes,_links:i.links,_groups:i.groups,_groupLookup:i.groupLookup})}});var uct=W((gO,lct)=>{(function(e,t){typeof gO=="object"&&typeof lct!="undefined"?t(gO):(e=e||self,t(e.d3=e.d3||{}))})(gO,function(e){"use strict";function t(T){var A=+this._x.call(null,T),y=+this._y.call(null,T);return r(this.cover(A,y),A,y,T)}function r(T,A,y,E){if(isNaN(A)||isNaN(y))return T;var M,C=T._root,k={data:E},D=T._x0,L=T._y0,P=T._x1,R=T._y1,F,I,B,O,$,Y,K,j;if(!C)return T._root=k,T;for(;C.length;)if(($=A>=(F=(D+P)/2))?D=F:P=F,(Y=y>=(I=(L+R)/2))?L=I:R=I,M=C,!(C=C[K=Y<<1|$]))return M[K]=k,T;if(B=+T._x.call(null,C.data),O=+T._y.call(null,C.data),A===B&&y===O)return k.next=C,M?M[K]=k:T._root=k,T;do M=M?M[K]=new Array(4):T._root=new Array(4),($=A>=(F=(D+P)/2))?D=F:P=F,(Y=y>=(I=(L+R)/2))?L=I:R=I;while((K=Y<<1|$)===(j=(O>=I)<<1|B>=F));return M[j]=C,M[K]=k,T}function i(T){var A,y,E=T.length,M,C,k=new Array(E),D=new Array(E),L=1/0,P=1/0,R=-1/0,F=-1/0;for(y=0;yR&&(R=M),CF&&(F=C));if(L>R||P>F)return this;for(this.cover(L,P).cover(R,F),y=0;yT||T>=M||E>A||A>=C;)switch(P=(AR||(D=O.y0)>F||(L=O.x1)=K)<<1|T>=Y)&&(O=I[I.length-1],I[I.length-1]=I[I.length-1-$],I[I.length-1-$]=O)}else{var j=T-+this._x.call(null,B.data),q=A-+this._y.call(null,B.data),Q=j*j+q*q;if(Q=(I=(k+L)/2))?k=I:L=I,($=F>=(B=(D+P)/2))?D=B:P=B,A=y,!(y=y[Y=$<<1|O]))return this;if(!y.length)break;(A[Y+1&3]||A[Y+2&3]||A[Y+3&3])&&(E=A,K=Y)}for(;y.data!==T;)if(M=y,!(y=y.next))return this;return(C=y.next)&&delete y.next,M?(C?M.next=C:delete M.next,this):A?(C?A[Y]=C:delete A[Y],(y=A[0]||A[1]||A[2]||A[3])&&y===(A[3]||A[2]||A[1]||A[0])&&!y.length&&(E?E[K]=y:this._root=y),this):(this._root=C,this)}function c(T){for(var A=0,y=T.length;A{(function(e,t){t(typeof mO=="object"&&typeof cct!="undefined"?mO:e.d3=e.d3||{})})(mO,(function(e){"use strict";var t="$";function r(){}r.prototype=i.prototype={constructor:r,has:function(v){return t+v in this},get:function(v){return this[t+v]},set:function(v,m){return this[t+v]=m,this},remove:function(v){var m=t+v;return m in this&&delete this[m]},clear:function(){for(var v in this)v[0]===t&&delete this[v]},keys:function(){var v=[];for(var m in this)m[0]===t&&v.push(m.slice(1));return v},values:function(){var v=[];for(var m in this)m[0]===t&&v.push(this[m]);return v},entries:function(){var v=[];for(var m in this)m[0]===t&&v.push({key:m.slice(1),value:this[m]});return v},size:function(){var v=0;for(var m in this)m[0]===t&&++v;return v},empty:function(){for(var v in this)if(v[0]===t)return!1;return!0},each:function(v){for(var m in this)m[0]===t&&v(this[m],m.slice(1),this)}};function i(v,m){var g=new r;if(v instanceof r)v.each(function(x,T){g.set(T,x)});else if(Array.isArray(v)){var w=-1,_=v.length,b;if(m==null)for(;++w<_;)g.set(w,v[w]);else for(;++w<_;)g.set(m(b=v[w],w,v),b)}else if(v)for(var S in v)g.set(S,v[S]);return g}function n(){var v=[],m=[],g,w,_;function b(x,T,A,y){if(T>=v.length)return g!=null&&x.sort(g),w!=null?w(x):x;for(var E=-1,M=x.length,C=v[T++],k,D,L=i(),P,R=A();++Ev.length)return x;var A,y=m[T-1];return w!=null&&T>=v.length?A=x.entries():(A=[],x.each(function(E,M){A.push({key:M,values:S(E,T)})})),y!=null?A.sort(function(E,M){return y(E.key,M.key)}):A}return _={object:function(x){return b(x,0,a,o)},map:function(x){return b(x,0,s,l)},entries:function(x){return S(b(x,0,s,l),0)},key:function(x){return v.push(x),_},sortKeys:function(x){return m[v.length-1]=x,_},sortValues:function(x){return g=x,_},rollup:function(x){return w=x,_}}}function a(){return{}}function o(v,m,g){v[m]=g}function s(){return i()}function l(v,m,g){v.set(m,g)}function u(){}var c=i.prototype;u.prototype=f.prototype={constructor:u,has:c.has,add:function(v){return v+="",this[t+v]=v,this},remove:c.remove,clear:c.clear,values:c.keys,size:c.size,empty:c.empty,each:c.each};function f(v,m){var g=new u;if(v instanceof u)v.each(function(b){g.add(b)});else if(v){var w=-1,_=v.length;if(m==null)for(;++w<_;)g.add(v[w]);else for(;++w<_;)g.add(m(v[w],w,v))}return g}function h(v){var m=[];for(var g in v)m.push(g);return m}function p(v){var m=[];for(var g in v)m.push(v[g]);return m}function d(v){var m=[];for(var g in v)m.push({key:g,value:v[g]});return m}e.nest=n,e.set=f,e.map=i,e.keys=h,e.values=p,e.entries=d,Object.defineProperty(e,"__esModule",{value:!0})}))});var hct=W((yO,fct)=>{(function(e,t){typeof yO=="object"&&typeof fct!="undefined"?t(yO):(e=e||self,t(e.d3=e.d3||{}))})(yO,function(e){"use strict";var t={value:function(){}};function r(){for(var s=0,l=arguments.length,u={},c;s=0&&(c=u.slice(f+1),u=u.slice(0,f)),u&&!l.hasOwnProperty(u))throw new Error("unknown type: "+u);return{type:u,name:c}})}i.prototype=r.prototype={constructor:i,on:function(s,l){var u=this._,c=n(s+"",u),f,h=-1,p=c.length;if(arguments.length<2){for(;++h0)for(var u=new Array(f),c=0,f,h;c{(function(e,t){typeof xO=="object"&&typeof dct!="undefined"?t(xO):(e=e||self,t(e.d3=e.d3||{}))})(xO,function(e){"use strict";var t=0,r=0,i=0,n=1e3,a,o,s=0,l=0,u=0,c=typeof performance=="object"&&performance.now?performance:Date,f=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(T){setTimeout(T,17)};function h(){return l||(f(p),l=c.now()+u)}function p(){l=0}function d(){this._call=this._time=this._next=null}d.prototype=v.prototype={constructor:d,restart:function(T,A,y){if(typeof T!="function")throw new TypeError("callback is not a function");y=(y==null?h():+y)+(A==null?0:+A),!this._next&&o!==this&&(o?o._next=this:a=this,o=this),this._call=T,this._time=y,b()},stop:function(){this._call&&(this._call=null,this._time=1/0,b())}};function v(T,A,y){var E=new d;return E.restart(T,A,y),E}function m(){h(),++t;for(var T=a,A;T;)(A=l-T._time)>=0&&T._call.call(null,A),T=T._next;--t}function g(){l=(s=c.now())+u,t=r=0;try{m()}finally{t=0,_(),l=0}}function w(){var T=c.now(),A=T-s;A>n&&(u-=A,s=T)}function _(){for(var T,A=a,y,E=1/0;A;)A._call?(E>A._time&&(E=A._time),T=A,A=A._next):(y=A._next,A._next=null,A=T?T._next=y:a=y);o=T,b(E)}function b(T){if(!t){r&&(r=clearTimeout(r));var A=T-l;A>24?(T<1/0&&(r=setTimeout(g,T-c.now()-u)),i&&(i=clearInterval(i))):(i||(s=c.now(),i=setInterval(w,n)),t=1,f(g))}}function S(T,A,y){var E=new d;return A=A==null?0:+A,E.restart(function(M){E.stop(),T(M+A)},A,y),E}function x(T,A,y){var E=new d,M=A;return A==null?(E.restart(T,A,y),E):(A=+A,y=y==null?h():+y,E.restart(function C(k){k+=M,E.restart(C,M+=A,y),T(k)},A,y),E)}e.interval=x,e.now=h,e.timeout=S,e.timer=v,e.timerFlush=m,Object.defineProperty(e,"__esModule",{value:!0})})});var gct=W((bO,vct)=>{(function(e,t){typeof bO=="object"&&typeof vct!="undefined"?t(bO,uct(),Woe(),hct(),pct()):t(e.d3=e.d3||{},e.d3,e.d3,e.d3,e.d3)})(bO,(function(e,t,r,i,n){"use strict";function a(T,A){var y;T==null&&(T=0),A==null&&(A=0);function E(){var M,C=y.length,k,D=0,L=0;for(M=0;MF.index){var J=I-X.x-X.vx,te=B-X.y-X.vy,ue=J*J+te*te;ueI+H||UB+H||VL.r&&(L.r=L[P].r)}function D(){if(A){var L,P=A.length,R;for(y=new Array(P),L=0;L1?($==null?D.remove(O):D.set(O,B($)),A):D.get(O)},find:function(O,$,Y){var K=0,j=T.length,q,Q,U,V,X;for(Y==null?Y=1/0:Y*=Y,K=0;K1?(P.on(O,$),A):P.on(O)}}}function _(){var T,A,y,E=o(-30),M,C=1,k=1/0,D=.81;function L(I){var B,O=T.length,$=t.quadtree(T,d,v).visitAfter(R);for(y=I,B=0;B=k)return;(I.data!==A||I.next)&&(Y===0&&(Y=s(),q+=Y*Y),K===0&&(K=s(),q+=K*K),q{(function(e,t){typeof _O=="object"&&typeof mct!="undefined"?t(_O):(e=typeof globalThis!="undefined"?globalThis:e||self,t(e.d3=e.d3||{}))})(_O,(function(e){"use strict";function t($e,tt){return $ett?1:$e>=tt?0:NaN}function r($e){let tt=$e,st=$e;$e.length===1&&(tt=(nr,dr)=>$e(nr)-dr,st=i($e));function xt(nr,dr,Vr,ui){for(Vr==null&&(Vr=0),ui==null&&(ui=nr.length);Vr>>1;st(nr[ti],dr)<0?Vr=ti+1:ui=ti}return Vr}function Je(nr,dr,Vr,ui){for(Vr==null&&(Vr=0),ui==null&&(ui=nr.length);Vr>>1;st(nr[ti],dr)>0?ui=ti:Vr=ti+1}return Vr}function Ct(nr,dr,Vr,ui){Vr==null&&(Vr=0),ui==null&&(ui=nr.length);let ti=xt(nr,dr,Vr,ui-1);return ti>Vr&&tt(nr[ti-1],dr)>-tt(nr[ti],dr)?ti-1:ti}return{left:xt,center:Ct,right:Je}}function i($e){return(tt,st)=>t($e(tt),st)}function n($e){return $e===null?NaN:+$e}function*a($e,tt){if(tt===void 0)for(let st of $e)st!=null&&(st=+st)>=st&&(yield st);else{let st=-1;for(let xt of $e)(xt=tt(xt,++st,$e))!=null&&(xt=+xt)>=xt&&(yield xt)}}let o=r(t),s=o.right,l=o.left,u=r(n).center;function c($e,tt){let st=0;if(tt===void 0)for(let xt of $e)xt!=null&&(xt=+xt)>=xt&&++st;else{let xt=-1;for(let Je of $e)(Je=tt(Je,++xt,$e))!=null&&(Je=+Je)>=Je&&++st}return st}function f($e){return $e.length|0}function h($e){return!($e>0)}function p($e){return typeof $e!="object"||"length"in $e?$e:Array.from($e)}function d($e){return tt=>$e(...tt)}function v(...$e){let tt=typeof $e[$e.length-1]=="function"&&d($e.pop());$e=$e.map(p);let st=$e.map(f),xt=$e.length-1,Je=new Array(xt+1).fill(0),Ct=[];if(xt<0||st.some(h))return Ct;for(;;){Ct.push(Je.map((dr,Vr)=>$e[Vr][dr]));let nr=xt;for(;++Je[nr]===st[nr];){if(nr===0)return tt?Ct.map(tt):Ct;Je[nr--]=0}}}function m($e,tt){var st=0,xt=0;return Float64Array.from($e,tt===void 0?Je=>st+=+Je||0:Je=>st+=+tt(Je,xt++,$e)||0)}function g($e,tt){return tt<$e?-1:tt>$e?1:tt>=$e?0:NaN}function w($e,tt){let st=0,xt,Je=0,Ct=0;if(tt===void 0)for(let nr of $e)nr!=null&&(nr=+nr)>=nr&&(xt=nr-Je,Je+=xt/++st,Ct+=xt*(nr-Je));else{let nr=-1;for(let dr of $e)(dr=tt(dr,++nr,$e))!=null&&(dr=+dr)>=dr&&(xt=dr-Je,Je+=xt/++st,Ct+=xt*(dr-Je))}if(st>1)return Ct/(st-1)}function _($e,tt){let st=w($e,tt);return st&&Math.sqrt(st)}function b($e,tt){let st,xt;if(tt===void 0)for(let Je of $e)Je!=null&&(st===void 0?Je>=Je&&(st=xt=Je):(st>Je&&(st=Je),xt=Ct&&(st=xt=Ct):(st>Ct&&(st=Ct),xt0){for(nr=tt[--st];st>0&&(xt=nr,Je=tt[--st],nr=xt+Je,Ct=Je-(nr-xt),!Ct););st>0&&(Ct<0&&tt[st-1]<0||Ct>0&&tt[st-1]>0)&&(Je=Ct*2,xt=nr+Je,Je==xt-nr&&(nr=xt))}return nr}}function x($e,tt){let st=new S;if(tt===void 0)for(let xt of $e)(xt=+xt)&&st.add(xt);else{let xt=-1;for(let Je of $e)(Je=+tt(Je,++xt,$e))&&st.add(Je)}return+st}function T($e,tt){let st=new S,xt=-1;return Float64Array.from($e,tt===void 0?Je=>st.add(+Je||0):Je=>st.add(+tt(Je,++xt,$e)||0))}class A extends Map{constructor(tt,st=k){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:st}}),tt!=null)for(let[xt,Je]of tt)this.set(xt,Je)}get(tt){return super.get(E(this,tt))}has(tt){return super.has(E(this,tt))}set(tt,st){return super.set(M(this,tt),st)}delete(tt){return super.delete(C(this,tt))}}class y extends Set{constructor(tt,st=k){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:st}}),tt!=null)for(let xt of tt)this.add(xt)}has(tt){return super.has(E(this,tt))}add(tt){return super.add(M(this,tt))}delete(tt){return super.delete(C(this,tt))}}function E({_intern:$e,_key:tt},st){let xt=tt(st);return $e.has(xt)?$e.get(xt):st}function M({_intern:$e,_key:tt},st){let xt=tt(st);return $e.has(xt)?$e.get(xt):($e.set(xt,st),st)}function C({_intern:$e,_key:tt},st){let xt=tt(st);return $e.has(xt)&&(st=$e.get(st),$e.delete(xt)),st}function k($e){return $e!==null&&typeof $e=="object"?$e.valueOf():$e}function D($e){return $e}function L($e,...tt){return $($e,D,D,tt)}function P($e,...tt){return $($e,Array.from,D,tt)}function R($e,tt,...st){return $($e,D,tt,st)}function F($e,tt,...st){return $($e,Array.from,tt,st)}function I($e,...tt){return $($e,D,O,tt)}function B($e,...tt){return $($e,Array.from,O,tt)}function O($e){if($e.length!==1)throw new Error("duplicate key");return $e[0]}function $($e,tt,st,xt){return(function Je(Ct,nr){if(nr>=xt.length)return st(Ct);let dr=new A,Vr=xt[nr++],ui=-1;for(let ti of Ct){let Pr=Vr(ti,++ui,Ct),Xi=dr.get(Pr);Xi?Xi.push(ti):dr.set(Pr,[ti])}for(let[ti,Pr]of dr)dr.set(ti,Je(Pr,nr));return tt(dr)})($e,0)}function Y($e,tt){return Array.from(tt,st=>$e[st])}function K($e,...tt){if(typeof $e[Symbol.iterator]!="function")throw new TypeError("values is not iterable");$e=Array.from($e);let[st=t]=tt;if(st.length===1||tt.length>1){let xt=Uint32Array.from($e,(Je,Ct)=>Ct);return tt.length>1?(tt=tt.map(Je=>$e.map(Je)),xt.sort((Je,Ct)=>{for(let nr of tt){let dr=t(nr[Je],nr[Ct]);if(dr)return dr}})):(st=$e.map(st),xt.sort((Je,Ct)=>t(st[Je],st[Ct]))),Y($e,xt)}return $e.sort(st)}function j($e,tt,st){return(tt.length===1?K(R($e,tt,st),(([xt,Je],[Ct,nr])=>t(Je,nr)||t(xt,Ct))):K(L($e,st),(([xt,Je],[Ct,nr])=>tt(Je,nr)||t(xt,Ct)))).map(([xt])=>xt)}var q=Array.prototype,Q=q.slice;function U($e){return function(){return $e}}var V=Math.sqrt(50),X=Math.sqrt(10),G=Math.sqrt(2);function H($e,tt,st){var xt,Je=-1,Ct,nr,dr;if(tt=+tt,$e=+$e,st=+st,$e===tt&&st>0)return[$e];if((xt=tt<$e)&&(Ct=$e,$e=tt,tt=Ct),(dr=J($e,tt,st))===0||!isFinite(dr))return[];if(dr>0){let Vr=Math.round($e/dr),ui=Math.round(tt/dr);for(Vr*dr<$e&&++Vr,ui*dr>tt&&--ui,nr=new Array(Ct=ui-Vr+1);++Jett&&--ui,nr=new Array(Ct=ui-Vr+1);++Je=0?(Ct>=V?10:Ct>=X?5:Ct>=G?2:1)*Math.pow(10,Je):-Math.pow(10,-Je)/(Ct>=V?10:Ct>=X?5:Ct>=G?2:1)}function te($e,tt,st){var xt=Math.abs(tt-$e)/Math.max(0,st),Je=Math.pow(10,Math.floor(Math.log(xt)/Math.LN10)),Ct=xt/Je;return Ct>=V?Je*=10:Ct>=X?Je*=5:Ct>=G&&(Je*=2),tt<$e?-Je:Je}function ue($e,tt,st){let xt;for(;;){let Je=J($e,tt,st);if(Je===xt||Je===0||!isFinite(Je))return[$e,tt];Je>0?($e=Math.floor($e/Je)*Je,tt=Math.ceil(tt/Je)*Je):Je<0&&($e=Math.ceil($e*Je)/Je,tt=Math.floor(tt*Je)/Je),xt=Je}}function ge($e){return Math.ceil(Math.log(c($e))/Math.LN2)+1}function ke(){var $e=D,tt=b,st=ge;function xt(Je){Array.isArray(Je)||(Je=Array.from(Je));var Ct,nr=Je.length,dr,Vr=new Array(nr);for(Ct=0;Ct=Pr)if(va>=Pr&&tt===b){let Hn=J(ti,Pr,gn);isFinite(Hn)&&(Hn>0?Pr=(Math.floor(Pr/Hn)+1)*Hn:Hn<0&&(Pr=(Math.ceil(Pr*-Hn)+1)/-Hn))}else Xi.pop()}for(var Sn=Xi.length;Xi[0]<=ti;)Xi.shift(),--Sn;for(;Xi[Sn-1]>Pr;)Xi.pop(),--Sn;var vn=new Array(Sn+1),aa;for(Ct=0;Ct<=Sn;++Ct)aa=vn[Ct]=[],aa.x0=Ct>0?Xi[Ct-1]:ti,aa.x1=Ct=xt)&&(st=xt);else{let xt=-1;for(let Je of $e)(Je=tt(Je,++xt,$e))!=null&&(st=Je)&&(st=Je)}return st}function he($e,tt){let st;if(tt===void 0)for(let xt of $e)xt!=null&&(st>xt||st===void 0&&xt>=xt)&&(st=xt);else{let xt=-1;for(let Je of $e)(Je=tt(Je,++xt,$e))!=null&&(st>Je||st===void 0&&Je>=Je)&&(st=Je)}return st}function oe($e,tt,st=0,xt=$e.length-1,Je=t){for(;xt>st;){if(xt-st>600){let Vr=xt-st+1,ui=tt-st+1,ti=Math.log(Vr),Pr=.5*Math.exp(2*ti/3),Xi=.5*Math.sqrt(ti*Pr*(Vr-Pr)/Vr)*(ui-Vr/2<0?-1:1),Sn=Math.max(st,Math.floor(tt-ui*Pr/Vr+Xi)),vn=Math.min(xt,Math.floor(tt+(Vr-ui)*Pr/Vr+Xi));oe($e,tt,Sn,vn,Je)}let Ct=$e[tt],nr=st,dr=xt;for(Me($e,st,tt),Je($e[xt],Ct)>0&&Me($e,st,xt);nr0;)--dr}Je($e[st],Ct)===0?Me($e,st,dr):(++dr,Me($e,dr,xt)),dr<=tt&&(st=dr+1),tt<=dr&&(xt=dr-1)}return $e}function Me($e,tt,st){let xt=$e[tt];$e[tt]=$e[st],$e[st]=xt}function ye($e,tt,st){if($e=Float64Array.from(a($e,st)),!!(xt=$e.length)){if((tt=+tt)<=0||xt<2)return he($e);if(tt>=1)return _e($e);var xt,Je=(xt-1)*tt,Ct=Math.floor(Je),nr=_e(oe($e,Ct).subarray(0,Ct+1)),dr=he($e.subarray(Ct+1));return nr+(dr-nr)*(Je-Ct)}}function ce($e,tt,st=n){if(xt=$e.length){if((tt=+tt)<=0||xt<2)return+st($e[0],0,$e);if(tt>=1)return+st($e[xt-1],xt-1,$e);var xt,Je=(xt-1)*tt,Ct=Math.floor(Je),nr=+st($e[Ct],Ct,$e),dr=+st($e[Ct+1],Ct+1,$e);return nr+(dr-nr)*(Je-Ct)}}function ee($e,tt,st){return Math.ceil((st-tt)/(2*(ye($e,.75)-ye($e,.25))*Math.pow(c($e),-1/3)))}function ae($e,tt,st){return Math.ceil((st-tt)/(3.5*_($e)*Math.pow(c($e),-1/3)))}function xe($e,tt){let st,xt=-1,Je=-1;if(tt===void 0)for(let Ct of $e)++Je,Ct!=null&&(st=Ct)&&(st=Ct,xt=Je);else for(let Ct of $e)(Ct=tt(Ct,++Je,$e))!=null&&(st=Ct)&&(st=Ct,xt=Je);return xt}function re($e,tt){let st=0,xt=0;if(tt===void 0)for(let Je of $e)Je!=null&&(Je=+Je)>=Je&&(++st,xt+=Je);else{let Je=-1;for(let Ct of $e)(Ct=tt(Ct,++Je,$e))!=null&&(Ct=+Ct)>=Ct&&(++st,xt+=Ct)}if(st)return xt/st}function pe($e,tt){return ye($e,.5,tt)}function*we($e){for(let tt of $e)yield*Vle(tt)}function Fe($e){return Array.from(we($e))}function Ee($e,tt){let st,xt=-1,Je=-1;if(tt===void 0)for(let Ct of $e)++Je,Ct!=null&&(st>Ct||st===void 0&&Ct>=Ct)&&(st=Ct,xt=Je);else for(let Ct of $e)(Ct=tt(Ct,++Je,$e))!=null&&(st>Ct||st===void 0&&Ct>=Ct)&&(st=Ct,xt=Je);return xt}function Ce($e,tt=be){let st=[],xt,Je=!1;for(let Ct of $e)Je&&st.push(tt(xt,Ct)),xt=Ct,Je=!0;return st}function be($e,tt){return[$e,tt]}function Ie($e,tt,st){$e=+$e,tt=+tt,st=(Je=arguments.length)<2?(tt=$e,$e=0,1):Je<3?1:+st;for(var xt=-1,Je=Math.max(0,Math.ceil((tt-$e)/st))|0,Ct=new Array(Je);++xt0:t(nr,nr)===0)&&(st=Ct,Je=nr,xt=!0)}}else for(let Je of $e)(xt?tt(Je,st)>0:tt(Je,Je)===0)&&(st=Je,xt=!0);return st}function bt($e,tt=t){if(tt.length===1)return xe($e,tt);let st,xt=-1,Je=-1;for(let Ct of $e)++Je,(xt<0?tt(Ct,Ct)===0:tt(Ct,st)>0)&&(st=Ct,xt=Je);return xt}function ut($e,tt){let st=Qe($e,tt);return st<0?void 0:st}var vt=Xe(Math.random);function Xe($e){return function(st,xt=0,Je=st.length){let Ct=Je-(xt=+xt);for(;Ct;){let nr=$e()*Ct--|0,dr=st[Ct+xt];st[Ct+xt]=st[nr+xt],st[nr+xt]=dr}return st}}function mt($e,tt){let st=0;if(tt===void 0)for(let xt of $e)(xt=+xt)&&(st+=xt);else{let xt=-1;for(let Je of $e)(Je=+tt(Je,++xt,$e))&&(st+=Je)}return st}function _t($e){if(!(Ct=$e.length))return[];for(var tt=-1,st=he($e,Ne),xt=new Array(st);++tttt(st,xt,$e))}function ct($e,tt,st){if(typeof tt!="function")throw new TypeError("reducer is not a function");let xt=$e[Symbol.iterator](),Je,Ct,nr=-1;if(arguments.length<3){if({done:Je,value:st}=xt.next(),Je)return;++nr}for(;{done:Je,value:Ct}=xt.next(),!Je;)st=tt(st,Ct,++nr,$e);return st}function Tt($e){if(typeof $e[Symbol.iterator]!="function")throw new TypeError("values is not iterable");return Array.from($e).reverse()}function Zt($e,...tt){$e=new Set($e);for(let st of tt)for(let xt of st)$e.delete(xt);return $e}function Gt($e,tt){let st=tt[Symbol.iterator](),xt=new Set;for(let Je of $e){if(xt.has(Je))return!1;let Ct,nr;for(;({value:Ct,done:nr}=st.next())&&!nr;){if(Object.is(Je,Ct))return!1;xt.add(Ct)}}return!0}function ur($e){return $e instanceof Set?$e:new Set($e)}function cr($e,...tt){$e=new Set($e),tt=tt.map(ur);e:for(let st of $e)for(let xt of tt)if(!xt.has(st)){$e.delete(st);continue e}return $e}function qt($e,tt){let st=$e[Symbol.iterator](),xt=new Set;for(let Je of tt){if(xt.has(Je))continue;let Ct,nr;for(;{value:Ct,done:nr}=st.next();){if(nr)return!1;if(xt.add(Ct),Object.is(Je,Ct))break}}return!0}function Kt($e,tt){return qt(tt,$e)}function Cr(...$e){let tt=new Set;for(let st of $e)for(let xt of st)tt.add(xt);return tt}e.Adder=S,e.InternMap=A,e.InternSet=y,e.ascending=t,e.bin=ke,e.bisect=s,e.bisectCenter=u,e.bisectLeft=l,e.bisectRight=s,e.bisector=r,e.count=c,e.cross=v,e.cumsum=m,e.descending=g,e.deviation=_,e.difference=Zt,e.disjoint=Gt,e.every=Ge,e.extent=b,e.fcumsum=T,e.filter=Re,e.fsum=x,e.greatest=et,e.greatestIndex=bt,e.group=L,e.groupSort=j,e.groups=P,e.histogram=ke,e.index=I,e.indexes=B,e.intersection=cr,e.least=Oe,e.leastIndex=Qe,e.map=Ve,e.max=_e,e.maxIndex=xe,e.mean=re,e.median=pe,e.merge=Fe,e.min=he,e.minIndex=Ee,e.nice=ue,e.pairs=Ce,e.permute=Y,e.quantile=ye,e.quantileSorted=ce,e.quickselect=oe,e.range=Ie,e.reduce=ct,e.reverse=Tt,e.rollup=R,e.rollups=F,e.scan=ut,e.shuffle=vt,e.shuffler=Xe,e.some=je,e.sort=K,e.subset=Kt,e.sum=mt,e.superset=qt,e.thresholdFreedmanDiaconis=ee,e.thresholdScott=ae,e.thresholdSturges=ge,e.tickIncrement=J,e.tickStep=te,e.ticks=H,e.transpose=_t,e.union=Cr,e.variance=w,e.zip=Ue,Object.defineProperty(e,"__esModule",{value:!0})}))});var bct=W((wO,xct)=>{(function(e,t){typeof wO=="object"&&typeof xct!="undefined"?t(wO):(e=e||self,t(e.d3=e.d3||{}))})(wO,function(e){"use strict";var t=Math.PI,r=2*t,i=1e-6,n=r-i;function a(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function o(){return new a}a.prototype=o.prototype={constructor:a,moveTo:function(s,l){this._+="M"+(this._x0=this._x1=+s)+","+(this._y0=this._y1=+l)},closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(s,l){this._+="L"+(this._x1=+s)+","+(this._y1=+l)},quadraticCurveTo:function(s,l,u,c){this._+="Q"+ +s+","+ +l+","+(this._x1=+u)+","+(this._y1=+c)},bezierCurveTo:function(s,l,u,c,f,h){this._+="C"+ +s+","+ +l+","+ +u+","+ +c+","+(this._x1=+f)+","+(this._y1=+h)},arcTo:function(s,l,u,c,f){s=+s,l=+l,u=+u,c=+c,f=+f;var h=this._x1,p=this._y1,d=u-s,v=c-l,m=h-s,g=p-l,w=m*m+g*g;if(f<0)throw new Error("negative radius: "+f);if(this._x1===null)this._+="M"+(this._x1=s)+","+(this._y1=l);else if(w>i)if(!(Math.abs(g*d-v*m)>i)||!f)this._+="L"+(this._x1=s)+","+(this._y1=l);else{var _=u-h,b=c-p,S=d*d+v*v,x=_*_+b*b,T=Math.sqrt(S),A=Math.sqrt(w),y=f*Math.tan((t-Math.acos((S+w-x)/(2*T*A)))/2),E=y/A,M=y/T;Math.abs(E-1)>i&&(this._+="L"+(s+E*m)+","+(l+E*g)),this._+="A"+f+","+f+",0,0,"+ +(g*_>m*b)+","+(this._x1=s+M*d)+","+(this._y1=l+M*v)}},arc:function(s,l,u,c,f,h){s=+s,l=+l,u=+u,h=!!h;var p=u*Math.cos(c),d=u*Math.sin(c),v=s+p,m=l+d,g=1^h,w=h?c-f:f-c;if(u<0)throw new Error("negative radius: "+u);this._x1===null?this._+="M"+v+","+m:(Math.abs(this._x1-v)>i||Math.abs(this._y1-m)>i)&&(this._+="L"+v+","+m),u&&(w<0&&(w=w%r+r),w>n?this._+="A"+u+","+u+",0,1,"+g+","+(s-p)+","+(l-d)+"A"+u+","+u+",0,1,"+g+","+(this._x1=v)+","+(this._y1=m):w>i&&(this._+="A"+u+","+u+",0,"+ +(w>=t)+","+g+","+(this._x1=s+u*Math.cos(f))+","+(this._y1=l+u*Math.sin(f))))},rect:function(s,l,u,c){this._+="M"+(this._x0=this._x1=+s)+","+(this._y0=this._y1=+l)+"h"+ +u+"v"+ +c+"h"+-u+"Z"},toString:function(){return this._}},e.path=o,Object.defineProperty(e,"__esModule",{value:!0})})});var Yoe=W((TO,_ct)=>{(function(e,t){typeof TO=="object"&&typeof _ct!="undefined"?t(TO,bct()):(e=e||self,t(e.d3=e.d3||{},e.d3))})(TO,function(e,t){"use strict";function r(Le){return function(){return Le}}var i=Math.abs,n=Math.atan2,a=Math.cos,o=Math.max,s=Math.min,l=Math.sin,u=Math.sqrt,c=1e-12,f=Math.PI,h=f/2,p=2*f;function d(Le){return Le>1?0:Le<-1?f:Math.acos(Le)}function v(Le){return Le>=1?h:Le<=-1?-h:Math.asin(Le)}function m(Le){return Le.innerRadius}function g(Le){return Le.outerRadius}function w(Le){return Le.startAngle}function _(Le){return Le.endAngle}function b(Le){return Le&&Le.padAngle}function S(Le,ot,lt,kt,Qt,zt,Ar,Yt){var wr=lt-Le,Zr=kt-ot,ri=Ar-Qt,Si=Yt-zt,sn=Si*wr-ri*Zr;if(!(sn*snms*ms+Js*Js&&(as=Go,No=co),{cx:as,cy:No,x01:-ri,y01:-Si,x11:as*(Qt/gs-1),y11:No*(Qt/gs-1)}}function T(){var Le=m,ot=g,lt=r(0),kt=null,Qt=w,zt=_,Ar=b,Yt=null;function wr(){var Zr,ri,Si=+Le.apply(this,arguments),sn=+ot.apply(this,arguments),jn=Qt.apply(this,arguments)-h,bn=zt.apply(this,arguments)-h,ga=i(bn-jn),Xn=bn>jn;if(Yt||(Yt=Zr=t.path()),snc))Yt.moveTo(0,0);else if(ga>p-c)Yt.moveTo(sn*a(jn),sn*l(jn)),Yt.arc(0,0,sn,jn,bn,!Xn),Si>c&&(Yt.moveTo(Si*a(bn),Si*l(bn)),Yt.arc(0,0,Si,bn,jn,Xn));else{var to=jn,uo=bn,ko=jn,Oo=bn,gs=ga,ns=ga,Co=Ar.apply(this,arguments)/2,as=Co>c&&(kt?+kt.apply(this,arguments):u(Si*Si+sn*sn)),No=s(i(sn-Si)/2,+lt.apply(this,arguments)),Go=No,co=No,zn,xa;if(as>c){var ms=v(as/Si*l(Co)),Js=v(as/sn*l(Co));(gs-=ms*2)>c?(ms*=Xn?1:-1,ko+=ms,Oo-=ms):(gs=0,ko=Oo=(jn+bn)/2),(ns-=Js*2)>c?(Js*=Xn?1:-1,to+=Js,uo-=Js):(ns=0,to=uo=(jn+bn)/2)}var Qs=sn*a(to),Vl=sn*l(to),el=Si*a(Oo),cu=Si*l(Oo);if(No>c){var Au=sn*a(uo),Mu=sn*l(uo),mc=Si*a(ko),Gl=Si*l(ko),Xa;if(gac?co>c?(zn=x(mc,Gl,Qs,Vl,sn,co,Xn),xa=x(Au,Mu,el,cu,sn,co,Xn),Yt.moveTo(zn.cx+zn.x01,zn.cy+zn.y01),coc)||!(gs>c)?Yt.lineTo(el,cu):Go>c?(zn=x(el,cu,Au,Mu,Si,-Go,Xn),xa=x(Qs,Vl,mc,Gl,Si,-Go,Xn),Yt.lineTo(zn.cx+zn.x01,zn.cy+zn.y01),Go=sn;--jn)Yt.point(uo[jn],ko[jn]);Yt.lineEnd(),Yt.areaEnd()}Xn&&(uo[Si]=+Le(ga,Si,ri),ko[Si]=+lt(ga,Si,ri),Yt.point(ot?+ot(ga,Si,ri):uo[Si],kt?+kt(ga,Si,ri):ko[Si]))}if(to)return Yt=null,to+""||null}function Zr(){return C().defined(Qt).curve(Ar).context(zt)}return wr.x=function(ri){return arguments.length?(Le=typeof ri=="function"?ri:r(+ri),ot=null,wr):Le},wr.x0=function(ri){return arguments.length?(Le=typeof ri=="function"?ri:r(+ri),wr):Le},wr.x1=function(ri){return arguments.length?(ot=ri==null?null:typeof ri=="function"?ri:r(+ri),wr):ot},wr.y=function(ri){return arguments.length?(lt=typeof ri=="function"?ri:r(+ri),kt=null,wr):lt},wr.y0=function(ri){return arguments.length?(lt=typeof ri=="function"?ri:r(+ri),wr):lt},wr.y1=function(ri){return arguments.length?(kt=ri==null?null:typeof ri=="function"?ri:r(+ri),wr):kt},wr.lineX0=wr.lineY0=function(){return Zr().x(Le).y(lt)},wr.lineY1=function(){return Zr().x(Le).y(kt)},wr.lineX1=function(){return Zr().x(ot).y(lt)},wr.defined=function(ri){return arguments.length?(Qt=typeof ri=="function"?ri:r(!!ri),wr):Qt},wr.curve=function(ri){return arguments.length?(Ar=ri,zt!=null&&(Yt=Ar(zt)),wr):Ar},wr.context=function(ri){return arguments.length?(ri==null?zt=Yt=null:Yt=Ar(zt=ri),wr):zt},wr}function D(Le,ot){return otLe?1:ot>=Le?0:NaN}function L(Le){return Le}function P(){var Le=L,ot=D,lt=null,kt=r(0),Qt=r(p),zt=r(0);function Ar(Yt){var wr,Zr=Yt.length,ri,Si,sn=0,jn=new Array(Zr),bn=new Array(Zr),ga=+kt.apply(this,arguments),Xn=Math.min(p,Math.max(-p,Qt.apply(this,arguments)-ga)),to,uo=Math.min(Math.abs(Xn)/Zr,zt.apply(this,arguments)),ko=uo*(Xn<0?-1:1),Oo;for(wr=0;wr0&&(sn+=Oo);for(ot!=null?jn.sort(function(gs,ns){return ot(bn[gs],bn[ns])}):lt!=null&&jn.sort(function(gs,ns){return lt(Yt[gs],Yt[ns])}),wr=0,Si=sn?(Xn-Zr*ko)/sn:0;wr0?Oo*Si:0)+ko,bn[ri]={data:Yt[ri],index:wr,value:Oo,startAngle:ga,endAngle:to,padAngle:uo};return bn}return Ar.value=function(Yt){return arguments.length?(Le=typeof Yt=="function"?Yt:r(+Yt),Ar):Le},Ar.sortValues=function(Yt){return arguments.length?(ot=Yt,lt=null,Ar):ot},Ar.sort=function(Yt){return arguments.length?(lt=Yt,ot=null,Ar):lt},Ar.startAngle=function(Yt){return arguments.length?(kt=typeof Yt=="function"?Yt:r(+Yt),Ar):kt},Ar.endAngle=function(Yt){return arguments.length?(Qt=typeof Yt=="function"?Yt:r(+Yt),Ar):Qt},Ar.padAngle=function(Yt){return arguments.length?(zt=typeof Yt=="function"?Yt:r(+Yt),Ar):zt},Ar}var R=I(y);function F(Le){this._curve=Le}F.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(Le,ot){this._curve.point(ot*Math.sin(Le),ot*-Math.cos(Le))}};function I(Le){function ot(lt){return new F(Le(lt))}return ot._curve=Le,ot}function B(Le){var ot=Le.curve;return Le.angle=Le.x,delete Le.x,Le.radius=Le.y,delete Le.y,Le.curve=function(lt){return arguments.length?ot(I(lt)):ot()._curve},Le}function O(){return B(C().curve(R))}function $(){var Le=k().curve(R),ot=Le.curve,lt=Le.lineX0,kt=Le.lineX1,Qt=Le.lineY0,zt=Le.lineY1;return Le.angle=Le.x,delete Le.x,Le.startAngle=Le.x0,delete Le.x0,Le.endAngle=Le.x1,delete Le.x1,Le.radius=Le.y,delete Le.y,Le.innerRadius=Le.y0,delete Le.y0,Le.outerRadius=Le.y1,delete Le.y1,Le.lineStartAngle=function(){return B(lt())},delete Le.lineX0,Le.lineEndAngle=function(){return B(kt())},delete Le.lineX1,Le.lineInnerRadius=function(){return B(Qt())},delete Le.lineY0,Le.lineOuterRadius=function(){return B(zt())},delete Le.lineY1,Le.curve=function(Ar){return arguments.length?ot(I(Ar)):ot()._curve},Le}function Y(Le,ot){return[(ot=+ot)*Math.cos(Le-=Math.PI/2),ot*Math.sin(Le)]}var K=Array.prototype.slice;function j(Le){return Le.source}function q(Le){return Le.target}function Q(Le){var ot=j,lt=q,kt=E,Qt=M,zt=null;function Ar(){var Yt,wr=K.call(arguments),Zr=ot.apply(this,wr),ri=lt.apply(this,wr);if(zt||(zt=Yt=t.path()),Le(zt,+kt.apply(this,(wr[0]=Zr,wr)),+Qt.apply(this,wr),+kt.apply(this,(wr[0]=ri,wr)),+Qt.apply(this,wr)),Yt)return zt=null,Yt+""||null}return Ar.source=function(Yt){return arguments.length?(ot=Yt,Ar):ot},Ar.target=function(Yt){return arguments.length?(lt=Yt,Ar):lt},Ar.x=function(Yt){return arguments.length?(kt=typeof Yt=="function"?Yt:r(+Yt),Ar):kt},Ar.y=function(Yt){return arguments.length?(Qt=typeof Yt=="function"?Yt:r(+Yt),Ar):Qt},Ar.context=function(Yt){return arguments.length?(zt=Yt==null?null:Yt,Ar):zt},Ar}function U(Le,ot,lt,kt,Qt){Le.moveTo(ot,lt),Le.bezierCurveTo(ot=(ot+kt)/2,lt,ot,Qt,kt,Qt)}function V(Le,ot,lt,kt,Qt){Le.moveTo(ot,lt),Le.bezierCurveTo(ot,lt=(lt+Qt)/2,kt,lt,kt,Qt)}function X(Le,ot,lt,kt,Qt){var zt=Y(ot,lt),Ar=Y(ot,lt=(lt+Qt)/2),Yt=Y(kt,lt),wr=Y(kt,Qt);Le.moveTo(zt[0],zt[1]),Le.bezierCurveTo(Ar[0],Ar[1],Yt[0],Yt[1],wr[0],wr[1])}function G(){return Q(U)}function H(){return Q(V)}function J(){var Le=Q(X);return Le.angle=Le.x,delete Le.x,Le.radius=Le.y,delete Le.y,Le}var te={draw:function(Le,ot){var lt=Math.sqrt(ot/f);Le.moveTo(lt,0),Le.arc(0,0,lt,0,p)}},ue={draw:function(Le,ot){var lt=Math.sqrt(ot/5)/2;Le.moveTo(-3*lt,-lt),Le.lineTo(-lt,-lt),Le.lineTo(-lt,-3*lt),Le.lineTo(lt,-3*lt),Le.lineTo(lt,-lt),Le.lineTo(3*lt,-lt),Le.lineTo(3*lt,lt),Le.lineTo(lt,lt),Le.lineTo(lt,3*lt),Le.lineTo(-lt,3*lt),Le.lineTo(-lt,lt),Le.lineTo(-3*lt,lt),Le.closePath()}},ge=Math.sqrt(1/3),ke=ge*2,_e={draw:function(Le,ot){var lt=Math.sqrt(ot/ke),kt=lt*ge;Le.moveTo(0,-lt),Le.lineTo(kt,0),Le.lineTo(0,lt),Le.lineTo(-kt,0),Le.closePath()}},he=.8908130915292852,oe=Math.sin(f/10)/Math.sin(7*f/10),Me=Math.sin(p/10)*oe,ye=-Math.cos(p/10)*oe,ce={draw:function(Le,ot){var lt=Math.sqrt(ot*he),kt=Me*lt,Qt=ye*lt;Le.moveTo(0,-lt),Le.lineTo(kt,Qt);for(var zt=1;zt<5;++zt){var Ar=p*zt/5,Yt=Math.cos(Ar),wr=Math.sin(Ar);Le.lineTo(wr*lt,-Yt*lt),Le.lineTo(Yt*kt-wr*Qt,wr*kt+Yt*Qt)}Le.closePath()}},ee={draw:function(Le,ot){var lt=Math.sqrt(ot),kt=-lt/2;Le.rect(kt,kt,lt,lt)}},ae=Math.sqrt(3),xe={draw:function(Le,ot){var lt=-Math.sqrt(ot/(ae*3));Le.moveTo(0,lt*2),Le.lineTo(-ae*lt,-lt),Le.lineTo(ae*lt,-lt),Le.closePath()}},re=-.5,pe=Math.sqrt(3)/2,we=1/Math.sqrt(12),Fe=(we/2+1)*3,Ee={draw:function(Le,ot){var lt=Math.sqrt(ot/Fe),kt=lt/2,Qt=lt*we,zt=kt,Ar=lt*we+lt,Yt=-zt,wr=Ar;Le.moveTo(kt,Qt),Le.lineTo(zt,Ar),Le.lineTo(Yt,wr),Le.lineTo(re*kt-pe*Qt,pe*kt+re*Qt),Le.lineTo(re*zt-pe*Ar,pe*zt+re*Ar),Le.lineTo(re*Yt-pe*wr,pe*Yt+re*wr),Le.lineTo(re*kt+pe*Qt,re*Qt-pe*kt),Le.lineTo(re*zt+pe*Ar,re*Ar-pe*zt),Le.lineTo(re*Yt+pe*wr,re*wr-pe*Yt),Le.closePath()}},Ce=[te,ue,_e,ee,ce,xe,Ee];function be(){var Le=r(te),ot=r(64),lt=null;function kt(){var Qt;if(lt||(lt=Qt=t.path()),Le.apply(this,arguments).draw(lt,+ot.apply(this,arguments)),Qt)return lt=null,Qt+""||null}return kt.type=function(Qt){return arguments.length?(Le=typeof Qt=="function"?Qt:r(Qt),kt):Le},kt.size=function(Qt){return arguments.length?(ot=typeof Qt=="function"?Qt:r(+Qt),kt):ot},kt.context=function(Qt){return arguments.length?(lt=Qt==null?null:Qt,kt):lt},kt}function Ie(){}function Oe(Le,ot,lt){Le._context.bezierCurveTo((2*Le._x0+Le._x1)/3,(2*Le._y0+Le._y1)/3,(Le._x0+2*Le._x1)/3,(Le._y0+2*Le._y1)/3,(Le._x0+4*Le._x1+ot)/6,(Le._y0+4*Le._y1+lt)/6)}function Qe(Le){this._context=Le}Qe.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Oe(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(Le,ot){switch(Le=+Le,ot=+ot,this._point){case 0:this._point=1,this._line?this._context.lineTo(Le,ot):this._context.moveTo(Le,ot);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Oe(this,Le,ot);break}this._x0=this._x1,this._x1=Le,this._y0=this._y1,this._y1=ot}};function et(Le){return new Qe(Le)}function bt(Le){this._context=Le}bt.prototype={areaStart:Ie,areaEnd:Ie,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(Le,ot){switch(Le=+Le,ot=+ot,this._point){case 0:this._point=1,this._x2=Le,this._y2=ot;break;case 1:this._point=2,this._x3=Le,this._y3=ot;break;case 2:this._point=3,this._x4=Le,this._y4=ot,this._context.moveTo((this._x0+4*this._x1+Le)/6,(this._y0+4*this._y1+ot)/6);break;default:Oe(this,Le,ot);break}this._x0=this._x1,this._x1=Le,this._y0=this._y1,this._y1=ot}};function ut(Le){return new bt(Le)}function vt(Le){this._context=Le}vt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(Le,ot){switch(Le=+Le,ot=+ot,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var lt=(this._x0+4*this._x1+Le)/6,kt=(this._y0+4*this._y1+ot)/6;this._line?this._context.lineTo(lt,kt):this._context.moveTo(lt,kt);break;case 3:this._point=4;default:Oe(this,Le,ot);break}this._x0=this._x1,this._x1=Le,this._y0=this._y1,this._y1=ot}};function Xe(Le){return new vt(Le)}function mt(Le,ot){this._basis=new Qe(Le),this._beta=ot}mt.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var Le=this._x,ot=this._y,lt=Le.length-1;if(lt>0)for(var kt=Le[0],Qt=ot[0],zt=Le[lt]-kt,Ar=ot[lt]-Qt,Yt=-1,wr;++Yt<=lt;)wr=Yt/lt,this._basis.point(this._beta*Le[Yt]+(1-this._beta)*(kt+wr*zt),this._beta*ot[Yt]+(1-this._beta)*(Qt+wr*Ar));this._x=this._y=null,this._basis.lineEnd()},point:function(Le,ot){this._x.push(+Le),this._y.push(+ot)}};var _t=(function Le(ot){function lt(kt){return ot===1?new Qe(kt):new mt(kt,ot)}return lt.beta=function(kt){return Le(+kt)},lt})(.85);function Ne(Le,ot,lt){Le._context.bezierCurveTo(Le._x1+Le._k*(Le._x2-Le._x0),Le._y1+Le._k*(Le._y2-Le._y0),Le._x2+Le._k*(Le._x1-ot),Le._y2+Le._k*(Le._y1-lt),Le._x2,Le._y2)}function Ue(Le,ot){this._context=Le,this._k=(1-ot)/6}Ue.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:Ne(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(Le,ot){switch(Le=+Le,ot=+ot,this._point){case 0:this._point=1,this._line?this._context.lineTo(Le,ot):this._context.moveTo(Le,ot);break;case 1:this._point=2,this._x1=Le,this._y1=ot;break;case 2:this._point=3;default:Ne(this,Le,ot);break}this._x0=this._x1,this._x1=this._x2,this._x2=Le,this._y0=this._y1,this._y1=this._y2,this._y2=ot}};var Ge=(function Le(ot){function lt(kt){return new Ue(kt,ot)}return lt.tension=function(kt){return Le(+kt)},lt})(0);function je(Le,ot){this._context=Le,this._k=(1-ot)/6}je.prototype={areaStart:Ie,areaEnd:Ie,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(Le,ot){switch(Le=+Le,ot=+ot,this._point){case 0:this._point=1,this._x3=Le,this._y3=ot;break;case 1:this._point=2,this._context.moveTo(this._x4=Le,this._y4=ot);break;case 2:this._point=3,this._x5=Le,this._y5=ot;break;default:Ne(this,Le,ot);break}this._x0=this._x1,this._x1=this._x2,this._x2=Le,this._y0=this._y1,this._y1=this._y2,this._y2=ot}};var Re=(function Le(ot){function lt(kt){return new je(kt,ot)}return lt.tension=function(kt){return Le(+kt)},lt})(0);function Ve(Le,ot){this._context=Le,this._k=(1-ot)/6}Ve.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(Le,ot){switch(Le=+Le,ot=+ot,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Ne(this,Le,ot);break}this._x0=this._x1,this._x1=this._x2,this._x2=Le,this._y0=this._y1,this._y1=this._y2,this._y2=ot}};var ct=(function Le(ot){function lt(kt){return new Ve(kt,ot)}return lt.tension=function(kt){return Le(+kt)},lt})(0);function Tt(Le,ot,lt){var kt=Le._x1,Qt=Le._y1,zt=Le._x2,Ar=Le._y2;if(Le._l01_a>c){var Yt=2*Le._l01_2a+3*Le._l01_a*Le._l12_a+Le._l12_2a,wr=3*Le._l01_a*(Le._l01_a+Le._l12_a);kt=(kt*Yt-Le._x0*Le._l12_2a+Le._x2*Le._l01_2a)/wr,Qt=(Qt*Yt-Le._y0*Le._l12_2a+Le._y2*Le._l01_2a)/wr}if(Le._l23_a>c){var Zr=2*Le._l23_2a+3*Le._l23_a*Le._l12_a+Le._l12_2a,ri=3*Le._l23_a*(Le._l23_a+Le._l12_a);zt=(zt*Zr+Le._x1*Le._l23_2a-ot*Le._l12_2a)/ri,Ar=(Ar*Zr+Le._y1*Le._l23_2a-lt*Le._l12_2a)/ri}Le._context.bezierCurveTo(kt,Qt,zt,Ar,Le._x2,Le._y2)}function Zt(Le,ot){this._context=Le,this._alpha=ot}Zt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(Le,ot){if(Le=+Le,ot=+ot,this._point){var lt=this._x2-Le,kt=this._y2-ot;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(lt*lt+kt*kt,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(Le,ot):this._context.moveTo(Le,ot);break;case 1:this._point=2;break;case 2:this._point=3;default:Tt(this,Le,ot);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=Le,this._y0=this._y1,this._y1=this._y2,this._y2=ot}};var Gt=(function Le(ot){function lt(kt){return ot?new Zt(kt,ot):new Ue(kt,0)}return lt.alpha=function(kt){return Le(+kt)},lt})(.5);function ur(Le,ot){this._context=Le,this._alpha=ot}ur.prototype={areaStart:Ie,areaEnd:Ie,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(Le,ot){if(Le=+Le,ot=+ot,this._point){var lt=this._x2-Le,kt=this._y2-ot;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(lt*lt+kt*kt,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=Le,this._y3=ot;break;case 1:this._point=2,this._context.moveTo(this._x4=Le,this._y4=ot);break;case 2:this._point=3,this._x5=Le,this._y5=ot;break;default:Tt(this,Le,ot);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=Le,this._y0=this._y1,this._y1=this._y2,this._y2=ot}};var cr=(function Le(ot){function lt(kt){return ot?new ur(kt,ot):new je(kt,0)}return lt.alpha=function(kt){return Le(+kt)},lt})(.5);function qt(Le,ot){this._context=Le,this._alpha=ot}qt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(Le,ot){if(Le=+Le,ot=+ot,this._point){var lt=this._x2-Le,kt=this._y2-ot;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(lt*lt+kt*kt,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Tt(this,Le,ot);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=Le,this._y0=this._y1,this._y1=this._y2,this._y2=ot}};var Kt=(function Le(ot){function lt(kt){return ot?new qt(kt,ot):new Ve(kt,0)}return lt.alpha=function(kt){return Le(+kt)},lt})(.5);function Cr(Le){this._context=Le}Cr.prototype={areaStart:Ie,areaEnd:Ie,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(Le,ot){Le=+Le,ot=+ot,this._point?this._context.lineTo(Le,ot):(this._point=1,this._context.moveTo(Le,ot))}};function $e(Le){return new Cr(Le)}function tt(Le){return Le<0?-1:1}function st(Le,ot,lt){var kt=Le._x1-Le._x0,Qt=ot-Le._x1,zt=(Le._y1-Le._y0)/(kt||Qt<0&&-0),Ar=(lt-Le._y1)/(Qt||kt<0&&-0),Yt=(zt*Qt+Ar*kt)/(kt+Qt);return(tt(zt)+tt(Ar))*Math.min(Math.abs(zt),Math.abs(Ar),.5*Math.abs(Yt))||0}function xt(Le,ot){var lt=Le._x1-Le._x0;return lt?(3*(Le._y1-Le._y0)/lt-ot)/2:ot}function Je(Le,ot,lt){var kt=Le._x0,Qt=Le._y0,zt=Le._x1,Ar=Le._y1,Yt=(zt-kt)/3;Le._context.bezierCurveTo(kt+Yt,Qt+Yt*ot,zt-Yt,Ar-Yt*lt,zt,Ar)}function Ct(Le){this._context=Le}Ct.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Je(this,this._t0,xt(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(Le,ot){var lt=NaN;if(Le=+Le,ot=+ot,!(Le===this._x1&&ot===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(Le,ot):this._context.moveTo(Le,ot);break;case 1:this._point=2;break;case 2:this._point=3,Je(this,xt(this,lt=st(this,Le,ot)),lt);break;default:Je(this,this._t0,lt=st(this,Le,ot));break}this._x0=this._x1,this._x1=Le,this._y0=this._y1,this._y1=ot,this._t0=lt}}};function nr(Le){this._context=new dr(Le)}(nr.prototype=Object.create(Ct.prototype)).point=function(Le,ot){Ct.prototype.point.call(this,ot,Le)};function dr(Le){this._context=Le}dr.prototype={moveTo:function(Le,ot){this._context.moveTo(ot,Le)},closePath:function(){this._context.closePath()},lineTo:function(Le,ot){this._context.lineTo(ot,Le)},bezierCurveTo:function(Le,ot,lt,kt,Qt,zt){this._context.bezierCurveTo(ot,Le,kt,lt,zt,Qt)}};function Vr(Le){return new Ct(Le)}function ui(Le){return new nr(Le)}function ti(Le){this._context=Le}ti.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var Le=this._x,ot=this._y,lt=Le.length;if(lt)if(this._line?this._context.lineTo(Le[0],ot[0]):this._context.moveTo(Le[0],ot[0]),lt===2)this._context.lineTo(Le[1],ot[1]);else for(var kt=Pr(Le),Qt=Pr(ot),zt=0,Ar=1;Ar=0;--ot)Qt[ot]=(Ar[ot]-Qt[ot+1])/zt[ot];for(zt[lt-1]=(Le[lt]+Qt[lt-1])/2,ot=0;ot=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(Le,ot){switch(Le=+Le,ot=+ot,this._point){case 0:this._point=1,this._line?this._context.lineTo(Le,ot):this._context.moveTo(Le,ot);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,ot),this._context.lineTo(Le,ot);else{var lt=this._x*(1-this._t)+Le*this._t;this._context.lineTo(lt,this._y),this._context.lineTo(lt,ot)}break}}this._x=Le,this._y=ot}};function vn(Le){return new Sn(Le,.5)}function aa(Le){return new Sn(Le,0)}function va(Le){return new Sn(Le,1)}function gn(Le,ot){if((Ar=Le.length)>1)for(var lt=1,kt,Qt,zt=Le[ot[0]],Ar,Yt=zt.length;lt=0;)lt[ot]=ot;return lt}function oa(Le,ot){return Le[ot]}function vs(){var Le=r([]),ot=Hn,lt=gn,kt=oa;function Qt(zt){var Ar=Le.apply(this,arguments),Yt,wr=zt.length,Zr=Ar.length,ri=new Array(Zr),Si;for(Yt=0;Yt0){for(var lt,kt,Qt=0,zt=Le[0].length,Ar;Qt0)for(var lt,kt=0,Qt,zt,Ar,Yt,wr,Zr=Le[ot[0]].length;kt0?(Qt[0]=Ar,Qt[1]=Ar+=zt):zt<0?(Qt[1]=Yt,Qt[0]=Yt+=zt):(Qt[0]=0,Qt[1]=zt)}function go(Le,ot){if((Qt=Le.length)>0){for(var lt=0,kt=Le[ot[0]],Qt,zt=kt.length;lt0)||!((zt=(Qt=Le[ot[0]]).length)>0))){for(var lt=0,kt=1,Qt,zt,Ar;ktzt&&(zt=Qt,lt=ot);return lt}function Aa(Le){var ot=Le.map(Ks);return Hn(Le).sort(function(lt,kt){return ot[lt]-ot[kt]})}function Ks(Le){for(var ot=0,lt=-1,kt=Le.length,Qt;++lt{(function(e,t){typeof AO=="object"&&typeof wct!="undefined"?t(AO,yct(),Yoe()):(e=e||self,t(e.d3=e.d3||{},e.d3,e.d3))})(AO,function(e,t,r){"use strict";function i(x){return x.target.depth}function n(x){return x.depth}function a(x,T){return T-1-x.height}function o(x,T){return x.sourceLinks.length?x.depth:T-1}function s(x){return x.targetLinks.length?x.depth:x.sourceLinks.length?t.min(x.sourceLinks,i)-1:0}function l(x){return function(){return x}}function u(x,T){return f(x.source,T.source)||x.index-T.index}function c(x,T){return f(x.target,T.target)||x.index-T.index}function f(x,T){return x.y0-T.y0}function h(x){return x.value}function p(x){return x.index}function d(x){return x.nodes}function v(x){return x.links}function m(x,T){let A=x.get(T);if(!A)throw new Error("missing: "+T);return A}function g({nodes:x}){for(let T of x){let A=T.y0,y=A;for(let E of T.sourceLinks)E.y0=A+E.width/2,A+=E.width;for(let E of T.targetLinks)E.y1=y+E.width/2,y+=E.width}}function w(){let x=0,T=0,A=1,y=1,E=24,M=8,C,k=p,D=o,L,P,R=d,F=v,I=6,B=2/3;function O(){let _e={nodes:R.apply(null,arguments),links:F.apply(null,arguments)};return $(_e),Y(_e),K(_e),j(_e),U(_e),g(_e),_e}O.update=function(_e){return g(_e),_e},O.nodeId=function(_e){return arguments.length?(k=typeof _e=="function"?_e:l(_e),O):k},O.nodeAlign=function(_e){return arguments.length?(D=typeof _e=="function"?_e:l(_e),O):D},O.nodeSort=function(_e){return arguments.length?(L=_e,O):L},O.nodeWidth=function(_e){return arguments.length?(E=+_e,O):E},O.nodePadding=function(_e){return arguments.length?(M=C=+_e,O):M},O.nodes=function(_e){return arguments.length?(R=typeof _e=="function"?_e:l(_e),O):R},O.links=function(_e){return arguments.length?(F=typeof _e=="function"?_e:l(_e),O):F},O.linkSort=function(_e){return arguments.length?(P=_e,O):P},O.size=function(_e){return arguments.length?(x=T=0,A=+_e[0],y=+_e[1],O):[A-x,y-T]},O.extent=function(_e){return arguments.length?(x=+_e[0][0],A=+_e[1][0],T=+_e[0][1],y=+_e[1][1],O):[[x,T],[A,y]]},O.iterations=function(_e){return arguments.length?(I=+_e,O):I};function $({nodes:_e,links:he}){for(let[Me,ye]of _e.entries())ye.index=Me,ye.sourceLinks=[],ye.targetLinks=[];let oe=new Map(_e.map((Me,ye)=>[k(Me,ye,_e),Me]));for(let[Me,ye]of he.entries()){ye.index=Me;let{source:ce,target:ee}=ye;typeof ce!="object"&&(ce=ye.source=m(oe,ce)),typeof ee!="object"&&(ee=ye.target=m(oe,ee)),ce.sourceLinks.push(ye),ee.targetLinks.push(ye)}if(P!=null)for(let{sourceLinks:Me,targetLinks:ye}of _e)Me.sort(P),ye.sort(P)}function Y({nodes:_e}){for(let he of _e)he.value=he.fixedValue===void 0?Math.max(t.sum(he.sourceLinks,h),t.sum(he.targetLinks,h)):he.fixedValue}function K({nodes:_e}){let he=_e.length,oe=new Set(_e),Me=new Set,ye=0;for(;oe.size;){for(let ce of oe){ce.depth=ye;for(let{target:ee}of ce.sourceLinks)Me.add(ee)}if(++ye>he)throw new Error("circular link");oe=Me,Me=new Set}}function j({nodes:_e}){let he=_e.length,oe=new Set(_e),Me=new Set,ye=0;for(;oe.size;){for(let ce of oe){ce.height=ye;for(let{source:ee}of ce.targetLinks)Me.add(ee)}if(++ye>he)throw new Error("circular link");oe=Me,Me=new Set}}function q({nodes:_e}){let he=t.max(_e,ye=>ye.depth)+1,oe=(A-x-E)/(he-1),Me=new Array(he);for(let ye of _e){let ce=Math.max(0,Math.min(he-1,Math.floor(D.call(null,ye,he))));ye.layer=ce,ye.x0=x+ce*oe,ye.x1=ye.x0+E,Me[ce]?Me[ce].push(ye):Me[ce]=[ye]}if(L)for(let ye of Me)ye.sort(L);return Me}function Q(_e){let he=t.min(_e,oe=>(y-T-(oe.length-1)*C)/t.sum(oe,h));for(let oe of _e){let Me=T;for(let ye of oe){ye.y0=Me,ye.y1=Me+ye.value*he,Me=ye.y1+C;for(let ce of ye.sourceLinks)ce.width=ce.value*he}Me=(y-Me+C)/(oe.length+1);for(let ye=0;yeoe.length)-1)),Q(he);for(let oe=0;oe0))continue;let re=(ae/xe-ee.y0)*he;ee.y0+=re,ee.y1+=re,te(ee)}L===void 0&&ce.sort(f),G(ce,oe)}}function X(_e,he,oe){for(let Me=_e.length,ye=Me-2;ye>=0;--ye){let ce=_e[ye];for(let ee of ce){let ae=0,xe=0;for(let{target:pe,value:we}of ee.sourceLinks){let Fe=we*(pe.layer-ee.layer);ae+=ke(ee,pe)*Fe,xe+=Fe}if(!(xe>0))continue;let re=(ae/xe-ee.y0)*he;ee.y0+=re,ee.y1+=re,te(ee)}L===void 0&&ce.sort(f),G(ce,oe)}}function G(_e,he){let oe=_e.length>>1,Me=_e[oe];J(_e,Me.y0-C,oe-1,he),H(_e,Me.y1+C,oe+1,he),J(_e,y,_e.length-1,he),H(_e,T,0,he)}function H(_e,he,oe,Me){for(;oe<_e.length;++oe){let ye=_e[oe],ce=(he-ye.y0)*Me;ce>1e-6&&(ye.y0+=ce,ye.y1+=ce),he=ye.y1+C}}function J(_e,he,oe,Me){for(;oe>=0;--oe){let ye=_e[oe],ce=(ye.y1-he)*Me;ce>1e-6&&(ye.y0-=ce,ye.y1-=ce),he=ye.y0-C}}function te({sourceLinks:_e,targetLinks:he}){if(P===void 0){for(let{source:{sourceLinks:oe}}of he)oe.sort(c);for(let{target:{targetLinks:oe}}of _e)oe.sort(u)}}function ue(_e){if(P===void 0)for(let{sourceLinks:he,targetLinks:oe}of _e)he.sort(c),oe.sort(u)}function ge(_e,he){let oe=_e.y0-(_e.sourceLinks.length-1)*C/2;for(let{target:Me,width:ye}of _e.sourceLinks){if(Me===he)break;oe+=ye+C}for(let{source:Me,width:ye}of he.targetLinks){if(Me===_e)break;oe-=ye}return oe}function ke(_e,he){let oe=he.y0-(he.targetLinks.length-1)*C/2;for(let{source:Me,width:ye}of he.targetLinks){if(Me===_e)break;oe+=ye+C}for(let{target:Me,width:ye}of _e.sourceLinks){if(Me===he)break;oe-=ye}return oe}return O}function _(x){return[x.source.x1,x.y0]}function b(x){return[x.target.x0,x.y1]}function S(){return r.linkHorizontal().source(_).target(b)}e.sankey=w,e.sankeyCenter=s,e.sankeyJustify=o,e.sankeyLeft=n,e.sankeyLinkHorizontal=S,e.sankeyRight=a,Object.defineProperty(e,"__esModule",{value:!0})})});var Mct=W((MO,Act)=>{(function(e,t){t(typeof MO=="object"&&typeof Act!="undefined"?MO:e.d3=e.d3||{})})(MO,(function(e){"use strict";function t(U,V){return UV?1:U>=V?0:NaN}function r(U){return U.length===1&&(U=i(U)),{left:function(V,X,G,H){for(G==null&&(G=0),H==null&&(H=V.length);G>>1;U(V[J],X)<0?G=J+1:H=J}return G},right:function(V,X,G,H){for(G==null&&(G=0),H==null&&(H=V.length);G>>1;U(V[J],X)>0?H=J:G=J+1}return G}}}function i(U){return function(V,X){return t(U(V),X)}}var n=r(t),a=n.right,o=n.left;function s(U,V){V==null&&(V=l);for(var X=0,G=U.length-1,H=U[0],J=new Array(G<0?0:G);XU?1:V>=U?0:NaN}function f(U){return U===null?NaN:+U}function h(U,V){var X=U.length,G=0,H=-1,J=0,te,ue,ge=0;if(V==null)for(;++H1)return ge/(G-1)}function p(U,V){var X=h(U,V);return X&&Math.sqrt(X)}function d(U,V){var X=U.length,G=-1,H,J,te;if(V==null){for(;++G=H)for(J=te=H;++GH&&(J=H),te=H)for(J=te=H;++GH&&(J=H),te0)return[U];if((G=V0)for(U=Math.ceil(U/ue),V=Math.floor(V/ue),te=new Array(J=Math.ceil(V-U+1));++H=0?(J>=S?10:J>=x?5:J>=T?2:1)*Math.pow(10,H):-Math.pow(10,-H)/(J>=S?10:J>=x?5:J>=T?2:1)}function E(U,V,X){var G=Math.abs(V-U)/Math.max(0,X),H=Math.pow(10,Math.floor(Math.log(G)/Math.LN10)),J=G/H;return J>=S?H*=10:J>=x?H*=5:J>=T&&(H*=2),Vhe;)oe.pop(),--Me;var ye=new Array(Me+1),ce;for(J=0;J<=Me;++J)ce=ye[J]=[],ce.x0=J>0?oe[J-1]:_e,ce.x1=J=1)return+X(U[G-1],G-1,U);var G,H=(G-1)*V,J=Math.floor(H),te=+X(U[J],J,U),ue=+X(U[J+1],J+1,U);return te+(ue-te)*(H-J)}}function D(U,V,X){return U=g.call(U,f).sort(t),Math.ceil((X-V)/(2*(k(U,.75)-k(U,.25))*Math.pow(U.length,-1/3)))}function L(U,V,X){return Math.ceil((X-V)/(3.5*p(U)*Math.pow(U.length,-1/3)))}function P(U,V){var X=U.length,G=-1,H,J;if(V==null){for(;++G=H)for(J=H;++GJ&&(J=H)}else for(;++G=H)for(J=H;++GJ&&(J=H);return J}function R(U,V){var X=U.length,G=X,H=-1,J,te=0;if(V==null)for(;++H=0;)for(te=U[V],X=te.length;--X>=0;)J[--H]=te[X];return J}function B(U,V){var X=U.length,G=-1,H,J;if(V==null){for(;++G=H)for(J=H;++GH&&(J=H)}else for(;++G=H)for(J=H;++GH&&(J=H);return J}function O(U,V){for(var X=V.length,G=new Array(X);X--;)G[X]=U[V[X]];return G}function $(U,V){if(X=U.length){var X,G=0,H=0,J,te=U[H];for(V==null&&(V=t);++G{var b8r=$oe();Sct.exports=function(t,r){var i=[],n=[],a=[],o={},s=[],l;function u(_){a[_]=!1,o.hasOwnProperty(_)&&Object.keys(o[_]).forEach(function(b){delete o[_][b],a[b]&&u(b)})}function c(_){var b=!1;n.push(_),a[_]=!0;var S,x;for(S=0;S=_})}function p(_){h(_);for(var b=t,S=b8r(b),x=S.components.filter(function(k){return k.length>1}),T=1/0,A,y=0;y{(function(e,t){typeof SO=="object"&&typeof kct!="undefined"?t(SO,Mct(),Woe(),Yoe(),Ect()):t(e.d3=e.d3||{},e.d3,e.d3,e.d3,null)})(SO,(function(e,t,r,i,n){"use strict";n=n&&n.hasOwnProperty("default")?n.default:n;function a(he){return he.target.depth}function o(he){return he.depth}function s(he,oe){return oe-1-he.height}function l(he,oe){return he.sourceLinks.length?he.depth:oe-1}function u(he){return he.targetLinks.length?he.depth:he.sourceLinks.length?t.min(he.sourceLinks,a)-1:0}function c(he){return function(){return he}}var f=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(he){return typeof he}:function(he){return he&&typeof Symbol=="function"&&he.constructor===Symbol&&he!==Symbol.prototype?"symbol":typeof he};function h(he,oe){return d(he.source,oe.source)||he.index-oe.index}function p(he,oe){return d(he.target,oe.target)||he.index-oe.index}function d(he,oe){return he.partOfCycle===oe.partOfCycle?he.y0-oe.y0:he.circularLinkType==="top"||oe.circularLinkType==="bottom"?-1:1}function v(he){return he.value}function m(he){return(he.y0+he.y1)/2}function g(he){return m(he.source)}function w(he){return m(he.target)}function _(he){return he.index}function b(he){return he.nodes}function S(he){return he.links}function x(he,oe){var Me=he.get(oe);if(!Me)throw new Error("missing: "+oe);return Me}function T(he,oe){return oe(he)}var A=25,y=10,E=.3;function M(){var he=0,oe=0,Me=1,ye=1,ce=24,ee,ae=_,xe=l,re=b,pe=S,we=32,Fe=2,Ee,Ce=null;function be(){var Xe={nodes:re.apply(null,arguments),links:pe.apply(null,arguments)};Ie(Xe),C(Xe,ae,Ce),Oe(Xe),bt(Xe),k(Xe,ae),ut(Xe,we,ae),vt(Xe);for(var mt=4,_t=0;_t0?mt+A+y:mt,_t=_t>0?_t+A+y:_t,Ne=Ne>0?Ne+A+y:Ne,Ue=Ue>0?Ue+A+y:Ue,{top:mt,bottom:_t,left:Ue,right:Ne}}function et(Xe,mt){var _t=t.max(Xe.nodes,function(ct){return ct.column}),Ne=Me-he,Ue=ye-oe,Ge=Ne+mt.right+mt.left,je=Ue+mt.top+mt.bottom,Re=Ne/Ge,Ve=Ue/je;return he=he*Re+mt.left,Me=mt.right==0?Me:Me*Re,oe=oe*Ve+mt.top,ye=ye*Ve,Xe.nodes.forEach(function(ct){ct.x0=he+ct.column*((Me-he-ce)/_t),ct.x1=ct.x0+ce}),Ve}function bt(Xe){var mt,_t,Ne;for(mt=Xe.nodes,_t=[],Ne=0;mt.length;++Ne,mt=_t,_t=[])mt.forEach(function(Ue){Ue.depth=Ne,Ue.sourceLinks.forEach(function(Ge){_t.indexOf(Ge.target)<0&&!Ge.circular&&_t.push(Ge.target)})});for(mt=Xe.nodes,_t=[],Ne=0;mt.length;++Ne,mt=_t,_t=[])mt.forEach(function(Ue){Ue.height=Ne,Ue.targetLinks.forEach(function(Ge){_t.indexOf(Ge.source)<0&&!Ge.circular&&_t.push(Ge.source)})});Xe.nodes.forEach(function(Ue){Ue.column=Math.floor(xe.call(null,Ue,Ne))})}function ut(Xe,mt,_t){var Ne=r.nest().key(function(ct){return ct.column}).sortKeys(t.ascending).entries(Xe.nodes).map(function(ct){return ct.values});je(_t),Ve();for(var Ue=1,Ge=mt;Ge>0;--Ge)Re(Ue*=.99,_t),Ve();function je(ct){if(Ee){var Tt=1/0;Ne.forEach(function(cr){var qt=ye*Ee/(cr.length+1);Tt=qt0))if(cr==0&&ur==1)Kt=qt.y1-qt.y0,qt.y0=ye/2-Kt/2,qt.y1=ye/2+Kt/2;else if(cr==Zt-1&&ur==1)Kt=qt.y1-qt.y0,qt.y0=ye/2-Kt/2,qt.y1=ye/2+Kt/2;else{var Cr=0,$e=t.mean(qt.sourceLinks,w),tt=t.mean(qt.targetLinks,g);$e&&tt?Cr=($e+tt)/2:Cr=$e||tt;var st=(Cr-m(qt))*ct;qt.y0+=st,qt.y1+=st}})})}function Ve(){Ne.forEach(function(ct){var Tt,Zt,Gt=oe,ur=ct.length,cr;for(ct.sort(d),cr=0;cr0&&(Tt.y0+=Zt,Tt.y1+=Zt),Gt=Tt.y1+ee;if(Zt=Gt-ee-ye,Zt>0)for(Gt=Tt.y0-=Zt,Tt.y1-=Zt,cr=ur-2;cr>=0;--cr)Tt=ct[cr],Zt=Tt.y1+ee-Gt,Zt>0&&(Tt.y0-=Zt,Tt.y1-=Zt),Gt=Tt.y0})}}function vt(Xe){Xe.nodes.forEach(function(mt){mt.sourceLinks.sort(p),mt.targetLinks.sort(h)}),Xe.nodes.forEach(function(mt){var _t=mt.y0,Ne=_t,Ue=mt.y1,Ge=Ue;mt.sourceLinks.forEach(function(je){je.circular?(je.y0=Ue-je.width/2,Ue=Ue-je.width):(je.y0=_t+je.width/2,_t+=je.width)}),mt.targetLinks.forEach(function(je){je.circular?(je.y1=Ge-je.width/2,Ge=Ge-je.width):(je.y1=Ne+je.width/2,Ne+=je.width)})})}return be}function C(he,oe,Me){var ye=0;if(Me===null){for(var ce=[],ee=0;eeoe.source.column)}function P(he,oe){var Me=0;he.sourceLinks.forEach(function(ce){Me=ce.circular&&!ke(ce,oe)?Me+1:Me});var ye=0;return he.targetLinks.forEach(function(ce){ye=ce.circular&&!ke(ce,oe)?ye+1:ye}),Me+ye}function R(he){var oe=he.source.sourceLinks,Me=0;oe.forEach(function(ee){Me=ee.circular?Me+1:Me});var ye=he.target.targetLinks,ce=0;return ye.forEach(function(ee){ce=ee.circular?ce+1:ce}),!(Me>1||ce>1)}function F(he,oe,Me){return he.sort(O),he.forEach(function(ye,ce){var ee=0;if(ke(ye,Me)&&R(ye))ye.circularPathData.verticalBuffer=ee+ye.width/2;else{var ae=0;for(ae;aeee?xe:ee}ye.circularPathData.verticalBuffer=ee+ye.width/2}}),he}function I(he,oe,Me,ye){var ce=5,ee=t.min(he.links,function(re){return re.source.y0});he.links.forEach(function(re){re.circular&&(re.circularPathData={})});var ae=he.links.filter(function(re){return re.circularLinkType=="top"});F(ae,oe,ye);var xe=he.links.filter(function(re){return re.circularLinkType=="bottom"});F(xe,oe,ye),he.links.forEach(function(re){if(re.circular){if(re.circularPathData.arcRadius=re.width+y,re.circularPathData.leftNodeBuffer=ce,re.circularPathData.rightNodeBuffer=ce,re.circularPathData.sourceWidth=re.source.x1-re.source.x0,re.circularPathData.sourceX=re.source.x0+re.circularPathData.sourceWidth,re.circularPathData.targetX=re.target.x0,re.circularPathData.sourceY=re.y0,re.circularPathData.targetY=re.y1,ke(re,ye)&&R(re))re.circularPathData.leftSmallArcRadius=y+re.width/2,re.circularPathData.leftLargeArcRadius=y+re.width/2,re.circularPathData.rightSmallArcRadius=y+re.width/2,re.circularPathData.rightLargeArcRadius=y+re.width/2,re.circularLinkType=="bottom"?(re.circularPathData.verticalFullExtent=re.source.y1+A+re.circularPathData.verticalBuffer,re.circularPathData.verticalLeftInnerExtent=re.circularPathData.verticalFullExtent-re.circularPathData.leftLargeArcRadius,re.circularPathData.verticalRightInnerExtent=re.circularPathData.verticalFullExtent-re.circularPathData.rightLargeArcRadius):(re.circularPathData.verticalFullExtent=re.source.y0-A-re.circularPathData.verticalBuffer,re.circularPathData.verticalLeftInnerExtent=re.circularPathData.verticalFullExtent+re.circularPathData.leftLargeArcRadius,re.circularPathData.verticalRightInnerExtent=re.circularPathData.verticalFullExtent+re.circularPathData.rightLargeArcRadius);else{var pe=re.source.column,we=re.circularLinkType,Fe=he.links.filter(function(be){return be.source.column==pe&&be.circularLinkType==we});re.circularLinkType=="bottom"?Fe.sort(Y):Fe.sort($);var Ee=0;Fe.forEach(function(be,Ie){be.circularLinkID==re.circularLinkID&&(re.circularPathData.leftSmallArcRadius=y+re.width/2+Ee,re.circularPathData.leftLargeArcRadius=y+re.width/2+Ie*oe+Ee),Ee=Ee+be.width}),pe=re.target.column,Fe=he.links.filter(function(be){return be.target.column==pe&&be.circularLinkType==we}),re.circularLinkType=="bottom"?Fe.sort(j):Fe.sort(K),Ee=0,Fe.forEach(function(be,Ie){be.circularLinkID==re.circularLinkID&&(re.circularPathData.rightSmallArcRadius=y+re.width/2+Ee,re.circularPathData.rightLargeArcRadius=y+re.width/2+Ie*oe+Ee),Ee=Ee+be.width}),re.circularLinkType=="bottom"?(re.circularPathData.verticalFullExtent=Math.max(Me,re.source.y1,re.target.y1)+A+re.circularPathData.verticalBuffer,re.circularPathData.verticalLeftInnerExtent=re.circularPathData.verticalFullExtent-re.circularPathData.leftLargeArcRadius,re.circularPathData.verticalRightInnerExtent=re.circularPathData.verticalFullExtent-re.circularPathData.rightLargeArcRadius):(re.circularPathData.verticalFullExtent=ee-A-re.circularPathData.verticalBuffer,re.circularPathData.verticalLeftInnerExtent=re.circularPathData.verticalFullExtent+re.circularPathData.leftLargeArcRadius,re.circularPathData.verticalRightInnerExtent=re.circularPathData.verticalFullExtent+re.circularPathData.rightLargeArcRadius)}re.circularPathData.leftInnerExtent=re.circularPathData.sourceX+re.circularPathData.leftNodeBuffer,re.circularPathData.rightInnerExtent=re.circularPathData.targetX-re.circularPathData.rightNodeBuffer,re.circularPathData.leftFullExtent=re.circularPathData.sourceX+re.circularPathData.leftLargeArcRadius+re.circularPathData.leftNodeBuffer,re.circularPathData.rightFullExtent=re.circularPathData.targetX-re.circularPathData.rightLargeArcRadius-re.circularPathData.rightNodeBuffer}if(re.circular)re.path=B(re);else{var Ce=i.linkHorizontal().source(function(be){var Ie=be.source.x0+(be.source.x1-be.source.x0),Oe=be.y0;return[Ie,Oe]}).target(function(be){var Ie=be.target.x0,Oe=be.y1;return[Ie,Oe]});re.path=Ce(re)}})}function B(he){var oe="";return he.circularLinkType=="top"?oe="M"+he.circularPathData.sourceX+" "+he.circularPathData.sourceY+" L"+he.circularPathData.leftInnerExtent+" "+he.circularPathData.sourceY+" A"+he.circularPathData.leftLargeArcRadius+" "+he.circularPathData.leftSmallArcRadius+" 0 0 0 "+he.circularPathData.leftFullExtent+" "+(he.circularPathData.sourceY-he.circularPathData.leftSmallArcRadius)+" L"+he.circularPathData.leftFullExtent+" "+he.circularPathData.verticalLeftInnerExtent+" A"+he.circularPathData.leftLargeArcRadius+" "+he.circularPathData.leftLargeArcRadius+" 0 0 0 "+he.circularPathData.leftInnerExtent+" "+he.circularPathData.verticalFullExtent+" L"+he.circularPathData.rightInnerExtent+" "+he.circularPathData.verticalFullExtent+" A"+he.circularPathData.rightLargeArcRadius+" "+he.circularPathData.rightLargeArcRadius+" 0 0 0 "+he.circularPathData.rightFullExtent+" "+he.circularPathData.verticalRightInnerExtent+" L"+he.circularPathData.rightFullExtent+" "+(he.circularPathData.targetY-he.circularPathData.rightSmallArcRadius)+" A"+he.circularPathData.rightLargeArcRadius+" "+he.circularPathData.rightSmallArcRadius+" 0 0 0 "+he.circularPathData.rightInnerExtent+" "+he.circularPathData.targetY+" L"+he.circularPathData.targetX+" "+he.circularPathData.targetY:oe="M"+he.circularPathData.sourceX+" "+he.circularPathData.sourceY+" L"+he.circularPathData.leftInnerExtent+" "+he.circularPathData.sourceY+" A"+he.circularPathData.leftLargeArcRadius+" "+he.circularPathData.leftSmallArcRadius+" 0 0 1 "+he.circularPathData.leftFullExtent+" "+(he.circularPathData.sourceY+he.circularPathData.leftSmallArcRadius)+" L"+he.circularPathData.leftFullExtent+" "+he.circularPathData.verticalLeftInnerExtent+" A"+he.circularPathData.leftLargeArcRadius+" "+he.circularPathData.leftLargeArcRadius+" 0 0 1 "+he.circularPathData.leftInnerExtent+" "+he.circularPathData.verticalFullExtent+" L"+he.circularPathData.rightInnerExtent+" "+he.circularPathData.verticalFullExtent+" A"+he.circularPathData.rightLargeArcRadius+" "+he.circularPathData.rightLargeArcRadius+" 0 0 1 "+he.circularPathData.rightFullExtent+" "+he.circularPathData.verticalRightInnerExtent+" L"+he.circularPathData.rightFullExtent+" "+(he.circularPathData.targetY+he.circularPathData.rightSmallArcRadius)+" A"+he.circularPathData.rightLargeArcRadius+" "+he.circularPathData.rightSmallArcRadius+" 0 0 1 "+he.circularPathData.rightInnerExtent+" "+he.circularPathData.targetY+" L"+he.circularPathData.targetX+" "+he.circularPathData.targetY,oe}function O(he,oe){return q(he)==q(oe)?he.circularLinkType=="bottom"?Y(he,oe):$(he,oe):q(oe)-q(he)}function $(he,oe){return he.y0-oe.y0}function Y(he,oe){return oe.y0-he.y0}function K(he,oe){return he.y1-oe.y1}function j(he,oe){return oe.y1-he.y1}function q(he){return he.target.column-he.source.column}function Q(he){return he.target.x0-he.source.x1}function U(he,oe){var Me=D(he),ye=Q(oe)/Math.tan(Me),ce=ge(he)=="up"?he.y1+ye:he.y1-ye;return ce}function V(he,oe){var Me=D(he),ye=Q(oe)/Math.tan(Me),ce=ge(he)=="up"?he.y1-ye:he.y1+ye;return ce}function X(he,oe,Me,ye){he.links.forEach(function(ce){if(!ce.circular&&ce.target.column-ce.source.column>1){var ee=ce.source.column+1,ae=ce.target.column-1,xe=1,re=ae-ee+1;for(xe=1;ee<=ae;ee++,xe++)he.nodes.forEach(function(pe){if(pe.column==ee){var we=xe/(re+1),Fe=Math.pow(1-we,3),Ee=3*we*Math.pow(1-we,2),Ce=3*Math.pow(we,2)*(1-we),be=Math.pow(we,3),Ie=Fe*ce.y0+Ee*ce.y0+Ce*ce.y1+be*ce.y1,Oe=Ie-ce.width/2,Qe=Ie+ce.width/2,et;Oe>pe.y0&&Oepe.y0&&Qepe.y1&&H(bt,et,oe,Me)})):Oepe.y1&&(et=Qe-pe.y0+10,pe=H(pe,et,oe,Me),he.nodes.forEach(function(bt){T(bt,ye)==T(pe,ye)||bt.column!=pe.column||bt.y0pe.y1&&H(bt,et,oe,Me)}))}})}})}function G(he,oe){return he.y0>oe.y0&&he.y0oe.y0&&he.y1oe.y1}function H(he,oe,Me,ye){return he.y0+oe>=Me&&he.y1+oe<=ye&&(he.y0=he.y0+oe,he.y1=he.y1+oe,he.targetLinks.forEach(function(ce){ce.y1=ce.y1+oe}),he.sourceLinks.forEach(function(ce){ce.y0=ce.y0+oe})),he}function J(he,oe,Me,ye){he.nodes.forEach(function(ce){ye&&ce.y+(ce.y1-ce.y0)>oe&&(ce.y=ce.y-(ce.y+(ce.y1-ce.y0)-oe));var ee=he.links.filter(function(re){return T(re.source,Me)==T(ce,Me)}),ae=ee.length;ae>1&&ee.sort(function(re,pe){if(!re.circular&&!pe.circular){if(re.target.column==pe.target.column)return re.y1-pe.y1;if(ue(re,pe)){if(re.target.column>pe.target.column){var we=V(pe,re);return re.y1-we}if(pe.target.column>re.target.column){var Fe=V(re,pe);return Fe-pe.y1}}else return re.y1-pe.y1}if(re.circular&&!pe.circular)return re.circularLinkType=="top"?-1:1;if(pe.circular&&!re.circular)return pe.circularLinkType=="top"?1:-1;if(re.circular&&pe.circular)return re.circularLinkType===pe.circularLinkType&&re.circularLinkType=="top"?re.target.column===pe.target.column?re.target.y1-pe.target.y1:pe.target.column-re.target.column:re.circularLinkType===pe.circularLinkType&&re.circularLinkType=="bottom"?re.target.column===pe.target.column?pe.target.y1-re.target.y1:re.target.column-pe.target.column:re.circularLinkType=="top"?-1:1});var xe=ce.y0;ee.forEach(function(re){re.y0=xe+re.width/2,xe=xe+re.width}),ee.forEach(function(re,pe){if(re.circularLinkType=="bottom"){var we=pe+1,Fe=0;for(we;we1&&ce.sort(function(xe,re){if(!xe.circular&&!re.circular){if(xe.source.column==re.source.column)return xe.y0-re.y0;if(ue(xe,re)){if(re.source.column0?"up":"down"}function ke(he,oe){return T(he.source,oe)==T(he.target,oe)}function _e(he,oe,Me){var ye=he.nodes,ce=he.links,ee=!1,ae=!1;if(ce.forEach(function(Ee){Ee.circularLinkType=="top"?ee=!0:Ee.circularLinkType=="bottom"&&(ae=!0)}),ee==!1||ae==!1){var xe=t.min(ye,function(Ee){return Ee.y0}),re=t.max(ye,function(Ee){return Ee.y1}),pe=re-xe,we=Me-oe,Fe=we/pe;ye.forEach(function(Ee){var Ce=(Ee.y1-Ee.y0)*Fe;Ee.y0=(Ee.y0-xe)*Fe,Ee.y1=Ee.y0+Ce}),ce.forEach(function(Ee){Ee.y0=(Ee.y0-xe)*Fe,Ee.y1=(Ee.y1-xe)*Fe,Ee.width=Ee.width*Fe})}}e.sankeyCircular=M,e.sankeyCenter=u,e.sankeyLeft=o,e.sankeyRight=s,e.sankeyJustify=l,Object.defineProperty(e,"__esModule",{value:!0})}))});var Xoe={};Kn(Xoe,{cn:()=>C8r,duration:()=>E8r,ease:()=>k8r,forceIterations:()=>M8r,forceTicksPerFrame:()=>S8r,nodePadAcross:()=>T8r,nodeTextOffsetHorizontal:()=>_8r,nodeTextOffsetVertical:()=>w8r,sankeyIterations:()=>A8r});var _8r,w8r,T8r,A8r,M8r,S8r,E8r,k8r,C8r,Zoe=Ci(()=>{"use strict";_8r=4,w8r=3,T8r=10,A8r=50,M8r=5,S8r=10,E8r=500,k8r="linear",C8r={sankey:"sankey",sankeyLinks:"sankey-links",sankeyLink:"sankey-link",sankeyNodeSet:"sankey-node-set",sankeyNode:"sankey-node",nodeRect:"node-rect",nodeLabel:"node-label"}});var Gct=W((aui,Vct)=>{"use strict";var Dct=gct(),D8r=(S_(),Pt(M_)).interpolateNumber,hT=gi(),n8=Tct(),F8r=Cct(),Bo=(Zoe(),Pt(Xoe)),hg=ai(),L8r=en(),dg=it(),S3=dg.strTranslate,Fct=dg.strRotate,Qoe=J1(),a8=Qoe.keyFun,EO=Qoe.repeat,Bct=Qoe.unwrap,Lct=ho(),P8r=xi(),qct=(Xl(),Pt(Yl)),I8r=qct.CAP_SHIFT,R8r=qct.LINE_SPACING,z8r=3;function B8r(e,t,r){var i=Bct(t),n=i.trace,a=n.domain,o=n.orientation==="h",s=n.direction==="reversed",l=n.node.pad,u=n.node.thickness,c={justify:n8.sankeyJustify,left:n8.sankeyLeft,right:n8.sankeyRight,center:n8.sankeyCenter}[n.node.align],f=e.width*(a.x[1]-a.x[0]),h=e.height*(a.y[1]-a.y[0]),p=i._nodes,d=i._links,v=i.circular,m;v?m=F8r.sankeyCircular().circularLinkGap(0):m=n8.sankey(),m.iterations(Bo.sankeyIterations).size(o?[f,h]:[h,f]).nodeWidth(u).nodePadding(l).nodeId(function(P){return P.pointNumber}).nodeAlign(c).nodes(p).links(d);function g(P){n[P].sort==="input"&&(v?dg.warn(`Circular Sankey diagrams do not support the "input" ${P}.sort mode; falling back to the default sort.`):m[`${P}Sort`](null))}g("link"),g("node");var w=m();m.nodePadding()=B||(I=B-F.y0,I>1e-6&&(F.y0+=I,F.y1+=I)),B=F.y1+l})}function C(P){var R=P.map(function(K,j){return{x0:K.x0,index:j}}).sort(function(K,j){return K.x0-j.x0}),F=[],I=-1,B,O=-1/0,$;for(_=0;_O+u&&(I+=1,B=Y.x0),O=Y.x0,F[I]||(F[I]=[]),F[I].push(Y),$=B-Y.x0,Y.x0+=$,Y.x1+=$}return F}if(n.node.x.length&&n.node.y.length){for(_=0;_0?" L "+n.targetX+" "+n.targetY:"")+"Z"):(r="M "+(n.targetX-t)+" "+(n.targetY-i)+" L "+(n.rightInnerExtent-t)+" "+(n.targetY-i)+" A "+(n.rightLargeArcRadius+i)+" "+(n.rightSmallArcRadius+i)+" 0 0 0 "+(n.rightFullExtent-i-t)+" "+(n.targetY+n.rightSmallArcRadius)+" L "+(n.rightFullExtent-i-t)+" "+n.verticalRightInnerExtent,a&&o?r+=" A "+(n.rightLargeArcRadius+i)+" "+(n.rightLargeArcRadius+i)+" 0 0 0 "+(n.rightInnerExtent-i-t)+" "+(n.verticalFullExtent+i)+" L "+(n.rightFullExtent+i-t-(n.rightLargeArcRadius-i))+" "+(n.verticalFullExtent+i)+" A "+(n.rightLargeArcRadius+i)+" "+(n.rightLargeArcRadius+i)+" 0 0 0 "+(n.leftFullExtent+i)+" "+n.verticalLeftInnerExtent:a?r+=" A "+(n.rightLargeArcRadius-i)+" "+(n.rightSmallArcRadius-i)+" 0 0 1 "+(n.rightFullExtent-t-i-(n.rightLargeArcRadius-i))+" "+(n.verticalFullExtent-i)+" L "+(n.leftFullExtent+i+(n.rightLargeArcRadius-i))+" "+(n.verticalFullExtent-i)+" A "+(n.rightLargeArcRadius-i)+" "+(n.rightSmallArcRadius-i)+" 0 0 1 "+(n.leftFullExtent+i)+" "+n.verticalLeftInnerExtent:r+=" A "+(n.rightLargeArcRadius+i)+" "+(n.rightLargeArcRadius+i)+" 0 0 0 "+(n.rightInnerExtent-t)+" "+(n.verticalFullExtent+i)+" L "+n.leftInnerExtent+" "+(n.verticalFullExtent+i)+" A "+(n.leftLargeArcRadius+i)+" "+(n.leftLargeArcRadius+i)+" 0 0 0 "+(n.leftFullExtent+i)+" "+n.verticalLeftInnerExtent,r+=" L "+(n.leftFullExtent+i)+" "+(n.sourceY+n.leftSmallArcRadius)+" A "+(n.leftLargeArcRadius+i)+" "+(n.leftSmallArcRadius+i)+" 0 0 0 "+n.leftInnerExtent+" "+(n.sourceY-i)+" L "+n.sourceX+" "+(n.sourceY-i)+" L "+n.sourceX+" "+(n.sourceY+i)+" L "+n.leftInnerExtent+" "+(n.sourceY+i)+" A "+(n.leftLargeArcRadius-i)+" "+(n.leftSmallArcRadius-i)+" 0 0 1 "+(n.leftFullExtent-i)+" "+(n.sourceY+n.leftSmallArcRadius)+" L "+(n.leftFullExtent-i)+" "+n.verticalLeftInnerExtent,a&&o?r+=" A "+(n.rightLargeArcRadius-i)+" "+(n.rightSmallArcRadius-i)+" 0 0 1 "+(n.leftFullExtent-i-(n.rightLargeArcRadius-i))+" "+(n.verticalFullExtent-i)+" L "+(n.rightFullExtent+i-t+(n.rightLargeArcRadius-i))+" "+(n.verticalFullExtent-i)+" A "+(n.rightLargeArcRadius-i)+" "+(n.rightSmallArcRadius-i)+" 0 0 1 "+(n.rightFullExtent+i-t)+" "+n.verticalRightInnerExtent:a?r+=" A "+(n.rightLargeArcRadius+i)+" "+(n.rightLargeArcRadius+i)+" 0 0 0 "+(n.leftFullExtent+i)+" "+(n.verticalFullExtent+i)+" L "+(n.rightFullExtent-t-i)+" "+(n.verticalFullExtent+i)+" A "+(n.rightLargeArcRadius+i)+" "+(n.rightLargeArcRadius+i)+" 0 0 0 "+(n.rightFullExtent+i-t)+" "+n.verticalRightInnerExtent:r+=" A "+(n.leftLargeArcRadius-i)+" "+(n.leftLargeArcRadius-i)+" 0 0 1 "+n.leftInnerExtent+" "+(n.verticalFullExtent-i)+" L "+(n.rightInnerExtent-t)+" "+(n.verticalFullExtent-i)+" A "+(n.rightLargeArcRadius-i)+" "+(n.rightLargeArcRadius-i)+" 0 0 1 "+(n.rightFullExtent+i-t)+" "+n.verticalRightInnerExtent,r+=" L "+(n.rightFullExtent+i-t)+" "+(n.targetY+n.rightSmallArcRadius)+" A "+(n.rightLargeArcRadius-i)+" "+(n.rightSmallArcRadius-i)+" 0 0 1 "+(n.rightInnerExtent-t)+" "+(n.targetY+i)+" L "+(n.targetX-t)+" "+(n.targetY+i)+(t>0?" L "+n.targetX+" "+n.targetY:"")+"Z"),r}function ese(){var e=.5;function t(r){var i=r.linkArrowLength;if(r.link.circular)return O8r(r.link,i);var n=Math.abs((r.link.target.x0-r.link.source.x1)/2);i>n&&(i=n);var a=r.link.source.x1,o=r.link.target.x0-i,s=D8r(a,o),l=s(e),u=s(1-e),c=r.link.y0-r.link.width/2,f=r.link.y0+r.link.width/2,h=r.link.y1-r.link.width/2,p=r.link.y1+r.link.width/2,d="M"+a+","+c,v="C"+l+","+c+" "+u+","+h+" "+o+","+h,m="C"+u+","+p+" "+l+","+f+" "+a+","+f,g=i>0?"L"+(o+i)+","+(h+r.link.width/2):"";return g+="L"+o+","+p,d+v+g+m+"Z"}return t}function N8r(e,t){var r=Bo.nodePadAcross,i=e.nodePad/2;t.dx=t.x1-t.x0,t.dy=t.y1-t.y0;var n=t.dx,a=Math.max(.5,t.dy),o="node_"+t.pointNumber;return t.group&&(o=dg.randstr()),t.trace=e.trace,t.curveNumber=e.trace.index,{index:t.pointNumber,key:o,partOfGroup:t.partOfGroup||!1,group:t.group,traceId:e.key,trace:e.trace,node:t,nodePad:e.nodePad,nodeLineColor:e.nodeLineColor,nodeLineWidth:e.nodeLineWidth,textFont:e.textFont,size:e.horizontal?e.height:e.width,visibleWidth:Math.ceil(n),visibleHeight:a,zoneX:-r,zoneY:-i,zoneWidth:n+2*r,zoneHeight:a+2*i,labelY:e.horizontal?t.dy/2+1:t.dx/2+1,left:t.originalLayer===1,sizeAcross:e.width,forceLayouts:e.forceLayouts,horizontal:e.horizontal,reversed:e.reversed,rgb:hg.rgb(t.color),alpha:hg.parse(t.color).alpha,valueFormat:e.valueFormat,valueSuffix:e.valueSuffix,sankey:e.sankey,graph:e.graph,arrangement:e.arrangement,uniqueNodeLabelPathId:[e.guid,e.key,o].join("_"),interactionState:e.interactionState,figure:e}}function Joe(e){e.attr("transform",function(t){return S3(t.node.x0.toFixed(3),t.node.y0.toFixed(3))})}function U8r(e){e.call(Joe)}function Oct(e,t){e.call(U8r),t.attr("d",ese())}function Pct(e){e.attr("width",function(t){return t.node.x1-t.node.x0}).attr("height",function(t){return t.visibleHeight})}function Koe(e){return e.link.width>1||e.linkLineWidth>0}function Ict(e){return e.horizontal?e.reversed?S3(e.translateX+e.width,e.translateY)+"matrix(-1 0 0 1 0 0)":S3(e.translateX,e.translateY)+"matrix(1 0 0 1 0 0)":e.reversed?S3(e.translateX,e.translateY+e.height)+"matrix(0 -1 1 0 0 0)":S3(e.translateX,e.translateY)+"matrix(0 1 1 0 0 0)"}function Rct(e,t,r){e.on(".basic",null).on("mouseover.basic",function(i){!i.interactionState.dragInProgress&&!i.partOfGroup&&(r.hover(this,i,t),i.interactionState.hovered=[this,i])}).on("mousemove.basic",function(i){!i.interactionState.dragInProgress&&!i.partOfGroup&&(r.follow(this,i),i.interactionState.hovered=[this,i])}).on("mouseout.basic",function(i){!i.interactionState.dragInProgress&&!i.partOfGroup&&(r.unhover(this,i,t),i.interactionState.hovered=!1)}).on("click.basic",function(i){i.interactionState.hovered&&(r.unhover(this,i,t),i.interactionState.hovered=!1),!i.interactionState.dragInProgress&&!i.partOfGroup&&r.select(this,i,t)})}function V8r(e,t,r,i){var n=hT.behavior.drag().origin(function(a){return{x:a.node.x0+a.visibleWidth/2,y:a.node.y0+a.visibleHeight/2}}).on("dragstart",function(a){if(a.arrangement!=="fixed"&&(dg.ensureSingle(i._fullLayout._infolayer,"g","dragcover",function(s){i._fullLayout._dragCover=s}),dg.raiseToTop(this),a.interactionState.dragInProgress=a.node,zct(a.node),a.interactionState.hovered&&(r.nodeEvents.unhover.apply(0,a.interactionState.hovered),a.interactionState.hovered=!1),a.arrangement==="snap")){var o=a.traceId+"|"+a.key;a.forceLayouts[o]?a.forceLayouts[o].alpha(1):G8r(e,o,a,i),H8r(e,t,a,o,i)}}).on("drag",function(a){if(a.arrangement!=="fixed"){var o=hT.event.x,s=hT.event.y;a.arrangement==="snap"?(a.node.x0=o-a.visibleWidth/2,a.node.x1=o+a.visibleWidth/2,a.node.y0=s-a.visibleHeight/2,a.node.y1=s+a.visibleHeight/2):(a.arrangement==="freeform"&&(a.node.x0=o-a.visibleWidth/2,a.node.x1=o+a.visibleWidth/2),s=Math.max(0,Math.min(a.size-a.visibleHeight/2,s)),a.node.y0=s-a.visibleHeight/2,a.node.y1=s+a.visibleHeight/2),zct(a.node),a.arrangement!=="snap"&&(a.sankey.update(a.graph),Oct(e.filter(Uct(a)),t))}}).on("dragend",function(a){if(a.arrangement!=="fixed"){a.interactionState.dragInProgress=!1;for(var o=0;o0)window.requestAnimationFrame(a);else{var l=r.node.originalX;r.node.x0=l-r.visibleWidth/2,r.node.x1=l+r.visibleWidth/2,Nct(r,n)}})}function j8r(e,t,r,i){return function(){for(var a=0,o=0;o0&&i.forceLayouts[t].alpha(0)}}function Nct(e,t){for(var r=[],i=[],n=0;nKoe(m)?hg.rgb(m.linkLineColor):m.rgb).style("stroke-opacity",m=>Koe(m)?hg.opacity(m.linkLineColor):m.alpha).style("fill",m=>m.rgb).style("fill-opacity",m=>m.alpha).style("stroke-width",m=>Koe(m)?m.linkLineWidth:1).attr("d",ese()),f.style("opacity",function(){return e._context.staticPlot||o||s?1:0}).transition().ease(Bo.ease).duration(Bo.duration).style("opacity",1),f.exit().transition().ease(Bo.ease).duration(Bo.duration).style("opacity",0).remove();var h=u.selectAll("."+Bo.cn.sankeyNodeSet).data(EO,a8);h.enter().append("g").classed(Bo.cn.sankeyNodeSet,!0),h.style("cursor",function(m){switch(m.arrangement){case"fixed":return"default";case"perpendicular":return"ns-resize";default:return"move"}});var p=h.selectAll("."+Bo.cn.sankeyNode).data(function(m){var g=m.graph.nodes;return $8r(g),g.map(N8r.bind(null,m))},a8);p.enter().append("g").classed(Bo.cn.sankeyNode,!0).call(Joe).style("opacity",function(m){return(e._context.staticPlot||o)&&!m.partOfGroup?1:0}),p.call(Rct,u,n.nodeEvents).call(V8r,f,n,e),p.transition().ease(Bo.ease).duration(Bo.duration).call(Joe).style("opacity",function(m){return m.partOfGroup?0:1}),p.exit().transition().ease(Bo.ease).duration(Bo.duration).style("opacity",0).remove();var d=p.selectAll("."+Bo.cn.nodeRect).data(EO);d.enter().append("rect").classed(Bo.cn.nodeRect,!0).call(Pct),d.style("stroke-width",function(m){return m.nodeLineWidth}).style("stroke",function(m){return hg.rgb(m.nodeLineColor)}).style("stroke-opacity",function(m){return hg.opacity(m.nodeLineColor)}).style("fill",m=>m.rgb).style("fill-opacity",m=>m.alpha),d.transition().ease(Bo.ease).duration(Bo.duration).call(Pct);var v=p.selectAll("."+Bo.cn.nodeLabel).data(EO);v.enter().append("text").classed(Bo.cn.nodeLabel,!0).style("cursor","default"),v.attr("data-notex",1).text(function(m){return m.node.label}).each(function(m){var g=hT.select(this);L8r.font(g,m.textFont),Lct.convertToTspans(g,e)}).attr("text-anchor",function(m){return m.horizontal&&m.left!==m.reversed?"end":"start"}).attr("transform",function(m){var g=hT.select(this),w=Lct.lineCount(g),_=m.textFont.size*((w-1)*R8r-I8r),b=m.nodeLineWidth/2+z8r;if(!m.horizontal){var T=m.reversed?(m.visibleWidth+_)/2:(m.visibleWidth-_)/2,S=m.reversed?Fct(90):"scale(-1,1)"+Fct(90);return S3(T,b)+S}var x=b,T=(m.visibleHeight-_)/2;return m.left?x=-x:x+=m.visibleWidth,S3(x,T)+(m.reversed?"scale(-1,1)":"")}),v.transition().ease(Bo.ease).duration(Bo.duration)}});var ise=W((oui,Jct)=>{"use strict";var Vf=gi(),rse=it(),kO=rse.numberFormat,X8r=Gct(),dT=Ls(),Z8r=ai(),_x=(Zoe(),Pt(Xoe)).cn,o8=rse._;function Hct(e){return e!==""}function pT(e,t){return e.filter(function(r){return r.key===t.traceId})}function jct(e,t){Vf.select(e).select("path").style("fill-opacity",t),Vf.select(e).select("rect").style("fill-opacity",t)}function $ct(e){Vf.select(e).select("text.name").style("fill","black")}function Wct(e){return function(t){return e.node.sourceLinks.indexOf(t.link)!==-1||e.node.targetLinks.indexOf(t.link)!==-1}}function Yct(e){return function(t){return t.node.sourceLinks.indexOf(e.link)!==-1||t.node.targetLinks.indexOf(e.link)!==-1}}function Xct(e,t,r){t&&r&&pT(r,t).selectAll("."+_x.sankeyLink).filter(Wct(t)).call(Zct.bind(0,t,r,!1))}function tse(e,t,r){t&&r&&pT(r,t).selectAll("."+_x.sankeyLink).filter(Wct(t)).call(Kct.bind(0,t,r,!1))}function Zct(e,t,r,i){i.style("fill",function(n){if(!n.link.concentrationscale)return n.hoverRgb}).style("fill-opacity",function(n){if(!n.link.concentrationscale)return n.hoverAlpha}),i.each(function(n){var a=n.link.label;a!==""&&pT(t,e).selectAll("."+_x.sankeyLink).filter(function(o){return o.link.label===a}).style("fill",function(o){if(!o.link.concentrationscale)return o.hoverRgb}).style("fill-opacity",function(o){if(!o.link.concentrationscale)return o.hoverAlpha})}),r&&pT(t,e).selectAll("."+_x.sankeyNode).filter(Yct(e)).call(Xct)}function Kct(e,t,r,i){i.style("fill",function(n){return n.rgb}).style("fill-opacity",function(n){return n.alpha}),i.each(function(n){var a=n.link.label;a!==""&&pT(t,e).selectAll("."+_x.sankeyLink).filter(function(o){return o.link.label===a}).style("fill",o=>o.rgb).style("fill-opacity",o=>o.alpha)}),r&&pT(t,e).selectAll(_x.sankeyNode).filter(Yct(e)).call(tse)}function Zs(e,t){var r=e.hoverlabel||{},i=rse.nestedProperty(r,t).get();return Array.isArray(i)?!1:i}Jct.exports=function(t,r){for(var i=t._fullLayout,n=i._paper,a=i._size,o=0;o"),color:Zs(T,"bgcolor")||Z8r.addOpacity(C.color,1),borderColor:Zs(T,"bordercolor"),fontFamily:Zs(T,"font.family"),fontSize:Zs(T,"font.size"),fontColor:Zs(T,"font.color"),fontWeight:Zs(T,"font.weight"),fontStyle:Zs(T,"font.style"),fontVariant:Zs(T,"font.variant"),fontTextcase:Zs(T,"font.textcase"),fontLineposition:Zs(T,"font.lineposition"),fontShadow:Zs(T,"font.shadow"),nameLength:Zs(T,"namelength"),textAlign:Zs(T,"align"),idealAlign:Vf.event.x"),color:Zs(T,"bgcolor")||x.rgb,borderColor:Zs(T,"bordercolor"),fontFamily:Zs(T,"font.family"),fontSize:Zs(T,"font.size"),fontColor:Zs(T,"font.color"),fontWeight:Zs(T,"font.weight"),fontStyle:Zs(T,"font.style"),fontVariant:Zs(T,"font.variant"),fontTextcase:Zs(T,"font.textcase"),fontLineposition:Zs(T,"font.lineposition"),fontShadow:Zs(T,"font.shadow"),nameLength:Zs(T,"namelength"),textAlign:Zs(T,"align"),idealAlign:"left",hovertemplate:T.hovertemplate,hovertemplateLabels:D,eventData:[x.node]},{container:i._hoverlayer.node(),outerContainer:i._paper.node(),gd:t});jct(R,.85),$ct(R)}}},b=function(S,x,T){t._fullLayout.hovermode!==!1&&(Vf.select(S).call(tse,x,T),x.node.trace.node.hoverinfo!=="skip"&&(x.node.fullData=x.node.trace,t.emit("plotly_unhover",{event:Vf.event,points:[x.node]})),dT.loneUnhover(i._hoverlayer.node()))};X8r(t,n,r,{width:a.w,height:a.h,margin:{t:a.t,r:a.r,b:a.b,l:a.l}},{linkEvents:{hover:u,follow:v,unhover:m,select:l},nodeEvents:{hover:w,follow:_,unhover:b,select:g}})}});var Qct=W(E3=>{"use strict";var K8r=cs().overrideAll,J8r=Ac().getModuleCalcData,Q8r=ise(),eDr=py(),tDr=$p(),rDr=Mf(),iDr=yu().prepSelect,nse=it(),nDr=xi(),CO="sankey";E3.name=CO;E3.baseLayoutAttrOverrides=K8r({hoverlabel:eDr.hoverlabel},"plot","nested");E3.plot=function(e){var t=J8r(e.calcdata,CO)[0];Q8r(e,t),E3.updateFx(e)};E3.clean=function(e,t,r,i){var n=i._has&&i._has(CO),a=t._has&&t._has(CO);n&&!a&&(i._paperdiv.selectAll(".sankey").remove(),i._paperdiv.selectAll(".bgsankey").remove())};E3.updateFx=function(e){for(var t=0;t{"use strict";eft.exports=function(t,r){for(var i=t.cd,n=[],a=i[0].trace,o=a._sankey,s=o.graph.nodes,l=a.orientation==="v",u=a.direction==="reversed",c=0;c{"use strict";rft.exports={attributes:joe(),supplyDefaults:rct(),calc:sct(),plot:ise(),moduleType:"trace",name:"sankey",basePlotModule:Qct(),selectPoints:tft(),categories:["noOpacity"],meta:{}}});var aft=W((cui,nft)=>{"use strict";nft.exports=ift()});var sft=W(vT=>{"use strict";var oft=Qo();vT.name="indicator";vT.plot=function(e,t,r,i){oft.plotBasePlot(vT.name,e,t,r,i)};vT.clean=function(e,t,r,i){oft.cleanBasePlot(vT.name,e,t,r,i)}});var ose=W((hui,dft)=>{"use strict";var wx=nn().extendFlat,uft=nn().extendDeep,oDr=cs().overrideAll,cft=jo(),fft=jl(),sDr=fs().attributes,ul=nc(),lDr=Ia().templatedArray,DO=(V5(),Pt(U5)),lft=ws().descriptionOnlyNumbers,ase=cft({editType:"plot",colorEditType:"plot"}),s8={color:{valType:"color",editType:"plot"},line:{color:{valType:"color",dflt:fft.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"},hft={valType:"info_array",items:[{valType:"number",editType:"plot"},{valType:"number",editType:"plot"}],editType:"plot"},uDr=lDr("step",uft({},s8,{range:hft}));dft.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:sDr({name:"indicator",trace:!0,editType:"calc"}),title:{text:{valType:"string",editType:"plot"},align:{valType:"enumerated",values:["left","center","right"],editType:"plot"},font:wx({},ase,{}),editType:"plot"},number:{valueformat:{valType:"string",dflt:"",editType:"plot",description:lft("value")},font:wx({},ase,{}),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:lft("value")},increasing:{symbol:{valType:"string",dflt:DO.INCREASING.SYMBOL,editType:"plot"},color:{valType:"color",dflt:DO.INCREASING.COLOR,editType:"plot"},editType:"plot"},decreasing:{symbol:{valType:"string",dflt:DO.DECREASING.SYMBOL,editType:"plot"},color:{valType:"color",dflt:DO.DECREASING.COLOR,editType:"plot"},editType:"plot"},font:wx({},ase,{}),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:uft({},s8,{color:{dflt:"green"}}),bgcolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:fft.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:1,editType:"plot"},axis:oDr({range:hft,visible:wx({},ul.visible,{dflt:!0}),tickmode:ul.minor.tickmode,nticks:ul.nticks,tick0:ul.tick0,dtick:ul.dtick,tickvals:ul.tickvals,ticktext:ul.ticktext,ticks:wx({},ul.ticks,{dflt:"outside"}),ticklen:ul.ticklen,tickwidth:ul.tickwidth,tickcolor:ul.tickcolor,ticklabelstep:ul.ticklabelstep,showticklabels:ul.showticklabels,labelalias:ul.labelalias,tickfont:cft({}),tickangle:ul.tickangle,tickformat:ul.tickformat,tickformatstops:ul.tickformatstops,tickprefix:ul.tickprefix,showtickprefix:ul.showtickprefix,ticksuffix:ul.ticksuffix,showticksuffix:ul.showticksuffix,separatethousands:ul.separatethousands,exponentformat:ul.exponentformat,minexponent:ul.minexponent,showexponent:ul.showexponent,editType:"plot"},"plot"),steps:uDr,threshold:{line:{color:wx({},s8.line.color,{}),width:wx({},s8.line.width,{dflt:1}),editType:"plot"},thickness:wx({},s8.thickness,{dflt:.85}),value:{valType:"number",editType:"calc",dflt:!1},editType:"plot"},editType:"plot"}}});var sse={};Kn(sse,{bulletNumberDomainSize:()=>fDr,bulletPadding:()=>hDr,defaultNumberFontSize:()=>cDr,horizontalPadding:()=>gDr,innerRadius:()=>dDr,titlePadding:()=>vDr,valueThickness:()=>pDr});var cDr,fDr,hDr,dDr,pDr,vDr,gDr,lse=Ci(()=>{"use strict";cDr=80,fDr=.25,hDr=.025,dDr=.75,pDr=.5,vDr=5,gDr=10});var gft=W((dui,vft)=>{"use strict";var pg=it(),LO=ose(),mDr=fs().defaults,pft=Ia(),yDr=ef(),FO=(lse(),Pt(sse)),xDr=lb(),bDr=Sw(),_Dr=Cy(),wDr=Dy();function TDr(e,t,r,i){function n(x,T){return pg.coerce(e,t,LO,x,T)}mDr(t,i,n),n("mode"),t._hasNumber=t.mode.indexOf("number")!==-1,t._hasDelta=t.mode.indexOf("delta")!==-1,t._hasGauge=t.mode.indexOf("gauge")!==-1;var a=n("value");t._range=[0,typeof a=="number"?1.5*a:1];var o=new Array(2),s;if(t._hasNumber){n("number.valueformat");var l=pg.extendFlat({},i.font);l.size=void 0,pg.coerceFont(n,"number.font",l),t.number.font.size===void 0&&(t.number.font.size=FO.defaultNumberFontSize,o[0]=!0),n("number.prefix"),n("number.suffix"),s=t.number.font.size}var u;if(t._hasDelta){var c=pg.extendFlat({},i.font);c.size=void 0,pg.coerceFont(n,"delta.font",c),t.delta.font.size===void 0&&(t.delta.font.size=(t._hasNumber?.5:1)*(s||FO.defaultNumberFontSize),o[1]=!0),n("delta.reference",t.value),n("delta.relative"),n("delta.valueformat",t.delta.relative?"2%":""),n("delta.increasing.symbol"),n("delta.increasing.color"),n("delta.decreasing.symbol"),n("delta.decreasing.color"),n("delta.position"),n("delta.prefix"),n("delta.suffix"),u=t.delta.font.size}t._scaleNumbers=(!t._hasNumber||o[0])&&(!t._hasDelta||o[1])||!1;var f=pg.extendFlat({},i.font);f.size=.25*(s||u||FO.defaultNumberFontSize),pg.coerceFont(n,"title.font",f),n("title.text");var h,p,d,v;function m(x,T){return pg.coerce(h,p,LO.gauge,x,T)}function g(x,T){return pg.coerce(d,v,LO.gauge.axis,x,T)}if(t._hasGauge){h=e.gauge,h||(h={}),p=pft.newContainer(t,"gauge"),m("shape");var w=t._isBullet=t.gauge.shape==="bullet";w||n("title.align","center");var _=t._isAngular=t.gauge.shape==="angular";_||n("align","center"),m("bgcolor",i.paper_bgcolor),m("borderwidth"),m("bordercolor"),m("bar.color"),m("bar.line.color"),m("bar.line.width");var b=FO.valueThickness*(t.gauge.shape==="bullet"?.5:1);m("bar.thickness",b),yDr(h,p,{name:"steps",handleItemDefaults:ADr}),m("threshold.value"),m("threshold.thickness"),m("threshold.line.width"),m("threshold.line.color"),d={},h&&(d=h.axis||{}),v=pft.newContainer(p,"axis"),g("visible"),t._range=g("range",t._range);var S={font:i.font,noAutotickangles:!0,outerTicks:!0,noTicklabelshift:!0,noTicklabelstandoff:!0};xDr(d,v,g,"linear"),wDr(d,v,g,"linear",S),_Dr(d,v,g,"linear",S),bDr(d,v,g,S)}else n("title.align","center"),n("align","center"),t._isAngular=t._isBullet=!1;t._length=null}function ADr(e,t){function r(i,n){return pg.coerce(e,t,LO.gauge.steps,i,n)}r("color"),r("line.color"),r("line.width"),r("range"),r("thickness")}vft.exports={supplyDefaults:TDr}});var yft=W((pui,mft)=>{"use strict";function MDr(e,t){var r=[],i=t.value;typeof t._lastValue!="number"&&(t._lastValue=t.value);var n=t._lastValue,a=n;return t._hasDelta&&typeof t.delta.reference=="number"&&(a=t.delta.reference),r[0]={y:i,lastY:n,delta:i-a,relativeDelta:(i-a)/a},r}mft.exports={calc:MDr}});var Aft=W((vui,Tft)=>{"use strict";var L3=gi(),SDr=(S_(),Pt(M_)).interpolate,xft=(S_(),Pt(M_)).interpolateNumber,Tx=it(),EDr=Tx.strScale,u8=Tx.strTranslate,kDr=Tx.rad2deg,CDr=(Xl(),Pt(Yl)).MID_SHIFT,F3=en(),k3=(lse(),Pt(sse)),IO=ho(),Hc=Wi(),DDr=LM(),FDr=JF(),LDr=nc(),gT=ai(),use={left:"start",center:"middle",right:"end"},C3={left:0,center:.5,right:1},bft=/[yzafpnµmkMGTPEZY]/;function c8(e){return e&&e.duration>0}Tft.exports=function(t,r,i,n){var a=t._fullLayout,o;c8(i)&&n&&(o=n()),Tx.makeTraceGroups(a._indicatorlayer,r,"trace").each(function(s){var l=s[0],u=l.trace,c=L3.select(this),f=u._hasGauge,h=u._isAngular,p=u._isBullet,d=u.domain,v={w:a._size.w*(d.x[1]-d.x[0]),h:a._size.h*(d.y[1]-d.y[0]),l:a._size.l+a._size.w*d.x[0],r:a._size.r+a._size.w*(1-d.x[1]),t:a._size.t+a._size.h*(1-d.y[1]),b:a._size.b+a._size.h*d.y[0]},m=v.l+v.w/2,g=v.t+v.h/2,w=Math.min(v.w/2,v.h),_=k3.innerRadius*w,b,S,x,T=u.align||"center";if(S=g,!f)b=v.l+C3[T]*v.w,x=function(R){return _ft(R,v.w,v.h)};else if(h&&(b=m,S=g+w/2,x=function(R){return BDr(R,.9*_)}),p){var A=k3.bulletPadding,y=1-k3.bulletNumberDomainSize+A;b=v.l+(y+(1-y)*C3[T])*v.w,x=function(R){return _ft(R,(k3.bulletNumberDomainSize-A)*v.w,v.h)}}RDr(t,c,s,{numbersX:b,numbersY:S,numbersScaler:x,transitionOpts:i,onComplete:o});var E,M;f&&(E={range:u.gauge.axis.range,color:u.gauge.bgcolor,line:{color:u.gauge.bordercolor,width:0},thickness:1},M={range:u.gauge.axis.range,color:"rgba(0, 0, 0, 0)",line:{color:u.gauge.bordercolor,width:u.gauge.borderwidth},thickness:1});var C=c.selectAll("g.angular").data(h?s:[]);C.exit().remove();var k=c.selectAll("g.angularaxis").data(h?s:[]);k.exit().remove(),h&&IDr(t,c,s,{radius:w,innerRadius:_,gauge:C,layer:k,size:v,gaugeBg:E,gaugeOutline:M,transitionOpts:i,onComplete:o});var D=c.selectAll("g.bullet").data(p?s:[]);D.exit().remove();var L=c.selectAll("g.bulletaxis").data(p?s:[]);L.exit().remove(),p&&PDr(t,c,s,{gauge:D,layer:L,size:v,gaugeBg:E,gaugeOutline:M,transitionOpts:i,onComplete:o});var P=c.selectAll("text.title").data(s);P.exit().remove(),P.enter().append("text").classed("title",!0),P.attr("text-anchor",function(){return p?use.right:use[u.title.align]}).text(u.title.text).call(F3.font,u.title.font).call(IO.convertToTspans,t),P.attr("transform",function(){var R=v.l+v.w*C3[u.title.align],F,I=k3.titlePadding,B=F3.bBox(P.node());if(f){if(h)if(u.gauge.axis.visible){var O=F3.bBox(k.node());F=O.top-I-B.bottom}else F=v.t+v.h/2-w/2-B.bottom-I;p&&(F=S-(B.top+B.bottom)/2,R=v.l-k3.bulletPadding*v.w)}else F=u._numbersTop-I-B.bottom;return u8(R,F)})})};function PDr(e,t,r,i){var n=r[0].trace,a=i.gauge,o=i.layer,s=i.gaugeBg,l=i.gaugeOutline,u=i.size,c=n.domain,f=i.transitionOpts,h=i.onComplete,p,d,v,m,g;a.enter().append("g").classed("bullet",!0),a.attr("transform",u8(u.l,u.t)),o.enter().append("g").classed("bulletaxis",!0).classed("crisp",!0),o.selectAll("g.xbulletaxistick,path,text").remove();var w=u.h,_=n.gauge.bar.thickness*w,b=c.x[0],S=c.x[0]+(c.x[1]-c.x[0])*(n._hasNumber||n._hasDelta?1-k3.bulletNumberDomainSize:1);p=l8(e,n.gauge.axis),p._id="xbulletaxis",p.domain=[b,S],p.setScale(),d=Hc.calcTicks(p),v=Hc.makeTransTickFn(p),m=Hc.getTickSigns(p)[2],g=u.t+u.h,p.visible&&(Hc.drawTicks(e,p,{vals:p.ticks==="inside"?Hc.clipEnds(p,d):d,layer:o,path:Hc.makeTickPath(p,g,m),transFn:v}),Hc.drawLabels(e,p,{vals:d,layer:o,transFn:v,labelFns:Hc.makeLabelFns(p,g)}));function x(k){k.attr("width",function(D){return Math.max(0,p.c2p(D.range[1])-p.c2p(D.range[0]))}).attr("x",function(D){return p.c2p(D.range[0])}).attr("y",function(D){return .5*(1-D.thickness)*w}).attr("height",function(D){return D.thickness*w})}var T=[s].concat(n.gauge.steps),A=a.selectAll("g.bg-bullet").data(T);A.enter().append("g").classed("bg-bullet",!0).append("rect"),A.select("rect").call(x).call(D3),A.exit().remove();var y=a.selectAll("g.value-bullet").data([n.gauge.bar]);y.enter().append("g").classed("value-bullet",!0).append("rect"),y.select("rect").attr("height",_).attr("y",(w-_)/2).call(D3),c8(f)?y.select("rect").transition().duration(f.duration).ease(f.easing).each("end",function(){h&&h()}).each("interrupt",function(){h&&h()}).attr("width",Math.max(0,p.c2p(Math.min(n.gauge.axis.range[1],r[0].y)))):y.select("rect").attr("width",typeof r[0].y=="number"?Math.max(0,p.c2p(Math.min(n.gauge.axis.range[1],r[0].y))):0),y.exit().remove();var E=r.filter(function(){return n.gauge.threshold.value||n.gauge.threshold.value===0}),M=a.selectAll("g.threshold-bullet").data(E);M.enter().append("g").classed("threshold-bullet",!0).append("line"),M.select("line").attr("x1",p.c2p(n.gauge.threshold.value)).attr("x2",p.c2p(n.gauge.threshold.value)).attr("y1",(1-n.gauge.threshold.thickness)/2*w).attr("y2",(1-(1-n.gauge.threshold.thickness)/2)*w).call(gT.stroke,n.gauge.threshold.line.color).style("stroke-width",n.gauge.threshold.line.width),M.exit().remove();var C=a.selectAll("g.gauge-outline").data([l]);C.enter().append("g").classed("gauge-outline",!0).append("rect"),C.select("rect").call(x).call(D3),C.exit().remove()}function IDr(e,t,r,i){var n=r[0].trace,a=i.size,o=i.radius,s=i.innerRadius,l=i.gaugeBg,u=i.gaugeOutline,c=[a.l+a.w/2,a.t+a.h/2+o/2],f=i.gauge,h=i.layer,p=i.transitionOpts,d=i.onComplete,v=Math.PI/2;function m($){var Y=n.gauge.axis.range[0],K=n.gauge.axis.range[1],j=($-Y)/(K-Y)*Math.PI-v;return j<-v?-v:j>v?v:j}function g($){return L3.svg.arc().innerRadius((s+o)/2-$/2*(o-s)).outerRadius((s+o)/2+$/2*(o-s)).startAngle(-v)}function w($){$.attr("d",function(Y){return g(Y.thickness).startAngle(m(Y.range[0])).endAngle(m(Y.range[1]))()})}var _,b,S,x;f.enter().append("g").classed("angular",!0),f.attr("transform",u8(c[0],c[1])),h.enter().append("g").classed("angularaxis",!0).classed("crisp",!0),h.selectAll("g.xangularaxistick,path,text").remove(),_=l8(e,n.gauge.axis),_.type="linear",_.range=n.gauge.axis.range,_._id="xangularaxis",_.ticklabeloverflow="allow",_.setScale();var T=function($){return(_.range[0]-$.x)/(_.range[1]-_.range[0])*Math.PI+Math.PI},A={},y=Hc.makeLabelFns(_,0),E=y.labelStandoff;A.xFn=function($){var Y=T($);return Math.cos(Y)*E},A.yFn=function($){var Y=T($),K=Math.sin(Y)>0?.2:1;return-Math.sin(Y)*(E+$.fontSize*K)+Math.abs(Math.cos(Y))*($.fontSize*CDr)},A.anchorFn=function($){var Y=T($),K=Math.cos(Y);return Math.abs(K)<.1?"middle":K>0?"start":"end"},A.heightFn=function($,Y,K){var j=T($);return-.5*(1+Math.sin(j))*K};var M=function($){return u8(c[0]+o*Math.cos($),c[1]-o*Math.sin($))};S=function($){return M(T($))};var C=function($){var Y=T($);return M(Y)+"rotate("+-kDr(Y)+")"};if(b=Hc.calcTicks(_),x=Hc.getTickSigns(_)[2],_.visible){x=_.ticks==="inside"?-1:1;var k=(_.linewidth||1)/2;Hc.drawTicks(e,_,{vals:b,layer:h,path:"M"+x*k+",0h"+x*_.ticklen,transFn:C}),Hc.drawLabels(e,_,{vals:b,layer:h,transFn:S,labelFns:A})}var D=[l].concat(n.gauge.steps),L=f.selectAll("g.bg-arc").data(D);L.enter().append("g").classed("bg-arc",!0).append("path"),L.select("path").call(w).call(D3),L.exit().remove();var P=g(n.gauge.bar.thickness),R=f.selectAll("g.value-arc").data([n.gauge.bar]);R.enter().append("g").classed("value-arc",!0).append("path");var F=R.select("path");c8(p)?(F.transition().duration(p.duration).ease(p.easing).each("end",function(){d&&d()}).each("interrupt",function(){d&&d()}).attrTween("d",zDr(P,m(r[0].lastY),m(r[0].y))),n._lastValue=r[0].y):F.attr("d",typeof r[0].y=="number"?P.endAngle(m(r[0].y)):"M0,0Z"),F.call(D3),R.exit().remove(),D=[];var I=n.gauge.threshold.value;(I||I===0)&&D.push({range:[I,I],color:n.gauge.threshold.color,line:{color:n.gauge.threshold.line.color,width:n.gauge.threshold.line.width},thickness:n.gauge.threshold.thickness});var B=f.selectAll("g.threshold-arc").data(D);B.enter().append("g").classed("threshold-arc",!0).append("path"),B.select("path").call(w).call(D3),B.exit().remove();var O=f.selectAll("g.gauge-outline").data([u]);O.enter().append("g").classed("gauge-outline",!0).append("path"),O.select("path").call(w).call(D3),O.exit().remove()}function RDr(e,t,r,i){var n=r[0].trace,a=i.numbersX,o=i.numbersY,s=n.align||"center",l=use[s],u=i.transitionOpts,c=i.onComplete,f=Tx.ensureSingle(t,"g","numbers"),h,p,d,v=[];n._hasNumber&&v.push("number"),n._hasDelta&&(v.push("delta"),n.delta.position==="left"&&v.reverse());var m=f.selectAll("text").data(v);m.enter().append("text"),m.attr("text-anchor",function(){return l}).attr("class",function(M){return M}).attr("x",null).attr("y",null).attr("dx",null).attr("dy",null),m.exit().remove();function g(M,C,k,D){if(M.match("s")&&k>=0!=D>=0&&!C(k).slice(-1).match(bft)&&!C(D).slice(-1).match(bft)){var L=M.slice().replace("s","f").replace(/\d+/,function(R){return parseInt(R)-1}),P=l8(e,{tickformat:L});return function(R){return Math.abs(R)<1?Hc.tickText(P,R).text:C(R)}}else return C}function w(){var M=l8(e,{tickformat:n.number.valueformat},n._range);M.setScale(),Hc.prepTicks(M);var C=function(R){return Hc.tickText(M,R).text},k=n.number.suffix,D=n.number.prefix,L=f.select("text.number");function P(){var R=typeof r[0].y=="number"?D+C(r[0].y)+k:"-";L.text(R).call(F3.font,n.number.font).call(IO.convertToTspans,e)}return c8(u)?L.transition().duration(u.duration).ease(u.easing).each("end",function(){P(),c&&c()}).each("interrupt",function(){P(),c&&c()}).attrTween("text",function(){var R=L3.select(this),F=xft(r[0].lastY,r[0].y);n._lastValue=r[0].y;var I=g(n.number.valueformat,C,r[0].lastY,r[0].y);return function(B){R.text(D+I(F(B))+k)}}):P(),h=wft(D+C(r[0].y)+k,n.number.font,l,e),L}function _(){var M=l8(e,{tickformat:n.delta.valueformat},n._range);M.setScale(),Hc.prepTicks(M);var C=function(B){return Hc.tickText(M,B).text},k=n.delta.suffix,D=n.delta.prefix,L=function(B){var O=n.delta.relative?B.relativeDelta:B.delta;return O},P=function(B,O){return B===0||typeof B!="number"||isNaN(B)?"-":(B>0?n.delta.increasing.symbol:n.delta.decreasing.symbol)+D+O(B)+k},R=function(B){return B.delta>=0?n.delta.increasing.color:n.delta.decreasing.color};n._deltaLastValue===void 0&&(n._deltaLastValue=L(r[0]));var F=f.select("text.delta");F.call(F3.font,n.delta.font).call(gT.fill,R({delta:n._deltaLastValue}));function I(){F.text(P(L(r[0]),C)).call(gT.fill,R(r[0])).call(IO.convertToTspans,e)}return c8(u)?F.transition().duration(u.duration).ease(u.easing).tween("text",function(){var B=L3.select(this),O=L(r[0]),$=n._deltaLastValue,Y=g(n.delta.valueformat,C,$,O),K=xft($,O);return n._deltaLastValue=O,function(j){B.text(P(K(j),Y)),B.call(gT.fill,R({delta:K(j)}))}}).each("end",function(){I(),c&&c()}).each("interrupt",function(){I(),c&&c()}):I(),p=wft(P(L(r[0]),C),n.delta.font,l,e),F}var b=n.mode+n.align,S;if(n._hasDelta&&(S=_(),b+=n.delta.position+n.delta.font.size+n.delta.font.family+n.delta.valueformat,b+=n.delta.increasing.symbol+n.delta.decreasing.symbol,d=p),n._hasNumber&&(w(),b+=n.number.font.size+n.number.font.family+n.number.valueformat+n.number.suffix+n.number.prefix,d=h),n._hasDelta&&n._hasNumber){var x=[(h.left+h.right)/2,(h.top+h.bottom)/2],T=[(p.left+p.right)/2,(p.top+p.bottom)/2],A,y,E=.75*n.delta.font.size;n.delta.position==="left"&&(A=PO(n,"deltaPos",0,-1*(h.width*C3[n.align]+p.width*(1-C3[n.align])+E),b,Math.min),y=x[1]-T[1],d={width:h.width+p.width+E,height:Math.max(h.height,p.height),left:p.left+A,right:h.right,top:Math.min(h.top,p.top+y),bottom:Math.max(h.bottom,p.bottom+y)}),n.delta.position==="right"&&(A=PO(n,"deltaPos",0,h.width*(1-C3[n.align])+p.width*C3[n.align]+E,b,Math.max),y=x[1]-T[1],d={width:h.width+p.width+E,height:Math.max(h.height,p.height),left:h.left,right:p.right+A,top:Math.min(h.top,p.top+y),bottom:Math.max(h.bottom,p.bottom+y)}),n.delta.position==="bottom"&&(A=null,y=p.height,d={width:Math.max(h.width,p.width),height:h.height+p.height,left:Math.min(h.left,p.left),right:Math.max(h.right,p.right),top:h.bottom-h.height,bottom:h.bottom+p.height}),n.delta.position==="top"&&(A=null,y=h.top,d={width:Math.max(h.width,p.width),height:h.height+p.height,left:Math.min(h.left,p.left),right:Math.max(h.right,p.right),top:h.bottom-h.height-p.height,bottom:h.bottom}),S.attr({dx:A,dy:y})}(n._hasNumber||n._hasDelta)&&f.attr("transform",function(){var M=i.numbersScaler(d);b+=M[2];var C=PO(n,"numbersScale",1,M[0],b,Math.min),k;n._scaleNumbers||(C=1),n._isAngular?k=o-C*d.bottom:k=o-C*(d.top+d.bottom)/2,n._numbersTop=C*d.top+k;var D=d[s];s==="center"&&(D=(d.left+d.right)/2);var L=a-C*D;return L=PO(n,"numbersTranslate",0,L,b,Math.max),u8(L,k)+EDr(C)})}function D3(e){e.each(function(t){gT.stroke(L3.select(this),t.line.color)}).each(function(t){gT.fill(L3.select(this),t.color)}).style("stroke-width",function(t){return t.line.width})}function zDr(e,t,r){return function(){var i=SDr(t,r);return function(n){return e.endAngle(i(n))()}}}function l8(e,t,r){var i=e._fullLayout,n=Tx.extendFlat({type:"linear",ticks:"outside",range:r,showline:!0},t),a={type:"linear",_id:"x"+t._id},o={letter:"x",font:i.font,noAutotickangles:!0,noHover:!0,noTickson:!0};function s(l,u){return Tx.coerce(n,a,LDr,l,u)}return DDr(n,a,s,o,i),FDr(n,a,s,o),a}function _ft(e,t,r){var i=Math.min(t/e.width,r/e.height);return[i,e,t+"x"+r]}function BDr(e,t){var r=Math.sqrt(e.width/2*(e.width/2)+e.height*e.height),i=t/r;return[i,e,t]}function wft(e,t,r,i){var n=document.createElementNS("http://www.w3.org/2000/svg","text"),a=L3.select(n);return a.text(e).attr("x",0).attr("y",0).attr("text-anchor",r).attr("data-unformatted",e).call(IO.convertToTspans,i).call(F3.font,t),F3.bBox(a.node())}function PO(e,t,r,i,n,a){var o="_cache"+t;e[o]&&e[o].key===n||(e[o]={key:n,value:r});var s=Tx.aggNums(a,null,[e[o].value,i],2);return e[o].value=s,s}});var Sft=W((gui,Mft)=>{"use strict";Mft.exports={moduleType:"trace",name:"indicator",basePlotModule:sft(),categories:["svg","noOpacity","noHover"],animatable:!0,attributes:ose(),supplyDefaults:gft().supplyDefaults,calc:yft().calc,plot:Aft(),meta:{}}});var kft=W((mui,Eft)=>{"use strict";Eft.exports=Sft()});var cse=W((xui,Lft)=>{"use strict";var Cft=jy(),RO=nn().extendFlat,qDr=cs().overrideAll,Dft=jo(),ODr=fs().attributes,Fft=ws().descriptionOnlyNumbers,yui=Lft.exports=qDr({domain:ODr({name:"table",trace:!0}),columnwidth:{valType:"number",arrayOk:!0,dflt:null},columnorder:{valType:"data_array"},header:{values:{valType:"data_array",dflt:[]},format:{valType:"data_array",dflt:[],description:Fft("cell value")},prefix:{valType:"string",arrayOk:!0,dflt:null},suffix:{valType:"string",arrayOk:!0,dflt:null},height:{valType:"number",dflt:28},align:RO({},Cft.align,{arrayOk:!0}),line:{width:{valType:"number",arrayOk:!0,dflt:1},color:{valType:"color",arrayOk:!0,dflt:"grey"}},fill:{color:{valType:"color",arrayOk:!0,dflt:"white"}},font:RO({},Dft({arrayOk:!0}))},cells:{values:{valType:"data_array",dflt:[]},format:{valType:"data_array",dflt:[],description:Fft("cell value")},prefix:{valType:"string",arrayOk:!0,dflt:null},suffix:{valType:"string",arrayOk:!0,dflt:null},height:{valType:"number",dflt:20},align:RO({},Cft.align,{arrayOk:!0}),line:{width:{valType:"number",arrayOk:!0,dflt:1},color:{valType:"color",arrayOk:!0,dflt:"grey"}},fill:{color:{valType:"color",arrayOk:!0,dflt:"white"}},font:RO({},Dft({arrayOk:!0}))}},"calc","from-root")});var Ift=W((bui,Pft)=>{"use strict";var fse=it(),NDr=cse(),UDr=fs().defaults;function VDr(e,t){for(var r=e.columnorder||[],i=e.header.values.length,n=r.slice(0,i),a=n.slice().sort(function(l,u){return l-u}),o=n.map(function(l){return a.indexOf(l)}),s=o.length;s{"use strict";var GDr=J1().wrap;Rft.exports=function(){return GDr({})}});var hse={};Kn(hse,{cellPad:()=>HDr,cn:()=>f7r,columnExtentOffset:()=>jDr,columnTitleOffset:()=>$Dr,emptyHeaderHeight:()=>WDr,goldenRatio:()=>XDr,latexCheck:()=>YDr,lineBreaker:()=>ZDr,maxDimensionCount:()=>KDr,overdrag:()=>JDr,releaseTransitionDuration:()=>QDr,releaseTransitionEase:()=>e7r,scrollbarCaptureWidth:()=>t7r,scrollbarHideDelay:()=>r7r,scrollbarHideDuration:()=>i7r,scrollbarOffset:()=>n7r,scrollbarWidth:()=>a7r,transitionDuration:()=>o7r,transitionEase:()=>s7r,uplift:()=>l7r,wrapSpacer:()=>u7r,wrapSplitCharacter:()=>c7r});var HDr,jDr,$Dr,WDr,YDr,XDr,ZDr,KDr,JDr,QDr,e7r,t7r,r7r,i7r,n7r,a7r,o7r,s7r,l7r,u7r,c7r,f7r,dse=Ci(()=>{"use strict";HDr=8,jDr=10,$Dr=28,WDr=16,YDr=/^\$.*\$$/,XDr=1.618,ZDr="
",KDr=60,JDr=45,QDr=120,e7r="cubic-out",t7r=18,r7r=1e3,i7r=1e3,n7r=5,a7r=8,o7r=100,s7r="cubic-out",l7r=5,u7r=" ",c7r=" ",f7r={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"}});var jft=W((wui,Hft)=>{"use strict";var Bft=(dse(),Pt(hse)),vse=nn().extendFlat,h7r=un(),d7r=wc().isTypedArray,zO=wc().isArrayOrTypedArray;Hft.exports=function(t,r){var i=pse(r.cells.values),n=function(y){return y.slice(r.header.values.length,y.length)},a=pse(r.header.values);a.length&&!a[0].length&&(a[0]=[""],a=pse(a));var o=a.concat(n(i).map(function(){return Gft((a[0]||[""]).length)})),s=r.domain,l=Math.floor(t._fullLayout._size.w*(s.x[1]-s.x[0])),u=Math.floor(t._fullLayout._size.h*(s.y[1]-s.y[0])),c=r.header.values.length?o[0].map(function(){return r.header.height}):[Bft.emptyHeaderHeight],f=i.length?i[0].map(function(){return r.cells.height}):[],h=c.reduce(qft,0),p=u-h,d=p+Bft.uplift,v=Uft(f,d),m=Uft(c,h),g=Nft(m,[]),w=Nft(v,g),_={},b=r.columnorder;zO(b)&&(b=Array.from(b)),b=b.concat(n(i.map(function(y,E){return E})));var S=o.map(function(y,E){var M=zO(r.columnwidth)?r.columnwidth[Math.min(E,r.columnwidth.length-1)]:r.columnwidth;return h7r(M)?Number(M):1}),x=S.reduce(qft,0);S=S.map(function(y){return y/x*l});var T=Math.max(gse(r.header.line.width),gse(r.cells.line.width)),A={key:r.uid+t._context.staticPlot,translateX:s.x[0]*t._fullLayout._size.w,translateY:t._fullLayout._size.h*(1-s.y[1]),size:t._fullLayout._size,width:l,maxLineWidth:T,height:u,columnOrder:b,groupHeight:u,rowBlocks:w,headerRowBlocks:g,scrollY:0,cells:vse({},r.cells,{values:i}),headerCells:vse({},r.header,{values:o}),gdColumns:o.map(function(y){return y[0]}),gdColumnsOriginalOrder:o.map(function(y){return y[0]}),prevPages:[0,0],scrollbarState:{scrollbarScrollInProgress:!1},columns:o.map(function(y,E){var M=_[y];_[y]=(M||0)+1;var C=y+"__"+_[y];return{key:C,label:y,specIndex:E,xIndex:b[E],xScale:Oft,x:void 0,calcdata:void 0,columnWidth:S[E]}})};return A.columns.forEach(function(y){y.calcdata=A,y.x=Oft(y)}),A};function gse(e){if(zO(e)){for(var t=0,r=0;r=t||u===e.length-1)&&(r[n]=o,o.key=l++,o.firstRowIndex=s,o.lastRowIndex=u,o=Vft(),n+=a,s=u+1,a=0);return r}function Vft(){return{firstRowIndex:null,lastRowIndex:null,rows:[]}}});var $ft=W(mse=>{"use strict";var BO=nn().extendFlat;mse.splitToPanels=function(e){var t=[0,0],r=BO({},e,{key:"header",type:"header",page:0,prevPages:t,currentRepaint:[null,null],dragHandle:!0,values:e.calcdata.headerCells.values[e.specIndex],rowBlocks:e.calcdata.headerRowBlocks,calcdata:BO({},e.calcdata,{cells:e.calcdata.headerCells})}),i=BO({},e,{key:"cells1",type:"cells",page:0,prevPages:t,currentRepaint:[null,null],dragHandle:!1,values:e.calcdata.cells.values[e.specIndex],rowBlocks:e.calcdata.rowBlocks}),n=BO({},e,{key:"cells2",type:"cells",page:1,prevPages:t,currentRepaint:[null,null],dragHandle:!1,values:e.calcdata.cells.values[e.specIndex],rowBlocks:e.calcdata.rowBlocks});return[i,n,r]};mse.splitToCells=function(e){var t=p7r(e);return(e.values||[]).slice(t[0],t[1]).map(function(r,i){var n=typeof r=="string"&&r.match(/[<$&> ]/)?"_keybuster_"+Math.random():"";return{keyWithinBlock:i+n,key:t[0]+i,column:e,calcdata:e.calcdata,page:e.page,rowBlocks:e.rowBlocks,value:r}})};function p7r(e){var t=e.rowBlocks[e.page],r=t?t.rows[0].rowIndex:0,i=t?r+t.rows.length:0;return[r,i]}});var Ese=W((Aui,iht)=>{"use strict";var Ai=(dse(),Pt(hse)),Es=gi(),yse=it(),v7r=yse.numberFormat,qo=J1(),xse=en(),g7r=ho(),m7r=it().raiseToTop,hp=it().strTranslate,y7r=it().cancelTransition,x7r=jft(),Qft=$ft(),Wft=ai();iht.exports=function(t,r){var i=!t._context.staticPlot,n=t._fullLayout._paper.selectAll("."+Ai.cn.table).data(r.map(function(w){var _=qo.unwrap(w),b=_.trace;return x7r(t,b)}),qo.keyFun);n.exit().remove(),n.enter().append("g").classed(Ai.cn.table,!0).attr("overflow","visible").style("box-sizing","content-box").style("position","absolute").style("left",0).style("overflow","visible").style("shape-rendering","crispEdges").style("pointer-events","all"),n.attr("width",function(w){return w.width+w.size.l+w.size.r}).attr("height",function(w){return w.height+w.size.t+w.size.b}).attr("transform",function(w){return hp(w.translateX,w.translateY)});var a=n.selectAll("."+Ai.cn.tableControlView).data(qo.repeat,qo.keyFun),o=a.enter().append("g").classed(Ai.cn.tableControlView,!0).style("box-sizing","content-box");if(i){var s="onwheel"in document?"wheel":"mousewheel";o.on("mousemove",function(w){a.filter(function(_){return w===_}).call(f8,t)}).on(s,function(w){if(!w.scrollbarState.wheeling){w.scrollbarState.wheeling=!0;var _=w.scrollY+Es.event.deltaY,b=OO(t,a,null,_)(w);b||(Es.event.stopPropagation(),Es.event.preventDefault()),w.scrollbarState.wheeling=!1}}).call(f8,t,!0)}a.attr("transform",function(w){return hp(w.size.l,w.size.t)});var l=a.selectAll("."+Ai.cn.scrollBackground).data(qo.repeat,qo.keyFun);l.enter().append("rect").classed(Ai.cn.scrollBackground,!0).attr("fill","none"),l.attr("width",function(w){return w.width}).attr("height",function(w){return w.height}),a.each(function(w){xse.setClipUrl(Es.select(this),Yft(t,w),t)});var u=a.selectAll("."+Ai.cn.yColumn).data(function(w){return w.columns},qo.keyFun);u.enter().append("g").classed(Ai.cn.yColumn,!0),u.exit().remove(),u.attr("transform",function(w){return hp(w.x,0)}),i&&u.call(Es.behavior.drag().origin(function(w){var _=Es.select(this);return Kft(_,w,-Ai.uplift),m7r(this),w.calcdata.columnDragInProgress=!0,f8(a.filter(function(b){return w.calcdata.key===b.key}),t),w}).on("drag",function(w){var _=Es.select(this),b=function(T){return(w===T?Es.event.x:T.x)+T.columnWidth/2};w.x=Math.max(-Ai.overdrag,Math.min(w.calcdata.width+Ai.overdrag-w.columnWidth,Es.event.x));var S=eht(u).filter(function(T){return T.calcdata.key===w.calcdata.key}),x=S.sort(function(T,A){return b(T)-b(A)});x.forEach(function(T,A){T.xIndex=A,T.x=w===T?T.x:T.xScale(T)}),u.filter(function(T){return w!==T}).transition().ease(Ai.transitionEase).duration(Ai.transitionDuration).attr("transform",function(T){return hp(T.x,0)}),_.call(y7r).attr("transform",hp(w.x,-Ai.uplift))}).on("dragend",function(w){var _=Es.select(this),b=w.calcdata;w.x=w.xScale(w),w.calcdata.columnDragInProgress=!1,Kft(_,w,0),C7r(t,b,b.columns.map(function(S){return S.xIndex}))})),u.each(function(w){xse.setClipUrl(Es.select(this),Xft(t,w),t)});var c=u.selectAll("."+Ai.cn.columnBlock).data(Qft.splitToPanels,qo.keyFun);c.enter().append("g").classed(Ai.cn.columnBlock,!0).attr("id",function(w){return w.key}),c.style("cursor",function(w){return w.dragHandle?"ew-resize":w.calcdata.scrollbarState.barWiggleRoom?"ns-resize":"default"});var f=c.filter(D7r),h=c.filter(Ase);i&&h.call(Es.behavior.drag().origin(function(w){return Es.event.stopPropagation(),w}).on("drag",OO(t,a,-1)).on("dragend",function(){})),bse(t,a,f,c),bse(t,a,h,c);var p=a.selectAll("."+Ai.cn.scrollAreaClip).data(qo.repeat,qo.keyFun);p.enter().append("clipPath").classed(Ai.cn.scrollAreaClip,!0).attr("id",function(w){return Yft(t,w)});var d=p.selectAll("."+Ai.cn.scrollAreaClipRect).data(qo.repeat,qo.keyFun);d.enter().append("rect").classed(Ai.cn.scrollAreaClipRect,!0).attr("x",-Ai.overdrag).attr("y",-Ai.uplift).attr("fill","none"),d.attr("width",function(w){return w.width+2*Ai.overdrag}).attr("height",function(w){return w.height+Ai.uplift});var v=u.selectAll("."+Ai.cn.columnBoundary).data(qo.repeat,qo.keyFun);v.enter().append("g").classed(Ai.cn.columnBoundary,!0);var m=u.selectAll("."+Ai.cn.columnBoundaryClippath).data(qo.repeat,qo.keyFun);m.enter().append("clipPath").classed(Ai.cn.columnBoundaryClippath,!0),m.attr("id",function(w){return Xft(t,w)});var g=m.selectAll("."+Ai.cn.columnBoundaryRect).data(qo.repeat,qo.keyFun);g.enter().append("rect").classed(Ai.cn.columnBoundaryRect,!0).attr("fill","none"),g.attr("width",function(w){return w.columnWidth+2*qO(w)}).attr("height",function(w){return w.calcdata.height+2*qO(w)+Ai.uplift}).attr("x",function(w){return-qO(w)}).attr("y",function(w){return-qO(w)}),Mse(null,h,a)};function qO(e){return Math.ceil(e.calcdata.maxLineWidth/2)}function Yft(e,t){return"clip"+e._fullLayout._uid+"_scrollAreaBottomClip_"+t.key}function Xft(e,t){return"clip"+e._fullLayout._uid+"_columnBoundaryClippath_"+t.calcdata.key+"_"+t.specIndex}function eht(e){return[].concat.apply([],e.map(function(t){return t})).map(function(t){return t.__data__})}function f8(e,t,r){function i(u){var c=u.rowBlocks;return wse(c,c.length-1)+(c.length?NO(c[c.length-1],1/0):1)}var n=e.selectAll("."+Ai.cn.scrollbarKit).data(qo.repeat,qo.keyFun);n.enter().append("g").classed(Ai.cn.scrollbarKit,!0).style("shape-rendering","geometricPrecision"),n.each(function(u){var c=u.scrollbarState;c.totalHeight=i(u),c.scrollableAreaHeight=u.groupHeight-_se(u),c.currentlyVisibleHeight=Math.min(c.totalHeight,c.scrollableAreaHeight),c.ratio=c.currentlyVisibleHeight/c.totalHeight,c.barLength=Math.max(c.ratio*c.currentlyVisibleHeight,Ai.goldenRatio*Ai.scrollbarWidth),c.barWiggleRoom=c.currentlyVisibleHeight-c.barLength,c.wiggleRoom=Math.max(0,c.totalHeight-c.scrollableAreaHeight),c.topY=c.barWiggleRoom===0?0:u.scrollY/c.wiggleRoom*c.barWiggleRoom,c.bottomY=c.topY+c.barLength,c.dragMultiplier=c.wiggleRoom/c.barWiggleRoom}).attr("transform",function(u){var c=u.width+Ai.scrollbarWidth/2+Ai.scrollbarOffset;return hp(c,_se(u))});var a=n.selectAll("."+Ai.cn.scrollbar).data(qo.repeat,qo.keyFun);a.enter().append("g").classed(Ai.cn.scrollbar,!0);var o=a.selectAll("."+Ai.cn.scrollbarSlider).data(qo.repeat,qo.keyFun);o.enter().append("g").classed(Ai.cn.scrollbarSlider,!0),o.attr("transform",function(u){return hp(0,u.scrollbarState.topY||0)});var s=o.selectAll("."+Ai.cn.scrollbarGlyph).data(qo.repeat,qo.keyFun);s.enter().append("line").classed(Ai.cn.scrollbarGlyph,!0).attr("stroke","black").attr("stroke-width",Ai.scrollbarWidth).attr("stroke-linecap","round").attr("y1",Ai.scrollbarWidth/2),s.attr("y2",function(u){return u.scrollbarState.barLength-Ai.scrollbarWidth/2}).attr("stroke-opacity",function(u){return u.columnDragInProgress||!u.scrollbarState.barWiggleRoom||r?0:.4}),s.transition().delay(0).duration(0),s.transition().delay(Ai.scrollbarHideDelay).duration(Ai.scrollbarHideDuration).attr("stroke-opacity",0);var l=a.selectAll("."+Ai.cn.scrollbarCaptureZone).data(qo.repeat,qo.keyFun);l.enter().append("line").classed(Ai.cn.scrollbarCaptureZone,!0).attr("stroke","white").attr("stroke-opacity",.01).attr("stroke-width",Ai.scrollbarCaptureWidth).attr("stroke-linecap","butt").attr("y1",0).on("mousedown",function(u){var c=Es.event.y,f=this.getBoundingClientRect(),h=u.scrollbarState,p=c-f.top,d=Es.scale.linear().domain([0,h.scrollableAreaHeight]).range([0,h.totalHeight]).clamp(!0);h.topY<=p&&p<=h.bottomY||OO(t,e,null,d(p-h.barLength/2))(u)}).call(Es.behavior.drag().origin(function(u){return Es.event.stopPropagation(),u.scrollbarState.scrollbarScrollInProgress=!0,u}).on("drag",OO(t,e)).on("dragend",function(){})),l.attr("y2",function(u){return u.scrollbarState.scrollableAreaHeight}),t._context.staticPlot&&(s.remove(),l.remove())}function bse(e,t,r,i){var n=b7r(r),a=_7r(n);M7r(a);var o=w7r(a);E7r(o);var s=A7r(a),l=T7r(s);S7r(l),tht(l,t,i,e),Sse(a)}function b7r(e){var t=e.selectAll("."+Ai.cn.columnCells).data(qo.repeat,qo.keyFun);return t.enter().append("g").classed(Ai.cn.columnCells,!0),t.exit().remove(),t}function _7r(e){var t=e.selectAll("."+Ai.cn.columnCell).data(Qft.splitToCells,function(r){return r.keyWithinBlock});return t.enter().append("g").classed(Ai.cn.columnCell,!0),t.exit().remove(),t}function w7r(e){var t=e.selectAll("."+Ai.cn.cellRect).data(qo.repeat,function(r){return r.keyWithinBlock});return t.enter().append("rect").classed(Ai.cn.cellRect,!0),t}function T7r(e){var t=e.selectAll("."+Ai.cn.cellText).data(qo.repeat,function(r){return r.keyWithinBlock});return t.enter().append("text").classed(Ai.cn.cellText,!0).style("cursor",function(){return"auto"}).on("mousedown",function(){Es.event.stopPropagation()}),t}function A7r(e){var t=e.selectAll("."+Ai.cn.cellTextHolder).data(qo.repeat,function(r){return r.keyWithinBlock});return t.enter().append("g").classed(Ai.cn.cellTextHolder,!0).style("shape-rendering","geometricPrecision"),t}function M7r(e){e.each(function(t,r){var i=t.calcdata.cells.font,n=t.column.specIndex,a={size:Gf(i.size,n,r),color:Gf(i.color,n,r),family:Gf(i.family,n,r),weight:Gf(i.weight,n,r),style:Gf(i.style,n,r),variant:Gf(i.variant,n,r),textcase:Gf(i.textcase,n,r),lineposition:Gf(i.lineposition,n,r),shadow:Gf(i.shadow,n,r)};t.rowNumber=t.key,t.align=Gf(t.calcdata.cells.align,n,r),t.cellBorderWidth=Gf(t.calcdata.cells.line.width,n,r),t.font=a})}function S7r(e){e.each(function(t){xse.font(Es.select(this),t.font)})}function E7r(e){e.attr("width",function(t){return t.column.columnWidth}).attr("stroke-width",function(t){return t.cellBorderWidth}).each(function(t){var r=Es.select(this);Wft.stroke(r,Gf(t.calcdata.cells.line.color,t.column.specIndex,t.rowNumber)),Wft.fill(r,Gf(t.calcdata.cells.fill.color,t.column.specIndex,t.rowNumber))})}function tht(e,t,r,i){e.text(function(n){var a=n.column.specIndex,o=n.rowNumber,s=n.value,l=typeof s=="string",u=l&&s.match(/
/i),c=!l||u;n.mayHaveMarkup=l&&s.match(/[<&>]/);var f=k7r(s);n.latex=f;var h=f?"":Gf(n.calcdata.cells.prefix,a,o)||"",p=f?"":Gf(n.calcdata.cells.suffix,a,o)||"",d=f?null:Gf(n.calcdata.cells.format,a,o)||null,v=h+(d?v7r(d)(n.value):n.value)+p,m;n.wrappingNeeded=!n.wrapped&&!c&&!f&&(m=Zft(v)),n.cellHeightMayIncrease=u||f||n.mayHaveMarkup||(m===void 0?Zft(v):m),n.needsConvertToTspans=n.mayHaveMarkup||n.wrappingNeeded||n.latex;var g;if(n.wrappingNeeded){var w=Ai.wrapSplitCharacter===" "?v.replace(/n&&i.push(a),n+=l}return i}function Mse(e,t,r){var i=eht(t)[0];if(i!==void 0){var n=i.rowBlocks,a=i.calcdata,o=wse(n,n.length),s=i.calcdata.groupHeight-_se(i),l=a.scrollY=Math.max(0,Math.min(o-s,a.scrollY)),u=F7r(n,l,s);u.length===1&&(u[0]===n.length-1?u.unshift(u[0]-1):u.push(u[0]+1)),u[0]%2&&u.reverse(),t.each(function(c,f){c.page=u[f],c.scrollY=l}),t.attr("transform",function(c){var f=wse(c.rowBlocks,c.page)-c.scrollY;return hp(0,f)}),e&&(Jft(e,r,t,u,i.prevPages,i,0),Jft(e,r,t,u,i.prevPages,i,1),f8(r,e))}}function OO(e,t,r,i){return function(a){var o=a.calcdata?a.calcdata:a,s=t.filter(function(f){return o.key===f.key}),l=r||o.scrollbarState.dragMultiplier,u=o.scrollY;o.scrollY=i===void 0?o.scrollY+l*Es.event.dy:i;var c=s.selectAll("."+Ai.cn.yColumn).selectAll("."+Ai.cn.columnBlock).filter(Ase);return Mse(e,c,s),o.scrollY===u}}function Jft(e,t,r,i,n,a,o){var s=i[o]!==n[o];s&&(clearTimeout(a.currentRepaint[o]),a.currentRepaint[o]=setTimeout(function(){var l=r.filter(function(u,c){return c===o&&i[c]!==n[c]});bse(e,t,l,r),n[o]=i[o]}))}function L7r(e,t,r,i){return function(){var a=Es.select(t.parentNode);a.each(function(o){var s=o.fragments;a.selectAll("tspan.line").each(function(v,m){s[m].width=this.getComputedTextLength()});var l=s[s.length-1].width,u=s.slice(0,-1),c=[],f,h,p=0,d=o.column.columnWidth-2*Ai.cellPad;for(o.value="";u.length;)f=u.shift(),h=f.width+l,p+h>d&&(o.value+=c.join(Ai.wrapSpacer)+Ai.lineBreaker,c=[],p=0),c.push(f.text),p+=h;p&&(o.value+=c.join(Ai.wrapSpacer)),o.wrapped=!0}),a.selectAll("tspan.line").remove(),tht(a.select("."+Ai.cn.cellText),r,e,i),Es.select(t.parentNode.parentNode).call(Sse)}}function P7r(e,t,r,i,n){return function(){if(!n.settledY){var o=Es.select(t.parentNode),s=Tse(n),l=n.key-s.firstRowIndex,u=s.rows[l].rowHeight,c=n.cellHeightMayIncrease?t.parentNode.getBoundingClientRect().height+2*Ai.cellPad:u,f=Math.max(c,u),h=f-s.rows[l].rowHeight;h&&(s.rows[l].rowHeight=f,e.selectAll("."+Ai.cn.columnCell).call(Sse),Mse(null,e.filter(Ase),0),f8(r,i,!0)),o.attr("transform",function(){var p=this,d=p.parentNode,v=d.getBoundingClientRect(),m=Es.select(p.parentNode).select("."+Ai.cn.cellRect).node().getBoundingClientRect(),g=p.transform.baseVal.consolidate(),w=m.top-v.top+(g?g.matrix.f:Ai.cellPad);return hp(rht(n,Es.select(p.parentNode).select("."+Ai.cn.cellTextHolder).node().getBoundingClientRect().width),w)}),n.settledY=!0}}}function rht(e,t){switch(e.align){case"left":return Ai.cellPad;case"right":return e.column.columnWidth-(t||0)-Ai.cellPad;case"center":return(e.column.columnWidth-(t||0))/2;default:return Ai.cellPad}}function Sse(e){e.attr("transform",function(t){var r=t.rowBlocks[0].auxiliaryBlocks.reduce(function(o,s){return o+NO(s,1/0)},0),i=Tse(t),n=NO(i,t.key),a=n+r;return hp(0,a)}).selectAll("."+Ai.cn.cellRect).attr("height",function(t){return R7r(Tse(t),t.key).rowHeight})}function wse(e,t){for(var r=0,i=t-1;i>=0;i--)r+=I7r(e[i]);return r}function NO(e,t){for(var r=0,i=0;i{"use strict";var z7r=Ac().getModuleCalcData,B7r=Ese(),UO="table";VO.name=UO;VO.plot=function(e){var t=z7r(e.calcdata,UO)[0];t.length&&B7r(e,t)};VO.clean=function(e,t,r,i){var n=i._has&&i._has(UO),a=t._has&&t._has(UO);n&&!a&&i._paperdiv.selectAll(".table").remove()}});var oht=W((Sui,aht)=>{"use strict";aht.exports={attributes:cse(),supplyDefaults:Ift(),calc:zft(),plot:Ese(),moduleType:"trace",name:"table",basePlotModule:nht(),categories:["noOpacity"],meta:{}}});var lht=W((Eui,sht)=>{"use strict";sht.exports=oht()});var dht=W((kui,hht)=>{"use strict";var uht=jo(),cht=jl(),kse=nc(),q7r=ws().descriptionWithDates,O7r=cs().overrideAll,fht=Ru().dash,Cse=nn().extendFlat;hht.exports={color:{valType:"color",editType:"calc"},smoothing:{valType:"number",dflt:1,min:0,max:1.3,editType:"calc"},title:{text:{valType:"string",dflt:"",editType:"calc"},font:uht({editType:"calc"}),offset:{valType:"number",dflt:10,editType:"calc"},editType:"calc"},type:{valType:"enumerated",values:["-","linear","date","category"],dflt:"-",editType:"calc"},autotypenumbers:kse.autotypenumbers,autorange:{valType:"enumerated",values:[!0,!1,"reversed"],dflt:!0,editType:"calc"},rangemode:{valType:"enumerated",values:["normal","tozero","nonnegative"],dflt:"normal",editType:"calc"},range:{valType:"info_array",editType:"calc",items:[{valType:"any",editType:"calc"},{valType:"any",editType:"calc"}]},fixedrange:{valType:"boolean",dflt:!1,editType:"calc"},cheatertype:{valType:"enumerated",values:["index","value"],dflt:"value",editType:"calc"},tickmode:{valType:"enumerated",values:["linear","array"],dflt:"array",editType:"calc"},nticks:{valType:"integer",min:0,dflt:0,editType:"calc"},tickvals:{valType:"data_array",editType:"calc"},ticktext:{valType:"data_array",editType:"calc"},showticklabels:{valType:"enumerated",values:["start","end","both","none"],dflt:"start",editType:"calc"},labelalias:Cse({},kse.labelalias,{editType:"calc"}),tickfont:uht({editType:"calc"}),tickangle:{valType:"angle",dflt:"auto",editType:"calc"},tickprefix:{valType:"string",dflt:"",editType:"calc"},showtickprefix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"calc"},ticksuffix:{valType:"string",dflt:"",editType:"calc"},showticksuffix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"calc"},showexponent:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"calc"},exponentformat:{valType:"enumerated",values:["none","e","E","power","SI","B","SI extended"],dflt:"B",editType:"calc"},minexponent:{valType:"number",dflt:3,min:0,editType:"calc"},separatethousands:{valType:"boolean",dflt:!1,editType:"calc"},tickformat:{valType:"string",dflt:"",editType:"calc",description:q7r("tick label")},tickformatstops:O7r(kse.tickformatstops,"calc","from-root"),categoryorder:{valType:"enumerated",values:["trace","category ascending","category descending","array"],dflt:"trace",editType:"calc"},categoryarray:{valType:"data_array",editType:"calc"},labelpadding:{valType:"integer",dflt:10,editType:"calc"},labelprefix:{valType:"string",editType:"calc"},labelsuffix:{valType:"string",dflt:"",editType:"calc"},showline:{valType:"boolean",dflt:!1,editType:"calc"},linecolor:{valType:"color",dflt:cht.defaultLine,editType:"calc"},linewidth:{valType:"number",min:0,dflt:1,editType:"calc"},gridcolor:{valType:"color",editType:"calc"},gridwidth:{valType:"number",min:0,dflt:1,editType:"calc"},griddash:Cse({},fht,{editType:"calc"}),showgrid:{valType:"boolean",dflt:!0,editType:"calc"},minorgridcount:{valType:"integer",min:0,dflt:0,editType:"calc"},minorgridwidth:{valType:"number",min:0,dflt:1,editType:"calc"},minorgriddash:Cse({},fht,{editType:"calc"}),minorgridcolor:{valType:"color",dflt:cht.lightLine,editType:"calc"},startline:{valType:"boolean",editType:"calc"},startlinecolor:{valType:"color",editType:"calc"},startlinewidth:{valType:"number",dflt:1,editType:"calc"},endline:{valType:"boolean",editType:"calc"},endlinewidth:{valType:"number",dflt:1,editType:"calc"},endlinecolor:{valType:"color",editType:"calc"},tick0:{valType:"number",min:0,dflt:0,editType:"calc"},dtick:{valType:"number",min:0,dflt:1,editType:"calc"},arraytick0:{valType:"integer",min:0,dflt:0,editType:"calc"},arraydtick:{valType:"integer",min:1,dflt:1,editType:"calc"},editType:"calc"}});var HO=W((Cui,ght)=>{"use strict";var N7r=jo(),pht=dht(),vht=jl(),GO=N7r({editType:"calc"}),U7r=Hs().zorder;GO.family.dflt='"Open Sans", verdana, arial, sans-serif';GO.size.dflt=12;GO.color.dflt=vht.defaultLine;ght.exports={carpet:{valType:"string",editType:"calc"},x:{valType:"data_array",editType:"calc+clearAxisTypes"},y:{valType:"data_array",editType:"calc+clearAxisTypes"},a:{valType:"data_array",editType:"calc"},a0:{valType:"number",dflt:0,editType:"calc"},da:{valType:"number",dflt:1,editType:"calc"},b:{valType:"data_array",editType:"calc"},b0:{valType:"number",dflt:0,editType:"calc"},db:{valType:"number",dflt:1,editType:"calc"},cheaterslope:{valType:"number",dflt:1,editType:"calc"},aaxis:pht,baxis:pht,font:GO,color:{valType:"color",dflt:vht.defaultLine,editType:"plot"},zorder:U7r}});var xht=W((Dui,yht)=>{"use strict";var mht=it().isArray1D;yht.exports=function(t,r,i){var n=i("x"),a=n&&n.length,o=i("y"),s=o&&o.length;if(!a&&!s)return!1;if(r._cheater=!n,(!a||mht(n))&&(!s||mht(o))){var l=a?n.length:1/0;s&&(l=Math.min(l,o.length)),r.a&&r.a.length&&(l=Math.min(l,r.a.length)),r.b&&r.b.length&&(l=Math.min(l,r.b.length)),r._length=l}else r._length=null;return!0}});var wht=W((Fui,_ht)=>{"use strict";var V7r=HO(),bht=ai().addOpacity,G7r=xi(),h8=it(),H7r=lb(),j7r=Cy(),$7r=Dy(),W7r=XF(),Y7r=f1(),X7r=Lw();_ht.exports=function(t,r,i){var n=i.letter,a=i.font||{},o=V7r[n+"axis"];function s(y,E){return h8.coerce(t,r,o,y,E)}function l(y,E){return h8.coerce2(t,r,o,y,E)}i.name&&(r._name=i.name,r._id=i.name),s("autotypenumbers",i.autotypenumbersDflt);var u=s("type");if(u==="-"&&(i.data&&Z7r(r,i.data),r.type==="-"?r.type="linear":u=t.type=r.type),s("smoothing"),s("cheatertype"),s("showticklabels"),s("labelprefix",n+" = "),s("labelsuffix"),s("showtickprefix"),s("showticksuffix"),s("separatethousands"),s("tickformat"),s("exponentformat"),s("minexponent"),s("showexponent"),s("categoryorder"),s("tickmode"),s("tickvals"),s("ticktext"),s("tick0"),s("dtick"),r.tickmode==="array"&&(s("arraytick0"),s("arraydtick")),s("labelpadding"),r._hovertitle=n,u==="date"){var c=G7r.getComponentMethod("calendars","handleDefaults");c(t,r,"calendar",i.calendar)}Y7r(r,i.fullLayout),r.c2p=h8.identity;var f=s("color",i.dfltColor),h=f===t.color?f:a.color,p=s("title.text");p&&(h8.coerceFont(s,"title.font",a,{overrideDflt:{size:h8.bigFont(a.size),color:h}}),s("title.offset")),s("tickangle");var d=s("autorange",!r.isValidRange(t.range));d&&s("rangemode"),s("range"),r.cleanRange(),s("fixedrange"),H7r(t,r,s,u),$7r(t,r,s,u,i),j7r(t,r,s,u,i),W7r(t,r,s,{data:i.data,dataAttr:n});var v=s("gridcolor",bht(f,.3)),m=l("gridwidth"),g=l("griddash"),w=s("showgrid");w||(delete r.gridcolor,delete r.gridwidth,delete r.griddash);var _=l("startlinecolor",f),b=l("startlinewidth",m),S=s("startline",r.showgrid||!!_||!!b);S||(delete r.startlinecolor,delete r.startlinewidth);var x=l("endlinecolor",f),T=l("endlinewidth",m),A=s("endline",r.showgrid||!!x||!!T);return A||(delete r.endlinecolor,delete r.endlinewidth),w?(s("minorgridcount"),s("minorgridwidth",m),s("minorgriddash",g),s("minorgridcolor",bht(v,.06)),r.minorgridcount||(delete r.minorgridwidth,delete r.minorgriddash,delete r.minorgridcolor)):(delete r.gridcolor,delete r.gridwidth,delete r.griddash),r.showticklabels==="none"&&(delete r.tickfont,delete r.tickangle,delete r.showexponent,delete r.exponentformat,delete r.minexponent,delete r.tickformat,delete r.showticksuffix,delete r.showtickprefix),r.showticksuffix||delete r.ticksuffix,r.showtickprefix||delete r.tickprefix,s("tickmode"),r};function Z7r(e,t){if(e.type==="-"){var r=e._id,i=r.charAt(0),n=i+"calendar",a=e[n];e.type=X7r(t,a,{autotypenumbers:e.autotypenumbers})}}});var Aht=W((Lui,Tht)=>{"use strict";var K7r=wht(),J7r=Ia();Tht.exports=function(t,r,i,n,a){var o=n("a");o||(n("da"),n("a0"));var s=n("b");s||(n("db"),n("b0")),Q7r(t,r,i,a)};function Q7r(e,t,r,i){var n=["aaxis","baxis"];n.forEach(function(a){var o=a.charAt(0),s=e[a]||{},l=J7r.newContainer(t,a),u={noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0,noTicklabelstep:!0,tickfont:"x",id:o+"axis",letter:o,font:t.font,name:a,data:e[o],calendar:t.calendar,dfltColor:i,bgColor:r.paper_bgcolor,autotypenumbersDflt:r.autotypenumbers,fullLayout:r};K7r(s,l,u),l._categories=l._categories||[],!e[a]&&s.type!=="-"&&(e[a]={type:s.type})})}});var Eht=W((Pui,Sht)=>{"use strict";var Mht=it(),eFr=xht(),tFr=Aht(),rFr=HO(),iFr=jl();Sht.exports=function(t,r,i,n){function a(l,u){return Mht.coerce(t,r,rFr,l,u)}r._clipPathId="clip"+r.uid+"carpet";var o=a("color",iFr.defaultLine);if(Mht.coerceFont(a,"font",n.font),a("carpet"),tFr(t,r,n,a,o),!r.a||!r.b){r.visible=!1;return}r.a.length<3&&(r.aaxis.smoothing=0),r.b.length<3&&(r.baxis.smoothing=0);var s=eFr(t,r,a);s||(r.visible=!1),r._cheater&&a("cheaterslope"),a("zorder")}});var Dse=W((Iui,kht)=>{"use strict";var nFr=it().isArrayOrTypedArray;kht.exports=function(t,r,i){var n;for(nFr(t)?t.length>r.length&&(t=t.slice(0,r.length)):t=[],n=0;n{"use strict";Cht.exports=function(t,r,i){if(t.length===0)return"";var n,a=[],o=i?3:1;for(n=0;n{"use strict";Dht.exports=function(t,r,i,n,a,o){var s=a[0]*t.dpdx(r),l=a[1]*t.dpdy(i),u=1,c=1;if(o){var f=Math.sqrt(a[0]*a[0]+a[1]*a[1]),h=Math.sqrt(o[0]*o[0]+o[1]*o[1]),p=(a[0]*o[0]+a[1]*o[1])/f/h;c=Math.max(0,p)}var d=Math.atan2(l,s)*180/Math.PI;return d<-90?(d+=180,u=-u):d>90&&(d-=180,u=-u),{angle:d,flip:u,p:t.c2p(n,r,i),offsetMultplier:c}}});var Oht=W((Bui,qht)=>{"use strict";var YO=gi(),jO=en(),$O=Dse(),Iht=Fse(),d8=Fht(),Lse=ho(),o0=it(),Rht=o0.strRotate,WO=o0.strTranslate,zht=(Xl(),Pt(Yl));qht.exports=function(t,r,i,n){var a=t._context.staticPlot,o=r.xaxis,s=r.yaxis,l=t._fullLayout,u=l._clips;o0.makeTraceGroups(n,i,"trace").each(function(c){var f=YO.select(this),h=c[0],p=h.trace,d=p.aaxis,v=p.baxis,m=o0.ensureSingle(f,"g","minorlayer"),g=o0.ensureSingle(f,"g","majorlayer"),w=o0.ensureSingle(f,"g","boundarylayer"),_=o0.ensureSingle(f,"g","labellayer");f.style("opacity",p.opacity),mT(o,s,g,d,"a",d._gridlines,!0,a),mT(o,s,g,v,"b",v._gridlines,!0,a),mT(o,s,m,d,"a",d._minorgridlines,!0,a),mT(o,s,m,v,"b",v._minorgridlines,!0,a),mT(o,s,w,d,"a-boundary",d._boundarylines,a),mT(o,s,w,v,"b-boundary",v._boundarylines,a);var b=Lht(t,o,s,p,h,_,d._labels,"a-label"),S=Lht(t,o,s,p,h,_,v._labels,"b-label");oFr(t,_,p,h,o,s,b,S),aFr(p,h,u,o,s)})};function aFr(e,t,r,i,n){var a,o,s,l,u=r.select("#"+e._clipPathId);u.size()||(u=r.append("clipPath").classed("carpetclip",!0));var c=o0.ensureSingle(u,"path","carpetboundary"),f=t.clipsegments,h=[];for(l=0;l0?"start":"end","data-notex":1}).call(jO.font,f.font).text(f.text).call(Lse.convertToTspans,e),g=jO.bBox(this);m.attr("transform",WO(p.p[0],p.p[1])+Rht(p.angle)+WO(f.axis.labelpadding*v,g.height*.3)),u=Math.max(u,g.width+f.axis.labelpadding)}),l.exit().remove(),c.maxExtent=u,c}function oFr(e,t,r,i,n,a,o,s){var l,u,c,f,h=o0.aggNums(Math.min,null,r.a),p=o0.aggNums(Math.max,null,r.a),d=o0.aggNums(Math.min,null,r.b),v=o0.aggNums(Math.max,null,r.b);l=.5*(h+p),u=d,c=r.ab2xy(l,u,!0),f=r.dxyda_rough(l,u),o.angle===void 0&&o0.extendFlat(o,d8(r,n,a,c,r.dxydb_rough(l,u))),Pht(e,t,r,i,c,f,r.aaxis,n,a,o,"a-title"),l=h,u=.5*(d+v),c=r.ab2xy(l,u,!0),f=r.dxydb_rough(l,u),s.angle===void 0&&o0.extendFlat(s,d8(r,n,a,c,r.dxyda_rough(l,u))),Pht(e,t,r,i,c,f,r.baxis,n,a,s,"b-title")}var Bht=zht.LINE_SPACING,sFr=(1-zht.MID_SHIFT)/Bht+1;function Pht(e,t,r,i,n,a,o,s,l,u,c){var f=[];o.title.text&&f.push(o.title.text);var h=t.selectAll("text."+c).data(f),p=u.maxExtent;h.enter().append("text").classed(c,!0),h.each(function(){var d=d8(r,s,l,n,a);["start","both"].indexOf(o.showticklabels)===-1&&(p=0);var v=o.title.font.size;p+=v+o.title.offset;var m=u.angle+(u.flip<0?180:0),g=(m-d.angle+450)%360,w=g>90&&g<270,_=YO.select(this);_.text(o.title.text).call(Lse.convertToTspans,e),w&&(p=(-Lse.lineCount(_)+sFr)*Bht*v-p),_.attr("transform",WO(d.p[0],d.p[1])+Rht(d.angle)+WO(0,p)).attr("text-anchor","middle").call(jO.font,o.title.font)}),h.exit().remove()}});var Uht=W((qui,Nht)=>{"use strict";var XO=it().isArrayOrTypedArray;Nht.exports=function(e,t,r){var i,n,a,o,s,l,u=[],c=XO(e)?e.length:e,f=XO(t)?t.length:t,h=XO(e)?e:null,p=XO(t)?t:null;h&&(a=(h.length-1)/(h[h.length-1]-h[0])/(c-1)),p&&(o=(p.length-1)/(p[p.length-1]-p[0])/(f-1));var d,v=1/0,m=-1/0;for(n=0;n{"use strict";var Vht=it().isArrayOrTypedArray;Hht.exports=function(e){return Ght(e,0)};function Ght(e,t){if(!Vht(e)||t>=10)return null;for(var r=1/0,i=-1/0,n=e.length,a=0;a{"use strict";var lFr=Wi(),Ax=nn().extendFlat;$ht.exports=function(t,r,i){var n,a,o,s,l,u,c,f,h,p,d,v,m,g,w=t["_"+r],_=t[r+"axis"],b=_._gridlines=[],S=_._minorgridlines=[],x=_._boundarylines=[],T=t["_"+i],A=t[i+"axis"];_.tickmode==="array"&&(_.tickvals=w.slice());var y=t._xctrl,E=t._yctrl,M=y[0].length,C=y.length,k=t._a.length,D=t._b.length;lFr.prepTicks(_),_.tickmode==="array"&&delete _.tickvals;var L=_.smoothing?3:1;function P(F){var I,B,O,$,Y,K,j,q,Q,U,V,X,G=[],H=[],J={};if(r==="b")for(B=t.b2j(F),O=Math.floor(Math.max(0,Math.min(D-2,B))),$=B-O,J.length=D,J.crossLength=k,J.xy=function(te){return t.evalxy([],te,B)},J.dxy=function(te,ue){return t.dxydi([],te,O,ue,$)},I=0;I0&&(Q=t.dxydi([],I-1,O,0,$),G.push(Y[0]+Q[0]/3),H.push(Y[1]+Q[1]/3),U=t.dxydi([],I-1,O,1,$),G.push(q[0]-U[0]/3),H.push(q[1]-U[1]/3)),G.push(q[0]),H.push(q[1]),Y=q;else for(I=t.a2i(F),K=Math.floor(Math.max(0,Math.min(k-2,I))),j=I-K,J.length=k,J.crossLength=D,J.xy=function(te){return t.evalxy([],I,te)},J.dxy=function(te,ue){return t.dxydj([],K,te,j,ue)},B=0;B0&&(V=t.dxydj([],K,B-1,j,0),G.push(Y[0]+V[0]/3),H.push(Y[1]+V[1]/3),X=t.dxydj([],K,B-1,j,1),G.push(q[0]-X[0]/3),H.push(q[1]-X[1]/3)),G.push(q[0]),H.push(q[1]),Y=q;return J.axisLetter=r,J.axis=_,J.crossAxis=A,J.value=F,J.constvar=i,J.index=f,J.x=G,J.y=H,J.smoothing=A.smoothing,J}function R(F){var I,B,O,$,Y,K=[],j=[],q={};if(q.length=w.length,q.crossLength=T.length,r==="b")for(O=Math.max(0,Math.min(D-2,F)),Y=Math.min(1,Math.max(0,F-O)),q.xy=function(Q){return t.evalxy([],Q,F)},q.dxy=function(Q,U){return t.dxydi([],Q,O,U,Y)},I=0;Iw.length-1)&&b.push(Ax(R(a),{color:_.gridcolor,width:_.gridwidth,dash:_.griddash}));for(f=u;fw.length-1)&&!(d<0||d>w.length-1))for(v=w[o],m=w[d],n=0;n<_.minorgridcount;n++)g=d-o,!(g<=0)&&(p=v+(m-v)*(n+1)/(_.minorgridcount+1)*(_.arraydtick/g),!(pw[w.length-1])&&S.push(Ax(P(p),{color:_.minorgridcolor,width:_.minorgridwidth,dash:_.minorgriddash})));_.startline&&x.push(Ax(R(0),{color:_.startlinecolor,width:_.startlinewidth})),_.endline&&x.push(Ax(R(w.length-1),{color:_.endlinecolor,width:_.endlinewidth}))}else{for(s=5e-15,l=[Math.floor((w[w.length-1]-_.tick0)/_.dtick*(1+s)),Math.ceil((w[0]-_.tick0)/_.dtick/(1+s))].sort(function(F,I){return F-I}),u=l[0],c=l[1],f=u;f<=c;f++)h=_.tick0+_.dtick*f,b.push(Ax(P(h),{color:_.gridcolor,width:_.gridwidth,dash:_.griddash}));for(f=u-1;fw[w.length-1])&&S.push(Ax(P(p),{color:_.minorgridcolor,width:_.minorgridwidth,dash:_.minorgriddash}));_.startline&&x.push(Ax(P(w[0]),{color:_.startlinecolor,width:_.startlinewidth})),_.endline&&x.push(Ax(P(w[w.length-1]),{color:_.endlinecolor,width:_.endlinewidth}))}}});var Kht=W((Uui,Zht)=>{"use strict";var Yht=Wi(),Xht=nn().extendFlat;Zht.exports=function(t,r){var i,n,a,o,s,l=r._labels=[],u=r._gridlines;for(i=0;i{"use strict";Jht.exports=function(t,r,i,n){var a,o,s,l=[],u=!!i.smoothing,c=!!n.smoothing,f=t[0].length-1,h=t.length-1;for(a=0,o=[],s=[];a<=f;a++)o[a]=t[0][a],s[a]=r[0][a];for(l.push({x:o,y:s,bicubic:u}),a=0,o=[],s=[];a<=h;a++)o[a]=t[a][f],s[a]=r[a][f];for(l.push({x:o,y:s,bicubic:c}),a=f,o=[],s=[];a>=0;a--)o[f-a]=t[h][a],s[f-a]=r[h][a];for(l.push({x:o,y:s,bicubic:u}),a=h,o=[],s=[];a>=0;a--)o[h-a]=t[a][0],s[h-a]=r[a][0];return l.push({x:o,y:s,bicubic:c}),l}});var t0t=W((Gui,e0t)=>{"use strict";var uFr=it();e0t.exports=function(t,r,i){var n,a,o,s=[],l=[],u=t[0].length,c=t.length;function f(O,$){var Y=0,K,j=0;return O>0&&(K=t[$][O-1])!==void 0&&(j++,Y+=K),O0&&(K=t[$-1][O])!==void 0&&(j++,Y+=K),$0&&a0&&nA);return uFr.log("Smoother converged to",y,"after",M,"iterations"),t}});var r0t={};Kn(r0t,{RELATIVE_CULL_TOLERANCE:()=>cFr});var cFr,i0t=Ci(()=>{"use strict";cFr=1e-6});var o0t=W((Hui,a0t)=>{"use strict";var n0t=.5;a0t.exports=function(t,r,i,n){var a=t[0]-r[0],o=t[1]-r[1],s=i[0]-r[0],l=i[1]-r[1],u=Math.pow(a*a+o*o,n0t/2),c=Math.pow(s*s+l*l,n0t/2),f=(c*c*a-u*u*s)*n,h=(c*c*o-u*u*l)*n,p=c*(u+c)*3,d=u*(u+c)*3;return[[r[0]+(p&&f/p),r[1]+(p&&h/p)],[r[0]-(d&&f/d),r[1]-(d&&h/d)]]}});var l0t=W((jui,s0t)=>{"use strict";var Pse=o0t(),ZO=it().ensureArray;function yT(e,t,r){var i=-.5*r[0]+1.5*t[0],n=-.5*r[1]+1.5*t[1];return[(2*i+e[0])/3,(2*n+e[1])/3]}s0t.exports=function(t,r,i,n,a,o){var s,l,u,c,f,h,p,d,v,m,g=i[0].length,w=i.length,_=a?3*g-2:g,b=o?3*w-2:w;for(t=ZO(t,b),r=ZO(r,b),u=0;u{"use strict";u0t.exports=function(e,t,r,i,n){var a=t-2,o=r-2;return i&&n?function(s,l,u){s||(s=[]);var c,f,h,p,d,v,m=Math.max(0,Math.min(Math.floor(l),a)),g=Math.max(0,Math.min(Math.floor(u),o)),w=Math.max(0,Math.min(1,l-m)),_=Math.max(0,Math.min(1,u-g));m*=3,g*=3;var b=w*w,S=b*w,x=1-w,T=x*x,A=T*x,y=_*_,E=y*_,M=1-_,C=M*M,k=C*M;for(v=0;v{"use strict";f0t.exports=function(e,t,r){return t&&r?function(i,n,a,o,s){i||(i=[]);var l,u,c,f,h,p;n*=3,a*=3;var d=o*o,v=1-o,m=v*v,g=v*o*2,w=-3*m,_=3*(m-g),b=3*(g-d),S=3*d,x=s*s,T=x*s,A=1-s,y=A*A,E=y*A;for(p=0;p{"use strict";d0t.exports=function(e,t,r){return t&&r?function(i,n,a,o,s){i||(i=[]);var l,u,c,f,h,p;n*=3,a*=3;var d=o*o,v=d*o,m=1-o,g=m*m,w=g*m,_=s*s,b=1-s,S=b*b,x=b*s*2,T=-3*S,A=3*(S-x),y=3*(x-_),E=3*_;for(p=0;p{"use strict";var v0t=(i0t(),Pt(r0t)),g0t=AD().findBin,fFr=l0t(),hFr=c0t(),dFr=h0t(),pFr=p0t();m0t.exports=function(t){var r=t._a,i=t._b,n=r.length,a=i.length,o=t.aaxis,s=t.baxis,l=r[0],u=r[n-1],c=i[0],f=i[a-1],h=r[r.length-1]-r[0],p=i[i.length-1]-i[0],d=h*v0t.RELATIVE_CULL_TOLERANCE,v=p*v0t.RELATIVE_CULL_TOLERANCE;l-=d,u+=d,c-=v,f+=v,t.isVisible=function(m,g){return m>l&&mc&&gu||gf},t.setScale=function(){var m=t._x,g=t._y,w=fFr(t._xctrl,t._yctrl,m,g,o.smoothing,s.smoothing);t._xctrl=w[0],t._yctrl=w[1],t.evalxy=hFr([t._xctrl,t._yctrl],n,a,o.smoothing,s.smoothing),t.dxydi=dFr([t._xctrl,t._yctrl],o.smoothing,s.smoothing),t.dxydj=pFr([t._xctrl,t._yctrl],o.smoothing,s.smoothing)},t.i2a=function(m){var g=Math.max(0,Math.floor(m[0]),n-2),w=m[0]-g;return(1-w)*r[g]+w*r[g+1]},t.j2b=function(m){var g=Math.max(0,Math.floor(m[1]),n-2),w=m[1]-g;return(1-w)*i[g]+w*i[g+1]},t.ij2ab=function(m){return[t.i2a(m[0]),t.j2b(m[1])]},t.a2i=function(m){var g=Math.max(0,Math.min(g0t(m,r),n-2)),w=r[g],_=r[g+1];return Math.max(0,Math.min(n-1,g+(m-w)/(_-w)))},t.b2j=function(m){var g=Math.max(0,Math.min(g0t(m,i),a-2)),w=i[g],_=i[g+1];return Math.max(0,Math.min(a-1,g+(m-w)/(_-w)))},t.ab2ij=function(m){return[t.a2i(m[0]),t.b2j(m[1])]},t.i2c=function(m,g){return t.evalxy([],m,g)},t.ab2xy=function(m,g,w){if(!w&&(mr[n-1]|gi[a-1]))return[!1,!1];var _=t.a2i(m),b=t.b2j(g),S=t.evalxy([],_,b);if(w){var x=0,T=0,A=[],y,E,M,C;mr[n-1]?(y=n-2,E=1,x=(m-r[n-1])/(r[n-1]-r[n-2])):(y=Math.max(0,Math.min(n-2,Math.floor(_))),E=_-y),gi[a-1]?(M=a-2,C=1,T=(g-i[a-1])/(i[a-1]-i[a-2])):(M=Math.max(0,Math.min(a-2,Math.floor(b))),C=b-M),x&&(t.dxydi(A,y,M,E,C),S[0]+=A[0]*x,S[1]+=A[1]*x),T&&(t.dxydj(A,y,M,E,C),S[0]+=A[0]*T,S[1]+=A[1]*T)}return S},t.c2p=function(m,g,w){return[g.c2p(m[0]),w.c2p(m[1])]},t.p2x=function(m,g,w){return[g.p2c(m[0]),w.p2c(m[1])]},t.dadi=function(m){var g=Math.max(0,Math.min(r.length-2,m));return r[g+1]-r[g]},t.dbdj=function(m){var g=Math.max(0,Math.min(i.length-2,m));return i[g+1]-i[g]},t.dxyda=function(m,g,w,_){var b=t.dxydi(null,m,g,w,_),S=t.dadi(m,w);return[b[0]/S,b[1]/S]},t.dxydb=function(m,g,w,_){var b=t.dxydj(null,m,g,w,_),S=t.dbdj(g,_);return[b[0]/S,b[1]/S]},t.dxyda_rough=function(m,g,w){var _=h*(w||.1),b=t.ab2xy(m+_,g,!0),S=t.ab2xy(m-_,g,!0);return[(b[0]-S[0])*.5/_,(b[1]-S[1])*.5/_]},t.dxydb_rough=function(m,g,w){var _=p*(w||.1),b=t.ab2xy(m,g+_,!0),S=t.ab2xy(m,g-_,!0);return[(b[0]-S[0])*.5/_,(b[1]-S[1])*.5/_]},t.dpdx=function(m){return m._m},t.dpdy=function(m){return m._m}}});var S0t=W((Zui,M0t)=>{"use strict";var KO=Wi(),x0t=it().isArray1D,vFr=Uht(),b0t=jht(),_0t=Wht(),w0t=Kht(),gFr=Qht(),T0t=ZL(),A0t=t0t(),mFr=YL(),yFr=y0t();M0t.exports=function(t,r){var i=KO.getFromId(t,r.xaxis),n=KO.getFromId(t,r.yaxis),a=r.aaxis,o=r.baxis,s=r.x,l=r.y,u=[];s&&x0t(s)&&u.push("x"),l&&x0t(l)&&u.push("y"),u.length&&mFr(r,a,o,"a","b",u);var c=r._a=r._a||r.a,f=r._b=r._b||r.b;s=r._x||r.x,l=r._y||r.y;var h={};if(r._cheater){var p=a.cheatertype==="index"?c.length:c,d=o.cheatertype==="index"?f.length:f;s=vFr(p,d,r.cheaterslope)}r._x=s=T0t(s),r._y=l=T0t(l),A0t(s,c,f),A0t(l,c,f),yFr(r),r.setScale();var v=b0t(s),m=b0t(l),g=.5*(v[1]-v[0]),w=.5*(v[1]+v[0]),_=.5*(m[1]-m[0]),b=.5*(m[1]+m[0]),S=1.3;return v=[w-g*S,w+g*S],m=[b-_*S,b+_*S],r._extremes[i._id]=KO.findExtremes(i,v,{padded:!0}),r._extremes[n._id]=KO.findExtremes(n,m,{padded:!0}),_0t(r,"a","b"),_0t(r,"b","a"),w0t(r,a),w0t(r,o),h.clipsegments=gFr(r._xctrl,r._yctrl,a,o),h.x=s,h.y=l,h.a=c,h.b=f,[h]}});var k0t=W((Kui,E0t)=>{"use strict";E0t.exports={attributes:HO(),supplyDefaults:Eht(),plot:Oht(),calc:S0t(),animatable:!0,isContainer:!0,moduleType:"trace",name:"carpet",basePlotModule:vl(),categories:["cartesian","svg","carpet","carpetAxis","notLegendIsolatable","noMultiCategory","noHover","noSortingByValue"],meta:{}}});var D0t=W((Jui,C0t)=>{"use strict";C0t.exports=k0t()});var Ise=W((Qui,I0t)=>{"use strict";var xFr=M1(),X0=Hs(),bFr=Ka(),{hovertemplateAttrs:_Fr,texttemplateAttrs:wFr,templatefallbackAttrs:F0t}=$a(),L0t=Fo(),Mx=nn().extendFlat,dp=X0.marker,xT=X0.line,P0t=dp.line;I0t.exports={carpet:{valType:"string",editType:"calc"},a:{valType:"data_array",editType:"calc"},b:{valType:"data_array",editType:"calc"},mode:Mx({},X0.mode,{dflt:"markers"}),text:Mx({},X0.text,{}),texttemplate:wFr({editType:"plot"},{keys:["a","b","text"]}),texttemplatefallback:F0t({editType:"plot"}),hovertext:Mx({},X0.hovertext,{}),line:{color:xT.color,width:xT.width,dash:xT.dash,backoff:xT.backoff,shape:Mx({},xT.shape,{values:["linear","spline"]}),smoothing:xT.smoothing,editType:"calc"},connectgaps:X0.connectgaps,fill:Mx({},X0.fill,{values:["none","toself","tonext"],dflt:"none"}),fillcolor:xFr(),marker:Mx({symbol:dp.symbol,opacity:dp.opacity,maxdisplayed:dp.maxdisplayed,angle:dp.angle,angleref:dp.angleref,standoff:dp.standoff,size:dp.size,sizeref:dp.sizeref,sizemin:dp.sizemin,sizemode:dp.sizemode,line:Mx({width:P0t.width,dash:P0t.dash,editType:"calc"},L0t("marker.line")),gradient:dp.gradient,editType:"calc"},L0t("marker")),textfont:X0.textfont,textposition:X0.textposition,selected:X0.selected,unselected:X0.unselected,hoverinfo:Mx({},bFr.hoverinfo,{flags:["a","b","text","name"]}),hoveron:X0.hoveron,hovertemplate:_Fr(),hovertemplatefallback:F0t(),zorder:X0.zorder}});var q0t=W((eci,B0t)=>{"use strict";var R0t=it(),TFr=(A1(),Pt(T1)),bT=Wo(),AFr=Cd(),MFr=Kp(),z0t=Kw(),SFr=Jp(),EFr=E1(),kFr=Ise();B0t.exports=function(t,r,i,n){function a(h,p){return R0t.coerce(t,r,kFr,h,p)}a("carpet"),r.xaxis="x",r.yaxis="y";var o=a("a"),s=a("b"),l=Math.min(o.length,s.length);if(!l){r.visible=!1;return}r._length=l,a("text"),a("texttemplate"),a("texttemplatefallback"),a("hovertext");var u=l{"use strict";O0t.exports=function(t,r){var i={},n=r._carpet,a=n.ab2ij([t.a,t.b]),o=Math.floor(a[0]),s=a[0]-o,l=Math.floor(a[1]),u=a[1]-l,c=n.evalxy([],o,l,s,u);return i.yLabel=c[1].toFixed(3),i}});var JO=W((rci,U0t)=>{"use strict";U0t.exports=function(e,t){for(var r=e._fullData.length,i,n=0;n{"use strict";var V0t=un(),CFr=Dd(),DFr=k1(),FFr=E0(),LFr=Fd().calcMarkerSize,PFr=JO();G0t.exports=function(t,r){var i=r._carpetTrace=PFr(t,r);if(!(!i||!i.visible||i.visible==="legendonly")){var n;r.xaxis=i.xaxis,r.yaxis=i.yaxis;var a=r._length,o=new Array(a),s,l,u=!1;for(n=0;n{"use strict";var IFr=i5(),j0t=Wi(),RFr=en();$0t.exports=function(t,r,i,n){var a,o,s,l=i[0][0].carpet,u=j0t.getFromId(t,l.xaxis||"x"),c=j0t.getFromId(t,l.yaxis||"y"),f={xaxis:u,yaxis:c,plot:r.plot};for(a=0;a{"use strict";var zFr=s5(),BFr=it().fillText;Y0t.exports=function(t,r,i,n){var a=zFr(t,r,i,n);if(!a||a[0].index===!1)return;var o=a[0];if(o.index===void 0){var s=1-o.y0/t.ya._length,l=t.xa._length,u=l*s/2,c=l-u;return o.x0=Math.max(Math.min(o.x0,c),u),o.x1=Math.max(Math.min(o.x1,c),u),a}var f=o.cd[o.index];o.a=f.a,o.b=f.b,o.xLabelVal=void 0,o.yLabelVal=void 0;var h=o.trace,p=h._carpet,d=h._module.formatLabels(f,h);o.yLabel=d.yLabel,delete o.text;var v=[];function m(_,b){var S;_.labelprefix&&_.labelprefix.length>0?S=_.labelprefix.replace(/ = $/,""):S=_._hovertitle,v.push(S+": "+b.toFixed(3)+_.labelsuffix)}if(!h.hovertemplate){var g=f.hi||h.hoverinfo,w=g.split("+");w.indexOf("all")!==-1&&(w=["a","b","text"]),w.indexOf("a")!==-1&&m(p.aaxis,f.a),w.indexOf("b")!==-1&&m(p.baxis,f.b),v.push("y: "+o.yLabel),w.indexOf("text")!==-1&&BFr(f,h,v),o.extraText=v.join("
")}return a}});var K0t=W((oci,Z0t)=>{"use strict";Z0t.exports=function(t,r,i,n,a){var o=n[a];return t.a=o.a,t.b=o.b,t.y=o.y,t}});var Q0t=W((sci,J0t)=>{"use strict";J0t.exports={attributes:Ise(),supplyDefaults:q0t(),colorbar:kc(),formatLabels:N0t(),calc:H0t(),plot:W0t(),style:oh().style,styleOnSelect:oh().styleOnSelect,hoverPoints:X0t(),selectPoints:Rb(),eventData:K0t(),moduleType:"trace",name:"scattercarpet",basePlotModule:vl(),categories:["svg","carpet","symbols","showLegend","carpetDependent","zoomScale"],meta:{}}});var tdt=W((lci,edt)=>{"use strict";edt.exports=Q0t()});var Rse=W((uci,rdt)=>{"use strict";var pp=M5(),Ym=aS(),qFr=Fo(),OFr=nn().extendFlat,vg=Ym.contours;rdt.exports=OFr({carpet:{valType:"string",editType:"calc"},z:pp.z,a:pp.x,a0:pp.x0,da:pp.dx,b:pp.y,b0:pp.y0,db:pp.dy,text:pp.text,hovertext:pp.hovertext,transpose:pp.transpose,atype:pp.xtype,btype:pp.ytype,fillcolor:Ym.fillcolor,autocontour:Ym.autocontour,ncontours:Ym.ncontours,contours:{type:vg.type,start:vg.start,end:vg.end,size:vg.size,coloring:{valType:"enumerated",values:["fill","lines","none"],dflt:"fill",editType:"calc"},showlines:vg.showlines,showlabels:vg.showlabels,labelfont:vg.labelfont,labelformat:vg.labelformat,operation:vg.operation,value:vg.value,editType:"calc",impliedEdits:{autocontour:!1}},line:{color:Ym.line.color,width:Ym.line.width,dash:Ym.line.dash,smoothing:Ym.line.smoothing,editType:"plot"},zorder:Ym.zorder},qFr("",{cLetter:"z",autoColorDflt:!1}))});var zse=W((cci,adt)=>{"use strict";var idt=it(),NFr=jL(),ndt=Rse(),UFr=RY(),VFr=gP(),GFr=mP();adt.exports=function(t,r,i,n){function a(u,c){return idt.coerce(t,r,ndt,u,c)}function o(u){return idt.coerce2(t,r,ndt,u)}if(a("carpet"),t.a&&t.b){var s=NFr(t,r,a,n,"a","b");if(!s){r.visible=!1;return}a("text");var l=a("contours.type")==="constraint";l?UFr(t,r,a,n,i,{hasHover:!1}):(VFr(t,r,a,o),GFr(t,r,a,n,{hasHover:!1}))}else r._defaultColor=i,r._length=null;a("zorder")}});var udt=W((fci,ldt)=>{"use strict";var HFr=tf(),odt=it(),jFr=YL(),$Fr=ZL(),WFr=KL(),YFr=JL(),sdt=nY(),XFr=zse(),ZFr=JO(),KFr=TY();ldt.exports=function(t,r){var i=r._carpetTrace=ZFr(t,r);if(!(!i||!i.visible||i.visible==="legendonly")){if(!r.a||!r.b){var n=t.data[i.index],a=t.data[r.index];a.a||(a.a=n.a),a.b||(a.b=n.b),XFr(a,r,r._defaultColor,t._fullLayout)}var o=JFr(t,r);return KFr(r,r._z),o}};function JFr(e,t){var r=t._carpetTrace,i=r.aaxis,n=r.baxis,a,o,s,l,u,c,f;i._minDtick=0,n._minDtick=0,odt.isArray1D(t.z)&&jFr(t,i,n,"a","b",["z"]),a=t._a=t._a||t.a,l=t._b=t._b||t.b,a=a?i.makeCalcdata(t,"_a"):[],l=l?n.makeCalcdata(t,"_b"):[],o=t.a0||0,s=t.da||1,u=t.b0||0,c=t.db||1,f=t._z=$Fr(t._z||t.z,t.transpose),t._emptypoints=YFr(f),WFr(f,t._emptypoints);var h=odt.maxRowLength(f),p=t.xtype==="scaled"?"":a,d=sdt(t,p,o,s,h,i),v=t.ytype==="scaled"?"":l,m=sdt(t,v,u,c,f.length,n),g={a:d,b:m,z:f};return t.contours.type==="levels"&&t.contours.coloring!=="none"&&HFr(e,t,{vals:f,containerStr:"",cLetter:"z"}),[g]}});var fdt=W((hci,cdt)=>{"use strict";var QFr=it().isArrayOrTypedArray;cdt.exports=function(e,t,r,i){var n,a,o,s,l,u,c,f,h,p,d,v,m,g=QFr(r)?"a":"b",w=g==="a"?e.aaxis:e.baxis,_=w.smoothing,b=g==="a"?e.a2i:e.b2j,S=g==="a"?r:i,x=g==="a"?i:r,T=g==="a"?t.a.length:t.b.length,A=g==="a"?t.b.length:t.a.length,y=Math.floor(g==="a"?e.b2j(x):e.a2i(x)),E=g==="a"?function($){return e.evalxy([],$,y)}:function($){return e.evalxy([],y,$)};_&&(o=Math.max(0,Math.min(A-2,y)),s=y-o,a=g==="a"?function($,Y){return e.dxydi([],$,o,Y,s)}:function($,Y){return e.dxydj([],o,$,s,Y)});var M=b(S[0]),C=b(S[1]),k=M0?Math.floor:Math.ceil,P=k>0?Math.ceil:Math.floor,R=k>0?Math.min:Math.max,F=k>0?Math.max:Math.min,I=L(M+D),B=P(C-D);c=E(M);var O=[[c]];for(n=I;n*k{"use strict";var eN=gi(),tN=Dse(),gdt=Fse(),p8=en(),Xm=it(),eLr=MY(),tLr=SY(),P3=bP(),QO=(lS(),Pt(sS)),rLr=DY(),iLr=CY(),nLr=FY(),aLr=JO(),hdt=fdt();mdt.exports=function(t,r,i,n){var a=r.xaxis,o=r.yaxis;Xm.makeTraceGroups(n,i,"contour").each(function(s){var l=eN.select(this),u=s[0],c=u.trace,f=c._carpetTrace=aLr(t,c),h=t.calcdata[f.index][0];if(!f.visible||f.visible==="legendonly")return;var p=u.a,d=u.b,v=c.contours,m=iLr(v,r,u),g=v.type==="constraint",w=v._operation,_=g?w==="="?"lines":"fill":v.coloring;function b(L){var P=f.ab2xy(L[0],L[1],!0);return[a.c2p(P[0]),o.c2p(P[1])]}var S=[[p[0],d[d.length-1]],[p[p.length-1],d[d.length-1]],[p[p.length-1],d[0]],[p[0],d[0]]];eLr(m);var x=(p[p.length-1]-p[0])*1e-8,T=(d[d.length-1]-d[0])*1e-8;tLr(m,x,T);var A=m;v.type==="constraint"&&(A=rLr(m,w)),oLr(m,b);var y,E,M,C,k=[];for(C=h.clipsegments.length-1;C>=0;C--)y=h.clipsegments[C],E=tN([],y.x,a.c2p),M=tN([],y.y,o.c2p),E.reverse(),M.reverse(),k.push(gdt(E,M,y.bicubic));var D="M"+k.join("L")+"Z";uLr(l,h.clipsegments,a,o,g,_),cLr(c,l,a,o,A,S,b,f,h,_,D),sLr(l,m,t,u,v,r,f),p8.setClipUrl(l,f._clipPathId,t)})};function oLr(e,t){var r,i,n,a,o,s,l,u,c;for(r=0;rm&&(i.max=m),i.len=i.max-i.min}function ddt(e,t,r){var i=e.getPointAtLength(t),n=e.getPointAtLength(r),a=n.x-i.x,o=n.y-i.y,s=Math.sqrt(a*a+o*o);return[a/s,o/s]}function pdt(e){var t=Math.sqrt(e[0]*e[0]+e[1]*e[1]);return[e[0]/t,e[1]/t]}function vdt(e,t){var r=Math.abs(e[0]*t[0]+e[1]*t[1]),i=Math.sqrt(1-r*r);return i/r}function uLr(e,t,r,i,n,a){var o,s,l,u,c=Xm.ensureSingle(e,"g","contourbg"),f=c.selectAll("path").data(a==="fill"&&!n?[0]:[]);f.enter().append("path"),f.exit().remove();var h=[];for(u=0;u=0&&(p=E,v=m):Math.abs(h[1]-p[1])<_?Math.abs(h[1]-E[1])<_&&(E[0]-h[0])*(p[0]-E[0])>=0&&(p=E,v=m):Xm.log("endpt to newendpt is not vert. or horz.",h,p,E)}if(v>=0)break;u+=A(h,p),h=p}if(v===t.edgepaths.length){Xm.log("unclosed perimeter path");break}l=v,f=c.indexOf(l)===-1,f&&(l=c[0],u+=A(h,p)+"Z",h=null)}for(l=0;l{"use strict";xdt.exports={attributes:Rse(),supplyDefaults:zse(),colorbar:TP(),calc:udt(),plot:ydt(),style:wP(),moduleType:"trace",name:"contourcarpet",basePlotModule:vl(),categories:["cartesian","svg","carpet","contour","symbols","showLegend","hasLines","carpetDependent","noHover","noSortingByValue"],meta:{}}});var wdt=W((vci,_dt)=>{"use strict";_dt.exports=bdt()});var iN=W((gci,Edt)=>{"use strict";var rN=it().extendFlat,v8=Hs(),Tdt=ws().axisHoverFormat,{hovertemplateAttrs:hLr,templatefallbackAttrs:dLr}=$a(),Mdt=Ru().dash,pLr=J3(),Sdt=(V5(),Pt(U5)),vLr=Sdt.INCREASING.COLOR,gLr=Sdt.DECREASING.COLOR,Bse=v8.line;function Adt(e){return{line:{color:rN({},Bse.color,{dflt:e}),width:Bse.width,dash:Mdt,editType:"style"},editType:"style"}}Edt.exports={xperiod:v8.xperiod,xperiod0:v8.xperiod0,xperiodalignment:v8.xperiodalignment,xhoverformat:Tdt("x"),yhoverformat:Tdt("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:rN({},Bse.width,{}),dash:rN({},Mdt,{}),editType:"style"},increasing:Adt(vLr),decreasing:Adt(gLr),text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertemplate:hLr({},{keys:["open","high","low","close"]}),hovertemplatefallback:dLr(),tickwidth:{valType:"number",min:0,max:.5,dflt:.3,editType:"calc"},hoverlabel:rN({},pLr.hoverlabel,{split:{valType:"boolean",dflt:!1,editType:"style"}}),zorder:v8.zorder}});var qse=W((mci,kdt)=>{"use strict";var mLr=xi(),yLr=it();kdt.exports=function(t,r,i,n){var a=i("x"),o=i("open"),s=i("high"),l=i("low"),u=i("close");i("hoverlabel.split");var c=mLr.getComponentMethod("calendars","handleTraceDefaults");if(c(t,r,["x"],n),!!(o&&s&&l&&u)){var f=Math.min(o.length,s.length,l.length,u.length);return a&&(f=Math.min(f,yLr.minRowLength(a))),r._length=f,f}}});var Fdt=W((yci,Ddt)=>{"use strict";var xLr=it(),bLr=qse(),_Lr=Zp(),wLr=iN();Ddt.exports=function(t,r,i,n){function a(s,l){return xLr.coerce(t,r,wLr,s,l)}var o=bLr(t,r,a,n);if(!o){r.visible=!1;return}_Lr(t,r,n,a,{x:!0}),a("xhoverformat"),a("yhoverformat"),a("line.width"),a("line.dash"),Cdt(t,r,a,"increasing"),Cdt(t,r,a,"decreasing"),a("text"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback"),a("tickwidth"),n._requestRangeslider[r.xaxis]=!0,a("zorder")};function Cdt(e,t,r,i){r(i+".line.color"),r(i+".line.width",t.line.width),r(i+".line.dash",t.line.dash)}});var Ose=W((xci,Pdt)=>{"use strict";var _T=it(),nN=_T._,aN=Wi(),TLr=Qp(),g8=(ta(),Pt(ra)).BADNUM;function ALr(e,t){var r=aN.getFromId(e,t.xaxis),i=aN.getFromId(e,t.yaxis),n=SLr(e,r,t),a=t._minDiff;t._minDiff=null;var o=t._origX;t._origX=null;var s=t._xcalc;t._xcalc=null;var l=Ldt(e,t,o,s,i,MLr);return t._extremes[r._id]=aN.findExtremes(r,s,{vpad:a/2}),l.length?(_T.extendFlat(l[0].t,{wHover:a/2,tickLen:n}),l):[{t:{empty:!0}}]}function MLr(e,t,r,i){return{o:e,h:t,l:r,c:i}}function Ldt(e,t,r,i,n,a){for(var o=n.makeCalcdata(t,"open"),s=n.makeCalcdata(t,"high"),l=n.makeCalcdata(t,"low"),u=n.makeCalcdata(t,"close"),c=_T.isArrayOrTypedArray(t.text),f=_T.isArrayOrTypedArray(t.hovertext),h=!0,p=null,d=!!t.xperiodalignment,v=[],m=0;mp):h=S>w,p=S;var x=a(w,_,b,S);x.pos=g,x.yc=(w+S)/2,x.i=m,x.dir=h?"increasing":"decreasing",x.x=x.pos,x.y=[b,_],d&&(x.orig_p=r[m]),c&&(x.tx=t.text[m]),f&&(x.htx=t.hovertext[m]),v.push(x)}else v.push({pos:g,empty:!0})}return t._extremes[n._id]=aN.findExtremes(n,_T.concat(l,s),{padded:!0}),v.length&&(v[0].t={labels:{open:nN(e,"open:")+" ",high:nN(e,"high:")+" ",low:nN(e,"low:")+" ",close:nN(e,"close:")+" "}}),v}function SLr(e,t,r){var i=r._minDiff;if(!i){var n=e._fullData,a=[];i=1/0;var o;for(o=0;o{"use strict";var ELr=gi(),Idt=it();Rdt.exports=function(t,r,i,n){var a=r.yaxis,o=r.xaxis,s=!!o.rangebreaks;Idt.makeTraceGroups(n,i,"trace ohlc").each(function(l){var u=ELr.select(this),c=l[0],f=c.t,h=c.trace;if(h.visible!==!0||f.empty){u.remove();return}var p=f.tickLen,d=u.selectAll("path").data(Idt.identity);d.enter().append("path"),d.exit().remove(),d.attr("d",function(v){if(v.empty)return"M0,0Z";var m=o.c2p(v.pos-p,!0),g=o.c2p(v.pos+p,!0),w=s?(m+g)/2:o.c2p(v.pos,!0),_=a.c2p(v.o,!0),b=a.c2p(v.h,!0),S=a.c2p(v.l,!0),x=a.c2p(v.c,!0);return"M"+m+","+_+"H"+w+"M"+w+","+b+"V"+S+"M"+g+","+x+"H"+w})})}});var qdt=W((_ci,Bdt)=>{"use strict";var Nse=gi(),kLr=en(),CLr=ai();Bdt.exports=function(t,r,i){var n=i||Nse.select(t).selectAll("g.ohlclayer").selectAll("g.trace");n.style("opacity",function(a){return a[0].trace.opacity}),n.each(function(a){var o=a[0].trace;Nse.select(this).selectAll("path").each(function(s){if(!s.empty){var l=o[s.dir].line;Nse.select(this).style("fill","none").call(CLr.stroke,l.color).call(kLr.dashLine,l.dash,l.width).style("opacity",o.selectedpoints&&!s.selected?.3:1)}})})}});var Vse=W((wci,Gdt)=>{"use strict";var Use=Wi(),DLr=it(),oN=Ls(),FLr=ai(),LLr=it().fillText,Odt=(V5(),Pt(U5)),PLr={increasing:Odt.INCREASING.SYMBOL,decreasing:Odt.DECREASING.SYMBOL};function ILr(e,t,r,i){var n=e.cd,a=n[0].trace;return a.hoverlabel.split?Udt(e,t,r,i):Vdt(e,t,r,i)}function Ndt(e,t,r,i){var n=e.cd,a=e.xa,o=n[0].trace,s=n[0].t,l=o.type,u=l==="ohlc"?"l":"min",c=l==="ohlc"?"h":"max",f,h,p=s.bPos||0,d=function(E){return E.pos+p-t},v=s.bdPos||s.tickLen,m=s.wHover,g=Math.min(1,v/Math.abs(a.r2c(a.range[1])-a.r2c(a.range[0])));f=e.maxHoverDistance-g,h=e.maxSpikeDistance-g;function w(E){var M=d(E);return oN.inbox(M-m,M+m,f)}function _(E){var M=E[u],C=E[c];return M===C||oN.inbox(M-r,C-r,f)}function b(E){return(w(E)+_(E))/2}var S=oN.getDistanceFunction(i,w,_,b);if(oN.getClosest(n,S,e),e.index===!1)return null;var x=n[e.index];if(x.empty)return null;var T=x.dir,A=o[T],y=A.line.color;return FLr.opacity(y)&&A.line.width?e.color=y:e.color=A.fillcolor,e.x0=a.c2p(x.pos+p-v,!0),e.x1=a.c2p(x.pos+p+v,!0),e.xLabelVal=x.orig_p!==void 0?x.orig_p:x.pos,e.spikeDistance=b(x)*h/f,e.xSpike=a.c2p(x.pos,!0),e}function Udt(e,t,r,i){var n=e.cd,a=e.ya,o=n[0].trace,s=n[0].t,l=[],u=Ndt(e,t,r,i);if(!u)return[];var c=n[u.index],f=c.hi||o.hoverinfo||"";if(f==="none"||f==="skip")return[];for(var h=["high","open","close","low"],p={},d=0;d"+s.labels[v]+Use.hoverLabelText(a,m,o.yhoverformat)):(w=DLr.extendFlat({},u),w.y0=w.y1=g,w.yLabelVal=m,w.yLabel=s.labels[v]+Use.hoverLabelText(a,m,o.yhoverformat),w.name="",l.push(w),p[m]=w)}return l}function Vdt(e,t,r,i){var n=e.cd,a=e.ya,o=n[0].trace,s=n[0].t,l=Ndt(e,t,r,i);if(!l)return[];var u=l.index,c=n[u],f=l.index=c.i,h=c.dir;function p(b){return s.labels[b]+Use.hoverLabelText(a,o[b][f],o.yhoverformat)}var d=c.hi||o.hoverinfo||"",v=d.split("+"),m=d==="all",g=m||v.indexOf("y")!==-1,w=m||v.indexOf("text")!==-1,_=g?[p("open"),p("high"),p("low"),p("close")+" "+PLr[h]]:[];return w&&LLr(c,o,_),l.extraText=_.join("
"),l.y0=l.y1=a.c2p(c.yc,!0),[l]}Gdt.exports={hoverPoints:ILr,hoverSplit:Udt,hoverOnPoints:Vdt}});var Gse=W((Tci,Hdt)=>{"use strict";Hdt.exports=function(t,r){var i=t.cd,n=t.xaxis,a=t.yaxis,o=[],s,l=i[0].t.bPos||0;if(r===!1)for(s=0;s{"use strict";jdt.exports={moduleType:"trace",name:"ohlc",basePlotModule:vl(),categories:["cartesian","svg","showLegend"],meta:{},attributes:iN(),supplyDefaults:Fdt(),calc:Ose().calc,plot:zdt(),style:qdt(),hoverPoints:Vse().hoverPoints,selectPoints:Gse()}});var Ydt=W((Mci,Wdt)=>{"use strict";Wdt.exports=$dt()});var jse=W((Sci,Kdt)=>{"use strict";var Hse=it().extendFlat,Xdt=ws().axisHoverFormat,gh=iN(),wT=ZM();function Zdt(e){return{line:{color:Hse({},wT.line.color,{dflt:e}),width:wT.line.width,editType:"style"},fillcolor:wT.fillcolor,editType:"style"}}Kdt.exports={xperiod:gh.xperiod,xperiod0:gh.xperiod0,xperiodalignment:gh.xperiodalignment,xhoverformat:Xdt("x"),yhoverformat:Xdt("y"),x:gh.x,open:gh.open,high:gh.high,low:gh.low,close:gh.close,line:{width:Hse({},wT.line.width,{}),editType:"style"},increasing:Zdt(gh.increasing.line.color.dflt),decreasing:Zdt(gh.decreasing.line.color.dflt),text:gh.text,hovertext:gh.hovertext,hovertemplate:gh.hovertemplate,hovertemplatefallback:gh.hovertemplatefallback,whiskerwidth:Hse({},wT.whiskerwidth,{dflt:0}),hoverlabel:gh.hoverlabel,zorder:wT.zorder}});var ept=W((Eci,Qdt)=>{"use strict";var RLr=it(),zLr=ai(),BLr=qse(),qLr=Zp(),OLr=jse();Qdt.exports=function(t,r,i,n){function a(s,l){return RLr.coerce(t,r,OLr,s,l)}var o=BLr(t,r,a,n);if(!o){r.visible=!1;return}qLr(t,r,n,a,{x:!0}),a("xhoverformat"),a("yhoverformat"),a("line.width"),Jdt(t,r,a,"increasing"),Jdt(t,r,a,"decreasing"),a("text"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback"),a("whiskerwidth"),n._requestRangeslider[r.xaxis]=!0,a("zorder")};function Jdt(e,t,r,i){var n=r(i+".line.color");r(i+".line.width",t.line.width),r(i+".fillcolor",zLr.addOpacity(n,.5))}});var npt=W((kci,ipt)=>{"use strict";var tpt=it(),rpt=Wi(),NLr=Qp(),ULr=Ose().calcCommon;ipt.exports=function(e,t){var r=e._fullLayout,i=rpt.getFromId(e,t.xaxis),n=rpt.getFromId(e,t.yaxis),a=i.makeCalcdata(t,"x"),o=NLr(t,i,"x",a).vals,s=ULr(e,t,a,o,n,VLr);return s.length?(tpt.extendFlat(s[0].t,{num:r._numBoxes,dPos:tpt.distinctVals(o).minDiff/2,posLetter:"x",valLetter:"y"}),r._numBoxes++,s):[{t:{empty:!0}}]};function VLr(e,t,r,i){return{min:r,q1:Math.min(e,i),med:i,q3:Math.max(e,i),max:t}}});var opt=W((Cci,apt)=>{"use strict";apt.exports={moduleType:"trace",name:"candlestick",basePlotModule:vl(),categories:["cartesian","svg","showLegend","candlestick","boxLayout"],meta:{},attributes:jse(),layoutAttributes:KM(),supplyLayoutDefaults:OL().supplyLayoutDefaults,crossTraceCalc:UL().crossTraceCalc,supplyDefaults:ept(),calc:npt(),plot:VL().plot,layerName:"boxlayer",style:GL().style,hoverPoints:Vse().hoverPoints,selectPoints:Gse()}});var lpt=W((Dci,spt)=>{"use strict";spt.exports=opt()});var Wse=W((Fci,upt)=>{"use strict";var lN=it(),GLr=f1(),sN=lN.deg2rad,$se=lN.rad2deg;upt.exports=function(t,r,i){switch(GLr(t,i),t._id){case"x":case"radialaxis":HLr(t,r);break;case"angularaxis":WLr(t,r);break}};function HLr(e,t){var r=t._subplot;e.setGeometry=function(){var i=e._rl[0],n=e._rl[1],a=r.innerRadius,o=(r.radius-a)/(n-i),s=a/o,l=i>n?function(u){return u<=0}:function(u){return u>=0};e.c2g=function(u){var c=e.c2l(u)-i;return(l(c)?c:0)+s},e.g2c=function(u){return e.l2c(u+i-s)},e.g2p=function(u){return u*o},e.c2p=function(u){return e.g2p(e.c2g(u))}}}function jLr(e,t){return t==="degrees"?sN(e):e}function $Lr(e,t){return t==="degrees"?$se(e):e}function WLr(e,t){var r=e.type;if(r==="linear"){var i=e.d2c,n=e.c2d;e.d2c=function(a,o){return jLr(i(a),o)},e.c2d=function(a,o){return n($Lr(a,o))}}e.makeCalcdata=function(a,o){var s=a[o],l=a._length,u,c,f=function(m){return e.d2c(m,a.thetaunit)};if(s)for(u=new Array(l),c=0;ciPr,MINZOOM:()=>nPr,OFFEDGE:()=>aPr,angularDragBoxSize:()=>ePr,attr:()=>YLr,axisName2dataArray:()=>KLr,axisNames:()=>ZLr,cornerHalfWidth:()=>rPr,cornerLen:()=>tPr,layerNames:()=>JLr,name:()=>XLr,radialDragBoxSize:()=>QLr});var YLr,XLr,ZLr,KLr,JLr,QLr,ePr,tPr,rPr,iPr,nPr,aPr,cN=Ci(()=>{"use strict";YLr="subplot",XLr="polar",ZLr=["angularaxis","radialaxis"],KLr={angularaxis:"theta",radialaxis:"r"},JLr=["draglayer","plotbg","backplot","angular-grid","radial-grid","frontplot","angular-line","radial-line","angular-axis","radial-axis"],QLr=50,ePr=30,tPr=25,rPr=2,iPr=8,nPr=20,aPr=20});var hN=W((Lci,ppt)=>{"use strict";var I3=it(),cpt=iM().tester,Yse=I3.findIndexOfMin,hpt=I3.isAngleInsideSector,oPr=I3.angleDelta,fpt=I3.angleDist;function sPr(e,t,r,i,n){if(!hpt(t,i))return!1;var a,o;r[0]0?o:1/0},i=Yse(t,r),n=I3.mod(i+1,t.length);return[t[i],t[n]]}function fN(e){return Math.abs(e)>1e-10?e:0}function Xse(e,t,r){t=t||0,r=r||0;for(var i=e.length,n=new Array(i),a=0;a{"use strict";function vpt(e){return e<0?-1:e>0?1:0}function AT(e){var t=e[0],r=e[1];if(!isFinite(t)||!isFinite(r))return[1,0];var i=(t+1)*(t+1)+r*r;return[(t*t+r*r-1)/i,2*r/i]}function MT(e,t){var r=t[0],i=t[1];return[r*e.radius+e.cx,-i*e.radius+e.cy]}function gpt(e,t){return t*e.radius}function vPr(e,t,r,i){var n=MT(e,AT([r,t])),a=n[0],o=n[1],s=MT(e,AT([i,t])),l=s[0],u=s[1];if(t===0)return["M"+a+","+o,"L"+l+","+u].join(" ");var c=gpt(e,1/Math.abs(t));return["M"+a+","+o,"A"+c+","+c+" 0 0,"+(t<0?1:0)+" "+l+","+u].join(" ")}function gPr(e,t,r,i){var n=gpt(e,1/(t+1)),a=MT(e,AT([t,r])),o=a[0],s=a[1],l=MT(e,AT([t,i])),u=l[0],c=l[1];if(vpt(r)!==vpt(i)){var f=MT(e,AT([t,0])),h=f[0],p=f[1];return["M"+o+","+s,"A"+n+","+n+" 0 0,"+(0{"use strict";var R3=gi(),B3=xi(),ps=it(),gg=ps.strRotate,Wu=ps.strTranslate,gN=ai(),m8=en(),mPr=Qo(),mh=Wi(),yPr=f1(),xPr=Wse(),bPr=jp().doAutoRange,Zm=Yj(),vN=Mf(),ypt=Ls(),_Pr=db(),wPr=yu().prepSelect,TPr=yu().selectOnClick,Kse=yu().clearOutline,xpt=$p(),bpt=VA(),_pt=KA().redrawReglTraces,APr=(Xl(),Pt(Yl)).MID_SHIFT,Sx=(cN(),Pt(uN)),Km=hN(),mN=Zse(),dN=mN.smith,MPr=mN.reactanceArc,SPr=mN.resistanceArc,pN=mN.smithTransform,EPr=ps._,wpt=ps.mod,Ex=ps.deg2rad,z3=ps.rad2deg;function Tpt(e,t,r){this.isSmith=r||!1,this.id=t,this.gd=e,this._hasClipOnAxisFalse=null,this.vangles=null,this.radialAxisAngle=null,this.traceHash={},this.layers={},this.clipPaths={},this.clipIds={},this.viewInitial={};var i=e._fullLayout,n="clip"+i._uid+t;this.clipIds.forTraces=n+"-for-traces",this.clipPaths.forTraces=i._clips.append("clipPath").attr("id",this.clipIds.forTraces),this.clipPaths.forTraces.append("path"),this.framework=i["_"+(r?"smith":"polar")+"layer"].append("g").attr("class",t),this.getHole=function(a){return this.isSmith?0:a.hole},this.getSector=function(a){return this.isSmith?[0,360]:a.sector},this.getRadial=function(a){return this.isSmith?a.realaxis:a.radialaxis},this.getAngular=function(a){return this.isSmith?a.imaginaryaxis:a.angularaxis},r||(this.radialTickLayout=null,this.angularTickLayout=null)}var vc=Tpt.prototype;Spt.exports=function(t,r,i){return new Tpt(t,r,i)};vc.plot=function(e,t){for(var r=this,i=t[r.id],n=!1,a=0;am?(g=u,w=u*m,S=(c-w)/n.h/2,_=[s[0],s[1]],b=[l[0]+S,l[1]-S]):(g=c/m,w=c,S=(u-g)/n.w/2,_=[s[0]+S,s[1]-S],b=[l[0],l[1]]),r.xLength2=g,r.yLength2=w,r.xDomain2=_,r.yDomain2=b;var x=r.xOffset2=n.l+n.w*_[0],T=r.yOffset2=n.t+n.h*(1-b[1]),A=r.radius=g/p,y=r.innerRadius=r.getHole(t)*A,E=r.cx=x-A*h[0],M=r.cy=T+A*h[3],C=r.cxx=E-x,k=r.cyy=M-T,D=a.side,L;D==="counterclockwise"?(L=D,D="top"):D==="clockwise"&&(L=D,D="bottom"),r.radialAxis=r.mockAxis(e,t,a,{_id:"x",side:D,_trueSide:L,domain:[y/n.w,A/n.w]}),r.angularAxis=r.mockAxis(e,t,o,{side:"right",domain:[0,Math.PI],autorange:!1}),r.doAutoRange(e,t),r.updateAngularAxis(e,t),r.updateRadialAxis(e,t),r.updateRadialAxisTitle(e,t),r.xaxis=r.mockCartesianAxis(e,t,{_id:"x",domain:_}),r.yaxis=r.mockCartesianAxis(e,t,{_id:"y",domain:b});var P=r.pathSubplot();r.clipPaths.forTraces.select("path").attr("d",P).attr("transform",Wu(C,k)),i.frontplot.attr("transform",Wu(x,T)).call(m8.setClipUrl,r._hasClipOnAxisFalse?null:r.clipIds.forTraces,r.gd),i.bg.attr("d",P).attr("transform",Wu(E,M)).call(gN.fill,t.bgcolor)};vc.mockAxis=function(e,t,r,i){var n=ps.extendFlat({},r,i);return xPr(n,t,e),n};vc.mockCartesianAxis=function(e,t,r){var i=this,n=i.isSmith,a=r._id,o=ps.extendFlat({type:"linear"},r);yPr(o,e);var s={x:[0,2],y:[1,3]};return o.setRange=function(){var l=i.sectorBBox,u=s[a],c=i.radialAxis._rl,f=(c[1]-c[0])/(1-i.getHole(t));o.range=[l[u[0]]*f,l[u[1]]*f]},o.isPtWithinRange=a==="x"&&!n?function(l){return i.isPtInside(l)}:function(){return!0},o.setRange(),o.setScale(),o};vc.doAutoRange=function(e,t){var r=this,i=r.gd,n=r.radialAxis,a=r.getRadial(t);bPr(i,n);var o=n.range;if(a.range=o.slice(),a._input.range=o.slice(),n._rl=[n.r2l(o[0],null,"gregorian"),n.r2l(o[1],null,"gregorian")],n.minallowed!==void 0){var s=n.r2l(n.minallowed);n._rl[0]>n._rl[1]?n._rl[1]=Math.max(n._rl[1],s):n._rl[0]=Math.max(n._rl[0],s)}if(n.maxallowed!==void 0){var l=n.r2l(n.maxallowed);n._rl[0]90&&c<=270&&(f.tickangle=180);var d=p?function(A){var y=pN(r,dN([A.x,0]));return Wu(y[0]-s,y[1]-l)}:function(A){return Wu(f.l2p(A.x)+o,0)},v=p?function(A){return SPr(r,A.x,-1/0,1/0)}:function(A){return r.pathArc(f.r2p(A.x)+o)},m=Apt(u);if(r.radialTickLayout!==m&&(n["radial-axis"].selectAll(".xtick").remove(),r.radialTickLayout=m),h){f.setScale();var g=0,w=p?(f.tickvals||[]).filter(function(A){return A>=0}).map(function(A){return mh.tickText(f,A,!0,!1)}):mh.calcTicks(f),_=p?w:mh.clipEnds(f,w),b=mh.getTickSigns(f)[2];p&&((f.ticks==="top"&&f.side==="bottom"||f.ticks==="bottom"&&f.side==="top")&&(b=-b),f.ticks==="top"&&f.side==="top"&&(g=-f.ticklen),f.ticks==="bottom"&&f.side==="bottom"&&(g=f.ticklen)),mh.drawTicks(i,f,{vals:w,layer:n["radial-axis"],path:mh.makeTickPath(f,0,b),transFn:d,crisp:!1}),mh.drawGrid(i,f,{vals:_,layer:n["radial-grid"],path:v,transFn:ps.noop,crisp:!1}),mh.drawLabels(i,f,{vals:w,layer:n["radial-axis"],transFn:d,labelFns:mh.makeLabelFns(f,g)})}var S=r.radialAxisAngle=r.vangles?z3(Mpt(Ex(u.angle),r.vangles)):u.angle,x=Wu(s,l),T=x+gg(-S);y8(n["radial-axis"],h&&(u.showticklabels||u.ticks),{transform:T}),y8(n["radial-grid"],h&&u.showgrid,{transform:p?"":x}),y8(n["radial-line"].select("line"),h&&u.showline,{x1:p?-a:o,y1:0,x2:a,y2:0,transform:T}).attr("stroke-width",u.linewidth).call(gN.stroke,u.linecolor)};vc.updateRadialAxisTitle=function(e,t,r){if(!this.isSmith){var i=this,n=i.gd,a=i.radius,o=i.cx,s=i.cy,l=i.getRadial(t),u=i.id+"title",c=0;if(l.title){var f=m8.bBox(i.layers["radial-axis"].node()).height,h=l.title.font.size,p=l.side;c=p==="top"?h:p==="counterclockwise"?-(f+h*.4):f+h*.8}var d=r!==void 0?r:i.radialAxisAngle,v=Ex(d),m=Math.cos(v),g=Math.sin(v),w=o+a/2*m+c*g,_=s-a/2*g+c*m;i.layers["radial-axis-title"]=_Pr.draw(n,u,{propContainer:l,propName:i.id+".radialaxis.title.text",placeholder:EPr(n,"Click to enter radial axis title"),attributes:{x:w,y:_,"text-anchor":"middle"},transform:{rotate:-d}})}};vc.updateAngularAxis=function(e,t){var r=this,i=r.gd,n=r.layers,a=r.radius,o=r.innerRadius,s=r.cx,l=r.cy,u=r.getAngular(t),c=r.angularAxis,f=r.isSmith;f||(r.fillViewInitialKey("angularaxis.rotation",u.rotation),c.setGeometry(),c.setScale());var h=f?function(y){var E=pN(r,dN([0,y.x]));return Math.atan2(E[0]-s,E[1]-l)-Math.PI/2}:function(y){return c.t2g(y.x)};c.type==="linear"&&c.thetaunit==="radians"&&(c.tick0=z3(c.tick0),c.dtick=z3(c.dtick));var p=function(y){return Wu(s+a*Math.cos(y),l-a*Math.sin(y))},d=f?function(y){var E=pN(r,dN([0,y.x]));return Wu(E[0],E[1])}:function(y){return p(h(y))},v=f?function(y){var E=pN(r,dN([0,y.x])),M=Math.atan2(E[0]-s,E[1]-l)-Math.PI/2;return Wu(E[0],E[1])+gg(-z3(M))}:function(y){var E=h(y);return p(E)+gg(-z3(E))},m=f?function(y){return MPr(r,y.x,0,1/0)}:function(y){var E=h(y),M=Math.cos(E),C=Math.sin(E);return"M"+[s+o*M,l-o*C]+"L"+[s+a*M,l-a*C]},g=mh.makeLabelFns(c,0),w=g.labelStandoff,_={};_.xFn=function(y){var E=h(y);return Math.cos(E)*w},_.yFn=function(y){var E=h(y),M=Math.sin(E)>0?.2:1;return-Math.sin(E)*(w+y.fontSize*M)+Math.abs(Math.cos(E))*(y.fontSize*APr)},_.anchorFn=function(y){var E=h(y),M=Math.cos(E);return Math.abs(M)<.1?"middle":M>0?"start":"end"},_.heightFn=function(y,E,M){var C=h(y);return-.5*(1+Math.sin(C))*M};var b=Apt(u);r.angularTickLayout!==b&&(n["angular-axis"].selectAll("."+c._id+"tick").remove(),r.angularTickLayout=b);var S=f?[1/0].concat(c.tickvals||[]).map(function(y){return mh.tickText(c,y,!0,!1)}):mh.calcTicks(c);f&&(S[0].text="\u221E",S[0].fontSize*=1.75);var x;if(t.gridshape==="linear"?(x=S.map(h),ps.angleDelta(x[0],x[1])<0&&(x=x.slice().reverse())):x=null,r.vangles=x,c.type==="category"&&(S=S.filter(function(y){return ps.isAngleInsideSector(h(y),r.sectorInRad)})),c.visible){var T=c.ticks==="inside"?-1:1,A=(c.linewidth||1)/2;mh.drawTicks(i,c,{vals:S,layer:n["angular-axis"],path:"M"+T*A+",0h"+T*c.ticklen,transFn:v,crisp:!1}),mh.drawGrid(i,c,{vals:S,layer:n["angular-grid"],path:m,transFn:ps.noop,crisp:!1}),mh.drawLabels(i,c,{vals:S,layer:n["angular-axis"],repositionOnUpdate:!0,transFn:d,labelFns:_})}y8(n["angular-line"].select("path"),u.showline,{d:r.pathSubplot(),transform:Wu(s,l)}).attr("stroke-width",u.linewidth).call(gN.stroke,u.linecolor)};vc.updateFx=function(e,t){if(!this.gd._context.staticPlot){var r=!this.isSmith;r&&(this.updateAngularDrag(e),this.updateRadialDrag(e,t,0),this.updateRadialDrag(e,t,1)),this.updateHoverAndMainDrag(e)}};vc.updateHoverAndMainDrag=function(e){var t=this,r=t.isSmith,i=t.gd,n=t.layers,a=e._zoomlayer,o=Sx.MINZOOM,s=Sx.OFFEDGE,l=t.radius,u=t.innerRadius,c=t.cx,f=t.cy,h=t.cxx,p=t.cyy,d=t.sectorInRad,v=t.vangles,m=t.radialAxis,g=Km.clampTiny,w=Km.findXYatLength,_=Km.findEnclosingVertexAngles,b=Sx.cornerHalfWidth,S=Sx.cornerLen/2,x,T,A=Zm.makeDragger(n,"path","maindrag",e.dragmode===!1?"none":"crosshair");R3.select(A).attr("d",t.pathSubplot()).attr("transform",Wu(c,f)),A.onmousemove=function(te){ypt.hover(i,te,t.id),i._fullLayout._lasthover=A,i._fullLayout._hoversubplot=t.id},A.onmouseout=function(te){i._dragging||vN.unhover(i,te)};var y={element:A,gd:i,subplot:t.id,plotinfo:{id:t.id,xaxis:t.xaxis,yaxis:t.yaxis},xaxes:[t.xaxis],yaxes:[t.yaxis]},E,M,C,k,D,L,P,R,F;function I(te,ue){return Math.sqrt(te*te+ue*ue)}function B(te,ue){return I(te-h,ue-p)}function O(te,ue){return Math.atan2(p-ue,te-h)}function $(te,ue){return[te*Math.cos(ue),te*Math.sin(-ue)]}function Y(te,ue){if(te===0)return t.pathSector(2*b);var ge=S/te,ke=ue-ge,_e=ue+ge,he=Math.max(0,Math.min(te,l)),oe=he-b,Me=he+b;return"M"+$(oe,ke)+"A"+[oe,oe]+" 0,0,0 "+$(oe,_e)+"L"+$(Me,_e)+"A"+[Me,Me]+" 0,0,1 "+$(Me,ke)+"Z"}function K(te,ue,ge){if(te===0)return t.pathSector(2*b);var ke=$(te,ue),_e=$(te,ge),he=g((ke[0]+_e[0])/2),oe=g((ke[1]+_e[1])/2),Me,ye;if(he&&oe){var ce=oe/he,ee=-1/ce,ae=w(b,ce,he,oe);Me=w(S,ee,ae[0][0],ae[0][1]),ye=w(S,ee,ae[1][0],ae[1][1])}else{var xe,re;oe?(xe=S,re=b):(xe=b,re=S),Me=[[he-xe,oe-re],[he+xe,oe-re]],ye=[[he-xe,oe+re],[he+xe,oe+re]]}return"M"+Me.join("L")+"L"+ye.reverse().join("L")+"Z"}function j(){C=null,k=null,D=t.pathSubplot(),L=!1;var te=i._fullLayout[t.id];P=gN.luminosity(te.bgcolor),R=Zm.makeZoombox(a,P,c,f,D),R.attr("fill-rule","evenodd"),F=Zm.makeCorners(a,c,f),Kse(i)}function q(te,ue){return ue=Math.max(Math.min(ue,l),u),teo?(te-1&&te===1&&TPr(ue,i,[t.xaxis],[t.yaxis],t.id,y),ge.indexOf("event")>-1&&ypt.click(i,ue,t.id)}y.prepFn=function(te,ue,ge){var ke=i._fullLayout.dragmode,_e=A.getBoundingClientRect();i._fullLayout._calcInverseTransform(i);var he=i._fullLayout._invTransform;x=i._fullLayout._invScaleX,T=i._fullLayout._invScaleY;var oe=ps.apply3DTransform(he)(ue-_e.left,ge-_e.top);if(E=oe[0],M=oe[1],v){var Me=Km.findPolygonOffset(l,d[0],d[1],v);E+=h+Me[0],M+=p+Me[1]}switch(ke){case"zoom":y.clickFn=J,r||(v?y.moveFn=X:y.moveFn=U,y.doneFn=G,j(te,ue,ge));break;case"select":case"lasso":wPr(te,ue,ge,y,ke);break}},vN.init(y)};vc.updateRadialDrag=function(e,t,r){var i=this,n=i.gd,a=i.layers,o=i.radius,s=i.innerRadius,l=i.cx,u=i.cy,c=i.radialAxis,f=Sx.radialDragBoxSize,h=f/2;if(!c.visible)return;var p=Ex(i.radialAxisAngle),d=c._rl,v=d[0],m=d[1],g=d[r],w=.75*(d[1]-d[0])/(1-i.getHole(t))/o,_,b,S;r?(_=l+(o+h)*Math.cos(p),b=u-(o+h)*Math.sin(p),S="radialdrag"):(_=l+(s-h)*Math.cos(p),b=u-(s-h)*Math.sin(p),S="radialdrag-inner");var x=Zm.makeRectDragger(a,S,"crosshair",-h,-h,f,f),T={element:x,gd:n};e.dragmode===!1&&(T.dragmode=!1),y8(R3.select(x),c.visible&&s0!=(r?E>v:E=90||n>90&&a>=450?p=1:s<=0&&u<=0?p=0:p=Math.max(s,u),n<=180&&a>=180||n>180&&a>=540?c=-1:o>=0&&l>=0?c=0:c=Math.min(o,l),n<=270&&a>=270||n>270&&a>=630?f=-1:s>=0&&u>=0?f=0:f=Math.min(s,u),a>=360?h=1:o<=0&&l<=0?h=0:h=Math.max(o,l),[c,f,h,p]}function Mpt(e,t){var r=function(n){return ps.angleDist(e,n)},i=ps.findIndexOfMin(t,r);return t[i]}function y8(e,t,r){return t?(e.attr("display",null),e.attr(r)):e&&e.attr("display","none"),e}});var Qse=W((Rci,Lpt)=>{"use strict";var CPr=jl(),Rn=nc(),DPr=fs().attributes,Z0=it().extendFlat,Ept=cs().overrideAll,kpt=Ept({color:Rn.color,showline:Z0({},Rn.showline,{dflt:!0}),linecolor:Rn.linecolor,linewidth:Rn.linewidth,showgrid:Z0({},Rn.showgrid,{dflt:!0}),gridcolor:Rn.gridcolor,gridwidth:Rn.gridwidth,griddash:Rn.griddash},"plot","from-root"),Cpt=Ept({tickmode:Rn.minor.tickmode,nticks:Rn.nticks,tick0:Rn.tick0,dtick:Rn.dtick,tickvals:Rn.tickvals,ticktext:Rn.ticktext,ticks:Rn.ticks,ticklen:Rn.ticklen,tickwidth:Rn.tickwidth,tickcolor:Rn.tickcolor,ticklabelstep:Rn.ticklabelstep,showticklabels:Rn.showticklabels,labelalias:Rn.labelalias,minorloglabels:Rn.minorloglabels,showtickprefix:Rn.showtickprefix,tickprefix:Rn.tickprefix,showticksuffix:Rn.showticksuffix,ticksuffix:Rn.ticksuffix,showexponent:Rn.showexponent,exponentformat:Rn.exponentformat,minexponent:Rn.minexponent,separatethousands:Rn.separatethousands,tickfont:Rn.tickfont,tickangle:Rn.tickangle,tickformat:Rn.tickformat,tickformatstops:Rn.tickformatstops,layer:Rn.layer},"plot","from-root"),Dpt={visible:Z0({},Rn.visible,{dflt:!0}),type:Z0({},Rn.type,{values:["-","linear","log","date","category"]}),autotypenumbers:Rn.autotypenumbers,autorangeoptions:{minallowed:Rn.autorangeoptions.minallowed,maxallowed:Rn.autorangeoptions.maxallowed,clipmin:Rn.autorangeoptions.clipmin,clipmax:Rn.autorangeoptions.clipmax,include:Rn.autorangeoptions.include,editType:"plot"},autorange:Z0({},Rn.autorange,{editType:"plot"}),rangemode:{valType:"enumerated",values:["tozero","nonnegative","normal"],dflt:"tozero",editType:"calc"},minallowed:Z0({},Rn.minallowed,{editType:"plot"}),maxallowed:Z0({},Rn.maxallowed,{editType:"plot"}),range:Z0({},Rn.range,{items:[{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}}],editType:"plot"}),categoryorder:Rn.categoryorder,categoryarray:Rn.categoryarray,angle:{valType:"angle",editType:"plot"},autotickangles:Rn.autotickangles,side:{valType:"enumerated",values:["clockwise","counterclockwise"],dflt:"clockwise",editType:"plot"},title:{text:Z0({},Rn.title.text,{editType:"plot",dflt:""}),font:Z0({},Rn.title.font,{editType:"plot"}),editType:"plot"},hoverformat:Rn.hoverformat,uirevision:{valType:"any",editType:"none"},editType:"calc"};Z0(Dpt,kpt,Cpt);var Fpt={visible:Z0({},Rn.visible,{dflt:!0}),type:{valType:"enumerated",values:["-","linear","category"],dflt:"-",editType:"calc",_noTemplating:!0},autotypenumbers:Rn.autotypenumbers,categoryorder:Rn.categoryorder,categoryarray:Rn.categoryarray,thetaunit:{valType:"enumerated",values:["radians","degrees"],dflt:"degrees",editType:"calc"},period:{valType:"number",editType:"calc",min:0},direction:{valType:"enumerated",values:["counterclockwise","clockwise"],dflt:"counterclockwise",editType:"calc"},rotation:{valType:"angle",editType:"calc"},hoverformat:Rn.hoverformat,uirevision:{valType:"any",editType:"none"},editType:"calc"};Z0(Fpt,kpt,Cpt);Lpt.exports={domain:DPr({name:"polar",editType:"plot"}),sector:{valType:"info_array",items:[{valType:"number",editType:"plot"},{valType:"number",editType:"plot"}],dflt:[0,360],editType:"plot"},hole:{valType:"number",min:0,max:1,dflt:0,editType:"plot"},bgcolor:{valType:"color",editType:"plot",dflt:CPr.background},radialaxis:Dpt,angularaxis:Fpt,gridshape:{valType:"enumerated",values:["circular","linear"],dflt:"circular",editType:"plot"},uirevision:{valType:"any",editType:"none"},editType:"calc"}});var zpt=W((zci,Rpt)=>{"use strict";var yN=it(),FPr=ai(),LPr=Ia(),PPr=Kb(),IPr=Ac().getSubplotData,RPr=lb(),zPr=Sw(),BPr=Cy(),qPr=Dy(),OPr=XF(),NPr=DM(),UPr=wH(),VPr=Lw(),Ipt=Qse(),GPr=Wse(),xN=(cN(),Pt(uN)),Ppt=xN.axisNames;function HPr(e,t,r,i){var n=r("bgcolor");i.bgColor=FPr.combine(n,i.paper_bgcolor);var a=r("sector");r("hole");var o=IPr(i.fullData,xN.name,i.id),s=i.layoutOut,l;function u(R,F){return r(l+"."+R,F)}for(var c=0;c{"use strict";var $Pr=Ac().getSubplotCalcData,WPr=it().counterRegex,YPr=Jse(),qpt=(cN(),Pt(uN)),Opt=qpt.attr,q3=qpt.name,Bpt=WPr(q3),Npt={};Npt[Opt]={valType:"subplotid",dflt:q3,editType:"calc"};function XPr(e){for(var t=e._fullLayout,r=e.calcdata,i=t._subplots[q3],n=0;n{"use strict";var{hovertemplateAttrs:KPr,texttemplateAttrs:JPr,templatefallbackAttrs:Vpt}=$a(),_N=nn().extendFlat,QPr=M1(),K0=Hs(),e9r=Ka(),ST=K0.line;Gpt.exports={mode:K0.mode,r:{valType:"data_array",editType:"calc+clearAxisTypes"},theta:{valType:"data_array",editType:"calc+clearAxisTypes"},r0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes"},dr:{valType:"number",dflt:1,editType:"calc"},theta0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes"},dtheta:{valType:"number",editType:"calc"},thetaunit:{valType:"enumerated",values:["radians","degrees","gradians"],dflt:"degrees",editType:"calc+clearAxisTypes"},text:K0.text,texttemplate:JPr({editType:"plot"},{keys:["r","theta","text"]}),texttemplatefallback:Vpt({editType:"plot"}),hovertext:K0.hovertext,line:{color:ST.color,width:ST.width,dash:ST.dash,backoff:ST.backoff,shape:_N({},ST.shape,{values:["linear","spline"]}),smoothing:ST.smoothing,editType:"calc"},connectgaps:K0.connectgaps,marker:K0.marker,cliponaxis:_N({},K0.cliponaxis,{dflt:!1}),textposition:K0.textposition,textfont:K0.textfont,fill:_N({},K0.fill,{values:["none","toself","tonext"],dflt:"none"}),fillcolor:QPr(),hoverinfo:_N({},e9r.hoverinfo,{flags:["r","theta","text","name"]}),hoveron:K0.hoveron,hovertemplate:KPr(),hovertemplatefallback:Vpt(),selected:K0.selected,unselected:K0.unselected}});var TN=W((Oci,$pt)=>{"use strict";var wN=it(),ET=Wo(),t9r=Cd(),r9r=Kp(),Hpt=Kw(),i9r=Jp(),n9r=E1(),a9r=(A1(),Pt(T1)).PTS_LINESONLY,o9r=x8();function s9r(e,t,r,i){function n(s,l){return wN.coerce(e,t,o9r,s,l)}var a=jpt(e,t,i,n);if(!a){t.visible=!1;return}n("thetaunit"),n("mode",a{"use strict";var l9r=it(),Wpt=Wi();Ypt.exports=function(t,r,i){var n={},a=i[r.subplot]._subplot,o,s;a?(o=a.radialAxis,s=a.angularAxis):(a=i[r.subplot],o=a.radialaxis,s=a.angularaxis);var l=o.c2l(t.r);n.rLabel=Wpt.tickText(o,l,!0).text;var u=s.thetaunit==="degrees"?l9r.rad2deg(t.theta):t.theta;return n.thetaLabel=Wpt.tickText(s,u,!0).text,n}});var Kpt=W((Uci,Zpt)=>{"use strict";var Xpt=un(),u9r=(ta(),Pt(ra)).BADNUM,c9r=Wi(),f9r=Dd(),h9r=k1(),d9r=E0(),p9r=Fd().calcMarkerSize;Zpt.exports=function(t,r){for(var i=t._fullLayout,n=r.subplot,a=i[n].radialaxis,o=i[n].angularaxis,s=a.makeCalcdata(r,"r"),l=o.makeCalcdata(r,"theta"),u=r._length,c=new Array(u),f=0;f{"use strict";var v9r=i5(),Jpt=(ta(),Pt(ra)).BADNUM;Qpt.exports=function(t,r,i){for(var n=r.layers.frontplot.select("g.scatterlayer"),a=r.xaxis,o=r.yaxis,s={xaxis:a,yaxis:o,plot:r.framework,layerClipId:r._hasClipOnAxisFalse?r.clipIds.forTraces:null},l=r.radialAxis,u=r.angularAxis,c=0;c{"use strict";var g9r=s5();function m9r(e,t,r,i){var n=g9r(e,t,r,i);if(!(!n||n[0].index===!1)){var a=n[0];if(a.index===void 0)return n;var o=e.subplot,s=a.cd[a.index],l=a.trace;if(o.isPtInside(s))return a.xLabelVal=void 0,a.yLabelVal=void 0,tvt(s,l,o,a),a.hovertemplate=l.hovertemplate,n}}function tvt(e,t,r,i){var n=r.radialAxis,a=r.angularAxis;n._hovertitle="r",a._hovertitle="\u03B8";var o={};o[t.subplot]={_subplot:r};var s=t._module.formatLabels(e,t,o);i.rLabel=s.rLabel,i.thetaLabel=s.thetaLabel;var l=e.hi||t.hoverinfo,u=[];function c(h,p){u.push(h._hovertitle+": "+p)}if(!t.hovertemplate){var f=l.split("+");f.indexOf("all")!==-1&&(f=["r","theta","text"]),f.indexOf("r")!==-1&&c(n,i.rLabel),f.indexOf("theta")!==-1&&c(a,i.thetaLabel),f.indexOf("text")!==-1&&i.text&&(u.push(i.text),delete i.text),i.extraText=u.join("
")}}rvt.exports={hoverPoints:m9r,makeHoverPointText:tvt}});var nvt=W((Hci,ivt)=>{"use strict";ivt.exports={moduleType:"trace",name:"scatterpolar",basePlotModule:bN(),categories:["polar","symbols","showLegend","scatter-like"],attributes:x8(),supplyDefaults:TN().supplyDefaults,colorbar:kc(),formatLabels:AN(),calc:Kpt(),plot:evt(),style:oh().style,styleOnSelect:oh().styleOnSelect,hoverPoints:MN().hoverPoints,selectPoints:Rb(),meta:{}}});var ovt=W((jci,avt)=>{"use strict";avt.exports=nvt()});var ele=W((Yci,lvt)=>{"use strict";var svt=x8(),{cliponaxis:$ci,hoveron:Wci}=svt,y9r=C8(svt,["cliponaxis","hoveron"]),{connectgaps:x9r,line:{color:b9r,dash:_9r,width:w9r},fill:T9r,fillcolor:A9r,marker:M9r,textfont:S9r,textposition:E9r}=OE();lvt.exports=_a(dn({},y9r),{connectgaps:x9r,fill:T9r,fillcolor:A9r,line:{color:b9r,dash:_9r,editType:"calc",width:w9r},marker:M9r,textfont:S9r,textposition:E9r})});var fvt=W((Zci,cvt)=>{"use strict";var uvt=it(),tle=Wo(),k9r=TN().handleRThetaDefaults,C9r=Cd(),D9r=Kp(),F9r=Jp(),L9r=E1(),P9r=(A1(),Pt(T1)).PTS_LINESONLY,I9r=ele();cvt.exports=function(t,r,i,n){function a(s,l){return uvt.coerce(t,r,I9r,s,l)}var o=k9r(t,r,n,a);if(!o){r.visible=!1;return}a("thetaunit"),a("mode",o{"use strict";var R9r=AN();hvt.exports=function(t,r,i){var n=t.i;return"r"in t||(t.r=r._r[n]),"theta"in t||(t.theta=r._theta[n]),R9r(t,r,i)}});var vvt=W((Jci,pvt)=>{"use strict";var z9r=Dd(),B9r=Fd().calcMarkerSize,q9r=V_(),O9r=Wi(),N9r=(O2(),Pt(q2)).TOO_MANY_POINTS;pvt.exports=function(t,r){var i=t._fullLayout,n=r.subplot,a=i[n].radialaxis,o=i[n].angularaxis,s=r._r=a.makeCalcdata(r,"r"),l=r._theta=o.makeCalcdata(r,"theta"),u=r._length,c={};u{"use strict";var U9r=qR(),V9r=MN().makeHoverPointText;function G9r(e,t,r,i){var n=e.cd,a=n[0].t,o=a.r,s=a.theta,l=U9r.hoverPoints(e,t,r,i);if(!(!l||l[0].index===!1)){var u=l[0];if(u.index===void 0)return l;var c=e.subplot,f=u.cd[u.index],h=u.trace;if(f.r=o[u.index],f.theta=s[u.index],!!c.isPtInside(f))return u.xLabelVal=void 0,u.yLabelVal=void 0,V9r(f,h,c,u),l}}gvt.exports={hoverPoints:G9r}});var xvt=W((efi,yvt)=>{"use strict";yvt.exports={moduleType:"trace",name:"scatterpolargl",basePlotModule:bN(),categories:["gl","regl","polar","symbols","showLegend","scatter-like"],attributes:ele(),supplyDefaults:fvt(),colorbar:kc(),formatLabels:dvt(),calc:vvt(),hoverPoints:mvt().hoverPoints,selectPoints:Fee(),meta:{}}});var bvt=W((tfi,rle)=>{"use strict";var H9r=VR(),j9r=un(),$9r=Pte(),W9r=kee(),SN=V_(),EN=it(),Y9r=(O2(),Pt(q2)).TOO_MANY_POINTS,X9r={};rle.exports=function(t,r,i){if(i.length){var n=r.radialAxis,a=r.angularAxis,o=W9r(t,r);return i.forEach(function(s){if(!(!s||!s[0]||!s[0].trace)){var l=s[0],u=l.trace,c=l.t,f=u._length,h=c.r,p=c.theta,d=c.opts,v,m=h.slice(),g=p.slice();for(v=0;v=Y9r&&(d.marker.cluster=c.tree),d.marker&&(d.markerSel.positions=d.markerUnsel.positions=d.marker.positions=w),d.line&&w.length>1&&EN.extendFlat(d.line,SN.linePositions(t,u,w)),d.text&&(EN.extendFlat(d.text,{positions:w},SN.textPosition(t,u,d.text,d.marker)),EN.extendFlat(d.textSel,{positions:w},SN.textPosition(t,u,d.text,d.markerSel)),EN.extendFlat(d.textUnsel,{positions:w},SN.textPosition(t,u,d.text,d.markerUnsel))),d.fill&&!o.fill2d&&(o.fill2d=!0),d.marker&&!o.scatter2d&&(o.scatter2d=!0),d.line&&!o.line2d&&(o.line2d=!0),d.text&&!o.glText&&(o.glText=!0),o.lineOptions.push(d.line),o.fillOptions.push(d.fill),o.markerOptions.push(d.marker),o.markerSelectedOptions.push(d.markerSel),o.markerUnselectedOptions.push(d.markerUnsel),o.textOptions.push(d.text),o.textSelectedOptions.push(d.textSel),o.textUnselectedOptions.push(d.textUnsel),o.selectBatch.push([]),o.unselectBatch.push([]),c.x=_,c.y=b,c.rawx=_,c.rawy=b,c.r=h,c.theta=p,c.positions=w,c._scene=o,c.index=o.count,o.count++}}),$9r(t,r,i)}};rle.exports.reglPrecompiled=X9r});var Tvt=W((rfi,wvt)=>{"use strict";var _vt=xvt();_vt.plot=bvt();wvt.exports=_vt});var Mvt=W((ifi,Avt)=>{"use strict";Avt.exports=Tvt()});var ile=W((nfi,Svt)=>{"use strict";var{hovertemplateAttrs:Z9r,templatefallbackAttrs:K9r}=$a(),kT=nn().extendFlat,kx=x8(),Cx=F1();Svt.exports={r:kx.r,theta:kx.theta,r0:kx.r0,dr:kx.dr,theta0:kx.theta0,dtheta:kx.dtheta,thetaunit:kx.thetaunit,base:kT({},Cx.base,{}),offset:kT({},Cx.offset,{}),width:kT({},Cx.width,{}),text:kT({},Cx.text,{}),hovertext:kT({},Cx.hovertext,{}),marker:J9r(),hoverinfo:kx.hoverinfo,hovertemplate:Z9r(),hovertemplatefallback:K9r(),selected:Cx.selected,unselected:Cx.unselected};function J9r(){var e=kT({},Cx.marker);return delete e.cornerradius,e}});var nle=W((afi,Evt)=>{"use strict";Evt.exports={barmode:{valType:"enumerated",values:["stack","overlay"],dflt:"stack",editType:"calc"},bargap:{valType:"number",dflt:.1,min:0,max:1,editType:"calc"}}});var Dvt=W((ofi,Cvt)=>{"use strict";var kvt=it(),Q9r=TN().handleRThetaDefaults,eIr=PL(),tIr=ile();Cvt.exports=function(t,r,i,n){function a(s,l){return kvt.coerce(t,r,tIr,s,l)}var o=Q9r(t,r,n,a);if(!o){r.visible=!1;return}a("thetaunit"),a("base"),a("offset"),a("width"),a("text"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback"),eIr(t,r,a,i,n),kvt.coerceSelectionMarkerOpacity(r,a)}});var Lvt=W((sfi,Fvt)=>{"use strict";var rIr=it(),iIr=nle();Fvt.exports=function(e,t,r){var i={},n;function a(l,u){return rIr.coerce(e[n]||{},t[n],iIr,l,u)}for(var o=0;o{"use strict";var Pvt=Mc().hasColorscale,Ivt=tf(),nIr=it().isArrayOrTypedArray,aIr=$M(),oIr=Ib().setGroupPositions,sIr=E0(),lIr=xi().traceIs,uIr=it().extendFlat;function cIr(e,t){for(var r=e._fullLayout,i=t.subplot,n=r[i].radialaxis,a=r[i].angularaxis,o=n.makeCalcdata(t,"r"),s=a.makeCalcdata(t,"theta"),l=t._length,u=new Array(l),c=o,f=s,h=0;h{"use strict";var zvt=gi(),kN=un(),CT=it(),hIr=en(),ole=hN();Bvt.exports=function(t,r,i){var n=t._context.staticPlot,a=r.xaxis,o=r.yaxis,s=r.radialAxis,l=r.angularAxis,u=dIr(r),c=r.layers.frontplot.select("g.barlayer");CT.makeTraceGroups(c,i,"trace bars").each(function(){var f=zvt.select(this),h=CT.ensureSingle(f,"g","points"),p=h.selectAll("g.point").data(CT.identity);p.enter().append("g").style("vector-effect",n?"none":"non-scaling-stroke").style("stroke-miterlimit",2).classed("point",!0),p.exit().remove(),p.each(function(d){var v=zvt.select(this),m=d.rp0=s.c2p(d.s0),g=d.rp1=s.c2p(d.s1),w=d.thetag0=l.c2g(d.p0),_=d.thetag1=l.c2g(d.p1),b;if(!kN(m)||!kN(g)||!kN(w)||!kN(_)||m===g||w===_)b="M0,0Z";else{var S=s.c2g(d.s1),x=(w+_)/2;d.ct=[a.c2p(S*Math.cos(x)),o.c2p(S*Math.sin(x))],b=u(m,g,w,_)}CT.ensureSingle(v,"path").attr("d",b)}),hIr.setClipUrl(f,r._hasClipOnAxisFalse?r.clipIds.forTraces:null,t)})};function dIr(e){var t=e.cxx,r=e.cyy;return e.vangles?function(i,n,a,o){var s,l;CT.angleDelta(a,o)>0?(s=a,l=o):(s=o,l=a);var u=ole.findEnclosingVertexAngles(s,e.vangles)[0],c=ole.findEnclosingVertexAngles(l,e.vangles)[1],f=[u,(s+l)/2,c];return ole.pathPolygonAnnulus(i,n,s,l,f,t,r)}:function(i,n,a,o){return CT.pathAnnulus(i,n,a,o,t,r)}}});var Nvt=W((cfi,Ovt)=>{"use strict";var pIr=Ls(),sle=it(),vIr=_5().getTraceColor,gIr=sle.fillText,mIr=MN().makeHoverPointText,yIr=hN().isPtInsidePolygon;Ovt.exports=function(t,r,i){var n=t.cd,a=n[0].trace,o=t.subplot,s=o.radialAxis,l=o.angularAxis,u=o.vangles,c=u?yIr:sle.isPtInsideSector,f=t.maxHoverDistance,h=l._period||2*Math.PI,p=Math.abs(s.g2p(Math.sqrt(r*r+i*i))),d=Math.atan2(i,r);s.range[0]>s.range[1]&&(d+=Math.PI);var v=function(_){return c(p,d,[_.rp0,_.rp1],[_.thetag0,_.thetag1],u)?f+Math.min(1,Math.abs(_.thetag1-_.thetag0)/h)-1+(_.rp1-p)/(_.rp1-_.rp0)-1:1/0};if(pIr.getClosest(n,v,t),t.index!==!1){var m=t.index,g=n[m];t.x0=t.x1=g.ct[0],t.y0=t.y1=g.ct[1];var w=sle.extendFlat({},g,{r:g.s,theta:g.p});return gIr(g,a,t),mIr(w,a,o,t),t.hovertemplate=a.hovertemplate,t.color=vIr(a,g),t.xLabelVal=t.yLabelVal=void 0,g.s<0&&(t.idealAlign="left"),[t]}}});var Vvt=W((ffi,Uvt)=>{"use strict";Uvt.exports={moduleType:"trace",name:"barpolar",basePlotModule:bN(),categories:["polar","bar","showLegend"],attributes:ile(),layoutAttributes:nle(),supplyDefaults:Dvt(),supplyLayoutDefaults:Lvt(),calc:ale().calc,crossTraceCalc:ale().crossTraceCalc,plot:qvt(),colorbar:kc(),formatLabels:AN(),style:Rd().style,styleOnSelect:Rd().styleOnSelect,hoverPoints:Nvt(),selectPoints:w5(),meta:{}}});var Hvt=W((hfi,Gvt)=>{"use strict";Gvt.exports=Vvt()});var lle={};Kn(lle,{attr:()=>xIr,axisName2dataArray:()=>wIr,axisNames:()=>_Ir,name:()=>bIr});var xIr,bIr,_Ir,wIr,ule=Ci(()=>{"use strict";xIr="subplot",bIr="smith",_Ir=["realaxis","imaginaryaxis"],wIr={imaginaryaxis:"imag",realaxis:"real"}});var cle=W((dfi,Yvt)=>{"use strict";var TIr=jl(),cl=nc(),AIr=fs().attributes,Dx=it().extendFlat,jvt=cs().overrideAll,$vt=jvt({color:cl.color,showline:Dx({},cl.showline,{dflt:!0}),linecolor:cl.linecolor,linewidth:cl.linewidth,showgrid:Dx({},cl.showgrid,{dflt:!0}),gridcolor:cl.gridcolor,gridwidth:cl.gridwidth,griddash:cl.griddash},"plot","from-root"),Wvt=jvt({ticklen:cl.ticklen,tickwidth:Dx({},cl.tickwidth,{dflt:2}),tickcolor:cl.tickcolor,showticklabels:cl.showticklabels,labelalias:cl.labelalias,showtickprefix:cl.showtickprefix,tickprefix:cl.tickprefix,showticksuffix:cl.showticksuffix,ticksuffix:cl.ticksuffix,tickfont:cl.tickfont,tickformat:cl.tickformat,hoverformat:cl.hoverformat,layer:cl.layer},"plot","from-root"),MIr=Dx({visible:Dx({},cl.visible,{dflt:!0}),tickvals:{dflt:[.2,.5,1,2,5],valType:"data_array",editType:"plot"},tickangle:Dx({},cl.tickangle,{dflt:90}),ticks:{valType:"enumerated",values:["top","bottom",""],editType:"ticks"},side:{valType:"enumerated",values:["top","bottom"],dflt:"top",editType:"plot"},editType:"calc"},$vt,Wvt),SIr=Dx({visible:Dx({},cl.visible,{dflt:!0}),tickvals:{valType:"data_array",editType:"plot"},ticks:cl.ticks,editType:"calc"},$vt,Wvt);Yvt.exports={domain:AIr({name:"smith",editType:"plot"}),bgcolor:{valType:"color",editType:"plot",dflt:TIr.background},realaxis:MIr,imaginaryaxis:SIr,editType:"calc"}});var Kvt=W((pfi,Zvt)=>{"use strict";var DT=it(),EIr=ai(),kIr=Ia(),CIr=Kb(),DIr=Ac().getSubplotData,FIr=Dy(),LIr=Cy(),PIr=DM(),IIr=f1(),FT=cle(),fle=(ule(),Pt(lle)),Xvt=fle.axisNames,RIr=BIr(function(e){return DT.isTypedArray(e)&&(e=Array.from(e)),e.slice().reverse().map(function(t){return-t}).concat([0]).concat(e)},String);function zIr(e,t,r,i){var n=r("bgcolor");i.bgColor=EIr.combine(n,i.paper_bgcolor);var a=DIr(i.fullData,fle.name,i.id),o=i.layoutOut,s;function l(S,x){return r(s+"."+S,x)}for(var u=0;u{"use strict";var qIr=Ac().getSubplotCalcData,OIr=it().counterRegex,NIr=Jse(),Qvt=(ule(),Pt(lle)),e1t=Qvt.attr,O3=Qvt.name,Jvt=OIr(O3),t1t={};t1t[e1t]={valType:"subplotid",dflt:O3,editType:"calc"};function UIr(e){for(var t=e._fullLayout,r=e.calcdata,i=t._subplots[O3],n=0;n{"use strict";var{hovertemplateAttrs:GIr,texttemplateAttrs:HIr,templatefallbackAttrs:n1t}=$a(),CN=nn().extendFlat,jIr=M1(),J0=Hs(),$Ir=Ka(),LT=J0.line;a1t.exports={mode:J0.mode,real:{valType:"data_array",editType:"calc+clearAxisTypes"},imag:{valType:"data_array",editType:"calc+clearAxisTypes"},text:J0.text,texttemplate:HIr({editType:"plot"},{keys:["real","imag","text"]}),texttemplatefallback:n1t({editType:"plot"}),hovertext:J0.hovertext,line:{color:LT.color,width:LT.width,dash:LT.dash,backoff:LT.backoff,shape:CN({},LT.shape,{values:["linear","spline"]}),smoothing:LT.smoothing,editType:"calc"},connectgaps:J0.connectgaps,marker:J0.marker,cliponaxis:CN({},J0.cliponaxis,{dflt:!1}),textposition:J0.textposition,textfont:J0.textfont,fill:CN({},J0.fill,{values:["none","toself","tonext"],dflt:"none"}),fillcolor:jIr(),hoverinfo:CN({},$Ir.hoverinfo,{flags:["real","imag","text","name"]}),hoveron:J0.hoveron,hovertemplate:GIr(),hovertemplatefallback:n1t(),selected:J0.selected,unselected:J0.unselected}});var l1t=W((mfi,s1t)=>{"use strict";var DN=it(),PT=Wo(),WIr=Cd(),YIr=Kp(),o1t=Kw(),XIr=Jp(),ZIr=E1(),KIr=(A1(),Pt(T1)).PTS_LINESONLY,JIr=hle();s1t.exports=function(t,r,i,n){function a(l,u){return DN.coerce(t,r,JIr,l,u)}var o=QIr(t,r,n,a);if(!o){r.visible=!1;return}a("mode",o{"use strict";var u1t=Wi();c1t.exports=function(t,r,i){var n={},a=i[r.subplot]._subplot;return n.realLabel=u1t.tickText(a.radialAxis,t.real,!0).text,n.imagLabel=u1t.tickText(a.angularAxis,t.imag,!0).text,n}});var p1t=W((xfi,d1t)=>{"use strict";var h1t=un(),eRr=(ta(),Pt(ra)).BADNUM,tRr=Dd(),rRr=k1(),iRr=E0(),nRr=Fd().calcMarkerSize;d1t.exports=function(t,r){for(var i=t._fullLayout,n=r.subplot,a=i[n].realaxis,o=i[n].imaginaryaxis,s=a.makeCalcdata(r,"real"),l=o.makeCalcdata(r,"imag"),u=r._length,c=new Array(u),f=0;f{"use strict";var aRr=i5(),v1t=(ta(),Pt(ra)).BADNUM,oRr=Zse(),sRr=oRr.smith;g1t.exports=function(t,r,i){for(var n=r.layers.frontplot.select("g.scatterlayer"),a=r.xaxis,o=r.yaxis,s={xaxis:a,yaxis:o,plot:r.framework,layerClipId:r._hasClipOnAxisFalse?r.clipIds.forTraces:null},l=0;l{"use strict";var lRr=s5();function uRr(e,t,r,i){var n=lRr(e,t,r,i);if(!(!n||n[0].index===!1)){var a=n[0];if(a.index===void 0)return n;var o=e.subplot,s=a.cd[a.index],l=a.trace;if(o.isPtInside(s))return a.xLabelVal=void 0,a.yLabelVal=void 0,y1t(s,l,o,a),a.hovertemplate=l.hovertemplate,n}}function y1t(e,t,r,i){var n=r.radialAxis,a=r.angularAxis;n._hovertitle="real",a._hovertitle="imag";var o={};o[t.subplot]={_subplot:r};var s=t._module.formatLabels(e,t,o);i.realLabel=s.realLabel,i.imagLabel=s.imagLabel;var l=e.hi||t.hoverinfo,u=[];function c(h,p){u.push(h._hovertitle+": "+p)}if(!t.hovertemplate){var f=l.split("+");f.indexOf("all")!==-1&&(f=["real","imag","text"]),f.indexOf("real")!==-1&&c(n,i.realLabel),f.indexOf("imag")!==-1&&c(a,i.imagLabel),f.indexOf("text")!==-1&&i.text&&(u.push(i.text),delete i.text),i.extraText=u.join("
")}}x1t.exports={hoverPoints:uRr,makeHoverPointText:y1t}});var w1t=W((wfi,_1t)=>{"use strict";_1t.exports={moduleType:"trace",name:"scattersmith",basePlotModule:i1t(),categories:["smith","symbols","showLegend","scatter-like"],attributes:hle(),supplyDefaults:l1t(),colorbar:kc(),formatLabels:f1t(),calc:p1t(),plot:m1t(),style:oh().style,styleOnSelect:oh().styleOnSelect,hoverPoints:b1t().hoverPoints,selectPoints:Rb(),meta:{}}});var A1t=W((Tfi,T1t)=>{"use strict";T1t.exports=w1t()});var ple=W((Afi,M1t)=>{"use strict";var cRr=Ka(),fRr=$a().hovertemplateAttrs,FN=ws().axisHoverFormat,dle=nn().extendFlat,hRr=Fo(),dRr=Ru().dash,pRr=jy(),N3=Hs(),vRr={x:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0},x0:N3.x0,dx:N3.dx,y:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0},y0:N3.y0,dy:N3.dy,u:{valType:"data_array",editType:"calc",anim:!0},v:{valType:"data_array",editType:"calc",anim:!0},arrowref:{valType:"enumerated",values:["paper","data"],dflt:"data",editType:"calc"},lengthmode:{valType:"enumerated",values:["scaled","raw"],editType:"calc",dflt:"scaled"},lengthfactor:{valType:"number",min:0,editType:"calc",dflt:1},anchor:{valType:"enumerated",values:["tip","tail","center"],dflt:"tail",editType:"calc"},xhoverformat:FN("x"),yhoverformat:FN("y"),uhoverformat:FN("u","noDate"),vhoverformat:FN("v","noDate"),hoverinfo:dle({},cRr.hoverinfo,{flags:["x","y","u","v","text","name"],dflt:"all"}),hovertemplate:fRr({},{keys:["x","y","u","v","text","name"]}),text:N3.text,textposition:N3.textposition,textfont:N3.textfont,marker:dle({arrowsize:dle({},pRr.arrowsize,{editType:"calc"}),line:{width:{valType:"number",min:0,dflt:2,editType:"style"},dash:dRr,editType:"style"},editType:"calc"},hRr("marker",{showScaleDflt:!0,editTypeOverride:"calc"})),selected:{marker:{color:{valType:"color",editType:"style"},line:{width:{valType:"number",min:0,editType:"style"},editType:"style"},editType:"style"},textfont:{color:{valType:"color",editType:"style"},editType:"style"},editType:"style"},unselected:{marker:{color:{valType:"color",editType:"style"},line:{width:{valType:"number",min:0,editType:"style"},editType:"style"},editType:"style"},textfont:{color:{valType:"color",editType:"style"},editType:"style"},editType:"style"}};M1t.exports=vRr});var E1t=W((Mfi,S1t)=>{"use strict";var b8=it(),gRr=ple(),mRr=Lb(),yRr=Mc().hasColorscale,xRr=zu();S1t.exports=function(t,r,i,n){function a(d,v){return b8.coerce(t,r,gRr,d,v)}var o=mRr(t,r,n,a);if(!o){r.visible=!1;return}var s=a("u"),l=a("v");if(!b8.isArrayOrTypedArray(s)||s.length===0){r.u=new Array(o);for(var u=0;u{"use strict";var Jm=it(),IT=Wi(),_8=un(),k1t=(ta(),Pt(ra)).BADNUM,bRr=tf(),_Rr=E0(),wRr=.97;C1t.exports=function(t,r){let i=r._xA=IT.getFromId(t,r.xaxis||"x","x"),n=r._yA=IT.getFromId(t,r.yaxis||"y","y"),a=i.makeCalcdata(r,"x"),o=n.makeCalcdata(r,"y"),s=Math.min(a.length,o.length);r._length=s;let l=new Array(s);var u=1/0,c=-1/0,f=1/0,h=-1/0;let p=r.marker.color,d=Jm.isArrayOrTypedArray(p),v=r.u||[],m=r.v||[],{anchor:g,lengthmode:w,arrowref:_}=r,b=g==="tip",S=g==="center";for(var x=1/0,T=-1/0,A=1/0,y=-1/0,E=1/0,M=-1/0,C=1/0,k=-1/0,D=0,L=0;LT&&(T=a[L]),o[L]y&&(y=o[L]),IM&&(M=I),Bk&&(k=B);var O=Math.sqrt(I*I+B*B);if(O>c&&(c=O),Oh&&(h=$))}}else P.x=k1t,P.y=k1t}if(r._maxNorm=c,w==="scaled"||_==="paper"){let G=T-x,H=y-A;var Y;G===0&&H===0?Y=1:Y=(G+H+Math.sqrt((G-H)*(G-H)+4*D*G*H))/(2*(D-1)),Y*=wRr,r._scaleFactor=Y/r._maxNorm}else r._scaleFactor=1;r._scaleFactor*=r.lengthfactor;let K=new Array(s),j=new Array(s),q=new Array(s),Q=new Array(s);for(var U,V,L=0;L{"use strict";F1t.exports=function(t,r){}});var LN=W((kfi,R1t)=>{"use strict";var vle=gi(),P1t=it(),w8=en(),TRr=es(),ARr=(qg(),Pt(Bg)).DESELECTDIM;function gle(e,t){var r=t.marker||{},i=TRr.makeColorScaleFuncFromTrace(r);e.style("stroke",function(n){var a=r.color,o;if(P1t.isArrayOrTypedArray(a)&&a.length>n.i&&isFinite(a[n.i]))o=a[n.i];else{var s=t.u&&t.u[n.i]||0,l=t.v&&t.v[n.i]||0;o=Math.sqrt(s*s+l*l)}return n.mcc=i(o),n.mcc})}function MRr(e){var t=vle.select(e).selectAll("g.trace.quiver");t.each(function(r){I1t(e,r,vle.select(this))})}function SRr(e,t,r){I1t(e,t,r)}function I1t(e,t,r){var i=t[0].trace,n=i.marker||{},a=n.line||{},o=P1t.isArrayOrTypedArray(n.color)?void 0:n.color,s=i._hasColorscale;if(r)if(i.selectedpoints){var l=(i.selected||{}).marker||{},u=(i.unselected||{}).marker||{},c=l.line||{},f=u.line||{};r.selectAll("path.js-line").each(function(p){var d=vle.select(this),v=!p.selected,m=v?u.color:l.color,g=v?f.width!==void 0?f.width:a.width:c.width!==void 0?c.width:a.width;m?(w8.lineGroupStyle(d,g,m,a.dash),d.style("stroke-opacity",1)):(w8.lineGroupStyle(d,g,o,a.dash),s&&gle(d,i),d.style("stroke-opacity",v?ARr:1))}),w8.selectedTextStyle(r.selectAll("text"),i)}else{var h=r.selectAll("path.js-line");h.call(w8.lineGroupStyle,a.width,o,a.dash),s&&gle(h,i),h.style("stroke-opacity",1),w8.textPointStyle(r.selectAll("text"),i,e)}}R1t.exports={style:MRr,styleOnSelect:SRr,colorscaleStroke:gle}});var q1t=W((Cfi,B1t)=>{"use strict";var Rv=gi(),ERr=it(),T8=en(),kRr=LN().colorscaleStroke,PN=Math.PI/12,CRr=5.8,DRr=1.5,FRr=.7;B1t.exports=function(t,r,i,n,a,o){var s,l,u=!a,c=!!a&&a.duration>0;if(s=n.selectAll("g.trace").data(i,function(h){return h[0].trace.uid}),s.enter().append("g").attr("class",function(h){return"trace quiver trace"+h[0].trace.uid}).style("stroke-miterlimit",2),s.order(),c){o&&(l=o());var f=Rv.transition().duration(a.duration).ease(a.easing).each("end",function(){l&&l()}).each("interrupt",function(){l&&l()});f.each(function(){n.selectAll("g.trace").each(function(h,p){z1t(t,p,r,h,i,this,a)})})}else s.each(function(h,p){z1t(t,p,r,h,i,this,a)});u&&s.exit().remove()};function z1t(e,t,r,i,n,a,o){var s=i[0].trace,l=r.xaxis,u=r.yaxis;i[0][r.isRangePlot?"nodeRangePlot3":"node3"]=Rv.select(a);var c=Rv.select(a).selectAll("g.lines").data([i]);c.enter().append("g").classed("lines",!0),T8.setClipUrl(c,r.layerClipId,e);var f=c.selectAll("path.js-line").data(i);f.enter().append("path").classed("js-line",!0).style("vector-effect","non-scaling-stroke"),f.exit().remove();let{anchor:h,maxNorm:p=0,arrowref:d}=s,v=d==="paper"?s._scaleFactor*Math.sqrt(Math.abs(l._m*u._m)):s._scaleFactor,m=s.marker.arrowsize;f.each(function(T){let A=Rv.select(this);if(T.x===void 0||T.y===void 0){A.attr("d",null);return}let y=(d==="paper"?T._u*Math.sign(l._m):Rv.round(l._m*T._u))*v,E=(d==="paper"?T._v*Math.sign(u._m):Rv.round(u._m*T._v))*v,M=(s._input.marker||{}).arrowsize!==void 0;var C,k,D,L;h==="tip"?(C=l.c2p(T.x)-y,D=u.c2p(T.y)-E,k=l.c2p(T.x),L=u.c2p(T.y)):h==="center"?(C=l.c2p(T.x)-y/2,D=u.c2p(T.y)-E/2,k=l.c2p(T.x)+y/2,L=u.c2p(T.y)+E/2):(C=l.c2p(T.x),D=u.c2p(T.y),k=l.c2p(T.x)+y,L=u.c2p(T.y)+E),T._px0=C,T._py0=D,T._px1=k,T._py1=L;var P=s.marker.line.width;M||(P=Math.max(P,DRr));let R=Math.sqrt((k-C)*(k-C)+(L-D)*(L-D)),F=FRr*R,I=Math.min(CRr*m*P,F),B=Math.atan2(L-D,k-C),O=k-I*Math.cos(B-PN),$=L-I*Math.sin(B-PN),Y=k-I*Math.cos(B+PN),K=L-I*Math.sin(B+PN),j="M"+C+","+D+"L"+k+","+L+"L"+O+","+$+"L"+k+","+L+"L"+Y+","+K;A.attr("d",j)});var g=s.marker||{},w=g.line||{},_=ERr.isArrayOrTypedArray(g.color)?void 0:g.color;T8.lineGroupStyle(f,w.width,_,w.dash),s._hasColorscale&&kRr(f,s);var b=Rv.select(a).selectAll("g.text").data([i]);b.enter().append("g").classed("text",!0),T8.setClipUrl(b,r.layerClipId,e);var S=b.selectAll("g.textpoint").data(i);if(S.enter().append("g").classed("textpoint",!0).append("text"),S.exit().remove(),S.each(function(T){var A=Rv.select(this),y=T8.translatePoint(T,A.select("text"),l,u);y||A.remove()}),S.selectAll("text").call(T8.textPointStyle,s,e).each(function(T){var A=l.c2p(T.x),y=u.c2p(T.y);Rv.select(this).selectAll("tspan.line").each(function(){Rv.select(this).attr({x:A,y})})}),o&&o.duration>0){var x=Rv.transition().duration(o.duration).ease(o.easing);f.transition(x).style("opacity",1)}}});var U1t=W((Dfi,N1t)=>{"use strict";var O1t=it(),LRr=Ls(),PRr=o5();function IRr(e,t,r,i,n,a){let o=n-r,s=a-i,l=o*o+s*s;if(!l)return Math.sqrt((e-r)*(e-r)+(t-i)*(t-i));var u=((e-r)*o+(t-i)*s)/l;u=Math.max(0,Math.min(1,u));let c=r+u*o,f=i+u*s;return Math.sqrt((e-c)*(e-c)+(t-f)*(t-f))}N1t.exports=function(t,r,i,n){var a=t.cd,o=a[0].trace,s=t.xa,l=t.ya,u=s.c2p(r),c=l.c2p(i),f=function(_){return _._px0===void 0?1/0:IRr(u,c,_._px0,_._py0,_._px1,_._py1)};if(LRr.getClosest(a,f,t),t.index!==!1){var h=a[t.index],p=s.c2p(h.x,!0),d=l.c2p(h.y,!0),v=Math.sqrt((u-p)*(u-p)+(c-d)*(c-d));t.index=h.i;var m=o.u?o.u[h.i]:0,g=o.v?o.v[h.i]:0,w="u: "+m+", v: "+g;return O1t.extendFlat(t,{color:PRr(o,h),x0:p-3,x1:p+3,xLabelVal:h.x,y0:d-3,y1:d+3,yLabelVal:h.y,uLabelVal:m,vLabelVal:g,extraText:w,spikeDistance:v,hovertemplate:o.hovertemplate}),O1t.fillText(h,o,t),[t]}}});var H1t=W((Ffi,G1t)=>{"use strict";var IN=Wi(),V1t=it();G1t.exports=function(t,r,i){var n={},a={_fullLayout:i},o=IN.getFromTrace(a,r,"x"),s=IN.getFromTrace(a,r,"y"),l=t.x,u=t.y;n.xLabel=IN.tickText(o,o.c2l(l),!0).text,n.yLabel=IN.tickText(s,s.c2l(u),!0).text;var c=r.u?r.u[t.i]:0,f=r.v?r.v[t.i]:0,h=r.uhoverformat,p=r.vhoverformat;return n.uLabel=h?V1t.numberFormat(h)(c):String(c),n.vLabel=p?V1t.numberFormat(p)(f):String(f),n}});var $1t=W((Lfi,j1t)=>{"use strict";j1t.exports=function(t,r,i,n,a){return t.x=r.x,t.y=r.y,t.u=i.u?i.u[a]:void 0,t.v=i.v?i.v[a]:void 0,t}});var Y1t=W((Pfi,W1t)=>{"use strict";W1t.exports={moduleType:"trace",name:"quiver",basePlotModule:vl(),categories:["cartesian","svg","showLegend","scatter-like","zoomScale"],attributes:ple(),supplyDefaults:E1t(),calc:D1t(),crossTraceCalc:L1t(),plot:q1t(),style:LN().style,styleOnSelect:LN().styleOnSelect,hoverPoints:U1t(),formatLabels:H1t(),eventData:$1t(),selectPoints:Rb(),colorbar:kc(),animatable:!0,meta:{}}});var Z1t=W((Ifi,X1t)=>{"use strict";X1t.exports=Y1t()});var vf=W((Rfi,J1t)=>{var zN=Gu();function K1t(){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={}}zN(K1t.prototype,{instance:function(e,t){e=(e||"gregorian").toLowerCase(),t=t||"";var r=this._localCals[e+"-"+t];if(!r&&this.calendars[e]&&(r=new this.calendars[e](t),this._localCals[e+"-"+t]=r),!r)throw(this.local.invalidCalendar||this.regionalOptions[""].invalidCalendar).replace(/\{0\}/,e);return r},newDate:function(e,t,r,i,n){return i=(e!=null&&e.year?e.calendar():typeof i=="string"?this.instance(i,n):i)||this.instance(),i.newDate(e,t,r)},substituteDigits:function(e){return function(t){return(t+"").replace(/[0-9]/g,function(r){return e[r]})}},substituteChineseDigits:function(e,t){return function(r){for(var i="",n=0;r>0;){var a=r%10;i=(a===0?"":e[a]+t[n])+i,n++,r=Math.floor(r/10)}return i.indexOf(e[1]+t[1])===0&&(i=i.substr(1)),i||e[0]}}});function mle(e,t,r,i){if(this._calendar=e,this._year=t,this._month=r,this._day=i,this._calendar._validateLevel===0&&!this._calendar.isValid(this._year,this._month,this._day))throw(pa.local.invalidDate||pa.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name)}function RN(e,t){return e=""+e,"000000".substring(0,t-e.length)+e}zN(mle.prototype,{newDate:function(e,t,r){return this._calendar.newDate(e==null?this:e,t,r)},year:function(e){return arguments.length===0?this._year:this.set(e,"y")},month:function(e){return arguments.length===0?this._month:this.set(e,"m")},day:function(e){return arguments.length===0?this._day:this.set(e,"d")},date:function(e,t,r){if(!this._calendar.isValid(e,t,r))throw(pa.local.invalidDate||pa.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name);return this._year=e,this._month=t,this._day=r,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(e,t){return this._calendar.add(this,e,t)},set:function(e,t){return this._calendar.set(this,e,t)},compareTo:function(e){if(this._calendar.name!==e._calendar.name)throw(pa.local.differentCalendars||pa.regionalOptions[""].differentCalendars).replace(/\{0\}/,this._calendar.local.name).replace(/\{1\}/,e._calendar.local.name);var t=this._year!==e._year?this._year-e._year:this._month!==e._month?this.monthOfYear()-e.monthOfYear():this._day-e._day;return t===0?0:t<0?-1:1},calendar:function(){return this._calendar},toJD:function(){return this._calendar.toJD(this)},fromJD:function(e){return this._calendar.fromJD(e)},toJSDate:function(){return this._calendar.toJSDate(this)},fromJSDate:function(e){return this._calendar.fromJSDate(e)},toString:function(){return(this.year()<0?"-":"")+RN(Math.abs(this.year()),4)+"-"+RN(this.month(),2)+"-"+RN(this.day(),2)}});function yle(){this.shortYearCutoff="+10"}zN(yle.prototype,{_validateLevel:0,newDate:function(e,t,r){return e==null?this.today():(e.year&&(this._validate(e,t,r,pa.local.invalidDate||pa.regionalOptions[""].invalidDate),r=e.day(),t=e.month(),e=e.year()),new mle(this,e,t,r))},today:function(){return this.fromJSDate(new Date)},epoch:function(e){var t=this._validate(e,this.minMonth,this.minDay,pa.local.invalidYear||pa.regionalOptions[""].invalidYear);return t.year()<0?this.local.epochs[0]:this.local.epochs[1]},formatYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,pa.local.invalidYear||pa.regionalOptions[""].invalidYear);return(t.year()<0?"-":"")+RN(Math.abs(t.year()),4)},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,pa.local.invalidYear||pa.regionalOptions[""].invalidYear),12},monthOfYear:function(e,t){var r=this._validate(e,t,this.minDay,pa.local.invalidMonth||pa.regionalOptions[""].invalidMonth);return(r.month()+this.monthsInYear(r)-this.firstMonth)%this.monthsInYear(r)+this.minMonth},fromMonthOfYear:function(e,t){var r=(t+this.firstMonth-2*this.minMonth)%this.monthsInYear(e)+this.minMonth;return this._validate(e,r,this.minDay,pa.local.invalidMonth||pa.regionalOptions[""].invalidMonth),r},daysInYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,pa.local.invalidYear||pa.regionalOptions[""].invalidYear);return this.leapYear(t)?366:365},dayOfYear:function(e,t,r){var i=this._validate(e,t,r,pa.local.invalidDate||pa.regionalOptions[""].invalidDate);return i.toJD()-this.newDate(i.year(),this.fromMonthOfYear(i.year(),this.minMonth),this.minDay).toJD()+1},daysInWeek:function(){return 7},dayOfWeek:function(e,t,r){var i=this._validate(e,t,r,pa.local.invalidDate||pa.regionalOptions[""].invalidDate);return(Math.floor(this.toJD(i))+2)%this.daysInWeek()},extraInfo:function(e,t,r){return this._validate(e,t,r,pa.local.invalidDate||pa.regionalOptions[""].invalidDate),{}},add:function(e,t,r){return this._validate(e,this.minMonth,this.minDay,pa.local.invalidDate||pa.regionalOptions[""].invalidDate),this._correctAdd(e,this._add(e,t,r),t,r)},_add:function(e,t,r){if(this._validateLevel++,r==="d"||r==="w"){var i=e.toJD()+t*(r==="w"?this.daysInWeek():1),n=e.calendar().fromJD(i);return this._validateLevel--,[n.year(),n.month(),n.day()]}try{var a=e.year()+(r==="y"?t:0),o=e.monthOfYear()+(r==="m"?t:0),n=e.day(),s=function(c){for(;of-1+c.minMonth;)a++,o-=f,f=c.monthsInYear(a)};r==="y"?(e.month()!==this.fromMonthOfYear(a,o)&&(o=this.newDate(a,e.month(),this.minDay).monthOfYear()),o=Math.min(o,this.monthsInYear(a)),n=Math.min(n,this.daysInMonth(a,this.fromMonthOfYear(a,o)))):r==="m"&&(s(this),n=Math.min(n,this.daysInMonth(a,this.fromMonthOfYear(a,o))));var l=[a,this.fromMonthOfYear(a,o),n];return this._validateLevel--,l}catch(u){throw this._validateLevel--,u}},_correctAdd:function(e,t,r,i){if(!this.hasYearZero&&(i==="y"||i==="m")&&(t[0]===0||e.year()>0!=t[0]>0)){var n={y:[1,1,"y"],m:[1,this.monthsInYear(-1),"m"],w:[this.daysInWeek(),this.daysInYear(-1),"d"],d:[1,this.daysInYear(-1),"d"]}[i],a=r<0?-1:1;t=this._add(e,r*n[0]+a*n[1],n[2])}return e.date(t[0],t[1],t[2])},set:function(e,t,r){this._validate(e,this.minMonth,this.minDay,pa.local.invalidDate||pa.regionalOptions[""].invalidDate);var i=r==="y"?t:e.year(),n=r==="m"?t:e.month(),a=r==="d"?t:e.day();return(r==="y"||r==="m")&&(a=Math.min(a,this.daysInMonth(i,n))),e.date(i,n,a)},isValid:function(e,t,r){this._validateLevel++;var i=this.hasYearZero||e!==0;if(i){var n=this.newDate(e,t,this.minDay);i=t>=this.minMonth&&t-this.minMonth=this.minDay&&r-this.minDay13.5?13:1),u=n-(l>2.5?4716:4715);return u<=0&&u--,this.newDate(u,l,s)},toJSDate:function(e,t,r){var i=this._validate(e,t,r,pa.local.invalidDate||pa.regionalOptions[""].invalidDate),n=new Date(i.year(),i.month()-1,i.day());return n.setHours(0),n.setMinutes(0),n.setSeconds(0),n.setMilliseconds(0),n.setHours(n.getHours()>12?n.getHours()+2:0),n},fromJSDate:function(e){return this.newDate(e.getFullYear(),e.getMonth()+1,e.getDate())}});var pa=J1t.exports=new K1t;pa.cdate=mle;pa.baseCalendar=yle;pa.calendars.gregorian=xle});var Q1t=W(()=>{var ble=Gu(),gc=vf();ble(gc.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"});gc.local=gc.regionalOptions[""];ble(gc.cdate.prototype,{formatDate:function(e,t){return typeof e!="string"&&(t=e,e=""),this._calendar.formatDate(e||"",this,t)}});ble(gc.baseCalendar.prototype,{UNIX_EPOCH:gc.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:1440*60,TICKS_EPOCH:gc.instance().jdEpoch,TICKS_PER_DAY:1440*60*1e7,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(e,t,r){if(typeof e!="string"&&(r=t,t=e,e=""),!t)return"";if(t.calendar()!==this)throw gc.local.invalidFormat||gc.regionalOptions[""].invalidFormat;e=e||this.local.dateFormat,r=r||{};for(var i=r.dayNamesShort||this.local.dayNamesShort,n=r.dayNames||this.local.dayNames,a=r.monthNumbers||this.local.monthNumbers,o=r.monthNamesShort||this.local.monthNamesShort,s=r.monthNames||this.local.monthNames,l=r.calculateWeek||this.local.calculateWeek,u=function(b,S){for(var x=1;_+x1},c=function(b,S,x,T){var A=""+S;if(u(b,T))for(;A.length1},w=function(C,k){var D=g(C,k),L=[2,3,D?4:2,D?4:2,10,11,20]["oyYJ@!".indexOf(C)+1],P=new RegExp("^-?\\d{1,"+L+"}"),R=t.substring(A).match(P);if(!R)throw(gc.local.missingNumberAt||gc.regionalOptions[""].missingNumberAt).replace(/\{0\}/,A);return A+=R[0].length,parseInt(R[0],10)},_=this,b=function(){if(typeof s=="function"){g("m");var C=s.call(_,t.substring(A));return A+=C.length,C}return w("m")},S=function(C,k,D,L){for(var P=g(C,L)?D:k,R=0;R-1){h=1,p=d;for(var M=this.daysInMonth(f,h);p>M;M=this.daysInMonth(f,h))h++,p-=M}return c>-1?this.fromJD(c):this.newDate(f,h,p)},determineDate:function(e,t,r,i,n){r&&typeof r!="object"&&(n=i,i=r,r=null),typeof i!="string"&&(n=i,i="");var a=this,o=function(s){try{return a.parseDate(i,s,n)}catch(f){}s=s.toLowerCase();for(var l=(s.match(/^c/)&&r?r.newDate():null)||a.today(),u=/([+-]?[0-9]+)\s*(d|w|m|y)?/g,c=u.exec(s);c;)l.add(parseInt(c[1],10),c[2]||"d"),c=u.exec(s);return l};return t=t?t.newDate():null,e=e==null?t:typeof e=="string"?o(e):typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?t:a.today().add(e,"d"):a.newDate(e),e}})});var egt=W(()=>{var Fx=vf(),RRr=Gu(),_le=Fx.instance();function BN(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}BN.prototype=new Fx.baseCalendar;RRr(BN.prototype,{name:"Chinese",jdEpoch:17214255e-1,hasYearZero:!1,minMonth:0,firstMonth:0,minDay:1,regionalOptions:{"":{name:"Chinese",epochs:["BEC","EC"],monthNumbers:function(e,t){if(typeof e=="string"){var r=e.match(BRr);return r?r[0]:""}var i=this._validateYear(e),n=e.month(),a=""+this.toChineseMonth(i,n);return t&&a.length<2&&(a="0"+a),this.isIntercalaryMonth(i,n)&&(a+="i"),a},monthNames:function(e){if(typeof e=="string"){var t=e.match(qRr);return t?t[0]:""}var r=this._validateYear(e),i=e.month(),n=this.toChineseMonth(r,i),a=["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"][n-1];return this.isIntercalaryMonth(r,i)&&(a="\u95F0"+a),a},monthNamesShort:function(e){if(typeof e=="string"){var t=e.match(ORr);return t?t[0]:""}var r=this._validateYear(e),i=e.month(),n=this.toChineseMonth(r,i),a=["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"][n-1];return this.isIntercalaryMonth(r,i)&&(a="\u95F0"+a),a},parseMonth:function(e,t){e=this._validateYear(e);var r=parseInt(t),i;if(isNaN(r))t[0]==="\u95F0"&&(i=!0,t=t.substring(1)),t[t.length-1]==="\u6708"&&(t=t.substring(0,t.length-1)),r=1+["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"].indexOf(t);else{var n=t[t.length-1];i=n==="i"||n==="I"}var a=this.toMonthIndex(e,r,i);return a},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(e,t){if(e.year&&(e=e.year()),typeof e!="number"||e<1888||e>2111)throw t.replace(/\{0\}/,this.local.name);return e},toMonthIndex:function(e,t,r){var i=this.intercalaryMonth(e),n=r&&t!==i;if(n||t<1||t>12)throw Fx.local.invalidMonth.replace(/\{0\}/,this.local.name);var a;return i?!r&&t<=i?a=t-1:a=t:a=t-1,a},toChineseMonth:function(e,t){e.year&&(e=e.year(),t=e.month());var r=this.intercalaryMonth(e),i=r?12:11;if(t<0||t>i)throw Fx.local.invalidMonth.replace(/\{0\}/,this.local.name);var n;return r?t>13;return r},isIntercalaryMonth:function(e,t){e.year&&(e=e.year(),t=e.month());var r=this.intercalaryMonth(e);return!!r&&r===t},leapYear:function(e){return this.intercalaryMonth(e)!==0},weekOfYear:function(e,t,r){var i=this._validateYear(e,Fx.local.invalidyear),n=Px[i-Px[0]],a=n>>9&4095,o=n>>5&15,s=n&31,l;l=_le.newDate(a,o,s),l.add(4-(l.dayOfWeek()||7),"d");var u=this.toJD(e,t,r)-l.toJD();return 1+Math.floor(u/7)},monthsInYear:function(e){return this.leapYear(e)?13:12},daysInMonth:function(e,t){e.year&&(t=e.month(),e=e.year()),e=this._validateYear(e);var r=Lx[e-Lx[0]],i=r>>13,n=i?12:11;if(t>n)throw Fx.local.invalidMonth.replace(/\{0\}/,this.local.name);var a=r&1<<12-t?30:29;return a},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(e,t,r){var i=this._validate(e,a,r,Fx.local.invalidDate);e=this._validateYear(i.year()),t=i.month(),r=i.day();var n=this.isIntercalaryMonth(e,t),a=this.toChineseMonth(e,t),o=URr(e,a,r,n);return _le.toJD(o.year,o.month,o.day)},fromJD:function(e){var t=_le.fromJD(e),r=NRr(t.year(),t.month(),t.day()),i=this.toMonthIndex(r.year,r.month,r.isIntercalary);return this.newDate(r.year,i,r.day)},fromString:function(e){var t=e.match(zRr),r=this._validateYear(+t[1]),i=+t[2],n=!!t[3],a=this.toMonthIndex(r,i,n),o=+t[4];return this.newDate(r,a,o)},add:function(e,t,r){var i=e.year(),n=e.month(),a=this.isIntercalaryMonth(i,n),o=this.toChineseMonth(i,n),s=Object.getPrototypeOf(BN.prototype).add.call(this,e,t,r);if(r==="y"){var l=s.year(),u=s.month(),c=this.isIntercalaryMonth(l,o),f=a&&c?this.toMonthIndex(l,o,!0):this.toMonthIndex(l,o,!1);f!==u&&s.month(f)}return s}});var zRr=/^\s*(-?\d\d\d\d|\d\d)[-/](\d?\d)([iI]?)[-/](\d?\d)/m,BRr=/^\d?\d[iI]?/m,qRr=/^闰?十?[一二三四五六七八九]?月/m,ORr=/^闰?十?[一二三四五六七八九]?/m;Fx.calendars.chinese=BN;var Lx=[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],Px=[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 NRr(e,t,r,i){var n,a;if(typeof e=="object")n=e,a=t||{};else{var o=typeof e=="number"&&e>=1888&&e<=2111;if(!o)throw new Error("Solar year outside range 1888-2111");var s=typeof t=="number"&&t>=1&&t<=12;if(!s)throw new Error("Solar month outside range 1 - 12");var l=typeof r=="number"&&r>=1&&r<=31;if(!l)throw new Error("Solar day outside range 1 - 31");n={year:e,month:t,day:r},a=i||{}}var u=Px[n.year-Px[0]],c=n.year<<9|n.month<<5|n.day;a.year=c>=u?n.year:n.year-1,u=Px[a.year-Px[0]];var f=u>>9&4095,h=u>>5&15,p=u&31,d,v=new Date(f,h-1,p),m=new Date(n.year,n.month-1,n.day);d=Math.round((m-v)/(24*3600*1e3));var g=Lx[a.year-Lx[0]],w;for(w=0;w<13;w++){var _=g&1<<12-w?30:29;if(d<_)break;d-=_}var b=g>>13;return!b||w=1888&&e<=2111;if(!s)throw new Error("Lunar year outside range 1888-2111");var l=typeof t=="number"&&t>=1&&t<=12;if(!l)throw new Error("Lunar month outside range 1 - 12");var u=typeof r=="number"&&r>=1&&r<=30;if(!u)throw new Error("Lunar day outside range 1 - 30");var c;typeof i=="object"?(c=!1,a=i):(c=!!i,a=n||{}),o={year:e,month:t,day:r,isIntercalary:c}}var f;f=o.day-1;var h=Lx[o.year-Lx[0]],p=h>>13,d;p&&(o.month>p||o.isIntercalary)?d=o.month:d=o.month-1;for(var v=0;v>9&4095,_=g>>5&15,b=g&31,S=new Date(w,_-1,b+f);return a.year=S.getFullYear(),a.month=1+S.getMonth(),a.day=S.getDate(),a}});var tgt=W(()=>{var U3=vf(),VRr=Gu();function wle(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}wle.prototype=new U3.baseCalendar;VRr(wle.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(r){var t=this._validate(r,this.minMonth,this.minDay,U3.local.invalidYear),r=t.year()+(t.year()<0?1:0);return r%4===3||r%4===-1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,U3.local.invalidYear||U3.regionalOptions[""].invalidYear),13},weekOfYear:function(e,t,r){var i=this.newDate(e,t,r);return i.add(-i.dayOfWeek(),"d"),Math.floor((i.dayOfYear()-1)/7)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,U3.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===13&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(e,t,r){var i=this._validate(e,t,r,U3.local.invalidDate);return e=i.year(),e<0&&e++,i.day()+(i.month()-1)*30+(e-1)*365+Math.floor(e/4)+this.jdEpoch-1},fromJD:function(e){var t=Math.floor(e)+.5-this.jdEpoch,r=Math.floor((t-Math.floor((t+366)/1461))/365)+1;r<=0&&r--,t=Math.floor(e)+.5-this.newDate(r,1,1).toJD();var i=Math.floor(t/30)+1,n=t-(i-1)*30+1;return this.newDate(r,i,n)}});U3.calendars.coptic=wle});var rgt=W(()=>{var Qm=vf(),GRr=Gu();function Tle(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}Tle.prototype=new Qm.baseCalendar;GRr(Tle.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(e){return this._validate(e,this.minMonth,this.minDay,Qm.local.invalidYear),!1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Qm.local.invalidYear),13},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Qm.local.invalidYear),400},weekOfYear:function(e,t,r){var i=this.newDate(e,t,r);return i.add(-i.dayOfWeek(),"d"),Math.floor((i.dayOfYear()-1)/8)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,Qm.local.invalidMonth);return this.daysPerMonth[r.month()-1]},daysInWeek:function(){return 8},dayOfWeek:function(e,t,r){var i=this._validate(e,t,r,Qm.local.invalidDate);return(i.day()+1)%8},weekDay:function(e,t,r){var i=this.dayOfWeek(e,t,r);return i>=2&&i<=6},extraInfo:function(e,t,r){var i=this._validate(e,t,r,Qm.local.invalidDate);return{century:HRr[Math.floor((i.year()-1)/100)+1]||""}},toJD:function(e,t,r){var i=this._validate(e,t,r,Qm.local.invalidDate);return e=i.year()+(i.year()<0?1:0),t=i.month(),r=i.day(),r+(t>1?16:0)+(t>2?(t-2)*32:0)+(e-1)*400+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e+.5)-Math.floor(this.jdEpoch)-1;var t=Math.floor(e/400)+1;e-=(t-1)*400,e+=e>15?16:0;var r=Math.floor(e/32)+1,i=e-(r-1)*32+1;return this.newDate(t<=0?t-1:t,r,i)}});var HRr={20:"Fruitbat",21:"Anchovy"};Qm.calendars.discworld=Tle});var igt=W(()=>{var V3=vf(),jRr=Gu();function Ale(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}Ale.prototype=new V3.baseCalendar;jRr(Ale.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(r){var t=this._validate(r,this.minMonth,this.minDay,V3.local.invalidYear),r=t.year()+(t.year()<0?1:0);return r%4===3||r%4===-1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,V3.local.invalidYear||V3.regionalOptions[""].invalidYear),13},weekOfYear:function(e,t,r){var i=this.newDate(e,t,r);return i.add(-i.dayOfWeek(),"d"),Math.floor((i.dayOfYear()-1)/7)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,V3.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===13&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(e,t,r){var i=this._validate(e,t,r,V3.local.invalidDate);return e=i.year(),e<0&&e++,i.day()+(i.month()-1)*30+(e-1)*365+Math.floor(e/4)+this.jdEpoch-1},fromJD:function(e){var t=Math.floor(e)+.5-this.jdEpoch,r=Math.floor((t-Math.floor((t+366)/1461))/365)+1;r<=0&&r--,t=Math.floor(e)+.5-this.newDate(r,1,1).toJD();var i=Math.floor(t/30)+1,n=t-(i-1)*30+1;return this.newDate(r,i,n)}});V3.calendars.ethiopian=Ale});var ngt=W(()=>{var Ix=vf(),$Rr=Gu();function Mle(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}Mle.prototype=new Ix.baseCalendar;$Rr(Mle.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(e){var t=this._validate(e,this.minMonth,this.minDay,Ix.local.invalidYear);return this._leapYear(t.year())},_leapYear:function(e){return e=e<0?e+1:e,qN(e*7+1,19)<7},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Ix.local.invalidYear),this._leapYear(e.year?e.year():e)?13:12},weekOfYear:function(e,t,r){var i=this.newDate(e,t,r);return i.add(-i.dayOfWeek(),"d"),Math.floor((i.dayOfYear()-1)/7)+1},daysInYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,Ix.local.invalidYear);return e=t.year(),this.toJD(e===-1?1:e+1,7,1)-this.toJD(e,7,1)},daysInMonth:function(e,t){return e.year&&(t=e.month(),e=e.year()),this._validate(e,t,this.minDay,Ix.local.invalidMonth),t===12&&this.leapYear(e)||t===8&&qN(this.daysInYear(e),10)===5?30:t===9&&qN(this.daysInYear(e),10)===3?29:this.daysPerMonth[t-1]},weekDay:function(e,t,r){return this.dayOfWeek(e,t,r)!==6},extraInfo:function(e,t,r){var i=this._validate(e,t,r,Ix.local.invalidDate);return{yearType:(this.leapYear(i)?"embolismic":"common")+" "+["deficient","regular","complete"][this.daysInYear(i)%10-3]}},toJD:function(e,t,r){var i=this._validate(e,t,r,Ix.local.invalidDate);e=i.year(),t=i.month(),r=i.day();var n=e<=0?e+1:e,a=this.jdEpoch+this._delay1(n)+this._delay2(n)+r+1;if(t<7){for(var o=7;o<=this.monthsInYear(e);o++)a+=this.daysInMonth(e,o);for(var o=1;o=this.toJD(t===-1?1:t+1,7,1);)t++;for(var r=ethis.toJD(t,r,this.daysInMonth(t,r));)r++;var i=e-this.toJD(t,r,1)+1;return this.newDate(t,r,i)}});function qN(e,t){return e-t*Math.floor(e/t)}Ix.calendars.hebrew=Mle});var agt=W(()=>{var A8=vf(),WRr=Gu();function Sle(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}Sle.prototype=new A8.baseCalendar;WRr(Sle.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\u012Bs","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(e){var t=this._validate(e,this.minMonth,this.minDay,A8.local.invalidYear);return(t.year()*11+14)%30<11},weekOfYear:function(e,t,r){var i=this.newDate(e,t,r);return i.add(-i.dayOfWeek(),"d"),Math.floor((i.dayOfYear()-1)/7)+1},daysInYear:function(e){return this.leapYear(e)?355:354},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,A8.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===12&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return this.dayOfWeek(e,t,r)!==5},toJD:function(e,t,r){var i=this._validate(e,t,r,A8.local.invalidDate);return e=i.year(),t=i.month(),r=i.day(),e=e<=0?e+1:e,r+Math.ceil(29.5*(t-1))+(e-1)*354+Math.floor((3+11*e)/30)+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e)+.5;var t=Math.floor((30*(e-this.jdEpoch)+10646)/10631);t=t<=0?t-1:t;var r=Math.min(12,Math.ceil((e-29-this.toJD(t,1,1))/29.5)+1),i=e-this.toJD(t,r,1)+1;return this.newDate(t,r,i)}});A8.calendars.islamic=Sle});var ogt=W(()=>{var M8=vf(),YRr=Gu();function Ele(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}Ele.prototype=new M8.baseCalendar;YRr(Ele.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(r){var t=this._validate(r,this.minMonth,this.minDay,M8.local.invalidYear),r=t.year()<0?t.year()+1:t.year();return r%4===0},weekOfYear:function(e,t,r){var i=this.newDate(e,t,r);return i.add(4-(i.dayOfWeek()||7),"d"),Math.floor((i.dayOfYear()-1)/7)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,M8.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===2&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(e,t,r){var i=this._validate(e,t,r,M8.local.invalidDate);return e=i.year(),t=i.month(),r=i.day(),e<0&&e++,t<=2&&(e--,t+=12),Math.floor(365.25*(e+4716))+Math.floor(30.6001*(t+1))+r-1524.5},fromJD:function(e){var t=Math.floor(e+.5),r=t+1524,i=Math.floor((r-122.1)/365.25),n=Math.floor(365.25*i),a=Math.floor((r-n)/30.6001),o=a-Math.floor(a<14?1:13),s=i-Math.floor(o>2?4716:4715),l=r-n-Math.floor(30.6001*a);return s<=0&&s--,this.newDate(s,o,l)}});M8.calendars.julian=Ele});var lgt=W(()=>{var vp=vf(),XRr=Gu();function Cle(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}Cle.prototype=new vp.baseCalendar;XRr(Cle.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(e){return this._validate(e,this.minMonth,this.minDay,vp.local.invalidYear),!1},formatYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,vp.local.invalidYear);e=t.year();var r=Math.floor(e/400);e=e%400,e+=e<0?400:0;var i=Math.floor(e/20);return r+"."+i+"."+e%20},forYear:function(e){if(e=e.split("."),e.length<3)throw"Invalid Mayan year";for(var t=0,r=0;r19||r>0&&i<0)throw"Invalid Mayan year";t=t*20+i}return t},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,vp.local.invalidYear),18},weekOfYear:function(e,t,r){return this._validate(e,t,r,vp.local.invalidDate),0},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,vp.local.invalidYear),360},daysInMonth:function(e,t){return this._validate(e,t,this.minDay,vp.local.invalidMonth),20},daysInWeek:function(){return 5},dayOfWeek:function(e,t,r){var i=this._validate(e,t,r,vp.local.invalidDate);return i.day()},weekDay:function(e,t,r){return this._validate(e,t,r,vp.local.invalidDate),!0},extraInfo:function(e,t,r){var i=this._validate(e,t,r,vp.local.invalidDate),n=i.toJD(),a=this._toHaab(n),o=this._toTzolkin(n);return{haabMonthName:this.local.haabMonths[a[0]-1],haabMonth:a[0],haabDay:a[1],tzolkinDayName:this.local.tzolkinMonths[o[0]-1],tzolkinDay:o[0],tzolkinTrecena:o[1]}},_toHaab:function(e){e-=this.jdEpoch;var t=kle(e+8+340,365);return[Math.floor(t/20)+1,kle(t,20)]},_toTzolkin:function(e){return e-=this.jdEpoch,[sgt(e+20,20),sgt(e+4,13)]},toJD:function(e,t,r){var i=this._validate(e,t,r,vp.local.invalidDate);return i.day()+i.month()*20+i.year()*360+this.jdEpoch},fromJD:function(e){e=Math.floor(e)+.5-this.jdEpoch;var t=Math.floor(e/360);e=e%360,e+=e<0?360:0;var r=Math.floor(e/20),i=e%20;return this.newDate(t,r,i)}});function kle(e,t){return e-t*Math.floor(e/t)}function sgt(e,t){return kle(e-1,t)+1}vp.calendars.mayan=Cle});var cgt=W(()=>{var G3=vf(),ZRr=Gu();function Dle(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}Dle.prototype=new G3.baseCalendar;var ugt=G3.instance("gregorian");ZRr(Dle.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(e){var t=this._validate(e,this.minMonth,this.minDay,G3.local.invalidYear||G3.regionalOptions[""].invalidYear);return ugt.leapYear(t.year()+(t.year()<1?1:0)+1469)},weekOfYear:function(e,t,r){var i=this.newDate(e,t,r);return i.add(1-(i.dayOfWeek()||7),"d"),Math.floor((i.dayOfYear()-1)/7)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,G3.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===12&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(n,t,r){var i=this._validate(n,t,r,G3.local.invalidMonth),n=i.year();n<0&&n++;for(var a=i.day(),o=1;o=this.toJD(t+1,1,1);)t++;for(var r=e-Math.floor(this.toJD(t,1,1)+.5)+1,i=1;r>this.daysInMonth(t,i);)r-=this.daysInMonth(t,i),i++;return this.newDate(t,i,r)}});G3.calendars.nanakshahi=Dle});var fgt=W(()=>{var H3=vf(),KRr=Gu();function Fle(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}Fle.prototype=new H3.baseCalendar;KRr(Fle.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(e){return this.daysInYear(e)!==this.daysPerYear},weekOfYear:function(e,t,r){var i=this.newDate(e,t,r);return i.add(-i.dayOfWeek(),"d"),Math.floor((i.dayOfYear()-1)/7)+1},daysInYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,H3.local.invalidYear);if(e=t.year(),typeof this.NEPALI_CALENDAR_DATA[e]=="undefined")return this.daysPerYear;for(var r=0,i=this.minMonth;i<=12;i++)r+=this.NEPALI_CALENDAR_DATA[e][i];return r},daysInMonth:function(e,t){return e.year&&(t=e.month(),e=e.year()),this._validate(e,t,this.minDay,H3.local.invalidMonth),typeof this.NEPALI_CALENDAR_DATA[e]=="undefined"?this.daysPerMonth[t-1]:this.NEPALI_CALENDAR_DATA[e][t]},weekDay:function(e,t,r){return this.dayOfWeek(e,t,r)!==6},toJD:function(e,t,r){var i=this._validate(e,t,r,H3.local.invalidDate);e=i.year(),t=i.month(),r=i.day();var n=H3.instance(),a=0,o=t,s=e;this._createMissingCalendarData(e);var l=e-(o>9||o===9&&r>=this.NEPALI_CALENDAR_DATA[s][0]?56:57);for(t!==9&&(a=r,o--);o!==9;)o<=0&&(o=12,s--),a+=this.NEPALI_CALENDAR_DATA[s][o],o--;return t===9?(a+=r-this.NEPALI_CALENDAR_DATA[s][0],a<0&&(a+=n.daysInYear(l))):a+=this.NEPALI_CALENDAR_DATA[s][9]-this.NEPALI_CALENDAR_DATA[s][0],n.newDate(l,1,1).add(a,"d").toJD()},fromJD:function(e){var t=H3.instance(),r=t.fromJD(e),i=r.year(),n=r.dayOfYear(),a=i+56;this._createMissingCalendarData(a);for(var o=9,s=this.NEPALI_CALENDAR_DATA[a][0],l=this.NEPALI_CALENDAR_DATA[a][o]-s+1;n>l;)o++,o>12&&(o=1,a++),l+=this.NEPALI_CALENDAR_DATA[a][o];var u=this.NEPALI_CALENDAR_DATA[a][o]-(l-n);return this.newDate(a,o,u)},_createMissingCalendarData:function(e){var t=this.daysPerMonth.slice(0);t.unshift(17);for(var r=e-1;r{var RT=vf(),JRr=Gu();function NN(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}function ON(e){var t=e-475;e<0&&t++;var r=.242197,i=r*t,n=r*(t+1),a=i-Math.floor(i),o=n-Math.floor(n);return a>o}NN.prototype=new RT.baseCalendar;JRr(NN.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","Dey","Bahman","Esfand"],monthNamesShort:["Far","Ord","Kho","Tir","Mor","Sha","Meh","Aba","Aza","Dey","Bah","Esf"],dayNames:["Yekshanbeh","Doshanbeh","Seshanbeh","Chah\u0101rshanbeh","Panjshanbeh","Jom'eh","Shanbeh"],dayNamesShort:["Yek","Do","Se","Cha","Panj","Jom","Sha"],dayNamesMin:["Ye","Do","Se","Ch","Pa","Jo","Sh"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,RT.local.invalidYear);return ON(t.year())},weekOfYear:function(e,t,r){var i=this.newDate(e,t,r);return i.add(-((i.dayOfWeek()+1)%7),"d"),Math.floor((i.dayOfYear()-1)/7)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,RT.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===12&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return this.dayOfWeek(e,t,r)!==5},toJD:function(e,t,r){var i=this._validate(e,t,r,RT.local.invalidDate);e=i.year(),t=i.month(),r=i.day();var n=0;if(e>0)for(var a=1;a0?e-1:e)*365+n+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e)+.5;var t=475+(e-this.toJD(475,1,1))/365.242197,r=Math.floor(t);r<=0&&r--,e>this.toJD(r,12,ON(r)?30:29)&&(r++,r===0&&r++);var i=e-this.toJD(r,1,1)+1,n=i<=186?Math.ceil(i/31):Math.ceil((i-6)/30),a=e-this.toJD(r,n,1)+1;return this.newDate(r,n,a)}});RT.calendars.persian=NN;RT.calendars.jalali=NN});var dgt=W(()=>{var j3=vf(),QRr=Gu(),UN=j3.instance();function Lle(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}Lle.prototype=new j3.baseCalendar;QRr(Lle.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(r){var t=this._validate(r,this.minMonth,this.minDay,j3.local.invalidYear),r=this._t2gYear(t.year());return UN.leapYear(r)},weekOfYear:function(n,t,r){var i=this._validate(n,this.minMonth,this.minDay,j3.local.invalidYear),n=this._t2gYear(i.year());return UN.weekOfYear(n,i.month(),i.day())},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,j3.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===2&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(n,t,r){var i=this._validate(n,t,r,j3.local.invalidDate),n=this._t2gYear(i.year());return UN.toJD(n,i.month(),i.day())},fromJD:function(e){var t=UN.fromJD(e),r=this._g2tYear(t.year());return this.newDate(r,t.month(),t.day())},_t2gYear:function(e){return e+this.yearsOffset+(e>=-this.yearsOffset&&e<=-1?1:0)},_g2tYear:function(e){return e-this.yearsOffset-(e>=1&&e<=this.yearsOffset?1:0)}});j3.calendars.taiwan=Lle});var pgt=W(()=>{var $3=vf(),ezr=Gu(),VN=$3.instance();function Ple(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}Ple.prototype=new $3.baseCalendar;ezr(Ple.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(r){var t=this._validate(r,this.minMonth,this.minDay,$3.local.invalidYear),r=this._t2gYear(t.year());return VN.leapYear(r)},weekOfYear:function(n,t,r){var i=this._validate(n,this.minMonth,this.minDay,$3.local.invalidYear),n=this._t2gYear(i.year());return VN.weekOfYear(n,i.month(),i.day())},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,$3.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===2&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(n,t,r){var i=this._validate(n,t,r,$3.local.invalidDate),n=this._t2gYear(i.year());return VN.toJD(n,i.month(),i.day())},fromJD:function(e){var t=VN.fromJD(e),r=this._g2tYear(t.year());return this.newDate(r,t.month(),t.day())},_t2gYear:function(e){return e-this.yearsOffset-(e>=1&&e<=this.yearsOffset?1:0)},_g2tYear:function(e){return e+this.yearsOffset+(e>=-this.yearsOffset&&e<=-1?1:0)}});$3.calendars.thai=Ple});var vgt=W(()=>{var W3=vf(),tzr=Gu();function Ile(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}Ile.prototype=new W3.baseCalendar;tzr(Ile.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\u0101th\u0101\u2019","Yawm al-Arba\u2018\u0101\u2019","Yawm al-Kham\u012Bs","Yawm al-Jum\u2018a","Yawm al-Sabt"],dayNamesMin:["Ah","Ith","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!0}},leapYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,W3.local.invalidYear);return this.daysInYear(t.year())===355},weekOfYear:function(e,t,r){var i=this.newDate(e,t,r);return i.add(-i.dayOfWeek(),"d"),Math.floor((i.dayOfYear()-1)/7)+1},daysInYear:function(e){for(var t=0,r=1;r<=12;r++)t+=this.daysInMonth(e,r);return t},daysInMonth:function(e,t){for(var r=this._validate(e,t,this.minDay,W3.local.invalidMonth),i=r.toJD()-24e5+.5,n=0,a=0;ai)return Rx[n]-Rx[n-1];n++}return 30},weekDay:function(e,t,r){return this.dayOfWeek(e,t,r)!==5},toJD:function(e,t,r){var i=this._validate(e,t,r,W3.local.invalidDate),n=12*(i.year()-1)+i.month()-15292,a=i.day()+Rx[n-1]-1;return a+24e5-.5},fromJD:function(e){for(var t=e-24e5+.5,r=0,i=0;it);i++)r++;var n=r+15292,a=Math.floor((n-1)/12),o=a+1,s=n-12*a,l=t-Rx[r-1]+1;return this.newDate(o,s,l)},isValid:function(e,t,r){var i=W3.baseCalendar.prototype.isValid.apply(this,arguments);return i&&(e=e.year!=null?e.year:e,i=e>=1276&&e<=1500),i},_validate:function(e,t,r,i){var n=W3.baseCalendar.prototype._validate.apply(this,arguments);if(n.year<1276||n.year>1500)throw i.replace(/\{0\}/,this.local.name);return n}});W3.calendars.ummalqura=Ile;var Rx=[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]});var mgt=W((hhi,ggt)=>{"use strict";ggt.exports=vf();Q1t();egt();tgt();rgt();igt();ngt();agt();ogt();lgt();cgt();fgt();hgt();dgt();pgt();vgt()});var Agt=W((dhi,Tgt)=>{"use strict";var xgt=mgt(),S8=it(),bgt=(ta(),Pt(ra)),rzr=bgt.EPOCHJD,izr=bgt.ONEDAY,Ble={valType:"enumerated",values:S8.sortObjectKeys(xgt.calendars),editType:"calc",dflt:"gregorian"},_gt=function(e,t,r,i){var n={};return n[r]=Ble,S8.coerce(e,t,n,r,i)},nzr=function(e,t,r,i){for(var n=0;n{"use strict";Mgt.exports=Agt()});var czr=W((vhi,kgt)=>{var Egt=x6e();Egt.register([_Te(),lAe(),AMe(),jMe(),aSe(),QSe(),hEe(),eke(),Cke(),fCe(),KCe(),TIe(),hRe(),rBe(),GBe(),bqe(),Hqe(),rNe(),_Ne(),ONe(),KNe(),fUe(),SUe(),VUe(),MGe(),jGe(),cZe(),cKe(),hJe(),qJe(),lut(),Tut(),Wut(),aft(),kft(),lht(),D0t(),tdt(),wdt(),Ydt(),lpt(),ovt(),Mvt(),Hvt(),A1t(),Z1t(),Sgt()]);kgt.exports=Egt});return czr();})(); +);color.rgb=1.0-exp(-1.0*color.rgb);color=pow(color,vec4(1.0/2.2));fragColor=vec4(color.rgb,1.0-color.a)*u_atmosphere_blend;}`,"layout(location=0) in vec2 a_pos;uniform mat4 u_inv_proj_matrix;out vec3 view_direction;void main() {view_direction=(u_inv_proj_matrix*vec4(a_pos,0.0,1.0)).xyz;gl_Position=vec4(a_pos,0.0,1.0);}"),sky:go("uniform vec4 u_sky_color;uniform vec4 u_horizon_color;uniform vec2 u_horizon;uniform vec2 u_horizon_normal;uniform float u_sky_horizon_blend;uniform float u_sky_blend;uniform vec3 u_globe_position;uniform float u_globe_radius;uniform float u_atmosphere_blend;in vec3 v_view_direction;const float ATMOSPHERE_HEIGHT_TO_GLOBE_RADIUS=100000.0/6371000.0;void main() {float x=gl_FragCoord.x;float y=gl_FragCoord.y;float blend=(y-u_horizon.y)*u_horizon_normal.y+(x-u_horizon.x)*u_horizon_normal.x;float opacity=1.0;if (u_sky_blend > 0.0) {vec3 ray=normalize(v_view_direction);float globe_distance=length(u_globe_position);float angle_to_globe_center=acos(clamp(dot(ray,u_globe_position)/globe_distance,-1.0,1.0));float horizon_angle=asin(min(u_globe_radius/globe_distance,1.0));blend=mix(blend,((angle_to_globe_center-horizon_angle)*u_camera_to_center_distance+1.0)*u_device_pixel_ratio,u_sky_blend);float closest_approach=max(dot(ray,u_globe_position),0.0);float lowest_altitude=sqrt(max(globe_distance*globe_distance-closest_approach*closest_approach,0.0))-u_globe_radius;float atmosphere_height=u_globe_radius*ATMOSPHERE_HEIGHT_TO_GLOBE_RADIUS;float inside_atmosphere=1.0-smoothstep(atmosphere_height,10.0*atmosphere_height,globe_distance-u_globe_radius);float through_atmosphere=1.0-smoothstep(0.0,atmosphere_height,lowest_altitude);opacity=inside_atmosphere*through_atmosphere*(1.0-u_atmosphere_blend);}if (blend > 0.0) {if (blend < u_sky_horizon_blend) {fragColor=mix(u_sky_color,u_horizon_color,pow(1.0-blend/u_sky_horizon_blend,2.0));} else {fragColor=u_sky_color;}}fragColor*=mix(1.0,opacity,u_sky_blend);}","layout(location=0) in vec2 a_pos;uniform mat4 u_inv_proj_matrix;out vec3 v_view_direction;void main() {v_view_direction=(u_inv_proj_matrix*vec4(a_pos,0.0,1.0)).xyz;gl_Position=vec4(a_pos,1.0,1.0);}")};Lst="#define PROJECTION_MERCATOR",Pst="mercator",coe=class{constructor(){this._cachedMesh=null}get name(){return"mercator"}get useSubdivision(){return!1}get shaderVariantName(){return Pst}get shaderDefine(){return Lst}get shaderPreludeCode(){return dg.projectionMercator}get vertexShaderPreludeCode(){return dg.projectionMercator.vertexSource}get subdivisionGranularity(){return Aq.noSubdivision}get useGlobeControls(){return!1}get transitionState(){return 0}destroy(){}getMeshFromTileID(e,t,r,i,n){if(this._cachedMesh)return this._cachedMesh;let a=new Hm;a.emplaceBack(0,0),a.emplaceBack(qr,0),a.emplaceBack(0,qr),a.emplaceBack(qr,qr);let o=e.createVertexBuffer(a,T3.members),s=Js.simpleSegment(0,0,4,2),l=new Rv;l.emplaceBack(1,0,2),l.emplaceBack(1,2,3);let u=e.createIndexBuffer(l);return this._cachedMesh=new e8(o,u,s),this._cachedMesh}recalculate(){}hasTransition(){return!1}},foe=class Ist{constructor(t=0,r=0,i=0,n=0){if(isNaN(t)||t<0||isNaN(r)||r<0||isNaN(i)||i<0||isNaN(n)||n<0)throw Error("Invalid value for edge-insets, top, bottom, left and right must all be numbers");this.top=t,this.bottom=r,this.left=i,this.right=n}interpolate(t,r,i){return r.top!=null&&t.top!=null&&(this.top=Ks.number(t.top,r.top,i)),r.bottom!=null&&t.bottom!=null&&(this.bottom=Ks.number(t.bottom,r.bottom,i)),r.left!=null&&t.left!=null&&(this.left=Ks.number(t.left,r.left,i)),r.right!=null&&t.right!=null&&(this.right=Ks.number(t.right,r.right,i)),this}getCenter(t,r){let i=ea((this.left+t-this.right)/2,0,t),n=ea((this.top+r-this.bottom)/2,0,r);return new rr(i,n)}equals(t){return this.top===t.top&&this.bottom===t.bottom&&this.left===t.left&&this.right===t.right}clone(){return new Ist(this.top,this.bottom,this.left,this.right)}toJSON(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}}};Loe=class{constructor(e,t){var r;this.applyConstrain=(i,n)=>this._constrainOverride===null?this._callbacks.defaultConstrain(i,n):this._constrainOverride(i,n),this._callbacks=e,this._tileSize=512,this._renderWorldCopies=(t==null?void 0:t.renderWorldCopies)===void 0||!!(t!=null&&t.renderWorldCopies),this._minZoom=(t==null?void 0:t.minZoom)||0,this._maxZoom=(t==null?void 0:t.maxZoom)||22,this._minPitch=(t==null?void 0:t.minPitch)===void 0||(t==null?void 0:t.minPitch)===null?0:t==null?void 0:t.minPitch,this._maxPitch=(t==null?void 0:t.maxPitch)===void 0||(t==null?void 0:t.maxPitch)===null?60:t==null?void 0:t.maxPitch,this._constrainOverride=(r=t==null?void 0:t.constrainOverride)!=null?r:null,this.setMaxBounds(),this._width=0,this._height=0,this._center=new yn(0,0),this._elevation=0,this._zoom=0,this._tileZoom=got(this._zoom),this._scale=Vf(this._zoom),this._bearingInRadians=0,this._fovInRadians=.6435011087932844,this._pitchInRadians=0,this._rollInRadians=0,this._unmodified=!0,this._edgeInsets=new foe,this._minElevationForCurrentTile=0,this._autoCalculateNearFarZ=!0}apply(e,t){this._constrainOverride=e.constrainOverride,this._latRange=e.latRange,this._lngRange=e.lngRange,this._width=e.width,this._height=e.height,this._center=e.center,this._elevation=e.elevation,this._minElevationForCurrentTile=e.minElevationForCurrentTile,this._zoom=e.zoom,this._tileZoom=got(this._zoom),this._scale=Vf(this._zoom),this._bearingInRadians=e.bearingInRadians,this._fovInRadians=e.fovInRadians,this._pitchInRadians=e.pitchInRadians,this._rollInRadians=e.rollInRadians,this._unmodified=e.unmodified,this._edgeInsets=new foe(e.padding.top,e.padding.bottom,e.padding.left,e.padding.right),this._minZoom=e.minZoom,this._maxZoom=e.maxZoom,this._minPitch=e.minPitch,this._maxPitch=e.maxPitch,this._renderWorldCopies=e.renderWorldCopies,this._cameraToCenterDistance=e.cameraToCenterDistance,this._nearZ=e.nearZ,this._farZ=e.farZ,this._autoCalculateNearFarZ=e.autoCalculateNearFarZ,t&&this.constrainInternal(),this._calcMatrices()}get pixelsToClipSpaceMatrix(){return this._pixelsToClipSpaceMatrix}get clipSpaceToPixelsMatrix(){return this._clipSpaceToPixelsMatrix}get minElevationForCurrentTile(){return this._minElevationForCurrentTile}setMinElevationForCurrentTile(e){this._minElevationForCurrentTile=e}get tileSize(){return this._tileSize}get tileZoom(){return this._tileZoom}get scale(){return this._scale}get width(){return this._width}get height(){return this._height}get bearingInRadians(){return this._bearingInRadians}get lngRange(){return this._lngRange}get latRange(){return this._latRange}get pixelsToGLUnits(){return this._pixelsToGLUnits}get minZoom(){return this._minZoom}setMinZoom(e){if(this._minZoom===e)return;this._minZoom=e;let t=this._unmodified;this.setZoom(this.applyConstrain(this._center,this.zoom).zoom),this._unmodified=t}get maxZoom(){return this._maxZoom}setMaxZoom(e){if(this._maxZoom===e)return;this._maxZoom=e;let t=this._unmodified;this.setZoom(this.applyConstrain(this._center,this.zoom).zoom),this._unmodified=t}get minPitch(){return this._minPitch}setMinPitch(e){if(this._minPitch===e)return;this._minPitch=e;let t=this._unmodified;this.setPitch(Math.max(this.pitch,e)),this._unmodified=t}get maxPitch(){return this._maxPitch}setMaxPitch(e){if(this._maxPitch===e)return;this._maxPitch=e;let t=this._unmodified;this.setPitch(Math.min(this.pitch,e)),this._unmodified=t}get renderWorldCopies(){return this._renderWorldCopies}setRenderWorldCopies(e){e===void 0?e=!0:e===null&&(e=!1),this._renderWorldCopies=e}get constrainOverride(){return this._constrainOverride}setConstrainOverride(e){e===void 0&&(e=null),this._constrainOverride!==e&&(this._constrainOverride=e,this.constrainInternal(),this._calcMatrices())}get worldSize(){return this._tileSize*this._scale}get centerOffset(){return this.centerPoint._sub(this.size._div(2))}get size(){return new rr(this._width,this._height)}get bearing(){return this._bearingInRadians/Math.PI*180}setBearing(e){let t=W0(e,-180,180)*Math.PI/180;this._bearingInRadians!==t&&(this._unmodified=!1,this._bearingInRadians=t,this._calcMatrices(),this._rotationMatrix=Jot(),qTr(this._rotationMatrix,this._rotationMatrix,-this._bearingInRadians))}get rotationMatrix(){return this._rotationMatrix}get pitchInRadians(){return this._pitchInRadians}get pitch(){return this._pitchInRadians/Math.PI*180}setPitch(e){let t=ea(e,this.minPitch,this.maxPitch)/180*Math.PI;this._pitchInRadians!==t&&(this._unmodified=!1,this._pitchInRadians=t,this._calcMatrices())}get rollInRadians(){return this._rollInRadians}get roll(){return this._rollInRadians/Math.PI*180}setRoll(e){let t=e/180*Math.PI;this._rollInRadians!==t&&(this._unmodified=!1,this._rollInRadians=t,this._calcMatrices())}get fovInRadians(){return this._fovInRadians}get fov(){return kv(this._fovInRadians)}setFov(e){e=ea(e,.1,150),this.fov!==e&&(this._unmodified=!1,this._fovInRadians=Os(e),this._calcMatrices())}get zoom(){return this._zoom}setZoom(e){let t=this.applyConstrain(this._center,e).zoom;this._zoom!==t&&(this._unmodified=!1,this._zoom=t,this._tileZoom=Math.max(0,Math.floor(t)),this._scale=Vf(t),this.constrainInternal(),this._calcMatrices())}get center(){return this._center}setCenter(e){(e.lat!==this._center.lat||e.lng!==this._center.lng)&&(this._unmodified=!1,this._center=e,this.constrainInternal(),this._calcMatrices())}get elevation(){return this._elevation}setElevation(e){e!==this._elevation&&(this._elevation=e,this.constrainInternal(),this._calcMatrices())}get padding(){return this._edgeInsets.toJSON()}setPadding(e){this._edgeInsets.equals(e)||(this._unmodified=!1,this._edgeInsets.interpolate(this._edgeInsets,e,1),this._calcMatrices())}get centerPoint(){return this._edgeInsets.getCenter(this._width,this._height)}get pixelsPerMeter(){return this._pixelPerMeter}get unmodified(){return this._unmodified}get cameraToCenterDistance(){return this._cameraToCenterDistance}get nearZ(){return this._nearZ}get farZ(){return this._farZ}get autoCalculateNearFarZ(){return this._autoCalculateNearFarZ}overrideNearFarZ(e,t){this._autoCalculateNearFarZ=!1,this._nearZ=e,this._farZ=t,this._calcMatrices()}clearNearFarZOverride(){this._autoCalculateNearFarZ=!0,this._calcMatrices()}isPaddingEqual(e){return this._edgeInsets.equals(e)}interpolatePadding(e,t,r){this._unmodified=!1,this._edgeInsets.interpolate(e,t,r),this.constrainInternal(),this._calcMatrices()}resize(e,t,r=!0){this._width=e,this._height=t,r&&this.constrainInternal(),this._calcMatrices()}getMaxBounds(){var e,t;return((e=this._latRange)==null?void 0:e.length)!==2||((t=this._lngRange)==null?void 0:t.length)!==2?null:new qv([this._lngRange[0],this._latRange[0]],[this._lngRange[1],this._latRange[1]])}setMaxBounds(e){e?(this._lngRange=[e.getWest(),e.getEast()],this._latRange=[e.getSouth(),e.getNorth()],this.constrainInternal()):(this._lngRange=null,this._latRange=[-Pv,Pv])}getCameraQueryGeometry(e,t){if(t.length===1)return[t[0],e];{let{minX:r,minY:i,maxX:n,maxY:a}=lp.fromPoints(t).extend(e);return[new rr(r,i),new rr(n,i),new rr(n,a),new rr(r,a),new rr(r,i)]}}constrainInternal(){if(!this.center||!this._width||!this._height||this._constraining)return;this._constraining=!0;let e=this._unmodified,{center:t,zoom:r}=this.applyConstrain(this.center,this.zoom);this.setCenter(t),this.setZoom(r),this._unmodified=e,this._constraining=!1}_calcMatrices(){if(this._pixelPerMeter=gx(1,this.center.lat)*this.worldSize,!this._width||!this._height)return;this._pixelsToGLUnits=[2/this._width,-2/this._height];let e=up(new Float64Array(16));Nc(e,e,[this._width/2,-this._height/2,1]),lu(e,e,[1,-1,0]),this._clipSpaceToPixelsMatrix=e,e=up(new Float64Array(16)),Nc(e,e,[1,-1,1]),lu(e,e,[-1,-1,0]),Nc(e,e,[2/this._width,2/this._height,1]),this._pixelsToClipSpaceMatrix=e;let t=this.fovInRadians/2;this._cameraToCenterDistance=.5/Math.tan(t)*this._height,this._callbacks.calcMatrices()}calculateCenterFromCameraLngLatAlt(e,t,r,i){let n=r===void 0?this.bearing:r,a=i=i===void 0?this.pitch:i,{distanceToCenter:o,clampedElevation:s}=this._distanceToCenterFromAltElevationPitch(t,this.elevation,a),{x:l,y:u}=Eq(a,n),c=Mo.fromLngLat(e,t),f=nae(1,c.y),h,p,d=0;do{if(d+=1,d>10)break;p=o/f;let v=l*p,m=u*p;h=new Mo(c.x+v,c.y+m),f=1/h.meterInMercatorCoordinateUnits()}while(Math.abs(o-p*f)>1e-12);return{center:h.toLngLat(),elevation:s,zoom:Vc(this.height/2/Math.tan(this.fovInRadians/2)/p/this.tileSize)}}recalculateZoomAndCenter(e){if(this.elevation-e===0)return;let t=1/this.worldSize,r=gx(1,this.center.lat)*this.worldSize,i=Mo.fromLngLat(this.center,this.elevation),n=i.x/t,a=i.y/t,o=i.z/t,s=this.pitch,l=this.bearing,{x:u,y:c,z:f}=Eq(s,l),h=this.cameraToCenterDistance,p=n+h*-u,d=a+h*-c,v=o+h*f,{distanceToCenter:m,clampedElevation:g}=this._distanceToCenterFromAltElevationPitch(v/r,e,s),w=m*r,_=p+u*w,b=d+c*w,S=new Mo(_*t,b*t,0).toLngLat(),x=gx(1,S.lat),A=Vc(this.height/2/Math.tan(this.fovInRadians/2)/m/x/this.tileSize);this._elevation=g,this._center=S,this.setZoom(A)}_distanceToCenterFromAltElevationPitch(e,t,r){let i=-Math.cos(Os(r)),n=e-t,a,o=t;return i*n>=0||Math.abs(i)=0?1<i}allowWorldCopies(){return!0}prepareNextFrame(){}},JAr=cl([{name:"a_pos3d",type:"Int16",components:3}]),QAr=class extends cu{constructor(e){super(),this._lastTilesetChange=zo(),this.tileManager=e,this._tiles={},this._renderableTilesKeys=[],this._sourceTileCache={},this.minzoom=0,this.maxzoom=22,this.deltaZoom=1,this.tileSize=e._source.tileSize*2**this.deltaZoom,e.usedForTerrain=!0,e.tileSize=this.tileSize}destruct(){this.tileManager.usedForTerrain=!1,this.tileManager.tileSize=null,this.releaseAllRTT()}getSource(){return this.tileManager._source}update(e,t){this.tileManager.update(e,t),this._renderableTilesKeys=[];let r={},i=!1;for(let n of u6(e,{tileSize:this.tileSize,minzoom:this.minzoom,maxzoom:this.maxzoom,reparseOverscaled:!1,terrain:t}))r[n.key]=!0,this._renderableTilesKeys.push(n.key),this._tiles[n.key]||(n.terrainRttPosMatrix32f=new Float32Array(16),Lv(n.terrainRttPosMatrix32f,0,qr,qr,0,0,1),this._tiles[n.key]=new wst(n,this.tileSize),this._lastTilesetChange=zo(),i=!0);for(let n in this._tiles)r[n]||(this._tiles[n].releaseRTT(this.tileManager.map.painter),delete this._tiles[n],i=!0);return i}releaseRTT(e){for(let t in this._tiles){let r=this._tiles[t];(r.tileID.equals(e)||r.tileID.isChildOf(e)||e.isChildOf(r.tileID))&&r.releaseRTT(this.tileManager.map.painter)}}releaseAllRTT(){for(let e in this._tiles)this._tiles[e].releaseRTT(this.tileManager.map.painter)}getRenderableTiles(){return this._renderableTilesKeys.map(e=>this.getTileByID(e))}getTileByID(e){return this._tiles[e]}getTerrainCoords(e,t){return t?this._getTerrainCoordsForTileRanges(e,t):this._getTerrainCoordsForRegularTile(e)}_getTerrainCoordsForRegularTile(e){let t={};for(let r of this._renderableTilesKeys){let i=this._tiles[r].tileID,n=e.clone(),a=dx();if(i.canonical.equals(e.canonical))Lv(a,0,qr,qr,0,0,1);else if(i.canonical.isChildOf(e.canonical)){let o=i.canonical.z-e.canonical.z,s=i.canonical.x-(i.canonical.x>>o<>o<>o;Lv(a,0,u,u,0,0,1),lu(a,a,[-s*u,-l*u,0])}else if(e.canonical.isChildOf(i.canonical)){let o=e.canonical.z-i.canonical.z,s=e.canonical.x-(e.canonical.x>>o<>o<>o;Lv(a,0,qr,qr,0,0,1),lu(a,a,[s*u,l*u,0]),Nc(a,a,[1/2**o,1/2**o,0])}else continue;n.terrainRttPosMatrix32f=new Float32Array(a),t[r]=n}return t}_getTerrainCoordsForTileRanges(e,t){let r={};for(let i of this._renderableTilesKeys){let n=this._tiles[i].tileID;if(!this._isWithinTileRanges(n,t))continue;let a=e.clone(),o=dx();if(n.canonical.z===e.canonical.z){let s=e.canonical.x-n.canonical.x+e.wrap*(1<e.canonical.z){let s=n.canonical.z-e.canonical.z,l=n.canonical.x-(n.canonical.x>>s<>s<>s),f=e.canonical.y-(n.canonical.y>>s),h=qr>>s;Lv(o,0,h,h,0,0,1),lu(o,o,[-l*h+c*qr,-u*h+f*qr,0])}else{let s=e.canonical.z-n.canonical.z,l=e.canonical.x-(e.canonical.x>>s<>s<>s)-n.canonical.x,f=(e.canonical.y>>s)-n.canonical.y,h=qr<r.maxzoom&&(i=r.maxzoom),i=r.minzoom&&!(n!=null&&n.dem);)n=this.findTileInCaches(e.scaledTo(i--).key);return n}findTileInCaches(e){let t=this.tileManager.getTileByID(e);return t||(t=this.tileManager._outOfViewCache.getByKey(e),t)}anyTilesAfterTime(e=zo()){return this._lastTilesetChange>=e}_isWithinTileRanges(e,t){let r=t[e.canonical.z];return!!r&&(e.wrap>r.minWrap||e.wrap=r.minTileXWrapped&&e.canonical.x<=r.maxTileXWrapped&&e.canonical.y>=r.minTileY&&e.canonical.y<=r.maxTileY)}},mot=qr*(1-1e-12),yot=-.5,eMr=class{constructor(e,t,r,i="auto"){this._meshCache={},this.painter=e,this.tileManager=new QAr(t),this.options=r,this.exaggeration=typeof r.exaggeration=="number"?r.exaggeration:1,this._terrainSkirtLength=i,this.qualityFactor=2,this.meshSize=128,this._demMatrixCache=new Map,this._elevationSamplerCache=new Map}destroy(){this._fbo&&(this._fbo=(this._fbo.destroy(),null)),this._fboDepthTexture&&(this._fboDepthTexture=(this._fboDepthTexture.destroy(),null)),this._emptyDemTexture&&(this._emptyDemTexture=(this._emptyDemTexture.destroy(),null)),this._emptyDepthTexture&&(this._emptyDepthTexture=(this._emptyDepthTexture.destroy(),null));for(let e in this._meshCache)this._meshCache[e].destroy();this._meshCache={},this.tileManager.destruct()}getDEMElevation(e,t,r,i=qr){let n=e.normalizeCoordinates(t,r,i);if(!n)return 0;let a=this.getElevationSampler(n.tileID);return a?a(n.x,n.y,i):0}getElevationForLngLatZoom(e,t){if(!pae(t,e.wrap()))return 0;let{tileID:r,mercatorX:i,mercatorY:n}=this._getOverscaledTileIDFromLngLatZoom(e,t);return this.getElevation(r,i%qr,n%qr,qr)}getElevationForLngLat(e,t){let r=this.getCoverageIndex();if(r){let a=Mo.fromLngLat(e),o=Poe(r,this.exaggeration,a.x,a.y);if(o.demLoaded)return o.elevation}let i=u6(t,{maxzoom:this.tileManager.maxzoom,minzoom:this.tileManager.minzoom,tileSize:512,terrain:this}),n=0;for(let a of i)a.canonical.z>n&&(n=Math.min(a.canonical.z,this.tileManager.maxzoom));return this.getElevationForLngLatZoom(e,n)}getElevation(e,t,r,i=qr){return this.getDEMElevation(e,t,r,i)*this.exaggeration}resetElevationCache(){this._elevationSamplerCache.clear(),this._coverageIndex=void 0}getCoverageIndex(){return this._coverageIndex===void 0&&(this._coverageIndex=this._buildCoverageIndex()),this._coverageIndex}_buildCoverageIndex(){let e=[],t=new Map,r=0,i=0;for(let n of this.tileManager.getRenderableTiles()){if(!n)continue;let{canonical:a,wrap:o}=n.tileID;e.includes(a.z)||e.push(a.z);let s=this.getElevationSampler(n.tileID);t.set(`${o}/${a.z}/${a.x}/${a.y}`,s);let{minElevation:l,maxElevation:u}=this.getMinMaxElevation(n.tileID);r=Math.min(r,l!=null?l:0),i=Math.max(i,u!=null?u:0)}return t.size===0?null:(e.sort((n,a)=>a-n),{zooms:e,samplerPerTile:t,minElevation:r-10,maxElevation:i+10})}getElevationSampler(e){let t=e.key,r=this._elevationSamplerCache.get(t);if(r)return r;let i=this.tileManager.getSourceTile(e,!0),n=i==null?void 0:i.dem;if(!i||!n)return null;let a=this._getDEMTileMatrix(e,i),o=a[0]*n.dim,s=a[5]*n.dim,l=a[12]*n.dim+yot,u=a[13]*n.dim+yot,c=(f,h,p)=>{let d=p===8192?1:qr/p;return n.sampleBilinear(f*d*o+l,h*d*s+u)};return this._elevationSamplerCache.set(t,c),c}_getDEMTileMatrix(e,t){let r=`${t.tileID.key}/${e.key}`,i=this._demMatrixCache.get(r);if(i)return i;let n=e.canonical.z-t.tileID.canonical.z,a=e.canonical.x-(e.canonical.x>>n<>n<0,r=t&&e.canonical.y===0,i=t&&e.canonical.y===(1<{n=ea(+n,this.minZoom,this.maxZoom);let a={center:new yn(i.lng,i.lat),zoom:n},o=this._helper._lngRange;!this._helper._renderWorldCopies&&o===null&&(o=[-179.9999999999,180-1e-10]);let s=this.tileSize*Vf(a.zoom),l=0,u=s,c=0,f=s,h=0,p=0,{x:d,y:v}=this.size;if(this._helper._latRange){let S=this._helper._latRange;l=m3(S[1])*s,u=m3(S[0])*s,u-lu&&(_=u-S)}if(o){let S=(c+f)/2,x=m;this._helper._renderWorldCopies&&(x=W0(m,S-s/2,S+s/2));let A=d/2;x-Af&&(w=f-A)}if(w!==void 0||_!==void 0){let S=new rr(w!=null?w:m,_!=null?_:g);a.center=QT(s,S).wrap()}return a},this.applyConstrain=(i,n)=>this._helper.applyConstrain(i,n),this._helper=r!=null?r:new Loe({calcMatrices:()=>this._calcMatrices(),defaultConstrain:(i,n)=>this.defaultConstrain(i,n)},t),this._coveringTilesDetailsProvider=new KAr}clone(){let t=new Bst;return t.apply(this,!1),t}apply(t,r){this._helper.apply(t,r)}get cameraPosition(){return this._cameraPosition}get projectionMatrix(){return this._projectionMatrix}get modelViewProjectionMatrix(){return this._viewProjMatrix}get inverseProjectionMatrix(){return this._invProjMatrix}get mercatorMatrix(){return this._mercatorMatrix}getVisibleUnwrappedCoordinates(t){let r=[new zC(0,t)];if(this._helper._renderWorldCopies){let i=this.screenPointToMercatorCoordinate(new rr(0,0)),n=this.screenPointToMercatorCoordinate(new rr(this._helper._width,0)),a=this.screenPointToMercatorCoordinate(new rr(this._helper._width,this._helper._height)),o=this.screenPointToMercatorCoordinate(new rr(0,this._helper._height)),s=Math.floor(Math.min(i.x,n.x,a.x,o.x)),l=Math.floor(Math.max(i.x,n.x,a.x,o.x));for(let u=s-1;u<=l+1;u++)u!==0&&r.push(new zC(u,t))}return r}getCameraFrustum(){return Soe.fromInvProjectionMatrix(this._invViewProjMatrix,this.worldSize)}getClippingPlane(){return null}getCoveringTilesDetailsProvider(){return this._coveringTilesDetailsProvider}recalculateZoomAndCenter(t){let r=this.screenPointToLocation(this.centerPoint,t),i=t?t.getElevationForLngLat(r,this):0;this._helper.recalculateZoomAndCenter(i)}setLocationAtPoint(t,r,i=this.elevation){let n=i-this.elevation,a=this.screenPointToMercatorCoordinateAtZ(r,n),o=this.screenPointToMercatorCoordinateAtZ(this.centerPoint,0),s=Mo.fromLngLat(t),l=new Mo(s.x-(a.x-o.x),s.y-(a.y-o.y));this.setCenter(l==null?void 0:l.toLngLat()),this._helper._renderWorldCopies&&this.setCenter(this.center.wrap())}locationToScreenPoint(t,r){return r?this.coordinatePoint(Mo.fromLngLat(t),r.getElevationForLngLat(t,this),this._pixelMatrix3D):this.coordinatePoint(Mo.fromLngLat(t))}screenPointToLocation(t,r){var i;return(i=this.screenPointToMercatorCoordinate(t,r))==null?void 0:i.toLngLat()}screenPointToLocationAtElevation(t,r){var i;return(i=this.screenPointToMercatorCoordinateAtZ(t,r-this.elevation))==null?void 0:i.toLngLat()}screenPointToMercatorCoordinate(t,r){if(r){let i=this.screenTerrainPointToMercatorCoordinate(t,r);if(i!=null)return i}return this.screenPointToMercatorCoordinateAtZ(t)}screenTerrainPointToMercatorCoordinate(t,r){let i=r.getCoverageIndex();if(!i)return null;let{near:n,far:a}=this.getRaySegmentFromPixel(t),o=this.worldSize,s=a[0]-n[0],l=a[1]-n[1],u=a[2]-n[2],c={index:i,exaggeration:r.exaggeration,near:n,dx:s,dy:l,dz:u,worldSize:o},f=0,h=1;if(u===0){if(n[2]>i.maxElevation||n[2]h)return null}let p=Math.hypot(s,l),d=ea(Math.ceil(p*(h-f)/4),1,512),v=0,m=!Uq(c,0);for(let g=0;g<=d;g++){let w=f+(h-f)*g/d;if(!m)m=!Uq(c,w);else if(Uq(c,w)){let{lo:_,hi:b}=zst(c,Uq,v,w,.001/p),S=eO(c,_),x=eO(c,b),A=n[2]+_*u-S.elevation,T=n[2]+b*u-x.elevation,y=S.covered&&A>T?ea(_+A*(b-_)/(A-T),_,b):b;return new Mo((n[0]+y*s)/o,(n[1]+y*l)/o,eO(c,y).elevation)}v=w}return null}getRaySegmentFromPixel(t){let r=[t.x,t.y,0,1],i=[t.x,t.y,1,1];Uc(r,r,this._pixelMatrixInverse),Uc(i,i,this._pixelMatrixInverse);let n=r[3],a=i[3],o=this.elevation;return{near:[r[0]/n,r[1]/n,r[2]/n+o],far:[i[0]/a,i[1]/a,i[2]/a+o]}}screenPointToMercatorCoordinateAtZ(t,r){let i=r||0,{near:n,far:a}=this.getRaySegmentFromPixel(t),o=n[2]===a[2]?0:(i+this.elevation-n[2])/(a[2]-n[2]);return new Mo(Ks.number(n[0],a[0],o)/this.worldSize,Ks.number(n[1],a[1],o)/this.worldSize,i)}coordinatePoint(t,r=0,i=this._pixelMatrix){let n=this._coordinateClipPoint(t,r,i),a=n[3];return a>0?new rr(n[0]/a,n[1]/a):this._offScreenPointBehindCamera(n[0],n[1],a)}_coordinateClipPoint(t,r,i){let n=[t.x*this.worldSize,t.y*this.worldSize,r,1];return Uc(n,n,i)}_offScreenPointBehindCamera(t,r,i){let n=this.width/2,a=this.height/2,o=t-n*i,s=r-a*i;o===0&&s===0&&(s=1);let l=n+this.width,u=a+this.height,c=Math.min(o===0?1/0:l/Math.abs(o),s===0?1/0:u/Math.abs(s));return new rr(n+o*c,a+s*c)}getBounds(){let t=Math.max(0,this._helper._height/2-e6(this));return new qv().extend(this.screenPointToLocation(new rr(0,t))).extend(this.screenPointToLocation(new rr(this._helper._width,t))).extend(this.screenPointToLocation(new rr(this._helper._width,this._helper._height))).extend(this.screenPointToLocation(new rr(0,this._helper._height)))}isPointOnMapSurface(t,r){return r?this.screenTerrainPointToMercatorCoordinate(t,r)!=null:t.y>this.centerPoint.y-e6(this)}calculatePosMatrix(t,r=!1,i=!1){var l;let n=(l=t.key)!=null?l:n3(t.wrap,t.canonical.z,t.canonical.z,t.canonical.x,t.canonical.y),a=r?this._alignedPosMatrixCache:this._posMatrixCache;if(a.has(n)){let u=a.get(n);return i?u.f32:u.f64}let o=Sq(t,this.worldSize);c3(o,r?this._alignedProjMatrix:this._viewProjMatrix,o);let s={f64:o,f32:new Float32Array(o)};return a.set(n,s),i?s.f32:s.f64}calculateFogMatrix(t){let r=t.key,i=this._fogMatrixCacheF32;if(i.has(r))return i.get(r);let n=Sq(t,this.worldSize);return c3(n,this._fogMatrix,n),i.set(r,new Float32Array(n)),i.get(r)}calculateCenterFromCameraLngLatAlt(t,r,i,n){return this._helper.calculateCenterFromCameraLngLatAlt(t,r,i,n)}calculateCameraOptionsFromTo(t,r,i,n){let a=Mo.fromLngLat(t,r),o=Mo.fromLngLat(i,n),s=o.x-a.x,l=o.y-a.y,u=o.z-a.z,c=Math.hypot(s,l,u);if(c===0)throw Error("Can't calculate camera options with same From and To");let f=Math.hypot(s,l),h=Vc(this.cameraToCenterDistance/c/this.tileSize),p=kv(Math.atan2(s,-l)),d=kv(Math.acos(f/c));return d=u<0?90-d:90+d,{center:o.toLngLat(),elevation:n,zoom:h,pitch:d,bearing:p}}_calculateNearFarZ(t,r,i){let n=Math.min(this.elevation,this.minElevationForCurrentTile,this.getCameraAltitude()-100),a=t-n*this._helper._pixelPerMeter/Math.cos(r),o=n<0?a:t,s=Math.PI/2+this.pitchInRadians,l=Os(this.fov)*(Math.abs(Math.cos(Os(this.roll)))*this.height+Math.abs(Math.sin(Os(this.roll)))*this.width)/this.height*(.5+i.y/this.height),u=Math.sin(l)*o/Math.sin(ea(Math.PI-s-l,.01,Math.PI-.01)),c=e6(this),f=Math.atan(c/this._helper.cameraToCenterDistance),h=Os(90-mx),p=f>h?2*f*(.5+i.y/(c*2)):h,d=Math.sin(p)*o/Math.sin(ea(Math.PI-s-p,.01,Math.PI-.01)),v=Math.min(u,d);this._helper._farZ=(Math.cos(Math.PI/2-r)*v+o)*1.01,this._helper._nearZ=this._helper._height/50}_calcMatrices(t=this._helper.autoCalculateNearFarZ){let r=this.centerOffset,i=zv(this.worldSize,this.center),n=i.x,a=i.y,o=Os(Math.min(this.pitch,mx)),s=Math.max(this._helper.cameraToCenterDistance/2,this._helper.cameraToCenterDistance+this._helper._elevation*this._helper._pixelPerMeter/Math.cos(o));t&&this._calculateNearFarZ(s,o,r);let l;l=new Float64Array(16),GB(l,this.fovInRadians,this._helper._width/this._helper._height,this._helper._nearZ,this._helper._farZ),this._invProjMatrix=new Float64Array(16),xAr(this._invProjMatrix,l),l[8]=-r.x*2/this._helper._width,l[9]=r.y*2/this._helper._height,this._projectionMatrix=VB(l),Nc(l,l,[1,-1,1]),lu(l,l,[0,0,-this._helper.cameraToCenterDistance]),Nm(l,l,-this.rollInRadians),f3(l,l,this.pitchInRadians),Nm(l,l,-this.bearingInRadians),lu(l,l,[-n,-a,0]),this._mercatorMatrix=Nc([],l,[this.worldSize,this.worldSize,this.worldSize]),Nc(l,l,[1,1,this._helper._pixelPerMeter]),this._pixelMatrix=c3(new Float64Array(16),this.clipSpaceToPixelsMatrix,l),lu(l,l,[0,0,-this.elevation]),this._viewProjMatrix=l,this._invViewProjMatrix=cC([],l);let u=[0,0,-1,1];Uc(u,u,this._invViewProjMatrix),this._cameraPosition=[u[0]/u[3],u[1]/u[3],u[2]/u[3]],this._fogMatrix=new Float64Array(16),GB(this._fogMatrix,this.fovInRadians,this.width/this.height,s,this._helper._farZ),this._fogMatrix[8]=-r.x*2/this.width,this._fogMatrix[9]=r.y*2/this.height,Nc(this._fogMatrix,this._fogMatrix,[1,-1,1]),lu(this._fogMatrix,this._fogMatrix,[0,0,-this.cameraToCenterDistance]),Nm(this._fogMatrix,this._fogMatrix,-this.rollInRadians),f3(this._fogMatrix,this._fogMatrix,this.pitchInRadians),Nm(this._fogMatrix,this._fogMatrix,-this.bearingInRadians),lu(this._fogMatrix,this._fogMatrix,[-n,-a,0]),Nc(this._fogMatrix,this._fogMatrix,[1,1,this._helper._pixelPerMeter]),lu(this._fogMatrix,this._fogMatrix,[0,0,-this.elevation]),this._pixelMatrix3D=c3(new Float64Array(16),this.clipSpaceToPixelsMatrix,l);let c=this._helper._width%2/2,f=this._helper._height%2/2,h=Math.cos(this.bearingInRadians),p=Math.sin(-this.bearingInRadians),d=n-Math.round(n)+h*c+p*f,v=a-Math.round(a)+h*f+p*c,m=new Float64Array(l);if(lu(m,m,[d>.5?d-1:d,v>.5?v-1:v,0]),this._alignedProjMatrix=m,l=cC(new Float64Array(16),this._pixelMatrix),!l)throw Error("failed to invert matrix");this._pixelMatrixInverse=l,this._clearMatrixCaches()}_clearMatrixCaches(){this._posMatrixCache.clear(),this._alignedPosMatrixCache.clear(),this._fogMatrixCacheF32.clear()}maxPitchScaleFactor(){if(!this._pixelMatrixInverse)return 1;let t=this.screenPointToMercatorCoordinate(new rr(0,0)),r=[t.x*this.worldSize,t.y*this.worldSize,0,1];return Uc(r,r,this._pixelMatrix)[3]/this._helper.cameraToCenterDistance}getCameraPoint(){return this._helper.getCameraPoint()}getCameraAltitude(){return Math.cos(this.pitchInRadians)*this.cameraToCenterDistance/this.pixelsPerMeter+this.elevation}getCameraLngLat(){let t=gx(1,this.center.lat)*this.worldSize,r=this._helper.cameraToCenterDistance/t;return oae(this.center,this.elevation,this.pitch,this.bearing,r).toLngLat()}getProjectionData(t){let{overscaledTileID:r,aligned:i,applyTerrainMatrix:n}=t,a=this._helper.getMercatorTileCoordinates(r),o=r?this.calculatePosMatrix(r,i,!0):null,s;return s=r!=null&&r.terrainRttPosMatrix32f&&n?r.terrainRttPosMatrix32f:o||mne(),{mainMatrix:s,tileMercatorCoords:a,clippingPlane:[0,0,0,0],projectionTransition:0,fallbackMatrix:s,clipAntimeridian:!1}}isLocationOccluded(t,r,i){if(!(r!=null&&r.getCoverageIndex()))return!1;let n=Mo.fromLngLat(t);i!=null||(i=r.getElevationForLngLat(t,this));let a=this._coordinateClipPoint(n,i,this._pixelMatrix3D),o=a[3];if(o<=0||a[2]>o)return!0;let s=new rr(a[0]/o,a[1]/o),l=this.screenTerrainPointToMercatorCoordinate(s,r);if(l==null)return!1;let u=this.getRaySegmentFromPixel(s),c=bot(u,n.x*this.worldSize,n.y*this.worldSize,i);return bot(u,l.x*this.worldSize,l.y*this.worldSize,l.z){if(l&&e.setZoom(Ks.number(r,p,_)),bne(n,a)||Ost({startEulerAngles:n,endEulerAngles:a,tr:e,k:_,useSlerp:n.roll!=a.roll}),s&&(e.interpolatePadding(i,t.padding,_),c=e.centerPoint.add(t.offsetAsPoint)),t.around)e.setLocationAtPoint(t.around,t.aroundPoint);else{let b=Vf(e.zoom-r),S=(p>r?Math.min(2,m):Math.max(.5,m))**(1-_),x=QT(e.worldSize,d.add(v.mult(_*S)).mult(b));e.setLocationAtPoint(e.renderWorldCopies?x.wrap():x,c)}},w=this._transformAtAnimationEnd(e,p,a,t.padding);return t.around?w.setLocationAtPoint(t.around,t.aroundPoint):w.setLocationAtPoint(h,w.centerPoint.add(t.offsetAsPoint)),{easeFunc:g,isZooming:l,elevationCenter:w.center}}handleFlyTo(e,t){let r=t.zoom!==void 0,i=e.zoom,n=e.applyConstrain(yn.convert(t.center||t.locationAtOffset),r?+t.zoom:i),a=n.center,o=n.zoom;nO(e,a);let s=e.worldSize,l=zv(s,t.locationAtOffset),u=zv(s,a).sub(l),c=u.mag(),f=Vf(o-i),h=t.minZoom===void 0?e.minZoom:+t.minZoom,p=Math.max(h,e.minZoom),d=Math.min(p,i,o),v=e.applyConstrain(a,d).zoom,m=Vf(v-i),g=(_,b,S,x)=>{e.setZoom(_===1?o:i+Vc(b));let A=_===1?a:QT(s,l.add(u.mult(S)));e.setLocationAtPoint(e.renderWorldCopies?A.wrap():A,x)},w=this._transformAtAnimationEnd(e,o,{roll:t.roll,pitch:t.pitch,bearing:t.bearing},t.padding);return w.setLocationAtPoint(a,w.centerPoint.add(t.offsetAsPoint)),{easeFunc:g,scaleOfZoom:f,targetCenter:w.center,scaleOfMinZoom:m,pixelPathLength:c}}_transformAtAnimationEnd(e,t,r,i){let n=e.clone();return n.setZoom(t),n.setRoll(r.roll),n.setPitch(r.pitch),n.setBearing(r.bearing),n.setPadding(i),n}},tMr=()=>_ot||(_ot=new dc({type:new Pi(_r.projection.type,"type")})),qae=new Aq({fill:new ng(128,2),line:new ng(512,0),tile:new ng(128,32),stencil:new ng(128,1),circle:3}),Ust=class{constructor(){this._tileMeshCache={}}get name(){return"vertical-perspective"}get transitionState(){return 1}get useSubdivision(){return!0}get shaderVariantName(){return"globe"}get shaderDefine(){return"#define GLOBE"}get shaderPreludeCode(){return dg.projectionGlobe}get vertexShaderPreludeCode(){return dg.projectionMercator.vertexSource}get subdivisionGranularity(){return qae}get useGlobeControls(){return!0}destroy(){}_getMeshKey(e){return`${e.granularity.toString(36)}_${e.generateBorders?"b":""}${e.extendToNorthPole?"n":""}${e.extendToSouthPole?"s":""}`}getMeshFromTileID(e,t,r,i,n){let a=(n==="stencil"?qae.stencil:qae.tile).getGranularityForZoomLevel(t.z),o=t.y===0&&i,s=t.y===(1<0}get currentProjection(){return this.useGlobeRendering?this._verticalPerspectiveProjection:this._mercatorProjection}get name(){return"globe"}get useSubdivision(){return this.currentProjection.useSubdivision}get shaderVariantName(){return this.currentProjection.shaderVariantName}get shaderDefine(){return this.currentProjection.shaderDefine}get shaderPreludeCode(){return this.currentProjection.shaderPreludeCode}get vertexShaderPreludeCode(){return this.currentProjection.vertexShaderPreludeCode}get subdivisionGranularity(){return this.currentProjection.subdivisionGranularity}get useGlobeControls(){return this.transitionState>0}destroy(){this._mercatorProjection.destroy(),this._verticalPerspectiveProjection.destroy()}getMeshFromTileID(e,t,r,i,n){return this.currentProjection.getMeshFromTileID(e,t,r,i,n)}setProjection(e){this._transitionable.setValue("type",(e==null?void 0:e.type)||"mercator")}updateTransitions(e){this._transitioning=this._transitionable.transitioned(e,this._transitioning)}hasTransition(){return this._transitioning.hasTransition()||this.currentProjection.hasTransition()}recalculate(e){this.properties=this._transitioning.possiblyEvaluate(e)}};Oae=Math.PI*.98;dMr=class{constructor(e){this._cachePrevious=new Map,this._cache=new Map,this._hadAnyChanges=!1,this._boundingVolumeFactory=e}swapBuffers(){if(!this._hadAnyChanges)return;let e=this._cachePrevious;this._cachePrevious=this._cache,this._cache=e,this._cache.clear(),this._hadAnyChanges=!1}getTileBoundingVolume(e,t,r,i){let n=`${e.z}_${e.x}_${e.y}_${i!=null&&i.terrain?"t":""}_${Math.round(r)}`,a=this._cache.get(n);if(a)return a;let o=this._cachePrevious.get(n);if(o)return this._cache.set(n,o),o;let s=this._boundingVolumeFactory(e,t,r,i);return this._cache.set(n,s),this._hadAnyChanges=!0,s}},Uae=class hoe{constructor(t,r,i,n){this.min=i,this.max=n,this.points=t,this.planes=r}static fromAabb(t,r){let i=[];for(let n=0;n<8;n++)i.push([(n>>0&1)==1?r[0]:t[0],(n>>1&1)==1?r[1]:t[1],(n>>2&1)==1?r[2]:t[2]]);return new hoe(i,[[-1,0,0,r[0]],[1,0,0,-t[0]],[0,-1,0,r[1]],[0,1,0,-t[1]],[0,0,-1,r[2]],[0,0,1,-t[2]]],t,r)}static fromCenterSizeAngles(t,r,i){let n=YB([],i[0],i[1],i[2]),a=$B([],[r[0],0,0],n),o=$B([],[0,r[1],0],n),s=$B([],[0,0,r[2]],n),l=[...t],u=[...t];for(let f=0;f<8;f++)for(let h=0;h<3;h++){let p=t[h]+a[h]*((f>>0&1)==1?1:-1)+o[h]*((f>>1&1)==1?1:-1)+s[h]*((f>>2&1)==1?1:-1);l[h]=Math.min(l[h],p),u[h]=Math.max(u[h],p)}let c=[];for(let f=0;f<8;f++){let h=[...t];j0(h,h,qs([],a,(f>>0&1)==1?1:-1)),j0(h,h,qs([],o,(f>>1&1)==1?1:-1)),j0(h,h,qs([],s,(f>>2&1)==1?1:-1)),c.push(h)}return new hoe(c,[[...a,-uu(a,c[0])],[...o,-uu(o,c[0])],[...s,-uu(s,c[0])],[-a[0],-a[1],-a[2],-uu(a,c[7])],[-o[0],-o[1],-o[2],-uu(o,c[7])],[-s[0],-s[1],-s[2],-uu(s,c[7])]],l,u)}intersectsFrustum(t){let r=!0,i=this.points.length,n=this.planes.length,a=t.planes.length,o=t.points.length;for(let s=0;s=0&&u++}if(u===0)return 0;u=0&&u++}if(u===0)return 0}return 1}intersectsPlane(t){let r=this.points.length,i=0;for(let n=0;n=0&&i++}return i===r?2:i===0?0:1}};pMr=class{constructor(){this._boundingVolumeCache=new dMr(this._computeTileBoundingVolume)}prepareNextFrame(){this._boundingVolumeCache.swapBuffers()}distanceToTile2d(e,t,r,i){let n=1<4}allowWorldCopies(){return!1}getTileBoundingVolume(e,t,r,i){return this._boundingVolumeCache.getTileBoundingVolume(e,t,r,i)}_computeTileBoundingVolume(e,t,r,i){var o,s;let n=Math.min(0,r),a=Math.max(0,r);if(i!=null&&i.terrain){let l=new Gc(e.z,t,e.z,e.x,e.y),u=i.terrain.getMinMaxElevation(l);n=(o=u.minElevation)!=null?o:n,a=Math.max((s=u.maxElevation)!=null?s:a,a)}if(n/=Hf,a/=Hf,n+=1,a+=1,e.z<=0)return Uae.fromAabb([-a,-a,-a],[a,a,a]);if(e.z===1)return Uae.fromAabb([e.x===0?-a:0,e.y===0?0:-a,-a],[e.x===0?0:a,e.y===0?a:0,a]);{let l=[yx(0,0,e.x,e.y,e.z),yx(qr,0,e.x,e.y,e.z),yx(qr,qr,e.x,e.y,e.z),yx(0,qr,e.x,e.y,e.z)],u=[];for(let E of l)u.push(qs([],E,a));if(a!==n)for(let E of l)u.push(qs([],E,n));e.y===0&&u.push([0,1,0]),e.y===(1<=(1<{let a=ea(i.lat,-Pv,Pv),o=ea(+n,this.minZoom+Hc(0,a),this.maxZoom);return{center:new yn(i.lng,a),zoom:o}},this.applyConstrain=(i,n)=>this._helper.applyConstrain(i,n),this._helper=r!=null?r:new Loe({calcMatrices:()=>this._calcMatrices(),defaultConstrain:(i,n)=>this.defaultConstrain(i,n)},t),this._coveringTilesDetailsProvider=new pMr}clone(){let t=new $st;return t.apply(this,!1),t}apply(t,r){this._helper.apply(t,r)}get projectionMatrix(){return this._projectionMatrix}get modelViewProjectionMatrix(){return this._globeViewProjMatrixF64}get inverseProjectionMatrix(){return this._globeProjMatrixInverted}get cameraPosition(){let t=So();return t[0]=this._cameraPosition[0],t[1]=this._cameraPosition[1],t[2]=this._cameraPosition[2],t}get cameraToCenterDistance(){return this._helper.cameraToCenterDistance}getProjectionData(t){let{overscaledTileID:r,applyGlobeMatrix:i}=t,n=this._helper.getMercatorTileCoordinates(r);return{mainMatrix:this._globeViewProjMatrix32f,tileMercatorCoords:n,clippingPlane:this._cachedClippingPlane,projectionTransition:+!!i,fallbackMatrix:this._globeViewProjMatrix32f,clipAntimeridian:(r==null?void 0:r.canonical.z)===0}}_computeClippingPlane(t){let r=this.pitchInRadians,i=this.cameraToCenterDistance/t,n=Math.sin(r)*i,a=Math.cos(r)*i+1,o=1/Math.sqrt(n*n+a*a)*1,s=-n,l=a,u=Math.sqrt(s*s+l*l);s/=u,l/=u;let c=[0,s,l];WB(c,c,[0,0,0],-this.bearingInRadians),$T(c,c,[0,0,0],-1*this.center.lat*Math.PI/180),h3(c,c,[0,0,0],this.center.lng*Math.PI/180);let f=1/cp(c);return qs(c,c,f),[...c,-o*f]}isLocationOccluded(t,r,i){let n=r==null?void 0:r.getCoverageIndex();i!=null||(i=n?r.getElevationForLngLat(t,this):0);let a=kot(t,i);if(!this.isSurfacePointVisible(a))return!0;if(!n)return!1;let o=this._projectSurfacePointToScreen(a),s=this.cameraPosition,l=this.getRayDirectionFromPixel(o),u=Cot(s,l,a);if(u<=0)return!0;let c=this.screenTerrainPointToMercatorCoordinate(o,r);return c!=null&&Cot(s,l,kot(c.toLngLat(),c.z))a&&(a=h),ps&&(s=p)}let c=[u.lng+o,u.lat+l,u.lng+a,u.lat+s];return this.isSurfacePointOnScreen([0,1,0])&&(c[3]=90,c[0]=-180,c[2]=180),this.isSurfacePointOnScreen([0,-1,0])&&(c[1]=-90,c[0]=-180,c[2]=180),new qv(c)}calculateCenterFromCameraLngLatAlt(t,r,i,n){return this._helper.calculateCenterFromCameraLngLatAlt(t,r,i,n)}calculateCameraOptionsFromTo(t,r,i,n){let a=yn.convert(i),o=pc(yn.convert(t));qs(o,o,1+r/Hf);let s=pc(a),l=qs(So(),s,1+n/Hf),u=jB(So(),o,s),c=cp(u);if(c=-w&&v<=w,b=g>=-w&&g<=w,S,x;if(_&&b){let E=this.center.lng*Math.PI/180,M=this.center.lat*Math.PI/180,C=vC(h,E),k=vC(v,M),D=vC(p,E),F=vC(g,M);C+k=0}isSurfacePointOnScreen(t){if(!this.isSurfacePointVisible(t))return!1;let r=hx();return Uc(r,[...t,1],this._globeViewProjMatrixF64),r[0]/=r[3],r[1]/=r[3],r[2]/=r[3],r[0]>-1&&r[0]<1&&r[1]>-1&&r[1]<1&&r[2]>-1&&r[2]<1}unprojectScreenPoint(t){let r=this._cameraPosition,i=this.getRayDirectionFromPixel(t),n=Vq(r,i);if(n){let c=So();j0(c,r,[i[0]*n.tMin,i[1]*n.tMin,i[2]*n.tMin]);let f=So();return Uf(f,c),JC(f)}let a=this._cachedClippingPlane,o=a[0]*i[0]+a[1]*i[1]+a[2]*i[2],s=-ZB(a,r)/o,l=So();if(s>0)j0(l,r,[i[0]*s,i[1]*s,i[2]*s]);else{let c=So();j0(c,r,[i[0]*2,i[1]*2,i[2]*2]);let f=ZB(this._cachedClippingPlane,c);cg(l,c,[this._cachedClippingPlane[0]*f,this._cachedClippingPlane[1]*f,this._cachedClippingPlane[2]*f])}let u=uMr(a);return JC(cMr(u.center,u.radius,l))}getProjectionDataForCustomLayer(t=!0){let r=this.getProjectionData({overscaledTileID:new Gc(0,0,0,0,0),applyGlobeMatrix:t});return r.tileMercatorCoords=[0,0,1,1],r}getFastPathSimpleProjectionMatrix(t){}};Dot=class Yst{get pixelsToClipSpaceMatrix(){return this._helper.pixelsToClipSpaceMatrix}get clipSpaceToPixelsMatrix(){return this._helper.clipSpaceToPixelsMatrix}get pixelsToGLUnits(){return this._helper.pixelsToGLUnits}get centerOffset(){return this._helper.centerOffset}get size(){return this._helper.size}get rotationMatrix(){return this._helper.rotationMatrix}get centerPoint(){return this._helper.centerPoint}get pixelsPerMeter(){return this._helper.pixelsPerMeter}setMinZoom(t){this._helper.setMinZoom(t)}setMaxZoom(t){this._helper.setMaxZoom(t)}setMinPitch(t){this._helper.setMinPitch(t)}setMaxPitch(t){this._helper.setMaxPitch(t)}setRenderWorldCopies(t){this._helper.setRenderWorldCopies(t)}setBearing(t){this._helper.setBearing(t)}setPitch(t){this._helper.setPitch(t)}setRoll(t){this._helper.setRoll(t)}setFov(t){this._helper.setFov(t)}setZoom(t){this._helper.setZoom(t)}setCenter(t){this._helper.setCenter(t)}setElevation(t){this._helper.setElevation(t)}setMinElevationForCurrentTile(t){this._helper.setMinElevationForCurrentTile(t)}setPadding(t){this._helper.setPadding(t)}interpolatePadding(t,r,i){this._helper.interpolatePadding(t,r,i)}isPaddingEqual(t){return this._helper.isPaddingEqual(t)}resize(t,r,i=!0){this._helper.resize(t,r,i)}getMaxBounds(){return this._helper.getMaxBounds()}setMaxBounds(t){this._helper.setMaxBounds(t)}setConstrainOverride(t){this._helper.setConstrainOverride(t)}overrideNearFarZ(t,r){this._helper.overrideNearFarZ(t,r)}clearNearFarZOverride(){this._helper.clearNearFarZOverride()}getCameraQueryGeometry(t){return this._helper.getCameraQueryGeometry(this.getCameraPoint(),t)}get tileSize(){return this._helper.tileSize}get tileZoom(){return this._helper.tileZoom}get scale(){return this._helper.scale}get worldSize(){return this._helper.worldSize}get width(){return this._helper.width}get height(){return this._helper.height}get lngRange(){return this._helper.lngRange}get latRange(){return this._helper.latRange}get minZoom(){return this._helper.minZoom}get maxZoom(){return this._helper.maxZoom}get zoom(){return this._helper.zoom}get center(){return this._helper.center}get minPitch(){return this._helper.minPitch}get maxPitch(){return this._helper.maxPitch}get pitch(){return this._helper.pitch}get pitchInRadians(){return this._helper.pitchInRadians}get roll(){return this._helper.roll}get rollInRadians(){return this._helper.rollInRadians}get bearing(){return this._helper.bearing}get bearingInRadians(){return this._helper.bearingInRadians}get fov(){return this._helper.fov}get fovInRadians(){return this._helper.fovInRadians}get elevation(){return this._helper.elevation}get minElevationForCurrentTile(){return this._helper.minElevationForCurrentTile}get padding(){return this._helper.padding}get unmodified(){return this._helper.unmodified}get renderWorldCopies(){return this._helper.renderWorldCopies}get cameraToCenterDistance(){return this._helper.cameraToCenterDistance}get constrainOverride(){return this._helper.constrainOverride}get nearZ(){return this._helper.nearZ}get farZ(){return this._helper.farZ}get autoCalculateNearFarZ(){return this._helper.autoCalculateNearFarZ}get isGlobeRendering(){return this._globeness>0}setTransitionState(t){this._globeness=t,this._calcMatrices(),this._verticalPerspectiveTransform.getCoveringTilesDetailsProvider().prepareNextFrame(),this._mercatorTransform.getCoveringTilesDetailsProvider().prepareNextFrame()}get currentTransform(){return this.isGlobeRendering?this._verticalPerspectiveTransform:this._mercatorTransform}constructor(t){this._globeness=1,this.defaultConstrain=(r,i)=>this.currentTransform.defaultConstrain(r,i),this.applyConstrain=(r,i)=>this._helper.applyConstrain(r,i),this._helper=new Loe({calcMatrices:()=>this._calcMatrices(),defaultConstrain:(r,i)=>this.defaultConstrain(r,i)},t),this._globeness=1,this._mercatorTransform=new aO(void 0,this._helper),this._verticalPerspectiveTransform=new jst(void 0,this._helper)}clone(){let t=new Yst;return t._globeness=this._globeness,t.apply(this,!1),t}apply(t,r){this._helper.apply(t,r)}get projectionMatrix(){return this.currentTransform.projectionMatrix}get modelViewProjectionMatrix(){return this.currentTransform.modelViewProjectionMatrix}get inverseProjectionMatrix(){return this.currentTransform.inverseProjectionMatrix}get cameraPosition(){return this.currentTransform.cameraPosition}getProjectionData(t){let r=this._mercatorTransform.getProjectionData(t),i=this._verticalPerspectiveTransform.getProjectionData(t);return{mainMatrix:this.isGlobeRendering?i.mainMatrix:r.mainMatrix,clippingPlane:i.clippingPlane,tileMercatorCoords:i.tileMercatorCoords,projectionTransition:t.applyGlobeMatrix?this._globeness:0,fallbackMatrix:r.fallbackMatrix,clipAntimeridian:i.clipAntimeridian}}isLocationOccluded(t,r,i){return this.currentTransform.isLocationOccluded(t,r,i)}transformLightDirection(t){return this.currentTransform.transformLightDirection(t)}getPixelScale(){return d3(this._mercatorTransform.getPixelScale(),this._verticalPerspectiveTransform.getPixelScale(),this._globeness)}getCircleRadiusCorrection(){return d3(this._mercatorTransform.getCircleRadiusCorrection(),this._verticalPerspectiveTransform.getCircleRadiusCorrection(),this._globeness)}getPitchedTextCorrection(t,r,i){let n=this._mercatorTransform.getPitchedTextCorrection(t,r,i),a=this._verticalPerspectiveTransform.getPitchedTextCorrection(t,r,i);return d3(n,a,this._globeness)}projectTileCoordinates(t,r,i,n){return this.currentTransform.projectTileCoordinates(t,r,i,n)}_calcMatrices(){this._helper._width&&this._helper._height&&(this._verticalPerspectiveTransform._calcMatrices(),this._mercatorTransform._calcMatrices(this.autoCalculateNearFarZ&&!this.isGlobeRendering))}calculateFogMatrix(t){return this.currentTransform.calculateFogMatrix(t)}getVisibleUnwrappedCoordinates(t){return this.currentTransform.getVisibleUnwrappedCoordinates(t)}getCameraFrustum(){return this.currentTransform.getCameraFrustum()}getClippingPlane(){return this.currentTransform.getClippingPlane()}getCoveringTilesDetailsProvider(){return this.currentTransform.getCoveringTilesDetailsProvider()}recalculateZoomAndCenter(t){this.currentTransform.recalculateZoomAndCenter(t)}maxPitchScaleFactor(){return this._mercatorTransform.maxPitchScaleFactor()}getCameraPoint(){return this._helper.getCameraPoint()}getCameraAltitude(){return this.currentTransform.getCameraAltitude()}getCameraLngLat(){return this.currentTransform.getCameraLngLat()}populateCache(t){this._mercatorTransform.populateCache(t),this._verticalPerspectiveTransform.populateCache(t)}getBounds(){return this.currentTransform.getBounds()}calculateCenterFromCameraLngLatAlt(t,r,i,n){return this._helper.calculateCenterFromCameraLngLatAlt(t,r,i,n)}calculateCameraOptionsFromTo(t,r,i,n){return this.currentTransform.calculateCameraOptionsFromTo(t,r,i,n)}setLocationAtPoint(t,r,i){this.currentTransform.setLocationAtPoint(t,r,i)}locationToScreenPoint(t,r){return this.currentTransform.locationToScreenPoint(t,r)}screenPointToMercatorCoordinate(t,r){return this.currentTransform.screenPointToMercatorCoordinate(t,r)}screenTerrainPointToMercatorCoordinate(t,r){return this.currentTransform.screenTerrainPointToMercatorCoordinate(t,r)}screenPointToLocation(t,r){return this.currentTransform.screenPointToLocation(t,r)}screenPointToLocationAtElevation(t,r){return this.currentTransform.screenPointToLocationAtElevation(t,r)}isPointOnMapSurface(t,r){return this.currentTransform.isPointOnMapSurface(t,r)}getRayDirectionFromPixel(t){return this._verticalPerspectiveTransform.getRayDirectionFromPixel(t)}getProjectionDataForCustomLayer(t=!0){let r=this._mercatorTransform.getProjectionDataForCustomLayer(t);if(!this.isGlobeRendering)return r;let i=this._verticalPerspectiveTransform.getProjectionDataForCustomLayer(t);return i.fallbackMatrix=r.mainMatrix,i.projectionTransition=this._globeness,i}getFastPathSimpleProjectionMatrix(t){return this.currentTransform.getFastPathSimpleProjectionMatrix(t)}},Xst=class Ym{get useGlobeControls(){return!0}handlePanInertia(t,r){let i=hMr(t,r);return Math.abs(i.lng-r.center.lng)>180&&(i.lng=r.center.lng+179.5*Math.sign(i.lng-r.center.lng)),{easingCenter:i,easingOffset:new rr(0,0)}}handleMapControlsRollPitchBearingZoom(t,r){let i=t.around,n=r.screenPointToLocation(i);t.bearingDelta&&r.setBearing(r.bearing+t.bearingDelta),t.pitchDelta&&r.setPitch(r.pitch+t.pitchDelta),t.rollDelta&&r.setRoll(r.roll+t.rollDelta);let a=r.zoom;t.zoomDelta&&r.setZoom(r.zoom+t.zoomDelta);let o=r.zoom-a;if(o===0)return;let s=i0(r.center.lng,n.lng),l=s/(Math.abs(s/180)+1),u=i0(r.center.lat,n.lat),c=r.getRayDirectionFromPixel(i),f=r.cameraPosition,h=uu(f,c)*-1,p=So();j0(p,f,[c[0]*h,c[1]*h,c[2]*h]);let d=cp(p),v=d-1,m=Math.exp(-Math.max(v-.3,0)*.5),g=gC(d,.95,.999,0,1),w=s6(r.worldSize,r.center.lat)/Math.min(r.width,r.height),_=gC(w,.9,.5,1,.25),b=Math.min(m,d3(1,_,g)),S=(1-Vf(-o))*b,x=r.center.lat,A=r.zoom,T=new yn(r.center.lng+l*S,ea(r.center.lat+u*S,-Pv,Pv));r.setLocationAtPoint(n,i);let y=r.center,E=gC(Math.abs(s),45,85,0,1),M=Math.max(E,g)**.25,C=i0(y.lng,T.lng),k=i0(y.lat,T.lat);r.setCenter(new yn(y.lng+C*M,y.lat+k*M).wrap()),r.setZoom(A+Hc(x,r.center.lat))}handleMapControlsPan(t,r,i){t.panDelta&&sMr(r,i,r.isPointOnMapSurface(t.around)?t.around:r.centerPoint,t.panDelta)}cameraForBoxAndBearing(t,r,i,n,a){let o=Nst(t,r,i,n,a);if(!o)return;let s=r.left/a.width*2-1,l=(a.width-r.right)/a.width*2-1,u=r.top/a.height*-2+1,c=(a.height-r.bottom)/a.height*-2+1,f=i0(i.getWest(),i.getEast())<0,h=f?i.getEast():i.getWest(),p=f?i.getWest():i.getEast(),d=Math.max(i.getNorth(),i.getSouth()),v=Math.min(i.getNorth(),i.getSouth()),m=h+i0(h,p)*.5,g=d+i0(d,v)*.5,w=a.clone();w.setCenter(o.center),w.setBearing(o.bearing),w.setPitch(0),w.setRoll(0),w.setZoom(o.zoom);let _=w.modelViewProjectionMatrix,b=[pc(i.getNorthWest()),pc(i.getNorthEast()),pc(i.getSouthWest()),pc(i.getSouthEast()),pc(new yn(p,g)),pc(new yn(h,g)),pc(new yn(m,d)),pc(new yn(m,v))],S=pc(o.center),x=1/0;for(let A of b)s<0&&(x=Ym.getLesserNonNegativeNonNull(x,Ym.solveVectorScale(A,S,_,"x",s))),l>0&&(x=Ym.getLesserNonNegativeNonNull(x,Ym.solveVectorScale(A,S,_,"x",l))),u>0&&(x=Ym.getLesserNonNegativeNonNull(x,Ym.solveVectorScale(A,S,_,"y",u))),c<0&&(x=Ym.getLesserNonNegativeNonNull(x,Ym.solveVectorScale(A,S,_,"y",c)));if(!Number.isFinite(x)||x===0){qst();return}return o.zoom=Math.min(w.zoom+Vc(x),t.maxZoom),o}handleJumpToCenterZoom(t,r){let i=t.center.lat,n=t.applyConstrain(r.center?yn.convert(r.center):t.center,t.zoom).center;t.setCenter(n.wrap());let a=r.zoom===void 0?t.zoom+Hc(i,n.lat):+r.zoom;t.zoom!==a&&t.setZoom(a)}handleEaseTo(t,r){let i=t.zoom,n=t.center,a=t.padding,o={roll:t.roll,pitch:t.pitch,bearing:t.bearing},s={roll:r.roll===void 0?t.roll:r.roll,pitch:r.pitch===void 0?t.pitch:r.pitch,bearing:r.bearing===void 0?t.bearing:r.bearing},l=r.zoom!==void 0,u=!t.isPaddingEqual(r.padding),c=!1,f=r.center?yn.convert(r.center):n,h=t.applyConstrain(f,i).center;nO(t,h);let p=t.clone();p.setCenter(h),p.setZoom(l?+r.zoom:i+Hc(n.lat,f.lat)),p.setBearing(r.bearing);let d=new rr(ea(t.centerPoint.x+r.offsetAsPoint.x,0,t.width),ea(t.centerPoint.y+r.offsetAsPoint.y,0,t.height));p.setLocationAtPoint(h,d);let v=(r.offset&&r.offsetAsPoint.mag())>0?p.center:h,m=l?+r.zoom:i+Hc(n.lat,v.lat),g=i+Hc(n.lat,0),w=m+Hc(v.lat,0),_=i0(n.lng,v.lng),b=i0(n.lat,v.lat),S=Vf(w-g);return c=m!==i,{easeFunc:x=>{if(bne(o,s)||Ost({startEulerAngles:o,endEulerAngles:s,tr:t,k:x,useSlerp:o.roll!=s.roll}),u&&t.interpolatePadding(a,r.padding,x),r.around)Pa("Easing around a point is not supported under globe projection."),t.setLocationAtPoint(r.around,r.aroundPoint);else{let A=x*(w>g?Math.min(2,S):Math.max(.5,S))**(1-x),T=Aot(n,_,b,A);t.setCenter(T.wrap())}if(c){let A=Ks.number(g,w,x)+Hc(0,t.center.lat);t.setZoom(A)}},isZooming:c,elevationCenter:v}}handleFlyTo(t,r){let i=r.zoom!==void 0,n=t.center,a=t.zoom,o=t.padding,s=!t.isPaddingEqual(r.padding),l=t.applyConstrain(yn.convert(r.center||r.locationAtOffset),a).center,u=i?+r.zoom:t.zoom+Hc(t.center.lat,l.lat),c=t.clone();c.setCenter(l),c.setZoom(u),c.setBearing(r.bearing);let f=new rr(ea(t.centerPoint.x+r.offsetAsPoint.x,0,t.width),ea(t.centerPoint.y+r.offsetAsPoint.y,0,t.height));c.setLocationAtPoint(l,f);let h=c.center;nO(t,h);let p=rMr(t,n,h),d=a+Hc(n.lat,0),v=u+Hc(h.lat,0),m=Vf(v-d),g=typeof r.minZoom=="number"?+r.minZoom:t.minZoom,w=Math.max(g,t.minZoom)+Hc(h.lat,0),_=Math.min(w,d,v)+Hc(0,h.lat),b=t.applyConstrain(h,_).zoom+Hc(h.lat,0),S=Vf(b-d),x=i0(n.lng,h.lng),A=i0(n.lat,h.lat);return{easeFunc:(T,y,E,M)=>{let C=Aot(n,x,A,E);s&&t.interpolatePadding(o,r.padding,T);let k=T===1?h:C;t.setCenter(k.wrap());let D=d+Vc(y);t.setZoom(T===1?u:D+Hc(0,k.lat))},scaleOfZoom:m,targetCenter:h,scaleOfMinZoom:S,pixelPathLength:p}}static solveVectorScale(t,r,i,n,a){let o=a,s=n==="x"?[i[0],i[4],i[8],i[12]]:[i[1],i[5],i[9],i[13]],l=[i[3],i[7],i[11],i[15]],u=t[0]*s[0]+t[1]*s[1]+t[2]*s[2],c=t[0]*l[0]+t[1]*l[1]+t[2]*l[2],f=r[0]*s[0]+r[1]*s[1]+r[2]*s[2],h=r[0]*l[0]+r[1]*l[1]+r[2]*l[2],p=(f+s[3]-o*h-o*l[3])/(f-u-o*h+o*c);return f+o*c===u+o*h||l[3]*(u-f)+s[3]*(h-c)+u*h===f*c?null:p}static getLesserNonNegativeNonNull(t,r){return r!==null&&r>=0&&r{for(let a in this.tileManagers){let o=this.tileManagers[a].getSource().type;(o==="vector"||o==="geojson")&&this.tileManagers[a].reload()}},this.map=e,this.dispatcher=new ost(woe(),e._getMapId()).setEventedParent(this),this.dispatcher.registerMessageHandler("GG",(a,o)=>this.getGlyphs(a,o)),this.dispatcher.registerMessageHandler("GI",(a,o)=>this.getImages(a,o)),this.dispatcher.registerMessageHandler("GDA",(a,o)=>this.getDashes(a,o)),this.imageManager=new r6r,this.imageManager.setEventedParent(this),this.imageManager.setMissingImageResolver(e._missingStyleImageResolver),this.patternAtlas=new i6r(this.imageManager);let r=((i=e._container)==null?void 0:i.lang)||typeof document<"u"&&((n=document.documentElement)==null?void 0:n.lang)||void 0;this.glyphManager=new h6r(e._requestManager,t.localIdeographFontFamily,r),this.lineAtlas=new m6r(256,512),this.crossTileSymbolIndex=new Fst,this._setInitialValues(),this._resetUpdates(),this.dispatcher.broadcast("SR",tq()),QC().on(noe,this._rtlPluginLoaded),this.on("data",a=>{if(a.dataType!=="source"||a.sourceDataType!=="metadata")return;let o=this.tileManagers[a.sourceId];if(!o)return;let s=o.getSource();if(s!=null&&s.vectorLayerIds)for(let l in this._layers){let u=this._layers[l];u.source===s.id&&this._validateLayer(u)}})}_setInitialValues(){var e;this._layers={},this._order=[],this.tileManagers={},this.zoomHistory=new DB,this._imagesListDirty=!1,this._globalState={},this._serializedLayers={},this.stylesheet=null,this.light=null,this.sky=null,this.projection&&(this.projection.destroy(),delete this.projection),this._loaded=!1,this._changed=!1,this._updatedLayers={},this._updatedSources={},this._changedImages={},this._glyphsDidChange=!1,this._updatedPaintProps={},this._layerOrderChanged=!1,this._symbolPlacementTriggered=!1,this._placedProjectionTransition=void 0,this.crossTileSymbolIndex=new(((e=this.crossTileSymbolIndex)==null?void 0:e.constructor)||Object),this.pauseablePlacement=void 0,this.placement=void 0,this.z=0}setGlobalStateProperty(e,t){var i,n,a;this._checkLoaded();let r=t===null?(a=(n=(i=this.stylesheet.state)==null?void 0:i[e])==null?void 0:n.default)!=null?a:null:t;return this._setGlobalStateValues({[e]:r}),this}getGlobalState(){return this._globalState}setGlobalState(e){this._checkLoaded();let t={};for(let r in e)t[r]=e[r].default;this._setGlobalStateValues(t)}_setGlobalStateValues(e){let t=[];for(let i in e)Dv(e[i],this._globalState[i])||t.push(i);if(t.length===0)return;let r=fn({},this._globalState);for(let i of t)this._globalState[i]=e[i];this._applyGlobalStateChanges(t,r)}_applyGlobalStateChanges(e,t){var a,o;let r=new Set,i={};for(let s of e)i[s]=this._globalState[s];for(let s in this._layers){let l=this._layers[s];l.retainPriorGlobalState(e,t);let u=l.getLayoutAffectingGlobalStateRefs(),c=l.getPaintAffectingGlobalStateRefs(),f=l.getVisibilityAffectingGlobalStateRefs();for(let h of e){if(u.has(h)&&r.add(l.source),c.has(h))for(let{name:p,value:d}of c.get(h))this._updatePaintProperty(l,p,d,{validate:!1});f!=null&&f.has(h)&&(l.recalculateVisibility(),this._updateLayer(l))}}let n={now:zo(),transition:this.getTransition()};(a=this.light)==null||a.applyGlobalStateChange(e,t,n),(o=this.sky)==null||o.applyGlobalStateChange(e,t,n),this.dispatcher.broadcast("UGS",i);for(let s in this.tileManagers)r.has(s)&&(this._reloadSource(s),this._changed=!0)}loadURL(i){return Zi(this,arguments,function*(e,t={},r){this.fire(new dp("dataloading")),t.validate=typeof t.validate!="boolean"||t.validate,this._loadStyleRequest=new AbortController;let n=this._loadStyleRequest;try{let a=yield this.map._requestManager.transformRequest(e,"Style");eq(n.signal);let o=yield yC(a,n);this._loadStyleRequest===n&&(this._loadStyleRequest=null),this._load(o.data,t,r)}catch(a){this._loadStyleRequest===n&&(this._loadStyleRequest=null),a&&!n.signal.aborted&&this.fire(new Mn(Oc(a)))}})}loadJSON(e,t={},r){this.fire(new dp("dataloading")),this._frameRequest=new AbortController,l0.frameAsync(this._frameRequest,this.map._ownerWindow).then(()=>{this._frameRequest=null,t.validate=t.validate!==!1,this._load(e,t,r)}).catch(()=>{})}loadEmpty(){this.fire(new dp("dataloading")),this._load(gMr,{validate:!1})}_load(e,t,r){var n,a,o;let i=t.transformStyle?t.transformStyle(r,e):e;if(!(t.validate&&jne(this,i))){i=fn({},i),this._loaded=!0,this.stylesheet=i;for(let s in i.sources)this.addSource(s,i.sources[s],{validate:!1});i.sprite?this._loadSprite(i.sprite):this.imageManager.setLoaded(!0),this.glyphManager.setURL(i.glyphs),this.glyphManager.setFontFaces(i["font-faces"]),this._createLayers(),this.light=new p6r((n=this.stylesheet.light)!=null?n:{},this._globalState),this._setProjectionInternal(((a=this.stylesheet.projection)==null?void 0:a.type)||"mercator"),this.sky=new g6r(this.stylesheet.sky,this._globalState),this.sky.setEventedParent(this),this.map.setTerrain((o=this.stylesheet.terrain)!=null?o:null,{validate:!1}),this.fire(new dp("data")),this.fire(new eoe)}}_createLayers(){var t,r,i;let e=Uat(this.stylesheet.layers);this.setGlobalState((t=this.stylesheet.state)!=null?t:null),this.dispatcher.broadcast("SL",e),this._order=e.map(n=>n.id),this._layers={},this._serializedLayers=null;for(let n of e){let a=Lq(n,this._globalState);if(a.setEventedParent(this,{layer:{id:n.id}}),this._layers[n.id]=a,xq(a)&&this.tileManagers[a.source]){let o=(i=(r=n.paint)==null?void 0:r["raster-fade-duration"])!=null?i:a.paint.get("raster-fade-duration");this.tileManagers[a.source].setRasterFadeDuration(o)}}}_loadSprite(e,t=!1,r=void 0){return Zi(this,null,function*(){this.imageManager.setLoaded(!1);let i=new AbortController;this._spriteRequest=i;let n;try{let a=yield e6r(e,this.map._requestManager,this.map.getPixelRatio(),i);if(!a)return;for(let o in a){let{loaded:s,removed:l}=this.imageManager.setSpriteImages(o,a[o]);this._markImagesChanged(l),t&&this._markImagesChanged(s)}}catch(a){n=a,i.signal.aborted||this.fire(new Mn(n))}finally{this._spriteRequest=null,this.imageManager.setLoaded(!0),t&&(this._changed=!0),this.dispatcher.broadcast("SI",this.imageManager.listImages()),this.fire(new dp("data")),r==null||r(n)}})}_unloadSprite(){this._markImagesChanged(this.imageManager.removeAllSpriteImages()),this._imagesListDirty=!0,this._changed=!0,this.fire(new dp("data"))}_validateLayer(e){let t=this.tileManagers[e.source];if(!t)return;let r=e.sourceLayer;if(!r)return;let i=t.getSource();(i.type==="geojson"||i.vectorLayerIds&&!i.vectorLayerIds.includes(r))&&this.fire(new Mn(Error(`Source layer "${r}" does not exist on source "${i.id}" as specified by style layer "${e.id}".`)))}loaded(){if(!this._loaded||Object.keys(this._updatedSources).length)return!1;for(let e in this.tileManagers)if(!this.tileManagers[e].loaded())return!1;return this.imageManager.isLoaded()}_serializeByIds(e,t=!1){let r=this._serializedAllLayers();if(!e||e.length===0)return Object.values(t?vh(r):r);let i=[];for(let n of e)if(r[n]){let a=t?vh(r[n]):r[n];i.push(a)}return i}_serializedAllLayers(){let e=this._serializedLayers;if(e)return e;e=this._serializedLayers={};let t=Object.keys(this._layers);for(let r of t){let i=this._layers[r];i.type!=="custom"&&(e[r]=i.serialize())}return e}hasTransitions(){var e,t,r;if((e=this.light)!=null&&e.hasTransition()||(t=this.sky)!=null&&t.hasTransition()||(r=this.projection)!=null&&r.hasTransition())return!0;for(let i in this.tileManagers)if(this.tileManagers[i].hasTransition())return!0;for(let i in this._layers)if(this._layers[i].hasTransition())return!0;return!1}_checkLoaded(){if(!this._loaded)throw Error("Style is not done loading.")}update(e){if(!this._loaded)return;let t=this._changed;if(t){this._imagesListDirty&&(this._imagesListDirty=(this.dispatcher.broadcast("SI",this.imageManager.listImages()),!1));let n=Object.keys(this._updatedLayers),a=Object.keys(this._removedLayers);(n.length||a.length)&&this._updateWorkerLayers(n,a);for(let o in this._updatedSources){let s=this._updatedSources[o];if(s==="reload")this._reloadSource(o);else if(s==="clear")this._clearSource(o);else throw Error(`Invalid action ${s}`)}this._updateTilesForChangedImages(),this._updateTilesForChangedGlyphs();for(let o in this._updatedPaintProps)this._layers[o].updateTransitions(e);this._resetUpdates()}let r={};for(let n in this.tileManagers){let a=this.tileManagers[n];r[n]=a.used,a.used=!1}let i=this.imageManager.listImages();for(let n of this._order){let a=this._layers[n];a.recalculate(e,i),!a.isHidden(e.zoom)&&a.source&&(this.tileManagers[a.source].used=!0)}for(let n in r){let a=this.tileManagers[n];!!r[n]!=!!a.used&&a.fire(new Ns("data",{sourceDataType:"visibility",sourceId:n}))}this.light.recalculate(e),this.sky.recalculate(e),this.projection.recalculate(e),this.z=e.zoom,t&&this.fire(new dp("data"))}_updateTilesForChangedImages(){let e=Object.keys(this._changedImages);if(e.length){for(let t in this.tileManagers)this.tileManagers[t].reloadTilesForDependencies(["icons","patterns"],e);this._changedImages={}}}_updateTilesForChangedGlyphs(){if(this._glyphsDidChange){for(let e in this.tileManagers)this.tileManagers[e].reloadTilesForDependencies(["glyphs"],[""]);this._glyphsDidChange=!1}}_updateWorkerLayers(e,t){this.dispatcher.broadcast("UL",{layers:this._serializeByIds(e,!1),removedIds:t})}_resetUpdates(){this._changed=!1,this._updatedLayers={},this._removedLayers={},this._updatedSources={},this._updatedPaintProps={},this._changedImages={},this._glyphsDidChange=!1}setState(e,t={}){var a;this._checkLoaded();let r=this.serialize();if(e=t.transformStyle?t.transformStyle(r,e):e,((a=t.validate)!=null?a:!0)&&jne(this,e))return!1;e=vh(e),e.layers=Uat(e.layers);let i=JTr(r,e),n=this._getOperationsToPerform(i);if(n.unimplemented.length>0)throw Error(`Unimplemented: ${n.unimplemented.join(", ")}.`);if(n.operations.length===0)return!1;for(let o of n.operations)o();return this.stylesheet=e,this._serializedLayers=null,this.fire(new eoe({style:this})),!0}_getOperationsToPerform(e){let t=[],r=[];for(let i of e)switch(i.command){case"setCenter":case"setZoom":case"setBearing":case"setPitch":case"setRoll":continue;case"addLayer":{let[n,a]=i.args;t.push(()=>this.addLayer(n,a));break}case"removeLayer":{let[n]=i.args;t.push(()=>this.removeLayer(n));break}case"setPaintProperty":{let[n,a,o]=i.args;t.push(()=>this.setPaintProperty(n,a,o));break}case"setLayoutProperty":{let[n,a,o]=i.args;t.push(()=>this.setLayoutProperty(n,a,o));break}case"setFilter":{let[n,a]=i.args;t.push(()=>this.setFilter(n,a));break}case"addSource":{let[n,a]=i.args;t.push(()=>this.addSource(n,a));break}case"removeSource":{let[n]=i.args;t.push(()=>this.removeSource(n));break}case"setLayerZoomRange":{let[n,a,o]=i.args;t.push(()=>this.setLayerZoomRange(n,a,o));break}case"setLight":{let[n]=i.args;t.push(()=>this.setLight(n));break}case"setGeoJSONSourceData":{let[n,a]=i.args;t.push(()=>this.setGeoJSONSourceData(n,a));break}case"setGlyphs":{let[n]=i.args;t.push(()=>this.setGlyphs(n));break}case"setFontFaces":{let[n]=i.args;t.push(()=>this.setFontFaces(n));break}case"setSprite":{let[n]=i.args;t.push(()=>this.setSprite(n));break}case"setTerrain":{let[n]=i.args;t.push(()=>this.map.setTerrain(n));break}case"setSky":{let[n]=i.args;t.push(()=>this.setSky(n));break}case"setProjection":{let[n]=i.args;t.push(()=>this.setProjection(n));break}case"setGlobalState":{let[n]=i.args;t.push(()=>this.setGlobalState(n));break}case"setTransition":t.push(()=>{});break;default:r.push(i.command)}return{operations:t,unimplemented:r}}addImage(e,t){if(this.getImage(e)){this.fire(new Mn(Error(`An image named "${e}" already exists.`)));return}this.imageManager.addImage(e,t),this._afterImageUpdated(e)}updateImage(e,t){this.imageManager.updateImage(e,t)}getImage(e){return this.imageManager.getImage(e)}setMissingImageResolver(e){this.imageManager.setMissingImageResolver(e)}removeImage(e){if(!this.getImage(e)){this.fire(new Mn(Error(`An image named "${e}" does not exist.`)));return}this.imageManager.removeImage(e),this._afterImageUpdated(e)}_markImagesChanged(e){for(let t of e)this._changedImages[t]=!0}_afterImageUpdated(e){this._changedImages[e]=!0,this._imagesListDirty=!0,this._changed=!0,this.fire(new dp("data"))}listImages(){return this._checkLoaded(),this.imageManager.listImages()}addSource(e,t,r={}){var n;if(this._checkLoaded(),this.tileManagers[e]!==void 0)throw Error(`Source "${e}" already exists.`);if(!t.type)throw Error(`The type property must be defined, but only the following properties were given: ${Object.keys(t).join(", ")}.`);if(Hne.has(t.type)&&this._validate(mh.source,`sources.${e}`,t,null,r))return;(n=this.map)!=null&&n._collectResourceTiming&&(t.collectResourceTiming=!0);let i=this.tileManagers[e]=new ooe(e,t,this.dispatcher);i.style=this,i.setEventedParent(this,()=>({isSourceLoaded:i.loaded(),source:i.serialize(),sourceId:e})),i.onAdd(this.map),this._changed=!0}removeSource(e){if(this._checkLoaded(),this.tileManagers[e]===void 0)throw Error(`There is no source with this ID=${e}`);for(let r in this._layers)if(this._layers[r].source===e)return this.fire(new Mn(Error(`Source "${e}" cannot be removed while layer "${r}" is using it.`)));let t=this.tileManagers[e];delete this.tileManagers[e],delete this._updatedSources[e],t.fire(new Ns("data",{sourceDataType:"metadata",sourceId:e})),t.setEventedParent(null),t.onRemove(this.map),this._changed=!0}setGeoJSONSourceData(e,t){if(this._checkLoaded(),this.tileManagers[e]===void 0)throw Error(`There is no source with this ID=${e}`);let r=this.tileManagers[e].getSource();if(r.type!=="geojson")throw Error(`geojsonSource.type is ${r.type}, which is !== 'geojson`);r.setData(t),this._changed=!0}getSource(e){var t;return(t=this.tileManagers[e])==null?void 0:t.getSource()}addLayer(e,t,r={}){this._checkLoaded();let i=e.id;if(this.getLayer(i)){this.fire(new Mn(Error(`Layer "${i}" already exists on this map.`)));return}let n;if(e.type==="custom"){if(gq(this,aat(e)))return;n=Lq(e,this._globalState)}else{if("source"in e&&typeof e.source=="object"&&(this.addSource(i,e.source),e=vh(e),e=dn(e,{source:i})),this._validate(mh.layer,`layers.${i}`,e,{arrayIndex:-1},r))return;n=Lq(e,this._globalState),this._validateLayer(n),n.setEventedParent(this,{layer:{id:i}})}let a=t?this._order.indexOf(t):this._order.length;if(t&&a===-1){this.fire(new Mn(Error(`Cannot add layer "${i}" before non-existing layer "${t}".`)));return}if(this._order.splice(a,0,i),this._layerOrderChanged=!0,this._layers[i]=n,this._removedLayers[i]&&n.source&&n.type!=="custom"){let o=this._removedLayers[i];delete this._removedLayers[i],o.type===n.type?(this._updatedSources[n.source]="reload",this.tileManagers[n.source].pause()):this._updatedSources[n.source]="clear"}this._updateLayer(n),n.onAdd&&n.onAdd(this.map)}moveLayer(e,t){if(this._checkLoaded(),this._changed=!0,!this._layers[e]){this.fire(new Mn(Error(`The layer '${e}' does not exist in the map's style and cannot be moved.`)));return}if(e===t)return;if(t&&!this._order.includes(t)){this.fire(new Mn(Error(`Cannot move layer "${e}" before non-existing layer "${t}".`)));return}let r=this._order.indexOf(e);this._order.splice(r,1);let i=t?this._order.indexOf(t):this._order.length;this._order.splice(i,0,e),this._layerOrderChanged=!0}removeLayer(e){var i;this._checkLoaded();let t=this._layers[e];if(!t){this.fire(new Mn(Error(`Cannot remove non-existing layer "${e}".`)));return}t.setEventedParent(null);let r=this._order.indexOf(e);this._order.splice(r,1),this._layerOrderChanged=!0,this._changed=!0,this._removedLayers[e]=t,delete this._layers[e],this._serializedLayers&&delete this._serializedLayers[e],delete this._updatedLayers[e],delete this._updatedPaintProps[e],t.type==="symbol"&&t.source&&((i=this.tileManagers[t.source])==null||i.resetMaxContentElevation()),t.onRemove&&t.onRemove(this.map)}getLayer(e){return this._layers[e]}getLayersOrder(){return[...this._order]}hasLayer(e){return e in this._layers}setLayerZoomRange(e,t,r){this._checkLoaded();let i=this.getLayer(e);if(!i){this.fire(new Mn(Error(`Cannot set the zoom range of non-existing layer "${e}".`)));return}(i.minzoom!==t||i.maxzoom!==r)&&(t!=null&&(i.minzoom=t),r!=null&&(i.maxzoom=r),this._updateLayer(i))}setFilter(e,t,r={}){this._checkLoaded();let i=this.getLayer(e);if(!i){this.fire(new Mn(Error(`Cannot filter non-existing layer "${e}".`)));return}if(!Dv(i.filter,t)){if(t==null){i.setFilter(void 0),this._updateLayer(i);return}this._validate(mh.filter,`layers.${i.id}.filter`,t,null,r)||(i.setFilter(vh(t)),this._updateLayer(i))}}getFilter(e){return vh(this.getLayer(e).filter)}setLayoutProperty(e,t,r,i={}){this._checkLoaded();let n=this.getLayer(e);if(!n){this.fire(new Mn(Error(`Cannot style non-existing layer "${e}".`)));return}Dv(n.getLayoutProperty(t),r)||(n.setLayoutProperty(t,r,i),this._updateLayer(n))}getLayoutProperty(e,t){let r=this.getLayer(e);if(!r){this.fire(new Mn(Error(`Cannot get style of non-existing layer "${e}".`)));return}return r.getLayoutProperty(t)}setPaintProperty(e,t,r,i={}){this._checkLoaded();let n=this.getLayer(e);if(!n){this.fire(new Mn(Error(`Cannot style non-existing layer "${e}".`)));return}Dv(n.getPaintProperty(t),r)||this._updatePaintProperty(n,t,r,i)}_updatePaintProperty(e,t,r,i={}){e.setPaintProperty(t,r,i)&&this._updateLayer(e),xq(e)&&t==="raster-fade-duration"&&this.tileManagers[e.source].setRasterFadeDuration(r),this._changed=!0,this._updatedPaintProps[e.id]=!0,e.type==="symbol"&&this.triggerSymbolPlacement(),this._serializedLayers=null}getPaintProperty(e,t){return this.getLayer(e).getPaintProperty(t)}setFeatureState(e,t){this._checkLoaded();let r=e.source,i=e.sourceLayer,n=this.tileManagers[r];if(n===void 0){this.fire(new Mn(Error(`The source '${r}' does not exist in the map's style.`)));return}let a=n.getSource().type;if(a==="geojson"&&i){this.fire(new Mn(Error("GeoJSON sources cannot have a sourceLayer parameter.")));return}if(a==="vector"&&!i){this.fire(new Mn(Error("The sourceLayer parameter must be provided for vector source types.")));return}if(e.id===void 0){this.fire(new Mn(Error("The feature id parameter must be provided.")));return}let o=["__proto__","constructor","prototype"];if(t&&Object.keys(t).some(s=>o.includes(s))){this.fire(new Mn(Error(`The feature state should not include one of the following keys: ${o}`)));return}n.setFeatureState(i,e.id,t)}removeFeatureState(e,t){this._checkLoaded();let r=e.source,i=this.tileManagers[r];if(i===void 0){this.fire(new Mn(Error(`The source '${r}' does not exist in the map's style.`)));return}let n=i.getSource().type,a=n==="vector"?e.sourceLayer:void 0;if(n==="vector"&&!a){this.fire(new Mn(Error("The sourceLayer parameter must be provided for vector source types.")));return}if(t&&typeof e.id!="string"&&typeof e.id!="number"){this.fire(new Mn(Error("A feature id is required to remove its specific state property.")));return}i.removeFeatureState(a,e.id,t)}getFeatureState(e){this._checkLoaded();let t=e.source,r=e.sourceLayer,i=this.tileManagers[t];if(i===void 0){this.fire(new Mn(Error(`The source '${t}' does not exist in the map's style.`)));return}if(i.getSource().type==="vector"&&!r){this.fire(new Mn(Error("The sourceLayer parameter must be provided for vector source types.")));return}return e.id===void 0&&this.fire(new Mn(Error("The feature id parameter must be provided."))),i.getFeatureState(r,e.id)}getTransition(){var e;return dn({duration:300,delay:0},(e=this.stylesheet)==null?void 0:e.transition)}serialize(){if(!this._loaded)return;let e=QB(this.tileManagers,n=>n.serialize()),t=this._serializeByIds(this._order,!0),r=this.map.getTerrain()||void 0,i=this.stylesheet;return xne({version:i.version,name:i.name,metadata:i.metadata,light:i.light,sky:i.sky,center:i.center,zoom:i.zoom,bearing:i.bearing,pitch:i.pitch,sprite:i.sprite,glyphs:i.glyphs,"font-faces":i["font-faces"],transition:i.transition,projection:i.projection,state:i.state,sources:e,layers:t,terrain:r},n=>n!==void 0)}_updateLayer(e){this._updatedLayers[e.id]=!0,e.source&&!this._updatedSources[e.source]&&this.tileManagers[e.source].getSource().type!=="raster"&&(this._updatedSources[e.source]="reload",this.tileManagers[e.source].pause()),this._serializedLayers=null,this._changed=!0}_flattenAndSortRenderedFeatures(e){let t=a=>this._layers[a].type==="fill-extrusion",r={},i=[];for(let a=this._order.length-1;a>=0;a--){let o=this._order[a];if(t(o)){r[o]=a;for(let s of e){let l=s[o];if(l)for(let u of l)i.push(u)}}}i.sort((a,o)=>o.intersectionZ-a.intersectionZ);let n=[];for(let a=this._order.length-1;a>=0;a--){let o=this._order[a];if(t(o))for(let s=i.length-1;s>=0;s--){let l=i[s].feature;if(r[l.layer.id]this.map.terrain.getElevation(u,c,f):void 0));return this.placement&&n.push(C6r(this._layers,a,this.tileManagers,e,s,this.placement.collisionIndex,this.placement.retainedQueryData)),this._flattenAndSortRenderedFeatures(n)}querySourceFeatures(e,t){t!=null&&t.filter&&this._validate(mh.filter,"querySourceFeatures.filter",t.filter,null,t);let r=this.tileManagers[e];return r?D6r(r,t?da(fn({},t),{globalState:this._globalState}):{globalState:this._globalState}):[]}getLight(){return this.light.getLight()}setLight(e,t={}){this._checkLoaded();let r=this.light.getLight(),i=!1;for(let a in e)if(!Dv(e[a],r[a])){i=!0;break}if(!i)return;let n={now:zo(),transition:dn({duration:300,delay:0},this.stylesheet.transition)};this.light.setLight(e,t),this.light.updateTransitions(n)}getProjection(){var e;return(e=this.stylesheet)==null?void 0:e.projection}setProjection(e){this._checkLoaded();let t=e!=null?e:{type:"mercator"};if(this.stylesheet.projection=e,this.projection){if(this.projection.name===t.type)return;this.projection.destroy(),delete this.projection}this._setProjectionInternal(t.type)}getSky(){var e;return(e=this.stylesheet)==null?void 0:e.sky}setSky(e,t={}){this._checkLoaded();let r=this.getSky(),i=!1;if(!e&&!r)return;if(e&&!r)i=!0;else if(!e&&r)i=!0;else for(let a in e)if(!Dv(e[a],r[a])){i=!0;break}if(!i)return;let n={now:zo(),transition:dn({duration:300,delay:0},this.stylesheet.transition)};this.sky.setSky(e,t)&&(this.stylesheet.sky=e,this.sky.updateTransitions(n))}_setProjectionInternal(e){var r;let t=vMr(e,(r=this.map._camera)==null?void 0:r.transform.constrainOverride,this._globalState);this.projection=t.projection,this.map.migrateProjection(t.transform,t.cameraHelper);for(let i in this.tileManagers)this.tileManagers[i].reload()}_validate(e,t,r,i,n={}){return n.validate!==!1&&KT(this,e,fn({key:t,style:this.serialize(),value:r},i),n)}_remove(e=!0){this._frameRequest&&(this._frameRequest=(this._frameRequest.abort(),null)),this._loadStyleRequest&&(this._loadStyleRequest=(this._loadStyleRequest.abort(),null)),this._spriteRequest&&(this._spriteRequest=(this._spriteRequest.abort(),null)),QC().off(noe,this._rtlPluginLoaded);for(let t in this._layers)this._layers[t].setEventedParent(null);for(let t in this.tileManagers){let r=this.tileManagers[t];r.setEventedParent(null),r.onRemove(this.map)}this.imageManager.setEventedParent(null),this.setEventedParent(null),e&&this.dispatcher.broadcast("RM",void 0),this.dispatcher.remove(e)}_clearSource(e){this.tileManagers[e].clearTiles()}_reloadSource(e){this.tileManagers[e].resume(),this.tileManagers[e].reload()}_updateSources(e){for(let t in this.tileManagers)this.tileManagers[t].update(e,this.map.terrain)}_generateCollisionBoxes(){for(let e in this.tileManagers)this._reloadSource(e)}triggerSymbolPlacement(){this._symbolPlacementTriggered=!0}_placementInputsChanged(e,t,r){var n;let i=this.pauseablePlacement;return!i||this._symbolPlacementTriggered||this._placedProjectionTransition!==((n=this.projection)==null?void 0:n.transitionState)||i._showCollisionBoxes!==t||i.placement.collisionGroups.crossSourceCollisions!==r||i.placement.transform.renderWorldCopies!==e.renderWorldCopies||!Dtt(i.placement.transform.modelViewProjectionMatrix,e.modelViewProjectionMatrix)}_updatePlacement(e,t,r,i,n=!1){var c,f;let a=!1,o=!1,s={};for(let h of this._order){let p=this._layers[h];if(p.type!=="symbol")continue;if(!s[p.source]){let v=this.tileManagers[p.source];s[p.source]=v.getRenderableIds(!0).map(m=>v.getTileByID(m)).sort((m,g)=>g.tileID.overscaledZ-m.tileID.overscaledZ||(m.tileID.isLessThan(g.tileID)?-1:1))}let d=this.crossTileSymbolIndex.addLayer(p,s[p.source],e.center.lng);a||(a=d)}this.crossTileSymbolIndex.pruneUnusedLayers(this._order),n||(n=this._layerOrderChanged||r===0);let l=a||this._placementInputsChanged(e,t,i),u=((c=this.pauseablePlacement)==null?void 0:c.isDone())&&!this.placement.stillRecent(zo(),e.zoom);if((n||!this.pauseablePlacement||u&&(l||this.placement.stale))&&(this._symbolPlacementTriggered=!1,this._placedProjectionTransition=(f=this.projection)==null?void 0:f.transitionState,this.pauseablePlacement=new qAr(e,this.map.terrain,this._order,n,t,r,i,this.placement),this._layerOrderChanged=!1),this.pauseablePlacement.isDone()?l&&this.placement.setStale():(this.pauseablePlacement.continuePlacement(this._order,this._layers,s),this.pauseablePlacement.isDone()&&(this.placement=this.pauseablePlacement.commit(zo()),o=!0),a&&this.pauseablePlacement.placement.setStale()),o||a)for(let h of this._order){let p=this._layers[h];p.type==="symbol"&&this.placement.updateLayerOpacities(p,s[p.source])}return!this.pauseablePlacement.isDone()||this.placement.hasTransitions(zo())}_releaseSymbolFadeTiles(){for(let e in this.tileManagers)this.tileManagers[e].releaseSymbolFadeTiles()}getImages(e,t){return Zi(this,null,function*(){let r=yield this.imageManager.getImages(t.icons);this._updateTilesForChangedImages();let i=this.tileManagers[t.source];return i&&i.setDependencies(t.tileID.key,t.type,t.icons),r})}getGlyphs(e,t){return Zi(this,null,function*(){let r=yield this.glyphManager.getGlyphs(t.stacks),i=this.tileManagers[t.source];return i&&i.setDependencies(t.tileID.key,t.type,[""]),r})}getGlyphsUrl(){return this.stylesheet.glyphs||null}setGlyphs(e,t={}){this._checkLoaded(),!(e&&this._validate(mh.glyphs,"glyphs",e,null,t))&&(this._changed=!0,this._glyphsDidChange=!0,this.stylesheet.glyphs=e,this.glyphManager.entries={},this.glyphManager.setURL(e))}getFontFaces(){return this.stylesheet["font-faces"]||null}setFontFaces(e){this._checkLoaded(),this._changed=!0,this._glyphsDidChange=!0,this.stylesheet["font-faces"]=e,this.glyphManager.setFontFaces(e)}getDashes(e,t){return Zi(this,null,function*(){let r={};for(let[i,n]of Object.entries(t.dashes))r[i]=this.lineAtlas.getDash(n.dasharray,n.round);return r})}addSprite(e,t,r={},i){this._checkLoaded();let n=[{id:e,url:t}],a=[...Kq(this.stylesheet.sprite),...n];this._validate(mh.sprite,"sprite",a,null,r)||(this.stylesheet.sprite=a,this._loadSprite(n,!0,i))}removeSprite(e){this._checkLoaded();let t=Kq(this.stylesheet.sprite);if(!t.find(i=>i.id===e)){this.fire(new Mn(Error(`Sprite "${e}" doesn't exists on this map.`)));return}let r=this.imageManager.removeSpriteImages(e);this._markImagesChanged(r),t.splice(t.findIndex(i=>i.id===e),1),this.stylesheet.sprite=t.length>0?t:void 0,this._imagesListDirty=!0,this._changed=!0,this.fire(new dp("data"))}getSprite(){return Kq(this.stylesheet.sprite)}setSprite(e,t={},r){this._checkLoaded(),!(e&&this._validate(mh.sprite,"sprite",e,null,t))&&(this.stylesheet.sprite=e,e?this._loadSprite(e,!0,r):(this._unloadSprite(),r&&r(null)))}destroy(){this._frameRequest&&(this._frameRequest=(this._frameRequest.abort(),null)),this._loadStyleRequest&&(this._loadStyleRequest=(this._loadStyleRequest.abort(),null)),this._spriteRequest&&(this._spriteRequest=(this._spriteRequest.abort(),null));for(let e in this.tileManagers){let t=this.tileManagers[e];t.setEventedParent(null),t.onRemove(this.map)}this.tileManagers={},this.imageManager&&(this.imageManager.setEventedParent(null),this.imageManager.destroy(),this.patternAtlas.destroy()),this.glyphManager&&this.glyphManager.destroy();for(let e in this._layers){let t=this._layers[e];t.setEventedParent(null),t.onRemove&&t.onRemove(this.map)}this._setInitialValues(),this.setEventedParent(null),this.dispatcher.unregisterMessageHandler("GG"),this.dispatcher.unregisterMessageHandler("GI"),this.dispatcher.unregisterMessageHandler("GDA"),this.dispatcher.remove(!0),this._listeners={},this._oneTimeListeners={}}},mMr=cl([{name:"a_pos",type:"Int16",components:2},{name:"a_texture_pos",type:"Int16",components:2}]),yMr=class{constructor(){this.boundProgram=null,this.boundLayoutVertexBuffer=null,this.boundPaintVertexBuffers=[],this.boundIndexBuffer=null,this.boundVertexOffset=null,this.boundDynamicVertexBuffer=null,this.vao=null}bind(e,t,r,i,n,a,o,s,l){this.context=e;let u=this.boundPaintVertexBuffers.length!==i.length;for(let c=0;!u&&c({u_depth:new Sn(e,t.u_depth),u_terrain:new Sn(e,t.u_terrain)}),bMr=(e,t)=>({u_texture:new Sn(e,t.u_texture),u_ele_delta:new Ni(e,t.u_ele_delta),u_fog_matrix:new fp(e,t.u_fog_matrix),u_fog_color:new $m(e,t.u_fog_color),u_fog_ground_blend:new Ni(e,t.u_fog_ground_blend),u_fog_ground_blend_opacity:new Ni(e,t.u_fog_ground_blend_opacity),u_horizon_color:new $m(e,t.u_horizon_color),u_horizon_fog_blend:new Ni(e,t.u_horizon_fog_blend),u_is_globe_mode:new Ni(e,t.u_is_globe_mode)}),_Mr=(e,t)=>({u_ele_delta:new Ni(e,t.u_ele_delta)}),wMr=(e,t,r,i,n)=>({u_texture:0,u_ele_delta:e,u_fog_matrix:t,u_fog_color:r?r.properties.get("fog-color"):aa.white,u_fog_ground_blend:r?r.properties.get("fog-ground-blend"):1,u_fog_ground_blend_opacity:n?0:r?r.calculateFogBlendOpacity(i):0,u_horizon_color:r?r.properties.get("horizon-color"):aa.white,u_horizon_fog_blend:r?r.properties.get("horizon-fog-blend"):1,u_is_globe_mode:+!!n}),TMr=e=>({u_ele_delta:e}),fO={ProjectionUBO:0,TerrainUBO:1,FrameUBO:2};MMr={float:[1,1],int:[1,1],vec2:[2,2],vec4:[4,4],mat4:[16,4]};Roe=class{constructor(e,t,r){this.context=e,this.binding=t,this.contentWords=r.contentWords;let i=e.gl;this.buffer=i.createBuffer(),i.bindBuffer(i.UNIFORM_BUFFER,this.buffer),i.bufferData(i.UNIFORM_BUFFER,r.sizeWords*4,i.DYNAMIC_DRAW),this.uploaded=new Float32Array(r.sizeWords),this.pending=new Float32Array(r.sizeWords),this.uploadedWords=new Uint32Array(this.uploaded.buffer),this.pendingWords=new Uint32Array(this.pending.buffer),this.hasData=!1}upload(){let e=this.context.gl,t=!this.hasData;if(!t){let r=this.pendingWords,i=this.uploadedWords;for(let n=0;n=0&&(this.attributes[y]={location:E,isInteger:T.has(y)})}u.deleteShader(x),u.deleteShader(S);for(let y of g)if(y&&!A[y]){let E=u.getUniformLocation(this.program,y);E&&(A[y]=E)}this.fixedUniforms=i(e,A),this.terrainUniforms=xMr(e,A),this.binderUniforms=r?r.getUniforms(e,A):[]}draw(e,t,r,i,n,a,o,s,l,u,c,f,h,p,d,v,m,g,w){var S;let _=e.gl;if(this.failedToCreate)return;if(e.program.set(this.program),e.terrainUniformBuffer.bind(),e.frameUniformBuffer.bind(),e.setDepthMode(r),e.setStencilMode(i),e.setColorMode(n),e.setCullFace(a),s){e.activeTexture.set(_.TEXTURE2),_.bindTexture(_.TEXTURE_2D,s.depthTexture),e.activeTexture.set(_.TEXTURE3),_.bindTexture(_.TEXTURE_2D,s.texture);for(let x in this.terrainUniforms)this.terrainUniforms[x].set(s[x]);DMr(e.terrainUniformBuffer,s)}if(SMr(e,l),o)for(let x in this.fixedUniforms)this.fixedUniforms[x].set(o[x]);v&&v.setUniforms(e,this.binderUniforms,p,{zoom:d});let b=0;switch(t){case _.LINES:b=2;break;case _.TRIANGLES:b=3;break;case _.LINE_STRIP:b=1}for(let x of h.get())x.vaos||(x.vaos={}),(S=x.vaos)[u]||(S[u]=new yMr),x.vaos[u].bind(e,this,c,v?v.getPaintVertexBuffers():[],f,x.vertexOffset,m,g,w),_.drawElements(t,x.primitiveLength*b,_.UNSIGNED_SHORT,x.primitiveOffset*b*2)}};IMr=(e,t)=>({u_lightpos:new Gf(e,t.u_lightpos),u_lightpos_globe:new Gf(e,t.u_lightpos_globe),u_lightintensity:new Ni(e,t.u_lightintensity),u_lightcolor:new Gf(e,t.u_lightcolor),u_vertical_gradient:new Ni(e,t.u_vertical_gradient),u_opacity:new Ni(e,t.u_opacity),u_fill_translate:new xa(e,t.u_fill_translate)}),RMr=(e,t)=>({u_lightpos:new Gf(e,t.u_lightpos),u_lightpos_globe:new Gf(e,t.u_lightpos_globe),u_lightintensity:new Ni(e,t.u_lightintensity),u_lightcolor:new Gf(e,t.u_lightcolor),u_vertical_gradient:new Ni(e,t.u_vertical_gradient),u_height_factor:new Ni(e,t.u_height_factor),u_opacity:new Ni(e,t.u_opacity),u_fill_translate:new xa(e,t.u_fill_translate),u_image:new Sn(e,t.u_image),u_texsize:new xa(e,t.u_texsize),u_pixel_coord_upper:new xa(e,t.u_pixel_coord_upper),u_pixel_coord_lower:new xa(e,t.u_pixel_coord_lower),u_scale:new Gf(e,t.u_scale),u_fade:new Ni(e,t.u_fade)}),elt=(e,t,r,i)=>{let n=e.style.light,a=n.getCartesianPosition(),o=fne();n.properties.get("anchor")==="viewport"&&Ett(o,e.transform.bearingInRadians),ztt(a,a,o);let s=e.transform.transformLightDirection(a),l=n.properties.get("color");return{u_lightpos:a,u_lightpos_globe:s,u_lightintensity:n.properties.get("intensity"),u_lightcolor:[l.r,l.g,l.b],u_vertical_gradient:+t,u_opacity:r,u_fill_translate:i}},zMr=(e,t,r,i,n,a,o)=>dn(elt(e,t,r,i),Qst(a,e,o),{u_height_factor:-(2**n.overscaledZ)/o.tileSize/8}),BMr=(e,t)=>({u_fill_translate:new xa(e,t.u_fill_translate)}),qMr=(e,t)=>({u_image:new Sn(e,t.u_image),u_texsize:new xa(e,t.u_texsize),u_pixel_coord_upper:new xa(e,t.u_pixel_coord_upper),u_pixel_coord_lower:new xa(e,t.u_pixel_coord_lower),u_scale:new Gf(e,t.u_scale),u_fade:new Ni(e,t.u_fade),u_sdf_pattern:new Sn(e,t.u_sdf_pattern),u_fill_translate:new xa(e,t.u_fill_translate)}),OMr=(e,t)=>({u_fill_translate:new xa(e,t.u_fill_translate)}),NMr=(e,t)=>({u_image:new Sn(e,t.u_image),u_texsize:new xa(e,t.u_texsize),u_pixel_coord_upper:new xa(e,t.u_pixel_coord_upper),u_pixel_coord_lower:new xa(e,t.u_pixel_coord_lower),u_scale:new Gf(e,t.u_scale),u_fade:new Ni(e,t.u_fade),u_sdf_pattern:new Sn(e,t.u_sdf_pattern),u_fill_translate:new xa(e,t.u_fill_translate)}),tlt=(e,t,r,i,n)=>dn(Qst(t,e,r),{u_fill_translate:i,u_sdf_pattern:+!!n}),UMr=e=>({u_fill_translate:e}),VMr=e=>({u_fill_translate:e}),GMr=(e,t,r,i,n)=>tlt(e,t,r,i,n),HMr=(e,t)=>({u_scale_with_map:new Sn(e,t.u_scale_with_map),u_pitch_with_map:new Sn(e,t.u_pitch_with_map),u_extrude_scale:new xa(e,t.u_extrude_scale),u_globe_extrude_scale:new Ni(e,t.u_globe_extrude_scale),u_translate:new xa(e,t.u_translate)}),jMr=(e,t,r,i,n)=>{let a=e.transform,o,s,l=0;if(r.paint.get("circle-pitch-alignment")==="map"){let u=r0(t,1,a.zoom);o=!0,s=[u,u],l=u/(qr*2**t.tileID.overscaledZ)*2*Math.PI*n}else o=!1,s=a.pixelsToGLUnits;return{u_scale_with_map:+(r.paint.get("circle-pitch-scale")==="map"),u_pitch_with_map:+o,u_extrude_scale:s,u_globe_extrude_scale:l,u_translate:i}},$Mr=(e,t)=>({u_color:new $m(e,t.u_color),u_overlay:new Sn(e,t.u_overlay),u_overlay_scale:new Ni(e,t.u_overlay_scale)}),Pot=(e,t=1)=>({u_color:e,u_overlay:0,u_overlay_scale:t}),WMr=(e,t)=>({u_extrude_scale:new Ni(e,t.u_extrude_scale),u_intensity:new Ni(e,t.u_intensity),u_globe_extrude_scale:new Ni(e,t.u_globe_extrude_scale)}),YMr=(e,t)=>({u_matrix:new fp(e,t.u_matrix),u_image:new Sn(e,t.u_image),u_color_ramp:new Sn(e,t.u_color_ramp),u_opacity:new Ni(e,t.u_opacity)}),rlt=(e,t,r,i)=>{let n=r0(e,1,t)/(qr*2**e.tileID.overscaledZ)*2*Math.PI*i;return{u_extrude_scale:r0(e,1,t),u_intensity:r,u_globe_extrude_scale:n}},ilt=(e,t,r,i)=>{let n=Om();return Lv(n,0,e.width,e.height,0,0,1),{u_matrix:n,u_image:r,u_color_ramp:i,u_opacity:t.paint.get("heatmap-opacity")}},XMr=(e,t)=>({u_image:new Sn(e,t.u_image),u_latrange:new xa(e,t.u_latrange),u_exaggeration:new Ni(e,t.u_exaggeration),u_altitudes:new Xne(e,t.u_altitudes),u_azimuths:new Xne(e,t.u_azimuths),u_accent:new $m(e,t.u_accent),u_method:new Sn(e,t.u_method),u_shadows:new Yne(e,t.u_shadows),u_highlights:new Yne(e,t.u_highlights)}),ZMr=(e,t)=>({u_matrix:new fp(e,t.u_matrix),u_image:new Sn(e,t.u_image),u_dimension:new xa(e,t.u_dimension),u_zoom:new Ni(e,t.u_zoom),u_unpack:new JT(e,t.u_unpack)}),KMr=(e,t,r)=>{let i=r.paint.get("hillshade-accent-color"),n;switch(r.paint.get("hillshade-method")){case"basic":n=4;break;case"combined":n=1;break;case"igor":n=2;break;case"multidirectional":n=3;break;default:n=0}let a=r.getIlluminationProperties();for(let o=0;o{let r=t.stride,i=Om();return Lv(i,0,qr,-qr,0,0,1),lu(i,i,[0,-qr,0]),{u_matrix:i,u_image:1,u_dimension:[r,r],u_zoom:e.overscaledZ,u_unpack:t.getUnpackVector()}};eSr=(e,t)=>({u_image:new Sn(e,t.u_image),u_unpack:new JT(e,t.u_unpack),u_dimension:new xa(e,t.u_dimension),u_elevation_stops:new Sn(e,t.u_elevation_stops),u_color_stops:new Sn(e,t.u_color_stops),u_color_ramp_size:new Sn(e,t.u_color_ramp_size),u_opacity:new Ni(e,t.u_opacity)}),tSr=(e,t,r=0)=>({u_image:0,u_unpack:t.getUnpackVector(),u_dimension:[t.stride,t.stride],u_elevation_stops:1,u_color_stops:4,u_color_ramp_size:r,u_opacity:e.paint.get("color-relief-opacity")}),rSr=(e,t)=>({u_translation:new xa(e,t.u_translation),u_ratio:new Ni(e,t.u_ratio)}),iSr=(e,t)=>({u_translation:new xa(e,t.u_translation),u_ratio:new Ni(e,t.u_ratio),u_image:new Sn(e,t.u_image),u_image_height:new Ni(e,t.u_image_height)}),nSr=(e,t)=>({u_translation:new xa(e,t.u_translation),u_texsize:new xa(e,t.u_texsize),u_ratio:new Ni(e,t.u_ratio),u_image:new Sn(e,t.u_image),u_scale:new Gf(e,t.u_scale),u_fade:new Ni(e,t.u_fade)}),aSr=(e,t)=>({u_translation:new xa(e,t.u_translation),u_ratio:new Ni(e,t.u_ratio),u_image:new Sn(e,t.u_image),u_mix:new Ni(e,t.u_mix),u_tileratio:new Ni(e,t.u_tileratio),u_crossfade_from:new Ni(e,t.u_crossfade_from),u_crossfade_to:new Ni(e,t.u_crossfade_to),u_lineatlas_width:new Ni(e,t.u_lineatlas_width),u_lineatlas_height:new Ni(e,t.u_lineatlas_height)}),oSr=(e,t)=>({u_translation:new xa(e,t.u_translation),u_ratio:new Ni(e,t.u_ratio),u_image:new Sn(e,t.u_image),u_image_height:new Ni(e,t.u_image_height),u_tileratio:new Ni(e,t.u_tileratio),u_crossfade_from:new Ni(e,t.u_crossfade_from),u_crossfade_to:new Ni(e,t.u_crossfade_to),u_image_dash:new Sn(e,t.u_image_dash),u_mix:new Ni(e,t.u_mix),u_lineatlas_width:new Ni(e,t.u_lineatlas_width),u_lineatlas_height:new Ni(e,t.u_lineatlas_height)}),hO=(e,t,r,i)=>{let n=e.transform;return{u_translation:nlt(e,t,r),u_ratio:i/r0(t,1,n.zoom)}},sSr=(e,t,r,i,n)=>dn(hO(e,t,r,i),{u_image:0,u_image_height:n}),lSr=(e,t,r,i,n)=>{let a=e.transform,o=zoe(t,a);return{u_translation:nlt(e,t,r),u_texsize:t.imageAtlasTexture.size,u_ratio:i/r0(t,1,a.zoom),u_image:0,u_scale:[o,n.fromScale,n.toScale],u_fade:n.t}},uSr=(e,t,r,i,n)=>{let a=e.transform,o=zoe(t,a);return dn(hO(e,t,r,i),{u_tileratio:o,u_crossfade_from:n.fromScale,u_crossfade_to:n.toScale,u_image:0,u_mix:n.t,u_lineatlas_width:e.lineAtlas.width,u_lineatlas_height:e.lineAtlas.height})},cSr=(e,t,r,i,n,a)=>{let o=e.transform,s=zoe(t,o);return dn(hO(e,t,r,i),{u_image:0,u_image_height:a,u_tileratio:s,u_crossfade_from:n.fromScale,u_crossfade_to:n.toScale,u_image_dash:1,u_mix:n.t,u_lineatlas_width:e.lineAtlas.width,u_lineatlas_height:e.lineAtlas.height})};fSr=(e,t)=>({u_image:new Sn(e,t.u_image),u_opacity:new Ni(e,t.u_opacity)}),hSr=(e,t)=>({u_image:t,u_opacity:e}),dSr=(e,t)=>({u_is_size_zoom_constant:new Sn(e,t.u_is_size_zoom_constant),u_is_size_feature_constant:new Sn(e,t.u_is_size_feature_constant),u_size_t:new Ni(e,t.u_size_t),u_size:new Ni(e,t.u_size),u_rotate_symbol:new Sn(e,t.u_rotate_symbol),u_label_plane_matrix:new fp(e,t.u_label_plane_matrix),u_coord_matrix:new fp(e,t.u_coord_matrix),u_is_text:new Sn(e,t.u_is_text),u_pitch_with_map:new Sn(e,t.u_pitch_with_map),u_is_along_line:new Sn(e,t.u_is_along_line),u_is_variable_anchor:new Sn(e,t.u_is_variable_anchor),u_texsize:new xa(e,t.u_texsize),u_texture:new Sn(e,t.u_texture),u_translation:new xa(e,t.u_translation),u_pitched_scale:new Ni(e,t.u_pitched_scale),u_is_offset:new Sn(e,t.u_is_offset),u_height_anchor_ground:new Sn(e,t.u_height_anchor_ground)}),pSr=(e,t)=>({u_is_size_zoom_constant:new Sn(e,t.u_is_size_zoom_constant),u_is_size_feature_constant:new Sn(e,t.u_is_size_feature_constant),u_size_t:new Ni(e,t.u_size_t),u_size:new Ni(e,t.u_size),u_rotate_symbol:new Sn(e,t.u_rotate_symbol),u_label_plane_matrix:new fp(e,t.u_label_plane_matrix),u_coord_matrix:new fp(e,t.u_coord_matrix),u_is_text:new Sn(e,t.u_is_text),u_pitch_with_map:new Sn(e,t.u_pitch_with_map),u_is_along_line:new Sn(e,t.u_is_along_line),u_is_variable_anchor:new Sn(e,t.u_is_variable_anchor),u_texsize:new xa(e,t.u_texsize),u_texture:new Sn(e,t.u_texture),u_gamma_scale:new Ni(e,t.u_gamma_scale),u_is_halo:new Sn(e,t.u_is_halo),u_is_plain:new Sn(e,t.u_is_plain),u_translation:new xa(e,t.u_translation),u_pitched_scale:new Ni(e,t.u_pitched_scale),u_is_offset:new Sn(e,t.u_is_offset),u_height_anchor_ground:new Sn(e,t.u_height_anchor_ground)}),vSr=(e,t)=>({u_is_size_zoom_constant:new Sn(e,t.u_is_size_zoom_constant),u_is_size_feature_constant:new Sn(e,t.u_is_size_feature_constant),u_size_t:new Ni(e,t.u_size_t),u_size:new Ni(e,t.u_size),u_rotate_symbol:new Sn(e,t.u_rotate_symbol),u_label_plane_matrix:new fp(e,t.u_label_plane_matrix),u_coord_matrix:new fp(e,t.u_coord_matrix),u_is_text:new Sn(e,t.u_is_text),u_pitch_with_map:new Sn(e,t.u_pitch_with_map),u_is_along_line:new Sn(e,t.u_is_along_line),u_is_variable_anchor:new Sn(e,t.u_is_variable_anchor),u_texsize:new xa(e,t.u_texsize),u_texsize_icon:new xa(e,t.u_texsize_icon),u_texture:new Sn(e,t.u_texture),u_texture_icon:new Sn(e,t.u_texture_icon),u_gamma_scale:new Ni(e,t.u_gamma_scale),u_is_halo:new Sn(e,t.u_is_halo),u_translation:new xa(e,t.u_translation),u_pitched_scale:new Ni(e,t.u_pitched_scale),u_is_offset:new Sn(e,t.u_is_offset),u_height_anchor_ground:new Sn(e,t.u_height_anchor_ground)}),alt=(e,t,r,i,n,a,o,s,l,u,c,f,h,p,d)=>({u_is_size_zoom_constant:+(e==="constant"||e==="source"),u_is_size_feature_constant:+(e==="constant"||e==="camera"),u_size_t:t?t.uSizeT:0,u_size:t?t.uSize:0,u_rotate_symbol:+r,u_label_plane_matrix:s,u_coord_matrix:l,u_is_text:+c,u_pitch_with_map:+i,u_is_along_line:n,u_is_variable_anchor:a,u_texsize:f,u_texture:0,u_translation:u,u_pitched_scale:h,u_is_offset:p,u_height_anchor_ground:+d}),olt=(e,t,r,i,n,a,o,s,l,u,c,f,h,p,d,v)=>{let m=o.transform;return dn(alt(e,t,r,i,n,a,o,s,l,u,c,f,p,d,v),{u_gamma_scale:i?Math.cos(m.pitch*Math.PI/180)*m.cameraToCenterDistance:1,u_is_halo:+!!h,u_is_plain:1})},gSr=(e,t,r,i,n,a,o,s,l,u,c,f,h,p,d)=>dn(olt(e,t,r,i,n,a,o,s,l,u,!0,c,!0,h,p,d),{u_texsize_icon:f,u_texture_icon:1}),mSr=(e,t)=>({u_opacity:new Ni(e,t.u_opacity),u_color:new $m(e,t.u_color)}),ySr=(e,t)=>({u_opacity:new Ni(e,t.u_opacity),u_image:new Sn(e,t.u_image),u_pattern_tl_a:new xa(e,t.u_pattern_tl_a),u_pattern_br_a:new xa(e,t.u_pattern_br_a),u_pattern_tl_b:new xa(e,t.u_pattern_tl_b),u_pattern_br_b:new xa(e,t.u_pattern_br_b),u_texsize:new xa(e,t.u_texsize),u_mix:new Ni(e,t.u_mix),u_pattern_size_a:new xa(e,t.u_pattern_size_a),u_pattern_size_b:new xa(e,t.u_pattern_size_b),u_scale_a:new Ni(e,t.u_scale_a),u_scale_b:new Ni(e,t.u_scale_b),u_pixel_coord_upper:new xa(e,t.u_pixel_coord_upper),u_pixel_coord_lower:new xa(e,t.u_pixel_coord_lower),u_tile_units_to_pixels:new Ni(e,t.u_tile_units_to_pixels)}),xSr=(e,t)=>({u_opacity:e,u_color:t}),bSr=(e,t,r,i,n)=>dn(PMr(r,n,t,i),{u_opacity:e}),_Sr=(e,t)=>({u_sun_pos:new Gf(e,t.u_sun_pos),u_atmosphere_blend:new Ni(e,t.u_atmosphere_blend),u_globe_position:new Gf(e,t.u_globe_position),u_globe_radius:new Ni(e,t.u_globe_radius),u_inv_proj_matrix:new fp(e,t.u_inv_proj_matrix)}),wSr=(e,t,r,i,n)=>({u_sun_pos:e,u_atmosphere_blend:t,u_globe_position:r,u_globe_radius:i,u_inv_proj_matrix:n}),TSr=(e,t)=>({u_sky_color:new $m(e,t.u_sky_color),u_horizon_color:new $m(e,t.u_horizon_color),u_horizon:new xa(e,t.u_horizon),u_horizon_normal:new xa(e,t.u_horizon_normal),u_sky_horizon_blend:new Ni(e,t.u_sky_horizon_blend),u_sky_blend:new Ni(e,t.u_sky_blend),u_inv_proj_matrix:new fp(e,t.u_inv_proj_matrix),u_globe_position:new Gf(e,t.u_globe_position),u_globe_radius:new Ni(e,t.u_globe_radius),u_atmosphere_blend:new Ni(e,t.u_atmosphere_blend)}),ASr=(e,t,r)=>{let i=Math.cos(t.rollInRadians),n=Math.sin(t.rollInRadians),a=e6(t),o=t.getProjectionData({overscaledTileID:null,applyGlobeMatrix:!0,applyTerrainMatrix:!0}).projectionTransition,s=Gst(t),l=s6(t.worldSize,t.center.lat);return{u_sky_color:e.properties.get("sky-color"),u_horizon_color:e.properties.get("horizon-color"),u_horizon:[(t.width/2-a*n)*r,(t.height/2+a*i)*r],u_horizon_normal:[-n,i],u_sky_horizon_blend:e.properties.get("sky-horizon-blend")*t.height/2*r,u_sky_blend:o,u_inv_proj_matrix:t.inverseProjectionMatrix,u_globe_position:s,u_globe_radius:l,u_atmosphere_blend:e.properties.get("atmosphere-blend")*Hst(cp(s)-l,l)}},Hq=(e,t)=>({}),MSr={fillExtrusion:IMr,fillExtrusionPattern:RMr,fill:BMr,fillPattern:qMr,fillOutline:OMr,fillOutlinePattern:NMr,circle:HMr,collisionBox:Hq,collisionCircle:Hq,debug:$Mr,depth:Hq,clippingMask:Hq,heatmap:WMr,heatmapTexture:YMr,hillshade:XMr,hillshadePrepare:ZMr,colorRelief:eSr,line:rSr,lineGradient:iSr,linePattern:nSr,lineSDF:aSr,lineGradientSDF:oSr,layerOpacity:fSr,raster:U6r,symbolIcon:dSr,symbolSDF:pSr,symbolTextAndIcon:vSr,background:mSr,backgroundPattern:ySr,terrain:bMr,terrainDepth:_Mr,atmosphere:_Sr,sky:TSr},SSr=class{constructor(e,t,r){this.context=e;let i=e.gl;this.buffer=i.createBuffer(),this.dynamicDraw=!!r,this.context.unbindVAO(),e.bindElementBuffer.set(this.buffer),i.bufferData(i.ELEMENT_ARRAY_BUFFER,t.arrayBuffer,this.dynamicDraw?i.DYNAMIC_DRAW:i.STATIC_DRAW),this.dynamicDraw||t.freeBufferAfterUpload()}bind(){this.context.bindElementBuffer.set(this.buffer)}updateData(e){let t=this.context.gl;if(!this.dynamicDraw)throw Error("Attempted to update data while not in dynamic mode.");this.context.unbindVAO(),this.bind(),t.bufferSubData(t.ELEMENT_ARRAY_BUFFER,0,e.arrayBuffer)}destroy(){let e=this.context.gl;this.buffer&&(e.deleteBuffer(this.buffer),delete this.buffer)}},Iot={Int8:"BYTE",Uint8:"UNSIGNED_BYTE",Int16:"SHORT",Uint16:"UNSIGNED_SHORT",Int32:"INT",Uint32:"UNSIGNED_INT",Float32:"FLOAT"},ESr=class{constructor(e,t,r,i){this.length=t.length,this.attributes=r,this.itemSize=t.bytesPerElement,this.dynamicDraw=i,this.context=e;let n=e.gl;this.buffer=n.createBuffer(),e.bindVertexBuffer.set(this.buffer),n.bufferData(n.ARRAY_BUFFER,t.arrayBuffer,this.dynamicDraw?n.DYNAMIC_DRAW:n.STATIC_DRAW),this.dynamicDraw||t.freeBufferAfterUpload()}bind(){this.context.bindVertexBuffer.set(this.buffer)}updateData(e){if(e.length!==this.length)throw Error(`Length of new data is ${e.length}, which doesn't match current length of ${this.length}`);let t=this.context.gl;this.bind(),t.bufferSubData(t.ARRAY_BUFFER,0,e.arrayBuffer)}enableAttributes(e,t){for(let r of this.attributes){let i=t.attributes[r.name];i!==void 0&&e.enableVertexAttribArray(i.location)}}setVertexAttribPointers(e,t,r){for(let i of this.attributes){let n=t.attributes[i.name];if(n!==void 0){let a=i.offset+this.itemSize*(r||0);n.isInteger?e.vertexAttribIPointer(n.location,i.components,e[Iot[i.type]],this.itemSize,a):e.vertexAttribPointer(n.location,i.components,e[Iot[i.type]],!1,this.itemSize,a)}}}destroy(){let e=this.context.gl;this.buffer&&(e.deleteBuffer(this.buffer),delete this.buffer)}},Vo=class{constructor(e){this.gl=e.gl,this.default=this.getDefault(),this.current=this.default,this.dirty=!1}get(){return this.current}set(e){}getDefault(){return this.default}setDefault(){this.set(this.default)}},kSr=class extends Vo{getDefault(){return aa.transparent}set(e){let t=this.current;(e.r!==t.r||e.g!==t.g||e.b!==t.b||e.a!==t.a||this.dirty)&&(this.gl.clearColor(e.r,e.g,e.b,e.a),this.current=e,this.dirty=!1)}},CSr=class extends Vo{getDefault(){return 1}set(e){(e!==this.current||this.dirty)&&(this.gl.clearDepth(e),this.current=e,this.dirty=!1)}},DSr=class extends Vo{getDefault(){return 0}set(e){(e!==this.current||this.dirty)&&(this.gl.clearStencil(e),this.current=e,this.dirty=!1)}},FSr=class extends Vo{getDefault(){return[!0,!0,!0,!0]}set(e){let t=this.current;(e[0]!==t[0]||e[1]!==t[1]||e[2]!==t[2]||e[3]!==t[3]||this.dirty)&&(this.gl.colorMask(e[0],e[1],e[2],e[3]),this.current=e,this.dirty=!1)}},LSr=class extends Vo{getDefault(){return!0}set(e){(e!==this.current||this.dirty)&&(this.gl.depthMask(e),this.current=e,this.dirty=!1)}},PSr=class extends Vo{getDefault(){return 255}set(e){(e!==this.current||this.dirty)&&(this.gl.stencilMask(e),this.current=e,this.dirty=!1)}},ISr=class extends Vo{getDefault(){return{func:this.gl.ALWAYS,ref:0,mask:255}}set(e){let t=this.current;(e.func!==t.func||e.ref!==t.ref||e.mask!==t.mask||this.dirty)&&(this.gl.stencilFunc(e.func,e.ref,e.mask),this.current=e,this.dirty=!1)}},RSr=class extends Vo{getDefault(){let e=this.gl;return[e.KEEP,e.KEEP,e.KEEP]}set(e){let t=this.current;(e[0]!==t[0]||e[1]!==t[1]||e[2]!==t[2]||this.dirty)&&(this.gl.stencilOp(e[0],e[1],e[2]),this.current=e,this.dirty=!1)}},zSr=class extends Vo{getDefault(){return!1}set(e){if(e===this.current&&!this.dirty)return;let t=this.gl;e?t.enable(t.STENCIL_TEST):t.disable(t.STENCIL_TEST),this.current=e,this.dirty=!1}},BSr=class extends Vo{getDefault(){return[0,1]}set(e){let t=this.current;(e[0]!==t[0]||e[1]!==t[1]||this.dirty)&&(this.gl.depthRange(e[0],e[1]),this.current=e,this.dirty=!1)}},qSr=class extends Vo{getDefault(){return!1}set(e){if(e===this.current&&!this.dirty)return;let t=this.gl;e?t.enable(t.DEPTH_TEST):t.disable(t.DEPTH_TEST),this.current=e,this.dirty=!1}},OSr=class extends Vo{getDefault(){return this.gl.LESS}set(e){(e!==this.current||this.dirty)&&(this.gl.depthFunc(e),this.current=e,this.dirty=!1)}},NSr=class extends Vo{getDefault(){return!1}set(e){if(e===this.current&&!this.dirty)return;let t=this.gl;e?t.enable(t.BLEND):t.disable(t.BLEND),this.current=e,this.dirty=!1}},USr=class extends Vo{getDefault(){let e=this.gl;return[e.ONE,e.ZERO]}set(e){let t=this.current;(e[0]!==t[0]||e[1]!==t[1]||this.dirty)&&(this.gl.blendFunc(e[0],e[1]),this.current=e,this.dirty=!1)}},VSr=class extends Vo{getDefault(){return aa.transparent}set(e){let t=this.current;(e.r!==t.r||e.g!==t.g||e.b!==t.b||e.a!==t.a||this.dirty)&&(this.gl.blendColor(e.r,e.g,e.b,e.a),this.current=e,this.dirty=!1)}},GSr=class extends Vo{getDefault(){return this.gl.FUNC_ADD}set(e){(e!==this.current||this.dirty)&&(this.gl.blendEquation(e),this.current=e,this.dirty=!1)}},HSr=class extends Vo{getDefault(){return!1}set(e){if(e===this.current&&!this.dirty)return;let t=this.gl;e?t.enable(t.CULL_FACE):t.disable(t.CULL_FACE),this.current=e,this.dirty=!1}},jSr=class extends Vo{getDefault(){return this.gl.BACK}set(e){(e!==this.current||this.dirty)&&(this.gl.cullFace(e),this.current=e,this.dirty=!1)}},$Sr=class extends Vo{getDefault(){return this.gl.CCW}set(e){(e!==this.current||this.dirty)&&(this.gl.frontFace(e),this.current=e,this.dirty=!1)}},WSr=class extends Vo{getDefault(){return null}set(e){(e!==this.current||this.dirty)&&(this.gl.useProgram(e),this.current=e,this.dirty=!1)}},YSr=class extends Vo{getDefault(){return this.gl.TEXTURE0}set(e){(e!==this.current||this.dirty)&&(this.gl.activeTexture(e),this.current=e,this.dirty=!1)}},XSr=class extends Vo{getDefault(){let e=this.gl;return[0,0,e.drawingBufferWidth,e.drawingBufferHeight]}set(e){let t=this.current;(e[0]!==t[0]||e[1]!==t[1]||e[2]!==t[2]||e[3]!==t[3]||this.dirty)&&(this.gl.viewport(e[0],e[1],e[2],e[3]),this.current=e,this.dirty=!1)}},ZSr=class extends Vo{getDefault(){return null}set(e){if(e===this.current&&!this.dirty)return;let t=this.gl;t.bindFramebuffer(t.FRAMEBUFFER,e),this.current=e,this.dirty=!1}},KSr=class extends Vo{getDefault(){return null}set(e){if(e===this.current&&!this.dirty)return;let t=this.gl;t.bindRenderbuffer(t.RENDERBUFFER,e),this.current=e,this.dirty=!1}},JSr=class extends Vo{getDefault(){return null}set(e){if(e===this.current&&!this.dirty)return;let t=this.gl;t.bindTexture(t.TEXTURE_2D,e),this.current=e,this.dirty=!1}},QSr=class extends Vo{getDefault(){return null}set(e){if(e===this.current&&!this.dirty)return;let t=this.gl;t.bindBuffer(t.ARRAY_BUFFER,e),this.current=e,this.dirty=!1}},eEr=class extends Vo{getDefault(){return null}set(e){let t=this.gl;t.bindBuffer(t.ELEMENT_ARRAY_BUFFER,e),this.current=e,this.dirty=!1}},tEr=class extends Vo{getDefault(){return null}set(e){(e!==this.current||this.dirty)&&(this.gl.bindVertexArray(e),this.current=e,this.dirty=!1)}},rEr=class extends Vo{getDefault(){return 4}set(e){if(e===this.current&&!this.dirty)return;let t=this.gl;t.pixelStorei(t.UNPACK_ALIGNMENT,e),this.current=e,this.dirty=!1}},iEr=class extends Vo{getDefault(){return!1}set(e){if(e===this.current&&!this.dirty)return;let t=this.gl;t.pixelStorei(t.UNPACK_PREMULTIPLY_ALPHA_WEBGL,e),this.current=e,this.dirty=!1}},nEr=class extends Vo{getDefault(){return!1}set(e){if(e===this.current&&!this.dirty)return;let t=this.gl;t.pixelStorei(t.UNPACK_FLIP_Y_WEBGL,e),this.current=e,this.dirty=!1}},Boe=class extends Vo{constructor(e,t){super(e),this.context=e,this.parent=t}getDefault(){return null}},aEr=class extends Boe{setDirty(){this.dirty=!0}set(e){if(e===this.current&&!this.dirty)return;this.context.bindFramebuffer.set(this.parent);let t=this.gl;t.framebufferTexture2D(t.FRAMEBUFFER,t.COLOR_ATTACHMENT0,t.TEXTURE_2D,e,0),this.current=e,this.dirty=!1}},oEr=class extends Boe{set(e){if(e===this.current&&!this.dirty)return;this.context.bindFramebuffer.set(this.parent);let t=this.gl;t.framebufferRenderbuffer(t.FRAMEBUFFER,t.DEPTH_ATTACHMENT,t.RENDERBUFFER,e),this.current=e,this.dirty=!1}},sEr=class extends Boe{set(e){if(e===this.current&&!this.dirty)return;this.context.bindFramebuffer.set(this.parent);let t=this.gl;t.framebufferRenderbuffer(t.FRAMEBUFFER,t.DEPTH_STENCIL_ATTACHMENT,t.RENDERBUFFER,e),this.current=e,this.dirty=!1}},lEr=class{constructor(e,t,r,i,n){this.context=e,this.width=t,this.height=r;let a=e.gl,o=this.framebuffer=a.createFramebuffer();if(this.colorAttachment=new aEr(e,o),i)this.depthAttachment=n?new sEr(e,o):new oEr(e,o);else if(n)throw Error("Stencil cannot be set without depth")}destroy(){let e=this.context.gl,t=this.colorAttachment.get();if(t&&e.deleteTexture(t),this.depthAttachment){let r=this.depthAttachment.get();r&&e.deleteRenderbuffer(r)}e.deleteFramebuffer(this.framebuffer)}},slt=Ioe([{name:"u_units_to_pixels",type:"vec2"},{name:"u_world_size",type:"vec2"},{name:"u_camera_to_center_distance",type:"float"},{name:"u_symbol_fade_change",type:"float"},{name:"u_aspect_ratio",type:"float"},{name:"u_device_pixel_ratio",type:"float"},{name:"u_viewport_size",type:"vec2"},{name:"u_pixel_extrude_scale",type:"vec2"},{name:"u_pitch",type:"float"}]),Y0=slt.offsets;Hl=class{constructor(e,t,r){this.blendFunction=e,this.blendColor=t,this.mask=r}};Hl.Replace=[1,0],Hl.disabled=new Hl(Hl.Replace,aa.transparent,[!1,!1,!1,!1]),Hl.unblended=new Hl(Hl.Replace,aa.transparent,[!0,!0,!0,!0]),Hl.alphaBlended=new Hl([1,771],aa.transparent,[!0,!0,!0,!0]);fEr=class{constructor(e){this.gl=e,this.clearColor=new kSr(this),this.clearDepth=new CSr(this),this.clearStencil=new DSr(this),this.colorMask=new FSr(this),this.depthMask=new LSr(this),this.stencilMask=new PSr(this),this.stencilFunc=new ISr(this),this.stencilOp=new RSr(this),this.stencilTest=new zSr(this),this.depthRange=new BSr(this),this.depthTest=new qSr(this),this.depthFunc=new OSr(this),this.blend=new NSr(this),this.blendFunc=new USr(this),this.blendColor=new VSr(this),this.blendEquation=new GSr(this),this.cullFace=new HSr(this),this.cullFaceSide=new jSr(this),this.frontFace=new $Sr(this),this.program=new WSr(this),this.activeTexture=new YSr(this),this.viewport=new XSr(this),this.bindFramebuffer=new ZSr(this),this.bindRenderbuffer=new KSr(this),this.bindTexture=new JSr(this),this.bindVertexBuffer=new QSr(this),this.bindElementBuffer=new eEr(this),this.bindVertexArray=new tEr(this),this.pixelStoreUnpack=new rEr(this),this.pixelStoreUnpackPremultiplyAlpha=new iEr(this),this.pixelStoreUnpackFlipY=new nEr(this),this.extTextureFilterAnisotropic=e.getExtension("EXT_texture_filter_anisotropic"),this.extTextureFilterAnisotropic&&(this.extTextureFilterAnisotropicMax=e.getParameter(this.extTextureFilterAnisotropic.MAX_TEXTURE_MAX_ANISOTROPY_EXT)),this.maxTextureSize=e.getParameter(e.MAX_TEXTURE_SIZE),e.getExtension("EXT_color_buffer_half_float"),e.getExtension("EXT_color_buffer_float"),this.boundUniformBuffers=[],this.projectionUniformBuffer=Kst(this),this.keyedProjectionUniformBuffers=new Map,this.freeProjectionUniformBuffers=[],this.terrainUniformBuffer=CMr(this),this.frameUniformBuffer=uEr(this)}setDefault(){this.unbindVAO(),this.clearColor.setDefault(),this.clearDepth.setDefault(),this.clearStencil.setDefault(),this.colorMask.setDefault(),this.depthMask.setDefault(),this.stencilMask.setDefault(),this.stencilFunc.setDefault(),this.stencilOp.setDefault(),this.stencilTest.setDefault(),this.depthRange.setDefault(),this.depthTest.setDefault(),this.depthFunc.setDefault(),this.blend.setDefault(),this.blendFunc.setDefault(),this.blendColor.setDefault(),this.blendEquation.setDefault(),this.cullFace.setDefault(),this.cullFaceSide.setDefault(),this.frontFace.setDefault(),this.program.setDefault(),this.activeTexture.setDefault(),this.bindFramebuffer.setDefault(),this.pixelStoreUnpack.setDefault(),this.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.pixelStoreUnpackFlipY.setDefault()}setDirty(){this.clearColor.dirty=!0,this.clearDepth.dirty=!0,this.clearStencil.dirty=!0,this.colorMask.dirty=!0,this.depthMask.dirty=!0,this.stencilMask.dirty=!0,this.stencilFunc.dirty=!0,this.stencilOp.dirty=!0,this.stencilTest.dirty=!0,this.depthRange.dirty=!0,this.depthTest.dirty=!0,this.depthFunc.dirty=!0,this.blend.dirty=!0,this.blendFunc.dirty=!0,this.blendColor.dirty=!0,this.blendEquation.dirty=!0,this.cullFace.dirty=!0,this.cullFaceSide.dirty=!0,this.frontFace.dirty=!0,this.program.dirty=!0,this.activeTexture.dirty=!0,this.viewport.dirty=!0,this.bindFramebuffer.dirty=!0,this.bindRenderbuffer.dirty=!0,this.bindTexture.dirty=!0,this.bindVertexBuffer.dirty=!0,this.bindElementBuffer.dirty=!0,this.bindVertexArray.dirty=!0,this.pixelStoreUnpack.dirty=!0,this.pixelStoreUnpackPremultiplyAlpha.dirty=!0,this.pixelStoreUnpackFlipY.dirty=!0,this.boundUniformBuffers=[]}setCustomLayerDefaults(){this.unbindVAO(),this.cullFace.setDefault(),this.activeTexture.setDefault(),this.pixelStoreUnpack.setDefault(),this.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.pixelStoreUnpackFlipY.setDefault()}createIndexBuffer(e,t){return new SSr(this,e,t)}createVertexBuffer(e,t,r){return new ESr(this,e,t,r)}createRenderbuffer(e,t,r){let i=this.gl,n=i.createRenderbuffer();return this.bindRenderbuffer.set(n),i.renderbufferStorage(i.RENDERBUFFER,e,t,r),this.bindRenderbuffer.set(null),n}createFramebuffer(e,t,r,i){return new lEr(this,e,t,r,i)}clear({color:e,depth:t,stencil:r}){let i=this.gl,n=0;e&&(n|=i.COLOR_BUFFER_BIT,this.clearColor.set(e),this.colorMask.set([!0,!0,!0,!0])),t!==void 0&&(n|=i.DEPTH_BUFFER_BIT,this.depthRange.set([0,1]),this.clearDepth.set(t),this.depthMask.set(!0)),r!==void 0&&(n|=i.STENCIL_BUFFER_BIT,this.clearStencil.set(r),this.stencilMask.set(255)),i.clear(n)}setCullFace(e){e.enable===!1?this.cullFace.set(!1):(this.cullFace.set(!0),this.cullFaceSide.set(e.mode),this.frontFace.set(e.frontFace))}setDepthMode(e){e.func===this.gl.ALWAYS&&!e.mask?this.depthTest.set(!1):(this.depthTest.set(!0),this.depthFunc.set(e.func),this.depthMask.set(e.mask),this.depthRange.set(e.range))}setStencilMode(e){e.test.func===this.gl.ALWAYS&&!e.mask?this.stencilTest.set(!1):(this.stencilTest.set(!0),this.stencilMask.set(e.mask),this.stencilOp.set([e.fail,e.depthFail,e.pass]),this.stencilFunc.set({func:e.test.func,ref:e.ref,mask:e.test.mask}))}setColorMode(e){Dv(e.blendFunction,Hl.Replace)?this.blend.set(!1):(this.blend.set(!0),this.blendFunc.set(e.blendFunction),this.blendColor.set(e.blendColor)),this.colorMask.set(e.mask)}createVertexArray(){return this.gl.createVertexArray()}deleteVertexArray(e){this.gl.deleteVertexArray(e)}unbindVAO(){this.bindVertexArray.set(null)}},Ua=class{constructor(e,t,r){this.func=e,this.mask=t,this.range=r}};Ua.ReadOnly=!1,Ua.ReadWrite=!0,Ua.disabled=new Ua(519,Ua.ReadOnly,[0,1]);Hae=7680,Ro=class{constructor(e,t,r,i,n,a){this.test=e,this.ref=t,this.mask=r,this.fail=i,this.depthFail=n,this.pass=a}};Ro.disabled=new Ro({func:519,mask:0},0,0,Hae,Hae,Hae);Rot=1029,jae=2305,Eo=class{constructor(e,t,r){this.enable=e,this.mode=t,this.frontFace=r}};Eo.disabled=new Eo(!1,Rot,jae),Eo.backCCW=new Eo(!0,Rot,jae),Eo.frontCCW=new Eo(!0,1028,jae);pEr=up(new Float32Array(16));Yae=0;Zae=[new rr(0,0),new rr(qr,0),new rr(qr,qr),new rr(0,qr)];HEr=new aa(1,0,0,1),jEr=new aa(0,1,0,1),$Er=new aa(0,0,1,1),WEr=new aa(1,0,1,1),YEr=new aa(0,1,1,1);skr={symbol:vEr,circle:_Er,heatmap:wEr,line:PEr,fill:IEr,fillExtrusion:REr,hillshade:zEr,colorRelief:qEr,raster:OEr,background:GEr,sky:nkr,atmosphere:okr,custom:tkr,debug:KEr,debugPadding:XEr,terrainDepth:rkr},lkr=(A3=class{constructor(t,r){this.drawFunctions=skr,this.context=new fEr(t),this.transform=r,this.layerOpacityFbo=null,this._tileTextures={},this._rttObjectRecyclePool=[],this._rttSharedFbo=null,this.terrainFacilitator={depthDirty:!0,matrix:up(new Float64Array(16)),renderTime:0},this.setup(),this.numSublayers=ooe.maxOverzooming+ooe.maxUnderzooming+1,this.depthEpsilon=1/2**16,this.crossTileSymbolIndex=new Fst}resize(t,r,i){if(this.width=Math.round(t*i),this.height=Math.round(r*i),this.pixelRatio=i,this.context.viewport.set([0,0,this.width,this.height]),this.style)for(let n of this.style._order)this.style._layers[n].resize()}setup(){let t=this.context,r=new Hm;r.emplaceBack(0,0),r.emplaceBack(qr,0),r.emplaceBack(0,qr),r.emplaceBack(qr,qr),this.tileExtentBuffer=t.createVertexBuffer(r,T3.members),this.tileExtentSegments=Js.simpleSegment(0,0,4,2);let i=new Hm;i.emplaceBack(0,0),i.emplaceBack(qr,0),i.emplaceBack(0,qr),i.emplaceBack(qr,qr),this.debugBuffer=t.createVertexBuffer(i,T3.members),this.debugSegments=Js.simpleSegment(0,0,4,5);let n=new Hit;n.emplaceBack(0,0,0,0),n.emplaceBack(qr,0,qr,0),n.emplaceBack(0,qr,0,qr),n.emplaceBack(qr,qr,qr,qr),this.rasterBoundsBuffer=t.createVertexBuffer(n,mMr.members),this.rasterBoundsSegments=Js.simpleSegment(0,0,4,2);let a=new Hm;a.emplaceBack(0,0),a.emplaceBack(qr,0),a.emplaceBack(0,qr),a.emplaceBack(qr,qr),this.rasterBoundsBufferPosOnly=t.createVertexBuffer(a,T3.members),this.rasterBoundsSegmentsPosOnly=Js.simpleSegment(0,0,4,5);let o=new Hm;o.emplaceBack(0,0),o.emplaceBack(1,0),o.emplaceBack(0,1),o.emplaceBack(1,1),this.viewportBuffer=t.createVertexBuffer(o,T3.members),this.viewportSegments=Js.simpleSegment(0,0,4,2);let s=new Wit;s.emplaceBack(0),s.emplaceBack(1),s.emplaceBack(3),s.emplaceBack(2),s.emplaceBack(0),this.tileBorderIndexBuffer=t.createIndexBuffer(s);let l=new Rv;l.emplaceBack(1,0,2),l.emplaceBack(1,2,3),this.quadTriangleIndexBuffer=t.createIndexBuffer(l);let u=this.context.gl;this.stencilClearMode=new Ro({func:u.ALWAYS,mask:0},0,255,u.ZERO,u.ZERO,u.ZERO),this.tileExtentMesh=new e8(this.tileExtentBuffer,this.quadTriangleIndexBuffer,this.tileExtentSegments)}clearStencil(){let t=this.context,r=t.gl;this.nextStencilID=1,this.currentStencilSource=void 0;let i=Om();Lv(i,0,this.width,this.height,0,0,1),Nc(i,i,[r.drawingBufferWidth,r.drawingBufferHeight,0]);let n={mainMatrix:i,tileMercatorCoords:[0,0,1,1],clippingPlane:[0,0,0,0],projectionTransition:0,fallbackMatrix:i,clipAntimeridian:!1};this.useProgram("clippingMask",null,!0).draw(t,r.TRIANGLES,Ua.disabled,this.stencilClearMode,Hl.disabled,Eo.disabled,null,null,n,"$clipping",this.viewportBuffer,this.quadTriangleIndexBuffer,this.viewportSegments)}renderTileClippingMasks(t,r){if(this.currentStencilSource===t.source||!t.isTileClipped()||!(r!=null&&r.length))return;this.currentStencilSource=t.source,this.nextStencilID+r.length>256&&this.clearStencil();let i=this.context;i.setColorMode(Hl.disabled),i.setDepthMode(Ua.disabled);let n={};for(let a of r)n[a.key]=this.nextStencilID++;this.style.projection.useSubdivision&&this._renderTileMasks(n,r,!0),this._renderTileMasks(n,r,!1),this._tileClippingMaskIDs=n}_renderTileMasks(t,r,i){let n=this.context,a=n.gl,o=this.style.projection,s=this.renderContext,l=this.useProgram("clippingMask");for(let u of r){let c=t[u.key],f=yh(s,u),h=o.getMeshFromTileID(this.context,u.canonical,i,!0,"stencil"),p=vf(s,u);l.draw(n,a.TRIANGLES,Ua.disabled,new Ro({func:a.ALWAYS,mask:0},c,255,a.KEEP,a.KEEP,a.REPLACE),Hl.disabled,s.isRenderingToTexture?Eo.disabled:Eo.backCCW,null,f,p,"$clipping",h.vertexBuffer,h.indexBuffer,h.segments)}}_renderTilesDepthBuffer(){let t=this.context,r=t.gl,i=this.style.projection,n=this.transform,a=this.useProgram("depth"),o=this.getDepthModeFor3D(),s=u6(n,{tileSize:n.tileSize});for(let l of s){let u=yh(this.renderContext,l),c=i.getMeshFromTileID(this.context,l.canonical,!0,!0,"raster"),f=vf(this.renderContext,l);a.draw(t,r.TRIANGLES,o,Ro.disabled,Hl.disabled,Eo.backCCW,null,u,f,"$clipping",c.vertexBuffer,c.indexBuffer,c.segments)}}stencilModeFor3D(){this.currentStencilSource=void 0,this.nextStencilID+1>256&&this.clearStencil();let t=this.nextStencilID++,r=this.context.gl;return new Ro({func:r.NOTEQUAL,mask:255},t,255,r.KEEP,r.KEEP,r.REPLACE)}stencilModeForClipping(t){let r=this.context.gl;return new Ro({func:r.EQUAL,mask:255},this._tileClippingMaskIDs[t.key],0,r.KEEP,r.KEEP,r.REPLACE)}getStencilConfigForOverlapAndUpdateStencilID(t){let r=this.context.gl,i=t.sort((o,s)=>s.overscaledZ-o.overscaledZ),n=i[i.length-1].overscaledZ,a=i[0].overscaledZ-n+1;if(a>1){this.currentStencilSource=void 0,this.nextStencilID+a>256&&this.clearStencil();let o={};for(let s=0;ss.overscaledZ-o.overscaledZ),n=i[i.length-1].overscaledZ,a=i[0].overscaledZ-n+1;if(this.clearStencil(),a>1){let o={},s={};for(let l=0;l=0;i.currentLayer--){let h=this.style._layers[n[i.currentLayer]];if(h.isHidden(this.transform.zoom))continue;let p=a[h.source],d=o[h.source];this.renderTileClippingMasks(h,d),this.renderLayer(this,p,h,d,i)}i.currentPass="translucent";let u=!1;for(i.currentLayer=0;i.currentLayer0?r.pop():null}acquireRTT(t){let r=this.context.gl,i=this._rttObjectRecyclePool.pop();if(i)return i.size!==t&&(i.texture.update({width:t,height:t,data:null},{premultiply:!1,useMipmap:!0}),i.texture.bind(r.LINEAR,r.CLAMP_TO_EDGE,r.LINEAR_MIPMAP_LINEAR),this.context.extTextureFilterAnisotropic&&r.texParameterf(r.TEXTURE_2D,this.context.extTextureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT,this.context.extTextureFilterAnisotropicMax),i.size=t),i;let n=new Tu(this.context,{width:t,height:t,data:null},r.RGBA,{premultiply:!1,useMipmap:!0});return n.bind(r.LINEAR,r.CLAMP_TO_EDGE,r.LINEAR_MIPMAP_LINEAR),this.context.extTextureFilterAnisotropic&&r.texParameterf(r.TEXTURE_2D,this.context.extTextureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT,this.context.extTextureFilterAnisotropicMax),{texture:n,size:t}}bindRTT(t){let r=this.context.gl,i=t.size;if(!this._rttSharedFbo){let n=this.context.createFramebuffer(i,i,!0,!0),a=this.context.createRenderbuffer(r.DEPTH_STENCIL,i,i);n.depthAttachment.set(a),this._rttSharedFbo={fbo:n,depthRenderbuffer:a,size:i}}this._rttSharedFbo.size!==i&&(this.context.bindRenderbuffer.set(this._rttSharedFbo.depthRenderbuffer),r.renderbufferStorage(r.RENDERBUFFER,r.DEPTH_STENCIL,i,i),this.context.bindRenderbuffer.set(null),this._rttSharedFbo.fbo.width=i,this._rttSharedFbo.fbo.height=i,this._rttSharedFbo.size=i),this._rttSharedFbo.fbo.colorAttachment.set(t.texture.texture),this.context.bindFramebuffer.set(this._rttSharedFbo.fbo.framebuffer)}releaseRTT(t){this._rttObjectRecyclePool.push(t)}clearRTTPool(){for(let t of this._rttObjectRecyclePool)t.texture.destroy();this._rttObjectRecyclePool.length=0}destroyRTTResources(){if(this.clearRTTPool(),!this._rttSharedFbo)return;this._rttSharedFbo.fbo.colorAttachment.set(null),this._rttSharedFbo.fbo.depthAttachment.set(null);let t=this.context.gl;t.deleteRenderbuffer(this._rttSharedFbo.depthRenderbuffer),t.deleteFramebuffer(this._rttSharedFbo.fbo.framebuffer),this._rttSharedFbo=null}isPatternMissing(t){if(!t)return!1;if(!t.from||!t.to)return!0;let r=this.patternAtlas.getPattern(t.from.toString()),i=this.patternAtlas.getPattern(t.to.toString());return!r||!i}useProgram(t,r,i=!1,n=[]){var v;this.cache||(this.cache={});let a=!!this.style.map.terrain,o=this.style.projection,s=i?dg.projectionMercator:o.shaderPreludeCode,l=i?Lst:o.shaderDefine,u=`/${i?Pst:o.shaderVariantName}`,c=r?r.cacheKey:"",f=this._showOverdrawInspector?"/overdraw":"",h=a?"/terrain":"",p=n?`/${n.join("/")}`:"",d=t+c+u+f+h+p;return(v=this.cache)[d]||(v[d]=new LMr(this.context,dg[t],r,MSr[t],this._showOverdrawInspector,a,s,l,n)),this.cache[d]}setCustomLayerDefaults(){this.context.setCustomLayerDefaults()}setBaseState(){let t=this.context.gl;this.context.cullFace.set(!1),this.context.viewport.set([0,0,this.width,this.height]),this.context.blendEquation.set(t.FUNC_ADD)}initDebugOverlayCanvas(){if(this.debugOverlayCanvas==null){this.debugOverlayCanvas=document.createElement("canvas"),this.debugOverlayCanvas.width=512,this.debugOverlayCanvas.height=512;let t=this.context.gl;this.debugOverlayTexture=new Tu(this.context,this.debugOverlayCanvas,t.RGBA)}}destroy(){var t,r,i;if(this._tileTextures){for(let n in this._tileTextures){let a=this._tileTextures[n];if(a)for(let o of a)o.destroy()}this._tileTextures={}}if(this.destroyRTTResources(),(t=this.layerOpacityFbo)==null||t.destroy(),this.layerOpacityFbo=null,this.tileExtentBuffer&&this.tileExtentBuffer.destroy(),this.debugBuffer&&this.debugBuffer.destroy(),this.rasterBoundsBuffer&&this.rasterBoundsBuffer.destroy(),this.rasterBoundsBufferPosOnly&&this.rasterBoundsBufferPosOnly.destroy(),this.viewportBuffer&&this.viewportBuffer.destroy(),this.tileBorderIndexBuffer&&this.tileBorderIndexBuffer.destroy(),this.quadTriangleIndexBuffer&&this.quadTriangleIndexBuffer.destroy(),this.tileExtentMesh&&((r=this.tileExtentMesh.vertexBuffer)==null||r.destroy()),this.tileExtentMesh&&((i=this.tileExtentMesh.indexBuffer)==null||i.destroy()),this.debugOverlayTexture&&this.debugOverlayTexture.destroy(),kMr(this.context),this.context.terrainUniformBuffer.destroy(),this.context.frameUniformBuffer.destroy(),this.cache){for(let n in this.cache){let a=this.cache[n];a!=null&&a.program&&this.context.gl.deleteProgram(a.program)}this.cache={}}this.context&&this.context.setDefault()}overLimit(){let{drawingBufferWidth:t,drawingBufferHeight:r}=this.context.gl;return this.width!==t||this.height!==r}},A3.MAX_TEXTURE_POOL_SIZE_PER_BUCKET=50,A3),glt=class extends Error{constructor(e,t){var r;super("WebGL2 is required to display this map. We are sorry, but it seems that your browser does not support WebGL2, a technology for rendering 3D graphics on the web. Read more on https://wiki.openstreetmap.org/wiki/This_map_requires_WebGL"),this.name="GPUInitializationError",this.requestedAttributes=e,this.statusMessage=(r=t==null?void 0:t.statusMessage)!=null?r:null}};mlt=class{constructor(e){this._getHashParams=()=>new URLSearchParams(window.location.hash.replace("#","")),this._getCurrentHash=()=>{var r;let t=this._getHashParams();return this._hashName?(t.get(this._hashName)||"").split("/"):((r=[...t.keys()][0])!=null?r:"").split("/")},this._onHashChange=()=>{let t=this._getCurrentHash();if(!this._isValidHash(t))return!1;let r=this._map.dragRotate.isEnabled()&&this._map.touchZoomRotate.isEnabled()?+(t[3]||0):this._map.getBearing();return this._map.jumpTo({center:[+t[2],+t[1]],zoom:+t[0],bearing:r,pitch:+(t[4]||0)}),!0},this._updateHashUnthrottled=()=>{let t=window.location.href.replace(/(#.*)?$/,this.getHashString());window.history.replaceState(window.history.state,null,t)},this._removeHash=()=>{let t=this._getHashParams();if(this._hashName)t.delete(this._hashName);else{let a=Array.from(t.keys());a.length>0&&t.delete(a[0])}let r=decodeURIComponent(t.toString()).replace(/=&/g,"&").replace(/=$/g,""),i=r?`#${r}`:"",n=window.location.href.replace(/(#.+)?$/,i);n=n.replace("&&","&"),window.history.replaceState(window.history.state,null,n)},this._updateHash=Ooe(this._updateHashUnthrottled,300),this._hashName=e&&encodeURIComponent(e)}addTo(e){return this._map=e,addEventListener("hashchange",this._onHashChange,!1),this._map.on("moveend",this._updateHash),this}remove(){return removeEventListener("hashchange",this._onHashChange,!1),this._map.off("moveend",this._updateHash),clearTimeout(this._updateHash()),this._removeHash(),delete this._map,this}getHashString(e){let t=this._map.getCenter(),r=Math.round(this._map.getZoom()*100)/100,i=10**Math.ceil((r*Math.LN2+Math.log(512/360/.5))/Math.LN10),n=Math.round(t.lng*i)/i,a=Math.round(t.lat*i)/i,o=this._map.getBearing(),s=this._map.getPitch(),l="";if(l+=e?`/${n}/${a}/${r}`:`${r}/${a}/${n}`,(o||s)&&(l+=`/${Math.round(o*10)/10}`),s&&(l+=`/${Math.round(s)}`),this._hashName){let u=this._getHashParams();return u.set(this._hashName,l),`#${decodeURIComponent(u.toString()).replace(/=&/g,"&").replace(/=$/g,"")}`}return`#${l}`}_isValidHash(e){if(e.length<3||e.some(n=>isNaN(+n)))return!1;try{new yn(+e[2],+e[1])}catch(n){return!1}let t=+e[0],r=+(e[3]||0),i=+(e[4]||0);return t>=this._map.getMinZoom()&&t<=this._map.getMaxZoom()&&r>=-180&&r<=180&&i>=this._map.getMinPitch()&&i<=this._map.getMaxPitch()}},t8={linearity:.3,easing:KB(0,0,.3,1)},ukr=dn({deceleration:2500,maxSpeed:1400},t8),ckr=dn({deceleration:20,maxSpeed:1400},t8),fkr=dn({deceleration:1e3,maxSpeed:360},t8),hkr=dn({deceleration:1e3,maxSpeed:90},t8),dkr=dn({deceleration:1e3,maxSpeed:360},t8),pkr=class{constructor(e){this._map=e,this.clear()}clear(){this._inertiaBuffer=[]}record(e){this._drainInertiaBuffer(),this._inertiaBuffer.push({time:zo(),settings:e})}_drainInertiaBuffer(){let e=this._inertiaBuffer,t=zo();for(;e.length>0&&t-e[0].time>160;)e.shift()}_getVelocityEntries(){let e=this._inertiaBuffer,t=zo()-60,r=Math.max(0,e.length-2);for(;r>0&&e[r-1].time>=t;)r--;return e.slice(r)}_onMoveEnd(e){this._drainInertiaBuffer();let t=this._getVelocityEntries();if(t.length<2){this.clear();return}let r={zoom:0,bearing:0,pitch:0,roll:0,pan:new rr(0,0),pinchAround:void 0,around:void 0};for(let{settings:a}of t)a.around&&(r.around=a.around),a.pinchAround&&(r.pinchAround=a.pinchAround);for(let{settings:a}of t.slice(1))r.zoom+=a.zoomDelta||0,r.bearing+=a.bearingDelta||0,r.pitch+=a.pitchDelta||0,r.roll+=a.rollDelta||0,a.panDelta&&r.pan._add(a.panDelta);if(!r.pan.mag()&&!r.zoom&&!r.bearing&&!r.pitch&&!r.roll){this.clear();return}let i=zo()-t[0].time,n={};if(r.pan.mag()){let a=WC(r.pan.mag(),i,dn({},ukr,e||{})),o=r.pan.mult(a.amount/r.pan.mag()),s=this._map._camera.cameraHelper.handlePanInertia(o,this._map._camera.transform);n.center=s.easingCenter,n.offset=s.easingOffset,$C(n,a)}if(r.zoom){let a=WC(r.zoom,i,ckr);n.zoom=n0(this._map.getZoom()+a.amount,this._map.getZoomSnap(),a.amount),$C(n,a)}if(r.bearing){let a=WC(r.bearing,i,fkr);n.bearing=this._map.getBearing()+ea(a.amount,-179,179),$C(n,a)}if(r.pitch){let a=WC(r.pitch,i,hkr);n.pitch=this._map.getPitch()+a.amount,$C(n,a)}if(r.roll){let a=WC(r.roll,i,dkr);n.roll=this._map.getRoll()+ea(a.amount,-179,179),$C(n,a)}if(n.zoom||n.bearing){let a=r.pinchAround===void 0?r.around:r.pinchAround;n.around=a?this._map.unproject(a):this._map.getCenter()}return this.clear(),dn(n,{noMoveStart:!0})}};vkr=class{constructor(e,t){this._map=e,this._clickTolerance=t.clickTolerance}reset(){delete this._mousedownPos}wheel(e){return this._firePreventable(new Qot(this._map,e))}mousedown(e,t){return this._mousedownPos=t,this._firePreventable(new s0(e.type,this._map,e))}mouseup(e){this._map.fire(new s0(e.type,this._map,e))}click(e,t){this._mousedownPos&&this._mousedownPos.dist(t)>=this._clickTolerance||this._map.fire(new s0(e.type,this._map,e))}dblclick(e){return this._firePreventable(new s0(e.type,this._map,e))}mouseover(e){this._map.fire(new s0(e.type,this._map,e))}mouseout(e){this._map.fire(new s0(e.type,this._map,e))}touchstart(e){return this._firePreventable(new ZC(e.type,this._map,e))}touchmove(e){this._map.fire(new ZC(e.type,this._map,e))}touchend(e){this._map.fire(new ZC(e.type,this._map,e))}touchcancel(e){this._map.fire(new ZC(e.type,this._map,e))}_firePreventable(e){if(this._map.fire(e),e.defaultPrevented)return{}}isEnabled(){return!0}isActive(){return!1}enable(){}disable(){}},gkr=class{constructor(e,t){this._map=e,this._clickTolerance=t.clickTolerance}reset(){this._delayContextMenu=!1,this._ignoreContextMenu=!0,delete this._contextMenuEvent,this._clearLongPress(),this._touchActive=!1}mousemove(e){this._map.fire(new s0(e.type,this._map,e))}mousedown(){this._delayContextMenu=!0,this._ignoreContextMenu=!1}mouseup(){this._delayContextMenu=!1,this._contextMenuEvent&&(this._map.fire(new s0("contextmenu",this._map,this._contextMenuEvent)),delete this._contextMenuEvent)}touchstart(e,t,r){if(this._clearLongPress(),this._touchActive=r.length>0,r.length!==1)return;this._longPressStart=t[0];let i=r[0];this._longPressTimer=setTimeout(()=>{this._longPressTimer=void 0;let n=new MouseEvent("contextmenu",{clientX:i.clientX,clientY:i.clientY,button:2,bubbles:!0,cancelable:!0});this._map.fire(new s0("contextmenu",this._map,n))},500)}touchmove(e,t,r){this._longPressTimer&&(r.length!==1||!this._longPressStart||t[0].dist(this._longPressStart)>this._clickTolerance)&&this._clearLongPress()}touchend(){this._touchActive=!1,this._clearLongPress()}touchcancel(){this._touchActive=!1,this._clearLongPress()}_clearLongPress(){this._longPressTimer&&(this._longPressTimer=(clearTimeout(this._longPressTimer),void 0)),this._longPressStart=void 0}contextmenu(e){if(this._touchActive){e.preventDefault();return}this._delayContextMenu?this._contextMenuEvent=e:this._ignoreContextMenu||this._map.fire(new s0(e.type,this._map,e)),this._map.listens("contextmenu")&&e.preventDefault()}isEnabled(){return!0}isActive(){return!1}enable(){}disable(){}},ylt=class{constructor(e,t,r){this._map=e,this._tr=r,this._el=e.getCanvasContainer(),this._container=e.getContainer(),this._clickTolerance=t.clickTolerance||1,t.boxZoom&&typeof t.boxZoom=="object"&&(this._boxZoomEnd=t.boxZoom.boxZoomEnd)}isEnabled(){return!!this._enabled}isActive(){return!!this._active}enable(){this.isEnabled()||(this._enabled=!0)}disable(){this.isEnabled()&&(this._enabled=!1)}mousedown(e,t){this.isEnabled()&&e.shiftKey&&e.button===0&&(Xn.disableDrag(),this._startPos=this._lastPos=t,this._active=!0)}mousemoveWindow(e,t){if(!this._active)return;let r=t;if(this._lastPos.equals(r)||!this._box&&r.dist(this._startPos)n.fitScreenCoordinates(r,i,this._tr.bearing,{linear:!0})}}}keydown(e){this._active&&e.keyCode===27&&(this.reset(),this._fireEvent("boxzoomcancel",e))}reset(){this._active=!1,this._container.classList.remove("maplibregl-crosshair"),this._box&&(this._box=(this._box.remove(),null)),Xn.enableDrag(),delete this._startPos,delete this._lastPos}_fireEvent(e,t){return this._map.fire(new toe(e,{originalEvent:t}))}};ykr=class{constructor(e){this.reset(),this.numTouches=e.numTouches}reset(){delete this.centroid,delete this.startTime,delete this.touches,this.aborted=!1}touchstart(e,t,r){(this.centroid||r.length>this.numTouches)&&(this.aborted=!0),!this.aborted&&(this.startTime===void 0&&(this.startTime=e.timeStamp),r.length===this.numTouches&&(this.centroid=mkr(t),this.touches=poe(r,t)))}touchmove(e,t,r){if(this.aborted||!this.centroid)return;let i=poe(r,t);for(let n in this.touches){let a=this.touches[n],o=i[n];(!o||o.dist(a)>30)&&(this.aborted=!0)}}touchend(e,t,r){if((!this.centroid||e.timeStamp-this.startTime>500)&&(this.aborted=!0),r.length===0){let i=!this.aborted&&this.centroid;if(this.reset(),i)return i}}},voe=class{constructor(e){this.singleTap=new ykr(e),this.numTaps=e.numTaps,this.reset()}reset(){this.lastTime=1/0,delete this.lastTap,this.count=0,this.singleTap.reset()}touchstart(e,t,r){this.singleTap.touchstart(e,t,r)}touchmove(e,t,r){this.singleTap.touchmove(e,t,r)}touchend(e,t,r){let i=this.singleTap.touchend(e,t,r);if(i){let n=e.timeStamp-this.lastTime<500,a=!this.lastTap||this.lastTap.dist(i)<30;if((!n||!a)&&this.reset(),this.count++,this.lastTime=e.timeStamp,this.lastTap=i,this.count===this.numTaps)return this.reset(),i}}},xkr=class{constructor(e,t){this._tr=t,this._zoomIn=new voe({numTouches:1,numTaps:2}),this._zoomOut=new voe({numTouches:2,numTaps:1}),this.reset()}reset(){this._active=!1,this._zoomIn.reset(),this._zoomOut.reset()}touchstart(e,t,r){this._zoomIn.touchstart(e,t,r),this._zoomOut.touchstart(e,t,r)}touchmove(e,t,r){this._zoomIn.touchmove(e,t,r),this._zoomOut.touchmove(e,t,r)}touchend(e,t,r){let i=this._zoomIn.touchend(e,t,r),n=this._zoomOut.touchend(e,t,r),a=this._tr;if(i)return this._active=!0,e.preventDefault(),setTimeout(()=>this.reset(),0),{cameraAnimation:o=>o.easeTo({duration:300,zoom:n0(a.zoom+1,o.getZoomSnap()),around:a.transform.isPointOnMapSurface(i)?a.unproject(i):void 0},{originalEvent:e})};if(n)return this._active=!0,e.preventDefault(),setTimeout(()=>this.reset(),0),{cameraAnimation:o=>o.easeTo({duration:300,zoom:n0(a.zoom-1,o.getZoomSnap()),around:a.transform.isPointOnMapSurface(n)?a.unproject(n):void 0},{originalEvent:e})}}touchcancel(){this.reset()}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}},r8=class{constructor(e){this._enabled=!!e.enable,this._moveStateManager=e.moveStateManager,this._clickTolerance=e.clickTolerance||1,this._moveFunction=e.move,this._activateOnStart=!!e.activateOnStart,e.assignEvents(this),this.reset()}reset(e){this._active=!1,this._moved=!1,delete this._lastPoint,this._moveStateManager.endMove(e)}_move(...e){let t=this._moveFunction(...e);if(t.bearingDelta||t.pitchDelta||t.rollDelta||t.around||t.panDelta)return this._active=!0,t}dragStart(e,t){this.isEnabled()&&!this._lastPoint&&this._moveStateManager.isValidStartEvent(e)&&(this._moveStateManager.startMove(e),this._lastPoint=Array.isArray(t)?t[0]:t,this._activateOnStart&&this._lastPoint&&(this._active=!0))}dragMove(e,t){if(!this.isEnabled())return;let r=this._lastPoint;if(!r)return;if(e.preventDefault(),!this._moveStateManager.isValidMoveEvent(e)){this.reset(e);return}let i=Array.isArray(t)?t[0]:t;if(!(!this._moved&&i.dist(r)!0}),t=new wkr){this.mouseMoveStateManager=e,this.oneFingerTouchMoveStateManager=t}_executeRelevantHandler(e,t,r){if(e instanceof MouseEvent)return t(e);if(typeof TouchEvent<"u"&&e instanceof TouchEvent)return r(e)}startMove(e){this._executeRelevantHandler(e,t=>{this.mouseMoveStateManager.startMove(t)},t=>{this.oneFingerTouchMoveStateManager.startMove(t)})}endMove(e){this._executeRelevantHandler(e,t=>{this.mouseMoveStateManager.endMove(t)},t=>{this.oneFingerTouchMoveStateManager.endMove(t)})}isValidStartEvent(e){return!!this._executeRelevantHandler(e,t=>this.mouseMoveStateManager.isValidStartEvent(t),t=>this.oneFingerTouchMoveStateManager.isValidStartEvent(t))}isValidMoveEvent(e){return!!this._executeRelevantHandler(e,t=>this.mouseMoveStateManager.isValidMoveEvent(t),t=>this.oneFingerTouchMoveStateManager.isValidMoveEvent(t))}isValidEndEvent(e){return!!this._executeRelevantHandler(e,t=>this.mouseMoveStateManager.isValidEndEvent(t),t=>this.oneFingerTouchMoveStateManager.isValidEndEvent(t))}},dO=e=>{e.mousedown=e.dragStart,e.mousemoveWindow=e.dragMove,e.mouseup=e.dragEnd,e.contextmenu=t=>{t.preventDefault()}};kkr=class{constructor(e,t){this._clickTolerance=e.clickTolerance||1,this._map=t,this.reset()}reset(){this._active=!1,this._touches={},this._sum=new rr(0,0)}_shouldBePrevented(e){return e<(this._map.cooperativeGestures.isEnabled()?2:1)}touchstart(e,t,r){return this._calculateTransform(e,t,r)}touchmove(e,t,r){if(this._active){if(this._shouldBePrevented(r.length)){this._map.cooperativeGestures.notifyGestureBlocked("touch_pan",e);return}return e.preventDefault(),this._calculateTransform(e,t,r)}}touchend(e,t,r){this._calculateTransform(e,t,r),this._active&&this._shouldBePrevented(r.length)&&this.reset()}touchcancel(){this.reset()}_calculateTransform(e,t,r){r.length>0&&(this._active=!0);let i=poe(r,t),n=new rr(0,0),a=new rr(0,0),o=0;for(let l in i){let u=i[l],c=this._touches[l];c&&(n._add(u),a._add(u.sub(c)),o++,i[l]=u)}if(this._touches=i,this._shouldBePrevented(o)||!a.mag())return;let s=a.div(o);if(this._sum._add(s),!(this._sum.mag()=2,n=t.mag()>=2;if(!i&&!n)return;if(!i||!n)return this._firstMove===void 0&&(this._firstMove=r),r-this._firstMove<100&&void 0;let a=e.y>0==t.y>0;return Kae(e)&&Kae(t)&&a}},Ckr={panStep:100,bearingStep:15,pitchStep:10},wlt=class{constructor(e,t){this._tr=t;let r=Ckr;this._panStep=r.panStep,this._bearingStep=r.bearingStep,this._pitchStep=r.pitchStep,this._rotationDisabled=!1}reset(){this._active=!1}keydown(e){if(e.altKey||e.ctrlKey||e.metaKey)return;let t=0,r=0,i=0,n=0,a=0;switch(e.keyCode){case 61:case 107:case 171:case 187:t=1;break;case 189:case 109:case 173:t=-1;break;case 37:e.shiftKey?r=-1:(e.preventDefault(),n=-1);break;case 39:e.shiftKey?r=1:(e.preventDefault(),n=1);break;case 38:e.shiftKey?i=1:(e.preventDefault(),a=-1);break;case 40:e.shiftKey?i=-1:(e.preventDefault(),a=1);break;default:return}return this._rotationDisabled&&(r=0,i=0),{cameraAnimation:o=>{let s=this._tr;o.easeTo({duration:300,easeId:"keyboardHandler",easing:Dkr,zoom:t?n0(s.zoom+t*(e.shiftKey?2:1),o.getZoomSnap()):s.zoom,bearing:s.bearing+r*this._bearingStep,pitch:s.pitch+i*this._pitchStep,offset:[-n*this._panStep,-a*this._panStep],center:s.center},{originalEvent:e})}}}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}disableRotation(){this._rotationDisabled=!0}enableRotation(){this._rotationDisabled=!1}};$ot=4.000244140625,Tlt=class{constructor(e,t,r){this._onTimeout=i=>{this._type="wheel",this._delta-=this._lastValue,this._active||this._start(i)},this._map=e,this._tr=r,this._triggerRenderFrame=t,this._delta=0,this._defaultZoomRate=.01,this._wheelZoomRate=.0022222222222222222}setZoomRate(e){this._defaultZoomRate=e}setWheelZoomRate(e){this._wheelZoomRate=e}isEnabled(){return!!this._enabled}isActive(){return!!this._active||this._finishTimeout!==void 0}isZooming(){return!!this._zooming}enable(e){this.isEnabled()||(this._enabled=!0,this._aroundCenter=!!e&&e.around==="center")}disable(){this.isEnabled()&&(this._enabled=!1)}_shouldBePrevented(e){return this._map.cooperativeGestures.isEnabled()?!(e.ctrlKey||this._map.cooperativeGestures.isBypassed(e)):!1}wheel(e){if(!this.isEnabled())return;if(this._shouldBePrevented(e)){this._map.cooperativeGestures.notifyGestureBlocked("wheel_zoom",e);return}let t=e.deltaMode===WheelEvent.DOM_DELTA_LINE?e.deltaY*40:e.deltaY,r=zo(),i=r-(this._lastWheelEventTime||0);this._lastWheelEventTime=r,t!==0&&t%$ot==0?this._type="wheel":t!==0&&Math.abs(t)<4?this._type="trackpad":i>400?(this._type=null,this._lastValue=t,this._timeout=setTimeout(this._onTimeout,40,e)):this._type||(this._type=Math.abs(i*t)<200?"trackpad":"wheel",this._timeout&&(clearTimeout(this._timeout),this._timeout=null,t+=this._lastValue)),e.shiftKey&&t&&(t/=4),this._type&&(this._lastWheelEvent=e,this._delta-=t,this._active||this._start(e)),e.preventDefault()}_start(e){if(!this._delta)return;this._needsRerender=!1,this._active=!0,this.isZooming()||(this._zooming=!0),this._finishTimeout&&(clearTimeout(this._finishTimeout),delete this._finishTimeout);let t=Xn.mousePos(this._map.getCanvas(),e),r=this._tr;this._aroundPoint=this._aroundCenter?r.transform.locationToScreenPoint(yn.convert(r.center)):t,this._needsRerender||(this._needsRerender=!0,this._triggerRenderFrame())}renderFrame(){if(!this._needsRerender||(this._needsRerender=!1,!this.isActive()))return;let e=this._tr.transform;if(typeof this._lastExpectedZoom=="number"){let o=e.zoom-this._lastExpectedZoom;typeof this._startZoom=="number"&&(this._startZoom+=o),typeof this._targetZoom=="number"&&(this._targetZoom+=o)}if(this._delta!==0){let o=this._type==="wheel"&&Math.abs(this._delta)>$ot?this._wheelZoomRate:this._defaultZoomRate,s=2/(1+Math.exp(-Math.abs(this._delta*o)));this._delta<0&&s!==0&&(s=1/s);let l=typeof this._targetZoom=="number"?Vf(this._targetZoom):e.scale,u=e.applyConstrain(e.getCameraLngLat(),Vc(l*s)).zoom,c=this._map.getZoomSnap();if(this._type==="wheel"&&c>0){let f=n0(e.zoom,c);this._targetZoom=n0(u,c,u-f)}else this._targetZoom=u;this._type==="wheel"&&(this._startZoom=e.zoom,this._easing=this._smoothOutEasing(200)),this._delta=0}let t=typeof this._targetZoom=="number"?this._targetZoom:e.zoom,r=this._startZoom,i=this._easing,n=!1,a;if(this._type==="wheel"&&r&&i){let o=zo()-this._lastWheelEventTime,s=Math.min((o+5)/200,1),l=i(s);a=Ks.number(r,t,l),s<1?this._needsRerender=!0:n=!0}else a=t,n=!0;return this._active=!0,n&&(this._active=!1,this._finishTimeout=setTimeout(()=>{this._zooming=!1,this._triggerRenderFrame(),delete this._targetZoom,delete this._lastExpectedZoom,delete this._finishTimeout},200)),this._lastExpectedZoom=a,{noInertia:!0,needsRenderFrame:!n,zoomDelta:a-e.zoom,around:this._aroundPoint,originalEvent:this._lastWheelEvent}}_smoothOutEasing(e){let t=JB;if(this._prevEase){let r=this._prevEase,i=(zo()-r.start)/r.duration,n=r.easing(i+.01)-r.easing(i),a=.27/Math.sqrt(n*n+1e-4)*.01,o=Math.sqrt(.0729-a*a);t=KB(a,o,.25,1)}return this._prevEase={start:zo(),duration:e,easing:t},t}reset(){this._active=!1,this._zooming=!1,delete this._targetZoom,delete this._lastExpectedZoom,this._finishTimeout&&(clearTimeout(this._finishTimeout),delete this._finishTimeout)}},Alt=class{constructor(e,t){this._clickZoom=e,this._tapZoom=t}enable(){this._clickZoom.enable(),this._tapZoom.enable()}disable(){this._clickZoom.disable(),this._tapZoom.disable()}isEnabled(){return this._clickZoom.isEnabled()&&this._tapZoom.isEnabled()}isActive(){return this._clickZoom.isActive()||this._tapZoom.isActive()}},Fkr=class{constructor(e,t){this._tr=t,this.reset()}reset(){this._active=!1}dblclick(e,t){return e.preventDefault(),{cameraAnimation:r=>{r.easeTo({duration:300,zoom:n0(this._tr.zoom+(e.shiftKey?-1:1),r.getZoomSnap()),around:this._tr.transform.isPointOnMapSurface(t)?this._tr.unproject(t):void 0},{originalEvent:e})}}}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}},Lkr=class{constructor(){this._tap=new voe({numTouches:1,numTaps:1}),this._zoomRate=1,this.reset()}setZoomRate(e){this._zoomRate=e!=null?e:1}reset(){this._active=!1,delete this._swipePoint,delete this._swipeTouch,delete this._tapTime,delete this._tapPoint,this._tap.reset()}touchstart(e,t,r){if(!this._swipePoint)if(!this._tapTime)this._tap.touchstart(e,t,r);else{let i=t[0],n=e.timeStamp-this._tapTime<500,a=this._tapPoint.dist(i)<30;!n||!a?this.reset():r.length>0&&(this._swipePoint=i,this._swipeTouch=r[0].identifier)}}touchmove(e,t,r){if(!this._tapTime)this._tap.touchmove(e,t,r);else if(this._swipePoint){if(r[0].identifier!==this._swipeTouch)return;let i=t[0],n=i.y-this._swipePoint.y;return this._swipePoint=i,e.preventDefault(),this._active=!0,{zoomDelta:n/128*this._zoomRate}}}touchend(e,t,r){if(this._tapTime)this._swipePoint&&r.length===0&&this.reset();else{let i=this._tap.touchend(e,t,r);i&&(this._tapTime=e.timeStamp,this._tapPoint=i)}}touchcancel(){this.reset()}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}},Mlt=class{constructor(e,t,r){this._el=e,this._mousePan=t,this._touchPan=r}enable(e){this._inertiaOptions=e||{},this._mousePan.enable(),this._touchPan.enable(),this._el.classList.add("maplibregl-touch-drag-pan")}disable(){this._mousePan.disable(),this._touchPan.disable(),this._el.classList.remove("maplibregl-touch-drag-pan")}isEnabled(){return this._mousePan.isEnabled()&&this._touchPan.isEnabled()}isActive(){return this._mousePan.isActive()||this._touchPan.isActive()}},Slt=class{constructor(e,t,r,i){this._pitchWithRotate=e.pitchWithRotate,this._rollEnabled=e.rollEnabled,this._mouseRotate=t,this._mousePitch=r,this._mouseRoll=i}enable(){this._mouseRotate.enable(),this._pitchWithRotate&&this._mousePitch.enable(),this._rollEnabled&&this._mouseRoll.enable()}disable(){this._mouseRotate.disable(),this._mousePitch.disable(),this._mouseRoll.disable()}isEnabled(){return this._mouseRotate.isEnabled()&&(!this._pitchWithRotate||this._mousePitch.isEnabled())&&(!this._rollEnabled||this._mouseRoll.isEnabled())}isActive(){return this._mouseRotate.isActive()||this._mousePitch.isActive()||this._mouseRoll.isActive()}},Elt=class{constructor(e,t,r,i){this._el=e,this._touchZoom=t,this._touchRotate=r,this._tapDragZoom=i,this._rotationDisabled=!1,this._enabled=!0}enable(e){this._touchZoom.enable(e),this._rotationDisabled||this._touchRotate.enable(e),this._tapDragZoom.enable(),this._el.classList.add("maplibregl-touch-zoom-rotate")}disable(){this._touchZoom.disable(),this._touchRotate.disable(),this._tapDragZoom.disable(),this._el.classList.remove("maplibregl-touch-zoom-rotate")}isEnabled(){return this._touchZoom.isEnabled()&&(this._rotationDisabled||this._touchRotate.isEnabled())&&this._tapDragZoom.isEnabled()}isActive(){return this._touchZoom.isActive()||this._touchRotate.isActive()||this._tapDragZoom.isActive()}setZoomRate(e){this._touchZoom.setZoomRate(e),this._tapDragZoom.setZoomRate(e)}setZoomThreshold(e){this._touchZoom.setZoomThreshold(e)}disableRotation(){this._rotationDisabled=!0,this._touchRotate.disable()}enableRotation(){this._rotationDisabled=!1,this._touchZoom.isEnabled()&&this._touchRotate.enable()}},klt=class{constructor(e,t){this._bypassKey=navigator.userAgent.includes("Mac")?"metaKey":"ctrlKey",this._map=e,this._options=t,this._enabled=!1}isActive(){return!1}reset(){}_setupUI(){if(this._container)return;let e=this._map.getCanvasContainer();e.classList.add("maplibregl-cooperative-gestures"),this._container=Xn.create("div","maplibregl-cooperative-gesture-screen",e);let t=this._map._getUIString("CooperativeGesturesHandler.WindowsHelpText");this._bypassKey==="metaKey"&&(t=this._map._getUIString("CooperativeGesturesHandler.MacHelpText"));let r=this._map._getUIString("CooperativeGesturesHandler.MobileHelpText"),i=document.createElement("div");i.className="maplibregl-desktop-message",i.textContent=t,this._container.appendChild(i);let n=document.createElement("div");n.className="maplibregl-mobile-message",n.textContent=r,this._container.appendChild(n),this._container.setAttribute("aria-hidden","true")}_destroyUI(){this._container&&(this._container.remove(),this._map.getCanvasContainer().classList.remove("maplibregl-cooperative-gestures")),delete this._container}enable(){this._setupUI(),this._enabled=!0}disable(){this._enabled=!1,this._destroyUI()}isEnabled(){return this._enabled}isBypassed(e){return e[this._bypassKey]}notifyGestureBlocked(e,t){this._enabled&&(this._map.fire(new vc("cooperativegestureprevented",{gestureType:e,originalEvent:t})),this._container.classList.add("maplibregl-show"),setTimeout(()=>{this._container.classList.remove("maplibregl-show")},100))}},Pkr=class{constructor(e){this._camera=e}get transform(){return this._camera._requestedCameraState||this._camera.transform}get center(){return{lng:this.transform.center.lng,lat:this.transform.center.lat}}get zoom(){return this.transform.zoom}get pitch(){return this.transform.pitch}get bearing(){return this.transform.bearing}unproject(e){return this.transform.screenPointToLocation(rr.convert(e),this._camera.terrain)}},Yq=e=>e.zoom||e.drag||e.roll||e.pitch||e.rotate,Ikr=class extends o0{};Rkr=class{get _ownerDocument(){var e;return((e=this._el)==null?void 0:e.ownerDocument)||document}get _ownerWindow(){var e,t;return((t=(e=this._el)==null?void 0:e.ownerDocument)==null?void 0:t.defaultView)||window}constructor(e,t,r){this._terrainGesture={inFlight:!1,anchorElevation:null},this.handleWindowEvent=n=>{this.handleEvent(n,`${n.type}Window`)},this.handleEvent=(n,a)=>{if(n.type==="blur"){this.stop(!0);return}this._updatingCamera=!0;let o=n.type==="renderFrame"?void 0:n,s={needsRenderFrame:!1},l={},u={};for(let{handlerName:h,handler:p,allowed:d}of this._handlers){if(!p.isEnabled())continue;let v;if(this._blockedByActive(u,d,h))p.reset();else if(p[a||n.type]){if(irt(n,a||n.type)){let m=Xn.mousePos(this._map.getCanvas(),n);v=p[a||n.type](n,m)}else if(rrt(n,a||n.type)){let m=n.touches,g=this._getMapTouches(m),w=Xn.touchPos(this._map.getCanvas(),g);v=p[a||n.type](n,w,g)}else nrt(a||n.type)||(v=p[a||n.type](n));this.mergeHandlerResult(s,l,v,h,o),v!=null&&v.needsRenderFrame&&this._triggerRenderFrame()}(v||p.isActive())&&(u[h]=p)}let c={};for(let h in this._previousActiveHandlers)u[h]||(c[h]=o);this._previousActiveHandlers=u,(Object.keys(c).length||Jae(s))&&(this._changes.push([s,l,c]),this._triggerRenderFrame()),(Object.keys(u).length||Jae(s))&&this._camera.stop(!0),this._updatingCamera=!1;let{cameraAnimation:f}=s;f&&(this._inertia.clear(),this._fireEvents({},{},!0),this._changes=[],f(this._map))},this._map=e,this._camera=t,this._transformProvider=new Pkr(this._camera),this._el=this._map.getCanvasContainer(),this._handlers=[],this._handlersById={},this._changes=[],this._inertia=new pkr(e),this._bearingSnap=r.bearingSnap,this._previousActiveHandlers={},this._eventsInProgress={},this._addDefaultHandlers(r);let i=this._el;this._listeners=[[i,"touchstart",{passive:!0}],[i,"touchmove",{passive:!1}],[i,"touchend",void 0],[i,"touchcancel",void 0],[i,"mousedown",void 0],[i,"mousemove",void 0],[i,"mouseup",void 0],[this._ownerDocument,"mousemove",{capture:!0}],[this._ownerDocument,"mouseup",void 0],[i,"mouseover",void 0],[i,"mouseout",void 0],[i,"dblclick",void 0],[i,"click",void 0],[i,"keydown",{capture:!1}],[i,"keyup",void 0],[i,"wheel",{passive:!1}],[i,"contextmenu",void 0],[this._ownerWindow,"blur",void 0]];for(let[n,a,o]of this._listeners)n.addEventListener(a,n===this._ownerDocument?this.handleWindowEvent:this.handleEvent,o)}destroy(){for(let[e,t,r]of this._listeners)e.removeEventListener(t,e===this._ownerDocument?this.handleWindowEvent:this.handleEvent,r)}_addDefaultHandlers(e){let t=this._map,r=t.getCanvasContainer();this._add("mapEvent",new vkr(t,e));let i=t.boxZoom=new ylt(t,e,this._transformProvider);this._add("boxZoom",i),e.interactive&&e.boxZoom&&i.enable();let n=t.cooperativeGestures=new klt(t,e.cooperativeGestures);this._add("cooperativeGestures",n),e.cooperativeGestures&&n.enable();let a=new xkr(t,this._transformProvider),o=new Fkr(t,this._transformProvider);t.doubleClickZoom=new Alt(o,a),this._add("tapZoom",a),this._add("clickZoom",o),e.interactive&&e.doubleClickZoom&&t.doubleClickZoom.enable();let s=new Lkr;this._add("tapDragZoom",s);let l=t.touchPitch=new _lt(t);this._add("touchPitch",l),e.interactive&&e.touchPitch&&t.touchPitch.enable(e.touchPitch);let u=()=>this._camera.transform.centerPoint,c=Mkr(e,u),f=Skr(e),h=Ekr(e,u);t.dragRotate=new Slt(e,c,f,h),this._add("mouseRotate",c,["mousePitch"]),this._add("mousePitch",f,["mouseRotate","mouseRoll"]),this._add("mouseRoll",h,["mousePitch"]),e.interactive&&e.dragRotate&&t.dragRotate.enable();let p=Akr(e),d=new kkr(e,t);t.dragPan=new Mlt(r,p,d),this._add("mousePan",p),this._add("touchPan",d,["touchZoom","touchRotate"]),e.interactive&&e.dragPan&&t.dragPan.enable(e.dragPan);let v=new blt,m=new xlt;t.touchZoomRotate=new Elt(r,m,v,s),this._add("touchRotate",v,["touchPan","touchZoom"]),this._add("touchZoom",m,["touchPan","touchRotate"]),e.interactive&&e.touchZoomRotate&&t.touchZoomRotate.enable(e.touchZoomRotate),this._add("blockableMapEvent",new gkr(t,e),["touchPan"]);let g=t.scrollZoom=new Tlt(t,()=>this._triggerRenderFrame(),this._transformProvider);this._add("scrollZoom",g,["mousePan"]),e.interactive&&e.scrollZoom&&t.scrollZoom.enable(e.scrollZoom);let w=t.keyboard=new wlt(t,this._transformProvider);this._add("keyboard",w),e.interactive&&e.keyboard&&t.keyboard.enable()}_add(e,t,r){this._handlers.push({handlerName:e,handler:t,allowed:r}),this._handlersById[e]=t}stop(e){if(!this._updatingCamera){for(let{handler:t}of this._handlers)t.reset();this._inertia.clear(),this._fireEvents({},{},e),this._changes=[]}}isActive(){for(let{handler:e}of this._handlers)if(e.isActive())return!0;return!1}isZooming(){return!!this._eventsInProgress.zoom||this._map.scrollZoom.isZooming()}isRotating(){return!!this._eventsInProgress.rotate}isMoving(){return!!Yq(this._eventsInProgress)||this.isZooming()}_blockedByActive(e,t,r){for(let i in e)if(i!==r&&!(t!=null&&t.includes(i)))return!0;return!1}_getMapTouches(e){let t=[];for(let r of e){let i=r.target;this._el.contains(i)&&t.push(r)}return t}mergeHandlerResult(e,t,r,i,n){if(!r)return;dn(e,r);let a={handlerName:i,originalEvent:r.originalEvent||n};r.zoomDelta!==void 0&&(t.zoom=a),r.panDelta!==void 0&&(t.drag=a),r.rollDelta!==void 0&&(t.roll=a),r.pitchDelta!==void 0&&(t.pitch=a),r.bearingDelta!==void 0&&(t.rotate=a)}_applyChanges(){let e={},t={},r={};for(let[i,n,a]of this._changes)i.panDelta&&(e.panDelta=(e.panDelta||new rr(0,0))._add(i.panDelta)),i.zoomDelta&&(e.zoomDelta=(e.zoomDelta||0)+i.zoomDelta),i.bearingDelta&&(e.bearingDelta=(e.bearingDelta||0)+i.bearingDelta),i.pitchDelta&&(e.pitchDelta=(e.pitchDelta||0)+i.pitchDelta),i.rollDelta&&(e.rollDelta=(e.rollDelta||0)+i.rollDelta),i.around!==void 0&&(e.around=i.around),i.pinchAround!==void 0&&(e.pinchAround=i.pinchAround),i.noInertia&&(e.noInertia=i.noInertia),dn(t,n),dn(r,a);this._updateMapTransform(e,t,r),this._changes=[]}_updateMapTransform(e,t,r){let i=this._map.terrain;if(!Jae(e)){this._fireEvents(t,r,!0);return}let n=this._camera.getTransformForUpdate();this._camera.stop(!0);let{panDelta:a,zoomDelta:o,bearingDelta:s,pitchDelta:l,rollDelta:u}=e,{around:c,aroundOnSurface:f}=this._resolveAround(e,i,n),h=i?this._terrainGestureElevation(i,c,f,n,t):void 0,p={panDelta:a,zoomDelta:o,rollDelta:u,pitchDelta:l,bearingDelta:s,around:c,aroundElevation:h};this._camera.cameraHelper.useGlobeControls&&!n.isPointOnMapSurface(c)&&(c=n.centerPoint);let d=this._computePreZoomAroundLoc(n,c,a,h);this._handleMapControls({terrain:i,tr:n,deltasForHelper:p,preZoomAroundLoc:d,combinedEventsInProgress:t,panDelta:a}),this._camera.applyUpdatedTransform(n),this._map._update(),e.noInertia||this._inertia.record(e),this._fireEvents(t,r,!0)}_resolveAround(e,t,r){let i=e.pinchAround===void 0?e.around:e.pinchAround;return i||(i=this._camera.transform.centerPoint),t&&!r.isPointOnMapSurface(i)?{around:r.centerPoint,aroundOnSurface:!1}:{around:i,aroundOnSurface:!0}}_terrainGestureElevation(e,t,r,i,n){if(!r)return;if(this._terrainGesture.anchorElevation===null&&(n.drag||n.zoom)){let o=i.screenTerrainPointToMercatorCoordinate(t,e);this._terrainGesture.anchorElevation=o?o.z:void 0}let a=this._terrainGesture.anchorElevation;if(a!=null&&!(t.distSqr(i.centerPoint)<.01)&&!(a-i.elevation>=.9*(i.getCameraAltitude()-i.elevation)))return a}_computePreZoomAroundLoc(e,t,r,i){if(t.distSqr(e.centerPoint)<.01)return e.center;let n=r?t.sub(r):t;return i===void 0?e.screenPointToLocation(n):e.screenPointToLocationAtElevation(n,i)}_handleMapControls({terrain:e,tr:t,deltasForHelper:r,preZoomAroundLoc:i,combinedEventsInProgress:n,panDelta:a}){let o=this._camera.cameraHelper;if(o.handleMapControlsRollPitchBearingZoom(r,t),!e&&!o.useGlobeControls&&!t.isPointOnMapSurface(r.around)){a&&t.setCenter(t.screenPointToLocation(t.centerPoint.sub(a)));return}if(!e){o.handleMapControlsPan(r,t,i);return}if(!this._terrainGesture.inFlight){this._terrainGesture.inFlight=!0,this._camera.elevationFreeze=!0,o.handleMapControlsPan(r,t,i);return}if(!o.useGlobeControls&&r.aroundElevation===void 0&&n.drag&&a){t.setCenter(t.screenPointToLocation(t.centerPoint.sub(a)));return}o.handleMapControlsPan(r,t,i)}_fireEvents(e,t,r){let i=Yq(this._eventsInProgress),n=Yq(e),a={};for(let c in e){let{originalEvent:f}=e[c];this._eventsInProgress[c]||(a[`${c}start`]=f),this._eventsInProgress[c]=e[c]}!i&&n&&this._fireEvent("movestart",n.originalEvent);for(let c in a)this._fireEvent(c,a[c]);n&&this._fireEvent("move",n.originalEvent);for(let c in e){let{originalEvent:f}=e[c];this._fireEvent(c,f)}let o={},s;for(let c in this._eventsInProgress){let{handlerName:f,originalEvent:h}=this._eventsInProgress[c];this._handlersById[f].isActive()||(delete this._eventsInProgress[c],s=t[f]||h,o[`${c}end`]=s)}for(let c in o)this._fireEvent(c,o[c]);let l=Yq(this._eventsInProgress),u=(i||n)&&!l;if(u&&this._terrainGesture.inFlight){this._camera.elevationFreeze=!1,this._terrainGesture={inFlight:!1,anchorElevation:null};let c=this._camera.getTransformForUpdate();this._map.getCenterClampedToGround()&&c.recalculateZoomAndCenter(this._map.terrain),this._camera.applyUpdatedTransform(c)}if(r&&u){this._updatingCamera=!0;let c=this._inertia._onMoveEnd(this._map.dragPan._inertiaOptions),f=h=>h!==0&&-this._bearingSnap{delete this._frameId,this.handleEvent(new Ikr("renderFrame",{timeStamp:e})),this._applyChanges()})}_triggerRenderFrame(){this._frameId===void 0&&(this._frameId=this._requestFrame())}},zkr=class extends cu{constructor(e){var t,r,i;super(),this._renderFrameCallback=()=>{let n=Math.min((zo()-this._easeStart)/this._easeOptions.duration,1);this._onEaseFrame(this._easeOptions.easing(n)),n<1&&this._easeFrameId?this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback):this.stop()},this.transform=new aO,this.cameraHelper=new oO,e.minZoom!==void 0&&this.transform.setMinZoom(e.minZoom),e.maxZoom!==void 0&&this.transform.setMaxZoom(e.maxZoom),e.minPitch!==void 0&&this.transform.setMinPitch(e.minPitch),e.maxPitch!==void 0&&this.transform.setMaxPitch(e.maxPitch),e.renderWorldCopies!==void 0&&this.transform.setRenderWorldCopies(e.renderWorldCopies),e.transformConstrain!==null&&this.transform.setConstrainOverride(e.transformConstrain),this._moving=!1,this._zooming=!1,this._bearingSnap=e.bearingSnap,this._zoomSnap=e.zoomSnap,this._requestRenderFrame=e.requestRenderFrame,this._cancelRenderFrame=e.cancelRenderFrame,this.terrain=e.terrain,this._centerClampedToGround=(t=e.centerClampedToGround)!=null?t:!0,this.transformCameraUpdate=(r=e.transformCameraUpdate)!=null?r:null,this._stopHandlers=(i=e.stopHandlers)!=null?i:(()=>{}),this.on("moveend",()=>{delete this._requestedCameraState})}setTerrain(e){this.terrain=e,this.applyTerrainChange()}migrateProjection(e,t){if(e.apply(this.transform,!0),this.transform=e,this.cameraHelper=t,this._requestedCameraState){let r=e.clone();r.apply(this._requestedCameraState,!0),this._requestedCameraState=r}}getCenter(){return new yn(this.transform.center.lng,this.transform.center.lat)}setCenter(e,t){return this.jumpTo({center:e},t)}getCenterElevation(){return this.transform.elevation}setCenterElevation(e,t){return this.jumpTo({elevation:e},t),this}getCenterClampedToGround(){return this._centerClampedToGround}setCenterClampedToGround(e){this._centerClampedToGround=e}panBy(e,t,r){return e=rr.convert(e).mult(-1),this.panTo(this.transform.center,dn({offset:e},t),r)}panTo(e,t,r){return this.easeTo(dn({center:e},t),r)}getZoom(){return this.transform.zoom}setZoom(e,t){return this.jumpTo({zoom:e},t),this}zoomTo(e,t,r){return this.easeTo(dn({zoom:e},t),r)}zoomIn(e,t){return this.zoomTo(n0(this.getZoom()+1,this._zoomSnap),e,t),this}zoomOut(e,t){return this.zoomTo(n0(this.getZoom()-1,this._zoomSnap),e,t),this}getVerticalFieldOfView(){return this.transform.fov}setVerticalFieldOfView(e,t){return e!=this.transform.fov&&(this.applyTransformChange(r=>r.setFov(e)),this.fire(new Cn("movestart",t)).fire(new Cn("move",t)).fire(new Cn("moveend",t))),this}getBearing(){return this.transform.bearing}setZoomSnap(e){return this._zoomSnap=e,this}getZoomSnap(){return this._zoomSnap}setBearing(e,t){return this.jumpTo({bearing:e},t),this}getPadding(){return this.transform.padding}setPadding(e,t){return this.jumpTo({padding:e},t),this}rotateTo(e,t,r){return this.easeTo(dn({bearing:e},t),r)}resetNorth(e,t){return this.rotateTo(0,dn({duration:1e3},e),t),this}resetNorthPitch(e,t){return this.easeTo(dn({bearing:0,pitch:0,roll:0,duration:1e3},e),t),this}snapToNorth(e,t){return Math.abs(this.getBearing()){d.easeFunc(v),this.terrain&&!e.freezeElevation&&this._updateElevation(v,r),this.applyUpdatedTransform(r),this._fireMoveEvents(t)},v=>{this.terrain&&e.freezeElevation?this._finalizeElevation():this.elevationFreeze=!1,this._afterEase(t,v)},e),this}_prepareEase(e,t,r={}){this._moving=!0,!t&&!r.moving&&this.fire(new Cn("movestart",e)),this._zooming&&!r.zooming&&this.fire(new Cn("zoomstart",e)),this._rotating&&!r.rotating&&this.fire(new Cn("rotatestart",e)),this._pitching&&!r.pitching&&this.fire(new Cn("pitchstart",e)),this._rolling&&!r.rolling&&this.fire(new Cn("rollstart",e))}_prepareElevation(e,t){this._elevationCenter=e,this._elevationStart=t.elevation,this._elevationTarget=this.terrain.getElevationForLngLat(e,t),this.elevationFreeze=!0}_updateElevation(e,t){(this._elevationStart===void 0||this._elevationCenter===void 0)&&this._prepareElevation(t.center,t),t.setMinElevationForCurrentTile(this.terrain.getMinTileElevationForLngLatZoom(this._elevationCenter,t.tileZoom));let r=this.terrain.getElevationForLngLat(this._elevationCenter,t);if(e<1&&r!==this._elevationTarget){let i=this._elevationTarget-this._elevationStart,n=(r-(i*e+this._elevationStart))/(1-e);this._elevationStart+=e*(i-n),this._elevationTarget=r}t.setElevation(Ks.number(this._elevationStart,this._elevationTarget,e))}_finalizeElevation(){this.elevationFreeze=!1,this.getCenterClampedToGround()&&this.transform.recalculateZoomAndCenter(this.terrain)}applyTerrainChange(){if(this.elevationFreeze)return;let e=this.transform;e.setMinElevationForCurrentTile(this.terrain?this.terrain.getMinTileElevationForLngLatZoom(e.center,e.tileZoom):0),this.getCenterClampedToGround()&&e.setElevation(this.terrain?this.terrain.getElevationForLngLat(e.center,e):0)}getTransformForUpdate(){return!this.transformCameraUpdate&&!this.terrain?this.transform:(this._requestedCameraState||(this._requestedCameraState=this.transform.clone()),this._requestedCameraState)}_elevateCameraIfInsideTerrain(e){if(!this.terrain&&e.elevation>=0&&e.pitch<=90)return{};let t=e.getCameraLngLat(),r=e.getCameraAltitude(),i=this.terrain?this.terrain.getElevationForLngLatZoom(t,e.zoom):0;if(rthis._elevateCameraIfInsideTerrain(i)),this.transformCameraUpdate&&t.push(i=>this.transformCameraUpdate(i)),!t.length)return;let r=e.clone();for(let i of t){let n=r.clone(),{center:a,zoom:o,roll:s,pitch:l,bearing:u,elevation:c}=i(n);a&&n.setCenter(a),c!==void 0&&n.setElevation(c),o!==void 0&&n.setZoom(o),s!==void 0&&n.setRoll(s),l!==void 0&&n.setPitch(l),u!==void 0&&n.setBearing(u),r.apply(n,!1)}this.transform.apply(r,!1)}applyTransformChange(e){let t=this._requestedCameraState!==void 0,r=this.getTransformForUpdate();e(r),this.applyUpdatedTransform(r),t||delete this._requestedCameraState}_fireMoveEvents(e){this.fire(new Cn("move",e)),this._zooming&&this.fire(new Cn("zoom",e)),this._rotating&&this.fire(new Cn("rotate",e)),this._pitching&&this.fire(new Cn("pitch",e)),this._rolling&&this.fire(new Cn("roll",e))}_afterEase(e,t){if(this._easeId&&t&&this._easeId===t)return;delete this._easeId;let r=this._zooming,i=this._rotating,n=this._pitching,a=this._rolling;this._moving=!1,this._zooming=!1,this._rotating=!1,this._pitching=!1,this._rolling=!1,this._padding=!1,r&&this.fire(new Cn("zoomend",e)),i&&this.fire(new Cn("rotateend",e)),n&&this.fire(new Cn("pitchend",e)),a&&this.fire(new Cn("rollend",e)),this.fire(new Cn("moveend",e))}flyTo(e,t){if(!e.essential&&l0.prefersReducedMotion){let k=WT(e,["center","zoom","bearing","pitch","roll","elevation","padding"]);return this.jumpTo(k,t)}this.stop(),e=dn({offset:[0,0],speed:1.2,curve:1.42,easing:JB},e),e.zoom!==void 0&&this._zoomSnap&&(e.zoom=n0(e.zoom,this._zoomSnap));let r=this.getTransformForUpdate(),i=r.bearing,n=r.pitch,a=r.roll,o=r.padding,s=e.bearing===void 0?i:this._normalizeBearing(e.bearing,i),l=e.pitch===void 0?n:+e.pitch,u=e.roll===void 0?a:this._normalizeBearing(e.roll,a),c=e.padding===void 0?r.padding:e.padding,f=rr.convert(e.offset),h=r.centerPoint.add(f),p=r.screenPointToLocation(h),d=this.cameraHelper.handleFlyTo(r,{bearing:s,pitch:l,roll:u,padding:c,locationAtOffset:p,offsetAsPoint:f,center:e.center,minZoom:e.minZoom,zoom:e.zoom}),v=e.curve,m=Math.max(r.width,r.height),g=m/d.scaleOfZoom,w=d.pixelPathLength,_=m/d.scaleOfMinZoom;v=Math.min(v,Math.sqrt(_/w*2));let b=v*v;function S(k){let D=(g*g-m*m+(k?-1:1)*b*b*w*w)/(2*(k?g:m)*b*w);return Math.log(Math.sqrt(D*D+1)-D)}function x(k){return(Math.exp(k)-Math.exp(-k))/2}function A(k){return(Math.exp(k)+Math.exp(-k))/2}function T(k){return x(k)/A(k)}let y=S(!1),E=function(k){return A(y)/A(y+v*k)},M=function(k){return m*((A(y)*T(y+v*k)-x(y))/b)/w},C=(S(!0)-y)/v;if(Math.abs(w)<2e-6||!isFinite(C)){if(Math.abs(m-g)<1e-6)return this.easeTo(e,t);let k=g0,E=D=>Math.exp(k*v*D)}if(e.duration!==void 0)e.duration=+e.duration;else{let k=e.screenSpeed===void 0?+e.speed:+e.screenSpeed/v;e.duration=1e3*C/k}return e.maxDuration&&e.duration>e.maxDuration&&(e.duration=0),this._zooming=!0,this._rotating=i!==s,this._pitching=l!==n,this._rolling=u!==a,this._padding=!r.isPaddingEqual(c),this._prepareEase(t,!1),this.terrain&&this._prepareElevation(d.targetCenter,r),this._ease(k=>{let D=k*C,F=1/E(D),P=M(D);this._rotating&&r.setBearing(Ks.number(i,s,k)),this._pitching&&r.setPitch(Ks.number(n,l,k)),this._rolling&&r.setRoll(Ks.number(a,u,k)),this._padding&&(r.interpolatePadding(o,c,k),h=r.centerPoint.add(f)),d.easeFunc(k,F,P,h),this.terrain&&!e.freezeElevation&&this._updateElevation(k,r),this.applyUpdatedTransform(r),this._fireMoveEvents(t)},()=>{this.terrain&&e.freezeElevation?this._finalizeElevation():this.elevationFreeze=!1,this._afterEase(t)},e),this}isEasing(){return!!this._easeFrameId}stop(e){return this._stop(e)}_stop(e,t){if(this._easeFrameId&&(this._cancelRenderFrame(this._easeFrameId),delete this._easeFrameId,delete this._onEaseFrame),this._onEaseEnd){let r=this._onEaseEnd;delete this._onEaseEnd,r.call(this,t)}return e||this._stopHandlers(),this}_ease(e,t,r){r.animate===!1||r.duration===0?(e(1),t()):(this._easeStart=zo(),this._easeOptions=r,this._onEaseFrame=e,this._onEaseEnd=t,this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback))}_normalizeBearing(e,t){e=W0(e,-180,180);let r=Math.abs(e-t);return Math.abs(e-360-t)MapLibre
'},Dlt=class{constructor(e=Clt){this._toggleAttribution=()=>{this._container.classList.contains("maplibregl-compact")&&(this._container.classList.contains("maplibregl-compact-show")?(this._container.setAttribute("open",""),this._container.classList.remove("maplibregl-compact-show")):(this._container.classList.add("maplibregl-compact-show"),this._container.removeAttribute("open")))},this._updateData=t=>{t&&(t.type==="terrain"||t.dataType==="style"||t.dataType==="source"&&(t.sourceDataType==="metadata"||t.sourceDataType==="visibility"))&&this._updateAttributions()},this._updateCompact=()=>{this._map.getCanvasContainer().offsetWidth<=640||this._compact?this._compact===!1?this._container.setAttribute("open",""):!this._container.classList.contains("maplibregl-compact")&&!this._container.classList.contains("maplibregl-attrib-empty")&&(this._container.setAttribute("open",""),this._container.classList.add("maplibregl-compact","maplibregl-compact-show")):(this._container.setAttribute("open",""),this._container.classList.contains("maplibregl-compact")&&this._container.classList.remove("maplibregl-compact","maplibregl-compact-show"))},this._updateCompactMinimize=()=>{this._container.classList.contains("maplibregl-compact")&&this._container.classList.contains("maplibregl-compact-show")&&this._container.classList.remove("maplibregl-compact-show")},this.options=e}getDefaultPosition(){return"bottom-right"}onAdd(e){return this._map=e,this._compact=this.options.compact,this._container=Xn.create("details","maplibregl-ctrl maplibregl-ctrl-attrib"),this._compactButton=Xn.create("summary","maplibregl-ctrl-attrib-button",this._container),this._compactButton.addEventListener("click",this._toggleAttribution),this._setElementTitle(this._compactButton,"ToggleAttribution"),this._innerContainer=Xn.create("div","maplibregl-ctrl-attrib-inner",this._container),this._updateAttributions(),this._updateCompact(),this._map.on("styledata",this._updateData),this._map.on("sourcedata",this._updateData),this._map.on("terrain",this._updateData),this._map.on("resize",this._updateCompact),this._map.on("drag",this._updateCompactMinimize),this._container}onRemove(){this._container.remove(),this._map.off("styledata",this._updateData),this._map.off("sourcedata",this._updateData),this._map.off("terrain",this._updateData),this._map.off("resize",this._updateCompact),this._map.off("drag",this._updateCompactMinimize),this._map=void 0,this._compact=void 0,this._attribHTML=void 0}_setElementTitle(e,t){let r=this._map._getUIString(`AttributionControl.${t}`);e.title=r,e.setAttribute("aria-label",r)}_updateAttributions(){if(!this._map.style)return;let e=[];if(this.options.customAttribution&&(Array.isArray(this.options.customAttribution)?e=e.concat(this.options.customAttribution.map(i=>typeof i=="string"?i:"")):typeof this.options.customAttribution=="string"&&e.push(this.options.customAttribution)),this._map.style.stylesheet){let i=this._map.style.stylesheet;this.styleOwner=i.owner,this.styleId=i.id}let t=this._map.style.tileManagers;for(let i in t){let n=t[i];if(n.used||n.usedForTerrain){let a=n.getSource();a.attribution&&!e.includes(a.attribution)&&e.push(a.attribution)}}e=e.filter(i=>String(i).trim()),e.sort((i,n)=>i.length-n.length),e=e.filter((i,n)=>{for(let a=n+1;a{let t=this._container.children;if(t.length){let r=t[0];this._map.getCanvasContainer().offsetWidth<=640||this._compact?this._compact!==!1&&r.classList.add("maplibregl-compact"):r.classList.remove("maplibregl-compact")}},this.options=e}getDefaultPosition(){return"bottom-left"}onAdd(e){var r;this._map=e,this._compact=(r=this.options)==null?void 0:r.compact,this._container=Xn.create("div","maplibregl-ctrl");let t=Xn.create("a","maplibregl-ctrl-logo");return t.target="_blank",t.rel="noopener nofollow",t.href="https://maplibre.org/",t.setAttribute("aria-label",this._map._getUIString("LogoControl.Title")),t.setAttribute("rel","noopener nofollow"),this._container.appendChild(t),this._container.style.display="block",this._map.on("resize",this._updateCompact),this._updateCompact(),this._container}onRemove(){this._container.remove(),this._map.off("resize",this._updateCompact),this._map=void 0,this._compact=void 0}},Bkr=class{constructor(){this._queue=[],this._id=0,this._cleared=!1,this._currentlyRunning=!1}add(e){let t=++this._id;return this._queue.push({callback:e,id:t,cancelled:!1}),t}remove(e){let t=this._currentlyRunning,r=t?this._queue.concat(t):this._queue;for(let i of r)if(i.id===e){i.cancelled=!0;return}}run(e=0){if(this._currentlyRunning)throw Error("Attempting to run(), but is already running.");let t=this._currentlyRunning=this._queue;this._queue=[];let r=!1,i;for(let n of t)if(!n.cancelled){try{n.callback(e)}catch(a){r||(r=!0,i=a)}if(this._cleared)break}if(this._cleared=!1,this._currentlyRunning=!1,r)throw i}clear(){this._currentlyRunning&&(this._cleared=!0),this._queue=[]}},Wot=["none","zoom","sourceTiles","visibleLayers","revision"],qkr=class{constructor(e,t,r,i){this._tileKeys=e.map(n=>n.key).sort().join(),this._revision=t,this._zoom=r,this._visibleLayerIds=i}difference(e){return this._revision===(e==null?void 0:e._revision)?this._visibleLayerIds===e._visibleLayerIds?this._tileKeys===e._tileKeys?this._zoom===e._zoom?"none":"zoom":"sourceTiles":"visibleLayers":"revision"}},n6={background:!0,fill:!0,line:!0,raster:!0,hillshade:!0,"color-relief":!0},Okr=class{constructor(e,t){this.needsFollowUpFrame=!1,this.painter=e,this.terrain=t,this.rttSize=t.tileManager.tileSize*t.qualityFactor}getTexture(e){return e.getRTT(this._stacks.length-1).texture}prepareForRender(e,t){let r=t!==this._lastPrepareZoom;this._lastPrepareZoom=t,this._stacks=[],this._prevType=null,this._rttTiles=[],this._renderableTiles=this.terrain.tileManager.getRenderableTiles(),this._renderableLayerIds=e._order.filter(s=>!e._layers[s].isHidden(t));let i=this._renderableLayerIds.join(),n=new Set;for(let s of this._renderableLayerIds){let l=e._layers[s],u=l.source;u&&n6[l.type]&&n.add(u)}this._coordsAscending={},this._rttFingerprints={};for(let s of n){let l=e.tileManagers[s];if(!l)continue;this._coordsAscending[s]={};let u=this._coordsAscending[s],c=l.getSource(),f=c instanceof l6?c.terrainTileRanges:null;for(let d of l.getVisibleCoordinates()){let v=this.terrain.tileManager.getTerrainCoords(d,f);for(let m in v)u[m]||(u[m]=[]),u[m].push(v[m])}this._rttFingerprints[s]={};let h=this._rttFingerprints[s],p=l.getState().revision;for(let d in u)h[d]=new qkr(u[d],p,t,i)}this.needsFollowUpFrame=!1;let a=r||this.painter.options.moving,o=!1;for(let s of this._renderableTiles){let l=this._textureDifference(s);l!=="none"&&(l==="zoom"&&a||l==="visibleLayers"&&r?this.needsFollowUpFrame=!0:l==="zoom"||l==="sourceTiles"?(o?this.needsFollowUpFrame=!0:s.releaseRTT(this.painter),o=!0):s.releaseRTT(this.painter))}}_textureDifference(e){let t="none";for(let r in this._rttFingerprints){let i=this._rttFingerprints[r][e.tileID.key];if(!i)continue;let n=i.difference(e.rttFingerprint[r]);Wot.indexOf(n)>Wot.indexOf(t)&&(t=n)}return t}renderLayer(e,t){if(e.isHidden(this.painter.transform.zoom))return!1;let r=e.type,i=this.painter,n=this._renderableLayerIds[this._renderableLayerIds.length-1]===e.id;if(n6[r]&&((!this._prevType||!n6[this._prevType])&&this._stacks.push([]),this._prevType=r,this._stacks[this._stacks.length-1].push(e.id),!n))return!0;if(n6[this._prevType]||n6[r]&&n){this._prevType=r;let a=this._stacks.length-1,o=this._stacks[a]||[];t.isRenderingToTexture=!0;for(let s of this._renderableTiles){if(this._rttTiles.push(s),s.getRTT(a))continue;let l=s.acquireRTT(i,a,this.rttSize);i.bindRTT(l),i.context.clear({color:aa.transparent,stencil:0}),i.currentStencilSource=void 0;for(let u of o){let c=i.style._layers[u],f=c.source?this._coordsAscending[c.source][s.tileID.key]:[s.tileID];i.context.viewport.set([0,0,this.rttSize,this.rttSize]),i.renderTileClippingMasks(c,f),i.renderLayer(i,i.style.tileManagers[c.source],c,f,t),c.source&&(s.rttFingerprint[c.source]=this._rttFingerprints[c.source][s.tileID.key])}l.texture.generateMipmap()}return t.isRenderingToTexture=!1,ikr(this.painter,this.terrain,this._rttTiles,t),this._rttTiles=[],n6[r]}return!1}},Nkr={"AttributionControl.ToggleAttribution":"Toggle attribution","AttributionControl.MapFeedback":"Map feedback","FullscreenControl.Enter":"Enter fullscreen","FullscreenControl.Exit":"Exit fullscreen","GeolocateControl.FindMyLocation":"Find my location","GeolocateControl.LocationNotAvailable":"Location not available","LogoControl.Title":"MapLibre logo","Map.Title":"Map","Marker.Title":"Map marker","NavigationControl.ResetBearing":"Drag to rotate map, click to reset north","NavigationControl.ZoomIn":"Zoom in","NavigationControl.ZoomOut":"Zoom out","Popup.Close":"Close popup","ScaleControl.Feet":"ft","ScaleControl.Meters":"m","ScaleControl.Kilometers":"km","ScaleControl.Miles":"mi","ScaleControl.NauticalMiles":"nm","GlobeControl.Enable":"Enable globe","GlobeControl.Disable":"Disable globe","TerrainControl.Enable":"Enable terrain","TerrainControl.Disable":"Disable terrain","CooperativeGesturesHandler.WindowsHelpText":"Use Ctrl + scroll to zoom the map","CooperativeGesturesHandler.MacHelpText":"Use \u2318 + scroll to zoom the map","CooperativeGesturesHandler.MobileHelpText":"Use two fingers to move the map"},Ukr=Kot,Yot={hash:!1,interactive:!0,bearingSnap:7,zoomSnap:0,attributionControl:Clt,maplibreLogo:!1,refreshExpiredTiles:!0,canvasContextAttributes:{antialias:!1,preserveDrawingBuffer:!1,powerPreference:"high-performance",failIfMajorPerformanceCaveat:!1,desynchronized:!1,contextType:void 0},scrollZoom:!0,minZoom:-2,maxZoom:22,minPitch:0,maxPitch:60,boxZoom:!0,dragRotate:!0,dragPan:!0,keyboard:!0,doubleClickZoom:!0,touchZoomRotate:!0,touchPitch:!0,cooperativeGestures:!1,trackResize:!0,center:[0,0],elevation:0,zoom:0,bearing:0,pitch:0,roll:0,renderWorldCopies:!0,maxTileCacheSize:null,maxTileCacheZoomLevels:a0.MAX_TILE_CACHE_ZOOM_LEVELS,transformRequest:null,transformCameraUpdate:null,transformConstrain:null,fadeDuration:300,crossSourceCollisions:!0,clickTolerance:3,localIdeographFontFamily:"sans-serif",pitchWithRotate:!0,rollEnabled:!1,rotateSpeed:.8,pitchSpeed:-.5,reduceMotion:void 0,validateStyle:!0,maxCanvasSize:[4096,4096],cancelPendingTileRequestsWhileZooming:!0,centerClampedToGround:!0,terrainSkirtLength:"auto",zoomLevelsToOverscale:4,anisotropicFilterPitch:20},Vkr=class extends cu{get _ownerWindow(){var e,t;return((t=(e=this._container)==null?void 0:e.ownerDocument)==null?void 0:t.defaultView)||window}constructor(e){var n,a,o;super(),this._idleTriggered=!1,this._crossFadingFactor=1,this._renderTaskQueue=new Bkr,this._controls=[],this._mapId=yne(),this._styleUrl=null,this._missingStyleImageResolver=null,this._lostContextStyle={style:null,images:null},this._contextLost=s=>{if(s.preventDefault(),this._frameRequest&&(this._frameRequest=(this._frameRequest.abort(),null)),this.painter.destroy(),this._lostContextStyle=this._getStyleAndImages(),!this.style){this.fire(new Zq("webglcontextlost",{originalEvent:s}));return}for(let l of Object.values(this.style._layers))if(l.type==="custom"&&console.warn(`Custom layer with id '${l.id}' cannot be restored after WebGL context loss. You will need to re-add it manually after context restoration.`),l._listeners)for(let[u]of Object.entries(l._listeners))console.warn(`Custom layer with id '${l.id}' had event listeners for event '${u}' which cannot be restored after WebGL context loss. You will need to re-add them manually after context restoration.`);this.style.destroy(),this.style=null,this.fire(new Zq("webglcontextlost",{originalEvent:s}))},this._contextRestored=s=>{if(this._lostContextStyle.style&&this.setStyle(this._lostContextStyle.style,{diff:!1}),this._lostContextStyle.images&&this.style){this.style.imageManager.images=this._lostContextStyle.images;for(let l in this._lostContextStyle.images){let u=this._lostContextStyle.images[l];u.isWebGLImage&&this.style.imageManager.updateImage(l,u,!1)}}this._lostContextStyle={style:null,images:null};try{this._setupPainter()}catch(l){this.fire(new Mn(l));return}this.resize(),this._update(),this._resizeInternal(),this.fire(new Zq("webglcontextrestored",{originalEvent:s}))},this._onMapScroll=s=>{if(s.target===this._container)return this._container.scrollTop=0,this._container.scrollLeft=0,!1},this._onWindowOnline=()=>{this._update()};let t=da(fn(fn({},Yot),e),{canvasContextAttributes:fn(fn({},Yot.canvasContextAttributes),e.canvasContextAttributes)});if(t.minZoom!=null&&t.maxZoom!=null&&t.minZoom>t.maxZoom)throw Error("maxZoom must be greater than or equal to minZoom");if(t.minPitch!=null&&t.maxPitch!=null&&t.minPitch>t.maxPitch)throw Error("maxPitch must be greater than or equal to minPitch");if(t.minPitch!=null&&t.minPitch<0)throw Error("minPitch must be greater than or equal to 0");if(t.maxPitch!=null&&t.maxPitch>180)throw Error("maxPitch must be less than or equal to 180");this._camera=new zkr({minZoom:t.minZoom,maxZoom:t.maxZoom,minPitch:t.minPitch,maxPitch:t.maxPitch,bearingSnap:t.bearingSnap,zoomSnap:t.zoomSnap,renderWorldCopies:t.renderWorldCopies,centerClampedToGround:t.centerClampedToGround,terrain:this.terrain,transformConstrain:t.transformConstrain,requestRenderFrame:s=>this._requestRenderFrame(s),cancelRenderFrame:s=>this._cancelRenderFrame(s),transformCameraUpdate:t.transformCameraUpdate,stopHandlers:()=>{var s;return(s=this._handlers)==null?void 0:s.stop(!1)}}),this._camera.setEventedParent(this),this._interactive=t.interactive,this._maxTileCacheSize=t.maxTileCacheSize,this._maxTileCacheZoomLevels=t.maxTileCacheZoomLevels,this._canvasContextAttributes=fn({},t.canvasContextAttributes),this._trackResize=t.trackResize===!0,this._terrainSkirtLength=t.terrainSkirtLength,this._refreshExpiredTiles=t.refreshExpiredTiles===!0,this._fadeDuration=t.fadeDuration,this._crossSourceCollisions=t.crossSourceCollisions===!0,this._collectResourceTiming=t.collectResourceTiming===!0,this._locale=fn(fn({},Nkr),t.locale),this._clickTolerance=t.clickTolerance,this._overridePixelRatio=t.pixelRatio,this._maxCanvasSize=t.maxCanvasSize,this._zoomLevelsToOverscale=t.zoomLevelsToOverscale,this.cancelPendingTileRequestsWhileZooming=t.cancelPendingTileRequestsWhileZooming===!0,this.setAnisotropicFilterPitch(t.anisotropicFilterPitch),t.reduceMotion!==void 0&&(l0.prefersReducedMotion=t.reduceMotion),this._requestManager=new $Tr(t.transformRequest),this._container=this._resolveContainer(t.container),t.maxBounds&&this.setMaxBounds(t.maxBounds),this._setupContainer();try{this._setupPainter()}catch(s){throw this._cleanupContainer(),s}this._imageQueueHandle=Bv.addThrottleControl(()=>this.isMoving()),this.on("move",()=>this._update(!1)),this.on("moveend",()=>this._update(!1)),this.on("zoom",()=>this._update(!0)),this.on("terrain",()=>{this.painter.markTerrainDepthDirty(),this._update(!0)}),this.once("idle",()=>this._idleTriggered=!0),this._handlers=new Rkr(this,this._camera,t),typeof window<"u"&&(this._ownerWindow.addEventListener("online",this._onWindowOnline,!1),this._setupResizeObserver());let r=typeof t.hash=="string"&&t.hash||void 0;this._hash=t.hash?new mlt(r).addTo(this):void 0,(n=this._hash)!=null&&n._onHashChange()||(this.jumpTo({center:t.center,elevation:t.elevation,zoom:t.zoom,bearing:t.bearing,pitch:t.pitch,roll:t.roll}),t.bounds&&(this.resize(),this.fitBounds(t.bounds,dn({},t.fitBoundsOptions,{duration:0}))));let i=typeof t.style=="string"||((o=(a=t.style)==null?void 0:a.projection)==null?void 0:o.type)!=="globe";this.resize(null,i),this._localIdeographFontFamily=t.localIdeographFontFamily,this._validateStyle=t.validateStyle,t.style&&this.setStyle(t.style,{localIdeographFontFamily:t.localIdeographFontFamily}),t.attributionControl&&this.addControl(new Dlt(typeof t.attributionControl=="boolean"?void 0:t.attributionControl)),t.maplibreLogo&&this.addControl(new Flt,t.logoPosition),this.on("style.load",()=>{if(i||this._resizeTransform(),this._camera.transform.unmodified){let s=WT(this.style.stylesheet,["center","zoom","bearing","pitch","roll"]);this.jumpTo(s)}}),this.on("data",s=>{this._update(s.dataType==="style"),this.fire(s.dataType==="style"?new dp("styledata",s):new Ns("sourcedata",s))}),this.on("dataloading",s=>{this.fire(s.dataType==="style"?new dp("styledataloading",s):new Ns("sourcedataloading",s))}),this.on("dataabort",s=>{this.fire(new Ns("sourcedataabort",s))})}_getMapId(){return this._mapId}setGlobalStateProperty(e,t){return this.style.setGlobalStateProperty(e,t),this._update(!0)}getGlobalState(){return this.style.getGlobalState()}addControl(e,t){if(t===void 0&&(t=e.getDefaultPosition?e.getDefaultPosition():"top-right"),!(e!=null&&e.onAdd))return this.fire(new Mn(Error("Invalid argument to map.addControl(). Argument must be a control with onAdd and onRemove methods.")));let r=e.onAdd(this);this._controls.push(e);let i=this._controlPositions[t];return t.includes("bottom")?i.insertBefore(r,i.firstChild):i.appendChild(r),this}removeControl(e){if(!(e!=null&&e.onRemove))return this.fire(new Mn(Error("Invalid argument to map.removeControl(). Argument must be a control with onAdd and onRemove methods.")));let t=this._controls.indexOf(e);return t>-1&&this._controls.splice(t,1),e.onRemove(this),this}hasControl(e){return this._controls.includes(e)}coveringTiles(e){return u6(this._camera.transform,e)}setTransformCameraUpdate(e){this._camera.transformCameraUpdate=e}getCenter(){return new yn(this._camera.transform.center.lng,this._camera.transform.center.lat)}setCenter(e,t){return this._camera.setCenter(e,t),this}getCenterElevation(){return this._camera.transform.elevation}setCenterElevation(e,t){return this._camera.setCenterElevation(e,t),this}setCenterClampedToGround(e){this._camera.setCenterClampedToGround(e)}panBy(e,t,r){return this._camera.panBy(e,t,r),this}panTo(e,t,r){return this._camera.panTo(e,t,r),this}getZoom(){return this._camera.transform.zoom}setZoom(e,t){return this._camera.setZoom(e,t),this}zoomTo(e,t,r){return this._camera.zoomTo(e,t,r),this}zoomIn(e,t){return this._camera.zoomIn(e,t),this}zoomOut(e,t){return this._camera.zoomOut(e,t),this}getVerticalFieldOfView(){return this._camera.transform.fov}setVerticalFieldOfView(e,t){return this._camera.setVerticalFieldOfView(e,t),this}getBearing(){return this._camera.transform.bearing}setBearing(e,t){return this._camera.setBearing(e,t),this}getZoomSnap(){return this._camera.getZoomSnap()}setZoomSnap(e){return this._camera.setZoomSnap(e),this}getPadding(){return this._camera.transform.padding}setPadding(e,t){return this._camera.setPadding(e,t),this}rotateTo(e,t,r){return this._camera.rotateTo(e,t,r),this}resetNorth(e,t){return this._camera.resetNorth(e,t),this}resetNorthPitch(e,t){return this._camera.resetNorthPitch(e,t),this}snapToNorth(e,t){return this._camera.snapToNorth(e,t),this}getPitch(){return this._camera.transform.pitch}setPitch(e,t){return this._camera.setPitch(e,t),this}getRoll(){return this._camera.transform.roll}setRoll(e,t){return this._camera.setRoll(e,t),this}cameraForBounds(e,t){return this._camera.cameraForBounds(e,t)}fitBounds(e,t,r){return this._camera.fitBounds(e,t,r),this}fitScreenCoordinates(e,t,r,i,n){return this._camera.fitScreenCoordinates(e,t,r,i,n),this}jumpTo(e,t){return this._camera.jumpTo(e,t),this}calculateAnchoredCameraOptions(e){return this._camera.calculateAnchoredCameraOptions(e)}calculateCameraOptionsFromCameraLngLatAltRotation(e,t,r,i,n){return this._camera.calculateCameraOptionsFromCameraLngLatAltRotation(e,t,r,i,n)}easeTo(e,t){return this._camera.easeTo(e,t),this}flyTo(e,t){return this._camera.flyTo(e,t),this}stop(){return this._camera.stop(),this}queryTerrainElevation(e){return this.terrain?this.terrain.getElevationForLngLat(yn.convert(e),this._camera.transform):null}getCenterClampedToGround(){return this._camera.getCenterClampedToGround()}calculateCameraOptionsFromTo(e,t,r,i){return i==null&&this.terrain&&(i=this.terrain.getElevationForLngLat(r,this._camera.transform)),this._camera.transform.calculateCameraOptionsFromTo(e,t,r,i!=null?i:0)}resize(e,t=!0){if(this._lostContextStyle.style!==null)return this;this._resizeInternal(t);let r=!this._camera._moving;return r&&(this.stop(),this.fire(new Cn("movestart",e)).fire(new Cn("move",e))),this.fire(new vc("resize",e)),r&&this.fire(new Cn("moveend",e)),this}_resizeInternal(e=!0){let[t,r]=this._containerDimensions(),i=this._getClampedPixelRatio(t,r);if(this._resizeCanvas(t,r,i),this.painter.resize(t,r,i),this.painter.overLimit()){let n=this.painter.context.gl;this._maxCanvasSize=[n.drawingBufferWidth,n.drawingBufferHeight];let a=this._getClampedPixelRatio(t,r);this._resizeCanvas(t,r,a),this.painter.resize(t,r,a)}this._resizeTransform(e)}_resizeTransform(e=!0){var i;let[t,r]=this._containerDimensions();this._camera.transform.resize(t,r,e),(i=this._camera._requestedCameraState)==null||i.resize(t,r,e)}_getClampedPixelRatio(e,t){let{0:r,1:i}=this._maxCanvasSize,n=this.getPixelRatio(),a=e*n,o=t*n,s=a>r?r/a:1,l=o>i?i/o:1,u=Math.min(s,l);return u<1&&Pa("The canvas is larger than maxCanvasSize and is rendered at a lower pixel ratio to fit. Increase maxCanvasSize, within MAX_TEXTURE_SIZE, to render at full resolution."),u*n}getPixelRatio(){var e;return(e=this._overridePixelRatio)!=null?e:devicePixelRatio}setPixelRatio(e){this._overridePixelRatio=e,this.resize()}getBounds(){return this._camera.transform.getBounds()}getMaxBounds(){return this._camera.transform.getMaxBounds()}setMaxBounds(e){return this._camera.applyTransformChange(t=>t.setMaxBounds(qv.convert(e))),this._update()}setMinZoom(e){if(e!=null||(e=-2),e>=-2&&e<=this._camera.transform.maxZoom){let t=this._camera.transform.zoom;return this._camera.applyTransformChange(r=>r.setMinZoom(e)),this._update(),t!==this._camera.transform.zoom&&this.fire(new Cn("zoomstart")).fire(new Cn("zoom")).fire(new Cn("zoomend")).fire(new Cn("movestart")).fire(new Cn("move")).fire(new Cn("moveend")),this}throw Error("minZoom must be between -2 and the current maxZoom, inclusive")}getMinZoom(e=!1){let t=this._camera.transform;return e?t.applyConstrain(t.center,t.minZoom).zoom:t.minZoom}setMaxZoom(e){if(e!=null||(e=22),e>=this._camera.transform.minZoom){let t=this._camera.transform.zoom;return this._camera.applyTransformChange(r=>r.setMaxZoom(e)),this._update(),t!==this._camera.transform.zoom&&this.fire(new Cn("zoomstart")).fire(new Cn("zoom")).fire(new Cn("zoomend")).fire(new Cn("movestart")).fire(new Cn("move")).fire(new Cn("moveend")),this}throw Error("maxZoom must be greater than the current minZoom")}getMaxZoom(){return this._camera.transform.maxZoom}setMinPitch(e){if(e!=null||(e=0),e<0)throw Error("minPitch must be greater than or equal to 0");if(e>=0&&e<=this._camera.transform.maxPitch){let t=this._camera.transform.pitch;return this._camera.applyTransformChange(r=>r.setMinPitch(e)),this._update(),t!==this._camera.transform.pitch&&this.fire(new Cn("pitchstart")).fire(new Cn("pitch")).fire(new Cn("pitchend")).fire(new Cn("movestart")).fire(new Cn("move")).fire(new Cn("moveend")),this}throw Error("minPitch must be between 0 and the current maxPitch, inclusive")}getMinPitch(){return this._camera.transform.minPitch}setMaxPitch(e){if(e!=null||(e=60),e>180)throw Error("maxPitch must be less than or equal to 180");if(e>=this._camera.transform.minPitch){let t=this._camera.transform.pitch;return this._camera.applyTransformChange(r=>r.setMaxPitch(e)),this._update(),t!==this._camera.transform.pitch&&this.fire(new Cn("pitchstart")).fire(new Cn("pitch")).fire(new Cn("pitchend")).fire(new Cn("movestart")).fire(new Cn("move")).fire(new Cn("moveend")),this}throw Error("maxPitch must be greater than the current minPitch")}getMaxPitch(){return this._camera.transform.maxPitch}getAnisotropicFilterPitch(){return this._anisotropicFilterPitch}setAnisotropicFilterPitch(e){if(e!=null||(e=20),e>180)throw Error("anisotropicFilterPitch must be less than or equal to 180");if(e<0)throw Error("anisotropicFilterPitch must be greater than or equal to 0");return this._anisotropicFilterPitch=e,this._update()}getRenderWorldCopies(){return this._camera.transform.renderWorldCopies}setRenderWorldCopies(e){return this._camera.applyTransformChange(t=>t.setRenderWorldCopies(e)),this._update()}setTransformConstrain(e){return this._camera.applyTransformChange(t=>t.setConstrainOverride(e)),this._update()}project(e){return this._camera.transform.locationToScreenPoint(yn.convert(e),this.style&&this.terrain)}unproject(e){return this._camera.transform.screenPointToLocation(rr.convert(e),this.terrain)}isMoving(){var e;return this._camera.isMoving()||((e=this._handlers)==null?void 0:e.isMoving())||!1}isZooming(){var e;return this._camera.isZooming()||((e=this._handlers)==null?void 0:e.isZooming())||!1}isRotating(){var e;return this._camera.isRotating()||((e=this._handlers)==null?void 0:e.isRotating())||!1}_createDelegates(e,t,r){if(e==="mouseenter"||e==="mouseover"){let i=!1;return{mousemove:n=>{let a=t.filter(s=>this.getLayer(s)),o=a.length===0?[]:this.queryRenderedFeatures(n.point,{layers:a});o.length?i||(i=!0,r.call(this,new s0(e,this,n.originalEvent,{features:o}))):i=!1},mouseout:()=>{i=!1}}}if(e==="mouseleave"||e==="mouseout"){let i=!1;return{mousemove:n=>{let a=t.filter(o=>this.getLayer(o));(a.length===0?[]:this.queryRenderedFeatures(n.point,{layers:a})).length?i=!0:i&&(i=!1,r.call(this,new s0(e,this,n.originalEvent)))},mouseout:n=>{i&&(i=!1,r.call(this,new s0(e,this,n.originalEvent)))}}}{let i=n=>{let a=t.filter(s=>this.getLayer(s)),o=a.length===0?[]:this.queryRenderedFeatures(n.point,{layers:a});o.length&&(n.features=o,r.call(this,n),delete n.features)};return{[e]:i}}}_addDelegatedListener(e,t){var r;this._delegatedListeners||(this._delegatedListeners={}),(r=this._delegatedListeners)[e]||(r[e]=[]),this._delegatedListeners[e].push(t);for(let i in t.delegates)this.on(i,t.delegates[i])}_removeDelegatedListener(e,t,r){var n;if(!((n=this._delegatedListeners)!=null&&n[e]))return;let i=this._delegatedListeners[e];for(let a=0;at.includes(s))){for(let s in o.delegates)this.off(s,o.delegates[s]);i.splice(a,1);return}}}on(e,t,r){if(r===void 0)return super.on(e,t);let i=typeof t=="string"?[t]:t,n={layers:i,listener:r,delegates:this._createDelegates(e,i,r)};return this._addDelegatedListener(e,n),{unsubscribe:()=>{this._removeDelegatedListener(e,i,r)}}}once(e,t,r){if(r===void 0)return super.once(e,t);let i=typeof t=="string"?[t]:t,n={layers:i,listener:r,delegates:this._createDelegates(e,i,a=>{this._removeDelegatedListener(e,i,r),r.call(this,a)})};return this._addDelegatedListener(e,n),this}off(e,t,r){if(r===void 0)return super.off(e,t);let i=typeof t=="string"?[t]:t;return this._removeDelegatedListener(e,i,r),this}queryRenderedFeatures(e,t){if(!this.style)return[];let r,i=e instanceof rr||Array.isArray(e),n=i?e:[[0,0],[this._camera.transform.width,this._camera.transform.height]];if(t||(t=(i?{}:e)||{}),n instanceof rr||typeof n[0]=="number")r=[rr.convert(n)];else{let a=rr.convert(n[0]),o=rr.convert(n[1]);r=[a,new rr(o.x,a.y),o,new rr(a.x,o.y),a]}return this.style.queryRenderedFeatures(r,t,this._camera.transform)}querySourceFeatures(e,t){return this.style.querySourceFeatures(e,t)}setStyle(e,t){return t=dn({},{localIdeographFontFamily:this._localIdeographFontFamily,validate:this._validateStyle},t),this._styleUrl=typeof e=="string"?e:null,t.diff!==!1&&t.localIdeographFontFamily===this._localIdeographFontFamily&&this.style&&e?(this._diffStyle(e,t),this):(this._localIdeographFontFamily=t.localIdeographFontFamily,this._updateStyle(e,t))}setTransformRequest(e){return this._requestManager.setTransformRequest(e),this}_getUIString(e){let t=this._locale[e];if(t==null)throw Error(`Missing UI string '${e}'`);return t}_updateStyle(e,t){var i,n,a;if((i=this._diffStyleRequest)==null||i.abort(),this._diffStyleRequest=null,t.transformStyle&&this.style&&!this.style._loaded){this.style.once("style.load",()=>this._updateStyle(e,t));return}let r=this.style&&t.transformStyle?this.style.serialize():void 0;if(this.style&&(this.style.setEventedParent(null),this.style._remove(!e)),e)this.style=new doe(this,t||{});else return this._frameRequest&&(this._frameRequest=(this._frameRequest.abort(),null)),(a=(n=this.style)==null?void 0:n.projection)==null||a.destroy(),delete this.style,this;return this.style.setEventedParent(this,{style:this.style}),typeof e=="string"?this.style.loadURL(e,t,r):this.style.loadJSON(e,t,r),this}_lazyInitEmptyStyle(){this.style||(this.style=new doe(this,{}),this.style.setEventedParent(this,{style:this.style}),this.style.loadEmpty())}_diffStyle(e,t){return Zi(this,null,function*(){var r;if((r=this._diffStyleRequest)==null||r.abort(),typeof e=="string"){let i=e;this._diffStyleRequest=new AbortController;let n=this._diffStyleRequest;try{let a=yield this._requestManager.transformRequest(i,"Style");if(n.signal.aborted){this._diffStyleRequest=null;return}let o=yield yC(a,n);this._diffStyleRequest=null,this._updateDiff(o.data,t)}catch(a){this._diffStyleRequest=null,Vm(a)||this.fire(new Mn(Oc(a)))}}else typeof e=="object"&&(this._diffStyleRequest=null,this._updateDiff(e,t))})}_updateDiff(e,t){try{this.style.setState(e,t)&&this._update(!0)}catch(r){Pa(`Unable to perform style diff: ${Oc(r).message}. Rebuilding the style from scratch.`),this._updateStyle(e,t)}}getStyle(){if(this.style)return this.style.serialize()}getStyleUrl(){return this._styleUrl}_getStyleAndImages(){return this.style?{style:this.style.serialize(),images:this.style.imageManager.cloneImages()}:{style:null,images:{}}}isStyleLoaded(){if(!this.style){Pa("There is no style added to the map.");return}return this.style.loaded()}addSource(e,t){return this._lazyInitEmptyStyle(),this.style.addSource(e,t),this._update(!0)}isSourceLoaded(e){var r;let t=(r=this.style)==null?void 0:r.tileManagers[e];if(t===void 0){this.fire(new Mn(Error(`There is no tile manager with ID '${e}'`)));return}return t.loaded()}setTerrain(e,t={}){if(this.style._checkLoaded(),e&&KT(this,mh.terrain,{value:e},t))return this;if(this._terrainDataCallback&&this.style.off("data",this._terrainDataCallback),!e)this.terrain&&this.terrain.destroy(),this.terrain=null,this.painter.renderToTexture=null,this.painter.destroyRTTResources(),this._camera.setTerrain(null);else{let r=this.style.tileManagers[e.source];if(!r)throw Error(`cannot load terrain, because there exists no source with ID: ${e.source}`);this.terrain===null&&r.reload();for(let i in this.style._layers){let n=this.style._layers[i];n.type==="hillshade"&&n.source===e.source&&Pa("You are using the same source for a hillshade layer and for 3D terrain. Please consider using two separate sources to improve rendering quality."),n.type==="color-relief"&&n.source===e.source&&Pa("You are using the same source for a color-relief layer and for 3D terrain. Please consider using two separate sources to improve rendering quality.")}this.terrain&&this.terrain.destroy(),this.terrain=new eMr(this.painter,r,e,this._terrainSkirtLength),this.painter.renderToTexture=new Okr(this.painter,this.terrain),this._camera.setTerrain(this.terrain),this._terrainDataCallback=i=>this._handleTerrainDataEvent(i,e.source),this.style.on("data",this._terrainDataCallback)}return this.style.triggerSymbolPlacement(),this.fire(new est({terrain:e})),this}_handleTerrainDataEvent(e,t){var i;if(e.dataType==="style"){this.terrain.tileManager.releaseAllRTT();return}let r=e.sourceId===t;if(r&&(this.terrain.resetElevationCache(),this.style.triggerSymbolPlacement()),r&&e.tile&&(this.painter.markTerrainDepthDirty(),this._camera.applyTerrainChange()),e.tile){if(((i=e.source)==null?void 0:i.type)==="image"){this.terrain.tileManager.releaseAllRTT();return}this.terrain.tileManager.releaseRTT(e.tile.tileID)}}getTerrain(){var e,t;return(t=(e=this.terrain)==null?void 0:e.options)!=null?t:null}areTilesLoaded(){var t;let e=(t=this.style)==null?void 0:t.tileManagers;for(let r of Object.values(e))if(!r.areTilesLoaded())return!1;return!0}removeSource(e){return this.style.removeSource(e),this._update(!0)}getSource(e){var t;return(t=this.style)==null?void 0:t.getSource(e)}setSourceTileLodParams(e,t,r){if(r){let i=this.getSource(r);if(!i)throw Error(`There is no source with ID "${r}", cannot set LOD parameters`);i.calculateTileZoom=aoe(Math.max(1,e),Math.max(1,t))}else for(let i in this.style.tileManagers)this.style.tileManagers[i].getSource().calculateTileZoom=aoe(Math.max(1,e),Math.max(1,t));return this._update(!0),this}refreshTiles(e,t){let r=this.style.tileManagers[e];if(!r)throw Error(`There is no tile manager with ID "${e}", cannot refresh tile`);t===void 0?r.reload(!0):r.refreshTiles(t.map(i=>new RC(i.z,i.x,i.y)))}addImage(e,t,r={}){var n;this._lazyInitEmptyStyle();let i=this._createStyleImage(t,r);return i?(this.style.addImage(e,i),(n=i.userImage)!=null&&n.onAdd&&i.userImage.onAdd(this,e),this):this}setMissingStyleImageResolver(e){var t;return this._missingStyleImageResolver=e,(t=this.style)==null||t.setMissingImageResolver(e),this}_createStyleImage(e,t={}){let{pixelRatio:r=1,sdf:i=!1,stretchX:n,stretchY:a,content:o,textFitWidth:s,textFitHeight:l}=t;if(e instanceof HTMLImageElement||px(e)){let{width:u,height:c,data:f}=l0.getImageData(e);return{data:new Es({width:u,height:c},f),pixelRatio:r,stretchX:n,stretchY:a,content:o,textFitWidth:s,textFitHeight:l,sdf:i,version:0}}if(e.width===void 0||e.height===void 0)return this.fire(new Mn(Error("Invalid arguments to map.addImage(). The second argument must be an `HTMLImageElement`, `ImageData`, `ImageBitmap`, or object with `width`, `height`, and `data` properties with the same format as `ImageData`"))),null;{let{width:u,height:c,data:f}=e,h=e,p=DC(h.data);return{data:p?new Es({width:u,height:c}):new Es({width:u,height:c},new Uint8Array(f)),pixelRatio:r,stretchX:n,stretchY:a,content:o,textFitWidth:s,textFitHeight:l,sdf:i,version:0,isWebGLImage:p,userImage:h}}}updateImage(e,t){let r=this.style.getImage(e);if(!r)return this.fire(new Mn(Error("The map has no image with that id. If you are adding a new image use `map.addImage(...)` instead.")));let{width:i,height:n,data:a}=t instanceof HTMLImageElement||px(t)?l0.getImageData(t):t;if(i===void 0||n===void 0)return this.fire(new Mn(Error("Invalid arguments to map.updateImage(). The second argument must be an `HTMLImageElement`, `ImageData`, `ImageBitmap`, or object with `width`, `height`, and `data` properties with the same format as `ImageData`")));if(i!==r.data.width||n!==r.data.height)return this.fire(new Mn(Error("The width and height of the updated image must be that same as the previous version of the image")));if(r.isWebGLImage=DC(a),r.isWebGLImage)r.userImage=t;else{let o=!(t instanceof HTMLImageElement||px(t));r.data.replace(a,o)}return this.style.updateImage(e,r),this}getImage(e){return this.style.getImage(e)}hasImage(e){return e?!!this.style.getImage(e):(this.fire(new Mn(Error("Missing required image id"))),!1)}removeImage(e){this.style.removeImage(e)}loadImage(e){return Zi(this,null,function*(){let t=yield Bv.getImage(yield this._requestManager.transformRequest(e,"Image"),new AbortController);if(!t.data)throw Error(`Could not load image ${e}: the response is empty`);return t})}listImages(){var e,t;return(t=(e=this.style)==null?void 0:e.listImages())!=null?t:[]}addLayer(e,t){return this._lazyInitEmptyStyle(),this.style.addLayer(e,t),this._update(!0)}moveLayer(e,t){return this.style.moveLayer(e,t),this._update(!0)}removeLayer(e){return this.style.removeLayer(e),this._update(!0)}getLayer(e){var t;return(t=this.style)==null?void 0:t.getLayer(e)}getLayersOrder(){var e,t;return(t=(e=this.style)==null?void 0:e.getLayersOrder())!=null?t:[]}setLayerZoomRange(e,t,r){return this.style.setLayerZoomRange(e,t,r),this._update(!0)}setFilter(e,t,r={}){var i;return(i=this.style)==null||i.setFilter(e,t,r),this._update(!0)}getFilter(e){return this.style.getFilter(e)}setPaintProperty(e,t,r,i={}){var n;return(n=this.style)==null||n.setPaintProperty(e,t,r,i),this._update(!0)}getPaintProperty(e,t){return this.style.getPaintProperty(e,t)}setLayoutProperty(e,t,r,i={}){return this.style.setLayoutProperty(e,t,r,i),this._update(!0)}getLayoutProperty(e,t){return this.style.getLayoutProperty(e,t)}setGlyphs(e,t={}){return this._lazyInitEmptyStyle(),this.style.setGlyphs(e,t),this._update(!0)}getGlyphs(){return this.style.getGlyphsUrl()}setFontFaces(e){return this._lazyInitEmptyStyle(),this.style.setFontFaces(e),this._update(!0)}getFontFaces(){return this.style.getFontFaces()}addSprite(e,t,r={}){return this._lazyInitEmptyStyle(),this.style.addSprite(e,t,r,i=>{i||this._update(!0)}),this}removeSprite(e){return this._lazyInitEmptyStyle(),this.style.removeSprite(e),this._update(!0)}getSprite(){return this.style.getSprite()}setSprite(e,t={}){return this._lazyInitEmptyStyle(),this.style.setSprite(e,t,r=>{r||this._update(!0)}),this}setLight(e,t={}){return this._lazyInitEmptyStyle(),this.style.setLight(e,t),this._update(!0)}getLight(){return this.style.getLight()}setSky(e,t={}){return this._lazyInitEmptyStyle(),this.style.setSky(e,t),this._update(!0)}getSky(){return this.style.getSky()}setFeatureState(e,t){return this.style.setFeatureState(e,t),this._update()}removeFeatureState(e,t){return this.style.removeFeatureState(e,t),this._update()}getFeatureState(e){return this.style.getFeatureState(e)}getContainer(){return this._container}getCanvasContainer(){return this._canvasContainer}getCanvas(){return this._canvas}_containerDimensions(){let e=0,t=0;return this._container&&(e=Math.floor(this._container.clientWidth)||400,t=Math.floor(this._container.clientHeight)||300),[e,t]}_shouldHandleInitialResize(){var r;if(!((r=this._container)!=null&&r.clientWidth)||!this._container.clientHeight)return!1;let[e,t]=this._containerDimensions();return e!==this._camera.transform.width||t!==this._camera.transform.height}_setupResizeObserver(){var i;let e=!1,t=Ooe(n=>{this._trackResize&&!this._removed&&(this.resize(n),this.redraw())},50),r=(i=this._ownerWindow.ResizeObserver)!=null?i:ResizeObserver;this._resizeObserver=new r(n=>{!e&&(e=!0,!this._shouldHandleInitialResize())||t(n)}),this._resizeObserver.observe(this._container)}_resolveContainer(e){if(typeof e=="string"){let t=document.getElementById(e);if(!t)throw Error(`Container '${e}' not found.`);return t}if(e instanceof HTMLElement||e&&typeof e=="object"&&e.nodeType===1)return e;throw Error("Invalid type: 'container' must be a String or HTMLElement.")}_setupContainer(){let e=this._containerDimensions(),t=this._getClampedPixelRatio(e[0],e[1]),r=this._container;r.classList.add("maplibregl-map");let i=this._canvasContainer=Xn.create("div","maplibregl-canvas-container",r);this._interactive&&i.classList.add("maplibregl-interactive"),this._canvas=Xn.create("canvas","maplibregl-canvas",i),this._canvas.addEventListener("webglcontextlost",this._contextLost,!1),this._canvas.addEventListener("webglcontextrestored",this._contextRestored,!1),this._canvas.setAttribute("tabindex",this._interactive?"0":"-1"),this._canvas.setAttribute("aria-label",this._getUIString("Map.Title")),this._canvas.setAttribute("role","region"),this._resizeCanvas(e[0],e[1],t);let n=this._controlContainer=Xn.create("div","maplibregl-control-container",r),a=this._controlPositions={};for(let o of["top-left","top-right","bottom-left","bottom-right"])a[o]=Xn.create("div",`maplibregl-ctrl-${o} `,n);this._container.addEventListener("scroll",this._onMapScroll,!1)}_cleanupContainer(){this._canvas.removeEventListener("webglcontextrestored",this._contextRestored,!1),this._canvas.removeEventListener("webglcontextlost",this._contextLost,!1),this._canvasContainer.remove(),this._controlContainer.remove(),this._container.removeEventListener("scroll",this._onMapScroll,!1),this._container.classList.remove("maplibregl-map")}_resizeCanvas(e,t,r){let i=Math.round(r*e),n=Math.round(r*t);this._canvas.width=i,this._canvas.height=n,this._canvas.style.width=`${i/r}px`,this._canvas.style.height=`${n/r}px`}_setupPainter(){let e=da(fn({},this._canvasContextAttributes),{alpha:!0,depth:!0,stencil:!0,premultipliedAlpha:!0}),t=null;this._canvas.addEventListener("webglcontextcreationerror",i=>{t=i},{once:!0});let r=this._canvas.getContext("webgl2",e);if(!r)throw new glt(e,t);this.painter=new lkr(r,this._camera.transform)}migrateProjection(e,t){this._camera.migrateProjection(e,t),this.painter.transform=e,this.fire(new tst({newProjection:this.style.projection.name}))}loaded(){return!this._styleDirty&&!this._sourcesDirty&&!!this.style&&this.style.loaded()}_update(e){var t;return(t=this.style)!=null&&t._loaded?(this._styleDirty||(this._styleDirty=e),this._sourcesDirty=!0,this.triggerRepaint(),this):this}_requestRenderFrame(e){return this._update(),this._renderTaskQueue.add(e)}_cancelRenderFrame(e){this._renderTaskQueue.remove(e)}_render(e){var o,s,l,u,c;let t=this._idleTriggered?this._fadeDuration:0,r=((o=this.style.projection)==null?void 0:o.transitionState)>0;if(this.painter.context.setDirty(),this.painter.setBaseState(),this._renderTaskQueue.run(e),this._removed)return;let i=!1;if(this.style&&this._styleDirty){this._styleDirty=!1;let f=this._camera.transform.zoom,h=zo();this.style.zoomHistory.update(f,h);let p=new Io(f,{now:h,fadeDuration:t,zoomHistory:this.style.zoomHistory,transition:this.style.getTransition()}),d=p.crossFadingFactor();(d!==1||d!==this._crossFadingFactor)&&(i=!0,this._crossFadingFactor=d),this.style.update(p)}let n=((s=this.style.projection)==null?void 0:s.transitionState)>0!==r;this._camera.transform.setTransitionState((l=this.style.projection)==null?void 0:l.transitionState),this.style&&(this._sourcesDirty||n)&&(this._sourcesDirty=!1,this.style._updateSources(this._camera.transform)),this.terrain?(this.terrain.tileManager.update(this._camera.transform,this.terrain)&&this.terrain.resetElevationCache(),this._camera.transform.setMinElevationForCurrentTile(this.terrain.getMinTileElevationForLngLatZoom(this._camera.transform.center,this._camera.transform.tileZoom)),!this._camera.elevationFreeze&&this.getCenterClampedToGround()&&this._camera.transform.setElevation(this.terrain.getElevationForLngLat(this._camera.transform.center,this._camera.transform))):(this._camera.transform.setMinElevationForCurrentTile(0),this.getCenterClampedToGround()&&this._camera.transform.setElevation(0)),this._placementDirty=(u=this.style)==null?void 0:u._updatePlacement(this._camera.transform,this.showCollisionBoxes,t,this._crossSourceCollisions,n),this.painter.render(this.style,{showTileBoundaries:this.showTileBoundaries,showOverdrawInspector:this._showOverdrawInspector,rotating:this.isRotating(),zooming:this.isZooming(),moving:this.isMoving(),fadeDuration:t,showPadding:this.showPadding,anisotropicFilterPitch:this.getAnisotropicFilterPitch()}),this.fire(new vc("render")),this.loaded()&&!this._loaded&&(this._loaded=!0,this.fire(new vc("load"))),this.style&&(this.style.hasTransitions()||i)&&(this._styleDirty=!0),this.style&&!this._placementDirty&&this.style._releaseSymbolFadeTiles();let a=this._sourcesDirty||this._styleDirty||this._placementDirty||((c=this.painter.renderToTexture)==null?void 0:c.needsFollowUpFrame);return a||this._repaint?this.triggerRepaint():!this.isMoving()&&this.loaded()&&this.fire(new vc("idle")),this._loaded&&!this._fullyLoaded&&!a&&(this._fullyLoaded=!0),this}redraw(){return this.style&&(this._frameRequest&&(this._frameRequest=(this._frameRequest.abort(),null)),this._render(0)),this}remove(){var t,r;this._hash&&this._hash.remove();for(let i of this._controls)i.onRemove(this);this._controls=[],this._frameRequest&&(this._frameRequest=(this._frameRequest.abort(),null)),this._renderTaskQueue.clear(),(t=this._diffStyleRequest)==null||t.abort(),this.painter.destroy(),this._handlers.destroy(),this.setStyle(null),typeof window<"u"&&this._ownerWindow.removeEventListener("online",this._onWindowOnline,!1),Bv.removeThrottleControl(this._imageQueueHandle),(r=this._resizeObserver)==null||r.disconnect();let e=this.painter.context.gl.getExtension("WEBGL_lose_context");e!=null&&e.loseContext&&e.loseContext(),this._cleanupContainer(),this._removed=!0,this.fire(new vc("remove"))}triggerRepaint(){this.style&&!this._frameRequest&&(this._frameRequest=new AbortController,l0.frame(this._frameRequest,e=>{this._frameRequest=null;try{this._render(e)}catch(t){if(!Vm(t))throw t}},()=>{},this._ownerWindow))}get showTileBoundaries(){return!!this._showTileBoundaries}set showTileBoundaries(e){this._showTileBoundaries!==e&&(this._showTileBoundaries=e,this._update())}get showPadding(){return!!this._showPadding}set showPadding(e){this._showPadding!==e&&(this._showPadding=e,this._update())}get showCollisionBoxes(){return!!this._showCollisionBoxes}set showCollisionBoxes(e){this._showCollisionBoxes!==e&&(this._showCollisionBoxes=e,e?this.style._generateCollisionBoxes():this._update())}get showOverdrawInspector(){return!!this._showOverdrawInspector}set showOverdrawInspector(e){this._showOverdrawInspector!==e&&(this._showOverdrawInspector=e,this._update())}get repaint(){return!!this._repaint}set repaint(e){this._repaint!==e&&(this._repaint=e,this.triggerRepaint())}get vertices(){return!!this._vertices}set vertices(e){this._vertices=e,this._update()}get version(){return Ukr}getCameraTargetElevation(){return this._camera.transform.elevation}getProjection(){return this.style.getProjection()}setProjection(e){return this._lazyInitEmptyStyle(),this.style.setProjection(e),this._update(!0)}},Gkr={showCompass:!0,showZoom:!0,visualizePitch:!1,visualizeRoll:!0},Hkr=class{constructor(e){this._updateZoomButtons=()=>{let t=this._map.getZoom(),r=t===this._map.getMaxZoom(),i=t===this._map.getMinZoom(!0);this._zoomInButton.disabled=r,this._zoomOutButton.disabled=i,this._zoomInButton.setAttribute("aria-disabled",r.toString()),this._zoomOutButton.setAttribute("aria-disabled",i.toString())},this._rotateCompassArrow=()=>{let t=this._map.getPitch(),r=this._map.getRoll(),i=this._map.getBearing(),n=1/Math.cos(Os(t))**.5;if(this.options.visualizePitch&&this.options.visualizeRoll){this._compassIcon.style.transform=`scale(${n}) rotateZ(${-r}deg) rotateX(${t}deg) rotateZ(${-i}deg)`;return}if(this.options.visualizePitch){this._compassIcon.style.transform=`scale(${n}) rotateX(${t}deg) rotateZ(${-i}deg)`;return}if(this.options.visualizeRoll){this._compassIcon.style.transform=`rotate(${-i-r}deg)`;return}this._compassIcon.style.transform=`rotate(${-i}deg)`},this._setButtonTitle=(t,r)=>{let i=this._map._getUIString(`NavigationControl.${r}`);t.title=i,t.setAttribute("aria-label",i)},this.options=dn({},Gkr,e),this._container=Xn.create("div","maplibregl-ctrl maplibregl-ctrl-group"),this._container.addEventListener("contextmenu",t=>t.preventDefault()),this.options.showZoom&&(this._zoomInButton=this._createButton("maplibregl-ctrl-zoom-in",t=>this._map.zoomIn({},{originalEvent:t})),Xn.create("span","maplibregl-ctrl-icon",this._zoomInButton).setAttribute("aria-hidden","true"),this._zoomOutButton=this._createButton("maplibregl-ctrl-zoom-out",t=>this._map.zoomOut({},{originalEvent:t})),Xn.create("span","maplibregl-ctrl-icon",this._zoomOutButton).setAttribute("aria-hidden","true")),this.options.showCompass&&(this._compass=this._createButton("maplibregl-ctrl-compass",t=>{this.options.visualizePitch?this._map.resetNorthPitch({},{originalEvent:t}):this._map.resetNorth({},{originalEvent:t})}),this._compassIcon=Xn.create("span","maplibregl-ctrl-icon",this._compass),this._compassIcon.setAttribute("aria-hidden","true"))}onAdd(e){return this._map=e,this.options.showZoom&&(this._setButtonTitle(this._zoomInButton,"ZoomIn"),this._setButtonTitle(this._zoomOutButton,"ZoomOut"),this._map.on("move",this._updateZoomButtons),this._updateZoomButtons()),this.options.showCompass&&(this._setButtonTitle(this._compass,"ResetBearing"),this.options.visualizePitch&&this._map.on("pitch",this._rotateCompassArrow),this.options.visualizeRoll&&this._map.on("roll",this._rotateCompassArrow),this._map.on("rotate",this._rotateCompassArrow),this._rotateCompassArrow(),this._handler=new jkr(this._map,this._compass,this.options.visualizePitch)),this._container}onRemove(){this._container.remove(),this.options.showZoom&&this._map.off("move",this._updateZoomButtons),this.options.showCompass&&(this.options.visualizePitch&&this._map.off("pitch",this._rotateCompassArrow),this.options.visualizeRoll&&this._map.off("roll",this._rotateCompassArrow),this._map.off("rotate",this._rotateCompassArrow),this._handler.off(),delete this._handler),delete this._map}_createButton(e,t){let r=Xn.create("button",e,this._container);return r.type="button",r.addEventListener("click",t),r}},jkr=class{constructor(e,t,r=!1){this.mousedown=n=>{this.startMove(n,Xn.mousePos(this.element,n)),window.addEventListener("mousemove",this.mousemove),window.addEventListener("mouseup",this.mouseup)},this.mousemove=n=>{this.move(n,Xn.mousePos(this.element,n))},this.mouseup=n=>{this._rotatePitchHandler.dragEnd(n),this.offTemp()},this.touchstart=n=>{n.targetTouches.length===1?(this._startPos=this._lastPos=Xn.touchPos(this.element,n.targetTouches)[0],this.startMove(n,this._startPos),window.addEventListener("touchmove",this.touchmove,{passive:!1}),window.addEventListener("touchend",this.touchend)):this.reset()},this.touchmove=n=>{n.targetTouches.length===1?(this._lastPos=Xn.touchPos(this.element,n.targetTouches)[0],this.move(n,this._lastPos)):this.reset()},this.touchend=n=>{n.targetTouches.length===0&&this._startPos&&this._lastPos&&this._startPos.dist(this._lastPos){this._rotatePitchHandler.reset(),delete this._startPos,delete this._lastPos,this.offTemp()},this._clickTolerance=10,this.element=t;let i=new Tkr;this._rotatePitchHandler=new r8({clickTolerance:3,move:(n,a)=>{let o=t.getBoundingClientRect(),s=new rr((o.bottom-o.top)/2,(o.right-o.left)/2);return{bearingDelta:_ne(new rr(n.x,a.y),a,s),pitchDelta:r?(a.y-n.y)*-.5:void 0}},moveStateManager:i,enable:!0,assignEvents:()=>{}}),this.map=e,t.addEventListener("mousedown",this.mousedown),t.addEventListener("touchstart",this.touchstart,{passive:!1}),t.addEventListener("touchcancel",this.reset)}startMove(e,t){this._rotatePitchHandler.dragStart(e,t),Xn.disableDrag()}move(e,t){let r=this.map,{bearingDelta:i,pitchDelta:n}=this._rotatePitchHandler.dragMove(e,t)||{};i&&r.setBearing(r.getBearing()+i),n&&r.setPitch(r.getPitch()+n)}off(){let e=this.element;e.removeEventListener("mousedown",this.mousedown),e.removeEventListener("touchstart",this.touchstart),window.removeEventListener("touchmove",this.touchmove),window.removeEventListener("touchend",this.touchend),e.removeEventListener("touchcancel",this.reset),this.offTemp()}offTemp(){Xn.enableDrag(),window.removeEventListener("mousemove",this.mousemove),window.removeEventListener("mouseup",this.mouseup),window.removeEventListener("touchmove",this.touchmove),window.removeEventListener("touchend",this.touchend)}};Uoe={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%)"};Xot={ArrowLeft:[-1,0],ArrowRight:[1,0],ArrowUp:[0,-1],ArrowDown:[0,1]},Ilt="#3FB1CE";_3=class extends o0{},Rlt=class extends o0{},goe=class extends cu{constructor(e){if(super(),this._onClick=t=>{this.fire(new Rlt("click",{originalEvent:t}))},this._onKeyPress=t=>{(t.code==="Space"||t.code==="Enter")&&this.togglePopup()},this._onKeyDown=t=>{if(!this._defaultMarker||!this._draggable||!this._map||!this._lngLat||t.composedPath()[0]!==this._element||t.altKey||t.ctrlKey||t.metaKey)return;let r=Xot[t.key];if(!r)return;t.preventDefault(),t.stopPropagation();let i=t.shiftKey?10:1,n=this._map.project(this._lngLat);this.setLngLat(this._map.unproject(new rr(n.x+r[0]*i,n.y+r[1]*i))),this._keyboardDragActive||(this._keyboardDragActive=!0,this.fire(new _3("dragstart"))),this.fire(new _3("drag"))},this._onKeyUp=t=>{Xot[t.key]&&this._endKeyboardDrag()},this._onBlur=()=>{this._endKeyboardDrag()},this._onMapClick=t=>{let r=t.originalEvent.target,i=this._element;this._popup&&(r===i||i.contains(r))&&this.togglePopup()},this._updateCoveredUnthrottled=()=>{var i,n;let t=(i=this._map)==null?void 0:i.terrain;if(!t||!this._isInViewport())return;let r=this._isCovered(t);r&&((n=this._popup)!=null&&n.isOpen())&&this._popup.remove(),this._element.style.opacity=r?this._opacityWhenCovered:this._opacity,this._element.classList.toggle("maplibregl-marker-covered",r)},this._updateCovered=Ooe(this._updateCoveredUnthrottled,100),this._update=t=>{if(!this._map)return;this._lngLat=Llt(this._lngLat,this._flatPos,this._map._camera.transform),this._flatPos=this._pos=this._map.project(this._lngLat)._add(this._offset),this._map.terrain&&(this._flatPos=this._map._camera.transform.locationToScreenPoint(this._lngLat)._add(this._offset));let r="";this._rotationAlignment==="viewport"||this._rotationAlignment==="auto"?r=`rotateZ(${this._rotation}deg)`:this._rotationAlignment==="map"&&(r=`rotateZ(${this._rotation-this._map.getBearing()}deg)`);let i="";this._pitchAlignment==="viewport"||this._pitchAlignment==="auto"?i="rotateX(0deg)":this._pitchAlignment==="map"&&(i=`rotateX(${this._map.getPitch()}deg)`),!this._subpixelPositioning&&(t==null?void 0:t.type)!=="move"&&(this._pos=this._pos.round()),this._element.style.transform=`${Uoe[this._anchor]} translate(${this._pos.x}px, ${this._pos.y}px) ${i} ${r}`,this._updateOpacity()},this._onMove=t=>{if(!this._isDragging){let r=this._clickTolerance||this._map._clickTolerance;this._isDragging=t.point.dist(this._pointerdownPos)>=r}this._isDragging&&(this._pos=t.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 _3("dragstart"))),this.fire(new _3("drag")))},this._onUp=()=>{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 _3("dragend")),this._state="inactive"},this._addDragHandler=t=>{this._element.contains(t.originalEvent.target)&&(t.preventDefault(),this._positionDelta=t.point.sub(this._pos).add(this._offset),this._pointerdownPos=t.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))},this._anchor=(e==null?void 0:e.anchor)||"center",this._color=(e==null?void 0:e.color)||Ilt,this._scale=(e==null?void 0:e.scale)||1,this._draggable=(e==null?void 0:e.draggable)||!1,this._clickTolerance=(e==null?void 0:e.clickTolerance)||0,this._subpixelPositioning=(e==null?void 0:e.subpixelPositioning)||!1,this._isDragging=!1,this._roleManaged=!1,this._tabIndexManaged=!1,this._keyboardDragActive=!1,this._state="inactive",this._rotation=(e==null?void 0:e.rotation)||0,this._rotationAlignment=(e==null?void 0:e.rotationAlignment)||"auto",this._pitchAlignment=e!=null&&e.pitchAlignment&&e.pitchAlignment!=="auto"?e.pitchAlignment:this._rotationAlignment,this.setOpacity(e==null?void 0:e.opacity,e==null?void 0:e.opacityWhenCovered),e==null?void 0:e.element)this._element=e.element,this._offset=rr.convert((e==null?void 0:e.offset)||[0,0]);else{this._defaultMarker=!0,this._element=Xn.create("div");let t=Wkr().cloneNode(!0);t.setAttributeNS(null,"height",`${41*this._scale}px`),t.setAttributeNS(null,"width",`${27*this._scale}px`),Ykr(t).setAttributeNS(null,"fill",this._color),this._element.appendChild(t),this._offset=rr.convert((e==null?void 0:e.offset)||[0,-14])}if(this._element.classList.add("maplibregl-marker"),this._element.addEventListener("dragstart",t=>{t.preventDefault()}),this._element.addEventListener("mousedown",t=>{t.preventDefault()}),Plt(this._element,this._anchor,"marker"),e==null?void 0:e.className)for(let t of e.className.split(" "))this._element.classList.add(t);this._popup=null}addTo(e){return this.remove(),this._map=e,this._defaultMarker&&!this._element.hasAttribute("aria-label")&&this._element.setAttribute("aria-label",e._getUIString("Marker.Title")),this._updateAccessibilityRole(),e.getCanvasContainer().appendChild(this._element),e.on("move",this._update),e.on("moveend",this._update),e.on("terrain",this._update),e.on("projectiontransition",this._update),e.on("idle",this._update),this._element.addEventListener("click",this._onClick),this.setDraggable(this._draggable),this._update(),this._map.on("click",this._onMapClick),this}remove(){return this._map&&(this._map.off("click",this._onMapClick),this._map.off("move",this._update),this._map.off("moveend",this._update),this._map.off("terrain",this._update),this._map.off("projectiontransition",this._update),this._map.off("idle",this._update),this._map.off("mousedown",this._addDragHandler),this._map.off("touchstart",this._addDragHandler),this._map.off("mouseup",this._onUp),this._map.off("touchend",this._onUp),this._map.off("mousemove",this._onMove),this._map.off("touchmove",this._onMove),delete this._map),this._element.removeEventListener("click",this._onClick),this._element.removeEventListener("keydown",this._onKeyDown),this._element.removeEventListener("keyup",this._onKeyUp),this._element.removeEventListener("blur",this._onBlur),this._element.removeEventListener("keypress",this._onKeyPress),this._keyboardDragActive=!1,this._element.remove(),this._popup&&this._popup.remove(),this}getLngLat(){return this._lngLat}setLngLat(e){return this._lngLat=yn.convert(e),this._pos=null,this._update(),this._popup&&this._popup.setLngLat(this._lngLat),this}getElement(){return this._element}setPopup(e){if(this._popup&&(this._popup.remove(),this._popup=null,this._element.removeEventListener("keypress",this._onKeyPress)),e){if(!("offset"in e.options)){let t=13.5/Math.SQRT2;e.options.offset=this._defaultMarker?{top:[0,0],"top-left":[0,0],"top-right":[0,0],bottom:[0,-38.1],"bottom-left":[t,(24.6+t)*-1],"bottom-right":[-t,(24.6+t)*-1],left:[13.5,-24.6],right:[-13.5,-24.6]}:this._offset}this._popup=e,this._element.addEventListener("keypress",this._onKeyPress)}return this._updateTabIndex(),this._updateAccessibilityRole(),this}setSubpixelPositioning(e){return this._subpixelPositioning=e,this}_endKeyboardDrag(){this._keyboardDragActive&&(this._keyboardDragActive=!1,this.fire(new _3("dragend")))}getPopup(){return this._popup}togglePopup(){let e=this._popup;if(this._element.style.opacity===this._opacityWhenCovered)return this;if(e)e.isOpen()?e.remove():(e.setLngLat(this._lngLat),e.addTo(this._map));else return this;return this}_updateOpacity(){var r;if(!this._isInViewport())return;let e=(r=this._map)==null?void 0:r.terrain,t=this._map._camera.transform.isLocationOccluded(this._lngLat);if(!e||t){let i=t?this._opacityWhenCovered:this._opacity;this._element.style.opacity!==i&&(this._element.style.opacity=i,this._element.classList.toggle("maplibregl-marker-covered",t));return}this._updateCovered()}_isInViewport(){let{width:e,height:t}=this._map._camera.transform;return!!this._pos&&this._pos.x>=0&&this._pos.y>=0&&this._pos.x<=e&&this._pos.y<=t}_isCovered(e){let t=this._map._camera.transform,r=e.getElevationForLngLat(this._lngLat,t),i=Math.max(0,-this._offset.y)/t.pixelsPerMeter,n=Math.sin(this._map.getPitch()*Math.PI/180)*i;return t.isLocationOccluded(this._lngLat,e,r+n)}getOffset(){return this._offset}setOffset(e){return this._offset=rr.convert(e),this._update(),this}addClassName(e){this._element.classList.add(e)}removeClassName(e){this._element.classList.remove(e)}toggleClassName(e){return this._element.classList.toggle(e)}setDraggable(e){return this._draggable=!!e,this._element.classList.toggle("maplibregl-marker-draggable",this._draggable),this._map&&(e?(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._defaultMarker&&(this._draggable?(this._element.addEventListener("keydown",this._onKeyDown),this._element.addEventListener("keyup",this._onKeyUp),this._element.addEventListener("blur",this._onBlur)):(this._element.removeEventListener("keydown",this._onKeyDown),this._element.removeEventListener("keyup",this._onKeyUp),this._element.removeEventListener("blur",this._onBlur),this._endKeyboardDrag())),this._updateTabIndex(),this._updateAccessibilityRole(),this}isDraggable(){return this._draggable}_updateTabIndex(){this._popup||this._defaultMarker&&this._draggable?this._element.hasAttribute("tabindex")||(this._element.setAttribute("tabindex","0"),this._tabIndexManaged=!0):this._tabIndexManaged&&(this._tabIndexManaged=(this._element.getAttribute("tabindex")==="0"&&this._element.removeAttribute("tabindex"),!1))}_updateAccessibilityRole(){if(!this._defaultMarker||this._element.hasAttribute("role")&&!this._roleManaged)return;let e=this._draggable||this._popup?"button":"img";this._element.setAttribute("role",e),this._roleManaged=!0}setRotation(e){return this._rotation=e||0,this._update(),this}getRotation(){return this._rotation}setRotationAlignment(e){return this._rotationAlignment=e||"auto",this._update(),this}getRotationAlignment(){return this._rotationAlignment}setPitchAlignment(e){return this._pitchAlignment=e&&e!=="auto"?e:this._rotationAlignment,this._update(),this}getPitchAlignment(){return this._pitchAlignment}setOpacity(e,t){return(this._opacity===void 0||e===void 0&&t===void 0)&&(this._opacity="1",this._opacityWhenCovered="0.2"),e!==void 0&&(this._opacity=String(e)),t!==void 0&&(this._opacityWhenCovered=String(t)),this._map&&this._updateOpacity(),this}},Xkr={positionOptions:{enableHighAccuracy:!1,maximumAge:0,timeout:6e3},fitBoundsOptions:{maxZoom:15},trackUserLocation:!1,showAccuracyCircle:!0,showUserLocation:!0},Xq=0,YC=!1,w3=class extends o0{},moe=class extends o0{},zlt=class extends o0{},Zkr=class extends cu{constructor(e){super(),this._onSuccess=t=>{if(this._map){if(this._isOutOfMapMaxBounds(t)){this._setErrorState(),this.fire(new moe("outofmaxbounds",t)),this._updateMarker(),this._finish();return}if(this.options.trackUserLocation)switch(this._lastKnownPosition=t,this._watchState){case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active");break;case"BACKGROUND":case"BACKGROUND_ERROR":this._watchState="BACKGROUND",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-background");break;default:throw Error(`Unexpected watchState ${this._watchState}`)}this.options.showUserLocation&&this._watchState!=="OFF"&&this._updateMarker(t),(!this.options.trackUserLocation||this._watchState==="ACTIVE_LOCK")&&this._updateCamera(t),this.options.showUserLocation&&this._dotElement.classList.remove("maplibregl-user-location-dot-stale"),this.fire(new moe("geolocate",t)),this._finish()}},this._updateCamera=t=>{let r=new yn(t.coords.longitude,t.coords.latitude),i=t.coords.accuracy,n=this._map.getBearing(),a=dn({bearing:n},this.options.fitBoundsOptions),o=qv.fromLngLat(r,i);this._map.fitBounds(o,a,{geolocateSource:!0})},this._updateMarker=t=>{if(t){let r=new yn(t.coords.longitude,t.coords.latitude);this._accuracyCircleMarker.setLngLat(r).addTo(this._map),this._userLocationDotMarker.setLngLat(r).addTo(this._map),this._accuracy=t.coords.accuracy,this._updateCircleRadiusIfNeeded()}else this._userLocationDotMarker.remove(),this._accuracyCircleMarker.remove()},this._onUpdate=()=>{this._updateCircleRadiusIfNeeded()},this._onError=t=>{if(this._map){if(t.code===1){this._watchState="OFF",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background-error"),this._geolocateButton.disabled=!0;let r=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.title=r,this._geolocateButton.setAttribute("aria-label",r),this._geolocationWatchID!==void 0&&this._clearWatch()}else{if(t.code===3&&YC)return;this._setErrorState()}this._watchState!=="OFF"&&this.options.showUserLocation&&this._dotElement.classList.add("maplibregl-user-location-dot-stale"),this.fire(new zlt("error",t)),this._finish()}},this._finish=()=>{this._timeoutId&&clearTimeout(this._timeoutId),this._timeoutId=void 0},this._onMoveStart=t=>{if(!this._map)return;let r=(t==null?void 0:t[0])instanceof ResizeObserverEntry;!t.geolocateSource&&this._watchState==="ACTIVE_LOCK"&&!r&&!this._map.isZooming()&&(this._watchState="BACKGROUND",this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active"),this.fire(new w3("trackuserlocationend")),this.fire(new w3("userlocationlostfocus")))},this._setupUI=()=>{this._map&&(this._container.addEventListener("contextmenu",t=>{t.preventDefault()}),this._geolocateButton=Xn.create("button","maplibregl-ctrl-geolocate",this._container),Xn.create("span","maplibregl-ctrl-icon",this._geolocateButton).setAttribute("aria-hidden","true"),this._geolocateButton.type="button",this._geolocateButton.disabled=!0)},this._finishSetupUI=t=>{if(this._map){if(t===!1){Pa("Geolocation support is not available so the GeolocateControl will be disabled.");let r=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.disabled=!0,this._geolocateButton.title=r,this._geolocateButton.setAttribute("aria-label",r)}else{let r=this._map._getUIString("GeolocateControl.FindMyLocation");this._geolocateButton.disabled=!1,this._geolocateButton.title=r,this._geolocateButton.setAttribute("aria-label",r)}this.options.trackUserLocation&&(this._geolocateButton.setAttribute("aria-pressed","false"),this._watchState="OFF"),this.options.showUserLocation&&(this._dotElement=Xn.create("div","maplibregl-user-location-dot"),this._userLocationDotMarker=new goe({element:this._dotElement}),this._circleElement=Xn.create("div","maplibregl-user-location-accuracy-circle"),this._accuracyCircleMarker=new goe({element:this._circleElement,pitchAlignment:"map"}),this.options.trackUserLocation&&(this._watchState="OFF"),this._map.on("zoom",this._onUpdate),this._map.on("move",this._onUpdate),this._map.on("rotate",this._onUpdate),this._map.on("pitch",this._onUpdate)),this._geolocateButton.addEventListener("click",()=>this.trigger()),this._setup=!0,this.options.trackUserLocation&&this._map.on("movestart",this._onMoveStart)}},this.options=dn({},Xkr,e)}onAdd(e){return this._map=e,this._container=Xn.create("div","maplibregl-ctrl maplibregl-ctrl-group"),this._setupUI(),$kr().then(t=>this._finishSetupUI(t)),this._container}onRemove(){this._geolocationWatchID!==void 0&&(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(),this._container.remove(),this._map.off("movestart",this._onMoveStart),this._map.off("zoom",this._onUpdate),this._map.off("move",this._onUpdate),this._map.off("rotate",this._onUpdate),this._map.off("pitch",this._onUpdate),this._map=void 0,Xq=0,YC=!1}_isOutOfMapMaxBounds(e){let t=this._map.getMaxBounds(),r=e.coords;return t&&(r.longitudet.getEast()||r.latitudet.getNorth())}_setErrorState(){switch(this._watchState){case"WAITING_ACTIVE":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active-error");break;case"ACTIVE_LOCK":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-waiting");break;case"BACKGROUND":this._watchState="BACKGROUND_ERROR",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-waiting");break;case"ACTIVE_ERROR":case"BACKGROUND_ERROR":break;case"OFF":case void 0:break;default:throw Error(`Unexpected watchState ${this._watchState}`)}}_updateCircleRadiusIfNeeded(){let e=this._userLocationDotMarker.getLngLat();if(!this.options.showUserLocation||!this.options.showAccuracyCircle||!this._accuracy||!e)return;let t=this._map.project(e),r=this._map.unproject([t.x+100,t.y]),i=e.distanceTo(r)/100,n=2*this._accuracy/i;this._circleElement.style.width=`${n.toFixed(2)}px`,this._circleElement.style.height=`${n.toFixed(2)}px`}trigger(){if(!this._setup)return Pa("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 w3("trackuserlocationstart"));break;case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":case"BACKGROUND_ERROR":Xq--,YC=!1,this._watchState="OFF",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background-error"),this.fire(new w3("trackuserlocationend"));break;case"BACKGROUND":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background"),this._lastKnownPosition&&this._updateCamera(this._lastKnownPosition),this.fire(new w3("trackuserlocationstart")),this.fire(new w3("userlocationfocus"));break;default:throw Error(`Unexpected watchState ${this._watchState}`)}switch(this._watchState){case"WAITING_ACTIVE":this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active");break;case"ACTIVE_LOCK":this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active");break;case"OFF":break;default:throw Error(`Unexpected watchState ${this._watchState}`)}if(this._watchState==="OFF"&&this._geolocationWatchID!==void 0)this._clearWatch();else if(this._geolocationWatchID===void 0){this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","true"),Xq++;let e;Xq>1?(e={maximumAge:6e5,timeout:0},YC=!0):(e=this.options.positionOptions,YC=!1),this._geolocationWatchID=window.navigator.geolocation.watchPosition(this._onSuccess,this._onError,e)}}else window.navigator.geolocation.getCurrentPosition(this._onSuccess,this._onError,this.options.positionOptions),this._timeoutId=setTimeout(this._finish,1e4);return!0}_clearWatch(){window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0,this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","false"),this.options.showUserLocation&&this._updateMarker(null)}},Kkr={maxWidth:100,unit:"metric"},Jkr=class{constructor(e){this._onMove=()=>{Zot(this._map,this._container,this.options)},this.setUnit=t=>{this.options.unit=t,Zot(this._map,this._container,this.options)},this.options=fn(fn({},Kkr),e)}getDefaultPosition(){return"bottom-left"}onAdd(e){return this._map=e,this._container=Xn.create("div","maplibregl-ctrl maplibregl-ctrl-scale",e.getContainer()),this._map.on("move",this._onMove),this._onMove(),this._container}onRemove(){this._container.remove(),this._map.off("move",this._onMove),this._map=void 0}};yoe=class extends o0{},tCr=class extends cu{constructor(e={}){var t;super(),this._onFullscreenChange=()=>{var i;let r=window.document.fullscreenElement||window.document.webkitFullscreenElement;for(;(i=r==null?void 0:r.shadowRoot)!=null&&i.fullscreenElement;)r=r.shadowRoot.fullscreenElement;r===this._container!==this._fullscreen&&this._handleFullscreenChange()},this._onClickFullscreen=()=>{this._isFullscreen()?this._exitFullscreen():this._requestFullscreen()},this._fullscreen=!1,this._pseudo=(t=e.pseudo)!=null?t:!1,e!=null&&e.container&&(e.container instanceof HTMLElement?this._container=e.container:Pa("Full screen control 'container' must be a DOM element.")),"onfullscreenchange"in document?this._fullscreenchange="fullscreenchange":"onmozfullscreenchange"in document?this._fullscreenchange="mozfullscreenchange":"onwebkitfullscreenchange"in document?this._fullscreenchange="webkitfullscreenchange":"onmsfullscreenchange"in document&&(this._fullscreenchange="MSFullscreenChange")}onAdd(e){return this._map=e,this._container||(this._container=this._map.getContainer()),this._controlContainer=Xn.create("div","maplibregl-ctrl maplibregl-ctrl-group"),this._setupUI(),this._controlContainer}onRemove(){this._controlContainer.remove(),this._map=null,window.document.removeEventListener(this._fullscreenchange,this._onFullscreenChange)}_setupUI(){let e=this._fullscreenButton=Xn.create("button","maplibregl-ctrl-fullscreen",this._controlContainer);Xn.create("span","maplibregl-ctrl-icon",e).setAttribute("aria-hidden","true"),e.type="button",this._updateTitle(),this._fullscreenButton.addEventListener("click",this._onClickFullscreen),window.document.addEventListener(this._fullscreenchange,this._onFullscreenChange)}_updateTitle(){let e=this._getTitle();this._fullscreenButton.setAttribute("aria-label",e),this._fullscreenButton.title=e}_getTitle(){return this._map._getUIString(this._isFullscreen()?"FullscreenControl.Exit":"FullscreenControl.Enter")}_isFullscreen(){return this._fullscreen}_handleFullscreenChange(){this._fullscreen=!this._fullscreen,this._fullscreenButton.classList.toggle("maplibregl-ctrl-shrink"),this._fullscreenButton.classList.toggle("maplibregl-ctrl-fullscreen"),this._updateTitle(),this._fullscreen?(this.fire(new yoe("fullscreenstart")),this._prevCooperativeGesturesEnabled=this._map.cooperativeGestures.isEnabled(),this._map.cooperativeGestures.disable()):(this.fire(new yoe("fullscreenend")),this._prevCooperativeGesturesEnabled&&this._map.cooperativeGestures.enable())}_exitFullscreen(){this._pseudo?this._togglePseudoFullScreen():window.document.exitFullscreen?window.document.exitFullscreen():window.document.webkitCancelFullScreen?window.document.webkitCancelFullScreen():this._togglePseudoFullScreen()}_requestFullscreen(){this._pseudo?this._togglePseudoFullScreen():this._container.requestFullscreen?this._container.requestFullscreen():this._container.webkitRequestFullscreen?this._container.webkitRequestFullscreen():this._togglePseudoFullScreen()}_togglePseudoFullScreen(){this._container.classList.toggle("maplibregl-pseudo-fullscreen"),this._handleFullscreenChange(),this._map.resize()}},rCr=class{constructor(e){this._toggleTerrain=()=>{this._map.getTerrain()?this._map.setTerrain(null):this._map.setTerrain(this.options),this._updateTerrainIcon()},this._updateTerrainIcon=()=>{this._terrainButton.classList.remove("maplibregl-ctrl-terrain"),this._terrainButton.classList.remove("maplibregl-ctrl-terrain-enabled"),this._map.terrain?(this._terrainButton.classList.add("maplibregl-ctrl-terrain-enabled"),this._terrainButton.title=this._map._getUIString("TerrainControl.Disable")):(this._terrainButton.classList.add("maplibregl-ctrl-terrain"),this._terrainButton.title=this._map._getUIString("TerrainControl.Enable"))},this.options=e}onAdd(e){return this._map=e,this._container=Xn.create("div","maplibregl-ctrl maplibregl-ctrl-group"),this._terrainButton=Xn.create("button","maplibregl-ctrl-terrain",this._container),Xn.create("span","maplibregl-ctrl-icon",this._terrainButton).setAttribute("aria-hidden","true"),this._terrainButton.type="button",this._terrainButton.addEventListener("click",this._toggleTerrain),this._updateTerrainIcon(),this._map.on("terrain",this._updateTerrainIcon),this._container}onRemove(){this._container.remove(),this._map.off("terrain",this._updateTerrainIcon),this._map=void 0}},iCr=class{constructor(){this._toggleProjection=()=>{var t;let e=(t=this._map.getProjection())==null?void 0:t.type;e==="mercator"||!e?this._map.setProjection({type:"globe"}):this._map.setProjection({type:"mercator"}),this._updateGlobeIcon()},this._updateGlobeIcon=()=>{var e;this._globeButton.classList.remove("maplibregl-ctrl-globe"),this._globeButton.classList.remove("maplibregl-ctrl-globe-enabled"),((e=this._map.getProjection())==null?void 0:e.type)==="globe"?(this._globeButton.classList.add("maplibregl-ctrl-globe-enabled"),this._globeButton.title=this._map._getUIString("GlobeControl.Disable")):(this._globeButton.classList.add("maplibregl-ctrl-globe"),this._globeButton.title=this._map._getUIString("GlobeControl.Enable"))}}onAdd(e){return this._map=e,this._container=Xn.create("div","maplibregl-ctrl maplibregl-ctrl-group"),this._globeButton=Xn.create("button","maplibregl-ctrl-globe",this._container),Xn.create("span","maplibregl-ctrl-icon",this._globeButton).setAttribute("aria-hidden","true"),this._globeButton.type="button",this._globeButton.addEventListener("click",this._toggleProjection),this._updateGlobeIcon(),this._map.on("styledata",this._updateGlobeIcon),this._map.on("projectiontransition",this._updateGlobeIcon),this._container}onRemove(){this._container.remove(),this._map.off("styledata",this._updateGlobeIcon),this._map.off("projectiontransition",this._updateGlobeIcon),this._globeButton.removeEventListener("click",this._toggleProjection),this._map=void 0}},nCr={closeButton:!0,closeOnClick:!0,focusAfterOpen:!0,className:"",maxWidth:"240px",subpixelPositioning:!1,locationOccludedOpacity:void 0,padding:void 0},aCr=["a[href]","[tabindex]:not([tabindex='-1'])","[contenteditable]:not([contenteditable='false'])","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].join(", "),xoe=class extends o0{},oCr=class extends cu{constructor(e){super(),this._updateOpacity=()=>{this.options.locationOccludedOpacity!==void 0&&(this._map._camera.transform.isLocationOccluded(this.getLngLat())?this._container.style.opacity=`${this.options.locationOccludedOpacity}`:this._container.style.opacity="")},this.remove=()=>(this._content&&this._content.remove(),this._container&&(this._container.remove(),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("terrain",this._update),this._map.off("projectiontransition",this._update),this._map.off("idle",this._update),this._map.off("mousemove",this._update),this._map.off("mouseup",this._update),this._map.off("drag",this._update),this._map._canvasContainer.classList.remove("maplibregl-track-pointer"),delete this._map,this.fire(new xoe("close"))),this),this._update=t=>{let r=this._lngLat||this._trackPointer;if(!this._map||!r||!this._content)return;if(!this._container){if(this._container=Xn.create("div","maplibregl-popup",this._map.getContainer()),this._tip=Xn.create("div","maplibregl-popup-tip",this._container),this._container.appendChild(this._content),this.options.className)for(let l of this.options.className.split(" "))this._container.classList.add(l);this._closeButton&&this._closeButton.setAttribute("aria-label",this._map._getUIString("Popup.Close")),this._trackPointer&&this._container.classList.add("maplibregl-popup-track-pointer")}this.options.maxWidth&&this._container.style.maxWidth!==this.options.maxWidth&&(this._container.style.maxWidth=this.options.maxWidth),this._lngLat=Llt(this._lngLat,this._flatPos,this._map._camera.transform,this._trackPointer);let i;if(t&&"point"in t&&t.point&&(i=t.point),this._trackPointer&&!i)return;let n=this._flatPos=this._pos=this._trackPointer&&i?i:this._map.project(this._lngLat);this._map.terrain&&(this._flatPos=this._trackPointer&&i?i:this._map._camera.transform.locationToScreenPoint(this._lngLat));let a=this.options.anchor,o=Blt(this.options.offset);if(!a){let l=this._container.offsetWidth,u=this._container.offsetHeight,c=sCr(this.options.padding),f;f=n.y+o.bottom.ythis._map._camera.transform.height-u-c.bottom?["bottom"]:[],n.xthis._map._camera.transform.width-l/2-c.right&&f.push("right"),a=f.length===0?"bottom":f.join("-")}let s=n.add(o[a]);this.options.subpixelPositioning||(s=s.round()),this._container.style.transform=`${Uoe[a]} translate(${s.x}px,${s.y}px)`,Plt(this._container,a,"popup"),this._updateOpacity()},this._onClose=()=>{this.remove()},this.options=dn(Object.create(nCr),e)}addTo(e){return this._map&&this.remove(),this._map=e,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._map.on("terrain",this._update),this._map.on("projectiontransition",this._update),this._map.on("idle",this._update),this._update(),this._focusFirstElement(),this._trackPointer?(this._map.on("mousemove",this._update),this._map.on("mouseup",this._update),this._container&&this._container.classList.add("maplibregl-popup-track-pointer"),this._map._canvasContainer.classList.add("maplibregl-track-pointer")):this._map.on("move",this._update),this.fire(new xoe("open")),this}isOpen(){return!!this._map}getLngLat(){return this._lngLat}setLngLat(e){return this._lngLat=yn.convert(e),this._pos=null,this._flatPos=null,this._trackPointer=!1,this._update(),this._map&&(this._map.on("move",this._update),this._map.off("mousemove",this._update),this._container&&this._container.classList.remove("maplibregl-popup-track-pointer"),this._map._canvasContainer.classList.remove("maplibregl-track-pointer")),this}trackPointer(){return this._trackPointer=!0,this._pos=null,this._flatPos=null,this._update(),this._map&&(this._map.off("move",this._update),this._map.on("mousemove",this._update),this._map.on("drag",this._update),this._container&&this._container.classList.add("maplibregl-popup-track-pointer"),this._map._canvasContainer.classList.add("maplibregl-track-pointer")),this}getElement(){return this._container}setText(e){return this.setDOMContent(document.createTextNode(e))}setHTML(e){let t=document.createDocumentFragment(),r=document.createElement("body"),i;for(r.innerHTML=e;i=r.firstChild,i;)t.appendChild(i);return this.setDOMContent(t)}getMaxWidth(){var e;return(e=this._container)==null?void 0:e.style.maxWidth}setMaxWidth(e){return this.options.maxWidth=e,this._update(),this}setDOMContent(e){if(this._content)for(;this._content.hasChildNodes();)this._content.firstChild&&this._content.removeChild(this._content.firstChild);else this._content=Xn.create("div","maplibregl-popup-content",this._container);return this._content.appendChild(e),this._createCloseButton(),this._update(),this._focusFirstElement(),this}addClassName(e){return this._container&&this._container.classList.add(e),this}removeClassName(e){return this._container&&this._container.classList.remove(e),this}setOffset(e){return this.options.offset=e,this._update(),this}toggleClassName(e){if(this._container)return this._container.classList.toggle(e)}setSubpixelPositioning(e){this.options.subpixelPositioning=e}setPadding(e){this.options.padding=e,this._update()}_createCloseButton(){this.options.closeButton&&(this._closeButton=Xn.create("button","maplibregl-popup-close-button",this._content),this._closeButton.type="button",this._closeButton.innerHTML="×",this._closeButton.addEventListener("click",this._onClose))}_focusFirstElement(){if(!this.options.focusAfterOpen||!this._container)return;let e=this._container.querySelector(aCr);e&&e.focus()}};lCr=Kot});var Vlt=W((Gli,Ult)=>{"use strict";Ult.exports='var D1=Object.defineProperty,_1=Object.defineProperties;var A1=Object.getOwnPropertyDescriptors;var lh=Object.getOwnPropertySymbols;var S1=Object.prototype.hasOwnProperty,E1=Object.prototype.propertyIsEnumerable;var uh=(t,e,r)=>e in t?D1(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Xe=(t,e)=>{for(var r in e||(e={}))S1.call(e,r)&&uh(t,r,e[r]);if(lh)for(var r of lh(e))E1.call(e,r)&&uh(t,r,e[r]);return t},Si=(t,e)=>_1(t,A1(e));var et=(t,e,r)=>new Promise((i,n)=>{var a=l=>{try{o(r.next(l))}catch(u){n(u)}},s=l=>{try{o(r.throw(l))}catch(u){n(u)}},o=l=>l.done?i(l.value):Promise.resolve(l.value).then(a,s);o((r=r.apply(t,e)).next())});var F1=Object.create,Dp=Object.defineProperty,T1=Object.getOwnPropertyDescriptor,k1=Object.getOwnPropertyNames,I1=Object.getPrototypeOf,_p=Object.prototype.hasOwnProperty,ml=(t,e)=>()=>(e||(t((e={exports:{}}).exports,e),t=null),e.exports),C1=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(var n=k1(e),a=0,s=n.length,o;ae[l]).bind(null,o),enumerable:!(i=T1(e,o))||i.enumerable});return t},M1=(t,e,r)=>(r=t==null?{}:F1(I1(t)),C1(e||!t||!t.__esModule||!_p.call(t,"default")?Dp(r,"default",{value:t,enumerable:!0}):r,t));function M(t,e){this.x=t,this.y=e}M.prototype={clone(){return new M(this.x,this.y)},add(t){return this.clone()._add(t)},sub(t){return this.clone()._sub(t)},multByPoint(t){return this.clone()._multByPoint(t)},divByPoint(t){return this.clone()._divByPoint(t)},mult(t){return this.clone()._mult(t)},div(t){return this.clone()._div(t)},rotate(t){return this.clone()._rotate(t)},rotateAround(t,e){return this.clone()._rotateAround(t,e)},matMult(t){return this.clone()._matMult(t)},unit(){return this.clone()._unit()},perp(){return this.clone()._perp()},round(){return this.clone()._round()},mag(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals(t){return this.x===t.x&&this.y===t.y},dist(t){return Math.sqrt(this.distSqr(t))},distSqr(t){let e=t.x-this.x,r=t.y-this.y;return e*e+r*r},angle(){return Math.atan2(this.y,this.x)},angleTo(t){return Math.atan2(this.y-t.y,this.x-t.x)},angleWith(t){return this.angleWithSep(t.x,t.y)},angleWithSep(t,e){return Math.atan2(this.x*e-this.y*t,this.x*t+this.y*e)},_matMult(t){let e=t[0]*this.x+t[1]*this.y,r=t[2]*this.x+t[3]*this.y;return this.x=e,this.y=r,this},_add(t){return this.x+=t.x,this.y+=t.y,this},_sub(t){return this.x-=t.x,this.y-=t.y,this},_mult(t){return this.x*=t,this.y*=t,this},_div(t){return this.x/=t,this.y/=t,this},_multByPoint(t){return this.x*=t.x,this.y*=t.y,this},_divByPoint(t){return this.x/=t.x,this.y/=t.y,this},_unit(){return this._div(this.mag()),this},_perp(){let t=this.y;return this.y=this.x,this.x=-t,this},_rotate(t){let e=Math.cos(t),r=Math.sin(t),i=e*this.x-r*this.y,n=r*this.x+e*this.y;return this.x=i,this.y=n,this},_rotateAround(t,e){let r=Math.cos(t),i=Math.sin(t),n=e.x+r*(this.x-e.x)-i*(this.y-e.y),a=e.y+i*(this.x-e.x)+r*(this.y-e.y);return this.x=n,this.y=a,this},_round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},constructor:M},M.convert=function(t){if(t instanceof M)return t;if(Array.isArray(t))return new M(+t[0],+t[1]);if(t.x!==void 0&&t.y!==void 0)return new M(+t.x,+t.y);throw Error("Expected [x, y] or {x, y} point format")};function B1(t,e,r,i){let n=3*t,a=3*(r-t)-n,s=1-n-a,o=3*e,l=3*(i-e)-o,u=1-o-l;return function(h,c=1e-6){if(h<=0)return 0;if(h>=1)return 1;let p=h;for(let y=0;y<8;y++){let m=((s*p+a)*p+n)*p-h;if(Math.abs(m)m?f=p:d=p,p=(f+d)*.5}return((u*p+l)*p+o)*p}}var Ei;function P1(){return Ei!=null||(Ei=typeof OffscreenCanvas<"u"&&!!new OffscreenCanvas(1,1).getContext("2d")&&typeof createImageBitmap=="function"),Ei}var Xn;function z1(){if(Xn==null&&(Xn=!1,P1())){let t=new OffscreenCanvas(5,5).getContext("2d",{willReadFrequently:!0});if(t){for(let r=0;r<25;r++){let i=r*4;t.fillStyle=`rgb(${i},${i+1},${i+2})`,t.fillRect(r%5,Math.floor(r/5),1,1)}let e=t.getImageData(0,0,5,5).data;for(let r=0;r<100;r++)if(r%4!=3&&e[r]!==r){Xn=!0;break}}}return Xn||!1}var fe=typeof Float32Array<"u"?Float32Array:Array;function L1(){var t=new fe(9);return fe!=Float32Array&&(t[1]=0,t[2]=0,t[3]=0,t[5]=0,t[6]=0,t[7]=0),t[0]=1,t[4]=1,t[8]=1,t}function Ap(){var t=new fe(3);return fe!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0),t}function V1(t){var e=t[0],r=t[1],i=t[2];return Math.sqrt(e*e+r*r+i*i)}function hh(t,e,r){var i=new fe(3);return i[0]=t,i[1]=e,i[2]=r,i}function O1(t,e){var r=e[0],i=e[1],n=e[2],a=r*r+i*i+n*n;return a>0&&(a=1/Math.sqrt(a)),t[0]=e[0]*a,t[1]=e[1]*a,t[2]=e[2]*a,t}function R1(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function ks(t,e,r){var i=e[0],n=e[1],a=e[2],s=r[0],o=r[1],l=r[2];return t[0]=n*l-a*o,t[1]=a*s-i*l,t[2]=i*o-n*s,t}var $1=V1;(function(){var t=Ap();return function(e,r,i,n,a,s){var o,l;for(r||(r=3),i||(i=0),l=n?Math.min(n*r+i,e.length):e.length,o=i;o0&&(s=1/Math.sqrt(s)),t[0]=r*s,t[1]=i*s,t[2]=n*s,t[3]=a*s,t}function q1(t,e,r){var i=e[0],n=e[1],a=e[2],s=e[3];return t[0]=r[0]*i+r[4]*n+r[8]*a+r[12]*s,t[1]=r[1]*i+r[5]*n+r[9]*a+r[13]*s,t[2]=r[2]*i+r[6]*n+r[10]*a+r[14]*s,t[3]=r[3]*i+r[7]*n+r[11]*a+r[15]*s,t}(function(){var t=N1();return function(e,r,i,n,a,s){var o,l;for(r||(r=4),i||(i=0),l=n?Math.min(n*r+i,e.length):e.length,o=i;o1e-6?(p=Math.acos(f),d=Math.sin(p),y=Math.sin((1-i)*p)/d,m=Math.sin(i*p)/d):(y=1-i,m=i),t[0]=y*n+m*l,t[1]=y*a+m*u,t[2]=y*s+m*h,t[3]=y*o+m*c,t}function G1(t,e){var r=e[0]+e[4]+e[8],i;if(r>0)i=Math.sqrt(r+1),t[3]=.5*i,i=.5/i,t[0]=(e[5]-e[7])*i,t[1]=(e[6]-e[2])*i,t[2]=(e[1]-e[3])*i;else{var n=0;e[4]>e[0]&&(n=1),e[8]>e[n*3+n]&&(n=2);var a=(n+1)%3,s=(n+2)%3;i=Math.sqrt(e[n*3+n]-e[a*3+a]-e[s*3+s]+1),t[n]=.5*i,i=.5/i,t[3]=(e[a*3+s]-e[s*3+a])*i,t[a]=(e[a*3+n]+e[n*3+a])*i,t[s]=(e[s*3+n]+e[n*3+s])*i}return t}var ph=U1;(function(){var t=Ap(),e=hh(1,0,0),r=hh(0,1,0);return function(i,n,a){var s=R1(n,a);return s<-.999999?(ks(t,e,n),$1(t)<1e-6&&ks(t,r,n),O1(t,t),j1(i,t,Math.PI),i):s>.999999?(i[0]=0,i[1]=0,i[2]=0,i[3]=1,i):(ks(t,n,a),i[0]=t[0],i[1]=t[1],i[2]=t[2],i[3]=1+s,ph(i,i))}})(),(function(){var t=ch(),e=ch();return function(r,i,n,a,s,o){return Is(t,i,s,o),Is(e,n,a,o),Is(r,t,e,2*o*(1-o)),r}})(),(function(){var t=L1();return function(e,r,i,n){return t[0]=i[0],t[3]=i[1],t[6]=i[2],t[1]=n[0],t[4]=n[1],t[7]=n[2],t[2]=-r[0],t[5]=-r[1],t[8]=-r[2],ph(e,G1(e,t))}})();function X1(){var t=new fe(2);return fe!=Float32Array&&(t[0]=0,t[1]=0),t}(function(){var t=X1();return function(e,r,i,n,a,s){var o,l;for(r||(r=2),i||(i=0),l=n?Math.min(n*r+i,e.length):e.length,o=i;o=1)return 1;let e=t*t,r=e*t;return 4*(t<.5?r:3*(t-e)+r-.75)}function W1(t,e,r,i){return B1(t,e,r,i)}var D5=W1(.25,.1,.25,1);function en(t,e,r){return Math.min(r,Math.max(e,t))}function Z1(t,e,r){let i=r-e,n=((t-e)%i+i)%i+e;return n===e?r:n}function Xt(t,...e){for(let r of e)for(let i in r)t[i]=r[i];return t}function H1(t){return Math.log(t)/Math.LN2%1==0}function xn(t,e,r){let i={};for(let n in t)i[n]=e.call(r||this,t[n],n,t);return i}function K1(t,e,r){let i={};for(let n in t)e.call(r||this,t[n],n,t)&&(i[n]=t[n]);return i}function to(t,e){if(Array.isArray(t)){if(!Array.isArray(e)||t.length!==e.length)return!1;for(let r=0;r(e.y-t.y)*(r.x-t.x)}function vr(t){return typeof WorkerGlobalScope<"u"&&t!==void 0&&t instanceof WorkerGlobalScope}function Ba(t){return typeof ImageBitmap<"u"&&t instanceof ImageBitmap}function J1(t,e,r,i,n){let a=Math.max(-e,0)*4,s=(Math.max(0,r)-r)*i*4+a,o=i*4,l=Math.max(0,e),u=Math.max(0,r),h=Math.min(t.width,e+i),c=Math.min(t.height,r+n);return{rect:{x:l,y:u,width:h-l,height:c-u},layout:[{offset:s,stride:o}]}}function Q1(t,e,r,i,n){return et(this,null,function*(){if(typeof VideoFrame>"u")throw Error("VideoFrame not supported");let a=new VideoFrame(t,{timestamp:0});try{let s=a==null?void 0:a.format;if(!s||!(s.startsWith("BGR")||s.startsWith("RGB")))throw Error(`Unrecognized format ${s}`);let o=s.startsWith("BGR"),l=new Uint8ClampedArray(i*n*4);if(yield a.copyTo(l,J1(t,e,r,i,n)),o)for(let u=0;u{t.removeEventListener(e,r,i)}}}function yh(t){return t*Math.PI/180}var mh="AbortError",gl=class extends Error{constructor(t=mh){super(t instanceof Error?t.message:t),this.name=mh,t instanceof Error&&t.stack&&(this.stack=t.stack)}};function xl(t){return t instanceof Error&&t.name==="AbortError"}function e0(t){if(t.aborted)throw new gl(t.reason)}var vl={MAX_PARALLEL_IMAGE_REQUESTS:16,MAX_PARALLEL_IMAGE_REQUESTS_PER_FRAME:8,MAX_TILE_CACHE_ZOOM_LEVELS:5,REGISTERED_PROTOCOLS:{},WORKER_URL:""};function r0(t){return vl.REGISTERED_PROTOCOLS[t.substring(0,t.indexOf("://"))]}function Fp(t,e){vl.REGISTERED_PROTOCOLS[t]=e}function Tp(t){delete vl.REGISTERED_PROTOCOLS[t]}var gh="global-dispatcher",ga=class extends Error{constructor(t,e,r,i){super(`AJAXError: ${e} (${t}): ${r}`),this.status=t,this.statusText=e,this.url=r,this.body=i}};function kp(){var t;if(vr(self))return(t=self.worker)==null?void 0:t.referrer;if(window.location.protocol==="blob:")try{return window.parent.location.href}catch(e){}return window.location.href}var i0=t=>{var e;return t.startsWith("file:")||((e=kp())==null?void 0:e.startsWith("file:"))&&!/^\\w+:/.test(t)};function n0(t,e){return et(this,null,function*(){let r=new Request(t.url,{method:t.method||"GET",body:t.body,credentials:t.credentials,headers:t.headers,cache:t.cache,referrer:kp(),referrerPolicy:t.referrerPolicy,signal:e.signal});t.type==="json"&&!r.headers.has("Accept")&&r.headers.set("Accept","application/json");let i;try{i=yield fetch(r)}catch(s){throw xl(s)?s:new ga(0,tn(s).message,t.url,new Blob)}if(!i.ok){let s=yield i.blob();throw new ga(i.status,i.statusText,t.url,s)}let n;n=t.type==="arrayBuffer"||t.type==="image"?i.arrayBuffer():t.type==="json"?i.json():i.text();let a=yield n;return e0(e.signal),{data:a,cacheControl:i.headers.get("Cache-Control"),expires:i.headers.get("Expires"),etag:i.headers.get("ETag")}})}function a0(t,e){return new Promise((r,i)=>{var a;let n=new XMLHttpRequest;n.open(t.method||"GET",t.url,!0),(t.type==="arrayBuffer"||t.type==="image")&&(n.responseType="arraybuffer");for(let s in t.headers)n.setRequestHeader(s,t.headers[s]);t.type==="json"&&(n.responseType="text",(a=t.headers)!=null&&a.Accept||n.setRequestHeader("Accept","application/json")),n.withCredentials=t.credentials==="include",n.onerror=()=>{i(Error(n.statusText))},n.onload=()=>{if(!e.signal.aborted)if((n.status>=200&&n.status<300||n.status===0)&&n.response!==null){let s=n.response;if(t.type==="json")try{s=JSON.parse(n.response)}catch(o){i(o);return}r({data:s,cacheControl:n.getResponseHeader("Cache-Control"),expires:n.getResponseHeader("Expires"),etag:n.getResponseHeader("ETag")})}else{let s=new Blob([n.response],{type:n.getResponseHeader("Content-Type")});i(new ga(n.status,n.statusText,t.url,s))}},e.signal.addEventListener("abort",()=>{n.abort(),i(new gl(e.signal.reason))}),n.send(t.body)})}var Pa=function(t,e){return et(this,null,function*(){var r,i;if(t.url.includes("://")&&!/^https?:|^file:/.test(t.url)){let n=r0(t.url);if(n){let a=yield n(t,e);return!a.data&&t.type==="arrayBuffer"?Xt(a,{data:new ArrayBuffer(0)}):a}if(vr(self)&&((r=self.worker)!=null&&r.actor))return self.worker.actor.sendAsync({type:"GR",data:t,targetMapId:gh},e)}if(!i0(t.url)){if(fetch&&Request&&AbortController&&Object.hasOwn(Request.prototype,"signal"))return n0(t,e);if(vr(self)&&((i=self.worker)!=null&&i.actor))return self.worker.actor.sendAsync({type:"GR",data:t,mustQueue:!0,targetMapId:gh},e)}return a0(t,e)})},Ip=(t,e)=>Pa(Xt(t,{type:"json"}),e),Cp=(t,e)=>Pa(Xt(t,{type:"arrayBuffer"}),e);function xh(t,e,r){var i;(i=r[t])!=null&&i.includes(e)||(r[t]||(r[t]=[]),r[t].push(e))}function Cs(t,e,r){if(r!=null&&r[t]){let i=r[t].indexOf(e);i!==-1&&r[t].splice(i,1)}}var Mp=class{constructor(t,e={}){Xt(this,e),this.type=t}},xa=class extends Mp{constructor(t,e={}){super("error",Xt({error:t},e))}},s0=class{on(t,e){return this._listeners||(this._listeners={}),xh(t,e,this._listeners),{unsubscribe:()=>{this.off(t,e)}}}off(t,e){return Cs(t,e,this._listeners),Cs(t,e,this._oneTimeListeners),this}once(t,e){return e?(this._oneTimeListeners||(this._oneTimeListeners={}),xh(t,e,this._oneTimeListeners),this):new Promise(r=>this.once(t,r))}fire(t,e){var n,a,s,o,l,u;let r=typeof t=="string"?new Mp(t,e||{}):t,i=r.type;if(this.listens(i)){r.target=this;let h=(s=(a=(n=this._listeners)==null?void 0:n[i])==null?void 0:a.slice())!=null?s:[];for(let f of h)f.call(this,r);let c=(u=(l=(o=this._oneTimeListeners)==null?void 0:o[i])==null?void 0:l.slice())!=null?u:[];for(let f of c)Cs(i,f,this._oneTimeListeners),f.call(this,r);let p=this._eventedParent;p&&(Xt(r,typeof this._eventedParentData=="function"?this._eventedParentData():this._eventedParentData),p.fire(r))}else r instanceof xa&&console.error(r.error);return this}listens(t){var e,r,i,n,a;return!!((r=(e=this._listeners)==null?void 0:e[t])!=null&&r.length||(n=(i=this._oneTimeListeners)==null?void 0:i[t])!=null&&n.length||(a=this._eventedParent)!=null&&a.listens(t))}setEventedParent(t,e){return this._eventedParent=t,this._eventedParentData=e,this}},Bp={$version:8,$root:{version:{required:!0,type:"enum",values:[8]},name:{type:"string"},metadata:{type:"*"},center:{type:"array",value:"number",length:2},centerAltitude:{type:"number"},zoom:{type:"number"},bearing:{type:"number",default:0,period:360,units:"degrees"},pitch:{type:"number",default:0,units:"degrees"},roll:{type:"number",default:0,units:"degrees"},state:{type:"state",default:{}},light:{type:"light"},sky:{type:"sky"},projection:{type:"projection"},terrain:{type:"terrain"},sources:{required:!0,type:"sources"},sprite:{type:"sprite"},glyphs:{type:"string"},"font-faces":{type:"fontFaces"},transition:{type:"transition"},layers:{required:!0,type:"array",value:"layer"}},sources:{"*":{type:"source"}},source:["source_vector","source_raster","source_raster_dem","source_geojson","source_video","source_image"],source_vector:{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},encoding:{type:"enum",values:{mvt:{},mlt:{}},default:"mvt"},"*":{type:"*"}},source_raster:{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:"*"}},source_raster_dem:{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:{},custom:{}},default:"mapbox"},redFactor:{type:"number",default:1},blueFactor:{type:"number",default:1},greenFactor:{type:"number",default:1},baseShift:{type:"number",default:0},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_geojson:{type:{required:!0,type:"enum",values:{geojson:{}}},data:{required:!0,type:"*"},maxzoom:{type:"number",default:18},attribution:{type:"string"},buffer:{type:"number",default:128,maximum:512,minimum:0},filter:{type:"filter"},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"}},source_video:{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"}}},source_image:{type:{required:!0,type:"enum",values:{image:{}}},url:{type:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},layer:{id:{type:"string",required:!0},type:{type:"enum",values:{fill:{},line:{},symbol:{},circle:{},heatmap:{},"fill-extrusion":{},raster:{},hillshade:{},"color-relief":{},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"}},layout:["layout_fill","layout_line","layout_circle","layout_heatmap","layout_fill-extrusion","layout_symbol","layout_raster","layout_hillshade","layout_color-relief","layout_background"],layout_background:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible",expression:{interpolated:!1,parameters:["global-state"]},"property-type":"data-constant"}},layout_fill:{"fill-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible",expression:{interpolated:!1,parameters:["global-state"]},"property-type":"data-constant"}},layout_circle:{"circle-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible",expression:{interpolated:!1,parameters:["global-state"]},"property-type":"data-constant"}},layout_heatmap:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible",expression:{interpolated:!1,parameters:["global-state"]},"property-type":"data-constant"}},"layout_fill-extrusion":{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible",expression:{interpolated:!1,parameters:["global-state"]},"property-type":"data-constant"},"fill-extrusion-rounded-corner-distance":{type:"number",default:0,minimum:0,units:"meters","property-type":"constant"}},layout_line:{"line-cap":{type:"enum",values:{butt:{},round:{},square:{}},default:"butt",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"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","feature"]},"property-type":"data-driven"},"line-round-limit":{type:"number",default:1.05,requires:[{"line-join":"round"}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible",expression:{interpolated:!1,parameters:["global-state"]},"property-type":"data-constant"}},layout_symbol:{"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",{"!":"icon-overlap"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-overlap":{type:"enum",values:{never:{},always:{},cooperative:{}},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","feature"]},"property-type":"data-driven"},"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:"padding",default:[2],units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"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:{},"viewport-glyph":{},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-variable-anchor-offset":{type:"variableAnchorOffsetCollection",requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"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",{"!":"text-overlap"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-overlap":{type:"enum",values:{never:{},always:{},cooperative:{}},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"},"symbol-height-offset":{type:"number",default:0,units:"meters",requires:[{"symbol-placement":["point"]}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"symbol-height-anchor":{type:"enum",values:{ground:{},absolute:{}},default:"ground",requires:["symbol-height-offset"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible",expression:{interpolated:!1,parameters:["global-state"]},"property-type":"data-constant"}},layout_raster:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible",expression:{interpolated:!1,parameters:["global-state"]},"property-type":"data-constant"}},layout_hillshade:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible",expression:{interpolated:!1,parameters:["global-state"]},"property-type":"data-constant"}},"layout_color-relief":{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible",expression:{interpolated:!1,parameters:["global-state"]},"property-type":"data-constant"}},filter:{type:"boolean",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},filter_operator:{type:"enum",values:{"==":{},"!=":{},">":{},">=":{},"<":{},"<=":{},in:{},"!in":{},all:{},any:{},none:{},has:{},"!has":{}}},geometry_type:{type:"enum",values:{Point:{},LineString:{},Polygon:{}}},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:{type:"array",minimum:0,maximum:24,value:["number","color"],length:2},expression:{type:"array",value:"expression_name",minimum:1},light:{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}},sky:{"sky-color":{type:"color","property-type":"data-constant",default:"#88C6FC",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"horizon-color":{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"fog-color":{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"fog-ground-blend":{type:"number","property-type":"data-constant",default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"horizon-fog-blend":{type:"number","property-type":"data-constant",default:.8,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"sky-horizon-blend":{type:"number","property-type":"data-constant",default:.8,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"atmosphere-blend":{type:"number","property-type":"data-constant",default:.8,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0}},terrain:{source:{type:"string",required:!0},exaggeration:{type:"number",minimum:0,default:1}},projection:{type:{type:"projectionDefinition",default:"mercator","property-type":"data-constant",transition:!1,expression:{interpolated:!0,parameters:["zoom"]}}},paint:["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_symbol","paint_raster","paint_hillshade","paint_color-relief","paint_background"],paint_fill:{"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-layer-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","global-state"]},"property-type":"data-constant"},"fill-color":{type:"color",default:"#000000",transition:!0,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"}},"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,units:"meters",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{type:"number",default: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:{"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-layer-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","global-state"]},"property-type":"data-constant"},"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","feature"]},"property-type":"cross-faded-data-driven"},"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"}},paint_circle:{"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"}},paint_heatmap:{"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"}},paint_symbol:{"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"}},paint_raster:{"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"},resampling:{type:"enum",values:{linear:{},nearest:{}},default:"linear",expression:{interpolated:!1,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"}},paint_hillshade:{"hillshade-illumination-direction":{type:"numberArray",default:335,minimum:0,maximum:359,transition:!1,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-illumination-altitude":{type:"numberArray",default:45,minimum:0,maximum:90,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:"colorArray",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-highlight-color":{type:"colorArray",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"},"hillshade-method":{type:"enum",values:{standard:{},basic:{},combined:{},igor:{},multidirectional:{}},default:"standard",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},resampling:{type:"enum",values:{linear:{},nearest:{}},default:"linear",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},"paint_color-relief":{"color-relief-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"color-relief-color":{type:"color",transition:!1,expression:{interpolated:!0,parameters:["elevation"]},"property-type":"color-ramp"},resampling:{type:"enum",values:{linear:{},nearest:{}},default:"linear",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_background:{"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"}},transition:{duration:{type:"number",default:300,minimum:0,units:"milliseconds"},delay:{type:"number",default:0,minimum:0,units:"milliseconds"}},"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:{"*":{type:"string"}},interpolation:{type:"array",value:"interpolation_name",minimum:1},interpolation_name:{type:"enum",values:{linear:{syntax:{overloads:[{parameters:[],"output-type":"interpolation"}],parameters:[]}},exponential:{syntax:{overloads:[{parameters:["base"],"output-type":"interpolation"}],parameters:[{name:"base",type:"number literal"}]}},"cubic-bezier":{syntax:{overloads:[{parameters:["x1","y1","x2","y2"],"output-type":"interpolation"}],parameters:[{name:"x1",type:"number literal"},{name:"y1",type:"number literal"},{name:"x2",type:"number literal"},{name:"y2",type:"number literal"}]}}}}},D=Bp,Pp=["type","source","source-layer","minzoom","maxzoom","filter","layout"],E=class{constructor(t,e,r,i,n="error"){this.message=(t?`${t}: `:"")+r,i&&(this.identifier=i),this.severity=n,e!=null&&e.__line__&&(this.line=e.__line__)}},vn={kind:"null"},I={kind:"number"},W={kind:"string"},Q={kind:"boolean"},pe={kind:"color"},za={kind:"projectionDefinition"},mr={kind:"object"},H={kind:"value"},o0={kind:"error"},La={kind:"collator"},bn={kind:"formatted"},Va={kind:"padding"},rn={kind:"colorArray"},Oa={kind:"numberArray"},wn={kind:"resolvedImage"},Ra={kind:"variableAnchorOffsetCollection"};function Ut(t,e){return{kind:"array",itemType:t,N:e}}function mt(t){if(t.kind==="array"){let e=mt(t.itemType);return typeof t.N=="number"?`array<${e}, ${t.N}>`:t.itemType.kind==="value"?"array":`array<${e}>`}return t.kind}var l0=[vn,I,W,Q,pe,za,bn,mr,Ut(H),Va,Oa,rn,wn,Ra];function nn(t,e){if(e.kind==="error")return null;if(t.kind==="array"){if(e.kind==="array"&&(e.N===0&&e.itemType.kind==="value"||!nn(t.itemType,e.itemType))&&(typeof t.N!="number"||t.N===e.N))return null}else{if(t.kind===e.kind)return null;if(t.kind==="value"){for(let r of l0)if(!nn(r,e))return null}}return`Expected ${mt(t)} but found ${mt(e)} instead.`}function bl(t,e){return e.some(r=>r.kind===t.kind)}function gr(t,e){return e.some(r=>r==="null"?t===null:r==="array"?Array.isArray(t):r==="object"?t&&!Array.isArray(t)&&typeof t=="object":r===typeof t)}function Ye(t,e){return t.kind==="array"&&e.kind==="array"?t.itemType.kind===e.itemType.kind&&typeof t.N=="number":t.kind===e.kind}var zp=.96422,Lp=.82521,Vp=4/29,eo=6/29,Op=3*eo*eo,u0=Math.PI/180,h0=180/Math.PI;function Rp(t){return t%=360,t<0&&(t+=360),t}function $p([t,e,r,i]){t=Ms(t),e=Ms(e),r=Ms(r);let n,a,s=Bs((.2225045*t+.7168786*e+.0606169*r)/1);t===e&&e===r?n=a=s:(n=Bs((.4360747*t+.3850649*e+.1430804*r)/zp),a=Bs((.0139322*t+.0971045*e+.7141733*r)/Lp));let o=116*s-16;return[o<0?0:o,500*(n-s),200*(s-a),i]}function Ms(t){return t<=.04045?t/12.92:((t+.055)/1.055)**2.4}function Bs(t){return t>.008856451679035631?t**(1/3):t/Op+Vp}function Np([t,e,r,i]){let n=(t+16)/116,a=isNaN(e)?n:n+e/500,s=isNaN(r)?n:n-r/200;return n=1*zs(n),a=zp*zs(a),s=Lp*zs(s),[Ps(3.1338561*a-1.6168667*n-.4906146*s),Ps(-.9787684*a+1.9161415*n+.033454*s),Ps(.0719453*a-.2289914*n+1.4052427*s),i]}function Ps(t){return t=t<=.00304?12.92*t:1.055*t**(1/2.4)-.055,t<0?0:t>1?1:t}function zs(t){return t>eo?t*t*t:Op*(t-Vp)}function c0(t){let[e,r,i,n]=$p(t),a=Math.sqrt(r*r+i*i);return[Math.round(a*1e4)?Rp(Math.atan2(i,r)*h0):NaN,a,e,n]}function p0([t,e,r,i]){return t=isNaN(t)?0:t*u0,Np([r,Math.cos(t)*e,Math.sin(t)*e,i])}function f0([t,e,r,i]){t=Rp(t),e/=100,r/=100;function n(a){let s=(a+t/30)%12,o=e*Math.min(r,1-r);return r-o*Math.max(-1,Math.min(s-3,9-s,1))}return[n(0),n(8),n(4),i]}var d0=Object.hasOwn||function(t,e){return Object.prototype.hasOwnProperty.call(t,e)};function Yi(t,e){return d0(t,e)?t[e]:void 0}function y0(t){if(t=t.toLowerCase().trim(),t==="transparent")return[0,0,0,0];let e=Yi(m0,t);if(e){let[i,n,a]=e;return[i/255,n/255,a/255,1]}if(t.startsWith("#")&&/^#(?:[0-9a-f]{3,4}|[0-9a-f]{6}|[0-9a-f]{8})$/.test(t)){let i=t.length<6?1:2,n=1;return[Yn(t.slice(n,n+=i)),Yn(t.slice(n,n+=i)),Yn(t.slice(n,n+=i)),Yn(t.slice(n,n+i)||"ff")]}if(t.startsWith("rgb")){let i=t.match(/^rgba?\\(\\s*([\\de.+-]+)(%)?(?:\\s+|\\s*(,)\\s*)([\\de.+-]+)(%)?(?:\\s+|\\s*(,)\\s*)([\\de.+-]+)(%)?(?:\\s*([,\\/])\\s*([\\de.+-]+)(%)?)?\\s*\\)$/);if(i){let[n,a,s,o,l,u,h,c,p,f,d,y]=i,m=[o||" ",h||" ",f].join("");if(m===" "||m===" /"||m===",,"||m===",,,"){let g=[s,u,p].join(""),x=g==="%%%"?100:g===""?255:0;if(x){let v=[Rr(+a/x,0,1),Rr(+l/x,0,1),Rr(+c/x,0,1),d?vh(+d,y):1];if(bh(v))return v}}return}}let r=t.match(/^hsla?\\(\\s*([\\de.+-]+)(?:deg)?(?:\\s+|\\s*(,)\\s*)([\\de.+-]+)%(?:\\s+|\\s*(,)\\s*)([\\de.+-]+)%(?:\\s*([,\\/])\\s*([\\de.+-]+)(%)?)?\\s*\\)$/);if(r){let[i,n,a,s,o,l,u,h,c]=r,p=[a||" ",o||" ",u].join("");if(p===" "||p===" /"||p===",,"||p===",,,"){let f=[+n,Rr(+s,0,100),Rr(+l,0,100),h?vh(+h,c):1];if(bh(f))return f0(f)}}}function Yn(t){return parseInt(t.padEnd(2,t),16)/255}function vh(t,e){return Rr(e?t/100:t,0,1)}function Rr(t,e,r){return Math.min(Math.max(e,t),r)}function bh(t){return!t.some(Number.isNaN)}var m0={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]};function er(t,e,r){return t+r*(e-t)}function ti(t,e,r){return t.map((i,n)=>er(i,e[n],r))}function g0(t){return t==="rgb"||t==="hcl"||t==="lab"}var Bt,xt=(Bt=class{constructor(e,r,i,n=1,a=!0){this.r=e,this.g=r,this.b=i,this.a=n,a||(this.r*=n,this.g*=n,this.b*=n,n||this.overwriteGetter("rgb",[e,r,i,n]))}static parse(e){if(e instanceof Bt)return e;if(typeof e!="string")return;let r=y0(e);if(r)return new Bt(...r,!1)}get rgb(){let{r:e,g:r,b:i,a:n}=this,a=n||1/0;return this.overwriteGetter("rgb",[e/a,r/a,i/a,n])}get hcl(){return this.overwriteGetter("hcl",c0(this.rgb))}get lab(){return this.overwriteGetter("lab",$p(this.rgb))}overwriteGetter(e,r){return Object.defineProperty(this,e,{value:r}),r}toString(){let[e,r,i,n]=this.rgb;return`rgba(${[e,r,i].map(a=>Math.round(a*255)).join(",")},${n})`}static interpolate(e,r,i,n="rgb"){switch(n){case"rgb":{let[a,s,o,l]=ti(e.rgb,r.rgb,i);return new Bt(a,s,o,l,!1)}case"hcl":{let[a,s,o,l]=e.hcl,[u,h,c,p]=r.hcl,f,d;if(!isNaN(a)&&!isNaN(u)){let v=u-a;u>a&&v>180?v-=360:u180&&(v+=360),f=a+i*v}else isNaN(a)?isNaN(u)?f=NaN:(f=u,(o===1||o===0)&&(d=h)):(f=a,(c===1||c===0)&&(d=s));let[y,m,g,x]=p0([f,d!=null?d:er(s,h,i),er(o,c,i),er(l,p,i)]);return new Bt(y,m,g,x,!1)}case"lab":{let[a,s,o,l]=Np(ti(e.lab,r.lab,i));return new Bt(a,s,o,l,!1)}}}},Bt.black=new Bt(0,0,0,1),Bt.white=new Bt(1,1,1,1),Bt.transparent=new Bt(0,0,0,0),Bt.red=new Bt(1,0,0,1),Bt),x0=["bottom","center","top"],ro=class{constructor(t,e,r,i,n,a){this.text=t,this.image=e,this.scale=r,this.fontStack=i,this.textColor=n,this.verticalAlign=a}},Le=class ha{constructor(e){this.sections=e}static fromString(e){return new ha([new ro(e,null,null,null,null,null)])}isEmpty(){return this.sections.length===0||!this.sections.some(e=>e.text.length!==0||e.image&&e.image.name.length!==0)}static factory(e){return e instanceof ha?e:ha.fromString(e)}toString(){return this.sections.length===0?"":this.sections.map(e=>e.text).join("")}},Ee=class Ri{constructor(e){this.values=e.slice()}static parse(e){if(e instanceof Ri)return e;if(typeof e=="number")return new Ri([e,e,e,e]);if(Array.isArray(e)&&!(e.length<1||e.length>4)){for(let r of e)if(typeof r!="number")return;switch(e.length){case 1:e=[e[0],e[0],e[0],e[0]];break;case 2:e=[e[0],e[1],e[0],e[1]];break;case 3:e=[e[0],e[1],e[2],e[1]]}return new Ri(e)}}toString(){return JSON.stringify(this.values)}static interpolate(e,r,i){return new Ri(ti(e.values,r.values,i))}},Fe=class $i{constructor(e){this.values=e.slice()}static parse(e){if(e instanceof $i)return e;if(typeof e=="number")return new $i([e]);if(Array.isArray(e)){for(let r of e)if(typeof r!="number")return;return new $i(e)}}toString(){return JSON.stringify(this.values)}static interpolate(e,r,i){return new $i(ti(e.values,r.values,i))}},ue=class Ni{constructor(e){this.values=e.slice()}static parse(e){if(e instanceof Ni)return e;if(typeof e=="string"){let i=xt.parse(e);return i?new Ni([i]):void 0}if(!Array.isArray(e))return;let r=[];for(let i of e){if(typeof i!="string")return;let n=xt.parse(i);if(!n)return;r.push(n)}return new Ni(r)}toString(){return JSON.stringify(this.values)}static interpolate(e,r,i,n="rgb"){let a=[];if(e.values.length!=r.values.length)throw Error(`colorArray: Arrays have mismatched length (${e.values.length} vs. ${r.values.length}), cannot interpolate.`);for(let s=0;s=0&&t<=255&&typeof e=="number"&&e>=0&&e<=255&&typeof r=="number"&&r>=0&&r<=255?i===void 0||typeof i=="number"&&i>=0&&i<=1?null:`Invalid rgba value [${[t,e,r,i].join(", ")}]: \'a\' must be between 0 and 1.`:`Invalid rgba value [${(typeof i=="number"?[t,e,r,i]:[t,e,r]).join(", ")}]: \'r\', \'g\', and \'b\' must be between 0 and 255.`}function ei(t){if(t===null||typeof t=="string"||typeof t=="boolean"||typeof t=="number"||t instanceof Sr||t instanceof xt||t instanceof wl||t instanceof Le||t instanceof Ee||t instanceof Fe||t instanceof ue||t instanceof Ae||t instanceof Se)return!0;if(Array.isArray(t)){for(let e of t)if(!ei(e))return!1;return!0}if(typeof t=="object"){for(let e in t)if(!ei(t[e]))return!1;return!0}return!1}function St(t){if(t===null)return vn;if(typeof t=="string")return W;if(typeof t=="boolean")return Q;if(typeof t=="number")return I;if(t instanceof xt)return pe;if(t instanceof Sr)return za;if(t instanceof wl)return La;if(t instanceof Le)return bn;if(t instanceof Ee)return Va;if(t instanceof Fe)return Oa;if(t instanceof ue)return rn;if(t instanceof Ae)return Ra;if(t instanceof Se)return wn;if(Array.isArray(t)){let e=t.length,r;for(let i of t){let n=St(i);if(!r)r=n;else{if(r===n)continue;r=H;break}}return Ut(r||H,e)}return mr}function Wi(t){let e=typeof t;return t===null?"":e==="string"||e==="number"||e==="boolean"?String(t):t instanceof xt||t instanceof Sr||t instanceof Le||t instanceof Ee||t instanceof Fe||t instanceof ue||t instanceof Ae||t instanceof Se?t.toString():JSON.stringify(t)}var ri=class jp{constructor(e,r){this.type=e,this.value=r}static parse(e,r){if(e.length!==2)return r.error(`\'literal\' expression requires exactly one argument, but found ${e.length-1} instead.`);if(!ei(e[1]))return r.error(`invalid value of type "${typeof e[1]}"`);let i=e[1],n=St(i),a=r.expectedType;return n.kind==="array"&&n.N===0&&a&&a.kind==="array"&&(typeof a.N!="number"||a.N===0)&&(n=a),new jp(n,i)}evaluate(){return this.value}eachChild(){}outputDefined(){return!0}},b0=["Unknown","Point","LineString","Polygon"],Gp=class{constructor(){this.globals=null,this.feature=null,this.featureState=null,this.formattedSection=null,this._parseColorCache=new Map,this.availableImages=null,this.canonical=null}id(){return this.feature&&"id"in this.feature?this.feature.id:null}geometryType(){return this.feature?typeof this.feature.type=="number"?b0[this.feature.type]:this.feature.type:null}geometry(){return this.feature&&"geometry"in this.feature?this.feature.geometry:null}canonicalID(){return this.canonical}properties(){return this.feature&&this.feature.properties||{}}parseColor(t){let e=this._parseColorCache.get(t);return e||(e=xt.parse(t),this._parseColorCache.set(t,e)),e}};function $a(t,e,r){let i=t.length-1,n=0,a=i,s=0,o,l;for(;n<=a;)if(s=Math.floor((n+a)/2),o=t[s],l=t[s+1],o<=e){if(s===i||ee)a=s-1;else throw new ft("Input is not a number.",r);return 0}var Dl=class Xp{constructor(e,r,i,n){this.type=e,this.input=r,this.key=n,this.labels=[],this.outputs=[];for(let[a,s]of i)this.labels.push(a),this.outputs.push(s)}static parse(e,r){if(e.length-1<4)return r.error(`Expected at least 4 arguments, but found only ${e.length-1}.`);if((e.length-1)%2!=0)return r.error("Expected an even number of arguments.");let i=r.parse(e[1],1,I);if(!i)return null;let n=[],a=null;r.expectedType&&r.expectedType.kind!=="value"&&(a=r.expectedType);for(let s=1;s=o)return r.error(\'Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.\',u);let c=r.parse(l,h,a);if(!c)return null;a||(a=c.type),n.push([o,c])}return new Xp(a,i,n,r.key)}evaluate(e){let r=this.labels,i=this.outputs;if(r.length===1)return i[0].evaluate(e);let n=this.input.evaluate(e);if(n<=r[0])return i[0].evaluate(e);let a=r.length;return n>=r[a-1]?i[a-1].evaluate(e):i[$a(r,n,this.key)].evaluate(e)}eachChild(e){e(this.input);for(let r of this.outputs)e(r)}outputDefined(){return this.outputs.every(e=>e.outputDefined())}};function w0(t,e,r,i){let n=3*t,a=3*(r-t)-n,s=1-n-a,o=3*e,l=3*(i-e)-o,u=1-o-l;return function(h,c=1e-6){if(h<=0)return 0;if(h>=1)return 1;let p=h;for(let y=0;y<8;y++){let m=((s*p+a)*p+n)*p-h;if(Math.abs(m)m?f=p:d=p,p=(f+d)*.5}return((u*p+l)*p+o)*p}}var De=class io{constructor(e,r,i,n,a,s){this.type=e,this.operator=r,this.interpolation=i,this.input=n,this.key=s,this.labels=[],this.outputs=[];for(let[o,l]of a)this.labels.push(o),this.outputs.push(l)}static interpolationFactor(e,r,i,n){let a=0;if(e.name==="exponential")a=Ls(r,e.base,i,n);else if(e.name==="linear")a=Ls(r,1,i,n);else if(e.name==="cubic-bezier"){let s=e.controlPoints;a=w0(s[0],s[1],s[2],s[3])(Ls(r,1,i,n))}return a}static parse(e,r){let[i,n,a,...s]=e;if(!Array.isArray(n)||n.length===0)return r.error("Expected an interpolation type expression.",1);if(n[0]==="linear")n={name:"linear"};else if(n[0]==="exponential"){let u=n[1];if(typeof u!="number")return r.error("Exponential interpolation requires a numeric base.",1,1);n={name:"exponential",base:u}}else if(n[0]==="cubic-bezier"){let u=n.slice(1);if(u.length!==4||u.some(h=>typeof h!="number"||h<0||h>1))return r.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);n={name:"cubic-bezier",controlPoints:u}}else return r.error(`Unknown interpolation type ${String(n[0])}`,1,0);if(e.length-1<4)return r.error(`Expected at least 4 arguments, but found only ${e.length-1}.`);if((e.length-1)%2!=0)return r.error("Expected an even number of arguments.");if(a=r.parse(a,2,I),!a)return null;let o=[],l=null;(i==="interpolate-hcl"||i==="interpolate-lab")&&r.expectedType!=rn?l=pe:r.expectedType&&r.expectedType.kind!=="value"&&(l=r.expectedType);for(let u=0;u=h)return r.error(\'Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.\',p);let d=r.parse(c,f,l);if(!d)return null;l||(l=d.type),o.push([h,d])}return!Ye(l,I)&&!Ye(l,za)&&!Ye(l,pe)&&!Ye(l,Va)&&!Ye(l,Oa)&&!Ye(l,rn)&&!Ye(l,Ra)&&!Ye(l,Ut(I))?r.error(`Type ${mt(l)} is not interpolatable.`):new io(l,i,n,a,o,r.key)}evaluate(e){let r=this.labels,i=this.outputs;if(r.length===1)return i[0].evaluate(e);let n=this.input.evaluate(e);if(n<=r[0])return i[0].evaluate(e);let a=r.length;if(n>=r[a-1])return i[a-1].evaluate(e);let s=$a(r,n,this.key),o=r[s],l=r[s+1],u=io.interpolationFactor(this.interpolation,n,o,l),h=i[s].evaluate(e),c=i[s+1].evaluate(e);switch(this.operator){case"interpolate":switch(this.type.kind){case"number":return er(h,c,u);case"color":return xt.interpolate(h,c,u);case"padding":return Ee.interpolate(h,c,u);case"colorArray":return ue.interpolate(h,c,u);case"numberArray":return Fe.interpolate(h,c,u);case"variableAnchorOffsetCollection":return Ae.interpolate(h,c,u,this.key);case"array":return ti(h,c,u);case"projectionDefinition":return Sr.interpolate(h,c,u)}case"interpolate-hcl":switch(this.type.kind){case"color":return xt.interpolate(h,c,u,"hcl");case"colorArray":return ue.interpolate(h,c,u,"hcl")}case"interpolate-lab":switch(this.type.kind){case"color":return xt.interpolate(h,c,u,"lab");case"colorArray":return ue.interpolate(h,c,u,"lab")}}}eachChild(e){e(this.input);for(let r of this.outputs)e(r)}outputDefined(){return this.outputs.every(e=>e.outputDefined())}};function Ls(t,e,r,i){let n=i-r,a=t-r;return n===0?0:e===1?a/n:(e**+a-1)/(e**+n-1)}var br={color:xt.interpolate,number:er,padding:Ee.interpolate,numberArray:Fe.interpolate,colorArray:ue.interpolate,variableAnchorOffsetCollection:Ae.interpolate,array:ti},Yp=class Wp{constructor(e){this.type=bn,this.sections=e}static parse(e,r){if(e.length<2)return r.error("Expected at least one argument.");let i=e[1];if(!Array.isArray(i)&&typeof i=="object")return r.error("First argument must be an image or text section.");let n=[],a=!1;for(let s=1;s<=e.length-1;++s){let o=e[s];if(a&&typeof o=="object"&&!Array.isArray(o)){a=!1;let l=null;if(o["font-scale"]&&(l=r.parse(o["font-scale"],1,I),!l))return null;let u=null;if(o["text-font"]&&(u=r.parse(o["text-font"],1,Ut(W)),!u))return null;let h=null;if(o["text-color"]&&(h=r.parse(o["text-color"],1,pe),!h))return null;let c=null;if(o["vertical-align"]){if(typeof o["vertical-align"]=="string"&&!x0.includes(o["vertical-align"]))return r.error(`\'vertical-align\' must be one of: \'bottom\', \'center\', \'top\' but found \'${o["vertical-align"]}\' instead.`);if(c=r.parse(o["vertical-align"],1,W),!c)return null}let p=n[n.length-1];p.scale=l,p.font=u,p.textColor=h,p.verticalAlign=c}else{let l=r.parse(e[s],1,H);if(!l)return null;let u=l.type.kind;if(u!=="string"&&u!=="value"&&u!=="null"&&u!=="resolvedImage")return r.error("Formatted text type must be \'string\', \'value\', \'image\' or \'null\'.");a=!0,n.push({content:l,scale:null,font:null,textColor:null,verticalAlign:null})}}return new Wp(n)}evaluate(e){return new Le(this.sections.map(r=>{let i=r.content.evaluate(e);return St(i)===wn?new ro("",i,null,null,null,r.verticalAlign?r.verticalAlign.evaluate(e):null):new ro(Wi(i),null,r.scale?r.scale.evaluate(e):null,r.font?r.font.evaluate(e).join(","):null,r.textColor?r.textColor.evaluate(e):null,r.verticalAlign?r.verticalAlign.evaluate(e):null)}))}eachChild(e){for(let r of this.sections)e(r.content),r.scale&&e(r.scale),r.font&&e(r.font),r.textColor&&e(r.textColor),r.verticalAlign&&e(r.verticalAlign)}outputDefined(){return!1}};function Zp(t,e,r=0,i=t.length-1,n=D0){for(;i>r;){if(i-r>600){let l=i-r+1,u=e-r+1,h=Math.log(l),c=.5*Math.exp(2*h/3),p=.5*Math.sqrt(h*c*(l-c)/l)*(u-l/2<0?-1:1);Zp(t,e,Math.max(r,Math.floor(e-u*c/l+p)),Math.min(i,Math.floor(e+(l-u)*c/l+p)),n)}let a=t[e],s=r,o=i;for(ki(t,r,e),n(t[i],a)>0&&ki(t,r,i);s0;)o--}n(t[r],a)===0?ki(t,r,o):(o++,ki(t,o,i)),o<=e&&(r=o+1),e<=o&&(i=o-1)}}function ki(t,e,r){let i=t[e];t[e]=t[r],t[r]=i}function D0(t,e){return te)}function Na(t,e){if(t.length<=1)return[t];let r=[],i,n;for(let a of t){let s=A0(a);s!==0&&(a.area=Math.abs(s),n===void 0&&(n=s<0),n===s<0?(i&&r.push(i),i=[a]):i.push(a))}if(i&&r.push(i),e>1)for(let a=0;a2){let u=e[1];if(typeof u!="string"||!(u in Wn)||u==="object")return r.error(\'The item type argument of "array" must be one of string, number, boolean\',1);o=Wn[u],i++}else o=H;let l;if(e.length>3){if(e[2]!==null&&(typeof e[2]!="number"||e[2]<0||e[2]!==Math.floor(e[2])))return r.error(\'The length argument to "array" must be a positive integer literal\',2);l=e[2],i++}n=Ut(o,l)}else{if(!Wn[a])throw Error(`Types doesn\'t contain name = ${a}`);n=Wn[a]}let s=[];for(;ie.outputDefined())}},wh={"to-boolean":Q,"to-color":pe,"to-number":I,"to-string":W},jr=class Kp{constructor(e,r,i){this.type=e,this.args=r,this.key=i}static parse(e,r){if(e.length<2)return r.error("Expected at least one argument.");let i=e[0];if(!wh[i])throw Error(`Can\'t parse ${i} as it is not part of the known types`);if((i==="to-boolean"||i==="to-string")&&e.length!==2)return r.error("Expected one argument.");let n=wh[i],a=[];for(let s=1;s4?`Invalid rgba value ${JSON.stringify(r)}: expected an array containing either three or four numeric values.`:qp(r[0],r[1],r[2],r[3]),!i))return new xt(r[0]/255,r[1]/255,r[2]/255,r[3])}throw new ft(i||`Could not parse color from value \'${typeof r=="string"?r:JSON.stringify(r)}\'`,this.key)}case"padding":{let r;for(let i of this.args){r=i.evaluate(e);let n=Ee.parse(r);if(n)return n}throw new ft(`Could not parse padding from value \'${typeof r=="string"?r:JSON.stringify(r)}\'`,this.key)}case"numberArray":{let r;for(let i of this.args){r=i.evaluate(e);let n=Fe.parse(r);if(n)return n}throw new ft(`Could not parse numberArray from value \'${typeof r=="string"?r:JSON.stringify(r)}\'`,this.key)}case"colorArray":{let r;for(let i of this.args){r=i.evaluate(e);let n=ue.parse(r);if(n)return n}throw new ft(`Could not parse colorArray from value \'${typeof r=="string"?r:JSON.stringify(r)}\'`,this.key)}case"variableAnchorOffsetCollection":{let r;for(let i of this.args){r=i.evaluate(e);let n=Ae.parse(r);if(n)return n}throw new ft(`Could not parse variableAnchorOffsetCollection from value \'${typeof r=="string"?r:JSON.stringify(r)}\'`,this.key)}case"number":{let r=null;for(let i of this.args){if(r=i.evaluate(e),r===null)return 0;let n=Number(r);if(!isNaN(n))return n}throw new ft(`Could not convert ${JSON.stringify(r)} to number.`,this.key)}case"formatted":return Le.fromString(Wi(this.args[0].evaluate(e)));case"resolvedImage":return Se.fromString(Wi(this.args[0].evaluate(e)));case"projectionDefinition":{let r=this.args[0].evaluate(e);if(Sr.parse(r))return r;throw new ft(`Could not parse projectionDefinition from value \'${typeof r=="string"?r:JSON.stringify(r)}\'`,this.key)}default:return Wi(this.args[0].evaluate(e))}}eachChild(e){this.args.forEach(e)}outputDefined(){return this.args.every(e=>e.outputDefined())}},Jp=class Qp{constructor(e,r){this.type=r.type,this.bindings=[].concat(e),this.result=r}evaluate(e){return this.result.evaluate(e)}eachChild(e){for(let r of this.bindings)e(r[1]);e(this.result)}static parse(e,r){if(e.length<4)return r.error(`Expected at least 3 arguments, but found ${e.length-1} instead.`);let i=[];for(let a=1;a=i.length)throw new ft(`Array index out of bounds: ${r} > ${i.length-1}.`,this.key);if(r!==Math.floor(r))throw new ft(`Array index must be an integer, but found ${r} instead.`,this.key);return i[r]}eachChild(e){e(this.index),e(this.input)}outputDefined(){return!1}},E0=class nf{constructor(e,r,i){this.needle=e,this.haystack=r,this.key=i,this.type=Q}static parse(e,r){if(e.length!==3)return r.error(`Expected 2 arguments, but found ${e.length-1} instead.`);let i=r.parse(e[1],1,H),n=r.parse(e[2],2,H);return!i||!n?null:bl(i.type,[Q,W,I,vn,H])?new nf(i,n,r.key):r.error(`Expected first argument to be of type boolean, string, number or null, but found ${mt(i.type)} instead`)}evaluate(e){let r=this.needle.evaluate(e),i=this.haystack.evaluate(e);if(!i)return!1;if(!gr(r,["boolean","string","number","null"]))throw new ft(`Expected first argument to be of type boolean, string, number or null, but found ${mt(St(r))} instead.`,this.key);if(!gr(i,["string","array"]))throw new ft(`Expected second argument to be of type array or string, but found ${mt(St(i))} instead.`,this.key);return i.indexOf(r)>=0}eachChild(e){e(this.needle),e(this.haystack)}outputDefined(){return!0}},F0=class no{constructor(e,r,i,n){this.needle=e,this.haystack=r,this.key=i,this.fromIndex=n,this.type=I}static parse(e,r){if(e.length<=2||e.length>=5)return r.error(`Expected 2 or 3 arguments, but found ${e.length-1} instead.`);let i=r.parse(e[1],1,H),n=r.parse(e[2],2,H);if(!i||!n)return null;if(!bl(i.type,[Q,W,I,vn,H]))return r.error(`Expected first argument to be of type boolean, string, number or null, but found ${mt(i.type)} instead`);if(e.length===4){let a=r.parse(e[3],3,I);return a?new no(i,n,r.key,a):null}return new no(i,n,r.key)}evaluate(e){let r=this.needle.evaluate(e),i=this.haystack.evaluate(e);if(!gr(r,["boolean","string","number","null"]))throw new ft(`Expected first argument to be of type boolean, string, number or null, but found ${mt(St(r))} instead.`,this.key);let n;if(this.fromIndex&&(n=this.fromIndex.evaluate(e)),gr(i,["string"])){let a=i.indexOf(r,n);return a===-1?-1:[...i.slice(0,a)].length}if(gr(i,["array"]))return i.indexOf(r,n);throw new ft(`Expected second argument to be of type array or string, but found ${mt(St(i))} instead.`,this.key)}eachChild(e){e(this.needle),e(this.haystack),this.fromIndex&&e(this.fromIndex)}outputDefined(){return!1}},T0=class af{constructor(e,r,i,n,a,s){this.inputType=e,this.type=r,this.input=i,this.cases=n,this.outputs=a,this.otherwise=s}static parse(e,r){if(e.length<5)return r.error(`Expected at least 4 arguments, but found only ${e.length-1}.`);if(e.length%2!=1)return r.error("Expected an even number of arguments.");let i,n;r.expectedType&&r.expectedType.kind!=="value"&&(n=r.expectedType);let a={},s=[];for(let u=2;u2**53-1)return p.error(`Branch labels must be integers no larger than ${2**53-1}.`);if(typeof d=="number"&&Math.floor(d)!==d)return p.error("Numeric branch labels must be integer values.");if(!i)i=St(d);else if(p.checkSubtype(i,St(d)))return null;if(a[String(d)]!==void 0)return p.error("Branch labels must be unique.");a[String(d)]=s.length}let f=r.parse(c,u,n);if(!f)return null;n||(n=f.type),s.push(f)}let o=r.parse(e[1],1,H);if(!o)return null;let l=r.parse(e[e.length-1],e.length-1,n);return!l||o.type.kind!=="value"&&r.concat(1).checkSubtype(i,o.type)?null:new af(i,n,o,a,s,l)}evaluate(e){let r=this.input.evaluate(e);return(St(r)===this.inputType&&this.outputs[this.cases[r]]||this.otherwise).evaluate(e)}eachChild(e){e(this.input),this.outputs.forEach(e),e(this.otherwise)}outputDefined(){return this.outputs.every(e=>e.outputDefined())&&this.otherwise.outputDefined()}},k0=class sf{constructor(e,r,i){this.type=e,this.branches=r,this.otherwise=i}static parse(e,r){if(e.length<4)return r.error(`Expected at least 3 arguments, but found only ${e.length-1}.`);if(e.length%2!=0)return r.error("Expected an odd number of arguments.");let i;r.expectedType&&r.expectedType.kind!=="value"&&(i=r.expectedType);let n=[];for(let s=1;sr.outputDefined())&&this.otherwise.outputDefined()}},I0=class ao{constructor(e,r,i,n,a){this.type=e,this.input=r,this.beginIndex=i,this.key=n,this.endIndex=a}static parse(e,r){if(e.length<=2||e.length>=5)return r.error(`Expected 2 or 3 arguments, but found ${e.length-1} instead.`);let i=r.parse(e[1],1,H),n=r.parse(e[2],2,I);if(!i||!n)return null;if(!bl(i.type,[Ut(H),W,H]))return r.error(`Expected first argument to be of type array or string, but found ${mt(i.type)} instead`);if(e.length===4){let a=r.parse(e[3],3,I);return a?new ao(i.type,i,n,r.key,a):null}return new ao(i.type,i,n,r.key)}evaluate(e){let r=this.input.evaluate(e),i=this.beginIndex.evaluate(e),n;if(this.endIndex&&(n=this.endIndex.evaluate(e)),gr(r,["string"]))return[...r].slice(i,n).join("");if(gr(r,["array"]))return r.slice(i,n);throw new ft(`Expected first argument to be of type array or string, but found ${mt(St(r))} instead.`,this.key)}eachChild(e){e(this.input),e(this.beginIndex),this.endIndex&&e(this.endIndex)}outputDefined(){return!1}},of=class so{constructor(e,r){this.type=e,this.args=r}static parse(e,r){if(e.length<2)return r.error("Expected at least one argument.");let i=null,n=r.expectedType;n&&n.kind!=="value"&&(i=n);let a=[];for(let s of e.slice(1)){let o=r.parse(s,1+a.length,i,void 0,{typeAnnotation:"omit"});if(!o)return null;i||(i=o.type),a.push(o)}if(!i)throw Error("No output type");return n&&a.some(s=>nn(n,s.type))?new so(H,a):new so(i,a)}evaluate(e){let r=null,i=0,n;for(let a of this.args)if(i++,r=a.evaluate(e),r&&r instanceof Se&&!r.available&&(n||(n=r.name),r=null,i===this.args.length&&(r=n)),r!==null)break;return r}eachChild(e){this.args.forEach(e)}outputDefined(){return this.args.every(e=>e.outputDefined())}};function Dh(t,e){return t==="=="||t==="!="?e.kind==="boolean"||e.kind==="string"||e.kind==="number"||e.kind==="null"||e.kind==="value":e.kind==="string"||e.kind==="number"||e.kind==="value"}function C0(t,e,r){return e===r}function M0(t,e,r){return e!==r}function B0(t,e,r){return er}function z0(t,e,r){return e<=r}function L0(t,e,r){return e>=r}function lf(t,e,r,i){return i.compare(e,r)===0}function V0(t,e,r,i){return!lf(t,e,r,i)}function O0(t,e,r,i){return i.compare(e,r)<0}function R0(t,e,r,i){return i.compare(e,r)>0}function $0(t,e,r,i){return i.compare(e,r)<=0}function N0(t,e,r,i){return i.compare(e,r)>=0}function li(t,e,r){let i=t!=="=="&&t!=="!=";return class uf{constructor(a,s,o,l){this.lhs=a,this.rhs=s,this.key=o,this.collator=l,this.type=Q,this.hasUntypedArgument=a.type.kind==="value"||s.type.kind==="value"}static parse(a,s){if(a.length!==3&&a.length!==4)return s.error("Expected two or three arguments.");let o=a[0],l=s.parse(a[1],1,H);if(!l)return null;if(!Dh(o,l.type))return s.concat(1).error(`"${o}" comparisons are not supported for type \'${mt(l.type)}\'.`);let u=s.parse(a[2],2,H);if(!u)return null;if(!Dh(o,u.type))return s.concat(2).error(`"${o}" comparisons are not supported for type \'${mt(u.type)}\'.`);if(l.type.kind!==u.type.kind&&l.type.kind!=="value"&&u.type.kind!=="value")return s.error(`Cannot compare types \'${mt(l.type)}\' and \'${mt(u.type)}\'.`);i&&(l.type.kind==="value"&&u.type.kind!=="value"?l=new Be(u.type,[l],s.key):l.type.kind!=="value"&&u.type.kind==="value"&&(u=new Be(l.type,[u],s.key)));let h=null;if(a.length===4){if(l.type.kind!=="string"&&u.type.kind!=="string"&&l.type.kind!=="value"&&u.type.kind!=="value")return s.error("Cannot use collator to compare non-string types.");if(h=s.parse(a[3],3,La),!h)return null}return new uf(l,u,s.key,h)}evaluate(a){let s=this.lhs.evaluate(a),o=this.rhs.evaluate(a);if(i&&this.hasUntypedArgument){let l=St(s),u=St(o);if(l.kind!==u.kind||l.kind!=="string"&&l.kind!=="number")throw new ft(`Expected arguments for "${t}" to be (string, string) or (number, number), but found (${l.kind}, ${u.kind}) instead.`,this.key)}if(this.collator&&!i&&this.hasUntypedArgument){let l=St(s),u=St(o);if(l.kind!=="string"||u.kind!=="string")return e(a,s,o)}return this.collator?r(a,s,o,this.collator.evaluate(a)):e(a,s,o)}eachChild(a){a(this.lhs),a(this.rhs),this.collator&&a(this.collator)}outputDefined(){return!0}}}var U0=li("==",C0,lf),q0=li("!=",M0,V0),j0=li("<",B0,O0),G0=li(">",P0,R0),X0=li("<=",z0,$0),Y0=li(">=",L0,N0),hf=class cf{constructor(e,r,i){this.type=La,this.locale=i,this.caseSensitive=e,this.diacriticSensitive=r}static parse(e,r){if(e.length!==2)return r.error("Expected one argument.");let i=e[1];if(typeof i!="object"||Array.isArray(i))return r.error("Collator options argument must be an object.");let n=r.parse(i["case-sensitive"]!==void 0&&i["case-sensitive"],1,Q);if(!n)return null;let a=r.parse(i["diacritic-sensitive"]!==void 0&&i["diacritic-sensitive"],1,Q);if(!a)return null;let s=null;return i.locale&&(s=r.parse(i.locale,1,W),!s)?null:new cf(n,a,s)}evaluate(e){return new wl(this.caseSensitive.evaluate(e),this.diacriticSensitive.evaluate(e),this.locale?this.locale.evaluate(e):null)}eachChild(e){e(this.caseSensitive),e(this.diacriticSensitive),this.locale&&e(this.locale)}outputDefined(){return!1}},W0=class pf{constructor(e,r,i,n,a,s){this.type=W,this.number=e,this.locale=r,this.currency=i,this.unit=n,this.minFractionDigits=a,this.maxFractionDigits=s}static parse(e,r){if(e.length!==3)return r.error("Expected two arguments.");let i=r.parse(e[1],1,I);if(!i)return null;let n=e[2];if(typeof n!="object"||Array.isArray(n))return r.error("NumberFormat options argument must be an object.");let a=null;if(n.locale&&(a=r.parse(n.locale,1,W),!a))return null;let s=null;if(n.currency&&(s=r.parse(n.currency,1,W),!s))return null;let o=null;if(n.unit&&(o=r.parse(n.unit,1,W),!o))return null;if(s&&o)return r.error("NumberFormat options `currency` and `unit` are mutually exclusive");let l=null;if(n["min-fraction-digits"]&&(l=r.parse(n["min-fraction-digits"],1,I),!l))return null;let u=null;return n["max-fraction-digits"]&&(u=r.parse(n["max-fraction-digits"],1,I),!u)?null:new pf(i,a,s,o,l,u)}evaluate(e){return new Intl.NumberFormat(this.locale?this.locale.evaluate(e):[],{style:this.currency?"currency":this.unit?"unit":"decimal",currency:this.currency?this.currency.evaluate(e):void 0,unit:this.unit?this.unit.evaluate(e):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(e):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(e):void 0}).format(this.number.evaluate(e))}eachChild(e){e(this.number),this.locale&&e(this.locale),this.currency&&e(this.currency),this.unit&&e(this.unit),this.minFractionDigits&&e(this.minFractionDigits),this.maxFractionDigits&&e(this.maxFractionDigits)}outputDefined(){return!1}},Z0=class ff{constructor(e){this.type=wn,this.input=e}static parse(e,r){if(e.length!==2)return r.error("Expected two arguments.");let i=r.parse(e[1],1,W);return i?new ff(i):r.error("No image name provided.")}evaluate(e){let r=this.input.evaluate(e),i=Se.fromString(r);return i&&e.availableImages&&(i.available=e.availableImages.indexOf(r)>-1),i}eachChild(e){e(this.input)}outputDefined(){return!1}},H0=class df{constructor(e,r){this.input=e,this.key=r,this.type=I}static parse(e,r){if(e.length!==2)return r.error(`Expected 1 argument, but found ${e.length-1} instead.`);let i=r.parse(e[1],1);return i?i.type.kind!=="array"&&i.type.kind!=="string"&&i.type.kind!=="value"?r.error(`Expected argument of type string or array, but found ${mt(i.type)} instead.`):new df(i,r.key):null}evaluate(e){let r=this.input.evaluate(e);if(typeof r=="string")return[...r].length;if(Array.isArray(r))return r.length;throw new ft(`Expected value to be of type string or array, but found ${mt(St(r))} instead.`,this.key)}eachChild(e){e(this.input)}outputDefined(){return!1}},_e=8192;function K0(t,e){let r=J0(t[0]),i=tm(t[1]),n=2**e.z;return[Math.round(r*n*_e),Math.round(i*n*_e)]}function _l(t,e){let r=2**e.z,i=(t[0]/_e+e.x)/r,n=(t[1]/_e+e.y)/r;return[Q0(i),em(n)]}function J0(t){return(180+t)/360}function Q0(t){return t*360-180}function tm(t){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+t*Math.PI/360)))/360}function em(t){return 360/Math.PI*Math.atan(Math.exp((180-t*360)*Math.PI/180))-90}function Dn(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[2]=Math.max(t[2],e[0]),t[3]=Math.max(t[3],e[1])}function an(t,e){return!(t[0]<=e[0]||t[2]>=e[2]||t[1]<=e[1]||t[3]>=e[3])}function rm(t,e,r){return e[1]>t[1]!=r[1]>t[1]&&t[0]<(r[0]-e[0])*(t[1]-e[1])/(r[1]-e[1])+e[0]}function im(t,e,r){let i=t[0]-e[0],n=t[1]-e[1],a=t[0]-r[0],s=t[1]-r[1];return i*s-a*n===0&&i*a<=0&&n*s<=0}function Ua(t,e,r,i){let n=[e[0]-t[0],e[1]-t[1]];return om([i[0]-r[0],i[1]-r[1]],n)!==0&&!!(_h(t,e,r,i)&&_h(r,i,t,e))}function nm(t,e,r){for(let i of r)for(let n=0;n0&&c<0||h<0&&c>0}function Al(t,e,r){let i=[];for(let n=0;nr[2]){let n=i*.5,a=t[0]-r[0]>n?-i:r[0]-t[0]>n?i:0;a===0&&(a=t[0]-r[2]>n?-i:r[2]-t[0]>n?i:0),t[0]+=a}Dn(e,t)}function lm(t){t[0]=t[1]=1/0,t[2]=t[3]=-1/0}function Ah(t,e,r,i){let n=2**i.z*_e,a=[i.x*_e,i.y*_e],s=[];for(let o of t)for(let l of o){let u=[l.x+a[0],l.y+a[1]];gf(u,e,r,n),s.push(u)}return s}function Sh(t,e,r,i){let n=2**i.z*_e,a=[i.x*_e,i.y*_e],s=[];for(let o of t){let l=[];for(let u of o){let h=[u.x+a[0],u.y+a[1]];Dn(e,h),l.push(h)}s.push(l)}if(e[2]-e[0]<=n/2){lm(e);for(let o of s)for(let l of o)gf(l,e,r,n)}return s}function um(t,e){let r=[1/0,1/0,-1/0,-1/0],i=[1/0,1/0,-1/0,-1/0],n=t.canonicalID();if(e.type==="Polygon"){let a=Al(e.coordinates,i,n),s=Ah(t.geometry(),r,i,n);if(!an(r,i))return!1;for(let o of s)if(!ui(o,a))return!1}if(e.type==="MultiPolygon"){let a=mf(e.coordinates,i,n),s=Ah(t.geometry(),r,i,n);if(!an(r,i))return!1;for(let o of s)if(!am(o,a))return!1}return!0}function hm(t,e){let r=[1/0,1/0,-1/0,-1/0],i=[1/0,1/0,-1/0,-1/0],n=t.canonicalID();if(e.type==="Polygon"){let a=Al(e.coordinates,i,n),s=Sh(t.geometry(),r,i,n);if(!an(r,i))return!1;for(let o of s)if(!yf(o,a))return!1}if(e.type==="MultiPolygon"){let a=mf(e.coordinates,i,n),s=Sh(t.geometry(),r,i,n);if(!an(r,i))return!1;for(let o of s)if(!sm(o,a))return!1}return!0}var Sl=class pa{constructor(e,r){this.type=Q,this.geojson=e,this.geometries=r}static parse(e,r){if(e.length!==2)return r.error(`\'within\' expression requires exactly one argument, but found ${e.length-1} instead.`);if(ei(e[1])){let i=e[1];if(i.type==="FeatureCollection"){let n=[];for(let a of i.features){let{type:s,coordinates:o}=a.geometry;s==="Polygon"&&n.push(o),s==="MultiPolygon"&&n.push(...o)}if(n.length)return new pa(i,{type:"MultiPolygon",coordinates:n})}else if(i.type==="Feature"){let n=i.geometry.type;if(n==="Polygon"||n==="MultiPolygon")return new pa(i,i.geometry)}else if(i.type==="Polygon"||i.type==="MultiPolygon")return new pa(i,i)}return r.error("\'within\' expression requires valid geojson object that contains polygon geometry type.")}evaluate(e){if(e.geometry()!=null&&e.canonicalID()!=null){if(e.geometryType()==="Point")return um(e,this.geometries);if(e.geometryType()==="LineString")return hm(e,this.geometries)}return!1}eachChild(){}outputDefined(){return!0}},xf=class{constructor(t=[],e=(r,i)=>ri)){if(this.data=t,this.length=this.data.length,this.compare=e,this.length>0)for(let r=(this.length>>1)-1;r>=0;r--)this._down(r)}push(t){this.data.push(t),this._up(this.length++)}pop(){if(this.length===0)return;let t=this.data[0],e=this.data.pop();return--this.length>0&&(this.data[0]=e,this._down(0)),t}peek(){return this.data[0]}_up(t){let{data:e,compare:r}=this,i=e[t];for(;t>0;){let n=t-1>>1,a=e[n];if(r(i,a)>=0)break;e[t]=a,t=n}e[t]=i}_down(t){let{data:e,compare:r}=this,i=this.length>>1,n=e[t];for(;t=0)break;e[t]=e[a],t=a}e[t]=n}},Eh=Math.PI/180,El=class{constructor(t){let e=Eh*6378.137*1e3,r=Math.cos(t*Eh),i=1/(1-.0066943799901413165*(1-r*r)),n=Math.sqrt(i);this.kx=e*n*r,this.ky=e*n*i*.9933056200098587}distance(t,e){let r=this.wrap(t[0]-e[0])*this.kx,i=(t[1]-e[1])*this.ky;return Math.sqrt(r*r+i*i)}pointOnLine(t,e){let r=1/0,i,n,a,s;for(let o=0;o1?(l=t[o+1][0],u=t[o+1][1]):p>0&&(l+=h/this.kx*p,u+=c/this.ky*p)),h=this.wrap(e[0]-l)*this.kx,c=(e[1]-u)*this.ky;let f=h*h+c*c;f180;)t-=360;return t}};function vf(t,e){return e[0]-t[0]}function va(t){return t[1]-t[0]+1}function Ve(t,e){return t[1]>=t[0]&&t[1]t[1])return[null,null];let r=va(t);if(e){if(r===2)return[t,null];let n=Math.floor(r/2);return[[t[0],t[0]+n],[t[0]+n,t[1]]]}if(r===1)return[t,null];let i=Math.floor(r/2)-1;return[[t[0],t[0]+i],[t[0]+i+1,t[1]]]}function lo(t,e){if(!Ve(e,t.length))return[1/0,1/0,-1/0,-1/0];let r=[1/0,1/0,-1/0,-1/0];for(let i=e[0];i<=e[1];++i)Dn(r,t[i]);return r}function uo(t){let e=[1/0,1/0,-1/0,-1/0];for(let r of t)for(let i of r)Dn(e,i);return e}function Fh(t){return t[0]!==-1/0&&t[1]!==-1/0&&t[2]!==1/0&&t[3]!==1/0}function Fl(t,e,r){if(!Fh(t)||!Fh(e))return NaN;let i=0,n=0;return t[2]e[2]&&(i=t[0]-e[2]),t[1]>e[3]&&(n=t[1]-e[3]),t[3]=i)return i;if(an(n,a)){if(Th(t,e))return 0}else if(Th(e,t))return 0;let s=1/0;for(let o of t)for(let l=0,u=o.length,h=u-1;l0;){let l=s.pop();if(l[0]>=a)continue;let u=l[1],h=e?50:100;if(va(u)<=h){if(!Ve(u,t.length))return NaN;if(e){let c=dm(t,u,r,i);if(isNaN(c)||c===0)return c;a=Math.min(a,c)}else for(let c=u[0];c<=u[1];++c){let p=fm(t[c],r,i);if(a=Math.min(a,p),a===0)return 0}}else{let c=oo(u,e);kh(s,a,i,t,o,c[0]),kh(s,a,i,t,o,c[1])}}return a}function wa(t,e,r,i,n,a=1/0){let s=Math.min(a,n.distance(t[0],r[0]));if(s===0)return s;let o=new xf([[0,[0,t.length-1],[0,r.length-1]]],vf);for(;o.length>0;){let l=o.pop();if(l[0]>=s)continue;let u=l[1],h=l[2],c=e?50:100,p=i?50:100;if(va(u)<=c&&va(h)<=p){if(!Ve(u,t.length)&&Ve(h,r.length))return NaN;let f;if(e&&i)f=cm(t,u,r,h,n),s=Math.min(s,f);else if(e&&!i){let d=t.slice(u[0],u[1]+1);for(let y=h[0];y<=h[1];++y)if(f=dr(r[y],d,n),s=Math.min(s,f),s===0)return s}else if(!e&&i){let d=r.slice(h[0],h[1]+1);for(let y=u[0];y<=u[1];++y)if(f=dr(t[y],d,n),s=Math.min(s,f),s===0)return s}else f=pm(t,u,r,h,n),s=Math.min(s,f)}else{let f=oo(u,e),d=oo(h,i);Zn(o,s,n,t,r,f[0],d[0]),Zn(o,s,n,t,r,f[0],d[1]),Zn(o,s,n,t,r,f[1],d[0]),Zn(o,s,n,t,r,f[1],d[1])}}return s}function mm(t,e){let r=t.geometry(),i=r.flat().map(s=>_l([s.x,s.y],t.canonical));if(r.length===0)return NaN;let n=new El(i[0][1]),a=1/0;for(let s of e){switch(s.type){case"Point":a=Math.min(a,wa(i,!1,[s.coordinates],!1,n,a));break;case"LineString":a=Math.min(a,wa(i,!1,s.coordinates,!0,n,a));break;case"Polygon":a=Math.min(a,ba(i,!1,s.coordinates,n,a))}if(a===0)return a}return a}function gm(t,e){let r=t.geometry(),i=r.flat().map(s=>_l([s.x,s.y],t.canonical));if(r.length===0)return NaN;let n=new El(i[0][1]),a=1/0;for(let s of e){switch(s.type){case"Point":a=Math.min(a,wa(i,!0,[s.coordinates],!1,n,a));break;case"LineString":a=Math.min(a,wa(i,!0,s.coordinates,!0,n,a));break;case"Polygon":a=Math.min(a,ba(i,!0,s.coordinates,n,a))}if(a===0)return a}return a}function xm(t,e){let r=t.geometry();if(r.length===0||r[0].length===0)return NaN;let i=Na(r,0).map(s=>s.map(o=>o.map(l=>_l([l.x,l.y],t.canonical)))),n=new El(i[0][0][0][1]),a=1/0;for(let s of e)for(let o of i){switch(s.type){case"Point":a=Math.min(a,ba([s.coordinates],!1,o,n,a));break;case"LineString":a=Math.min(a,ba(s.coordinates,!0,o,n,a));break;case"Polygon":a=Math.min(a,ym(o,s.coordinates,n,a))}if(a===0)return a}return a}function Vs(t){return t.type==="MultiPolygon"?t.coordinates.map(e=>({type:"Polygon",coordinates:e})):t.type==="MultiLineString"?t.coordinates.map(e=>({type:"LineString",coordinates:e})):t.type==="MultiPoint"?t.coordinates.map(e=>({type:"Point",coordinates:e})):[t]}var kl=class fa{constructor(e,r){this.type=I,this.geojson=e,this.geometries=r}static parse(e,r){if(e.length!==2)return r.error(`\'distance\' expression requires exactly one argument, but found ${e.length-1} instead.`);if(ei(e[1])){let i=e[1];if(i.type==="FeatureCollection")return new fa(i,i.features.map(n=>Vs(n.geometry)).flat());if(i.type==="Feature")return new fa(i,Vs(i.geometry));if("type"in i&&"coordinates"in i)return new fa(i,Vs(i))}return r.error("\'distance\' expression requires valid geojson object that contains polygon geometry type.")}evaluate(e){if(e.geometry()!=null&&e.canonicalID()!=null){if(e.geometryType()==="Point")return mm(e,this.geometries);if(e.geometryType()==="LineString")return gm(e,this.geometries);if(e.geometryType()==="Polygon")return xm(e,this.geometries)}return NaN}eachChild(){}outputDefined(){return!0}},vm=class bf{constructor(e){let r=null;for(let i of e)if(!r)r=i.type;else{if(r===i.type)continue;r=H;break}this.type=Ut(r!=null?r:H,e.length),this.arr=e}static parse(e,r){if(e.length!==2)return r.error(`\'semiliteral\' expression requires exactly one argument, but found ${e.length-1} instead.`);if(!ei(e[1]))return r.error(`invalid value of type "${typeof e[1]}"`);let i=e[1],n=St(i);if(n.kind==="array"){let a=i,s=r.concat(1),o=[];for(let l=0;lr.evaluate(e))}eachChild(e){this.arr.forEach(e)}outputDefined(){return this.arr.every(e=>e.outputDefined())}},Il=class wf{constructor(e){this.key=e,this.type=H}static parse(e,r){if(e.length!==2)return r.error(`Expected 1 argument, but found ${e.length-1} instead.`);let i=e[1];return i==null?r.error("Global state property must be defined."):typeof i=="string"?new wf(i):r.error(`Global state property must be string, but found ${typeof e[1]} instead.`)}evaluate(e){var i,n;let r=(i=e.globals)==null?void 0:i.globalState;return!r||Object.keys(r).length===0?null:(n=Yi(r,this.key))!=null?n:null}eachChild(){}outputDefined(){return!1}},Yr={"==":U0,"!=":q0,">":G0,"<":j0,">=":Y0,"<=":X0,array:Be,at:S0,boolean:Be,case:k0,coalesce:of,collator:hf,format:Yp,image:Z0,in:E0,"index-of":F0,interpolate:De,"interpolate-hcl":De,"interpolate-lab":De,length:H0,let:Jp,literal:ri,match:T0,number:Be,"number-format":W0,object:Be,semiliteral:vm,slice:I0,step:Dl,string:Be,"to-boolean":jr,"to-color":jr,"to-number":jr,"to-string":jr,var:tf,within:Sl,distance:kl,"global-state":Il},ve=class extends Error{constructor(t,e){super(e),this.message=e,this.key=t}},bm=class Df{constructor(e,r=[]){this.parent=e,this.bindings={};for(let[i,n]of r)this.bindings[i]=n}concat(e){return new Df(this,e)}get(e){if(this.bindings[e])return this.bindings[e];if(this.parent)return this.parent.get(e);throw Error(`${e} not found in scope.`)}has(e){return this.bindings[e]?!0:this.parent?this.parent.has(e):!1}},_f=class Af{constructor(e,r,i=[],n,a=new bm,s=[]){this.registry=e,this.path=i,this.key=i.map(o=>`[${o}]`).join(""),this.scope=a,this.errors=s,this.expectedType=n,this._isConstant=r}parse(e,r,i,n,a={}){return r==null?this._parse(e,a):this.concat(r,i,n)._parse(e,a)}_parse(e,r){(e===null||typeof e=="string"||typeof e=="boolean"||typeof e=="number")&&(e=["literal",e]);let i=this.key;function n(a,s,o){return o==="assert"?new Be(s,[a],i):o==="coerce"?new jr(s,[a],i):a}if(Array.isArray(e)){if(e.length===0)return this.error(\'Expected an array with at least one element. If you wanted a literal array, use ["literal", []].\');let a=e[0];if(typeof a!="string")return this.error(`Expression name must be a string, but found ${typeof a} instead. If you wanted a literal array, use ["literal", [...]].`,0),null;let s=this.registry[a];if(s){let o=s.parse(e,this);if(!o)return null;if(this.expectedType){let l=this.expectedType,u=o.type;if((l.kind==="string"||l.kind==="number"||l.kind==="boolean"||l.kind==="object"||l.kind==="array")&&u.kind==="value")o=n(o,l,r.typeAnnotation||"assert");else if(l.kind==="projectionDefinition"&&["string","array","value"].includes(u.kind)||["color","formatted","resolvedImage"].includes(l.kind)&&["value","string"].includes(u.kind)||["padding","numberArray"].includes(l.kind)&&["value","number","array"].includes(u.kind)||l.kind==="colorArray"&&["value","string","array"].includes(u.kind)||l.kind==="variableAnchorOffsetCollection"&&["value","array"].includes(u.kind))o=n(o,l,r.typeAnnotation||"coerce");else if(this.checkSubtype(l,u))return null}if(!(o instanceof ri)&&o.type.kind!=="resolvedImage"&&this._isConstant(o)){let l=new Gp;try{o=new ri(o.type,o.evaluate(l))}catch(u){return this.error(u.message),null}}return o}return this.error(`Unknown expression "${a}". If you wanted a literal array, use ["literal", [...]].`,0)}return e===void 0?this.error("\'undefined\' value invalid. Use null instead."):typeof e=="object"?this.error(\'Bare objects invalid. Use ["literal", {...}] instead.\'):this.error(`Expected an array, but found ${typeof e} instead.`)}concat(e,r,i){let n=typeof e=="number"?this.path.concat(e):this.path,a=i?this.scope.concat(i):this.scope;return new Af(this.registry,this._isConstant,n,r||null,a,this.errors)}error(e,...r){let i=`${this.key}${r.map(n=>`[${n}]`).join("")}`;this.errors.push(new ve(i,e))}checkSubtype(e,r){let i=nn(e,r);return i&&this.error(i),i}},Er=class Ui{constructor(e,r,i,n,a){this.name=e,this.type=r,this._evaluate=i,this.args=n,this.key=a}evaluate(e){return this._evaluate(e,this.args,this.key)}eachChild(e){this.args.forEach(e)}outputDefined(){return!1}static parse(e,r){let i=e[0],n=Ui.definitions[i];if(!n)return r.error(`Unknown expression "${i}". If you wanted a literal array, use ["literal", [...]].`,0);let a=Array.isArray(n)?n[0]:n.type,s=Array.isArray(n)?[[n[1],n[2]]]:n.overloads,o=s.filter(([u])=>!Array.isArray(u)||u.length===e.length-1),l=null;for(let[u,h]of o){l=new _f(r.registry,Da,r.path,null,r.scope);let c=[],p=!1;for(let f=1;fDm(c)).join(" | "),h=[];for(let c=1;c>1;if(e[n]===t)return!0;e[n]>t?i=n-1:r=n+1}return!1}function hr(t){return{type:t}}Er.register(Yr,{error:[o0,[W],(t,[e],r)=>{throw new ft(e.evaluate(t),r)}],typeof:[W,[H],(t,[e])=>mt(St(e.evaluate(t)))],"to-rgba":[Ut(I,4),[pe],(t,[e])=>{let[r,i,n,a]=e.evaluate(t).rgb;return[r*255,i*255,n*255,a]}],rgb:[pe,[I,I,I],Ih],rgba:[pe,[I,I,I,I],Ih],has:{type:Q,overloads:[[[W],(t,[e])=>Ch(e.evaluate(t),t.properties())],[[W,mr],(t,[e,r])=>Ch(e.evaluate(t),r.evaluate(t))]]},get:{type:H,overloads:[[[W],(t,[e])=>Os(e.evaluate(t),t.properties())],[[W,mr],(t,[e,r])=>Os(e.evaluate(t),r.evaluate(t))]]},"feature-state":[H,[W],(t,[e])=>Os(e.evaluate(t),t.featureState||{})],properties:[mr,[],t=>t.properties()],"geometry-type":[W,[],t=>t.geometryType()],id:[H,[],t=>t.id()],zoom:[I,[],t=>t.globals.zoom],"heatmap-density":[I,[],t=>t.globals.heatmapDensity||0],elevation:[I,[],t=>t.globals.elevation||0],"line-progress":[I,[],t=>t.globals.lineProgress||0],accumulated:[H,[],t=>t.globals.accumulated===void 0?null:t.globals.accumulated],"+":[I,hr(I),(t,e)=>{let r=0;for(let i of e)r+=i.evaluate(t);return r}],"*":[I,hr(I),(t,e)=>{let r=1;for(let i of e)r*=i.evaluate(t);return r}],"-":{type:I,overloads:[[[I,I],(t,[e,r])=>e.evaluate(t)-r.evaluate(t)],[[I],(t,[e])=>-e.evaluate(t)]]},"/":[I,[I,I],(t,[e,r])=>e.evaluate(t)/r.evaluate(t)],"%":[I,[I,I],(t,[e,r])=>e.evaluate(t)%r.evaluate(t)],ln2:[I,[],()=>Math.LN2],pi:[I,[],()=>Math.PI],e:[I,[],()=>Math.E],"^":[I,[I,I],(t,[e,r])=>e.evaluate(t)**+r.evaluate(t)],sqrt:[I,[I],(t,[e])=>Math.sqrt(e.evaluate(t))],log10:[I,[I],(t,[e])=>Math.log(e.evaluate(t))/Math.LN10],ln:[I,[I],(t,[e])=>Math.log(e.evaluate(t))],log2:[I,[I],(t,[e])=>Math.log(e.evaluate(t))/Math.LN2],sin:[I,[I],(t,[e])=>Math.sin(e.evaluate(t))],cos:[I,[I],(t,[e])=>Math.cos(e.evaluate(t))],tan:[I,[I],(t,[e])=>Math.tan(e.evaluate(t))],asin:[I,[I],(t,[e])=>Math.asin(e.evaluate(t))],acos:[I,[I],(t,[e])=>Math.acos(e.evaluate(t))],atan:[I,[I],(t,[e])=>Math.atan(e.evaluate(t))],min:[I,hr(I),(t,e)=>Math.min(...e.map(r=>r.evaluate(t)))],max:[I,hr(I),(t,e)=>Math.max(...e.map(r=>r.evaluate(t)))],abs:[I,[I],(t,[e])=>Math.abs(e.evaluate(t))],round:[I,[I],(t,[e])=>{let r=e.evaluate(t);return r<0?-Math.round(-r):Math.round(r)}],floor:[I,[I],(t,[e])=>Math.floor(e.evaluate(t))],ceil:[I,[I],(t,[e])=>Math.ceil(e.evaluate(t))],"filter-==":[Q,[W,H],(t,[e,r])=>t.properties()[e.value]===r.value],"filter-id-==":[Q,[H],(t,[e])=>t.id()===e.value],"filter-type-==":[Q,[W],(t,[e])=>t.geometryType()===e.value],"filter-<":[Q,[W,H],(t,[e,r])=>{let i=t.properties()[e.value],n=r.value;return typeof i==typeof n&&i{let r=t.id(),i=e.value;return typeof r==typeof i&&r":[Q,[W,H],(t,[e,r])=>{let i=t.properties()[e.value],n=r.value;return typeof i==typeof n&&i>n}],"filter-id->":[Q,[H],(t,[e])=>{let r=t.id(),i=e.value;return typeof r==typeof i&&r>i}],"filter-<=":[Q,[W,H],(t,[e,r])=>{let i=t.properties()[e.value],n=r.value;return typeof i==typeof n&&i<=n}],"filter-id-<=":[Q,[H],(t,[e])=>{let r=t.id(),i=e.value;return typeof r==typeof i&&r<=i}],"filter->=":[Q,[W,H],(t,[e,r])=>{let i=t.properties()[e.value],n=r.value;return typeof i==typeof n&&i>=n}],"filter-id->=":[Q,[H],(t,[e])=>{let r=t.id(),i=e.value;return typeof r==typeof i&&r>=i}],"filter-has":[Q,[H],(t,[e])=>{let r=e.value,i=t.properties();return r in i&&i[r]!==void 0}],"filter-has-id":[Q,[],t=>t.id()!==null&&t.id()!==void 0],"filter-type-in":[Q,[Ut(W)],(t,[e])=>e.value.indexOf(t.geometryType())>=0],"filter-id-in":[Q,[Ut(H)],(t,[e])=>e.value.indexOf(t.id())>=0],"filter-in-small":[Q,[W,Ut(H)],(t,[e,r])=>r.value.indexOf(t.properties()[e.value])>=0],"filter-in-large":[Q,[W,Ut(H)],(t,[e,r])=>wm(t.properties()[e.value],r.value,0,r.value.length-1)],all:{type:Q,overloads:[[[Q,Q],(t,[e,r])=>e.evaluate(t)&&r.evaluate(t)],[hr(Q),(t,e)=>{for(let r of e)if(!r.evaluate(t))return!1;return!0}]]},any:{type:Q,overloads:[[[Q,Q],(t,[e,r])=>e.evaluate(t)||r.evaluate(t)],[hr(Q),(t,e)=>{for(let r of e)if(r.evaluate(t))return!0;return!1}]]},"!":[Q,[Q],(t,[e])=>!e.evaluate(t)],"is-supported-script":[Q,[W],(t,[e])=>{let r=t.globals&&t.globals.isSupportedScript;return!r||r(e.evaluate(t))}],upcase:[W,[W],(t,[e])=>e.evaluate(t).toUpperCase()],downcase:[W,[W],(t,[e])=>e.evaluate(t).toLowerCase()],concat:[W,hr(H),(t,e)=>e.map(r=>Wi(r.evaluate(t))).join("")],split:[Ut(W),[W,W],(t,[e,r])=>e.evaluate(t).split(r.evaluate(t))],join:[W,[Ut(W),W],(t,[e,r])=>e.evaluate(t).join(r.evaluate(t))],"resolved-locale":[W,[La],(t,[e])=>e.evaluate(t).resolvedLocale()]});function Dm(t){return Array.isArray(t)?`(${t.map(mt).join(", ")})`:`(${mt(t.type)}...)`}function Da(t){if(t instanceof tf)return Da(t.boundExpression);if(t instanceof Er&&t.name==="error"||t instanceof hf||t instanceof Sl||t instanceof kl||t instanceof Il)return!1;let e=t instanceof jr||t instanceof Be,r=!0;return t.eachChild(i=>{r&&(r=e?Da(i):i instanceof ri)}),r?qa(t)&&ja(t,["zoom","heatmap-density","elevation","line-progress","accumulated","is-supported-script"]):!1}function qa(t){if(t instanceof Er&&(t.name==="get"&&t.args.length===1||t.name==="feature-state"||t.name==="has"&&t.args.length===1||t.name==="properties"||t.name==="geometry-type"||t.name==="id"||/^filter-/.test(t.name))||t instanceof Sl||t instanceof kl)return!1;let e=!0;return t.eachChild(r=>{e&&!qa(r)&&(e=!1)}),e}function sn(t){if(t instanceof Er&&t.name==="feature-state")return!1;let e=!0;return t.eachChild(r=>{e&&!sn(r)&&(e=!1)}),e}function ja(t,e){if(t instanceof Er&&e.indexOf(t.name)>=0)return!1;let r=!0;return t.eachChild(i=>{r&&!ja(i,e)&&(r=!1)}),r}function ii(t){return t["property-type"]==="data-driven"||t["property-type"]==="cross-faded-data-driven"}function Sf(t){return!!t.expression&&t.expression.parameters.indexOf("zoom")>-1}function Cl(t){return!!t.expression&&t.expression.interpolated}var Ml=/^(.*)-transition$/;function on(t,...e){for(let r of e)for(let i in r)t[i]=r[i];return t}function J(t){return t instanceof Number?"number":t instanceof String?"string":t instanceof Boolean?"boolean":Array.isArray(t)?"array":t===null?"null":typeof t}function Ga(t){return typeof t=="object"&&!!t&&!Array.isArray(t)&&St(t)===mr}function _m(t){return t}function Am(t){switch(t.type){case"color":return xt.parse;case"padding":return Ee.parse;case"numberArray":return Fe.parse;case"colorArray":return ue.parse;default:return null}}function Sm(t){switch(t){case"exponential":return Ff;case"interval":return Fm;case"categorical":return Em;case"identity":return Tm;default:throw Error(`Unknown function type "${t}"`)}}function Ef(t,e){let r=t.stops&&typeof t.stops[0][0]=="object",i=r||t.property!==void 0,n=r||!i,a=t.type||(Cl(e)?"exponential":"interval"),s=Am(e);if(s&&(t=on({},t),t.stops&&(t.stops=t.stops.map(h=>[h[0],s(h[1])])),t.default?t.default=s(t.default):t.default=s(e.default)),t.colorSpace&&!g0(t.colorSpace))throw Error(`Unknown color space: "${t.colorSpace}"`);let o=Sm(a),l,u;if(a==="categorical"){l=Object.create(null);for(let h of t.stops)l[h[0]]=h[1];u=typeof t.stops[0][0]}if(r){let h={},c=[];for(let d=0;dd[0]),evaluate({zoom:d},y){return Ff({stops:p,base:t.base},e,d).evaluate(d,y)}}}if(n){let h=a==="exponential"?{name:"exponential",base:t.base===void 0?1:t.base}:null;return{kind:"camera",interpolationType:h,interpolationFactor:De.interpolationFactor.bind(void 0,h),zoomStops:t.stops.map(c=>c[0]),evaluate:({zoom:c})=>o(t,e,c,l,u)}}return{kind:"source",evaluate(h,c){let p=c&&c.properties?c.properties[t.property]:void 0;return p===void 0?_n(t.default,e.default):o(t,e,p,l,u)}}}function _n(t,e,r){if(t!==void 0)return t;if(e!==void 0)return e;if(r!==void 0)return r}function Em(t,e,r,i,n){return _n(typeof r===n?i[r]:void 0,t.default,e.default)}function Fm(t,e,r){if(J(r)!=="number")return _n(t.default,e.default);let i=t.stops.length;if(i===1||r<=t.stops[0][0])return t.stops[0][1];if(r>=t.stops[i-1][0])return t.stops[i-1][1];let n=$a(t.stops.map(a=>a[0]),r,"");return t.stops[n][1]}function Ff(t,e,r){let i=t.base===void 0?1:t.base;if(J(r)!=="number")return _n(t.default,e.default);let n=t.stops.length;if(n===1||r<=t.stops[0][0])return t.stops[0][1];if(r>=t.stops[n-1][0])return t.stops[n-1][1];let a=$a(t.stops.map(h=>h[0]),r,""),s=km(r,i,t.stops[a][0],t.stops[a+1][0]),o=t.stops[a][1],l=t.stops[a+1][1],u=br[e.type]||_m;return typeof o.evaluate=="function"?{evaluate(...h){let c=o.evaluate.apply(void 0,h),p=l.evaluate.apply(void 0,h);if(c!==void 0&&p!==void 0)return u(c,p,s,t.colorSpace)}}:u(o,l,s,t.colorSpace)}function Tm(t,e,r){switch(e.type){case"color":r=xt.parse(r);break;case"formatted":r=Le.fromString(r.toString());break;case"resolvedImage":r=Se.fromString(r.toString());break;case"padding":r=Ee.parse(r);break;case"colorArray":r=ue.parse(r);break;case"numberArray":r=Fe.parse(r);break;default:J(r)!==e.type&&(e.type!=="enum"||!e.values[r])&&(r=void 0)}return _n(r,t.default,e.default)}function km(t,e,r,i){let n=i-r,a=t-r;return n===0?0:e===1?a/n:(e**+a-1)/(e**+n-1)}function ho(t){return{result:"success",value:t}}function Nr(t){return{result:"error",value:t}}var Bl=class{constructor(t,e,r,i){this.expression=t,this._warningHistory={},this._evaluator=new Gp,this._defaultValue=r?Bf(r):null,this._enumValues=r&&r.type==="enum"?r.values:null,this._globalState=i,this._rootKey=e}evaluateWithoutErrorHandling(t,e,r,i,n,a){return this._globalState&&(t=ni(t,this._globalState)),this._evaluator.globals=t,this._evaluator.feature=e,this._evaluator.featureState=r,this._evaluator.canonical=i,this._evaluator.availableImages=n||null,this._evaluator.formattedSection=a,this.expression.evaluate(this._evaluator)}evaluate(t,e,r,i,n,a){this._globalState&&(t=ni(t,this._globalState)),this._evaluator.globals=t,this._evaluator.feature=e||null,this._evaluator.featureState=r||null,this._evaluator.canonical=i,this._evaluator.availableImages=n||null,this._evaluator.formattedSection=a||null;try{let s=this.expression.evaluate(this._evaluator);if(s==null||typeof s=="number"&&s!==s)return this._defaultValue;if(this._enumValues&&!(s in this._enumValues))throw new ft(`Expected value to be one of ${Object.keys(this._enumValues).map(o=>JSON.stringify(o)).join(", ")}, but found ${JSON.stringify(s)} instead.`,"");return s}catch(s){let o=s instanceof ft?s.path:"",l=`${o}|${s.message}`;return this._warningHistory[l]||(this._warningHistory[l]=!0,typeof console<"u"&&console.warn(Tf(this._rootKey,o,s.message,this._defaultValue))),this._defaultValue}}};function Tf(t,e,r,i){return`${t}${e}: ${r}${i==null?"":` Falling back to ${String(i)}.`}`}function kf(t){if(!t)throw Error(\'rootKey must identify the location of the expression in the style JSON, e.g. "layers[3].paint.line-width".\')}function Xa(t){return Array.isArray(t)&&t.length>0&&typeof t[0]=="string"&&t[0]in Yr}function ar(t,e,r,i){kf(e);let n=new _f(Yr,Da,[],r?Mm(r):void 0),a=n.parse(t,void 0,void 0,void 0,r&&r.type==="string"?{typeAnnotation:"coerce"}:void 0);return a?ho(new Bl(a,e,r,i)):Nr(n.errors)}var ln=class{constructor(t,e,r){this.kind=t,this._styleExpression=e,this.isStateDependent=t!=="constant"&&!sn(e.expression),this.globalStateRefs=An(e.expression),this._globalState=r}evaluateWithoutErrorHandling(t,e,r,i,n,a){return this._globalState&&(t=ni(t,this._globalState)),this._styleExpression.evaluateWithoutErrorHandling(t,e,r,i,n,a)}evaluate(t,e,r,i,n,a){return this._globalState&&(t=ni(t,this._globalState)),this._styleExpression.evaluate(t,e,r,i,n,a)}},_a=class{constructor(t,e,r,i,n){this.kind=t,this.zoomStops=r,this._styleExpression=e,this.isStateDependent=t!=="camera"&&!sn(e.expression),this.globalStateRefs=An(e.expression),this.interpolationType=i,this._globalState=n}evaluateWithoutErrorHandling(t,e,r,i,n,a){return this._globalState&&(t=ni(t,this._globalState)),this._styleExpression.evaluateWithoutErrorHandling(t,e,r,i,n,a)}evaluate(t,e,r,i,n,a){return this._globalState&&(t=ni(t,this._globalState)),this._styleExpression.evaluate(t,e,r,i,n,a)}interpolationFactor(t,e,r){return this.interpolationType?De.interpolationFactor(this.interpolationType,t,e,r):0}};function Im(t){return t._styleExpression!==void 0}function If(t,e,r,i){let n=ar(t,e,r,i);if(n.result==="error")return n;let a=n.value.expression,s=qa(a);if(!s&&!ii(r))return Nr([new ve("","data expressions not supported")]);let o=ja(a,["zoom"]);if(!o&&!Sf(r))return Nr([new ve("","zoom expressions not supported")]);let l=da(a);if(!l&&!o)return Nr([new ve("",\'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.\')]);if(l instanceof ve)return Nr([l]);if(l instanceof De&&!Cl(r))return Nr([new ve("",\'"interpolate" expressions cannot be used with this property\')]);if(!l)return ho(s?new ln("constant",n.value,i):new ln("source",n.value,i));let u=l instanceof De?l.interpolation:void 0;return ho(s?new _a("camera",n.value,l.labels,u,i):new _a("composite",n.value,l.labels,u,i))}var Cf=class Mf{constructor(e,r,i){this.isStateDependent=!1,this.globalStateRefs=new Set,this._globalState=null,kf(r),this._parameters=e,this._specification=i,this._rootKey=r,this._defaultValue=Bf(i),this._warningHistory={};let n=Ef(this._parameters,this._specification);this.kind=n.kind,this.interpolationFactor=n.interpolationFactor,this.zoomStops=n.zoomStops,this.interpolationType=n.interpolationType,this._innerEvaluate=n.evaluate}evaluate(e,r){try{return this._innerEvaluate(e,r)}catch(i){let n=i instanceof Error?i.message:String(i),a=`|${n}`;return this._warningHistory[a]||(this._warningHistory[a]=!0,typeof console<"u"&&console.warn(Tf(this._rootKey,"",n,this._defaultValue))),this._defaultValue}}static deserialize(e){return new Mf(e._parameters,e._rootKey,e._specification)}static serialize(e){return{_parameters:e._parameters,_specification:e._specification,_rootKey:e._rootKey}}};function Cm(t,e,r,i){if(Ga(t))return new Cf(t,e,r);if(Xa(t)){let n=If(t,e,r,i);if(n.result==="error")throw Error(n.value.map(a=>`${a.key}: ${a.message}`).join(", "));return n.value}{let n=t;return r.type==="color"&&typeof t=="string"?n=xt.parse(t):r.type==="padding"&&(typeof t=="number"||Array.isArray(t))?n=Ee.parse(t):r.type==="numberArray"&&(typeof t=="number"||Array.isArray(t))?n=Fe.parse(t):r.type==="colorArray"&&(typeof t=="string"||Array.isArray(t))?n=ue.parse(t):r.type==="variableAnchorOffsetCollection"&&Array.isArray(t)?n=Ae.parse(t):r.type==="projectionDefinition"&&typeof t=="string"&&(n=Sr.parse(t)),{globalStateRefs:new Set,_globalState:null,kind:"constant",evaluate:()=>n}}}function da(t){let e=null;if(t instanceof Jp)e=da(t.result);else if(t instanceof of){for(let r of t.args)if(e=da(r),e)break}else(t instanceof Dl||t instanceof De)&&t.input instanceof Er&&t.input.name==="zoom"&&(e=t);return e instanceof ve||t.eachChild(r=>{let i=da(r);i instanceof ve?e=i:!e&&i?e=new ve("",\'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.\'):e&&i&&e!==i&&(e=new ve("",\'Only one zoom-based "step" or "interpolate" subexpression may be used in an expression.\'))}),e}function An(t,e=new Set){return t instanceof Il&&e.add(t.key),t.eachChild(r=>{An(r,e)}),e}function Mm(t){let e={color:pe,string:W,number:I,enum:W,boolean:Q,formatted:bn,padding:Va,numberArray:Oa,colorArray:rn,projectionDefinition:za,resolvedImage:wn,variableAnchorOffsetCollection:Ra};return t.type==="array"?Ut(e[t.value]||H,t.length):e[t.type]}function Bf(t){if(t.type==="color"&&Ga(t.default))return new xt(0,0,0,0);switch(t.type){case"color":return xt.parse(t.default)||null;case"padding":return Ee.parse(t.default)||null;case"numberArray":return Fe.parse(t.default)||null;case"colorArray":return ue.parse(t.default)||null;case"variableAnchorOffsetCollection":return Ae.parse(t.default)||null;case"projectionDefinition":return Sr.parse(t.default)||null;default:return t.default===void 0?null:t.default}}function ni(t,e){let{zoom:r,heatmapDensity:i,elevation:n,lineProgress:a,isSupportedScript:s,accumulated:o}=t!=null?t:{};return{zoom:r,heatmapDensity:i,elevation:n,lineProgress:a,isSupportedScript:s,accumulated:o,globalState:e}}function Bm(t){let e=!1;for(let r of t){let i=Pf(r);if(i==="expression")return"expression";i==="legacy"&&(e=!0)}return e?"legacy":"neutral"}function Pf(t){if(typeof t=="boolean")return"neutral";if(!Array.isArray(t)||t.length===0)return"legacy";switch(t[0]){case"has":return t.length<2||t[1]==="$id"||t[1]==="$type"?"legacy":t.length===2?"neutral":"expression";case"in":return t.length>=3&&(typeof t[1]!="string"||Array.isArray(t[2]))?"expression":"legacy";case"!in":case"!has":return"legacy";case"==":case"!=":case">":case">=":case"<":case"<=":return t.length!==3||Array.isArray(t[1])||Array.isArray(t[2])?"expression":"legacy";case"none":return"legacy";case"any":case"all":return Bm(t.slice(1));default:return"expression"}}function Pl(t){return Pf(t)!=="legacy"}function Mh(t){return t==="$type"?["geometry-type"]:t==="$id"?["id"]:["get",t]}function Pm(t){switch(t[0]){case"==":case"!=":case"<":case"<=":case">":case">=":return t.length!==3||typeof t[1]!="string"?null:[t[0],Mh(t[1]),t[2]];case"in":case"!in":{if(t.length<2||typeof t[1]!="string")return null;let e=["in",Mh(t[1]),["literal",t.slice(2)]];return t[0]==="!in"?["!",e]:e}case"has":case"!has":{if(t.length!==2||typeof t[1]!="string"||t[1]==="$type"||t[1]==="$id")return null;let e=["has",t[1]];return t[0]==="!has"?["!",e]:e}default:return null}}function zf(t){if((t[0]==="<"||t[0]==="<="||t[0]===">"||t[0]===">=")&&t[1]==="$type")return`"$type" cannot be use with operator "${t[0]}"`;let e=Pm(t);return e?`Mixing deprecated filter syntax with expression syntax is not supported. Replace ${JSON.stringify(t)} with ${JSON.stringify(e)}.`:`Mixing deprecated filter syntax with expression syntax is not supported. Convert ${JSON.stringify(t)} to expression syntax.`}function Rs(t,e,r){let i=r[t];return Array.isArray(i)?Pl(i)?zl(i,e.concat(t)):{path:e.concat(t),legacyFilter:i}:null}function zl(t,e=[]){if(!Array.isArray(t)||t.length<1)return null;switch(t[0]){case"all":case"any":case"none":for(let r=1;r"u")return;let i=r.path.map(n=>`[${n}]`).join("");console.warn(`${e}${i}: ${zf(r.legacyFilter)}`)}var Lm={type:"boolean",default:!1,transition:!1,"property-type":"data-driven",expression:{interpolated:!1,parameters:["zoom","feature"]}};function ai(t,e,r){if(t==null)return{filter:()=>!0,needGeometry:!1,getGlobalStateRefs:()=>new Set};Pl(t)?zm(t,e):t=Aa(t);let i=ar(t,e,Lm,r);if(i.result==="error")throw Error(i.value.map(n=>`${n.key}: ${n.message}`).join(", "));return{filter:(n,a,s)=>i.value.evaluate(n,a,{},s),needGeometry:Lf(t),getGlobalStateRefs:()=>An(i.value.expression)}}function Vm(t,e){return te)}function Lf(t){if(!Array.isArray(t))return!1;if(t[0]==="within"||t[0]==="distance")return!0;for(let e=1;e"||e==="<="||e===">="?$s(t[1],t[2],e):e==="any"?Om(t.slice(1)):e==="all"?["all"].concat(t.slice(1).map(Aa)):e==="none"?["all"].concat(t.slice(1).map(Aa).map(Hn)):e==="in"?Bh(t[1],t.slice(2)):e==="!in"?Hn(Bh(t[1],t.slice(2))):e==="has"?Ph(t[1]):e!=="!has"||Hn(Ph(t[1]))}function $s(t,e,r){switch(t){case"$type":return[`filter-type-${r}`,e];case"$id":return[`filter-id-${r}`,e];default:return[`filter-${r}`,t,e]}}function Om(t){return["any"].concat(t.map(Aa))}function Bh(t,e){if(e.length===0)return!1;switch(t){case"$type":return["filter-type-in",["literal",e]];case"$id":return["filter-id-in",["literal",e]];default:return e.length>200&&!e.some(r=>typeof r!=typeof e[0])?["filter-in-large",t,["literal",e.sort(Vm)]]:["filter-in-small",t,["literal",e]]}}function Ph(t){switch(t){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",t]}}function Hn(t){return["!",t]}function Vf(t){let e=t.key,r=t.value;return r?[new E(e,r,"constants have been deprecated as of v8")]:[]}function _t(t){return t instanceof Number||t instanceof String||t instanceof Boolean?t.valueOf():t}function wr(t){if(Array.isArray(t))return t.map(wr);if(t instanceof Object&&!(t instanceof Number||t instanceof String||t instanceof Boolean)){let e={};for(let r in t)e[r]=wr(t[r]);return e}return _t(t)}function ee(t){let e=t.key,r=t.value,i=t.valueSpec||{},n=t.objectElementValidators||{},a=t.style,s=t.styleSpec,o=t.validateSpec,l=[],u=J(r);if(u!=="object")return[new E(e,r,`object expected, ${u} found`)];for(let h in r){let c=h.split(".")[0],p=Yi(i,c)||i["*"],f;if(Yi(n,c))f=n[c];else if(Yi(i,c)){if(r[h]===void 0)continue;f=o}else if(n["*"])f=n["*"];else if(i["*"])f=o;else{l.push(new E(e,r[h],`unknown property "${h}"`));continue}l=l.concat(f({key:(e&&`${e}.`)+h,value:r[h],valueSpec:p,style:a,styleSpec:s,object:r,objectKey:h,validateSpec:o},r))}for(let h in i)n[h]||i[h].required&&i[h].default===void 0&&r[h]===void 0&&l.push(new E(e,r,`missing required property "${h}"`));return l}function Ll(t){let e=t.value,r=t.valueSpec,i=t.validateSpec,n=t.style,a=t.styleSpec,s=t.key,o=t.arrayElementValidator||i;if(J(e)!=="array")return[new E(s,e,`array expected, ${J(e)} found`)];if(r.length&&e.length!==r.length)return[new E(s,e,`array length ${r.length} expected, length ${e.length} found`)];let l={type:r.value,values:r.values};a.$version<7&&(l.function=r.function),J(r.value)==="object"&&(l=r.value);let u=[];for(let h=0;hi.maximum?[new E(e,r,`${r} is greater than the maximum value ${i.maximum}`)]:[]:[new E(e,r,`number expected, ${n} found`)]}function Of(t){let e=t.valueSpec,r=_t(t.value.type),i,n={},a,s,o=r!=="categorical"&&t.value.property===void 0,l=!o,u=J(t.value.stops)==="array"&&J(t.value.stops[0])==="array"&&J(t.value.stops[0][0])==="object",h=ee({key:t.key,value:t.value,valueSpec:t.styleSpec.function,validateSpec:t.validateSpec,style:t.style,styleSpec:t.styleSpec,objectElementValidators:{stops:c,default:d}});return r==="identity"&&o&&h.push(new E(t.key,t.value,\'missing required property "property"\')),r!=="identity"&&!t.value.stops&&h.push(new E(t.key,t.value,\'missing required property "stops"\')),r==="exponential"&&t.valueSpec.expression&&!Cl(t.valueSpec)&&h.push(new E(t.key,t.value,"exponential functions not supported")),t.styleSpec.$version>=8&&(l&&!ii(t.valueSpec)?h.push(new E(t.key,t.value,"property functions not supported")):o&&!Sf(t.valueSpec)&&h.push(new E(t.key,t.value,"zoom functions not supported"))),(r==="categorical"||u)&&t.value.property===void 0&&h.push(new E(t.key,t.value,\'"property" property is required\')),h;function c(y){if(r==="identity")return[new E(y.key,y.value,\'identity function may not have a "stops" property\')];let m=[],g=y.value;return m=m.concat(Ll({key:y.key,value:g,valueSpec:y.valueSpec,validateSpec:y.validateSpec,style:y.style,styleSpec:y.styleSpec,arrayElementValidator:p})),J(g)==="array"&&g.length===0&&m.push(new E(y.key,g,"array must have at least one stop")),m}function p(y){let m=[],g=y.value,x=y.key;if(J(g)!=="array")return[new E(x,g,`array expected, ${J(g)} found`)];if(g.length!==2)return[new E(x,g,`array length 2 expected, length ${g.length} found`)];if(u){if(J(g[0])!=="object")return[new E(x,g,`object expected, ${J(g[0])} found`)];if(g[0].zoom===void 0)return[new E(x,g,"object stop key must have zoom")];if(g[0].value===void 0)return[new E(x,g,"object stop key must have value")];if(s&&s>_t(g[0].zoom))return[new E(x,g[0].zoom,"stop zoom values must appear in ascending order")];_t(g[0].zoom)!==s&&(s=_t(g[0].zoom),a=void 0,n={}),m=m.concat(ee({key:`${x}[0]`,value:g[0],valueSpec:{zoom:{}},validateSpec:y.validateSpec,style:y.style,styleSpec:y.styleSpec,objectElementValidators:{zoom:Ya,value:f}}))}else m=m.concat(f({key:`${x}[0]`,value:g[0],valueSpec:{},validateSpec:y.validateSpec,style:y.style,styleSpec:y.styleSpec},g));return Xa(wr(g[1]))?m.concat([new E(`${x}[1]`,g[1],"expressions are not allowed in function stops.")]):m.concat(y.validateSpec({key:`${x}[1]`,value:g[1],valueSpec:e,validateSpec:y.validateSpec,style:y.style,styleSpec:y.styleSpec}))}function f(y,m){let g=J(y.value),x=_t(y.value),v=y.value===null?m:y.value;if(!i)i=g;else if(g!==i)return[new E(y.key,v,`${g} stop domain type must match previous stop domain type ${i}`)];if(g!=="number"&&g!=="string"&&g!=="boolean")return[new E(y.key,v,"stop domain value must be a number, string, or boolean")];if(g!=="number"&&r!=="categorical"){let b=`number expected, ${g} found`;return ii(e)&&r===void 0&&(b+=\'\\nIf you intended to use a categorical function, specify `"type": "categorical"`.\'),[new E(y.key,v,b)]}return r==="categorical"&&g==="number"&&(!isFinite(x)||Math.floor(x)!==x)?[new E(y.key,v,`integer expected, found ${x}`)]:r!=="categorical"&&g==="number"&&a!==void 0&&xnew E(`${t.key}${i.key}`,t.value,i.message));let r=e.value.expression||e.value._styleExpression.expression;if(t.expressionContext==="property"&&t.propertyKey==="text-font"&&!r.outputDefined())return[new E(t.key,t.value,`Invalid data expression for "${t.propertyKey}". Output values must be contained as literals within the expression.`)];if(t.expressionContext==="property"&&t.propertyType==="layout"&&!sn(r))return[new E(t.key,t.value,\'"feature-state" data expressions are not supported with layout properties.\')];if(t.expressionContext==="filter"&&!sn(r))return[new E(t.key,t.value,\'"feature-state" data expressions are not supported with filters.\')];if(t.expressionContext&&t.expressionContext.indexOf("cluster")===0){if(!ja(r,["zoom","feature-state"]))return[new E(t.key,t.value,\'"zoom" and "feature-state" expressions are not supported with cluster properties.\')];if(t.expressionContext==="cluster-initial"&&!qa(r))return[new E(t.key,t.value,"Feature data expressions are not supported with initial expression part of cluster properties.")]}return[]}function Rm(t){let e=t.value,r=t.key,i=J(e);return i==="boolean"?[]:[new E(r,e,`boolean expected, ${i} found`)]}function co(t){let e=t.key,r=t.value,i=J(r);return i==="string"?xt.parse(String(r))?[]:[new E(e,r,`color expected, "${r}" found`)]:[new E(e,r,`color expected, ${i} found`)]}function un(t){let e=t.key,r=t.value,i=t.valueSpec,n=[];return Array.isArray(i.values)?i.values.indexOf(_t(r))===-1&&n.push(new E(e,r,`expected one of [${i.values.join(", ")}], ${JSON.stringify(r)} found`)):Object.keys(i.values).indexOf(_t(r))===-1&&n.push(new E(e,r,`expected one of [${Object.keys(i.values).join(", ")}], ${JSON.stringify(r)} found`)),n}function $m(t,e){let r=t;for(let i of e)r=r[i];return r}function Nm(t,e){let r=zl(e);return r?[new E(`${t.key}${r.path.map(i=>`[${i}]`).join("")}`,$m(t.value,r.path),zf(r.legacyFilter),null,"warning")]:[]}function Vl(t){let e=wr(t.value);return Pl(e)?[...Nm(t,e),...si(on({},t,{expressionContext:"filter",valueSpec:{value:"boolean"}}))]:Rf(t)}function Rf(t){let e=t.value,r=t.key;if(J(e)!=="array")return[new E(r,e,`array expected, ${J(e)} found`)];let i=t.styleSpec,n,a=[];if(e.length<1)return[new E(r,e,"filter array must have at least 1 element")];switch(a=a.concat(un({key:`${r}[0]`,value:e[0],valueSpec:i.filter_operator,style:t.style,styleSpec:t.styleSpec})),_t(e[0])){case"<":case"<=":case">":case">=":e.length>=2&&_t(e[1])==="$type"&&a.push(new E(r,e,`"$type" cannot be use with operator "${e[0]}"`));case"==":case"!=":e.length!==3&&a.push(new E(r,e,`filter array for operator "${e[0]}" must have 3 elements`));case"in":case"!in":e.length>=2&&(n=J(e[1]),n!=="string"&&a.push(new E(`${r}[1]`,e[1],`string expected, ${n} found`)));for(let s=2;s{c in r&&e.push(new E(i,r[c],`"${c}" is prohibited for ref layers`))});let h;n.layers.forEach(c=>{_t(c.id)===o&&(h=c)}),h?h.ref?e.push(new E(i,r.ref,"ref cannot reference another ref layer")):s=_t(h.type):e.push(new E(i,r.ref,`ref layer "${o}" not found`))}else if(s!=="background")if(!r.source)e.push(new E(i,r,\'missing required property "source"\'));else{let h=n.sources&&n.sources[r.source],c=h&&_t(h.type);h?c==="vector"&&s==="raster"?e.push(new E(i,r.source,`layer "${r.id}" requires a raster source`)):c!=="raster-dem"&&s==="hillshade"||c!=="raster-dem"&&s==="color-relief"?e.push(new E(i,r.source,`layer "${r.id}" requires a raster-dem source`)):c==="raster"&&s!=="raster"?e.push(new E(i,r.source,`layer "${r.id}" requires a vector source`)):c==="vector"&&!r["source-layer"]?e.push(new E(i,r,`layer "${r.id}" must specify a "source-layer"`)):c==="raster-dem"&&s!=="hillshade"&&s!=="color-relief"?e.push(new E(i,r.source,"raster-dem source can only be used with layer type \'hillshade\' or \'color-relief\'.")):s==="line"&&r.paint&&r.paint["line-gradient"]&&(c!=="geojson"||!h.lineMetrics)&&e.push(new E(i,r,`layer "${r.id}" specifies a line-gradient, which requires a GeoJSON source with \\`lineMetrics\\` enabled.`)):e.push(new E(i,r.source,`source "${r.source}" not found`))}return s==="raster"&&((l=r.paint)!=null&&l.resampling)&&((u=r.paint)!=null&&u["raster-resampling"])&&e.push(new E(i,r.paint,`layer "${r.id}" redundantly specifies "resampling" and "raster-resampling" paint properties, but only one is allowed. It is advised to use "resampling".`)),e=e.concat(ee({key:i,value:r,valueSpec:a.layer,style:t.style,styleSpec:t.styleSpec,validateSpec:t.validateSpec,objectElementValidators:{"*"(){return[]},type(){return t.validateSpec({key:`${i}.type`,value:r.type,valueSpec:a.layer.type,style:t.style,styleSpec:t.styleSpec,validateSpec:t.validateSpec,object:r,objectKey:"type"})},filter:Vl,layout(h){return ee({layer:r,key:h.key,value:h.value,style:h.style,styleSpec:h.styleSpec,validateSpec:h.validateSpec,objectElementValidators:{"*"(c){return Uf(on({layerType:s},c))}}})},paint(h){return ee({layer:r,key:h.key,value:h.value,style:h.style,styleSpec:h.styleSpec,validateSpec:h.validateSpec,objectElementValidators:{"*"(c){return Nf(on({layerType:s},c))}}})}}})),e}function ir(t){let e=t.value,r=t.key,i=J(e);return i==="string"?[]:[new E(r,e,`string expected, ${i} found`)]}function Um(t){var c;let e=(c=t.sourceName)!=null?c:"",r=t.value,i=t.styleSpec,n=i.source_raster_dem,a=t.style,s=[],o=J(r);if(r===void 0)return s;if(o!=="object")return s.push(new E("source_raster_dem",r,`object expected, ${o} found`)),s;let l=_t(r.encoding)==="custom",u=["redFactor","greenFactor","blueFactor","baseShift"],h=t.value.encoding?`"${t.value.encoding}"`:"Default";for(let p in r)!l&&u.includes(p)?s.push(new E(p,r[p],`In "${e}": "${p}" is only valid when "encoding" is set to "custom". ${h} encoding found`)):n[p]?s=s.concat(t.validateSpec({key:p,value:r[p],valueSpec:n[p],validateSpec:t.validateSpec,style:a,styleSpec:i})):s.push(new E(p,r[p],`unknown property "${p}"`));return s}var zh={promoteId:qm};function jf(t){let e=t.value,r=t.key,i=t.styleSpec,n=t.style,a=t.validateSpec;if(!e.type)return[new E(r,e,\'"type" is required\')];let s=_t(e.type),o;switch(s){case"vector":case"raster":return o=ee({key:r,value:e,valueSpec:i[`source_${s.replace("-","_")}`],style:t.style,styleSpec:i,objectElementValidators:zh,validateSpec:a}),o;case"raster-dem":return o=Um({sourceName:r,value:e,style:t.style,styleSpec:i,validateSpec:a}),o;case"geojson":if(o=ee({key:r,value:e,valueSpec:i.source_geojson,style:n,styleSpec:i,validateSpec:a,objectElementValidators:zh}),e.cluster)for(let l in e.clusterProperties){let[u,h]=e.clusterProperties[l],c=typeof u=="string"?[u,["accumulated"],["get",l]]:u;o.push(...si({key:`${r}.${l}.map`,value:h,validateSpec:a,expressionContext:"cluster-map"})),o.push(...si({key:`${r}.${l}.reduce`,value:c,validateSpec:a,expressionContext:"cluster-reduce"}))}return o;case"video":return ee({key:r,value:e,valueSpec:i.source_video,style:n,validateSpec:a,styleSpec:i});case"image":return ee({key:r,value:e,valueSpec:i.source_image,style:n,validateSpec:a,styleSpec:i});case"canvas":return[new E(r,null,"Please use runtime APIs to add canvas sources, rather than including them in stylesheets.","source.canvas")];default:return un({key:`${r}.type`,value:e.type,valueSpec:{values:["vector","raster","raster-dem","geojson","video","image"]},style:n,validateSpec:a,styleSpec:i})}}function qm({key:t,value:e}){if(J(e)==="string")return ir({key:t,value:e});{let r=[];for(let i in e)r.push(...ir({key:`${t}.${i}`,value:e[i]}));return r}}function Gf(t){let e=t.value,r=t.styleSpec,i=r.light,n=t.style,a=[],s=J(e);if(e===void 0)return a;if(s!=="object")return a=a.concat([new E("light",e,`object expected, ${s} found`)]),a;for(let o in e){let l=o.match(Ml);a=l&&i[l[1]]&&i[l[1]].transition?a.concat(t.validateSpec({key:o,value:e[o],valueSpec:r.transition,validateSpec:t.validateSpec,style:n,styleSpec:r})):i[o]?a.concat(t.validateSpec({key:o,value:e[o],valueSpec:i[o],validateSpec:t.validateSpec,style:n,styleSpec:r})):a.concat([new E(o,e[o],`unknown property "${o}"`)])}return a}function Xf(t){let e=t.value,r=t.styleSpec,i=r.sky,n=t.style,a=J(e);if(e===void 0)return[];if(a!=="object")return[new E("sky",e,`object expected, ${a} found`)];let s=[];for(let o in e){let l=o.match(Ml);s=l&&i[l[1]]&&i[l[1]].transition?s.concat(t.validateSpec({key:o,value:e[o],valueSpec:r.transition,style:n,styleSpec:r})):i[o]?s.concat(t.validateSpec({key:o,value:e[o],valueSpec:i[o],style:n,styleSpec:r})):s.concat([new E(o,e[o],`unknown property "${o}"`)])}return s}function Yf(t){let e=t.value,r=t.styleSpec,i=r.terrain,n=t.style,a=[],s=J(e);if(e===void 0)return a;if(s!=="object")return a=a.concat([new E("terrain",e,`object expected, ${s} found`)]),a;for(let o in e)a=i[o]?a.concat(t.validateSpec({key:o,value:e[o],valueSpec:i[o],validateSpec:t.validateSpec,style:n,styleSpec:r})):a.concat([new E(o,e[o],`unknown property "${o}"`)]);return a}function jm(t){return ir(t).length===0?[]:si(t)}function Gm(t){return ir(t).length===0?[]:si(t)}function Xm(t){let e=t.key,r=t.value;if(J(r)==="array"){if(r.length<1||r.length>4)return[new E(e,r,`padding requires 1 to 4 values; ${r.length} values found`)];let i={type:"number"},n=[];for(let a=0;a[new E(t,e,\'invalid unicode range, expected a value such as "U+26", "U+0-10FFFF" or "U+4??"\')],n=r.match(tg);if(!n)return i();let[,a,s,o]=n;if(o!==void 0)return o.length>6?i():[];let l=parseInt(a,16),u=s===void 0?l:parseInt(s,16);return l>Lh||u>Lh?[new E(t,e,"unicode range is out of bounds, the maximum code point is U+10FFFF")]:l>u?[new E(t,e,`unicode range start must not be greater than its end, but ${r} is`)]:[]}function Hf(t){var o,l;let e=(o=t.key)!=null?o:"font-faces",r=t.value,i=t.validateSpec,n=(l=t.styleSpec)!=null?l:Bp,a=t.style;if(!po(r))return[new E(e,r,`object expected, ${J(r)} found`)];let s=[];for(let u in r){let h=r[u],c=J(h);if(c==="string")s.push(...ir({key:`${e}.${u}`,value:h}));else if(c==="array"){let p={url:{type:"string",required:!0},"unicode-range":{type:"array",value:"string"}};for(let[f,d]of h.entries()){let y=`${e}.${u}[${f}]`;s.push(...ee({key:y,value:d,valueSpec:p,styleSpec:n,style:a,validateSpec:i}));let m=po(d)?d["unicode-range"]:void 0;if(J(m)==="array")for(let[g,x]of m.entries())s.push(...eg(`${y}.unicode-range[${g}]`,x))}}else s.push(new E(`${e}.${u}`,h,`string or array expected, ${c} found`))}return s}var Vh={"*"(){return[]},array:Ll,boolean:Rm,number:Ya,color:co,constants:Vf,enum:un,filter:Vl,function:Of,layer:qf,object:ee,source:jf,light:Gf,sky:Xf,terrain:Yf,projection:Hm,projectionDefinition:Km,string:ir,formatted:jm,resolvedImage:Gm,padding:Xm,numberArray:Ym,colorArray:Wm,variableAnchorOffsetCollection:Zm,sprite:Wf,state:Zf,fontFaces:Hf};function Zi(t){let e=t.value,r=t.valueSpec,i=t.styleSpec;return t.validateSpec=Zi,r.expression&&Ga(_t(e))?Of(t):r.expression&&Xa(wr(e))?si(t):r.type&&Vh[r.type]?Vh[r.type](t):ee(on({},t,{valueSpec:r.type?i[r.type]:r}))}function Kf(t){let e=t.value,r=t.key,i=ir(t);return i.length||(e.indexOf("{fontstack}")===-1&&i.push(new E(r,e,\'"glyphs" url must include a "{fontstack}" token\')),e.indexOf("{range}")===-1&&i.push(new E(r,e,\'"glyphs" url must include a "{range}" token\'))),i}function te(t,e=D){let r=[];return r=r.concat(Zi({key:"",value:t,valueSpec:e.$root,styleSpec:e,style:t,validateSpec:Zi,objectElementValidators:{glyphs:Kf,"*"(){return[]}}})),t.constants&&(r=r.concat(Vf({key:"constants",value:t.constants,style:t,styleSpec:e,validateSpec:Zi}))),Jf(r)}te.source=ae(ne(jf)),te.sprite=ae(ne(Wf)),te.glyphs=ae(ne(Kf)),te.fontFaces=ae(ne(Hf)),te.light=ae(ne(Gf)),te.sky=ae(ne(Xf)),te.terrain=ae(ne(Yf)),te.state=ae(ne(Zf)),te.layer=ae(ne(qf)),te.filter=ae(ne(Vl)),te.paintProperty=ae(ne(Nf)),te.layoutProperty=ae(ne(Uf));function ne(t){return function(e){return t(Object.assign({},e,{validateSpec:Zi}))}}function Jf(t){return[].concat(t).sort((e,r)=>e.line-r.line)}function ae(t){return function(...e){return Jf(t.apply(this,e))}}var rg={type:"enum","property-type":"data-constant",expression:{interpolated:!1,parameters:["global-state"]},values:{visible:{},none:{}},transition:!1,default:"visible"},ig=class{constructor(t,e,r){this._rootKey=e,this._globalState=r,this.setValue(t)}evaluate(){var t;return(t=this._literalValue)!=null?t:this._compiledValue.evaluate({})}setValue(t){if(t==null||t==="visible"||t==="none"){this._literalValue=t==="none"?"none":"visible",this._compiledValue=void 0,this._globalStateRefs=new Set;return}let e=ar(t,this._rootKey,rg,this._globalState);if(e.result==="error")throw this._literalValue="visible",this._compiledValue=void 0,Error(e.value.map(r=>`${r.key}: ${r.message}`).join(", "));this._literalValue=void 0,this._compiledValue=e.value,this._globalStateRefs=An(e.value.expression)}getGlobalStateRefs(){return this._globalStateRefs}};function ng(t,e,r){return new ig(t,e,r)}var Oh=te,_5=new Set(Object.keys(D).filter(t=>t.startsWith("source_")).map(t=>t.slice(7).replaceAll("_","-")));function ag(t,e){let r=!1;for(let i of e){if(i.severity==="warning"){Mt(i.message);continue}t.fire(new xa(Error(i.message))),r=!0}return r}function sg(t,e,r,i){return(i==null?void 0:i.validate)!==!1&&ag(t,e(Xe({styleSpec:D},r)))}var fo=class Qf{constructor(e,r,i){let n=this.cells=[];if(e instanceof ArrayBuffer){this.arrayBuffer=e;let s=new Int32Array(this.arrayBuffer);e=s[0],r=s[1],i=s[2],this.d=r+2*i;for(let u=0;u=c[f+0]&&n>=c[f+1])?(o[p]=!0,s.push(h[p])):o[p]=!1}}}_forEachCell(e,r,i,n,a,s,o,l){let u=this._convertToCellCoord(e),h=this._convertToCellCoord(r),c=this._convertToCellCoord(i),p=this._convertToCellCoord(n);for(let f=u;f<=c;f++)for(let d=h;d<=p;d++){let y=this.d*d+f;if((!l||l(this._convertFromCellCoord(f),this._convertFromCellCoord(d),this._convertFromCellCoord(f+1),this._convertFromCellCoord(d+1)))&&a.call(this,e,r,i,n,y,s,o,l))return}}_convertFromCellCoord(e){return(e-this.padding)/this.scale}_convertToCellCoord(e){return Math.max(0,Math.min(this.d-1,Math.floor(e*this.scale)+this.padding))}toArrayBuffer(){if(this.arrayBuffer)return this.arrayBuffer;let e=this.cells,r=3+this.cells.length+1+1,i=0;for(let s of this.cells)i+=s.length;let n=new Int32Array(r+i+this.keys.length+this.bboxes.length);n[0]=this.extent,n[1]=this.n,n[2]=this.padding;let a=r;for(let s=0;sr?(this.lastIntegerZoom=r+1,this.lastIntegerZoomTime=e):this.lastFloorZoomthis.zoomHistory.lastIntegerZoom?{fromScale:2,toScale:1,t:e+(1-e)*r}:{fromScale:.5,toScale:1,t:1-(1-r)*e}}},hn=class{constructor(t,e,r,i){this.property=t,this.value=e,this.expression=Cm(e===void 0?t.specification.default:e,r,t.specification,i)}isDataDriven(){return this.expression.kind==="source"||this.expression.kind==="composite"}getGlobalStateRefs(){return this.expression.globalStateRefs||new Set}readsGlobalState(t){let e=this.getGlobalStateRefs();return t.some(r=>e.has(r))}possiblyEvaluate(t,e,r){return this.property.possiblyEvaluate(this,t,e,r)}},yo=class{constructor(t,e,r){this.property=t,this.value=new hn(t,void 0,e,r)}transitioned(t,e){return e.value===this.value?e:new $h(this.property,this.value,e,Xt({},t.transition,this.transition),t.now)}untransitioned(){return new $h(this.property,this.value,null,{},0)}},lg=class{constructor(t,e,r){this._properties=t,this._values=Object.create(t.defaultTransitionablePropertyValues),this._globalState=r,this._rootKey=e}_propertyRootKey(t){return`${this._rootKey}.${String(t)}`}hasProperty(t){return t in this._properties.defaultTransitionablePropertyValues}getValue(t){return Je(this._values[t].value.value)}setValue(t,e){Object.hasOwn(this._values,t)||(this._values[t]=new yo(this._values[t].property,this._propertyRootKey(t),this._globalState)),this._values[t].value=new hn(this._values[t].property,e===null?void 0:Je(e),this._propertyRootKey(t),this._globalState)}setValues(t){for(let e in t){let r=t[e];e.endsWith("-transition")?this.setTransition(e.slice(0,-11),r):to(this._values[e].value.value,r)||this.setValue(e,r)}}getTransition(t){return Je(this._values[t].transition)}setTransition(t,e){Object.hasOwn(this._values,t)||(this._values[t]=new yo(this._values[t].property,this._propertyRootKey(t),this._globalState)),this._values[t].transition=Je(e)||void 0}retainPriorGlobalState(t,e,r){for(let i of Object.keys(r._values))for(let n=r._values[i];n;n=n.prior){let{value:a}=n;a.property.specification.transition&&!a.isDataDriven()&&a.expression._globalState===this._globalState&&a.readsGlobalState(t)&&(n.value=new hn(a.property,a.value,this._propertyRootKey(i),e))}}applyGlobalStateChange(t,e,r,i){this.retainPriorGlobalState(t,e,r);let n=!1;for(let a of Object.keys(this._values)){let{value:s}=this._values[a];s.readsGlobalState(t)&&(this.setValue(a,s.value),n=!0)}return n?this.transitioned(i,r):r}serialize(){let t={};for(let e of Object.keys(this._values)){let r=this.getValue(e);r!==void 0&&(t[e]=r);let i=this.getTransition(e);i!==void 0&&(t[`${e}-transition`]=i)}return t}transitioned(t,e){let r=new Nh(this._properties);for(let i of Object.keys(this._values))r._values[i]=this._values[i].transitioned(t,e._values[i]);return r}untransitioned(){let t=new Nh(this._properties);for(let e of Object.keys(this._values))t._values[e]=this._values[e].untransitioned();return t}},$h=class{constructor(t,e,r,i,n){this.property=t,this.value=e,this.begin=n+i.delay||0,this.end=this.begin+i.duration||0,t.specification.transition&&(i.delay||i.duration)&&(this.prior=r)}possiblyEvaluate(t,e,r){let i=t.now||0,n=this.value.possiblyEvaluate(t,e,r),a=this.prior;if(!a)return n;if(i>this.end||this.value.isDataDriven())return this.prior=null,n;if(ii.zoomHistory.lastIntegerZoom?{from:t,to:e}:{from:r,to:e}}interpolate(t){return t}},id=class{constructor(t,e){this.specification=t,this.name=e}possiblyEvaluate(t,e,r,i){if(t.value!==void 0){if(t.expression.kind==="constant"){let n=t.expression.evaluate(e,null,{},r,i);return this._calculate(n,n,n,e)}return this._calculate(t.expression.evaluate(new st(Math.floor(e.zoom-1),e)),t.expression.evaluate(new st(Math.floor(e.zoom),e)),t.expression.evaluate(new st(Math.floor(e.zoom+1),e)),e)}}_calculate(t,e,r,i){return i.zoom>i.zoomHistory.lastIntegerZoom?{from:t,to:e}:{from:r,to:e}}interpolate(t){return t}},Za=class{constructor(t,e){this.specification=t,this.name=e}possiblyEvaluate(t,e,r,i){return!!t.expression.evaluate(e,null,{},r,i)}interpolate(){return!1}},Yt=class{constructor(t){this.properties=t,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},this.overridableProperties=[];for(let e in t){let r=t[e];r.specification.overridable&&this.overridableProperties.push(e);let i=this.defaultPropertyValues[e]=new hn(r,void 0,r.name,void 0),n=this.defaultTransitionablePropertyValues[e]=new yo(r,r.name,void 0);this.defaultTransitioningPropertyValues[e]=n.untransitioned(),this.defaultPossiblyEvaluatedValues[e]=i.possiblyEvaluate({})}}};C("DataDrivenProperty",U),C("DataConstantProperty",R),C("CrossFadedDataDrivenProperty",cn),C("CrossFadedProperty",id),C("ColorRampProperty",Za);var qh=" is a PAINT property not a LAYOUT property. Use get/setPaintProperty instead?",Ns=" is a LAYOUT property not a PAINT property. Use get/setLayoutProperty instead?",ye=class extends s0{constructor(t,e,r){if(super(),this.id=t.id,this.type=t.type,this._globalState=r,this._featureFilter={filter:()=>!0,needGeometry:!1,getGlobalStateRefs:()=>new Set},this._visibilityExpression=ng(this.visibility,`layers[${this.id}].layout.visibility`,r),t.type!=="custom"&&(this.metadata=t.metadata,this.minzoom=t.minzoom,this.maxzoom=t.maxzoom,t.type!=="background"&&(this.source=t.source,this.sourceLayer=t["source-layer"],this.filter=t.filter,this._featureFilter=ai(t.filter,`layers[${this.id}].filter`,r)),e.layout&&(this._unevaluatedLayout=new ug(e.layout,`layers[${this.id}].layout`,r)),e.paint)){this._transitionablePaint=new lg(e.paint,`layers[${this.id}].paint`,r);for(let i in t.paint)this.setPaintProperty(i,t.paint[i],{validate:!1});for(let i in t.layout)this.setLayoutProperty(i,t.layout[i],{validate:!1});this._transitioningPaint=this._transitionablePaint.untransitioned(),this.paint=new Wa(e.paint)}}setFilter(t){this.filter=t,this._featureFilter=ai(t,`layers[${this.id}].filter`,this._globalState)}getCrossfadeParameters(){return this._crossfadeParameters}getLayoutProperty(t){var e;if(t==="visibility")return this.visibility;if((e=this._transitionablePaint)!=null&&e.hasProperty(t))throw Error(t+qh);if(!this._unevaluatedLayout)throw Error(`Cannot get layout property "${t}" on layer type "${this.type}" which has no layout properties.`);return this._unevaluatedLayout.getValue(t)}getLayoutAffectingGlobalStateRefs(){let t=new Set;for(let e of this._visibilityExpression.getGlobalStateRefs())t.add(e);if(this._unevaluatedLayout)for(let e in this._unevaluatedLayout._values){let r=this._unevaluatedLayout._values[e];for(let i of r.getGlobalStateRefs())t.add(i)}for(let e of this._featureFilter.getGlobalStateRefs())t.add(e);return t}getPaintAffectingGlobalStateRefs(){var e;let t=new globalThis.Map;if(this._transitionablePaint)for(let r in this._transitionablePaint._values){let i=this._transitionablePaint._values[r].value;for(let n of i.getGlobalStateRefs()){let a=(e=t.get(n))!=null?e:[];a.push({name:r,value:i.value}),t.set(n,a)}}return t}getVisibilityAffectingGlobalStateRefs(){return this._visibilityExpression.getGlobalStateRefs()}setLayoutProperty(t,e,r={}){var i;if(t==="visibility"){this.visibility=e,this._visibilityExpression.setValue(e),this.recalculateVisibility();return}if((i=this._transitionablePaint)!=null&&i.hasProperty(t)){this.fire(new xa(Error(t+qh)));return}e!=null&&this._validate(Oh.layoutProperty,`layers.${this.id}.layout.${t}`,t,e,r)||this._unevaluatedLayout.setValue(t,e)}getPaintProperty(t){var e,r;if(t.endsWith("-transition")){let i=t.slice(0,-11);if(i==="visibility"||(e=this._unevaluatedLayout)!=null&&e.hasProperty(i))throw Error(t+Ns);return this._transitionablePaint.getTransition(i)}if(t==="visibility"||(r=this._unevaluatedLayout)!=null&&r.hasProperty(t))throw Error(t+Ns);return this._transitionablePaint.getValue(t)}setPaintProperty(t,e,r={}){var i;if(t==="visibility"||(i=this._unevaluatedLayout)!=null&&i.hasProperty(t))return this.fire(new xa(Error(t+Ns))),!1;if(e!=null&&this._validate(Oh.paintProperty,`layers.${this.id}.paint.${t}`,t,e,r))return!1;if(t.endsWith("-transition"))return this._transitionablePaint.setTransition(t.slice(0,-11),e||void 0),!1;{let n=this._transitionablePaint._values[t],a=n.property.specification["property-type"]==="cross-faded-data-driven",s=n.value.isDataDriven(),o=n.value;this._transitionablePaint.setValue(t,e),this._handleSpecialPaintPropertyUpdate(t);let l=this._transitionablePaint._values[t].value;return l.isDataDriven()||s||a||this._handleOverridablePaintPropertyUpdate(t,o,l)}}_handleSpecialPaintPropertyUpdate(t){}_handleOverridablePaintPropertyUpdate(t,e,r){return!1}isHidden(t=this.minzoom,e=!1){return this.minzoom&&t<(e?Math.floor(this.minzoom):this.minzoom)||this.maxzoom&&t>=this.maxzoom?!0:this._evaluatedVisibility==="none"}updateTransitions(t){this._transitioningPaint=this._transitionablePaint.transitioned(t,this._transitioningPaint)}retainPriorGlobalState(t,e){var r;(r=this._transitionablePaint)==null||r.retainPriorGlobalState(t,e,this._transitioningPaint)}hasTransition(){return this._transitioningPaint.hasTransition()}recalculateVisibility(){this._evaluatedVisibility=this._visibilityExpression.evaluate()}recalculate(t,e){t.getCrossfadeParameters&&(this._crossfadeParameters=t.getCrossfadeParameters()),this._unevaluatedLayout&&(this.layout=this._unevaluatedLayout.possiblyEvaluate(t,void 0,e)),this.paint=this._transitioningPaint.possiblyEvaluate(t,void 0,e)}serialize(){var e,r;let t={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:(e=this._unevaluatedLayout)==null?void 0:e.serialize(),paint:(r=this._transitionablePaint)==null?void 0:r.serialize()};return this.visibility&&(t.layout||(t.layout={}),t.layout.visibility=this.visibility),K1(t,(i,n)=>i!==void 0&&!(n==="layout"&&!Object.keys(i).length)&&!(n==="paint"&&!Object.keys(i).length))}_validate(t,e,r,i,n={}){return sg(this,t,{key:e,layerType:this.type,objectKey:r,value:i},n)}is3D(){return!1}isTileClipped(){return!1}hasOffscreenPass(){return!1}resize(){}isStateDependent(){for(let t in this.paint._values){let e=this.paint.get(t);if(e instanceof le&&ii(e.property.specification)&&(e.value.kind==="source"||e.value.kind==="composite")&&e.value.isStateDependent)return!0}return!1}},jh,hg=()=>jh||(jh=new Yt({"raster-opacity":new R(D.paint_raster["raster-opacity"],"raster-opacity"),"raster-hue-rotate":new R(D.paint_raster["raster-hue-rotate"],"raster-hue-rotate"),"raster-brightness-min":new R(D.paint_raster["raster-brightness-min"],"raster-brightness-min"),"raster-brightness-max":new R(D.paint_raster["raster-brightness-max"],"raster-brightness-max"),"raster-saturation":new R(D.paint_raster["raster-saturation"],"raster-saturation"),"raster-contrast":new R(D.paint_raster["raster-contrast"],"raster-contrast"),resampling:new R(D.paint_raster.resampling,"resampling"),"raster-resampling":new R(D.paint_raster["raster-resampling"],"raster-resampling"),"raster-fade-duration":new R(D.paint_raster["raster-fade-duration"],"raster-fade-duration")})),cg={get paint(){return hg()}};var pg=class extends ye{constructor(t,e){super(t,cg,e)}},fg={Int8:Int8Array,Uint8:Uint8Array,Int16:Int16Array,Uint16:Uint16Array,Int32:Int32Array,Uint32:Uint32Array,Float32:Float32Array},Sn=class{constructor(t,e){this._structArray=t,this._pos1=e*this.size,this._pos2=this._pos1/2,this._pos4=this._pos1/4,this._pos8=this._pos1/8}},vt=class{constructor(){this.isTransferred=!1,this.capacity=-1,this.resize(0)}static serialize(t,e){return t._trim(),e&&(t.isTransferred=!0,e.push(t.arrayBuffer)),{length:t.length,arrayBuffer:t.arrayBuffer}}static deserialize(t){let e=Object.create(this.prototype);return e.arrayBuffer=t.arrayBuffer,e.length=t.length,e.capacity=t.arrayBuffer.byteLength/e.bytesPerElement,e._refreshViews(),e}_trim(){this.length!==this.capacity&&(this.capacity=this.length,this.arrayBuffer=this.arrayBuffer.slice(0,this.length*this.bytesPerElement),this._refreshViews())}clear(){this.length=0}resize(t){this.reserve(t),this.length=t}reserve(t){if(t>this.capacity){this.capacity=Math.max(t,Math.floor(this.capacity*5),128),this.arrayBuffer=new ArrayBuffer(this.capacity*this.bytesPerElement);let e=this.uint8;this._refreshViews(),e&&this.uint8.set(e)}}_refreshViews(){throw Error("_refreshViews() must be implemented by each concrete StructArray layout")}freeBufferAfterUpload(){this.arrayBuffer=new ArrayBuffer(0),this._refreshViews()}};function Et(t,e=1){let r=0,i=0;return{members:t.map(n=>{let a=dg(n.type),s=r=Gh(r,Math.max(e,a)),o=n.components||1;return i=Math.max(i,a),r+=a*o,{name:n.name,type:n.type,components:o,offset:s}}),size:Gh(r,Math.max(i,e)),alignment:e}}function dg(t){return fg[t].BYTES_PER_ELEMENT}function Gh(t,e){return Math.ceil(t/e)*e}var pn=class extends vt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(t,e){let r=this.length;return this.resize(r+1),this.emplace(r,t,e)}emplace(t,e,r){let i=t*2;return this.int16[i+0]=e,this.int16[i+1]=r,t}};pn.prototype.bytesPerElement=4,C("StructArrayLayout2i4",pn);var mo=class extends vt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(t,e,r){let i=this.length;return this.resize(i+1),this.emplace(i,t,e,r)}emplace(t,e,r,i){let n=t*3;return this.int16[n+0]=e,this.int16[n+1]=r,this.int16[n+2]=i,t}};mo.prototype.bytesPerElement=6,C("StructArrayLayout3i6",mo);var Xh=class extends vt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(t,e,r,i){let n=this.length;return this.resize(n+1),this.emplace(n,t,e,r,i)}emplace(t,e,r,i,n){let a=t*4;return this.int16[a+0]=e,this.int16[a+1]=r,this.int16[a+2]=i,this.int16[a+3]=n,t}};Xh.prototype.bytesPerElement=8,C("StructArrayLayout4i8",Xh);var go=class extends vt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(t,e,r,i,n,a){let s=this.length;return this.resize(s+1),this.emplace(s,t,e,r,i,n,a)}emplace(t,e,r,i,n,a,s){let o=t*6;return this.int16[o+0]=e,this.int16[o+1]=r,this.int16[o+2]=i,this.int16[o+3]=n,this.int16[o+4]=a,this.int16[o+5]=s,t}};go.prototype.bytesPerElement=12,C("StructArrayLayout2i4i12",go);var xo=class extends vt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(t,e,r,i,n,a){let s=this.length;return this.resize(s+1),this.emplace(s,t,e,r,i,n,a)}emplace(t,e,r,i,n,a,s){let o=t*4,l=t*8;return this.int16[o+0]=e,this.int16[o+1]=r,this.uint8[l+4]=i,this.uint8[l+5]=n,this.uint8[l+6]=a,this.uint8[l+7]=s,t}};xo.prototype.bytesPerElement=8,C("StructArrayLayout2i4ub8",xo);var fn=class extends vt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(t,e){let r=this.length;return this.resize(r+1),this.emplace(r,t,e)}emplace(t,e,r){let i=t*2;return this.float32[i+0]=e,this.float32[i+1]=r,t}};fn.prototype.bytesPerElement=8,C("StructArrayLayout2f8",fn);var vo=class extends vt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(t,e,r,i,n,a,s,o,l,u){let h=this.length;return this.resize(h+1),this.emplace(h,t,e,r,i,n,a,s,o,l,u)}emplace(t,e,r,i,n,a,s,o,l,u,h){let c=t*10;return this.uint16[c+0]=e,this.uint16[c+1]=r,this.uint16[c+2]=i,this.uint16[c+3]=n,this.uint16[c+4]=a,this.uint16[c+5]=s,this.uint16[c+6]=o,this.uint16[c+7]=l,this.uint16[c+8]=u,this.uint16[c+9]=h,t}};vo.prototype.bytesPerElement=20,C("StructArrayLayout10ui20",vo);var bo=class extends vt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(t,e,r,i,n,a,s,o){let l=this.length;return this.resize(l+1),this.emplace(l,t,e,r,i,n,a,s,o)}emplace(t,e,r,i,n,a,s,o,l){let u=t*8;return this.uint16[u+0]=e,this.uint16[u+1]=r,this.uint16[u+2]=i,this.uint16[u+3]=n,this.uint16[u+4]=a,this.uint16[u+5]=s,this.uint16[u+6]=o,this.uint16[u+7]=l,t}};bo.prototype.bytesPerElement=16,C("StructArrayLayout8ui16",bo);var wo=class extends vt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(t,e,r,i,n,a,s,o,l,u,h,c,p){let f=this.length;return this.resize(f+1),this.emplace(f,t,e,r,i,n,a,s,o,l,u,h,c,p)}emplace(t,e,r,i,n,a,s,o,l,u,h,c,p,f){let d=t*14,y=t*7;return this.int16[d+0]=e,this.int16[d+1]=r,this.int16[d+2]=i,this.int16[d+3]=n,this.uint16[d+4]=a,this.uint16[d+5]=s,this.uint16[d+6]=o,this.uint16[d+7]=l,this.int16[d+8]=u,this.int16[d+9]=h,this.int16[d+10]=c,this.int16[d+11]=p,this.float32[y+6]=f,t}};wo.prototype.bytesPerElement=28,C("StructArrayLayout4i4ui4i1f28",wo);var Do=class extends vt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(t,e,r){let i=this.length;return this.resize(i+1),this.emplace(i,t,e,r)}emplace(t,e,r,i){let n=t*3;return this.float32[n+0]=e,this.float32[n+1]=r,this.float32[n+2]=i,t}};Do.prototype.bytesPerElement=12,C("StructArrayLayout3f12",Do);var _o=class extends vt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)}emplaceBack(t){let e=this.length;return this.resize(e+1),this.emplace(e,t)}emplace(t,e){let r=t*1;return this.uint32[r+0]=e,t}};_o.prototype.bytesPerElement=4,C("StructArrayLayout1ul4",_o);var Ao=class extends vt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(t,e,r,i,n,a,s,o,l){let u=this.length;return this.resize(u+1),this.emplace(u,t,e,r,i,n,a,s,o,l)}emplace(t,e,r,i,n,a,s,o,l,u){let h=t*10,c=t*5;return this.int16[h+0]=e,this.int16[h+1]=r,this.int16[h+2]=i,this.int16[h+3]=n,this.int16[h+4]=a,this.int16[h+5]=s,this.uint32[c+3]=o,this.uint16[h+8]=l,this.uint16[h+9]=u,t}};Ao.prototype.bytesPerElement=20,C("StructArrayLayout6i1ul2ui20",Ao);var So=class extends vt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(t,e,r,i,n,a){let s=this.length;return this.resize(s+1),this.emplace(s,t,e,r,i,n,a)}emplace(t,e,r,i,n,a,s){let o=t*6;return this.int16[o+0]=e,this.int16[o+1]=r,this.int16[o+2]=i,this.int16[o+3]=n,this.int16[o+4]=a,this.int16[o+5]=s,t}};So.prototype.bytesPerElement=12,C("StructArrayLayout2i2i2i12",So);var Yh=class extends vt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(t,e,r,i,n){let a=this.length;return this.resize(a+1),this.emplace(a,t,e,r,i,n)}emplace(t,e,r,i,n,a){let s=t*4,o=t*8;return this.float32[s+0]=e,this.float32[s+1]=r,this.float32[s+2]=i,this.int16[o+6]=n,this.int16[o+7]=a,t}};Yh.prototype.bytesPerElement=16,C("StructArrayLayout2f1f2i16",Yh);var Eo=class extends vt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(t,e,r,i,n,a){let s=this.length;return this.resize(s+1),this.emplace(s,t,e,r,i,n,a)}emplace(t,e,r,i,n,a,s){let o=t*16,l=t*4,u=t*8;return this.uint8[o+0]=e,this.uint8[o+1]=r,this.float32[l+1]=i,this.float32[l+2]=n,this.int16[u+6]=a,this.int16[u+7]=s,t}};Eo.prototype.bytesPerElement=16,C("StructArrayLayout2ub2f2i16",Eo);var Fo=class extends vt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(t,e,r){let i=this.length;return this.resize(i+1),this.emplace(i,t,e,r)}emplace(t,e,r,i){let n=t*3;return this.uint16[n+0]=e,this.uint16[n+1]=r,this.uint16[n+2]=i,t}};Fo.prototype.bytesPerElement=6,C("StructArrayLayout3ui6",Fo);var To=class extends vt{_refreshViews(){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)}emplaceBack(t,e,r,i,n,a,s,o,l,u,h,c,p,f,d,y,m,g){let x=this.length;return this.resize(x+1),this.emplace(x,t,e,r,i,n,a,s,o,l,u,h,c,p,f,d,y,m,g)}emplace(t,e,r,i,n,a,s,o,l,u,h,c,p,f,d,y,m,g,x){let v=t*26,b=t*13,w=t*52;return this.int16[v+0]=e,this.int16[v+1]=r,this.uint16[v+2]=i,this.uint16[v+3]=n,this.uint32[b+2]=a,this.uint32[b+3]=s,this.uint32[b+4]=o,this.uint16[v+10]=l,this.uint16[v+11]=u,this.uint16[v+12]=h,this.float32[b+7]=c,this.float32[b+8]=p,this.uint8[w+36]=f,this.uint8[w+37]=d,this.uint8[w+38]=y,this.uint32[b+10]=m,this.int16[v+22]=g,this.float32[b+12]=x,t}};To.prototype.bytesPerElement=52,C("StructArrayLayout2i2ui3ul3ui2f3ub1ul1i1f52",To);var ko=class extends vt{_refreshViews(){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)}emplaceBack(t,e,r,i,n,a,s,o,l,u,h,c,p,f,d,y,m,g,x,v,b,w,_,A,S,T,L,O,B){let V=this.length;return this.resize(V+1),this.emplace(V,t,e,r,i,n,a,s,o,l,u,h,c,p,f,d,y,m,g,x,v,b,w,_,A,S,T,L,O,B)}emplace(t,e,r,i,n,a,s,o,l,u,h,c,p,f,d,y,m,g,x,v,b,w,_,A,S,T,L,O,B,V){let F=t*34,$=t*17;return this.int16[F+0]=e,this.int16[F+1]=r,this.int16[F+2]=i,this.int16[F+3]=n,this.int16[F+4]=a,this.int16[F+5]=s,this.int16[F+6]=o,this.int16[F+7]=l,this.uint16[F+8]=u,this.uint16[F+9]=h,this.uint16[F+10]=c,this.uint16[F+11]=p,this.uint16[F+12]=f,this.uint16[F+13]=d,this.uint16[F+14]=y,this.uint16[F+15]=m,this.uint16[F+16]=g,this.uint16[F+17]=x,this.uint16[F+18]=v,this.uint16[F+19]=b,this.uint16[F+20]=w,this.uint16[F+21]=_,this.uint16[F+22]=A,this.uint32[$+12]=S,this.float32[$+13]=T,this.float32[$+14]=L,this.uint16[F+30]=O,this.uint16[F+31]=B,this.float32[$+16]=V,t}};ko.prototype.bytesPerElement=68,C("StructArrayLayout8i15ui1ul2f2ui1f68",ko);var Sa=class extends vt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(t){let e=this.length;return this.resize(e+1),this.emplace(e,t)}emplace(t,e){let r=t*1;return this.float32[r+0]=e,t}};Sa.prototype.bytesPerElement=4,C("StructArrayLayout1f4",Sa);var Io=class extends vt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(t,e,r){let i=this.length;return this.resize(i+1),this.emplace(i,t,e,r)}emplace(t,e,r,i){let n=t*6,a=t*3;return this.uint16[n+0]=e,this.float32[a+1]=r,this.float32[a+2]=i,t}};Io.prototype.bytesPerElement=12,C("StructArrayLayout1ui2f12",Io);var Co=class extends vt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(t,e,r){let i=this.length;return this.resize(i+1),this.emplace(i,t,e,r)}emplace(t,e,r,i){let n=t*2,a=t*4;return this.uint32[n+0]=e,this.uint16[a+2]=r,this.uint16[a+3]=i,t}};Co.prototype.bytesPerElement=8,C("StructArrayLayout1ul2ui8",Co);var Mo=class extends vt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(t,e){let r=this.length;return this.resize(r+1),this.emplace(r,t,e)}emplace(t,e,r){let i=t*2;return this.uint16[i+0]=e,this.uint16[i+1]=r,t}};Mo.prototype.bytesPerElement=4,C("StructArrayLayout2ui4",Mo);var Wh=class extends vt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(t){let e=this.length;return this.resize(e+1),this.emplace(e,t)}emplace(t,e){let r=t*1;return this.uint16[r+0]=e,t}};Wh.prototype.bytesPerElement=2,C("StructArrayLayout1ui2",Wh);var Bo=class extends vt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(t,e,r,i){let n=this.length;return this.resize(n+1),this.emplace(n,t,e,r,i)}emplace(t,e,r,i,n){let a=t*4;return this.float32[a+0]=e,this.float32[a+1]=r,this.float32[a+2]=i,this.float32[a+3]=n,t}};Bo.prototype.bytesPerElement=16,C("StructArrayLayout4f16",Bo);var nd=class extends Sn{get anchorPointX(){return this._structArray.int16[this._pos2+0]}get anchorPointY(){return this._structArray.int16[this._pos2+1]}get x1(){return this._structArray.int16[this._pos2+2]}get y1(){return this._structArray.int16[this._pos2+3]}get x2(){return this._structArray.int16[this._pos2+4]}get y2(){return this._structArray.int16[this._pos2+5]}get featureIndex(){return this._structArray.uint32[this._pos4+3]}get sourceLayerIndex(){return this._structArray.uint16[this._pos2+8]}get bucketIndex(){return this._structArray.uint16[this._pos2+9]}get anchorPoint(){return new M(this.anchorPointX,this.anchorPointY)}};nd.prototype.size=20;var Rl=class extends Ao{get(t){return new nd(this,t)}};C("CollisionBoxArray",Rl);var ad=class extends Sn{get anchorX(){return this._structArray.int16[this._pos2+0]}get anchorY(){return this._structArray.int16[this._pos2+1]}get glyphStartIndex(){return this._structArray.uint16[this._pos2+2]}get numGlyphs(){return this._structArray.uint16[this._pos2+3]}get vertexStartIndex(){return this._structArray.uint32[this._pos4+2]}get lineStartIndex(){return this._structArray.uint32[this._pos4+3]}get lineLength(){return this._structArray.uint32[this._pos4+4]}get segment(){return this._structArray.uint16[this._pos2+10]}get lowerSize(){return this._structArray.uint16[this._pos2+11]}get upperSize(){return this._structArray.uint16[this._pos2+12]}get lineOffsetX(){return this._structArray.float32[this._pos4+7]}get lineOffsetY(){return this._structArray.float32[this._pos4+8]}get writingMode(){return this._structArray.uint8[this._pos1+36]}get placedOrientation(){return this._structArray.uint8[this._pos1+37]}set placedOrientation(t){this._structArray.uint8[this._pos1+37]=t}get hidden(){return this._structArray.uint8[this._pos1+38]}set hidden(t){this._structArray.uint8[this._pos1+38]=t}get crossTileID(){return this._structArray.uint32[this._pos4+10]}set crossTileID(t){this._structArray.uint32[this._pos4+10]=t}get associatedIconIndex(){return this._structArray.int16[this._pos2+22]}get heightOffset(){return this._structArray.float32[this._pos4+12]}};ad.prototype.size=52;var sd=class extends To{get(t){return new ad(this,t)}};C("PlacedSymbolArray",sd);var od=class extends Sn{get anchorX(){return this._structArray.int16[this._pos2+0]}get anchorY(){return this._structArray.int16[this._pos2+1]}get rightJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+2]}get centerJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+3]}get leftJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+4]}get verticalPlacedTextSymbolIndex(){return this._structArray.int16[this._pos2+5]}get placedIconSymbolIndex(){return this._structArray.int16[this._pos2+6]}get verticalPlacedIconSymbolIndex(){return this._structArray.int16[this._pos2+7]}get key(){return this._structArray.uint16[this._pos2+8]}get textBoxStartIndex(){return this._structArray.uint16[this._pos2+9]}get textBoxEndIndex(){return this._structArray.uint16[this._pos2+10]}get verticalTextBoxStartIndex(){return this._structArray.uint16[this._pos2+11]}get verticalTextBoxEndIndex(){return this._structArray.uint16[this._pos2+12]}get iconBoxStartIndex(){return this._structArray.uint16[this._pos2+13]}get iconBoxEndIndex(){return this._structArray.uint16[this._pos2+14]}get verticalIconBoxStartIndex(){return this._structArray.uint16[this._pos2+15]}get verticalIconBoxEndIndex(){return this._structArray.uint16[this._pos2+16]}get featureIndex(){return this._structArray.uint16[this._pos2+17]}get numHorizontalGlyphVertices(){return this._structArray.uint16[this._pos2+18]}get numVerticalGlyphVertices(){return this._structArray.uint16[this._pos2+19]}get numIconVertices(){return this._structArray.uint16[this._pos2+20]}get numVerticalIconVertices(){return this._structArray.uint16[this._pos2+21]}get useRuntimeCollisionCircles(){return this._structArray.uint16[this._pos2+22]}get crossTileID(){return this._structArray.uint32[this._pos4+12]}set crossTileID(t){this._structArray.uint32[this._pos4+12]=t}get textBoxScale(){return this._structArray.float32[this._pos4+13]}get collisionCircleDiameter(){return this._structArray.float32[this._pos4+14]}get textAnchorOffsetStartIndex(){return this._structArray.uint16[this._pos2+30]}get textAnchorOffsetEndIndex(){return this._structArray.uint16[this._pos2+31]}get heightOffset(){return this._structArray.float32[this._pos4+16]}};od.prototype.size=68;var ld=class extends ko{get(t){return new od(this,t)}};C("SymbolInstanceArray",ld);var ud=class extends Sa{getoffsetX(t){return this.float32[t*1+0]}};C("GlyphOffsetArray",ud);var hd=class extends mo{getx(t){return this.int16[t*3+0]}gety(t){return this.int16[t*3+1]}gettileUnitDistanceFromAnchor(t){return this.int16[t*3+2]}};C("SymbolLineVertexArray",hd);var cd=class extends Sn{get textAnchor(){return this._structArray.uint16[this._pos2+0]}get textOffset0(){return this._structArray.float32[this._pos4+1]}get textOffset1(){return this._structArray.float32[this._pos4+2]}};cd.prototype.size=12;var pd=class extends Io{get(t){return new cd(this,t)}};C("TextAnchorOffsetArray",pd);var fd=class extends Sn{get featureIndex(){return this._structArray.uint32[this._pos4+0]}get sourceLayerIndex(){return this._structArray.uint16[this._pos2+2]}get bucketIndex(){return this._structArray.uint16[this._pos2+3]}};fd.prototype.size=8;var dd=class extends Co{get(t){return new fd(this,t)}};C("FeatureIndexArray",dd);var yg=class extends pn{};var mg=class extends pn{},gg=class extends pn{},xg=class extends go{},vg=class extends xo{},bg=class extends fn{},Vr=class extends vo{},Zh=class extends bo{},wg=class extends wo{},Dg=class extends Do{},_g=class extends _o{},Hh=class extends So{};var Ag=class extends Eo{};var En=class extends Fo{},Po=class extends Mo{};var zo=Et([{name:"a_pos",components:2,type:"Int16"}],4),Sg=zo.members;zo.size,zo.alignment;var ie=class Ur{constructor(e=[]){this._forceNewSegmentOnNextPrepare=!1,this.segments=e}prepareSegment(e,r,i,n){let a=this.segments[this.segments.length-1];return e>Ur.MAX_VERTEX_ARRAY_LENGTH&&Mt(`Max vertices per segment is ${Ur.MAX_VERTEX_ARRAY_LENGTH}: bucket requested ${e}. Consider using the \\`fillLargeMeshArrays\\` function if you require meshes with more than ${Ur.MAX_VERTEX_ARRAY_LENGTH} vertices.`),this._forceNewSegmentOnNextPrepare||!a||a.vertexLength+e>Ur.MAX_VERTEX_ARRAY_LENGTH||a.sortKey!==n?this.createNewSegment(r,i,n):a}createNewSegment(e,r,i){let n={vertexOffset:e.length,primitiveOffset:r.length,vertexLength:0,primitiveLength:0,vaos:{}};return i!==void 0&&(n.sortKey=i),this._forceNewSegmentOnNextPrepare=!1,this.segments.push(n),n}getOrCreateLatestSegment(e,r,i){return this.prepareSegment(0,e,r,i)}forceNewSegmentOnNextPrepare(){this._forceNewSegmentOnNextPrepare=!0}get(){return this.segments}destroy(){for(let e of this.segments)for(let r in e.vaos)e.vaos[r].destroy()}static simpleSegment(e,r,i,n){return new Ur([{vertexOffset:e,primitiveOffset:r,vertexLength:i,primitiveLength:n,vaos:{},sortKey:0}])}};ie.MAX_VERTEX_ARRAY_LENGTH=2**16-1,C("SegmentVector",ie);function Kh(t,e){return t=en(Math.floor(t),0,255),e=en(Math.floor(e),0,255),256*t+e}var Eg=Et([{name:"a_pattern_from",components:4,type:"Uint16"},{name:"a_pattern_to",components:4,type:"Uint16"},{name:"a_pixel_ratio_from",components:1,type:"Uint16"},{name:"a_pixel_ratio_to",components:1,type:"Uint16"}]),Fg=Et([{name:"a_dasharray_from",components:4,type:"Uint16"},{name:"a_dasharray_to",components:4,type:"Uint16"}]),Tg=ml(((t,e)=>{function r(i,n){for(var a=i.length&3,s=i.length-a,o=n,l,u=3432918353,h=461845907,c,p=0;p>>16)*u&65535)<<16)&4294967295,c=c<<15|c>>>17,c=(c&65535)*h+(((c>>>16)*h&65535)<<16)&4294967295,o^=c,o=o<<13|o>>>19,l=(o&65535)*5+(((o>>>16)*5&65535)<<16)&4294967295,o=(l&65535)+27492+(((l>>>16)+58964&65535)<<16);switch(c=0,a){case 3:c^=(i.charCodeAt(p+2)&255)<<16;case 2:c^=(i.charCodeAt(p+1)&255)<<8;case 1:c^=i.charCodeAt(p)&255,c=(c&65535)*u+(((c>>>16)*u&65535)<<16)&4294967295,c=c<<15|c>>>17,c=(c&65535)*h+(((c>>>16)*h&65535)<<16)&4294967295,o^=c}return o^=i.length,o^=o>>>16,o=(o&65535)*2246822507+(((o>>>16)*2246822507&65535)<<16)&4294967295,o^=o>>>13,o=(o&65535)*3266489909+(((o>>>16)*3266489909&65535)<<16)&4294967295,o^=o>>>16,o>>>0}e!==void 0&&(e.exports=r)})),kg=ml(((t,e)=>{function r(i,n){for(var a=i.length,s=n^a,o=0,l;a>=4;)l=i.charCodeAt(o)&255|(i.charCodeAt(++o)&255)<<8|(i.charCodeAt(++o)&255)<<16|(i.charCodeAt(++o)&255)<<24,l=(l&65535)*1540483477+(((l>>>16)*1540483477&65535)<<16),l^=l>>>24,l=(l&65535)*1540483477+(((l>>>16)*1540483477&65535)<<16),s=(s&65535)*1540483477+(((s>>>16)*1540483477&65535)<<16)^l,a-=4,++o;switch(a){case 3:s^=(i.charCodeAt(o+2)&255)<<16;case 2:s^=(i.charCodeAt(o+1)&255)<<8;case 1:s^=i.charCodeAt(o)&255,s=(s&65535)*1540483477+(((s>>>16)*1540483477&65535)<<16)}return s^=s>>>13,s=(s&65535)*1540483477+(((s>>>16)*1540483477&65535)<<16),s^=s>>>15,s>>>0}e.exports=r})),Ea=M1(ml(((t,e)=>{var r=Tg(),i=kg();e.exports=r,e.exports.murmur3=r,e.exports.murmur2=i}))(),1),yd=class md{constructor(){this.ids=[],this.positions=[],this.indexed=!1}add(e,r,i,n){this.ids.push(Jh(e)),this.positions.push(r,i,n)}getPositions(e){if(!this.indexed)throw Error("Trying to get index, but feature positions are not indexed");let r=Jh(e),i=0,n=this.ids.length-1;for(;i>1;this.ids[s]>=r?n=s:i=s+1}let a=[];for(;this.ids[i]===r;){let s=this.positions[3*i],o=this.positions[3*i+1],l=this.positions[3*i+2];a.push({index:s,start:o,end:l}),i++}return a}static serialize(e,r){let i=new Float64Array(e.ids),n=new Uint32Array(e.positions);return Lo(i,n,0,i.length-1),r&&r.push(i.buffer,n.buffer),{ids:i,positions:n}}static deserialize(e){let r=new md;return r.ids=e.ids,r.positions=e.positions,r.indexed=!0,r}};function Jh(t){let e=+t;return!isNaN(e)&&e<=2**53-1?e:(0,Ea.default)(String(t))}function Lo(t,e,r,i){for(;r>1],a=r-1,s=i+1;for(;;){do a++;while(t[a]n);if(a>=s)break;Kn(t,a,s),Kn(e,3*a,3*s),Kn(e,3*a+1,3*s+1),Kn(e,3*a+2,3*s+2)}s-r`u_${i}`),this.type=r}setUniform(t,e,r){t.set(r.constantOr(this.value))}getBinding(t,e,r){return this.type==="color"?new Cg(t,e):new Nl(t,e)}},fr=class{constructor(t,e){this.uniformNames=e.map(r=>`u_${r}`),this.patternFrom=null,this.patternTo=null,this.pixelRatioFrom=1,this.pixelRatioTo=1}setConstantPatternPositions(t,e){this.pixelRatioFrom=e.pixelRatio,this.pixelRatioTo=t.pixelRatio,this.patternFrom=e.tlbr,this.patternTo=t.tlbr}setConstantDashPositions(t,e){this.dashTo=[0,t.y,t.height,t.width],this.dashFrom=[0,e.y,e.height,e.width]}setUniform(t,e,r,i){let n=null;i==="u_pattern_to"?n=this.patternTo:i==="u_pattern_from"?n=this.patternFrom:i==="u_dasharray_to"?n=this.dashTo:i==="u_dasharray_from"?n=this.dashFrom:i==="u_pixel_ratio_to"?n=this.pixelRatioTo:i==="u_pixel_ratio_from"&&(n=this.pixelRatioFrom),n!==null&&t.set(n)}getBinding(t,e,r){return r.startsWith("u_pattern")||r.startsWith("u_dasharray_")?new Ig(t,e):new Nl(t,e)}},Ce=class{constructor(t,e,r,i){this.expression=t,this.type=r,this.maxValue=0,this.paintVertexAttributes=e.map(n=>({name:`a_${n}`,type:"Float32",components:r==="color"?2:1,offset:0})),this.paintVertexArray=new i}populatePaintArray(t,e,r){let i=this.paintVertexArray.length,n=this.expression.evaluate(new st(0,r),e,{},r.canonical,[],r.formattedSection);this.paintVertexArray.resize(t),this._setPaintValue(i,t,n)}updatePaintArray(t,e,r,i,n){let a=this.expression.evaluate(new st(0,n),r,i);this._setPaintValue(t,e,a)}_setPaintValue(t,e,r){if(this.type==="color"){let i=Vo(r);for(let n=t;n`u_${s}_t`),this.type=r,this.useIntegerZoom=i,this.zoom=n,this.maxValue=0,this.paintVertexAttributes=e.map(s=>({name:`a_${s}`,type:"Float32",components:r==="color"?4:2,offset:0})),this.paintVertexArray=new a}populatePaintArray(t,e,r){let i=this.expression.evaluate(new st(this.zoom,r),e,{},r.canonical,[],r.formattedSection),n=this.expression.evaluate(new st(this.zoom+1,r),e,{},r.canonical,[],r.formattedSection),a=this.paintVertexArray.length;this.paintVertexArray.resize(t),this._setPaintValue(a,t,i,n)}updatePaintArray(t,e,r,i,n){let a=this.expression.evaluate(new st(this.zoom,n),r,i),s=this.expression.evaluate(new st(this.zoom+1,n),r,i);this._setPaintValue(t,e,a,s)}_setPaintValue(t,e,r,i){if(this.type==="color"){let n=Vo(r),a=Vo(i);for(let s=t;s`#define HAS_UNIFORM_${i}`))}return t}getBinderAttributes(){let t=[];for(let e in this.binders){let r=this.binders[e];if(r instanceof Ce||r instanceof ce)for(let i of r.paintVertexAttributes)t.push(i.name);else if(r instanceof Ze){let i=r.getVertexAttributes();for(let n of i)t.push(n.name)}}return t}getBinderUniforms(){let t=[];for(let e in this.binders){let r=this.binders[e];if(r instanceof qi||r instanceof fr||r instanceof ce)for(let i of r.uniformNames)t.push(i)}return t}getPaintVertexBuffers(){return this._buffers}getUniforms(t,e){let r=[];for(let i in this.binders){let n=this.binders[i];if(n instanceof qi||n instanceof fr||n instanceof ce){for(let a of n.uniformNames)if(e[a]){let s=n.getBinding(t,e[a],a);r.push({name:a,property:i,binding:s})}}}return r}setUniforms(t,e,r,i){for(let{name:n,property:a,binding:s}of e)this.binders[a].setUniform(s,i,r.get(a),n)}updatePaintBuffers(t){this._buffers=[];for(let e in this.binders){let r=this.binders[e];if(t&&r instanceof Ze){let i=t.fromScale===2?r.zoomInPaintVertexBuffer:r.zoomOutPaintVertexBuffer;i&&this._buffers.push(i)}else(r instanceof Ce||r instanceof ce)&&r.paintVertexBuffer&&this._buffers.push(r.paintVertexBuffer)}}upload(t){for(let e in this.binders){let r=this.binders[e];(r instanceof Ce||r instanceof ce||r instanceof Ze)&&r.upload(t)}this.updatePaintBuffers()}destroy(){for(let t in this.binders){let e=this.binders[t];(e instanceof Ce||e instanceof ce||e instanceof Ze)&&e.destroy()}}},Dr=class{constructor(t,e,r=()=>!0){this.programConfigurations={};for(let i of t)this.programConfigurations[i.id]=new vd(i,e,r);this.needsUpload=!1,this._featureMap=new yd,this._bufferOffset=0}populatePaintArrays(t,e,r,i){for(let n in this.programConfigurations)this.programConfigurations[n].populatePaintArrays(t,e,i);e.id!==void 0&&this._featureMap.add(e.id,r,this._bufferOffset,t),this._bufferOffset=t,this.needsUpload=!0}updatePaintArrays(t,e,r,i){for(let n of r)this.needsUpload=this.programConfigurations[n.id].updatePaintArrays(t,this._featureMap,e,n,i)||this.needsUpload}get(t){return this.programConfigurations[t]}upload(t){if(this.needsUpload){for(let e in this.programConfigurations)this.programConfigurations[e].upload(t);this.needsUpload=!1}}destroy(){for(let t in this.programConfigurations)this.programConfigurations[t].destroy()}};function Mg(t,e){return{"text-opacity":["opacity"],"icon-opacity":["opacity"],"text-color":["fill_color"],"icon-color":["fill_color"],"text-halo-color":["halo_color"],"icon-halo-color":["halo_color"],"text-halo-blur":["halo_blur"],"icon-halo-blur":["halo_blur"],"text-halo-width":["halo_width"],"icon-halo-width":["halo_width"],"line-gap-width":["gapwidth"],"line-dasharray":["dasharray_to","dasharray_from"],"line-pattern":["pattern_to","pattern_from","pixel_ratio_to","pixel_ratio_from"],"fill-pattern":["pattern_to","pattern_from","pixel_ratio_to","pixel_ratio_from"],"fill-extrusion-pattern":["pattern_to","pattern_from","pixel_ratio_to","pixel_ratio_from"]}[t]||[t.replace(`${e}-`,"").replace(/-/g,"_")]}function Bg(t){return{"line-pattern":{source:Vr,composite:Vr},"fill-pattern":{source:Vr,composite:Vr},"fill-extrusion-pattern":{source:Vr,composite:Vr},"line-dasharray":{source:Zh,composite:Zh}}[t]}function Qh(t,e,r){var n;let i={color:{source:fn,composite:Bo},number:{source:Sa,composite:fn}};return((n=Bg(t))==null?void 0:n[r])||i[e][r]}C("ConstantBinder",qi),C("CrossFadedConstantBinder",fr),C("SourceExpressionBinder",Ce),C("CrossFadedPatternBinder",gd),C("CrossFadedDasharrayBinder",xd),C("CompositeExpressionBinder",ce),C("ProgramConfiguration",vd,{omit:["_buffers"]}),C("ProgramConfigurationSet",Dr);var Oo=2**14-1,tc=-Oo-1;function Fr(t){let e=gt/t.extent,r=t.loadGeometry();for(let i of r)for(let n of i){let a=Math.round(n.x*e),s=Math.round(n.y*e);n.x=en(a,tc,Oo),n.y=en(s,tc,Oo),(an.x+1||sn.y+1)&&Mt("Geometry exceeds allowed extent, reduce your vector tile buffer size")}return r}function hi(t,e){return{type:t.type,id:t.id,properties:t.properties,geometry:e?Fr(t):[]}}var ec=-32768;function Pg(t,e,r,i,n){t.emplaceBack(ec+e*8+i,ec+r*8+n)}var Ul=class{constructor(t){this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map(e=>e.id),this.index=t.index,this.hasDependencies=!1,this.layoutVertexArray=new mg,this.indexArray=new En,this.segments=new ie,this.programConfigurations=new Dr(t.layers,t.zoom),this.stateDependentLayerIds=this.layers.filter(e=>e.isStateDependent()).map(e=>e.id)}populate(t,e,r){let i=this.layers[0],n=[],a=null,s=!1,o=i.type==="heatmap";if(i.type==="circle"){let c=i;a=c.layout.get("circle-sort-key"),s=!a.isConstant(),o||(o=c.paint.get("circle-pitch-alignment")==="map")}let l=o?e.subdivisionGranularity.circle:1,u=new st(this.zoom),h=this.layers[0]._featureFilter.needGeometry;for(let{feature:c,id:p,index:f,sourceLayerIndex:d}of t){let y=hi(c,h);if(!this.layers[0]._featureFilter.filter(u,y,r))continue;let m=s?a.evaluate(y,{},r):void 0,g={id:p,properties:c.properties,type:c.type,sourceLayerIndex:d,index:f,geometry:h?y.geometry:Fr(c),patterns:{},sortKey:m};n.push(g)}s&&n.sort((c,p)=>c.sortKey-p.sortKey);for(let c of n){let{geometry:p,index:f,sourceLayerIndex:d}=c,y=t[f].feature;this.addFeature(c,p,f,r,l),e.featureIndex.insert(y,p,f,d,this.index)}}update(t,e,r){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(t,e,this.stateDependentLayers,{imagePositions:r})}addFeatures(t){}isEmpty(){return this.layoutVertexArray.length===0}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(t){this.uploaded||(this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,Sg),this.indexBuffer=t.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(t),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())}addFeature(t,e,r,i,n=1){let a;switch(n){case 1:a=[0,7];break;case 3:a=[0,2,5,7];break;case 5:a=[0,1,3,4,6,7];break;case 7:a=[0,1,2,3,4,5,6,7];break;default:throw Error(`Invalid circle bucket granularity: ${n}; valid values are 1, 3, 5, 7.`)}let s=a.length;for(let o of e)for(let l of o){let u=l.x,h=l.y;if(u<0||u>=8192||h<0||h>=8192)continue;let c=this.segments.prepareSegment(s*s,this.layoutVertexArray,this.indexArray,t.sortKey),p=c.vertexLength;for(let f=0;f=3){for(let n of i)if(oi(t,n))return!0}if(Vg(t,i,r))return!0}return!1}function Vg(t,e,r){if(t.length>1){if(ql(t,e))return!0;for(let i of e)if(Ro(i,t,r))return!0}for(let i of t)if(Ro(i,e,r))return!0;return!1}function ql(t,e){if(t.length===0||e.length===0)return!1;for(let r=0;r1?t.distSqr(r):t.distSqr(r.sub(e)._mult(n)._add(e))}function rc(t,e){let r=!1,i,n,a;for(let s of t){i=s;for(let o=0,l=i.length-1;oe.y!=a.y>e.y&&e.x<(a.x-n.x)*(e.y-n.y)/(a.y-n.y)+n.x&&(r=!r)}return r}function oi(t,e){let r=!1;for(let i=0,n=t.length-1;ie.y!=s.y>e.y&&e.x<(s.x-a.x)*(e.y-a.y)/(s.y-a.y)+a.x&&(r=!r)}return r}function Rg(t,e,r,i,n){for(let s of t)if(e<=s.x&&r<=s.y&&i>=s.x&&n>=s.y)return!0;let a=[new M(e,r),new M(e,n),new M(i,n),new M(i,r)];if(t.length>2){for(let s of a)if(oi(t,s))return!0}for(let s=0;sn.x&&e.x>n.x||t.yn.y&&e.y>n.y)return!1;let a=Qe(t,e,r[0]);return a!==Qe(t,e,r[1])||a!==Qe(t,e,r[2])||a!==Qe(t,e,r[3])}function Wr(t,e,r){let i=e.paint.get(t).value;return i.kind==="constant"?i.value:r.programConfigurations.get(e.id).getMaxValue(t)}function Ka(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function Ja(t,e,r,i,n){if(!e[0]&&!e[1])return t;let a=M.convert(e)._mult(n);r==="viewport"&&a._rotate(-i);let s=[];for(let o of t)s.push(o.sub(a));return s}function Ng(t){let e=[];for(let r=0;rjl(n,e,r,i))}var ic,Wg=()=>ic||(ic=new Yt({"circle-sort-key":new U(D.layout_circle["circle-sort-key"],"circle-sort-key")})),nc,Zg=()=>nc||(nc=new Yt({"circle-radius":new U(D.paint_circle["circle-radius"],"circle-radius"),"circle-color":new U(D.paint_circle["circle-color"],"circle-color"),"circle-blur":new U(D.paint_circle["circle-blur"],"circle-blur"),"circle-opacity":new U(D.paint_circle["circle-opacity"],"circle-opacity"),"circle-translate":new R(D.paint_circle["circle-translate"],"circle-translate"),"circle-translate-anchor":new R(D.paint_circle["circle-translate-anchor"],"circle-translate-anchor"),"circle-pitch-scale":new R(D.paint_circle["circle-pitch-scale"],"circle-pitch-scale"),"circle-pitch-alignment":new R(D.paint_circle["circle-pitch-alignment"],"circle-pitch-alignment"),"circle-stroke-width":new U(D.paint_circle["circle-stroke-width"],"circle-stroke-width"),"circle-stroke-color":new U(D.paint_circle["circle-stroke-color"],"circle-stroke-color"),"circle-stroke-opacity":new U(D.paint_circle["circle-stroke-opacity"],"circle-stroke-opacity")})),Hg={get paint(){return Zg()},get layout(){return Wg()}};var Kg=class extends ye{constructor(t,e){super(t,Hg,e)}createBucket(t){return new Ul(t)}queryRadius(t){let e=t;return Wr("circle-radius",this,e)+Wr("circle-stroke-width",this,e)+Ka(this.paint.get("circle-translate"))}queryIntersectsFeature({queryGeometry:t,feature:e,featureState:r,geometry:i,transform:n,pixelsToTileUnits:a,unwrappedTileID:s,getElevation:o}){let l=Ja(t,this.paint.get("circle-translate"),this.paint.get("circle-translate-anchor"),-n.bearingInRadians,a),u=this.paint.get("circle-radius").evaluate(e,r)+this.paint.get("circle-stroke-width").evaluate(e,r),h=this.paint.get("circle-pitch-scale"),c=this.paint.get("circle-pitch-alignment"),p,f;return c==="map"?(p=l,f=u*a):(p=Yg(l,n,s,o),f=u),Dd({queryGeometry:p,size:f,transform:n,unwrappedTileID:s,getElevation:o,pitchAlignment:c,pitchScale:h},i)}},_d=class extends Ul{};C("HeatmapBucket",_d,{omit:["layers"]});var ac,Jg=()=>ac||(ac=new Yt({"heatmap-radius":new U(D.paint_heatmap["heatmap-radius"],"heatmap-radius"),"heatmap-weight":new U(D.paint_heatmap["heatmap-weight"],"heatmap-weight"),"heatmap-intensity":new R(D.paint_heatmap["heatmap-intensity"],"heatmap-intensity"),"heatmap-color":new Za(D.paint_heatmap["heatmap-color"],"heatmap-color"),"heatmap-opacity":new R(D.paint_heatmap["heatmap-opacity"],"heatmap-opacity")})),Qg={get paint(){return Jg()}};function Gl(t,{width:e,height:r},i,n){if(!n)n=new Uint8Array(e*r*i);else if(n instanceof Uint8ClampedArray)n=new Uint8Array(n.buffer);else if(n.length!==e*r*i)throw RangeError(`mismatched image size. expected: ${n.length} but got: ${e*r*i}`);return t.width=e,t.height=r,t.data=n,t}function Ad(t,{width:e,height:r},i){if(e===t.width&&r===t.height)return;let n=Gl({},{width:e,height:r},i);Xl(t,n,{x:0,y:0},{x:0,y:0},{width:Math.min(t.width,e),height:Math.min(t.height,r)},i),t.width=e,t.height=r,t.data=n.data}function Xl(t,e,r,i,n,a){if(n.width===0||n.height===0)return e;if(n.width>t.width||n.height>t.height||r.x>t.width-n.width||r.y>t.height-n.height)throw RangeError("out of range source coordinates for image copy");if(n.width>e.width||n.height>e.height||i.x>e.width-n.width||i.y>e.height-n.height)throw RangeError("out of range destination coordinates for image copy");let s=t.data,o=e.data;if(s===o)throw Error("srcData equals dstData, so image is already copied");for(let l=0;l{e[t.evaluationKey]=l;let u=t.expression.evaluate(e);n.setPixel(s/4/r,o/4,u)};if(t.clips)for(let s=0,o=0;ssc||(sc=new Yt({"hillshade-illumination-direction":new R(D.paint_hillshade["hillshade-illumination-direction"],"hillshade-illumination-direction"),"hillshade-illumination-altitude":new R(D.paint_hillshade["hillshade-illumination-altitude"],"hillshade-illumination-altitude"),"hillshade-illumination-anchor":new R(D.paint_hillshade["hillshade-illumination-anchor"],"hillshade-illumination-anchor"),"hillshade-exaggeration":new R(D.paint_hillshade["hillshade-exaggeration"],"hillshade-exaggeration"),"hillshade-shadow-color":new R(D.paint_hillshade["hillshade-shadow-color"],"hillshade-shadow-color"),"hillshade-highlight-color":new R(D.paint_hillshade["hillshade-highlight-color"],"hillshade-highlight-color"),"hillshade-accent-color":new R(D.paint_hillshade["hillshade-accent-color"],"hillshade-accent-color"),"hillshade-method":new R(D.paint_hillshade["hillshade-method"],"hillshade-method"),resampling:new R(D.paint_hillshade.resampling,"resampling")})),nx={get paint(){return ix()}};var ax=class extends ye{constructor(t,e){super(t,nx,e),this.recalculate({zoom:0,zoomHistory:{}},void 0)}getIlluminationProperties(){let t=this.paint.get("hillshade-illumination-direction").values,e=this.paint.get("hillshade-illumination-altitude").values,r=this.paint.get("hillshade-highlight-color").values,i=this.paint.get("hillshade-shadow-color").values,n=Math.max(t.length,e.length,r.length,i.length);t=t.concat(Array(n-t.length).fill(t.at(-1))),e=e.concat(Array(n-e.length).fill(e.at(-1))),r=r.concat(Array(n-r.length).fill(r.at(-1))),i=i.concat(Array(n-i.length).fill(i.at(-1)));let a=e.map(yh);return{directionRadians:t.map(yh),altitudeRadians:a,shadowColor:i,highlightColor:r}}hasOffscreenPass(){return this.paint.get("hillshade-exaggeration")!==0&&!this.isHidden()}},oc,sx=()=>oc||(oc=new Yt({"color-relief-opacity":new R(D["paint_color-relief"]["color-relief-opacity"],"color-relief-opacity"),"color-relief-color":new Za(D["paint_color-relief"]["color-relief-color"],"color-relief-color"),resampling:new R(D["paint_color-relief"].resampling,"resampling")})),ox={get paint(){return sx()}};function Jn(t){return"data"in t}var lc=class{constructor(t,e,r,i){this.context=t,this.format=r,this.texture=t.gl.createTexture(),this._ownedHandle=this.texture,this.update(e,i)}update(t,e,r){var u;let{width:i,height:n}=t,a=(((u=this.size)==null?void 0:u[0])!==i||this.size[1]!==n)&&!r,{context:s}=this,{gl:o}=s;this.useMipmap=!!(e!=null&&e.useMipmap),a&&this.size&&this.format===o.RGBA&&(o.deleteTexture(this.texture),this.texture=o.createTexture(),this._ownedHandle=this.texture,this.magFilter=void 0,this.minFilter=void 0,this.wrap=void 0),o.bindTexture(o.TEXTURE_2D,this.texture),s.pixelStoreUnpackFlipY.set(!1),s.pixelStoreUnpack.set(1);let l=this.format===o.RGBA&&(e==null?void 0:e.premultiply)!==!1;if(a)if(this.size=[i,n],this.format===o.RGBA&&i>0&&n>0){let h=this.useMipmap?Math.floor(Math.log2(Math.max(i,n)))+1:1;if(o.texStorage2D(o.TEXTURE_2D,h,o.RGBA8,i,n),Jn(t)){s.pixelStoreUnpackPremultiplyAlpha.set(!1);let{data:c}=t;l&&c&&(c=Us(c)),c&&o.texSubImage2D(o.TEXTURE_2D,0,0,0,i,n,o.RGBA,o.UNSIGNED_BYTE,c)}else s.pixelStoreUnpackPremultiplyAlpha.set(l),o.texSubImage2D(o.TEXTURE_2D,0,0,0,o.RGBA,o.UNSIGNED_BYTE,t)}else Jn(t)?(s.pixelStoreUnpackPremultiplyAlpha.set(!1),this._uploadRawData(t,l,i,n,o)):(s.pixelStoreUnpackPremultiplyAlpha.set(l),this._uploadDomImage(t,o));else{let{x:h,y:c}=r||{x:0,y:0};Jn(t)?(s.pixelStoreUnpackPremultiplyAlpha.set(!1),this._updateRawData(t,l,h,c,i,n,o)):(s.pixelStoreUnpackPremultiplyAlpha.set(l),this._updateDomImage(t,h,c,o))}this.useMipmap&&!(Jn(t)&&t.data===null)&&o.generateMipmap(o.TEXTURE_2D),s.pixelStoreUnpackFlipY.setDefault(),s.pixelStoreUnpack.setDefault(),s.pixelStoreUnpackPremultiplyAlpha.setDefault()}_uploadDomImage(t,e){e.texImage2D(e.TEXTURE_2D,0,this.format,this.format,e.UNSIGNED_BYTE,t)}_uploadRawData(t,e,r,i,n){let{data:a}=t;e&&a&&(a=Us(a)),n.texImage2D(n.TEXTURE_2D,0,this.format,r,i,0,this.format,n.UNSIGNED_BYTE,a)}_updateDomImage(t,e,r,i){i.texSubImage2D(i.TEXTURE_2D,0,e,r,i.RGBA,i.UNSIGNED_BYTE,t)}_updateRawData(t,e,r,i,n,a,s){let{data:o}=t;e&&o&&(o=Us(o)),s.texSubImage2D(s.TEXTURE_2D,0,r,i,n,a,s.RGBA,s.UNSIGNED_BYTE,o)}bind(t,e,r){let{context:i}=this,{gl:n}=i;this.texture!==this._ownedHandle&&(this.texture=this._ownedHandle),n.bindTexture(n.TEXTURE_2D,this.texture),(r===n.LINEAR_MIPMAP_NEAREST||r===n.LINEAR_MIPMAP_LINEAR)&&!this.useMipmap&&(r=n.LINEAR);let a=r||t;t!==this.magFilter&&(n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MAG_FILTER,t),this.magFilter=t),a!==this.minFilter&&(n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MIN_FILTER,a),this.minFilter=a),e!==this.wrap&&(n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_S,e),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_T,e),this.wrap=e)}generateMipmap(){if(!this.useMipmap)return;let{gl:t}=this.context;t.bindTexture(t.TEXTURE_2D,this.texture),t.generateMipmap(t.TEXTURE_2D)}destroy(){let{gl:t}=this.context;t.deleteTexture(this.texture),this.texture=null,this._ownedHandle=null}},ze,Yl=(ze=class{constructor(e,r,i,n=1,a=1,s=1,o=0){if(this.uid=e,r.height!==r.width)throw RangeError("DEM tiles must be square");if(i&&!["mapbox","terrarium","custom"].includes(i)){Mt(`"${i}" is not a valid encoding type. Valid types include "mapbox", "terrarium" and "custom".`);return}this.stride=r.height;let l=this.dim=r.height-4;switch(this.data=new Uint32Array(r.data.buffer),ze.byteViewCache.set(this,new Uint8Array(this.data.buffer)),i){case"terrarium":this.redFactor=256,this.greenFactor=1,this.blueFactor=1/256,this.baseShift=32768;break;case"custom":this.redFactor=n,this.greenFactor=a,this.blueFactor=s,this.baseShift=o;break;default:this.redFactor=6553.6,this.greenFactor=25.6,this.blueFactor=.1,this.baseShift=1e4}for(let h=-2;h=l)&&this.data.copyWithin(this._idx(0,h),c,c+l),this.data.fill(this.data[c],this._idx(-2,h),this._idx(0,h)),this.data.fill(this.data[c+l-1],this._idx(l,h),this._idx(l+1,h)+1)}let u=this._getByteView();this.min=2**53-1,this.max=-(2**53-1);for(let h=0;hthis.max&&(this.max=f),f=this.dim||n<-1||n>=this.dim)throw RangeError(`Out of range source coordinates for DEM data. x: ${e}, y: ${r}, dim: ${this.dim}`);let a=this._getByteView(),s=((n+2)*this.stride+i+2)*4,o=this.stride*4,l=e-i,u=r-n,h=this._unpackAtIndex(a,s),c=this._unpackAtIndex(a,s+4),p=this._unpackAtIndex(a,s+o),f=this._unpackAtIndex(a,s+o+4);return h*(1-l)*(1-u)+c*l*(1-u)+p*(1-l)*u+f*l*u}getUnpackVector(){return[this.redFactor,this.greenFactor,this.blueFactor,this.baseShift]}_idx(e,r){if(e<-2||e>=this.dim+2||r<-2||r>=this.dim+2)throw RangeError(`Out of range source coordinates for DEM data. x: ${e}, y: ${r}, dim: ${this.dim}`);return(r+2)*this.stride+(e+2)}unpack(e,r,i){return e*this.redFactor+r*this.greenFactor+i*this.blueFactor-this.baseShift}pack(e){return Fd(e,this.getUnpackVector())}getPixels(){return new Ht({width:this.stride,height:this.stride},this._getByteView())}backfillBorder(e,r,i){if(this.dim!==e.dim)throw Error("dem dimension mismatch");let n=r*this.dim,a=r*this.dim+this.dim,s=i*this.dim,o=i*this.dim+this.dim;switch(r){case-1:n=a-2;break;case 1:a=n+2}switch(i){case-1:s=o-2;break;case 1:o=s+2}let l=-r*this.dim,u=-i*this.dim;for(let h=s;h80*r){o=t[0],l=t[1];let h=o,c=l;for(let p=r;ph&&(h=f),d>c&&(c=d)}u=Math.max(h-o,c-l),u=u===0?0:32767/u}return Uo(a,s,o,l,u),s}function Td(t,e,r,i,n){let a=null;if(n===Tx(t,e,r,i)>0)for(let s=e;s=e;s-=i)a=cc(s/i|0,t[s],t[s+1],a);return a&&yn(a,a.next)&&(gn(a),a=a.next),a}function _r(t,e=t){let r=e===t,i=t,n;do n=!1,i!==i.next&&(dn.size===0||!dn.has(i))&&(yn(i,i.next)||Tt(i.prev,i,i.next)===0)?((r||i===e)&&(e=i.prev),No=!0,gn(i),i=i.prev,n=!0):(r||i!==e)&&(i=i.next,n=!r);while(n||i!==e);return e}function Uo(t,e,r,i,n){n&&Dx(t,r,i,n);let a=t,s=!1;for(;t.prev!==t.next;){let o=t.prev,l=t.next;if(Tt(o,t,l)<0&&(n?px(t,r,i,n):cx(t))){e.push(o.i,t.i,l.i),gn(t),t=l,a=l;continue}if(t=l,t===a){if(No=!1,t=_r(t),No){a=t;continue}if(!s){t=fx(t,e),a=t,s=!0;continue}dx(t,e,r,i,n);break}}}function cx(t){let e=t.prev,r=t,i=t.next,n=e.x,a=r.x,s=i.x,o=e.y,l=r.y,u=i.y,h=Math.min(n,a,s),c=Math.min(o,l,u),p=Math.max(n,a,s),f=Math.max(o,l,u),d=i.next;for(;d!==e;){if(d.x>=h&&d.x<=p&&d.y>=c&&d.y<=f&&(n!==d.x||o!==d.y)&&ka(n,o,a,l,s,u,d.x,d.y)&&Tt(d.prev,d,d.next)>=0)return!1;d=d.next}return!0}function px(t,e,r,i){let n=t.prev,a=t,s=t.next,o=n.x,l=a.x,u=s.x,h=n.y,c=a.y,p=s.y,f=Math.min(o,l,u),d=Math.min(h,c,p),y=Math.max(o,l,u),m=Math.max(h,c,p),g=Xo(f,d,e,r,i),x=Xo(y,m,e,r,i),v=t.prevZ;for(;v&&v.z>=g;){if(v.x>=f&&v.x<=y&&v.y>=d&&v.y<=m&&v!==s&&(o!==v.x||h!==v.y)&&ka(o,h,l,c,u,p,v.x,v.y)&&Tt(v.prev,v,v.next)>=0)return!1;v=v.prevZ}let b=t.nextZ;for(;b&&b.z<=x;){if(b.x>=f&&b.x<=y&&b.y>=d&&b.y<=m&&b!==s&&(o!==b.x||h!==b.y)&&ka(o,h,l,c,u,p,b.x,b.y)&&Tt(b.prev,b,b.next)>=0)return!1;b=b.nextZ}return!0}function fx(t,e){let r=t,i=!1;do{let n=r.prev,a=r.next.next;Id(n,r,r.next,a,!1)&&mn(n,a)&&mn(a,n)&&(e.push(n.i,r.i,a.i),gn(r),gn(r.next),r=t=a,i=!0),r=r.next}while(r!==t);return i?_r(r):r}function dx(t,e,r,i,n){let a=t;do{let s=a.next.next;for(;s!==a.prev;){if(a.i!==s.i&&Sx(a,s)){let o=Cd(a,s);a=_r(a,a.next),o=_r(o,o.next),Uo(a,e,r,i,n),Uo(o,e,r,i,n);return}s=s.next}a=a.next}while(a!==t)}var qo=!1;function yx(t,e,r,i){let n=[];for(let a=0,s=e.length;as&&(s=r.x),r.yo&&(o=r.y),h.xs&&(s=h.x),h.yo&&(o=h.y),r=h}while(++l<16&&r!==e);Go[i]=r;let u=i*4;Dt[u]=n,Dt[u+1]=a,Dt[u+2]=s,Dt[u+3]=o}while(r!==e)}function vx(t,e){let r=t.z*4;e.xDt[r+2]&&(Dt[r+2]=e.x),e.y>Dt[r+3]&&(Dt[r+3]=e.y)}function uc(t){let e=Go[t];for(;e.prev.next!==e;)e=e.next;return Go[t]=e,e}function hc(t){let e=jo[t];for(;e.prev.next!==e;)e=e.next;return jo[t]=e,e}function bx(t,e){let r=e,i=t.x,n=t.y,a=-1/0,s;if(yn(t,r))return r;for(let p=0,f=0;pDt[f+3]||Dt[f]>i||Dt[f+2]<=a)continue;let d=uc(p);r=hc(p);do{if(r.prev.next===r){if(yn(t,r.next))return r.next;if(n<=r.y&&n>=r.next.y&&r.next.y!==r.y){let y=r.x+(n-r.y)*(r.next.x-r.x)/(r.next.y-r.y);if(y<=i&&y>a&&(a=y,s=r.xi||Dt[f+3]h)continue;let d=uc(p);r=hc(p);do{if(r.prev.next===r&&i>=r.x&&r.x>=o&&i!==r.x&&ka(ni)&&(ys.x||r.x===s.x&&wx(s,r)))&&(s=r,c=y)}r=r.next}while(r!==d)}return s}function wx(t,e){return Tt(t.prev,t,e.prev)<0&&Tt(e.next,t,t.next)<0}var oe=[],Ii=[],cr=new Uint32Array,Ci=new Uint32Array,Mi=new Uint32Array(256);function Dx(t,e,r,i){let n=t,a=0;do n.z=Xo(n.x,n.y,e,r,i),oe[a++]=n,n=n.next;while(n!==t);_x(a);let s=null;for(let o=0;o=0&&oe[n].z>i;)oe[n+1]=oe[n],n--;oe[n+1]=r}return}cr.length>>a&255]++;let s=0;for(let o=0;o<256;o++){let l=Mi[o];Mi[o]=s,s+=l}for(let o=0;o>>a&255]++;i[u]=e[o],n[u]=l}}function Xo(t,e,r,i,n){return t=(t-r)*n|0,e=(e-i)*n|0,t=(t|t<<8)&16711935,t=(t|t<<4)&252645135,t=(t|t<<2)&858993459,t=(t|t<<1)&1431655765,e=(e|e<<8)&16711935,e=(e|e<<4)&252645135,e=(e|e<<2)&858993459,e=(e|e<<1)&1431655765,t|e<<1}function Ax(t){let e=t,r=t;do(e.x=(t-s)*(a-o)&&(t-s)*(i-o)>=(r-s)*(e-o)&&(r-s)*(a-o)>=(n-s)*(i-o)}function Sx(t,e){let r=yn(t,e)&&Tt(t.prev,t,t.next)>0&&Tt(e.prev,e,e.next)>0;return t.next.i!==e.i&&(r||mn(t,e)&&mn(e,t)&&(Tt(t.prev,t,e.prev)!==0||Tt(t,e.prev,e)!==0))&&!Ex(t,e)&&(r||Fx(t,e))}function Tt(t,e,r){return(e.y-t.y)*(r.x-e.x)-(e.x-t.x)*(r.y-e.y)}function yn(t,e){return t.x===e.x&&t.y===e.y}function Id(t,e,r,i,n=!0){let a=Tt(t,e,r),s=Tt(t,e,i),o=Tt(r,i,t),l=Tt(r,i,e);return(a>0&&s<0||a<0&&s>0)&&(o>0&&l<0||o<0&&l>0)?!0:n?!!(a===0&&ta(t,r,e)||s===0&&ta(t,i,e)||o===0&&ta(r,t,i)||l===0&&ta(r,e,i)):!1}function ta(t,e,r){return e.x<=Math.max(t.x,r.x)&&e.x>=Math.min(t.x,r.x)&&e.y<=Math.max(t.y,r.y)&&e.y>=Math.min(t.y,r.y)}function Ex(t,e){let r=Math.min(t.x,e.x),i=Math.max(t.x,e.x),n=Math.min(t.y,e.y),a=Math.max(t.y,e.y),s=t;do{let o=s.next;if(s.x>i&&o.x>i||s.xa&&o.y>a||s.y=0&&Tt(t,t.prev,e)>=0:Tt(t,e,t.prev)<0||Tt(t,t.next,e)<0}function Fx(t,e){let r=t,i=!1,n=(t.x+e.x)/2,a=(t.y+e.y)/2;do{let s=r.next;r.y>a!=s.y>a&&n<(s.x-r.x)*(a-r.y)/(s.y-r.y)+r.x&&(i=!i),r=s}while(r!==t);return i}function Cd(t,e){let r=Yo(t.i,t.x,t.y),i=Yo(e.i,e.x,e.y),n=t.next,a=e.prev;return t.next=e,e.prev=t,r.next=n,n.prev=r,i.next=r,r.prev=i,a.next=i,i.prev=a,i}function cc(t,e,r,i){let n=Yo(t,e,r);return i?(n.next=i.next,n.prev=i,i.next.prev=n,i.next=n):(n.prev=n,n.next=n),n}function gn(t){t.next.prev=t.prev,t.prev.next=t.next,t.prevZ&&(t.prevZ.nextZ=t.nextZ),t.nextZ&&(t.nextZ.prevZ=t.prevZ),qo&&vx(t.prev,t.next)}function Yo(t,e,r){return{i:t,x:e,y:r,prev:null,next:null,z:0,prevZ:null,nextZ:null}}function Tx(t,e,r,i){let n=0;for(let a=e,s=r-i;at)throw Error("Min granularity must not be greater than base granularity.");this._baseZoomGranularity=t,this._minGranularity=e}getGranularityForZoomLevel(t){let e=1<32767||e>32767)throw Error("Vertex coordinates are out of signed 16 bit integer range.");let r=Math.round(t)|0,i=Math.round(e)|0,n=this._getKey(r,i),a=this._vertexDictionary.get(n);if(a!==void 0)return a;let s=this._vertexBuffer.length/2;return this._vertexDictionary.set(n,s),this._vertexBuffer.push(r,i),s}_subdivideTrianglesScanline(t,e){if(this._granularity<2)return Bx(this._vertexBuffer,Mx(t,e));let r=[],i=t.length;for(let n=0;n=1||b<=0)||m&&(ln)){h>=i&&h<=n&&a.push(r[(s+1)%3]);continue}if(!m&&v>0){let A=o+f*v,S=l+d*v;a.push(this._vertexToIndex(A,S))}let w=o+f*Math.max(v,0),_=o+f*Math.min(b,1);if(y||this._generateIntraEdgeVertices(a,o,l,u,h,w,_),!m&&b<1){let A=o+f*b,S=l+d*b;a.push(this._vertexToIndex(A,S))}(m||h>=i&&h<=n)&&a.push(r[(s+1)%3]),!m&&(h<=i||h>=n)&&this._generateInterEdgeVertices(a,o,l,u,h,c,p,_,i,n)}return a}_generateIntraEdgeVertices(t,e,r,i,n,a,s){let o=i-e,l=n-r,u=l===0,h=u?Math.min(e,i):Math.min(a,s),c=u?Math.max(e,i):Math.max(a,s),p=Math.floor(h/this._granularityCellSize)+1,f=Math.ceil(c/this._granularityCellSize)-1;if(u?e=p;d--){let y=d*this._granularityCellSize,m=r+l*(y-e)/o;t.push(this._vertexToIndex(y,m))}}_generateInterEdgeVertices(t,e,r,i,n,a,s,o,l,u){let h=n-r,c=a-i,p=s-n,f=(l-n)/p,d=(u-n)/p,y=Math.min(f,d),m=Math.max(f,d),g=i+c*y,x=Math.floor(Math.min(g,o)/this._granularityCellSize)+1,v=Math.ceil(Math.max(g,o)/this._granularityCellSize)-1,b=o=1||m<=0){let A=e-a,S=r-s,T=(l-s)/S,L=(u-s)/S,O=a+A*Math.min(T,L);x=Math.floor(Math.min(O,o)/this._granularityCellSize)+1,v=Math.ceil(Math.max(O,o)/this._granularityCellSize)-1,b=o0?u:l;if(b)for(let A=x;A<=v;A++){let S=A*this._granularityCellSize;t.push(this._vertexToIndex(S,_))}else for(let A=v;A>=x;A--){let S=A*this._granularityCellSize;t.push(this._vertexToIndex(S,_))}}_generateOutline(t,e){let r=[],i=0;for(let n of t){let a=this._granularity<2?this._ringPathIndices(n,i,e):this._pointArrayToIndices(yr(n,this._granularity,!0));i+=n.length;let s=[];for(let o=1;o=2&&Bd(t)&&i.push(i[0]),i}_handlePoles(t){let e=!1,r=!1;this._canonical&&(this._canonical.y===0&&(e=!0),this._canonical.y===(1<n==(a===-32768)?(t.push(r),t.push(e),t.push(this._vertexToIndex(i,a)),t.push(this._vertexToIndex(n,a)),t.push(r),t.push(this._vertexToIndex(i,a))):(t.push(e),t.push(r),t.push(this._vertexToIndex(i,a)),t.push(r),t.push(this._vertexToIndex(n,a)),t.push(this._vertexToIndex(i,a)))}_fillPoles(t,e,r){let i=this._vertexBuffer,n=gt,a=t.length;for(let s=2;s=2&&((o=this._canonical)==null?void 0:o.z)===0&&(a=this._removeTrianglesOutsideTileX(a),s=s.map(l=>this._removeLinesOutsideTileX(l))),{verticesFlattened:this._vertexBuffer,indicesTriangles:a,indicesLineList:s}}_vertexOutsideTileX(t){let e=this._vertexBuffer[t*2];return e<0||e>8192}_removeTrianglesOutsideTileX(t){let e=[];for(let r=0;r0?(Math.floor(w/n)+1)*n:(Math.ceil(w/n)-1)*n,T=x>0?(Math.floor(_/n)+1)*n:(Math.ceil(_/n)-1)*n,L=Math.abs(w-S),O=Math.abs(_-T),B=Math.abs(w-f),V=Math.abs(_-d),F=y?L/v:1/0,$=m?O/b:1/0;if((B<=L||!y)&&(V<=O||!m))break;if(F<$&&y||!m){w=S,_+=x*F;let G=new M(w,Math.round(_));(a[a.length-1].x!==G.x||a[a.length-1].y!==G.y)&&a.push(G)}else{w+=g*$,_=T;let G=new M(Math.round(w),_);(a[a.length-1].x!==G.x||a[a.length-1].y!==G.y)&&a.push(G)}}let A=new M(f,d);(a[a.length-1].x!==A.x||a[a.length-1].y!==A.y)&&a.push(A)}return a}function Bd(t){return!t[0].equals(t[t.length-1])}function Cx(t){let e=[],r=[];for(let i of t)if(i.length!==0){i!==t[0]&&e.push(r.length/2);for(let n of i)r.push(n.x),r.push(n.y)}return{flattened:r,holeIndices:e}}function Mx(t,e){let r=Array(t.length);for(let i=0;i0?(r.push(n),r.push(s),r.push(a)):(r.push(n),r.push(a),r.push(s))}return r}function Px(t,e,r){if(e.length===0)throw Error("Subdivision vertex ring is empty.");let i=0,n=t[e[0]*2];for(let l=1;l=0?s-1:a-1,u=(o+1)%a,h=t[e[l]*2],c=t[e[l]*2+1],p=t[e[u]*2],f=t[e[u]*2+1],d=t[e[s]*2],y=t[e[s]*2+1],m=t[e[o]*2],g=t[e[o]*2+1],x=!1;if(hp)x=!1;else{let v=g-y,b=-(m-d),w=y((p-d)*v+(f-y)*b)*w&&(x=!0)}if(x){let v=e[l],b=e[s],w=e[o];v!==b&&v!==w&&b!==w&&r.push(w,b,v),s--,s<0&&(s=a-1)}else{let v=e[u],b=e[s],w=e[o];v!==b&&v!==w&&b!==w&&r.push(w,b,v),o++,o>=a&&(o=0)}if(l===u)break}}function Pd(t,e,r,i,n,a,s,o,l){let u=n.length/2,h=s&&o&&l;if(uie.MAX_VERTEX_ARRAY_LENGTH&&(u=t.createNewSegment(e,r),l=o.count,y=!0,m=!0,g=!0,h=0);let v=Ji(s,i,a,o,p,y,u),b=Ji(s,i,a,o,f,m,u),w=Ji(s,i,a,o,d,g,u);r.emplaceBack(h+v-l,h+b-l,h+w-l),u.primitiveLength++}}function Lx(t,e,r,i,n,a){let s=[];for(let c=0;cie.MAX_VERTEX_ARRAY_LENGTH&&(u=t.createNewSegment(e,r),l=o.count,y=!0,m=!0,h=0);let x=Ji(s,i,a,o,f,y,u),v=Ji(s,i,a,o,d,m,u);r.emplaceBack(h+x-l,h+v-l),u.primitiveLength++}}var zd=class{constructor(t){this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map(e=>e.id),this.index=t.index,this.hasDependencies=!1,this.sdfPatterns={},this.patternFeatures=[],this.layoutVertexArray=new gg,this.indexArray=new En,this.indexArray2=new Po,this.programConfigurations=new Dr(t.layers,t.zoom),this.segments=new ie,this.segments2=new ie,this.stateDependentLayerIds=this.layers.filter(e=>e.isStateDependent()).map(e=>e.id)}populate(t,e,r){this.hasDependencies=Fa("fill",this.layers,e);let i=this.layers[0].layout.get("fill-sort-key"),n=!i.isConstant(),a=[],s=new st(this.zoom),o=this.layers[0]._featureFilter.needGeometry;for(let{feature:l,id:u,index:h,sourceLayerIndex:c}of t){let p=hi(l,o);if(!this.layers[0]._featureFilter.filter(s,p,r))continue;let f=n?i.evaluate(p,{},r,e.availableImages):void 0,d={id:u,properties:l.properties,type:l.type,sourceLayerIndex:c,index:h,geometry:o?p.geometry:Fr(l),patterns:{},sortKey:f};a.push(d)}n&&a.sort((l,u)=>l.sortKey-u.sortKey);for(let l of a){let{geometry:u,index:h,sourceLayerIndex:c}=l;if(this.hasDependencies){let f=Wl("fill",this.layers,l,{zoom:this.zoom},e);this.patternFeatures.push(f)}else this.addFeature(l,u,h,r,{},e.subdivisionGranularity);let p=t[h].feature;e.featureIndex.insert(p,u,h,c,this.index)}}update(t,e,r){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(t,e,this.stateDependentLayers,{imagePositions:r})}addFeatures({options:t,canonical:e,patternPositions:r,patternMap:i}){this.detectSdfPatterns(i);for(let n of this.patternFeatures)this.addFeature(n,n.geometry,n.index,e,r,t.subdivisionGranularity)}detectSdfPatterns(t){for(let e of this.patternFeatures)for(let r in e.patterns){let i=e.patterns[r];this.recordSdfPattern(r,t[i.min]),this.recordSdfPattern(r,t[i.mid]),this.recordSdfPattern(r,t[i.max])}for(let e of this.layers){let r=e.paint.get("fill-pattern").constantOr(null);r&&(this.recordSdfPattern(e.id,t[r.from.toString()]),this.recordSdfPattern(e.id,t[r.to.toString()]))}}recordSdfPattern(t,e){if(!e)return;let r=e.sdf===!0,i=this.sdfPatterns[t];i===void 0?this.sdfPatterns[t]=r:i!==r&&Mt(`Style sheet warning: Cannot mix SDF and non-SDF fill patterns in layer "${t}"`)}isEmpty(){return this.layoutVertexArray.length===0}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(t){this.uploaded||(this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,ux),this.indexBuffer=t.createIndexBuffer(this.indexArray),this.indexBuffer2=t.createIndexBuffer(this.indexArray2)),this.programConfigurations.upload(t),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.indexBuffer2.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.segments2.destroy())}addFeature(t,e,r,i,n,a){for(let s of Na(e,500)){let o=Md(s,i,a.fill.getGranularityForZoomLevel(i.z)),l=this.layoutVertexArray;Pd((u,h)=>{l.emplaceBack(u,h)},this.segments,this.layoutVertexArray,this.indexArray,o.verticesFlattened,o.indicesTriangles,this.segments2,this.indexArray2,o.indicesLineList)}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,t,r,{imagePositions:n,canonical:i})}};C("FillBucket",zd,{omit:["layers","patternFeatures"]});var pc,Vx=()=>pc||(pc=new Yt({"fill-sort-key":new U(D.layout_fill["fill-sort-key"],"fill-sort-key")})),fc,Ox=()=>fc||(fc=new Yt({"fill-antialias":new R(D.paint_fill["fill-antialias"],"fill-antialias"),"fill-opacity":new U(D.paint_fill["fill-opacity"],"fill-opacity"),"fill-layer-opacity":new R(D.paint_fill["fill-layer-opacity"],"fill-layer-opacity"),"fill-color":new U(D.paint_fill["fill-color"],"fill-color"),"fill-outline-color":new U(D.paint_fill["fill-outline-color"],"fill-outline-color"),"fill-translate":new R(D.paint_fill["fill-translate"],"fill-translate"),"fill-translate-anchor":new R(D.paint_fill["fill-translate-anchor"],"fill-translate-anchor"),"fill-pattern":new cn(D.paint_fill["fill-pattern"],"fill-pattern")})),Rx={get paint(){return Ox()},get layout(){return Vx()}};var $x=class extends ye{constructor(t,e){super(t,Rx,e)}recalculate(t,e){super.recalculate(t,e);let r=this.paint._values["fill-outline-color"];r.value.kind==="constant"&&r.value.value===void 0&&(this.paint._values["fill-outline-color"]=this.paint._values["fill-color"])}createBucket(t){return new zd(t)}queryRadius(){return Ka(this.paint.get("fill-translate"))}queryIntersectsFeature({queryGeometry:t,geometry:e,transform:r,pixelsToTileUnits:i}){return bd(Ja(t,this.paint.get("fill-translate"),this.paint.get("fill-translate-anchor"),-r.bearingInRadians,i),e)}isTileClipped(){return!0}},Wo=Et([{name:"a_pos",components:2,type:"Int16"},{name:"a_normal_ed",components:4,type:"Int16"}],4),Nx=Et([{name:"a_centroid",components:2,type:"Int16"}],4),Ux=Wo.members;Wo.size,Wo.alignment;var Ia=class Zo{constructor(){this.minX=1/0,this.maxX=-1/0,this.minY=1/0,this.maxY=-1/0}extend(e){return this.minX=Math.min(this.minX,e.x),this.minY=Math.min(this.minY,e.y),this.maxX=Math.max(this.maxX,e.x),this.maxY=Math.max(this.maxY,e.y),this}expandBy(e){return this.minX-=e,this.minY-=e,this.maxX+=e,this.maxY+=e,(this.minX>this.maxX||this.minY>this.maxY)&&(this.minX=1/0,this.maxX=-1/0,this.minY=1/0,this.maxY=-1/0),this}shrinkBy(e){return this.expandBy(-e)}map(e){let r=new Zo;return r.extend(e(new M(this.minX,this.minY))),r.extend(e(new M(this.maxX,this.minY))),r.extend(e(new M(this.minX,this.maxY))),r.extend(e(new M(this.maxX,this.maxY))),r}static fromPoints(e){let r=new Zo;for(let i of e)r.extend(i);return r}contains(e){return e.x>=this.minX&&e.x<=this.maxX&&e.y>=this.minY&&e.y<=this.maxY}empty(){return this.minX>this.maxX}width(){return this.maxX-this.minX}height(){return this.maxY-this.minY}covers(e){return!this.empty()&&!e.empty()&&e.minX>=this.minX&&e.maxX<=this.maxX&&e.minY>=this.minY&&e.maxY<=this.maxY}intersects(e){return!this.empty()&&!e.empty()&&e.minX<=this.maxX&&e.maxX>=this.minX&&e.minY<=this.maxY&&e.maxY>=this.minY}},A5=Ia.fromPoints([new M(0,0),new M(gt,gt)]);function Ho(t,e){return t.x===e.x&&(t.x<0||t.x>8192)||t.y===e.y&&(t.y<0||t.y>8192)}function dc(t){return t.every(e=>e.x<0)||t.every(e=>e.x>8192)||t.every(e=>e.y<0)||t.every(e=>e.y>8192)}var Fn=class{constructor(t,e,r,i,n){for(this.properties=Object.create(null),this.extent=r,this.type=0,this.id=void 0,this._pbf=t,this._geometry=-1,this._keys=i,this._values=n;t.pos>3,a===0)continue}if(a--,n===1)s+=t.readSVarint(),o+=t.readSVarint(),i&&r.push(i),i=[new M(s,o)];else if(n===2)s+=t.readSVarint(),o+=t.readSVarint(),i&&i.push(new M(s,o));else if(n===7)i&&i.push(i[0].clone());else throw Error(`unknown command ${n}`)}return i&&r.push(i),r}bbox(){if(this._geometry<0)throw Error("feature has no geometry");let t=this._pbf;t.pos=this._geometry;let e=t.readVarint()+t.pos,r=1,i=0,n=0,a=0,s=1/0,o=-1/0,l=1/0,u=-1/0;for(;t.pos>3,i===0)continue}if(i--,r===1||r===2)n+=t.readSVarint(),a+=t.readSVarint(),no&&(o=n),au&&(u=a);else if(r!==7)throw Error(`unknown command ${r}`)}return[s,l,o,u]}toGeoJSON(t,e,r){let i=this.extent*2**r,n=this.extent*t,a=this.extent*e,s=this.loadGeometry();function o(c){return[(c.x+n)*360/i-180,360/Math.PI*Math.atan(Math.exp((1-(c.y+a)*2/i)*Math.PI))-90]}function l(c){return c.map(o)}let u;if(this.type===1){let c=[];for(let f of s)c.push(f[0]);let p=l(c);u=c.length===1?{type:"Point",coordinates:p[0]}:{type:"MultiPoint",coordinates:p}}else if(this.type===2){let c=s.map(l);u=c.length===1?{type:"LineString",coordinates:c[0]}:{type:"MultiLineString",coordinates:c}}else if(this.type===3){let c=Ld(s),p=[];for(let f of c)p.push(f.map(l));u=p.length===1?{type:"Polygon",coordinates:p[0]}:{type:"MultiPolygon",coordinates:p}}else throw Error("unknown feature type");let h={type:"Feature",geometry:u,properties:this.properties};return this.id!=null&&(h.id=this.id),h}};Fn.types=["Unknown","Point","LineString","Polygon"];function Ld(t){let e=t.length;if(e<=1)return[t];let r=[],i,n;for(let a=0;a=this._features.length)throw Error("feature index out of bounds");this._pbf.pos=this._features[t];let e=this._pbf.readVarint()+this._pbf.pos;return new Fn(this._pbf,e,this.extent,this._keys,this._values)}};function Gx(t){let e=null,r=t.readVarint()+t.pos;for(;t.pos90||this.lat<-90)throw Error("Invalid LngLat latitude value: must be between -90 and 90")}wrap(){return new Gi(Z1(this.lng,-180,180),this.lat)}toArray(){return[this.lng,this.lat]}toString(){return`LngLat(${this.lng}, ${this.lat})`}distanceTo(e){let r=Math.PI/180,i=this.lat*r,n=e.lat*r,a=Math.sin(i)*Math.sin(n)+Math.cos(i)*Math.cos(n)*Math.cos((e.lng-this.lng)*r);return Vd*Math.acos(Math.min(a,1))}static convert(e){if(e instanceof Gi)return e;if(Array.isArray(e)&&(e.length===2||e.length===3))return new Gi(Number(e[0]),Number(e[1]));if(!Array.isArray(e)&&typeof e=="object"&&e)return new Gi(Number("lng"in e?e.lng:e.lon),Number(e.lat));throw Error("`LngLatLike` argument must be specified as a LngLat instance, an object {lng: , lat: }, an object {lon: , lat: }, or an array of [, ]")}},Od=2*Math.PI*Vd;function Rd(t){return Od*Math.cos(t*Math.PI/180)}function Xx(t){return(180+t)/360}function Yx(t){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+t*Math.PI/360)))/360}function Wx(t,e){return t/Rd(e)}function Zx(t){return t*360-180}function Ko(t){let e=180-t*360;return 360/Math.PI*Math.atan(Math.exp(e*Math.PI/180))-90}function Hx(t,e){return t*Rd(Ko(e))}function Kx(t){return 1/Math.cos(t*Math.PI/180)}var Hl=class $d{constructor(e,r,i=0){this.x=+e,this.y=+r,this.z=+i}static fromLngLat(e,r=0){let i=yc.convert(e);return new $d(Xx(i.lng),Yx(i.lat),Wx(r,i.lat))}toLngLat(){return new yc(Zx(this.x),Ko(this.y))}toAltitude(){return Hx(this.z,this.y)}meterInMercatorCoordinateUnits(){return 1/Od*Kx(Ko(this.y))}};function Jx(t,e,r){let i=1/(1<r2(r,e))}function e2(t,e){let r=Qx(gt/2,gt/2,e),i=Hl.fromLngLat(r).meterInMercatorCoordinateUnits(),n=(1<1&&e[0].x===e[e.length-1].x&&e[0].y===e[e.length-1].y;)e.pop();return e}function n2(t,e,r,i,n){let a=e.sub(r),s=i.sub(r),o=a.mag(),l=s.mag();if(o<1e-6||l<1e-6){t.push(r.clone());return}a._div(o),s._div(l);let u=a.x*s.x+a.y*s.y;if(Math.abs(u)>Math.cos(5*Math.PI/180)){t.push(r.clone());return}let h=.2,c=Math.min(n,o*h,l*h),p=r.add(a.mult(c)),f=r.add(s.mult(c)),d=Math.sqrt((1+u)/2),y=r.add(a.add(s)._unit()._mult(c/d)),m=p.sub(y).angleWith(f.sub(y)),g=Math.max(2,Math.ceil(Math.abs(m)/(Math.PI/6)-1e-6));for(let x=0;x<=g;x++)t.push(p.rotateAround(x/g*m,y))}var Gs=8192;function Bi(t,e,r,i,n,a,s,o){t.emplaceBack(e,r,Math.floor(i*Gs)*2+s,n*Gs*2,a*Gs*2,Math.round(o))}var Nd=class{constructor(t){this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map(e=>e.id),this.index=t.index,this.hasDependencies=!1,this.layoutVertexArray=new xg,this.centroidVertexArray=new yg,this.indexArray=new En,this.programConfigurations=new Dr(t.layers,t.zoom),this.segments=new ie,this.stateDependentLayerIds=this.layers.filter(e=>e.isStateDependent()).map(e=>e.id)}populate(t,e,r){this.features=[],this.hasDependencies=Fa("fill-extrusion",this.layers,e);let i=new st(this.zoom),n=this.layers[0],a=n.layout.get("fill-extrusion-rounded-corner-distance"),s=a>0?e2(a,r):0,o=n._featureFilter.needGeometry;for(let{feature:l,id:u,index:h,sourceLayerIndex:c}of t){let p=hi(l,o);if(!n._featureFilter.filter(i,p,r))continue;let f={id:u,sourceLayerIndex:c,index:h,geometry:t2(o?p.geometry:Fr(l),s),properties:l.properties,type:l.type,patterns:{}};this.hasDependencies?this.features.push(Wl("fill-extrusion",this.layers,f,{zoom:this.zoom},e)):this.addFeature(f,f.geometry,h,r,{},e.subdivisionGranularity),e.featureIndex.insert(l,f.geometry,h,c,this.index,!0)}}addFeatures({options:t,canonical:e,patternPositions:r}){for(let i of this.features){let{geometry:n}=i;this.addFeature(i,n,i.index,e,r,t.subdivisionGranularity)}}update(t,e,r){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(t,e,this.stateDependentLayers,{imagePositions:r})}isEmpty(){return this.layoutVertexArray.length===0&&this.centroidVertexArray.length===0}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(t){this.uploaded||(this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,Ux),this.centroidVertexBuffer=t.createVertexBuffer(this.centroidVertexArray,Nx.members,!0),this.indexBuffer=t.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(t),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.centroidVertexBuffer.destroy())}addFeature(t,e,r,i,n,a){for(let s of Na(e,500)){let o={x:0,y:0,sampleCount:0},l=this.layoutVertexArray.length;this.processPolygon(o,i,t,s,a);let u=this.layoutVertexArray.length-l,h=Math.floor(o.x/o.sampleCount),c=Math.floor(o.y/o.sampleCount);for(let p=0;p{Bi(u,h,c,0,0,1,1,0)},this.segments,this.layoutVertexArray,this.indexArray,l.verticesFlattened,l.indicesTriangles)}_generateSideFaces(t,e){let r=0;for(let i=1;iie.MAX_VERTEX_ARRAY_LENGTH&&(e.segment=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray));let s=n.sub(a)._perp()._unit(),o=a.dist(n);r+o>32768&&(r=0),Bi(this.layoutVertexArray,n.x,n.y,s.x,s.y,0,0,r),Bi(this.layoutVertexArray,n.x,n.y,s.x,s.y,0,1,r),r+=o,Bi(this.layoutVertexArray,a.x,a.y,s.x,s.y,0,0,r),Bi(this.layoutVertexArray,a.x,a.y,s.x,s.y,0,1,r);let l=e.segment.vertexLength;this.indexArray.emplaceBack(l,l+2,l+1),this.indexArray.emplaceBack(l+1,l+2,l+3),e.segment.vertexLength+=4,e.segment.primitiveLength+=2}}};function a2(t,e){for(let r=0;rmc||(mc=new Yt({"fill-extrusion-rounded-corner-distance":new R(D["layout_fill-extrusion"]["fill-extrusion-rounded-corner-distance"],"fill-extrusion-rounded-corner-distance")})),gc,o2=()=>gc||(gc=new Yt({"fill-extrusion-opacity":new R(D["paint_fill-extrusion"]["fill-extrusion-opacity"],"fill-extrusion-opacity"),"fill-extrusion-color":new U(D["paint_fill-extrusion"]["fill-extrusion-color"],"fill-extrusion-color"),"fill-extrusion-translate":new R(D["paint_fill-extrusion"]["fill-extrusion-translate"],"fill-extrusion-translate"),"fill-extrusion-translate-anchor":new R(D["paint_fill-extrusion"]["fill-extrusion-translate-anchor"],"fill-extrusion-translate-anchor"),"fill-extrusion-pattern":new cn(D["paint_fill-extrusion"]["fill-extrusion-pattern"],"fill-extrusion-pattern"),"fill-extrusion-height":new U(D["paint_fill-extrusion"]["fill-extrusion-height"],"fill-extrusion-height"),"fill-extrusion-base":new U(D["paint_fill-extrusion"]["fill-extrusion-base"],"fill-extrusion-base"),"fill-extrusion-vertical-gradient":new R(D["paint_fill-extrusion"]["fill-extrusion-vertical-gradient"],"fill-extrusion-vertical-gradient")})),l2={get paint(){return o2()},get layout(){return s2()}};var u2=class extends ye{constructor(t,e){super(t,l2,e)}createBucket(t){return new Nd(t)}queryRadius(){return Ka(this.paint.get("fill-extrusion-translate"))}is3D(){return!0}queryIntersectsFeature({queryGeometry:t,feature:e,featureState:r,geometry:i,transform:n,pixelsToTileUnits:a,pixelPosMatrix:s}){let o=Ja(t,this.paint.get("fill-extrusion-translate"),this.paint.get("fill-extrusion-translate-anchor"),-n.bearingInRadians,a),l=this.paint.get("fill-extrusion-height").evaluate(e,r),u=this.paint.get("fill-extrusion-base").evaluate(e,r),h=p2(o,s,0),c=c2(i,u,l,s),p=c[0],f=c[1];return h2(p,f,h)}};function Pi(t,e){return t.x*e.x+t.y*e.y}function xc(t,e){if(t.length===1){let r=0,i=e[r++],n;for(;!n||i.equals(n);)if(n=e[r++],!n)return 1/0;for(;r>1),s=r-e,o,l=t[e],u=t[e+1],h=t[r],c=t[r+1];for(let p=e+3;pn){o=p,n=f;continue}if(f===n){let d=Math.abs(p-a);di&&(o-e>3&&Jo(t,e,o,i),t[o+2]=n,r-o>3&&Jo(t,o,r,i))}function f2(t,e,r,i,n,a){let s=n-r,o=a-i;if(s!==0||o!==0){let l=((t-r)*s+(e-i)*o)/(s*s+o*o);l>1?(r=n,i=a):l>0&&(r+=s*l,i+=o*l)}return s=t-r,o=e-i,s*s+o*o}function Ct(t,e,r,i){let n={type:e,geom:r},a={id:t!=null?t:null,type:n.type,geometry:n.geom,tags:i,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};switch(n.type){case"Point":case"MultiPoint":zi(a,n.geom);break;case"LineString":zi(a,n.geom.points);break;case"Polygon":zi(a,n.geom[0].points);break;case"MultiLineString":for(let s of n.geom)zi(a,s.points);break;case"MultiPolygon":for(let s of n.geom)zi(a,s[0].points)}return a}function Kl(t){let e=t;t.points.length>64&&(e.points=new Float64Array(t.points))}function zi(t,e){for(let r=0;r1024)throw Error("GeometryCollection nesting exceeds supported depth: 1024");if(e.geometry.type==="GeometryCollection"){y2(t,e,e.geometry,r,i,n+1);return}if(!((o=e.geometry.coordinates)!=null&&o.length))return;let a=d2(e,r,i),s=(r.tolerance/((1<0&&(s+=i?(n*h-u*a)/2:Math.sqrt((u-n)**2+(h-a)**2)),n=u,a=h}let o=e.points.length-3;e.points[2]=1,r>0&&Jo(e.points,0,o,r),e.points[o+2]=1,Kl(e),e.size=Math.abs(s),e.start=0,e.end=e.size}function tu(t,e,r,i){for(let n=0;n1?1:r}function D2(t){return{type:"FeatureCollection",features:t.map(e=>Ca(e))}}function Ca(t){let e={type:"Feature",geometry:_2(t),properties:t.tags};return t.id!=null&&(e.id=t.id),e}function _2(t){let{type:e,geometry:r}=t;switch(e){case"Point":return{type:e,coordinates:Ud(r[0],r[1])};case"MultiPoint":return{type:e,coordinates:ea(r)};case"LineString":return{type:e,coordinates:ea(r.points)};case"MultiLineString":case"Polygon":return{type:e,coordinates:r.map(i=>ea(i.points))};case"MultiPolygon":return{type:e,coordinates:r.map(i=>i.map(n=>ea(n.points)))}}}function ea(t){let e=[];for(let r=0;r=r&&s=i)return null;let l=[];for(let u of t){let h=n===0?u.minX:u.minY,c=n===0?u.maxX:u.maxY;if(h>=r&&c=i))switch(u.type){case"Point":case"MultiPoint":A2(u,l,r,i,n);continue;case"LineString":S2(u,l,r,i,n,o);continue;case"MultiLineString":E2(u,l,r,i,n);continue;case"Polygon":F2(u,l,r,i,n);continue;case"MultiPolygon":T2(u,l,r,i,n);continue}}return l.length?l:null}function A2(t,e,r,i,n){let a=[];if(k2(t.geometry,a,r,i,n),!a.length)return;let s=a.length===3?"Point":"MultiPoint";e.push(Ct(t.id,s,a,t.tags))}function S2(t,e,r,i,n,a){let s=[];if(Gd(t.geometry,s,r,i,n,!1,a.lineMetrics),s.length){if(a.lineMetrics){for(let o of s)e.push(Ct(t.id,"LineString",o,t.tags));return}if(s.length>1){e.push(Ct(t.id,"MultiLineString",s,t.tags));return}e.push(Ct(t.id,"LineString",s[0],t.tags))}}function E2(t,e,r,i,n){let a=[];if(eu(t.geometry,a,r,i,n,!1),a.length){if(a.length===1){e.push(Ct(t.id,"LineString",a[0],t.tags));return}e.push(Ct(t.id,"MultiLineString",a,t.tags))}}function F2(t,e,r,i,n){let a=[];eu(t.geometry,a,r,i,n,!0),a.length&&e.push(Ct(t.id,"Polygon",a,t.tags))}function T2(t,e,r,i,n){let a=[];for(let s of t.geometry){let o=[];eu(s,o,r,i,n,!0),o.length&&a.push(o)}a.length&&e.push(Ct(t.id,"MultiPolygon",a,t.tags))}function k2(t,e,r,i,n){for(let a=0;a=r&&s<=i&&Kr(e,t[a],t[a+1],t[a+2])}}function Gd(t,e,r,i,n,a,s){let o=vc(t),l=n===0?I2:C2,u=t.start,h,c;for(let g=0;gr&&(c=l(o,x,v,w,_,r),s&&(o.start=u+h*c)):A>i?S=r&&(c=l(o,x,v,w,_,r),T=!0),S>i&&A<=i&&(c=l(o,x,v,w,_,i),T=!0),!a&&T&&(s&&(o.end=u+h*c),e.push(o),o=vc(t)),s&&(u+=h)}let p=t.points.length-3,f=t.points[p],d=t.points[p+1],y=t.points[p+2],m=n===0?f:d;m>=r&&m<=i&&Kr(o.points,f,d,y),p=o.points.length-3,a&&p>=3&&(o.points[p]!==o.points[0]||o.points[p+1]!==o.points[1])&&Kr(o.points,o.points[0],o.points[1],o.points[2]),o.points.length&&(Kl(o),e.push(o))}function vc(t){return{points:[],size:t.size,start:t.start,end:t.end}}function eu(t,e,r,i,n,a){for(let s of t)Gd(s,e,r,i,n,a,!1)}function Kr(t,e,r,i){t.push(e,r,i)}function I2(t,e,r,i,n,a){let s=(a-e)/(i-e);return Kr(t.points,a,r+(n-r)*s,1),s}function C2(t,e,r,i,n,a){let s=(a-r)/(n-r);return Kr(t.points,e+(i-e)*s,a,1),s}function ru(t,e){let r=e.buffer/e.extent,i=t,n=Me(t,1,-1-r,r,0,-1,2,e),a=Me(t,1,1-r,2+r,0,-1,2,e);return!n&&!a||(i=Me(t,1,-r,1+r,0,-1,2,e)||[],n&&(i=bc(n,1).concat(i)),a&&(i=i.concat(bc(a,-1)))),i}function bc(t,e){let r=[];for(let i of t)switch(i.type){case"Point":case"MultiPoint":{let n=M2(i.geometry,e);r.push(Ct(i.id,i.type,n,i.tags));continue}case"LineString":{let n=Xs(i.geometry,e);r.push(Ct(i.id,i.type,n,i.tags));continue}case"MultiLineString":case"Polygon":{let n=[];for(let a of i.geometry)n.push(Xs(a,e));r.push(Ct(i.id,i.type,n,i.tags));continue}case"MultiPolygon":{let n=[];for(let a of i.geometry){let s=[];for(let o of a)s.push(Xs(o,e));n.push(s)}r.push(Ct(i.id,i.type,n,i.tags));continue}}return r}function M2(t,e){let r=[];for(let i=0;io.id));t=t.filter(o=>!s.has(o.id))}if(i.add.size){let s=Jl({type:"FeatureCollection",features:Array.from(i.add.values())},r);s=ru(s,r),n=n.concat(s),t=t.concat(s)}}if(i.update.size){let a=new Map,s=[];for(let o of t)i.update.has(o.id)?a.set(o.id,[...a.get(o.id)||[],o]):s.push(o);for(let[o,l]of i.update){let u=a.get(o);if(!u||u.length===0)continue;let h=P2(u,l,r);n=n.concat(u,h),s=s.concat(h)}t=s}return{affected:n,source:t}}function P2(t,e,r){var a,s;let i=!!e.newGeometry,n=e.removeAllProperties||((a=e.removeProperties)==null?void 0:a.length)>0||((s=e.addOrUpdateProperties)==null?void 0:s.length)>0;if(i){let o=t[0],l=Jl({type:"FeatureCollection",features:[{type:"Feature",id:o.id,geometry:e.newGeometry,properties:n?wc(o.tags,e):o.tags}]},r);return l=ru(l,r),l}if(n){let o=[];for(let l of t){let u=Xe({},l);u.tags=wc(u.tags,e),o.push(u)}return o}return t}function wc(t,e){if(e.removeAllProperties)return{};let r=Xe({},t||{});if(e.removeProperties)for(let i of e.removeProperties)delete r[i];if(e.addOrUpdateProperties)for(let{key:i,value:n}of e.addOrUpdateProperties)r[i]=n;return r}function z2(t,e){var r,i;return t?{removeAll:t.removeAll,remove:new Set(t.remove||[]),add:new Map((r=t.add)==null?void 0:r.map(n=>[e.promoteId?n.properties[e.promoteId]:n.id,n])),update:new Map((i=t.update)==null?void 0:i.map(n=>[n.id,n]))}:{remove:new Set,add:new Map,update:new Map}}var Dc=[Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array],yt=new Uint32Array(96),L2=class Xd{static from(e){if(!e||e.byteLength===void 0||e.buffer)throw Error("Data must be an instance of ArrayBuffer or SharedArrayBuffer.");let[r,i]=new Uint8Array(e,0,2);if(r!==219)throw Error("Data does not appear to be in a KDBush format.");let n=i>>4;if(n!==1)throw Error(`Got v${n} data when expected v1.`);let a=Dc[i&15];if(!a)throw Error("Unrecognized array type.");let[s]=new Uint16Array(e,2,1),[o]=new Uint32Array(e,4,1);return new Xd(o,s,a,void 0,e)}constructor(e,r=64,i=Float64Array,n=ArrayBuffer,a){if(isNaN(e)||e<0)throw Error(`Unexpected numItems value: ${e}.`);this.numItems=+e,this.nodeSize=Math.min(Math.max(+r,2),65535),this.ArrayType=i,this.IndexArrayType=e<65536?Uint16Array:Uint32Array;let s=Dc.indexOf(this.ArrayType),o=e*2*this.ArrayType.BYTES_PER_ELEMENT,l=e*this.IndexArrayType.BYTES_PER_ELEMENT,u=(8-l%8)%8;if(s<0)throw Error(`Unexpected typed array class: ${i}.`);if(a)this.data=a,this.ids=new this.IndexArrayType(a,8,e),this.coords=new i(a,8+l+u,e*2),this._pos=e*2,this._finished=!0;else{let h=this.data=new n(8+o+l+u);this.ids=new this.IndexArrayType(h,8,e),this.coords=new i(h,8+l+u,e*2),this._pos=0,this._finished=!1,new Uint8Array(h,0,2).set([219,16+s]),new Uint16Array(h,2,1)[0]=r,new Uint32Array(h,4,1)[0]=e}}add(e,r){let i=this._pos>>1;return this.ids[i]=i,this.coords[this._pos++]=e,this.coords[this._pos++]=r,i}finish(){let e=this._pos>>1;if(e!==this.numItems)throw Error(`Added ${e} items when expected ${this.numItems}.`);return Qo(this.ids,this.coords,this.nodeSize,0,this.numItems-1,0),this._finished=!0,this}range(e,r,i,n){if(!this._finished)throw Error("Data not yet indexed - call index.finish().");let{ids:a,coords:s,nodeSize:o}=this;yt[0]=0,yt[1]=a.length-1,yt[2]=0;let l=3,u=[];for(;l>0;){let h=yt[--l],c=yt[--l],p=yt[--l];if(c-p<=o){for(let m=p;m<=c;m++){let g=s[2*m],x=s[2*m+1];g>=e&&g<=i&&x>=r&&x<=n&&u.push(a[m])}continue}let f=p+c>>1,d=s[2*f],y=s[2*f+1];d>=e&&d<=i&&y>=r&&y<=n&&u.push(a[f]),(h===0?e<=d:r<=y)&&(yt[l++]=p,yt[l++]=f-1,yt[l++]=1-h),(h===0?i>=d:n>=y)&&(yt[l++]=f+1,yt[l++]=c,yt[l++]=1-h)}return u}within(e,r,i){let n=[];return this.withinInto(e,r,i,n),n}withinInto(e,r,i,n){if(!this._finished)throw Error("Data not yet indexed - call index.finish().");let{ids:a,coords:s,nodeSize:o}=this;yt[0]=0,yt[1]=a.length-1,yt[2]=0;let l=3,u=0,h=i*i;for(;l>0;){let c=yt[--l],p=yt[--l],f=yt[--l];if(p-f<=o){for(let g=f;g<=p;g++)_c(s[2*g],s[2*g+1],e,r)<=h&&(n[u++]=a[g]);continue}let d=f+p>>1,y=s[2*d],m=s[2*d+1];_c(y,m,e,r)<=h&&(n[u++]=a[d]),(c===0?e-i<=y:r-i<=m)&&(yt[l++]=f,yt[l++]=d-1,yt[l++]=1-c),(c===0?e+i>=y:r+i>=m)&&(yt[l++]=d+1,yt[l++]=p,yt[l++]=1-c)}return u}};function Qo(t,e,r,i,n,a){if(n-i<=r)return;let s=i+n>>1;Yd(t,e,s,i,n,a),Qo(t,e,r,i,s-1,1-a),Qo(t,e,r,s+1,n,1-a)}function Yd(t,e,r,i,n,a){for(;n>i;){if(n-i>600){let u=n-i+1,h=r-i+1,c=Math.log(u),p=.5*Math.exp(2*c/3),f=.5*Math.sqrt(c*p*(u-p)/u)*(h-u/2<0?-1:1);Yd(t,e,r,Math.max(i,Math.floor(r-h*p/u+f)),Math.min(n,Math.floor(r+(u-h)*p/u+f)),a)}let s=e[2*r+a],o=i,l=n;for(Li(t,e,i,r),e[2*n+a]>s&&Li(t,e,i,n);os;)l--}e[2*i+a]===s?Li(t,e,i,l):(l++,Li(t,e,l,n)),l<=r&&(i=l+1),r<=l&&(n=l-1)}}function Li(t,e,r,i){Ys(t,r,i),Ys(e,2*r,2*i),Ys(e,2*r+1,2*i+1)}function Ys(t,e,r){let i=t[e];t[e]=t[r],t[r]=i}function _c(t,e,r,i){let n=t-r,a=e-i;return n*n+a*a}var tl={minZoom:0,maxZoom:16,minPoints:2,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:t=>t},V2=class{constructor(t){this.options=Object.assign(Object.create(tl),t),this.trees=Array(this.options.maxZoom+1),this.stride=this.options.reduce?7:6,this.clusterProps=[],this.points=[]}load(t){let e=[];for(let r of t){if(!r.geometry)continue;let[i,n]=r.geometry.coordinates,[a,s]=[Zr(i),Hr(n)],o={id:r.id,type:"Point",geometry:[a,s],tags:r.properties};e.push(o)}this.createIndex(e)}initialize(t){let e=[];for(let r of t)r.type==="Point"&&e.push(r);this.createIndex(e)}updateIndex(t,e,r){this.options=Object.assign(Object.create(tl),r.clusterOptions),this.initialize(t)}createIndex(t){let{log:e,minZoom:r,maxZoom:i}=this.options;e&&console.time("total time");let n=`prepare ${t.length} points`;e&&console.time(n),this.points=t;let a=[];for(let o=0;o=r;o--){let l=Date.now();s=this.trees[o]=this.createTree(this.cluster(s,o)),e&&console.log("z%d: %d clusters in %dms",o,s.numItems,Date.now()-l)}e&&console.timeEnd("total time")}getClusters(t,e){return this.getClustersInternal(t,e).map(r=>Ca(r))}getClustersInternal(t,e){let r=((t[0]+180)%360+360)%360-180,i=Math.max(-90,Math.min(90,t[1])),n=t[2]===180?180:((t[2]+180)%360+360)%360-180,a=Math.max(-90,Math.min(90,t[3]));if(t[2]-t[0]>=360)r=-180,n=180;else if(r>n){let h=this.getClustersInternal([r,i,180,a],e),c=this.getClustersInternal([-180,i,n,a],e);return h.concat(c)}let s=this.trees[this.limitZoom(e)],o=s.range(Zr(r),Hr(a),Zr(n),Hr(i)),l=s.flatData,u=[];for(let h of o){let c=this.stride*h;u.push(l[c+5]>1?O2(l,c,this.clusterProps):this.points[l[c+3]])}return u}getChildren(t){let e=this.getOriginId(t),r=this.getOriginZoom(t),i=Error("No cluster with the specified id: "+t),n=this.trees[r];if(!n)throw i;let a=n.flatData;if(e*this.stride>=a.length)throw i;let s=this.options.radius/(this.options.extent*2**(r-1)),o=a[e*this.stride],l=a[e*this.stride+1],u=n.within(o,l,s),h=[];for(let c of u){let p=c*this.stride;a[p+4]===t&&h.push(a[p+5]>1?R2(a,p,this.clusterProps):Ca(this.points[a[p+3]]))}if(h.length===0)throw i;return h}getLeaves(t,e,r){e||(e=10),r||(r=0);let i=[];return this.appendLeaves(i,t,e,r,0),i}getTile(t,e,r){let i=this.trees[this.limitZoom(t)];if(!i)return null;let n=2**t,{extent:a,radius:s}=this.options,o=s/a,l=(r-o)/n,u=(r+1+o)/n,h={transformed:!0,features:[],source:null,x:e,y:r,z:t};return this.addTileFeatures(i.range((e-o)/n,l,(e+1+o)/n,u),i.flatData,e,r,n,h),e===0&&this.addTileFeatures(i.range(1-o/n,l,1,u),i.flatData,n,r,n,h),e===n-1&&this.addTileFeatures(i.range(0,l,o/n,u),i.flatData,-1,r,n,h),h}getClusterExpansionZoom(t){return this.getOriginZoom(t)}appendLeaves(t,e,r,i,n){let a=this.getChildren(e);for(let s of a){let o=s.properties;if(o!=null&&o.cluster?n+o.point_count<=i?n+=o.point_count:n=this.appendLeaves(t,o.cluster_id,r,i,n):n1,u,h,c;if(l)u=iu(e,o,this.clusterProps),h=e[o],c=e[o+1];else{let d=this.points[e[o+3]];u=d.tags,[h,c]=d.geometry}let p={type:1,geometry:[[Math.round(this.options.extent*(h*n-r)),Math.round(this.options.extent*(c*n-i))]],tags:u},f;f=l||this.options.generateId?e[o+3]:this.points[e[o+3]].id,f!==void 0&&(p.id=f),a.features.push(p)}}limitZoom(t){return Math.max(this.options.minZoom,Math.min(Math.floor(+t),this.options.maxZoom+1))}cluster(t,e){let{radius:r,extent:i,reduce:n,minPoints:a}=this.options,s=r/(i*2**e),o=t.flatData,l=[],u=this.stride;for(let h=0;he&&(y+=o[g+5])}if(y>d&&y>=a){let m=c*d,g=p*d,x,v=-1,b=((h/u|0)<<5)+(e+1)+this.points.length;for(let w of f){let _=w*u;if(o[_+2]<=e)continue;o[_+2]=e;let A=o[_+5];m+=o[_]*A,g+=o[_+1]*A,o[_+4]=b,n&&(x||(x=this.map(o,h,!0),v=this.clusterProps.length,this.clusterProps.push(x)),n(x,this.map(o,_)))}o[h+4]=b,l.push(m/y,g/y,1/0,b,-1,y),n&&l.push(v)}else{for(let m=0;m1)for(let m of f){let g=m*u;if(!(o[g+2]<=e)){o[g+2]=e;for(let x=0;x>5}getOriginZoom(t){return(t-this.points.length)%32}map(t,e,r){if(t[e+5]>1){let a=this.clusterProps[t[e+6]];return r?Object.assign({},a):a}let i=this.points[t[e+3]].tags,n=this.options.map(i);return r&&n===i?Object.assign({},n):n}};function O2(t,e,r){return{id:t[e+3],type:"Point",tags:iu(t,e,r),geometry:[t[e],t[e+1]]}}function R2(t,e,r){return{type:"Feature",id:t[e+3],properties:iu(t,e,r),geometry:{type:"Point",coordinates:[qd(t[e]),jd(t[e+1])]}}}function iu(t,e,r){let i=t[e+5],n=i>=1e4?`${Math.round(i/1e3)}k`:i>=1e3?`${Math.round(i/100)/10}k`:i,a=t[e+6],s=a===-1?{}:Object.assign({},r[a]);return Object.assign(s,{cluster:!0,cluster_id:t[e+3],point_count:i,point_count_abbreviated:n})}var Wd="geojsonvt_clip_start",Zd="geojsonvt_clip_end";function Ac(t,e,r,i,n){let a=e===n.maxZoom?0:n.tolerance/((1<0&&e.size<(n?s:i)){r.numPoints+=e.points.length/3;return}let o=[];for(let l=0;ls)&&(r.numSimplified++,o.push(e.points[l],e.points[l+1])),r.numPoints++;n&&G2(o,a),t.push(o)}function G2(t,e){let r=0;for(let i=0,n=t.length,a=n-2;i0===e)for(let i=0,n=t.length;i1&&(console.log("invalidating tiles"),console.time("invalidating")),this.invalidateTiles(e),r.debug>1&&console.timeEnd("invalidating");let[i,n,a]=[0,0,0],s=Ac(t,i,n,a,r);s.source=t;let o=ra(i,n,a);if(this.tiles[o]=s,this.tileCoords.push({z:i,x:n,y:a,id:o}),r.debug){let l=`z${i}`;this.stats[l]=(this.stats[l]||0)+1,this.total++}}getClusterExpansionZoom(t){return null}getChildren(t){return null}getLeaves(t,e,r){return null}getTile(t,e,r){let{extent:i,debug:n}=this.options,a=1<1&&console.log("drilling down to z%d-%d-%d",t,e,r);let o=t,l=e,u=r,h;for(;!h&&o>0;)o--,l>>=1,u>>=1,h=this.tiles[ra(o,l,u)];return!(h!=null&&h.source)||(n>1&&(console.log("found parent tile z%d-%d-%d",o,l,u),console.time("drilling down")),this.splitTile(h.source,o,l,u,t,e,r),n>1&&console.timeEnd("drilling down"),!this.tiles[s])?null:Sc(this.tiles[s],i)}splitTile(t,e,r,i,n,a,s){let o=[t,e,r,i],l=this.options,u=l.debug;for(;o.length;){i=o.pop(),r=o.pop(),e=o.pop(),t=o.pop();let h=1<1&&console.time("creation"),p=this.tiles[c]=Ac(t,e,r,i,l),this.tileCoords.push({z:e,x:r,y:i,id:c}),u)){u>1&&(console.log("tile z%d-%d-%d (features: %d, points: %d, simplified: %d)",e,r,i,p.numFeatures,p.numPoints,p.numSimplified),console.timeEnd("creation"));let A=`z${e}`;this.stats[A]=(this.stats[A]||0)+1,this.total++}if(p.source=t,n==null){if(e===l.indexMaxZoom||p.numPoints<=l.indexMaxPoints)continue}else{if(e===l.maxZoom||e===n)continue;if(n!=null){let A=n-e;if(r!==a>>A||i!==s>>A)continue}}if(p.source=null,!t.length)continue;u>1&&console.time("clipping");let f=.5*l.buffer/l.extent,d=.5-f,y=.5+f,m=1+f,g=null,x=null,v=null,b=null,w=Me(t,h,r-f,r+y,0,p.minX,p.maxX,l),_=Me(t,h,r+d,r+m,0,p.minX,p.maxX,l);w&&(g=Me(w,h,i-f,i+y,1,p.minY,p.maxY,l),x=Me(w,h,i+d,i+m,1,p.minY,p.maxY,l)),_&&(v=Me(_,h,i-f,i+y,1,p.minY,p.maxY,l),b=Me(_,h,i+d,i+m,1,p.minY,p.maxY,l)),u>1&&console.timeEnd("clipping"),o.push(g||[],e+1,r*2,i*2),o.push(x||[],e+1,r*2,i*2+1),o.push(v||[],e+1,r*2+1,i*2),o.push(b||[],e+1,r*2+1,i*2+1)}}invalidateTiles(t){if(!t.length)return;let e=this.options,{debug:r}=e,i=1/0,n=-1/0,a=1/0,s=-1/0;for(let u of t)i=Math.min(i,u.minX),n=Math.max(n,u.maxX),a=Math.min(a,u.minY),s=Math.max(s,u.maxY);let o=e.buffer/e.extent,l=new Set;for(let u in this.tiles){let h=this.tiles[u],c=1<=f||s=y)continue;let m=!1;for(let g of t)if(g.maxX>=p&&g.minX=d&&g.minY1&&console.log("invalidate tile z%d-%d-%d (features: %d, points: %d, simplified: %d)",h.z,h.x,h.y,h.numFeatures,h.numPoints,h.numSimplified);let g=`z${h.z}`;this.stats[g]=(this.stats[g]||0)-1,this.total--}delete this.tiles[u],l.add(u)}}l.size&&(this.tileCoords=this.tileCoords.filter(u=>!l.has(u.id)))}};function ra(t,e,r){return((1<24)throw Error("maxZoom should be in the 0-24 range");if(e.promoteId&&e.generateId)throw Error("promoteId and generateId cannot be used together.");let i=Jl(t,e);r&&(console.timeEnd("preprocess data"),console.log("index: maxZoom: %d, maxPoints: %d",e.indexMaxZoom,e.indexMaxPoints),console.time("generate tiles")),i=ru(i,e),e.updateable&&(this.source=i),this.initializeIndex(i,e)}initializeIndex(t,e){this.tileIndex=e.cluster?new V2(e.clusterOptions):new W2(e),t.length&&this.tileIndex.initialize(t)}getTile(t,e,r){return t=+t,e=+e,r=+r,t<0||t>24?null:this.tileIndex.getTile(t,e,r)}updateData(t,e){let r=this.options;if(!r.updateable)throw Error("to update tile geojson `updateable` option must be set to true");let{affected:i,source:n}=B2(this.source,t,r);e&&({affected:i,source:n}=this.filterUpdate(n,i,e)),i.length&&(this.source=n,this.tileIndex.updateIndex(n,i,r))}filterUpdate(t,e,r){let i=new Set;for(let n of t)n.id!=null&&(r(Ca(n))||(e.push(n),i.add(n.id)));return t=t.filter(n=>!i.has(n.id)),{affected:e,source:t}}getData(){if(!this.options.updateable)throw Error("to retrieve data the `updateable` option must be set to true");return D2(this.source)}updateClusterOptions(t,e){let r=this.options.cluster;if(this.options.cluster=t,this.options.clusterOptions=e,r==t){this.tileIndex.updateIndex(this.source,[],this.options);return}this.initializeIndex(this.source,this.options)}getClusterExpansionZoom(t){return this.tileIndex.getClusterExpansionZoom(t)}getClusterChildren(t){return this.tileIndex.getChildren(t)}getClusterLeaves(t,e,r){return this.tileIndex.getLeaves(t,e,r)}},el=Et([{name:"a_pos_normal",components:2,type:"Int16"},{name:"a_data",components:4,type:"Uint8"}],4),H2=el.members;el.size,el.alignment;var rl=Et([{name:"a_uv_x",components:1,type:"Float32"},{name:"a_split_index",components:1,type:"Float32"}]),K2=rl.members;rl.size,rl.alignment;var J2=Math.cos(75/2*(Math.PI/180)),Jd=1/2,Ec=2**14/Jd,Qd=class{constructor(t){this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map(e=>e.id),this.index=t.index,this.hasDependencies=!1,this.patternFeatures=[],this.lineClipsArray=[],this.gradients={};for(let e of this.layers)this.gradients[e.id]={};this.layoutVertexArray=new vg,this.layoutVertexArray2=new bg,this.indexArray=new En,this.programConfigurations=new Dr(t.layers,t.zoom),this.segments=new ie,this.maxLineLength=0,this.stateDependentLayerIds=this.layers.filter(e=>e.isStateDependent()).map(e=>e.id)}populate(t,e,r){this.hasDependencies=Fa("line",this.layers,e)||this.hasLineDasharray(this.layers);let i=this.layers[0].layout.get("line-sort-key"),n=!i.isConstant(),a=[],s=new st(this.zoom),o=this.layers[0]._featureFilter.needGeometry;for(let{feature:l,id:u,index:h,sourceLayerIndex:c}of t){let p=hi(l,o);if(!this.layers[0]._featureFilter.filter(s,p,r))continue;let f=n?i.evaluate(p,{},r):void 0,d={id:u,properties:l.properties,type:l.type,sourceLayerIndex:c,index:h,geometry:o?p.geometry:Fr(l),patterns:{},dashes:{},sortKey:f};a.push(d)}n&&a.sort((l,u)=>l.sortKey-u.sortKey);for(let l of a){let{geometry:u,index:h,sourceLayerIndex:c}=l;this.hasDependencies?(Fa("line",this.layers,e)?Wl("line",this.layers,l,{zoom:this.zoom},e):this.hasLineDasharray(this.layers)&&this.addLineDashDependencies(this.layers,l,this.zoom,e),this.patternFeatures.push(l)):this.addFeature(l,u,h,r,{},{},e.subdivisionGranularity);let p=t[h].feature;e.featureIndex.insert(p,u,h,c,this.index)}}update(t,e,r,i){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(t,e,this.stateDependentLayers,{imagePositions:r,dashPositions:i})}addFeatures({options:t,canonical:e,patternPositions:r,dashPositions:i}){for(let n of this.patternFeatures)this.addFeature(n,n.geometry,n.index,e,r,i,t.subdivisionGranularity)}isEmpty(){return this.layoutVertexArray.length===0}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(t){this.uploaded||(this.layoutVertexArray2.length!==0&&(this.layoutVertexBuffer2=t.createVertexBuffer(this.layoutVertexArray2,K2)),this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,H2),this.indexBuffer=t.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(t),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())}lineFeatureClips(t){if(t.properties&&Object.hasOwn(t.properties,"geojsonvt_clip_start")&&Object.hasOwn(t.properties,"geojsonvt_clip_end"))return{start:+t.properties[Wd],end:+t.properties[Zd]}}addFeature(t,e,r,i,n,a,s){let o=this.layers[0].layout,l=o.get("line-join").evaluate(t,{}),u=o.get("line-cap").evaluate(t,{}),h=o.get("line-miter-limit").evaluate(t,{}),c=o.get("line-round-limit").evaluate(t,{});this.lineClips=this.lineFeatureClips(t);for(let p of e)this.addLine(p,t,l,u,h,c,i,s);this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,t,r,{imagePositions:n,dashPositions:a,canonical:i})}addLine(t,e,r,i,n,a,s,o){this.distance=0,this.scaledDistance=0,this.totalDistance=0;let l=s?o.line.getGranularityForZoomLevel(s.z):1;if(t=yr(t,l),this.lineClips){this.lineClipsArray.push(this.lineClips);for(let v=0;v=2&&t[h-1].equals(t[h-2]);)h--;let c=0;for(;c0;if(T&&v>c){let V=d.dist(y);if(V>2*p){let F=d.sub(d.sub(y)._mult(p/V)._round());this.updateDistance(y,F),this.addCurrentVertex(F,g,0,0,f),y=F}}let O=y&&m,B=O?r:u?"butt":i;if(O&&B==="round"&&(An&&(B="bevel"),B==="bevel"&&(A>2&&(B="flipbevel"),A100)b=x.mult(-1);else{let V=A*g.add(x).mag()/g.sub(x).mag();b._perp()._mult(V*(L?-1:1))}this.addCurrentVertex(d,b,0,0,f),this.addCurrentVertex(d,b.mult(-1),0,0,f)}else if(B==="bevel"||B==="fakeround"){let V=-Math.sqrt(A*A-1),F=L?V:0,$=L?0:V;if(y&&this.addCurrentVertex(d,g,F,$,f),B==="fakeround"){let G=Math.round(S*180/Math.PI/20);for(let P=1;P2*p){let F=d.add(m.sub(d)._mult(p/V)._round());this.updateDistance(d,F),this.addCurrentVertex(F,x,0,0,f),d=F}}}}addCurrentVertex(t,e,r,i,n,a=!1){let s=e.x+e.y*r,o=e.y-e.x*r,l=-e.x+e.y*i,u=-e.y-e.x*i;this.addHalfVertex(t,s,o,a,!1,r,n),this.addHalfVertex(t,l,u,a,!0,-i,n),this.distance>Ec/2&&this.totalDistance===0&&(this.distance=0,this.updateScaledDistance(),this.addCurrentVertex(t,e,r,i,n,a))}addHalfVertex({x:t,y:e},r,i,n,a,s,o){let l=(this.lineClips?this.scaledDistance*(Ec-1):this.scaledDistance)*Jd;if(this.layoutVertexArray.emplaceBack((t<<1)+ +!!n,(e<<1)+ +!!a,Math.round(63*r)+128,Math.round(63*i)+128,(s===0?0:s<0?-1:1)+1|(l&63)<<2,l>>6),this.lineClips){let h=(this.scaledDistance-this.lineClips.start)/(this.lineClips.end-this.lineClips.start);this.layoutVertexArray2.emplaceBack(h,this.lineClipsArray.length)}let u=o.vertexLength++;this.e1>=0&&this.e2>=0&&(this.indexArray.emplaceBack(this.e1,u,this.e2),o.primitiveLength++),a?this.e2=u:this.e1=u}updateScaledDistance(){this.scaledDistance=this.lineClips?this.lineClips.start+(this.lineClips.end-this.lineClips.start)*this.distance/this.totalDistance:this.distance}updateDistance(t,e){this.distance+=t.dist(e),this.updateScaledDistance()}hasLineDasharray(t){for(let e of t){let r=e.paint.get("line-dasharray");if(r&&!r.isConstant())return!0}return!1}addLineDashDependencies(t,e,r,i){for(let n of t){let a=n.paint.get("line-dasharray");if(!a||a.value.kind==="constant")continue;let s=n.layout.get("line-cap").evaluate(e,{})==="round",o={dasharray:a.value.evaluate({zoom:r-1},e,{}),round:s},l={dasharray:a.value.evaluate({zoom:r},e,{}),round:s},u={dasharray:a.value.evaluate({zoom:r+1},e,{}),round:s},h=`${o.dasharray.join(",")},${o.round}`,c=`${l.dasharray.join(",")},${l.round}`,p=`${u.dasharray.join(",")},${u.round}`;i.dashDependencies[h]=o,i.dashDependencies[c]=l,i.dashDependencies[p]=u,e.dashes[n.id]={min:h,mid:c,max:p}}}};C("LineBucket",Qd,{omit:["layers","patternFeatures"]});var Fc,Q2=()=>Fc||(Fc=new Yt({"line-cap":new U(D.layout_line["line-cap"],"line-cap"),"line-join":new U(D.layout_line["line-join"],"line-join"),"line-miter-limit":new U(D.layout_line["line-miter-limit"],"line-miter-limit"),"line-round-limit":new U(D.layout_line["line-round-limit"],"line-round-limit"),"line-sort-key":new U(D.layout_line["line-sort-key"],"line-sort-key")})),Tc,tv=()=>Tc||(Tc=new Yt({"line-opacity":new U(D.paint_line["line-opacity"],"line-opacity"),"line-layer-opacity":new R(D.paint_line["line-layer-opacity"],"line-layer-opacity"),"line-color":new U(D.paint_line["line-color"],"line-color"),"line-translate":new R(D.paint_line["line-translate"],"line-translate"),"line-translate-anchor":new R(D.paint_line["line-translate-anchor"],"line-translate-anchor"),"line-width":new U(D.paint_line["line-width"],"line-width"),"line-gap-width":new U(D.paint_line["line-gap-width"],"line-gap-width"),"line-offset":new U(D.paint_line["line-offset"],"line-offset"),"line-blur":new U(D.paint_line["line-blur"],"line-blur"),"line-dasharray":new cn(D.paint_line["line-dasharray"],"line-dasharray"),"line-pattern":new cn(D.paint_line["line-pattern"],"line-pattern"),"line-gradient":new Za(D.paint_line["line-gradient"],"line-gradient")})),kc={get paint(){return tv()},get layout(){return Q2()}},ev=class extends U{possiblyEvaluate(t,e){return e=new st(Math.floor(e.zoom),{now:e.now,fadeDuration:e.fadeDuration,zoomHistory:e.zoomHistory,transition:e.transition}),super.possiblyEvaluate(t,e)}evaluate(t,e,r,i){return e=Xt({},e,{zoom:Math.floor(e.zoom)}),super.evaluate(t,e,r,i)}},ia;var rv=class extends ye{constructor(t,e){super(t,kc,e),this.gradientVersion=0,ia||(ia=new ev(kc.paint.properties["line-width"].specification,"line-floorwidth"),ia.useIntegerZoom=!0)}_handleSpecialPaintPropertyUpdate(t){if(t==="line-gradient"){let e=this.gradientExpression();this.stepInterpolant=Im(e)?e._styleExpression.expression instanceof Dl:!1,this.gradientVersion=(this.gradientVersion+1)%(2**53-1)}}gradientExpression(){return this._transitionablePaint._values["line-gradient"].value.expression}recalculate(t,e){super.recalculate(t,e),this.paint._values["line-floorwidth"]=ia.possiblyEvaluate(this._transitioningPaint._values["line-width"].value,t)}createBucket(t){return new Qd(t)}queryRadius(t){let e=t,r=Ic(Wr("line-width",this,e),Wr("line-gap-width",this,e)),i=Wr("line-offset",this,e);return r/2+Math.abs(i)+Ka(this.paint.get("line-translate"))}queryIntersectsFeature({queryGeometry:t,feature:e,featureState:r,geometry:i,transform:n,pixelsToTileUnits:a}){let s=Ja(t,this.paint.get("line-translate"),this.paint.get("line-translate-anchor"),-n.bearingInRadians,a),o=a/2*Ic(this.paint.get("line-width").evaluate(e,r),this.paint.get("line-gap-width").evaluate(e,r)),l=this.paint.get("line-offset").evaluate(e,r);return l&&(i=Ug(i,l*a)),Lg(s,i,o)}isTileClipped(){return!0}};function Ic(t,e){return e>0?e+2*t:t}var iv=Et([{name:"a_pos_offset",components:4,type:"Int16"},{name:"a_data",components:4,type:"Uint16"},{name:"a_pixeloffset",components:4,type:"Int16"},{name:"a_height_offset",components:1,type:"Float32"}],4),nv=Et([{name:"a_projected_pos",components:3,type:"Float32"}],4);Et([{name:"a_fade_opacity",components:1,type:"Uint32"}],4);var av=Et([{name:"a_placed",components:2,type:"Uint8"},{name:"a_shift",components:2,type:"Float32"},{name:"a_box_real",components:2,type:"Int16"}]);Et([{type:"Int16",name:"anchorPointX"},{type:"Int16",name:"anchorPointY"},{type:"Int16",name:"x1"},{type:"Int16",name:"y1"},{type:"Int16",name:"x2"},{type:"Int16",name:"y2"},{type:"Uint32",name:"featureIndex"},{type:"Uint16",name:"sourceLayerIndex"},{type:"Uint16",name:"bucketIndex"}]);var Cc=Et([{name:"a_pos",components:2,type:"Int16"},{name:"a_anchor_pos",components:2,type:"Int16"},{name:"a_extrude",components:2,type:"Int16"}],4),S5=Et([{name:"a_pos",components:2,type:"Float32"},{name:"a_radius",components:1,type:"Float32"},{name:"a_flags",components:2,type:"Int16"}],4);Et([{name:"triangle",components:3,type:"Uint16"}]),Et([{type:"Int16",name:"anchorX"},{type:"Int16",name:"anchorY"},{type:"Uint16",name:"glyphStartIndex"},{type:"Uint16",name:"numGlyphs"},{type:"Uint32",name:"vertexStartIndex"},{type:"Uint32",name:"lineStartIndex"},{type:"Uint32",name:"lineLength"},{type:"Uint16",name:"segment"},{type:"Uint16",name:"lowerSize"},{type:"Uint16",name:"upperSize"},{type:"Float32",name:"lineOffsetX"},{type:"Float32",name:"lineOffsetY"},{type:"Uint8",name:"writingMode"},{type:"Uint8",name:"placedOrientation"},{type:"Uint8",name:"hidden"},{type:"Uint32",name:"crossTileID"},{type:"Int16",name:"associatedIconIndex"},{type:"Float32",name:"heightOffset"}]),Et([{type:"Int16",name:"anchorX"},{type:"Int16",name:"anchorY"},{type:"Int16",name:"rightJustifiedTextSymbolIndex"},{type:"Int16",name:"centerJustifiedTextSymbolIndex"},{type:"Int16",name:"leftJustifiedTextSymbolIndex"},{type:"Int16",name:"verticalPlacedTextSymbolIndex"},{type:"Int16",name:"placedIconSymbolIndex"},{type:"Int16",name:"verticalPlacedIconSymbolIndex"},{type:"Uint16",name:"key"},{type:"Uint16",name:"textBoxStartIndex"},{type:"Uint16",name:"textBoxEndIndex"},{type:"Uint16",name:"verticalTextBoxStartIndex"},{type:"Uint16",name:"verticalTextBoxEndIndex"},{type:"Uint16",name:"iconBoxStartIndex"},{type:"Uint16",name:"iconBoxEndIndex"},{type:"Uint16",name:"verticalIconBoxStartIndex"},{type:"Uint16",name:"verticalIconBoxEndIndex"},{type:"Uint16",name:"featureIndex"},{type:"Uint16",name:"numHorizontalGlyphVertices"},{type:"Uint16",name:"numVerticalGlyphVertices"},{type:"Uint16",name:"numIconVertices"},{type:"Uint16",name:"numVerticalIconVertices"},{type:"Uint16",name:"useRuntimeCollisionCircles"},{type:"Uint32",name:"crossTileID"},{type:"Float32",name:"textBoxScale"},{type:"Float32",name:"collisionCircleDiameter"},{type:"Uint16",name:"textAnchorOffsetStartIndex"},{type:"Uint16",name:"textAnchorOffsetEndIndex"},{type:"Float32",name:"heightOffset"}]),Et([{type:"Float32",name:"offsetX"}]),Et([{type:"Int16",name:"x"},{type:"Int16",name:"y"},{type:"Int16",name:"tileUnitDistanceFromAnchor"}]),Et([{type:"Uint16",name:"textAnchor"},{type:"Float32",components:2,name:"textOffset"}]);var Ar=new class{constructor(){this.TIMEOUT=5e3,this.applyArabicShaping=null,this.processBidirectionalText=null,this.processStyledBidirectionalText=null,this.pluginStatus="unavailable",this.pluginURL=null,this.loadScriptResolve=()=>{}}setState(t){this.pluginStatus=t.pluginStatus,this.pluginURL=t.pluginURL}getState(){return{pluginStatus:this.pluginStatus,pluginURL:this.pluginURL}}setMethods(t){if(Ar.isParsed())throw Error("RTL text plugin already registered.");this.applyArabicShaping=t.applyArabicShaping,this.processBidirectionalText=t.processBidirectionalText,this.processStyledBidirectionalText=t.processStyledBidirectionalText,this.loadScriptResolve()}isParsed(){return this.applyArabicShaping!=null&&this.processBidirectionalText!=null&&this.processStyledBidirectionalText!=null}getRTLTextPluginStatus(){return this.pluginStatus}syncState(t,e){return et(this,null,function*(){if(this.isParsed())return this.getState();if(t.pluginStatus!=="loading")return this.setState(t),t;let r=t.pluginURL,i=new Promise(a=>{this.loadScriptResolve=a}),n=new Promise(a=>setTimeout(()=>a(),this.TIMEOUT));if(yield e(r),yield Promise.race([i,n]),this.isParsed()){let a={pluginStatus:"loaded",pluginURL:r};return this.setState(a),a}throw this.setState({pluginStatus:"error",pluginURL:""}),Error(`RTL Text Plugin failed to import scripts from ${r}`)})}};function sv(t){return/[\\u0600-\\u0604\\u0606-\\u060B\\u060D-\\u061A\\u061C-\\u061E\\u0620-\\u063F\\u0641-\\u064A\\u0656-\\u066F\\u0671-\\u06DC\\u06DE-\\u070D\\u070F-\\u074A\\u074D-\\u077F\\u07C0-\\u07FA\\u07FD-\\u07FF\\u0840-\\u085B\\u085E\\u0860-\\u086A\\u0870-\\u0891\\u0897-\\u08E1\\u08E3-\\u08FF\\u1800\\u1801\\u1804\\u1806-\\u1819\\u1820-\\u1878\\u1880-\\u18AA\\uA840-\\uA877\\uFB50-\\uFD3D\\uFD40-\\uFDCF\\uFDF0-\\uFDFF\\uFE70-\\uFE74\\uFE76-\\uFEFC]|\\uD802[\\uDEC0-\\uDEE6\\uDEEB-\\uDEF6\\uDF80-\\uDF91\\uDF99-\\uDF9C\\uDFA9-\\uDFAF]|\\uD803[\\uDD00-\\uDD27\\uDD30-\\uDD39\\uDE60-\\uDE7E\\uDEC2-\\uDEC7\\uDED0-\\uDED8\\uDEFA-\\uDEFF\\uDF30-\\uDF59\\uDF70-\\uDF89\\uDFB0-\\uDFCB]|\\uD805[\\uDE60-\\uDE6C]|\\uD82F[\\uDC00-\\uDC6A\\uDC70-\\uDC7C\\uDC80-\\uDC88\\uDC90-\\uDC99\\uDC9C-\\uDC9F]|\\uD83A[\\uDD00-\\uDD4B\\uDD50-\\uDD59\\uDD5E\\uDD5F]|\\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\\uDEF0\\uDEF1]/gim.test(String.fromCodePoint(t))}function ov(t){return/[\\u0591-\\u05C7\\u05D0-\\u05EA\\u05EF-\\u05F4\\u0600-\\u0604\\u0606-\\u060B\\u060D-\\u061A\\u061C-\\u061E\\u0620-\\u063F\\u0641-\\u064A\\u0656-\\u066F\\u0671-\\u06DC\\u06DE-\\u070D\\u070F-\\u074A\\u074D-\\u07B1\\u07C0-\\u07FA\\u07FD-\\u082D\\u0830-\\u083E\\u0840-\\u085B\\u085E\\u0860-\\u086A\\u0870-\\u0891\\u0897-\\u08E1\\u08E3-\\u08FF\\uFB1D-\\uFB36\\uFB38-\\uFB3C\\uFB3E\\uFB40\\uFB41\\uFB43\\uFB44\\uFB46-\\uFD3D\\uFD40-\\uFDCF\\uFDF0-\\uFDFF\\uFE70-\\uFE74\\uFE76-\\uFEFC]|\\uD802[\\uDC00-\\uDC05\\uDC08\\uDC0A-\\uDC35\\uDC37\\uDC38\\uDC3C\\uDC3F-\\uDC55\\uDC57-\\uDC9E\\uDCA7-\\uDCAF\\uDCE0-\\uDCF2\\uDCF4\\uDCF5\\uDCFB-\\uDD1B\\uDD1F-\\uDD39\\uDD3F-\\uDD59\\uDD80-\\uDDB7\\uDDBC-\\uDDCF\\uDDD2-\\uDE03\\uDE05\\uDE06\\uDE0C-\\uDE13\\uDE15-\\uDE17\\uDE19-\\uDE35\\uDE38-\\uDE3A\\uDE3F-\\uDE48\\uDE50-\\uDE58\\uDE60-\\uDE9F\\uDEC0-\\uDEE6\\uDEEB-\\uDEF6\\uDF00-\\uDF35\\uDF39-\\uDF55\\uDF58-\\uDF72\\uDF78-\\uDF91\\uDF99-\\uDF9C\\uDFA9-\\uDFAF]|\\uD803[\\uDC00-\\uDC48\\uDC80-\\uDCB2\\uDCC0-\\uDCF2\\uDCFA-\\uDD27\\uDD30-\\uDD39\\uDD40-\\uDD65\\uDD69-\\uDD85\\uDD8E\\uDD8F\\uDE60-\\uDE7E\\uDE80-\\uDEA9\\uDEAB-\\uDEAD\\uDEB0\\uDEB1\\uDEC2-\\uDEC7\\uDED0-\\uDED8\\uDEFA-\\uDF27\\uDF30-\\uDF59\\uDF70-\\uDF89\\uDFB0-\\uDFCB\\uDFE0-\\uDFF6]|\\uD83A[\\uDC00-\\uDCC4\\uDCC7-\\uDCD6\\uDD00-\\uDD4B\\uDD50-\\uDD59\\uDD5E\\uDD5F]|\\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\\uDEF0\\uDEF1]/gim.test(String.fromCodePoint(t))}function lv(t){return/[\\u02EA\\u02EB\\u2E80-\\u2FDF\\u2FF0-\\u303F\\u3041-\\u3096\\u309D-\\u309F\\u30A1-\\u30FA\\u30FD-\\u30FF\\u3105-\\u312F\\u31A0-\\u4DBF\\u4E00-\\uA48C\\uA490-\\uA4C6\\uF900-\\uFA6D\\uFA70-\\uFAD9\\uFE10-\\uFE1F\\uFE30-\\uFE4F\\uFF00-\\uFFEF]|\\uD81B[\\uDFE0-\\uDFFF]|[\\uD81C-\\uD822\\uD840-\\uD868\\uD86A-\\uD86D\\uD86F-\\uD872\\uD874-\\uD879\\uD880-\\uD883\\uD885-\\uD88C][\\uDC00-\\uDFFF]|\\uD823[\\uDC00-\\uDCD5\\uDCFF-\\uDD1E\\uDD80-\\uDDF2]|\\uD82B[\\uDFF0-\\uDFFF]|\\uD82C[\\uDC00-\\uDEFB]|\\uD83C[\\uDE00-\\uDEFF]|\\uD869[\\uDC00-\\uDEDF\\uDF00-\\uDFFF]|\\uD86E[\\uDC00-\\uDC1D\\uDC20-\\uDFFF]|\\uD873[\\uDC00-\\uDEAD\\uDEB0-\\uDFFF]|\\uD87A[\\uDC00-\\uDFE0\\uDFF0-\\uDFFF]|\\uD87B[\\uDC00-\\uDE5D]|\\uD87E[\\uDC00-\\uDE1D]|\\uD884[\\uDC00-\\uDF4A\\uDF50-\\uDFFF]|\\uD88D[\\uDC00-\\uDC79]/gim.test(String.fromCodePoint(t))}function ts(t){return/[\\u02EA\\u02EB\\u1100-\\u11FF\\u1401-\\u167F\\u18B0-\\u18FF\\u2065\\u20DD-\\u20E0\\u20E2-\\u20E4\\u2B97\\u2BF0-\\u2BFF\\u2E50\\u2E51\\u2E80-\\u3007\\u3012\\u3013\\u3020-\\u302F\\u3031-\\u30FB\\u30FD-\\uA4CF\\uA960-\\uA97F\\uAC00-\\uD7FF\\uF900-\\uFAFF\\uFE10-\\uFE1F\\uFE30-\\uFE48\\uFE50-\\uFE57\\uFE5F-\\uFE62\\uFE67-\\uFE6F\\uFF00-\\uFF07\\uFF0A-\\uFF0C\\uFF0E-\\uFF19\\uFF1F-\\uFF3A\\uFF3C\\uFF3E\\uFF40-\\uFF5A\\uFFE0-\\uFFE2\\uFFE4-\\uFFE7\\uFFF0-\\uFFF8]|\\uD802[\\uDD80-\\uDD9F]|\\uD805[\\uDD80-\\uDDFF]|\\uD806[\\uDE00-\\uDEBF]|[\\uD80C-\\uD810\\uD81C-\\uD822\\uD83C\\uD83D\\uD840-\\uD87E\\uD880-\\uD8BE][\\uDC00-\\uDFFF]|\\uD811[\\uDC00-\\uDE7F]|\\uD81B[\\uDFE0-\\uDFFF]|\\uD823[\\uDC00-\\uDDFF]|\\uD82B[\\uDFF0-\\uDFFF]|\\uD82C[\\uDC00-\\uDEFF]|\\uD833[\\uDEC0-\\uDFCF]|\\uD834[\\uDC00-\\uDDFF\\uDEE0-\\uDF7F]|\\uD836[\\uDC00-\\uDEAF]|\\uD83E[\\uDD00-\\uDEFF]|[\\uD87F\\uD8BF][\\uDC00-\\uDFFD]/gim.test(String.fromCodePoint(t))}function uv(t){return/[\\xA7\\xA9\\xAE\\xB1\\xBC-\\xBE\\xD7\\xF7\\u2016\\u2020\\u2021\\u2030\\u2031\\u203B\\u203C\\u2042\\u2047-\\u2049\\u2051\\u2100-\\u218F\\u221E\\u2234\\u2235\\u2300-\\u2307\\u230C-\\u231F\\u2324-\\u2328\\u232B\\u237D-\\u239A\\u23BE-\\u23CD\\u23CF\\u23D1-\\u23DB\\u23E2-\\u2422\\u2424-\\u24FF\\u25A0-\\u2619\\u2620-\\u2767\\u2776-\\u2793\\u2B12-\\u2B2F\\u2B50-\\u2B59\\u2BB8-\\u2BEB\\u3000-\\u303F\\u30A0-\\u30FF\\uE000-\\uF8FF\\uFE30-\\uFE6F\\uFF00-\\uFFEF\\uFFFC\\uFFFD]|[\\uDB80-\\uDBFF][\\uDC00-\\uDFFF]/gim.test(String.fromCodePoint(t))}function hv(t){return/[\\r\\u0300-\\u036F\\u0483-\\u0489\\u0591-\\u05BD\\u05BF\\u05C1\\u05C2\\u05C4\\u05C5\\u05C7\\u0600-\\u0605\\u0610-\\u061A\\u064B-\\u065F\\u0670\\u06D6-\\u06DD\\u06DF-\\u06E4\\u06E7\\u06E8\\u06EA-\\u06ED\\u070F\\u0711\\u0730-\\u074A\\u07A6-\\u07B0\\u07EB-\\u07F3\\u07FD\\u0816-\\u0819\\u081B-\\u0823\\u0825-\\u0827\\u0829-\\u082D\\u0859-\\u085B\\u0890\\u0891\\u0897-\\u089F\\u08CA-\\u0903\\u093A-\\u093C\\u093E-\\u094F\\u0951-\\u0957\\u0962\\u0963\\u0981-\\u0983\\u09BC\\u09BE-\\u09C4\\u09C7\\u09C8\\u09CB-\\u09CD\\u09D7\\u09E2\\u09E3\\u09FE\\u0A01-\\u0A03\\u0A3C\\u0A3E-\\u0A42\\u0A47\\u0A48\\u0A4B-\\u0A4D\\u0A51\\u0A70\\u0A71\\u0A75\\u0A81-\\u0A83\\u0ABC\\u0ABE-\\u0AC5\\u0AC7-\\u0AC9\\u0ACB-\\u0ACD\\u0AE2\\u0AE3\\u0AFA-\\u0AFF\\u0B01-\\u0B03\\u0B3C\\u0B3E-\\u0B44\\u0B47\\u0B48\\u0B4B-\\u0B4D\\u0B55-\\u0B57\\u0B62\\u0B63\\u0B82\\u0BBE-\\u0BC2\\u0BC6-\\u0BC8\\u0BCA-\\u0BCD\\u0BD7\\u0C00-\\u0C04\\u0C3C\\u0C3E-\\u0C44\\u0C46-\\u0C48\\u0C4A-\\u0C4D\\u0C55\\u0C56\\u0C62\\u0C63\\u0C81-\\u0C83\\u0CBC\\u0CBE-\\u0CC4\\u0CC6-\\u0CC8\\u0CCA-\\u0CCD\\u0CD5\\u0CD6\\u0CE2\\u0CE3\\u0CF3\\u0D00-\\u0D03\\u0D3B\\u0D3C\\u0D3E-\\u0D44\\u0D46-\\u0D48\\u0D4A-\\u0D4E\\u0D57\\u0D62\\u0D63\\u0D81-\\u0D83\\u0DCA\\u0DCF-\\u0DD4\\u0DD6\\u0DD8-\\u0DDF\\u0DF2\\u0DF3\\u0E31\\u0E33-\\u0E3A\\u0E47-\\u0E4E\\u0EB1\\u0EB3-\\u0EBC\\u0EC8-\\u0ECE\\u0F18\\u0F19\\u0F35\\u0F37\\u0F39\\u0F3E\\u0F3F\\u0F71-\\u0F84\\u0F86\\u0F87\\u0F8D-\\u0F97\\u0F99-\\u0FBC\\u0FC6\\u102D-\\u1037\\u1039-\\u103E\\u1056-\\u1059\\u105E-\\u1060\\u1071-\\u1074\\u1082\\u1084-\\u1086\\u108D\\u109D\\u1100-\\u11FF\\u135D-\\u135F\\u1712-\\u1715\\u1732-\\u1734\\u1752\\u1753\\u1772\\u1773\\u17B4-\\u17D3\\u17DD\\u180B-\\u180D\\u180F\\u1885\\u1886\\u18A9\\u1920-\\u192B\\u1930-\\u193B\\u1A17-\\u1A1B\\u1A55-\\u1A5E\\u1A60\\u1A62\\u1A65-\\u1A7C\\u1A7F\\u1AB0-\\u1ADD\\u1AE0-\\u1AEB\\u1B00-\\u1B04\\u1B34-\\u1B44\\u1B6B-\\u1B73\\u1B80-\\u1B82\\u1BA1-\\u1BAD\\u1BE6-\\u1BF3\\u1C24-\\u1C37\\u1CD0-\\u1CD2\\u1CD4-\\u1CE8\\u1CED\\u1CF4\\u1CF7-\\u1CF9\\u1DC0-\\u1DFF\\u200C\\u200D\\u20D0-\\u20F0\\u2CEF-\\u2CF1\\u2D7F\\u2DE0-\\u2DFF\\u302A-\\u302F\\u3099\\u309A\\uA66F-\\uA672\\uA674-\\uA67D\\uA69E\\uA69F\\uA6F0\\uA6F1\\uA802\\uA806\\uA80B\\uA823-\\uA827\\uA82C\\uA880\\uA881\\uA8B4-\\uA8C5\\uA8E0-\\uA8F1\\uA8FF\\uA926-\\uA92D\\uA947-\\uA953\\uA960-\\uA97C\\uA980-\\uA983\\uA9B3-\\uA9C0\\uA9E5\\uAA29-\\uAA36\\uAA43\\uAA4C\\uAA4D\\uAA7C\\uAAB0\\uAAB2-\\uAAB4\\uAAB7\\uAAB8\\uAABE\\uAABF\\uAAC1\\uAAEB-\\uAAEF\\uAAF5\\uAAF6\\uABE3-\\uABEA\\uABEC\\uABED\\uAC00-\\uD7A3\\uD7B0-\\uD7C6\\uD7CB-\\uD7FB\\uFB1E\\uFE00-\\uFE0F\\uFE20-\\uFE2F\\uFF9E\\uFF9F]|\\uD800[\\uDDFD\\uDEE0\\uDF76-\\uDF7A]|\\uD802[\\uDE01-\\uDE03\\uDE05\\uDE06\\uDE0C-\\uDE0F\\uDE38-\\uDE3A\\uDE3F\\uDEE5\\uDEE6]|\\uD803[\\uDD24-\\uDD27\\uDD69-\\uDD6D\\uDEAB\\uDEAC\\uDEFA-\\uDEFF\\uDF46-\\uDF50\\uDF82-\\uDF85]|\\uD804[\\uDC00-\\uDC02\\uDC38-\\uDC46\\uDC70\\uDC73\\uDC74\\uDC7F-\\uDC82\\uDCB0-\\uDCBA\\uDCBD\\uDCC2\\uDCCD\\uDD00-\\uDD02\\uDD27-\\uDD34\\uDD45\\uDD46\\uDD73\\uDD80-\\uDD82\\uDDB3-\\uDDC0\\uDDC2\\uDDC3\\uDDC9-\\uDDCC\\uDDCE\\uDDCF\\uDE2C-\\uDE37\\uDE3E\\uDE41\\uDEDF-\\uDEEA\\uDF00-\\uDF03\\uDF3B\\uDF3C\\uDF3E-\\uDF44\\uDF47\\uDF48\\uDF4B-\\uDF4D\\uDF57\\uDF62\\uDF63\\uDF66-\\uDF6C\\uDF70-\\uDF74\\uDFB8-\\uDFC0\\uDFC2\\uDFC5\\uDFC7-\\uDFCA\\uDFCC-\\uDFD2\\uDFE1\\uDFE2]|\\uD805[\\uDC35-\\uDC46\\uDC5E\\uDCB0-\\uDCC3\\uDDAF-\\uDDB5\\uDDB8-\\uDDC0\\uDDDC\\uDDDD\\uDE30-\\uDE40\\uDEAB-\\uDEB7\\uDF1D-\\uDF1F\\uDF22-\\uDF2B]|\\uD806[\\uDC2C-\\uDC3A\\uDD30-\\uDD35\\uDD37\\uDD38\\uDD3B-\\uDD43\\uDDD1-\\uDDD7\\uDDDA-\\uDDE0\\uDDE4\\uDE01-\\uDE0A\\uDE33-\\uDE39\\uDE3B-\\uDE3E\\uDE47\\uDE51-\\uDE5B\\uDE84-\\uDE99\\uDF60-\\uDF67]|\\uD807[\\uDC2F-\\uDC36\\uDC38-\\uDC3F\\uDC92-\\uDCA7\\uDCA9-\\uDCB6\\uDD31-\\uDD36\\uDD3A\\uDD3C\\uDD3D\\uDD3F-\\uDD47\\uDD8A-\\uDD8E\\uDD90\\uDD91\\uDD93-\\uDD97\\uDEF3-\\uDEF6\\uDF00-\\uDF03\\uDF34-\\uDF3A\\uDF3E-\\uDF42\\uDF5A]|\\uD80D[\\uDC40\\uDC47-\\uDC55]|\\uD818[\\uDD1E-\\uDD2F]|\\uD81A[\\uDEF0-\\uDEF4\\uDF30-\\uDF36]|\\uD81B[\\uDD63\\uDD67-\\uDD6A\\uDF4F\\uDF51-\\uDF87\\uDF8F-\\uDF92\\uDFE4\\uDFF0\\uDFF1]|\\uD82F[\\uDC9D\\uDC9E]|\\uD833[\\uDF00-\\uDF2D\\uDF30-\\uDF46]|\\uD834[\\uDD65-\\uDD69\\uDD6D-\\uDD72\\uDD7B-\\uDD82\\uDD85-\\uDD8B\\uDDAA-\\uDDAD\\uDE42-\\uDE44]|\\uD836[\\uDE00-\\uDE36\\uDE3B-\\uDE6C\\uDE75\\uDE84\\uDE9B-\\uDE9F\\uDEA1-\\uDEAF]|\\uD838[\\uDC00-\\uDC06\\uDC08-\\uDC18\\uDC1B-\\uDC21\\uDC23\\uDC24\\uDC26-\\uDC2A\\uDC8F\\uDD30-\\uDD36\\uDEAE\\uDEEC-\\uDEEF]|\\uD839[\\uDCEC-\\uDCEF\\uDDEE\\uDDEF\\uDEE3\\uDEE6\\uDEEE\\uDEEF\\uDEF5]|\\uD83A[\\uDCD0-\\uDCD6\\uDD44-\\uDD4A]|\\uD83C[\\uDDE6-\\uDDFF\\uDFFB-\\uDFFF]|\\uDB40[\\uDC20-\\uDC7F\\uDD00-\\uDDEF]/.test(t)}function Mc(t){return/[\\u0E01-\\u0E3A\\u0E40-\\u0E4E\\u0E81\\u0E82\\u0E84\\u0E86-\\u0E8A\\u0E8C-\\u0EA3\\u0EA5\\u0EA7-\\u0EBD\\u0EC0-\\u0EC4\\u0EC6\\u0EC8-\\u0ECE\\u0EDC-\\u0EDF\\u0F00-\\u0F47\\u0F49-\\u0F6C\\u0F71-\\u0F97\\u0F99-\\u0FBC\\u0FBE-\\u0FCC\\u0FCE-\\u0FD4\\u0FD9\\u0FDA\\u1000-\\u103F\\u1050-\\u108F\\u109A-\\u109F\\u1780-\\u17D3\\u17D7\\u17DC\\u17DD\\u1950-\\u196D\\u1970-\\u1974\\u1980-\\u19AB\\u19B0-\\u19C9\\u19DE\\u19DF\\u1A20-\\u1A5E\\u1A60-\\u1A7C\\u1AA0-\\u1AAD\\u1B00-\\u1B4C\\u1B4E-\\u1B7F\\uA980-\\uA9CD\\uA9D0-\\uA9D9\\uA9DE-\\uA9EF\\uA9FA-\\uA9FE\\uAA60-\\uAAC2\\uAADB-\\uAADF]|\\uD805[\\uDF00-\\uDF1A\\uDF1D-\\uDF2B\\uDF3A\\uDF3B\\uDF3F-\\uDF46]/gim.test(String.fromCodePoint(t))}function cv(t,e){return/(?:[\\u1039\\u17D2\\u1A60\\u1BAB\\u200D\\uAAF6]|\\uD802\\uDE3F|\\uD804[\\uDD33\\uDFD0]|\\uD806[\\uDD3E\\uDE47\\uDE99]|\\uD807[\\uDD45\\uDD97\\uDF42])$/.test(t)||new RegExp("^\\\\p{gc=Mc}","u").test(e)}var pv={C:"18g,1;g2,3;4nb,1",D:"17k,1;5,1;1,1;1,5;4,d;1,7;1,2;z,2;8,g;i,12;1,2;9,1;1,1;1,2;14,3;2,1;28,9;3,f;2,4;1,1;2,3;2,6;7a,1;2,5;1,1;g,a;5,2;2,6;1,f",R:"17m,4;1,1;1,1;5,4;l,1;14,3;1,3;g,i;12,1;2,9;1,1;1,1;2,2;1,1;o,2;2x,3;f,2;4,1;1,2;3,2;6u,j;b,1;r,3;1,1;2,2;6,1",T:"174,b;1,1;1a,l;g,1;2t,7;2,6;2,2;1,4;bt,9;16,o;1,t;1clb,1"},fv={1569:[65152,0,0,0],1570:[65153,65154,0,0],1571:[65155,65156,0,0],1572:[65157,65158,0,0],1573:[65159,65160,0,0],1574:[65161,65162,65163,65164],1575:[65165,65166,0,0],1576:[65167,65168,65169,65170],1577:[65171,65172,0,0],1578:[65173,65174,65175,65176],1579:[65177,65178,65179,65180],1580:[65181,65182,65183,65184],1581:[65185,65186,65187,65188],1582:[65189,65190,65191,65192],1583:[65193,65194,0,0],1584:[65195,65196,0,0],1585:[65197,65198,0,0],1586:[65199,65200,0,0],1587:[65201,65202,65203,65204],1588:[65205,65206,65207,65208],1589:[65209,65210,65211,65212],1590:[65213,65214,65215,65216],1591:[65217,65218,65219,65220],1592:[65221,65222,65223,65224],1593:[65225,65226,65227,65228],1594:[65229,65230,65231,65232],1601:[65233,65234,65235,65236],1602:[65237,65238,65239,65240],1603:[65241,65242,65243,65244],1604:[65245,65246,65247,65248],1605:[65249,65250,65251,65252],1606:[65253,65254,65255,65256],1607:[65257,65258,65259,65260],1608:[65261,65262,0,0],1609:[65263,65264,64488,64489],1610:[65265,65266,65267,65268],1611:[65136,0,0,65137],1612:[65138,0,0,0],1613:[65140,0,0,0],1614:[65142,0,0,65143],1615:[65144,0,0,65145],1616:[65146,0,0,65147],1617:[65148,0,0,65149],1618:[65150,0,0,65151],1649:[64336,64337,0,0],1655:[64477,0,0,0],1657:[64358,64359,64360,64361],1658:[64350,64351,64352,64353],1659:[64338,64339,64340,64341],1662:[64342,64343,64344,64345],1663:[64354,64355,64356,64357],1664:[64346,64347,64348,64349],1667:[64374,64375,64376,64377],1668:[64370,64371,64372,64373],1670:[64378,64379,64380,64381],1671:[64382,64383,64384,64385],1672:[64392,64393,0,0],1676:[64388,64389,0,0],1677:[64386,64387,0,0],1678:[64390,64391,0,0],1681:[64396,64397,0,0],1688:[64394,64395,0,0],1700:[64362,64363,64364,64365],1702:[64366,64367,64368,64369],1705:[64398,64399,64400,64401],1709:[64467,64468,64469,64470],1711:[64402,64403,64404,64405],1713:[64410,64411,64412,64413],1715:[64406,64407,64408,64409],1722:[64414,64415,0,0],1723:[64416,64417,64418,64419],1726:[64426,64427,64428,64429],1728:[64420,64421,0,0],1729:[64422,64423,64424,64425],1733:[64480,64481,0,0],1734:[64473,64474,0,0],1735:[64471,64472,0,0],1736:[64475,64476,0,0],1737:[64482,64483,0,0],1739:[64478,64479,0,0],1740:[64508,64509,64510,64511],1744:[64484,64485,64486,64487],1746:[64430,64431,0,0],1747:[64432,64433,0,0]},dv={\\u0644\\u0622:[65269,65270],\\u0644\\u0623:[65271,65272],\\u0644\\u0625:[65273,65274],\\u0644\\u0627:[65275,65276]},Bc=1604,yv=/[\\u0600-\\u06ff\\u0750-\\u077f\\u0870-\\u089f\\u08a0-\\u08ff\\ufb50-\\ufdff\\ufe70-\\ufeff]/;function mv(t,e,r){let i=0;for(let n of t.split(";")){let[a,s]=n.split(",").map(l=>parseInt(l,36)),o=i+a;for(let l=o;l{let r=e.codePointAt(0);return{codePoint:r,type:gv(r),form:null}})}function Dv(t){let e=t.filter(r=>r.type!=="T");for(let r=0;r0&&xv(e[r-1].type),a=r+1String.fromCodePoint(Sv(r))).join("")}function Fv(t,e,r){var n;let i=e.layout.get("text-transform").evaluate(r,{});return i==="uppercase"?t=t.toLocaleUpperCase():i==="lowercase"&&(t=t.toLocaleLowerCase()),((n=Ar.applyArabicShaping)!=null?n:Ev)(t)}function Tv(t,e,r){for(let i of t.sections)i.text=Fv(i.text,e,r);return t}function Ws(t,e,r){let i=r?e.last.points:e.first.points,n=r?i[i.length-1]:i[0];return`${t}:${n.x}:${n.y}`}function kv(t){let e=t.first.points,r=e.length;for(let a=t.first.next;a;a=a.next)r+=a.points.length-1;let i=Array(r);for(let a=0;a=0&&cv(e[i],r)?e[i]+=r:e.push(r)}return e}function Cv(t){let e=new Set;if(ey){Oi!=null||(Oi=new Intl.Segmenter(void 0,{granularity:"word"}));for(let{index:i}of Oi.segment(t))e.add(i);return e}let r=0;for(let i of t.split(new RegExp("\\\\b|(?=\\\\p{Ideo})","u")))e.add(r),r+=i.length;return e}function ry(t){let e=t.codePointAt(0);return t.length>(e>65535?2:1)}function au(t){return/\\s/u.test(String.fromCodePoint(t))}function nl(t){for(let e of t)if(ts(e.codePointAt(0)))return!0;return!1}function Mv(t){for(let e of t)if(!Bv(e.codePointAt(0)))return!1;return!0}function Bv(t){return!sv(t)}function Lc(t){return!(ts(t)||uv(t))}function iy(t){return new RegExp("\\\\p{sc=Arab}","u").test(String.fromCodePoint(t))}function ny(t){return ov(t)}function ay(t){for(let e of t)if(ny(e.codePointAt(0)))return!0;return!1}var Gr={"!":"\\uFE15","#":"\\uFF03",$:"\\uFF04","%":"\\uFF05","&":"\\uFF06","(":"\\uFE35",")":"\\uFE36","*":"\\uFF0A","+":"\\uFF0B",",":"\\uFE10","-":"\\uFE32",".":"\\u30FB","/":"\\uFF0F",":":"\\uFE13",";":"\\uFE14","<":"\\uFE3F","=":"\\uFF1D",">":"\\uFE40","?":"\\uFE16","@":"\\uFF20","[":"\\uFE47","\\\\":"\\uFF3C","]":"\\uFE48","^":"\\uFF3E",_:"\\uFE33","`":"\\uFF40","{":"\\uFE37","|":"\\u2015","}":"\\uFE38","~":"\\uFF5E","\\xA2":"\\uFFE0","\\xA3":"\\uFFE1","\\xA5":"\\uFFE5","\\xA6":"\\uFFE4","\\xAC":"\\uFFE2","\\xAF":"\\uFFE3","\\u2013":"\\uFE32","\\u2014":"\\uFE31","\\u2018":"\\uFE43","\\u2019":"\\uFE44","\\u201C":"\\uFE41","\\u201D":"\\uFE42","\\u2026":"\\uFE19","\\u22EF":"\\uFE19","\\u2027":"\\u30FB","\\u20A9":"\\uFFE6","\\u3001":"\\uFE11","\\u3002":"\\uFE12","\\u3008":"\\uFE3F","\\u3009":"\\uFE40","\\u300A":"\\uFE3D","\\u300B":"\\uFE3E","\\u300C":"\\uFE41","\\u300D":"\\uFE42","\\u300E":"\\uFE43","\\u300F":"\\uFE44","\\u3010":"\\uFE3B","\\u3011":"\\uFE3C","\\u3014":"\\uFE39","\\u3015":"\\uFE3A","\\u3016":"\\uFE17","\\u3017":"\\uFE18","\\uFF01":"\\uFE15","\\uFF08":"\\uFE35","\\uFF09":"\\uFE36","\\uFF0C":"\\uFE10","\\uFF0D":"\\uFE32","\\uFF0E":"\\u30FB","\\uFF1A":"\\uFE13","\\uFF1B":"\\uFE14","\\uFF1C":"\\uFE3F","\\uFF1E":"\\uFE40","\\uFF1F":"\\uFE16","\\uFF3B":"\\uFE47","\\uFF3D":"\\uFE48","\\uFF3F":"\\uFE33","\\uFF5B":"\\uFE37","\\uFF5C":"\\u2015","\\uFF5D":"\\uFE38","\\uFF5F":"\\uFE35","\\uFF60":"\\uFE36","\\uFF61":"\\uFE12","\\uFF62":"\\uFE41","\\uFF63":"\\uFE42"};function Pv(t){let e="",r={premature:!0,value:void 0},i=t[Symbol.iterator](),n=i.next(),a=t[Symbol.iterator]();a.next();let s=a.next();for(;!n.done;)(s.done||!Lc(s.value.codePointAt(0))||Gr[s.value])&&(r.premature||!Lc(r.value.codePointAt(0))||Gr[r.value])&&Gr[n.value]?e+=Gr[n.value]:e+=n.value,r={value:n.value,premature:!1},n=i.next(),s=a.next();return e}var zv={10:!0,13:!0,32:!0,38:!0,41:!0,43:!0,45:!0,47:!0,173:!0,183:!0,8203:!0,8208:!0,8211:!0,8231:!0},Lv={40:!0};function Vc(t,e,r,i,n,a){var s;if("fontStack"in e){let o=(s=r[e.fontStack])==null?void 0:s.default,l=o==null?void 0:o[t];if(l)return l.metrics.advance*e.scale+n;let u=0;for(let h of t){let c=o==null?void 0:o[h];c&&(u+=c.metrics.advance*e.scale+n)}return u}{let o=i[e.imageName];return o?o.displaySize[0]*e.scale*24/a+n:0}}function Oc(t,e,r,i){let n=(t-e)**2;return i?tr&&Rc(e[i-1]);)i--;this.text=e.slice(r,i).join(""),this.sectionIndex=this.sectionIndex.slice(r,i),this._graphemes=null}substring(e,r){let i=this.graphemes().slice(e,r).join(""),n=this.sectionIndex.slice(e,r);return new al(i,this.sections,n)}toCodeUnitIndex(e){return this.graphemes().slice(0,e).join("").length}toString(){return this.text}getMaxScale(){return this.sectionIndex.reduce((e,r)=>Math.max(e,this.sections[r].scale),0)}getMaxImageSize(e){let r=0,i=0;for(let n=0;n0?i[i.length-1]:"",a=il(n+e);this.text+=e,this._graphemes=i.slice(0,n?-1:void 0).concat(a);let s=a.length-+!!n;for(let o=0;o=63743?null:++this.imageSectionID:(this.imageSectionID=57344,this.imageSectionID)}determineLineBreaks(e,r,i,n,a){let s=[],o=this.determineAverageLineWidth(e,r,i,n,a),l=this.hasZeroWidthSpaces(),u=this.graphemes(),h=null,c=0,p=0;for(let f=0;f0){let y=u[f-1].codePointAt(0),m=d.codePointAt(0),g=lv(y),x=Mc(y)&&Mc(m);(zv[y]||g||"imageName"in this.getSection(f-1)||u[f+1]!==void 0&&Lv[m]||x&&(h!=null?h:h=Cv(this.text)).has(p))&&s.push($c(f,c,o,s,Vv(y,m,g&&l),!1))}au(d.codePointAt(0))||(c+=Vc(d,this.getSection(f),i,n,e,a)),p+=d.length}return sy($c(this.length(),c,o,s,0,!0))}determineAverageLineWidth(e,r,i,n,a){let s=0,o=0;for(let u of this.graphemes()){let h=this.getSection(o);s+=Vc(u,h,i,n,e,a),o++}let l=Math.max(1,Math.ceil(s/r));return s/l}};function Ov(){return(function(t){var e={R:"13k,1a,2,3,3,2+1j,ch+16,a+1,5+2,2+n,5,a,4,6+16,4+3,h+1b,4mo,179q,2+9,2+11,2i9+7y,2+68,4,3+4,5+13,4+3,2+4k,3+29,8+cf,1t+7z,w+17,3+3m,1t+3z,16o1+5r,8+30,8+mc,29+1r,29+4v,75+73",EN:"1c+9,3d+1,6,187+9,513,4+5,7+9,sf+j,175h+9,qw+q,161f+1d,4xt+a,25i+9",ES:"17,2,6dp+1,f+1,av,16vr,mx+1,4o,2",ET:"z+2,3h+3,b+1,ym,3e+1,2o,p4+1,8,6u,7c,g6,1wc,1n9+4,30+1b,2n,6d,qhx+1,h0m,a+1,49+2,63+1,4+1,6bb+3,12jj",AN:"16o+5,2j+9,2+1,35,ed,1ff2+9,87+u",CS:"18,2+1,b,2u,12k,55v,l,17v0,2,3,53,2+1,b",B:"a,3,f+2,2v,690",S:"9,2,k",WS:"c,k,4f4,1vk+a,u,1j,335",ON:"x+1,4+4,h+5,r+5,r+3,z,5+3,2+1,2+1,5,2+2,3+4,o,w,ci+1,8+d,3+d,6+8,2+g,39+1,9,6+1,2,33,b8,3+1,3c+1,7+1,5r,b,7h+3,sa+5,2,3i+6,jg+3,ur+9,2v,ij+1,9g+9,7+a,8m,4+1,49+x,14u,2+2,c+2,e+2,e+2,e+1,i+n,e+e,2+p,u+2,e+2,36+1,2+3,2+1,b,2+2,6+5,2,2,2,h+1,5+4,6+3,3+f,16+2,5+3l,3+81,1y+p,2+40,q+a,m+13,2r+ch,2+9e,75+hf,3+v,2+2w,6e+5,f+6,75+2a,1a+p,2+2g,d+5x,r+b,6+3,4+o,g,6+1,6+2,2k+1,4,2j,5h+z,1m+1,1e+f,t+2,1f+e,d+3,4o+3,2s+1,w,535+1r,h3l+1i,93+2,2s,b+1,3l+x,2v,4g+3,21+3,kz+1,g5v+1,5a,j+9,n+v,2,3,2+8,2+1,3+2,2,3,46+1,4+4,h+5,r+5,r+a,3h+2,4+6,b+4,78,1r+24,4+c,4,1hb,ey+6,103+j,16j+c,1ux+7,5+g,fsh,jdq+1t,4,57+2e,p1,1m,1m,1m,1m,4kt+1,7j+17,5+2r,d+e,3+e,2+e,2+10,m+4,w,1n+5,1q,4z+5,4b+rb,9+c,4+c,4+37,d+2g,8+b,l+b,5+1j,9+9,7+13,9+t,3+1,27+3c,2+29,2+3q,d+d,3+4,4+2,6+6,a+o,8+6,a+2,e+6,16+42,2+1i",BN:"0+8,6+d,2s+5,2+p,e,4m9,1kt+2,2b+5,5+5,17q9+v,7k,6p+8,6+1,119d+3,440+7,96s+1,1ekf+1,1ekf+1,1ekf+1,1ekf+1,1ekf+1,1ekf+1,1ekf+1,1ekf+1,1ekf+1,1ekf+1,1ekf+1,1ekf+75,6p+2rz,1ben+1,1ekf+1,1ekf+1",NSM:"lc+33,7o+6,7c+18,2,2+1,2+1,2,21+a,1d+k,h,2u+6,3+5,3+1,2+3,10,v+q,2k+a,1n+8,a,p+3,2+8,2+2,2+4,18+2,3c+e,2+v,1k,2,5+7,5,4+6,b+1,u,1n,5+3,9,l+1,r,3+1,1m,5+1,5+1,3+2,4,v+1,4,c+1,1m,5+4,2+1,5,l+1,n+5,2,1n,3,2+3,9,8+1,c+1,v,1q,d,1f,4,1m+2,6+2,2+3,8+1,c+1,u,1n,g+1,l+1,t+1,1m+1,5+3,9,l+1,u,21,8+2,2,2j,3+6,d+7,2r,3+8,c+5,23+1,s,2,2,1k+d,2+4,2+1,6+a,2+z,a,2v+3,2+5,2+1,3+1,q+1,5+2,h+3,e,3+1,7,g,jk+2,qb+2,u+2,u+1,v+1,1t+1,2+6,9,3+a,a,1a+2,3c+1,z,3b+2,5+1,a,7+2,64+1,3,1n,2+6,2,2,3+7,7+9,3,1d+g,1s+3,1d,2+4,2,6,15+8,d+1,x+3,3+1,2+2,1l,2+1,4,2+2,1n+7,3+1,49+2,2+c,2+6,5,7,4+1,5j+1l,2+4,k1+w,2db+2,3y,2p+v,ff+3,30+1,n9x+3,2+9,x+1,29+1,7l,4,5,q+1,6,48+1,r+h,e,13+7,q+a,1b+2,1d,3+3,3+1,14,1w+5,3+1,3+1,d,9,1c,1g,2+2,3+1,6+1,2,17+1,9,6n,3,5,fn5,ki+f,h+f,r2,6b,46+4,1af+2,2+1,6+3,15+2,5,4m+1,fy+3,as+1,4a+a,4x,1j+e,1l+2,1e+3,3+1,1y+2,11+4,2+7,1r,d+1,1h+8,b+3,3,2o+2,3,2+1,7,4h,4+7,m+1,1m+1,4,12+6,4+4,5g+7,3+2,2,o,2d+5,2,5+1,2+1,6n+3,7+1,2+1,s+1,2e+7,3,2+1,2z,2,3+5,2,2u+2,3+3,2+4,78+8,2+1,75+1,2,5,41+3,3+1,5,x+5,3+1,15+5,3+3,9,a+5,3+2,1b+c,2+1,bb+6,2+5,2d+l,3+6,2+1,2+1,3f+5,4,2+1,2+6,2,21+1,4,2,9o+1,f0c+4,1o+6,t5,1s+3,2a,f5l+1,43t+2,i+7,3+6,v+3,45+2,1j0+1i,5+1d,9,f,n+4,2+e,11t+6,2+g,3+6,2+1,2+4,7a+6,c6+3,15t+6,32+6,gzhy+6n",AL:"16w,3,2,e+1b,z+2,2+2s,g+1,8+1,b+m,2+t,s+2i,c+e,4h+f,1d+1e,1bwe+dp,3+3z,x+c,2+1,35+3y,2rm+z,5+7,b+5,dt+l,c+u,17nl+27,1t+27,4x+6n,3+d",LRO:"6ct",RLO:"6cu",LRE:"6cq",RLE:"6cr",PDF:"6cs",LRI:"6ee",RLI:"6ef",FSI:"6eg",PDI:"6eh"},r={},i={};r.L=1,i[1]="L",Object.keys(e).forEach(function(N,at){r[N]=1<1,1e>2,u>2,2wt>1,1>1,1ge>1,1wp>1,1j>1,f>1,hm>1,1>1,u>1,u6>1,1>1,+5,28>1,w>1,1>1,+3,b8>1,1>1,+3,1>3,-1>-1,3>1,1>1,+2,1s>1,1>1,x>1,th>1,1>1,+2,db>1,1>1,+3,3>1,1>1,+2,14qm>1,1>1,+1,4q>1,1e>2,u>2,2>1,+1",canonical:"6f1>-6dx,6dy>-6dx,6ec>-6ed,6ee>-6ed,6ww>2jj,-2ji>2jj,14r4>-1e7l,1e7m>-1e7l,1e7m>-1e5c,1e5d>-1e5b,1e5c>-14qx,14qy>-14qx,14vn>-1ecg,1ech>-1ecg,1edu>-1ecg,1eci>-1ecg,1eda>-1ecg,1eci>-1ecg,1eci>-168q,168r>-168q,168s>-14ye,14yf>-14ye"};function d(N,at){var Y=0,k=new Map,ot=at&&new Map,X;return N.split(",").forEach(function K(j){if(j.indexOf("+")!==-1)for(var Nt=+j;Nt--;)K(X);else{X=j;var bt=j.split(">"),nt=bt[0],kt=bt[1];nt=String.fromCodePoint(Y+=parseInt(nt,36)),kt=String.fromCodePoint(Y+=parseInt(kt,36)),k.set(nt,kt),at&&ot.set(kt,nt)}}),{map:k,reverseMap:ot}}var y,m,g;function x(){if(!y){var N=d(f.pairs,!0),at=N.map,Y=N.reverseMap;y=at,m=Y,g=d(f.canonical,!1).map}}function v(N){return x(),y.get(N)||null}function b(N){return x(),m.get(N)||null}function w(N){return x(),g.get(N)||null}var _=r.L,A=r.R,S=r.EN,T=r.ES,L=r.ET,O=r.AN,B=r.CS,V=r.B,F=r.S,$=r.ON,G=r.BN,P=r.NSM,z=r.AL,it=r.LRO,dt=r.RLO,ct=r.LRE,pt=r.RLE,Kt=r.PDF,jt=r.LRI,Jt=r.RLI,Oe=r.FSI,Gt=r.PDI;function Re(N,at){for(var Y=125,k=new Uint32Array(N.length),ot=0;ot0)Ie--;else if(is>0){for(qe=0;!lt[lt.length-1]._isolate;)lt.pop();var ns=lt[lt.length-1]._isolInitIndex;ns!=null&&(Nt.set(ns,zt),Nt.set(zt,ns)),lt.pop(),is--}wt=lt[lt.length-1],j[zt]=wt._level,wt._override&&K(zt,wt._override)}else Lt&Kt?(Ie===0&&(qe>0?qe--:!wt._isolate&<.length>1&&(lt.pop(),wt=lt[lt.length-1])),j[zt]=wt._level):Lt&V&&(j[zt]=nt.level);else j[zt]=wt._level,wt._override&&Lt!==G&&K(zt,wt._override)}for(var Cr=[],me=null,ur=nt.start;ur<=nt.end;ur++){var as=k[ur];if(!(as&o)){var Vu=j[ur],Ou=as&n,m1=as===Gt;me&&Vu===me._level?(me._end=ur,me._endsWithIsolInit=Ou):Cr.push(me={_start:ur,_end:ur,_level:Vu,_startsWithPDI:m1,_endsWithIsolInit:Ou})}}for(var ss=[],In=0;In=0;Bn--)if(!(k[Bn]&o)){Nu=j[Bn];break}var hs=Mr[Mr.length-1],x1=j[hs],Uu=nt.level;if(!(k[hs]&n)){for(var Pn=hs+1;Pn<=nt.end;Pn++)if(!(k[Pn]&o)){Uu=j[Pn];break}}ss.push({_seqIndices:Mr,_sosType:Math.max(Nu,g1)%2?A:_,_eosType:Math.max(Uu,x1)%2?A:_})}}for(var cs=0;cs=0;Ln--)if(!(k[q[Ln]]&o)){fs=k[q[Ln]];break}K(qu,fs&(n|Gt)?$:fs)}}if(X.get(S))for(var Vn=0;Vn=-1;On--){var Gu=On===-1?yi:k[q[On]];if(Gu&a){Gu===z&&K(ju,O);break}}}if(X.get(z))for(var ds=0;ds=0&&(Pr=k[q[gs]],Pr&o);gs--);for(var xs=mi+1;xs=0&&k[q[Rn]]&(L|o);Rn--)K(q[Rn],S);for(ge++;ge=0&&k[q[$n]]&o;$n--)K(q[$n],$);for(var Nn=gi+1;Nn=0;bi--){var ws=zr[bi].char;if(ws===Ku||ws===b(w(vi))||v(w(ws))===vi){Un.push([zr[bi].seqIndex,Lr]),zr.length=bi;break}}}Un.sort(function(Wt,he){return Wt[0]-he[0]});for(var Ds=0;Ds=0;Ss--){var rh=q[Ss];if(k[rh]&Hu){var ih=k[rh]&xi?A:_;xe=ih===Br?Br:ih;break}}}if(xe){if(k[q[qn]]=k[q[_s]]=xe,xe!==Br){for(var wi=qn+1;wi=0;_i--)if(k[q[_i]]&o)nh=_i;else{Fs=k[q[_i]]&xi?A:_;break}for(var ah=v1,Ai=je+1;Ai=0&&c(N[Gn])&l;Gn--)j[Gn]=nt.level}}return{levels:j,paragraphs:bt};function sh(Wt,he){for(var Zt=Wt;Zt=j&&c(N[nt])&l;nt--)bt[nt]=K.level;for(var kt=K.level,di=1/0,lr=0;lrkt&&(kt=Ne),Ne=di;Ue--)for(var lt=0;lt=Ue){for(var wt=lt;lt+1=Ue;)lt++;lt>wt&&X.push([wt+j,lt+j])}}}),X}function or(N,at,Y,k){var ot=Ir(N,at,Y,k),X=[].concat(N);return ot.forEach(function(K,j){X[j]=(at.levels[K]&1?Te(N[K]):null)||N[K]}),X.join("")}function Ir(N,at,Y,k){for(var ot=ke(N,at,Y,k),X=[],K=0;K=0;i--){let n=ou.getBidiCharTypeName(t[i].text[0]);Nv.has(n)?(t[i].level=e,r=!0):r&&$v.has(n)?t[i].level=e:r=!1}}function jv(t,e){let r=e,i=1/0;for(let{level:a}of t)a>r&&(r=a),(a|1)=i;a--)for(let s=0;s=a;)o++;for(let l=s,u=o;le>=n.start&&e<=n.end))==null?void 0:r.level)!=null?i:0}function Yv(t,e,r,i,n){let a=Uv(t,e,i,n);qv(a,r);let s="",o=[];for(let l of jv(a,r)){if(Rv.test(l.text))continue;let u=Gv(l);s+=u,o.push(...Array(u.length).fill(l.index))}return{text:s,sourceIndices:o}}function Wv(t,e){let r=e.filter(a=>a>0&&aa-s),n=[];for(let a=0;a+1n.start))).map(([n,a])=>Yv(t,r,Xv(i,n),n,a))}function Zv(t,e){return oy(t,e).map(r=>r.text)}function Hv(t,e,r){return oy(t,r).map(i=>[i.text,i.sourceIndices.map(n=>{var a;return(a=e[n])!=null?a:0})])}var sl=4294967296,Nc=1/sl,Uc=typeof TextDecoder>"u"?null:new TextDecoder("utf-8"),lu=class{constructor(t){this.buf=ArrayBuffer.isView(t)?t:new Uint8Array(t),this.dataView=new DataView(this.buf.buffer,this.buf.byteOffset,this.buf.byteLength),this.pos=0,this.type=0,this._valueStart=-1,this.length=this.buf.length}readFields(t,e,r=this.length){let i;for(;i=this.nextField(r);)t(i,e,this);return e}readMessage(t,e){return this.readFields(t,e,this.readVarint()+this.pos)}readFixed32(){let t=this.dataView.getUint32(this.pos,!0);return this.pos+=4,t}readSFixed32(){let t=this.dataView.getInt32(this.pos,!0);return this.pos+=4,t}readFixed64(){let t=this.dataView.getUint32(this.pos,!0)+this.dataView.getUint32(this.pos+4,!0)*sl;return this.pos+=8,t}readSFixed64(){let t=this.dataView.getUint32(this.pos,!0)+this.dataView.getInt32(this.pos+4,!0)*sl;return this.pos+=8,t}readFloat(){let t=this.dataView.getFloat32(this.pos,!0);return this.pos+=4,t}readDouble(){let t=this.dataView.getFloat64(this.pos,!0);return this.pos+=8,t}readVarint(t){let e=this.buf,r=e[this.pos++];if(r<128)return r;let i=r&127,n;return n=e[this.pos++],i|=(n&127)<<7,n<128||(n=e[this.pos++],i|=(n&127)<<14,n<128)||(n=e[this.pos++],i|=(n&127)<<21,n<128)?i:(n=e[this.pos],i|=(n&15)<<28,Jv(i,t,this))}readSVarint(){let t=this.readVarint();return t%2==1?(t+1)/-2:t/2}readBoolean(){return!!this.readVarint()}readString(){let t=this.readVarint()+this.pos,e=this.pos;return this.pos=t,t-e>=12&&Uc?Uc.decode(this.buf.subarray(e,t)):pb(this.buf,e,t)}readBytes(){let t=this.readVarint()+this.pos,e=this.buf.subarray(this.pos,t);return this.pos=t,e}readPackedVarint(t=[],e){let r=this.readPackedEnd();for(;this.pos=t)return 0;let e=this.readVarint();return this.type=e&7,this._valueStart=this.pos,e>>>3}skip(t){let e=t&7;if(e===0)for(;this.buf[this.pos++]>127;);else if(e===2)this.pos=this.readVarint()+this.pos;else if(e===5)this.pos+=4;else if(e===1)this.pos+=8;else throw Error(`Unimplemented type: ${e}`)}},Kv=class{constructor(t=new Uint8Array(16)){this.buf=ArrayBuffer.isView(t)?t:new Uint8Array(t),this.dataView=new DataView(this.buf.buffer,this.buf.byteOffset,this.buf.byteLength),this.pos=0,this.length=this.buf.length}writeTag(t,e){this.writeVarint(t<<3|e)}realloc(t){let e=this.length||16;for(;e=0&&t<128){this.pos>=this.length&&this.realloc(1),this.buf[this.pos++]=t;return}if(t>268435455||t<0){tb(t,this);return}this.realloc(4),this.buf[this.pos++]=t&127|(t>127?128:0),!(t<=127)&&(this.buf[this.pos++]=(t>>>=7)&127|(t>127?128:0),!(t<=127)&&(this.buf[this.pos++]=(t>>>=7)&127|(t>127?128:0),!(t<=127)&&(this.buf[this.pos++]=t>>>7&127)))}writeSVarint(t){this.writeVarint(t<0?-t*2-1:t*2)}writeBoolean(t){this.writeVarint(+t)}writeString(t){t=String(t),this.realloc(t.length*4),this.pos++;let e=this.pos;this.pos=fb(this.buf,t,this.pos);let r=this.pos-e;r>=128&&qc(e,r,this),this.pos=e-1,this.writeVarint(r),this.pos+=r}writeFloat(t){this.realloc(4),this.dataView.setFloat32(this.pos,t,!0),this.pos+=4}writeDouble(t){this.realloc(8),this.dataView.setFloat64(this.pos,t,!0),this.pos+=8}writeBytes(t){let e=t.length;this.writeVarint(e),this.realloc(e),this.buf.set(t,this.pos),this.pos+=e}writeRawMessage(t,e){this.pos++;let r=this.pos;t(e,this);let i=this.pos-r;i>=128&&qc(r,i,this),this.pos=r-1,this.writeVarint(i),this.pos+=i}writeMessage(t,e,r){this.writeTag(t,2),this.writeRawMessage(e,r)}writePackedVarint(t,e){e.length&&this.writeMessage(t,ib,e)}writePackedSVarint(t,e){e.length&&this.writeMessage(t,nb,e)}writePackedBoolean(t,e){e.length&&this.writeMessage(t,ob,e)}writePackedFloat(t,e){e.length&&this.writeMessage(t,ab,e)}writePackedDouble(t,e){e.length&&this.writeMessage(t,sb,e)}writePackedFixed32(t,e){e.length&&this.writeMessage(t,lb,e)}writePackedSFixed32(t,e){e.length&&this.writeMessage(t,ub,e)}writePackedFixed64(t,e){e.length&&this.writeMessage(t,hb,e)}writePackedSFixed64(t,e){e.length&&this.writeMessage(t,cb,e)}writeBytesField(t,e){this.writeTag(t,2),this.writeBytes(e)}writeFixed32Field(t,e){this.writeTag(t,5),this.writeFixed32(e)}writeSFixed32Field(t,e){this.writeTag(t,5),this.writeSFixed32(e)}writeFixed64Field(t,e){this.writeTag(t,1),this.writeFixed64(e)}writeSFixed64Field(t,e){this.writeTag(t,1),this.writeSFixed64(e)}writeVarintField(t,e){this.writeTag(t,0),this.writeVarint(e)}writeSVarintField(t,e){this.writeTag(t,0),this.writeSVarint(e)}writeStringField(t,e){this.writeTag(t,2),this.writeString(e)}writeFloatField(t,e){this.writeTag(t,5),this.writeFloat(e)}writeDoubleField(t,e){this.writeTag(t,1),this.writeDouble(e)}writeBooleanField(t,e){this.writeVarintField(t,+e)}};function Jv(t,e,r){let i=r.buf,n,a;if(a=i[r.pos++],n=(a&112)>>4,a<128||(a=i[r.pos++],n|=(a&127)<<3,a<128)||(a=i[r.pos++],n|=(a&127)<<10,a<128)||(a=i[r.pos++],n|=(a&127)<<17,a<128)||(a=i[r.pos++],n|=(a&127)<<24,a<128)||(a=i[r.pos++],n|=(a&1)<<31,a<128))return Qv(t,n,e);throw Error("Expected varint not more than 10 bytes")}function Qv(t,e,r){return r?e*4294967296+(t>>>0):(e>>>0)*4294967296+(t>>>0)}function tb(t,e){let r,i;if(t>=0?(r=t%4294967296|0,i=t/4294967296|0):(r=~(-t%4294967296),i=~(-t/4294967296),r^4294967295?r=r+1|0:(r=0,i=i+1|0)),t>=18446744073709552e3||t<-18446744073709552e3)throw Error("Given varint doesn\'t fit into 10 bytes");e.realloc(10),eb(r,i,e),rb(i,e)}function eb(t,e,r){r.buf[r.pos++]=t&127|128,t>>>=7,r.buf[r.pos++]=t&127|128,t>>>=7,r.buf[r.pos++]=t&127|128,t>>>=7,r.buf[r.pos++]=t&127|128,t>>>=7,r.buf[r.pos]=t&127}function rb(t,e){let r=(t&7)<<4;e.buf[e.pos++]|=r|((t>>>=3)?128:0),t&&(e.buf[e.pos++]=t&127|((t>>>=7)?128:0),t&&(e.buf[e.pos++]=t&127|((t>>>=7)?128:0),t&&(e.buf[e.pos++]=t&127|((t>>>=7)?128:0),t&&(e.buf[e.pos++]=t&127|((t>>>=7)?128:0),t&&(e.buf[e.pos++]=t&127)))))}function qc(t,e,r){let i=e<=16383?1:e<=2097151?2:e<=268435455?3:Math.floor(Math.log(e)/(Math.LN2*7));r.realloc(i),r.buf.copyWithin(t+i,t,r.pos)}function ib(t,e){let r=t.length,i=e.buf,n=e.pos,a=e.length;for(let s=0;sa){e.pos=n,e.writeVarint(o),i=e.buf,n=e.pos,a=e.length;continue}for(;o>127;)i[n++]=o%128|128,o=Math.floor(o/128);i[n++]=o}e.pos=n}function nb(t,e){for(let r=0;r239?4:a>223?3:a>191?2:1;if(n+o>r)break;let l,u,h;o===1?a<128&&(s=a):o===2?(l=t[n+1],(l&192)==128&&(s=(a&31)<<6|l&63,s<=127&&(s=null))):o===3?(l=t[n+1],u=t[n+2],(l&192)==128&&(u&192)==128&&(s=(a&15)<<12|(l&63)<<6|u&63,(s<=2047||s>=55296&&s<=57343)&&(s=null))):o===4&&(l=t[n+1],u=t[n+2],h=t[n+3],(l&192)==128&&(u&192)==128&&(h&192)==128&&(s=(a&15)<<18|(l&63)<<12|(u&63)<<6|h&63,(s<=65535||s>=1114112)&&(s=null))),s===null?(s=65533,o=1):s>65535&&(s-=65536,i+=String.fromCharCode(s>>>10&1023|55296),s=56320|s&1023),i+=String.fromCharCode(s),n+=o}return i}function fb(t,e,r){for(let i=0,n,a;i55295&&n<57344)if(a){if(n<56320){t[r++]=239,t[r++]=191,t[r++]=189,a=n;continue}n=a-55296<<10|n-56320|65536,a=null}else{n>56319||i+1===e.length?(t[r++]=239,t[r++]=191,t[r++]=189):a=n;continue}else a&&(a=(t[r++]=239,t[r++]=191,t[r++]=189,null));n<128?t[r++]=n:(n<2048?t[r++]=n>>6|192:(n<65536?t[r++]=n>>12|224:(t[r++]=n>>18|240,t[r++]=n>>12&63|128),t[r++]=n>>6&63|128),t[r++]=n&63|128)}return r}function db(t){return typeof(t==null?void 0:t.renderWithWebGL)=="function"}function uu(t){let e=0,r=0;for(let s of t)e+=s.w*s.h,r=Math.max(r,s.w);t.sort((s,o)=>o.h-s.h);let i=[{x:0,y:0,w:Math.max(Math.ceil(Math.sqrt(e/.95)),r),h:1/0}],n=0,a=0;for(let s of t)for(let o=i.length-1;o>=0;o--){let l=i[o];if(!(s.w>l.w||s.h>l.h)){if(s.x=l.x,s.y=l.y,a=Math.max(a,s.y+s.h),n=Math.max(n,s.x+s.w),s.w===l.w&&s.h===l.h){let u=i.pop();u&&o=r;a--)e.push(a);r=i+1}else{for(let a=r;at.toCodeUnitIndex(a)),i=Ar.isParsed()?Ar:null;if(t.sections.length===1)return i?i.processBidirectionalText(t.toString(),r).map(a=>Gc(a,t.sections,[...a].map(()=>0))):Zv(t.toString(),r).map(a=>ol([...a],t.sections,[...a].map(()=>0)));let n=xb(t);return i?i.processStyledBidirectionalText(t.text,n,r).map(([a,s])=>Gc(a,t.sections,s)):Hv(t.text,n,r).map(([a,s])=>{let o=[...a];return ol(o,t.sections,hy(o).map(l=>{var u;return(u=s[l])!=null?u:0}))})}function ol(t,e,r){var a;let i=new su(t.join(""),e,[]),n=0;for(let s of i.graphemes())i.sectionIndex.push((a=r[n])!=null?a:0),n+=[...s].length;return i}function hy(t){let e=[],r=0;for(let i of t)e.push(r),r+=i.length;return e}function Gc(t,e,r){let i=[...t],n=hy(i),a=gb(i);return ol(a.map(s=>i[s]),e,a.map(s=>{var o;return(o=r[n[s]])!=null?o:0}))}function na(t,e,r,i,n,a,s,o,l,u,h,c,p,f,d){let y=su.fromFeature(t,n);c===2&&y.verticalizePunctuation();let m=y.determineLineBreaks(u,a,e,i,f),g=ay(y.text)?vb(y,m):mb(y,m),x=[],v={positionedLines:x,text:y.toString(),top:h[1],bottom:h[1],left:h[0],right:h[0],writingMode:c,iconsInText:!1,verticalizable:!1};return Tb(v,e,r,i,g,s,o,l,c,u,p,d),!yb(x)&&v}function cy(t){let e=.5,r=.5;switch(t){case"right":case"top-right":case"bottom-right":e=1;break;case"left":case"top-left":case"bottom-left":e=0}switch(t){case"bottom":case"bottom-right":case"bottom-left":r=1;break;case"top":case"top-right":case"top-left":r=0}return{horizontalAlign:e,verticalAlign:r}}function bb(t,e,r){let i=e.getMaxScale()*24,{maxImageWidth:n,maxImageHeight:a}=e.getMaxImageSize(t),s=Math.max(i,a*r);return{verticalLineContentWidth:Math.max(i,n*r),horizontalLineContentHeight:s}}function py(t){switch(t){case"top":return 0;case"center":return .5;default:return 1}}function wb(t,e,r,i){var a,s;if(t!=null&&t.rect)return t;let n=(s=(a=e[r.fontStack])==null?void 0:a.default)==null?void 0:s[i];return n?{rect:null,metrics:n.metrics}:null}function Db(t,e,r){return!(t===1||!e&&!ts(r)||e&&(au(r)||iy(r)))}function ma(t){return new RegExp("\\\\p{Nd}","u").test(String.fromCodePoint(t))}function fy(t){return new RegExp("\\\\p{Lu}","u").test(String.fromCodePoint(t))}function _b(t){return/[\\p{P}\\p{S}]/u.test(String.fromCodePoint(t))}function Ab(t){let e=t.some(ma)&&t.every(i=>ma(i)||_b(i)),r=t.length<=3&&t.every(i=>fy(i)||ma(i));return e||r}function Sb(t){return(ma(t)||fy(t))&&!iy(t)}function Eb(t,e){let r=!1;for(let i=0;ia.codePointAt(0)),i=r.map(ts),n=a=>!i[a]&&!au(r[a])&&!("imageName"in t.getSection(a));for(let a=0;au){let p=Math.ceil(i/u);r*=p/n,n=p}return{x1:e,y1:r,x2:e+i,y2:r+n}}function Xc(t,e,r,i,n,a){let s=t.image,o;if(s.content){let m=s.content,g=s.pixelRatio||1;o=[m[0]/g,m[1]/g,s.displaySize[0]-m[2]/g,s.displaySize[1]-m[3]/g]}let l=e.left*a,u=e.right*a,h,c,p,f;r==="width"||r==="both"?(f=n[0]+l-i[3],c=n[0]+u+i[1]):(f=n[0]+(l+u-s.displaySize[0])/2,c=f+s.displaySize[0]);let d=e.top*a,y=e.bottom*a;return r==="height"||r==="both"?(h=n[1]+d-i[0],p=n[1]+y+i[2]):(h=n[1]+(d+y-s.displaySize[1])/2,p=h+s.displaySize[1]),{image:s,top:h,right:c,bottom:p,left:f,collisionPadding:o}}var Yc=32640;function Wc(t,e){let{expression:r}=e;if(r.kind==="constant")return{kind:"constant",layoutSize:r.evaluate(new st(t+1))};if(r.kind==="source")return{kind:"source"};if(r.kind==="composite"){let{minZoom:i,maxZoom:n}=Pb(r.zoomStops,t);return{kind:"composite",minZoom:i,maxZoom:n,interpolationType:r.interpolationType}}{let i=zb(r),n=r.evaluate(new st(t+1));return{kind:"camera",zoomStops:r.zoomStops,sizes:i,layoutSize:n,interpolationType:r.interpolationType}}}function Pb(t,e){let r=0;for(;rt.evaluate(new st(e===-1/0?t.zoomStops[1]-1:e)))}var Jr=class yy extends M{constructor(e,r,i,n){super(e,r),this.angle=i,n!==void 0&&(this.segment=n)}clone(){return new yy(this.x,this.y,this.angle,this.segment)}};C("Anchor",Jr);function my(t,e,r,i,n){if(e.segment===void 0||r===0)return!0;let a=e,s=e.segment+1,o=0;for(;o>-r/2;){if(s--,s<0)return!1;o-=t[s].dist(a),a=t[s]}o+=t[s].dist(t[s+1]),s++;let l=[],u=0;for(;oi;)u-=l.shift().angleDelta;if(u>n)return!1;s++,o+=c.dist(p)}return!0}function gy(t){let e=0;for(let r=0;ru){let d=(u-l)/f,y=new Jr(br.number(c.x,p.x,d),br.number(c.y,p.y,d),p.angleTo(c),h);return y._round(),!s||my(t,y,o,s,e)?y:void 0}l+=f}}function Vb(t,e,r,i,n,a,s,o,l){let u=xy(i,a,s),h=vy(i,n),c=h*s,p=t[0].x===0||t[0].x===l||t[0].y===0||t[0].y===l;e-c=0&&b=0&&w=0&&p+u<=h){let _=new Jr(b,w,x,d);_._round(),(!i||my(t,_,a,i,n))&&f.push(_)}}c+=g}return!o&&!f.length&&!s&&(f=by(t,c/2,r,i,n,a,s,!0,l)),f}function Ob(t,e,r,i,n){let a=[];for(let s of t){let o;for(let l=0;l=i&&h.x>=i)&&(u.x>=i?u=new M(i,u.y+(h.y-u.y)*((i-u.x)/(h.x-u.x)))._round():h.x>=i&&(h=new M(i,u.y+(h.y-u.y)*((i-u.x)/(h.x-u.x)))._round()),!(u.y>=n&&h.y>=n)&&(u.y>=n?u=new M(u.x+(h.x-u.x)*((n-u.y)/(h.y-u.y)),n)._round():h.y>=n&&(h=new M(u.x+(h.x-u.x)*((n-u.y)/(h.y-u.y)),n)._round()),(!o||!u.equals(o[o.length-1]))&&(o=[u],a.push(o)),o.push(h)))))}}return a}function wy(t,e,r,i,n,a){let s=Zc(t,e,r,n,0);return s=Zc(s,e,i,a,1),s}function Zc(t,e,r,i,n){switch(e){case 1:return Rb(t,r,i,n);case 2:return Hc(t,r,i,n,!1);case 3:return Hc(t,r,i,n,!0)}return[]}function Rb(t,e,r,i){let n=[];for(let a of t)for(let s of a){let o=i===0?s.x:s.y;o>=e&&o<=r&&n.push([s])}return n}function $b(t,e,r,i,n){let a=i===0?Nb:Ub,s=[],o=[];for(let h=0;he&&s.push(a(c,p,e)):f>r?d=e&&(s.push(a(c,p,e)),y=!0),d>r&&f<=r&&(s.push(a(c,p,r)),y=!0),!n&&y&&(o.push(s),s=[])}let l=t.length-1,u=i===0?t[l].x:t[l].y;return u>=e&&u<=r&&s.push(t[l]),n&&s.length>0&&!s[0].equals(s[s.length-1])&&s.push(new M(s[0].x,s[0].y)),s.length>0&&o.push(s),o}function Hc(t,e,r,i,n){let a=[];for(let s of t){let o=$b(s,e,r,i,n);o.length>0&&a.push(...o)}return a}function Nb(t,e,r){let i=(r-t.x)/(e.x-t.x);return new M(r,t.y+(e.y-t.y)*i)}function Ub(t,e,r){let i=(r-t.y)/(e.y-t.y);return new M(t.x+(e.x-t.x)*i,r)}function Kc(t,e,r,i){let n=[],a=t.image,s=a.pixelRatio,o=a.paddedRect.w-2,l=a.paddedRect.h-2,u={x1:t.left,y1:t.top,x2:t.right,y2:t.bottom},h=a.stretchX||[[0,o]],c=a.stretchY||[[0,l]],p=(F,$)=>F+$[1]-$[0],f=h.reduce(p,0),d=c.reduce(p,0),y=o-f,m=l-d,g=0,x=f,v=0,b=d,w=0,_=y,A=0,S=m;if(a.content&&i){let F=a.content,$=F[2]-F[0],G=F[3]-F[1];(a.textFitWidth||a.textFitHeight)&&(u=dy(t)),g=aa(h,0,F[0]),v=aa(c,0,F[1]),x=aa(h,F[0],F[2]),b=aa(c,F[1],F[3]),w=F[0]-g,A=F[1]-v,_=$-x,S=G-b}let T=u.x1,L=u.y1,O=u.x2-T,B=u.y2-L,V=(F,$,G,P)=>{let z=sa(F.stretch-g,x,O,T),it=oa(F.fixed-w,_,F.stretch,f),dt=sa($.stretch-v,b,B,L),ct=oa($.fixed-A,S,$.stretch,d),pt=sa(G.stretch-g,x,O,T),Kt=oa(G.fixed-w,_,G.stretch,f),jt=sa(P.stretch-v,b,B,L),Jt=oa(P.fixed-A,S,P.stretch,d),Oe=new M(z,dt),Gt=new M(pt,dt),Re=new M(pt,jt),$e=new M(z,jt),sr=new M(it/s,ct/s),fi=new M(Kt/s,Jt/s),Te=e*Math.PI/180;if(Te){let N=Math.sin(Te),at=Math.cos(Te),Y=[at,-N,N,at];Oe._matMult(Y),Gt._matMult(Y),$e._matMult(Y),Re._matMult(Y)}let $t=F.stretch+F.fixed,ke=G.stretch+G.fixed,or=$.stretch+$.fixed,Ir=P.stretch+P.fixed;return{tl:Oe,tr:Gt,bl:$e,br:Re,tex:{x:a.paddedRect.x+1+$t,y:a.paddedRect.y+1+or,w:ke-$t,h:Ir-or},writingMode:void 0,glyphOffset:[0,0],sectionIndex:0,pixelOffsetTL:sr,pixelOffsetBR:fi,minFontScaleX:_/s/O,minFontScaleY:S/s/B,isSDF:r}};if(!i||!a.stretchX&&!a.stretchY)n.push(V({fixed:0,stretch:-1},{fixed:0,stretch:-1},{fixed:0,stretch:o+1},{fixed:0,stretch:l+1}));else{let F=Jc(h,y,f),$=Jc(c,m,d);for(let G=0;G0&&(d=Math.max(10,d),this.circleDiameter=d)}else{let c=(h=a.image)!=null&&h.content&&(a.image.textFitWidth||a.image.textFitHeight)?dy(a):{x1:a.left,y1:a.top,x2:a.right,y2:a.bottom};c.y1=c.y1*s-o[0],c.y2=c.y2*s+o[2],c.x1=c.x1*s-o[3],c.x2=c.x2*s+o[1];let p=a.collisionPadding;if(p&&(c.x1-=p[0]*s,c.y1-=p[1]*s,c.x2+=p[2]*s,c.y2+=p[3]*s),u){let f=new M(c.x1,c.y1),d=new M(c.x2,c.y1),y=new M(c.x1,c.y2),m=new M(c.x2,c.y2),g=u*Math.PI/180;f._rotate(g),d._rotate(g),y._rotate(g),m._rotate(g),c.x1=Math.min(f.x,d.x,y.x,m.x),c.x2=Math.max(f.x,d.x,y.x,m.x),c.y1=Math.min(f.y,d.y,y.y,m.y),c.y2=Math.max(f.y,d.y,y.y,m.y)}t.emplaceBack(e.x,e.y,c.x1,c.y1,c.x2,c.y2,r,i,n)}this.boxEndIndex=t.length}},jb=class{constructor(t=[],e=(r,i)=>ri)){if(this.data=t,this.length=this.data.length,this.compare=e,this.length>0)for(let r=(this.length>>1)-1;r>=0;r--)this._down(r)}push(t){this.data.push(t),this._up(this.length++)}pop(){if(this.length===0)return;let t=this.data[0],e=this.data.pop();return--this.length>0&&(this.data[0]=e,this._down(0)),t}peek(){return this.data[0]}_up(t){let{data:e,compare:r}=this,i=e[t];for(;t>0;){let n=t-1>>1,a=e[n];if(r(i,a)>=0)break;e[t]=a,t=n}e[t]=i}_down(t){let{data:e,compare:r}=this,i=this.length>>1,n=e[t];for(;t=0)break;e[t]=e[a],t=a}e[t]=n}};function Gb(t,e=1){let r=Ia.fromPoints(t[0]),i=Math.min(r.width(),r.height()),n=i/2,a=new jb([],Xb),{minX:s,minY:o,maxX:l,maxY:u}=r;if(i===0)return new M(s,o);for(let p=s;pc.d||!c.d)&&(c=p),!(p.max-c.d<=e)&&(n=p.h/2,a.push(new qr(p.p.x-n,p.p.y-n,n,t)),a.push(new qr(p.p.x+n,p.p.y-n,n,t)),a.push(new qr(p.p.x-n,p.p.y+n,n,t)),a.push(new qr(p.p.x+n,p.p.y+n,n,t)))}return h.d>0&&c.d-h.d<=e?h.p:c.p}function Xb(t,e){return e.max-t.max}var qr=class{constructor(t,e,r,i){this.p=new M(t,e),this.h=r,this.d=Yb(this.p,i),this.max=this.d+this.h*Math.SQRT2}};function Yb(t,e){let r=!1,i=1/0;for(let n of e)for(let a=0,s=n.length,o=s-1;at.y!=u.y>t.y&&t.x<(u.x-l.x)*(t.y-l.y)/(u.y-l.y)+l.x&&(r=!r),i=Math.min(i,wd(t,l,u))}return(r?1:-1)*Math.sqrt(i)}function Wb(t){let e=0,r=0,i=0,n=t[0];for(let a=0,s=n.length,o=s-1;ap*24);h.startsWith("top")?c[1]-=7:h.startsWith("bottom")&&(c[1]+=7),l[u+1]=c}return new Ae(l)}let a=i.get("text-variable-anchor");if(a){let o;o=t._unevaluatedLayout.getValue("text-radial-offset")===void 0?i.get("text-offset").evaluate(e,{},r).map(u=>u*24):[i.get("text-radial-offset").evaluate(e,{},r)*24,cu];let l=[];for(let u of a)l.push(u,Dy(u,o));return new Ae(l)}return null}function Hb(t){var h,c;t.bucket.createArrays();let e=512*t.bucket.overscaling;t.bucket.tilePixelRatio=gt/e,t.bucket.compareText={},t.bucket.iconsNeedLinear=!1;let r=t.bucket.layers[0],i=r.layout,n=r._unevaluatedLayout._values,a={layoutIconSize:n["icon-size"].possiblyEvaluate(new st(t.bucket.zoom+1),t.canonical),layoutTextSize:n["text-size"].possiblyEvaluate(new st(t.bucket.zoom+1),t.canonical),textMaxSize:n["text-size"].possiblyEvaluate(new st(18))};if(t.bucket.textSizeData.kind==="composite"){let{minZoom:p,maxZoom:f}=t.bucket.textSizeData;a.compositeTextSizes=[n["text-size"].possiblyEvaluate(new st(p),t.canonical),n["text-size"].possiblyEvaluate(new st(f),t.canonical)]}if(t.bucket.iconSizeData.kind==="composite"){let{minZoom:p,maxZoom:f}=t.bucket.iconSizeData;a.compositeIconSizes=[n["icon-size"].possiblyEvaluate(new st(p),t.canonical),n["icon-size"].possiblyEvaluate(new st(f),t.canonical)]}let s=i.get("text-line-height")*24,o=i.get("text-rotation-alignment")!=="viewport"&&i.get("symbol-placement")!=="point",l=i.get("text-keep-upright"),u=i.get("text-size");for(let p of t.bucket.features){let f=i.get("text-font").evaluate(p,{},t.canonical).join(","),d=u.evaluate(p,{},t.canonical),y=a.layoutTextSize.evaluate(p,{},t.canonical),m=a.layoutIconSize.evaluate(p,{},t.canonical),g={horizontal:{},vertical:void 0},x=p.text,v=[0,0];if(x){let A=x.toString(),S=i.get("text-letter-spacing").evaluate(p,{},t.canonical)*24,T=Mv(A)?S:0,L=i.get("text-anchor").evaluate(p,{},t.canonical),O=_y(r,p,t.canonical);if(!O){let $=i.get("text-radial-offset").evaluate(p,{},t.canonical);v=$?Dy(L,[$*24,cu]):i.get("text-offset").evaluate(p,{},t.canonical).map(G=>G*24)}let B=o?"center":i.get("text-justify").evaluate(p,{},t.canonical),V=i.get("symbol-placement")==="point"?i.get("text-max-width").evaluate(p,{},t.canonical)*24:1/0,F=()=>{t.bucket.allowVerticalPlacement&&nl(A)&&(g.vertical=na(x,t.glyphMap,t.glyphPositions,t.imagePositions,f,V,s,L,"left",T,v,2,!0,y,d))};if(!o&&O){let $=new Set;if(B==="auto")for(let P=0;P{z.x<0||z.x>=8192||z.y<0||z.y>=8192||Qb(t,z,P,r,i,n,F,t.layers[0],t.collisionBoxArray,e.index,e.sourceLayerIndex,t.index,x,[_,_,_,_],T,l,b,A,L,y,e,a,u,h,s,p)};if(O==="line")for(let P of Ob(e.geometry,0,0,gt,gt)){let z=yr(P,$),it=Vb(z,w,S,r.vertical||m,i,24,v,t.overscaling,gt);for(let dt of it){let ct=m;(!ct||!tw(t,ct.text,B,dt))&&G(z,dt)}}else if(O==="line-center"){for(let P of e.geometry)if(P.length>1){let z=yr(P,$),it=Lb(z,S,r.vertical||m,i,24,v);it&&G(z,it)}}else if(e.type==="Polygon")for(let P of Na(e.geometry,0)){let z=Gb(P,16);G(yr(P[0],$,!0),new Jr(z.x,z.y,0))}else if(e.type==="LineString")for(let P of e.geometry){let z=yr(P,$);G(z,new Jr(z[0].x,z[0].y,0))}else if(e.type==="Point")for(let P of e.geometry)for(let z of P)G([z],new Jr(z.x,z.y,0))}function Jb(t,e){let r=t.length,i=e==null?void 0:e.values;if((i==null?void 0:i.length)>0)for(let n=0;n32640&&Mt(`${t.layerIds[0]}: Value for "text-size" is >= 255. Reduce your "text-size".`)):g.kind==="composite"&&(x=[128*d.compositeTextSizes[0].evaluate(s,{},y),128*d.compositeTextSizes[1].evaluate(s,{},y)],(x[0]>32640||x[1]>32640)&&Mt(`${t.layerIds[0]}: Value for "text-size" is >= 255. Reduce your "text-size".`)),t.addSymbols(t.text,m,x,o,a,s,h,e,u.lineStartIndex,u.lineLength,f,y,l);for(let v of c)p[v]=t.text.placedSymbolArray.length-1;return m.length*4}function Ay(t){for(let e in t)return t[e];return null}function Qb(t,e,r,i,n,a,s,o,l,u,h,c,p,f,d,y,m,g,x,v,b,w,_,A,S,T){let L=t.addToLineVertexArray(e,r),O=o.layout.get("symbol-height-offset").evaluate(b,{},A);O>t.maxHeightOffset&&(t.maxHeightOffset=O);let B,V,F,$,G=0,P=0,z=0,it=0,dt=-1,ct=-1,pt={},Kt=(0,Ea.default)("");if(t.allowVerticalPlacement&&i.vertical){let Y=o.layout.get("text-rotate").evaluate(b,{},A)+90,k=i.vertical;F=new la(l,e,u,h,c,k,p,f,d,Y),s&&($=new la(l,e,u,h,c,s,m,g,d,Y))}if(n){let Y=o.layout.get("icon-rotate").evaluate(b,{}),k=o.layout.get("icon-text-fit")!=="none",ot=Kc(n,Y,_,k),X=s?Kc(s,Y,_,k):void 0;V=new la(l,e,u,h,c,n,m,g,!1,Y),G=ot.length*4;let K=t.iconSizeData,j=null;K.kind==="source"?(j=[128*o.layout.get("icon-size").evaluate(b,{})],j[0]>32640&&Mt(`${t.layerIds[0]}: Value for "icon-size" is >= 255. Reduce your "icon-size".`)):K.kind==="composite"&&(j=[128*w.compositeIconSizes[0].evaluate(b,{},A),128*w.compositeIconSizes[1].evaluate(b,{},A)],(j[0]>32640||j[1]>32640)&&Mt(`${t.layerIds[0]}: Value for "icon-size" is >= 255. Reduce your "icon-size".`)),t.addSymbols(t.icon,ot,j,v,x,b,0,e,L.lineStartIndex,L.lineLength,-1,A,O),dt=t.icon.placedSymbolArray.length-1,X&&(P=X.length*4,t.addSymbols(t.icon,X,j,v,x,b,2,e,L.lineStartIndex,L.lineLength,-1,A,O),ct=t.icon.placedSymbolArray.length-1)}let jt=Object.keys(i.horizontal);for(let Y of jt){let k=i.horizontal[Y];B||(B=(Kt=(0,Ea.default)(k.text),new la(l,e,u,h,c,k,p,f,d,o.layout.get("text-rotate").evaluate(b,{},A))));let ot=k.positionedLines.length===1;if(z+=tp(t,e,k,a,o,d,b,y,O,L,i.vertical?1:3,ot?jt:[Y],pt,dt,w,A),ot)break}i.vertical&&(it+=tp(t,e,i.vertical,a,o,d,b,y,O,L,2,["vertical"],pt,ct,w,A));let Jt=B?B.boxStartIndex:t.collisionBoxArray.length,Oe=B?B.boxEndIndex:t.collisionBoxArray.length,Gt=F?F.boxStartIndex:t.collisionBoxArray.length,Re=F?F.boxEndIndex:t.collisionBoxArray.length,$e=V?V.boxStartIndex:t.collisionBoxArray.length,sr=V?V.boxEndIndex:t.collisionBoxArray.length,fi=$?$.boxStartIndex:t.collisionBoxArray.length,Te=$?$.boxEndIndex:t.collisionBoxArray.length,$t=-1,ke=(Y,k)=>Y!=null&&Y.circleDiameter?Math.max(Y.circleDiameter,k):k;$t=ke(B,$t),$t=ke(F,$t),$t=ke(V,$t),$t=ke($,$t);let or=+($t>-1);or&&($t*=S/24),t.glyphOffsetArray.length>=t.maxGlyphs&&Mt("Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907"),b.sortKey!==void 0&&t.addToSortKeyRanges(t.symbolInstances.length,b.sortKey);let Ir=_y(o,b,A),[N,at]=Jb(t.textAnchorOffsets,Ir);T&&(Kt=ew(Kt,b)),t.symbolInstances.emplaceBack(e.x,e.y,pt.right>=0?pt.right:-1,pt.center>=0?pt.center:-1,pt.left>=0?pt.left:-1,pt.vertical||-1,dt,ct,Kt,Jt,Oe,Gt,Re,$e,sr,fi,Te,u,z,it,G,P,or,0,p,$t,N,at,O)}function tw(t,e,r,i){let n=t.compareText;if(!(e in n))n[e]=[];else{let a=n[e];for(let s=a.length-1;s>=0;s--)if(i.dist(a[s])s.id),this.index=t.index,this.pixelRatio=t.pixelRatio,this.sourceLayerIndex=t.sourceLayerIndex,this.hasDependencies=!0,this.hasRTLText=!1,this.maxHeightOffset=0,this.sortKeyRanges=[],this.collisionCircleArray=[],this.maxGlyphs=65535;let e=this.layers[0]._unevaluatedLayout._values;this.textSizeData=Wc(this.zoom,e["text-size"]),this.iconSizeData=Wc(this.zoom,e["icon-size"]);let r=this.layers[0].layout,i=r.get("symbol-sort-key"),n=r.get("symbol-z-order");this.canOverlap=ep(r,"text-overlap","text-allow-overlap")!=="never"||ep(r,"icon-overlap","icon-allow-overlap")!=="never"||r.get("text-ignore-placement")||r.get("icon-ignore-placement"),this.sortFeaturesByKey=n!=="viewport-y"&&!i.isConstant();let a=n==="viewport-y"||n==="auto"&&!this.sortFeaturesByKey;this.sortFeaturesByY=a&&this.canOverlap,r.get("symbol-placement")==="point"&&(this.writingModes=r.get("text-writing-mode").map(s=>uy[s])),this.stateDependentLayerIds=this.layers.filter(s=>s.isStateDependent()).map(s=>s.id),this.sourceID=t.sourceID}createArrays(){this.text=new ll(new Dr(this.layers,this.zoom,t=>t.startsWith("text"))),this.icon=new ll(new Dr(this.layers,this.zoom,t=>t.startsWith("icon"))),this.glyphOffsetArray=new ud,this.lineVertexArray=new hd,this.symbolInstances=new ld,this.textAnchorOffsets=new pd}calculateGlyphDependencies(t,e,r,i,n){var l;let a=(i||this.allowVerticalPlacement)&&n,s=su.fromFeature(t,r),o=s.graphemes();for(let u=0;u0)&&(a.value.kind!=="constant"||a.value.value.length>0),u=o.value.kind!=="constant"||!!o.value.value||Object.keys(o.parameters).length>0,h=n.get("symbol-sort-key");if(this.features=[],!l&&!u)return;let c=e.iconDependencies,p=e.glyphDependencies,f=e.availableImages,d=new st(this.zoom);for(let{feature:m,id:g,index:x,sourceLayerIndex:v}of t){let b=i._featureFilter.needGeometry,w=hi(m,b);if(!i._featureFilter.filter(d,w,r))continue;b||(w.geometry=Fr(m));let _;if(l){let L=i.getValueAndResolveTokens("text-field",w,r,f),O=Le.factory(L);this.hasRTLText||(this.hasRTLText=nw(O)),_=Tv(O,i,w)}let A;if(u){let L=i.getValueAndResolveTokens("icon-image",w,r,f);A=L instanceof Se?L:Se.fromString(L)}if(!_&&!A)continue;let S=this.sortFeaturesByKey?h.evaluate(w,{},r):void 0,T={id:g,text:_,icon:A,index:x,sourceLayerIndex:v,geometry:w.geometry,properties:m.properties,type:Fn.types[m.type],sortKey:S};if(this.features.push(T),A&&(c[A.name]=!0),_){let L=a.evaluate(w,{},r).join(","),O=n.get("text-rotation-alignment")!=="viewport"&&n.get("symbol-placement")!=="point";this.allowVerticalPlacement=(y=this.writingModes)==null?void 0:y.includes(2);let B=nl(_.toString());this.calculateGlyphDependencies(_,p,L,O,B);for(let V of _.sections)V.image&&(c[V.image.name]=!0)}}n.get("symbol-placement")==="line"&&(this.features=Iv(this.features)),this.sortFeaturesByKey&&this.features.sort((m,g)=>m.sortKey-g.sortKey)}update(t,e,r){this.stateDependentLayers.length&&(this.text.programConfigurations.updatePaintArrays(t,e,this.layers,{imagePositions:r}),this.icon.programConfigurations.updatePaintArrays(t,e,this.layers,{imagePositions:r}))}addFeatures({options:t,canonical:e,glyphMap:r,glyphPositions:i,iconMap:n,iconPositions:a,showCollisionBoxes:s}){Hb({bucket:this,glyphMap:r,glyphPositions:i,imageMap:n,imagePositions:a,showCollisionBoxes:s,canonical:e,subdivisionGranularity:t.subdivisionGranularity,hasPromoteId:t.featureIndex.promoteId!=null})}isEmpty(){return this.symbolInstances.length===0}uploadPending(){return!this.uploaded||this.text.programConfigurations.needsUpload||this.icon.programConfigurations.needsUpload}upload(t){!this.uploaded&&this.hasDebugData()&&(this.textCollisionBox.upload(t),this.iconCollisionBox.upload(t)),this.text.upload(t,this.sortFeaturesByY,!this.uploaded,this.text.programConfigurations.needsUpload),this.icon.upload(t,this.sortFeaturesByY,!this.uploaded,this.icon.programConfigurations.needsUpload),this.uploaded=!0}destroyDebugData(){this.textCollisionBox.destroy(),this.iconCollisionBox.destroy()}destroy(){this.text.destroy(),this.icon.destroy(),this.hasDebugData()&&this.destroyDebugData()}addToLineVertexArray(t,e){let r=this.lineVertexArray.length;if(t.segment!==void 0){let i=t.dist(e[t.segment+1]),n=t.dist(e[t.segment]),a={};for(let s=t.segment+1;s=0;s--)a[s]={x:e[s].x,y:e[s].y,tileUnitDistanceFromAnchor:n},s>0&&(n+=e[s-1].dist(e[s]));for(let s=0;s0}hasIconData(){return this.icon.segments.get().length>0}hasDebugData(){return this.textCollisionBox&&this.iconCollisionBox}hasTextCollisionBoxData(){return this.hasDebugData()&&this.textCollisionBox.segments.get().length>0}hasIconCollisionBoxData(){return this.hasDebugData()&&this.iconCollisionBox.segments.get().length>0}addIndicesForPlacedSymbol(t,e){let r=t.placedSymbolArray.get(e),i=r.vertexStartIndex+r.numGlyphs*4;for(let n=r.vertexStartIndex;ni[s]-i[o]||n[o]-n[s]),a}addToSortKeyRanges(t,e){let r=this.sortKeyRanges[this.sortKeyRanges.length-1];(r==null?void 0:r.sortKey)===e?r.symbolInstanceEnd=t+1:this.sortKeyRanges.push({sortKey:e,symbolInstanceStart:t,symbolInstanceEnd:t+1})}sortFeatures(t){if(this.sortFeaturesByY&&this.sortedAngle!==t&&!(this.text.segments.get().length>1||this.icon.segments.get().length>1)){this.symbolInstanceIndexes=this.getSortedSymbolIndexes(t),this.sortedAngle=t,this.text.indexArray.clear(),this.icon.indexArray.clear(),this.featureSortOrder=[];for(let e of this.symbolInstanceIndexes){let r=this.symbolInstances.get(e);this.featureSortOrder.push(r.featureIndex);let i=[r.rightJustifiedTextSymbolIndex,r.centerJustifiedTextSymbolIndex,r.leftJustifiedTextSymbolIndex];for(let n=0;n=0&&i.indexOf(a)===n&&this.addIndicesForPlacedSymbol(this.text,a)}r.verticalPlacedTextSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.text,r.verticalPlacedTextSymbolIndex),r.placedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,r.placedIconSymbolIndex),r.verticalPlacedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,r.verticalPlacedIconSymbolIndex)}this.text.indexBuffer&&this.text.indexBuffer.updateData(this.text.indexArray),this.icon.indexBuffer&&this.icon.indexBuffer.updateData(this.icon.indexArray)}}};C("SymbolBucket",Sy,{omit:["layers","collisionBoxArray","features","compareText"]});function aw(t,e){return e.replace(/{([^{}]+)}/g,(r,i)=>t&&i in t?String(t[i]):"")}var rp,sw=()=>rp||(rp=new Yt({"symbol-placement":new R(D.layout_symbol["symbol-placement"],"symbol-placement"),"symbol-spacing":new R(D.layout_symbol["symbol-spacing"],"symbol-spacing"),"symbol-avoid-edges":new R(D.layout_symbol["symbol-avoid-edges"],"symbol-avoid-edges"),"symbol-sort-key":new U(D.layout_symbol["symbol-sort-key"],"symbol-sort-key"),"symbol-z-order":new R(D.layout_symbol["symbol-z-order"],"symbol-z-order"),"icon-allow-overlap":new R(D.layout_symbol["icon-allow-overlap"],"icon-allow-overlap"),"icon-overlap":new R(D.layout_symbol["icon-overlap"],"icon-overlap"),"icon-ignore-placement":new R(D.layout_symbol["icon-ignore-placement"],"icon-ignore-placement"),"icon-optional":new R(D.layout_symbol["icon-optional"],"icon-optional"),"icon-rotation-alignment":new U(D.layout_symbol["icon-rotation-alignment"],"icon-rotation-alignment"),"icon-size":new U(D.layout_symbol["icon-size"],"icon-size"),"icon-text-fit":new R(D.layout_symbol["icon-text-fit"],"icon-text-fit"),"icon-text-fit-padding":new R(D.layout_symbol["icon-text-fit-padding"],"icon-text-fit-padding"),"icon-image":new U(D.layout_symbol["icon-image"],"icon-image"),"icon-rotate":new U(D.layout_symbol["icon-rotate"],"icon-rotate"),"icon-padding":new U(D.layout_symbol["icon-padding"],"icon-padding"),"icon-keep-upright":new R(D.layout_symbol["icon-keep-upright"],"icon-keep-upright"),"icon-offset":new U(D.layout_symbol["icon-offset"],"icon-offset"),"icon-anchor":new U(D.layout_symbol["icon-anchor"],"icon-anchor"),"icon-pitch-alignment":new R(D.layout_symbol["icon-pitch-alignment"],"icon-pitch-alignment"),"text-pitch-alignment":new R(D.layout_symbol["text-pitch-alignment"],"text-pitch-alignment"),"text-rotation-alignment":new R(D.layout_symbol["text-rotation-alignment"],"text-rotation-alignment"),"text-field":new U(D.layout_symbol["text-field"],"text-field"),"text-font":new U(D.layout_symbol["text-font"],"text-font"),"text-size":new U(D.layout_symbol["text-size"],"text-size"),"text-max-width":new U(D.layout_symbol["text-max-width"],"text-max-width"),"text-line-height":new R(D.layout_symbol["text-line-height"],"text-line-height"),"text-letter-spacing":new U(D.layout_symbol["text-letter-spacing"],"text-letter-spacing"),"text-justify":new U(D.layout_symbol["text-justify"],"text-justify"),"text-radial-offset":new U(D.layout_symbol["text-radial-offset"],"text-radial-offset"),"text-variable-anchor":new R(D.layout_symbol["text-variable-anchor"],"text-variable-anchor"),"text-variable-anchor-offset":new U(D.layout_symbol["text-variable-anchor-offset"],"text-variable-anchor-offset"),"text-anchor":new U(D.layout_symbol["text-anchor"],"text-anchor"),"text-max-angle":new R(D.layout_symbol["text-max-angle"],"text-max-angle"),"text-writing-mode":new R(D.layout_symbol["text-writing-mode"],"text-writing-mode"),"text-rotate":new U(D.layout_symbol["text-rotate"],"text-rotate"),"text-padding":new R(D.layout_symbol["text-padding"],"text-padding"),"text-keep-upright":new R(D.layout_symbol["text-keep-upright"],"text-keep-upright"),"text-transform":new U(D.layout_symbol["text-transform"],"text-transform"),"text-offset":new U(D.layout_symbol["text-offset"],"text-offset"),"text-allow-overlap":new R(D.layout_symbol["text-allow-overlap"],"text-allow-overlap"),"text-overlap":new R(D.layout_symbol["text-overlap"],"text-overlap"),"text-ignore-placement":new R(D.layout_symbol["text-ignore-placement"],"text-ignore-placement"),"text-optional":new R(D.layout_symbol["text-optional"],"text-optional"),"symbol-height-offset":new U(D.layout_symbol["symbol-height-offset"],"symbol-height-offset"),"symbol-height-anchor":new R(D.layout_symbol["symbol-height-anchor"],"symbol-height-anchor")})),ip,ow=()=>ip||(ip=new Yt({"icon-opacity":new U(D.paint_symbol["icon-opacity"],"icon-opacity"),"icon-color":new U(D.paint_symbol["icon-color"],"icon-color"),"icon-halo-color":new U(D.paint_symbol["icon-halo-color"],"icon-halo-color"),"icon-halo-width":new U(D.paint_symbol["icon-halo-width"],"icon-halo-width"),"icon-halo-blur":new U(D.paint_symbol["icon-halo-blur"],"icon-halo-blur"),"icon-translate":new R(D.paint_symbol["icon-translate"],"icon-translate"),"icon-translate-anchor":new R(D.paint_symbol["icon-translate-anchor"],"icon-translate-anchor"),"text-opacity":new U(D.paint_symbol["text-opacity"],"text-opacity"),"text-color":new U(D.paint_symbol["text-color"],"text-color",{runtimeType:pe,getOverride:t=>t.textColor,hasOverride:t=>!!t.textColor}),"text-halo-color":new U(D.paint_symbol["text-halo-color"],"text-halo-color"),"text-halo-width":new U(D.paint_symbol["text-halo-width"],"text-halo-width"),"text-halo-blur":new U(D.paint_symbol["text-halo-blur"],"text-halo-blur"),"text-translate":new R(D.paint_symbol["text-translate"],"text-translate"),"text-translate-anchor":new R(D.paint_symbol["text-translate-anchor"],"text-translate-anchor")})),Zs={get paint(){return ow()},get layout(){return sw()}},Ey=class{constructor(t){if(t.property.overrides===void 0)throw Error("overrides must be provided to instantiate FormatSectionOverride class");this.type=t.property.overrides?t.property.overrides.runtimeType:vn,this.defaultValue=t}evaluate(t){if(t.formattedSection){let e=this.defaultValue.property.overrides;if(e!=null&&e.hasOverride(t.formattedSection))return e.getOverride(t.formattedSection)}return t.feature&&t.featureState?this.defaultValue.evaluate(t.feature,t.featureState):this.defaultValue.property.specification.default}eachChild(t){if(!this.defaultValue.isConstant()){let e=this.defaultValue.value;t(e._styleExpression.expression)}}outputDefined(){return!1}serialize(){return null}};C("FormatSectionOverride",Ey,{omit:["defaultValue"]});var lw=class hl extends ye{constructor(e,r){super(e,Zs,r)}recalculate(e,r){super.recalculate(e,r);let i=this.layout.get("icon-rotation-alignment");if((i.value.kind!=="constant"||i.value.value==="auto")&&(this.layout._values["icon-rotation-alignment"]=new le(i.property,{kind:"constant",value:this.layout.get("symbol-placement")==="point"?"viewport":"map"},i.parameters)),this.layout.get("text-rotation-alignment")==="auto"&&(this.layout.get("symbol-placement")==="point"?this.layout._values["text-rotation-alignment"]="viewport":this.layout._values["text-rotation-alignment"]="map"),this.layout.get("text-pitch-alignment")==="auto"&&(this.layout._values["text-pitch-alignment"]=this.layout.get("text-rotation-alignment")==="map"?"map":"viewport"),this.layout.get("icon-pitch-alignment")==="auto"&&(this.layout._values["icon-pitch-alignment"]=this.layout.get("icon-rotation-alignment").constantOr("viewport")),this.layout.get("symbol-placement")==="point"){let n=this.layout.get("text-writing-mode");if(n){let a=[];for(let s of n)a.includes(s)||a.push(s);this.layout._values["text-writing-mode"]=a}else this.layout._values["text-writing-mode"]=["horizontal"]}this._setPaintOverrides()}getValueAndResolveTokens(e,r,i,n){let a=this.layout.get(e).evaluate(r,{},i,n),s=this._unevaluatedLayout._values[e];return!s.isDataDriven()&&!Xa(s.value)&&a?aw(r.properties,a):a}createBucket(e){return new Sy(e)}queryRadius(){return 0}queryIntersectsFeature(){throw Error("Should take a different path in FeatureIndex")}_setPaintOverrides(){for(let e of Zs.paint.overridableProperties){if(!hl.hasPaintOverride(this.layout,e))continue;let r=this.paint.get(e),i=new Bl(new Ey(r),`layers[${this.id}].paint.${r.property.name}`,r.property.specification),n=null;n=r.value.kind==="constant"||r.value.kind==="source"?new ln("source",i):new _a("composite",i,r.value.zoomStops),this.paint._values[e]=new le(r.property,n,r.parameters)}}_handleOverridablePaintPropertyUpdate(e,r,i){return!this.layout||r.isDataDriven()||i.isDataDriven()?!1:hl.hasPaintOverride(this.layout,e)}static hasPaintOverride(e,r){let i=e.get("text-field"),n=Zs.paint.properties[r],a=!1,s=o=>{var l;for(let u of o)if((l=n.overrides)!=null&&l.hasOverride(u)){a=!0;return}};if(i.value.kind==="constant"&&i.value.value instanceof Le)s(i.value.value.sections);else if(i.value.kind==="source"||i.value.kind==="composite"){let o=u=>{if(!a)if(u instanceof ri&&St(u.value)===bn){let h=u.value;s(h.sections)}else u instanceof Yp?s(u.sections):u.eachChild(o)},l=i.value;l._styleExpression&&o(l._styleExpression.expression)}return a}};function uw(t,e,r,i=1){var a;let n=(a=t.get("icon-padding").evaluate(e,{},r))==null?void 0:a.values;return[n[0]*i,n[1]*i,n[2]*i,n[3]*i]}var np,hw=()=>np||(np=new Yt({"background-color":new R(D.paint_background["background-color"],"background-color"),"background-pattern":new id(D.paint_background["background-pattern"],"background-pattern"),"background-opacity":new R(D.paint_background["background-opacity"],"background-opacity")})),cw={get paint(){return hw()}};var pw=class extends ye{constructor(t,e){super(t,cw,e)}};var fw=class extends ye{constructor(t,e){super(t,{},e),this.onAdd=r=>{this.implementation.onAdd&&this.implementation.onAdd(r,r.painter.context.gl)},this.onRemove=r=>{this.implementation.onRemove&&this.implementation.onRemove(r,r.painter.context.gl)},this.implementation=t}is3D(){return this.implementation.renderingMode==="3d"}hasOffscreenPass(){return this.implementation.prerender!==void 0}recalculate(){}updateTransitions(){}hasTransition(){return!1}serialize(){throw Error("Custom layers cannot be serialized")}};function Fy(t,e){if(t.type==="custom")return new fw(t,e);switch(t.type){case"background":return new pw(t,e);case"circle":return new Kg(t,e);case"color-relief":return new lx(t,e);case"fill":return new $x(t,e);case"fill-extrusion":return new u2(t,e);case"heatmap":return new rx(t,e);case"hillshade":return new ax(t,e);case"line":return new rv(t,e);case"raster":return new pg(t,e);case"symbol":return new lw(t,e)}}var dw=class{constructor(t){this._methodToThrottle=t,this._triggered=!1,this._channel=new MessageChannel,this._channel.port2.onmessage=()=>{this._triggered=!1,this._methodToThrottle()}}trigger(){var t;this._triggered||(this._triggered=!0,(t=this._channel)==null||t.port1.postMessage(!0))}remove(){delete this._channel,this._methodToThrottle=()=>{}}},yw={once:!0},Ty=class{constructor(t,e){this.target=t,this.mapId=e,this.resolveRejects={},this.tasks={},this.taskQueue=[],this.abortControllers={},this.messageHandlers={},this.invoker=new dw(()=>this.process()),this.subscription=dh(this.target,"message",r=>this.receive(r),!1),this.globalScope=vr(self)?t:window}registerMessageHandler(t,e){this.messageHandlers[t]=e}unregisterMessageHandler(t){delete this.messageHandlers[t]}sendAsync(t,e){return new Promise((r,i)=>{let n=Math.round(Math.random()*1e18).toString(36).substring(0,10),a=e?dh(e.signal,"abort",()=>{a==null||a.unsubscribe(),delete this.resolveRejects[n];let l={id:n,type:"",origin:location.origin,targetMapId:t.targetMapId,sourceMapId:this.mapId};this.target.postMessage(l),i(new gl(e.signal.reason))},yw):null;this.resolveRejects[n]={resolve:l=>{a==null||a.unsubscribe(),r(l)},reject:l=>{a==null||a.unsubscribe(),i(l)}};let s=[],o=Si(Xe({},t),{id:n,sourceMapId:this.mapId,origin:location.origin,data:Hi(t.data,s)});this.target.postMessage(o,{transfer:s})})}receive(t){let e=t.data,r=e.id,i=["file://","resource://android","null"],n=[e.origin,location.origin],a=e.origin===location.origin,s=n.some(o=>i.includes(o));if((a||s)&&!(e.targetMapId&&this.mapId!==e.targetMapId)){if(e.type===""){delete this.tasks[r];let o=this.abortControllers[r];delete this.abortControllers[r],o&&o.abort();return}if(vr(self)||e.mustQueue){this.tasks[r]=e,this.taskQueue.push(r),this.invoker.trigger();return}this.processTask(r,e)}}process(){if(this.taskQueue.length===0)return;let t=this.taskQueue.shift(),e=this.tasks[t];delete this.tasks[t],this.taskQueue.length>0&&this.invoker.trigger(),e&&this.processTask(t,e)}processTask(t,e){return et(this,null,function*(){if(e.type===""){let n=this.resolveRejects[t];if(delete this.resolveRejects[t],!n)return;e.error?n.reject(tn(Ki(e.error))):n.resolve(Ki(e.data));return}if(!this.messageHandlers[e.type]){this.completeTask(t,null,null);return}let r=Ki(e.data),i=new AbortController;this.abortControllers[t]=i;try{let n=yield this.messageHandlers[e.type](e.sourceMapId,r,i);this.completeTask(t,null,n)}catch(n){this.completeTask(t,tn(n))}})}completeTask(t,e,r){let i=[];delete this.abortControllers[t];let n={id:t,type:"",sourceMapId:this.mapId,origin:location.origin,error:e?Hi(e):null,data:Hi(r,i)};this.target.postMessage(n,{transfer:i})}remove(){this.invoker.remove(),this.subscription.unsubscribe()}};function mw(t,e,r){return!(t<0||t>25||r<0||r>=2**t||e<0||e>=2**t)}var ky=class{constructor(t,e,r){if(!mw(t,e,r))throw Error(`x=${e}, y=${r}, z=${t} outside of bounds. 0<=x<${2**t}, 0<=y<${2**t} 0<=z<=25 `);this.z=t,this.x=e,this.y=r,this.key=Qi(0,t,t,e,r)}equals(t){return this.z===t.z&&this.x===t.x&&this.y===t.y}url(t,e,r){let i=xw(this.x,this.y,this.z),n=vw(this.z,this.x,this.y);return t[(this.x+this.y)%t.length].replace(/{prefix}/g,(this.x%16).toString(16)+(this.y%16).toString(16)).replace(/{z}/g,String(this.z)).replace(/{x}/g,String(this.x)).replace(/{y}/g,String(r==="tms"?2**this.z-this.y-1:this.y)).replace(/{ratio}/g,e>1?"@2x":"").replace(/{quadkey}/g,n).replace(/{bbox-epsg-3857}/g,i)}isChildOf(t){let e=this.z-t.z;return e>0&&t.x===this.x>>e&&t.y===this.y>>e}getTilePoint(t){let e=2**this.z;return new M((t.x*e-this.x)*gt,(t.y*e-this.y)*gt)}toString(){return`${this.z}/${this.x}/${this.y}`}},gw=class{constructor(t,e){this.wrap=t,this.canonical=e,this.key=Qi(t,e.z,e.z,e.x,e.y)}},pu=class se{constructor(e,r,i,n,a){if(this.terrainRttPosMatrix32f=null,e= z; overscaledZ = ${e}; z = ${i}`);this.overscaledZ=e,this.wrap=r,this.canonical=new ky(i,+n,+a),this.key=Qi(r,e,i,n,a)}clone(){return new se(this.overscaledZ,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)}equals(e){return this.overscaledZ===e.overscaledZ&&this.wrap===e.wrap&&this.canonical.equals(e.canonical)}scaledTo(e){if(e>this.overscaledZ)throw Error(`targetZ > this.overscaledZ; targetZ = ${e}; overscaledZ = ${this.overscaledZ}`);let r=this.canonical.z-e;return e>this.canonical.z?new se(e,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y):new se(e,this.wrap,e,this.canonical.x>>r,this.canonical.y>>r)}isOverscaled(){return this.overscaledZ>this.canonical.z}calculateScaledKey(e,r){if(e>this.overscaledZ)throw Error(`targetZ > this.overscaledZ; targetZ = ${e}; overscaledZ = ${this.overscaledZ}`);let i=this.canonical.z-e;return e>this.canonical.z?Qi(this.wrap*+r,e,this.canonical.z,this.canonical.x,this.canonical.y):Qi(this.wrap*+r,e,e,this.canonical.x>>i,this.canonical.y>>i)}isChildOf(e){if(e.wrap!==this.wrap||this.overscaledZ-e.overscaledZ<=0)return!1;if(e.overscaledZ===0)return this.overscaledZ>0;let r=this.canonical.z-e.canonical.z;return r<0?!1:e.canonical.x===this.canonical.x>>r&&e.canonical.y===this.canonical.y>>r}children(e){if(this.overscaledZ>=e)return[new se(this.overscaledZ+1,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)];let r=this.canonical.z+1,i=this.canonical.x*2,n=this.canonical.y*2;return[new se(r,this.wrap,r,i,n),new se(r,this.wrap,r,i+1,n),new se(r,this.wrap,r,i,n+1),new se(r,this.wrap,r,i+1,n+1)]}isLessThan(e){return this.wrape.wrap?!1:this.overscaledZe.overscaledZ?!1:this.canonical.xe.canonical.x?!1:this.canonical.y=0&&e=0&&r=u)return null;let c=this.canonical.x+n,p=this.wrap;return c<0?(p-=Math.ceil(-c/u),c=(c%u+u)%u):c>=u&&(p+=Math.floor(c/u),c%=u),{tileID:new se(this.overscaledZ,p,l,c,h),x:s,y:o}}};function Qi(t,e,r,i,n){t*=2,t<0&&(t=t*-1-1);let a=1<0;n--){let a=1<Dw(n,a,r),t.layers[i])}function Dw(t,e,r=""){e.writeVarintField(15,t.version||1),e.writeStringField(1,t.name||""),e.writeVarintField(5,t.extent||4096);let i={jsonPrefix:r,keys:[],values:[],keycache:{},valuecache:{}};for(let s=0;s>31}function Sw(t,e){let r=t.loadGeometry(),i=t.type,n=0,a=0;for(let s of r){let o=1;i===1&&(o=s.length),e.writeVarint(Ks(1,o));let l=i===3?s.length-1:s.length;for(let u=0;u=this._numberToString.length)throw Error(`Out of bounds. Index requested n=${t} can\'t be >= this._numberToString.length ${this._numberToString.length}`);return this._numberToString[t]}},Fw=class{constructor(t,e,r,i,n){this.type="Feature",this._vectorTileFeature=t,this._x=r,this._y=i,this._z=e;for(let a in t.properties)typeof t.properties[a]=="string"&&t.properties[a].startsWith("__$json__:")&&(t.properties[a]=JSON.parse(t.properties[a].slice(10)));this.properties=t.properties,this.id=n}projectPoint(t,e,r,i){return[(t.x+e)*360/i-180,360/Math.PI*Math.atan(Math.exp((1-(t.y+r)*2/i)*Math.PI))-90]}projectLine(t,e,r,i){return t.map(n=>this.projectPoint(n,e,r,i))}get geometry(){if(this._geometry)return this._geometry;let t=this._vectorTileFeature,e=t.extent*2**this._z,r=t.extent*this._x,i=t.extent*this._y,n=t.loadGeometry();switch(t.type){case 1:{let a=[];for(let o of n)a.push(o[0]);let s=this.projectLine(a,r,i,e);this._geometry=a.length===1?{type:"Point",coordinates:s[0]}:{type:"MultiPoint",coordinates:s};break}case 2:{let a=n.map(s=>this.projectLine(s,r,i,e));this._geometry=a.length===1?{type:"LineString",coordinates:a[0]}:{type:"MultiLineString",coordinates:a};break}case 3:{let a=Ld(n),s=[];for(let o of a)s.push(o.map(l=>this.projectLine(l,r,i,e)));this._geometry=s.length===1?{type:"Polygon",coordinates:s[0]}:{type:"MultiPolygon",coordinates:s};break}default:throw Error(`unknown feature type: ${t.type}`)}return this._geometry}set geometry(t){this._geometry=t}toJSON(){let t={geometry:this.geometry};for(let e in this)e!=="_geometry"&&e!=="_vectorTileFeature"&&e!=="_x"&&e!=="_y"&&e!=="_z"&&(t[e]=this[e]);return t}},Tr=class{constructor(t,e,r){this._name=t,this.dataBuffer=e,typeof r=="number"?this._size=r:(this.nullabilityBuffer=r,this._size=r.size())}getValue(t){return this.nullabilityBuffer&&!this.nullabilityBuffer.get(t)?null:this.getValueFromBuffer(t)}has(t){var e;return((e=this.nullabilityBuffer)==null?void 0:e.get(t))||!this.nullabilityBuffer}get name(){return this._name}get size(){return this._size}},es=class extends Tr{},yu=class extends es{getValueFromBuffer(t){return this.dataBuffer[t]}},mu=class extends es{getValueFromBuffer(t){return this.dataBuffer[t]}},Cy=class extends Tr{constructor(t,e,r,i){super(t,e,i),this.delta=r}},gu=class extends Cy{constructor(t,e,r,i,n){super(t,n?Int32Array.of(e):Uint32Array.of(e),r,i)}getValueFromBuffer(t){return this.dataBuffer[0]+t*this.delta}},xu=class extends Tr{constructor(t,e,r,i){super(t,i?Int32Array.of(e):Uint32Array.of(e),r)}getValueFromBuffer(t){return this.dataBuffer[0]}},Tw=class{constructor(t,e,r,i,n=4096){if(this._name=t,this._geometryVector=e,this._idVector=r,this._propertyVectors=i,this._extent=n,t.length===0)throw Error("Missing layer name")}get name(){return this._name}get idVector(){return this._idVector}get geometryVector(){return this._geometryVector}get propertyVectors(){var t;return(t=this._propertyVectors)!=null?t:[]}getPropertyVector(t){return this.propertyVectorsMap||(this.propertyVectorsMap=new Map(this.propertyVectors.map(e=>[e.name,e]))),this.propertyVectorsMap.get(t)}get numFeatures(){return this.geometryVector.numGeometries}get extent(){return this._extent}getFeatures(){let t=[],e=this.geometryVector.getGeometries();for(let r=0;r>>32-t;var pl=vu,bu=65536;function wu(t,e){return t-t%e}function kw(t){return wu(t+31,32)}function Py(t){if(!Number.isFinite(t)||t<=0)return bu;let e=wu(Math.floor(t),256);return e===0?256:e}function Iw(t){let e=t>>>0;return((e&255)<<24|(e&65280)<<8|e>>>8&65280|e>>>24&255)>>>0}function Cw(t,e,r,i){let n=i,a=t[e]>>>0,s=t[e+1]>>>0;r[n++]=a>>>0&3,r[n++]=a>>>2&3,r[n++]=a>>>4&3,r[n++]=a>>>6&3,r[n++]=a>>>8&3,r[n++]=a>>>10&3,r[n++]=a>>>12&3,r[n++]=a>>>14&3,r[n++]=a>>>16&3,r[n++]=a>>>18&3,r[n++]=a>>>20&3,r[n++]=a>>>22&3,r[n++]=a>>>24&3,r[n++]=a>>>26&3,r[n++]=a>>>28&3,r[n++]=a>>>30&3,r[n++]=s>>>0&3,r[n++]=s>>>2&3,r[n++]=s>>>4&3,r[n++]=s>>>6&3,r[n++]=s>>>8&3,r[n++]=s>>>10&3,r[n++]=s>>>12&3,r[n++]=s>>>14&3,r[n++]=s>>>16&3,r[n++]=s>>>18&3,r[n++]=s>>>20&3,r[n++]=s>>>22&3,r[n++]=s>>>24&3,r[n++]=s>>>26&3,r[n++]=s>>>28&3,r[n]=s>>>30&3}function Mw(t,e,r,i){let n=i,a=t[e]>>>0,s=t[e+1]>>>0,o=t[e+2]>>>0;r[n++]=a>>>0&7,r[n++]=a>>>3&7,r[n++]=a>>>6&7,r[n++]=a>>>9&7,r[n++]=a>>>12&7,r[n++]=a>>>15&7,r[n++]=a>>>18&7,r[n++]=a>>>21&7,r[n++]=a>>>24&7,r[n++]=a>>>27&7,r[n++]=(a>>>30|(s&1)<<2)&7,r[n++]=s>>>1&7,r[n++]=s>>>4&7,r[n++]=s>>>7&7,r[n++]=s>>>10&7,r[n++]=s>>>13&7,r[n++]=s>>>16&7,r[n++]=s>>>19&7,r[n++]=s>>>22&7,r[n++]=s>>>25&7,r[n++]=s>>>28&7,r[n++]=(s>>>31|(o&3)<<1)&7,r[n++]=o>>>2&7,r[n++]=o>>>5&7,r[n++]=o>>>8&7,r[n++]=o>>>11&7,r[n++]=o>>>14&7,r[n++]=o>>>17&7,r[n++]=o>>>20&7,r[n++]=o>>>23&7,r[n++]=o>>>26&7,r[n]=o>>>29&7}function Bw(t,e,r,i){let n=i,a=t[e]>>>0,s=t[e+1]>>>0,o=t[e+2]>>>0,l=t[e+3]>>>0;r[n++]=a>>>0&15,r[n++]=a>>>4&15,r[n++]=a>>>8&15,r[n++]=a>>>12&15,r[n++]=a>>>16&15,r[n++]=a>>>20&15,r[n++]=a>>>24&15,r[n++]=a>>>28&15,r[n++]=s>>>0&15,r[n++]=s>>>4&15,r[n++]=s>>>8&15,r[n++]=s>>>12&15,r[n++]=s>>>16&15,r[n++]=s>>>20&15,r[n++]=s>>>24&15,r[n++]=s>>>28&15,r[n++]=o>>>0&15,r[n++]=o>>>4&15,r[n++]=o>>>8&15,r[n++]=o>>>12&15,r[n++]=o>>>16&15,r[n++]=o>>>20&15,r[n++]=o>>>24&15,r[n++]=o>>>28&15,r[n++]=l>>>0&15,r[n++]=l>>>4&15,r[n++]=l>>>8&15,r[n++]=l>>>12&15,r[n++]=l>>>16&15,r[n++]=l>>>20&15,r[n++]=l>>>24&15,r[n]=l>>>28&15}function Pw(t,e,r,i){let n=i,a=t[e]>>>0,s=t[e+1]>>>0,o=t[e+2]>>>0,l=t[e+3]>>>0,u=t[e+4]>>>0;r[n++]=a>>>0&31,r[n++]=a>>>5&31,r[n++]=a>>>10&31,r[n++]=a>>>15&31,r[n++]=a>>>20&31,r[n++]=a>>>25&31,r[n++]=(a>>>30|(s&7)<<2)&31,r[n++]=s>>>3&31,r[n++]=s>>>8&31,r[n++]=s>>>13&31,r[n++]=s>>>18&31,r[n++]=s>>>23&31,r[n++]=(s>>>28|(o&1)<<4)&31,r[n++]=o>>>1&31,r[n++]=o>>>6&31,r[n++]=o>>>11&31,r[n++]=o>>>16&31,r[n++]=o>>>21&31,r[n++]=o>>>26&31,r[n++]=(o>>>31|(l&15)<<1)&31,r[n++]=l>>>4&31,r[n++]=l>>>9&31,r[n++]=l>>>14&31,r[n++]=l>>>19&31,r[n++]=l>>>24&31,r[n++]=(l>>>29|(u&3)<<3)&31,r[n++]=u>>>2&31,r[n++]=u>>>7&31,r[n++]=u>>>12&31,r[n++]=u>>>17&31,r[n++]=u>>>22&31,r[n]=u>>>27&31}function zw(t,e,r,i){let n=i,a=t[e]>>>0,s=t[e+1]>>>0,o=t[e+2]>>>0,l=t[e+3]>>>0,u=t[e+4]>>>0,h=t[e+5]>>>0;r[n++]=a>>>0&63,r[n++]=a>>>6&63,r[n++]=a>>>12&63,r[n++]=a>>>18&63,r[n++]=a>>>24&63,r[n++]=(a>>>30|(s&15)<<2)&63,r[n++]=s>>>4&63,r[n++]=s>>>10&63,r[n++]=s>>>16&63,r[n++]=s>>>22&63,r[n++]=(s>>>28|(o&3)<<4)&63,r[n++]=o>>>2&63,r[n++]=o>>>8&63,r[n++]=o>>>14&63,r[n++]=o>>>20&63,r[n++]=o>>>26&63,r[n++]=l>>>0&63,r[n++]=l>>>6&63,r[n++]=l>>>12&63,r[n++]=l>>>18&63,r[n++]=l>>>24&63,r[n++]=(l>>>30|(u&15)<<2)&63,r[n++]=u>>>4&63,r[n++]=u>>>10&63,r[n++]=u>>>16&63,r[n++]=u>>>22&63,r[n++]=(u>>>28|(h&3)<<4)&63,r[n++]=h>>>2&63,r[n++]=h>>>8&63,r[n++]=h>>>14&63,r[n++]=h>>>20&63,r[n]=h>>>26&63}function Lw(t,e,r,i){let n=i,a=t[e]>>>0,s=t[e+1]>>>0,o=t[e+2]>>>0,l=t[e+3]>>>0,u=t[e+4]>>>0,h=t[e+5]>>>0,c=t[e+6]>>>0;r[n++]=a>>>0&127,r[n++]=a>>>7&127,r[n++]=a>>>14&127,r[n++]=a>>>21&127,r[n++]=(a>>>28|(s&7)<<4)&127,r[n++]=s>>>3&127,r[n++]=s>>>10&127,r[n++]=s>>>17&127,r[n++]=s>>>24&127,r[n++]=(s>>>31|(o&63)<<1)&127,r[n++]=o>>>6&127,r[n++]=o>>>13&127,r[n++]=o>>>20&127,r[n++]=(o>>>27|(l&3)<<5)&127,r[n++]=l>>>2&127,r[n++]=l>>>9&127,r[n++]=l>>>16&127,r[n++]=l>>>23&127,r[n++]=(l>>>30|(u&31)<<2)&127,r[n++]=u>>>5&127,r[n++]=u>>>12&127,r[n++]=u>>>19&127,r[n++]=(u>>>26|(h&1)<<6)&127,r[n++]=h>>>1&127,r[n++]=h>>>8&127,r[n++]=h>>>15&127,r[n++]=h>>>22&127,r[n++]=(h>>>29|(c&15)<<3)&127,r[n++]=c>>>4&127,r[n++]=c>>>11&127,r[n++]=c>>>18&127,r[n]=c>>>25&127}function Vw(t,e,r,i){let n=i,a=t[e]>>>0,s=t[e+1]>>>0,o=t[e+2]>>>0,l=t[e+3]>>>0,u=t[e+4]>>>0,h=t[e+5]>>>0,c=t[e+6]>>>0,p=t[e+7]>>>0;r[n++]=a>>>0&255,r[n++]=a>>>8&255,r[n++]=a>>>16&255,r[n++]=a>>>24&255,r[n++]=s>>>0&255,r[n++]=s>>>8&255,r[n++]=s>>>16&255,r[n++]=s>>>24&255,r[n++]=o>>>0&255,r[n++]=o>>>8&255,r[n++]=o>>>16&255,r[n++]=o>>>24&255,r[n++]=l>>>0&255,r[n++]=l>>>8&255,r[n++]=l>>>16&255,r[n++]=l>>>24&255,r[n++]=u>>>0&255,r[n++]=u>>>8&255,r[n++]=u>>>16&255,r[n++]=u>>>24&255,r[n++]=h>>>0&255,r[n++]=h>>>8&255,r[n++]=h>>>16&255,r[n++]=h>>>24&255,r[n++]=c>>>0&255,r[n++]=c>>>8&255,r[n++]=c>>>16&255,r[n++]=c>>>24&255,r[n++]=p>>>0&255,r[n++]=p>>>8&255,r[n++]=p>>>16&255,r[n]=p>>>24&255}function Ow(t,e,r,i){let n=i,a=t[e]>>>0,s=t[e+1]>>>0,o=t[e+2]>>>0,l=t[e+3]>>>0,u=t[e+4]>>>0,h=t[e+5]>>>0,c=t[e+6]>>>0,p=t[e+7]>>>0,f=t[e+8]>>>0;r[n++]=a>>>0&511,r[n++]=a>>>9&511,r[n++]=a>>>18&511,r[n++]=(a>>>27|(s&15)<<5)&511,r[n++]=s>>>4&511,r[n++]=s>>>13&511,r[n++]=s>>>22&511,r[n++]=(s>>>31|(o&255)<<1)&511,r[n++]=o>>>8&511,r[n++]=o>>>17&511,r[n++]=(o>>>26|(l&7)<<6)&511,r[n++]=l>>>3&511,r[n++]=l>>>12&511,r[n++]=l>>>21&511,r[n++]=(l>>>30|(u&127)<<2)&511,r[n++]=u>>>7&511,r[n++]=u>>>16&511,r[n++]=(u>>>25|(h&3)<<7)&511,r[n++]=h>>>2&511,r[n++]=h>>>11&511,r[n++]=h>>>20&511,r[n++]=(h>>>29|(c&63)<<3)&511,r[n++]=c>>>6&511,r[n++]=c>>>15&511,r[n++]=(c>>>24|(p&1)<<8)&511,r[n++]=p>>>1&511,r[n++]=p>>>10&511,r[n++]=p>>>19&511,r[n++]=(p>>>28|(f&31)<<4)&511,r[n++]=f>>>5&511,r[n++]=f>>>14&511,r[n]=f>>>23&511}function Rw(t,e,r,i){let n=i,a=t[e]>>>0,s=t[e+1]>>>0,o=t[e+2]>>>0,l=t[e+3]>>>0,u=t[e+4]>>>0,h=t[e+5]>>>0,c=t[e+6]>>>0,p=t[e+7]>>>0,f=t[e+8]>>>0,d=t[e+9]>>>0;r[n++]=a>>>0&1023,r[n++]=a>>>10&1023,r[n++]=a>>>20&1023,r[n++]=(a>>>30|(s&255)<<2)&1023,r[n++]=s>>>8&1023,r[n++]=s>>>18&1023,r[n++]=(s>>>28|(o&63)<<4)&1023,r[n++]=o>>>6&1023,r[n++]=o>>>16&1023,r[n++]=(o>>>26|(l&15)<<6)&1023,r[n++]=l>>>4&1023,r[n++]=l>>>14&1023,r[n++]=(l>>>24|(u&3)<<8)&1023,r[n++]=u>>>2&1023,r[n++]=u>>>12&1023,r[n++]=u>>>22&1023,r[n++]=h>>>0&1023,r[n++]=h>>>10&1023,r[n++]=h>>>20&1023,r[n++]=(h>>>30|(c&255)<<2)&1023,r[n++]=c>>>8&1023,r[n++]=c>>>18&1023,r[n++]=(c>>>28|(p&63)<<4)&1023,r[n++]=p>>>6&1023,r[n++]=p>>>16&1023,r[n++]=(p>>>26|(f&15)<<6)&1023,r[n++]=f>>>4&1023,r[n++]=f>>>14&1023,r[n++]=(f>>>24|(d&3)<<8)&1023,r[n++]=d>>>2&1023,r[n++]=d>>>12&1023,r[n]=d>>>22&1023}function $w(t,e,r,i){let n=i,a=t[e]>>>0,s=t[e+1]>>>0,o=t[e+2]>>>0,l=t[e+3]>>>0,u=t[e+4]>>>0,h=t[e+5]>>>0,c=t[e+6]>>>0,p=t[e+7]>>>0,f=t[e+8]>>>0,d=t[e+9]>>>0,y=t[e+10]>>>0;r[n++]=a>>>0&2047,r[n++]=a>>>11&2047,r[n++]=(a>>>22|(s&1)<<10)&2047,r[n++]=s>>>1&2047,r[n++]=s>>>12&2047,r[n++]=(s>>>23|(o&3)<<9)&2047,r[n++]=o>>>2&2047,r[n++]=o>>>13&2047,r[n++]=(o>>>24|(l&7)<<8)&2047,r[n++]=l>>>3&2047,r[n++]=l>>>14&2047,r[n++]=(l>>>25|(u&15)<<7)&2047,r[n++]=u>>>4&2047,r[n++]=u>>>15&2047,r[n++]=(u>>>26|(h&31)<<6)&2047,r[n++]=h>>>5&2047,r[n++]=h>>>16&2047,r[n++]=(h>>>27|(c&63)<<5)&2047,r[n++]=c>>>6&2047,r[n++]=c>>>17&2047,r[n++]=(c>>>28|(p&127)<<4)&2047,r[n++]=p>>>7&2047,r[n++]=p>>>18&2047,r[n++]=(p>>>29|(f&255)<<3)&2047,r[n++]=f>>>8&2047,r[n++]=f>>>19&2047,r[n++]=(f>>>30|(d&511)<<2)&2047,r[n++]=d>>>9&2047,r[n++]=d>>>20&2047,r[n++]=(d>>>31|(y&1023)<<1)&2047,r[n++]=y>>>10&2047,r[n]=y>>>21&2047}function Nw(t,e,r,i){let n=i,a=t[e]>>>0,s=t[e+1]>>>0,o=t[e+2]>>>0,l=t[e+3]>>>0,u=t[e+4]>>>0,h=t[e+5]>>>0,c=t[e+6]>>>0,p=t[e+7]>>>0,f=t[e+8]>>>0,d=t[e+9]>>>0,y=t[e+10]>>>0,m=t[e+11]>>>0;r[n++]=a>>>0&4095,r[n++]=a>>>12&4095,r[n++]=(a>>>24|(s&15)<<8)&4095,r[n++]=s>>>4&4095,r[n++]=s>>>16&4095,r[n++]=(s>>>28|(o&255)<<4)&4095,r[n++]=o>>>8&4095,r[n++]=o>>>20&4095,r[n++]=l>>>0&4095,r[n++]=l>>>12&4095,r[n++]=(l>>>24|(u&15)<<8)&4095,r[n++]=u>>>4&4095,r[n++]=u>>>16&4095,r[n++]=(u>>>28|(h&255)<<4)&4095,r[n++]=h>>>8&4095,r[n++]=h>>>20&4095,r[n++]=c>>>0&4095,r[n++]=c>>>12&4095,r[n++]=(c>>>24|(p&15)<<8)&4095,r[n++]=p>>>4&4095,r[n++]=p>>>16&4095,r[n++]=(p>>>28|(f&255)<<4)&4095,r[n++]=f>>>8&4095,r[n++]=f>>>20&4095,r[n++]=d>>>0&4095,r[n++]=d>>>12&4095,r[n++]=(d>>>24|(y&15)<<8)&4095,r[n++]=y>>>4&4095,r[n++]=y>>>16&4095,r[n++]=(y>>>28|(m&255)<<4)&4095,r[n++]=m>>>8&4095,r[n]=m>>>20&4095}function Uw(t,e,r,i){let n=i,a=t[e]>>>0,s=t[e+1]>>>0,o=t[e+2]>>>0,l=t[e+3]>>>0,u=t[e+4]>>>0,h=t[e+5]>>>0,c=t[e+6]>>>0,p=t[e+7]>>>0,f=t[e+8]>>>0,d=t[e+9]>>>0,y=t[e+10]>>>0,m=t[e+11]>>>0,g=t[e+12]>>>0,x=t[e+13]>>>0,v=t[e+14]>>>0,b=t[e+15]>>>0;r[n++]=a>>>0&65535,r[n++]=a>>>16&65535,r[n++]=s>>>0&65535,r[n++]=s>>>16&65535,r[n++]=o>>>0&65535,r[n++]=o>>>16&65535,r[n++]=l>>>0&65535,r[n++]=l>>>16&65535,r[n++]=u>>>0&65535,r[n++]=u>>>16&65535,r[n++]=h>>>0&65535,r[n++]=h>>>16&65535,r[n++]=c>>>0&65535,r[n++]=c>>>16&65535,r[n++]=p>>>0&65535,r[n++]=p>>>16&65535,r[n++]=f>>>0&65535,r[n++]=f>>>16&65535,r[n++]=d>>>0&65535,r[n++]=d>>>16&65535,r[n++]=y>>>0&65535,r[n++]=y>>>16&65535,r[n++]=m>>>0&65535,r[n++]=m>>>16&65535,r[n++]=g>>>0&65535,r[n++]=g>>>16&65535,r[n++]=x>>>0&65535,r[n++]=x>>>16&65535,r[n++]=v>>>0&65535,r[n++]=v>>>16&65535,r[n++]=b>>>0&65535,r[n]=b>>>16&65535}function qw(t,e,r,i){let n=i,a=e;for(let s=0;s<8;s++){let o=t[a++]>>>0;r[n++]=o>>>0&1,r[n++]=o>>>1&1,r[n++]=o>>>2&1,r[n++]=o>>>3&1,r[n++]=o>>>4&1,r[n++]=o>>>5&1,r[n++]=o>>>6&1,r[n++]=o>>>7&1,r[n++]=o>>>8&1,r[n++]=o>>>9&1,r[n++]=o>>>10&1,r[n++]=o>>>11&1,r[n++]=o>>>12&1,r[n++]=o>>>13&1,r[n++]=o>>>14&1,r[n++]=o>>>15&1,r[n++]=o>>>16&1,r[n++]=o>>>17&1,r[n++]=o>>>18&1,r[n++]=o>>>19&1,r[n++]=o>>>20&1,r[n++]=o>>>21&1,r[n++]=o>>>22&1,r[n++]=o>>>23&1,r[n++]=o>>>24&1,r[n++]=o>>>25&1,r[n++]=o>>>26&1,r[n++]=o>>>27&1,r[n++]=o>>>28&1,r[n++]=o>>>29&1,r[n++]=o>>>30&1,r[n++]=o>>>31&1}}function jw(t,e,r,i){let n=i,a=e;for(let s=0;s<8;s++){let o=t[a++]>>>0,l=t[a++]>>>0;r[n++]=o>>>0&3,r[n++]=o>>>2&3,r[n++]=o>>>4&3,r[n++]=o>>>6&3,r[n++]=o>>>8&3,r[n++]=o>>>10&3,r[n++]=o>>>12&3,r[n++]=o>>>14&3,r[n++]=o>>>16&3,r[n++]=o>>>18&3,r[n++]=o>>>20&3,r[n++]=o>>>22&3,r[n++]=o>>>24&3,r[n++]=o>>>26&3,r[n++]=o>>>28&3,r[n++]=o>>>30&3,r[n++]=l>>>0&3,r[n++]=l>>>2&3,r[n++]=l>>>4&3,r[n++]=l>>>6&3,r[n++]=l>>>8&3,r[n++]=l>>>10&3,r[n++]=l>>>12&3,r[n++]=l>>>14&3,r[n++]=l>>>16&3,r[n++]=l>>>18&3,r[n++]=l>>>20&3,r[n++]=l>>>22&3,r[n++]=l>>>24&3,r[n++]=l>>>26&3,r[n++]=l>>>28&3,r[n++]=l>>>30&3}}function Gw(t,e,r,i){let n=i,a=e;for(let s=0;s<8;s++){let o=t[a++]>>>0,l=t[a++]>>>0,u=t[a++]>>>0;r[n++]=o>>>0&7,r[n++]=o>>>3&7,r[n++]=o>>>6&7,r[n++]=o>>>9&7,r[n++]=o>>>12&7,r[n++]=o>>>15&7,r[n++]=o>>>18&7,r[n++]=o>>>21&7,r[n++]=o>>>24&7,r[n++]=o>>>27&7,r[n++]=(o>>>30|(l&1)<<2)&7,r[n++]=l>>>1&7,r[n++]=l>>>4&7,r[n++]=l>>>7&7,r[n++]=l>>>10&7,r[n++]=l>>>13&7,r[n++]=l>>>16&7,r[n++]=l>>>19&7,r[n++]=l>>>22&7,r[n++]=l>>>25&7,r[n++]=l>>>28&7,r[n++]=(l>>>31|(u&3)<<1)&7,r[n++]=u>>>2&7,r[n++]=u>>>5&7,r[n++]=u>>>8&7,r[n++]=u>>>11&7,r[n++]=u>>>14&7,r[n++]=u>>>17&7,r[n++]=u>>>20&7,r[n++]=u>>>23&7,r[n++]=u>>>26&7,r[n++]=u>>>29&7}}function Xw(t,e,r,i){let n=i,a=e;for(let s=0;s<8;s++){let o=t[a++]>>>0,l=t[a++]>>>0,u=t[a++]>>>0,h=t[a++]>>>0;r[n++]=o>>>0&15,r[n++]=o>>>4&15,r[n++]=o>>>8&15,r[n++]=o>>>12&15,r[n++]=o>>>16&15,r[n++]=o>>>20&15,r[n++]=o>>>24&15,r[n++]=o>>>28&15,r[n++]=l>>>0&15,r[n++]=l>>>4&15,r[n++]=l>>>8&15,r[n++]=l>>>12&15,r[n++]=l>>>16&15,r[n++]=l>>>20&15,r[n++]=l>>>24&15,r[n++]=l>>>28&15,r[n++]=u>>>0&15,r[n++]=u>>>4&15,r[n++]=u>>>8&15,r[n++]=u>>>12&15,r[n++]=u>>>16&15,r[n++]=u>>>20&15,r[n++]=u>>>24&15,r[n++]=u>>>28&15,r[n++]=h>>>0&15,r[n++]=h>>>4&15,r[n++]=h>>>8&15,r[n++]=h>>>12&15,r[n++]=h>>>16&15,r[n++]=h>>>20&15,r[n++]=h>>>24&15,r[n++]=h>>>28&15}}function Yw(t,e,r,i){let n=i,a=e;for(let s=0;s<8;s++){let o=t[a++]>>>0,l=t[a++]>>>0,u=t[a++]>>>0,h=t[a++]>>>0,c=t[a++]>>>0;r[n++]=o>>>0&31,r[n++]=o>>>5&31,r[n++]=o>>>10&31,r[n++]=o>>>15&31,r[n++]=o>>>20&31,r[n++]=o>>>25&31,r[n++]=(o>>>30|(l&7)<<2)&31,r[n++]=l>>>3&31,r[n++]=l>>>8&31,r[n++]=l>>>13&31,r[n++]=l>>>18&31,r[n++]=l>>>23&31,r[n++]=(l>>>28|(u&1)<<4)&31,r[n++]=u>>>1&31,r[n++]=u>>>6&31,r[n++]=u>>>11&31,r[n++]=u>>>16&31,r[n++]=u>>>21&31,r[n++]=u>>>26&31,r[n++]=(u>>>31|(h&15)<<1)&31,r[n++]=h>>>4&31,r[n++]=h>>>9&31,r[n++]=h>>>14&31,r[n++]=h>>>19&31,r[n++]=h>>>24&31,r[n++]=(h>>>29|(c&3)<<3)&31,r[n++]=c>>>2&31,r[n++]=c>>>7&31,r[n++]=c>>>12&31,r[n++]=c>>>17&31,r[n++]=c>>>22&31,r[n++]=c>>>27&31}}function Ww(t,e,r,i){let n=i,a=e;for(let s=0;s<8;s++){let o=t[a++]>>>0,l=t[a++]>>>0,u=t[a++]>>>0,h=t[a++]>>>0,c=t[a++]>>>0,p=t[a++]>>>0;r[n++]=o>>>0&63,r[n++]=o>>>6&63,r[n++]=o>>>12&63,r[n++]=o>>>18&63,r[n++]=o>>>24&63,r[n++]=(o>>>30|(l&15)<<2)&63,r[n++]=l>>>4&63,r[n++]=l>>>10&63,r[n++]=l>>>16&63,r[n++]=l>>>22&63,r[n++]=(l>>>28|(u&3)<<4)&63,r[n++]=u>>>2&63,r[n++]=u>>>8&63,r[n++]=u>>>14&63,r[n++]=u>>>20&63,r[n++]=u>>>26&63,r[n++]=h>>>0&63,r[n++]=h>>>6&63,r[n++]=h>>>12&63,r[n++]=h>>>18&63,r[n++]=h>>>24&63,r[n++]=(h>>>30|(c&15)<<2)&63,r[n++]=c>>>4&63,r[n++]=c>>>10&63,r[n++]=c>>>16&63,r[n++]=c>>>22&63,r[n++]=(c>>>28|(p&3)<<4)&63,r[n++]=p>>>2&63,r[n++]=p>>>8&63,r[n++]=p>>>14&63,r[n++]=p>>>20&63,r[n++]=p>>>26&63}}function Zw(t,e,r,i){let n=i,a=e;for(let s=0;s<8;s++){let o=t[a++]>>>0,l=t[a++]>>>0,u=t[a++]>>>0,h=t[a++]>>>0,c=t[a++]>>>0,p=t[a++]>>>0,f=t[a++]>>>0;r[n++]=o>>>0&127,r[n++]=o>>>7&127,r[n++]=o>>>14&127,r[n++]=o>>>21&127,r[n++]=(o>>>28|(l&7)<<4)&127,r[n++]=l>>>3&127,r[n++]=l>>>10&127,r[n++]=l>>>17&127,r[n++]=l>>>24&127,r[n++]=(l>>>31|(u&63)<<1)&127,r[n++]=u>>>6&127,r[n++]=u>>>13&127,r[n++]=u>>>20&127,r[n++]=(u>>>27|(h&3)<<5)&127,r[n++]=h>>>2&127,r[n++]=h>>>9&127,r[n++]=h>>>16&127,r[n++]=h>>>23&127,r[n++]=(h>>>30|(c&31)<<2)&127,r[n++]=c>>>5&127,r[n++]=c>>>12&127,r[n++]=c>>>19&127,r[n++]=(c>>>26|(p&1)<<6)&127,r[n++]=p>>>1&127,r[n++]=p>>>8&127,r[n++]=p>>>15&127,r[n++]=p>>>22&127,r[n++]=(p>>>29|(f&15)<<3)&127,r[n++]=f>>>4&127,r[n++]=f>>>11&127,r[n++]=f>>>18&127,r[n++]=f>>>25&127}}function Hw(t,e,r,i){let n=i,a=e;for(let s=0;s<8;s++){let o=t[a++]>>>0,l=t[a++]>>>0,u=t[a++]>>>0,h=t[a++]>>>0,c=t[a++]>>>0,p=t[a++]>>>0,f=t[a++]>>>0,d=t[a++]>>>0;r[n++]=o>>>0&255,r[n++]=o>>>8&255,r[n++]=o>>>16&255,r[n++]=o>>>24&255,r[n++]=l>>>0&255,r[n++]=l>>>8&255,r[n++]=l>>>16&255,r[n++]=l>>>24&255,r[n++]=u>>>0&255,r[n++]=u>>>8&255,r[n++]=u>>>16&255,r[n++]=u>>>24&255,r[n++]=h>>>0&255,r[n++]=h>>>8&255,r[n++]=h>>>16&255,r[n++]=h>>>24&255,r[n++]=c>>>0&255,r[n++]=c>>>8&255,r[n++]=c>>>16&255,r[n++]=c>>>24&255,r[n++]=p>>>0&255,r[n++]=p>>>8&255,r[n++]=p>>>16&255,r[n++]=p>>>24&255,r[n++]=f>>>0&255,r[n++]=f>>>8&255,r[n++]=f>>>16&255,r[n++]=f>>>24&255,r[n++]=d>>>0&255,r[n++]=d>>>8&255,r[n++]=d>>>16&255,r[n++]=d>>>24&255}}function Kw(t,e,r,i){let n=i,a=e;for(let s=0;s<128;s++){let o=t[a++]>>>0;r[n++]=o&65535,r[n++]=o>>>16&65535}}function Jw(t,e,r,i,n){let a=pl[n]>>>0,s=e,o=0,l=t[s]>>>0,u=i;for(let h=0;h<8;h++){for(let c=0;c<32;c++)if(o+n<=32){let p=l>>>o&a;r[u+c]=p|0,o+=n,o===32&&(o=0,s++,c!==31&&(l=t[s]>>>0))}else{let p=32-o,f=l>>>o;s++,l=t[s]>>>0;let d=n-p,y=-1>>>32-d>>>0,m=(f|(l&y)<>>0)}}var fl=Py(bu),Qw=3*fl/256+fl|0;function zy(){let t=new Uint8Array(Qw);return{dataToBePacked:Array(33),dataPointers:new Int32Array(33),byteContainer:t,byteContainerI32:new Int32Array(t.buffer,t.byteOffset,t.byteLength>>>2),exceptionSizes:new Int32Array(33)}}function t3(t=16){if(t<0)throw RangeError(`initialEncodedWordCapacity must be >= 0, got ${t}`);let e=Math.max(16,t|0);return{encodedWords:new Uint32Array(e),decoderWorkspace:zy()}}function e3(t,e){if(e<=t.encodedWords.length)return t.encodedWords;let r=new Uint32Array(Math.max(16,e*2));return t.encodedWords=r,r}function r3(t,e,r,i){i.byteContainer.length>>2;if(n.byteOffset&3)for(let o=0;o>>8&255,n[u+2|0]=l>>>16&255,n[u+3|0]=l>>>24&255}else{let o=i.byteContainerI32;(!o||o.buffer!==n.buffer||o.byteOffset!==n.byteOffset||o.length>>2)),o.set(t.subarray(e,e+a))}let s=r&3;if(s>0){let o=t[e+a|0]|0,l=a<<2;for(let u=0;u>>(u<<3)&255}return n}function i3(t,e,r){let i=t[e++]|0,n=r.dataToBePacked;for(let a=2;a<=32;a=a+1|0){if(!(i>>>a-1&1))continue;if(e>=t.length)throw Error(`FastPFOR decode: truncated exception stream header (bitWidth=${a}, streamWordIndex=${e}, needWords=1, availableWords=${t.length-e}, encodedWords=${t.length})`);let s=t[e++]>>>0,o=kw(s),l=s*a+31>>>5;if(e+l>t.length)throw Error(`FastPFOR decode: truncated exception stream (bitWidth=${a}, size=${s}, streamWordIndex=${e}, needWords=${l}, availableWords=${t.length-e}, encodedWords=${t.length})`);let u=n[a];(!u||u.length>>5)|0,r.exceptionSizes[a]=s}return e}function n3(t,e,r,i,n){switch(n){case 1:qw(t,e,r,i);break;case 2:jw(t,e,r,i);break;case 3:Gw(t,e,r,i);break;case 4:Xw(t,e,r,i);break;case 5:Yw(t,e,r,i);break;case 6:Ww(t,e,r,i);break;case 7:Zw(t,e,r,i);break;case 8:Hw(t,e,r,i);break;case 16:Kw(t,e,r,i);break;default:Jw(t,e,r,i,n)}return e+(n<<3)|0}function a3(t,e,r,i){if(r+2>e)throw Error(`FastPFOR decode: byteContainer underflow at block=${i} (need 2 bytes for [bitWidth, exceptionCount], bytePos=${r}, byteSize=${e})`);let n=t[r++],a=t[r++];if(n>32)throw Error(`FastPFOR decode: invalid bitWidth=${n} at block=${i} (expected 0..32). This likely indicates corrupted or truncated input.`);return{bitWidth:n,exceptionCount:a,bytePosIn:r}}function s3(t,e,r,i,n,a){if(r+1>e)throw Error(`FastPFOR decode: exception header underflow at block=${a} (need 1 byte for maxBits, bytePos=${r}, byteSize=${e})`);let s=t[r++];if(s32)throw Error(`FastPFOR decode: invalid maxBits=${s} at block=${a} (bitWidth=${i}, expected ${i}..32)`);let o=s-i|0;if(o<1||o>32)throw Error(`FastPFOR decode: invalid exceptionBitWidth=${o} at block=${a} (bitWidth=${i}, maxBits=${s})`);if(r+n>e)throw Error(`FastPFOR decode: exception positions underflow at block=${a} (need=${n}, have=${e-r})`);return{maxBits:s,exceptionBitWidth:o,bytePosIn:r}}function o3(t,e,r,i,n,a,s,o,l){let{maxBits:u,exceptionBitWidth:h,bytePosIn:c}=s3(n,a,s,r,i,l);if(s=c,h===1){let m=1<y)throw Error(`FastPFOR decode: exception stream overflow for exceptionBitWidth=${h} (ptr=${d}, need ${i}, size=${y}) at block ${l}`);for(let m=0;m0&&(c=o3(n,m,d,y,o,l,c,u,p))}if(h!==i)throw Error(`FastPFOR decode: packed region mismatch (pageStart=${e}, packedStart=${r}, consumedPackedEnd=${h}, expectedPackedEnd=${i}, packedWords=${i-r}, encoded.length=${t.length})`)}function u3(t,e,r,i,n,a){let s=r|0,o=t[s]|0;if(o<=0||s+o>t.length-1)throw Error(`FastPFOR decode: invalid whereMeta=${o} at pageStart=${s} (expected > 0 and pageStart+whereMeta < encoded.length=${t.length})`);let l=s+1|0,u=s+o|0,h=t[u]>>>0,c=h+3>>>2,p=u+1,f=p+c;if(f>=t.length)throw Error(`FastPFOR decode: invalid byteSize=${h} (metaInts=${c}, pageStart=${s}, packedEnd=${u}, byteContainerStart=${p}) causes bitmapPos=${f} out of bounds (encoded.length=${t.length})`);let d=r3(t,p,h,a),y=h,m=i3(t,f,a);return a.dataPointers.fill(0),l3(t,s,l,u,e,i|0,n/256|0,d,y,a),m}function h3(t,e,r,i,n,a){let s=i+wu(n,256),o=i,l=r;for(;o!==s;){let u=Math.min(fl,s-o);l=u3(t,e,l,o,u,a),o=o+u|0}return l}function c3(t,e,r,i,n,a){if(a===0)return e;let s=0,o=e,l=e+r,u=n,h=n,c=n+a,p=0,f=0;for(;o>>s&255;if(s+=8,o+=s>>>5,s&=31,p|=(d&127)<28)throw Error(`FastPFOR VByte: unterminated value (expected MSB=1 terminator within 5 bytes; shift=${f}, partial=${p}, decoded=${h-u}/${a}, inPos=${o}, inEnd=${l})`)}if(h!==c)throw Error(`FastPFOR VByte: truncated stream (decoded=${h-u}, expected=${a}, consumedWords=${o-e}/${r}, vbyteStart=${e}, vbyteEnd=${l})`);return o}function p3(t,e,r){let i=0,n=0,a=new Uint32Array(e),s=r!=null?r:zy();if(t.length>0){let u=t[i]|0;if(i=i+1|0,u&255)throw Error(`FastPFOR decode: invalid alignedLength=${u} (expected multiple of 256)`);if(n+u>a.length)throw Error(`FastPFOR decode: output buffer too small (outPos=${n}, alignedLength=${u}, out.length=${a.length})`);i=h3(t,a,i,n,u,s),n=n+u|0}let o=t.length-i|0,l=e-n|0;return c3(t,i,o,a,n,l),a}function f3(t,e,r,i,n){switch(n){case 2:Cw(t,e,r,i);return;case 3:Mw(t,e,r,i);return;case 4:Bw(t,e,r,i);return;case 5:Pw(t,e,r,i);return;case 6:zw(t,e,r,i);return;case 7:Lw(t,e,r,i);return;case 8:Vw(t,e,r,i);return;case 9:Ow(t,e,r,i);return;case 10:Rw(t,e,r,i);return;case 11:$w(t,e,r,i);return;case 12:Nw(t,e,r,i);return;case 16:Uw(t,e,r,i);return;case 32:for(let u=0;u<32;u=u+1|0)r[i+u|0]=t[e+u|0]|0;return}let a=pl[n]>>>0,s=e,o=0,l=t[s]>>>0;for(let u=0;u<32;u++)if(o+n<=32){let h=l>>>o&a;r[i+u]=h|0,o+=n,o===32&&(o=0,s++,u!==31&&(l=t[s]>>>0))}else{let h=32-o,c=l>>>o;s++,l=t[s]>>>0;let p=pl[n-h]>>>0,f=(c|(l&p)<t.length)throw RangeError(`decodeBigEndianInt32sInto: out of bounds (offset=${e}, byteLength=${r}, bytes.length=${t.length})`);let n=Math.floor(r/4),a=r%4!=0,s=a?n+1:n;if(i.length0){let o=t.byteOffset+e;if(o&3)for(let l=0;l=64)throw Error("Varint too long")}return e.set(n),r}function m3(t,e,r){let i=new Float64Array(r);for(let n=0;n>4,n<128||(n=e[r.get()],r.increment(),i|=(n&127)<<3,n<128)||(n=e[r.get()],r.increment(),i|=(n&127)<<10,n<128)||(n=e[r.get()],r.increment(),i|=(n&127)<<17,n<128)||(n=e[r.get()],r.increment(),i|=(n&127)<<24,n<128)||(n=e[r.get()],r.increment(),i|=(n&1)<<31,n<128))return i*4294967296+(t>>>0);throw Error("Expected varint not more than 10 bytes")}function v3(t,e,r,i){return b3(t,e,r,i,t3(r>>>2))}function b3(t,e,r,i,n){let a=i.get();if(r&3)throw Error(`FastPFOR: invalid encodedByteLength=${r} at offset=${a} (encodedBytes.length=${t.length}; expected a multiple of 4 bytes for an int32 big-endian word stream)`);let s=r>>>2,o=e3(n,s);d3(t,a,r,o);let l=p3(o.subarray(0,s),e,n.decoderWorkspace);return i.add(r),l}function tt(t){return t>>>1^-(t&1)}function Ot(t){return t>>BigInt(1)^-(t&BigInt(1))}function He(t){return t%2==1?(t+1)/-2:t/2}function w3(t){let e=new Int32Array(t.length);for(let r=0;r=4)for(;i=4)for(;i=4)for(;r=4)for(let i=t[0];r=4)for(;i=4)for(;l>>0;for(let r=1;r>>0;return e}function hp(t){let e=new BigUint64Array(t.length);e[0]=BigInt.asUintN(64,Ot(t[0]));for(let r=1;r>>0,e[1]=tt(t[1])>>>0;for(let r=2;r>>0,e[r+1]=e[r-1]+tt(t[r+1])>>>0;return e}function L3(t,e,r,i){let n=Vy(t,e,r,i);return new Uint32Array(n)}function V3(t){return t[1]}function O3(t){return tt(t[1])}function R3(t){if(t.length===2){let e=tt(t[1]);return[e,e]}return[tt(t[2]),tt(t[3])]}function $3(t){return t[1]}function N3(t){return Ot(t[1])}function U3(t){if(t.length===2){let e=Ot(t[1]);return[e,e]}return[Ot(t[2]),Ot(t[3])]}var At;(function(t){t.PRESENT="PRESENT",t.DATA="DATA",t.OFFSET="OFFSET",t.LENGTH="LENGTH"})(At||(At={}));var qt;(function(t){t.NONE="NONE",t.SINGLE="SINGLE",t.SHARED="SHARED",t.VERTEX="VERTEX",t.MORTON="MORTON",t.FSST="FSST"})(qt||(qt={}));var be;(function(t){t.VERTEX="VERTEX",t.INDEX="INDEX",t.STRING="STRING",t.KEY="KEY"})(be||(be={}));var Ft;(function(t){t.VAR_BINARY="VAR_BINARY",t.GEOMETRIES="GEOMETRIES",t.PARTS="PARTS",t.RINGS="RINGS",t.TRIANGLES="TRIANGLES",t.SYMBOL="SYMBOL",t.DICTIONARY="DICTIONARY"})(Ft||(Ft={}));var q3=[At.PRESENT,At.DATA,At.OFFSET,At.LENGTH],cp=[Z.NONE,Z.DELTA,Z.COMPONENTWISE_DELTA,Z.RLE,Z.MORTON],j3=[re.NONE,re.FAST_PFOR,re.VARINT],G3=[qt.NONE,qt.SINGLE,qt.SHARED,qt.VERTEX,qt.MORTON,qt.FSST],X3=[be.VERTEX,be.INDEX,be.STRING,be.KEY],Y3=[Ft.VAR_BINARY,Ft.GEOMETRIES,Ft.PARTS,Ft.RINGS,Ft.TRIANGLES,Ft.SYMBOL,Ft.DICTIONARY];function ht(t,e){let r=H3(t,e);return r.logicalLevelTechnique1===Z.MORTON?W3(r,t,e):(Z.RLE===r.logicalLevelTechnique1||Z.RLE===r.logicalLevelTechnique2)&&re.NONE!==r.physicalLevelTechnique?Z3(r,t,e):r}function W3(t,e,r){let i=Rt(e,r,2);return{physicalStreamType:t.physicalStreamType,logicalStreamType:t.logicalStreamType,logicalLevelTechnique1:t.logicalLevelTechnique1,logicalLevelTechnique2:t.logicalLevelTechnique2,physicalLevelTechnique:t.physicalLevelTechnique,numValues:t.numValues,byteLength:t.byteLength,decompressedCount:t.decompressedCount,numBits:i[0],coordinateShift:i[1]}}function Z3(t,e,r){let i=Rt(e,r,2);return{physicalStreamType:t.physicalStreamType,logicalStreamType:t.logicalStreamType,logicalLevelTechnique1:t.logicalLevelTechnique1,logicalLevelTechnique2:t.logicalLevelTechnique2,physicalLevelTechnique:t.physicalLevelTechnique,numValues:t.numValues,byteLength:t.byteLength,decompressedCount:i[1],runs:i[0],numRleValues:i[1]}}function H3(t,e){let r=t[e.get()],i=q3[r>>4],n={};switch(i){case At.DATA:n={dictionaryType:G3[r&15]};break;case At.OFFSET:n={offsetType:X3[r&15]};break;case At.LENGTH:n={lengthType:Y3[r&15]}}e.increment();let a=t[e.get()],s=cp[a>>5],o=cp[a>>2&7],l=j3[a&3];e.increment();let u=Rt(t,e,2),h=u[0],c=u[1];return{physicalStreamType:i,logicalStreamType:n,logicalLevelTechnique1:s,logicalLevelTechnique2:o,physicalLevelTechnique:l,numValues:h,byteLength:c,decompressedCount:h}}var ut;(function(t){t[t.FLAT=0]="FLAT",t[t.CONST=1]="CONST",t[t.SEQUENCE=2]="SEQUENCE",t[t.DICTIONARY=3]="DICTIONARY",t[t.FSST_DICTIONARY=4]="FSST_DICTIONARY"})(ut||(ut={}));var de=class{constructor(t,e){this.values=t,this._size=e}get(t){let e=Math.floor(t/8),r=t%8;return(this.values[e]>>r&1)==1}set(t,e){let r=Math.floor(t/8),i=t%8;this.values[r]=this.values[r]|+!!e<>r&1}size(){return this._size}getBuffer(){return this.values}};function kr(t,e,r){if(!e)return t;let i=e.size(),n=t.constructor,a=new n(i),s=0;for(let o=0;o=s);){let o=t[i.increment()];if(o<=127){let l=o+3,u=t[i.increment()],h=Math.min(a+l,e);n.fill(u,a,h),a=h}else{let l=256-o;for(let u=0;u=12?e6.decode(t.subarray(e,r)):r6(t,e,r)}function r6(t,e,r){let i="",n=e;for(;n239?4:a>223?3:a>191?2:1;if(n+o>r)break;let l,u,h;o===1?a<128&&(s=a):o===2?(l=t[n+1],(l&192)==128&&(s=(a&31)<<6|l&63,s<=127&&(s=null))):o===3?(l=t[n+1],u=t[n+2],(l&192)==128&&(u&192)==128&&(s=(a&15)<<12|(l&63)<<6|u&63,(s<=2047||s>=55296&&s<=57343)&&(s=null))):o===4&&(l=t[n+1],u=t[n+2],h=t[n+3],(l&192)==128&&(u&192)==128&&(h&192)==128&&(s=(a&15)<<18|(l&63)<<12|(u&63)<<6|h&63,(s<=65535||s>=1114112)&&(s=null))),s===null?(s=65533,o=1):s>65535&&(s-=65536,i+=String.fromCharCode(s>>>10&1023|55296),s=56320|s&1023),i+=String.fromCharCode(s),n+=o}return i}function Ma(t,e,r,i,n){return o6(pi(t,e,r),r,i,n)}function Vt(t,e,r,i,n){return l6(pi(t,e,r),r,i,n)}function Ke(t,e,r){return h6(pi(t,e,r),r)}function pi(t,e,r){let i=r.physicalLevelTechnique;switch(i){case re.FAST_PFOR:return v3(t,r.numValues,r.byteLength,e);case re.VARINT:return Rt(t,e,r.numValues);case re.NONE:return Q3(t,e,r.numValues);default:throw Error(`Specified physicalLevelTechnique ${i} is not supported (yet).`)}}function Tn(t,e,r){let i=r.physicalLevelTechnique;switch(i){case re.VARINT:return Du(t,e,r.numValues);case re.NONE:return t6(t,e,r.numValues);default:throw Error(`Specified physicalLevelTechnique ${i} is not supported (yet).`)}}function i6(t,e,r){let i=pi(t,e,r);return i.length===1?tt(i[0]):O3(i)}function Su(t,e,r){let i=pi(t,e,r);return i.length===1?r.logicalLevelTechnique1===Z.DELTA?tt(i[0]):i[0]:V3(i)}function Ny(t,e,r){return R3(pi(t,e,r))}function Uy(t,e,r){return U3(Du(t,e,r.numValues))}function qy(t,e,r,i){return Gy(Tn(t,e,r),r,i)}function Eu(t,e,r,i){return Xy(Tn(t,e,r),r,i)}function n6(t,e,r,i){let n=a6(t,e,r,!1);return i?kr(n,i,0):n}function a6(t,e,r,i){if(r.physicalLevelTechnique===re.VARINT)return u6(m3(t,e,r.numValues),r,i);let n=Tn(t,e,r),a=i?Gy(n,r):Xy(n,r);return Float64Array.from(a,Number)}function s6(t,e,r){let i=Tn(t,e,r);return i.length===1?Ot(i[0]):N3(i)}function jy(t,e,r){let i=Tn(t,e,r);return i.length===1?r.logicalLevelTechnique1===Z.DELTA?Ot(i[0]):i[0]:$3(i)}function o6(t,e,r,i){let n;switch(e.logicalLevelTechnique1){case Z.DELTA:if(e.logicalLevelTechnique2===Z.RLE){let a=e;if(!i)return B3(t,a.runs,a.numRleValues);t=dl(t,a.runs,a.numRleValues),n=op(t)}else n=op(t);break;case Z.RLE:n=S3(t,e.runs,e.numRleValues);break;case Z.MORTON:_u(t),n=new Int32Array(t);break;case Z.COMPONENTWISE_DELTA:if(r&&!i)return Vy(t,r.scale,r.min,r.max);n=k3(t);break;case Z.NONE:n=w3(t);break;default:throw Error(`The specified Logical level technique is not supported: ${e.logicalLevelTechnique1}`)}return i?kr(n,i,0):n}function l6(t,e,r,i){let n;switch(e.logicalLevelTechnique1){case Z.DELTA:if(e.logicalLevelTechnique2===Z.RLE){let a=e;n=up(dl(t,a.runs,a.numRleValues))}else n=up(t);break;case Z.RLE:n=dl(t,e.runs,e.numRleValues);break;case Z.MORTON:_u(t),n=t;break;case Z.COMPONENTWISE_DELTA:n=r&&!i?L3(t,r.scale,r.min,r.max):z3(t);break;case Z.NONE:n=t;break;default:throw Error(`The specified Logical level technique is not supported: ${e.logicalLevelTechnique1}`)}return i?kr(n,i,0):n}function Gy(t,e,r){let i;switch(e.logicalLevelTechnique1){case Z.DELTA:if(e.logicalLevelTechnique2===Z.RLE){let n=e;if(!r)return P3(t,n.runs,n.numRleValues);t=yl(t,n.runs,n.numRleValues),i=lp(t)}else i=lp(t);break;case Z.RLE:i=E3(t,e.runs,e.numRleValues);break;case Z.NONE:i=D3(t);break;default:throw Error(`The specified Logical level technique is not supported: ${e.logicalLevelTechnique1}`)}return r?kr(i,r,BigInt(0)):i}function Xy(t,e,r){let i;switch(e.logicalLevelTechnique1){case Z.DELTA:if(e.logicalLevelTechnique2===Z.RLE){let n=e;i=hp(yl(t,n.runs,n.numRleValues))}else i=hp(t);break;case Z.RLE:i=yl(t,e.runs,e.numRleValues);break;case Z.NONE:i=t;break;default:throw Error(`The specified Logical level technique is not supported: ${e.logicalLevelTechnique1}`)}return r?kr(i,r,BigInt(0)):i}function u6(t,e,r){switch(e.logicalLevelTechnique1){case Z.DELTA:if(e.logicalLevelTechnique2===Z.RLE){let i=e;t=Ly(t,i.runs,i.numRleValues)}return A3(t),t;case Z.RLE:return p6(t,e,r);case Z.NONE:return r&&_3(t),t;default:throw Error(`The specified Logical level technique is not supported: ${e.logicalLevelTechnique1}`)}}function h6(t,e){if(e.logicalLevelTechnique1===Z.DELTA&&e.logicalLevelTechnique2===Z.NONE)return I3(t);if(e.logicalLevelTechnique1===Z.RLE&&e.logicalLevelTechnique2===Z.NONE){let r=e;return M3(t,r.runs,r.numRleValues)}if(e.logicalLevelTechnique1===Z.NONE&&e.logicalLevelTechnique2===Z.NONE){T3(t);let r=new Uint32Array(e.numValues+1);return r[0]=0,r.set(t,1),r}if(e.logicalLevelTechnique1===Z.DELTA&&e.logicalLevelTechnique2===Z.RLE){let r=e,i=C3(t,r.runs,r.numRleValues);return _u(i),new Uint32Array(i)}throw Error("Only delta encoding is supported for transforming length to offset streams yet.")}function rs(t,e,r,i,n="int32"){let a=t.logicalLevelTechnique1;if(a===Z.RLE)return t.runs===1?ut.CONST:ut.FLAT;if(a!==Z.DELTA||t.logicalLevelTechnique2!==Z.RLE)return t.numValues===1?ut.CONST:ut.FLAT;let s=e instanceof de?e.size():e,o=t;if(o.numRleValues!==s)return ut.FLAT;if(o.runs===1)return ut.SEQUENCE;if(o.runs!==2)return t.numValues===1?ut.CONST:ut.FLAT;let l=i.get();if(t.physicalLevelTechnique===re.VARINT)return c6(r,i,n)?ut.SEQUENCE:t.numValues===1?ut.CONST:ut.FLAT;let u=i.get(),h=new Int32Array(r.buffer,r.byteOffset+u,4);return i.set(l),h[2]===2&&h[3]===2?ut.SEQUENCE:t.numValues===1?ut.CONST:ut.FLAT}function c6(t,e,r){let i=new By(e.get());if(r==="int64"){let a=Du(t,i,4);return a[2]===BigInt(2)&&a[3]===BigInt(2)}let n=Rt(t,i,4);return n[2]===2&&n[3]===2}function p6(t,e,r){return r?F3(t,e.runs,e.numRleValues):Ly(t,e.runs,e.numRleValues)}var Yy=class extends es{getValueFromBuffer(t){return this.dataBuffer[t]}},Wy=class extends Cy{constructor(t,e,r,i,n){super(t,n?BigInt64Array.of(e):BigUint64Array.of(e),r,i)}getValueFromBuffer(t){return this.dataBuffer[0]+BigInt(t)*this.delta}};function Fu(t,e,r){return{x:pp(t,e)-r,y:pp(t>>1,e)-r}}function pp(t,e){let r=0;for(let i=0;i>i;return r}var Pt;(function(t){t[t.POINT=0]="POINT",t[t.LINESTRING=1]="LINESTRING",t[t.POLYGON=2]="POLYGON",t[t.MULTIPOINT=3]="MULTIPOINT",t[t.MULTILINESTRING=4]="MULTILINESTRING",t[t.MULTIPOLYGON=5]="MULTIPOLYGON"})(Pt||(Pt={}));var fp;(function(t){t[t.POINT=0]="POINT",t[t.LINESTRING=1]="LINESTRING",t[t.POLYGON=2]="POLYGON"})(fp||(fp={}));var nr;(function(t){t[t.MORTON=0]="MORTON",t[t.VEC_2=1]="VEC_2",t[t.VEC_3=2]="VEC_3"})(nr||(nr={}));function f6(t){let e=Array(t.numGeometries),r=1,i=1,n=1,a=0,s=0,o=0,l=t.mortonSettings,u=t.topologyVector,h=u.geometryOffsets,c=u.partOffsets,p=u.ringOffsets,f=t.vertexOffsets,d=!f||f.length===0,y=t.containsPolygonGeometry(),m=t.vertexBuffer;for(let g=0;g[w]),r+=v,i+=v}break;case Pt.LINESTRING:{let v;y?(v=p[i]-p[i-1],i++):v=c[r]-c[r-1],r++;let b;d?(b=Or(m,s,v,!1),s+=v*2):(b=pr(t.vertexBufferType,m,f,o,v,!1,l),o+=v),e[a++]=[b],h&&n++}break;case Pt.POLYGON:{let v=c[r]-c[r-1];r++;let b=Array(v-1),w,_=p[i]-p[i-1];if(i++,d){w=Or(m,s,_,!0),s+=_*2;for(let A=0;Ar?e[a++]:1);return i}function mp(t,e,r,i){let n=new Uint32Array(e[e.length-1]+1),a=0;n[0]=a;let s=1,o=0;for(let l=0;l0;)n[a++]=t[u++]}}return n}var e1=class extends Tu{constructor(t,e,r,i,n,a,s,o){super(t,r,i,s!=null?s:e.length),this.indexBuffer=e,this.symbolOffsetBuffer=n,this.symbolTableBuffer=a,this.sharedDictionaryCache=o}getValueFromBuffer(t){var n,a,s;(s=this.decodedDictionary)!=null||(this.decodedDictionary=(n=this.sharedDictionaryCache)==null?void 0:n.decodedDictionary,(a=this.decodedDictionary)!=null||(this.decodedDictionary=this.decodeDictionary(),this.sharedDictionaryCache&&(this.sharedDictionaryCache.decodedDictionary=this.decodedDictionary)));let e=this.indexBuffer[t],r=this.offsetBuffer[e],i=this.offsetBuffer[e+1];return Au(this.decodedDictionary,r,i)}decodeDictionary(){var t;return(t=this.symbolLengthBuffer)!=null||(this.symbolLengthBuffer=this.offsetToLengthBuffer(this.symbolOffsetBuffer)),F6(this.symbolTableBuffer,this.symbolLengthBuffer,this.dataBuffer)}offsetToLengthBuffer(t){let e=new Uint32Array(t.length-1),r=t[0];for(let i=1;i1&&!f.nullable||d===1&&f.nullable)throw Error(`The number of streams for the child field ${f.name} does not match its nullability. nullibilty: ${f.nullable}, numStreams: ${d}`);let m;if(f.nullable){let x=ht(t,e);m=new de(ci(t,x.numValues,x.byteLength,e),x.numValues)}let g=Vt(t,e,ht(t,e),void 0,m);if(o){if(!s)throw Error(`Incomplete shared FSST dictionary for column "${y}"`);h[p++]=new e1(y,g,n,a,s,o,m,c)}else h[p++]=new Qr(y,g,n,a,m)}return h}var xp=class extends Tr{constructor(t,e,r){super(t,new Uint8Array,r!=null?r:e.length),this.values=e}getValueFromBuffer(t){return this.values[t]}},we;(function(t){t[t.STRING=1]="STRING",t[t.INT32=2]="INT32",t[t.UINT32=4]="UINT32",t[t.INT64=8]="INT64",t[t.UINT64=16]="UINT64",t[t.FLOAT=32]="FLOAT",t[t.DOUBLE=64]="DOUBLE",t[t.PRESENCE=128]="PRESENCE"})(we||(we={}));var tr;(function(t){t[t.FALSE=0]="FALSE",t[t.TRUE=1]="TRUE",t[t.START_MAP=2]="START_MAP",t[t.START_LIST=3]="START_LIST",t[t.COUNT=4]="COUNT"})(tr||(tr={}));function M6(t,e,r,i){let n=B6(r);if(i===0)return n.map(h=>new xp(h,[]));let a=P6(t,e,i),s=(a.presentStream?a.presentCount:a.lengthStream.length)/n.length,o=[],l=0,u=0;for(let h=0;h{var i;return t.name+((i=r.name)!=null?i:"")})}function P6(t,e,r){let i=t[e.get()];e.add(1);let n=Vt(t,e,ht(t,e)),a=r-1,s=[];i&we.STRING&&(a-=z6(t,e,s)),a-=L6(t,e,i,s),a-=V6(t,e,i,s);let o,l=0;if(i&we.PRESENCE){let h=O6(t,e);o=h.value,l=h.count,a--}let u=new Uint32Array;if(a>0&&(u=Vt(t,e,ht(t,e)),a--),a!==0)throw Error(`Unexpected number of remaining streams while decoding map column: ${a}`);return{lengthStream:n,dictionary:s,presentStream:o,presentCount:l,flattenedValues:u}}function z6(t,e,r){let i=t[e.get()];e.add(1);let n=r1("",t,e,i);if(n)for(let a=0;aa.length)throw Error("Merged map counts underflow while decoding child streams");let f=Array(r),d=i,y=n;for(let x=0;xs.length)throw Error("Map value stream underflow while decoding feature payload");let b=$6(s,y,v,l);f[x]=b.value,y=b.nextIndex}let m=0;for(let x=i;x=r)throw Error("Unexpected end of map value stream");let n=t[e];if(n===tr.FALSE)return{value:!1,nextIndex:e+1};if(n===tr.TRUE)return{value:!0,nextIndex:e+1};if(n===tr.START_MAP){let a=vp(t,e,r);return{value:i1(t,e+2,a,i).value,nextIndex:a}}if(n===tr.START_LIST){let a=vp(t,e,r),s=[],o=e+2;for(;o=r)throw Error("Missing length for nested map/list payload");let i=t[e+1];if(i<2)throw Error(`Invalid nested payload length: ${i}`);let n=e+i;if(n>r)throw Error("Nested payload exceeds containing payload bounds");return n}function n1(t,e){let r=t-tr.COUNT;if(r<0||r>=e.length)throw Error(`Scalar dictionary index out of range: ${t}`);return e[r]}function Xr(t,e){for(let r of e)t.push(r)}function N6(t,e,r,i,n,a){var s;return r.type==="scalarType"?a&&!a.has(r.name)?(Oy(i,t,e),null):U6(i,t,e,n,r.scalarType,r):((s=r.complexType)==null?void 0:s.physicalType)===rr.MAP?M6(t,e,r,i):i===0?null:C6(t,e,r,a)}function U6(t,e,r,i,n,a){var l;let s;if(t===0)return null;if(a.nullable){let u=ht(e,r),h=u.numValues,c=r.get(),p=ci(e,h,u.byteLength,r);r.set(c+u.byteLength),s=new de(p,u.numValues)}let o=s!=null?s:i;switch(n.physicalType){case rt.UINT_32:case rt.INT_32:return Y6(e,r,a,n,o);case rt.STRING:{let u=a.nullable?t-1:t;return(l=r1(a.name,e,r,u,s))!=null?l:null}case rt.BOOLEAN:return q6(e,r,a,i,o);case rt.UINT_64:case rt.INT_64:return X6(e,r,a,o,n);case rt.FLOAT:return j6(e,r,a,o);case rt.DOUBLE:return G6(e,r,a,o);default:throw Error(`The specified data type for the field is currently not supported: ${n}`)}}function q6(t,e,r,i,n){let a=ht(t,e),s=a.numValues,o=e.get(),l=kn(n)?n:void 0,u=ci(t,s,a.byteLength,e,l);e.set(o+a.byteLength);let h=new de(u,s);return new A6(r.name,h,n)}function j6(t,e,r,i){let n=ht(t,e),a=kn(i)?i:void 0,s=Ry(t,e,n.numValues,a);return new S6(r.name,s,i)}function G6(t,e,r,i){let n=ht(t,e),a=kn(i)?i:void 0,s=$y(t,e,n.numValues,a);return new mu(r.name,s,i)}function X6(t,e,r,i,n){let a=ht(t,e),s=rs(a,i,t,e,"int64"),o=n.physicalType===rt.INT_64;if(s===ut.FLAT){let u=kn(i)?i:void 0,h=o?qy(t,e,a,u):Eu(t,e,a,u);return new Yy(r.name,h,i)}if(s===ut.SEQUENCE){let u=Uy(t,e,a);return new Wy(r.name,u[0],u[1],a.numRleValues,o)}let l=o?s6(t,e,a):jy(t,e,a);return new t1(r.name,l,i,o)}function Y6(t,e,r,i,n){let a=ht(t,e),s=rs(a,n,t,e),o=i.physicalType===rt.INT_32;if(s===ut.FLAT){let u=kn(n)?n:void 0,h=o?Ma(t,e,a,void 0,u):Vt(t,e,a,void 0,u);return new yu(r.name,h,n)}if(s===ut.SEQUENCE){let u=Ny(t,e,a);return new gu(r.name,u[0],u[1],a.numRleValues,o)}let l=o?i6(t,e,a):Su(t,e,a);return new xu(r.name,l,n,o)}function kn(t){return t instanceof de}var It={ID:0,ID_NULLABLE:1,ID_LONG:2,GEOMETRY:4,SCALAR_BASE:10,STRUCT:30,MAP:31};function a1(t){switch(t){case It.ID:case It.ID|It.ID_NULLABLE:case It.ID|It.ID_LONG:case It.ID|It.ID_LONG|It.ID_NULLABLE:return{nullable:(t&It.ID_NULLABLE)!==0,columnScope:Xi.FEATURE,type:"scalarType",scalarType:{longID:(t&It.ID_LONG)!==0,type:"logicalType",logicalType:My.ID}};case It.GEOMETRY:return{nullable:!1,columnScope:Xi.FEATURE,type:"complexType",complexType:{type:"physicalType",physicalType:rr.GEOMETRY,children:[]}};case It.STRUCT:return{nullable:!1,columnScope:Xi.FEATURE,type:"complexType",complexType:{type:"physicalType",physicalType:rr.STRUCT,children:[]}};case It.MAP:return{nullable:!0,columnScope:Xi.FEATURE,type:"complexType",complexType:{type:"physicalType",physicalType:rr.MAP,children:[]}};default:return J6(t)}}function W6(t){return t>=It.SCALAR_BASE}function s1(t){return t===It.STRUCT||t===It.MAP}function Z6(t){if(t.type==="scalarType"){let e=t.scalarType;if(e.type==="physicalType")switch(e.physicalType){case rt.BOOLEAN:case rt.INT_8:case rt.UINT_8:case rt.INT_32:case rt.UINT_32:case rt.INT_64:case rt.UINT_64:case rt.FLOAT:case rt.DOUBLE:return!1;case rt.STRING:return!0;default:return!1}if(e.type==="logicalType")return!1}else if(t.type==="complexType"){let e=t.complexType;if(e.type==="physicalType")switch(e.physicalType){case rr.GEOMETRY:case rr.STRUCT:case rr.MAP:return!0;default:return!1}}return console.warn("Unexpected column type in hasStreamCount",t),!1}function H6(t){var e;return t.type==="scalarType"&&((e=t.scalarType)==null?void 0:e.type)==="logicalType"&&t.scalarType.logicalType===My.ID}function K6(t){var e;return t.type==="complexType"&&((e=t.complexType)==null?void 0:e.type)==="physicalType"&&t.complexType.physicalType===rr.GEOMETRY}function J6(t){let e;switch(t){case 10:case 11:e=rt.BOOLEAN;break;case 12:case 13:e=rt.INT_8;break;case 14:case 15:e=rt.UINT_8;break;case 16:case 17:e=rt.INT_32;break;case 18:case 19:e=rt.UINT_32;break;case 20:case 21:e=rt.INT_64;break;case 22:case 23:e=rt.UINT_64;break;case 24:case 25:e=rt.FLOAT;break;case 26:case 27:e=rt.DOUBLE;break;case 28:case 29:e=rt.STRING;break;default:return null}return{nullable:!!(t&1),columnScope:Xi.FEATURE,type:"scalarType",scalarType:{longID:!1,type:"physicalType",physicalType:e}}}var Q6=new TextDecoder,bp="0-3(ID), 4(GEOMETRY), 10-29(scalars), 30(STRUCT), 31(MAP)";function Iu(t,e){let r=Rt(t,e,1)[0];if(r===0)return"";let i=e.get(),n=i+r,a=t.subarray(i,n);return e.add(r),Q6.decode(a)}function t5(t){let e=t.name,r=t.nullable;return t.type==="scalarType"?{type:"scalarField",scalarField:t.scalarType,name:e,nullable:r}:{type:"complexField",complexField:t.complexType,name:e,nullable:r}}function o1(t,e){let r=Rt(t,e,1)[0]>>>0,i=r>=It.SCALAR_BASE?a1(r):null;if(!i)throw Error(`Unsupported field type code ${r}. Supported: 10-29(scalars), 30(STRUCT), 31(MAP)`);let n=Si(Xe({},i),{name:Iu(t,e)});if(n.type==="complexType"&&s1(r)){let a=n.complexType,s=Rt(t,e,1)[0]>>>0;a.children=Array(s);for(let o=0;o>>0,i=a1(r);if(!i)throw Error(`Unsupported column type code ${r}. Supported: ${bp}`);let n;if(W6(r))n=Iu(t,e);else if(r>>0,o=a.complexType;o.children=Array(s);for(let l=0;l>>0,a=Rt(t,e,1)[0]>>>0;i.columns=Array(a);for(let s=0;s>>0,s=i.get()+a;if(s>t.length)throw Error(`Block overruns tile: ${s} > ${t.length}`);let o=Rt(t,i,1)[0]>>>0;if(o!==1&&o!==2){i.set(s);continue}let[l,u]=r5(t,i),h=l.featureTables[0],c=null,p=null,f=[],d=0;for(let m of h.columns){let g=m.name;if(H6(m)){let x=null;if(m.nullable){let b=ht(t,i),w=i.get(),_=ci(t,b.numValues,b.byteLength,i);i.set(w+b.byteLength),x=new de(_,b.numValues)}let v=ht(t,i);d=x?x.size():v.decompressedCount,c=n5(t,m,i,g,v,x!=null?x:d,r)}else if(K6(m)){let x=Rt(t,i,1)[0];if(d===0){let v=i.get();d=ht(t,i).decompressedCount,i.set(v)}e&&(e.scale=e.extent/u),p=w6(t,x,i,d,e)}else{let x=Z6(m)?Rt(t,i,1)[0]:1;if(x===0)continue;let v=N6(t,i,m,x,d,void 0);if(v)if(Array.isArray(v))for(let b of v)f.push(b);else f.push(v)}}let y=new Tw(h.name,p,c,f,u);n.push(y),i.set(s)}return n}function n5(t,e,r,i,n,a,s=!1){var h;let o=(h=e.scalarType)!=null&&h.longID?rt.UINT_64:rt.UINT_32,l=typeof a=="number"?void 0:a,u=rs(n,a,t,r,o===rt.UINT_64?"int64":"int32");if(o===rt.UINT_32)switch(u){case ut.FLAT:return new yu(i,Vt(t,r,n,void 0,l),a);case ut.SEQUENCE:{let c=Ny(t,r,n);return new gu(i,c[0],c[1],n.numRleValues,!1)}case ut.CONST:return new xu(i,Su(t,r,n),a,!1)}switch(u){case ut.FLAT:return s?new mu(i,n6(t,r,n,l),a):new Yy(i,Eu(t,r,n,l),a);case ut.SEQUENCE:{let c=Uy(t,r,n);return new Wy(i,c[0],c[1],n.numRleValues,!1)}case ut.CONST:return new t1(i,jy(t,r,n),a,!1)}throw Error("Vector type not supported for id column.")}var Qs=Py(bu);Qs/32*4,3*Qs/256+Qs|0;var a5=class{constructor(t,e){var r;switch(this._featureData=t,this.properties=this._featureData.properties||{},(r=this._featureData.geometry)==null?void 0:r.type){case Pt.POINT:case Pt.MULTIPOINT:this.type=1;break;case Pt.LINESTRING:case Pt.MULTILINESTRING:this.type=2;break;case Pt.POLYGON:case Pt.MULTIPOLYGON:this.type=3;break;default:this.type=0}this.extent=e,this.id=Number(this._featureData.id)}loadGeometry(){let t=[];for(let e of this._featureData.geometry.coordinates){let r=[];for(let i of e)r.push(new M(i.x,i.y));t.push(r)}return t}},s5=class{constructor(t){this.features=[],this.featureTable=t,this.name=t.name,this.extent=t.extent,this.version=2,this.features=t.getFeatures(),this.length=this.features.length}feature(t){return new a5(this.features[t],this.extent)}},Cu=class{constructor(t){this.layers={};let e=i5(new Uint8Array(t));this.layers=e.reduce((r,i)=>Si(Xe({},r),{[i.name]:new s5(i)}),{})}},Mu=class{constructor(t,e){this.tileID=t,this.x=t.canonical.x,this.y=t.canonical.y,this.z=t.canonical.z,this.grid=new fo(gt,16,0),this.grid3D=new fo(gt,16,0),this.featureIndexArray=new dd,this.promoteId=e}insert(t,e,r,i,n,a){let s=this.featureIndexArray.length;this.featureIndexArray.emplaceBack(r,i,n);let o=a?this.grid3D:this.grid;for(let l of e){let u=[1/0,1/0,-1/0,-1/0];for(let h of l)u[0]=Math.min(u[0],h.x),u[1]=Math.min(u[1],h.y),u[2]=Math.max(u[2],h.x),u[3]=Math.max(u[3],h.y);u[0]<8192&&u[1]<8192&&u[2]>=0&&u[3]>=0&&o.insert(s,u[0],u[1],u[2],u[3])}}loadVTLayers(){return this.vtLayers||(this.encoding==="mlt"?this.vtLayers=new Cu(this.rawTileData).layers:this.vtLayers=new Zl(new lu(this.rawTileData)).layers,this.sourceLayerCoder=new du(this.vtLayers?Object.keys(this.vtLayers).sort():[cl])),this.vtLayers}query(t,e,r,i){this.loadVTLayers();let n=t.params,a=gt/t.tileSize/t.scale,s=ai(n.filter,"queryRenderedFeatures filter",n.globalState),o=t.queryGeometry,l=t.queryPadding*a,u=Ia.fromPoints(o),h=this.grid.query(u.minX-l,u.minY-l,u.maxX+l,u.maxY+l),c=Ia.fromPoints(t.cameraQueryGeometry).expandBy(l),p=this.grid3D.query(c.minX,c.minY,c.maxX,c.maxY,(y,m,g,x)=>Rg(t.cameraQueryGeometry,y-l,m-l,g+l,x+l));for(let y of p)h.push(y);h.sort(l5);let f={},d;for(let y of h){if(y===d)continue;d=y;let m=this.featureIndexArray.get(y),g=null;this.loadMatchingFeature(f,m.bucketIndex,m.sourceLayerIndex,m.featureIndex,s,n.layers,n.availableImages,e,r,i,(x,v,b)=>(g||(g=Fr(x)),v.queryIntersectsFeature({queryGeometry:o,feature:x,featureState:b,geometry:g,zoom:this.z,transform:t.transform,pixelsToTileUnits:a,pixelPosMatrix:t.pixelPosMatrix,unwrappedTileID:this.tileID.toUnwrapped(),getElevation:t.getElevation})))}return f}loadMatchingFeature(t,e,r,i,n,a,s,o,l,u,h){let c=this.bucketLayerIDs[e];if(a&&!c.some(y=>a.has(y)))return;let p=this.sourceLayerCoder.decode(r),f=this.vtLayers[p].feature(i);if(n.needGeometry){let y=hi(f,!0);if(!n.filter(new st(this.tileID.overscaledZ),y,this.tileID.canonical))return}else if(!n.filter(new st(this.tileID.overscaledZ),f))return;let d=this.getId(f,p);for(let y of c){if(a&&!a.has(y))continue;let m=o[y];if(!m)continue;let g={};d&&u&&(g=u.getState(m.sourceLayer||"_geojsonTileLayer",d));let x=Xt({},l[y]);x.paint=wp(x.paint,m.paint,f,g,s),x.layout=wp(x.layout,m.layout,f,g,s);let v=!h||h(f,m,g);if(!v)continue;let b=new Fw(f,this.z,this.x,this.y,d);b.layer=x;let w=t[y];w===void 0&&(w=t[y]=[]),w.push({featureIndex:i,feature:b,intersectionZ:v})}}lookupSymbolFeatures(t,e,r,i,n,a,s,o){let l={};this.loadVTLayers();let u=ai(n.filterSpec,"queryRenderedFeatures symbol filter",n.globalState);for(let h of t)this.loadMatchingFeature(l,r,i,h,u,a,s,o,e);return l}hasLayer(t){for(let e of this.bucketLayerIDs)for(let r of e)if(t===r)return!0;return!1}getId(t,e){var i;let r=t.id;if(this.promoteId){let n=typeof this.promoteId=="string"?this.promoteId:this.promoteId[e];r=t.properties[n],typeof r=="boolean"&&(r=Number(r)),r===void 0&&((i=t.properties)!=null&&i.cluster)&&this.promoteId&&(r=Number(t.properties.cluster_id))}return r}};C("FeatureIndex",Mu,{omit:["rawTileData","sourceLayerCoder"]});function o5(t){return typeof t=="object"&&!!t&&"evaluate"in t}function wp(t,e,r,i,n){return xn(t,(a,s)=>{let o=e instanceof Wa?e.get(s):null;return o5(o)?o.evaluate(r,i,void 0,n):o})}function l5(t,e){return e-t}var l1=class{constructor(t){this.maxEntries=t,this.map=new Map}get(t){let e=this.map.get(t);return e!==void 0&&(this.map.delete(t),this.map.set(t,e)),e}set(t,e){if(this.map.has(t))this.map.delete(t);else if(this.map.size>=this.maxEntries){let r=this.map.keys().next().value;this.map.delete(r)}this.map.set(t,e)}clear(){this.map.clear()}};function Bu(t){let e=typeof t;if(e==="number"||e==="boolean"||e==="string"||t==null)return JSON.stringify(t);if(Array.isArray(t)){let n="[";for(let a of t)n+=`${Bu(a)},`;return`${n}]`}let r=Object.keys(t).sort(),i="{";for(let n=0;nthis._layers[c.id]),s=a[0];if(s.isHidden())continue;let o=s.source||"",l=this.familiesBySource[o];l||(l=this.familiesBySource[o]={});let u=s.sourceLayer||"_geojsonTileLayer",h=l[u];h||(h=l[u]=[]),h.push(a)}}},c1=class{constructor(t){let e={},r=[];for(let s in t){let o=e[s]={};for(let l in t[s]){let u=t[s][l];o[l]={};for(let h in u){let c=u[h];if(!c||c.bitmap.width===0||c.bitmap.height===0)continue;let p={x:0,y:0,w:c.bitmap.width+2,h:c.bitmap.height+2};r.push(p),o[l][h]={rect:p,metrics:c.metrics}}}}let{w:i,h:n}=uu(r),a=new Qa({width:i||1,height:n||1});for(let s in t)for(let o in t[s]){let l=t[s][o];for(let u in l){let h=l[u];if(!h||h.bitmap.width===0||h.bitmap.height===0)continue;let c=e[s][o][u].rect;Qa.copy(h.bitmap,a,{x:0,y:0},{x:c.x+1,y:c.y+1},h.bitmap)}}this.image=a,this.positions=e}};C("GlyphAtlas",c1);var p1=class{constructor(t){this.tileID=new pu(t.tileID.overscaledZ,t.tileID.wrap,t.tileID.canonical.z,t.tileID.canonical.x,t.tileID.canonical.y),this.uid=t.uid,this.zoom=t.zoom,this.pixelRatio=t.pixelRatio,this.tileSize=t.tileSize,this.source=t.source,this.overscaling=this.tileID.overscaleFactor(),this.showCollisionBoxes=t.showCollisionBoxes,this.collectResourceTiming=!!t.collectResourceTiming,this.returnDependencies=!!t.returnDependencies,this.promoteId=t.promoteId,this.inFlightDependencies=[]}parse(t,e,r,i,n){return et(this,null,function*(){this.data=t,this.collisionBoxArray=new Rl;let a=new du(Object.keys(t.layers).sort()),s=new Mu(this.tileID,this.promoteId);s.bucketLayerIDs=[];let o={},l={featureIndex:s,iconDependencies:{},patternDependencies:{},glyphDependencies:{},dashDependencies:{},availableImages:r,subdivisionGranularity:n},u=e.familiesBySource[this.source];for(let S in u){let T=t.layers[S];if(!T)continue;T.version===1&&Mt(`Vector tile source "${this.source}" layer "${S}" does not use vector tile spec v2 and therefore may have some rendering errors.`);let L=a.encode(S),O=[];for(let B=0;BF.id)))}}let h=xn(l.glyphDependencies,S=>xn(S,T=>Object.keys(T)));for(let S of this.inFlightDependencies)S==null||S.abort();this.inFlightDependencies=[];let c=Promise.resolve({});if(Object.keys(h).length){let S=new AbortController;this.inFlightDependencies.push(S),c=i.sendAsync({type:"GG",data:{stacks:h,source:this.source,tileID:this.tileID,type:"glyphs"}},S)}let p=Object.keys(l.iconDependencies),f=Promise.resolve({});if(p.length){let S=new AbortController;this.inFlightDependencies.push(S),f=i.sendAsync({type:"GI",data:{icons:p,source:this.source,tileID:this.tileID,type:"icons"}},S)}let d=Object.keys(l.patternDependencies),y=Promise.resolve({});if(d.length){let S=new AbortController;this.inFlightDependencies.push(S),y=i.sendAsync({type:"GI",data:{icons:d,source:this.source,tileID:this.tileID,type:"patterns"}},S)}let m=l.dashDependencies,g=Promise.resolve({});if(Object.keys(m).length){let S=new AbortController;this.inFlightDependencies.push(S),g=i.sendAsync({type:"GDA",data:{dashes:m}},S)}let[x,v,b,w]=yield Promise.all([c,f,y,g]),_=new c1(x),A=new hu(v,b);for(let S in o){let T=o[S];T.hasDependencies&&(u1(T.layers,this.zoom,r),T.addFeatures({options:l,canonical:this.tileID.canonical,glyphMap:x,glyphPositions:_.positions,iconMap:v,iconPositions:A.iconPositions,patternMap:b,patternPositions:A.patternPositions,dashPositions:w,showCollisionBoxes:this.showCollisionBoxes}))}return{buckets:Object.values(o).filter(S=>!S.isEmpty()),featureIndex:s,collisionBoxArray:this.collisionBoxArray,glyphAtlasImage:_.image,imageAtlas:A,dashPositions:w,glyphMap:this.returnDependencies?x:null,iconMap:this.returnDependencies?v:null,glyphPositions:this.returnDependencies?_.positions:null}})}};function u1(t,e,r){let i=new st(e);for(let n of t)n.recalculate(i,r)}var f1=class{constructor(){this.loading={},this.loaded={},this.parsing={}}startLoading(t,e){this.loading[t]=e}finishLoading(t){delete this.loading[t]}abort(t){let e=this.loading[t];e!=null&&e.abort&&(e.abort.abort(),delete this.loading[t])}getParsing(t){return this.parsing[t]}setParsing(t,e){this.parsing[t]=e}removeParsing(t){delete this.parsing[t]}markLoaded(t,e){this.loaded[t]=e}getLoaded(t){let e=this.loaded[t];if(e)return e}removeLoaded(t){delete this.loaded[t]}clearLoaded(){this.loaded={}}},d1=class{constructor(t){this.start=`${t}#start`,this.end=`${t}#end`,this.measure=t,performance.mark(this.start)}finish(){performance.mark(this.end);let t=performance.getEntriesByName(this.measure);return t.length===0&&(performance.measure(this.measure,this.start,this.end),t=performance.getEntriesByName(this.measure),performance.clearMarks(this.start),performance.clearMarks(this.end),performance.clearMeasures(this.measure)),t}},p5=class{constructor(t,e,r,i,n){this.type=t,this.properties=r||{},this.extent=n,this.pointsArray=e,this.id=i}loadGeometry(){return this.pointsArray.map(t=>t.map(e=>new M(e.x,e.y)))}},f5=class{constructor(t,e,r){this.version=2,this._myFeatures=t,this.name=e,this.length=t.length,this.extent=r}feature(t){return this._myFeatures[t]}},d5=class{constructor(){this.layers={}}addLayer(t){this.layers[t.name]=t}};function y5(t,e,r){let{extent:i}=t,n=2**(r.z-e.z),a=(r.x-e.x*n)*i,s=(r.y-e.y*n)*i,o=[];for(let l=0;l0&&l.addLayer(d)}let h={vectorTile:l,rawData:fu(l).buffer};return this.overzoomedTileResultCache.set(s,h),h}reloadTile(t){return et(this,null,function*(){let e=t.uid,r=this.tileState.getLoaded(e);if(!r)throw Error("Should not be trying to reload a tile that was never loaded or has been removed");if(r.vectorTile)return r.showCollisionBoxes=t.showCollisionBoxes,yield this._parseWorkerTile(r,t)})}abortTile(t){return et(this,null,function*(){this.tileState.abort(t.uid)})}removeTile(t){return et(this,null,function*(){this.tileState.removeLoaded(t.uid)})}},g5=class{constructor(){this.loaded={}}loadTile(t){return et(this,null,function*(){let{uid:e,encoding:r,rawImageData:i,redFactor:n,greenFactor:a,blueFactor:s,baseShift:o}=t,l=i.width+4,u=i.height+4,h=Ba(i)?new Ht({width:l,height:u},yield Ep(i,-2,-2,l,u)):i,c=new Yl(e,h,r,n,a,s,o);return this.loaded||(this.loaded={}),this.loaded[e]=c,c})}removeTile(t){let e=this.loaded,r=t.uid;e!=null&&e[r]&&delete e[r]}},x5=class{constructor(t,e,r,i=v5){this.actor=t,this.layerIndex=e,this.availableImages=r,this.tileState=new f1,this._createGeoJSONIndex=i}loadVectorTile(t){if(!this._geoJSONIndex)throw Error("Unable to parse the data into a cluster or geojson");let{z:e,x:r,y:i}=t.tileID.canonical,n=this._geoJSONIndex.getTile(e,r,i);if(!n)return null;let a=new Iy(n.features,{version:2,extent:gt});return{vectorTile:a,rawData:fu(a,Sp).buffer}}loadTile(t){return et(this,null,function*(){let{uid:e}=t,r=new p1(t);r.abort=new AbortController;try{let i=this.loadVectorTile(t);if(!i)return null;let{vectorTile:n,rawData:a}=i;r.vectorTile=n,this.tileState.markLoaded(e,r);let s={rawData:a};return this.tileState.setParsing(e,s),yield this._parseWorkerTile(r,t)}catch(i){throw this.tileState.markLoaded(e,r),i}})}_parseWorkerTile(t,e){return et(this,null,function*(){let r=this.tileState.getParsing(t.uid),i=yield t.parse(t.vectorTile,this.layerIndex,this.availableImages,this.actor,e.subdivisionGranularity);if(r){let{rawData:n}=r;i=Xt({rawTileData:n.slice(0),encoding:"mvt"},i),this.tileState.removeParsing(t.uid)}return i})}abortTile(t){return et(this,null,function*(){this.tileState.abort(t.uid)})}removeTile(t){return et(this,null,function*(){this.tileState.removeLoaded(t.uid)})}loadData(t){return et(this,null,function*(){var r;(r=this._pendingRequest)==null||r.abort();let e=this._startRequestTiming(t);this._pendingRequest=new AbortController;try{yield this.loadAndProcessGeoJSON(t,this._pendingRequest),delete this._pendingRequest,this.tileState.clearLoaded();let i={};return t.request&&(i.data=t.data),this._finishRequestTiming(e,t,i),i}catch(i){if(delete this._pendingRequest,!xl(i))throw i;return{abandoned:!0}}})}_startRequestTiming(t){var e;if((e=t.request)!=null&&e.collectResourceTiming)return new d1(t.request.url)}_finishRequestTiming(t,e,r){let i=t==null?void 0:t.finish();i&&(r.resourceTiming={[e.source]:JSON.parse(JSON.stringify(i))})}reloadTile(t){return et(this,null,function*(){let e=t.uid,r=this.tileState.getLoaded(e);if(!r)return yield this.loadTile(t);if(r.vectorTile)return r.showCollisionBoxes=t.showCollisionBoxes,yield this._parseWorkerTile(r,t)})}loadAndProcessGeoJSON(t,e){return et(this,null,function*(){var r;if(t.request&&(t.data=(yield Ip(t.request,e)).data),t.data){t.data=this._filterGeoJSON(t.data,t.filter,t.source),this._geoJSONIndex=this._createGeoJSONIndex(t.data,t);return}if(t.dataDiff){(r=this._geoJSONIndex)!=null||(this._geoJSONIndex=this._createGeoJSONIndex({type:"FeatureCollection",features:[]},t)),this._geoJSONIndex.updateData(t.dataDiff,this._getFilterPredicate(t.filter,t.source));return}if(t.updateCluster&&this._geoJSONIndex.updateClusterOptions(t.geojsonVtOptions.cluster,y1(t)),this._geoJSONIndex==null)throw Error(`Input data given to \'${t.source}\' is not a valid GeoJSON object.`)})}_filterGeoJSON(t,e,r){if(t.type!=="FeatureCollection")return t;let i=this._getFilterPredicate(e,r);return i?{type:"FeatureCollection",features:t.features.filter(n=>i(n))}:t}_getFilterPredicate(t,e){if(typeof t!="boolean"&&!(t!=null&&t.length))return;let r=ar(t,`sources.${e}.filter`,{type:"boolean","property-type":"data-driven",overridable:!1,transition:!1});if(r.result==="error")throw Error(r.value.map(i=>`${i.key}: ${i.message}`).join(", "));return i=>r.value.evaluate({zoom:0},i)}removeSource(t){return et(this,null,function*(){var e;(e=this._pendingRequest)==null||e.abort()})}getClusterExpansionZoom(t){return this._geoJSONIndex.getClusterExpansionZoom(t.clusterId)}getClusterChildren(t){return this._geoJSONIndex.getClusterChildren(t.clusterId)}getClusterLeaves(t){return this._geoJSONIndex.getClusterLeaves(t.clusterId,t.limit,t.offset)}};function v5(t,e){let r=Xt(e.geojsonVtOptions||{},{updateable:!0,clusterOptions:y1(e)});return new Kd(t,r)}function y1({geojsonVtOptions:t,clusterProperties:e,source:r}){if(!e||!t.clusterOptions)return t.clusterOptions;let i={},n={},a={accumulated:null,zoom:0},s={properties:null},o=Object.keys(e);for(let l of o){let[u,h]=e[l],c=ar(h,`sources.${r}.clusterProperties.${l}[1]`),p=ar(typeof u=="string"?[u,["accumulated"],["get",l]]:u,`sources.${r}.clusterProperties.${l}[0]`);i[l]=c.value,n[l]=p.value}return t.clusterOptions.map=l=>{s.properties=l;let u={};for(let h of o)u[h]=i[h].evaluate(a,s);return u},t.clusterOptions.reduce=(l,u)=>{s.properties=u;for(let h of o)a.accumulated=l[h],l[h]=n[h].evaluate(a,s)},t.clusterOptions}function h1(t){return et(this,null,function*(){if(t.endsWith(".mjs")){yield import(t);return}let e=yield fetch(t,{credentials:"same-origin"});if(!e.ok)throw Error(`Failed to load ${t}: ${e.status}`);let r=yield e.text();if(/^[ \\t]*(import|export)\\s/m.test(r)){let i=URL.createObjectURL(new Blob([r],{type:"text/javascript"}));try{yield import(i)}finally{URL.revokeObjectURL(i)}return}globalThis.eval(r)})}var b5=class{constructor(t){this.self=t,this.actor=new Ty(t),this.layerIndexes={},this.availableImages={},this.workerSources={},this.demWorkerSources={},this.externalWorkerSourceTypes={},this.globalStates=new Map,this.self.registerWorkerSource=(e,r)=>{if(this.externalWorkerSourceTypes[e])throw Error(`Worker source with name "${e}" already registered.`);this.externalWorkerSourceTypes[e]=r},this.self.addProtocol=Fp,this.self.removeProtocol=Tp,this.self.registerRTLTextPlugin=e=>{Ar.setMethods(e)},this.self.makeRequest=Pa,this.actor.registerMessageHandler("LDT",(e,r)=>this._getDEMWorkerSource(e,r.source).loadTile(r)),this.actor.registerMessageHandler("RDT",(e,r)=>et(this,null,function*(){this._getDEMWorkerSource(e,r.source).removeTile(r)})),this.actor.registerMessageHandler("GCEZ",(e,r)=>et(this,null,function*(){return this._getWorkerSource(e,r.type,r.source).getClusterExpansionZoom(r)})),this.actor.registerMessageHandler("GCC",(e,r)=>et(this,null,function*(){return this._getWorkerSource(e,r.type,r.source).getClusterChildren(r)})),this.actor.registerMessageHandler("GCL",(e,r)=>et(this,null,function*(){return this._getWorkerSource(e,r.type,r.source).getClusterLeaves(r)})),this.actor.registerMessageHandler("LD",(e,r)=>this._getWorkerSource(e,r.type,r.source).loadData(r)),this.actor.registerMessageHandler("LT",(e,r)=>this._getWorkerSource(e,r.type,r.source).loadTile(r)),this.actor.registerMessageHandler("RT",(e,r)=>this._getWorkerSource(e,r.type,r.source).reloadTile(r)),this.actor.registerMessageHandler("AT",(e,r)=>this._getWorkerSource(e,r.type,r.source).abortTile(r)),this.actor.registerMessageHandler("RMT",(e,r)=>this._getWorkerSource(e,r.type,r.source).removeTile(r)),this.actor.registerMessageHandler("RS",(e,r)=>et(this,null,function*(){var n,a;if(!((a=(n=this.workerSources[e])==null?void 0:n[r.type])!=null&&a[r.source]))return;let i=this.workerSources[e][r.type][r.source];delete this.workerSources[e][r.type][r.source],i.removeSource!==void 0&&i.removeSource(r)})),this.actor.registerMessageHandler("RM",e=>et(this,null,function*(){delete this.layerIndexes[e],delete this.availableImages[e],delete this.workerSources[e],delete this.demWorkerSources[e],this.globalStates.delete(e)})),this.actor.registerMessageHandler("SR",(e,r)=>et(this,null,function*(){this.referrer=r})),this.actor.registerMessageHandler("SRPS",(e,r)=>this._syncRTLPluginState(e,r)),this.actor.registerMessageHandler("IS",(e,r)=>et(this,null,function*(){yield h1(r)})),this.actor.registerMessageHandler("SI",(e,r)=>this._setImages(e,r)),this.actor.registerMessageHandler("UL",(e,r)=>et(this,null,function*(){this._getLayerIndex(e).update(r.layers,r.removedIds,this._getGlobalState(e))})),this.actor.registerMessageHandler("UGS",(e,r)=>et(this,null,function*(){let i=this._getGlobalState(e);for(let n in r)i[n]=r[n]})),this.actor.registerMessageHandler("SL",(e,r)=>et(this,null,function*(){this._getLayerIndex(e).replace(r,this._getGlobalState(e))}))}_getGlobalState(t){let e=this.globalStates.get(t);return e||(e={},this.globalStates.set(t,e)),e}_setImages(t,e){return et(this,null,function*(){this.availableImages[t]=e;for(let r in this.workerSources[t]){let i=this.workerSources[t][r];for(let n in i)i[n].availableImages=e}})}_syncRTLPluginState(t,e){return et(this,null,function*(){return yield Ar.syncState(e,h1)})}_getAvailableImages(t){let e=this.availableImages[t];return e||(e=[]),e}_getLayerIndex(t){let e=this.layerIndexes[t];return e||(e=this.layerIndexes[t]=new c5),e}_getWorkerSource(t,e,r){var i,n;if((i=this.workerSources)[t]||(i[t]={}),(n=this.workerSources[t])[e]||(n[e]={}),!this.workerSources[t][e][r]){let a={sendAsync:(s,o)=>(s.targetMapId=t,this.actor.sendAsync(s,o))};switch(e){case"vector":this.workerSources[t][e][r]=new m5(a,this._getLayerIndex(t),this._getAvailableImages(t));break;case"geojson":this.workerSources[t][e][r]=new x5(a,this._getLayerIndex(t),this._getAvailableImages(t));break;default:this.workerSources[t][e][r]=new this.externalWorkerSourceTypes[e](a,this._getLayerIndex(t),this._getAvailableImages(t))}}return this.workerSources[t][e][r]}_getDEMWorkerSource(t,e){var r,i;return(r=this.demWorkerSources)[t]||(r[t]={}),(i=this.demWorkerSources[t])[e]||(i[e]=new g5),this.demWorkerSources[t][e]}};vr(self)&&(self.worker=new b5(self));export{b5 as default};\n/*! Bundled license information:\n\nmaplibre-gl/dist/maplibre-gl-shared.mjs:\nmaplibre-gl/dist/maplibre-gl-worker.mjs:\n (**\n * MapLibre GL JS\n * @license 3-Clause BSD. Full text of license: https://github.com/maplibre/maplibre-gl-js/blob/v6.11.2/LICENSE.txt\n *)\n*/\n'});var Wlt=W((Hli,$lt)=>{"use strict";var E3=tt(),xCr=ao().sanitizeHTML,bCr=Cre(),Glt=Q2();function Hlt(e,t){this.subplot=e,this.uid=e.uid+"-"+t,this.index=t,this.idSource="source-"+this.uid,this.idLayer=Glt.layoutLayerPrefix+this.uid,this.sourceType=null,this.source=null,this.layerType=null,this.below=null,this.visible=!1}var pp=Hlt.prototype;pp.update=function(t){this.visible?this.needsNewImage(t)?this.updateImage(t):this.needsNewSource(t)?(this.removeLayer(),this.updateSource(t),this.updateLayer(t)):this.needsNewLayer(t)?this.updateLayer(t):this.updateStyle(t):(this.updateSource(t),this.updateLayer(t)),this.visible=pO(t)};pp.needsNewImage=function(e){var t=this.subplot.map;return t.getSource(this.idSource)&&this.sourceType==="image"&&e.sourcetype==="image"&&(this.source!==e.source||JSON.stringify(this.coordinates)!==JSON.stringify(e.coordinates))};pp.needsNewSource=function(e){return this.sourceType!==e.sourcetype||JSON.stringify(this.source)!==JSON.stringify(e.source)||this.layerType!==e.type};pp.needsNewLayer=function(e){return this.layerType!==e.type||this.below!==this.subplot.belowLookup["layout-"+this.index]};pp.lookupBelow=function(){return this.subplot.belowLookup["layout-"+this.index]};pp.updateImage=function(e){var t=this.subplot.map;t.getSource(this.idSource).updateImage({url:e.source,coordinates:e.coordinates});var r=this.findFollowingMapLayerId(this.lookupBelow());r!==null&&this.subplot.map.moveLayer(this.idLayer,r)};pp.updateSource=function(e){var t=this.subplot.map;if(t.getSource(this.idSource)&&t.removeSource(this.idSource),this.sourceType=e.sourcetype,this.source=e.source,!!pO(e)){var r=_Cr(e);t.addSource(this.idSource,r)}};pp.findFollowingMapLayerId=function(e){if(e==="traces")for(var t=this.subplot.getMapLayers(),r=0;r0){for(var r=0;r0}function jlt(e){var t={},r={};switch(e.type){case"circle":E3.extendFlat(r,{"circle-radius":e.circle.radius,"circle-color":e.color,"circle-opacity":e.opacity});break;case"line":E3.extendFlat(r,{"line-width":e.line.width,"line-color":e.color,"line-opacity":e.opacity,"line-dasharray":e.line.dash});break;case"fill":E3.extendFlat(r,{"fill-color":e.color,"fill-outline-color":e.fill.outlinecolor,"fill-opacity":e.opacity});break;case"symbol":var i=e.symbol,n=bCr(i.textposition,i.iconsize);E3.extendFlat(t,{"icon-image":i.icon,"icon-size":i.iconsize/10,"text-field":i.text,"text-size":i.textfont.size,"text-anchor":n.anchor,"text-offset":n.offset,"symbol-placement":i.placement}),E3.extendFlat(r,{"icon-color":e.color,"text-color":i.textfont.color,"text-opacity":e.opacity});break;case"raster":E3.extendFlat(r,{"raster-fade-duration":0,"raster-opacity":e.opacity});break}return{layout:t,paint:r}}function _Cr(e){var t=e.sourcetype,r=e.source,i={type:t},n;return t==="geojson"?n="data":t==="vector"?n=typeof r=="string"?"url":"tiles":t==="raster"?(n="tiles",i.tileSize=256):t==="image"&&(n="url",i.coordinates=e.coordinates),i[n]=r,e.sourceattribution&&(i.attribution=xCr(e.sourceattribution)),i}$lt.exports=function(t,r,i){var n=new Hlt(t,r);return n.update(i),n}});var nut=W((jli,iut)=>{"use strict";var gO=(Nlt(),Pt(qlt)),wCr=Vlt(),Ylt=!1,TCr=()=>{Ylt||(Ylt=!0,gO.setWorkerUrl(URL.createObjectURL(new Blob([wCr],{type:"text/javascript"}))))},mO=tt(),Klt=Am(),Xlt=xi(),ACr=Yi(),MCr=Ef(),vO=Is(),Jlt=_1(),SCr=Jlt.drawMode,ECr=Jlt.selectMode,kCr=xu().prepSelect,CCr=xu().clearOutline,DCr=xu().clearSelectionsCache,FCr=xu().selectOnClick,xx=Q2(),LCr=Wlt();function Qlt(e,t){this.id=t,this.gd=e;var r=e._fullLayout,i=e._context;this.container=r._glcontainer.node(),this.isStatic=i.staticPlot,this.uid=r._uid+"-"+this.id,this.div=null,this.xaxis=null,this.yaxis=null,this.createFramework(r),this.map=null,this.styleObj=null,this.traceHash={},this.layerList=[],this.belowLookup={},this.dragging=!1,this.wheeling=!1}var fu=Qlt.prototype;fu.plot=function(e,t,r){var i=this,n;i.map?n=new Promise(function(a,o){i.updateMap(e,t,a,o)}):n=new Promise(function(a,o){i.createMap(e,t,a,o)}),r.push(n)};fu.createMap=function(e,t,r,i){var n=this,a=t[n.id],o=n.styleObj=rut(a.style),s=a.bounds,l=s?[[s.west,s.south],[s.east,s.north]]:null;let u={container:n.div,style:o.style,center:Voe(a.center),zoom:a.zoom,bearing:a.bearing,pitch:a.pitch,maxBounds:l,interactive:!n.isStatic,canvasContextAttributes:{preserveDrawingBuffer:n.isStatic},doubleClickZoom:!1,boxZoom:!1,attributionControl:!1},c=a._fitBounds;c&&(u.bounds=[[c.west,c.south],[c.east,c.north]],u.fitBoundsOptions={padding:xx.fitBoundsPadding}),TCr();let f=n.map=new gO.Map(u).addControl(new gO.AttributionControl({compact:!0})),h={};f.setMissingStyleImageResolver(d=>(!h[d]&&/^[a-zA-Z0-9-]+$/.test(d)&&(h[d]=new Promise(v=>{let m=new Image(15,15);m.onload=()=>{f.addImage(d,m,{sdf:!0}),v()},m.onerror=()=>v(),m.crossOrigin="Anonymous",m.src=`https://cdn.jsdelivr.net/npm/@mapbox/maki@8.2.0/icons/${d}.svg`})),h[d])),f.setTransformRequest(function(d){return d=d.replace("https://fonts.openmaptiles.org/Open Sans Extrabold","https://fonts.openmaptiles.org/Open Sans Extra Bold"),d=d.replace("https://tiles.basemaps.cartocdn.com/fonts/Open Sans Extrabold","https://fonts.openmaptiles.org/Open Sans Extra Bold"),d=d.replace("https://fonts.openmaptiles.org/Open Sans Regular,Arial Unicode MS Regular","https://fonts.openmaptiles.org/Klokantech Noto Sans Regular"),{url:d}}),f._canvas.style.left="0px",f._canvas.style.top="0px",n.rejectOnError(i),n.isStatic||n.initFx(e,t);var p=[];p.push(new Promise(function(d){f.once("load",d)})),p=p.concat(Klt.fetchTraceGeoData(e)),Promise.all(p).then(function(){c&&eut(n,a),tut(n,a),n.fillBelowLookup(e,t),n.updateData(e),n.updateLayout(t),n.resolveOnRender(r)}).catch(i)};fu.updateMap=function(e,t,r,i){var n=this,a=n.map,o=t[this.id];n.rejectOnError(i);var s=[],l=rut(o.style);JSON.stringify(n.styleObj)!==JSON.stringify(l)&&(n.styleObj=l,a.setStyle(l.style),n.traceHash={},s.push(new Promise(function(u){a.once("styledata",u)}))),s=s.concat(Klt.fetchTraceGeoData(e)),Promise.all(s).then(function(){n.fillBelowLookup(e,t),n.updateData(e);let u=o._fitBounds;u&&(a.fitBounds([[u.west,u.south],[u.east,u.north]],{padding:xx.fitBoundsPadding,animate:!1}),eut(n,o),tut(n,o)),n.updateLayout(t),n.resolveOnRender(r)}).catch(i)};function eut(e,t){let{center:r,zoom:i}=e.getView();t._input.center=t.center=r,t._input.zoom=t.zoom=i,t._input._fitView={center:fn({},r),zoom:i}}function tut(e,t){let r=e.getView();e.viewInitial={center:mO.extendFlat({},r.center),bearing:t.bearing,pitch:t.pitch,zoom:r.zoom}}fu.fillBelowLookup=function(e,t){var r=t[this.id],i=r.layers,n,a,o=this.belowLookup={},s=!1;for(n=0;n1)for(n=0;nt.project(i).x,_subplot:t},t.yaxis={_id:"y",c2p:i=>t.project(i).y,_subplot:t},t.updateFramework(e),t.mockAxis={type:"linear",showexponent:"all",exponentformat:"B"},ACr.setConvert(t.mockAxis,e)};fu.initFx=function(e,t){var r=this,i=r.gd,n=r.map;n.on("moveend",function(s){if(r.map){var l=i._fullLayout;if(s.originalEvent||r.wheeling){var u=l[r.id];Xlt.call("_storeDirectGUIEdit",i.layout,l._preGUI,r.getViewEdits(u));var c=r.getView();u._input.center=u.center=c.center,u._input.zoom=u.zoom=c.zoom,u._input.bearing=u.bearing=c.bearing,u._input.pitch=u.pitch=c.pitch,i.emit("plotly_relayout",r.getViewEditsWithDerived(c))}s.originalEvent&&s.originalEvent.type==="mouseup"?r.dragging=!1:r.wheeling&&(r.wheeling=!1),l&&l._rehover&&l._rehover()}}),n.on("wheel",function(){r.wheeling=!0}),n.on("mousemove",function(s){var l=r.div.getBoundingClientRect(),u=[s.originalEvent.offsetX,s.originalEvent.offsetY];s.target.getBoundingClientRect=function(){return l},r.xaxis.p2c=function(){return n.unproject(u).lng},r.yaxis.p2c=function(){return n.unproject(u).lat},i._fullLayout._rehover=function(){i._fullLayout._hoversubplot===r.id&&i._fullLayout[r.id]&&vO.hover(i,s,r.id)},vO.hover(i,s,r.id),i._fullLayout._hoversubplot=r.id});function a(){vO.loneUnhover(t._hoverlayer)}n.on("dragstart",function(){r.dragging=!0,a()}),n.on("zoomstart",a),n.on("mouseout",function(){i._fullLayout._hoversubplot=null});function o(){var s=r.getView();i.emit("plotly_relayouting",r.getViewEditsWithDerived(s))}n.on("drag",o),n.on("zoom",o),n.on("dblclick",function(){var s=i._fullLayout[r.id];Xlt.call("_storeDirectGUIEdit",i.layout,i._fullLayout._preGUI,r.getViewEdits(s));var l=r.viewInitial;n.setCenter(Voe(l.center)),n.setZoom(l.zoom),n.setBearing(l.bearing),n.setPitch(l.pitch);var u=r.getView();s._input.center=s.center=u.center,s._input.zoom=s.zoom=u.zoom,s._input.bearing=s.bearing=u.bearing,s._input.pitch=s.pitch=u.pitch,i.emit("plotly_doubleclick",null),i.emit("plotly_relayout",r.getViewEditsWithDerived(u))}),r.clearOutline=function(){DCr(r.dragOptions),CCr(r.dragOptions.gd)},r.onClickInPanFn=function(s){return function(l){var u=i._fullLayout.clickmode;u.indexOf("select")>-1&&FCr(l.originalEvent,i,[r.xaxis],[r.yaxis],r.id,s),u.indexOf("event")>-1&&vO.click(i,l.originalEvent)}}};fu.updateFx=function(e){var t=this,r=t.map,i=t.gd;if(t.isStatic)return;function n(l){var u=t.map.unproject(l);return[u.lng,u.lat]}var a=e.dragmode,o;o=function(l,u){if(u.isRect){var c=l.range={};c[t.id]=[n([u.xmin,u.ymin]),n([u.xmax,u.ymax])]}else{var f=l.lassoPoints={};f[t.id]=u.map(n)}};var s=t.dragOptions;t.dragOptions=mO.extendDeep(s||{},{dragmode:e.dragmode,element:t.div,gd:i,plotinfo:{id:t.id,domain:e[t.id].domain,xaxis:t.xaxis,yaxis:t.yaxis,fillRangeItems:o},xaxes:[t.xaxis],yaxes:[t.yaxis],subplot:t.id}),r.off("click",t.onClickInPanHandler),ECr(a)||SCr(a)?(r.dragPan.disable(),r.on("zoomstart",t.clearOutline),t.dragOptions.prepFn=function(l,u,c){kCr(l,u,c,t.dragOptions,a)},MCr.init(t.dragOptions)):(r.dragPan.enable(),r.off("zoomstart",t.clearOutline),t.div.onmousedown=null,t.div.ontouchstart=null,t.div.removeEventListener("touchstart",t.div._ontouchstart),t.onClickInPanHandler=t.onClickInPanFn(t.dragOptions),r.on("click",t.onClickInPanHandler))};fu.updateFramework=function(e){var t=e[this.id].domain,r=e._size,i=this.div.style;i.width=r.w*(t.x[1]-t.x[0])+"px",i.height=r.h*(t.y[1]-t.y[0])+"px",i.left=r.l+t.x[0]*r.w+"px",i.top=r.t+(1-t.y[1])*r.h+"px",this.xaxis._offset=r.l+t.x[0]*r.w,this.xaxis._length=r.w*(t.x[1]-t.x[0]),this.yaxis._offset=r.t+(1-t.y[1])*r.h,this.yaxis._length=r.h*(t.y[1]-t.y[0])};fu.updateLayers=function(e){var t=e[this.id],r=t.layers,i=this.layerList,n;if(r.length!==i.length){for(n=0;nPCr});function PCr(e,t){let r=[];for(let l of e){if(l.subplot!==t||l.visible!==!0)continue;if(l.type==="choroplethmap")return null;let{lat:u,lon:c}=l;if(!c||!u)continue;let f=Math.min(c.length,u.length);for(let h=0;h{"use strict";aut=s1(Am())});var cut=W((Wli,uut)=>{"use strict";var Goe=tt(),ICr=Kb(),RCr=tf(),lut=bk(),{getMapFitBounds:zCr}=(sut(),Pt(out));uut.exports=function(t,r,i){ICr(t,r,i,{type:"map",attributes:lut,handleDefaults:BCr,partition:"y",fullData:i})};function BCr(e,t,r,i){r("style"),r("center.lon"),r("center.lat"),r("zoom"),r("bearing"),r("pitch");let n=r("fitbounds");var a=r("bounds.west"),o=r("bounds.east"),s=r("bounds.south"),l=r("bounds.north");(a===void 0||o===void 0||s===void 0||l===void 0)&&delete t.bounds,RCr(e,t,{name:"layers",handleItemDefaults:qCr}),t._fitBounds=null;let{_fitView:{center:u,zoom:c}={},center:f,zoom:h}=e,p=(f==null?void 0:f.lon)===(u==null?void 0:u.lon)&&(f==null?void 0:f.lat)===(u==null?void 0:u.lat)&&h===c;if(n&&p){let d=zCr(i.fullData,i.id);d&&(t._fitBounds=d)}t._input=e}function qCr(e,t){function r(l,u){return Goe.coerce(e,t,lut.layers,l,u)}var i=r("visible");if(i){var n=r("sourcetype"),a=n==="raster"||n==="image";r("source"),r("sourceattribution"),n==="vector"&&r("sourcelayer"),n==="image"&&r("coordinates");var o;a&&(o="raster");var s=r("type",o);a&&s!=="raster"&&(s=t.type="raster",Goe.log("Source types *raster* and *image* must drawn *raster* layer type.")),r("below"),r("color"),r("opacity"),r("minzoom"),r("maxzoom"),s==="circle"&&r("circle.radius"),s==="line"&&(r("line.width"),r("line.dash")),s==="fill"&&r("fill.outlinecolor"),s==="symbol"&&(r("symbol.icon"),r("symbol.iconsize"),r("symbol.text"),Goe.coerceFont(r,"symbol.textfont",void 0,{noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0}),r("symbol.textposition"),r("symbol.placement"))}}});var yO=W(Z0=>{"use strict";var Hoe=tt(),fut=Hoe.strTranslate,OCr=Hoe.strScale,NCr=Mc().getSubplotCalcData,UCr=(md(),Pt(gd)),VCr=gi(),hut=Qi(),GCr=ao(),HCr=nut(),bx="map";Z0.name=bx;Z0.attr="subplot";Z0.idRoot=bx;Z0.idRegex=Z0.attrRegex=Hoe.counterRegex(bx);Z0.attributes={subplot:{valType:"subplotid",dflt:"map",editType:"calc"}};Z0.layoutAttributes=bk();Z0.supplyLayoutDefaults=cut();Z0.plot=function(t){for(var r=t._fullLayout,i=t.calcdata,n=r._subplots[bx],a=0;av/2){var m=f.split("|").join("
");p.text(m).attr("data-unformatted",m).call(GCr.convertToTspans,e),d=hut.bBox(p.node())}p.attr("transform",fut(-3,-d.height+8)),h.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 g=1;d.width+6>v&&(g=v/(d.width+6));var w=[i.l+i.w*o.x[1],i.t+i.h*(1-o.y[0])];h.attr("transform",fut(w[0],w[1])+OCr(g))}};Z0.updateFx=function(e){for(var t=e._fullLayout,r=t._subplots[bx],i=0;i{"use strict";dut.exports={attributes:Wz(),supplyDefaults:dQe(),colorbar:Cc(),formatLabels:kre(),calc:OQ(),plot:EQe(),hoverPoints:Jz().hoverPoints,eventData:FQe(),selectPoints:PQe(),styleOnSelect:function(e,t){if(t){var r=t[0].trace;r._glTrace.update(t)}},moduleType:"trace",name:"scattermap",basePlotModule:yO(),categories:["map","gl","symbols","showLegend","scatter-like"],meta:{}}});var gut=W((Zli,vut)=>{"use strict";vut.exports=put()});var joe=W((Kli,mut)=>{"use strict";var Zm=NE(),jCr=Fo(),{hovertemplateAttrs:$Cr,templatefallbackAttrs:WCr}=Wa(),YCr=Ja(),_x=an().extendFlat;mut.exports=_x({locations:{valType:"data_array",editType:"calc"},z:{valType:"data_array",editType:"calc"},geojson:{valType:"any",editType:"calc"},featureidkey:_x({},Zm.featureidkey,{}),below:{valType:"string",editType:"plot"},text:Zm.text,hovertext:Zm.hovertext,marker:{line:{color:_x({},Zm.marker.line.color,{editType:"plot"}),width:_x({},Zm.marker.line.width,{editType:"plot"}),editType:"calc"},opacity:_x({},Zm.marker.opacity,{editType:"plot"}),editType:"calc"},selected:{marker:{opacity:_x({},Zm.selected.marker.opacity,{editType:"plot"}),editType:"plot"},editType:"plot"},unselected:{marker:{opacity:_x({},Zm.unselected.marker.opacity,{editType:"plot"}),editType:"plot"},editType:"plot"},hoverinfo:Zm.hoverinfo,hovertemplate:$Cr({},{keys:["properties"]}),hovertemplatefallback:WCr(),showlegend:_x({},YCr.showlegend,{dflt:!1})},jCr("",{cLetter:"z",editTypeOverride:"calc"}))});var xut=W((Jli,yut)=>{"use strict";var n8=tt(),XCr=Bu(),ZCr=joe();yut.exports=function(t,r,i,n){function a(c,f){return n8.coerce(t,r,ZCr,c,f)}var o=a("locations"),s=a("z"),l=a("geojson");if(!n8.isArrayOrTypedArray(o)||!o.length||!n8.isArrayOrTypedArray(s)||!s.length||!(typeof l=="string"&&l!==""||n8.isPlainObject(l))){r.visible=!1;return}a("featureidkey"),r._length=Math.min(o.length,s.length),a("below"),a("text"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback");var u=a("marker.line.width");u&&a("marker.line.color"),a("marker.opacity"),XCr(t,r,n,a,{prefix:"",cLetter:"z"}),n8.coerceSelectionMarkerOpacity(r,a)}});var $oe=W((Qli,wut)=>{"use strict";var KCr=hn(),Km=tt(),JCr=es(),QCr=Qi(),e8r=IE().makeBlank,but=Am();function t8r(e){var t=e[0].trace,r=t.visible===!0&&t._length!==0,i={layout:{visibility:"none"},paint:{}},n={layout:{visibility:"none"},paint:{}},a=t._opts={fill:i,line:n,geojson:e8r()};if(!r)return a;var o=but.extractTraceFeature(e);if(!o)return a;var s=JCr.makeColorScaleFuncFromTrace(t),l=t.marker,u=l.line||{},c;Km.isArrayOrTypedArray(l.opacity)&&(c=function(w){var _=w.mo;return KCr(_)?+Km.constrain(_,0,1):0});var f;Km.isArrayOrTypedArray(u.color)&&(f=function(w){return w.mlc});var h;Km.isArrayOrTypedArray(u.width)&&(h=function(w){return w.mlw});for(var p=0;p{"use strict";var Aut=$oe().convert,r8r=$oe().convertOnSelect,Tut=Q2().traceLayerPrefix;function Mut(e,t){this.type="choroplethmap",this.subplot=e,this.uid=t,this.sourceId="source-"+t,this.layerList=[["fill",Tut+t+"-fill"],["line",Tut+t+"-line"]],this.below=null}var c6=Mut.prototype;c6.update=function(e){this._update(Aut(e)),e[0].trace._glTrace=this};c6.updateOnSelect=function(e){this._update(r8r(e))};c6._update=function(e){var t=this.subplot,r=this.layerList,i=t.belowLookup["trace-"+this.uid];t.map.getSource(this.sourceId).setData(e.geojson),i!==this.below&&(this._removeLayers(),this._addLayers(e,i),this.below=i);for(var n=0;n=0;r--)e.removeLayer(t[r][1])};c6.dispose=function(){var e=this.subplot.map;this._removeLayers(),e.removeSource(this.sourceId)};Sut.exports=function(t,r){var i=r[0].trace,n=new Mut(t,i.uid),a=n.sourceId,o=Aut(r),s=n.below=t.belowLookup["trace-"+i.uid];return t.map.addSource(a,{type:"geojson",data:o.geojson}),n._addLayers(o,s),r[0].trace._glTrace=n,n}});var Cut=W((tui,kut)=>{"use strict";kut.exports={attributes:joe(),supplyDefaults:xut(),colorbar:F5(),calc:yee(),plot:Eut(),hoverPoints:bee(),eventData:_ee(),selectPoints:wee(),styleOnSelect:function(e,t){if(t){var r=t[0].trace;r._glTrace.updateOnSelect(t)}},getBelow:function(e,t){for(var r=t.getMapLayers(),i=r.length-2;i>=0;i--){var n=r[i].id;if(typeof n=="string"&&n.indexOf("water")===0){for(var a=i+1;a{"use strict";Dut.exports=Cut()});var Yoe=W((iui,Put)=>{"use strict";var i8r=Fo(),{hovertemplateAttrs:n8r,templatefallbackAttrs:a8r}=Wa(),Lut=Ja(),xO=Wz(),Woe=an().extendFlat;Put.exports=Woe({lon:xO.lon,lat:xO.lat,z:{valType:"data_array",editType:"calc"},radius:{valType:"number",editType:"plot",arrayOk:!0,min:1,dflt:30},below:{valType:"string",editType:"plot"},text:xO.text,hovertext:xO.hovertext,hoverinfo:Woe({},Lut.hoverinfo,{flags:["lon","lat","z","text","name"]}),hovertemplate:n8r(),hovertemplatefallback:a8r(),showlegend:Woe({},Lut.showlegend,{dflt:!1})},i8r("",{cLetter:"z",editTypeOverride:"calc"}))});var Rut=W((nui,Iut)=>{"use strict";var o8r=tt(),s8r=Bu(),l8r=Yoe();Iut.exports=function(t,r,i,n){function a(u,c){return o8r.coerce(t,r,l8r,u,c)}var o=a("lon")||[],s=a("lat")||[],l=Math.min(o.length,s.length);if(!l){r.visible=!1;return}r._length=l,a("z"),a("radius"),a("below"),a("text"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback"),s8r(t,r,n,a,{prefix:"",cLetter:"z"})}});var qut=W((aui,But)=>{"use strict";var Xoe=hn(),u8r=tt().isArrayOrTypedArray,Zoe=(ra(),Pt(ia)).BADNUM,c8r=rf(),zut=tt()._;But.exports=function(t,r){for(var i=r._length,n=new Array(i),a=r.z,o=u8r(a)&&a.length,s=0;s{"use strict";var f8r=hn(),Koe=tt(),Out=ti(),Nut=es(),Uut=(ra(),Pt(ia)).BADNUM,h8r=IE().makeBlank;Vut.exports=function(t){var r=t[0].trace,i=r.visible===!0&&r._length!==0,n={layout:{visibility:"none"},paint:{}},a=r._opts={heatmap:n,geojson:h8r()};if(!i)return a;var o=[],s,l=r.z,u=r.radius,c=Koe.isArrayOrTypedArray(l)&&l.length,f=Koe.isArrayOrTypedArray(u);for(s=0;s0?+u[s]:0),o.push({type:"Feature",geometry:{type:"Point",coordinates:p},properties:d})}}var m=Nut.extractOpts(r),g=m.reversescale?Nut.flipScale(m.colorscale):m.colorscale,w=g[0][1],_=Out.opacity(w)<1?w:Out.addOpacity(w,0),b=["interpolate",["linear"],["heatmap-density"],0,_];for(s=1;s{"use strict";var Hut=Gut(),d8r=Q2().traceLayerPrefix;function jut(e,t){this.type="densitymap",this.subplot=e,this.uid=t,this.sourceId="source-"+t,this.layerList=[["heatmap",d8r+t+"-heatmap"]],this.below=null}var bO=jut.prototype;bO.update=function(e){var t=this.subplot,r=this.layerList,i=Hut(e),n=t.belowLookup["trace-"+this.uid];t.map.getSource(this.sourceId).setData(i.geojson),n!==this.below&&(this._removeLayers(),this._addLayers(i,n),this.below=n);for(var a=0;a=0;r--)e.removeLayer(t[r][1])};bO.dispose=function(){var e=this.subplot.map;this._removeLayers(),e.removeSource(this.sourceId)};$ut.exports=function(t,r){var i=r[0].trace,n=new jut(t,i.uid),a=n.sourceId,o=Hut(r),s=n.below=t.belowLookup["trace-"+i.uid];return t.map.addSource(a,{type:"geojson",data:o.geojson}),n._addLayers(o,s),n}});var Xut=W((lui,Yut)=>{"use strict";var p8r=Yi(),v8r=Jz().hoverPoints,g8r=Jz().getExtraText;Yut.exports=function(t,r,i){var n=v8r(t,r,i);if(n){var a=n[0],o=a.cd,s=o[0].trace,l=o[a.index];if(delete a.color,"z"in l){var u=a.subplot.mockAxis;a.z=l.z,a.zLabel=p8r.tickText(u,u.c2l(l.z),"hover").text}return a.extraText=g8r(s,l,o[0].t.labels),[a]}}});var Kut=W((uui,Zut)=>{"use strict";Zut.exports=function(t,r){return t.lon=r.lon,t.lat=r.lat,t.z=r.z,t}});var Qut=W((cui,Jut)=>{"use strict";Jut.exports={attributes:Yoe(),supplyDefaults:Rut(),colorbar:F5(),formatLabels:kre(),calc:qut(),plot:Wut(),hoverPoints:Xut(),eventData:Kut(),getBelow:function(e,t){for(var r=t.getMapLayers(),i=0;i{"use strict";ect.exports=Qut()});var Qoe=W((dui,oct)=>{"use strict";var m8r=jo(),y8r=Ja(),rct=Yl(),Joe=tw(),x8r=ds().attributes,{hovertemplateAttrs:ict,templatefallbackAttrs:nct}=Wa(),b8r=Fo(),_8r=Ra().templatedArray,w8r=Ts().descriptionOnlyNumbers,act=an().extendFlat,T8r=hs().overrideAll,hui=oct.exports=T8r({hoverinfo:act({},y8r.hoverinfo,{flags:[],arrayOk:!1}),hoverlabel:Joe.hoverlabel,domain:x8r({name:"sankey",trace:!0}),orientation:{valType:"enumerated",values:["v","h"],dflt:"h"},direction:{valType:"enumerated",values:["forward","reversed"],dflt:"forward"},valueformat:{valType:"string",dflt:".3s",description:w8r("value")},valuesuffix:{valType:"string",dflt:""},arrangement:{valType:"enumerated",values:["snap","perpendicular","freeform","fixed"],dflt:"snap"},textfont:m8r({autoShadowDflt:!0}),customdata:void 0,node:{label:{valType:"data_array",dflt:[]},groups:{valType:"info_array",impliedEdits:{x:[],y:[]},dimensions:2,freeLength:!0,dflt:[],items:{valType:"number",editType:"calc"}},x:{valType:"data_array",dflt:[]},y:{valType:"data_array",dflt:[]},color:{valType:"color",arrayOk:!0},customdata:{valType:"data_array",editType:"calc"},line:{color:{valType:"color",dflt:rct.defaultLine,arrayOk:!0},width:{valType:"number",min:0,dflt:.5,arrayOk:!0}},pad:{valType:"number",arrayOk:!1,min:0,dflt:20},thickness:{valType:"number",arrayOk:!1,min:1,dflt:20},hoverinfo:{valType:"enumerated",values:["all","none","skip"],dflt:"all"},hoverlabel:Joe.hoverlabel,hovertemplate:ict({},{keys:["value","label"]}),hovertemplatefallback:nct(),align:{valType:"enumerated",values:["justify","left","right","center"],dflt:"justify"},sort:{valType:"enumerated",values:["auto","input"],dflt:"auto"}},link:{arrowlen:{valType:"number",min:0,dflt:0},label:{valType:"data_array",dflt:[]},color:{valType:"color",arrayOk:!0},hovercolor:{valType:"color",arrayOk:!0},customdata:{valType:"data_array",editType:"calc"},line:{color:{valType:"color",dflt:rct.defaultLine,arrayOk:!0},width:{valType:"number",min:0,dflt:0,arrayOk:!0}},source:{valType:"data_array",dflt:[]},target:{valType:"data_array",dflt:[]},value:{valType:"data_array",dflt:[]},hoverinfo:{valType:"enumerated",values:["all","none","skip"],dflt:"all"},hoverlabel:Joe.hoverlabel,hovertemplate:ict({},{keys:["value","label"]}),hovertemplatefallback:nct(),colorscales:_8r("concentrationscales",{editType:"calc",label:{valType:"string",editType:"calc",dflt:""},cmax:{valType:"number",editType:"calc",dflt:1},cmin:{valType:"number",editType:"calc",dflt:0},colorscale:act(b8r().colorscale,{dflt:[[0,"white"],[1,"black"]]})}),sort:{valType:"enumerated",values:["auto","input"],dflt:"auto"}}},"calc","nested")});var cct=W((pui,uct)=>{"use strict";var f6=tt(),_O=Qoe(),k3=ti(),A8r=ds().defaults,sct=UA(),lct=Ra(),M8r=tf();uct.exports=function(t,r,i,n){function a(b,S){return f6.coerce(t,r,_O,b,S)}var o=f6.extendDeep(n.hoverlabel,t.hoverlabel),s=t.node,l=lct.newContainer(r,"node");function u(b,S){return f6.coerce(s,l,_O.node,b,S)}u("label"),u("groups"),u("x"),u("y"),u("pad"),u("thickness"),u("line.color"),u("line.width"),u("hoverinfo",t.hoverinfo),sct(s,l,u,o),u("hovertemplate"),u("align"),u("sort");var c=n.colorway;let f=b=>c[b%c.length];u("color",l.label.map((b,S)=>k3.addOpacity(f(S),.8))),u("customdata");var h=t.link||{},p=lct.newContainer(r,"link");function d(b,S){return f6.coerce(h,p,_O.link,b,S)}d("label"),d("arrowlen"),d("source"),d("target"),d("value"),d("line.color"),d("line.width"),d("hoverinfo",t.hoverinfo),sct(h,p,d,o),d("hovertemplate"),d("sort");var v=k3.luminosity(n.paper_bgcolor)<.333,m=v?"rgba(255, 255, 255, 0.6)":"rgba(0, 0, 0, 0.2)",g=d("color",m);function w(b){if(!k3.isValid(b))return b;let S=k3.opacity(b);return S<=.8?k3.addOpacity(b,S+.2):v?k3.brighten(b,10):k3.adjustLightness(b,-10)}d("hovercolor",Array.isArray(g)?g.map(w):w(g)),d("customdata"),M8r(h,p,{name:"colorscales",handleItemDefaults:S8r}),A8r(r,n,a),a("orientation"),a("direction"),a("valueformat"),a("valuesuffix");let _=l.x.length&&l.y.length?"freeform":void 0;a("arrangement",_),f6.coerceFont(a,"textfont",n.font,{autoShadowDflt:!0}),r._length=null};function S8r(e,t){function r(i,n){return f6.coerce(e,t,_O.link.colorscales,i,n)}r("label"),r("cmin"),r("cmax"),r("colorscale")}});var ese=W((vui,fct)=>{"use strict";fct.exports=E8r;function E8r(e){for(var t=e.length,r=new Array(t),i=new Array(t),n=new Array(t),a=new Array(t),o=new Array(t),s=new Array(t),l=0;l0;){m=w[w.length-1];var _=e[m];if(a[m]<_.length){for(var b=a[m];b<_.length;++b){var S=_[b];if(r[S]<0){r[S]=i[S]=u,n[S]=!0,u+=1,g.push(S),w.push(S);break}else n[S]&&(i[m]=Math.min(i[m],i[S])|0);o[S]>=0&&s[m].push(o[S])}a[m]=b}else{if(i[m]===r[m]){for(var x=[],A=[],T=0,b=g.length-1;b>=0;--b){var y=g[b];if(n[y]=!1,x.push(y),A.push(s[y]),T+=s[y].length,o[y]=c.length,y===m){g.length=b;break}}c.push(x);for(var E=new Array(T),b=0;b{"use strict";var k8r=ese(),h6=tt(),C8r=eg().wrap,a8=h6.isArrayOrTypedArray,hct=h6.isIndex,dct=es();function D8r(e){var t=e.node,r=e.link,i=[],n=a8(r.color),a=a8(r.hovercolor),o=a8(r.customdata),s={},l={},u=r.colorscales.length,c;for(c=0;cd&&(d=r.source[c]),r.target[c]>d&&(d=r.target[c]);var v=d+1;e.node._count=v;var m,g=e.node.groups,w={};for(c=0;c0&&hct(T,v)&&hct(y,v)&&!(w.hasOwnProperty(T)&&w.hasOwnProperty(y)&&w[T]===w[y])){w.hasOwnProperty(y)&&(y=w[y]),w.hasOwnProperty(T)&&(T=w[T]),T=+T,y=+y,s[T]=s[y]=!0;var E="";r.label&&r.label[c]&&(E=r.label[c]);var M=null;E&&l.hasOwnProperty(E)&&(M=l[E]),i.push({pointNumber:c,label:E,color:n?r.color[c]:r.color,hovercolor:a?r.hovercolor[c]:r.hovercolor,customdata:o?r.customdata[c]:r.customdata,concentrationscale:M,source:T,target:y,value:+A}),x.source.push(T),x.target.push(y)}}var C=v+g.length,k=a8(t.color),D=a8(t.customdata),F=[];for(c=0;cv-1,childrenNodes:[],pointNumber:c,label:P,color:k?t.color[c]:t.color,customdata:D?t.customdata[c]:t.customdata})}var R=!1;return F8r(C,x.source,x.target)&&(R=!0),{circular:R,links:i,nodes:F,groups:g,groupLookup:w}}function F8r(e,t,r){for(var i=h6.init2dArray(e,0),n=0;n1})}pct.exports=function(t,r){var i=D8r(r);return C8r({circular:i.circular,_nodes:i.nodes,_links:i.links,_groups:i.groups,_groupLookup:i.groupLookup})}});var mct=W((wO,gct)=>{(function(e,t){typeof wO=="object"&&typeof gct!="undefined"?t(wO):(e=e||self,t(e.d3=e.d3||{}))})(wO,function(e){"use strict";function t(A){var T=+this._x.call(null,A),y=+this._y.call(null,A);return r(this.cover(T,y),T,y,A)}function r(A,T,y,E){if(isNaN(T)||isNaN(y))return A;var M,C=A._root,k={data:E},D=A._x0,F=A._y0,P=A._x1,R=A._y1,L,I,B,O,$,X,K,G;if(!C)return A._root=k,A;for(;C.length;)if(($=T>=(L=(D+P)/2))?D=L:P=L,(X=y>=(I=(F+R)/2))?F=I:R=I,M=C,!(C=C[K=X<<1|$]))return M[K]=k,A;if(B=+A._x.call(null,C.data),O=+A._y.call(null,C.data),T===B&&y===O)return k.next=C,M?M[K]=k:A._root=k,A;do M=M?M[K]=new Array(4):A._root=new Array(4),($=T>=(L=(D+P)/2))?D=L:P=L,(X=y>=(I=(F+R)/2))?F=I:R=I;while((K=X<<1|$)===(G=(O>=I)<<1|B>=L));return M[G]=C,M[K]=k,A}function i(A){var T,y,E=A.length,M,C,k=new Array(E),D=new Array(E),F=1/0,P=1/0,R=-1/0,L=-1/0;for(y=0;yR&&(R=M),CL&&(L=C));if(F>R||P>L)return this;for(this.cover(F,P).cover(R,L),y=0;yA||A>=M||E>T||T>=C;)switch(P=(TR||(D=O.y0)>L||(F=O.x1)=K)<<1|A>=X)&&(O=I[I.length-1],I[I.length-1]=I[I.length-1-$],I[I.length-1-$]=O)}else{var G=A-+this._x.call(null,B.data),q=T-+this._y.call(null,B.data),J=G*G+q*q;if(J=(I=(k+F)/2))?k=I:F=I,($=L>=(B=(D+P)/2))?D=B:P=B,T=y,!(y=y[X=$<<1|O]))return this;if(!y.length)break;(T[X+1&3]||T[X+2&3]||T[X+3&3])&&(E=T,K=X)}for(;y.data!==A;)if(M=y,!(y=y.next))return this;return(C=y.next)&&delete y.next,M?(C?M.next=C:delete M.next,this):T?(C?T[X]=C:delete T[X],(y=T[0]||T[1]||T[2]||T[3])&&y===(T[3]||T[2]||T[1]||T[0])&&!y.length&&(E?E[K]=y:this._root=y),this):(this._root=C,this)}function c(A){for(var T=0,y=A.length;T{(function(e,t){t(typeof TO=="object"&&typeof yct!="undefined"?TO:e.d3=e.d3||{})})(TO,(function(e){"use strict";var t="$";function r(){}r.prototype=i.prototype={constructor:r,has:function(v){return t+v in this},get:function(v){return this[t+v]},set:function(v,m){return this[t+v]=m,this},remove:function(v){var m=t+v;return m in this&&delete this[m]},clear:function(){for(var v in this)v[0]===t&&delete this[v]},keys:function(){var v=[];for(var m in this)m[0]===t&&v.push(m.slice(1));return v},values:function(){var v=[];for(var m in this)m[0]===t&&v.push(this[m]);return v},entries:function(){var v=[];for(var m in this)m[0]===t&&v.push({key:m.slice(1),value:this[m]});return v},size:function(){var v=0;for(var m in this)m[0]===t&&++v;return v},empty:function(){for(var v in this)if(v[0]===t)return!1;return!0},each:function(v){for(var m in this)m[0]===t&&v(this[m],m.slice(1),this)}};function i(v,m){var g=new r;if(v instanceof r)v.each(function(x,A){g.set(A,x)});else if(Array.isArray(v)){var w=-1,_=v.length,b;if(m==null)for(;++w<_;)g.set(w,v[w]);else for(;++w<_;)g.set(m(b=v[w],w,v),b)}else if(v)for(var S in v)g.set(S,v[S]);return g}function n(){var v=[],m=[],g,w,_;function b(x,A,T,y){if(A>=v.length)return g!=null&&x.sort(g),w!=null?w(x):x;for(var E=-1,M=x.length,C=v[A++],k,D,F=i(),P,R=T();++Ev.length)return x;var T,y=m[A-1];return w!=null&&A>=v.length?T=x.entries():(T=[],x.each(function(E,M){T.push({key:M,values:S(E,A)})})),y!=null?T.sort(function(E,M){return y(E.key,M.key)}):T}return _={object:function(x){return b(x,0,a,o)},map:function(x){return b(x,0,s,l)},entries:function(x){return S(b(x,0,s,l),0)},key:function(x){return v.push(x),_},sortKeys:function(x){return m[v.length-1]=x,_},sortValues:function(x){return g=x,_},rollup:function(x){return w=x,_}}}function a(){return{}}function o(v,m,g){v[m]=g}function s(){return i()}function l(v,m,g){v.set(m,g)}function u(){}var c=i.prototype;u.prototype=f.prototype={constructor:u,has:c.has,add:function(v){return v+="",this[t+v]=v,this},remove:c.remove,clear:c.clear,values:c.keys,size:c.size,empty:c.empty,each:c.each};function f(v,m){var g=new u;if(v instanceof u)v.each(function(b){g.add(b)});else if(v){var w=-1,_=v.length;if(m==null)for(;++w<_;)g.add(v[w]);else for(;++w<_;)g.add(m(v[w],w,v))}return g}function h(v){var m=[];for(var g in v)m.push(g);return m}function p(v){var m=[];for(var g in v)m.push(v[g]);return m}function d(v){var m=[];for(var g in v)m.push({key:g,value:v[g]});return m}e.nest=n,e.set=f,e.map=i,e.keys=h,e.values=p,e.entries=d,Object.defineProperty(e,"__esModule",{value:!0})}))});var bct=W((AO,xct)=>{(function(e,t){typeof AO=="object"&&typeof xct!="undefined"?t(AO):(e=e||self,t(e.d3=e.d3||{}))})(AO,function(e){"use strict";var t={value:function(){}};function r(){for(var s=0,l=arguments.length,u={},c;s=0&&(c=u.slice(f+1),u=u.slice(0,f)),u&&!l.hasOwnProperty(u))throw new Error("unknown type: "+u);return{type:u,name:c}})}i.prototype=r.prototype={constructor:i,on:function(s,l){var u=this._,c=n(s+"",u),f,h=-1,p=c.length;if(arguments.length<2){for(;++h0)for(var u=new Array(f),c=0,f,h;c{(function(e,t){typeof MO=="object"&&typeof _ct!="undefined"?t(MO):(e=e||self,t(e.d3=e.d3||{}))})(MO,function(e){"use strict";var t=0,r=0,i=0,n=1e3,a,o,s=0,l=0,u=0,c=typeof performance=="object"&&performance.now?performance:Date,f=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(A){setTimeout(A,17)};function h(){return l||(f(p),l=c.now()+u)}function p(){l=0}function d(){this._call=this._time=this._next=null}d.prototype=v.prototype={constructor:d,restart:function(A,T,y){if(typeof A!="function")throw new TypeError("callback is not a function");y=(y==null?h():+y)+(T==null?0:+T),!this._next&&o!==this&&(o?o._next=this:a=this,o=this),this._call=A,this._time=y,b()},stop:function(){this._call&&(this._call=null,this._time=1/0,b())}};function v(A,T,y){var E=new d;return E.restart(A,T,y),E}function m(){h(),++t;for(var A=a,T;A;)(T=l-A._time)>=0&&A._call.call(null,T),A=A._next;--t}function g(){l=(s=c.now())+u,t=r=0;try{m()}finally{t=0,_(),l=0}}function w(){var A=c.now(),T=A-s;T>n&&(u-=T,s=A)}function _(){for(var A,T=a,y,E=1/0;T;)T._call?(E>T._time&&(E=T._time),A=T,T=T._next):(y=T._next,T._next=null,T=A?A._next=y:a=y);o=A,b(E)}function b(A){if(!t){r&&(r=clearTimeout(r));var T=A-l;T>24?(A<1/0&&(r=setTimeout(g,A-c.now()-u)),i&&(i=clearInterval(i))):(i||(s=c.now(),i=setInterval(w,n)),t=1,f(g))}}function S(A,T,y){var E=new d;return T=T==null?0:+T,E.restart(function(M){E.stop(),A(M+T)},T,y),E}function x(A,T,y){var E=new d,M=T;return T==null?(E.restart(A,T,y),E):(T=+T,y=y==null?h():+y,E.restart(function C(k){k+=M,E.restart(C,M+=T,y),A(k)},T,y),E)}e.interval=x,e.now=h,e.timeout=S,e.timer=v,e.timerFlush=m,Object.defineProperty(e,"__esModule",{value:!0})})});var Act=W((SO,Tct)=>{(function(e,t){typeof SO=="object"&&typeof Tct!="undefined"?t(SO,mct(),tse(),bct(),wct()):t(e.d3=e.d3||{},e.d3,e.d3,e.d3,e.d3)})(SO,(function(e,t,r,i,n){"use strict";function a(A,T){var y;A==null&&(A=0),T==null&&(T=0);function E(){var M,C=y.length,k,D=0,F=0;for(M=0;ML.index){var Q=I-Y.x-Y.vx,te=B-Y.y-Y.vy,ue=Q*Q+te*te;ueI+j||NB+j||VF.r&&(F.r=F[P].r)}function D(){if(T){var F,P=T.length,R;for(y=new Array(P),F=0;F1?($==null?D.remove(O):D.set(O,B($)),T):D.get(O)},find:function(O,$,X){var K=0,G=A.length,q,J,N,V,Y;for(X==null?X=1/0:X*=X,K=0;K1?(P.on(O,$),T):P.on(O)}}}function _(){var A,T,y,E=o(-30),M,C=1,k=1/0,D=.81;function F(I){var B,O=A.length,$=t.quadtree(A,d,v).visitAfter(R);for(y=I,B=0;B=k)return;(I.data!==T||I.next)&&(X===0&&(X=s(),q+=X*X),K===0&&(K=s(),q+=K*K),q{(function(e,t){typeof EO=="object"&&typeof Mct!="undefined"?t(EO):(e=typeof globalThis!="undefined"?globalThis:e||self,t(e.d3=e.d3||{}))})(EO,(function(e){"use strict";function t(Ge,Qe){return GeQe?1:Ge>=Qe?0:NaN}function r(Ge){let Qe=Ge,nt=Ge;Ge.length===1&&(Qe=(hr,Ut)=>Ge(hr)-Ut,nt=i(Ge));function gt(hr,Ut,Lr,jr){for(Lr==null&&(Lr=0),jr==null&&(jr=hr.length);Lr>>1;nt(hr[ii],Ut)<0?Lr=ii+1:jr=ii}return Lr}function ht(hr,Ut,Lr,jr){for(Lr==null&&(Lr=0),jr==null&&(jr=hr.length);Lr>>1;nt(hr[ii],Ut)>0?jr=ii:Lr=ii+1}return Lr}function Ft(hr,Ut,Lr,jr){Lr==null&&(Lr=0),jr==null&&(jr=hr.length);let ii=gt(hr,Ut,Lr,jr-1);return ii>Lr&&Qe(hr[ii-1],Ut)>-Qe(hr[ii],Ut)?ii-1:ii}return{left:gt,center:Ft,right:ht}}function i(Ge){return(Qe,nt)=>t(Ge(Qe),nt)}function n(Ge){return Ge===null?NaN:+Ge}function*a(Ge,Qe){if(Qe===void 0)for(let nt of Ge)nt!=null&&(nt=+nt)>=nt&&(yield nt);else{let nt=-1;for(let gt of Ge)(gt=Qe(gt,++nt,Ge))!=null&&(gt=+gt)>=gt&&(yield gt)}}let o=r(t),s=o.right,l=o.left,u=r(n).center;function c(Ge,Qe){let nt=0;if(Qe===void 0)for(let gt of Ge)gt!=null&&(gt=+gt)>=gt&&++nt;else{let gt=-1;for(let ht of Ge)(ht=Qe(ht,++gt,Ge))!=null&&(ht=+ht)>=ht&&++nt}return nt}function f(Ge){return Ge.length|0}function h(Ge){return!(Ge>0)}function p(Ge){return typeof Ge!="object"||"length"in Ge?Ge:Array.from(Ge)}function d(Ge){return Qe=>Ge(...Qe)}function v(...Ge){let Qe=typeof Ge[Ge.length-1]=="function"&&d(Ge.pop());Ge=Ge.map(p);let nt=Ge.map(f),gt=Ge.length-1,ht=new Array(gt+1).fill(0),Ft=[];if(gt<0||nt.some(h))return Ft;for(;;){Ft.push(ht.map((Ut,Lr)=>Ge[Lr][Ut]));let hr=gt;for(;++ht[hr]===nt[hr];){if(hr===0)return Qe?Ft.map(Qe):Ft;ht[hr--]=0}}}function m(Ge,Qe){var nt=0,gt=0;return Float64Array.from(Ge,Qe===void 0?ht=>nt+=+ht||0:ht=>nt+=+Qe(ht,gt++,Ge)||0)}function g(Ge,Qe){return QeGe?1:Qe>=Ge?0:NaN}function w(Ge,Qe){let nt=0,gt,ht=0,Ft=0;if(Qe===void 0)for(let hr of Ge)hr!=null&&(hr=+hr)>=hr&&(gt=hr-ht,ht+=gt/++nt,Ft+=gt*(hr-ht));else{let hr=-1;for(let Ut of Ge)(Ut=Qe(Ut,++hr,Ge))!=null&&(Ut=+Ut)>=Ut&&(gt=Ut-ht,ht+=gt/++nt,Ft+=gt*(Ut-ht))}if(nt>1)return Ft/(nt-1)}function _(Ge,Qe){let nt=w(Ge,Qe);return nt&&Math.sqrt(nt)}function b(Ge,Qe){let nt,gt;if(Qe===void 0)for(let ht of Ge)ht!=null&&(nt===void 0?ht>=ht&&(nt=gt=ht):(nt>ht&&(nt=ht),gt=Ft&&(nt=gt=Ft):(nt>Ft&&(nt=Ft),gt0){for(hr=Qe[--nt];nt>0&&(gt=hr,ht=Qe[--nt],hr=gt+ht,Ft=ht-(hr-gt),!Ft););nt>0&&(Ft<0&&Qe[nt-1]<0||Ft>0&&Qe[nt-1]>0)&&(ht=Ft*2,gt=hr+ht,ht==gt-hr&&(hr=gt))}return hr}}function x(Ge,Qe){let nt=new S;if(Qe===void 0)for(let gt of Ge)(gt=+gt)&&nt.add(gt);else{let gt=-1;for(let ht of Ge)(ht=+Qe(ht,++gt,Ge))&&nt.add(ht)}return+nt}function A(Ge,Qe){let nt=new S,gt=-1;return Float64Array.from(Ge,Qe===void 0?ht=>nt.add(+ht||0):ht=>nt.add(+Qe(ht,++gt,Ge)||0))}class T extends Map{constructor(Qe,nt=k){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:nt}}),Qe!=null)for(let[gt,ht]of Qe)this.set(gt,ht)}get(Qe){return super.get(E(this,Qe))}has(Qe){return super.has(E(this,Qe))}set(Qe,nt){return super.set(M(this,Qe),nt)}delete(Qe){return super.delete(C(this,Qe))}}class y extends Set{constructor(Qe,nt=k){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:nt}}),Qe!=null)for(let gt of Qe)this.add(gt)}has(Qe){return super.has(E(this,Qe))}add(Qe){return super.add(M(this,Qe))}delete(Qe){return super.delete(C(this,Qe))}}function E({_intern:Ge,_key:Qe},nt){let gt=Qe(nt);return Ge.has(gt)?Ge.get(gt):nt}function M({_intern:Ge,_key:Qe},nt){let gt=Qe(nt);return Ge.has(gt)?Ge.get(gt):(Ge.set(gt,nt),nt)}function C({_intern:Ge,_key:Qe},nt){let gt=Qe(nt);return Ge.has(gt)&&(nt=Ge.get(nt),Ge.delete(gt)),nt}function k(Ge){return Ge!==null&&typeof Ge=="object"?Ge.valueOf():Ge}function D(Ge){return Ge}function F(Ge,...Qe){return $(Ge,D,D,Qe)}function P(Ge,...Qe){return $(Ge,Array.from,D,Qe)}function R(Ge,Qe,...nt){return $(Ge,D,Qe,nt)}function L(Ge,Qe,...nt){return $(Ge,Array.from,Qe,nt)}function I(Ge,...Qe){return $(Ge,D,O,Qe)}function B(Ge,...Qe){return $(Ge,Array.from,O,Qe)}function O(Ge){if(Ge.length!==1)throw new Error("duplicate key");return Ge[0]}function $(Ge,Qe,nt,gt){return(function ht(Ft,hr){if(hr>=gt.length)return nt(Ft);let Ut=new T,Lr=gt[hr++],jr=-1;for(let ii of Ft){let Fr=Lr(ii,++jr,Ft),Ii=Ut.get(Fr);Ii?Ii.push(ii):Ut.set(Fr,[ii])}for(let[ii,Fr]of Ut)Ut.set(ii,ht(Fr,hr));return Qe(Ut)})(Ge,0)}function X(Ge,Qe){return Array.from(Qe,nt=>Ge[nt])}function K(Ge,...Qe){if(typeof Ge[Symbol.iterator]!="function")throw new TypeError("values is not iterable");Ge=Array.from(Ge);let[nt=t]=Qe;if(nt.length===1||Qe.length>1){let gt=Uint32Array.from(Ge,(ht,Ft)=>Ft);return Qe.length>1?(Qe=Qe.map(ht=>Ge.map(ht)),gt.sort((ht,Ft)=>{for(let hr of Qe){let Ut=t(hr[ht],hr[Ft]);if(Ut)return Ut}})):(nt=Ge.map(nt),gt.sort((ht,Ft)=>t(nt[ht],nt[Ft]))),X(Ge,gt)}return Ge.sort(nt)}function G(Ge,Qe,nt){return(Qe.length===1?K(R(Ge,Qe,nt),(([gt,ht],[Ft,hr])=>t(ht,hr)||t(gt,Ft))):K(F(Ge,nt),(([gt,ht],[Ft,hr])=>Qe(ht,hr)||t(gt,Ft)))).map(([gt])=>gt)}var q=Array.prototype,J=q.slice;function N(Ge){return function(){return Ge}}var V=Math.sqrt(50),Y=Math.sqrt(10),H=Math.sqrt(2);function j(Ge,Qe,nt){var gt,ht=-1,Ft,hr,Ut;if(Qe=+Qe,Ge=+Ge,nt=+nt,Ge===Qe&&nt>0)return[Ge];if((gt=Qe0){let Lr=Math.round(Ge/Ut),jr=Math.round(Qe/Ut);for(Lr*UtQe&&--jr,hr=new Array(Ft=jr-Lr+1);++htQe&&--jr,hr=new Array(Ft=jr-Lr+1);++ht=0?(Ft>=V?10:Ft>=Y?5:Ft>=H?2:1)*Math.pow(10,ht):-Math.pow(10,-ht)/(Ft>=V?10:Ft>=Y?5:Ft>=H?2:1)}function te(Ge,Qe,nt){var gt=Math.abs(Qe-Ge)/Math.max(0,nt),ht=Math.pow(10,Math.floor(Math.log(gt)/Math.LN10)),Ft=gt/ht;return Ft>=V?ht*=10:Ft>=Y?ht*=5:Ft>=H&&(ht*=2),Qe0?(Ge=Math.floor(Ge/ht)*ht,Qe=Math.ceil(Qe/ht)*ht):ht<0&&(Ge=Math.ceil(Ge*ht)/ht,Qe=Math.floor(Qe*ht)/ht),gt=ht}}function ge(Ge){return Math.ceil(Math.log(c(Ge))/Math.LN2)+1}function Ee(){var Ge=D,Qe=b,nt=ge;function gt(ht){Array.isArray(ht)||(ht=Array.from(ht));var Ft,hr=ht.length,Ut,Lr=new Array(hr);for(Ft=0;Ft=Fr)if(mo>=Fr&&Qe===b){let zn=Q(ii,Fr,pn);isFinite(zn)&&(zn>0?Fr=(Math.floor(Fr/zn)+1)*zn:zn<0&&(Fr=(Math.ceil(Fr*-zn)+1)/-zn))}else Ii.pop()}for(var Xi=Ii.length;Ii[0]<=ii;)Ii.shift(),--Xi;for(;Ii[Xi-1]>Fr;)Ii.pop(),--Xi;var ln=new Array(Xi+1),la;for(Ft=0;Ft<=Xi;++Ft)la=ln[Ft]=[],la.x0=Ft>0?Ii[Ft-1]:ii,la.x1=Ft=gt)&&(nt=gt);else{let gt=-1;for(let ht of Ge)(ht=Qe(ht,++gt,Ge))!=null&&(nt=ht)&&(nt=ht)}return nt}function ce(Ge,Qe){let nt;if(Qe===void 0)for(let gt of Ge)gt!=null&&(nt>gt||nt===void 0&>>=gt)&&(nt=gt);else{let gt=-1;for(let ht of Ge)(ht=Qe(ht,++gt,Ge))!=null&&(nt>ht||nt===void 0&&ht>=ht)&&(nt=ht)}return nt}function oe(Ge,Qe,nt=0,gt=Ge.length-1,ht=t){for(;gt>nt;){if(gt-nt>600){let Lr=gt-nt+1,jr=Qe-nt+1,ii=Math.log(Lr),Fr=.5*Math.exp(2*ii/3),Ii=.5*Math.sqrt(ii*Fr*(Lr-Fr)/Lr)*(jr-Lr/2<0?-1:1),Xi=Math.max(nt,Math.floor(Qe-jr*Fr/Lr+Ii)),ln=Math.min(gt,Math.floor(Qe+(Lr-jr)*Fr/Lr+Ii));oe(Ge,Qe,Xi,ln,ht)}let Ft=Ge[Qe],hr=nt,Ut=gt;for(Se(Ge,nt,Qe),ht(Ge[gt],Ft)>0&&Se(Ge,nt,gt);hr0;)--Ut}ht(Ge[nt],Ft)===0?Se(Ge,nt,Ut):(++Ut,Se(Ge,Ut,gt)),Ut<=Qe&&(nt=Ut+1),Qe<=Ut&&(gt=Ut-1)}return Ge}function Se(Ge,Qe,nt){let gt=Ge[Qe];Ge[Qe]=Ge[nt],Ge[nt]=gt}function be(Ge,Qe,nt){if(Ge=Float64Array.from(a(Ge,nt)),!!(gt=Ge.length)){if((Qe=+Qe)<=0||gt<2)return ce(Ge);if(Qe>=1)return xe(Ge);var gt,ht=(gt-1)*Qe,Ft=Math.floor(ht),hr=xe(oe(Ge,Ft).subarray(0,Ft+1)),Ut=ce(Ge.subarray(Ft+1));return hr+(Ut-hr)*(ht-Ft)}}function fe(Ge,Qe,nt=n){if(gt=Ge.length){if((Qe=+Qe)<=0||gt<2)return+nt(Ge[0],0,Ge);if(Qe>=1)return+nt(Ge[gt-1],gt-1,Ge);var gt,ht=(gt-1)*Qe,Ft=Math.floor(ht),hr=+nt(Ge[Ft],Ft,Ge),Ut=+nt(Ge[Ft+1],Ft+1,Ge);return hr+(Ut-hr)*(ht-Ft)}}function ee(Ge,Qe,nt){return Math.ceil((nt-Qe)/(2*(be(Ge,.75)-be(Ge,.25))*Math.pow(c(Ge),-1/3)))}function ae(Ge,Qe,nt){return Math.ceil((nt-Qe)/(3.5*_(Ge)*Math.pow(c(Ge),-1/3)))}function _e(Ge,Qe){let nt,gt=-1,ht=-1;if(Qe===void 0)for(let Ft of Ge)++ht,Ft!=null&&(nt=Ft)&&(nt=Ft,gt=ht);else for(let Ft of Ge)(Ft=Qe(Ft,++ht,Ge))!=null&&(nt=Ft)&&(nt=Ft,gt=ht);return gt}function re(Ge,Qe){let nt=0,gt=0;if(Qe===void 0)for(let ht of Ge)ht!=null&&(ht=+ht)>=ht&&(++nt,gt+=ht);else{let ht=-1;for(let Ft of Ge)(Ft=Qe(Ft,++ht,Ge))!=null&&(Ft=+Ft)>=Ft&&(++nt,gt+=Ft)}if(nt)return gt/nt}function pe(Ge,Qe){return be(Ge,.5,Qe)}function*Te(Ge){for(let Qe of Ge)yield*Kle(Qe)}function Ce(Ge){return Array.from(Te(Ge))}function ze(Ge,Qe){let nt,gt=-1,ht=-1;if(Qe===void 0)for(let Ft of Ge)++ht,Ft!=null&&(nt>Ft||nt===void 0&&Ft>=Ft)&&(nt=Ft,gt=ht);else for(let Ft of Ge)(Ft=Qe(Ft,++ht,Ge))!=null&&(nt>Ft||nt===void 0&&Ft>=Ft)&&(nt=Ft,gt=ht);return gt}function we(Ge,Qe=me){let nt=[],gt,ht=!1;for(let Ft of Ge)ht&&nt.push(Qe(gt,Ft)),gt=Ft,ht=!0;return nt}function me(Ge,Qe){return[Ge,Qe]}function Le(Ge,Qe,nt){Ge=+Ge,Qe=+Qe,nt=(ht=arguments.length)<2?(Qe=Ge,Ge=0,1):ht<3?1:+nt;for(var gt=-1,ht=Math.max(0,Math.ceil((Qe-Ge)/nt))|0,Ft=new Array(ht);++gt0:t(hr,hr)===0)&&(nt=Ft,ht=hr,gt=!0)}}else for(let ht of Ge)(gt?Qe(ht,nt)>0:Qe(ht,ht)===0)&&(nt=ht,gt=!0);return nt}function mt(Ge,Qe=t){if(Qe.length===1)return _e(Ge,Qe);let nt,gt=-1,ht=-1;for(let Ft of Ge)++ht,(gt<0?Qe(Ft,Ft)===0:Qe(Ft,nt)>0)&&(nt=Ft,gt=ht);return gt}function dt(Ge,Qe){let nt=Je(Ge,Qe);return nt<0?void 0:nt}var St=Ke(Math.random);function Ke(Ge){return function(nt,gt=0,ht=nt.length){let Ft=ht-(gt=+gt);for(;Ft;){let hr=Ge()*Ft--|0,Ut=nt[Ft+gt];nt[Ft+gt]=nt[hr+gt],nt[hr+gt]=Ut}return nt}}function bt(Ge,Qe){let nt=0;if(Qe===void 0)for(let gt of Ge)(gt=+gt)&&(nt+=gt);else{let gt=-1;for(let ht of Ge)(ht=+Qe(ht,++gt,Ge))&&(nt+=ht)}return nt}function pt(Ge){if(!(Ft=Ge.length))return[];for(var Qe=-1,nt=ce(Ge,Oe),gt=new Array(nt);++QeQe(nt,gt,Ge))}function st(Ge,Qe,nt){if(typeof Qe!="function")throw new TypeError("reducer is not a function");let gt=Ge[Symbol.iterator](),ht,Ft,hr=-1;if(arguments.length<3){if({done:ht,value:nt}=gt.next(),ht)return;++hr}for(;{done:ht,value:Ft}=gt.next(),!ht;)nt=Qe(nt,Ft,++hr,Ge);return nt}function _t(Ge){if(typeof Ge[Symbol.iterator]!="function")throw new TypeError("values is not iterable");return Array.from(Ge).reverse()}function Wt(Ge,...Qe){Ge=new Set(Ge);for(let nt of Qe)for(let gt of nt)Ge.delete(gt);return Ge}function Ht(Ge,Qe){let nt=Qe[Symbol.iterator](),gt=new Set;for(let ht of Ge){if(gt.has(ht))return!1;let Ft,hr;for(;({value:Ft,done:hr}=nt.next())&&!hr;){if(Object.is(ht,Ft))return!1;gt.add(Ft)}}return!0}function fr(Ge){return Ge instanceof Set?Ge:new Set(Ge)}function lr(Ge,...Qe){Ge=new Set(Ge),Qe=Qe.map(fr);e:for(let nt of Ge)for(let gt of Qe)if(!gt.has(nt)){Ge.delete(nt);continue e}return Ge}function Ot(Ge,Qe){let nt=Ge[Symbol.iterator](),gt=new Set;for(let ht of Qe){if(gt.has(ht))continue;let Ft,hr;for(;{value:Ft,done:hr}=nt.next();){if(hr)return!1;if(gt.add(Ft),Object.is(ht,Ft))break}}return!0}function Jt(Ge,Qe){return Ot(Qe,Ge)}function Cr(...Ge){let Qe=new Set;for(let nt of Ge)for(let gt of nt)Qe.add(gt);return Qe}e.Adder=S,e.InternMap=T,e.InternSet=y,e.ascending=t,e.bin=Ee,e.bisect=s,e.bisectCenter=u,e.bisectLeft=l,e.bisectRight=s,e.bisector=r,e.count=c,e.cross=v,e.cumsum=m,e.descending=g,e.deviation=_,e.difference=Wt,e.disjoint=Ht,e.every=je,e.extent=b,e.fcumsum=A,e.filter=Ie,e.fsum=x,e.greatest=rt,e.greatestIndex=mt,e.group=F,e.groupSort=G,e.groups=P,e.histogram=Ee,e.index=I,e.indexes=B,e.intersection=lr,e.least=Ne,e.leastIndex=Je,e.map=Ve,e.max=xe,e.maxIndex=_e,e.mean=re,e.median=pe,e.merge=Ce,e.min=ce,e.minIndex=ze,e.nice=ue,e.pairs=we,e.permute=X,e.quantile=be,e.quantileSorted=fe,e.quickselect=oe,e.range=Le,e.reduce=st,e.reverse=_t,e.rollup=R,e.rollups=L,e.scan=dt,e.shuffle=St,e.shuffler=Ke,e.some=$e,e.sort=K,e.subset=Jt,e.sum=bt,e.superset=Ot,e.thresholdFreedmanDiaconis=ee,e.thresholdScott=ae,e.thresholdSturges=ge,e.tickIncrement=Q,e.tickStep=te,e.ticks=j,e.transpose=pt,e.union=Cr,e.variance=w,e.zip=Ue,Object.defineProperty(e,"__esModule",{value:!0})}))});var kct=W((kO,Ect)=>{(function(e,t){typeof kO=="object"&&typeof Ect!="undefined"?t(kO):(e=e||self,t(e.d3=e.d3||{}))})(kO,function(e){"use strict";var t=Math.PI,r=2*t,i=1e-6,n=r-i;function a(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function o(){return new a}a.prototype=o.prototype={constructor:a,moveTo:function(s,l){this._+="M"+(this._x0=this._x1=+s)+","+(this._y0=this._y1=+l)},closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(s,l){this._+="L"+(this._x1=+s)+","+(this._y1=+l)},quadraticCurveTo:function(s,l,u,c){this._+="Q"+ +s+","+ +l+","+(this._x1=+u)+","+(this._y1=+c)},bezierCurveTo:function(s,l,u,c,f,h){this._+="C"+ +s+","+ +l+","+ +u+","+ +c+","+(this._x1=+f)+","+(this._y1=+h)},arcTo:function(s,l,u,c,f){s=+s,l=+l,u=+u,c=+c,f=+f;var h=this._x1,p=this._y1,d=u-s,v=c-l,m=h-s,g=p-l,w=m*m+g*g;if(f<0)throw new Error("negative radius: "+f);if(this._x1===null)this._+="M"+(this._x1=s)+","+(this._y1=l);else if(w>i)if(!(Math.abs(g*d-v*m)>i)||!f)this._+="L"+(this._x1=s)+","+(this._y1=l);else{var _=u-h,b=c-p,S=d*d+v*v,x=_*_+b*b,A=Math.sqrt(S),T=Math.sqrt(w),y=f*Math.tan((t-Math.acos((S+w-x)/(2*A*T)))/2),E=y/T,M=y/A;Math.abs(E-1)>i&&(this._+="L"+(s+E*m)+","+(l+E*g)),this._+="A"+f+","+f+",0,0,"+ +(g*_>m*b)+","+(this._x1=s+M*d)+","+(this._y1=l+M*v)}},arc:function(s,l,u,c,f,h){s=+s,l=+l,u=+u,h=!!h;var p=u*Math.cos(c),d=u*Math.sin(c),v=s+p,m=l+d,g=1^h,w=h?c-f:f-c;if(u<0)throw new Error("negative radius: "+u);this._x1===null?this._+="M"+v+","+m:(Math.abs(this._x1-v)>i||Math.abs(this._y1-m)>i)&&(this._+="L"+v+","+m),u&&(w<0&&(w=w%r+r),w>n?this._+="A"+u+","+u+",0,1,"+g+","+(s-p)+","+(l-d)+"A"+u+","+u+",0,1,"+g+","+(this._x1=v)+","+(this._y1=m):w>i&&(this._+="A"+u+","+u+",0,"+ +(w>=t)+","+g+","+(this._x1=s+u*Math.cos(f))+","+(this._y1=l+u*Math.sin(f))))},rect:function(s,l,u,c){this._+="M"+(this._x0=this._x1=+s)+","+(this._y0=this._y1=+l)+"h"+ +u+"v"+ +c+"h"+-u+"Z"},toString:function(){return this._}},e.path=o,Object.defineProperty(e,"__esModule",{value:!0})})});var rse=W((CO,Cct)=>{(function(e,t){typeof CO=="object"&&typeof Cct!="undefined"?t(CO,kct()):(e=e||self,t(e.d3=e.d3||{},e.d3))})(CO,function(e,t){"use strict";function r(Fe){return function(){return Fe}}var i=Math.abs,n=Math.atan2,a=Math.cos,o=Math.max,s=Math.min,l=Math.sin,u=Math.sqrt,c=1e-12,f=Math.PI,h=f/2,p=2*f;function d(Fe){return Fe>1?0:Fe<-1?f:Math.acos(Fe)}function v(Fe){return Fe>=1?h:Fe<=-1?-h:Math.asin(Fe)}function m(Fe){return Fe.innerRadius}function g(Fe){return Fe.outerRadius}function w(Fe){return Fe.startAngle}function _(Fe){return Fe.endAngle}function b(Fe){return Fe&&Fe.padAngle}function S(Fe,ot,lt,kt,er,zt,Ar,Zt){var wr=lt-Fe,Kr=kt-ot,ni=Ar-er,Si=Zt-zt,un=Si*wr-ni*Kr;if(!(un*unys*ys+tl*tl&&(ss=Go,No=ho),{cx:ss,cy:No,x01:-ni,y01:-Si,x11:ss*(er/ms-1),y11:No*(er/ms-1)}}function A(){var Fe=m,ot=g,lt=r(0),kt=null,er=w,zt=_,Ar=b,Zt=null;function wr(){var Kr,ni,Si=+Fe.apply(this,arguments),un=+ot.apply(this,arguments),$n=er.apply(this,arguments)-h,wn=zt.apply(this,arguments)-h,ma=i(wn-$n),Zn=wn>$n;if(Zt||(Zt=Kr=t.path()),unc))Zt.moveTo(0,0);else if(ma>p-c)Zt.moveTo(un*a($n),un*l($n)),Zt.arc(0,0,un,$n,wn,!Zn),Si>c&&(Zt.moveTo(Si*a(wn),Si*l(wn)),Zt.arc(0,0,Si,wn,$n,Zn));else{var io=$n,fo=wn,ko=$n,Oo=wn,ms=ma,os=ma,Co=Ar.apply(this,arguments)/2,ss=Co>c&&(kt?+kt.apply(this,arguments):u(Si*Si+un*un)),No=s(i(un-Si)/2,+lt.apply(this,arguments)),Go=No,ho=No,qn,_a;if(ss>c){var ys=v(ss/Si*l(Co)),tl=v(ss/un*l(Co));(ms-=ys*2)>c?(ys*=Zn?1:-1,ko+=ys,Oo-=ys):(ms=0,ko=Oo=($n+wn)/2),(os-=tl*2)>c?(tl*=Zn?1:-1,io+=tl,fo-=tl):(os=0,io=fo=($n+wn)/2)}var rl=un*a(io),jl=un*l(io),il=Si*a(Oo),hu=Si*l(Oo);if(No>c){var Mu=un*a(fo),Su=un*l(fo),yc=Si*a(ko),$l=Si*l(ko),Za;if(mac?ho>c?(qn=x(yc,$l,rl,jl,un,ho,Zn),_a=x(Mu,Su,il,hu,un,ho,Zn),Zt.moveTo(qn.cx+qn.x01,qn.cy+qn.y01),hoc)||!(ms>c)?Zt.lineTo(il,hu):Go>c?(qn=x(il,hu,Mu,Su,Si,-Go,Zn),_a=x(rl,jl,yc,$l,Si,-Go,Zn),Zt.lineTo(qn.cx+qn.x01,qn.cy+qn.y01),Go=un;--$n)Zt.point(fo[$n],ko[$n]);Zt.lineEnd(),Zt.areaEnd()}Zn&&(fo[Si]=+Fe(ma,Si,ni),ko[Si]=+lt(ma,Si,ni),Zt.point(ot?+ot(ma,Si,ni):fo[Si],kt?+kt(ma,Si,ni):ko[Si]))}if(io)return Zt=null,io+""||null}function Kr(){return C().defined(er).curve(Ar).context(zt)}return wr.x=function(ni){return arguments.length?(Fe=typeof ni=="function"?ni:r(+ni),ot=null,wr):Fe},wr.x0=function(ni){return arguments.length?(Fe=typeof ni=="function"?ni:r(+ni),wr):Fe},wr.x1=function(ni){return arguments.length?(ot=ni==null?null:typeof ni=="function"?ni:r(+ni),wr):ot},wr.y=function(ni){return arguments.length?(lt=typeof ni=="function"?ni:r(+ni),kt=null,wr):lt},wr.y0=function(ni){return arguments.length?(lt=typeof ni=="function"?ni:r(+ni),wr):lt},wr.y1=function(ni){return arguments.length?(kt=ni==null?null:typeof ni=="function"?ni:r(+ni),wr):kt},wr.lineX0=wr.lineY0=function(){return Kr().x(Fe).y(lt)},wr.lineY1=function(){return Kr().x(Fe).y(kt)},wr.lineX1=function(){return Kr().x(ot).y(lt)},wr.defined=function(ni){return arguments.length?(er=typeof ni=="function"?ni:r(!!ni),wr):er},wr.curve=function(ni){return arguments.length?(Ar=ni,zt!=null&&(Zt=Ar(zt)),wr):Ar},wr.context=function(ni){return arguments.length?(ni==null?zt=Zt=null:Zt=Ar(zt=ni),wr):zt},wr}function D(Fe,ot){return otFe?1:ot>=Fe?0:NaN}function F(Fe){return Fe}function P(){var Fe=F,ot=D,lt=null,kt=r(0),er=r(p),zt=r(0);function Ar(Zt){var wr,Kr=Zt.length,ni,Si,un=0,$n=new Array(Kr),wn=new Array(Kr),ma=+kt.apply(this,arguments),Zn=Math.min(p,Math.max(-p,er.apply(this,arguments)-ma)),io,fo=Math.min(Math.abs(Zn)/Kr,zt.apply(this,arguments)),ko=fo*(Zn<0?-1:1),Oo;for(wr=0;wr0&&(un+=Oo);for(ot!=null?$n.sort(function(ms,os){return ot(wn[ms],wn[os])}):lt!=null&&$n.sort(function(ms,os){return lt(Zt[ms],Zt[os])}),wr=0,Si=un?(Zn-Kr*ko)/un:0;wr0?Oo*Si:0)+ko,wn[ni]={data:Zt[ni],index:wr,value:Oo,startAngle:ma,endAngle:io,padAngle:fo};return wn}return Ar.value=function(Zt){return arguments.length?(Fe=typeof Zt=="function"?Zt:r(+Zt),Ar):Fe},Ar.sortValues=function(Zt){return arguments.length?(ot=Zt,lt=null,Ar):ot},Ar.sort=function(Zt){return arguments.length?(lt=Zt,ot=null,Ar):lt},Ar.startAngle=function(Zt){return arguments.length?(kt=typeof Zt=="function"?Zt:r(+Zt),Ar):kt},Ar.endAngle=function(Zt){return arguments.length?(er=typeof Zt=="function"?Zt:r(+Zt),Ar):er},Ar.padAngle=function(Zt){return arguments.length?(zt=typeof Zt=="function"?Zt:r(+Zt),Ar):zt},Ar}var R=I(y);function L(Fe){this._curve=Fe}L.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(Fe,ot){this._curve.point(ot*Math.sin(Fe),ot*-Math.cos(Fe))}};function I(Fe){function ot(lt){return new L(Fe(lt))}return ot._curve=Fe,ot}function B(Fe){var ot=Fe.curve;return Fe.angle=Fe.x,delete Fe.x,Fe.radius=Fe.y,delete Fe.y,Fe.curve=function(lt){return arguments.length?ot(I(lt)):ot()._curve},Fe}function O(){return B(C().curve(R))}function $(){var Fe=k().curve(R),ot=Fe.curve,lt=Fe.lineX0,kt=Fe.lineX1,er=Fe.lineY0,zt=Fe.lineY1;return Fe.angle=Fe.x,delete Fe.x,Fe.startAngle=Fe.x0,delete Fe.x0,Fe.endAngle=Fe.x1,delete Fe.x1,Fe.radius=Fe.y,delete Fe.y,Fe.innerRadius=Fe.y0,delete Fe.y0,Fe.outerRadius=Fe.y1,delete Fe.y1,Fe.lineStartAngle=function(){return B(lt())},delete Fe.lineX0,Fe.lineEndAngle=function(){return B(kt())},delete Fe.lineX1,Fe.lineInnerRadius=function(){return B(er())},delete Fe.lineY0,Fe.lineOuterRadius=function(){return B(zt())},delete Fe.lineY1,Fe.curve=function(Ar){return arguments.length?ot(I(Ar)):ot()._curve},Fe}function X(Fe,ot){return[(ot=+ot)*Math.cos(Fe-=Math.PI/2),ot*Math.sin(Fe)]}var K=Array.prototype.slice;function G(Fe){return Fe.source}function q(Fe){return Fe.target}function J(Fe){var ot=G,lt=q,kt=E,er=M,zt=null;function Ar(){var Zt,wr=K.call(arguments),Kr=ot.apply(this,wr),ni=lt.apply(this,wr);if(zt||(zt=Zt=t.path()),Fe(zt,+kt.apply(this,(wr[0]=Kr,wr)),+er.apply(this,wr),+kt.apply(this,(wr[0]=ni,wr)),+er.apply(this,wr)),Zt)return zt=null,Zt+""||null}return Ar.source=function(Zt){return arguments.length?(ot=Zt,Ar):ot},Ar.target=function(Zt){return arguments.length?(lt=Zt,Ar):lt},Ar.x=function(Zt){return arguments.length?(kt=typeof Zt=="function"?Zt:r(+Zt),Ar):kt},Ar.y=function(Zt){return arguments.length?(er=typeof Zt=="function"?Zt:r(+Zt),Ar):er},Ar.context=function(Zt){return arguments.length?(zt=Zt==null?null:Zt,Ar):zt},Ar}function N(Fe,ot,lt,kt,er){Fe.moveTo(ot,lt),Fe.bezierCurveTo(ot=(ot+kt)/2,lt,ot,er,kt,er)}function V(Fe,ot,lt,kt,er){Fe.moveTo(ot,lt),Fe.bezierCurveTo(ot,lt=(lt+er)/2,kt,lt,kt,er)}function Y(Fe,ot,lt,kt,er){var zt=X(ot,lt),Ar=X(ot,lt=(lt+er)/2),Zt=X(kt,lt),wr=X(kt,er);Fe.moveTo(zt[0],zt[1]),Fe.bezierCurveTo(Ar[0],Ar[1],Zt[0],Zt[1],wr[0],wr[1])}function H(){return J(N)}function j(){return J(V)}function Q(){var Fe=J(Y);return Fe.angle=Fe.x,delete Fe.x,Fe.radius=Fe.y,delete Fe.y,Fe}var te={draw:function(Fe,ot){var lt=Math.sqrt(ot/f);Fe.moveTo(lt,0),Fe.arc(0,0,lt,0,p)}},ue={draw:function(Fe,ot){var lt=Math.sqrt(ot/5)/2;Fe.moveTo(-3*lt,-lt),Fe.lineTo(-lt,-lt),Fe.lineTo(-lt,-3*lt),Fe.lineTo(lt,-3*lt),Fe.lineTo(lt,-lt),Fe.lineTo(3*lt,-lt),Fe.lineTo(3*lt,lt),Fe.lineTo(lt,lt),Fe.lineTo(lt,3*lt),Fe.lineTo(-lt,3*lt),Fe.lineTo(-lt,lt),Fe.lineTo(-3*lt,lt),Fe.closePath()}},ge=Math.sqrt(1/3),Ee=ge*2,xe={draw:function(Fe,ot){var lt=Math.sqrt(ot/Ee),kt=lt*ge;Fe.moveTo(0,-lt),Fe.lineTo(kt,0),Fe.lineTo(0,lt),Fe.lineTo(-kt,0),Fe.closePath()}},ce=.8908130915292852,oe=Math.sin(f/10)/Math.sin(7*f/10),Se=Math.sin(p/10)*oe,be=-Math.cos(p/10)*oe,fe={draw:function(Fe,ot){var lt=Math.sqrt(ot*ce),kt=Se*lt,er=be*lt;Fe.moveTo(0,-lt),Fe.lineTo(kt,er);for(var zt=1;zt<5;++zt){var Ar=p*zt/5,Zt=Math.cos(Ar),wr=Math.sin(Ar);Fe.lineTo(wr*lt,-Zt*lt),Fe.lineTo(Zt*kt-wr*er,wr*kt+Zt*er)}Fe.closePath()}},ee={draw:function(Fe,ot){var lt=Math.sqrt(ot),kt=-lt/2;Fe.rect(kt,kt,lt,lt)}},ae=Math.sqrt(3),_e={draw:function(Fe,ot){var lt=-Math.sqrt(ot/(ae*3));Fe.moveTo(0,lt*2),Fe.lineTo(-ae*lt,-lt),Fe.lineTo(ae*lt,-lt),Fe.closePath()}},re=-.5,pe=Math.sqrt(3)/2,Te=1/Math.sqrt(12),Ce=(Te/2+1)*3,ze={draw:function(Fe,ot){var lt=Math.sqrt(ot/Ce),kt=lt/2,er=lt*Te,zt=kt,Ar=lt*Te+lt,Zt=-zt,wr=Ar;Fe.moveTo(kt,er),Fe.lineTo(zt,Ar),Fe.lineTo(Zt,wr),Fe.lineTo(re*kt-pe*er,pe*kt+re*er),Fe.lineTo(re*zt-pe*Ar,pe*zt+re*Ar),Fe.lineTo(re*Zt-pe*wr,pe*Zt+re*wr),Fe.lineTo(re*kt+pe*er,re*er-pe*kt),Fe.lineTo(re*zt+pe*Ar,re*Ar-pe*zt),Fe.lineTo(re*Zt+pe*wr,re*wr-pe*Zt),Fe.closePath()}},we=[te,ue,xe,ee,fe,_e,ze];function me(){var Fe=r(te),ot=r(64),lt=null;function kt(){var er;if(lt||(lt=er=t.path()),Fe.apply(this,arguments).draw(lt,+ot.apply(this,arguments)),er)return lt=null,er+""||null}return kt.type=function(er){return arguments.length?(Fe=typeof er=="function"?er:r(er),kt):Fe},kt.size=function(er){return arguments.length?(ot=typeof er=="function"?er:r(+er),kt):ot},kt.context=function(er){return arguments.length?(lt=er==null?null:er,kt):lt},kt}function Le(){}function Ne(Fe,ot,lt){Fe._context.bezierCurveTo((2*Fe._x0+Fe._x1)/3,(2*Fe._y0+Fe._y1)/3,(Fe._x0+2*Fe._x1)/3,(Fe._y0+2*Fe._y1)/3,(Fe._x0+4*Fe._x1+ot)/6,(Fe._y0+4*Fe._y1+lt)/6)}function Je(Fe){this._context=Fe}Je.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Ne(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(Fe,ot){switch(Fe=+Fe,ot=+ot,this._point){case 0:this._point=1,this._line?this._context.lineTo(Fe,ot):this._context.moveTo(Fe,ot);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Ne(this,Fe,ot);break}this._x0=this._x1,this._x1=Fe,this._y0=this._y1,this._y1=ot}};function rt(Fe){return new Je(Fe)}function mt(Fe){this._context=Fe}mt.prototype={areaStart:Le,areaEnd:Le,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(Fe,ot){switch(Fe=+Fe,ot=+ot,this._point){case 0:this._point=1,this._x2=Fe,this._y2=ot;break;case 1:this._point=2,this._x3=Fe,this._y3=ot;break;case 2:this._point=3,this._x4=Fe,this._y4=ot,this._context.moveTo((this._x0+4*this._x1+Fe)/6,(this._y0+4*this._y1+ot)/6);break;default:Ne(this,Fe,ot);break}this._x0=this._x1,this._x1=Fe,this._y0=this._y1,this._y1=ot}};function dt(Fe){return new mt(Fe)}function St(Fe){this._context=Fe}St.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(Fe,ot){switch(Fe=+Fe,ot=+ot,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var lt=(this._x0+4*this._x1+Fe)/6,kt=(this._y0+4*this._y1+ot)/6;this._line?this._context.lineTo(lt,kt):this._context.moveTo(lt,kt);break;case 3:this._point=4;default:Ne(this,Fe,ot);break}this._x0=this._x1,this._x1=Fe,this._y0=this._y1,this._y1=ot}};function Ke(Fe){return new St(Fe)}function bt(Fe,ot){this._basis=new Je(Fe),this._beta=ot}bt.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var Fe=this._x,ot=this._y,lt=Fe.length-1;if(lt>0)for(var kt=Fe[0],er=ot[0],zt=Fe[lt]-kt,Ar=ot[lt]-er,Zt=-1,wr;++Zt<=lt;)wr=Zt/lt,this._basis.point(this._beta*Fe[Zt]+(1-this._beta)*(kt+wr*zt),this._beta*ot[Zt]+(1-this._beta)*(er+wr*Ar));this._x=this._y=null,this._basis.lineEnd()},point:function(Fe,ot){this._x.push(+Fe),this._y.push(+ot)}};var pt=(function Fe(ot){function lt(kt){return ot===1?new Je(kt):new bt(kt,ot)}return lt.beta=function(kt){return Fe(+kt)},lt})(.85);function Oe(Fe,ot,lt){Fe._context.bezierCurveTo(Fe._x1+Fe._k*(Fe._x2-Fe._x0),Fe._y1+Fe._k*(Fe._y2-Fe._y0),Fe._x2+Fe._k*(Fe._x1-ot),Fe._y2+Fe._k*(Fe._y1-lt),Fe._x2,Fe._y2)}function Ue(Fe,ot){this._context=Fe,this._k=(1-ot)/6}Ue.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:Oe(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(Fe,ot){switch(Fe=+Fe,ot=+ot,this._point){case 0:this._point=1,this._line?this._context.lineTo(Fe,ot):this._context.moveTo(Fe,ot);break;case 1:this._point=2,this._x1=Fe,this._y1=ot;break;case 2:this._point=3;default:Oe(this,Fe,ot);break}this._x0=this._x1,this._x1=this._x2,this._x2=Fe,this._y0=this._y1,this._y1=this._y2,this._y2=ot}};var je=(function Fe(ot){function lt(kt){return new Ue(kt,ot)}return lt.tension=function(kt){return Fe(+kt)},lt})(0);function $e(Fe,ot){this._context=Fe,this._k=(1-ot)/6}$e.prototype={areaStart:Le,areaEnd:Le,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(Fe,ot){switch(Fe=+Fe,ot=+ot,this._point){case 0:this._point=1,this._x3=Fe,this._y3=ot;break;case 1:this._point=2,this._context.moveTo(this._x4=Fe,this._y4=ot);break;case 2:this._point=3,this._x5=Fe,this._y5=ot;break;default:Oe(this,Fe,ot);break}this._x0=this._x1,this._x1=this._x2,this._x2=Fe,this._y0=this._y1,this._y1=this._y2,this._y2=ot}};var Ie=(function Fe(ot){function lt(kt){return new $e(kt,ot)}return lt.tension=function(kt){return Fe(+kt)},lt})(0);function Ve(Fe,ot){this._context=Fe,this._k=(1-ot)/6}Ve.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(Fe,ot){switch(Fe=+Fe,ot=+ot,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Oe(this,Fe,ot);break}this._x0=this._x1,this._x1=this._x2,this._x2=Fe,this._y0=this._y1,this._y1=this._y2,this._y2=ot}};var st=(function Fe(ot){function lt(kt){return new Ve(kt,ot)}return lt.tension=function(kt){return Fe(+kt)},lt})(0);function _t(Fe,ot,lt){var kt=Fe._x1,er=Fe._y1,zt=Fe._x2,Ar=Fe._y2;if(Fe._l01_a>c){var Zt=2*Fe._l01_2a+3*Fe._l01_a*Fe._l12_a+Fe._l12_2a,wr=3*Fe._l01_a*(Fe._l01_a+Fe._l12_a);kt=(kt*Zt-Fe._x0*Fe._l12_2a+Fe._x2*Fe._l01_2a)/wr,er=(er*Zt-Fe._y0*Fe._l12_2a+Fe._y2*Fe._l01_2a)/wr}if(Fe._l23_a>c){var Kr=2*Fe._l23_2a+3*Fe._l23_a*Fe._l12_a+Fe._l12_2a,ni=3*Fe._l23_a*(Fe._l23_a+Fe._l12_a);zt=(zt*Kr+Fe._x1*Fe._l23_2a-ot*Fe._l12_2a)/ni,Ar=(Ar*Kr+Fe._y1*Fe._l23_2a-lt*Fe._l12_2a)/ni}Fe._context.bezierCurveTo(kt,er,zt,Ar,Fe._x2,Fe._y2)}function Wt(Fe,ot){this._context=Fe,this._alpha=ot}Wt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(Fe,ot){if(Fe=+Fe,ot=+ot,this._point){var lt=this._x2-Fe,kt=this._y2-ot;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(lt*lt+kt*kt,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(Fe,ot):this._context.moveTo(Fe,ot);break;case 1:this._point=2;break;case 2:this._point=3;default:_t(this,Fe,ot);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=Fe,this._y0=this._y1,this._y1=this._y2,this._y2=ot}};var Ht=(function Fe(ot){function lt(kt){return ot?new Wt(kt,ot):new Ue(kt,0)}return lt.alpha=function(kt){return Fe(+kt)},lt})(.5);function fr(Fe,ot){this._context=Fe,this._alpha=ot}fr.prototype={areaStart:Le,areaEnd:Le,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(Fe,ot){if(Fe=+Fe,ot=+ot,this._point){var lt=this._x2-Fe,kt=this._y2-ot;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(lt*lt+kt*kt,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=Fe,this._y3=ot;break;case 1:this._point=2,this._context.moveTo(this._x4=Fe,this._y4=ot);break;case 2:this._point=3,this._x5=Fe,this._y5=ot;break;default:_t(this,Fe,ot);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=Fe,this._y0=this._y1,this._y1=this._y2,this._y2=ot}};var lr=(function Fe(ot){function lt(kt){return ot?new fr(kt,ot):new $e(kt,0)}return lt.alpha=function(kt){return Fe(+kt)},lt})(.5);function Ot(Fe,ot){this._context=Fe,this._alpha=ot}Ot.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(Fe,ot){if(Fe=+Fe,ot=+ot,this._point){var lt=this._x2-Fe,kt=this._y2-ot;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(lt*lt+kt*kt,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:_t(this,Fe,ot);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=Fe,this._y0=this._y1,this._y1=this._y2,this._y2=ot}};var Jt=(function Fe(ot){function lt(kt){return ot?new Ot(kt,ot):new Ve(kt,0)}return lt.alpha=function(kt){return Fe(+kt)},lt})(.5);function Cr(Fe){this._context=Fe}Cr.prototype={areaStart:Le,areaEnd:Le,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(Fe,ot){Fe=+Fe,ot=+ot,this._point?this._context.lineTo(Fe,ot):(this._point=1,this._context.moveTo(Fe,ot))}};function Ge(Fe){return new Cr(Fe)}function Qe(Fe){return Fe<0?-1:1}function nt(Fe,ot,lt){var kt=Fe._x1-Fe._x0,er=ot-Fe._x1,zt=(Fe._y1-Fe._y0)/(kt||er<0&&-0),Ar=(lt-Fe._y1)/(er||kt<0&&-0),Zt=(zt*er+Ar*kt)/(kt+er);return(Qe(zt)+Qe(Ar))*Math.min(Math.abs(zt),Math.abs(Ar),.5*Math.abs(Zt))||0}function gt(Fe,ot){var lt=Fe._x1-Fe._x0;return lt?(3*(Fe._y1-Fe._y0)/lt-ot)/2:ot}function ht(Fe,ot,lt){var kt=Fe._x0,er=Fe._y0,zt=Fe._x1,Ar=Fe._y1,Zt=(zt-kt)/3;Fe._context.bezierCurveTo(kt+Zt,er+Zt*ot,zt-Zt,Ar-Zt*lt,zt,Ar)}function Ft(Fe){this._context=Fe}Ft.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:ht(this,this._t0,gt(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(Fe,ot){var lt=NaN;if(Fe=+Fe,ot=+ot,!(Fe===this._x1&&ot===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(Fe,ot):this._context.moveTo(Fe,ot);break;case 1:this._point=2;break;case 2:this._point=3,ht(this,gt(this,lt=nt(this,Fe,ot)),lt);break;default:ht(this,this._t0,lt=nt(this,Fe,ot));break}this._x0=this._x1,this._x1=Fe,this._y0=this._y1,this._y1=ot,this._t0=lt}}};function hr(Fe){this._context=new Ut(Fe)}(hr.prototype=Object.create(Ft.prototype)).point=function(Fe,ot){Ft.prototype.point.call(this,ot,Fe)};function Ut(Fe){this._context=Fe}Ut.prototype={moveTo:function(Fe,ot){this._context.moveTo(ot,Fe)},closePath:function(){this._context.closePath()},lineTo:function(Fe,ot){this._context.lineTo(ot,Fe)},bezierCurveTo:function(Fe,ot,lt,kt,er,zt){this._context.bezierCurveTo(ot,Fe,kt,lt,zt,er)}};function Lr(Fe){return new Ft(Fe)}function jr(Fe){return new hr(Fe)}function ii(Fe){this._context=Fe}ii.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var Fe=this._x,ot=this._y,lt=Fe.length;if(lt)if(this._line?this._context.lineTo(Fe[0],ot[0]):this._context.moveTo(Fe[0],ot[0]),lt===2)this._context.lineTo(Fe[1],ot[1]);else for(var kt=Fr(Fe),er=Fr(ot),zt=0,Ar=1;Ar=0;--ot)er[ot]=(Ar[ot]-er[ot+1])/zt[ot];for(zt[lt-1]=(Fe[lt]+er[lt-1])/2,ot=0;ot=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(Fe,ot){switch(Fe=+Fe,ot=+ot,this._point){case 0:this._point=1,this._line?this._context.lineTo(Fe,ot):this._context.moveTo(Fe,ot);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,ot),this._context.lineTo(Fe,ot);else{var lt=this._x*(1-this._t)+Fe*this._t;this._context.lineTo(lt,this._y),this._context.lineTo(lt,ot)}break}}this._x=Fe,this._y=ot}};function ln(Fe){return new Xi(Fe,.5)}function la(Fe){return new Xi(Fe,0)}function mo(Fe){return new Xi(Fe,1)}function pn(Fe,ot){if((Ar=Fe.length)>1)for(var lt=1,kt,er,zt=Fe[ot[0]],Ar,Zt=zt.length;lt=0;)lt[ot]=ot;return lt}function gn(Fe,ot){return Fe[ot]}function ns(){var Fe=r([]),ot=zn,lt=pn,kt=gn;function er(zt){var Ar=Fe.apply(this,arguments),Zt,wr=zt.length,Kr=Ar.length,ni=new Array(Kr),Si;for(Zt=0;Zt0){for(var lt,kt,er=0,zt=Fe[0].length,Ar;er0)for(var lt,kt=0,er,zt,Ar,Zt,wr,Kr=Fe[ot[0]].length;kt0?(er[0]=Ar,er[1]=Ar+=zt):zt<0?(er[1]=Zt,er[0]=Zt+=zt):(er[0]=0,er[1]=zt)}function ro(Fe,ot){if((er=Fe.length)>0){for(var lt=0,kt=Fe[ot[0]],er,zt=kt.length;lt0)||!((zt=(er=Fe[ot[0]]).length)>0))){for(var lt=0,kt=1,er,zt,Ar;ktzt&&(zt=er,lt=ot);return lt}function Ma(Fe){var ot=Fe.map(el);return zn(Fe).sort(function(lt,kt){return ot[lt]-ot[kt]})}function el(Fe){for(var ot=0,lt=-1,kt=Fe.length,er;++lt{(function(e,t){typeof DO=="object"&&typeof Dct!="undefined"?t(DO,Sct(),rse()):(e=e||self,t(e.d3=e.d3||{},e.d3,e.d3))})(DO,function(e,t,r){"use strict";function i(x){return x.target.depth}function n(x){return x.depth}function a(x,A){return A-1-x.height}function o(x,A){return x.sourceLinks.length?x.depth:A-1}function s(x){return x.targetLinks.length?x.depth:x.sourceLinks.length?t.min(x.sourceLinks,i)-1:0}function l(x){return function(){return x}}function u(x,A){return f(x.source,A.source)||x.index-A.index}function c(x,A){return f(x.target,A.target)||x.index-A.index}function f(x,A){return x.y0-A.y0}function h(x){return x.value}function p(x){return x.index}function d(x){return x.nodes}function v(x){return x.links}function m(x,A){let T=x.get(A);if(!T)throw new Error("missing: "+A);return T}function g({nodes:x}){for(let A of x){let T=A.y0,y=T;for(let E of A.sourceLinks)E.y0=T+E.width/2,T+=E.width;for(let E of A.targetLinks)E.y1=y+E.width/2,y+=E.width}}function w(){let x=0,A=0,T=1,y=1,E=24,M=8,C,k=p,D=o,F,P,R=d,L=v,I=6,B=2/3;function O(){let xe={nodes:R.apply(null,arguments),links:L.apply(null,arguments)};return $(xe),X(xe),K(xe),G(xe),N(xe),g(xe),xe}O.update=function(xe){return g(xe),xe},O.nodeId=function(xe){return arguments.length?(k=typeof xe=="function"?xe:l(xe),O):k},O.nodeAlign=function(xe){return arguments.length?(D=typeof xe=="function"?xe:l(xe),O):D},O.nodeSort=function(xe){return arguments.length?(F=xe,O):F},O.nodeWidth=function(xe){return arguments.length?(E=+xe,O):E},O.nodePadding=function(xe){return arguments.length?(M=C=+xe,O):M},O.nodes=function(xe){return arguments.length?(R=typeof xe=="function"?xe:l(xe),O):R},O.links=function(xe){return arguments.length?(L=typeof xe=="function"?xe:l(xe),O):L},O.linkSort=function(xe){return arguments.length?(P=xe,O):P},O.size=function(xe){return arguments.length?(x=A=0,T=+xe[0],y=+xe[1],O):[T-x,y-A]},O.extent=function(xe){return arguments.length?(x=+xe[0][0],T=+xe[1][0],A=+xe[0][1],y=+xe[1][1],O):[[x,A],[T,y]]},O.iterations=function(xe){return arguments.length?(I=+xe,O):I};function $({nodes:xe,links:ce}){for(let[Se,be]of xe.entries())be.index=Se,be.sourceLinks=[],be.targetLinks=[];let oe=new Map(xe.map((Se,be)=>[k(Se,be,xe),Se]));for(let[Se,be]of ce.entries()){be.index=Se;let{source:fe,target:ee}=be;typeof fe!="object"&&(fe=be.source=m(oe,fe)),typeof ee!="object"&&(ee=be.target=m(oe,ee)),fe.sourceLinks.push(be),ee.targetLinks.push(be)}if(P!=null)for(let{sourceLinks:Se,targetLinks:be}of xe)Se.sort(P),be.sort(P)}function X({nodes:xe}){for(let ce of xe)ce.value=ce.fixedValue===void 0?Math.max(t.sum(ce.sourceLinks,h),t.sum(ce.targetLinks,h)):ce.fixedValue}function K({nodes:xe}){let ce=xe.length,oe=new Set(xe),Se=new Set,be=0;for(;oe.size;){for(let fe of oe){fe.depth=be;for(let{target:ee}of fe.sourceLinks)Se.add(ee)}if(++be>ce)throw new Error("circular link");oe=Se,Se=new Set}}function G({nodes:xe}){let ce=xe.length,oe=new Set(xe),Se=new Set,be=0;for(;oe.size;){for(let fe of oe){fe.height=be;for(let{source:ee}of fe.targetLinks)Se.add(ee)}if(++be>ce)throw new Error("circular link");oe=Se,Se=new Set}}function q({nodes:xe}){let ce=t.max(xe,be=>be.depth)+1,oe=(T-x-E)/(ce-1),Se=new Array(ce);for(let be of xe){let fe=Math.max(0,Math.min(ce-1,Math.floor(D.call(null,be,ce))));be.layer=fe,be.x0=x+fe*oe,be.x1=be.x0+E,Se[fe]?Se[fe].push(be):Se[fe]=[be]}if(F)for(let be of Se)be.sort(F);return Se}function J(xe){let ce=t.min(xe,oe=>(y-A-(oe.length-1)*C)/t.sum(oe,h));for(let oe of xe){let Se=A;for(let be of oe){be.y0=Se,be.y1=Se+be.value*ce,Se=be.y1+C;for(let fe of be.sourceLinks)fe.width=fe.value*ce}Se=(y-Se+C)/(oe.length+1);for(let be=0;beoe.length)-1)),J(ce);for(let oe=0;oe0))continue;let re=(ae/_e-ee.y0)*ce;ee.y0+=re,ee.y1+=re,te(ee)}F===void 0&&fe.sort(f),H(fe,oe)}}function Y(xe,ce,oe){for(let Se=xe.length,be=Se-2;be>=0;--be){let fe=xe[be];for(let ee of fe){let ae=0,_e=0;for(let{target:pe,value:Te}of ee.sourceLinks){let Ce=Te*(pe.layer-ee.layer);ae+=Ee(ee,pe)*Ce,_e+=Ce}if(!(_e>0))continue;let re=(ae/_e-ee.y0)*ce;ee.y0+=re,ee.y1+=re,te(ee)}F===void 0&&fe.sort(f),H(fe,oe)}}function H(xe,ce){let oe=xe.length>>1,Se=xe[oe];Q(xe,Se.y0-C,oe-1,ce),j(xe,Se.y1+C,oe+1,ce),Q(xe,y,xe.length-1,ce),j(xe,A,0,ce)}function j(xe,ce,oe,Se){for(;oe1e-6&&(be.y0+=fe,be.y1+=fe),ce=be.y1+C}}function Q(xe,ce,oe,Se){for(;oe>=0;--oe){let be=xe[oe],fe=(be.y1-ce)*Se;fe>1e-6&&(be.y0-=fe,be.y1-=fe),ce=be.y0-C}}function te({sourceLinks:xe,targetLinks:ce}){if(P===void 0){for(let{source:{sourceLinks:oe}}of ce)oe.sort(c);for(let{target:{targetLinks:oe}}of xe)oe.sort(u)}}function ue(xe){if(P===void 0)for(let{sourceLinks:ce,targetLinks:oe}of xe)ce.sort(c),oe.sort(u)}function ge(xe,ce){let oe=xe.y0-(xe.sourceLinks.length-1)*C/2;for(let{target:Se,width:be}of xe.sourceLinks){if(Se===ce)break;oe+=be+C}for(let{source:Se,width:be}of ce.targetLinks){if(Se===xe)break;oe-=be}return oe}function Ee(xe,ce){let oe=ce.y0-(ce.targetLinks.length-1)*C/2;for(let{source:Se,width:be}of ce.targetLinks){if(Se===xe)break;oe+=be+C}for(let{target:Se,width:be}of xe.sourceLinks){if(Se===ce)break;oe-=be}return oe}return O}function _(x){return[x.source.x1,x.y0]}function b(x){return[x.target.x0,x.y1]}function S(){return r.linkHorizontal().source(_).target(b)}e.sankey=w,e.sankeyCenter=s,e.sankeyJustify=o,e.sankeyLeft=n,e.sankeyLinkHorizontal=S,e.sankeyRight=a,Object.defineProperty(e,"__esModule",{value:!0})})});var Pct=W((FO,Lct)=>{(function(e,t){t(typeof FO=="object"&&typeof Lct!="undefined"?FO:e.d3=e.d3||{})})(FO,(function(e){"use strict";function t(N,V){return NV?1:N>=V?0:NaN}function r(N){return N.length===1&&(N=i(N)),{left:function(V,Y,H,j){for(H==null&&(H=0),j==null&&(j=V.length);H>>1;N(V[Q],Y)<0?H=Q+1:j=Q}return H},right:function(V,Y,H,j){for(H==null&&(H=0),j==null&&(j=V.length);H>>1;N(V[Q],Y)>0?j=Q:H=Q+1}return H}}}function i(N){return function(V,Y){return t(N(V),Y)}}var n=r(t),a=n.right,o=n.left;function s(N,V){V==null&&(V=l);for(var Y=0,H=N.length-1,j=N[0],Q=new Array(H<0?0:H);YN?1:V>=N?0:NaN}function f(N){return N===null?NaN:+N}function h(N,V){var Y=N.length,H=0,j=-1,Q=0,te,ue,ge=0;if(V==null)for(;++j1)return ge/(H-1)}function p(N,V){var Y=h(N,V);return Y&&Math.sqrt(Y)}function d(N,V){var Y=N.length,H=-1,j,Q,te;if(V==null){for(;++H=j)for(Q=te=j;++Hj&&(Q=j),te=j)for(Q=te=j;++Hj&&(Q=j),te0)return[N];if((H=V0)for(N=Math.ceil(N/ue),V=Math.floor(V/ue),te=new Array(Q=Math.ceil(V-N+1));++j=0?(Q>=S?10:Q>=x?5:Q>=A?2:1)*Math.pow(10,j):-Math.pow(10,-j)/(Q>=S?10:Q>=x?5:Q>=A?2:1)}function E(N,V,Y){var H=Math.abs(V-N)/Math.max(0,Y),j=Math.pow(10,Math.floor(Math.log(H)/Math.LN10)),Q=H/j;return Q>=S?j*=10:Q>=x?j*=5:Q>=A&&(j*=2),Vce;)oe.pop(),--Se;var be=new Array(Se+1),fe;for(Q=0;Q<=Se;++Q)fe=be[Q]=[],fe.x0=Q>0?oe[Q-1]:xe,fe.x1=Q=1)return+Y(N[H-1],H-1,N);var H,j=(H-1)*V,Q=Math.floor(j),te=+Y(N[Q],Q,N),ue=+Y(N[Q+1],Q+1,N);return te+(ue-te)*(j-Q)}}function D(N,V,Y){return N=g.call(N,f).sort(t),Math.ceil((Y-V)/(2*(k(N,.75)-k(N,.25))*Math.pow(N.length,-1/3)))}function F(N,V,Y){return Math.ceil((Y-V)/(3.5*p(N)*Math.pow(N.length,-1/3)))}function P(N,V){var Y=N.length,H=-1,j,Q;if(V==null){for(;++H=j)for(Q=j;++HQ&&(Q=j)}else for(;++H=j)for(Q=j;++HQ&&(Q=j);return Q}function R(N,V){var Y=N.length,H=Y,j=-1,Q,te=0;if(V==null)for(;++j=0;)for(te=N[V],Y=te.length;--Y>=0;)Q[--j]=te[Y];return Q}function B(N,V){var Y=N.length,H=-1,j,Q;if(V==null){for(;++H=j)for(Q=j;++Hj&&(Q=j)}else for(;++H=j)for(Q=j;++Hj&&(Q=j);return Q}function O(N,V){for(var Y=V.length,H=new Array(Y);Y--;)H[Y]=N[V[Y]];return H}function $(N,V){if(Y=N.length){var Y,H=0,j=0,Q,te=N[j];for(V==null&&(V=t);++H{var L8r=ese();Ict.exports=function(t,r){var i=[],n=[],a=[],o={},s=[],l;function u(_){a[_]=!1,o.hasOwnProperty(_)&&Object.keys(o[_]).forEach(function(b){delete o[_][b],a[b]&&u(b)})}function c(_){var b=!1;n.push(_),a[_]=!0;var S,x;for(S=0;S=_})}function p(_){h(_);for(var b=t,S=L8r(b),x=S.components.filter(function(k){return k.length>1}),A=1/0,T,y=0;y{(function(e,t){typeof LO=="object"&&typeof zct!="undefined"?t(LO,Pct(),tse(),rse(),Rct()):t(e.d3=e.d3||{},e.d3,e.d3,e.d3,null)})(LO,(function(e,t,r,i,n){"use strict";n=n&&n.hasOwnProperty("default")?n.default:n;function a(ce){return ce.target.depth}function o(ce){return ce.depth}function s(ce,oe){return oe-1-ce.height}function l(ce,oe){return ce.sourceLinks.length?ce.depth:oe-1}function u(ce){return ce.targetLinks.length?ce.depth:ce.sourceLinks.length?t.min(ce.sourceLinks,a)-1:0}function c(ce){return function(){return ce}}var f=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ce){return typeof ce}:function(ce){return ce&&typeof Symbol=="function"&&ce.constructor===Symbol&&ce!==Symbol.prototype?"symbol":typeof ce};function h(ce,oe){return d(ce.source,oe.source)||ce.index-oe.index}function p(ce,oe){return d(ce.target,oe.target)||ce.index-oe.index}function d(ce,oe){return ce.partOfCycle===oe.partOfCycle?ce.y0-oe.y0:ce.circularLinkType==="top"||oe.circularLinkType==="bottom"?-1:1}function v(ce){return ce.value}function m(ce){return(ce.y0+ce.y1)/2}function g(ce){return m(ce.source)}function w(ce){return m(ce.target)}function _(ce){return ce.index}function b(ce){return ce.nodes}function S(ce){return ce.links}function x(ce,oe){var Se=ce.get(oe);if(!Se)throw new Error("missing: "+oe);return Se}function A(ce,oe){return oe(ce)}var T=25,y=10,E=.3;function M(){var ce=0,oe=0,Se=1,be=1,fe=24,ee,ae=_,_e=l,re=b,pe=S,Te=32,Ce=2,ze,we=null;function me(){var Ke={nodes:re.apply(null,arguments),links:pe.apply(null,arguments)};Le(Ke),C(Ke,ae,we),Ne(Ke),mt(Ke),k(Ke,ae),dt(Ke,Te,ae),St(Ke);for(var bt=4,pt=0;pt0?bt+T+y:bt,pt=pt>0?pt+T+y:pt,Oe=Oe>0?Oe+T+y:Oe,Ue=Ue>0?Ue+T+y:Ue,{top:bt,bottom:pt,left:Ue,right:Oe}}function rt(Ke,bt){var pt=t.max(Ke.nodes,function(st){return st.column}),Oe=Se-ce,Ue=be-oe,je=Oe+bt.right+bt.left,$e=Ue+bt.top+bt.bottom,Ie=Oe/je,Ve=Ue/$e;return ce=ce*Ie+bt.left,Se=bt.right==0?Se:Se*Ie,oe=oe*Ve+bt.top,be=be*Ve,Ke.nodes.forEach(function(st){st.x0=ce+st.column*((Se-ce-fe)/pt),st.x1=st.x0+fe}),Ve}function mt(Ke){var bt,pt,Oe;for(bt=Ke.nodes,pt=[],Oe=0;bt.length;++Oe,bt=pt,pt=[])bt.forEach(function(Ue){Ue.depth=Oe,Ue.sourceLinks.forEach(function(je){pt.indexOf(je.target)<0&&!je.circular&&pt.push(je.target)})});for(bt=Ke.nodes,pt=[],Oe=0;bt.length;++Oe,bt=pt,pt=[])bt.forEach(function(Ue){Ue.height=Oe,Ue.targetLinks.forEach(function(je){pt.indexOf(je.source)<0&&!je.circular&&pt.push(je.source)})});Ke.nodes.forEach(function(Ue){Ue.column=Math.floor(_e.call(null,Ue,Oe))})}function dt(Ke,bt,pt){var Oe=r.nest().key(function(st){return st.column}).sortKeys(t.ascending).entries(Ke.nodes).map(function(st){return st.values});$e(pt),Ve();for(var Ue=1,je=bt;je>0;--je)Ie(Ue*=.99,pt),Ve();function $e(st){if(ze){var _t=1/0;Oe.forEach(function(lr){var Ot=be*ze/(lr.length+1);_t=Ot<_t?Ot:_t}),ee=_t}var Wt=t.min(Oe,function(lr){return(be-oe-(lr.length-1)*ee)/t.sum(lr,v)});Wt=Wt*E,Ke.links.forEach(function(lr){lr.width=lr.value*Wt});var Ht=Je(Ke),fr=rt(Ke,Ht);Wt=Wt*fr,Ke.links.forEach(function(lr){lr.width=lr.value*Wt}),Oe.forEach(function(lr){var Ot=lr.length;lr.forEach(function(Jt,Cr){Jt.depth==Oe.length-1&&Ot==1||Jt.depth==0&&Ot==1?(Jt.y0=be/2-Jt.value*Wt,Jt.y1=Jt.y0+Jt.value*Wt):Jt.partOfCycle?P(Jt,st)==0?(Jt.y0=be/2+Cr,Jt.y1=Jt.y0+Jt.value*Wt):Jt.circularLinkType=="top"?(Jt.y0=oe+Cr,Jt.y1=Jt.y0+Jt.value*Wt):(Jt.y0=be-Jt.value*Wt-Cr,Jt.y1=Jt.y0+Jt.value*Wt):Ht.top==0||Ht.bottom==0?(Jt.y0=(be-oe)/Ot*Cr,Jt.y1=Jt.y0+Jt.value*Wt):(Jt.y0=(be-oe)/2-Ot/2+Cr,Jt.y1=Jt.y0+Jt.value*Wt)})})}function Ie(st,_t){var Wt=Oe.length;Oe.forEach(function(Ht){var fr=Ht.length,lr=Ht[0].depth;Ht.forEach(function(Ot){var Jt;if((Ot.sourceLinks.length||Ot.targetLinks.length)&&!(Ot.partOfCycle&&P(Ot,_t)>0))if(lr==0&&fr==1)Jt=Ot.y1-Ot.y0,Ot.y0=be/2-Jt/2,Ot.y1=be/2+Jt/2;else if(lr==Wt-1&&fr==1)Jt=Ot.y1-Ot.y0,Ot.y0=be/2-Jt/2,Ot.y1=be/2+Jt/2;else{var Cr=0,Ge=t.mean(Ot.sourceLinks,w),Qe=t.mean(Ot.targetLinks,g);Ge&&Qe?Cr=(Ge+Qe)/2:Cr=Ge||Qe;var nt=(Cr-m(Ot))*st;Ot.y0+=nt,Ot.y1+=nt}})})}function Ve(){Oe.forEach(function(st){var _t,Wt,Ht=oe,fr=st.length,lr;for(st.sort(d),lr=0;lr0&&(_t.y0+=Wt,_t.y1+=Wt),Ht=_t.y1+ee;if(Wt=Ht-ee-be,Wt>0)for(Ht=_t.y0-=Wt,_t.y1-=Wt,lr=fr-2;lr>=0;--lr)_t=st[lr],Wt=_t.y1+ee-Ht,Wt>0&&(_t.y0-=Wt,_t.y1-=Wt),Ht=_t.y0})}}function St(Ke){Ke.nodes.forEach(function(bt){bt.sourceLinks.sort(p),bt.targetLinks.sort(h)}),Ke.nodes.forEach(function(bt){var pt=bt.y0,Oe=pt,Ue=bt.y1,je=Ue;bt.sourceLinks.forEach(function($e){$e.circular?($e.y0=Ue-$e.width/2,Ue=Ue-$e.width):($e.y0=pt+$e.width/2,pt+=$e.width)}),bt.targetLinks.forEach(function($e){$e.circular?($e.y1=je-$e.width/2,je=je-$e.width):($e.y1=Oe+$e.width/2,Oe+=$e.width)})})}return me}function C(ce,oe,Se){var be=0;if(Se===null){for(var fe=[],ee=0;eeoe.source.column)}function P(ce,oe){var Se=0;ce.sourceLinks.forEach(function(fe){Se=fe.circular&&!Ee(fe,oe)?Se+1:Se});var be=0;return ce.targetLinks.forEach(function(fe){be=fe.circular&&!Ee(fe,oe)?be+1:be}),Se+be}function R(ce){var oe=ce.source.sourceLinks,Se=0;oe.forEach(function(ee){Se=ee.circular?Se+1:Se});var be=ce.target.targetLinks,fe=0;return be.forEach(function(ee){fe=ee.circular?fe+1:fe}),!(Se>1||fe>1)}function L(ce,oe,Se){return ce.sort(O),ce.forEach(function(be,fe){var ee=0;if(Ee(be,Se)&&R(be))be.circularPathData.verticalBuffer=ee+be.width/2;else{var ae=0;for(ae;aeee?_e:ee}be.circularPathData.verticalBuffer=ee+be.width/2}}),ce}function I(ce,oe,Se,be){var fe=5,ee=t.min(ce.links,function(re){return re.source.y0});ce.links.forEach(function(re){re.circular&&(re.circularPathData={})});var ae=ce.links.filter(function(re){return re.circularLinkType=="top"});L(ae,oe,be);var _e=ce.links.filter(function(re){return re.circularLinkType=="bottom"});L(_e,oe,be),ce.links.forEach(function(re){if(re.circular){if(re.circularPathData.arcRadius=re.width+y,re.circularPathData.leftNodeBuffer=fe,re.circularPathData.rightNodeBuffer=fe,re.circularPathData.sourceWidth=re.source.x1-re.source.x0,re.circularPathData.sourceX=re.source.x0+re.circularPathData.sourceWidth,re.circularPathData.targetX=re.target.x0,re.circularPathData.sourceY=re.y0,re.circularPathData.targetY=re.y1,Ee(re,be)&&R(re))re.circularPathData.leftSmallArcRadius=y+re.width/2,re.circularPathData.leftLargeArcRadius=y+re.width/2,re.circularPathData.rightSmallArcRadius=y+re.width/2,re.circularPathData.rightLargeArcRadius=y+re.width/2,re.circularLinkType=="bottom"?(re.circularPathData.verticalFullExtent=re.source.y1+T+re.circularPathData.verticalBuffer,re.circularPathData.verticalLeftInnerExtent=re.circularPathData.verticalFullExtent-re.circularPathData.leftLargeArcRadius,re.circularPathData.verticalRightInnerExtent=re.circularPathData.verticalFullExtent-re.circularPathData.rightLargeArcRadius):(re.circularPathData.verticalFullExtent=re.source.y0-T-re.circularPathData.verticalBuffer,re.circularPathData.verticalLeftInnerExtent=re.circularPathData.verticalFullExtent+re.circularPathData.leftLargeArcRadius,re.circularPathData.verticalRightInnerExtent=re.circularPathData.verticalFullExtent+re.circularPathData.rightLargeArcRadius);else{var pe=re.source.column,Te=re.circularLinkType,Ce=ce.links.filter(function(me){return me.source.column==pe&&me.circularLinkType==Te});re.circularLinkType=="bottom"?Ce.sort(X):Ce.sort($);var ze=0;Ce.forEach(function(me,Le){me.circularLinkID==re.circularLinkID&&(re.circularPathData.leftSmallArcRadius=y+re.width/2+ze,re.circularPathData.leftLargeArcRadius=y+re.width/2+Le*oe+ze),ze=ze+me.width}),pe=re.target.column,Ce=ce.links.filter(function(me){return me.target.column==pe&&me.circularLinkType==Te}),re.circularLinkType=="bottom"?Ce.sort(G):Ce.sort(K),ze=0,Ce.forEach(function(me,Le){me.circularLinkID==re.circularLinkID&&(re.circularPathData.rightSmallArcRadius=y+re.width/2+ze,re.circularPathData.rightLargeArcRadius=y+re.width/2+Le*oe+ze),ze=ze+me.width}),re.circularLinkType=="bottom"?(re.circularPathData.verticalFullExtent=Math.max(Se,re.source.y1,re.target.y1)+T+re.circularPathData.verticalBuffer,re.circularPathData.verticalLeftInnerExtent=re.circularPathData.verticalFullExtent-re.circularPathData.leftLargeArcRadius,re.circularPathData.verticalRightInnerExtent=re.circularPathData.verticalFullExtent-re.circularPathData.rightLargeArcRadius):(re.circularPathData.verticalFullExtent=ee-T-re.circularPathData.verticalBuffer,re.circularPathData.verticalLeftInnerExtent=re.circularPathData.verticalFullExtent+re.circularPathData.leftLargeArcRadius,re.circularPathData.verticalRightInnerExtent=re.circularPathData.verticalFullExtent+re.circularPathData.rightLargeArcRadius)}re.circularPathData.leftInnerExtent=re.circularPathData.sourceX+re.circularPathData.leftNodeBuffer,re.circularPathData.rightInnerExtent=re.circularPathData.targetX-re.circularPathData.rightNodeBuffer,re.circularPathData.leftFullExtent=re.circularPathData.sourceX+re.circularPathData.leftLargeArcRadius+re.circularPathData.leftNodeBuffer,re.circularPathData.rightFullExtent=re.circularPathData.targetX-re.circularPathData.rightLargeArcRadius-re.circularPathData.rightNodeBuffer}if(re.circular)re.path=B(re);else{var we=i.linkHorizontal().source(function(me){var Le=me.source.x0+(me.source.x1-me.source.x0),Ne=me.y0;return[Le,Ne]}).target(function(me){var Le=me.target.x0,Ne=me.y1;return[Le,Ne]});re.path=we(re)}})}function B(ce){var oe="";return ce.circularLinkType=="top"?oe="M"+ce.circularPathData.sourceX+" "+ce.circularPathData.sourceY+" L"+ce.circularPathData.leftInnerExtent+" "+ce.circularPathData.sourceY+" A"+ce.circularPathData.leftLargeArcRadius+" "+ce.circularPathData.leftSmallArcRadius+" 0 0 0 "+ce.circularPathData.leftFullExtent+" "+(ce.circularPathData.sourceY-ce.circularPathData.leftSmallArcRadius)+" L"+ce.circularPathData.leftFullExtent+" "+ce.circularPathData.verticalLeftInnerExtent+" A"+ce.circularPathData.leftLargeArcRadius+" "+ce.circularPathData.leftLargeArcRadius+" 0 0 0 "+ce.circularPathData.leftInnerExtent+" "+ce.circularPathData.verticalFullExtent+" L"+ce.circularPathData.rightInnerExtent+" "+ce.circularPathData.verticalFullExtent+" A"+ce.circularPathData.rightLargeArcRadius+" "+ce.circularPathData.rightLargeArcRadius+" 0 0 0 "+ce.circularPathData.rightFullExtent+" "+ce.circularPathData.verticalRightInnerExtent+" L"+ce.circularPathData.rightFullExtent+" "+(ce.circularPathData.targetY-ce.circularPathData.rightSmallArcRadius)+" A"+ce.circularPathData.rightLargeArcRadius+" "+ce.circularPathData.rightSmallArcRadius+" 0 0 0 "+ce.circularPathData.rightInnerExtent+" "+ce.circularPathData.targetY+" L"+ce.circularPathData.targetX+" "+ce.circularPathData.targetY:oe="M"+ce.circularPathData.sourceX+" "+ce.circularPathData.sourceY+" L"+ce.circularPathData.leftInnerExtent+" "+ce.circularPathData.sourceY+" A"+ce.circularPathData.leftLargeArcRadius+" "+ce.circularPathData.leftSmallArcRadius+" 0 0 1 "+ce.circularPathData.leftFullExtent+" "+(ce.circularPathData.sourceY+ce.circularPathData.leftSmallArcRadius)+" L"+ce.circularPathData.leftFullExtent+" "+ce.circularPathData.verticalLeftInnerExtent+" A"+ce.circularPathData.leftLargeArcRadius+" "+ce.circularPathData.leftLargeArcRadius+" 0 0 1 "+ce.circularPathData.leftInnerExtent+" "+ce.circularPathData.verticalFullExtent+" L"+ce.circularPathData.rightInnerExtent+" "+ce.circularPathData.verticalFullExtent+" A"+ce.circularPathData.rightLargeArcRadius+" "+ce.circularPathData.rightLargeArcRadius+" 0 0 1 "+ce.circularPathData.rightFullExtent+" "+ce.circularPathData.verticalRightInnerExtent+" L"+ce.circularPathData.rightFullExtent+" "+(ce.circularPathData.targetY+ce.circularPathData.rightSmallArcRadius)+" A"+ce.circularPathData.rightLargeArcRadius+" "+ce.circularPathData.rightSmallArcRadius+" 0 0 1 "+ce.circularPathData.rightInnerExtent+" "+ce.circularPathData.targetY+" L"+ce.circularPathData.targetX+" "+ce.circularPathData.targetY,oe}function O(ce,oe){return q(ce)==q(oe)?ce.circularLinkType=="bottom"?X(ce,oe):$(ce,oe):q(oe)-q(ce)}function $(ce,oe){return ce.y0-oe.y0}function X(ce,oe){return oe.y0-ce.y0}function K(ce,oe){return ce.y1-oe.y1}function G(ce,oe){return oe.y1-ce.y1}function q(ce){return ce.target.column-ce.source.column}function J(ce){return ce.target.x0-ce.source.x1}function N(ce,oe){var Se=D(ce),be=J(oe)/Math.tan(Se),fe=ge(ce)=="up"?ce.y1+be:ce.y1-be;return fe}function V(ce,oe){var Se=D(ce),be=J(oe)/Math.tan(Se),fe=ge(ce)=="up"?ce.y1-be:ce.y1+be;return fe}function Y(ce,oe,Se,be){ce.links.forEach(function(fe){if(!fe.circular&&fe.target.column-fe.source.column>1){var ee=fe.source.column+1,ae=fe.target.column-1,_e=1,re=ae-ee+1;for(_e=1;ee<=ae;ee++,_e++)ce.nodes.forEach(function(pe){if(pe.column==ee){var Te=_e/(re+1),Ce=Math.pow(1-Te,3),ze=3*Te*Math.pow(1-Te,2),we=3*Math.pow(Te,2)*(1-Te),me=Math.pow(Te,3),Le=Ce*fe.y0+ze*fe.y0+we*fe.y1+me*fe.y1,Ne=Le-fe.width/2,Je=Le+fe.width/2,rt;Ne>pe.y0&&Nepe.y0&&Jepe.y1&&j(mt,rt,oe,Se)})):Nepe.y1&&(rt=Je-pe.y0+10,pe=j(pe,rt,oe,Se),ce.nodes.forEach(function(mt){A(mt,be)==A(pe,be)||mt.column!=pe.column||mt.y0pe.y1&&j(mt,rt,oe,Se)}))}})}})}function H(ce,oe){return ce.y0>oe.y0&&ce.y0oe.y0&&ce.y1oe.y1}function j(ce,oe,Se,be){return ce.y0+oe>=Se&&ce.y1+oe<=be&&(ce.y0=ce.y0+oe,ce.y1=ce.y1+oe,ce.targetLinks.forEach(function(fe){fe.y1=fe.y1+oe}),ce.sourceLinks.forEach(function(fe){fe.y0=fe.y0+oe})),ce}function Q(ce,oe,Se,be){ce.nodes.forEach(function(fe){be&&fe.y+(fe.y1-fe.y0)>oe&&(fe.y=fe.y-(fe.y+(fe.y1-fe.y0)-oe));var ee=ce.links.filter(function(re){return A(re.source,Se)==A(fe,Se)}),ae=ee.length;ae>1&&ee.sort(function(re,pe){if(!re.circular&&!pe.circular){if(re.target.column==pe.target.column)return re.y1-pe.y1;if(ue(re,pe)){if(re.target.column>pe.target.column){var Te=V(pe,re);return re.y1-Te}if(pe.target.column>re.target.column){var Ce=V(re,pe);return Ce-pe.y1}}else return re.y1-pe.y1}if(re.circular&&!pe.circular)return re.circularLinkType=="top"?-1:1;if(pe.circular&&!re.circular)return pe.circularLinkType=="top"?1:-1;if(re.circular&&pe.circular)return re.circularLinkType===pe.circularLinkType&&re.circularLinkType=="top"?re.target.column===pe.target.column?re.target.y1-pe.target.y1:pe.target.column-re.target.column:re.circularLinkType===pe.circularLinkType&&re.circularLinkType=="bottom"?re.target.column===pe.target.column?pe.target.y1-re.target.y1:re.target.column-pe.target.column:re.circularLinkType=="top"?-1:1});var _e=fe.y0;ee.forEach(function(re){re.y0=_e+re.width/2,_e=_e+re.width}),ee.forEach(function(re,pe){if(re.circularLinkType=="bottom"){var Te=pe+1,Ce=0;for(Te;Te1&&fe.sort(function(_e,re){if(!_e.circular&&!re.circular){if(_e.source.column==re.source.column)return _e.y0-re.y0;if(ue(_e,re)){if(re.source.column<_e.source.column){var pe=N(re,_e);return _e.y0-pe}if(_e.source.column0?"up":"down"}function Ee(ce,oe){return A(ce.source,oe)==A(ce.target,oe)}function xe(ce,oe,Se){var be=ce.nodes,fe=ce.links,ee=!1,ae=!1;if(fe.forEach(function(ze){ze.circularLinkType=="top"?ee=!0:ze.circularLinkType=="bottom"&&(ae=!0)}),ee==!1||ae==!1){var _e=t.min(be,function(ze){return ze.y0}),re=t.max(be,function(ze){return ze.y1}),pe=re-_e,Te=Se-oe,Ce=Te/pe;be.forEach(function(ze){var we=(ze.y1-ze.y0)*Ce;ze.y0=(ze.y0-_e)*Ce,ze.y1=ze.y0+we}),fe.forEach(function(ze){ze.y0=(ze.y0-_e)*Ce,ze.y1=(ze.y1-_e)*Ce,ze.width=ze.width*Ce})}}e.sankeyCircular=M,e.sankeyCenter=u,e.sankeyLeft=o,e.sankeyRight=s,e.sankeyJustify=l,Object.defineProperty(e,"__esModule",{value:!0})}))});var ise={};Jn(ise,{cn:()=>U8r,duration:()=>O8r,ease:()=>N8r,forceIterations:()=>B8r,forceTicksPerFrame:()=>q8r,nodePadAcross:()=>R8r,nodeTextOffsetHorizontal:()=>P8r,nodeTextOffsetVertical:()=>I8r,sankeyIterations:()=>z8r});var P8r,I8r,R8r,z8r,B8r,q8r,O8r,N8r,U8r,nse=Ci(()=>{"use strict";P8r=4,I8r=3,R8r=10,z8r=50,B8r=5,q8r=10,O8r=500,N8r="linear",U8r={sankey:"sankey",sankeyLinks:"sankey-links",sankeyLink:"sankey-link",sankeyNodeSet:"sankey-node-set",sankeyNode:"sankey-node",nodeRect:"node-rect",nodeLabel:"node-label"}});var Kct=W((xui,Zct)=>{"use strict";var qct=Act(),V8r=(S_(),Pt(M_)).interpolateNumber,d6=gi(),o8=Fct(),G8r=Bct(),Bo=(nse(),Pt(ise)),pg=ti(),H8r=Qi(),vg=tt(),C3=vg.strTranslate,Oct=vg.strRotate,sse=eg(),s8=sse.keyFun,PO=sse.repeat,jct=sse.unwrap,Nct=ao(),j8r=xi(),$ct=(Jl(),Pt(Kl)),$8r=$ct.CAP_SHIFT,W8r=$ct.LINE_SPACING,Y8r=3;function X8r(e,t,r){var i=jct(t),n=i.trace,a=n.domain,o=n.orientation==="h",s=n.direction==="reversed",l=n.node.pad,u=n.node.thickness,c={justify:o8.sankeyJustify,left:o8.sankeyLeft,right:o8.sankeyRight,center:o8.sankeyCenter}[n.node.align],f=e.width*(a.x[1]-a.x[0]),h=e.height*(a.y[1]-a.y[0]),p=i._nodes,d=i._links,v=i.circular,m;v?m=G8r.sankeyCircular().circularLinkGap(0):m=o8.sankey(),m.iterations(Bo.sankeyIterations).size(o?[f,h]:[h,f]).nodeWidth(u).nodePadding(l).nodeId(function(L){return L.pointNumber}).nodeAlign(c).nodes(p).links(d);function g(L){n[L].sort==="input"&&(v?vg.warn(`Circular Sankey diagrams do not support the "input" ${L}.sort mode; falling back to the default sort.`):m[`${L}Sort`](null))}g("link"),g("node");var w=m();m.nodePadding()=$||(O=$-B.y0,O>1e-6&&(B.y0+=O,B.y1+=O)),$=B.y1+l})}function C(L){var I=L.map(function(q,J){return{x0:q.x0,index:J}}).sort(function(q,J){return q.x0-J.x0}),B=[],O=-1,$,X=-1/0,K;for(_=0;_X+u&&(O+=1,$=G.x0),X=G.x0,B[O]||(B[O]=[]),B[O].push(G),K=$-G.x0,G.x0+=K,G.x1+=K}return B}if(n.node.x.length&&n.node.y.length){for(_=0;_0?" L "+n.targetX+" "+n.targetY:"")+"Z"):(r="M "+(n.targetX-t)+" "+(n.targetY-i)+" L "+(n.rightInnerExtent-t)+" "+(n.targetY-i)+" A "+(n.rightLargeArcRadius+i)+" "+(n.rightSmallArcRadius+i)+" 0 0 0 "+(n.rightFullExtent-i-t)+" "+(n.targetY+n.rightSmallArcRadius)+" L "+(n.rightFullExtent-i-t)+" "+n.verticalRightInnerExtent,a&&o?r+=" A "+(n.rightLargeArcRadius+i)+" "+(n.rightLargeArcRadius+i)+" 0 0 0 "+(n.rightInnerExtent-i-t)+" "+(n.verticalFullExtent+i)+" L "+(n.rightFullExtent+i-t-(n.rightLargeArcRadius-i))+" "+(n.verticalFullExtent+i)+" A "+(n.rightLargeArcRadius+i)+" "+(n.rightLargeArcRadius+i)+" 0 0 0 "+(n.leftFullExtent+i)+" "+n.verticalLeftInnerExtent:a?r+=" A "+(n.rightLargeArcRadius-i)+" "+(n.rightSmallArcRadius-i)+" 0 0 1 "+(n.rightFullExtent-t-i-(n.rightLargeArcRadius-i))+" "+(n.verticalFullExtent-i)+" L "+(n.leftFullExtent+i+(n.rightLargeArcRadius-i))+" "+(n.verticalFullExtent-i)+" A "+(n.rightLargeArcRadius-i)+" "+(n.rightSmallArcRadius-i)+" 0 0 1 "+(n.leftFullExtent+i)+" "+n.verticalLeftInnerExtent:r+=" A "+(n.rightLargeArcRadius+i)+" "+(n.rightLargeArcRadius+i)+" 0 0 0 "+(n.rightInnerExtent-t)+" "+(n.verticalFullExtent+i)+" L "+n.leftInnerExtent+" "+(n.verticalFullExtent+i)+" A "+(n.leftLargeArcRadius+i)+" "+(n.leftLargeArcRadius+i)+" 0 0 0 "+(n.leftFullExtent+i)+" "+n.verticalLeftInnerExtent,r+=" L "+(n.leftFullExtent+i)+" "+(n.sourceY+n.leftSmallArcRadius)+" A "+(n.leftLargeArcRadius+i)+" "+(n.leftSmallArcRadius+i)+" 0 0 0 "+n.leftInnerExtent+" "+(n.sourceY-i)+" L "+n.sourceX+" "+(n.sourceY-i)+" L "+n.sourceX+" "+(n.sourceY+i)+" L "+n.leftInnerExtent+" "+(n.sourceY+i)+" A "+(n.leftLargeArcRadius-i)+" "+(n.leftSmallArcRadius-i)+" 0 0 1 "+(n.leftFullExtent-i)+" "+(n.sourceY+n.leftSmallArcRadius)+" L "+(n.leftFullExtent-i)+" "+n.verticalLeftInnerExtent,a&&o?r+=" A "+(n.rightLargeArcRadius-i)+" "+(n.rightSmallArcRadius-i)+" 0 0 1 "+(n.leftFullExtent-i-(n.rightLargeArcRadius-i))+" "+(n.verticalFullExtent-i)+" L "+(n.rightFullExtent+i-t+(n.rightLargeArcRadius-i))+" "+(n.verticalFullExtent-i)+" A "+(n.rightLargeArcRadius-i)+" "+(n.rightSmallArcRadius-i)+" 0 0 1 "+(n.rightFullExtent+i-t)+" "+n.verticalRightInnerExtent:a?r+=" A "+(n.rightLargeArcRadius+i)+" "+(n.rightLargeArcRadius+i)+" 0 0 0 "+(n.leftFullExtent+i)+" "+(n.verticalFullExtent+i)+" L "+(n.rightFullExtent-t-i)+" "+(n.verticalFullExtent+i)+" A "+(n.rightLargeArcRadius+i)+" "+(n.rightLargeArcRadius+i)+" 0 0 0 "+(n.rightFullExtent+i-t)+" "+n.verticalRightInnerExtent:r+=" A "+(n.leftLargeArcRadius-i)+" "+(n.leftLargeArcRadius-i)+" 0 0 1 "+n.leftInnerExtent+" "+(n.verticalFullExtent-i)+" L "+(n.rightInnerExtent-t)+" "+(n.verticalFullExtent-i)+" A "+(n.rightLargeArcRadius-i)+" "+(n.rightLargeArcRadius-i)+" 0 0 1 "+(n.rightFullExtent+i-t)+" "+n.verticalRightInnerExtent,r+=" L "+(n.rightFullExtent+i-t)+" "+(n.targetY+n.rightSmallArcRadius)+" A "+(n.rightLargeArcRadius-i)+" "+(n.rightSmallArcRadius-i)+" 0 0 1 "+(n.rightInnerExtent-t)+" "+(n.targetY+i)+" L "+(n.targetX-t)+" "+(n.targetY+i)+(t>0?" L "+n.targetX+" "+n.targetY:"")+"Z"),r}function lse(){var e=.5;function t(r){var i=r.linkArrowLength;if(r.link.circular)return K8r(r.link,i);var n=Math.abs((r.link.target.x0-r.link.source.x1)/2);i>n&&(i=n);var a=r.link.source.x1,o=r.link.target.x0-i,s=V8r(a,o),l=s(e),u=s(1-e),c=r.link.y0-r.link.width/2,f=r.link.y0+r.link.width/2,h=r.link.y1-r.link.width/2,p=r.link.y1+r.link.width/2,d="M"+a+","+c,v="C"+l+","+c+" "+u+","+h+" "+o+","+h,m="C"+u+","+p+" "+l+","+f+" "+a+","+f,g=i>0?"L"+(o+i)+","+(h+r.link.width/2):"";return g+="L"+o+","+p,d+v+g+m+"Z"}return t}function J8r(e,t){var r=Bo.nodePadAcross,i=e.nodePad/2;t.dx=t.x1-t.x0,t.dy=t.y1-t.y0;var n=t.dx,a=Math.max(.5,t.dy),o="node_"+t.pointNumber;return t.group&&(o=vg.randstr()),t.trace=e.trace,t.curveNumber=e.trace.index,{index:t.pointNumber,key:o,partOfGroup:t.partOfGroup||!1,group:t.group,traceId:e.key,trace:e.trace,node:t,nodePad:e.nodePad,nodeLineColor:e.nodeLineColor,nodeLineWidth:e.nodeLineWidth,textFont:e.textFont,size:e.horizontal?e.height:e.width,visibleWidth:Math.ceil(n),visibleHeight:a,zoneX:-r,zoneY:-i,zoneWidth:n+2*r,zoneHeight:a+2*i,labelY:e.horizontal?t.dy/2+1:t.dx/2+1,left:t.originalLayer===1,sizeAcross:e.width,forceLayouts:e.forceLayouts,horizontal:e.horizontal,reversed:e.reversed,rgb:pg.rgb(t.color),alpha:pg.parse(t.color).alpha,valueFormat:e.valueFormat,valueSuffix:e.valueSuffix,sankey:e.sankey,graph:e.graph,arrangement:e.arrangement,uniqueNodeLabelPathId:[e.guid,e.key,o].join("_"),interactionState:e.interactionState,figure:e}}function ose(e){e.attr("transform",function(t){return C3(t.node.x0.toFixed(3),t.node.y0.toFixed(3))})}function Q8r(e){e.call(ose)}function Wct(e,t){e.call(Q8r),t.attr("d",lse())}function Uct(e){e.attr("width",function(t){return t.node.x1-t.node.x0}).attr("height",function(t){return t.visibleHeight})}function ase(e){return e.link.width>1||e.linkLineWidth>0}function Vct(e){return e.horizontal?e.reversed?C3(e.translateX+e.width,e.translateY)+"matrix(-1 0 0 1 0 0)":C3(e.translateX,e.translateY)+"matrix(1 0 0 1 0 0)":e.reversed?C3(e.translateX,e.translateY+e.height)+"matrix(0 -1 1 0 0 0)":C3(e.translateX,e.translateY)+"matrix(0 1 1 0 0 0)"}function Gct(e,t,r){e.on(".basic",null).on("mouseover.basic",function(i){!i.interactionState.dragInProgress&&!i.partOfGroup&&(r.hover(this,i,t),i.interactionState.hovered=[this,i])}).on("mousemove.basic",function(i){!i.interactionState.dragInProgress&&!i.partOfGroup&&(r.follow(this,i),i.interactionState.hovered=[this,i])}).on("mouseout.basic",function(i){!i.interactionState.dragInProgress&&!i.partOfGroup&&(r.unhover(this,i,t),i.interactionState.hovered=!1)}).on("click.basic",function(i){i.interactionState.hovered&&(r.unhover(this,i,t),i.interactionState.hovered=!1),!i.interactionState.dragInProgress&&!i.partOfGroup&&r.select(this,i,t)})}function eDr(e,t,r,i){var n=d6.behavior.drag().origin(function(a){return{x:a.node.x0+a.visibleWidth/2,y:a.node.y0+a.visibleHeight/2}}).on("dragstart",function(a){if(a.arrangement!=="fixed"&&(vg.ensureSingle(i._fullLayout._infolayer,"g","dragcover",function(s){i._fullLayout._dragCover=s}),vg.raiseToTop(this),a.interactionState.dragInProgress=a.node,Hct(a.node),a.interactionState.hovered&&(r.nodeEvents.unhover.apply(0,a.interactionState.hovered),a.interactionState.hovered=!1),a.arrangement==="snap")){var o=a.traceId+"|"+a.key;a.forceLayouts[o]?a.forceLayouts[o].alpha(1):tDr(e,o,a,i),rDr(e,t,a,o,i)}}).on("drag",function(a){if(a.arrangement!=="fixed"){var o=d6.event.x,s=d6.event.y;a.arrangement==="snap"?(a.node.x0=o-a.visibleWidth/2,a.node.x1=o+a.visibleWidth/2,a.node.y0=s-a.visibleHeight/2,a.node.y1=s+a.visibleHeight/2):(a.arrangement==="freeform"&&(a.node.x0=o-a.visibleWidth/2,a.node.x1=o+a.visibleWidth/2),s=Math.max(0,Math.min(a.size-a.visibleHeight/2,s)),a.node.y0=s-a.visibleHeight/2,a.node.y1=s+a.visibleHeight/2),Hct(a.node),a.arrangement!=="snap"&&(a.sankey.update(a.graph),Wct(e.filter(Xct(a)),t))}}).on("dragend",function(a){if(a.arrangement!=="fixed"){a.interactionState.dragInProgress=!1;for(var o=0;o0)window.requestAnimationFrame(a);else{var l=r.node.originalX;r.node.x0=l-r.visibleWidth/2,r.node.x1=l+r.visibleWidth/2,Yct(r,n)}})}function iDr(e,t,r,i){return function(){for(var a=0,o=0;o0&&i.forceLayouts[t].alpha(0)}}function Yct(e,t){let r=[...e.trace.node.x],i=[...e.trace.node.y];for(let n of e.graph.nodes)n.partOfGroup||(r[n.pointNumber]=(n.x0+n.x1)/2/e.figure.width,i[n.pointNumber]=(n.y0+n.y1)/2/e.figure.height);j8r.call("_guiRestyle",t,{"node.x":[r],"node.y":[i]},e.trace.index).then(function(){t._fullLayout._dragCover&&t._fullLayout._dragCover.remove()})}function nDr(e){var t=[],r;for(r=0;rase(m)?pg.rgb(m.linkLineColor):m.rgb).style("stroke-opacity",m=>ase(m)?pg.opacity(m.linkLineColor):m.alpha).style("fill",m=>m.rgb).style("fill-opacity",m=>m.alpha).style("stroke-width",m=>ase(m)?m.linkLineWidth:1).attr("d",lse()),f.style("opacity",function(){return e._context.staticPlot||o||s?1:0}).transition().ease(Bo.ease).duration(Bo.duration).style("opacity",1),f.exit().transition().ease(Bo.ease).duration(Bo.duration).style("opacity",0).remove();var h=u.selectAll("."+Bo.cn.sankeyNodeSet).data(PO,s8);h.enter().append("g").classed(Bo.cn.sankeyNodeSet,!0),h.style("cursor",function(m){switch(m.arrangement){case"fixed":return"default";case"perpendicular":return"ns-resize";default:return"move"}});var p=h.selectAll("."+Bo.cn.sankeyNode).data(function(m){var g=m.graph.nodes;return nDr(g),g.map(J8r.bind(null,m))},s8);p.enter().append("g").classed(Bo.cn.sankeyNode,!0).call(ose).style("opacity",function(m){return(e._context.staticPlot||o)&&!m.partOfGroup?1:0}),p.call(Gct,u,n.nodeEvents).call(eDr,f,n,e),p.transition().ease(Bo.ease).duration(Bo.duration).call(ose).style("opacity",function(m){return m.partOfGroup?0:1}),p.exit().transition().ease(Bo.ease).duration(Bo.duration).style("opacity",0).remove();var d=p.selectAll("."+Bo.cn.nodeRect).data(PO);d.enter().append("rect").classed(Bo.cn.nodeRect,!0).call(Uct),d.style("stroke-width",function(m){return m.nodeLineWidth}).style("stroke",function(m){return pg.rgb(m.nodeLineColor)}).style("stroke-opacity",function(m){return pg.opacity(m.nodeLineColor)}).style("fill",m=>m.rgb).style("fill-opacity",m=>m.alpha),d.transition().ease(Bo.ease).duration(Bo.duration).call(Uct);var v=p.selectAll("."+Bo.cn.nodeLabel).data(PO);v.enter().append("text").classed(Bo.cn.nodeLabel,!0).style("cursor","default"),v.attr("data-notex",1).text(function(m){return m.node.label}).each(function(m){var g=d6.select(this);H8r.font(g,m.textFont),Nct.convertToTspans(g,e)}).attr("text-anchor",function(m){return m.horizontal&&m.left!==m.reversed?"end":"start"}).attr("transform",function(m){var g=d6.select(this),w=Nct.lineCount(g),_=m.textFont.size*((w-1)*W8r-$8r),b=m.nodeLineWidth/2+Y8r;if(!m.horizontal){var A=m.reversed?(m.visibleWidth+_)/2:(m.visibleWidth-_)/2,S=m.reversed?Oct(90):"scale(-1,1)"+Oct(90);return C3(A,b)+S}var x=b,A=(m.visibleHeight-_)/2;return m.left?x=-x:x+=m.visibleWidth,C3(x,A)+(m.reversed?"scale(-1,1)":"")}),v.transition().ease(Bo.ease).duration(Bo.duration)}});var fse=W((bui,oft)=>{"use strict";var jf=gi(),cse=tt(),IO=cse.numberFormat,sDr=Kct(),p6=Is(),lDr=ti(),wx=(nse(),Pt(ise)).cn,l8=cse._;function Jct(e){return e!==""}function v6(e,t){return e.filter(function(r){return r.key===t.traceId})}function Qct(e,t){jf.select(e).select("path").style("fill-opacity",t),jf.select(e).select("rect").style("fill-opacity",t)}function eft(e){jf.select(e).select("text.name").style("fill","black")}function tft(e){return function(t){return e.node.sourceLinks.indexOf(t.link)!==-1||e.node.targetLinks.indexOf(t.link)!==-1}}function rft(e){return function(t){return t.node.sourceLinks.indexOf(e.link)!==-1||t.node.targetLinks.indexOf(e.link)!==-1}}function ift(e,t,r){t&&r&&v6(r,t).selectAll("."+wx.sankeyLink).filter(tft(t)).call(nft.bind(0,t,r,!1))}function use(e,t,r){t&&r&&v6(r,t).selectAll("."+wx.sankeyLink).filter(tft(t)).call(aft.bind(0,t,r,!1))}function nft(e,t,r,i){i.style("fill",function(n){if(!n.link.concentrationscale)return n.hoverRgb}).style("fill-opacity",function(n){if(!n.link.concentrationscale)return n.hoverAlpha}),i.each(function(n){var a=n.link.label;a!==""&&v6(t,e).selectAll("."+wx.sankeyLink).filter(function(o){return o.link.label===a}).style("fill",function(o){if(!o.link.concentrationscale)return o.hoverRgb}).style("fill-opacity",function(o){if(!o.link.concentrationscale)return o.hoverAlpha})}),r&&v6(t,e).selectAll("."+wx.sankeyNode).filter(rft(e)).call(ift)}function aft(e,t,r,i){i.style("fill",function(n){return n.rgb}).style("fill-opacity",function(n){return n.alpha}),i.each(function(n){var a=n.link.label;a!==""&&v6(t,e).selectAll("."+wx.sankeyLink).filter(function(o){return o.link.label===a}).style("fill",o=>o.rgb).style("fill-opacity",o=>o.alpha)}),r&&v6(t,e).selectAll(wx.sankeyNode).filter(rft(e)).call(use)}function Qs(e,t){var r=e.hoverlabel||{},i=cse.nestedProperty(r,t).get();return Array.isArray(i)?!1:i}oft.exports=function(t,r){for(var i=t._fullLayout,n=i._paper,a=i._size,o=0;o"),color:Qs(A,"bgcolor")||lDr.addOpacity(C.color,1),borderColor:Qs(A,"bordercolor"),fontFamily:Qs(A,"font.family"),fontSize:Qs(A,"font.size"),fontColor:Qs(A,"font.color"),fontWeight:Qs(A,"font.weight"),fontStyle:Qs(A,"font.style"),fontVariant:Qs(A,"font.variant"),fontTextcase:Qs(A,"font.textcase"),fontLineposition:Qs(A,"font.lineposition"),fontShadow:Qs(A,"font.shadow"),nameLength:Qs(A,"namelength"),textAlign:Qs(A,"align"),idealAlign:jf.event.x"),color:Qs(A,"bgcolor")||x.rgb,borderColor:Qs(A,"bordercolor"),fontFamily:Qs(A,"font.family"),fontSize:Qs(A,"font.size"),fontColor:Qs(A,"font.color"),fontWeight:Qs(A,"font.weight"),fontStyle:Qs(A,"font.style"),fontVariant:Qs(A,"font.variant"),fontTextcase:Qs(A,"font.textcase"),fontLineposition:Qs(A,"font.lineposition"),fontShadow:Qs(A,"font.shadow"),nameLength:Qs(A,"namelength"),textAlign:Qs(A,"align"),idealAlign:"left",hovertemplate:A.hovertemplate,hovertemplateLabels:D,eventData:[x.node]},{container:i._hoverlayer.node(),outerContainer:i._paper.node(),gd:t});Qct(R,.85),eft(R)}}},b=function(S,x,A){t._fullLayout.hovermode!==!1&&(jf.select(S).call(use,x,A),x.node.trace.node.hoverinfo!=="skip"&&(x.node.fullData=x.node.trace,t.emit("plotly_unhover",{event:jf.event,points:[x.node]})),p6.loneUnhover(i._hoverlayer.node()))};sDr(t,n,r,{width:a.w,height:a.h,margin:{t:a.t,r:a.r,b:a.b,l:a.l}},{linkEvents:{hover:u,follow:v,unhover:m,select:l},nodeEvents:{hover:w,follow:_,unhover:b,select:g}})}});var sft=W(D3=>{"use strict";var uDr=hs().overrideAll,cDr=Mc().getModuleCalcData,fDr=fse(),hDr=yy(),dDr=Xp(),pDr=Ef(),vDr=xu().prepSelect,hse=tt(),gDr=xi(),RO="sankey";D3.name=RO;D3.baseLayoutAttrOverrides=uDr({hoverlabel:hDr.hoverlabel},"plot","nested");D3.plot=function(e){var t=cDr(e.calcdata,RO)[0];fDr(e,t),D3.updateFx(e)};D3.clean=function(e,t,r,i){var n=i._has&&i._has(RO),a=t._has&&t._has(RO);n&&!a&&(i._paperdiv.selectAll(".sankey").remove(),i._paperdiv.selectAll(".bgsankey").remove())};D3.updateFx=function(e){for(var t=0;t{"use strict";lft.exports=function(t,r){for(var i=t.cd,n=[],a=i[0].trace,o=a._sankey,s=o.graph.nodes,l=a.orientation==="v",u=a.direction==="reversed",c=0;c{"use strict";cft.exports={attributes:Qoe(),supplyDefaults:cct(),calc:vct(),plot:fse(),moduleType:"trace",name:"sankey",basePlotModule:sft(),selectPoints:uft(),categories:["noOpacity"],meta:{}}});var dft=W((Aui,hft)=>{"use strict";hft.exports=fft()});var vft=W(g6=>{"use strict";var pft=Qo();g6.name="indicator";g6.plot=function(e,t,r,i){pft.plotBasePlot(g6.name,e,t,r,i)};g6.clean=function(e,t,r,i){pft.cleanBasePlot(g6.name,e,t,r,i)}});var pse=W((Sui,_ft)=>{"use strict";var Tx=an().extendFlat,mft=an().extendDeep,yDr=hs().overrideAll,yft=jo(),xft=Yl(),xDr=ds().attributes,fl=ac(),bDr=Ra().templatedArray,zO=(G5(),Pt(V5)),gft=Ts().descriptionOnlyNumbers,dse=yft({editType:"plot",colorEditType:"plot"}),u8={color:{valType:"color",editType:"plot"},line:{color:{valType:"color",dflt:xft.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"},bft={valType:"info_array",items:[{valType:"number",editType:"plot"},{valType:"number",editType:"plot"}],editType:"plot"},_Dr=bDr("step",mft({},u8,{range:bft}));_ft.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:xDr({name:"indicator",trace:!0,editType:"calc"}),title:{text:{valType:"string",editType:"plot"},align:{valType:"enumerated",values:["left","center","right"],editType:"plot"},font:Tx({},dse,{}),editType:"plot"},number:{valueformat:{valType:"string",dflt:"",editType:"plot",description:gft("value")},font:Tx({},dse,{}),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:gft("value")},increasing:{symbol:{valType:"string",dflt:zO.INCREASING.SYMBOL,editType:"plot"},color:{valType:"color",dflt:zO.INCREASING.COLOR,editType:"plot"},editType:"plot"},decreasing:{symbol:{valType:"string",dflt:zO.DECREASING.SYMBOL,editType:"plot"},color:{valType:"color",dflt:zO.DECREASING.COLOR,editType:"plot"},editType:"plot"},font:Tx({},dse,{}),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:mft({},u8,{color:{dflt:"green"}}),bgcolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:xft.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:1,editType:"plot"},axis:yDr({range:bft,visible:Tx({},fl.visible,{dflt:!0}),tickmode:fl.minor.tickmode,nticks:fl.nticks,tick0:fl.tick0,dtick:fl.dtick,tickvals:fl.tickvals,ticktext:fl.ticktext,ticks:Tx({},fl.ticks,{dflt:"outside"}),ticklen:fl.ticklen,tickwidth:fl.tickwidth,tickcolor:fl.tickcolor,ticklabelstep:fl.ticklabelstep,showticklabels:fl.showticklabels,labelalias:fl.labelalias,tickfont:yft({}),tickangle:fl.tickangle,tickformat:fl.tickformat,tickformatstops:fl.tickformatstops,tickprefix:fl.tickprefix,showtickprefix:fl.showtickprefix,ticksuffix:fl.ticksuffix,showticksuffix:fl.showticksuffix,separatethousands:fl.separatethousands,exponentformat:fl.exponentformat,minexponent:fl.minexponent,showexponent:fl.showexponent,editType:"plot"},"plot"),steps:_Dr,threshold:{line:{color:Tx({},u8.line.color,{}),width:Tx({},u8.line.width,{dflt:1}),editType:"plot"},thickness:Tx({},u8.thickness,{dflt:.85}),value:{valType:"number",editType:"calc",dflt:!1},editType:"plot"},editType:"plot"}}});var vse={};Jn(vse,{bulletNumberDomainSize:()=>TDr,bulletPadding:()=>ADr,defaultNumberFontSize:()=>wDr,horizontalPadding:()=>kDr,innerRadius:()=>MDr,titlePadding:()=>EDr,valueThickness:()=>SDr});var wDr,TDr,ADr,MDr,SDr,EDr,kDr,gse=Ci(()=>{"use strict";wDr=80,TDr=.25,ADr=.025,MDr=.75,SDr=.5,EDr=5,kDr=10});var Aft=W((Eui,Tft)=>{"use strict";var gg=tt(),qO=pse(),CDr=ds().defaults,wft=Ra(),DDr=tf(),BO=(gse(),Pt(vse)),FDr=ub(),LDr=Cw(),PDr=Py(),IDr=Iy();function RDr(e,t,r,i){function n(x,A){return gg.coerce(e,t,qO,x,A)}CDr(t,i,n),n("mode"),t._hasNumber=t.mode.indexOf("number")!==-1,t._hasDelta=t.mode.indexOf("delta")!==-1,t._hasGauge=t.mode.indexOf("gauge")!==-1;var a=n("value");t._range=[0,typeof a=="number"?1.5*a:1];var o=new Array(2),s;if(t._hasNumber){n("number.valueformat");var l=gg.extendFlat({},i.font);l.size=void 0,gg.coerceFont(n,"number.font",l),t.number.font.size===void 0&&(t.number.font.size=BO.defaultNumberFontSize,o[0]=!0),n("number.prefix"),n("number.suffix"),s=t.number.font.size}var u;if(t._hasDelta){var c=gg.extendFlat({},i.font);c.size=void 0,gg.coerceFont(n,"delta.font",c),t.delta.font.size===void 0&&(t.delta.font.size=(t._hasNumber?.5:1)*(s||BO.defaultNumberFontSize),o[1]=!0),n("delta.reference",t.value),n("delta.relative"),n("delta.valueformat",t.delta.relative?"2%":""),n("delta.increasing.symbol"),n("delta.increasing.color"),n("delta.decreasing.symbol"),n("delta.decreasing.color"),n("delta.position"),n("delta.prefix"),n("delta.suffix"),u=t.delta.font.size}t._scaleNumbers=(!t._hasNumber||o[0])&&(!t._hasDelta||o[1])||!1;var f=gg.extendFlat({},i.font);f.size=.25*(s||u||BO.defaultNumberFontSize),gg.coerceFont(n,"title.font",f),n("title.text");var h,p,d,v;function m(x,A){return gg.coerce(h,p,qO.gauge,x,A)}function g(x,A){return gg.coerce(d,v,qO.gauge.axis,x,A)}if(t._hasGauge){h=e.gauge,h||(h={}),p=wft.newContainer(t,"gauge"),m("shape");var w=t._isBullet=t.gauge.shape==="bullet";w||n("title.align","center");var _=t._isAngular=t.gauge.shape==="angular";_||n("align","center"),m("bgcolor",i.paper_bgcolor),m("borderwidth"),m("bordercolor"),m("bar.color"),m("bar.line.color"),m("bar.line.width");var b=BO.valueThickness*(t.gauge.shape==="bullet"?.5:1);m("bar.thickness",b),DDr(h,p,{name:"steps",handleItemDefaults:zDr}),m("threshold.value"),m("threshold.thickness"),m("threshold.line.width"),m("threshold.line.color"),d={},h&&(d=h.axis||{}),v=wft.newContainer(p,"axis"),g("visible"),t._range=g("range",t._range);var S={font:i.font,noAutotickangles:!0,outerTicks:!0,noTicklabelshift:!0,noTicklabelstandoff:!0};FDr(d,v,g,"linear"),IDr(d,v,g,"linear",S),PDr(d,v,g,"linear",S),LDr(d,v,g,S)}else n("title.align","center"),n("align","center"),t._isAngular=t._isBullet=!1;t._length=null}function zDr(e,t){function r(i,n){return gg.coerce(e,t,qO.gauge.steps,i,n)}r("color"),r("line.color"),r("line.width"),r("range"),r("thickness")}Tft.exports={supplyDefaults:RDr}});var Sft=W((kui,Mft)=>{"use strict";function BDr(e,t){var r=[],i=t.value;typeof t._lastValue!="number"&&(t._lastValue=t.value);var n=t._lastValue,a=n;return t._hasDelta&&typeof t.delta.reference=="number"&&(a=t.delta.reference),r[0]={y:i,lastY:n,delta:i-a,relativeDelta:(i-a)/a},r}Mft.exports={calc:BDr}});var Lft=W((Cui,Fft)=>{"use strict";var R3=gi(),qDr=(S_(),Pt(M_)).interpolate,Eft=(S_(),Pt(M_)).interpolateNumber,Ax=tt(),ODr=Ax.strScale,f8=Ax.strTranslate,NDr=Ax.rad2deg,UDr=(Jl(),Pt(Kl)).MID_SHIFT,I3=Qi(),F3=(gse(),Pt(vse)),NO=ao(),jc=Yi(),VDr=PM(),GDr=aL(),HDr=ac(),m6=ti(),mse={left:"start",center:"middle",right:"end"},L3={left:0,center:.5,right:1},kft=/[yzafpnµmkMGTPEZY]/;function h8(e){return e&&e.duration>0}Fft.exports=function(t,r,i,n){var a=t._fullLayout,o;h8(i)&&n&&(o=n()),Ax.makeTraceGroups(a._indicatorlayer,r,"trace").each(function(s){var l=s[0],u=l.trace,c=R3.select(this),f=u._hasGauge,h=u._isAngular,p=u._isBullet,d=u.domain,v={w:a._size.w*(d.x[1]-d.x[0]),h:a._size.h*(d.y[1]-d.y[0]),l:a._size.l+a._size.w*d.x[0],r:a._size.r+a._size.w*(1-d.x[1]),t:a._size.t+a._size.h*(1-d.y[1]),b:a._size.b+a._size.h*d.y[0]},m=v.l+v.w/2,g=v.t+v.h/2,w=Math.min(v.w/2,v.h),_=F3.innerRadius*w,b,S,x,A=u.align||"center";if(S=g,!f)b=v.l+L3[A]*v.w,x=function(R){return Cft(R,v.w,v.h)};else if(h&&(b=m,S=g+w/2,x=function(R){return XDr(R,.9*_)}),p){var T=F3.bulletPadding,y=1-F3.bulletNumberDomainSize+T;b=v.l+(y+(1-y)*L3[A])*v.w,x=function(R){return Cft(R,(F3.bulletNumberDomainSize-T)*v.w,v.h)}}WDr(t,c,s,{numbersX:b,numbersY:S,numbersScaler:x,transitionOpts:i,onComplete:o});var E,M;f&&(E={range:u.gauge.axis.range,color:u.gauge.bgcolor,line:{color:u.gauge.bordercolor,width:0},thickness:1},M={range:u.gauge.axis.range,color:"rgba(0, 0, 0, 0)",line:{color:u.gauge.bordercolor,width:u.gauge.borderwidth},thickness:1});var C=c.selectAll("g.angular").data(h?s:[]);C.exit().remove();var k=c.selectAll("g.angularaxis").data(h?s:[]);k.exit().remove(),h&&$Dr(t,c,s,{radius:w,innerRadius:_,gauge:C,layer:k,size:v,gaugeBg:E,gaugeOutline:M,transitionOpts:i,onComplete:o});var D=c.selectAll("g.bullet").data(p?s:[]);D.exit().remove();var F=c.selectAll("g.bulletaxis").data(p?s:[]);F.exit().remove(),p&&jDr(t,c,s,{gauge:D,layer:F,size:v,gaugeBg:E,gaugeOutline:M,transitionOpts:i,onComplete:o});var P=c.selectAll("text.title").data(s);P.exit().remove(),P.enter().append("text").classed("title",!0),P.attr("text-anchor",function(){return p?mse.right:mse[u.title.align]}).text(u.title.text).call(I3.font,u.title.font).call(NO.convertToTspans,t),P.attr("transform",function(){var R=v.l+v.w*L3[u.title.align],L,I=F3.titlePadding,B=I3.bBox(P.node());if(f){if(h)if(u.gauge.axis.visible){var O=I3.bBox(k.node());L=O.top-I-B.bottom}else L=v.t+v.h/2-w/2-B.bottom-I;p&&(L=S-(B.top+B.bottom)/2,R=v.l-F3.bulletPadding*v.w)}else L=u._numbersTop-I-B.bottom;return f8(R,L)})})};function jDr(e,t,r,i){var n=r[0].trace,a=i.gauge,o=i.layer,s=i.gaugeBg,l=i.gaugeOutline,u=i.size,c=n.domain,f=i.transitionOpts,h=i.onComplete,p,d,v,m,g;a.enter().append("g").classed("bullet",!0),a.attr("transform",f8(u.l,u.t)),o.enter().append("g").classed("bulletaxis",!0).classed("crisp",!0),o.selectAll("g.xbulletaxistick,path,text").remove();var w=u.h,_=n.gauge.bar.thickness*w,b=c.x[0],S=c.x[0]+(c.x[1]-c.x[0])*(n._hasNumber||n._hasDelta?1-F3.bulletNumberDomainSize:1);p=c8(e,n.gauge.axis),p._id="xbulletaxis",p.domain=[b,S],p.setScale(),d=jc.calcTicks(p),v=jc.makeTransTickFn(p),m=jc.getTickSigns(p)[2],g=u.t+u.h,p.visible&&(jc.drawTicks(e,p,{vals:p.ticks==="inside"?jc.clipEnds(p,d):d,layer:o,path:jc.makeTickPath(p,g,m),transFn:v}),jc.drawLabels(e,p,{vals:d,layer:o,transFn:v,labelFns:jc.makeLabelFns(p,g)}));function x(k){k.attr("width",function(D){return Math.max(0,p.c2p(D.range[1])-p.c2p(D.range[0]))}).attr("x",function(D){return p.c2p(D.range[0])}).attr("y",function(D){return .5*(1-D.thickness)*w}).attr("height",function(D){return D.thickness*w})}var A=[s].concat(n.gauge.steps),T=a.selectAll("g.bg-bullet").data(A);T.enter().append("g").classed("bg-bullet",!0).append("rect"),T.select("rect").call(x).call(P3),T.exit().remove();var y=a.selectAll("g.value-bullet").data([n.gauge.bar]);y.enter().append("g").classed("value-bullet",!0).append("rect"),y.select("rect").attr("height",_).attr("y",(w-_)/2).call(P3),h8(f)?y.select("rect").transition().duration(f.duration).ease(f.easing).each("end",function(){h&&h()}).each("interrupt",function(){h&&h()}).attr("width",Math.max(0,p.c2p(Math.min(n.gauge.axis.range[1],r[0].y)))):y.select("rect").attr("width",typeof r[0].y=="number"?Math.max(0,p.c2p(Math.min(n.gauge.axis.range[1],r[0].y))):0),y.exit().remove();var E=r.filter(function(){return n.gauge.threshold.value||n.gauge.threshold.value===0}),M=a.selectAll("g.threshold-bullet").data(E);M.enter().append("g").classed("threshold-bullet",!0).append("line"),M.select("line").attr("x1",p.c2p(n.gauge.threshold.value)).attr("x2",p.c2p(n.gauge.threshold.value)).attr("y1",(1-n.gauge.threshold.thickness)/2*w).attr("y2",(1-(1-n.gauge.threshold.thickness)/2)*w).call(m6.stroke,n.gauge.threshold.line.color).style("stroke-width",n.gauge.threshold.line.width),M.exit().remove();var C=a.selectAll("g.gauge-outline").data([l]);C.enter().append("g").classed("gauge-outline",!0).append("rect"),C.select("rect").call(x).call(P3),C.exit().remove()}function $Dr(e,t,r,i){var n=r[0].trace,a=i.size,o=i.radius,s=i.innerRadius,l=i.gaugeBg,u=i.gaugeOutline,c=[a.l+a.w/2,a.t+a.h/2+o/2],f=i.gauge,h=i.layer,p=i.transitionOpts,d=i.onComplete,v=Math.PI/2;function m($){var X=n.gauge.axis.range[0],K=n.gauge.axis.range[1],G=($-X)/(K-X)*Math.PI-v;return G<-v?-v:G>v?v:G}function g($){return R3.svg.arc().innerRadius((s+o)/2-$/2*(o-s)).outerRadius((s+o)/2+$/2*(o-s)).startAngle(-v)}function w($){$.attr("d",function(X){return g(X.thickness).startAngle(m(X.range[0])).endAngle(m(X.range[1]))()})}var _,b,S,x;f.enter().append("g").classed("angular",!0),f.attr("transform",f8(c[0],c[1])),h.enter().append("g").classed("angularaxis",!0).classed("crisp",!0),h.selectAll("g.xangularaxistick,path,text").remove(),_=c8(e,n.gauge.axis),_.type="linear",_.range=n.gauge.axis.range,_._id="xangularaxis",_.ticklabeloverflow="allow",_.setScale();var A=function($){return(_.range[0]-$.x)/(_.range[1]-_.range[0])*Math.PI+Math.PI},T={},y=jc.makeLabelFns(_,0),E=y.labelStandoff;T.xFn=function($){var X=A($);return Math.cos(X)*E},T.yFn=function($){var X=A($),K=Math.sin(X)>0?.2:1;return-Math.sin(X)*(E+$.fontSize*K)+Math.abs(Math.cos(X))*($.fontSize*UDr)},T.anchorFn=function($){var X=A($),K=Math.cos(X);return Math.abs(K)<.1?"middle":K>0?"start":"end"},T.heightFn=function($,X,K){var G=A($);return-.5*(1+Math.sin(G))*K};var M=function($){return f8(c[0]+o*Math.cos($),c[1]-o*Math.sin($))};S=function($){return M(A($))};var C=function($){var X=A($);return M(X)+"rotate("+-NDr(X)+")"};if(b=jc.calcTicks(_),x=jc.getTickSigns(_)[2],_.visible){x=_.ticks==="inside"?-1:1;var k=(_.linewidth||1)/2;jc.drawTicks(e,_,{vals:b,layer:h,path:"M"+x*k+",0h"+x*_.ticklen,transFn:C}),jc.drawLabels(e,_,{vals:b,layer:h,transFn:S,labelFns:T})}var D=[l].concat(n.gauge.steps),F=f.selectAll("g.bg-arc").data(D);F.enter().append("g").classed("bg-arc",!0).append("path"),F.select("path").call(w).call(P3),F.exit().remove();var P=g(n.gauge.bar.thickness),R=f.selectAll("g.value-arc").data([n.gauge.bar]);R.enter().append("g").classed("value-arc",!0).append("path");var L=R.select("path");h8(p)?(L.transition().duration(p.duration).ease(p.easing).each("end",function(){d&&d()}).each("interrupt",function(){d&&d()}).attrTween("d",YDr(P,m(r[0].lastY),m(r[0].y))),n._lastValue=r[0].y):L.attr("d",typeof r[0].y=="number"?P.endAngle(m(r[0].y)):"M0,0Z"),L.call(P3),R.exit().remove(),D=[];var I=n.gauge.threshold.value;(I||I===0)&&D.push({range:[I,I],color:n.gauge.threshold.color,line:{color:n.gauge.threshold.line.color,width:n.gauge.threshold.line.width},thickness:n.gauge.threshold.thickness});var B=f.selectAll("g.threshold-arc").data(D);B.enter().append("g").classed("threshold-arc",!0).append("path"),B.select("path").call(w).call(P3),B.exit().remove();var O=f.selectAll("g.gauge-outline").data([u]);O.enter().append("g").classed("gauge-outline",!0).append("path"),O.select("path").call(w).call(P3),O.exit().remove()}function WDr(e,t,r,i){var n=r[0].trace,a=i.numbersX,o=i.numbersY,s=n.align||"center",l=mse[s],u=i.transitionOpts,c=i.onComplete,f=Ax.ensureSingle(t,"g","numbers"),h,p,d,v=[];n._hasNumber&&v.push("number"),n._hasDelta&&(v.push("delta"),n.delta.position==="left"&&v.reverse());var m=f.selectAll("text").data(v);m.enter().append("text"),m.attr("text-anchor",function(){return l}).attr("class",function(M){return M}).attr("x",null).attr("y",null).attr("dx",null).attr("dy",null),m.exit().remove();function g(M,C,k,D){if(M.match("s")&&k>=0!=D>=0&&!C(k).slice(-1).match(kft)&&!C(D).slice(-1).match(kft)){var F=M.slice().replace("s","f").replace(/\d+/,function(R){return parseInt(R)-1}),P=c8(e,{tickformat:F});return function(R){return Math.abs(R)<1?jc.tickText(P,R).text:C(R)}}else return C}function w(){var M=c8(e,{tickformat:n.number.valueformat},n._range);M.setScale(),jc.prepTicks(M);var C=function(R){return jc.tickText(M,R).text},k=n.number.suffix,D=n.number.prefix,F=f.select("text.number");function P(){var R=typeof r[0].y=="number"?D+C(r[0].y)+k:"-";F.text(R).call(I3.font,n.number.font).call(NO.convertToTspans,e)}return h8(u)?F.transition().duration(u.duration).ease(u.easing).each("end",function(){P(),c&&c()}).each("interrupt",function(){P(),c&&c()}).attrTween("text",function(){var R=R3.select(this),L=Eft(r[0].lastY,r[0].y);n._lastValue=r[0].y;var I=g(n.number.valueformat,C,r[0].lastY,r[0].y);return function(B){R.text(D+I(L(B))+k)}}):P(),h=Dft(D+C(r[0].y)+k,n.number.font,l,e),F}function _(){var M=c8(e,{tickformat:n.delta.valueformat},n._range);M.setScale(),jc.prepTicks(M);var C=function(B){return jc.tickText(M,B).text},k=n.delta.suffix,D=n.delta.prefix,F=function(B){var O=n.delta.relative?B.relativeDelta:B.delta;return O},P=function(B,O){return B===0||typeof B!="number"||isNaN(B)?"-":(B>0?n.delta.increasing.symbol:n.delta.decreasing.symbol)+D+O(B)+k},R=function(B){return B.delta>=0?n.delta.increasing.color:n.delta.decreasing.color};n._deltaLastValue===void 0&&(n._deltaLastValue=F(r[0]));var L=f.select("text.delta");L.call(I3.font,n.delta.font).call(m6.fill,R({delta:n._deltaLastValue}));function I(){L.text(P(F(r[0]),C)).call(m6.fill,R(r[0])).call(NO.convertToTspans,e)}return h8(u)?L.transition().duration(u.duration).ease(u.easing).tween("text",function(){var B=R3.select(this),O=F(r[0]),$=n._deltaLastValue,X=g(n.delta.valueformat,C,$,O),K=Eft($,O);return n._deltaLastValue=O,function(G){B.text(P(K(G),X)),B.call(m6.fill,R({delta:K(G)}))}}).each("end",function(){I(),c&&c()}).each("interrupt",function(){I(),c&&c()}):I(),p=Dft(P(F(r[0]),C),n.delta.font,l,e),L}var b=n.mode+n.align,S;if(n._hasDelta&&(S=_(),b+=n.delta.position+n.delta.font.size+n.delta.font.family+n.delta.valueformat,b+=n.delta.increasing.symbol+n.delta.decreasing.symbol,d=p),n._hasNumber&&(w(),b+=n.number.font.size+n.number.font.family+n.number.valueformat+n.number.suffix+n.number.prefix,d=h),n._hasDelta&&n._hasNumber){var x=[(h.left+h.right)/2,(h.top+h.bottom)/2],A=[(p.left+p.right)/2,(p.top+p.bottom)/2],T,y,E=.75*n.delta.font.size;n.delta.position==="left"&&(T=OO(n,"deltaPos",0,-1*(h.width*L3[n.align]+p.width*(1-L3[n.align])+E),b,Math.min),y=x[1]-A[1],d={width:h.width+p.width+E,height:Math.max(h.height,p.height),left:p.left+T,right:h.right,top:Math.min(h.top,p.top+y),bottom:Math.max(h.bottom,p.bottom+y)}),n.delta.position==="right"&&(T=OO(n,"deltaPos",0,h.width*(1-L3[n.align])+p.width*L3[n.align]+E,b,Math.max),y=x[1]-A[1],d={width:h.width+p.width+E,height:Math.max(h.height,p.height),left:h.left,right:p.right+T,top:Math.min(h.top,p.top+y),bottom:Math.max(h.bottom,p.bottom+y)}),n.delta.position==="bottom"&&(T=null,y=p.height,d={width:Math.max(h.width,p.width),height:h.height+p.height,left:Math.min(h.left,p.left),right:Math.max(h.right,p.right),top:h.bottom-h.height,bottom:h.bottom+p.height}),n.delta.position==="top"&&(T=null,y=h.top,d={width:Math.max(h.width,p.width),height:h.height+p.height,left:Math.min(h.left,p.left),right:Math.max(h.right,p.right),top:h.bottom-h.height-p.height,bottom:h.bottom}),S.attr({dx:T,dy:y})}(n._hasNumber||n._hasDelta)&&f.attr("transform",function(){var M=i.numbersScaler(d);b+=M[2];var C=OO(n,"numbersScale",1,M[0],b,Math.min),k;n._scaleNumbers||(C=1),n._isAngular?k=o-C*d.bottom:k=o-C*(d.top+d.bottom)/2,n._numbersTop=C*d.top+k;var D=d[s];s==="center"&&(D=(d.left+d.right)/2);var F=a-C*D;return F=OO(n,"numbersTranslate",0,F,b,Math.max),f8(F,k)+ODr(C)})}function P3(e){e.each(function(t){m6.stroke(R3.select(this),t.line.color)}).each(function(t){m6.fill(R3.select(this),t.color)}).style("stroke-width",function(t){return t.line.width})}function YDr(e,t,r){return function(){var i=qDr(t,r);return function(n){return e.endAngle(i(n))()}}}function c8(e,t,r){var i=e._fullLayout,n=Ax.extendFlat({type:"linear",ticks:"outside",range:r,showline:!0},t),a={type:"linear",_id:"x"+t._id},o={letter:"x",font:i.font,noAutotickangles:!0,noHover:!0,noTickson:!0};function s(l,u){return Ax.coerce(n,a,HDr,l,u)}return VDr(n,a,s,o,i),GDr(n,a,s,o),a}function Cft(e,t,r){var i=Math.min(t/e.width,r/e.height);return[i,e,t+"x"+r]}function XDr(e,t){var r=Math.sqrt(e.width/2*(e.width/2)+e.height*e.height),i=t/r;return[i,e,t]}function Dft(e,t,r,i){var n=document.createElementNS("http://www.w3.org/2000/svg","text"),a=R3.select(n);return a.text(e).attr("x",0).attr("y",0).attr("text-anchor",r).attr("data-unformatted",e).call(NO.convertToTspans,i).call(I3.font,t),I3.bBox(a.node())}function OO(e,t,r,i,n,a){var o="_cache"+t;e[o]&&e[o].key===n||(e[o]={key:n,value:r});var s=Ax.aggNums(a,null,[e[o].value,i],2);return e[o].value=s,s}});var Ift=W((Dui,Pft)=>{"use strict";Pft.exports={moduleType:"trace",name:"indicator",basePlotModule:vft(),categories:["svg","noOpacity","noHover"],animatable:!0,attributes:pse(),supplyDefaults:Aft().supplyDefaults,calc:Sft().calc,plot:Lft(),meta:{}}});var zft=W((Fui,Rft)=>{"use strict";Rft.exports=Ift()});var yse=W((Pui,Nft)=>{"use strict";var Bft=Xy(),UO=an().extendFlat,ZDr=hs().overrideAll,qft=jo(),KDr=ds().attributes,Oft=Ts().descriptionOnlyNumbers,Lui=Nft.exports=ZDr({domain:KDr({name:"table",trace:!0}),columnwidth:{valType:"number",arrayOk:!0,dflt:null},columnorder:{valType:"data_array"},header:{values:{valType:"data_array",dflt:[]},format:{valType:"data_array",dflt:[],description:Oft("cell value")},prefix:{valType:"string",arrayOk:!0,dflt:null},suffix:{valType:"string",arrayOk:!0,dflt:null},height:{valType:"number",dflt:28},align:UO({},Bft.align,{arrayOk:!0}),line:{width:{valType:"number",arrayOk:!0,dflt:1},color:{valType:"color",arrayOk:!0,dflt:"grey"}},fill:{color:{valType:"color",arrayOk:!0,dflt:"white"}},font:UO({},qft({arrayOk:!0}))},cells:{values:{valType:"data_array",dflt:[]},format:{valType:"data_array",dflt:[],description:Oft("cell value")},prefix:{valType:"string",arrayOk:!0,dflt:null},suffix:{valType:"string",arrayOk:!0,dflt:null},height:{valType:"number",dflt:20},align:UO({},Bft.align,{arrayOk:!0}),line:{width:{valType:"number",arrayOk:!0,dflt:1},color:{valType:"color",arrayOk:!0,dflt:"grey"}},fill:{color:{valType:"color",arrayOk:!0,dflt:"white"}},font:UO({},qft({arrayOk:!0}))}},"calc","from-root")});var Vft=W((Iui,Uft)=>{"use strict";var xse=tt(),JDr=yse(),QDr=ds().defaults;function e7r(e,t){for(var r=e.columnorder||[],i=e.header.values.length,n=r.slice(0,i),a=n.slice().sort(function(l,u){return l-u}),o=n.map(function(l){return a.indexOf(l)}),s=o.length;s{"use strict";var t7r=eg().wrap;Gft.exports=function(){return t7r({})}});var bse={};Jn(bse,{cellPad:()=>r7r,cn:()=>T7r,columnExtentOffset:()=>i7r,columnTitleOffset:()=>n7r,emptyHeaderHeight:()=>a7r,goldenRatio:()=>s7r,latexCheck:()=>o7r,lineBreaker:()=>l7r,maxDimensionCount:()=>u7r,overdrag:()=>c7r,releaseTransitionDuration:()=>f7r,releaseTransitionEase:()=>h7r,scrollbarCaptureWidth:()=>d7r,scrollbarHideDelay:()=>p7r,scrollbarHideDuration:()=>v7r,scrollbarOffset:()=>g7r,scrollbarWidth:()=>m7r,transitionDuration:()=>y7r,transitionEase:()=>x7r,uplift:()=>b7r,wrapSpacer:()=>_7r,wrapSplitCharacter:()=>w7r});var r7r,i7r,n7r,a7r,o7r,s7r,l7r,u7r,c7r,f7r,h7r,d7r,p7r,v7r,g7r,m7r,y7r,x7r,b7r,_7r,w7r,T7r,_se=Ci(()=>{"use strict";r7r=8,i7r=10,n7r=28,a7r=16,o7r=/^\$.*\$$/,s7r=1.618,l7r="
",u7r=60,c7r=45,f7r=120,h7r="cubic-out",d7r=18,p7r=1e3,v7r=1e3,g7r=5,m7r=8,y7r=100,x7r="cubic-out",b7r=5,_7r=" ",w7r=" ",T7r={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"}});var Qft=W((zui,Jft)=>{"use strict";var jft=(_se(),Pt(bse)),Tse=an().extendFlat,A7r=hn(),M7r=Tc().isTypedArray,VO=Tc().isArrayOrTypedArray;Jft.exports=function(t,r){var i=wse(r.cells.values),n=function(y){return y.slice(r.header.values.length,y.length)},a=wse(r.header.values);a.length&&!a[0].length&&(a[0]=[""],a=wse(a));var o=a.concat(n(i).map(function(){return Kft((a[0]||[""]).length)})),s=r.domain,l=Math.floor(t._fullLayout._size.w*(s.x[1]-s.x[0])),u=Math.floor(t._fullLayout._size.h*(s.y[1]-s.y[0])),c=r.header.values.length?o[0].map(function(){return r.header.height}):[jft.emptyHeaderHeight],f=i.length?i[0].map(function(){return r.cells.height}):[],h=c.reduce($ft,0),p=u-h,d=p+jft.uplift,v=Xft(f,d),m=Xft(c,h),g=Yft(m,[]),w=Yft(v,g),_={},b=r.columnorder;VO(b)&&(b=Array.from(b)),b=b.concat(n(i.map(function(y,E){return E})));var S=o.map(function(y,E){var M=VO(r.columnwidth)?r.columnwidth[Math.min(E,r.columnwidth.length-1)]:r.columnwidth;return A7r(M)?Number(M):1}),x=S.reduce($ft,0);S=S.map(function(y){return y/x*l});var A=Math.max(Ase(r.header.line.width),Ase(r.cells.line.width)),T={key:r.uid+t._context.staticPlot,translateX:s.x[0]*t._fullLayout._size.w,translateY:t._fullLayout._size.h*(1-s.y[1]),size:t._fullLayout._size,width:l,maxLineWidth:A,height:u,columnOrder:b,groupHeight:u,rowBlocks:w,headerRowBlocks:g,scrollY:0,cells:Tse({},r.cells,{values:i}),headerCells:Tse({},r.header,{values:o}),gdColumns:o.map(function(y){return y[0]}),gdColumnsOriginalOrder:o.map(function(y){return y[0]}),prevPages:[0,0],scrollbarState:{scrollbarScrollInProgress:!1},columns:o.map(function(y,E){var M=_[y];_[y]=(M||0)+1;var C=y+"__"+_[y];return{key:C,label:y,specIndex:E,xIndex:b[E],xScale:Wft,x:void 0,calcdata:void 0,columnWidth:S[E]}})};return T.columns.forEach(function(y){y.calcdata=T,y.x=Wft(y)}),T};function Ase(e){if(VO(e)){for(var t=0,r=0;r=t||u===e.length-1)&&(r[n]=o,o.key=l++,o.firstRowIndex=s,o.lastRowIndex=u,o=Zft(),n+=a,s=u+1,a=0);return r}function Zft(){return{firstRowIndex:null,lastRowIndex:null,rows:[]}}});var eht=W(Mse=>{"use strict";var GO=an().extendFlat;Mse.splitToPanels=function(e){var t=[0,0],r=GO({},e,{key:"header",type:"header",page:0,prevPages:t,currentRepaint:[null,null],dragHandle:!0,values:e.calcdata.headerCells.values[e.specIndex],rowBlocks:e.calcdata.headerRowBlocks,calcdata:GO({},e.calcdata,{cells:e.calcdata.headerCells})}),i=GO({},e,{key:"cells1",type:"cells",page:0,prevPages:t,currentRepaint:[null,null],dragHandle:!1,values:e.calcdata.cells.values[e.specIndex],rowBlocks:e.calcdata.rowBlocks}),n=GO({},e,{key:"cells2",type:"cells",page:1,prevPages:t,currentRepaint:[null,null],dragHandle:!1,values:e.calcdata.cells.values[e.specIndex],rowBlocks:e.calcdata.rowBlocks});return[i,n,r]};Mse.splitToCells=function(e){var t=S7r(e);return(e.values||[]).slice(t[0],t[1]).map(function(r,i){var n=typeof r=="string"&&r.match(/[<$&> ]/)?"_keybuster_"+Math.random():"";return{keyWithinBlock:i+n,key:t[0]+i,column:e,calcdata:e.calcdata,page:e.page,rowBlocks:e.rowBlocks,value:r}})};function S7r(e){var t=e.rowBlocks[e.page],r=t?t.rows[0].rowIndex:0,i=t?r+t.rows.length:0;return[r,i]}});var Rse=W((qui,fht)=>{"use strict";var Ai=(_se(),Pt(bse)),ks=gi(),Sse=tt(),E7r=Sse.numberFormat,qo=eg(),Ese=Qi(),k7r=ao(),C7r=tt().raiseToTop,vp=tt().strTranslate,D7r=tt().cancelTransition,F7r=Qft(),sht=eht(),tht=ti();fht.exports=function(t,r){var i=!t._context.staticPlot,n=t._fullLayout._paper.selectAll("."+Ai.cn.table).data(r.map(function(w){var _=qo.unwrap(w),b=_.trace;return F7r(t,b)}),qo.keyFun);n.exit().remove(),n.enter().append("g").classed(Ai.cn.table,!0).attr("overflow","visible").style("box-sizing","content-box").style("position","absolute").style("left",0).style("overflow","visible").style("shape-rendering","crispEdges").style("pointer-events","all"),n.attr("width",function(w){return w.width+w.size.l+w.size.r}).attr("height",function(w){return w.height+w.size.t+w.size.b}).attr("transform",function(w){return vp(w.translateX,w.translateY)});var a=n.selectAll("."+Ai.cn.tableControlView).data(qo.repeat,qo.keyFun),o=a.enter().append("g").classed(Ai.cn.tableControlView,!0).style("box-sizing","content-box");if(i){var s="onwheel"in document?"wheel":"mousewheel";o.on("mousemove",function(w){a.filter(function(_){return w===_}).call(d8,t)}).on(s,function(w){if(!w.scrollbarState.wheeling){w.scrollbarState.wheeling=!0;var _=w.scrollY+ks.event.deltaY,b=jO(t,a,null,_)(w);b||(ks.event.stopPropagation(),ks.event.preventDefault()),w.scrollbarState.wheeling=!1}}).call(d8,t,!0)}a.attr("transform",function(w){return vp(w.size.l,w.size.t)});var l=a.selectAll("."+Ai.cn.scrollBackground).data(qo.repeat,qo.keyFun);l.enter().append("rect").classed(Ai.cn.scrollBackground,!0).attr("fill","none"),l.attr("width",function(w){return w.width}).attr("height",function(w){return w.height}),a.each(function(w){Ese.setClipUrl(ks.select(this),rht(t,w),t)});var u=a.selectAll("."+Ai.cn.yColumn).data(function(w){return w.columns},qo.keyFun);u.enter().append("g").classed(Ai.cn.yColumn,!0),u.exit().remove(),u.attr("transform",function(w){return vp(w.x,0)}),i&&u.call(ks.behavior.drag().origin(function(w){var _=ks.select(this);return aht(_,w,-Ai.uplift),C7r(this),w.calcdata.columnDragInProgress=!0,d8(a.filter(function(b){return w.calcdata.key===b.key}),t),w}).on("drag",function(w){var _=ks.select(this),b=function(A){return(w===A?ks.event.x:A.x)+A.columnWidth/2};w.x=Math.max(-Ai.overdrag,Math.min(w.calcdata.width+Ai.overdrag-w.columnWidth,ks.event.x));var S=lht(u).filter(function(A){return A.calcdata.key===w.calcdata.key}),x=S.sort(function(A,T){return b(A)-b(T)});x.forEach(function(A,T){A.xIndex=T,A.x=w===A?A.x:A.xScale(A)}),u.filter(function(A){return w!==A}).transition().ease(Ai.transitionEase).duration(Ai.transitionDuration).attr("transform",function(A){return vp(A.x,0)}),_.call(D7r).attr("transform",vp(w.x,-Ai.uplift))}).on("dragend",function(w){var _=ks.select(this),b=w.calcdata;w.x=w.xScale(w),w.calcdata.columnDragInProgress=!1,aht(_,w,0),U7r(t,b,b.columns.map(function(S){return S.xIndex}))})),u.each(function(w){Ese.setClipUrl(ks.select(this),iht(t,w),t)});var c=u.selectAll("."+Ai.cn.columnBlock).data(sht.splitToPanels,qo.keyFun);c.enter().append("g").classed(Ai.cn.columnBlock,!0).attr("id",function(w){return w.key}),c.style("cursor",function(w){return w.dragHandle?"ew-resize":w.calcdata.scrollbarState.barWiggleRoom?"ns-resize":"default"});var f=c.filter(V7r),h=c.filter(Lse);i&&h.call(ks.behavior.drag().origin(function(w){return ks.event.stopPropagation(),w}).on("drag",jO(t,a,-1)).on("dragend",function(){})),kse(t,a,f,c),kse(t,a,h,c);var p=a.selectAll("."+Ai.cn.scrollAreaClip).data(qo.repeat,qo.keyFun);p.enter().append("clipPath").classed(Ai.cn.scrollAreaClip,!0).attr("id",function(w){return rht(t,w)});var d=p.selectAll("."+Ai.cn.scrollAreaClipRect).data(qo.repeat,qo.keyFun);d.enter().append("rect").classed(Ai.cn.scrollAreaClipRect,!0).attr("x",-Ai.overdrag).attr("y",-Ai.uplift).attr("fill","none"),d.attr("width",function(w){return w.width+2*Ai.overdrag}).attr("height",function(w){return w.height+Ai.uplift});var v=u.selectAll("."+Ai.cn.columnBoundary).data(qo.repeat,qo.keyFun);v.enter().append("g").classed(Ai.cn.columnBoundary,!0);var m=u.selectAll("."+Ai.cn.columnBoundaryClippath).data(qo.repeat,qo.keyFun);m.enter().append("clipPath").classed(Ai.cn.columnBoundaryClippath,!0),m.attr("id",function(w){return iht(t,w)});var g=m.selectAll("."+Ai.cn.columnBoundaryRect).data(qo.repeat,qo.keyFun);g.enter().append("rect").classed(Ai.cn.columnBoundaryRect,!0).attr("fill","none"),g.attr("width",function(w){return w.columnWidth+2*HO(w)}).attr("height",function(w){return w.calcdata.height+2*HO(w)+Ai.uplift}).attr("x",function(w){return-HO(w)}).attr("y",function(w){return-HO(w)}),Pse(null,h,a)};function HO(e){return Math.ceil(e.calcdata.maxLineWidth/2)}function rht(e,t){return"clip"+e._fullLayout._uid+"_scrollAreaBottomClip_"+t.key}function iht(e,t){return"clip"+e._fullLayout._uid+"_columnBoundaryClippath_"+t.calcdata.key+"_"+t.specIndex}function lht(e){return[].concat.apply([],e.map(function(t){return t})).map(function(t){return t.__data__})}function d8(e,t,r){function i(u){var c=u.rowBlocks;return Dse(c,c.length-1)+(c.length?$O(c[c.length-1],1/0):1)}var n=e.selectAll("."+Ai.cn.scrollbarKit).data(qo.repeat,qo.keyFun);n.enter().append("g").classed(Ai.cn.scrollbarKit,!0).style("shape-rendering","geometricPrecision"),n.each(function(u){var c=u.scrollbarState;c.totalHeight=i(u),c.scrollableAreaHeight=u.groupHeight-Cse(u),c.currentlyVisibleHeight=Math.min(c.totalHeight,c.scrollableAreaHeight),c.ratio=c.currentlyVisibleHeight/c.totalHeight,c.barLength=Math.max(c.ratio*c.currentlyVisibleHeight,Ai.goldenRatio*Ai.scrollbarWidth),c.barWiggleRoom=c.currentlyVisibleHeight-c.barLength,c.wiggleRoom=Math.max(0,c.totalHeight-c.scrollableAreaHeight),c.topY=c.barWiggleRoom===0?0:u.scrollY/c.wiggleRoom*c.barWiggleRoom,c.bottomY=c.topY+c.barLength,c.dragMultiplier=c.wiggleRoom/c.barWiggleRoom}).attr("transform",function(u){var c=u.width+Ai.scrollbarWidth/2+Ai.scrollbarOffset;return vp(c,Cse(u))});var a=n.selectAll("."+Ai.cn.scrollbar).data(qo.repeat,qo.keyFun);a.enter().append("g").classed(Ai.cn.scrollbar,!0);var o=a.selectAll("."+Ai.cn.scrollbarSlider).data(qo.repeat,qo.keyFun);o.enter().append("g").classed(Ai.cn.scrollbarSlider,!0),o.attr("transform",function(u){return vp(0,u.scrollbarState.topY||0)});var s=o.selectAll("."+Ai.cn.scrollbarGlyph).data(qo.repeat,qo.keyFun);s.enter().append("line").classed(Ai.cn.scrollbarGlyph,!0).attr("stroke","black").attr("stroke-width",Ai.scrollbarWidth).attr("stroke-linecap","round").attr("y1",Ai.scrollbarWidth/2),s.attr("y2",function(u){return u.scrollbarState.barLength-Ai.scrollbarWidth/2}).attr("stroke-opacity",function(u){return u.columnDragInProgress||!u.scrollbarState.barWiggleRoom||r?0:.4}),s.transition().delay(0).duration(0),s.transition().delay(Ai.scrollbarHideDelay).duration(Ai.scrollbarHideDuration).attr("stroke-opacity",0);var l=a.selectAll("."+Ai.cn.scrollbarCaptureZone).data(qo.repeat,qo.keyFun);l.enter().append("line").classed(Ai.cn.scrollbarCaptureZone,!0).attr("stroke","white").attr("stroke-opacity",.01).attr("stroke-width",Ai.scrollbarCaptureWidth).attr("stroke-linecap","butt").attr("y1",0).on("mousedown",function(u){var c=ks.event.y,f=this.getBoundingClientRect(),h=u.scrollbarState,p=c-f.top,d=ks.scale.linear().domain([0,h.scrollableAreaHeight]).range([0,h.totalHeight]).clamp(!0);h.topY<=p&&p<=h.bottomY||jO(t,e,null,d(p-h.barLength/2))(u)}).call(ks.behavior.drag().origin(function(u){return ks.event.stopPropagation(),u.scrollbarState.scrollbarScrollInProgress=!0,u}).on("drag",jO(t,e)).on("dragend",function(){})),l.attr("y2",function(u){return u.scrollbarState.scrollableAreaHeight}),t._context.staticPlot&&(s.remove(),l.remove())}function kse(e,t,r,i){var n=L7r(r),a=P7r(n);B7r(a);var o=I7r(a);O7r(o);var s=z7r(a),l=R7r(s);q7r(l),uht(l,t,i,e),Ise(a)}function L7r(e){var t=e.selectAll("."+Ai.cn.columnCells).data(qo.repeat,qo.keyFun);return t.enter().append("g").classed(Ai.cn.columnCells,!0),t.exit().remove(),t}function P7r(e){var t=e.selectAll("."+Ai.cn.columnCell).data(sht.splitToCells,function(r){return r.keyWithinBlock});return t.enter().append("g").classed(Ai.cn.columnCell,!0),t.exit().remove(),t}function I7r(e){var t=e.selectAll("."+Ai.cn.cellRect).data(qo.repeat,function(r){return r.keyWithinBlock});return t.enter().append("rect").classed(Ai.cn.cellRect,!0),t}function R7r(e){var t=e.selectAll("."+Ai.cn.cellText).data(qo.repeat,function(r){return r.keyWithinBlock});return t.enter().append("text").classed(Ai.cn.cellText,!0).style("cursor",function(){return"auto"}).on("mousedown",function(){ks.event.stopPropagation()}),t}function z7r(e){var t=e.selectAll("."+Ai.cn.cellTextHolder).data(qo.repeat,function(r){return r.keyWithinBlock});return t.enter().append("g").classed(Ai.cn.cellTextHolder,!0).style("shape-rendering","geometricPrecision"),t}function B7r(e){e.each(function(t,r){var i=t.calcdata.cells.font,n=t.column.specIndex,a={size:$f(i.size,n,r),color:$f(i.color,n,r),family:$f(i.family,n,r),weight:$f(i.weight,n,r),style:$f(i.style,n,r),variant:$f(i.variant,n,r),textcase:$f(i.textcase,n,r),lineposition:$f(i.lineposition,n,r),shadow:$f(i.shadow,n,r)};t.rowNumber=t.key,t.align=$f(t.calcdata.cells.align,n,r),t.cellBorderWidth=$f(t.calcdata.cells.line.width,n,r),t.font=a})}function q7r(e){e.each(function(t){Ese.font(ks.select(this),t.font)})}function O7r(e){e.attr("width",function(t){return t.column.columnWidth}).attr("stroke-width",function(t){return t.cellBorderWidth}).each(function(t){var r=ks.select(this);tht.stroke(r,$f(t.calcdata.cells.line.color,t.column.specIndex,t.rowNumber)),tht.fill(r,$f(t.calcdata.cells.fill.color,t.column.specIndex,t.rowNumber))})}function uht(e,t,r,i){e.text(function(n){var a=n.column.specIndex,o=n.rowNumber,s=n.value,l=typeof s=="string",u=l&&s.match(/
/i),c=!l||u;n.mayHaveMarkup=l&&s.match(/[<&>]/);var f=N7r(s);n.latex=f;var h=f?"":$f(n.calcdata.cells.prefix,a,o)||"",p=f?"":$f(n.calcdata.cells.suffix,a,o)||"",d=f?null:$f(n.calcdata.cells.format,a,o)||null,v=h+(d?E7r(d)(n.value):n.value)+p,m;n.wrappingNeeded=!n.wrapped&&!c&&!f&&(m=nht(v)),n.cellHeightMayIncrease=u||f||n.mayHaveMarkup||(m===void 0?nht(v):m),n.needsConvertToTspans=n.mayHaveMarkup||n.wrappingNeeded||n.latex;var g;if(n.wrappingNeeded){var w=Ai.wrapSplitCharacter===" "?v.replace(/n&&i.push(a),n+=l}return i}function Pse(e,t,r){var i=lht(t)[0];if(i!==void 0){var n=i.rowBlocks,a=i.calcdata,o=Dse(n,n.length),s=i.calcdata.groupHeight-Cse(i),l=a.scrollY=Math.max(0,Math.min(o-s,a.scrollY)),u=G7r(n,l,s);u.length===1&&(u[0]===n.length-1?u.unshift(u[0]-1):u.push(u[0]+1)),u[0]%2&&u.reverse(),t.each(function(c,f){c.page=u[f],c.scrollY=l}),t.attr("transform",function(c){var f=Dse(c.rowBlocks,c.page)-c.scrollY;return vp(0,f)}),e&&(oht(e,r,t,u,i.prevPages,i,0),oht(e,r,t,u,i.prevPages,i,1),d8(r,e))}}function jO(e,t,r,i){return function(a){var o=a.calcdata?a.calcdata:a,s=t.filter(function(f){return o.key===f.key}),l=r||o.scrollbarState.dragMultiplier,u=o.scrollY;o.scrollY=i===void 0?o.scrollY+l*ks.event.dy:i;var c=s.selectAll("."+Ai.cn.yColumn).selectAll("."+Ai.cn.columnBlock).filter(Lse);return Pse(e,c,s),o.scrollY===u}}function oht(e,t,r,i,n,a,o){var s=i[o]!==n[o];s&&(clearTimeout(a.currentRepaint[o]),a.currentRepaint[o]=setTimeout(function(){var l=r.filter(function(u,c){return c===o&&i[c]!==n[c]});kse(e,t,l,r),n[o]=i[o]}))}function H7r(e,t,r,i){return function(){var a=ks.select(t.parentNode);a.each(function(o){var s=o.fragments;a.selectAll("tspan.line").each(function(v,m){s[m].width=this.getComputedTextLength()});var l=s[s.length-1].width,u=s.slice(0,-1),c=[],f,h,p=0,d=o.column.columnWidth-2*Ai.cellPad;for(o.value="";u.length;)f=u.shift(),h=f.width+l,p+h>d&&(o.value+=c.join(Ai.wrapSpacer)+Ai.lineBreaker,c=[],p=0),c.push(f.text),p+=h;p&&(o.value+=c.join(Ai.wrapSpacer)),o.wrapped=!0}),a.selectAll("tspan.line").remove(),uht(a.select("."+Ai.cn.cellText),r,e,i),ks.select(t.parentNode.parentNode).call(Ise)}}function j7r(e,t,r,i,n){return function(){if(!n.settledY){var o=ks.select(t.parentNode),s=Fse(n),l=n.key-s.firstRowIndex,u=s.rows[l].rowHeight,c=n.cellHeightMayIncrease?t.parentNode.getBoundingClientRect().height+2*Ai.cellPad:u,f=Math.max(c,u),h=f-s.rows[l].rowHeight;h&&(s.rows[l].rowHeight=f,e.selectAll("."+Ai.cn.columnCell).call(Ise),Pse(null,e.filter(Lse),0),d8(r,i,!0)),o.attr("transform",function(){var p=this,d=p.parentNode,v=d.getBoundingClientRect(),m=ks.select(p.parentNode).select("."+Ai.cn.cellRect).node().getBoundingClientRect(),g=p.transform.baseVal.consolidate(),w=m.top-v.top+(g?g.matrix.f:Ai.cellPad);return vp(cht(n,ks.select(p.parentNode).select("."+Ai.cn.cellTextHolder).node().getBoundingClientRect().width),w)}),n.settledY=!0}}}function cht(e,t){switch(e.align){case"left":return Ai.cellPad;case"right":return e.column.columnWidth-(t||0)-Ai.cellPad;case"center":return(e.column.columnWidth-(t||0))/2;default:return Ai.cellPad}}function Ise(e){e.attr("transform",function(t){var r=t.rowBlocks[0].auxiliaryBlocks.reduce(function(o,s){return o+$O(s,1/0)},0),i=Fse(t),n=$O(i,t.key),a=n+r;return vp(0,a)}).selectAll("."+Ai.cn.cellRect).attr("height",function(t){return W7r(Fse(t),t.key).rowHeight})}function Dse(e,t){for(var r=0,i=t-1;i>=0;i--)r+=$7r(e[i]);return r}function $O(e,t){for(var r=0,i=0;i{"use strict";var Y7r=Mc().getModuleCalcData,X7r=Rse(),WO="table";YO.name=WO;YO.plot=function(e){var t=Y7r(e.calcdata,WO)[0];t.length&&X7r(e,t)};YO.clean=function(e,t,r,i){var n=i._has&&i._has(WO),a=t._has&&t._has(WO);n&&!a&&i._paperdiv.selectAll(".table").remove()}});var pht=W((Nui,dht)=>{"use strict";dht.exports={attributes:yse(),supplyDefaults:Vft(),calc:Hft(),plot:Rse(),moduleType:"trace",name:"table",basePlotModule:hht(),categories:["noOpacity"],meta:{}}});var ght=W((Uui,vht)=>{"use strict";vht.exports=pht()});var _ht=W((Vui,bht)=>{"use strict";var mht=jo(),yht=Yl(),zse=ac(),Z7r=Ts().descriptionWithDates,K7r=hs().overrideAll,xht=zu().dash,Bse=an().extendFlat;bht.exports={color:{valType:"color",editType:"calc"},smoothing:{valType:"number",dflt:1,min:0,max:1.3,editType:"calc"},title:{text:{valType:"string",dflt:"",editType:"calc"},font:mht({editType:"calc"}),offset:{valType:"number",dflt:10,editType:"calc"},editType:"calc"},type:{valType:"enumerated",values:["-","linear","date","category"],dflt:"-",editType:"calc"},autotypenumbers:zse.autotypenumbers,autorange:{valType:"enumerated",values:[!0,!1,"reversed"],dflt:!0,editType:"calc"},rangemode:{valType:"enumerated",values:["normal","tozero","nonnegative"],dflt:"normal",editType:"calc"},range:{valType:"info_array",editType:"calc",items:[{valType:"any",editType:"calc"},{valType:"any",editType:"calc"}]},fixedrange:{valType:"boolean",dflt:!1,editType:"calc"},cheatertype:{valType:"enumerated",values:["index","value"],dflt:"value",editType:"calc"},tickmode:{valType:"enumerated",values:["linear","array"],dflt:"array",editType:"calc"},nticks:{valType:"integer",min:0,dflt:0,editType:"calc"},tickvals:{valType:"data_array",editType:"calc"},ticktext:{valType:"data_array",editType:"calc"},showticklabels:{valType:"enumerated",values:["start","end","both","none"],dflt:"start",editType:"calc"},labelalias:Bse({},zse.labelalias,{editType:"calc"}),tickfont:mht({editType:"calc"}),tickangle:{valType:"angle",dflt:"auto",editType:"calc"},tickprefix:{valType:"string",dflt:"",editType:"calc"},showtickprefix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"calc"},ticksuffix:{valType:"string",dflt:"",editType:"calc"},showticksuffix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"calc"},showexponent:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"calc"},exponentformat:{valType:"enumerated",values:["none","e","E","power","SI","B","SI extended"],dflt:"B",editType:"calc"},minexponent:{valType:"number",dflt:3,min:0,editType:"calc"},separatethousands:{valType:"boolean",dflt:!1,editType:"calc"},tickformat:{valType:"string",dflt:"",editType:"calc",description:Z7r("tick label")},tickformatstops:K7r(zse.tickformatstops,"calc","from-root"),categoryorder:{valType:"enumerated",values:["trace","category ascending","category descending","array"],dflt:"trace",editType:"calc"},categoryarray:{valType:"data_array",editType:"calc"},labelpadding:{valType:"integer",dflt:10,editType:"calc"},labelprefix:{valType:"string",editType:"calc"},labelsuffix:{valType:"string",dflt:"",editType:"calc"},showline:{valType:"boolean",dflt:!1,editType:"calc"},linecolor:{valType:"color",dflt:yht.defaultLine,editType:"calc"},linewidth:{valType:"number",min:0,dflt:1,editType:"calc"},gridcolor:{valType:"color",editType:"calc"},gridwidth:{valType:"number",min:0,dflt:1,editType:"calc"},griddash:Bse({},xht,{editType:"calc"}),showgrid:{valType:"boolean",dflt:!0,editType:"calc"},minorgridcount:{valType:"integer",min:0,dflt:0,editType:"calc"},minorgridwidth:{valType:"number",min:0,dflt:1,editType:"calc"},minorgriddash:Bse({},xht,{editType:"calc"}),minorgridcolor:{valType:"color",dflt:yht.lightLine,editType:"calc"},startline:{valType:"boolean",editType:"calc"},startlinecolor:{valType:"color",editType:"calc"},startlinewidth:{valType:"number",dflt:1,editType:"calc"},endline:{valType:"boolean",editType:"calc"},endlinewidth:{valType:"number",dflt:1,editType:"calc"},endlinecolor:{valType:"color",editType:"calc"},tick0:{valType:"number",min:0,dflt:0,editType:"calc"},dtick:{valType:"number",min:0,dflt:1,editType:"calc"},arraytick0:{valType:"integer",min:0,dflt:0,editType:"calc"},arraydtick:{valType:"integer",min:1,dflt:1,editType:"calc"},editType:"calc"}});var ZO=W((Gui,Aht)=>{"use strict";var J7r=jo(),wht=_ht(),Tht=Yl(),XO=J7r({editType:"calc"}),Q7r=Ws().zorder;XO.family.dflt='"Open Sans", verdana, arial, sans-serif';XO.size.dflt=12;XO.color.dflt=Tht.defaultLine;Aht.exports={carpet:{valType:"string",editType:"calc"},x:{valType:"data_array",editType:"calc+clearAxisTypes"},y:{valType:"data_array",editType:"calc+clearAxisTypes"},a:{valType:"data_array",editType:"calc"},a0:{valType:"number",dflt:0,editType:"calc"},da:{valType:"number",dflt:1,editType:"calc"},b:{valType:"data_array",editType:"calc"},b0:{valType:"number",dflt:0,editType:"calc"},db:{valType:"number",dflt:1,editType:"calc"},cheaterslope:{valType:"number",dflt:1,editType:"calc"},aaxis:wht,baxis:wht,font:XO,color:{valType:"color",dflt:Tht.defaultLine,editType:"plot"},zorder:Q7r}});var Eht=W((Hui,Sht)=>{"use strict";var Mht=tt().isArray1D;Sht.exports=function(t,r,i){var n=i("x"),a=n&&n.length,o=i("y"),s=o&&o.length;if(!a&&!s)return!1;if(r._cheater=!n,(!a||Mht(n))&&(!s||Mht(o))){var l=a?n.length:1/0;s&&(l=Math.min(l,o.length)),r.a&&r.a.length&&(l=Math.min(l,r.a.length)),r.b&&r.b.length&&(l=Math.min(l,r.b.length)),r._length=l}else r._length=null;return!0}});var Dht=W((jui,Cht)=>{"use strict";var eFr=ZO(),kht=ti().addOpacity,tFr=xi(),p8=tt(),rFr=ub(),iFr=Py(),nFr=Iy(),aFr=rL(),oFr=v1(),sFr=Rw();Cht.exports=function(t,r,i){var n=i.letter,a=i.font||{},o=eFr[n+"axis"];function s(y,E){return p8.coerce(t,r,o,y,E)}function l(y,E){return p8.coerce2(t,r,o,y,E)}i.name&&(r._name=i.name,r._id=i.name),s("autotypenumbers",i.autotypenumbersDflt);var u=s("type");if(u==="-"&&(i.data&&lFr(r,i.data),r.type==="-"?r.type="linear":u=t.type=r.type),s("smoothing"),s("cheatertype"),s("showticklabels"),s("labelprefix",n+" = "),s("labelsuffix"),s("showtickprefix"),s("showticksuffix"),s("separatethousands"),s("tickformat"),s("exponentformat"),s("minexponent"),s("showexponent"),s("categoryorder"),s("tickmode"),s("tickvals"),s("ticktext"),s("tick0"),s("dtick"),r.tickmode==="array"&&(s("arraytick0"),s("arraydtick")),s("labelpadding"),r._hovertitle=n,u==="date"){var c=tFr.getComponentMethod("calendars","handleDefaults");c(t,r,"calendar",i.calendar)}oFr(r,i.fullLayout),r.c2p=p8.identity;var f=s("color",i.dfltColor),h=f===t.color?f:a.color,p=s("title.text");p&&(p8.coerceFont(s,"title.font",a,{overrideDflt:{size:p8.bigFont(a.size),color:h}}),s("title.offset")),s("tickangle");var d=s("autorange",!r.isValidRange(t.range));d&&s("rangemode"),s("range"),r.cleanRange(),s("fixedrange"),rFr(t,r,s,u),nFr(t,r,s,u,i),iFr(t,r,s,u,i),aFr(t,r,s,{data:i.data,dataAttr:n});var v=s("gridcolor",kht(f,.3)),m=l("gridwidth"),g=l("griddash"),w=s("showgrid");w||(delete r.gridcolor,delete r.gridwidth,delete r.griddash);var _=l("startlinecolor",f),b=l("startlinewidth",m),S=s("startline",r.showgrid||!!_||!!b);S||(delete r.startlinecolor,delete r.startlinewidth);var x=l("endlinecolor",f),A=l("endlinewidth",m),T=s("endline",r.showgrid||!!x||!!A);return T||(delete r.endlinecolor,delete r.endlinewidth),w?(s("minorgridcount"),s("minorgridwidth",m),s("minorgriddash",g),s("minorgridcolor",kht(v,.06)),r.minorgridcount||(delete r.minorgridwidth,delete r.minorgriddash,delete r.minorgridcolor)):(delete r.gridcolor,delete r.gridwidth,delete r.griddash),r.showticklabels==="none"&&(delete r.tickfont,delete r.tickangle,delete r.showexponent,delete r.exponentformat,delete r.minexponent,delete r.tickformat,delete r.showticksuffix,delete r.showtickprefix),r.showticksuffix||delete r.ticksuffix,r.showtickprefix||delete r.tickprefix,s("tickmode"),r};function lFr(e,t){if(e.type==="-"){var r=e._id,i=r.charAt(0),n=i+"calendar",a=e[n];e.type=sFr(t,a,{autotypenumbers:e.autotypenumbers})}}});var Lht=W(($ui,Fht)=>{"use strict";var uFr=Dht(),cFr=Ra();Fht.exports=function(t,r,i,n,a){var o=n("a");o||(n("da"),n("a0"));var s=n("b");s||(n("db"),n("b0")),fFr(t,r,i,a)};function fFr(e,t,r,i){var n=["aaxis","baxis"];n.forEach(function(a){var o=a.charAt(0),s=e[a]||{},l=cFr.newContainer(t,a),u={noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0,noTicklabelstep:!0,tickfont:"x",id:o+"axis",letter:o,font:t.font,name:a,data:e[o],calendar:t.calendar,dfltColor:i,bgColor:r.paper_bgcolor,autotypenumbersDflt:r.autotypenumbers,fullLayout:r};uFr(s,l,u),l._categories=l._categories||[],!e[a]&&s.type!=="-"&&(e[a]={type:s.type})})}});var Rht=W((Wui,Iht)=>{"use strict";var Pht=tt(),hFr=Eht(),dFr=Lht(),pFr=ZO(),vFr=Yl();Iht.exports=function(t,r,i,n){function a(l,u){return Pht.coerce(t,r,pFr,l,u)}r._clipPathId="clip"+r.uid+"carpet";var o=a("color",vFr.defaultLine);if(Pht.coerceFont(a,"font",n.font),a("carpet"),dFr(t,r,n,a,o),!r.a||!r.b){r.visible=!1;return}r.a.length<3&&(r.aaxis.smoothing=0),r.b.length<3&&(r.baxis.smoothing=0);var s=hFr(t,r,a);s||(r.visible=!1),r._cheater&&a("cheaterslope"),a("zorder")}});var qse=W((Yui,zht)=>{"use strict";var gFr=tt().isArrayOrTypedArray;zht.exports=function(t,r,i){var n;for(gFr(t)?t.length>r.length&&(t=t.slice(0,r.length)):t=[],n=0;n{"use strict";Bht.exports=function(t,r,i){if(t.length===0)return"";var n,a=[],o=i?3:1;for(n=0;n{"use strict";qht.exports=function(t,r,i,n,a,o){var s=a[0]*t.dpdx(r),l=a[1]*t.dpdy(i),u=1,c=1;if(o){var f=Math.sqrt(a[0]*a[0]+a[1]*a[1]),h=Math.sqrt(o[0]*o[0]+o[1]*o[1]),p=(a[0]*o[0]+a[1]*o[1])/f/h;c=Math.max(0,p)}var d=Math.atan2(l,s)*180/Math.PI;return d<-90?(d+=180,u=-u):d>90&&(d-=180,u=-u),{angle:d,flip:u,p:t.c2p(n,r,i),offsetMultplier:c}}});var Wht=W((Kui,$ht)=>{"use strict";var eN=gi(),KO=Qi(),JO=qse(),Vht=Ose(),v8=Oht(),Nse=ao(),u0=tt(),Ght=u0.strRotate,QO=u0.strTranslate,Hht=(Jl(),Pt(Kl));$ht.exports=function(t,r,i,n){var a=t._context.staticPlot,o=r.xaxis,s=r.yaxis,l=t._fullLayout,u=l._clips;u0.makeTraceGroups(n,i,"trace").each(function(c){var f=eN.select(this),h=c[0],p=h.trace,d=p.aaxis,v=p.baxis,m=u0.ensureSingle(f,"g","minorlayer"),g=u0.ensureSingle(f,"g","majorlayer"),w=u0.ensureSingle(f,"g","boundarylayer"),_=u0.ensureSingle(f,"g","labellayer");f.style("opacity",p.opacity),y6(o,s,g,d,"a",d._gridlines,!0,a),y6(o,s,g,v,"b",v._gridlines,!0,a),y6(o,s,m,d,"a",d._minorgridlines,!0,a),y6(o,s,m,v,"b",v._minorgridlines,!0,a),y6(o,s,w,d,"a-boundary",d._boundarylines,a),y6(o,s,w,v,"b-boundary",v._boundarylines,a);var b=Nht(t,o,s,p,h,_,d._labels,"a-label"),S=Nht(t,o,s,p,h,_,v._labels,"b-label");yFr(t,_,p,h,o,s,b,S),mFr(p,h,u,o,s)})};function mFr(e,t,r,i,n){var a,o,s,l,u=r.select("#"+e._clipPathId);u.size()||(u=r.append("clipPath").classed("carpetclip",!0));var c=u0.ensureSingle(u,"path","carpetboundary"),f=t.clipsegments,h=[];for(l=0;l0?"start":"end","data-notex":1}).call(KO.font,f.font).text(f.text).call(Nse.convertToTspans,e),g=KO.bBox(this);m.attr("transform",QO(p.p[0],p.p[1])+Ght(p.angle)+QO(f.axis.labelpadding*v,g.height*.3)),u=Math.max(u,g.width+f.axis.labelpadding)}),l.exit().remove(),c.maxExtent=u,c}function yFr(e,t,r,i,n,a,o,s){var l,u,c,f,h=u0.aggNums(Math.min,null,r.a),p=u0.aggNums(Math.max,null,r.a),d=u0.aggNums(Math.min,null,r.b),v=u0.aggNums(Math.max,null,r.b);l=.5*(h+p),u=d,c=r.ab2xy(l,u,!0),f=r.dxyda_rough(l,u),o.angle===void 0&&u0.extendFlat(o,v8(r,n,a,c,r.dxydb_rough(l,u))),Uht(e,t,r,i,c,f,r.aaxis,n,a,o,"a-title"),l=h,u=.5*(d+v),c=r.ab2xy(l,u,!0),f=r.dxydb_rough(l,u),s.angle===void 0&&u0.extendFlat(s,v8(r,n,a,c,r.dxyda_rough(l,u))),Uht(e,t,r,i,c,f,r.baxis,n,a,s,"b-title")}var jht=Hht.LINE_SPACING,xFr=(1-Hht.MID_SHIFT)/jht+1;function Uht(e,t,r,i,n,a,o,s,l,u,c){var f=[];o.title.text&&f.push(o.title.text);var h=t.selectAll("text."+c).data(f),p=u.maxExtent;h.enter().append("text").classed(c,!0),h.each(function(){var d=v8(r,s,l,n,a);["start","both"].indexOf(o.showticklabels)===-1&&(p=0);var v=o.title.font.size;p+=v+o.title.offset;var m=u.angle+(u.flip<0?180:0),g=(m-d.angle+450)%360,w=g>90&&g<270,_=eN.select(this);_.text(o.title.text).call(Nse.convertToTspans,e),w&&(p=(-Nse.lineCount(_)+xFr)*jht*v-p),_.attr("transform",QO(d.p[0],d.p[1])+Ght(d.angle)+QO(0,p)).attr("text-anchor","middle").call(KO.font,o.title.font)}),h.exit().remove()}});var Xht=W((Jui,Yht)=>{"use strict";var tN=tt().isArrayOrTypedArray;Yht.exports=function(e,t,r){var i,n,a,o,s,l,u=[],c=tN(e)?e.length:e,f=tN(t)?t.length:t,h=tN(e)?e:null,p=tN(t)?t:null;h&&(a=(h.length-1)/(h[h.length-1]-h[0])/(c-1)),p&&(o=(p.length-1)/(p[p.length-1]-p[0])/(f-1));var d,v=1/0,m=-1/0;for(n=0;n{"use strict";var Zht=tt().isArrayOrTypedArray;Jht.exports=function(e){return Kht(e,0)};function Kht(e,t){if(!Zht(e)||t>=10)return null;for(var r=1/0,i=-1/0,n=e.length,a=0;a{"use strict";var bFr=Yi(),Mx=an().extendFlat;e0t.exports=function(t,r,i){var n,a,o,s,l,u,c,f,h,p,d,v,m,g,w=t["_"+r],_=t[r+"axis"],b=_._gridlines=[],S=_._minorgridlines=[],x=_._boundarylines=[],A=t["_"+i],T=t[i+"axis"];_.tickmode==="array"&&(_.tickvals=w.slice());var y=t._xctrl,E=t._yctrl,M=y[0].length,C=y.length,k=t._a.length,D=t._b.length;bFr.prepTicks(_),_.tickmode==="array"&&delete _.tickvals;var F=_.smoothing?3:1;function P(L){var I,B,O,$,X,K,G,q,J,N,V,Y,H=[],j=[],Q={};if(r==="b")for(B=t.b2j(L),O=Math.floor(Math.max(0,Math.min(D-2,B))),$=B-O,Q.length=D,Q.crossLength=k,Q.xy=function(te){return t.evalxy([],te,B)},Q.dxy=function(te,ue){return t.dxydi([],te,O,ue,$)},I=0;I0&&(J=t.dxydi([],I-1,O,0,$),H.push(X[0]+J[0]/3),j.push(X[1]+J[1]/3),N=t.dxydi([],I-1,O,1,$),H.push(q[0]-N[0]/3),j.push(q[1]-N[1]/3)),H.push(q[0]),j.push(q[1]),X=q;else for(I=t.a2i(L),K=Math.floor(Math.max(0,Math.min(k-2,I))),G=I-K,Q.length=k,Q.crossLength=D,Q.xy=function(te){return t.evalxy([],I,te)},Q.dxy=function(te,ue){return t.dxydj([],K,te,G,ue)},B=0;B0&&(V=t.dxydj([],K,B-1,G,0),H.push(X[0]+V[0]/3),j.push(X[1]+V[1]/3),Y=t.dxydj([],K,B-1,G,1),H.push(q[0]-Y[0]/3),j.push(q[1]-Y[1]/3)),H.push(q[0]),j.push(q[1]),X=q;return Q.axisLetter=r,Q.axis=_,Q.crossAxis=T,Q.value=L,Q.constvar=i,Q.index=f,Q.x=H,Q.y=j,Q.smoothing=T.smoothing,Q}function R(L){var I,B,O,$,X,K=[],G=[],q={};if(q.length=w.length,q.crossLength=A.length,r==="b")for(O=Math.max(0,Math.min(D-2,L)),X=Math.min(1,Math.max(0,L-O)),q.xy=function(J){return t.evalxy([],J,L)},q.dxy=function(J,N){return t.dxydi([],J,O,N,X)},I=0;Iw.length-1)&&b.push(Mx(R(a),{color:_.gridcolor,width:_.gridwidth,dash:_.griddash}));for(f=u;fw.length-1)&&!(d<0||d>w.length-1))for(v=w[o],m=w[d],n=0;n<_.minorgridcount;n++)g=d-o,!(g<=0)&&(p=v+(m-v)*(n+1)/(_.minorgridcount+1)*(_.arraydtick/g),!(pw[w.length-1])&&S.push(Mx(P(p),{color:_.minorgridcolor,width:_.minorgridwidth,dash:_.minorgriddash})));_.startline&&x.push(Mx(R(0),{color:_.startlinecolor,width:_.startlinewidth})),_.endline&&x.push(Mx(R(w.length-1),{color:_.endlinecolor,width:_.endlinewidth}))}else{for(s=5e-15,l=[Math.floor((w[w.length-1]-_.tick0)/_.dtick*(1+s)),Math.ceil((w[0]-_.tick0)/_.dtick/(1+s))].sort(function(L,I){return L-I}),u=l[0],c=l[1],f=u;f<=c;f++)h=_.tick0+_.dtick*f,b.push(Mx(P(h),{color:_.gridcolor,width:_.gridwidth,dash:_.griddash}));for(f=u-1;fw[w.length-1])&&S.push(Mx(P(p),{color:_.minorgridcolor,width:_.minorgridwidth,dash:_.minorgriddash}));_.startline&&x.push(Mx(P(w[0]),{color:_.startlinecolor,width:_.startlinewidth})),_.endline&&x.push(Mx(P(w[w.length-1]),{color:_.endlinecolor,width:_.endlinewidth}))}}});var a0t=W((tci,n0t)=>{"use strict";var r0t=Yi(),i0t=an().extendFlat;n0t.exports=function(t,r){var i,n,a,o,s,l=r._labels=[],u=r._gridlines;for(i=0;i{"use strict";o0t.exports=function(t,r,i,n){var a,o,s,l=[],u=!!i.smoothing,c=!!n.smoothing,f=t[0].length-1,h=t.length-1;for(a=0,o=[],s=[];a<=f;a++)o[a]=t[0][a],s[a]=r[0][a];for(l.push({x:o,y:s,bicubic:u}),a=0,o=[],s=[];a<=h;a++)o[a]=t[a][f],s[a]=r[a][f];for(l.push({x:o,y:s,bicubic:c}),a=f,o=[],s=[];a>=0;a--)o[f-a]=t[h][a],s[f-a]=r[h][a];for(l.push({x:o,y:s,bicubic:u}),a=h,o=[],s=[];a>=0;a--)o[h-a]=t[a][0],s[h-a]=r[a][0];return l.push({x:o,y:s,bicubic:c}),l}});var u0t=W((ici,l0t)=>{"use strict";var _Fr=tt();l0t.exports=function(t,r,i){var n,a,o,s=[],l=[],u=t[0].length,c=t.length;function f(O,$){var X=0,K,G=0;return O>0&&(K=t[$][O-1])!==void 0&&(G++,X+=K),O0&&(K=t[$-1][O])!==void 0&&(G++,X+=K),$0&&a0&&nT);return _Fr.log("Smoother converged to",y,"after",M,"iterations"),t}});var c0t={};Jn(c0t,{RELATIVE_CULL_TOLERANCE:()=>wFr});var wFr,f0t=Ci(()=>{"use strict";wFr=1e-6});var p0t=W((nci,d0t)=>{"use strict";var h0t=.5;d0t.exports=function(t,r,i,n){var a=t[0]-r[0],o=t[1]-r[1],s=i[0]-r[0],l=i[1]-r[1],u=Math.pow(a*a+o*o,h0t/2),c=Math.pow(s*s+l*l,h0t/2),f=(c*c*a-u*u*s)*n,h=(c*c*o-u*u*l)*n,p=c*(u+c)*3,d=u*(u+c)*3;return[[r[0]+(p&&f/p),r[1]+(p&&h/p)],[r[0]-(d&&f/d),r[1]-(d&&h/d)]]}});var g0t=W((aci,v0t)=>{"use strict";var Use=p0t(),rN=tt().ensureArray;function x6(e,t,r){var i=-.5*r[0]+1.5*t[0],n=-.5*r[1]+1.5*t[1];return[(2*i+e[0])/3,(2*n+e[1])/3]}v0t.exports=function(t,r,i,n,a,o){var s,l,u,c,f,h,p,d,v,m,g=i[0].length,w=i.length,_=a?3*g-2:g,b=o?3*w-2:w;for(t=rN(t,b),r=rN(r,b),u=0;u{"use strict";m0t.exports=function(e,t,r,i,n){var a=t-2,o=r-2;return i&&n?function(s,l,u){s||(s=[]);var c,f,h,p,d,v,m=Math.max(0,Math.min(Math.floor(l),a)),g=Math.max(0,Math.min(Math.floor(u),o)),w=Math.max(0,Math.min(1,l-m)),_=Math.max(0,Math.min(1,u-g));m*=3,g*=3;var b=w*w,S=b*w,x=1-w,A=x*x,T=A*x,y=_*_,E=y*_,M=1-_,C=M*M,k=C*M;for(v=0;v{"use strict";x0t.exports=function(e,t,r){return t&&r?function(i,n,a,o,s){i||(i=[]);var l,u,c,f,h,p;n*=3,a*=3;var d=o*o,v=1-o,m=v*v,g=v*o*2,w=-3*m,_=3*(m-g),b=3*(g-d),S=3*d,x=s*s,A=x*s,T=1-s,y=T*T,E=y*T;for(p=0;p{"use strict";_0t.exports=function(e,t,r){return t&&r?function(i,n,a,o,s){i||(i=[]);var l,u,c,f,h,p;n*=3,a*=3;var d=o*o,v=d*o,m=1-o,g=m*m,w=g*m,_=s*s,b=1-s,S=b*b,x=b*s*2,A=-3*S,T=3*(S-x),y=3*(x-_),E=3*_;for(p=0;p{"use strict";var T0t=(f0t(),Pt(c0t)),A0t=SD().findBin,TFr=g0t(),AFr=y0t(),MFr=b0t(),SFr=w0t();M0t.exports=function(t){var r=t._a,i=t._b,n=r.length,a=i.length,o=t.aaxis,s=t.baxis,l=r[0],u=r[n-1],c=i[0],f=i[a-1],h=r[r.length-1]-r[0],p=i[i.length-1]-i[0],d=h*T0t.RELATIVE_CULL_TOLERANCE,v=p*T0t.RELATIVE_CULL_TOLERANCE;l-=d,u+=d,c-=v,f+=v,t.isVisible=function(m,g){return m>l&&mc&&gu||gf},t.setScale=function(){var m=t._x,g=t._y,w=TFr(t._xctrl,t._yctrl,m,g,o.smoothing,s.smoothing);t._xctrl=w[0],t._yctrl=w[1],t.evalxy=AFr([t._xctrl,t._yctrl],n,a,o.smoothing,s.smoothing),t.dxydi=MFr([t._xctrl,t._yctrl],o.smoothing,s.smoothing),t.dxydj=SFr([t._xctrl,t._yctrl],o.smoothing,s.smoothing)},t.i2a=function(m){var g=Math.max(0,Math.floor(m[0]),n-2),w=m[0]-g;return(1-w)*r[g]+w*r[g+1]},t.j2b=function(m){var g=Math.max(0,Math.floor(m[1]),n-2),w=m[1]-g;return(1-w)*i[g]+w*i[g+1]},t.ij2ab=function(m){return[t.i2a(m[0]),t.j2b(m[1])]},t.a2i=function(m){var g=Math.max(0,Math.min(A0t(m,r),n-2)),w=r[g],_=r[g+1];return Math.max(0,Math.min(n-1,g+(m-w)/(_-w)))},t.b2j=function(m){var g=Math.max(0,Math.min(A0t(m,i),a-2)),w=i[g],_=i[g+1];return Math.max(0,Math.min(a-1,g+(m-w)/(_-w)))},t.ab2ij=function(m){return[t.a2i(m[0]),t.b2j(m[1])]},t.i2c=function(m,g){return t.evalxy([],m,g)},t.ab2xy=function(m,g,w){if(!w&&(mr[n-1]|gi[a-1]))return[!1,!1];var _=t.a2i(m),b=t.b2j(g),S=t.evalxy([],_,b);if(w){var x=0,A=0,T=[],y,E,M,C;mr[n-1]?(y=n-2,E=1,x=(m-r[n-1])/(r[n-1]-r[n-2])):(y=Math.max(0,Math.min(n-2,Math.floor(_))),E=_-y),gi[a-1]?(M=a-2,C=1,A=(g-i[a-1])/(i[a-1]-i[a-2])):(M=Math.max(0,Math.min(a-2,Math.floor(b))),C=b-M),x&&(t.dxydi(T,y,M,E,C),S[0]+=T[0]*x,S[1]+=T[1]*x),A&&(t.dxydj(T,y,M,E,C),S[0]+=T[0]*A,S[1]+=T[1]*A)}return S},t.c2p=function(m,g,w){return[g.c2p(m[0]),w.c2p(m[1])]},t.p2x=function(m,g,w){return[g.p2c(m[0]),w.p2c(m[1])]},t.dadi=function(m){var g=Math.max(0,Math.min(r.length-2,m));return r[g+1]-r[g]},t.dbdj=function(m){var g=Math.max(0,Math.min(i.length-2,m));return i[g+1]-i[g]},t.dxyda=function(m,g,w,_){var b=t.dxydi(null,m,g,w,_),S=t.dadi(m,w);return[b[0]/S,b[1]/S]},t.dxydb=function(m,g,w,_){var b=t.dxydj(null,m,g,w,_),S=t.dbdj(g,_);return[b[0]/S,b[1]/S]},t.dxyda_rough=function(m,g,w){var _=h*(w||.1),b=t.ab2xy(m+_,g,!0),S=t.ab2xy(m-_,g,!0);return[(b[0]-S[0])*.5/_,(b[1]-S[1])*.5/_]},t.dxydb_rough=function(m,g,w){var _=p*(w||.1),b=t.ab2xy(m,g+_,!0),S=t.ab2xy(m,g-_,!0);return[(b[0]-S[0])*.5/_,(b[1]-S[1])*.5/_]},t.dpdx=function(m){return m._m},t.dpdy=function(m){return m._m}}});var I0t=W((cci,P0t)=>{"use strict";var iN=Yi(),E0t=tt().isArray1D,EFr=Xht(),k0t=Qht(),C0t=t0t(),D0t=a0t(),kFr=s0t(),F0t=iP(),L0t=u0t(),CFr=tP(),DFr=S0t();P0t.exports=function(t,r){var i=iN.getFromId(t,r.xaxis),n=iN.getFromId(t,r.yaxis),a=r.aaxis,o=r.baxis,s=r.x,l=r.y,u=[];s&&E0t(s)&&u.push("x"),l&&E0t(l)&&u.push("y"),u.length&&CFr(r,a,o,"a","b",u);var c=r._a=r._a||r.a,f=r._b=r._b||r.b;s=r._x||r.x,l=r._y||r.y;var h={};if(r._cheater){var p=a.cheatertype==="index"?c.length:c,d=o.cheatertype==="index"?f.length:f;s=EFr(p,d,r.cheaterslope)}r._x=s=F0t(s),r._y=l=F0t(l),L0t(s,c,f),L0t(l,c,f),DFr(r),r.setScale();var v=k0t(s),m=k0t(l),g=.5*(v[1]-v[0]),w=.5*(v[1]+v[0]),_=.5*(m[1]-m[0]),b=.5*(m[1]+m[0]),S=1.3;return v=[w-g*S,w+g*S],m=[b-_*S,b+_*S],r._extremes[i._id]=iN.findExtremes(i,v,{padded:!0}),r._extremes[n._id]=iN.findExtremes(n,m,{padded:!0}),C0t(r,"a","b"),C0t(r,"b","a"),D0t(r,a),D0t(r,o),h.clipsegments=kFr(r._xctrl,r._yctrl,a,o),h.x=s,h.y=l,h.a=c,h.b=f,[h]}});var z0t=W((fci,R0t)=>{"use strict";R0t.exports={attributes:ZO(),supplyDefaults:Rht(),plot:Wht(),calc:I0t(),animatable:!0,isContainer:!0,moduleType:"trace",name:"carpet",basePlotModule:xl(),categories:["cartesian","svg","carpet","carpetAxis","notLegendIsolatable","noMultiCategory","noHover","noSortingByValue"],meta:{}}});var q0t=W((hci,B0t)=>{"use strict";B0t.exports=z0t()});var Vse=W((dci,V0t)=>{"use strict";var FFr=C1(),K0=Ws(),LFr=Ja(),{hovertemplateAttrs:PFr,texttemplateAttrs:IFr,templatefallbackAttrs:O0t}=Wa(),N0t=Fo(),Sx=an().extendFlat,gp=K0.marker,b6=K0.line,U0t=gp.line;V0t.exports={carpet:{valType:"string",editType:"calc"},a:{valType:"data_array",editType:"calc"},b:{valType:"data_array",editType:"calc"},mode:Sx({},K0.mode,{dflt:"markers"}),text:Sx({},K0.text,{}),texttemplate:IFr({editType:"plot"},{keys:["a","b","text"]}),texttemplatefallback:O0t({editType:"plot"}),hovertext:Sx({},K0.hovertext,{}),line:{color:b6.color,width:b6.width,dash:b6.dash,backoff:b6.backoff,shape:Sx({},b6.shape,{values:["linear","spline"]}),smoothing:b6.smoothing,editType:"calc"},connectgaps:K0.connectgaps,fill:Sx({},K0.fill,{values:["none","toself","tonext"],dflt:"none"}),fillcolor:FFr(),marker:Sx({symbol:gp.symbol,opacity:gp.opacity,maxdisplayed:gp.maxdisplayed,angle:gp.angle,angleref:gp.angleref,standoff:gp.standoff,size:gp.size,sizeref:gp.sizeref,sizemin:gp.sizemin,sizemode:gp.sizemode,line:Sx({width:U0t.width,dash:U0t.dash,editType:"calc"},N0t("marker.line")),gradient:gp.gradient,editType:"calc"},N0t("marker")),textfont:K0.textfont,textposition:K0.textposition,selected:K0.selected,unselected:K0.unselected,hoverinfo:Sx({},LFr.hoverinfo,{flags:["a","b","text","name"]}),hoveron:K0.hoveron,hovertemplate:PFr(),hovertemplatefallback:O0t(),zorder:K0.zorder}});var $0t=W((pci,j0t)=>{"use strict";var G0t=tt(),RFr=(k1(),Pt(E1)),_6=Wo(),zFr=Dd(),BFr=ev(),H0t=Jw(),qFr=tv(),OFr=F1(),NFr=Vse();j0t.exports=function(t,r,i,n){function a(h,p){return G0t.coerce(t,r,NFr,h,p)}a("carpet"),r.xaxis="x",r.yaxis="y";var o=a("a"),s=a("b"),l=Math.min(o.length,s.length);if(!l){r.visible=!1;return}r._length=l,a("text"),a("texttemplate"),a("texttemplatefallback"),a("hovertext");var u=l{"use strict";W0t.exports=function(t,r){var i={},n=r._carpet,a=n.ab2ij([t.a,t.b]),o=Math.floor(a[0]),s=a[0]-o,l=Math.floor(a[1]),u=a[1]-l,c=n.evalxy([],o,l,s,u);return i.yLabel=c[1].toFixed(3),i}});var nN=W((gci,X0t)=>{"use strict";X0t.exports=function(e,t){for(var r=e._fullData.length,i,n=0;n{"use strict";var Z0t=hn(),UFr=Fd(),VFr=L1(),GFr=C0(),HFr=Ld().calcMarkerSize,jFr=nN();K0t.exports=function(t,r){var i=r._carpetTrace=jFr(t,r);if(!(!i||!i.visible||i.visible==="legendonly")){var n;r.xaxis=i.xaxis,r.yaxis=i.yaxis;var a=r._length,o=new Array(a),s,l,u=!1;for(n=0;n{"use strict";var $Fr=n5(),Q0t=Yi(),WFr=Qi();edt.exports=function(t,r,i,n){var a,o,s,l=i[0][0].carpet,u=Q0t.getFromId(t,l.xaxis||"x"),c=Q0t.getFromId(t,l.yaxis||"y"),f={xaxis:u,yaxis:c,plot:r.plot};for(a=0;a{"use strict";var YFr=l5(),XFr=tt().fillText;rdt.exports=function(t,r,i,n){var a=YFr(t,r,i,n);if(!a||a[0].index===!1)return;var o=a[0];if(o.index===void 0){var s=1-o.y0/t.ya._length,l=t.xa._length,u=l*s/2,c=l-u;return o.x0=Math.max(Math.min(o.x0,c),u),o.x1=Math.max(Math.min(o.x1,c),u),a}var f=o.cd[o.index];o.a=f.a,o.b=f.b,o.xLabelVal=void 0,o.yLabelVal=void 0;var h=o.trace,p=h._carpet,d=h._module.formatLabels(f,h);o.yLabel=d.yLabel,delete o.text;var v=[];function m(_,b){var S;_.labelprefix&&_.labelprefix.length>0?S=_.labelprefix.replace(/ = $/,""):S=_._hovertitle,v.push(S+": "+b.toFixed(3)+_.labelsuffix)}if(!h.hovertemplate){var g=f.hi||h.hoverinfo,w=g.split("+");w.indexOf("all")!==-1&&(w=["a","b","text"]),w.indexOf("a")!==-1&&m(p.aaxis,f.a),w.indexOf("b")!==-1&&m(p.baxis,f.b),v.push("y: "+o.yLabel),w.indexOf("text")!==-1&&XFr(f,h,v),o.extraText=v.join("
")}return a}});var adt=W((bci,ndt)=>{"use strict";ndt.exports=function(t,r,i,n,a){var o=n[a];return t.a=o.a,t.b=o.b,t.y=o.y,t}});var sdt=W((_ci,odt)=>{"use strict";odt.exports={attributes:Vse(),supplyDefaults:$0t(),colorbar:Cc(),formatLabels:Y0t(),calc:J0t(),plot:tdt(),style:lh().style,styleOnSelect:lh().styleOnSelect,hoverPoints:idt(),selectPoints:Rb(),eventData:adt(),moduleType:"trace",name:"scattercarpet",basePlotModule:xl(),categories:["svg","carpet","symbols","showLegend","carpetDependent","zoomScale"],meta:{}}});var udt=W((wci,ldt)=>{"use strict";ldt.exports=sdt()});var Gse=W((Tci,cdt)=>{"use strict";var mp=S5(),Jm=oS(),ZFr=Fo(),KFr=an().extendFlat,mg=Jm.contours;cdt.exports=KFr({carpet:{valType:"string",editType:"calc"},z:mp.z,a:mp.x,a0:mp.x0,da:mp.dx,b:mp.y,b0:mp.y0,db:mp.dy,text:mp.text,hovertext:mp.hovertext,transpose:mp.transpose,atype:mp.xtype,btype:mp.ytype,fillcolor:Jm.fillcolor,autocontour:Jm.autocontour,ncontours:Jm.ncontours,contours:{type:mg.type,start:mg.start,end:mg.end,size:mg.size,coloring:{valType:"enumerated",values:["fill","lines","none"],dflt:"fill",editType:"calc"},showlines:mg.showlines,showlabels:mg.showlabels,labelfont:mg.labelfont,labelformat:mg.labelformat,operation:mg.operation,value:mg.value,editType:"calc",impliedEdits:{autocontour:!1}},line:{color:Jm.line.color,width:Jm.line.width,dash:Jm.line.dash,smoothing:Jm.line.smoothing,editType:"plot"},zorder:Jm.zorder},ZFr("",{cLetter:"z",autoColorDflt:!1}))});var Hse=W((Aci,ddt)=>{"use strict";var fdt=tt(),JFr=JL(),hdt=Gse(),QFr=HY(),eLr=TP(),tLr=AP();ddt.exports=function(t,r,i,n){function a(u,c){return fdt.coerce(t,r,hdt,u,c)}function o(u){return fdt.coerce2(t,r,hdt,u)}if(a("carpet"),t.a&&t.b){var s=JFr(t,r,a,n,"a","b");if(!s){r.visible=!1;return}a("text");var l=a("contours.type")==="constraint";l?QFr(t,r,a,n,i,{hasHover:!1}):(eLr(t,r,a,o),tLr(t,r,a,n,{hasHover:!1}))}else r._defaultColor=i,r._length=null;a("zorder")}});var mdt=W((Mci,gdt)=>{"use strict";var rLr=rf(),pdt=tt(),iLr=tP(),nLr=iP(),aLr=nP(),oLr=aP(),vdt=dY(),sLr=Hse(),lLr=nN(),uLr=LY();gdt.exports=function(t,r){var i=r._carpetTrace=lLr(t,r);if(!(!i||!i.visible||i.visible==="legendonly")){if(!r.a||!r.b){var n=t.data[i.index],a=t.data[r.index];a.a||(a.a=n.a),a.b||(a.b=n.b),sLr(a,r,r._defaultColor,t._fullLayout)}var o=cLr(t,r);return uLr(r,r._z),o}};function cLr(e,t){var r=t._carpetTrace,i=r.aaxis,n=r.baxis,a,o,s,l,u,c,f;i._minDtick=0,n._minDtick=0,pdt.isArray1D(t.z)&&iLr(t,i,n,"a","b",["z"]),a=t._a=t._a||t.a,l=t._b=t._b||t.b,a=a?i.makeCalcdata(t,"_a"):[],l=l?n.makeCalcdata(t,"_b"):[],o=t.a0||0,s=t.da||1,u=t.b0||0,c=t.db||1,f=t._z=nLr(t._z||t.z,t.transpose),t._emptypoints=oLr(f),aLr(f,t._emptypoints);var h=pdt.maxRowLength(f),p=t.xtype==="scaled"?"":a,d=vdt(t,p,o,s,h,i),v=t.ytype==="scaled"?"":l,m=vdt(t,v,u,c,f.length,n),g={a:d,b:m,z:f};return t.contours.type==="levels"&&t.contours.coloring!=="none"&&rLr(e,t,{vals:f,containerStr:"",cLetter:"z"}),[g]}});var xdt=W((Sci,ydt)=>{"use strict";var fLr=tt().isArrayOrTypedArray;ydt.exports=function(e,t,r,i){var n,a,o,s,l,u,c,f,h,p,d,v,m,g=fLr(r)?"a":"b",w=g==="a"?e.aaxis:e.baxis,_=w.smoothing,b=g==="a"?e.a2i:e.b2j,S=g==="a"?r:i,x=g==="a"?i:r,A=g==="a"?t.a.length:t.b.length,T=g==="a"?t.b.length:t.a.length,y=Math.floor(g==="a"?e.b2j(x):e.a2i(x)),E=g==="a"?function($){return e.evalxy([],$,y)}:function($){return e.evalxy([],y,$)};_&&(o=Math.max(0,Math.min(T-2,y)),s=y-o,a=g==="a"?function($,X){return e.dxydi([],$,o,X,s)}:function($,X){return e.dxydj([],o,$,s,X)});var M=b(S[0]),C=b(S[1]),k=M0?Math.floor:Math.ceil,P=k>0?Math.ceil:Math.floor,R=k>0?Math.min:Math.max,L=k>0?Math.max:Math.min,I=F(M+D),B=P(C-D);c=E(M);var O=[[c]];for(n=I;n*k{"use strict";var oN=gi(),sN=qse(),Adt=Ose(),g8=Qi(),Qm=tt(),hLr=IY(),dLr=RY(),z3=EP(),aN=(uS(),Pt(lS)),pLr=OY(),vLr=qY(),gLr=NY(),mLr=nN(),bdt=xdt();Mdt.exports=function(t,r,i,n){var a=r.xaxis,o=r.yaxis;Qm.makeTraceGroups(n,i,"contour").each(function(s){var l=oN.select(this),u=s[0],c=u.trace,f=c._carpetTrace=mLr(t,c),h=t.calcdata[f.index][0];if(!f.visible||f.visible==="legendonly")return;var p=u.a,d=u.b,v=c.contours,m=vLr(v,r,u),g=v.type==="constraint",w=v._operation,_=g?w==="="?"lines":"fill":v.coloring;function b(F){var P=f.ab2xy(F[0],F[1],!0);return[a.c2p(P[0]),o.c2p(P[1])]}var S=[[p[0],d[d.length-1]],[p[p.length-1],d[d.length-1]],[p[p.length-1],d[0]],[p[0],d[0]]];hLr(m);var x=(p[p.length-1]-p[0])*1e-8,A=(d[d.length-1]-d[0])*1e-8;dLr(m,x,A);var T=m;v.type==="constraint"&&(T=pLr(m,w)),yLr(m,b);var y,E,M,C,k=[];for(C=h.clipsegments.length-1;C>=0;C--)y=h.clipsegments[C],E=sN([],y.x,a.c2p),M=sN([],y.y,o.c2p),E.reverse(),M.reverse(),k.push(Adt(E,M,y.bicubic));var D="M"+k.join("L")+"Z";_Lr(l,h.clipsegments,a,o,g,_),wLr(c,l,a,o,T,S,b,f,h,_,D),xLr(l,m,t,u,v,r,f),g8.setClipUrl(l,f._clipPathId,t)})};function yLr(e,t){var r,i,n,a,o,s,l,u,c;for(r=0;rm&&(i.max=m),i.len=i.max-i.min}function _dt(e,t,r){var i=e.getPointAtLength(t),n=e.getPointAtLength(r),a=n.x-i.x,o=n.y-i.y,s=Math.sqrt(a*a+o*o);return[a/s,o/s]}function wdt(e){var t=Math.sqrt(e[0]*e[0]+e[1]*e[1]);return[e[0]/t,e[1]/t]}function Tdt(e,t){var r=Math.abs(e[0]*t[0]+e[1]*t[1]),i=Math.sqrt(1-r*r);return i/r}function _Lr(e,t,r,i,n,a){var o,s,l,u,c=Qm.ensureSingle(e,"g","contourbg"),f=c.selectAll("path").data(a==="fill"&&!n?[0]:[]);f.enter().append("path"),f.exit().remove();var h=[];for(u=0;u=0&&(p=E,v=m):Math.abs(h[1]-p[1])<_?Math.abs(h[1]-E[1])<_&&(E[0]-h[0])*(p[0]-E[0])>=0&&(p=E,v=m):Qm.log("endpt to newendpt is not vert. or horz.",h,p,E)}if(v>=0)break;u+=T(h,p),h=p}if(v===t.edgepaths.length){Qm.log("unclosed perimeter path");break}l=v,f=c.indexOf(l)===-1,f&&(l=c[0],u+=T(h,p)+"Z",h=null)}for(l=0;l{"use strict";Edt.exports={attributes:Gse(),supplyDefaults:Hse(),colorbar:DP(),calc:mdt(),plot:Sdt(),style:CP(),moduleType:"trace",name:"contourcarpet",basePlotModule:xl(),categories:["cartesian","svg","carpet","contour","symbols","showLegend","hasLines","carpetDependent","noHover","noSortingByValue"],meta:{}}});var Ddt=W((Cci,Cdt)=>{"use strict";Cdt.exports=kdt()});var uN=W((Dci,Rdt)=>{"use strict";var lN=tt().extendFlat,m8=Ws(),Fdt=Ts().axisHoverFormat,{hovertemplateAttrs:ALr,templatefallbackAttrs:MLr}=Wa(),Pdt=zu().dash,SLr=tw(),Idt=(G5(),Pt(V5)),ELr=Idt.INCREASING.COLOR,kLr=Idt.DECREASING.COLOR,jse=m8.line;function Ldt(e){return{line:{color:lN({},jse.color,{dflt:e}),width:jse.width,dash:Pdt,editType:"style"},editType:"style"}}Rdt.exports={xperiod:m8.xperiod,xperiod0:m8.xperiod0,xperiodalignment:m8.xperiodalignment,xhoverformat:Fdt("x"),yhoverformat:Fdt("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:lN({},jse.width,{}),dash:lN({},Pdt,{}),editType:"style"},increasing:Ldt(ELr),decreasing:Ldt(kLr),text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertemplate:ALr({},{keys:["open","high","low","close"]}),hovertemplatefallback:MLr(),tickwidth:{valType:"number",min:0,max:.5,dflt:.3,editType:"calc"},hoverlabel:lN({},SLr.hoverlabel,{split:{valType:"boolean",dflt:!1,editType:"style"}}),zorder:m8.zorder}});var $se=W((Fci,zdt)=>{"use strict";var CLr=xi(),DLr=tt();zdt.exports=function(t,r,i,n){var a=i("x"),o=i("open"),s=i("high"),l=i("low"),u=i("close");i("hoverlabel.split");var c=CLr.getComponentMethod("calendars","handleTraceDefaults");if(c(t,r,["x"],n),!!(o&&s&&l&&u)){var f=Math.min(o.length,s.length,l.length,u.length);return a&&(f=Math.min(f,DLr.minRowLength(a))),r._length=f,f}}});var Odt=W((Lci,qdt)=>{"use strict";var FLr=tt(),LLr=$se(),PLr=Qp(),ILr=uN();qdt.exports=function(t,r,i,n){function a(s,l){return FLr.coerce(t,r,ILr,s,l)}var o=LLr(t,r,a,n);if(!o){r.visible=!1;return}PLr(t,r,n,a,{x:!0}),a("xhoverformat"),a("yhoverformat"),a("line.width"),a("line.dash"),Bdt(t,r,a,"increasing"),Bdt(t,r,a,"decreasing"),a("text"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback"),a("tickwidth"),n._requestRangeslider[r.xaxis]=!0,a("zorder")};function Bdt(e,t,r,i){r(i+".line.color"),r(i+".line.width",t.line.width),r(i+".line.dash",t.line.dash)}});var Wse=W((Pci,Udt)=>{"use strict";var w6=tt(),cN=w6._,fN=Yi(),RLr=rv(),y8=(ra(),Pt(ia)).BADNUM;function zLr(e,t){var r=fN.getFromId(e,t.xaxis),i=fN.getFromId(e,t.yaxis),n=qLr(e,r,t),a=t._minDiff;t._minDiff=null;var o=t._origX;t._origX=null;var s=t._xcalc;t._xcalc=null;var l=Ndt(e,t,o,s,i,BLr);return t._extremes[r._id]=fN.findExtremes(r,s,{vpad:a/2}),l.length?(w6.extendFlat(l[0].t,{wHover:a/2,tickLen:n}),l):[{t:{empty:!0}}]}function BLr(e,t,r,i){return{o:e,h:t,l:r,c:i}}function Ndt(e,t,r,i,n,a){for(var o=n.makeCalcdata(t,"open"),s=n.makeCalcdata(t,"high"),l=n.makeCalcdata(t,"low"),u=n.makeCalcdata(t,"close"),c=w6.isArrayOrTypedArray(t.text),f=w6.isArrayOrTypedArray(t.hovertext),h=!0,p=null,d=!!t.xperiodalignment,v=[],m=0;mp):h=S>w,p=S;var x=a(w,_,b,S);x.pos=g,x.yc=(w+S)/2,x.i=m,x.dir=h?"increasing":"decreasing",x.x=x.pos,x.y=[b,_],d&&(x.orig_p=r[m]),c&&(x.tx=t.text[m]),f&&(x.htx=t.hovertext[m]),v.push(x)}else v.push({pos:g,empty:!0})}return t._extremes[n._id]=fN.findExtremes(n,w6.concat(l,s),{padded:!0}),v.length&&(v[0].t={labels:{open:cN(e,"open:")+" ",high:cN(e,"high:")+" ",low:cN(e,"low:")+" ",close:cN(e,"close:")+" "}}),v}function qLr(e,t,r){var i=r._minDiff;if(!i){var n=e._fullData,a=[];i=1/0;var o;for(o=0;o{"use strict";var OLr=gi(),Vdt=tt();Gdt.exports=function(t,r,i,n){var a=r.yaxis,o=r.xaxis,s=!!o.rangebreaks;Vdt.makeTraceGroups(n,i,"trace ohlc").each(function(l){var u=OLr.select(this),c=l[0],f=c.t,h=c.trace;if(h.visible!==!0||f.empty){u.remove();return}var p=f.tickLen,d=u.selectAll("path").data(Vdt.identity);d.enter().append("path"),d.exit().remove(),d.attr("d",function(v){if(v.empty)return"M0,0Z";var m=o.c2p(v.pos-p,!0),g=o.c2p(v.pos+p,!0),w=s?(m+g)/2:o.c2p(v.pos,!0),_=a.c2p(v.o,!0),b=a.c2p(v.h,!0),S=a.c2p(v.l,!0),x=a.c2p(v.c,!0);return"M"+m+","+_+"H"+w+"M"+w+","+b+"V"+S+"M"+g+","+x+"H"+w})})}});var $dt=W((Rci,jdt)=>{"use strict";var Yse=gi(),NLr=Qi(),ULr=ti();jdt.exports=function(t,r,i){var n=i||Yse.select(t).selectAll("g.ohlclayer").selectAll("g.trace");n.style("opacity",function(a){return a[0].trace.opacity}),n.each(function(a){var o=a[0].trace;Yse.select(this).selectAll("path").each(function(s){if(!s.empty){var l=o[s.dir].line;Yse.select(this).style("fill","none").call(ULr.stroke,l.color).call(NLr.dashLine,l.dash,l.width).style("opacity",o.selectedpoints&&!s.selected?.3:1)}})})}});var Zse=W((zci,Kdt)=>{"use strict";var Xse=Yi(),VLr=tt(),hN=Is(),GLr=ti(),HLr=tt().fillText,Wdt=(G5(),Pt(V5)),jLr={increasing:Wdt.INCREASING.SYMBOL,decreasing:Wdt.DECREASING.SYMBOL};function $Lr(e,t,r,i){var n=e.cd,a=n[0].trace;return a.hoverlabel.split?Xdt(e,t,r,i):Zdt(e,t,r,i)}function Ydt(e,t,r,i){var n=e.cd,a=e.xa,o=n[0].trace,s=n[0].t,l=o.type,u=l==="ohlc"?"l":"min",c=l==="ohlc"?"h":"max",f,h,p=s.bPos||0,d=function(E){return E.pos+p-t},v=s.bdPos||s.tickLen,m=s.wHover,g=Math.min(1,v/Math.abs(a.r2c(a.range[1])-a.r2c(a.range[0])));f=e.maxHoverDistance-g,h=e.maxSpikeDistance-g;function w(E){var M=d(E);return hN.inbox(M-m,M+m,f)}function _(E){var M=E[u],C=E[c];return M===C||hN.inbox(M-r,C-r,f)}function b(E){return(w(E)+_(E))/2}var S=hN.getDistanceFunction(i,w,_,b);if(hN.getClosest(n,S,e),e.index===!1)return null;var x=n[e.index];if(x.empty)return null;var A=x.dir,T=o[A],y=T.line.color;return GLr.opacity(y)&&T.line.width?e.color=y:e.color=T.fillcolor,e.x0=a.c2p(x.pos+p-v,!0),e.x1=a.c2p(x.pos+p+v,!0),e.xLabelVal=x.orig_p!==void 0?x.orig_p:x.pos,e.spikeDistance=b(x)*h/f,e.xSpike=a.c2p(x.pos,!0),e}function Xdt(e,t,r,i){var n=e.cd,a=e.ya,o=n[0].trace,s=n[0].t,l=[],u=Ydt(e,t,r,i);if(!u)return[];var c=n[u.index],f=c.hi||o.hoverinfo||"";if(f==="none"||f==="skip")return[];for(var h=["high","open","close","low"],p={},d=0;d"+s.labels[v]+Xse.hoverLabelText(a,m,o.yhoverformat)):(w=VLr.extendFlat({},u),w.y0=w.y1=g,w.yLabelVal=m,w.yLabel=s.labels[v]+Xse.hoverLabelText(a,m,o.yhoverformat),w.name="",l.push(w),p[m]=w)}return l}function Zdt(e,t,r,i){var n=e.cd,a=e.ya,o=n[0].trace,s=n[0].t,l=Ydt(e,t,r,i);if(!l)return[];var u=l.index,c=n[u],f=l.index=c.i,h=c.dir;function p(b){return s.labels[b]+Xse.hoverLabelText(a,o[b][f],o.yhoverformat)}var d=c.hi||o.hoverinfo||"",v=d.split("+"),m=d==="all",g=m||v.indexOf("y")!==-1,w=m||v.indexOf("text")!==-1,_=g?[p("open"),p("high"),p("low"),p("close")+" "+jLr[h]]:[];return w&&HLr(c,o,_),l.extraText=_.join("
"),l.y0=l.y1=a.c2p(c.yc,!0),[l]}Kdt.exports={hoverPoints:$Lr,hoverSplit:Xdt,hoverOnPoints:Zdt}});var Kse=W((Bci,Jdt)=>{"use strict";Jdt.exports=function(t,r){var i=t.cd,n=t.xaxis,a=t.yaxis,o=[],s,l=i[0].t.bPos||0;if(r===!1)for(s=0;s{"use strict";Qdt.exports={moduleType:"trace",name:"ohlc",basePlotModule:xl(),categories:["cartesian","svg","showLegend"],meta:{},attributes:uN(),supplyDefaults:Odt(),calc:Wse().calc,plot:Hdt(),style:$dt(),hoverPoints:Zse().hoverPoints,selectPoints:Kse()}});var rpt=W((Oci,tpt)=>{"use strict";tpt.exports=ept()});var Qse=W((Nci,apt)=>{"use strict";var Jse=tt().extendFlat,ipt=Ts().axisHoverFormat,xh=uN(),T6=KM();function npt(e){return{line:{color:Jse({},T6.line.color,{dflt:e}),width:T6.line.width,editType:"style"},fillcolor:T6.fillcolor,editType:"style"}}apt.exports={xperiod:xh.xperiod,xperiod0:xh.xperiod0,xperiodalignment:xh.xperiodalignment,xhoverformat:ipt("x"),yhoverformat:ipt("y"),x:xh.x,open:xh.open,high:xh.high,low:xh.low,close:xh.close,line:{width:Jse({},T6.line.width,{}),editType:"style"},increasing:npt(xh.increasing.line.color.dflt),decreasing:npt(xh.decreasing.line.color.dflt),text:xh.text,hovertext:xh.hovertext,hovertemplate:xh.hovertemplate,hovertemplatefallback:xh.hovertemplatefallback,whiskerwidth:Jse({},T6.whiskerwidth,{dflt:0}),hoverlabel:xh.hoverlabel,zorder:T6.zorder}});var lpt=W((Uci,spt)=>{"use strict";var WLr=tt(),YLr=ti(),XLr=$se(),ZLr=Qp(),KLr=Qse();spt.exports=function(t,r,i,n){function a(s,l){return WLr.coerce(t,r,KLr,s,l)}var o=XLr(t,r,a,n);if(!o){r.visible=!1;return}ZLr(t,r,n,a,{x:!0}),a("xhoverformat"),a("yhoverformat"),a("line.width"),opt(t,r,a,"increasing"),opt(t,r,a,"decreasing"),a("text"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback"),a("whiskerwidth"),n._requestRangeslider[r.xaxis]=!0,a("zorder")};function opt(e,t,r,i){var n=r(i+".line.color");r(i+".line.width",t.line.width),r(i+".fillcolor",YLr.addOpacity(n,.5))}});var hpt=W((Vci,fpt)=>{"use strict";var upt=tt(),cpt=Yi(),JLr=rv(),QLr=Wse().calcCommon;fpt.exports=function(e,t){var r=e._fullLayout,i=cpt.getFromId(e,t.xaxis),n=cpt.getFromId(e,t.yaxis),a=i.makeCalcdata(t,"x"),o=JLr(t,i,"x",a).vals,s=QLr(e,t,a,o,n,ePr);return s.length?(upt.extendFlat(s[0].t,{num:r._numBoxes,dPos:upt.distinctVals(o).minDiff/2,posLetter:"x",valLetter:"y"}),r._numBoxes++,s):[{t:{empty:!0}}]};function ePr(e,t,r,i){return{min:r,q1:Math.min(e,i),med:i,q3:Math.max(e,i),max:t}}});var ppt=W((Gci,dpt)=>{"use strict";dpt.exports={moduleType:"trace",name:"candlestick",basePlotModule:xl(),categories:["cartesian","svg","showLegend","candlestick","boxLayout"],meta:{},attributes:Qse(),layoutAttributes:JM(),supplyLayoutDefaults:$L().supplyLayoutDefaults,crossTraceCalc:YL().crossTraceCalc,supplyDefaults:lpt(),calc:hpt(),plot:XL().plot,layerName:"boxlayer",style:ZL().style,hoverPoints:Zse().hoverPoints,selectPoints:Kse()}});var gpt=W((Hci,vpt)=>{"use strict";vpt.exports=ppt()});var tle=W((jci,mpt)=>{"use strict";var pN=tt(),tPr=v1(),dN=pN.deg2rad,ele=pN.rad2deg;mpt.exports=function(t,r,i){switch(tPr(t,i),t._id){case"x":case"radialaxis":rPr(t,r);break;case"angularaxis":aPr(t,r);break}};function rPr(e,t){var r=t._subplot;e.setGeometry=function(){var i=e._rl[0],n=e._rl[1],a=r.innerRadius,o=(r.radius-a)/(n-i),s=a/o,l=i>n?function(u){return u<=0}:function(u){return u>=0};e.c2g=function(u){var c=e.c2l(u)-i;return(l(c)?c:0)+s},e.g2c=function(u){return e.l2c(u+i-s)},e.g2p=function(u){return u*o},e.c2p=function(u){return e.g2p(e.c2g(u))}}}function iPr(e,t){return t==="degrees"?dN(e):e}function nPr(e,t){return t==="degrees"?ele(e):e}function aPr(e,t){var r=e.type;if(r==="linear"){var i=e.d2c,n=e.c2d;e.d2c=function(a,o){return iPr(i(a),o)},e.c2d=function(a,o){return n(nPr(a,o))}}e.makeCalcdata=function(a,o){var s=a[o],l=a._length,u,c,f=function(m){return e.d2c(m,a.thetaunit)};if(s)for(u=new Array(l),c=0;cvPr,MINZOOM:()=>gPr,OFFEDGE:()=>mPr,angularDragBoxSize:()=>hPr,attr:()=>oPr,axisName2dataArray:()=>uPr,axisNames:()=>lPr,cornerHalfWidth:()=>pPr,cornerLen:()=>dPr,layerNames:()=>cPr,name:()=>sPr,radialDragBoxSize:()=>fPr});var oPr,sPr,lPr,uPr,cPr,fPr,hPr,dPr,pPr,vPr,gPr,mPr,gN=Ci(()=>{"use strict";oPr="subplot",sPr="polar",lPr=["angularaxis","radialaxis"],uPr={angularaxis:"theta",radialaxis:"r"},cPr=["draglayer","plotbg","backplot","angular-grid","radial-grid","frontplot","angular-line","radial-line","angular-axis","radial-axis"],fPr=50,hPr=30,dPr=25,pPr=2,vPr=8,gPr=20,mPr=20});var yN=W(($ci,wpt)=>{"use strict";var B3=tt(),ypt=nM().tester,rle=B3.findIndexOfMin,bpt=B3.isAngleInsideSector,yPr=B3.angleDelta,xpt=B3.angleDist;function xPr(e,t,r,i,n){if(!bpt(t,i))return!1;var a,o;r[0]0?o:1/0},i=rle(t,r),n=B3.mod(i+1,t.length);return[t[i],t[n]]}function mN(e){return Math.abs(e)>1e-10?e:0}function ile(e,t,r){t=t||0,r=r||0;for(var i=e.length,n=new Array(i),a=0;a{"use strict";function Tpt(e){return e<0?-1:e>0?1:0}function M6(e){var t=e[0],r=e[1];if(!isFinite(t)||!isFinite(r))return[1,0];var i=(t+1)*(t+1)+r*r;return[(t*t+r*r-1)/i,2*r/i]}function S6(e,t){var r=t[0],i=t[1];return[r*e.radius+e.cx,-i*e.radius+e.cy]}function Apt(e,t){return t*e.radius}function EPr(e,t,r,i){var n=S6(e,M6([r,t])),a=n[0],o=n[1],s=S6(e,M6([i,t])),l=s[0],u=s[1];if(t===0)return["M"+a+","+o,"L"+l+","+u].join(" ");var c=Apt(e,1/Math.abs(t));return["M"+a+","+o,"A"+c+","+c+" 0 0,"+(t<0?1:0)+" "+l+","+u].join(" ")}function kPr(e,t,r,i){var n=Apt(e,1/(t+1)),a=S6(e,M6([t,r])),o=a[0],s=a[1],l=S6(e,M6([t,i])),u=l[0],c=l[1];if(Tpt(r)!==Tpt(i)){var f=S6(e,M6([t,0])),h=f[0],p=f[1];return["M"+o+","+s,"A"+n+","+n+" 0 0,"+(0{"use strict";var q3=gi(),N3=xi(),gs=tt(),yg=gs.strRotate,Yu=gs.strTranslate,wN=ti(),x8=Qi(),CPr=Qo(),bh=Yi(),DPr=v1(),FPr=tle(),LPr=Yp().doAutoRange,ey=i$(),_N=Ef(),Spt=Is(),PPr=pb(),IPr=xu().prepSelect,RPr=xu().selectOnClick,ale=xu().clearOutline,Ept=Xp(),kpt=GA(),Cpt=JA().redrawReglTraces,zPr=(Jl(),Pt(Kl)).MID_SHIFT,Ex=(gN(),Pt(vN)),ty=yN(),TN=nle(),xN=TN.smith,BPr=TN.reactanceArc,qPr=TN.resistanceArc,bN=TN.smithTransform,OPr=gs._,Dpt=gs.mod,kx=gs.deg2rad,O3=gs.rad2deg;function Fpt(e,t,r){this.isSmith=r||!1,this.id=t,this.gd=e,this._hasClipOnAxisFalse=null,this.vangles=null,this.radialAxisAngle=null,this.traceHash={},this.layers={},this.clipPaths={},this.clipIds={},this.viewInitial={};var i=e._fullLayout,n="clip"+i._uid+t;this.clipIds.forTraces=n+"-for-traces",this.clipPaths.forTraces=i._clips.append("clipPath").attr("id",this.clipIds.forTraces),this.clipPaths.forTraces.append("path"),this.framework=i["_"+(r?"smith":"polar")+"layer"].append("g").attr("class",t),this.getHole=function(a){return this.isSmith?0:a.hole},this.getSector=function(a){return this.isSmith?[0,360]:a.sector},this.getRadial=function(a){return this.isSmith?a.realaxis:a.radialaxis},this.getAngular=function(a){return this.isSmith?a.imaginaryaxis:a.angularaxis},r||(this.radialTickLayout=null,this.angularTickLayout=null)}var gc=Fpt.prototype;Ipt.exports=function(t,r,i){return new Fpt(t,r,i)};gc.plot=function(e,t){for(var r=this,i=t[r.id],n=!1,a=0;am?(g=u,w=u*m,S=(c-w)/n.h/2,_=[s[0],s[1]],b=[l[0]+S,l[1]-S]):(g=c/m,w=c,S=(u-g)/n.w/2,_=[s[0]+S,s[1]-S],b=[l[0],l[1]]),r.xLength2=g,r.yLength2=w,r.xDomain2=_,r.yDomain2=b;var x=r.xOffset2=n.l+n.w*_[0],A=r.yOffset2=n.t+n.h*(1-b[1]),T=r.radius=g/p,y=r.innerRadius=r.getHole(t)*T,E=r.cx=x-T*h[0],M=r.cy=A+T*h[3],C=r.cxx=E-x,k=r.cyy=M-A,D=a.side,F;D==="counterclockwise"?(F=D,D="top"):D==="clockwise"&&(F=D,D="bottom"),r.radialAxis=r.mockAxis(e,t,a,{_id:"x",side:D,_trueSide:F,domain:[y/n.w,T/n.w]}),r.angularAxis=r.mockAxis(e,t,o,{side:"right",domain:[0,Math.PI],autorange:!1}),r.doAutoRange(e,t),r.updateAngularAxis(e,t),r.updateRadialAxis(e,t),r.updateRadialAxisTitle(e,t),r.xaxis=r.mockCartesianAxis(e,t,{_id:"x",domain:_}),r.yaxis=r.mockCartesianAxis(e,t,{_id:"y",domain:b});var P=r.pathSubplot();r.clipPaths.forTraces.select("path").attr("d",P).attr("transform",Yu(C,k)),i.frontplot.attr("transform",Yu(x,A)).call(x8.setClipUrl,r._hasClipOnAxisFalse?null:r.clipIds.forTraces,r.gd),i.bg.attr("d",P).attr("transform",Yu(E,M)).call(wN.fill,t.bgcolor)};gc.mockAxis=function(e,t,r,i){var n=gs.extendFlat({},r,i);return FPr(n,t,e),n};gc.mockCartesianAxis=function(e,t,r){var i=this,n=i.isSmith,a=r._id,o=gs.extendFlat({type:"linear"},r);DPr(o,e);var s={x:[0,2],y:[1,3]};return o.setRange=function(){var l=i.sectorBBox,u=s[a],c=i.radialAxis._rl,f=(c[1]-c[0])/(1-i.getHole(t));o.range=[l[u[0]]*f,l[u[1]]*f]},o.isPtWithinRange=a==="x"&&!n?function(l){return i.isPtInside(l)}:function(){return!0},o.setRange(),o.setScale(),o};gc.doAutoRange=function(e,t){var r=this,i=r.gd,n=r.radialAxis,a=r.getRadial(t);LPr(i,n);var o=n.range;if(a.range=o.slice(),a._input.range=o.slice(),n._rl=[n.r2l(o[0],null,"gregorian"),n.r2l(o[1],null,"gregorian")],n.minallowed!==void 0){var s=n.r2l(n.minallowed);n._rl[0]>n._rl[1]?n._rl[1]=Math.max(n._rl[1],s):n._rl[0]=Math.max(n._rl[0],s)}if(n.maxallowed!==void 0){var l=n.r2l(n.maxallowed);n._rl[0]90&&c<=270&&(f.tickangle=180);var d=p?function(T){var y=bN(r,xN([T.x,0]));return Yu(y[0]-s,y[1]-l)}:function(T){return Yu(f.l2p(T.x)+o,0)},v=p?function(T){return qPr(r,T.x,-1/0,1/0)}:function(T){return r.pathArc(f.r2p(T.x)+o)},m=Lpt(u);if(r.radialTickLayout!==m&&(n["radial-axis"].selectAll(".xtick").remove(),r.radialTickLayout=m),h){f.setScale();var g=0,w=p?(f.tickvals||[]).filter(function(T){return T>=0}).map(function(T){return bh.tickText(f,T,!0,!1)}):bh.calcTicks(f),_=p?w:bh.clipEnds(f,w),b=bh.getTickSigns(f)[2];p&&((f.ticks==="top"&&f.side==="bottom"||f.ticks==="bottom"&&f.side==="top")&&(b=-b),f.ticks==="top"&&f.side==="top"&&(g=-f.ticklen),f.ticks==="bottom"&&f.side==="bottom"&&(g=f.ticklen)),bh.drawTicks(i,f,{vals:w,layer:n["radial-axis"],path:bh.makeTickPath(f,0,b),transFn:d,crisp:!1}),bh.drawGrid(i,f,{vals:_,layer:n["radial-grid"],path:v,transFn:gs.noop,crisp:!1}),bh.drawLabels(i,f,{vals:w,layer:n["radial-axis"],transFn:d,labelFns:bh.makeLabelFns(f,g)})}var S=r.radialAxisAngle=r.vangles?O3(Ppt(kx(u.angle),r.vangles)):u.angle,x=Yu(s,l),A=x+yg(-S);b8(n["radial-axis"],h&&(u.showticklabels||u.ticks),{transform:A}),b8(n["radial-grid"],h&&u.showgrid,{transform:p?"":x}),b8(n["radial-line"].select("line"),h&&u.showline,{x1:p?-a:o,y1:0,x2:a,y2:0,transform:A}).attr("stroke-width",u.linewidth).call(wN.stroke,u.linecolor)};gc.updateRadialAxisTitle=function(e,t,r){if(!this.isSmith){var i=this,n=i.gd,a=i.radius,o=i.cx,s=i.cy,l=i.getRadial(t),u=i.id+"title",c=0;if(l.title){var f=x8.bBox(i.layers["radial-axis"].node()).height,h=l.title.font.size,p=l.side;c=p==="top"?h:p==="counterclockwise"?-(f+h*.4):f+h*.8}var d=r!==void 0?r:i.radialAxisAngle,v=kx(d),m=Math.cos(v),g=Math.sin(v),w=o+a/2*m+c*g,_=s-a/2*g+c*m;i.layers["radial-axis-title"]=PPr.draw(n,u,{propContainer:l,propName:i.id+".radialaxis.title.text",placeholder:OPr(n,"Click to enter radial axis title"),attributes:{x:w,y:_,"text-anchor":"middle"},transform:{rotate:-d}})}};gc.updateAngularAxis=function(e,t){var r=this,i=r.gd,n=r.layers,a=r.radius,o=r.innerRadius,s=r.cx,l=r.cy,u=r.getAngular(t),c=r.angularAxis,f=r.isSmith;f||(r.fillViewInitialKey("angularaxis.rotation",u.rotation),c.setGeometry(),c.setScale());var h=f?function(y){var E=bN(r,xN([0,y.x]));return Math.atan2(E[0]-s,E[1]-l)-Math.PI/2}:function(y){return c.t2g(y.x)};c.type==="linear"&&c.thetaunit==="radians"&&(c.tick0=O3(c.tick0),c.dtick=O3(c.dtick));var p=function(y){return Yu(s+a*Math.cos(y),l-a*Math.sin(y))},d=f?function(y){var E=bN(r,xN([0,y.x]));return Yu(E[0],E[1])}:function(y){return p(h(y))},v=f?function(y){var E=bN(r,xN([0,y.x])),M=Math.atan2(E[0]-s,E[1]-l)-Math.PI/2;return Yu(E[0],E[1])+yg(-O3(M))}:function(y){var E=h(y);return p(E)+yg(-O3(E))},m=f?function(y){return BPr(r,y.x,0,1/0)}:function(y){var E=h(y),M=Math.cos(E),C=Math.sin(E);return"M"+[s+o*M,l-o*C]+"L"+[s+a*M,l-a*C]},g=bh.makeLabelFns(c,0),w=g.labelStandoff,_={};_.xFn=function(y){var E=h(y);return Math.cos(E)*w},_.yFn=function(y){var E=h(y),M=Math.sin(E)>0?.2:1;return-Math.sin(E)*(w+y.fontSize*M)+Math.abs(Math.cos(E))*(y.fontSize*zPr)},_.anchorFn=function(y){var E=h(y),M=Math.cos(E);return Math.abs(M)<.1?"middle":M>0?"start":"end"},_.heightFn=function(y,E,M){var C=h(y);return-.5*(1+Math.sin(C))*M};var b=Lpt(u);r.angularTickLayout!==b&&(n["angular-axis"].selectAll("."+c._id+"tick").remove(),r.angularTickLayout=b);var S=f?[1/0].concat(c.tickvals||[]).map(function(y){return bh.tickText(c,y,!0,!1)}):bh.calcTicks(c);f&&(S[0].text="\u221E",S[0].fontSize*=1.75);var x;if(t.gridshape==="linear"?(x=S.map(h),gs.angleDelta(x[0],x[1])<0&&(x=x.slice().reverse())):x=null,r.vangles=x,c.type==="category"&&(S=S.filter(function(y){return gs.isAngleInsideSector(h(y),r.sectorInRad)})),c.visible){var A=c.ticks==="inside"?-1:1,T=(c.linewidth||1)/2;bh.drawTicks(i,c,{vals:S,layer:n["angular-axis"],path:"M"+A*T+",0h"+A*c.ticklen,transFn:v,crisp:!1}),bh.drawGrid(i,c,{vals:S,layer:n["angular-grid"],path:m,transFn:gs.noop,crisp:!1}),bh.drawLabels(i,c,{vals:S,layer:n["angular-axis"],repositionOnUpdate:!0,transFn:d,labelFns:_})}b8(n["angular-line"].select("path"),u.showline,{d:r.pathSubplot(),transform:Yu(s,l)}).attr("stroke-width",u.linewidth).call(wN.stroke,u.linecolor)};gc.updateFx=function(e,t){if(!this.gd._context.staticPlot){var r=!this.isSmith;r&&(this.updateAngularDrag(e),this.updateRadialDrag(e,t,0),this.updateRadialDrag(e,t,1)),this.updateHoverAndMainDrag(e)}};gc.updateHoverAndMainDrag=function(e){var t=this,r=t.isSmith,i=t.gd,n=t.layers,a=e._zoomlayer,o=Ex.MINZOOM,s=Ex.OFFEDGE,l=t.radius,u=t.innerRadius,c=t.cx,f=t.cy,h=t.cxx,p=t.cyy,d=t.sectorInRad,v=t.vangles,m=t.radialAxis,g=ty.clampTiny,w=ty.findXYatLength,_=ty.findEnclosingVertexAngles,b=Ex.cornerHalfWidth,S=Ex.cornerLen/2,x,A,T=ey.makeDragger(n,"path","maindrag",e.dragmode===!1?"none":"crosshair");q3.select(T).attr("d",t.pathSubplot()).attr("transform",Yu(c,f)),T.onmousemove=function(te){Spt.hover(i,te,t.id),i._fullLayout._lasthover=T,i._fullLayout._hoversubplot=t.id},T.onmouseout=function(te){i._dragging||_N.unhover(i,te)};var y={element:T,gd:i,subplot:t.id,plotinfo:{id:t.id,xaxis:t.xaxis,yaxis:t.yaxis},xaxes:[t.xaxis],yaxes:[t.yaxis]},E,M,C,k,D,F,P,R,L;function I(te,ue){return Math.sqrt(te*te+ue*ue)}function B(te,ue){return I(te-h,ue-p)}function O(te,ue){return Math.atan2(p-ue,te-h)}function $(te,ue){return[te*Math.cos(ue),te*Math.sin(-ue)]}function X(te,ue){if(te===0)return t.pathSector(2*b);var ge=S/te,Ee=ue-ge,xe=ue+ge,ce=Math.max(0,Math.min(te,l)),oe=ce-b,Se=ce+b;return"M"+$(oe,Ee)+"A"+[oe,oe]+" 0,0,0 "+$(oe,xe)+"L"+$(Se,xe)+"A"+[Se,Se]+" 0,0,1 "+$(Se,Ee)+"Z"}function K(te,ue,ge){if(te===0)return t.pathSector(2*b);var Ee=$(te,ue),xe=$(te,ge),ce=g((Ee[0]+xe[0])/2),oe=g((Ee[1]+xe[1])/2),Se,be;if(ce&&oe){var fe=oe/ce,ee=-1/fe,ae=w(b,fe,ce,oe);Se=w(S,ee,ae[0][0],ae[0][1]),be=w(S,ee,ae[1][0],ae[1][1])}else{var _e,re;oe?(_e=S,re=b):(_e=b,re=S),Se=[[ce-_e,oe-re],[ce+_e,oe-re]],be=[[ce-_e,oe+re],[ce+_e,oe+re]]}return"M"+Se.join("L")+"L"+be.reverse().join("L")+"Z"}function G(){C=null,k=null,D=t.pathSubplot(),F=!1;var te=i._fullLayout[t.id];P=wN.luminosity(te.bgcolor),R=ey.makeZoombox(a,P,c,f,D),R.attr("fill-rule","evenodd"),L=ey.makeCorners(a,c,f),ale(i)}function q(te,ue){return ue=Math.max(Math.min(ue,l),u),teo?(te-1&&te===1&&RPr(ue,i,[t.xaxis],[t.yaxis],t.id,y),ge.indexOf("event")>-1&&Spt.click(i,ue,t.id)}y.prepFn=function(te,ue,ge){var Ee=i._fullLayout.dragmode,xe=T.getBoundingClientRect();i._fullLayout._calcInverseTransform(i);var ce=i._fullLayout._invTransform;x=i._fullLayout._invScaleX,A=i._fullLayout._invScaleY;var oe=gs.apply3DTransform(ce)(ue-xe.left,ge-xe.top);if(E=oe[0],M=oe[1],v){var Se=ty.findPolygonOffset(l,d[0],d[1],v);E+=h+Se[0],M+=p+Se[1]}switch(Ee){case"zoom":y.clickFn=Q,r||(v?y.moveFn=Y:y.moveFn=N,y.doneFn=H,G(te,ue,ge));break;case"select":case"lasso":IPr(te,ue,ge,y,Ee);break}},_N.init(y)};gc.updateRadialDrag=function(e,t,r){var i=this,n=i.gd,a=i.layers,o=i.radius,s=i.innerRadius,l=i.cx,u=i.cy,c=i.radialAxis,f=Ex.radialDragBoxSize,h=f/2;if(!c.visible)return;var p=kx(i.radialAxisAngle),d=c._rl,v=d[0],m=d[1],g=d[r],w=.75*(d[1]-d[0])/(1-i.getHole(t))/o,_,b,S;r?(_=l+(o+h)*Math.cos(p),b=u-(o+h)*Math.sin(p),S="radialdrag"):(_=l+(s-h)*Math.cos(p),b=u-(s-h)*Math.sin(p),S="radialdrag-inner");var x=ey.makeRectDragger(a,S,"crosshair",-h,-h,f,f),A={element:x,gd:n};e.dragmode===!1&&(A.dragmode=!1),b8(q3.select(x),c.visible&&s0!=(r?E>v:E=90||n>90&&a>=450?p=1:s<=0&&u<=0?p=0:p=Math.max(s,u),n<=180&&a>=180||n>180&&a>=540?c=-1:o>=0&&l>=0?c=0:c=Math.min(o,l),n<=270&&a>=270||n>270&&a>=630?f=-1:s>=0&&u>=0?f=0:f=Math.min(s,u),a>=360?h=1:o<=0&&l<=0?h=0:h=Math.max(o,l),[c,f,h,p]}function Ppt(e,t){var r=function(n){return gs.angleDist(e,n)},i=gs.findIndexOfMin(t,r);return t[i]}function b8(e,t,r){return t?(e.attr("display",null),e.attr(r)):e&&e.attr("display","none"),e}});var sle=W((Xci,Npt)=>{"use strict";var UPr=Yl(),Bn=ac(),VPr=ds().attributes,J0=tt().extendFlat,Rpt=hs().overrideAll,zpt=Rpt({color:Bn.color,showline:J0({},Bn.showline,{dflt:!0}),linecolor:Bn.linecolor,linewidth:Bn.linewidth,showgrid:J0({},Bn.showgrid,{dflt:!0}),gridcolor:Bn.gridcolor,gridwidth:Bn.gridwidth,griddash:Bn.griddash},"plot","from-root"),Bpt=Rpt({tickmode:Bn.minor.tickmode,nticks:Bn.nticks,tick0:Bn.tick0,dtick:Bn.dtick,tickvals:Bn.tickvals,ticktext:Bn.ticktext,ticks:Bn.ticks,ticklen:Bn.ticklen,tickwidth:Bn.tickwidth,tickcolor:Bn.tickcolor,ticklabelstep:Bn.ticklabelstep,showticklabels:Bn.showticklabels,labelalias:Bn.labelalias,minorloglabels:Bn.minorloglabels,showtickprefix:Bn.showtickprefix,tickprefix:Bn.tickprefix,showticksuffix:Bn.showticksuffix,ticksuffix:Bn.ticksuffix,showexponent:Bn.showexponent,exponentformat:Bn.exponentformat,minexponent:Bn.minexponent,separatethousands:Bn.separatethousands,tickfont:Bn.tickfont,tickangle:Bn.tickangle,tickformat:Bn.tickformat,tickformatstops:Bn.tickformatstops,layer:Bn.layer},"plot","from-root"),qpt={visible:J0({},Bn.visible,{dflt:!0}),type:J0({},Bn.type,{values:["-","linear","log","date","category"]}),autotypenumbers:Bn.autotypenumbers,autorangeoptions:{minallowed:Bn.autorangeoptions.minallowed,maxallowed:Bn.autorangeoptions.maxallowed,clipmin:Bn.autorangeoptions.clipmin,clipmax:Bn.autorangeoptions.clipmax,include:Bn.autorangeoptions.include,editType:"plot"},autorange:J0({},Bn.autorange,{editType:"plot"}),rangemode:{valType:"enumerated",values:["tozero","nonnegative","normal"],dflt:"tozero",editType:"calc"},minallowed:J0({},Bn.minallowed,{editType:"plot"}),maxallowed:J0({},Bn.maxallowed,{editType:"plot"}),range:J0({},Bn.range,{items:[{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}}],editType:"plot"}),categoryorder:Bn.categoryorder,categoryarray:Bn.categoryarray,angle:{valType:"angle",editType:"plot"},autotickangles:Bn.autotickangles,side:{valType:"enumerated",values:["clockwise","counterclockwise"],dflt:"clockwise",editType:"plot"},title:{text:J0({},Bn.title.text,{editType:"plot",dflt:""}),font:J0({},Bn.title.font,{editType:"plot"}),editType:"plot"},hoverformat:Bn.hoverformat,uirevision:{valType:"any",editType:"none"},editType:"calc"};J0(qpt,zpt,Bpt);var Opt={visible:J0({},Bn.visible,{dflt:!0}),type:{valType:"enumerated",values:["-","linear","category"],dflt:"-",editType:"calc",_noTemplating:!0},autotypenumbers:Bn.autotypenumbers,categoryorder:Bn.categoryorder,categoryarray:Bn.categoryarray,thetaunit:{valType:"enumerated",values:["radians","degrees"],dflt:"degrees",editType:"calc"},period:{valType:"number",editType:"calc",min:0},direction:{valType:"enumerated",values:["counterclockwise","clockwise"],dflt:"counterclockwise",editType:"calc"},rotation:{valType:"angle",editType:"calc"},hoverformat:Bn.hoverformat,uirevision:{valType:"any",editType:"none"},editType:"calc"};J0(Opt,zpt,Bpt);Npt.exports={domain:VPr({name:"polar",editType:"plot"}),sector:{valType:"info_array",items:[{valType:"number",editType:"plot"},{valType:"number",editType:"plot"}],dflt:[0,360],editType:"plot"},hole:{valType:"number",min:0,max:1,dflt:0,editType:"plot"},bgcolor:{valType:"color",editType:"plot",dflt:UPr.background},radialaxis:qpt,angularaxis:Opt,gridshape:{valType:"enumerated",values:["circular","linear"],dflt:"circular",editType:"plot"},uirevision:{valType:"any",editType:"none"},editType:"calc"}});var Hpt=W((Zci,Gpt)=>{"use strict";var AN=tt(),GPr=ti(),HPr=Ra(),jPr=Kb(),$Pr=Mc().getSubplotData,WPr=ub(),YPr=Cw(),XPr=Py(),ZPr=Iy(),KPr=rL(),JPr=FM(),QPr=FH(),e9r=Rw(),Vpt=sle(),t9r=tle(),MN=(gN(),Pt(vN)),Upt=MN.axisNames;function r9r(e,t,r,i){var n=r("bgcolor");i.bgColor=GPr.combine(n,i.paper_bgcolor);var a=r("sector");r("hole");var o=$Pr(i.fullData,MN.name,i.id),s=i.layoutOut,l;function u(R,L){return r(l+"."+R,L)}for(var c=0;c{"use strict";var n9r=Mc().getSubplotCalcData,a9r=tt().counterRegex,o9r=ole(),$pt=(gN(),Pt(vN)),Wpt=$pt.attr,U3=$pt.name,jpt=a9r(U3),Ypt={};Ypt[Wpt]={valType:"subplotid",dflt:U3,editType:"calc"};function s9r(e){for(var t=e._fullLayout,r=e.calcdata,i=t._subplots[U3],n=0;n{"use strict";var{hovertemplateAttrs:u9r,texttemplateAttrs:c9r,templatefallbackAttrs:Zpt}=Wa(),EN=an().extendFlat,f9r=C1(),Q0=Ws(),h9r=Ja(),E6=Q0.line;Kpt.exports={mode:Q0.mode,r:{valType:"data_array",editType:"calc+clearAxisTypes"},theta:{valType:"data_array",editType:"calc+clearAxisTypes"},r0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes"},dr:{valType:"number",dflt:1,editType:"calc"},theta0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes"},dtheta:{valType:"number",editType:"calc"},thetaunit:{valType:"enumerated",values:["radians","degrees","gradians"],dflt:"degrees",editType:"calc+clearAxisTypes"},text:Q0.text,texttemplate:c9r({editType:"plot"},{keys:["r","theta","text"]}),texttemplatefallback:Zpt({editType:"plot"}),hovertext:Q0.hovertext,line:{color:E6.color,width:E6.width,dash:E6.dash,backoff:E6.backoff,shape:EN({},E6.shape,{values:["linear","spline"]}),smoothing:E6.smoothing,editType:"calc"},connectgaps:Q0.connectgaps,marker:Q0.marker,cliponaxis:EN({},Q0.cliponaxis,{dflt:!1}),textposition:Q0.textposition,textfont:Q0.textfont,fill:EN({},Q0.fill,{values:["none","toself","tonext"],dflt:"none"}),fillcolor:f9r(),hoverinfo:EN({},h9r.hoverinfo,{flags:["r","theta","text","name"]}),hoveron:Q0.hoveron,hovertemplate:u9r(),hovertemplatefallback:Zpt(),selected:Q0.selected,unselected:Q0.unselected}});var CN=W((Qci,evt)=>{"use strict";var kN=tt(),k6=Wo(),d9r=Dd(),p9r=ev(),Jpt=Jw(),v9r=tv(),g9r=F1(),m9r=(k1(),Pt(E1)).PTS_LINESONLY,y9r=_8();function x9r(e,t,r,i){function n(s,l){return kN.coerce(e,t,y9r,s,l)}var a=Qpt(e,t,i,n);if(!a){t.visible=!1;return}n("thetaunit"),n("mode",a{"use strict";var b9r=tt(),tvt=Yi();rvt.exports=function(t,r,i){var n={},a=i[r.subplot]._subplot,o,s;a?(o=a.radialAxis,s=a.angularAxis):(a=i[r.subplot],o=a.radialaxis,s=a.angularaxis);var l=o.c2l(t.r);n.rLabel=tvt.tickText(o,l,!0).text;var u=s.thetaunit==="degrees"?b9r.rad2deg(t.theta):t.theta;return n.thetaLabel=tvt.tickText(s,u,!0).text,n}});var avt=W((tfi,nvt)=>{"use strict";var ivt=hn(),_9r=(ra(),Pt(ia)).BADNUM,w9r=Yi(),T9r=Fd(),A9r=L1(),M9r=C0(),S9r=Ld().calcMarkerSize;nvt.exports=function(t,r){for(var i=t._fullLayout,n=r.subplot,a=i[n].radialaxis,o=i[n].angularaxis,s=a.makeCalcdata(r,"r"),l=o.makeCalcdata(r,"theta"),u=r._length,c=new Array(u),f=0;f{"use strict";var E9r=n5(),ovt=(ra(),Pt(ia)).BADNUM;svt.exports=function(t,r,i){for(var n=r.layers.frontplot.select("g.scatterlayer"),a=r.xaxis,o=r.yaxis,s={xaxis:a,yaxis:o,plot:r.framework,layerClipId:r._hasClipOnAxisFalse?r.clipIds.forTraces:null},l=r.radialAxis,u=r.angularAxis,c=0;c{"use strict";var k9r=l5();function C9r(e,t,r,i){var n=k9r(e,t,r,i);if(!(!n||n[0].index===!1)){var a=n[0];if(a.index===void 0)return n;var o=e.subplot,s=a.cd[a.index],l=a.trace;if(o.isPtInside(s))return a.xLabelVal=void 0,a.yLabelVal=void 0,uvt(s,l,o,a),a.hovertemplate=l.hovertemplate,n}}function uvt(e,t,r,i){var n=r.radialAxis,a=r.angularAxis;n._hovertitle="r",a._hovertitle="\u03B8";var o={};o[t.subplot]={_subplot:r};var s=t._module.formatLabels(e,t,o);i.rLabel=s.rLabel,i.thetaLabel=s.thetaLabel;var l=e.hi||t.hoverinfo,u=[];function c(h,p){u.push(h._hovertitle+": "+p)}if(!t.hovertemplate){var f=l.split("+");f.indexOf("all")!==-1&&(f=["r","theta","text"]),f.indexOf("r")!==-1&&c(n,i.rLabel),f.indexOf("theta")!==-1&&c(a,i.thetaLabel),f.indexOf("text")!==-1&&i.text&&(u.push(i.text),delete i.text),i.extraText=u.join("
")}}cvt.exports={hoverPoints:C9r,makeHoverPointText:uvt}});var hvt=W((nfi,fvt)=>{"use strict";fvt.exports={moduleType:"trace",name:"scatterpolar",basePlotModule:SN(),categories:["polar","symbols","showLegend","scatter-like"],attributes:_8(),supplyDefaults:CN().supplyDefaults,colorbar:Cc(),formatLabels:DN(),calc:avt(),plot:lvt(),style:lh().style,styleOnSelect:lh().styleOnSelect,hoverPoints:FN().hoverPoints,selectPoints:Rb(),meta:{}}});var pvt=W((afi,dvt)=>{"use strict";dvt.exports=hvt()});var lle=W((lfi,gvt)=>{"use strict";var vvt=_8(),{cliponaxis:ofi,hoveron:sfi}=vvt,D9r=F8(vvt,["cliponaxis","hoveron"]),{connectgaps:F9r,line:{color:L9r,dash:P9r,width:I9r},fill:R9r,fillcolor:z9r,marker:B9r,textfont:q9r,textposition:O9r}=UE();gvt.exports=da(fn({},D9r),{connectgaps:F9r,fill:R9r,fillcolor:z9r,line:{color:L9r,dash:P9r,editType:"calc",width:I9r},marker:B9r,textfont:q9r,textposition:O9r})});var xvt=W((cfi,yvt)=>{"use strict";var mvt=tt(),ule=Wo(),N9r=CN().handleRThetaDefaults,U9r=Dd(),V9r=ev(),G9r=tv(),H9r=F1(),j9r=(k1(),Pt(E1)).PTS_LINESONLY,$9r=lle();yvt.exports=function(t,r,i,n){function a(s,l){return mvt.coerce(t,r,$9r,s,l)}var o=N9r(t,r,n,a);if(!o){r.visible=!1;return}a("thetaunit"),a("mode",o{"use strict";var W9r=DN();bvt.exports=function(t,r,i){var n=t.i;return"r"in t||(t.r=r._r[n]),"theta"in t||(t.theta=r._theta[n]),W9r(t,r,i)}});var Tvt=W((hfi,wvt)=>{"use strict";var Y9r=Fd(),X9r=Ld().calcMarkerSize,Z9r=j_(),K9r=Yi(),J9r=(N_(),Pt(O_)).TOO_MANY_POINTS;wvt.exports=function(t,r){var i=t._fullLayout,n=r.subplot,a=i[n].radialaxis,o=i[n].angularaxis,s=r._r=a.makeCalcdata(r,"r"),l=r._theta=o.makeCalcdata(r,"theta"),u=r._length,c={};u{"use strict";var Q9r=HR(),eIr=FN().makeHoverPointText;function tIr(e,t,r,i){var n=e.cd,a=n[0].t,o=a.r,s=a.theta,l=Q9r.hoverPoints(e,t,r,i);if(!(!l||l[0].index===!1)){var u=l[0];if(u.index===void 0)return l;var c=e.subplot,f=u.cd[u.index],h=u.trace;if(f.r=o[u.index],f.theta=s[u.index],!!c.isPtInside(f))return u.xLabelVal=void 0,u.yLabelVal=void 0,eIr(f,h,c,u),l}}Avt.exports={hoverPoints:tIr}});var Evt=W((pfi,Svt)=>{"use strict";Svt.exports={moduleType:"trace",name:"scatterpolargl",basePlotModule:SN(),categories:["gl","regl","polar","symbols","showLegend","scatter-like"],attributes:lle(),supplyDefaults:xvt(),colorbar:Cc(),formatLabels:_vt(),calc:Tvt(),hoverPoints:Mvt().hoverPoints,selectPoints:Oee(),meta:{}}});var kvt=W((vfi,cle)=>{"use strict";var rIr=YR(),iIr=hn(),nIr=Ute(),aIr=zee(),LN=j_(),PN=tt(),oIr=(N_(),Pt(O_)).TOO_MANY_POINTS,sIr={};cle.exports=function(t,r,i){if(i.length){var n=r.radialAxis,a=r.angularAxis,o=aIr(t,r);return i.forEach(function(s){if(!(!s||!s[0]||!s[0].trace)){var l=s[0],u=l.trace,c=l.t,f=u._length,h=c.r,p=c.theta,d=c.opts,v,m=h.slice(),g=p.slice();for(v=0;v=oIr&&(d.marker.cluster=c.tree),d.marker&&(d.markerSel.positions=d.markerUnsel.positions=d.marker.positions=w),d.line&&w.length>1&&PN.extendFlat(d.line,LN.linePositions(t,u,w)),d.text&&(PN.extendFlat(d.text,{positions:w},LN.textPosition(t,u,d.text,d.marker)),PN.extendFlat(d.textSel,{positions:w},LN.textPosition(t,u,d.text,d.markerSel)),PN.extendFlat(d.textUnsel,{positions:w},LN.textPosition(t,u,d.text,d.markerUnsel))),d.fill&&!o.fill2d&&(o.fill2d=!0),d.marker&&!o.scatter2d&&(o.scatter2d=!0),d.line&&!o.line2d&&(o.line2d=!0),d.text&&!o.glText&&(o.glText=!0),o.lineOptions.push(d.line),o.fillOptions.push(d.fill),o.markerOptions.push(d.marker),o.markerSelectedOptions.push(d.markerSel),o.markerUnselectedOptions.push(d.markerUnsel),o.textOptions.push(d.text),o.textSelectedOptions.push(d.textSel),o.textUnselectedOptions.push(d.textUnsel),o.selectBatch.push([]),o.unselectBatch.push([]),c.x=_,c.y=b,c.rawx=_,c.rawy=b,c.r=h,c.theta=p,c.positions=w,c._scene=o,c.index=o.count,o.count++}}),nIr(t,r,i)}};cle.exports.reglPrecompiled=sIr});var Fvt=W((gfi,Dvt)=>{"use strict";var Cvt=Evt();Cvt.plot=kvt();Dvt.exports=Cvt});var Pvt=W((mfi,Lvt)=>{"use strict";Lvt.exports=Fvt()});var fle=W((yfi,Ivt)=>{"use strict";var{hovertemplateAttrs:lIr,templatefallbackAttrs:uIr}=Wa(),C6=an().extendFlat,Cx=_8(),Dx=R1();Ivt.exports={r:Cx.r,theta:Cx.theta,r0:Cx.r0,dr:Cx.dr,theta0:Cx.theta0,dtheta:Cx.dtheta,thetaunit:Cx.thetaunit,base:C6({},Dx.base,{}),offset:C6({},Dx.offset,{}),width:C6({},Dx.width,{}),text:C6({},Dx.text,{}),hovertext:C6({},Dx.hovertext,{}),marker:cIr(),hoverinfo:Cx.hoverinfo,hovertemplate:lIr(),hovertemplatefallback:uIr(),selected:Dx.selected,unselected:Dx.unselected};function cIr(){var e=C6({},Dx.marker);return delete e.cornerradius,e}});var hle=W((xfi,Rvt)=>{"use strict";Rvt.exports={barmode:{valType:"enumerated",values:["stack","overlay"],dflt:"stack",editType:"calc"},bargap:{valType:"number",dflt:.1,min:0,max:1,editType:"calc"}}});var qvt=W((bfi,Bvt)=>{"use strict";var zvt=tt(),fIr=CN().handleRThetaDefaults,hIr=NL(),dIr=fle();Bvt.exports=function(t,r,i,n){function a(s,l){return zvt.coerce(t,r,dIr,s,l)}var o=fIr(t,r,n,a);if(!o){r.visible=!1;return}a("thetaunit"),a("base"),a("offset"),a("width"),a("text"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback"),hIr(t,r,a,i,n),zvt.coerceSelectionMarkerOpacity(r,a)}});var Nvt=W((_fi,Ovt)=>{"use strict";var pIr=tt(),vIr=hle();Ovt.exports=function(e,t,r){var i={},n;function a(l,u){return pIr.coerce(e[n]||{},t[n],vIr,l,u)}for(var o=0;o{"use strict";var Uvt=Sc().hasColorscale,Vvt=rf(),gIr=tt().isArrayOrTypedArray,mIr=WM(),yIr=Ib().setGroupPositions,xIr=C0(),bIr=xi().traceIs,_Ir=tt().extendFlat;function wIr(e,t){for(var r=e._fullLayout,i=t.subplot,n=r[i].radialaxis,a=r[i].angularaxis,o=n.makeCalcdata(t,"r"),s=a.makeCalcdata(t,"theta"),l=t._length,u=new Array(l),c=o,f=s,h=0;h{"use strict";var Hvt=gi(),IN=hn(),D6=tt(),AIr=Qi(),ple=yN();jvt.exports=function(t,r,i){var n=t._context.staticPlot,a=r.xaxis,o=r.yaxis,s=r.radialAxis,l=r.angularAxis,u=MIr(r),c=r.layers.frontplot.select("g.barlayer");D6.makeTraceGroups(c,i,"trace bars").each(function(){var f=Hvt.select(this),h=D6.ensureSingle(f,"g","points"),p=h.selectAll("g.point").data(D6.identity);p.enter().append("g").style("vector-effect",n?"none":"non-scaling-stroke").style("stroke-miterlimit",2).classed("point",!0),p.exit().remove(),p.each(function(d){var v=Hvt.select(this),m=d.rp0=s.c2p(d.s0),g=d.rp1=s.c2p(d.s1),w=d.thetag0=l.c2g(d.p0),_=d.thetag1=l.c2g(d.p1),b;if(!IN(m)||!IN(g)||!IN(w)||!IN(_)||m===g||w===_)b="M0,0Z";else{var S=s.c2g(d.s1),x=(w+_)/2;d.ct=[a.c2p(S*Math.cos(x)),o.c2p(S*Math.sin(x))],b=u(m,g,w,_)}D6.ensureSingle(v,"path").attr("d",b)}),AIr.setClipUrl(f,r._hasClipOnAxisFalse?r.clipIds.forTraces:null,t)})};function MIr(e){var t=e.cxx,r=e.cyy;return e.vangles?function(i,n,a,o){var s,l;D6.angleDelta(a,o)>0?(s=a,l=o):(s=o,l=a);var u=ple.findEnclosingVertexAngles(s,e.vangles)[0],c=ple.findEnclosingVertexAngles(l,e.vangles)[1],f=[u,(s+l)/2,c];return ple.pathPolygonAnnulus(i,n,s,l,f,t,r)}:function(i,n,a,o){return D6.pathAnnulus(i,n,a,o,t,r)}}});var Yvt=W((Afi,Wvt)=>{"use strict";var SIr=Is(),vle=tt(),EIr=w5().getTraceColor,kIr=vle.fillText,CIr=FN().makeHoverPointText,DIr=yN().isPtInsidePolygon;Wvt.exports=function(t,r,i){var n=t.cd,a=n[0].trace,o=t.subplot,s=o.radialAxis,l=o.angularAxis,u=o.vangles,c=u?DIr:vle.isPtInsideSector,f=t.maxHoverDistance,h=l._period||2*Math.PI,p=Math.abs(s.g2p(Math.sqrt(r*r+i*i))),d=Math.atan2(i,r);s.range[0]>s.range[1]&&(d+=Math.PI);var v=function(_){return c(p,d,[_.rp0,_.rp1],[_.thetag0,_.thetag1],u)?f+Math.min(1,Math.abs(_.thetag1-_.thetag0)/h)-1+(_.rp1-p)/(_.rp1-_.rp0)-1:1/0};if(SIr.getClosest(n,v,t),t.index!==!1){var m=t.index,g=n[m];t.x0=t.x1=g.ct[0],t.y0=t.y1=g.ct[1];var w=vle.extendFlat({},g,{r:g.s,theta:g.p});return kIr(g,a,t),CIr(w,a,o,t),t.hovertemplate=a.hovertemplate,t.color=EIr(a,g),t.xLabelVal=t.yLabelVal=void 0,g.s<0&&(t.idealAlign="left"),[t]}}});var Zvt=W((Mfi,Xvt)=>{"use strict";Xvt.exports={moduleType:"trace",name:"barpolar",basePlotModule:SN(),categories:["polar","bar","showLegend"],attributes:fle(),layoutAttributes:hle(),supplyDefaults:qvt(),supplyLayoutDefaults:Nvt(),calc:dle().calc,crossTraceCalc:dle().crossTraceCalc,plot:$vt(),colorbar:Cc(),formatLabels:DN(),style:zd().style,styleOnSelect:zd().styleOnSelect,hoverPoints:Yvt(),selectPoints:T5(),meta:{}}});var Jvt=W((Sfi,Kvt)=>{"use strict";Kvt.exports=Zvt()});var gle={};Jn(gle,{attr:()=>FIr,axisName2dataArray:()=>IIr,axisNames:()=>PIr,name:()=>LIr});var FIr,LIr,PIr,IIr,mle=Ci(()=>{"use strict";FIr="subplot",LIr="smith",PIr=["realaxis","imaginaryaxis"],IIr={imaginaryaxis:"imag",realaxis:"real"}});var yle=W((Efi,r1t)=>{"use strict";var RIr=Yl(),hl=ac(),zIr=ds().attributes,Fx=tt().extendFlat,Qvt=hs().overrideAll,e1t=Qvt({color:hl.color,showline:Fx({},hl.showline,{dflt:!0}),linecolor:hl.linecolor,linewidth:hl.linewidth,showgrid:Fx({},hl.showgrid,{dflt:!0}),gridcolor:hl.gridcolor,gridwidth:hl.gridwidth,griddash:hl.griddash},"plot","from-root"),t1t=Qvt({ticklen:hl.ticklen,tickwidth:Fx({},hl.tickwidth,{dflt:2}),tickcolor:hl.tickcolor,showticklabels:hl.showticklabels,labelalias:hl.labelalias,showtickprefix:hl.showtickprefix,tickprefix:hl.tickprefix,showticksuffix:hl.showticksuffix,ticksuffix:hl.ticksuffix,tickfont:hl.tickfont,tickformat:hl.tickformat,hoverformat:hl.hoverformat,layer:hl.layer},"plot","from-root"),BIr=Fx({visible:Fx({},hl.visible,{dflt:!0}),tickvals:{dflt:[.2,.5,1,2,5],valType:"data_array",editType:"plot"},tickangle:Fx({},hl.tickangle,{dflt:90}),ticks:{valType:"enumerated",values:["top","bottom",""],editType:"ticks"},side:{valType:"enumerated",values:["top","bottom"],dflt:"top",editType:"plot"},editType:"calc"},e1t,t1t),qIr=Fx({visible:Fx({},hl.visible,{dflt:!0}),tickvals:{valType:"data_array",editType:"plot"},ticks:hl.ticks,editType:"calc"},e1t,t1t);r1t.exports={domain:zIr({name:"smith",editType:"plot"}),bgcolor:{valType:"color",editType:"plot",dflt:RIr.background},realaxis:BIr,imaginaryaxis:qIr,editType:"calc"}});var a1t=W((kfi,n1t)=>{"use strict";var F6=tt(),OIr=ti(),NIr=Ra(),UIr=Kb(),VIr=Mc().getSubplotData,GIr=Iy(),HIr=Py(),jIr=FM(),$Ir=v1(),L6=yle(),xle=(mle(),Pt(gle)),i1t=xle.axisNames,WIr=XIr(function(e){return F6.isTypedArray(e)&&(e=Array.from(e)),e.slice().reverse().map(function(t){return-t}).concat([0]).concat(e)},String);function YIr(e,t,r,i){var n=r("bgcolor");i.bgColor=OIr.combine(n,i.paper_bgcolor);var a=VIr(i.fullData,xle.name,i.id),o=i.layoutOut,s;function l(S,x){return r(s+"."+S,x)}for(var u=0;u{"use strict";var ZIr=Mc().getSubplotCalcData,KIr=tt().counterRegex,JIr=ole(),s1t=(mle(),Pt(gle)),l1t=s1t.attr,V3=s1t.name,o1t=KIr(V3),u1t={};u1t[l1t]={valType:"subplotid",dflt:V3,editType:"calc"};function QIr(e){for(var t=e._fullLayout,r=e.calcdata,i=t._subplots[V3],n=0;n{"use strict";var{hovertemplateAttrs:tRr,texttemplateAttrs:rRr,templatefallbackAttrs:h1t}=Wa(),RN=an().extendFlat,iRr=C1(),ed=Ws(),nRr=Ja(),P6=ed.line;d1t.exports={mode:ed.mode,real:{valType:"data_array",editType:"calc+clearAxisTypes"},imag:{valType:"data_array",editType:"calc+clearAxisTypes"},text:ed.text,texttemplate:rRr({editType:"plot"},{keys:["real","imag","text"]}),texttemplatefallback:h1t({editType:"plot"}),hovertext:ed.hovertext,line:{color:P6.color,width:P6.width,dash:P6.dash,backoff:P6.backoff,shape:RN({},P6.shape,{values:["linear","spline"]}),smoothing:P6.smoothing,editType:"calc"},connectgaps:ed.connectgaps,marker:ed.marker,cliponaxis:RN({},ed.cliponaxis,{dflt:!1}),textposition:ed.textposition,textfont:ed.textfont,fill:RN({},ed.fill,{values:["none","toself","tonext"],dflt:"none"}),fillcolor:iRr(),hoverinfo:RN({},nRr.hoverinfo,{flags:["real","imag","text","name"]}),hoveron:ed.hoveron,hovertemplate:tRr(),hovertemplatefallback:h1t(),selected:ed.selected,unselected:ed.unselected}});var g1t=W((Ffi,v1t)=>{"use strict";var zN=tt(),I6=Wo(),aRr=Dd(),oRr=ev(),p1t=Jw(),sRr=tv(),lRr=F1(),uRr=(k1(),Pt(E1)).PTS_LINESONLY,cRr=ble();v1t.exports=function(t,r,i,n){function a(l,u){return zN.coerce(t,r,cRr,l,u)}var o=fRr(t,r,n,a);if(!o){r.visible=!1;return}a("mode",o{"use strict";var m1t=Yi();y1t.exports=function(t,r,i){var n={},a=i[r.subplot]._subplot;return n.realLabel=m1t.tickText(a.radialAxis,t.real,!0).text,n.imagLabel=m1t.tickText(a.angularAxis,t.imag,!0).text,n}});var w1t=W((Pfi,_1t)=>{"use strict";var b1t=hn(),hRr=(ra(),Pt(ia)).BADNUM,dRr=Fd(),pRr=L1(),vRr=C0(),gRr=Ld().calcMarkerSize;_1t.exports=function(t,r){for(var i=t._fullLayout,n=r.subplot,a=i[n].realaxis,o=i[n].imaginaryaxis,s=a.makeCalcdata(r,"real"),l=o.makeCalcdata(r,"imag"),u=r._length,c=new Array(u),f=0;f{"use strict";var mRr=n5(),T1t=(ra(),Pt(ia)).BADNUM,yRr=nle(),xRr=yRr.smith;A1t.exports=function(t,r,i){for(var n=r.layers.frontplot.select("g.scatterlayer"),a=r.xaxis,o=r.yaxis,s={xaxis:a,yaxis:o,plot:r.framework,layerClipId:r._hasClipOnAxisFalse?r.clipIds.forTraces:null},l=0;l{"use strict";var bRr=l5();function _Rr(e,t,r,i){var n=bRr(e,t,r,i);if(!(!n||n[0].index===!1)){var a=n[0];if(a.index===void 0)return n;var o=e.subplot,s=a.cd[a.index],l=a.trace;if(o.isPtInside(s))return a.xLabelVal=void 0,a.yLabelVal=void 0,S1t(s,l,o,a),a.hovertemplate=l.hovertemplate,n}}function S1t(e,t,r,i){var n=r.radialAxis,a=r.angularAxis;n._hovertitle="real",a._hovertitle="imag";var o={};o[t.subplot]={_subplot:r};var s=t._module.formatLabels(e,t,o);i.realLabel=s.realLabel,i.imagLabel=s.imagLabel;var l=e.hi||t.hoverinfo,u=[];function c(h,p){u.push(h._hovertitle+": "+p)}if(!t.hovertemplate){var f=l.split("+");f.indexOf("all")!==-1&&(f=["real","imag","text"]),f.indexOf("real")!==-1&&c(n,i.realLabel),f.indexOf("imag")!==-1&&c(a,i.imagLabel),f.indexOf("text")!==-1&&i.text&&(u.push(i.text),delete i.text),i.extraText=u.join("
")}}E1t.exports={hoverPoints:_Rr,makeHoverPointText:S1t}});var D1t=W((zfi,C1t)=>{"use strict";C1t.exports={moduleType:"trace",name:"scattersmith",basePlotModule:f1t(),categories:["smith","symbols","showLegend","scatter-like"],attributes:ble(),supplyDefaults:g1t(),colorbar:Cc(),formatLabels:x1t(),calc:w1t(),plot:M1t(),style:lh().style,styleOnSelect:lh().styleOnSelect,hoverPoints:k1t().hoverPoints,selectPoints:Rb(),meta:{}}});var L1t=W((Bfi,F1t)=>{"use strict";F1t.exports=D1t()});var wle=W((qfi,P1t)=>{"use strict";var wRr=Ja(),TRr=Wa().hovertemplateAttrs,BN=Ts().axisHoverFormat,_le=an().extendFlat,ARr=Fo(),MRr=zu().dash,SRr=Xy(),G3=Ws(),ERr={x:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0},x0:G3.x0,dx:G3.dx,y:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0},y0:G3.y0,dy:G3.dy,u:{valType:"data_array",editType:"calc",anim:!0},v:{valType:"data_array",editType:"calc",anim:!0},arrowref:{valType:"enumerated",values:["paper","data"],dflt:"data",editType:"calc"},lengthmode:{valType:"enumerated",values:["scaled","raw"],editType:"calc",dflt:"scaled"},lengthfactor:{valType:"number",min:0,editType:"calc",dflt:1},anchor:{valType:"enumerated",values:["tip","tail","center"],dflt:"tail",editType:"calc"},xhoverformat:BN("x"),yhoverformat:BN("y"),uhoverformat:BN("u","noDate"),vhoverformat:BN("v","noDate"),hoverinfo:_le({},wRr.hoverinfo,{flags:["x","y","u","v","text","name"],dflt:"all"}),hovertemplate:TRr({},{keys:["x","y","u","v","text","name"]}),text:G3.text,textposition:G3.textposition,textfont:G3.textfont,marker:_le({arrowsize:_le({},SRr.arrowsize,{editType:"calc"}),line:{width:{valType:"number",min:0,dflt:2,editType:"style"},dash:MRr,editType:"style"},editType:"calc"},ARr("marker",{showScaleDflt:!0,editTypeOverride:"calc"})),selected:{marker:{color:{valType:"color",editType:"style"},line:{width:{valType:"number",min:0,editType:"style"},editType:"style"},editType:"style"},textfont:{color:{valType:"color",editType:"style"},editType:"style"},editType:"style"},unselected:{marker:{color:{valType:"color",editType:"style"},line:{width:{valType:"number",min:0,editType:"style"},editType:"style"},editType:"style"},textfont:{color:{valType:"color",editType:"style"},editType:"style"},editType:"style"}};P1t.exports=ERr});var R1t=W((Ofi,I1t)=>{"use strict";var w8=tt(),kRr=wle(),CRr=Lb(),DRr=Sc().hasColorscale,FRr=Bu();I1t.exports=function(t,r,i,n){function a(d,v){return w8.coerce(t,r,kRr,d,v)}var o=CRr(t,r,n,a);if(!o){r.visible=!1;return}var s=a("u"),l=a("v");if(!w8.isArrayOrTypedArray(s)||s.length===0){r.u=new Array(o);for(var u=0;u{"use strict";var ry=tt(),R6=Yi(),T8=hn(),z1t=(ra(),Pt(ia)).BADNUM,LRr=rf(),PRr=C0(),IRr=.97;B1t.exports=function(t,r){let i=r._xA=R6.getFromId(t,r.xaxis||"x","x"),n=r._yA=R6.getFromId(t,r.yaxis||"y","y"),a=i.makeCalcdata(r,"x"),o=n.makeCalcdata(r,"y"),s=Math.min(a.length,o.length);r._length=s;let l=new Array(s);var u=1/0,c=-1/0,f=1/0,h=-1/0;let p=r.marker.color,d=ry.isArrayOrTypedArray(p),v=r.u||[],m=r.v||[],{anchor:g,lengthmode:w,arrowref:_}=r,b=g==="tip",S=g==="center";for(var x=1/0,A=-1/0,T=1/0,y=-1/0,E=1/0,M=-1/0,C=1/0,k=-1/0,D=0,F=0;FA&&(A=a[F]),o[F]y&&(y=o[F]),IM&&(M=I),Bk&&(k=B);var O=Math.sqrt(I*I+B*B);if(O>c&&(c=O),Oh&&(h=$))}}else P.x=z1t,P.y=z1t}if(r._maxNorm=c,w==="scaled"||_==="paper"){let H=A-x,j=y-T;var X;H===0&&j===0?X=1:X=(H+j+Math.sqrt((H-j)*(H-j)+4*D*H*j))/(2*(D-1)),X*=IRr,r._scaleFactor=X/r._maxNorm}else r._scaleFactor=1;r._scaleFactor*=r.lengthfactor;let K=new Array(s),G=new Array(s),q=new Array(s),J=new Array(s);for(var N,V,F=0;F{"use strict";O1t.exports=function(t,r){}});var qN=W((Vfi,G1t)=>{"use strict";var Tle=gi(),Mle=tt(),A8=Qi(),RRr=es(),zRr=ti(),BRr=(Ng(),Pt(Og)).DESELECTDIM;function U1t(e,t){var r=t.marker||{},i=RRr.makeColorScaleFuncFromTrace(r);e.style("stroke",function(n){var a=r.color,o;if(Mle.isArrayOrTypedArray(a)&&a.length>n.i&&isFinite(a[n.i]))o=a[n.i];else{var s=t.u&&t.u[n.i]||0,l=t.v&&t.v[n.i]||0;o=Math.sqrt(s*s+l*l)}return n.mcc=i(o),n.mcc})}var Ale=(e,t)=>{if(t._hasColorscale){U1t(e,t);return}let r=(t.marker||{}).color;Mle.isArrayOrTypedArray(r)&&e.style("stroke",function(i){if(r.length>i.i){let n=r[i.i];if(zRr.isValid(n))return i.mcc=n,n}return this.style.stroke})};function qRr(e){var t=Tle.select(e).selectAll("g.trace.quiver");t.each(function(r){V1t(e,r,Tle.select(this))})}function ORr(e,t,r){V1t(e,t,r)}function V1t(e,t,r){var i=t[0].trace,n=i.marker||{},a=n.line||{},o=Mle.isArrayOrTypedArray(n.color)?void 0:n.color;if(r)if(i.selectedpoints){var s=(i.selected||{}).marker||{},l=(i.unselected||{}).marker||{},u=s.line||{},c=l.line||{};r.selectAll("path.js-line").each(function(h){var p=Tle.select(this),d=!h.selected,v=d?l.color:s.color,m=d?c.width!==void 0?c.width:a.width:u.width!==void 0?u.width:a.width;v?(A8.lineGroupStyle(p,m,v,a.dash),p.style("stroke-opacity",1)):(A8.lineGroupStyle(p,m,o,a.dash),Ale(p,i),p.style("stroke-opacity",d?BRr:1))}),A8.selectedTextStyle(r.selectAll("text"),i)}else{var f=r.selectAll("path.js-line");f.call(A8.lineGroupStyle,a.width,o,a.dash),Ale(f,i),f.style("stroke-opacity",1),A8.textPointStyle(r.selectAll("text"),i,e)}}G1t.exports={style:qRr,styleOnSelect:ORr,colorscaleStroke:U1t,strokeArrowColors:Ale}});var $1t=W((Gfi,j1t)=>{"use strict";var Ov=gi(),NRr=tt(),M8=Qi(),{strokeArrowColors:URr}=qN(),ON=Math.PI/12,VRr=5.8,GRr=1.5,HRr=.7;j1t.exports=function(t,r,i,n,a,o){var s,l,u=!a,c=!!a&&a.duration>0;if(s=n.selectAll("g.trace").data(i,function(h){return h[0].trace.uid}),s.enter().append("g").attr("class",function(h){return"trace quiver trace"+h[0].trace.uid}).style("stroke-miterlimit",2),s.order(),c){o&&(l=o());var f=Ov.transition().duration(a.duration).ease(a.easing).each("end",function(){l&&l()}).each("interrupt",function(){l&&l()});f.each(function(){n.selectAll("g.trace").each(function(h,p){H1t(t,p,r,h,i,this,a)})})}else s.each(function(h,p){H1t(t,p,r,h,i,this,a)});u&&s.exit().remove()};function H1t(e,t,r,i,n,a,o){var s=i[0].trace,l=r.xaxis,u=r.yaxis;i[0][r.isRangePlot?"nodeRangePlot3":"node3"]=Ov.select(a);var c=Ov.select(a).selectAll("g.lines").data([i]);c.enter().append("g").classed("lines",!0),M8.setClipUrl(c,r.layerClipId,e);var f=c.selectAll("path.js-line").data(i);f.enter().append("path").classed("js-line",!0).style("vector-effect","non-scaling-stroke"),f.exit().remove();let{anchor:h,maxNorm:p=0,arrowref:d}=s,v=d==="paper"?s._scaleFactor*Math.sqrt(Math.abs(l._m*u._m)):s._scaleFactor,m=s.marker.arrowsize;f.each(function(A){let T=Ov.select(this);if(A.x===void 0||A.y===void 0){T.attr("d",null);return}let y=(d==="paper"?A._u*Math.sign(l._m):Ov.round(l._m*A._u))*v,E=(d==="paper"?A._v*Math.sign(u._m):Ov.round(u._m*A._v))*v,M=(s._input.marker||{}).arrowsize!==void 0;var C,k,D,F;h==="tip"?(C=l.c2p(A.x)-y,D=u.c2p(A.y)-E,k=l.c2p(A.x),F=u.c2p(A.y)):h==="center"?(C=l.c2p(A.x)-y/2,D=u.c2p(A.y)-E/2,k=l.c2p(A.x)+y/2,F=u.c2p(A.y)+E/2):(C=l.c2p(A.x),D=u.c2p(A.y),k=l.c2p(A.x)+y,F=u.c2p(A.y)+E),A._px0=C,A._py0=D,A._px1=k,A._py1=F;var P=s.marker.line.width;M||(P=Math.max(P,GRr));let R=Math.sqrt((k-C)*(k-C)+(F-D)*(F-D)),L=HRr*R,I=Math.min(VRr*m*P,L),B=Math.atan2(F-D,k-C),O=k-I*Math.cos(B-ON),$=F-I*Math.sin(B-ON),X=k-I*Math.cos(B+ON),K=F-I*Math.sin(B+ON),G="M"+C+","+D+"L"+k+","+F+"L"+O+","+$+"L"+k+","+F+"L"+X+","+K;T.attr("d",G)});var g=s.marker||{},w=g.line||{};let _=NRr.isArrayOrTypedArray(g.color)?void 0:g.color;M8.lineGroupStyle(f,w.width,_,w.dash),URr(f,s);var b=Ov.select(a).selectAll("g.text").data([i]);b.enter().append("g").classed("text",!0),M8.setClipUrl(b,r.layerClipId,e);var S=b.selectAll("g.textpoint").data(i);if(S.enter().append("g").classed("textpoint",!0).append("text"),S.exit().remove(),S.each(function(A){var T=Ov.select(this),y=M8.translatePoint(A,T.select("text"),l,u);y||T.remove()}),S.selectAll("text").call(M8.textPointStyle,s,e).each(function(A){var T=l.c2p(A.x),y=u.c2p(A.y);Ov.select(this).selectAll("tspan.line").each(function(){Ov.select(this).attr({x:T,y})})}),o&&o.duration>0){var x=Ov.transition().duration(o.duration).ease(o.easing);f.transition(x).style("opacity",1)}}});var X1t=W((Hfi,Y1t)=>{"use strict";var W1t=tt(),jRr=Is(),$Rr=s5();function WRr(e,t,r,i,n,a){let o=n-r,s=a-i,l=o*o+s*s;if(!l)return Math.sqrt((e-r)*(e-r)+(t-i)*(t-i));var u=((e-r)*o+(t-i)*s)/l;u=Math.max(0,Math.min(1,u));let c=r+u*o,f=i+u*s;return Math.sqrt((e-c)*(e-c)+(t-f)*(t-f))}Y1t.exports=function(t,r,i,n){var a=t.cd,o=a[0].trace,s=t.xa,l=t.ya,u=s.c2p(r),c=l.c2p(i),f=function(_){return _._px0===void 0?1/0:WRr(u,c,_._px0,_._py0,_._px1,_._py1)};if(jRr.getClosest(a,f,t),t.index!==!1){var h=a[t.index],p=s.c2p(h.x,!0),d=l.c2p(h.y,!0),v=Math.sqrt((u-p)*(u-p)+(c-d)*(c-d));t.index=h.i;var m=o.u?o.u[h.i]:0,g=o.v?o.v[h.i]:0,w="u: "+m+", v: "+g;return W1t.extendFlat(t,{color:$Rr(o,h),x0:p-3,x1:p+3,xLabelVal:h.x,y0:d-3,y1:d+3,yLabelVal:h.y,uLabelVal:m,vLabelVal:g,extraText:w,spikeDistance:v,hovertemplate:o.hovertemplate}),W1t.fillText(h,o,t),[t]}}});var J1t=W((jfi,K1t)=>{"use strict";var NN=Yi(),Z1t=tt();K1t.exports=function(t,r,i){var n={},a={_fullLayout:i},o=NN.getFromTrace(a,r,"x"),s=NN.getFromTrace(a,r,"y"),l=t.x,u=t.y;n.xLabel=NN.tickText(o,o.c2l(l),!0).text,n.yLabel=NN.tickText(s,s.c2l(u),!0).text;var c=r.u?r.u[t.i]:0,f=r.v?r.v[t.i]:0,h=r.uhoverformat,p=r.vhoverformat;return n.uLabel=h?Z1t.numberFormat(h)(c):String(c),n.vLabel=p?Z1t.numberFormat(p)(f):String(f),n}});var egt=W(($fi,Q1t)=>{"use strict";Q1t.exports=function(t,r,i,n,a){return t.x=r.x,t.y=r.y,t.u=i.u?i.u[a]:void 0,t.v=i.v?i.v[a]:void 0,t}});var rgt=W((Wfi,tgt)=>{"use strict";tgt.exports={moduleType:"trace",name:"quiver",basePlotModule:xl(),categories:["cartesian","svg","showLegend","scatter-like","zoomScale"],attributes:wle(),supplyDefaults:R1t(),calc:q1t(),crossTraceCalc:N1t(),plot:$1t(),style:qN().style,styleOnSelect:qN().styleOnSelect,hoverPoints:X1t(),formatLabels:J1t(),eventData:egt(),selectPoints:Rb(),colorbar:Cc(),animatable:!0,meta:{}}});var ngt=W((Yfi,igt)=>{"use strict";igt.exports=rgt()});var gf=W((Xfi,ogt)=>{var VN=Hu();function agt(){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={}}VN(agt.prototype,{instance:function(e,t){e=(e||"gregorian").toLowerCase(),t=t||"";var r=this._localCals[e+"-"+t];if(!r&&this.calendars[e]&&(r=new this.calendars[e](t),this._localCals[e+"-"+t]=r),!r)throw(this.local.invalidCalendar||this.regionalOptions[""].invalidCalendar).replace(/\{0\}/,e);return r},newDate:function(e,t,r,i,n){return i=(e!=null&&e.year?e.calendar():typeof i=="string"?this.instance(i,n):i)||this.instance(),i.newDate(e,t,r)},substituteDigits:function(e){return function(t){return(t+"").replace(/[0-9]/g,function(r){return e[r]})}},substituteChineseDigits:function(e,t){return function(r){for(var i="",n=0;r>0;){var a=r%10;i=(a===0?"":e[a]+t[n])+i,n++,r=Math.floor(r/10)}return i.indexOf(e[1]+t[1])===0&&(i=i.substr(1)),i||e[0]}}});function Sle(e,t,r,i){if(this._calendar=e,this._year=t,this._month=r,this._day=i,this._calendar._validateLevel===0&&!this._calendar.isValid(this._year,this._month,this._day))throw(ga.local.invalidDate||ga.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name)}function UN(e,t){return e=""+e,"000000".substring(0,t-e.length)+e}VN(Sle.prototype,{newDate:function(e,t,r){return this._calendar.newDate(e==null?this:e,t,r)},year:function(e){return arguments.length===0?this._year:this.set(e,"y")},month:function(e){return arguments.length===0?this._month:this.set(e,"m")},day:function(e){return arguments.length===0?this._day:this.set(e,"d")},date:function(e,t,r){if(!this._calendar.isValid(e,t,r))throw(ga.local.invalidDate||ga.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name);return this._year=e,this._month=t,this._day=r,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(e,t){return this._calendar.add(this,e,t)},set:function(e,t){return this._calendar.set(this,e,t)},compareTo:function(e){if(this._calendar.name!==e._calendar.name)throw(ga.local.differentCalendars||ga.regionalOptions[""].differentCalendars).replace(/\{0\}/,this._calendar.local.name).replace(/\{1\}/,e._calendar.local.name);var t=this._year!==e._year?this._year-e._year:this._month!==e._month?this.monthOfYear()-e.monthOfYear():this._day-e._day;return t===0?0:t<0?-1:1},calendar:function(){return this._calendar},toJD:function(){return this._calendar.toJD(this)},fromJD:function(e){return this._calendar.fromJD(e)},toJSDate:function(){return this._calendar.toJSDate(this)},fromJSDate:function(e){return this._calendar.fromJSDate(e)},toString:function(){return(this.year()<0?"-":"")+UN(Math.abs(this.year()),4)+"-"+UN(this.month(),2)+"-"+UN(this.day(),2)}});function Ele(){this.shortYearCutoff="+10"}VN(Ele.prototype,{_validateLevel:0,newDate:function(e,t,r){return e==null?this.today():(e.year&&(this._validate(e,t,r,ga.local.invalidDate||ga.regionalOptions[""].invalidDate),r=e.day(),t=e.month(),e=e.year()),new Sle(this,e,t,r))},today:function(){return this.fromJSDate(new Date)},epoch:function(e){var t=this._validate(e,this.minMonth,this.minDay,ga.local.invalidYear||ga.regionalOptions[""].invalidYear);return t.year()<0?this.local.epochs[0]:this.local.epochs[1]},formatYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,ga.local.invalidYear||ga.regionalOptions[""].invalidYear);return(t.year()<0?"-":"")+UN(Math.abs(t.year()),4)},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,ga.local.invalidYear||ga.regionalOptions[""].invalidYear),12},monthOfYear:function(e,t){var r=this._validate(e,t,this.minDay,ga.local.invalidMonth||ga.regionalOptions[""].invalidMonth);return(r.month()+this.monthsInYear(r)-this.firstMonth)%this.monthsInYear(r)+this.minMonth},fromMonthOfYear:function(e,t){var r=(t+this.firstMonth-2*this.minMonth)%this.monthsInYear(e)+this.minMonth;return this._validate(e,r,this.minDay,ga.local.invalidMonth||ga.regionalOptions[""].invalidMonth),r},daysInYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,ga.local.invalidYear||ga.regionalOptions[""].invalidYear);return this.leapYear(t)?366:365},dayOfYear:function(e,t,r){var i=this._validate(e,t,r,ga.local.invalidDate||ga.regionalOptions[""].invalidDate);return i.toJD()-this.newDate(i.year(),this.fromMonthOfYear(i.year(),this.minMonth),this.minDay).toJD()+1},daysInWeek:function(){return 7},dayOfWeek:function(e,t,r){var i=this._validate(e,t,r,ga.local.invalidDate||ga.regionalOptions[""].invalidDate);return(Math.floor(this.toJD(i))+2)%this.daysInWeek()},extraInfo:function(e,t,r){return this._validate(e,t,r,ga.local.invalidDate||ga.regionalOptions[""].invalidDate),{}},add:function(e,t,r){return this._validate(e,this.minMonth,this.minDay,ga.local.invalidDate||ga.regionalOptions[""].invalidDate),this._correctAdd(e,this._add(e,t,r),t,r)},_add:function(e,t,r){if(this._validateLevel++,r==="d"||r==="w"){var i=e.toJD()+t*(r==="w"?this.daysInWeek():1),n=e.calendar().fromJD(i);return this._validateLevel--,[n.year(),n.month(),n.day()]}try{var a=e.year()+(r==="y"?t:0),o=e.monthOfYear()+(r==="m"?t:0),n=e.day(),s=function(c){for(;of-1+c.minMonth;)a++,o-=f,f=c.monthsInYear(a)};r==="y"?(e.month()!==this.fromMonthOfYear(a,o)&&(o=this.newDate(a,e.month(),this.minDay).monthOfYear()),o=Math.min(o,this.monthsInYear(a)),n=Math.min(n,this.daysInMonth(a,this.fromMonthOfYear(a,o)))):r==="m"&&(s(this),n=Math.min(n,this.daysInMonth(a,this.fromMonthOfYear(a,o))));var l=[a,this.fromMonthOfYear(a,o),n];return this._validateLevel--,l}catch(u){throw this._validateLevel--,u}},_correctAdd:function(e,t,r,i){if(!this.hasYearZero&&(i==="y"||i==="m")&&(t[0]===0||e.year()>0!=t[0]>0)){var n={y:[1,1,"y"],m:[1,this.monthsInYear(-1),"m"],w:[this.daysInWeek(),this.daysInYear(-1),"d"],d:[1,this.daysInYear(-1),"d"]}[i],a=r<0?-1:1;t=this._add(e,r*n[0]+a*n[1],n[2])}return e.date(t[0],t[1],t[2])},set:function(e,t,r){this._validate(e,this.minMonth,this.minDay,ga.local.invalidDate||ga.regionalOptions[""].invalidDate);var i=r==="y"?t:e.year(),n=r==="m"?t:e.month(),a=r==="d"?t:e.day();return(r==="y"||r==="m")&&(a=Math.min(a,this.daysInMonth(i,n))),e.date(i,n,a)},isValid:function(e,t,r){this._validateLevel++;var i=this.hasYearZero||e!==0;if(i){var n=this.newDate(e,t,this.minDay);i=t>=this.minMonth&&t-this.minMonth=this.minDay&&r-this.minDay13.5?13:1),u=n-(l>2.5?4716:4715);return u<=0&&u--,this.newDate(u,l,s)},toJSDate:function(e,t,r){var i=this._validate(e,t,r,ga.local.invalidDate||ga.regionalOptions[""].invalidDate),n=new Date(i.year(),i.month()-1,i.day());return n.setHours(0),n.setMinutes(0),n.setSeconds(0),n.setMilliseconds(0),n.setHours(n.getHours()>12?n.getHours()+2:0),n},fromJSDate:function(e){return this.newDate(e.getFullYear(),e.getMonth()+1,e.getDate())}});var ga=ogt.exports=new agt;ga.cdate=Sle;ga.baseCalendar=Ele;ga.calendars.gregorian=kle});var sgt=W(()=>{var Cle=Hu(),mc=gf();Cle(mc.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"});mc.local=mc.regionalOptions[""];Cle(mc.cdate.prototype,{formatDate:function(e,t){return typeof e!="string"&&(t=e,e=""),this._calendar.formatDate(e||"",this,t)}});Cle(mc.baseCalendar.prototype,{UNIX_EPOCH:mc.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:1440*60,TICKS_EPOCH:mc.instance().jdEpoch,TICKS_PER_DAY:1440*60*1e7,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(e,t,r){if(typeof e!="string"&&(r=t,t=e,e=""),!t)return"";if(t.calendar()!==this)throw mc.local.invalidFormat||mc.regionalOptions[""].invalidFormat;e=e||this.local.dateFormat,r=r||{};for(var i=r.dayNamesShort||this.local.dayNamesShort,n=r.dayNames||this.local.dayNames,a=r.monthNumbers||this.local.monthNumbers,o=r.monthNamesShort||this.local.monthNamesShort,s=r.monthNames||this.local.monthNames,l=r.calculateWeek||this.local.calculateWeek,u=function(b,S){for(var x=1;_+x1},c=function(b,S,x,A){var T=""+S;if(u(b,A))for(;T.length1},w=function(C,k){var D=g(C,k),F=[2,3,D?4:2,D?4:2,10,11,20]["oyYJ@!".indexOf(C)+1],P=new RegExp("^-?\\d{1,"+F+"}"),R=t.substring(T).match(P);if(!R)throw(mc.local.missingNumberAt||mc.regionalOptions[""].missingNumberAt).replace(/\{0\}/,T);return T+=R[0].length,parseInt(R[0],10)},_=this,b=function(){if(typeof s=="function"){g("m");var C=s.call(_,t.substring(T));return T+=C.length,C}return w("m")},S=function(C,k,D,F){for(var P=g(C,F)?D:k,R=0;R-1){h=1,p=d;for(var M=this.daysInMonth(f,h);p>M;M=this.daysInMonth(f,h))h++,p-=M}return c>-1?this.fromJD(c):this.newDate(f,h,p)},determineDate:function(e,t,r,i,n){r&&typeof r!="object"&&(n=i,i=r,r=null),typeof i!="string"&&(n=i,i="");var a=this,o=function(s){try{return a.parseDate(i,s,n)}catch(f){}s=s.toLowerCase();for(var l=(s.match(/^c/)&&r?r.newDate():null)||a.today(),u=/([+-]?[0-9]+)\s*(d|w|m|y)?/g,c=u.exec(s);c;)l.add(parseInt(c[1],10),c[2]||"d"),c=u.exec(s);return l};return t=t?t.newDate():null,e=e==null?t:typeof e=="string"?o(e):typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?t:a.today().add(e,"d"):a.newDate(e),e}})});var lgt=W(()=>{var Lx=gf(),YRr=Hu(),Dle=Lx.instance();function GN(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}GN.prototype=new Lx.baseCalendar;YRr(GN.prototype,{name:"Chinese",jdEpoch:17214255e-1,hasYearZero:!1,minMonth:0,firstMonth:0,minDay:1,regionalOptions:{"":{name:"Chinese",epochs:["BEC","EC"],monthNumbers:function(e,t){if(typeof e=="string"){var r=e.match(ZRr);return r?r[0]:""}var i=this._validateYear(e),n=e.month(),a=""+this.toChineseMonth(i,n);return t&&a.length<2&&(a="0"+a),this.isIntercalaryMonth(i,n)&&(a+="i"),a},monthNames:function(e){if(typeof e=="string"){var t=e.match(KRr);return t?t[0]:""}var r=this._validateYear(e),i=e.month(),n=this.toChineseMonth(r,i),a=["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"][n-1];return this.isIntercalaryMonth(r,i)&&(a="\u95F0"+a),a},monthNamesShort:function(e){if(typeof e=="string"){var t=e.match(JRr);return t?t[0]:""}var r=this._validateYear(e),i=e.month(),n=this.toChineseMonth(r,i),a=["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"][n-1];return this.isIntercalaryMonth(r,i)&&(a="\u95F0"+a),a},parseMonth:function(e,t){e=this._validateYear(e);var r=parseInt(t),i;if(isNaN(r))t[0]==="\u95F0"&&(i=!0,t=t.substring(1)),t[t.length-1]==="\u6708"&&(t=t.substring(0,t.length-1)),r=1+["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"].indexOf(t);else{var n=t[t.length-1];i=n==="i"||n==="I"}var a=this.toMonthIndex(e,r,i);return a},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(e,t){if(e.year&&(e=e.year()),typeof e!="number"||e<1888||e>2111)throw t.replace(/\{0\}/,this.local.name);return e},toMonthIndex:function(e,t,r){var i=this.intercalaryMonth(e),n=r&&t!==i;if(n||t<1||t>12)throw Lx.local.invalidMonth.replace(/\{0\}/,this.local.name);var a;return i?!r&&t<=i?a=t-1:a=t:a=t-1,a},toChineseMonth:function(e,t){e.year&&(e=e.year(),t=e.month());var r=this.intercalaryMonth(e),i=r?12:11;if(t<0||t>i)throw Lx.local.invalidMonth.replace(/\{0\}/,this.local.name);var n;return r?t>13;return r},isIntercalaryMonth:function(e,t){e.year&&(e=e.year(),t=e.month());var r=this.intercalaryMonth(e);return!!r&&r===t},leapYear:function(e){return this.intercalaryMonth(e)!==0},weekOfYear:function(e,t,r){var i=this._validateYear(e,Lx.local.invalidyear),n=Ix[i-Ix[0]],a=n>>9&4095,o=n>>5&15,s=n&31,l;l=Dle.newDate(a,o,s),l.add(4-(l.dayOfWeek()||7),"d");var u=this.toJD(e,t,r)-l.toJD();return 1+Math.floor(u/7)},monthsInYear:function(e){return this.leapYear(e)?13:12},daysInMonth:function(e,t){e.year&&(t=e.month(),e=e.year()),e=this._validateYear(e);var r=Px[e-Px[0]],i=r>>13,n=i?12:11;if(t>n)throw Lx.local.invalidMonth.replace(/\{0\}/,this.local.name);var a=r&1<<12-t?30:29;return a},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(e,t,r){var i=this._validate(e,a,r,Lx.local.invalidDate);e=this._validateYear(i.year()),t=i.month(),r=i.day();var n=this.isIntercalaryMonth(e,t),a=this.toChineseMonth(e,t),o=ezr(e,a,r,n);return Dle.toJD(o.year,o.month,o.day)},fromJD:function(e){var t=Dle.fromJD(e),r=QRr(t.year(),t.month(),t.day()),i=this.toMonthIndex(r.year,r.month,r.isIntercalary);return this.newDate(r.year,i,r.day)},fromString:function(e){var t=e.match(XRr),r=this._validateYear(+t[1]),i=+t[2],n=!!t[3],a=this.toMonthIndex(r,i,n),o=+t[4];return this.newDate(r,a,o)},add:function(e,t,r){var i=e.year(),n=e.month(),a=this.isIntercalaryMonth(i,n),o=this.toChineseMonth(i,n),s=Object.getPrototypeOf(GN.prototype).add.call(this,e,t,r);if(r==="y"){var l=s.year(),u=s.month(),c=this.isIntercalaryMonth(l,o),f=a&&c?this.toMonthIndex(l,o,!0):this.toMonthIndex(l,o,!1);f!==u&&s.month(f)}return s}});var XRr=/^\s*(-?\d\d\d\d|\d\d)[-/](\d?\d)([iI]?)[-/](\d?\d)/m,ZRr=/^\d?\d[iI]?/m,KRr=/^闰?十?[一二三四五六七八九]?月/m,JRr=/^闰?十?[一二三四五六七八九]?/m;Lx.calendars.chinese=GN;var Px=[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],Ix=[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 QRr(e,t,r,i){var n,a;if(typeof e=="object")n=e,a=t||{};else{var o=typeof e=="number"&&e>=1888&&e<=2111;if(!o)throw new Error("Solar year outside range 1888-2111");var s=typeof t=="number"&&t>=1&&t<=12;if(!s)throw new Error("Solar month outside range 1 - 12");var l=typeof r=="number"&&r>=1&&r<=31;if(!l)throw new Error("Solar day outside range 1 - 31");n={year:e,month:t,day:r},a=i||{}}var u=Ix[n.year-Ix[0]],c=n.year<<9|n.month<<5|n.day;a.year=c>=u?n.year:n.year-1,u=Ix[a.year-Ix[0]];var f=u>>9&4095,h=u>>5&15,p=u&31,d,v=new Date(f,h-1,p),m=new Date(n.year,n.month-1,n.day);d=Math.round((m-v)/(24*3600*1e3));var g=Px[a.year-Px[0]],w;for(w=0;w<13;w++){var _=g&1<<12-w?30:29;if(d<_)break;d-=_}var b=g>>13;return!b||w=1888&&e<=2111;if(!s)throw new Error("Lunar year outside range 1888-2111");var l=typeof t=="number"&&t>=1&&t<=12;if(!l)throw new Error("Lunar month outside range 1 - 12");var u=typeof r=="number"&&r>=1&&r<=30;if(!u)throw new Error("Lunar day outside range 1 - 30");var c;typeof i=="object"?(c=!1,a=i):(c=!!i,a=n||{}),o={year:e,month:t,day:r,isIntercalary:c}}var f;f=o.day-1;var h=Px[o.year-Px[0]],p=h>>13,d;p&&(o.month>p||o.isIntercalary)?d=o.month:d=o.month-1;for(var v=0;v>9&4095,_=g>>5&15,b=g&31,S=new Date(w,_-1,b+f);return a.year=S.getFullYear(),a.month=1+S.getMonth(),a.day=S.getDate(),a}});var ugt=W(()=>{var H3=gf(),tzr=Hu();function Fle(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}Fle.prototype=new H3.baseCalendar;tzr(Fle.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(r){var t=this._validate(r,this.minMonth,this.minDay,H3.local.invalidYear),r=t.year()+(t.year()<0?1:0);return r%4===3||r%4===-1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,H3.local.invalidYear||H3.regionalOptions[""].invalidYear),13},weekOfYear:function(e,t,r){var i=this.newDate(e,t,r);return i.add(-i.dayOfWeek(),"d"),Math.floor((i.dayOfYear()-1)/7)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,H3.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===13&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(e,t,r){var i=this._validate(e,t,r,H3.local.invalidDate);return e=i.year(),e<0&&e++,i.day()+(i.month()-1)*30+(e-1)*365+Math.floor(e/4)+this.jdEpoch-1},fromJD:function(e){var t=Math.floor(e)+.5-this.jdEpoch,r=Math.floor((t-Math.floor((t+366)/1461))/365)+1;r<=0&&r--,t=Math.floor(e)+.5-this.newDate(r,1,1).toJD();var i=Math.floor(t/30)+1,n=t-(i-1)*30+1;return this.newDate(r,i,n)}});H3.calendars.coptic=Fle});var cgt=W(()=>{var iy=gf(),rzr=Hu();function Lle(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}Lle.prototype=new iy.baseCalendar;rzr(Lle.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(e){return this._validate(e,this.minMonth,this.minDay,iy.local.invalidYear),!1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,iy.local.invalidYear),13},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,iy.local.invalidYear),400},weekOfYear:function(e,t,r){var i=this.newDate(e,t,r);return i.add(-i.dayOfWeek(),"d"),Math.floor((i.dayOfYear()-1)/8)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,iy.local.invalidMonth);return this.daysPerMonth[r.month()-1]},daysInWeek:function(){return 8},dayOfWeek:function(e,t,r){var i=this._validate(e,t,r,iy.local.invalidDate);return(i.day()+1)%8},weekDay:function(e,t,r){var i=this.dayOfWeek(e,t,r);return i>=2&&i<=6},extraInfo:function(e,t,r){var i=this._validate(e,t,r,iy.local.invalidDate);return{century:izr[Math.floor((i.year()-1)/100)+1]||""}},toJD:function(e,t,r){var i=this._validate(e,t,r,iy.local.invalidDate);return e=i.year()+(i.year()<0?1:0),t=i.month(),r=i.day(),r+(t>1?16:0)+(t>2?(t-2)*32:0)+(e-1)*400+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e+.5)-Math.floor(this.jdEpoch)-1;var t=Math.floor(e/400)+1;e-=(t-1)*400,e+=e>15?16:0;var r=Math.floor(e/32)+1,i=e-(r-1)*32+1;return this.newDate(t<=0?t-1:t,r,i)}});var izr={20:"Fruitbat",21:"Anchovy"};iy.calendars.discworld=Lle});var fgt=W(()=>{var j3=gf(),nzr=Hu();function Ple(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}Ple.prototype=new j3.baseCalendar;nzr(Ple.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(r){var t=this._validate(r,this.minMonth,this.minDay,j3.local.invalidYear),r=t.year()+(t.year()<0?1:0);return r%4===3||r%4===-1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,j3.local.invalidYear||j3.regionalOptions[""].invalidYear),13},weekOfYear:function(e,t,r){var i=this.newDate(e,t,r);return i.add(-i.dayOfWeek(),"d"),Math.floor((i.dayOfYear()-1)/7)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,j3.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===13&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(e,t,r){var i=this._validate(e,t,r,j3.local.invalidDate);return e=i.year(),e<0&&e++,i.day()+(i.month()-1)*30+(e-1)*365+Math.floor(e/4)+this.jdEpoch-1},fromJD:function(e){var t=Math.floor(e)+.5-this.jdEpoch,r=Math.floor((t-Math.floor((t+366)/1461))/365)+1;r<=0&&r--,t=Math.floor(e)+.5-this.newDate(r,1,1).toJD();var i=Math.floor(t/30)+1,n=t-(i-1)*30+1;return this.newDate(r,i,n)}});j3.calendars.ethiopian=Ple});var hgt=W(()=>{var Rx=gf(),azr=Hu();function Ile(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}Ile.prototype=new Rx.baseCalendar;azr(Ile.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(e){var t=this._validate(e,this.minMonth,this.minDay,Rx.local.invalidYear);return this._leapYear(t.year())},_leapYear:function(e){return e=e<0?e+1:e,HN(e*7+1,19)<7},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Rx.local.invalidYear),this._leapYear(e.year?e.year():e)?13:12},weekOfYear:function(e,t,r){var i=this.newDate(e,t,r);return i.add(-i.dayOfWeek(),"d"),Math.floor((i.dayOfYear()-1)/7)+1},daysInYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,Rx.local.invalidYear);return e=t.year(),this.toJD(e===-1?1:e+1,7,1)-this.toJD(e,7,1)},daysInMonth:function(e,t){return e.year&&(t=e.month(),e=e.year()),this._validate(e,t,this.minDay,Rx.local.invalidMonth),t===12&&this.leapYear(e)||t===8&&HN(this.daysInYear(e),10)===5?30:t===9&&HN(this.daysInYear(e),10)===3?29:this.daysPerMonth[t-1]},weekDay:function(e,t,r){return this.dayOfWeek(e,t,r)!==6},extraInfo:function(e,t,r){var i=this._validate(e,t,r,Rx.local.invalidDate);return{yearType:(this.leapYear(i)?"embolismic":"common")+" "+["deficient","regular","complete"][this.daysInYear(i)%10-3]}},toJD:function(e,t,r){var i=this._validate(e,t,r,Rx.local.invalidDate);e=i.year(),t=i.month(),r=i.day();var n=e<=0?e+1:e,a=this.jdEpoch+this._delay1(n)+this._delay2(n)+r+1;if(t<7){for(var o=7;o<=this.monthsInYear(e);o++)a+=this.daysInMonth(e,o);for(var o=1;o=this.toJD(t===-1?1:t+1,7,1);)t++;for(var r=ethis.toJD(t,r,this.daysInMonth(t,r));)r++;var i=e-this.toJD(t,r,1)+1;return this.newDate(t,r,i)}});function HN(e,t){return e-t*Math.floor(e/t)}Rx.calendars.hebrew=Ile});var dgt=W(()=>{var S8=gf(),ozr=Hu();function Rle(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}Rle.prototype=new S8.baseCalendar;ozr(Rle.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\u012Bs","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(e){var t=this._validate(e,this.minMonth,this.minDay,S8.local.invalidYear);return(t.year()*11+14)%30<11},weekOfYear:function(e,t,r){var i=this.newDate(e,t,r);return i.add(-i.dayOfWeek(),"d"),Math.floor((i.dayOfYear()-1)/7)+1},daysInYear:function(e){return this.leapYear(e)?355:354},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,S8.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===12&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return this.dayOfWeek(e,t,r)!==5},toJD:function(e,t,r){var i=this._validate(e,t,r,S8.local.invalidDate);return e=i.year(),t=i.month(),r=i.day(),e=e<=0?e+1:e,r+Math.ceil(29.5*(t-1))+(e-1)*354+Math.floor((3+11*e)/30)+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e)+.5;var t=Math.floor((30*(e-this.jdEpoch)+10646)/10631);t=t<=0?t-1:t;var r=Math.min(12,Math.ceil((e-29-this.toJD(t,1,1))/29.5)+1),i=e-this.toJD(t,r,1)+1;return this.newDate(t,r,i)}});S8.calendars.islamic=Rle});var pgt=W(()=>{var E8=gf(),szr=Hu();function zle(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}zle.prototype=new E8.baseCalendar;szr(zle.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(r){var t=this._validate(r,this.minMonth,this.minDay,E8.local.invalidYear),r=t.year()<0?t.year()+1:t.year();return r%4===0},weekOfYear:function(e,t,r){var i=this.newDate(e,t,r);return i.add(4-(i.dayOfWeek()||7),"d"),Math.floor((i.dayOfYear()-1)/7)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,E8.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===2&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(e,t,r){var i=this._validate(e,t,r,E8.local.invalidDate);return e=i.year(),t=i.month(),r=i.day(),e<0&&e++,t<=2&&(e--,t+=12),Math.floor(365.25*(e+4716))+Math.floor(30.6001*(t+1))+r-1524.5},fromJD:function(e){var t=Math.floor(e+.5),r=t+1524,i=Math.floor((r-122.1)/365.25),n=Math.floor(365.25*i),a=Math.floor((r-n)/30.6001),o=a-Math.floor(a<14?1:13),s=i-Math.floor(o>2?4716:4715),l=r-n-Math.floor(30.6001*a);return s<=0&&s--,this.newDate(s,o,l)}});E8.calendars.julian=zle});var ggt=W(()=>{var yp=gf(),lzr=Hu();function qle(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}qle.prototype=new yp.baseCalendar;lzr(qle.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(e){return this._validate(e,this.minMonth,this.minDay,yp.local.invalidYear),!1},formatYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,yp.local.invalidYear);e=t.year();var r=Math.floor(e/400);e=e%400,e+=e<0?400:0;var i=Math.floor(e/20);return r+"."+i+"."+e%20},forYear:function(e){if(e=e.split("."),e.length<3)throw"Invalid Mayan year";for(var t=0,r=0;r19||r>0&&i<0)throw"Invalid Mayan year";t=t*20+i}return t},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,yp.local.invalidYear),18},weekOfYear:function(e,t,r){return this._validate(e,t,r,yp.local.invalidDate),0},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,yp.local.invalidYear),360},daysInMonth:function(e,t){return this._validate(e,t,this.minDay,yp.local.invalidMonth),20},daysInWeek:function(){return 5},dayOfWeek:function(e,t,r){var i=this._validate(e,t,r,yp.local.invalidDate);return i.day()},weekDay:function(e,t,r){return this._validate(e,t,r,yp.local.invalidDate),!0},extraInfo:function(e,t,r){var i=this._validate(e,t,r,yp.local.invalidDate),n=i.toJD(),a=this._toHaab(n),o=this._toTzolkin(n);return{haabMonthName:this.local.haabMonths[a[0]-1],haabMonth:a[0],haabDay:a[1],tzolkinDayName:this.local.tzolkinMonths[o[0]-1],tzolkinDay:o[0],tzolkinTrecena:o[1]}},_toHaab:function(e){e-=this.jdEpoch;var t=Ble(e+8+340,365);return[Math.floor(t/20)+1,Ble(t,20)]},_toTzolkin:function(e){return e-=this.jdEpoch,[vgt(e+20,20),vgt(e+4,13)]},toJD:function(e,t,r){var i=this._validate(e,t,r,yp.local.invalidDate);return i.day()+i.month()*20+i.year()*360+this.jdEpoch},fromJD:function(e){e=Math.floor(e)+.5-this.jdEpoch;var t=Math.floor(e/360);e=e%360,e+=e<0?360:0;var r=Math.floor(e/20),i=e%20;return this.newDate(t,r,i)}});function Ble(e,t){return e-t*Math.floor(e/t)}function vgt(e,t){return Ble(e-1,t)+1}yp.calendars.mayan=qle});var ygt=W(()=>{var $3=gf(),uzr=Hu();function Ole(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}Ole.prototype=new $3.baseCalendar;var mgt=$3.instance("gregorian");uzr(Ole.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(e){var t=this._validate(e,this.minMonth,this.minDay,$3.local.invalidYear||$3.regionalOptions[""].invalidYear);return mgt.leapYear(t.year()+(t.year()<1?1:0)+1469)},weekOfYear:function(e,t,r){var i=this.newDate(e,t,r);return i.add(1-(i.dayOfWeek()||7),"d"),Math.floor((i.dayOfYear()-1)/7)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,$3.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===12&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(n,t,r){var i=this._validate(n,t,r,$3.local.invalidMonth),n=i.year();n<0&&n++;for(var a=i.day(),o=1;o=this.toJD(t+1,1,1);)t++;for(var r=e-Math.floor(this.toJD(t,1,1)+.5)+1,i=1;r>this.daysInMonth(t,i);)r-=this.daysInMonth(t,i),i++;return this.newDate(t,i,r)}});$3.calendars.nanakshahi=Ole});var xgt=W(()=>{var W3=gf(),czr=Hu();function Nle(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}Nle.prototype=new W3.baseCalendar;czr(Nle.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(e){return this.daysInYear(e)!==this.daysPerYear},weekOfYear:function(e,t,r){var i=this.newDate(e,t,r);return i.add(-i.dayOfWeek(),"d"),Math.floor((i.dayOfYear()-1)/7)+1},daysInYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,W3.local.invalidYear);if(e=t.year(),typeof this.NEPALI_CALENDAR_DATA[e]=="undefined")return this.daysPerYear;for(var r=0,i=this.minMonth;i<=12;i++)r+=this.NEPALI_CALENDAR_DATA[e][i];return r},daysInMonth:function(e,t){return e.year&&(t=e.month(),e=e.year()),this._validate(e,t,this.minDay,W3.local.invalidMonth),typeof this.NEPALI_CALENDAR_DATA[e]=="undefined"?this.daysPerMonth[t-1]:this.NEPALI_CALENDAR_DATA[e][t]},weekDay:function(e,t,r){return this.dayOfWeek(e,t,r)!==6},toJD:function(e,t,r){var i=this._validate(e,t,r,W3.local.invalidDate);e=i.year(),t=i.month(),r=i.day();var n=W3.instance(),a=0,o=t,s=e;this._createMissingCalendarData(e);var l=e-(o>9||o===9&&r>=this.NEPALI_CALENDAR_DATA[s][0]?56:57);for(t!==9&&(a=r,o--);o!==9;)o<=0&&(o=12,s--),a+=this.NEPALI_CALENDAR_DATA[s][o],o--;return t===9?(a+=r-this.NEPALI_CALENDAR_DATA[s][0],a<0&&(a+=n.daysInYear(l))):a+=this.NEPALI_CALENDAR_DATA[s][9]-this.NEPALI_CALENDAR_DATA[s][0],n.newDate(l,1,1).add(a,"d").toJD()},fromJD:function(e){var t=W3.instance(),r=t.fromJD(e),i=r.year(),n=r.dayOfYear(),a=i+56;this._createMissingCalendarData(a);for(var o=9,s=this.NEPALI_CALENDAR_DATA[a][0],l=this.NEPALI_CALENDAR_DATA[a][o]-s+1;n>l;)o++,o>12&&(o=1,a++),l+=this.NEPALI_CALENDAR_DATA[a][o];var u=this.NEPALI_CALENDAR_DATA[a][o]-(l-n);return this.newDate(a,o,u)},_createMissingCalendarData:function(e){var t=this.daysPerMonth.slice(0);t.unshift(17);for(var r=e-1;r{var z6=gf(),fzr=Hu();function $N(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}function jN(e){var t=e-475;e<0&&t++;var r=.242197,i=r*t,n=r*(t+1),a=i-Math.floor(i),o=n-Math.floor(n);return a>o}$N.prototype=new z6.baseCalendar;fzr($N.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","Dey","Bahman","Esfand"],monthNamesShort:["Far","Ord","Kho","Tir","Mor","Sha","Meh","Aba","Aza","Dey","Bah","Esf"],dayNames:["Yekshanbeh","Doshanbeh","Seshanbeh","Chah\u0101rshanbeh","Panjshanbeh","Jom'eh","Shanbeh"],dayNamesShort:["Yek","Do","Se","Cha","Panj","Jom","Sha"],dayNamesMin:["Ye","Do","Se","Ch","Pa","Jo","Sh"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,z6.local.invalidYear);return jN(t.year())},weekOfYear:function(e,t,r){var i=this.newDate(e,t,r);return i.add(-((i.dayOfWeek()+1)%7),"d"),Math.floor((i.dayOfYear()-1)/7)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,z6.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===12&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return this.dayOfWeek(e,t,r)!==5},toJD:function(e,t,r){var i=this._validate(e,t,r,z6.local.invalidDate);e=i.year(),t=i.month(),r=i.day();var n=0;if(e>0)for(var a=1;a0?e-1:e)*365+n+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e)+.5;var t=475+(e-this.toJD(475,1,1))/365.242197,r=Math.floor(t);r<=0&&r--,e>this.toJD(r,12,jN(r)?30:29)&&(r++,r===0&&r++);var i=e-this.toJD(r,1,1)+1,n=i<=186?Math.ceil(i/31):Math.ceil((i-6)/30),a=e-this.toJD(r,n,1)+1;return this.newDate(r,n,a)}});z6.calendars.persian=$N;z6.calendars.jalali=$N});var _gt=W(()=>{var Y3=gf(),hzr=Hu(),WN=Y3.instance();function Ule(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}Ule.prototype=new Y3.baseCalendar;hzr(Ule.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(r){var t=this._validate(r,this.minMonth,this.minDay,Y3.local.invalidYear),r=this._t2gYear(t.year());return WN.leapYear(r)},weekOfYear:function(n,t,r){var i=this._validate(n,this.minMonth,this.minDay,Y3.local.invalidYear),n=this._t2gYear(i.year());return WN.weekOfYear(n,i.month(),i.day())},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,Y3.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===2&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(n,t,r){var i=this._validate(n,t,r,Y3.local.invalidDate),n=this._t2gYear(i.year());return WN.toJD(n,i.month(),i.day())},fromJD:function(e){var t=WN.fromJD(e),r=this._g2tYear(t.year());return this.newDate(r,t.month(),t.day())},_t2gYear:function(e){return e+this.yearsOffset+(e>=-this.yearsOffset&&e<=-1?1:0)},_g2tYear:function(e){return e-this.yearsOffset-(e>=1&&e<=this.yearsOffset?1:0)}});Y3.calendars.taiwan=Ule});var wgt=W(()=>{var X3=gf(),dzr=Hu(),YN=X3.instance();function Vle(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}Vle.prototype=new X3.baseCalendar;dzr(Vle.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(r){var t=this._validate(r,this.minMonth,this.minDay,X3.local.invalidYear),r=this._t2gYear(t.year());return YN.leapYear(r)},weekOfYear:function(n,t,r){var i=this._validate(n,this.minMonth,this.minDay,X3.local.invalidYear),n=this._t2gYear(i.year());return YN.weekOfYear(n,i.month(),i.day())},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,X3.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(r.month()===2&&this.leapYear(r.year())?1:0)},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(n,t,r){var i=this._validate(n,t,r,X3.local.invalidDate),n=this._t2gYear(i.year());return YN.toJD(n,i.month(),i.day())},fromJD:function(e){var t=YN.fromJD(e),r=this._g2tYear(t.year());return this.newDate(r,t.month(),t.day())},_t2gYear:function(e){return e-this.yearsOffset-(e>=1&&e<=this.yearsOffset?1:0)},_g2tYear:function(e){return e+this.yearsOffset+(e>=-this.yearsOffset&&e<=-1?1:0)}});X3.calendars.thai=Vle});var Tgt=W(()=>{var Z3=gf(),pzr=Hu();function Gle(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}Gle.prototype=new Z3.baseCalendar;pzr(Gle.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\u0101th\u0101\u2019","Yawm al-Arba\u2018\u0101\u2019","Yawm al-Kham\u012Bs","Yawm al-Jum\u2018a","Yawm al-Sabt"],dayNamesMin:["Ah","Ith","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!0}},leapYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,Z3.local.invalidYear);return this.daysInYear(t.year())===355},weekOfYear:function(e,t,r){var i=this.newDate(e,t,r);return i.add(-i.dayOfWeek(),"d"),Math.floor((i.dayOfYear()-1)/7)+1},daysInYear:function(e){for(var t=0,r=1;r<=12;r++)t+=this.daysInMonth(e,r);return t},daysInMonth:function(e,t){for(var r=this._validate(e,t,this.minDay,Z3.local.invalidMonth),i=r.toJD()-24e5+.5,n=0,a=0;ai)return zx[n]-zx[n-1];n++}return 30},weekDay:function(e,t,r){return this.dayOfWeek(e,t,r)!==5},toJD:function(e,t,r){var i=this._validate(e,t,r,Z3.local.invalidDate),n=12*(i.year()-1)+i.month()-15292,a=i.day()+zx[n-1]-1;return a+24e5-.5},fromJD:function(e){for(var t=e-24e5+.5,r=0,i=0;it);i++)r++;var n=r+15292,a=Math.floor((n-1)/12),o=a+1,s=n-12*a,l=t-zx[r-1]+1;return this.newDate(o,s,l)},isValid:function(e,t,r){var i=Z3.baseCalendar.prototype.isValid.apply(this,arguments);return i&&(e=e.year!=null?e.year:e,i=e>=1276&&e<=1500),i},_validate:function(e,t,r,i){var n=Z3.baseCalendar.prototype._validate.apply(this,arguments);if(n.year<1276||n.year>1500)throw i.replace(/\{0\}/,this.local.name);return n}});Z3.calendars.ummalqura=Gle;var zx=[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]});var Mgt=W((Shi,Agt)=>{"use strict";Agt.exports=gf();sgt();lgt();ugt();cgt();fgt();hgt();dgt();pgt();ggt();ygt();xgt();bgt();_gt();wgt();Tgt()});var Lgt=W((Ehi,Fgt)=>{"use strict";var Egt=Mgt(),k8=tt(),kgt=(ra(),Pt(ia)),vzr=kgt.EPOCHJD,gzr=kgt.ONEDAY,$le={valType:"enumerated",values:k8.sortObjectKeys(Egt.calendars),editType:"calc",dflt:"gregorian"},Cgt=function(e,t,r,i){var n={};return n[r]=$le,k8.coerce(e,t,n,r,i)},mzr=function(e,t,r,i){for(var n=0;n{"use strict";Pgt.exports=Lgt()});var Tzr=W((Chi,zgt)=>{var Rgt=STe();Rgt.register([k6e(),vAe(),FMe(),JMe(),hSe(),oEe(),xEe(),lke(),Bke(),xCe(),a8e(),FIe(),bRe(),cBe(),KBe(),kqe(),Jqe(),cNe(),CNe(),WNe(),aUe(),xUe(),IUe(),ZUe(),PGe(),QGe(),yZe(),yKe(),bJe(),$Je(),gut(),Fut(),tct(),dft(),zft(),ght(),q0t(),udt(),Ddt(),rpt(),gpt(),pvt(),Pvt(),Jvt(),L1t(),ngt(),Igt()]);zgt.exports=Rgt});return Tzr();})(); /*! * The buffer module from node.js, for the browser. * diff --git a/dist/translation-keys.txt b/dist/translation-keys.txt index ae2775fde25..15ec454515b 100644 --- a/dist/translation-keys.txt +++ b/dist/translation-keys.txt @@ -2,9 +2,9 @@ Autoscale Box Select // components/modebar/buttons.js:152 Cancel // components/modebar/share_chart/strings.js:27 Click to enter Colorscale title // plots/plots.js:238 -Click to enter Component A title // plots/ternary/ternary.js:378 -Click to enter Component B title // plots/ternary/ternary.js:388 -Click to enter Component C title // plots/ternary/ternary.js:398 +Click to enter Component A title // plots/ternary/ternary.js:514 +Click to enter Component B title // plots/ternary/ternary.js:524 +Click to enter Component C title // plots/ternary/ternary.js:534 Click to enter Plot subtitle // plots/plots.js:235 Click to enter Plot title // plots/plots.js:234 Click to enter X axis title // plots/plots.js:236 @@ -12,7 +12,7 @@ Click to enter Y axis title Click to enter radial axis title // plots/polar/polar.js:592 Compare data on hover // components/modebar/buttons.js:301 Double-click on legend to isolate one trace // components/legend/handle_click.js:40 -Double-click to zoom back out // plots/ternary/ternary.js:680 +Double-click to zoom back out // plots/ternary/ternary.js:816 Download plot // components/modebar/buttons.js:48 Download plot as JSON // components/modebar/buttons.js:76 Download plot as a PNG // components/modebar/buttons.js:46 diff --git a/draftlogs/7826_fix.md b/draftlogs/7826_fix.md deleted file mode 100644 index 6663d8d09f3..00000000000 --- a/draftlogs/7826_fix.md +++ /dev/null @@ -1 +0,0 @@ -- Respect explicit `node.x`/`node.y` positions in Sankey traces that contain unlinked or grouped nodes [[#7826](https://github.com/plotly/plotly.js/pull/7826)], with thanks to @kyo5uke for the contribution! diff --git a/draftlogs/7925_add.md b/draftlogs/7925_add.md deleted file mode 100644 index a7c037cc2e2..00000000000 --- a/draftlogs/7925_add.md +++ /dev/null @@ -1 +0,0 @@ -- Add `layout.legend.itemheight` to set the height of the legend fill swatch, so more of a trace `fillpattern` is visible in the legend [[#7925](https://github.com/plotly/plotly.js/pull/7925)], with thanks to @MannXo for the contribution! diff --git a/draftlogs/7934_fix.md b/draftlogs/7934_fix.md deleted file mode 100644 index 16051e19d61..00000000000 --- a/draftlogs/7934_fix.md +++ /dev/null @@ -1 +0,0 @@ -- Fix incorrect positioning of tick labels when using `ticklabelindex` on period axes [[#7934](https://github.com/plotly/plotly.js/pull/7934)], with thanks to @my-tien for the contribution! diff --git a/draftlogs/7935_fix.md b/draftlogs/7935_fix.md deleted file mode 100644 index cdfe111af69..00000000000 --- a/draftlogs/7935_fix.md +++ /dev/null @@ -1 +0,0 @@ -- Fix tick label format sometimes being incompatible with the labeled tick when using `ticklabelindex` [[#7935](https://github.com/plotly/plotly.js/pull/7935)], with thanks to @my-tien for the contribution! diff --git a/draftlogs/8039_fix.md b/draftlogs/8039_fix.md deleted file mode 100644 index d5ba53c2088..00000000000 --- a/draftlogs/8039_fix.md +++ /dev/null @@ -1 +0,0 @@ -- Fix unified hover swatch color and pattern for bar `marker.pattern` arrays [[#8039](https://github.com/plotly/plotly.js/pull/8039)], with thanks to @Dmao233 for the contribution! diff --git a/draftlogs/8041_add.md b/draftlogs/8041_add.md deleted file mode 100644 index 023cf6aaa7d..00000000000 --- a/draftlogs/8041_add.md +++ /dev/null @@ -1 +0,0 @@ -- Add spikelines to ternary plots [[#8041](https://github.com/plotly/plotly.js/pull/8041)], with thanks to @Lexachoc for the contribution! \ No newline at end of file diff --git a/draftlogs/8045_fix.md b/draftlogs/8045_fix.md deleted file mode 100644 index 7b44189921e..00000000000 --- a/draftlogs/8045_fix.md +++ /dev/null @@ -1 +0,0 @@ -- Keep cartesian traces aligned with their axes when an automargin title is combined with any component that expands the margins [[#8045](https://github.com/plotly/plotly.js/pull/8045)] diff --git a/draftlogs/8051_fix.md b/draftlogs/8051_fix.md deleted file mode 100644 index d1efaba76f8..00000000000 --- a/draftlogs/8051_fix.md +++ /dev/null @@ -1,2 +0,0 @@ -- Fix hover labels ignoring MathJax for text that is a single tex expression [[#8051](https://github.com/plotly/plotly.js/pull/8051)], with thanks to @SergeyAxiomatic -- Fix XSS via `javascript:` URLs in MathJax `\href` macros by sanitizing links in MathJax-rendered text [[#8051](https://github.com/plotly/plotly.js/pull/8051)], with thanks to @SergeyAxiomatic diff --git a/draftlogs/8052_fix.md b/draftlogs/8052_fix.md deleted file mode 100644 index 3da3f99a6ea..00000000000 --- a/draftlogs/8052_fix.md +++ /dev/null @@ -1 +0,0 @@ -- Fix issue causing `scattergl` plot to freeze up when hovering over points [[#8052](https://github.com/plotly/plotly.js/pull/8052)], with thanks to @emilykl for the contribution! diff --git a/draftlogs/8069_fix.md b/draftlogs/8069_fix.md deleted file mode 100644 index be43db99231..00000000000 --- a/draftlogs/8069_fix.md +++ /dev/null @@ -1 +0,0 @@ - - Fix quiver arrow colors for a discrete `marker.color` array [[#8069](https://github.com/plotly/plotly.js/pull/8069)], with thanks to @Yahiro025 for the contribution! diff --git a/draftlogs/8071_fix.md b/draftlogs/8071_fix.md deleted file mode 100644 index 19e60820b57..00000000000 --- a/draftlogs/8071_fix.md +++ /dev/null @@ -1 +0,0 @@ -- Fix numeric and numeric-string marker symbol variant detection in `scattergl` [[#8071](https://github.com/plotly/plotly.js/pull/8071)] diff --git a/draftlogs/8104_fix.md b/draftlogs/8104_fix.md deleted file mode 100644 index f37635a93d4..00000000000 --- a/draftlogs/8104_fix.md +++ /dev/null @@ -1 +0,0 @@ - - Fix `hoverlabel.align` so that it aligns the item text in `x unified` and `y unified` hover labels [[#8104](https://github.com/plotly/plotly.js/pull/8104)], with thanks to @MannXo for the contribution! diff --git a/draftlogs/8119_fix.md b/draftlogs/8119_fix.md deleted file mode 100644 index 7eb70155897..00000000000 --- a/draftlogs/8119_fix.md +++ /dev/null @@ -1 +0,0 @@ - - Convert modern CSS color formats to rgba for scattergl based traces [[#8119](https://github.com/plotly/plotly.js/pull/8119)] diff --git a/draftlogs/8126_fix.md b/draftlogs/8126_fix.md deleted file mode 100644 index af15d6ed89f..00000000000 --- a/draftlogs/8126_fix.md +++ /dev/null @@ -1,3 +0,0 @@ -- Update TypeScript types so that `Plotly.relayout`, `Plotly.restyle`, `Plotly.update`, and the `plotly_relayout` event accept attribute paths such as `'xaxis.autorange'` [[#8126](https://github.com/plotly/plotly.js/pull/8126)] - - Add the `LayoutUpdate` and `DataUpdate` types for these update objects - - Add the `(root, attribute, value)` call form to the types of `Plotly.relayout` and `Plotly.restyle` diff --git a/draftlogs/8139_fix.md b/draftlogs/8139_fix.md deleted file mode 100644 index 792e8ca201b..00000000000 --- a/draftlogs/8139_fix.md +++ /dev/null @@ -1 +0,0 @@ - - Fix funnel `percentTotal` text formatting to display formatted percentages instead of raw ratios [[#8139](https://github.com/plotly/plotly.js/pull/8139)], with thanks to @ORITOMI for the contribution! diff --git a/draftlogs/8145_add.md b/draftlogs/8145_add.md deleted file mode 100644 index d55a68b379b..00000000000 --- a/draftlogs/8145_add.md +++ /dev/null @@ -1 +0,0 @@ - - Add TypeScript declarations for lifecycle and WebGL context events [[#8145](https://github.com/plotly/plotly.js/pull/8145)] diff --git a/package-lock.json b/package-lock.json index 7451f6188d1..ca27322a25f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "plotly.js", - "version": "4.1.2", + "version": "4.2.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "plotly.js", - "version": "4.1.2", + "version": "4.2.0", "license": "MIT", "dependencies": { "@plotly/d3": "3.8.2", @@ -2171,9 +2171,9 @@ } }, "node_modules/body-parser": { - "version": "1.20.8", - "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.20.8.tgz", - "integrity": "sha512-JNcyFQ64OiijEkPzUBTCe+hyPXUD/3LEldGQ6iF5LR1w00mx9o7xtDWHXBY2iItjdCFGoilOLNQbH943ut7pHA==", + "version": "1.20.9", + "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.20.9.tgz", + "integrity": "sha512-FISIQxV5u91Y9gvuFq3q/tA/qTqLJn3AhRcEvyozyhJTh5OBFFtv827AdHU7Rbyct4r+Ba1/99oFa1Y3yuFsdw==", "dev": true, "license": "MIT", "dependencies": { @@ -6338,9 +6338,9 @@ } }, "node_modules/qs": { - "version": "6.16.0", - "resolved": "https://registry.npmjs.org/qs/-/qs-6.16.0.tgz", - "integrity": "sha512-h6fhOIaRrID2CbEY2fqs+7t+UXZo+MLAnU5gRIq85uFtdiUPCdsApMlHhXogKVM4HM2DVbIjGNTTYH2OcmP1vA==", + "version": "6.16.2", + "resolved": "https://registry.npmjs.org/qs/-/qs-6.16.2.tgz", + "integrity": "sha512-VYdnB5S7/0IeXzBacUtwNAaM6d7Y/PgYnNC7bJCI6meqA/OgnsQbZMtVW8Dt2D1PHgbHGtYmhSoEIgvt7xZ2ZA==", "dev": true, "license": "BSD-3-Clause", "dependencies": { @@ -7913,9 +7913,9 @@ } }, "node_modules/undici": { - "version": "7.30.0", - "resolved": "https://registry.npmjs.org/undici/-/undici-7.30.0.tgz", - "integrity": "sha512-dkrQXeHSaoamnItlYbmzG0wFYrM0ZwDxCIg0A7aKjTyyhh9svRzCNFEzV+Vm05/yehjCzjDZ31KXfGEjYSztDQ==", + "version": "7.30.1", + "resolved": "https://registry.npmjs.org/undici/-/undici-7.30.1.tgz", + "integrity": "sha512-03KrMbjIFDWQR5RNPrSw3bd1r12JpyFQl9/yxjUbJtqkjmllqC5lFjZh6ujeuJCKr8EOQvRW872Oy/az+nLYxg==", "dev": true, "license": "MIT", "engines": { diff --git a/package.json b/package.json index 8137db5734a..24e68252f91 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "plotly.js", - "version": "4.1.2", + "version": "4.2.0", "description": "The open source javascript graphing library that powers plotly", "license": "MIT", "main": "./lib/index.js", diff --git a/src/version.js b/src/version.js index 0a2c3595090..2694e37448d 100644 --- a/src/version.js +++ b/src/version.js @@ -1,4 +1,4 @@ 'use strict'; // package version injected by `npm run preprocess` -exports.version = '4.1.2'; +exports.version = '4.2.0';